diff --git a/assets/index-CwuNlr8X.js b/assets/index-BmzxjE9B.js similarity index 59% rename from assets/index-CwuNlr8X.js rename to assets/index-BmzxjE9B.js index b6ed179..b4183da 100644 --- a/assets/index-CwuNlr8X.js +++ b/assets/index-BmzxjE9B.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,d=null;if(n!=null)for(t in n.ref!==void 0&&(d=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,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;/** + */(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 a=[],h=[],b=1,y=null,s=3,u=!1,l=!1,c=!1,p=typeof setTimeout=="function"?setTimeout:null,o=typeof clearTimeout=="function"?clearTimeout:null,i=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(a,z);else break;z=x(h)}}function g(V){if(c=!1,f(V),!l)if(x(a)!==null)l=!0,G(j);else{var z=x(h);z!==null&&q(g,z.startTime-V)}}function j(V,z){l=!1,c&&(c=!1,o(T),T=-1),u=!0;var X=s;try{for(f(z),y=x(a);y!==null&&(!(y.expirationTime>z)||V&&!C());){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(a)&&t(a),f(z)}else t(a);y=x(a)}if(y!==null)var E=!0;else{var I=x(h);I!==null&&q(g,I.startTime-z),E=!1}return E}finally{y=null,s=X,u=!1}}var M=!1,k=null,T=-1,P=5,R=-1;function C(){return!(r.unstable_now()-RV||125Q?(V.sortIndex=X,n(h,V),x(a)===null&&V===x(h)&&(c?(o(T),T=-1):c=!0,q(g,X-Q))):(V.sortIndex=oe,n(a,V),l||u||(l=!0,G(j))),V},r.unstable_shouldYield=C,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 * @@ -33,44 +33,44 @@ */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,_,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[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++,0m||w[d]!==_[m]){var a=` +`+w[d].replace(" at new "," at ");return r.displayName&&a.includes("")&&(a=a.replace("",r.displayName)),a}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],g);if(R===null){k===null&&(k=P);break}r&&k&&R.alternate===null&&n(o,k),i=_(R,i,T),M===null?j=R:M.sibling=R,M=R,k=P}if(T===f.length)return x(o,k),Ot&&Nn(o,T),j;if(k===null){for(;TT?(P=k,k=null):P=k.sibling;var C=s(o,k,R.value,g);if(C===null){k===null&&(k=P);break}r&&k&&C.alternate===null&&n(o,k),i=_(C,i,T),M===null?j=C:M.sibling=C,M=C,k=P}if(R.done)return x(o,k),Ot&&Nn(o,T),j;if(k===null){for(;!R.done;T++,R=f.next())R=y(o,R.value,g),R!==null&&(i=_(R,i,T),M===null?j=R:M.sibling=R,M=R);return Ot&&Nn(o,T),j}for(k=t(o,k);!R.done;T++,R=f.next())R=u(k,o,T,R.value,g),R!==null&&(r&&R.alternate!==null&&k.delete(R.key===null?T:R.key),i=_(R,i,T),M===null?j=R:M.sibling=R,M=R);return r&&k.forEach(function(D){return n(o,D)}),Ot&&Nn(o,T),j}function p(o,i,f,g){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 j=f.key,M=i;M!==null;){if(M.key===j){if(j=f.type,j===oo){if(M.tag===7){x(o,M.sibling),i=w(M,f.props.children),i.return=o,o=i;break e}}else if(M.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===bn&&Vc(j)===M.type){x(o,M.sibling),i=w(M,f.props),i.ref=qo(o,M,f),i.return=o,o=i;break e}x(o,M);break}else n(o,M);M=M.sibling}f.type===oo?(i=Hn(f.props.children,o.mode,g,f.key),i.return=o,o=i):(g=fi(f.type,f.key,f.props,null,o.mode,g),g.ref=qo(o,i,f),g.return=o,o=g)}return d(o);case no:e:{for(M=f.key;i!==null;){if(i.key===M)if(i.tag===4&&i.stateNode.containerInfo===f.containerInfo&&i.stateNode.implementation===f.implementation){x(o,i.sibling),i=w(i,f.children||[]),i.return=o,o=i;break e}else{x(o,i);break}else n(o,i);i=i.sibling}i=Pa(f,o.mode,g),i.return=o,o=i}return d(o);case bn:return M=f._init,p(o,i,M(f._payload),g)}if(Qo(f))return l(o,i,f,g);if(Go(f))return c(o,i,f,g);Zs(o,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,i!==null&&i.tag===6?(x(o,i.sibling),i=w(i,f),i.return=o,o=i):(x(o,i),i=Oa(f,o.mode,g),i.return=o,o=i),d(o)):x(o,i)}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 a=n.interleaved;a===null?(w.next=w,$l(n)):(w.next=a.next,a.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=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"&&Array.isArray(b)===Array.isArray(s);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&&!(Number.isNaN(b)&&Number.isNaN(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<\/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,a=-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||(a=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&&(a=d),(u=y.nextSibling)!==null)break;y=s,s=y.parentNode}y=u}x=m===-1||a===-1?null:{start:m,end:a}}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 c=l.memoizedProps,p=l.memoizedState,o=n.stateNode,i=o.getSnapshotBeforeUpdate(n.elementType===n.type?c:Gr(n.type,c),p);o.__reactInternalSnapshotBeforeUpdate=i}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(g){Ft(n,n.return,g)}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,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 a=0;aUt()-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 a=m.firstContext;a!==null;){if(a.context===t){if(_.tag===1){a=un(-1,x&-x),a.tag=2;var h=_.updateQueue;if(h!==null){h=h.shared;var b=h.pending;b===null?a.next=a:(a.next=b.next,b.next=a),h.pending=a}}_.lanes|=x,a=_.alternate,a!==null&&(a.lanes|=x),al(_.return,x,n),m.lanes|=x;break}a=a.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,a){return r=new vy(r,n,x,m,a),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,a;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"&&Array.isArray(b)===Array.isArray(s);if(b&&s&&u&&!Ey[(a=(m=Object.getPrototypeOf(b))==null?void 0:m.constructor)==null?void 0:a.name]&&(!x.cyclesFix||!t.includes(b))){const l=Lh(b,s,x,x.cyclesFix?t.concat([b]):[]);w.push.apply(w,l.map(c=>(c.path.unshift(y),c)))}else b!==s&&!(Number.isNaN(b)&&Number.isNaN(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.3 April 24, 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(a)return a(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 a=typeof ei=="function"&&ei,h=0;h>16&255,i[f++]=l>>8&255,i[f++]=255&l;return o===2&&(l=m[u.charCodeAt(c)]<<2|m[u.charCodeAt(c+1)]>>4,i[f++]=255&l),o===1&&(l=m[u.charCodeAt(c)]<<10|m[u.charCodeAt(c+1)]<<4|m[u.charCodeAt(c+2)]>>2,i[f++]=l>>8&255,i[f++]=255&l),i},_.fromByteArray=function(u){for(var l,c=u.length,p=c%3,o=[],i=0,f=c-p;i>18&63]+d[R>>12&63]+d[R>>6&63]+d[63&R]}(k));return T.join("")}(u,i,f>2]+d[l<<4&63]+"==")):p==2&&(l=(u[c-2]<<8)+u[c-1],o.push(d[l>>10]+d[l>>4&63]+d[l<<2&63]+"=")),o.join("")};for(var d=[],m=[],a=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:M(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):M(E,[I],B,W,$);throw new TypeError("val must be string, number or Buffer")}function M(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,l(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),a.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),a.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||C(E,I,this.length);for(var W=this[E],$=1,te=0;++te>>=0,I>>>=0,B||C(E,I,this.length);for(var W=this[E+--I],$=1;0>>=0,I||C(E,1,this.length),this[E]},s.prototype.readUInt16LE=function(E,I){return E>>>=0,I||C(E,2,this.length),this[E]|this[E+1]<<8},s.prototype.readUInt16BE=function(E,I){return E>>>=0,I||C(E,2,this.length),this[E]<<8|this[E+1]},s.prototype.readUInt32LE=function(E,I){return E>>>=0,I||C(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||C(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||C(E,I,this.length);for(var W=this[E],$=1,te=0;++te>>=0,I>>>=0,B||C(E,I,this.length);for(var W=I,$=1,te=this[E+--W];0>>=0,I||C(E,1,this.length),128&this[E]?-1*(255-this[E]+1):this[E]},s.prototype.readInt16LE=function(E,I){return E>>>=0,I||C(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||C(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||C(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||C(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||C(E,4,this.length),a.read(this,E,!0,23,4)},s.prototype.readFloatBE=function(E,I){return E>>>=0,I||C(E,4,this.length),a.read(this,E,!1,23,4)},s.prototype.readDoubleLE=function(E,I){return E>>>=0,I||C(E,8,this.length),a.read(this,E,!0,52,8)},s.prototype.readDoubleBE=function(E,I){return E>>>=0,I||C(E,8,this.length),a.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(a,w,_){var d=a("../internals/well-known-symbol"),m=a("../internals/object-create"),a=a("../internals/object-define-property"),h=d("unscopables"),b=Array.prototype;b[h]==null&&a.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,a,h){return a+(h?d(m,a).length:1)}},{"../internals/string-multibyte":124}],9:[function(t,w,_){w.exports=function(d,m,a){if(d instanceof m)return d;throw TypeError("Incorrect "+(a?a+" ":"")+"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,a=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"),c=A("../internals/redefine"),p=A("../internals/object-define-property").f,o=A("../internals/object-get-prototype-of"),i=A("../internals/object-set-prototype-of"),R=A("../internals/well-known-symbol"),A=A("../internals/uid"),f=b.Int8Array,g=f&&f.prototype,j=b.Uint8ClampedArray,j=j&&j.prototype,M=f&&o(f),k=g&&o(g),T=Object.prototype,P=T.isPrototypeOf,R=R("toStringTag"),C=A("TYPED_ARRAY_TAG"),D=a&&!!i&&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 M!="function"||M===Function.prototype)&&(M=function(){throw TypeError("Incorrect invocation")},D))for(m in N)b[m]&&i(b[m],M);if((!D||!k||k===T)&&(k=M.prototype,D))for(m in N)b[m]&&i(b[m].prototype,k);if(D&&o(j)!==k&&i(j,k),h&&!s(k,R))for(m in A=!0,p(k,R,{get:function(){return y(this)?this[C]:void 0}}),N)b[m]&&l(b[m],C,m);w.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:A&&C,aTypedArray:function(F){if(d(F))return F;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(F){if(i){if(P.call(M,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&&g[F]||G)}},exportTypedArrayStaticMethod:function(F,G,q){var V,z;if(h){if(i){if(q)for(V in N)(z=b[V])&&s(z,F)&&delete z[F];if(M[F]&&!q)return;try{return c(M,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:M,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 a(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 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;$ede;)(fe=ie[de++])in E||i(E,fe,oe[fe]);c.constructor=E}C&&R(B)!==W&&C(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){j(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){j(this,I,z),j(ee,E,z);var je=G(ee).byteLength,ye=M(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,a=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=a(m,{next:h(1,l)}),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"),a=t("../internals/create-property-descriptor");w.exports=d?function(h,b,y){return m.f(h,b,a(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"),a=t("../internals/create-property-descriptor");w.exports=function(h,b,y){b=d(b),b in h?m.f(h,b,a(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"),a=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"),c=o("../internals/is-pure"),p=o("../internals/iterators"),o=o("../internals/iterators-core"),i=o.IteratorPrototype,f=o.BUGGY_SAFARI_ITERATORS,g=l("iterator"),j="values",M="entries";w.exports=function(k,T,P,q,C,D,A){a(P,T,q);function N(E){if(E===C&&Q)return Q;if(!f&&E in z)return z[E];switch(E){case"keys":case j:case M: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[g]||z["@@iterator"]||C&&z[C],Q=!f&&X||N(C),oe=T=="Array"&&z.entries||X;if(oe&&(oe=h(oe.call(new k)),i!==Object.prototype&&oe.next&&(c||h(oe)===i||(b?b(oe,i):typeof oe[g]!="function"&&s(oe,g,d)),y(oe,q,!0,!0),c&&(p[q]=d))),C==j&&X&&X.name!==j&&(V=!0,Q=function(){return X.call(this)}),c&&!A||z[g]===Q||s(z,g,Q),p[T]=Q,C)if(F={values:N(j),keys:D?Q:N("keys"),entries:N(M)},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"),a=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:a.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"),a=d.document,h=m(a)&&m(a.createElement);w.exports=function(b){return h?a.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(a,w,_){var d,m,h=a("../internals/global"),a=a("../internals/engine-user-agent"),h=h.process,h=h&&h.versions,h=h&&h.v8;h?m=(d=h.split("."))[0]+d[1]:a&&(!(d=a.match(/Edge\/(\d+)/))||74<=d[1])&&(d=a.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,a=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 c,p,o,i=u.target,f=u.global,g=u.stat,j=f?d:g?d[i]||b(i,{}):(d[i]||{}).prototype;if(j)for(c in l){if(p=l[c],o=u.noTargetGet?(o=m(j,c))&&o.value:j[c],!s(f?c:i+(g?".":"#")+c,u.forced)&&o!==void 0){if(typeof p==typeof o)continue;y(p,o)}(u.sham||o&&o.sham)&&a(p,"sham",!0),h(j,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(l,w,_){l("../modules/es.regexp.exec");var d=l("../internals/redefine"),m=l("../internals/fails"),a=l("../internals/well-known-symbol"),h=l("../internals/regexp-exec"),b=l("../internals/create-non-enumerable-property"),y=a("species"),s=!m(function(){var o=/./;return o.exec=function(){var i=[];return i.groups={a:"7"},i},"".replace(o,"$")!=="7"}),u="a".replace(/./,"$0")==="$0",l=a("replace"),c=!!/./[l]&&/./[l]("a","$0")==="",p=!m(function(){var i=/(?:)/,o=i.exec,i=(i.exec=function(){return o.apply(this,arguments)},"ab".split(i));return i.length!==2||i[0]!=="a"||i[1]!=="b"});w.exports=function(o,i,f,g){var j,M,k=a(o),T=!m(function(){var R={};return R[k]=function(){return 7},""[o](R)!=7}),P=T&&!m(function(){var R=!1,C=/a/;return o==="split"&&((C={constructor:{}}).constructor[y]=function(){return C},C.flags="",C[k]=/./[k]),C.exec=function(){return R=!0,null},C[k](""),!R});T&&P&&(o!=="replace"||s&&u&&!c)&&(o!=="split"||p)||(j=/./[k],f=(P=f(k,""[o],function(R,C,D,A,N){return C.exec===h?T&&!N?{done:!0,value:j.call(C,D,A)}:{done:!0,value:R.call(D,C,A)}:{done:!1}},{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:c}))[0],M=P[1],d(String.prototype,o,f),d(RegExp.prototype,k,i==2?function(R,C){return M.call(R,this,C)}:function(R){return M.call(R,this)})),g&&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,l,c,p,o){for(var i,f=l,g=0,j=!!p&&h(p,o,3);g>1,j=s===23?m(2,-24)-m(2,-77):0,M=y<0||y===0&&1/y<0?1:0,k=0;for((y=d(y))!=y||y===1/0?(c=y!=y?1:0,l=f):(l=a(h(y)/b),y*(p=m(2,-l))<1&&(l--,p*=2),2<=(y+=1<=l+g?j/p:j*m(2,1-g))*p&&(l++,p/=2),f<=l+g?(c=0,l=f):1<=l+g?(c=(y*p-1)*m(2,s),l+=g):(c=y*m(2,g-1)*m(2,s),l=0));8<=s;o[k++]=255&c,c/=256,s-=8);for(l=l<>1,o=f-7,i=l-1,f=y[i--],g=127&f;for(f>>=7;0>=-o,o+=s;0"+g+""},f=function(){try{m=document.domain&&new ActiveXObject("htmlfile")}catch{}f=m?((g=m).write(i("")),g.close(),j=g.parentWindow.Object,g=null,j):(g=u("iframe"),j="java"+p+":",g.style.display="none",s.appendChild(g),g.src=String(j),(j=g.contentWindow.document).open(),j.write(i("document.F=Object")),j.close(),j.F);for(var g,j,M=b.length;M--;)delete f[c][b[M]];return f()};y[o]=!0,w.exports=Object.create||function(g,j){var M;return g!==null?(d[c]=a(g),M=new d,d[c]=null,M[o]=g):M=f(),j===void 0?M:h(M,j)}},{"../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"),a=t("../internals/an-object"),h=t("../internals/object-keys");w.exports=d?Object.defineProperties:function(b,y){a(b);for(var s,u=h(y),l=u.length,c=0;cl;)!d(u,s=y[l++])||~a(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(a){return d(a,m)}},{"../internals/enum-bug-keys":49,"../internals/object-keys-internal":99}],101:[function(t,w,_){var d={}.propertyIsEnumerable,m=Object.getOwnPropertyDescriptor,a=m&&!d.call({1:2},1);_.f=a?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 a,h=!1,b={};try{(a=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(b,[]),h=b instanceof Array}catch{}return function(y,s){return d(y),m(s),h?a.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"),a=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=a.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"),a=t("../internals/new-promise-capability");w.exports=function(h,b){return d(h),m(b)&&b.constructor===h?b:((0,(h=a.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,a,h){for(var b in a)d(m,b,a[b],h);return m}},{"../internals/redefine":109}],109:[function(y,w,_){var d=y("../internals/global"),m=y("../internals/create-non-enumerable-property"),a=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(c,p,o,j){var f=!!j&&!!j.unsafe,g=!!j&&!!j.enumerable,j=!!j&&!!j.noTargetGet;typeof o=="function"&&(typeof p!="string"||a(o,"name")||m(o,"name",p),u(o).source=l.join(typeof p=="string"?p:"")),c===d?g?c[p]=o:h(p,o):(f?!j&&c[p]&&(g=!0):delete c[p],g?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(a,h){var b=a.exec;if(typeof b=="function"){if(b=b.call(a,h),typeof b!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return b}if(d(a)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return m.call(a,h)}},{"./classof-raw":28,"./regexp-exec":111}],111:[function(h,w,_){var d,m,a=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),l=h.UNSUPPORTED_Y||h.BROKEN_CARET,c=/()??/.exec("")[1]!==void 0;w.exports=s=u||c||l?function(p){var o,i,f,g,j=this,M=l&&j.sticky,k=a.call(j),T=j.source,P=0,R=p;return M&&((k=k.replace("y","")).indexOf("g")===-1&&(k+="g"),R=String(p).slice(j.lastIndex),0i&&(p=p.slice(0,i)),y?c+p:p+c)}}var m=t("../internals/to-length"),a=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 g,j=[],M=(f=function(X){for(var Q=[],oe=0,E=X.length;oeo((a-T)/N))throw RangeError(c);for(T+=(D-k)*N,k=D,A=0;Aa)throw RangeError(c);if(g==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(a){return d(function(){return!!m[a]()||"​…᠎"[a]()!="​…᠎"||m[a].name!==a})}},{"../internals/fails":51,"../internals/whitespaces":150}],130:[function(a,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=a("../internals/require-object-coercible"),a="["+a("../internals/whitespaces")+"]",h=RegExp("^"+a+a+"*"),b=RegExp(a+a+"*$");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(C){return function(){R(C)}}function m(C){R(C.data)}function a(C){b.postMessage(C+"",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"),c=p("../internals/document-create-element"),p=p("../internals/engine-is-ios"),o=b.location,i=b.setImmediate,f=b.clearImmediate,g=b.process,j=b.MessageChannel,M=b.Dispatch,k=0,T={},P="onreadystatechange",R=function(C){var D;T.hasOwnProperty(C)&&(D=T[C],delete T[C],D())};i&&f||(i=function(C){for(var D=[],A=1;A=c.length?{value:l.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"),a.Arguments=a.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"),a=[].join,h=h!=Object,b=b("join",",");d({target:"Array",proto:!0,forced:h||!b},{join:function(y){return a.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,a=h("../internals/array-method-has-species-support"),h=h("../internals/array-method-uses-to-length"),a=a("map"),h=h("map");d({target:"Array",proto:!0,forced:!a||!h},{map:function(b){return m(this,b,1D;D++)y(M,P=C[D])&&!y(R,P)&&f(R,P,i(M,P));(R.prototype=k).constructor=R,b(a,j,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(l,c,p){return c===0?p:c%2==1?d(l,c-1,p*l):d(l*l,c/2,p)}var m=y("../internals/export"),a=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(j){function c(P,R){for(var C=-1,D=R;++C<6;)D+=P*M[C],M[C]=D%1e7,D=u(D/1e7)}function p(P){for(var R=6,C=0;0<=--R;)C+=M[R],M[R]=u(C/P),C=C%P*1e7}function o(){for(var P,R=6,C="";0<=--R;)C===""&&R!==0&&M[R]===0||(P=String(M[R]),C=C===""?P:C+b.call("0",7-P.length)+P);return C}var i,f,g=h(this),j=a(j),M=[0,0,0,0,0,0],k="",T="0";if(j<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){C.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,C.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){j(this,B,Q),g(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===a?new m:ie(Ae)},y||typeof l!="function"||(h=l.prototype.then,c(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 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),i(Q),a=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===a?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=g(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=g(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"),a=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)}),c=!s(function(){u(function(){})}),p=l||c;d({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(o,i){m(o),a(i);var f=arguments.length<3?o:m(arguments[2]);if(c&&!l)return u(o,i,f);if(o==f){switch(i.length){case 0:return new o;case 1:return new o(i[0]);case 2:return new o(i[0],i[1]);case 3:return new o(i[0],i[1],i[2]);case 4:return new o(i[0],i[1],i[2],i[3])}var g=[null];return g.push.apply(g,i),new(y.apply(o,g))}return g=f.prototype,f=b(h(g)?g:Object.prototype),g=Function.apply.call(o,f,i),h(g)?g: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"),a=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,l){var c,p=arguments.length<3?u:arguments[2];return a(u)===p?u[l]:(c=b.f(u,l))?h(c,"value")?c.value:c.get===void 0?void 0:c.get.call(p):m(c=y(u))?s(c,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 d=t("../internals/descriptors"),m=t("../internals/global"),a=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"),c=t("../internals/redefine"),p=t("../internals/fails"),o=t("../internals/internal-state").set,i=t("../internals/set-species"),f=t("../internals/well-known-symbol")("match"),g=m.RegExp,j=g.prototype,M=/a/g,k=/a/g,T=new g(M)!==M,P=l.UNSUPPORTED_Y;if(d&&a("RegExp",!T||P||p(function(){return k[f]=!1,g(M)!=M||g(k)==k||g(M,"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 g[A]},set:function(N){g[A]=N}})})(C[D++]);(j.constructor=R).prototype=j,c(m,"RegExp",R)}i("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"),a=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 l=m(this),c=String(l.source),p=l.flags;return"/"+c+"/"+String(p===void 0&&l instanceof RegExp&&!("flags"in b)?a.call(l):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(a){return function(){return a(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,a=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");d({target:"String",proto:!0,forced:!!(y||l||!(d=m(String.prototype,"endsWith"))||d.writable)&&!l},{endsWith:function(c){var p=String(b(this)),o=(h(c),1=u.length?{value:void 0,done:!0}:(u=d(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 d=t("../internals/fix-regexp-well-known-symbol-logic"),m=t("../internals/an-object"),a=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,l){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=l(u,c,this);if(p.done)return p.value;var o=m(c),i=String(this);if(!o.global)return y(o,i);for(var f=o.unicode,g=[],j=o.lastIndex=0;(M=y(o,i))!==null;){var M=String(M[0]);(g[j]=M)===""&&(o.lastIndex=b(i,a(o.lastIndex),f)),j++}return j===0?null:g}]})},{"../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(a){return m(this,a,1]*>)/g,i=/\$([$&'`]|\d\d?)/g;d("replace",2,function(f,g,j,M){var k=M.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,T=M.REPLACE_KEEPS_$0,P=k?"$":"$0";return[function(R,C){var D=y(this),A=R==null?void 0:R[f];return A!==void 0?A.call(R,D,C):g.call(String(D),R,C)},function(R,C){if(!k&&T||typeof C=="string"&&C.indexOf(P)===-1){var D=j(g,R,this,C);if(D.done)return D.value}for(var A,N=m(R),F=String(this),G=typeof C=="function",q=(G||(C=String(C)),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(C==0)return[];if(T===void 0)return[R];if(!m(T))return j.call(R,T,C);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=l.call(q,R))&&!(G<(A=q.lastIndex)&&(F.push(R.slice(G,D.index)),1=C));)q.lastIndex===D.index&&q.lastIndex++;return G===R.length?!N&&q.test("")||F.push(""):F.push(R.slice(G)),F.length>C?F.slice(0,C):F}:"0".split(void 0,0).length?function(T,P){return T===void 0&&P===0?[]:j.call(this,T,P)}:j;return[function(T,P){var R=h(this),C=T==null?void 0:T[g];return C!==void 0?C.call(T,R,P):k.call(String(R),T,P)},function(D,P){var R=M(k,D,this,P,k!==j);if(R.done)return R.value;var R=a(D),C=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?i:P>>>0;if(G==0)return[];if(C.length===0)return u(F,C)===null?[C]:[];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=j(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=j({},je,{"#":1,"?":1,"{":1,"}":1}),be=j({},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 g(){var ee=setTimeout;return function(){return ee(M,1)}}var j=new Array(1e3);function M(){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:l;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=j){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=M(W,V),z&&(Q=typeof z=="number"?z:127,W=W<=Q?0:255),I=M(I,q),E=M(E,q),oe=M(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]=g();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]=g();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]=g();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)}i(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),j),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=a?f-1:0,i=a?-1:1,f=d[m+o];for(o+=i,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,i=h?0:g-1,f=h?1:-1,g=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[a+i]=255&u,i+=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?a(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(a(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&&a(Ve(K.b),re))return He(K.b);for(;--K.a,0K.a||a(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||a(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[C(Ne)]=1)}we=!0}for(Ge=C(Pe),Z=this.b.c,ne=(Ge+1)%3,ge=(Ge+2)%3,Ge=0>=1;)++p;if(i=1<>8&255,a[s++]=255&b,a[s++]=b>>8&255,a[s++]=(l!==null?128:0)|p,a[s++]=o,a[s++]=0,l!==null)for(var f=0,g=l.length;f>16&255,a[s++]=j>>8&255,a[s++]=255&j}if(u!==null){if(u<0||65535>8&255,a[s++]=0}var M=!1;this.addFrame=function(k,T,P,R,C,D){if(M===!0&&(--s,M=!1),D=D===void 0?{}:D,k<0||T<0||65535>=1;)++F;var G=1<>8&255,a[s++]=X,a[s++]=0),a[s++]=44,a[s++]=255&k,a[s++]=k>>8&255,a[s++]=255&T,a[s++]=T>>8&255,a[s++]=255&P,a[s++]=P>>8&255,a[s++]=255&R,a[s++]=R>>8&255,a[s++]=A===!0?128|F-1:0,A===!0)for(var Q=0,oe=N.length;Q>16&255,a[s++]=E>>8&255,a[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,i-=p,T==u)c=1+l,o=(1<<(p=s+1))-1,k=null;else{if(T==l)break;for(var P=T>8,++R;var D=C;if(y>=8;k!==null&&c<4096&&(M[c++]=k<<8|D,o+1<=c&&p<12&&(++p,o=o<<1|1)),k=T}}g!==y&&console.log("Warning, gif stream shorter than expected.")}try{_.GifWriter=d,_.GifReader=function(a){var h=0;if(a[h++]!==71||a[h++]!==73||a[h++]!==70||a[h++]!==56||(a[h++]+1&253)!=56||a[h++]!==97)throw new Error("Invalid GIF 87a/89a header.");var b=a[h++]|a[h++]<<8,y=a[h++]|a[h++]<<8,s=a[h++],u=1<<1+(7&s),l=(a[h++],a[h++],null),c=null,p=(s>>7&&(l=h,h+=3*(c=u)),!0),o=[],i=0,f=null,g=0,j=null;for(this.width=b,this.height=y;p&&h>2&7,h++;break;case 254:for(;;){if(!(0<=(k=a[h++])))throw Error("Invalid block size");if(k===0)break;h+=k}break;default:throw new Error("Unknown graphic control label: 0x"+a[h-1].toString(16))}break;case 44:var k,T=a[h++]|a[h++]<<8,P=a[h++]|a[h++]<<8,R=a[h++]|a[h++]<<8,C=a[h++]|a[h++]<<8,q=a[h++],D=q>>6&1,A=1<<1+(7&q),N=l,F=c,G=!1,q=(q>>7&&(G=!0,N=h,h+=3*(F=A)),h);for(h++;;){if(!(0<=(k=a[h++])))throw Error("Invalid block size");if(k===0)break;h+=k}o.push({x:T,y:P,width:R,height:C,has_local_palette:G,palette_offset:N,palette_size:F,data_offset:q,data_length:h-q,transparent_index:f,interlaced:!!D,delay:i,disposal:g});break;case 59:p=!1;break;default:throw new Error("Unknown gif block: 0x"+a[h-1].toString(16))}this.numFrames=function(){return o.length},this.loopCount=function(){return j},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(a,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=a[oe+3*me],ue=a[oe+3*me+1],me=a[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(a,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=a[oe+3*me],ue=a[oe+3*me+1],me=a[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,a;m=this,a=function(h){function b(U){if(this==null)throw TypeError();var S,O=String(this),L=O.length,U=U?Number(U):0;if(!((U=U!=U?0:U)<0||L<=U))return 55296<=(S=O.charCodeAt(U))&&S<=56319&&U+1>>16-S;return v.tag>>>=S,v.bitcount-=S,L+O}function A(v,S){for(;v.bitcount<24;)v.tag|=v.source[v.sourceIndex++]<>>=1,O+=S.table[++U],0<=(L-=S.table[U]););return v.tag=H,v.bitcount-=U,S.trans[O+L]}function N(v,S,O){for(;;){var L=A(v,S);if(L===256)return s;if(L<256)v.dest[v.destLen++]=L;else for(var U,H=D(v,i[L-=257],f[L]),L=A(v,O),Y=U=v.destLen-D(v,g[L],j[L]);Y>>=1,L=U,D(H,2,0)){case 0:O=function(Me){for(var tt,lt;8this.x2&&(this.x2=v)),typeof S=="number"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=S,this.y2=S),Sthis.y2&&(this.y2=S))},X.prototype.addX=function(v){this.addPoint(v,null)},X.prototype.addY=function(v){this.addPoint(null,v)},X.prototype.addBezier=function(v,S,O,L,U,H,Y,J){var le=[v,S],ae=[O,L],ve=[U,H],ke=[Y,J];this.addPoint(v,S),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(v,S,O,L,U,H){O=v+2/3*(O-v),L=S+2/3*(L-S),this.addBezier(v,S,O,L,O+1/3*(U-v),L+1/3*(H-S),U,H)},Q.prototype.moveTo=function(v,S){this.commands.push({type:"M",x:v,y:S})},Q.prototype.lineTo=function(v,S){this.commands.push({type:"L",x:v,y:S})},Q.prototype.curveTo=Q.prototype.bezierCurveTo=function(v,S,O,L,U,H){this.commands.push({type:"C",x1:v,y1:S,x2:O,y2:L,x:U,y:H})},Q.prototype.quadTo=Q.prototype.quadraticCurveTo=function(v,S,O,L){this.commands.push({type:"Q",x1:v,y1:S,x:O,y:L})},Q.prototype.close=Q.prototype.closePath=function(){this.commands.push({type:"Z"})},Q.prototype.extend=function(v){var S;if(v.commands)v=v.commands;else if(v instanceof X)return S=v,this.moveTo(S.x1,S.y1),this.lineTo(S.x2,S.y1),this.lineTo(S.x2,S.y2),this.lineTo(S.x1,S.y2),void this.close();Array.prototype.push.apply(this.commands,v)},Q.prototype.getBoundingBox=function(){for(var v=new X,S=0,O=0,L=0,U=0,H=0;H>8&255,255&v]},$.USHORT=te(2),W.SHORT=function(v){return[(v=32768<=v?-(65536-v):v)>>8&255,255&v]},$.SHORT=te(2),W.UINT24=function(v){return[v>>16&255,v>>8&255,255&v]},$.UINT24=te(3),W.ULONG=function(v){return[v>>24&255,v>>16&255,v>>8&255,255&v]},$.ULONG=te(4),W.LONG=function(v){return[(v=2147483648<=v?-(4294967296-v):v)>>24&255,v>>16&255,v>>8&255,255&v]},$.LONG=te(4),W.FIXED=W.ULONG,$.FIXED=$.ULONG,W.FWORD=W.SHORT,$.FWORD=$.SHORT,W.UFWORD=W.USHORT,$.UFWORD=$.USHORT,W.LONGDATETIME=function(v){return[0,0,0,0,v>>24&255,v>>16&255,v>>8&255,255&v]},$.LONGDATETIME=te(8),W.TAG=function(v){return I.argument(v.length===4,"Tag should be exactly 4 ASCII characters."),[v.charCodeAt(0),v.charCodeAt(1),v.charCodeAt(2),v.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(v){return-107<=v&&v<=107?[v+139]:108<=v&&v<=1131?[247+((v-=108)>>8),255&v]:-1131<=v&&v<=-108?[251+((v=-v-108)>>8),255&v]:-32768<=v&&v<=32767?W.NUMBER16(v):W.NUMBER32(v)},$.NUMBER=function(v){return W.NUMBER(v).length},W.NUMBER16=function(v){return[28,v>>8&255,255&v]},$.NUMBER16=te(3),W.NUMBER32=function(v){return[29,v>>24&255,v>>16&255,v>>8&255,255&v]},$.NUMBER32=te(5),W.REAL=function(v){for(var S=v.toString(),O=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(S),L=(O&&(O=parseFloat("1e"+((O[2]?+O[2]:0)+O[1].length)),S=(Math.round(v*O)/O).toString()),""),U=0,H=S.length;U>8&255,S[S.length]=255&L}return S},$.UTF16=function(v){return 2*v.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(v,S,O,L){var U=fe[L];if(U!==void 0){for(var H="",Y=0;Y>8&255,xe+256&255)}return ae})(v,L,S);return S},W.INDEX=function(v){for(var S=1,O=[S],L=[],U=0;U>8,S[ve+1]=255&ke,S=S.concat(L[ae])}return S},$.TABLE=function(v){for(var S=0,O=v.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<=S&&S<=246)return S-139;if(247<=S&&S<=250)return 256*(S-247)+v.parseByte()+108;if(251<=S&&S<=254)return 256*-(S-251)-v.parseByte()-108;throw new Error("Invalid b0 "+S)}function sr(v,S,O){var L=new Ee.Parser(v,S=S!==void 0?S:0),U=[],H=[];for(O=O!==void 0?O:v.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 "+S.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()+v.gsubrsBias,(Ur=v.gsubrs[ar])&&nt(Ur);break;case 30:for(;0=O.begin&&v=ge.length&&(H=L.parseChar(),O.names.push(L.parseString(H)));break;case 2.5:O.numberOfGlyphs=L.parseUShort(),O.offset=new Array(O.numberOfGlyphs);for(var J=0;Jke.value.tag?1:-1}),S.fields=S.fields.concat(L),S.fields=S.fields.concat(U),S}function Eu(v,S,O){for(var L=0;L 123 are reserved for internal usage");he|=1<>>1,H=v[U].tag;if(H===S)return U;H>>1,H=v[U];if(H===S)return U;H>>1,Y=(U=v[H]).start;if(Y===S)return U;Y(U=v[O-1]).end?0:U}function Ls(v,S){this.font=v,this.tableName=S}function As(v){Ls.call(this,v,"gpos")}function Zr(v){Ls.call(this,v,"gsub")}function Mu(v,S,O){for(var L=v.subtables,U=0;US.points.length-1||L.matchedPoints[1]>U.points.length-1)throw Error("Matched points out of range in "+S.name);var Y=S.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)}S.points=S.points.concat(H)}}return Pu(S.points)}(As.prototype=Ls.prototype={searchTag:ea,binSearch:ku,getTable:function(v){var S=this.font.tables[this.tableName];return S=!S&&v?this.font.tables[this.tableName]=this.createDefaultTable():S},getScriptNames:function(){var v=this.getTable();return v?v.scripts.map(function(S){return S.tag}):[]},getDefaultScriptName:function(){var v=this.getTable();if(v){for(var S=!1,O=0;O=Y[S-1].tag,"Features must be added in alphabetical order."),Y.push(U={tag:O,feature:{params:0,lookupListIndexes:[]}}),H.push(S),U.feature}},getLookupTables:function(H,S,O,L,U){var H=this.getFeatureTable(H,S,O,U),Y=[];if(H){for(var J,le=H.lookupListIndexes,ae=this.font.tables[this.tableName].lookups,ve=0;ve",H),S.stack.push(Math.round(64*H))}function na(v,S){var O=S.stack,L=O.pop(),U=S.fv,H=S.pv,Y=S.ppem,J=S.deltaBase+16*(v-1),le=S.deltaShift,ae=S.z0;h.DEBUG&&console.log(S.step,"DELTAP["+v+"]",L,O);for(var ve=0;ve>4)===Y&&(0<=(xe=(15&xe)-8)&&xe++,h.DEBUG&&console.log(S.step,"DELTAPFIX",ke,"by",xe*le),ke=ae[ke],U.setRelative(ke,ke,xe*le,H))}}function Is(v,S){var O=S.stack,L=O.pop();h.DEBUG&&console.log(S.step,"ROUND[]"),O.push(64*S.round(L/64))}function oa(v,S){var O=S.stack,L=O.pop(),U=S.ppem,H=S.deltaBase+16*(v-1),Y=S.deltaShift;h.DEBUG&&console.log(S.step,"DELTAC["+v+"]",L,O);for(var J=0;J>4)===U&&(0<=(ae=(15&ae)-8)&&ae++,ae=ae*Y,h.DEBUG&&console.log(S.step,"DELTACFIX",le,"by",ae),S.cvt[le]+=ae)}}function $u(v,S){var O,U=S.stack,L=U.pop(),U=U.pop(),H=S.z2[L],Y=S.z1[U];h.DEBUG&&console.log(S.step,"SDPVTL["+v+"]",L,U),L=v?(O=H.y-Y.y,Y.x-H.x):(O=Y.x-H.x,Y.y-H.y),S.dpv=No(O,L)}function yn(v,S){var O=S.stack,L=S.prog,U=S.ip;h.DEBUG&&console.log(S.step,"PUSHB["+v+"]");for(var H=0;H":"_")+(L?"R":"_")+(U===0?"Gr":U===1?"Bl":U===2?"Wh":"")+"]",v?le+"("+H.cvt[le]+","+J+")":"",ae,"(d =",Y,"->",Le*Oe,")"),H.rp1=H.rp0,H.rp2=ae,S&&(H.rp0=ae)}Au.prototype.exec=function(v,S){if(typeof S!="number")throw new Error("Point size is not a number!");if(!(2",L),J.interpolate(ke,H,Y,le),J.touch(ke)}v.loop=1},Xu.bind(void 0,0),Xu.bind(void 0,1),function(v){for(var S=v.stack,O=v.rp0,L=v.z0[O],U=v.loop,H=v.fv,Y=v.pv,J=v.z1;U--;){var le=S.pop(),ae=J[le];h.DEBUG&&console.log(v.step,(1"u"?$h:Kh)(v,function(O,L){if(O)return S(O);var U;try{U=sa(L)}catch(H){return S(H,null)}return S(null,U)})},h.loadSync=function(v){return sa(Cu(t("fs").readFileSync(v)))},Object.defineProperty(h,"__esModule",{value:!0})},a(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 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 a(b,y){if(b.filter)return b.filter(y);for(var s=[],u=0;u'.concat(i,"").concat(c,""),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!==i&&(this.descriptions.fallbackElements[l].innerHTML=i):this._describeElementHTML("fallback",l,i),p===this.LABEL&&(this.descriptions.labelElements||(this.descriptions.labelElements={}),this.descriptions.labelElements[l]?this.descriptions.labelElements[l].innerHTML!==i&&(this.descriptions.labelElements[l].innerHTML=i):this._describeElementHTML("label",l,i)))},d.default.prototype._describeHTML=function(l,c){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(a)),this.descriptions.fallback.innerHTML=c):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=c)},d.default.prototype._describeElementHTML=function(l,c,p){var o,i=this.canvas.id;l==="fallback"?(this.dummyDOM.querySelector("#".concat(i+m))?this.dummyDOM.querySelector("#"+i+h)||this.dummyDOM.querySelector("#"+i+a).insertAdjacentHTML("afterend",'
        Canvas elements and their descriptions
        ')):(o='
        Canvas elements and their descriptions
        '),this.dummyDOM.querySelector("#".concat(i,"accessibleOutput"))?this.dummyDOM.querySelector("#".concat(i,"accessibleOutput")).insertAdjacentHTML("beforebegin",o):this.dummyDOM.querySelector("#"+i).innerHTML=o),(o=document.createElement("tr")).id=i+"_fte_"+c,this.dummyDOM.querySelector("#"+i+h).appendChild(o),this.descriptions.fallbackElements[c]=this.dummyDOM.querySelector("#".concat(i).concat("_fte_").concat(c)),this.descriptions.fallbackElements[c].innerHTML=p):l==="label"&&(this.dummyDOM.querySelector("#".concat(i+b))?this.dummyDOM.querySelector("#".concat(i+s))||this.dummyDOM.querySelector("#"+i+y).insertAdjacentHTML("afterend",'
        ')):(o='
        '),this.dummyDOM.querySelector("#".concat(i,"accessibleOutputLabel"))?this.dummyDOM.querySelector("#".concat(i,"accessibleOutputLabel")).insertAdjacentHTML("beforebegin",o):this.dummyDOM.querySelector("#"+i).insertAdjacentHTML("afterend",o)),(l=document.createElement("tr")).id=i+"_lte_"+c,this.dummyDOM.querySelector("#"+i+s).appendChild(l),this.descriptions.labelElements[c]=this.dummyDOM.querySelector("#".concat(i).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,a,h,b;this.dummyDOM.querySelector("#".concat(d,"_summary"))&&(m=this._accessibleOutputs[d],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}((a=function(y,s){var u,l="",c="",p=0;for(u in s){var o,i=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,i++,p++}c=1').concat(s[u][i].color," ").concat(u,"
        "):'').concat(s[u][i].color," ").concat(u," midpoint"),o[s[u][i].loc.locY][s[u][i].loc.locX]?o[s[u][i].loc.locY][s[u][i].loc.locX]=o[s[u][i].loc.locY][s[u][i].loc.locX]+" "+f:o[s[u][i].loc.locY][s[u][i].loc.locX]=f,c++}for(l in o){var g,j="";for(g in o[l])j+="",o[l][g]!==void 0&&(j+=o[l][g]),j+="";p=p+j+""}return p}(d,this.ingredients.shapes),h!==m.summary.innerHTML&&(m.summary.innerHTML=h),b!==m.map.innerHTML&&(m.map.innerHTML=b),a.details!==m.shapeDetails.innerHTML&&(m.shapeDetails.innerHTML=a.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(l)).innerHTML='
        '))):b==="Label"&&(y=l+h+(c=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"?(c="#".concat(l,"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(l,"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={},l=!0,c=function(o,i){var f;return o=o==="rectangle"||o==="ellipse"||o==="arc"||o==="circle"||o==="square"?(f=Math.round(i[0]+i[2]/2),Math.round(i[1]+i[3]/2)):o==="triangle"?(f=(i[0]+i[2]+i[4])/3,(i[1]+i[3]+i[5])/3):o==="quadrilateral"?(f=(i[0]+i[2]+i[4]+i[6])/4,(i[1]+i[3]+i[5]+i[7])/4):o==="line"?(f=(i[0]+i[2])/2,(i[1]+i[3])/2):(f=i[0],i[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=a(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=a(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)&&(l=!1);l===!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,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),c=this.height*this._pixelDensity,p=[new DOMPoint(0,0),new DOMPoint(l,0),new DOMPoint(l,c),new DOMPoint(0,c)],o=(this._renderer.isP3D?new DOMMatrix(this._renderer.uMVMatrix.mat4):this.drawingContext.getTransform()).inverse(),i=p.map(function(g){return g.matrixTransform(o)}),f=Math.abs((i[3].x+i[0].x)*(i[3].y-i[0].y)+(i[0].x+i[1].x)*(i[0].y-i[1].y)+(i[1].x+i[2].x)*(i[1].y-i[2].y)+(i[2].x+i[3].x)*(i[2].y-i[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,a,h,b;this.dummyDOM.querySelector("#".concat(d,"_summary"))&&(m=this._accessibleOutputs[d],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}((a=function(y,s){var u,l="",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+="."),l+=o,c++}return{numShapes:c,listShapes:l}}(d,this.ingredients.shapes)).numShapes,this.ingredients.colors.background,this.width,this.height),b=function(y,s){var u,l="",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+=""),l+=o,c++}return l}(d,this.ingredients.shapes),h!==m.summary.innerHTML&&(m.summary.innerHTML=h),a.listShapes!==m.list.innerHTML&&(m.list.innerHTML=a.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],a=d[1],h=d[2],b=(2-a)*h/2;return b!=0&&(b==1?a=0:b<.5?a/=2-a:a=a*h/(2-2*b)),[m,a,b,d[3]]},_hsbaToRGBA:function(d){var m,a,h,b,y,s=6*d[0],u=d[1],l=d[2];return u===0?[l,l,l,d[3]]:(a=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,a):m===2?(b=a,y=l,u):m===3?(b=a,y=h,l):m===4?(b=u,y=a,l):m===5?(b=l,y=a,h):(b=l,y=u,a),[b,y,s,d[3]])},_hslaToHSBA:function(d){var m=d[0],a=d[1],h=d[2],b=h<.5?(1+a)*h:h+a-h*a;return[m,a=2*(b-h)/b,b,d[3]]},_hslaToRGBA:function(d){var m,a=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+a,h=2*b-(b=b<.5?(1+h)*b:b+h-b*h),b),m(a,h,b),m(a-2,h,b),d[3]]},_rgbaToHSBA:function(d){var m,a,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?a=m=0:(a=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,a,s,d[3]]},_rgbaToHSLA:function(d){var m,a,h=d[0],b=d[1],y=d[2],s=Math.max(h,b,y),l=Math.min(h,b,y),u=s+l,l=s-l;return l==0?a=m=0:(a=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,a,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 a=(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,c={},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(c,l,o):c[l]=s[l])}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"),a.default.prototype.alpha=function(s){return a.default._validateParameters("alpha",arguments),this.color(s)._getAlpha()},a.default.prototype.blue=function(s){return a.default._validateParameters("blue",arguments),this.color(s)._getBlue()},a.default.prototype.brightness=function(s){return a.default._validateParameters("brightness",arguments),this.color(s)._getBrightness()},a.default.prototype.color=function(){for(var s,u=arguments.length,l=new Array(u),c=0;co[0]?o[0]+=1:p[0]+=1),1<=(c=this.lerp(p[0],o[0],l))&&--c),s=this.lerp(p[1],o[1],l),u=this.lerp(p[2],o[2],l),p=this.lerp(p[3],o[3],l),c*=f[i][0],s*=f[i][1],u*=f[i][2],p*=f[i][3],this.color(c,s,u,p)},a.default.prototype.lightness=function(s){return a.default._validateParameters("lightness",arguments),this.color(s)._getLightness()},a.default.prototype.red=function(s){return a.default._validateParameters("red",arguments),this.color(s)._getRed()},a.default.prototype.saturation=function(s){return a.default._validateParameters("saturation",arguments),this.color(s)._getSaturation()};var y=a.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(g){return(d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j})(g)}function m(g){return(m=typeof Symbol=="function"&&d(Symbol.iterator)==="symbol"?function(j){return d(j)}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":d(j)})(g)}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 a=s(c("../core/main")),h=function(g){if(g&&g.__esModule)return g;if(g===null||m(g)!=="object"&&typeof g!="function")return{default:g};var j=y();if(j&&j.has(g))return j.get(g);var M,k={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(M in g){var P;Object.prototype.hasOwnProperty.call(g,M)&&((P=T?Object.getOwnPropertyDescriptor(g,M):null)&&(P.get||P.set)?Object.defineProperty(k,M,P):k[M]=g[M])}return k.default=g,j&&j.set(g,k),k}(c("../core/constants")),b=s(c("./color_conversion"));function y(){var g;return typeof WeakMap!="function"?null:(g=new WeakMap,y=function(){return g},g)}function s(g){return g&&g.__esModule?g:{default:g}}function u(g,j){for(var M=0;M"].indexOf(u[0])?void 0:u[0],lineNumber:u[1],columnNumber:u[2],source:y}},this)},parseFFOrSafari:function(b){return b.stack.split(` +For more details, see: `).concat(h)),!0})}var a=null,b=null,h=(d.default._friendlyError=d.default._checkForUserDefinedFunctions=d.default._fesErrorMonitor=function(){},a=null,"https://github.com/processing/p5.js/wiki/p5.js-overview#why-cant-i-assign-variables-using-p5-functions-and-variables-before-setup"),b=function(){function s(l){return Object.getOwnPropertyNames(l).filter(function(c){return c[0]!=="_"&&!(c in u)&&(u[c]=!0)}).map(function(c){var p=typeof l[c]=="function"?"function":c===c.toUpperCase()?"constant":"variable";return{name:c,type:p}})}var u={};(a=[].concat(s(d.default.prototype),s(t("../constants")))).sort(function(l,c){return c.name.length-l.name.length})},y=(d.default.prototype._helpForMisusedAtTopLevelCode=m,document.readyState!=="complete"&&(window.addEventListener("error",m,!1),window.addEventListener("load",function(){window.removeEventListener("error",m,!1)})),d.default);_.default=y},{"../constants":269,"../internationalization":278,"../main":280,"./browser_errors":void 0,"core-js/modules/es.array.concat":152,"core-js/modules/es.array.filter":156,"core-js/modules/es.array.for-each":160,"core-js/modules/es.array.includes":162,"core-js/modules/es.array.iterator":164,"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.array.some":169,"core-js/modules/es.function.name":173,"core-js/modules/es.object.assign":181,"core-js/modules/es.object.get-own-property-names":184,"core-js/modules/es.object.keys":186,"core-js/modules/es.object.to-string":187,"core-js/modules/es.regexp.constructor":191,"core-js/modules/es.regexp.exec":192,"core-js/modules/es.regexp.to-string":193,"core-js/modules/es.string.iterator":197,"core-js/modules/es.string.match":198,"core-js/modules/es.string.replace":201,"core-js/modules/es.string.split":203,"core-js/modules/es.string.starts-with":204,"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.for-each":242,"core-js/modules/web.dom-collections.iterator":243}],272:[function(t,w,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var d=(d=t("../main"))&&d.__esModule?d:{default:d};t("../internationalization"),d.default._friendlyFileLoadError=function(){},t=d.default,_.default=t},{"../internationalization":278,"../main":280}],273:[function(t,w,_){function d(u){return(d=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"&&d(Symbol.iterator)==="symbol"?function(l){return d(l)}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":d(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.filter"),t("core-js/modules/es.array.for-each"),t("core-js/modules/es.array.from"),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.map"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.object.get-own-property-descriptor"),t("core-js/modules/es.object.keys"),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.includes"),t("core-js/modules/es.string.iterator"),t("core-js/modules/es.string.match"),t("core-js/modules/es.string.split"),t("core-js/modules/es.string.trim"),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.array.filter"),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.join"),t("core-js/modules/es.array.map"),t("core-js/modules/es.array.slice"),t("core-js/modules/es.object.keys"),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.includes"),t("core-js/modules/es.string.match"),t("core-js/modules/es.string.split"),t("core-js/modules/es.string.trim"),t("core-js/modules/web.dom-collections.for-each"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var a=y(t("../main"));t("../internationalization"),b(t("../constants"));function h(){var u;return typeof WeakMap!="function"?null:(u=new WeakMap,h=function(){return u},u)}function b(u){if(u&&u.__esModule)return u;if(u===null||m(u)!=="object"&&typeof u!="function")return{default:u};var l=h();if(l&&l.has(u))return l.get(u);var c,p,o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(c in u)Object.prototype.hasOwnProperty.call(u,c)&&((p=i?Object.getOwnPropertyDescriptor(u,c):null)&&(p.get||p.set)?Object.defineProperty(o,c,p):o[c]=u[c]);return o.default=u,l&&l.set(u,o),o}function y(u){return u&&u.__esModule?u:{default:u}}a.default._fesCodeReader=function(){};var s=a.default;_.default=s},{"../constants":269,"../internationalization":278,"../main":280,"core-js/modules/es.array.filter":156,"core-js/modules/es.array.for-each":160,"core-js/modules/es.array.from":161,"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.map":167,"core-js/modules/es.array.slice":168,"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.regexp.constructor":191,"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.match":198,"core-js/modules/es.string.split":203,"core-js/modules/es.string.trim":206,"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}],274:[function(t,w,_){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.regexp.exec"),t("core-js/modules/es.string.match"),t("core-js/modules/es.string.replace"),t("core-js/modules/es.string.split"),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.regexp.exec"),t("core-js/modules/es.string.match"),t("core-js/modules/es.string.replace"),t("core-js/modules/es.string.split"),Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0,t=(t=t("../main"))&&t.__esModule?t:{default:t};function d(){var m=/(^|@)\S+:\d+/,a=/^\s*at .*(\S+:\d+|\(native\))/m,h=/^(eval@)?(\[native code])?$/;return{parse:function(b){return b.stacktrace!==void 0||b["opera#sourceloc"]!==void 0?this.parseOpera(b):b.stack&&b.stack.match(a)?this.parseV8OrIE(b):b.stack?this.parseFFOrSafari(b):void 0},extractLocation:function(b){return b.indexOf(":")===-1?[b]:[(b=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(b.replace(/[()]/g,"")))[1],b[2]||void 0,b[3]||void 0]},parseV8OrIE:function(b){return b.stack.split(` +`).filter(function(y){return!!y.match(a)},this).map(function(y){var s=(y=-1"].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=[],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/,"$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 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=a();if(y&&y.has(b))return y.get(b);var s,u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(s in b){var c;Object.prototype.hasOwnProperty.call(b,s)&&((c=l?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 a(){var b;return typeof WeakMap!="function"?null:(b=new WeakMap,a=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 a=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 c;Object.prototype.hasOwnProperty.call(b,s)&&((c=l?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,l){return l===a.CORNER?{x:b,y,w:s,h:u}:l===a.CORNERS?{x:b,y,w:s-b,h:u-y}:l===a.RADIUS?{x:b-s,y:y-u,w:2*s,h:2*u}:l===a.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(a,h){document.readyState==="complete"?a():window.addEventListener("load",a,!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,a=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 c=0;c=D.width||k>=D.height?[0,0,0,0]:this._getPixel(M,k);return R=new m.default.Image(T*C,P*C),R.pixelDensity(C),R.canvas.getContext("2d").drawImage(D,M,k,T*C,P*C,0,0,T*C,P*C),R}},{key:"textLeading",value:function(M){return typeof M=="number"?(this._setProperty("_leadingSet",!0),this._setProperty("_textLeading",M),this._pInst):this._textLeading}},{key:"textStyle",value:function(M){return M?(M!==a.NORMAL&&M!==a.ITALIC&&M!==a.BOLD&&M!==a.BOLDITALIC||this._setProperty("_textStyle",M),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(M,k){return M!==void 0?(this._setProperty("_textAlign",M),k!==void 0&&this._setProperty("_textBaseline",k),this._applyTextProperties()):{horizontal:this._textAlign,vertical:this._textBaseline}}},{key:"textWrap",value:function(M){return this._setProperty("_textWrap",M),this._textWrap}},{key:"text",value:function(M,k,T,P,R){var C,D,A,N,F=this._pInst,G=this._textWrap,q=Number.MAX_VALUE,V=T;if((this._doFill||this._doStroke)&&M!==void 0){if(C=(M=(M=typeof M!="string"?M.toString():M).replace(/(\t)/g," ")).split(` +`),P!==void 0){switch(this._rectMode===a.CENTER&&(k-=P/2),this._textAlign){case a.CENTER:k+=P/2;break;case a.RIGHT:k+=P}if(R!==void 0){this._rectMode===a.CENTER&&(T-=R/2,V-=R/2);var M=T,z=F.textAscent();switch(this._textBaseline){case a.BOTTOM:N=T+R,T=Math.max(N,T),V+=z;break;case a.CENTER:N=T+R/2,T=Math.max(N,T),V+=z/2}q=T+R-z,this._textBaseline===a.CENTER&&(q=M+R-z/2)}else this._textBaseline!==a.BOTTOM&&this._textBaseline!==a.CENTER||(V=T-(M=F.textSize()*this._textLeading)/2,q=T+M/2);if(G===a.WORD){for(var X=[],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,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)&&j.deviceMoved(),typeof j.deviceTurned=="function"&&(o=this._toDegrees(this.rotationX)+180,i=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"),c=l.getImageData(0,0,y.width,y.height),p=p(c,u);p instanceof ImageData?l.putImageData(p,0,0,0,0,y.width,y.height):l.putImageData(c,0,0,0,0,y.width,y.height)},threshold:function(y){for(var s=1>8)/l,u[c+1]=255*(o*s>>8)/l,u[c+2]=255*(i*s>>8)/l}},dilate:function(y){for(var s,u,l,c,p,o,i,f,g,j=b._toPixels(y),M=0,k=j.length?j.length/4:0,T=new Int32Array(k);M>16&255)+151*(c>>8&255)+28*(255&c))<(i=77*(g>>16&255)+151*(g>>8&255)+28*(255&g))&&(l=g,c=i),c<(i=77*((g=b._getARGB(j,f))>>16&255)+151*(g>>8&255)+28*(255&g))&&(l=g,c=i),c<(f=77*(p>>16&255)+151*(p>>8&255)+28*(255&p))&&(l=p,c=f),c<(g=77*(o>>16&255)+151*(o>>8&255)+28*(255&o))&&(l=o,c=g),T[M++]=l;b._setPixels(j,T)},erode:function(y){for(var s,u,l,c,p,o,i,f,g,j=b._toPixels(y),M=0,k=j.length?j.length/4:0,T=new Int32Array(k);M>16&255)+151*(g>>8&255)+28*(255&g))<(c=77*(c>>16&255)+151*(c>>8&255)+28*(255&c))&&(l=g,c=i),(i=77*((g=b._getARGB(j,f))>>16&255)+151*(g>>8&255)+28*(255&g))>16&255)+151*(p>>8&255)+28*(255&p))>16&255)+151*(o>>8&255)+28*(255&o))>>24],l+=G[(16711680&de)>>16],c+=G[(65280&de)>>8],p+=G[255&de],u+=a[F],i++}Q[f=B+A]=o/u,oe[f]=l/u,E[f]=c/u,I[f]=p/u}B+=T}for(j=(g=-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=l&&(l=Math.floor(c.timeDisplayed/l),c.timeDisplayed=0,c.lastChangeTime=p,c.displayIndex+=l,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,l){this[u]=l,this.setModified(!0)}},{key:"loadPixels",value:function(){d.default.Renderer2D.prototype.loadPixels.call(this),this.setModified(!0)}},{key:"updatePixels",value:function(u,l,c,p){d.default.Renderer2D.prototype.updatePixels.call(this,u,l,c,p),this.setModified(!0)}},{key:"get",value:function(u,l,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,l=new Array(u),c=0;c/g,">").replace(/"/g,""").replace(/'/g,"'")}function u(l,c){c&&c!==!0&&c!=="true"||(c="");var p="";return(l=l||"untitled")&&l.includes(".")&&(p=l.split(".").pop()),c&&p!==c&&(p=c,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,c=new Array(l),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... +`?(G(),q()):T===o?G():R.currentState===1&&(R.token+=T)}if(i)j.columns=D.shift();else for(var V=0;V"),i.print(""),i.print(' '),i.print(""),i.print(""),i.print(" "),f[0]!=="0"){i.print(" ");for(var T=0;T".concat(P)),i.print(" ")}i.print(" ")}for(var R=0;R");for(var C=0;C".concat(D)),i.print(" ")}i.print(" ")}i.print("
            "),i.print(""),i.print("")}i.close(),i.clear()},m.default.prototype.writeFile=function(i,c,p){var o="application/octet-stream",i=(m.default.prototype._isSafari()&&(o="text/plain"),new Blob(i,{type:o}));m.default.prototype.downloadFile(i,c,p)},m.default.prototype.downloadFile=function(l,i,f){var o,i=u(i,f),f=i[0];l instanceof Blob?h.default.saveAs(l,f):((o=document.createElement("a")).href=l,o.download=f,o.onclick=function(g){document.body.removeChild(g.target),g.stopPropagation()},o.style.display="none",document.body.appendChild(o),m.default.prototype._isSafari()&&(l=(l=`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(l[1],'"'),alert(a)),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 d=(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(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:(s>>0},getSeed:function(){return u},rand:function(){return(l=(1664525*l+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(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"&&d(Symbol.iterator)==="symbol"?function(l){return d(l)}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":d(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.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.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 a=(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 c,p={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(c in u){var i;Object.prototype.hasOwnProperty.call(u,c)&&((i=o?Object.getOwnPropertyDescriptor(u,c):null)&&(i.get||i.set)?Object.defineProperty(p,c,i):p[c]=u[c])}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 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,l;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&&(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;VB&&(fe=z,te=F,se=G,z=ce+B*($&&ce=a?h.substring(h.length-a,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,l){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=[],i=!0,f=!1,g=void 0;try{for(var j,M=c[Symbol.iterator]();!(i=(j=M.next()).done)&&(o.push(j.value),!p||o.length!==p);i=!0);}catch(k){f=!0,g=k}finally{try{i||M.return==null||M.return()}finally{if(f)throw g}}return o}}(u,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(u,l,c){var o=m(u.toString().split("."),2),p=o[0],o=o[1];return c===void 0?(p=p.padStart(l,"0"),o?p+"."+o:p):(p=(u=m(u.toFixed(c).toString().split("."),2))[0],o=u[1],p=p.padStart(l,"0"),o===void 0?p:p+"."+o)}function h(o,l){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(l===0)p="";else if(l!==void 0)if(l>p.length)for(var i=l-(p+=c===-1?".":"").length+1,f=0;f=h.TWO_PI?"".concat(k="ellipse","|"):"".concat(k="arc","|").concat(i,"|").concat(f,"|").concat(g,"|")).concat(j,"|"),k=(this.geometryInHash(M)||((u=new a.default.Geometry(j,1,function(){if(i.toFixed(10)!==f.toFixed(10)){g!==h.PIE&&g!==void 0||(this.vertices.push(new a.default.Vector(.5,.5,0)),this.uvs.push([.5,.5]));for(var T=0;T<=j;T++){var R=(f-i)*(T/j)+i,P=.5+Math.cos(R)/2,R=.5+Math.sin(R)/2;this.vertices.push(new a.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,C);else{if(C=new DataView(C),!("TextDecoder"in window))return console.warn("Sorry, ASCII STL loading only works in browsers that support TextDecoder (https://caniuse.com/#feat=textencoder)");C=new TextDecoder("utf-8").decode(C).split(` +`),function(D,A){for(var N,F,G="",q=[],V=0;Vthis.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);Qthis.cameraFar&&(l=this.cameraFar),Math.acos(Math.max(-1,Math.min(1,d.default.Vector.dot(c,p))))+g),g=y;(f<=0||f>=Math.PI)&&(this.upX*=-1,this.upY*=-1,this.upZ*=-1),p.mult(Math.cos(f)),i.mult(Math.cos(g)*Math.sin(f)),o.mult(Math.sin(g)*Math.sin(f)),c.set(p).add(i).add(o),this.eyeX=l*c.x+this.centerX,this.eyeY=l*c.y+this.centerY,this.eyeZ=l*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,g,M){var c=this.eyeX-this.centerX,p=this.eyeY-this.centerY,o=this.eyeZ-this.centerZ,l=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(),i=d.default.Vector.cross(c,o),k=Math.atan2(g,f),k=(i.mult(Math.sin(k)),o.mult(Math.cos(k)).add(i),Math.sqrt(f*f+g*g)),i=d.default.Vector.cross(c,o),f=((l=(l*=Math.pow(10,M))this.cameraFar&&(l=this.cameraFar),Math.cos(k)),g=Math.sin(k),M=p.dot(c),k=p.dot(o),j=M*f+k*g,M=-M*g+k*f,k=p.dot(i);p.x=j*c.x+M*o.x+k*i.x,p.y=j*c.y+M*o.y+k*i.y,p.z=j*c.z+M*o.z+k*i.z,o.mult(-g),c.mult(f).add(o).mult(l),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),a}(),d.default.prototype.setCamera=function(a){this._renderer._curCamera=a,this._renderer.uPMatrix.set(a.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,a){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."),C=this.target.constrain(C,0,this.width-1),D=this.target.constrain(D,0,this.height-1)),(0,y.readPixelWebGL)(this.gl,this.framebuffer,C*this.density,D*this.density,F.format,F.type);C=this.target.constrain(C,0,this.width-1),D=this.target.constrain(D,0,this.height-1),A=this.target.constrain(A,1,this.width-C),N=this.target.constrain(N,1,this.height-D);for(var G=(0,y.readPixelsWebGL)(void 0,this.gl,this.framebuffer,C*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;g--)o.add(this.vertexNormals[g]);o=a.default.Vector.div(o,this.detailX);for(var j=this.vertices.length-1;j>this.vertices.length-1-this.detailX;j--)this.vertexNormals[j]=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,l.vertexCount,l.indexBufferType,0)}else c.drawArrays(s||c.TRIANGLES,0,l.vertexCount)},a.default.RendererGL.prototype._drawPoints=function(s,u){var l=this.GL,c=this._getImmediatePointShader();this._setPointUniforms(c),this._bindBuffer(u,l.ARRAY_BUFFER,this._vToNArray(s),Float32Array,l.STATIC_DRAW),c.enableAttrib(c.attributes.aPosition,3),this._applyColorBlend(this.curStrokeColor),l.drawArrays(l.Points,0,s.length),c.unbindShader()};var y=a.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 a=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 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=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 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 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,{})); +`)),B}},{key:"_getEmptyTexture",value:function(){var E;return this._emptyTexture||((E=new a.default.Image(1,1)).set(0,0,255),this._emptyTexture=new a.default.Texture(this,E)),this._emptyTexture}},{key:"getTexture",value:function(E){E instanceof a.default.Framebuffer&&(E=E.color);var I=this.textures.get(E);return I||(I=new a.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 a.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",C[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,g,j,M,k){if(this._textFont&&typeof this._textFont!="string"){if(!(k<=M)&&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 i(P)),j=this._textFont._handleAlignment(this,g,j,M),M=this._textSize/P.unitsPerEm,C=(this.translate(j.x,j.y,0),this.scale(M,M,1),this.GL),j=!this._defaultFontShader,D=this._getFontShader(),A=(D.init(),D.bindShader(),j&&(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||((M=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",M)),!0),j=!1,M=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){j=!0,M=de}finally{try{N||G.return==null||G.return()}finally{if(j)throw M}}this._bindBuffer(A.indexBuffer,C.ELEMENT_ARRAY_BUFFER),D.setUniform("uMaterialColor",this.curFillColor),C.pixelStorei(C.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1);try{var q=0,V=null,z=P.stringToGlyphs(g),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(),C.drawElements(C.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,C.pixelStorei(C.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 a=(r.findIndex(b=>Object.is(b,d.sketch))+1)%r.length,h=r.at(a);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 d164e6c..8880e13 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ @P5-wrapper/react - +