diff --git a/assets/JoshFriedman_resume.pdf b/assets/JoshFriedman_resume.pdf index 4ffc17d..4b69564 100644 Binary files a/assets/JoshFriedman_resume.pdf and b/assets/JoshFriedman_resume.pdf differ diff --git a/assets/main.37ce4b48.js b/assets/main.680b843a.js similarity index 90% rename from assets/main.37ce4b48.js rename to assets/main.680b843a.js index 6188662..2a6daa9 100644 --- a/assets/main.37ce4b48.js +++ b/assets/main.680b843a.js @@ -1,4 +1,4 @@ -import{c as Gr,g as hu,r as Xt,j as nt,a as Gt,F as Pr,f as mu,b as yu,d as gu,e as vu,p as mo,h as bu,i as xu,k as _u,l as wu,m as ju,n as Su,o as Eu,q as Mu,s as Tu,t as Cu,u as ku,v as Ou,w as Pu,x as Lu,y as Ru,z as ya,A as Au,B as Iu,C as Du,D as Uu,E as Fu,R as Nu}from"./projects.cbefbb1b.js";class Bu{constructor(y,E,e,S){this.p5=y,this.p=E,this.pos=this.p.createVector(E.random(E.width),E.random(E.height)),this.vel=this.p.createVector(),this.acc=this.p.createVector(),this.target=this.p.createVector(e,S),this.maxSpeed=10,this.maxForce=1}setTarget(y,E){this.target=this.p.createVector(y,E)}doBehaviours(){let y=this.seek(this.target),E=this.flee(this.p.createVector(this.p.mouseX,this.p.mouseY));y.mult(1),E.mult(5),this.applyForce(y),this.applyForce(E)}seek(y){let E=this.p5.Vector.sub(y,this.pos),e=this.maxSpeed;E.mag()<100&&(e=this.p.map(E.mag(),0,100,0,this.maxSpeed)),E.setMag(e);let S=this.p5.Vector.sub(E,this.vel);return S.limit(this.maxForce),S}flee(y){let E=this.p5.Vector.sub(y,this.pos);if(E.mag()<100){E.setMag(this.maxSpeed),E.mult(-1);let e=this.p5.Vector.sub(E,this.vel);return e.limit(this.maxForce),e}else return this.p.createVector(0,0)}applyForce(y){this.acc.add(y)}update(){this.pos.add(this.vel),this.vel.add(this.acc),this.acc.mult(0)}draw(){this.p.strokeWeight(4),this.p.stroke(255),this.p.point(this.pos.x,this.pos.y)}}function Fn(h){throw new Error('Could not dynamically require "'+h+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ai={exports:{}};/*! p5.js v1.5.0 October 18, 2022 */(function(h,y){(function(E){h.exports=E()})(function(){var E;return function e(S,v,l){function s(c,f){if(!v[c]){if(!S[c]){var r=typeof Fn=="function"&&Fn;if(!f&&r)return r(c,!0);if(n)return n(c,!0);throw(f=new Error("Cannot find module '"+c+"'")).code="MODULE_NOT_FOUND",f}r=v[c]={exports:{}},S[c][0].call(r.exports,function(o){return s(S[c][1][o]||o)},r,r.exports,e,S,v,l)}return v[c].exports}for(var n=typeof Fn=="function"&&Fn,a=0;a>16&255,m[b++]=t>>8&255,m[b++]=255&t;return p===2&&(t=s[o.charCodeAt(i)]<<2|s[o.charCodeAt(i+1)]>>4,m[b++]=255&t),p===1&&(t=s[o.charCodeAt(i)]<<10|s[o.charCodeAt(i+1)]<<4|s[o.charCodeAt(i+2)]>>2,m[b++]=t>>8&255,m[b++]=255&t),m},v.fromByteArray=function(o){for(var t,i=o.length,u=i%3,p=[],m=0,b=i-u;m>18&63]+l[R>>12&63]+l[R>>6&63]+l[63&R]}(M));return O.join("")}(o,m,b>2]+l[t<<4&63]+"==")):u==2&&(t=(o[i-2]<<8)+o[i-1],p.push(l[t>>10]+l[t>>4&63]+l[t<<2&63]+"=")),p.join("")};for(var l=[],s=[],n=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,f=a.length;c>>1;case"base64":return $(C).length;default:if(ee)return H?-1:q(C).length;P=(""+P).toLowerCase(),ee=!0}}function b(C,P,F){var H,ee=!1;if((P=P===void 0||P<0?0:P)>this.length||(F=F===void 0||F>this.length?this.length:F)<=0||(F>>>=0)<=(P>>>=0))return"";for(C=C||"utf8";;)switch(C){case"hex":var ae=this,pe=P,ie=F,me=ae.length;(!ie||ie<0||me=C.length){if(ee)return-1;F=C.length-1}else if(F<0){if(!ee)return-1;F=0}if(typeof P=="string"&&(P=r.from(P,H)),r.isBuffer(P))return P.length===0?-1:T(C,P,F,H,ee);if(typeof P=="number")return P&=255,typeof Uint8Array.prototype.indexOf=="function"?(ee?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(C,P,F):T(C,[P],F,H,ee);throw new TypeError("val must be string, number or Buffer")}function T(C,P,F,H,ee){var ae=1,ie=C.length,de=P.length;if(H!==void 0&&((H=String(H).toLowerCase())==="ucs2"||H==="ucs-2"||H==="utf16le"||H==="utf-16le")){if(C.length<2||P.length<2)return-1;ie/=ae=2,de/=2,F/=2}function oe(ge,ve){return ae===1?ge[ve]:ge.readUInt16BE(ve*ae)}if(ee)for(var le=-1,me=F;me>8,de=de%256,oe.push(de),oe.push(ie);return oe}(P,C.length-F),C,F,H)}function L(C,P,F){F=Math.min(C.length,F);for(var H=[],ee=P;ee>>10&1023|55296),me=56320|1023&me),H.push(me),ee+=K}var fe=H,ge=fe.length;if(ge<=R)return String.fromCharCode.apply(String,fe);for(var ve="",pe=0;pe"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(r.prototype,"parent",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.buffer}}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),r.poolSize=8192,r.from=o,Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array),r.alloc=function(C,P,F){return P=P,F=F,t(C=C),!(C<=0)&&P!==void 0?typeof F=="string"?f(C).fill(P,F):f(C).fill(P):f(C)},r.allocUnsafe=i,r.allocUnsafeSlow=i,r.isBuffer=function(C){return C!=null&&C._isBuffer===!0&&C!==r.prototype},r.compare=function(C,P){if(X(C,Uint8Array)&&(C=r.from(C,C.offset,C.byteLength)),X(P,Uint8Array)&&(P=r.from(P,P.offset,P.byteLength)),!r.isBuffer(C)||!r.isBuffer(P))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(C===P)return 0;for(var F=C.length,H=P.length,ee=0,ae=Math.min(F,H);eeC&&(P+=" ... "),""},a&&(r.prototype[a]=r.prototype.inspect),r.prototype.compare=function(C,P,F,H,ee){if(X(C,Uint8Array)&&(C=r.from(C,C.offset,C.byteLength)),!r.isBuffer(C))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof C);if(F===void 0&&(F=C?C.length:0),H===void 0&&(H=0),ee===void 0&&(ee=this.length),(P=P===void 0?0:P)<0||F>C.length||H<0||ee>this.length)throw new RangeError("out of range index");if(ee<=H&&F<=P)return 0;if(ee<=H)return-1;if(F<=P)return 1;if(this===C)return 0;for(var ae=(ee>>>=0)-(H>>>=0),ie=(F>>>=0)-(P>>>=0),de=Math.min(ae,ie),oe=this.slice(H,ee),le=C.slice(P,F),me=0;me>>=0,isFinite(F)?(F>>>=0,H===void 0&&(H="utf8")):(H=F,F=void 0)}var ee=this.length-P;if((F===void 0||eethis.length)throw new RangeError("Attempt to write outside buffer bounds");H=H||"utf8";for(var ae,ie,de,oe=!1;;)switch(H){case"hex":var le=this,me=C,K=P,fe=F,ge=(K=Number(K)||0,le.length-K);(!fe||ge<(fe=Number(fe)))&&(fe=ge),(ge=me.length)/2C.length)throw new RangeError("Index out of range")}function U(C,P,F,H){if(F+H>C.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("Index out of range")}function B(C,P,F,H,ee){return P=+P,F>>>=0,ee||U(C,0,F,4),n.write(C,P,F,H,23,4),F+4}function W(C,P,F,H,ee){return P=+P,F>>>=0,ee||U(C,0,F,8),n.write(C,P,F,H,52,8),F+8}r.prototype.slice=function(C,P){var F=this.length,F=((C=~~C)<0?(C+=F)<0&&(C=0):F>>=0,P>>>=0,F||A(C,P,this.length);for(var H=this[C],ee=1,ae=0;++ae>>=0,P>>>=0,F||A(C,P,this.length);for(var H=this[C+--P],ee=1;0>>=0,P||A(C,1,this.length),this[C]},r.prototype.readUInt16LE=function(C,P){return C>>>=0,P||A(C,2,this.length),this[C]|this[C+1]<<8},r.prototype.readUInt16BE=function(C,P){return C>>>=0,P||A(C,2,this.length),this[C]<<8|this[C+1]},r.prototype.readUInt32LE=function(C,P){return C>>>=0,P||A(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+16777216*this[C+3]},r.prototype.readUInt32BE=function(C,P){return C>>>=0,P||A(C,4,this.length),16777216*this[C]+(this[C+1]<<16|this[C+2]<<8|this[C+3])},r.prototype.readIntLE=function(C,P,F){C>>>=0,P>>>=0,F||A(C,P,this.length);for(var H=this[C],ee=1,ae=0;++ae>>=0,P>>>=0,F||A(C,P,this.length);for(var H=P,ee=1,ae=this[C+--H];0>>=0,P||A(C,1,this.length),128&this[C]?-1*(255-this[C]+1):this[C]},r.prototype.readInt16LE=function(C,P){return C>>>=0,P||A(C,2,this.length),P=this[C]|this[C+1]<<8,32768&P?4294901760|P:P},r.prototype.readInt16BE=function(C,P){return C>>>=0,P||A(C,2,this.length),P=this[C+1]|this[C]<<8,32768&P?4294901760|P:P},r.prototype.readInt32LE=function(C,P){return C>>>=0,P||A(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},r.prototype.readInt32BE=function(C,P){return C>>>=0,P||A(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},r.prototype.readFloatLE=function(C,P){return C>>>=0,P||A(C,4,this.length),n.read(this,C,!0,23,4)},r.prototype.readFloatBE=function(C,P){return C>>>=0,P||A(C,4,this.length),n.read(this,C,!1,23,4)},r.prototype.readDoubleLE=function(C,P){return C>>>=0,P||A(C,8,this.length),n.read(this,C,!0,52,8)},r.prototype.readDoubleBE=function(C,P){return C>>>=0,P||A(C,8,this.length),n.read(this,C,!1,52,8)},r.prototype.writeUIntLE=function(C,P,F,H){C=+C,P>>>=0,F>>>=0,H||N(this,C,P,F,Math.pow(2,8*F)-1,0);var ee=1,ae=0;for(this[P]=255&C;++ae>>=0,F>>>=0,H||N(this,C,P,F,Math.pow(2,8*F)-1,0);var ee=F-1,ae=1;for(this[P+ee]=255&C;0<=--ee&&(ae*=256);)this[P+ee]=C/ae&255;return P+F},r.prototype.writeUInt8=function(C,P,F){return C=+C,P>>>=0,F||N(this,C,P,1,255,0),this[P]=255&C,P+1},r.prototype.writeUInt16LE=function(C,P,F){return C=+C,P>>>=0,F||N(this,C,P,2,65535,0),this[P]=255&C,this[P+1]=C>>>8,P+2},r.prototype.writeUInt16BE=function(C,P,F){return C=+C,P>>>=0,F||N(this,C,P,2,65535,0),this[P]=C>>>8,this[P+1]=255&C,P+2},r.prototype.writeUInt32LE=function(C,P,F){return C=+C,P>>>=0,F||N(this,C,P,4,4294967295,0),this[P+3]=C>>>24,this[P+2]=C>>>16,this[P+1]=C>>>8,this[P]=255&C,P+4},r.prototype.writeUInt32BE=function(C,P,F){return C=+C,P>>>=0,F||N(this,C,P,4,4294967295,0),this[P]=C>>>24,this[P+1]=C>>>16,this[P+2]=C>>>8,this[P+3]=255&C,P+4},r.prototype.writeIntLE=function(C,P,F,H){C=+C,P>>>=0,H||N(this,C,P,F,(H=Math.pow(2,8*F-1))-1,-H);var ee=0,ae=1,ie=0;for(this[P]=255&C;++ee>0)-ie&255;return P+F},r.prototype.writeIntBE=function(C,P,F,H){C=+C,P>>>=0,H||N(this,C,P,F,(H=Math.pow(2,8*F-1))-1,-H);var ee=F-1,ae=1,ie=0;for(this[P+ee]=255&C;0<=--ee&&(ae*=256);)C<0&&ie===0&&this[P+ee+1]!==0&&(ie=1),this[P+ee]=(C/ae>>0)-ie&255;return P+F},r.prototype.writeInt8=function(C,P,F){return C=+C,P>>>=0,F||N(this,C,P,1,127,-128),this[P]=255&(C=C<0?255+C+1:C),P+1},r.prototype.writeInt16LE=function(C,P,F){return C=+C,P>>>=0,F||N(this,C,P,2,32767,-32768),this[P]=255&C,this[P+1]=C>>>8,P+2},r.prototype.writeInt16BE=function(C,P,F){return C=+C,P>>>=0,F||N(this,C,P,2,32767,-32768),this[P]=C>>>8,this[P+1]=255&C,P+2},r.prototype.writeInt32LE=function(C,P,F){return C=+C,P>>>=0,F||N(this,C,P,4,2147483647,-2147483648),this[P]=255&C,this[P+1]=C>>>8,this[P+2]=C>>>16,this[P+3]=C>>>24,P+4},r.prototype.writeInt32BE=function(C,P,F){return C=+C,P>>>=0,F||N(this,C,P,4,2147483647,-2147483648),this[P]=(C=C<0?4294967295+C+1:C)>>>24,this[P+1]=C>>>16,this[P+2]=C>>>8,this[P+3]=255&C,P+4},r.prototype.writeFloatLE=function(C,P,F){return B(this,C,P,!0,F)},r.prototype.writeFloatBE=function(C,P,F){return B(this,C,P,!1,F)},r.prototype.writeDoubleLE=function(C,P,F){return W(this,C,P,!0,F)},r.prototype.writeDoubleBE=function(C,P,F){return W(this,C,P,!1,F)},r.prototype.copy=function(C,P,F,H){if(!r.isBuffer(C))throw new TypeError("argument should be a Buffer");if(F=F||0,H||H===0||(H=this.length),P>=C.length&&(P=C.length),(H=0=this.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length);var ee=(H=C.length-P>>=0,F=F===void 0?this.length:F>>>0,typeof(C=C||0)=="number")for(ae=P;ae>6|192,63&F|128)}else if(F<65536){if((P-=3)<0)break;ae.push(F>>12|224,F>>6&63|128,63&F|128)}else{if(!(F<1114112))throw new Error("Invalid code point");if((P-=4)<0)break;ae.push(F>>18|240,F>>12&63|128,F>>6&63|128,63&F|128)}}return ae}function $(C){return s.toByteArray(function(P){if((P=(P=P.split("=")[0]).trim().replace(Z,"")).length<2)return"";for(;P.length%4!=0;)P+="=";return P}(C))}function z(C,P,F,H){for(var ee=0;ee=P.length||ee>=C.length);++ee)P[ee+F]=C[ee];return ee}function X(C,P){return C instanceof P||C!=null&&C.constructor!=null&&C.constructor.name!=null&&C.constructor.name===P.name}function Q(C){return C!=C}var se=function(){for(var C="0123456789abcdef",P=new Array(256),F=0;F<16;++F)for(var H=16*F,ee=0;ee<16;++ee)P[H+ee]=C[F]+C[ee];return P}()}).call(this,e("buffer").Buffer)},{"base64-js":1,buffer:4,ieee754:238}],5:[function(e,S,v){S.exports=function(l){if(typeof l!="function")throw TypeError(String(l)+" is not a function");return l}},{}],6:[function(e,S,v){var l=e("../internals/is-object");S.exports=function(s){if(l(s)||s===null)return s;throw TypeError("Can't set "+String(s)+" as a prototype")}},{"../internals/is-object":74}],7:[function(n,S,v){var l=n("../internals/well-known-symbol"),s=n("../internals/object-create"),n=n("../internals/object-define-property"),a=l("unscopables"),c=Array.prototype;c[a]==null&&n.f(c,a,{configurable:!0,value:s(null)}),S.exports=function(f){c[a][f]=!0}},{"../internals/object-create":90,"../internals/object-define-property":92,"../internals/well-known-symbol":146}],8:[function(e,S,v){var l=e("../internals/string-multibyte").charAt;S.exports=function(s,n,a){return n+(a?l(s,n).length:1)}},{"../internals/string-multibyte":123}],9:[function(e,S,v){S.exports=function(l,s,n){if(l instanceof s)return l;throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}},{}],10:[function(e,S,v){var l=e("../internals/is-object");S.exports=function(s){if(l(s))return s;throw TypeError(String(s)+" is not an object")}},{"../internals/is-object":74}],11:[function(e,S,v){S.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},{}],12:[function(U,S,v){function l(W){return f(W)&&r(B,o(W))}var s,n=U("../internals/array-buffer-native"),a=U("../internals/descriptors"),c=U("../internals/global"),f=U("../internals/is-object"),r=U("../internals/has"),o=U("../internals/classof"),t=U("../internals/create-non-enumerable-property"),i=U("../internals/redefine"),u=U("../internals/object-define-property").f,p=U("../internals/object-get-prototype-of"),m=U("../internals/object-set-prototype-of"),R=U("../internals/well-known-symbol"),U=U("../internals/uid"),b=c.Int8Array,x=b&&b.prototype,w=c.Uint8ClampedArray,w=w&&w.prototype,T=b&&p(b),M=x&&p(x),O=Object.prototype,L=O.isPrototypeOf,R=R("toStringTag"),A=U("TYPED_ARRAY_TAG"),N=n&&!!m&&o(c.opera)!=="Opera",U=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8};for(s in B)c[s]||(N=!1);if((!N||typeof T!="function"||T===Function.prototype)&&(T=function(){throw TypeError("Incorrect invocation")},N))for(s in B)c[s]&&m(c[s],T);if((!N||!M||M===O)&&(M=T.prototype,N))for(s in B)c[s]&&m(c[s].prototype,M);if(N&&p(w)!==M&&m(w,M),a&&!r(M,R))for(s in U=!0,u(M,R,{get:function(){return f(this)?this[A]:void 0}}),B)c[s]&&t(c[s],A,s);S.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:U&&A,aTypedArray:function(W){if(l(W))return W;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(W){if(m){if(L.call(T,W))return W}else for(var Z in B)if(r(B,s)&&(Z=c[Z],Z&&(W===Z||L.call(Z,W))))return W;throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(W,Z,q){if(a){if(q)for(var $ in B)$=c[$],$&&r($.prototype,W)&&delete $.prototype[W];M[W]&&!q||i(M,W,!q&&N&&x[W]||Z)}},exportTypedArrayStaticMethod:function(W,Z,q){var $,z;if(a){if(m){if(q)for($ in B)(z=c[$])&&r(z,W)&&delete z[W];if(T[W]&&!q)return;try{return i(T,W,!q&&N&&b[W]||Z)}catch{}}for($ in B)!(z=c[$])||z[W]&&!q||i(z,W,Z)}},isView:function(W){return W=o(W),W==="DataView"||r(B,W)},isTypedArray:l,TypedArray:T,TypedArrayPrototype:M}},{"../internals/array-buffer-native":11,"../internals/classof":29,"../internals/create-non-enumerable-property":38,"../internals/descriptors":43,"../internals/global":59,"../internals/has":60,"../internals/is-object":74,"../internals/object-define-property":92,"../internals/object-get-prototype-of":97,"../internals/object-set-prototype-of":101,"../internals/redefine":108,"../internals/uid":143,"../internals/well-known-symbol":146}],13:[function(F,S,v){function l(K){return[255&K]}function s(K){return[255&K,K>>8&255]}function n(K){return[255&K,K>>8&255,K>>16&255,K>>24&255]}function a(K){return K[3]<<24|K[2]<<16|K[1]<<8|K[0]}function c(K){return ae(K,23,4)}function f(K){return ae(K,52,8)}function r(K,fe){U(K[X],fe,{get:function(){return Z(this)[fe]}})}function o(Te,fe,Oe,ve){if(Oe=O(Oe),Te=Z(Te),Oe+fe>Te.byteLength)throw ee(Q);var pe=Z(Te.buffer).bytes,Oe=Oe+Te.byteOffset,Te=pe.slice(Oe,Oe+fe);return ve?Te:Te.reverse()}function t(K,fe,ge,ve,pe,Oe){if(ge=O(ge),K=Z(K),ge+fe>K.byteLength)throw ee(Q);for(var Te=Z(K.buffer).bytes,Re=ge+K.byteOffset,Me=ve(+pe),Be=0;Bele;)(de=oe[le++])in C||m(C,de,se[de]);i.constructor=C}A&&R(F)!==H&&A(F,H);var L=new P(new C(2)),me=F.setInt8;L.setInt8(0,2147483648),L.setInt8(1,2147483649),!L.getInt8(0)&&L.getInt8(1)||b(F,{setInt8:function(fe,ge){me.call(this,fe,ge<<24>>24)},setUint8:function(fe,ge){me.call(this,fe,ge<<24>>24)}},{unsafe:!0})}else C=function(K){w(this,C,$),K=O(K),q(this,{bytes:B.call(new Array(K),0),byteLength:K}),u||(this.byteLength=K)},P=function(K,pe,ge){w(this,P,z),w(K,C,z);var ve=Z(K).byteLength,pe=T(pe);if(pe<0||ve>24},getUint8:function(K){return o(this,1,K)[0]},getInt16:function(K){return K=o(this,2,K,1>16},getUint16:function(K){return K=o(this,2,K,1>>0},getFloat32:function(K){return ie(o(this,4,K,1"+r+""}},{"../internals/require-object-coercible":113}],37:[function(e,S,v){function l(){return this}var s=e("../internals/iterators-core").IteratorPrototype,n=e("../internals/object-create"),a=e("../internals/create-property-descriptor"),c=e("../internals/set-to-string-tag"),f=e("../internals/iterators");S.exports=function(r,o,t){return o+=" Iterator",r.prototype=n(s,{next:a(1,t)}),c(r,o,!1,!0),f[o]=l,r}},{"../internals/create-property-descriptor":39,"../internals/iterators":79,"../internals/iterators-core":78,"../internals/object-create":90,"../internals/set-to-string-tag":117}],38:[function(e,S,v){var l=e("../internals/descriptors"),s=e("../internals/object-define-property"),n=e("../internals/create-property-descriptor");S.exports=l?function(a,c,f){return s.f(a,c,n(1,f))}:function(a,c,f){return a[c]=f,a}},{"../internals/create-property-descriptor":39,"../internals/descriptors":43,"../internals/object-define-property":92}],39:[function(e,S,v){S.exports=function(l,s){return{enumerable:!(1&l),configurable:!(2&l),writable:!(4&l),value:s}}},{}],40:[function(e,S,v){var l=e("../internals/to-primitive"),s=e("../internals/object-define-property"),n=e("../internals/create-property-descriptor");S.exports=function(a,c,f){c=l(c),c in a?s.f(a,c,n(0,f)):a[c]=f}},{"../internals/create-property-descriptor":39,"../internals/object-define-property":92,"../internals/to-primitive":138}],41:[function(p,S,v){function l(){return this}var s=p("../internals/export"),n=p("../internals/create-iterator-constructor"),a=p("../internals/object-get-prototype-of"),c=p("../internals/object-set-prototype-of"),f=p("../internals/set-to-string-tag"),r=p("../internals/create-non-enumerable-property"),o=p("../internals/redefine"),t=p("../internals/well-known-symbol"),i=p("../internals/is-pure"),u=p("../internals/iterators"),p=p("../internals/iterators-core"),m=p.IteratorPrototype,b=p.BUGGY_SAFARI_ITERATORS,x=t("iterator"),w="values",T="entries";S.exports=function(M,O,L,q,A,N,U){n(L,O,q);function B(C){if(C===A&&Q)return Q;if(!b&&C in z)return z[C];switch(C){case"keys":case w:case T:return function(){return new L(this,C)}}return function(){return new L(this)}}var W,Z,q=O+" Iterator",$=!1,z=M.prototype,X=z[x]||z["@@iterator"]||A&&z[A],Q=!b&&X||B(A),se=O=="Array"&&z.entries||X;if(se&&(se=a(se.call(new M)),m!==Object.prototype&&se.next&&(i||a(se)===m||(c?c(se,m):typeof se[x]!="function"&&r(se,x,l)),f(se,q,!0,!0),i&&(u[q]=l))),A==w&&X&&X.name!==w&&($=!0,Q=function(){return X.call(this)}),i&&!U||z[x]===Q||r(z,x,Q),u[O]=Q,A)if(W={values:B(w),keys:N?Q:B("keys"),entries:B(T)},U)for(Z in W)!b&&!$&&Z in z||o(z,Z,W[Z]);else s({target:O,proto:!0,forced:b||$},W);return W}},{"../internals/create-iterator-constructor":37,"../internals/create-non-enumerable-property":38,"../internals/export":50,"../internals/is-pure":75,"../internals/iterators":79,"../internals/iterators-core":78,"../internals/object-get-prototype-of":97,"../internals/object-set-prototype-of":101,"../internals/redefine":108,"../internals/set-to-string-tag":117,"../internals/well-known-symbol":146}],42:[function(e,S,v){var l=e("../internals/path"),s=e("../internals/has"),n=e("../internals/well-known-symbol-wrapped"),a=e("../internals/object-define-property").f;S.exports=function(c){var f=l.Symbol||(l.Symbol={});s(f,c)||a(f,c,{value:n.f(c)})}},{"../internals/has":60,"../internals/object-define-property":92,"../internals/path":104,"../internals/well-known-symbol-wrapped":145}],43:[function(e,S,v){e=e("../internals/fails"),S.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":51}],44:[function(s,S,v){var l=s("../internals/global"),s=s("../internals/is-object"),n=l.document,a=s(n)&&s(n.createElement);S.exports=function(c){return a?n.createElement(c):{}}},{"../internals/global":59,"../internals/is-object":74}],45:[function(e,S,v){S.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(e,S,v){e=e("../internals/engine-user-agent"),S.exports=/(iphone|ipod|ipad).*applewebkit/i.test(e)},{"../internals/engine-user-agent":47}],47:[function(e,S,v){e=e("../internals/get-built-in"),S.exports=e("navigator","userAgent")||""},{"../internals/get-built-in":56}],48:[function(n,S,v){var l,s,a=n("../internals/global"),n=n("../internals/engine-user-agent"),a=a.process,a=a&&a.versions,a=a&&a.v8;a?s=(l=a.split("."))[0]+l[1]:n&&(!(l=n.match(/Edge\/(\d+)/))||74<=l[1])&&(l=n.match(/Chrome\/(\d+)/))&&(s=l[1]),S.exports=s&&+s},{"../internals/engine-user-agent":47,"../internals/global":59}],49:[function(e,S,v){S.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],50:[function(e,S,v){var l=e("../internals/global"),s=e("../internals/object-get-own-property-descriptor").f,n=e("../internals/create-non-enumerable-property"),a=e("../internals/redefine"),c=e("../internals/set-global"),f=e("../internals/copy-constructor-properties"),r=e("../internals/is-forced");S.exports=function(o,t){var i,u,p,m=o.target,b=o.global,x=o.stat,w=b?l:x?l[m]||c(m,{}):(l[m]||{}).prototype;if(w)for(i in t){if(u=t[i],p=o.noTargetGet?(p=s(w,i))&&p.value:w[i],!r(b?i:m+(x?".":"#")+i,o.forced)&&p!==void 0){if(typeof u==typeof p)continue;f(u,p)}(o.sham||p&&p.sham)&&n(u,"sham",!0),a(w,i,u,o)}}},{"../internals/copy-constructor-properties":33,"../internals/create-non-enumerable-property":38,"../internals/global":59,"../internals/is-forced":73,"../internals/object-get-own-property-descriptor":93,"../internals/redefine":108,"../internals/set-global":115}],51:[function(e,S,v){S.exports=function(l){try{return!!l()}catch{return!0}}},{}],52:[function(t,S,v){t("../modules/es.regexp.exec");var l=t("../internals/redefine"),s=t("../internals/fails"),n=t("../internals/well-known-symbol"),a=t("../internals/regexp-exec"),c=t("../internals/create-non-enumerable-property"),f=n("species"),r=!s(function(){var p=/./;return p.exec=function(){var m=[];return m.groups={a:"7"},m},"".replace(p,"$")!=="7"}),o="a".replace(/./,"$0")==="$0",t=n("replace"),i=!!/./[t]&&/./[t]("a","$0")==="",u=!s(function(){var m=/(?:)/,p=m.exec,m=(m.exec=function(){return p.apply(this,arguments)},"ab".split(m));return m.length!==2||m[0]!=="a"||m[1]!=="b"});S.exports=function(p,m,b,x){var w,T,M=n(p),O=!s(function(){var R={};return R[M]=function(){return 7},""[p](R)!=7}),L=O&&!s(function(){var R=!1,A=/a/;return p==="split"&&((A={constructor:{}}).constructor[f]=function(){return A},A.flags="",A[M]=/./[M]),A.exec=function(){return R=!0,null},A[M](""),!R});O&&L&&(p!=="replace"||r&&o&&!i)&&(p!=="split"||u)||(w=/./[M],b=(L=b(M,""[p],function(R,A,N,U,B){return A.exec===a?O&&!B?{done:!0,value:w.call(A,N,U)}:{done:!0,value:R.call(N,A,U)}:{done:!1}},{REPLACE_KEEPS_$0:o,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:i}))[0],T=L[1],l(String.prototype,p,b),l(RegExp.prototype,M,m==2?function(R,A){return T.call(R,this,A)}:function(R){return T.call(R,this)})),x&&c(RegExp.prototype[M],"sham",!0)}},{"../internals/create-non-enumerable-property":38,"../internals/fails":51,"../internals/redefine":108,"../internals/regexp-exec":110,"../internals/well-known-symbol":146,"../modules/es.regexp.exec":181}],53:[function(e,S,v){e=e("../internals/fails"),S.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},{"../internals/fails":51}],54:[function(e,S,v){var l=e("../internals/a-function");S.exports=function(s,n,a){if(l(s),n===void 0)return s;switch(a){case 0:return function(){return s.call(n)};case 1:return function(c){return s.call(n,c)};case 2:return function(c,f){return s.call(n,c,f)};case 3:return function(c,f,r){return s.call(n,c,f,r)}}return function(){return s.apply(n,arguments)}}},{"../internals/a-function":5}],55:[function(e,S,v){var l=e("../internals/a-function"),s=e("../internals/is-object"),n=[].slice,a={};S.exports=Function.bind||function(c){var f=l(this),r=n.call(arguments,1),o=function(){var t=r.concat(n.call(arguments));if(this instanceof o){var i=f,u=t.length,p=t;if(!(u in a)){for(var m=[],b=0;b>1,w=r===23?s(2,-24)-s(2,-77):0,T=f<0||f===0&&1/f<0?1:0,M=0;for((f=l(f))!=f||f===1/0?(i=f!=f?1:0,t=b):(t=n(a(f)/c),f*(u=s(2,-t))<1&&(t--,u*=2),2<=(f+=1<=t+x?w/u:w*s(2,1-x))*u&&(t++,u/=2),b<=t+x?(i=0,t=b):1<=t+x?(i=(f*u-1)*s(2,r),t+=x):(i=f*s(2,x-1)*s(2,r),t=0));8<=r;p[M++]=255&i,i/=256,r-=8);for(t=t<>1,p=b-7,m=t-1,b=f[m--],x=127&b;for(b>>=7;0>=-p,p+=r;0"+x+""},b=function(){try{s=document.domain&&new ActiveXObject("htmlfile")}catch{}b=s?((x=s).write(m("")),x.close(),w=x.parentWindow.Object,x=null,w):(x=o("iframe"),w="java"+u+":",x.style.display="none",r.appendChild(x),x.src=String(w),(w=x.contentWindow.document).open(),w.write(m("document.F=Object")),w.close(),w.F);for(var x,w,T=c.length;T--;)delete b[i][c[T]];return b()};f[p]=!0,S.exports=Object.create||function(x,w){var T;return x!==null?(l[i]=n(x),T=new l,l[i]=null,T[p]=x):T=b(),w===void 0?T:a(T,w)}},{"../internals/an-object":10,"../internals/document-create-element":44,"../internals/enum-bug-keys":49,"../internals/hidden-keys":61,"../internals/html":63,"../internals/object-define-properties":91,"../internals/shared-key":118}],91:[function(e,S,v){var l=e("../internals/descriptors"),s=e("../internals/object-define-property"),n=e("../internals/an-object"),a=e("../internals/object-keys");S.exports=l?Object.defineProperties:function(c,f){n(c);for(var r,o=a(f),t=o.length,i=0;it;)!l(o,r=f[t++])||~n(i,r)||i.push(r);return i}},{"../internals/array-includes":18,"../internals/has":60,"../internals/hidden-keys":61,"../internals/to-indexed-object":132}],99:[function(e,S,v){var l=e("../internals/object-keys-internal"),s=e("../internals/enum-bug-keys");S.exports=Object.keys||function(n){return l(n,s)}},{"../internals/enum-bug-keys":49,"../internals/object-keys-internal":98}],100:[function(e,S,v){var l={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,n=s&&!l.call({1:2},1);v.f=n?function(a){return a=s(this,a),!!a&&a.enumerable}:l},{}],101:[function(e,S,v){var l=e("../internals/an-object"),s=e("../internals/a-possible-prototype");S.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var n,a=!1,c={};try{(n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(c,[]),a=c instanceof Array}catch{}return function(f,r){return l(f),s(r),a?n.call(f,r):f.__proto__=r,f}}():void 0)},{"../internals/a-possible-prototype":6,"../internals/an-object":10}],102:[function(e,S,v){var l=e("../internals/to-string-tag-support"),s=e("../internals/classof");S.exports=l?{}.toString:function(){return"[object "+s(this)+"]"}},{"../internals/classof":29,"../internals/to-string-tag-support":139}],103:[function(e,S,v){var l=e("../internals/get-built-in"),s=e("../internals/object-get-own-property-names"),n=e("../internals/object-get-own-property-symbols"),a=e("../internals/an-object");S.exports=l("Reflect","ownKeys")||function(c){var f=s.f(a(c)),r=n.f;return r?f.concat(r(c)):f}},{"../internals/an-object":10,"../internals/get-built-in":56,"../internals/object-get-own-property-names":95,"../internals/object-get-own-property-symbols":96}],104:[function(e,S,v){e=e("../internals/global"),S.exports=e},{"../internals/global":59}],105:[function(e,S,v){S.exports=function(l){try{return{error:!1,value:l()}}catch(s){return{error:!0,value:s}}}},{}],106:[function(e,S,v){var l=e("../internals/an-object"),s=e("../internals/is-object"),n=e("../internals/new-promise-capability");S.exports=function(a,c){return l(a),s(c)&&c.constructor===a?c:((0,(a=n.f(a)).resolve)(c),a.promise)}},{"../internals/an-object":10,"../internals/is-object":74,"../internals/new-promise-capability":86}],107:[function(e,S,v){var l=e("../internals/redefine");S.exports=function(s,n,a){for(var c in n)l(s,c,n[c],a);return s}},{"../internals/redefine":108}],108:[function(f,S,v){var l=f("../internals/global"),s=f("../internals/create-non-enumerable-property"),n=f("../internals/has"),a=f("../internals/set-global"),c=f("../internals/inspect-source"),f=f("../internals/internal-state"),r=f.get,o=f.enforce,t=String(String).split("String");(S.exports=function(i,u,p,w){var b=!!w&&!!w.unsafe,x=!!w&&!!w.enumerable,w=!!w&&!!w.noTargetGet;typeof p=="function"&&(typeof u!="string"||n(p,"name")||s(p,"name",u),o(p).source=t.join(typeof u=="string"?u:"")),i===l?x?i[u]=p:a(u,p):(b?!w&&i[u]&&(x=!0):delete i[u],x?i[u]=p:s(i,u,p))})(Function.prototype,"toString",function(){return typeof this=="function"&&r(this).source||c(this)})},{"../internals/create-non-enumerable-property":38,"../internals/global":59,"../internals/has":60,"../internals/inspect-source":68,"../internals/internal-state":70,"../internals/set-global":115}],109:[function(e,S,v){var l=e("./classof-raw"),s=e("./regexp-exec");S.exports=function(n,a){var c=n.exec;if(typeof c=="function"){if(c=c.call(n,a),typeof c!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return c}if(l(n)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return s.call(n,a)}},{"./classof-raw":28,"./regexp-exec":110}],110:[function(a,S,v){var l,s,n=a("./regexp-flags"),a=a("./regexp-sticky-helpers"),c=RegExp.prototype.exec,f=String.prototype.replace,r=c,o=(l=/a/,s=/b*/g,c.call(l,"a"),c.call(s,"a"),l.lastIndex!==0||s.lastIndex!==0),t=a.UNSUPPORTED_Y||a.BROKEN_CARET,i=/()??/.exec("")[1]!==void 0;S.exports=r=o||i||t?function(u){var p,m,b,x,w=this,T=t&&w.sticky,M=n.call(w),O=w.source,L=0,R=u;return T&&((M=M.replace("y","")).indexOf("g")===-1&&(M+="g"),R=String(u).slice(w.lastIndex),0>16&255,m[b++]=t>>8&255,m[b++]=255&t;return p===2&&(t=s[o.charCodeAt(i)]<<2|s[o.charCodeAt(i+1)]>>4,m[b++]=255&t),p===1&&(t=s[o.charCodeAt(i)]<<10|s[o.charCodeAt(i+1)]<<4|s[o.charCodeAt(i+2)]>>2,m[b++]=t>>8&255,m[b++]=255&t),m},v.fromByteArray=function(o){for(var t,i=o.length,u=i%3,p=[],m=0,b=i-u;m>18&63]+l[R>>12&63]+l[R>>6&63]+l[63&R]}(M));return O.join("")}(o,m,b>2]+l[t<<4&63]+"==")):u==2&&(t=(o[i-2]<<8)+o[i-1],p.push(l[t>>10]+l[t>>4&63]+l[t<<2&63]+"=")),p.join("")};for(var l=[],s=[],n=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,f=a.length;c>>1;case"base64":return $(C).length;default:if(ee)return H?-1:q(C).length;P=(""+P).toLowerCase(),ee=!0}}function b(C,P,F){var H,ee=!1;if((P=P===void 0||P<0?0:P)>this.length||(F=F===void 0||F>this.length?this.length:F)<=0||(F>>>=0)<=(P>>>=0))return"";for(C=C||"utf8";;)switch(C){case"hex":var ae=this,pe=P,ie=F,me=ae.length;(!ie||ie<0||me=C.length){if(ee)return-1;F=C.length-1}else if(F<0){if(!ee)return-1;F=0}if(typeof P=="string"&&(P=r.from(P,H)),r.isBuffer(P))return P.length===0?-1:T(C,P,F,H,ee);if(typeof P=="number")return P&=255,typeof Uint8Array.prototype.indexOf=="function"?(ee?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(C,P,F):T(C,[P],F,H,ee);throw new TypeError("val must be string, number or Buffer")}function T(C,P,F,H,ee){var ae=1,ie=C.length,de=P.length;if(H!==void 0&&((H=String(H).toLowerCase())==="ucs2"||H==="ucs-2"||H==="utf16le"||H==="utf-16le")){if(C.length<2||P.length<2)return-1;ie/=ae=2,de/=2,F/=2}function oe(ge,ve){return ae===1?ge[ve]:ge.readUInt16BE(ve*ae)}if(ee)for(var le=-1,me=F;me>8,de=de%256,oe.push(de),oe.push(ie);return oe}(P,C.length-F),C,F,H)}function L(C,P,F){F=Math.min(C.length,F);for(var H=[],ee=P;ee>>10&1023|55296),me=56320|1023&me),H.push(me),ee+=K}var fe=H,ge=fe.length;if(ge<=R)return String.fromCharCode.apply(String,fe);for(var ve="",pe=0;pe"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(r.prototype,"parent",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.buffer}}),Object.defineProperty(r.prototype,"offset",{enumerable:!0,get:function(){if(r.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),r.poolSize=8192,r.from=o,Object.setPrototypeOf(r.prototype,Uint8Array.prototype),Object.setPrototypeOf(r,Uint8Array),r.alloc=function(C,P,F){return P=P,F=F,t(C=C),!(C<=0)&&P!==void 0?typeof F=="string"?f(C).fill(P,F):f(C).fill(P):f(C)},r.allocUnsafe=i,r.allocUnsafeSlow=i,r.isBuffer=function(C){return C!=null&&C._isBuffer===!0&&C!==r.prototype},r.compare=function(C,P){if(X(C,Uint8Array)&&(C=r.from(C,C.offset,C.byteLength)),X(P,Uint8Array)&&(P=r.from(P,P.offset,P.byteLength)),!r.isBuffer(C)||!r.isBuffer(P))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(C===P)return 0;for(var F=C.length,H=P.length,ee=0,ae=Math.min(F,H);eeC&&(P+=" ... "),""},a&&(r.prototype[a]=r.prototype.inspect),r.prototype.compare=function(C,P,F,H,ee){if(X(C,Uint8Array)&&(C=r.from(C,C.offset,C.byteLength)),!r.isBuffer(C))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof C);if(F===void 0&&(F=C?C.length:0),H===void 0&&(H=0),ee===void 0&&(ee=this.length),(P=P===void 0?0:P)<0||F>C.length||H<0||ee>this.length)throw new RangeError("out of range index");if(ee<=H&&F<=P)return 0;if(ee<=H)return-1;if(F<=P)return 1;if(this===C)return 0;for(var ae=(ee>>>=0)-(H>>>=0),ie=(F>>>=0)-(P>>>=0),de=Math.min(ae,ie),oe=this.slice(H,ee),le=C.slice(P,F),me=0;me>>=0,isFinite(F)?(F>>>=0,H===void 0&&(H="utf8")):(H=F,F=void 0)}var ee=this.length-P;if((F===void 0||eethis.length)throw new RangeError("Attempt to write outside buffer bounds");H=H||"utf8";for(var ae,ie,de,oe=!1;;)switch(H){case"hex":var le=this,me=C,K=P,fe=F,ge=(K=Number(K)||0,le.length-K);(!fe||ge<(fe=Number(fe)))&&(fe=ge),(ge=me.length)/2C.length)throw new RangeError("Index out of range")}function U(C,P,F,H){if(F+H>C.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("Index out of range")}function B(C,P,F,H,ee){return P=+P,F>>>=0,ee||U(C,0,F,4),n.write(C,P,F,H,23,4),F+4}function W(C,P,F,H,ee){return P=+P,F>>>=0,ee||U(C,0,F,8),n.write(C,P,F,H,52,8),F+8}r.prototype.slice=function(C,P){var F=this.length,F=((C=~~C)<0?(C+=F)<0&&(C=0):F>>=0,P>>>=0,F||A(C,P,this.length);for(var H=this[C],ee=1,ae=0;++ae>>=0,P>>>=0,F||A(C,P,this.length);for(var H=this[C+--P],ee=1;0>>=0,P||A(C,1,this.length),this[C]},r.prototype.readUInt16LE=function(C,P){return C>>>=0,P||A(C,2,this.length),this[C]|this[C+1]<<8},r.prototype.readUInt16BE=function(C,P){return C>>>=0,P||A(C,2,this.length),this[C]<<8|this[C+1]},r.prototype.readUInt32LE=function(C,P){return C>>>=0,P||A(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+16777216*this[C+3]},r.prototype.readUInt32BE=function(C,P){return C>>>=0,P||A(C,4,this.length),16777216*this[C]+(this[C+1]<<16|this[C+2]<<8|this[C+3])},r.prototype.readIntLE=function(C,P,F){C>>>=0,P>>>=0,F||A(C,P,this.length);for(var H=this[C],ee=1,ae=0;++ae>>=0,P>>>=0,F||A(C,P,this.length);for(var H=P,ee=1,ae=this[C+--H];0>>=0,P||A(C,1,this.length),128&this[C]?-1*(255-this[C]+1):this[C]},r.prototype.readInt16LE=function(C,P){return C>>>=0,P||A(C,2,this.length),P=this[C]|this[C+1]<<8,32768&P?4294901760|P:P},r.prototype.readInt16BE=function(C,P){return C>>>=0,P||A(C,2,this.length),P=this[C+1]|this[C]<<8,32768&P?4294901760|P:P},r.prototype.readInt32LE=function(C,P){return C>>>=0,P||A(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},r.prototype.readInt32BE=function(C,P){return C>>>=0,P||A(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},r.prototype.readFloatLE=function(C,P){return C>>>=0,P||A(C,4,this.length),n.read(this,C,!0,23,4)},r.prototype.readFloatBE=function(C,P){return C>>>=0,P||A(C,4,this.length),n.read(this,C,!1,23,4)},r.prototype.readDoubleLE=function(C,P){return C>>>=0,P||A(C,8,this.length),n.read(this,C,!0,52,8)},r.prototype.readDoubleBE=function(C,P){return C>>>=0,P||A(C,8,this.length),n.read(this,C,!1,52,8)},r.prototype.writeUIntLE=function(C,P,F,H){C=+C,P>>>=0,F>>>=0,H||N(this,C,P,F,Math.pow(2,8*F)-1,0);var ee=1,ae=0;for(this[P]=255&C;++ae>>=0,F>>>=0,H||N(this,C,P,F,Math.pow(2,8*F)-1,0);var ee=F-1,ae=1;for(this[P+ee]=255&C;0<=--ee&&(ae*=256);)this[P+ee]=C/ae&255;return P+F},r.prototype.writeUInt8=function(C,P,F){return C=+C,P>>>=0,F||N(this,C,P,1,255,0),this[P]=255&C,P+1},r.prototype.writeUInt16LE=function(C,P,F){return C=+C,P>>>=0,F||N(this,C,P,2,65535,0),this[P]=255&C,this[P+1]=C>>>8,P+2},r.prototype.writeUInt16BE=function(C,P,F){return C=+C,P>>>=0,F||N(this,C,P,2,65535,0),this[P]=C>>>8,this[P+1]=255&C,P+2},r.prototype.writeUInt32LE=function(C,P,F){return C=+C,P>>>=0,F||N(this,C,P,4,4294967295,0),this[P+3]=C>>>24,this[P+2]=C>>>16,this[P+1]=C>>>8,this[P]=255&C,P+4},r.prototype.writeUInt32BE=function(C,P,F){return C=+C,P>>>=0,F||N(this,C,P,4,4294967295,0),this[P]=C>>>24,this[P+1]=C>>>16,this[P+2]=C>>>8,this[P+3]=255&C,P+4},r.prototype.writeIntLE=function(C,P,F,H){C=+C,P>>>=0,H||N(this,C,P,F,(H=Math.pow(2,8*F-1))-1,-H);var ee=0,ae=1,ie=0;for(this[P]=255&C;++ee>0)-ie&255;return P+F},r.prototype.writeIntBE=function(C,P,F,H){C=+C,P>>>=0,H||N(this,C,P,F,(H=Math.pow(2,8*F-1))-1,-H);var ee=F-1,ae=1,ie=0;for(this[P+ee]=255&C;0<=--ee&&(ae*=256);)C<0&&ie===0&&this[P+ee+1]!==0&&(ie=1),this[P+ee]=(C/ae>>0)-ie&255;return P+F},r.prototype.writeInt8=function(C,P,F){return C=+C,P>>>=0,F||N(this,C,P,1,127,-128),this[P]=255&(C=C<0?255+C+1:C),P+1},r.prototype.writeInt16LE=function(C,P,F){return C=+C,P>>>=0,F||N(this,C,P,2,32767,-32768),this[P]=255&C,this[P+1]=C>>>8,P+2},r.prototype.writeInt16BE=function(C,P,F){return C=+C,P>>>=0,F||N(this,C,P,2,32767,-32768),this[P]=C>>>8,this[P+1]=255&C,P+2},r.prototype.writeInt32LE=function(C,P,F){return C=+C,P>>>=0,F||N(this,C,P,4,2147483647,-2147483648),this[P]=255&C,this[P+1]=C>>>8,this[P+2]=C>>>16,this[P+3]=C>>>24,P+4},r.prototype.writeInt32BE=function(C,P,F){return C=+C,P>>>=0,F||N(this,C,P,4,2147483647,-2147483648),this[P]=(C=C<0?4294967295+C+1:C)>>>24,this[P+1]=C>>>16,this[P+2]=C>>>8,this[P+3]=255&C,P+4},r.prototype.writeFloatLE=function(C,P,F){return B(this,C,P,!0,F)},r.prototype.writeFloatBE=function(C,P,F){return B(this,C,P,!1,F)},r.prototype.writeDoubleLE=function(C,P,F){return W(this,C,P,!0,F)},r.prototype.writeDoubleBE=function(C,P,F){return W(this,C,P,!1,F)},r.prototype.copy=function(C,P,F,H){if(!r.isBuffer(C))throw new TypeError("argument should be a Buffer");if(F=F||0,H||H===0||(H=this.length),P>=C.length&&(P=C.length),(H=0=this.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length);var ee=(H=C.length-P>>=0,F=F===void 0?this.length:F>>>0,typeof(C=C||0)=="number")for(ae=P;ae>6|192,63&F|128)}else if(F<65536){if((P-=3)<0)break;ae.push(F>>12|224,F>>6&63|128,63&F|128)}else{if(!(F<1114112))throw new Error("Invalid code point");if((P-=4)<0)break;ae.push(F>>18|240,F>>12&63|128,F>>6&63|128,63&F|128)}}return ae}function $(C){return s.toByteArray(function(P){if((P=(P=P.split("=")[0]).trim().replace(Z,"")).length<2)return"";for(;P.length%4!=0;)P+="=";return P}(C))}function z(C,P,F,H){for(var ee=0;ee=P.length||ee>=C.length);++ee)P[ee+F]=C[ee];return ee}function X(C,P){return C instanceof P||C!=null&&C.constructor!=null&&C.constructor.name!=null&&C.constructor.name===P.name}function Q(C){return C!=C}var se=function(){for(var C="0123456789abcdef",P=new Array(256),F=0;F<16;++F)for(var H=16*F,ee=0;ee<16;++ee)P[H+ee]=C[F]+C[ee];return P}()}).call(this,e("buffer").Buffer)},{"base64-js":1,buffer:4,ieee754:238}],5:[function(e,S,v){S.exports=function(l){if(typeof l!="function")throw TypeError(String(l)+" is not a function");return l}},{}],6:[function(e,S,v){var l=e("../internals/is-object");S.exports=function(s){if(l(s)||s===null)return s;throw TypeError("Can't set "+String(s)+" as a prototype")}},{"../internals/is-object":74}],7:[function(n,S,v){var l=n("../internals/well-known-symbol"),s=n("../internals/object-create"),n=n("../internals/object-define-property"),a=l("unscopables"),c=Array.prototype;c[a]==null&&n.f(c,a,{configurable:!0,value:s(null)}),S.exports=function(f){c[a][f]=!0}},{"../internals/object-create":90,"../internals/object-define-property":92,"../internals/well-known-symbol":146}],8:[function(e,S,v){var l=e("../internals/string-multibyte").charAt;S.exports=function(s,n,a){return n+(a?l(s,n).length:1)}},{"../internals/string-multibyte":123}],9:[function(e,S,v){S.exports=function(l,s,n){if(l instanceof s)return l;throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}},{}],10:[function(e,S,v){var l=e("../internals/is-object");S.exports=function(s){if(l(s))return s;throw TypeError(String(s)+" is not an object")}},{"../internals/is-object":74}],11:[function(e,S,v){S.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},{}],12:[function(U,S,v){function l(W){return f(W)&&r(B,o(W))}var s,n=U("../internals/array-buffer-native"),a=U("../internals/descriptors"),c=U("../internals/global"),f=U("../internals/is-object"),r=U("../internals/has"),o=U("../internals/classof"),t=U("../internals/create-non-enumerable-property"),i=U("../internals/redefine"),u=U("../internals/object-define-property").f,p=U("../internals/object-get-prototype-of"),m=U("../internals/object-set-prototype-of"),R=U("../internals/well-known-symbol"),U=U("../internals/uid"),b=c.Int8Array,x=b&&b.prototype,w=c.Uint8ClampedArray,w=w&&w.prototype,T=b&&p(b),M=x&&p(x),O=Object.prototype,L=O.isPrototypeOf,R=R("toStringTag"),A=U("TYPED_ARRAY_TAG"),N=n&&!!m&&o(c.opera)!=="Opera",U=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8};for(s in B)c[s]||(N=!1);if((!N||typeof T!="function"||T===Function.prototype)&&(T=function(){throw TypeError("Incorrect invocation")},N))for(s in B)c[s]&&m(c[s],T);if((!N||!M||M===O)&&(M=T.prototype,N))for(s in B)c[s]&&m(c[s].prototype,M);if(N&&p(w)!==M&&m(w,M),a&&!r(M,R))for(s in U=!0,u(M,R,{get:function(){return f(this)?this[A]:void 0}}),B)c[s]&&t(c[s],A,s);S.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:U&&A,aTypedArray:function(W){if(l(W))return W;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(W){if(m){if(L.call(T,W))return W}else for(var Z in B)if(r(B,s)&&(Z=c[Z],Z&&(W===Z||L.call(Z,W))))return W;throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(W,Z,q){if(a){if(q)for(var $ in B)$=c[$],$&&r($.prototype,W)&&delete $.prototype[W];M[W]&&!q||i(M,W,!q&&N&&x[W]||Z)}},exportTypedArrayStaticMethod:function(W,Z,q){var $,z;if(a){if(m){if(q)for($ in B)(z=c[$])&&r(z,W)&&delete z[W];if(T[W]&&!q)return;try{return i(T,W,!q&&N&&b[W]||Z)}catch{}}for($ in B)!(z=c[$])||z[W]&&!q||i(z,W,Z)}},isView:function(W){return W=o(W),W==="DataView"||r(B,W)},isTypedArray:l,TypedArray:T,TypedArrayPrototype:M}},{"../internals/array-buffer-native":11,"../internals/classof":29,"../internals/create-non-enumerable-property":38,"../internals/descriptors":43,"../internals/global":59,"../internals/has":60,"../internals/is-object":74,"../internals/object-define-property":92,"../internals/object-get-prototype-of":97,"../internals/object-set-prototype-of":101,"../internals/redefine":108,"../internals/uid":143,"../internals/well-known-symbol":146}],13:[function(F,S,v){function l(K){return[255&K]}function s(K){return[255&K,K>>8&255]}function n(K){return[255&K,K>>8&255,K>>16&255,K>>24&255]}function a(K){return K[3]<<24|K[2]<<16|K[1]<<8|K[0]}function c(K){return ae(K,23,4)}function f(K){return ae(K,52,8)}function r(K,fe){U(K[X],fe,{get:function(){return Z(this)[fe]}})}function o(Te,fe,Oe,ve){if(Oe=O(Oe),Te=Z(Te),Oe+fe>Te.byteLength)throw ee(Q);var pe=Z(Te.buffer).bytes,Oe=Oe+Te.byteOffset,Te=pe.slice(Oe,Oe+fe);return ve?Te:Te.reverse()}function t(K,fe,ge,ve,pe,Oe){if(ge=O(ge),K=Z(K),ge+fe>K.byteLength)throw ee(Q);for(var Te=Z(K.buffer).bytes,Re=ge+K.byteOffset,Me=ve(+pe),Be=0;Bele;)(de=oe[le++])in C||m(C,de,se[de]);i.constructor=C}A&&R(F)!==H&&A(F,H);var L=new P(new C(2)),me=F.setInt8;L.setInt8(0,2147483648),L.setInt8(1,2147483649),!L.getInt8(0)&&L.getInt8(1)||b(F,{setInt8:function(fe,ge){me.call(this,fe,ge<<24>>24)},setUint8:function(fe,ge){me.call(this,fe,ge<<24>>24)}},{unsafe:!0})}else C=function(K){w(this,C,$),K=O(K),q(this,{bytes:B.call(new Array(K),0),byteLength:K}),u||(this.byteLength=K)},P=function(K,pe,ge){w(this,P,z),w(K,C,z);var ve=Z(K).byteLength,pe=T(pe);if(pe<0||ve>24},getUint8:function(K){return o(this,1,K)[0]},getInt16:function(K){return K=o(this,2,K,1>16},getUint16:function(K){return K=o(this,2,K,1>>0},getFloat32:function(K){return ie(o(this,4,K,1"+r+""}},{"../internals/require-object-coercible":113}],37:[function(e,S,v){function l(){return this}var s=e("../internals/iterators-core").IteratorPrototype,n=e("../internals/object-create"),a=e("../internals/create-property-descriptor"),c=e("../internals/set-to-string-tag"),f=e("../internals/iterators");S.exports=function(r,o,t){return o+=" Iterator",r.prototype=n(s,{next:a(1,t)}),c(r,o,!1,!0),f[o]=l,r}},{"../internals/create-property-descriptor":39,"../internals/iterators":79,"../internals/iterators-core":78,"../internals/object-create":90,"../internals/set-to-string-tag":117}],38:[function(e,S,v){var l=e("../internals/descriptors"),s=e("../internals/object-define-property"),n=e("../internals/create-property-descriptor");S.exports=l?function(a,c,f){return s.f(a,c,n(1,f))}:function(a,c,f){return a[c]=f,a}},{"../internals/create-property-descriptor":39,"../internals/descriptors":43,"../internals/object-define-property":92}],39:[function(e,S,v){S.exports=function(l,s){return{enumerable:!(1&l),configurable:!(2&l),writable:!(4&l),value:s}}},{}],40:[function(e,S,v){var l=e("../internals/to-primitive"),s=e("../internals/object-define-property"),n=e("../internals/create-property-descriptor");S.exports=function(a,c,f){c=l(c),c in a?s.f(a,c,n(0,f)):a[c]=f}},{"../internals/create-property-descriptor":39,"../internals/object-define-property":92,"../internals/to-primitive":138}],41:[function(p,S,v){function l(){return this}var s=p("../internals/export"),n=p("../internals/create-iterator-constructor"),a=p("../internals/object-get-prototype-of"),c=p("../internals/object-set-prototype-of"),f=p("../internals/set-to-string-tag"),r=p("../internals/create-non-enumerable-property"),o=p("../internals/redefine"),t=p("../internals/well-known-symbol"),i=p("../internals/is-pure"),u=p("../internals/iterators"),p=p("../internals/iterators-core"),m=p.IteratorPrototype,b=p.BUGGY_SAFARI_ITERATORS,x=t("iterator"),w="values",T="entries";S.exports=function(M,O,L,q,A,N,U){n(L,O,q);function B(C){if(C===A&&Q)return Q;if(!b&&C in z)return z[C];switch(C){case"keys":case w:case T:return function(){return new L(this,C)}}return function(){return new L(this)}}var W,Z,q=O+" Iterator",$=!1,z=M.prototype,X=z[x]||z["@@iterator"]||A&&z[A],Q=!b&&X||B(A),se=O=="Array"&&z.entries||X;if(se&&(se=a(se.call(new M)),m!==Object.prototype&&se.next&&(i||a(se)===m||(c?c(se,m):typeof se[x]!="function"&&r(se,x,l)),f(se,q,!0,!0),i&&(u[q]=l))),A==w&&X&&X.name!==w&&($=!0,Q=function(){return X.call(this)}),i&&!U||z[x]===Q||r(z,x,Q),u[O]=Q,A)if(W={values:B(w),keys:N?Q:B("keys"),entries:B(T)},U)for(Z in W)!b&&!$&&Z in z||o(z,Z,W[Z]);else s({target:O,proto:!0,forced:b||$},W);return W}},{"../internals/create-iterator-constructor":37,"../internals/create-non-enumerable-property":38,"../internals/export":50,"../internals/is-pure":75,"../internals/iterators":79,"../internals/iterators-core":78,"../internals/object-get-prototype-of":97,"../internals/object-set-prototype-of":101,"../internals/redefine":108,"../internals/set-to-string-tag":117,"../internals/well-known-symbol":146}],42:[function(e,S,v){var l=e("../internals/path"),s=e("../internals/has"),n=e("../internals/well-known-symbol-wrapped"),a=e("../internals/object-define-property").f;S.exports=function(c){var f=l.Symbol||(l.Symbol={});s(f,c)||a(f,c,{value:n.f(c)})}},{"../internals/has":60,"../internals/object-define-property":92,"../internals/path":104,"../internals/well-known-symbol-wrapped":145}],43:[function(e,S,v){e=e("../internals/fails"),S.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":51}],44:[function(s,S,v){var l=s("../internals/global"),s=s("../internals/is-object"),n=l.document,a=s(n)&&s(n.createElement);S.exports=function(c){return a?n.createElement(c):{}}},{"../internals/global":59,"../internals/is-object":74}],45:[function(e,S,v){S.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(e,S,v){e=e("../internals/engine-user-agent"),S.exports=/(iphone|ipod|ipad).*applewebkit/i.test(e)},{"../internals/engine-user-agent":47}],47:[function(e,S,v){e=e("../internals/get-built-in"),S.exports=e("navigator","userAgent")||""},{"../internals/get-built-in":56}],48:[function(n,S,v){var l,s,a=n("../internals/global"),n=n("../internals/engine-user-agent"),a=a.process,a=a&&a.versions,a=a&&a.v8;a?s=(l=a.split("."))[0]+l[1]:n&&(!(l=n.match(/Edge\/(\d+)/))||74<=l[1])&&(l=n.match(/Chrome\/(\d+)/))&&(s=l[1]),S.exports=s&&+s},{"../internals/engine-user-agent":47,"../internals/global":59}],49:[function(e,S,v){S.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],50:[function(e,S,v){var l=e("../internals/global"),s=e("../internals/object-get-own-property-descriptor").f,n=e("../internals/create-non-enumerable-property"),a=e("../internals/redefine"),c=e("../internals/set-global"),f=e("../internals/copy-constructor-properties"),r=e("../internals/is-forced");S.exports=function(o,t){var i,u,p,m=o.target,b=o.global,x=o.stat,w=b?l:x?l[m]||c(m,{}):(l[m]||{}).prototype;if(w)for(i in t){if(u=t[i],p=o.noTargetGet?(p=s(w,i))&&p.value:w[i],!r(b?i:m+(x?".":"#")+i,o.forced)&&p!==void 0){if(typeof u==typeof p)continue;f(u,p)}(o.sham||p&&p.sham)&&n(u,"sham",!0),a(w,i,u,o)}}},{"../internals/copy-constructor-properties":33,"../internals/create-non-enumerable-property":38,"../internals/global":59,"../internals/is-forced":73,"../internals/object-get-own-property-descriptor":93,"../internals/redefine":108,"../internals/set-global":115}],51:[function(e,S,v){S.exports=function(l){try{return!!l()}catch{return!0}}},{}],52:[function(t,S,v){t("../modules/es.regexp.exec");var l=t("../internals/redefine"),s=t("../internals/fails"),n=t("../internals/well-known-symbol"),a=t("../internals/regexp-exec"),c=t("../internals/create-non-enumerable-property"),f=n("species"),r=!s(function(){var p=/./;return p.exec=function(){var m=[];return m.groups={a:"7"},m},"".replace(p,"$")!=="7"}),o="a".replace(/./,"$0")==="$0",t=n("replace"),i=!!/./[t]&&/./[t]("a","$0")==="",u=!s(function(){var m=/(?:)/,p=m.exec,m=(m.exec=function(){return p.apply(this,arguments)},"ab".split(m));return m.length!==2||m[0]!=="a"||m[1]!=="b"});S.exports=function(p,m,b,x){var w,T,M=n(p),O=!s(function(){var R={};return R[M]=function(){return 7},""[p](R)!=7}),L=O&&!s(function(){var R=!1,A=/a/;return p==="split"&&((A={constructor:{}}).constructor[f]=function(){return A},A.flags="",A[M]=/./[M]),A.exec=function(){return R=!0,null},A[M](""),!R});O&&L&&(p!=="replace"||r&&o&&!i)&&(p!=="split"||u)||(w=/./[M],b=(L=b(M,""[p],function(R,A,N,U,B){return A.exec===a?O&&!B?{done:!0,value:w.call(A,N,U)}:{done:!0,value:R.call(N,A,U)}:{done:!1}},{REPLACE_KEEPS_$0:o,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:i}))[0],T=L[1],l(String.prototype,p,b),l(RegExp.prototype,M,m==2?function(R,A){return T.call(R,this,A)}:function(R){return T.call(R,this)})),x&&c(RegExp.prototype[M],"sham",!0)}},{"../internals/create-non-enumerable-property":38,"../internals/fails":51,"../internals/redefine":108,"../internals/regexp-exec":110,"../internals/well-known-symbol":146,"../modules/es.regexp.exec":181}],53:[function(e,S,v){e=e("../internals/fails"),S.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},{"../internals/fails":51}],54:[function(e,S,v){var l=e("../internals/a-function");S.exports=function(s,n,a){if(l(s),n===void 0)return s;switch(a){case 0:return function(){return s.call(n)};case 1:return function(c){return s.call(n,c)};case 2:return function(c,f){return s.call(n,c,f)};case 3:return function(c,f,r){return s.call(n,c,f,r)}}return function(){return s.apply(n,arguments)}}},{"../internals/a-function":5}],55:[function(e,S,v){var l=e("../internals/a-function"),s=e("../internals/is-object"),n=[].slice,a={};S.exports=Function.bind||function(c){var f=l(this),r=n.call(arguments,1),o=function(){var t=r.concat(n.call(arguments));if(this instanceof o){var i=f,u=t.length,p=t;if(!(u in a)){for(var m=[],b=0;b>1,w=r===23?s(2,-24)-s(2,-77):0,T=f<0||f===0&&1/f<0?1:0,M=0;for((f=l(f))!=f||f===1/0?(i=f!=f?1:0,t=b):(t=n(a(f)/c),f*(u=s(2,-t))<1&&(t--,u*=2),2<=(f+=1<=t+x?w/u:w*s(2,1-x))*u&&(t++,u/=2),b<=t+x?(i=0,t=b):1<=t+x?(i=(f*u-1)*s(2,r),t+=x):(i=f*s(2,x-1)*s(2,r),t=0));8<=r;p[M++]=255&i,i/=256,r-=8);for(t=t<>1,p=b-7,m=t-1,b=f[m--],x=127&b;for(b>>=7;0>=-p,p+=r;0"+x+""},b=function(){try{s=document.domain&&new ActiveXObject("htmlfile")}catch{}b=s?((x=s).write(m("")),x.close(),w=x.parentWindow.Object,x=null,w):(x=o("iframe"),w="java"+u+":",x.style.display="none",r.appendChild(x),x.src=String(w),(w=x.contentWindow.document).open(),w.write(m("document.F=Object")),w.close(),w.F);for(var x,w,T=c.length;T--;)delete b[i][c[T]];return b()};f[p]=!0,S.exports=Object.create||function(x,w){var T;return x!==null?(l[i]=n(x),T=new l,l[i]=null,T[p]=x):T=b(),w===void 0?T:a(T,w)}},{"../internals/an-object":10,"../internals/document-create-element":44,"../internals/enum-bug-keys":49,"../internals/hidden-keys":61,"../internals/html":63,"../internals/object-define-properties":91,"../internals/shared-key":118}],91:[function(e,S,v){var l=e("../internals/descriptors"),s=e("../internals/object-define-property"),n=e("../internals/an-object"),a=e("../internals/object-keys");S.exports=l?Object.defineProperties:function(c,f){n(c);for(var r,o=a(f),t=o.length,i=0;it;)!l(o,r=f[t++])||~n(i,r)||i.push(r);return i}},{"../internals/array-includes":18,"../internals/has":60,"../internals/hidden-keys":61,"../internals/to-indexed-object":132}],99:[function(e,S,v){var l=e("../internals/object-keys-internal"),s=e("../internals/enum-bug-keys");S.exports=Object.keys||function(n){return l(n,s)}},{"../internals/enum-bug-keys":49,"../internals/object-keys-internal":98}],100:[function(e,S,v){var l={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,n=s&&!l.call({1:2},1);v.f=n?function(a){return a=s(this,a),!!a&&a.enumerable}:l},{}],101:[function(e,S,v){var l=e("../internals/an-object"),s=e("../internals/a-possible-prototype");S.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var n,a=!1,c={};try{(n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(c,[]),a=c instanceof Array}catch{}return function(f,r){return l(f),s(r),a?n.call(f,r):f.__proto__=r,f}}():void 0)},{"../internals/a-possible-prototype":6,"../internals/an-object":10}],102:[function(e,S,v){var l=e("../internals/to-string-tag-support"),s=e("../internals/classof");S.exports=l?{}.toString:function(){return"[object "+s(this)+"]"}},{"../internals/classof":29,"../internals/to-string-tag-support":139}],103:[function(e,S,v){var l=e("../internals/get-built-in"),s=e("../internals/object-get-own-property-names"),n=e("../internals/object-get-own-property-symbols"),a=e("../internals/an-object");S.exports=l("Reflect","ownKeys")||function(c){var f=s.f(a(c)),r=n.f;return r?f.concat(r(c)):f}},{"../internals/an-object":10,"../internals/get-built-in":56,"../internals/object-get-own-property-names":95,"../internals/object-get-own-property-symbols":96}],104:[function(e,S,v){e=e("../internals/global"),S.exports=e},{"../internals/global":59}],105:[function(e,S,v){S.exports=function(l){try{return{error:!1,value:l()}}catch(s){return{error:!0,value:s}}}},{}],106:[function(e,S,v){var l=e("../internals/an-object"),s=e("../internals/is-object"),n=e("../internals/new-promise-capability");S.exports=function(a,c){return l(a),s(c)&&c.constructor===a?c:((0,(a=n.f(a)).resolve)(c),a.promise)}},{"../internals/an-object":10,"../internals/is-object":74,"../internals/new-promise-capability":86}],107:[function(e,S,v){var l=e("../internals/redefine");S.exports=function(s,n,a){for(var c in n)l(s,c,n[c],a);return s}},{"../internals/redefine":108}],108:[function(f,S,v){var l=f("../internals/global"),s=f("../internals/create-non-enumerable-property"),n=f("../internals/has"),a=f("../internals/set-global"),c=f("../internals/inspect-source"),f=f("../internals/internal-state"),r=f.get,o=f.enforce,t=String(String).split("String");(S.exports=function(i,u,p,w){var b=!!w&&!!w.unsafe,x=!!w&&!!w.enumerable,w=!!w&&!!w.noTargetGet;typeof p=="function"&&(typeof u!="string"||n(p,"name")||s(p,"name",u),o(p).source=t.join(typeof u=="string"?u:"")),i===l?x?i[u]=p:a(u,p):(b?!w&&i[u]&&(x=!0):delete i[u],x?i[u]=p:s(i,u,p))})(Function.prototype,"toString",function(){return typeof this=="function"&&r(this).source||c(this)})},{"../internals/create-non-enumerable-property":38,"../internals/global":59,"../internals/has":60,"../internals/inspect-source":68,"../internals/internal-state":70,"../internals/set-global":115}],109:[function(e,S,v){var l=e("./classof-raw"),s=e("./regexp-exec");S.exports=function(n,a){var c=n.exec;if(typeof c=="function"){if(c=c.call(n,a),typeof c!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return c}if(l(n)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return s.call(n,a)}},{"./classof-raw":28,"./regexp-exec":110}],110:[function(a,S,v){var l,s,n=a("./regexp-flags"),a=a("./regexp-sticky-helpers"),c=RegExp.prototype.exec,f=String.prototype.replace,r=c,o=(l=/a/,s=/b*/g,c.call(l,"a"),c.call(s,"a"),l.lastIndex!==0||s.lastIndex!==0),t=a.UNSUPPORTED_Y||a.BROKEN_CARET,i=/()??/.exec("")[1]!==void 0;S.exports=r=o||i||t?function(u){var p,m,b,x,w=this,T=t&&w.sticky,M=n.call(w),O=w.source,L=0,R=u;return T&&((M=M.replace("y","")).indexOf("g")===-1&&(M+="g"),R=String(u).slice(w.lastIndex),0p((n-O)/B))throw RangeError(i);for(O+=(N-M)*B,M=N,U=0;Un)throw RangeError(i);if(x==M){for(var W=O,Z=a;;Z+=a){var q=Z<=L?1:L+c<=Z?c:Z-L;if(W>1,X+=p(X/Q);u*c>>1>>=1)&&(a+=a))1&f&&(c+=a);return c}},{"../internals/require-object-coercible":113,"../internals/to-integer":133}],126:[function(e,S,v){var l=e("../internals/fails"),s=e("../internals/whitespaces");S.exports=function(n){return l(function(){return!!s[n]()||"\u200B\x85\u180E"[n]()!="\u200B\x85\u180E"||s[n].name!==n})}},{"../internals/fails":51,"../internals/whitespaces":147}],127:[function(n,S,v){function l(f){return function(r){return r=String(s(r)),1&f&&(r=r.replace(a,"")),r=2&f?r.replace(c,""):r}}var s=n("../internals/require-object-coercible"),n="["+n("../internals/whitespaces")+"]",a=RegExp("^"+n+n+"*"),c=RegExp(n+n+"*$");S.exports={start:l(1),end:l(2),trim:l(3)}},{"../internals/require-object-coercible":113,"../internals/whitespaces":147}],128:[function(u,S,v){function l(A){return function(){R(A)}}function s(A){R(A.data)}function n(A){c.postMessage(A+"",p.protocol+"//"+p.host)}var a,c=u("../internals/global"),f=u("../internals/fails"),r=u("../internals/classof-raw"),o=u("../internals/function-bind-context"),t=u("../internals/html"),i=u("../internals/document-create-element"),u=u("../internals/engine-is-ios"),p=c.location,m=c.setImmediate,b=c.clearImmediate,x=c.process,w=c.MessageChannel,T=c.Dispatch,M=0,O={},L="onreadystatechange",R=function(A){var N;O.hasOwnProperty(A)&&(N=O[A],delete O[A],N())};m&&b||(m=function(A){for(var N=[],U=1;U=i.length?{value:t.target=void 0,done:!0}:u=="keys"?{value:p,done:!1}:u=="values"?{value:i[p],done:!1}:{value:[p,i[p]],done:!1}},"values"),n.Arguments=n.Array,s("keys"),s("values"),s("entries")},{"../internals/add-to-unscopables":7,"../internals/define-iterator":41,"../internals/internal-state":70,"../internals/iterators":79,"../internals/to-indexed-object":132}],159:[function(c,S,v){var l=c("../internals/export"),a=c("../internals/indexed-object"),s=c("../internals/to-indexed-object"),c=c("../internals/array-method-is-strict"),n=[].join,a=a!=Object,c=c("join",",");l({target:"Array",proto:!0,forced:a||!c},{join:function(f){return n.call(s(this),f===void 0?",":f)}})},{"../internals/array-method-is-strict":22,"../internals/export":50,"../internals/indexed-object":66,"../internals/to-indexed-object":132}],160:[function(s,S,v){var l=s("../internals/export"),s=s("../internals/array-last-index-of");l({target:"Array",proto:!0,forced:s!==[].lastIndexOf},{lastIndexOf:s})},{"../internals/array-last-index-of":20,"../internals/export":50}],161:[function(a,S,v){var l=a("../internals/export"),s=a("../internals/array-iteration").map,n=a("../internals/array-method-has-species-support"),a=a("../internals/array-method-uses-to-length"),n=n("map"),a=a("map");l({target:"Array",proto:!0,forced:!n||!a},{map:function(c){return s(this,c,1N;N++)f(T,L=A[N])&&!f(R,L)&&b(R,L,m(T,L));(R.prototype=M).constructor=R,c(n,w,R)}},{"../internals/classof-raw":28,"../internals/descriptors":43,"../internals/fails":51,"../internals/global":59,"../internals/has":60,"../internals/inherit-if-required":67,"../internals/is-forced":73,"../internals/object-create":90,"../internals/object-define-property":92,"../internals/object-get-own-property-descriptor":93,"../internals/object-get-own-property-names":95,"../internals/redefine":108,"../internals/string-trim":127,"../internals/to-primitive":138}],170:[function(e,S,v){e("../internals/export")({target:"Number",stat:!0},{isFinite:e("../internals/number-is-finite")})},{"../internals/export":50,"../internals/number-is-finite":88}],171:[function(f,S,v){function l(t,i,u){return i===0?u:i%2==1?l(t,i-1,u*t):l(t*t,i/2,u)}var s=f("../internals/export"),n=f("../internals/to-integer"),a=f("../internals/this-number-value"),c=f("../internals/string-repeat"),f=f("../internals/fails"),r=1 .toFixed,o=Math.floor;s({target:"Number",proto:!0,forced:r&&(8e-5 .toFixed(3)!=="0.000"||.9 .toFixed(0)!=="1"||1.255 .toFixed(2)!=="1.25"||0xde0b6b3a7640080 .toFixed(0)!=="1000000000000000128")||!f(function(){r.call({})})},{toFixed:function(w){function i(L,R){for(var A=-1,N=R;++A<6;)N+=L*T[A],T[A]=N%1e7,N=o(N/1e7)}function u(L){for(var R=6,A=0;0<=--R;)A+=T[R],T[R]=o(A/L),A=A%L*1e7}function p(){for(var L,R=6,A="";0<=--R;)A===""&&R!==0&&T[R]===0||(L=String(T[R]),A=A===""?L:A+c.call("0",7-L.length)+L);return A}var m,b,x=a(this),w=n(w),T=[0,0,0,0,0,0],M="",O="0";if(w<0||20ke;){var Ue,Ne,Ge,We=J[ke++],lt=we?We.ok:We.fail,st=We.resolve,Je=We.reject,at=We.domain;try{lt?(we||(_e.rejection===Oe&&function(ot,wt){A.call(r,function(){le?ae.emit("rejectionHandled",ot):$e(fe,ot,wt.value)})}(Le,_e),_e.rejection=pe),lt===!0?Ue=ye:(at&&at.enter(),Ue=lt(ye),at&&(at.exit(),Ge=!0)),Ue===We.promise?Je(H("Promise-chain cycle")):(Ne=Me(Ue))?Ne.call(Ue,st,Je):st(Ue)):Je(ye)}catch(ot){at&&!Ge&&at.exit(),Je(ot)}}_e.reactions=[],_e.notified=!1,V&&!_e.rejection&&(G=Le,te=_e,A.call(r,function(){var ot=te.value,wt=ze(te);if(wt&&(wt=Z(function(){le?ae.emit("unhandledRejection",ot,G):$e(K,G,ot)}),te.rejection=le||ze(te)?Oe:pe,wt.error))throw wt.value}))}))},$e=function(Le,_e,V){var J;me?((J=ee.createEvent("Event")).promise=_e,J.reason=V,J.initEvent(Le,!1,!0),r.dispatchEvent(J)):J={promise:_e,reason:V},(_e=r["on"+Le])?_e(J):Le===K&&B("Unhandled promise rejection",V)},ze=function(Le){return Le.rejection!==pe&&!Le.parent},Qe=function(Le,_e,V,J){return function(G){Le(_e,V,G,J)}},Xe=function(Le,_e,V,J){_e.done||(_e.done=!0,(_e=J||_e).value=V,_e.state=ve,Be(Le,_e,!0))},be=function(Le,_e,V,J){if(!_e.done){_e.done=!0,J&&(_e=J);try{if(Le===V)throw H("Promise can't be resolved itself");var G=Me(V);G?N(function(){var te={done:!1};try{G.call(V,Qe(be,Le,te,_e),Qe(Xe,Le,te,_e))}catch(ye){Xe(Le,te,ye,_e)}}):(_e.value=V,_e.state=ge,Be(Le,_e,!1))}catch(te){Xe(Le,{done:!1},te,_e)}}};Te&&(F=function(Le){w(this,F,Q),x(Le),l.call(this);var _e=se(this);try{Le(Qe(be,this,_e),Qe(Xe,this,_e))}catch(V){Xe(this,_e,V)}},(l=function(Le){C(this,{type:Q,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=u(F.prototype,{then:function(Le,_e){var V=P(this),J=de(R(this,F));return J.ok=typeof Le!="function"||Le,J.fail=typeof _e=="function"&&_e,J.domain=le?ae.domain:void 0,V.parent=!0,V.reactions.push(J),V.state!=0&&Be(this,V,!1),J.promise},catch:function(Le){return this.then(void 0,Le)}}),s=function(){var Le=new l,_e=se(Le);this.promise=Le,this.resolve=Qe(be,Le,_e),this.reject=Qe(Xe,Le,_e)},W.f=de=function(Le){return Le===F||Le===n?new s:oe(Le)},f||typeof t!="function"||(a=t.prototype.then,i(t.prototype,"then",function(Le,_e){var V=this;return new F(function(J,G){a.call(V,J,G)}).then(Le,_e)},{unsafe:!0}),typeof ie=="function"&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(Le){return U(F,ie.apply(r,arguments))}}))),c({global:!0,wrap:!0,forced:Te},{Promise:F}),p(F,Q,!1,!0),m(Q),n=o(Q),c({target:Q,stat:!0,forced:Te},{reject:function(Le){var _e=de(this);return _e.reject.call(void 0,Le),_e.promise}}),c({target:Q,stat:!0,forced:f||Te},{resolve:function(Le){return U(f&&this===n?F:this,Le)}}),c({target:Q,stat:!0,forced:Re},{all:function(Le){var _e=this,V=de(_e),J=V.resolve,G=V.reject,te=Z(function(){var ye=x(_e.resolve),we=[],ke=0,Ue=1;O(Le,function(Ne){var Ge=ke++,We=!1;we.push(void 0),Ue++,ye.call(_e,Ne).then(function(lt){We||(We=!0,we[Ge]=lt,--Ue||J(we))},G)}),--Ue||J(we)});return te.error&&G(te.value),V.promise},race:function(Le){var _e=this,V=de(_e),J=V.reject,G=Z(function(){var te=x(_e.resolve);O(Le,function(ye){te.call(_e,ye).then(V.resolve,J)})});return G.error&&J(G.value),V.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":56,"../internals/global":59,"../internals/host-report-errors":62,"../internals/inspect-source":68,"../internals/internal-state":70,"../internals/is-forced":73,"../internals/is-object":74,"../internals/is-pure":75,"../internals/iterate":77,"../internals/microtask":81,"../internals/native-promise-constructor":82,"../internals/new-promise-capability":86,"../internals/perform":105,"../internals/promise-resolve":106,"../internals/redefine":108,"../internals/redefine-all":107,"../internals/set-species":116,"../internals/set-to-string-tag":117,"../internals/species-constructor":121,"../internals/task":128,"../internals/well-known-symbol":146}],179:[function(r,S,v){var l=r("../internals/export"),u=r("../internals/get-built-in"),s=r("../internals/a-function"),n=r("../internals/an-object"),a=r("../internals/is-object"),c=r("../internals/object-create"),f=r("../internals/function-bind"),r=r("../internals/fails"),o=u("Reflect","construct"),t=r(function(){function p(){}return!(o(function(){},[],p)instanceof p)}),i=!r(function(){o(function(){})}),u=t||i;l({target:"Reflect",stat:!0,forced:u,sham:u},{construct:function(p,m){s(p),n(m);var b=arguments.length<3?p:s(arguments[2]);if(i&&!t)return o(p,m,b);if(p==b){switch(m.length){case 0:return new p;case 1:return new p(m[0]);case 2:return new p(m[0],m[1]);case 3:return new p(m[0],m[1],m[2]);case 4:return new p(m[0],m[1],m[2],m[3])}var x=[null];return x.push.apply(x,m),new(f.apply(p,x))}return x=b.prototype,b=c(a(x)?x:Object.prototype),x=Function.apply.call(p,b,m),a(x)?x:b}})},{"../internals/a-function":5,"../internals/an-object":10,"../internals/export":50,"../internals/fails":51,"../internals/function-bind":55,"../internals/get-built-in":56,"../internals/is-object":74,"../internals/object-create":90}],180:[function(e,S,v){var l=e("../internals/descriptors"),s=e("../internals/global"),n=e("../internals/is-forced"),a=e("../internals/inherit-if-required"),c=e("../internals/object-define-property").f,f=e("../internals/object-get-own-property-names").f,r=e("../internals/is-regexp"),o=e("../internals/regexp-flags"),t=e("../internals/regexp-sticky-helpers"),i=e("../internals/redefine"),u=e("../internals/fails"),p=e("../internals/internal-state").set,m=e("../internals/set-species"),b=e("../internals/well-known-symbol")("match"),x=s.RegExp,w=x.prototype,T=/a/g,M=/a/g,O=new x(T)!==T,L=t.UNSUPPORTED_Y;if(l&&n("RegExp",!O||L||u(function(){return M[b]=!1,x(T)!=T||x(M)==M||x(T,"i")!="/a/i"}))){for(var R=function(U,B){var W,Z=this instanceof R,q=r(U),$=B===void 0;return!Z&&q&&U.constructor===R&&$?U:(O?q&&!$&&(U=U.source):U instanceof R&&($&&(B=o.call(U)),U=U.source),L&&(W=!!B&&-1N;)(function(U){U in R||c(R,U,{configurable:!0,get:function(){return x[U]},set:function(B){x[U]=B}})})(A[N++]);(w.constructor=R).prototype=w,i(s,"RegExp",R)}m("RegExp")},{"../internals/descriptors":43,"../internals/fails":51,"../internals/global":59,"../internals/inherit-if-required":67,"../internals/internal-state":70,"../internals/is-forced":73,"../internals/is-regexp":76,"../internals/object-define-property":92,"../internals/object-get-own-property-names":95,"../internals/redefine":108,"../internals/regexp-flags":111,"../internals/regexp-sticky-helpers":112,"../internals/set-species":116,"../internals/well-known-symbol":146}],181:[function(s,S,v){var l=s("../internals/export"),s=s("../internals/regexp-exec");l({target:"RegExp",proto:!0,forced:/./.exec!==s},{exec:s})},{"../internals/export":50,"../internals/regexp-exec":110}],182:[function(a,S,v){var l=a("../internals/redefine"),s=a("../internals/an-object"),r=a("../internals/fails"),n=a("../internals/regexp-flags"),a="toString",c=RegExp.prototype,f=c[a],r=r(function(){return f.call({source:"a",flags:"b"})!="/a/b"}),o=f.name!=a;(r||o)&&l(RegExp.prototype,a,function(){var t=s(this),i=String(t.source),u=t.flags;return"/"+i+"/"+String(u===void 0&&t instanceof RegExp&&!("flags"in c)?n.call(t):u)},{unsafe:!0})},{"../internals/an-object":10,"../internals/fails":51,"../internals/redefine":108,"../internals/regexp-flags":111}],183:[function(s,S,v){var l=s("../internals/collection"),s=s("../internals/collection-strong");S.exports=l("Set",function(n){return function(){return n(this,arguments.length?arguments[0]:void 0)}},s)},{"../internals/collection":32,"../internals/collection-strong":30}],184:[function(f,S,v){var l=f("../internals/export"),s=f("../internals/object-get-own-property-descriptor").f,n=f("../internals/to-length"),a=f("../internals/not-a-regexp"),c=f("../internals/require-object-coercible"),t=f("../internals/correct-is-regexp-logic"),f=f("../internals/is-pure"),r="".endsWith,o=Math.min,t=t("endsWith");l({target:"String",proto:!0,forced:!!(f||t||!(l=s(String.prototype,"endsWith"))||l.writable)&&!t},{endsWith:function(i){var u=String(c(this)),p=(a(i),1=o.length?{value:void 0,done:!0}:(o=l(o,t),r.index+=o.length,{value:o,done:!1})})},{"../internals/define-iterator":41,"../internals/internal-state":70,"../internals/string-multibyte":123}],187:[function(e,S,v){var l=e("../internals/fix-regexp-well-known-symbol-logic"),s=e("../internals/an-object"),n=e("../internals/to-length"),a=e("../internals/require-object-coercible"),c=e("../internals/advance-string-index"),f=e("../internals/regexp-exec-abstract");l("match",1,function(r,o,t){return[function(i){var u=a(this),p=i==null?void 0:i[r];return p!==void 0?p.call(i,u):new RegExp(i)[r](String(u))},function(i){var u=t(o,i,this);if(u.done)return u.value;var p=s(i),m=String(this);if(!p.global)return f(p,m);for(var b=p.unicode,x=[],w=p.lastIndex=0;(T=f(p,m))!==null;){var T=String(T[0]);(x[w]=T)===""&&(p.lastIndex=c(m,n(p.lastIndex),b)),w++}return w===0?null:x}]})},{"../internals/advance-string-index":8,"../internals/an-object":10,"../internals/fix-regexp-well-known-symbol-logic":52,"../internals/regexp-exec-abstract":109,"../internals/require-object-coercible":113,"../internals/to-length":134}],188:[function(e,S,v){e("../internals/export")({target:"String",proto:!0},{repeat:e("../internals/string-repeat")})},{"../internals/export":50,"../internals/string-repeat":125}],189:[function(e,S,v){var l=e("../internals/fix-regexp-well-known-symbol-logic"),s=e("../internals/an-object"),n=e("../internals/to-object"),a=e("../internals/to-length"),c=e("../internals/to-integer"),f=e("../internals/require-object-coercible"),r=e("../internals/advance-string-index"),o=e("../internals/regexp-exec-abstract"),t=Math.max,i=Math.min,u=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;l("replace",2,function(b,x,w,T){var M=T.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,O=T.REPLACE_KEEPS_$0,L=M?"$":"$0";return[function(R,A){var N=f(this),U=R==null?void 0:R[b];return U!==void 0?U.call(R,N,A):x.call(String(N),R,A)},function(R,A){if(!M&&O||typeof A=="string"&&A.indexOf(L)===-1){var N=w(x,R,this,A);if(N.done)return N.value}for(var U,B=s(R),W=String(this),Z=typeof A=="function",q=(Z||(A=String(A)),B.global),$=(q&&(U=B.unicode,B.lastIndex=0),[]);(C=o(B,W))!==null&&($.push(C),q);)String(C[0])===""&&(B.lastIndex=r(W,a(B.lastIndex),U));for(var z,X="",Q=0,se=0;se<$.length;se++){for(var C=$[se],P=String(C[0]),F=t(i(c(C.index),W.length),0),H=[],ee=1;ee>>0;if(A==0)return[];if(O===void 0)return[R];if(!s(O))return w.call(R,O,A);for(var N,U,B,W=[],L=(O.ignoreCase?"i":"")+(O.multiline?"m":"")+(O.unicode?"u":"")+(O.sticky?"y":""),Z=0,q=new RegExp(O.source,L+"g");(N=t.call(q,R))&&!(Z<(U=q.lastIndex)&&(W.push(R.slice(Z,N.index)),1=A));)q.lastIndex===N.index&&q.lastIndex++;return Z===R.length?!B&&q.test("")||W.push(""):W.push(R.slice(Z)),W.length>A?W.slice(0,A):W}:"0".split(void 0,0).length?function(O,L){return O===void 0&&L===0?[]:w.call(this,O,L)}:w;return[function(O,L){var R=a(this),A=O==null?void 0:O[x];return A!==void 0?A.call(O,R,L):M.call(String(R),O,L)},function(N,L){var R=T(M,N,this,L,M!==w);if(R.done)return R.value;var R=n(N),A=String(this),N=c(R,RegExp),U=R.unicode,B=(R.ignoreCase?"i":"")+(R.multiline?"m":"")+(R.unicode?"u":"")+(b?"y":"g"),W=new N(b?R:"^(?:"+R.source+")",B),Z=L===void 0?m:L>>>0;if(Z==0)return[];if(A.length===0)return o(W,A)===null?[A]:[];for(var q=0,$=0,z=[];$ie.key){le.splice(de,0,ie);break}de===K&&le.push(ie)}oe.updateURL()},forEach:function(ie){for(var de,oe=z(this).entries,le=w(ie,16))return;for(At=0;Wt();){if(Ht=null,At>0)if(Wt()=="."&&At<4)He++;else return;if(!F.test(Wt()))return;for(;F.test(Wt());){if(br=parseInt(Wt(),10),Ht===null)Ht=br;else{if(Ht==0)return;Ht=Ht*10+br}if(Ht>255)return;He++}yt[Ve]=yt[Ve]*256+Ht,At++,(At==2||At==4)&&Ve++}if(At!=4)return;break}else if(Wt()==":"){if(He++,!Wt())return}else if(Wt())return;yt[Ve++]=Ut}if(ht!==null)for(ur=Ve-ht,Ve=7;Ve!=0&&ur>0;)xr=yt[Ve],yt[Ve--]=yt[ht+ur-1],yt[ht+--ur]=xr;else if(Ve!=8)return;return yt}(Fe.slice(1,-1)))?void(ce.host=qe):Q;if(Me(ce))return Fe=O(Fe),de.test(Fe)||(qe=function(Ie){var yt=Ie.split("."),Ve,ht,He,Ut,Vt,At,Ht;if(yt.length&&yt[yt.length-1]==""&&yt.pop(),(Ve=yt.length)>4)return Ie;for(ht=[],He=0;He1&&Ut.charAt(0)=="0"&&(Vt=H.test(Ut)?16:8,Ut=Ut.slice(Vt==8?1:2)),Ut==="")At=0;else{if(!(Vt==10?ae:Vt==8?ee:ie).test(Ut))return Ie;At=parseInt(Ut,Vt)}ht.push(At)}for(He=0;He=$(256,5-Ve))return null}else if(At>255)return null;for(Ht=ht.pop(),He=0;He":1,"`":1}),pe=w({},ve,{"#":1,"?":1,"{":1,"}":1}),Oe=w({},pe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Te=function(ce,Fe){var qe=M(ce,0);return 32"u"&&l!==void 0&&{}.toString.call(l)==="[object process]",b=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function x(){var K=setTimeout;return function(){return K(T,1)}}var w=new Array(1e3);function T(){for(var K=0;KR,applyPalette:()=>function(Z,q,$="rgb565"){if(!Z||!Z.buffer)throw new Error("quantize() expected RGBA Uint8Array data");if(!(Z instanceof Uint8Array||Z instanceof Uint8ClampedArray))throw new Error("quantize() expected RGBA Uint8Array data");if(256>24&255,F=ee>>16&255,H=ee>>8&255,ee=255&ee,ae=i(ee,H,F,P),ae=ae in C?C[ae]:C[ae]=function(K,fe,ge,ve,pe){let Oe=0,Te=1e100;for(let $e=0;$eTe||(Re=Me[0],(Be+=M(Re-K))>Te||(Re=Me[1],(Be+=M(Re-fe))>Te||(Re=Me[2],(Be+=M(Re-ge))>Te||(Te=Be,Oe=$e))))}return Oe}(ee,H,F,P,q);se[me]=ae}else{const me=$==="rgb444"?u:t;for(let K=0;K>16&255,de=oe>>8&255,oe=255&oe,le=me(oe,de,ie),le=le in C?C[le]:C[le]=function(fe,ge,ve,pe){let Oe=0,Te=1e100;for(let $e=0;$eTe||(Re=Me[1],(Be+=M(Re-ge))>Te||(Re=Me[2],(Be+=M(Re-ve))>Te||(Te=Be,Oe=$e)))}return Oe}(oe,de,ie,q);se[K]=le}}return se},default:()=>W,nearestColor:()=>function(Z,q,$=w){return Z[O(Z,q,$)]},nearestColorIndex:()=>O,nearestColorIndexWithDistance:()=>L,prequantize:()=>function(Z,{roundRGB:q=5,roundAlpha:$=10,oneBitAlpha:z=null}={}){const X=new Uint32Array(Z.buffer);for(let F=0;F>24&255;var Q,se=P>>16&255,C=P>>8&255,P=255&P;H=T(H,$),z&&(Q=typeof z=="number"?z:127,H=H<=Q?0:255),P=T(P,q),C=T(C,q),se=T(se,q),X[F]=H<<24|se<<16|C<<8|P<<0}},quantize:()=>function(Z,q,$={}){var{format:z="rgb565",clearAlpha:X=!0,clearAlphaColor:Q=0,clearAlphaThreshold:se=0,oneBitAlpha:C=!1}=$;if(!Z||!Z.buffer)throw new Error("quantize() expected RGBA Uint8Array data");if(!(Z instanceof Uint8Array||Z instanceof Uint8ClampedArray))throw new Error("quantize() expected RGBA Uint8Array data");Z=new Uint32Array(Z.buffer);let P=$.useSqrt!==!1;const F=z==="rgba4444",H=function(ze,Qe){const Xe=Qe==="rgb444"?4096:65536,be=new Array(Xe),Le=ze.length;if(Qe==="rgba4444")for(let st=0;st>24&255,V=G>>16&255,J=G>>8&255,G=255&G,te=i(G,J,V,_e);let Je=te in be?be[te]:be[te]=x();Je.rc+=G,Je.gc+=J,Je.bc+=V,Je.ac+=_e,Je.cnt++}else if(Qe==="rgb444")for(let st=0;st>16&255,we=ke>>8&255,ke=255&ke,Ue=u(ke,we,ye);let Je=Ue in be?be[Ue]:be[Ue]=x();Je.rc+=ke,Je.gc+=we,Je.bc+=ye,Je.cnt++}else for(let st=0;st>16&255,Ge=We>>8&255,We=255&We,lt=t(We,Ge,Ne);let Je=lt in be?be[lt]:be[lt]=x();Je.rc+=We,Je.gc+=Ge,Je.bc+=Ne,Je.cnt++}return be}(Z,z),ee=H.length,ae=ee-1,ie=new Uint32Array(ee+1);for(var de=0,oe=0;oe>1,!(H[le=ie[K]].err<=fe));me=K)ie[me]=le;ie[me]=oe}var ge,ve=de-q;for(oe=0;oe=ge.mtm&&H[ge.nn].mtm<=ge.tm)break;for(ge.mtm==ae?pe=ie[1]=ie[ie[0]--]:(b(H,pe,!1),ge.tm=oe),fe=H[pe].err,me=1;(K=me+me)<=ie[0]&&(KH[ie[K+1]].err&&K++,!(fe<=H[le=ie[K]].err));me=K)ie[me]=le;ie[me]=pe}var Oe=H[ge.nn],Te=ge.cnt,Re=Oe.cnt,Me=1/(Te+Re);F&&(ge.ac=Me*(Te*ge.ac+Re*Oe.ac)),ge.rc=Me*(Te*ge.rc+Re*Oe.rc),ge.gc=Me*(Te*ge.gc+Re*Oe.gc),ge.bc=Me*(Te*ge.bc+Re*Oe.bc),ge.cnt+=Oe.cnt,ge.mtm=++oe,H[Oe.bk].fw=Oe.fw,H[Oe.fw].bk=Oe.bk,Oe.mtm=ae}let Be=[];for(oe=0;;0){let ze=p(Math.round(H[oe].rc),0,255),Qe=p(Math.round(H[oe].gc),0,255),Xe=p(Math.round(H[oe].bc),0,255),be=255;F&&(be=p(Math.round(H[oe].ac),0,255),C&&($e=typeof C=="number"?C:127,be=be<=$e?0:255),X&&be<=se&&(ze=Qe=Xe=Q,be=0));var $e=F?[ze,Qe,Xe,be]:[ze,Qe,Xe];if(function(Le,_e){for(let G=0;Gfunction(Z,q,$=5){if(Z.length&&q.length){var z=Z.map(P=>P.slice(0,3)),X=$*$,Q=Z[0].length;for(let P=0;PQ?F.slice(0,3):F.slice();var C=L(z,F.slice(0,3),w),se=C[0],C=C[1];0>>0),Q!=0&&(X=Math.max(X,256));const se=$;$=new Uint8Array(X),0>=8,ee-=8;if((fe>le||de)&&(de?(oe=ie,le=(1<>=8,ee-=8;0>3}function i(Z,q,$,z){return Z>>4|240&q|(240&$)<<4|(240&z)<<8}function u(Z,q,$){return Z>>4<<8|240&q|$>>4}function p(Z,q,$){return Z>8&255)}function U(Z,q){for(var $=0;$>1,u=-7,p=n?b-1:0,m=n?-1:1,b=l[s+p];for(p+=m,f=b&(1<<-u)-1,b>>=-u,u+=o;0>=-u,u+=a;0>1,p=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=a?0:x-1,b=a?1:-1,x=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(o=isNaN(s)?1:0,r=i):(r=Math.floor(Math.log(s)/Math.LN2),s*(a=Math.pow(2,-r))<1&&(r--,a*=2),2<=(s+=1<=r+u?p/a:p*Math.pow(2,1-u))*a&&(r++,a/=2),i<=r+u?(o=0,r=i):1<=r+u?(o=(s*a-1)*Math.pow(2,c),r+=u):(o=s*Math.pow(2,u-1)*Math.pow(2,c),r=0));8<=c;l[n+m]=255&o,m+=b,o/=256,c-=8);for(r=r<Math.abs(V[0])&&(J=1),J=Math.abs(V[2])>Math.abs(V[J])?2:J}function N(V,J){V.f+=J.f,V.b.f+=J.b.f}function U(V,J,G){return V=V.a,J=J.a,G=G.a,J.b.a===V?G.b.a===V?n(J.a,G.a)?c(G.b.a,J.a,G.a)<=0:0<=c(J.b.a,G.a,J.a):c(G.b.a,V,G.a)<=0:G.b.a===V?0<=c(J.b.a,V,J.a):(J=a(J.b.a,V,J.a),(V=a(G.b.a,V,G.a))<=J)}function B(V){V.a.i=null;var J=V.e;J.a.c=J.c,J.c.a=J.a,V.e=null}function W(V,J){p(V.a),V.c=!1,(V.a=J).i=V}function Z(V){for(var J=V.a.a;(V=_e(V)).a.a===J;);return V.c&&(W(V,J=b(Le(V).a.b,V.a.e)),V=_e(V)),V}function q(V,J,G){var te=new be;return te.a=G,te.e=de(V.f,J.e,te),G.i=te}function $(V,J){switch(V.s){case 100130:return(1&J)!=0;case 100131:return J!==0;case 100132:return 0>1]],Ue[ke[Ge]])?Qe:Xe)(G,Ge),Ue[we]=null,Ne[we]=G.b,G.b=we}else for(G.c[-(we+1)]=null;0Math.max(ke.a,Ne.a))){if(n(we,ke)){if(0G.f&&(G.f*=2,G.c=Be(G.c,G.f+1)),G.b===0?ye=te:(ye=G.b,G.b=G.c[G.b]),G.e[ye]=J,G.c[ye]=te,G.d[te]=ye,G.h&&Xe(G,te),ye):(G=V.a++,V.c[G]=J,-(G+1))}function Re(V){if(V.a===0)return ze(V.b);var J=V.c[V.d[V.a-1]];if(V.b.a!==0&&n($e(V.b),J))return ze(V.b);for(;--V.a,0V.a||n(te[ke],te[Ne])){ye[G[we]=ke]=we;break}ye[G[we]=Ne]=we,we=Ue}}function Xe(V,J){for(var G=V.d,te=V.e,ye=V.c,we=J,ke=G[we];;){var Ue=we>>1,Ne=G[Ue];if(Ue==0||n(te[Ne],te[ke])){ye[G[we]=ke]=we;break}ye[G[we]=Ne]=we,we=Ue}}function be(){this.e=this.a=null,this.f=0,this.c=this.b=this.h=this.d=!1}function Le(V){return V.e.c.b}function _e(V){return V.e.a.b}(l=le.prototype).x=function(){me(this,0)},l.B=function(V,J){switch(V){case 100142:return;case 100140:switch(J){case 100130:case 100131:case 100132:case 100133:case 100134:return void(this.s=J)}break;case 100141:return void(this.m=!!J);default:return void K(this,100900)}K(this,100901)},l.y=function(V){switch(V){case 100142:return 0;case 100140:return this.s;case 100141:return this.m;default:K(this,100900)}return!1},l.A=function(V,J,G){this.j[0]=V,this.j[1]=J,this.j[2]=G},l.z=function(V,J){var G=J||null;switch(V){case 100100:case 100106:this.h=G;break;case 100104:case 100110:this.l=G;break;case 100101:case 100107:this.k=G;break;case 100102:case 100108:this.i=G;break;case 100103:case 100109:this.p=G;break;case 100105:case 100111:this.o=G;break;case 100112:this.r=G;break;default:K(this,100900)}},l.C=function(V,J){var G=!1,te=[0,0,0];me(this,2);for(var ye=0;ye<3;++ye){var we=V[ye];we<-1e150&&(we=-1e150,G=!0),1e150te[Ge]&&(te[Ge]=We,ye[Ge]=G)}if(te[1]-Ue[1]>te[G=0]-Ue[0]&&(G=1),Ue[G=te[2]-Ue[2]>te[G]-Ue[G]?2:G]>=te[G])ke[0]=0,ke[1]=0,ke[2]=1;else{for(Ue=Ne[G],ye=ye[G],Ne=[te=0,0,0],Ue=[Ue.g[0]-ye.g[0],Ue.g[1]-ye.g[1],Ue.g[2]-ye.g[2]],Ge=[0,0,0],G=we.e;G!==we;G=G.e)Ge[0]=G.g[0]-ye.g[0],Ge[1]=G.g[1]-ye.g[1],Ge[2]=G.g[2]-ye.g[2],Ne[0]=Ue[1]*Ge[2]-Ue[2]*Ge[1],Ne[1]=Ue[2]*Ge[0]-Ue[0]*Ge[2],Ne[2]=Ue[0]*Ge[1]-Ue[1]*Ge[0],te<(We=Ne[0]*Ne[0]+Ne[1]*Ne[1]+Ne[2]*Ne[2])&&(te=We,ke[0]=Ne[0],ke[1]=Ne[1],ke[2]=Ne[2]);te<=0&&(ke[0]=ke[1]=ke[2]=0,ke[A(Ue)]=1)}we=!0}for(Ne=A(ke),G=this.b.c,te=(Ne+1)%3,ye=(Ne+2)%3,Ne=0>=1;)++u;if(m=1<>8&255,n[r++]=255&c,n[r++]=c>>8&255,n[r++]=(t!==null?128:0)|u,n[r++]=p,n[r++]=0,t!==null)for(var b=0,x=t.length;b>16&255,n[r++]=w>>8&255,n[r++]=255&w}if(o!==null){if(o<0||65535>8&255,n[r++]=0}var T=!1;this.addFrame=function(M,O,L,R,A,N){if(T===!0&&(--r,T=!1),N=N===void 0?{}:N,M<0||O<0||65535>=1;)++W;var Z=1<>8&255,n[r++]=X,n[r++]=0),n[r++]=44,n[r++]=255&M,n[r++]=M>>8&255,n[r++]=255&O,n[r++]=O>>8&255,n[r++]=255&L,n[r++]=L>>8&255,n[r++]=255&R,n[r++]=R>>8&255,n[r++]=U===!0?128|W-1:0,U===!0)for(var Q=0,se=B.length;Q>16&255,n[r++]=C>>8&255,n[r++]=255&C}return r=function(P,F,H,ee){P[F++]=H;var ae=F++,ie=1<>=8,K-=8,F===ae+256&&(P[ae]=255,ae=F++)}function ve(ze){fe|=ze<>=8,K-=8,F===ae+256&&(P[ae]=255,ae=F++);le===4096?(ve(ie),le=1+oe,me=H+1,Oe={}):(1<>=u,m-=u,O==o)i=1+t,p=(1<<(u=r+1))-1,M=null;else{if(O==t)break;for(var L=O>8,++R;var N=A;if(f>=8;M!==null&&i<4096&&(T[i++]=M<<8|N,p+1<=i&&u<12&&(++u,p=p<<1|1)),M=O}}x!==f&&console.log("Warning, gif stream shorter than expected.")}try{v.GifWriter=l,v.GifReader=function(n){var a=0;if(n[a++]!==71||n[a++]!==73||n[a++]!==70||n[a++]!==56||(n[a++]+1&253)!=56||n[a++]!==97)throw new Error("Invalid GIF 87a/89a header.");var c=n[a++]|n[a++]<<8,f=n[a++]|n[a++]<<8,r=n[a++],o=1<<1+(7&r),t=(n[a++],n[a++],null),i=null,u=(r>>7&&(t=a,a+=3*(i=o)),!0),p=[],m=0,b=null,x=0,w=null;for(this.width=c,this.height=f;u&&a>2&7,a++;break;case 254:for(;;){if(!(0<=(M=n[a++])))throw Error("Invalid block size");if(M===0)break;a+=M}break;default:throw new Error("Unknown graphic control label: 0x"+n[a-1].toString(16))}break;case 44:var M,O=n[a++]|n[a++]<<8,L=n[a++]|n[a++]<<8,R=n[a++]|n[a++]<<8,A=n[a++]|n[a++]<<8,q=n[a++],N=q>>6&1,U=1<<1+(7&q),B=t,W=i,Z=!1,q=(q>>7&&(Z=!0,B=a,a+=3*(W=U)),a);for(a++;;){if(!(0<=(M=n[a++])))throw Error("Invalid block size");if(M===0)break;a+=M}p.push({x:O,y:L,width:R,height:A,has_local_palette:Z,palette_offset:B,palette_size:W,data_offset:q,data_length:a-q,transparent_index:b,interlaced:!!N,delay:m,disposal:x});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+n[a-1].toString(16))}this.numFrames=function(){return p.length},this.loopCount=function(){return w},this.frameInfo=function($){if($<0||$>=p.length)throw new Error("Frame index out of range.");return p[$]},this.decodeAndBlitFrameBGRA=function($,z){for(var $=this.frameInfo($),X=$.width*$.height,Q=new Uint8Array(X),se=(s(n,$.data_offset,Q,X),$.palette_offset),C=$.transparent_index,P=(C===null&&(C=256),$.width),F=c-P,H=P,ee=4*($.y*c+$.x),ae=4*(($.y+$.height)*c+$.x),ie=ee,de=4*F,oe=($.interlaced===!0&&(de+=4*c*7),8),le=0,me=Q.length;le>=1)),ge===C?ie+=4:(K=n[se+3*ge],fe=n[se+3*ge+1],ge=n[se+3*ge+2],z[ie++]=ge,z[ie++]=fe,z[ie++]=K,z[ie++]=255),--H}},this.decodeAndBlitFrameRGBA=function($,z){for(var $=this.frameInfo($),X=$.width*$.height,Q=new Uint8Array(X),se=(s(n,$.data_offset,Q,X),$.palette_offset),C=$.transparent_index,P=(C===null&&(C=256),$.width),F=c-P,H=P,ee=4*($.y*c+$.x),ae=4*(($.y+$.height)*c+$.x),ie=ee,de=4*F,oe=($.interlaced===!0&&(de+=4*c*7),8),le=0,me=Q.length;le>=1)),ge===C?ie+=4:(K=n[se+3*ge],fe=n[se+3*ge+1],ge=n[se+3*ge+2],z[ie++]=K,z[ie++]=fe,z[ie++]=ge,z[ie++]=255),--H}}}}catch{}},{}],241:[function(e,S,v){(function(l){var s,n;s=this,n=function(a){function c(k){if(this==null)throw TypeError();var g,_=String(this),j=_.length,k=k?Number(k):0;if(!((k=k!=k?0:k)<0||j<=k))return 55296<=(g=_.charCodeAt(k))&&g<=56319&&k+1>>16-g;return d.tag>>>=g,d.bitcount-=g,j+_}function U(d,g){for(;d.bitcount<24;)d.tag|=d.source[d.sourceIndex++]<>>=1,_+=g.table[++k],0<=(j-=g.table[k]););return d.tag=I,d.bitcount-=k,g.trans[_+j]}function B(d,g,_){for(;;){var j=U(d,g);if(j===256)return r;if(j<256)d.dest[d.destLen++]=j;else for(var k,I=N(d,m[j-=257],b[j]),j=U(d,_),D=k=d.destLen-N(d,x[j],w[j]);D>>=1,j=k,N(I,2,0)){case 0:_=function(Ee){for(var Ke,it;8this.x2&&(this.x2=d)),typeof g=="number"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=g,this.y2=g),gthis.y2&&(this.y2=g))},X.prototype.addX=function(d){this.addPoint(d,null)},X.prototype.addY=function(d){this.addPoint(null,d)},X.prototype.addBezier=function(d,g,_,j,k,I,D,Y){var ne=[d,g],re=[_,j],he=[k,I],je=[D,Y];this.addPoint(d,g),this.addPoint(D,Y);for(var xe=0;xe<=1;xe++){var ue,Ae=6*ne[xe]-12*re[xe]+6*he[xe],Ce=-3*ne[xe]+9*re[xe]-9*he[xe]+3*je[xe],Pe=3*re[xe]-3*ne[xe];Ce==0?Ae==0||0<(ue=-Pe/Ae)&&ue<1&&(xe===0&&this.addX(z(ne[xe],re[xe],he[xe],je[xe],ue)),xe===1&&this.addY(z(ne[xe],re[xe],he[xe],je[xe],ue))):(ue=Math.pow(Ae,2)-4*Pe*Ce)<0||(0<(Pe=(-Ae+Math.sqrt(ue))/(2*Ce))&&Pe<1&&(xe===0&&this.addX(z(ne[xe],re[xe],he[xe],je[xe],Pe)),xe===1&&this.addY(z(ne[xe],re[xe],he[xe],je[xe],Pe))),0<(Pe=(-Ae-Math.sqrt(ue))/(2*Ce))&&Pe<1&&(xe===0&&this.addX(z(ne[xe],re[xe],he[xe],je[xe],Pe)),xe===1&&this.addY(z(ne[xe],re[xe],he[xe],je[xe],Pe))))}},X.prototype.addQuad=function(d,g,_,j,k,I){_=d+2/3*(_-d),j=g+2/3*(j-g),this.addBezier(d,g,_,j,_+1/3*(k-d),j+1/3*(I-g),k,I)},Q.prototype.moveTo=function(d,g){this.commands.push({type:"M",x:d,y:g})},Q.prototype.lineTo=function(d,g){this.commands.push({type:"L",x:d,y:g})},Q.prototype.curveTo=Q.prototype.bezierCurveTo=function(d,g,_,j,k,I){this.commands.push({type:"C",x1:d,y1:g,x2:_,y2:j,x:k,y:I})},Q.prototype.quadTo=Q.prototype.quadraticCurveTo=function(d,g,_,j){this.commands.push({type:"Q",x1:d,y1:g,x:_,y:j})},Q.prototype.close=Q.prototype.closePath=function(){this.commands.push({type:"Z"})},Q.prototype.extend=function(d){var g;if(d.commands)d=d.commands;else if(d instanceof X)return g=d,this.moveTo(g.x1,g.y1),this.lineTo(g.x2,g.y1),this.lineTo(g.x2,g.y2),this.lineTo(g.x1,g.y2),void this.close();Array.prototype.push.apply(this.commands,d)},Q.prototype.getBoundingBox=function(){for(var d=new X,g=0,_=0,j=0,k=0,I=0;I>8&255,255&d]},ee.USHORT=ae(2),H.SHORT=function(d){return[(d=32768<=d?-(65536-d):d)>>8&255,255&d]},ee.SHORT=ae(2),H.UINT24=function(d){return[d>>16&255,d>>8&255,255&d]},ee.UINT24=ae(3),H.ULONG=function(d){return[d>>24&255,d>>16&255,d>>8&255,255&d]},ee.ULONG=ae(4),H.LONG=function(d){return[(d=2147483648<=d?-(4294967296-d):d)>>24&255,d>>16&255,d>>8&255,255&d]},ee.LONG=ae(4),H.FIXED=H.ULONG,ee.FIXED=ee.ULONG,H.FWORD=H.SHORT,ee.FWORD=ee.SHORT,H.UFWORD=H.USHORT,ee.UFWORD=ee.USHORT,H.LONGDATETIME=function(d){return[0,0,0,0,d>>24&255,d>>16&255,d>>8&255,255&d]},ee.LONGDATETIME=ae(8),H.TAG=function(d){return P.argument(d.length===4,"Tag should be exactly 4 ASCII characters."),[d.charCodeAt(0),d.charCodeAt(1),d.charCodeAt(2),d.charCodeAt(3)]},ee.TAG=ae(4),H.Card8=H.BYTE,ee.Card8=ee.BYTE,H.Card16=H.USHORT,ee.Card16=ee.USHORT,H.OffSize=H.BYTE,ee.OffSize=ee.BYTE,H.SID=H.USHORT,ee.SID=ee.USHORT,H.NUMBER=function(d){return-107<=d&&d<=107?[d+139]:108<=d&&d<=1131?[247+((d-=108)>>8),255&d]:-1131<=d&&d<=-108?[251+((d=-d-108)>>8),255&d]:-32768<=d&&d<=32767?H.NUMBER16(d):H.NUMBER32(d)},ee.NUMBER=function(d){return H.NUMBER(d).length},H.NUMBER16=function(d){return[28,d>>8&255,255&d]},ee.NUMBER16=ae(3),H.NUMBER32=function(d){return[29,d>>24&255,d>>16&255,d>>8&255,255&d]},ee.NUMBER32=ae(5),H.REAL=function(d){for(var g=d.toString(),_=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(g),j=(_&&(_=parseFloat("1e"+((_[2]?+_[2]:0)+_[1].length)),g=(Math.round(d*_)/_).toString()),""),k=0,I=g.length;k>8&255,g[g.length]=255&j}return g},ee.UTF16=function(d){return 2*d.length};var ie,de={"x-mac-croatian":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\u0160\u2122\xB4\xA8\u2260\u017D\xD8\u221E\xB1\u2264\u2265\u2206\xB5\u2202\u2211\u220F\u0161\u222B\xAA\xBA\u03A9\u017E\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u0106\xAB\u010C\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u0110\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\uF8FF\xA9\u2044\u20AC\u2039\u203A\xC6\xBB\u2013\xB7\u201A\u201E\u2030\xC2\u0107\xC1\u010D\xC8\xCD\xCE\xCF\xCC\xD3\xD4\u0111\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u03C0\xCB\u02DA\xB8\xCA\xE6\u02C7","x-mac-cyrillic":"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u2020\xB0\u0490\xA3\xA7\u2022\xB6\u0406\xAE\xA9\u2122\u0402\u0452\u2260\u0403\u0453\u221E\xB1\u2264\u2265\u0456\xB5\u0491\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040A\u045A\u0458\u0405\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\u040B\u045B\u040C\u045C\u0455\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u201E\u040E\u045E\u040F\u045F\u2116\u0401\u0451\u044F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E","x-mac-gaelic":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u1E02\xB1\u2264\u2265\u1E03\u010A\u010B\u1E0A\u1E0B\u1E1E\u1E1F\u0120\u0121\u1E40\xE6\xF8\u1E41\u1E56\u1E57\u027C\u0192\u017F\u1E60\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\u1E61\u1E9B\xFF\u0178\u1E6A\u20AC\u2039\u203A\u0176\u0177\u1E6B\xB7\u1EF2\u1EF3\u204A\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\u2663\xD2\xDA\xDB\xD9\u0131\xDD\xFD\u0174\u0175\u1E84\u1E85\u1E80\u1E81\u1E82\u1E83","x-mac-greek":"\xC4\xB9\xB2\xC9\xB3\xD6\xDC\u0385\xE0\xE2\xE4\u0384\xA8\xE7\xE9\xE8\xEA\xEB\xA3\u2122\xEE\xEF\u2022\xBD\u2030\xF4\xF6\xA6\u20AC\xF9\xFB\xFC\u2020\u0393\u0394\u0398\u039B\u039E\u03A0\xDF\xAE\xA9\u03A3\u03AA\xA7\u2260\xB0\xB7\u0391\xB1\u2264\u2265\xA5\u0392\u0395\u0396\u0397\u0399\u039A\u039C\u03A6\u03AB\u03A8\u03A9\u03AC\u039D\xAC\u039F\u03A1\u2248\u03A4\xAB\xBB\u2026\xA0\u03A5\u03A7\u0386\u0388\u0153\u2013\u2015\u201C\u201D\u2018\u2019\xF7\u0389\u038A\u038C\u038E\u03AD\u03AE\u03AF\u03CC\u038F\u03CD\u03B1\u03B2\u03C8\u03B4\u03B5\u03C6\u03B3\u03B7\u03B9\u03BE\u03BA\u03BB\u03BC\u03BD\u03BF\u03C0\u03CE\u03C1\u03C3\u03C4\u03B8\u03C9\u03C2\u03C7\u03C5\u03B6\u03CA\u03CB\u0390\u03B0\xAD","x-mac-icelandic":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\xDD\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\u20AC\xD0\xF0\xDE\xFE\xFD\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7","x-mac-inuit":"\u1403\u1404\u1405\u1406\u140A\u140B\u1431\u1432\u1433\u1434\u1438\u1439\u1449\u144E\u144F\u1450\u1451\u1455\u1456\u1466\u146D\u146E\u146F\u1470\u1472\u1473\u1483\u148B\u148C\u148D\u148E\u1490\u1491\xB0\u14A1\u14A5\u14A6\u2022\xB6\u14A7\xAE\xA9\u2122\u14A8\u14AA\u14AB\u14BB\u14C2\u14C3\u14C4\u14C5\u14C7\u14C8\u14D0\u14EF\u14F0\u14F1\u14F2\u14F4\u14F5\u1505\u14D5\u14D6\u14D7\u14D8\u14DA\u14DB\u14EA\u1528\u1529\u152A\u152B\u152D\u2026\xA0\u152E\u153E\u1555\u1556\u1557\u2013\u2014\u201C\u201D\u2018\u2019\u1558\u1559\u155A\u155D\u1546\u1547\u1548\u1549\u154B\u154C\u1550\u157F\u1580\u1581\u1582\u1583\u1584\u1585\u158F\u1590\u1591\u1592\u1593\u1594\u1595\u1671\u1672\u1673\u1674\u1675\u1676\u1596\u15A0\u15A1\u15A2\u15A3\u15A4\u15A5\u15A6\u157C\u0141\u0142","x-mac-ce":"\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7",macintosh:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\u20AC\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7","x-mac-romanian":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\u0102\u0218\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\u0103\u0219\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\u20AC\u2039\u203A\u021A\u021B\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7","x-mac-turkish":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u011E\u011F\u0130\u0131\u015E\u015F\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\uF8A0\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},oe=(F.MACSTRING=function(d,g,_,j){var k=de[j];if(k!==void 0){for(var I="",D=0;D<_;D++){var Y=d.getUint8(g+D);I+=Y<=127?String.fromCharCode(Y):k[127&Y]}return I}},typeof WeakMap=="function"&&new WeakMap);function le(d){return-128<=d&&d<=127}H.MACSTRING=function(d,g){var _=function(D){if(!ie)for(var Y in ie={},de)ie[Y]=new String(Y);var ne=ie[D];if(ne!==void 0){if(oe){var re=oe.get(ne);if(re!==void 0)return re}var he=de[D];if(he!==void 0){for(var je={},xe=0;xe>8&255,xe+256&255)}return re})(d,j,g);return g},H.INDEX=function(d){for(var g=1,_=[g],j=[],k=0;k>8,g[he+1]=255&je,g=g.concat(j[re])}return g},ee.TABLE=function(d){for(var g=0,_=d.fields.length,j=0;j<_;j+=1){var k=d.fields[j],I=ee[k.type],D=(P.argument(I!==void 0,"No sizeOf function for field type "+k.type+" ("+k.name+")"),d[k.name]);g+=I(D=D===void 0?k.value:D),k.type==="TABLE"&&(g+=2)}return g},H.RECORD=H.TABLE,ee.RECORD=ee.TABLE,H.LITERAL=function(d){return d},ee.LITERAL=function(d){return d.length},K.prototype.encode=function(){return H.TABLE(this)},K.prototype.sizeOf=function(){return ee.TABLE(this)};var Me={Table:K,Record:K,Coverage:(pe.prototype=Object.create(K.prototype)).constructor=pe,ScriptList:(Oe.prototype=Object.create(K.prototype)).constructor=Oe,FeatureList:(Te.prototype=Object.create(K.prototype)).constructor=Te,LookupList:(Re.prototype=Object.create(K.prototype)).constructor=Re,ushortList:fe,tableList:ge,recordList:ve};function Be(d,g){return d.getUint8(g)}function $e(d,g){return d.getUint16(g,!1)}function ze(d,g){return d.getUint32(g,!1)}function Qe(d,g){return d.getInt16(g,!1)+d.getUint16(g+2,!1)/65535}var Xe={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function be(d,g){this.data=d,this.offset=g,this.relativeOffset=0}be.prototype.parseByte=function(){var d=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,d},be.prototype.parseChar=function(){var d=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,d},be.prototype.parseCard8=be.prototype.parseByte,be.prototype.parseCard16=be.prototype.parseUShort=function(){var d=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,d},be.prototype.parseSID=be.prototype.parseUShort,be.prototype.parseOffset16=be.prototype.parseUShort,be.prototype.parseShort=function(){var d=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,d},be.prototype.parseF2Dot14=function(){var d=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,d},be.prototype.parseOffset32=be.prototype.parseULong=function(){var d=ze(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,d},be.prototype.parseFixed=function(){var d=Qe(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,d},be.prototype.parseString=function(d){var g=this.data,_=this.offset+this.relativeOffset,j="";this.relativeOffset+=d;for(var k=0;k>1,Y.skip("uShort",3),Pe.glyphIndexMap={};for(var it,et=new _e.Parser(Se,Ee+Ke+14),rt=new _e.Parser(Se,Ee+Ke+16+2*it),ct=new _e.Parser(Se,Ee+Ke+16+4*it),jt=new _e.Parser(Se,Ee+Ke+16+6*it),It=Ee+Ke+16+8*it,Bt=0;Bt>4,D=15&D;if(I==15||(j+=k[I],D==15))break;j+=k[D]}return parseFloat(j)}if(32<=g&&g<=246)return g-139;if(247<=g&&g<=250)return 256*(g-247)+d.parseByte()+108;if(251<=g&&g<=254)return 256*-(g-251)-d.parseByte()-108;throw new Error("Invalid b0 "+g)}function er(d,g,_){var j=new _e.Parser(d,g=g!==void 0?g:0),k=[],I=[];for(_=_!==void 0?_:d.length;j.relativeOffset<_;){var D=j.parseByte();D<=21?(D===12&&(D=1200+j.parseByte()),k.push([D,I]),I=[]):I.push(wt(j,D))}for(var Y=k,ne={},re=0;re>1,ue.length=0,Ce=!0}return function rt(ct){for(var jt,It,Bt,tr,rr,vr,_t,Tt,vt,nr,Ot,Zt,Ct=0;CtMath.abs(Zt-Ee)?Se=Ot+ue.shift():Ee=Zt+ue.shift(),xe.curveTo(j,k,I,D,_t,Tt),xe.curveTo(vt,nr,Ot,Zt,Se,Ee);break;default:console.log("Glyph "+g.index+": unknown operator 1200"+qt),ue.length=0}break;case 14:0>3;break;case 21:2>16),Ct+=2;break;case 29:rr=ue.pop()+d.gsubrsBias,(vr=d.gsubrs[rr])&&rt(vr);break;case 30:for(;0=_.begin&&d<_.end)return g}return-1}},Rs={parse:function(d,g){var _={},j=new _e.Parser(d,g);switch(_.version=j.parseVersion(),_.italicAngle=j.parseFixed(),_.underlinePosition=j.parseShort(),_.underlineThickness=j.parseShort(),_.isFixedPitch=j.parseULong(),_.minMemType42=j.parseULong(),_.maxMemType42=j.parseULong(),_.minMemType1=j.parseULong(),_.maxMemType1=j.parseULong(),_.version){case 1:_.names=ye.slice();break;case 2:_.numberOfGlyphs=j.parseUShort(),_.glyphNameIndex=new Array(_.numberOfGlyphs);for(var k=0;k<_.numberOfGlyphs;k++)_.glyphNameIndex[k]=j.parseUShort();_.names=[];for(var I,D=0;D<_.numberOfGlyphs;D++)_.glyphNameIndex[D]>=ye.length&&(I=j.parseChar(),_.names.push(j.parseString(I)));break;case 2.5:_.numberOfGlyphs=j.parseUShort(),_.offset=new Array(_.numberOfGlyphs);for(var Y=0;Y<_.numberOfGlyphs;Y++)_.offset[Y]=j.parseChar()}return _},make:function(){return new Me.Table("post",[{name:"version",type:"FIXED",value:196608},{name:"italicAngle",type:"FIXED",value:0},{name:"underlinePosition",type:"FWORD",value:0},{name:"underlineThickness",type:"FWORD",value:0},{name:"isFixedPitch",type:"ULONG",value:0},{name:"minMemType42",type:"ULONG",value:0},{name:"maxMemType42",type:"ULONG",value:0},{name:"minMemType1",type:"ULONG",value:0},{name:"maxMemType1",type:"ULONG",value:0}])}},yr=new Array(9),Zr=(yr[1]=function(){var d=this.offset+this.relativeOffset,g=this.parseUShort();return g===1?{substFormat:1,coverage:this.parsePointer(be.coverage),deltaGlyphId:this.parseUShort()}:g===2?{substFormat:2,coverage:this.parsePointer(be.coverage),substitute:this.parseOffset16List()}:void P.assert(!1,"0x"+d.toString(16)+": lookup type 1 format must be 1 or 2.")},yr[2]=function(){var d=this.parseUShort();return P.argument(d===1,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:d,coverage:this.parsePointer(be.coverage),sequences:this.parseListOfLists()}},yr[3]=function(){var d=this.parseUShort();return P.argument(d===1,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:d,coverage:this.parsePointer(be.coverage),alternateSets:this.parseListOfLists()}},yr[4]=function(){var d=this.parseUShort();return P.argument(d===1,"GSUB ligature table identifier-format must be 1"),{substFormat:d,coverage:this.parsePointer(be.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}},{sequenceIndex:be.uShort,lookupListIndex:be.uShort});yr[5]=function(){var d,g,_=this.offset+this.relativeOffset,j=this.parseUShort();return j===1?{substFormat:j,coverage:this.parsePointer(be.coverage),ruleSets:this.parseListOfLists(function(){var k=this.parseUShort(),I=this.parseUShort();return{input:this.parseUShortList(k-1),lookupRecords:this.parseRecordList(I,Zr)}})}:j===2?{substFormat:j,coverage:this.parsePointer(be.coverage),classDef:this.parsePointer(be.classDef),classSets:this.parseListOfLists(function(){var k=this.parseUShort(),I=this.parseUShort();return{classes:this.parseUShortList(k-1),lookupRecords:this.parseRecordList(I,Zr)}})}:j===3?(d=this.parseUShort(),g=this.parseUShort(),{substFormat:j,coverages:this.parseList(d,be.pointer(be.coverage)),lookupRecords:this.parseRecordList(g,Zr)}):void P.assert(!1,"0x"+_.toString(16)+": lookup type 5 format must be 1, 2 or 3.")},yr[6]=function(){var d=this.offset+this.relativeOffset,g=this.parseUShort();return g===1?{substFormat:1,coverage:this.parsePointer(be.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(Zr)}})}:g===2?{substFormat:2,coverage:this.parsePointer(be.coverage),backtrackClassDef:this.parsePointer(be.classDef),inputClassDef:this.parsePointer(be.classDef),lookaheadClassDef:this.parsePointer(be.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(Zr)}})}:g===3?{substFormat:3,backtrackCoverage:this.parseList(be.pointer(be.coverage)),inputCoverage:this.parseList(be.pointer(be.coverage)),lookaheadCoverage:this.parseList(be.pointer(be.coverage)),lookupRecords:this.parseRecordList(Zr)}:void P.assert(!1,"0x"+d.toString(16)+": lookup type 6 format must be 1, 2 or 3.")},yr[7]=function(){var d=this.parseUShort(),d=(P.argument(d===1,"GSUB Extension Substitution subtable identifier-format must be 1"),this.parseUShort()),g=new be(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:d,extension:yr[d].call(g)}},yr[8]=function(){var d=this.parseUShort();return P.argument(d===1,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:d,coverage:this.parsePointer(be.coverage),backtrackCoverage:this.parseList(be.pointer(be.coverage)),lookaheadCoverage:this.parseList(be.pointer(be.coverage)),substitutes:this.parseUShortList()}};var Rn=new Array(9);Rn[1]=function(d){return d.substFormat===1?new Me.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new Me.Coverage(d.coverage)},{name:"deltaGlyphID",type:"USHORT",value:d.deltaGlyphId}]):new Me.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:2},{name:"coverage",type:"TABLE",value:new Me.Coverage(d.coverage)}].concat(Me.ushortList("substitute",d.substitute)))},Rn[3]=function(d){return P.assert(d.substFormat===1,"Lookup type 3 substFormat must be 1."),new Me.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new Me.Coverage(d.coverage)}].concat(Me.tableList("altSet",d.alternateSets,function(g){return new Me.Table("alternateSetTable",Me.ushortList("alternate",g))})))},Rn[4]=function(d){return P.assert(d.substFormat===1,"Lookup type 4 substFormat must be 1."),new Me.Table("substitutionTable",[{name:"substFormat",type:"USHORT",value:1},{name:"coverage",type:"TABLE",value:new Me.Coverage(d.coverage)}].concat(Me.tableList("ligSet",d.ligatureSets,function(g){return new Me.Table("ligatureSetTable",Me.tableList("ligature",g,function(_){return new Me.Table("ligatureTable",[{name:"ligGlyph",type:"USHORT",value:_.ligGlyph}].concat(Me.ushortList("component",_.components,_.components.length+1)))}))})))};var As={parse:function(d,g){return g=(d=new be(d,g=g||0)).parseVersion(1),P.argument(g===1||g===1.1,"Unsupported GSUB table version."),g===1?{version:g,scripts:d.parseScriptList(),features:d.parseFeatureList(),lookups:d.parseLookupList(yr)}:{version:g,scripts:d.parseScriptList(),features:d.parseFeatureList(),lookups:d.parseLookupList(yr),variations:d.parseFeatureVariationsList()}},make:function(d){return new Me.Table("GSUB",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new Me.ScriptList(d.scripts)},{name:"features",type:"TABLE",value:new Me.FeatureList(d.features)},{name:"lookups",type:"TABLE",value:new Me.LookupList(d.lookups,Rn)}])}},Is={parse:function(d,g){for(var _=new _e.Parser(d,g),j=_.parseULong(),k=(P.argument(j===1,"Unsupported META table version."),_.parseULong(),_.parseULong(),_.parseULong()),I={},D=0;Dje.value.tag?1:-1}),g.fields=g.fields.concat(j),g.fields=g.fields.concat(k),g}function Ns(d,g,_){for(var j=0;j 123 are reserved for internal usage");ue|=1<>>1,I=d[k].tag;if(I===g)return k;I>>1,I=d[k];if(I===g)return k;I>>1,D=(k=d[I]).start;if(D===g)return k;D(k=d[_-1]).end?0:k}function An(d,g){this.font=d,this.tableName=g}function In(d){An.call(this,d,"gpos")}function _r(d){An.call(this,d,"gsub")}function Vs(d,g,_){for(var j=d.subtables,k=0;kg.points.length-1||j.matchedPoints[1]>k.points.length-1)throw Error("Matched points out of range in "+g.name);var D=g.points[j.matchedPoints[0]],Y=k.points[j.matchedPoints[1]],j={xScale:j.xScale,scale01:j.scale01,scale10:j.scale10,yScale:j.yScale,dx:0,dy:0},Y=Oo([Y],j)[0];j.dx=D.x-Y.x,j.dy=D.y-Y.y,I=Oo(k.points,j)}g.points=g.points.concat(I)}}return Ws(g.points)}(In.prototype=An.prototype={searchTag:ko,binSearch:Bs,getTable:function(d){var g=this.font.tables[this.tableName];return g=!g&&d?this.font.tables[this.tableName]=this.createDefaultTable():g},getScriptNames:function(){var d=this.getTable();return d?d.scripts.map(function(g){return g.tag}):[]},getDefaultScriptName:function(){var d=this.getTable();if(d){for(var g=!1,_=0;_=D[g-1].tag,"Features must be added in alphabetical order."),D.push(k={tag:_,feature:{params:0,lookupListIndexes:[]}}),I.push(g),k.feature}},getLookupTables:function(I,g,_,j,k){var I=this.getFeatureTable(I,g,_,k),D=[];if(I){for(var Y,ne=I.lookupListIndexes,re=this.font.tables[this.tableName].lookups,he=0;he",I),g.stack.push(Math.round(64*I))}function Lo(d,g){var _=g.stack,j=_.pop(),k=g.fv,I=g.pv,D=g.ppem,Y=g.deltaBase+16*(d-1),ne=g.deltaShift,re=g.z0;a.DEBUG&&console.log(g.step,"DELTAP["+d+"]",j,_);for(var he=0;he>4)===D&&(0<=(xe=(15&xe)-8)&&xe++,a.DEBUG&&console.log(g.step,"DELTAPFIX",je,"by",xe*ne),je=re[je],k.setRelative(je,je,xe*ne,I))}}function Un(d,g){var _=g.stack,j=_.pop();a.DEBUG&&console.log(g.step,"ROUND[]"),_.push(64*g.round(j/64))}function Ro(d,g){var _=g.stack,j=_.pop(),k=g.ppem,I=g.deltaBase+16*(d-1),D=g.deltaShift;a.DEBUG&&console.log(g.step,"DELTAC["+d+"]",j,_);for(var Y=0;Y>4)===k&&(0<=(re=(15&re)-8)&&re++,re=re*D,a.DEBUG&&console.log(g.step,"DELTACFIX",ne,"by",re),g.cvt[ne]+=re)}}function da(d,g){var _,k=g.stack,j=k.pop(),k=k.pop(),I=g.z2[j],D=g.z1[k];a.DEBUG&&console.log(g.step,"SDPVTL["+d+"]",j,k),j=d?(_=I.y-D.y,D.x-I.x):(_=D.x-I.x,D.y-I.y),g.dpv=dn(_,j)}function Ir(d,g){var _=g.stack,j=g.prog,k=g.ip;a.DEBUG&&console.log(g.step,"PUSHB["+d+"]");for(var I=0;I":"_")+(j?"R":"_")+(k===0?"Gr":k===1?"Bl":k===2?"Wh":"")+"]",d?ne+"("+I.cvt[ne]+","+Y+")":"",re,"(d =",D,"->",Pe*Ce,")"),I.rp1=I.rp0,I.rp2=re,g&&(I.rp0=re)}Xs.prototype.exec=function(d,g){if(typeof g!="number")throw new Error("Point size is not a number!");if(!(2",j),Y.interpolate(je,I,D,ne),Y.touch(je)}d.loop=1},ia.bind(void 0,0),ia.bind(void 0,1),function(d){for(var g=d.stack,_=d.rp0,j=d.z0[_],k=d.loop,I=d.fv,D=d.pv,Y=d.z1;k--;){var ne=g.pop(),re=Y[ne];a.DEBUG&&console.log(d.step,(1"u"?fu:pu)(d,function(_,j){if(_)return g(_);var k;try{k=Ao(j)}catch(I){return g(I,null)}return g(null,k)})},a.loadSync=function(d){return Ao(zs(e("fs").readFileSync(d)))},Object.defineProperty(a,"__esModule",{value:!0})},n(typeof v=="object"&&S!==void 0?v:s.opentype={})}).call(this,e("buffer").Buffer)},{buffer:4,fs:2}],242:[function(e,S,v){(function(l){function s(c,f){for(var r=0,o=c.length-1;0<=o;o--){var t=c[o];t==="."?c.splice(o,1):t===".."?(c.splice(o,1),r++):r&&(c.splice(o,1),r--)}if(f)for(;r--;)c.unshift("..");return c}function n(c,f){if(c.filter)return c.filter(f);for(var r=[],o=0;o'.concat(m,"").concat(i,""),this.dummyDOM||(this.dummyDOM=document.getElementById(p).parentNode),this.descriptions?this.descriptions.fallbackElements||(this.descriptions.fallbackElements={}):this.descriptions={fallbackElements:{}},this.descriptions.fallbackElements[t]?this.descriptions.fallbackElements[t].innerHTML!==m&&(this.descriptions.fallbackElements[t].innerHTML=m):this._describeElementHTML("fallback",t,m),u===this.LABEL&&(this.descriptions.labelElements||(this.descriptions.labelElements={}),this.descriptions.labelElements[t]?this.descriptions.labelElements[t].innerHTML!==m&&(this.descriptions.labelElements[t].innerHTML=m):this._describeElementHTML("label",t,m)))},l.default.prototype._describeHTML=function(t,i){var u,p=this.canvas.id;t==="fallback"?(this.dummyDOM.querySelector("#".concat(p+s))?this.dummyDOM.querySelector("#"+p+a).insertAdjacentHTML("beforebegin",'

')):(u='

'),this.dummyDOM.querySelector("#".concat(p,"accessibleOutput"))?this.dummyDOM.querySelector("#".concat(p,"accessibleOutput")).insertAdjacentHTML("beforebegin",u):this.dummyDOM.querySelector("#".concat(p)).innerHTML=u),this.descriptions.fallback=this.dummyDOM.querySelector("#".concat(p).concat(n)),this.descriptions.fallback.innerHTML=i):t==="label"&&(this.dummyDOM.querySelector("#".concat(p+c))?this.dummyDOM.querySelector("#".concat(p+r))&&this.dummyDOM.querySelector("#".concat(p+r)).insertAdjacentHTML("beforebegin",'

')):(u='

'),this.dummyDOM.querySelector("#".concat(p,"accessibleOutputLabel"))?this.dummyDOM.querySelector("#".concat(p,"accessibleOutputLabel")).insertAdjacentHTML("beforebegin",u):this.dummyDOM.querySelector("#"+p).insertAdjacentHTML("afterend",u)),this.descriptions.label=this.dummyDOM.querySelector("#"+p+f),this.descriptions.label.innerHTML=i)},l.default.prototype._describeElementHTML=function(t,i,u){var p,m=this.canvas.id;t==="fallback"?(this.dummyDOM.querySelector("#".concat(m+s))?this.dummyDOM.querySelector("#"+m+a)||this.dummyDOM.querySelector("#"+m+n).insertAdjacentHTML("afterend",'
Canvas elements and their descriptions
')):(p='
Canvas elements and their descriptions
'),this.dummyDOM.querySelector("#".concat(m,"accessibleOutput"))?this.dummyDOM.querySelector("#".concat(m,"accessibleOutput")).insertAdjacentHTML("beforebegin",p):this.dummyDOM.querySelector("#"+m).innerHTML=p),(p=document.createElement("tr")).id=m+"_fte_"+i,this.dummyDOM.querySelector("#"+m+a).appendChild(p),this.descriptions.fallbackElements[i]=this.dummyDOM.querySelector("#".concat(m).concat("_fte_").concat(i)),this.descriptions.fallbackElements[i].innerHTML=u):t==="label"&&(this.dummyDOM.querySelector("#".concat(m+c))?this.dummyDOM.querySelector("#".concat(m+r))||this.dummyDOM.querySelector("#"+m+f).insertAdjacentHTML("afterend",'
')):(p='
'),this.dummyDOM.querySelector("#".concat(m,"accessibleOutputLabel"))?this.dummyDOM.querySelector("#".concat(m,"accessibleOutputLabel")).insertAdjacentHTML("beforebegin",p):this.dummyDOM.querySelector("#"+m).insertAdjacentHTML("afterend",p)),(t=document.createElement("tr")).id=m+"_lte_"+i,this.dummyDOM.querySelector("#"+m+r).appendChild(t),this.descriptions.labelElements[i]=this.dummyDOM.querySelector("#".concat(m).concat("_lte_").concat(i)),this.descriptions.labelElements[i].innerHTML=u)},e=l.default,v.default=e},{"../core/main":267,"core-js/modules/es.array.concat":149,"core-js/modules/es.regexp.exec":181,"core-js/modules/es.string.ends-with":184,"core-js/modules/es.string.replace":189}],248:[function(e,S,v){e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.map"),e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.map"),Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0,e=(e=e("../core/main"))&&e.__esModule?e:{default:e},e.default.prototype._updateGridOutput=function(l){var s,n,a,c;this.dummyDOM.querySelector("#".concat(l,"_summary"))&&(s=this._accessibleOutputs[l],a=function(f,r,o,t){return r="".concat(r," canvas, ").concat(o," by ").concat(t," pixels, contains ").concat(f[0]),r=(f[0]===1?"".concat(r," shape: "):"".concat(r," shapes: ")).concat(f[1]),r}((n=function(f,r){var o,t="",i="",u=0;for(o in r){var p,m=0;for(p in r[o]){var b='
  • ').concat(r[o][p].color," ").concat(o,",");o==="line"?b+=" location = ".concat(r[o][p].pos,", length = ").concat(r[o][p].length," pixels"):(b+=" location = ".concat(r[o][p].pos),o!=="point"&&(b+=", area = ".concat(r[o][p].area," %")),b+="
  • "),t+=b,m++,u++}i=1').concat(r[t][b].color," ").concat(t,"
    "):'').concat(r[t][b].color," ").concat(t," midpoint"),m[r[t][b].loc.locY][r[t][b].loc.locX]?m[r[t][b].loc.locY][r[t][b].loc.locX]=m[r[t][b].loc.locY][r[t][b].loc.locX]+" "+x:m[r[t][b].loc.locY][r[t][b].loc.locX]=x,u++}for(i in m){var w,T="";for(w in m[i])T+="",m[i][w]!==void 0&&(T+=m[i][w]),T+="";p=p+T+""}return p}(l,this.ingredients.shapes),a!==s.summary.innerHTML&&(s.summary.innerHTML=a),c!==s.map.innerHTML&&(s.map.innerHTML=c),n.details!==s.shapeDetails.innerHTML&&(s.shapeDetails.innerHTML=n.details),this._accessibleOutputs[l]=s)},e=e.default,v.default=e},{"../core/main":267,"core-js/modules/es.array.concat":149,"core-js/modules/es.array.map":161}],249:[function(e,S,v){e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.fill"),e("core-js/modules/es.array.map"),e("core-js/modules/es.number.to-fixed"),e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.fill"),e("core-js/modules/es.array.map"),e("core-js/modules/es.number.to-fixed"),Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var l=(e=e("../core/main"))&&e.__esModule?e:{default:e};function s(a,c,f){return a[0]<.4*c?a[1]<.4*f?"top left":a[1]>.6*f?"bottom left":"mid left":a[0]>.6*c?a[1]<.4*f?"top right":a[1]>.6*f?"bottom right":"mid right":a[1]<.4*f?"top middle":a[1]>.6*f?"bottom middle":"middle"}function n(a,c,f){return c=Math.floor(a[0]/c*10),a=Math.floor(a[1]/f*10),c===10&&(c-=1),a===10&&(a-=1),{locX:c,locY:a}}l.default.prototype.textOutput=function(a){l.default._validateParameters("textOutput",arguments),this._accessibleOutputs.text||(this._accessibleOutputs.text=!0,this._createOutput("textOutput","Fallback"),a===this.LABEL&&(this._accessibleOutputs.textLabel=!0,this._createOutput("textOutput","Label")))},l.default.prototype.gridOutput=function(a){l.default._validateParameters("gridOutput",arguments),this._accessibleOutputs.grid||(this._accessibleOutputs.grid=!0,this._createOutput("gridOutput","Fallback"),a===this.LABEL&&(this._accessibleOutputs.gridLabel=!0,this._createOutput("gridOutput","Label")))},l.default.prototype._addAccsOutput=function(){return this._accessibleOutputs||(this._accessibleOutputs={text:!1,grid:!1,textLabel:!1,gridLabel:!1}),this._accessibleOutputs.grid||this._accessibleOutputs.text},l.default.prototype._createOutput=function(a,c){var f,r,o,t=this.canvas.id,i=(this.ingredients||(this.ingredients={shapes:{},colors:{background:"white",fill:"white",stroke:"black"},pShapes:""}),this.dummyDOM||(this.dummyDOM=document.getElementById(t).parentNode),"");c==="Fallback"?(f=t+a,this.dummyDOM.querySelector("#".concat(r=t+"accessibleOutput"))||(this.dummyDOM.querySelector("#".concat(t,"_Description"))?this.dummyDOM.querySelector("#".concat(t,"_Description")).insertAdjacentHTML("afterend",'
    ')):this.dummyDOM.querySelector("#".concat(t)).innerHTML='
    '))):c==="Label"&&(f=t+a+(i=c),this.dummyDOM.querySelector("#".concat(r=t+"accessibleOutput"+c))||(this.dummyDOM.querySelector("#".concat(t,"_Label"))?this.dummyDOM.querySelector("#".concat(t,"_Label")):this.dummyDOM.querySelector("#".concat(t))).insertAdjacentHTML("afterend",'
    '))),this._accessibleOutputs[f]={},a==="textOutput"?(i="#".concat(t,"gridOutput").concat(i),o='
    Text Output

      '),this.dummyDOM.querySelector(i)?this.dummyDOM.querySelector(i).insertAdjacentHTML("beforebegin",o):this.dummyDOM.querySelector("#".concat(r)).innerHTML=o,this._accessibleOutputs[f].list=this.dummyDOM.querySelector("#".concat(f,"_list"))):a==="gridOutput"&&(i="#".concat(t,"textOutput").concat(i),o='
      Grid Output

        '),this.dummyDOM.querySelector(i)?this.dummyDOM.querySelector(i).insertAdjacentHTML("afterend",o):this.dummyDOM.querySelector("#".concat(r)).innerHTML=o,this._accessibleOutputs[f].map=this.dummyDOM.querySelector("#".concat(f,"_map"))),this._accessibleOutputs[f].shapeDetails=this.dummyDOM.querySelector("#".concat(f,"_shapeDetails")),this._accessibleOutputs[f].summary=this.dummyDOM.querySelector("#".concat(f,"_summary"))},l.default.prototype._updateAccsOutput=function(){var a=this.canvas.id;JSON.stringify(this.ingredients.shapes)!==this.ingredients.pShapes&&(this.ingredients.pShapes=JSON.stringify(this.ingredients.shapes),this._accessibleOutputs.text&&this._updateTextOutput(a+"textOutput"),this._accessibleOutputs.grid&&this._updateGridOutput(a+"gridOutput"),this._accessibleOutputs.textLabel&&this._updateTextOutput(a+"textOutputLabel"),this._accessibleOutputs.gridLabel&&this._updateGridOutput(a+"gridOutputLabel"))},l.default.prototype._accsBackground=function(a){this.ingredients.pShapes=JSON.stringify(this.ingredients.shapes),this.ingredients.shapes={},this.ingredients.colors.backgroundRGBA!==a&&(this.ingredients.colors.backgroundRGBA=a,this.ingredients.colors.background=this._rgbColorName(a))},l.default.prototype._accsCanvasColors=function(a,c){a==="fill"?this.ingredients.colors.fillRGBA!==c&&(this.ingredients.colors.fillRGBA=c,this.ingredients.colors.fill=this._rgbColorName(c)):a==="stroke"&&this.ingredients.colors.strokeRGBA!==c&&(this.ingredients.colors.strokeRGBA=c,this.ingredients.colors.stroke=this._rgbColorName(c))},l.default.prototype._accsOutput=function(a,c){a==="ellipse"&&c[2]===c[3]?a="circle":a==="rectangle"&&c[2]===c[3]&&(a="square");var f,r,o={},t=!0,i=function(p,m){var b;return p=p==="rectangle"||p==="ellipse"||p==="arc"||p==="circle"||p==="square"?(b=Math.round(m[0]+m[2]/2),Math.round(m[1]+m[3]/2)):p==="triangle"?(b=(m[0]+m[2]+m[4])/3,(m[1]+m[3]+m[5])/3):p==="quadrilateral"?(b=(m[0]+m[2]+m[4]+m[6])/4,(m[1]+m[3]+m[5]+m[7])/4):p==="line"?(b=(m[0]+m[2])/2,(m[1]+m[3])/2):(b=m[0],m[1]),[b,p]}(a,c);if(a==="line"?(o.color=this.ingredients.colors.stroke,o.length=Math.round(this.dist(c[0],c[1],c[2],c[3])),f=s([c[0],[1]],this.width,this.height),r=s([c[2],[3]],this.width,this.height),o.loc=n(i,this.width,this.height),o.pos=f===r?"at ".concat(f):"from ".concat(f," to ").concat(r)):(a==="point"?o.color=this.ingredients.colors.stroke:(o.color=this.ingredients.colors.fill,o.area=function(p,m,b,x){var w=0;{var T,M,O,L,R,A,N;p==="arc"?(T=((m[5]-m[4])%(2*Math.PI)+2*Math.PI)%(2*Math.PI),w=T*m[2]*m[3]/8,m[6]!=="open"&&m[6]!=="chord"||(N=m[0],M=m[1],O=m[0]+m[2]/2*Math.cos(m[4]).toFixed(2),L=m[1]+m[3]/2*Math.sin(m[4]).toFixed(2),R=m[0]+m[2]/2*Math.cos(m[5]).toFixed(2),A=m[1]+m[3]/2*Math.sin(m[5]).toFixed(2),N=Math.abs(N*(L-A)+O*(A-M)+R*(M-L))/2,T>Math.PI?w+=N:w-=N)):p==="ellipse"||p==="circle"?w=3.14*m[2]/2*m[3]/2:p==="line"||p==="point"?w=0:p==="quadrilateral"?w=Math.abs((m[6]+m[0])*(m[7]-m[1])+(m[0]+m[2])*(m[1]-m[3])+(m[2]+m[4])*(m[3]-m[5])+(m[4]+m[6])*(m[5]-m[7]))/2:p==="rectangle"||p==="square"?w=m[2]*m[3]:p==="triangle"&&(w=Math.abs(m[0]*(m[3]-m[5])+m[2]*(m[5]-m[1])+m[4]*(m[1]-m[3]))/2)}return Math.round(100*w/(b*x))}(a,c,this.width,this.height)),o.pos=s(i,this.width,this.height),o.loc=n(i,this.width,this.height)),this.ingredients.shapes[a]){if(this.ingredients.shapes[a]!==[o]){for(var u in this.ingredients.shapes[a])JSON.stringify(this.ingredients.shapes[a][u])===JSON.stringify(o)&&(t=!1);t===!0&&this.ingredients.shapes[a].push(o)}}else this.ingredients.shapes[a]=[o]},e=l.default,v.default=e},{"../core/main":267,"core-js/modules/es.array.concat":149,"core-js/modules/es.array.fill":152,"core-js/modules/es.array.map":161,"core-js/modules/es.number.to-fixed":171}],250:[function(e,S,v){e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.concat"),Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0,e=(e=e("../core/main"))&&e.__esModule?e:{default:e},e.default.prototype._updateTextOutput=function(l){var s,n,a,c;this.dummyDOM.querySelector("#".concat(l,"_summary"))&&(s=this._accessibleOutputs[l],a=function(f,r,o,t){return o="Your output is a, ".concat(o," by ").concat(t," pixels, ").concat(r," canvas containing the following"),o=f===1?"".concat(o," shape:"):"".concat(o," ").concat(f," shapes:"),o}((n=function(f,r){var o,t="",i=0;for(o in r)for(var u in r[o]){var p='
      • ').concat(r[o][u].color," ").concat(o,"");o==="line"?p+=", ".concat(r[o][u].pos,", ").concat(r[o][u].length," pixels long.
      • "):(p+=", at ".concat(r[o][u].pos),o!=="point"&&(p+=", covering ".concat(r[o][u].area,"% of the canvas")),p+="."),t+=p,i++}return{numShapes:i,listShapes:t}}(l,this.ingredients.shapes)).numShapes,this.ingredients.colors.background,this.width,this.height),c=function(f,r){var o,t="",i=0;for(o in r)for(var u in r[o]){var p='').concat(r[o][u].color," ").concat(o,"");o==="line"?p+="location = ".concat(r[o][u].pos,"length = ").concat(r[o][u].length," pixels"):(p+="location = ".concat(r[o][u].pos,""),o!=="point"&&(p+=" area = ".concat(r[o][u].area,"%")),p+=""),t+=p,i++}return t}(l,this.ingredients.shapes),a!==s.summary.innerHTML&&(s.summary.innerHTML=a),n.listShapes!==s.list.innerHTML&&(s.list.innerHTML=n.listShapes),c!==s.shapeDetails.innerHTML&&(s.shapeDetails.innerHTML=c),this._accessibleOutputs[l]=s)},e=e.default,v.default=e},{"../core/main":267,"core-js/modules/es.array.concat":149}],251:[function(e,S,v){var l=(l=e("./core/main"))&&l.__esModule?l:{default:l};e("./core/constants"),e("./core/environment"),e("./core/friendly_errors/stacktrace"),e("./core/friendly_errors/validate_params"),e("./core/friendly_errors/file_errors"),e("./core/friendly_errors/fes_core"),e("./core/friendly_errors/sketch_reader"),e("./core/helpers"),e("./core/legacy"),e("./core/preload"),e("./core/p5.Element"),e("./core/p5.Graphics"),e("./core/p5.Renderer"),e("./core/p5.Renderer2D"),e("./core/rendering"),e("./core/shim"),e("./core/structure"),e("./core/transform"),e("./core/shape/2d_primitives"),e("./core/shape/attributes"),e("./core/shape/curves"),e("./core/shape/vertex"),e("./accessibility/outputs"),e("./accessibility/textOutput"),e("./accessibility/gridOutput"),e("./accessibility/color_namer"),e("./color/color_conversion"),e("./color/creating_reading"),e("./color/p5.Color"),e("./color/setting"),e("./data/p5.TypedDict"),e("./data/local_storage.js"),e("./dom/dom"),e("./accessibility/describe"),e("./events/acceleration"),e("./events/keyboard"),e("./events/mouse"),e("./events/touch"),e("./image/filters"),e("./image/image"),e("./image/loading_displaying"),e("./image/p5.Image"),e("./image/pixels"),e("./io/files"),e("./io/p5.Table"),e("./io/p5.TableRow"),e("./io/p5.XML"),e("./math/calculation"),e("./math/math"),e("./math/noise"),e("./math/p5.Vector"),e("./math/random"),e("./math/trigonometry"),e("./typography/attributes"),e("./typography/loading_displaying"),e("./typography/p5.Font"),e("./utilities/array_functions"),e("./utilities/conversion"),e("./utilities/string_functions"),e("./utilities/time_date"),e("./webgl/3d_primitives"),e("./webgl/interaction"),e("./webgl/light"),e("./webgl/loading"),e("./webgl/material"),e("./webgl/p5.Camera"),e("./webgl/p5.Geometry"),e("./webgl/p5.Matrix"),e("./webgl/p5.RendererGL.Immediate"),e("./webgl/p5.RendererGL"),e("./webgl/p5.RendererGL.Retained"),e("./webgl/p5.Shader"),e("./webgl/p5.RenderBuffer"),e("./webgl/p5.Texture"),e("./webgl/text"),e("./core/init"),S.exports=l.default},{"./accessibility/color_namer":246,"./accessibility/describe":247,"./accessibility/gridOutput":248,"./accessibility/outputs":249,"./accessibility/textOutput":250,"./color/color_conversion":252,"./color/creating_reading":253,"./color/p5.Color":254,"./color/setting":255,"./core/constants":256,"./core/environment":257,"./core/friendly_errors/fes_core":258,"./core/friendly_errors/file_errors":259,"./core/friendly_errors/sketch_reader":260,"./core/friendly_errors/stacktrace":261,"./core/friendly_errors/validate_params":262,"./core/helpers":263,"./core/init":264,"./core/legacy":266,"./core/main":267,"./core/p5.Element":268,"./core/p5.Graphics":269,"./core/p5.Renderer":270,"./core/p5.Renderer2D":271,"./core/preload":272,"./core/rendering":273,"./core/shape/2d_primitives":274,"./core/shape/attributes":275,"./core/shape/curves":276,"./core/shape/vertex":277,"./core/shim":278,"./core/structure":279,"./core/transform":280,"./data/local_storage.js":281,"./data/p5.TypedDict":282,"./dom/dom":283,"./events/acceleration":284,"./events/keyboard":285,"./events/mouse":286,"./events/touch":287,"./image/filters":288,"./image/image":289,"./image/loading_displaying":290,"./image/p5.Image":291,"./image/pixels":292,"./io/files":293,"./io/p5.Table":294,"./io/p5.TableRow":295,"./io/p5.XML":296,"./math/calculation":297,"./math/math":298,"./math/noise":299,"./math/p5.Vector":300,"./math/random":301,"./math/trigonometry":302,"./typography/attributes":303,"./typography/loading_displaying":304,"./typography/p5.Font":305,"./utilities/array_functions":306,"./utilities/conversion":307,"./utilities/string_functions":308,"./utilities/time_date":309,"./webgl/3d_primitives":310,"./webgl/interaction":311,"./webgl/light":312,"./webgl/loading":313,"./webgl/material":314,"./webgl/p5.Camera":315,"./webgl/p5.Geometry":316,"./webgl/p5.Matrix":317,"./webgl/p5.RenderBuffer":318,"./webgl/p5.RendererGL":321,"./webgl/p5.RendererGL.Immediate":319,"./webgl/p5.RendererGL.Retained":320,"./webgl/p5.Shader":322,"./webgl/p5.Texture":323,"./webgl/text":324}],252:[function(e,S,v){Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0,e=(e=e("../core/main"))&&e.__esModule?e:{default:e},e.default.ColorConversion={},e.default.ColorConversion._hsbaToHSLA=function(l){var s=l[0],n=l[1],a=l[2],c=(2-n)*a/2;return c!=0&&(c==1?n=0:c<.5?n/=2-n:n=n*a/(2-2*c)),[s,n,c,l[3]]},e.default.ColorConversion._hsbaToRGBA=function(l){var s,n,a,c,f,r=6*l[0],o=l[1],t=l[2];return o===0?[t,t,t,l[3]]:(n=t*(1-o),a=t*(1-o*(r-(s=Math.floor(r)))),o=t*(1-o*(1+s-r)),r=s===1?(c=a,f=t,n):s===2?(c=n,f=t,o):s===3?(c=n,f=a,t):s===4?(c=o,f=n,t):s===5?(c=t,f=n,a):(c=t,f=o,n),[c,f,r,l[3]])},e.default.ColorConversion._hslaToHSBA=function(l){var s=l[0],n=l[1],a=l[2],c=a<.5?(1+n)*a:a+n-a*n;return[s,n=2*(c-a)/c,c,l[3]]},e.default.ColorConversion._hslaToRGBA=function(l){var s,n=6*l[0],a=l[1],c=l[2];return a===0?[c,c,c,l[3]]:[(s=function(f,r,o){return f<0?f+=6:6<=f&&(f-=6),f<1?r+(o-r)*f:f<3?o:f<4?r+(o-r)*(4-f):r})(2+n,a=2*c-(c=c<.5?(1+a)*c:c+a-c*a),c),s(n,a,c),s(n-2,a,c),l[3]]},e.default.ColorConversion._rgbaToHSBA=function(l){var s,n,a=l[0],c=l[1],f=l[2],r=Math.max(a,c,f),o=r-Math.min(a,c,f);return o==0?n=s=0:(n=o/r,a===r?s=(c-f)/o:c===r?s=2+(f-a)/o:f===r&&(s=4+(a-c)/o),s<0?s+=6:6<=s&&(s-=6)),[s/6,n,r,l[3]]},e.default.ColorConversion._rgbaToHSLA=function(l){var s,n,a=l[0],c=l[1],f=l[2],r=Math.max(a,c,f),t=Math.min(a,c,f),o=r+t,t=r-t;return t==0?n=s=0:(n=o<1?t/o:t/(2-o),a===r?s=(c-f)/t:c===r?s=2+(f-a)/t:f===r&&(s=4+(a-c)/t),s<0?s+=6:6<=s&&(s-=6)),[s/6,n,o/2,l[3]]},e=e.default.ColorConversion,v.default=e},{"../core/main":267}],253:[function(e,S,v){function l(r){return(l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}function s(r){return(s=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(o){return l(o)}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":l(o)})(r)}e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.symbol.iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.map"),e("core-js/modules/es.object.get-own-property-descriptor"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.string.iterator"),e("core-js/modules/es.weak-map"),e("core-js/modules/web.dom-collections.iterator"),e("core-js/modules/es.array.map"),Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var n=(f=e("../core/main"))&&f.__esModule?f:{default:f},a=function(r){if(r&&r.__esModule)return r;if(r===null||s(r)!=="object"&&typeof r!="function")return{default:r};var o=c();if(o&&o.has(r))return o.get(r);var t,i={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(t in r){var p;Object.prototype.hasOwnProperty.call(r,t)&&((p=u?Object.getOwnPropertyDescriptor(r,t):null)&&(p.get||p.set)?Object.defineProperty(i,t,p):i[t]=r[t])}return i.default=r,o&&o.set(r,i),i}(e("../core/constants"));function c(){var r;return typeof WeakMap!="function"?null:(r=new WeakMap,c=function(){return r},r)}e("./p5.Color"),e("../core/friendly_errors/validate_params"),e("../core/friendly_errors/file_errors"),e("../core/friendly_errors/fes_core"),n.default.prototype.alpha=function(r){return n.default._validateParameters("alpha",arguments),this.color(r)._getAlpha()},n.default.prototype.blue=function(r){return n.default._validateParameters("blue",arguments),this.color(r)._getBlue()},n.default.prototype.brightness=function(r){return n.default._validateParameters("brightness",arguments),this.color(r)._getBrightness()},n.default.prototype.color=function(){var r;return n.default._validateParameters("color",arguments),arguments[0]instanceof n.default.Color?arguments[0]:(r=arguments[0]instanceof Array?arguments[0]:arguments,new n.default.Color(this,r))},n.default.prototype.green=function(r){return n.default._validateParameters("green",arguments),this.color(r)._getGreen()},n.default.prototype.hue=function(r){return n.default._validateParameters("hue",arguments),this.color(r)._getHue()},n.default.prototype.lerpColor=function(r,o,t){n.default._validateParameters("lerpColor",arguments);var i,u,p,m=this._colorMode,b=this._colorMaxes;if(m===a.RGB)u=r.levels.map(function(x){return x/255}),p=o.levels.map(function(x){return x/255});else if(m===a.HSB)r._getBrightness(),o._getBrightness(),u=r.hsba,p=o.hsba;else{if(m!==a.HSL)throw new Error("".concat(m,"cannot be used for interpolation."));r._getLightness(),o._getLightness(),u=r.hsla,p=o.hsla}return t=Math.max(Math.min(t,1),0),this.lerp===void 0&&(this.lerp=function(x,w,T){return T*(w-x)+x}),r=this.lerp(u[0],p[0],t),o=this.lerp(u[1],p[1],t),i=this.lerp(u[2],p[2],t),u=this.lerp(u[3],p[3],t),r*=b[m][0],o*=b[m][1],i*=b[m][2],u*=b[m][3],this.color(r,o,i,u)},n.default.prototype.lightness=function(r){return n.default._validateParameters("lightness",arguments),this.color(r)._getLightness()},n.default.prototype.red=function(r){return n.default._validateParameters("red",arguments),this.color(r)._getRed()},n.default.prototype.saturation=function(r){return n.default._validateParameters("saturation",arguments),this.color(r)._getSaturation()};var f=n.default;v.default=f},{"../core/constants":256,"../core/friendly_errors/fes_core":258,"../core/friendly_errors/file_errors":259,"../core/friendly_errors/validate_params":262,"../core/main":267,"./p5.Color":254,"core-js/modules/es.array.iterator":158,"core-js/modules/es.array.map":161,"core-js/modules/es.object.get-own-property-descriptor":173,"core-js/modules/es.object.to-string":177,"core-js/modules/es.string.iterator":186,"core-js/modules/es.symbol":196,"core-js/modules/es.symbol.description":194,"core-js/modules/es.symbol.iterator":195,"core-js/modules/es.weak-map":228,"core-js/modules/web.dom-collections.iterator":230}],254:[function(t,S,v){function l(b){return(l=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})(b)}function s(b){return(s=typeof Symbol=="function"&&l(Symbol.iterator)==="symbol"?function(x){return l(x)}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":l(x)})(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.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.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.trim"),t("core-js/modules/es.weak-map"),t("core-js/modules/web.dom-collections.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.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.trim"),Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var n=r(t("../core/main")),a=function(b){if(b&&b.__esModule)return b;if(b===null||s(b)!=="object"&&typeof b!="function")return{default:b};var x=f();if(x&&x.has(b))return x.get(b);var w,T={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(w in b){var O;Object.prototype.hasOwnProperty.call(b,w)&&((O=M?Object.getOwnPropertyDescriptor(b,w):null)&&(O.get||O.set)?Object.defineProperty(T,w,O):T[w]=b[w])}return T.default=b,x&&x.set(b,T),T}(t("../core/constants")),c=r(t("./color_conversion"));function f(){var b;return typeof WeakMap!="function"?null:(b=new WeakMap,f=function(){return b},b)}function r(b){return b&&b.__esModule?b:{default:b}}n.default.Color=function(b,x){if(this._storeModeAndMaxes(b._colorMode,b._colorMaxes),this.mode!==a.RGB&&this.mode!==a.HSL&&this.mode!==a.HSB)throw new Error("".concat(this.mode," is an invalid colorMode."));return this._array=n.default.Color._parseInputs.apply(this,x),this._calculateLevels(),this},n.default.Color.prototype.toString=function(b){var x=this.levels,w=this._array,T=w[3];switch(b){case"#rrggbb":return"#".concat(x[0]<16?"0".concat(x[0].toString(16)):x[0].toString(16),x[1]<16?"0".concat(x[1].toString(16)):x[1].toString(16),x[2]<16?"0".concat(x[2].toString(16)):x[2].toString(16));case"#rrggbbaa":return"#".concat(x[0]<16?"0".concat(x[0].toString(16)):x[0].toString(16),x[1]<16?"0".concat(x[1].toString(16)):x[1].toString(16),x[2]<16?"0".concat(x[2].toString(16)):x[2].toString(16),x[3]<16?"0".concat(x[3].toString(16)):x[3].toString(16));case"#rgb":return"#".concat(Math.round(15*w[0]).toString(16),Math.round(15*w[1]).toString(16),Math.round(15*w[2]).toString(16));case"#rgba":return"#".concat(Math.round(15*w[0]).toString(16),Math.round(15*w[1]).toString(16),Math.round(15*w[2]).toString(16),Math.round(15*w[3]).toString(16));case"rgb":return"rgb(".concat(x[0],", ",x[1],", ",x[2],")");case"rgb%":return"rgb(".concat((100*w[0]).toPrecision(3),"%, ",(100*w[1]).toPrecision(3),"%, ",(100*w[2]).toPrecision(3),"%)");case"rgba%":return"rgba(".concat((100*w[0]).toPrecision(3),"%, ",(100*w[1]).toPrecision(3),"%, ",(100*w[2]).toPrecision(3),"%, ",(100*w[3]).toPrecision(3),"%)");case"hsb":case"hsv":return this.hsba||(this.hsba=c.default._rgbaToHSBA(this._array)),"hsb(".concat(this.hsba[0]*this.maxes[a.HSB][0],", ",this.hsba[1]*this.maxes[a.HSB][1],", ",this.hsba[2]*this.maxes[a.HSB][2],")");case"hsb%":case"hsv%":return this.hsba||(this.hsba=c.default._rgbaToHSBA(this._array)),"hsb(".concat((100*this.hsba[0]).toPrecision(3),"%, ",(100*this.hsba[1]).toPrecision(3),"%, ",(100*this.hsba[2]).toPrecision(3),"%)");case"hsba":case"hsva":return this.hsba||(this.hsba=c.default._rgbaToHSBA(this._array)),"hsba(".concat(this.hsba[0]*this.maxes[a.HSB][0],", ",this.hsba[1]*this.maxes[a.HSB][1],", ",this.hsba[2]*this.maxes[a.HSB][2],", ",T,")");case"hsba%":case"hsva%":return this.hsba||(this.hsba=c.default._rgbaToHSBA(this._array)),"hsba(".concat((100*this.hsba[0]).toPrecision(3),"%, ",(100*this.hsba[1]).toPrecision(3),"%, ",(100*this.hsba[2]).toPrecision(3),"%, ",(100*T).toPrecision(3),"%)");case"hsl":return this.hsla||(this.hsla=c.default._rgbaToHSLA(this._array)),"hsl(".concat(this.hsla[0]*this.maxes[a.HSL][0],", ",this.hsla[1]*this.maxes[a.HSL][1],", ",this.hsla[2]*this.maxes[a.HSL][2],")");case"hsl%":return this.hsla||(this.hsla=c.default._rgbaToHSLA(this._array)),"hsl(".concat((100*this.hsla[0]).toPrecision(3),"%, ",(100*this.hsla[1]).toPrecision(3),"%, ",(100*this.hsla[2]).toPrecision(3),"%)");case"hsla":return this.hsla||(this.hsla=c.default._rgbaToHSLA(this._array)),"hsla(".concat(this.hsla[0]*this.maxes[a.HSL][0],", ",this.hsla[1]*this.maxes[a.HSL][1],", ",this.hsla[2]*this.maxes[a.HSL][2],", ",T,")");case"hsla%":return this.hsla||(this.hsla=c.default._rgbaToHSLA(this._array)),"hsl(".concat((100*this.hsla[0]).toPrecision(3),"%, ",(100*this.hsla[1]).toPrecision(3),"%, ",(100*this.hsla[2]).toPrecision(3),"%, ",(100*T).toPrecision(3),"%)");default:return"rgba(".concat(x[0],",",x[1],",",x[2],",",T,")")}},n.default.Color.prototype.setRed=function(b){this._array[0]=b/this.maxes[a.RGB][0],this._calculateLevels()},n.default.Color.prototype.setGreen=function(b){this._array[1]=b/this.maxes[a.RGB][1],this._calculateLevels()},n.default.Color.prototype.setBlue=function(b){this._array[2]=b/this.maxes[a.RGB][2],this._calculateLevels()},n.default.Color.prototype.setAlpha=function(b){this._array[3]=b/this.maxes[this.mode][3],this._calculateLevels()},n.default.Color.prototype._calculateLevels=function(){for(var b=this._array,x=this.levels=new Array(b.length),w=b.length-1;0<=w;--w)x[w]=Math.round(255*b[w]);this.hsla=null,this.hsba=null},n.default.Color.prototype._getAlpha=function(){return this._array[3]*this.maxes[this.mode][3]},n.default.Color.prototype._storeModeAndMaxes=function(b,x){this.mode=b,this.maxes=x},n.default.Color.prototype._getMode=function(){return this.mode},n.default.Color.prototype._getMaxes=function(){return this.maxes},n.default.Color.prototype._getBlue=function(){return this._array[2]*this.maxes[a.RGB][2]},n.default.Color.prototype._getBrightness=function(){return this.hsba||(this.hsba=c.default._rgbaToHSBA(this._array)),this.hsba[2]*this.maxes[a.HSB][2]},n.default.Color.prototype._getGreen=function(){return this._array[1]*this.maxes[a.RGB][1]},n.default.Color.prototype._getHue=function(){return this.mode===a.HSB?(this.hsba||(this.hsba=c.default._rgbaToHSBA(this._array)),this.hsba[0]*this.maxes[a.HSB][0]):(this.hsla||(this.hsla=c.default._rgbaToHSLA(this._array)),this.hsla[0]*this.maxes[a.HSL][0])},n.default.Color.prototype._getLightness=function(){return this.hsla||(this.hsla=c.default._rgbaToHSLA(this._array)),this.hsla[2]*this.maxes[a.HSL][2]},n.default.Color.prototype._getRed=function(){return this._array[0]*this.maxes[a.RGB][0]},n.default.Color.prototype._getSaturation=function(){return this.mode===a.HSB?(this.hsba||(this.hsba=c.default._rgbaToHSBA(this._array)),this.hsba[1]*this.maxes[a.HSB][1]):(this.hsla||(this.hsla=c.default._rgbaToHSLA(this._array)),this.hsla[1]*this.maxes[a.HSL][1])};var o={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},t=/\s*/,m=/(\d{1,3})/,i=/((?:\d+(?:\.\d+)?)|(?:\.\d+))/,u=new RegExp("".concat(i.source,"%")),p={HEX3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,HEX6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,HEX8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,RGB:new RegExp(["^rgb\\(",m.source,",",m.source,",",m.source,"\\)$"].join(t.source),"i"),RGB_PERCENT:new RegExp(["^rgb\\(",u.source,",",u.source,",",u.source,"\\)$"].join(t.source),"i"),RGBA:new RegExp(["^rgba\\(",m.source,",",m.source,",",m.source,",",i.source,"\\)$"].join(t.source),"i"),RGBA_PERCENT:new RegExp(["^rgba\\(",u.source,",",u.source,",",u.source,",",i.source,"\\)$"].join(t.source),"i"),HSL:new RegExp(["^hsl\\(",m.source,",",u.source,",",u.source,"\\)$"].join(t.source),"i"),HSLA:new RegExp(["^hsla\\(",m.source,",",u.source,",",u.source,",",i.source,"\\)$"].join(t.source),"i"),HSB:new RegExp(["^hsb\\(",m.source,",",u.source,",",u.source,"\\)$"].join(t.source),"i"),HSBA:new RegExp(["^hsba\\(",m.source,",",u.source,",",u.source,",",i.source,"\\)$"].join(t.source),"i")},m=(n.default.Color._parseInputs=function(b,x,w,T){var M,O=arguments.length,L=this.mode,R=this.maxes[L],A=[];if(3<=O){for(A[0]=b/R[0],A[1]=x/R[1],A[2]=w/R[2],A[3]=typeof T=="number"?T/R[3]:1,M=A.length-1;0<=M;--M){var N=A[M];N<0?A[M]=0:1>7,127&J,V>>7,127&V);for(var G=0;G>7,127&te,0,0)}}return{cellImageInfo:be,dimOffset:Me,dimImageInfo:ze}}}}var i=Math.sqrt(3);a.default.RendererGL.prototype._renderText=function(u,p,m,b,x){if(this._textFont&&typeof this._textFont!="string"){if(!(x<=b)&&this._doFill){if(this._isOpenType()){u.push();var x=this._doStroke,w=this.drawMode,T=(this._doStroke=!1,this.drawMode=c.TEXTURE,this._textFont.font),M=(M=this._textFont._fontInfo)||(this._textFont._fontInfo=new t(T)),m=this._textFont._handleAlignment(this,p,m,b),b=this._textSize/T.unitsPerEm,O=(this.translate(m.x,m.y,0),this.scale(b,b,1),this.GL),m=!this._defaultFontShader,L=this._getFontShader(),R=(L.init(),L.bindShader(),m&&(L.setUniform("uGridImageSize",[64,64]),L.setUniform("uCellsImageSize",[64,64]),L.setUniform("uStrokeImageSize",[64,64]),L.setUniform("uGridSize",[9,9])),this._applyColorBlend(this.curFillColor),this.retainedMode.geometry.glyph),A=(R||((b=this._textGeom=new a.default.Geometry(1,1,function(){for(var ie=0;ie<=1;ie++)for(var de=0;de<=1;de++)this.vertices.push(new a.default.Vector(de,ie,0)),this.uvs.push(de,ie)})).computeFaces().computeNormals(),R=this.createBuffers("glyph",b)),!0),m=!1,b=void 0;try{for(var N,U=this.retainedMode.buffers.text[Symbol.iterator]();!(A=(N=U.next()).done);A=!0)N.value._prepareBuffer(R,L)}catch(ie){m=!0,b=ie}finally{try{A||U.return==null||U.return()}finally{if(m)throw b}}this._bindBuffer(R.indexBuffer,O.ELEMENT_ARRAY_BUFFER),L.setUniform("uMaterialColor",this.curFillColor);try{var B=0,W=null,Z=T.stringToGlyphs(p),q=!0,$=!1,z=void 0;try{for(var X,Q=Z[Symbol.iterator]();!(q=(X=Q.next()).done);q=!0){var se,C,P=X.value,F=(W&&(B+=T.getKerningValue(W,P)),M.getGlyphInfo(P));F.uGlyphRect&&(se=F.rowInfo,C=F.colInfo,L.setUniform("uSamplerStrokes",F.strokeImageInfo.imageData),L.setUniform("uSamplerRowStrokes",se.cellImageInfo.imageData),L.setUniform("uSamplerRows",se.dimImageInfo.imageData),L.setUniform("uSamplerColStrokes",C.cellImageInfo.imageData),L.setUniform("uSamplerCols",C.dimImageInfo.imageData),L.setUniform("uGridOffset",F.uGridOffset),L.setUniform("uGlyphRect",F.uGlyphRect),L.setUniform("uGlyphOffset",B),L.bindTextures(),O.drawElements(O.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)),B+=P.advanceWidth,W=P}}catch(ie){$=!0,z=ie}finally{try{q||Q.return==null||Q.return()}finally{if($)throw z}}}finally{L.unbindShader(),this._doStroke=x,this.drawMode=w,u.pop()}}else console.log("WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported");return u}}else console.log("WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.")}},{"../core/constants":256,"../core/main":267,"./p5.RendererGL.Retained":320,"./p5.Shader":322,"core-js/modules/es.array.iterator":158,"core-js/modules/es.object.get-own-property-descriptor":173,"core-js/modules/es.object.to-string":177,"core-js/modules/es.regexp.exec":181,"core-js/modules/es.string.iterator":186,"core-js/modules/es.string.split":191,"core-js/modules/es.string.sub":192,"core-js/modules/es.symbol":196,"core-js/modules/es.symbol.description":194,"core-js/modules/es.symbol.iterator":195,"core-js/modules/es.weak-map":228,"core-js/modules/web.dom-collections.iterator":230}]},{},[251])(251)})})(Ai);const ga=hu(Ai.exports);function as({children:h}){const y=Xt.exports.useRef(null);return Xt.exports.useEffect(()=>{const E=new ga(S=>{let v,l;S.preload=()=>{v=S.loadFont("https://raw.githubusercontent.com/google/fonts/main/ofl/poppins/Poppins-Bold.ttf")},S.setup=()=>{let s=parseInt(getComputedStyle(y.current).fontSize.split("px")[0]),n=Math.min(10*16,window.innerWidth*.08);S.createCanvas(1e3,250).parent(y.current),l=v.textToPoints(h,n,S.height/2+s/3,s),l=l.map(a=>new Bu(ga,S,a.x,a.y))},S.draw=()=>{S.clear();for(let s of l)s.doBehaviours(),s.update(),s.draw()},S.touchEnded=()=>{S.mouseX=0,S.mouseY=0}}),e=window.addEventListener("resize",()=>{E.setup()});return()=>{window.removeEventListener("resize",e),E.remove()}}),nt("div",{className:"p5-sketch",ref:y})}const Nn={email:"friedman.josh03@gmail.com",linkedin:"https://www.linkedin.com/in/joshwfriedman/",github:"https://github.com/Jwiggiff",codepen:"https://codepen.io/jwiggiff"};var tn={};/** +}`},i=(n.default.RendererGL=function(u,p,m,b){return n.default.Renderer.call(this,u,p,m),this._setAttributeDefaults(p),this._initContext(),this.isP3D=!0,this.GL=this.drawingContext,this._pInst._setProperty("drawingContext",this.drawingContext),this._isErasing=!1,this._enableLighting=!1,this.ambientLightColors=[],this.specularColors=[1,1,1],this.directionalLightDirections=[],this.directionalLightDiffuseColors=[],this.directionalLightSpecularColors=[],this.pointLightPositions=[],this.pointLightDiffuseColors=[],this.pointLightSpecularColors=[],this.spotLightPositions=[],this.spotLightDirections=[],this.spotLightDiffuseColors=[],this.spotLightSpecularColors=[],this.spotLightAngle=[],this.spotLightConc=[],this.drawMode=a.FILL,this.curFillColor=this._cachedFillStyle=[1,1,1,1],this.curAmbientColor=this._cachedFillStyle=[0,0,0,0],this.curSpecularColor=this._cachedFillStyle=[0,0,0,0],this.curEmissiveColor=this._cachedFillStyle=[0,0,0,0],this.curStrokeColor=this._cachedStrokeStyle=[0,0,0,1],this.curBlendMode=a.BLEND,this._cachedBlendMode=void 0,this.blendExt=this.GL.getExtension("EXT_blend_minmax"),this._isBlending=!1,this._useSpecularMaterial=!1,this._useEmissiveMaterial=!1,this._useNormalMaterial=!1,this._useShininess=1,this._tint=[255,255,255,255],this.constantAttenuation=1,this.linearAttenuation=0,this.quadraticAttenuation=0,this.uMVMatrix=new n.default.Matrix,this.uPMatrix=new n.default.Matrix,this.uNMatrix=new n.default.Matrix("mat3"),this._currentNormal=new n.default.Vector(0,0,1),this._curCamera=new n.default.Camera(this),this._curCamera._computeCameraDefaultSettings(),this._curCamera._setDefaultCamera(),this._defaultLightShader=void 0,this._defaultImmediateModeShader=void 0,this._defaultNormalShader=void 0,this._defaultColorShader=void 0,this._defaultPointShader=void 0,this.userFillShader=void 0,this.userStrokeShader=void 0,this.userPointShader=void 0,this.retainedMode={geometry:{},buffers:{stroke:[new n.default.RenderBuffer(3,"lineVertices","lineVertexBuffer","aPosition",this,this._flatten),new n.default.RenderBuffer(4,"lineNormals","lineNormalBuffer","aDirection",this,this._flatten)],fill:[new n.default.RenderBuffer(3,"vertices","vertexBuffer","aPosition",this,this._vToNArray),new n.default.RenderBuffer(3,"vertexNormals","normalBuffer","aNormal",this,this._vToNArray),new n.default.RenderBuffer(4,"vertexColors","colorBuffer","aVertexColor",this),new n.default.RenderBuffer(3,"vertexAmbients","ambientBuffer","aAmbientColor",this),new n.default.RenderBuffer(2,"uvs","uvBuffer","aTexCoord",this,this._flatten)],text:[new n.default.RenderBuffer(3,"vertices","vertexBuffer","aPosition",this,this._vToNArray),new n.default.RenderBuffer(2,"uvs","uvBuffer","aTexCoord",this,this._flatten)]}},this.immediateMode={geometry:new n.default.Geometry,shapeMode:a.TRIANGLE_FAN,_bezierVertex:[],_quadraticVertex:[],_curveVertex:[],buffers:{fill:[new n.default.RenderBuffer(3,"vertices","vertexBuffer","aPosition",this,this._vToNArray),new n.default.RenderBuffer(3,"vertexNormals","normalBuffer","aNormal",this,this._vToNArray),new n.default.RenderBuffer(4,"vertexColors","colorBuffer","aVertexColor",this),new n.default.RenderBuffer(3,"vertexAmbients","ambientBuffer","aAmbientColor",this),new n.default.RenderBuffer(2,"uvs","uvBuffer","aTexCoord",this,this._flatten)],stroke:[new n.default.RenderBuffer(3,"lineVertices","lineVertexBuffer","aPosition",this,this._flatten),new n.default.RenderBuffer(4,"lineNormals","lineNormalBuffer","aDirection",this,this._flatten)],point:this.GL.createBuffer()}},this.pointSize=5,this.curStrokeWeight=1,this.textures=[],this.textureMode=a.IMAGE,this.textureWrapX=a.CLAMP,this.textureWrapY=a.CLAMP,this._tex=null,this._curveTightness=6,this._lookUpTableBezier=[],this._lookUpTableQuadratic=[],this._lutBezierDetail=0,this._lutQuadraticDetail=0,this._tessy=this._initTessy(),this.fontInfos={},this._curShader=void 0,this},n.default.RendererGL.prototype=Object.create(n.default.Renderer.prototype),n.default.RendererGL.prototype._setAttributeDefaults=function(u){var p={alpha:!1,depth:!0,stencil:!0,antialias:navigator.userAgent.toLowerCase().includes("safari"),premultipliedAlpha:!1,preserveDrawingBuffer:!0,perPixelLighting:!0};u._glAttributes===null?u._glAttributes=p:u._glAttributes=Object.assign(p,u._glAttributes)},n.default.RendererGL.prototype._initContext=function(){if(this.drawingContext=this.canvas.getContext("webgl",this._pInst._glAttributes)||this.canvas.getContext("experimental-webgl",this._pInst._glAttributes),this.drawingContext===null)throw new Error("Error creating webgl context");var u=this.drawingContext;u.enable(u.DEPTH_TEST),u.depthFunc(u.LEQUAL),u.viewport(0,0,u.drawingBufferWidth,u.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)},n.default.RendererGL.prototype._resetContext=function(u,p){var m,b=this.width,x=this.height,T=this.canvas.id,w=this._pInst instanceof n.default.Graphics,T=(w?((m=this._pInst).canvas.parentNode.removeChild(m.canvas),m.canvas=document.createElement("canvas"),(m._pInst._userNode||document.body).appendChild(m.canvas),n.default.Element.call(m,m.canvas,m._pInst),m.width=b,m.height=x):((m=this.canvas)&&m.parentNode.removeChild(m),(m=document.createElement("canvas")).id=T,(this._pInst._userNode||document.body).appendChild(m),this._pInst.canvas=m,this.canvas=m),new n.default.RendererGL(this._pInst.canvas,this._pInst,!w));this._pInst._setProperty("_renderer",T),T.resize(b,x),T._applyDefaults(),w||this._pInst._elements.push(T),typeof p=="function"&&setTimeout(function(){p.apply(window._renderer,u)},0)},n.default.prototype.setAttributes=function(u,p){if(this._glAttributes===void 0)console.log("You are trying to use setAttributes on a p5.Graphics object that does not use a WEBGL renderer.");else{var m=!0;if(p!==void 0?(this._glAttributes===null&&(this._glAttributes={}),this._glAttributes[u]!==p&&(this._glAttributes[u]=p,m=!1)):u instanceof Object&&this._glAttributes!==u&&(this._glAttributes=u,m=!1),this._renderer.isP3D&&!m){if(!this._setupDone){for(var b in this._renderer.retainedMode.geometry)if(this._renderer.retainedMode.geometry.hasOwnProperty(b))return void console.error("Sorry, Could not set the attributes, you need to call setAttributes() before calling the other drawing methods in setup()")}this.push(),this._renderer._resetContext(),this.pop(),this._renderer._curCamera&&(this._renderer._curCamera._renderer=this._renderer)}}},n.default.RendererGL.prototype._update=function(){this.uMVMatrix.set(this._curCamera.cameraMatrix.mat4[0],this._curCamera.cameraMatrix.mat4[1],this._curCamera.cameraMatrix.mat4[2],this._curCamera.cameraMatrix.mat4[3],this._curCamera.cameraMatrix.mat4[4],this._curCamera.cameraMatrix.mat4[5],this._curCamera.cameraMatrix.mat4[6],this._curCamera.cameraMatrix.mat4[7],this._curCamera.cameraMatrix.mat4[8],this._curCamera.cameraMatrix.mat4[9],this._curCamera.cameraMatrix.mat4[10],this._curCamera.cameraMatrix.mat4[11],this._curCamera.cameraMatrix.mat4[12],this._curCamera.cameraMatrix.mat4[13],this._curCamera.cameraMatrix.mat4[14],this._curCamera.cameraMatrix.mat4[15]),this.ambientLightColors.length=0,this.specularColors=[1,1,1],this.directionalLightDirections.length=0,this.directionalLightDiffuseColors.length=0,this.directionalLightSpecularColors.length=0,this.pointLightPositions.length=0,this.pointLightDiffuseColors.length=0,this.pointLightSpecularColors.length=0,this.spotLightPositions.length=0,this.spotLightDirections.length=0,this.spotLightDiffuseColors.length=0,this.spotLightSpecularColors.length=0,this.spotLightAngle.length=0,this.spotLightConc.length=0,this._enableLighting=!1,this._tint=[255,255,255,255],this.GL.clear(this.GL.DEPTH_BUFFER_BIT)},n.default.RendererGL.prototype.background=function(){var b=(b=this._pInst).color.apply(b,arguments),u=b.levels[0]/255,p=b.levels[1]/255,m=b.levels[2]/255,b=b.levels[3]/255;this.GL.clearColor(u,p,m,b),this.GL.clear(this.GL.COLOR_BUFFER_BIT)},n.default.RendererGL.prototype.fill=function(u,p,m,b){var x=n.default.prototype.color.apply(this._pInst,arguments);this.curFillColor=x._array,this.drawMode=a.FILL,this._useNormalMaterial=!1,this._tex=null},n.default.RendererGL.prototype.stroke=function(u,p,m,b){arguments[3]=255;var x=n.default.prototype.color.apply(this._pInst,arguments);this.curStrokeColor=x._array},n.default.RendererGL.prototype.strokeCap=function(u){console.error("Sorry, strokeCap() is not yet implemented in WEBGL mode")},n.default.RendererGL.prototype.strokeJoin=function(u){console.error("Sorry, strokeJoin() is not yet implemented in WEBGL mode")},n.default.RendererGL.prototype.filter=function(u){console.error("filter() does not work in WEBGL mode")},n.default.RendererGL.prototype.blendMode=function(u){u===a.DARKEST||u===a.LIGHTEST||u===a.ADD||u===a.BLEND||u===a.SUBTRACT||u===a.SCREEN||u===a.EXCLUSION||u===a.REPLACE||u===a.MULTIPLY||u===a.REMOVE?this.curBlendMode=u:u!==a.BURN&&u!==a.OVERLAY&&u!==a.HARD_LIGHT&&u!==a.SOFT_LIGHT&&u!==a.DODGE||console.warn("BURN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, and DODGE only work for blendMode in 2D mode.")},n.default.RendererGL.prototype.erase=function(u,p){this._isErasing||(this._applyBlendMode(a.REMOVE),this._isErasing=!0,this._cachedFillStyle=this.curFillColor.slice(),this.curFillColor=[1,1,1,u/255],this._cachedStrokeStyle=this.curStrokeColor.slice(),this.curStrokeColor=[1,1,1,p/255])},n.default.RendererGL.prototype.noErase=function(){this._isErasing&&(this._isErasing=!1,this.curFillColor=this._cachedFillStyle.slice(),this.curStrokeColor=this._cachedStrokeStyle.slice(),this.blendMode(this._cachedBlendMode))},n.default.RendererGL.prototype.strokeWeight=function(u){this.curStrokeWeight!==u&&(this.pointSize=u,this.curStrokeWeight=u)},n.default.RendererGL.prototype._getPixel=function(u,p){var m=new Uint8Array(4);return this.drawingContext.readPixels(u,p,1,1,this.drawingContext.RGBA,this.drawingContext.UNSIGNED_BYTE,m),[m[0],m[1],m[2],m[3]]},n.default.RendererGL.prototype.loadPixels=function(){var u,p=this._pixelsState;this._pInst._glAttributes.preserveDrawingBuffer!==!0?console.log("loadPixels only works in WebGL when preserveDrawingBuffer is true."):(p=p.pixels,u=this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4,p instanceof Uint8Array&&p.length===u||(p=new Uint8Array(u),this._pixelsState._setProperty("pixels",p)),u=this._pInst._pixelDensity,this.GL.readPixels(0,0,this.width*u,this.height*u,this.GL.RGBA,this.GL.UNSIGNED_BYTE,p))},n.default.RendererGL.prototype.geometryInHash=function(u){return this.retainedMode.geometry[u]!==void 0},n.default.RendererGL.prototype.resize=function(u,p){n.default.Renderer.prototype.resize.call(this,u,p),this.GL.viewport(0,0,this.GL.drawingBufferWidth,this.GL.drawingBufferHeight),this._viewport=this.GL.getParameter(this.GL.VIEWPORT),this._curCamera._resize(),u=this._pixelsState,u.pixels!==void 0&&u._setProperty("pixels",new Uint8Array(this.GL.drawingBufferWidth*this.GL.drawingBufferHeight*4))},n.default.RendererGL.prototype.clear=function(){this.GL.clearColor((arguments.length<=0?void 0:arguments[0])||0,(arguments.length<=1?void 0:arguments[1])||0,(arguments.length<=2?void 0:arguments[2])||0,(arguments.length<=3?void 0:arguments[3])||0),this.GL.clearDepth(1),this.GL.clear(this.GL.COLOR_BUFFER_BIT|this.GL.DEPTH_BUFFER_BIT)},n.default.RendererGL.prototype.applyMatrix=function(u,p,m,b,x,w){arguments.length===16?n.default.Matrix.prototype.apply.apply(this.uMVMatrix,arguments):this.uMVMatrix.apply([u,p,0,0,m,b,0,0,0,0,1,0,x,w,0,1])},n.default.RendererGL.prototype.translate=function(u,p,m){return u instanceof n.default.Vector&&(m=u.z,p=u.y,u=u.x),this.uMVMatrix.translate([u,p,m]),this},n.default.RendererGL.prototype.scale=function(u,p,m){return this.uMVMatrix.scale(u,p,m),this},n.default.RendererGL.prototype.rotate=function(u,p){return p===void 0?this.rotateZ(u):(n.default.Matrix.prototype.rotate.apply(this.uMVMatrix,arguments),this)},n.default.RendererGL.prototype.rotateX=function(u){return this.rotate(u,1,0,0),this},n.default.RendererGL.prototype.rotateY=function(u){return this.rotate(u,0,1,0),this},n.default.RendererGL.prototype.rotateZ=function(u){return this.rotate(u,0,0,1),this},n.default.RendererGL.prototype.push=function(){var u=n.default.Renderer.prototype.push.apply(this),p=u.properties;return p.uMVMatrix=this.uMVMatrix.copy(),p.uPMatrix=this.uPMatrix.copy(),p._curCamera=this._curCamera,this._curCamera=this._curCamera.copy(),p.ambientLightColors=this.ambientLightColors.slice(),p.specularColors=this.specularColors.slice(),p.directionalLightDirections=this.directionalLightDirections.slice(),p.directionalLightDiffuseColors=this.directionalLightDiffuseColors.slice(),p.directionalLightSpecularColors=this.directionalLightSpecularColors.slice(),p.pointLightPositions=this.pointLightPositions.slice(),p.pointLightDiffuseColors=this.pointLightDiffuseColors.slice(),p.pointLightSpecularColors=this.pointLightSpecularColors.slice(),p.spotLightPositions=this.spotLightPositions.slice(),p.spotLightDirections=this.spotLightDirections.slice(),p.spotLightDiffuseColors=this.spotLightDiffuseColors.slice(),p.spotLightSpecularColors=this.spotLightSpecularColors.slice(),p.spotLightAngle=this.spotLightAngle.slice(),p.spotLightConc=this.spotLightConc.slice(),p.userFillShader=this.userFillShader,p.userStrokeShader=this.userStrokeShader,p.userPointShader=this.userPointShader,p.pointSize=this.pointSize,p.curStrokeWeight=this.curStrokeWeight,p.curStrokeColor=this.curStrokeColor,p.curFillColor=this.curFillColor,p.curAmbientColor=this.curAmbientColor,p.curSpecularColor=this.curSpecularColor,p.curEmissiveColor=this.curEmissiveColor,p._useSpecularMaterial=this._useSpecularMaterial,p._useEmissiveMaterial=this._useEmissiveMaterial,p._useShininess=this._useShininess,p.constantAttenuation=this.constantAttenuation,p.linearAttenuation=this.linearAttenuation,p.quadraticAttenuation=this.quadraticAttenuation,p._enableLighting=this._enableLighting,p._useNormalMaterial=this._useNormalMaterial,p._tex=this._tex,p.drawMode=this.drawMode,p._currentNormal=this._currentNormal,p.curBlendMode=this.curBlendMode,u},n.default.RendererGL.prototype.resetMatrix=function(){return this.uMVMatrix=n.default.Matrix.identity(this._pInst),this},n.default.RendererGL.prototype._getImmediateStrokeShader=function(){var u=this.userStrokeShader;return u&&u.isStrokeShader()?u:this._getLineShader()},n.default.RendererGL.prototype._getRetainedStrokeShader=n.default.RendererGL.prototype._getImmediateStrokeShader,n.default.RendererGL.prototype._getImmediateFillShader=function(){var u=this.userFillShader;if(this._useNormalMaterial&&(!u||!u.isNormalShader()))return this._getNormalShader();if(this._enableLighting){if(!u||!u.isLightShader())return this._getLightShader()}else if(this._tex){if(!u||!u.isTextureShader())return this._getLightShader()}else if(!u)return this._getImmediateModeShader();return u},n.default.RendererGL.prototype._getRetainedFillShader=function(){if(this._useNormalMaterial)return this._getNormalShader();var u=this.userFillShader;if(this._enableLighting){if(!u||!u.isLightShader())return this._getLightShader()}else if(this._tex){if(!u||!u.isTextureShader())return this._getLightShader()}else if(!u)return this._getColorShader();return u},n.default.RendererGL.prototype._getImmediatePointShader=function(){var u=this.userPointShader;return u&&u.isPointShader()?u:this._getPointShader()},n.default.RendererGL.prototype._getRetainedLineShader=n.default.RendererGL.prototype._getImmediateLineShader,n.default.RendererGL.prototype._getLightShader=function(){return this._defaultLightShader||(this._pInst._glAttributes.perPixelLighting?this._defaultLightShader=new n.default.Shader(this,t.phongVert,t.phongFrag):this._defaultLightShader=new n.default.Shader(this,t.lightVert,t.lightTextureFrag)),this._defaultLightShader},n.default.RendererGL.prototype._getImmediateModeShader=function(){return this._defaultImmediateModeShader||(this._defaultImmediateModeShader=new n.default.Shader(this,t.immediateVert,t.vertexColorFrag)),this._defaultImmediateModeShader},n.default.RendererGL.prototype._getNormalShader=function(){return this._defaultNormalShader||(this._defaultNormalShader=new n.default.Shader(this,t.normalVert,t.normalFrag)),this._defaultNormalShader},n.default.RendererGL.prototype._getColorShader=function(){return this._defaultColorShader||(this._defaultColorShader=new n.default.Shader(this,t.normalVert,t.basicFrag)),this._defaultColorShader},n.default.RendererGL.prototype._getPointShader=function(){return this._defaultPointShader||(this._defaultPointShader=new n.default.Shader(this,t.pointVert,t.pointFrag)),this._defaultPointShader},n.default.RendererGL.prototype._getLineShader=function(){return this._defaultLineShader||(this._defaultLineShader=new n.default.Shader(this,t.lineVert,t.lineFrag)),this._defaultLineShader},n.default.RendererGL.prototype._getFontShader=function(){return this._defaultFontShader||(this.GL.getExtension("OES_standard_derivatives"),this._defaultFontShader=new n.default.Shader(this,t.fontVert,t.fontFrag)),this._defaultFontShader},n.default.RendererGL.prototype._getEmptyTexture=function(){var u;return this._emptyTexture||((u=new n.default.Image(1,1)).set(0,0,255),this._emptyTexture=new n.default.Texture(this,u)),this._emptyTexture},n.default.RendererGL.prototype.getTexture=function(u){var p=this.textures,m=!0,b=!1,x=void 0;try{for(var w,T=p[Symbol.iterator]();!(m=(w=T.next()).done);m=!0){var M=w.value;if(M.src===u)return M}}catch(O){b=!0,x=O}finally{try{m||T.return==null||T.return()}finally{if(b)throw x}}return b=new n.default.Texture(this,u),p.push(b),b},n.default.RendererGL.prototype._setStrokeUniforms=function(u){u.bindShader(),u.setUniform("uMaterialColor",this.curStrokeColor),u.setUniform("uStrokeWeight",this.curStrokeWeight)},n.default.RendererGL.prototype._setFillUniforms=function(u){u.bindShader(),u.setUniform("uMaterialColor",this.curFillColor),u.setUniform("isTexture",!!this._tex),this._tex&&u.setUniform("uSampler",this._tex),u.setUniform("uTint",this._tint),u.setUniform("uAmbientMatColor",this.curAmbientColor),u.setUniform("uSpecularMatColor",this.curSpecularColor),u.setUniform("uEmissiveMatColor",this.curEmissiveColor),u.setUniform("uSpecular",this._useSpecularMaterial),u.setUniform("uEmissive",this._useEmissiveMaterial),u.setUniform("uShininess",this._useShininess),u.setUniform("uUseLighting",this._enableLighting);var p=this.pointLightDiffuseColors.length/3,p=(u.setUniform("uPointLightCount",p),u.setUniform("uPointLightLocation",this.pointLightPositions),u.setUniform("uPointLightDiffuseColors",this.pointLightDiffuseColors),u.setUniform("uPointLightSpecularColors",this.pointLightSpecularColors),this.directionalLightDiffuseColors.length/3),p=(u.setUniform("uDirectionalLightCount",p),u.setUniform("uLightingDirection",this.directionalLightDirections),u.setUniform("uDirectionalDiffuseColors",this.directionalLightDiffuseColors),u.setUniform("uDirectionalSpecularColors",this.directionalLightSpecularColors),this.ambientLightColors.length/3),p=(u.setUniform("uAmbientLightCount",p),u.setUniform("uAmbientColor",this.ambientLightColors),this.spotLightDiffuseColors.length/3);u.setUniform("uSpotLightCount",p),u.setUniform("uSpotLightAngle",this.spotLightAngle),u.setUniform("uSpotLightConc",this.spotLightConc),u.setUniform("uSpotLightDiffuseColors",this.spotLightDiffuseColors),u.setUniform("uSpotLightSpecularColors",this.spotLightSpecularColors),u.setUniform("uSpotLightLocation",this.spotLightPositions),u.setUniform("uSpotLightDirection",this.spotLightDirections),u.setUniform("uConstantAttenuation",this.constantAttenuation),u.setUniform("uLinearAttenuation",this.linearAttenuation),u.setUniform("uQuadraticAttenuation",this.quadraticAttenuation),u.bindTextures()},n.default.RendererGL.prototype._setPointUniforms=function(u){u.bindShader(),u.setUniform("uMaterialColor",this.curStrokeColor),u.setUniform("uPointSize",this.pointSize*this._pInst._pixelDensity)},n.default.RendererGL.prototype._bindBuffer=function(u,p,m,b,x){p=p||this.GL.ARRAY_BUFFER,this.GL.bindBuffer(p,u),m!==void 0&&(u=new(b||Float32Array)(m),this.GL.bufferData(p,u,x||this.GL.STATIC_DRAW))},n.default.RendererGL.prototype._arraysEqual=function(u,p){var m=u.length;if(m!==p.length)return!1;for(var b=0;b>7,127&J,V>>7,127&V);for(var G=0;G>7,127&te,0,0)}}return{cellImageInfo:be,dimOffset:Me,dimImageInfo:ze}}}}var i=Math.sqrt(3);a.default.RendererGL.prototype._renderText=function(u,p,m,b,x){if(this._textFont&&typeof this._textFont!="string"){if(!(x<=b)&&this._doFill){if(this._isOpenType()){u.push();var x=this._doStroke,w=this.drawMode,T=(this._doStroke=!1,this.drawMode=c.TEXTURE,this._textFont.font),M=(M=this._textFont._fontInfo)||(this._textFont._fontInfo=new t(T)),m=this._textFont._handleAlignment(this,p,m,b),b=this._textSize/T.unitsPerEm,O=(this.translate(m.x,m.y,0),this.scale(b,b,1),this.GL),m=!this._defaultFontShader,L=this._getFontShader(),R=(L.init(),L.bindShader(),m&&(L.setUniform("uGridImageSize",[64,64]),L.setUniform("uCellsImageSize",[64,64]),L.setUniform("uStrokeImageSize",[64,64]),L.setUniform("uGridSize",[9,9])),this._applyColorBlend(this.curFillColor),this.retainedMode.geometry.glyph),A=(R||((b=this._textGeom=new a.default.Geometry(1,1,function(){for(var ie=0;ie<=1;ie++)for(var de=0;de<=1;de++)this.vertices.push(new a.default.Vector(de,ie,0)),this.uvs.push(de,ie)})).computeFaces().computeNormals(),R=this.createBuffers("glyph",b)),!0),m=!1,b=void 0;try{for(var N,U=this.retainedMode.buffers.text[Symbol.iterator]();!(A=(N=U.next()).done);A=!0)N.value._prepareBuffer(R,L)}catch(ie){m=!0,b=ie}finally{try{A||U.return==null||U.return()}finally{if(m)throw b}}this._bindBuffer(R.indexBuffer,O.ELEMENT_ARRAY_BUFFER),L.setUniform("uMaterialColor",this.curFillColor);try{var B=0,W=null,Z=T.stringToGlyphs(p),q=!0,$=!1,z=void 0;try{for(var X,Q=Z[Symbol.iterator]();!(q=(X=Q.next()).done);q=!0){var se,C,P=X.value,F=(W&&(B+=T.getKerningValue(W,P)),M.getGlyphInfo(P));F.uGlyphRect&&(se=F.rowInfo,C=F.colInfo,L.setUniform("uSamplerStrokes",F.strokeImageInfo.imageData),L.setUniform("uSamplerRowStrokes",se.cellImageInfo.imageData),L.setUniform("uSamplerRows",se.dimImageInfo.imageData),L.setUniform("uSamplerColStrokes",C.cellImageInfo.imageData),L.setUniform("uSamplerCols",C.dimImageInfo.imageData),L.setUniform("uGridOffset",F.uGridOffset),L.setUniform("uGlyphRect",F.uGlyphRect),L.setUniform("uGlyphOffset",B),L.bindTextures(),O.drawElements(O.TRIANGLES,6,this.GL.UNSIGNED_SHORT,0)),B+=P.advanceWidth,W=P}}catch(ie){$=!0,z=ie}finally{try{q||Q.return==null||Q.return()}finally{if($)throw z}}}finally{L.unbindShader(),this._doStroke=x,this.drawMode=w,u.pop()}}else console.log("WEBGL: only Opentype (.otf) and Truetype (.ttf) fonts are supported");return u}}else console.log("WEBGL: you must load and set a font before drawing text. See `loadFont` and `textFont` for more details.")}},{"../core/constants":256,"../core/main":267,"./p5.RendererGL.Retained":320,"./p5.Shader":322,"core-js/modules/es.array.iterator":158,"core-js/modules/es.object.get-own-property-descriptor":173,"core-js/modules/es.object.to-string":177,"core-js/modules/es.regexp.exec":181,"core-js/modules/es.string.iterator":186,"core-js/modules/es.string.split":191,"core-js/modules/es.string.sub":192,"core-js/modules/es.symbol":196,"core-js/modules/es.symbol.description":194,"core-js/modules/es.symbol.iterator":195,"core-js/modules/es.weak-map":228,"core-js/modules/web.dom-collections.iterator":230}]},{},[251])(251)})})(Ai);const ga=hu(Ai.exports);function as({children:h}){const y=Xt.exports.useRef(null);return Xt.exports.useEffect(()=>{const E=new ga(S=>{let v,l;S.preload=()=>{v=S.loadFont("https://raw.githubusercontent.com/google/fonts/main/ofl/poppins/Poppins-Bold.ttf")},S.setup=()=>{let s=parseInt(getComputedStyle(y.current).fontSize.split("px")[0]),n=Math.min(10*16,window.innerWidth*.08);S.createCanvas(1e3,250).parent(y.current),l=v.textToPoints(h,n,S.height/2+s/3,s),l=l.map(a=>new Vu(ga,S,a.x,a.y))},S.draw=()=>{S.clear();for(let s of l)s.doBehaviours(),s.update(),s.draw()},S.touchEnded=()=>{S.mouseX=0,S.mouseY=0}}),e=window.addEventListener("resize",()=>{E.setup()});return()=>{window.removeEventListener("resize",e),E.remove()}}),nt("div",{className:"p5-sketch",ref:y})}const Nn={email:"friedman.josh03@gmail.com",linkedin:"https://www.linkedin.com/in/joshwfriedman/",github:"https://github.com/Jwiggiff",codepen:"https://codepen.io/jwiggiff"};var tn={};/** * @license React * react-dom-server-legacy.browser.production.min.js * @@ -742,13 +742,13 @@ void main(){ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ii=Xt.exports;function ut(h){for(var y="https://reactjs.org/docs/error-decoder.html?invariant="+h,E=1;E