8bitworkshop/gen/script-UI6C7LLU.js

84 lines
263 KiB
JavaScript

import{g as ci}from"./chunk-VD7T557T.js";import"./chunk-SXEVG2WS.js";import"./chunk-5SHCNQ2O.js";import"./chunk-AT7M4NIM.js";import"./chunk-TV4YGKI4.js";import{A as jt,G as An,H as ko,J as Eo,U as So,g as yr,s as fi}from"./chunk-Z5CU44VP.js";import{a as qt,c as hi,d as Jd,e as wo}from"./chunk-5XVCUSSZ.js";var Mu=hi(Ou=>{"use strict";(function(e){"use strict";if(e.TextEncoder&&e.TextDecoder)return!1;function t(i="utf-8"){if(i!=="utf-8")throw new RangeError(`Failed to construct 'TextEncoder': The encoding label provided ('${i}') is invalid.`)}Object.defineProperty(t.prototype,"encoding",{value:"utf-8"}),t.prototype.encode=function(i,n={stream:!1}){if(n.stream)throw new Error("Failed to encode: the 'stream' option is unsupported.");let a=0,o=i.length,f=[],d=0,l=Math.max(32,o+(o>>1)+7),h=new Uint8Array(l>>3<<3);for(;a<o;){let y=i.charCodeAt(a++);if(y>=55296&&y<=56319){if(a<o){let x=i.charCodeAt(a);(x&64512)==56320&&(++a,y=((y&1023)<<10)+(x&1023)+65536)}if(y>=55296&&y<=56319)continue}if(d+4>h.length){l+=8,l*=1+a/i.length*2,l=l>>3<<3;let x=new Uint8Array(l);x.set(h),h=x}if((y&4294967168)==0){h[d++]=y;continue}else if((y&4294965248)==0)h[d++]=y>>6&31|192;else if((y&4294901760)==0)h[d++]=y>>12&15|224,h[d++]=y>>6&63|128;else if((y&4292870144)==0)h[d++]=y>>18&7|240,h[d++]=y>>12&63|128,h[d++]=y>>6&63|128;else continue;h[d++]=y&63|128}return h.slice(0,d)};function r(i="utf-8",n={fatal:!1}){if(i!=="utf-8")throw new RangeError(`Failed to construct 'TextDecoder': The encoding label provided ('${i}') is invalid.`);if(n.fatal)throw new Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.")}Object.defineProperty(r.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(r.prototype,"fatal",{value:!1}),Object.defineProperty(r.prototype,"ignoreBOM",{value:!1}),r.prototype.decode=function(i,n={stream:!1}){if(n.stream)throw new Error("Failed to decode: the 'stream' option is unsupported.");let a=new Uint8Array(i),o=0,f=a.length,d=[];for(;o<f;){let l=a[o++];if(l===0)break;if((l&128)==0)d.push(l);else if((l&224)==192){let h=a[o++]&63;d.push((l&31)<<6|h)}else if((l&240)==224){let h=a[o++]&63,y=a[o++]&63;d.push((l&31)<<12|h<<6|y)}else if((l&248)==240){let h=a[o++]&63,y=a[o++]&63,x=a[o++]&63,v=(l&7)<<18|h<<12|y<<6|x;v>65535&&(v-=65536,d.push(v>>>10&1023|55296),v=56320|v&1023),d.push(v)}}return String.fromCharCode.apply(null,d)},e.TextEncoder=t,e.TextDecoder=r})(typeof window!="undefined"?window:typeof self!="undefined"?self:Ou)});var hh=hi((Oa,Ma)=>{(function(e,t){typeof Oa=="object"&&typeof Ma!="undefined"?Ma.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self,e.chroma=t())})(Oa,function(){"use strict";for(var e=function(s,u,c){return u===void 0&&(u=0),c===void 0&&(c=1),s<u?u:s>c?c:s},t=e,r=function(s){s._clipped=!1,s._unclipped=s.slice(0);for(var u=0;u<=3;u++)u<3?((s[u]<0||s[u]>255)&&(s._clipped=!0),s[u]=t(s[u],0,255)):u===3&&(s[u]=t(s[u],0,1));return s},i={},n=0,a=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];n<a.length;n+=1){var o=a[n];i["[object "+o+"]"]=o.toLowerCase()}var f=function(s){return i[Object.prototype.toString.call(s)]||"object"},d=f,l=function(s,u){return u===void 0&&(u=null),s.length>=3?Array.prototype.slice.call(s):d(s[0])=="object"&&u?u.split("").filter(function(c){return s[0][c]!==void 0}).map(function(c){return s[0][c]}):s[0]},h=f,y=function(s){if(s.length<2)return null;var u=s.length-1;return h(s[u])=="string"?s[u].toLowerCase():null},x=Math.PI,v={clip_rgb:r,limit:e,type:f,unpack:l,last:y,PI:x,TWOPI:x*2,PITHIRD:x/3,DEG2RAD:x/180,RAD2DEG:180/x},E={format:{},autodetect:[]},D=v.last,R=v.clip_rgb,T=v.type,L=E,V=function(){for(var u=[],c=arguments.length;c--;)u[c]=arguments[c];var g=this;if(T(u[0])==="object"&&u[0].constructor&&u[0].constructor===this.constructor)return u[0];var m=D(u),_=!1;if(!m){_=!0,L.sorted||(L.autodetect=L.autodetect.sort(function(A,P){return P.p-A.p}),L.sorted=!0);for(var b=0,w=L.autodetect;b<w.length;b+=1){var k=w[b];if(m=k.test.apply(k,u),m)break}}if(L.format[m]){var C=L.format[m].apply(null,_?u:u.slice(0,-1));g._rgb=R(C)}else throw new Error("unknown format: "+u);g._rgb.length===3&&g._rgb.push(1)};V.prototype.toString=function(){return T(this.hex)=="function"?this.hex():"["+this._rgb.join(",")+"]"};var S=V,Z=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];return new(Function.prototype.bind.apply(Z.Color,[null].concat(s)))};Z.Color=S,Z.version="2.4.2";var z=Z,M=v.unpack,G=Math.max,W=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];var c=M(s,"rgb"),g=c[0],m=c[1],_=c[2];g=g/255,m=m/255,_=_/255;var b=1-G(g,G(m,_)),w=b<1?1/(1-b):0,k=(1-g-b)*w,C=(1-m-b)*w,A=(1-_-b)*w;return[k,C,A,b]},H=W,Q=v.unpack,et=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];s=Q(s,"cmyk");var c=s[0],g=s[1],m=s[2],_=s[3],b=s.length>4?s[4]:1;return _===1?[0,0,0,b]:[c>=1?0:255*(1-c)*(1-_),g>=1?0:255*(1-g)*(1-_),m>=1?0:255*(1-m)*(1-_),b]},ei=et,Mt=z,Et=S,Wa=E,Oh=v.unpack,Mh=v.type,Dh=H;Et.prototype.cmyk=function(){return Dh(this._rgb)},Mt.cmyk=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];return new(Function.prototype.bind.apply(Et,[null].concat(s,["cmyk"])))},Wa.format.cmyk=ei,Wa.autodetect.push({p:2,test:function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];if(s=Oh(s,"cmyk"),Mh(s)==="array"&&s.length===4)return"cmyk"}});var Fh=v.unpack,Uh=v.last,Ki=function(s){return Math.round(s*100)/100},Bh=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];var c=Fh(s,"hsla"),g=Uh(s)||"lsa";return c[0]=Ki(c[0]||0),c[1]=Ki(c[1]*100)+"%",c[2]=Ki(c[2]*100)+"%",g==="hsla"||c.length>3&&c[3]<1?(c[3]=c.length>3?c[3]:1,g="hsla"):c.length=3,g+"("+c.join(",")+")"},Vh=Bh,zh=v.unpack,Hh=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];s=zh(s,"rgba");var c=s[0],g=s[1],m=s[2];c/=255,g/=255,m/=255;var _=Math.min(c,g,m),b=Math.max(c,g,m),w=(b+_)/2,k,C;return b===_?(k=0,C=Number.NaN):k=w<.5?(b-_)/(b+_):(b-_)/(2-b-_),c==b?C=(g-m)/(b-_):g==b?C=2+(m-c)/(b-_):m==b&&(C=4+(c-g)/(b-_)),C*=60,C<0&&(C+=360),s.length>3&&s[3]!==void 0?[C,k,w,s[3]]:[C,k,w]},qa=Hh,Gh=v.unpack,Zh=v.last,Wh=Vh,qh=qa,Xi=Math.round,jh=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];var c=Gh(s,"rgba"),g=Zh(s)||"rgb";return g.substr(0,3)=="hsl"?Wh(qh(c),g):(c[0]=Xi(c[0]),c[1]=Xi(c[1]),c[2]=Xi(c[2]),(g==="rgba"||c.length>3&&c[3]<1)&&(c[3]=c.length>3?c[3]:1,g="rgba"),g+"("+c.slice(0,g==="rgb"?3:4).join(",")+")")},Yh=jh,Kh=v.unpack,Qi=Math.round,Xh=function(){for(var s,u=[],c=arguments.length;c--;)u[c]=arguments[c];u=Kh(u,"hsl");var g=u[0],m=u[1],_=u[2],b,w,k;if(m===0)b=w=k=_*255;else{var C=[0,0,0],A=[0,0,0],P=_<.5?_*(1+m):_+m-_*m,I=2*_-P,O=g/360;C[0]=O+1/3,C[1]=O,C[2]=O-1/3;for(var $=0;$<3;$++)C[$]<0&&(C[$]+=1),C[$]>1&&(C[$]-=1),6*C[$]<1?A[$]=I+(P-I)*6*C[$]:2*C[$]<1?A[$]=P:3*C[$]<2?A[$]=I+(P-I)*(2/3-C[$])*6:A[$]=I;s=[Qi(A[0]*255),Qi(A[1]*255),Qi(A[2]*255)],b=s[0],w=s[1],k=s[2]}return u.length>3?[b,w,k,u[3]]:[b,w,k,1]},ja=Xh,Ya=ja,Ka=E,Xa=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,Qa=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,Ja=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,es=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,ts=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,rs=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,is=Math.round,ns=function(s){s=s.toLowerCase().trim();var u;if(Ka.format.named)try{return Ka.format.named(s)}catch($){}if(u=s.match(Xa)){for(var c=u.slice(1,4),g=0;g<3;g++)c[g]=+c[g];return c[3]=1,c}if(u=s.match(Qa)){for(var m=u.slice(1,5),_=0;_<4;_++)m[_]=+m[_];return m}if(u=s.match(Ja)){for(var b=u.slice(1,4),w=0;w<3;w++)b[w]=is(b[w]*2.55);return b[3]=1,b}if(u=s.match(es)){for(var k=u.slice(1,5),C=0;C<3;C++)k[C]=is(k[C]*2.55);return k[3]=+k[3],k}if(u=s.match(ts)){var A=u.slice(1,4);A[1]*=.01,A[2]*=.01;var P=Ya(A);return P[3]=1,P}if(u=s.match(rs)){var I=u.slice(1,4);I[1]*=.01,I[2]*=.01;var O=Ya(I);return O[3]=+u[4],O}};ns.test=function(s){return Xa.test(s)||Qa.test(s)||Ja.test(s)||es.test(s)||ts.test(s)||rs.test(s)};var Qh=ns,Jh=z,as=S,ss=E,ef=v.type,tf=Yh,os=Qh;as.prototype.css=function(s){return tf(this._rgb,s)},Jh.css=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];return new(Function.prototype.bind.apply(as,[null].concat(s,["css"])))},ss.format.css=os,ss.autodetect.push({p:5,test:function(s){for(var u=[],c=arguments.length-1;c-- >0;)u[c]=arguments[c+1];if(!u.length&&ef(s)==="string"&&os.test(s))return"css"}});var us=S,rf=z,nf=E,af=v.unpack;nf.format.gl=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];var c=af(s,"rgba");return c[0]*=255,c[1]*=255,c[2]*=255,c},rf.gl=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];return new(Function.prototype.bind.apply(us,[null].concat(s,["gl"])))},us.prototype.gl=function(){var s=this._rgb;return[s[0]/255,s[1]/255,s[2]/255,s[3]]};var sf=v.unpack,of=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];var c=sf(s,"rgb"),g=c[0],m=c[1],_=c[2],b=Math.min(g,m,_),w=Math.max(g,m,_),k=w-b,C=k*100/255,A=b/(255-k)*100,P;return k===0?P=Number.NaN:(g===w&&(P=(m-_)/k),m===w&&(P=2+(_-g)/k),_===w&&(P=4+(g-m)/k),P*=60,P<0&&(P+=360)),[P,C,A]},uf=of,lf=v.unpack,hf=Math.floor,ff=function(){for(var s,u,c,g,m,_,b=[],w=arguments.length;w--;)b[w]=arguments[w];b=lf(b,"hcg");var k=b[0],C=b[1],A=b[2],P,I,O;A=A*255;var $=C*255;if(C===0)P=I=O=A;else{k===360&&(k=0),k>360&&(k-=360),k<0&&(k+=360),k/=60;var j=hf(k),J=k-j,ne=A*(1-C),oe=ne+$*(1-J),we=ne+$*J,xe=ne+$;switch(j){case 0:s=[xe,we,ne],P=s[0],I=s[1],O=s[2];break;case 1:u=[oe,xe,ne],P=u[0],I=u[1],O=u[2];break;case 2:c=[ne,xe,we],P=c[0],I=c[1],O=c[2];break;case 3:g=[ne,oe,xe],P=g[0],I=g[1],O=g[2];break;case 4:m=[we,ne,xe],P=m[0],I=m[1],O=m[2];break;case 5:_=[xe,ne,oe],P=_[0],I=_[1],O=_[2];break}}return[P,I,O,b.length>3?b[3]:1]},cf=ff,pf=v.unpack,df=v.type,vf=z,ls=S,hs=E,gf=uf;ls.prototype.hcg=function(){return gf(this._rgb)},vf.hcg=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];return new(Function.prototype.bind.apply(ls,[null].concat(s,["hcg"])))},hs.format.hcg=cf,hs.autodetect.push({p:1,test:function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];if(s=pf(s,"hcg"),df(s)==="array"&&s.length===3)return"hcg"}});var bf=v.unpack,mf=v.last,ti=Math.round,_f=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];var c=bf(s,"rgba"),g=c[0],m=c[1],_=c[2],b=c[3],w=mf(s)||"auto";b===void 0&&(b=1),w==="auto"&&(w=b<1?"rgba":"rgb"),g=ti(g),m=ti(m),_=ti(_);var k=g<<16|m<<8|_,C="000000"+k.toString(16);C=C.substr(C.length-6);var A="0"+ti(b*255).toString(16);switch(A=A.substr(A.length-2),w.toLowerCase()){case"rgba":return"#"+C+A;case"argb":return"#"+A+C;default:return"#"+C}},fs=_f,xf=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,yf=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,wf=function(s){if(s.match(xf)){(s.length===4||s.length===7)&&(s=s.substr(1)),s.length===3&&(s=s.split(""),s=s[0]+s[0]+s[1]+s[1]+s[2]+s[2]);var u=parseInt(s,16),c=u>>16,g=u>>8&255,m=u&255;return[c,g,m,1]}if(s.match(yf)){(s.length===5||s.length===9)&&(s=s.substr(1)),s.length===4&&(s=s.split(""),s=s[0]+s[0]+s[1]+s[1]+s[2]+s[2]+s[3]+s[3]);var _=parseInt(s,16),b=_>>24&255,w=_>>16&255,k=_>>8&255,C=Math.round((_&255)/255*100)/100;return[b,w,k,C]}throw new Error("unknown hex color: "+s)},cs=wf,kf=z,ps=S,Ef=v.type,ds=E,Sf=fs;ps.prototype.hex=function(s){return Sf(this._rgb,s)},kf.hex=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];return new(Function.prototype.bind.apply(ps,[null].concat(s,["hex"])))},ds.format.hex=cs,ds.autodetect.push({p:4,test:function(s){for(var u=[],c=arguments.length-1;c-- >0;)u[c]=arguments[c+1];if(!u.length&&Ef(s)==="string"&&[3,4,5,6,7,8,9].indexOf(s.length)>=0)return"hex"}});var Cf=v.unpack,vs=v.TWOPI,Af=Math.min,If=Math.sqrt,Nf=Math.acos,Tf=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];var c=Cf(s,"rgb"),g=c[0],m=c[1],_=c[2];g/=255,m/=255,_/=255;var b,w=Af(g,m,_),k=(g+m+_)/3,C=k>0?1-w/k:0;return C===0?b=NaN:(b=(g-m+(g-_))/2,b/=If((g-m)*(g-m)+(g-_)*(m-_)),b=Nf(b),_>m&&(b=vs-b),b/=vs),[b*360,C,k]},Rf=Tf,Pf=v.unpack,Ji=v.limit,Dt=v.TWOPI,en=v.PITHIRD,Ft=Math.cos,Lf=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];s=Pf(s,"hsi");var c=s[0],g=s[1],m=s[2],_,b,w;return isNaN(c)&&(c=0),isNaN(g)&&(g=0),c>360&&(c-=360),c<0&&(c+=360),c/=360,c<1/3?(w=(1-g)/3,_=(1+g*Ft(Dt*c)/Ft(en-Dt*c))/3,b=1-(w+_)):c<2/3?(c-=1/3,_=(1-g)/3,b=(1+g*Ft(Dt*c)/Ft(en-Dt*c))/3,w=1-(_+b)):(c-=2/3,b=(1-g)/3,w=(1+g*Ft(Dt*c)/Ft(en-Dt*c))/3,_=1-(b+w)),_=Ji(m*_*3),b=Ji(m*b*3),w=Ji(m*w*3),[_*255,b*255,w*255,s.length>3?s[3]:1]},$f=Lf,Of=v.unpack,Mf=v.type,Df=z,gs=S,bs=E,Ff=Rf;gs.prototype.hsi=function(){return Ff(this._rgb)},Df.hsi=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];return new(Function.prototype.bind.apply(gs,[null].concat(s,["hsi"])))},bs.format.hsi=$f,bs.autodetect.push({p:2,test:function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];if(s=Of(s,"hsi"),Mf(s)==="array"&&s.length===3)return"hsi"}});var Uf=v.unpack,Bf=v.type,Vf=z,ms=S,_s=E,zf=qa;ms.prototype.hsl=function(){return zf(this._rgb)},Vf.hsl=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];return new(Function.prototype.bind.apply(ms,[null].concat(s,["hsl"])))},_s.format.hsl=ja,_s.autodetect.push({p:2,test:function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];if(s=Uf(s,"hsl"),Bf(s)==="array"&&s.length===3)return"hsl"}});var Hf=v.unpack,Gf=Math.min,Zf=Math.max,Wf=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];s=Hf(s,"rgb");var c=s[0],g=s[1],m=s[2],_=Gf(c,g,m),b=Zf(c,g,m),w=b-_,k,C,A;return A=b/255,b===0?(k=Number.NaN,C=0):(C=w/b,c===b&&(k=(g-m)/w),g===b&&(k=2+(m-c)/w),m===b&&(k=4+(c-g)/w),k*=60,k<0&&(k+=360)),[k,C,A]},qf=Wf,jf=v.unpack,Yf=Math.floor,Kf=function(){for(var s,u,c,g,m,_,b=[],w=arguments.length;w--;)b[w]=arguments[w];b=jf(b,"hsv");var k=b[0],C=b[1],A=b[2],P,I,O;if(A*=255,C===0)P=I=O=A;else{k===360&&(k=0),k>360&&(k-=360),k<0&&(k+=360),k/=60;var $=Yf(k),j=k-$,J=A*(1-C),ne=A*(1-C*j),oe=A*(1-C*(1-j));switch($){case 0:s=[A,oe,J],P=s[0],I=s[1],O=s[2];break;case 1:u=[ne,A,J],P=u[0],I=u[1],O=u[2];break;case 2:c=[J,A,oe],P=c[0],I=c[1],O=c[2];break;case 3:g=[J,ne,A],P=g[0],I=g[1],O=g[2];break;case 4:m=[oe,J,A],P=m[0],I=m[1],O=m[2];break;case 5:_=[A,J,ne],P=_[0],I=_[1],O=_[2];break}}return[P,I,O,b.length>3?b[3]:1]},Xf=Kf,Qf=v.unpack,Jf=v.type,ec=z,xs=S,ys=E,tc=qf;xs.prototype.hsv=function(){return tc(this._rgb)},ec.hsv=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];return new(Function.prototype.bind.apply(xs,[null].concat(s,["hsv"])))},ys.format.hsv=Xf,ys.autodetect.push({p:2,test:function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];if(s=Qf(s,"hsv"),Jf(s)==="array"&&s.length===3)return"hsv"}});var ri={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},Ut=ri,rc=v.unpack,ws=Math.pow,ic=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];var c=rc(s,"rgb"),g=c[0],m=c[1],_=c[2],b=nc(g,m,_),w=b[0],k=b[1],C=b[2],A=116*k-16;return[A<0?0:A,500*(w-k),200*(k-C)]},tn=function(s){return(s/=255)<=.04045?s/12.92:ws((s+.055)/1.055,2.4)},rn=function(s){return s>Ut.t3?ws(s,1/3):s/Ut.t2+Ut.t0},nc=function(s,u,c){s=tn(s),u=tn(u),c=tn(c);var g=rn((.4124564*s+.3575761*u+.1804375*c)/Ut.Xn),m=rn((.2126729*s+.7151522*u+.072175*c)/Ut.Yn),_=rn((.0193339*s+.119192*u+.9503041*c)/Ut.Zn);return[g,m,_]},ks=ic,Bt=ri,ac=v.unpack,sc=Math.pow,oc=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];s=ac(s,"lab");var c=s[0],g=s[1],m=s[2],_,b,w,k,C,A;return b=(c+16)/116,_=isNaN(g)?b:b+g/500,w=isNaN(m)?b:b-m/200,b=Bt.Yn*an(b),_=Bt.Xn*an(_),w=Bt.Zn*an(w),k=nn(3.2404542*_-1.5371385*b-.4985314*w),C=nn(-.969266*_+1.8760108*b+.041556*w),A=nn(.0556434*_-.2040259*b+1.0572252*w),[k,C,A,s.length>3?s[3]:1]},nn=function(s){return 255*(s<=.00304?12.92*s:1.055*sc(s,1/2.4)-.055)},an=function(s){return s>Bt.t1?s*s*s:Bt.t2*(s-Bt.t0)},Es=oc,uc=v.unpack,lc=v.type,hc=z,Ss=S,Cs=E,fc=ks;Ss.prototype.lab=function(){return fc(this._rgb)},hc.lab=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];return new(Function.prototype.bind.apply(Ss,[null].concat(s,["lab"])))},Cs.format.lab=Es,Cs.autodetect.push({p:2,test:function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];if(s=uc(s,"lab"),lc(s)==="array"&&s.length===3)return"lab"}});var cc=v.unpack,pc=v.RAD2DEG,dc=Math.sqrt,vc=Math.atan2,gc=Math.round,bc=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];var c=cc(s,"lab"),g=c[0],m=c[1],_=c[2],b=dc(m*m+_*_),w=(vc(_,m)*pc+360)%360;return gc(b*1e4)===0&&(w=Number.NaN),[g,b,w]},As=bc,mc=v.unpack,_c=ks,xc=As,yc=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];var c=mc(s,"rgb"),g=c[0],m=c[1],_=c[2],b=_c(g,m,_),w=b[0],k=b[1],C=b[2];return xc(w,k,C)},wc=yc,kc=v.unpack,Ec=v.DEG2RAD,Sc=Math.sin,Cc=Math.cos,Ac=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];var c=kc(s,"lch"),g=c[0],m=c[1],_=c[2];return isNaN(_)&&(_=0),_=_*Ec,[g,Cc(_)*m,Sc(_)*m]},Is=Ac,Ic=v.unpack,Nc=Is,Tc=Es,Rc=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];s=Ic(s,"lch");var c=s[0],g=s[1],m=s[2],_=Nc(c,g,m),b=_[0],w=_[1],k=_[2],C=Tc(b,w,k),A=C[0],P=C[1],I=C[2];return[A,P,I,s.length>3?s[3]:1]},Ns=Rc,Pc=v.unpack,Lc=Ns,$c=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];var c=Pc(s,"hcl").reverse();return Lc.apply(void 0,c)},Oc=$c,Mc=v.unpack,Dc=v.type,Ts=z,ii=S,sn=E,Rs=wc;ii.prototype.lch=function(){return Rs(this._rgb)},ii.prototype.hcl=function(){return Rs(this._rgb).reverse()},Ts.lch=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];return new(Function.prototype.bind.apply(ii,[null].concat(s,["lch"])))},Ts.hcl=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];return new(Function.prototype.bind.apply(ii,[null].concat(s,["hcl"])))},sn.format.lch=Ns,sn.format.hcl=Oc,["lch","hcl"].forEach(function(s){return sn.autodetect.push({p:2,test:function(){for(var u=[],c=arguments.length;c--;)u[c]=arguments[c];if(u=Mc(u,s),Dc(u)==="array"&&u.length===3)return s}})});var Fc={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",cornflower:"#6495ed",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",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",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",maroon2:"#7f0000",maroon3:"#b03060",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",purple2:"#7f007f",purple3:"#a020f0",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"},Ps=Fc,Uc=S,Ls=E,Bc=v.type,mr=Ps,Vc=cs,zc=fs;Uc.prototype.name=function(){for(var s=zc(this._rgb,"rgb"),u=0,c=Object.keys(mr);u<c.length;u+=1){var g=c[u];if(mr[g]===s)return g.toLowerCase()}return s},Ls.format.named=function(s){if(s=s.toLowerCase(),mr[s])return Vc(mr[s]);throw new Error("unknown color name: "+s)},Ls.autodetect.push({p:5,test:function(s){for(var u=[],c=arguments.length-1;c-- >0;)u[c]=arguments[c+1];if(!u.length&&Bc(s)==="string"&&mr[s.toLowerCase()])return"named"}});var Hc=v.unpack,Gc=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];var c=Hc(s,"rgb"),g=c[0],m=c[1],_=c[2];return(g<<16)+(m<<8)+_},Zc=Gc,Wc=v.type,qc=function(s){if(Wc(s)=="number"&&s>=0&&s<=16777215){var u=s>>16,c=s>>8&255,g=s&255;return[u,c,g,1]}throw new Error("unknown num color: "+s)},jc=qc,Yc=z,$s=S,Os=E,Kc=v.type,Xc=Zc;$s.prototype.num=function(){return Xc(this._rgb)},Yc.num=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];return new(Function.prototype.bind.apply($s,[null].concat(s,["num"])))},Os.format.num=jc,Os.autodetect.push({p:5,test:function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];if(s.length===1&&Kc(s[0])==="number"&&s[0]>=0&&s[0]<=16777215)return"num"}});var Qc=z,on=S,Ms=E,Ds=v.unpack,Fs=v.type,Us=Math.round;on.prototype.rgb=function(s){return s===void 0&&(s=!0),s===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Us)},on.prototype.rgba=function(s){return s===void 0&&(s=!0),this._rgb.slice(0,4).map(function(u,c){return c<3?s===!1?u:Us(u):u})},Qc.rgb=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];return new(Function.prototype.bind.apply(on,[null].concat(s,["rgb"])))},Ms.format.rgb=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];var c=Ds(s,"rgba");return c[3]===void 0&&(c[3]=1),c},Ms.autodetect.push({p:3,test:function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];if(s=Ds(s,"rgba"),Fs(s)==="array"&&(s.length===3||s.length===4&&Fs(s[3])=="number"&&s[3]>=0&&s[3]<=1))return"rgb"}});var ni=Math.log,Jc=function(s){var u=s/100,c,g,m;return u<66?(c=255,g=u<6?0:-155.25485562709179-.44596950469579133*(g=u-2)+104.49216199393888*ni(g),m=u<20?0:-254.76935184120902+.8274096064007395*(m=u-10)+115.67994401066147*ni(m)):(c=351.97690566805693+.114206453784165*(c=u-55)-40.25366309332127*ni(c),g=325.4494125711974+.07943456536662342*(g=u-50)-28.0852963507957*ni(g),m=255),[c,g,m,1]},Bs=Jc,ep=Bs,tp=v.unpack,rp=Math.round,ip=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];for(var c=tp(s,"rgb"),g=c[0],m=c[2],_=1e3,b=4e4,w=.4,k;b-_>w;){k=(b+_)*.5;var C=ep(k);C[2]/C[0]>=m/g?b=k:_=k}return rp(k)},np=ip,un=z,ai=S,ln=E,ap=np;ai.prototype.temp=ai.prototype.kelvin=ai.prototype.temperature=function(){return ap(this._rgb)},un.temp=un.kelvin=un.temperature=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];return new(Function.prototype.bind.apply(ai,[null].concat(s,["temp"])))},ln.format.temp=ln.format.kelvin=ln.format.temperature=Bs;var sp=v.unpack,hn=Math.cbrt,op=Math.pow,up=Math.sign,lp=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];var c=sp(s,"rgb"),g=c[0],m=c[1],_=c[2],b=[fn(g/255),fn(m/255),fn(_/255)],w=b[0],k=b[1],C=b[2],A=hn(.4122214708*w+.5363325363*k+.0514459929*C),P=hn(.2119034982*w+.6806995451*k+.1073969566*C),I=hn(.0883024619*w+.2817188376*k+.6299787005*C);return[.2104542553*A+.793617785*P-.0040720468*I,1.9779984951*A-2.428592205*P+.4505937099*I,.0259040371*A+.7827717662*P-.808675766*I]},Vs=lp;function fn(s){var u=Math.abs(s);return u<.04045?s/12.92:(up(s)||1)*op((u+.055)/1.055,2.4)}var hp=v.unpack,si=Math.pow,fp=Math.sign,cp=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];s=hp(s,"lab");var c=s[0],g=s[1],m=s[2],_=si(c+.3963377774*g+.2158037573*m,3),b=si(c-.1055613458*g-.0638541728*m,3),w=si(c-.0894841775*g-1.291485548*m,3);return[255*cn(4.0767416621*_-3.3077115913*b+.2309699292*w),255*cn(-1.2684380046*_+2.6097574011*b-.3413193965*w),255*cn(-.0041960863*_-.7034186147*b+1.707614701*w),s.length>3?s[3]:1]},zs=cp;function cn(s){var u=Math.abs(s);return u>.0031308?(fp(s)||1)*(1.055*si(u,1/2.4)-.055):s*12.92}var pp=v.unpack,dp=v.type,vp=z,Hs=S,Gs=E,gp=Vs;Hs.prototype.oklab=function(){return gp(this._rgb)},vp.oklab=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];return new(Function.prototype.bind.apply(Hs,[null].concat(s,["oklab"])))},Gs.format.oklab=zs,Gs.autodetect.push({p:3,test:function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];if(s=pp(s,"oklab"),dp(s)==="array"&&s.length===3)return"oklab"}});var bp=v.unpack,mp=Vs,_p=As,xp=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];var c=bp(s,"rgb"),g=c[0],m=c[1],_=c[2],b=mp(g,m,_),w=b[0],k=b[1],C=b[2];return _p(w,k,C)},yp=xp,wp=v.unpack,kp=Is,Ep=zs,Sp=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];s=wp(s,"lch");var c=s[0],g=s[1],m=s[2],_=kp(c,g,m),b=_[0],w=_[1],k=_[2],C=Ep(b,w,k),A=C[0],P=C[1],I=C[2];return[A,P,I,s.length>3?s[3]:1]},Cp=Sp,Ap=v.unpack,Ip=v.type,Np=z,Zs=S,Ws=E,Tp=yp;Zs.prototype.oklch=function(){return Tp(this._rgb)},Np.oklch=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];return new(Function.prototype.bind.apply(Zs,[null].concat(s,["oklch"])))},Ws.format.oklch=Cp,Ws.autodetect.push({p:3,test:function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];if(s=Ap(s,"oklch"),Ip(s)==="array"&&s.length===3)return"oklch"}});var qs=S,Rp=v.type;qs.prototype.alpha=function(s,u){return u===void 0&&(u=!1),s!==void 0&&Rp(s)==="number"?u?(this._rgb[3]=s,this):new qs([this._rgb[0],this._rgb[1],this._rgb[2],s],"rgb"):this._rgb[3]};var Pp=S;Pp.prototype.clipped=function(){return this._rgb._clipped||!1};var St=S,Lp=ri;St.prototype.darken=function(s){s===void 0&&(s=1);var u=this,c=u.lab();return c[0]-=Lp.Kn*s,new St(c,"lab").alpha(u.alpha(),!0)},St.prototype.brighten=function(s){return s===void 0&&(s=1),this.darken(-s)},St.prototype.darker=St.prototype.darken,St.prototype.brighter=St.prototype.brighten;var $p=S;$p.prototype.get=function(s){var u=s.split("."),c=u[0],g=u[1],m=this[c]();if(g){var _=c.indexOf(g)-(c.substr(0,2)==="ok"?2:0);if(_>-1)return m[_];throw new Error("unknown channel "+g+" in mode "+c)}else return m};var Vt=S,Op=v.type,Mp=Math.pow,Dp=1e-7,Fp=20;Vt.prototype.luminance=function(s){if(s!==void 0&&Op(s)==="number"){if(s===0)return new Vt([0,0,0,this._rgb[3]],"rgb");if(s===1)return new Vt([255,255,255,this._rgb[3]],"rgb");var u=this.luminance(),c="rgb",g=Fp,m=function(b,w){var k=b.interpolate(w,.5,c),C=k.luminance();return Math.abs(s-C)<Dp||!g--?k:C>s?m(b,k):m(k,w)},_=(u>s?m(new Vt([0,0,0]),this):m(this,new Vt([255,255,255]))).rgb();return new Vt(_.concat([this._rgb[3]]))}return Up.apply(void 0,this._rgb.slice(0,3))};var Up=function(s,u,c){return s=pn(s),u=pn(u),c=pn(c),.2126*s+.7152*u+.0722*c},pn=function(s){return s/=255,s<=.03928?s/12.92:Mp((s+.055)/1.055,2.4)},Le={},js=S,Ys=v.type,oi=Le,Ks=function(s,u,c){c===void 0&&(c=.5);for(var g=[],m=arguments.length-3;m-- >0;)g[m]=arguments[m+3];var _=g[0]||"lrgb";if(!oi[_]&&!g.length&&(_=Object.keys(oi)[0]),!oi[_])throw new Error("interpolation mode "+_+" is not defined");return Ys(s)!=="object"&&(s=new js(s)),Ys(u)!=="object"&&(u=new js(u)),oi[_](s,u,c).alpha(s.alpha()+c*(u.alpha()-s.alpha()))},Xs=S,Bp=Ks;Xs.prototype.mix=Xs.prototype.interpolate=function(s,u){u===void 0&&(u=.5);for(var c=[],g=arguments.length-2;g-- >0;)c[g]=arguments[g+2];return Bp.apply(void 0,[this,s,u].concat(c))};var Qs=S;Qs.prototype.premultiply=function(s){s===void 0&&(s=!1);var u=this._rgb,c=u[3];return s?(this._rgb=[u[0]*c,u[1]*c,u[2]*c,c],this):new Qs([u[0]*c,u[1]*c,u[2]*c,c],"rgb")};var dn=S,Vp=ri;dn.prototype.saturate=function(s){s===void 0&&(s=1);var u=this,c=u.lch();return c[1]+=Vp.Kn*s,c[1]<0&&(c[1]=0),new dn(c,"lch").alpha(u.alpha(),!0)},dn.prototype.desaturate=function(s){return s===void 0&&(s=1),this.saturate(-s)};var Js=S,eo=v.type;Js.prototype.set=function(s,u,c){c===void 0&&(c=!1);var g=s.split("."),m=g[0],_=g[1],b=this[m]();if(_){var w=m.indexOf(_)-(m.substr(0,2)==="ok"?2:0);if(w>-1){if(eo(u)=="string")switch(u.charAt(0)){case"+":b[w]+=+u;break;case"-":b[w]+=+u;break;case"*":b[w]*=+u.substr(1);break;case"/":b[w]/=+u.substr(1);break;default:b[w]=+u}else if(eo(u)==="number")b[w]=u;else throw new Error("unsupported value for Color.set");var k=new Js(b,m);return c?(this._rgb=k._rgb,this):k}throw new Error("unknown channel "+_+" in mode "+m)}else return b};var zp=S,Hp=function(s,u,c){var g=s._rgb,m=u._rgb;return new zp(g[0]+c*(m[0]-g[0]),g[1]+c*(m[1]-g[1]),g[2]+c*(m[2]-g[2]),"rgb")};Le.rgb=Hp;var Gp=S,vn=Math.sqrt,zt=Math.pow,Zp=function(s,u,c){var g=s._rgb,m=g[0],_=g[1],b=g[2],w=u._rgb,k=w[0],C=w[1],A=w[2];return new Gp(vn(zt(m,2)*(1-c)+zt(k,2)*c),vn(zt(_,2)*(1-c)+zt(C,2)*c),vn(zt(b,2)*(1-c)+zt(A,2)*c),"rgb")};Le.lrgb=Zp;var Wp=S,qp=function(s,u,c){var g=s.lab(),m=u.lab();return new Wp(g[0]+c*(m[0]-g[0]),g[1]+c*(m[1]-g[1]),g[2]+c*(m[2]-g[2]),"lab")};Le.lab=qp;var to=S,Ht=function(s,u,c,g){var m,_,b,w;g==="hsl"?(b=s.hsl(),w=u.hsl()):g==="hsv"?(b=s.hsv(),w=u.hsv()):g==="hcg"?(b=s.hcg(),w=u.hcg()):g==="hsi"?(b=s.hsi(),w=u.hsi()):g==="lch"||g==="hcl"?(g="hcl",b=s.hcl(),w=u.hcl()):g==="oklch"&&(b=s.oklch().reverse(),w=u.oklch().reverse());var k,C,A,P,I,O;(g.substr(0,1)==="h"||g==="oklch")&&(m=b,k=m[0],A=m[1],I=m[2],_=w,C=_[0],P=_[1],O=_[2]);var $,j,J,ne;return!isNaN(k)&&!isNaN(C)?(C>k&&C-k>180?ne=C-(k+360):C<k&&k-C>180?ne=C+360-k:ne=C-k,j=k+c*ne):isNaN(k)?isNaN(C)?j=Number.NaN:(j=C,(I==1||I==0)&&g!="hsv"&&($=P)):(j=k,(O==1||O==0)&&g!="hsv"&&($=A)),$===void 0&&($=A+c*(P-A)),J=I+c*(O-I),g==="oklch"?new to([J,$,j],g):new to([j,$,J],g)},jp=Ht,ro=function(s,u,c){return jp(s,u,c,"lch")};Le.lch=ro,Le.hcl=ro;var Yp=S,Kp=function(s,u,c){var g=s.num(),m=u.num();return new Yp(g+c*(m-g),"num")};Le.num=Kp;var Xp=Ht,Qp=function(s,u,c){return Xp(s,u,c,"hcg")};Le.hcg=Qp;var Jp=Ht,ed=function(s,u,c){return Jp(s,u,c,"hsi")};Le.hsi=ed;var td=Ht,rd=function(s,u,c){return td(s,u,c,"hsl")};Le.hsl=rd;var id=Ht,nd=function(s,u,c){return id(s,u,c,"hsv")};Le.hsv=nd;var ad=S,sd=function(s,u,c){var g=s.oklab(),m=u.oklab();return new ad(g[0]+c*(m[0]-g[0]),g[1]+c*(m[1]-g[1]),g[2]+c*(m[2]-g[2]),"oklab")};Le.oklab=sd;var od=Ht,ud=function(s,u,c){return od(s,u,c,"oklch")};Le.oklch=ud;var gn=S,ld=v.clip_rgb,bn=Math.pow,mn=Math.sqrt,_n=Math.PI,io=Math.cos,no=Math.sin,hd=Math.atan2,fd=function(s,u,c){u===void 0&&(u="lrgb"),c===void 0&&(c=null);var g=s.length;c||(c=Array.from(new Array(g)).map(function(){return 1}));var m=g/c.reduce(function(j,J){return j+J});if(c.forEach(function(j,J){c[J]*=m}),s=s.map(function(j){return new gn(j)}),u==="lrgb")return cd(s,c);for(var _=s.shift(),b=_.get(u),w=[],k=0,C=0,A=0;A<b.length;A++)if(b[A]=(b[A]||0)*c[0],w.push(isNaN(b[A])?0:c[0]),u.charAt(A)==="h"&&!isNaN(b[A])){var P=b[A]/180*_n;k+=io(P)*c[0],C+=no(P)*c[0]}var I=_.alpha()*c[0];s.forEach(function(j,J){var ne=j.get(u);I+=j.alpha()*c[J+1];for(var oe=0;oe<b.length;oe++)if(!isNaN(ne[oe]))if(w[oe]+=c[J+1],u.charAt(oe)==="h"){var we=ne[oe]/180*_n;k+=io(we)*c[J+1],C+=no(we)*c[J+1]}else b[oe]+=ne[oe]*c[J+1]});for(var O=0;O<b.length;O++)if(u.charAt(O)==="h"){for(var $=hd(C/w[O],k/w[O])/_n*180;$<0;)$+=360;for(;$>=360;)$-=360;b[O]=$}else b[O]=b[O]/w[O];return I/=g,new gn(b,u).alpha(I>.99999?1:I,!0)},cd=function(s,u){for(var c=s.length,g=[0,0,0,0],m=0;m<s.length;m++){var _=s[m],b=u[m]/c,w=_._rgb;g[0]+=bn(w[0],2)*b,g[1]+=bn(w[1],2)*b,g[2]+=bn(w[2],2)*b,g[3]+=w[3]*b}return g[0]=mn(g[0]),g[1]=mn(g[1]),g[2]=mn(g[2]),g[3]>.9999999&&(g[3]=1),new gn(ld(g))},Ge=z,Gt=v.type,pd=Math.pow,xn=function(s){var u="rgb",c=Ge("#ccc"),g=0,m=[0,1],_=[],b=[0,0],w=!1,k=[],C=!1,A=0,P=1,I=!1,O={},$=!0,j=1,J=function(N){if(N=N||["#fff","#000"],N&&Gt(N)==="string"&&Ge.brewer&&Ge.brewer[N.toLowerCase()]&&(N=Ge.brewer[N.toLowerCase()]),Gt(N)==="array"){N.length===1&&(N=[N[0],N[0]]),N=N.slice(0);for(var U=0;U<N.length;U++)N[U]=Ge(N[U]);_.length=0;for(var K=0;K<N.length;K++)_.push(K/(N.length-1))}return Te(),k=N},ne=function(N){if(w!=null){for(var U=w.length-1,K=0;K<U&&N>=w[K];)K++;return K-1}return 0},oe=function(N){return N},we=function(N){return N},xe=function(N,U){var K,Y;if(U==null&&(U=!1),isNaN(N)||N===null)return c;if(U)Y=N;else if(w&&w.length>2){var ke=ne(N);Y=ke/(w.length-2)}else P!==A?Y=(N-A)/(P-A):Y=1;Y=we(Y),U||(Y=oe(Y)),j!==1&&(Y=pd(Y,j)),Y=b[0]+Y*(1-b[0]-b[1]),Y=Math.min(1,Math.max(0,Y));var pe=Math.floor(Y*1e4);if($&&O[pe])K=O[pe];else{if(Gt(k)==="array")for(var ae=0;ae<_.length;ae++){var he=_[ae];if(Y<=he){K=k[ae];break}if(Y>=he&&ae===_.length-1){K=k[ae];break}if(Y>he&&Y<_[ae+1]){Y=(Y-he)/(_[ae+1]-he),K=Ge.interpolate(k[ae],k[ae+1],Y,u);break}}else Gt(k)==="function"&&(K=k(Y));$&&(O[pe]=K)}return K},Te=function(){return O={}};J(s);var te=function(N){var U=Ge(xe(N));return C&&U[C]?U[C]():U};return te.classes=function(N){if(N!=null){if(Gt(N)==="array")w=N,m=[N[0],N[N.length-1]];else{var U=Ge.analyze(m);N===0?w=[U.min,U.max]:w=Ge.limits(U,"e",N)}return te}return w},te.domain=function(N){if(!arguments.length)return m;A=N[0],P=N[N.length-1],_=[];var U=k.length;if(N.length===U&&A!==P)for(var K=0,Y=Array.from(N);K<Y.length;K+=1){var ke=Y[K];_.push((ke-A)/(P-A))}else{for(var pe=0;pe<U;pe++)_.push(pe/(U-1));if(N.length>2){var ae=N.map(function(fe,ce){return ce/(N.length-1)}),he=N.map(function(fe){return(fe-A)/(P-A)});he.every(function(fe,ce){return ae[ce]===fe})||(we=function(fe){if(fe<=0||fe>=1)return fe;for(var ce=0;fe>=he[ce+1];)ce++;var We=(fe-he[ce])/(he[ce+1]-he[ce]),ct=ae[ce]+We*(ae[ce+1]-ae[ce]);return ct})}}return m=[A,P],te},te.mode=function(N){return arguments.length?(u=N,Te(),te):u},te.range=function(N,U){return J(N),te},te.out=function(N){return C=N,te},te.spread=function(N){return arguments.length?(g=N,te):g},te.correctLightness=function(N){return N==null&&(N=!0),I=N,Te(),I?oe=function(U){for(var K=xe(0,!0).lab()[0],Y=xe(1,!0).lab()[0],ke=K>Y,pe=xe(U,!0).lab()[0],ae=K+(Y-K)*U,he=pe-ae,fe=0,ce=1,We=20;Math.abs(he)>.01&&We-- >0;)(function(){return ke&&(he*=-1),he<0?(fe=U,U+=(ce-U)*.5):(ce=U,U+=(fe-U)*.5),pe=xe(U,!0).lab()[0],he=pe-ae})();return U}:oe=function(U){return U},te},te.padding=function(N){return N!=null?(Gt(N)==="number"&&(N=[N,N]),b=N,te):b},te.colors=function(N,U){arguments.length<2&&(U="hex");var K=[];if(arguments.length===0)K=k.slice(0);else if(N===1)K=[te(.5)];else if(N>1){var Y=m[0],ke=m[1]-Y;K=dd(0,N,!1).map(function(ce){return te(Y+ce/(N-1)*ke)})}else{s=[];var pe=[];if(w&&w.length>2)for(var ae=1,he=w.length,fe=1<=he;fe?ae<he:ae>he;fe?ae++:ae--)pe.push((w[ae-1]+w[ae])*.5);else pe=m;K=pe.map(function(ce){return te(ce)})}return Ge[U]&&(K=K.map(function(ce){return ce[U]()})),K},te.cache=function(N){return N!=null?($=N,te):$},te.gamma=function(N){return N!=null?(j=N,te):j},te.nodata=function(N){return N!=null?(c=Ge(N),te):c},te};function dd(s,u,c){for(var g=[],m=s<u,_=c?m?u+1:u-1:u,b=s;m?b<_:b>_;m?b++:b--)g.push(b);return g}var _r=S,vd=xn,gd=function(s){for(var u=[1,1],c=1;c<s;c++){for(var g=[1],m=1;m<=u.length;m++)g[m]=(u[m]||0)+u[m-1];u=g}return u},bd=function(s){var u,c,g,m,_,b,w;if(s=s.map(function(I){return new _r(I)}),s.length===2)u=s.map(function(I){return I.lab()}),_=u[0],b=u[1],m=function(I){var O=[0,1,2].map(function($){return _[$]+I*(b[$]-_[$])});return new _r(O,"lab")};else if(s.length===3)c=s.map(function(I){return I.lab()}),_=c[0],b=c[1],w=c[2],m=function(I){var O=[0,1,2].map(function($){return(1-I)*(1-I)*_[$]+2*(1-I)*I*b[$]+I*I*w[$]});return new _r(O,"lab")};else if(s.length===4){var k;g=s.map(function(I){return I.lab()}),_=g[0],b=g[1],w=g[2],k=g[3],m=function(I){var O=[0,1,2].map(function($){return(1-I)*(1-I)*(1-I)*_[$]+3*(1-I)*(1-I)*I*b[$]+3*(1-I)*I*I*w[$]+I*I*I*k[$]});return new _r(O,"lab")}}else if(s.length>=5){var C,A,P;C=s.map(function(I){return I.lab()}),P=s.length-1,A=gd(P),m=function(I){var O=1-I,$=[0,1,2].map(function(j){return C.reduce(function(J,ne,oe){return J+A[oe]*Math.pow(O,P-oe)*Math.pow(I,oe)*ne[j]},0)});return new _r($,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return m},md=function(s){var u=bd(s);return u.scale=function(){return vd(u)},u},yn=z,Ze=function(s,u,c){if(!Ze[c])throw new Error("unknown blend mode "+c);return Ze[c](s,u)},ht=function(s){return function(u,c){var g=yn(c).rgb(),m=yn(u).rgb();return yn.rgb(s(g,m))}},ft=function(s){return function(u,c){var g=[];return g[0]=s(u[0],c[0]),g[1]=s(u[1],c[1]),g[2]=s(u[2],c[2]),g}},_d=function(s){return s},xd=function(s,u){return s*u/255},yd=function(s,u){return s>u?u:s},wd=function(s,u){return s>u?s:u},kd=function(s,u){return 255*(1-(1-s/255)*(1-u/255))},Ed=function(s,u){return u<128?2*s*u/255:255*(1-2*(1-s/255)*(1-u/255))},Sd=function(s,u){return 255*(1-(1-u/255)/(s/255))},Cd=function(s,u){return s===255?255:(s=255*(u/255)/(1-s/255),s>255?255:s)};Ze.normal=ht(ft(_d)),Ze.multiply=ht(ft(xd)),Ze.screen=ht(ft(kd)),Ze.overlay=ht(ft(Ed)),Ze.darken=ht(ft(yd)),Ze.lighten=ht(ft(wd)),Ze.dodge=ht(ft(Cd)),Ze.burn=ht(ft(Sd));for(var Ad=Ze,wn=v.type,Id=v.clip_rgb,Nd=v.TWOPI,Td=Math.pow,Rd=Math.sin,Pd=Math.cos,ao=z,Ld=function(s,u,c,g,m){s===void 0&&(s=300),u===void 0&&(u=-1.5),c===void 0&&(c=1),g===void 0&&(g=1),m===void 0&&(m=[0,1]);var _=0,b;wn(m)==="array"?b=m[1]-m[0]:(b=0,m=[m,m]);var w=function(k){var C=Nd*((s+120)/360+u*k),A=Td(m[0]+b*k,g),P=_!==0?c[0]+k*_:c,I=P*A*(1-A)/2,O=Pd(C),$=Rd(C),j=A+I*(-.14861*O+1.78277*$),J=A+I*(-.29227*O-.90649*$),ne=A+I*(1.97294*O);return ao(Id([j*255,J*255,ne*255,1]))};return w.start=function(k){return k==null?s:(s=k,w)},w.rotations=function(k){return k==null?u:(u=k,w)},w.gamma=function(k){return k==null?g:(g=k,w)},w.hue=function(k){return k==null?c:(c=k,wn(c)==="array"?(_=c[1]-c[0],_===0&&(c=c[1])):_=0,w)},w.lightness=function(k){return k==null?m:(wn(k)==="array"?(m=k,b=k[1]-k[0]):(m=[k,k],b=0),w)},w.scale=function(){return ao.scale(w)},w.hue(c),w},$d=S,Od="0123456789abcdef",Md=Math.floor,Dd=Math.random,Fd=function(){for(var s="#",u=0;u<6;u++)s+=Od.charAt(Md(Dd()*16));return new $d(s,"hex")},kn=f,so=Math.log,Ud=Math.pow,Bd=Math.floor,Vd=Math.abs,oo=function(s,u){u===void 0&&(u=null);var c={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return kn(s)==="object"&&(s=Object.values(s)),s.forEach(function(g){u&&kn(g)==="object"&&(g=g[u]),g!=null&&!isNaN(g)&&(c.values.push(g),c.sum+=g,g<c.min&&(c.min=g),g>c.max&&(c.max=g),c.count+=1)}),c.domain=[c.min,c.max],c.limits=function(g,m){return uo(c,g,m)},c},uo=function(s,u,c){u===void 0&&(u="equal"),c===void 0&&(c=7),kn(s)=="array"&&(s=oo(s));var g=s.min,m=s.max,_=s.values.sort(function(Sn,Cn){return Sn-Cn});if(c===1)return[g,m];var b=[];if(u.substr(0,1)==="c"&&(b.push(g),b.push(m)),u.substr(0,1)==="e"){b.push(g);for(var w=1;w<c;w++)b.push(g+w/c*(m-g));b.push(m)}else if(u.substr(0,1)==="l"){if(g<=0)throw new Error("Logarithmic scales are only possible for values > 0");var k=Math.LOG10E*so(g),C=Math.LOG10E*so(m);b.push(g);for(var A=1;A<c;A++)b.push(Ud(10,k+A/c*(C-k)));b.push(m)}else if(u.substr(0,1)==="q"){b.push(g);for(var P=1;P<c;P++){var I=(_.length-1)*P/c,O=Bd(I);if(O===I)b.push(_[O]);else{var $=I-O;b.push(_[O]*(1-$)+_[O+1]*$)}}b.push(m)}else if(u.substr(0,1)==="k"){var j,J=_.length,ne=new Array(J),oe=new Array(c),we=!0,xe=0,Te=null;Te=[],Te.push(g);for(var te=1;te<c;te++)Te.push(g+te/c*(m-g));for(Te.push(m);we;){for(var N=0;N<c;N++)oe[N]=0;for(var U=0;U<J;U++)for(var K=_[U],Y=Number.MAX_VALUE,ke=void 0,pe=0;pe<c;pe++){var ae=Vd(Te[pe]-K);ae<Y&&(Y=ae,ke=pe),oe[ke]++,ne[U]=ke}for(var he=new Array(c),fe=0;fe<c;fe++)he[fe]=null;for(var ce=0;ce<J;ce++)j=ne[ce],he[j]===null?he[j]=_[ce]:he[j]+=_[ce];for(var We=0;We<c;We++)he[We]*=1/oe[We];we=!1;for(var ct=0;ct<c;ct++)if(he[ct]!==Te[ct]){we=!0;break}Te=he,xe++,xe>200&&(we=!1)}for(var pt={},Zt=0;Zt<c;Zt++)pt[Zt]=[];for(var Wt=0;Wt<J;Wt++)j=ne[Wt],pt[j].push(_[Wt]);for(var rt=[],Ct=0;Ct<c;Ct++)rt.push(pt[Ct][0]),rt.push(pt[Ct][pt[Ct].length-1]);rt=rt.sort(function(Sn,Cn){return Sn-Cn}),b.push(rt[0]);for(var xr=1;xr<rt.length;xr+=2){var At=rt[xr];!isNaN(At)&&b.indexOf(At)===-1&&b.push(At)}}return b},lo={analyze:oo,limits:uo},ho=S,zd=function(s,u){s=new ho(s),u=new ho(u);var c=s.luminance(),g=u.luminance();return c>g?(c+.05)/(g+.05):(g+.05)/(c+.05)},fo=S,tt=Math.sqrt,be=Math.pow,Hd=Math.min,Gd=Math.max,co=Math.atan2,po=Math.abs,ui=Math.cos,vo=Math.sin,Zd=Math.exp,go=Math.PI,Wd=function(s,u,c,g,m){c===void 0&&(c=1),g===void 0&&(g=1),m===void 0&&(m=1);var _=function(At){return 360*At/(2*go)},b=function(At){return 2*go*At/360};s=new fo(s),u=new fo(u);var w=Array.from(s.lab()),k=w[0],C=w[1],A=w[2],P=Array.from(u.lab()),I=P[0],O=P[1],$=P[2],j=(k+I)/2,J=tt(be(C,2)+be(A,2)),ne=tt(be(O,2)+be($,2)),oe=(J+ne)/2,we=.5*(1-tt(be(oe,7)/(be(oe,7)+be(25,7)))),xe=C*(1+we),Te=O*(1+we),te=tt(be(xe,2)+be(A,2)),N=tt(be(Te,2)+be($,2)),U=(te+N)/2,K=_(co(A,xe)),Y=_(co($,Te)),ke=K>=0?K:K+360,pe=Y>=0?Y:Y+360,ae=po(ke-pe)>180?(ke+pe+360)/2:(ke+pe)/2,he=1-.17*ui(b(ae-30))+.24*ui(b(2*ae))+.32*ui(b(3*ae+6))-.2*ui(b(4*ae-63)),fe=pe-ke;fe=po(fe)<=180?fe:pe<=ke?fe+360:fe-360,fe=2*tt(te*N)*vo(b(fe)/2);var ce=I-k,We=N-te,ct=1+.015*be(j-50,2)/tt(20+be(j-50,2)),pt=1+.045*U,Zt=1+.015*U*he,Wt=30*Zd(-be((ae-275)/25,2)),rt=2*tt(be(U,7)/(be(U,7)+be(25,7))),Ct=-rt*vo(2*b(Wt)),xr=tt(be(ce/(c*ct),2)+be(We/(g*pt),2)+be(fe/(m*Zt),2)+Ct*(We/(g*pt))*(fe/(m*Zt)));return Gd(0,Hd(100,xr))},bo=S,qd=function(s,u,c){c===void 0&&(c="lab"),s=new bo(s),u=new bo(u);var g=s.get(c),m=u.get(c),_=0;for(var b in g){var w=(g[b]||0)-(m[b]||0);_+=w*w}return Math.sqrt(_)},jd=S,Yd=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];try{return new(Function.prototype.bind.apply(jd,[null].concat(s))),!0}catch(c){return!1}},mo=z,_o=xn,Kd={cool:function(){return _o([mo.hsl(180,1,.9),mo.hsl(250,.7,.4)])},hot:function(){return _o(["#000","#f00","#ff0","#fff"]).mode("rgb")}},li={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},En=0,xo=Object.keys(li);En<xo.length;En+=1){var yo=xo[En];li[yo.toLowerCase()]=li[yo]}var Xd=li,_e=z;_e.average=fd,_e.bezier=md,_e.blend=Ad,_e.cubehelix=Ld,_e.mix=_e.interpolate=Ks,_e.random=Fd,_e.scale=xn,_e.analyze=lo.analyze,_e.contrast=zd,_e.deltaE=Wd,_e.distance=qd,_e.limits=lo.limits,_e.valid=Yd,_e.scales=Kd,_e.colors=Ps,_e.brewer=Xd;var Qd=_e;return Qd})});var wh=hi((za,yh)=>{(function(e,t){"use strict";typeof define=="function"&&define.amd?define("stackframe",[],t):typeof za=="object"?yh.exports=t():e.StackFrame=t()})(za,function(){"use strict";function e(v){return!isNaN(parseFloat(v))&&isFinite(v)}function t(v){return v.charAt(0).toUpperCase()+v.substring(1)}function r(v){return function(){return this[v]}}var i=["isConstructor","isEval","isNative","isToplevel"],n=["columnNumber","lineNumber"],a=["fileName","functionName","source"],o=["args"],f=["evalOrigin"],d=i.concat(n,a,o,f);function l(v){if(!!v)for(var E=0;E<d.length;E++)v[d[E]]!==void 0&&this["set"+t(d[E])](v[d[E]])}l.prototype={getArgs:function(){return this.args},setArgs:function(v){if(Object.prototype.toString.call(v)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=v},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(v){if(v instanceof l)this.evalOrigin=v;else if(v instanceof Object)this.evalOrigin=new l(v);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var v=this.getFileName()||"",E=this.getLineNumber()||"",D=this.getColumnNumber()||"",R=this.getFunctionName()||"";return this.getIsEval()?v?"[eval] ("+v+":"+E+":"+D+")":"[eval]:"+E+":"+D:R?R+" ("+v+":"+E+":"+D+")":v+":"+E+":"+D}},l.fromString=function(E){var D=E.indexOf("("),R=E.lastIndexOf(")"),T=E.substring(0,D),L=E.substring(D+1,R).split(","),V=E.substring(R+1);if(V.indexOf("@")===0)var S=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(V,""),Z=S[1],z=S[2],M=S[3];return new l({functionName:T,args:L||void 0,fileName:Z,lineNumber:z||void 0,columnNumber:M||void 0})};for(var h=0;h<i.length;h++)l.prototype["get"+t(i[h])]=r(i[h]),l.prototype["set"+t(i[h])]=function(v){return function(E){this[v]=Boolean(E)}}(i[h]);for(var y=0;y<n.length;y++)l.prototype["get"+t(n[y])]=r(n[y]),l.prototype["set"+t(n[y])]=function(v){return function(E){if(!e(E))throw new TypeError(v+" must be a Number");this[v]=Number(E)}}(n[y]);for(var x=0;x<a.length;x++)l.prototype["get"+t(a[x])]=r(a[x]),l.prototype["set"+t(a[x])]=function(v){return function(E){this[v]=String(E)}}(a[x]);return l})});var Eh=hi((Ha,kh)=>{(function(e,t){"use strict";typeof define=="function"&&define.amd?define("error-stack-parser",["stackframe"],t):typeof Ha=="object"?kh.exports=t(wh()):e.ErrorStackParser=t(e.StackFrame)})(Ha,function(t){"use strict";var r=/(^|@)\S+:\d+/,i=/^\s*at .*(\S+:\d+|\(native\))/m,n=/^(eval@)?(\[native code])?$/;return{parse:function(o){if(typeof o.stacktrace!="undefined"||typeof o["opera#sourceloc"]!="undefined")return this.parseOpera(o);if(o.stack&&o.stack.match(i))return this.parseV8OrIE(o);if(o.stack)return this.parseFFOrSafari(o);throw new Error("Cannot parse given Error object")},extractLocation:function(o){if(o.indexOf(":")===-1)return[o];var f=/(.+?)(?::(\d+))?(?::(\d+))?$/,d=f.exec(o.replace(/[()]/g,""));return[d[1],d[2]||void 0,d[3]||void 0]},parseV8OrIE:function(o){var f=o.stack.split(`
`).filter(function(d){return!!d.match(i)},this);return f.map(function(d){d.indexOf("(eval ")>-1&&(d=d.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var l=d.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),h=l.match(/ (\(.+\)$)/);l=h?l.replace(h[0],""):l;var y=this.extractLocation(h?h[1]:l),x=h&&l||void 0,v=["eval","<anonymous>"].indexOf(y[0])>-1?void 0:y[0];return new t({functionName:x,fileName:v,lineNumber:y[1],columnNumber:y[2],source:d})},this)},parseFFOrSafari:function(o){var f=o.stack.split(`
`).filter(function(d){return!d.match(n)},this);return f.map(function(d){if(d.indexOf(" > eval")>-1&&(d=d.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),d.indexOf("@")===-1&&d.indexOf(":")===-1)return new t({functionName:d});var l=/((.*".+"[^@]*)?[^@]*)(?:@)/,h=d.match(l),y=h&&h[1]?h[1]:void 0,x=this.extractLocation(d.replace(l,""));return new t({functionName:y,fileName:x[0],lineNumber:x[1],columnNumber:x[2],source:d})},this)},parseOpera:function(o){return!o.stacktrace||o.message.indexOf(`
`)>-1&&o.message.split(`
`).length>o.stacktrace.split(`
`).length?this.parseOpera9(o):o.stack?this.parseOpera11(o):this.parseOpera10(o)},parseOpera9:function(o){for(var f=/Line (\d+).*script (?:in )?(\S+)/i,d=o.message.split(`
`),l=[],h=2,y=d.length;h<y;h+=2){var x=f.exec(d[h]);x&&l.push(new t({fileName:x[2],lineNumber:x[1],source:d[h]}))}return l},parseOpera10:function(o){for(var f=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,d=o.stacktrace.split(`
`),l=[],h=0,y=d.length;h<y;h+=2){var x=f.exec(d[h]);x&&l.push(new t({functionName:x[3]||void 0,fileName:x[2],lineNumber:x[1],source:d[h]}))}return l},parseOpera11:function(o){var f=o.stack.split(`
`).filter(function(d){return!!d.match(r)&&!d.match(/^Error created at/)},this);return f.map(function(d){var l=d.split("@"),h=this.extractLocation(l.pop()),y=l.shift()||"",x=y.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,v;y.match(/\(([^)]*)\)/)&&(v=y.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var E=v===void 0||v==="[arguments not available]"?void 0:v.split(",");return new t({functionName:x,args:E,fileName:h[0],lineNumber:h[1],columnNumber:h[2],source:d})},this)}}})});var pi,ge,Co,e0,Yt,It,Ao,Io,t0,di={},No=[],r0=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function dt(e,t){for(var r in t)e[r]=t[r];return e}function To(e){var t=e.parentNode;t&&t.removeChild(e)}function ue(e,t,r){var i,n,a,o={};for(a in t)a=="key"?i=t[a]:a=="ref"?n=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?pi.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return vi(e,o,i,n,null)}function vi(e,t,r,i,n){var a={type:e,props:t,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:n==null?++Co:n};return n==null&&ge.vnode!=null&&ge.vnode(a),a}function In(){return{current:null}}function gi(e){return e.children}function i0(e,t,r,i,n){var a;for(a in r)a==="children"||a==="key"||a in t||bi(e,a,null,r[a],i);for(a in t)n&&typeof t[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||r[a]===t[a]||bi(e,a,t[a],r[a],i)}function Ro(e,t,r){t[0]==="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||r0.test(t)?r:r+"px"}function bi(e,t,r,i,n){var a;e:if(t==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof i=="string"&&(e.style.cssText=i=""),i)for(t in i)r&&t in r||Ro(e.style,t,"");if(r)for(t in r)i&&r[t]===i[t]||Ro(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")a=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=r,r?i||e.addEventListener(t,a?Lo:Po,a):e.removeEventListener(t,a?Lo:Po,a);else if(t!=="dangerouslySetInnerHTML"){if(n)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=r==null?"":r;break e}catch(o){}typeof r=="function"||(r==null||r===!1&&t.indexOf("-")==-1?e.removeAttribute(t):e.setAttribute(t,r))}}function Po(e){Yt=!0;try{return this.l[e.type+!1](ge.event?ge.event(e):e)}finally{Yt=!1}}function Lo(e){Yt=!0;try{return this.l[e.type+!0](ge.event?ge.event(e):e)}finally{Yt=!1}}function Me(e,t){this.props=e,this.context=t}function wr(e,t){if(t==null)return e.__?wr(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?wr(e):null}function $o(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return $o(e)}}function n0(e){Yt?setTimeout(e):Io(e)}function Oo(e){(!e.__d&&(e.__d=!0)&&It.push(e)&&!mi.__r++||Ao!==ge.debounceRendering)&&((Ao=ge.debounceRendering)||n0)(mi)}function mi(){var e,t,r,i,n,a,o,f;for(It.sort(function(d,l){return d.__v.__b-l.__v.__b});e=It.shift();)e.__d&&(t=It.length,i=void 0,n=void 0,o=(a=(r=e).__v).__e,(f=r.__P)&&(i=[],(n=dt({},a)).__v=a.__v+1,Nn(f,a,n,r.__n,f.ownerSVGElement!==void 0,a.__h!=null?[o]:null,i,o==null?wr(a):o,a.__h),Bo(i,a),a.__e!=o&&$o(a)),It.length>t&&It.sort(function(d,l){return d.__v.__b-l.__v.__b}));mi.__r=0}function Mo(e,t,r,i,n,a,o,f,d,l){var h,y,x,v,E,D,R,T=i&&i.__k||No,L=T.length;for(r.__k=[],h=0;h<t.length;h++)if((v=r.__k[h]=(v=t[h])==null||typeof v=="boolean"?null:typeof v=="string"||typeof v=="number"||typeof v=="bigint"?vi(null,v,null,null,v):Array.isArray(v)?vi(gi,{children:v},null,null,null):v.__b>0?vi(v.type,v.props,v.key,v.ref?v.ref:null,v.__v):v)!=null){if(v.__=r,v.__b=r.__b+1,(x=T[h])===null||x&&v.key==x.key&&v.type===x.type)T[h]=void 0;else for(y=0;y<L;y++){if((x=T[y])&&v.key==x.key&&v.type===x.type){T[y]=void 0;break}x=null}Nn(e,v,x=x||di,n,a,o,f,d,l),E=v.__e,(y=v.ref)&&x.ref!=y&&(R||(R=[]),x.ref&&R.push(x.ref,null,v),R.push(y,v.__c||E,v)),E!=null?(D==null&&(D=E),typeof v.type=="function"&&v.__k===x.__k?v.__d=d=Do(v,d,e):d=Fo(e,v,x,T,E,d),typeof r.type=="function"&&(r.__d=d)):d&&x.__e==d&&d.parentNode!=e&&(d=wr(x))}for(r.__e=D,h=L;h--;)T[h]!=null&&(typeof r.type=="function"&&T[h].__e!=null&&T[h].__e==r.__d&&(r.__d=Uo(i).nextSibling),zo(T[h],T[h]));if(R)for(h=0;h<R.length;h++)Vo(R[h],R[++h],R[++h])}function Do(e,t,r){for(var i,n=e.__k,a=0;n&&a<n.length;a++)(i=n[a])&&(i.__=e,t=typeof i.type=="function"?Do(i,t,r):Fo(r,i,i,n,i.__e,t));return t}function Fo(e,t,r,i,n,a){var o,f,d;if(t.__d!==void 0)o=t.__d,t.__d=void 0;else if(r==null||n!=a||n.parentNode==null)e:if(a==null||a.parentNode!==e)e.appendChild(n),o=null;else{for(f=a,d=0;(f=f.nextSibling)&&d<i.length;d+=1)if(f==n)break e;e.insertBefore(n,a),o=a}return o!==void 0?o:n.nextSibling}function Uo(e){var t,r,i;if(e.type==null||typeof e.type=="string")return e.__e;if(e.__k){for(t=e.__k.length-1;t>=0;t--)if((r=e.__k[t])&&(i=Uo(r)))return i}return null}function Nn(e,t,r,i,n,a,o,f,d){var l,h,y,x,v,E,D,R,T,L,V,S,Z,z,M,G=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(d=r.__h,f=t.__e=r.__e,t.__h=null,a=[f]),(l=ge.__b)&&l(t);try{e:if(typeof G=="function"){if(R=t.props,T=(l=G.contextType)&&i[l.__c],L=l?T?T.props.value:l.__:i,r.__c?D=(h=t.__c=r.__c).__=h.__E:("prototype"in G&&G.prototype.render?t.__c=h=new G(R,L):(t.__c=h=new Me(R,L),h.constructor=G,h.render=s0),T&&T.sub(h),h.props=R,h.state||(h.state={}),h.context=L,h.__n=i,y=h.__d=!0,h.__h=[],h._sb=[]),h.__s==null&&(h.__s=h.state),G.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=dt({},h.__s)),dt(h.__s,G.getDerivedStateFromProps(R,h.__s))),x=h.props,v=h.state,h.__v=t,y)G.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(G.getDerivedStateFromProps==null&&R!==x&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(R,L),!h.__e&&h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(R,h.__s,L)===!1||t.__v===r.__v){for(t.__v!==r.__v&&(h.props=R,h.state=h.__s,h.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(W){W&&(W.__=t)}),V=0;V<h._sb.length;V++)h.__h.push(h._sb[V]);h._sb=[],h.__h.length&&o.push(h);break e}h.componentWillUpdate!=null&&h.componentWillUpdate(R,h.__s,L),h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(x,v,E)})}if(h.context=L,h.props=R,h.__P=e,S=ge.__r,Z=0,"prototype"in G&&G.prototype.render){for(h.state=h.__s,h.__d=!1,S&&S(t),l=h.render(h.props,h.state,h.context),z=0;z<h._sb.length;z++)h.__h.push(h._sb[z]);h._sb=[]}else do h.__d=!1,S&&S(t),l=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++Z<25);h.state=h.__s,h.getChildContext!=null&&(i=dt(dt({},i),h.getChildContext())),y||h.getSnapshotBeforeUpdate==null||(E=h.getSnapshotBeforeUpdate(x,v)),M=l!=null&&l.type===gi&&l.key==null?l.props.children:l,Mo(e,Array.isArray(M)?M:[M],t,r,i,n,a,o,f,d),h.base=t.__e,t.__h=null,h.__h.length&&o.push(h),D&&(h.__E=h.__=null),h.__e=!1}else a==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=a0(r.__e,t,r,i,n,a,o,d);(l=ge.diffed)&&l(t)}catch(W){t.__v=null,(d||a!=null)&&(t.__e=f,t.__h=!!d,a[a.indexOf(f)]=null),ge.__e(W,t,r)}}function Bo(e,t){ge.__c&&ge.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(i){i.call(r)})}catch(i){ge.__e(i,r.__v)}})}function a0(e,t,r,i,n,a,o,f){var d,l,h,y=r.props,x=t.props,v=t.type,E=0;if(v==="svg"&&(n=!0),a!=null){for(;E<a.length;E++)if((d=a[E])&&"setAttribute"in d==!!v&&(v?d.localName===v:d.nodeType===3)){e=d,a[E]=null;break}}if(e==null){if(v===null)return document.createTextNode(x);e=n?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,x.is&&x),a=null,f=!1}if(v===null)y===x||f&&e.data===x||(e.data=x);else{if(a=a&&pi.call(e.childNodes),l=(y=r.props||di).dangerouslySetInnerHTML,h=x.dangerouslySetInnerHTML,!f){if(a!=null)for(y={},E=0;E<e.attributes.length;E++)y[e.attributes[E].name]=e.attributes[E].value;(h||l)&&(h&&(l&&h.__html==l.__html||h.__html===e.innerHTML)||(e.innerHTML=h&&h.__html||""))}if(i0(e,x,y,n,f),h)t.__k=[];else if(E=t.props.children,Mo(e,Array.isArray(E)?E:[E],t,r,i,n&&v!=="foreignObject",a,o,a?a[0]:r.__k&&wr(r,0),f),a!=null)for(E=a.length;E--;)a[E]!=null&&To(a[E]);f||("value"in x&&(E=x.value)!==void 0&&(E!==e.value||v==="progress"&&!E||v==="option"&&E!==y.value)&&bi(e,"value",E,y.value,!1),"checked"in x&&(E=x.checked)!==void 0&&E!==e.checked&&bi(e,"checked",E,y.checked,!1))}return e}function Vo(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(i){ge.__e(i,r)}}function zo(e,t,r){var i,n;if(ge.unmount&&ge.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||Vo(i,null,t)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(a){ge.__e(a,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(n=0;n<i.length;n++)i[n]&&zo(i[n],t,r||typeof e.type!="function");r||e.__e==null||To(e.__e),e.__=e.__e=e.__d=void 0}function s0(e,t,r){return this.constructor(e,r)}function Ho(e,t,r){var i,n,a;ge.__&&ge.__(e,t),n=(i=typeof r=="function")?null:r&&r.__k||t.__k,a=[],Nn(t,e=(!i&&r||t).__k=ue(gi,null,[e]),n||di,di,t.ownerSVGElement!==void 0,!i&&r?[r]:n?null:t.firstChild?pi.call(t.childNodes):null,a,!i&&r?r:n?n.__e:t.firstChild,i),Bo(a,e)}pi=No.slice,ge={__e:function(e,t,r,i){for(var n,a,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((a=n.constructor)&&a.getDerivedStateFromError!=null&&(n.setState(a.getDerivedStateFromError(e)),o=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(e,i||{}),o=n.__d),o)return n.__E=n}catch(f){e=f}throw e}},Co=0,e0=function(e){return e!=null&&e.constructor===void 0},Yt=!1,Me.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=dt({},this.state),typeof e=="function"&&(e=e(dt({},r),this.props)),e&&dt(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Oo(this))},Me.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Oo(this))},Me.prototype.render=gi,It=[],Io=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,mi.__r=0,t0=0;var o0=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],Go=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],u0="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",Zo="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Tn={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Rn="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",l0={5:Rn,"5module":Rn+" export import",6:Rn+" const class extends export import super"},h0=/^in(stanceof)?$/,f0=new RegExp("["+Zo+"]"),c0=new RegExp("["+Zo+u0+"]");function Pn(e,t){for(var r=65536,i=0;i<t.length;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function it(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&f0.test(String.fromCharCode(e)):t===!1?!1:Pn(e,Go)}function Kt(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&c0.test(String.fromCharCode(e)):t===!1?!1:Pn(e,Go)||Pn(e,o0)}var se=function(t,r){r===void 0&&(r={}),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};function De(e,t){return new se(e,{beforeExpr:!0,binop:t})}var Fe={beforeExpr:!0},Re={startsExpr:!0},Ln={};function re(e,t){return t===void 0&&(t={}),t.keyword=e,Ln[e]=new se(e,t)}var p={num:new se("num",Re),regexp:new se("regexp",Re),string:new se("string",Re),name:new se("name",Re),privateId:new se("privateId",Re),eof:new se("eof"),bracketL:new se("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new se("]"),braceL:new se("{",{beforeExpr:!0,startsExpr:!0}),braceR:new se("}"),parenL:new se("(",{beforeExpr:!0,startsExpr:!0}),parenR:new se(")"),comma:new se(",",Fe),semi:new se(";",Fe),colon:new se(":",Fe),dot:new se("."),question:new se("?",Fe),questionDot:new se("?."),arrow:new se("=>",Fe),template:new se("template"),invalidTemplate:new se("invalidTemplate"),ellipsis:new se("...",Fe),backQuote:new se("`",Re),dollarBraceL:new se("${",{beforeExpr:!0,startsExpr:!0}),eq:new se("=",{beforeExpr:!0,isAssign:!0}),assign:new se("_=",{beforeExpr:!0,isAssign:!0}),incDec:new se("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new se("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:De("||",1),logicalAND:De("&&",2),bitwiseOR:De("|",3),bitwiseXOR:De("^",4),bitwiseAND:De("&",5),equality:De("==/!=/===/!==",6),relational:De("</>/<=/>=",7),bitShift:De("<</>>/>>>",8),plusMin:new se("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:De("%",10),star:De("*",10),slash:De("/",10),starstar:new se("**",{beforeExpr:!0}),coalesce:De("??",1),_break:re("break"),_case:re("case",Fe),_catch:re("catch"),_continue:re("continue"),_debugger:re("debugger"),_default:re("default",Fe),_do:re("do",{isLoop:!0,beforeExpr:!0}),_else:re("else",Fe),_finally:re("finally"),_for:re("for",{isLoop:!0}),_function:re("function",Re),_if:re("if"),_return:re("return",Fe),_switch:re("switch"),_throw:re("throw",Fe),_try:re("try"),_var:re("var"),_const:re("const"),_while:re("while",{isLoop:!0}),_with:re("with"),_new:re("new",{beforeExpr:!0,startsExpr:!0}),_this:re("this",Re),_super:re("super",Re),_class:re("class",Re),_extends:re("extends",Fe),_export:re("export"),_import:re("import",Re),_null:re("null",Re),_true:re("true",Re),_false:re("false",Re),_in:re("in",{beforeExpr:!0,binop:7}),_instanceof:re("instanceof",{beforeExpr:!0,binop:7}),_typeof:re("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:re("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:re("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Ue=/\r\n?|\n|\u2028|\u2029/,p0=new RegExp(Ue.source,"g");function Xt(e){return e===10||e===13||e===8232||e===8233}function Wo(e,t,r){r===void 0&&(r=e.length);for(var i=t;i<r;i++){var n=e.charCodeAt(i);if(Xt(n))return i<r-1&&n===13&&e.charCodeAt(i+1)===10?i+2:i+1}return-1}var qo=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Be=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,jo=Object.prototype,d0=jo.hasOwnProperty,v0=jo.toString,kr=Object.hasOwn||function(e,t){return d0.call(e,t)},Yo=Array.isArray||function(e){return v0.call(e)==="[object Array]"};function Nt(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}function vt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var g0=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Er=function(t,r){this.line=t,this.column=r};Er.prototype.offset=function(t){return new Er(this.line,this.column+t)};var _i=function(t,r,i){this.start=r,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)};function Ko(e,t){for(var r=1,i=0;;){var n=Wo(e,i,t);if(n<0)return new Er(r,t-i);++r,i=n}}var $n={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Xo=!1;function b0(e){var t={};for(var r in $n)t[r]=e&&kr(e,r)?e[r]:$n[r];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!Xo&&typeof console=="object"&&console.warn&&(Xo=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),Yo(t.onToken)){var i=t.onToken;t.onToken=function(n){return i.push(n)}}return Yo(t.onComment)&&(t.onComment=m0(t,t.onComment)),t}function m0(e,t){return function(r,i,n,a,o,f){var d={type:r?"Block":"Line",value:i,start:n,end:a};e.locations&&(d.loc=new _i(this,o,f)),e.ranges&&(d.range=[n,a]),t.push(d)}}var Sr=1,Qt=2,On=4,Qo=8,Jo=16,eu=32,Mn=64,tu=128,Cr=256,Dn=Sr|Qt|Cr;function Fn(e,t){return Qt|(e?On:0)|(t?Qo:0)}var xi=0,Un=1,nt=2,ru=3,iu=4,nu=5,me=function(t,r,i){this.options=t=b0(t),this.sourceFile=t.sourceFile,this.keywords=Nt(l0[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var n="";t.allowReserved!==!0&&(n=Tn[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(n+=" await")),this.reservedWords=Nt(n);var a=(n?n+" ":"")+Tn.strict;this.reservedWordsStrict=Nt(a),this.reservedWordsStrictBind=Nt(a+" "+Tn.strictBind),this.input=String(r),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(`
`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Ue).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=p.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Sr),this.regexpState=null,this.privateNameStack=[]},Ye={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};me.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};Ye.inFunction.get=function(){return(this.currentVarScope().flags&Qt)>0};Ye.inGenerator.get=function(){return(this.currentVarScope().flags&Qo)>0&&!this.currentVarScope().inClassFieldInit};Ye.inAsync.get=function(){return(this.currentVarScope().flags&On)>0&&!this.currentVarScope().inClassFieldInit};Ye.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Cr)return!1;if(t.flags&Qt)return(t.flags&On)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Ye.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&Mn)>0||r||this.options.allowSuperOutsideMethod};Ye.allowDirectSuper.get=function(){return(this.currentThisScope().flags&tu)>0};Ye.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Ye.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&(Qt|Cr))>0||r};Ye.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Cr)>0};me.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var i=this,n=0;n<t.length;n++)i=t[n](i);return i};me.parse=function(t,r){return new this(r,t).parse()};me.parseExpressionAt=function(t,r,i){var n=new this(i,t,r);return n.nextToken(),n.parseExpression()};me.tokenizer=function(t,r){return new this(r,t)};Object.defineProperties(me.prototype,Ye);var Ie=me.prototype,_0=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Ie.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Be.lastIndex=e,e+=Be.exec(this.input)[0].length;var t=_0.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){Be.lastIndex=e+t[0].length;var r=Be.exec(this.input),i=r.index+r[0].length,n=this.input.charAt(i);return n===";"||n==="}"||Ue.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(n)||n==="!"&&this.input.charAt(i+1)==="=")}e+=t[0].length,Be.lastIndex=e,e+=Be.exec(this.input)[0].length,this.input[e]===";"&&e++}};Ie.eat=function(e){return this.type===e?(this.next(),!0):!1};Ie.isContextual=function(e){return this.type===p.name&&this.value===e&&!this.containsEsc};Ie.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Ie.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Ie.canInsertSemicolon=function(){return this.type===p.eof||this.type===p.braceR||Ue.test(this.input.slice(this.lastTokEnd,this.start))};Ie.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Ie.semicolon=function(){!this.eat(p.semi)&&!this.insertSemicolon()&&this.unexpected()};Ie.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};Ie.expect=function(e){this.eat(e)||this.unexpected()};Ie.unexpected=function(e){this.raise(e!=null?e:this.start,"Unexpected token")};var yi=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ie.checkPatternErrors=function(e,t){if(!!e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,t?"Assigning to rvalue":"Parenthesized pattern")}};Ie.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,i=e.doubleProto;if(!t)return r>=0||i>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")};Ie.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};Ie.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var B=me.prototype;B.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==p.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var i=0,n=Object.keys(this.undefinedExports);i<n.length;i+=1){var a=n[i];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var Bn={kind:"loop"},x0={kind:"switch"};B.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Be.lastIndex=this.pos;var t=Be.exec(this.input),r=this.pos+t[0].length,i=this.input.charCodeAt(r);if(i===91||i===92)return!0;if(e)return!1;if(i===123||i>55295&&i<56320)return!0;if(it(i,!0)){for(var n=r+1;Kt(i=this.input.charCodeAt(n),!0);)++n;if(i===92||i>55295&&i<56320)return!0;var a=this.input.slice(r,n);if(!h0.test(a))return!0}return!1};B.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Be.lastIndex=this.pos;var e=Be.exec(this.input),t=this.pos+e[0].length,r;return!Ue.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(Kt(r=this.input.charCodeAt(t+8))||r>55295&&r<56320))};B.parseStatement=function(e,t,r){var i=this.type,n=this.startNode(),a;switch(this.isLet(e)&&(i=p._var,a="let"),i){case p._break:case p._continue:return this.parseBreakContinueStatement(n,i.keyword);case p._debugger:return this.parseDebuggerStatement(n);case p._do:return this.parseDoStatement(n);case p._for:return this.parseForStatement(n);case p._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case p._class:return e&&this.unexpected(),this.parseClass(n,!0);case p._if:return this.parseIfStatement(n);case p._return:return this.parseReturnStatement(n);case p._switch:return this.parseSwitchStatement(n);case p._throw:return this.parseThrowStatement(n);case p._try:return this.parseTryStatement(n);case p._const:case p._var:return a=a||this.value,e&&a!=="var"&&this.unexpected(),this.parseVarStatement(n,a);case p._while:return this.parseWhileStatement(n);case p._with:return this.parseWithStatement(n);case p.braceL:return this.parseBlock(!0,n);case p.semi:return this.parseEmptyStatement(n);case p._export:case p._import:if(this.options.ecmaVersion>10&&i===p._import){Be.lastIndex=this.pos;var o=Be.exec(this.input),f=this.pos+o[0].length,d=this.input.charCodeAt(f);if(d===40||d===46)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===p._import?this.parseImport(n):this.parseExport(n,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var l=this.value,h=this.parseExpression();return i===p.name&&h.type==="Identifier"&&this.eat(p.colon)?this.parseLabeledStatement(n,l,h,e):this.parseExpressionStatement(n,h)}};B.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next(),this.eat(p.semi)||this.insertSemicolon()?e.label=null:this.type!==p.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var n=this.labels[i];if((e.label==null||n.name===e.label.name)&&(n.kind!=null&&(r||n.kind==="loop")||e.label&&r))break}return i===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")};B.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};B.parseDoStatement=function(e){return this.next(),this.labels.push(Bn),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(p._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(p.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};B.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Bn),this.enterScope(0),this.expect(p.parenL),this.type===p.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===p._var||this.type===p._const||r){var i=this.startNode(),n=r?"let":this.value;return this.next(),this.parseVar(i,!0,n),this.finishNode(i,"VariableDeclaration"),(this.type===p._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&i.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===p._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,i)):(t>-1&&this.unexpected(t),this.parseFor(e,i))}var a=this.isContextual("let"),o=!1,f=new yi,d=this.parseExpression(t>-1?"await":!0,f);return this.type===p._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===p._in?t>-1&&this.unexpected(t):e.await=t>-1),a&&o&&this.raise(d.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(d,!1,f),this.checkLValPattern(d),this.parseForIn(e,d)):(this.checkExpressionErrors(f,!0),t>-1&&this.unexpected(t),this.parseFor(e,d))};B.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,Ar|(r?0:Vn),!1,t)};B.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(p._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};B.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(p.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};B.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(p.braceL),this.labels.push(x0),this.enterScope(0);for(var t,r=!1;this.type!==p.braceR;)if(this.type===p._case||this.type===p._default){var i=this.type===p._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(p.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};B.parseThrowStatement=function(e){return this.next(),Ue.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var y0=[];B.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===p._catch){var t=this.startNode();if(this.next(),this.eat(p.parenL)){t.param=this.parseBindingAtom();var r=t.param.type==="Identifier";this.enterScope(r?eu:0),this.checkLValPattern(t.param,r?iu:nt),this.expect(p.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(p._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};B.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")};B.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Bn),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};B.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};B.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};B.parseLabeledStatement=function(e,t,r,i){for(var n=0,a=this.labels;n<a.length;n+=1){var o=a[n];o.name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var f=this.type.isLoop?"loop":this.type===p._switch?"switch":null,d=this.labels.length-1;d>=0;d--){var l=this.labels[d];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=f;else break}return this.labels.push({name:t,kind:f,statementStart:this.start}),e.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")};B.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};B.parseBlock=function(e,t,r){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(p.braceL),e&&this.enterScope(0);this.type!==p.braceR;){var i=this.parseStatement(null);t.body.push(i)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};B.parseFor=function(e,t){return e.init=t,this.expect(p.semi),e.test=this.type===p.semi?null:this.parseExpression(),this.expect(p.semi),e.update=this.type===p.parenR?null:this.parseExpression(),this.expect(p.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};B.parseForIn=function(e,t){var r=this.type===p._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(p.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")};B.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r;;){var i=this.startNode();if(this.parseVarId(i,r),this.eat(p.eq)?i.init=this.parseMaybeAssign(t):r==="const"&&!(this.type===p._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():i.id.type!=="Identifier"&&!(t&&(this.type===p._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):i.init=null,e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(p.comma))break}return e};B.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Un:nt,!1)};var Ar=1,Vn=2,au=4;B.parseFunction=function(e,t,r,i,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===p.star&&t&Vn&&this.unexpected(),e.generator=this.eat(p.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&Ar&&(e.id=t&au&&this.type!==p.name?null:this.parseIdent(),e.id&&!(t&Vn)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Un:nt:ru));var a=this.yieldPos,o=this.awaitPos,f=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Fn(e.async,e.generator)),t&Ar||(e.id=this.type===p.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,n),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=f,this.finishNode(e,t&Ar?"FunctionDeclaration":"FunctionExpression")};B.parseFunctionParams=function(e){this.expect(p.parenL),e.params=this.parseBindingList(p.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};B.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.enterClassBody(),n=this.startNode(),a=!1;for(n.body=[],this.expect(p.braceL);this.type!==p.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(n.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(a&&this.raise(o.start,"Duplicate constructor in the same class"),a=!0):o.key&&o.key.type==="PrivateIdentifier"&&w0(i,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};B.parseClassElement=function(e){if(this.eat(p.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),i="",n=!1,a=!1,o="method",f=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(p.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===p.star?f=!0:i="static"}if(r.static=f,!i&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===p.star)&&!this.canInsertSemicolon()?a=!0:i="async"),!i&&(t>=9||!a)&&this.eat(p.star)&&(n=!0),!i&&!a&&!n){var d=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=d:i=d)}if(i?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=i,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===p.parenL||o!=="method"||n||a){var l=!r.static&&wi(r,"constructor"),h=l&&e;l&&o!=="method"&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=l?"constructor":o,this.parseClassMethod(r,n,a,h)}else this.parseClassField(r);return r};B.isClassElementNameStart=function(){return this.type===p.name||this.type===p.privateId||this.type===p.num||this.type===p.string||this.type===p.bracketL||this.type.keyword};B.parseClassElementName=function(e){this.type===p.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};B.parseClassMethod=function(e,t,r,i){var n=e.key;e.kind==="constructor"?(t&&this.raise(n.start,"Constructor can't be a generator"),r&&this.raise(n.start,"Constructor can't be an async method")):e.static&&wi(e,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var a=e.value=this.parseMethod(t,r,i);return e.kind==="get"&&a.params.length!==0&&this.raiseRecoverable(a.start,"getter should have no params"),e.kind==="set"&&a.params.length!==1&&this.raiseRecoverable(a.start,"setter should have exactly one param"),e.kind==="set"&&a.params[0].type==="RestElement"&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};B.parseClassField=function(e){if(wi(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&wi(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(p.eq)){var t=this.currentThisScope(),r=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=r}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")};B.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Cr|Mn);this.type!==p.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};B.parseClassId=function(e,t){this.type===p.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,nt,!1)):(t===!0&&this.unexpected(),e.id=null)};B.parseClassSuper=function(e){e.superClass=this.eat(p._extends)?this.parseExprSubscripts(null,!1):null};B.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};B.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,r=e.used,i=this.privateNameStack.length,n=i===0?null:this.privateNameStack[i-1],a=0;a<r.length;++a){var o=r[a];kr(t,o.name)||(n?n.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}};function w0(e,t){var r=t.key.name,i=e[r],n="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(n=(t.static?"s":"i")+t.kind),i==="iget"&&n==="iset"||i==="iset"&&n==="iget"||i==="sget"&&n==="sset"||i==="sset"&&n==="sget"?(e[r]="true",!1):i?!0:(e[r]=n,!1)}function wi(e,t){var r=e.computed,i=e.key;return!r&&(i.type==="Identifier"&&i.name===t||i.type==="Literal"&&i.value===t)}B.parseExport=function(e,t){if(this.next(),this.eat(p.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==p.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(p._default)){this.checkExport(t,"default",this.lastTokStart);var r;if(this.type===p._function||(r=this.isAsyncFunction())){var i=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(i,Ar|au,!1,r)}else if(this.type===p._class){var n=this.startNode();e.declaration=this.parseClass(n,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==p.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a<o.length;a+=1){var f=o[a];this.checkUnreserved(f.local),this.checkLocalExport(f.local),f.local.type==="Literal"&&this.raise(f.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};B.checkExport=function(e,t,r){!e||(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),kr(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)};B.checkPatternExport=function(e,t){var r=t.type;if(r==="Identifier")this.checkExport(e,t,t.start);else if(r==="ObjectPattern")for(var i=0,n=t.properties;i<n.length;i+=1){var a=n[i];this.checkPatternExport(e,a)}else if(r==="ArrayPattern")for(var o=0,f=t.elements;o<f.length;o+=1){var d=f[o];d&&this.checkPatternExport(e,d)}else r==="Property"?this.checkPatternExport(e,t.value):r==="AssignmentPattern"?this.checkPatternExport(e,t.left):r==="RestElement"?this.checkPatternExport(e,t.argument):r==="ParenthesizedExpression"&&this.checkPatternExport(e,t.expression)};B.checkVariableExport=function(e,t){if(!!e)for(var r=0,i=t;r<i.length;r+=1){var n=i[r];this.checkPatternExport(e,n.id)}};B.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};B.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(p.braceL);!this.eat(p.braceR);){if(r)r=!1;else if(this.expect(p.comma),this.afterTrailingComma(p.braceR))break;var i=this.startNode();i.local=this.parseModuleExportName(),i.exported=this.eatContextual("as")?this.parseModuleExportName():i.local,this.checkExport(e,i.exported,i.exported.start),t.push(this.finishNode(i,"ExportSpecifier"))}return t};B.parseImport=function(e){return this.next(),this.type===p.string?(e.specifiers=y0,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===p.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};B.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===p.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLValSimple(r.local,nt),e.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(p.comma))return e}if(this.type===p.star){var i=this.startNode();return this.next(),this.expectContextual("as"),i.local=this.parseIdent(),this.checkLValSimple(i.local,nt),e.push(this.finishNode(i,"ImportNamespaceSpecifier")),e}for(this.expect(p.braceL);!this.eat(p.braceR);){if(t)t=!1;else if(this.expect(p.comma),this.afterTrailingComma(p.braceR))break;var n=this.startNode();n.imported=this.parseModuleExportName(),this.eatContextual("as")?n.local=this.parseIdent():(this.checkUnreserved(n.imported),n.local=n.imported),this.checkLValSimple(n.local,nt),e.push(this.finishNode(n,"ImportSpecifier"))}return e};B.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===p.string){var e=this.parseLiteral(this.value);return g0.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};B.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};B.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var qe=me.prototype;qe.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var i=0,n=e.properties;i<n.length;i+=1){var a=n[i];this.toAssignable(a,t),a.type==="RestElement"&&(a.argument.type==="ArrayPattern"||a.argument.type==="ObjectPattern")&&this.raise(a.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e};qe.toAssignableList=function(e,t){for(var r=e.length,i=0;i<r;i++){var n=e[i];n&&this.toAssignable(n,t)}if(r){var a=e[r-1];this.options.ecmaVersion===6&&t&&a&&a.type==="RestElement"&&a.argument.type!=="Identifier"&&this.unexpected(a.argument.start)}return e};qe.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};qe.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==p.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};qe.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case p.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(p.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case p.braceL:return this.parseObj(!0)}return this.parseIdent()};qe.parseBindingList=function(e,t,r){for(var i=[],n=!0;!this.eat(e);)if(n?n=!1:this.expect(p.comma),t&&this.type===p.comma)i.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===p.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),i.push(a),this.type===p.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else{var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),i.push(o)}}return i};qe.parseBindingListItem=function(e){return e};qe.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(p.eq))return r;var i=this.startNodeAt(e,t);return i.left=r,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")};qe.checkLValSimple=function(e,t,r){t===void 0&&(t=xi);var i=t!==xi;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(i?"Binding ":"Assigning to ")+e.name+" in strict mode"),i&&(t===nt&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(kr(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==nu&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":i&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return i&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(i?"Binding":"Assigning to")+" rvalue")}};qe.checkLValPattern=function(e,t,r){switch(t===void 0&&(t=xi),e.type){case"ObjectPattern":for(var i=0,n=e.properties;i<n.length;i+=1){var a=n[i];this.checkLValInnerPattern(a,t,r)}break;case"ArrayPattern":for(var o=0,f=e.elements;o<f.length;o+=1){var d=f[o];d&&this.checkLValInnerPattern(d,t,r)}break;default:this.checkLValSimple(e,t,r)}};qe.checkLValInnerPattern=function(e,t,r){switch(t===void 0&&(t=xi),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var je=function(t,r,i,n,a){this.token=t,this.isExpr=!!r,this.preserveSpace=!!i,this.override=n,this.generator=!!a},de={b_stat:new je("{",!1),b_expr:new je("{",!0),b_tmpl:new je("${",!1),p_stat:new je("(",!1),p_expr:new je("(",!0),q_tmpl:new je("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new je("function",!1),f_expr:new je("function",!0),f_expr_gen:new je("function",!0,!1,null,!0),f_gen:new je("function",!1,!1,null,!0)},Jt=me.prototype;Jt.initialContext=function(){return[de.b_stat]};Jt.curContext=function(){return this.context[this.context.length-1]};Jt.braceIsBlock=function(e){var t=this.curContext();return t===de.f_expr||t===de.f_stat?!0:e===p.colon&&(t===de.b_stat||t===de.b_expr)?!t.isExpr:e===p._return||e===p.name&&this.exprAllowed?Ue.test(this.input.slice(this.lastTokEnd,this.start)):e===p._else||e===p.semi||e===p.eof||e===p.parenR||e===p.arrow?!0:e===p.braceL?t===de.b_stat:e===p._var||e===p._const||e===p.name?!1:!this.exprAllowed};Jt.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};Jt.updateContext=function(e){var t,r=this.type;r.keyword&&e===p.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr};Jt.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};p.parenR.updateContext=p.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===de.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};p.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?de.b_stat:de.b_expr),this.exprAllowed=!0};p.dollarBraceL.updateContext=function(){this.context.push(de.b_tmpl),this.exprAllowed=!0};p.parenL.updateContext=function(e){var t=e===p._if||e===p._for||e===p._with||e===p._while;this.context.push(t?de.p_stat:de.p_expr),this.exprAllowed=!0};p.incDec.updateContext=function(){};p._function.updateContext=p._class.updateContext=function(e){e.beforeExpr&&e!==p._else&&!(e===p.semi&&this.curContext()!==de.p_stat)&&!(e===p._return&&Ue.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===p.colon||e===p.braceL)&&this.curContext()===de.b_stat)?this.context.push(de.f_expr):this.context.push(de.f_stat),this.exprAllowed=!1};p.backQuote.updateContext=function(){this.curContext()===de.q_tmpl?this.context.pop():this.context.push(de.q_tmpl),this.exprAllowed=!1};p.star.updateContext=function(e){if(e===p._function){var t=this.context.length-1;this.context[t]===de.f_expr?this.context[t]=de.f_expr_gen:this.context[t]=de.f_gen}this.exprAllowed=!0};p.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==p.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var q=me.prototype;q.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var i=e.key,n;switch(i.type){case"Identifier":n=i.name;break;case"Literal":n=String(i.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6){n==="__proto__"&&a==="init"&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);return}n="$"+n;var o=t[n];if(o){var f;a==="init"?f=this.strict&&o.init||o.get||o.set:f=o.init||o[a],f&&this.raiseRecoverable(i.start,"Redefinition of property")}else o=t[n]={init:!1,get:!1,set:!1};o[a]=!0}};q.parseExpression=function(e,t){var r=this.start,i=this.startLoc,n=this.parseMaybeAssign(e,t);if(this.type===p.comma){var a=this.startNodeAt(r,i);for(a.expressions=[n];this.eat(p.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return n};q.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var i=!1,n=-1,a=-1,o=-1;t?(n=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new yi,i=!0);var f=this.start,d=this.startLoc;(this.type===p.parenL||this.type===p.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var l=this.parseMaybeConditional(e,t);if(r&&(l=r.call(this,l,f,d)),this.type.isAssign){var h=this.startNodeAt(f,d);return h.operator=this.value,this.type===p.eq&&(l=this.toAssignable(l,!1,t)),i||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===p.eq?this.checkLValPattern(l):this.checkLValSimple(l),h.left=l,this.next(),h.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(h,"AssignmentExpression")}else i&&this.checkExpressionErrors(t,!0);return n>-1&&(t.parenthesizedAssign=n),a>-1&&(t.trailingComma=a),l};q.parseMaybeConditional=function(e,t){var r=this.start,i=this.startLoc,n=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return n;if(this.eat(p.question)){var a=this.startNodeAt(r,i);return a.test=n,a.consequent=this.parseMaybeAssign(),this.expect(p.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return n};q.parseExprOps=function(e,t){var r=this.start,i=this.startLoc,n=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||n.start===r&&n.type==="ArrowFunctionExpression"?n:this.parseExprOp(n,r,i,-1,e)};q.parseExprOp=function(e,t,r,i,n){var a=this.type.binop;if(a!=null&&(!n||this.type!==p._in)&&a>i){var o=this.type===p.logicalOR||this.type===p.logicalAND,f=this.type===p.coalesce;f&&(a=p.logicalAND.binop);var d=this.value;this.next();var l=this.start,h=this.startLoc,y=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,n),l,h,a,n),x=this.buildBinary(t,r,e,y,d,o||f);return(o&&this.type===p.coalesce||f&&(this.type===p.logicalOR||this.type===p.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(x,t,r,i,n)}return e};q.buildBinary=function(e,t,r,i,n,a){i.type==="PrivateIdentifier"&&this.raise(i.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(e,t);return o.left=r,o.operator=n,o.right=i,this.finishNode(o,a?"LogicalExpression":"BinaryExpression")};q.parseMaybeUnary=function(e,t,r,i){var n=this.start,a=this.startLoc,o;if(this.isContextual("await")&&this.canAwait)o=this.parseAwait(i),t=!0;else if(this.type.prefix){var f=this.startNode(),d=this.type===p.incDec;f.operator=this.value,f.prefix=!0,this.next(),f.argument=this.parseMaybeUnary(null,!0,d,i),this.checkExpressionErrors(e,!0),d?this.checkLValSimple(f.argument):this.strict&&f.operator==="delete"&&f.argument.type==="Identifier"?this.raiseRecoverable(f.start,"Deleting local variable in strict mode"):f.operator==="delete"&&su(f.argument)?this.raiseRecoverable(f.start,"Private fields can not be deleted"):t=!0,o=this.finishNode(f,d?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===p.privateId)(i||this.privateNameStack.length===0)&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==p._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,i),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(n,a);l.operator=this.value,l.prefix=!1,l.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(l,"UpdateExpression")}}if(!r&&this.eat(p.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(n,a,o,this.parseMaybeUnary(null,!1,!1,i),"**",!1);else return o};function su(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&su(e.expression)}q.parseExprSubscripts=function(e,t){var r=this.start,i=this.startLoc,n=this.parseExprAtom(e,t);if(n.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return n;var a=this.parseSubscripts(n,r,i,!1,t);return e&&a.type==="MemberExpression"&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a};q.parseSubscripts=function(e,t,r,i,n){for(var a=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,o=!1;;){var f=this.parseSubscript(e,t,r,i,a,o,n);if(f.optional&&(o=!0),f===e||f.type==="ArrowFunctionExpression"){if(o){var d=this.startNodeAt(t,r);d.expression=f,f=this.finishNode(d,"ChainExpression")}return f}e=f}};q.parseSubscript=function(e,t,r,i,n,a,o){var f=this.options.ecmaVersion>=11,d=f&&this.eat(p.questionDot);i&&d&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(p.bracketL);if(l||d&&this.type!==p.parenL&&this.type!==p.backQuote||this.eat(p.dot)){var h=this.startNodeAt(t,r);h.object=e,l?(h.property=this.parseExpression(),this.expect(p.bracketR)):this.type===p.privateId&&e.type!=="Super"?h.property=this.parsePrivateIdent():h.property=this.parseIdent(this.options.allowReserved!=="never"),h.computed=!!l,f&&(h.optional=d),e=this.finishNode(h,"MemberExpression")}else if(!i&&this.eat(p.parenL)){var y=new yi,x=this.yieldPos,v=this.awaitPos,E=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var D=this.parseExprList(p.parenR,this.options.ecmaVersion>=8,!1,y);if(n&&!d&&!this.canInsertSemicolon()&&this.eat(p.arrow))return this.checkPatternErrors(y,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=x,this.awaitPos=v,this.awaitIdentPos=E,this.parseArrowExpression(this.startNodeAt(t,r),D,!0,o);this.checkExpressionErrors(y,!0),this.yieldPos=x||this.yieldPos,this.awaitPos=v||this.awaitPos,this.awaitIdentPos=E||this.awaitIdentPos;var R=this.startNodeAt(t,r);R.callee=e,R.arguments=D,f&&(R.optional=d),e=this.finishNode(R,"CallExpression")}else if(this.type===p.backQuote){(d||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var T=this.startNodeAt(t,r);T.tag=e,T.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(T,"TaggedTemplateExpression")}return e};q.parseExprAtom=function(e,t){this.type===p.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case p._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type===p.parenL&&!this.allowDirectSuper&&this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==p.dot&&this.type!==p.bracketL&&this.type!==p.parenL&&this.unexpected(),this.finishNode(r,"Super");case p._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case p.name:var n=this.start,a=this.startLoc,o=this.containsEsc,f=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&f.name==="async"&&!this.canInsertSemicolon()&&this.eat(p._function))return this.overrideContext(de.f_expr),this.parseFunction(this.startNodeAt(n,a),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(p.arrow))return this.parseArrowExpression(this.startNodeAt(n,a),[f],!1,t);if(this.options.ecmaVersion>=8&&f.name==="async"&&this.type===p.name&&!o&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return f=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(p.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,a),[f],!0,t)}return f;case p.regexp:var d=this.value;return r=this.parseLiteral(d.value),r.regex={pattern:d.pattern,flags:d.flags},r;case p.num:case p.string:return this.parseLiteral(this.value);case p._null:case p._true:case p._false:return r=this.startNode(),r.value=this.type===p._null?null:this.type===p._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case p.parenL:var l=this.start,h=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),h;case p.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(p.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case p.braceL:return this.overrideContext(de.b_expr),this.parseObj(!1,e);case p._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case p._class:return this.parseClass(this.startNode(),!1);case p._new:return this.parseNew();case p.backQuote:return this.parseTemplate();case p._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}};q.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case p.parenL:return this.parseDynamicImport(e);case p.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}};q.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(p.parenR)){var t=this.start;this.eat(p.comma)&&this.eat(p.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};q.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};q.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};q.parseParenExpression=function(){this.expect(p.parenL);var e=this.parseExpression();return this.expect(p.parenR),e};q.parseParenAndDistinguishExpression=function(e,t){var r=this.start,i=this.startLoc,n,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,f=this.startLoc,d=[],l=!0,h=!1,y=new yi,x=this.yieldPos,v=this.awaitPos,E;for(this.yieldPos=0,this.awaitPos=0;this.type!==p.parenR;)if(l?l=!1:this.expect(p.comma),a&&this.afterTrailingComma(p.parenR,!0)){h=!0;break}else if(this.type===p.ellipsis){E=this.start,d.push(this.parseParenItem(this.parseRestBinding())),this.type===p.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else d.push(this.parseMaybeAssign(!1,y,this.parseParenItem));var D=this.lastTokEnd,R=this.lastTokEndLoc;if(this.expect(p.parenR),e&&!this.canInsertSemicolon()&&this.eat(p.arrow))return this.checkPatternErrors(y,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=x,this.awaitPos=v,this.parseParenArrowList(r,i,d,t);(!d.length||h)&&this.unexpected(this.lastTokStart),E&&this.unexpected(E),this.checkExpressionErrors(y,!0),this.yieldPos=x||this.yieldPos,this.awaitPos=v||this.awaitPos,d.length>1?(n=this.startNodeAt(o,f),n.expressions=d,this.finishNodeAt(n,"SequenceExpression",D,R)):n=d[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var T=this.startNodeAt(r,i);return T.expression=n,this.finishNode(T,"ParenthesizedExpression")}else return n};q.parseParenItem=function(e){return e};q.parseParenArrowList=function(e,t,r,i){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,i)};var k0=[];q.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(p.dot)){e.meta=t;var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var i=this.start,n=this.startLoc,a=this.type===p._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),i,n,!0,!1),a&&e.callee.type==="ImportExpression"&&this.raise(i,"Cannot use new with import()"),this.eat(p.parenL)?e.arguments=this.parseExprList(p.parenR,this.options.ecmaVersion>=8,!1):e.arguments=k0,this.finishNode(e,"NewExpression")};q.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===p.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
`),cooked:this.value},this.next(),r.tail=this.type===p.backQuote,this.finishNode(r,"TemplateElement")};q.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var i=this.parseTemplateElement({isTagged:t});for(r.quasis=[i];!i.tail;)this.type===p.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(p.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(p.braceR),r.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")};q.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===p.name||this.type===p.num||this.type===p.string||this.type===p.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===p.star)&&!Ue.test(this.input.slice(this.lastTokEnd,this.start))};q.parseObj=function(e,t){var r=this.startNode(),i=!0,n={};for(r.properties=[],this.next();!this.eat(p.braceR);){if(i)i=!1;else if(this.expect(p.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(p.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,n,t),r.properties.push(a)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};q.parseProperty=function(e,t){var r=this.startNode(),i,n,a,o;if(this.options.ecmaVersion>=9&&this.eat(p.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===p.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(r.argument=this.parseMaybeAssign(!1,t),this.type===p.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(i=this.eat(p.star)));var f=this.containsEsc;return this.parsePropertyName(r),!e&&!f&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(r)?(n=!0,i=this.options.ecmaVersion>=9&&this.eat(p.star),this.parsePropertyName(r)):n=!1,this.parsePropertyValue(r,e,i,n,a,o,t,f),this.finishNode(r,"Property")};q.parsePropertyValue=function(e,t,r,i,n,a,o,f){if((r||i)&&this.type===p.colon&&this.unexpected(),this.eat(p.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===p.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,i);else if(!t&&!f&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==p.comma&&this.type!==p.braceR&&this.type!==p.eq){(r||i)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var d=e.kind==="get"?0:1;if(e.value.params.length!==d){var l=e.value.start;e.kind==="get"?this.raiseRecoverable(l,"getter should have no params"):this.raiseRecoverable(l,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||i)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=n),e.kind="init",t?e.value=this.parseMaybeDefault(n,a,this.copyNode(e.key)):this.type===p.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()};q.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(p.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(p.bracketR),e.key;e.computed=!1}return e.key=this.type===p.num||this.type===p.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};q.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};q.parseMethod=function(e,t,r){var i=this.startNode(),n=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=e),this.options.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Fn(t,i.generator)|Mn|(r?tu:0)),this.expect(p.parenL),i.params=this.parseBindingList(p.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0,!1),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(i,"FunctionExpression")};q.parseArrowExpression=function(e,t,r,i){var n=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(Fn(r,!1)|Jo),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,i),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")};q.parseFunctionBody=function(e,t,r,i){var n=t&&this.type!==p.braceL,a=this.strict,o=!1;if(n)e.body=this.parseMaybeAssign(i),e.expression=!0,this.checkParams(e,!1);else{var f=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||f)&&(o=this.strictDirective(this.end),o&&f&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var d=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,nu),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=d}this.exitScope()};q.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1){var i=r[t];if(i.type!=="Identifier")return!1}return!0};q.checkParams=function(e,t){for(var r=Object.create(null),i=0,n=e.params;i<n.length;i+=1){var a=n[i];this.checkLValInnerPattern(a,Un,t?null:r)}};q.parseExprList=function(e,t,r,i){for(var n=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(p.comma),t&&this.afterTrailingComma(e))break;var o=void 0;r&&this.type===p.comma?o=null:this.type===p.ellipsis?(o=this.parseSpread(i),i&&this.type===p.comma&&i.trailingComma<0&&(i.trailingComma=this.start)):o=this.parseMaybeAssign(!1,i),n.push(o)}return n};q.checkUnreserved=function(e){var t=e.start,r=e.end,i=e.name;if(this.inGenerator&&i==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&i==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&i==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(i==="arguments"||i==="await")&&this.raise(t,"Cannot use "+i+" in class static initialization block"),this.keywords.test(i)&&this.raise(t,"Unexpected keyword '"+i+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,r).indexOf("\\")!==-1)){var n=this.strict?this.reservedWordsStrict:this.reservedWords;n.test(i)&&(!this.inAsync&&i==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+i+"' is reserved"))}};q.parseIdent=function(e){var t=this.startNode();return this.type===p.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,(t.name==="class"||t.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};q.parsePrivateIdent=function(){var e=this.startNode();return this.type===p.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e};q.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===p.semi||this.canInsertSemicolon()||this.type!==p.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(p.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};q.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var ki=me.prototype;ki.raise=function(e,t){var r=Ko(this.input,e);t+=" ("+r.line+":"+r.column+")";var i=new SyntaxError(t);throw i.pos=e,i.loc=r,i.raisedAt=this.pos,i};ki.raiseRecoverable=ki.raise;ki.curPosition=function(){if(this.options.locations)return new Er(this.curLine,this.pos-this.lineStart)};var gt=me.prototype,E0=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};gt.enterScope=function(e){this.scopeStack.push(new E0(e))};gt.exitScope=function(){this.scopeStack.pop()};gt.treatFunctionsAsVarInScope=function(e){return e.flags&Qt||!this.inModule&&e.flags&Sr};gt.declareName=function(e,t,r){var i=!1;if(t===nt){var n=this.currentScope();i=n.lexical.indexOf(e)>-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1,n.lexical.push(e),this.inModule&&n.flags&Sr&&delete this.undefinedExports[e]}else if(t===iu){var a=this.currentScope();a.lexical.push(e)}else if(t===ru){var o=this.currentScope();this.treatFunctionsAsVar?i=o.lexical.indexOf(e)>-1:i=o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var f=this.scopeStack.length-1;f>=0;--f){var d=this.scopeStack[f];if(d.lexical.indexOf(e)>-1&&!(d.flags&eu&&d.lexical[0]===e)||!this.treatFunctionsAsVarInScope(d)&&d.functions.indexOf(e)>-1){i=!0;break}if(d.var.push(e),this.inModule&&d.flags&Sr&&delete this.undefinedExports[e],d.flags&Dn)break}i&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")};gt.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};gt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};gt.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Dn)return t}};gt.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Dn&&!(t.flags&Jo))return t}};var Ei=function(t,r,i){this.type="",this.start=r,this.end=0,t.options.locations&&(this.loc=new _i(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[r,0])},Ir=me.prototype;Ir.startNode=function(){return new Ei(this,this.start,this.startLoc)};Ir.startNodeAt=function(e,t){return new Ei(this,e,t)};function ou(e,t,r,i){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=i),this.options.ranges&&(e.range[1]=r),e}Ir.finishNode=function(e,t){return ou.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Ir.finishNodeAt=function(e,t,r,i){return ou.call(this,e,t,r,i)};Ir.copyNode=function(e){var t=new Ei(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var uu="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",lu=uu+" Extended_Pictographic",hu=lu,fu=hu+" EBase EComp EMod EPres ExtPict",cu=fu,S0=cu,C0={9:uu,10:lu,11:hu,12:fu,13:cu,14:S0},pu="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",du="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",vu=du+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",gu=vu+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",bu=gu+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",mu=bu+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",A0=mu+" Kawi Nag_Mundari Nagm",I0={9:du,10:vu,11:gu,12:bu,13:mu,14:A0},_u={};function N0(e){var t=_u[e]={binary:Nt(C0[e]+" "+pu),nonBinary:{General_Category:Nt(pu),Script:Nt(I0[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(Si=0,zn=[9,10,11,12,13,14];Si<zn.length;Si+=1)xu=zn[Si],N0(xu);var xu,Si,zn,F=me.prototype,at=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":""),this.unicodeProperties=_u[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};at.prototype.reset=function(t,r,i){var n=i.indexOf("u")!==-1;this.start=t|0,this.source=r+"",this.flags=i,this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchN=n&&this.parser.options.ecmaVersion>=9};at.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};at.prototype.at=function(t,r){r===void 0&&(r=!1);var i=this.source,n=i.length;if(t>=n)return-1;var a=i.charCodeAt(t);if(!(r||this.switchU)||a<=55295||a>=57344||t+1>=n)return a;var o=i.charCodeAt(t+1);return o>=56320&&o<=57343?(a<<10)+o-56613888:a};at.prototype.nextIndex=function(t,r){r===void 0&&(r=!1);var i=this.source,n=i.length;if(t>=n)return n;var a=i.charCodeAt(t),o;return!(r||this.switchU)||a<=55295||a>=57344||t+1>=n||(o=i.charCodeAt(t+1))<56320||o>57343?t+1:t+2};at.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};at.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};at.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};at.prototype.eat=function(t,r){return r===void 0&&(r=!1),this.current(r)===t?(this.advance(r),!0):!1};F.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,i=0;i<r.length;i++){var n=r.charAt(i);t.indexOf(n)===-1&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(n,i+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}};F.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))};F.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var i=r[t];e.groupNames.indexOf(i)===-1&&e.raise("Invalid named capture referenced")}};F.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};F.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};F.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};F.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1};F.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};F.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};F.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var i=0,n=-1;if(this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue),e.eat(125)))return n!==-1&&n<i&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1};F.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};F.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};F.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1};F.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};F.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};F.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};F.regexp_eatSyntaxCharacter=function(e){var t=e.current();return yu(t)?(e.lastIntValue=t,e.advance(),!0):!1};function yu(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}F.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;(r=e.current())!==-1&&!yu(r);)e.advance();return e.pos!==t};F.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};F.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}};F.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};F.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=vt(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=vt(e.lastIntValue);return!0}return!1};F.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return e.advance(r),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),T0(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function T0(e){return it(e,!0)||e===36||e===95}F.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return e.advance(r),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),R0(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function R0(e){return Kt(e,!0)||e===36||e===95||e===8204||e===8205}F.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};F.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1};F.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};F.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};F.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};F.regexp_eatZero=function(e){return e.current()===48&&!Ci(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};F.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};F.regexp_eatControlLetter=function(e){var t=e.current();return wu(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function wu(e){return e>=65&&e<=90||e>=97&&e<=122}F.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(i&&n>=55296&&n<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(n-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=n}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&P0(e.lastIntValue))return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1};function P0(e){return e>=0&&e<=1114111}F.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};F.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};F.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(L0(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1};function L0(e){return e===100||e===68||e===115||e===83||e===119||e===87}F.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,i),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,n),!0}return!1};F.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){kr(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")};F.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")};F.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";ku(t=e.current());)e.lastStringValue+=vt(t),e.advance();return e.lastStringValue!==""};function ku(e){return wu(e)||e===95}F.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";$0(t=e.current());)e.lastStringValue+=vt(t),e.advance();return e.lastStringValue!==""};function $0(e){return ku(e)||Ci(e)}F.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};F.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1};F.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;e.switchU&&(t===-1||r===-1)&&e.raise("Invalid character class"),t!==-1&&r!==-1&&t>r&&e.raise("Range out of order in character class")}}};F.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(r===99||Cu(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var i=e.current();return i!==93?(e.lastIntValue=i,e.advance(),!0):!1};F.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};F.regexp_eatClassControlLetter=function(e){var t=e.current();return Ci(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};F.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};F.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Ci(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t};function Ci(e){return e>=48&&e<=57}F.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Eu(r=e.current());)e.lastIntValue=16*e.lastIntValue+Su(r),e.advance();return e.pos!==t};function Eu(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Su(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}F.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+r*8+e.lastIntValue:e.lastIntValue=t*8+r}else e.lastIntValue=t;return!0}return!1};F.regexp_eatOctalDigit=function(e){var t=e.current();return Cu(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Cu(e){return e>=48&&e<=55}F.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var i=0;i<t;++i){var n=e.current();if(!Eu(n))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+Su(n),e.advance()}return!0};var Hn=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new _i(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},ee=me.prototype;ee.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Hn(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};ee.getToken=function(){return this.next(),new Hn(this)};typeof Symbol!="undefined"&&(ee[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===p.eof,value:t}}}});ee.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(p.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};ee.readToken=function(e){return it(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};ee.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888};ee.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var i=void 0,n=t;(i=Wo(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=i;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())};ee.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Xt(i);)i=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())};ee.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&qo.test(String.fromCharCode(e)))++this.pos;else break e}}};ee.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)};ee.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(p.ellipsis)):(++this.pos,this.finishToken(p.dot))};ee.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(p.assign,2):this.finishOp(p.slash,1)};ee.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,i=e===42?p.star:p.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++r,i=p.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(p.assign,r+1):this.finishOp(i,r)};ee.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(p.assign,3)}return this.finishOp(e===124?p.logicalOR:p.logicalAND,2)}return t===61?this.finishOp(p.assign,2):this.finishOp(e===124?p.bitwiseOR:p.bitwiseAND,1)};ee.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(p.assign,2):this.finishOp(p.bitwiseXOR,1)};ee.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Ue.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(p.incDec,2):t===61?this.finishOp(p.assign,2):this.finishOp(p.plusMin,1)};ee.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(p.assign,r+1):this.finishOp(p.bitShift,r)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(r=2),this.finishOp(p.relational,r))};ee.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(p.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(p.arrow)):this.finishOp(e===61?p.eq:p.prefix,1)};ee.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(p.questionDot,2)}if(t===63){if(e>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(p.assign,3)}return this.finishOp(p.coalesce,2)}}return this.finishOp(p.question,1)};ee.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),it(t,!0)||t===92))return this.finishToken(p.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+vt(t)+"'")};ee.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(p.parenL);case 41:return++this.pos,this.finishToken(p.parenR);case 59:return++this.pos,this.finishToken(p.semi);case 44:return++this.pos,this.finishToken(p.comma);case 91:return++this.pos,this.finishToken(p.bracketL);case 93:return++this.pos,this.finishToken(p.bracketR);case 123:return++this.pos,this.finishToken(p.braceL);case 125:return++this.pos,this.finishToken(p.braceR);case 58:return++this.pos,this.finishToken(p.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(p.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(p.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+vt(e)+"'")};ee.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)};ee.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(Ue.test(i)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if(i==="[")t=!0;else if(i==="]"&&t)t=!1;else if(i==="/"&&!t)break;e=i==="\\"}++this.pos}var n=this.input.slice(r,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var f=this.regexpState||(this.regexpState=new at(this));f.reset(r,n,o),this.validateRegExpFlags(f),this.validateRegExpPattern(f);var d=null;try{d=new RegExp(n,o)}catch(l){}return this.finishToken(p.regexp,{pattern:n,flags:o,value:d})};ee.readInt=function(e,t,r){for(var i=this.options.ecmaVersion>=12&&t===void 0,n=r&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,f=0,d=0,l=t==null?1/0:t;d<l;++d,++this.pos){var h=this.input.charCodeAt(this.pos),y=void 0;if(i&&h===95){n&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),f===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),d===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),f=h;continue}if(h>=97?y=h-97+10:h>=65?y=h-65+10:h>=48&&h<=57?y=h-48:y=1/0,y>=e)break;f=h,o=o*e+y}return i&&f===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||t!=null&&this.pos-a!==t?null:o};function O0(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Au(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}ee.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return r==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=Au(this.input.slice(t,this.pos)),++this.pos):it(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(p.num,r)};ee.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var r=this.pos-t>=2&&this.input.charCodeAt(t)===48;r&&this.strict&&this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&i===110){var n=Au(this.input.slice(t,this.pos));return++this.pos,it(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(p.num,n)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),i===46&&!r&&(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),(i===69||i===101)&&!r&&(i=this.input.charCodeAt(++this.pos),(i===43||i===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),it(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=O0(this.input.slice(t,this.pos),r);return this.finishToken(p.num,a)};ee.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else t=this.readHexChar(4);return t};ee.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;i===92?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):i===8232||i===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Xt(i)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(p.string,t)};var Iu={};ee.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Iu)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};ee.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Iu;this.raise(e,t)};ee.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===p.template||this.type===p.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(p.dollarBraceL)):(++this.pos,this.finishToken(p.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(p.template,e));if(r===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Xt(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
`;break;default:e+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};ee.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(p.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")};ee.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return vt(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(i,8);return n>255&&(i=i.slice(0,-1),n=parseInt(i,8)),this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),(i!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return Xt(t)?"":String.fromCharCode(t)}};ee.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};ee.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var n=this.fullCharCodeAtPos();if(Kt(n,i))this.pos+=n<=65535?1:2;else if(n===92){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?it:Kt)(o,i)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=vt(o),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)};ee.readWord=function(){var e=this.readWord1(),t=p.name;return this.keywords.test(e)&&(t=Ln[e]),this.finishToken(t,e)};var M0="8.8.2";me.acorn={Parser:me,version:M0,defaultOptions:$n,Position:Er,SourceLocation:_i,getLineInfo:Ko,Node:Ei,TokenType:se,tokTypes:p,keywordTypes:Ln,TokContext:je,tokContexts:de,isIdentifierChar:Kt,isIdentifierStart:it,Token:Hn,isNewLine:Xt,lineBreak:Ue,lineBreakG:p0,nonASCIIwhitespace:qo};function Nu(e,t){return me.parse(e,t)}var D0={},Gn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(Nr=0;Nr<Gn.length;Nr++)D0[Gn.charCodeAt(Nr)]=Nr;var Nr;function Tu(e){for(var t=0,r=0,i=0,n=0,a="",o=0;o<e.length;o++){var f=e[o];if(o>0&&(a+=";"),f.length!==0){for(var d=0,l=[],h=0,y=f;h<y.length;h++){var x=y[h],v=Tr(x[0]-d);d=x[0],x.length>1&&(v+=Tr(x[1]-t)+Tr(x[2]-r)+Tr(x[3]-i),t=x[1],r=x[2],i=x[3]),x.length===5&&(v+=Tr(x[4]-n),n=x[4]),l.push(v)}a+=l.join(",")}}return a}function Tr(e){var t="";e=e<0?-e<<1|1:e<<1;do{var r=e&31;e>>>=5,e>0&&(r|=32),t+=Gn[r]}while(e>0);return t}var Ai=function e(t){this.bits=t instanceof e?t.bits.slice():[]};Ai.prototype.add=function(t){this.bits[t>>5]|=1<<(t&31)};Ai.prototype.has=function(t){return!!(this.bits[t>>5]&1<<(t&31))};var Ee=function(t,r,i){this.start=t,this.end=r,this.original=i,this.intro="",this.outro="",this.content=i,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};Ee.prototype.appendLeft=function(t){this.outro+=t};Ee.prototype.appendRight=function(t){this.intro=this.intro+t};Ee.prototype.clone=function(){var t=new Ee(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t};Ee.prototype.contains=function(t){return this.start<t&&t<this.end};Ee.prototype.eachNext=function(t){for(var r=this;r;)t(r),r=r.next};Ee.prototype.eachPrevious=function(t){for(var r=this;r;)t(r),r=r.previous};Ee.prototype.edit=function(t,r,i){return this.content=t,i||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this};Ee.prototype.prependLeft=function(t){this.outro=t+this.outro};Ee.prototype.prependRight=function(t){this.intro=t+this.intro};Ee.prototype.split=function(t){var r=t-this.start,i=this.original.slice(0,r),n=this.original.slice(r);this.original=i;var a=new Ee(t,this.end,n);return a.outro=this.outro,this.outro="",this.end=t,this.edited?(a.edit("",!1),this.content=""):this.content=i,a.next=this.next,a.next&&(a.next.previous=a),a.previous=this,this.next=a,a};Ee.prototype.toString=function(){return this.intro+this.content+this.outro};Ee.prototype.trimEnd=function(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var r=this.content.replace(t,"");if(r.length)return r!==this.content&&this.split(this.start+r.length).edit("",void 0,!0),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0};Ee.prototype.trimStart=function(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var r=this.content.replace(t,"");if(r.length)return r!==this.content&&(this.split(this.end-r.length),this.edit("",void 0,!0)),!0;if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0};var Zn=function(){throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};typeof window!="undefined"&&typeof window.btoa=="function"?Zn=function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer=="function"&&(Zn=function(e){return Buffer.from(e,"utf-8").toString("base64")});var Ii=function(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=Tu(t.mappings)};Ii.prototype.toString=function(){return JSON.stringify(this)};Ii.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+Zn(this.toString())};function F0(e){var t=e.split(`
`),r=t.filter(function(a){return/^\t+/.test(a)}),i=t.filter(function(a){return/^ {2,}/.test(a)});if(r.length===0&&i.length===0)return null;if(r.length>=i.length)return" ";var n=i.reduce(function(a,o){var f=/^ +/.exec(o)[0].length;return Math.min(f,a)},1/0);return new Array(n+1).join(" ")}function Ru(e,t){var r=e.split(/[/\\]/),i=t.split(/[/\\]/);for(r.pop();r[0]===i[0];)r.shift(),i.shift();if(r.length)for(var n=r.length;n--;)r[n]="..";return r.concat(i).join("/")}var U0=Object.prototype.toString;function Pu(e){return U0.call(e)==="[object Object]"}function Wn(e){for(var t=e.split(`
`),r=[],i=0,n=0;i<t.length;i++)r.push(n),n+=t[i].length+1;return function(o){for(var f=0,d=r.length;f<d;){var l=f+d>>1;o<r[l]?d=l:f=l+1}var h=f-1,y=o-r[h];return{line:h,column:y}}}var Rr=function(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};Rr.prototype.addEdit=function(t,r,i,n){if(r.length){var a=[this.generatedCodeColumn,t,i.line,i.column];n>=0&&a.push(n),this.rawSegments.push(a)}else this.pending&&this.rawSegments.push(this.pending);this.advance(r),this.pending=null};Rr.prototype.addUneditedChunk=function(t,r,i,n,a){for(var o=r.start,f=!0;o<r.end;)(this.hires||f||a.has(o))&&this.rawSegments.push([this.generatedCodeColumn,t,n.line,n.column]),i[o]===`
`?(n.line+=1,n.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,f=!0):(n.column+=1,this.generatedCodeColumn+=1,f=!1),o+=1;this.pending=null};Rr.prototype.advance=function(t){if(!!t){var r=t.split(`
`);if(r.length>1){for(var i=0;i<r.length-1;i++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=r[r.length-1].length}};var Pr=`
`,er={insertLeft:!1,insertRight:!1,storeName:!1},X=function(t,r){r===void 0&&(r={});var i=new Ee(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:i},lastChunk:{writable:!0,value:i},lastSearchedChunk:{writable:!0,value:i},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:r.filename},indentExclusionRanges:{writable:!0,value:r.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new Ai},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:F0(t)}}),this.byStart[0]=i,this.byEnd[t.length]=i};X.prototype.addSourcemapLocation=function(t){this.sourcemapLocations.add(t)};X.prototype.append=function(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this};X.prototype.appendLeft=function(t,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);var i=this.byEnd[t];return i?i.appendLeft(r):this.intro+=r,this};X.prototype.appendRight=function(t,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);var i=this.byStart[t];return i?i.appendRight(r):this.outro+=r,this};X.prototype.clone=function(){for(var t=new X(this.original,{filename:this.filename}),r=this.firstChunk,i=t.firstChunk=t.lastSearchedChunk=r.clone();r;){t.byStart[i.start]=i,t.byEnd[i.end]=i;var n=r.next,a=n&&n.clone();a&&(i.next=a,a.previous=i,i=a),r=n}return t.lastChunk=i,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new Ai(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t};X.prototype.generateDecodedMap=function(t){var r=this;t=t||{};var i=0,n=Object.keys(this.storedNames),a=new Rr(t.hires),o=Wn(this.original);return this.intro&&a.advance(this.intro),this.firstChunk.eachNext(function(f){var d=o(f.start);f.intro.length&&a.advance(f.intro),f.edited?a.addEdit(i,f.content,d,f.storeName?n.indexOf(f.original):-1):a.addUneditedChunk(i,f,r.original,d,r.sourcemapLocations),f.outro.length&&a.advance(f.outro)}),{file:t.file?t.file.split(/[/\\]/).pop():null,sources:[t.source?Ru(t.file||"",t.source):null],sourcesContent:t.includeContent?[this.original]:[null],names:n,mappings:a.raw}};X.prototype.generateMap=function(t){return new Ii(this.generateDecodedMap(t))};X.prototype.getIndentString=function(){return this.indentStr===null?" ":this.indentStr};X.prototype.indent=function(t,r){var i=/^[^\r\n]/gm;if(Pu(t)&&(r=t,t=void 0),t=t!==void 0?t:this.indentStr||" ",t==="")return this;r=r||{};var n={};if(r.exclude){var a=typeof r.exclude[0]=="number"?[r.exclude]:r.exclude;a.forEach(function(x){for(var v=x[0];v<x[1];v+=1)n[v]=!0})}var o=r.indentStart!==!1,f=function(x){return o?""+t+x:(o=!0,x)};this.intro=this.intro.replace(i,f);for(var d=0,l=this.firstChunk;l;){var h=l.end;if(l.edited)n[d]||(l.content=l.content.replace(i,f),l.content.length&&(o=l.content[l.content.length-1]===`
`));else for(d=l.start;d<h;){if(!n[d]){var y=this.original[d];y===`
`?o=!0:y!=="\r"&&o&&(o=!1,d===l.start||(this._splitChunk(l,d),l=l.next),l.prependRight(t))}d+=1}d=l.end,l=l.next}return this.outro=this.outro.replace(i,f),this};X.prototype.insert=function(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")};X.prototype.insertLeft=function(t,r){return er.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),er.insertLeft=!0),this.appendLeft(t,r)};X.prototype.insertRight=function(t,r){return er.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),er.insertRight=!0),this.prependRight(t,r)};X.prototype.move=function(t,r,i){if(i>=t&&i<=r)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(r),this._split(i);var n=this.byStart[t],a=this.byEnd[r],o=n.previous,f=a.next,d=this.byStart[i];if(!d&&a===this.lastChunk)return this;var l=d?d.previous:this.lastChunk;return o&&(o.next=f),f&&(f.previous=o),l&&(l.next=n),d&&(d.previous=a),n.previous||(this.firstChunk=a.next),a.next||(this.lastChunk=n.previous,this.lastChunk.next=null),n.previous=l,a.next=d||null,l||(this.firstChunk=n),d||(this.lastChunk=a),this};X.prototype.overwrite=function(t,r,i,n){if(typeof i!="string")throw new TypeError("replacement content must be a string");for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length;if(r>this.original.length)throw new Error("end is out of bounds");if(t===r)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(r),n===!0&&(er.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),er.storeName=!0),n={storeName:!0});var a=n!==void 0?n.storeName:!1,o=n!==void 0?n.contentOnly:!1;if(a){var f=this.original.slice(t,r);Object.defineProperty(this.storedNames,f,{writable:!0,value:!0,enumerable:!0})}var d=this.byStart[t],l=this.byEnd[r];if(d){for(var h=d;h!==l;){if(h.next!==this.byStart[h.end])throw new Error("Cannot overwrite across a split point");h=h.next,h.edit("",!1)}d.edit(i,a,o)}else{var y=new Ee(t,r,"").edit(i,a);l.next=y,y.previous=l}return this};X.prototype.prepend=function(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this};X.prototype.prependLeft=function(t,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);var i=this.byEnd[t];return i?i.prependLeft(r):this.intro=r+this.intro,this};X.prototype.prependRight=function(t,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);var i=this.byStart[t];return i?i.prependRight(r):this.outro=r+this.outro,this};X.prototype.remove=function(t,r){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length;if(t===r)return this;if(t<0||r>this.original.length)throw new Error("Character is out of bounds");if(t>r)throw new Error("end must be greater than start");this._split(t),this._split(r);for(var i=this.byStart[t];i;)i.intro="",i.outro="",i.edit(""),i=r>i.end?this.byStart[i.end]:null;return this};X.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""};X.prototype.lastLine=function(){var t=this.outro.lastIndexOf(Pr);if(t!==-1)return this.outro.substr(t+1);var r=this.outro,i=this.lastChunk;do{if(i.outro.length>0){if(t=i.outro.lastIndexOf(Pr),t!==-1)return i.outro.substr(t+1)+r;r=i.outro+r}if(i.content.length>0){if(t=i.content.lastIndexOf(Pr),t!==-1)return i.content.substr(t+1)+r;r=i.content+r}if(i.intro.length>0){if(t=i.intro.lastIndexOf(Pr),t!==-1)return i.intro.substr(t+1)+r;r=i.intro+r}}while(i=i.previous);return t=this.intro.lastIndexOf(Pr),t!==-1?this.intro.substr(t+1)+r:this.intro+r};X.prototype.slice=function(t,r){for(t===void 0&&(t=0),r===void 0&&(r=this.original.length);t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length;for(var i="",n=this.firstChunk;n&&(n.start>t||n.end<=t);){if(n.start<r&&n.end>=r)return i;n=n.next}if(n&&n.edited&&n.start!==t)throw new Error("Cannot use replaced character "+t+" as slice start anchor.");for(var a=n;n;){n.intro&&(a!==n||n.start===t)&&(i+=n.intro);var o=n.start<r&&n.end>=r;if(o&&n.edited&&n.end!==r)throw new Error("Cannot use replaced character "+r+" as slice end anchor.");var f=a===n?t-n.start:0,d=o?n.content.length+r-n.end:n.content.length;if(i+=n.content.slice(f,d),n.outro&&(!o||n.end===r)&&(i+=n.outro),o)break;n=n.next}return i};X.prototype.snip=function(t,r){var i=this.clone();return i.remove(0,t),i.remove(r,i.original.length),i};X.prototype._split=function(t){if(!(this.byStart[t]||this.byEnd[t]))for(var r=this.lastSearchedChunk,i=t>r.end;r;){if(r.contains(t))return this._splitChunk(r,t);r=i?this.byStart[r.end]:this.byEnd[r.start]}};X.prototype._splitChunk=function(t,r){if(t.edited&&t.content.length){var i=Wn(this.original)(r);throw new Error("Cannot split a chunk that has already been edited ("+i.line+":"+i.column+' \u2013 "'+t.original+'")')}var n=t.split(r);return this.byEnd[r]=t,this.byStart[r]=n,this.byEnd[n.end]=n,t===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=t,!0};X.prototype.toString=function(){for(var t=this.intro,r=this.firstChunk;r;)t+=r.toString(),r=r.next;return t+this.outro};X.prototype.isEmpty=function(){var t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1;while(t=t.next);return!0};X.prototype.length=function(){var t=this.firstChunk,r=0;do r+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return r};X.prototype.trimLines=function(){return this.trim("[\\r\\n]")};X.prototype.trim=function(t){return this.trimStart(t).trimEnd(t)};X.prototype.trimEndAborted=function(t){var r=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(r,""),this.outro.length)return!0;var i=this.lastChunk;do{var n=i.end,a=i.trimEnd(r);if(i.end!==n&&(this.lastChunk===i&&(this.lastChunk=i.next),this.byEnd[i.end]=i,this.byStart[i.next.start]=i.next,this.byEnd[i.next.end]=i.next),a)return!0;i=i.previous}while(i);return!1};X.prototype.trimEnd=function(t){return this.trimEndAborted(t),this};X.prototype.trimStartAborted=function(t){var r=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(r,""),this.intro.length)return!0;var i=this.firstChunk;do{var n=i.end,a=i.trimStart(r);if(i.end!==n&&(i===this.lastChunk&&(this.lastChunk=i.next),this.byEnd[i.end]=i,this.byStart[i.next.start]=i.next,this.byEnd[i.next.end]=i.next),a)return!0;i=i.next}while(i);return!1};X.prototype.trimStart=function(t){return this.trimStartAborted(t),this};var Lu=Object.prototype.hasOwnProperty,Ae=function(t){t===void 0&&(t={}),this.intro=t.intro||"",this.separator=t.separator!==void 0?t.separator:`
`,this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}};Ae.prototype.addSource=function(t){if(t instanceof X)return this.addSource({content:t,filename:t.filename,separator:this.separator});if(!Pu(t)||!t.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach(function(i){Lu.call(t,i)||(t[i]=t.content[i])}),t.separator===void 0&&(t.separator=this.separator),t.filename)if(!Lu.call(this.uniqueSourceIndexByFilename,t.filename))this.uniqueSourceIndexByFilename[t.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:t.filename,content:t.content.original});else{var r=this.uniqueSources[this.uniqueSourceIndexByFilename[t.filename]];if(t.content.original!==r.content)throw new Error("Illegal source: same filename ("+t.filename+"), different contents")}return this.sources.push(t),this};Ae.prototype.append=function(t,r){return this.addSource({content:new X(t),separator:r&&r.separator||""}),this};Ae.prototype.clone=function(){var t=new Ae({intro:this.intro,separator:this.separator});return this.sources.forEach(function(r){t.addSource({filename:r.filename,content:r.content.clone(),separator:r.separator})}),t};Ae.prototype.generateDecodedMap=function(t){var r=this;t===void 0&&(t={});var i=[];this.sources.forEach(function(a){Object.keys(a.content.storedNames).forEach(function(o){~i.indexOf(o)||i.push(o)})});var n=new Rr(t.hires);return this.intro&&n.advance(this.intro),this.sources.forEach(function(a,o){o>0&&n.advance(r.separator);var f=a.filename?r.uniqueSourceIndexByFilename[a.filename]:-1,d=a.content,l=Wn(d.original);d.intro&&n.advance(d.intro),d.firstChunk.eachNext(function(h){var y=l(h.start);h.intro.length&&n.advance(h.intro),a.filename?h.edited?n.addEdit(f,h.content,y,h.storeName?i.indexOf(h.original):-1):n.addUneditedChunk(f,h,d.original,y,d.sourcemapLocations):n.advance(h.content),h.outro.length&&n.advance(h.outro)}),d.outro&&n.advance(d.outro)}),{file:t.file?t.file.split(/[/\\]/).pop():null,sources:this.uniqueSources.map(function(a){return t.file?Ru(t.file,a.filename):a.filename}),sourcesContent:this.uniqueSources.map(function(a){return t.includeContent?a.content:null}),names:i,mappings:n.raw}};Ae.prototype.generateMap=function(t){return new Ii(this.generateDecodedMap(t))};Ae.prototype.getIndentString=function(){var t={};return this.sources.forEach(function(r){var i=r.content.indentStr;i!==null&&(t[i]||(t[i]=0),t[i]+=1)}),Object.keys(t).sort(function(r,i){return t[r]-t[i]})[0]||" "};Ae.prototype.indent=function(t){var r=this;if(arguments.length||(t=this.getIndentString()),t==="")return this;var i=!this.intro||this.intro.slice(-1)===`
`;return this.sources.forEach(function(n,a){var o=n.separator!==void 0?n.separator:r.separator,f=i||a>0&&/\r?\n$/.test(o);n.content.indent(t,{exclude:n.indentExclusionRanges,indentStart:f}),i=n.content.lastChar()===`
`}),this.intro&&(this.intro=t+this.intro.replace(/^[^\n]/gm,function(n,a){return a>0?t+n:n})),this};Ae.prototype.prepend=function(t){return this.intro=t+this.intro,this};Ae.prototype.toString=function(){var t=this,r=this.sources.map(function(i,n){var a=i.separator!==void 0?i.separator:t.separator,o=(n>0?a:"")+i.content.toString();return o}).join("");return this.intro+r};Ae.prototype.isEmpty=function(){return!(this.intro.length&&this.intro.trim()||this.sources.some(function(t){return!t.content.isEmpty()}))};Ae.prototype.length=function(){return this.sources.reduce(function(t,r){return t+r.content.length()},this.intro.length)};Ae.prototype.trimLines=function(){return this.trim("[\\r\\n]")};Ae.prototype.trim=function(t){return this.trimStart(t).trimEnd(t)};Ae.prototype.trimStart=function(t){var r=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(r,""),!this.intro){var i,n=0;do if(i=this.sources[n++],!i)break;while(!i.content.trimStartAborted(t))}return this};Ae.prototype.trimEnd=function(t){var r=new RegExp((t||"\\s")+"+$"),i,n=this.sources.length-1;do if(i=this.sources[n--],!i){this.intro=this.intro.replace(r,"");break}while(!i.content.trimEndAborted(t));return this};var Lr=new WeakSet;function Ni(e){if(Lr.has(e))throw new Error("Cannot run helper method after manipulator callback of iterated or target node has finished running")}var bt=new WeakMap;var Yn={};Jd(Yn,{parent:()=>Ti,source:()=>qn,update:()=>jn});function qn(e){let{context:t}=bt.get(e);return t.magicString.slice(e.start,e.end).toString()}function Ti(e,t=1){let{parent:r}=bt.get(e);if(!!r)return t<=1?r:Ti(r,t-1)}function jn(e,t){Ni(e);let{context:r}=bt.get(e);r.magicString.overwrite(e.start,e.end,t)}function tr(e){return typeof e=="object"&&e!==null&&typeof e.then=="function"}function Ri(e){return typeof e=="object"&&e!==null&&typeof e.type=="string"}function $u(e){let t=[];for(let r of Object.keys(e)){let i=e[r];if(Array.isArray(i))for(let n of i)Ri(n)&&t.push(n);else Ri(i)&&t.push(i)}return t}function Kn(e,t,r){if(t.length===0)return;let[i,...n]=t,a=Jn(i,r);return tr(a)?a.then(()=>Kn(e,n,r)):Kn(e,n,r)}function Xn(e,t){let r=$u(e);for(let i of r)bt.set(i,{parent:e,context:t}),Xn(i,t)}function Qn(e,t){return(...r)=>{let i=Yn[t];return Ri(r[0])?(t==="update"&&Ni(r[0]),i(...r)):i(e,...r)}}function Jn(e,t){let r=$u(e),i=Kn(e,r,t),n={source:Qn(e,"source"),parent:Qn(e,"parent"),update:Qn(e,"update")};if(tr(i))return i.then(()=>t.manipulator(e,n)).then(a=>(Lr.add(e),a));{let a=t.manipulator(e,n);return tr(a)?a.then(o=>(Lr.add(e),o)):(Lr.add(e),a)}}function ea({magicString:e,options:t}){let r=e.toString();return Object.freeze({code:r,map:e.generateMap(t.sourceMap),toString:()=>r})}function ta(...e){var t;let r,i,n=String(e[0]);if(typeof e[1]=="function")r={},i=e[1];else if(typeof e[1]=="object"&&typeof e[2]=="function")r=e[1],i=e[2];else throw new Error("Invalid arguments. After the source code argument, yufka() expects either an options object and a manipulator function or just a manipulator function");let a=qt({ecmaVersion:"latest"},(t=r.acorn)!==null&&t!==void 0?t:{}),o=r.parser?r.parser.parse(n,a):Nu(n,a),d={magicString:new X(n),options:r,manipulator:i};bt.set(o,{parent:void 0,context:d}),Xn(o,d);let l=Jn(o,d);return tr(l)?l.then(()=>ea(d)):ea(d)}ta.source=qn;ta.parent=Ti;ta.update=jn;var db=wo(Mu());function ra(e,t="utf8"){return new TextDecoder(t).decode(e)}var B0=new TextEncoder;function Du(e){return B0.encode(e)}var V0=1024*8,z0=(()=>{let e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),ia={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array},rr=class{constructor(t=V0,r={}){let i=!1;typeof t=="number"?t=new ArrayBuffer(t):(i=!0,this.lastWrittenByte=t.byteLength);let n=r.offset?r.offset>>>0:0,a=t.byteLength-n,o=n;(ArrayBuffer.isView(t)||t instanceof rr)&&(t.byteLength!==t.buffer.byteLength&&(o=t.byteOffset+n),t=t.buffer),i?this.lastWrittenByte=a:this.lastWrittenByte=0,this.buffer=t,this.length=a,this.byteLength=a,this.byteOffset=o,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,o,a),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){let t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){let i=(this.offset+t)*2,n=new Uint8Array(i);n.set(new Uint8Array(this.buffer)),this.buffer=n.buffer,this.length=this.byteLength=i,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,r){let i=ia[r].BYTES_PER_ELEMENT*t,n=this.byteOffset+this.offset,a=this.buffer.slice(n,n+i);if(this.littleEndian===z0&&r!=="uint8"&&r!=="int8"){let f=new Uint8Array(this.buffer.slice(n,n+i));f.reverse();let d=new ia[r](f.buffer);return this.offset+=i,d.reverse(),d}let o=new ia[r](a);return this.offset+=i,o}readInt16(){let t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){let t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){let t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){let t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){let t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){let t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){let t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){let t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let r="";for(let i=0;i<t;i++)r+=this.readChar();return r}readUtf8(t=1){return ra(this.readBytes(t))}decodeText(t=1,r="utf-8"){return ra(this.readBytes(t),r)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let r=0;r<t.length;r++)this._data.setUint8(this.offset++,t[r]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let r=0;r<t.length;r++)this.writeUint8(t.charCodeAt(r));return this}writeUtf8(t){return this.writeBytes(Du(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}};var H0=4,Fu=0,Uu=1,G0=2;function ir(e){let t=e.length;for(;--t>=0;)e[t]=0}var Z0=0,Bu=1,W0=2,q0=3,j0=258,na=29,$r=256,Or=$r+1+na,nr=30,aa=19,Vu=2*Or+1,Tt=15,sa=16,Y0=7,oa=256,zu=16,Hu=17,Gu=18,ua=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Pi=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),K0=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Zu=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),X0=512,st=new Array((Or+2)*2);ir(st);var Mr=new Array(nr*2);ir(Mr);var Dr=new Array(X0);ir(Dr);var Fr=new Array(j0-q0+1);ir(Fr);var la=new Array(na);ir(la);var Li=new Array(nr);ir(Li);function ha(e,t,r,i,n){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=n,this.has_stree=e&&e.length}var Wu,qu,ju;function fa(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}var Yu=e=>e<256?Dr[e]:Dr[256+(e>>>7)],Ur=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Pe=(e,t,r)=>{e.bi_valid>sa-r?(e.bi_buf|=t<<e.bi_valid&65535,Ur(e,e.bi_buf),e.bi_buf=t>>sa-e.bi_valid,e.bi_valid+=r-sa):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)},Ke=(e,t,r)=>{Pe(e,r[t*2],r[t*2+1])},Ku=(e,t)=>{let r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1},Q0=e=>{e.bi_valid===16?(Ur(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},J0=(e,t)=>{let r=t.dyn_tree,i=t.max_code,n=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,d=t.stat_desc.max_length,l,h,y,x,v,E,D=0;for(x=0;x<=Tt;x++)e.bl_count[x]=0;for(r[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<Vu;l++)h=e.heap[l],x=r[r[h*2+1]*2+1]+1,x>d&&(x=d,D++),r[h*2+1]=x,!(h>i)&&(e.bl_count[x]++,v=0,h>=f&&(v=o[h-f]),E=r[h*2],e.opt_len+=E*(x+v),a&&(e.static_len+=E*(n[h*2+1]+v)));if(D!==0){do{for(x=d-1;e.bl_count[x]===0;)x--;e.bl_count[x]--,e.bl_count[x+1]+=2,e.bl_count[d]--,D-=2}while(D>0);for(x=d;x!==0;x--)for(h=e.bl_count[x];h!==0;)y=e.heap[--l],!(y>i)&&(r[y*2+1]!==x&&(e.opt_len+=(x-r[y*2+1])*r[y*2],r[y*2+1]=x),h--)}},Xu=(e,t,r)=>{let i=new Array(Tt+1),n=0,a,o;for(a=1;a<=Tt;a++)n=n+r[a-1]<<1,i[a]=n;for(o=0;o<=t;o++){let f=e[o*2+1];f!==0&&(e[o*2]=Ku(i[f]++,f))}},ev=()=>{let e,t,r,i,n,a=new Array(Tt+1);for(r=0,i=0;i<na-1;i++)for(la[i]=r,e=0;e<1<<ua[i];e++)Fr[r++]=i;for(Fr[r-1]=i,n=0,i=0;i<16;i++)for(Li[i]=n,e=0;e<1<<Pi[i];e++)Dr[n++]=i;for(n>>=7;i<nr;i++)for(Li[i]=n<<7,e=0;e<1<<Pi[i]-7;e++)Dr[256+n++]=i;for(t=0;t<=Tt;t++)a[t]=0;for(e=0;e<=143;)st[e*2+1]=8,e++,a[8]++;for(;e<=255;)st[e*2+1]=9,e++,a[9]++;for(;e<=279;)st[e*2+1]=7,e++,a[7]++;for(;e<=287;)st[e*2+1]=8,e++,a[8]++;for(Xu(st,Or+1,a),e=0;e<nr;e++)Mr[e*2+1]=5,Mr[e*2]=Ku(e,5);Wu=new ha(st,ua,$r+1,Or,Tt),qu=new ha(Mr,Pi,0,nr,Tt),ju=new ha(new Array(0),K0,0,aa,Y0)},Qu=e=>{let t;for(t=0;t<Or;t++)e.dyn_ltree[t*2]=0;for(t=0;t<nr;t++)e.dyn_dtree[t*2]=0;for(t=0;t<aa;t++)e.bl_tree[t*2]=0;e.dyn_ltree[oa*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},Ju=e=>{e.bi_valid>8?Ur(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},el=(e,t,r,i)=>{let n=t*2,a=r*2;return e[n]<e[a]||e[n]===e[a]&&i[t]<=i[r]},ca=(e,t,r)=>{let i=e.heap[r],n=r<<1;for(;n<=e.heap_len&&(n<e.heap_len&&el(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!el(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i},tl=(e,t,r)=>{let i,n,a=0,o,f;if(e.sym_next!==0)do i=e.pending_buf[e.sym_buf+a++]&255,i+=(e.pending_buf[e.sym_buf+a++]&255)<<8,n=e.pending_buf[e.sym_buf+a++],i===0?Ke(e,n,t):(o=Fr[n],Ke(e,o+$r+1,t),f=ua[o],f!==0&&(n-=la[o],Pe(e,n,f)),i--,o=Yu(i),Ke(e,o,r),f=Pi[o],f!==0&&(i-=Li[o],Pe(e,i,f)));while(a<e.sym_next);Ke(e,oa,t)},pa=(e,t)=>{let r=t.dyn_tree,i=t.stat_desc.static_tree,n=t.stat_desc.has_stree,a=t.stat_desc.elems,o,f,d=-1,l;for(e.heap_len=0,e.heap_max=Vu,o=0;o<a;o++)r[o*2]!==0?(e.heap[++e.heap_len]=d=o,e.depth[o]=0):r[o*2+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=d<2?++d:0,r[l*2]=1,e.depth[l]=0,e.opt_len--,n&&(e.static_len-=i[l*2+1]);for(t.max_code=d,o=e.heap_len>>1;o>=1;o--)ca(e,r,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],ca(e,r,1),f=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=f,r[l*2]=r[o*2]+r[f*2],e.depth[l]=(e.depth[o]>=e.depth[f]?e.depth[o]:e.depth[f])+1,r[o*2+1]=r[f*2+1]=l,e.heap[1]=l++,ca(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],J0(e,t),Xu(r,d,e.bl_count)},rl=(e,t,r)=>{let i,n=-1,a,o=t[0*2+1],f=0,d=7,l=4;for(o===0&&(d=138,l=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)a=o,o=t[(i+1)*2+1],!(++f<d&&a===o)&&(f<l?e.bl_tree[a*2]+=f:a!==0?(a!==n&&e.bl_tree[a*2]++,e.bl_tree[zu*2]++):f<=10?e.bl_tree[Hu*2]++:e.bl_tree[Gu*2]++,f=0,n=a,o===0?(d=138,l=3):a===o?(d=6,l=3):(d=7,l=4))},il=(e,t,r)=>{let i,n=-1,a,o=t[0*2+1],f=0,d=7,l=4;for(o===0&&(d=138,l=3),i=0;i<=r;i++)if(a=o,o=t[(i+1)*2+1],!(++f<d&&a===o)){if(f<l)do Ke(e,a,e.bl_tree);while(--f!=0);else a!==0?(a!==n&&(Ke(e,a,e.bl_tree),f--),Ke(e,zu,e.bl_tree),Pe(e,f-3,2)):f<=10?(Ke(e,Hu,e.bl_tree),Pe(e,f-3,3)):(Ke(e,Gu,e.bl_tree),Pe(e,f-11,7));f=0,n=a,o===0?(d=138,l=3):a===o?(d=6,l=3):(d=7,l=4)}},tv=e=>{let t;for(rl(e,e.dyn_ltree,e.l_desc.max_code),rl(e,e.dyn_dtree,e.d_desc.max_code),pa(e,e.bl_desc),t=aa-1;t>=3&&e.bl_tree[Zu[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},rv=(e,t,r,i)=>{let n;for(Pe(e,t-257,5),Pe(e,r-1,5),Pe(e,i-4,4),n=0;n<i;n++)Pe(e,e.bl_tree[Zu[n]*2+1],3);il(e,e.dyn_ltree,t-1),il(e,e.dyn_dtree,r-1)},iv=e=>{let t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return Fu;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Uu;for(r=32;r<$r;r++)if(e.dyn_ltree[r*2]!==0)return Uu;return Fu},nl=!1,nv=e=>{nl||(ev(),nl=!0),e.l_desc=new fa(e.dyn_ltree,Wu),e.d_desc=new fa(e.dyn_dtree,qu),e.bl_desc=new fa(e.bl_tree,ju),e.bi_buf=0,e.bi_valid=0,Qu(e)},al=(e,t,r,i)=>{Pe(e,(Z0<<1)+(i?1:0),3),Ju(e),Ur(e,r),Ur(e,~r),r&&e.pending_buf.set(e.window.subarray(t,t+r),e.pending),e.pending+=r},av=e=>{Pe(e,Bu<<1,3),Ke(e,oa,st),Q0(e)},sv=(e,t,r,i)=>{let n,a,o=0;e.level>0?(e.strm.data_type===G0&&(e.strm.data_type=iv(e)),pa(e,e.l_desc),pa(e,e.d_desc),o=tv(e),n=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=n&&(n=a)):n=a=r+5,r+4<=n&&t!==-1?al(e,t,r,i):e.strategy===H0||a===n?(Pe(e,(Bu<<1)+(i?1:0),3),tl(e,st,Mr)):(Pe(e,(W0<<1)+(i?1:0),3),rv(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),tl(e,e.dyn_ltree,e.dyn_dtree)),Qu(e),i&&Ju(e)},ov=(e,t,r)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=r,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(Fr[r]+$r+1)*2]++,e.dyn_dtree[Yu(t)*2]++),e.sym_next===e.sym_end),uv=nv,lv=al,hv=sv,fv=ov,cv=av,pv={_tr_init:uv,_tr_stored_block:lv,_tr_flush_block:hv,_tr_tally:fv,_tr_align:cv},dv=(e,t,r,i)=>{let n=e&65535|0,a=e>>>16&65535|0,o=0;for(;r!==0;){o=r>2e3?2e3:r,r-=o;do n=n+t[i++]|0,a=a+n|0;while(--o);n%=65521,a%=65521}return n|a<<16|0},Br=dv,vv=()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t},gv=new Uint32Array(vv()),bv=(e,t,r,i)=>{let n=gv,a=i+r;e^=-1;for(let o=i;o<a;o++)e=e>>>8^n[(e^t[o])&255];return e^-1},ye=bv,ar={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Vr={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:mv,_tr_stored_block:da,_tr_flush_block:_v,_tr_tally:mt,_tr_align:xv}=pv,{Z_NO_FLUSH:_t,Z_PARTIAL_FLUSH:yv,Z_FULL_FLUSH:wv,Z_FINISH:Ve,Z_BLOCK:sl,Z_OK:Se,Z_STREAM_END:ol,Z_STREAM_ERROR:Xe,Z_DATA_ERROR:kv,Z_BUF_ERROR:va,Z_DEFAULT_COMPRESSION:Ev,Z_FILTERED:Sv,Z_HUFFMAN_ONLY:$i,Z_RLE:Cv,Z_FIXED:Av,Z_DEFAULT_STRATEGY:Iv,Z_UNKNOWN:Nv,Z_DEFLATED:Oi}=Vr,Tv=9,Rv=15,Pv=8,Lv=29,$v=256,ga=$v+1+Lv,Ov=30,Mv=19,Dv=2*ga+1,Fv=15,ie=3,xt=258,Qe=xt+ie+1,Uv=32,sr=42,ba=57,ma=69,_a=73,xa=91,ya=103,Rt=113,zr=666,Ne=1,or=2,Pt=3,ur=4,Bv=3,Lt=(e,t)=>(e.msg=ar[t],t),ul=e=>e*2-(e>4?9:0),yt=e=>{let t=e.length;for(;--t>=0;)e[t]=0},Vv=e=>{let t,r,i,n=e.w_size;t=e.hash_size,i=t;do r=e.head[--i],e.head[i]=r>=n?r-n:0;while(--t);t=n,i=t;do r=e.prev[--i],e.prev[i]=r>=n?r-n:0;while(--t)},zv=(e,t,r)=>(t<<e.hash_shift^r)&e.hash_mask,wt=zv,$e=e=>{let t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+r),e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))},Oe=(e,t)=>{_v(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,$e(e.strm)},le=(e,t)=>{e.pending_buf[e.pending++]=t},Hr=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},wa=(e,t,r,i)=>{let n=e.avail_in;return n>i&&(n=i),n===0?0:(e.avail_in-=n,t.set(e.input.subarray(e.next_in,e.next_in+n),r),e.state.wrap===1?e.adler=Br(e.adler,t,n,r):e.state.wrap===2&&(e.adler=ye(e.adler,t,n,r)),e.next_in+=n,e.total_in+=n,n)},ll=(e,t)=>{let r=e.max_chain_length,i=e.strstart,n,a,o=e.prev_length,f=e.nice_match,d=e.strstart>e.w_size-Qe?e.strstart-(e.w_size-Qe):0,l=e.window,h=e.w_mask,y=e.prev,x=e.strstart+xt,v=l[i+o-1],E=l[i+o];e.prev_length>=e.good_match&&(r>>=2),f>e.lookahead&&(f=e.lookahead);do if(n=t,!(l[n+o]!==E||l[n+o-1]!==v||l[n]!==l[i]||l[++n]!==l[i+1])){i+=2,n++;do;while(l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&i<x);if(a=xt-(x-i),i=x-xt,a>o){if(e.match_start=t,o=a,a>=f)break;v=l[i+o-1],E=l[i+o]}}while((t=y[t&h])>d&&--r!=0);return o<=e.lookahead?o:e.lookahead},lr=e=>{let t=e.w_size,r,i,n;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Qe)&&(e.window.set(e.window.subarray(t,t+t-i),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),Vv(e),i+=t),e.strm.avail_in===0)break;if(r=wa(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=r,e.lookahead+e.insert>=ie)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=wt(e,e.ins_h,e.window[n+1]);e.insert&&(e.ins_h=wt(e,e.ins_h,e.window[n+ie-1]),e.prev[n&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=n,n++,e.insert--,!(e.lookahead+e.insert<ie)););}while(e.lookahead<Qe&&e.strm.avail_in!==0)},hl=(e,t)=>{let r=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,i,n,a,o=0,f=e.strm.avail_in;do{if(i=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,n=e.strstart-e.block_start,i>n+e.strm.avail_in&&(i=n+e.strm.avail_in),i>a&&(i=a),i<r&&(i===0&&t!==Ve||t===_t||i!==n+e.strm.avail_in)))break;o=t===Ve&&i===n+e.strm.avail_in?1:0,da(e,0,0,o),e.pending_buf[e.pending-4]=i,e.pending_buf[e.pending-3]=i>>8,e.pending_buf[e.pending-2]=~i,e.pending_buf[e.pending-1]=~i>>8,$e(e.strm),n&&(n>i&&(n=i),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+n),e.strm.next_out),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n,e.block_start+=n,i-=n),i&&(wa(e.strm,e.strm.output,e.strm.next_out,i),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i)}while(o===0);return f-=e.strm.avail_in,f&&(f>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=f&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-f,e.strm.next_in),e.strstart),e.strstart+=f,e.insert+=f>e.w_size-e.insert?e.w_size-e.insert:f),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?ur:t!==_t&&t!==Ve&&e.strm.avail_in===0&&e.strstart===e.block_start?or:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(wa(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,r=a>e.w_size?e.w_size:a,n=e.strstart-e.block_start,(n>=r||(n||t===Ve)&&t!==_t&&e.strm.avail_in===0&&n<=a)&&(i=n>a?a:n,o=t===Ve&&e.strm.avail_in===0&&i===n?1:0,da(e,e.block_start,i,o),e.block_start+=i,$e(e.strm)),o?Pt:Ne)},ka=(e,t)=>{let r,i;for(;;){if(e.lookahead<Qe){if(lr(e),e.lookahead<Qe&&t===_t)return Ne;if(e.lookahead===0)break}if(r=0,e.lookahead>=ie&&(e.ins_h=wt(e,e.ins_h,e.window[e.strstart+ie-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-Qe&&(e.match_length=ll(e,r)),e.match_length>=ie)if(i=mt(e,e.strstart-e.match_start,e.match_length-ie),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ie){e.match_length--;do e.strstart++,e.ins_h=wt(e,e.ins_h,e.window[e.strstart+ie-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!=0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=wt(e,e.ins_h,e.window[e.strstart+1]);else i=mt(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Oe(e,!1),e.strm.avail_out===0))return Ne}return e.insert=e.strstart<ie-1?e.strstart:ie-1,t===Ve?(Oe(e,!0),e.strm.avail_out===0?Pt:ur):e.sym_next&&(Oe(e,!1),e.strm.avail_out===0)?Ne:or},hr=(e,t)=>{let r,i,n;for(;;){if(e.lookahead<Qe){if(lr(e),e.lookahead<Qe&&t===_t)return Ne;if(e.lookahead===0)break}if(r=0,e.lookahead>=ie&&(e.ins_h=wt(e,e.ins_h,e.window[e.strstart+ie-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=ie-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Qe&&(e.match_length=ll(e,r),e.match_length<=5&&(e.strategy===Sv||e.match_length===ie&&e.strstart-e.match_start>4096)&&(e.match_length=ie-1)),e.prev_length>=ie&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-ie,i=mt(e,e.strstart-1-e.prev_match,e.prev_length-ie),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=n&&(e.ins_h=wt(e,e.ins_h,e.window[e.strstart+ie-1]),r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!=0);if(e.match_available=0,e.match_length=ie-1,e.strstart++,i&&(Oe(e,!1),e.strm.avail_out===0))return Ne}else if(e.match_available){if(i=mt(e,0,e.window[e.strstart-1]),i&&Oe(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Ne}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=mt(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<ie-1?e.strstart:ie-1,t===Ve?(Oe(e,!0),e.strm.avail_out===0?Pt:ur):e.sym_next&&(Oe(e,!1),e.strm.avail_out===0)?Ne:or},Hv=(e,t)=>{let r,i,n,a,o=e.window;for(;;){if(e.lookahead<=xt){if(lr(e),e.lookahead<=xt&&t===_t)return Ne;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=ie&&e.strstart>0&&(n=e.strstart-1,i=o[n],i===o[++n]&&i===o[++n]&&i===o[++n])){a=e.strstart+xt;do;while(i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&n<a);e.match_length=xt-(a-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ie?(r=mt(e,1,e.match_length-ie),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=mt(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Oe(e,!1),e.strm.avail_out===0))return Ne}return e.insert=0,t===Ve?(Oe(e,!0),e.strm.avail_out===0?Pt:ur):e.sym_next&&(Oe(e,!1),e.strm.avail_out===0)?Ne:or},Gv=(e,t)=>{let r;for(;;){if(e.lookahead===0&&(lr(e),e.lookahead===0)){if(t===_t)return Ne;break}if(e.match_length=0,r=mt(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Oe(e,!1),e.strm.avail_out===0))return Ne}return e.insert=0,t===Ve?(Oe(e,!0),e.strm.avail_out===0?Pt:ur):e.sym_next&&(Oe(e,!1),e.strm.avail_out===0)?Ne:or};function Je(e,t,r,i,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=n}var Gr=[new Je(0,0,0,0,hl),new Je(4,4,8,4,ka),new Je(4,5,16,8,ka),new Je(4,6,32,32,ka),new Je(4,4,16,16,hr),new Je(8,16,32,32,hr),new Je(8,16,128,128,hr),new Je(8,32,128,256,hr),new Je(32,128,258,1024,hr),new Je(32,258,258,4096,hr)],Zv=e=>{e.window_size=2*e.w_size,yt(e.head),e.max_lazy_match=Gr[e.level].max_lazy,e.good_match=Gr[e.level].good_length,e.nice_match=Gr[e.level].nice_length,e.max_chain_length=Gr[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ie-1,e.match_available=0,e.ins_h=0};function Wv(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Oi,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(Dv*2),this.dyn_dtree=new Uint16Array((2*Ov+1)*2),this.bl_tree=new Uint16Array((2*Mv+1)*2),yt(this.dyn_ltree),yt(this.dyn_dtree),yt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Fv+1),this.heap=new Uint16Array(2*ga+1),yt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*ga+1),yt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Zr=e=>{if(!e)return 1;let t=e.state;return!t||t.strm!==e||t.status!==sr&&t.status!==ba&&t.status!==ma&&t.status!==_a&&t.status!==xa&&t.status!==ya&&t.status!==Rt&&t.status!==zr?1:0},fl=e=>{if(Zr(e))return Lt(e,Xe);e.total_in=e.total_out=0,e.data_type=Nv;let t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?ba:t.wrap?sr:Rt,e.adler=t.wrap===2?0:1,t.last_flush=-2,mv(t),Se},cl=e=>{let t=fl(e);return t===Se&&Zv(e.state),t},qv=(e,t)=>Zr(e)||e.state.wrap!==2?Xe:(e.state.gzhead=t,Se),pl=(e,t,r,i,n,a)=>{if(!e)return Xe;let o=1;if(t===Ev&&(t=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),n<1||n>Tv||r!==Oi||i<8||i>15||t<0||t>9||a<0||a>Av||i===8&&o!==1)return Lt(e,Xe);i===8&&(i=9);let f=new Wv;return e.state=f,f.strm=e,f.status=sr,f.wrap=o,f.gzhead=null,f.w_bits=i,f.w_size=1<<f.w_bits,f.w_mask=f.w_size-1,f.hash_bits=n+7,f.hash_size=1<<f.hash_bits,f.hash_mask=f.hash_size-1,f.hash_shift=~~((f.hash_bits+ie-1)/ie),f.window=new Uint8Array(f.w_size*2),f.head=new Uint16Array(f.hash_size),f.prev=new Uint16Array(f.w_size),f.lit_bufsize=1<<n+6,f.pending_buf_size=f.lit_bufsize*4,f.pending_buf=new Uint8Array(f.pending_buf_size),f.sym_buf=f.lit_bufsize,f.sym_end=(f.lit_bufsize-1)*3,f.level=t,f.strategy=a,f.method=r,cl(e)},jv=(e,t)=>pl(e,t,Oi,Rv,Pv,Iv),Yv=(e,t)=>{if(Zr(e)||t>sl||t<0)return e?Lt(e,Xe):Xe;let r=e.state;if(!e.output||e.avail_in!==0&&!e.input||r.status===zr&&t!==Ve)return Lt(e,e.avail_out===0?va:Xe);let i=r.last_flush;if(r.last_flush=t,r.pending!==0){if($e(e),e.avail_out===0)return r.last_flush=-1,Se}else if(e.avail_in===0&&ul(t)<=ul(i)&&t!==Ve)return Lt(e,va);if(r.status===zr&&e.avail_in!==0)return Lt(e,va);if(r.status===sr&&r.wrap===0&&(r.status=Rt),r.status===sr){let n=Oi+(r.w_bits-8<<4)<<8,a=-1;if(r.strategy>=$i||r.level<2?a=0:r.level<6?a=1:r.level===6?a=2:a=3,n|=a<<6,r.strstart!==0&&(n|=Uv),n+=31-n%31,Hr(r,n),r.strstart!==0&&(Hr(r,e.adler>>>16),Hr(r,e.adler&65535)),e.adler=1,r.status=Rt,$e(e),r.pending!==0)return r.last_flush=-1,Se}if(r.status===ba){if(e.adler=0,le(r,31),le(r,139),le(r,8),r.gzhead)le(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),le(r,r.gzhead.time&255),le(r,r.gzhead.time>>8&255),le(r,r.gzhead.time>>16&255),le(r,r.gzhead.time>>24&255),le(r,r.level===9?2:r.strategy>=$i||r.level<2?4:0),le(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(le(r,r.gzhead.extra.length&255),le(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=ye(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=ma;else if(le(r,0),le(r,0),le(r,0),le(r,0),le(r,0),le(r,r.level===9?2:r.strategy>=$i||r.level<2?4:0),le(r,Bv),r.status=Rt,$e(e),r.pending!==0)return r.last_flush=-1,Se}if(r.status===ma){if(r.gzhead.extra){let n=r.pending,a=(r.gzhead.extra.length&65535)-r.gzindex;for(;r.pending+a>r.pending_buf_size;){let f=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+f),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>n&&(e.adler=ye(e.adler,r.pending_buf,r.pending-n,n)),r.gzindex+=f,$e(e),r.pending!==0)return r.last_flush=-1,Se;n=0,a-=f}let o=new Uint8Array(r.gzhead.extra);r.pending_buf.set(o.subarray(r.gzindex,r.gzindex+a),r.pending),r.pending+=a,r.gzhead.hcrc&&r.pending>n&&(e.adler=ye(e.adler,r.pending_buf,r.pending-n,n)),r.gzindex=0}r.status=_a}if(r.status===_a){if(r.gzhead.name){let n=r.pending,a;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>n&&(e.adler=ye(e.adler,r.pending_buf,r.pending-n,n)),$e(e),r.pending!==0)return r.last_flush=-1,Se;n=0}r.gzindex<r.gzhead.name.length?a=r.gzhead.name.charCodeAt(r.gzindex++)&255:a=0,le(r,a)}while(a!==0);r.gzhead.hcrc&&r.pending>n&&(e.adler=ye(e.adler,r.pending_buf,r.pending-n,n)),r.gzindex=0}r.status=xa}if(r.status===xa){if(r.gzhead.comment){let n=r.pending,a;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>n&&(e.adler=ye(e.adler,r.pending_buf,r.pending-n,n)),$e(e),r.pending!==0)return r.last_flush=-1,Se;n=0}r.gzindex<r.gzhead.comment.length?a=r.gzhead.comment.charCodeAt(r.gzindex++)&255:a=0,le(r,a)}while(a!==0);r.gzhead.hcrc&&r.pending>n&&(e.adler=ye(e.adler,r.pending_buf,r.pending-n,n))}r.status=ya}if(r.status===ya){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&($e(e),r.pending!==0))return r.last_flush=-1,Se;le(r,e.adler&255),le(r,e.adler>>8&255),e.adler=0}if(r.status=Rt,$e(e),r.pending!==0)return r.last_flush=-1,Se}if(e.avail_in!==0||r.lookahead!==0||t!==_t&&r.status!==zr){let n=r.level===0?hl(r,t):r.strategy===$i?Gv(r,t):r.strategy===Cv?Hv(r,t):Gr[r.level].func(r,t);if((n===Pt||n===ur)&&(r.status=zr),n===Ne||n===Pt)return e.avail_out===0&&(r.last_flush=-1),Se;if(n===or&&(t===yv?xv(r):t!==sl&&(da(r,0,0,!1),t===wv&&(yt(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),$e(e),e.avail_out===0))return r.last_flush=-1,Se}return t!==Ve?Se:r.wrap<=0?ol:(r.wrap===2?(le(r,e.adler&255),le(r,e.adler>>8&255),le(r,e.adler>>16&255),le(r,e.adler>>24&255),le(r,e.total_in&255),le(r,e.total_in>>8&255),le(r,e.total_in>>16&255),le(r,e.total_in>>24&255)):(Hr(r,e.adler>>>16),Hr(r,e.adler&65535)),$e(e),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?Se:ol)},Kv=e=>{if(Zr(e))return Xe;let t=e.state.status;return e.state=null,t===Rt?Lt(e,kv):Se},Xv=(e,t)=>{let r=t.length;if(Zr(e))return Xe;let i=e.state,n=i.wrap;if(n===2||n===1&&i.status!==sr||i.lookahead)return Xe;if(n===1&&(e.adler=Br(e.adler,t,r,0)),i.wrap=0,r>=i.w_size){n===0&&(yt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let d=new Uint8Array(i.w_size);d.set(t.subarray(r-i.w_size,r),0),t=d,r=i.w_size}let a=e.avail_in,o=e.next_in,f=e.input;for(e.avail_in=r,e.next_in=0,e.input=t,lr(i);i.lookahead>=ie;){let d=i.strstart,l=i.lookahead-(ie-1);do i.ins_h=wt(i,i.ins_h,i.window[d+ie-1]),i.prev[d&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=d,d++;while(--l);i.strstart=d,i.lookahead=ie-1,lr(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=ie-1,i.match_available=0,e.next_in=o,e.input=f,e.avail_in=a,i.wrap=n,Se},Qv=jv,Jv=pl,eg=cl,tg=fl,rg=qv,ig=Yv,ng=Kv,ag=Xv,sg="pako deflate (from Nodeca project)",Wr={deflateInit:Qv,deflateInit2:Jv,deflateReset:eg,deflateResetKeep:tg,deflateSetHeader:rg,deflate:ig,deflateEnd:ng,deflateSetDictionary:ag,deflateInfo:sg},og=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ug=function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let r=t.shift();if(!!r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(let i in r)og(r,i)&&(e[i]=r[i])}}return e},lg=e=>{let t=0;for(let i=0,n=e.length;i<n;i++)t+=e[i].length;let r=new Uint8Array(t);for(let i=0,n=0,a=e.length;i<a;i++){let o=e[i];r.set(o,n),n+=o.length}return r},Mi={assign:ug,flattenChunks:lg},dl=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){dl=!1}var qr=new Uint8Array(256);for(let e=0;e<256;e++)qr[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;qr[254]=qr[254]=1;var hg=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,r,i,n,a,o=e.length,f=0;for(n=0;n<o;n++)r=e.charCodeAt(n),(r&64512)==55296&&n+1<o&&(i=e.charCodeAt(n+1),(i&64512)==56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),f+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(f),a=0,n=0;a<f;n++)r=e.charCodeAt(n),(r&64512)==55296&&n+1<o&&(i=e.charCodeAt(n+1),(i&64512)==56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|r&63):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|r&63):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|r&63);return t},fg=(e,t)=>{if(t<65534&&e.subarray&&dl)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r},cg=(e,t)=>{let r=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let i,n,a=new Array(r*2);for(n=0,i=0;i<r;){let o=e[i++];if(o<128){a[n++]=o;continue}let f=qr[o];if(f>4){a[n++]=65533,i+=f-1;continue}for(o&=f===2?31:f===3?15:7;f>1&&i<r;)o=o<<6|e[i++]&63,f--;if(f>1){a[n++]=65533;continue}o<65536?a[n++]=o:(o-=65536,a[n++]=55296|o>>10&1023,a[n++]=56320|o&1023)}return fg(a,n)},pg=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let r=t-1;for(;r>=0&&(e[r]&192)==128;)r--;return r<0||r===0?t:r+qr[e[r]]>t?r:t},jr={string2buf:hg,buf2string:cg,utf8border:pg};function dg(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var vl=dg,gl=Object.prototype.toString,{Z_NO_FLUSH:vg,Z_SYNC_FLUSH:gg,Z_FULL_FLUSH:bg,Z_FINISH:mg,Z_OK:Di,Z_STREAM_END:_g,Z_DEFAULT_COMPRESSION:xg,Z_DEFAULT_STRATEGY:yg,Z_DEFLATED:wg}=Vr;function Ea(e){this.options=Mi.assign({level:xg,method:wg,chunkSize:16384,windowBits:15,memLevel:8,strategy:yg},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new vl,this.strm.avail_out=0;let r=Wr.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Di)throw new Error(ar[r]);if(t.header&&Wr.deflateSetHeader(this.strm,t.header),t.dictionary){let i;if(typeof t.dictionary=="string"?i=jr.string2buf(t.dictionary):gl.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=Wr.deflateSetDictionary(this.strm,i),r!==Di)throw new Error(ar[r]);this._dict_set=!0}}Ea.prototype.push=function(e,t){let r=this.strm,i=this.options.chunkSize,n,a;if(this.ended)return!1;for(t===~~t?a=t:a=t===!0?mg:vg,typeof e=="string"?r.input=jr.string2buf(e):gl.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){if(r.avail_out===0&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(a===gg||a===bg)&&r.avail_out<=6){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(n=Wr.deflate(r,a),n===_g)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),n=Wr.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Di;if(r.avail_out===0){this.onData(r.output);continue}if(a>0&&r.next_out>0){this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;continue}if(r.avail_in===0)break}return!0};Ea.prototype.onData=function(e){this.chunks.push(e)};Ea.prototype.onEnd=function(e){e===Di&&(this.result=Mi.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Fi=16209,kg=16191,Eg=function(t,r){let i,n,a,o,f,d,l,h,y,x,v,E,D,R,T,L,V,S,Z,z,M,G,W,H,Q=t.state;i=t.next_in,W=t.input,n=i+(t.avail_in-5),a=t.next_out,H=t.output,o=a-(r-t.avail_out),f=a+(t.avail_out-257),d=Q.dmax,l=Q.wsize,h=Q.whave,y=Q.wnext,x=Q.window,v=Q.hold,E=Q.bits,D=Q.lencode,R=Q.distcode,T=(1<<Q.lenbits)-1,L=(1<<Q.distbits)-1;e:do{E<15&&(v+=W[i++]<<E,E+=8,v+=W[i++]<<E,E+=8),V=D[v&T];t:for(;;){if(S=V>>>24,v>>>=S,E-=S,S=V>>>16&255,S===0)H[a++]=V&65535;else if(S&16){Z=V&65535,S&=15,S&&(E<S&&(v+=W[i++]<<E,E+=8),Z+=v&(1<<S)-1,v>>>=S,E-=S),E<15&&(v+=W[i++]<<E,E+=8,v+=W[i++]<<E,E+=8),V=R[v&L];r:for(;;){if(S=V>>>24,v>>>=S,E-=S,S=V>>>16&255,S&16){if(z=V&65535,S&=15,E<S&&(v+=W[i++]<<E,E+=8,E<S&&(v+=W[i++]<<E,E+=8)),z+=v&(1<<S)-1,z>d){t.msg="invalid distance too far back",Q.mode=Fi;break e}if(v>>>=S,E-=S,S=a-o,z>S){if(S=z-S,S>h&&Q.sane){t.msg="invalid distance too far back",Q.mode=Fi;break e}if(M=0,G=x,y===0){if(M+=l-S,S<Z){Z-=S;do H[a++]=x[M++];while(--S);M=a-z,G=H}}else if(y<S){if(M+=l+y-S,S-=y,S<Z){Z-=S;do H[a++]=x[M++];while(--S);if(M=0,y<Z){S=y,Z-=S;do H[a++]=x[M++];while(--S);M=a-z,G=H}}}else if(M+=y-S,S<Z){Z-=S;do H[a++]=x[M++];while(--S);M=a-z,G=H}for(;Z>2;)H[a++]=G[M++],H[a++]=G[M++],H[a++]=G[M++],Z-=3;Z&&(H[a++]=G[M++],Z>1&&(H[a++]=G[M++]))}else{M=a-z;do H[a++]=H[M++],H[a++]=H[M++],H[a++]=H[M++],Z-=3;while(Z>2);Z&&(H[a++]=H[M++],Z>1&&(H[a++]=H[M++]))}}else if((S&64)==0){V=R[(V&65535)+(v&(1<<S)-1)];continue r}else{t.msg="invalid distance code",Q.mode=Fi;break e}break}}else if((S&64)==0){V=D[(V&65535)+(v&(1<<S)-1)];continue t}else if(S&32){Q.mode=kg;break e}else{t.msg="invalid literal/length code",Q.mode=Fi;break e}break}}while(i<n&&a<f);Z=E>>3,i-=Z,E-=Z<<3,v&=(1<<E)-1,t.next_in=i,t.next_out=a,t.avail_in=i<n?5+(n-i):5-(i-n),t.avail_out=a<f?257+(f-a):257-(a-f),Q.hold=v,Q.bits=E},fr=15,bl=852,ml=592,_l=0,Sa=1,xl=2,Sg=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),Cg=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Ag=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Ig=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),Ng=(e,t,r,i,n,a,o,f)=>{let d=f.bits,l=0,h=0,y=0,x=0,v=0,E=0,D=0,R=0,T=0,L=0,V,S,Z,z,M,G=null,W,H=new Uint16Array(fr+1),Q=new Uint16Array(fr+1),et=null,ei,Mt,Et;for(l=0;l<=fr;l++)H[l]=0;for(h=0;h<i;h++)H[t[r+h]]++;for(v=d,x=fr;x>=1&&H[x]===0;x--);if(v>x&&(v=x),x===0)return n[a++]=1<<24|64<<16|0,n[a++]=1<<24|64<<16|0,f.bits=1,0;for(y=1;y<x&&H[y]===0;y++);for(v<y&&(v=y),R=1,l=1;l<=fr;l++)if(R<<=1,R-=H[l],R<0)return-1;if(R>0&&(e===_l||x!==1))return-1;for(Q[1]=0,l=1;l<fr;l++)Q[l+1]=Q[l]+H[l];for(h=0;h<i;h++)t[r+h]!==0&&(o[Q[t[r+h]]++]=h);if(e===_l?(G=et=o,W=20):e===Sa?(G=Sg,et=Cg,W=257):(G=Ag,et=Ig,W=0),L=0,h=0,l=y,M=a,E=v,D=0,Z=-1,T=1<<v,z=T-1,e===Sa&&T>bl||e===xl&&T>ml)return 1;for(;;){ei=l-D,o[h]+1<W?(Mt=0,Et=o[h]):o[h]>=W?(Mt=et[o[h]-W],Et=G[o[h]-W]):(Mt=32+64,Et=0),V=1<<l-D,S=1<<E,y=S;do S-=V,n[M+(L>>D)+S]=ei<<24|Mt<<16|Et|0;while(S!==0);for(V=1<<l-1;L&V;)V>>=1;if(V!==0?(L&=V-1,L+=V):L=0,h++,--H[l]==0){if(l===x)break;l=t[r+o[h]]}if(l>v&&(L&z)!==Z){for(D===0&&(D=v),M+=y,E=l-D,R=1<<E;E+D<x&&(R-=H[E+D],!(R<=0));)E++,R<<=1;if(T+=1<<E,e===Sa&&T>bl||e===xl&&T>ml)return 1;Z=L&z,n[Z]=v<<24|E<<16|M-a|0}}return L!==0&&(n[M+L]=l-D<<24|64<<16|0),f.bits=v,0},Yr=Ng,Tg=0,yl=1,wl=2,{Z_FINISH:kl,Z_BLOCK:Rg,Z_TREES:Ui,Z_OK:$t,Z_STREAM_END:Pg,Z_NEED_DICT:Lg,Z_STREAM_ERROR:ze,Z_DATA_ERROR:El,Z_MEM_ERROR:Sl,Z_BUF_ERROR:$g,Z_DEFLATED:Cl}=Vr,Bi=16180,Al=16181,Il=16182,Nl=16183,Tl=16184,Rl=16185,Pl=16186,Ll=16187,$l=16188,Ol=16189,Vi=16190,ot=16191,Ca=16192,Ml=16193,Aa=16194,Dl=16195,Fl=16196,Ul=16197,Bl=16198,zi=16199,Hi=16200,Vl=16201,zl=16202,Hl=16203,Gl=16204,Zl=16205,Ia=16206,Wl=16207,ql=16208,ve=16209,jl=16210,Yl=16211,Og=852,Mg=592,Dg=15,Fg=Dg,Kl=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function Ug(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Ot=e=>{if(!e)return 1;let t=e.state;return!t||t.strm!==e||t.mode<Bi||t.mode>Yl?1:0},Xl=e=>{if(Ot(e))return ze;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Bi,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(Og),t.distcode=t.distdyn=new Int32Array(Mg),t.sane=1,t.back=-1,$t},Ql=e=>{if(Ot(e))return ze;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Xl(e)},Jl=(e,t)=>{let r;if(Ot(e))return ze;let i=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?ze:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,Ql(e))},eh=(e,t)=>{if(!e)return ze;let r=new Ug;e.state=r,r.strm=e,r.window=null,r.mode=Bi;let i=Jl(e,t);return i!==$t&&(e.state=null),i},Bg=e=>eh(e,Fg),th=!0,Na,Ta,Vg=e=>{if(th){Na=new Int32Array(512),Ta=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Yr(yl,e.lens,0,288,Na,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Yr(wl,e.lens,0,32,Ta,0,e.work,{bits:5}),th=!1}e.lencode=Na,e.lenbits=9,e.distcode=Ta,e.distbits=5},rh=(e,t,r,i)=>{let n,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),i>=a.wsize?(a.window.set(t.subarray(r-a.wsize,r),0),a.wnext=0,a.whave=a.wsize):(n=a.wsize-a.wnext,n>i&&(n=i),a.window.set(t.subarray(r-i,r-i+n),a.wnext),i-=n,i?(a.window.set(t.subarray(r-i,r),0),a.wnext=i,a.whave=a.wsize):(a.wnext+=n,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=n))),0},zg=(e,t)=>{let r,i,n,a,o,f,d,l,h,y,x,v,E,D,R=0,T,L,V,S,Z,z,M,G,W=new Uint8Array(4),H,Q,et=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ot(e)||!e.output||!e.input&&e.avail_in!==0)return ze;r=e.state,r.mode===ot&&(r.mode=Ca),o=e.next_out,n=e.output,d=e.avail_out,a=e.next_in,i=e.input,f=e.avail_in,l=r.hold,h=r.bits,y=f,x=d,G=$t;e:for(;;)switch(r.mode){case Bi:if(r.wrap===0){r.mode=Ca;break}for(;h<16;){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}if(r.wrap&2&&l===35615){r.wbits===0&&(r.wbits=15),r.check=0,W[0]=l&255,W[1]=l>>>8&255,r.check=ye(r.check,W,2,0),l=0,h=0,r.mode=Al;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",r.mode=ve;break}if((l&15)!==Cl){e.msg="unknown compression method",r.mode=ve;break}if(l>>>=4,h-=4,M=(l&15)+8,r.wbits===0&&(r.wbits=M),M>15||M>r.wbits){e.msg="invalid window size",r.mode=ve;break}r.dmax=1<<r.wbits,r.flags=0,e.adler=r.check=1,r.mode=l&512?Ol:ot,l=0,h=0;break;case Al:for(;h<16;){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}if(r.flags=l,(r.flags&255)!==Cl){e.msg="unknown compression method",r.mode=ve;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=ve;break}r.head&&(r.head.text=l>>8&1),r.flags&512&&r.wrap&4&&(W[0]=l&255,W[1]=l>>>8&255,r.check=ye(r.check,W,2,0)),l=0,h=0,r.mode=Il;case Il:for(;h<32;){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}r.head&&(r.head.time=l),r.flags&512&&r.wrap&4&&(W[0]=l&255,W[1]=l>>>8&255,W[2]=l>>>16&255,W[3]=l>>>24&255,r.check=ye(r.check,W,4,0)),l=0,h=0,r.mode=Nl;case Nl:for(;h<16;){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}r.head&&(r.head.xflags=l&255,r.head.os=l>>8),r.flags&512&&r.wrap&4&&(W[0]=l&255,W[1]=l>>>8&255,r.check=ye(r.check,W,2,0)),l=0,h=0,r.mode=Tl;case Tl:if(r.flags&1024){for(;h<16;){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}r.length=l,r.head&&(r.head.extra_len=l),r.flags&512&&r.wrap&4&&(W[0]=l&255,W[1]=l>>>8&255,r.check=ye(r.check,W,2,0)),l=0,h=0}else r.head&&(r.head.extra=null);r.mode=Rl;case Rl:if(r.flags&1024&&(v=r.length,v>f&&(v=f),v&&(r.head&&(M=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(i.subarray(a,a+v),M)),r.flags&512&&r.wrap&4&&(r.check=ye(r.check,i,v,a)),f-=v,a+=v,r.length-=v),r.length))break e;r.length=0,r.mode=Pl;case Pl:if(r.flags&2048){if(f===0)break e;v=0;do M=i[a+v++],r.head&&M&&r.length<65536&&(r.head.name+=String.fromCharCode(M));while(M&&v<f);if(r.flags&512&&r.wrap&4&&(r.check=ye(r.check,i,v,a)),f-=v,a+=v,M)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Ll;case Ll:if(r.flags&4096){if(f===0)break e;v=0;do M=i[a+v++],r.head&&M&&r.length<65536&&(r.head.comment+=String.fromCharCode(M));while(M&&v<f);if(r.flags&512&&r.wrap&4&&(r.check=ye(r.check,i,v,a)),f-=v,a+=v,M)break e}else r.head&&(r.head.comment=null);r.mode=$l;case $l:if(r.flags&512){for(;h<16;){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}if(r.wrap&4&&l!==(r.check&65535)){e.msg="header crc mismatch",r.mode=ve;break}l=0,h=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=ot;break;case Ol:for(;h<32;){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}e.adler=r.check=Kl(l),l=0,h=0,r.mode=Vi;case Vi:if(r.havedict===0)return e.next_out=o,e.avail_out=d,e.next_in=a,e.avail_in=f,r.hold=l,r.bits=h,Lg;e.adler=r.check=1,r.mode=ot;case ot:if(t===Rg||t===Ui)break e;case Ca:if(r.last){l>>>=h&7,h-=h&7,r.mode=Ia;break}for(;h<3;){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}switch(r.last=l&1,l>>>=1,h-=1,l&3){case 0:r.mode=Ml;break;case 1:if(Vg(r),r.mode=zi,t===Ui){l>>>=2,h-=2;break e}break;case 2:r.mode=Fl;break;case 3:e.msg="invalid block type",r.mode=ve}l>>>=2,h-=2;break;case Ml:for(l>>>=h&7,h-=h&7;h<32;){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}if((l&65535)!=(l>>>16^65535)){e.msg="invalid stored block lengths",r.mode=ve;break}if(r.length=l&65535,l=0,h=0,r.mode=Aa,t===Ui)break e;case Aa:r.mode=Dl;case Dl:if(v=r.length,v){if(v>f&&(v=f),v>d&&(v=d),v===0)break e;n.set(i.subarray(a,a+v),o),f-=v,a+=v,d-=v,o+=v,r.length-=v;break}r.mode=ot;break;case Fl:for(;h<14;){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}if(r.nlen=(l&31)+257,l>>>=5,h-=5,r.ndist=(l&31)+1,l>>>=5,h-=5,r.ncode=(l&15)+4,l>>>=4,h-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=ve;break}r.have=0,r.mode=Ul;case Ul:for(;r.have<r.ncode;){for(;h<3;){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}r.lens[et[r.have++]]=l&7,l>>>=3,h-=3}for(;r.have<19;)r.lens[et[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,H={bits:r.lenbits},G=Yr(Tg,r.lens,0,19,r.lencode,0,r.work,H),r.lenbits=H.bits,G){e.msg="invalid code lengths set",r.mode=ve;break}r.have=0,r.mode=Bl;case Bl:for(;r.have<r.nlen+r.ndist;){for(;R=r.lencode[l&(1<<r.lenbits)-1],T=R>>>24,L=R>>>16&255,V=R&65535,!(T<=h);){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}if(V<16)l>>>=T,h-=T,r.lens[r.have++]=V;else{if(V===16){for(Q=T+2;h<Q;){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}if(l>>>=T,h-=T,r.have===0){e.msg="invalid bit length repeat",r.mode=ve;break}M=r.lens[r.have-1],v=3+(l&3),l>>>=2,h-=2}else if(V===17){for(Q=T+3;h<Q;){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}l>>>=T,h-=T,M=0,v=3+(l&7),l>>>=3,h-=3}else{for(Q=T+7;h<Q;){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}l>>>=T,h-=T,M=0,v=11+(l&127),l>>>=7,h-=7}if(r.have+v>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=ve;break}for(;v--;)r.lens[r.have++]=M}}if(r.mode===ve)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=ve;break}if(r.lenbits=9,H={bits:r.lenbits},G=Yr(yl,r.lens,0,r.nlen,r.lencode,0,r.work,H),r.lenbits=H.bits,G){e.msg="invalid literal/lengths set",r.mode=ve;break}if(r.distbits=6,r.distcode=r.distdyn,H={bits:r.distbits},G=Yr(wl,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,H),r.distbits=H.bits,G){e.msg="invalid distances set",r.mode=ve;break}if(r.mode=zi,t===Ui)break e;case zi:r.mode=Hi;case Hi:if(f>=6&&d>=258){e.next_out=o,e.avail_out=d,e.next_in=a,e.avail_in=f,r.hold=l,r.bits=h,Eg(e,x),o=e.next_out,n=e.output,d=e.avail_out,a=e.next_in,i=e.input,f=e.avail_in,l=r.hold,h=r.bits,r.mode===ot&&(r.back=-1);break}for(r.back=0;R=r.lencode[l&(1<<r.lenbits)-1],T=R>>>24,L=R>>>16&255,V=R&65535,!(T<=h);){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}if(L&&(L&240)==0){for(S=T,Z=L,z=V;R=r.lencode[z+((l&(1<<S+Z)-1)>>S)],T=R>>>24,L=R>>>16&255,V=R&65535,!(S+T<=h);){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}l>>>=S,h-=S,r.back+=S}if(l>>>=T,h-=T,r.back+=T,r.length=V,L===0){r.mode=Zl;break}if(L&32){r.back=-1,r.mode=ot;break}if(L&64){e.msg="invalid literal/length code",r.mode=ve;break}r.extra=L&15,r.mode=Vl;case Vl:if(r.extra){for(Q=r.extra;h<Q;){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,h-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=zl;case zl:for(;R=r.distcode[l&(1<<r.distbits)-1],T=R>>>24,L=R>>>16&255,V=R&65535,!(T<=h);){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}if((L&240)==0){for(S=T,Z=L,z=V;R=r.distcode[z+((l&(1<<S+Z)-1)>>S)],T=R>>>24,L=R>>>16&255,V=R&65535,!(S+T<=h);){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}l>>>=S,h-=S,r.back+=S}if(l>>>=T,h-=T,r.back+=T,L&64){e.msg="invalid distance code",r.mode=ve;break}r.offset=V,r.extra=L&15,r.mode=Hl;case Hl:if(r.extra){for(Q=r.extra;h<Q;){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,h-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=ve;break}r.mode=Gl;case Gl:if(d===0)break e;if(v=x-d,r.offset>v){if(v=r.offset-v,v>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=ve;break}v>r.wnext?(v-=r.wnext,E=r.wsize-v):E=r.wnext-v,v>r.length&&(v=r.length),D=r.window}else D=n,E=o-r.offset,v=r.length;v>d&&(v=d),d-=v,r.length-=v;do n[o++]=D[E++];while(--v);r.length===0&&(r.mode=Hi);break;case Zl:if(d===0)break e;n[o++]=r.length,d--,r.mode=Hi;break;case Ia:if(r.wrap){for(;h<32;){if(f===0)break e;f--,l|=i[a++]<<h,h+=8}if(x-=d,e.total_out+=x,r.total+=x,r.wrap&4&&x&&(e.adler=r.check=r.flags?ye(r.check,n,x,o-x):Br(r.check,n,x,o-x)),x=d,r.wrap&4&&(r.flags?l:Kl(l))!==r.check){e.msg="incorrect data check",r.mode=ve;break}l=0,h=0}r.mode=Wl;case Wl:if(r.wrap&&r.flags){for(;h<32;){if(f===0)break e;f--,l+=i[a++]<<h,h+=8}if(r.wrap&4&&l!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=ve;break}l=0,h=0}r.mode=ql;case ql:G=Pg;break e;case ve:G=El;break e;case jl:return Sl;case Yl:default:return ze}return e.next_out=o,e.avail_out=d,e.next_in=a,e.avail_in=f,r.hold=l,r.bits=h,(r.wsize||x!==e.avail_out&&r.mode<ve&&(r.mode<Ia||t!==kl))&&rh(e,e.output,e.next_out,x-e.avail_out),y-=e.avail_in,x-=e.avail_out,e.total_in+=y,e.total_out+=x,r.total+=x,r.wrap&4&&x&&(e.adler=r.check=r.flags?ye(r.check,n,x,e.next_out-x):Br(r.check,n,x,e.next_out-x)),e.data_type=r.bits+(r.last?64:0)+(r.mode===ot?128:0)+(r.mode===zi||r.mode===Aa?256:0),(y===0&&x===0||t===kl)&&G===$t&&(G=$g),G},Hg=e=>{if(Ot(e))return ze;let t=e.state;return t.window&&(t.window=null),e.state=null,$t},Gg=(e,t)=>{if(Ot(e))return ze;let r=e.state;return(r.wrap&2)==0?ze:(r.head=t,t.done=!1,$t)},Zg=(e,t)=>{let r=t.length,i,n,a;return Ot(e)||(i=e.state,i.wrap!==0&&i.mode!==Vi)?ze:i.mode===Vi&&(n=1,n=Br(n,t,r,0),n!==i.check)?El:(a=rh(e,t,r,r),a?(i.mode=jl,Sl):(i.havedict=1,$t))},Wg=Ql,qg=Jl,jg=Xl,Yg=Bg,Kg=eh,Xg=zg,Qg=Hg,Jg=Gg,e1=Zg,t1="pako inflate (from Nodeca project)",ut={inflateReset:Wg,inflateReset2:qg,inflateResetKeep:jg,inflateInit:Yg,inflateInit2:Kg,inflate:Xg,inflateEnd:Qg,inflateGetHeader:Jg,inflateSetDictionary:e1,inflateInfo:t1};function r1(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var i1=r1,ih=Object.prototype.toString,{Z_NO_FLUSH:n1,Z_FINISH:a1,Z_OK:Kr,Z_STREAM_END:Ra,Z_NEED_DICT:Pa,Z_STREAM_ERROR:s1,Z_DATA_ERROR:nh,Z_MEM_ERROR:o1}=Vr;function Xr(e){this.options=Mi.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)==0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new vl,this.strm.avail_out=0;let r=ut.inflateInit2(this.strm,t.windowBits);if(r!==Kr)throw new Error(ar[r]);if(this.header=new i1,ut.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=jr.string2buf(t.dictionary):ih.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=ut.inflateSetDictionary(this.strm,t.dictionary),r!==Kr)))throw new Error(ar[r])}Xr.prototype.push=function(e,t){let r=this.strm,i=this.options.chunkSize,n=this.options.dictionary,a,o,f;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?a1:n1,ih.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),a=ut.inflate(r,o),a===Pa&&n&&(a=ut.inflateSetDictionary(r,n),a===Kr?a=ut.inflate(r,o):a===nh&&(a=Pa));r.avail_in>0&&a===Ra&&r.state.wrap>0&&e[r.next_in]!==0;)ut.inflateReset(r),a=ut.inflate(r,o);switch(a){case s1:case nh:case Pa:case o1:return this.onEnd(a),this.ended=!0,!1}if(f=r.avail_out,r.next_out&&(r.avail_out===0||a===Ra))if(this.options.to==="string"){let d=jr.utf8border(r.output,r.next_out),l=r.next_out-d,h=jr.buf2string(r.output,d);r.next_out=l,r.avail_out=i-l,l&&r.output.set(r.output.subarray(d,d+l),0),this.onData(h)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(a===Kr&&f===0)){if(a===Ra)return a=ut.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};Xr.prototype.onData=function(e){this.chunks.push(e)};Xr.prototype.onEnd=function(e){e===Kr&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Mi.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function La(e,t){let r=new Xr(t);if(r.push(e),r.err)throw r.msg||ar[r.err];return r.result}function u1(e,t){return t=t||{},t.raw=!0,La(e,t)}var l1=Xr,h1=La,f1=u1,c1=La,p1=Vr,d1={Inflate:l1,inflate:h1,inflateRaw:f1,ungzip:c1,constants:p1};var{Inflate:v1,inflate:mb,inflateRaw:_b,ungzip:xb}=d1;var ah=v1;var Qr=[137,80,78,71,13,10,26,10],sh=[];for(let e=0;e<256;e++){let t=e;for(let r=0;r<8;r++)t&1?t=3988292384^t>>>1:t=t>>>1;sh[e]=t}var oh=4294967295;function g1(e,t,r){let i=e;for(let n=0;n<r;n++)i=sh[(i^t[n])&255]^i>>>8;return i}function $a(e,t){return(g1(oh,e,t)^oh)>>>0}var lt;(function(e){e[e.UNKNOWN=-1]="UNKNOWN",e[e.GREYSCALE=0]="GREYSCALE",e[e.TRUECOLOUR=2]="TRUECOLOUR",e[e.INDEXED_COLOUR=3]="INDEXED_COLOUR",e[e.GREYSCALE_ALPHA=4]="GREYSCALE_ALPHA",e[e.TRUECOLOUR_ALPHA=6]="TRUECOLOUR_ALPHA"})(lt||(lt={}));var cr;(function(e){e[e.UNKNOWN=-1]="UNKNOWN",e[e.DEFLATE=0]="DEFLATE"})(cr||(cr={}));var pr;(function(e){e[e.UNKNOWN=-1]="UNKNOWN",e[e.ADAPTIVE=0]="ADAPTIVE"})(pr||(pr={}));var dr;(function(e){e[e.UNKNOWN=-1]="UNKNOWN",e[e.NO_INTERLACE=0]="NO_INTERLACE",e[e.ADAM7=1]="ADAM7"})(dr||(dr={}));var b1=new Uint8Array(0),m1="\0",_1=new Uint16Array([255]),x1=new Uint8Array(_1.buffer),y1=x1[0]===255,Gi=class extends rr{constructor(t,r={}){super(t);let{checkCrc:i=!1}=r;this._checkCrc=i,this._inflator=new ah,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._end=!1,this._hasPalette=!1,this._palette=[],this._compressionMethod=cr.UNKNOWN,this._filterMethod=pr.UNKNOWN,this._interlaceMethod=dr.UNKNOWN,this._colorType=-1,this.setBigEndian()}decode(){for(this.decodeSignature();!this._end;)this.decodeChunk();return this.decodeImage(),this._png}decodeSignature(){for(let t=0;t<Qr.length;t++)if(this.readUint8()!==Qr[t])throw new Error(`wrong PNG signature. Byte at ${t} should be ${Qr[t]}.`)}decodeChunk(){let t=this.readUint32(),r=this.readChars(4),i=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"tEXt":this.decodetEXt(t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-i!==t)throw new Error(`Length mismatch while decoding chunk ${r}`);if(this._checkCrc){let n=this.readUint32(),a=t+4,o=$a(new Uint8Array(this.buffer,this.byteOffset+this.offset-a-4,a),a);if(o!==n)throw new Error(`CRC mismatch for chunk ${r}. Expected ${n}, found ${o}`)}else this.skip(4)}decodeIHDR(){let t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=N1(this.readUint8());let r=this.readUint8();this._colorType=r;let i;switch(r){case lt.GREYSCALE:i=1;break;case lt.TRUECOLOUR:i=3;break;case lt.INDEXED_COLOUR:i=1;break;case lt.GREYSCALE_ALPHA:i=2;break;case lt.TRUECOLOUR_ALPHA:i=4;break;default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=i,this._compressionMethod=this.readUint8(),this._compressionMethod!==cr.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodePLTE(t){if(t%3!=0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);let r=t/3;this._hasPalette=!0;let i=[];this._palette=i;for(let n=0;n<r;n++)i.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(t){this._inflator.push(new Uint8Array(this.buffer,this.offset+this.byteOffset,t)),this.skip(t)}decodetRNS(t){if(this._colorType===3){if(t>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${t} vs ${this._palette.length})`);let r=0;for(;r<t;r++){let i=this.readByte();this._palette[r].push(i)}for(;r<this._palette.length;r++)this._palette[r].push(255)}}decodetEXt(t){let r="",i;for(;(i=this.readChar())!==m1;)r+=i;this._png.text[r]=this.readChars(t-r.length-1)}decodepHYs(){let t=this.readUint32(),r=this.readUint32(),i=this.readByte();this._png.resolution={x:t,y:r,unit:i}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);let t=this._inflator.result;if(this._filterMethod!==pr.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===dr.NO_INTERLACE)this.decodeInterlaceNull(t);else throw new Error(`Interlace method ${this._interlaceMethod} not supported`)}decodeInterlaceNull(t){let r=this._png.height,i=this._png.channels*this._png.depth/8,n=this._png.width*i,a=new Uint8Array(this._png.height*n),o=b1,f=0,d,l;for(let h=0;h<r;h++){switch(d=t.subarray(f+1,f+1+n),l=a.subarray(h*n,(h+1)*n),t[f]){case 0:w1(d,l,n);break;case 1:k1(d,l,n,i);break;case 2:E1(d,l,o,n);break;case 3:S1(d,l,o,n,i);break;case 4:C1(d,l,o,n,i);break;default:throw new Error(`Unsupported filter: ${t[f]}`)}o=l,f+=n+1}if(this._hasPalette&&(this._png.palette=this._palette),this._png.depth===16){let h=new Uint16Array(a.buffer);if(y1)for(let y=0;y<h.length;y++)h[y]=I1(h[y]);this._png.data=h}else this._png.data=a}};function w1(e,t,r){for(let i=0;i<r;i++)t[i]=e[i]}function k1(e,t,r,i){let n=0;for(;n<i;n++)t[n]=e[n];for(;n<r;n++)t[n]=e[n]+t[n-i]&255}function E1(e,t,r,i){let n=0;if(r.length===0)for(;n<i;n++)t[n]=e[n];else for(;n<i;n++)t[n]=e[n]+r[n]&255}function S1(e,t,r,i,n){let a=0;if(r.length===0){for(;a<n;a++)t[a]=e[a];for(;a<i;a++)t[a]=e[a]+(t[a-n]>>1)&255}else{for(;a<n;a++)t[a]=e[a]+(r[a]>>1)&255;for(;a<i;a++)t[a]=e[a]+(t[a-n]+r[a]>>1)&255}}function C1(e,t,r,i,n){let a=0;if(r.length===0){for(;a<n;a++)t[a]=e[a];for(;a<i;a++)t[a]=e[a]+t[a-n]&255}else{for(;a<n;a++)t[a]=e[a]+r[a]&255;for(;a<i;a++)t[a]=e[a]+A1(t[a-n],r[a],r[a-n])&255}}function A1(e,t,r){let i=e+t-r,n=Math.abs(i-e),a=Math.abs(i-t),o=Math.abs(i-r);return n<=a&&n<=o?e:a<=o?t:r}function I1(e){return(e&255)<<8|e>>8&255}function N1(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var uh;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(uh||(uh={}));function lh(e,t){return new Gi(e,t).decode()}var Zi=wo(hh());function Da(e){if(e<0||e>65536)throw new Error("Palettes cannot have more than 2^16 (65536) colors.")}function Wi(e){return e.colors instanceof Uint32Array}function Fa(e){return e._rgb instanceof Array}var He=class{constructor(t){if(typeof t=="number")Da(t),this.colors=new Uint32Array(t);else if(t instanceof Uint32Array)this.colors=new Uint32Array(t);else if(jt(t))this.colors=new Uint32Array(t.map(Ce));else throw new Error("Invalid Palette constructor")}get(t){return this.colors[t]}chromas(){return Array.from(this.colors).map(t=>qi(t&16777215))}},T1=Zi.default;function qi(e){return typeof e=="number"?(0,Zi.default)(fi(e&16777215)):(0,Zi.default)(e)}function Ce(e,t,r){return vr(e,t,r,255)|4278190080}function vr(e,t,r,i){if(Fa(e))return vr(e._rgb[0],e._rgb[1],e._rgb[2],e._rgb[3]);if(typeof e=="number"){let n=e;return typeof t=="number"&&typeof r=="number"?(n&255)<<0|(t&255)<<8|(r&255)<<16|(i&255)<<24:e}if(typeof e!="string"&&jt(e)&&typeof e[0]=="number"){let n=e,a=0;return a|=(n[0]&255)<<0,a|=(n[1]&255)<<8,a|=(n[2]&255)<<16,a|=(n[3]&255)<<24,a}return vr(qi(e).rgb())}var ji;(function(d){function e(l,h){if(Da(h),typeof l=="function"){if(!h)throw new Error("You must also pass the number of colors to generate.");for(var y=new He(h),x=0;x<y.colors.length;x++)y.colors[x]=vr(l(x));return y}else return new He(l)}d.from=e;function t(){return n(2)}d.mono=t;function r(){return new He([Ce(0,0,0),Ce(0,0,255),Ce(255,0,0),Ce(0,255,0)])}function i(){return new He([Ce(0,0,0),Ce(0,0,255),Ce(255,0,0),Ce(255,0,255),Ce(0,255,0),Ce(0,255,255),Ce(255,255,0),Ce(255,255,255)])}function n(l){return e(h=>{let y=255*h/(l-1);return Ce(y,y,y)},l)}d.greys=n;function a(l){switch(l){case 2:return t();case 4:return r();case 8:return i();default:return f(l)}}d.colors=a;function o(l){return Da(l),new He(T1.cubehelix().scale().colors(l))}d.helix=o;function f(l,h){return h=h||204559,e(y=>Ce(y*h),l)}d.factors=f})(ji||(ji={}));var fh=new ko,ch,kt={},Hb=new Map;var Ua;(function(n){function e(a,o){if(a==null)return a;let f=kt&&kt[o];return f&&a.$$setstate?a.$$setstate(f):f&&Object.assign(a,f),a}n.load=e;function t(a,o){return kt&&a&&a.$$getstate&&(kt[o]=a.$$getstate()),a}n.save=t;function r(a){return kt&&kt[a]}n.get=r;function i(a,o){kt&&(kt[a]=o)}n.set=i})(Ua||(Ua={}));function P1(e){if(e.startsWith("https://github.com/")){let t=e.split("/");if(t[5]==="blob")return`https://raw.githubusercontent.com/${t[3]}/${t[4]}/${t.slice(6).join("/")}`}return e}function L1(e,t){var r=new XMLHttpRequest;if(r.responseType=t==="text"?"text":"arraybuffer",r.open("GET",e,!1),r.send(null),r.response!=null&&r.status==200)return t==="text"?r.response:new Uint8Array(r.response);throw new Error(`The resource at "${e}" responded with status code of ${r.status}.`)}function $1(e,t){if(e.startsWith("http:")||e.startsWith("https:"))return L1(e,t);if(ch)return ch.getFileData(e)}function ph(e,t){e=P1(e);let r=e,i=fh.get(r);if(i!=null)return i;if(i=$1(e,t),i==null)throw new Error(`Cannot find resource "${e}"`);if(t==="text"&&typeof i!="string")throw new Error(`Resource "${e}" is not a string`);if(t==="binary"&&!(i instanceof Uint8Array))throw new Error(`Resource "${e}" is not a binary file`);return fh.put(r,i),i}function dh(e){var t=ph(e,"binary");if(t instanceof Uint8Array)return t;throw new Error(`The resource at "${e}" is not a binary file.`)}function Ba(e){return ph(e,"text").split(`
`)}var Va=class{constructor(t,r){this.width=t;this.height=r;this.style={}}inbounds(t,r){return t>=0&&t<this.width&&r>=0&&r<this.height}assign(t){if(typeof t=="function")for(let r=0;r<this.height;r++)for(let i=0;i<this.width;i++)this.set(i,r,t(i,r));else if(t&&t.length!=null)this.setarray(t);else throw new Error(`Illegal argument to assign(): ${t}`)}clone(){let t=this.blank(this.width,this.height);return t.assign((r,i)=>this.get(r,i)),t}crop(t,r,i,n){let a=this.blank(i,n);return a.assign((o,f)=>this.get(o+t,f+r)),a}blit(t,r,i,n,a){r|=0,i|=0,n|=0,a|=0;for(var o=0;o<t.height;o++)for(var f=0;f<t.width;f++){let d=t.getrgba(f+n,o+a);this.set(f+r,o+i,d)}}fill(t,r,i,n,a){for(var o=0;o<n;o++)for(var f=0;f<i;f++)this.set(f+t,o+r,a)}},Yi=class extends Va{constructor(t,r,i){super(t,r);this.rgba=new Uint32Array(this.width*this.height),i&&this.assign(i)}setarray(t){this.rgba.set(t)}set(t,r,i){this.inbounds(t,r)&&(this.rgba[r*this.width+t]=i)}get(t,r){return this.inbounds(t,r)?this.rgba[r*this.width+t]:0}getrgba(t,r){return this.get(t,r)}blank(t,r){return new Yi(t||this.width,r||this.height)}clone(){let t=this.blank(this.width,this.height);return t.rgba.set(this.rgba),t}},vh=class extends Va{constructor(t,r,i,n){super(t,r);this.bpp=i;if(i!=1&&i!=2&&i!=4&&i!=8)throw new Error(`Invalid bits per pixel: ${i}`);this.pixels=new Uint8Array(this.width*this.height),n&&this.assign(n)}setarray(t){this.pixels.set(t)}set(t,r,i){this.inbounds(t,r)&&(this.pixels[r*this.width+t]=i)}get(t,r){return this.inbounds(t,r)?this.pixels[r*this.width+t]:0}};function M1(e){if(typeof e=="number")return e;if(e instanceof He){if(e.colors.length<=2)return 1;if(e.colors.length<=4)return 2;if(e.colors.length<=16)return 4}return 8}var Jr=class extends vh{constructor(t,r,i,n){super(t,r,M1(i),n);this.palette=i instanceof He?i:ji.colors(1<<this.bpp)}getrgba(t,r){return this.palette&&this.palette.colors[this.get(t,r)]}blank(t,r,i){return new Jr(t||this.width,r||this.height,i||this.palette)}clone(){let t=this.blank(this.width,this.height);return t.pixels.set(this.pixels),t}};var gh;(function(a){function e(o){return t(dh(o))}a.read=e;function t(o){let f=lh(o);return r(f)}a.decode=t;function r(o){return o.palette&&o.depth<=8?i(o):n(o)}function i(o){var f=o.palette,d=new He(f);let l=new Jr(o.width,o.height,o.depth);if(o.depth==8)l.pixels.set(o.data);else{let y=Math.floor(8/o.depth),x=(1<<o.depth)-1;for(let v=0;v<l.pixels.length;v++){var h=v%y*o.depth;let E=o.data[Math.floor(v/y)];l.pixels[v]=E>>h&x}}return l.palette=d,l}function n(o){let f=new Yi(o.width,o.height),d=[0,0,0,0];for(let l=0;l<f.rgba.length;l++){for(let h=0;h<4;h++)d[h]=o.data[l*4+h];f.rgba[l]=vr(d)}return f}})(gh||(gh={}));var bh;(function(a){class e extends Jr{constructor(f,d,l,h,y){super(f,d,l);this.code=h;this.yoffset=y}}function t(o){if(o.endsWith(".yaff"))return i(Ba(o));if(o.endsWith(".draw"))return n(Ba(o));throw new Error(`Can't figure out font format for "${o}"`)}a.read=t;function r(o,f,d){let l=0;for(var h of o)l=Math.max(l,h.length);let y=new e(l,o.length,1,f,d);for(var x=0;x<o.length;x++){let E=o[x];for(var v=0;v<E.length;v++){let D=E[v];y.set(v,x,D==="@"||D==="#"?1:0)}}return y}a.decodeglyph=r;function i(o){let f=0,d={},l={},h=0,y=-1,x=[],v=/^([\w-]+):\s+(.+)/i,E=/^0x([0-9a-f]+):|u[+]([0-9a-f]+):|(\w+):/i,D=/^\s+([.@]+)/;function R(){y>=0&&x.length&&(l[y]=r(x,y,h),y=-1,x=[])}for(let T of o){let L;if((L=v.exec(T))?(d[L[1]]=L[2],L[1]==="bottom"&&(h=parseInt(L[2])),L[1]==="size"&&(f=parseInt(L[2]))):(L=E.exec(T))?(R(),L[1]!=null?y=parseInt(L[1],16):L[2]!=null?y=parseInt(L[2],16):L[3]!=null&&(y=null)):(L=D.exec(T))&&x.push(L[1]),isNaN(y+h+f))throw new Error(`couldn't decode .yaff: ${JSON.stringify(T)}`)}return R(),{maxheight:f,properties:d,glyphs:l}}a.decodeyafflines=i;function n(o){let f=0,d={},l={},h=-1,y=[],x=/^([0-9a-f]+)?[:]?\s*([-#]+)/i;function v(){h>=0&&y.length&&(l[h]=r(y,h,0),f=Math.max(f,y.length),h=-1,y=[])}for(let E of o){let D;if(D=x.exec(E)){if(D[1]!=null&&(v(),h=parseInt(D[1],16),isNaN(h)))throw new Error(`couldn't decode .draw: ${JSON.stringify(E)}`);y.push(D[2])}}return v(),{maxheight:f,properties:d,glyphs:l}}a.decodedrawlines=n})(bh||(bh={}));var mh;(function(l){l[l.unknown=0]="unknown",l[l.u8=1]="u8",l[l.s8=2]="s8",l[l.u16=3]="u16",l[l.s16=4]="s16",l[l.u32=5]="u32",l[l.s32=6]="s32",l[l.f32=7]="f32",l[l.f64=8]="f64"})(mh||(mh={}));var _h="$$event";function xh(e){return!!e.$$interact}var Jb=Eh(),Sh="$$consname";var Ch=100,B1=1;function gr(e,t,r,i){let n=e.$$interact,a=qt({interactid:n.interactid,type:t},i);if(r instanceof PointerEvent){let o=r.target,f=o.getBoundingClientRect(),d=o.width/f.width,l=o.height/f.height,h=(r.clientX-f.left)*d,y=(r.clientY-f.top)*l;a.x=Math.floor(h),a.y=Math.floor(y)}else console.log("Unknown event type",r);ci.updateDataItems([{key:_h,value:a}])}var Ga=class extends Me{render(t,r,i){let n=this.props.rgbavalue&16777215,a=fi(n);var o=`#${yr(a,6)}`,f=n&32768?"#222":"#ddd",d=yr(n&16777215,6);return ue("div",{class:"scripting-item scripting-color",style:`background-color: ${o}; color: ${f}`,alt:o},[])}},Ah=class extends Me{constructor(t){super(t);this.ref=In();this.pressed=!1}render(t,r,i){let n={class:"scripting-item",ref:this.ref,width:this.props.width,height:this.props.height,style:this.props.bitmap.style},a=this.props.bitmap;return xh(a)?ue("canvas",qt({onPointerMove:o=>{gr(a,"move",o,{pressed:this.pressed})},onPointerDown:o=>{this.pressed=!0,this.canvas.setPointerCapture(o.pointerId),gr(a,"down",o,{pressed:!0})},onPointerUp:o=>{this.pressed=!1,gr(a,"up",o,{pressed:!1})},onPointerOut:o=>{this.pressed=!1,gr(a,"out",o,{pressed:!1})}},n)):ue("canvas",n)}componentDidMount(){this.refresh()}componentWillUnmount(){this.canvas=null,this.imageData=null,this.datau32=null}componentDidUpdate(t,r,i){this.refresh()}prepare(){this.canvas=this.base,this.ctx=this.canvas.getContext("2d"),this.imageData=this.ctx.createImageData(this.canvas.width,this.canvas.height),this.datau32=new Uint32Array(this.imageData.data.buffer)}refresh(){(this.canvas!==this.base||this.imageData.width!=this.props.width||this.imageData.height!=this.props.height)&&this.prepare(),this.updateCanvas(this.datau32,this.props.bitmap),this.ctx.putImageData(this.imageData,0,0)}updateCanvas(t,r){r.palette&&this.updateCanvasIndexed(t,r),r.rgba&&this.updateCanvasRGBA(t,r)}updateCanvasRGBA(t,r){t.set(r.rgba)}updateCanvasIndexed(t,r){let i=r.palette.colors;for(var n=0;n<r.pixels.length;n++)t[n]=i[r.pixels[n]]}},Ih=class extends Me{render(t,r,i){let n=typeof this.props.object=="object",a="";n&&(a=this.state.expanded?"tree-expanded":"tree-collapsed");let o=this.props.name||null;return ue("div",{class:"tree-content",key:`${this.props.objpath}__tree`},[ue("div",{class:"tree-header "+a,onClick:n?()=>this.toggleExpand():null},[o!=null?ue("span",{class:"tree-key"},[o,n]):null,ue("span",{class:"tree-value scripting-item"},[Nh(this.props.object)])]),this.state.expanded?q1(this.props.object,this.props.objpath):null])}toggleExpand(){this.setState({expanded:!this.state.expanded})}};function Nh(e){if(typeof e=="object")try{var t=e[Sh]||Object.getPrototypeOf(e).constructor.name;return e.length>0&&(t+=`[${e.length}]`),t}catch(r){return console.log(r),r+""}else return V1(e)}function V1(e){var t="";return e&&e.$$&&typeof e.$$=="function"&&this._content!=null&&(e=e.$$()),e==null?t=e+"":typeof e=="number"?e!=(e|0)?t=e.toString():t=e+" ($"+yr(e)+")":typeof e=="string"?t=e:t=JSON.stringify(e),t.length>Ch&&(t=t.substring(0,Ch)+"..."),t}function z1(e){return e.bpp&&e.pixels&&e.palette}function H1(e){return e.rgba instanceof Uint32Array}function G1(e){return Wi(e)?new He(e.colors).chromas():jt(e)?Array.from(e):e!=null?[e]:[]}function Z1(e,t){return Wi(e)?qi(e.colors[t]):jt(e)?e[t]:e!=null?e:null}function br(e,t,r){if(t&&t.startsWith("$")){if(t.startsWith("$$")||e==null)return;t=null}if(e==null)return ue("span",{},e+"");if(e.uitype){let i=j1[e.uitype];if(!i)throw new Error(`Unknown UI component type: ${e.uitype}`);return ue(i,{iokey:r,uiobject:e})}else{if(e.literaltext)return ue("pre",{},[e.literaltext]);if(z1(e)||H1(e))return ue(Ah,{bitmap:e,width:e.width,height:e.height});if(Fa(e))return ue(Ga,{rgbavalue:Ce(e)});if(Wi(e))if(e.colors.length<=256){let i=[],n={class:"",key:`${r}__obj`};return n.class+=" scripting-flex ",e.colors.forEach(a=>{i.push(ue(Ga,{rgbavalue:a}))}),ue("div",n,i)}else{let{a:i,b:n}=An(e.colors.length,1,1,B1);return br({rgba:e.colors,width:i,height:n},t,r)}else return ue(Ih,{name:t,object:e,objpath:r},[])}}function W1(e,t,r){let i=256;if(e.length<=i){let a=So(e,0,e.length);return ue("pre",{},a)}else{let a=[];for(var n=0;n<e.length;n+=i)a.push(br(e.slice(n,n+i),"$"+yr(n),`${r}.${n}`));return ue("div",{},a)}}function q1(e,t){let r=e.BYTES_PER_ELEMENT;if(typeof r=="number")return W1(e,r,t);let n=Object.entries(e).map(a=>br(a[1],a[0],`${t}.${a[1]}`));return ue("div",{class:"scripting-flex"},n)}var Th=class extends Me{render(t,r,i){let n=this.props.uiobject;return ue("div",{},[this.props.iokey,ue("input",{type:"range",min:n.min/n.step,max:n.max/n.step,value:n.value/n.step,onInput:a=>{let o=a.target,f={value:parseFloat(o.value)*n.step};this.setState(this.state),ci.updateDataItems([{key:this.props.iokey,value:f}])}}),ue("span",{},Nh(n.value))])}},Rh=class extends Me{constructor(){super(...arguments);this.ref=In()}render(t,r,i){let n=this.props.uiobject,a=G1(n.options);this.props.dropdown=a.length>16;let o=!this.props.dropdown||this.state.expanded,f=null;if(o&&(f=ue("div",{class:"scripting-select scripting-flex",ref:this.ref,onClick:d=>{let l=d.target;for(;l.parentElement&&l.parentElement!=this.ref.current;)l=l.parentElement;if(l.parentElement){let h=Array.from(l.parentElement.children).indexOf(l);if(h>=0&&h<a.length){let y={value:a[h],index:h};this.setState({expanded:!1}),ci.updateDataItems([{key:this.props.iokey,value:y}])}else throw new Error(`Could not find click target of ${this.props.iokey}`)}}},a.map((d,l)=>{let h=br(d,null,`${this.props.iokey}__select_${l}`),y=l==n.index;return ue("div",{class:y?"scripting-selected":""},[h])}))),this.props.dropdown){let d=br(Z1(n.options,n.index),null,`${this.props.iokey}__selected`);return ue("div",{class:"tree-content",key:`${this.props.iokey}__tree`},[ue("div",{class:"tree-header "+(this.state.expanded?"tree-expanded":"tree-collapsed"),onClick:()=>this.toggleExpand()},[this.props.iokey,ue("span",{class:"tree-value scripting-item"},[d])]),f])}else return f}toggleExpand(){this.setState({expanded:!this.state.expanded})}},Ph=class extends Me{render(t,r,i){let n=this.props.uiobject;return ue("button",{class:n.enabled?"scripting-button scripting-enabled":"scripting-button",onClick:a=>{gr(n,"click",a,{})}},[n.label])}},Lh=class extends Me{render(t,r,i){let n=this.props.uiobject;return ue("div",{onKeyDown:a=>{gr(n,"key",a,{})}},[])}},j1={slider:Th,select:Rh,button:Ph,shortcut:Lh},Za=class{constructor(t,r){this.maindoc=t;this.maindiv=r;r.classList.add("vertical-scroll")}updateCells(t){let r=t.map(i=>ue("div",{class:"scripting-cell",key:`${i.id}__cell`},[br(i.object,i.id,i.id)]));Ho(r,this.maindiv)}};var $h=class{constructor(t){this.mainElement=t,this.notebook=new Za(document,t)}start(){}reset(){}pause(){}resume(){}loadROM(t,r){this.notebook.updateCells(r.cells)}isRunning(){return!0}isDebugging(){return!1}getToolForFilename(t){return"js"}getDefaultExtension(){return".js"}getPresets(){return[]}};Eo.script=$h;
/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
/**
* chroma.js - JavaScript library for color conversions
*
* Copyright (c) 2011-2019, Gregor Aisch
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. The name Gregor Aisch may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* -------------------------------------------------------
*
* chroma.js includes colors from colorbrewer2.org, which are released under
* the following license:
*
* Copyright (c) 2002 Cynthia Brewer, Mark Harrower,
* and The Pennsylvania State University.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific
* language governing permissions and limitations under the License.
*
* ------------------------------------------------------
*
* Named colors are taken from X11 Color Names.
* http://www.w3.org/TR/css3-color/#svg-color
*
* @preserve
*/
//# sourceMappingURL=script-UI6C7LLU.js.map