From 76be0afe9adda3066298ac1866687f98044cc720 Mon Sep 17 00:00:00 2001 From: jamesrweb <47126579+jamesrweb@users.noreply.github.com> Date: Mon, 25 Mar 2024 12:21:46 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20P5-wrapp?= =?UTF-8?q?er/react@72e7998d983b75e13a2880ecc0c6be97679ac3ca=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{index-OUWFgBeY.js => index-CjanxeK7.js} | 74 +++++++++---------- index.html | 2 +- 2 files changed, 38 insertions(+), 38 deletions(-) rename assets/{index-OUWFgBeY.js => index-CjanxeK7.js} (58%) diff --git a/assets/index-OUWFgBeY.js b/assets/index-CjanxeK7.js similarity index 58% rename from assets/index-OUWFgBeY.js rename to assets/index-CjanxeK7.js index 34dcfd4..286b18e 100644 --- a/assets/index-OUWFgBeY.js +++ b/assets/index-CjanxeK7.js @@ -1,4 +1,4 @@ -(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const w of document.querySelectorAll('link[rel="modulepreload"]'))t(w);new MutationObserver(w=>{for(const _ of w)if(_.type==="childList")for(const c of _.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&t(c)}).observe(document,{childList:!0,subtree:!0});function x(w){const _={};return w.integrity&&(_.integrity=w.integrity),w.referrerPolicy&&(_.referrerPolicy=w.referrerPolicy),w.crossOrigin==="use-credentials"?_.credentials="include":w.crossOrigin==="anonymous"?_.credentials="omit":_.credentials="same-origin",_}function t(w){if(w.ep)return;w.ep=!0;const _=x(w);fetch(w.href,_)}})();var Ds=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jh(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var md={exports:{}},Fi={},yd={exports:{}},dt={};/** +(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const w of document.querySelectorAll('link[rel="modulepreload"]'))t(w);new MutationObserver(w=>{for(const _ of w)if(_.type==="childList")for(const d of _.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&t(d)}).observe(document,{childList:!0,subtree:!0});function x(w){const _={};return w.integrity&&(_.integrity=w.integrity),w.referrerPolicy&&(_.referrerPolicy=w.referrerPolicy),w.crossOrigin==="use-credentials"?_.credentials="include":w.crossOrigin==="anonymous"?_.credentials="omit":_.credentials="same-origin",_}function t(w){if(w.ep)return;w.ep=!0;const _=x(w);fetch(w.href,_)}})();var Ds=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jh(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var md={exports:{}},Fi={},yd={exports:{}},dt={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Es=Symbol.for("react.element"),ep=Symbol.for("react.portal"),tp=Symbol.for("react.fragment"),rp=Symbol.for("react.strict_mode"),np=Symbol.for("react.profiler"),op=Symbol.for("react.provider"),sp=Symbol.for("react.context"),ip=Symbol.for("react.forward_ref"),ap=Symbol.for("react.suspense"),lp=Symbol.for("react.memo"),up=Symbol.for("react.lazy"),rc=Symbol.iterator;function cp(r){return r===null||typeof r!="object"?null:(r=rc&&r[rc]||r["@@iterator"],typeof r=="function"?r:null)}var gd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vd=Object.assign,bd={};function Co(r,n,x){this.props=r,this.context=n,this.refs=bd,this.updater=x||gd}Co.prototype.isReactComponent={};Co.prototype.setState=function(r,n){if(typeof r!="object"&&typeof r!="function"&&r!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,r,n,"setState")};Co.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};function _d(){}_d.prototype=Co.prototype;function El(r,n,x){this.props=r,this.context=n,this.refs=bd,this.updater=x||gd}var kl=El.prototype=new _d;kl.constructor=El;vd(kl,Co.prototype);kl.isPureReactComponent=!0;var nc=Array.isArray,xd=Object.prototype.hasOwnProperty,Tl={current:null},wd={key:!0,ref:!0,__self:!0,__source:!0};function jd(r,n,x){var t,w={},_=null,c=null;if(n!=null)for(t in n.ref!==void 0&&(c=n.ref),n.key!==void 0&&(_=""+n.key),n)xd.call(n,t)&&!wd.hasOwnProperty(t)&&(w[t]=n[t]);var m=arguments.length-2;if(m===1)w.children=x;else if(1>>1,oe=V[Q];if(0>>1;Qw(B,Y))Ww($,B)?(V[Q]=$,V[W]=Y,Q=W):(V[Q]=B,V[I]=Y,Q=I);else if(Ww($,Y))V[Q]=$,V[W]=Y,Q=W;else break e}}return z}function w(V,z){var Y=V.sortIndex-z.sortIndex;return Y!==0?Y:V.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var _=performance;r.unstable_now=function(){return _.now()}}else{var c=Date,m=c.now();r.unstable_now=function(){return c.now()-m}}var i=[],h=[],b=1,y=null,s=3,u=!1,l=!1,d=!1,p=typeof setTimeout=="function"?setTimeout:null,o=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(V){for(var z=x(h);z!==null;){if(z.callback===null)t(h);else if(z.startTime<=V)t(h),z.sortIndex=z.expirationTime,n(i,z);else break;z=x(h)}}function v(V){if(d=!1,f(V),!l)if(x(i)!==null)l=!0,G(S);else{var z=x(h);z!==null&&X(v,z.startTime-V)}}function S(V,z){l=!1,d&&(d=!1,o(T),T=-1),u=!0;var Y=s;try{for(f(z),y=x(i);y!==null&&(!(y.expirationTime>z)||V&&!M());){var Q=y.callback;if(typeof Q=="function"){y.callback=null,s=y.priorityLevel;var oe=Q(y.expirationTime<=z);z=r.unstable_now(),typeof oe=="function"?y.callback=oe:y===x(i)&&t(i),f(z)}else t(i);y=x(i)}if(y!==null)var E=!0;else{var I=x(h);I!==null&&X(v,I.startTime-z),E=!1}return E}finally{y=null,s=Y,u=!1}}var O=!1,k=null,T=-1,P=5,R=-1;function M(){return!(r.unstable_now()-RV||125Q?(V.sortIndex=Y,n(h,V),x(i)===null&&V===x(h)&&(d?(o(T),T=-1):d=!0,X(v,Y-Q))):(V.sortIndex=oe,n(i,V),l||u||(l=!0,G(S))),V},r.unstable_shouldYield=M,r.unstable_wrapCallback=function(V){var z=s;return function(){var Y=s;s=z;try{return V.apply(this,arguments)}finally{s=Y}}}})(Td);kd.exports=Td;var xp=kd.exports;/** + */(function(r){function n(V,z){var X=V.length;V.push(z);e:for(;0>>1,oe=V[Q];if(0>>1;Qw(B,X))Ww($,B)?(V[Q]=$,V[W]=X,Q=W):(V[Q]=B,V[I]=X,Q=I);else if(Ww($,X))V[Q]=$,V[W]=X,Q=W;else break e}}return z}function w(V,z){var X=V.sortIndex-z.sortIndex;return X!==0?X:V.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var _=performance;r.unstable_now=function(){return _.now()}}else{var d=Date,m=d.now();r.unstable_now=function(){return d.now()-m}}var i=[],h=[],b=1,y=null,s=3,u=!1,a=!1,c=!1,p=typeof setTimeout=="function"?setTimeout:null,o=typeof clearTimeout=="function"?clearTimeout:null,l=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(V){for(var z=x(h);z!==null;){if(z.callback===null)t(h);else if(z.startTime<=V)t(h),z.sortIndex=z.expirationTime,n(i,z);else break;z=x(h)}}function v(V){if(c=!1,f(V),!a)if(x(i)!==null)a=!0,G(S);else{var z=x(h);z!==null&&q(v,z.startTime-V)}}function S(V,z){a=!1,c&&(c=!1,o(T),T=-1),u=!0;var X=s;try{for(f(z),y=x(i);y!==null&&(!(y.expirationTime>z)||V&&!M());){var Q=y.callback;if(typeof Q=="function"){y.callback=null,s=y.priorityLevel;var oe=Q(y.expirationTime<=z);z=r.unstable_now(),typeof oe=="function"?y.callback=oe:y===x(i)&&t(i),f(z)}else t(i);y=x(i)}if(y!==null)var E=!0;else{var I=x(h);I!==null&&q(v,I.startTime-z),E=!1}return E}finally{y=null,s=X,u=!1}}var O=!1,k=null,T=-1,P=5,R=-1;function M(){return!(r.unstable_now()-RV||125Q?(V.sortIndex=X,n(h,V),x(i)===null&&V===x(h)&&(c?(o(T),T=-1):c=!0,q(v,X-Q))):(V.sortIndex=oe,n(i,V),a||u||(a=!0,G(S))),V},r.unstable_shouldYield=M,r.unstable_wrapCallback=function(V){var z=s;return function(){var X=s;s=z;try{return V.apply(this,arguments)}finally{s=X}}}})(Td);kd.exports=Td;var xp=kd.exports;/** * @license React * react-dom.production.min.js * @@ -30,47 +30,47 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Md=pr,Mr=xp;function Be(r){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+r,x=1;x"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),La=Object.prototype.hasOwnProperty,wp=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,sc={},ic={};function jp(r){return La.call(ic,r)?!0:La.call(sc,r)?!1:wp.test(r)?ic[r]=!0:(sc[r]=!0,!1)}function Sp(r,n,x,t){if(x!==null&&x.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return t?!1:x!==null?!x.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function Ep(r,n,x,t){if(n===null||typeof n>"u"||Sp(r,n,x,t))return!0;if(t)return!1;if(x!==null)switch(x.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function gr(r,n,x,t,w,_,c){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=t,this.attributeNamespace=w,this.mustUseProperty=x,this.propertyName=r,this.type=n,this.sanitizeURL=_,this.removeEmptyString=c}var or={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){or[r]=new gr(r,0,!1,r,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var n=r[0];or[n]=new gr(n,1,!1,r[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(r){or[r]=new gr(r,2,!1,r.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){or[r]=new gr(r,2,!1,r,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){or[r]=new gr(r,3,!1,r.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(r){or[r]=new gr(r,3,!0,r,null,!1,!1)});["capture","download"].forEach(function(r){or[r]=new gr(r,4,!1,r,null,!1,!1)});["cols","rows","size","span"].forEach(function(r){or[r]=new gr(r,6,!1,r,null,!1,!1)});["rowSpan","start"].forEach(function(r){or[r]=new gr(r,5,!1,r.toLowerCase(),null,!1,!1)});var Cl=/[\-:]([a-z])/g;function Ol(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var n=r.replace(Cl,Ol);or[n]=new gr(n,1,!1,r,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var n=r.replace(Cl,Ol);or[n]=new gr(n,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(r){var n=r.replace(Cl,Ol);or[n]=new gr(n,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(r){or[r]=new gr(r,1,!1,r.toLowerCase(),null,!1,!1)});or.xlinkHref=new gr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(r){or[r]=new gr(r,1,!1,r.toLowerCase(),null,!0,!0)});function Pl(r,n,x,t){var w=or.hasOwnProperty(n)?or[n]:null;(w!==null?w.type!==0:t||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),La=Object.prototype.hasOwnProperty,wp=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,sc={},ic={};function jp(r){return La.call(ic,r)?!0:La.call(sc,r)?!1:wp.test(r)?ic[r]=!0:(sc[r]=!0,!1)}function Sp(r,n,x,t){if(x!==null&&x.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return t?!1:x!==null?!x.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function Ep(r,n,x,t){if(n===null||typeof n>"u"||Sp(r,n,x,t))return!0;if(t)return!1;if(x!==null)switch(x.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function gr(r,n,x,t,w,_,d){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=t,this.attributeNamespace=w,this.mustUseProperty=x,this.propertyName=r,this.type=n,this.sanitizeURL=_,this.removeEmptyString=d}var or={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){or[r]=new gr(r,0,!1,r,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var n=r[0];or[n]=new gr(n,1,!1,r[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(r){or[r]=new gr(r,2,!1,r.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){or[r]=new gr(r,2,!1,r,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){or[r]=new gr(r,3,!1,r.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(r){or[r]=new gr(r,3,!0,r,null,!1,!1)});["capture","download"].forEach(function(r){or[r]=new gr(r,4,!1,r,null,!1,!1)});["cols","rows","size","span"].forEach(function(r){or[r]=new gr(r,6,!1,r,null,!1,!1)});["rowSpan","start"].forEach(function(r){or[r]=new gr(r,5,!1,r.toLowerCase(),null,!1,!1)});var Cl=/[\-:]([a-z])/g;function Ol(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var n=r.replace(Cl,Ol);or[n]=new gr(n,1,!1,r,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var n=r.replace(Cl,Ol);or[n]=new gr(n,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(r){var n=r.replace(Cl,Ol);or[n]=new gr(n,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(r){or[r]=new gr(r,1,!1,r.toLowerCase(),null,!1,!1)});or.xlinkHref=new gr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(r){or[r]=new gr(r,1,!1,r.toLowerCase(),null,!0,!0)});function Pl(r,n,x,t){var w=or.hasOwnProperty(n)?or[n]:null;(w!==null?w.type!==0:t||!(2m||w[c]!==_[m]){var i=` -`+w[c].replace(" at new "," at ");return r.displayName&&i.includes("")&&(i=i.replace("",r.displayName)),i}while(1<=c&&0<=m);break}}}finally{la=!1,Error.prepareStackTrace=x}return(r=r?r.displayName||r.name:"")?Zo(r):""}function kp(r){switch(r.tag){case 5:return Zo(r.type);case 16:return Zo("Lazy");case 13:return Zo("Suspense");case 19:return Zo("SuspenseList");case 0:case 2:case 15:return r=ua(r.type,!1),r;case 11:return r=ua(r.type.render,!1),r;case 1:return r=ua(r.type,!0),r;default:return""}}function Da(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case oo:return"Fragment";case no:return"Portal";case Aa:return"Profiler";case Ll:return"StrictMode";case Ra:return"Suspense";case Ia:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Pd:return(r.displayName||"Context")+".Consumer";case Od:return(r._context.displayName||"Context")+".Provider";case Al:var n=r.render;return r=r.displayName,r||(r=n.displayName||n.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Rl:return n=r.displayName||null,n!==null?n:Da(r.type)||"Memo";case bn:n=r._payload,r=r._init;try{return Da(r(n))}catch{}}return null}function Tp(r){var n=r.type;switch(r.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=n.render,r=r.displayName||r.name||"",n.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Da(n);case 8:return n===Ll?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function An(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Ad(r){var n=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Mp(r){var n=Ad(r)?"checked":"value",x=Object.getOwnPropertyDescriptor(r.constructor.prototype,n),t=""+r[n];if(!r.hasOwnProperty(n)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var w=x.get,_=x.set;return Object.defineProperty(r,n,{configurable:!0,get:function(){return w.call(this)},set:function(c){t=""+c,_.call(this,c)}}),Object.defineProperty(r,n,{enumerable:x.enumerable}),{getValue:function(){return t},setValue:function(c){t=""+c},stopTracking:function(){r._valueTracker=null,delete r[n]}}}}function Us(r){r._valueTracker||(r._valueTracker=Mp(r))}function Rd(r){if(!r)return!1;var n=r._valueTracker;if(!n)return!0;var x=n.getValue(),t="";return r&&(t=Ad(r)?r.checked?"true":"false":r.value),r=t,r!==x?(n.setValue(r),!0):!1}function hi(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Fa(r,n){var x=n.checked;return Rt({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:x??r._wrapperState.initialChecked})}function lc(r,n){var x=n.defaultValue==null?"":n.defaultValue,t=n.checked!=null?n.checked:n.defaultChecked;x=An(n.value!=null?n.value:x),r._wrapperState={initialChecked:t,initialValue:x,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Id(r,n){n=n.checked,n!=null&&Pl(r,"checked",n,!1)}function Na(r,n){Id(r,n);var x=An(n.value),t=n.type;if(x!=null)t==="number"?(x===0&&r.value===""||r.value!=x)&&(r.value=""+x):r.value!==""+x&&(r.value=""+x);else if(t==="submit"||t==="reset"){r.removeAttribute("value");return}n.hasOwnProperty("value")?Ua(r,n.type,x):n.hasOwnProperty("defaultValue")&&Ua(r,n.type,An(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(r.defaultChecked=!!n.defaultChecked)}function uc(r,n,x){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var t=n.type;if(!(t!=="submit"&&t!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+r._wrapperState.initialValue,x||n===r.value||(r.value=n),r.defaultValue=n}x=r.name,x!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,x!==""&&(r.name=x)}function Ua(r,n,x){(n!=="number"||hi(r.ownerDocument)!==r)&&(x==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+x&&(r.defaultValue=""+x))}var Qo=Array.isArray;function yo(r,n,x,t){if(r=r.options,n){n={};for(var w=0;w"+n.valueOf().toString()+"",n=Bs.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;n.firstChild;)r.appendChild(n.firstChild)}});function us(r,n){if(n){var x=r.firstChild;if(x&&x===r.lastChild&&x.nodeType===3){x.nodeValue=n;return}}r.textContent=n}var Jo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Cp=["Webkit","ms","Moz","O"];Object.keys(Jo).forEach(function(r){Cp.forEach(function(n){n=n+r.charAt(0).toUpperCase()+r.substring(1),Jo[n]=Jo[r]})});function Ud(r,n,x){return n==null||typeof n=="boolean"||n===""?"":x||typeof n!="number"||n===0||Jo.hasOwnProperty(r)&&Jo[r]?(""+n).trim():n+"px"}function Bd(r,n){r=r.style;for(var x in n)if(n.hasOwnProperty(x)){var t=x.indexOf("--")===0,w=Ud(x,n[x],t);x==="float"&&(x="cssFloat"),t?r.setProperty(x,w):r[x]=w}}var Op=Rt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function za(r,n){if(n){if(Op[r]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(Be(137,r));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(Be(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(Be(61))}if(n.style!=null&&typeof n.style!="object")throw Error(Be(62))}}function Va(r,n){if(r.indexOf("-")===-1)return typeof n.is=="string";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ha=null;function Il(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Wa=null,go=null,vo=null;function fc(r){if(r=Ms(r)){if(typeof Wa!="function")throw Error(Be(280));var n=r.stateNode;n&&(n=zi(n),Wa(r.stateNode,r.type,n))}}function Gd(r){go?vo?vo.push(r):vo=[r]:go=r}function zd(){if(go){var r=go,n=vo;if(vo=go=null,fc(r),n)for(r=0;r>>=0,r===0?32:31-(Gp(r)/zp|0)|0}var Gs=64,zs=4194304;function $o(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function gi(r,n){var x=r.pendingLanes;if(x===0)return 0;var t=0,w=r.suspendedLanes,_=r.pingedLanes,c=x&268435455;if(c!==0){var m=c&~w;m!==0?t=$o(m):(_&=c,_!==0&&(t=$o(_)))}else c=x&~w,c!==0?t=$o(c):_!==0&&(t=$o(_));if(t===0)return 0;if(n!==0&&n!==t&&!(n&w)&&(w=t&-t,_=n&-n,w>=_||w===16&&(_&4194240)!==0))return n;if(t&4&&(t|=x&16),n=r.entangledLanes,n!==0)for(r=r.entanglements,n&=t;0x;x++)n.push(r);return n}function ks(r,n,x){r.pendingLanes|=n,n!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,n=31-Hr(n),r[n]=x}function qp(r,n){var x=r.pendingLanes&~n;r.pendingLanes=n,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=n,r.mutableReadLanes&=n,r.entangledLanes&=n,n=r.entanglements;var t=r.eventTimes;for(r=r.expirationTimes;0=ts),xc=" ",wc=!1;function uf(r,n){switch(r){case"keyup":return _m.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cf(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var so=!1;function wm(r,n){switch(r){case"compositionend":return cf(n);case"keypress":return n.which!==32?null:(wc=!0,xc);case"textInput":return r=n.data,r===xc&&wc?null:r;default:return null}}function jm(r,n){if(so)return r==="compositionend"||!Vl&&uf(r,n)?(r=af(),oi=Bl=jn=null,so=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:x,offset:n-r};r=t}e:{for(;x;){if(x.nextSibling){x=x.nextSibling;break e}x=x.parentNode}x=void 0}x=kc(x)}}function pf(r,n){return r&&n?r===n?!0:r&&r.nodeType===3?!1:n&&n.nodeType===3?pf(r,n.parentNode):"contains"in r?r.contains(n):r.compareDocumentPosition?!!(r.compareDocumentPosition(n)&16):!1:!1}function mf(){for(var r=window,n=hi();n instanceof r.HTMLIFrameElement;){try{var x=typeof n.contentWindow.location.href=="string"}catch{x=!1}if(x)r=n.contentWindow;else break;n=hi(r.document)}return n}function Hl(r){var n=r&&r.nodeName&&r.nodeName.toLowerCase();return n&&(n==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||n==="textarea"||r.contentEditable==="true")}function Lm(r){var n=mf(),x=r.focusedElem,t=r.selectionRange;if(n!==x&&x&&x.ownerDocument&&pf(x.ownerDocument.documentElement,x)){if(t!==null&&Hl(x)){if(n=t.start,r=t.end,r===void 0&&(r=n),"selectionStart"in x)x.selectionStart=n,x.selectionEnd=Math.min(r,x.value.length);else if(r=(n=x.ownerDocument||document)&&n.defaultView||window,r.getSelection){r=r.getSelection();var w=x.textContent.length,_=Math.min(t.start,w);t=t.end===void 0?_:Math.min(t.end,w),!r.extend&&_>t&&(w=t,t=_,_=w),w=Tc(x,_);var c=Tc(x,t);w&&c&&(r.rangeCount!==1||r.anchorNode!==w.node||r.anchorOffset!==w.offset||r.focusNode!==c.node||r.focusOffset!==c.offset)&&(n=n.createRange(),n.setStart(w.node,w.offset),r.removeAllRanges(),_>t?(r.addRange(n),r.extend(c.node,c.offset)):(n.setEnd(c.node,c.offset),r.addRange(n)))}}for(n=[],r=x;r=r.parentNode;)r.nodeType===1&&n.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x=document.documentMode,io=null,$a=null,ns=null,Ka=!1;function Mc(r,n,x){var t=x.window===x?x.document:x.nodeType===9?x:x.ownerDocument;Ka||io==null||io!==hi(t)||(t=io,"selectionStart"in t&&Hl(t)?t={start:t.selectionStart,end:t.selectionEnd}:(t=(t.ownerDocument&&t.ownerDocument.defaultView||window).getSelection(),t={anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}),ns&&ms(ns,t)||(ns=t,t=_i($a,"onSelect"),0uo||(r.current=ol[uo],ol[uo]=null,uo--)}function St(r,n){uo++,ol[uo]=r.current,r.current=n}var Rn={},fr=Dn(Rn),_r=Dn(!1),Wn=Rn;function jo(r,n){var x=r.type.contextTypes;if(!x)return Rn;var t=r.stateNode;if(t&&t.__reactInternalMemoizedUnmaskedChildContext===n)return t.__reactInternalMemoizedMaskedChildContext;var w={},_;for(_ in x)w[_]=n[_];return t&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=n,r.__reactInternalMemoizedMaskedChildContext=w),w}function xr(r){return r=r.childContextTypes,r!=null}function wi(){Ct(_r),Ct(fr)}function Ic(r,n,x){if(fr.current!==Rn)throw Error(Be(168));St(fr,n),St(_r,x)}function Sf(r,n,x){var t=r.stateNode;if(n=n.childContextTypes,typeof t.getChildContext!="function")return x;t=t.getChildContext();for(var w in t)if(!(w in n))throw Error(Be(108,Tp(r)||"Unknown",w));return Rt({},x,t)}function ji(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Rn,Wn=fr.current,St(fr,r),St(_r,_r.current),!0}function Dc(r,n,x){var t=r.stateNode;if(!t)throw Error(Be(169));x?(r=Sf(r,n,Wn),t.__reactInternalMemoizedMergedChildContext=r,Ct(_r),Ct(fr),St(fr,r)):Ct(_r),St(_r,x)}var sn=null,Vi=!1,ja=!1;function Ef(r){sn===null?sn=[r]:sn.push(r)}function Hm(r){Vi=!0,Ef(r)}function Fn(){if(!ja&&sn!==null){ja=!0;var r=0,n=vt;try{var x=sn;for(vt=1;r>=c,w-=c,an=1<<32-Hr(n)+w|x<T?(P=k,k=null):P=k.sibling;var R=s(o,k,f[T],v);if(R===null){k===null&&(k=P);break}r&&k&&R.alternate===null&&n(o,k),a=_(R,a,T),O===null?S=R:O.sibling=R,O=R,k=P}if(T===f.length)return x(o,k),Ot&&Nn(o,T),S;if(k===null){for(;TT?(P=k,k=null):P=k.sibling;var M=s(o,k,R.value,v);if(M===null){k===null&&(k=P);break}r&&k&&M.alternate===null&&n(o,k),a=_(M,a,T),O===null?S=M:O.sibling=M,O=M,k=P}if(R.done)return x(o,k),Ot&&Nn(o,T),S;if(k===null){for(;!R.done;T++,R=f.next())R=y(o,R.value,v),R!==null&&(a=_(R,a,T),O===null?S=R:O.sibling=R,O=R);return Ot&&Nn(o,T),S}for(k=t(o,k);!R.done;T++,R=f.next())R=u(k,o,T,R.value,v),R!==null&&(r&&R.alternate!==null&&k.delete(R.key===null?T:R.key),a=_(R,a,T),O===null?S=R:O.sibling=R,O=R);return r&&k.forEach(function(D){return n(o,D)}),Ot&&Nn(o,T),S}function p(o,a,f,v){if(typeof f=="object"&&f!==null&&f.type===oo&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case Ns:e:{for(var S=f.key,O=a;O!==null;){if(O.key===S){if(S=f.type,S===oo){if(O.tag===7){x(o,O.sibling),a=w(O,f.props.children),a.return=o,o=a;break e}}else if(O.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===bn&&Vc(S)===O.type){x(o,O.sibling),a=w(O,f.props),a.ref=qo(o,O,f),a.return=o,o=a;break e}x(o,O);break}else n(o,O);O=O.sibling}f.type===oo?(a=Hn(f.props.children,o.mode,v,f.key),a.return=o,o=a):(v=fi(f.type,f.key,f.props,null,o.mode,v),v.ref=qo(o,a,f),v.return=o,o=v)}return c(o);case no:e:{for(O=f.key;a!==null;){if(a.key===O)if(a.tag===4&&a.stateNode.containerInfo===f.containerInfo&&a.stateNode.implementation===f.implementation){x(o,a.sibling),a=w(a,f.children||[]),a.return=o,o=a;break e}else{x(o,a);break}else n(o,a);a=a.sibling}a=Pa(f,o.mode,v),a.return=o,o=a}return c(o);case bn:return O=f._init,p(o,a,O(f._payload),v)}if(Qo(f))return l(o,a,f,v);if(Go(f))return d(o,a,f,v);Zs(o,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,a!==null&&a.tag===6?(x(o,a.sibling),a=w(a,f),a.return=o,o=a):(x(o,a),a=Oa(f,o.mode,v),a.return=o,o=a),c(o)):x(o,a)}return p}var Eo=Af(!0),Rf=Af(!1),Cs={},tn=Dn(Cs),bs=Dn(Cs),_s=Dn(Cs);function zn(r){if(r===Cs)throw Error(Be(174));return r}function Jl(r,n){switch(St(_s,n),St(bs,r),St(tn,Cs),r=n.nodeType,r){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Ga(null,"");break;default:r=r===8?n.parentNode:n,n=r.namespaceURI||null,r=r.tagName,n=Ga(n,r)}Ct(tn),St(tn,n)}function ko(){Ct(tn),Ct(bs),Ct(_s)}function If(r){zn(_s.current);var n=zn(tn.current),x=Ga(n,r.type);n!==x&&(St(bs,r),St(tn,x))}function eu(r){bs.current===r&&(Ct(tn),Ct(bs))}var Lt=Dn(0);function Ci(r){for(var n=r;n!==null;){if(n.tag===13){var x=n.memoizedState;if(x!==null&&(x=x.dehydrated,x===null||x.data==="$?"||x.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break;for(;n.sibling===null;){if(n.return===null||n.return===r)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Sa=[];function tu(){for(var r=0;rx?x:4,r(!0);var t=Ea.transition;Ea.transition={};try{r(!1),n()}finally{vt=x,Ea.transition=t}}function $f(){return Dr().memoizedState}function Ym(r,n,x){var t=Pn(r);if(x={lane:t,action:x,hasEagerState:!1,eagerState:null,next:null},Kf(r))Jf(n,x);else if(x=Cf(r,n,x,t),x!==null){var w=mr();Wr(x,r,t,w),eh(x,n,t)}}function Zm(r,n,x){var t=Pn(r),w={lane:t,action:x,hasEagerState:!1,eagerState:null,next:null};if(Kf(r))Jf(n,w);else{var _=r.alternate;if(r.lanes===0&&(_===null||_.lanes===0)&&(_=n.lastRenderedReducer,_!==null))try{var c=n.lastRenderedState,m=_(c,x);if(w.hasEagerState=!0,w.eagerState=m,qr(m,c)){var i=n.interleaved;i===null?(w.next=w,$l(n)):(w.next=i.next,i.next=w),n.interleaved=w;return}}catch{}finally{}x=Cf(r,n,w,t),x!==null&&(w=mr(),Wr(x,r,t,w),eh(x,n,t))}}function Kf(r){var n=r.alternate;return r===At||n!==null&&n===At}function Jf(r,n){os=Oi=!0;var x=r.pending;x===null?n.next=n:(n.next=x.next,x.next=n),r.pending=n}function eh(r,n,x){if(x&4194240){var t=n.lanes;t&=r.pendingLanes,x|=t,n.lanes=x,Fl(r,x)}}var Pi={readContext:Ir,useCallback:ur,useContext:ur,useEffect:ur,useImperativeHandle:ur,useInsertionEffect:ur,useLayoutEffect:ur,useMemo:ur,useReducer:ur,useRef:ur,useState:ur,useDebugValue:ur,useDeferredValue:ur,useTransition:ur,useMutableSource:ur,useSyncExternalStore:ur,useId:ur,unstable_isNewReconciler:!1},Qm={readContext:Ir,useCallback:function(r,n){return Kr().memoizedState=[r,n===void 0?null:n],r},useContext:Ir,useEffect:Wc,useImperativeHandle:function(r,n,x){return x=x!=null?x.concat([r]):null,li(4194308,4,qf.bind(null,n,r),x)},useLayoutEffect:function(r,n){return li(4194308,4,r,n)},useInsertionEffect:function(r,n){return li(4,2,r,n)},useMemo:function(r,n){var x=Kr();return n=n===void 0?null:n,r=r(),x.memoizedState=[r,n],r},useReducer:function(r,n,x){var t=Kr();return n=x!==void 0?x(n):n,t.memoizedState=t.baseState=n,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:n},t.queue=r,r=r.dispatch=Ym.bind(null,At,r),[t.memoizedState,r]},useRef:function(r){var n=Kr();return r={current:r},n.memoizedState=r},useState:Hc,useDebugValue:iu,useDeferredValue:function(r){return Kr().memoizedState=r},useTransition:function(){var r=Hc(!1),n=r[0];return r=Xm.bind(null,r[1]),Kr().memoizedState=r,[n,r]},useMutableSource:function(){},useSyncExternalStore:function(r,n,x){var t=At,w=Kr();if(Ot){if(x===void 0)throw Error(Be(407));x=x()}else{if(x=n(),Kt===null)throw Error(Be(349));Xn&30||Nf(t,n,x)}w.memoizedState=x;var _={value:x,getSnapshot:n};return w.queue=_,Wc(Bf.bind(null,t,_,r),[r]),t.flags|=2048,js(9,Uf.bind(null,t,_,x,n),void 0,null),x},useId:function(){var r=Kr(),n=Kt.identifierPrefix;if(Ot){var x=ln,t=an;x=(t&~(1<<32-Hr(t)-1)).toString(32)+x,n=":"+n+"R"+x,x=xs++,0m||w[d]!==_[m]){var i=` +`+w[d].replace(" at new "," at ");return r.displayName&&i.includes("")&&(i=i.replace("",r.displayName)),i}while(1<=d&&0<=m);break}}}finally{la=!1,Error.prepareStackTrace=x}return(r=r?r.displayName||r.name:"")?Zo(r):""}function kp(r){switch(r.tag){case 5:return Zo(r.type);case 16:return Zo("Lazy");case 13:return Zo("Suspense");case 19:return Zo("SuspenseList");case 0:case 2:case 15:return r=ua(r.type,!1),r;case 11:return r=ua(r.type.render,!1),r;case 1:return r=ua(r.type,!0),r;default:return""}}function Da(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case oo:return"Fragment";case no:return"Portal";case Aa:return"Profiler";case Ll:return"StrictMode";case Ra:return"Suspense";case Ia:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Pd:return(r.displayName||"Context")+".Consumer";case Od:return(r._context.displayName||"Context")+".Provider";case Al:var n=r.render;return r=r.displayName,r||(r=n.displayName||n.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Rl:return n=r.displayName||null,n!==null?n:Da(r.type)||"Memo";case bn:n=r._payload,r=r._init;try{return Da(r(n))}catch{}}return null}function Tp(r){var n=r.type;switch(r.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=n.render,r=r.displayName||r.name||"",n.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Da(n);case 8:return n===Ll?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function An(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Ad(r){var n=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Mp(r){var n=Ad(r)?"checked":"value",x=Object.getOwnPropertyDescriptor(r.constructor.prototype,n),t=""+r[n];if(!r.hasOwnProperty(n)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var w=x.get,_=x.set;return Object.defineProperty(r,n,{configurable:!0,get:function(){return w.call(this)},set:function(d){t=""+d,_.call(this,d)}}),Object.defineProperty(r,n,{enumerable:x.enumerable}),{getValue:function(){return t},setValue:function(d){t=""+d},stopTracking:function(){r._valueTracker=null,delete r[n]}}}}function Us(r){r._valueTracker||(r._valueTracker=Mp(r))}function Rd(r){if(!r)return!1;var n=r._valueTracker;if(!n)return!0;var x=n.getValue(),t="";return r&&(t=Ad(r)?r.checked?"true":"false":r.value),r=t,r!==x?(n.setValue(r),!0):!1}function hi(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Fa(r,n){var x=n.checked;return Rt({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:x??r._wrapperState.initialChecked})}function lc(r,n){var x=n.defaultValue==null?"":n.defaultValue,t=n.checked!=null?n.checked:n.defaultChecked;x=An(n.value!=null?n.value:x),r._wrapperState={initialChecked:t,initialValue:x,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Id(r,n){n=n.checked,n!=null&&Pl(r,"checked",n,!1)}function Na(r,n){Id(r,n);var x=An(n.value),t=n.type;if(x!=null)t==="number"?(x===0&&r.value===""||r.value!=x)&&(r.value=""+x):r.value!==""+x&&(r.value=""+x);else if(t==="submit"||t==="reset"){r.removeAttribute("value");return}n.hasOwnProperty("value")?Ua(r,n.type,x):n.hasOwnProperty("defaultValue")&&Ua(r,n.type,An(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(r.defaultChecked=!!n.defaultChecked)}function uc(r,n,x){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var t=n.type;if(!(t!=="submit"&&t!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+r._wrapperState.initialValue,x||n===r.value||(r.value=n),r.defaultValue=n}x=r.name,x!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,x!==""&&(r.name=x)}function Ua(r,n,x){(n!=="number"||hi(r.ownerDocument)!==r)&&(x==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+x&&(r.defaultValue=""+x))}var Qo=Array.isArray;function yo(r,n,x,t){if(r=r.options,n){n={};for(var w=0;w"+n.valueOf().toString()+"",n=Bs.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;n.firstChild;)r.appendChild(n.firstChild)}});function us(r,n){if(n){var x=r.firstChild;if(x&&x===r.lastChild&&x.nodeType===3){x.nodeValue=n;return}}r.textContent=n}var Jo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Cp=["Webkit","ms","Moz","O"];Object.keys(Jo).forEach(function(r){Cp.forEach(function(n){n=n+r.charAt(0).toUpperCase()+r.substring(1),Jo[n]=Jo[r]})});function Ud(r,n,x){return n==null||typeof n=="boolean"||n===""?"":x||typeof n!="number"||n===0||Jo.hasOwnProperty(r)&&Jo[r]?(""+n).trim():n+"px"}function Bd(r,n){r=r.style;for(var x in n)if(n.hasOwnProperty(x)){var t=x.indexOf("--")===0,w=Ud(x,n[x],t);x==="float"&&(x="cssFloat"),t?r.setProperty(x,w):r[x]=w}}var Op=Rt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function za(r,n){if(n){if(Op[r]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(Be(137,r));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(Be(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(Be(61))}if(n.style!=null&&typeof n.style!="object")throw Error(Be(62))}}function Va(r,n){if(r.indexOf("-")===-1)return typeof n.is=="string";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ha=null;function Il(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Wa=null,go=null,vo=null;function fc(r){if(r=Ms(r)){if(typeof Wa!="function")throw Error(Be(280));var n=r.stateNode;n&&(n=zi(n),Wa(r.stateNode,r.type,n))}}function Gd(r){go?vo?vo.push(r):vo=[r]:go=r}function zd(){if(go){var r=go,n=vo;if(vo=go=null,fc(r),n)for(r=0;r>>=0,r===0?32:31-(Gp(r)/zp|0)|0}var Gs=64,zs=4194304;function $o(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function gi(r,n){var x=r.pendingLanes;if(x===0)return 0;var t=0,w=r.suspendedLanes,_=r.pingedLanes,d=x&268435455;if(d!==0){var m=d&~w;m!==0?t=$o(m):(_&=d,_!==0&&(t=$o(_)))}else d=x&~w,d!==0?t=$o(d):_!==0&&(t=$o(_));if(t===0)return 0;if(n!==0&&n!==t&&!(n&w)&&(w=t&-t,_=n&-n,w>=_||w===16&&(_&4194240)!==0))return n;if(t&4&&(t|=x&16),n=r.entangledLanes,n!==0)for(r=r.entanglements,n&=t;0x;x++)n.push(r);return n}function ks(r,n,x){r.pendingLanes|=n,n!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,n=31-Hr(n),r[n]=x}function qp(r,n){var x=r.pendingLanes&~n;r.pendingLanes=n,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=n,r.mutableReadLanes&=n,r.entangledLanes&=n,n=r.entanglements;var t=r.eventTimes;for(r=r.expirationTimes;0=ts),xc=" ",wc=!1;function uf(r,n){switch(r){case"keyup":return _m.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cf(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var so=!1;function wm(r,n){switch(r){case"compositionend":return cf(n);case"keypress":return n.which!==32?null:(wc=!0,xc);case"textInput":return r=n.data,r===xc&&wc?null:r;default:return null}}function jm(r,n){if(so)return r==="compositionend"||!Vl&&uf(r,n)?(r=af(),oi=Bl=jn=null,so=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:x,offset:n-r};r=t}e:{for(;x;){if(x.nextSibling){x=x.nextSibling;break e}x=x.parentNode}x=void 0}x=kc(x)}}function pf(r,n){return r&&n?r===n?!0:r&&r.nodeType===3?!1:n&&n.nodeType===3?pf(r,n.parentNode):"contains"in r?r.contains(n):r.compareDocumentPosition?!!(r.compareDocumentPosition(n)&16):!1:!1}function mf(){for(var r=window,n=hi();n instanceof r.HTMLIFrameElement;){try{var x=typeof n.contentWindow.location.href=="string"}catch{x=!1}if(x)r=n.contentWindow;else break;n=hi(r.document)}return n}function Hl(r){var n=r&&r.nodeName&&r.nodeName.toLowerCase();return n&&(n==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||n==="textarea"||r.contentEditable==="true")}function Lm(r){var n=mf(),x=r.focusedElem,t=r.selectionRange;if(n!==x&&x&&x.ownerDocument&&pf(x.ownerDocument.documentElement,x)){if(t!==null&&Hl(x)){if(n=t.start,r=t.end,r===void 0&&(r=n),"selectionStart"in x)x.selectionStart=n,x.selectionEnd=Math.min(r,x.value.length);else if(r=(n=x.ownerDocument||document)&&n.defaultView||window,r.getSelection){r=r.getSelection();var w=x.textContent.length,_=Math.min(t.start,w);t=t.end===void 0?_:Math.min(t.end,w),!r.extend&&_>t&&(w=t,t=_,_=w),w=Tc(x,_);var d=Tc(x,t);w&&d&&(r.rangeCount!==1||r.anchorNode!==w.node||r.anchorOffset!==w.offset||r.focusNode!==d.node||r.focusOffset!==d.offset)&&(n=n.createRange(),n.setStart(w.node,w.offset),r.removeAllRanges(),_>t?(r.addRange(n),r.extend(d.node,d.offset)):(n.setEnd(d.node,d.offset),r.addRange(n)))}}for(n=[],r=x;r=r.parentNode;)r.nodeType===1&&n.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x=document.documentMode,io=null,$a=null,ns=null,Ka=!1;function Mc(r,n,x){var t=x.window===x?x.document:x.nodeType===9?x:x.ownerDocument;Ka||io==null||io!==hi(t)||(t=io,"selectionStart"in t&&Hl(t)?t={start:t.selectionStart,end:t.selectionEnd}:(t=(t.ownerDocument&&t.ownerDocument.defaultView||window).getSelection(),t={anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}),ns&&ms(ns,t)||(ns=t,t=_i($a,"onSelect"),0uo||(r.current=ol[uo],ol[uo]=null,uo--)}function St(r,n){uo++,ol[uo]=r.current,r.current=n}var Rn={},fr=Dn(Rn),_r=Dn(!1),Wn=Rn;function jo(r,n){var x=r.type.contextTypes;if(!x)return Rn;var t=r.stateNode;if(t&&t.__reactInternalMemoizedUnmaskedChildContext===n)return t.__reactInternalMemoizedMaskedChildContext;var w={},_;for(_ in x)w[_]=n[_];return t&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=n,r.__reactInternalMemoizedMaskedChildContext=w),w}function xr(r){return r=r.childContextTypes,r!=null}function wi(){Ct(_r),Ct(fr)}function Ic(r,n,x){if(fr.current!==Rn)throw Error(Be(168));St(fr,n),St(_r,x)}function Sf(r,n,x){var t=r.stateNode;if(n=n.childContextTypes,typeof t.getChildContext!="function")return x;t=t.getChildContext();for(var w in t)if(!(w in n))throw Error(Be(108,Tp(r)||"Unknown",w));return Rt({},x,t)}function ji(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Rn,Wn=fr.current,St(fr,r),St(_r,_r.current),!0}function Dc(r,n,x){var t=r.stateNode;if(!t)throw Error(Be(169));x?(r=Sf(r,n,Wn),t.__reactInternalMemoizedMergedChildContext=r,Ct(_r),Ct(fr),St(fr,r)):Ct(_r),St(_r,x)}var sn=null,Vi=!1,ja=!1;function Ef(r){sn===null?sn=[r]:sn.push(r)}function Hm(r){Vi=!0,Ef(r)}function Fn(){if(!ja&&sn!==null){ja=!0;var r=0,n=vt;try{var x=sn;for(vt=1;r>=d,w-=d,an=1<<32-Hr(n)+w|x<T?(P=k,k=null):P=k.sibling;var R=s(o,k,f[T],v);if(R===null){k===null&&(k=P);break}r&&k&&R.alternate===null&&n(o,k),l=_(R,l,T),O===null?S=R:O.sibling=R,O=R,k=P}if(T===f.length)return x(o,k),Ot&&Nn(o,T),S;if(k===null){for(;TT?(P=k,k=null):P=k.sibling;var M=s(o,k,R.value,v);if(M===null){k===null&&(k=P);break}r&&k&&M.alternate===null&&n(o,k),l=_(M,l,T),O===null?S=M:O.sibling=M,O=M,k=P}if(R.done)return x(o,k),Ot&&Nn(o,T),S;if(k===null){for(;!R.done;T++,R=f.next())R=y(o,R.value,v),R!==null&&(l=_(R,l,T),O===null?S=R:O.sibling=R,O=R);return Ot&&Nn(o,T),S}for(k=t(o,k);!R.done;T++,R=f.next())R=u(k,o,T,R.value,v),R!==null&&(r&&R.alternate!==null&&k.delete(R.key===null?T:R.key),l=_(R,l,T),O===null?S=R:O.sibling=R,O=R);return r&&k.forEach(function(D){return n(o,D)}),Ot&&Nn(o,T),S}function p(o,l,f,v){if(typeof f=="object"&&f!==null&&f.type===oo&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case Ns:e:{for(var S=f.key,O=l;O!==null;){if(O.key===S){if(S=f.type,S===oo){if(O.tag===7){x(o,O.sibling),l=w(O,f.props.children),l.return=o,o=l;break e}}else if(O.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===bn&&Vc(S)===O.type){x(o,O.sibling),l=w(O,f.props),l.ref=qo(o,O,f),l.return=o,o=l;break e}x(o,O);break}else n(o,O);O=O.sibling}f.type===oo?(l=Hn(f.props.children,o.mode,v,f.key),l.return=o,o=l):(v=fi(f.type,f.key,f.props,null,o.mode,v),v.ref=qo(o,l,f),v.return=o,o=v)}return d(o);case no:e:{for(O=f.key;l!==null;){if(l.key===O)if(l.tag===4&&l.stateNode.containerInfo===f.containerInfo&&l.stateNode.implementation===f.implementation){x(o,l.sibling),l=w(l,f.children||[]),l.return=o,o=l;break e}else{x(o,l);break}else n(o,l);l=l.sibling}l=Pa(f,o.mode,v),l.return=o,o=l}return d(o);case bn:return O=f._init,p(o,l,O(f._payload),v)}if(Qo(f))return a(o,l,f,v);if(Go(f))return c(o,l,f,v);Zs(o,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,l!==null&&l.tag===6?(x(o,l.sibling),l=w(l,f),l.return=o,o=l):(x(o,l),l=Oa(f,o.mode,v),l.return=o,o=l),d(o)):x(o,l)}return p}var Eo=Af(!0),Rf=Af(!1),Cs={},tn=Dn(Cs),bs=Dn(Cs),_s=Dn(Cs);function zn(r){if(r===Cs)throw Error(Be(174));return r}function Jl(r,n){switch(St(_s,n),St(bs,r),St(tn,Cs),r=n.nodeType,r){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Ga(null,"");break;default:r=r===8?n.parentNode:n,n=r.namespaceURI||null,r=r.tagName,n=Ga(n,r)}Ct(tn),St(tn,n)}function ko(){Ct(tn),Ct(bs),Ct(_s)}function If(r){zn(_s.current);var n=zn(tn.current),x=Ga(n,r.type);n!==x&&(St(bs,r),St(tn,x))}function eu(r){bs.current===r&&(Ct(tn),Ct(bs))}var Lt=Dn(0);function Ci(r){for(var n=r;n!==null;){if(n.tag===13){var x=n.memoizedState;if(x!==null&&(x=x.dehydrated,x===null||x.data==="$?"||x.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break;for(;n.sibling===null;){if(n.return===null||n.return===r)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Sa=[];function tu(){for(var r=0;rx?x:4,r(!0);var t=Ea.transition;Ea.transition={};try{r(!1),n()}finally{vt=x,Ea.transition=t}}function $f(){return Dr().memoizedState}function Ym(r,n,x){var t=Pn(r);if(x={lane:t,action:x,hasEagerState:!1,eagerState:null,next:null},Kf(r))Jf(n,x);else if(x=Cf(r,n,x,t),x!==null){var w=mr();Wr(x,r,t,w),eh(x,n,t)}}function Zm(r,n,x){var t=Pn(r),w={lane:t,action:x,hasEagerState:!1,eagerState:null,next:null};if(Kf(r))Jf(n,w);else{var _=r.alternate;if(r.lanes===0&&(_===null||_.lanes===0)&&(_=n.lastRenderedReducer,_!==null))try{var d=n.lastRenderedState,m=_(d,x);if(w.hasEagerState=!0,w.eagerState=m,qr(m,d)){var i=n.interleaved;i===null?(w.next=w,$l(n)):(w.next=i.next,i.next=w),n.interleaved=w;return}}catch{}finally{}x=Cf(r,n,w,t),x!==null&&(w=mr(),Wr(x,r,t,w),eh(x,n,t))}}function Kf(r){var n=r.alternate;return r===At||n!==null&&n===At}function Jf(r,n){os=Oi=!0;var x=r.pending;x===null?n.next=n:(n.next=x.next,x.next=n),r.pending=n}function eh(r,n,x){if(x&4194240){var t=n.lanes;t&=r.pendingLanes,x|=t,n.lanes=x,Fl(r,x)}}var Pi={readContext:Ir,useCallback:ur,useContext:ur,useEffect:ur,useImperativeHandle:ur,useInsertionEffect:ur,useLayoutEffect:ur,useMemo:ur,useReducer:ur,useRef:ur,useState:ur,useDebugValue:ur,useDeferredValue:ur,useTransition:ur,useMutableSource:ur,useSyncExternalStore:ur,useId:ur,unstable_isNewReconciler:!1},Qm={readContext:Ir,useCallback:function(r,n){return Kr().memoizedState=[r,n===void 0?null:n],r},useContext:Ir,useEffect:Wc,useImperativeHandle:function(r,n,x){return x=x!=null?x.concat([r]):null,li(4194308,4,qf.bind(null,n,r),x)},useLayoutEffect:function(r,n){return li(4194308,4,r,n)},useInsertionEffect:function(r,n){return li(4,2,r,n)},useMemo:function(r,n){var x=Kr();return n=n===void 0?null:n,r=r(),x.memoizedState=[r,n],r},useReducer:function(r,n,x){var t=Kr();return n=x!==void 0?x(n):n,t.memoizedState=t.baseState=n,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:n},t.queue=r,r=r.dispatch=Ym.bind(null,At,r),[t.memoizedState,r]},useRef:function(r){var n=Kr();return r={current:r},n.memoizedState=r},useState:Hc,useDebugValue:iu,useDeferredValue:function(r){return Kr().memoizedState=r},useTransition:function(){var r=Hc(!1),n=r[0];return r=Xm.bind(null,r[1]),Kr().memoizedState=r,[n,r]},useMutableSource:function(){},useSyncExternalStore:function(r,n,x){var t=At,w=Kr();if(Ot){if(x===void 0)throw Error(Be(407));x=x()}else{if(x=n(),Kt===null)throw Error(Be(349));Xn&30||Nf(t,n,x)}w.memoizedState=x;var _={value:x,getSnapshot:n};return w.queue=_,Wc(Bf.bind(null,t,_,r),[r]),t.flags|=2048,js(9,Uf.bind(null,t,_,x,n),void 0,null),x},useId:function(){var r=Kr(),n=Kt.identifierPrefix;if(Ot){var x=ln,t=an;x=(t&~(1<<32-Hr(t)-1)).toString(32)+x,n=":"+n+"R"+x,x=xs++,0<\/script>",r=r.removeChild(r.firstChild)):typeof t.is=="string"?r=c.createElement(x,{is:t.is}):(r=c.createElement(x),x==="select"&&(c=r,t.multiple?c.multiple=!0:t.size&&(c.size=t.size))):r=c.createElementNS(r,x),r[Jr]=n,r[vs]=t,uh(r,n,!1,!1),n.stateNode=r;e:{switch(c=Va(x,t),x){case"dialog":Mt("cancel",r),Mt("close",r),w=t;break;case"iframe":case"object":case"embed":Mt("load",r),w=t;break;case"video":case"audio":for(w=0;wMo&&(n.flags|=128,t=!0,Xo(_,!1),n.lanes=4194304)}else{if(!t)if(r=Ci(c),r!==null){if(n.flags|=128,t=!0,x=r.updateQueue,x!==null&&(n.updateQueue=x,n.flags|=4),Xo(_,!0),_.tail===null&&_.tailMode==="hidden"&&!c.alternate&&!Ot)return cr(n),null}else 2*Ut()-_.renderingStartTime>Mo&&x!==1073741824&&(n.flags|=128,t=!0,Xo(_,!1),n.lanes=4194304);_.isBackwards?(c.sibling=n.child,n.child=c):(x=_.last,x!==null?x.sibling=c:n.child=c,_.last=c)}return _.tail!==null?(n=_.tail,_.rendering=n,_.tail=n.sibling,_.renderingStartTime=Ut(),n.sibling=null,x=Lt.current,St(Lt,t?x&1|2:x&1),n):(cr(n),null);case 22:case 23:return fu(),t=n.memoizedState!==null,r!==null&&r.memoizedState!==null!==t&&(n.flags|=8192),t&&n.mode&1?Er&1073741824&&(cr(n),n.subtreeFlags&6&&(n.flags|=8192)):cr(n),null;case 24:return null;case 25:return null}throw Error(Be(156,n.tag))}function oy(r,n){switch(ql(n),n.tag){case 1:return xr(n.type)&&wi(),r=n.flags,r&65536?(n.flags=r&-65537|128,n):null;case 3:return ko(),Ct(_r),Ct(fr),tu(),r=n.flags,r&65536&&!(r&128)?(n.flags=r&-65537|128,n):null;case 5:return eu(n),null;case 13:if(Ct(Lt),r=n.memoizedState,r!==null&&r.dehydrated!==null){if(n.alternate===null)throw Error(Be(340));So()}return r=n.flags,r&65536?(n.flags=r&-65537|128,n):null;case 19:return Ct(Lt),null;case 4:return ko(),null;case 10:return Ql(n.type._context),null;case 22:case 23:return fu(),null;case 24:return null;default:return null}}var $s=!1,dr=!1,sy=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function po(r,n){var x=r.ref;if(x!==null)if(typeof x=="function")try{x(null)}catch(t){Ft(r,n,t)}else x.current=null}function yl(r,n,x){try{x()}catch(t){Ft(r,n,t)}}var ed=!1;function iy(r,n){if(Ja=vi,r=mf(),Hl(r)){if("selectionStart"in r)var x={start:r.selectionStart,end:r.selectionEnd};else e:{x=(x=r.ownerDocument)&&x.defaultView||window;var t=x.getSelection&&x.getSelection();if(t&&t.rangeCount!==0){x=t.anchorNode;var w=t.anchorOffset,_=t.focusNode;t=t.focusOffset;try{x.nodeType,_.nodeType}catch{x=null;break e}var c=0,m=-1,i=-1,h=0,b=0,y=r,s=null;t:for(;;){for(var u;y!==x||w!==0&&y.nodeType!==3||(m=c+w),y!==_||t!==0&&y.nodeType!==3||(i=c+t),y.nodeType===3&&(c+=y.nodeValue.length),(u=y.firstChild)!==null;)s=y,y=u;for(;;){if(y===r)break t;if(s===x&&++h===w&&(m=c),s===_&&++b===t&&(i=c),(u=y.nextSibling)!==null)break;y=s,s=y.parentNode}y=u}x=m===-1||i===-1?null:{start:m,end:i}}else x=null}x=x||{start:0,end:0}}else x=null;for(el={focusedElem:r,selectionRange:x},vi=!1,Ke=n;Ke!==null;)if(n=Ke,r=n.child,(n.subtreeFlags&1028)!==0&&r!==null)r.return=n,Ke=r;else for(;Ke!==null;){n=Ke;try{var l=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(l!==null){var d=l.memoizedProps,p=l.memoizedState,o=n.stateNode,a=o.getSnapshotBeforeUpdate(n.elementType===n.type?d:Gr(n.type,d),p);o.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var f=n.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Be(163))}}catch(v){Ft(n,n.return,v)}if(r=n.sibling,r!==null){r.return=n.return,Ke=r;break}Ke=n.return}return l=ed,ed=!1,l}function ss(r,n,x){var t=n.updateQueue;if(t=t!==null?t.lastEffect:null,t!==null){var w=t=t.next;do{if((w.tag&r)===r){var _=w.destroy;w.destroy=void 0,_!==void 0&&yl(n,x,_)}w=w.next}while(w!==t)}}function qi(r,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var x=n=n.next;do{if((x.tag&r)===r){var t=x.create;x.destroy=t()}x=x.next}while(x!==n)}}function gl(r){var n=r.ref;if(n!==null){var x=r.stateNode;switch(r.tag){case 5:r=x;break;default:r=x}typeof n=="function"?n(r):n.current=r}}function fh(r){var n=r.alternate;n!==null&&(r.alternate=null,fh(n)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(n=r.stateNode,n!==null&&(delete n[Jr],delete n[vs],delete n[nl],delete n[zm],delete n[Vm])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function hh(r){return r.tag===5||r.tag===3||r.tag===4}function td(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||hh(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function vl(r,n,x){var t=r.tag;if(t===5||t===6)r=r.stateNode,n?x.nodeType===8?x.parentNode.insertBefore(r,n):x.insertBefore(r,n):(x.nodeType===8?(n=x.parentNode,n.insertBefore(r,x)):(n=x,n.appendChild(r)),x=x._reactRootContainer,x!=null||n.onclick!==null||(n.onclick=xi));else if(t!==4&&(r=r.child,r!==null))for(vl(r,n,x),r=r.sibling;r!==null;)vl(r,n,x),r=r.sibling}function bl(r,n,x){var t=r.tag;if(t===5||t===6)r=r.stateNode,n?x.insertBefore(r,n):x.appendChild(r);else if(t!==4&&(r=r.child,r!==null))for(bl(r,n,x),r=r.sibling;r!==null;)bl(r,n,x),r=r.sibling}var rr=null,zr=!1;function vn(r,n,x){for(x=x.child;x!==null;)ph(r,n,x),x=x.sibling}function ph(r,n,x){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(Ni,x)}catch{}switch(x.tag){case 5:dr||po(x,n);case 6:var t=rr,w=zr;rr=null,vn(r,n,x),rr=t,zr=w,rr!==null&&(zr?(r=rr,x=x.stateNode,r.nodeType===8?r.parentNode.removeChild(x):r.removeChild(x)):rr.removeChild(x.stateNode));break;case 18:rr!==null&&(zr?(r=rr,x=x.stateNode,r.nodeType===8?wa(r.parentNode,x):r.nodeType===1&&wa(r,x),hs(r)):wa(rr,x.stateNode));break;case 4:t=rr,w=zr,rr=x.stateNode.containerInfo,zr=!0,vn(r,n,x),rr=t,zr=w;break;case 0:case 11:case 14:case 15:if(!dr&&(t=x.updateQueue,t!==null&&(t=t.lastEffect,t!==null))){w=t=t.next;do{var _=w,c=_.destroy;_=_.tag,c!==void 0&&(_&2||_&4)&&yl(x,n,c),w=w.next}while(w!==t)}vn(r,n,x);break;case 1:if(!dr&&(po(x,n),t=x.stateNode,typeof t.componentWillUnmount=="function"))try{t.props=x.memoizedProps,t.state=x.memoizedState,t.componentWillUnmount()}catch(m){Ft(x,n,m)}vn(r,n,x);break;case 21:vn(r,n,x);break;case 22:x.mode&1?(dr=(t=dr)||x.memoizedState!==null,vn(r,n,x),dr=t):vn(r,n,x);break;default:vn(r,n,x)}}function rd(r){var n=r.updateQueue;if(n!==null){r.updateQueue=null;var x=r.stateNode;x===null&&(x=r.stateNode=new sy),n.forEach(function(t){var w=my.bind(null,r,t);x.has(t)||(x.add(t),t.then(w,w))})}}function Br(r,n){var x=n.deletions;if(x!==null)for(var t=0;tw&&(w=c),t&=~_}if(t=w,t=Ut()-t,t=(120>t?120:480>t?480:1080>t?1080:1920>t?1920:3e3>t?3e3:4320>t?4320:1960*ly(t/1960))-t,10r?16:r,Sn===null)var t=!1;else{if(r=Sn,Sn=null,Ri=0,mt&6)throw Error(Be(331));var w=mt;for(mt|=4,Ke=r.current;Ke!==null;){var _=Ke,c=_.child;if(Ke.flags&16){var m=_.deletions;if(m!==null){for(var i=0;iUt()-cu?Vn(r,0):uu|=x),wr(r,n)}function wh(r,n){n===0&&(r.mode&1?(n=zs,zs<<=1,!(zs&130023424)&&(zs=4194304)):n=1);var x=mr();r=fn(r,n),r!==null&&(ks(r,n,x),wr(r,x))}function py(r){var n=r.memoizedState,x=0;n!==null&&(x=n.retryLane),wh(r,x)}function my(r,n){var x=0;switch(r.tag){case 13:var t=r.stateNode,w=r.memoizedState;w!==null&&(x=w.retryLane);break;case 19:t=r.stateNode;break;default:throw Error(Be(314))}t!==null&&t.delete(n),wh(r,x)}var jh;jh=function(r,n,x){if(r!==null)if(r.memoizedProps!==n.pendingProps||_r.current)br=!0;else{if(!(r.lanes&x)&&!(n.flags&128))return br=!1,ry(r,n,x);br=!!(r.flags&131072)}else br=!1,Ot&&n.flags&1048576&&kf(n,Ei,n.index);switch(n.lanes=0,n.tag){case 2:var t=n.type;ui(r,n),r=n.pendingProps;var w=jo(n,fr.current);_o(n,x),w=nu(null,n,t,r,w,x);var _=ou();return n.flags|=1,typeof w=="object"&&w!==null&&typeof w.render=="function"&&w.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,xr(t)?(_=!0,ji(n)):_=!1,n.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,Kl(n),w.updater=Hi,n.stateNode=w,w._reactInternals=n,ul(n,t,r,x),n=fl(null,n,t,!0,_,x)):(n.tag=0,Ot&&_&&Wl(n),hr(null,n,w,x),n=n.child),n;case 16:t=n.elementType;e:{switch(ui(r,n),r=n.pendingProps,w=t._init,t=w(t._payload),n.type=t,w=n.tag=gy(t),r=Gr(t,r),w){case 0:n=dl(null,n,t,r,x);break e;case 1:n=$c(null,n,t,r,x);break e;case 11:n=Zc(null,n,t,r,x);break e;case 14:n=Qc(null,n,t,Gr(t.type,r),x);break e}throw Error(Be(306,t,""))}return n;case 0:return t=n.type,w=n.pendingProps,w=n.elementType===t?w:Gr(t,w),dl(r,n,t,w,x);case 1:return t=n.type,w=n.pendingProps,w=n.elementType===t?w:Gr(t,w),$c(r,n,t,w,x);case 3:e:{if(ih(n),r===null)throw Error(Be(387));t=n.pendingProps,_=n.memoizedState,w=_.element,Of(r,n),Mi(n,t,null,x);var c=n.memoizedState;if(t=c.element,_.isDehydrated)if(_={element:t,isDehydrated:!1,cache:c.cache,pendingSuspenseBoundaries:c.pendingSuspenseBoundaries,transitions:c.transitions},n.updateQueue.baseState=_,n.memoizedState=_,n.flags&256){w=To(Error(Be(423)),n),n=Kc(r,n,t,x,w);break e}else if(t!==w){w=To(Error(Be(424)),n),n=Kc(r,n,t,x,w);break e}else for(kr=Mn(n.stateNode.containerInfo.firstChild),Tr=n,Ot=!0,Vr=null,x=Rf(n,null,t,x),n.child=x;x;)x.flags=x.flags&-3|4096,x=x.sibling;else{if(So(),t===w){n=hn(r,n,x);break e}hr(r,n,t,x)}n=n.child}return n;case 5:return If(n),r===null&&il(n),t=n.type,w=n.pendingProps,_=r!==null?r.memoizedProps:null,c=w.children,tl(t,w)?c=null:_!==null&&tl(t,_)&&(n.flags|=32),sh(r,n),hr(r,n,c,x),n.child;case 6:return r===null&&il(n),null;case 13:return ah(r,n,x);case 4:return Jl(n,n.stateNode.containerInfo),t=n.pendingProps,r===null?n.child=Eo(n,null,t,x):hr(r,n,t,x),n.child;case 11:return t=n.type,w=n.pendingProps,w=n.elementType===t?w:Gr(t,w),Zc(r,n,t,w,x);case 7:return hr(r,n,n.pendingProps,x),n.child;case 8:return hr(r,n,n.pendingProps.children,x),n.child;case 12:return hr(r,n,n.pendingProps.children,x),n.child;case 10:e:{if(t=n.type._context,w=n.pendingProps,_=n.memoizedProps,c=w.value,St(ki,t._currentValue),t._currentValue=c,_!==null)if(qr(_.value,c)){if(_.children===w.children&&!_r.current){n=hn(r,n,x);break e}}else for(_=n.child,_!==null&&(_.return=n);_!==null;){var m=_.dependencies;if(m!==null){c=_.child;for(var i=m.firstContext;i!==null;){if(i.context===t){if(_.tag===1){i=un(-1,x&-x),i.tag=2;var h=_.updateQueue;if(h!==null){h=h.shared;var b=h.pending;b===null?i.next=i:(i.next=b.next,b.next=i),h.pending=i}}_.lanes|=x,i=_.alternate,i!==null&&(i.lanes|=x),al(_.return,x,n),m.lanes|=x;break}i=i.next}}else if(_.tag===10)c=_.type===n.type?null:_.child;else if(_.tag===18){if(c=_.return,c===null)throw Error(Be(341));c.lanes|=x,m=c.alternate,m!==null&&(m.lanes|=x),al(c,x,n),c=_.sibling}else c=_.child;if(c!==null)c.return=_;else for(c=_;c!==null;){if(c===n){c=null;break}if(_=c.sibling,_!==null){_.return=c.return,c=_;break}c=c.return}_=c}hr(r,n,w.children,x),n=n.child}return n;case 9:return w=n.type,t=n.pendingProps.children,_o(n,x),w=Ir(w),t=t(w),n.flags|=1,hr(r,n,t,x),n.child;case 14:return t=n.type,w=Gr(t,n.pendingProps),w=Gr(t.type,w),Qc(r,n,t,w,x);case 15:return nh(r,n,n.type,n.pendingProps,x);case 17:return t=n.type,w=n.pendingProps,w=n.elementType===t?w:Gr(t,w),ui(r,n),n.tag=1,xr(t)?(r=!0,ji(n)):r=!1,_o(n,x),Lf(n,t,w),ul(n,t,w,x),fl(null,n,t,!0,r,x);case 19:return lh(r,n,x);case 22:return oh(r,n,x)}throw Error(Be(156,n.tag))};function Sh(r,n){return Zd(r,n)}function yy(r,n,x,t){this.tag=r,this.key=x,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=t,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ar(r,n,x,t){return new yy(r,n,x,t)}function pu(r){return r=r.prototype,!(!r||!r.isReactComponent)}function gy(r){if(typeof r=="function")return pu(r)?1:0;if(r!=null){if(r=r.$$typeof,r===Al)return 11;if(r===Rl)return 14}return 2}function Ln(r,n){var x=r.alternate;return x===null?(x=Ar(r.tag,n,r.key,r.mode),x.elementType=r.elementType,x.type=r.type,x.stateNode=r.stateNode,x.alternate=r,r.alternate=x):(x.pendingProps=n,x.type=r.type,x.flags=0,x.subtreeFlags=0,x.deletions=null),x.flags=r.flags&14680064,x.childLanes=r.childLanes,x.lanes=r.lanes,x.child=r.child,x.memoizedProps=r.memoizedProps,x.memoizedState=r.memoizedState,x.updateQueue=r.updateQueue,n=r.dependencies,x.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},x.sibling=r.sibling,x.index=r.index,x.ref=r.ref,x}function fi(r,n,x,t,w,_){var c=2;if(t=r,typeof r=="function")pu(r)&&(c=1);else if(typeof r=="string")c=5;else e:switch(r){case oo:return Hn(x.children,w,_,n);case Ll:c=8,w|=8;break;case Aa:return r=Ar(12,x,n,w|2),r.elementType=Aa,r.lanes=_,r;case Ra:return r=Ar(13,x,n,w),r.elementType=Ra,r.lanes=_,r;case Ia:return r=Ar(19,x,n,w),r.elementType=Ia,r.lanes=_,r;case Ld:return Yi(x,w,_,n);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Od:c=10;break e;case Pd:c=9;break e;case Al:c=11;break e;case Rl:c=14;break e;case bn:c=16,t=null;break e}throw Error(Be(130,r==null?r:typeof r,""))}return n=Ar(c,x,n,w),n.elementType=r,n.type=t,n.lanes=_,n}function Hn(r,n,x,t){return r=Ar(7,r,t,n),r.lanes=x,r}function Yi(r,n,x,t){return r=Ar(22,r,t,n),r.elementType=Ld,r.lanes=x,r.stateNode={isHidden:!1},r}function Oa(r,n,x){return r=Ar(6,r,null,n),r.lanes=x,r}function Pa(r,n,x){return n=Ar(4,r.children!==null?r.children:[],r.key,n),n.lanes=x,n.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},n}function vy(r,n,x,t,w){this.tag=n,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=da(0),this.expirationTimes=da(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=da(0),this.identifierPrefix=t,this.onRecoverableError=w,this.mutableSourceEagerHydrationData=null}function mu(r,n,x,t,w,_,c,m,i){return r=new vy(r,n,x,m,i),n===1?(n=1,_===!0&&(n|=8)):n=0,_=Ar(3,null,null,n),r.current=_,_.stateNode=r,_.memoizedState={element:t,isDehydrated:x,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kl(_),r}function by(r,n,x){var t=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Mh)}catch(r){console.error(r)}}Mh(),Ed.exports=Cr;var Sy=Ed.exports,Ch,cd=Sy;Ch=cd.createRoot,cd.hydrateRoot;function Sl(r){let n=0;r.setup=()=>r.createCanvas(300,300,r.WEBGL),r.updateWithProps=x=>{x.rotation&&(n=x.rotation*Math.PI/180)},r.draw=()=>{r.background(100),r.normalMaterial(),r.noStroke(),r.push(),r.translate(-35,0),r.rotateY(n),r.rotateX(-.9),r.box(100),r.pop(),r.noFill(),r.stroke(255),r.push(),r.translate(400,r.height*.35,-200),r.sphere(300),r.pop()}}const dd=Object.freeze(Object.defineProperty({__proto__:null,sketch:Sl},Symbol.toStringTag,{value:"Module"}));function Oh(r){let n=0;r.setup=()=>r.createCanvas(300,300,r.WEBGL),r.updateWithProps=x=>{x.rotation&&(n=x.rotation*Math.PI/180)},r.draw=()=>{r.background(100),r.normalMaterial(),r.push(),r.rotateZ(n),r.rotateX(n),r.rotateY(n),r.plane(100),r.pop()}}const fd=Object.freeze(Object.defineProperty({__proto__:null,sketch:Oh},Symbol.toStringTag,{value:"Module"}));function Ph(r){let n=0;r.setup=()=>r.createCanvas(300,300,r.WEBGL),r.updateWithProps=x=>{x.rotation&&(n=(x.rotation/4+10)*Math.PI/180)},r.draw=()=>{r.background(100),r.normalMaterial(),r.noStroke(),r.push(),r.translate(-30,0),r.rotateY(n),r.rotateX(-.9),r.torus(70,20),r.pop(),r.noFill(),r.stroke(255),r.push(),r.translate(300,r.height*.5,-500),r.cone(100,100),r.pop()}}const hd=Object.freeze(Object.defineProperty({__proto__:null,sketch:Ph},Symbol.toStringTag,{value:"Module"})),Ey={Date:!0,RegExp:!0,String:!0,Number:!0};function Lh(r,n,x={cyclesFix:!0},t=[]){var m,i;let w=[];const _=Array.isArray(r);for(const h in r){const b=r[h],y=_?+h:h;if(!(h in n)){w.push({type:"REMOVE",path:[y],oldValue:r[h]});continue}const s=n[h],u=typeof b=="object"&&typeof s=="object";if(b&&s&&u&&!Ey[(i=(m=Object.getPrototypeOf(b))==null?void 0:m.constructor)==null?void 0:i.name]&&(!x.cyclesFix||!t.includes(b))){const l=Lh(b,s,x,x.cyclesFix?t.concat([b]):[]);w.push.apply(w,l.map(d=>(d.path.unshift(y),d)))}else b!==s&&!(u&&(isNaN(b)?b+""==s+"":+b==+s))&&w.push({path:[y],type:"CHANGE",value:s,oldValue:b})}const c=Array.isArray(n);for(const h in n)h in r||w.push({type:"CREATE",path:[c?+h:h],value:n[h]});return w}function ky(r,n){return Lh(r,n).length===0}const Ty="react-p5-wrapper";function ei(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ah={exports:{}};/*! p5.js v1.9.1 February 29, 2024 */(function(r,n){(function(x){r.exports=x()})(function(){var x;return function t(w,_,c){function m(b,y){if(!_[b]){if(!w[b]){var s=typeof ei=="function"&&ei;if(!y&&s)return s(b,!0);if(i)return i(b,!0);throw(y=new Error("Cannot find module '"+b+"'")).code="MODULE_NOT_FOUND",y}s=_[b]={exports:{}},w[b][0].call(s.exports,function(u){return m(w[b][1][u]||u)},s,s.exports,t,w,_,c)}return _[b].exports}for(var i=typeof ei=="function"&&ei,h=0;h>16&255,a[f++]=l>>8&255,a[f++]=255&l;return o===2&&(l=m[u.charCodeAt(d)]<<2|m[u.charCodeAt(d+1)]>>4,a[f++]=255&l),o===1&&(l=m[u.charCodeAt(d)]<<10|m[u.charCodeAt(d+1)]<<4|m[u.charCodeAt(d+2)]>>2,a[f++]=l>>8&255,a[f++]=255&l),a},_.fromByteArray=function(u){for(var l,d=u.length,p=d%3,o=[],a=0,f=d-p;a>18&63]+c[R>>12&63]+c[R>>6&63]+c[63&R]}(k));return T.join("")}(u,a,f>2]+c[l<<4&63]+"==")):p==2&&(l=(u[d-2]<<8)+u[d-1],o.push(c[l>>10]+c[l>>4&63]+c[l<<2&63]+"=")),o.join("")};for(var c=[],m=[],i=typeof Uint8Array<"u"?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,y=h.length;b>>1;case"base64":return V(E).length;default:if($)return W?-1:X(E).length;I=(""+I).toLowerCase(),$=!0}}function f(E,I,B){var W,$=!1;if((I=I===void 0||I<0?0:I)>this.length||(B=B===void 0||B>this.length?this.length:B)<=0||(B>>>=0)<=(I>>>=0))return"";for(E=E||"utf8";;)switch(E){case"hex":var te=this,ye=I,ie=B,ce=te.length;(!ie||ie<0||ce=E.length){if($)return-1;B=E.length-1}else if(B<0){if(!$)return-1;B=0}if(typeof I=="string"&&(I=s.from(I,W)),s.isBuffer(I))return I.length===0?-1:O(E,I,B,W,$);if(typeof I=="number")return I&=255,typeof Uint8Array.prototype.indexOf=="function"?($?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(E,I,B):O(E,[I],B,W,$);throw new TypeError("val must be string, number or Buffer")}function O(E,I,B,W,$){var te=1,ie=E.length,de=I.length;if(W!==void 0&&((W=String(W).toLowerCase())==="ucs2"||W==="ucs-2"||W==="utf16le"||W==="utf-16le")){if(E.length<2||I.length<2)return-1;ie/=te=2,de/=2,B/=2}function se(me,je){return te===1?me[je]:me.readUInt16BE(je*te)}if($)for(var fe=-1,ce=B;ce>8,de=de%256,se.push(de),se.push(ie);return se}(I,E.length-B),E,B,W)}function P(E,I,B){B=Math.min(E.length,B);for(var W=[],$=I;$>>10&1023|55296),ce=56320|1023&ce),W.push(ce),$+=ee}var ue=W,me=ue.length;if(me<=R)return String.fromCharCode.apply(String,ue);for(var je="",ye=0;ye"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=u,Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(E,I,B){return I=I,B=B,l(E=E),!(E<=0)&&I!==void 0?typeof B=="string"?y(E).fill(I,B):y(E).fill(I):y(E)},s.allocUnsafe=d,s.allocUnsafeSlow=d,s.isBuffer=function(E){return E!=null&&E._isBuffer===!0&&E!==s.prototype},s.compare=function(E,I){if(Y(E,Uint8Array)&&(E=s.from(E,E.offset,E.byteLength)),Y(I,Uint8Array)&&(I=s.from(I,I.offset,I.byteLength)),!s.isBuffer(E)||!s.isBuffer(I))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(E===I)return 0;for(var B=E.length,W=I.length,$=0,te=Math.min(B,W);$E&&(I+=" ... "),""},h&&(s.prototype[h]=s.prototype.inspect),s.prototype.compare=function(E,I,B,W,$){if(Y(E,Uint8Array)&&(E=s.from(E,E.offset,E.byteLength)),!s.isBuffer(E))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof E);if(B===void 0&&(B=E?E.length:0),W===void 0&&(W=0),$===void 0&&($=this.length),(I=I===void 0?0:I)<0||B>E.length||W<0||$>this.length)throw new RangeError("out of range index");if($<=W&&B<=I)return 0;if($<=W)return-1;if(B<=I)return 1;if(this===E)return 0;for(var te=($>>>=0)-(W>>>=0),ie=(B>>>=0)-(I>>>=0),de=Math.min(te,ie),se=this.slice(W,$),fe=E.slice(I,B),ce=0;ce>>=0,isFinite(B)?(B>>>=0,W===void 0&&(W="utf8")):(W=B,B=void 0)}var $=this.length-I;if((B===void 0||$this.length)throw new RangeError("Attempt to write outside buffer bounds");W=W||"utf8";for(var te,ie,de,se=!1;;)switch(W){case"hex":var fe=this,ce=E,ee=I,ue=B,me=(ee=Number(ee)||0,fe.length-ee);(!ue||me<(ue=Number(ue)))&&(ue=me),(me=ce.length)/2E.length)throw new RangeError("Index out of range")}function A(E,I,B,W){if(B+W>E.length)throw new RangeError("Index out of range");if(B<0)throw new RangeError("Index out of range")}function N(E,I,B,W,$){return I=+I,B>>>=0,$||A(E,0,B,4),i.write(E,I,B,W,23,4),B+4}function F(E,I,B,W,$){return I=+I,B>>>=0,$||A(E,0,B,8),i.write(E,I,B,W,52,8),B+8}s.prototype.slice=function(E,I){var B=this.length,B=((E=~~E)<0?(E+=B)<0&&(E=0):B>>=0,I>>>=0,B||M(E,I,this.length);for(var W=this[E],$=1,te=0;++te>>=0,I>>>=0,B||M(E,I,this.length);for(var W=this[E+--I],$=1;0>>=0,I||M(E,1,this.length),this[E]},s.prototype.readUInt16LE=function(E,I){return E>>>=0,I||M(E,2,this.length),this[E]|this[E+1]<<8},s.prototype.readUInt16BE=function(E,I){return E>>>=0,I||M(E,2,this.length),this[E]<<8|this[E+1]},s.prototype.readUInt32LE=function(E,I){return E>>>=0,I||M(E,4,this.length),(this[E]|this[E+1]<<8|this[E+2]<<16)+16777216*this[E+3]},s.prototype.readUInt32BE=function(E,I){return E>>>=0,I||M(E,4,this.length),16777216*this[E]+(this[E+1]<<16|this[E+2]<<8|this[E+3])},s.prototype.readIntLE=function(E,I,B){E>>>=0,I>>>=0,B||M(E,I,this.length);for(var W=this[E],$=1,te=0;++te>>=0,I>>>=0,B||M(E,I,this.length);for(var W=I,$=1,te=this[E+--W];0>>=0,I||M(E,1,this.length),128&this[E]?-1*(255-this[E]+1):this[E]},s.prototype.readInt16LE=function(E,I){return E>>>=0,I||M(E,2,this.length),I=this[E]|this[E+1]<<8,32768&I?4294901760|I:I},s.prototype.readInt16BE=function(E,I){return E>>>=0,I||M(E,2,this.length),I=this[E+1]|this[E]<<8,32768&I?4294901760|I:I},s.prototype.readInt32LE=function(E,I){return E>>>=0,I||M(E,4,this.length),this[E]|this[E+1]<<8|this[E+2]<<16|this[E+3]<<24},s.prototype.readInt32BE=function(E,I){return E>>>=0,I||M(E,4,this.length),this[E]<<24|this[E+1]<<16|this[E+2]<<8|this[E+3]},s.prototype.readFloatLE=function(E,I){return E>>>=0,I||M(E,4,this.length),i.read(this,E,!0,23,4)},s.prototype.readFloatBE=function(E,I){return E>>>=0,I||M(E,4,this.length),i.read(this,E,!1,23,4)},s.prototype.readDoubleLE=function(E,I){return E>>>=0,I||M(E,8,this.length),i.read(this,E,!0,52,8)},s.prototype.readDoubleBE=function(E,I){return E>>>=0,I||M(E,8,this.length),i.read(this,E,!1,52,8)},s.prototype.writeUIntLE=function(E,I,B,W){E=+E,I>>>=0,B>>>=0,W||D(this,E,I,B,Math.pow(2,8*B)-1,0);var $=1,te=0;for(this[I]=255&E;++te>>=0,B>>>=0,W||D(this,E,I,B,Math.pow(2,8*B)-1,0);var $=B-1,te=1;for(this[I+$]=255&E;0<=--$&&(te*=256);)this[I+$]=E/te&255;return I+B},s.prototype.writeUInt8=function(E,I,B){return E=+E,I>>>=0,B||D(this,E,I,1,255,0),this[I]=255&E,I+1},s.prototype.writeUInt16LE=function(E,I,B){return E=+E,I>>>=0,B||D(this,E,I,2,65535,0),this[I]=255&E,this[I+1]=E>>>8,I+2},s.prototype.writeUInt16BE=function(E,I,B){return E=+E,I>>>=0,B||D(this,E,I,2,65535,0),this[I]=E>>>8,this[I+1]=255&E,I+2},s.prototype.writeUInt32LE=function(E,I,B){return E=+E,I>>>=0,B||D(this,E,I,4,4294967295,0),this[I+3]=E>>>24,this[I+2]=E>>>16,this[I+1]=E>>>8,this[I]=255&E,I+4},s.prototype.writeUInt32BE=function(E,I,B){return E=+E,I>>>=0,B||D(this,E,I,4,4294967295,0),this[I]=E>>>24,this[I+1]=E>>>16,this[I+2]=E>>>8,this[I+3]=255&E,I+4},s.prototype.writeIntLE=function(E,I,B,W){E=+E,I>>>=0,W||D(this,E,I,B,(W=Math.pow(2,8*B-1))-1,-W);var $=0,te=1,ie=0;for(this[I]=255&E;++$>0)-ie&255;return I+B},s.prototype.writeIntBE=function(E,I,B,W){E=+E,I>>>=0,W||D(this,E,I,B,(W=Math.pow(2,8*B-1))-1,-W);var $=B-1,te=1,ie=0;for(this[I+$]=255&E;0<=--$&&(te*=256);)E<0&&ie===0&&this[I+$+1]!==0&&(ie=1),this[I+$]=(E/te>>0)-ie&255;return I+B},s.prototype.writeInt8=function(E,I,B){return E=+E,I>>>=0,B||D(this,E,I,1,127,-128),this[I]=255&(E=E<0?255+E+1:E),I+1},s.prototype.writeInt16LE=function(E,I,B){return E=+E,I>>>=0,B||D(this,E,I,2,32767,-32768),this[I]=255&E,this[I+1]=E>>>8,I+2},s.prototype.writeInt16BE=function(E,I,B){return E=+E,I>>>=0,B||D(this,E,I,2,32767,-32768),this[I]=E>>>8,this[I+1]=255&E,I+2},s.prototype.writeInt32LE=function(E,I,B){return E=+E,I>>>=0,B||D(this,E,I,4,2147483647,-2147483648),this[I]=255&E,this[I+1]=E>>>8,this[I+2]=E>>>16,this[I+3]=E>>>24,I+4},s.prototype.writeInt32BE=function(E,I,B){return E=+E,I>>>=0,B||D(this,E,I,4,2147483647,-2147483648),this[I]=(E=E<0?4294967295+E+1:E)>>>24,this[I+1]=E>>>16,this[I+2]=E>>>8,this[I+3]=255&E,I+4},s.prototype.writeFloatLE=function(E,I,B){return N(this,E,I,!0,B)},s.prototype.writeFloatBE=function(E,I,B){return N(this,E,I,!1,B)},s.prototype.writeDoubleLE=function(E,I,B){return F(this,E,I,!0,B)},s.prototype.writeDoubleBE=function(E,I,B){return F(this,E,I,!1,B)},s.prototype.copy=function(E,I,B,W){if(!s.isBuffer(E))throw new TypeError("argument should be a Buffer");if(B=B||0,W||W===0||(W=this.length),I>=E.length&&(I=E.length),(W=0=this.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("sourceEnd out of bounds");W>this.length&&(W=this.length);var $=(W=E.length-I>>=0,B=B===void 0?this.length:B>>>0,typeof(E=E||0)=="number")for(te=I;te>6|192,63&B|128)}else if(B<65536){if((I-=3)<0)break;te.push(B>>12|224,B>>6&63|128,63&B|128)}else{if(!(B<1114112))throw new Error("Invalid code point");if((I-=4)<0)break;te.push(B>>18|240,B>>12&63|128,B>>6&63|128,63&B|128)}}return te}function V(E){return m.toByteArray(function(I){if((I=(I=I.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;I.length%4!=0;)I+="=";return I}(E))}function z(E,I,B,W){for(var $=0;$=I.length||$>=E.length);++$)I[$+B]=E[$];return $}function Y(E,I){return E instanceof I||E!=null&&E.constructor!=null&&E.constructor.name!=null&&E.constructor.name===I.name}function Q(E){return E!=E}var oe=function(){for(var E="0123456789abcdef",I=new Array(256),B=0;B<16;++B)for(var W=16*B,$=0;$<16;++$)I[W+$]=E[B]+E[$];return I}()}).call(this,t("buffer").Buffer)},{"base64-js":1,buffer:4,ieee754:251}],5:[function(t,w,_){w.exports=function(c){if(typeof c!="function")throw TypeError(String(c)+" is not a function");return c}},{}],6:[function(t,w,_){var c=t("../internals/is-object");w.exports=function(m){if(c(m)||m===null)return m;throw TypeError("Can't set "+String(m)+" as a prototype")}},{"../internals/is-object":75}],7:[function(i,w,_){var c=i("../internals/well-known-symbol"),m=i("../internals/object-create"),i=i("../internals/object-define-property"),h=c("unscopables"),b=Array.prototype;b[h]==null&&i.f(b,h,{configurable:!0,value:m(null)}),w.exports=function(y){b[h][y]=!0}},{"../internals/object-create":91,"../internals/object-define-property":93,"../internals/well-known-symbol":149}],8:[function(t,w,_){var c=t("../internals/string-multibyte").charAt;w.exports=function(m,i,h){return i+(h?c(m,i).length:1)}},{"../internals/string-multibyte":124}],9:[function(t,w,_){w.exports=function(c,m,i){if(c instanceof m)return c;throw TypeError("Incorrect "+(i?i+" ":"")+"invocation")}},{}],10:[function(t,w,_){var c=t("../internals/is-object");w.exports=function(m){if(c(m))return m;throw TypeError(String(m)+" is not an object")}},{"../internals/is-object":75}],11:[function(t,w,_){w.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},{}],12:[function(A,w,_){function c(F){return y(F)&&s(N,u(F))}var m,i=A("../internals/array-buffer-native"),h=A("../internals/descriptors"),b=A("../internals/global"),y=A("../internals/is-object"),s=A("../internals/has"),u=A("../internals/classof"),l=A("../internals/create-non-enumerable-property"),d=A("../internals/redefine"),p=A("../internals/object-define-property").f,o=A("../internals/object-get-prototype-of"),a=A("../internals/object-set-prototype-of"),R=A("../internals/well-known-symbol"),A=A("../internals/uid"),f=b.Int8Array,v=f&&f.prototype,S=b.Uint8ClampedArray,S=S&&S.prototype,O=f&&o(f),k=v&&o(v),T=Object.prototype,P=T.isPrototypeOf,R=R("toStringTag"),M=A("TYPED_ARRAY_TAG"),D=i&&!!a&&u(b.opera)!=="Opera",A=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8};for(m in N)b[m]||(D=!1);if((!D||typeof O!="function"||O===Function.prototype)&&(O=function(){throw TypeError("Incorrect invocation")},D))for(m in N)b[m]&&a(b[m],O);if((!D||!k||k===T)&&(k=O.prototype,D))for(m in N)b[m]&&a(b[m].prototype,k);if(D&&o(S)!==k&&a(S,k),h&&!s(k,R))for(m in A=!0,p(k,R,{get:function(){return y(this)?this[M]:void 0}}),N)b[m]&&l(b[m],M,m);w.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:A&&M,aTypedArray:function(F){if(c(F))return F;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(F){if(a){if(P.call(O,F))return F}else for(var G in N)if(s(N,m)&&(G=b[G],G&&(F===G||P.call(G,F))))return F;throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(F,G,X){if(h){if(X)for(var V in N)V=b[V],V&&s(V.prototype,F)&&delete V.prototype[F];k[F]&&!X||d(k,F,!X&&D&&v[F]||G)}},exportTypedArrayStaticMethod:function(F,G,X){var V,z;if(h){if(a){if(X)for(V in N)(z=b[V])&&s(z,F)&&delete z[F];if(O[F]&&!X)return;try{return d(O,F,!X&&D&&f[F]||G)}catch{}}for(V in N)!(z=b[V])||z[F]&&!X||d(z,F,G)}},isView:function(F){return F=u(F),F==="DataView"||s(N,F)},isTypedArray:c,TypedArray:O,TypedArrayPrototype:k}},{"../internals/array-buffer-native":11,"../internals/classof":29,"../internals/create-non-enumerable-property":38,"../internals/descriptors":43,"../internals/global":60,"../internals/has":61,"../internals/is-object":75,"../internals/object-define-property":93,"../internals/object-get-prototype-of":98,"../internals/object-set-prototype-of":102,"../internals/redefine":109,"../internals/uid":146,"../internals/well-known-symbol":149}],13:[function(B,w,_){function c(ee){return[255&ee]}function m(ee){return[255&ee,ee>>8&255]}function i(ee){return[255&ee,ee>>8&255,ee>>16&255,ee>>24&255]}function h(ee){return ee[3]<<24|ee[2]<<16|ee[1]<<8|ee[0]}function b(ee){return te(ee,23,4)}function y(ee){return te(ee,52,8)}function s(ee,ue){A(ee[Y],ue,{get:function(){return G(this)[ue]}})}function u(Se,ue,be,je){if(be=T(be),Se=G(Se),be+ue>Se.byteLength)throw $(Q);var ye=G(Se.buffer).bytes,be=be+Se.byteOffset,Se=ye.slice(be,be+ue);return je?Se:Se.reverse()}function l(ee,ue,me,je,ye,be){if(me=T(me),ee=G(ee),me+ue>ee.byteLength)throw $(Q);for(var Se=G(ee.buffer).bytes,Fe=me+ee.byteOffset,Ce=je(+ye),$e=0;$efe;)(de=se[fe++])in E||a(E,de,oe[de]);d.constructor=E}M&&R(B)!==W&&M(B,W);var P=new I(new E(2)),ce=B.setInt8;P.setInt8(0,2147483648),P.setInt8(1,2147483649),!P.getInt8(0)&&P.getInt8(1)||f(B,{setInt8:function(ue,me){ce.call(this,ue,me<<24>>24)},setUint8:function(ue,me){ce.call(this,ue,me<<24>>24)}},{unsafe:!0})}else E=function(ee){S(this,E,V),ee=T(ee),X(this,{bytes:N.call(new Array(ee),0),byteLength:ee}),p||(this.byteLength=ee)},I=function(ee,ye,me){S(this,I,z),S(ee,E,z);var je=G(ee).byteLength,ye=O(ye);if(ye<0||je>24},getUint8:function(ee){return u(this,1,ee)[0]},getInt16:function(ee){return ee=u(this,2,ee,1>16},getUint16:function(ee){return ee=u(this,2,ee,1>>0},getFloat32:function(ee){return ie(u(this,4,ee,1"+s+""}},{"../internals/require-object-coercible":114}],37:[function(t,w,_){function c(){return this}var m=t("../internals/iterators-core").IteratorPrototype,i=t("../internals/object-create"),h=t("../internals/create-property-descriptor"),b=t("../internals/set-to-string-tag"),y=t("../internals/iterators");w.exports=function(s,u,l){return u+=" Iterator",s.prototype=i(m,{next:h(1,l)}),b(s,u,!1,!0),y[u]=c,s}},{"../internals/create-property-descriptor":39,"../internals/iterators":80,"../internals/iterators-core":79,"../internals/object-create":91,"../internals/set-to-string-tag":118}],38:[function(t,w,_){var c=t("../internals/descriptors"),m=t("../internals/object-define-property"),i=t("../internals/create-property-descriptor");w.exports=c?function(h,b,y){return m.f(h,b,i(1,y))}:function(h,b,y){return h[b]=y,h}},{"../internals/create-property-descriptor":39,"../internals/descriptors":43,"../internals/object-define-property":93}],39:[function(t,w,_){w.exports=function(c,m){return{enumerable:!(1&c),configurable:!(2&c),writable:!(4&c),value:m}}},{}],40:[function(t,w,_){var c=t("../internals/to-primitive"),m=t("../internals/object-define-property"),i=t("../internals/create-property-descriptor");w.exports=function(h,b,y){b=c(b),b in h?m.f(h,b,i(0,y)):h[b]=y}},{"../internals/create-property-descriptor":39,"../internals/object-define-property":93,"../internals/to-primitive":141}],41:[function(o,w,_){function c(){return this}var m=o("../internals/export"),i=o("../internals/create-iterator-constructor"),h=o("../internals/object-get-prototype-of"),b=o("../internals/object-set-prototype-of"),y=o("../internals/set-to-string-tag"),s=o("../internals/create-non-enumerable-property"),u=o("../internals/redefine"),l=o("../internals/well-known-symbol"),d=o("../internals/is-pure"),p=o("../internals/iterators"),o=o("../internals/iterators-core"),a=o.IteratorPrototype,f=o.BUGGY_SAFARI_ITERATORS,v=l("iterator"),S="values",O="entries";w.exports=function(k,T,P,X,M,D,A){i(P,T,X);function N(E){if(E===M&&Q)return Q;if(!f&&E in z)return z[E];switch(E){case"keys":case S:case O:return function(){return new P(this,E)}}return function(){return new P(this)}}var F,G,X=T+" Iterator",V=!1,z=k.prototype,Y=z[v]||z["@@iterator"]||M&&z[M],Q=!f&&Y||N(M),oe=T=="Array"&&z.entries||Y;if(oe&&(oe=h(oe.call(new k)),a!==Object.prototype&&oe.next&&(d||h(oe)===a||(b?b(oe,a):typeof oe[v]!="function"&&s(oe,v,c)),y(oe,X,!0,!0),d&&(p[X]=c))),M==S&&Y&&Y.name!==S&&(V=!0,Q=function(){return Y.call(this)}),d&&!A||z[v]===Q||s(z,v,Q),p[T]=Q,M)if(F={values:N(S),keys:D?Q:N("keys"),entries:N(O)},A)for(G in F)!f&&!V&&G in z||u(z,G,F[G]);else m({target:T,proto:!0,forced:f||V},F);return F}},{"../internals/create-iterator-constructor":37,"../internals/create-non-enumerable-property":38,"../internals/export":50,"../internals/is-pure":76,"../internals/iterators":80,"../internals/iterators-core":79,"../internals/object-get-prototype-of":98,"../internals/object-set-prototype-of":102,"../internals/redefine":109,"../internals/set-to-string-tag":118,"../internals/well-known-symbol":149}],42:[function(t,w,_){var c=t("../internals/path"),m=t("../internals/has"),i=t("../internals/well-known-symbol-wrapped"),h=t("../internals/object-define-property").f;w.exports=function(b){var y=c.Symbol||(c.Symbol={});m(y,b)||h(y,b,{value:i.f(b)})}},{"../internals/has":61,"../internals/object-define-property":93,"../internals/path":105,"../internals/well-known-symbol-wrapped":148}],43:[function(t,w,_){t=t("../internals/fails"),w.exports=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":51}],44:[function(m,w,_){var c=m("../internals/global"),m=m("../internals/is-object"),i=c.document,h=m(i)&&m(i.createElement);w.exports=function(b){return h?i.createElement(b):{}}},{"../internals/global":60,"../internals/is-object":75}],45:[function(t,w,_){w.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],46:[function(t,w,_){t=t("../internals/engine-user-agent"),w.exports=/(iphone|ipod|ipad).*applewebkit/i.test(t)},{"../internals/engine-user-agent":47}],47:[function(t,w,_){t=t("../internals/get-built-in"),w.exports=t("navigator","userAgent")||""},{"../internals/get-built-in":57}],48:[function(i,w,_){var c,m,h=i("../internals/global"),i=i("../internals/engine-user-agent"),h=h.process,h=h&&h.versions,h=h&&h.v8;h?m=(c=h.split("."))[0]+c[1]:i&&(!(c=i.match(/Edge\/(\d+)/))||74<=c[1])&&(c=i.match(/Chrome\/(\d+)/))&&(m=c[1]),w.exports=m&&+m},{"../internals/engine-user-agent":47,"../internals/global":60}],49:[function(t,w,_){w.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],50:[function(t,w,_){var c=t("../internals/global"),m=t("../internals/object-get-own-property-descriptor").f,i=t("../internals/create-non-enumerable-property"),h=t("../internals/redefine"),b=t("../internals/set-global"),y=t("../internals/copy-constructor-properties"),s=t("../internals/is-forced");w.exports=function(u,l){var d,p,o,a=u.target,f=u.global,v=u.stat,S=f?c:v?c[a]||b(a,{}):(c[a]||{}).prototype;if(S)for(d in l){if(p=l[d],o=u.noTargetGet?(o=m(S,d))&&o.value:S[d],!s(f?d:a+(v?".":"#")+d,u.forced)&&o!==void 0){if(typeof p==typeof o)continue;y(p,o)}(u.sham||o&&o.sham)&&i(p,"sham",!0),h(S,d,p,u)}}},{"../internals/copy-constructor-properties":33,"../internals/create-non-enumerable-property":38,"../internals/global":60,"../internals/is-forced":74,"../internals/object-get-own-property-descriptor":94,"../internals/redefine":109,"../internals/set-global":116}],51:[function(t,w,_){w.exports=function(c){try{return!!c()}catch{return!0}}},{}],52:[function(l,w,_){l("../modules/es.regexp.exec");var c=l("../internals/redefine"),m=l("../internals/fails"),i=l("../internals/well-known-symbol"),h=l("../internals/regexp-exec"),b=l("../internals/create-non-enumerable-property"),y=i("species"),s=!m(function(){var o=/./;return o.exec=function(){var a=[];return a.groups={a:"7"},a},"".replace(o,"$")!=="7"}),u="a".replace(/./,"$0")==="$0",l=i("replace"),d=!!/./[l]&&/./[l]("a","$0")==="",p=!m(function(){var a=/(?:)/,o=a.exec,a=(a.exec=function(){return o.apply(this,arguments)},"ab".split(a));return a.length!==2||a[0]!=="a"||a[1]!=="b"});w.exports=function(o,a,f,v){var S,O,k=i(o),T=!m(function(){var R={};return R[k]=function(){return 7},""[o](R)!=7}),P=T&&!m(function(){var R=!1,M=/a/;return o==="split"&&((M={constructor:{}}).constructor[y]=function(){return M},M.flags="",M[k]=/./[k]),M.exec=function(){return R=!0,null},M[k](""),!R});T&&P&&(o!=="replace"||s&&u&&!d)&&(o!=="split"||p)||(S=/./[k],f=(P=f(k,""[o],function(R,M,D,A,N){return M.exec===h?T&&!N?{done:!0,value:S.call(M,D,A)}:{done:!0,value:R.call(D,M,A)}:{done:!1}},{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}))[0],O=P[1],c(String.prototype,o,f),c(RegExp.prototype,k,a==2?function(R,M){return O.call(R,this,M)}:function(R){return O.call(R,this)})),v&&b(RegExp.prototype[k],"sham",!0)}},{"../internals/create-non-enumerable-property":38,"../internals/fails":51,"../internals/redefine":109,"../internals/regexp-exec":111,"../internals/well-known-symbol":149,"../modules/es.regexp.exec":192}],53:[function(t,w,_){function c(b,y,s,u,l,d,p,o){for(var a,f=l,v=0,S=!!p&&h(p,o,3);v>1,S=s===23?m(2,-24)-m(2,-77):0,O=y<0||y===0&&1/y<0?1:0,k=0;for((y=c(y))!=y||y===1/0?(d=y!=y?1:0,l=f):(l=i(h(y)/b),y*(p=m(2,-l))<1&&(l--,p*=2),2<=(y+=1<=l+v?S/p:S*m(2,1-v))*p&&(l++,p/=2),f<=l+v?(d=0,l=f):1<=l+v?(d=(y*p-1)*m(2,s),l+=v):(d=y*m(2,v-1)*m(2,s),l=0));8<=s;o[k++]=255&d,d/=256,s-=8);for(l=l<>1,o=f-7,a=l-1,f=y[a--],v=127&f;for(f>>=7;0>=-o,o+=s;0"+v+""},f=function(){try{m=document.domain&&new ActiveXObject("htmlfile")}catch{}f=m?((v=m).write(a("")),v.close(),S=v.parentWindow.Object,v=null,S):(v=u("iframe"),S="java"+p+":",v.style.display="none",s.appendChild(v),v.src=String(S),(S=v.contentWindow.document).open(),S.write(a("document.F=Object")),S.close(),S.F);for(var v,S,O=b.length;O--;)delete f[d][b[O]];return f()};y[o]=!0,w.exports=Object.create||function(v,S){var O;return v!==null?(c[d]=i(v),O=new c,c[d]=null,O[o]=v):O=f(),S===void 0?O:h(O,S)}},{"../internals/an-object":10,"../internals/document-create-element":44,"../internals/enum-bug-keys":49,"../internals/hidden-keys":62,"../internals/html":64,"../internals/object-define-properties":92,"../internals/shared-key":119}],92:[function(t,w,_){var c=t("../internals/descriptors"),m=t("../internals/object-define-property"),i=t("../internals/an-object"),h=t("../internals/object-keys");w.exports=c?Object.defineProperties:function(b,y){i(b);for(var s,u=h(y),l=u.length,d=0;dl;)!c(u,s=y[l++])||~i(d,s)||d.push(s);return d}},{"../internals/array-includes":18,"../internals/has":61,"../internals/hidden-keys":62,"../internals/to-indexed-object":135}],100:[function(t,w,_){var c=t("../internals/object-keys-internal"),m=t("../internals/enum-bug-keys");w.exports=Object.keys||function(i){return c(i,m)}},{"../internals/enum-bug-keys":49,"../internals/object-keys-internal":99}],101:[function(t,w,_){var c={}.propertyIsEnumerable,m=Object.getOwnPropertyDescriptor,i=m&&!c.call({1:2},1);_.f=i?function(h){return h=m(this,h),!!h&&h.enumerable}:c},{}],102:[function(t,w,_){var c=t("../internals/an-object"),m=t("../internals/a-possible-prototype");w.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var i,h=!1,b={};try{(i=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(b,[]),h=b instanceof Array}catch{}return function(y,s){return c(y),m(s),h?i.call(y,s):y.__proto__=s,y}}():void 0)},{"../internals/a-possible-prototype":6,"../internals/an-object":10}],103:[function(t,w,_){var c=t("../internals/to-string-tag-support"),m=t("../internals/classof");w.exports=c?{}.toString:function(){return"[object "+m(this)+"]"}},{"../internals/classof":29,"../internals/to-string-tag-support":142}],104:[function(t,w,_){var c=t("../internals/get-built-in"),m=t("../internals/object-get-own-property-names"),i=t("../internals/object-get-own-property-symbols"),h=t("../internals/an-object");w.exports=c("Reflect","ownKeys")||function(b){var y=m.f(h(b)),s=i.f;return s?y.concat(s(b)):y}},{"../internals/an-object":10,"../internals/get-built-in":57,"../internals/object-get-own-property-names":96,"../internals/object-get-own-property-symbols":97}],105:[function(t,w,_){t=t("../internals/global"),w.exports=t},{"../internals/global":60}],106:[function(t,w,_){w.exports=function(c){try{return{error:!1,value:c()}}catch(m){return{error:!0,value:m}}}},{}],107:[function(t,w,_){var c=t("../internals/an-object"),m=t("../internals/is-object"),i=t("../internals/new-promise-capability");w.exports=function(h,b){return c(h),m(b)&&b.constructor===h?b:((0,(h=i.f(h)).resolve)(b),h.promise)}},{"../internals/an-object":10,"../internals/is-object":75,"../internals/new-promise-capability":87}],108:[function(t,w,_){var c=t("../internals/redefine");w.exports=function(m,i,h){for(var b in i)c(m,b,i[b],h);return m}},{"../internals/redefine":109}],109:[function(y,w,_){var c=y("../internals/global"),m=y("../internals/create-non-enumerable-property"),i=y("../internals/has"),h=y("../internals/set-global"),b=y("../internals/inspect-source"),y=y("../internals/internal-state"),s=y.get,u=y.enforce,l=String(String).split("String");(w.exports=function(d,p,o,S){var f=!!S&&!!S.unsafe,v=!!S&&!!S.enumerable,S=!!S&&!!S.noTargetGet;typeof o=="function"&&(typeof p!="string"||i(o,"name")||m(o,"name",p),u(o).source=l.join(typeof p=="string"?p:"")),d===c?v?d[p]=o:h(p,o):(f?!S&&d[p]&&(v=!0):delete d[p],v?d[p]=o:m(d,p,o))})(Function.prototype,"toString",function(){return typeof this=="function"&&s(this).source||b(this)})},{"../internals/create-non-enumerable-property":38,"../internals/global":60,"../internals/has":61,"../internals/inspect-source":69,"../internals/internal-state":71,"../internals/set-global":116}],110:[function(t,w,_){var c=t("./classof-raw"),m=t("./regexp-exec");w.exports=function(i,h){var b=i.exec;if(typeof b=="function"){if(b=b.call(i,h),typeof b!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return b}if(c(i)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return m.call(i,h)}},{"./classof-raw":28,"./regexp-exec":111}],111:[function(h,w,_){var c,m,i=h("./regexp-flags"),h=h("./regexp-sticky-helpers"),b=RegExp.prototype.exec,y=String.prototype.replace,s=b,u=(c=/a/,m=/b*/g,b.call(c,"a"),b.call(m,"a"),c.lastIndex!==0||m.lastIndex!==0),l=h.UNSUPPORTED_Y||h.BROKEN_CARET,d=/()??/.exec("")[1]!==void 0;w.exports=s=u||d||l?function(p){var o,a,f,v,S=this,O=l&&S.sticky,k=i.call(S),T=S.source,P=0,R=p;return O&&((k=k.replace("y","")).indexOf("g")===-1&&(k+="g"),R=String(p).slice(S.lastIndex),0a&&(p=p.slice(0,a)),y?d+p:p+d)}}var m=t("../internals/to-length"),i=t("../internals/string-repeat"),h=t("../internals/require-object-coercible"),b=Math.ceil;w.exports={start:c(!1),end:c(!0)}},{"../internals/require-object-coercible":114,"../internals/string-repeat":128,"../internals/to-length":137}],127:[function(t,w,_){function c(f){return f+22+75*(f<26)}function m(f){var v,S=[],O=(f=function(Y){for(var Q=[],oe=0,E=Y.length;oeo((i-T)/N))throw RangeError(d);for(T+=(D-k)*N,k=D,A=0;Ai)throw RangeError(d);if(v==k){for(var F=T,G=h;;G+=h){var X=G<=P?1:P+b<=G?b:G-P;if(F>1,Y+=o(Y/Q);p*b>>1>>=1)&&(h+=h))1&y&&(b+=h);return b}},{"../internals/require-object-coercible":114,"../internals/to-integer":136}],129:[function(t,w,_){var c=t("../internals/fails"),m=t("../internals/whitespaces");w.exports=function(i){return c(function(){return!!m[i]()||"​…᠎"[i]()!="​…᠎"||m[i].name!==i})}},{"../internals/fails":51,"../internals/whitespaces":150}],130:[function(i,w,_){function c(y){return function(s){return s=String(m(s)),1&y&&(s=s.replace(h,"")),s=2&y?s.replace(b,""):s}}var m=i("../internals/require-object-coercible"),i="["+i("../internals/whitespaces")+"]",h=RegExp("^"+i+i+"*"),b=RegExp(i+i+"*$");w.exports={start:c(1),end:c(2),trim:c(3)}},{"../internals/require-object-coercible":114,"../internals/whitespaces":150}],131:[function(p,w,_){function c(M){return function(){R(M)}}function m(M){R(M.data)}function i(M){b.postMessage(M+"",o.protocol+"//"+o.host)}var h,b=p("../internals/global"),y=p("../internals/fails"),s=p("../internals/classof-raw"),u=p("../internals/function-bind-context"),l=p("../internals/html"),d=p("../internals/document-create-element"),p=p("../internals/engine-is-ios"),o=b.location,a=b.setImmediate,f=b.clearImmediate,v=b.process,S=b.MessageChannel,O=b.Dispatch,k=0,T={},P="onreadystatechange",R=function(M){var D;T.hasOwnProperty(M)&&(D=T[M],delete T[M],D())};a&&f||(a=function(M){for(var D=[],A=1;A=d.length?{value:l.target=void 0,done:!0}:p=="keys"?{value:o,done:!1}:p=="values"?{value:d[o],done:!1}:{value:[o,d[o]],done:!1}},"values"),i.Arguments=i.Array,m("keys"),m("values"),m("entries")},{"../internals/add-to-unscopables":7,"../internals/define-iterator":41,"../internals/internal-state":71,"../internals/iterators":80,"../internals/to-indexed-object":135}],165:[function(b,w,_){var c=b("../internals/export"),h=b("../internals/indexed-object"),m=b("../internals/to-indexed-object"),b=b("../internals/array-method-is-strict"),i=[].join,h=h!=Object,b=b("join",",");c({target:"Array",proto:!0,forced:h||!b},{join:function(y){return i.call(m(this),y===void 0?",":y)}})},{"../internals/array-method-is-strict":22,"../internals/export":50,"../internals/indexed-object":67,"../internals/to-indexed-object":135}],166:[function(m,w,_){var c=m("../internals/export"),m=m("../internals/array-last-index-of");c({target:"Array",proto:!0,forced:m!==[].lastIndexOf},{lastIndexOf:m})},{"../internals/array-last-index-of":20,"../internals/export":50}],167:[function(h,w,_){var c=h("../internals/export"),m=h("../internals/array-iteration").map,i=h("../internals/array-method-has-species-support"),h=h("../internals/array-method-uses-to-length"),i=i("map"),h=h("map");c({target:"Array",proto:!0,forced:!i||!h},{map:function(b){return m(this,b,1D;D++)y(O,P=M[D])&&!y(R,P)&&f(R,P,a(O,P));(R.prototype=k).constructor=R,b(i,S,R)}},{"../internals/classof-raw":28,"../internals/descriptors":43,"../internals/fails":51,"../internals/global":60,"../internals/has":61,"../internals/inherit-if-required":68,"../internals/is-forced":74,"../internals/object-create":91,"../internals/object-define-property":93,"../internals/object-get-own-property-descriptor":94,"../internals/object-get-own-property-names":96,"../internals/redefine":109,"../internals/string-trim":130,"../internals/to-primitive":141}],179:[function(t,w,_){t("../internals/export")({target:"Number",stat:!0},{isFinite:t("../internals/number-is-finite")})},{"../internals/export":50,"../internals/number-is-finite":89}],180:[function(y,w,_){function c(l,d,p){return d===0?p:d%2==1?c(l,d-1,p*l):c(l*l,d/2,p)}var m=y("../internals/export"),i=y("../internals/to-integer"),h=y("../internals/this-number-value"),b=y("../internals/string-repeat"),y=y("../internals/fails"),s=1 .toFixed,u=Math.floor;m({target:"Number",proto:!0,forced:s&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||0xde0b6b3a7640080.toFixed(0)!=="1000000000000000128")||!y(function(){s.call({})})},{toFixed:function(S){function d(P,R){for(var M=-1,D=R;++M<6;)D+=P*O[M],O[M]=D%1e7,D=u(D/1e7)}function p(P){for(var R=6,M=0;0<=--R;)M+=O[R],O[R]=u(M/P),M=M%P*1e7}function o(){for(var P,R=6,M="";0<=--R;)M===""&&R!==0&&O[R]===0||(P=String(O[R]),M=M===""?P:M+b.call("0",7-P.length)+P);return M}var a,f,v=h(this),S=i(S),O=[0,0,0,0,0,0],k="",T="0";if(S<0||20Pe;){var Ne,Ge,ze,Ye=re[Pe++],at=we?Ye.ok:Ye.fail,st=Ye.resolve,Je=Ye.reject,it=Ye.domain;try{at?(we||(Ee.rejection===be&&function(ot,wt){M.call(s,function(){fe?te.emit("rejectionHandled",ot):Ve(ue,ot,wt.value)})}(Ae,Ee),Ee.rejection=ye),at===!0?Ne=ge:(it&&it.enter(),Ne=at(ge),it&&(it.exit(),ze=!0)),Ne===Ye.promise?Je(W("Promise-chain cycle")):(Ge=Ce(Ne))?Ge.call(Ne,st,Je):st(Ne)):Je(ge)}catch(ot){it&&!ze&&it.exit(),Je(ot)}}Ee.reactions=[],Ee.notified=!1,K&&!Ee.rejection&&(Z=Ae,ne=Ee,M.call(s,function(){var ot=ne.value,wt=He(ne);if(wt&&(wt=G(function(){fe?te.emit("unhandledRejection",ot,Z):Ve(ee,Z,ot)}),ne.rejection=fe||He(ne)?be:ye,wt.error))throw wt.value}))}))},Ve=function(Ae,Ee,K){var re;ce?((re=$.createEvent("Event")).promise=Ee,re.reason=K,re.initEvent(Ae,!1,!0),s.dispatchEvent(re)):re={promise:Ee,reason:K},(Ee=s["on"+Ae])?Ee(re):Ae===ee&&N("Unhandled promise rejection",K)},He=function(Ae){return Ae.rejection!==ye&&!Ae.parent},Xe=function(Ae,Ee,K,re){return function(Z){Ae(Ee,K,Z,re)}},We=function(Ae,Ee,K,re){Ee.done||(Ee.done=!0,(Ee=re||Ee).value=K,Ee.state=je,$e(Ae,Ee,!0))},_e=function(Ae,Ee,K,re){if(!Ee.done){Ee.done=!0,re&&(Ee=re);try{if(Ae===K)throw W("Promise can't be resolved itself");var Z=Ce(K);Z?D(function(){var ne={done:!1};try{Z.call(K,Xe(_e,Ae,ne,Ee),Xe(We,Ae,ne,Ee))}catch(ge){We(Ae,ne,ge,Ee)}}):(Ee.value=K,Ee.state=me,$e(Ae,Ee,!1))}catch(ne){We(Ae,{done:!1},ne,Ee)}}};Se&&(B=function(Ae){S(this,B,Q),v(Ae),c.call(this);var Ee=oe(this);try{Ae(Xe(_e,this,Ee),Xe(We,this,Ee))}catch(K){We(this,Ee,K)}},(c=function(Ae){E(this,{type:Q,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(B.prototype,{then:function(Ae,Ee){var K=I(this),re=de(R(this,B));return re.ok=typeof Ae!="function"||Ae,re.fail=typeof Ee=="function"&&Ee,re.domain=fe?te.domain:void 0,K.parent=!0,K.reactions.push(re),K.state!=0&&$e(this,K,!1),re.promise},catch:function(Ae){return this.then(void 0,Ae)}}),m=function(){var Ae=new c,Ee=oe(Ae);this.promise=Ae,this.resolve=Xe(_e,Ae,Ee),this.reject=Xe(We,Ae,Ee)},F.f=de=function(Ae){return Ae===B||Ae===i?new m:se(Ae)},y||typeof l!="function"||(h=l.prototype.then,d(l.prototype,"then",function(Ae,Ee){var K=this;return new B(function(re,Z){h.call(K,re,Z)}).then(Ae,Ee)},{unsafe:!0}),typeof ie=="function"&&b({global:!0,enumerable:!0,forced:!0},{fetch:function(Ae){return A(B,ie.apply(s,arguments))}}))),b({global:!0,wrap:!0,forced:Se},{Promise:B}),o(B,Q,!1,!0),a(Q),i=u(Q),b({target:Q,stat:!0,forced:Se},{reject:function(Ae){var Ee=de(this);return Ee.reject.call(void 0,Ae),Ee.promise}}),b({target:Q,stat:!0,forced:y||Se},{resolve:function(Ae){return A(y&&this===i?B:this,Ae)}}),b({target:Q,stat:!0,forced:Fe},{all:function(Ae){var Ee=this,K=de(Ee),re=K.resolve,Z=K.reject,ne=G(function(){var ge=v(Ee.resolve),we=[],Pe=0,Ne=1;T(Ae,function(Ge){var ze=Pe++,Ye=!1;we.push(void 0),Ne++,ge.call(Ee,Ge).then(function(at){Ye||(Ye=!0,we[ze]=at,--Ne||re(we))},Z)}),--Ne||re(we)});return ne.error&&Z(ne.value),K.promise},race:function(Ae){var Ee=this,K=de(Ee),re=K.reject,Z=G(function(){var ne=v(Ee.resolve);T(Ae,function(ge){ne.call(Ee,ge).then(K.resolve,re)})});return Z.error&&re(Z.value),K.promise}})},{"../internals/a-function":5,"../internals/an-instance":9,"../internals/check-correctness-of-iteration":27,"../internals/classof-raw":28,"../internals/engine-v8-version":48,"../internals/export":50,"../internals/get-built-in":57,"../internals/global":60,"../internals/host-report-errors":63,"../internals/inspect-source":69,"../internals/internal-state":71,"../internals/is-forced":74,"../internals/is-object":75,"../internals/is-pure":76,"../internals/iterate":78,"../internals/microtask":82,"../internals/native-promise-constructor":83,"../internals/new-promise-capability":87,"../internals/perform":106,"../internals/promise-resolve":107,"../internals/redefine":109,"../internals/redefine-all":108,"../internals/set-species":117,"../internals/set-to-string-tag":118,"../internals/species-constructor":122,"../internals/task":131,"../internals/well-known-symbol":149}],189:[function(s,w,_){var c=s("../internals/export"),p=s("../internals/get-built-in"),m=s("../internals/a-function"),i=s("../internals/an-object"),h=s("../internals/is-object"),b=s("../internals/object-create"),y=s("../internals/function-bind"),s=s("../internals/fails"),u=p("Reflect","construct"),l=s(function(){function o(){}return!(u(function(){},[],o)instanceof o)}),d=!s(function(){u(function(){})}),p=l||d;c({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(o,a){m(o),i(a);var f=arguments.length<3?o:m(arguments[2]);if(d&&!l)return u(o,a,f);if(o==f){switch(a.length){case 0:return new o;case 1:return new o(a[0]);case 2:return new o(a[0],a[1]);case 3:return new o(a[0],a[1],a[2]);case 4:return new o(a[0],a[1],a[2],a[3])}var v=[null];return v.push.apply(v,a),new(y.apply(o,v))}return v=f.prototype,f=b(h(v)?v:Object.prototype),v=Function.apply.call(o,f,a),h(v)?v:f}})},{"../internals/a-function":5,"../internals/an-object":10,"../internals/export":50,"../internals/fails":51,"../internals/function-bind":56,"../internals/get-built-in":57,"../internals/is-object":75,"../internals/object-create":91}],190:[function(t,w,_){var c=t("../internals/export"),m=t("../internals/is-object"),i=t("../internals/an-object"),h=t("../internals/has"),b=t("../internals/object-get-own-property-descriptor"),y=t("../internals/object-get-prototype-of");c({target:"Reflect",stat:!0},{get:function s(u,l){var d,p=arguments.length<3?u:arguments[2];return i(u)===p?u[l]:(d=b.f(u,l))?h(d,"value")?d.value:d.get===void 0?void 0:d.get.call(p):m(d=y(u))?s(d,l,p):void 0}})},{"../internals/an-object":10,"../internals/export":50,"../internals/has":61,"../internals/is-object":75,"../internals/object-get-own-property-descriptor":94,"../internals/object-get-prototype-of":98}],191:[function(t,w,_){var c=t("../internals/descriptors"),m=t("../internals/global"),i=t("../internals/is-forced"),h=t("../internals/inherit-if-required"),b=t("../internals/object-define-property").f,y=t("../internals/object-get-own-property-names").f,s=t("../internals/is-regexp"),u=t("../internals/regexp-flags"),l=t("../internals/regexp-sticky-helpers"),d=t("../internals/redefine"),p=t("../internals/fails"),o=t("../internals/internal-state").set,a=t("../internals/set-species"),f=t("../internals/well-known-symbol")("match"),v=m.RegExp,S=v.prototype,O=/a/g,k=/a/g,T=new v(O)!==O,P=l.UNSUPPORTED_Y;if(c&&i("RegExp",!T||P||p(function(){return k[f]=!1,v(O)!=O||v(k)==k||v(O,"i")!="/a/i"}))){for(var R=function(A,N){var F,G=this instanceof R,X=s(A),V=N===void 0;return!G&&X&&A.constructor===R&&V?A:(T?X&&!V&&(A=A.source):A instanceof R&&(V&&(N=u.call(A)),A=A.source),P&&(F=!!N&&-1D;)(function(A){A in R||b(R,A,{configurable:!0,get:function(){return v[A]},set:function(N){v[A]=N}})})(M[D++]);(S.constructor=R).prototype=S,d(m,"RegExp",R)}a("RegExp")},{"../internals/descriptors":43,"../internals/fails":51,"../internals/global":60,"../internals/inherit-if-required":68,"../internals/internal-state":71,"../internals/is-forced":74,"../internals/is-regexp":77,"../internals/object-define-property":93,"../internals/object-get-own-property-names":96,"../internals/redefine":109,"../internals/regexp-flags":112,"../internals/regexp-sticky-helpers":113,"../internals/set-species":117,"../internals/well-known-symbol":149}],192:[function(m,w,_){var c=m("../internals/export"),m=m("../internals/regexp-exec");c({target:"RegExp",proto:!0,forced:/./.exec!==m},{exec:m})},{"../internals/export":50,"../internals/regexp-exec":111}],193:[function(h,w,_){var c=h("../internals/redefine"),m=h("../internals/an-object"),s=h("../internals/fails"),i=h("../internals/regexp-flags"),h="toString",b=RegExp.prototype,y=b[h],s=s(function(){return y.call({source:"a",flags:"b"})!="/a/b"}),u=y.name!=h;(s||u)&&c(RegExp.prototype,h,function(){var l=m(this),d=String(l.source),p=l.flags;return"/"+d+"/"+String(p===void 0&&l instanceof RegExp&&!("flags"in b)?i.call(l):p)},{unsafe:!0})},{"../internals/an-object":10,"../internals/fails":51,"../internals/redefine":109,"../internals/regexp-flags":112}],194:[function(m,w,_){var c=m("../internals/collection"),m=m("../internals/collection-strong");w.exports=c("Set",function(i){return function(){return i(this,arguments.length?arguments[0]:void 0)}},m)},{"../internals/collection":32,"../internals/collection-strong":30}],195:[function(y,w,_){var c=y("../internals/export"),m=y("../internals/object-get-own-property-descriptor").f,i=y("../internals/to-length"),h=y("../internals/not-a-regexp"),b=y("../internals/require-object-coercible"),l=y("../internals/correct-is-regexp-logic"),y=y("../internals/is-pure"),s="".endsWith,u=Math.min,l=l("endsWith");c({target:"String",proto:!0,forced:!!(y||l||!(c=m(String.prototype,"endsWith"))||c.writable)&&!l},{endsWith:function(d){var p=String(b(this)),o=(h(d),1=u.length?{value:void 0,done:!0}:(u=c(u,l),s.index+=u.length,{value:u,done:!1})})},{"../internals/define-iterator":41,"../internals/internal-state":71,"../internals/string-multibyte":124}],198:[function(t,w,_){var c=t("../internals/fix-regexp-well-known-symbol-logic"),m=t("../internals/an-object"),i=t("../internals/to-length"),h=t("../internals/require-object-coercible"),b=t("../internals/advance-string-index"),y=t("../internals/regexp-exec-abstract");c("match",1,function(s,u,l){return[function(d){var p=h(this),o=d==null?void 0:d[s];return o!==void 0?o.call(d,p):new RegExp(d)[s](String(p))},function(d){var p=l(u,d,this);if(p.done)return p.value;var o=m(d),a=String(this);if(!o.global)return y(o,a);for(var f=o.unicode,v=[],S=o.lastIndex=0;(O=y(o,a))!==null;){var O=String(O[0]);(v[S]=O)===""&&(o.lastIndex=b(a,i(o.lastIndex),f)),S++}return S===0?null:v}]})},{"../internals/advance-string-index":8,"../internals/an-object":10,"../internals/fix-regexp-well-known-symbol-logic":52,"../internals/regexp-exec-abstract":110,"../internals/require-object-coercible":114,"../internals/to-length":137}],199:[function(t,w,_){var c=t("../internals/export"),m=t("../internals/string-pad").start;c({target:"String",proto:!0,forced:t("../internals/string-pad-webkit-bug")},{padStart:function(i){return m(this,i,1]*>)/g,a=/\$([$&'`]|\d\d?)/g;c("replace",2,function(f,v,S,O){var k=O.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,T=O.REPLACE_KEEPS_$0,P=k?"$":"$0";return[function(R,M){var D=y(this),A=R==null?void 0:R[f];return A!==void 0?A.call(R,D,M):v.call(String(D),R,M)},function(R,M){if(!k&&T||typeof M=="string"&&M.indexOf(P)===-1){var D=S(v,R,this,M);if(D.done)return D.value}for(var A,N=m(R),F=String(this),G=typeof M=="function",X=(G||(M=String(M)),N.global),V=(X&&(A=N.unicode,N.lastIndex=0),[]);(E=u(N,F))!==null&&(V.push(E),X);)String(E[0])===""&&(N.lastIndex=s(F,h(N.lastIndex),A));for(var z,Y="",Q=0,oe=0;oe>>0;if(M==0)return[];if(T===void 0)return[R];if(!m(T))return S.call(R,T,M);for(var D,A,N,F=[],P=(T.ignoreCase?"i":"")+(T.multiline?"m":"")+(T.unicode?"u":"")+(T.sticky?"y":""),G=0,X=new RegExp(T.source,P+"g");(D=l.call(X,R))&&!(G<(A=X.lastIndex)&&(F.push(R.slice(G,D.index)),1=M));)X.lastIndex===D.index&&X.lastIndex++;return G===R.length?!N&&X.test("")||F.push(""):F.push(R.slice(G)),F.length>M?F.slice(0,M):F}:"0".split(void 0,0).length?function(T,P){return T===void 0&&P===0?[]:S.call(this,T,P)}:S;return[function(T,P){var R=h(this),M=T==null?void 0:T[v];return M!==void 0?M.call(T,R,P):k.call(String(R),T,P)},function(D,P){var R=O(k,D,this,P,k!==S);if(R.done)return R.value;var R=i(D),M=String(this),D=b(R,RegExp),A=R.unicode,N=(R.ignoreCase?"i":"")+(R.multiline?"m":"")+(R.unicode?"u":"")+(f?"y":"g"),F=new D(f?R:"^(?:"+R.source+")",N),G=P===void 0?a:P>>>0;if(G==0)return[];if(M.length===0)return u(F,M)===null?[M]:[];for(var X=0,V=0,z=[];Vie.key){fe.splice(de,0,ie);break}de===ee&&fe.push(ie)}se.updateURL()},forEach:function(ie){for(var de,se=z(this).entries,fe=S(ie,16))return;for(It=0;Zt();){if(Yt=null,It>0)if(Zt()=="."&&It<4)Ze++;else return;if(!B.test(Zt()))return;for(;B.test(Zt());){if(Xr=parseInt(Zt(),10),Yt===null)Yt=Xr;else{if(Yt==0)return;Yt=Yt*10+Xr}if(Yt>255)return;Ze++}pt[qe]=pt[qe]*256+Yt,It++,(It==2||It==4)&&qe++}if(It!=4)return;break}else if(Zt()==":"){if(Ze++,!Zt())return}else if(Zt())return;pt[qe++]=Nt}if(ft!==null)for(jr=qe-ft,qe=7;qe!=0&&jr>0;)Yr=pt[qe],pt[qe--]=pt[ft+jr-1],pt[ft+--jr]=Yr;else if(qe!=8)return;return pt}(Ue.slice(1,-1)))?void(pe.host=Qe):Q;if(Ce(pe))return Ue=T(Ue),de.test(Ue)||(Qe=function(Ie){var pt=Ie.split("."),qe,ft,Ze,Nt,Ht,It,Yt;if(pt.length&&pt[pt.length-1]==""&&pt.pop(),(qe=pt.length)>4)return Ie;for(ft=[],Ze=0;Ze1&&Nt.charAt(0)=="0"&&(Ht=W.test(Nt)?16:8,Nt=Nt.slice(Ht==8?1:2)),Nt==="")It=0;else{if(!(Ht==10?te:Ht==8?$:ie).test(Nt))return Ie;It=parseInt(Nt,Ht)}ft.push(It)}for(Ze=0;Ze=V(256,5-qe))return null}else if(It>255)return null;for(Yt=ft.pop(),Ze=0;Ze":1,"`":1}),ye=S({},je,{"#":1,"?":1,"{":1,"}":1}),be=S({},ye,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Se=function(pe,Ue){var Qe=k(pe,0);return 32"u"&&c!==void 0&&{}.toString.call(c)==="[object process]",f=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function v(){var ee=setTimeout;return function(){return ee(O,1)}}var S=new Array(1e3);function O(){for(var ee=0;eeR,applyPalette:()=>function(G,X,V="rgb565"){if(!G||!G.buffer)throw new Error("quantize() expected RGBA Uint8Array data");if(!(G instanceof Uint8Array||G instanceof Uint8ClampedArray))throw new Error("quantize() expected RGBA Uint8Array data");if(256>24&255,B=$>>16&255,W=$>>8&255,$=255&$,te=d($,W,B,I),te=te in E?E[te]:E[te]=function(ee,ue,me,je,ye){let be=0,Se=1e100;for(let Ve=0;VeSe||(Fe=Ce[0],($e+=k(Fe-ee))>Se||(Fe=Ce[1],($e+=k(Fe-ue))>Se||(Fe=Ce[2],($e+=k(Fe-me))>Se||(Se=$e,be=Ve))))}return be}($,W,B,I,X);oe[ce]=te}else{const ce=V==="rgb444"?p:l;for(let ee=0;ee>16&255,de=se>>8&255,se=255&se,fe=ce(se,de,ie),fe=fe in E?E[fe]:E[fe]=function(ue,me,je,ye){let be=0,Se=1e100;for(let Ve=0;VeSe||(Fe=Ce[1],($e+=k(Fe-me))>Se||(Fe=Ce[2],($e+=k(Fe-je))>Se||(Se=$e,be=Ve)))}return be}(se,de,ie,X);oe[ee]=fe}}return oe},default:()=>F,nearestColor:()=>function(G,X,V=S){return G[T(G,X,V)]},nearestColorIndex:()=>T,nearestColorIndexWithDistance:()=>P,prequantize:()=>function(G,{roundRGB:X=5,roundAlpha:V=10,oneBitAlpha:z=null}={}){const Y=new Uint32Array(G.buffer);for(let B=0;B>24&255;var Q,oe=I>>16&255,E=I>>8&255,I=255&I;W=O(W,V),z&&(Q=typeof z=="number"?z:127,W=W<=Q?0:255),I=O(I,X),E=O(E,X),oe=O(oe,X),Y[B]=W<<24|oe<<16|E<<8|I<<0}},quantize:()=>function(G,X,V={}){var{format:z="rgb565",clearAlpha:Y=!0,clearAlphaColor:Q=0,clearAlphaThreshold:oe=0,oneBitAlpha:E=!1}=V;if(!G||!G.buffer)throw new Error("quantize() expected RGBA Uint8Array data");if(!(G instanceof Uint8Array||G instanceof Uint8ClampedArray))throw new Error("quantize() expected RGBA Uint8Array data");G=new Uint32Array(G.buffer);let I=V.useSqrt!==!1;const B=z==="rgba4444",W=function(He,Xe){const We=Xe==="rgb444"?4096:65536,_e=new Array(We),Ae=He.length;if(Xe==="rgba4444")for(let st=0;st>24&255,K=Z>>16&255,re=Z>>8&255,Z=255&Z,ne=d(Z,re,K,Ee);let Je=ne in _e?_e[ne]:_e[ne]=v();Je.rc+=Z,Je.gc+=re,Je.bc+=K,Je.ac+=Ee,Je.cnt++}else if(Xe==="rgb444")for(let st=0;st>16&255,we=Pe>>8&255,Pe=255&Pe,Ne=p(Pe,we,ge);let Je=Ne in _e?_e[Ne]:_e[Ne]=v();Je.rc+=Pe,Je.gc+=we,Je.bc+=ge,Je.cnt++}else for(let st=0;st>16&255,ze=Ye>>8&255,Ye=255&Ye,at=l(Ye,ze,Ge);let Je=at in _e?_e[at]:_e[at]=v();Je.rc+=Ye,Je.gc+=ze,Je.bc+=Ge,Je.cnt++}return _e}(G,z),$=W.length,te=$-1,ie=new Uint32Array($+1);for(var de=0,se=0;se<$;++se){const He=W[se];He!=null&&(Ce=1/He.cnt,B&&(He.ac*=Ce),He.rc*=Ce,He.gc*=Ce,He.bc*=Ce,W[de++]=He)}a(X)/de<.022&&(I=!1);for(var fe,ce,ee,se=0;se>1,!(W[fe=ie[ee]].err<=ue));ce=ee)ie[ce]=fe;ie[ce]=se}var me,je=de-X;for(se=0;se=me.mtm&&W[me.nn].mtm<=me.tm)break;for(me.mtm==te?ye=ie[1]=ie[ie[0]--]:(f(W,ye,!1),me.tm=se),ue=W[ye].err,ce=1;(ee=ce+ce)<=ie[0]&&(eeW[ie[ee+1]].err&&ee++,!(ue<=W[fe=ie[ee]].err));ce=ee)ie[ce]=fe;ie[ce]=ye}var be=W[me.nn],Se=me.cnt,Fe=be.cnt,Ce=1/(Se+Fe);B&&(me.ac=Ce*(Se*me.ac+Fe*be.ac)),me.rc=Ce*(Se*me.rc+Fe*be.rc),me.gc=Ce*(Se*me.gc+Fe*be.gc),me.bc=Ce*(Se*me.bc+Fe*be.bc),me.cnt+=be.cnt,me.mtm=++se,W[be.bk].fw=be.fw,W[be.fw].bk=be.bk,be.mtm=te}let $e=[];for(se=0;;0){let He=o(Math.round(W[se].rc),0,255),Xe=o(Math.round(W[se].gc),0,255),We=o(Math.round(W[se].bc),0,255),_e=255;B&&(_e=o(Math.round(W[se].ac),0,255),E&&(Ve=typeof E=="number"?E:127,_e=_e<=Ve?0:255),Y&&_e<=oe&&(He=Xe=We=Q,_e=0));var Ve=B?[He,Xe,We,_e]:[He,Xe,We];if(function(Ae,Ee){for(let Z=0;Zfunction(G,X,V=5){if(G.length&&X.length){var z=G.map(I=>I.slice(0,3)),Y=V*V,Q=G[0].length;for(let I=0;IQ?B.slice(0,3):B.slice();var E=P(z,B.slice(0,3),S),oe=E[0],E=E[1];0>>0),Q!=0&&(Y=Math.max(Y,256));const oe=V;V=new Uint8Array(Y),0>=8,$-=8;if((ue>fe||de)&&(de?(se=ie,fe=(1<>=8,$-=8;0>3}function d(G,X,V,z){return G>>4|240&X|(240&V)<<4|(240&z)<<8}function p(G,X,V){return G>>4<<8|240&X|V>>4}function o(G,X,V){return G>8&255)}function A(G,X){for(var V=0;V>1,p=-7,o=i?f-1:0,a=i?-1:1,f=c[m+o];for(o+=a,y=f&(1<<-p)-1,f>>=-p,p+=u;0>=-p,p+=h;0>1,o=b===23?Math.pow(2,-24)-Math.pow(2,-77):0,a=h?0:v-1,f=h?1:-1,v=m<0||m===0&&1/m<0?1:0;for(m=Math.abs(m),isNaN(m)||m===1/0?(u=isNaN(m)?1:0,s=d):(s=Math.floor(Math.log(m)/Math.LN2),m*(h=Math.pow(2,-s))<1&&(s--,h*=2),2<=(m+=1<=s+p?o/h:o*Math.pow(2,1-p))*h&&(s++,h/=2),d<=s+p?(u=0,s=d):1<=s+p?(u=(m*h-1)*Math.pow(2,b),s+=p):(u=m*Math.pow(2,p-1)*Math.pow(2,b),s=0));8<=b;c[i+a]=255&u,a+=f,u/=256,b-=8);for(s=s<Math.abs(K[0])&&(re=1),re=Math.abs(K[2])>Math.abs(K[re])?2:re}function D(K,re){K.f+=re.f,K.b.f+=re.b.f}function A(K,re,Z){return K=K.a,re=re.a,Z=Z.a,re.b.a===K?Z.b.a===K?i(re.a,Z.a)?b(Z.b.a,re.a,Z.a)<=0:0<=b(re.b.a,Z.a,re.a):b(Z.b.a,K,Z.a)<=0:Z.b.a===K?0<=b(re.b.a,K,re.a):(re=h(re.b.a,K,re.a),(K=h(Z.b.a,K,Z.a))<=re)}function N(K){K.a.i=null;var re=K.e;re.a.c=re.c,re.c.a=re.a,K.e=null}function F(K,re){o(K.a),K.c=!1,(K.a=re).i=K}function G(K){for(var re=K.a.a;(K=Ee(K)).a.a===re;);return K.c&&(F(K,re=f(Ae(K).a.b,K.a.e)),K=Ee(K)),K}function X(K,re,Z){var ne=new _e;return ne.a=Z,ne.e=de(K.f,re.e,ne),Z.i=ne}function V(K,re){switch(K.s){case 100130:return(1&re)!=0;case 100131:return re!==0;case 100132:return 0>1]],Ne[Pe[ze]])?Xe:We)(Z,ze),Ne[we]=null,Ge[we]=Z.b,Z.b=we}else for(Z.c[-(we+1)]=null;0Math.max(Pe.a,Ge.a))){if(i(we,Pe)){if(0Z.f&&(Z.f*=2,Z.c=$e(Z.c,Z.f+1)),Z.b===0?ge=ne:(ge=Z.b,Z.b=Z.c[Z.b]),Z.e[ge]=re,Z.c[ge]=ne,Z.d[ne]=ge,Z.h&&We(Z,ne),ge):(Z=K.a++,K.c[Z]=re,-(Z+1))}function Fe(K){if(K.a===0)return He(K.b);var re=K.c[K.d[K.a-1]];if(K.b.a!==0&&i(Ve(K.b),re))return He(K.b);for(;--K.a,0K.a||i(ne[Pe],ne[Ge])){ge[Z[we]=Pe]=we;break}ge[Z[we]=Ge]=we,we=Ne}}function We(K,re){for(var Z=K.d,ne=K.e,ge=K.c,we=re,Pe=Z[we];;){var Ne=we>>1,Ge=Z[Ne];if(Ne==0||i(ne[Ge],ne[Pe])){ge[Z[we]=Pe]=we;break}ge[Z[we]=Ge]=we,we=Ne}}function _e(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function Ae(K){return K.e.c.b}function Ee(K){return K.e.a.b}(c=fe.prototype).x=function(){ce(this,0)},c.B=function(K,re){switch(K){case 100142:return;case 100140:switch(re){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=re)}break;case 100141:return void(this.m=!!re);default:return void ee(this,100900)}ee(this,100901)},c.y=function(K){switch(K){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:ee(this,100900)}return!1},c.A=function(K,re,Z){this.j[0]=K,this.j[1]=re,this.j[2]=Z},c.z=function(K,re){var Z=re||null;switch(K){case 100100:case 100106:this.h=Z;break;case 100104:case 100110:this.l=Z;break;case 100101:case 100107:this.k=Z;break;case 100102:case 100108:this.i=Z;break;case 100103:case 100109:this.p=Z;break;case 100105:case 100111:this.o=Z;break;case 100112:this.r=Z;break;default:ee(this,100900)}},c.C=function(K,re){var Z=!1,ne=[0,0,0];ce(this,2);for(var ge=0;ge<3;++ge){var we=K[ge];we<-1e150&&(we=-1e150,Z=!0),1e150ne[ze]&&(ne[ze]=Ye,ge[ze]=Z)}if(ne[1]-Ne[1]>ne[Z=0]-Ne[0]&&(Z=1),Ne[Z=ne[2]-Ne[2]>ne[Z]-Ne[Z]?2:Z]>=ne[Z])Pe[0]=0,Pe[1]=0,Pe[2]=1;else{for(Ne=Ge[Z],ge=ge[Z],Ge=[ne=0,0,0],Ne=[Ne.g[0]-ge.g[0],Ne.g[1]-ge.g[1],Ne.g[2]-ge.g[2]],ze=[0,0,0],Z=we.e;Z!==we;Z=Z.e)ze[0]=Z.g[0]-ge.g[0],ze[1]=Z.g[1]-ge.g[1],ze[2]=Z.g[2]-ge.g[2],Ge[0]=Ne[1]*ze[2]-Ne[2]*ze[1],Ge[1]=Ne[2]*ze[0]-Ne[0]*ze[2],Ge[2]=Ne[0]*ze[1]-Ne[1]*ze[0],ne<(Ye=Ge[0]*Ge[0]+Ge[1]*Ge[1]+Ge[2]*Ge[2])&&(ne=Ye,Pe[0]=Ge[0],Pe[1]=Ge[1],Pe[2]=Ge[2]);ne<=0&&(Pe[0]=Pe[1]=Pe[2]=0,Pe[M(Ne)]=1)}we=!0}for(Ge=M(Pe),Z=this.b.c,ne=(Ge+1)%3,ge=(Ge+2)%3,Ge=0>=1;)++p;if(a=1<>8&255,i[s++]=255&b,i[s++]=b>>8&255,i[s++]=(l!==null?128:0)|p,i[s++]=o,i[s++]=0,l!==null)for(var f=0,v=l.length;f>16&255,i[s++]=S>>8&255,i[s++]=255&S}if(u!==null){if(u<0||65535>8&255,i[s++]=0}var O=!1;this.addFrame=function(k,T,P,R,M,D){if(O===!0&&(--s,O=!1),D=D===void 0?{}:D,k<0||T<0||65535>=1;)++F;var G=1<>8&255,i[s++]=Y,i[s++]=0),i[s++]=44,i[s++]=255&k,i[s++]=k>>8&255,i[s++]=255&T,i[s++]=T>>8&255,i[s++]=255&P,i[s++]=P>>8&255,i[s++]=255&R,i[s++]=R>>8&255,i[s++]=A===!0?128|F-1:0,A===!0)for(var Q=0,oe=N.length;Q>16&255,i[s++]=E>>8&255,i[s++]=255&E}return s=function(I,B,W,$){I[B++]=W;var te=B++,ie=1<>=8,ee-=8,B===te+256&&(I[te]=255,te=B++)}function je(He){ue|=He<>=8,ee-=8,B===te+256&&(I[te]=255,te=B++);fe===4096?(je(ie),fe=1+se,ce=W+1,be={}):(1<>=p,a-=p,T==u)d=1+l,o=(1<<(p=s+1))-1,k=null;else{if(T==l)break;for(var P=T>8,++R;var D=M;if(y>=8;k!==null&&d<4096&&(O[d++]=k<<8|D,o+1<=d&&p<12&&(++p,o=o<<1|1)),k=T}}v!==y&&console.log("Warning, gif stream shorter than expected.")}try{_.GifWriter=c,_.GifReader=function(i){var h=0;if(i[h++]!==71||i[h++]!==73||i[h++]!==70||i[h++]!==56||(i[h++]+1&253)!=56||i[h++]!==97)throw new Error("Invalid GIF 87a/89a header.");var b=i[h++]|i[h++]<<8,y=i[h++]|i[h++]<<8,s=i[h++],u=1<<1+(7&s),l=(i[h++],i[h++],null),d=null,p=(s>>7&&(l=h,h+=3*(d=u)),!0),o=[],a=0,f=null,v=0,S=null;for(this.width=b,this.height=y;p&&h>2&7,h++;break;case 254:for(;;){if(!(0<=(k=i[h++])))throw Error("Invalid block size");if(k===0)break;h+=k}break;default:throw new Error("Unknown graphic control label: 0x"+i[h-1].toString(16))}break;case 44:var k,T=i[h++]|i[h++]<<8,P=i[h++]|i[h++]<<8,R=i[h++]|i[h++]<<8,M=i[h++]|i[h++]<<8,X=i[h++],D=X>>6&1,A=1<<1+(7&X),N=l,F=d,G=!1,X=(X>>7&&(G=!0,N=h,h+=3*(F=A)),h);for(h++;;){if(!(0<=(k=i[h++])))throw Error("Invalid block size");if(k===0)break;h+=k}o.push({x:T,y:P,width:R,height:M,has_local_palette:G,palette_offset:N,palette_size:F,data_offset:X,data_length:h-X,transparent_index:f,interlaced:!!D,delay:a,disposal:v});break;case 59:p=!1;break;default:throw new Error("Unknown gif block: 0x"+i[h-1].toString(16))}this.numFrames=function(){return o.length},this.loopCount=function(){return S},this.frameInfo=function(V){if(V<0||V>=o.length)throw new Error("Frame index out of range.");return o[V]},this.decodeAndBlitFrameBGRA=function(V,z){for(var V=this.frameInfo(V),Y=V.width*V.height,Q=new Uint8Array(Y),oe=(m(i,V.data_offset,Q,Y),V.palette_offset),E=V.transparent_index,I=(E===null&&(E=256),V.width),B=b-I,W=I,$=4*(V.y*b+V.x),te=4*((V.y+V.height)*b+V.x),ie=$,de=4*B,se=(V.interlaced===!0&&(de+=4*b*7),8),fe=0,ce=Q.length;fe>=1)),me===E?ie+=4:(ee=i[oe+3*me],ue=i[oe+3*me+1],me=i[oe+3*me+2],z[ie++]=me,z[ie++]=ue,z[ie++]=ee,z[ie++]=255),--W}},this.decodeAndBlitFrameRGBA=function(V,z){for(var V=this.frameInfo(V),Y=V.width*V.height,Q=new Uint8Array(Y),oe=(m(i,V.data_offset,Q,Y),V.palette_offset),E=V.transparent_index,I=(E===null&&(E=256),V.width),B=b-I,W=I,$=4*(V.y*b+V.x),te=4*((V.y+V.height)*b+V.x),ie=$,de=4*B,se=(V.interlaced===!0&&(de+=4*b*7),8),fe=0,ce=Q.length;fe>=1)),me===E?ie+=4:(ee=i[oe+3*me],ue=i[oe+3*me+1],me=i[oe+3*me+2],z[ie++]=ee,z[ie++]=ue,z[ie++]=me,z[ie++]=255),--W}}}}catch{}},{}],254:[function(t,w,_){(function(c){var m,i;m=this,i=function(h){function b(U){if(this==null)throw TypeError();var j,C=String(this),L=C.length,U=U?Number(U):0;if(!((U=U!=U?0:U)<0||L<=U))return 55296<=(j=C.charCodeAt(U))&&j<=56319&&U+1>>16-j;return g.tag>>>=j,g.bitcount-=j,L+C}function A(g,j){for(;g.bitcount<24;)g.tag|=g.source[g.sourceIndex++]<>>=1,C+=j.table[++U],0<=(L-=j.table[U]););return g.tag=H,g.bitcount-=U,j.trans[C+L]}function N(g,j,C){for(;;){var L=A(g,j);if(L===256)return s;if(L<256)g.dest[g.destLen++]=L;else for(var U,H=D(g,a[L-=257],f[L]),L=A(g,C),q=U=g.destLen-D(g,v[L],S[L]);q>>=1,L=U,D(H,2,0)){case 0:C=function(Me){for(var tt,lt;8this.x2&&(this.x2=g)),typeof j=="number"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=j,this.y2=j),jthis.y2&&(this.y2=j))},Y.prototype.addX=function(g){this.addPoint(g,null)},Y.prototype.addY=function(g){this.addPoint(null,g)},Y.prototype.addBezier=function(g,j,C,L,U,H,q,J){var le=[g,j],ae=[C,L],ve=[U,H],ke=[q,J];this.addPoint(g,j),this.addPoint(q,J);for(var xe=0;xe<=1;xe++){var he,Re=6*le[xe]-12*ae[xe]+6*ve[xe],Oe=-3*le[xe]+9*ae[xe]-9*ve[xe]+3*ke[xe],Le=3*ae[xe]-3*le[xe];Oe==0?Re==0||0<(he=-Le/Re)&&he<1&&(xe===0&&this.addX(z(le[xe],ae[xe],ve[xe],ke[xe],he)),xe===1&&this.addY(z(le[xe],ae[xe],ve[xe],ke[xe],he))):(he=Math.pow(Re,2)-4*Le*Oe)<0||(0<(Le=(-Re+Math.sqrt(he))/(2*Oe))&&Le<1&&(xe===0&&this.addX(z(le[xe],ae[xe],ve[xe],ke[xe],Le)),xe===1&&this.addY(z(le[xe],ae[xe],ve[xe],ke[xe],Le))),0<(Le=(-Re-Math.sqrt(he))/(2*Oe))&&Le<1&&(xe===0&&this.addX(z(le[xe],ae[xe],ve[xe],ke[xe],Le)),xe===1&&this.addY(z(le[xe],ae[xe],ve[xe],ke[xe],Le))))}},Y.prototype.addQuad=function(g,j,C,L,U,H){C=g+2/3*(C-g),L=j+2/3*(L-j),this.addBezier(g,j,C,L,C+1/3*(U-g),L+1/3*(H-j),U,H)},Q.prototype.moveTo=function(g,j){this.commands.push({type:"M",x:g,y:j})},Q.prototype.lineTo=function(g,j){this.commands.push({type:"L",x:g,y:j})},Q.prototype.curveTo=Q.prototype.bezierCurveTo=function(g,j,C,L,U,H){this.commands.push({type:"C",x1:g,y1:j,x2:C,y2:L,x:U,y:H})},Q.prototype.quadTo=Q.prototype.quadraticCurveTo=function(g,j,C,L){this.commands.push({type:"Q",x1:g,y1:j,x:C,y:L})},Q.prototype.close=Q.prototype.closePath=function(){this.commands.push({type:"Z"})},Q.prototype.extend=function(g){var j;if(g.commands)g=g.commands;else if(g instanceof Y)return j=g,this.moveTo(j.x1,j.y1),this.lineTo(j.x2,j.y1),this.lineTo(j.x2,j.y2),this.lineTo(j.x1,j.y2),void this.close();Array.prototype.push.apply(this.commands,g)},Q.prototype.getBoundingBox=function(){for(var g=new Y,j=0,C=0,L=0,U=0,H=0;H>8&255,255&g]},$.USHORT=te(2),W.SHORT=function(g){return[(g=32768<=g?-(65536-g):g)>>8&255,255&g]},$.SHORT=te(2),W.UINT24=function(g){return[g>>16&255,g>>8&255,255&g]},$.UINT24=te(3),W.ULONG=function(g){return[g>>24&255,g>>16&255,g>>8&255,255&g]},$.ULONG=te(4),W.LONG=function(g){return[(g=2147483648<=g?-(4294967296-g):g)>>24&255,g>>16&255,g>>8&255,255&g]},$.LONG=te(4),W.FIXED=W.ULONG,$.FIXED=$.ULONG,W.FWORD=W.SHORT,$.FWORD=$.SHORT,W.UFWORD=W.USHORT,$.UFWORD=$.USHORT,W.LONGDATETIME=function(g){return[0,0,0,0,g>>24&255,g>>16&255,g>>8&255,255&g]},$.LONGDATETIME=te(8),W.TAG=function(g){return I.argument(g.length===4,"Tag should be exactly 4 ASCII characters."),[g.charCodeAt(0),g.charCodeAt(1),g.charCodeAt(2),g.charCodeAt(3)]},$.TAG=te(4),W.Card8=W.BYTE,$.Card8=$.BYTE,W.Card16=W.USHORT,$.Card16=$.USHORT,W.OffSize=W.BYTE,$.OffSize=$.BYTE,W.SID=W.USHORT,$.SID=$.USHORT,W.NUMBER=function(g){return-107<=g&&g<=107?[g+139]:108<=g&&g<=1131?[247+((g-=108)>>8),255&g]:-1131<=g&&g<=-108?[251+((g=-g-108)>>8),255&g]:-32768<=g&&g<=32767?W.NUMBER16(g):W.NUMBER32(g)},$.NUMBER=function(g){return W.NUMBER(g).length},W.NUMBER16=function(g){return[28,g>>8&255,255&g]},$.NUMBER16=te(3),W.NUMBER32=function(g){return[29,g>>24&255,g>>16&255,g>>8&255,255&g]},$.NUMBER32=te(5),W.REAL=function(g){for(var j=g.toString(),C=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(j),L=(C&&(C=parseFloat("1e"+((C[2]?+C[2]:0)+C[1].length)),j=(Math.round(g*C)/C).toString()),""),U=0,H=j.length;U>8&255,j[j.length]=255&L}return j},$.UTF16=function(g){return 2*g.length};var ie,de={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-cyrillic":"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ",macintosh:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"},se=(B.MACSTRING=function(g,j,C,L){var U=de[L];if(U!==void 0){for(var H="",q=0;q>8&255,xe+256&255)}return ae})(g,L,j);return j},W.INDEX=function(g){for(var j=1,C=[j],L=[],U=0;U>8,j[ve+1]=255&ke,j=j.concat(L[ae])}return j},$.TABLE=function(g){for(var j=0,C=g.fields.length,L=0;L>1,J.skip("uShort",3),Le.glyphIndexMap={};for(var lt,rt=new Ee.Parser(Te,Me+tt+14),nt=new Ee.Parser(Te,Me+tt+16+2*lt),ut=new Ee.Parser(Te,Me+tt+16+4*lt),jt=new Ee.Parser(Te,Me+tt+16+6*lt),Dt=Me+tt+16+8*lt,zt=0;zt>4,q=15&q;if(H==15||(L+=U[H],q==15))break;L+=U[q]}return parseFloat(L)}if(32<=j&&j<=246)return j-139;if(247<=j&&j<=250)return 256*(j-247)+g.parseByte()+108;if(251<=j&&j<=254)return 256*-(j-251)-g.parseByte()-108;throw new Error("Invalid b0 "+j)}function sr(g,j,C){var L=new Ee.Parser(g,j=j!==void 0?j:0),U=[],H=[];for(C=C!==void 0?C:g.length;L.relativeOffset>1,he.length=0,Oe=!0}return function nt(ut){for(var jt,Dt,zt,ir,ar,Ur,xt,kt,gt,lr,Pt,tr,Tt=0;TtMath.abs(tr-Me)?Te=Pt+he.shift():Me=tr+he.shift(),xe.curveTo(L,U,H,q,xt,kt),xe.curveTo(gt,lr,Pt,tr,Te,Me);break;default:console.log("Glyph "+j.index+": unknown operator 1200"+Qt),he.length=0}break;case 14:0>3;break;case 21:2>16),Tt+=2;break;case 29:ar=he.pop()+g.gsubrsBias,(Ur=g.gsubrs[ar])&&nt(Ur);break;case 30:for(;0=C.begin&&g=ge.length&&(H=L.parseChar(),C.names.push(L.parseString(H)));break;case 2.5:C.numberOfGlyphs=L.parseUShort(),C.offset=new Array(C.numberOfGlyphs);for(var J=0;Jke.value.tag?1:-1}),j.fields=j.fields.concat(L),j.fields=j.fields.concat(U),j}function Eu(g,j,C){for(var L=0;L 123 are reserved for internal usage");he|=1<>>1,H=g[U].tag;if(H===j)return U;H>>1,H=g[U];if(H===j)return U;H>>1,q=(U=g[H]).start;if(q===j)return U;q(U=g[C-1]).end?0:U}function Ls(g,j){this.font=g,this.tableName=j}function As(g){Ls.call(this,g,"gpos")}function Zr(g){Ls.call(this,g,"gsub")}function Mu(g,j,C){for(var L=g.subtables,U=0;Uj.points.length-1||L.matchedPoints[1]>U.points.length-1)throw Error("Matched points out of range in "+j.name);var q=j.points[L.matchedPoints[0]],J=U.points[L.matchedPoints[1]],L={xScale:L.xScale,scale01:L.scale01,scale10:L.scale10,yScale:L.yScale,dx:0,dy:0},J=ta([J],L)[0];L.dx=q.x-J.x,L.dy=q.y-J.y,H=ta(U.points,L)}j.points=j.points.concat(H)}}return Pu(j.points)}(As.prototype=Ls.prototype={searchTag:ea,binSearch:ku,getTable:function(g){var j=this.font.tables[this.tableName];return j=!j&&g?this.font.tables[this.tableName]=this.createDefaultTable():j},getScriptNames:function(){var g=this.getTable();return g?g.scripts.map(function(j){return j.tag}):[]},getDefaultScriptName:function(){var g=this.getTable();if(g){for(var j=!1,C=0;C=q[j-1].tag,"Features must be added in alphabetical order."),q.push(U={tag:C,feature:{params:0,lookupListIndexes:[]}}),H.push(j),U.feature}},getLookupTables:function(H,j,C,L,U){var H=this.getFeatureTable(H,j,C,U),q=[];if(H){for(var J,le=H.lookupListIndexes,ae=this.font.tables[this.tableName].lookups,ve=0;ve",H),j.stack.push(Math.round(64*H))}function na(g,j){var C=j.stack,L=C.pop(),U=j.fv,H=j.pv,q=j.ppem,J=j.deltaBase+16*(g-1),le=j.deltaShift,ae=j.z0;h.DEBUG&&console.log(j.step,"DELTAP["+g+"]",L,C);for(var ve=0;ve>4)===q&&(0<=(xe=(15&xe)-8)&&xe++,h.DEBUG&&console.log(j.step,"DELTAPFIX",ke,"by",xe*le),ke=ae[ke],U.setRelative(ke,ke,xe*le,H))}}function Is(g,j){var C=j.stack,L=C.pop();h.DEBUG&&console.log(j.step,"ROUND[]"),C.push(64*j.round(L/64))}function oa(g,j){var C=j.stack,L=C.pop(),U=j.ppem,H=j.deltaBase+16*(g-1),q=j.deltaShift;h.DEBUG&&console.log(j.step,"DELTAC["+g+"]",L,C);for(var J=0;J>4)===U&&(0<=(ae=(15&ae)-8)&&ae++,ae=ae*q,h.DEBUG&&console.log(j.step,"DELTACFIX",le,"by",ae),j.cvt[le]+=ae)}}function $u(g,j){var C,U=j.stack,L=U.pop(),U=U.pop(),H=j.z2[L],q=j.z1[U];h.DEBUG&&console.log(j.step,"SDPVTL["+g+"]",L,U),L=g?(C=H.y-q.y,q.x-H.x):(C=q.x-H.x,q.y-H.y),j.dpv=No(C,L)}function yn(g,j){var C=j.stack,L=j.prog,U=j.ip;h.DEBUG&&console.log(j.step,"PUSHB["+g+"]");for(var H=0;H":"_")+(L?"R":"_")+(U===0?"Gr":U===1?"Bl":U===2?"Wh":"")+"]",g?le+"("+H.cvt[le]+","+J+")":"",ae,"(d =",q,"->",Le*Oe,")"),H.rp1=H.rp0,H.rp2=ae,j&&(H.rp0=ae)}Au.prototype.exec=function(g,j){if(typeof j!="number")throw new Error("Point size is not a number!");if(!(2",L),J.interpolate(ke,H,q,le),J.touch(ke)}g.loop=1},Xu.bind(void 0,0),Xu.bind(void 0,1),function(g){for(var j=g.stack,C=g.rp0,L=g.z0[C],U=g.loop,H=g.fv,q=g.pv,J=g.z1;U--;){var le=j.pop(),ae=J[le];h.DEBUG&&console.log(g.step,(1"u"?$h:Kh)(g,function(C,L){if(C)return j(C);var U;try{U=sa(L)}catch(H){return j(H,null)}return j(null,U)})},h.loadSync=function(g){return sa(Cu(t("fs").readFileSync(g)))},Object.defineProperty(h,"__esModule",{value:!0})},i(typeof _=="object"&&w!==void 0?_:m.opentype={})}).call(this,t("buffer").Buffer)},{buffer:4,fs:2}],255:[function(t,w,_){(function(c){function m(b,y){for(var s=0,u=b.length-1;0<=u;u--){var l=b[u];l==="."?b.splice(u,1):l===".."?(b.splice(u,1),s++):s&&(b.splice(u,1),s--)}if(y)for(;s--;)b.unshift("..");return b}function i(b,y){if(b.filter)return b.filter(y);for(var s=[],u=0;u'.concat(a,"").concat(d,""),this.dummyDOM||(this.dummyDOM=document.getElementById(o).parentNode),this.descriptions?this.descriptions.fallbackElements||(this.descriptions.fallbackElements={}):this.descriptions={fallbackElements:{}},this.descriptions.fallbackElements[l]?this.descriptions.fallbackElements[l].innerHTML!==a&&(this.descriptions.fallbackElements[l].innerHTML=a):this._describeElementHTML("fallback",l,a),p===this.LABEL&&(this.descriptions.labelElements||(this.descriptions.labelElements={}),this.descriptions.labelElements[l]?this.descriptions.labelElements[l].innerHTML!==a&&(this.descriptions.labelElements[l].innerHTML=a):this._describeElementHTML("label",l,a)))},c.default.prototype._describeHTML=function(l,d){var p,o=this.canvas.id;l==="fallback"?(this.dummyDOM.querySelector("#".concat(o+m))?this.dummyDOM.querySelector("#"+o+h).insertAdjacentHTML("beforebegin",'

')):(p='

'),this.dummyDOM.querySelector("#".concat(o,"accessibleOutput"))?this.dummyDOM.querySelector("#".concat(o,"accessibleOutput")).insertAdjacentHTML("beforebegin",p):this.dummyDOM.querySelector("#".concat(o)).innerHTML=p),this.descriptions.fallback=this.dummyDOM.querySelector("#".concat(o).concat(i)),this.descriptions.fallback.innerHTML=d):l==="label"&&(this.dummyDOM.querySelector("#".concat(o+b))?this.dummyDOM.querySelector("#".concat(o+s))&&this.dummyDOM.querySelector("#".concat(o+s)).insertAdjacentHTML("beforebegin",'

')):(p='

'),this.dummyDOM.querySelector("#".concat(o,"accessibleOutputLabel"))?this.dummyDOM.querySelector("#".concat(o,"accessibleOutputLabel")).insertAdjacentHTML("beforebegin",p):this.dummyDOM.querySelector("#"+o).insertAdjacentHTML("afterend",p)),this.descriptions.label=this.dummyDOM.querySelector("#"+o+y),this.descriptions.label.innerHTML=d)},c.default.prototype._describeElementHTML=function(l,d,p){var o,a=this.canvas.id;l==="fallback"?(this.dummyDOM.querySelector("#".concat(a+m))?this.dummyDOM.querySelector("#"+a+h)||this.dummyDOM.querySelector("#"+a+i).insertAdjacentHTML("afterend",'
Canvas elements and their descriptions
')):(o='
Canvas elements and their descriptions
'),this.dummyDOM.querySelector("#".concat(a,"accessibleOutput"))?this.dummyDOM.querySelector("#".concat(a,"accessibleOutput")).insertAdjacentHTML("beforebegin",o):this.dummyDOM.querySelector("#"+a).innerHTML=o),(o=document.createElement("tr")).id=a+"_fte_"+d,this.dummyDOM.querySelector("#"+a+h).appendChild(o),this.descriptions.fallbackElements[d]=this.dummyDOM.querySelector("#".concat(a).concat("_fte_").concat(d)),this.descriptions.fallbackElements[d].innerHTML=p):l==="label"&&(this.dummyDOM.querySelector("#".concat(a+b))?this.dummyDOM.querySelector("#".concat(a+s))||this.dummyDOM.querySelector("#"+a+y).insertAdjacentHTML("afterend",'
')):(o='
'),this.dummyDOM.querySelector("#".concat(a,"accessibleOutputLabel"))?this.dummyDOM.querySelector("#".concat(a,"accessibleOutputLabel")).insertAdjacentHTML("beforebegin",o):this.dummyDOM.querySelector("#"+a).insertAdjacentHTML("afterend",o)),(l=document.createElement("tr")).id=a+"_lte_"+d,this.dummyDOM.querySelector("#"+a+s).appendChild(l),this.descriptions.labelElements[d]=this.dummyDOM.querySelector("#".concat(a).concat("_lte_").concat(d)),this.descriptions.labelElements[d].innerHTML=p)},t=c.default,_.default=t},{"../core/main":280,"core-js/modules/es.array.concat":152,"core-js/modules/es.regexp.exec":192,"core-js/modules/es.string.ends-with":195,"core-js/modules/es.string.replace":201}],261:[function(t,w,_){t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.from"),t("core-js/modules/es.array.map"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.from"),t("core-js/modules/es.array.map"),t("core-js/modules/es.string.iterator"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0,t=(t=t("../core/main"))&&t.__esModule?t:{default:t},t.default.prototype._updateGridOutput=function(c){var m,i,h,b;this.dummyDOM.querySelector("#".concat(c,"_summary"))&&(m=this._accessibleOutputs[c],h=function(y,s,u,l){return s="".concat(s," canvas, ").concat(u," by ").concat(l," pixels, contains ").concat(y[0]),s=(y[0]===1?"".concat(s," shape: "):"".concat(s," shapes: ")).concat(y[1]),s}((i=function(y,s){var u,l="",d="",p=0;for(u in s){var o,a=0;for(o in s[u]){var f='
  • ').concat(s[u][o].color," ").concat(u,",");u==="line"?f+=" location = ".concat(s[u][o].pos,", length = ").concat(s[u][o].length," pixels"):(f+=" location = ".concat(s[u][o].pos),u!=="point"&&(f+=", area = ".concat(s[u][o].area," %")),f+="
  • "),l+=f,a++,p++}d=1').concat(s[u][a].color," ").concat(u,"
    "):'').concat(s[u][a].color," ").concat(u," midpoint"),o[s[u][a].loc.locY][s[u][a].loc.locX]?o[s[u][a].loc.locY][s[u][a].loc.locX]=o[s[u][a].loc.locY][s[u][a].loc.locX]+" "+f:o[s[u][a].loc.locY][s[u][a].loc.locX]=f,d++}for(l in o){var v,S="";for(v in o[l])S+="",o[l][v]!==void 0&&(S+=o[l][v]),S+="";p=p+S+""}return p}(c,this.ingredients.shapes),h!==m.summary.innerHTML&&(m.summary.innerHTML=h),b!==m.map.innerHTML&&(m.map.innerHTML=b),i.details!==m.shapeDetails.innerHTML&&(m.shapeDetails.innerHTML=i.details),this._accessibleOutputs[c]=m)},t=t.default,_.default=t},{"../core/main":280,"core-js/modules/es.array.concat":152,"core-js/modules/es.array.from":161,"core-js/modules/es.array.map":167,"core-js/modules/es.string.iterator":197}],262:[function(t,w,_){t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.fill"),t("core-js/modules/es.array.from"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.map"),t("core-js/modules/es.number.to-fixed"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.string.iterator"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.fill"),t("core-js/modules/es.array.map"),t("core-js/modules/es.number.to-fixed"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var c=(t=t("../core/main"))&&t.__esModule?t:{default:t};function m(h){return function(b){if(Array.isArray(b)){for(var y=0,s=new Array(b.length);y')):this.dummyDOM.querySelector("#".concat(l)).innerHTML='
    '))):b==="Label"&&(y=l+h+(d=b),this.dummyDOM.querySelector("#".concat(s=l+"accessibleOutput"+b))||(this.dummyDOM.querySelector("#".concat(l,"_Label"))?this.dummyDOM.querySelector("#".concat(l,"_Label")):this.dummyDOM.querySelector("#".concat(l))).insertAdjacentHTML("afterend",'
    '))),this._accessibleOutputs[y]={},h==="textOutput"?(d="#".concat(l,"gridOutput").concat(d),u='
    Text Output

      '),this.dummyDOM.querySelector(d)?this.dummyDOM.querySelector(d).insertAdjacentHTML("beforebegin",u):this.dummyDOM.querySelector("#".concat(s)).innerHTML=u,this._accessibleOutputs[y].list=this.dummyDOM.querySelector("#".concat(y,"_list"))):h==="gridOutput"&&(d="#".concat(l,"textOutput").concat(d),u='
      Grid Output

        '),this.dummyDOM.querySelector(d)?this.dummyDOM.querySelector(d).insertAdjacentHTML("afterend",u):this.dummyDOM.querySelector("#".concat(s)).innerHTML=u,this._accessibleOutputs[y].map=this.dummyDOM.querySelector("#".concat(y,"_map"))),this._accessibleOutputs[y].shapeDetails=this.dummyDOM.querySelector("#".concat(y,"_shapeDetails")),this._accessibleOutputs[y].summary=this.dummyDOM.querySelector("#".concat(y,"_summary"))},c.default.prototype._updateAccsOutput=function(){var h=this.canvas.id;JSON.stringify(this.ingredients.shapes)===this.ingredients.pShapes&&this.ingredients.colors.background===this.ingredients.pBackground||(this.ingredients.pShapes=JSON.stringify(this.ingredients.shapes),this._accessibleOutputs.text&&this._updateTextOutput(h+"textOutput"),this._accessibleOutputs.grid&&this._updateGridOutput(h+"gridOutput"),this._accessibleOutputs.textLabel&&this._updateTextOutput(h+"textOutputLabel"),this._accessibleOutputs.gridLabel&&this._updateGridOutput(h+"gridOutputLabel"))},c.default.prototype._accsBackground=function(h){this.ingredients.pShapes=JSON.stringify(this.ingredients.shapes),this.ingredients.pBackground=this.ingredients.colors.background,this.ingredients.shapes={},this.ingredients.colors.backgroundRGBA!==h&&(this.ingredients.colors.backgroundRGBA=h,this.ingredients.colors.background=this._rgbColorName(h))},c.default.prototype._accsCanvasColors=function(h,b){h==="fill"?this.ingredients.colors.fillRGBA!==b&&(this.ingredients.colors.fillRGBA=b,this.ingredients.colors.fill=this._rgbColorName(b)):h==="stroke"&&this.ingredients.colors.strokeRGBA!==b&&(this.ingredients.colors.strokeRGBA=b,this.ingredients.colors.stroke=this._rgbColorName(b))},c.default.prototype._accsOutput=function(h,b){h==="ellipse"&&b[2]===b[3]?h="circle":h==="rectangle"&&b[2]===b[3]&&(h="square");var y,s,u={},l=!0,d=function(o,a){var f;return o=o==="rectangle"||o==="ellipse"||o==="arc"||o==="circle"||o==="square"?(f=Math.round(a[0]+a[2]/2),Math.round(a[1]+a[3]/2)):o==="triangle"?(f=(a[0]+a[2]+a[4])/3,(a[1]+a[3]+a[5])/3):o==="quadrilateral"?(f=(a[0]+a[2]+a[4]+a[6])/4,(a[1]+a[3]+a[5]+a[7])/4):o==="line"?(f=(a[0]+a[2])/2,(a[1]+a[3])/2):(f=a[0],a[1]),[f,o]}(h,b);if(h==="line"?(u.color=this.ingredients.colors.stroke,u.length=Math.round(this.dist(b[0],b[1],b[2],b[3])),y=this._getPos(b[0],[1]),s=this._getPos(b[2],[3]),u.loc=i(d,this.width,this.height),u.pos=y===s?"at ".concat(y):"from ".concat(y," to ").concat(s)):(h==="point"?u.color=this.ingredients.colors.stroke:(u.color=this.ingredients.colors.fill,u.area=this._getArea(h,b)),u.pos=this._getPos.apply(this,m(d)),u.loc=i(d,this.width,this.height)),this.ingredients.shapes[h]){if(this.ingredients.shapes[h]!==[u]){for(var p in this.ingredients.shapes[h])JSON.stringify(this.ingredients.shapes[h][p])===JSON.stringify(u)&&(l=!1);l===!0&&this.ingredients.shapes[h].push(u)}}else this.ingredients.shapes[h]=[u]},c.default.prototype._getPos=function(s,y){var s=new DOMPointReadOnly(s,y),y=this._renderer.isP3D?new DOMMatrix(this._renderer.uMVMatrix.mat4):this.drawingContext.getTransform(),s=s.matrixTransform(y),y=s.x,s=s.y,u=this.width*this._pixelDensity,l=this.height*this._pixelDensity;return y<.4*u?s<.4*l?"top left":.6*lMath.PI?u+=s:u-=s)):h==="ellipse"||h==="circle"?u=3.14*b[2]/2*b[3]/2:h==="line"||h==="point"?u=0:h==="quadrilateral"?u=Math.abs((b[6]+b[0])*(b[7]-b[1])+(b[0]+b[2])*(b[1]-b[3])+(b[2]+b[4])*(b[3]-b[5])+(b[4]+b[6])*(b[5]-b[7]))/2:h==="rectangle"||h==="square"?u=b[2]*b[3]:h==="triangle"&&(u=Math.abs(b[0]*(b[3]-b[5])+b[2]*(b[5]-b[1])+b[4]*(b[1]-b[3]))/2),this.width*this._pixelDensity),d=this.height*this._pixelDensity,p=[new DOMPoint(0,0),new DOMPoint(l,0),new DOMPoint(l,d),new DOMPoint(0,d)],o=(this._renderer.isP3D?new DOMMatrix(this._renderer.uMVMatrix.mat4):this.drawingContext.getTransform()).inverse(),a=p.map(function(v){return v.matrixTransform(o)}),f=Math.abs((a[3].x+a[0].x)*(a[3].y-a[0].y)+(a[0].x+a[1].x)*(a[0].y-a[1].y)+(a[1].x+a[2].x)*(a[1].y-a[2].y)+(a[2].x+a[3].x)*(a[2].y-a[3].y))/2;return Math.round(100*u/f)},t=c.default,_.default=t},{"../core/main":280,"core-js/modules/es.array.concat":152,"core-js/modules/es.array.fill":155,"core-js/modules/es.array.from":161,"core-js/modules/es.array.iterator":164,"core-js/modules/es.array.map":167,"core-js/modules/es.number.to-fixed":180,"core-js/modules/es.object.to-string":187,"core-js/modules/es.regexp.to-string":193,"core-js/modules/es.string.iterator":197,"core-js/modules/es.symbol":209,"core-js/modules/es.symbol.description":207,"core-js/modules/es.symbol.iterator":208,"core-js/modules/web.dom-collections.iterator":243}],263:[function(t,w,_){t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.concat"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0,t=(t=t("../core/main"))&&t.__esModule?t:{default:t},t.default.prototype._updateTextOutput=function(c){var m,i,h,b;this.dummyDOM.querySelector("#".concat(c,"_summary"))&&(m=this._accessibleOutputs[c],h=function(y,s,u,l){return u="Your output is a, ".concat(u," by ").concat(l," pixels, ").concat(s," canvas containing the following"),u=y===1?"".concat(u," shape:"):"".concat(u," ").concat(y," shapes:"),u}((i=function(y,s){var u,l="",d=0;for(u in s)for(var p in s[u]){var o='
      • ').concat(s[u][p].color," ").concat(u,"");u==="line"?o+=", ".concat(s[u][p].pos,", ").concat(s[u][p].length," pixels long.
      • "):(o+=", at ".concat(s[u][p].pos),u!=="point"&&(o+=", covering ".concat(s[u][p].area,"% of the canvas")),o+="."),l+=o,d++}return{numShapes:d,listShapes:l}}(c,this.ingredients.shapes)).numShapes,this.ingredients.colors.background,this.width,this.height),b=function(y,s){var u,l="",d=0;for(u in s)for(var p in s[u]){var o='').concat(s[u][p].color," ").concat(u,"");u==="line"?o+="location = ".concat(s[u][p].pos,"length = ").concat(s[u][p].length," pixels"):(o+="location = ".concat(s[u][p].pos,""),u!=="point"&&(o+=" area = ".concat(s[u][p].area,"%")),o+=""),l+=o,d++}return l}(c,this.ingredients.shapes),h!==m.summary.innerHTML&&(m.summary.innerHTML=h),i.listShapes!==m.list.innerHTML&&(m.list.innerHTML=i.listShapes),b!==m.shapeDetails.innerHTML&&(m.shapeDetails.innerHTML=b),this._accessibleOutputs[c]=m)},t=t.default,_.default=t},{"../core/main":280,"core-js/modules/es.array.concat":152}],264:[function(t,w,_){var c=(c=t("./core/main"))&&c.__esModule?c:{default:c};t("./core/constants"),t("./core/environment"),t("./core/friendly_errors/stacktrace"),t("./core/friendly_errors/validate_params"),t("./core/friendly_errors/file_errors"),t("./core/friendly_errors/fes_core"),t("./core/friendly_errors/sketch_reader"),t("./core/helpers"),t("./core/legacy"),t("./core/preload"),t("./core/p5.Element"),t("./core/p5.Graphics"),t("./core/p5.Renderer"),t("./core/p5.Renderer2D"),t("./core/rendering"),t("./core/shim"),t("./core/structure"),t("./core/transform"),t("./core/shape/2d_primitives"),t("./core/shape/attributes"),t("./core/shape/curves"),t("./core/shape/vertex"),t("./accessibility/outputs"),t("./accessibility/textOutput"),t("./accessibility/gridOutput"),t("./accessibility/color_namer"),t("./color/color_conversion"),t("./color/creating_reading"),t("./color/p5.Color"),t("./color/setting"),t("./data/p5.TypedDict"),t("./data/local_storage.js"),t("./dom/dom"),t("./accessibility/describe"),t("./events/acceleration"),t("./events/keyboard"),t("./events/mouse"),t("./events/touch"),t("./image/filters"),t("./image/image"),t("./image/loading_displaying"),t("./image/p5.Image"),t("./image/pixels"),t("./io/files"),t("./io/p5.Table"),t("./io/p5.TableRow"),t("./io/p5.XML"),t("./math/calculation"),t("./math/math"),t("./math/noise"),t("./math/p5.Vector"),t("./math/random"),t("./math/trigonometry"),t("./typography/attributes"),t("./typography/loading_displaying"),t("./typography/p5.Font"),t("./utilities/array_functions"),t("./utilities/conversion"),t("./utilities/string_functions"),t("./utilities/time_date"),t("./webgl/3d_primitives"),t("./webgl/interaction"),t("./webgl/light"),t("./webgl/loading"),t("./webgl/material"),t("./webgl/p5.Camera"),t("./webgl/p5.DataArray"),t("./webgl/p5.Geometry"),t("./webgl/p5.Matrix"),t("./webgl/p5.RendererGL.Immediate"),t("./webgl/p5.RendererGL"),t("./webgl/p5.RendererGL.Retained"),t("./webgl/p5.Framebuffer"),t("./webgl/p5.Shader"),t("./webgl/p5.RenderBuffer"),t("./webgl/p5.Texture"),t("./webgl/text"),t("./core/init"),w.exports=c.default},{"./accessibility/color_namer":259,"./accessibility/describe":260,"./accessibility/gridOutput":261,"./accessibility/outputs":262,"./accessibility/textOutput":263,"./color/color_conversion":265,"./color/creating_reading":266,"./color/p5.Color":267,"./color/setting":268,"./core/constants":269,"./core/environment":270,"./core/friendly_errors/fes_core":271,"./core/friendly_errors/file_errors":272,"./core/friendly_errors/sketch_reader":273,"./core/friendly_errors/stacktrace":274,"./core/friendly_errors/validate_params":275,"./core/helpers":276,"./core/init":277,"./core/legacy":279,"./core/main":280,"./core/p5.Element":281,"./core/p5.Graphics":282,"./core/p5.Renderer":283,"./core/p5.Renderer2D":284,"./core/preload":285,"./core/rendering":286,"./core/shape/2d_primitives":287,"./core/shape/attributes":288,"./core/shape/curves":289,"./core/shape/vertex":290,"./core/shim":291,"./core/structure":292,"./core/transform":293,"./data/local_storage.js":294,"./data/p5.TypedDict":295,"./dom/dom":296,"./events/acceleration":297,"./events/keyboard":298,"./events/mouse":299,"./events/touch":300,"./image/filters":301,"./image/image":302,"./image/loading_displaying":303,"./image/p5.Image":304,"./image/pixels":305,"./io/files":306,"./io/p5.Table":307,"./io/p5.TableRow":308,"./io/p5.XML":309,"./math/calculation":310,"./math/math":311,"./math/noise":312,"./math/p5.Vector":313,"./math/random":314,"./math/trigonometry":315,"./typography/attributes":316,"./typography/loading_displaying":317,"./typography/p5.Font":318,"./utilities/array_functions":319,"./utilities/conversion":320,"./utilities/string_functions":321,"./utilities/time_date":322,"./webgl/3d_primitives":323,"./webgl/interaction":325,"./webgl/light":326,"./webgl/loading":327,"./webgl/material":328,"./webgl/p5.Camera":329,"./webgl/p5.DataArray":330,"./webgl/p5.Framebuffer":331,"./webgl/p5.Geometry":332,"./webgl/p5.Matrix":333,"./webgl/p5.RenderBuffer":334,"./webgl/p5.RendererGL":337,"./webgl/p5.RendererGL.Immediate":335,"./webgl/p5.RendererGL.Retained":336,"./webgl/p5.Shader":338,"./webgl/p5.Texture":339,"./webgl/text":340}],265:[function(t,w,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0,t=(t=t("../core/main"))&&t.__esModule?t:{default:t},t.default.ColorConversion={_hsbaToHSLA:function(c){var m=c[0],i=c[1],h=c[2],b=(2-i)*h/2;return b!=0&&(b==1?i=0:b<.5?i/=2-i:i=i*h/(2-2*b)),[m,i,b,c[3]]},_hsbaToRGBA:function(c){var m,i,h,b,y,s=6*c[0],u=c[1],l=c[2];return u===0?[l,l,l,c[3]]:(i=l*(1-u),h=l*(1-u*(s-(m=Math.floor(s)))),u=l*(1-u*(1+m-s)),s=m===1?(b=h,y=l,i):m===2?(b=i,y=l,u):m===3?(b=i,y=h,l):m===4?(b=u,y=i,l):m===5?(b=l,y=i,h):(b=l,y=u,i),[b,y,s,c[3]])},_hslaToHSBA:function(c){var m=c[0],i=c[1],h=c[2],b=h<.5?(1+i)*h:h+i-h*i;return[m,i=2*(b-h)/b,b,c[3]]},_hslaToRGBA:function(c){var m,i=6*c[0],h=c[1],b=c[2];return h===0?[b,b,b,c[3]]:[(m=function(y,s,u){return y<0?y+=6:6<=y&&(y-=6),y<1?s+(u-s)*y:y<3?u:y<4?s+(u-s)*(4-y):s})(2+i,h=2*b-(b=b<.5?(1+h)*b:b+h-b*h),b),m(i,h,b),m(i-2,h,b),c[3]]},_rgbaToHSBA:function(c){var m,i,h=c[0],b=c[1],y=c[2],s=Math.max(h,b,y),u=s-Math.min(h,b,y);return u==0?i=m=0:(i=u/s,h===s?m=(b-y)/u:b===s?m=2+(y-h)/u:y===s&&(m=4+(h-b)/u),m<0?m+=6:6<=m&&(m-=6)),[m/6,i,s,c[3]]},_rgbaToHSLA:function(c){var m,i,h=c[0],b=c[1],y=c[2],s=Math.max(h,b,y),l=Math.min(h,b,y),u=s+l,l=s-l;return l==0?i=m=0:(i=u<1?l/u:l/(2-u),h===s?m=(b-y)/l:b===s?m=2+(y-h)/l:y===s&&(m=4+(h-b)/l),m<0?m+=6:6<=m&&(m-=6)),[m/6,i,u/2,c[3]]}},t=t.default.ColorConversion,_.default=t},{"../core/main":280}],266:[function(t,w,_){function c(s){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u})(s)}function m(s){return(m=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(u){return c(u)}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":c(u)})(s)}t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.map"),t("core-js/modules/es.object.get-own-property-descriptor"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.weak-map"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.array.map"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var i=(y=t("../core/main"))&&y.__esModule?y:{default:y},h=function(s){if(s&&s.__esModule)return s;if(s===null||m(s)!=="object"&&typeof s!="function")return{default:s};var u=b();if(u&&u.has(s))return u.get(s);var l,d={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(l in s){var o;Object.prototype.hasOwnProperty.call(s,l)&&((o=p?Object.getOwnPropertyDescriptor(s,l):null)&&(o.get||o.set)?Object.defineProperty(d,l,o):d[l]=s[l])}return d.default=s,u&&u.set(s,d),d}(t("../core/constants"));function b(){var s;return typeof WeakMap!="function"?null:(s=new WeakMap,b=function(){return s},s)}t("./p5.Color"),t("../core/friendly_errors/validate_params"),t("../core/friendly_errors/file_errors"),t("../core/friendly_errors/fes_core"),i.default.prototype.alpha=function(s){return i.default._validateParameters("alpha",arguments),this.color(s)._getAlpha()},i.default.prototype.blue=function(s){return i.default._validateParameters("blue",arguments),this.color(s)._getBlue()},i.default.prototype.brightness=function(s){return i.default._validateParameters("brightness",arguments),this.color(s)._getBrightness()},i.default.prototype.color=function(){for(var s,u=arguments.length,l=new Array(u),d=0;do[0]?o[0]+=1:p[0]+=1),1<=(d=this.lerp(p[0],o[0],l))&&--d),s=this.lerp(p[1],o[1],l),u=this.lerp(p[2],o[2],l),p=this.lerp(p[3],o[3],l),d*=f[a][0],s*=f[a][1],u*=f[a][2],p*=f[a][3],this.color(d,s,u,p)},i.default.prototype.lightness=function(s){return i.default._validateParameters("lightness",arguments),this.color(s)._getLightness()},i.default.prototype.red=function(s){return i.default._validateParameters("red",arguments),this.color(s)._getRed()},i.default.prototype.saturation=function(s){return i.default._validateParameters("saturation",arguments),this.color(s)._getSaturation()};var y=i.default;_.default=y},{"../core/constants":269,"../core/friendly_errors/fes_core":271,"../core/friendly_errors/file_errors":272,"../core/friendly_errors/validate_params":275,"../core/main":280,"./p5.Color":267,"core-js/modules/es.array.iterator":164,"core-js/modules/es.array.map":167,"core-js/modules/es.object.get-own-property-descriptor":183,"core-js/modules/es.object.to-string":187,"core-js/modules/es.string.iterator":197,"core-js/modules/es.symbol":209,"core-js/modules/es.symbol.description":207,"core-js/modules/es.symbol.iterator":208,"core-js/modules/es.weak-map":241,"core-js/modules/web.dom-collections.iterator":243}],267:[function(d,w,_){function c(v){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S})(v)}function m(v){return(m=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(S){return c(S)}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":c(S)})(v)}d("core-js/modules/es.symbol"),d("core-js/modules/es.symbol.description"),d("core-js/modules/es.symbol.iterator"),d("core-js/modules/es.array.includes"),d("core-js/modules/es.array.iterator"),d("core-js/modules/es.array.join"),d("core-js/modules/es.array.map"),d("core-js/modules/es.array.slice"),d("core-js/modules/es.object.get-own-property-descriptor"),d("core-js/modules/es.object.to-string"),d("core-js/modules/es.regexp.constructor"),d("core-js/modules/es.regexp.exec"),d("core-js/modules/es.regexp.to-string"),d("core-js/modules/es.string.includes"),d("core-js/modules/es.string.iterator"),d("core-js/modules/es.string.trim"),d("core-js/modules/es.weak-map"),d("core-js/modules/web.dom-collections.iterator"),d("core-js/modules/es.array.includes"),d("core-js/modules/es.array.join"),d("core-js/modules/es.array.map"),d("core-js/modules/es.array.slice"),d("core-js/modules/es.object.to-string"),d("core-js/modules/es.regexp.constructor"),d("core-js/modules/es.regexp.exec"),d("core-js/modules/es.regexp.to-string"),d("core-js/modules/es.string.includes"),d("core-js/modules/es.string.trim"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var i=s(d("../core/main")),h=function(v){if(v&&v.__esModule)return v;if(v===null||m(v)!=="object"&&typeof v!="function")return{default:v};var S=y();if(S&&S.has(v))return S.get(v);var O,k={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(O in v){var P;Object.prototype.hasOwnProperty.call(v,O)&&((P=T?Object.getOwnPropertyDescriptor(v,O):null)&&(P.get||P.set)?Object.defineProperty(k,O,P):k[O]=v[O])}return k.default=v,S&&S.set(v,k),k}(d("../core/constants")),b=s(d("./color_conversion"));function y(){var v;return typeof WeakMap!="function"?null:(v=new WeakMap,y=function(){return v},v)}function s(v){return v&&v.__esModule?v:{default:v}}function u(v,S){for(var O=0;O<\/script>",r=r.removeChild(r.firstChild)):typeof t.is=="string"?r=d.createElement(x,{is:t.is}):(r=d.createElement(x),x==="select"&&(d=r,t.multiple?d.multiple=!0:t.size&&(d.size=t.size))):r=d.createElementNS(r,x),r[Jr]=n,r[vs]=t,uh(r,n,!1,!1),n.stateNode=r;e:{switch(d=Va(x,t),x){case"dialog":Mt("cancel",r),Mt("close",r),w=t;break;case"iframe":case"object":case"embed":Mt("load",r),w=t;break;case"video":case"audio":for(w=0;wMo&&(n.flags|=128,t=!0,Xo(_,!1),n.lanes=4194304)}else{if(!t)if(r=Ci(d),r!==null){if(n.flags|=128,t=!0,x=r.updateQueue,x!==null&&(n.updateQueue=x,n.flags|=4),Xo(_,!0),_.tail===null&&_.tailMode==="hidden"&&!d.alternate&&!Ot)return cr(n),null}else 2*Ut()-_.renderingStartTime>Mo&&x!==1073741824&&(n.flags|=128,t=!0,Xo(_,!1),n.lanes=4194304);_.isBackwards?(d.sibling=n.child,n.child=d):(x=_.last,x!==null?x.sibling=d:n.child=d,_.last=d)}return _.tail!==null?(n=_.tail,_.rendering=n,_.tail=n.sibling,_.renderingStartTime=Ut(),n.sibling=null,x=Lt.current,St(Lt,t?x&1|2:x&1),n):(cr(n),null);case 22:case 23:return fu(),t=n.memoizedState!==null,r!==null&&r.memoizedState!==null!==t&&(n.flags|=8192),t&&n.mode&1?Er&1073741824&&(cr(n),n.subtreeFlags&6&&(n.flags|=8192)):cr(n),null;case 24:return null;case 25:return null}throw Error(Be(156,n.tag))}function oy(r,n){switch(ql(n),n.tag){case 1:return xr(n.type)&&wi(),r=n.flags,r&65536?(n.flags=r&-65537|128,n):null;case 3:return ko(),Ct(_r),Ct(fr),tu(),r=n.flags,r&65536&&!(r&128)?(n.flags=r&-65537|128,n):null;case 5:return eu(n),null;case 13:if(Ct(Lt),r=n.memoizedState,r!==null&&r.dehydrated!==null){if(n.alternate===null)throw Error(Be(340));So()}return r=n.flags,r&65536?(n.flags=r&-65537|128,n):null;case 19:return Ct(Lt),null;case 4:return ko(),null;case 10:return Ql(n.type._context),null;case 22:case 23:return fu(),null;case 24:return null;default:return null}}var $s=!1,dr=!1,sy=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function po(r,n){var x=r.ref;if(x!==null)if(typeof x=="function")try{x(null)}catch(t){Ft(r,n,t)}else x.current=null}function yl(r,n,x){try{x()}catch(t){Ft(r,n,t)}}var ed=!1;function iy(r,n){if(Ja=vi,r=mf(),Hl(r)){if("selectionStart"in r)var x={start:r.selectionStart,end:r.selectionEnd};else e:{x=(x=r.ownerDocument)&&x.defaultView||window;var t=x.getSelection&&x.getSelection();if(t&&t.rangeCount!==0){x=t.anchorNode;var w=t.anchorOffset,_=t.focusNode;t=t.focusOffset;try{x.nodeType,_.nodeType}catch{x=null;break e}var d=0,m=-1,i=-1,h=0,b=0,y=r,s=null;t:for(;;){for(var u;y!==x||w!==0&&y.nodeType!==3||(m=d+w),y!==_||t!==0&&y.nodeType!==3||(i=d+t),y.nodeType===3&&(d+=y.nodeValue.length),(u=y.firstChild)!==null;)s=y,y=u;for(;;){if(y===r)break t;if(s===x&&++h===w&&(m=d),s===_&&++b===t&&(i=d),(u=y.nextSibling)!==null)break;y=s,s=y.parentNode}y=u}x=m===-1||i===-1?null:{start:m,end:i}}else x=null}x=x||{start:0,end:0}}else x=null;for(el={focusedElem:r,selectionRange:x},vi=!1,Ke=n;Ke!==null;)if(n=Ke,r=n.child,(n.subtreeFlags&1028)!==0&&r!==null)r.return=n,Ke=r;else for(;Ke!==null;){n=Ke;try{var a=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(a!==null){var c=a.memoizedProps,p=a.memoizedState,o=n.stateNode,l=o.getSnapshotBeforeUpdate(n.elementType===n.type?c:Gr(n.type,c),p);o.__reactInternalSnapshotBeforeUpdate=l}break;case 3:var f=n.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Be(163))}}catch(v){Ft(n,n.return,v)}if(r=n.sibling,r!==null){r.return=n.return,Ke=r;break}Ke=n.return}return a=ed,ed=!1,a}function ss(r,n,x){var t=n.updateQueue;if(t=t!==null?t.lastEffect:null,t!==null){var w=t=t.next;do{if((w.tag&r)===r){var _=w.destroy;w.destroy=void 0,_!==void 0&&yl(n,x,_)}w=w.next}while(w!==t)}}function qi(r,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var x=n=n.next;do{if((x.tag&r)===r){var t=x.create;x.destroy=t()}x=x.next}while(x!==n)}}function gl(r){var n=r.ref;if(n!==null){var x=r.stateNode;switch(r.tag){case 5:r=x;break;default:r=x}typeof n=="function"?n(r):n.current=r}}function fh(r){var n=r.alternate;n!==null&&(r.alternate=null,fh(n)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(n=r.stateNode,n!==null&&(delete n[Jr],delete n[vs],delete n[nl],delete n[zm],delete n[Vm])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function hh(r){return r.tag===5||r.tag===3||r.tag===4}function td(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||hh(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function vl(r,n,x){var t=r.tag;if(t===5||t===6)r=r.stateNode,n?x.nodeType===8?x.parentNode.insertBefore(r,n):x.insertBefore(r,n):(x.nodeType===8?(n=x.parentNode,n.insertBefore(r,x)):(n=x,n.appendChild(r)),x=x._reactRootContainer,x!=null||n.onclick!==null||(n.onclick=xi));else if(t!==4&&(r=r.child,r!==null))for(vl(r,n,x),r=r.sibling;r!==null;)vl(r,n,x),r=r.sibling}function bl(r,n,x){var t=r.tag;if(t===5||t===6)r=r.stateNode,n?x.insertBefore(r,n):x.appendChild(r);else if(t!==4&&(r=r.child,r!==null))for(bl(r,n,x),r=r.sibling;r!==null;)bl(r,n,x),r=r.sibling}var rr=null,zr=!1;function vn(r,n,x){for(x=x.child;x!==null;)ph(r,n,x),x=x.sibling}function ph(r,n,x){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(Ni,x)}catch{}switch(x.tag){case 5:dr||po(x,n);case 6:var t=rr,w=zr;rr=null,vn(r,n,x),rr=t,zr=w,rr!==null&&(zr?(r=rr,x=x.stateNode,r.nodeType===8?r.parentNode.removeChild(x):r.removeChild(x)):rr.removeChild(x.stateNode));break;case 18:rr!==null&&(zr?(r=rr,x=x.stateNode,r.nodeType===8?wa(r.parentNode,x):r.nodeType===1&&wa(r,x),hs(r)):wa(rr,x.stateNode));break;case 4:t=rr,w=zr,rr=x.stateNode.containerInfo,zr=!0,vn(r,n,x),rr=t,zr=w;break;case 0:case 11:case 14:case 15:if(!dr&&(t=x.updateQueue,t!==null&&(t=t.lastEffect,t!==null))){w=t=t.next;do{var _=w,d=_.destroy;_=_.tag,d!==void 0&&(_&2||_&4)&&yl(x,n,d),w=w.next}while(w!==t)}vn(r,n,x);break;case 1:if(!dr&&(po(x,n),t=x.stateNode,typeof t.componentWillUnmount=="function"))try{t.props=x.memoizedProps,t.state=x.memoizedState,t.componentWillUnmount()}catch(m){Ft(x,n,m)}vn(r,n,x);break;case 21:vn(r,n,x);break;case 22:x.mode&1?(dr=(t=dr)||x.memoizedState!==null,vn(r,n,x),dr=t):vn(r,n,x);break;default:vn(r,n,x)}}function rd(r){var n=r.updateQueue;if(n!==null){r.updateQueue=null;var x=r.stateNode;x===null&&(x=r.stateNode=new sy),n.forEach(function(t){var w=my.bind(null,r,t);x.has(t)||(x.add(t),t.then(w,w))})}}function Br(r,n){var x=n.deletions;if(x!==null)for(var t=0;tw&&(w=d),t&=~_}if(t=w,t=Ut()-t,t=(120>t?120:480>t?480:1080>t?1080:1920>t?1920:3e3>t?3e3:4320>t?4320:1960*ly(t/1960))-t,10r?16:r,Sn===null)var t=!1;else{if(r=Sn,Sn=null,Ri=0,mt&6)throw Error(Be(331));var w=mt;for(mt|=4,Ke=r.current;Ke!==null;){var _=Ke,d=_.child;if(Ke.flags&16){var m=_.deletions;if(m!==null){for(var i=0;iUt()-cu?Vn(r,0):uu|=x),wr(r,n)}function wh(r,n){n===0&&(r.mode&1?(n=zs,zs<<=1,!(zs&130023424)&&(zs=4194304)):n=1);var x=mr();r=fn(r,n),r!==null&&(ks(r,n,x),wr(r,x))}function py(r){var n=r.memoizedState,x=0;n!==null&&(x=n.retryLane),wh(r,x)}function my(r,n){var x=0;switch(r.tag){case 13:var t=r.stateNode,w=r.memoizedState;w!==null&&(x=w.retryLane);break;case 19:t=r.stateNode;break;default:throw Error(Be(314))}t!==null&&t.delete(n),wh(r,x)}var jh;jh=function(r,n,x){if(r!==null)if(r.memoizedProps!==n.pendingProps||_r.current)br=!0;else{if(!(r.lanes&x)&&!(n.flags&128))return br=!1,ry(r,n,x);br=!!(r.flags&131072)}else br=!1,Ot&&n.flags&1048576&&kf(n,Ei,n.index);switch(n.lanes=0,n.tag){case 2:var t=n.type;ui(r,n),r=n.pendingProps;var w=jo(n,fr.current);_o(n,x),w=nu(null,n,t,r,w,x);var _=ou();return n.flags|=1,typeof w=="object"&&w!==null&&typeof w.render=="function"&&w.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,xr(t)?(_=!0,ji(n)):_=!1,n.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,Kl(n),w.updater=Hi,n.stateNode=w,w._reactInternals=n,ul(n,t,r,x),n=fl(null,n,t,!0,_,x)):(n.tag=0,Ot&&_&&Wl(n),hr(null,n,w,x),n=n.child),n;case 16:t=n.elementType;e:{switch(ui(r,n),r=n.pendingProps,w=t._init,t=w(t._payload),n.type=t,w=n.tag=gy(t),r=Gr(t,r),w){case 0:n=dl(null,n,t,r,x);break e;case 1:n=$c(null,n,t,r,x);break e;case 11:n=Zc(null,n,t,r,x);break e;case 14:n=Qc(null,n,t,Gr(t.type,r),x);break e}throw Error(Be(306,t,""))}return n;case 0:return t=n.type,w=n.pendingProps,w=n.elementType===t?w:Gr(t,w),dl(r,n,t,w,x);case 1:return t=n.type,w=n.pendingProps,w=n.elementType===t?w:Gr(t,w),$c(r,n,t,w,x);case 3:e:{if(ih(n),r===null)throw Error(Be(387));t=n.pendingProps,_=n.memoizedState,w=_.element,Of(r,n),Mi(n,t,null,x);var d=n.memoizedState;if(t=d.element,_.isDehydrated)if(_={element:t,isDehydrated:!1,cache:d.cache,pendingSuspenseBoundaries:d.pendingSuspenseBoundaries,transitions:d.transitions},n.updateQueue.baseState=_,n.memoizedState=_,n.flags&256){w=To(Error(Be(423)),n),n=Kc(r,n,t,x,w);break e}else if(t!==w){w=To(Error(Be(424)),n),n=Kc(r,n,t,x,w);break e}else for(kr=Mn(n.stateNode.containerInfo.firstChild),Tr=n,Ot=!0,Vr=null,x=Rf(n,null,t,x),n.child=x;x;)x.flags=x.flags&-3|4096,x=x.sibling;else{if(So(),t===w){n=hn(r,n,x);break e}hr(r,n,t,x)}n=n.child}return n;case 5:return If(n),r===null&&il(n),t=n.type,w=n.pendingProps,_=r!==null?r.memoizedProps:null,d=w.children,tl(t,w)?d=null:_!==null&&tl(t,_)&&(n.flags|=32),sh(r,n),hr(r,n,d,x),n.child;case 6:return r===null&&il(n),null;case 13:return ah(r,n,x);case 4:return Jl(n,n.stateNode.containerInfo),t=n.pendingProps,r===null?n.child=Eo(n,null,t,x):hr(r,n,t,x),n.child;case 11:return t=n.type,w=n.pendingProps,w=n.elementType===t?w:Gr(t,w),Zc(r,n,t,w,x);case 7:return hr(r,n,n.pendingProps,x),n.child;case 8:return hr(r,n,n.pendingProps.children,x),n.child;case 12:return hr(r,n,n.pendingProps.children,x),n.child;case 10:e:{if(t=n.type._context,w=n.pendingProps,_=n.memoizedProps,d=w.value,St(ki,t._currentValue),t._currentValue=d,_!==null)if(qr(_.value,d)){if(_.children===w.children&&!_r.current){n=hn(r,n,x);break e}}else for(_=n.child,_!==null&&(_.return=n);_!==null;){var m=_.dependencies;if(m!==null){d=_.child;for(var i=m.firstContext;i!==null;){if(i.context===t){if(_.tag===1){i=un(-1,x&-x),i.tag=2;var h=_.updateQueue;if(h!==null){h=h.shared;var b=h.pending;b===null?i.next=i:(i.next=b.next,b.next=i),h.pending=i}}_.lanes|=x,i=_.alternate,i!==null&&(i.lanes|=x),al(_.return,x,n),m.lanes|=x;break}i=i.next}}else if(_.tag===10)d=_.type===n.type?null:_.child;else if(_.tag===18){if(d=_.return,d===null)throw Error(Be(341));d.lanes|=x,m=d.alternate,m!==null&&(m.lanes|=x),al(d,x,n),d=_.sibling}else d=_.child;if(d!==null)d.return=_;else for(d=_;d!==null;){if(d===n){d=null;break}if(_=d.sibling,_!==null){_.return=d.return,d=_;break}d=d.return}_=d}hr(r,n,w.children,x),n=n.child}return n;case 9:return w=n.type,t=n.pendingProps.children,_o(n,x),w=Ir(w),t=t(w),n.flags|=1,hr(r,n,t,x),n.child;case 14:return t=n.type,w=Gr(t,n.pendingProps),w=Gr(t.type,w),Qc(r,n,t,w,x);case 15:return nh(r,n,n.type,n.pendingProps,x);case 17:return t=n.type,w=n.pendingProps,w=n.elementType===t?w:Gr(t,w),ui(r,n),n.tag=1,xr(t)?(r=!0,ji(n)):r=!1,_o(n,x),Lf(n,t,w),ul(n,t,w,x),fl(null,n,t,!0,r,x);case 19:return lh(r,n,x);case 22:return oh(r,n,x)}throw Error(Be(156,n.tag))};function Sh(r,n){return Zd(r,n)}function yy(r,n,x,t){this.tag=r,this.key=x,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=t,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ar(r,n,x,t){return new yy(r,n,x,t)}function pu(r){return r=r.prototype,!(!r||!r.isReactComponent)}function gy(r){if(typeof r=="function")return pu(r)?1:0;if(r!=null){if(r=r.$$typeof,r===Al)return 11;if(r===Rl)return 14}return 2}function Ln(r,n){var x=r.alternate;return x===null?(x=Ar(r.tag,n,r.key,r.mode),x.elementType=r.elementType,x.type=r.type,x.stateNode=r.stateNode,x.alternate=r,r.alternate=x):(x.pendingProps=n,x.type=r.type,x.flags=0,x.subtreeFlags=0,x.deletions=null),x.flags=r.flags&14680064,x.childLanes=r.childLanes,x.lanes=r.lanes,x.child=r.child,x.memoizedProps=r.memoizedProps,x.memoizedState=r.memoizedState,x.updateQueue=r.updateQueue,n=r.dependencies,x.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},x.sibling=r.sibling,x.index=r.index,x.ref=r.ref,x}function fi(r,n,x,t,w,_){var d=2;if(t=r,typeof r=="function")pu(r)&&(d=1);else if(typeof r=="string")d=5;else e:switch(r){case oo:return Hn(x.children,w,_,n);case Ll:d=8,w|=8;break;case Aa:return r=Ar(12,x,n,w|2),r.elementType=Aa,r.lanes=_,r;case Ra:return r=Ar(13,x,n,w),r.elementType=Ra,r.lanes=_,r;case Ia:return r=Ar(19,x,n,w),r.elementType=Ia,r.lanes=_,r;case Ld:return Yi(x,w,_,n);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Od:d=10;break e;case Pd:d=9;break e;case Al:d=11;break e;case Rl:d=14;break e;case bn:d=16,t=null;break e}throw Error(Be(130,r==null?r:typeof r,""))}return n=Ar(d,x,n,w),n.elementType=r,n.type=t,n.lanes=_,n}function Hn(r,n,x,t){return r=Ar(7,r,t,n),r.lanes=x,r}function Yi(r,n,x,t){return r=Ar(22,r,t,n),r.elementType=Ld,r.lanes=x,r.stateNode={isHidden:!1},r}function Oa(r,n,x){return r=Ar(6,r,null,n),r.lanes=x,r}function Pa(r,n,x){return n=Ar(4,r.children!==null?r.children:[],r.key,n),n.lanes=x,n.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},n}function vy(r,n,x,t,w){this.tag=n,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=da(0),this.expirationTimes=da(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=da(0),this.identifierPrefix=t,this.onRecoverableError=w,this.mutableSourceEagerHydrationData=null}function mu(r,n,x,t,w,_,d,m,i){return r=new vy(r,n,x,m,i),n===1?(n=1,_===!0&&(n|=8)):n=0,_=Ar(3,null,null,n),r.current=_,_.stateNode=r,_.memoizedState={element:t,isDehydrated:x,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kl(_),r}function by(r,n,x){var t=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Mh)}catch(r){console.error(r)}}Mh(),Ed.exports=Cr;var Sy=Ed.exports,Ch,cd=Sy;Ch=cd.createRoot,cd.hydrateRoot;function Sl(r){let n=0;r.setup=()=>r.createCanvas(300,300,r.WEBGL),r.updateWithProps=x=>{x.rotation&&(n=x.rotation*Math.PI/180)},r.draw=()=>{r.background(100),r.normalMaterial(),r.noStroke(),r.push(),r.translate(-35,0),r.rotateY(n),r.rotateX(-.9),r.box(100),r.pop(),r.noFill(),r.stroke(255),r.push(),r.translate(400,r.height*.35,-200),r.sphere(300),r.pop()}}const dd=Object.freeze(Object.defineProperty({__proto__:null,sketch:Sl},Symbol.toStringTag,{value:"Module"}));function Oh(r){let n=0;r.setup=()=>r.createCanvas(300,300,r.WEBGL),r.updateWithProps=x=>{x.rotation&&(n=x.rotation*Math.PI/180)},r.draw=()=>{r.background(100),r.normalMaterial(),r.push(),r.rotateZ(n),r.rotateX(n),r.rotateY(n),r.plane(100),r.pop()}}const fd=Object.freeze(Object.defineProperty({__proto__:null,sketch:Oh},Symbol.toStringTag,{value:"Module"}));function Ph(r){let n=0;r.setup=()=>r.createCanvas(300,300,r.WEBGL),r.updateWithProps=x=>{x.rotation&&(n=(x.rotation/4+10)*Math.PI/180)},r.draw=()=>{r.background(100),r.normalMaterial(),r.noStroke(),r.push(),r.translate(-30,0),r.rotateY(n),r.rotateX(-.9),r.torus(70,20),r.pop(),r.noFill(),r.stroke(255),r.push(),r.translate(300,r.height*.5,-500),r.cone(100,100),r.pop()}}const hd=Object.freeze(Object.defineProperty({__proto__:null,sketch:Ph},Symbol.toStringTag,{value:"Module"})),Ey={Date:!0,RegExp:!0,String:!0,Number:!0};function Lh(r,n,x={cyclesFix:!0},t=[]){var m,i;let w=[];const _=Array.isArray(r);for(const h in r){const b=r[h],y=_?+h:h;if(!(h in n)){w.push({type:"REMOVE",path:[y],oldValue:r[h]});continue}const s=n[h],u=typeof b=="object"&&typeof s=="object";if(b&&s&&u&&!Ey[(i=(m=Object.getPrototypeOf(b))==null?void 0:m.constructor)==null?void 0:i.name]&&(!x.cyclesFix||!t.includes(b))){const a=Lh(b,s,x,x.cyclesFix?t.concat([b]):[]);w.push.apply(w,a.map(c=>(c.path.unshift(y),c)))}else b!==s&&!(u&&(isNaN(b)?b+""==s+"":+b==+s))&&w.push({path:[y],type:"CHANGE",value:s,oldValue:b})}const d=Array.isArray(n);for(const h in n)h in r||w.push({type:"CREATE",path:[d?+h:h],value:n[h]});return w}function ky(r,n){return Lh(r,n).length===0}const Ty="react-p5-wrapper";function ei(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ah={exports:{}};/*! p5.js v1.9.2 March 19, 2024 */(function(r,n){(function(x){r.exports=x()})(function(){var x;return function t(w,_,d){function m(b,y){if(!_[b]){if(!w[b]){var s=typeof ei=="function"&&ei;if(!y&&s)return s(b,!0);if(i)return i(b,!0);throw(y=new Error("Cannot find module '"+b+"'")).code="MODULE_NOT_FOUND",y}s=_[b]={exports:{}},w[b][0].call(s.exports,function(u){return m(w[b][1][u]||u)},s,s.exports,t,w,_,d)}return _[b].exports}for(var i=typeof ei=="function"&&ei,h=0;h>16&255,l[f++]=a>>8&255,l[f++]=255&a;return o===2&&(a=m[u.charCodeAt(c)]<<2|m[u.charCodeAt(c+1)]>>4,l[f++]=255&a),o===1&&(a=m[u.charCodeAt(c)]<<10|m[u.charCodeAt(c+1)]<<4|m[u.charCodeAt(c+2)]>>2,l[f++]=a>>8&255,l[f++]=255&a),l},_.fromByteArray=function(u){for(var a,c=u.length,p=c%3,o=[],l=0,f=c-p;l>18&63]+d[R>>12&63]+d[R>>6&63]+d[63&R]}(k));return T.join("")}(u,l,f>2]+d[a<<4&63]+"==")):p==2&&(a=(u[c-2]<<8)+u[c-1],o.push(d[a>>10]+d[a>>4&63]+d[a<<2&63]+"=")),o.join("")};for(var d=[],m=[],i=typeof Uint8Array<"u"?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,y=h.length;b>>1;case"base64":return V(E).length;default:if($)return W?-1:q(E).length;I=(""+I).toLowerCase(),$=!0}}function f(E,I,B){var W,$=!1;if((I=I===void 0||I<0?0:I)>this.length||(B=B===void 0||B>this.length?this.length:B)<=0||(B>>>=0)<=(I>>>=0))return"";for(E=E||"utf8";;)switch(E){case"hex":var te=this,ye=I,se=B,ce=te.length;(!se||se<0||ce=E.length){if($)return-1;B=E.length-1}else if(B<0){if(!$)return-1;B=0}if(typeof I=="string"&&(I=s.from(I,W)),s.isBuffer(I))return I.length===0?-1:O(E,I,B,W,$);if(typeof I=="number")return I&=255,typeof Uint8Array.prototype.indexOf=="function"?($?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(E,I,B):O(E,[I],B,W,$);throw new TypeError("val must be string, number or Buffer")}function O(E,I,B,W,$){var te=1,se=E.length,fe=I.length;if(W!==void 0&&((W=String(W).toLowerCase())==="ucs2"||W==="ucs-2"||W==="utf16le"||W==="utf-16le")){if(E.length<2||I.length<2)return-1;se/=te=2,fe/=2,B/=2}function ie(me,je){return te===1?me[je]:me.readUInt16BE(je*te)}if($)for(var de=-1,ce=B;ce>8,fe=fe%256,ie.push(fe),ie.push(se);return ie}(I,E.length-B),E,B,W)}function P(E,I,B){B=Math.min(E.length,B);for(var W=[],$=I;$>>10&1023|55296),ce=56320|1023&ce),W.push(ce),$+=ee}var ue=W,me=ue.length;if(me<=R)return String.fromCharCode.apply(String,ue);for(var je="",ye=0;ye"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=u,Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(E,I,B){return I=I,B=B,a(E=E),!(E<=0)&&I!==void 0?typeof B=="string"?y(E).fill(I,B):y(E).fill(I):y(E)},s.allocUnsafe=c,s.allocUnsafeSlow=c,s.isBuffer=function(E){return E!=null&&E._isBuffer===!0&&E!==s.prototype},s.compare=function(E,I){if(X(E,Uint8Array)&&(E=s.from(E,E.offset,E.byteLength)),X(I,Uint8Array)&&(I=s.from(I,I.offset,I.byteLength)),!s.isBuffer(E)||!s.isBuffer(I))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(E===I)return 0;for(var B=E.length,W=I.length,$=0,te=Math.min(B,W);$E&&(I+=" ... "),""},h&&(s.prototype[h]=s.prototype.inspect),s.prototype.compare=function(E,I,B,W,$){if(X(E,Uint8Array)&&(E=s.from(E,E.offset,E.byteLength)),!s.isBuffer(E))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof E);if(B===void 0&&(B=E?E.length:0),W===void 0&&(W=0),$===void 0&&($=this.length),(I=I===void 0?0:I)<0||B>E.length||W<0||$>this.length)throw new RangeError("out of range index");if($<=W&&B<=I)return 0;if($<=W)return-1;if(B<=I)return 1;if(this===E)return 0;for(var te=($>>>=0)-(W>>>=0),se=(B>>>=0)-(I>>>=0),fe=Math.min(te,se),ie=this.slice(W,$),de=E.slice(I,B),ce=0;ce>>=0,isFinite(B)?(B>>>=0,W===void 0&&(W="utf8")):(W=B,B=void 0)}var $=this.length-I;if((B===void 0||$this.length)throw new RangeError("Attempt to write outside buffer bounds");W=W||"utf8";for(var te,se,fe,ie=!1;;)switch(W){case"hex":var de=this,ce=E,ee=I,ue=B,me=(ee=Number(ee)||0,de.length-ee);(!ue||me<(ue=Number(ue)))&&(ue=me),(me=ce.length)/2E.length)throw new RangeError("Index out of range")}function A(E,I,B,W){if(B+W>E.length)throw new RangeError("Index out of range");if(B<0)throw new RangeError("Index out of range")}function N(E,I,B,W,$){return I=+I,B>>>=0,$||A(E,0,B,4),i.write(E,I,B,W,23,4),B+4}function F(E,I,B,W,$){return I=+I,B>>>=0,$||A(E,0,B,8),i.write(E,I,B,W,52,8),B+8}s.prototype.slice=function(E,I){var B=this.length,B=((E=~~E)<0?(E+=B)<0&&(E=0):B>>=0,I>>>=0,B||M(E,I,this.length);for(var W=this[E],$=1,te=0;++te>>=0,I>>>=0,B||M(E,I,this.length);for(var W=this[E+--I],$=1;0>>=0,I||M(E,1,this.length),this[E]},s.prototype.readUInt16LE=function(E,I){return E>>>=0,I||M(E,2,this.length),this[E]|this[E+1]<<8},s.prototype.readUInt16BE=function(E,I){return E>>>=0,I||M(E,2,this.length),this[E]<<8|this[E+1]},s.prototype.readUInt32LE=function(E,I){return E>>>=0,I||M(E,4,this.length),(this[E]|this[E+1]<<8|this[E+2]<<16)+16777216*this[E+3]},s.prototype.readUInt32BE=function(E,I){return E>>>=0,I||M(E,4,this.length),16777216*this[E]+(this[E+1]<<16|this[E+2]<<8|this[E+3])},s.prototype.readIntLE=function(E,I,B){E>>>=0,I>>>=0,B||M(E,I,this.length);for(var W=this[E],$=1,te=0;++te>>=0,I>>>=0,B||M(E,I,this.length);for(var W=I,$=1,te=this[E+--W];0>>=0,I||M(E,1,this.length),128&this[E]?-1*(255-this[E]+1):this[E]},s.prototype.readInt16LE=function(E,I){return E>>>=0,I||M(E,2,this.length),I=this[E]|this[E+1]<<8,32768&I?4294901760|I:I},s.prototype.readInt16BE=function(E,I){return E>>>=0,I||M(E,2,this.length),I=this[E+1]|this[E]<<8,32768&I?4294901760|I:I},s.prototype.readInt32LE=function(E,I){return E>>>=0,I||M(E,4,this.length),this[E]|this[E+1]<<8|this[E+2]<<16|this[E+3]<<24},s.prototype.readInt32BE=function(E,I){return E>>>=0,I||M(E,4,this.length),this[E]<<24|this[E+1]<<16|this[E+2]<<8|this[E+3]},s.prototype.readFloatLE=function(E,I){return E>>>=0,I||M(E,4,this.length),i.read(this,E,!0,23,4)},s.prototype.readFloatBE=function(E,I){return E>>>=0,I||M(E,4,this.length),i.read(this,E,!1,23,4)},s.prototype.readDoubleLE=function(E,I){return E>>>=0,I||M(E,8,this.length),i.read(this,E,!0,52,8)},s.prototype.readDoubleBE=function(E,I){return E>>>=0,I||M(E,8,this.length),i.read(this,E,!1,52,8)},s.prototype.writeUIntLE=function(E,I,B,W){E=+E,I>>>=0,B>>>=0,W||D(this,E,I,B,Math.pow(2,8*B)-1,0);var $=1,te=0;for(this[I]=255&E;++te>>=0,B>>>=0,W||D(this,E,I,B,Math.pow(2,8*B)-1,0);var $=B-1,te=1;for(this[I+$]=255&E;0<=--$&&(te*=256);)this[I+$]=E/te&255;return I+B},s.prototype.writeUInt8=function(E,I,B){return E=+E,I>>>=0,B||D(this,E,I,1,255,0),this[I]=255&E,I+1},s.prototype.writeUInt16LE=function(E,I,B){return E=+E,I>>>=0,B||D(this,E,I,2,65535,0),this[I]=255&E,this[I+1]=E>>>8,I+2},s.prototype.writeUInt16BE=function(E,I,B){return E=+E,I>>>=0,B||D(this,E,I,2,65535,0),this[I]=E>>>8,this[I+1]=255&E,I+2},s.prototype.writeUInt32LE=function(E,I,B){return E=+E,I>>>=0,B||D(this,E,I,4,4294967295,0),this[I+3]=E>>>24,this[I+2]=E>>>16,this[I+1]=E>>>8,this[I]=255&E,I+4},s.prototype.writeUInt32BE=function(E,I,B){return E=+E,I>>>=0,B||D(this,E,I,4,4294967295,0),this[I]=E>>>24,this[I+1]=E>>>16,this[I+2]=E>>>8,this[I+3]=255&E,I+4},s.prototype.writeIntLE=function(E,I,B,W){E=+E,I>>>=0,W||D(this,E,I,B,(W=Math.pow(2,8*B-1))-1,-W);var $=0,te=1,se=0;for(this[I]=255&E;++$>0)-se&255;return I+B},s.prototype.writeIntBE=function(E,I,B,W){E=+E,I>>>=0,W||D(this,E,I,B,(W=Math.pow(2,8*B-1))-1,-W);var $=B-1,te=1,se=0;for(this[I+$]=255&E;0<=--$&&(te*=256);)E<0&&se===0&&this[I+$+1]!==0&&(se=1),this[I+$]=(E/te>>0)-se&255;return I+B},s.prototype.writeInt8=function(E,I,B){return E=+E,I>>>=0,B||D(this,E,I,1,127,-128),this[I]=255&(E=E<0?255+E+1:E),I+1},s.prototype.writeInt16LE=function(E,I,B){return E=+E,I>>>=0,B||D(this,E,I,2,32767,-32768),this[I]=255&E,this[I+1]=E>>>8,I+2},s.prototype.writeInt16BE=function(E,I,B){return E=+E,I>>>=0,B||D(this,E,I,2,32767,-32768),this[I]=E>>>8,this[I+1]=255&E,I+2},s.prototype.writeInt32LE=function(E,I,B){return E=+E,I>>>=0,B||D(this,E,I,4,2147483647,-2147483648),this[I]=255&E,this[I+1]=E>>>8,this[I+2]=E>>>16,this[I+3]=E>>>24,I+4},s.prototype.writeInt32BE=function(E,I,B){return E=+E,I>>>=0,B||D(this,E,I,4,2147483647,-2147483648),this[I]=(E=E<0?4294967295+E+1:E)>>>24,this[I+1]=E>>>16,this[I+2]=E>>>8,this[I+3]=255&E,I+4},s.prototype.writeFloatLE=function(E,I,B){return N(this,E,I,!0,B)},s.prototype.writeFloatBE=function(E,I,B){return N(this,E,I,!1,B)},s.prototype.writeDoubleLE=function(E,I,B){return F(this,E,I,!0,B)},s.prototype.writeDoubleBE=function(E,I,B){return F(this,E,I,!1,B)},s.prototype.copy=function(E,I,B,W){if(!s.isBuffer(E))throw new TypeError("argument should be a Buffer");if(B=B||0,W||W===0||(W=this.length),I>=E.length&&(I=E.length),(W=0=this.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("sourceEnd out of bounds");W>this.length&&(W=this.length);var $=(W=E.length-I>>=0,B=B===void 0?this.length:B>>>0,typeof(E=E||0)=="number")for(te=I;te>6|192,63&B|128)}else if(B<65536){if((I-=3)<0)break;te.push(B>>12|224,B>>6&63|128,63&B|128)}else{if(!(B<1114112))throw new Error("Invalid code point");if((I-=4)<0)break;te.push(B>>18|240,B>>12&63|128,B>>6&63|128,63&B|128)}}return te}function V(E){return m.toByteArray(function(I){if((I=(I=I.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;I.length%4!=0;)I+="=";return I}(E))}function z(E,I,B,W){for(var $=0;$=I.length||$>=E.length);++$)I[$+B]=E[$];return $}function X(E,I){return E instanceof I||E!=null&&E.constructor!=null&&E.constructor.name!=null&&E.constructor.name===I.name}function Q(E){return E!=E}var oe=function(){for(var E="0123456789abcdef",I=new Array(256),B=0;B<16;++B)for(var W=16*B,$=0;$<16;++$)I[W+$]=E[B]+E[$];return I}()}).call(this,t("buffer").Buffer)},{"base64-js":1,buffer:4,ieee754:251}],5:[function(t,w,_){w.exports=function(d){if(typeof d!="function")throw TypeError(String(d)+" is not a function");return d}},{}],6:[function(t,w,_){var d=t("../internals/is-object");w.exports=function(m){if(d(m)||m===null)return m;throw TypeError("Can't set "+String(m)+" as a prototype")}},{"../internals/is-object":75}],7:[function(i,w,_){var d=i("../internals/well-known-symbol"),m=i("../internals/object-create"),i=i("../internals/object-define-property"),h=d("unscopables"),b=Array.prototype;b[h]==null&&i.f(b,h,{configurable:!0,value:m(null)}),w.exports=function(y){b[h][y]=!0}},{"../internals/object-create":91,"../internals/object-define-property":93,"../internals/well-known-symbol":149}],8:[function(t,w,_){var d=t("../internals/string-multibyte").charAt;w.exports=function(m,i,h){return i+(h?d(m,i).length:1)}},{"../internals/string-multibyte":124}],9:[function(t,w,_){w.exports=function(d,m,i){if(d instanceof m)return d;throw TypeError("Incorrect "+(i?i+" ":"")+"invocation")}},{}],10:[function(t,w,_){var d=t("../internals/is-object");w.exports=function(m){if(d(m))return m;throw TypeError(String(m)+" is not an object")}},{"../internals/is-object":75}],11:[function(t,w,_){w.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},{}],12:[function(A,w,_){function d(F){return y(F)&&s(N,u(F))}var m,i=A("../internals/array-buffer-native"),h=A("../internals/descriptors"),b=A("../internals/global"),y=A("../internals/is-object"),s=A("../internals/has"),u=A("../internals/classof"),a=A("../internals/create-non-enumerable-property"),c=A("../internals/redefine"),p=A("../internals/object-define-property").f,o=A("../internals/object-get-prototype-of"),l=A("../internals/object-set-prototype-of"),R=A("../internals/well-known-symbol"),A=A("../internals/uid"),f=b.Int8Array,v=f&&f.prototype,S=b.Uint8ClampedArray,S=S&&S.prototype,O=f&&o(f),k=v&&o(v),T=Object.prototype,P=T.isPrototypeOf,R=R("toStringTag"),M=A("TYPED_ARRAY_TAG"),D=i&&!!l&&u(b.opera)!=="Opera",A=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8};for(m in N)b[m]||(D=!1);if((!D||typeof O!="function"||O===Function.prototype)&&(O=function(){throw TypeError("Incorrect invocation")},D))for(m in N)b[m]&&l(b[m],O);if((!D||!k||k===T)&&(k=O.prototype,D))for(m in N)b[m]&&l(b[m].prototype,k);if(D&&o(S)!==k&&l(S,k),h&&!s(k,R))for(m in A=!0,p(k,R,{get:function(){return y(this)?this[M]:void 0}}),N)b[m]&&a(b[m],M,m);w.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:A&&M,aTypedArray:function(F){if(d(F))return F;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(F){if(l){if(P.call(O,F))return F}else for(var G in N)if(s(N,m)&&(G=b[G],G&&(F===G||P.call(G,F))))return F;throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(F,G,q){if(h){if(q)for(var V in N)V=b[V],V&&s(V.prototype,F)&&delete V.prototype[F];k[F]&&!q||c(k,F,!q&&D&&v[F]||G)}},exportTypedArrayStaticMethod:function(F,G,q){var V,z;if(h){if(l){if(q)for(V in N)(z=b[V])&&s(z,F)&&delete z[F];if(O[F]&&!q)return;try{return c(O,F,!q&&D&&f[F]||G)}catch{}}for(V in N)!(z=b[V])||z[F]&&!q||c(z,F,G)}},isView:function(F){return F=u(F),F==="DataView"||s(N,F)},isTypedArray:d,TypedArray:O,TypedArrayPrototype:k}},{"../internals/array-buffer-native":11,"../internals/classof":29,"../internals/create-non-enumerable-property":38,"../internals/descriptors":43,"../internals/global":60,"../internals/has":61,"../internals/is-object":75,"../internals/object-define-property":93,"../internals/object-get-prototype-of":98,"../internals/object-set-prototype-of":102,"../internals/redefine":109,"../internals/uid":146,"../internals/well-known-symbol":149}],13:[function(B,w,_){function d(ee){return[255&ee]}function m(ee){return[255&ee,ee>>8&255]}function i(ee){return[255&ee,ee>>8&255,ee>>16&255,ee>>24&255]}function h(ee){return ee[3]<<24|ee[2]<<16|ee[1]<<8|ee[0]}function b(ee){return te(ee,23,4)}function y(ee){return te(ee,52,8)}function s(ee,ue){A(ee[X],ue,{get:function(){return G(this)[ue]}})}function u(Se,ue,be,je){if(be=T(be),Se=G(Se),be+ue>Se.byteLength)throw $(Q);var ye=G(Se.buffer).bytes,be=be+Se.byteOffset,Se=ye.slice(be,be+ue);return je?Se:Se.reverse()}function a(ee,ue,me,je,ye,be){if(me=T(me),ee=G(ee),me+ue>ee.byteLength)throw $(Q);for(var Se=G(ee.buffer).bytes,Fe=me+ee.byteOffset,Ce=je(+ye),$e=0;$ede;)(fe=ie[de++])in E||l(E,fe,oe[fe]);c.constructor=E}M&&R(B)!==W&&M(B,W);var P=new I(new E(2)),ce=B.setInt8;P.setInt8(0,2147483648),P.setInt8(1,2147483649),!P.getInt8(0)&&P.getInt8(1)||f(B,{setInt8:function(ue,me){ce.call(this,ue,me<<24>>24)},setUint8:function(ue,me){ce.call(this,ue,me<<24>>24)}},{unsafe:!0})}else E=function(ee){S(this,E,V),ee=T(ee),q(this,{bytes:N.call(new Array(ee),0),byteLength:ee}),p||(this.byteLength=ee)},I=function(ee,ye,me){S(this,I,z),S(ee,E,z);var je=G(ee).byteLength,ye=O(ye);if(ye<0||je>24},getUint8:function(ee){return u(this,1,ee)[0]},getInt16:function(ee){return ee=u(this,2,ee,1>16},getUint16:function(ee){return ee=u(this,2,ee,1>>0},getFloat32:function(ee){return se(u(this,4,ee,1"+s+""}},{"../internals/require-object-coercible":114}],37:[function(t,w,_){function d(){return this}var m=t("../internals/iterators-core").IteratorPrototype,i=t("../internals/object-create"),h=t("../internals/create-property-descriptor"),b=t("../internals/set-to-string-tag"),y=t("../internals/iterators");w.exports=function(s,u,a){return u+=" Iterator",s.prototype=i(m,{next:h(1,a)}),b(s,u,!1,!0),y[u]=d,s}},{"../internals/create-property-descriptor":39,"../internals/iterators":80,"../internals/iterators-core":79,"../internals/object-create":91,"../internals/set-to-string-tag":118}],38:[function(t,w,_){var d=t("../internals/descriptors"),m=t("../internals/object-define-property"),i=t("../internals/create-property-descriptor");w.exports=d?function(h,b,y){return m.f(h,b,i(1,y))}:function(h,b,y){return h[b]=y,h}},{"../internals/create-property-descriptor":39,"../internals/descriptors":43,"../internals/object-define-property":93}],39:[function(t,w,_){w.exports=function(d,m){return{enumerable:!(1&d),configurable:!(2&d),writable:!(4&d),value:m}}},{}],40:[function(t,w,_){var d=t("../internals/to-primitive"),m=t("../internals/object-define-property"),i=t("../internals/create-property-descriptor");w.exports=function(h,b,y){b=d(b),b in h?m.f(h,b,i(0,y)):h[b]=y}},{"../internals/create-property-descriptor":39,"../internals/object-define-property":93,"../internals/to-primitive":141}],41:[function(o,w,_){function d(){return this}var m=o("../internals/export"),i=o("../internals/create-iterator-constructor"),h=o("../internals/object-get-prototype-of"),b=o("../internals/object-set-prototype-of"),y=o("../internals/set-to-string-tag"),s=o("../internals/create-non-enumerable-property"),u=o("../internals/redefine"),a=o("../internals/well-known-symbol"),c=o("../internals/is-pure"),p=o("../internals/iterators"),o=o("../internals/iterators-core"),l=o.IteratorPrototype,f=o.BUGGY_SAFARI_ITERATORS,v=a("iterator"),S="values",O="entries";w.exports=function(k,T,P,q,M,D,A){i(P,T,q);function N(E){if(E===M&&Q)return Q;if(!f&&E in z)return z[E];switch(E){case"keys":case S:case O:return function(){return new P(this,E)}}return function(){return new P(this)}}var F,G,q=T+" Iterator",V=!1,z=k.prototype,X=z[v]||z["@@iterator"]||M&&z[M],Q=!f&&X||N(M),oe=T=="Array"&&z.entries||X;if(oe&&(oe=h(oe.call(new k)),l!==Object.prototype&&oe.next&&(c||h(oe)===l||(b?b(oe,l):typeof oe[v]!="function"&&s(oe,v,d)),y(oe,q,!0,!0),c&&(p[q]=d))),M==S&&X&&X.name!==S&&(V=!0,Q=function(){return X.call(this)}),c&&!A||z[v]===Q||s(z,v,Q),p[T]=Q,M)if(F={values:N(S),keys:D?Q:N("keys"),entries:N(O)},A)for(G in F)!f&&!V&&G in z||u(z,G,F[G]);else m({target:T,proto:!0,forced:f||V},F);return F}},{"../internals/create-iterator-constructor":37,"../internals/create-non-enumerable-property":38,"../internals/export":50,"../internals/is-pure":76,"../internals/iterators":80,"../internals/iterators-core":79,"../internals/object-get-prototype-of":98,"../internals/object-set-prototype-of":102,"../internals/redefine":109,"../internals/set-to-string-tag":118,"../internals/well-known-symbol":149}],42:[function(t,w,_){var d=t("../internals/path"),m=t("../internals/has"),i=t("../internals/well-known-symbol-wrapped"),h=t("../internals/object-define-property").f;w.exports=function(b){var y=d.Symbol||(d.Symbol={});m(y,b)||h(y,b,{value:i.f(b)})}},{"../internals/has":61,"../internals/object-define-property":93,"../internals/path":105,"../internals/well-known-symbol-wrapped":148}],43:[function(t,w,_){t=t("../internals/fails"),w.exports=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":51}],44:[function(m,w,_){var d=m("../internals/global"),m=m("../internals/is-object"),i=d.document,h=m(i)&&m(i.createElement);w.exports=function(b){return h?i.createElement(b):{}}},{"../internals/global":60,"../internals/is-object":75}],45:[function(t,w,_){w.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],46:[function(t,w,_){t=t("../internals/engine-user-agent"),w.exports=/(iphone|ipod|ipad).*applewebkit/i.test(t)},{"../internals/engine-user-agent":47}],47:[function(t,w,_){t=t("../internals/get-built-in"),w.exports=t("navigator","userAgent")||""},{"../internals/get-built-in":57}],48:[function(i,w,_){var d,m,h=i("../internals/global"),i=i("../internals/engine-user-agent"),h=h.process,h=h&&h.versions,h=h&&h.v8;h?m=(d=h.split("."))[0]+d[1]:i&&(!(d=i.match(/Edge\/(\d+)/))||74<=d[1])&&(d=i.match(/Chrome\/(\d+)/))&&(m=d[1]),w.exports=m&&+m},{"../internals/engine-user-agent":47,"../internals/global":60}],49:[function(t,w,_){w.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],50:[function(t,w,_){var d=t("../internals/global"),m=t("../internals/object-get-own-property-descriptor").f,i=t("../internals/create-non-enumerable-property"),h=t("../internals/redefine"),b=t("../internals/set-global"),y=t("../internals/copy-constructor-properties"),s=t("../internals/is-forced");w.exports=function(u,a){var c,p,o,l=u.target,f=u.global,v=u.stat,S=f?d:v?d[l]||b(l,{}):(d[l]||{}).prototype;if(S)for(c in a){if(p=a[c],o=u.noTargetGet?(o=m(S,c))&&o.value:S[c],!s(f?c:l+(v?".":"#")+c,u.forced)&&o!==void 0){if(typeof p==typeof o)continue;y(p,o)}(u.sham||o&&o.sham)&&i(p,"sham",!0),h(S,c,p,u)}}},{"../internals/copy-constructor-properties":33,"../internals/create-non-enumerable-property":38,"../internals/global":60,"../internals/is-forced":74,"../internals/object-get-own-property-descriptor":94,"../internals/redefine":109,"../internals/set-global":116}],51:[function(t,w,_){w.exports=function(d){try{return!!d()}catch{return!0}}},{}],52:[function(a,w,_){a("../modules/es.regexp.exec");var d=a("../internals/redefine"),m=a("../internals/fails"),i=a("../internals/well-known-symbol"),h=a("../internals/regexp-exec"),b=a("../internals/create-non-enumerable-property"),y=i("species"),s=!m(function(){var o=/./;return o.exec=function(){var l=[];return l.groups={a:"7"},l},"".replace(o,"$")!=="7"}),u="a".replace(/./,"$0")==="$0",a=i("replace"),c=!!/./[a]&&/./[a]("a","$0")==="",p=!m(function(){var l=/(?:)/,o=l.exec,l=(l.exec=function(){return o.apply(this,arguments)},"ab".split(l));return l.length!==2||l[0]!=="a"||l[1]!=="b"});w.exports=function(o,l,f,v){var S,O,k=i(o),T=!m(function(){var R={};return R[k]=function(){return 7},""[o](R)!=7}),P=T&&!m(function(){var R=!1,M=/a/;return o==="split"&&((M={constructor:{}}).constructor[y]=function(){return M},M.flags="",M[k]=/./[k]),M.exec=function(){return R=!0,null},M[k](""),!R});T&&P&&(o!=="replace"||s&&u&&!c)&&(o!=="split"||p)||(S=/./[k],f=(P=f(k,""[o],function(R,M,D,A,N){return M.exec===h?T&&!N?{done:!0,value:S.call(M,D,A)}:{done:!0,value:R.call(D,M,A)}:{done:!1}},{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:c}))[0],O=P[1],d(String.prototype,o,f),d(RegExp.prototype,k,l==2?function(R,M){return O.call(R,this,M)}:function(R){return O.call(R,this)})),v&&b(RegExp.prototype[k],"sham",!0)}},{"../internals/create-non-enumerable-property":38,"../internals/fails":51,"../internals/redefine":109,"../internals/regexp-exec":111,"../internals/well-known-symbol":149,"../modules/es.regexp.exec":192}],53:[function(t,w,_){function d(b,y,s,u,a,c,p,o){for(var l,f=a,v=0,S=!!p&&h(p,o,3);v>1,S=s===23?m(2,-24)-m(2,-77):0,O=y<0||y===0&&1/y<0?1:0,k=0;for((y=d(y))!=y||y===1/0?(c=y!=y?1:0,a=f):(a=i(h(y)/b),y*(p=m(2,-a))<1&&(a--,p*=2),2<=(y+=1<=a+v?S/p:S*m(2,1-v))*p&&(a++,p/=2),f<=a+v?(c=0,a=f):1<=a+v?(c=(y*p-1)*m(2,s),a+=v):(c=y*m(2,v-1)*m(2,s),a=0));8<=s;o[k++]=255&c,c/=256,s-=8);for(a=a<>1,o=f-7,l=a-1,f=y[l--],v=127&f;for(f>>=7;0>=-o,o+=s;0"+v+""},f=function(){try{m=document.domain&&new ActiveXObject("htmlfile")}catch{}f=m?((v=m).write(l("")),v.close(),S=v.parentWindow.Object,v=null,S):(v=u("iframe"),S="java"+p+":",v.style.display="none",s.appendChild(v),v.src=String(S),(S=v.contentWindow.document).open(),S.write(l("document.F=Object")),S.close(),S.F);for(var v,S,O=b.length;O--;)delete f[c][b[O]];return f()};y[o]=!0,w.exports=Object.create||function(v,S){var O;return v!==null?(d[c]=i(v),O=new d,d[c]=null,O[o]=v):O=f(),S===void 0?O:h(O,S)}},{"../internals/an-object":10,"../internals/document-create-element":44,"../internals/enum-bug-keys":49,"../internals/hidden-keys":62,"../internals/html":64,"../internals/object-define-properties":92,"../internals/shared-key":119}],92:[function(t,w,_){var d=t("../internals/descriptors"),m=t("../internals/object-define-property"),i=t("../internals/an-object"),h=t("../internals/object-keys");w.exports=d?Object.defineProperties:function(b,y){i(b);for(var s,u=h(y),a=u.length,c=0;ca;)!d(u,s=y[a++])||~i(c,s)||c.push(s);return c}},{"../internals/array-includes":18,"../internals/has":61,"../internals/hidden-keys":62,"../internals/to-indexed-object":135}],100:[function(t,w,_){var d=t("../internals/object-keys-internal"),m=t("../internals/enum-bug-keys");w.exports=Object.keys||function(i){return d(i,m)}},{"../internals/enum-bug-keys":49,"../internals/object-keys-internal":99}],101:[function(t,w,_){var d={}.propertyIsEnumerable,m=Object.getOwnPropertyDescriptor,i=m&&!d.call({1:2},1);_.f=i?function(h){return h=m(this,h),!!h&&h.enumerable}:d},{}],102:[function(t,w,_){var d=t("../internals/an-object"),m=t("../internals/a-possible-prototype");w.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var i,h=!1,b={};try{(i=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(b,[]),h=b instanceof Array}catch{}return function(y,s){return d(y),m(s),h?i.call(y,s):y.__proto__=s,y}}():void 0)},{"../internals/a-possible-prototype":6,"../internals/an-object":10}],103:[function(t,w,_){var d=t("../internals/to-string-tag-support"),m=t("../internals/classof");w.exports=d?{}.toString:function(){return"[object "+m(this)+"]"}},{"../internals/classof":29,"../internals/to-string-tag-support":142}],104:[function(t,w,_){var d=t("../internals/get-built-in"),m=t("../internals/object-get-own-property-names"),i=t("../internals/object-get-own-property-symbols"),h=t("../internals/an-object");w.exports=d("Reflect","ownKeys")||function(b){var y=m.f(h(b)),s=i.f;return s?y.concat(s(b)):y}},{"../internals/an-object":10,"../internals/get-built-in":57,"../internals/object-get-own-property-names":96,"../internals/object-get-own-property-symbols":97}],105:[function(t,w,_){t=t("../internals/global"),w.exports=t},{"../internals/global":60}],106:[function(t,w,_){w.exports=function(d){try{return{error:!1,value:d()}}catch(m){return{error:!0,value:m}}}},{}],107:[function(t,w,_){var d=t("../internals/an-object"),m=t("../internals/is-object"),i=t("../internals/new-promise-capability");w.exports=function(h,b){return d(h),m(b)&&b.constructor===h?b:((0,(h=i.f(h)).resolve)(b),h.promise)}},{"../internals/an-object":10,"../internals/is-object":75,"../internals/new-promise-capability":87}],108:[function(t,w,_){var d=t("../internals/redefine");w.exports=function(m,i,h){for(var b in i)d(m,b,i[b],h);return m}},{"../internals/redefine":109}],109:[function(y,w,_){var d=y("../internals/global"),m=y("../internals/create-non-enumerable-property"),i=y("../internals/has"),h=y("../internals/set-global"),b=y("../internals/inspect-source"),y=y("../internals/internal-state"),s=y.get,u=y.enforce,a=String(String).split("String");(w.exports=function(c,p,o,S){var f=!!S&&!!S.unsafe,v=!!S&&!!S.enumerable,S=!!S&&!!S.noTargetGet;typeof o=="function"&&(typeof p!="string"||i(o,"name")||m(o,"name",p),u(o).source=a.join(typeof p=="string"?p:"")),c===d?v?c[p]=o:h(p,o):(f?!S&&c[p]&&(v=!0):delete c[p],v?c[p]=o:m(c,p,o))})(Function.prototype,"toString",function(){return typeof this=="function"&&s(this).source||b(this)})},{"../internals/create-non-enumerable-property":38,"../internals/global":60,"../internals/has":61,"../internals/inspect-source":69,"../internals/internal-state":71,"../internals/set-global":116}],110:[function(t,w,_){var d=t("./classof-raw"),m=t("./regexp-exec");w.exports=function(i,h){var b=i.exec;if(typeof b=="function"){if(b=b.call(i,h),typeof b!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return b}if(d(i)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return m.call(i,h)}},{"./classof-raw":28,"./regexp-exec":111}],111:[function(h,w,_){var d,m,i=h("./regexp-flags"),h=h("./regexp-sticky-helpers"),b=RegExp.prototype.exec,y=String.prototype.replace,s=b,u=(d=/a/,m=/b*/g,b.call(d,"a"),b.call(m,"a"),d.lastIndex!==0||m.lastIndex!==0),a=h.UNSUPPORTED_Y||h.BROKEN_CARET,c=/()??/.exec("")[1]!==void 0;w.exports=s=u||c||a?function(p){var o,l,f,v,S=this,O=a&&S.sticky,k=i.call(S),T=S.source,P=0,R=p;return O&&((k=k.replace("y","")).indexOf("g")===-1&&(k+="g"),R=String(p).slice(S.lastIndex),0l&&(p=p.slice(0,l)),y?c+p:p+c)}}var m=t("../internals/to-length"),i=t("../internals/string-repeat"),h=t("../internals/require-object-coercible"),b=Math.ceil;w.exports={start:d(!1),end:d(!0)}},{"../internals/require-object-coercible":114,"../internals/string-repeat":128,"../internals/to-length":137}],127:[function(t,w,_){function d(f){return f+22+75*(f<26)}function m(f){var v,S=[],O=(f=function(X){for(var Q=[],oe=0,E=X.length;oeo((i-T)/N))throw RangeError(c);for(T+=(D-k)*N,k=D,A=0;Ai)throw RangeError(c);if(v==k){for(var F=T,G=h;;G+=h){var q=G<=P?1:P+b<=G?b:G-P;if(F>1,X+=o(X/Q);p*b>>1>>=1)&&(h+=h))1&y&&(b+=h);return b}},{"../internals/require-object-coercible":114,"../internals/to-integer":136}],129:[function(t,w,_){var d=t("../internals/fails"),m=t("../internals/whitespaces");w.exports=function(i){return d(function(){return!!m[i]()||"​…᠎"[i]()!="​…᠎"||m[i].name!==i})}},{"../internals/fails":51,"../internals/whitespaces":150}],130:[function(i,w,_){function d(y){return function(s){return s=String(m(s)),1&y&&(s=s.replace(h,"")),s=2&y?s.replace(b,""):s}}var m=i("../internals/require-object-coercible"),i="["+i("../internals/whitespaces")+"]",h=RegExp("^"+i+i+"*"),b=RegExp(i+i+"*$");w.exports={start:d(1),end:d(2),trim:d(3)}},{"../internals/require-object-coercible":114,"../internals/whitespaces":150}],131:[function(p,w,_){function d(M){return function(){R(M)}}function m(M){R(M.data)}function i(M){b.postMessage(M+"",o.protocol+"//"+o.host)}var h,b=p("../internals/global"),y=p("../internals/fails"),s=p("../internals/classof-raw"),u=p("../internals/function-bind-context"),a=p("../internals/html"),c=p("../internals/document-create-element"),p=p("../internals/engine-is-ios"),o=b.location,l=b.setImmediate,f=b.clearImmediate,v=b.process,S=b.MessageChannel,O=b.Dispatch,k=0,T={},P="onreadystatechange",R=function(M){var D;T.hasOwnProperty(M)&&(D=T[M],delete T[M],D())};l&&f||(l=function(M){for(var D=[],A=1;A=c.length?{value:a.target=void 0,done:!0}:p=="keys"?{value:o,done:!1}:p=="values"?{value:c[o],done:!1}:{value:[o,c[o]],done:!1}},"values"),i.Arguments=i.Array,m("keys"),m("values"),m("entries")},{"../internals/add-to-unscopables":7,"../internals/define-iterator":41,"../internals/internal-state":71,"../internals/iterators":80,"../internals/to-indexed-object":135}],165:[function(b,w,_){var d=b("../internals/export"),h=b("../internals/indexed-object"),m=b("../internals/to-indexed-object"),b=b("../internals/array-method-is-strict"),i=[].join,h=h!=Object,b=b("join",",");d({target:"Array",proto:!0,forced:h||!b},{join:function(y){return i.call(m(this),y===void 0?",":y)}})},{"../internals/array-method-is-strict":22,"../internals/export":50,"../internals/indexed-object":67,"../internals/to-indexed-object":135}],166:[function(m,w,_){var d=m("../internals/export"),m=m("../internals/array-last-index-of");d({target:"Array",proto:!0,forced:m!==[].lastIndexOf},{lastIndexOf:m})},{"../internals/array-last-index-of":20,"../internals/export":50}],167:[function(h,w,_){var d=h("../internals/export"),m=h("../internals/array-iteration").map,i=h("../internals/array-method-has-species-support"),h=h("../internals/array-method-uses-to-length"),i=i("map"),h=h("map");d({target:"Array",proto:!0,forced:!i||!h},{map:function(b){return m(this,b,1D;D++)y(O,P=M[D])&&!y(R,P)&&f(R,P,l(O,P));(R.prototype=k).constructor=R,b(i,S,R)}},{"../internals/classof-raw":28,"../internals/descriptors":43,"../internals/fails":51,"../internals/global":60,"../internals/has":61,"../internals/inherit-if-required":68,"../internals/is-forced":74,"../internals/object-create":91,"../internals/object-define-property":93,"../internals/object-get-own-property-descriptor":94,"../internals/object-get-own-property-names":96,"../internals/redefine":109,"../internals/string-trim":130,"../internals/to-primitive":141}],179:[function(t,w,_){t("../internals/export")({target:"Number",stat:!0},{isFinite:t("../internals/number-is-finite")})},{"../internals/export":50,"../internals/number-is-finite":89}],180:[function(y,w,_){function d(a,c,p){return c===0?p:c%2==1?d(a,c-1,p*a):d(a*a,c/2,p)}var m=y("../internals/export"),i=y("../internals/to-integer"),h=y("../internals/this-number-value"),b=y("../internals/string-repeat"),y=y("../internals/fails"),s=1 .toFixed,u=Math.floor;m({target:"Number",proto:!0,forced:s&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||0xde0b6b3a7640080.toFixed(0)!=="1000000000000000128")||!y(function(){s.call({})})},{toFixed:function(S){function c(P,R){for(var M=-1,D=R;++M<6;)D+=P*O[M],O[M]=D%1e7,D=u(D/1e7)}function p(P){for(var R=6,M=0;0<=--R;)M+=O[R],O[R]=u(M/P),M=M%P*1e7}function o(){for(var P,R=6,M="";0<=--R;)M===""&&R!==0&&O[R]===0||(P=String(O[R]),M=M===""?P:M+b.call("0",7-P.length)+P);return M}var l,f,v=h(this),S=i(S),O=[0,0,0,0,0,0],k="",T="0";if(S<0||20Pe;){var Ne,Ge,ze,Ye=re[Pe++],at=we?Ye.ok:Ye.fail,st=Ye.resolve,Je=Ye.reject,it=Ye.domain;try{at?(we||(Ee.rejection===be&&function(ot,wt){M.call(s,function(){de?te.emit("rejectionHandled",ot):Ve(ue,ot,wt.value)})}(Ae,Ee),Ee.rejection=ye),at===!0?Ne=ge:(it&&it.enter(),Ne=at(ge),it&&(it.exit(),ze=!0)),Ne===Ye.promise?Je(W("Promise-chain cycle")):(Ge=Ce(Ne))?Ge.call(Ne,st,Je):st(Ne)):Je(ge)}catch(ot){it&&!ze&&it.exit(),Je(ot)}}Ee.reactions=[],Ee.notified=!1,K&&!Ee.rejection&&(Z=Ae,ne=Ee,M.call(s,function(){var ot=ne.value,wt=He(ne);if(wt&&(wt=G(function(){de?te.emit("unhandledRejection",ot,Z):Ve(ee,Z,ot)}),ne.rejection=de||He(ne)?be:ye,wt.error))throw wt.value}))}))},Ve=function(Ae,Ee,K){var re;ce?((re=$.createEvent("Event")).promise=Ee,re.reason=K,re.initEvent(Ae,!1,!0),s.dispatchEvent(re)):re={promise:Ee,reason:K},(Ee=s["on"+Ae])?Ee(re):Ae===ee&&N("Unhandled promise rejection",K)},He=function(Ae){return Ae.rejection!==ye&&!Ae.parent},Xe=function(Ae,Ee,K,re){return function(Z){Ae(Ee,K,Z,re)}},We=function(Ae,Ee,K,re){Ee.done||(Ee.done=!0,(Ee=re||Ee).value=K,Ee.state=je,$e(Ae,Ee,!0))},_e=function(Ae,Ee,K,re){if(!Ee.done){Ee.done=!0,re&&(Ee=re);try{if(Ae===K)throw W("Promise can't be resolved itself");var Z=Ce(K);Z?D(function(){var ne={done:!1};try{Z.call(K,Xe(_e,Ae,ne,Ee),Xe(We,Ae,ne,Ee))}catch(ge){We(Ae,ne,ge,Ee)}}):(Ee.value=K,Ee.state=me,$e(Ae,Ee,!1))}catch(ne){We(Ae,{done:!1},ne,Ee)}}};Se&&(B=function(Ae){S(this,B,Q),v(Ae),d.call(this);var Ee=oe(this);try{Ae(Xe(_e,this,Ee),Xe(We,this,Ee))}catch(K){We(this,Ee,K)}},(d=function(Ae){E(this,{type:Q,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(B.prototype,{then:function(Ae,Ee){var K=I(this),re=fe(R(this,B));return re.ok=typeof Ae!="function"||Ae,re.fail=typeof Ee=="function"&&Ee,re.domain=de?te.domain:void 0,K.parent=!0,K.reactions.push(re),K.state!=0&&$e(this,K,!1),re.promise},catch:function(Ae){return this.then(void 0,Ae)}}),m=function(){var Ae=new d,Ee=oe(Ae);this.promise=Ae,this.resolve=Xe(_e,Ae,Ee),this.reject=Xe(We,Ae,Ee)},F.f=fe=function(Ae){return Ae===B||Ae===i?new m:ie(Ae)},y||typeof a!="function"||(h=a.prototype.then,c(a.prototype,"then",function(Ae,Ee){var K=this;return new B(function(re,Z){h.call(K,re,Z)}).then(Ae,Ee)},{unsafe:!0}),typeof se=="function"&&b({global:!0,enumerable:!0,forced:!0},{fetch:function(Ae){return A(B,se.apply(s,arguments))}}))),b({global:!0,wrap:!0,forced:Se},{Promise:B}),o(B,Q,!1,!0),l(Q),i=u(Q),b({target:Q,stat:!0,forced:Se},{reject:function(Ae){var Ee=fe(this);return Ee.reject.call(void 0,Ae),Ee.promise}}),b({target:Q,stat:!0,forced:y||Se},{resolve:function(Ae){return A(y&&this===i?B:this,Ae)}}),b({target:Q,stat:!0,forced:Fe},{all:function(Ae){var Ee=this,K=fe(Ee),re=K.resolve,Z=K.reject,ne=G(function(){var ge=v(Ee.resolve),we=[],Pe=0,Ne=1;T(Ae,function(Ge){var ze=Pe++,Ye=!1;we.push(void 0),Ne++,ge.call(Ee,Ge).then(function(at){Ye||(Ye=!0,we[ze]=at,--Ne||re(we))},Z)}),--Ne||re(we)});return ne.error&&Z(ne.value),K.promise},race:function(Ae){var Ee=this,K=fe(Ee),re=K.reject,Z=G(function(){var ne=v(Ee.resolve);T(Ae,function(ge){ne.call(Ee,ge).then(K.resolve,re)})});return Z.error&&re(Z.value),K.promise}})},{"../internals/a-function":5,"../internals/an-instance":9,"../internals/check-correctness-of-iteration":27,"../internals/classof-raw":28,"../internals/engine-v8-version":48,"../internals/export":50,"../internals/get-built-in":57,"../internals/global":60,"../internals/host-report-errors":63,"../internals/inspect-source":69,"../internals/internal-state":71,"../internals/is-forced":74,"../internals/is-object":75,"../internals/is-pure":76,"../internals/iterate":78,"../internals/microtask":82,"../internals/native-promise-constructor":83,"../internals/new-promise-capability":87,"../internals/perform":106,"../internals/promise-resolve":107,"../internals/redefine":109,"../internals/redefine-all":108,"../internals/set-species":117,"../internals/set-to-string-tag":118,"../internals/species-constructor":122,"../internals/task":131,"../internals/well-known-symbol":149}],189:[function(s,w,_){var d=s("../internals/export"),p=s("../internals/get-built-in"),m=s("../internals/a-function"),i=s("../internals/an-object"),h=s("../internals/is-object"),b=s("../internals/object-create"),y=s("../internals/function-bind"),s=s("../internals/fails"),u=p("Reflect","construct"),a=s(function(){function o(){}return!(u(function(){},[],o)instanceof o)}),c=!s(function(){u(function(){})}),p=a||c;d({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(o,l){m(o),i(l);var f=arguments.length<3?o:m(arguments[2]);if(c&&!a)return u(o,l,f);if(o==f){switch(l.length){case 0:return new o;case 1:return new o(l[0]);case 2:return new o(l[0],l[1]);case 3:return new o(l[0],l[1],l[2]);case 4:return new o(l[0],l[1],l[2],l[3])}var v=[null];return v.push.apply(v,l),new(y.apply(o,v))}return v=f.prototype,f=b(h(v)?v:Object.prototype),v=Function.apply.call(o,f,l),h(v)?v:f}})},{"../internals/a-function":5,"../internals/an-object":10,"../internals/export":50,"../internals/fails":51,"../internals/function-bind":56,"../internals/get-built-in":57,"../internals/is-object":75,"../internals/object-create":91}],190:[function(t,w,_){var d=t("../internals/export"),m=t("../internals/is-object"),i=t("../internals/an-object"),h=t("../internals/has"),b=t("../internals/object-get-own-property-descriptor"),y=t("../internals/object-get-prototype-of");d({target:"Reflect",stat:!0},{get:function s(u,a){var c,p=arguments.length<3?u:arguments[2];return i(u)===p?u[a]:(c=b.f(u,a))?h(c,"value")?c.value:c.get===void 0?void 0:c.get.call(p):m(c=y(u))?s(c,a,p):void 0}})},{"../internals/an-object":10,"../internals/export":50,"../internals/has":61,"../internals/is-object":75,"../internals/object-get-own-property-descriptor":94,"../internals/object-get-prototype-of":98}],191:[function(t,w,_){var d=t("../internals/descriptors"),m=t("../internals/global"),i=t("../internals/is-forced"),h=t("../internals/inherit-if-required"),b=t("../internals/object-define-property").f,y=t("../internals/object-get-own-property-names").f,s=t("../internals/is-regexp"),u=t("../internals/regexp-flags"),a=t("../internals/regexp-sticky-helpers"),c=t("../internals/redefine"),p=t("../internals/fails"),o=t("../internals/internal-state").set,l=t("../internals/set-species"),f=t("../internals/well-known-symbol")("match"),v=m.RegExp,S=v.prototype,O=/a/g,k=/a/g,T=new v(O)!==O,P=a.UNSUPPORTED_Y;if(d&&i("RegExp",!T||P||p(function(){return k[f]=!1,v(O)!=O||v(k)==k||v(O,"i")!="/a/i"}))){for(var R=function(A,N){var F,G=this instanceof R,q=s(A),V=N===void 0;return!G&&q&&A.constructor===R&&V?A:(T?q&&!V&&(A=A.source):A instanceof R&&(V&&(N=u.call(A)),A=A.source),P&&(F=!!N&&-1D;)(function(A){A in R||b(R,A,{configurable:!0,get:function(){return v[A]},set:function(N){v[A]=N}})})(M[D++]);(S.constructor=R).prototype=S,c(m,"RegExp",R)}l("RegExp")},{"../internals/descriptors":43,"../internals/fails":51,"../internals/global":60,"../internals/inherit-if-required":68,"../internals/internal-state":71,"../internals/is-forced":74,"../internals/is-regexp":77,"../internals/object-define-property":93,"../internals/object-get-own-property-names":96,"../internals/redefine":109,"../internals/regexp-flags":112,"../internals/regexp-sticky-helpers":113,"../internals/set-species":117,"../internals/well-known-symbol":149}],192:[function(m,w,_){var d=m("../internals/export"),m=m("../internals/regexp-exec");d({target:"RegExp",proto:!0,forced:/./.exec!==m},{exec:m})},{"../internals/export":50,"../internals/regexp-exec":111}],193:[function(h,w,_){var d=h("../internals/redefine"),m=h("../internals/an-object"),s=h("../internals/fails"),i=h("../internals/regexp-flags"),h="toString",b=RegExp.prototype,y=b[h],s=s(function(){return y.call({source:"a",flags:"b"})!="/a/b"}),u=y.name!=h;(s||u)&&d(RegExp.prototype,h,function(){var a=m(this),c=String(a.source),p=a.flags;return"/"+c+"/"+String(p===void 0&&a instanceof RegExp&&!("flags"in b)?i.call(a):p)},{unsafe:!0})},{"../internals/an-object":10,"../internals/fails":51,"../internals/redefine":109,"../internals/regexp-flags":112}],194:[function(m,w,_){var d=m("../internals/collection"),m=m("../internals/collection-strong");w.exports=d("Set",function(i){return function(){return i(this,arguments.length?arguments[0]:void 0)}},m)},{"../internals/collection":32,"../internals/collection-strong":30}],195:[function(y,w,_){var d=y("../internals/export"),m=y("../internals/object-get-own-property-descriptor").f,i=y("../internals/to-length"),h=y("../internals/not-a-regexp"),b=y("../internals/require-object-coercible"),a=y("../internals/correct-is-regexp-logic"),y=y("../internals/is-pure"),s="".endsWith,u=Math.min,a=a("endsWith");d({target:"String",proto:!0,forced:!!(y||a||!(d=m(String.prototype,"endsWith"))||d.writable)&&!a},{endsWith:function(c){var p=String(b(this)),o=(h(c),1=u.length?{value:void 0,done:!0}:(u=d(u,a),s.index+=u.length,{value:u,done:!1})})},{"../internals/define-iterator":41,"../internals/internal-state":71,"../internals/string-multibyte":124}],198:[function(t,w,_){var d=t("../internals/fix-regexp-well-known-symbol-logic"),m=t("../internals/an-object"),i=t("../internals/to-length"),h=t("../internals/require-object-coercible"),b=t("../internals/advance-string-index"),y=t("../internals/regexp-exec-abstract");d("match",1,function(s,u,a){return[function(c){var p=h(this),o=c==null?void 0:c[s];return o!==void 0?o.call(c,p):new RegExp(c)[s](String(p))},function(c){var p=a(u,c,this);if(p.done)return p.value;var o=m(c),l=String(this);if(!o.global)return y(o,l);for(var f=o.unicode,v=[],S=o.lastIndex=0;(O=y(o,l))!==null;){var O=String(O[0]);(v[S]=O)===""&&(o.lastIndex=b(l,i(o.lastIndex),f)),S++}return S===0?null:v}]})},{"../internals/advance-string-index":8,"../internals/an-object":10,"../internals/fix-regexp-well-known-symbol-logic":52,"../internals/regexp-exec-abstract":110,"../internals/require-object-coercible":114,"../internals/to-length":137}],199:[function(t,w,_){var d=t("../internals/export"),m=t("../internals/string-pad").start;d({target:"String",proto:!0,forced:t("../internals/string-pad-webkit-bug")},{padStart:function(i){return m(this,i,1]*>)/g,l=/\$([$&'`]|\d\d?)/g;d("replace",2,function(f,v,S,O){var k=O.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,T=O.REPLACE_KEEPS_$0,P=k?"$":"$0";return[function(R,M){var D=y(this),A=R==null?void 0:R[f];return A!==void 0?A.call(R,D,M):v.call(String(D),R,M)},function(R,M){if(!k&&T||typeof M=="string"&&M.indexOf(P)===-1){var D=S(v,R,this,M);if(D.done)return D.value}for(var A,N=m(R),F=String(this),G=typeof M=="function",q=(G||(M=String(M)),N.global),V=(q&&(A=N.unicode,N.lastIndex=0),[]);(E=u(N,F))!==null&&(V.push(E),q);)String(E[0])===""&&(N.lastIndex=s(F,h(N.lastIndex),A));for(var z,X="",Q=0,oe=0;oe>>0;if(M==0)return[];if(T===void 0)return[R];if(!m(T))return S.call(R,T,M);for(var D,A,N,F=[],P=(T.ignoreCase?"i":"")+(T.multiline?"m":"")+(T.unicode?"u":"")+(T.sticky?"y":""),G=0,q=new RegExp(T.source,P+"g");(D=a.call(q,R))&&!(G<(A=q.lastIndex)&&(F.push(R.slice(G,D.index)),1=M));)q.lastIndex===D.index&&q.lastIndex++;return G===R.length?!N&&q.test("")||F.push(""):F.push(R.slice(G)),F.length>M?F.slice(0,M):F}:"0".split(void 0,0).length?function(T,P){return T===void 0&&P===0?[]:S.call(this,T,P)}:S;return[function(T,P){var R=h(this),M=T==null?void 0:T[v];return M!==void 0?M.call(T,R,P):k.call(String(R),T,P)},function(D,P){var R=O(k,D,this,P,k!==S);if(R.done)return R.value;var R=i(D),M=String(this),D=b(R,RegExp),A=R.unicode,N=(R.ignoreCase?"i":"")+(R.multiline?"m":"")+(R.unicode?"u":"")+(f?"y":"g"),F=new D(f?R:"^(?:"+R.source+")",N),G=P===void 0?l:P>>>0;if(G==0)return[];if(M.length===0)return u(F,M)===null?[M]:[];for(var q=0,V=0,z=[];Vse.key){de.splice(fe,0,se);break}fe===ee&&de.push(se)}ie.updateURL()},forEach:function(se){for(var fe,ie=z(this).entries,de=S(se,16))return;for(It=0;Zt();){if(Yt=null,It>0)if(Zt()=="."&&It<4)Ze++;else return;if(!B.test(Zt()))return;for(;B.test(Zt());){if(Xr=parseInt(Zt(),10),Yt===null)Yt=Xr;else{if(Yt==0)return;Yt=Yt*10+Xr}if(Yt>255)return;Ze++}pt[qe]=pt[qe]*256+Yt,It++,(It==2||It==4)&&qe++}if(It!=4)return;break}else if(Zt()==":"){if(Ze++,!Zt())return}else if(Zt())return;pt[qe++]=Nt}if(ft!==null)for(jr=qe-ft,qe=7;qe!=0&&jr>0;)Yr=pt[qe],pt[qe--]=pt[ft+jr-1],pt[ft+--jr]=Yr;else if(qe!=8)return;return pt}(Ue.slice(1,-1)))?void(pe.host=Qe):Q;if(Ce(pe))return Ue=T(Ue),fe.test(Ue)||(Qe=function(Ie){var pt=Ie.split("."),qe,ft,Ze,Nt,Ht,It,Yt;if(pt.length&&pt[pt.length-1]==""&&pt.pop(),(qe=pt.length)>4)return Ie;for(ft=[],Ze=0;Ze1&&Nt.charAt(0)=="0"&&(Ht=W.test(Nt)?16:8,Nt=Nt.slice(Ht==8?1:2)),Nt==="")It=0;else{if(!(Ht==10?te:Ht==8?$:se).test(Nt))return Ie;It=parseInt(Nt,Ht)}ft.push(It)}for(Ze=0;Ze=V(256,5-qe))return null}else if(It>255)return null;for(Yt=ft.pop(),Ze=0;Ze":1,"`":1}),ye=S({},je,{"#":1,"?":1,"{":1,"}":1}),be=S({},ye,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Se=function(pe,Ue){var Qe=k(pe,0);return 32"u"&&d!==void 0&&{}.toString.call(d)==="[object process]",f=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function v(){var ee=setTimeout;return function(){return ee(O,1)}}var S=new Array(1e3);function O(){for(var ee=0;eeR,applyPalette:()=>function(G,q,V="rgb565"){if(!G||!G.buffer)throw new Error("quantize() expected RGBA Uint8Array data");if(!(G instanceof Uint8Array||G instanceof Uint8ClampedArray))throw new Error("quantize() expected RGBA Uint8Array data");if(256>24&255,B=$>>16&255,W=$>>8&255,$=255&$,te=c($,W,B,I),te=te in E?E[te]:E[te]=function(ee,ue,me,je,ye){let be=0,Se=1e100;for(let Ve=0;VeSe||(Fe=Ce[0],($e+=k(Fe-ee))>Se||(Fe=Ce[1],($e+=k(Fe-ue))>Se||(Fe=Ce[2],($e+=k(Fe-me))>Se||(Se=$e,be=Ve))))}return be}($,W,B,I,q);oe[ce]=te}else{const ce=V==="rgb444"?p:a;for(let ee=0;ee>16&255,fe=ie>>8&255,ie=255&ie,de=ce(ie,fe,se),de=de in E?E[de]:E[de]=function(ue,me,je,ye){let be=0,Se=1e100;for(let Ve=0;VeSe||(Fe=Ce[1],($e+=k(Fe-me))>Se||(Fe=Ce[2],($e+=k(Fe-je))>Se||(Se=$e,be=Ve)))}return be}(ie,fe,se,q);oe[ee]=de}}return oe},default:()=>F,nearestColor:()=>function(G,q,V=S){return G[T(G,q,V)]},nearestColorIndex:()=>T,nearestColorIndexWithDistance:()=>P,prequantize:()=>function(G,{roundRGB:q=5,roundAlpha:V=10,oneBitAlpha:z=null}={}){const X=new Uint32Array(G.buffer);for(let B=0;B>24&255;var Q,oe=I>>16&255,E=I>>8&255,I=255&I;W=O(W,V),z&&(Q=typeof z=="number"?z:127,W=W<=Q?0:255),I=O(I,q),E=O(E,q),oe=O(oe,q),X[B]=W<<24|oe<<16|E<<8|I<<0}},quantize:()=>function(G,q,V={}){var{format:z="rgb565",clearAlpha:X=!0,clearAlphaColor:Q=0,clearAlphaThreshold:oe=0,oneBitAlpha:E=!1}=V;if(!G||!G.buffer)throw new Error("quantize() expected RGBA Uint8Array data");if(!(G instanceof Uint8Array||G instanceof Uint8ClampedArray))throw new Error("quantize() expected RGBA Uint8Array data");G=new Uint32Array(G.buffer);let I=V.useSqrt!==!1;const B=z==="rgba4444",W=function(He,Xe){const We=Xe==="rgb444"?4096:65536,_e=new Array(We),Ae=He.length;if(Xe==="rgba4444")for(let st=0;st>24&255,K=Z>>16&255,re=Z>>8&255,Z=255&Z,ne=c(Z,re,K,Ee);let Je=ne in _e?_e[ne]:_e[ne]=v();Je.rc+=Z,Je.gc+=re,Je.bc+=K,Je.ac+=Ee,Je.cnt++}else if(Xe==="rgb444")for(let st=0;st>16&255,we=Pe>>8&255,Pe=255&Pe,Ne=p(Pe,we,ge);let Je=Ne in _e?_e[Ne]:_e[Ne]=v();Je.rc+=Pe,Je.gc+=we,Je.bc+=ge,Je.cnt++}else for(let st=0;st>16&255,ze=Ye>>8&255,Ye=255&Ye,at=a(Ye,ze,Ge);let Je=at in _e?_e[at]:_e[at]=v();Je.rc+=Ye,Je.gc+=ze,Je.bc+=Ge,Je.cnt++}return _e}(G,z),$=W.length,te=$-1,se=new Uint32Array($+1);for(var fe=0,ie=0;ie<$;++ie){const He=W[ie];He!=null&&(Ce=1/He.cnt,B&&(He.ac*=Ce),He.rc*=Ce,He.gc*=Ce,He.bc*=Ce,W[fe++]=He)}l(q)/fe<.022&&(I=!1);for(var de,ce,ee,ie=0;ie>1,!(W[de=se[ee]].err<=ue));ce=ee)se[ce]=de;se[ce]=ie}var me,je=fe-q;for(ie=0;ie=me.mtm&&W[me.nn].mtm<=me.tm)break;for(me.mtm==te?ye=se[1]=se[se[0]--]:(f(W,ye,!1),me.tm=ie),ue=W[ye].err,ce=1;(ee=ce+ce)<=se[0]&&(eeW[se[ee+1]].err&&ee++,!(ue<=W[de=se[ee]].err));ce=ee)se[ce]=de;se[ce]=ye}var be=W[me.nn],Se=me.cnt,Fe=be.cnt,Ce=1/(Se+Fe);B&&(me.ac=Ce*(Se*me.ac+Fe*be.ac)),me.rc=Ce*(Se*me.rc+Fe*be.rc),me.gc=Ce*(Se*me.gc+Fe*be.gc),me.bc=Ce*(Se*me.bc+Fe*be.bc),me.cnt+=be.cnt,me.mtm=++ie,W[be.bk].fw=be.fw,W[be.fw].bk=be.bk,be.mtm=te}let $e=[];for(ie=0;;0){let He=o(Math.round(W[ie].rc),0,255),Xe=o(Math.round(W[ie].gc),0,255),We=o(Math.round(W[ie].bc),0,255),_e=255;B&&(_e=o(Math.round(W[ie].ac),0,255),E&&(Ve=typeof E=="number"?E:127,_e=_e<=Ve?0:255),X&&_e<=oe&&(He=Xe=We=Q,_e=0));var Ve=B?[He,Xe,We,_e]:[He,Xe,We];if(function(Ae,Ee){for(let Z=0;Zfunction(G,q,V=5){if(G.length&&q.length){var z=G.map(I=>I.slice(0,3)),X=V*V,Q=G[0].length;for(let I=0;IQ?B.slice(0,3):B.slice();var E=P(z,B.slice(0,3),S),oe=E[0],E=E[1];0>>0),Q!=0&&(X=Math.max(X,256));const oe=V;V=new Uint8Array(X),0>=8,$-=8;if((ue>de||fe)&&(fe?(ie=se,de=(1<>=8,$-=8;0>3}function c(G,q,V,z){return G>>4|240&q|(240&V)<<4|(240&z)<<8}function p(G,q,V){return G>>4<<8|240&q|V>>4}function o(G,q,V){return G>8&255)}function A(G,q){for(var V=0;V>1,p=-7,o=i?f-1:0,l=i?-1:1,f=d[m+o];for(o+=l,y=f&(1<<-p)-1,f>>=-p,p+=u;0>=-p,p+=h;0>1,o=b===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=h?0:v-1,f=h?1:-1,v=m<0||m===0&&1/m<0?1:0;for(m=Math.abs(m),isNaN(m)||m===1/0?(u=isNaN(m)?1:0,s=c):(s=Math.floor(Math.log(m)/Math.LN2),m*(h=Math.pow(2,-s))<1&&(s--,h*=2),2<=(m+=1<=s+p?o/h:o*Math.pow(2,1-p))*h&&(s++,h/=2),c<=s+p?(u=0,s=c):1<=s+p?(u=(m*h-1)*Math.pow(2,b),s+=p):(u=m*Math.pow(2,p-1)*Math.pow(2,b),s=0));8<=b;d[i+l]=255&u,l+=f,u/=256,b-=8);for(s=s<Math.abs(K[0])&&(re=1),re=Math.abs(K[2])>Math.abs(K[re])?2:re}function D(K,re){K.f+=re.f,K.b.f+=re.b.f}function A(K,re,Z){return K=K.a,re=re.a,Z=Z.a,re.b.a===K?Z.b.a===K?i(re.a,Z.a)?b(Z.b.a,re.a,Z.a)<=0:0<=b(re.b.a,Z.a,re.a):b(Z.b.a,K,Z.a)<=0:Z.b.a===K?0<=b(re.b.a,K,re.a):(re=h(re.b.a,K,re.a),(K=h(Z.b.a,K,Z.a))<=re)}function N(K){K.a.i=null;var re=K.e;re.a.c=re.c,re.c.a=re.a,K.e=null}function F(K,re){o(K.a),K.c=!1,(K.a=re).i=K}function G(K){for(var re=K.a.a;(K=Ee(K)).a.a===re;);return K.c&&(F(K,re=f(Ae(K).a.b,K.a.e)),K=Ee(K)),K}function q(K,re,Z){var ne=new _e;return ne.a=Z,ne.e=fe(K.f,re.e,ne),Z.i=ne}function V(K,re){switch(K.s){case 100130:return(1&re)!=0;case 100131:return re!==0;case 100132:return 0>1]],Ne[Pe[ze]])?Xe:We)(Z,ze),Ne[we]=null,Ge[we]=Z.b,Z.b=we}else for(Z.c[-(we+1)]=null;0Math.max(Pe.a,Ge.a))){if(i(we,Pe)){if(0Z.f&&(Z.f*=2,Z.c=$e(Z.c,Z.f+1)),Z.b===0?ge=ne:(ge=Z.b,Z.b=Z.c[Z.b]),Z.e[ge]=re,Z.c[ge]=ne,Z.d[ne]=ge,Z.h&&We(Z,ne),ge):(Z=K.a++,K.c[Z]=re,-(Z+1))}function Fe(K){if(K.a===0)return He(K.b);var re=K.c[K.d[K.a-1]];if(K.b.a!==0&&i(Ve(K.b),re))return He(K.b);for(;--K.a,0K.a||i(ne[Pe],ne[Ge])){ge[Z[we]=Pe]=we;break}ge[Z[we]=Ge]=we,we=Ne}}function We(K,re){for(var Z=K.d,ne=K.e,ge=K.c,we=re,Pe=Z[we];;){var Ne=we>>1,Ge=Z[Ne];if(Ne==0||i(ne[Ge],ne[Pe])){ge[Z[we]=Pe]=we;break}ge[Z[we]=Ge]=we,we=Ne}}function _e(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function Ae(K){return K.e.c.b}function Ee(K){return K.e.a.b}(d=de.prototype).x=function(){ce(this,0)},d.B=function(K,re){switch(K){case 100142:return;case 100140:switch(re){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=re)}break;case 100141:return void(this.m=!!re);default:return void ee(this,100900)}ee(this,100901)},d.y=function(K){switch(K){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:ee(this,100900)}return!1},d.A=function(K,re,Z){this.j[0]=K,this.j[1]=re,this.j[2]=Z},d.z=function(K,re){var Z=re||null;switch(K){case 100100:case 100106:this.h=Z;break;case 100104:case 100110:this.l=Z;break;case 100101:case 100107:this.k=Z;break;case 100102:case 100108:this.i=Z;break;case 100103:case 100109:this.p=Z;break;case 100105:case 100111:this.o=Z;break;case 100112:this.r=Z;break;default:ee(this,100900)}},d.C=function(K,re){var Z=!1,ne=[0,0,0];ce(this,2);for(var ge=0;ge<3;++ge){var we=K[ge];we<-1e150&&(we=-1e150,Z=!0),1e150ne[ze]&&(ne[ze]=Ye,ge[ze]=Z)}if(ne[1]-Ne[1]>ne[Z=0]-Ne[0]&&(Z=1),Ne[Z=ne[2]-Ne[2]>ne[Z]-Ne[Z]?2:Z]>=ne[Z])Pe[0]=0,Pe[1]=0,Pe[2]=1;else{for(Ne=Ge[Z],ge=ge[Z],Ge=[ne=0,0,0],Ne=[Ne.g[0]-ge.g[0],Ne.g[1]-ge.g[1],Ne.g[2]-ge.g[2]],ze=[0,0,0],Z=we.e;Z!==we;Z=Z.e)ze[0]=Z.g[0]-ge.g[0],ze[1]=Z.g[1]-ge.g[1],ze[2]=Z.g[2]-ge.g[2],Ge[0]=Ne[1]*ze[2]-Ne[2]*ze[1],Ge[1]=Ne[2]*ze[0]-Ne[0]*ze[2],Ge[2]=Ne[0]*ze[1]-Ne[1]*ze[0],ne<(Ye=Ge[0]*Ge[0]+Ge[1]*Ge[1]+Ge[2]*Ge[2])&&(ne=Ye,Pe[0]=Ge[0],Pe[1]=Ge[1],Pe[2]=Ge[2]);ne<=0&&(Pe[0]=Pe[1]=Pe[2]=0,Pe[M(Ne)]=1)}we=!0}for(Ge=M(Pe),Z=this.b.c,ne=(Ge+1)%3,ge=(Ge+2)%3,Ge=0>=1;)++p;if(l=1<>8&255,i[s++]=255&b,i[s++]=b>>8&255,i[s++]=(a!==null?128:0)|p,i[s++]=o,i[s++]=0,a!==null)for(var f=0,v=a.length;f>16&255,i[s++]=S>>8&255,i[s++]=255&S}if(u!==null){if(u<0||65535>8&255,i[s++]=0}var O=!1;this.addFrame=function(k,T,P,R,M,D){if(O===!0&&(--s,O=!1),D=D===void 0?{}:D,k<0||T<0||65535>=1;)++F;var G=1<>8&255,i[s++]=X,i[s++]=0),i[s++]=44,i[s++]=255&k,i[s++]=k>>8&255,i[s++]=255&T,i[s++]=T>>8&255,i[s++]=255&P,i[s++]=P>>8&255,i[s++]=255&R,i[s++]=R>>8&255,i[s++]=A===!0?128|F-1:0,A===!0)for(var Q=0,oe=N.length;Q>16&255,i[s++]=E>>8&255,i[s++]=255&E}return s=function(I,B,W,$){I[B++]=W;var te=B++,se=1<>=8,ee-=8,B===te+256&&(I[te]=255,te=B++)}function je(He){ue|=He<>=8,ee-=8,B===te+256&&(I[te]=255,te=B++);de===4096?(je(se),de=1+ie,ce=W+1,be={}):(1<>=p,l-=p,T==u)c=1+a,o=(1<<(p=s+1))-1,k=null;else{if(T==a)break;for(var P=T>8,++R;var D=M;if(y>=8;k!==null&&c<4096&&(O[c++]=k<<8|D,o+1<=c&&p<12&&(++p,o=o<<1|1)),k=T}}v!==y&&console.log("Warning, gif stream shorter than expected.")}try{_.GifWriter=d,_.GifReader=function(i){var h=0;if(i[h++]!==71||i[h++]!==73||i[h++]!==70||i[h++]!==56||(i[h++]+1&253)!=56||i[h++]!==97)throw new Error("Invalid GIF 87a/89a header.");var b=i[h++]|i[h++]<<8,y=i[h++]|i[h++]<<8,s=i[h++],u=1<<1+(7&s),a=(i[h++],i[h++],null),c=null,p=(s>>7&&(a=h,h+=3*(c=u)),!0),o=[],l=0,f=null,v=0,S=null;for(this.width=b,this.height=y;p&&h>2&7,h++;break;case 254:for(;;){if(!(0<=(k=i[h++])))throw Error("Invalid block size");if(k===0)break;h+=k}break;default:throw new Error("Unknown graphic control label: 0x"+i[h-1].toString(16))}break;case 44:var k,T=i[h++]|i[h++]<<8,P=i[h++]|i[h++]<<8,R=i[h++]|i[h++]<<8,M=i[h++]|i[h++]<<8,q=i[h++],D=q>>6&1,A=1<<1+(7&q),N=a,F=c,G=!1,q=(q>>7&&(G=!0,N=h,h+=3*(F=A)),h);for(h++;;){if(!(0<=(k=i[h++])))throw Error("Invalid block size");if(k===0)break;h+=k}o.push({x:T,y:P,width:R,height:M,has_local_palette:G,palette_offset:N,palette_size:F,data_offset:q,data_length:h-q,transparent_index:f,interlaced:!!D,delay:l,disposal:v});break;case 59:p=!1;break;default:throw new Error("Unknown gif block: 0x"+i[h-1].toString(16))}this.numFrames=function(){return o.length},this.loopCount=function(){return S},this.frameInfo=function(V){if(V<0||V>=o.length)throw new Error("Frame index out of range.");return o[V]},this.decodeAndBlitFrameBGRA=function(V,z){for(var V=this.frameInfo(V),X=V.width*V.height,Q=new Uint8Array(X),oe=(m(i,V.data_offset,Q,X),V.palette_offset),E=V.transparent_index,I=(E===null&&(E=256),V.width),B=b-I,W=I,$=4*(V.y*b+V.x),te=4*((V.y+V.height)*b+V.x),se=$,fe=4*B,ie=(V.interlaced===!0&&(fe+=4*b*7),8),de=0,ce=Q.length;de>=1)),me===E?se+=4:(ee=i[oe+3*me],ue=i[oe+3*me+1],me=i[oe+3*me+2],z[se++]=me,z[se++]=ue,z[se++]=ee,z[se++]=255),--W}},this.decodeAndBlitFrameRGBA=function(V,z){for(var V=this.frameInfo(V),X=V.width*V.height,Q=new Uint8Array(X),oe=(m(i,V.data_offset,Q,X),V.palette_offset),E=V.transparent_index,I=(E===null&&(E=256),V.width),B=b-I,W=I,$=4*(V.y*b+V.x),te=4*((V.y+V.height)*b+V.x),se=$,fe=4*B,ie=(V.interlaced===!0&&(fe+=4*b*7),8),de=0,ce=Q.length;de>=1)),me===E?se+=4:(ee=i[oe+3*me],ue=i[oe+3*me+1],me=i[oe+3*me+2],z[se++]=ee,z[se++]=ue,z[se++]=me,z[se++]=255),--W}}}}catch{}},{}],254:[function(t,w,_){(function(d){var m,i;m=this,i=function(h){function b(U){if(this==null)throw TypeError();var j,C=String(this),L=C.length,U=U?Number(U):0;if(!((U=U!=U?0:U)<0||L<=U))return 55296<=(j=C.charCodeAt(U))&&j<=56319&&U+1>>16-j;return g.tag>>>=j,g.bitcount-=j,L+C}function A(g,j){for(;g.bitcount<24;)g.tag|=g.source[g.sourceIndex++]<>>=1,C+=j.table[++U],0<=(L-=j.table[U]););return g.tag=H,g.bitcount-=U,j.trans[C+L]}function N(g,j,C){for(;;){var L=A(g,j);if(L===256)return s;if(L<256)g.dest[g.destLen++]=L;else for(var U,H=D(g,l[L-=257],f[L]),L=A(g,C),Y=U=g.destLen-D(g,v[L],S[L]);Y>>=1,L=U,D(H,2,0)){case 0:C=function(Me){for(var tt,lt;8this.x2&&(this.x2=g)),typeof j=="number"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=j,this.y2=j),jthis.y2&&(this.y2=j))},X.prototype.addX=function(g){this.addPoint(g,null)},X.prototype.addY=function(g){this.addPoint(null,g)},X.prototype.addBezier=function(g,j,C,L,U,H,Y,J){var le=[g,j],ae=[C,L],ve=[U,H],ke=[Y,J];this.addPoint(g,j),this.addPoint(Y,J);for(var xe=0;xe<=1;xe++){var he,Re=6*le[xe]-12*ae[xe]+6*ve[xe],Oe=-3*le[xe]+9*ae[xe]-9*ve[xe]+3*ke[xe],Le=3*ae[xe]-3*le[xe];Oe==0?Re==0||0<(he=-Le/Re)&&he<1&&(xe===0&&this.addX(z(le[xe],ae[xe],ve[xe],ke[xe],he)),xe===1&&this.addY(z(le[xe],ae[xe],ve[xe],ke[xe],he))):(he=Math.pow(Re,2)-4*Le*Oe)<0||(0<(Le=(-Re+Math.sqrt(he))/(2*Oe))&&Le<1&&(xe===0&&this.addX(z(le[xe],ae[xe],ve[xe],ke[xe],Le)),xe===1&&this.addY(z(le[xe],ae[xe],ve[xe],ke[xe],Le))),0<(Le=(-Re-Math.sqrt(he))/(2*Oe))&&Le<1&&(xe===0&&this.addX(z(le[xe],ae[xe],ve[xe],ke[xe],Le)),xe===1&&this.addY(z(le[xe],ae[xe],ve[xe],ke[xe],Le))))}},X.prototype.addQuad=function(g,j,C,L,U,H){C=g+2/3*(C-g),L=j+2/3*(L-j),this.addBezier(g,j,C,L,C+1/3*(U-g),L+1/3*(H-j),U,H)},Q.prototype.moveTo=function(g,j){this.commands.push({type:"M",x:g,y:j})},Q.prototype.lineTo=function(g,j){this.commands.push({type:"L",x:g,y:j})},Q.prototype.curveTo=Q.prototype.bezierCurveTo=function(g,j,C,L,U,H){this.commands.push({type:"C",x1:g,y1:j,x2:C,y2:L,x:U,y:H})},Q.prototype.quadTo=Q.prototype.quadraticCurveTo=function(g,j,C,L){this.commands.push({type:"Q",x1:g,y1:j,x:C,y:L})},Q.prototype.close=Q.prototype.closePath=function(){this.commands.push({type:"Z"})},Q.prototype.extend=function(g){var j;if(g.commands)g=g.commands;else if(g instanceof X)return j=g,this.moveTo(j.x1,j.y1),this.lineTo(j.x2,j.y1),this.lineTo(j.x2,j.y2),this.lineTo(j.x1,j.y2),void this.close();Array.prototype.push.apply(this.commands,g)},Q.prototype.getBoundingBox=function(){for(var g=new X,j=0,C=0,L=0,U=0,H=0;H>8&255,255&g]},$.USHORT=te(2),W.SHORT=function(g){return[(g=32768<=g?-(65536-g):g)>>8&255,255&g]},$.SHORT=te(2),W.UINT24=function(g){return[g>>16&255,g>>8&255,255&g]},$.UINT24=te(3),W.ULONG=function(g){return[g>>24&255,g>>16&255,g>>8&255,255&g]},$.ULONG=te(4),W.LONG=function(g){return[(g=2147483648<=g?-(4294967296-g):g)>>24&255,g>>16&255,g>>8&255,255&g]},$.LONG=te(4),W.FIXED=W.ULONG,$.FIXED=$.ULONG,W.FWORD=W.SHORT,$.FWORD=$.SHORT,W.UFWORD=W.USHORT,$.UFWORD=$.USHORT,W.LONGDATETIME=function(g){return[0,0,0,0,g>>24&255,g>>16&255,g>>8&255,255&g]},$.LONGDATETIME=te(8),W.TAG=function(g){return I.argument(g.length===4,"Tag should be exactly 4 ASCII characters."),[g.charCodeAt(0),g.charCodeAt(1),g.charCodeAt(2),g.charCodeAt(3)]},$.TAG=te(4),W.Card8=W.BYTE,$.Card8=$.BYTE,W.Card16=W.USHORT,$.Card16=$.USHORT,W.OffSize=W.BYTE,$.OffSize=$.BYTE,W.SID=W.USHORT,$.SID=$.USHORT,W.NUMBER=function(g){return-107<=g&&g<=107?[g+139]:108<=g&&g<=1131?[247+((g-=108)>>8),255&g]:-1131<=g&&g<=-108?[251+((g=-g-108)>>8),255&g]:-32768<=g&&g<=32767?W.NUMBER16(g):W.NUMBER32(g)},$.NUMBER=function(g){return W.NUMBER(g).length},W.NUMBER16=function(g){return[28,g>>8&255,255&g]},$.NUMBER16=te(3),W.NUMBER32=function(g){return[29,g>>24&255,g>>16&255,g>>8&255,255&g]},$.NUMBER32=te(5),W.REAL=function(g){for(var j=g.toString(),C=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(j),L=(C&&(C=parseFloat("1e"+((C[2]?+C[2]:0)+C[1].length)),j=(Math.round(g*C)/C).toString()),""),U=0,H=j.length;U>8&255,j[j.length]=255&L}return j},$.UTF16=function(g){return 2*g.length};var se,fe={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈Ć«Č… ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-cyrillic":"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ",macintosh:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"},ie=(B.MACSTRING=function(g,j,C,L){var U=fe[L];if(U!==void 0){for(var H="",Y=0;Y>8&255,xe+256&255)}return ae})(g,L,j);return j},W.INDEX=function(g){for(var j=1,C=[j],L=[],U=0;U>8,j[ve+1]=255&ke,j=j.concat(L[ae])}return j},$.TABLE=function(g){for(var j=0,C=g.fields.length,L=0;L>1,J.skip("uShort",3),Le.glyphIndexMap={};for(var lt,rt=new Ee.Parser(Te,Me+tt+14),nt=new Ee.Parser(Te,Me+tt+16+2*lt),ut=new Ee.Parser(Te,Me+tt+16+4*lt),jt=new Ee.Parser(Te,Me+tt+16+6*lt),Dt=Me+tt+16+8*lt,zt=0;zt>4,Y=15&Y;if(H==15||(L+=U[H],Y==15))break;L+=U[Y]}return parseFloat(L)}if(32<=j&&j<=246)return j-139;if(247<=j&&j<=250)return 256*(j-247)+g.parseByte()+108;if(251<=j&&j<=254)return 256*-(j-251)-g.parseByte()-108;throw new Error("Invalid b0 "+j)}function sr(g,j,C){var L=new Ee.Parser(g,j=j!==void 0?j:0),U=[],H=[];for(C=C!==void 0?C:g.length;L.relativeOffset>1,he.length=0,Oe=!0}return function nt(ut){for(var jt,Dt,zt,ir,ar,Ur,xt,kt,gt,lr,Pt,tr,Tt=0;TtMath.abs(tr-Me)?Te=Pt+he.shift():Me=tr+he.shift(),xe.curveTo(L,U,H,Y,xt,kt),xe.curveTo(gt,lr,Pt,tr,Te,Me);break;default:console.log("Glyph "+j.index+": unknown operator 1200"+Qt),he.length=0}break;case 14:0>3;break;case 21:2>16),Tt+=2;break;case 29:ar=he.pop()+g.gsubrsBias,(Ur=g.gsubrs[ar])&&nt(Ur);break;case 30:for(;0=C.begin&&g=ge.length&&(H=L.parseChar(),C.names.push(L.parseString(H)));break;case 2.5:C.numberOfGlyphs=L.parseUShort(),C.offset=new Array(C.numberOfGlyphs);for(var J=0;Jke.value.tag?1:-1}),j.fields=j.fields.concat(L),j.fields=j.fields.concat(U),j}function Eu(g,j,C){for(var L=0;L 123 are reserved for internal usage");he|=1<>>1,H=g[U].tag;if(H===j)return U;H>>1,H=g[U];if(H===j)return U;H>>1,Y=(U=g[H]).start;if(Y===j)return U;Y(U=g[C-1]).end?0:U}function Ls(g,j){this.font=g,this.tableName=j}function As(g){Ls.call(this,g,"gpos")}function Zr(g){Ls.call(this,g,"gsub")}function Mu(g,j,C){for(var L=g.subtables,U=0;Uj.points.length-1||L.matchedPoints[1]>U.points.length-1)throw Error("Matched points out of range in "+j.name);var Y=j.points[L.matchedPoints[0]],J=U.points[L.matchedPoints[1]],L={xScale:L.xScale,scale01:L.scale01,scale10:L.scale10,yScale:L.yScale,dx:0,dy:0},J=ta([J],L)[0];L.dx=Y.x-J.x,L.dy=Y.y-J.y,H=ta(U.points,L)}j.points=j.points.concat(H)}}return Pu(j.points)}(As.prototype=Ls.prototype={searchTag:ea,binSearch:ku,getTable:function(g){var j=this.font.tables[this.tableName];return j=!j&&g?this.font.tables[this.tableName]=this.createDefaultTable():j},getScriptNames:function(){var g=this.getTable();return g?g.scripts.map(function(j){return j.tag}):[]},getDefaultScriptName:function(){var g=this.getTable();if(g){for(var j=!1,C=0;C=Y[j-1].tag,"Features must be added in alphabetical order."),Y.push(U={tag:C,feature:{params:0,lookupListIndexes:[]}}),H.push(j),U.feature}},getLookupTables:function(H,j,C,L,U){var H=this.getFeatureTable(H,j,C,U),Y=[];if(H){for(var J,le=H.lookupListIndexes,ae=this.font.tables[this.tableName].lookups,ve=0;ve",H),j.stack.push(Math.round(64*H))}function na(g,j){var C=j.stack,L=C.pop(),U=j.fv,H=j.pv,Y=j.ppem,J=j.deltaBase+16*(g-1),le=j.deltaShift,ae=j.z0;h.DEBUG&&console.log(j.step,"DELTAP["+g+"]",L,C);for(var ve=0;ve>4)===Y&&(0<=(xe=(15&xe)-8)&&xe++,h.DEBUG&&console.log(j.step,"DELTAPFIX",ke,"by",xe*le),ke=ae[ke],U.setRelative(ke,ke,xe*le,H))}}function Is(g,j){var C=j.stack,L=C.pop();h.DEBUG&&console.log(j.step,"ROUND[]"),C.push(64*j.round(L/64))}function oa(g,j){var C=j.stack,L=C.pop(),U=j.ppem,H=j.deltaBase+16*(g-1),Y=j.deltaShift;h.DEBUG&&console.log(j.step,"DELTAC["+g+"]",L,C);for(var J=0;J>4)===U&&(0<=(ae=(15&ae)-8)&&ae++,ae=ae*Y,h.DEBUG&&console.log(j.step,"DELTACFIX",le,"by",ae),j.cvt[le]+=ae)}}function $u(g,j){var C,U=j.stack,L=U.pop(),U=U.pop(),H=j.z2[L],Y=j.z1[U];h.DEBUG&&console.log(j.step,"SDPVTL["+g+"]",L,U),L=g?(C=H.y-Y.y,Y.x-H.x):(C=Y.x-H.x,Y.y-H.y),j.dpv=No(C,L)}function yn(g,j){var C=j.stack,L=j.prog,U=j.ip;h.DEBUG&&console.log(j.step,"PUSHB["+g+"]");for(var H=0;H":"_")+(L?"R":"_")+(U===0?"Gr":U===1?"Bl":U===2?"Wh":"")+"]",g?le+"("+H.cvt[le]+","+J+")":"",ae,"(d =",Y,"->",Le*Oe,")"),H.rp1=H.rp0,H.rp2=ae,j&&(H.rp0=ae)}Au.prototype.exec=function(g,j){if(typeof j!="number")throw new Error("Point size is not a number!");if(!(2",L),J.interpolate(ke,H,Y,le),J.touch(ke)}g.loop=1},Xu.bind(void 0,0),Xu.bind(void 0,1),function(g){for(var j=g.stack,C=g.rp0,L=g.z0[C],U=g.loop,H=g.fv,Y=g.pv,J=g.z1;U--;){var le=j.pop(),ae=J[le];h.DEBUG&&console.log(g.step,(1"u"?$h:Kh)(g,function(C,L){if(C)return j(C);var U;try{U=sa(L)}catch(H){return j(H,null)}return j(null,U)})},h.loadSync=function(g){return sa(Cu(t("fs").readFileSync(g)))},Object.defineProperty(h,"__esModule",{value:!0})},i(typeof _=="object"&&w!==void 0?_:m.opentype={})}).call(this,t("buffer").Buffer)},{buffer:4,fs:2}],255:[function(t,w,_){(function(d){function m(b,y){for(var s=0,u=b.length-1;0<=u;u--){var a=b[u];a==="."?b.splice(u,1):a===".."?(b.splice(u,1),s++):s&&(b.splice(u,1),s--)}if(y)for(;s--;)b.unshift("..");return b}function i(b,y){if(b.filter)return b.filter(y);for(var s=[],u=0;u'.concat(l,"").concat(c,""),this.dummyDOM||(this.dummyDOM=document.getElementById(o).parentNode),this.descriptions?this.descriptions.fallbackElements||(this.descriptions.fallbackElements={}):this.descriptions={fallbackElements:{}},this.descriptions.fallbackElements[a]?this.descriptions.fallbackElements[a].innerHTML!==l&&(this.descriptions.fallbackElements[a].innerHTML=l):this._describeElementHTML("fallback",a,l),p===this.LABEL&&(this.descriptions.labelElements||(this.descriptions.labelElements={}),this.descriptions.labelElements[a]?this.descriptions.labelElements[a].innerHTML!==l&&(this.descriptions.labelElements[a].innerHTML=l):this._describeElementHTML("label",a,l)))},d.default.prototype._describeHTML=function(a,c){var p,o=this.canvas.id;a==="fallback"?(this.dummyDOM.querySelector("#".concat(o+m))?this.dummyDOM.querySelector("#"+o+h).insertAdjacentHTML("beforebegin",'

        ')):(p='

        '),this.dummyDOM.querySelector("#".concat(o,"accessibleOutput"))?this.dummyDOM.querySelector("#".concat(o,"accessibleOutput")).insertAdjacentHTML("beforebegin",p):this.dummyDOM.querySelector("#".concat(o)).innerHTML=p),this.descriptions.fallback=this.dummyDOM.querySelector("#".concat(o).concat(i)),this.descriptions.fallback.innerHTML=c):a==="label"&&(this.dummyDOM.querySelector("#".concat(o+b))?this.dummyDOM.querySelector("#".concat(o+s))&&this.dummyDOM.querySelector("#".concat(o+s)).insertAdjacentHTML("beforebegin",'

        ')):(p='

        '),this.dummyDOM.querySelector("#".concat(o,"accessibleOutputLabel"))?this.dummyDOM.querySelector("#".concat(o,"accessibleOutputLabel")).insertAdjacentHTML("beforebegin",p):this.dummyDOM.querySelector("#"+o).insertAdjacentHTML("afterend",p)),this.descriptions.label=this.dummyDOM.querySelector("#"+o+y),this.descriptions.label.innerHTML=c)},d.default.prototype._describeElementHTML=function(a,c,p){var o,l=this.canvas.id;a==="fallback"?(this.dummyDOM.querySelector("#".concat(l+m))?this.dummyDOM.querySelector("#"+l+h)||this.dummyDOM.querySelector("#"+l+i).insertAdjacentHTML("afterend",'
        Canvas elements and their descriptions
        ')):(o='
        Canvas elements and their descriptions
        '),this.dummyDOM.querySelector("#".concat(l,"accessibleOutput"))?this.dummyDOM.querySelector("#".concat(l,"accessibleOutput")).insertAdjacentHTML("beforebegin",o):this.dummyDOM.querySelector("#"+l).innerHTML=o),(o=document.createElement("tr")).id=l+"_fte_"+c,this.dummyDOM.querySelector("#"+l+h).appendChild(o),this.descriptions.fallbackElements[c]=this.dummyDOM.querySelector("#".concat(l).concat("_fte_").concat(c)),this.descriptions.fallbackElements[c].innerHTML=p):a==="label"&&(this.dummyDOM.querySelector("#".concat(l+b))?this.dummyDOM.querySelector("#".concat(l+s))||this.dummyDOM.querySelector("#"+l+y).insertAdjacentHTML("afterend",'
        ')):(o='
        '),this.dummyDOM.querySelector("#".concat(l,"accessibleOutputLabel"))?this.dummyDOM.querySelector("#".concat(l,"accessibleOutputLabel")).insertAdjacentHTML("beforebegin",o):this.dummyDOM.querySelector("#"+l).insertAdjacentHTML("afterend",o)),(a=document.createElement("tr")).id=l+"_lte_"+c,this.dummyDOM.querySelector("#"+l+s).appendChild(a),this.descriptions.labelElements[c]=this.dummyDOM.querySelector("#".concat(l).concat("_lte_").concat(c)),this.descriptions.labelElements[c].innerHTML=p)},t=d.default,_.default=t},{"../core/main":280,"core-js/modules/es.array.concat":152,"core-js/modules/es.regexp.exec":192,"core-js/modules/es.string.ends-with":195,"core-js/modules/es.string.replace":201}],261:[function(t,w,_){t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.from"),t("core-js/modules/es.array.map"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.from"),t("core-js/modules/es.array.map"),t("core-js/modules/es.string.iterator"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0,t=(t=t("../core/main"))&&t.__esModule?t:{default:t},t.default.prototype._updateGridOutput=function(d){var m,i,h,b;this.dummyDOM.querySelector("#".concat(d,"_summary"))&&(m=this._accessibleOutputs[d],h=function(y,s,u,a){return s="".concat(s," canvas, ").concat(u," by ").concat(a," pixels, contains ").concat(y[0]),s=(y[0]===1?"".concat(s," shape: "):"".concat(s," shapes: ")).concat(y[1]),s}((i=function(y,s){var u,a="",c="",p=0;for(u in s){var o,l=0;for(o in s[u]){var f='
      • ').concat(s[u][o].color," ").concat(u,",");u==="line"?f+=" location = ".concat(s[u][o].pos,", length = ").concat(s[u][o].length," pixels"):(f+=" location = ".concat(s[u][o].pos),u!=="point"&&(f+=", area = ".concat(s[u][o].area," %")),f+="
      • "),a+=f,l++,p++}c=1').concat(s[u][l].color," ").concat(u,"
        "):'').concat(s[u][l].color," ").concat(u," midpoint"),o[s[u][l].loc.locY][s[u][l].loc.locX]?o[s[u][l].loc.locY][s[u][l].loc.locX]=o[s[u][l].loc.locY][s[u][l].loc.locX]+" "+f:o[s[u][l].loc.locY][s[u][l].loc.locX]=f,c++}for(a in o){var v,S="";for(v in o[a])S+="",o[a][v]!==void 0&&(S+=o[a][v]),S+="";p=p+S+""}return p}(d,this.ingredients.shapes),h!==m.summary.innerHTML&&(m.summary.innerHTML=h),b!==m.map.innerHTML&&(m.map.innerHTML=b),i.details!==m.shapeDetails.innerHTML&&(m.shapeDetails.innerHTML=i.details),this._accessibleOutputs[d]=m)},t=t.default,_.default=t},{"../core/main":280,"core-js/modules/es.array.concat":152,"core-js/modules/es.array.from":161,"core-js/modules/es.array.map":167,"core-js/modules/es.string.iterator":197}],262:[function(t,w,_){t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.fill"),t("core-js/modules/es.array.from"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.map"),t("core-js/modules/es.number.to-fixed"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.string.iterator"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.fill"),t("core-js/modules/es.array.map"),t("core-js/modules/es.number.to-fixed"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var d=(t=t("../core/main"))&&t.__esModule?t:{default:t};function m(h){return function(b){if(Array.isArray(b)){for(var y=0,s=new Array(b.length);y')):this.dummyDOM.querySelector("#".concat(a)).innerHTML='
        '))):b==="Label"&&(y=a+h+(c=b),this.dummyDOM.querySelector("#".concat(s=a+"accessibleOutput"+b))||(this.dummyDOM.querySelector("#".concat(a,"_Label"))?this.dummyDOM.querySelector("#".concat(a,"_Label")):this.dummyDOM.querySelector("#".concat(a))).insertAdjacentHTML("afterend",'
        '))),this._accessibleOutputs[y]={},h==="textOutput"?(c="#".concat(a,"gridOutput").concat(c),u='
        Text Output

          '),this.dummyDOM.querySelector(c)?this.dummyDOM.querySelector(c).insertAdjacentHTML("beforebegin",u):this.dummyDOM.querySelector("#".concat(s)).innerHTML=u,this._accessibleOutputs[y].list=this.dummyDOM.querySelector("#".concat(y,"_list"))):h==="gridOutput"&&(c="#".concat(a,"textOutput").concat(c),u='
          Grid Output

            '),this.dummyDOM.querySelector(c)?this.dummyDOM.querySelector(c).insertAdjacentHTML("afterend",u):this.dummyDOM.querySelector("#".concat(s)).innerHTML=u,this._accessibleOutputs[y].map=this.dummyDOM.querySelector("#".concat(y,"_map"))),this._accessibleOutputs[y].shapeDetails=this.dummyDOM.querySelector("#".concat(y,"_shapeDetails")),this._accessibleOutputs[y].summary=this.dummyDOM.querySelector("#".concat(y,"_summary"))},d.default.prototype._updateAccsOutput=function(){var h=this.canvas.id;JSON.stringify(this.ingredients.shapes)===this.ingredients.pShapes&&this.ingredients.colors.background===this.ingredients.pBackground||(this.ingredients.pShapes=JSON.stringify(this.ingredients.shapes),this._accessibleOutputs.text&&this._updateTextOutput(h+"textOutput"),this._accessibleOutputs.grid&&this._updateGridOutput(h+"gridOutput"),this._accessibleOutputs.textLabel&&this._updateTextOutput(h+"textOutputLabel"),this._accessibleOutputs.gridLabel&&this._updateGridOutput(h+"gridOutputLabel"))},d.default.prototype._accsBackground=function(h){this.ingredients.pShapes=JSON.stringify(this.ingredients.shapes),this.ingredients.pBackground=this.ingredients.colors.background,this.ingredients.shapes={},this.ingredients.colors.backgroundRGBA!==h&&(this.ingredients.colors.backgroundRGBA=h,this.ingredients.colors.background=this._rgbColorName(h))},d.default.prototype._accsCanvasColors=function(h,b){h==="fill"?this.ingredients.colors.fillRGBA!==b&&(this.ingredients.colors.fillRGBA=b,this.ingredients.colors.fill=this._rgbColorName(b)):h==="stroke"&&this.ingredients.colors.strokeRGBA!==b&&(this.ingredients.colors.strokeRGBA=b,this.ingredients.colors.stroke=this._rgbColorName(b))},d.default.prototype._accsOutput=function(h,b){h==="ellipse"&&b[2]===b[3]?h="circle":h==="rectangle"&&b[2]===b[3]&&(h="square");var y,s,u={},a=!0,c=function(o,l){var f;return o=o==="rectangle"||o==="ellipse"||o==="arc"||o==="circle"||o==="square"?(f=Math.round(l[0]+l[2]/2),Math.round(l[1]+l[3]/2)):o==="triangle"?(f=(l[0]+l[2]+l[4])/3,(l[1]+l[3]+l[5])/3):o==="quadrilateral"?(f=(l[0]+l[2]+l[4]+l[6])/4,(l[1]+l[3]+l[5]+l[7])/4):o==="line"?(f=(l[0]+l[2])/2,(l[1]+l[3])/2):(f=l[0],l[1]),[f,o]}(h,b);if(h==="line"?(u.color=this.ingredients.colors.stroke,u.length=Math.round(this.dist(b[0],b[1],b[2],b[3])),y=this._getPos(b[0],[1]),s=this._getPos(b[2],[3]),u.loc=i(c,this.width,this.height),u.pos=y===s?"at ".concat(y):"from ".concat(y," to ").concat(s)):(h==="point"?u.color=this.ingredients.colors.stroke:(u.color=this.ingredients.colors.fill,u.area=this._getArea(h,b)),u.pos=this._getPos.apply(this,m(c)),u.loc=i(c,this.width,this.height)),this.ingredients.shapes[h]){if(this.ingredients.shapes[h]!==[u]){for(var p in this.ingredients.shapes[h])JSON.stringify(this.ingredients.shapes[h][p])===JSON.stringify(u)&&(a=!1);a===!0&&this.ingredients.shapes[h].push(u)}}else this.ingredients.shapes[h]=[u]},d.default.prototype._getPos=function(s,y){var s=new DOMPointReadOnly(s,y),y=this._renderer.isP3D?new DOMMatrix(this._renderer.uMVMatrix.mat4):this.drawingContext.getTransform(),s=s.matrixTransform(y),y=s.x,s=s.y,u=this.width*this._pixelDensity,a=this.height*this._pixelDensity;return y<.4*u?s<.4*a?"top left":.6*aMath.PI?u+=s:u-=s)):h==="ellipse"||h==="circle"?u=3.14*b[2]/2*b[3]/2:h==="line"||h==="point"?u=0:h==="quadrilateral"?u=Math.abs((b[6]+b[0])*(b[7]-b[1])+(b[0]+b[2])*(b[1]-b[3])+(b[2]+b[4])*(b[3]-b[5])+(b[4]+b[6])*(b[5]-b[7]))/2:h==="rectangle"||h==="square"?u=b[2]*b[3]:h==="triangle"&&(u=Math.abs(b[0]*(b[3]-b[5])+b[2]*(b[5]-b[1])+b[4]*(b[1]-b[3]))/2),this.width*this._pixelDensity),c=this.height*this._pixelDensity,p=[new DOMPoint(0,0),new DOMPoint(a,0),new DOMPoint(a,c),new DOMPoint(0,c)],o=(this._renderer.isP3D?new DOMMatrix(this._renderer.uMVMatrix.mat4):this.drawingContext.getTransform()).inverse(),l=p.map(function(v){return v.matrixTransform(o)}),f=Math.abs((l[3].x+l[0].x)*(l[3].y-l[0].y)+(l[0].x+l[1].x)*(l[0].y-l[1].y)+(l[1].x+l[2].x)*(l[1].y-l[2].y)+(l[2].x+l[3].x)*(l[2].y-l[3].y))/2;return Math.round(100*u/f)},t=d.default,_.default=t},{"../core/main":280,"core-js/modules/es.array.concat":152,"core-js/modules/es.array.fill":155,"core-js/modules/es.array.from":161,"core-js/modules/es.array.iterator":164,"core-js/modules/es.array.map":167,"core-js/modules/es.number.to-fixed":180,"core-js/modules/es.object.to-string":187,"core-js/modules/es.regexp.to-string":193,"core-js/modules/es.string.iterator":197,"core-js/modules/es.symbol":209,"core-js/modules/es.symbol.description":207,"core-js/modules/es.symbol.iterator":208,"core-js/modules/web.dom-collections.iterator":243}],263:[function(t,w,_){t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.concat"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0,t=(t=t("../core/main"))&&t.__esModule?t:{default:t},t.default.prototype._updateTextOutput=function(d){var m,i,h,b;this.dummyDOM.querySelector("#".concat(d,"_summary"))&&(m=this._accessibleOutputs[d],h=function(y,s,u,a){return u="Your output is a, ".concat(u," by ").concat(a," pixels, ").concat(s," canvas containing the following"),u=y===1?"".concat(u," shape:"):"".concat(u," ").concat(y," shapes:"),u}((i=function(y,s){var u,a="",c=0;for(u in s)for(var p in s[u]){var o='
          • ').concat(s[u][p].color," ").concat(u,"");u==="line"?o+=", ".concat(s[u][p].pos,", ").concat(s[u][p].length," pixels long.
          • "):(o+=", at ".concat(s[u][p].pos),u!=="point"&&(o+=", covering ".concat(s[u][p].area,"% of the canvas")),o+="."),a+=o,c++}return{numShapes:c,listShapes:a}}(d,this.ingredients.shapes)).numShapes,this.ingredients.colors.background,this.width,this.height),b=function(y,s){var u,a="",c=0;for(u in s)for(var p in s[u]){var o='').concat(s[u][p].color," ").concat(u,"");u==="line"?o+="location = ".concat(s[u][p].pos,"length = ").concat(s[u][p].length," pixels"):(o+="location = ".concat(s[u][p].pos,""),u!=="point"&&(o+=" area = ".concat(s[u][p].area,"%")),o+=""),a+=o,c++}return a}(d,this.ingredients.shapes),h!==m.summary.innerHTML&&(m.summary.innerHTML=h),i.listShapes!==m.list.innerHTML&&(m.list.innerHTML=i.listShapes),b!==m.shapeDetails.innerHTML&&(m.shapeDetails.innerHTML=b),this._accessibleOutputs[d]=m)},t=t.default,_.default=t},{"../core/main":280,"core-js/modules/es.array.concat":152}],264:[function(t,w,_){var d=(d=t("./core/main"))&&d.__esModule?d:{default:d};t("./core/constants"),t("./core/environment"),t("./core/friendly_errors/stacktrace"),t("./core/friendly_errors/validate_params"),t("./core/friendly_errors/file_errors"),t("./core/friendly_errors/fes_core"),t("./core/friendly_errors/sketch_reader"),t("./core/helpers"),t("./core/legacy"),t("./core/preload"),t("./core/p5.Element"),t("./core/p5.Graphics"),t("./core/p5.Renderer"),t("./core/p5.Renderer2D"),t("./core/rendering"),t("./core/shim"),t("./core/structure"),t("./core/transform"),t("./core/shape/2d_primitives"),t("./core/shape/attributes"),t("./core/shape/curves"),t("./core/shape/vertex"),t("./accessibility/outputs"),t("./accessibility/textOutput"),t("./accessibility/gridOutput"),t("./accessibility/color_namer"),t("./color/color_conversion"),t("./color/creating_reading"),t("./color/p5.Color"),t("./color/setting"),t("./data/p5.TypedDict"),t("./data/local_storage.js"),t("./dom/dom"),t("./accessibility/describe"),t("./events/acceleration"),t("./events/keyboard"),t("./events/mouse"),t("./events/touch"),t("./image/filters"),t("./image/image"),t("./image/loading_displaying"),t("./image/p5.Image"),t("./image/pixels"),t("./io/files"),t("./io/p5.Table"),t("./io/p5.TableRow"),t("./io/p5.XML"),t("./math/calculation"),t("./math/math"),t("./math/noise"),t("./math/p5.Vector"),t("./math/random"),t("./math/trigonometry"),t("./typography/attributes"),t("./typography/loading_displaying"),t("./typography/p5.Font"),t("./utilities/array_functions"),t("./utilities/conversion"),t("./utilities/string_functions"),t("./utilities/time_date"),t("./webgl/3d_primitives"),t("./webgl/interaction"),t("./webgl/light"),t("./webgl/loading"),t("./webgl/material"),t("./webgl/p5.Camera"),t("./webgl/p5.DataArray"),t("./webgl/p5.Geometry"),t("./webgl/p5.Matrix"),t("./webgl/p5.RendererGL.Immediate"),t("./webgl/p5.RendererGL"),t("./webgl/p5.RendererGL.Retained"),t("./webgl/p5.Framebuffer"),t("./webgl/p5.Shader"),t("./webgl/p5.RenderBuffer"),t("./webgl/p5.Texture"),t("./webgl/text"),t("./core/init"),w.exports=d.default},{"./accessibility/color_namer":259,"./accessibility/describe":260,"./accessibility/gridOutput":261,"./accessibility/outputs":262,"./accessibility/textOutput":263,"./color/color_conversion":265,"./color/creating_reading":266,"./color/p5.Color":267,"./color/setting":268,"./core/constants":269,"./core/environment":270,"./core/friendly_errors/fes_core":271,"./core/friendly_errors/file_errors":272,"./core/friendly_errors/sketch_reader":273,"./core/friendly_errors/stacktrace":274,"./core/friendly_errors/validate_params":275,"./core/helpers":276,"./core/init":277,"./core/legacy":279,"./core/main":280,"./core/p5.Element":281,"./core/p5.Graphics":282,"./core/p5.Renderer":283,"./core/p5.Renderer2D":284,"./core/preload":285,"./core/rendering":286,"./core/shape/2d_primitives":287,"./core/shape/attributes":288,"./core/shape/curves":289,"./core/shape/vertex":290,"./core/shim":291,"./core/structure":292,"./core/transform":293,"./data/local_storage.js":294,"./data/p5.TypedDict":295,"./dom/dom":296,"./events/acceleration":297,"./events/keyboard":298,"./events/mouse":299,"./events/touch":300,"./image/filters":301,"./image/image":302,"./image/loading_displaying":303,"./image/p5.Image":304,"./image/pixels":305,"./io/files":306,"./io/p5.Table":307,"./io/p5.TableRow":308,"./io/p5.XML":309,"./math/calculation":310,"./math/math":311,"./math/noise":312,"./math/p5.Vector":313,"./math/random":314,"./math/trigonometry":315,"./typography/attributes":316,"./typography/loading_displaying":317,"./typography/p5.Font":318,"./utilities/array_functions":319,"./utilities/conversion":320,"./utilities/string_functions":321,"./utilities/time_date":322,"./webgl/3d_primitives":323,"./webgl/interaction":325,"./webgl/light":326,"./webgl/loading":327,"./webgl/material":328,"./webgl/p5.Camera":329,"./webgl/p5.DataArray":330,"./webgl/p5.Framebuffer":331,"./webgl/p5.Geometry":332,"./webgl/p5.Matrix":333,"./webgl/p5.RenderBuffer":334,"./webgl/p5.RendererGL":337,"./webgl/p5.RendererGL.Immediate":335,"./webgl/p5.RendererGL.Retained":336,"./webgl/p5.Shader":338,"./webgl/p5.Texture":339,"./webgl/text":340}],265:[function(t,w,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0,t=(t=t("../core/main"))&&t.__esModule?t:{default:t},t.default.ColorConversion={_hsbaToHSLA:function(d){var m=d[0],i=d[1],h=d[2],b=(2-i)*h/2;return b!=0&&(b==1?i=0:b<.5?i/=2-i:i=i*h/(2-2*b)),[m,i,b,d[3]]},_hsbaToRGBA:function(d){var m,i,h,b,y,s=6*d[0],u=d[1],a=d[2];return u===0?[a,a,a,d[3]]:(i=a*(1-u),h=a*(1-u*(s-(m=Math.floor(s)))),u=a*(1-u*(1+m-s)),s=m===1?(b=h,y=a,i):m===2?(b=i,y=a,u):m===3?(b=i,y=h,a):m===4?(b=u,y=i,a):m===5?(b=a,y=i,h):(b=a,y=u,i),[b,y,s,d[3]])},_hslaToHSBA:function(d){var m=d[0],i=d[1],h=d[2],b=h<.5?(1+i)*h:h+i-h*i;return[m,i=2*(b-h)/b,b,d[3]]},_hslaToRGBA:function(d){var m,i=6*d[0],h=d[1],b=d[2];return h===0?[b,b,b,d[3]]:[(m=function(y,s,u){return y<0?y+=6:6<=y&&(y-=6),y<1?s+(u-s)*y:y<3?u:y<4?s+(u-s)*(4-y):s})(2+i,h=2*b-(b=b<.5?(1+h)*b:b+h-b*h),b),m(i,h,b),m(i-2,h,b),d[3]]},_rgbaToHSBA:function(d){var m,i,h=d[0],b=d[1],y=d[2],s=Math.max(h,b,y),u=s-Math.min(h,b,y);return u==0?i=m=0:(i=u/s,h===s?m=(b-y)/u:b===s?m=2+(y-h)/u:y===s&&(m=4+(h-b)/u),m<0?m+=6:6<=m&&(m-=6)),[m/6,i,s,d[3]]},_rgbaToHSLA:function(d){var m,i,h=d[0],b=d[1],y=d[2],s=Math.max(h,b,y),a=Math.min(h,b,y),u=s+a,a=s-a;return a==0?i=m=0:(i=u<1?a/u:a/(2-u),h===s?m=(b-y)/a:b===s?m=2+(y-h)/a:y===s&&(m=4+(h-b)/a),m<0?m+=6:6<=m&&(m-=6)),[m/6,i,u/2,d[3]]}},t=t.default.ColorConversion,_.default=t},{"../core/main":280}],266:[function(t,w,_){function d(s){return(d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u})(s)}function m(s){return(m=typeof Symbol=="function"&&d(Symbol.iterator)==="symbol"?function(u){return d(u)}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":d(u)})(s)}t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.map"),t("core-js/modules/es.object.get-own-property-descriptor"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.weak-map"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.array.map"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var i=(y=t("../core/main"))&&y.__esModule?y:{default:y},h=function(s){if(s&&s.__esModule)return s;if(s===null||m(s)!=="object"&&typeof s!="function")return{default:s};var u=b();if(u&&u.has(s))return u.get(s);var a,c={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(a in s){var o;Object.prototype.hasOwnProperty.call(s,a)&&((o=p?Object.getOwnPropertyDescriptor(s,a):null)&&(o.get||o.set)?Object.defineProperty(c,a,o):c[a]=s[a])}return c.default=s,u&&u.set(s,c),c}(t("../core/constants"));function b(){var s;return typeof WeakMap!="function"?null:(s=new WeakMap,b=function(){return s},s)}t("./p5.Color"),t("../core/friendly_errors/validate_params"),t("../core/friendly_errors/file_errors"),t("../core/friendly_errors/fes_core"),i.default.prototype.alpha=function(s){return i.default._validateParameters("alpha",arguments),this.color(s)._getAlpha()},i.default.prototype.blue=function(s){return i.default._validateParameters("blue",arguments),this.color(s)._getBlue()},i.default.prototype.brightness=function(s){return i.default._validateParameters("brightness",arguments),this.color(s)._getBrightness()},i.default.prototype.color=function(){for(var s,u=arguments.length,a=new Array(u),c=0;co[0]?o[0]+=1:p[0]+=1),1<=(c=this.lerp(p[0],o[0],a))&&--c),s=this.lerp(p[1],o[1],a),u=this.lerp(p[2],o[2],a),p=this.lerp(p[3],o[3],a),c*=f[l][0],s*=f[l][1],u*=f[l][2],p*=f[l][3],this.color(c,s,u,p)},i.default.prototype.lightness=function(s){return i.default._validateParameters("lightness",arguments),this.color(s)._getLightness()},i.default.prototype.red=function(s){return i.default._validateParameters("red",arguments),this.color(s)._getRed()},i.default.prototype.saturation=function(s){return i.default._validateParameters("saturation",arguments),this.color(s)._getSaturation()};var y=i.default;_.default=y},{"../core/constants":269,"../core/friendly_errors/fes_core":271,"../core/friendly_errors/file_errors":272,"../core/friendly_errors/validate_params":275,"../core/main":280,"./p5.Color":267,"core-js/modules/es.array.iterator":164,"core-js/modules/es.array.map":167,"core-js/modules/es.object.get-own-property-descriptor":183,"core-js/modules/es.object.to-string":187,"core-js/modules/es.string.iterator":197,"core-js/modules/es.symbol":209,"core-js/modules/es.symbol.description":207,"core-js/modules/es.symbol.iterator":208,"core-js/modules/es.weak-map":241,"core-js/modules/web.dom-collections.iterator":243}],267:[function(c,w,_){function d(v){return(d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S})(v)}function m(v){return(m=typeof Symbol=="function"&&d(Symbol.iterator)==="symbol"?function(S){return d(S)}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":d(S)})(v)}c("core-js/modules/es.symbol"),c("core-js/modules/es.symbol.description"),c("core-js/modules/es.symbol.iterator"),c("core-js/modules/es.array.includes"),c("core-js/modules/es.array.iterator"),c("core-js/modules/es.array.join"),c("core-js/modules/es.array.map"),c("core-js/modules/es.array.slice"),c("core-js/modules/es.object.get-own-property-descriptor"),c("core-js/modules/es.object.to-string"),c("core-js/modules/es.regexp.constructor"),c("core-js/modules/es.regexp.exec"),c("core-js/modules/es.regexp.to-string"),c("core-js/modules/es.string.includes"),c("core-js/modules/es.string.iterator"),c("core-js/modules/es.string.trim"),c("core-js/modules/es.weak-map"),c("core-js/modules/web.dom-collections.iterator"),c("core-js/modules/es.array.includes"),c("core-js/modules/es.array.join"),c("core-js/modules/es.array.map"),c("core-js/modules/es.array.slice"),c("core-js/modules/es.object.to-string"),c("core-js/modules/es.regexp.constructor"),c("core-js/modules/es.regexp.exec"),c("core-js/modules/es.regexp.to-string"),c("core-js/modules/es.string.includes"),c("core-js/modules/es.string.trim"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var i=s(c("../core/main")),h=function(v){if(v&&v.__esModule)return v;if(v===null||m(v)!=="object"&&typeof v!="function")return{default:v};var S=y();if(S&&S.has(v))return S.get(v);var O,k={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(O in v){var P;Object.prototype.hasOwnProperty.call(v,O)&&((P=T?Object.getOwnPropertyDescriptor(v,O):null)&&(P.get||P.set)?Object.defineProperty(k,O,P):k[O]=v[O])}return k.default=v,S&&S.set(v,k),k}(c("../core/constants")),b=s(c("./color_conversion"));function y(){var v;return typeof WeakMap!="function"?null:(v=new WeakMap,y=function(){return v},v)}function s(v){return v&&v.__esModule?v:{default:v}}function u(v,S){for(var O=0;O"].indexOf(u[0])?void 0:u[0],lineNumber:u[1],columnNumber:u[2],source:y}},this)},parseFFOrSafari:function(b){return b.stack.split(` `).filter(function(y){return!y.match(h)},this).map(function(y){var s,u;return(y=-1 eval")?y.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1"):y).indexOf("@")===-1&&y.indexOf(":")===-1?{functionName:y}:{functionName:(u=y.match(s=/((.*".+"[^@]*)?[^@]*)(?:@)/))&&u[1]?u[1]:void 0,fileName:(u=this.extractLocation(y.replace(s,"")))[0],lineNumber:u[1],columnNumber:u[2],source:y}},this)},parseOpera:function(b){return!b.stacktrace||-1b.stacktrace.split(` `).length?this.parseOpera9(b):b.stack?this.parseOpera11(b):this.parseOpera10(b)},parseOpera9:function(b){for(var y=/Line (\d+).*script (?:in )?(\S+)/i,s=b.message.split(` -`),u=[],l=2,d=s.length;l/,"$2").replace(/\([^)]*\)/g,"")||void 0,args:(s=l.match(/\(([^)]*)\)/)?l.replace(/^[^(]+\(([^)]*)\)$/,"$1"):s)===void 0||s==="[arguments not available]"?void 0:s.split(","),fileName:u[0],lineNumber:u[1],columnNumber:u[2],source:y}},this)}}}t.default._getErrorStackParser=function(){return new c},t=t.default,_.default=t},{"../main":280,"core-js/modules/es.array.filter":156,"core-js/modules/es.array.index-of":163,"core-js/modules/es.array.join":165,"core-js/modules/es.array.map":167,"core-js/modules/es.array.slice":168,"core-js/modules/es.regexp.exec":192,"core-js/modules/es.string.match":198,"core-js/modules/es.string.replace":201,"core-js/modules/es.string.split":203}],275:[function(t,w,_){function c(b){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y})(b)}t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.for-each"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.index-of"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.last-index-of"),t("core-js/modules/es.array.map"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.function.name"),t("core-js/modules/es.map"),t("core-js/modules/es.number.constructor"),t("core-js/modules/es.object.get-own-property-descriptor"),t("core-js/modules/es.object.get-prototype-of"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.reflect.construct"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.set"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.split"),t("core-js/modules/es.weak-map"),t("core-js/modules/web.dom-collections.for-each"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.for-each"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.last-index-of"),t("core-js/modules/es.array.map"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.function.name"),t("core-js/modules/es.number.constructor"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.set"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.split"),t("core-js/modules/web.dom-collections.for-each"),t("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var m=(m=t("../main"))&&m.__esModule?m:{default:m};(function(b){if(!(b&&b.__esModule)&&!(b===null||h(b)!=="object"&&typeof b!="function")){var y=i();if(y&&y.has(b))return y.get(b);var s,u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(s in b){var d;Object.prototype.hasOwnProperty.call(b,s)&&((d=l?Object.getOwnPropertyDescriptor(b,s):null)&&(d.get||d.set)?Object.defineProperty(u,s,d):u[s]=b[s])}u.default=b,y&&y.set(b,u)}})(t("../constants")),t("../internationalization");function i(){var b;return typeof WeakMap!="function"?null:(b=new WeakMap,i=function(){return b},b)}function h(b){return(h=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(y){return c(y)}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":c(y)})(b)}m.default._validateParameters=m.default._clearValidateParamsCache=function(){},t=m.default,_.default=t},{"../../../docs/parameterData.json":void 0,"../constants":269,"../internationalization":278,"../main":280,"core-js/modules/es.array.concat":152,"core-js/modules/es.array.for-each":160,"core-js/modules/es.array.includes":162,"core-js/modules/es.array.index-of":163,"core-js/modules/es.array.iterator":164,"core-js/modules/es.array.join":165,"core-js/modules/es.array.last-index-of":166,"core-js/modules/es.array.map":167,"core-js/modules/es.array.slice":168,"core-js/modules/es.function.name":173,"core-js/modules/es.map":174,"core-js/modules/es.number.constructor":178,"core-js/modules/es.object.get-own-property-descriptor":183,"core-js/modules/es.object.get-prototype-of":185,"core-js/modules/es.object.keys":186,"core-js/modules/es.object.to-string":187,"core-js/modules/es.reflect.construct":189,"core-js/modules/es.regexp.exec":192,"core-js/modules/es.regexp.to-string":193,"core-js/modules/es.set":194,"core-js/modules/es.string.includes":196,"core-js/modules/es.string.iterator":197,"core-js/modules/es.string.split":203,"core-js/modules/es.symbol":209,"core-js/modules/es.symbol.description":207,"core-js/modules/es.symbol.iterator":208,"core-js/modules/es.weak-map":241,"core-js/modules/web.dom-collections.for-each":242,"core-js/modules/web.dom-collections.iterator":243}],276:[function(t,w,_){function c(b){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y})(b)}function m(b){return(m=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(y){return c(y)}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":c(y)})(b)}t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.object.get-own-property-descriptor"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.weak-map"),t("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var i=function(b){if(b&&b.__esModule)return b;if(b===null||m(b)!=="object"&&typeof b!="function")return{default:b};var y=h();if(y&&y.has(b))return y.get(b);var s,u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(s in b){var d;Object.prototype.hasOwnProperty.call(b,s)&&((d=l?Object.getOwnPropertyDescriptor(b,s):null)&&(d.get||d.set)?Object.defineProperty(u,s,d):u[s]=b[s])}return u.default=b,y&&y.set(b,u),u}(t("./constants"));function h(){var b;return typeof WeakMap!="function"?null:(b=new WeakMap,h=function(){return b},b)}_.default={modeAdjust:function(b,y,s,u,l){return l===i.CORNER?{x:b,y,w:s,h:u}:l===i.CORNERS?{x:b,y,w:s-b,h:u-y}:l===i.RADIUS?{x:b-s,y:y-u,w:2*s,h:2*u}:l===i.CENTER?{x:b-.5*s,y:y-.5*u,w:s,h:u}:void 0}}},{"./constants":269,"core-js/modules/es.array.iterator":164,"core-js/modules/es.object.get-own-property-descriptor":183,"core-js/modules/es.object.to-string":187,"core-js/modules/es.string.iterator":197,"core-js/modules/es.symbol":209,"core-js/modules/es.symbol.description":207,"core-js/modules/es.symbol.iterator":208,"core-js/modules/es.weak-map":241,"core-js/modules/web.dom-collections.iterator":243}],277:[function(t,w,_){t("core-js/modules/es.array.iterator"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.promise"),t("core-js/modules/es.string.iterator"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.promise"),t("core-js/modules/es.string.iterator"),t("core-js/modules/web.dom-collections.iterator");var c=(m=t("../core/main"))&&m.__esModule?m:{default:m};t("./internationalization");var m=Promise.resolve();Promise.all([new Promise(function(i,h){document.readyState==="complete"?i():window.addEventListener("load",i,!1)}),m]).then(function(){window._setupDone!==void 0?console.warn("p5.js seems to have been imported multiple times. Please remove the duplicate import"):window.mocha||(window.setup&&typeof window.setup=="function"||window.draw&&typeof window.draw=="function")&&!c.default.instance&&new c.default})},{"../core/main":280,"./internationalization":278,"core-js/modules/es.array.iterator":164,"core-js/modules/es.object.to-string":187,"core-js/modules/es.promise":188,"core-js/modules/es.string.iterator":197,"core-js/modules/web.dom-collections.iterator":243}],278:[function(t,w,_){t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.promise"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.split"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.promise"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.split"),t("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(_,"__esModule",{value:!0}),_.setTranslatorLanguage=_.currentTranslatorLanguage=_.availableTranslatorLanguages=_.initialize=_.translator=void 0;var c,m,i=b(t("i18next")),h=b(t("i18next-browser-languagedetector"));function b(u){return u&&u.__esModule?u:{default:u}}function y(u,l){for(var d=0;d=D.width||k>=D.height?[0,0,0,0]:this._getPixel(O,k);return R=new m.default.Image(T*M,P*M),R.pixelDensity(M),R.canvas.getContext("2d").drawImage(D,O,k,T*M,P*M,0,0,T*M,P*M),R}},{key:"textLeading",value:function(O){return typeof O=="number"?(this._setProperty("_leadingSet",!0),this._setProperty("_textLeading",O),this._pInst):this._textLeading}},{key:"textStyle",value:function(O){return O?(O!==i.NORMAL&&O!==i.ITALIC&&O!==i.BOLD&&O!==i.BOLDITALIC||this._setProperty("_textStyle",O),this._applyTextProperties()):this._textStyle}},{key:"textAscent",value:function(){return this._textAscent===null&&this._updateTextMetrics(),this._textAscent}},{key:"textDescent",value:function(){return this._textDescent===null&&this._updateTextMetrics(),this._textDescent}},{key:"textAlign",value:function(O,k){return O!==void 0?(this._setProperty("_textAlign",O),k!==void 0&&this._setProperty("_textBaseline",k),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}}},{key:"textWrap",value:function(O){return this._setProperty("_textWrap",O),this._textWrap}},{key:"text",value:function(O,k,T,P,R){var M,D,A,N,F=this._pInst,G=this._textWrap,X=Number.MAX_VALUE,V=T;if((this._doFill||this._doStroke)&&O!==void 0){if(M=(O=(O=typeof O!="string"?O.toString():O).replace(/(\t)/g," ")).split(` -`),P!==void 0){switch(this._rectMode===i.CENTER&&(k-=P/2),this._textAlign){case i.CENTER:k+=P/2;break;case i.RIGHT:k+=P}if(R!==void 0){this._rectMode===i.CENTER&&(T-=R/2,V-=R/2);var O=T,z=F.textAscent();switch(this._textBaseline){case i.BOTTOM:N=T+R,T=Math.max(N,T),V+=z;break;case i.CENTER:N=T+R/2,T=Math.max(N,T),V+=z/2}X=T+R-z,this._textBaseline===i.CENTER&&(X=O+R-z/2)}else this._textBaseline!==i.BOTTOM&&this._textBaseline!==i.CENTER||(V=T-(O=F.textSize()*this._textLeading)/2,X=T+O/2);if(G===i.WORD){for(var Y=[],Q=0;Qh.HALF_PI&&l<=3*h.HALF_PI?Math.atan(p/o*Math.tan(l))+h.PI:Math.atan(p/o*Math.tan(l))+h.TWO_PI,d=d<=h.HALF_PI?Math.atan(p/o*Math.tan(d)):d>h.HALF_PI&&d<=3*h.HALF_PI?Math.atan(p/o*Math.tan(d))+h.PI:Math.atan(p/o*Math.tan(d))+h.TWO_PI),du||Math.abs(this.accelerationY-this.pAccelerationY)>u||Math.abs(this.accelerationZ-this.pAccelerationZ)>u)&&S.deviceMoved(),typeof S.deviceTurned=="function"&&(o=this._toDegrees(this.rotationX)+180,a=this._toDegrees(this.pRotationX)+180,p=m+180,0>>16,y[1+u]=(65280&s[l])>>>8,y[2+u]=255&s[l],y[3+u]=(4278190080&s[l])>>>24},_toImageData:function(y){return y instanceof ImageData?y:y.getContext("2d").getImageData(0,0,y.width,y.height)},_createImageData:function(y,s){return b._tmpCanvas=document.createElement("canvas"),b._tmpCtx=b._tmpCanvas.getContext("2d"),this._tmpCtx.createImageData(y,s)},apply:function(y,p,u){var l=y.getContext("2d"),d=l.getImageData(0,0,y.width,y.height),p=p(d,u);p instanceof ImageData?l.putImageData(p,0,0,0,0,y.width,y.height):l.putImageData(d,0,0,0,0,y.width,y.height)},threshold:function(y){for(var s=1>8)/l,u[d+1]=255*(o*s>>8)/l,u[d+2]=255*(a*s>>8)/l}},dilate:function(y){for(var s,u,l,d,p,o,a,f,v,S=b._toPixels(y),O=0,k=S.length?S.length/4:0,T=new Int32Array(k);O>16&255)+151*(d>>8&255)+28*(255&d))<(a=77*(v>>16&255)+151*(v>>8&255)+28*(255&v))&&(l=v,d=a),d<(a=77*((v=b._getARGB(S,f))>>16&255)+151*(v>>8&255)+28*(255&v))&&(l=v,d=a),d<(f=77*(p>>16&255)+151*(p>>8&255)+28*(255&p))&&(l=p,d=f),d<(v=77*(o>>16&255)+151*(o>>8&255)+28*(255&o))&&(l=o,d=v),T[O++]=l;b._setPixels(S,T)},erode:function(y){for(var s,u,l,d,p,o,a,f,v,S=b._toPixels(y),O=0,k=S.length?S.length/4:0,T=new Int32Array(k);O>16&255)+151*(v>>8&255)+28*(255&v))<(d=77*(d>>16&255)+151*(d>>8&255)+28*(255&d))&&(l=v,d=a),(a=77*((v=b._getARGB(S,f))>>16&255)+151*(v>>8&255)+28*(255&v))>16&255)+151*(p>>8&255)+28*(255&p))>16&255)+151*(o>>8&255)+28*(255&o))>>24],l+=G[(16711680&fe)>>16],d+=G[(65280&fe)>>8],p+=G[255&fe],u+=i[F],a++}Q[f=B+A]=o/u,oe[f]=l/u,E[f]=d/u,I[f]=p/u}B+=T}for(S=(v=-c)*T,N=B=0;N"+V.length.toString()+" out of "+N.toString()),ee.next=48,new Promise(function(ue){return setTimeout(ue,0)});ee.next=50;break;case 48:ee.next=39;break;case 50:R||z.html("Frames processed, generating color palette..."),this.loop(),this.pixelDensity(X),oe=(0,s.GIFEncoder)(),E=function(ue){for(var me=new Uint8Array(ue.length*ue[0].length),je=0;je"+te.toString()+" out of "+N.toString()),ee.next=68,new Promise(function(ue){return setTimeout(ue,0)});case 68:te++,ee.next=60;break;case 71:oe.finish(),fe=oe.bytesView(),fe=new Blob([fe],{type:"image/gif"}),V=[],this._recording=!1,this.loop(),R||(z.html("Done. Downloading your gif!🌸"),0=l&&(l=Math.floor(d.timeDisplayed/l),d.timeDisplayed=0,d.lastChangeTime=p,d.displayIndex+=l,d.loopCount=Math.floor(d.displayIndex/d.numFrames),d.loopLimit!==null&&d.loopCount>=d.loopLimit?d.playing=!1:(p=d.displayIndex%d.numFrames,this.drawingContext.putImageData(d.frames[p].image,0,0),d.displayIndex=p,this.setModified(!0))))}},{key:"_setProperty",value:function(u,l){this[u]=l,this.setModified(!0)}},{key:"loadPixels",value:function(){c.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)}},{key:"updatePixels",value:function(u,l,d,p){c.default.Renderer2D.prototype.updatePixels.call(this,u,l,d,p),this.setModified(!0)}},{key:"get",value:function(u,l,d,p){return c.default._validateParameters("p5.Image.get",arguments),c.default.Renderer2D.prototype.get.apply(this,arguments)}},{key:"_getPixel",value:function(){for(var u=arguments.length,l=new Array(u),d=0;d/g,">").replace(/"/g,""").replace(/'/g,"'")}function u(l,d){d&&d!==!0&&d!=="true"||(d="");var p="";return(l=l||"untitled")&&l.includes(".")&&(p=l.split(".").pop()),d&&p!==d&&(p=d,l="".concat(l,".").concat(p)),[l,p]}t("../core/friendly_errors/validate_params"),t("../core/friendly_errors/file_errors"),t("../core/friendly_errors/fes_core"),m.default.prototype.loadJSON=function(){for(var l=arguments.length,d=new Array(l),p=0;p"),a.print(""),a.print(' '),a.print(""),a.print(""),a.print(" "),f[0]!=="0"){a.print(" ");for(var T=0;T".concat(P)),a.print(" ")}a.print(" ")}for(var R=0;R");for(var M=0;M".concat(D)),a.print(" ")}a.print(" ")}a.print("
            "),a.print(""),a.print("")}a.close(),a.clear()},m.default.prototype.writeFile=function(a,d,p){var o="application/octet-stream",a=(m.default.prototype._isSafari()&&(o="text/plain"),new Blob(a,{type:o}));m.default.prototype.downloadFile(a,d,p)},m.default.prototype.downloadFile=function(l,a,f){var o,a=u(a,f),f=a[0];l instanceof Blob?h.default.saveAs(l,f):((o=document.createElement("a")).href=l,o.download=f,o.onclick=function(v){document.body.removeChild(v.target),v.stopPropagation()},o.style.display="none",document.body.appendChild(o),m.default.prototype._isSafari()&&(l=(l=`Hello, Safari user! To download this file... +`),u=[],a=2,c=s.length;a/,"$2").replace(/\([^)]*\)/g,"")||void 0,args:(s=a.match(/\(([^)]*)\)/)?a.replace(/^[^(]+\(([^)]*)\)$/,"$1"):s)===void 0||s==="[arguments not available]"?void 0:s.split(","),fileName:u[0],lineNumber:u[1],columnNumber:u[2],source:y}},this)}}}t.default._getErrorStackParser=function(){return new d},t=t.default,_.default=t},{"../main":280,"core-js/modules/es.array.filter":156,"core-js/modules/es.array.index-of":163,"core-js/modules/es.array.join":165,"core-js/modules/es.array.map":167,"core-js/modules/es.array.slice":168,"core-js/modules/es.regexp.exec":192,"core-js/modules/es.string.match":198,"core-js/modules/es.string.replace":201,"core-js/modules/es.string.split":203}],275:[function(t,w,_){function d(b){return(d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y})(b)}t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.for-each"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.index-of"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.last-index-of"),t("core-js/modules/es.array.map"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.function.name"),t("core-js/modules/es.map"),t("core-js/modules/es.number.constructor"),t("core-js/modules/es.object.get-own-property-descriptor"),t("core-js/modules/es.object.get-prototype-of"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.reflect.construct"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.set"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.split"),t("core-js/modules/es.weak-map"),t("core-js/modules/web.dom-collections.for-each"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.for-each"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.last-index-of"),t("core-js/modules/es.array.map"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.function.name"),t("core-js/modules/es.number.constructor"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.set"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.split"),t("core-js/modules/web.dom-collections.for-each"),t("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var m=(m=t("../main"))&&m.__esModule?m:{default:m};(function(b){if(!(b&&b.__esModule)&&!(b===null||h(b)!=="object"&&typeof b!="function")){var y=i();if(y&&y.has(b))return y.get(b);var s,u={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(s in b){var c;Object.prototype.hasOwnProperty.call(b,s)&&((c=a?Object.getOwnPropertyDescriptor(b,s):null)&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=b[s])}u.default=b,y&&y.set(b,u)}})(t("../constants")),t("../internationalization");function i(){var b;return typeof WeakMap!="function"?null:(b=new WeakMap,i=function(){return b},b)}function h(b){return(h=typeof Symbol=="function"&&d(Symbol.iterator)==="symbol"?function(y){return d(y)}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":d(y)})(b)}m.default._validateParameters=m.default._clearValidateParamsCache=function(){},t=m.default,_.default=t},{"../../../docs/parameterData.json":void 0,"../constants":269,"../internationalization":278,"../main":280,"core-js/modules/es.array.concat":152,"core-js/modules/es.array.for-each":160,"core-js/modules/es.array.includes":162,"core-js/modules/es.array.index-of":163,"core-js/modules/es.array.iterator":164,"core-js/modules/es.array.join":165,"core-js/modules/es.array.last-index-of":166,"core-js/modules/es.array.map":167,"core-js/modules/es.array.slice":168,"core-js/modules/es.function.name":173,"core-js/modules/es.map":174,"core-js/modules/es.number.constructor":178,"core-js/modules/es.object.get-own-property-descriptor":183,"core-js/modules/es.object.get-prototype-of":185,"core-js/modules/es.object.keys":186,"core-js/modules/es.object.to-string":187,"core-js/modules/es.reflect.construct":189,"core-js/modules/es.regexp.exec":192,"core-js/modules/es.regexp.to-string":193,"core-js/modules/es.set":194,"core-js/modules/es.string.includes":196,"core-js/modules/es.string.iterator":197,"core-js/modules/es.string.split":203,"core-js/modules/es.symbol":209,"core-js/modules/es.symbol.description":207,"core-js/modules/es.symbol.iterator":208,"core-js/modules/es.weak-map":241,"core-js/modules/web.dom-collections.for-each":242,"core-js/modules/web.dom-collections.iterator":243}],276:[function(t,w,_){function d(b){return(d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y})(b)}function m(b){return(m=typeof Symbol=="function"&&d(Symbol.iterator)==="symbol"?function(y){return d(y)}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":d(y)})(b)}t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.object.get-own-property-descriptor"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.weak-map"),t("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var i=function(b){if(b&&b.__esModule)return b;if(b===null||m(b)!=="object"&&typeof b!="function")return{default:b};var y=h();if(y&&y.has(b))return y.get(b);var s,u={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(s in b){var c;Object.prototype.hasOwnProperty.call(b,s)&&((c=a?Object.getOwnPropertyDescriptor(b,s):null)&&(c.get||c.set)?Object.defineProperty(u,s,c):u[s]=b[s])}return u.default=b,y&&y.set(b,u),u}(t("./constants"));function h(){var b;return typeof WeakMap!="function"?null:(b=new WeakMap,h=function(){return b},b)}_.default={modeAdjust:function(b,y,s,u,a){return a===i.CORNER?{x:b,y,w:s,h:u}:a===i.CORNERS?{x:b,y,w:s-b,h:u-y}:a===i.RADIUS?{x:b-s,y:y-u,w:2*s,h:2*u}:a===i.CENTER?{x:b-.5*s,y:y-.5*u,w:s,h:u}:void 0}}},{"./constants":269,"core-js/modules/es.array.iterator":164,"core-js/modules/es.object.get-own-property-descriptor":183,"core-js/modules/es.object.to-string":187,"core-js/modules/es.string.iterator":197,"core-js/modules/es.symbol":209,"core-js/modules/es.symbol.description":207,"core-js/modules/es.symbol.iterator":208,"core-js/modules/es.weak-map":241,"core-js/modules/web.dom-collections.iterator":243}],277:[function(t,w,_){t("core-js/modules/es.array.iterator"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.promise"),t("core-js/modules/es.string.iterator"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.promise"),t("core-js/modules/es.string.iterator"),t("core-js/modules/web.dom-collections.iterator");var d=(m=t("../core/main"))&&m.__esModule?m:{default:m};t("./internationalization");var m=Promise.resolve();Promise.all([new Promise(function(i,h){document.readyState==="complete"?i():window.addEventListener("load",i,!1)}),m]).then(function(){window._setupDone!==void 0?console.warn("p5.js seems to have been imported multiple times. Please remove the duplicate import"):window.mocha||(window.setup&&typeof window.setup=="function"||window.draw&&typeof window.draw=="function")&&!d.default.instance&&new d.default})},{"../core/main":280,"./internationalization":278,"core-js/modules/es.array.iterator":164,"core-js/modules/es.object.to-string":187,"core-js/modules/es.promise":188,"core-js/modules/es.string.iterator":197,"core-js/modules/web.dom-collections.iterator":243}],278:[function(t,w,_){t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.promise"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.split"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.promise"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.split"),t("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(_,"__esModule",{value:!0}),_.setTranslatorLanguage=_.currentTranslatorLanguage=_.availableTranslatorLanguages=_.initialize=_.translator=void 0;var d,m,i=b(t("i18next")),h=b(t("i18next-browser-languagedetector"));function b(u){return u&&u.__esModule?u:{default:u}}function y(u,a){for(var c=0;c=D.width||k>=D.height?[0,0,0,0]:this._getPixel(O,k);return R=new m.default.Image(T*M,P*M),R.pixelDensity(M),R.canvas.getContext("2d").drawImage(D,O,k,T*M,P*M,0,0,T*M,P*M),R}},{key:"textLeading",value:function(O){return typeof O=="number"?(this._setProperty("_leadingSet",!0),this._setProperty("_textLeading",O),this._pInst):this._textLeading}},{key:"textStyle",value:function(O){return O?(O!==i.NORMAL&&O!==i.ITALIC&&O!==i.BOLD&&O!==i.BOLDITALIC||this._setProperty("_textStyle",O),this._applyTextProperties()):this._textStyle}},{key:"textAscent",value:function(){return this._textAscent===null&&this._updateTextMetrics(),this._textAscent}},{key:"textDescent",value:function(){return this._textDescent===null&&this._updateTextMetrics(),this._textDescent}},{key:"textAlign",value:function(O,k){return O!==void 0?(this._setProperty("_textAlign",O),k!==void 0&&this._setProperty("_textBaseline",k),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}}},{key:"textWrap",value:function(O){return this._setProperty("_textWrap",O),this._textWrap}},{key:"text",value:function(O,k,T,P,R){var M,D,A,N,F=this._pInst,G=this._textWrap,q=Number.MAX_VALUE,V=T;if((this._doFill||this._doStroke)&&O!==void 0){if(M=(O=(O=typeof O!="string"?O.toString():O).replace(/(\t)/g," ")).split(` +`),P!==void 0){switch(this._rectMode===i.CENTER&&(k-=P/2),this._textAlign){case i.CENTER:k+=P/2;break;case i.RIGHT:k+=P}if(R!==void 0){this._rectMode===i.CENTER&&(T-=R/2,V-=R/2);var O=T,z=F.textAscent();switch(this._textBaseline){case i.BOTTOM:N=T+R,T=Math.max(N,T),V+=z;break;case i.CENTER:N=T+R/2,T=Math.max(N,T),V+=z/2}q=T+R-z,this._textBaseline===i.CENTER&&(q=O+R-z/2)}else this._textBaseline!==i.BOTTOM&&this._textBaseline!==i.CENTER||(V=T-(O=F.textSize()*this._textLeading)/2,q=T+O/2);if(G===i.WORD){for(var X=[],Q=0;Qh.HALF_PI&&a<=3*h.HALF_PI?Math.atan(p/o*Math.tan(a))+h.PI:Math.atan(p/o*Math.tan(a))+h.TWO_PI,c=c<=h.HALF_PI?Math.atan(p/o*Math.tan(c)):c>h.HALF_PI&&c<=3*h.HALF_PI?Math.atan(p/o*Math.tan(c))+h.PI:Math.atan(p/o*Math.tan(c))+h.TWO_PI),cu||Math.abs(this.accelerationY-this.pAccelerationY)>u||Math.abs(this.accelerationZ-this.pAccelerationZ)>u)&&S.deviceMoved(),typeof S.deviceTurned=="function"&&(o=this._toDegrees(this.rotationX)+180,l=this._toDegrees(this.pRotationX)+180,p=m+180,0>>16,y[1+u]=(65280&s[a])>>>8,y[2+u]=255&s[a],y[3+u]=(4278190080&s[a])>>>24},_toImageData:function(y){return y instanceof ImageData?y:y.getContext("2d").getImageData(0,0,y.width,y.height)},_createImageData:function(y,s){return b._tmpCanvas=document.createElement("canvas"),b._tmpCtx=b._tmpCanvas.getContext("2d"),this._tmpCtx.createImageData(y,s)},apply:function(y,p,u){var a=y.getContext("2d"),c=a.getImageData(0,0,y.width,y.height),p=p(c,u);p instanceof ImageData?a.putImageData(p,0,0,0,0,y.width,y.height):a.putImageData(c,0,0,0,0,y.width,y.height)},threshold:function(y){for(var s=1>8)/a,u[c+1]=255*(o*s>>8)/a,u[c+2]=255*(l*s>>8)/a}},dilate:function(y){for(var s,u,a,c,p,o,l,f,v,S=b._toPixels(y),O=0,k=S.length?S.length/4:0,T=new Int32Array(k);O>16&255)+151*(c>>8&255)+28*(255&c))<(l=77*(v>>16&255)+151*(v>>8&255)+28*(255&v))&&(a=v,c=l),c<(l=77*((v=b._getARGB(S,f))>>16&255)+151*(v>>8&255)+28*(255&v))&&(a=v,c=l),c<(f=77*(p>>16&255)+151*(p>>8&255)+28*(255&p))&&(a=p,c=f),c<(v=77*(o>>16&255)+151*(o>>8&255)+28*(255&o))&&(a=o,c=v),T[O++]=a;b._setPixels(S,T)},erode:function(y){for(var s,u,a,c,p,o,l,f,v,S=b._toPixels(y),O=0,k=S.length?S.length/4:0,T=new Int32Array(k);O>16&255)+151*(v>>8&255)+28*(255&v))<(c=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(a=v,c=l),(l=77*((v=b._getARGB(S,f))>>16&255)+151*(v>>8&255)+28*(255&v))>16&255)+151*(p>>8&255)+28*(255&p))>16&255)+151*(o>>8&255)+28*(255&o))>>24],a+=G[(16711680&de)>>16],c+=G[(65280&de)>>8],p+=G[255&de],u+=i[F],l++}Q[f=B+A]=o/u,oe[f]=a/u,E[f]=c/u,I[f]=p/u}B+=T}for(S=(v=-d)*T,N=B=0;N"+V.length.toString()+" out of "+N.toString()),ee.next=48,new Promise(function(ue){return setTimeout(ue,0)});ee.next=50;break;case 48:ee.next=39;break;case 50:R||z.html("Frames processed, generating color palette..."),this.loop(),this.pixelDensity(q),oe=(0,s.GIFEncoder)(),E=function(ue){for(var me=new Uint8Array(ue.length*ue[0].length),je=0;je"+te.toString()+" out of "+N.toString()),ee.next=68,new Promise(function(ue){return setTimeout(ue,0)});case 68:te++,ee.next=60;break;case 71:oe.finish(),de=oe.bytesView(),de=new Blob([de],{type:"image/gif"}),V=[],this._recording=!1,this.loop(),R||(z.html("Done. Downloading your gif!🌸"),0=a&&(a=Math.floor(c.timeDisplayed/a),c.timeDisplayed=0,c.lastChangeTime=p,c.displayIndex+=a,c.loopCount=Math.floor(c.displayIndex/c.numFrames),c.loopLimit!==null&&c.loopCount>=c.loopLimit?c.playing=!1:(p=c.displayIndex%c.numFrames,this.drawingContext.putImageData(c.frames[p].image,0,0),c.displayIndex=p,this.setModified(!0))))}},{key:"_setProperty",value:function(u,a){this[u]=a,this.setModified(!0)}},{key:"loadPixels",value:function(){d.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)}},{key:"updatePixels",value:function(u,a,c,p){d.default.Renderer2D.prototype.updatePixels.call(this,u,a,c,p),this.setModified(!0)}},{key:"get",value:function(u,a,c,p){return d.default._validateParameters("p5.Image.get",arguments),d.default.Renderer2D.prototype.get.apply(this,arguments)}},{key:"_getPixel",value:function(){for(var u=arguments.length,a=new Array(u),c=0;c/g,">").replace(/"/g,""").replace(/'/g,"'")}function u(a,c){c&&c!==!0&&c!=="true"||(c="");var p="";return(a=a||"untitled")&&a.includes(".")&&(p=a.split(".").pop()),c&&p!==c&&(p=c,a="".concat(a,".").concat(p)),[a,p]}t("../core/friendly_errors/validate_params"),t("../core/friendly_errors/file_errors"),t("../core/friendly_errors/fes_core"),m.default.prototype.loadJSON=function(){for(var a=arguments.length,c=new Array(a),p=0;p"),l.print(""),l.print(' '),l.print(""),l.print(""),l.print(" "),f[0]!=="0"){l.print(" ");for(var T=0;T".concat(P)),l.print(" ")}l.print(" ")}for(var R=0;R");for(var M=0;M".concat(D)),l.print(" ")}l.print(" ")}l.print("
            "),l.print(""),l.print("")}l.close(),l.clear()},m.default.prototype.writeFile=function(l,c,p){var o="application/octet-stream",l=(m.default.prototype._isSafari()&&(o="text/plain"),new Blob(l,{type:o}));m.default.prototype.downloadFile(l,c,p)},m.default.prototype.downloadFile=function(a,l,f){var o,l=u(l,f),f=l[0];a instanceof Blob?h.default.saveAs(a,f):((o=document.createElement("a")).href=a,o.download=f,o.onclick=function(v){document.body.removeChild(v.target),v.stopPropagation()},o.style.display="none",document.body.appendChild(o),m.default.prototype._isSafari()&&(a=(a=`Hello, Safari user! To download this file... 1. Go to File --> Save As. 2. Choose "Page Source" as the Format. -`)+'3. Name it with this extension: ."'.concat(a[1],'"'),alert(l)),o.click())},m.default.prototype._checkFileExtension=u,m.default.prototype._isSafari=function(){return window.HTMLElement.toString().includes("Constructor")},t=m.default,_.default=t},{"../core/friendly_errors/fes_core":271,"../core/friendly_errors/file_errors":272,"../core/friendly_errors/validate_params":275,"../core/main":280,"core-js/modules/es.array.concat":152,"core-js/modules/es.array.includes":162,"core-js/modules/es.array.iterator":164,"core-js/modules/es.array.last-index-of":166,"core-js/modules/es.array.map":167,"core-js/modules/es.array.slice":168,"core-js/modules/es.array.splice":170,"core-js/modules/es.function.name":173,"core-js/modules/es.object.from-entries":182,"core-js/modules/es.object.to-string":187,"core-js/modules/es.promise":188,"core-js/modules/es.regexp.exec":192,"core-js/modules/es.regexp.to-string":193,"core-js/modules/es.string.includes":196,"core-js/modules/es.string.iterator":197,"core-js/modules/es.string.replace":201,"core-js/modules/es.string.split":203,"core-js/modules/es.symbol":209,"core-js/modules/es.symbol.description":207,"core-js/modules/es.symbol.iterator":208,"core-js/modules/es.typed-array.copy-within":210,"core-js/modules/es.typed-array.every":211,"core-js/modules/es.typed-array.fill":212,"core-js/modules/es.typed-array.filter":213,"core-js/modules/es.typed-array.find":215,"core-js/modules/es.typed-array.find-index":214,"core-js/modules/es.typed-array.for-each":218,"core-js/modules/es.typed-array.includes":219,"core-js/modules/es.typed-array.index-of":220,"core-js/modules/es.typed-array.iterator":223,"core-js/modules/es.typed-array.join":224,"core-js/modules/es.typed-array.last-index-of":225,"core-js/modules/es.typed-array.map":226,"core-js/modules/es.typed-array.reduce":228,"core-js/modules/es.typed-array.reduce-right":227,"core-js/modules/es.typed-array.reverse":229,"core-js/modules/es.typed-array.set":230,"core-js/modules/es.typed-array.slice":231,"core-js/modules/es.typed-array.some":232,"core-js/modules/es.typed-array.sort":233,"core-js/modules/es.typed-array.subarray":234,"core-js/modules/es.typed-array.to-locale-string":235,"core-js/modules/es.typed-array.to-string":236,"core-js/modules/es.typed-array.uint8-array":239,"core-js/modules/web.dom-collections.iterator":243,"core-js/modules/web.url":245,"es6-promise/auto":246,"fetch-jsonp":248,"file-saver":249,"whatwg-fetch":258}],307:[function(t,w,_){t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.index-of"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.splice"),t("core-js/modules/es.regexp.constructor"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.string.match"),t("core-js/modules/es.string.replace"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.index-of"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.splice"),t("core-js/modules/es.regexp.constructor"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.string.match"),t("core-js/modules/es.string.replace"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var c=(t=t("../core/main"))&&t.__esModule?t:{default:t};function m(i,h){for(var b=0;b>>0},getSeed:function(){return u},rand:function(){return(l=(1664525*l+1013904223)%d)/d}};p.setSeed(s),m=new Array(4096);for(var o=0;o<4096;o++)m[o]=p.rand()},y.default);_.default=y},{"../core/main":280}],313:[function(t,w,_){function c(u){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(u)}function m(u){return(m=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(l){return c(l)}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":c(l)})(u)}t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.every"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.array.some"),t("core-js/modules/es.math.sign"),t("core-js/modules/es.number.constructor"),t("core-js/modules/es.number.is-finite"),t("core-js/modules/es.object.get-own-property-descriptor"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.sub"),t("core-js/modules/es.weak-map"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.every"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.array.some"),t("core-js/modules/es.math.sign"),t("core-js/modules/es.number.constructor"),t("core-js/modules/es.number.is-finite"),t("core-js/modules/es.string.sub"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var i=(s=t("../core/main"))&&s.__esModule?s:{default:s},h=function(u){if(u&&u.__esModule)return u;if(u===null||m(u)!=="object"&&typeof u!="function")return{default:u};var l=b();if(l&&l.has(u))return l.get(u);var d,p={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(d in u){var a;Object.prototype.hasOwnProperty.call(u,d)&&((a=o?Object.getOwnPropertyDescriptor(u,d):null)&&(a.get||a.set)?Object.defineProperty(p,d,a):p[d]=u[d])}return p.default=u,l&&l.set(u,p),p}(t("../core/constants"));function b(){var u;return typeof WeakMap!="function"?null:(u=new WeakMap,b=function(){return u},u)}function y(u,l){for(var d=0;d>>0},c.default.prototype.randomSeed=function(y){this._lcgSetSeed(m,y),this._gaussian_previous=!1},c.default.prototype.random=function(y,s){var u,l;return c.default._validateParameters("random",arguments),u=this[m]!=null?this._lcg(m):Math.random(),y===void 0?u:s===void 0?Array.isArray(y)?y[Math.floor(u*y.length)]:u*y:(s>>0},getSeed:function(){return u},rand:function(){return(a=(1664525*a+1013904223)%c)/c}};p.setSeed(s),m=new Array(4096);for(var o=0;o<4096;o++)m[o]=p.rand()},y.default);_.default=y},{"../core/main":280}],313:[function(t,w,_){function d(u){return(d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(u)}function m(u){return(m=typeof Symbol=="function"&&d(Symbol.iterator)==="symbol"?function(a){return d(a)}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":d(a)})(u)}t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.every"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.array.some"),t("core-js/modules/es.math.sign"),t("core-js/modules/es.number.constructor"),t("core-js/modules/es.number.is-finite"),t("core-js/modules/es.object.get-own-property-descriptor"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.sub"),t("core-js/modules/es.weak-map"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.array.concat"),t("core-js/modules/es.array.every"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.array.some"),t("core-js/modules/es.math.sign"),t("core-js/modules/es.number.constructor"),t("core-js/modules/es.number.is-finite"),t("core-js/modules/es.string.sub"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var i=(s=t("../core/main"))&&s.__esModule?s:{default:s},h=function(u){if(u&&u.__esModule)return u;if(u===null||m(u)!=="object"&&typeof u!="function")return{default:u};var a=b();if(a&&a.has(u))return a.get(u);var c,p={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(c in u){var l;Object.prototype.hasOwnProperty.call(u,c)&&((l=o?Object.getOwnPropertyDescriptor(u,c):null)&&(l.get||l.set)?Object.defineProperty(p,c,l):p[c]=u[c])}return p.default=u,a&&a.set(u,p),p}(t("../core/constants"));function b(){var u;return typeof WeakMap!="function"?null:(u=new WeakMap,b=function(){return u},u)}function y(u,a){for(var c=0;c>>0},d.default.prototype.randomSeed=function(y){this._lcgSetSeed(m,y),this._gaussian_previous=!1},d.default.prototype.random=function(y,s){var u,a;return d.default._validateParameters("random",arguments),u=this[m]!=null?this._lcg(m):Math.random(),y===void 0?u:s===void 0?Array.isArray(y)?y[Math.floor(u*y.length)]:u*y:(sB&&(de=z,te=F,ie=G,z=ce+B*($&&ce=i?h.substring(h.length-i,h.length):h}},c.default.prototype.unhex=function(m){return m instanceof Array?m.map(c.default.prototype.unhex):parseInt("0x".concat(m),16)},t=c.default,_.default=t},{"../core/main":280,"core-js/modules/es.array.map":167,"core-js/modules/es.number.constructor":178,"core-js/modules/es.object.to-string":187,"core-js/modules/es.regexp.to-string":193,"core-js/modules/es.string.repeat":200}],321:[function(t,w,_){t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.filter"),t("core-js/modules/es.array.index-of"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.map"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.number.to-fixed"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.regexp.constructor"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.match"),t("core-js/modules/es.string.pad-start"),t("core-js/modules/es.string.replace"),t("core-js/modules/es.string.split"),t("core-js/modules/es.string.trim"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.array.filter"),t("core-js/modules/es.array.index-of"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.map"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.number.to-fixed"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.regexp.constructor"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.string.match"),t("core-js/modules/es.string.pad-start"),t("core-js/modules/es.string.replace"),t("core-js/modules/es.string.split"),t("core-js/modules/es.string.trim"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var c=(s=t("../core/main"))&&s.__esModule?s:{default:s};function m(u,l){return function(d){if(Array.isArray(d))return d}(u)||function(d,p){if(Symbol.iterator in Object(d)||Object.prototype.toString.call(d)==="[object Arguments]"){var o=[],a=!0,f=!1,v=void 0;try{for(var S,O=d[Symbol.iterator]();!(a=(S=O.next()).done)&&(o.push(S.value),!p||o.length!==p);a=!0);}catch(k){f=!0,v=k}finally{try{a||O.return==null||O.return()}finally{if(f)throw v}}return o}}(u,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(u,l,d){var o=m(u.toString().split("."),2),p=o[0],o=o[1];return d===void 0?(p=p.padStart(l,"0"),o?p+"."+o:p):(p=(u=m(u.toFixed(d).toString().split("."),2))[0],o=u[1],p=p.padStart(l,"0"),o===void 0?p:p+"."+o)}function h(o,l){var d=(o=o.toString()).indexOf("."),p=d!==-1?o.substring(d):"",o=(o=d!==-1?o.substring(0,d):o).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");if(l===0)p="";else if(l!==void 0)if(l>p.length)for(var a=l-(p+=d===-1?".":"").length+1,f=0;f=h.TWO_PI?"".concat(k="ellipse","|"):"".concat(k="arc","|").concat(a,"|").concat(f,"|").concat(v,"|")).concat(S,"|"),k=(this.geometryInHash(O)||((u=new i.default.Geometry(S,1,function(){if(a.toFixed(10)!==f.toFixed(10)){v!==h.PIE&&v!==void 0||(this.vertices.push(new i.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var T=0;T<=S;T++){var R=(f-a)*(T/S)+a,P=.5+Math.cos(R)/2,R=.5+Math.sin(R)/2;this.vertices.push(new i.default.Vector(P,R,0)),this.uvs.push([P,R]),T>5&31)/31,(Q>>10&31)/31)),new m.default.Vector(E,I,B)),$=1;$<=3;$++){var te=oe+12*$,te=new m.default.Vector(G.getFloat32(te,!0),G.getFloat32(4+te,!0),G.getFloat32(8+te,!0));k.vertices.push(te),k.vertexNormals.push(W),V&&D.push(P,R,M)}k.faces.push([3*Y,3*Y+1,3*Y+2]),k.uvs.push([0,0],[0,0],[0,0])}})(S,O);else{if(O=new DataView(O),!("TextDecoder"in window))return console.warn("Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)");O=new TextDecoder("utf-8").decode(O).split(` -`),function(k,T){for(var P,R,M="",D=[],A=0;AB&&(fe=z,te=F,se=G,z=ce+B*($&&ce=i?h.substring(h.length-i,h.length):h}},d.default.prototype.unhex=function(m){return m instanceof Array?m.map(d.default.prototype.unhex):parseInt("0x".concat(m),16)},t=d.default,_.default=t},{"../core/main":280,"core-js/modules/es.array.map":167,"core-js/modules/es.number.constructor":178,"core-js/modules/es.object.to-string":187,"core-js/modules/es.regexp.to-string":193,"core-js/modules/es.string.repeat":200}],321:[function(t,w,_){t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.description"),t("core-js/modules/es.symbol.iterator"),t("core-js/modules/es.array.filter"),t("core-js/modules/es.array.index-of"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.map"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.number.to-fixed"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.regexp.constructor"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.match"),t("core-js/modules/es.string.pad-start"),t("core-js/modules/es.string.replace"),t("core-js/modules/es.string.split"),t("core-js/modules/es.string.trim"),t("core-js/modules/web.dom-collections.iterator"),t("core-js/modules/es.array.filter"),t("core-js/modules/es.array.index-of"),t("core-js/modules/es.array.join"),t("core-js/modules/es.array.map"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.number.to-fixed"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.regexp.constructor"),t("core-js/modules/es.regexp.exec"),t("core-js/modules/es.regexp.to-string"),t("core-js/modules/es.string.match"),t("core-js/modules/es.string.pad-start"),t("core-js/modules/es.string.replace"),t("core-js/modules/es.string.split"),t("core-js/modules/es.string.trim"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var d=(s=t("../core/main"))&&s.__esModule?s:{default:s};function m(u,a){return function(c){if(Array.isArray(c))return c}(u)||function(c,p){if(Symbol.iterator in Object(c)||Object.prototype.toString.call(c)==="[object Arguments]"){var o=[],l=!0,f=!1,v=void 0;try{for(var S,O=c[Symbol.iterator]();!(l=(S=O.next()).done)&&(o.push(S.value),!p||o.length!==p);l=!0);}catch(k){f=!0,v=k}finally{try{l||O.return==null||O.return()}finally{if(f)throw v}}return o}}(u,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(u,a,c){var o=m(u.toString().split("."),2),p=o[0],o=o[1];return c===void 0?(p=p.padStart(a,"0"),o?p+"."+o:p):(p=(u=m(u.toFixed(c).toString().split("."),2))[0],o=u[1],p=p.padStart(a,"0"),o===void 0?p:p+"."+o)}function h(o,a){var c=(o=o.toString()).indexOf("."),p=c!==-1?o.substring(c):"",o=(o=c!==-1?o.substring(0,c):o).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");if(a===0)p="";else if(a!==void 0)if(a>p.length)for(var l=a-(p+=c===-1?".":"").length+1,f=0;f=h.TWO_PI?"".concat(k="ellipse","|"):"".concat(k="arc","|").concat(l,"|").concat(f,"|").concat(v,"|")).concat(S,"|"),k=(this.geometryInHash(O)||((u=new i.default.Geometry(S,1,function(){if(l.toFixed(10)!==f.toFixed(10)){v!==h.PIE&&v!==void 0||(this.vertices.push(new i.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var T=0;T<=S;T++){var R=(f-l)*(T/S)+l,P=.5+Math.cos(R)/2,R=.5+Math.sin(R)/2;this.vertices.push(new i.default.Vector(P,R,0)),this.uvs.push([P,R]),T>5&31)/31,(W>>10&31)/31)),new m.default.Vector(te,se,fe)),de=1;de<=3;de++){var ce=$+12*de,ce=new m.default.Vector(Q.getFloat32(ce,!0),Q.getFloat32(4+ce,!0),Q.getFloat32(8+ce,!0));D.vertices.push(ce),D.vertexNormals.push(ie),E&&q.push(N,F,G)}D.faces.push([3*B,3*B+1,3*B+2]),D.uvs.push([0,0],[0,0],[0,0])}})(R,M);else{if(M=new DataView(M),!("TextDecoder"in window))return console.warn("Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)");M=new TextDecoder("utf-8").decode(M).split(` +`),function(D,A){for(var N,F,G="",q=[],V=0;Vthis.cameraFar&&(l=this.cameraFar),Math.acos(Math.max(-1,Math.min(1,c.default.Vector.dot(d,p))))+v),v=y;(f<=0||f>=Math.PI)&&(this.upX*=-1,this.upY*=-1,this.upZ*=-1),p.mult(Math.cos(f)),a.mult(Math.cos(v)*Math.sin(f)),o.mult(Math.sin(v)*Math.sin(f)),d.set(p).add(a).add(o),this.eyeX=l*d.x+this.centerX,this.eyeY=l*d.y+this.centerY,this.eyeZ=l*d.z+this.centerZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,this.centerX,this.centerY,this.centerZ,this.upX,this.upY,this.upZ)}},{key:"_orbitFree",value:function(f,v,O){var d=this.eyeX-this.centerX,p=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,l=Math.hypot(d,p,o),d=new c.default.Vector(d,p,o).normalize(),p=new c.default.Vector(this.upX,this.upY,this.upZ),o=c.default.Vector.cross(p,d).normalize(),a=c.default.Vector.cross(d,o),k=Math.atan2(v,f),k=(a.mult(Math.sin(k)),o.mult(Math.cos(k)).add(a),Math.sqrt(f*f+v*v)),a=c.default.Vector.cross(d,o),f=((l=(l*=Math.pow(10,O))this.cameraFar&&(l=this.cameraFar),Math.cos(k)),v=Math.sin(k),O=p.dot(d),k=p.dot(o),S=O*f+k*v,O=-O*v+k*f,k=p.dot(a);p.x=S*d.x+O*o.x+k*a.x,p.y=S*d.y+O*o.y+k*a.y,p.z=S*d.z+O*o.z+k*a.z,o.mult(-v),d.mult(f).add(o).mult(l),this.camera(d.x+this.centerX,d.y+this.centerY,d.z+this.centerZ,this.centerX,this.centerY,this.centerZ,p.x,p.y,p.z)}},{key:"_isActive",value:function(){return this===this._renderer._curCamera}}])&&m(h.prototype,b),i}(),c.default.prototype.setCamera=function(i){this._renderer._curCamera=i,this._renderer.uPMatrix.set(i.projMatrix)},t=c.default.Camera,_.default=t},{"../core/main":280,"core-js/modules/es.array.slice":168,"core-js/modules/es.math.hypot":175,"core-js/modules/es.string.sub":205}],330:[function(t,w,_){t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.math.log2"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.typed-array.float32-array"),t("core-js/modules/es.typed-array.copy-within"),t("core-js/modules/es.typed-array.every"),t("core-js/modules/es.typed-array.fill"),t("core-js/modules/es.typed-array.filter"),t("core-js/modules/es.typed-array.find"),t("core-js/modules/es.typed-array.find-index"),t("core-js/modules/es.typed-array.for-each"),t("core-js/modules/es.typed-array.includes"),t("core-js/modules/es.typed-array.index-of"),t("core-js/modules/es.typed-array.iterator"),t("core-js/modules/es.typed-array.join"),t("core-js/modules/es.typed-array.last-index-of"),t("core-js/modules/es.typed-array.map"),t("core-js/modules/es.typed-array.reduce"),t("core-js/modules/es.typed-array.reduce-right"),t("core-js/modules/es.typed-array.reverse"),t("core-js/modules/es.typed-array.set"),t("core-js/modules/es.typed-array.slice"),t("core-js/modules/es.typed-array.some"),t("core-js/modules/es.typed-array.sort"),t("core-js/modules/es.typed-array.subarray"),t("core-js/modules/es.typed-array.to-locale-string"),t("core-js/modules/es.typed-array.to-string"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.math.log2"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.typed-array.float32-array"),t("core-js/modules/es.typed-array.copy-within"),t("core-js/modules/es.typed-array.every"),t("core-js/modules/es.typed-array.fill"),t("core-js/modules/es.typed-array.filter"),t("core-js/modules/es.typed-array.find"),t("core-js/modules/es.typed-array.find-index"),t("core-js/modules/es.typed-array.for-each"),t("core-js/modules/es.typed-array.includes"),t("core-js/modules/es.typed-array.index-of"),t("core-js/modules/es.typed-array.iterator"),t("core-js/modules/es.typed-array.join"),t("core-js/modules/es.typed-array.last-index-of"),t("core-js/modules/es.typed-array.map"),t("core-js/modules/es.typed-array.reduce"),t("core-js/modules/es.typed-array.reduce-right"),t("core-js/modules/es.typed-array.reverse"),t("core-js/modules/es.typed-array.set"),t("core-js/modules/es.typed-array.slice"),t("core-js/modules/es.typed-array.some"),t("core-js/modules/es.typed-array.sort"),t("core-js/modules/es.typed-array.subarray"),t("core-js/modules/es.typed-array.to-locale-string"),t("core-js/modules/es.typed-array.to-string"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0,t=(t=t("../core/main"))&&t.__esModule?t:{default:t};function c(m,i){for(var h=0;h=this.width||D>=this.height)&&(console.warn("The x and y values passed to p5.Framebuffer.get are outside of its range and will be clamped."),M=this.target.constrain(M,0,this.width-1),D=this.target.constrain(D,0,this.height-1)),(0,y.readPixelWebGL)(this.gl,this.framebuffer,M*this.density,D*this.density,F.format,F.type);M=this.target.constrain(M,0,this.width-1),D=this.target.constrain(D,0,this.height-1),A=this.target.constrain(A,1,this.width-M),N=this.target.constrain(N,1,this.height-D);for(var G=(0,y.readPixelsWebGL)(void 0,this.gl,this.framebuffer,M*this.density,D*this.density,A*this.density,N*this.density,F.format,F.type),X=new Uint8ClampedArray(A*N*this.density*this.density*4),V=(X.fill(255),F.type===this.gl.RGB?3:4),z=0;zthis.vertices.length-1-this.detailX;v--)o.add(this.vertexNormals[v]);o=i.default.Vector.div(o,this.detailX);for(var S=this.vertices.length-1;S>this.vertices.length-1-this.detailX;S--)this.vertexNormals[S]=o;return this}},{key:"_makeTriangleEdges",value:function(){for(var o=this.edges.length=0;o 65535 triangles. Your web browser does not support the WebGL Extension OES_element_index_uint.");d.drawElements(d.TRIANGLES,l.vertexCount,l.indexBufferType,0)}else d.drawArrays(s||d.TRIANGLES,0,l.vertexCount)},i.default.RendererGL.prototype._drawPoints=function(s,u){var l=this.GL,d=this._getImmediatePointShader();this._setPointUniforms(d),this._bindBuffer(u,l.ARRAY_BUFFER,this._vToNArray(s),Float32Array,l.STATIC_DRAW),d.enableAttrib(d.attributes.aPosition,3),this._applyColorBlend(this.curStrokeColor),l.drawArrays(l.Points,0,s.length),d.unbindShader()};var y=i.default.RendererGL;_.default=y},{"../core/constants":269,"../core/main":280,"./p5.RenderBuffer":334,"./p5.RendererGL":337,"core-js/modules/es.array.fill":155,"core-js/modules/es.array.iterator":164,"core-js/modules/es.array.some":169,"core-js/modules/es.object.get-own-property-descriptor":183,"core-js/modules/es.object.keys":186,"core-js/modules/es.object.to-string":187,"core-js/modules/es.string.iterator":197,"core-js/modules/es.symbol":209,"core-js/modules/es.symbol.description":207,"core-js/modules/es.symbol.iterator":208,"core-js/modules/es.typed-array.copy-within":210,"core-js/modules/es.typed-array.every":211,"core-js/modules/es.typed-array.fill":212,"core-js/modules/es.typed-array.filter":213,"core-js/modules/es.typed-array.find":215,"core-js/modules/es.typed-array.find-index":214,"core-js/modules/es.typed-array.float32-array":216,"core-js/modules/es.typed-array.for-each":218,"core-js/modules/es.typed-array.includes":219,"core-js/modules/es.typed-array.index-of":220,"core-js/modules/es.typed-array.iterator":223,"core-js/modules/es.typed-array.join":224,"core-js/modules/es.typed-array.last-index-of":225,"core-js/modules/es.typed-array.map":226,"core-js/modules/es.typed-array.reduce":228,"core-js/modules/es.typed-array.reduce-right":227,"core-js/modules/es.typed-array.reverse":229,"core-js/modules/es.typed-array.set":230,"core-js/modules/es.typed-array.slice":231,"core-js/modules/es.typed-array.some":232,"core-js/modules/es.typed-array.sort":233,"core-js/modules/es.typed-array.subarray":234,"core-js/modules/es.typed-array.to-locale-string":235,"core-js/modules/es.typed-array.to-string":236,"core-js/modules/es.typed-array.uint16-array":237,"core-js/modules/es.typed-array.uint32-array":238,"core-js/modules/es.weak-map":241,"core-js/modules/web.dom-collections.iterator":243}],337:[function(A,w,_){function c(z){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y})(z)}function m(z){return(m=typeof Symbol=="function"&&c(Symbol.iterator)==="symbol"?function(Y){return c(Y)}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":c(Y)})(z)}A("core-js/modules/es.symbol"),A("core-js/modules/es.symbol.description"),A("core-js/modules/es.symbol.iterator"),A("core-js/modules/es.array.concat"),A("core-js/modules/es.array.copy-within"),A("core-js/modules/es.array.every"),A("core-js/modules/es.array.fill"),A("core-js/modules/es.array.flat"),A("core-js/modules/es.array.flat-map"),A("core-js/modules/es.array.from"),A("core-js/modules/es.array.includes"),A("core-js/modules/es.array.iterator"),A("core-js/modules/es.array.map"),A("core-js/modules/es.array.slice"),A("core-js/modules/es.array.some"),A("core-js/modules/es.array.unscopables.flat"),A("core-js/modules/es.array.unscopables.flat-map"),A("core-js/modules/es.map"),A("core-js/modules/es.object.assign"),A("core-js/modules/es.object.get-own-property-descriptor"),A("core-js/modules/es.object.get-prototype-of"),A("core-js/modules/es.object.to-string"),A("core-js/modules/es.reflect.construct"),A("core-js/modules/es.reflect.get"),A("core-js/modules/es.regexp.to-string"),A("core-js/modules/es.set"),A("core-js/modules/es.string.includes"),A("core-js/modules/es.string.iterator"),A("core-js/modules/es.typed-array.float32-array"),A("core-js/modules/es.typed-array.float64-array"),A("core-js/modules/es.typed-array.int16-array"),A("core-js/modules/es.typed-array.uint8-array"),A("core-js/modules/es.typed-array.uint16-array"),A("core-js/modules/es.typed-array.uint32-array"),A("core-js/modules/es.typed-array.copy-within"),A("core-js/modules/es.typed-array.every"),A("core-js/modules/es.typed-array.fill"),A("core-js/modules/es.typed-array.filter"),A("core-js/modules/es.typed-array.find"),A("core-js/modules/es.typed-array.find-index"),A("core-js/modules/es.typed-array.for-each"),A("core-js/modules/es.typed-array.includes"),A("core-js/modules/es.typed-array.index-of"),A("core-js/modules/es.typed-array.iterator"),A("core-js/modules/es.typed-array.join"),A("core-js/modules/es.typed-array.last-index-of"),A("core-js/modules/es.typed-array.map"),A("core-js/modules/es.typed-array.reduce"),A("core-js/modules/es.typed-array.reduce-right"),A("core-js/modules/es.typed-array.reverse"),A("core-js/modules/es.typed-array.set"),A("core-js/modules/es.typed-array.slice"),A("core-js/modules/es.typed-array.some"),A("core-js/modules/es.typed-array.sort"),A("core-js/modules/es.typed-array.subarray"),A("core-js/modules/es.typed-array.to-locale-string"),A("core-js/modules/es.typed-array.to-string"),A("core-js/modules/es.weak-map"),A("core-js/modules/web.dom-collections.iterator"),A("core-js/modules/es.symbol"),A("core-js/modules/es.symbol.description"),A("core-js/modules/es.symbol.iterator"),A("core-js/modules/es.array.concat"),A("core-js/modules/es.array.copy-within"),A("core-js/modules/es.array.every"),A("core-js/modules/es.array.fill"),A("core-js/modules/es.array.flat"),A("core-js/modules/es.array.flat-map"),A("core-js/modules/es.array.from"),A("core-js/modules/es.array.includes"),A("core-js/modules/es.array.iterator"),A("core-js/modules/es.array.map"),A("core-js/modules/es.array.slice"),A("core-js/modules/es.array.some"),A("core-js/modules/es.array.unscopables.flat"),A("core-js/modules/es.array.unscopables.flat-map"),A("core-js/modules/es.map"),A("core-js/modules/es.object.assign"),A("core-js/modules/es.object.to-string"),A("core-js/modules/es.set"),A("core-js/modules/es.string.includes"),A("core-js/modules/es.string.iterator"),A("core-js/modules/es.typed-array.float32-array"),A("core-js/modules/es.typed-array.float64-array"),A("core-js/modules/es.typed-array.int16-array"),A("core-js/modules/es.typed-array.uint8-array"),A("core-js/modules/es.typed-array.uint16-array"),A("core-js/modules/es.typed-array.uint32-array"),A("core-js/modules/es.typed-array.copy-within"),A("core-js/modules/es.typed-array.every"),A("core-js/modules/es.typed-array.fill"),A("core-js/modules/es.typed-array.filter"),A("core-js/modules/es.typed-array.find"),A("core-js/modules/es.typed-array.find-index"),A("core-js/modules/es.typed-array.for-each"),A("core-js/modules/es.typed-array.includes"),A("core-js/modules/es.typed-array.index-of"),A("core-js/modules/es.typed-array.iterator"),A("core-js/modules/es.typed-array.join"),A("core-js/modules/es.typed-array.last-index-of"),A("core-js/modules/es.typed-array.map"),A("core-js/modules/es.typed-array.reduce"),A("core-js/modules/es.typed-array.reduce-right"),A("core-js/modules/es.typed-array.reverse"),A("core-js/modules/es.typed-array.set"),A("core-js/modules/es.typed-array.slice"),A("core-js/modules/es.typed-array.some"),A("core-js/modules/es.typed-array.sort"),A("core-js/modules/es.typed-array.subarray"),A("core-js/modules/es.typed-array.to-locale-string"),A("core-js/modules/es.typed-array.to-string"),A("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(_,"__esModule",{value:!0}),_.readPixelsWebGL=X,_.readPixelWebGL=V,_.default=void 0;var i=l(A("../core/main")),h=function(z){if(z&&z.__esModule)return z;if(z===null||m(z)!=="object"&&typeof z!="function")return{default:z};var Y=u();if(Y&&Y.has(z))return Y.get(z);var Q,oe={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(Q in z){var I;Object.prototype.hasOwnProperty.call(z,Q)&&((I=E?Object.getOwnPropertyDescriptor(z,Q):null)&&(I.get||I.set)?Object.defineProperty(oe,Q,I):oe[Q]=z[Q])}return oe.default=z,Y&&Y.set(z,oe),oe}(A("../core/constants")),b=l(A("./GeometryBuilder")),y=l(A("libtess")),s=(A("./p5.Shader"),A("./p5.Camera"),A("../core/p5.Renderer"),A("./p5.Matrix"),A("./p5.Framebuffer"),A("path"),A("./p5.Texture"));function u(){var z;return typeof WeakMap!="function"?null:(z=new WeakMap,u=function(){return z},z)}function l(z){return z&&z.__esModule?z:{default:z}}function d(z){return function(Y){if(Array.isArray(Y)){for(var Q=0,oe=new Array(Y.length);Qthis.cameraFar&&(a=this.cameraFar),Math.acos(Math.max(-1,Math.min(1,d.default.Vector.dot(c,p))))+v),v=y;(f<=0||f>=Math.PI)&&(this.upX*=-1,this.upY*=-1,this.upZ*=-1),p.mult(Math.cos(f)),l.mult(Math.cos(v)*Math.sin(f)),o.mult(Math.sin(v)*Math.sin(f)),c.set(p).add(l).add(o),this.eyeX=a*c.x+this.centerX,this.eyeY=a*c.y+this.centerY,this.eyeZ=a*c.z+this.centerZ,this.camera(this.eyeX,this.eyeY,this.eyeZ,this.centerX,this.centerY,this.centerZ,this.upX,this.upY,this.upZ)}},{key:"_orbitFree",value:function(f,v,O){var c=this.eyeX-this.centerX,p=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,a=Math.hypot(c,p,o),c=new d.default.Vector(c,p,o).normalize(),p=new d.default.Vector(this.upX,this.upY,this.upZ),o=d.default.Vector.cross(p,c).normalize(),l=d.default.Vector.cross(c,o),k=Math.atan2(v,f),k=(l.mult(Math.sin(k)),o.mult(Math.cos(k)).add(l),Math.sqrt(f*f+v*v)),l=d.default.Vector.cross(c,o),f=((a=(a*=Math.pow(10,O))this.cameraFar&&(a=this.cameraFar),Math.cos(k)),v=Math.sin(k),O=p.dot(c),k=p.dot(o),S=O*f+k*v,O=-O*v+k*f,k=p.dot(l);p.x=S*c.x+O*o.x+k*l.x,p.y=S*c.y+O*o.y+k*l.y,p.z=S*c.z+O*o.z+k*l.z,o.mult(-v),c.mult(f).add(o).mult(a),this.camera(c.x+this.centerX,c.y+this.centerY,c.z+this.centerZ,this.centerX,this.centerY,this.centerZ,p.x,p.y,p.z)}},{key:"_isActive",value:function(){return this===this._renderer._curCamera}}])&&m(h.prototype,b),i}(),d.default.prototype.setCamera=function(i){this._renderer._curCamera=i,this._renderer.uPMatrix.set(i.projMatrix)},t=d.default.Camera,_.default=t},{"../core/main":280,"core-js/modules/es.array.slice":168,"core-js/modules/es.math.hypot":175,"core-js/modules/es.string.sub":205}],330:[function(t,w,_){t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.math.log2"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.typed-array.float32-array"),t("core-js/modules/es.typed-array.copy-within"),t("core-js/modules/es.typed-array.every"),t("core-js/modules/es.typed-array.fill"),t("core-js/modules/es.typed-array.filter"),t("core-js/modules/es.typed-array.find"),t("core-js/modules/es.typed-array.find-index"),t("core-js/modules/es.typed-array.for-each"),t("core-js/modules/es.typed-array.includes"),t("core-js/modules/es.typed-array.index-of"),t("core-js/modules/es.typed-array.iterator"),t("core-js/modules/es.typed-array.join"),t("core-js/modules/es.typed-array.last-index-of"),t("core-js/modules/es.typed-array.map"),t("core-js/modules/es.typed-array.reduce"),t("core-js/modules/es.typed-array.reduce-right"),t("core-js/modules/es.typed-array.reverse"),t("core-js/modules/es.typed-array.set"),t("core-js/modules/es.typed-array.slice"),t("core-js/modules/es.typed-array.some"),t("core-js/modules/es.typed-array.sort"),t("core-js/modules/es.typed-array.subarray"),t("core-js/modules/es.typed-array.to-locale-string"),t("core-js/modules/es.typed-array.to-string"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.math.log2"),t("core-js/modules/es.object.to-string"),t("core-js/modules/es.typed-array.float32-array"),t("core-js/modules/es.typed-array.copy-within"),t("core-js/modules/es.typed-array.every"),t("core-js/modules/es.typed-array.fill"),t("core-js/modules/es.typed-array.filter"),t("core-js/modules/es.typed-array.find"),t("core-js/modules/es.typed-array.find-index"),t("core-js/modules/es.typed-array.for-each"),t("core-js/modules/es.typed-array.includes"),t("core-js/modules/es.typed-array.index-of"),t("core-js/modules/es.typed-array.iterator"),t("core-js/modules/es.typed-array.join"),t("core-js/modules/es.typed-array.last-index-of"),t("core-js/modules/es.typed-array.map"),t("core-js/modules/es.typed-array.reduce"),t("core-js/modules/es.typed-array.reduce-right"),t("core-js/modules/es.typed-array.reverse"),t("core-js/modules/es.typed-array.set"),t("core-js/modules/es.typed-array.slice"),t("core-js/modules/es.typed-array.some"),t("core-js/modules/es.typed-array.sort"),t("core-js/modules/es.typed-array.subarray"),t("core-js/modules/es.typed-array.to-locale-string"),t("core-js/modules/es.typed-array.to-string"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0,t=(t=t("../core/main"))&&t.__esModule?t:{default:t};function d(m,i){for(var h=0;h=this.width||D>=this.height)&&(console.warn("The x and y values passed to p5.Framebuffer.get are outside of its range and will be clamped."),M=this.target.constrain(M,0,this.width-1),D=this.target.constrain(D,0,this.height-1)),(0,y.readPixelWebGL)(this.gl,this.framebuffer,M*this.density,D*this.density,F.format,F.type);M=this.target.constrain(M,0,this.width-1),D=this.target.constrain(D,0,this.height-1),A=this.target.constrain(A,1,this.width-M),N=this.target.constrain(N,1,this.height-D);for(var G=(0,y.readPixelsWebGL)(void 0,this.gl,this.framebuffer,M*this.density,D*this.density,A*this.density,N*this.density,F.format,F.type),q=new Uint8ClampedArray(A*N*this.density*this.density*4),V=(q.fill(255),F.type===this.gl.RGB?3:4),z=0;zthis.vertices.length-1-this.detailX;v--)o.add(this.vertexNormals[v]);o=i.default.Vector.div(o,this.detailX);for(var S=this.vertices.length-1;S>this.vertices.length-1-this.detailX;S--)this.vertexNormals[S]=o;return this}},{key:"_makeTriangleEdges",value:function(){for(var o=this.edges.length=0;o 65535 triangles. Your web browser does not support the WebGL Extension OES_element_index_uint.");c.drawElements(c.TRIANGLES,a.vertexCount,a.indexBufferType,0)}else c.drawArrays(s||c.TRIANGLES,0,a.vertexCount)},i.default.RendererGL.prototype._drawPoints=function(s,u){var a=this.GL,c=this._getImmediatePointShader();this._setPointUniforms(c),this._bindBuffer(u,a.ARRAY_BUFFER,this._vToNArray(s),Float32Array,a.STATIC_DRAW),c.enableAttrib(c.attributes.aPosition,3),this._applyColorBlend(this.curStrokeColor),a.drawArrays(a.Points,0,s.length),c.unbindShader()};var y=i.default.RendererGL;_.default=y},{"../core/constants":269,"../core/main":280,"./p5.RenderBuffer":334,"./p5.RendererGL":337,"core-js/modules/es.array.fill":155,"core-js/modules/es.array.iterator":164,"core-js/modules/es.array.some":169,"core-js/modules/es.object.get-own-property-descriptor":183,"core-js/modules/es.object.keys":186,"core-js/modules/es.object.to-string":187,"core-js/modules/es.string.iterator":197,"core-js/modules/es.symbol":209,"core-js/modules/es.symbol.description":207,"core-js/modules/es.symbol.iterator":208,"core-js/modules/es.typed-array.copy-within":210,"core-js/modules/es.typed-array.every":211,"core-js/modules/es.typed-array.fill":212,"core-js/modules/es.typed-array.filter":213,"core-js/modules/es.typed-array.find":215,"core-js/modules/es.typed-array.find-index":214,"core-js/modules/es.typed-array.float32-array":216,"core-js/modules/es.typed-array.for-each":218,"core-js/modules/es.typed-array.includes":219,"core-js/modules/es.typed-array.index-of":220,"core-js/modules/es.typed-array.iterator":223,"core-js/modules/es.typed-array.join":224,"core-js/modules/es.typed-array.last-index-of":225,"core-js/modules/es.typed-array.map":226,"core-js/modules/es.typed-array.reduce":228,"core-js/modules/es.typed-array.reduce-right":227,"core-js/modules/es.typed-array.reverse":229,"core-js/modules/es.typed-array.set":230,"core-js/modules/es.typed-array.slice":231,"core-js/modules/es.typed-array.some":232,"core-js/modules/es.typed-array.sort":233,"core-js/modules/es.typed-array.subarray":234,"core-js/modules/es.typed-array.to-locale-string":235,"core-js/modules/es.typed-array.to-string":236,"core-js/modules/es.typed-array.uint16-array":237,"core-js/modules/es.typed-array.uint32-array":238,"core-js/modules/es.weak-map":241,"core-js/modules/web.dom-collections.iterator":243}],337:[function(A,w,_){function d(z){return(d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X})(z)}function m(z){return(m=typeof Symbol=="function"&&d(Symbol.iterator)==="symbol"?function(X){return d(X)}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":d(X)})(z)}A("core-js/modules/es.symbol"),A("core-js/modules/es.symbol.description"),A("core-js/modules/es.symbol.iterator"),A("core-js/modules/es.array.concat"),A("core-js/modules/es.array.copy-within"),A("core-js/modules/es.array.every"),A("core-js/modules/es.array.fill"),A("core-js/modules/es.array.flat"),A("core-js/modules/es.array.flat-map"),A("core-js/modules/es.array.from"),A("core-js/modules/es.array.includes"),A("core-js/modules/es.array.iterator"),A("core-js/modules/es.array.map"),A("core-js/modules/es.array.slice"),A("core-js/modules/es.array.some"),A("core-js/modules/es.array.unscopables.flat"),A("core-js/modules/es.array.unscopables.flat-map"),A("core-js/modules/es.map"),A("core-js/modules/es.object.assign"),A("core-js/modules/es.object.get-own-property-descriptor"),A("core-js/modules/es.object.get-prototype-of"),A("core-js/modules/es.object.to-string"),A("core-js/modules/es.reflect.construct"),A("core-js/modules/es.reflect.get"),A("core-js/modules/es.regexp.to-string"),A("core-js/modules/es.set"),A("core-js/modules/es.string.includes"),A("core-js/modules/es.string.iterator"),A("core-js/modules/es.typed-array.float32-array"),A("core-js/modules/es.typed-array.float64-array"),A("core-js/modules/es.typed-array.int16-array"),A("core-js/modules/es.typed-array.uint8-array"),A("core-js/modules/es.typed-array.uint16-array"),A("core-js/modules/es.typed-array.uint32-array"),A("core-js/modules/es.typed-array.copy-within"),A("core-js/modules/es.typed-array.every"),A("core-js/modules/es.typed-array.fill"),A("core-js/modules/es.typed-array.filter"),A("core-js/modules/es.typed-array.find"),A("core-js/modules/es.typed-array.find-index"),A("core-js/modules/es.typed-array.for-each"),A("core-js/modules/es.typed-array.includes"),A("core-js/modules/es.typed-array.index-of"),A("core-js/modules/es.typed-array.iterator"),A("core-js/modules/es.typed-array.join"),A("core-js/modules/es.typed-array.last-index-of"),A("core-js/modules/es.typed-array.map"),A("core-js/modules/es.typed-array.reduce"),A("core-js/modules/es.typed-array.reduce-right"),A("core-js/modules/es.typed-array.reverse"),A("core-js/modules/es.typed-array.set"),A("core-js/modules/es.typed-array.slice"),A("core-js/modules/es.typed-array.some"),A("core-js/modules/es.typed-array.sort"),A("core-js/modules/es.typed-array.subarray"),A("core-js/modules/es.typed-array.to-locale-string"),A("core-js/modules/es.typed-array.to-string"),A("core-js/modules/es.weak-map"),A("core-js/modules/web.dom-collections.iterator"),A("core-js/modules/es.symbol"),A("core-js/modules/es.symbol.description"),A("core-js/modules/es.symbol.iterator"),A("core-js/modules/es.array.concat"),A("core-js/modules/es.array.copy-within"),A("core-js/modules/es.array.every"),A("core-js/modules/es.array.fill"),A("core-js/modules/es.array.flat"),A("core-js/modules/es.array.flat-map"),A("core-js/modules/es.array.from"),A("core-js/modules/es.array.includes"),A("core-js/modules/es.array.iterator"),A("core-js/modules/es.array.map"),A("core-js/modules/es.array.slice"),A("core-js/modules/es.array.some"),A("core-js/modules/es.array.unscopables.flat"),A("core-js/modules/es.array.unscopables.flat-map"),A("core-js/modules/es.map"),A("core-js/modules/es.object.assign"),A("core-js/modules/es.object.to-string"),A("core-js/modules/es.set"),A("core-js/modules/es.string.includes"),A("core-js/modules/es.string.iterator"),A("core-js/modules/es.typed-array.float32-array"),A("core-js/modules/es.typed-array.float64-array"),A("core-js/modules/es.typed-array.int16-array"),A("core-js/modules/es.typed-array.uint8-array"),A("core-js/modules/es.typed-array.uint16-array"),A("core-js/modules/es.typed-array.uint32-array"),A("core-js/modules/es.typed-array.copy-within"),A("core-js/modules/es.typed-array.every"),A("core-js/modules/es.typed-array.fill"),A("core-js/modules/es.typed-array.filter"),A("core-js/modules/es.typed-array.find"),A("core-js/modules/es.typed-array.find-index"),A("core-js/modules/es.typed-array.for-each"),A("core-js/modules/es.typed-array.includes"),A("core-js/modules/es.typed-array.index-of"),A("core-js/modules/es.typed-array.iterator"),A("core-js/modules/es.typed-array.join"),A("core-js/modules/es.typed-array.last-index-of"),A("core-js/modules/es.typed-array.map"),A("core-js/modules/es.typed-array.reduce"),A("core-js/modules/es.typed-array.reduce-right"),A("core-js/modules/es.typed-array.reverse"),A("core-js/modules/es.typed-array.set"),A("core-js/modules/es.typed-array.slice"),A("core-js/modules/es.typed-array.some"),A("core-js/modules/es.typed-array.sort"),A("core-js/modules/es.typed-array.subarray"),A("core-js/modules/es.typed-array.to-locale-string"),A("core-js/modules/es.typed-array.to-string"),A("core-js/modules/web.dom-collections.iterator"),Object.defineProperty(_,"__esModule",{value:!0}),_.readPixelsWebGL=q,_.readPixelWebGL=V,_.default=void 0;var i=a(A("../core/main")),h=function(z){if(z&&z.__esModule)return z;if(z===null||m(z)!=="object"&&typeof z!="function")return{default:z};var X=u();if(X&&X.has(z))return X.get(z);var Q,oe={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(Q in z){var I;Object.prototype.hasOwnProperty.call(z,Q)&&((I=E?Object.getOwnPropertyDescriptor(z,Q):null)&&(I.get||I.set)?Object.defineProperty(oe,Q,I):oe[Q]=z[Q])}return oe.default=z,X&&X.set(z,oe),oe}(A("../core/constants")),b=a(A("./GeometryBuilder")),y=a(A("libtess")),s=(A("./p5.Shader"),A("./p5.Camera"),A("../core/p5.Renderer"),A("./p5.Matrix"),A("./p5.Framebuffer"),A("path"),A("./p5.Texture"));function u(){var z;return typeof WeakMap!="function"?null:(z=new WeakMap,u=function(){return z},z)}function a(z){return z&&z.__esModule?z:{default:z}}function c(z){return function(X){if(Array.isArray(X)){for(var Q=0,oe=new Array(X.length);Q>7,127&ge,ne>>7,127&ne);for(var we=0;we>7,127&Pe,0,0)}}return{cellImageInfo:K,dimOffset:He,dimImageInfo:_e}}}}]),f}();h.default.RendererGL.prototype._renderText=function(f,v,S,O,k){if(this._textFont&&typeof this._textFont!="string"){if(!(k<=O)&&this._doFill){if(this._isOpenType()){f.push();var k=this._doStroke,T=this.drawMode,P=(this._doStroke=!1,this.drawMode=b.TEXTURE,this._textFont.font),R=(R=this._textFont._fontInfo)||(this._textFont._fontInfo=new a(P)),S=this._textFont._handleAlignment(this,v,S,O),O=this._textSize/P.unitsPerEm,M=(this.translate(S.x,S.y,0),this.scale(O,O,1),this.GL),S=!this._defaultFontShader,D=this._getFontShader(),A=(D.init(),D.bindShader(),S&&(D.setUniform("uGridImageSize",[64,64]),D.setUniform("uCellsImageSize",[64,64]),D.setUniform("uStrokeImageSize",[64,64]),D.setUniform("uGridSize",[9,9])),this._applyColorBlend(this.curFillColor),this.retainedMode.geometry.glyph),N=(A||((O=this._textGeom=new h.default.Geometry(1,1,function(){for(var fe=0;fe<=1;fe++)for(var ce=0;ce<=1;ce++)this.vertices.push(new h.default.Vector(ce,fe,0)),this.uvs.push(ce,fe)})).computeFaces().computeNormals(),A=this.createBuffers("glyph",O)),!0),S=!1,O=void 0;try{for(var F,G=this.retainedMode.buffers.text[Symbol.iterator]();!(N=(F=G.next()).done);N=!0)F.value._prepareBuffer(A,D)}catch(fe){S=!0,O=fe}finally{try{N||G.return==null||G.return()}finally{if(S)throw O}}this._bindBuffer(A.indexBuffer,M.ELEMENT_ARRAY_BUFFER),D.setUniform("uMaterialColor",this.curFillColor),M.pixelStorei(M.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1);try{var X=0,V=null,z=P.stringToGlyphs(v),Y=!0,Q=!1,oe=void 0;try{for(var E,I=z[Symbol.iterator]();!(Y=(E=I.next()).done);Y=!0){var B,W,$=E.value,te=(V&&(X+=P.getKerningValue(V,$)),R.getGlyphInfo($));te.uGlyphRect&&(B=te.rowInfo,W=te.colInfo,D.setUniform("uSamplerStrokes",te.strokeImageInfo.imageData),D.setUniform("uSamplerRowStrokes",B.cellImageInfo.imageData),D.setUniform("uSamplerRows",B.dimImageInfo.imageData),D.setUniform("uSamplerColStrokes",W.cellImageInfo.imageData),D.setUniform("uSamplerCols",W.dimImageInfo.imageData),D.setUniform("uGridOffset",te.uGridOffset),D.setUniform("uGlyphRect",te.uGlyphRect),D.setUniform("uGlyphOffset",X),D.bindTextures(),M.drawElements(M.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)),X+=$.advanceWidth,V=$}}catch(fe){Q=!0,oe=fe}finally{try{Y||I.return==null||I.return()}finally{if(Q)throw oe}}}finally{D.unbindShader(),this._doStroke=k,this.drawMode=T,M.pixelStorei(M.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),f.pop()}}else console.log("WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported");return f}}else console.log("WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.")}},{"../core/constants":269,"../core/main":280,"./p5.RendererGL.Retained":336,"./p5.Shader":338,"core-js/modules/es.array.iterator":164,"core-js/modules/es.object.get-own-property-descriptor":183,"core-js/modules/es.object.to-string":187,"core-js/modules/es.regexp.exec":192,"core-js/modules/es.string.iterator":197,"core-js/modules/es.string.split":203,"core-js/modules/es.string.sub":205,"core-js/modules/es.symbol":209,"core-js/modules/es.symbol.description":207,"core-js/modules/es.symbol.iterator":208,"core-js/modules/es.weak-map":241,"core-js/modules/web.dom-collections.iterator":243}]},{},[264])(264)})})(Ah);var My=Ah.exports;const Cy=Jh(My);function Oy(r,n){return new Cy(r,n)}function pd(r){var n;(n=r.current)==null||n.remove(),r.current=null}function Py(r){const{sketch:n,children:x,...t}=r,w=pr.useRef(null),_=pr.useRef(null);return pr.useEffect(()=>{w.current!==null&&(pd(_),_.current=Oy(n,w.current))},[n]),pr.useEffect(()=>{var c,m;(m=(c=_.current)==null?void 0:c.updateWithProps)==null||m.call(c,t)},[t,w]),pr.useEffect(()=>()=>pd(_),[]),Sr.jsx("div",{ref:w,className:Ty,children:x})}function Ly(r){const{sketch:n,fallback:x}=r;return n===void 0?(console.error("[ReactP5Wrapper] The `sketch` prop is required."),x!==void 0?Sr.jsx(Sr.Fragment,{children:x}):null):Sr.jsx(Py,{...r})}const Ay=pr.memo(Ly,ky);function Ry(){const r=pr.useMemo(()=>[Sl,Ph,Oh],[dd,hd,fd]),[n,x]=pr.useState({rotation:160,sketch:Sl,unmount:!1}),t=pr.useCallback(()=>{x(c=>{const i=(r.findIndex(b=>Object.is(b,c.sketch))+1)%r.length,h=r.at(i);return h===void 0?c:{...c,sketch:h}})},[r]),w=pr.useCallback(()=>{x(c=>({...c,unmount:!c.unmount}))},[]),_=pr.useCallback(c=>{x(m=>({...m,rotation:parseInt(c.target.value,10)}))},[dd,fd,hd]);return n.unmount?Sr.jsxs(pr.Fragment,{children:[Sr.jsx("p",{children:"Unmounted the sketch"}),Sr.jsx("button",{onClick:w,children:"Remount"})]}):Sr.jsxs(pr.Fragment,{children:[Sr.jsx(Ay,{sketch:n.sketch,rotation:n.rotation}),Sr.jsx("input",{type:"range",defaultValue:n.rotation,min:"0",max:"360",step:"1",onChange:_}),Sr.jsx("button",{onClick:t,children:"Change Sketch"}),Sr.jsx("button",{onClick:w,children:"Unmount"})]})}const Iy=document.getElementById("app"),Dy=Ch(Iy);Dy.render(Sr.jsx(Ry,{})); +`)),B}},{key:"_getEmptyTexture",value:function(){var E;return this._emptyTexture||((E=new i.default.Image(1,1)).set(0,0,255),this._emptyTexture=new i.default.Texture(this,E)),this._emptyTexture}},{key:"getTexture",value:function(E){E instanceof i.default.Framebuffer&&(E=E.color);var I=this.textures.get(E);return I||(I=new i.default.Texture(this,E),this.textures.set(E,I),I)}},{key:"getDiffusedTexture",value:function(E){var I,B,W=this;return this.diffusedTextures.get(E)!=null?this.diffusedTextures.get(E):(I=Math.floor(E.height/E.width*200),B=this._pInst.createFramebuffer({width:200,height:I,density:1}),this.diffusedShader||(this.diffusedShader=this._pInst.createShader(N.imageLightVert,N.imageLightDiffusedFrag)),B.draw(function(){W._pInst.shader(W.diffusedShader),W.diffusedShader.setUniform("environmentMap",E),W._pInst.noStroke(),W._pInst.rectMode(h.CENTER),W._pInst.noLights(),W._pInst.rect(0,0,200,I)}),this.diffusedTextures.set(E,B),B)}},{key:"getSpecularTexture",value:function(E){var I=this;if(this.specularTextures.get(E)!=null)return this.specularTextures.get(E);for(var B,W=[],$=this._pInst.createFramebuffer({width:512,height:512,density:1}),te=Math.log(512)/Math.log(2),se=(this.specularShader||(this.specularShader=this._pInst.createShader(N.imageLightVert,N.imageLightSpecularFrag)),512);1<=se;se/=2)(function(fe){$.resize(fe,fe);var ie=1-Math.log(fe)/Math.log(2)/te;$.draw(function(){I._pInst.shader(I.specularShader),I._pInst.clear(),I.specularShader.setUniform("environmentMap",E),I.specularShader.setUniform("roughness",ie),I._pInst.noStroke(),I._pInst.noLights(),I._pInst.plane(fe,fe)}),W.push($.get().drawingContext.getImageData(0,0,fe,fe))})(se);return $.remove(),B=new s.MipmapTexture(this,W,{}),this.specularTextures.set(E,B),B}},{key:"activeFramebuffer",value:function(){return this.activeFramebuffers[this.activeFramebuffers.length-1]||null}},{key:"createFramebuffer",value:function(E){return new i.default.Framebuffer(this,E)}},{key:"_setStrokeUniforms",value:function(E){E.bindShader(),E.setUniform("uUseLineColor",this._useLineColor),E.setUniform("uMaterialColor",this.curStrokeColor),E.setUniform("uStrokeWeight",this.curStrokeWeight),E.setUniform("uStrokeCap",R[this.curStrokeCap]),E.setUniform("uStrokeJoin",M[this.curStrokeJoin])}},{key:"_setFillUniforms",value:function(E){var I=this,B=(E.bindShader(),this.mixedSpecularColor=c(this.curSpecularColor),0>7,127&ge,ne>>7,127&ne);for(var we=0;we>7,127&Pe,0,0)}}return{cellImageInfo:K,dimOffset:He,dimImageInfo:_e}}}}]),f}();h.default.RendererGL.prototype._renderText=function(f,v,S,O,k){if(this._textFont&&typeof this._textFont!="string"){if(!(k<=O)&&this._doFill){if(this._isOpenType()){f.push();var k=this._doStroke,T=this.drawMode,P=(this._doStroke=!1,this.drawMode=b.TEXTURE,this._textFont.font),R=(R=this._textFont._fontInfo)||(this._textFont._fontInfo=new l(P)),S=this._textFont._handleAlignment(this,v,S,O),O=this._textSize/P.unitsPerEm,M=(this.translate(S.x,S.y,0),this.scale(O,O,1),this.GL),S=!this._defaultFontShader,D=this._getFontShader(),A=(D.init(),D.bindShader(),S&&(D.setUniform("uGridImageSize",[64,64]),D.setUniform("uCellsImageSize",[64,64]),D.setUniform("uStrokeImageSize",[64,64]),D.setUniform("uGridSize",[9,9])),this._applyColorBlend(this.curFillColor),this.retainedMode.geometry.glyph),N=(A||((O=this._textGeom=new h.default.Geometry(1,1,function(){for(var de=0;de<=1;de++)for(var ce=0;ce<=1;ce++)this.vertices.push(new h.default.Vector(ce,de,0)),this.uvs.push(ce,de)})).computeFaces().computeNormals(),A=this.createBuffers("glyph",O)),!0),S=!1,O=void 0;try{for(var F,G=this.retainedMode.buffers.text[Symbol.iterator]();!(N=(F=G.next()).done);N=!0)F.value._prepareBuffer(A,D)}catch(de){S=!0,O=de}finally{try{N||G.return==null||G.return()}finally{if(S)throw O}}this._bindBuffer(A.indexBuffer,M.ELEMENT_ARRAY_BUFFER),D.setUniform("uMaterialColor",this.curFillColor),M.pixelStorei(M.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1);try{var q=0,V=null,z=P.stringToGlyphs(v),X=!0,Q=!1,oe=void 0;try{for(var E,I=z[Symbol.iterator]();!(X=(E=I.next()).done);X=!0){var B,W,$=E.value,te=(V&&(q+=P.getKerningValue(V,$)),R.getGlyphInfo($));te.uGlyphRect&&(B=te.rowInfo,W=te.colInfo,D.setUniform("uSamplerStrokes",te.strokeImageInfo.imageData),D.setUniform("uSamplerRowStrokes",B.cellImageInfo.imageData),D.setUniform("uSamplerRows",B.dimImageInfo.imageData),D.setUniform("uSamplerColStrokes",W.cellImageInfo.imageData),D.setUniform("uSamplerCols",W.dimImageInfo.imageData),D.setUniform("uGridOffset",te.uGridOffset),D.setUniform("uGlyphRect",te.uGlyphRect),D.setUniform("uGlyphOffset",q),D.bindTextures(),M.drawElements(M.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)),q+=$.advanceWidth,V=$}}catch(de){Q=!0,oe=de}finally{try{X||I.return==null||I.return()}finally{if(Q)throw oe}}}finally{D.unbindShader(),this._doStroke=k,this.drawMode=T,M.pixelStorei(M.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),f.pop()}}else console.log("WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported");return f}}else console.log("WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.")}},{"../core/constants":269,"../core/main":280,"./p5.RendererGL.Retained":336,"./p5.Shader":338,"core-js/modules/es.array.iterator":164,"core-js/modules/es.object.get-own-property-descriptor":183,"core-js/modules/es.object.to-string":187,"core-js/modules/es.regexp.exec":192,"core-js/modules/es.string.iterator":197,"core-js/modules/es.string.split":203,"core-js/modules/es.string.sub":205,"core-js/modules/es.symbol":209,"core-js/modules/es.symbol.description":207,"core-js/modules/es.symbol.iterator":208,"core-js/modules/es.weak-map":241,"core-js/modules/web.dom-collections.iterator":243}]},{},[264])(264)})})(Ah);var My=Ah.exports;const Cy=Jh(My);function Oy(r,n){return new Cy(r,n)}function pd(r){var n;(n=r.current)==null||n.remove(),r.current=null}function Py(r){const{sketch:n,children:x,...t}=r,w=pr.useRef(null),_=pr.useRef(null);return pr.useEffect(()=>{w.current!==null&&(pd(_),_.current=Oy(n,w.current))},[n]),pr.useEffect(()=>{var d,m;(m=(d=_.current)==null?void 0:d.updateWithProps)==null||m.call(d,t)},[t,w]),pr.useEffect(()=>()=>pd(_),[]),Sr.jsx("div",{ref:w,className:Ty,children:x})}function Ly(r){const{sketch:n,fallback:x}=r;return n===void 0?(console.error("[ReactP5Wrapper] The `sketch` prop is required."),x!==void 0?Sr.jsx(Sr.Fragment,{children:x}):null):Sr.jsx(Py,{...r})}const Ay=pr.memo(Ly,ky);function Ry(){const r=pr.useMemo(()=>[Sl,Ph,Oh],[dd,hd,fd]),[n,x]=pr.useState({rotation:160,sketch:Sl,unmount:!1}),t=pr.useCallback(()=>{x(d=>{const i=(r.findIndex(b=>Object.is(b,d.sketch))+1)%r.length,h=r.at(i);return h===void 0?d:{...d,sketch:h}})},[r]),w=pr.useCallback(()=>{x(d=>({...d,unmount:!d.unmount}))},[]),_=pr.useCallback(d=>{x(m=>({...m,rotation:parseInt(d.target.value,10)}))},[dd,fd,hd]);return n.unmount?Sr.jsxs(pr.Fragment,{children:[Sr.jsx("p",{children:"Unmounted the sketch"}),Sr.jsx("button",{onClick:w,children:"Remount"})]}):Sr.jsxs(pr.Fragment,{children:[Sr.jsx(Ay,{sketch:n.sketch,rotation:n.rotation}),Sr.jsx("input",{type:"range",defaultValue:n.rotation,min:"0",max:"360",step:"1",onChange:_}),Sr.jsx("button",{onClick:t,children:"Change Sketch"}),Sr.jsx("button",{onClick:w,children:"Unmount"})]})}const Iy=document.getElementById("app"),Dy=Ch(Iy);Dy.render(Sr.jsx(Ry,{})); diff --git a/index.html b/index.html index 1df6a5c..c688e3f 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ @P5-wrapper/react - +