@stacksjs/buddy 0.65.0 → 0.67.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-agapayce.js → chunk-3whxjf1k.js} +1 -4
- package/dist/chunk-42swmjjw.js +2 -0
- package/dist/chunk-564c63vr.js +2 -0
- package/dist/chunk-5wxk7vka.js +1 -0
- package/dist/chunk-6cscdnf5.js +2 -0
- package/dist/chunk-898dh3kh.js +8 -0
- package/dist/chunk-9g2p5d3j.js +2 -0
- package/dist/chunk-bpa4071y.js +2 -0
- package/dist/chunk-cbtnhpqk.js +2 -0
- package/dist/chunk-f18wwa85.js +827 -0
- package/dist/chunk-g767h9jq.js +3 -0
- package/dist/chunk-hgzxtrgw.js +9 -0
- package/dist/chunk-hqv9y9k2.js +6 -0
- package/dist/chunk-jfs19hhz.js +2 -0
- package/dist/chunk-ncwfzcsm.js +2 -0
- package/dist/chunk-pfb4369d.js +2 -0
- package/dist/chunk-sgm5999j.js +12 -0
- package/dist/chunk-we57sm1m.js +2 -0
- package/dist/chunk-wps8bq6b.js +2 -0
- package/dist/chunk-y2g00ayp.js +2 -0
- package/dist/chunk-ycyg22fp.js +2 -0
- package/dist/cli.js +1 -4
- package/dist/index.js +1 -4
- package/dist/stacks +0 -0
- package/package.json +48 -49
- package/dist/chunk-1bcxd9nx.js +0 -5
- package/dist/chunk-1bcxd9nx.js.map +0 -17
- package/dist/chunk-3gvx3tap.js +0 -5
- package/dist/chunk-3gvx3tap.js.map +0 -9
- package/dist/chunk-5mkzknp4.js +0 -5
- package/dist/chunk-5mkzknp4.js.map +0 -32
- package/dist/chunk-a3d48jzd.js +0 -15
- package/dist/chunk-a3d48jzd.js.map +0 -164
- package/dist/chunk-a6ba4vgs.js +0 -5
- package/dist/chunk-a6ba4vgs.js.map +0 -11
- package/dist/chunk-agapayce.js.map +0 -15
- package/dist/chunk-b9d377d9.js +0 -5
- package/dist/chunk-b9d377d9.js.map +0 -26
- package/dist/chunk-bh61bx6h.js +0 -4
- package/dist/chunk-bh61bx6h.js.map +0 -23
- package/dist/chunk-fqrjh7j8.js +0 -5
- package/dist/chunk-fqrjh7j8.js.map +0 -10
- package/dist/chunk-jkt9jxar.js +0 -9
- package/dist/chunk-jkt9jxar.js.map +0 -13
- package/dist/chunk-k1q2z202.js +0 -4
- package/dist/chunk-k1q2z202.js.map +0 -16
- package/dist/chunk-mmjggjd5.js +0 -849
- package/dist/chunk-mmjggjd5.js.map +0 -240
- package/dist/chunk-mxwvrbdh.js +0 -6
- package/dist/chunk-mxwvrbdh.js.map +0 -59
- package/dist/chunk-n55kahn5.js +0 -5
- package/dist/chunk-n55kahn5.js.map +0 -12
- package/dist/chunk-pbpgcz3v.js +0 -5
- package/dist/chunk-pbpgcz3v.js.map +0 -46
- package/dist/chunk-sadghty0.js +0 -5
- package/dist/chunk-sadghty0.js.map +0 -20
- package/dist/chunk-smzpmhmp.js +0 -11
- package/dist/chunk-smzpmhmp.js.map +0 -10
- package/dist/chunk-w4zypt02.js +0 -5
- package/dist/chunk-w4zypt02.js.map +0 -23
- package/dist/chunk-ywfsnx7v.js +0 -5
- package/dist/chunk-ywfsnx7v.js.map +0 -22
- package/dist/chunk-yxs8vtg9.js +0 -5
- package/dist/chunk-yxs8vtg9.js.map +0 -10
- package/dist/chunk-z7609s4h.js +0 -12
- package/dist/chunk-z7609s4h.js.map +0 -11
- package/dist/cli.js.map +0 -10
- package/dist/index.js.map +0 -9
- package/src/cli.ts +0 -105
- package/src/commands/add.ts +0 -71
- package/src/commands/build.ts +0 -299
- package/src/commands/changelog.ts +0 -52
- package/src/commands/clean.ts +0 -46
- package/src/commands/cloud.ts +0 -553
- package/src/commands/commit.ts +0 -26
- package/src/commands/configure.ts +0 -84
- package/src/commands/create.ts +0 -143
- package/src/commands/deploy.ts +0 -194
- package/src/commands/dev.ts +0 -292
- package/src/commands/dns.ts +0 -86
- package/src/commands/domains.ts +0 -255
- package/src/commands/fresh.ts +0 -48
- package/src/commands/generate.ts +0 -202
- package/src/commands/http.ts +0 -57
- package/src/commands/index.ts +0 -33
- package/src/commands/install.ts +0 -30
- package/src/commands/key.ts +0 -36
- package/src/commands/lint.ts +0 -54
- package/src/commands/list.ts +0 -42
- package/src/commands/make.ts +0 -352
- package/src/commands/migrate.ts +0 -105
- package/src/commands/outdated.ts +0 -31
- package/src/commands/ports.ts +0 -188
- package/src/commands/prepublish.ts +0 -28
- package/src/commands/projects.ts +0 -54
- package/src/commands/release.ts +0 -50
- package/src/commands/route.ts +0 -39
- package/src/commands/seed.ts +0 -47
- package/src/commands/setup.ts +0 -145
- package/src/commands/test.ts +0 -214
- package/src/commands/tinker.ts +0 -42
- package/src/commands/types.ts +0 -35
- package/src/commands/upgrade.ts +0 -200
- package/src/commands/version.ts +0 -29
- package/src/custom-cli.ts +0 -35
- package/src/index.ts +0 -1
|
@@ -0,0 +1,827 @@
|
|
|
1
|
+
import{K as TZ}from"./chunk-hgzxtrgw.js";import{$ as RZ,L as xZ,M as lZ,N as cZ,O as rZ,P as aZ,Q as iZ,R as tH,S as JZ,T as GZ,U as XZ,V as U6,W as uZ,X as KZ,Y as BZ,Z as EH,_ as OH,aa as MZ,ba as dZ,ca as sZ,da as KV,ea as BV,fa as pZ,ga as qZ,ha as FZ,ia as nZ,ja as jZ,ka as eZ,la as CZ,ma as SZ,na as PZ,oa as wZ,pa as LZ,qa as hZ,ra as yZ}from"./chunk-sgm5999j.js";import{sa as r0,ta as ZZ}from"./chunk-ycyg22fp.js";import{$a as bZ,Ba as VZ,Ca as QZ,Ea as YZ,Fa as zZ,Ga as fZ,Ha as DZ,Ja as RV,Oa as XV,Pa as HV,Qa as L,Ra as ZV,Ta as VV,Ua as GV,Va as N,Wa as QV,Xa as AZ,Ya as IZ,_a as gZ,ab as YV,cb as WZ,db as T,ua as vZ,va as _Z,ya as oZ}from"./chunk-g767h9jq.js";import{Ab as KU1,Bb as S,Cb as ZU1,Db as VU1,zb as i2}from"./chunk-ncwfzcsm.js";var kV=S((VJ,NV)=>{(function(J,G){typeof VJ==="object"&&typeof NV!=="undefined"?G(VJ):typeof define==="function"&&define.amd?define(["exports"],G):(J=typeof globalThis!=="undefined"?globalThis:J||self,G(J.setArray={}))})(VJ,function(J){class G{constructor(){this._indexes={__proto__:null},this.array=[]}}function X(Y){return Y}function H(Y,z){return X(Y)._indexes[z]}function Z(Y,z){let W=H(Y,z);if(W!==void 0)return W;let{array:K,_indexes:q}=X(Y),f=K.push(z);return q[z]=f-1}function V(Y){let{array:z,_indexes:W}=X(Y);if(z.length===0)return;let K=z.pop();W[K]=void 0}function Q(Y,z){let W=H(Y,z);if(W===void 0)return;let{array:K,_indexes:q}=X(Y);for(let f=W+1;f<K.length;f++){let I=K[f];K[f-1]=I,q[I]--}q[z]=void 0,K.pop()}J.SetArray=G,J.get=H,J.pop=V,J.put=Z,J.remove=Q,Object.defineProperty(J,"__esModule",{value:!0})})});var JX=S((QJ,EV)=>{(function(J,G){typeof QJ==="object"&&typeof EV!=="undefined"?G(QJ):typeof define==="function"&&define.amd?define(["exports"],G):(J=typeof globalThis!=="undefined"?globalThis:J||self,G(J.sourcemapCodec={}))})(QJ,function(J){let G=",".charCodeAt(0),X=";".charCodeAt(0),H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Z=new Uint8Array(64),V=new Uint8Array(128);for(let a=0;a<"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".length;a++){let u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(a);Z[a]=u,V[u]=a}function Q(a,u){let _=0,p=0,i=0;do{let r=a.next();i=V[r],_|=(i&31)<<p,p+=5}while(i&32);let $1=_&1;if(_>>>=1,$1)_=-2147483648|-_;return u+_}function Y(a,u,_){let p=u-_;p=p<0?-p<<1|1:p<<1;do{let i=p&31;if(p>>>=5,p>0)i|=32;a.write(Z[i])}while(p>0);return u}function z(a,u){if(a.pos>=u)return!1;return a.peek()!==G}let W=16384,K=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(a){return Buffer.from(a.buffer,a.byteOffset,a.byteLength).toString()}}:{decode(a){let u="";for(let _=0;_<a.length;_++)u+=String.fromCharCode(a[_]);return u}};class q{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(W)}write(a){let{buffer:u}=this;if(u[this.pos++]=a,this.pos===W)this.out+=K.decode(u),this.pos=0}flush(){let{buffer:a,out:u,pos:_}=this;return _>0?u+K.decode(a.subarray(0,_)):u}}class f{constructor(a){this.pos=0,this.buffer=a}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(a){let{buffer:u,pos:_}=this,p=u.indexOf(a,_);return p===-1?u.length:p}}let I=[];function C(a){let{length:u}=a,_=new f(a),p=[],i=[],$1=0;for(;_.pos<u;_.pos++){$1=Q(_,$1);let r=Q(_,0);if(!z(_,u)){let e=i.pop();e[2]=$1,e[3]=r;continue}let m=Q(_,0),H1=Q(_,0)&1?[$1,r,0,0,m,Q(_,0)]:[$1,r,0,0,m],Y1=I;if(z(_,u)){Y1=[];do{let e=Q(_,0);Y1.push(e)}while(z(_,u))}H1.vars=Y1,p.push(H1),i.push(H1)}return p}function x(a){let u=new q;for(let _=0;_<a.length;)_=O(a,_,u,[0]);return u.flush()}function O(a,u,_,p){let i=a[u],{0:$1,1:r,2:m,3:n,4:o,vars:H1}=i;if(u>0)_.write(G);p[0]=Y(_,$1,p[0]),Y(_,r,0),Y(_,o,0);let Y1=i.length===6?1:0;if(Y(_,Y1,0),i.length===6)Y(_,i[5],0);for(let e of H1)Y(_,e,0);for(u++;u<a.length;){let e=a[u],{0:K1,1:q1}=e;if(K1>m||K1===m&&q1>=n)break;u=O(a,u,_,p)}return _.write(G),p[0]=Y(_,m,p[0]),Y(_,n,0),u}function v(a){let{length:u}=a,_=new f(a),p=[],i=[],$1=0,r=0,m=0,n=0,o=0,H1=0,Y1=0,e=0;do{let K1=_.indexOf(";"),q1=0;for(;_.pos<K1;_.pos++){if(q1=Q(_,q1),!z(_,K1)){let H2=i.pop();H2[2]=$1,H2[3]=q1;continue}let e1=Q(_,0),j2=e1&1,f2=e1&2,L2=e1&4,r2=null,h2=I,Q2;if(j2){let H2=Q(_,r);m=Q(_,r===H2?m:0),r=H2,Q2=[$1,q1,0,0,H2,m]}else Q2=[$1,q1,0,0];if(Q2.isScope=!!L2,f2){let H2=n,X0=o;n=Q(_,n);let m0=H2===n;o=Q(_,m0?o:0),H1=Q(_,m0&&X0===o?H1:0),r2=[n,o,H1]}if(Q2.callsite=r2,z(_,K1)){h2=[];do{Y1=$1,e=q1;let H2=Q(_,0),X0;if(H2<-1){X0=[[Q(_,0)]];for(let m0=-1;m0>H2;m0--){let NG=Y1;Y1=Q(_,Y1),e=Q(_,Y1===NG?e:0);let V9=Q(_,0);X0.push([V9,Y1,e])}}else X0=[[H2]];h2.push(X0)}while(z(_,K1))}Q2.bindings=h2,p.push(Q2),i.push(Q2)}$1++,_.pos=K1+1}while(_.pos<u);return p}function b(a){if(a.length===0)return"";let u=new q;for(let _=0;_<a.length;)_=B1(a,_,u,[0,0,0,0,0,0,0]);return u.flush()}function B1(a,u,_,p){let i=a[u],{0:$1,1:r,2:m,3:n,isScope:o,callsite:H1,bindings:Y1}=i;if(p[0]<$1)J1(_,p[0],$1),p[0]=$1,p[1]=0;else if(u>0)_.write(G);p[1]=Y(_,i[1],p[1]);let e=(i.length===6?1:0)|(H1?2:0)|(o?4:0);if(Y(_,e,0),i.length===6){let{4:K1,5:q1}=i;if(K1!==p[2])p[3]=0;p[2]=Y(_,K1,p[2]),p[3]=Y(_,q1,p[3])}if(H1){let{0:K1,1:q1,2:e1}=i.callsite;if(K1!==p[4])p[5]=0,p[6]=0;else if(q1!==p[5])p[6]=0;p[4]=Y(_,K1,p[4]),p[5]=Y(_,q1,p[5]),p[6]=Y(_,e1,p[6])}if(Y1)for(let K1 of Y1){if(K1.length>1)Y(_,-K1.length,0);let q1=K1[0][0];Y(_,q1,0);let e1=$1,j2=r;for(let f2=1;f2<K1.length;f2++){let L2=K1[f2];e1=Y(_,L2[1],e1),j2=Y(_,L2[2],j2),Y(_,L2[0],0)}}for(u++;u<a.length;){let K1=a[u],{0:q1,1:e1}=K1;if(q1>m||q1===m&&e1>=n)break;u=B1(a,u,_,p)}if(p[0]<m)J1(_,p[0],m),p[0]=m,p[1]=0;else _.write(G);return p[1]=Y(_,n,p[1]),u}function J1(a,u,_){do a.write(X);while(++u<_)}function R1(a){let{length:u}=a,_=new f(a),p=[],i=0,$1=0,r=0,m=0,n=0;do{let o=_.indexOf(";"),H1=[],Y1=!0,e=0;i=0;while(_.pos<o){let K1;if(i=Q(_,i),i<e)Y1=!1;if(e=i,z(_,o))if($1=Q(_,$1),r=Q(_,r),m=Q(_,m),z(_,o))n=Q(_,n),K1=[i,$1,r,m,n];else K1=[i,$1,r,m];else K1=[i];H1.push(K1),_.pos++}if(!Y1)W1(H1);p.push(H1),_.pos=o+1}while(_.pos<=u);return p}function W1(a){a.sort(D1)}function D1(a,u){return a[0]-u[0]}function E1(a){let u=new q,_=0,p=0,i=0,$1=0;for(let r=0;r<a.length;r++){let m=a[r];if(r>0)u.write(X);if(m.length===0)continue;let n=0;for(let o=0;o<m.length;o++){let H1=m[o];if(o>0)u.write(G);if(n=Y(u,H1[0],n),H1.length===1)continue;if(_=Y(u,H1[1],_),p=Y(u,H1[2],p),i=Y(u,H1[3],i),H1.length===4)continue;$1=Y(u,H1[4],$1)}}return u.flush()}J.decode=R1,J.decodeGeneratedRanges=v,J.decodeOriginalScopes=C,J.encode=E1,J.encodeGeneratedRanges=b,J.encodeOriginalScopes=x,Object.defineProperty(J,"__esModule",{value:!0})})});var OV=S((GX,XX)=>{(function(J,G){typeof GX==="object"&&typeof XX!=="undefined"?XX.exports=G():typeof define==="function"&&define.amd?define(G):(J=typeof globalThis!=="undefined"?globalThis:J||self,J.resolveURI=G())})(GX,function(){let J=/^[\w+.-]+:\/\//,G=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,X=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function H(O){return J.test(O)}function Z(O){return O.startsWith("//")}function V(O){return O.startsWith("/")}function Q(O){return O.startsWith("file:")}function Y(O){return/^[.?#]/.test(O)}function z(O){let v=G.exec(O);return K(v[1],v[2]||"",v[3],v[4]||"",v[5]||"/",v[6]||"",v[7]||"")}function W(O){let v=X.exec(O),b=v[2];return K("file:","",v[1]||"","",V(b)?b:"/"+b,v[3]||"",v[4]||"")}function K(O,v,b,B1,J1,R1,W1){return{scheme:O,user:v,host:b,port:B1,path:J1,query:R1,hash:W1,type:7}}function q(O){if(Z(O)){let b=z("http:"+O);return b.scheme="",b.type=6,b}if(V(O)){let b=z("http://foo.com"+O);return b.scheme="",b.host="",b.type=5,b}if(Q(O))return W(O);if(H(O))return z(O);let v=z("http://foo.com/"+O);return v.scheme="",v.host="",v.type=O?O.startsWith("?")?3:O.startsWith("#")?2:4:1,v}function f(O){if(O.endsWith("/.."))return O;let v=O.lastIndexOf("/");return O.slice(0,v+1)}function I(O,v){if(C(v,v.type),O.path==="/")O.path=v.path;else O.path=f(v.path)+O.path}function C(O,v){let b=v<=4,B1=O.path.split("/"),J1=1,R1=0,W1=!1;for(let E1=1;E1<B1.length;E1++){let a=B1[E1];if(!a){W1=!0;continue}if(W1=!1,a===".")continue;if(a===".."){if(R1)W1=!0,R1--,J1--;else if(b)B1[J1++]=a;continue}B1[J1++]=a,R1++}let D1="";for(let E1=1;E1<J1;E1++)D1+="/"+B1[E1];if(!D1||W1&&!D1.endsWith("/.."))D1+="/";O.path=D1}function x(O,v){if(!O&&!v)return"";let b=q(O),B1=b.type;if(v&&B1!==7){let R1=q(v),W1=R1.type;switch(B1){case 1:b.hash=R1.hash;case 2:b.query=R1.query;case 3:case 4:I(b,R1);case 5:b.user=R1.user,b.host=R1.host,b.port=R1.port;case 6:b.scheme=R1.scheme}if(W1>B1)B1=W1}C(b,B1);let J1=b.query+b.hash;switch(B1){case 2:case 3:return J1;case 4:{let R1=b.path.slice(1);if(!R1)return J1||".";if(Y(v||O)&&!Y(R1))return"./"+R1+J1;return R1+J1}case 5:return b.path+J1;default:return b.scheme+"//"+b.user+b.host+b.port+b.path+J1}}return x})});var HX=S((YJ,vV)=>{(function(J,G){typeof YJ==="object"&&typeof vV!=="undefined"?G(YJ,JX(),OV()):typeof define==="function"&&define.amd?define(["exports","@jridgewell/sourcemap-codec","@jridgewell/resolve-uri"],G):(J=typeof globalThis!=="undefined"?globalThis:J||self,G(J.traceMapping={},J.sourcemapCodec,J.resolveURI))})(YJ,function(J,G,X){function H(E,h){if(h&&!h.endsWith("/"))h+="/";return X(E,h)}function Z(E){if(!E)return"";let h=E.lastIndexOf("/");return E.slice(0,h+1)}let V=0,Q=1,Y=2,z=3,W=4,K=1,q=2;function f(E,h){let y=I(E,0);if(y===E.length)return E;if(!h)E=E.slice();for(let s=y;s<E.length;s=I(E,s+1))E[s]=x(E[s],h);return E}function I(E,h){for(let y=h;y<E.length;y++)if(!C(E[y]))return y;return E.length}function C(E){for(let h=1;h<E.length;h++)if(E[h][V]<E[h-1][V])return!1;return!0}function x(E,h){if(!h)E=E.slice();return E.sort(O)}function O(E,h){return E[V]-h[V]}let v=!1;function b(E,h,y,s){while(y<=s){let M1=y+(s-y>>1),V1=E[M1][V]-h;if(V1===0)return v=!0,M1;if(V1<0)y=M1+1;else s=M1-1}return v=!1,y-1}function B1(E,h,y){for(let s=y+1;s<E.length;y=s++)if(E[s][V]!==h)break;return y}function J1(E,h,y){for(let s=y-1;s>=0;y=s--)if(E[s][V]!==h)break;return y}function R1(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function W1(E,h,y,s){let{lastKey:M1,lastNeedle:V1,lastIndex:L1}=y,g1=0,A1=E.length-1;if(s===M1){if(h===V1)return v=L1!==-1&&E[L1][V]===h,L1;if(h>=V1)g1=L1===-1?0:L1;else A1=L1}return y.lastKey=s,y.lastNeedle=h,y.lastIndex=b(E,h,g1,A1)}function D1(E,h){let y=h.map(a);for(let s=0;s<E.length;s++){let M1=E[s];for(let V1=0;V1<M1.length;V1++){let L1=M1[V1];if(L1.length===1)continue;let g1=L1[Q],A1=L1[Y],y1=L1[z],q2=y[g1],l1=q2[A1]||(q2[A1]=[]),d1=h[g1],D2=B1(l1,y1,W1(l1,y1,d1,A1));d1.lastIndex=++D2,E1(l1,D2,[y1,s,L1[V]])}}return y}function E1(E,h,y){for(let s=E.length;s>h;s--)E[s]=E[s-1];E[h]=y}function a(){return{__proto__:null}}let u=function(E,h){let y=_(E);if(!("sections"in y))return new Y1(y,h);let s=[],M1=[],V1=[],L1=[],g1=[];p(y,h,s,M1,V1,L1,g1,0,0,1/0,1/0);let A1={version:3,file:y.file,names:L1,sources:M1,sourcesContent:V1,mappings:s,ignoreList:g1};return X0(A1)};function _(E){return typeof E==="string"?JSON.parse(E):E}function p(E,h,y,s,M1,V1,L1,g1,A1,y1,q2){let{sections:l1}=E;for(let d1=0;d1<l1.length;d1++){let{map:D2,offset:a2}=l1[d1],x0=y1,f5=q2;if(d1+1<l1.length){let D5=l1[d1+1].offset;if(x0=Math.min(y1,g1+D5.line),x0===y1)f5=Math.min(q2,A1+D5.column);else if(x0<y1)f5=A1+D5.column}i(D2,h,y,s,M1,V1,L1,g1+a2.line,A1+a2.column,x0,f5)}}function i(E,h,y,s,M1,V1,L1,g1,A1,y1,q2){let l1=_(E);if("sections"in l1)return p(...arguments);let d1=new Y1(l1,h),D2=s.length,a2=V1.length,x0=q1(d1),{resolvedSources:f5,sourcesContent:D5,ignoreList:kG}=d1;if($1(s,f5),$1(V1,d1.names),D5)$1(M1,D5);else for(let T2=0;T2<f5.length;T2++)M1.push(null);if(kG)for(let T2=0;T2<kG.length;T2++)L1.push(kG[T2]+D2);for(let T2=0;T2<x0.length;T2++){let EG=g1+T2;if(EG>y1)return;let IH=r(y,EG),ZF=T2===0?A1:0,CH=x0[T2];for(let OG=0;OG<CH.length;OG++){let l0=CH[OG],W6=ZF+l0[V];if(EG===y1&&W6>=q2)return;if(l0.length===1){IH.push([W6]);continue}let SH=D2+l0[Q],PH=l0[Y],wH=l0[z];IH.push(l0.length===4?[W6,SH,PH,wH]:[W6,SH,PH,wH,a2+l0[W]])}}}function $1(E,h){for(let y=0;y<h.length;y++)E.push(h[y])}function r(E,h){for(let y=E.length;y<=h;y++)E[y]=[];return E[h]}let m="`line` must be greater than 0 (lines start at line 1)",n="`column` must be greater than or equal to 0 (columns start at column 0)",o=-1,H1=1;class Y1{constructor(E,h){let y=typeof E==="string";if(!y&&E._decodedMemo)return E;let s=y?JSON.parse(E):E,{version:M1,file:V1,names:L1,sourceRoot:g1,sources:A1,sourcesContent:y1}=s;this.version=M1,this.file=V1,this.names=L1||[],this.sourceRoot=g1,this.sources=A1,this.sourcesContent=y1,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;let q2=H(g1||"",Z(h));this.resolvedSources=A1.map((d1)=>H(d1||"",q2));let{mappings:l1}=s;if(typeof l1==="string")this._encoded=l1,this._decoded=void 0;else this._encoded=void 0,this._decoded=f(l1,y);this._decodedMemo=R1(),this._bySources=void 0,this._bySourceMemos=void 0}}function e(E){return E}function K1(E){var h,y;return(h=(y=e(E))._encoded)!==null&&h!==void 0?h:y._encoded=G.encode(e(E)._decoded)}function q1(E){var h;return(h=e(E))._decoded||(h._decoded=G.decode(e(E)._encoded))}function e1(E,h,y){let s=q1(E);if(h>=s.length)return null;let M1=s[h],V1=z6(M1,e(E)._decodedMemo,h,y,H1);return V1===-1?null:M1[V1]}function j2(E,h){let{line:y,column:s,bias:M1}=h;if(y--,y<0)throw new Error(m);if(s<0)throw new Error(n);let V1=q1(E);if(y>=V1.length)return Y6(null,null,null,null);let L1=V1[y],g1=z6(L1,e(E)._decodedMemo,y,s,M1||H1);if(g1===-1)return Y6(null,null,null,null);let A1=L1[g1];if(A1.length===1)return Y6(null,null,null,null);let{names:y1,resolvedSources:q2}=E;return Y6(q2[A1[Q]],A1[Y]+1,A1[z],A1.length===5?y1[A1[W]]:null)}function f2(E,h){let{source:y,line:s,column:M1,bias:V1}=h;return AH(E,y,s,M1,V1||H1,!1)}function L2(E,h){let{source:y,line:s,column:M1,bias:V1}=h;return AH(E,y,s,M1,V1||o,!0)}function r2(E,h){let y=q1(E),{names:s,resolvedSources:M1}=E;for(let V1=0;V1<y.length;V1++){let L1=y[V1];for(let g1=0;g1<L1.length;g1++){let A1=L1[g1],y1=V1+1,q2=A1[0],l1=null,d1=null,D2=null,a2=null;if(A1.length!==1)l1=M1[A1[1]],d1=A1[2]+1,D2=A1[3];if(A1.length===5)a2=s[A1[4]];h({generatedLine:y1,generatedColumn:q2,source:l1,originalLine:d1,originalColumn:D2,name:a2})}}}function h2(E,h){let{sources:y,resolvedSources:s}=E,M1=y.indexOf(h);if(M1===-1)M1=s.indexOf(h);return M1}function Q2(E,h){let{sourcesContent:y}=E;if(y==null)return null;let s=h2(E,h);return s===-1?null:y[s]}function H2(E,h){let{ignoreList:y}=E;if(y==null)return!1;let s=h2(E,h);return s===-1?!1:y.includes(s)}function X0(E,h){let y=new Y1(V9(E,[]),h);return e(y)._decoded=E.mappings,y}function m0(E){return V9(E,q1(E))}function NG(E){return V9(E,K1(E))}function V9(E,h){return{version:E.version,file:E.file,names:E.names,sourceRoot:E.sourceRoot,sources:E.sources,sourcesContent:E.sourcesContent,mappings:h,ignoreList:E.ignoreList||E.x_google_ignoreList}}function Y6(E,h,y,s){return{source:E,line:h,column:y,name:s}}function Q9(E,h){return{line:E,column:h}}function z6(E,h,y,s,M1){let V1=W1(E,s,h,y);if(v)V1=(M1===o?B1:J1)(E,s,V1);else if(M1===o)V1++;if(V1===-1||V1===E.length)return-1;return V1}function HF(E,h,y,s,M1){let V1=z6(E,h,y,s,H1);if(!v&&M1===o)V1++;if(V1===-1||V1===E.length)return[];let L1=v?s:E[V1][V];if(!v)V1=J1(E,L1,V1);let g1=B1(E,L1,V1),A1=[];for(;V1<=g1;V1++){let y1=E[V1];A1.push(Q9(y1[K]+1,y1[q]))}return A1}function AH(E,h,y,s,M1,V1){var L1;if(y--,y<0)throw new Error(m);if(s<0)throw new Error(n);let{sources:g1,resolvedSources:A1}=E,y1=g1.indexOf(h);if(y1===-1)y1=A1.indexOf(h);if(y1===-1)return V1?[]:Q9(null,null);let l1=((L1=e(E))._bySources||(L1._bySources=D1(q1(E),e(E)._bySourceMemos=g1.map(R1))))[y1][y];if(l1==null)return V1?[]:Q9(null,null);let d1=e(E)._bySourceMemos[y1];if(V1)return HF(l1,d1,y,s,M1);let D2=z6(l1,d1,y,s,M1);if(D2===-1)return Q9(null,null);let a2=l1[D2];return Q9(a2[K]+1,a2[q])}J.AnyMap=u,J.GREATEST_LOWER_BOUND=H1,J.LEAST_UPPER_BOUND=o,J.TraceMap=Y1,J.allGeneratedPositionsFor=L2,J.decodedMap=m0,J.decodedMappings=q1,J.eachMapping=r2,J.encodedMap=NG,J.encodedMappings=K1,J.generatedPositionFor=f2,J.isIgnored=H2,J.originalPositionFor=j2,J.presortedDecodedMap=X0,J.sourceContentFor=Q2,J.traceSegment=e1})});var gV=S((zJ,_V)=>{(function(J,G){typeof zJ==="object"&&typeof _V!=="undefined"?G(zJ,kV(),JX(),HX()):typeof define==="function"&&define.amd?define(["exports","@jridgewell/set-array","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],G):(J=typeof globalThis!=="undefined"?globalThis:J||self,G(J.genMapping={},J.setArray,J.sourcemapCodec,J.traceMapping))})(zJ,function(J,G,X,H){class K{constructor({file:r,sourceRoot:m}={}){this._names=new G.SetArray,this._sources=new G.SetArray,this._sourcesContent=[],this._mappings=[],this.file=r,this.sourceRoot=m,this._ignoreList=new G.SetArray}}function q(r){return r}function f(r,m,n,o,H1,Y1,e,K1){return W1(!1,r,m,n,o,H1,Y1,e,K1)}function I(r,m){return $1(!1,r,m)}let C=(r,m,n,o,H1,Y1,e,K1)=>{return W1(!0,r,m,n,o,H1,Y1,e,K1)},x=(r,m)=>{return $1(!0,r,m)};function O(r,m,n){let{_sources:o,_sourcesContent:H1}=q(r),Y1=G.put(o,m);H1[Y1]=n}function v(r,m,n=!0){let{_sources:o,_sourcesContent:H1,_ignoreList:Y1}=q(r),e=G.put(o,m);if(e===H1.length)H1[e]=null;if(n)G.put(Y1,e);else G.remove(Y1,e)}function b(r){let{_mappings:m,_sources:n,_sourcesContent:o,_names:H1,_ignoreList:Y1}=q(r);return u(m),{version:3,file:r.file||void 0,names:H1.array,sourceRoot:r.sourceRoot||void 0,sources:n.array,sourcesContent:o,mappings:m,ignoreList:Y1.array}}function B1(r){let m=b(r);return Object.assign(Object.assign({},m),{mappings:X.encode(m.mappings)})}function J1(r){let m=new H.TraceMap(r),n=new K({file:m.file,sourceRoot:m.sourceRoot});if(_(q(n)._names,m.names),_(q(n)._sources,m.sources),q(n)._sourcesContent=m.sourcesContent||m.sources.map(()=>null),q(n)._mappings=H.decodedMappings(m),m.ignoreList)_(q(n)._ignoreList,m.ignoreList);return n}function R1(r){let m=[],{_mappings:n,_sources:o,_names:H1}=q(r);for(let Y1=0;Y1<n.length;Y1++){let e=n[Y1];for(let K1=0;K1<e.length;K1++){let q1=e[K1],e1={line:Y1+1,column:q1[0]},j2=void 0,f2=void 0,L2=void 0;if(q1.length!==1){if(j2=o.array[q1[1]],f2={line:q1[2]+1,column:q1[3]},q1.length===5)L2=H1.array[q1[4]]}m.push({generated:e1,source:j2,original:f2,name:L2})}}return m}function W1(r,m,n,o,H1,Y1,e,K1,q1){let{_mappings:e1,_sources:j2,_sourcesContent:f2,_names:L2}=q(m),r2=D1(e1,n),h2=E1(r2,o);if(!H1){if(r&&p(r2,h2))return;return a(r2,h2,[o])}let Q2=G.put(j2,H1),H2=K1?G.put(L2,K1):-1;if(Q2===f2.length)f2[Q2]=q1!==null&&q1!==void 0?q1:null;if(r&&i(r2,h2,Q2,Y1,e,H2))return;return a(r2,h2,K1?[o,Q2,Y1,e,H2]:[o,Q2,Y1,e])}function D1(r,m){for(let n=r.length;n<=m;n++)r[n]=[];return r[m]}function E1(r,m){let n=r.length;for(let o=n-1;o>=0;n=o--){let H1=r[o];if(m>=H1[0])break}return n}function a(r,m,n){for(let o=r.length;o>m;o--)r[o]=r[o-1];r[m]=n}function u(r){let{length:m}=r,n=m;for(let o=n-1;o>=0;n=o,o--)if(r[o].length>0)break;if(n<m)r.length=n}function _(r,m){for(let n=0;n<m.length;n++)G.put(r,m[n])}function p(r,m){if(m===0)return!0;return r[m-1].length===1}function i(r,m,n,o,H1,Y1){if(m===0)return!1;let e=r[m-1];if(e.length===1)return!1;return n===e[1]&&o===e[2]&&H1===e[3]&&Y1===(e.length===5?e[4]:-1)}function $1(r,m,n){let{generated:o,source:H1,original:Y1,name:e,content:K1}=n;if(!H1)return W1(r,m,o.line-1,o.column,null,null,null,null,null);return W1(r,m,o.line-1,o.column,H1,Y1.line-1,Y1.column,e,K1)}J.GenMapping=K,J.addMapping=I,J.addSegment=f,J.allMappings=R1,J.fromMap=J1,J.maybeAddMapping=x,J.maybeAddSegment=C,J.setIgnore=v,J.setSourceContent=O,J.toDecodedMap=b,J.toEncodedMap=B1,Object.defineProperty(J,"__esModule",{value:!0})})});var mV=S((hV)=>{Object.defineProperty(hV,"__esModule",{value:!0});hV.default=void 0;var S0=gV(),ZX=HX();class bV{constructor(J,G){var X;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;let H=this._map=new S0.GenMapping({sourceRoot:J.sourceRoot});if(this._sourceFileName=(X=J.sourceFileName)==null?void 0:X.replace(/\\/g,"/"),this._rawMappings=void 0,J.inputSourceMap){this._inputMap=new ZX.TraceMap(J.inputSourceMap);let V=this._inputMap.resolvedSources;if(V.length)for(let Q=0;Q<V.length;Q++){var Z;S0.setSourceContent(H,V[Q],(Z=this._inputMap.sourcesContent)==null?void 0:Z[Q])}}if(typeof G==="string"&&!J.inputSourceMap)S0.setSourceContent(H,this._sourceFileName,G);else if(typeof G==="object")for(let V of Object.keys(G))S0.setSourceContent(H,V.replace(/\\/g,"/"),G[V])}get(){return S0.toEncodedMap(this._map)}getDecoded(){return S0.toDecodedMap(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=S0.allMappings(this._map))}mark(J,G,X,H,Z,V){var Q;this._rawMappings=void 0;let Y;if(G!=null)if(this._inputMap){if(Y=ZX.originalPositionFor(this._inputMap,{line:G,column:X}),!Y.name&&Z){let z=ZX.originalPositionFor(this._inputMap,Z);if(z.name)H=z.name}}else Y={source:(V==null?void 0:V.replace(/\\/g,"/"))||this._sourceFileName,line:G,column:X};S0.maybeAddMapping(this._map,{name:H,generated:J,source:(Q=Y)==null?void 0:Q.source,original:Y})}}hV.default=bV});var rV=S((lV)=>{Object.defineProperty(lV,"__esModule",{value:!0});lV.default=void 0;class xV{constructor(J,G){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=J,this._indentChar=G;for(let X=0;X<64;X++)this._fastIndentations.push(G.repeat(X));this._allocQueue()}_allocQueue(){let J=this._queue;for(let G=0;G<16;G++)J.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(J,G,X,H,Z){let V=this._queueCursor;if(V===this._queue.length)this._allocQueue();let Q=this._queue[V];Q.char=J,Q.repeat=G,Q.line=X,Q.column=H,Q.filename=Z,this._queueCursor++}_popQueue(){if(this._queueCursor===0)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();let J=this._map,G={code:(this._buf+this._str).trimRight(),decodedMap:J==null?void 0:J.getDecoded(),get __mergedMap(){return this.map},get map(){let X=J?J.get():null;return G.map=X,X},set map(X){Object.defineProperty(G,"map",{value:X,writable:!0})},get rawMappings(){let X=J==null?void 0:J.getRawMappings();return G.rawMappings=X,X},set rawMappings(X){Object.defineProperty(G,"rawMappings",{value:X,writable:!0})}};return G}append(J,G){this._flush(),this._append(J,this._sourcePosition,G)}appendChar(J){this._flush(),this._appendChar(J,1,this._sourcePosition)}queue(J){if(J===10)while(this._queueCursor!==0){let X=this._queue[this._queueCursor-1].char;if(X!==32&&X!==9)break;this._queueCursor--}let G=this._sourcePosition;this._pushQueue(J,1,G.line,G.column,G.filename)}queueIndentation(J){if(J===0)return;this._pushQueue(-1,J,void 0,void 0,void 0)}_flush(){let J=this._queueCursor,G=this._queue;for(let X=0;X<J;X++){let H=G[X];this._appendChar(H.char,H.repeat,H)}this._queueCursor=0}_appendChar(J,G,X){if(this._last=J,J===-1){let H=this._fastIndentations[G];if(H!==void 0)this._str+=H;else this._str+=G>1?this._indentChar.repeat(G):this._indentChar}else this._str+=G>1?String.fromCharCode(J).repeat(G):String.fromCharCode(J);if(J!==10)this._mark(X.line,X.column,X.identifierName,X.identifierNamePos,X.filename),this._position.column+=G;else this._position.line++,this._position.column=0;if(this._canMarkIdName)X.identifierName=void 0,X.identifierNamePos=void 0}_append(J,G,X){let H=J.length,Z=this._position;if(this._last=J.charCodeAt(H-1),++this._appendCount>4096)+this._str,this._buf+=this._str,this._str=J,this._appendCount=0;else this._str+=J;if(!X&&!this._map){Z.column+=H;return}let{column:V,identifierName:Q,identifierNamePos:Y,filename:z}=G,W=G.line;if((Q!=null||Y!=null)&&this._canMarkIdName)G.identifierName=void 0,G.identifierNamePos=void 0;let K=J.indexOf("\n"),q=0;if(K!==0)this._mark(W,V,Q,Y,z);while(K!==-1){if(Z.line++,Z.column=0,q=K+1,q<H&&W!==void 0)this._mark(++W,0,null,null,z);K=J.indexOf("\n",q)}Z.column+=H-q}_mark(J,G,X,H,Z){var V;(V=this._map)==null||V.mark(this._position,J,G,X,H,Z)}removeTrailingNewline(){let J=this._queueCursor;if(J!==0&&this._queue[J-1].char===10)this._queueCursor--}removeLastSemicolon(){let J=this._queueCursor;if(J!==0&&this._queue[J-1].char===59)this._queueCursor--}getLastChar(){let J=this._queueCursor;return J!==0?this._queue[J-1].char:this._last}getNewlineCount(){let J=this._queueCursor,G=0;if(J===0)return this._last===10?1:0;for(let X=J-1;X>=0;X--){if(this._queue[X].char!==10)break;G++}return G===J&&this._last===10?G+1:G}endsWithCharAndNewline(){let J=this._queue,G=this._queueCursor;if(G!==0){if(J[G-1].char!==10)return;if(G>1)return J[G-2].char;else return this._last}}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(J,G){if(!this._map){G();return}this.source("start",J);let X=J.identifierName,H=this._sourcePosition;if(X)this._canMarkIdName=!1,H.identifierName=X;if(G(),X)this._canMarkIdName=!0,H.identifierName=void 0,H.identifierNamePos=void 0;this.source("end",J)}source(J,G){if(!this._map)return;this._normalizePosition(J,G,0)}sourceWithOffset(J,G,X){if(!this._map)return;this._normalizePosition(J,G,X)}_normalizePosition(J,G,X){let H=G[J],Z=this._sourcePosition;if(H)Z.line=H.line,Z.column=Math.max(H.column+X,0),Z.filename=G.filename}getCurrentColumn(){let J=this._queue,G=this._queueCursor,X=-1,H=0;for(let Z=0;Z<G;Z++){let V=J[Z];if(V.char===10)X=H;H+=V.repeat}return X===-1?this._position.column+H:H-1-X}getCurrentLine(){let J=0,G=this._queue;for(let X=0;X<this._queueCursor;X++)if(G[X].char===10)J++;return this._position.line+J}}lV.default=xV});var WJ=S((aV)=>{Object.defineProperty(aV,"__esModule",{value:!0});aV.default=TA;function TA(J,G){let X=Object.keys(G);for(let H of X)if(J[H]!==G[H])return!1;return!0}});var K9=S((uV)=>{Object.defineProperty(uV,"__esModule",{value:!0});uV.default=kA;var iV=new Set;function kA(J,G,X=""){if(iV.has(J))return;iV.add(J);let{internal:H,trace:Z}=EA(1,2);if(H)return;console.warn(`${X}\`${J}\` has been deprecated, please migrate to \`${G}\`\n${Z}`)}function EA(J,G){let{stackTraceLimit:X,prepareStackTrace:H}=Error,Z;if(Error.stackTraceLimit=1+J+G,Error.prepareStackTrace=function(Q,Y){Z=Y},new Error().stack,Error.stackTraceLimit=X,Error.prepareStackTrace=H,!Z)return{internal:!1,trace:""};let V=Z.slice(1+J,1+J+G);return{internal:/[\\/]@babel[\\/]/.test(V[1].getFileName()),trace:V.map((Q)=>` at ${Q}`).join("\n")}}});var a1=S((sV)=>{Object.defineProperty(sV,"__esModule",{value:!0});sV.isAccessor=uw;sV.isAnyTypeAnnotation=BC;sV.isArgumentPlaceholder=cS;sV.isArrayExpression=vA;sV.isArrayPattern=EI;sV.isArrayTypeAnnotation=RC;sV.isArrowFunctionExpression=OI;sV.isAssignmentExpression=_A;sV.isAssignmentPattern=kI;sV.isAwaitExpression=GC;sV.isBigIntLiteral=HC;sV.isBinary=Mw;sV.isBinaryExpression=gA;sV.isBindExpression=rS;sV.isBlock=jw;sV.isBlockParent=Fw;sV.isBlockStatement=mA;sV.isBooleanLiteral=QI;sV.isBooleanLiteralTypeAnnotation=qC;sV.isBooleanTypeAnnotation=MC;sV.isBreakStatement=xA;sV.isCallExpression=lA;sV.isCatchClause=cA;sV.isClass=rw;sV.isClassAccessorProperty=zC;sV.isClassBody=vI;sV.isClassDeclaration=gI;sV.isClassExpression=_I;sV.isClassImplements=jC;sV.isClassMethod=dI;sV.isClassPrivateMethod=$C;sV.isClassPrivateProperty=WC;sV.isClassProperty=YC;sV.isCompletionStatement=Aw;sV.isConditional=Iw;sV.isConditionalExpression=rA;sV.isContinueStatement=aA;sV.isDebuggerStatement=iA;sV.isDecimalLiteral=nS;sV.isDeclaration=Ew;sV.isDeclareClass=fC;sV.isDeclareExportAllDeclaration=TC;sV.isDeclareExportDeclaration=LC;sV.isDeclareFunction=DC;sV.isDeclareInterface=AC;sV.isDeclareModule=IC;sV.isDeclareModuleExports=CC;sV.isDeclareOpaqueType=PC;sV.isDeclareTypeAlias=SC;sV.isDeclareVariable=wC;sV.isDeclaredPredicate=NC;sV.isDecorator=iS;sV.isDirective=hA;sV.isDirectiveLiteral=yA;sV.isDoExpression=uS;sV.isDoWhileStatement=uA;sV.isEmptyStatement=dA;sV.isEmptyTypeAnnotation=xC;sV.isEnumBody=tw;sV.isEnumBooleanBody=RS;sV.isEnumBooleanMember=jS;sV.isEnumDeclaration=BS;sV.isEnumDefaultedMember=AS;sV.isEnumMember=JL;sV.isEnumNumberBody=MS;sV.isEnumNumberMember=fS;sV.isEnumStringBody=qS;sV.isEnumStringMember=DS;sV.isEnumSymbolBody=FS;sV.isExistsTypeAnnotation=kC;sV.isExportAllDeclaration=bI;sV.isExportDeclaration=aw;sV.isExportDefaultDeclaration=hI;sV.isExportDefaultSpecifier=dS;sV.isExportNamedDeclaration=yI;sV.isExportNamespaceSpecifier=ZC;sV.isExportSpecifier=mI;sV.isExpression=Rw;sV.isExpressionStatement=sA;sV.isExpressionWrapper=Pw;sV.isFile=pA;sV.isFlow=sw;sV.isFlowBaseAnnotation=nw;sV.isFlowDeclaration=ow;sV.isFlowPredicate=ew;sV.isFlowType=pw;sV.isFor=ww;sV.isForInStatement=nA;sV.isForOfStatement=xI;sV.isForStatement=oA;sV.isForXStatement=Lw;sV.isFunction=Tw;sV.isFunctionDeclaration=eA;sV.isFunctionExpression=tA;sV.isFunctionParent=Nw;sV.isFunctionTypeAnnotation=EC;sV.isFunctionTypeParam=OC;sV.isGenericTypeAnnotation=vC;sV.isIdentifier=JI;sV.isIfStatement=GI;sV.isImmutable=bw;sV.isImport=XC;sV.isImportAttribute=aS;sV.isImportDeclaration=lI;sV.isImportDefaultSpecifier=cI;sV.isImportExpression=iI;sV.isImportNamespaceSpecifier=rI;sV.isImportOrExportDeclaration=dV;sV.isImportSpecifier=aI;sV.isIndexedAccessType=IS;sV.isInferredPredicate=_C;sV.isInterfaceDeclaration=bC;sV.isInterfaceExtends=gC;sV.isInterfaceTypeAnnotation=hC;sV.isInterpreterDirective=bA;sV.isIntersectionTypeAnnotation=yC;sV.isJSX=GL;sV.isJSXAttribute=SS;sV.isJSXClosingElement=PS;sV.isJSXClosingFragment=yS;sV.isJSXElement=wS;sV.isJSXEmptyExpression=LS;sV.isJSXExpressionContainer=TS;sV.isJSXFragment=bS;sV.isJSXIdentifier=kS;sV.isJSXMemberExpression=ES;sV.isJSXNamespacedName=OS;sV.isJSXOpeningElement=vS;sV.isJSXOpeningFragment=hS;sV.isJSXSpreadAttribute=_S;sV.isJSXSpreadChild=NS;sV.isJSXText=gS;sV.isLVal=vw;sV.isLabeledStatement=XI;sV.isLiteral=gw;sV.isLogicalExpression=zI;sV.isLoop=Cw;sV.isMemberExpression=WI;sV.isMetaProperty=uI;sV.isMethod=yw;sV.isMiscellaneous=XL;sV.isMixedTypeAnnotation=mC;sV.isModuleDeclaration=UL;sV.isModuleExpression=oS;sV.isModuleSpecifier=iw;sV.isNewExpression=$I;sV.isNoop=mS;sV.isNullLiteral=VI;sV.isNullLiteralTypeAnnotation=FC;sV.isNullableTypeAnnotation=lC;sV.isNumberLiteral=YL;sV.isNumberLiteralTypeAnnotation=cC;sV.isNumberTypeAnnotation=rC;sV.isNumericLiteral=ZI;sV.isObjectExpression=KI;sV.isObjectMember=mw;sV.isObjectMethod=BI;sV.isObjectPattern=sI;sV.isObjectProperty=RI;sV.isObjectTypeAnnotation=aC;sV.isObjectTypeCallProperty=uC;sV.isObjectTypeIndexer=dC;sV.isObjectTypeInternalSlot=iC;sV.isObjectTypeProperty=sC;sV.isObjectTypeSpreadProperty=pC;sV.isOpaqueType=nC;sV.isOptionalCallExpression=QC;sV.isOptionalIndexedAccessType=CS;sV.isOptionalMemberExpression=VC;sV.isParenthesizedExpression=jI;sV.isPattern=cw;sV.isPatternLike=Ow;sV.isPipelineBareFunction=JP;sV.isPipelinePrimaryTopicReference=GP;sV.isPipelineTopicExpression=tS;sV.isPlaceholder=xS;sV.isPrivate=dw;sV.isPrivateName=UC;sV.isProgram=UI;sV.isProperty=xw;sV.isPureish=kw;sV.isQualifiedTypeIdentifier=oC;sV.isRecordExpression=sS;sV.isRegExpLiteral=YI;sV.isRegexLiteral=zL;sV.isRestElement=MI;sV.isRestProperty=WL;sV.isReturnStatement=qI;sV.isScopable=qw;sV.isSequenceExpression=FI;sV.isSpreadElement=pI;sV.isSpreadProperty=$L;sV.isStandardized=Bw;sV.isStatement=fw;sV.isStaticBlock=KC;sV.isStringLiteral=HI;sV.isStringLiteralTypeAnnotation=eC;sV.isStringTypeAnnotation=tC;sV.isSuper=nI;sV.isSwitchCase=fI;sV.isSwitchStatement=DI;sV.isSymbolTypeAnnotation=JS;sV.isTSAnyKeyword=UP;sV.isTSArrayType=EP;sV.isTSAsExpression=nP;sV.isTSBaseType=QL;sV.isTSBigIntKeyword=BP;sV.isTSBooleanKeyword=KP;sV.isTSCallSignatureDeclaration=QP;sV.isTSConditionalType=yP;sV.isTSConstructSignatureDeclaration=YP;sV.isTSConstructorType=wP;sV.isTSDeclareFunction=HP;sV.isTSDeclareMethod=ZP;sV.isTSEntityName=_w;sV.isTSEnumDeclaration=tP;sV.isTSEnumMember=Jw;sV.isTSExportAssignment=Yw;sV.isTSExpressionWithTypeArguments=iP;sV.isTSExternalModuleReference=Vw;sV.isTSFunctionType=PP;sV.isTSImportEqualsDeclaration=Zw;sV.isTSImportType=Hw;sV.isTSIndexSignature=$P;sV.isTSIndexedAccessType=cP;sV.isTSInferType=mP;sV.isTSInstantiationExpression=pP;sV.isTSInterfaceBody=dP;sV.isTSInterfaceDeclaration=uP;sV.isTSIntersectionType=hP;sV.isTSIntrinsicKeyword=RP;sV.isTSLiteralType=aP;sV.isTSMappedType=rP;sV.isTSMethodSignature=WP;sV.isTSModuleBlock=Xw;sV.isTSModuleDeclaration=Gw;sV.isTSNamedTupleMember=gP;sV.isTSNamespaceExportDeclaration=zw;sV.isTSNeverKeyword=MP;sV.isTSNonNullExpression=Qw;sV.isTSNullKeyword=qP;sV.isTSNumberKeyword=FP;sV.isTSObjectKeyword=jP;sV.isTSOptionalType=vP;sV.isTSParameterProperty=XP;sV.isTSParenthesizedType=xP;sV.isTSPropertySignature=zP;sV.isTSQualifiedName=VP;sV.isTSRestType=_P;sV.isTSSatisfiesExpression=oP;sV.isTSStringKeyword=fP;sV.isTSSymbolKeyword=DP;sV.isTSThisType=SP;sV.isTSTupleType=OP;sV.isTSType=VL;sV.isTSTypeAliasDeclaration=sP;sV.isTSTypeAnnotation=Ww;sV.isTSTypeAssertion=eP;sV.isTSTypeElement=ZL;sV.isTSTypeLiteral=kP;sV.isTSTypeOperator=lP;sV.isTSTypeParameter=Kw;sV.isTSTypeParameterDeclaration=Uw;sV.isTSTypeParameterInstantiation=$w;sV.isTSTypePredicate=TP;sV.isTSTypeQuery=NP;sV.isTSTypeReference=LP;sV.isTSUndefinedKeyword=AP;sV.isTSUnionType=bP;sV.isTSUnknownKeyword=IP;sV.isTSVoidKeyword=CP;sV.isTaggedTemplateExpression=oI;sV.isTemplateElement=eI;sV.isTemplateLiteral=tI;sV.isTerminatorless=Dw;sV.isThisExpression=AI;sV.isThisTypeAnnotation=GS;sV.isThrowStatement=II;sV.isTopicReference=eS;sV.isTryStatement=CI;sV.isTupleExpression=pS;sV.isTupleTypeAnnotation=XS;sV.isTypeAlias=ZS;sV.isTypeAnnotation=VS;sV.isTypeCastExpression=QS;sV.isTypeParameter=YS;sV.isTypeParameterDeclaration=zS;sV.isTypeParameterInstantiation=WS;sV.isTypeScript=HL;sV.isTypeofTypeAnnotation=HS;sV.isUnaryExpression=SI;sV.isUnaryLike=lw;sV.isUnionTypeAnnotation=$S;sV.isUpdateExpression=PI;sV.isUserWhitespacable=hw;sV.isV8IntrinsicIdentifier=lS;sV.isVariableDeclaration=wI;sV.isVariableDeclarator=LI;sV.isVariance=US;sV.isVoidTypeAnnotation=KS;sV.isWhile=Sw;sV.isWhileStatement=TI;sV.isWithStatement=NI;sV.isYieldExpression=JC;var R=WJ(),B9=K9();function vA(J,G){if(!J)return!1;if(J.type!=="ArrayExpression")return!1;return G==null||R.default(J,G)}function _A(J,G){if(!J)return!1;if(J.type!=="AssignmentExpression")return!1;return G==null||R.default(J,G)}function gA(J,G){if(!J)return!1;if(J.type!=="BinaryExpression")return!1;return G==null||R.default(J,G)}function bA(J,G){if(!J)return!1;if(J.type!=="InterpreterDirective")return!1;return G==null||R.default(J,G)}function hA(J,G){if(!J)return!1;if(J.type!=="Directive")return!1;return G==null||R.default(J,G)}function yA(J,G){if(!J)return!1;if(J.type!=="DirectiveLiteral")return!1;return G==null||R.default(J,G)}function mA(J,G){if(!J)return!1;if(J.type!=="BlockStatement")return!1;return G==null||R.default(J,G)}function xA(J,G){if(!J)return!1;if(J.type!=="BreakStatement")return!1;return G==null||R.default(J,G)}function lA(J,G){if(!J)return!1;if(J.type!=="CallExpression")return!1;return G==null||R.default(J,G)}function cA(J,G){if(!J)return!1;if(J.type!=="CatchClause")return!1;return G==null||R.default(J,G)}function rA(J,G){if(!J)return!1;if(J.type!=="ConditionalExpression")return!1;return G==null||R.default(J,G)}function aA(J,G){if(!J)return!1;if(J.type!=="ContinueStatement")return!1;return G==null||R.default(J,G)}function iA(J,G){if(!J)return!1;if(J.type!=="DebuggerStatement")return!1;return G==null||R.default(J,G)}function uA(J,G){if(!J)return!1;if(J.type!=="DoWhileStatement")return!1;return G==null||R.default(J,G)}function dA(J,G){if(!J)return!1;if(J.type!=="EmptyStatement")return!1;return G==null||R.default(J,G)}function sA(J,G){if(!J)return!1;if(J.type!=="ExpressionStatement")return!1;return G==null||R.default(J,G)}function pA(J,G){if(!J)return!1;if(J.type!=="File")return!1;return G==null||R.default(J,G)}function nA(J,G){if(!J)return!1;if(J.type!=="ForInStatement")return!1;return G==null||R.default(J,G)}function oA(J,G){if(!J)return!1;if(J.type!=="ForStatement")return!1;return G==null||R.default(J,G)}function eA(J,G){if(!J)return!1;if(J.type!=="FunctionDeclaration")return!1;return G==null||R.default(J,G)}function tA(J,G){if(!J)return!1;if(J.type!=="FunctionExpression")return!1;return G==null||R.default(J,G)}function JI(J,G){if(!J)return!1;if(J.type!=="Identifier")return!1;return G==null||R.default(J,G)}function GI(J,G){if(!J)return!1;if(J.type!=="IfStatement")return!1;return G==null||R.default(J,G)}function XI(J,G){if(!J)return!1;if(J.type!=="LabeledStatement")return!1;return G==null||R.default(J,G)}function HI(J,G){if(!J)return!1;if(J.type!=="StringLiteral")return!1;return G==null||R.default(J,G)}function ZI(J,G){if(!J)return!1;if(J.type!=="NumericLiteral")return!1;return G==null||R.default(J,G)}function VI(J,G){if(!J)return!1;if(J.type!=="NullLiteral")return!1;return G==null||R.default(J,G)}function QI(J,G){if(!J)return!1;if(J.type!=="BooleanLiteral")return!1;return G==null||R.default(J,G)}function YI(J,G){if(!J)return!1;if(J.type!=="RegExpLiteral")return!1;return G==null||R.default(J,G)}function zI(J,G){if(!J)return!1;if(J.type!=="LogicalExpression")return!1;return G==null||R.default(J,G)}function WI(J,G){if(!J)return!1;if(J.type!=="MemberExpression")return!1;return G==null||R.default(J,G)}function $I(J,G){if(!J)return!1;if(J.type!=="NewExpression")return!1;return G==null||R.default(J,G)}function UI(J,G){if(!J)return!1;if(J.type!=="Program")return!1;return G==null||R.default(J,G)}function KI(J,G){if(!J)return!1;if(J.type!=="ObjectExpression")return!1;return G==null||R.default(J,G)}function BI(J,G){if(!J)return!1;if(J.type!=="ObjectMethod")return!1;return G==null||R.default(J,G)}function RI(J,G){if(!J)return!1;if(J.type!=="ObjectProperty")return!1;return G==null||R.default(J,G)}function MI(J,G){if(!J)return!1;if(J.type!=="RestElement")return!1;return G==null||R.default(J,G)}function qI(J,G){if(!J)return!1;if(J.type!=="ReturnStatement")return!1;return G==null||R.default(J,G)}function FI(J,G){if(!J)return!1;if(J.type!=="SequenceExpression")return!1;return G==null||R.default(J,G)}function jI(J,G){if(!J)return!1;if(J.type!=="ParenthesizedExpression")return!1;return G==null||R.default(J,G)}function fI(J,G){if(!J)return!1;if(J.type!=="SwitchCase")return!1;return G==null||R.default(J,G)}function DI(J,G){if(!J)return!1;if(J.type!=="SwitchStatement")return!1;return G==null||R.default(J,G)}function AI(J,G){if(!J)return!1;if(J.type!=="ThisExpression")return!1;return G==null||R.default(J,G)}function II(J,G){if(!J)return!1;if(J.type!=="ThrowStatement")return!1;return G==null||R.default(J,G)}function CI(J,G){if(!J)return!1;if(J.type!=="TryStatement")return!1;return G==null||R.default(J,G)}function SI(J,G){if(!J)return!1;if(J.type!=="UnaryExpression")return!1;return G==null||R.default(J,G)}function PI(J,G){if(!J)return!1;if(J.type!=="UpdateExpression")return!1;return G==null||R.default(J,G)}function wI(J,G){if(!J)return!1;if(J.type!=="VariableDeclaration")return!1;return G==null||R.default(J,G)}function LI(J,G){if(!J)return!1;if(J.type!=="VariableDeclarator")return!1;return G==null||R.default(J,G)}function TI(J,G){if(!J)return!1;if(J.type!=="WhileStatement")return!1;return G==null||R.default(J,G)}function NI(J,G){if(!J)return!1;if(J.type!=="WithStatement")return!1;return G==null||R.default(J,G)}function kI(J,G){if(!J)return!1;if(J.type!=="AssignmentPattern")return!1;return G==null||R.default(J,G)}function EI(J,G){if(!J)return!1;if(J.type!=="ArrayPattern")return!1;return G==null||R.default(J,G)}function OI(J,G){if(!J)return!1;if(J.type!=="ArrowFunctionExpression")return!1;return G==null||R.default(J,G)}function vI(J,G){if(!J)return!1;if(J.type!=="ClassBody")return!1;return G==null||R.default(J,G)}function _I(J,G){if(!J)return!1;if(J.type!=="ClassExpression")return!1;return G==null||R.default(J,G)}function gI(J,G){if(!J)return!1;if(J.type!=="ClassDeclaration")return!1;return G==null||R.default(J,G)}function bI(J,G){if(!J)return!1;if(J.type!=="ExportAllDeclaration")return!1;return G==null||R.default(J,G)}function hI(J,G){if(!J)return!1;if(J.type!=="ExportDefaultDeclaration")return!1;return G==null||R.default(J,G)}function yI(J,G){if(!J)return!1;if(J.type!=="ExportNamedDeclaration")return!1;return G==null||R.default(J,G)}function mI(J,G){if(!J)return!1;if(J.type!=="ExportSpecifier")return!1;return G==null||R.default(J,G)}function xI(J,G){if(!J)return!1;if(J.type!=="ForOfStatement")return!1;return G==null||R.default(J,G)}function lI(J,G){if(!J)return!1;if(J.type!=="ImportDeclaration")return!1;return G==null||R.default(J,G)}function cI(J,G){if(!J)return!1;if(J.type!=="ImportDefaultSpecifier")return!1;return G==null||R.default(J,G)}function rI(J,G){if(!J)return!1;if(J.type!=="ImportNamespaceSpecifier")return!1;return G==null||R.default(J,G)}function aI(J,G){if(!J)return!1;if(J.type!=="ImportSpecifier")return!1;return G==null||R.default(J,G)}function iI(J,G){if(!J)return!1;if(J.type!=="ImportExpression")return!1;return G==null||R.default(J,G)}function uI(J,G){if(!J)return!1;if(J.type!=="MetaProperty")return!1;return G==null||R.default(J,G)}function dI(J,G){if(!J)return!1;if(J.type!=="ClassMethod")return!1;return G==null||R.default(J,G)}function sI(J,G){if(!J)return!1;if(J.type!=="ObjectPattern")return!1;return G==null||R.default(J,G)}function pI(J,G){if(!J)return!1;if(J.type!=="SpreadElement")return!1;return G==null||R.default(J,G)}function nI(J,G){if(!J)return!1;if(J.type!=="Super")return!1;return G==null||R.default(J,G)}function oI(J,G){if(!J)return!1;if(J.type!=="TaggedTemplateExpression")return!1;return G==null||R.default(J,G)}function eI(J,G){if(!J)return!1;if(J.type!=="TemplateElement")return!1;return G==null||R.default(J,G)}function tI(J,G){if(!J)return!1;if(J.type!=="TemplateLiteral")return!1;return G==null||R.default(J,G)}function JC(J,G){if(!J)return!1;if(J.type!=="YieldExpression")return!1;return G==null||R.default(J,G)}function GC(J,G){if(!J)return!1;if(J.type!=="AwaitExpression")return!1;return G==null||R.default(J,G)}function XC(J,G){if(!J)return!1;if(J.type!=="Import")return!1;return G==null||R.default(J,G)}function HC(J,G){if(!J)return!1;if(J.type!=="BigIntLiteral")return!1;return G==null||R.default(J,G)}function ZC(J,G){if(!J)return!1;if(J.type!=="ExportNamespaceSpecifier")return!1;return G==null||R.default(J,G)}function VC(J,G){if(!J)return!1;if(J.type!=="OptionalMemberExpression")return!1;return G==null||R.default(J,G)}function QC(J,G){if(!J)return!1;if(J.type!=="OptionalCallExpression")return!1;return G==null||R.default(J,G)}function YC(J,G){if(!J)return!1;if(J.type!=="ClassProperty")return!1;return G==null||R.default(J,G)}function zC(J,G){if(!J)return!1;if(J.type!=="ClassAccessorProperty")return!1;return G==null||R.default(J,G)}function WC(J,G){if(!J)return!1;if(J.type!=="ClassPrivateProperty")return!1;return G==null||R.default(J,G)}function $C(J,G){if(!J)return!1;if(J.type!=="ClassPrivateMethod")return!1;return G==null||R.default(J,G)}function UC(J,G){if(!J)return!1;if(J.type!=="PrivateName")return!1;return G==null||R.default(J,G)}function KC(J,G){if(!J)return!1;if(J.type!=="StaticBlock")return!1;return G==null||R.default(J,G)}function BC(J,G){if(!J)return!1;if(J.type!=="AnyTypeAnnotation")return!1;return G==null||R.default(J,G)}function RC(J,G){if(!J)return!1;if(J.type!=="ArrayTypeAnnotation")return!1;return G==null||R.default(J,G)}function MC(J,G){if(!J)return!1;if(J.type!=="BooleanTypeAnnotation")return!1;return G==null||R.default(J,G)}function qC(J,G){if(!J)return!1;if(J.type!=="BooleanLiteralTypeAnnotation")return!1;return G==null||R.default(J,G)}function FC(J,G){if(!J)return!1;if(J.type!=="NullLiteralTypeAnnotation")return!1;return G==null||R.default(J,G)}function jC(J,G){if(!J)return!1;if(J.type!=="ClassImplements")return!1;return G==null||R.default(J,G)}function fC(J,G){if(!J)return!1;if(J.type!=="DeclareClass")return!1;return G==null||R.default(J,G)}function DC(J,G){if(!J)return!1;if(J.type!=="DeclareFunction")return!1;return G==null||R.default(J,G)}function AC(J,G){if(!J)return!1;if(J.type!=="DeclareInterface")return!1;return G==null||R.default(J,G)}function IC(J,G){if(!J)return!1;if(J.type!=="DeclareModule")return!1;return G==null||R.default(J,G)}function CC(J,G){if(!J)return!1;if(J.type!=="DeclareModuleExports")return!1;return G==null||R.default(J,G)}function SC(J,G){if(!J)return!1;if(J.type!=="DeclareTypeAlias")return!1;return G==null||R.default(J,G)}function PC(J,G){if(!J)return!1;if(J.type!=="DeclareOpaqueType")return!1;return G==null||R.default(J,G)}function wC(J,G){if(!J)return!1;if(J.type!=="DeclareVariable")return!1;return G==null||R.default(J,G)}function LC(J,G){if(!J)return!1;if(J.type!=="DeclareExportDeclaration")return!1;return G==null||R.default(J,G)}function TC(J,G){if(!J)return!1;if(J.type!=="DeclareExportAllDeclaration")return!1;return G==null||R.default(J,G)}function NC(J,G){if(!J)return!1;if(J.type!=="DeclaredPredicate")return!1;return G==null||R.default(J,G)}function kC(J,G){if(!J)return!1;if(J.type!=="ExistsTypeAnnotation")return!1;return G==null||R.default(J,G)}function EC(J,G){if(!J)return!1;if(J.type!=="FunctionTypeAnnotation")return!1;return G==null||R.default(J,G)}function OC(J,G){if(!J)return!1;if(J.type!=="FunctionTypeParam")return!1;return G==null||R.default(J,G)}function vC(J,G){if(!J)return!1;if(J.type!=="GenericTypeAnnotation")return!1;return G==null||R.default(J,G)}function _C(J,G){if(!J)return!1;if(J.type!=="InferredPredicate")return!1;return G==null||R.default(J,G)}function gC(J,G){if(!J)return!1;if(J.type!=="InterfaceExtends")return!1;return G==null||R.default(J,G)}function bC(J,G){if(!J)return!1;if(J.type!=="InterfaceDeclaration")return!1;return G==null||R.default(J,G)}function hC(J,G){if(!J)return!1;if(J.type!=="InterfaceTypeAnnotation")return!1;return G==null||R.default(J,G)}function yC(J,G){if(!J)return!1;if(J.type!=="IntersectionTypeAnnotation")return!1;return G==null||R.default(J,G)}function mC(J,G){if(!J)return!1;if(J.type!=="MixedTypeAnnotation")return!1;return G==null||R.default(J,G)}function xC(J,G){if(!J)return!1;if(J.type!=="EmptyTypeAnnotation")return!1;return G==null||R.default(J,G)}function lC(J,G){if(!J)return!1;if(J.type!=="NullableTypeAnnotation")return!1;return G==null||R.default(J,G)}function cC(J,G){if(!J)return!1;if(J.type!=="NumberLiteralTypeAnnotation")return!1;return G==null||R.default(J,G)}function rC(J,G){if(!J)return!1;if(J.type!=="NumberTypeAnnotation")return!1;return G==null||R.default(J,G)}function aC(J,G){if(!J)return!1;if(J.type!=="ObjectTypeAnnotation")return!1;return G==null||R.default(J,G)}function iC(J,G){if(!J)return!1;if(J.type!=="ObjectTypeInternalSlot")return!1;return G==null||R.default(J,G)}function uC(J,G){if(!J)return!1;if(J.type!=="ObjectTypeCallProperty")return!1;return G==null||R.default(J,G)}function dC(J,G){if(!J)return!1;if(J.type!=="ObjectTypeIndexer")return!1;return G==null||R.default(J,G)}function sC(J,G){if(!J)return!1;if(J.type!=="ObjectTypeProperty")return!1;return G==null||R.default(J,G)}function pC(J,G){if(!J)return!1;if(J.type!=="ObjectTypeSpreadProperty")return!1;return G==null||R.default(J,G)}function nC(J,G){if(!J)return!1;if(J.type!=="OpaqueType")return!1;return G==null||R.default(J,G)}function oC(J,G){if(!J)return!1;if(J.type!=="QualifiedTypeIdentifier")return!1;return G==null||R.default(J,G)}function eC(J,G){if(!J)return!1;if(J.type!=="StringLiteralTypeAnnotation")return!1;return G==null||R.default(J,G)}function tC(J,G){if(!J)return!1;if(J.type!=="StringTypeAnnotation")return!1;return G==null||R.default(J,G)}function JS(J,G){if(!J)return!1;if(J.type!=="SymbolTypeAnnotation")return!1;return G==null||R.default(J,G)}function GS(J,G){if(!J)return!1;if(J.type!=="ThisTypeAnnotation")return!1;return G==null||R.default(J,G)}function XS(J,G){if(!J)return!1;if(J.type!=="TupleTypeAnnotation")return!1;return G==null||R.default(J,G)}function HS(J,G){if(!J)return!1;if(J.type!=="TypeofTypeAnnotation")return!1;return G==null||R.default(J,G)}function ZS(J,G){if(!J)return!1;if(J.type!=="TypeAlias")return!1;return G==null||R.default(J,G)}function VS(J,G){if(!J)return!1;if(J.type!=="TypeAnnotation")return!1;return G==null||R.default(J,G)}function QS(J,G){if(!J)return!1;if(J.type!=="TypeCastExpression")return!1;return G==null||R.default(J,G)}function YS(J,G){if(!J)return!1;if(J.type!=="TypeParameter")return!1;return G==null||R.default(J,G)}function zS(J,G){if(!J)return!1;if(J.type!=="TypeParameterDeclaration")return!1;return G==null||R.default(J,G)}function WS(J,G){if(!J)return!1;if(J.type!=="TypeParameterInstantiation")return!1;return G==null||R.default(J,G)}function $S(J,G){if(!J)return!1;if(J.type!=="UnionTypeAnnotation")return!1;return G==null||R.default(J,G)}function US(J,G){if(!J)return!1;if(J.type!=="Variance")return!1;return G==null||R.default(J,G)}function KS(J,G){if(!J)return!1;if(J.type!=="VoidTypeAnnotation")return!1;return G==null||R.default(J,G)}function BS(J,G){if(!J)return!1;if(J.type!=="EnumDeclaration")return!1;return G==null||R.default(J,G)}function RS(J,G){if(!J)return!1;if(J.type!=="EnumBooleanBody")return!1;return G==null||R.default(J,G)}function MS(J,G){if(!J)return!1;if(J.type!=="EnumNumberBody")return!1;return G==null||R.default(J,G)}function qS(J,G){if(!J)return!1;if(J.type!=="EnumStringBody")return!1;return G==null||R.default(J,G)}function FS(J,G){if(!J)return!1;if(J.type!=="EnumSymbolBody")return!1;return G==null||R.default(J,G)}function jS(J,G){if(!J)return!1;if(J.type!=="EnumBooleanMember")return!1;return G==null||R.default(J,G)}function fS(J,G){if(!J)return!1;if(J.type!=="EnumNumberMember")return!1;return G==null||R.default(J,G)}function DS(J,G){if(!J)return!1;if(J.type!=="EnumStringMember")return!1;return G==null||R.default(J,G)}function AS(J,G){if(!J)return!1;if(J.type!=="EnumDefaultedMember")return!1;return G==null||R.default(J,G)}function IS(J,G){if(!J)return!1;if(J.type!=="IndexedAccessType")return!1;return G==null||R.default(J,G)}function CS(J,G){if(!J)return!1;if(J.type!=="OptionalIndexedAccessType")return!1;return G==null||R.default(J,G)}function SS(J,G){if(!J)return!1;if(J.type!=="JSXAttribute")return!1;return G==null||R.default(J,G)}function PS(J,G){if(!J)return!1;if(J.type!=="JSXClosingElement")return!1;return G==null||R.default(J,G)}function wS(J,G){if(!J)return!1;if(J.type!=="JSXElement")return!1;return G==null||R.default(J,G)}function LS(J,G){if(!J)return!1;if(J.type!=="JSXEmptyExpression")return!1;return G==null||R.default(J,G)}function TS(J,G){if(!J)return!1;if(J.type!=="JSXExpressionContainer")return!1;return G==null||R.default(J,G)}function NS(J,G){if(!J)return!1;if(J.type!=="JSXSpreadChild")return!1;return G==null||R.default(J,G)}function kS(J,G){if(!J)return!1;if(J.type!=="JSXIdentifier")return!1;return G==null||R.default(J,G)}function ES(J,G){if(!J)return!1;if(J.type!=="JSXMemberExpression")return!1;return G==null||R.default(J,G)}function OS(J,G){if(!J)return!1;if(J.type!=="JSXNamespacedName")return!1;return G==null||R.default(J,G)}function vS(J,G){if(!J)return!1;if(J.type!=="JSXOpeningElement")return!1;return G==null||R.default(J,G)}function _S(J,G){if(!J)return!1;if(J.type!=="JSXSpreadAttribute")return!1;return G==null||R.default(J,G)}function gS(J,G){if(!J)return!1;if(J.type!=="JSXText")return!1;return G==null||R.default(J,G)}function bS(J,G){if(!J)return!1;if(J.type!=="JSXFragment")return!1;return G==null||R.default(J,G)}function hS(J,G){if(!J)return!1;if(J.type!=="JSXOpeningFragment")return!1;return G==null||R.default(J,G)}function yS(J,G){if(!J)return!1;if(J.type!=="JSXClosingFragment")return!1;return G==null||R.default(J,G)}function mS(J,G){if(!J)return!1;if(J.type!=="Noop")return!1;return G==null||R.default(J,G)}function xS(J,G){if(!J)return!1;if(J.type!=="Placeholder")return!1;return G==null||R.default(J,G)}function lS(J,G){if(!J)return!1;if(J.type!=="V8IntrinsicIdentifier")return!1;return G==null||R.default(J,G)}function cS(J,G){if(!J)return!1;if(J.type!=="ArgumentPlaceholder")return!1;return G==null||R.default(J,G)}function rS(J,G){if(!J)return!1;if(J.type!=="BindExpression")return!1;return G==null||R.default(J,G)}function aS(J,G){if(!J)return!1;if(J.type!=="ImportAttribute")return!1;return G==null||R.default(J,G)}function iS(J,G){if(!J)return!1;if(J.type!=="Decorator")return!1;return G==null||R.default(J,G)}function uS(J,G){if(!J)return!1;if(J.type!=="DoExpression")return!1;return G==null||R.default(J,G)}function dS(J,G){if(!J)return!1;if(J.type!=="ExportDefaultSpecifier")return!1;return G==null||R.default(J,G)}function sS(J,G){if(!J)return!1;if(J.type!=="RecordExpression")return!1;return G==null||R.default(J,G)}function pS(J,G){if(!J)return!1;if(J.type!=="TupleExpression")return!1;return G==null||R.default(J,G)}function nS(J,G){if(!J)return!1;if(J.type!=="DecimalLiteral")return!1;return G==null||R.default(J,G)}function oS(J,G){if(!J)return!1;if(J.type!=="ModuleExpression")return!1;return G==null||R.default(J,G)}function eS(J,G){if(!J)return!1;if(J.type!=="TopicReference")return!1;return G==null||R.default(J,G)}function tS(J,G){if(!J)return!1;if(J.type!=="PipelineTopicExpression")return!1;return G==null||R.default(J,G)}function JP(J,G){if(!J)return!1;if(J.type!=="PipelineBareFunction")return!1;return G==null||R.default(J,G)}function GP(J,G){if(!J)return!1;if(J.type!=="PipelinePrimaryTopicReference")return!1;return G==null||R.default(J,G)}function XP(J,G){if(!J)return!1;if(J.type!=="TSParameterProperty")return!1;return G==null||R.default(J,G)}function HP(J,G){if(!J)return!1;if(J.type!=="TSDeclareFunction")return!1;return G==null||R.default(J,G)}function ZP(J,G){if(!J)return!1;if(J.type!=="TSDeclareMethod")return!1;return G==null||R.default(J,G)}function VP(J,G){if(!J)return!1;if(J.type!=="TSQualifiedName")return!1;return G==null||R.default(J,G)}function QP(J,G){if(!J)return!1;if(J.type!=="TSCallSignatureDeclaration")return!1;return G==null||R.default(J,G)}function YP(J,G){if(!J)return!1;if(J.type!=="TSConstructSignatureDeclaration")return!1;return G==null||R.default(J,G)}function zP(J,G){if(!J)return!1;if(J.type!=="TSPropertySignature")return!1;return G==null||R.default(J,G)}function WP(J,G){if(!J)return!1;if(J.type!=="TSMethodSignature")return!1;return G==null||R.default(J,G)}function $P(J,G){if(!J)return!1;if(J.type!=="TSIndexSignature")return!1;return G==null||R.default(J,G)}function UP(J,G){if(!J)return!1;if(J.type!=="TSAnyKeyword")return!1;return G==null||R.default(J,G)}function KP(J,G){if(!J)return!1;if(J.type!=="TSBooleanKeyword")return!1;return G==null||R.default(J,G)}function BP(J,G){if(!J)return!1;if(J.type!=="TSBigIntKeyword")return!1;return G==null||R.default(J,G)}function RP(J,G){if(!J)return!1;if(J.type!=="TSIntrinsicKeyword")return!1;return G==null||R.default(J,G)}function MP(J,G){if(!J)return!1;if(J.type!=="TSNeverKeyword")return!1;return G==null||R.default(J,G)}function qP(J,G){if(!J)return!1;if(J.type!=="TSNullKeyword")return!1;return G==null||R.default(J,G)}function FP(J,G){if(!J)return!1;if(J.type!=="TSNumberKeyword")return!1;return G==null||R.default(J,G)}function jP(J,G){if(!J)return!1;if(J.type!=="TSObjectKeyword")return!1;return G==null||R.default(J,G)}function fP(J,G){if(!J)return!1;if(J.type!=="TSStringKeyword")return!1;return G==null||R.default(J,G)}function DP(J,G){if(!J)return!1;if(J.type!=="TSSymbolKeyword")return!1;return G==null||R.default(J,G)}function AP(J,G){if(!J)return!1;if(J.type!=="TSUndefinedKeyword")return!1;return G==null||R.default(J,G)}function IP(J,G){if(!J)return!1;if(J.type!=="TSUnknownKeyword")return!1;return G==null||R.default(J,G)}function CP(J,G){if(!J)return!1;if(J.type!=="TSVoidKeyword")return!1;return G==null||R.default(J,G)}function SP(J,G){if(!J)return!1;if(J.type!=="TSThisType")return!1;return G==null||R.default(J,G)}function PP(J,G){if(!J)return!1;if(J.type!=="TSFunctionType")return!1;return G==null||R.default(J,G)}function wP(J,G){if(!J)return!1;if(J.type!=="TSConstructorType")return!1;return G==null||R.default(J,G)}function LP(J,G){if(!J)return!1;if(J.type!=="TSTypeReference")return!1;return G==null||R.default(J,G)}function TP(J,G){if(!J)return!1;if(J.type!=="TSTypePredicate")return!1;return G==null||R.default(J,G)}function NP(J,G){if(!J)return!1;if(J.type!=="TSTypeQuery")return!1;return G==null||R.default(J,G)}function kP(J,G){if(!J)return!1;if(J.type!=="TSTypeLiteral")return!1;return G==null||R.default(J,G)}function EP(J,G){if(!J)return!1;if(J.type!=="TSArrayType")return!1;return G==null||R.default(J,G)}function OP(J,G){if(!J)return!1;if(J.type!=="TSTupleType")return!1;return G==null||R.default(J,G)}function vP(J,G){if(!J)return!1;if(J.type!=="TSOptionalType")return!1;return G==null||R.default(J,G)}function _P(J,G){if(!J)return!1;if(J.type!=="TSRestType")return!1;return G==null||R.default(J,G)}function gP(J,G){if(!J)return!1;if(J.type!=="TSNamedTupleMember")return!1;return G==null||R.default(J,G)}function bP(J,G){if(!J)return!1;if(J.type!=="TSUnionType")return!1;return G==null||R.default(J,G)}function hP(J,G){if(!J)return!1;if(J.type!=="TSIntersectionType")return!1;return G==null||R.default(J,G)}function yP(J,G){if(!J)return!1;if(J.type!=="TSConditionalType")return!1;return G==null||R.default(J,G)}function mP(J,G){if(!J)return!1;if(J.type!=="TSInferType")return!1;return G==null||R.default(J,G)}function xP(J,G){if(!J)return!1;if(J.type!=="TSParenthesizedType")return!1;return G==null||R.default(J,G)}function lP(J,G){if(!J)return!1;if(J.type!=="TSTypeOperator")return!1;return G==null||R.default(J,G)}function cP(J,G){if(!J)return!1;if(J.type!=="TSIndexedAccessType")return!1;return G==null||R.default(J,G)}function rP(J,G){if(!J)return!1;if(J.type!=="TSMappedType")return!1;return G==null||R.default(J,G)}function aP(J,G){if(!J)return!1;if(J.type!=="TSLiteralType")return!1;return G==null||R.default(J,G)}function iP(J,G){if(!J)return!1;if(J.type!=="TSExpressionWithTypeArguments")return!1;return G==null||R.default(J,G)}function uP(J,G){if(!J)return!1;if(J.type!=="TSInterfaceDeclaration")return!1;return G==null||R.default(J,G)}function dP(J,G){if(!J)return!1;if(J.type!=="TSInterfaceBody")return!1;return G==null||R.default(J,G)}function sP(J,G){if(!J)return!1;if(J.type!=="TSTypeAliasDeclaration")return!1;return G==null||R.default(J,G)}function pP(J,G){if(!J)return!1;if(J.type!=="TSInstantiationExpression")return!1;return G==null||R.default(J,G)}function nP(J,G){if(!J)return!1;if(J.type!=="TSAsExpression")return!1;return G==null||R.default(J,G)}function oP(J,G){if(!J)return!1;if(J.type!=="TSSatisfiesExpression")return!1;return G==null||R.default(J,G)}function eP(J,G){if(!J)return!1;if(J.type!=="TSTypeAssertion")return!1;return G==null||R.default(J,G)}function tP(J,G){if(!J)return!1;if(J.type!=="TSEnumDeclaration")return!1;return G==null||R.default(J,G)}function Jw(J,G){if(!J)return!1;if(J.type!=="TSEnumMember")return!1;return G==null||R.default(J,G)}function Gw(J,G){if(!J)return!1;if(J.type!=="TSModuleDeclaration")return!1;return G==null||R.default(J,G)}function Xw(J,G){if(!J)return!1;if(J.type!=="TSModuleBlock")return!1;return G==null||R.default(J,G)}function Hw(J,G){if(!J)return!1;if(J.type!=="TSImportType")return!1;return G==null||R.default(J,G)}function Zw(J,G){if(!J)return!1;if(J.type!=="TSImportEqualsDeclaration")return!1;return G==null||R.default(J,G)}function Vw(J,G){if(!J)return!1;if(J.type!=="TSExternalModuleReference")return!1;return G==null||R.default(J,G)}function Qw(J,G){if(!J)return!1;if(J.type!=="TSNonNullExpression")return!1;return G==null||R.default(J,G)}function Yw(J,G){if(!J)return!1;if(J.type!=="TSExportAssignment")return!1;return G==null||R.default(J,G)}function zw(J,G){if(!J)return!1;if(J.type!=="TSNamespaceExportDeclaration")return!1;return G==null||R.default(J,G)}function Ww(J,G){if(!J)return!1;if(J.type!=="TSTypeAnnotation")return!1;return G==null||R.default(J,G)}function $w(J,G){if(!J)return!1;if(J.type!=="TSTypeParameterInstantiation")return!1;return G==null||R.default(J,G)}function Uw(J,G){if(!J)return!1;if(J.type!=="TSTypeParameterDeclaration")return!1;return G==null||R.default(J,G)}function Kw(J,G){if(!J)return!1;if(J.type!=="TSTypeParameter")return!1;return G==null||R.default(J,G)}function Bw(J,G){if(!J)return!1;switch(J.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":break;case"Placeholder":switch(J.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return G==null||R.default(J,G)}function Rw(J,G){if(!J)return!1;switch(J.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(J.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return G==null||R.default(J,G)}function Mw(J,G){if(!J)return!1;switch(J.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return G==null||R.default(J,G)}function qw(J,G){if(!J)return!1;switch(J.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(J.expectedNode==="BlockStatement")break;default:return!1}return G==null||R.default(J,G)}function Fw(J,G){if(!J)return!1;switch(J.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(J.expectedNode==="BlockStatement")break;default:return!1}return G==null||R.default(J,G)}function jw(J,G){if(!J)return!1;switch(J.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(J.expectedNode==="BlockStatement")break;default:return!1}return G==null||R.default(J,G)}function fw(J,G){if(!J)return!1;switch(J.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(J.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return G==null||R.default(J,G)}function Dw(J,G){if(!J)return!1;switch(J.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return G==null||R.default(J,G)}function Aw(J,G){if(!J)return!1;switch(J.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return G==null||R.default(J,G)}function Iw(J,G){if(!J)return!1;switch(J.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return G==null||R.default(J,G)}function Cw(J,G){if(!J)return!1;switch(J.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return G==null||R.default(J,G)}function Sw(J,G){if(!J)return!1;switch(J.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return G==null||R.default(J,G)}function Pw(J,G){if(!J)return!1;switch(J.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return G==null||R.default(J,G)}function ww(J,G){if(!J)return!1;switch(J.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return G==null||R.default(J,G)}function Lw(J,G){if(!J)return!1;switch(J.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return G==null||R.default(J,G)}function Tw(J,G){if(!J)return!1;switch(J.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return G==null||R.default(J,G)}function Nw(J,G){if(!J)return!1;switch(J.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return G==null||R.default(J,G)}function kw(J,G){if(!J)return!1;switch(J.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(J.expectedNode==="StringLiteral")break;default:return!1}return G==null||R.default(J,G)}function Ew(J,G){if(!J)return!1;switch(J.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":break;case"Placeholder":if(J.expectedNode==="Declaration")break;default:return!1}return G==null||R.default(J,G)}function Ow(J,G){if(!J)return!1;switch(J.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(J.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return G==null||R.default(J,G)}function vw(J,G){if(!J)return!1;switch(J.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(J.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return G==null||R.default(J,G)}function _w(J,G){if(!J)return!1;switch(J.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(J.expectedNode==="Identifier")break;default:return!1}return G==null||R.default(J,G)}function gw(J,G){if(!J)return!1;switch(J.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(J.expectedNode==="StringLiteral")break;default:return!1}return G==null||R.default(J,G)}function bw(J,G){if(!J)return!1;switch(J.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(J.expectedNode==="StringLiteral")break;default:return!1}return G==null||R.default(J,G)}function hw(J,G){if(!J)return!1;switch(J.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return G==null||R.default(J,G)}function yw(J,G){if(!J)return!1;switch(J.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return G==null||R.default(J,G)}function mw(J,G){if(!J)return!1;switch(J.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return G==null||R.default(J,G)}function xw(J,G){if(!J)return!1;switch(J.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return G==null||R.default(J,G)}function lw(J,G){if(!J)return!1;switch(J.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return G==null||R.default(J,G)}function cw(J,G){if(!J)return!1;switch(J.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if(J.expectedNode==="Pattern")break;default:return!1}return G==null||R.default(J,G)}function rw(J,G){if(!J)return!1;switch(J.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return G==null||R.default(J,G)}function dV(J,G){if(!J)return!1;switch(J.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return G==null||R.default(J,G)}function aw(J,G){if(!J)return!1;switch(J.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return G==null||R.default(J,G)}function iw(J,G){if(!J)return!1;switch(J.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return G==null||R.default(J,G)}function uw(J,G){if(!J)return!1;switch(J.type){case"ClassAccessorProperty":break;default:return!1}return G==null||R.default(J,G)}function dw(J,G){if(!J)return!1;switch(J.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return G==null||R.default(J,G)}function sw(J,G){if(!J)return!1;switch(J.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return G==null||R.default(J,G)}function pw(J,G){if(!J)return!1;switch(J.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return G==null||R.default(J,G)}function nw(J,G){if(!J)return!1;switch(J.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return G==null||R.default(J,G)}function ow(J,G){if(!J)return!1;switch(J.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return G==null||R.default(J,G)}function ew(J,G){if(!J)return!1;switch(J.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return G==null||R.default(J,G)}function tw(J,G){if(!J)return!1;switch(J.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return G==null||R.default(J,G)}function JL(J,G){if(!J)return!1;switch(J.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return G==null||R.default(J,G)}function GL(J,G){if(!J)return!1;switch(J.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return G==null||R.default(J,G)}function XL(J,G){if(!J)return!1;switch(J.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return G==null||R.default(J,G)}function HL(J,G){if(!J)return!1;switch(J.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return G==null||R.default(J,G)}function ZL(J,G){if(!J)return!1;switch(J.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return G==null||R.default(J,G)}function VL(J,G){if(!J)return!1;switch(J.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return G==null||R.default(J,G)}function QL(J,G){if(!J)return!1;switch(J.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSLiteralType":break;default:return!1}return G==null||R.default(J,G)}function YL(J,G){if(B9.default("isNumberLiteral","isNumericLiteral"),!J)return!1;if(J.type!=="NumberLiteral")return!1;return G==null||R.default(J,G)}function zL(J,G){if(B9.default("isRegexLiteral","isRegExpLiteral"),!J)return!1;if(J.type!=="RegexLiteral")return!1;return G==null||R.default(J,G)}function WL(J,G){if(B9.default("isRestProperty","isRestElement"),!J)return!1;if(J.type!=="RestProperty")return!1;return G==null||R.default(J,G)}function $L(J,G){if(B9.default("isSpreadProperty","isSpreadElement"),!J)return!1;if(J.type!=="SpreadProperty")return!1;return G==null||R.default(J,G)}function UL(J,G){return B9.default("isModuleDeclaration","isImportOrExportDeclaration"),dV(J,G)}});var VX=S((pV)=>{Object.defineProperty(pV,"__esModule",{value:!0});pV.default=uO;var R9=a1();function uO(J,G,X){if(!R9.isMemberExpression(J))return!1;let H=Array.isArray(G)?G:G.split("."),Z=[],V;for(V=J;R9.isMemberExpression(V);V=V.object)Z.push(V.property);if(Z.push(V),Z.length<H.length)return!1;if(!X&&Z.length>H.length)return!1;for(let Q=0,Y=Z.length-1;Q<H.length;Q++,Y--){let z=Z[Y],W;if(R9.isIdentifier(z))W=z.name;else if(R9.isStringLiteral(z))W=z.value;else if(R9.isThisExpression(z))W="this";else return!1;if(H[Q]!==W)return!1}return!0}});var QX=S((nV)=>{Object.defineProperty(nV,"__esModule",{value:!0});nV.default=pO;var sO=VX();function pO(J,G){let X=J.split(".");return(H)=>sO.default(H,X,G)}});var tV=S((oV)=>{Object.defineProperty(oV,"__esModule",{value:!0});oV.default=void 0;var oO=QX(),eO=oO.default("React.Component"),UN1=oV.default=eO});var GQ=S((JQ)=>{Object.defineProperty(JQ,"__esModule",{value:!0});JQ.default=tO;function tO(J){return!!J&&/^[a-z]/.test(J)}});var HQ=S((RN1,XQ)=>{var M9=null;function q9(J){if(M9!==null&&typeof M9.property){let G=M9;return M9=q9.prototype=null,G}return M9=q9.prototype=J==null?Object.create(null):J,new q9}q9();XQ.exports=function J(G){return q9(G)}});var $J=S((VQ)=>{Object.defineProperty(VQ,"__esModule",{value:!0});VQ.default=Gv;var ZQ=N2();function Gv(J,G){if(J===G)return!0;if(J==null)return!1;if(ZQ.ALIAS_KEYS[G])return!1;let X=ZQ.FLIPPED_ALIAS_KEYS[G];if(X){if(X[0]===J)return!0;for(let H of X)if(J===H)return!0}return!1}});var YX=S((QQ)=>{Object.defineProperty(QQ,"__esModule",{value:!0});QQ.default=Zv;var Hv=N2();function Zv(J,G){if(J===G)return!0;let X=Hv.PLACEHOLDERS_ALIAS[J];if(X){for(let H of X)if(G===H)return!0}return!1}});var N5=S((YQ)=>{Object.defineProperty(YQ,"__esModule",{value:!0});YQ.default=$v;var Qv=WJ(),Yv=$J(),zv=YX(),Wv=N2();function $v(J,G,X){if(!G)return!1;if(!Yv.default(G.type,J)){if(!X&&G.type==="Placeholder"&&J in Wv.FLIPPED_ALIAS_KEYS)return zv.default(G.expectedNode,J);return!1}if(X===void 0)return!0;else return Qv.default(G,X)}});var BQ=S((KQ)=>{Object.defineProperty(KQ,"__esModule",{value:!0});KQ.isIdentifierChar=UQ;KQ.isIdentifierName=Mv;KQ.isIdentifierStart=$Q;var WX="\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-\u1C8A\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-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\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",zQ="\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\u0897-\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\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\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\uFF65",Kv=new RegExp("["+WX+"]"),Bv=new RegExp("["+WX+zQ+"]");WX=zQ=null;var WQ=[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,4,51,13,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,39,27,10,22,251,41,7,1,17,2,60,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,200,32,32,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,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,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,229,29,3,0,496,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,16,621,2467,541,1507,4938,6,4191],Rv=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,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,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,343,9,54,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,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,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,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function zX(J,G){let X=65536;for(let H=0,Z=G.length;H<Z;H+=2){if(X+=G[H],X>J)return!1;if(X+=G[H+1],X>=J)return!0}return!1}function $Q(J){if(J<65)return J===36;if(J<=90)return!0;if(J<97)return J===95;if(J<=122)return!0;if(J<=65535)return J>=170&&Kv.test(String.fromCharCode(J));return zX(J,WQ)}function UQ(J){if(J<48)return J===36;if(J<58)return!0;if(J<65)return!1;if(J<=90)return!0;if(J<97)return J===95;if(J<=122)return!0;if(J<=65535)return J>=170&&Bv.test(String.fromCharCode(J));return zX(J,WQ)||zX(J,Rv)}function Mv(J){let G=!0;for(let X=0;X<J.length;X++){let H=J.charCodeAt(X);if((H&64512)===55296&&X+1<J.length){let Z=J.charCodeAt(++X);if((Z&64512)===56320)H=65536+((H&1023)<<10)+(Z&1023)}if(G){if(G=!1,!$Q(H))return!1}else if(!UQ(H))return!1}return!G}});var jQ=S((FQ)=>{Object.defineProperty(FQ,"__esModule",{value:!0});FQ.isKeyword=Cv;FQ.isReservedWord=RQ;FQ.isStrictBindOnlyReservedWord=qQ;FQ.isStrictBindReservedWord=Iv;FQ.isStrictReservedWord=MQ;var $X={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},fv=new Set($X.keyword),Dv=new Set($X.strict),Av=new Set($X.strictBind);function RQ(J,G){return G&&J==="await"||J==="enum"}function MQ(J,G){return RQ(J,G)||Dv.has(J)}function qQ(J){return Av.has(J)}function Iv(J,G){return MQ(J,G)||qQ(J)}function Cv(J){return fv.has(J)}});var j9=S((s2)=>{Object.defineProperty(s2,"__esModule",{value:!0});Object.defineProperty(s2,"isIdentifierChar",{enumerable:!0,get:function(){return UX.isIdentifierChar}});Object.defineProperty(s2,"isIdentifierName",{enumerable:!0,get:function(){return UX.isIdentifierName}});Object.defineProperty(s2,"isIdentifierStart",{enumerable:!0,get:function(){return UX.isIdentifierStart}});Object.defineProperty(s2,"isKeyword",{enumerable:!0,get:function(){return F9.isKeyword}});Object.defineProperty(s2,"isReservedWord",{enumerable:!0,get:function(){return F9.isReservedWord}});Object.defineProperty(s2,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return F9.isStrictBindOnlyReservedWord}});Object.defineProperty(s2,"isStrictBindReservedWord",{enumerable:!0,get:function(){return F9.isStrictBindReservedWord}});Object.defineProperty(s2,"isStrictReservedWord",{enumerable:!0,get:function(){return F9.isStrictReservedWord}});var UX=BQ(),F9=jQ()});var k5=S((fQ)=>{Object.defineProperty(fQ,"__esModule",{value:!0});fQ.default=Nv;var KX=j9();function Nv(J,G=!0){if(typeof J!=="string")return!1;if(G){if(KX.isKeyword(J)||KX.isStrictReservedWord(J,!0))return!1}return KX.isIdentifierName(J)}});var SQ=S((CQ)=>{Object.defineProperty(CQ,"__esModule",{value:!0});CQ.readCodePoint=IQ;CQ.readInt=AQ;CQ.readStringContents=Ov;var Ev=function J(G){return G>=48&&G<=57},DQ={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},UJ={bin:(J)=>J===48||J===49,oct:(J)=>J>=48&&J<=55,dec:(J)=>J>=48&&J<=57,hex:(J)=>J>=48&&J<=57||J>=65&&J<=70||J>=97&&J<=102};function Ov(J,G,X,H,Z,V){let Q=X,Y=H,z=Z,W="",K=null,q=X,{length:f}=G;for(;;){if(X>=f){V.unterminated(Q,Y,z),W+=G.slice(q,X);break}let I=G.charCodeAt(X);if(vv(J,I,G,X)){W+=G.slice(q,X);break}if(I===92){W+=G.slice(q,X);let C=_v(G,X,H,Z,J==="template",V);if(C.ch===null&&!K)K={pos:X,lineStart:H,curLine:Z};else W+=C.ch;({pos:X,lineStart:H,curLine:Z}=C),q=X}else if(I===8232||I===8233)++X,++Z,H=X;else if(I===10||I===13)if(J==="template"){if(W+=G.slice(q,X)+"\n",++X,I===13&&G.charCodeAt(X)===10)++X;++Z,q=H=X}else V.unterminated(Q,Y,z);else++X}return{pos:X,str:W,firstInvalidLoc:K,lineStart:H,curLine:Z,containsInvalid:!!K}}function vv(J,G,X,H){if(J==="template")return G===96||G===36&&X.charCodeAt(H+1)===123;return G===(J==="double"?34:39)}function _v(J,G,X,H,Z,V){let Q=!Z;G++;let Y=(W)=>({pos:G,ch:W,lineStart:X,curLine:H}),z=J.charCodeAt(G++);switch(z){case 110:return Y("\n");case 114:return Y("\r");case 120:{let W;return{code:W,pos:G}=BX(J,G,X,H,2,!1,Q,V),Y(W===null?null:String.fromCharCode(W))}case 117:{let W;return{code:W,pos:G}=IQ(J,G,X,H,Q,V),Y(W===null?null:String.fromCodePoint(W))}case 116:return Y("\t");case 98:return Y("\b");case 118:return Y("\v");case 102:return Y("\f");case 13:if(J.charCodeAt(G)===10)++G;case 10:X=G,++H;case 8232:case 8233:return Y("");case 56:case 57:if(Z)return Y(null);else V.strictNumericEscape(G-1,X,H);default:if(z>=48&&z<=55){let W=G-1,q=/^[0-7]+/.exec(J.slice(W,G+2))[0],f=parseInt(q,8);if(f>255)q=q.slice(0,-1),f=parseInt(q,8);G+=q.length-1;let I=J.charCodeAt(G);if(q!=="0"||I===56||I===57)if(Z)return Y(null);else V.strictNumericEscape(W,X,H);return Y(String.fromCharCode(f))}return Y(String.fromCharCode(z))}}function BX(J,G,X,H,Z,V,Q,Y){let z=G,W;if({n:W,pos:G}=AQ(J,G,X,H,16,Z,V,!1,Y,!Q),W===null)if(Q)Y.invalidEscapeSequence(z,X,H);else G=z-1;return{code:W,pos:G}}function AQ(J,G,X,H,Z,V,Q,Y,z,W){let K=G,q=Z===16?DQ.hex:DQ.decBinOct,f=Z===16?UJ.hex:Z===10?UJ.dec:Z===8?UJ.oct:UJ.bin,I=!1,C=0;for(let x=0,O=V==null?1/0:V;x<O;++x){let v=J.charCodeAt(G),b;if(v===95&&Y!=="bail"){let B1=J.charCodeAt(G-1),J1=J.charCodeAt(G+1);if(!Y){if(W)return{n:null,pos:G};z.numericSeparatorInEscapeSequence(G,X,H)}else if(Number.isNaN(J1)||!f(J1)||q.has(B1)||q.has(J1)){if(W)return{n:null,pos:G};z.unexpectedNumericSeparator(G,X,H)}++G;continue}if(v>=97)b=v-97+10;else if(v>=65)b=v-65+10;else if(Ev(v))b=v-48;else b=1/0;if(b>=Z)if(b<=9&&W)return{n:null,pos:G};else if(b<=9&&z.invalidDigit(G,X,H,Z))b=0;else if(Q)b=0,I=!0;else break;++G,C=C*Z+b}if(G===K||V!=null&&G-K!==V||I)return{n:null,pos:G};return{n:C,pos:G}}function IQ(J,G,X,H,Z,V){let Q=J.charCodeAt(G),Y;if(Q===123){if(++G,{code:Y,pos:G}=BX(J,G,X,H,J.indexOf("}",G)-G,!0,Z,V),++G,Y!==null&&Y>1114111)if(Z)V.invalidCodePoint(G,X,H);else return{code:null,pos:G}}else({code:Y,pos:G}=BX(J,G,X,H,4,!1,Z,V));return{code:Y,pos:G}}});var P0=S((wQ)=>{Object.defineProperty(wQ,"__esModule",{value:!0});wQ.UPDATE_OPERATORS=wQ.UNARY_OPERATORS=wQ.STRING_UNARY_OPERATORS=wQ.STATEMENT_OR_BLOCK_KEYS=wQ.NUMBER_UNARY_OPERATORS=wQ.NUMBER_BINARY_OPERATORS=wQ.NOT_LOCAL_BINDING=wQ.LOGICAL_OPERATORS=wQ.INHERIT_KEYS=wQ.FOR_INIT_KEYS=wQ.FLATTENABLE_KEYS=wQ.EQUALITY_BINARY_OPERATORS=wQ.COMPARISON_BINARY_OPERATORS=wQ.COMMENT_KEYS=wQ.BOOLEAN_UNARY_OPERATORS=wQ.BOOLEAN_NUMBER_BINARY_OPERATORS=wQ.BOOLEAN_BINARY_OPERATORS=wQ.BLOCK_SCOPED_SYMBOL=wQ.BINARY_OPERATORS=wQ.ASSIGNMENT_OPERATORS=void 0;var CN1=wQ.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],SN1=wQ.FLATTENABLE_KEYS=["body","expressions"],PN1=wQ.FOR_INIT_KEYS=["left","init"],wN1=wQ.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],yv=wQ.LOGICAL_OPERATORS=["||","&&","??"],LN1=wQ.UPDATE_OPERATORS=["++","--"],mv=wQ.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],xv=wQ.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],lv=wQ.COMPARISON_BINARY_OPERATORS=[...xv,"in","instanceof"],cv=wQ.BOOLEAN_BINARY_OPERATORS=[...lv,...mv],PQ=wQ.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],TN1=wQ.BINARY_OPERATORS=["+",...PQ,...cv,"|>"],NN1=wQ.ASSIGNMENT_OPERATORS=["=","+=",...PQ.map((J)=>J+"="),...yv.map((J)=>J+"=")],rv=wQ.BOOLEAN_UNARY_OPERATORS=["delete","!"],av=wQ.NUMBER_UNARY_OPERATORS=["+","-","~"],iv=wQ.STRING_UNARY_OPERATORS=["typeof"],kN1=wQ.UNARY_OPERATORS=["void","throw",...rv,...av,...iv],EN1=wQ.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},ON1=wQ.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),vN1=wQ.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var p2=S((_Q)=>{Object.defineProperty(_Q,"__esModule",{value:!0});_Q.VISITOR_KEYS=_Q.NODE_PARENT_VALIDATIONS=_Q.NODE_FIELDS=_Q.FLIPPED_ALIAS_KEYS=_Q.DEPRECATED_KEYS=_Q.BUILDER_KEYS=_Q.ALIAS_KEYS=void 0;_Q.arrayOf=NQ;_Q.arrayOfType=kQ;_Q.assertEach=EQ;_Q.assertNodeOrValueType=I_;_Q.assertNodeType=RJ;_Q.assertOneOf=A_;_Q.assertOptionalChainStart=S_;_Q.assertShape=C_;_Q.assertValueType=FX;_Q.chain=OQ;_Q.default=vQ;_Q.defineAliasedType=L_;_Q.validate=qX;_Q.validateArrayOfType=D_;_Q.validateOptional=j_;_Q.validateOptionalType=f_;_Q.validateType=F_;var TQ=N5(),BJ=MJ(),U_=_Q.VISITOR_KEYS={},K_=_Q.ALIAS_KEYS={},RX=_Q.FLIPPED_ALIAS_KEYS={},B_=_Q.NODE_FIELDS={},R_=_Q.BUILDER_KEYS={},M_=_Q.DEPRECATED_KEYS={},q_=_Q.NODE_PARENT_VALIDATIONS={};function KJ(J){if(Array.isArray(J))return"array";else if(J===null)return"null";else return typeof J}function qX(J){return{validate:J}}function F_(...J){return qX(RJ(...J))}function j_(J){return{validate:J,optional:!0}}function f_(...J){return{validate:RJ(...J),optional:!0}}function NQ(J){return OQ(FX("array"),EQ(J))}function kQ(...J){return NQ(RJ(...J))}function D_(...J){return qX(kQ(...J))}function EQ(J){let G=process.env.BABEL_TYPES_8_BREAKING?BJ.validateChild:()=>{};function X(H,Z,V){if(!Array.isArray(V))return;for(let Q=0;Q<V.length;Q++){let Y=`${Z}[${Q}]`,z=V[Q];J(H,Y,z),G(H,Y,z)}}return X.each=J,X}function A_(...J){function G(X,H,Z){if(!J.includes(Z))throw new TypeError(`Property ${H} expected value to be one of ${JSON.stringify(J)} but got ${JSON.stringify(Z)}`)}return G.oneOf=J,G}function RJ(...J){function G(X,H,Z){for(let V of J)if(TQ.default(V,Z)){BJ.validateChild(X,H,Z);return}throw new TypeError(`Property ${H} of ${X.type} expected node to be of a type ${JSON.stringify(J)} but instead got ${JSON.stringify(Z==null?void 0:Z.type)}`)}return G.oneOfNodeTypes=J,G}function I_(...J){function G(X,H,Z){for(let V of J)if(KJ(Z)===V||TQ.default(V,Z)){BJ.validateChild(X,H,Z);return}throw new TypeError(`Property ${H} of ${X.type} expected node to be of a type ${JSON.stringify(J)} but instead got ${JSON.stringify(Z==null?void 0:Z.type)}`)}return G.oneOfNodeOrValueTypes=J,G}function FX(J){function G(X,H,Z){if(KJ(Z)!==J)throw new TypeError(`Property ${H} expected type of ${J} but got ${KJ(Z)}`)}return G.type=J,G}function C_(J){function G(X,H,Z){let V=[];for(let Q of Object.keys(J))try{BJ.validateField(X,Q,Z[Q],J[Q])}catch(Y){if(Y instanceof TypeError){V.push(Y.message);continue}throw Y}if(V.length)throw new TypeError(`Property ${H} of ${X.type} expected to have the following:\n${V.join("\n")}`)}return G.shapeOf=J,G}function S_(){function J(G){var X;let H=G;while(G){let{type:Z}=H;if(Z==="OptionalCallExpression"){if(H.optional)return;H=H.callee;continue}if(Z==="OptionalMemberExpression"){if(H.optional)return;H=H.object;continue}break}throw new TypeError(`Non-optional ${G.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(X=H)==null?void 0:X.type}`)}return J}function OQ(...J){function G(...X){for(let H of J)H(...X)}if(G.chainOf=J,J.length>=2&&"type"in J[0]&&J[0].type==="array"&&!("each"in J[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return G}var P_=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),w_=new Set(["default","optional","deprecated","validate"]),MX={};function L_(...J){return(G,X={})=>{let H=X.aliases;if(!H){var Z,V;if(X.inherits)H=(Z=MX[X.inherits].aliases)==null?void 0:Z.slice();(V=H)!=null||(H=[]),X.aliases=H}let Q=J.filter((Y)=>!H.includes(Y));H.unshift(...Q),vQ(G,X)}}function vQ(J,G={}){let X=G.inherits&&MX[G.inherits]||{},H=G.fields;if(!H){if(H={},X.fields){let Y=Object.getOwnPropertyNames(X.fields);for(let z of Y){let W=X.fields[z],K=W.default;if(Array.isArray(K)?K.length>0:K&&typeof K==="object")throw new Error("field defaults can only be primitives or empty arrays currently");H[z]={default:Array.isArray(K)?[]:K,optional:W.optional,deprecated:W.deprecated,validate:W.validate}}}}let Z=G.visitor||X.visitor||[],V=G.aliases||X.aliases||[],Q=G.builder||X.builder||G.visitor||[];for(let Y of Object.keys(G))if(!P_.has(Y))throw new Error(`Unknown type option "${Y}" on ${J}`);if(G.deprecatedAlias)M_[G.deprecatedAlias]=J;for(let Y of Z.concat(Q))H[Y]=H[Y]||{};for(let Y of Object.keys(H)){let z=H[Y];if(z.default!==void 0&&!Q.includes(Y))z.optional=!0;if(z.default===void 0)z.default=null;else if(!z.validate&&z.default!=null)z.validate=FX(KJ(z.default));for(let W of Object.keys(z))if(!w_.has(W))throw new Error(`Unknown field key "${W}" on ${J}.${Y}`)}if(U_[J]=G.visitor=Z,R_[J]=G.builder=Q,B_[J]=G.fields=H,K_[J]=G.aliases=V,V.forEach((Y)=>{RX[Y]=RX[Y]||[],RX[Y].push(J)}),G.validate)q_[J]=G.validate;MX[J]=G}});var fX=S((yQ)=>{Object.defineProperty(yQ,"__esModule",{value:!0});yQ.patternLikeCommon=yQ.functionTypeAnnotationCommon=yQ.functionDeclarationCommon=yQ.functionCommon=yQ.classMethodOrPropertyCommon=yQ.classMethodOrDeclareMethodCommon=void 0;var Y2=N5(),o_=k5(),bQ=j9(),e_=SQ(),f9=P0(),M=p2(),l=M.defineAliasedType("Standardized");l("ArrayExpression",{fields:{elements:{validate:M.arrayOf(M.assertNodeOrValueType("null","Expression","SpreadElement")),default:!process.env.BABEL_TYPES_8_BREAKING?[]:void 0}},visitor:["elements"],aliases:["Expression"]});l("AssignmentExpression",{fields:{operator:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertValueType("string"):Object.assign(function(){let J=M.assertOneOf(...f9.ASSIGNMENT_OPERATORS),G=M.assertOneOf("=");return function(X,H,Z){(Y2.default("Pattern",X.left)?G:J)(X,H,Z)}}(),{type:"string"})},left:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertNodeType("LVal","OptionalMemberExpression"):M.assertNodeType("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:M.assertNodeType("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});l("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:M.assertOneOf(...f9.BINARY_OPERATORS)},left:{validate:function(){let J=M.assertNodeType("Expression"),G=M.assertNodeType("Expression","PrivateName");return Object.assign(function(H,Z,V){(H.operator==="in"?G:J)(H,Z,V)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:M.assertNodeType("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});l("InterpreterDirective",{builder:["value"],fields:{value:{validate:M.assertValueType("string")}}});l("Directive",{visitor:["value"],fields:{value:{validate:M.assertNodeType("DirectiveLiteral")}}});l("DirectiveLiteral",{builder:["value"],fields:{value:{validate:M.assertValueType("string")}}});l("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:M.arrayOfType("Directive"),default:[]},body:M.validateArrayOfType("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});l("BreakStatement",{visitor:["label"],fields:{label:{validate:M.assertNodeType("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});l("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:M.assertNodeType("Expression","Super","V8IntrinsicIdentifier")},arguments:M.validateArrayOfType("Expression","SpreadElement","ArgumentPlaceholder")},!process.env.BABEL_TYPES_8_BREAKING?{optional:{validate:M.assertValueType("boolean"),optional:!0}}:{},{typeArguments:{validate:M.assertNodeType("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:M.assertNodeType("TSTypeParameterInstantiation"),optional:!0}})});l("CatchClause",{visitor:["param","body"],fields:{param:{validate:M.assertNodeType("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:M.assertNodeType("BlockStatement")}},aliases:["Scopable","BlockParent"]});l("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:M.assertNodeType("Expression")},consequent:{validate:M.assertNodeType("Expression")},alternate:{validate:M.assertNodeType("Expression")}},aliases:["Expression","Conditional"]});l("ContinueStatement",{visitor:["label"],fields:{label:{validate:M.assertNodeType("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});l("DebuggerStatement",{aliases:["Statement"]});l("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});l("EmptyStatement",{aliases:["Statement"]});l("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:M.assertNodeType("Expression")}},aliases:["Statement","ExpressionWrapper"]});l("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:M.assertNodeType("Program")},comments:{validate:!process.env.BABEL_TYPES_8_BREAKING?Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}):M.assertEach(M.assertNodeType("CommentBlock","CommentLine")),optional:!0},tokens:{validate:M.assertEach(Object.assign(()=>{},{type:"any"})),optional:!0}}});l("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertNodeType("VariableDeclaration","LVal"):M.assertNodeType("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")}}});l("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:M.assertNodeType("VariableDeclaration","Expression"),optional:!0},test:{validate:M.assertNodeType("Expression"),optional:!0},update:{validate:M.assertNodeType("Expression"),optional:!0},body:{validate:M.assertNodeType("Statement")}}});var E5=()=>({params:M.validateArrayOfType("Identifier","Pattern","RestElement"),generator:{default:!1},async:{default:!1}});yQ.functionCommon=E5;var p0=()=>({returnType:{validate:M.assertNodeType("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:M.assertNodeType("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});yQ.functionTypeAnnotationCommon=p0;var hQ=()=>Object.assign({},E5(),{declare:{validate:M.assertValueType("boolean"),optional:!0},id:{validate:M.assertNodeType("Identifier"),optional:!0}});yQ.functionDeclarationCommon=hQ;l("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","returnType","body"],fields:Object.assign({},hQ(),p0(),{body:{validate:M.assertNodeType("BlockStatement")},predicate:{validate:M.assertNodeType("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:!process.env.BABEL_TYPES_8_BREAKING?void 0:function(){let J=M.assertNodeType("Identifier");return function(G,X,H){if(!Y2.default("ExportDefaultDeclaration",G))J(H,"id",H.id)}}()});l("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},E5(),p0(),{id:{validate:M.assertNodeType("Identifier"),optional:!0},body:{validate:M.assertNodeType("BlockStatement")},predicate:{validate:M.assertNodeType("DeclaredPredicate","InferredPredicate"),optional:!0}})});var O5=()=>({typeAnnotation:{validate:M.assertNodeType("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:M.assertValueType("boolean"),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0}});yQ.patternLikeCommon=O5;l("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},O5(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertValueType("string"),Object.assign(function(J,G,X){if(!o_.default(X,!1))throw new TypeError(`"${X}" is not a valid identifier name`)},{type:"string"})):M.assertValueType("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(J,G,X){let H=/\.(\w+)$/.exec(G);if(!H)return;let[,Z]=H,V={computed:!1};if(Z==="property"){if(Y2.default("MemberExpression",J,V))return;if(Y2.default("OptionalMemberExpression",J,V))return}else if(Z==="key"){if(Y2.default("Property",J,V))return;if(Y2.default("Method",J,V))return}else if(Z==="exported"){if(Y2.default("ExportSpecifier",J))return}else if(Z==="imported"){if(Y2.default("ImportSpecifier",J,{imported:X}))return}else if(Z==="meta"){if(Y2.default("MetaProperty",J,{meta:X}))return}if((bQ.isKeyword(X.name)||bQ.isReservedWord(X.name,!1))&&X.name!=="this")throw new TypeError(`"${X.name}" is not a valid identifier`)}:void 0});l("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:M.assertNodeType("Expression")},consequent:{validate:M.assertNodeType("Statement")},alternate:{optional:!0,validate:M.assertNodeType("Statement")}}});l("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:M.assertNodeType("Identifier")},body:{validate:M.assertNodeType("Statement")}}});l("StringLiteral",{builder:["value"],fields:{value:{validate:M.assertValueType("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});l("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:M.chain(M.assertValueType("number"),Object.assign(function(J,G,X){if(1/X<0||!Number.isFinite(X)){let H=new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${X}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});l("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});l("BooleanLiteral",{builder:["value"],fields:{value:{validate:M.assertValueType("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});l("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:M.assertValueType("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertValueType("string"),Object.assign(function(J,G,X){let H=/[^gimsuy]/.exec(X);if(H)throw new TypeError(`"${H[0]}" is not a valid RegExp flag`)},{type:"string"})):M.assertValueType("string"),default:""}}});l("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:M.assertOneOf(...f9.LOGICAL_OPERATORS)},left:{validate:M.assertNodeType("Expression")},right:{validate:M.assertNodeType("Expression")}}});l("MemberExpression",{builder:["object","property","computed",...!process.env.BABEL_TYPES_8_BREAKING?["optional"]:[]],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:M.assertNodeType("Expression","Super")},property:{validate:function(){let J=M.assertNodeType("Identifier","PrivateName"),G=M.assertNodeType("Expression"),X=function(H,Z,V){(H.computed?G:J)(H,Z,V)};return X.oneOfNodeTypes=["Expression","Identifier","PrivateName"],X}()},computed:{default:!1}},!process.env.BABEL_TYPES_8_BREAKING?{optional:{validate:M.assertValueType("boolean"),optional:!0}}:{})});l("NewExpression",{inherits:"CallExpression"});l("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:M.assertOneOf("script","module"),default:"script"},interpreter:{validate:M.assertNodeType("InterpreterDirective"),default:null,optional:!0},directives:{validate:M.arrayOfType("Directive"),default:[]},body:M.validateArrayOfType("Statement")},aliases:["Scopable","BlockParent","Block"]});l("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:M.validateArrayOfType("ObjectMethod","ObjectProperty","SpreadElement")}});l("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},E5(),p0(),{kind:Object.assign({validate:M.assertOneOf("method","get","set")},!process.env.BABEL_TYPES_8_BREAKING?{default:"method"}:{}),computed:{default:!1},key:{validate:function(){let J=M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),G=M.assertNodeType("Expression"),X=function(H,Z,V){(H.computed?G:J)(H,Z,V)};return X.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],X}()},decorators:{validate:M.arrayOfType("Decorator"),optional:!0},body:{validate:M.assertNodeType("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]});l("ObjectProperty",{builder:["key","value","computed","shorthand",...!process.env.BABEL_TYPES_8_BREAKING?["decorators"]:[]],fields:{computed:{default:!1},key:{validate:function(){let J=M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),G=M.assertNodeType("Expression");return Object.assign(function(H,Z,V){(H.computed?G:J)(H,Z,V)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:M.assertNodeType("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertValueType("boolean"),Object.assign(function(J,G,X){if(!X)return;if(J.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!Y2.default("Identifier",J.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")},{type:"boolean"})):M.assertValueType("boolean"),default:!1},decorators:{validate:M.arrayOfType("Decorator"),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:!process.env.BABEL_TYPES_8_BREAKING?void 0:function(){let J=M.assertNodeType("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),G=M.assertNodeType("Expression");return function(X,H,Z){(Y2.default("ObjectPattern",X)?J:G)(Z,"value",Z.value)}}()});l("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},O5(),{argument:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertNodeType("LVal"):M.assertNodeType("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(J,G){let X=/(\w+)\[(\d+)\]/.exec(G);if(!X)throw new Error("Internal Babel error: malformed key.");let[,H,Z]=X;if(J[H].length>+Z+1)throw new TypeError(`RestElement must be last element of ${H}`)}:void 0});l("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:M.assertNodeType("Expression"),optional:!0}}});l("SequenceExpression",{visitor:["expressions"],fields:{expressions:M.validateArrayOfType("Expression")},aliases:["Expression"]});l("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:M.assertNodeType("Expression")}}});l("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:M.assertNodeType("Expression"),optional:!0},consequent:M.validateArrayOfType("Statement")}});l("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:M.assertNodeType("Expression")},cases:M.validateArrayOfType("SwitchCase")}});l("ThisExpression",{aliases:["Expression"]});l("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:M.assertNodeType("Expression")}}});l("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertNodeType("BlockStatement"),Object.assign(function(J){if(!J.handler&&!J.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):M.assertNodeType("BlockStatement")},handler:{optional:!0,validate:M.assertNodeType("CatchClause")},finalizer:{optional:!0,validate:M.assertNodeType("BlockStatement")}}});l("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:M.assertNodeType("Expression")},operator:{validate:M.assertOneOf(...f9.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});l("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertNodeType("Expression"):M.assertNodeType("Identifier","MemberExpression")},operator:{validate:M.assertOneOf(...f9.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});l("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:M.assertValueType("boolean"),optional:!0},kind:{validate:M.assertOneOf("var","let","const","using","await using")},declarations:M.validateArrayOfType("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{let J=M.assertNodeType("Identifier");return function(G,X,H){if(Y2.default("ForXStatement",G,{left:H})){if(H.declarations.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${G.type}`)}else H.declarations.forEach((Z)=>{if(!Z.init)J(Z,"id",Z.id)})}})():void 0});l("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertNodeType("LVal"):M.assertNodeType("Identifier","ArrayPattern","ObjectPattern")},definite:{optional:!0,validate:M.assertValueType("boolean")},init:{optional:!0,validate:M.assertNodeType("Expression")}}});l("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")}}});l("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")}}});l("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},O5(),{left:{validate:M.assertNodeType("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:M.assertNodeType("Expression")},decorators:{validate:M.arrayOfType("Decorator"),optional:!0}})});l("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},O5(),{elements:{validate:M.chain(M.assertValueType("array"),M.assertEach(M.assertNodeOrValueType("null","PatternLike","LVal")))}})});l("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},E5(),p0(),{expression:{validate:M.assertValueType("boolean")},body:{validate:M.assertNodeType("BlockStatement","Expression")},predicate:{validate:M.assertNodeType("DeclaredPredicate","InferredPredicate"),optional:!0}})});l("ClassBody",{visitor:["body"],fields:{body:M.validateArrayOfType("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});l("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:M.assertNodeType("Identifier"),optional:!0},typeParameters:{validate:M.assertNodeType("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:M.assertNodeType("ClassBody")},superClass:{optional:!0,validate:M.assertNodeType("Expression")},superTypeParameters:{validate:M.assertNodeType("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:M.arrayOfType("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0},mixins:{validate:M.assertNodeType("InterfaceExtends"),optional:!0}}});l("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:M.assertNodeType("Identifier"),optional:!0},typeParameters:{validate:M.assertNodeType("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:M.assertNodeType("ClassBody")},superClass:{optional:!0,validate:M.assertNodeType("Expression")},superTypeParameters:{validate:M.assertNodeType("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:M.arrayOfType("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0},mixins:{validate:M.assertNodeType("InterfaceExtends"),optional:!0},declare:{validate:M.assertValueType("boolean"),optional:!0},abstract:{validate:M.assertValueType("boolean"),optional:!0}},validate:!process.env.BABEL_TYPES_8_BREAKING?void 0:function(){let J=M.assertNodeType("Identifier");return function(G,X,H){if(!Y2.default("ExportDefaultDeclaration",G))J(H,"id",H.id)}}()});l("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{source:{validate:M.assertNodeType("StringLiteral")},exportKind:M.validateOptional(M.assertOneOf("type","value")),attributes:{optional:!0,validate:M.arrayOfType("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:M.arrayOfType("ImportAttribute")}}});l("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:M.validateType("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:M.validateOptional(M.assertOneOf("value"))}});l("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:process.env?["declaration","specifiers","source","attributes"]:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertNodeType("Declaration"),Object.assign(function(J,G,X){if(X&&J.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(X&&J.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):M.assertNodeType("Declaration")},attributes:{optional:!0,validate:M.arrayOfType("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:M.arrayOfType("ImportAttribute")},specifiers:{default:[],validate:M.arrayOf(function(){let J=M.assertNodeType("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),G=M.assertNodeType("ExportSpecifier");if(!process.env.BABEL_TYPES_8_BREAKING)return J;return Object.assign(function(X,H,Z){(X.source?J:G)(X,H,Z)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]})}())},source:{validate:M.assertNodeType("StringLiteral"),optional:!0},exportKind:M.validateOptional(M.assertOneOf("type","value"))}});l("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:M.assertNodeType("Identifier")},exported:{validate:M.assertNodeType("Identifier","StringLiteral")},exportKind:{validate:M.assertOneOf("type","value"),optional:!0}}});l("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return M.assertNodeType("VariableDeclaration","LVal");let J=M.assertNodeType("VariableDeclaration"),G=M.assertNodeType("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(X,H,Z){if(Y2.default("VariableDeclaration",Z))J(X,H,Z);else G(X,H,Z)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")},await:{default:!1}}});l("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:{attributes:{optional:!0,validate:M.arrayOfType("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:M.arrayOfType("ImportAttribute")},module:{optional:!0,validate:M.assertValueType("boolean")},phase:{default:null,validate:M.assertOneOf("source","defer")},specifiers:M.validateArrayOfType("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:M.assertNodeType("StringLiteral")},importKind:{validate:M.assertOneOf("type","typeof","value"),optional:!0}}});l("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:M.assertNodeType("Identifier")}}});l("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:M.assertNodeType("Identifier")}}});l("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:M.assertNodeType("Identifier")},imported:{validate:M.assertNodeType("Identifier","StringLiteral")},importKind:{validate:M.assertOneOf("type","typeof","value"),optional:!0}}});l("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:M.assertOneOf("source","defer")},source:{validate:M.assertNodeType("Expression")},options:{validate:M.assertNodeType("Expression"),optional:!0}}});l("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertNodeType("Identifier"),Object.assign(function(J,G,X){let H;switch(X.name){case"function":H="sent";break;case"new":H="target";break;case"import":H="meta";break}if(!Y2.default("Identifier",J.property,{name:H}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):M.assertNodeType("Identifier")},property:{validate:M.assertNodeType("Identifier")}}});var qJ=()=>({abstract:{validate:M.assertValueType("boolean"),optional:!0},accessibility:{validate:M.assertOneOf("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:M.assertValueType("boolean"),optional:!0},key:{validate:M.chain(function(){let J=M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),G=M.assertNodeType("Expression");return function(X,H,Z){(X.computed?G:J)(X,H,Z)}}(),M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});yQ.classMethodOrPropertyCommon=qJ;var jX=()=>Object.assign({},E5(),qJ(),{params:M.validateArrayOfType("Identifier","Pattern","RestElement","TSParameterProperty"),kind:{validate:M.assertOneOf("get","set","method","constructor"),default:"method"},access:{validate:M.chain(M.assertValueType("string"),M.assertOneOf("public","private","protected")),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0}});yQ.classMethodOrDeclareMethodCommon=jX;l("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},jX(),p0(),{body:{validate:M.assertNodeType("BlockStatement")}})});l("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},O5(),{properties:M.validateArrayOfType("RestElement","ObjectProperty")})});l("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:M.assertNodeType("Expression")}}});l("Super",{aliases:["Expression"]});l("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:M.assertNodeType("Expression")},quasi:{validate:M.assertNodeType("TemplateLiteral")},typeParameters:{validate:M.assertNodeType("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});l("TemplateElement",{builder:["value","tail"],fields:{value:{validate:M.chain(M.assertShape({raw:{validate:M.assertValueType("string")},cooked:{validate:M.assertValueType("string"),optional:!0}}),function J(G){let X=G.value.raw,H=!1,Z=()=>{throw new Error("Internal @babel/types error.")},{str:V,firstInvalidLoc:Q}=e_.readStringContents("template",X,0,0,0,{unterminated(){H=!0},strictNumericEscape:Z,invalidEscapeSequence:Z,numericSeparatorInEscapeSequence:Z,unexpectedNumericSeparator:Z,invalidDigit:Z,invalidCodePoint:Z});if(!H)throw new Error("Invalid raw");G.value.cooked=Q?null:V})},tail:{default:!1}}});l("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:M.validateArrayOfType("TemplateElement"),expressions:{validate:M.chain(M.assertValueType("array"),M.assertEach(M.assertNodeType("Expression","TSType")),function(J,G,X){if(J.quasis.length!==X.length+1)throw new TypeError(`Number of ${J.type} quasis should be exactly one more than the number of expressions.\nExpected ${X.length+1} quasis but got ${J.quasis.length}`)})}}});l("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertValueType("boolean"),Object.assign(function(J,G,X){if(X&&!J.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):M.assertValueType("boolean"),default:!1},argument:{optional:!0,validate:M.assertNodeType("Expression")}}});l("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:M.assertNodeType("Expression")}}});l("Import",{aliases:["Expression"]});l("BigIntLiteral",{builder:["value"],fields:{value:{validate:M.assertValueType("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});l("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:M.assertNodeType("Identifier")}}});l("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:M.assertNodeType("Expression")},property:{validate:function(){let J=M.assertNodeType("Identifier"),G=M.assertNodeType("Expression");return Object.assign(function(H,Z,V){(H.computed?G:J)(H,Z,V)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertValueType("boolean"):M.chain(M.assertValueType("boolean"),M.assertOptionalChainStart())}}});l("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:M.assertNodeType("Expression")},arguments:M.validateArrayOfType("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertValueType("boolean"):M.chain(M.assertValueType("boolean"),M.assertOptionalChainStart())},typeArguments:{validate:M.assertNodeType("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:M.assertNodeType("TSTypeParameterInstantiation"),optional:!0}}});l("ClassProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},qJ(),{value:{validate:M.assertNodeType("Expression"),optional:!0},definite:{validate:M.assertValueType("boolean"),optional:!0},typeAnnotation:{validate:M.assertNodeType("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0},readonly:{validate:M.assertValueType("boolean"),optional:!0},declare:{validate:M.assertValueType("boolean"),optional:!0},variance:{validate:M.assertNodeType("Variance"),optional:!0}})});l("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},qJ(),{key:{validate:M.chain(function(){let J=M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),G=M.assertNodeType("Expression");return function(X,H,Z){(X.computed?G:J)(X,H,Z)}}(),M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:M.assertNodeType("Expression"),optional:!0},definite:{validate:M.assertValueType("boolean"),optional:!0},typeAnnotation:{validate:M.assertNodeType("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0},readonly:{validate:M.assertValueType("boolean"),optional:!0},declare:{validate:M.assertValueType("boolean"),optional:!0},variance:{validate:M.assertNodeType("Variance"),optional:!0}})});l("ClassPrivateProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:M.assertNodeType("PrivateName")},value:{validate:M.assertNodeType("Expression"),optional:!0},typeAnnotation:{validate:M.assertNodeType("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0},static:{validate:M.assertValueType("boolean"),default:!1},readonly:{validate:M.assertValueType("boolean"),optional:!0},definite:{validate:M.assertValueType("boolean"),optional:!0},variance:{validate:M.assertNodeType("Variance"),optional:!0}}});l("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},jX(),p0(),{kind:{validate:M.assertOneOf("get","set","method"),default:"method"},key:{validate:M.assertNodeType("PrivateName")},body:{validate:M.assertNodeType("BlockStatement")}})});l("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:M.assertNodeType("Identifier")}}});l("StaticBlock",{visitor:["body"],fields:{body:M.validateArrayOfType("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]})});var xQ=S(()=>{var P=p2(),G1=P.defineAliasedType("Flow"),DX=(J)=>{let G=J==="DeclareClass";G1(J,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...G?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterDeclaration"),extends:P.validateOptional(P.arrayOfType("InterfaceExtends"))},G?{mixins:P.validateOptional(P.arrayOfType("InterfaceExtends")),implements:P.validateOptional(P.arrayOfType("ClassImplements"))}:{},{body:P.validateType("ObjectTypeAnnotation")})})};G1("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});G1("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:P.validateType("FlowType")}});G1("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});G1("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:P.validate(P.assertValueType("boolean"))}});G1("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});G1("ClassImplements",{visitor:["id","typeParameters"],fields:{id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterInstantiation")}});DX("DeclareClass");G1("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier"),predicate:P.validateOptionalType("DeclaredPredicate")}});DX("DeclareInterface");G1("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier","StringLiteral"),body:P.validateType("BlockStatement"),kind:P.validateOptional(P.assertOneOf("CommonJS","ES"))}});G1("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:P.validateType("TypeAnnotation")}});G1("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterDeclaration"),right:P.validateType("FlowType")}});G1("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterDeclaration"),supertype:P.validateOptionalType("FlowType"),impltype:P.validateOptionalType("FlowType")}});G1("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier")}});G1("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:P.validateOptionalType("Flow"),specifiers:P.validateOptional(P.arrayOfType("ExportSpecifier","ExportNamespaceSpecifier")),source:P.validateOptionalType("StringLiteral"),default:P.validateOptional(P.assertValueType("boolean"))}});G1("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:P.validateType("StringLiteral"),exportKind:P.validateOptional(P.assertOneOf("type","value"))}});G1("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:P.validateType("Flow")}});G1("ExistsTypeAnnotation",{aliases:["FlowType"]});G1("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:P.validateOptionalType("TypeParameterDeclaration"),params:P.validateArrayOfType("FunctionTypeParam"),rest:P.validateOptionalType("FunctionTypeParam"),this:P.validateOptionalType("FunctionTypeParam"),returnType:P.validateType("FlowType")}});G1("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:P.validateOptionalType("Identifier"),typeAnnotation:P.validateType("FlowType"),optional:P.validateOptional(P.assertValueType("boolean"))}});G1("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:P.validateType("Identifier","QualifiedTypeIdentifier"),typeParameters:P.validateOptionalType("TypeParameterInstantiation")}});G1("InferredPredicate",{aliases:["FlowPredicate"]});G1("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:P.validateType("Identifier","QualifiedTypeIdentifier"),typeParameters:P.validateOptionalType("TypeParameterInstantiation")}});DX("InterfaceDeclaration");G1("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:P.validateOptional(P.arrayOfType("InterfaceExtends")),body:P.validateType("ObjectTypeAnnotation")}});G1("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:P.validate(P.arrayOfType("FlowType"))}});G1("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});G1("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});G1("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:P.validateType("FlowType")}});G1("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:P.validate(P.assertValueType("number"))}});G1("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});G1("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:P.validate(P.arrayOfType("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:P.arrayOfType("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:P.arrayOfType("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:P.arrayOfType("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:P.assertValueType("boolean"),default:!1},inexact:P.validateOptional(P.assertValueType("boolean"))}});G1("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:P.validateType("Identifier"),value:P.validateType("FlowType"),optional:P.validate(P.assertValueType("boolean")),static:P.validate(P.assertValueType("boolean")),method:P.validate(P.assertValueType("boolean"))}});G1("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:P.validateType("FlowType"),static:P.validate(P.assertValueType("boolean"))}});G1("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:P.validateOptionalType("Identifier"),key:P.validateType("FlowType"),value:P.validateType("FlowType"),static:P.validate(P.assertValueType("boolean")),variance:P.validateOptionalType("Variance")}});G1("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:P.validateType("Identifier","StringLiteral"),value:P.validateType("FlowType"),kind:P.validate(P.assertOneOf("init","get","set")),static:P.validate(P.assertValueType("boolean")),proto:P.validate(P.assertValueType("boolean")),optional:P.validate(P.assertValueType("boolean")),variance:P.validateOptionalType("Variance"),method:P.validate(P.assertValueType("boolean"))}});G1("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:P.validateType("FlowType")}});G1("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterDeclaration"),supertype:P.validateOptionalType("FlowType"),impltype:P.validateType("FlowType")}});G1("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:P.validateType("Identifier"),qualification:P.validateType("Identifier","QualifiedTypeIdentifier")}});G1("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:P.validate(P.assertValueType("string"))}});G1("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});G1("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});G1("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});G1("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:P.validate(P.arrayOfType("FlowType"))}});G1("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:P.validateType("FlowType")}});G1("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterDeclaration"),right:P.validateType("FlowType")}});G1("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:P.validateType("FlowType")}});G1("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:P.validateType("Expression"),typeAnnotation:P.validateType("TypeAnnotation")}});G1("TypeParameter",{visitor:["bound","default","variance"],fields:{name:P.validate(P.assertValueType("string")),bound:P.validateOptionalType("TypeAnnotation"),default:P.validateOptionalType("FlowType"),variance:P.validateOptionalType("Variance")}});G1("TypeParameterDeclaration",{visitor:["params"],fields:{params:P.validate(P.arrayOfType("TypeParameter"))}});G1("TypeParameterInstantiation",{visitor:["params"],fields:{params:P.validate(P.arrayOfType("FlowType"))}});G1("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:P.validate(P.arrayOfType("FlowType"))}});G1("Variance",{builder:["kind"],fields:{kind:P.validate(P.assertOneOf("minus","plus"))}});G1("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});G1("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:P.validateType("Identifier"),body:P.validateType("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});G1("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:P.validate(P.assertValueType("boolean")),members:P.validateArrayOfType("EnumBooleanMember"),hasUnknownMembers:P.validate(P.assertValueType("boolean"))}});G1("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:P.validate(P.assertValueType("boolean")),members:P.validateArrayOfType("EnumNumberMember"),hasUnknownMembers:P.validate(P.assertValueType("boolean"))}});G1("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:P.validate(P.assertValueType("boolean")),members:P.validateArrayOfType("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:P.validate(P.assertValueType("boolean"))}});G1("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:P.validateArrayOfType("EnumDefaultedMember"),hasUnknownMembers:P.validate(P.assertValueType("boolean"))}});G1("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:P.validateType("Identifier"),init:P.validateType("BooleanLiteral")}});G1("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:P.validateType("Identifier"),init:P.validateType("NumericLiteral")}});G1("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:P.validateType("Identifier"),init:P.validateType("StringLiteral")}});G1("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:P.validateType("Identifier")}});G1("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:P.validateType("FlowType"),indexType:P.validateType("FlowType")}});G1("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:P.validateType("FlowType"),indexType:P.validateType("FlowType"),optional:P.validate(P.assertValueType("boolean"))}})});var lQ=S(()=>{var c1=p2(),z2=c1.defineAliasedType("JSX");z2("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:c1.assertNodeType("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:c1.assertNodeType("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});z2("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:c1.assertNodeType("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});z2("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:c1.assertNodeType("JSXOpeningElement")},closingElement:{optional:!0,validate:c1.assertNodeType("JSXClosingElement")},children:c1.validateArrayOfType("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:c1.assertValueType("boolean"),optional:!0}})});z2("JSXEmptyExpression",{});z2("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:c1.assertNodeType("Expression","JSXEmptyExpression")}}});z2("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:c1.assertNodeType("Expression")}}});z2("JSXIdentifier",{builder:["name"],fields:{name:{validate:c1.assertValueType("string")}}});z2("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:c1.assertNodeType("JSXMemberExpression","JSXIdentifier")},property:{validate:c1.assertNodeType("JSXIdentifier")}}});z2("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:c1.assertNodeType("JSXIdentifier")},name:{validate:c1.assertNodeType("JSXIdentifier")}}});z2("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:c1.assertNodeType("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:c1.validateArrayOfType("JSXAttribute","JSXSpreadAttribute"),typeParameters:{validate:c1.assertNodeType("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});z2("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:c1.assertNodeType("Expression")}}});z2("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:c1.assertValueType("string")}}});z2("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:c1.assertNodeType("JSXOpeningFragment")},closingFragment:{validate:c1.assertNodeType("JSXClosingFragment")},children:c1.validateArrayOfType("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});z2("JSXOpeningFragment",{aliases:["Immutable"]});z2("JSXClosingFragment",{aliases:["Immutable"]})});var CX=S((cQ)=>{Object.defineProperty(cQ,"__esModule",{value:!0});cQ.PLACEHOLDERS_FLIPPED_ALIAS=cQ.PLACEHOLDERS_ALIAS=cQ.PLACEHOLDERS=void 0;var Zg=p2(),Vg=cQ.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],IX=cQ.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let J of Vg){let G=Zg.ALIAS_KEYS[J];if(G!=null&&G.length)IX[J]=G}var AX=cQ.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(IX).forEach((J)=>{IX[J].forEach((G)=>{if(!hasOwnProperty.call(AX,G))AX[G]=[];AX[G].push(J)})})});var aQ=S(()=>{var FJ=p2(),zg=CX(),SX=FJ.defineAliasedType("Miscellaneous");SX("Noop",{visitor:[]});SX("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:FJ.assertNodeType("Identifier")},expectedNode:{validate:FJ.assertOneOf(...zg.PLACEHOLDERS)}}});SX("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:FJ.assertValueType("string")}}})});var iQ=S(()=>{var b1=p2();b1.default("ArgumentPlaceholder",{});b1.default("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:!process.env.BABEL_TYPES_8_BREAKING?{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}:{object:{validate:b1.assertNodeType("Expression")},callee:{validate:b1.assertNodeType("Expression")}}});b1.default("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:b1.assertNodeType("Identifier","StringLiteral")},value:{validate:b1.assertNodeType("StringLiteral")}}});b1.default("Decorator",{visitor:["expression"],fields:{expression:{validate:b1.assertNodeType("Expression")}}});b1.default("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:b1.assertNodeType("BlockStatement")},async:{validate:b1.assertValueType("boolean"),default:!1}}});b1.default("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:b1.assertNodeType("Identifier")}}});b1.default("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:b1.validateArrayOfType("ObjectProperty","SpreadElement")}});b1.default("TupleExpression",{fields:{elements:{validate:b1.arrayOfType("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});b1.default("DecimalLiteral",{builder:["value"],fields:{value:{validate:b1.assertValueType("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});b1.default("ModuleExpression",{visitor:["body"],fields:{body:{validate:b1.assertNodeType("Program")}},aliases:["Expression"]});b1.default("TopicReference",{aliases:["Expression"]});b1.default("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:b1.assertNodeType("Expression")}},aliases:["Expression"]});b1.default("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:b1.assertNodeType("Expression")}},aliases:["Expression"]});b1.default("PipelinePrimaryTopicReference",{aliases:["Expression"]})});var tQ=S(()=>{var g=p2(),uQ=fX(),Wg=N5(),z1=g.defineAliasedType("TypeScript"),F2=g.assertValueType("boolean"),dQ=()=>({returnType:{validate:g.assertNodeType("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:g.assertNodeType("TSTypeParameterDeclaration","Noop"),optional:!0}});z1("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:g.assertOneOf("public","private","protected"),optional:!0},readonly:{validate:g.assertValueType("boolean"),optional:!0},parameter:{validate:g.assertNodeType("Identifier","AssignmentPattern")},override:{validate:g.assertValueType("boolean"),optional:!0},decorators:{validate:g.arrayOfType("Decorator"),optional:!0}}});z1("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},uQ.functionDeclarationCommon(),dQ())});z1("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},uQ.classMethodOrDeclareMethodCommon(),dQ())});z1("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:g.validateType("TSEntityName"),right:g.validateType("Identifier")}});var jJ=()=>({typeParameters:g.validateOptionalType("TSTypeParameterDeclaration"),["parameters"]:g.validateArrayOfType("ArrayPattern","Identifier","ObjectPattern","RestElement"),["typeAnnotation"]:g.validateOptionalType("TSTypeAnnotation")}),sQ={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:jJ()};z1("TSCallSignatureDeclaration",sQ);z1("TSConstructSignatureDeclaration",sQ);var pQ=()=>({key:g.validateType("Expression"),computed:{default:!1},optional:g.validateOptional(F2)});z1("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},pQ(),{readonly:g.validateOptional(F2),typeAnnotation:g.validateOptionalType("TSTypeAnnotation"),kind:{validate:g.assertOneOf("get","set")}})});z1("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},jJ(),pQ(),{kind:{validate:g.assertOneOf("method","get","set")}})});z1("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:g.validateOptional(F2),static:g.validateOptional(F2),parameters:g.validateArrayOfType("Identifier"),typeAnnotation:g.validateOptionalType("TSTypeAnnotation")}});var $g=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let J of $g)z1(J,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});z1("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var nQ={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};z1("TSFunctionType",Object.assign({},nQ,{fields:jJ()}));z1("TSConstructorType",Object.assign({},nQ,{fields:Object.assign({},jJ(),{abstract:g.validateOptional(F2)})}));z1("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:g.validateType("TSEntityName"),typeParameters:g.validateOptionalType("TSTypeParameterInstantiation")}});z1("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:g.validateType("Identifier","TSThisType"),typeAnnotation:g.validateOptionalType("TSTypeAnnotation"),asserts:g.validateOptional(F2)}});z1("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:g.validateType("TSEntityName","TSImportType"),typeParameters:g.validateOptionalType("TSTypeParameterInstantiation")}});z1("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:g.validateArrayOfType("TSTypeElement")}});z1("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:g.validateType("TSType")}});z1("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:g.validateArrayOfType("TSType","TSNamedTupleMember")}});z1("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:g.validateType("TSType")}});z1("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:g.validateType("TSType")}});z1("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:g.validateType("Identifier"),optional:{validate:F2,default:!1},elementType:g.validateType("TSType")}});var oQ={aliases:["TSType"],visitor:["types"],fields:{types:g.validateArrayOfType("TSType")}};z1("TSUnionType",oQ);z1("TSIntersectionType",oQ);z1("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:g.validateType("TSType"),extendsType:g.validateType("TSType"),trueType:g.validateType("TSType"),falseType:g.validateType("TSType")}});z1("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:g.validateType("TSTypeParameter")}});z1("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:g.validateType("TSType")}});z1("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:g.validate(g.assertValueType("string")),typeAnnotation:g.validateType("TSType")}});z1("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:g.validateType("TSType"),indexType:g.validateType("TSType")}});z1("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:g.validateType("TSTypeParameter")},{readonly:g.validateOptional(g.assertOneOf(!0,!1,"+","-")),optional:g.validateOptional(g.assertOneOf(!0,!1,"+","-")),typeAnnotation:g.validateOptionalType("TSType"),nameType:g.validateOptionalType("TSType")})});z1("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){let J=g.assertNodeType("NumericLiteral","BigIntLiteral"),G=g.assertOneOf("-"),X=g.assertNodeType("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function H(Z,V,Q){if(Wg.default("UnaryExpression",Q))G(Q,"operator",Q.operator),J(Q,"argument",Q.argument);else X(Z,V,Q)}return H.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],H}()}}});var Ug={aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:g.validateType("TSEntityName"),typeParameters:g.validateOptionalType("TSTypeParameterInstantiation")}};z1("TSExpressionWithTypeArguments",Ug);z1("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:g.validateOptional(F2),id:g.validateType("Identifier"),typeParameters:g.validateOptionalType("TSTypeParameterDeclaration"),extends:g.validateOptional(g.arrayOfType("TSExpressionWithTypeArguments")),body:g.validateType("TSInterfaceBody")}});z1("TSInterfaceBody",{visitor:["body"],fields:{body:g.validateArrayOfType("TSTypeElement")}});z1("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:g.validateOptional(F2),id:g.validateType("Identifier"),typeParameters:g.validateOptionalType("TSTypeParameterDeclaration"),typeAnnotation:g.validateType("TSType")}});z1("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:g.validateType("Expression"),typeParameters:g.validateOptionalType("TSTypeParameterInstantiation")}});var eQ={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:g.validateType("Expression"),typeAnnotation:g.validateType("TSType")}};z1("TSAsExpression",eQ);z1("TSSatisfiesExpression",eQ);z1("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:g.validateType("TSType"),expression:g.validateType("Expression")}});z1("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:g.validateOptional(F2),const:g.validateOptional(F2),id:g.validateType("Identifier"),members:g.validateArrayOfType("TSEnumMember"),initializer:g.validateOptionalType("Expression")}});z1("TSEnumMember",{visitor:["id","initializer"],fields:{id:g.validateType("Identifier","StringLiteral"),initializer:g.validateOptionalType("Expression")}});z1("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:g.validateOptional(F2),global:g.validateOptional(F2),id:g.validateType("Identifier","StringLiteral"),body:g.validateType("TSModuleBlock","TSModuleDeclaration")}});z1("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:g.validateArrayOfType("Statement")}});z1("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:g.validateType("StringLiteral"),qualifier:g.validateOptionalType("TSEntityName"),typeParameters:g.validateOptionalType("TSTypeParameterInstantiation"),options:{validate:g.assertNodeType("Expression"),optional:!0}}});z1("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:g.validate(F2),id:g.validateType("Identifier"),moduleReference:g.validateType("TSEntityName","TSExternalModuleReference"),importKind:{validate:g.assertOneOf("type","value"),optional:!0}}});z1("TSExternalModuleReference",{visitor:["expression"],fields:{expression:g.validateType("StringLiteral")}});z1("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:g.validateType("Expression")}});z1("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:g.validateType("Expression")}});z1("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:g.validateType("Identifier")}});z1("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:g.assertNodeType("TSType")}}});z1("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:g.validateArrayOfType("TSType")}});z1("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:g.validateArrayOfType("TSTypeParameter")}});z1("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:g.assertValueType("string")},in:{validate:g.assertValueType("boolean"),optional:!0},out:{validate:g.assertValueType("boolean"),optional:!0},const:{validate:g.assertValueType("boolean"),optional:!0},constraint:{validate:g.assertNodeType("TSType"),optional:!0},default:{validate:g.assertNodeType("TSType"),optional:!0}}})});var XY=S((JY)=>{Object.defineProperty(JY,"__esModule",{value:!0});JY.DEPRECATED_ALIASES=void 0;var sN1=JY.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var N2=S((C2)=>{Object.defineProperty(C2,"__esModule",{value:!0});Object.defineProperty(C2,"ALIAS_KEYS",{enumerable:!0,get:function(){return J2.ALIAS_KEYS}});Object.defineProperty(C2,"BUILDER_KEYS",{enumerable:!0,get:function(){return J2.BUILDER_KEYS}});Object.defineProperty(C2,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return PX.DEPRECATED_ALIASES}});Object.defineProperty(C2,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return J2.DEPRECATED_KEYS}});Object.defineProperty(C2,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return J2.FLIPPED_ALIAS_KEYS}});Object.defineProperty(C2,"NODE_FIELDS",{enumerable:!0,get:function(){return J2.NODE_FIELDS}});Object.defineProperty(C2,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return J2.NODE_PARENT_VALIDATIONS}});Object.defineProperty(C2,"PLACEHOLDERS",{enumerable:!0,get:function(){return D9.PLACEHOLDERS}});Object.defineProperty(C2,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return D9.PLACEHOLDERS_ALIAS}});Object.defineProperty(C2,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return D9.PLACEHOLDERS_FLIPPED_ALIAS}});C2.TYPES=void 0;Object.defineProperty(C2,"VISITOR_KEYS",{enumerable:!0,get:function(){return J2.VISITOR_KEYS}});var w0=HQ();fX();xQ();lQ();aQ();iQ();tQ();var J2=p2(),D9=CX(),PX=XY();Object.keys(PX.DEPRECATED_ALIASES).forEach((J)=>{J2.FLIPPED_ALIAS_KEYS[J]=J2.FLIPPED_ALIAS_KEYS[PX.DEPRECATED_ALIASES[J]]});w0(J2.VISITOR_KEYS);w0(J2.ALIAS_KEYS);w0(J2.FLIPPED_ALIAS_KEYS);w0(J2.NODE_FIELDS);w0(J2.BUILDER_KEYS);w0(J2.DEPRECATED_KEYS);w0(D9.PLACEHOLDERS_ALIAS);w0(D9.PLACEHOLDERS_FLIPPED_ALIAS);var nN1=C2.TYPES=[].concat(Object.keys(J2.VISITOR_KEYS),Object.keys(J2.FLIPPED_ALIAS_KEYS),Object.keys(J2.DEPRECATED_KEYS))});var MJ=S((QY)=>{Object.defineProperty(QY,"__esModule",{value:!0});QY.default=Kg;QY.validateChild=VY;QY.validateField=ZY;QY.validateInternal=Bg;var A9=N2();function Kg(J,G,X){if(!J)return;let H=A9.NODE_FIELDS[J.type];if(!H)return;let Z=H[G];ZY(J,G,X,Z),VY(J,G,X)}function Bg(J,G,X,H,Z){if(!(J!=null&&J.validate))return;if(J.optional&&H==null)return;if(J.validate(G,X,H),Z){var V;let Q=H.type;if(Q==null)return;(V=A9.NODE_PARENT_VALIDATIONS[Q])==null||V.call(A9.NODE_PARENT_VALIDATIONS,G,X,H)}}function ZY(J,G,X,H){if(!(H!=null&&H.validate))return;if(H.optional&&X==null)return;H.validate(J,G,X)}function VY(J,G,X){var H;let Z=X==null?void 0:X.type;if(Z==null)return;(H=A9.NODE_PARENT_VALIDATIONS[Z])==null||H.call(A9.NODE_PARENT_VALIDATIONS,J,G,X)}});var W2=S((UY)=>{Object.defineProperty(UY,"__esModule",{value:!0});UY.anyTypeAnnotation=nb;UY.argumentPlaceholder=Py;UY.arrayExpression=Dg;UY.arrayPattern=Mb;UY.arrayTypeAnnotation=ob;UY.arrowFunctionExpression=qb;UY.assignmentExpression=Ag;UY.assignmentPattern=Rb;UY.awaitExpression=yb;UY.bigIntLiteral=xb;UY.binaryExpression=Ig;UY.bindExpression=wy;UY.blockStatement=wg;UY.booleanLiteral=ug;UY.booleanLiteralTypeAnnotation=tb;UY.booleanTypeAnnotation=eb;UY.breakStatement=Lg;UY.callExpression=Tg;UY.catchClause=Ng;UY.classAccessorProperty=ib;UY.classBody=Fb;UY.classDeclaration=fb;UY.classExpression=jb;UY.classImplements=Gh;UY.classMethod=Eb;UY.classPrivateMethod=db;UY.classPrivateProperty=ub;UY.classProperty=ab;UY.conditionalExpression=kg;UY.continueStatement=Eg;UY.debuggerStatement=Og;UY.decimalLiteral=vy;UY.declareClass=Xh;UY.declareExportAllDeclaration=Uh;UY.declareExportDeclaration=$h;UY.declareFunction=Hh;UY.declareInterface=Zh;UY.declareModule=Vh;UY.declareModuleExports=Qh;UY.declareOpaqueType=zh;UY.declareTypeAlias=Yh;UY.declareVariable=Wh;UY.declaredPredicate=Kh;UY.decorator=Ty;UY.directive=Sg;UY.directiveLiteral=Pg;UY.doExpression=Ny;UY.doWhileStatement=vg;UY.emptyStatement=_g;UY.emptyTypeAnnotation=Ch;UY.enumBooleanBody=oh;UY.enumBooleanMember=Gy;UY.enumDeclaration=nh;UY.enumDefaultedMember=Zy;UY.enumNumberBody=eh;UY.enumNumberMember=Xy;UY.enumStringBody=th;UY.enumStringMember=Hy;UY.enumSymbolBody=Jy;UY.existsTypeAnnotation=Bh;UY.exportAllDeclaration=Db;UY.exportDefaultDeclaration=Ab;UY.exportDefaultSpecifier=ky;UY.exportNamedDeclaration=Ib;UY.exportNamespaceSpecifier=lb;UY.exportSpecifier=Cb;UY.expressionStatement=gg;UY.file=bg;UY.forInStatement=hg;UY.forOfStatement=Sb;UY.forStatement=yg;UY.functionDeclaration=mg;UY.functionExpression=xg;UY.functionTypeAnnotation=Rh;UY.functionTypeParam=Mh;UY.genericTypeAnnotation=qh;UY.identifier=lg;UY.ifStatement=cg;UY.import=mb;UY.importAttribute=Ly;UY.importDeclaration=Pb;UY.importDefaultSpecifier=wb;UY.importExpression=Nb;UY.importNamespaceSpecifier=Lb;UY.importSpecifier=Tb;UY.indexedAccessType=Vy;UY.inferredPredicate=Fh;UY.interfaceDeclaration=fh;UY.interfaceExtends=jh;UY.interfaceTypeAnnotation=Dh;UY.interpreterDirective=Cg;UY.intersectionTypeAnnotation=Ah;UY.jSXAttribute=UY.jsxAttribute=Yy;UY.jSXClosingElement=UY.jsxClosingElement=zy;UY.jSXClosingFragment=UY.jsxClosingFragment=Ay;UY.jSXElement=UY.jsxElement=Wy;UY.jSXEmptyExpression=UY.jsxEmptyExpression=$y;UY.jSXExpressionContainer=UY.jsxExpressionContainer=Uy;UY.jSXFragment=UY.jsxFragment=fy;UY.jSXIdentifier=UY.jsxIdentifier=By;UY.jSXMemberExpression=UY.jsxMemberExpression=Ry;UY.jSXNamespacedName=UY.jsxNamespacedName=My;UY.jSXOpeningElement=UY.jsxOpeningElement=qy;UY.jSXOpeningFragment=UY.jsxOpeningFragment=Dy;UY.jSXSpreadAttribute=UY.jsxSpreadAttribute=Fy;UY.jSXSpreadChild=UY.jsxSpreadChild=Ky;UY.jSXText=UY.jsxText=jy;UY.labeledStatement=rg;UY.logicalExpression=dg;UY.memberExpression=sg;UY.metaProperty=kb;UY.mixedTypeAnnotation=Ih;UY.moduleExpression=_y;UY.newExpression=pg;UY.noop=Iy;UY.nullLiteral=ig;UY.nullLiteralTypeAnnotation=Jh;UY.nullableTypeAnnotation=Sh;UY.numberLiteral=nm;UY.numberLiteralTypeAnnotation=Ph;UY.numberTypeAnnotation=wh;UY.numericLiteral=YY;UY.objectExpression=og;UY.objectMethod=eg;UY.objectPattern=Ob;UY.objectProperty=tg;UY.objectTypeAnnotation=Lh;UY.objectTypeCallProperty=Nh;UY.objectTypeIndexer=kh;UY.objectTypeInternalSlot=Th;UY.objectTypeProperty=Eh;UY.objectTypeSpreadProperty=Oh;UY.opaqueType=vh;UY.optionalCallExpression=rb;UY.optionalIndexedAccessType=Qy;UY.optionalMemberExpression=cb;UY.parenthesizedExpression=Xb;UY.pipelineBareFunction=hy;UY.pipelinePrimaryTopicReference=yy;UY.pipelineTopicExpression=by;UY.placeholder=Cy;UY.privateName=sb;UY.program=ng;UY.qualifiedTypeIdentifier=_h;UY.recordExpression=Ey;UY.regExpLiteral=zY;UY.regexLiteral=om;UY.restElement=WY;UY.restProperty=em;UY.returnStatement=Jb;UY.sequenceExpression=Gb;UY.spreadElement=$Y;UY.spreadProperty=tm;UY.staticBlock=pb;UY.stringLiteral=ag;UY.stringLiteralTypeAnnotation=gh;UY.stringTypeAnnotation=bh;UY.super=vb;UY.switchCase=Hb;UY.switchStatement=Zb;UY.symbolTypeAnnotation=hh;UY.taggedTemplateExpression=_b;UY.templateElement=gb;UY.templateLiteral=bb;UY.thisExpression=Vb;UY.thisTypeAnnotation=yh;UY.throwStatement=Qb;UY.topicReference=gy;UY.tryStatement=Yb;UY.tSAnyKeyword=UY.tsAnyKeyword=sy;UY.tSArrayType=UY.tsArrayType=Rm;UY.tSAsExpression=UY.tsAsExpression=vm;UY.tSBigIntKeyword=UY.tsBigIntKeyword=ny;UY.tSBooleanKeyword=UY.tsBooleanKeyword=py;UY.tSCallSignatureDeclaration=UY.tsCallSignatureDeclaration=ry;UY.tSConditionalType=UY.tsConditionalType=Am;UY.tSConstructSignatureDeclaration=UY.tsConstructSignatureDeclaration=ay;UY.tSConstructorType=UY.tsConstructorType=Wm;UY.tSDeclareFunction=UY.tsDeclareFunction=xy;UY.tSDeclareMethod=UY.tsDeclareMethod=ly;UY.tSEnumDeclaration=UY.tsEnumDeclaration=bm;UY.tSEnumMember=UY.tsEnumMember=hm;UY.tSExportAssignment=UY.tsExportAssignment=am;UY.tSExpressionWithTypeArguments=UY.tsExpressionWithTypeArguments=Tm;UY.tSExternalModuleReference=UY.tsExternalModuleReference=cm;UY.tSFunctionType=UY.tsFunctionType=zm;UY.tSImportEqualsDeclaration=UY.tsImportEqualsDeclaration=lm;UY.tSImportType=UY.tsImportType=xm;UY.tSIndexSignature=UY.tsIndexSignature=dy;UY.tSIndexedAccessType=UY.tsIndexedAccessType=Pm;UY.tSInferType=UY.tsInferType=Im;UY.tSInstantiationExpression=UY.tsInstantiationExpression=Om;UY.tSInterfaceBody=UY.tsInterfaceBody=km;UY.tSInterfaceDeclaration=UY.tsInterfaceDeclaration=Nm;UY.tSIntersectionType=UY.tsIntersectionType=Dm;UY.tSIntrinsicKeyword=UY.tsIntrinsicKeyword=oy;UY.tSLiteralType=UY.tsLiteralType=Lm;UY.tSMappedType=UY.tsMappedType=wm;UY.tSMethodSignature=UY.tsMethodSignature=uy;UY.tSModuleBlock=UY.tsModuleBlock=mm;UY.tSModuleDeclaration=UY.tsModuleDeclaration=ym;UY.tSNamedTupleMember=UY.tsNamedTupleMember=jm;UY.tSNamespaceExportDeclaration=UY.tsNamespaceExportDeclaration=im;UY.tSNeverKeyword=UY.tsNeverKeyword=ey;UY.tSNonNullExpression=UY.tsNonNullExpression=rm;UY.tSNullKeyword=UY.tsNullKeyword=ty;UY.tSNumberKeyword=UY.tsNumberKeyword=Jm;UY.tSObjectKeyword=UY.tsObjectKeyword=Gm;UY.tSOptionalType=UY.tsOptionalType=qm;UY.tSParameterProperty=UY.tsParameterProperty=my;UY.tSParenthesizedType=UY.tsParenthesizedType=Cm;UY.tSPropertySignature=UY.tsPropertySignature=iy;UY.tSQualifiedName=UY.tsQualifiedName=cy;UY.tSRestType=UY.tsRestType=Fm;UY.tSSatisfiesExpression=UY.tsSatisfiesExpression=_m;UY.tSStringKeyword=UY.tsStringKeyword=Xm;UY.tSSymbolKeyword=UY.tsSymbolKeyword=Hm;UY.tSThisType=UY.tsThisType=Ym;UY.tSTupleType=UY.tsTupleType=Mm;UY.tSTypeAliasDeclaration=UY.tsTypeAliasDeclaration=Em;UY.tSTypeAnnotation=UY.tsTypeAnnotation=um;UY.tSTypeAssertion=UY.tsTypeAssertion=gm;UY.tSTypeLiteral=UY.tsTypeLiteral=Bm;UY.tSTypeOperator=UY.tsTypeOperator=Sm;UY.tSTypeParameter=UY.tsTypeParameter=pm;UY.tSTypeParameterDeclaration=UY.tsTypeParameterDeclaration=sm;UY.tSTypeParameterInstantiation=UY.tsTypeParameterInstantiation=dm;UY.tSTypePredicate=UY.tsTypePredicate=Um;UY.tSTypeQuery=UY.tsTypeQuery=Km;UY.tSTypeReference=UY.tsTypeReference=$m;UY.tSUndefinedKeyword=UY.tsUndefinedKeyword=Zm;UY.tSUnionType=UY.tsUnionType=fm;UY.tSUnknownKeyword=UY.tsUnknownKeyword=Vm;UY.tSVoidKeyword=UY.tsVoidKeyword=Qm;UY.tupleExpression=Oy;UY.tupleTypeAnnotation=mh;UY.typeAlias=lh;UY.typeAnnotation=ch;UY.typeCastExpression=rh;UY.typeParameter=ah;UY.typeParameterDeclaration=ih;UY.typeParameterInstantiation=uh;UY.typeofTypeAnnotation=xh;UY.unaryExpression=zb;UY.unionTypeAnnotation=dh;UY.updateExpression=Wb;UY.v8IntrinsicIdentifier=Sy;UY.variableDeclaration=$b;UY.variableDeclarator=Ub;UY.variance=sh;UY.voidTypeAnnotation=ph;UY.whileStatement=Kb;UY.withStatement=Bb;UY.yieldExpression=hb;var jg=MJ(),fJ=K9(),fg=p2(),{validateInternal:U}=jg,{NODE_FIELDS:A}=fg;function Dg(J=[]){let G={type:"ArrayExpression",elements:J},X=A.ArrayExpression;return U(X.elements,G,"elements",J,1),G}function Ag(J,G,X){let H={type:"AssignmentExpression",operator:J,left:G,right:X},Z=A.AssignmentExpression;return U(Z.operator,H,"operator",J),U(Z.left,H,"left",G,1),U(Z.right,H,"right",X,1),H}function Ig(J,G,X){let H={type:"BinaryExpression",operator:J,left:G,right:X},Z=A.BinaryExpression;return U(Z.operator,H,"operator",J),U(Z.left,H,"left",G,1),U(Z.right,H,"right",X,1),H}function Cg(J){let G={type:"InterpreterDirective",value:J},X=A.InterpreterDirective;return U(X.value,G,"value",J),G}function Sg(J){let G={type:"Directive",value:J},X=A.Directive;return U(X.value,G,"value",J,1),G}function Pg(J){let G={type:"DirectiveLiteral",value:J},X=A.DirectiveLiteral;return U(X.value,G,"value",J),G}function wg(J,G=[]){let X={type:"BlockStatement",body:J,directives:G},H=A.BlockStatement;return U(H.body,X,"body",J,1),U(H.directives,X,"directives",G,1),X}function Lg(J=null){let G={type:"BreakStatement",label:J},X=A.BreakStatement;return U(X.label,G,"label",J,1),G}function Tg(J,G){let X={type:"CallExpression",callee:J,arguments:G},H=A.CallExpression;return U(H.callee,X,"callee",J,1),U(H.arguments,X,"arguments",G,1),X}function Ng(J=null,G){let X={type:"CatchClause",param:J,body:G},H=A.CatchClause;return U(H.param,X,"param",J,1),U(H.body,X,"body",G,1),X}function kg(J,G,X){let H={type:"ConditionalExpression",test:J,consequent:G,alternate:X},Z=A.ConditionalExpression;return U(Z.test,H,"test",J,1),U(Z.consequent,H,"consequent",G,1),U(Z.alternate,H,"alternate",X,1),H}function Eg(J=null){let G={type:"ContinueStatement",label:J},X=A.ContinueStatement;return U(X.label,G,"label",J,1),G}function Og(){return{type:"DebuggerStatement"}}function vg(J,G){let X={type:"DoWhileStatement",test:J,body:G},H=A.DoWhileStatement;return U(H.test,X,"test",J,1),U(H.body,X,"body",G,1),X}function _g(){return{type:"EmptyStatement"}}function gg(J){let G={type:"ExpressionStatement",expression:J},X=A.ExpressionStatement;return U(X.expression,G,"expression",J,1),G}function bg(J,G=null,X=null){let H={type:"File",program:J,comments:G,tokens:X},Z=A.File;return U(Z.program,H,"program",J,1),U(Z.comments,H,"comments",G,1),U(Z.tokens,H,"tokens",X),H}function hg(J,G,X){let H={type:"ForInStatement",left:J,right:G,body:X},Z=A.ForInStatement;return U(Z.left,H,"left",J,1),U(Z.right,H,"right",G,1),U(Z.body,H,"body",X,1),H}function yg(J=null,G=null,X=null,H){let Z={type:"ForStatement",init:J,test:G,update:X,body:H},V=A.ForStatement;return U(V.init,Z,"init",J,1),U(V.test,Z,"test",G,1),U(V.update,Z,"update",X,1),U(V.body,Z,"body",H,1),Z}function mg(J=null,G,X,H=!1,Z=!1){let V={type:"FunctionDeclaration",id:J,params:G,body:X,generator:H,async:Z},Q=A.FunctionDeclaration;return U(Q.id,V,"id",J,1),U(Q.params,V,"params",G,1),U(Q.body,V,"body",X,1),U(Q.generator,V,"generator",H),U(Q.async,V,"async",Z),V}function xg(J=null,G,X,H=!1,Z=!1){let V={type:"FunctionExpression",id:J,params:G,body:X,generator:H,async:Z},Q=A.FunctionExpression;return U(Q.id,V,"id",J,1),U(Q.params,V,"params",G,1),U(Q.body,V,"body",X,1),U(Q.generator,V,"generator",H),U(Q.async,V,"async",Z),V}function lg(J){let G={type:"Identifier",name:J},X=A.Identifier;return U(X.name,G,"name",J),G}function cg(J,G,X=null){let H={type:"IfStatement",test:J,consequent:G,alternate:X},Z=A.IfStatement;return U(Z.test,H,"test",J,1),U(Z.consequent,H,"consequent",G,1),U(Z.alternate,H,"alternate",X,1),H}function rg(J,G){let X={type:"LabeledStatement",label:J,body:G},H=A.LabeledStatement;return U(H.label,X,"label",J,1),U(H.body,X,"body",G,1),X}function ag(J){let G={type:"StringLiteral",value:J},X=A.StringLiteral;return U(X.value,G,"value",J),G}function YY(J){let G={type:"NumericLiteral",value:J},X=A.NumericLiteral;return U(X.value,G,"value",J),G}function ig(){return{type:"NullLiteral"}}function ug(J){let G={type:"BooleanLiteral",value:J},X=A.BooleanLiteral;return U(X.value,G,"value",J),G}function zY(J,G=""){let X={type:"RegExpLiteral",pattern:J,flags:G},H=A.RegExpLiteral;return U(H.pattern,X,"pattern",J),U(H.flags,X,"flags",G),X}function dg(J,G,X){let H={type:"LogicalExpression",operator:J,left:G,right:X},Z=A.LogicalExpression;return U(Z.operator,H,"operator",J),U(Z.left,H,"left",G,1),U(Z.right,H,"right",X,1),H}function sg(J,G,X=!1,H=null){let Z={type:"MemberExpression",object:J,property:G,computed:X,optional:H},V=A.MemberExpression;return U(V.object,Z,"object",J,1),U(V.property,Z,"property",G,1),U(V.computed,Z,"computed",X),U(V.optional,Z,"optional",H),Z}function pg(J,G){let X={type:"NewExpression",callee:J,arguments:G},H=A.NewExpression;return U(H.callee,X,"callee",J,1),U(H.arguments,X,"arguments",G,1),X}function ng(J,G=[],X="script",H=null){let Z={type:"Program",body:J,directives:G,sourceType:X,interpreter:H},V=A.Program;return U(V.body,Z,"body",J,1),U(V.directives,Z,"directives",G,1),U(V.sourceType,Z,"sourceType",X),U(V.interpreter,Z,"interpreter",H,1),Z}function og(J){let G={type:"ObjectExpression",properties:J},X=A.ObjectExpression;return U(X.properties,G,"properties",J,1),G}function eg(J="method",G,X,H,Z=!1,V=!1,Q=!1){let Y={type:"ObjectMethod",kind:J,key:G,params:X,body:H,computed:Z,generator:V,async:Q},z=A.ObjectMethod;return U(z.kind,Y,"kind",J),U(z.key,Y,"key",G,1),U(z.params,Y,"params",X,1),U(z.body,Y,"body",H,1),U(z.computed,Y,"computed",Z),U(z.generator,Y,"generator",V),U(z.async,Y,"async",Q),Y}function tg(J,G,X=!1,H=!1,Z=null){let V={type:"ObjectProperty",key:J,value:G,computed:X,shorthand:H,decorators:Z},Q=A.ObjectProperty;return U(Q.key,V,"key",J,1),U(Q.value,V,"value",G,1),U(Q.computed,V,"computed",X),U(Q.shorthand,V,"shorthand",H),U(Q.decorators,V,"decorators",Z,1),V}function WY(J){let G={type:"RestElement",argument:J},X=A.RestElement;return U(X.argument,G,"argument",J,1),G}function Jb(J=null){let G={type:"ReturnStatement",argument:J},X=A.ReturnStatement;return U(X.argument,G,"argument",J,1),G}function Gb(J){let G={type:"SequenceExpression",expressions:J},X=A.SequenceExpression;return U(X.expressions,G,"expressions",J,1),G}function Xb(J){let G={type:"ParenthesizedExpression",expression:J},X=A.ParenthesizedExpression;return U(X.expression,G,"expression",J,1),G}function Hb(J=null,G){let X={type:"SwitchCase",test:J,consequent:G},H=A.SwitchCase;return U(H.test,X,"test",J,1),U(H.consequent,X,"consequent",G,1),X}function Zb(J,G){let X={type:"SwitchStatement",discriminant:J,cases:G},H=A.SwitchStatement;return U(H.discriminant,X,"discriminant",J,1),U(H.cases,X,"cases",G,1),X}function Vb(){return{type:"ThisExpression"}}function Qb(J){let G={type:"ThrowStatement",argument:J},X=A.ThrowStatement;return U(X.argument,G,"argument",J,1),G}function Yb(J,G=null,X=null){let H={type:"TryStatement",block:J,handler:G,finalizer:X},Z=A.TryStatement;return U(Z.block,H,"block",J,1),U(Z.handler,H,"handler",G,1),U(Z.finalizer,H,"finalizer",X,1),H}function zb(J,G,X=!0){let H={type:"UnaryExpression",operator:J,argument:G,prefix:X},Z=A.UnaryExpression;return U(Z.operator,H,"operator",J),U(Z.argument,H,"argument",G,1),U(Z.prefix,H,"prefix",X),H}function Wb(J,G,X=!1){let H={type:"UpdateExpression",operator:J,argument:G,prefix:X},Z=A.UpdateExpression;return U(Z.operator,H,"operator",J),U(Z.argument,H,"argument",G,1),U(Z.prefix,H,"prefix",X),H}function $b(J,G){let X={type:"VariableDeclaration",kind:J,declarations:G},H=A.VariableDeclaration;return U(H.kind,X,"kind",J),U(H.declarations,X,"declarations",G,1),X}function Ub(J,G=null){let X={type:"VariableDeclarator",id:J,init:G},H=A.VariableDeclarator;return U(H.id,X,"id",J,1),U(H.init,X,"init",G,1),X}function Kb(J,G){let X={type:"WhileStatement",test:J,body:G},H=A.WhileStatement;return U(H.test,X,"test",J,1),U(H.body,X,"body",G,1),X}function Bb(J,G){let X={type:"WithStatement",object:J,body:G},H=A.WithStatement;return U(H.object,X,"object",J,1),U(H.body,X,"body",G,1),X}function Rb(J,G){let X={type:"AssignmentPattern",left:J,right:G},H=A.AssignmentPattern;return U(H.left,X,"left",J,1),U(H.right,X,"right",G,1),X}function Mb(J){let G={type:"ArrayPattern",elements:J},X=A.ArrayPattern;return U(X.elements,G,"elements",J,1),G}function qb(J,G,X=!1){let H={type:"ArrowFunctionExpression",params:J,body:G,async:X,expression:null},Z=A.ArrowFunctionExpression;return U(Z.params,H,"params",J,1),U(Z.body,H,"body",G,1),U(Z.async,H,"async",X),H}function Fb(J){let G={type:"ClassBody",body:J},X=A.ClassBody;return U(X.body,G,"body",J,1),G}function jb(J=null,G=null,X,H=null){let Z={type:"ClassExpression",id:J,superClass:G,body:X,decorators:H},V=A.ClassExpression;return U(V.id,Z,"id",J,1),U(V.superClass,Z,"superClass",G,1),U(V.body,Z,"body",X,1),U(V.decorators,Z,"decorators",H,1),Z}function fb(J=null,G=null,X,H=null){let Z={type:"ClassDeclaration",id:J,superClass:G,body:X,decorators:H},V=A.ClassDeclaration;return U(V.id,Z,"id",J,1),U(V.superClass,Z,"superClass",G,1),U(V.body,Z,"body",X,1),U(V.decorators,Z,"decorators",H,1),Z}function Db(J){let G={type:"ExportAllDeclaration",source:J},X=A.ExportAllDeclaration;return U(X.source,G,"source",J,1),G}function Ab(J){let G={type:"ExportDefaultDeclaration",declaration:J},X=A.ExportDefaultDeclaration;return U(X.declaration,G,"declaration",J,1),G}function Ib(J=null,G=[],X=null){let H={type:"ExportNamedDeclaration",declaration:J,specifiers:G,source:X},Z=A.ExportNamedDeclaration;return U(Z.declaration,H,"declaration",J,1),U(Z.specifiers,H,"specifiers",G,1),U(Z.source,H,"source",X,1),H}function Cb(J,G){let X={type:"ExportSpecifier",local:J,exported:G},H=A.ExportSpecifier;return U(H.local,X,"local",J,1),U(H.exported,X,"exported",G,1),X}function Sb(J,G,X,H=!1){let Z={type:"ForOfStatement",left:J,right:G,body:X,await:H},V=A.ForOfStatement;return U(V.left,Z,"left",J,1),U(V.right,Z,"right",G,1),U(V.body,Z,"body",X,1),U(V.await,Z,"await",H),Z}function Pb(J,G){let X={type:"ImportDeclaration",specifiers:J,source:G},H=A.ImportDeclaration;return U(H.specifiers,X,"specifiers",J,1),U(H.source,X,"source",G,1),X}function wb(J){let G={type:"ImportDefaultSpecifier",local:J},X=A.ImportDefaultSpecifier;return U(X.local,G,"local",J,1),G}function Lb(J){let G={type:"ImportNamespaceSpecifier",local:J},X=A.ImportNamespaceSpecifier;return U(X.local,G,"local",J,1),G}function Tb(J,G){let X={type:"ImportSpecifier",local:J,imported:G},H=A.ImportSpecifier;return U(H.local,X,"local",J,1),U(H.imported,X,"imported",G,1),X}function Nb(J,G=null){let X={type:"ImportExpression",source:J,options:G},H=A.ImportExpression;return U(H.source,X,"source",J,1),U(H.options,X,"options",G,1),X}function kb(J,G){let X={type:"MetaProperty",meta:J,property:G},H=A.MetaProperty;return U(H.meta,X,"meta",J,1),U(H.property,X,"property",G,1),X}function Eb(J="method",G,X,H,Z=!1,V=!1,Q=!1,Y=!1){let z={type:"ClassMethod",kind:J,key:G,params:X,body:H,computed:Z,static:V,generator:Q,async:Y},W=A.ClassMethod;return U(W.kind,z,"kind",J),U(W.key,z,"key",G,1),U(W.params,z,"params",X,1),U(W.body,z,"body",H,1),U(W.computed,z,"computed",Z),U(W.static,z,"static",V),U(W.generator,z,"generator",Q),U(W.async,z,"async",Y),z}function Ob(J){let G={type:"ObjectPattern",properties:J},X=A.ObjectPattern;return U(X.properties,G,"properties",J,1),G}function $Y(J){let G={type:"SpreadElement",argument:J},X=A.SpreadElement;return U(X.argument,G,"argument",J,1),G}function vb(){return{type:"Super"}}function _b(J,G){let X={type:"TaggedTemplateExpression",tag:J,quasi:G},H=A.TaggedTemplateExpression;return U(H.tag,X,"tag",J,1),U(H.quasi,X,"quasi",G,1),X}function gb(J,G=!1){let X={type:"TemplateElement",value:J,tail:G},H=A.TemplateElement;return U(H.value,X,"value",J),U(H.tail,X,"tail",G),X}function bb(J,G){let X={type:"TemplateLiteral",quasis:J,expressions:G},H=A.TemplateLiteral;return U(H.quasis,X,"quasis",J,1),U(H.expressions,X,"expressions",G,1),X}function hb(J=null,G=!1){let X={type:"YieldExpression",argument:J,delegate:G},H=A.YieldExpression;return U(H.argument,X,"argument",J,1),U(H.delegate,X,"delegate",G),X}function yb(J){let G={type:"AwaitExpression",argument:J},X=A.AwaitExpression;return U(X.argument,G,"argument",J,1),G}function mb(){return{type:"Import"}}function xb(J){let G={type:"BigIntLiteral",value:J},X=A.BigIntLiteral;return U(X.value,G,"value",J),G}function lb(J){let G={type:"ExportNamespaceSpecifier",exported:J},X=A.ExportNamespaceSpecifier;return U(X.exported,G,"exported",J,1),G}function cb(J,G,X=!1,H){let Z={type:"OptionalMemberExpression",object:J,property:G,computed:X,optional:H},V=A.OptionalMemberExpression;return U(V.object,Z,"object",J,1),U(V.property,Z,"property",G,1),U(V.computed,Z,"computed",X),U(V.optional,Z,"optional",H),Z}function rb(J,G,X){let H={type:"OptionalCallExpression",callee:J,arguments:G,optional:X},Z=A.OptionalCallExpression;return U(Z.callee,H,"callee",J,1),U(Z.arguments,H,"arguments",G,1),U(Z.optional,H,"optional",X),H}function ab(J,G=null,X=null,H=null,Z=!1,V=!1){let Q={type:"ClassProperty",key:J,value:G,typeAnnotation:X,decorators:H,computed:Z,static:V},Y=A.ClassProperty;return U(Y.key,Q,"key",J,1),U(Y.value,Q,"value",G,1),U(Y.typeAnnotation,Q,"typeAnnotation",X,1),U(Y.decorators,Q,"decorators",H,1),U(Y.computed,Q,"computed",Z),U(Y.static,Q,"static",V),Q}function ib(J,G=null,X=null,H=null,Z=!1,V=!1){let Q={type:"ClassAccessorProperty",key:J,value:G,typeAnnotation:X,decorators:H,computed:Z,static:V},Y=A.ClassAccessorProperty;return U(Y.key,Q,"key",J,1),U(Y.value,Q,"value",G,1),U(Y.typeAnnotation,Q,"typeAnnotation",X,1),U(Y.decorators,Q,"decorators",H,1),U(Y.computed,Q,"computed",Z),U(Y.static,Q,"static",V),Q}function ub(J,G=null,X=null,H=!1){let Z={type:"ClassPrivateProperty",key:J,value:G,decorators:X,static:H},V=A.ClassPrivateProperty;return U(V.key,Z,"key",J,1),U(V.value,Z,"value",G,1),U(V.decorators,Z,"decorators",X,1),U(V.static,Z,"static",H),Z}function db(J="method",G,X,H,Z=!1){let V={type:"ClassPrivateMethod",kind:J,key:G,params:X,body:H,static:Z},Q=A.ClassPrivateMethod;return U(Q.kind,V,"kind",J),U(Q.key,V,"key",G,1),U(Q.params,V,"params",X,1),U(Q.body,V,"body",H,1),U(Q.static,V,"static",Z),V}function sb(J){let G={type:"PrivateName",id:J},X=A.PrivateName;return U(X.id,G,"id",J,1),G}function pb(J){let G={type:"StaticBlock",body:J},X=A.StaticBlock;return U(X.body,G,"body",J,1),G}function nb(){return{type:"AnyTypeAnnotation"}}function ob(J){let G={type:"ArrayTypeAnnotation",elementType:J},X=A.ArrayTypeAnnotation;return U(X.elementType,G,"elementType",J,1),G}function eb(){return{type:"BooleanTypeAnnotation"}}function tb(J){let G={type:"BooleanLiteralTypeAnnotation",value:J},X=A.BooleanLiteralTypeAnnotation;return U(X.value,G,"value",J),G}function Jh(){return{type:"NullLiteralTypeAnnotation"}}function Gh(J,G=null){let X={type:"ClassImplements",id:J,typeParameters:G},H=A.ClassImplements;return U(H.id,X,"id",J,1),U(H.typeParameters,X,"typeParameters",G,1),X}function Xh(J,G=null,X=null,H){let Z={type:"DeclareClass",id:J,typeParameters:G,extends:X,body:H},V=A.DeclareClass;return U(V.id,Z,"id",J,1),U(V.typeParameters,Z,"typeParameters",G,1),U(V.extends,Z,"extends",X,1),U(V.body,Z,"body",H,1),Z}function Hh(J){let G={type:"DeclareFunction",id:J},X=A.DeclareFunction;return U(X.id,G,"id",J,1),G}function Zh(J,G=null,X=null,H){let Z={type:"DeclareInterface",id:J,typeParameters:G,extends:X,body:H},V=A.DeclareInterface;return U(V.id,Z,"id",J,1),U(V.typeParameters,Z,"typeParameters",G,1),U(V.extends,Z,"extends",X,1),U(V.body,Z,"body",H,1),Z}function Vh(J,G,X=null){let H={type:"DeclareModule",id:J,body:G,kind:X},Z=A.DeclareModule;return U(Z.id,H,"id",J,1),U(Z.body,H,"body",G,1),U(Z.kind,H,"kind",X),H}function Qh(J){let G={type:"DeclareModuleExports",typeAnnotation:J},X=A.DeclareModuleExports;return U(X.typeAnnotation,G,"typeAnnotation",J,1),G}function Yh(J,G=null,X){let H={type:"DeclareTypeAlias",id:J,typeParameters:G,right:X},Z=A.DeclareTypeAlias;return U(Z.id,H,"id",J,1),U(Z.typeParameters,H,"typeParameters",G,1),U(Z.right,H,"right",X,1),H}function zh(J,G=null,X=null){let H={type:"DeclareOpaqueType",id:J,typeParameters:G,supertype:X},Z=A.DeclareOpaqueType;return U(Z.id,H,"id",J,1),U(Z.typeParameters,H,"typeParameters",G,1),U(Z.supertype,H,"supertype",X,1),H}function Wh(J){let G={type:"DeclareVariable",id:J},X=A.DeclareVariable;return U(X.id,G,"id",J,1),G}function $h(J=null,G=null,X=null){let H={type:"DeclareExportDeclaration",declaration:J,specifiers:G,source:X},Z=A.DeclareExportDeclaration;return U(Z.declaration,H,"declaration",J,1),U(Z.specifiers,H,"specifiers",G,1),U(Z.source,H,"source",X,1),H}function Uh(J){let G={type:"DeclareExportAllDeclaration",source:J},X=A.DeclareExportAllDeclaration;return U(X.source,G,"source",J,1),G}function Kh(J){let G={type:"DeclaredPredicate",value:J},X=A.DeclaredPredicate;return U(X.value,G,"value",J,1),G}function Bh(){return{type:"ExistsTypeAnnotation"}}function Rh(J=null,G,X=null,H){let Z={type:"FunctionTypeAnnotation",typeParameters:J,params:G,rest:X,returnType:H},V=A.FunctionTypeAnnotation;return U(V.typeParameters,Z,"typeParameters",J,1),U(V.params,Z,"params",G,1),U(V.rest,Z,"rest",X,1),U(V.returnType,Z,"returnType",H,1),Z}function Mh(J=null,G){let X={type:"FunctionTypeParam",name:J,typeAnnotation:G},H=A.FunctionTypeParam;return U(H.name,X,"name",J,1),U(H.typeAnnotation,X,"typeAnnotation",G,1),X}function qh(J,G=null){let X={type:"GenericTypeAnnotation",id:J,typeParameters:G},H=A.GenericTypeAnnotation;return U(H.id,X,"id",J,1),U(H.typeParameters,X,"typeParameters",G,1),X}function Fh(){return{type:"InferredPredicate"}}function jh(J,G=null){let X={type:"InterfaceExtends",id:J,typeParameters:G},H=A.InterfaceExtends;return U(H.id,X,"id",J,1),U(H.typeParameters,X,"typeParameters",G,1),X}function fh(J,G=null,X=null,H){let Z={type:"InterfaceDeclaration",id:J,typeParameters:G,extends:X,body:H},V=A.InterfaceDeclaration;return U(V.id,Z,"id",J,1),U(V.typeParameters,Z,"typeParameters",G,1),U(V.extends,Z,"extends",X,1),U(V.body,Z,"body",H,1),Z}function Dh(J=null,G){let X={type:"InterfaceTypeAnnotation",extends:J,body:G},H=A.InterfaceTypeAnnotation;return U(H.extends,X,"extends",J,1),U(H.body,X,"body",G,1),X}function Ah(J){let G={type:"IntersectionTypeAnnotation",types:J},X=A.IntersectionTypeAnnotation;return U(X.types,G,"types",J,1),G}function Ih(){return{type:"MixedTypeAnnotation"}}function Ch(){return{type:"EmptyTypeAnnotation"}}function Sh(J){let G={type:"NullableTypeAnnotation",typeAnnotation:J},X=A.NullableTypeAnnotation;return U(X.typeAnnotation,G,"typeAnnotation",J,1),G}function Ph(J){let G={type:"NumberLiteralTypeAnnotation",value:J},X=A.NumberLiteralTypeAnnotation;return U(X.value,G,"value",J),G}function wh(){return{type:"NumberTypeAnnotation"}}function Lh(J,G=[],X=[],H=[],Z=!1){let V={type:"ObjectTypeAnnotation",properties:J,indexers:G,callProperties:X,internalSlots:H,exact:Z},Q=A.ObjectTypeAnnotation;return U(Q.properties,V,"properties",J,1),U(Q.indexers,V,"indexers",G,1),U(Q.callProperties,V,"callProperties",X,1),U(Q.internalSlots,V,"internalSlots",H,1),U(Q.exact,V,"exact",Z),V}function Th(J,G,X,H,Z){let V={type:"ObjectTypeInternalSlot",id:J,value:G,optional:X,static:H,method:Z},Q=A.ObjectTypeInternalSlot;return U(Q.id,V,"id",J,1),U(Q.value,V,"value",G,1),U(Q.optional,V,"optional",X),U(Q.static,V,"static",H),U(Q.method,V,"method",Z),V}function Nh(J){let G={type:"ObjectTypeCallProperty",value:J,static:null},X=A.ObjectTypeCallProperty;return U(X.value,G,"value",J,1),G}function kh(J=null,G,X,H=null){let Z={type:"ObjectTypeIndexer",id:J,key:G,value:X,variance:H,static:null},V=A.ObjectTypeIndexer;return U(V.id,Z,"id",J,1),U(V.key,Z,"key",G,1),U(V.value,Z,"value",X,1),U(V.variance,Z,"variance",H,1),Z}function Eh(J,G,X=null){let H={type:"ObjectTypeProperty",key:J,value:G,variance:X,kind:null,method:null,optional:null,proto:null,static:null},Z=A.ObjectTypeProperty;return U(Z.key,H,"key",J,1),U(Z.value,H,"value",G,1),U(Z.variance,H,"variance",X,1),H}function Oh(J){let G={type:"ObjectTypeSpreadProperty",argument:J},X=A.ObjectTypeSpreadProperty;return U(X.argument,G,"argument",J,1),G}function vh(J,G=null,X=null,H){let Z={type:"OpaqueType",id:J,typeParameters:G,supertype:X,impltype:H},V=A.OpaqueType;return U(V.id,Z,"id",J,1),U(V.typeParameters,Z,"typeParameters",G,1),U(V.supertype,Z,"supertype",X,1),U(V.impltype,Z,"impltype",H,1),Z}function _h(J,G){let X={type:"QualifiedTypeIdentifier",id:J,qualification:G},H=A.QualifiedTypeIdentifier;return U(H.id,X,"id",J,1),U(H.qualification,X,"qualification",G,1),X}function gh(J){let G={type:"StringLiteralTypeAnnotation",value:J},X=A.StringLiteralTypeAnnotation;return U(X.value,G,"value",J),G}function bh(){return{type:"StringTypeAnnotation"}}function hh(){return{type:"SymbolTypeAnnotation"}}function yh(){return{type:"ThisTypeAnnotation"}}function mh(J){let G={type:"TupleTypeAnnotation",types:J},X=A.TupleTypeAnnotation;return U(X.types,G,"types",J,1),G}function xh(J){let G={type:"TypeofTypeAnnotation",argument:J},X=A.TypeofTypeAnnotation;return U(X.argument,G,"argument",J,1),G}function lh(J,G=null,X){let H={type:"TypeAlias",id:J,typeParameters:G,right:X},Z=A.TypeAlias;return U(Z.id,H,"id",J,1),U(Z.typeParameters,H,"typeParameters",G,1),U(Z.right,H,"right",X,1),H}function ch(J){let G={type:"TypeAnnotation",typeAnnotation:J},X=A.TypeAnnotation;return U(X.typeAnnotation,G,"typeAnnotation",J,1),G}function rh(J,G){let X={type:"TypeCastExpression",expression:J,typeAnnotation:G},H=A.TypeCastExpression;return U(H.expression,X,"expression",J,1),U(H.typeAnnotation,X,"typeAnnotation",G,1),X}function ah(J=null,G=null,X=null){let H={type:"TypeParameter",bound:J,default:G,variance:X,name:null},Z=A.TypeParameter;return U(Z.bound,H,"bound",J,1),U(Z.default,H,"default",G,1),U(Z.variance,H,"variance",X,1),H}function ih(J){let G={type:"TypeParameterDeclaration",params:J},X=A.TypeParameterDeclaration;return U(X.params,G,"params",J,1),G}function uh(J){let G={type:"TypeParameterInstantiation",params:J},X=A.TypeParameterInstantiation;return U(X.params,G,"params",J,1),G}function dh(J){let G={type:"UnionTypeAnnotation",types:J},X=A.UnionTypeAnnotation;return U(X.types,G,"types",J,1),G}function sh(J){let G={type:"Variance",kind:J},X=A.Variance;return U(X.kind,G,"kind",J),G}function ph(){return{type:"VoidTypeAnnotation"}}function nh(J,G){let X={type:"EnumDeclaration",id:J,body:G},H=A.EnumDeclaration;return U(H.id,X,"id",J,1),U(H.body,X,"body",G,1),X}function oh(J){let G={type:"EnumBooleanBody",members:J,explicitType:null,hasUnknownMembers:null},X=A.EnumBooleanBody;return U(X.members,G,"members",J,1),G}function eh(J){let G={type:"EnumNumberBody",members:J,explicitType:null,hasUnknownMembers:null},X=A.EnumNumberBody;return U(X.members,G,"members",J,1),G}function th(J){let G={type:"EnumStringBody",members:J,explicitType:null,hasUnknownMembers:null},X=A.EnumStringBody;return U(X.members,G,"members",J,1),G}function Jy(J){let G={type:"EnumSymbolBody",members:J,hasUnknownMembers:null},X=A.EnumSymbolBody;return U(X.members,G,"members",J,1),G}function Gy(J){let G={type:"EnumBooleanMember",id:J,init:null},X=A.EnumBooleanMember;return U(X.id,G,"id",J,1),G}function Xy(J,G){let X={type:"EnumNumberMember",id:J,init:G},H=A.EnumNumberMember;return U(H.id,X,"id",J,1),U(H.init,X,"init",G,1),X}function Hy(J,G){let X={type:"EnumStringMember",id:J,init:G},H=A.EnumStringMember;return U(H.id,X,"id",J,1),U(H.init,X,"init",G,1),X}function Zy(J){let G={type:"EnumDefaultedMember",id:J},X=A.EnumDefaultedMember;return U(X.id,G,"id",J,1),G}function Vy(J,G){let X={type:"IndexedAccessType",objectType:J,indexType:G},H=A.IndexedAccessType;return U(H.objectType,X,"objectType",J,1),U(H.indexType,X,"indexType",G,1),X}function Qy(J,G){let X={type:"OptionalIndexedAccessType",objectType:J,indexType:G,optional:null},H=A.OptionalIndexedAccessType;return U(H.objectType,X,"objectType",J,1),U(H.indexType,X,"indexType",G,1),X}function Yy(J,G=null){let X={type:"JSXAttribute",name:J,value:G},H=A.JSXAttribute;return U(H.name,X,"name",J,1),U(H.value,X,"value",G,1),X}function zy(J){let G={type:"JSXClosingElement",name:J},X=A.JSXClosingElement;return U(X.name,G,"name",J,1),G}function Wy(J,G=null,X,H=null){let Z={type:"JSXElement",openingElement:J,closingElement:G,children:X,selfClosing:H},V=A.JSXElement;return U(V.openingElement,Z,"openingElement",J,1),U(V.closingElement,Z,"closingElement",G,1),U(V.children,Z,"children",X,1),U(V.selfClosing,Z,"selfClosing",H),Z}function $y(){return{type:"JSXEmptyExpression"}}function Uy(J){let G={type:"JSXExpressionContainer",expression:J},X=A.JSXExpressionContainer;return U(X.expression,G,"expression",J,1),G}function Ky(J){let G={type:"JSXSpreadChild",expression:J},X=A.JSXSpreadChild;return U(X.expression,G,"expression",J,1),G}function By(J){let G={type:"JSXIdentifier",name:J},X=A.JSXIdentifier;return U(X.name,G,"name",J),G}function Ry(J,G){let X={type:"JSXMemberExpression",object:J,property:G},H=A.JSXMemberExpression;return U(H.object,X,"object",J,1),U(H.property,X,"property",G,1),X}function My(J,G){let X={type:"JSXNamespacedName",namespace:J,name:G},H=A.JSXNamespacedName;return U(H.namespace,X,"namespace",J,1),U(H.name,X,"name",G,1),X}function qy(J,G,X=!1){let H={type:"JSXOpeningElement",name:J,attributes:G,selfClosing:X},Z=A.JSXOpeningElement;return U(Z.name,H,"name",J,1),U(Z.attributes,H,"attributes",G,1),U(Z.selfClosing,H,"selfClosing",X),H}function Fy(J){let G={type:"JSXSpreadAttribute",argument:J},X=A.JSXSpreadAttribute;return U(X.argument,G,"argument",J,1),G}function jy(J){let G={type:"JSXText",value:J},X=A.JSXText;return U(X.value,G,"value",J),G}function fy(J,G,X){let H={type:"JSXFragment",openingFragment:J,closingFragment:G,children:X},Z=A.JSXFragment;return U(Z.openingFragment,H,"openingFragment",J,1),U(Z.closingFragment,H,"closingFragment",G,1),U(Z.children,H,"children",X,1),H}function Dy(){return{type:"JSXOpeningFragment"}}function Ay(){return{type:"JSXClosingFragment"}}function Iy(){return{type:"Noop"}}function Cy(J,G){let X={type:"Placeholder",expectedNode:J,name:G},H=A.Placeholder;return U(H.expectedNode,X,"expectedNode",J),U(H.name,X,"name",G,1),X}function Sy(J){let G={type:"V8IntrinsicIdentifier",name:J},X=A.V8IntrinsicIdentifier;return U(X.name,G,"name",J),G}function Py(){return{type:"ArgumentPlaceholder"}}function wy(J,G){let X={type:"BindExpression",object:J,callee:G},H=A.BindExpression;return U(H.object,X,"object",J,1),U(H.callee,X,"callee",G,1),X}function Ly(J,G){let X={type:"ImportAttribute",key:J,value:G},H=A.ImportAttribute;return U(H.key,X,"key",J,1),U(H.value,X,"value",G,1),X}function Ty(J){let G={type:"Decorator",expression:J},X=A.Decorator;return U(X.expression,G,"expression",J,1),G}function Ny(J,G=!1){let X={type:"DoExpression",body:J,async:G},H=A.DoExpression;return U(H.body,X,"body",J,1),U(H.async,X,"async",G),X}function ky(J){let G={type:"ExportDefaultSpecifier",exported:J},X=A.ExportDefaultSpecifier;return U(X.exported,G,"exported",J,1),G}function Ey(J){let G={type:"RecordExpression",properties:J},X=A.RecordExpression;return U(X.properties,G,"properties",J,1),G}function Oy(J=[]){let G={type:"TupleExpression",elements:J},X=A.TupleExpression;return U(X.elements,G,"elements",J,1),G}function vy(J){let G={type:"DecimalLiteral",value:J},X=A.DecimalLiteral;return U(X.value,G,"value",J),G}function _y(J){let G={type:"ModuleExpression",body:J},X=A.ModuleExpression;return U(X.body,G,"body",J,1),G}function gy(){return{type:"TopicReference"}}function by(J){let G={type:"PipelineTopicExpression",expression:J},X=A.PipelineTopicExpression;return U(X.expression,G,"expression",J,1),G}function hy(J){let G={type:"PipelineBareFunction",callee:J},X=A.PipelineBareFunction;return U(X.callee,G,"callee",J,1),G}function yy(){return{type:"PipelinePrimaryTopicReference"}}function my(J){let G={type:"TSParameterProperty",parameter:J},X=A.TSParameterProperty;return U(X.parameter,G,"parameter",J,1),G}function xy(J=null,G=null,X,H=null){let Z={type:"TSDeclareFunction",id:J,typeParameters:G,params:X,returnType:H},V=A.TSDeclareFunction;return U(V.id,Z,"id",J,1),U(V.typeParameters,Z,"typeParameters",G,1),U(V.params,Z,"params",X,1),U(V.returnType,Z,"returnType",H,1),Z}function ly(J=null,G,X=null,H,Z=null){let V={type:"TSDeclareMethod",decorators:J,key:G,typeParameters:X,params:H,returnType:Z},Q=A.TSDeclareMethod;return U(Q.decorators,V,"decorators",J,1),U(Q.key,V,"key",G,1),U(Q.typeParameters,V,"typeParameters",X,1),U(Q.params,V,"params",H,1),U(Q.returnType,V,"returnType",Z,1),V}function cy(J,G){let X={type:"TSQualifiedName",left:J,right:G},H=A.TSQualifiedName;return U(H.left,X,"left",J,1),U(H.right,X,"right",G,1),X}function ry(J=null,G,X=null){let H={type:"TSCallSignatureDeclaration",typeParameters:J,parameters:G,typeAnnotation:X},Z=A.TSCallSignatureDeclaration;return U(Z.typeParameters,H,"typeParameters",J,1),U(Z.parameters,H,"parameters",G,1),U(Z.typeAnnotation,H,"typeAnnotation",X,1),H}function ay(J=null,G,X=null){let H={type:"TSConstructSignatureDeclaration",typeParameters:J,parameters:G,typeAnnotation:X},Z=A.TSConstructSignatureDeclaration;return U(Z.typeParameters,H,"typeParameters",J,1),U(Z.parameters,H,"parameters",G,1),U(Z.typeAnnotation,H,"typeAnnotation",X,1),H}function iy(J,G=null){let X={type:"TSPropertySignature",key:J,typeAnnotation:G,kind:null},H=A.TSPropertySignature;return U(H.key,X,"key",J,1),U(H.typeAnnotation,X,"typeAnnotation",G,1),X}function uy(J,G=null,X,H=null){let Z={type:"TSMethodSignature",key:J,typeParameters:G,parameters:X,typeAnnotation:H,kind:null},V=A.TSMethodSignature;return U(V.key,Z,"key",J,1),U(V.typeParameters,Z,"typeParameters",G,1),U(V.parameters,Z,"parameters",X,1),U(V.typeAnnotation,Z,"typeAnnotation",H,1),Z}function dy(J,G=null){let X={type:"TSIndexSignature",parameters:J,typeAnnotation:G},H=A.TSIndexSignature;return U(H.parameters,X,"parameters",J,1),U(H.typeAnnotation,X,"typeAnnotation",G,1),X}function sy(){return{type:"TSAnyKeyword"}}function py(){return{type:"TSBooleanKeyword"}}function ny(){return{type:"TSBigIntKeyword"}}function oy(){return{type:"TSIntrinsicKeyword"}}function ey(){return{type:"TSNeverKeyword"}}function ty(){return{type:"TSNullKeyword"}}function Jm(){return{type:"TSNumberKeyword"}}function Gm(){return{type:"TSObjectKeyword"}}function Xm(){return{type:"TSStringKeyword"}}function Hm(){return{type:"TSSymbolKeyword"}}function Zm(){return{type:"TSUndefinedKeyword"}}function Vm(){return{type:"TSUnknownKeyword"}}function Qm(){return{type:"TSVoidKeyword"}}function Ym(){return{type:"TSThisType"}}function zm(J=null,G,X=null){let H={type:"TSFunctionType",typeParameters:J,parameters:G,typeAnnotation:X},Z=A.TSFunctionType;return U(Z.typeParameters,H,"typeParameters",J,1),U(Z.parameters,H,"parameters",G,1),U(Z.typeAnnotation,H,"typeAnnotation",X,1),H}function Wm(J=null,G,X=null){let H={type:"TSConstructorType",typeParameters:J,parameters:G,typeAnnotation:X},Z=A.TSConstructorType;return U(Z.typeParameters,H,"typeParameters",J,1),U(Z.parameters,H,"parameters",G,1),U(Z.typeAnnotation,H,"typeAnnotation",X,1),H}function $m(J,G=null){let X={type:"TSTypeReference",typeName:J,typeParameters:G},H=A.TSTypeReference;return U(H.typeName,X,"typeName",J,1),U(H.typeParameters,X,"typeParameters",G,1),X}function Um(J,G=null,X=null){let H={type:"TSTypePredicate",parameterName:J,typeAnnotation:G,asserts:X},Z=A.TSTypePredicate;return U(Z.parameterName,H,"parameterName",J,1),U(Z.typeAnnotation,H,"typeAnnotation",G,1),U(Z.asserts,H,"asserts",X),H}function Km(J,G=null){let X={type:"TSTypeQuery",exprName:J,typeParameters:G},H=A.TSTypeQuery;return U(H.exprName,X,"exprName",J,1),U(H.typeParameters,X,"typeParameters",G,1),X}function Bm(J){let G={type:"TSTypeLiteral",members:J},X=A.TSTypeLiteral;return U(X.members,G,"members",J,1),G}function Rm(J){let G={type:"TSArrayType",elementType:J},X=A.TSArrayType;return U(X.elementType,G,"elementType",J,1),G}function Mm(J){let G={type:"TSTupleType",elementTypes:J},X=A.TSTupleType;return U(X.elementTypes,G,"elementTypes",J,1),G}function qm(J){let G={type:"TSOptionalType",typeAnnotation:J},X=A.TSOptionalType;return U(X.typeAnnotation,G,"typeAnnotation",J,1),G}function Fm(J){let G={type:"TSRestType",typeAnnotation:J},X=A.TSRestType;return U(X.typeAnnotation,G,"typeAnnotation",J,1),G}function jm(J,G,X=!1){let H={type:"TSNamedTupleMember",label:J,elementType:G,optional:X},Z=A.TSNamedTupleMember;return U(Z.label,H,"label",J,1),U(Z.elementType,H,"elementType",G,1),U(Z.optional,H,"optional",X),H}function fm(J){let G={type:"TSUnionType",types:J},X=A.TSUnionType;return U(X.types,G,"types",J,1),G}function Dm(J){let G={type:"TSIntersectionType",types:J},X=A.TSIntersectionType;return U(X.types,G,"types",J,1),G}function Am(J,G,X,H){let Z={type:"TSConditionalType",checkType:J,extendsType:G,trueType:X,falseType:H},V=A.TSConditionalType;return U(V.checkType,Z,"checkType",J,1),U(V.extendsType,Z,"extendsType",G,1),U(V.trueType,Z,"trueType",X,1),U(V.falseType,Z,"falseType",H,1),Z}function Im(J){let G={type:"TSInferType",typeParameter:J},X=A.TSInferType;return U(X.typeParameter,G,"typeParameter",J,1),G}function Cm(J){let G={type:"TSParenthesizedType",typeAnnotation:J},X=A.TSParenthesizedType;return U(X.typeAnnotation,G,"typeAnnotation",J,1),G}function Sm(J){let G={type:"TSTypeOperator",typeAnnotation:J,operator:null},X=A.TSTypeOperator;return U(X.typeAnnotation,G,"typeAnnotation",J,1),G}function Pm(J,G){let X={type:"TSIndexedAccessType",objectType:J,indexType:G},H=A.TSIndexedAccessType;return U(H.objectType,X,"objectType",J,1),U(H.indexType,X,"indexType",G,1),X}function wm(J,G=null,X=null){let H={type:"TSMappedType",typeParameter:J,typeAnnotation:G,nameType:X},Z=A.TSMappedType;return U(Z.typeParameter,H,"typeParameter",J,1),U(Z.typeAnnotation,H,"typeAnnotation",G,1),U(Z.nameType,H,"nameType",X,1),H}function Lm(J){let G={type:"TSLiteralType",literal:J},X=A.TSLiteralType;return U(X.literal,G,"literal",J,1),G}function Tm(J,G=null){let X={type:"TSExpressionWithTypeArguments",expression:J,typeParameters:G},H=A.TSExpressionWithTypeArguments;return U(H.expression,X,"expression",J,1),U(H.typeParameters,X,"typeParameters",G,1),X}function Nm(J,G=null,X=null,H){let Z={type:"TSInterfaceDeclaration",id:J,typeParameters:G,extends:X,body:H},V=A.TSInterfaceDeclaration;return U(V.id,Z,"id",J,1),U(V.typeParameters,Z,"typeParameters",G,1),U(V.extends,Z,"extends",X,1),U(V.body,Z,"body",H,1),Z}function km(J){let G={type:"TSInterfaceBody",body:J},X=A.TSInterfaceBody;return U(X.body,G,"body",J,1),G}function Em(J,G=null,X){let H={type:"TSTypeAliasDeclaration",id:J,typeParameters:G,typeAnnotation:X},Z=A.TSTypeAliasDeclaration;return U(Z.id,H,"id",J,1),U(Z.typeParameters,H,"typeParameters",G,1),U(Z.typeAnnotation,H,"typeAnnotation",X,1),H}function Om(J,G=null){let X={type:"TSInstantiationExpression",expression:J,typeParameters:G},H=A.TSInstantiationExpression;return U(H.expression,X,"expression",J,1),U(H.typeParameters,X,"typeParameters",G,1),X}function vm(J,G){let X={type:"TSAsExpression",expression:J,typeAnnotation:G},H=A.TSAsExpression;return U(H.expression,X,"expression",J,1),U(H.typeAnnotation,X,"typeAnnotation",G,1),X}function _m(J,G){let X={type:"TSSatisfiesExpression",expression:J,typeAnnotation:G},H=A.TSSatisfiesExpression;return U(H.expression,X,"expression",J,1),U(H.typeAnnotation,X,"typeAnnotation",G,1),X}function gm(J,G){let X={type:"TSTypeAssertion",typeAnnotation:J,expression:G},H=A.TSTypeAssertion;return U(H.typeAnnotation,X,"typeAnnotation",J,1),U(H.expression,X,"expression",G,1),X}function bm(J,G){let X={type:"TSEnumDeclaration",id:J,members:G},H=A.TSEnumDeclaration;return U(H.id,X,"id",J,1),U(H.members,X,"members",G,1),X}function hm(J,G=null){let X={type:"TSEnumMember",id:J,initializer:G},H=A.TSEnumMember;return U(H.id,X,"id",J,1),U(H.initializer,X,"initializer",G,1),X}function ym(J,G){let X={type:"TSModuleDeclaration",id:J,body:G},H=A.TSModuleDeclaration;return U(H.id,X,"id",J,1),U(H.body,X,"body",G,1),X}function mm(J){let G={type:"TSModuleBlock",body:J},X=A.TSModuleBlock;return U(X.body,G,"body",J,1),G}function xm(J,G=null,X=null){let H={type:"TSImportType",argument:J,qualifier:G,typeParameters:X},Z=A.TSImportType;return U(Z.argument,H,"argument",J,1),U(Z.qualifier,H,"qualifier",G,1),U(Z.typeParameters,H,"typeParameters",X,1),H}function lm(J,G){let X={type:"TSImportEqualsDeclaration",id:J,moduleReference:G,isExport:null},H=A.TSImportEqualsDeclaration;return U(H.id,X,"id",J,1),U(H.moduleReference,X,"moduleReference",G,1),X}function cm(J){let G={type:"TSExternalModuleReference",expression:J},X=A.TSExternalModuleReference;return U(X.expression,G,"expression",J,1),G}function rm(J){let G={type:"TSNonNullExpression",expression:J},X=A.TSNonNullExpression;return U(X.expression,G,"expression",J,1),G}function am(J){let G={type:"TSExportAssignment",expression:J},X=A.TSExportAssignment;return U(X.expression,G,"expression",J,1),G}function im(J){let G={type:"TSNamespaceExportDeclaration",id:J},X=A.TSNamespaceExportDeclaration;return U(X.id,G,"id",J,1),G}function um(J){let G={type:"TSTypeAnnotation",typeAnnotation:J},X=A.TSTypeAnnotation;return U(X.typeAnnotation,G,"typeAnnotation",J,1),G}function dm(J){let G={type:"TSTypeParameterInstantiation",params:J},X=A.TSTypeParameterInstantiation;return U(X.params,G,"params",J,1),G}function sm(J){let G={type:"TSTypeParameterDeclaration",params:J},X=A.TSTypeParameterDeclaration;return U(X.params,G,"params",J,1),G}function pm(J=null,G=null,X){let H={type:"TSTypeParameter",constraint:J,default:G,name:X},Z=A.TSTypeParameter;return U(Z.constraint,H,"constraint",J,1),U(Z.default,H,"default",G,1),U(Z.name,H,"name",X),H}function nm(J){return fJ.default("NumberLiteral","NumericLiteral","The node type "),YY(J)}function om(J,G=""){return fJ.default("RegexLiteral","RegExpLiteral","The node type "),zY(J,G)}function em(J){return fJ.default("RestProperty","RestElement","The node type "),WY(J)}function tm(J){return fJ.default("SpreadProperty","SpreadElement","The node type "),$Y(J)}});var BY=S((KY)=>{Object.defineProperty(KY,"__esModule",{value:!0});KY.default=xa;var ya=W2(),ma=F1();function xa(J,G){let X=J.value.split(/\r\n|\n|\r/),H=0;for(let V=0;V<X.length;V++)if(/[^ \t]/.exec(X[V]))H=V;let Z="";for(let V=0;V<X.length;V++){let Q=X[V],Y=V===0,z=V===X.length-1,W=V===H,K=Q.replace(/\t/g," ");if(!Y)K=K.replace(/^ +/,"");if(!z)K=K.replace(/ +$/,"");if(K){if(!W)K+=" ";Z+=K}}if(Z)G.push(ma.inherits(ya.stringLiteral(Z),J))}});var MY=S((RY)=>{Object.defineProperty(RY,"__esModule",{value:!0});RY.default=ra;var wX=a1(),ca=BY();function ra(J){let G=[];for(let X=0;X<J.children.length;X++){let H=J.children[X];if(wX.isJSXText(H)){ca.default(H,G);continue}if(wX.isJSXExpressionContainer(H))H=H.expression;if(wX.isJSXEmptyExpression(H))continue;G.push(H)}return G}});var LX=S((qY)=>{Object.defineProperty(qY,"__esModule",{value:!0});qY.default=ua;var ia=N2();function ua(J){return!!(J&&ia.VISITOR_KEYS[J.type])}});var jY=S((FY)=>{Object.defineProperty(FY,"__esModule",{value:!0});FY.default=pa;var sa=LX();function pa(J){if(!sa.default(J)){var G;let X=(G=J==null?void 0:J.type)!=null?G:JSON.stringify(J);throw new TypeError(`Not a valid node of type "${X}"`)}}});var DY=S((fY)=>{Object.defineProperty(fY,"__esModule",{value:!0});fY.assertAccessor=Kn;fY.assertAnyTypeAnnotation=Ou;fY.assertArgumentPlaceholder=Ys;fY.assertArrayExpression=ea;fY.assertArrayPattern=ni;fY.assertArrayTypeAnnotation=vu;fY.assertArrowFunctionExpression=oi;fY.assertAssignmentExpression=ta;fY.assertAssignmentPattern=pi;fY.assertAwaitExpression=Du;fY.assertBigIntLiteral=Iu;fY.assertBinary=_p;fY.assertBinaryExpression=Ji;fY.assertBindExpression=zs;fY.assertBlock=hp;fY.assertBlockParent=bp;fY.assertBlockStatement=Zi;fY.assertBooleanLiteral=Pi;fY.assertBooleanLiteralTypeAnnotation=gu;fY.assertBooleanTypeAnnotation=_u;fY.assertBreakStatement=Vi;fY.assertCallExpression=Qi;fY.assertCatchClause=Yi;fY.assertClass=zn;fY.assertClassAccessorProperty=Lu;fY.assertClassBody=ei;fY.assertClassDeclaration=Ju;fY.assertClassExpression=ti;fY.assertClassImplements=hu;fY.assertClassMethod=Ku;fY.assertClassPrivateMethod=Nu;fY.assertClassPrivateProperty=Tu;fY.assertClassProperty=wu;fY.assertCompletionStatement=xp;fY.assertConditional=lp;fY.assertConditionalExpression=zi;fY.assertContinueStatement=Wi;fY.assertDebuggerStatement=$i;fY.assertDecimalLiteral=Ms;fY.assertDeclaration=np;fY.assertDeclareClass=yu;fY.assertDeclareExportAllDeclaration=du;fY.assertDeclareExportDeclaration=uu;fY.assertDeclareFunction=mu;fY.assertDeclareInterface=xu;fY.assertDeclareModule=lu;fY.assertDeclareModuleExports=cu;fY.assertDeclareOpaqueType=au;fY.assertDeclareTypeAlias=ru;fY.assertDeclareVariable=iu;fY.assertDeclaredPredicate=su;fY.assertDecorator=$s;fY.assertDirective=Xi;fY.assertDirectiveLiteral=Hi;fY.assertDoExpression=Us;fY.assertDoWhileStatement=Ui;fY.assertEmptyStatement=Ki;fY.assertEmptyTypeAnnotation=Vd;fY.assertEnumBody=fn;fY.assertEnumBooleanBody=vd;fY.assertEnumBooleanMember=hd;fY.assertEnumDeclaration=Od;fY.assertEnumDefaultedMember=xd;fY.assertEnumMember=Dn;fY.assertEnumNumberBody=_d;fY.assertEnumNumberMember=yd;fY.assertEnumStringBody=gd;fY.assertEnumStringMember=md;fY.assertEnumSymbolBody=bd;fY.assertExistsTypeAnnotation=pu;fY.assertExportAllDeclaration=Gu;fY.assertExportDeclaration=$n;fY.assertExportDefaultDeclaration=Xu;fY.assertExportDefaultSpecifier=Ks;fY.assertExportNamedDeclaration=Hu;fY.assertExportNamespaceSpecifier=Cu;fY.assertExportSpecifier=Zu;fY.assertExpression=vp;fY.assertExpressionStatement=Bi;fY.assertExpressionWrapper=ap;fY.assertFile=Ri;fY.assertFlow=Rn;fY.assertFlowBaseAnnotation=qn;fY.assertFlowDeclaration=Fn;fY.assertFlowPredicate=jn;fY.assertFlowType=Mn;fY.assertFor=ip;fY.assertForInStatement=Mi;fY.assertForOfStatement=Vu;fY.assertForStatement=qi;fY.assertForXStatement=up;fY.assertFunction=dp;fY.assertFunctionDeclaration=Fi;fY.assertFunctionExpression=ji;fY.assertFunctionParent=sp;fY.assertFunctionTypeAnnotation=nu;fY.assertFunctionTypeParam=ou;fY.assertGenericTypeAnnotation=eu;fY.assertIdentifier=fi;fY.assertIfStatement=Di;fY.assertImmutable=Gn;fY.assertImport=Au;fY.assertImportAttribute=Ws;fY.assertImportDeclaration=Qu;fY.assertImportDefaultSpecifier=Yu;fY.assertImportExpression=$u;fY.assertImportNamespaceSpecifier=zu;fY.assertImportOrExportDeclaration=Wn;fY.assertImportSpecifier=Wu;fY.assertIndexedAccessType=ld;fY.assertInferredPredicate=tu;fY.assertInterfaceDeclaration=Gd;fY.assertInterfaceExtends=Jd;fY.assertInterfaceTypeAnnotation=Xd;fY.assertInterpreterDirective=Gi;fY.assertIntersectionTypeAnnotation=Hd;fY.assertJSX=An;fY.assertJSXAttribute=rd;fY.assertJSXClosingElement=ad;fY.assertJSXClosingFragment=Hs;fY.assertJSXElement=id;fY.assertJSXEmptyExpression=ud;fY.assertJSXExpressionContainer=dd;fY.assertJSXFragment=Gs;fY.assertJSXIdentifier=pd;fY.assertJSXMemberExpression=nd;fY.assertJSXNamespacedName=od;fY.assertJSXOpeningElement=ed;fY.assertJSXOpeningFragment=Xs;fY.assertJSXSpreadAttribute=td;fY.assertJSXSpreadChild=sd;fY.assertJSXText=Js;fY.assertLVal=ep;fY.assertLabeledStatement=Ai;fY.assertLiteral=Jn;fY.assertLogicalExpression=Li;fY.assertLoop=cp;fY.assertMemberExpression=Ti;fY.assertMetaProperty=Uu;fY.assertMethod=Hn;fY.assertMiscellaneous=In;fY.assertMixedTypeAnnotation=Zd;fY.assertModuleDeclaration=En;fY.assertModuleExpression=qs;fY.assertModuleSpecifier=Un;fY.assertNewExpression=Ni;fY.assertNoop=Zs;fY.assertNullLiteral=Si;fY.assertNullLiteralTypeAnnotation=bu;fY.assertNullableTypeAnnotation=Qd;fY.assertNumberLiteral=Ln;fY.assertNumberLiteralTypeAnnotation=Yd;fY.assertNumberTypeAnnotation=zd;fY.assertNumericLiteral=Ci;fY.assertObjectExpression=Ei;fY.assertObjectMember=Zn;fY.assertObjectMethod=Oi;fY.assertObjectPattern=Bu;fY.assertObjectProperty=vi;fY.assertObjectTypeAnnotation=Wd;fY.assertObjectTypeCallProperty=Ud;fY.assertObjectTypeIndexer=Kd;fY.assertObjectTypeInternalSlot=$d;fY.assertObjectTypeProperty=Bd;fY.assertObjectTypeSpreadProperty=Rd;fY.assertOpaqueType=Md;fY.assertOptionalCallExpression=Pu;fY.assertOptionalIndexedAccessType=cd;fY.assertOptionalMemberExpression=Su;fY.assertParenthesizedExpression=hi;fY.assertPattern=Yn;fY.assertPatternLike=op;fY.assertPipelineBareFunction=fs;fY.assertPipelinePrimaryTopicReference=Ds;fY.assertPipelineTopicExpression=js;fY.assertPlaceholder=Vs;fY.assertPrivate=Bn;fY.assertPrivateName=ku;fY.assertProgram=ki;fY.assertProperty=Vn;fY.assertPureish=pp;fY.assertQualifiedTypeIdentifier=qd;fY.assertRecordExpression=Bs;fY.assertRegExpLiteral=wi;fY.assertRegexLiteral=Tn;fY.assertRestElement=_i;fY.assertRestProperty=Nn;fY.assertReturnStatement=gi;fY.assertScopable=gp;fY.assertSequenceExpression=bi;fY.assertSpreadElement=Ru;fY.assertSpreadProperty=kn;fY.assertStandardized=Op;fY.assertStatement=yp;fY.assertStaticBlock=Eu;fY.assertStringLiteral=Ii;fY.assertStringLiteralTypeAnnotation=Fd;fY.assertStringTypeAnnotation=jd;fY.assertSuper=Mu;fY.assertSwitchCase=yi;fY.assertSwitchStatement=mi;fY.assertSymbolTypeAnnotation=fd;fY.assertTSAnyKeyword=ks;fY.assertTSArrayType=ns;fY.assertTSAsExpression=Mp;fY.assertTSBaseType=wn;fY.assertTSBigIntKeyword=Os;fY.assertTSBooleanKeyword=Es;fY.assertTSCallSignatureDeclaration=Ps;fY.assertTSConditionalType=Hp;fY.assertTSConstructSignatureDeclaration=ws;fY.assertTSConstructorType=is;fY.assertTSDeclareFunction=Is;fY.assertTSDeclareMethod=Cs;fY.assertTSEntityName=tp;fY.assertTSEnumDeclaration=jp;fY.assertTSEnumMember=fp;fY.assertTSExportAssignment=wp;fY.assertTSExpressionWithTypeArguments=$p;fY.assertTSExternalModuleReference=Sp;fY.assertTSFunctionType=as;fY.assertTSImportEqualsDeclaration=Cp;fY.assertTSImportType=Ip;fY.assertTSIndexSignature=Ns;fY.assertTSIndexedAccessType=Yp;fY.assertTSInferType=Zp;fY.assertTSInstantiationExpression=Rp;fY.assertTSInterfaceBody=Kp;fY.assertTSInterfaceDeclaration=Up;fY.assertTSIntersectionType=Xp;fY.assertTSIntrinsicKeyword=vs;fY.assertTSLiteralType=Wp;fY.assertTSMappedType=zp;fY.assertTSMethodSignature=Ts;fY.assertTSModuleBlock=Ap;fY.assertTSModuleDeclaration=Dp;fY.assertTSNamedTupleMember=Jp;fY.assertTSNamespaceExportDeclaration=Lp;fY.assertTSNeverKeyword=_s;fY.assertTSNonNullExpression=Pp;fY.assertTSNullKeyword=gs;fY.assertTSNumberKeyword=bs;fY.assertTSObjectKeyword=hs;fY.assertTSOptionalType=es;fY.assertTSParameterProperty=As;fY.assertTSParenthesizedType=Vp;fY.assertTSPropertySignature=Ls;fY.assertTSQualifiedName=Ss;fY.assertTSRestType=ts;fY.assertTSSatisfiesExpression=qp;fY.assertTSStringKeyword=ys;fY.assertTSSymbolKeyword=ms;fY.assertTSThisType=rs;fY.assertTSTupleType=os;fY.assertTSType=Pn;fY.assertTSTypeAliasDeclaration=Bp;fY.assertTSTypeAnnotation=Tp;fY.assertTSTypeAssertion=Fp;fY.assertTSTypeElement=Sn;fY.assertTSTypeLiteral=ps;fY.assertTSTypeOperator=Qp;fY.assertTSTypeParameter=Ep;fY.assertTSTypeParameterDeclaration=kp;fY.assertTSTypeParameterInstantiation=Np;fY.assertTSTypePredicate=ds;fY.assertTSTypeQuery=ss;fY.assertTSTypeReference=us;fY.assertTSUndefinedKeyword=xs;fY.assertTSUnionType=Gp;fY.assertTSUnknownKeyword=ls;fY.assertTSVoidKeyword=cs;fY.assertTaggedTemplateExpression=qu;fY.assertTemplateElement=Fu;fY.assertTemplateLiteral=ju;fY.assertTerminatorless=mp;fY.assertThisExpression=xi;fY.assertThisTypeAnnotation=Dd;fY.assertThrowStatement=li;fY.assertTopicReference=Fs;fY.assertTryStatement=ci;fY.assertTupleExpression=Rs;fY.assertTupleTypeAnnotation=Ad;fY.assertTypeAlias=Cd;fY.assertTypeAnnotation=Sd;fY.assertTypeCastExpression=Pd;fY.assertTypeParameter=wd;fY.assertTypeParameterDeclaration=Ld;fY.assertTypeParameterInstantiation=Td;fY.assertTypeScript=Cn;fY.assertTypeofTypeAnnotation=Id;fY.assertUnaryExpression=ri;fY.assertUnaryLike=Qn;fY.assertUnionTypeAnnotation=Nd;fY.assertUpdateExpression=ai;fY.assertUserWhitespacable=Xn;fY.assertV8IntrinsicIdentifier=Qs;fY.assertVariableDeclaration=ii;fY.assertVariableDeclarator=ui;fY.assertVariance=kd;fY.assertVoidTypeAnnotation=Ed;fY.assertWhile=rp;fY.assertWhileStatement=di;fY.assertWithStatement=si;fY.assertYieldExpression=fu;var oa=N5(),I9=K9();function B(J,G,X){if(!oa.default(J,G,X))throw new Error(`Expected type "${J}" with option ${JSON.stringify(X)}, but instead got "${G.type}".`)}function ea(J,G){B("ArrayExpression",J,G)}function ta(J,G){B("AssignmentExpression",J,G)}function Ji(J,G){B("BinaryExpression",J,G)}function Gi(J,G){B("InterpreterDirective",J,G)}function Xi(J,G){B("Directive",J,G)}function Hi(J,G){B("DirectiveLiteral",J,G)}function Zi(J,G){B("BlockStatement",J,G)}function Vi(J,G){B("BreakStatement",J,G)}function Qi(J,G){B("CallExpression",J,G)}function Yi(J,G){B("CatchClause",J,G)}function zi(J,G){B("ConditionalExpression",J,G)}function Wi(J,G){B("ContinueStatement",J,G)}function $i(J,G){B("DebuggerStatement",J,G)}function Ui(J,G){B("DoWhileStatement",J,G)}function Ki(J,G){B("EmptyStatement",J,G)}function Bi(J,G){B("ExpressionStatement",J,G)}function Ri(J,G){B("File",J,G)}function Mi(J,G){B("ForInStatement",J,G)}function qi(J,G){B("ForStatement",J,G)}function Fi(J,G){B("FunctionDeclaration",J,G)}function ji(J,G){B("FunctionExpression",J,G)}function fi(J,G){B("Identifier",J,G)}function Di(J,G){B("IfStatement",J,G)}function Ai(J,G){B("LabeledStatement",J,G)}function Ii(J,G){B("StringLiteral",J,G)}function Ci(J,G){B("NumericLiteral",J,G)}function Si(J,G){B("NullLiteral",J,G)}function Pi(J,G){B("BooleanLiteral",J,G)}function wi(J,G){B("RegExpLiteral",J,G)}function Li(J,G){B("LogicalExpression",J,G)}function Ti(J,G){B("MemberExpression",J,G)}function Ni(J,G){B("NewExpression",J,G)}function ki(J,G){B("Program",J,G)}function Ei(J,G){B("ObjectExpression",J,G)}function Oi(J,G){B("ObjectMethod",J,G)}function vi(J,G){B("ObjectProperty",J,G)}function _i(J,G){B("RestElement",J,G)}function gi(J,G){B("ReturnStatement",J,G)}function bi(J,G){B("SequenceExpression",J,G)}function hi(J,G){B("ParenthesizedExpression",J,G)}function yi(J,G){B("SwitchCase",J,G)}function mi(J,G){B("SwitchStatement",J,G)}function xi(J,G){B("ThisExpression",J,G)}function li(J,G){B("ThrowStatement",J,G)}function ci(J,G){B("TryStatement",J,G)}function ri(J,G){B("UnaryExpression",J,G)}function ai(J,G){B("UpdateExpression",J,G)}function ii(J,G){B("VariableDeclaration",J,G)}function ui(J,G){B("VariableDeclarator",J,G)}function di(J,G){B("WhileStatement",J,G)}function si(J,G){B("WithStatement",J,G)}function pi(J,G){B("AssignmentPattern",J,G)}function ni(J,G){B("ArrayPattern",J,G)}function oi(J,G){B("ArrowFunctionExpression",J,G)}function ei(J,G){B("ClassBody",J,G)}function ti(J,G){B("ClassExpression",J,G)}function Ju(J,G){B("ClassDeclaration",J,G)}function Gu(J,G){B("ExportAllDeclaration",J,G)}function Xu(J,G){B("ExportDefaultDeclaration",J,G)}function Hu(J,G){B("ExportNamedDeclaration",J,G)}function Zu(J,G){B("ExportSpecifier",J,G)}function Vu(J,G){B("ForOfStatement",J,G)}function Qu(J,G){B("ImportDeclaration",J,G)}function Yu(J,G){B("ImportDefaultSpecifier",J,G)}function zu(J,G){B("ImportNamespaceSpecifier",J,G)}function Wu(J,G){B("ImportSpecifier",J,G)}function $u(J,G){B("ImportExpression",J,G)}function Uu(J,G){B("MetaProperty",J,G)}function Ku(J,G){B("ClassMethod",J,G)}function Bu(J,G){B("ObjectPattern",J,G)}function Ru(J,G){B("SpreadElement",J,G)}function Mu(J,G){B("Super",J,G)}function qu(J,G){B("TaggedTemplateExpression",J,G)}function Fu(J,G){B("TemplateElement",J,G)}function ju(J,G){B("TemplateLiteral",J,G)}function fu(J,G){B("YieldExpression",J,G)}function Du(J,G){B("AwaitExpression",J,G)}function Au(J,G){B("Import",J,G)}function Iu(J,G){B("BigIntLiteral",J,G)}function Cu(J,G){B("ExportNamespaceSpecifier",J,G)}function Su(J,G){B("OptionalMemberExpression",J,G)}function Pu(J,G){B("OptionalCallExpression",J,G)}function wu(J,G){B("ClassProperty",J,G)}function Lu(J,G){B("ClassAccessorProperty",J,G)}function Tu(J,G){B("ClassPrivateProperty",J,G)}function Nu(J,G){B("ClassPrivateMethod",J,G)}function ku(J,G){B("PrivateName",J,G)}function Eu(J,G){B("StaticBlock",J,G)}function Ou(J,G){B("AnyTypeAnnotation",J,G)}function vu(J,G){B("ArrayTypeAnnotation",J,G)}function _u(J,G){B("BooleanTypeAnnotation",J,G)}function gu(J,G){B("BooleanLiteralTypeAnnotation",J,G)}function bu(J,G){B("NullLiteralTypeAnnotation",J,G)}function hu(J,G){B("ClassImplements",J,G)}function yu(J,G){B("DeclareClass",J,G)}function mu(J,G){B("DeclareFunction",J,G)}function xu(J,G){B("DeclareInterface",J,G)}function lu(J,G){B("DeclareModule",J,G)}function cu(J,G){B("DeclareModuleExports",J,G)}function ru(J,G){B("DeclareTypeAlias",J,G)}function au(J,G){B("DeclareOpaqueType",J,G)}function iu(J,G){B("DeclareVariable",J,G)}function uu(J,G){B("DeclareExportDeclaration",J,G)}function du(J,G){B("DeclareExportAllDeclaration",J,G)}function su(J,G){B("DeclaredPredicate",J,G)}function pu(J,G){B("ExistsTypeAnnotation",J,G)}function nu(J,G){B("FunctionTypeAnnotation",J,G)}function ou(J,G){B("FunctionTypeParam",J,G)}function eu(J,G){B("GenericTypeAnnotation",J,G)}function tu(J,G){B("InferredPredicate",J,G)}function Jd(J,G){B("InterfaceExtends",J,G)}function Gd(J,G){B("InterfaceDeclaration",J,G)}function Xd(J,G){B("InterfaceTypeAnnotation",J,G)}function Hd(J,G){B("IntersectionTypeAnnotation",J,G)}function Zd(J,G){B("MixedTypeAnnotation",J,G)}function Vd(J,G){B("EmptyTypeAnnotation",J,G)}function Qd(J,G){B("NullableTypeAnnotation",J,G)}function Yd(J,G){B("NumberLiteralTypeAnnotation",J,G)}function zd(J,G){B("NumberTypeAnnotation",J,G)}function Wd(J,G){B("ObjectTypeAnnotation",J,G)}function $d(J,G){B("ObjectTypeInternalSlot",J,G)}function Ud(J,G){B("ObjectTypeCallProperty",J,G)}function Kd(J,G){B("ObjectTypeIndexer",J,G)}function Bd(J,G){B("ObjectTypeProperty",J,G)}function Rd(J,G){B("ObjectTypeSpreadProperty",J,G)}function Md(J,G){B("OpaqueType",J,G)}function qd(J,G){B("QualifiedTypeIdentifier",J,G)}function Fd(J,G){B("StringLiteralTypeAnnotation",J,G)}function jd(J,G){B("StringTypeAnnotation",J,G)}function fd(J,G){B("SymbolTypeAnnotation",J,G)}function Dd(J,G){B("ThisTypeAnnotation",J,G)}function Ad(J,G){B("TupleTypeAnnotation",J,G)}function Id(J,G){B("TypeofTypeAnnotation",J,G)}function Cd(J,G){B("TypeAlias",J,G)}function Sd(J,G){B("TypeAnnotation",J,G)}function Pd(J,G){B("TypeCastExpression",J,G)}function wd(J,G){B("TypeParameter",J,G)}function Ld(J,G){B("TypeParameterDeclaration",J,G)}function Td(J,G){B("TypeParameterInstantiation",J,G)}function Nd(J,G){B("UnionTypeAnnotation",J,G)}function kd(J,G){B("Variance",J,G)}function Ed(J,G){B("VoidTypeAnnotation",J,G)}function Od(J,G){B("EnumDeclaration",J,G)}function vd(J,G){B("EnumBooleanBody",J,G)}function _d(J,G){B("EnumNumberBody",J,G)}function gd(J,G){B("EnumStringBody",J,G)}function bd(J,G){B("EnumSymbolBody",J,G)}function hd(J,G){B("EnumBooleanMember",J,G)}function yd(J,G){B("EnumNumberMember",J,G)}function md(J,G){B("EnumStringMember",J,G)}function xd(J,G){B("EnumDefaultedMember",J,G)}function ld(J,G){B("IndexedAccessType",J,G)}function cd(J,G){B("OptionalIndexedAccessType",J,G)}function rd(J,G){B("JSXAttribute",J,G)}function ad(J,G){B("JSXClosingElement",J,G)}function id(J,G){B("JSXElement",J,G)}function ud(J,G){B("JSXEmptyExpression",J,G)}function dd(J,G){B("JSXExpressionContainer",J,G)}function sd(J,G){B("JSXSpreadChild",J,G)}function pd(J,G){B("JSXIdentifier",J,G)}function nd(J,G){B("JSXMemberExpression",J,G)}function od(J,G){B("JSXNamespacedName",J,G)}function ed(J,G){B("JSXOpeningElement",J,G)}function td(J,G){B("JSXSpreadAttribute",J,G)}function Js(J,G){B("JSXText",J,G)}function Gs(J,G){B("JSXFragment",J,G)}function Xs(J,G){B("JSXOpeningFragment",J,G)}function Hs(J,G){B("JSXClosingFragment",J,G)}function Zs(J,G){B("Noop",J,G)}function Vs(J,G){B("Placeholder",J,G)}function Qs(J,G){B("V8IntrinsicIdentifier",J,G)}function Ys(J,G){B("ArgumentPlaceholder",J,G)}function zs(J,G){B("BindExpression",J,G)}function Ws(J,G){B("ImportAttribute",J,G)}function $s(J,G){B("Decorator",J,G)}function Us(J,G){B("DoExpression",J,G)}function Ks(J,G){B("ExportDefaultSpecifier",J,G)}function Bs(J,G){B("RecordExpression",J,G)}function Rs(J,G){B("TupleExpression",J,G)}function Ms(J,G){B("DecimalLiteral",J,G)}function qs(J,G){B("ModuleExpression",J,G)}function Fs(J,G){B("TopicReference",J,G)}function js(J,G){B("PipelineTopicExpression",J,G)}function fs(J,G){B("PipelineBareFunction",J,G)}function Ds(J,G){B("PipelinePrimaryTopicReference",J,G)}function As(J,G){B("TSParameterProperty",J,G)}function Is(J,G){B("TSDeclareFunction",J,G)}function Cs(J,G){B("TSDeclareMethod",J,G)}function Ss(J,G){B("TSQualifiedName",J,G)}function Ps(J,G){B("TSCallSignatureDeclaration",J,G)}function ws(J,G){B("TSConstructSignatureDeclaration",J,G)}function Ls(J,G){B("TSPropertySignature",J,G)}function Ts(J,G){B("TSMethodSignature",J,G)}function Ns(J,G){B("TSIndexSignature",J,G)}function ks(J,G){B("TSAnyKeyword",J,G)}function Es(J,G){B("TSBooleanKeyword",J,G)}function Os(J,G){B("TSBigIntKeyword",J,G)}function vs(J,G){B("TSIntrinsicKeyword",J,G)}function _s(J,G){B("TSNeverKeyword",J,G)}function gs(J,G){B("TSNullKeyword",J,G)}function bs(J,G){B("TSNumberKeyword",J,G)}function hs(J,G){B("TSObjectKeyword",J,G)}function ys(J,G){B("TSStringKeyword",J,G)}function ms(J,G){B("TSSymbolKeyword",J,G)}function xs(J,G){B("TSUndefinedKeyword",J,G)}function ls(J,G){B("TSUnknownKeyword",J,G)}function cs(J,G){B("TSVoidKeyword",J,G)}function rs(J,G){B("TSThisType",J,G)}function as(J,G){B("TSFunctionType",J,G)}function is(J,G){B("TSConstructorType",J,G)}function us(J,G){B("TSTypeReference",J,G)}function ds(J,G){B("TSTypePredicate",J,G)}function ss(J,G){B("TSTypeQuery",J,G)}function ps(J,G){B("TSTypeLiteral",J,G)}function ns(J,G){B("TSArrayType",J,G)}function os(J,G){B("TSTupleType",J,G)}function es(J,G){B("TSOptionalType",J,G)}function ts(J,G){B("TSRestType",J,G)}function Jp(J,G){B("TSNamedTupleMember",J,G)}function Gp(J,G){B("TSUnionType",J,G)}function Xp(J,G){B("TSIntersectionType",J,G)}function Hp(J,G){B("TSConditionalType",J,G)}function Zp(J,G){B("TSInferType",J,G)}function Vp(J,G){B("TSParenthesizedType",J,G)}function Qp(J,G){B("TSTypeOperator",J,G)}function Yp(J,G){B("TSIndexedAccessType",J,G)}function zp(J,G){B("TSMappedType",J,G)}function Wp(J,G){B("TSLiteralType",J,G)}function $p(J,G){B("TSExpressionWithTypeArguments",J,G)}function Up(J,G){B("TSInterfaceDeclaration",J,G)}function Kp(J,G){B("TSInterfaceBody",J,G)}function Bp(J,G){B("TSTypeAliasDeclaration",J,G)}function Rp(J,G){B("TSInstantiationExpression",J,G)}function Mp(J,G){B("TSAsExpression",J,G)}function qp(J,G){B("TSSatisfiesExpression",J,G)}function Fp(J,G){B("TSTypeAssertion",J,G)}function jp(J,G){B("TSEnumDeclaration",J,G)}function fp(J,G){B("TSEnumMember",J,G)}function Dp(J,G){B("TSModuleDeclaration",J,G)}function Ap(J,G){B("TSModuleBlock",J,G)}function Ip(J,G){B("TSImportType",J,G)}function Cp(J,G){B("TSImportEqualsDeclaration",J,G)}function Sp(J,G){B("TSExternalModuleReference",J,G)}function Pp(J,G){B("TSNonNullExpression",J,G)}function wp(J,G){B("TSExportAssignment",J,G)}function Lp(J,G){B("TSNamespaceExportDeclaration",J,G)}function Tp(J,G){B("TSTypeAnnotation",J,G)}function Np(J,G){B("TSTypeParameterInstantiation",J,G)}function kp(J,G){B("TSTypeParameterDeclaration",J,G)}function Ep(J,G){B("TSTypeParameter",J,G)}function Op(J,G){B("Standardized",J,G)}function vp(J,G){B("Expression",J,G)}function _p(J,G){B("Binary",J,G)}function gp(J,G){B("Scopable",J,G)}function bp(J,G){B("BlockParent",J,G)}function hp(J,G){B("Block",J,G)}function yp(J,G){B("Statement",J,G)}function mp(J,G){B("Terminatorless",J,G)}function xp(J,G){B("CompletionStatement",J,G)}function lp(J,G){B("Conditional",J,G)}function cp(J,G){B("Loop",J,G)}function rp(J,G){B("While",J,G)}function ap(J,G){B("ExpressionWrapper",J,G)}function ip(J,G){B("For",J,G)}function up(J,G){B("ForXStatement",J,G)}function dp(J,G){B("Function",J,G)}function sp(J,G){B("FunctionParent",J,G)}function pp(J,G){B("Pureish",J,G)}function np(J,G){B("Declaration",J,G)}function op(J,G){B("PatternLike",J,G)}function ep(J,G){B("LVal",J,G)}function tp(J,G){B("TSEntityName",J,G)}function Jn(J,G){B("Literal",J,G)}function Gn(J,G){B("Immutable",J,G)}function Xn(J,G){B("UserWhitespacable",J,G)}function Hn(J,G){B("Method",J,G)}function Zn(J,G){B("ObjectMember",J,G)}function Vn(J,G){B("Property",J,G)}function Qn(J,G){B("UnaryLike",J,G)}function Yn(J,G){B("Pattern",J,G)}function zn(J,G){B("Class",J,G)}function Wn(J,G){B("ImportOrExportDeclaration",J,G)}function $n(J,G){B("ExportDeclaration",J,G)}function Un(J,G){B("ModuleSpecifier",J,G)}function Kn(J,G){B("Accessor",J,G)}function Bn(J,G){B("Private",J,G)}function Rn(J,G){B("Flow",J,G)}function Mn(J,G){B("FlowType",J,G)}function qn(J,G){B("FlowBaseAnnotation",J,G)}function Fn(J,G){B("FlowDeclaration",J,G)}function jn(J,G){B("FlowPredicate",J,G)}function fn(J,G){B("EnumBody",J,G)}function Dn(J,G){B("EnumMember",J,G)}function An(J,G){B("JSX",J,G)}function In(J,G){B("Miscellaneous",J,G)}function Cn(J,G){B("TypeScript",J,G)}function Sn(J,G){B("TSTypeElement",J,G)}function Pn(J,G){B("TSType",J,G)}function wn(J,G){B("TSBaseType",J,G)}function Ln(J,G){I9.default("assertNumberLiteral","assertNumericLiteral"),B("NumberLiteral",J,G)}function Tn(J,G){I9.default("assertRegexLiteral","assertRegExpLiteral"),B("RegexLiteral",J,G)}function Nn(J,G){I9.default("assertRestProperty","assertRestElement"),B("RestProperty",J,G)}function kn(J,G){I9.default("assertSpreadProperty","assertSpreadElement"),B("SpreadProperty",J,G)}function En(J,G){I9.default("assertModuleDeclaration","assertImportOrExportDeclaration"),B("ModuleDeclaration",J,G)}});var CY=S((AY)=>{Object.defineProperty(AY,"__esModule",{value:!0});AY.default=void 0;var m2=W2(),EE1=AY.default=R01;function R01(J){switch(J){case"string":return m2.stringTypeAnnotation();case"number":return m2.numberTypeAnnotation();case"undefined":return m2.voidTypeAnnotation();case"boolean":return m2.booleanTypeAnnotation();case"function":return m2.genericTypeAnnotation(m2.identifier("Function"));case"object":return m2.genericTypeAnnotation(m2.identifier("Object"));case"symbol":return m2.genericTypeAnnotation(m2.identifier("Symbol"));case"bigint":return m2.anyTypeAnnotation()}throw new Error("Invalid typeof value: "+J)}});var TX=S((wY)=>{Object.defineProperty(wY,"__esModule",{value:!0});wY.default=PY;var C9=a1();function SY(J){return C9.isIdentifier(J)?J.name:`${J.id.name}.${SY(J.qualification)}`}function PY(J){let G=Array.from(J),X=new Map,H=new Map,Z=new Set,V=[];for(let Q=0;Q<G.length;Q++){let Y=G[Q];if(!Y)continue;if(V.includes(Y))continue;if(C9.isAnyTypeAnnotation(Y))return[Y];if(C9.isFlowBaseAnnotation(Y)){H.set(Y.type,Y);continue}if(C9.isUnionTypeAnnotation(Y)){if(!Z.has(Y.types))G.push(...Y.types),Z.add(Y.types);continue}if(C9.isGenericTypeAnnotation(Y)){let z=SY(Y.id);if(X.has(z)){let W=X.get(z);if(W.typeParameters){if(Y.typeParameters)W.typeParameters.params.push(...Y.typeParameters.params),W.typeParameters.params=PY(W.typeParameters.params)}else W=Y.typeParameters}else X.set(z,Y);continue}V.push(Y)}for(let[,Q]of H)V.push(Q);for(let[,Q]of X)V.push(Q);return V}});var TY=S((LY)=>{Object.defineProperty(LY,"__esModule",{value:!0});LY.default=j01;var q01=W2(),F01=TX();function j01(J){let G=F01.default(J);if(G.length===1)return G[0];else return q01.unionTypeAnnotation(G)}});var OY=S((EY)=>{Object.defineProperty(EY,"__esModule",{value:!0});EY.default=kY;var S9=a1();function NY(J){return S9.isIdentifier(J)?J.name:`${J.right.name}.${NY(J.left)}`}function kY(J){let G=Array.from(J),X=new Map,H=new Map,Z=new Set,V=[];for(let Q=0;Q<G.length;Q++){let Y=G[Q];if(!Y)continue;if(V.includes(Y))continue;if(S9.isTSAnyKeyword(Y))return[Y];if(S9.isTSBaseType(Y)){H.set(Y.type,Y);continue}if(S9.isTSUnionType(Y)){if(!Z.has(Y.types))G.push(...Y.types),Z.add(Y.types);continue}if(S9.isTSTypeReference(Y)&&Y.typeParameters){let z=NY(Y.typeName);if(X.has(z)){let W=X.get(z);if(W.typeParameters){if(Y.typeParameters)W.typeParameters.params.push(...Y.typeParameters.params),W.typeParameters.params=kY(W.typeParameters.params)}else W=Y.typeParameters}else X.set(z,Y);continue}V.push(Y)}for(let[,Q]of H)V.push(Q);for(let[,Q]of X)V.push(Q);return V}});var _Y=S((vY)=>{Object.defineProperty(vY,"__esModule",{value:!0});vY.default=S01;var A01=W2(),I01=OY(),C01=a1();function S01(J){let G=J.map((H)=>{return C01.isTSTypeAnnotation(H)?H.typeAnnotation:H}),X=I01.default(G);if(X.length===1)return X[0];else return A01.tsUnionType(X)}});var gY=S((F)=>{Object.defineProperty(F,"__esModule",{value:!0});Object.defineProperty(F,"AnyTypeAnnotation",{enumerable:!0,get:function(){return j.anyTypeAnnotation}});Object.defineProperty(F,"ArgumentPlaceholder",{enumerable:!0,get:function(){return j.argumentPlaceholder}});Object.defineProperty(F,"ArrayExpression",{enumerable:!0,get:function(){return j.arrayExpression}});Object.defineProperty(F,"ArrayPattern",{enumerable:!0,get:function(){return j.arrayPattern}});Object.defineProperty(F,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return j.arrayTypeAnnotation}});Object.defineProperty(F,"ArrowFunctionExpression",{enumerable:!0,get:function(){return j.arrowFunctionExpression}});Object.defineProperty(F,"AssignmentExpression",{enumerable:!0,get:function(){return j.assignmentExpression}});Object.defineProperty(F,"AssignmentPattern",{enumerable:!0,get:function(){return j.assignmentPattern}});Object.defineProperty(F,"AwaitExpression",{enumerable:!0,get:function(){return j.awaitExpression}});Object.defineProperty(F,"BigIntLiteral",{enumerable:!0,get:function(){return j.bigIntLiteral}});Object.defineProperty(F,"BinaryExpression",{enumerable:!0,get:function(){return j.binaryExpression}});Object.defineProperty(F,"BindExpression",{enumerable:!0,get:function(){return j.bindExpression}});Object.defineProperty(F,"BlockStatement",{enumerable:!0,get:function(){return j.blockStatement}});Object.defineProperty(F,"BooleanLiteral",{enumerable:!0,get:function(){return j.booleanLiteral}});Object.defineProperty(F,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return j.booleanLiteralTypeAnnotation}});Object.defineProperty(F,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return j.booleanTypeAnnotation}});Object.defineProperty(F,"BreakStatement",{enumerable:!0,get:function(){return j.breakStatement}});Object.defineProperty(F,"CallExpression",{enumerable:!0,get:function(){return j.callExpression}});Object.defineProperty(F,"CatchClause",{enumerable:!0,get:function(){return j.catchClause}});Object.defineProperty(F,"ClassAccessorProperty",{enumerable:!0,get:function(){return j.classAccessorProperty}});Object.defineProperty(F,"ClassBody",{enumerable:!0,get:function(){return j.classBody}});Object.defineProperty(F,"ClassDeclaration",{enumerable:!0,get:function(){return j.classDeclaration}});Object.defineProperty(F,"ClassExpression",{enumerable:!0,get:function(){return j.classExpression}});Object.defineProperty(F,"ClassImplements",{enumerable:!0,get:function(){return j.classImplements}});Object.defineProperty(F,"ClassMethod",{enumerable:!0,get:function(){return j.classMethod}});Object.defineProperty(F,"ClassPrivateMethod",{enumerable:!0,get:function(){return j.classPrivateMethod}});Object.defineProperty(F,"ClassPrivateProperty",{enumerable:!0,get:function(){return j.classPrivateProperty}});Object.defineProperty(F,"ClassProperty",{enumerable:!0,get:function(){return j.classProperty}});Object.defineProperty(F,"ConditionalExpression",{enumerable:!0,get:function(){return j.conditionalExpression}});Object.defineProperty(F,"ContinueStatement",{enumerable:!0,get:function(){return j.continueStatement}});Object.defineProperty(F,"DebuggerStatement",{enumerable:!0,get:function(){return j.debuggerStatement}});Object.defineProperty(F,"DecimalLiteral",{enumerable:!0,get:function(){return j.decimalLiteral}});Object.defineProperty(F,"DeclareClass",{enumerable:!0,get:function(){return j.declareClass}});Object.defineProperty(F,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return j.declareExportAllDeclaration}});Object.defineProperty(F,"DeclareExportDeclaration",{enumerable:!0,get:function(){return j.declareExportDeclaration}});Object.defineProperty(F,"DeclareFunction",{enumerable:!0,get:function(){return j.declareFunction}});Object.defineProperty(F,"DeclareInterface",{enumerable:!0,get:function(){return j.declareInterface}});Object.defineProperty(F,"DeclareModule",{enumerable:!0,get:function(){return j.declareModule}});Object.defineProperty(F,"DeclareModuleExports",{enumerable:!0,get:function(){return j.declareModuleExports}});Object.defineProperty(F,"DeclareOpaqueType",{enumerable:!0,get:function(){return j.declareOpaqueType}});Object.defineProperty(F,"DeclareTypeAlias",{enumerable:!0,get:function(){return j.declareTypeAlias}});Object.defineProperty(F,"DeclareVariable",{enumerable:!0,get:function(){return j.declareVariable}});Object.defineProperty(F,"DeclaredPredicate",{enumerable:!0,get:function(){return j.declaredPredicate}});Object.defineProperty(F,"Decorator",{enumerable:!0,get:function(){return j.decorator}});Object.defineProperty(F,"Directive",{enumerable:!0,get:function(){return j.directive}});Object.defineProperty(F,"DirectiveLiteral",{enumerable:!0,get:function(){return j.directiveLiteral}});Object.defineProperty(F,"DoExpression",{enumerable:!0,get:function(){return j.doExpression}});Object.defineProperty(F,"DoWhileStatement",{enumerable:!0,get:function(){return j.doWhileStatement}});Object.defineProperty(F,"EmptyStatement",{enumerable:!0,get:function(){return j.emptyStatement}});Object.defineProperty(F,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return j.emptyTypeAnnotation}});Object.defineProperty(F,"EnumBooleanBody",{enumerable:!0,get:function(){return j.enumBooleanBody}});Object.defineProperty(F,"EnumBooleanMember",{enumerable:!0,get:function(){return j.enumBooleanMember}});Object.defineProperty(F,"EnumDeclaration",{enumerable:!0,get:function(){return j.enumDeclaration}});Object.defineProperty(F,"EnumDefaultedMember",{enumerable:!0,get:function(){return j.enumDefaultedMember}});Object.defineProperty(F,"EnumNumberBody",{enumerable:!0,get:function(){return j.enumNumberBody}});Object.defineProperty(F,"EnumNumberMember",{enumerable:!0,get:function(){return j.enumNumberMember}});Object.defineProperty(F,"EnumStringBody",{enumerable:!0,get:function(){return j.enumStringBody}});Object.defineProperty(F,"EnumStringMember",{enumerable:!0,get:function(){return j.enumStringMember}});Object.defineProperty(F,"EnumSymbolBody",{enumerable:!0,get:function(){return j.enumSymbolBody}});Object.defineProperty(F,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return j.existsTypeAnnotation}});Object.defineProperty(F,"ExportAllDeclaration",{enumerable:!0,get:function(){return j.exportAllDeclaration}});Object.defineProperty(F,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return j.exportDefaultDeclaration}});Object.defineProperty(F,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return j.exportDefaultSpecifier}});Object.defineProperty(F,"ExportNamedDeclaration",{enumerable:!0,get:function(){return j.exportNamedDeclaration}});Object.defineProperty(F,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return j.exportNamespaceSpecifier}});Object.defineProperty(F,"ExportSpecifier",{enumerable:!0,get:function(){return j.exportSpecifier}});Object.defineProperty(F,"ExpressionStatement",{enumerable:!0,get:function(){return j.expressionStatement}});Object.defineProperty(F,"File",{enumerable:!0,get:function(){return j.file}});Object.defineProperty(F,"ForInStatement",{enumerable:!0,get:function(){return j.forInStatement}});Object.defineProperty(F,"ForOfStatement",{enumerable:!0,get:function(){return j.forOfStatement}});Object.defineProperty(F,"ForStatement",{enumerable:!0,get:function(){return j.forStatement}});Object.defineProperty(F,"FunctionDeclaration",{enumerable:!0,get:function(){return j.functionDeclaration}});Object.defineProperty(F,"FunctionExpression",{enumerable:!0,get:function(){return j.functionExpression}});Object.defineProperty(F,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return j.functionTypeAnnotation}});Object.defineProperty(F,"FunctionTypeParam",{enumerable:!0,get:function(){return j.functionTypeParam}});Object.defineProperty(F,"GenericTypeAnnotation",{enumerable:!0,get:function(){return j.genericTypeAnnotation}});Object.defineProperty(F,"Identifier",{enumerable:!0,get:function(){return j.identifier}});Object.defineProperty(F,"IfStatement",{enumerable:!0,get:function(){return j.ifStatement}});Object.defineProperty(F,"Import",{enumerable:!0,get:function(){return j.import}});Object.defineProperty(F,"ImportAttribute",{enumerable:!0,get:function(){return j.importAttribute}});Object.defineProperty(F,"ImportDeclaration",{enumerable:!0,get:function(){return j.importDeclaration}});Object.defineProperty(F,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return j.importDefaultSpecifier}});Object.defineProperty(F,"ImportExpression",{enumerable:!0,get:function(){return j.importExpression}});Object.defineProperty(F,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return j.importNamespaceSpecifier}});Object.defineProperty(F,"ImportSpecifier",{enumerable:!0,get:function(){return j.importSpecifier}});Object.defineProperty(F,"IndexedAccessType",{enumerable:!0,get:function(){return j.indexedAccessType}});Object.defineProperty(F,"InferredPredicate",{enumerable:!0,get:function(){return j.inferredPredicate}});Object.defineProperty(F,"InterfaceDeclaration",{enumerable:!0,get:function(){return j.interfaceDeclaration}});Object.defineProperty(F,"InterfaceExtends",{enumerable:!0,get:function(){return j.interfaceExtends}});Object.defineProperty(F,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return j.interfaceTypeAnnotation}});Object.defineProperty(F,"InterpreterDirective",{enumerable:!0,get:function(){return j.interpreterDirective}});Object.defineProperty(F,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return j.intersectionTypeAnnotation}});Object.defineProperty(F,"JSXAttribute",{enumerable:!0,get:function(){return j.jsxAttribute}});Object.defineProperty(F,"JSXClosingElement",{enumerable:!0,get:function(){return j.jsxClosingElement}});Object.defineProperty(F,"JSXClosingFragment",{enumerable:!0,get:function(){return j.jsxClosingFragment}});Object.defineProperty(F,"JSXElement",{enumerable:!0,get:function(){return j.jsxElement}});Object.defineProperty(F,"JSXEmptyExpression",{enumerable:!0,get:function(){return j.jsxEmptyExpression}});Object.defineProperty(F,"JSXExpressionContainer",{enumerable:!0,get:function(){return j.jsxExpressionContainer}});Object.defineProperty(F,"JSXFragment",{enumerable:!0,get:function(){return j.jsxFragment}});Object.defineProperty(F,"JSXIdentifier",{enumerable:!0,get:function(){return j.jsxIdentifier}});Object.defineProperty(F,"JSXMemberExpression",{enumerable:!0,get:function(){return j.jsxMemberExpression}});Object.defineProperty(F,"JSXNamespacedName",{enumerable:!0,get:function(){return j.jsxNamespacedName}});Object.defineProperty(F,"JSXOpeningElement",{enumerable:!0,get:function(){return j.jsxOpeningElement}});Object.defineProperty(F,"JSXOpeningFragment",{enumerable:!0,get:function(){return j.jsxOpeningFragment}});Object.defineProperty(F,"JSXSpreadAttribute",{enumerable:!0,get:function(){return j.jsxSpreadAttribute}});Object.defineProperty(F,"JSXSpreadChild",{enumerable:!0,get:function(){return j.jsxSpreadChild}});Object.defineProperty(F,"JSXText",{enumerable:!0,get:function(){return j.jsxText}});Object.defineProperty(F,"LabeledStatement",{enumerable:!0,get:function(){return j.labeledStatement}});Object.defineProperty(F,"LogicalExpression",{enumerable:!0,get:function(){return j.logicalExpression}});Object.defineProperty(F,"MemberExpression",{enumerable:!0,get:function(){return j.memberExpression}});Object.defineProperty(F,"MetaProperty",{enumerable:!0,get:function(){return j.metaProperty}});Object.defineProperty(F,"MixedTypeAnnotation",{enumerable:!0,get:function(){return j.mixedTypeAnnotation}});Object.defineProperty(F,"ModuleExpression",{enumerable:!0,get:function(){return j.moduleExpression}});Object.defineProperty(F,"NewExpression",{enumerable:!0,get:function(){return j.newExpression}});Object.defineProperty(F,"Noop",{enumerable:!0,get:function(){return j.noop}});Object.defineProperty(F,"NullLiteral",{enumerable:!0,get:function(){return j.nullLiteral}});Object.defineProperty(F,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return j.nullLiteralTypeAnnotation}});Object.defineProperty(F,"NullableTypeAnnotation",{enumerable:!0,get:function(){return j.nullableTypeAnnotation}});Object.defineProperty(F,"NumberLiteral",{enumerable:!0,get:function(){return j.numberLiteral}});Object.defineProperty(F,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return j.numberLiteralTypeAnnotation}});Object.defineProperty(F,"NumberTypeAnnotation",{enumerable:!0,get:function(){return j.numberTypeAnnotation}});Object.defineProperty(F,"NumericLiteral",{enumerable:!0,get:function(){return j.numericLiteral}});Object.defineProperty(F,"ObjectExpression",{enumerable:!0,get:function(){return j.objectExpression}});Object.defineProperty(F,"ObjectMethod",{enumerable:!0,get:function(){return j.objectMethod}});Object.defineProperty(F,"ObjectPattern",{enumerable:!0,get:function(){return j.objectPattern}});Object.defineProperty(F,"ObjectProperty",{enumerable:!0,get:function(){return j.objectProperty}});Object.defineProperty(F,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return j.objectTypeAnnotation}});Object.defineProperty(F,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return j.objectTypeCallProperty}});Object.defineProperty(F,"ObjectTypeIndexer",{enumerable:!0,get:function(){return j.objectTypeIndexer}});Object.defineProperty(F,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return j.objectTypeInternalSlot}});Object.defineProperty(F,"ObjectTypeProperty",{enumerable:!0,get:function(){return j.objectTypeProperty}});Object.defineProperty(F,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return j.objectTypeSpreadProperty}});Object.defineProperty(F,"OpaqueType",{enumerable:!0,get:function(){return j.opaqueType}});Object.defineProperty(F,"OptionalCallExpression",{enumerable:!0,get:function(){return j.optionalCallExpression}});Object.defineProperty(F,"OptionalIndexedAccessType",{enumerable:!0,get:function(){return j.optionalIndexedAccessType}});Object.defineProperty(F,"OptionalMemberExpression",{enumerable:!0,get:function(){return j.optionalMemberExpression}});Object.defineProperty(F,"ParenthesizedExpression",{enumerable:!0,get:function(){return j.parenthesizedExpression}});Object.defineProperty(F,"PipelineBareFunction",{enumerable:!0,get:function(){return j.pipelineBareFunction}});Object.defineProperty(F,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return j.pipelinePrimaryTopicReference}});Object.defineProperty(F,"PipelineTopicExpression",{enumerable:!0,get:function(){return j.pipelineTopicExpression}});Object.defineProperty(F,"Placeholder",{enumerable:!0,get:function(){return j.placeholder}});Object.defineProperty(F,"PrivateName",{enumerable:!0,get:function(){return j.privateName}});Object.defineProperty(F,"Program",{enumerable:!0,get:function(){return j.program}});Object.defineProperty(F,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return j.qualifiedTypeIdentifier}});Object.defineProperty(F,"RecordExpression",{enumerable:!0,get:function(){return j.recordExpression}});Object.defineProperty(F,"RegExpLiteral",{enumerable:!0,get:function(){return j.regExpLiteral}});Object.defineProperty(F,"RegexLiteral",{enumerable:!0,get:function(){return j.regexLiteral}});Object.defineProperty(F,"RestElement",{enumerable:!0,get:function(){return j.restElement}});Object.defineProperty(F,"RestProperty",{enumerable:!0,get:function(){return j.restProperty}});Object.defineProperty(F,"ReturnStatement",{enumerable:!0,get:function(){return j.returnStatement}});Object.defineProperty(F,"SequenceExpression",{enumerable:!0,get:function(){return j.sequenceExpression}});Object.defineProperty(F,"SpreadElement",{enumerable:!0,get:function(){return j.spreadElement}});Object.defineProperty(F,"SpreadProperty",{enumerable:!0,get:function(){return j.spreadProperty}});Object.defineProperty(F,"StaticBlock",{enumerable:!0,get:function(){return j.staticBlock}});Object.defineProperty(F,"StringLiteral",{enumerable:!0,get:function(){return j.stringLiteral}});Object.defineProperty(F,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return j.stringLiteralTypeAnnotation}});Object.defineProperty(F,"StringTypeAnnotation",{enumerable:!0,get:function(){return j.stringTypeAnnotation}});Object.defineProperty(F,"Super",{enumerable:!0,get:function(){return j.super}});Object.defineProperty(F,"SwitchCase",{enumerable:!0,get:function(){return j.switchCase}});Object.defineProperty(F,"SwitchStatement",{enumerable:!0,get:function(){return j.switchStatement}});Object.defineProperty(F,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return j.symbolTypeAnnotation}});Object.defineProperty(F,"TSAnyKeyword",{enumerable:!0,get:function(){return j.tsAnyKeyword}});Object.defineProperty(F,"TSArrayType",{enumerable:!0,get:function(){return j.tsArrayType}});Object.defineProperty(F,"TSAsExpression",{enumerable:!0,get:function(){return j.tsAsExpression}});Object.defineProperty(F,"TSBigIntKeyword",{enumerable:!0,get:function(){return j.tsBigIntKeyword}});Object.defineProperty(F,"TSBooleanKeyword",{enumerable:!0,get:function(){return j.tsBooleanKeyword}});Object.defineProperty(F,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return j.tsCallSignatureDeclaration}});Object.defineProperty(F,"TSConditionalType",{enumerable:!0,get:function(){return j.tsConditionalType}});Object.defineProperty(F,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return j.tsConstructSignatureDeclaration}});Object.defineProperty(F,"TSConstructorType",{enumerable:!0,get:function(){return j.tsConstructorType}});Object.defineProperty(F,"TSDeclareFunction",{enumerable:!0,get:function(){return j.tsDeclareFunction}});Object.defineProperty(F,"TSDeclareMethod",{enumerable:!0,get:function(){return j.tsDeclareMethod}});Object.defineProperty(F,"TSEnumDeclaration",{enumerable:!0,get:function(){return j.tsEnumDeclaration}});Object.defineProperty(F,"TSEnumMember",{enumerable:!0,get:function(){return j.tsEnumMember}});Object.defineProperty(F,"TSExportAssignment",{enumerable:!0,get:function(){return j.tsExportAssignment}});Object.defineProperty(F,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return j.tsExpressionWithTypeArguments}});Object.defineProperty(F,"TSExternalModuleReference",{enumerable:!0,get:function(){return j.tsExternalModuleReference}});Object.defineProperty(F,"TSFunctionType",{enumerable:!0,get:function(){return j.tsFunctionType}});Object.defineProperty(F,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return j.tsImportEqualsDeclaration}});Object.defineProperty(F,"TSImportType",{enumerable:!0,get:function(){return j.tsImportType}});Object.defineProperty(F,"TSIndexSignature",{enumerable:!0,get:function(){return j.tsIndexSignature}});Object.defineProperty(F,"TSIndexedAccessType",{enumerable:!0,get:function(){return j.tsIndexedAccessType}});Object.defineProperty(F,"TSInferType",{enumerable:!0,get:function(){return j.tsInferType}});Object.defineProperty(F,"TSInstantiationExpression",{enumerable:!0,get:function(){return j.tsInstantiationExpression}});Object.defineProperty(F,"TSInterfaceBody",{enumerable:!0,get:function(){return j.tsInterfaceBody}});Object.defineProperty(F,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return j.tsInterfaceDeclaration}});Object.defineProperty(F,"TSIntersectionType",{enumerable:!0,get:function(){return j.tsIntersectionType}});Object.defineProperty(F,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return j.tsIntrinsicKeyword}});Object.defineProperty(F,"TSLiteralType",{enumerable:!0,get:function(){return j.tsLiteralType}});Object.defineProperty(F,"TSMappedType",{enumerable:!0,get:function(){return j.tsMappedType}});Object.defineProperty(F,"TSMethodSignature",{enumerable:!0,get:function(){return j.tsMethodSignature}});Object.defineProperty(F,"TSModuleBlock",{enumerable:!0,get:function(){return j.tsModuleBlock}});Object.defineProperty(F,"TSModuleDeclaration",{enumerable:!0,get:function(){return j.tsModuleDeclaration}});Object.defineProperty(F,"TSNamedTupleMember",{enumerable:!0,get:function(){return j.tsNamedTupleMember}});Object.defineProperty(F,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return j.tsNamespaceExportDeclaration}});Object.defineProperty(F,"TSNeverKeyword",{enumerable:!0,get:function(){return j.tsNeverKeyword}});Object.defineProperty(F,"TSNonNullExpression",{enumerable:!0,get:function(){return j.tsNonNullExpression}});Object.defineProperty(F,"TSNullKeyword",{enumerable:!0,get:function(){return j.tsNullKeyword}});Object.defineProperty(F,"TSNumberKeyword",{enumerable:!0,get:function(){return j.tsNumberKeyword}});Object.defineProperty(F,"TSObjectKeyword",{enumerable:!0,get:function(){return j.tsObjectKeyword}});Object.defineProperty(F,"TSOptionalType",{enumerable:!0,get:function(){return j.tsOptionalType}});Object.defineProperty(F,"TSParameterProperty",{enumerable:!0,get:function(){return j.tsParameterProperty}});Object.defineProperty(F,"TSParenthesizedType",{enumerable:!0,get:function(){return j.tsParenthesizedType}});Object.defineProperty(F,"TSPropertySignature",{enumerable:!0,get:function(){return j.tsPropertySignature}});Object.defineProperty(F,"TSQualifiedName",{enumerable:!0,get:function(){return j.tsQualifiedName}});Object.defineProperty(F,"TSRestType",{enumerable:!0,get:function(){return j.tsRestType}});Object.defineProperty(F,"TSSatisfiesExpression",{enumerable:!0,get:function(){return j.tsSatisfiesExpression}});Object.defineProperty(F,"TSStringKeyword",{enumerable:!0,get:function(){return j.tsStringKeyword}});Object.defineProperty(F,"TSSymbolKeyword",{enumerable:!0,get:function(){return j.tsSymbolKeyword}});Object.defineProperty(F,"TSThisType",{enumerable:!0,get:function(){return j.tsThisType}});Object.defineProperty(F,"TSTupleType",{enumerable:!0,get:function(){return j.tsTupleType}});Object.defineProperty(F,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return j.tsTypeAliasDeclaration}});Object.defineProperty(F,"TSTypeAnnotation",{enumerable:!0,get:function(){return j.tsTypeAnnotation}});Object.defineProperty(F,"TSTypeAssertion",{enumerable:!0,get:function(){return j.tsTypeAssertion}});Object.defineProperty(F,"TSTypeLiteral",{enumerable:!0,get:function(){return j.tsTypeLiteral}});Object.defineProperty(F,"TSTypeOperator",{enumerable:!0,get:function(){return j.tsTypeOperator}});Object.defineProperty(F,"TSTypeParameter",{enumerable:!0,get:function(){return j.tsTypeParameter}});Object.defineProperty(F,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return j.tsTypeParameterDeclaration}});Object.defineProperty(F,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return j.tsTypeParameterInstantiation}});Object.defineProperty(F,"TSTypePredicate",{enumerable:!0,get:function(){return j.tsTypePredicate}});Object.defineProperty(F,"TSTypeQuery",{enumerable:!0,get:function(){return j.tsTypeQuery}});Object.defineProperty(F,"TSTypeReference",{enumerable:!0,get:function(){return j.tsTypeReference}});Object.defineProperty(F,"TSUndefinedKeyword",{enumerable:!0,get:function(){return j.tsUndefinedKeyword}});Object.defineProperty(F,"TSUnionType",{enumerable:!0,get:function(){return j.tsUnionType}});Object.defineProperty(F,"TSUnknownKeyword",{enumerable:!0,get:function(){return j.tsUnknownKeyword}});Object.defineProperty(F,"TSVoidKeyword",{enumerable:!0,get:function(){return j.tsVoidKeyword}});Object.defineProperty(F,"TaggedTemplateExpression",{enumerable:!0,get:function(){return j.taggedTemplateExpression}});Object.defineProperty(F,"TemplateElement",{enumerable:!0,get:function(){return j.templateElement}});Object.defineProperty(F,"TemplateLiteral",{enumerable:!0,get:function(){return j.templateLiteral}});Object.defineProperty(F,"ThisExpression",{enumerable:!0,get:function(){return j.thisExpression}});Object.defineProperty(F,"ThisTypeAnnotation",{enumerable:!0,get:function(){return j.thisTypeAnnotation}});Object.defineProperty(F,"ThrowStatement",{enumerable:!0,get:function(){return j.throwStatement}});Object.defineProperty(F,"TopicReference",{enumerable:!0,get:function(){return j.topicReference}});Object.defineProperty(F,"TryStatement",{enumerable:!0,get:function(){return j.tryStatement}});Object.defineProperty(F,"TupleExpression",{enumerable:!0,get:function(){return j.tupleExpression}});Object.defineProperty(F,"TupleTypeAnnotation",{enumerable:!0,get:function(){return j.tupleTypeAnnotation}});Object.defineProperty(F,"TypeAlias",{enumerable:!0,get:function(){return j.typeAlias}});Object.defineProperty(F,"TypeAnnotation",{enumerable:!0,get:function(){return j.typeAnnotation}});Object.defineProperty(F,"TypeCastExpression",{enumerable:!0,get:function(){return j.typeCastExpression}});Object.defineProperty(F,"TypeParameter",{enumerable:!0,get:function(){return j.typeParameter}});Object.defineProperty(F,"TypeParameterDeclaration",{enumerable:!0,get:function(){return j.typeParameterDeclaration}});Object.defineProperty(F,"TypeParameterInstantiation",{enumerable:!0,get:function(){return j.typeParameterInstantiation}});Object.defineProperty(F,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return j.typeofTypeAnnotation}});Object.defineProperty(F,"UnaryExpression",{enumerable:!0,get:function(){return j.unaryExpression}});Object.defineProperty(F,"UnionTypeAnnotation",{enumerable:!0,get:function(){return j.unionTypeAnnotation}});Object.defineProperty(F,"UpdateExpression",{enumerable:!0,get:function(){return j.updateExpression}});Object.defineProperty(F,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return j.v8IntrinsicIdentifier}});Object.defineProperty(F,"VariableDeclaration",{enumerable:!0,get:function(){return j.variableDeclaration}});Object.defineProperty(F,"VariableDeclarator",{enumerable:!0,get:function(){return j.variableDeclarator}});Object.defineProperty(F,"Variance",{enumerable:!0,get:function(){return j.variance}});Object.defineProperty(F,"VoidTypeAnnotation",{enumerable:!0,get:function(){return j.voidTypeAnnotation}});Object.defineProperty(F,"WhileStatement",{enumerable:!0,get:function(){return j.whileStatement}});Object.defineProperty(F,"WithStatement",{enumerable:!0,get:function(){return j.withStatement}});Object.defineProperty(F,"YieldExpression",{enumerable:!0,get:function(){return j.yieldExpression}});var j=W2()});var NX=S((hY)=>{Object.defineProperty(hY,"__esModule",{value:!0});hY.buildUndefinedNode=w01;var bY=W2();function w01(){return bY.unaryExpression("void",bY.numericLiteral(0),!0)}});var L0=S((cY)=>{Object.defineProperty(cY,"__esModule",{value:!0});cY.default=T01;var yY=N2(),mY=a1(),{hasOwn:n2}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function xY(J,G,X,H){if(J&&typeof J.type==="string")return lY(J,G,X,H);return J}function kX(J,G,X,H){if(Array.isArray(J))return J.map((Z)=>xY(Z,G,X,H));return xY(J,G,X,H)}function T01(J,G=!0,X=!1){return lY(J,G,X,new Map)}function lY(J,G=!0,X=!1,H){if(!J)return J;let{type:Z}=J,V={type:J.type};if(mY.isIdentifier(J)){if(V.name=J.name,n2(J,"optional")&&typeof J.optional==="boolean")V.optional=J.optional;if(n2(J,"typeAnnotation"))V.typeAnnotation=G?kX(J.typeAnnotation,!0,X,H):J.typeAnnotation;if(n2(J,"decorators"))V.decorators=G?kX(J.decorators,!0,X,H):J.decorators}else if(!n2(yY.NODE_FIELDS,Z))throw new Error(`Unknown node type: "${Z}"`);else for(let Q of Object.keys(yY.NODE_FIELDS[Z]))if(n2(J,Q))if(G)V[Q]=mY.isFile(J)&&Q==="comments"?DJ(J.comments,G,X,H):kX(J[Q],!0,X,H);else V[Q]=J[Q];if(n2(J,"loc"))if(X)V.loc=null;else V.loc=J.loc;if(n2(J,"leadingComments"))V.leadingComments=DJ(J.leadingComments,G,X,H);if(n2(J,"innerComments"))V.innerComments=DJ(J.innerComments,G,X,H);if(n2(J,"trailingComments"))V.trailingComments=DJ(J.trailingComments,G,X,H);if(n2(J,"extra"))V.extra=Object.assign({},J.extra);return V}function DJ(J,G,X,H){if(!J||!G)return J;return J.map((Z)=>{let V=H.get(Z);if(V)return V;let{type:Q,value:Y,loc:z}=Z,W={type:Q,value:Y,loc:z};if(X)W.loc=null;return H.set(Z,W),W})}});var aY=S((rY)=>{Object.defineProperty(rY,"__esModule",{value:!0});rY.default=E01;var k01=L0();function E01(J){return k01.default(J,!1)}});var uY=S((iY)=>{Object.defineProperty(iY,"__esModule",{value:!0});iY.default=_01;var v01=L0();function _01(J){return v01.default(J)}});var sY=S((dY)=>{Object.defineProperty(dY,"__esModule",{value:!0});dY.default=h01;var b01=L0();function h01(J){return b01.default(J,!0,!0)}});var nY=S((pY)=>{Object.defineProperty(pY,"__esModule",{value:!0});pY.default=x01;var m01=L0();function x01(J){return m01.default(J,!1,!0)}});var EX=S((oY)=>{Object.defineProperty(oY,"__esModule",{value:!0});oY.default=c01;function c01(J,G,X){if(!X||!J)return J;let H=`${G}Comments`;if(J[H])if(G==="leading")J[H]=X.concat(J[H]);else J[H].push(...X);else J[H]=X;return J}});var tY=S((eY)=>{Object.defineProperty(eY,"__esModule",{value:!0});eY.default=i01;var a01=EX();function i01(J,G,X,H){return a01.default(J,G,[{type:H?"CommentLine":"CommentBlock",value:X}])}});var AJ=S((Jz)=>{Object.defineProperty(Jz,"__esModule",{value:!0});Jz.default=d01;function d01(J,G,X){if(G&&X)G[J]=Array.from(new Set([].concat(G[J],X[J]).filter(Boolean)))}});var OX=S((Gz)=>{Object.defineProperty(Gz,"__esModule",{value:!0});Gz.default=n01;var p01=AJ();function n01(J,G){p01.default("innerComments",J,G)}});var vX=S((Xz)=>{Object.defineProperty(Xz,"__esModule",{value:!0});Xz.default=t01;var e01=AJ();function t01(J,G){e01.default("leadingComments",J,G)}});var _X=S((Hz)=>{Object.defineProperty(Hz,"__esModule",{value:!0});Hz.default=X51;var G51=AJ();function X51(J,G){G51.default("trailingComments",J,G)}});var gX=S((Zz)=>{Object.defineProperty(Zz,"__esModule",{value:!0});Zz.default=Y51;var Z51=_X(),V51=vX(),Q51=OX();function Y51(J,G){return Z51.default(J,G),V51.default(J,G),Q51.default(J,G),J}});var Qz=S((Vz)=>{Object.defineProperty(Vz,"__esModule",{value:!0});Vz.default=$51;var W51=P0();function $51(J){return W51.COMMENT_KEYS.forEach((G)=>{J[G]=null}),J}});var Wz=S((Yz)=>{Object.defineProperty(Yz,"__esModule",{value:!0});Yz.WHILE_TYPES=Yz.USERWHITESPACABLE_TYPES=Yz.UNARYLIKE_TYPES=Yz.TYPESCRIPT_TYPES=Yz.TSTYPE_TYPES=Yz.TSTYPEELEMENT_TYPES=Yz.TSENTITYNAME_TYPES=Yz.TSBASETYPE_TYPES=Yz.TERMINATORLESS_TYPES=Yz.STATEMENT_TYPES=Yz.STANDARDIZED_TYPES=Yz.SCOPABLE_TYPES=Yz.PUREISH_TYPES=Yz.PROPERTY_TYPES=Yz.PRIVATE_TYPES=Yz.PATTERN_TYPES=Yz.PATTERNLIKE_TYPES=Yz.OBJECTMEMBER_TYPES=Yz.MODULESPECIFIER_TYPES=Yz.MODULEDECLARATION_TYPES=Yz.MISCELLANEOUS_TYPES=Yz.METHOD_TYPES=Yz.LVAL_TYPES=Yz.LOOP_TYPES=Yz.LITERAL_TYPES=Yz.JSX_TYPES=Yz.IMPORTOREXPORTDECLARATION_TYPES=Yz.IMMUTABLE_TYPES=Yz.FUNCTION_TYPES=Yz.FUNCTIONPARENT_TYPES=Yz.FOR_TYPES=Yz.FORXSTATEMENT_TYPES=Yz.FLOW_TYPES=Yz.FLOWTYPE_TYPES=Yz.FLOWPREDICATE_TYPES=Yz.FLOWDECLARATION_TYPES=Yz.FLOWBASEANNOTATION_TYPES=Yz.EXPRESSION_TYPES=Yz.EXPRESSIONWRAPPER_TYPES=Yz.EXPORTDECLARATION_TYPES=Yz.ENUMMEMBER_TYPES=Yz.ENUMBODY_TYPES=Yz.DECLARATION_TYPES=Yz.CONDITIONAL_TYPES=Yz.COMPLETIONSTATEMENT_TYPES=Yz.CLASS_TYPES=Yz.BLOCK_TYPES=Yz.BLOCKPARENT_TYPES=Yz.BINARY_TYPES=Yz.ACCESSOR_TYPES=void 0;var U1=N2(),eE1=Yz.STANDARDIZED_TYPES=U1.FLIPPED_ALIAS_KEYS.Standardized,tE1=Yz.EXPRESSION_TYPES=U1.FLIPPED_ALIAS_KEYS.Expression,JO1=Yz.BINARY_TYPES=U1.FLIPPED_ALIAS_KEYS.Binary,GO1=Yz.SCOPABLE_TYPES=U1.FLIPPED_ALIAS_KEYS.Scopable,XO1=Yz.BLOCKPARENT_TYPES=U1.FLIPPED_ALIAS_KEYS.BlockParent,HO1=Yz.BLOCK_TYPES=U1.FLIPPED_ALIAS_KEYS.Block,ZO1=Yz.STATEMENT_TYPES=U1.FLIPPED_ALIAS_KEYS.Statement,VO1=Yz.TERMINATORLESS_TYPES=U1.FLIPPED_ALIAS_KEYS.Terminatorless,QO1=Yz.COMPLETIONSTATEMENT_TYPES=U1.FLIPPED_ALIAS_KEYS.CompletionStatement,YO1=Yz.CONDITIONAL_TYPES=U1.FLIPPED_ALIAS_KEYS.Conditional,zO1=Yz.LOOP_TYPES=U1.FLIPPED_ALIAS_KEYS.Loop,WO1=Yz.WHILE_TYPES=U1.FLIPPED_ALIAS_KEYS.While,$O1=Yz.EXPRESSIONWRAPPER_TYPES=U1.FLIPPED_ALIAS_KEYS.ExpressionWrapper,UO1=Yz.FOR_TYPES=U1.FLIPPED_ALIAS_KEYS.For,KO1=Yz.FORXSTATEMENT_TYPES=U1.FLIPPED_ALIAS_KEYS.ForXStatement,BO1=Yz.FUNCTION_TYPES=U1.FLIPPED_ALIAS_KEYS.Function,RO1=Yz.FUNCTIONPARENT_TYPES=U1.FLIPPED_ALIAS_KEYS.FunctionParent,MO1=Yz.PUREISH_TYPES=U1.FLIPPED_ALIAS_KEYS.Pureish,qO1=Yz.DECLARATION_TYPES=U1.FLIPPED_ALIAS_KEYS.Declaration,FO1=Yz.PATTERNLIKE_TYPES=U1.FLIPPED_ALIAS_KEYS.PatternLike,jO1=Yz.LVAL_TYPES=U1.FLIPPED_ALIAS_KEYS.LVal,fO1=Yz.TSENTITYNAME_TYPES=U1.FLIPPED_ALIAS_KEYS.TSEntityName,DO1=Yz.LITERAL_TYPES=U1.FLIPPED_ALIAS_KEYS.Literal,AO1=Yz.IMMUTABLE_TYPES=U1.FLIPPED_ALIAS_KEYS.Immutable,IO1=Yz.USERWHITESPACABLE_TYPES=U1.FLIPPED_ALIAS_KEYS.UserWhitespacable,CO1=Yz.METHOD_TYPES=U1.FLIPPED_ALIAS_KEYS.Method,SO1=Yz.OBJECTMEMBER_TYPES=U1.FLIPPED_ALIAS_KEYS.ObjectMember,PO1=Yz.PROPERTY_TYPES=U1.FLIPPED_ALIAS_KEYS.Property,wO1=Yz.UNARYLIKE_TYPES=U1.FLIPPED_ALIAS_KEYS.UnaryLike,LO1=Yz.PATTERN_TYPES=U1.FLIPPED_ALIAS_KEYS.Pattern,TO1=Yz.CLASS_TYPES=U1.FLIPPED_ALIAS_KEYS.Class,K51=Yz.IMPORTOREXPORTDECLARATION_TYPES=U1.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,NO1=Yz.EXPORTDECLARATION_TYPES=U1.FLIPPED_ALIAS_KEYS.ExportDeclaration,kO1=Yz.MODULESPECIFIER_TYPES=U1.FLIPPED_ALIAS_KEYS.ModuleSpecifier,EO1=Yz.ACCESSOR_TYPES=U1.FLIPPED_ALIAS_KEYS.Accessor,OO1=Yz.PRIVATE_TYPES=U1.FLIPPED_ALIAS_KEYS.Private,vO1=Yz.FLOW_TYPES=U1.FLIPPED_ALIAS_KEYS.Flow,_O1=Yz.FLOWTYPE_TYPES=U1.FLIPPED_ALIAS_KEYS.FlowType,gO1=Yz.FLOWBASEANNOTATION_TYPES=U1.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,bO1=Yz.FLOWDECLARATION_TYPES=U1.FLIPPED_ALIAS_KEYS.FlowDeclaration,hO1=Yz.FLOWPREDICATE_TYPES=U1.FLIPPED_ALIAS_KEYS.FlowPredicate,yO1=Yz.ENUMBODY_TYPES=U1.FLIPPED_ALIAS_KEYS.EnumBody,mO1=Yz.ENUMMEMBER_TYPES=U1.FLIPPED_ALIAS_KEYS.EnumMember,xO1=Yz.JSX_TYPES=U1.FLIPPED_ALIAS_KEYS.JSX,lO1=Yz.MISCELLANEOUS_TYPES=U1.FLIPPED_ALIAS_KEYS.Miscellaneous,cO1=Yz.TYPESCRIPT_TYPES=U1.FLIPPED_ALIAS_KEYS.TypeScript,rO1=Yz.TSTYPEELEMENT_TYPES=U1.FLIPPED_ALIAS_KEYS.TSTypeElement,aO1=Yz.TSTYPE_TYPES=U1.FLIPPED_ALIAS_KEYS.TSType,iO1=Yz.TSBASETYPE_TYPES=U1.FLIPPED_ALIAS_KEYS.TSBaseType,uO1=Yz.MODULEDECLARATION_TYPES=K51});var hX=S(($z)=>{Object.defineProperty($z,"__esModule",{value:!0});$z.default=z91;var IJ=a1(),bX=W2();function z91(J,G){if(IJ.isBlockStatement(J))return J;let X=[];if(IJ.isEmptyStatement(J))X=[];else{if(!IJ.isStatement(J))if(IJ.isFunction(G))J=bX.returnStatement(J);else J=bX.expressionStatement(J);X=[J]}return bX.blockStatement(X)}});var Kz=S((Uz)=>{Object.defineProperty(Uz,"__esModule",{value:!0});Uz.default=U91;var $91=hX();function U91(J,G="body"){let X=$91.default(J[G],J);return J[G]=X,X}});var yX=S((Bz)=>{Object.defineProperty(Bz,"__esModule",{value:!0});Bz.default=M91;var B91=k5(),R91=j9();function M91(J){J=J+"";let G="";for(let X of J)G+=R91.isIdentifierChar(X.codePointAt(0))?X:"-";if(G=G.replace(/^[-0-9]+/,""),G=G.replace(/[-\s]+(.)?/g,function(X,H){return H?H.toUpperCase():""}),!B91.default(G))G=`_${G}`;return G||"_"}});var Mz=S((Rz)=>{Object.defineProperty(Rz,"__esModule",{value:!0});Rz.default=j91;var F91=yX();function j91(J){if(J=F91.default(J),J==="eval"||J==="arguments")J="_"+J;return J}});var Fz=S((qz)=>{Object.defineProperty(qz,"__esModule",{value:!0});qz.default=I91;var D91=a1(),A91=W2();function I91(J,G=J.key||J.property){if(!J.computed&&D91.isIdentifier(G))G=A91.stringLiteral(G.name);return G}});var Dz=S((jz)=>{Object.defineProperty(jz,"__esModule",{value:!0});jz.default=void 0;var P9=a1(),tO1=jz.default=S91;function S91(J){if(P9.isExpressionStatement(J))J=J.expression;if(P9.isExpression(J))return J;if(P9.isClass(J))J.type="ClassExpression";else if(P9.isFunction(J))J.type="FunctionExpression";if(!P9.isExpression(J))throw new Error(`cannot turn ${J.type} to an expression`);return J}});var xX=S((Az)=>{Object.defineProperty(Az,"__esModule",{value:!0});Az.default=mX;var P91=N2();function mX(J,G,X){if(!J)return;let H=P91.VISITOR_KEYS[J.type];if(!H)return;X=X||{},G(J,X);for(let Z of H){let V=J[Z];if(Array.isArray(V))for(let Q of V)mX(Q,G,X);else mX(V,G,X)}}});var lX=S((Cz)=>{Object.defineProperty(Cz,"__esModule",{value:!0});Cz.default=N91;var L91=P0(),Iz=["tokens","start","end","loc","raw","rawValue"],T91=[...L91.COMMENT_KEYS,"comments",...Iz];function N91(J,G={}){let X=G.preserveComments?Iz:T91;for(let Z of X)if(J[Z]!=null)J[Z]=void 0;for(let Z of Object.keys(J))if(Z[0]==="_"&&J[Z]!=null)J[Z]=void 0;let H=Object.getOwnPropertySymbols(J);for(let Z of H)J[Z]=null}});var cX=S((Sz)=>{Object.defineProperty(Sz,"__esModule",{value:!0});Sz.default=v91;var E91=xX(),O91=lX();function v91(J,G){return E91.default(J,O91.default,G),J}});var Lz=S((wz)=>{Object.defineProperty(wz,"__esModule",{value:!0});wz.default=n0;var Pz=a1(),g91=L0(),b91=cX();function n0(J,G=J.key){let X;if(J.kind==="method")return n0.increment()+"";else if(Pz.isIdentifier(G))X=G.name;else if(Pz.isStringLiteral(G))X=JSON.stringify(G.value);else X=JSON.stringify(b91.default(g91.default(G)));if(J.computed)X=`[${X}]`;if(J.static)X=`static:${X}`;return X}n0.uid=0;n0.increment=function(){if(n0.uid>=Number.MAX_SAFE_INTEGER)return n0.uid=0;else return n0.uid++}});var kz=S((Tz)=>{Object.defineProperty(Tz,"__esModule",{value:!0});Tz.default=void 0;var CJ=a1(),y91=W2(),Vv1=Tz.default=m91;function m91(J,G){if(CJ.isStatement(J))return J;let X=!1,H;if(CJ.isClass(J))X=!0,H="ClassDeclaration";else if(CJ.isFunction(J))X=!0,H="FunctionDeclaration";else if(CJ.isAssignmentExpression(J))return y91.expressionStatement(J);if(X&&!J.id)H=!1;if(!H)if(G)return!1;else throw new Error(`cannot turn ${J.type} to a statement`);return J.type=H,J}});var vz=S((Ez)=>{Object.defineProperty(Ez,"__esModule",{value:!0});Ez.default=void 0;var x91=k5(),Z2=W2(),Yv1=Ez.default=rX,l91=Function.call.bind(Object.prototype.toString);function c91(J){return l91(J)==="[object RegExp]"}function r91(J){if(typeof J!=="object"||J===null||Object.prototype.toString.call(J)!=="[object Object]")return!1;let G=Object.getPrototypeOf(J);return G===null||Object.getPrototypeOf(G)===null}function rX(J){if(J===void 0)return Z2.identifier("undefined");if(J===!0||J===!1)return Z2.booleanLiteral(J);if(J===null)return Z2.nullLiteral();if(typeof J==="string")return Z2.stringLiteral(J);if(typeof J==="number"){let G;if(Number.isFinite(J))G=Z2.numericLiteral(Math.abs(J));else{let X;if(Number.isNaN(J))X=Z2.numericLiteral(0);else X=Z2.numericLiteral(1);G=Z2.binaryExpression("/",X,Z2.numericLiteral(0))}if(J<0||Object.is(J,-0))G=Z2.unaryExpression("-",G);return G}if(c91(J)){let G=J.source,X=/\/([a-z]*)$/.exec(J.toString())[1];return Z2.regExpLiteral(G,X)}if(Array.isArray(J))return Z2.arrayExpression(J.map(rX));if(r91(J)){let G=[];for(let X of Object.keys(J)){let H;if(x91.default(X))H=Z2.identifier(X);else H=Z2.stringLiteral(X);G.push(Z2.objectProperty(H,rX(J[X])))}return Z2.objectExpression(G)}throw new Error("don't know how to turn this value into a node")}});var gz=S((_z)=>{Object.defineProperty(_z,"__esModule",{value:!0});_z.default=i91;var a91=W2();function i91(J,G,X=!1){return J.object=a91.memberExpression(J.object,J.property,J.computed),J.property=G,J.computed=!!X,J}});var yz=S((hz)=>{Object.defineProperty(hz,"__esModule",{value:!0});hz.default=s91;var bz=P0(),d91=gX();function s91(J,G){if(!J||!G)return J;for(let X of bz.INHERIT_KEYS.optional)if(J[X]==null)J[X]=G[X];for(let X of Object.keys(G))if(X[0]==="_"&&X!=="__clone")J[X]=G[X];for(let X of bz.INHERIT_KEYS.force)J[X]=G[X];return d91.default(J,G),J}});var xz=S((mz)=>{Object.defineProperty(mz,"__esModule",{value:!0});mz.default=e91;var n91=W2(),o91=F1();function e91(J,G){if(o91.isSuper(J.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return J.object=n91.memberExpression(G,J.object),J}});var cz=S((lz)=>{Object.defineProperty(lz,"__esModule",{value:!0});lz.default=J61;function J61(J){let G=[].concat(J),X=Object.create(null);while(G.length){let H=G.pop();if(!H)continue;switch(H.type){case"ArrayPattern":G.push(...H.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":G.push(H.left);break;case"ObjectPattern":G.push(...H.properties);break;case"ObjectProperty":G.push(H.value);break;case"RestElement":case"UpdateExpression":G.push(H.argument);break;case"UnaryExpression":if(H.operator==="delete")G.push(H.argument);break;case"Identifier":X[H.name]=H;break;default:break}}return X}});var w9=S((rz)=>{Object.defineProperty(rz,"__esModule",{value:!0});rz.default=aX;var Y0=a1();function aX(J,G,X,H){let Z=[].concat(J),V=Object.create(null);while(Z.length){let Q=Z.shift();if(!Q)continue;if(H&&(Y0.isAssignmentExpression(Q)||Y0.isUnaryExpression(Q)||Y0.isUpdateExpression(Q)))continue;if(Y0.isIdentifier(Q)){if(G)(V[Q.name]=V[Q.name]||[]).push(Q);else V[Q.name]=Q;continue}if(Y0.isExportDeclaration(Q)&&!Y0.isExportAllDeclaration(Q)){if(Y0.isDeclaration(Q.declaration))Z.push(Q.declaration);continue}if(X){if(Y0.isFunctionDeclaration(Q)){Z.push(Q.id);continue}if(Y0.isFunctionExpression(Q))continue}let Y=aX.keys[Q.type];if(Y)for(let z=0;z<Y.length;z++){let W=Y[z],K=Q[W];if(K)if(Array.isArray(K))Z.push(...K);else Z.push(K)}}return V}var X61={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};aX.keys=X61});var uz=S((az)=>{Object.defineProperty(az,"__esModule",{value:!0});az.default=void 0;var Z61=w9(),Rv1=az.default=V61;function V61(J,G){return Z61.default(J,G,!0)}});var pz=S((sz)=>{Object.defineProperty(sz,"__esModule",{value:!0});sz.default=Y61;var k2=a1();function Q61(J){if(k2.isNullLiteral(J))return"null";if(k2.isRegExpLiteral(J))return`/${J.pattern}/${J.flags}`;if(k2.isTemplateLiteral(J))return J.quasis.map((G)=>G.value.raw).join("");if(J.value!==void 0)return String(J.value);return null}function dz(J){if(!J.computed||k2.isLiteral(J.key))return J.key}function Y61(J,G){if("id"in J&&J.id)return{name:J.id.name,originalNode:J.id};let X="",H;if(k2.isObjectProperty(G,{value:J}))H=dz(G);else if(k2.isObjectMethod(J)||k2.isClassMethod(J)){if(H=dz(J),J.kind==="get")X="get ";else if(J.kind==="set")X="set "}else if(k2.isVariableDeclarator(G,{init:J}))H=G.id;else if(k2.isAssignmentExpression(G,{operator:"=",right:J}))H=G.left;if(!H)return null;let Z=k2.isLiteral(H)?Q61(H):k2.isIdentifier(H)?H.name:k2.isPrivateName(H)?H.id.name:null;if(Z==null)return null;return{name:X+Z,originalNode:H}}});var oz=S((nz)=>{Object.defineProperty(nz,"__esModule",{value:!0});nz.default=$61;var W61=N2();function $61(J,G,X){if(typeof G==="function")G={enter:G};let{enter:H,exit:Z}=G;iX(J,H,Z,X,[])}function iX(J,G,X,H,Z){let V=W61.VISITOR_KEYS[J.type];if(!V)return;if(G)G(J,Z,H);for(let Q of V){let Y=J[Q];if(Array.isArray(Y))for(let z=0;z<Y.length;z++){let W=Y[z];if(!W)continue;Z.push({node:J,key:Q,index:z}),iX(W,G,X,H,Z),Z.pop()}else if(Y)Z.push({node:J,key:Q}),iX(Y,G,X,H,Z),Z.pop()}if(X)X(J,Z,H)}});var tz=S((ez)=>{Object.defineProperty(ez,"__esModule",{value:!0});ez.default=B61;var K61=w9();function B61(J,G,X){if(X&&J.type==="Identifier"&&G.type==="ObjectProperty"&&X.type==="ObjectExpression")return!1;let H=K61.default.keys[G.type];if(H)for(let Z=0;Z<H.length;Z++){let V=H[Z],Q=G[V];if(Array.isArray(Q)){if(Q.includes(J))return!0}else if(Q===J)return!0}return!1}});var uX=S((JW)=>{Object.defineProperty(JW,"__esModule",{value:!0});JW.default=F61;var M61=a1(),q61=P0();function F61(J){return M61.isVariableDeclaration(J)&&(J.kind!=="var"||J[q61.BLOCK_SCOPED_SYMBOL])}});var HW=S((XW)=>{Object.defineProperty(XW,"__esModule",{value:!0});XW.default=D61;var GW=a1(),f61=uX();function D61(J){return GW.isFunctionDeclaration(J)||GW.isClassDeclaration(J)||f61.default(J)}});var VW=S((ZW)=>{Object.defineProperty(ZW,"__esModule",{value:!0});ZW.default=S61;var I61=$J(),C61=a1();function S61(J){if(I61.default(J.type,"Immutable"))return!0;if(C61.isIdentifier(J))if(J.name==="undefined")return!0;else return!1;return!1}});var zW=S((YW)=>{Object.defineProperty(YW,"__esModule",{value:!0});YW.default=dX;var QW=N2();function dX(J,G){if(typeof J!=="object"||typeof G!=="object"||J==null||G==null)return J===G;if(J.type!==G.type)return!1;let X=Object.keys(QW.NODE_FIELDS[J.type]||J.type),H=QW.VISITOR_KEYS[J.type];for(let Z of X){let V=J[Z],Q=G[Z];if(typeof V!==typeof Q)return!1;if(V==null&&Q==null)continue;else if(V==null||Q==null)return!1;if(Array.isArray(V)){if(!Array.isArray(Q))return!1;if(V.length!==Q.length)return!1;for(let Y=0;Y<V.length;Y++)if(!dX(V[Y],Q[Y]))return!1;continue}if(typeof V==="object"&&!(H!=null&&H.includes(Z))){for(let Y of Object.keys(V))if(V[Y]!==Q[Y])return!1;continue}if(!dX(V,Q))return!1}return!0}});var $W=S((WW)=>{Object.defineProperty(WW,"__esModule",{value:!0});WW.default=L61;function L61(J,G,X){switch(G.type){case"MemberExpression":case"OptionalMemberExpression":if(G.property===J)return!!G.computed;return G.object===J;case"JSXMemberExpression":return G.object===J;case"VariableDeclarator":return G.init===J;case"ArrowFunctionExpression":return G.body===J;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(G.key===J)return!!G.computed;return!1;case"ObjectProperty":if(G.key===J)return!!G.computed;return!X||X.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":if(G.key===J)return!!G.computed;return!0;case"ClassPrivateProperty":return G.key!==J;case"ClassDeclaration":case"ClassExpression":return G.superClass===J;case"AssignmentExpression":return G.right===J;case"AssignmentPattern":return G.right===J;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":if(X!=null&&X.source)return!1;return G.local===J;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return G.key!==J;case"TSEnumMember":return G.id!==J;case"TSPropertySignature":if(G.key===J)return!!G.computed;return!0}return!0}});var KW=S((UW)=>{Object.defineProperty(UW,"__esModule",{value:!0});UW.default=N61;var o0=a1();function N61(J,G){if(o0.isBlockStatement(J)&&(o0.isFunction(G)||o0.isCatchClause(G)))return!1;if(o0.isPattern(J)&&(o0.isFunction(G)||o0.isCatchClause(G)))return!0;return o0.isScopable(J)}});var MW=S((RW)=>{Object.defineProperty(RW,"__esModule",{value:!0});RW.default=E61;var BW=a1();function E61(J){return BW.isImportDefaultSpecifier(J)||BW.isIdentifier(J.imported||J.exported,{name:"default"})}});var FW=S((qW)=>{Object.defineProperty(qW,"__esModule",{value:!0});qW.default=g61;var v61=k5(),_61=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function g61(J){return v61.default(J)&&!_61.has(J)}});var fW=S((jW)=>{Object.defineProperty(jW,"__esModule",{value:!0});jW.default=m61;var h61=a1(),y61=P0();function m61(J){return h61.isVariableDeclaration(J,{kind:"var"})&&!J[y61.BLOCK_SCOPED_SYMBOL]}});var AW=S((DW)=>{Object.defineProperty(DW,"__esModule",{value:!0});DW.default=SJ;var l61=w9(),e0=a1(),sX=W2(),pX=NX(),c61=L0();function SJ(J,G){let X=[],H=!0;for(let Z of J){if(!e0.isEmptyStatement(Z))H=!1;if(e0.isExpression(Z))X.push(Z);else if(e0.isExpressionStatement(Z))X.push(Z.expression);else if(e0.isVariableDeclaration(Z)){if(Z.kind!=="var")return;for(let V of Z.declarations){let Q=l61.default(V);for(let Y of Object.keys(Q))G.push({kind:Z.kind,id:c61.default(Q[Y])});if(V.init)X.push(sX.assignmentExpression("=",V.id,V.init))}H=!0}else if(e0.isIfStatement(Z)){let V=Z.consequent?SJ([Z.consequent],G):pX.buildUndefinedNode(),Q=Z.alternate?SJ([Z.alternate],G):pX.buildUndefinedNode();if(!V||!Q)return;X.push(sX.conditionalExpression(Z.test,V,Q))}else if(e0.isBlockStatement(Z)){let V=SJ(Z.body,G);if(!V)return;X.push(V)}else if(e0.isEmptyStatement(Z)){if(J.indexOf(Z)===0)H=!0}else return}if(H)X.push(pX.buildUndefinedNode());if(X.length===1)return X[0];else return sX.sequenceExpression(X)}});var CW=S((IW)=>{Object.defineProperty(IW,"__esModule",{value:!0});IW.default=i61;var a61=AW();function i61(J,G){if(!(J!=null&&J.length))return;let X=[],H=a61.default(J,X);if(!H)return;for(let Z of X)G.push(Z);return H}});var F1=S((c)=>{Object.defineProperty(c,"__esModule",{value:!0});var z0={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(c,"__internal__deprecationWarning",{enumerable:!0,get:function(){return n81.default}});Object.defineProperty(c,"addComment",{enumerable:!0,get:function(){return Z81.default}});Object.defineProperty(c,"addComments",{enumerable:!0,get:function(){return V81.default}});Object.defineProperty(c,"appendToMemberExpression",{enumerable:!0,get:function(){return D81.default}});Object.defineProperty(c,"assertNode",{enumerable:!0,get:function(){return n61.default}});Object.defineProperty(c,"buildMatchMemberExpression",{enumerable:!0,get:function(){return p81.default}});Object.defineProperty(c,"clone",{enumerable:!0,get:function(){return J81.default}});Object.defineProperty(c,"cloneDeep",{enumerable:!0,get:function(){return G81.default}});Object.defineProperty(c,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return X81.default}});Object.defineProperty(c,"cloneNode",{enumerable:!0,get:function(){return t61.default}});Object.defineProperty(c,"cloneWithoutLoc",{enumerable:!0,get:function(){return H81.default}});Object.defineProperty(c,"createFlowUnionType",{enumerable:!0,get:function(){return SW.default}});Object.defineProperty(c,"createTSUnionType",{enumerable:!0,get:function(){return e61.default}});Object.defineProperty(c,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return o61.default}});Object.defineProperty(c,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return SW.default}});Object.defineProperty(c,"ensureBlock",{enumerable:!0,get:function(){return U81.default}});Object.defineProperty(c,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return w81.default}});Object.defineProperty(c,"getBindingIdentifiers",{enumerable:!0,get:function(){return L81.default}});Object.defineProperty(c,"getFunctionName",{enumerable:!0,get:function(){return N81.default}});Object.defineProperty(c,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return T81.default}});Object.defineProperty(c,"inheritInnerComments",{enumerable:!0,get:function(){return Q81.default}});Object.defineProperty(c,"inheritLeadingComments",{enumerable:!0,get:function(){return Y81.default}});Object.defineProperty(c,"inheritTrailingComments",{enumerable:!0,get:function(){return W81.default}});Object.defineProperty(c,"inherits",{enumerable:!0,get:function(){return A81.default}});Object.defineProperty(c,"inheritsComments",{enumerable:!0,get:function(){return z81.default}});Object.defineProperty(c,"is",{enumerable:!0,get:function(){return O81.default}});Object.defineProperty(c,"isBinding",{enumerable:!0,get:function(){return v81.default}});Object.defineProperty(c,"isBlockScoped",{enumerable:!0,get:function(){return _81.default}});Object.defineProperty(c,"isImmutable",{enumerable:!0,get:function(){return g81.default}});Object.defineProperty(c,"isLet",{enumerable:!0,get:function(){return b81.default}});Object.defineProperty(c,"isNode",{enumerable:!0,get:function(){return h81.default}});Object.defineProperty(c,"isNodesEquivalent",{enumerable:!0,get:function(){return y81.default}});Object.defineProperty(c,"isPlaceholderType",{enumerable:!0,get:function(){return m81.default}});Object.defineProperty(c,"isReferenced",{enumerable:!0,get:function(){return x81.default}});Object.defineProperty(c,"isScope",{enumerable:!0,get:function(){return l81.default}});Object.defineProperty(c,"isSpecifierDefault",{enumerable:!0,get:function(){return c81.default}});Object.defineProperty(c,"isType",{enumerable:!0,get:function(){return r81.default}});Object.defineProperty(c,"isValidES3Identifier",{enumerable:!0,get:function(){return a81.default}});Object.defineProperty(c,"isValidIdentifier",{enumerable:!0,get:function(){return i81.default}});Object.defineProperty(c,"isVar",{enumerable:!0,get:function(){return u81.default}});Object.defineProperty(c,"matchesPattern",{enumerable:!0,get:function(){return d81.default}});Object.defineProperty(c,"prependToMemberExpression",{enumerable:!0,get:function(){return I81.default}});c.react=void 0;Object.defineProperty(c,"removeComments",{enumerable:!0,get:function(){return $81.default}});Object.defineProperty(c,"removeProperties",{enumerable:!0,get:function(){return C81.default}});Object.defineProperty(c,"removePropertiesDeep",{enumerable:!0,get:function(){return S81.default}});Object.defineProperty(c,"removeTypeDuplicates",{enumerable:!0,get:function(){return P81.default}});Object.defineProperty(c,"shallowEqual",{enumerable:!0,get:function(){return E81.default}});Object.defineProperty(c,"toBindingIdentifierName",{enumerable:!0,get:function(){return K81.default}});Object.defineProperty(c,"toBlock",{enumerable:!0,get:function(){return B81.default}});Object.defineProperty(c,"toComputedKey",{enumerable:!0,get:function(){return R81.default}});Object.defineProperty(c,"toExpression",{enumerable:!0,get:function(){return M81.default}});Object.defineProperty(c,"toIdentifier",{enumerable:!0,get:function(){return q81.default}});Object.defineProperty(c,"toKeyAlias",{enumerable:!0,get:function(){return F81.default}});Object.defineProperty(c,"toStatement",{enumerable:!0,get:function(){return j81.default}});Object.defineProperty(c,"traverse",{enumerable:!0,get:function(){return PJ.default}});Object.defineProperty(c,"traverseFast",{enumerable:!0,get:function(){return k81.default}});Object.defineProperty(c,"validate",{enumerable:!0,get:function(){return s81.default}});Object.defineProperty(c,"valueToNode",{enumerable:!0,get:function(){return f81.default}});var d61=tV(),s61=GQ(),p61=MY(),n61=jY(),nX=DY();Object.keys(nX).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(z0,J))return;if(J in c&&c[J]===nX[J])return;Object.defineProperty(c,J,{enumerable:!0,get:function(){return nX[J]}})});var o61=CY(),SW=TY(),e61=_Y(),oX=W2();Object.keys(oX).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(z0,J))return;if(J in c&&c[J]===oX[J])return;Object.defineProperty(c,J,{enumerable:!0,get:function(){return oX[J]}})});var eX=gY();Object.keys(eX).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(z0,J))return;if(J in c&&c[J]===eX[J])return;Object.defineProperty(c,J,{enumerable:!0,get:function(){return eX[J]}})});var tX=NX();Object.keys(tX).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(z0,J))return;if(J in c&&c[J]===tX[J])return;Object.defineProperty(c,J,{enumerable:!0,get:function(){return tX[J]}})});var t61=L0(),J81=aY(),G81=uY(),X81=sY(),H81=nY(),Z81=tY(),V81=EX(),Q81=OX(),Y81=vX(),z81=gX(),W81=_X(),$81=Qz(),J7=Wz();Object.keys(J7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(z0,J))return;if(J in c&&c[J]===J7[J])return;Object.defineProperty(c,J,{enumerable:!0,get:function(){return J7[J]}})});var G7=P0();Object.keys(G7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(z0,J))return;if(J in c&&c[J]===G7[J])return;Object.defineProperty(c,J,{enumerable:!0,get:function(){return G7[J]}})});var U81=Kz(),K81=Mz(),B81=hX(),R81=Fz(),M81=Dz(),q81=yX(),F81=Lz(),j81=kz(),f81=vz(),X7=N2();Object.keys(X7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(z0,J))return;if(J in c&&c[J]===X7[J])return;Object.defineProperty(c,J,{enumerable:!0,get:function(){return X7[J]}})});var D81=gz(),A81=yz(),I81=xz(),C81=lX(),S81=cX(),P81=TX(),w81=cz(),L81=w9(),T81=uz(),N81=pz(),PJ=oz();Object.keys(PJ).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(z0,J))return;if(J in c&&c[J]===PJ[J])return;Object.defineProperty(c,J,{enumerable:!0,get:function(){return PJ[J]}})});var k81=xX(),E81=WJ(),O81=N5(),v81=tz(),_81=HW(),g81=VW(),b81=uX(),h81=LX(),y81=zW(),m81=YX(),x81=$W(),l81=KW(),c81=MW(),r81=$J(),a81=FW(),i81=k5(),u81=fW(),d81=VX(),s81=MJ(),p81=QX(),H7=a1();Object.keys(H7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(z0,J))return;if(J in c&&c[J]===H7[J])return;Object.defineProperty(c,J,{enumerable:!0,get:function(){return H7[J]}})});var n81=K9(),kv1=c.react={isReactComponent:d61.default,isCompatTag:s61.default,buildChildren:p61.default};c.toSequenceExpression=CW().default;if(process.env.BABEL_TYPES_8_BREAKING)console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")});var OW=S((kW)=>{Object.defineProperty(kW,"__esModule",{value:!0});kW.nodes=void 0;var o81=F1(),{FLIPPED_ALIAS_KEYS:e81,isArrayExpression:t81,isAssignmentExpression:LW,isBinary:TW,isBlockStatement:J41,isCallExpression:NW,isFunction:L9,isIdentifier:wJ,isLiteral:G41,isMemberExpression:Z7,isObjectExpression:X41,isOptionalCallExpression:H41,isOptionalMemberExpression:Z41,isStringLiteral:V41}=o81;function v5(J,G){if(!J)return G;if(Z7(J)||Z41(J)){if(v5(J.object,G),J.computed)v5(J.property,G)}else if(TW(J)||LW(J))v5(J.left,G),v5(J.right,G);else if(NW(J)||H41(J))G.hasCall=!0,v5(J.callee,G);else if(L9(J))G.hasFunction=!0;else if(wJ(J))G.hasHelper=G.hasHelper||J.callee&&W0(J.callee);return G}function wW(J){return v5(J,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function W0(J){if(!J)return!1;if(Z7(J))return W0(J.object)||W0(J.property);else if(wJ(J))return J.name==="require"||J.name.charCodeAt(0)===95;else if(NW(J))return W0(J.callee);else if(TW(J)||LW(J))return wJ(J.left)&&W0(J.left)||W0(J.right);else return!1}function Q41(J){return G41(J)||X41(J)||t81(J)||wJ(J)||Z7(J)}var t0=kW.nodes={AssignmentExpression(J){let G=wW(J.right);if(G.hasCall&&G.hasHelper||G.hasFunction)return G.hasFunction?3:2},SwitchCase(J,G){return(!!J.consequent.length||G.cases[0]===J?1:0)|(!J.consequent.length&&G.cases[G.cases.length-1]===J?2:0)},LogicalExpression(J){if(L9(J.left)||L9(J.right))return 2},Literal(J){if(V41(J)&&J.value==="use strict")return 2},CallExpression(J){if(L9(J.callee)||W0(J))return 3},OptionalCallExpression(J){if(L9(J.callee))return 3},VariableDeclaration(J){for(let G=0;G<J.declarations.length;G++){let X=J.declarations[G],H=W0(X.id)&&!Q41(X.init);if(!H&&X.init){let Z=wW(X.init);H=W0(X.init)&&Z.hasCall||Z.hasFunction}if(H)return 3}},IfStatement(J){if(J41(J.consequent))return 3}};t0.ObjectProperty=t0.ObjectTypeProperty=t0.ObjectMethod=function(J,G){if(G.properties[0]===J)return 1};t0.ObjectTypeCallProperty=function(J,G){var X;if(G.callProperties[0]===J&&!((X=G.properties)!=null&&X.length))return 1};t0.ObjectTypeIndexer=function(J,G){var X,H;if(G.indexers[0]===J&&!((X=G.properties)!=null&&X.length)&&!((H=G.callProperties)!=null&&H.length))return 1};t0.ObjectTypeInternalSlot=function(J,G){var X,H,Z;if(G.internalSlots[0]===J&&!((X=G.properties)!=null&&X.length)&&!((H=G.callProperties)!=null&&H.length)&&!((Z=G.indexers)!=null&&Z.length))return 1};[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([J,G]){[J].concat(e81[J]||[]).forEach(function(X){let H=G?3:0;t0[X]=()=>H})})});var lW=S((xW)=>{Object.defineProperty(xW,"__esModule",{value:!0});xW.AssignmentExpression=_41;xW.Binary=hW;xW.BinaryExpression=T41;xW.ClassExpression=E41;xW.ArrowFunctionExpression=xW.ConditionalExpression=mW;xW.DoExpression=A41;xW.FunctionExpression=O41;xW.FunctionTypeAnnotation=j41;xW.Identifier=b41;xW.LogicalExpression=g41;xW.NullableTypeAnnotation=F41;xW.ObjectExpression=D41;xW.OptionalIndexedAccessType=C41;xW.OptionalCallExpression=xW.OptionalMemberExpression=v41;xW.SequenceExpression=N41;xW.TSSatisfiesExpression=xW.TSAsExpression=S41;xW.TSInferType=w41;xW.TSInstantiationExpression=L41;xW.UnaryLike=xW.TSTypeAssertion=yW;xW.TSIntersectionType=xW.TSUnionType=P41;xW.IntersectionTypeAnnotation=xW.UnionTypeAnnotation=I41;xW.UpdateExpression=f41;xW.AwaitExpression=xW.YieldExpression=k41;var Y41=F1(),E2=T0(),{isArrayTypeAnnotation:z41,isBinaryExpression:W41,isCallExpression:$41,isForOfStatement:U41,isIndexedAccessType:K41,isMemberExpression:gW,isObjectPattern:B41,isOptionalMemberExpression:R41,isYieldExpression:M41,isStatement:q41}=Y41,vW=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function _W(J,G){if(G==="BinaryExpression"||G==="LogicalExpression")return vW.get(J.operator);if(G==="TSAsExpression"||G==="TSSatisfiesExpression")return vW.get("in")}function V7(J){return J==="TSAsExpression"||J==="TSSatisfiesExpression"||J==="TSTypeAssertion"}var LJ=(J,G)=>{let X=G.type;return(X==="ClassDeclaration"||X==="ClassExpression")&&G.superClass===J},TJ=(J,G)=>{let X=G.type;return(X==="MemberExpression"||X==="OptionalMemberExpression")&&G.object===J||(X==="CallExpression"||X==="OptionalCallExpression"||X==="NewExpression")&&G.callee===J||X==="TaggedTemplateExpression"&&G.tag===J||X==="TSNonNullExpression"};function F41(J,G){return z41(G)}function j41(J,G,X){let H=G.type;return H==="UnionTypeAnnotation"||H==="IntersectionTypeAnnotation"||H==="ArrayTypeAnnotation"||Boolean(X&E2.TokenContext.arrowFlowReturnType)}function f41(J,G){return TJ(J,G)||LJ(J,G)}function bW(J){return Boolean(J&(E2.TokenContext.expressionStatement|E2.TokenContext.arrowBody))}function D41(J,G,X){return bW(X)}function A41(J,G,X){return!J.async&&Boolean(X&E2.TokenContext.expressionStatement)}function hW(J,G){let X=G.type;if(J.type==="BinaryExpression"&&J.operator==="**"&&X==="BinaryExpression"&&G.operator==="**")return G.left===J;if(LJ(J,G))return!0;if(TJ(J,G)||X==="UnaryExpression"||X==="SpreadElement"||X==="AwaitExpression")return!0;let H=_W(G,X);if(H!=null){let Z=_W(J,J.type);if(H===Z&&X==="BinaryExpression"&&G.right===J||H>Z)return!0}return}function I41(J,G){let X=G.type;return X==="ArrayTypeAnnotation"||X==="NullableTypeAnnotation"||X==="IntersectionTypeAnnotation"||X==="UnionTypeAnnotation"}function C41(J,G){return K41(G)&&G.objectType===J}function S41(J,G){if((G.type==="AssignmentExpression"||G.type==="AssignmentPattern")&&G.left===J)return!0;if(G.type==="BinaryExpression"&&(G.operator==="|"||G.operator==="&")&&J===G.left)return!0;return hW(J,G)}function P41(J,G){let X=G.type;return X==="TSArrayType"||X==="TSOptionalType"||X==="TSIntersectionType"||X==="TSRestType"}function w41(J,G){let X=G.type;return X==="TSArrayType"||X==="TSOptionalType"}function L41(J,G){let X=G.type;return(X==="CallExpression"||X==="OptionalCallExpression"||X==="NewExpression"||X==="TSInstantiationExpression")&&!!G.typeParameters}function T41(J,G,X,H){return J.operator==="in"&&H}function N41(J,G){let X=G.type;if(X==="SequenceExpression"||X==="ParenthesizedExpression"||X==="MemberExpression"&&G.property===J||X==="OptionalMemberExpression"&&G.property===J||X==="TemplateLiteral")return!1;if(X==="ClassDeclaration")return!0;if(X==="ForOfStatement")return G.right===J;if(X==="ExportDefaultDeclaration")return!0;return!q41(G)}function k41(J,G){let X=G.type;return X==="BinaryExpression"||X==="LogicalExpression"||X==="UnaryExpression"||X==="SpreadElement"||TJ(J,G)||X==="AwaitExpression"&&M41(J)||X==="ConditionalExpression"&&J===G.test||LJ(J,G)||V7(X)}function E41(J,G,X){return Boolean(X&(E2.TokenContext.expressionStatement|E2.TokenContext.exportDefault))}function yW(J,G){return TJ(J,G)||W41(G)&&G.operator==="**"&&G.left===J||LJ(J,G)}function O41(J,G,X){return Boolean(X&(E2.TokenContext.expressionStatement|E2.TokenContext.exportDefault))}function mW(J,G){let X=G.type;if(X==="UnaryExpression"||X==="SpreadElement"||X==="BinaryExpression"||X==="LogicalExpression"||X==="ConditionalExpression"&&G.test===J||X==="AwaitExpression"||V7(X))return!0;return yW(J,G)}function v41(J,G){return $41(G)&&G.callee===J||gW(G)&&G.object===J}function _41(J,G,X){if(bW(X)&&B41(J.left))return!0;else return mW(J,G)}function g41(J,G){let X=G.type;if(V7(X))return!0;if(X!=="LogicalExpression")return!1;switch(J.operator){case"||":return G.operator==="??"||G.operator==="&&";case"&&":return G.operator==="??";case"??":return G.operator!=="??"}}function b41(J,G,X){var H;let Z=G.type;if((H=J.extra)!=null&&H.parenthesized&&Z==="AssignmentExpression"&&G.left===J){let V=G.right.type;if((V==="FunctionExpression"||V==="ClassExpression")&&G.right.id==null)return!0}if(J.name==="let"){if((gW(G,{object:J,computed:!0})||R41(G,{object:J,computed:!0,optional:!1}))&&X&(E2.TokenContext.expressionStatement|E2.TokenContext.forHead|E2.TokenContext.forInHead))return!0;return Boolean(X&E2.TokenContext.forOfHead)}return J.name==="async"&&U41(G,{left:J,await:!1})}});var T0=S((iW)=>{Object.defineProperty(iW,"__esModule",{value:!0});iW.TokenContext=void 0;iW.isLastChild=AJ1;iW.needsParens=DJ1;iW.needsWhitespace=Y7;iW.needsWhitespaceAfter=fJ1;iW.needsWhitespaceBefore=jJ1;var QJ1=OW(),YJ1=lW(),zJ1=F1(),{FLIPPED_ALIAS_KEYS:WJ1,VISITOR_KEYS:$J1,isCallExpression:cW,isDecorator:UJ1,isExpressionStatement:KJ1,isMemberExpression:BJ1,isNewExpression:RJ1,isParenthesizedExpression:MJ1}=zJ1,cv1=iW.TokenContext={expressionStatement:1,arrowBody:2,exportDefault:4,forHead:8,forInHead:16,forOfHead:32,arrowFlowReturnType:64};function rW(J){let G=new Map;function X(H,Z){let V=G.get(H);G.set(H,V?function(Q,Y,z,W){var K;return(K=V(Q,Y,z,W))!=null?K:Z(Q,Y,z,W)}:Z)}for(let H of Object.keys(J)){let Z=WJ1[H];if(Z)for(let V of Z)X(V,J[H]);else X(H,J[H])}return G}var qJ1=rW(YJ1),FJ1=rW(QJ1.nodes);function aW(J){if(cW(J))return!0;return BJ1(J)&&aW(J.object)}function Y7(J,G,X){var H;if(!J)return!1;if(KJ1(J))J=J.expression;let Z=(H=FJ1.get(J.type))==null?void 0:H(J,G);if(typeof Z==="number")return(Z&X)!==0;return!1}function jJ1(J,G){return Y7(J,G,1)}function fJ1(J,G){return Y7(J,G,2)}function DJ1(J,G,X,H){var Z;if(!G)return!1;if(RJ1(G)&&G.callee===J){if(aW(J))return!0}if(UJ1(G))return!Q7(J)&&!(cW(J)&&Q7(J.callee))&&!MJ1(J);return(Z=qJ1.get(J.type))==null?void 0:Z(J,G,X,H)}function Q7(J){switch(J.type){case"Identifier":return!0;case"MemberExpression":return!J.computed&&J.property.type==="Identifier"&&Q7(J.object);default:return!1}}function AJ1(J,G){let X=$J1[J.type];for(let H=X.length-1;H>=0;H--){let Z=J[X[H]];if(Z===G)return!0;else if(Array.isArray(Z)){let V=Z.length-1;while(V>=0&&Z[V]===null)V--;return V>=0&&Z[V]===G}else if(Z)return!1}return!1}});var sW=S((dW)=>{Object.defineProperty(dW,"__esModule",{value:!0});dW.TaggedTemplateExpression=LJ1;dW.TemplateElement=TJ1;dW.TemplateLiteral=NJ1;function LJ1(J){this.print(J.tag),this.print(J.typeParameters),this.print(J.quasi)}function TJ1(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function NJ1(J){let G=J.quasis,X="`";for(let H=0;H<G.length;H++)if(X+=G[H].value.raw,H+1<G.length)this.token(X+"${",!0),this.print(J.expressions[H]),X="}";this.token(X+"`",!0)}});var oW=S((nW)=>{Object.defineProperty(nW,"__esModule",{value:!0});nW.LogicalExpression=nW.BinaryExpression=nW.AssignmentExpression=ZG1;nW.AssignmentPattern=HG1;nW.AwaitExpression=tJ1;nW.BindExpression=VG1;nW.CallExpression=oJ1;nW.ConditionalExpression=cJ1;nW.Decorator=sJ1;nW.DoExpression=mJ1;nW.EmptyStatement=GG1;nW.ExpressionStatement=XG1;nW.Import=eJ1;nW.MemberExpression=QG1;nW.MetaProperty=YG1;nW.ModuleExpression=$G1;nW.NewExpression=rJ1;nW.OptionalCallExpression=nJ1;nW.OptionalMemberExpression=pJ1;nW.ParenthesizedExpression=xJ1;nW.PrivateName=zG1;nW.SequenceExpression=aJ1;nW.Super=uJ1;nW.ThisExpression=iJ1;nW.UnaryExpression=yJ1;nW.UpdateExpression=lJ1;nW.V8IntrinsicIdentifier=WG1;nW.YieldExpression=JG1;nW._shouldPrintDecoratorsBeforeExport=dJ1;var vJ1=F1(),_J1=T0(),{isCallExpression:gJ1,isLiteral:pW,isMemberExpression:z7,isNewExpression:bJ1,isPattern:hJ1}=vJ1;function yJ1(J){let{operator:G}=J;if(G==="void"||G==="delete"||G==="typeof"||G==="throw")this.word(G),this.space();else this.token(G);this.print(J.argument)}function mJ1(J){if(J.async)this.word("async",!0),this.space();this.word("do"),this.space(),this.print(J.body)}function xJ1(J){this.tokenChar(40);let G=this.enterDelimited();this.print(J.expression),G(),this.rightParens(J)}function lJ1(J){if(J.prefix)this.token(J.operator),this.print(J.argument);else this.print(J.argument,!0),this.token(J.operator)}function cJ1(J){this.print(J.test),this.space(),this.tokenChar(63),this.space(),this.print(J.consequent),this.space(),this.tokenChar(58),this.space(),this.print(J.alternate)}function rJ1(J,G){if(this.word("new"),this.space(),this.print(J.callee),this.format.minified&&J.arguments.length===0&&!J.optional&&!gJ1(G,{callee:J})&&!z7(G)&&!bJ1(G))return;if(this.print(J.typeArguments),this.print(J.typeParameters),J.optional)this.token("?.");this.tokenChar(40);let X=this.enterDelimited();this.printList(J.arguments),X(),this.rightParens(J)}function aJ1(J){this.printList(J.expressions)}function iJ1(){this.word("this")}function uJ1(){this.word("super")}function dJ1(J){if(typeof this.format.decoratorsBeforeExport==="boolean")return this.format.decoratorsBeforeExport;return typeof J.start==="number"&&J.start===J.declaration.start}function sJ1(J){this.tokenChar(64),this.print(J.expression),this.newline()}function pJ1(J){let{computed:G}=J,{optional:X,property:H}=J;if(this.print(J.object),!G&&z7(H))throw new TypeError("Got a MemberExpression for MemberExpression property");if(pW(H)&&typeof H.value==="number")G=!0;if(X)this.token("?.");if(G)this.tokenChar(91),this.print(H),this.tokenChar(93);else{if(!X)this.tokenChar(46);this.print(H)}}function nJ1(J){if(this.print(J.callee),this.print(J.typeParameters),J.optional)this.token("?.");this.print(J.typeArguments),this.tokenChar(40);let G=this.enterDelimited();this.printList(J.arguments),G(),this.rightParens(J)}function oJ1(J){this.print(J.callee),this.print(J.typeArguments),this.print(J.typeParameters),this.tokenChar(40);let G=this.enterDelimited();this.printList(J.arguments),G(),this.rightParens(J)}function eJ1(){this.word("import")}function tJ1(J){if(this.word("await"),J.argument)this.space(),this.printTerminatorless(J.argument)}function JG1(J){if(this.word("yield",!0),J.delegate){if(this.tokenChar(42),J.argument)this.space(),this.print(J.argument)}else if(J.argument)this.space(),this.printTerminatorless(J.argument)}function GG1(){this.semicolon(!0)}function XG1(J){this.tokenContext|=_J1.TokenContext.expressionStatement,this.print(J.expression),this.semicolon()}function HG1(J){if(this.print(J.left),J.left.type==="Identifier"||hJ1(J.left)){if(J.left.optional)this.tokenChar(63);this.print(J.left.typeAnnotation)}this.space(),this.tokenChar(61),this.space(),this.print(J.right)}function ZG1(J){if(this.print(J.left),this.space(),J.operator==="in"||J.operator==="instanceof")this.word(J.operator);else this.token(J.operator),this._endsWithDiv=J.operator==="/";this.space(),this.print(J.right)}function VG1(J){this.print(J.object),this.token("::"),this.print(J.callee)}function QG1(J){if(this.print(J.object),!J.computed&&z7(J.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let G=J.computed;if(pW(J.property)&&typeof J.property.value==="number")G=!0;if(G){let X=this.enterDelimited();this.tokenChar(91),this.print(J.property),this.tokenChar(93),X()}else this.tokenChar(46),this.print(J.property)}function YG1(J){this.print(J.meta),this.tokenChar(46),this.print(J.property)}function zG1(J){this.tokenChar(35),this.print(J.id)}function WG1(J){this.tokenChar(37),this.word(J.name)}function $G1(J){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:G}=J;if(G.body.length||G.directives.length)this.newline();this.print(G),this.dedent(),this.rightBrace(J)}});var H$=S((G$)=>{Object.defineProperty(G$,"__esModule",{value:!0});G$.BreakStatement=dG1;G$.CatchClause=tG1;G$.ContinueStatement=sG1;G$.DebuggerStatement=XX1;G$.DoWhileStatement=uG1;G$.ForOfStatement=G$.ForInStatement=void 0;G$.ForStatement=aG1;G$.IfStatement=rG1;G$.LabeledStatement=oG1;G$.ReturnStatement=pG1;G$.SwitchCase=GX1;G$.SwitchStatement=JX1;G$.ThrowStatement=nG1;G$.TryStatement=eG1;G$.VariableDeclaration=HX1;G$.VariableDeclarator=ZX1;G$.WhileStatement=iG1;G$.WithStatement=cG1;var yG1=F1(),W7=T0(),{isFor:eW,isForStatement:mG1,isIfStatement:xG1,isStatement:lG1}=yG1;function cG1(J){this.word("with"),this.space(),this.tokenChar(40),this.print(J.object),this.tokenChar(41),this.printBlock(J)}function rG1(J){this.word("if"),this.space(),this.tokenChar(40),this.print(J.test),this.tokenChar(41),this.space();let G=J.alternate&&xG1(tW(J.consequent));if(G)this.tokenChar(123),this.newline(),this.indent();if(this.printAndIndentOnComments(J.consequent),G)this.dedent(),this.newline(),this.tokenChar(125);if(J.alternate){if(this.endsWith(125))this.space();this.word("else"),this.space(),this.printAndIndentOnComments(J.alternate)}}function tW(J){let{body:G}=J;if(lG1(G)===!1)return J;return tW(G)}function aG1(J){this.word("for"),this.space(),this.tokenChar(40);{let G=this.enterForStatementInit();this.tokenContext|=W7.TokenContext.forHead,this.print(J.init),G()}if(this.tokenChar(59),J.test)this.space(),this.print(J.test);if(this.tokenChar(59),J.update)this.space(),this.print(J.update);this.tokenChar(41),this.printBlock(J)}function iG1(J){this.word("while"),this.space(),this.tokenChar(40),this.print(J.test),this.tokenChar(41),this.printBlock(J)}function J$(J){this.word("for"),this.space();let G=J.type==="ForOfStatement";if(G&&J.await)this.word("await"),this.space();this.noIndentInnerCommentsHere(),this.tokenChar(40);{let X=G?null:this.enterForStatementInit();this.tokenContext|=G?W7.TokenContext.forOfHead:W7.TokenContext.forInHead,this.print(J.left),X==null||X()}this.space(),this.word(G?"of":"in"),this.space(),this.print(J.right),this.tokenChar(41),this.printBlock(J)}var sv1=G$.ForInStatement=J$,pv1=G$.ForOfStatement=J$;function uG1(J){this.word("do"),this.space(),this.print(J.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(J.test),this.tokenChar(41),this.semicolon()}function NJ(J,G){if(G)J.space(),J.printTerminatorless(G);J.semicolon()}function dG1(J){this.word("break"),NJ(this,J.label)}function sG1(J){this.word("continue"),NJ(this,J.label)}function pG1(J){this.word("return"),NJ(this,J.argument)}function nG1(J){this.word("throw"),NJ(this,J.argument)}function oG1(J){this.print(J.label),this.tokenChar(58),this.space(),this.print(J.body)}function eG1(J){if(this.word("try"),this.space(),this.print(J.block),this.space(),J.handlers)this.print(J.handlers[0]);else this.print(J.handler);if(J.finalizer)this.space(),this.word("finally"),this.space(),this.print(J.finalizer)}function tG1(J){if(this.word("catch"),this.space(),J.param)this.tokenChar(40),this.print(J.param),this.print(J.param.typeAnnotation),this.tokenChar(41),this.space();this.print(J.body)}function JX1(J){this.word("switch"),this.space(),this.tokenChar(40),this.print(J.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(J.cases,{indent:!0,addNewlines(G,X){if(!G&&J.cases[J.cases.length-1]===X)return-1}}),this.rightBrace(J)}function GX1(J){if(J.test)this.word("case"),this.space(),this.print(J.test),this.tokenChar(58);else this.word("default"),this.tokenChar(58);if(J.consequent.length)this.newline(),this.printSequence(J.consequent,{indent:!0})}function XX1(){this.word("debugger"),this.semicolon()}function HX1(J,G){if(J.declare)this.word("declare"),this.space();let{kind:X}=J;if(X==="await using")this.word("await"),this.space(),this.word("using",!0);else this.word(X,X==="using");this.space();let H=!1;if(!eW(G)){for(let Z of J.declarations)if(Z.init)H=!0}if(this.printList(J.declarations,{separator:H?function(){this.tokenChar(44),this.newline()}:void 0,indent:J.declarations.length>1?!0:!1}),eW(G)){if(mG1(G)){if(G.init===J)return}else if(G.left===J)return}this.semicolon()}function ZX1(J){if(this.print(J.id),J.definite)this.tokenChar(33);if(this.print(J.id.typeAnnotation),J.init)this.space(),this.tokenChar(61),this.space(),this.print(J.init)}});var V$=S((Z$)=>{Object.defineProperty(Z$,"__esModule",{value:!0});Z$.ClassAccessorProperty=NX1;Z$.ClassBody=LX1;Z$.ClassExpression=Z$.ClassDeclaration=wX1;Z$.ClassMethod=EX1;Z$.ClassPrivateMethod=OX1;Z$.ClassPrivateProperty=kX1;Z$.ClassProperty=TX1;Z$.StaticBlock=_X1;Z$._classMethodHead=vX1;var CX1=F1(),{isExportDefaultDeclaration:SX1,isExportNamedDeclaration:PX1}=CX1;function wX1(J,G){if(!(SX1(G)||PX1(G))||!this._shouldPrintDecoratorsBeforeExport(G))this.printJoin(J.decorators);if(J.declare)this.word("declare"),this.space();if(J.abstract)this.word("abstract"),this.space();if(this.word("class"),J.id)this.space(),this.print(J.id);if(this.print(J.typeParameters),J.superClass)this.space(),this.word("extends"),this.space(),this.print(J.superClass),this.print(J.superTypeParameters);if(J.implements)this.space(),this.word("implements"),this.space(),this.printList(J.implements);this.space(),this.print(J.body)}function LX1(J){if(this.tokenChar(123),J.body.length===0)this.tokenChar(125);else{this.newline();let G=this.enterDelimited();if(this.printSequence(J.body,{indent:!0}),G(),!this.endsWith(10))this.newline();this.rightBrace(J)}}function TX1(J){var G;this.printJoin(J.decorators);let X=(G=J.key.loc)==null||(G=G.end)==null?void 0:G.line;if(X)this.catchUp(X);if(this.tsPrintClassMemberModifiers(J),J.computed)this.tokenChar(91),this.print(J.key),this.tokenChar(93);else this._variance(J),this.print(J.key);if(J.optional)this.tokenChar(63);if(J.definite)this.tokenChar(33);if(this.print(J.typeAnnotation),J.value)this.space(),this.tokenChar(61),this.space(),this.print(J.value);this.semicolon()}function NX1(J){var G;this.printJoin(J.decorators);let X=(G=J.key.loc)==null||(G=G.end)==null?void 0:G.line;if(X)this.catchUp(X);if(this.tsPrintClassMemberModifiers(J),this.word("accessor",!0),this.space(),J.computed)this.tokenChar(91),this.print(J.key),this.tokenChar(93);else this._variance(J),this.print(J.key);if(J.optional)this.tokenChar(63);if(J.definite)this.tokenChar(33);if(this.print(J.typeAnnotation),J.value)this.space(),this.tokenChar(61),this.space(),this.print(J.value);this.semicolon()}function kX1(J){if(this.printJoin(J.decorators),J.static)this.word("static"),this.space();if(this.print(J.key),this.print(J.typeAnnotation),J.value)this.space(),this.tokenChar(61),this.space(),this.print(J.value);this.semicolon()}function EX1(J){this._classMethodHead(J),this.space(),this.print(J.body)}function OX1(J){this._classMethodHead(J),this.space(),this.print(J.body)}function vX1(J){var G;this.printJoin(J.decorators);let X=(G=J.key.loc)==null||(G=G.end)==null?void 0:G.line;if(X)this.catchUp(X);this.tsPrintClassMemberModifiers(J),this._methodHead(J)}function _X1(J){if(this.word("static"),this.space(),this.tokenChar(123),J.body.length===0)this.tokenChar(125);else this.newline(),this.printSequence(J.body,{indent:!0}),this.rightBrace(J)}});var Y$=S((Q$)=>{Object.defineProperty(Q$,"__esModule",{value:!0});Q$.ArrowFunctionExpression=J71;Q$.FunctionDeclaration=Q$.FunctionExpression=tX1;Q$._functionHead=eX1;Q$._methodHead=nX1;Q$._param=pX1;Q$._parameters=sX1;Q$._params=dX1;Q$._predicate=oX1;var aX1=F1(),iX1=T0(),{isIdentifier:uX1}=aX1;function dX1(J,G,X){this.print(J.typeParameters);let H=X71.call(this,G,X);if(H)this.sourceIdentifierName(H.name,H.pos);this.tokenChar(40),this._parameters(J.params),this.tokenChar(41);let Z=J.type==="ArrowFunctionExpression";this.print(J.returnType,Z),this._noLineTerminator=Z}function sX1(J){let G=this.enterDelimited(),X=J.length;for(let H=0;H<X;H++)if(this._param(J[H]),H<J.length-1)this.tokenChar(44),this.space();G()}function pX1(J){if(this.printJoin(J.decorators),this.print(J),J.optional)this.tokenChar(63);this.print(J.typeAnnotation)}function nX1(J){let{kind:G,key:X}=J;if(G==="get"||G==="set")this.word(G),this.space();if(J.async)this.word("async",!0),this.space();if(G==="method"||G==="init"){if(J.generator)this.tokenChar(42)}if(J.computed)this.tokenChar(91),this.print(X),this.tokenChar(93);else this.print(X);if(J.optional)this.tokenChar(63);this._params(J,J.computed&&J.key.type!=="StringLiteral"?void 0:J.key,void 0)}function oX1(J,G){if(J.predicate){if(!J.returnType)this.tokenChar(58);this.space(),this.print(J.predicate,G)}}function eX1(J,G){if(J.async)this.word("async"),this._endsWithInnerRaw=!1,this.space();if(this.word("function"),J.generator)this._endsWithInnerRaw=!1,this.tokenChar(42);if(this.space(),J.id)this.print(J.id);if(this._params(J,J.id,G),J.type!=="TSDeclareFunction")this._predicate(J)}function tX1(J,G){this._functionHead(J,G),this.space(),this.print(J.body)}function J71(J,G){if(J.async)this.word("async",!0),this.space();let X;if(!this.format.retainLines&&J.params.length===1&&uX1(X=J.params[0])&&!G71(J,X))this.print(X,!0);else this._params(J,void 0,G);this._predicate(J,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=iX1.TokenContext.arrowBody,this.print(J.body)}function G71(J,G){var X,H;return!!(J.typeParameters||J.returnType||J.predicate||G.typeAnnotation||G.optional||(X=G.leadingComments)!=null&&X.length||(H=G.trailingComments)!=null&&H.length)}function X71(J,G){let X=J;if(!X&&G){let z=G.type;if(z==="VariableDeclarator")X=G.id;else if(z==="AssignmentExpression"||z==="AssignmentPattern")X=G.left;else if(z==="ObjectProperty"||z==="ClassProperty"){if(!G.computed||G.key.type==="StringLiteral")X=G.key}else if(z==="ClassPrivateProperty"||z==="ClassAccessorProperty")X=G.key}if(!X)return;let H;if(X.type==="Identifier"){var Z,V;H={pos:(Z=X.loc)==null?void 0:Z.start,name:((V=X.loc)==null?void 0:V.identifierName)||X.name}}else if(X.type==="PrivateName"){var Q;H={pos:(Q=X.loc)==null?void 0:Q.start,name:"#"+X.id.name}}else if(X.type==="StringLiteral"){var Y;H={pos:(Y=X.loc)==null?void 0:Y.start,name:X.value}}return H}});var $7=S((U$)=>{Object.defineProperty(U$,"__esModule",{value:!0});U$.ExportAllDeclaration=S71;U$.ExportDefaultDeclaration=w71;U$.ExportDefaultSpecifier=D71;U$.ExportNamedDeclaration=P71;U$.ExportNamespaceSpecifier=I71;U$.ExportSpecifier=A71;U$.ImportAttribute=T71;U$.ImportDeclaration=L71;U$.ImportDefaultSpecifier=f71;U$.ImportExpression=k71;U$.ImportNamespaceSpecifier=N71;U$.ImportSpecifier=j71;U$._printAttributes=C71;var U71=F1(),K71=T0(),{isClassDeclaration:B71,isExportDefaultSpecifier:R71,isExportNamespaceSpecifier:M71,isImportDefaultSpecifier:q71,isImportNamespaceSpecifier:F71,isStatement:W$}=U71;function j71(J){if(J.importKind==="type"||J.importKind==="typeof")this.word(J.importKind),this.space();if(this.print(J.imported),J.local&&J.local.name!==J.imported.name)this.space(),this.word("as"),this.space(),this.print(J.local)}function f71(J){this.print(J.local)}function D71(J){this.print(J.exported)}function A71(J){if(J.exportKind==="type")this.word("type"),this.space();if(this.print(J.local),J.exported&&J.local.name!==J.exported.name)this.space(),this.word("as"),this.space(),this.print(J.exported)}function I71(J){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(J.exported)}var z$=!1;function C71(J){let{importAttributesKeyword:G}=this.format,{attributes:X,assertions:H}=J;if(X&&!G&&!z$)z$=!0,console.warn(`You are using import attributes, without specifying the desired output syntax.
|
|
2
|
+
Please specify the "importAttributesKeyword" generator option, whose value can be one of:
|
|
3
|
+
- "with" : \`import { a } from "b" with { type: "json" };\`
|
|
4
|
+
- "assert" : \`import { a } from "b" assert { type: "json" };\`
|
|
5
|
+
- "with-legacy" : \`import { a } from "b" with type: "json";\`
|
|
6
|
+
`);let Z=G==="assert"||!G&&H;if(this.word(Z?"assert":"with"),this.space(),!Z&&G!=="with"){this.printList(X||H);return}this.tokenChar(123),this.space(),this.printList(X||H),this.space(),this.tokenChar(125)}function S71(J){var G,X;if(this.word("export"),this.space(),J.exportKind==="type")this.word("type"),this.space();if(this.tokenChar(42),this.space(),this.word("from"),this.space(),(G=J.attributes)!=null&&G.length||(X=J.assertions)!=null&&X.length)this.print(J.source,!0),this.space(),this._printAttributes(J);else this.print(J.source);this.semicolon()}function $$(J,G){if(B71(G.declaration)&&J._shouldPrintDecoratorsBeforeExport(G))J.printJoin(G.declaration.decorators)}function P71(J){if($$(this,J),this.word("export"),this.space(),J.declaration){let H=J.declaration;if(this.print(H),!W$(H))this.semicolon()}else{if(J.exportKind==="type")this.word("type"),this.space();let H=J.specifiers.slice(0),Z=!1;for(;;){let V=H[0];if(R71(V)||M71(V)){if(Z=!0,this.print(H.shift()),H.length)this.tokenChar(44),this.space()}else break}if(H.length||!H.length&&!Z){if(this.tokenChar(123),H.length)this.space(),this.printList(H),this.space();this.tokenChar(125)}if(J.source){var G,X;if(this.space(),this.word("from"),this.space(),(G=J.attributes)!=null&&G.length||(X=J.assertions)!=null&&X.length)this.print(J.source,!0),this.space(),this._printAttributes(J);else this.print(J.source)}this.semicolon()}}function w71(J){$$(this,J),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=K71.TokenContext.exportDefault;let G=J.declaration;if(this.print(G),!W$(G))this.semicolon()}function L71(J){var G,X;this.word("import"),this.space();let H=J.importKind==="type"||J.importKind==="typeof";if(H)this.noIndentInnerCommentsHere(),this.word(J.importKind),this.space();else if(J.module)this.noIndentInnerCommentsHere(),this.word("module"),this.space();else if(J.phase)this.noIndentInnerCommentsHere(),this.word(J.phase),this.space();let Z=J.specifiers.slice(0),V=!!Z.length;while(V){let Q=Z[0];if(q71(Q)||F71(Q)){if(this.print(Z.shift()),Z.length)this.tokenChar(44),this.space()}else break}if(Z.length)this.tokenChar(123),this.space(),this.printList(Z),this.space(),this.tokenChar(125);else if(H&&!V)this.tokenChar(123),this.tokenChar(125);if(V||H)this.space(),this.word("from"),this.space();if((G=J.attributes)!=null&&G.length||(X=J.assertions)!=null&&X.length)this.print(J.source,!0),this.space(),this._printAttributes(J);else this.print(J.source);this.semicolon()}function T71(J){this.print(J.key),this.tokenChar(58),this.space(),this.print(J.value)}function N71(J){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(J.local)}function k71(J){if(this.word("import"),J.phase)this.tokenChar(46),this.word(J.phase);if(this.tokenChar(40),this.print(J.source),J.options!=null)this.tokenChar(44),this.space(),this.print(J.options);this.tokenChar(41)}});var M$=S((X_1,R$)=>{var K$={},a71=K$.hasOwnProperty,B$=(J,G)=>{for(let X in J)if(a71.call(J,X))G(X,J[X])},i71=(J,G)=>{if(!G)return J;return B$(G,(X,H)=>{J[X]=H}),J},u71=(J,G)=>{let X=J.length,H=-1;while(++H<X)G(J[H])},kJ=(J)=>{return"\\u"+("0000"+J).slice(-4)},T9=(J,G)=>{let X=J.toString(16);if(G)return X;return X.toUpperCase()},N9=K$.toString,d71=Array.isArray,s71=(J)=>{return typeof Buffer==="function"&&Buffer.isBuffer(J)},p71=(J)=>{return N9.call(J)=="[object Object]"},n71=(J)=>{return typeof J=="string"||N9.call(J)=="[object String]"},o71=(J)=>{return typeof J=="number"||N9.call(J)=="[object Number]"},e71=(J)=>{return typeof J=="function"},t71=(J)=>{return N9.call(J)=="[object Map]"},J31=(J)=>{return N9.call(J)=="[object Set]"},G31={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},X31=/[\\\b\f\n\r\t]/,H31=/[0-9]/,Z31=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,V31=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,Q31=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,N0=(J,G)=>{let X=()=>{W=z,++G.indentLevel,z=G.indent.repeat(G.indentLevel)},H={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},Z=G&&G.json;if(Z)H.quotes="double",H.wrap=!0;if(G=i71(H,G),G.quotes!="single"&&G.quotes!="double"&&G.quotes!="backtick")G.quotes="single";let V=G.quotes=="double"?'"':G.quotes=="backtick"?"`":"\'",Q=G.compact,Y=G.lowercaseHex,z=G.indent.repeat(G.indentLevel),W="",K=G.__inline1__,q=G.__inline2__,f=Q?"":"\n",I,C=!0,x=G.numbers=="binary",O=G.numbers=="octal",v=G.numbers=="decimal",b=G.numbers=="hexadecimal";if(Z&&J&&e71(J.toJSON))J=J.toJSON();if(!n71(J)){if(t71(J)){if(J.size==0)return"new Map()";if(!Q)G.__inline1__=!0,G.__inline2__=!1;return"new Map("+N0(Array.from(J),G)+")"}if(J31(J)){if(J.size==0)return"new Set()";return"new Set("+N0(Array.from(J),G)+")"}if(s71(J)){if(J.length==0)return"Buffer.from([])";return"Buffer.from("+N0(Array.from(J),G)+")"}if(d71(J)){if(I=[],G.wrap=!0,K)G.__inline1__=!1,G.__inline2__=!0;if(!q)X();if(u71(J,(J1)=>{if(C=!1,q)G.__inline2__=!1;I.push((Q||q?"":z)+N0(J1,G))}),C)return"[]";if(q)return"["+I.join(", ")+"]";return"["+f+I.join(","+f)+f+(Q?"":W)+"]"}else if(o71(J)){if(Z)return JSON.stringify(J);if(v)return String(J);if(b){let J1=J.toString(16);if(!Y)J1=J1.toUpperCase();return"0x"+J1}if(x)return"0b"+J.toString(2);if(O)return"0o"+J.toString(8)}else if(!p71(J)){if(Z)return JSON.stringify(J)||"null";return String(J)}else{if(I=[],G.wrap=!0,X(),B$(J,(J1,R1)=>{C=!1,I.push((Q?"":z)+N0(J1,G)+":"+(Q?"":" ")+N0(R1,G))}),C)return"{}";return"{"+f+I.join(","+f)+f+(Q?"":W)+"}"}}let B1=G.escapeEverything?V31:Q31;if(I=J.replace(B1,(J1,R1,W1,D1,E1,a)=>{if(R1){if(G.minimal)return R1;let _=R1.charCodeAt(0),p=R1.charCodeAt(1);if(G.es6){let i=(_-55296)*1024+p-56320+65536;return"\\u{"+T9(i,Y)+"}"}return kJ(T9(_,Y))+kJ(T9(p,Y))}if(W1)return kJ(T9(W1.charCodeAt(0),Y));if(J1=="\0"&&!Z&&!H31.test(a.charAt(E1+1)))return"\\0";if(D1){if(D1==V||G.escapeEverything)return"\\"+D1;return D1}if(X31.test(J1))return G31[J1];if(G.minimal&&!Z31.test(J1))return J1;let u=T9(J1.charCodeAt(0),Y);if(Z||u.length>2)return kJ(u);return"\\x"+("00"+u).slice(-2)}),V=="`")I=I.replace(/\$\{/g,"\\${");if(G.isScriptContext)I=I.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,Z?"\\u003C!--":"\\x3C!--");if(G.wrap)I=V+I+V;return I};N0.version="3.0.2";R$.exports=N0});var K7=S((j$)=>{Object.defineProperty(j$,"__esModule",{value:!0});j$.ArgumentPlaceholder=$31;j$.ArrayPattern=j$.ArrayExpression=M31;j$.BigIntLiteral=C31;j$.BooleanLiteral=f31;j$.DecimalLiteral=S31;j$.Identifier=W31;j$.NullLiteral=D31;j$.NumericLiteral=A31;j$.ObjectPattern=j$.ObjectExpression=K31;j$.ObjectMethod=B31;j$.ObjectProperty=R31;j$.PipelineBareFunction=L31;j$.PipelinePrimaryTopicReference=T31;j$.PipelineTopicExpression=w31;j$.RecordExpression=q31;j$.RegExpLiteral=j31;j$.SpreadElement=j$.RestElement=U31;j$.StringLiteral=I31;j$.TopicReference=P31;j$.TupleExpression=F31;var Y31=F1(),F$=M$(),{isAssignmentPattern:z31,isIdentifier:U7}=Y31;function W31(J){var G;this.sourceIdentifierName(((G=J.loc)==null?void 0:G.identifierName)||J.name),this.word(J.name)}function $31(){this.tokenChar(63)}function U31(J){this.token("..."),this.print(J.argument)}function K31(J){let G=J.properties;if(this.tokenChar(123),G.length){let X=this.enterDelimited();this.space(),this.printList(G,{indent:!0,statement:!0}),this.space(),X()}this.sourceWithOffset("end",J.loc,-1),this.tokenChar(125)}function B31(J){this.printJoin(J.decorators),this._methodHead(J),this.space(),this.print(J.body)}function R31(J){if(this.printJoin(J.decorators),J.computed)this.tokenChar(91),this.print(J.key),this.tokenChar(93);else{if(z31(J.value)&&U7(J.key)&&J.key.name===J.value.left.name){this.print(J.value);return}if(this.print(J.key),J.shorthand&&U7(J.key)&&U7(J.value)&&J.key.name===J.value.name)return}this.tokenChar(58),this.space(),this.print(J.value)}function M31(J){let G=J.elements,X=G.length;this.tokenChar(91);let H=this.enterDelimited();for(let Z=0;Z<G.length;Z++){let V=G[Z];if(V){if(Z>0)this.space();if(this.print(V),Z<X-1)this.tokenChar(44)}else this.tokenChar(44)}H(),this.tokenChar(93)}function q31(J){let G=J.properties,X,H;if(this.format.recordAndTupleSyntaxType==="bar")X="{|",H="|}";else if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);else X="#{",H="}";if(this.token(X),G.length)this.space(),this.printList(G,{indent:!0,statement:!0}),this.space();this.token(H)}function F31(J){let G=J.elements,X=G.length,H,Z;if(this.format.recordAndTupleSyntaxType==="bar")H="[|",Z="|]";else if(this.format.recordAndTupleSyntaxType==="hash")H="#[",Z="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(H);for(let V=0;V<G.length;V++){let Q=G[V];if(Q){if(V>0)this.space();if(this.print(Q),V<X-1)this.tokenChar(44)}}this.token(Z)}function j31(J){this.word(`/${J.pattern}/${J.flags}`)}function f31(J){this.word(J.value?"true":"false")}function D31(){this.word("null")}function A31(J){let G=this.getPossibleRaw(J),X=this.format.jsescOption,H=J.value,Z=H+"";if(X.numbers)this.number(F$(H,X),H);else if(G==null)this.number(Z,H);else if(this.format.minified)this.number(G.length<Z.length?G:Z,H);else this.number(G,H)}function I31(J){let G=this.getPossibleRaw(J);if(!this.format.minified&&G!==void 0){this.token(G);return}let X=F$(J.value,this.format.jsescOption);this.token(X)}function C31(J){let G=this.getPossibleRaw(J);if(!this.format.minified&&G!==void 0){this.word(G);return}this.word(J.value+"n")}function S31(J){let G=this.getPossibleRaw(J);if(!this.format.minified&&G!==void 0){this.word(G);return}this.word(J.value+"m")}var q$=new Set(["^^","@@","^","%","#"]);function P31(){let{topicToken:J}=this.format;if(q$.has(J))this.token(J);else{let G=JSON.stringify(J),X=Array.from(q$,(H)=>JSON.stringify(H));throw new Error(`The "topicToken" generator option must be one of ${X.join(", ")} (${G} received instead).`)}}function w31(J){this.print(J.expression)}function L31(J){this.print(J.callee)}function T31(){this.tokenChar(35)}});var D$=S((_J)=>{Object.defineProperty(_J,"__esModule",{value:!0});_J.AnyTypeAnnotation=t31;_J.ArrayTypeAnnotation=JH1;_J.BooleanLiteralTypeAnnotation=XH1;_J.BooleanTypeAnnotation=GH1;_J.DeclareClass=ZH1;_J.DeclareExportAllDeclaration=MH1;_J.DeclareExportDeclaration=RH1;_J.DeclareFunction=VH1;_J.DeclareInterface=zH1;_J.DeclareModule=WH1;_J.DeclareModuleExports=$H1;_J.DeclareOpaqueType=KH1;_J.DeclareTypeAlias=UH1;_J.DeclareVariable=BH1;_J.DeclaredPredicate=YH1;_J.EmptyTypeAnnotation=hH1;_J.EnumBooleanBody=FH1;_J.EnumBooleanMember=IH1;_J.EnumDeclaration=qH1;_J.EnumDefaultedMember=AH1;_J.EnumNumberBody=jH1;_J.EnumNumberMember=CH1;_J.EnumStringBody=fH1;_J.EnumStringMember=SH1;_J.EnumSymbolBody=DH1;_J.ExistsTypeAnnotation=wH1;_J.FunctionTypeAnnotation=LH1;_J.FunctionTypeParam=TH1;_J.IndexedAccessType=zZ1;_J.InferredPredicate=QH1;_J.InterfaceDeclaration=OH1;_J.GenericTypeAnnotation=_J.ClassImplements=_J.InterfaceExtends=NH1;_J.InterfaceTypeAnnotation=_H1;_J.IntersectionTypeAnnotation=gH1;_J.MixedTypeAnnotation=bH1;_J.NullLiteralTypeAnnotation=HH1;_J.NullableTypeAnnotation=yH1;Object.defineProperty(_J,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return f$.NumericLiteral}});_J.NumberTypeAnnotation=mH1;_J.ObjectTypeAnnotation=pH1;_J.ObjectTypeCallProperty=oH1;_J.ObjectTypeIndexer=eH1;_J.ObjectTypeInternalSlot=nH1;_J.ObjectTypeProperty=tH1;_J.ObjectTypeSpreadProperty=JZ1;_J.OpaqueType=sH1;_J.OptionalIndexedAccessType=WZ1;_J.QualifiedTypeIdentifier=GZ1;Object.defineProperty(_J,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return f$.StringLiteral}});_J.StringTypeAnnotation=xH1;_J.SymbolTypeAnnotation=XZ1;_J.ThisTypeAnnotation=lH1;_J.TupleTypeAnnotation=cH1;_J.TypeAlias=aH1;_J.TypeAnnotation=iH1;_J.TypeCastExpression=VZ1;_J.TypeParameter=dH1;_J.TypeParameterDeclaration=_J.TypeParameterInstantiation=uH1;_J.TypeofTypeAnnotation=rH1;_J.UnionTypeAnnotation=ZZ1;_J.Variance=QZ1;_J.VoidTypeAnnotation=YZ1;_J._interfaceish=kH1;_J._variance=EH1;var p31=F1(),n31=$7(),o31=T0(),f$=K7(),{isDeclareExportDeclaration:EJ,isStatement:e31}=p31;function t31(){this.word("any")}function JH1(J){this.print(J.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function GH1(){this.word("boolean")}function XH1(J){this.word(J.value?"true":"false")}function HH1(){this.word("null")}function ZH1(J,G){if(!EJ(G))this.word("declare"),this.space();this.word("class"),this.space(),this._interfaceish(J)}function VH1(J,G){if(!EJ(G))this.word("declare"),this.space();if(this.word("function"),this.space(),this.print(J.id),this.print(J.id.typeAnnotation.typeAnnotation),J.predicate)this.space(),this.print(J.predicate);this.semicolon()}function QH1(){this.tokenChar(37),this.word("checks")}function YH1(J){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(J.value),this.tokenChar(41)}function zH1(J){this.word("declare"),this.space(),this.InterfaceDeclaration(J)}function WH1(J){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(J.id),this.space(),this.print(J.body)}function $H1(J){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(J.typeAnnotation)}function UH1(J){this.word("declare"),this.space(),this.TypeAlias(J)}function KH1(J,G){if(!EJ(G))this.word("declare"),this.space();this.OpaqueType(J)}function BH1(J,G){if(!EJ(G))this.word("declare"),this.space();this.word("var"),this.space(),this.print(J.id),this.print(J.id.typeAnnotation),this.semicolon()}function RH1(J){if(this.word("declare"),this.space(),this.word("export"),this.space(),J.default)this.word("default"),this.space();PH1.call(this,J)}function MH1(J){this.word("declare"),this.space(),n31.ExportAllDeclaration.call(this,J)}function qH1(J){let{id:G,body:X}=J;this.word("enum"),this.space(),this.print(G),this.print(X)}function OJ(J,G,X){if(X)J.space(),J.word("of"),J.space(),J.word(G);J.space()}function vJ(J,G){let{members:X}=G;J.token("{"),J.indent(),J.newline();for(let H of X)J.print(H),J.newline();if(G.hasUnknownMembers)J.token("..."),J.newline();J.dedent(),J.token("}")}function FH1(J){let{explicitType:G}=J;OJ(this,"boolean",G),vJ(this,J)}function jH1(J){let{explicitType:G}=J;OJ(this,"number",G),vJ(this,J)}function fH1(J){let{explicitType:G}=J;OJ(this,"string",G),vJ(this,J)}function DH1(J){OJ(this,"symbol",!0),vJ(this,J)}function AH1(J){let{id:G}=J;this.print(G),this.tokenChar(44)}function B7(J,G){J.print(G.id),J.space(),J.token("="),J.space(),J.print(G.init),J.token(",")}function IH1(J){B7(this,J)}function CH1(J){B7(this,J)}function SH1(J){B7(this,J)}function PH1(J){if(J.declaration){let G=J.declaration;if(this.print(G),!e31(G))this.semicolon()}else{if(this.tokenChar(123),J.specifiers.length)this.space(),this.printList(J.specifiers),this.space();if(this.tokenChar(125),J.source)this.space(),this.word("from"),this.space(),this.print(J.source);this.semicolon()}}function wH1(){this.tokenChar(42)}function LH1(J,G){if(this.print(J.typeParameters),this.tokenChar(40),J.this){if(this.word("this"),this.tokenChar(58),this.space(),this.print(J.this.typeAnnotation),J.params.length||J.rest)this.tokenChar(44),this.space()}if(this.printList(J.params),J.rest){if(J.params.length)this.tokenChar(44),this.space();this.token("..."),this.print(J.rest)}this.tokenChar(41);let X=G==null?void 0:G.type;if(X!=null&&(X==="ObjectTypeCallProperty"||X==="ObjectTypeInternalSlot"||X==="DeclareFunction"||X==="ObjectTypeProperty"&&G.method))this.tokenChar(58);else this.space(),this.token("=>");this.space(),this.print(J.returnType)}function TH1(J){if(this.print(J.name),J.optional)this.tokenChar(63);if(J.name)this.tokenChar(58),this.space();this.print(J.typeAnnotation)}function NH1(J){this.print(J.id),this.print(J.typeParameters,!0)}function kH1(J){var G;if(this.print(J.id),this.print(J.typeParameters),(G=J.extends)!=null&&G.length)this.space(),this.word("extends"),this.space(),this.printList(J.extends);if(J.type==="DeclareClass"){var X,H;if((X=J.mixins)!=null&&X.length)this.space(),this.word("mixins"),this.space(),this.printList(J.mixins);if((H=J.implements)!=null&&H.length)this.space(),this.word("implements"),this.space(),this.printList(J.implements)}this.space(),this.print(J.body)}function EH1(J){var G;let X=(G=J.variance)==null?void 0:G.kind;if(X!=null){if(X==="plus")this.tokenChar(43);else if(X==="minus")this.tokenChar(45)}}function OH1(J){this.word("interface"),this.space(),this._interfaceish(J)}function vH1(){this.space(),this.tokenChar(38),this.space()}function _H1(J){var G;if(this.word("interface"),(G=J.extends)!=null&&G.length)this.space(),this.word("extends"),this.space(),this.printList(J.extends);this.space(),this.print(J.body)}function gH1(J){this.printJoin(J.types,{separator:vH1})}function bH1(){this.word("mixed")}function hH1(){this.word("empty")}function yH1(J){this.tokenChar(63),this.print(J.typeAnnotation)}function mH1(){this.word("number")}function xH1(){this.word("string")}function lH1(){this.word("this")}function cH1(J){this.tokenChar(91),this.printList(J.types),this.tokenChar(93)}function rH1(J){this.word("typeof"),this.space(),this.print(J.argument)}function aH1(J){this.word("type"),this.space(),this.print(J.id),this.print(J.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(J.right),this.semicolon()}function iH1(J,G){if(this.tokenChar(58),this.space(),G.type==="ArrowFunctionExpression")this.tokenContext|=o31.TokenContext.arrowFlowReturnType;else if(J.optional)this.tokenChar(63);this.print(J.typeAnnotation)}function uH1(J){this.tokenChar(60),this.printList(J.params,{}),this.tokenChar(62)}function dH1(J){if(this._variance(J),this.word(J.name),J.bound)this.print(J.bound);if(J.default)this.space(),this.tokenChar(61),this.space(),this.print(J.default)}function sH1(J){if(this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(J.id),this.print(J.typeParameters),J.supertype)this.tokenChar(58),this.space(),this.print(J.supertype);if(J.impltype)this.space(),this.tokenChar(61),this.space(),this.print(J.impltype);this.semicolon()}function pH1(J){if(J.exact)this.token("{|");else this.tokenChar(123);let G=[...J.properties,...J.callProperties||[],...J.indexers||[],...J.internalSlots||[]];if(G.length)this.newline(),this.space(),this.printJoin(G,{addNewlines(X){if(X&&!G[0])return 1},indent:!0,statement:!0,iterator:()=>{if(G.length!==1||J.inexact)this.tokenChar(44),this.space()}}),this.space();if(J.inexact){if(this.indent(),this.token("..."),G.length)this.newline();this.dedent()}if(J.exact)this.token("|}");else this.tokenChar(125)}function nH1(J){if(J.static)this.word("static"),this.space();if(this.tokenChar(91),this.tokenChar(91),this.print(J.id),this.tokenChar(93),this.tokenChar(93),J.optional)this.tokenChar(63);if(!J.method)this.tokenChar(58),this.space();this.print(J.value)}function oH1(J){if(J.static)this.word("static"),this.space();this.print(J.value)}function eH1(J){if(J.static)this.word("static"),this.space();if(this._variance(J),this.tokenChar(91),J.id)this.print(J.id),this.tokenChar(58),this.space();this.print(J.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(J.value)}function tH1(J){if(J.proto)this.word("proto"),this.space();if(J.static)this.word("static"),this.space();if(J.kind==="get"||J.kind==="set")this.word(J.kind),this.space();if(this._variance(J),this.print(J.key),J.optional)this.tokenChar(63);if(!J.method)this.tokenChar(58),this.space();this.print(J.value)}function JZ1(J){this.token("..."),this.print(J.argument)}function GZ1(J){this.print(J.qualification),this.tokenChar(46),this.print(J.id)}function XZ1(){this.word("symbol")}function HZ1(){this.space(),this.tokenChar(124),this.space()}function ZZ1(J){this.printJoin(J.types,{separator:HZ1})}function VZ1(J){this.tokenChar(40),this.print(J.expression),this.print(J.typeAnnotation),this.tokenChar(41)}function QZ1(J){if(J.kind==="plus")this.tokenChar(43);else this.tokenChar(45)}function YZ1(){this.word("void")}function zZ1(J){this.print(J.objectType,!0),this.tokenChar(91),this.print(J.indexType),this.tokenChar(93)}function WZ1(J){if(this.print(J.objectType),J.optional)this.token("?.");this.tokenChar(91),this.print(J.indexType),this.tokenChar(93)}});var I$=S((A$)=>{Object.defineProperty(A$,"__esModule",{value:!0});A$.BlockStatement=DV1;A$.Directive=AV1;A$.DirectiveLiteral=SV1;A$.File=jV1;A$.InterpreterDirective=PV1;A$.Placeholder=wV1;A$.Program=fV1;function jV1(J){if(J.program)this.print(J.program.interpreter);this.print(J.program)}function fV1(J){var G;this.noIndentInnerCommentsHere(),this.printInnerComments();let X=(G=J.directives)==null?void 0:G.length;if(X){var H;let Z=J.body.length?2:1;if(this.printSequence(J.directives,{trailingCommentsLineOffset:Z}),!((H=J.directives[X-1].trailingComments)!=null&&H.length))this.newline(Z)}this.printSequence(J.body)}function DV1(J){var G;this.tokenChar(123);let X=this.enterDelimited(),H=(G=J.directives)==null?void 0:G.length;if(H){var Z;let V=J.body.length?2:1;if(this.printSequence(J.directives,{indent:!0,trailingCommentsLineOffset:V}),!((Z=J.directives[H-1].trailingComments)!=null&&Z.length))this.newline(V)}this.printSequence(J.body,{indent:!0}),X(),this.rightBrace(J)}function AV1(J){this.print(J.value),this.semicolon()}var IV1=/(?:^|[^\\])(?:\\\\)*'/,CV1=/(?:^|[^\\])(?:\\\\)*"/;function SV1(J){let G=this.getPossibleRaw(J);if(!this.format.minified&&G!==void 0){this.token(G);return}let{value:X}=J;if(!CV1.test(X))this.token(`"${X}"`);else if(!IV1.test(X))this.token(`'${X}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function PV1(J){this.token(`#!${J.value}`),this.newline(1,!0)}function wV1(J){if(this.token("%%"),this.print(J.name),this.token("%%"),J.expectedNode==="Statement")this.semicolon()}});var S$=S((C$)=>{Object.defineProperty(C$,"__esModule",{value:!0});C$.JSXAttribute=_V1;C$.JSXClosingElement=iV1;C$.JSXClosingFragment=pV1;C$.JSXElement=cV1;C$.JSXEmptyExpression=uV1;C$.JSXExpressionContainer=mV1;C$.JSXFragment=dV1;C$.JSXIdentifier=gV1;C$.JSXMemberExpression=hV1;C$.JSXNamespacedName=bV1;C$.JSXOpeningElement=aV1;C$.JSXOpeningFragment=sV1;C$.JSXSpreadAttribute=yV1;C$.JSXSpreadChild=xV1;C$.JSXText=lV1;function _V1(J){if(this.print(J.name),J.value)this.tokenChar(61),this.print(J.value)}function gV1(J){this.word(J.name)}function bV1(J){this.print(J.namespace),this.tokenChar(58),this.print(J.name)}function hV1(J){this.print(J.object),this.tokenChar(46),this.print(J.property)}function yV1(J){this.tokenChar(123),this.token("..."),this.print(J.argument),this.rightBrace(J)}function mV1(J){this.tokenChar(123),this.print(J.expression),this.rightBrace(J)}function xV1(J){this.tokenChar(123),this.token("..."),this.print(J.expression),this.rightBrace(J)}function lV1(J){let G=this.getPossibleRaw(J);if(G!==void 0)this.token(G,!0);else this.token(J.value,!0)}function cV1(J){let G=J.openingElement;if(this.print(G),G.selfClosing)return;this.indent();for(let X of J.children)this.print(X);this.dedent(),this.print(J.closingElement)}function rV1(){this.space()}function aV1(J){if(this.tokenChar(60),this.print(J.name),this.print(J.typeParameters),J.attributes.length>0)this.space(),this.printJoin(J.attributes,{separator:rV1});if(J.selfClosing)this.space(),this.token("/>");else this.tokenChar(62)}function iV1(J){this.token("</"),this.print(J.name),this.tokenChar(62)}function uV1(){this.printInnerComments()}function dV1(J){this.print(J.openingFragment),this.indent();for(let G of J.children)this.print(G);this.dedent(),this.print(J.closingFragment)}function sV1(){this.tokenChar(60),this.tokenChar(62)}function pV1(){this.token("</"),this.tokenChar(62)}});var T$=S((L$)=>{Object.defineProperty(L$,"__esModule",{value:!0});L$.TSAnyKeyword=SQ1;L$.TSArrayType=uQ1;L$.TSSatisfiesExpression=L$.TSAsExpression=$Y1;L$.TSBigIntKeyword=PQ1;L$.TSBooleanKeyword=NQ1;L$.TSCallSignatureDeclaration=jQ1;L$.TSInterfaceHeritage=L$.TSExpressionWithTypeArguments=L$.TSClassImplements=QY1;L$.TSConditionalType=tQ1;L$.TSConstructSignatureDeclaration=fQ1;L$.TSConstructorType=mQ1;L$.TSDeclareFunction=MQ1;L$.TSDeclareMethod=qQ1;L$.TSEnumDeclaration=BY1;L$.TSEnumMember=RY1;L$.TSExportAssignment=AY1;L$.TSExternalModuleReference=fY1;L$.TSFunctionType=yQ1;L$.TSImportEqualsDeclaration=jY1;L$.TSImportType=FY1;L$.TSIndexSignature=CQ1;L$.TSIndexedAccessType=HY1;L$.TSInferType=JY1;L$.TSInstantiationExpression=KY1;L$.TSInterfaceBody=zY1;L$.TSInterfaceDeclaration=YY1;L$.TSIntersectionType=eQ1;L$.TSIntrinsicKeyword=bQ1;L$.TSLiteralType=VY1;L$.TSMappedType=ZY1;L$.TSMethodSignature=IQ1;L$.TSModuleBlock=qY1;L$.TSModuleDeclaration=MY1;L$.TSNamedTupleMember=nQ1;L$.TSNamespaceExportDeclaration=IY1;L$.TSNeverKeyword=gQ1;L$.TSNonNullExpression=DY1;L$.TSNullKeyword=_Q1;L$.TSNumberKeyword=LQ1;L$.TSObjectKeyword=TQ1;L$.TSOptionalType=sQ1;L$.TSParameterProperty=RQ1;L$.TSParenthesizedType=GY1;L$.TSPropertySignature=DQ1;L$.TSQualifiedName=FQ1;L$.TSRestType=pQ1;L$.TSStringKeyword=kQ1;L$.TSSymbolKeyword=EQ1;L$.TSThisType=hQ1;L$.TSTupleType=dQ1;L$.TSTypeAliasDeclaration=WY1;L$.TSTypeAnnotation=UQ1;L$.TSTypeAssertion=UY1;L$.TSTypeLiteral=aQ1;L$.TSTypeOperator=XY1;L$.TSTypeParameter=BQ1;L$.TSTypeParameterDeclaration=L$.TSTypeParameterInstantiation=KQ1;L$.TSTypePredicate=cQ1;L$.TSTypeQuery=rQ1;L$.TSTypeReference=lQ1;L$.TSUndefinedKeyword=vQ1;L$.TSUnionType=oQ1;L$.TSUnknownKeyword=wQ1;L$.TSVoidKeyword=OQ1;L$.tsPrintClassMemberModifiers=SY1;L$.tsPrintFunctionOrConstructorType=xQ1;L$.tsPrintPropertyOrMethodName=AQ1;L$.tsPrintSignatureDeclarationBase=CY1;L$.tsPrintTypeLiteralOrInterfaceBody=iQ1;function UQ1(J){if(this.tokenChar(58),this.space(),J.optional)this.tokenChar(63);this.print(J.typeAnnotation)}function KQ1(J,G){if(this.tokenChar(60),this.printList(J.params,{}),G.type==="ArrowFunctionExpression"&&J.params.length===1)this.tokenChar(44);this.tokenChar(62)}function BQ1(J){if(J.in)this.word("in"),this.space();if(J.out)this.word("out"),this.space();if(this.word(J.name),J.constraint)this.space(),this.word("extends"),this.space(),this.print(J.constraint);if(J.default)this.space(),this.tokenChar(61),this.space(),this.print(J.default)}function RQ1(J){if(J.accessibility)this.word(J.accessibility),this.space();if(J.readonly)this.word("readonly"),this.space();this._param(J.parameter)}function MQ1(J,G){if(J.declare)this.word("declare"),this.space();this._functionHead(J,G),this.semicolon()}function qQ1(J){this._classMethodHead(J),this.semicolon()}function FQ1(J){this.print(J.left),this.tokenChar(46),this.print(J.right)}function jQ1(J){this.tsPrintSignatureDeclarationBase(J),this.semicolon()}function fQ1(J){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(J),this.semicolon()}function DQ1(J){let{readonly:G}=J;if(G)this.word("readonly"),this.space();this.tsPrintPropertyOrMethodName(J),this.print(J.typeAnnotation),this.semicolon()}function AQ1(J){if(J.computed)this.tokenChar(91);if(this.print(J.key),J.computed)this.tokenChar(93);if(J.optional)this.tokenChar(63)}function IQ1(J){let{kind:G}=J;if(G==="set"||G==="get")this.word(G),this.space();this.tsPrintPropertyOrMethodName(J),this.tsPrintSignatureDeclarationBase(J),this.semicolon()}function CQ1(J){let{readonly:G,static:X}=J;if(X)this.word("static"),this.space();if(G)this.word("readonly"),this.space();this.tokenChar(91),this._parameters(J.parameters),this.tokenChar(93),this.print(J.typeAnnotation),this.semicolon()}function SQ1(){this.word("any")}function PQ1(){this.word("bigint")}function wQ1(){this.word("unknown")}function LQ1(){this.word("number")}function TQ1(){this.word("object")}function NQ1(){this.word("boolean")}function kQ1(){this.word("string")}function EQ1(){this.word("symbol")}function OQ1(){this.word("void")}function vQ1(){this.word("undefined")}function _Q1(){this.word("null")}function gQ1(){this.word("never")}function bQ1(){this.word("intrinsic")}function hQ1(){this.word("this")}function yQ1(J){this.tsPrintFunctionOrConstructorType(J)}function mQ1(J){if(J.abstract)this.word("abstract"),this.space();this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(J)}function xQ1(J){let{typeParameters:G}=J,X=J.parameters;this.print(G),this.tokenChar(40),this._parameters(X),this.tokenChar(41),this.space(),this.token("=>"),this.space();let H=J.typeAnnotation;this.print(H.typeAnnotation)}function lQ1(J){this.print(J.typeName,!0),this.print(J.typeParameters,!0)}function cQ1(J){if(J.asserts)this.word("asserts"),this.space();if(this.print(J.parameterName),J.typeAnnotation)this.space(),this.word("is"),this.space(),this.print(J.typeAnnotation.typeAnnotation)}function rQ1(J){if(this.word("typeof"),this.space(),this.print(J.exprName),J.typeParameters)this.print(J.typeParameters)}function aQ1(J){this.tsPrintTypeLiteralOrInterfaceBody(J.members,J)}function iQ1(J,G){R7(this,J,G)}function R7(J,G,X){if(J.token("{"),G.length){J.indent(),J.newline();for(let H of G)J.print(H),J.newline();J.dedent()}J.rightBrace(X)}function uQ1(J){this.print(J.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function dQ1(J){this.tokenChar(91),this.printList(J.elementTypes),this.tokenChar(93)}function sQ1(J){this.print(J.typeAnnotation),this.tokenChar(63)}function pQ1(J){this.token("..."),this.print(J.typeAnnotation)}function nQ1(J){if(this.print(J.label),J.optional)this.tokenChar(63);this.tokenChar(58),this.space(),this.print(J.elementType)}function oQ1(J){w$(this,J,"|")}function eQ1(J){w$(this,J,"&")}function w$(J,G,X){J.printJoin(G.types,{separator(){this.space(),this.token(X),this.space()}})}function tQ1(J){this.print(J.checkType),this.space(),this.word("extends"),this.space(),this.print(J.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(J.trueType),this.space(),this.tokenChar(58),this.space(),this.print(J.falseType)}function JY1(J){this.word("infer"),this.print(J.typeParameter)}function GY1(J){this.tokenChar(40),this.print(J.typeAnnotation),this.tokenChar(41)}function XY1(J){this.word(J.operator),this.space(),this.print(J.typeAnnotation)}function HY1(J){this.print(J.objectType,!0),this.tokenChar(91),this.print(J.indexType),this.tokenChar(93)}function ZY1(J){let{nameType:G,optional:X,readonly:H,typeAnnotation:Z}=J;if(this.tokenChar(123),this.space(),H)P$(this,H),this.word("readonly"),this.space();if(this.tokenChar(91),this.word(J.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(J.typeParameter.constraint),G)this.space(),this.word("as"),this.space(),this.print(G);if(this.tokenChar(93),X)P$(this,X),this.tokenChar(63);if(Z)this.tokenChar(58),this.space(),this.print(Z);this.space(),this.tokenChar(125)}function P$(J,G){if(G!==!0)J.token(G)}function VY1(J){this.print(J.literal)}function QY1(J){this.print(J.expression),this.print(J.typeParameters)}function YY1(J){let{declare:G,id:X,typeParameters:H,extends:Z,body:V}=J;if(G)this.word("declare"),this.space();if(this.word("interface"),this.space(),this.print(X),this.print(H),Z!=null&&Z.length)this.space(),this.word("extends"),this.space(),this.printList(Z);this.space(),this.print(V)}function zY1(J){this.tsPrintTypeLiteralOrInterfaceBody(J.body,J)}function WY1(J){let{declare:G,id:X,typeParameters:H,typeAnnotation:Z}=J;if(G)this.word("declare"),this.space();this.word("type"),this.space(),this.print(X),this.print(H),this.space(),this.tokenChar(61),this.space(),this.print(Z),this.semicolon()}function $Y1(J){let{type:G,expression:X,typeAnnotation:H}=J;this.print(X,!0),this.space(),this.word(G==="TSAsExpression"?"as":"satisfies"),this.space(),this.print(H)}function UY1(J){let{typeAnnotation:G,expression:X}=J;this.tokenChar(60),this.print(G),this.tokenChar(62),this.space(),this.print(X)}function KY1(J){this.print(J.expression),this.print(J.typeParameters)}function BY1(J){let{declare:G,const:X,id:H,members:Z}=J;if(G)this.word("declare"),this.space();if(X)this.word("const"),this.space();this.word("enum"),this.space(),this.print(H),this.space(),R7(this,Z,J)}function RY1(J){let{id:G,initializer:X}=J;if(this.print(G),X)this.space(),this.tokenChar(61),this.space(),this.print(X);this.tokenChar(44)}function MY1(J){let{declare:G,id:X}=J;if(G)this.word("declare"),this.space();if(!J.global)this.word(X.type==="Identifier"?"namespace":"module"),this.space();if(this.print(X),!J.body){this.semicolon();return}let H=J.body;while(H.type==="TSModuleDeclaration")this.tokenChar(46),this.print(H.id),H=H.body;this.space(),this.print(H)}function qY1(J){R7(this,J.body,J)}function FY1(J){let{argument:G,qualifier:X,typeParameters:H}=J;if(this.word("import"),this.tokenChar(40),this.print(G),this.tokenChar(41),X)this.tokenChar(46),this.print(X);if(H)this.print(H)}function jY1(J){let{isExport:G,id:X,moduleReference:H}=J;if(G)this.word("export"),this.space();this.word("import"),this.space(),this.print(X),this.space(),this.tokenChar(61),this.space(),this.print(H),this.semicolon()}function fY1(J){this.token("require("),this.print(J.expression),this.tokenChar(41)}function DY1(J){this.print(J.expression),this.tokenChar(33)}function AY1(J){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(J.expression),this.semicolon()}function IY1(J){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(J.id),this.semicolon()}function CY1(J){let{typeParameters:G}=J,X=J.parameters;this.print(G),this.tokenChar(40),this._parameters(X),this.tokenChar(41);let H=J.typeAnnotation;this.print(H)}function SY1(J){let G=J.type==="ClassAccessorProperty"||J.type==="ClassProperty";if(G&&J.declare)this.word("declare"),this.space();if(J.accessibility)this.word(J.accessibility),this.space();if(J.static)this.word("static"),this.space();if(J.override)this.word("override"),this.space();if(J.abstract)this.word("abstract"),this.space();if(G&&J.readonly)this.word("readonly"),this.space()}});var N$=S((S1)=>{Object.defineProperty(S1,"__esModule",{value:!0});var M7=sW();Object.keys(M7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in S1&&S1[J]===M7[J])return;Object.defineProperty(S1,J,{enumerable:!0,get:function(){return M7[J]}})});var q7=oW();Object.keys(q7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in S1&&S1[J]===q7[J])return;Object.defineProperty(S1,J,{enumerable:!0,get:function(){return q7[J]}})});var F7=H$();Object.keys(F7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in S1&&S1[J]===F7[J])return;Object.defineProperty(S1,J,{enumerable:!0,get:function(){return F7[J]}})});var j7=V$();Object.keys(j7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in S1&&S1[J]===j7[J])return;Object.defineProperty(S1,J,{enumerable:!0,get:function(){return j7[J]}})});var f7=Y$();Object.keys(f7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in S1&&S1[J]===f7[J])return;Object.defineProperty(S1,J,{enumerable:!0,get:function(){return f7[J]}})});var D7=$7();Object.keys(D7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in S1&&S1[J]===D7[J])return;Object.defineProperty(S1,J,{enumerable:!0,get:function(){return D7[J]}})});var A7=K7();Object.keys(A7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in S1&&S1[J]===A7[J])return;Object.defineProperty(S1,J,{enumerable:!0,get:function(){return A7[J]}})});var I7=D$();Object.keys(I7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in S1&&S1[J]===I7[J])return;Object.defineProperty(S1,J,{enumerable:!0,get:function(){return I7[J]}})});var C7=I$();Object.keys(C7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in S1&&S1[J]===C7[J])return;Object.defineProperty(S1,J,{enumerable:!0,get:function(){return C7[J]}})});var S7=S$();Object.keys(S7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in S1&&S1[J]===S7[J])return;Object.defineProperty(S1,J,{enumerable:!0,get:function(){return S7[J]}})});var P7=T$();Object.keys(P7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in S1&&S1[J]===P7[J])return;Object.defineProperty(S1,J,{enumerable:!0,get:function(){return P7[J]}})})});var g$=S((v$)=>{Object.defineProperty(v$,"__esModule",{value:!0});v$.default=void 0;var mz1=rV(),E$=T0(),xz1=F1(),lz1=N$(),{isExpression:cz1,isFunction:rz1,isStatement:az1,isClassBody:iz1,isTSInterfaceBody:uz1,isTSEnumDeclaration:dz1}=xz1,sz1=/e/i,pz1=/\.0+$/,O$=/[\n\r\u2028\u2029]/,nz1=/[\n\r\u2028\u2029]|\*\//;function k$(J){return J.type==="CommentLine"||O$.test(J.value)}var{needsParens:oz1}=E$;class gJ{constructor(J,G){this.inForStatementInit=!1,this.tokenContext=0,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._endsWithDiv=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.format=J,this._indentRepeat=J.indent.style.length,this._inputMap=G==null?void 0:G._inputMap,this._buf=new mz1.default(G,J.indent.style[0])}enterForStatementInit(){if(this.inForStatementInit)return()=>{};return this.inForStatementInit=!0,()=>{this.inForStatementInit=!1}}enterDelimited(){let J=this.inForStatementInit,G=this._noLineTerminatorAfterNode;if(J===!1&&G===null)return()=>{};return this.inForStatementInit=!1,this._noLineTerminatorAfterNode=null,()=>{this.inForStatementInit=J,this._noLineTerminatorAfterNode=G}}generate(J){return this.print(J),this._maybeAddAuxComment(),this._buf.get()}indent(){if(this.format.compact||this.format.concise)return;this._indent++}dedent(){if(this.format.compact||this.format.concise)return;this._indent--}semicolon(J=!1){if(this._maybeAddAuxComment(),J)this._appendChar(59);else this._queue(59);this._noLineTerminator=!1}rightBrace(J){if(this.format.minified)this._buf.removeLastSemicolon();this.sourceWithOffset("end",J.loc,-1),this.tokenChar(125)}rightParens(J){this.sourceWithOffset("end",J.loc,-1),this.tokenChar(41)}space(J=!1){if(this.format.compact)return;if(J)this._space();else if(this._buf.hasContent()){let G=this.getLastChar();if(G!==32&&G!==10)this._space()}}word(J,G=!1){if(this.tokenContext=0,this._maybePrintInnerComments(),this._endsWithWord||this._endsWithDiv&&J.charCodeAt(0)===47)this._space();this._maybeAddAuxComment(),this._append(J,!1),this._endsWithWord=!0,this._noLineTerminator=G}number(J,G){function X(H){if(H.length>2&&H.charCodeAt(0)===48){let Z=H.charCodeAt(1);return Z===98||Z===111||Z===120}return!1}this.word(J),this._endsWithInteger=Number.isInteger(G)&&!X(J)&&!sz1.test(J)&&!pz1.test(J)&&J.charCodeAt(J.length-1)!==46}token(J,G=!1){this.tokenContext=0,this._maybePrintInnerComments();let X=this.getLastChar(),H=J.charCodeAt(0);if(X===33&&(J==="--"||H===61)||H===43&&X===43||H===45&&X===45||H===46&&this._endsWithInteger)this._space();this._maybeAddAuxComment(),this._append(J,G),this._noLineTerminator=!1}tokenChar(J){this.tokenContext=0,this._maybePrintInnerComments();let G=this.getLastChar();if(J===43&&G===43||J===45&&G===45||J===46&&this._endsWithInteger)this._space();this._maybeAddAuxComment(),this._appendChar(J),this._noLineTerminator=!1}newline(J=1,G){if(J<=0)return;if(!G){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}if(J>2)J=2;J-=this._buf.getNewlineCount();for(let X=0;X<J;X++)this._newline();return}endsWith(J){return this.getLastChar()===J}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(J,G){if(!J){G();return}this._catchUp("start",J),this._buf.exactSource(J,G)}source(J,G){if(!G)return;this._catchUp(J,G),this._buf.source(J,G)}sourceWithOffset(J,G,X){if(!G)return;this._catchUp(J,G),this._buf.sourceWithOffset(J,G,X)}sourceIdentifierName(J,G){if(!this._buf._canMarkIdName)return;let X=this._buf._sourcePosition;X.identifierNamePos=G,X.identifierName=J}_space(){this._queue(32)}_newline(){this._queue(10)}_append(J,G){this._maybeIndent(J.charCodeAt(0)),this._buf.append(J,G),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_appendChar(J){this._maybeIndent(J),this._buf.appendChar(J),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_queue(J){this._maybeIndent(J),this._buf.queue(J),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(J){if(this._indent&&J!==10&&this.endsWith(10))this._buf.queueIndentation(this._getIndent())}_shouldIndent(J){if(this._indent&&J!==10&&this.endsWith(10))return!0}catchUp(J){if(!this.format.retainLines)return;let G=J-this._buf.getCurrentLine();for(let X=0;X<G;X++)this._newline()}_catchUp(J,G){var X;if(!this.format.retainLines)return;let H=G==null||(X=G[J])==null?void 0:X.line;if(H!=null){let Z=H-this._buf.getCurrentLine();for(let V=0;V<Z;V++)this._newline()}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(J){this._noLineTerminator=!0,this.print(J)}print(J,G,X){var H,Z,V;if(!J)return;this._endsWithInnerRaw=!1;let Q=J.type,Y=this.format,z=Y.concise;if(J._compact)Y.concise=!0;let W=this[Q];if(W===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(Q)} with constructor ${JSON.stringify(J.constructor.name)}`);let K=this._currentNode;this._currentNode=J;let q=this._insideAux;this._insideAux=J.loc==null,this._maybeAddAuxComment(this._insideAux&&!q);let f=(H=J.extra)==null?void 0:H.parenthesized,I=f&&Y.retainFunctionParens&&Q==="FunctionExpression"||oz1(J,K,this.tokenContext,this.inForStatementInit);if(!I&&f&&(Z=J.leadingComments)!=null&&Z.length&&J.leadingComments[0].type==="CommentBlock")switch(K==null?void 0:K.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(K.callee!==J)break;default:I=!0}let C=!1;if(!I&&this._noLineTerminator&&((V=J.leadingComments)!=null&&V.some(k$)||this.format.retainLines&&J.loc&&J.loc.start.line>this._buf.getCurrentLine()))I=!0,C=!0;let x,O;if(!I){if(G||(G=K&&this._noLineTerminatorAfterNode===K&&E$.isLastChild(K,J)),G){var v;if((v=J.trailingComments)!=null&&v.some(k$)){if(cz1(J))I=!0}else x=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=J}}if(I){if(this.tokenChar(40),C)this.indent();if(this._endsWithInnerRaw=!1,this.inForStatementInit)O=!0,this.inForStatementInit=!1;x=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null}this._lastCommentLine=0,this._printLeadingComments(J,K);let b=Q==="Program"||Q==="File"?null:J.loc;if(this.exactSource(b,W.bind(this,J,K)),I){if(this._printTrailingComments(J,K),C)this.dedent(),this.newline();if(this.tokenChar(41),this._noLineTerminator=G,O)this.inForStatementInit=!0}else if(G&&!this._noLineTerminator)this._noLineTerminator=!0,this._printTrailingComments(J,K);else this._printTrailingComments(J,K,X);if(this._currentNode=K,Y.concise=z,this._insideAux=q,x!==void 0)this._noLineTerminatorAfterNode=x;this._endsWithInnerRaw=!1}_maybeAddAuxComment(J){if(J)this._printAuxBeforeComment();if(!this._insideAux)this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let J=this.format.auxiliaryCommentBefore;if(J)this._printComment({type:"CommentBlock",value:J},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let J=this.format.auxiliaryCommentAfter;if(J)this._printComment({type:"CommentBlock",value:J},0)}getPossibleRaw(J){let G=J.extra;if((G==null?void 0:G.raw)!=null&&G.rawValue!=null&&J.value===G.rawValue)return G.raw}printJoin(J,G={}){if(!(J!=null&&J.length))return;let{indent:X}=G;if(X==null&&this.format.retainLines){var H;let W=(H=J[0].loc)==null?void 0:H.start.line;if(W!=null&&W!==this._buf.getCurrentLine())X=!0}if(X)this.indent();let Z={addNewlines:G.addNewlines,nextNodeStartLine:0},V=G.separator?G.separator.bind(this):null,Q=J.length;for(let W=0;W<Q;W++){let K=J[W];if(!K)continue;if(G.statement)this._printNewline(W===0,Z);if(this.print(K,void 0,G.trailingCommentsLineOffset||0),G.iterator==null||G.iterator(K,W),W<Q-1)V==null||V();if(G.statement){var Y;if(!((Y=K.trailingComments)!=null&&Y.length))this._lastCommentLine=0;if(W+1===Q)this.newline(1);else{var z;let q=J[W+1];Z.nextNodeStartLine=((z=q.loc)==null?void 0:z.start.line)||0,this._printNewline(!0,Z)}}}if(X)this.dedent()}printAndIndentOnComments(J){let G=J.leadingComments&&J.leadingComments.length>0;if(G)this.indent();if(this.print(J),G)this.dedent()}printBlock(J){let G=J.body;if(G.type!=="EmptyStatement")this.space();this.print(G)}_printTrailingComments(J,G,X){let{innerComments:H,trailingComments:Z}=J;if(H!=null&&H.length)this._printComments(2,H,J,G,X);if(Z!=null&&Z.length)this._printComments(2,Z,J,G,X)}_printLeadingComments(J,G){let X=J.leadingComments;if(!(X!=null&&X.length))return;this._printComments(0,X,J,G)}_maybePrintInnerComments(){if(this._endsWithInnerRaw)this.printInnerComments();this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(){let J=this._currentNode,G=J.innerComments;if(!(G!=null&&G.length))return;let X=this.endsWith(32),H=this._indentInnerComments,Z=this._printedComments.size;if(H)this.indent();if(this._printComments(1,G,J),X&&Z!==this._printedComments.size)this.space();if(H)this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(J,G={}){var X;G.statement=!0,(X=G.indent)!=null||(G.indent=!1),this.printJoin(J,G)}printList(J,G={}){if(G.separator==null)G.separator=ez1;this.printJoin(J,G)}_printNewline(J,G){let X=this.format;if(X.retainLines||X.compact)return;if(X.concise){this.space();return}if(!J)return;let H=G.nextNodeStartLine,Z=this._lastCommentLine;if(H>0&&Z>0){let V=H-Z;if(V>=0){this.newline(V||1);return}}if(this._buf.hasContent())this.newline(1)}_shouldPrintComment(J){if(J.ignore)return 0;if(this._printedComments.has(J))return 0;if(this._noLineTerminator&&nz1.test(J.value))return 2;if(this._printedComments.add(J),!this.format.shouldPrintComment(J.value))return 0;return 1}_printComment(J,G){let X=this._noLineTerminator,H=J.type==="CommentBlock",Z=H&&G!==1&&!this._noLineTerminator;if(Z&&this._buf.hasContent()&&G!==2)this.newline(1);let V=this.getLastChar();if(V!==91&&V!==123&&V!==40)this.space();let Q;if(H){if(Q=`/*${J.value}*/`,this.format.indent.adjustMultilineComment){var Y;let z=(Y=J.loc)==null?void 0:Y.start.column;if(z){let W=new RegExp("\\n\\s{1,"+z+"}","g");Q=Q.replace(W,"\n")}if(this.format.concise)Q=Q.replace(/\n(?!$)/g,"\n");else{let W=this.format.retainLines?0:this._buf.getCurrentColumn();if(this._shouldIndent(47)||this.format.retainLines)W+=this._getIndent();Q=Q.replace(/\n(?!$)/g,`\n${" ".repeat(W)}`)}}}else if(!X)Q=`//${J.value}`;else Q=`/*${J.value}*/`;if(this._endsWithDiv)this._space();if(this.source("start",J.loc),this._append(Q,H),!H&&!X)this.newline(1,!0);if(Z&&G!==3)this.newline(1)}_printComments(J,G,X,H,Z=0){let V=X.loc,Q=G.length,Y=!!V,z=Y?V.start.line:0,W=Y?V.end.line:0,K=0,q=0,f=this._noLineTerminator?function(){}:this.newline.bind(this);for(let I=0;I<Q;I++){let C=G[I],x=this._shouldPrintComment(C);if(x===2){Y=!1;break}if(Y&&C.loc&&x===1){let O=C.loc.start.line,v=C.loc.end.line;if(J===0){let b=0;if(I===0){if(this._buf.hasContent()&&(C.type==="CommentLine"||O!==v))b=q=1}else b=O-K;if(K=v,f(b),this._printComment(C,1),I+1===Q)f(Math.max(z-K,q)),K=z}else if(J===1){let b=O-(I===0?z:K);if(K=v,f(b),this._printComment(C,1),I+1===Q)f(Math.min(1,W-K)),K=W}else{let b=O-(I===0?W-Z:K);K=v,f(b),this._printComment(C,1)}}else{if(Y=!1,x!==1)continue;if(Q===1){let O=C.loc?C.loc.start.line===C.loc.end.line:!O$.test(C.value),v=O&&!az1(X)&&!iz1(H)&&!uz1(H)&&!dz1(H);if(J===0)this._printComment(C,v&&X.type!=="ObjectExpression"||O&&rz1(H,{body:X})?1:0);else if(v&&J===2)this._printComment(C,1);else this._printComment(C,0)}else if(J===1&&!(X.type==="ObjectExpression"&&X.properties.length>1)&&X.type!=="ClassBody"&&X.type!=="TSInterfaceBody")this._printComment(C,I===0?2:I===Q-1?3:0);else this._printComment(C,0)}}if(J===2&&Y&&K)this._lastCommentLine=K}}Object.assign(gJ.prototype,lz1);gJ.prototype.Noop=function J(){};var f_1=v$.default=gJ;function ez1(){this.tokenChar(44),this.space()}});var w7=S((m$)=>{Object.defineProperty(m$,"__esModule",{value:!0});m$.default=tz1;var b$=mV(),h$=g$();function y$(J,G){let X={auxiliaryCommentBefore:G.auxiliaryCommentBefore,auxiliaryCommentAfter:G.auxiliaryCommentAfter,shouldPrintComment:G.shouldPrintComment,retainLines:G.retainLines,retainFunctionParens:G.retainFunctionParens,comments:G.comments==null||G.comments,compact:G.compact,minified:G.minified,concise:G.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},G.jsescOption),topicToken:G.topicToken,importAttributesKeyword:G.importAttributesKeyword};{var H;X.decoratorsBeforeExport=G.decoratorsBeforeExport,X.jsescOption.json=G.jsonCompatibleStrings,X.recordAndTupleSyntaxType=(H=G.recordAndTupleSyntaxType)!=null?H:"hash"}if(X.minified)X.compact=!0,X.shouldPrintComment=X.shouldPrintComment||(()=>X.comments);else X.shouldPrintComment=X.shouldPrintComment||((Y)=>X.comments||Y.includes("@license")||Y.includes("@preserve"));if(X.compact==="auto"){if(X.compact=typeof J==="string"&&J.length>500000,X.compact)console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${G.filename} as it exceeds the max of 500KB.`)}if(X.compact)X.indent.adjustMultilineComment=!1;let{auxiliaryCommentBefore:Z,auxiliaryCommentAfter:V,shouldPrintComment:Q}=X;if(Z&&!Q(Z))X.auxiliaryCommentBefore=void 0;if(V&&!Q(V))X.auxiliaryCommentAfter=void 0;return X}m$.CodeGenerator=class J{constructor(G,X={},H){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=G,this._format=y$(H,X),this._map=X.sourceMaps?new b$.default(X,H):null}generate(){return new h$.default(this._format,this._map).generate(this._ast)}};function tz1(J,G={},X){let H=y$(X,G),Z=G.sourceMaps?new b$.default(G,X):null;return new h$.default(H,Z).generate(J)}});var aJ=S((OU)=>{Object.defineProperty(OU,"__esModule",{value:!0});function GW1(J,G){if(J==null)return{};var X={};for(var H in J)if({}.hasOwnProperty.call(J,H)){if(G.includes(H))continue;X[H]=J[H]}return X}class M0{constructor(J,G,X){this.line=void 0,this.column=void 0,this.index=void 0,this.line=J,this.column=G,this.index=X}}class h9{constructor(J,G){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=J,this.end=G}}function U2(J,G){let{line:X,column:H,index:Z}=J;return new M0(X,H+G,Z+G)}var x$="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",XW1={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:x$},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:x$}},l$={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},yJ=(J)=>J.type==="UpdateExpression"?l$.UpdateExpression[`${J.prefix}`]:l$[J.type],HW1={AccessorIsGenerator:({kind:J})=>`A ${J}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:J})=>`Missing initializer in ${J} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:J})=>`\`${J}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:J})=>`'import.${J}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:J,exportName:G})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${J}' as '${G}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:J})=>`'${J==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:J})=>`Unsyntactic ${J==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:J})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${J}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:J})=>`\`import()\` requires exactly ${J===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:J})=>`Expected number in radix ${J}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:J})=>`Escape sequence in keyword ${J}.`,InvalidIdentifier:({identifierName:J})=>`Invalid identifier ${J}.`,InvalidLhs:({ancestor:J})=>`Invalid left-hand side in ${yJ(J)}.`,InvalidLhsBinding:({ancestor:J})=>`Binding invalid left-hand side in ${yJ(J)}.`,InvalidLhsOptionalChaining:({ancestor:J})=>`Invalid optional chaining in the left-hand side of ${yJ(J)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:J})=>`Unexpected character '${J}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:J})=>`Private name #${J} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:J})=>`Label '${J}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:J})=>`This experimental syntax requires enabling the parser plugin: ${J.map((G)=>JSON.stringify(G)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:J})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${J.map((G)=>JSON.stringify(G)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:J})=>`Duplicate key "${J}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:J})=>`An export name cannot include a lone surrogate, found '\\u${J.toString(16)}'.`,ModuleExportUndefined:({localName:J})=>`Export '${J}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:J})=>`Private names are only allowed in property accesses (\`obj.#${J}\`) or in \`in\` expressions (\`#${J} in obj\`).`,PrivateNameRedeclaration:({identifierName:J})=>`Duplicate private name #${J}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:J})=>`Unexpected keyword '${J}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:J})=>`Unexpected reserved word '${J}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:J,unexpected:G})=>`Unexpected token${G?` '${G}'.`:""}${J?`, expected "${J}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:J,onlyValidPropertyName:G})=>`The only valid meta property for ${J} is ${J}.${G}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:J})=>`Identifier '${J}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},ZW1={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:J})=>`Assigning to '${J}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:J})=>`Binding '${J}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},VW1=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),QW1={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:J})=>`Invalid topic token ${J}. In order to use ${J} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${J}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:J})=>`Hack-style pipe body cannot be an unparenthesized ${yJ({type:J})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},YW1=["message"];function c$(J,G,X){Object.defineProperty(J,G,{enumerable:!1,configurable:!0,value:X})}function zW1({toMessage:J,code:G,reasonCode:X,syntaxPlugin:H}){let Z=X==="MissingPlugin"||X==="MissingOneOfPlugins";{let V={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};if(V[X])X=V[X]}return function V(Q,Y){let z=new SyntaxError;if(z.code=G,z.reasonCode=X,z.loc=Q,z.pos=Q.index,z.syntaxPlugin=H,Z)z.missingPlugin=Y.missingPlugin;return c$(z,"clone",function W(K={}){var q;let{line:f,column:I,index:C}=(q=K.loc)!=null?q:Q;return V(new M0(f,I,C),Object.assign({},Y,K.details))}),c$(z,"details",Y),Object.defineProperty(z,"message",{configurable:!0,get(){let W=`${J(Y)} (${Q.line}:${Q.column})`;return this.message=W,W},set(W){Object.defineProperty(this,"message",{value:W,writable:!0})}}),z}}function R0(J,G){if(Array.isArray(J))return(H)=>R0(H,J[0]);let X={};for(let H of Object.keys(J)){let Z=J[H],V=typeof Z==="string"?{message:()=>Z}:typeof Z==="function"?{message:Z}:Z,{message:Q}=V,Y=GW1(V,YW1),z=typeof Q==="string"?()=>Q:Q;X[H]=zW1(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:H,toMessage:z},G?{syntaxPlugin:G}:{},Y))}return X}var D=Object.assign({},R0(XW1),R0(HW1),R0(ZW1),R0`pipelineOperator`(QW1)),{defineProperty:WW1}=Object,r$=(J,G)=>{if(J)WW1(J,G,{enumerable:!1,value:J[G]})};function k9(J){return r$(J.loc.start,"index"),r$(J.loc.end,"index"),J}var $W1=(J)=>class G extends J{parse(){let X=k9(super.parse());if(this.options.tokens)X.tokens=X.tokens.map(k9);return X}parseRegExpLiteral({pattern:X,flags:H}){let Z=null;try{Z=new RegExp(X,H)}catch(Q){}let V=this.estreeParseLiteral(Z);return V.regex={pattern:X,flags:H},V}parseBigIntLiteral(X){let H;try{H=BigInt(X)}catch(V){H=null}let Z=this.estreeParseLiteral(H);return Z.bigint=String(Z.value||X),Z}parseDecimalLiteral(X){let Z=this.estreeParseLiteral(null);return Z.decimal=String(Z.value||X),Z}estreeParseLiteral(X){return this.parseLiteral(X,"Literal")}parseStringLiteral(X){return this.estreeParseLiteral(X)}parseNumericLiteral(X){return this.estreeParseLiteral(X)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(X){return this.estreeParseLiteral(X)}directiveToStmt(X){let H=X.value;delete X.value,H.type="Literal",H.raw=H.extra.raw,H.value=H.extra.expressionValue;let Z=X;return Z.type="ExpressionStatement",Z.expression=H,Z.directive=H.extra.rawValue,delete H.extra,Z}initFunction(X,H){super.initFunction(X,H),X.expression=!1}checkDeclaration(X){if(X!=null&&this.isObjectProperty(X))this.checkDeclaration(X.value);else super.checkDeclaration(X)}getObjectOrClassMethodParams(X){return X.value.params}isValidDirective(X){var H;return X.type==="ExpressionStatement"&&X.expression.type==="Literal"&&typeof X.expression.value==="string"&&!((H=X.expression.extra)!=null&&H.parenthesized)}parseBlockBody(X,H,Z,V,Q){super.parseBlockBody(X,H,Z,V,Q);let Y=X.directives.map((z)=>this.directiveToStmt(z));X.body=Y.concat(X.body),delete X.directives}pushClassMethod(X,H,Z,V,Q,Y){if(this.parseMethod(H,Z,V,Q,Y,"ClassMethod",!0),H.typeParameters)H.value.typeParameters=H.typeParameters,delete H.typeParameters;X.body.push(H)}parsePrivateName(){let X=super.parsePrivateName();if(!this.getPluginOption("estree","classFeatures"))return X;return this.convertPrivateNameToPrivateIdentifier(X)}convertPrivateNameToPrivateIdentifier(X){let H=super.getPrivateNameSV(X);return X=X,delete X.id,X.name=H,X.type="PrivateIdentifier",X}isPrivateName(X){if(!this.getPluginOption("estree","classFeatures"))return super.isPrivateName(X);return X.type==="PrivateIdentifier"}getPrivateNameSV(X){if(!this.getPluginOption("estree","classFeatures"))return super.getPrivateNameSV(X);return X.name}parseLiteral(X,H){let Z=super.parseLiteral(X,H);return Z.raw=Z.extra.raw,delete Z.extra,Z}parseFunctionBody(X,H,Z=!1){super.parseFunctionBody(X,H,Z),X.expression=X.body.type!=="BlockStatement"}parseMethod(X,H,Z,V,Q,Y,z=!1){let W=this.startNode();if(W.kind=X.kind,W=super.parseMethod(W,H,Z,V,Q,Y,z),W.type="FunctionExpression",delete W.kind,X.value=W,Y==="ClassPrivateMethod")X.computed=!1;return this.finishNode(X,"MethodDefinition")}nameIsConstructor(X){if(X.type==="Literal")return X.value==="constructor";return super.nameIsConstructor(X)}parseClassProperty(...X){let H=super.parseClassProperty(...X);if(!this.getPluginOption("estree","classFeatures"))return H;return H.type="PropertyDefinition",H}parseClassPrivateProperty(...X){let H=super.parseClassPrivateProperty(...X);if(!this.getPluginOption("estree","classFeatures"))return H;return H.type="PropertyDefinition",H.computed=!1,H}parseObjectMethod(X,H,Z,V,Q){let Y=super.parseObjectMethod(X,H,Z,V,Q);if(Y){if(Y.type="Property",Y.kind==="method")Y.kind="init";Y.shorthand=!1}return Y}parseObjectProperty(X,H,Z,V){let Q=super.parseObjectProperty(X,H,Z,V);if(Q)Q.kind="init",Q.type="Property";return Q}isValidLVal(X,H,Z){return X==="Property"?"value":super.isValidLVal(X,H,Z)}isAssignable(X,H){if(X!=null&&this.isObjectProperty(X))return this.isAssignable(X.value,H);return super.isAssignable(X,H)}toAssignable(X,H=!1){if(X!=null&&this.isObjectProperty(X)){let{key:Z,value:V}=X;if(this.isPrivateName(Z))this.classScope.usePrivateName(this.getPrivateNameSV(Z),Z.loc.start);this.toAssignable(V,H)}else super.toAssignable(X,H)}toAssignableObjectExpressionProp(X,H,Z){if(X.type==="Property"&&(X.kind==="get"||X.kind==="set"))this.raise(D.PatternHasAccessor,X.key);else if(X.type==="Property"&&X.method)this.raise(D.PatternHasMethod,X.key);else super.toAssignableObjectExpressionProp(X,H,Z)}finishCallExpression(X,H){let Z=super.finishCallExpression(X,H);if(Z.callee.type==="Import"){if(Z.type="ImportExpression",Z.source=Z.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var V,Q;Z.options=(V=Z.arguments[1])!=null?V:null,Z.attributes=(Q=Z.arguments[1])!=null?Q:null}delete Z.arguments,delete Z.callee}return Z}toReferencedArguments(X){if(X.type==="ImportExpression")return;super.toReferencedArguments(X)}parseExport(X,H){let Z=this.state.lastTokStartLoc,V=super.parseExport(X,H);switch(V.type){case"ExportAllDeclaration":V.exported=null;break;case"ExportNamedDeclaration":if(V.specifiers.length===1&&V.specifiers[0].type==="ExportNamespaceSpecifier")V.type="ExportAllDeclaration",V.exported=V.specifiers[0].exported,delete V.specifiers;case"ExportDefaultDeclaration":{var Q;let{declaration:Y}=V;if((Y==null?void 0:Y.type)==="ClassDeclaration"&&((Q=Y.decorators)==null?void 0:Q.length)>0&&Y.start===V.start)this.resetStartLocation(V,Z)}break}return V}parseSubscript(X,H,Z,V){let Q=super.parseSubscript(X,H,Z,V);if(V.optionalChainMember){if(Q.type==="OptionalMemberExpression"||Q.type==="OptionalCallExpression")Q.type=Q.type.substring(8);if(V.stop){let Y=this.startNodeAtNode(Q);return Y.expression=Q,this.finishNode(Y,"ChainExpression")}}else if(Q.type==="MemberExpression"||Q.type==="CallExpression")Q.optional=!1;return Q}isOptionalMemberExpression(X){if(X.type==="ChainExpression")return X.expression.type==="MemberExpression";return super.isOptionalMemberExpression(X)}hasPropertyAsPrivateName(X){if(X.type==="ChainExpression")X=X.expression;return super.hasPropertyAsPrivateName(X)}isObjectProperty(X){return X.type==="Property"&&X.kind==="init"&&!X.method}isObjectMethod(X){return X.type==="Property"&&(X.method||X.kind==="get"||X.kind==="set")}finishNodeAt(X,H,Z){return k9(super.finishNodeAt(X,H,Z))}resetStartLocation(X,H){super.resetStartLocation(X,H),k9(X)}resetEndLocation(X,H=this.state.lastTokEndLoc){super.resetEndLocation(X,H),k9(X)}};class _5{constructor(J,G){this.token=void 0,this.preserveSpace=void 0,this.token=J,this.preserveSpace=!!G}}var v1={brace:new _5("{"),j_oTag:new _5("<tag"),j_cTag:new _5("</tag"),j_expr:new _5("<tag>...</tag>",!0)};v1.template=new _5("`",!0);var f1=!0,d=!0,L7=!0,E9=!0,k0=!0,UW1=!0;class b7{constructor(J,G={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=J,this.keyword=G.keyword,this.beforeExpr=!!G.beforeExpr,this.startsExpr=!!G.startsExpr,this.rightAssociative=!!G.rightAssociative,this.isLoop=!!G.isLoop,this.isAssign=!!G.isAssign,this.prefix=!!G.prefix,this.postfix=!!G.postfix,this.binop=G.binop!=null?G.binop:null,this.updateContext=null}}var h7=new Map;function P1(J,G={}){G.keyword=J;let X=Z1(J,G);return h7.set(J,X),X}function $2(J,G){return Z1(J,{beforeExpr:f1,binop:G})}var g9=-1,K0=[],y7=[],m7=[],x7=[],l7=[],c7=[];function Z1(J,G={}){var X,H,Z,V;return++g9,y7.push(J),m7.push((X=G.binop)!=null?X:-1),x7.push((H=G.beforeExpr)!=null?H:!1),l7.push((Z=G.startsExpr)!=null?Z:!1),c7.push((V=G.prefix)!=null?V:!1),K0.push(new b7(J,G)),g9}function j1(J,G={}){var X,H,Z,V;return++g9,h7.set(J,g9),y7.push(J),m7.push((X=G.binop)!=null?X:-1),x7.push((H=G.beforeExpr)!=null?H:!1),l7.push((Z=G.startsExpr)!=null?Z:!1),c7.push((V=G.prefix)!=null?V:!1),K0.push(new b7("name",G)),g9}var KW1={bracketL:Z1("[",{beforeExpr:f1,startsExpr:d}),bracketHashL:Z1("#[",{beforeExpr:f1,startsExpr:d}),bracketBarL:Z1("[|",{beforeExpr:f1,startsExpr:d}),bracketR:Z1("]"),bracketBarR:Z1("|]"),braceL:Z1("{",{beforeExpr:f1,startsExpr:d}),braceBarL:Z1("{|",{beforeExpr:f1,startsExpr:d}),braceHashL:Z1("#{",{beforeExpr:f1,startsExpr:d}),braceR:Z1("}"),braceBarR:Z1("|}"),parenL:Z1("(",{beforeExpr:f1,startsExpr:d}),parenR:Z1(")"),comma:Z1(",",{beforeExpr:f1}),semi:Z1(";",{beforeExpr:f1}),colon:Z1(":",{beforeExpr:f1}),doubleColon:Z1("::",{beforeExpr:f1}),dot:Z1("."),question:Z1("?",{beforeExpr:f1}),questionDot:Z1("?."),arrow:Z1("=>",{beforeExpr:f1}),template:Z1("template"),ellipsis:Z1("...",{beforeExpr:f1}),backQuote:Z1("`",{startsExpr:d}),dollarBraceL:Z1("${",{beforeExpr:f1,startsExpr:d}),templateTail:Z1("...`",{startsExpr:d}),templateNonTail:Z1("...${",{beforeExpr:f1,startsExpr:d}),at:Z1("@"),hash:Z1("#",{startsExpr:d}),interpreterDirective:Z1("#!..."),eq:Z1("=",{beforeExpr:f1,isAssign:E9}),assign:Z1("_=",{beforeExpr:f1,isAssign:E9}),slashAssign:Z1("_=",{beforeExpr:f1,isAssign:E9}),xorAssign:Z1("_=",{beforeExpr:f1,isAssign:E9}),moduloAssign:Z1("_=",{beforeExpr:f1,isAssign:E9}),incDec:Z1("++/--",{prefix:k0,postfix:UW1,startsExpr:d}),bang:Z1("!",{beforeExpr:f1,prefix:k0,startsExpr:d}),tilde:Z1("~",{beforeExpr:f1,prefix:k0,startsExpr:d}),doubleCaret:Z1("^^",{startsExpr:d}),doubleAt:Z1("@@",{startsExpr:d}),pipeline:$2("|>",0),nullishCoalescing:$2("??",1),logicalOR:$2("||",1),logicalAND:$2("&&",2),bitwiseOR:$2("|",3),bitwiseXOR:$2("^",4),bitwiseAND:$2("&",5),equality:$2("==/!=/===/!==",6),lt:$2("</>/<=/>=",7),gt:$2("</>/<=/>=",7),relational:$2("</>/<=/>=",7),bitShift:$2("<</>>/>>>",8),bitShiftL:$2("<</>>/>>>",8),bitShiftR:$2("<</>>/>>>",8),plusMin:Z1("+/-",{beforeExpr:f1,binop:9,prefix:k0,startsExpr:d}),modulo:Z1("%",{binop:10,startsExpr:d}),star:Z1("*",{binop:10}),slash:$2("/",10),exponent:Z1("**",{beforeExpr:f1,binop:11,rightAssociative:!0}),_in:P1("in",{beforeExpr:f1,binop:7}),_instanceof:P1("instanceof",{beforeExpr:f1,binop:7}),_break:P1("break"),_case:P1("case",{beforeExpr:f1}),_catch:P1("catch"),_continue:P1("continue"),_debugger:P1("debugger"),_default:P1("default",{beforeExpr:f1}),_else:P1("else",{beforeExpr:f1}),_finally:P1("finally"),_function:P1("function",{startsExpr:d}),_if:P1("if"),_return:P1("return",{beforeExpr:f1}),_switch:P1("switch"),_throw:P1("throw",{beforeExpr:f1,prefix:k0,startsExpr:d}),_try:P1("try"),_var:P1("var"),_const:P1("const"),_with:P1("with"),_new:P1("new",{beforeExpr:f1,startsExpr:d}),_this:P1("this",{startsExpr:d}),_super:P1("super",{startsExpr:d}),_class:P1("class",{startsExpr:d}),_extends:P1("extends",{beforeExpr:f1}),_export:P1("export"),_import:P1("import",{startsExpr:d}),_null:P1("null",{startsExpr:d}),_true:P1("true",{startsExpr:d}),_false:P1("false",{startsExpr:d}),_typeof:P1("typeof",{beforeExpr:f1,prefix:k0,startsExpr:d}),_void:P1("void",{beforeExpr:f1,prefix:k0,startsExpr:d}),_delete:P1("delete",{beforeExpr:f1,prefix:k0,startsExpr:d}),_do:P1("do",{isLoop:L7,beforeExpr:f1}),_for:P1("for",{isLoop:L7}),_while:P1("while",{isLoop:L7}),_as:j1("as",{startsExpr:d}),_assert:j1("assert",{startsExpr:d}),_async:j1("async",{startsExpr:d}),_await:j1("await",{startsExpr:d}),_defer:j1("defer",{startsExpr:d}),_from:j1("from",{startsExpr:d}),_get:j1("get",{startsExpr:d}),_let:j1("let",{startsExpr:d}),_meta:j1("meta",{startsExpr:d}),_of:j1("of",{startsExpr:d}),_sent:j1("sent",{startsExpr:d}),_set:j1("set",{startsExpr:d}),_source:j1("source",{startsExpr:d}),_static:j1("static",{startsExpr:d}),_using:j1("using",{startsExpr:d}),_yield:j1("yield",{startsExpr:d}),_asserts:j1("asserts",{startsExpr:d}),_checks:j1("checks",{startsExpr:d}),_exports:j1("exports",{startsExpr:d}),_global:j1("global",{startsExpr:d}),_implements:j1("implements",{startsExpr:d}),_intrinsic:j1("intrinsic",{startsExpr:d}),_infer:j1("infer",{startsExpr:d}),_is:j1("is",{startsExpr:d}),_mixins:j1("mixins",{startsExpr:d}),_proto:j1("proto",{startsExpr:d}),_require:j1("require",{startsExpr:d}),_satisfies:j1("satisfies",{startsExpr:d}),_keyof:j1("keyof",{startsExpr:d}),_readonly:j1("readonly",{startsExpr:d}),_unique:j1("unique",{startsExpr:d}),_abstract:j1("abstract",{startsExpr:d}),_declare:j1("declare",{startsExpr:d}),_enum:j1("enum",{startsExpr:d}),_module:j1("module",{startsExpr:d}),_namespace:j1("namespace",{startsExpr:d}),_interface:j1("interface",{startsExpr:d}),_type:j1("type",{startsExpr:d}),_opaque:j1("opaque",{startsExpr:d}),name:Z1("name",{startsExpr:d}),string:Z1("string",{startsExpr:d}),num:Z1("num",{startsExpr:d}),bigint:Z1("bigint",{startsExpr:d}),decimal:Z1("decimal",{startsExpr:d}),regexp:Z1("regexp",{startsExpr:d}),privateName:Z1("#name",{startsExpr:d}),eof:Z1("eof"),jsxName:Z1("jsxName"),jsxText:Z1("jsxText",{beforeExpr:!0}),jsxTagStart:Z1("jsxTagStart",{startsExpr:!0}),jsxTagEnd:Z1("jsxTagEnd"),placeholder:Z1("%%",{startsExpr:!0})};function N1(J){return J>=93&&J<=132}function BW1(J){return J<=92}function x2(J){return J>=58&&J<=132}function GU(J){return J>=58&&J<=136}function RW1(J){return x7[J]}function v7(J){return l7[J]}function MW1(J){return J>=29&&J<=33}function a$(J){return J>=129&&J<=131}function qW1(J){return J>=90&&J<=92}function r7(J){return J>=58&&J<=92}function FW1(J){return J>=39&&J<=59}function jW1(J){return J===34}function fW1(J){return c7[J]}function DW1(J){return J>=121&&J<=123}function AW1(J){return J>=124&&J<=130}function O0(J){return y7[J]}function mJ(J){return m7[J]}function IW1(J){return J===57}function lJ(J){return J>=24&&J<=25}function $0(J){return K0[J]}K0[8].updateContext=(J)=>{J.pop()},K0[5].updateContext=K0[7].updateContext=K0[23].updateContext=(J)=>{J.push(v1.brace)},K0[22].updateContext=(J)=>{if(J[J.length-1]===v1.template)J.pop();else J.push(v1.template)},K0[142].updateContext=(J)=>{J.push(v1.j_expr,v1.j_oTag)};var a7="\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-\u1C8A\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-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\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",XU="\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\u0897-\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\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\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\uFF65",CW1=new RegExp("["+a7+"]"),SW1=new RegExp("["+a7+XU+"]");a7=XU=null;var HU=[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,4,51,13,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,39,27,10,22,251,41,7,1,17,2,60,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,200,32,32,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,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,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,229,29,3,0,496,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,16,621,2467,541,1507,4938,6,4191],PW1=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,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,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,343,9,54,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,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,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,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function _7(J,G){let X=65536;for(let H=0,Z=G.length;H<Z;H+=2){if(X+=G[H],X>J)return!1;if(X+=G[H+1],X>=J)return!0}return!1}function B0(J){if(J<65)return J===36;if(J<=90)return!0;if(J<97)return J===95;if(J<=122)return!0;if(J<=65535)return J>=170&&CW1.test(String.fromCharCode(J));return _7(J,HU)}function b5(J){if(J<48)return J===36;if(J<58)return!0;if(J<65)return!1;if(J<=90)return!0;if(J<97)return J===95;if(J<=122)return!0;if(J<=65535)return J>=170&&SW1.test(String.fromCharCode(J));return _7(J,HU)||_7(J,PW1)}var i7={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},wW1=new Set(i7.keyword),LW1=new Set(i7.strict),TW1=new Set(i7.strictBind);function ZU(J,G){return G&&J==="await"||J==="enum"}function VU(J,G){return ZU(J,G)||LW1.has(J)}function QU(J){return TW1.has(J)}function YU(J,G){return VU(J,G)||QU(J)}function NW1(J){return wW1.has(J)}function kW1(J,G,X){return J===64&&G===64&&B0(X)}var EW1=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function OW1(J){return EW1.has(J)}class cJ{constructor(J){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=J}}class rJ{constructor(J,G){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=J,this.inModule=G}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let J=this.currentThisScopeFlags();return(J&64)>0&&(J&2)===0}get inStaticBlock(){for(let J=this.scopeStack.length-1;;J--){let{flags:G}=this.scopeStack[J];if(G&128)return!0;if(G&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(J){return new cJ(J)}enter(J){this.scopeStack.push(this.createScope(J))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(J){return!!(J.flags&130||!this.parser.inModule&&J.flags&1)}declareName(J,G,X){let H=this.currentScope();if(G&8||G&16){this.checkRedeclarationInScope(H,J,G,X);let Z=H.names.get(J)||0;if(G&16)Z=Z|4;else{if(!H.firstLexicalName)H.firstLexicalName=J;Z=Z|2}if(H.names.set(J,Z),G&8)this.maybeExportDefined(H,J)}else if(G&4){for(let Z=this.scopeStack.length-1;Z>=0;--Z)if(H=this.scopeStack[Z],this.checkRedeclarationInScope(H,J,G,X),H.names.set(J,(H.names.get(J)||0)|1),this.maybeExportDefined(H,J),H.flags&387)break}if(this.parser.inModule&&H.flags&1)this.undefinedExports.delete(J)}maybeExportDefined(J,G){if(this.parser.inModule&&J.flags&1)this.undefinedExports.delete(G)}checkRedeclarationInScope(J,G,X,H){if(this.isRedeclaredInScope(J,G,X))this.parser.raise(D.VarRedeclaration,H,{identifierName:G})}isRedeclaredInScope(J,G,X){if(!(X&1))return!1;if(X&8)return J.names.has(G);let H=J.names.get(G);if(X&16)return(H&2)>0||!this.treatFunctionsAsVarInScope(J)&&(H&1)>0;return(H&2)>0&&!(J.flags&8&&J.firstLexicalName===G)||!this.treatFunctionsAsVarInScope(J)&&(H&4)>0}checkLocalExport(J){let{name:G}=J;if(!this.scopeStack[0].names.has(G))this.undefinedExports.set(G,J.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let J=this.scopeStack.length-1;;J--){let{flags:G}=this.scopeStack[J];if(G&387)return G}}currentThisScopeFlags(){for(let J=this.scopeStack.length-1;;J--){let{flags:G}=this.scopeStack[J];if(G&451&&!(G&4))return G}}}class zU extends cJ{constructor(...J){super(...J);this.declareFunctions=new Set}}class WU extends rJ{createScope(J){return new zU(J)}declareName(J,G,X){let H=this.currentScope();if(G&2048){this.checkRedeclarationInScope(H,J,G,X),this.maybeExportDefined(H,J),H.declareFunctions.add(J);return}super.declareName(J,G,X)}isRedeclaredInScope(J,G,X){if(super.isRedeclaredInScope(J,G,X))return!0;if(X&2048&&!J.declareFunctions.has(G)){let H=J.names.get(G);return(H&4)>0||(H&2)>0}return!1}checkLocalExport(J){if(!this.scopeStack[0].declareFunctions.has(J.name))super.checkLocalExport(J)}}class $U{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(J){if(typeof J==="string")return this.plugins.has(J);else{let[G,X]=J;if(!this.hasPlugin(G))return!1;let H=this.plugins.get(G);for(let Z of Object.keys(X))if((H==null?void 0:H[Z])!==X[Z])return!1;return!0}}getPluginOption(J,G){var X;return(X=this.plugins.get(J))==null?void 0:X[G]}}function UU(J,G){if(J.trailingComments===void 0)J.trailingComments=G;else J.trailingComments.unshift(...G)}function vW1(J,G){if(J.leadingComments===void 0)J.leadingComments=G;else J.leadingComments.unshift(...G)}function y9(J,G){if(J.innerComments===void 0)J.innerComments=G;else J.innerComments.unshift(...G)}function O9(J,G,X){let H=null,Z=G.length;while(H===null&&Z>0)H=G[--Z];if(H===null||H.start>X.start)y9(J,X.comments);else UU(H,X.comments)}class KU extends $U{addComment(J){if(this.filename)J.loc.filename=this.filename;let{commentsLen:G}=this.state;if(this.comments.length!==G)this.comments.length=G;this.comments.push(J),this.state.commentsLen++}processComment(J){let{commentStack:G}=this.state,X=G.length;if(X===0)return;let H=X-1,Z=G[H];if(Z.start===J.end)Z.leadingNode=J,H--;let{start:V}=J;for(;H>=0;H--){let Q=G[H],Y=Q.end;if(Y>V)Q.containingNode=J,this.finalizeComment(Q),G.splice(H,1);else{if(Y===V)Q.trailingNode=J;break}}}finalizeComment(J){let{comments:G}=J;if(J.leadingNode!==null||J.trailingNode!==null){if(J.leadingNode!==null)UU(J.leadingNode,G);if(J.trailingNode!==null)vW1(J.trailingNode,G)}else{let{containingNode:X,start:H}=J;if(this.input.charCodeAt(H-1)===44)switch(X.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":O9(X,X.properties,J);break;case"CallExpression":case"OptionalCallExpression":O9(X,X.arguments,J);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":O9(X,X.params,J);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":O9(X,X.elements,J);break;case"ExportNamedDeclaration":case"ImportDeclaration":O9(X,X.specifiers,J);break;default:y9(X,G)}else y9(X,G)}}finalizeRemainingComments(){let{commentStack:J}=this.state;for(let G=J.length-1;G>=0;G--)this.finalizeComment(J[G]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(J){let{commentStack:G}=this.state,{length:X}=G;if(X===0)return;let H=G[X-1];if(H.leadingNode===J)H.leadingNode=null}resetPreviousIdentifierLeadingComments(J){let{commentStack:G}=this.state,{length:X}=G;if(X===0)return;if(G[X-1].trailingNode===J)G[X-1].trailingNode=null;else if(X>=2&&G[X-2].trailingNode===J)G[X-2].trailingNode=null}takeSurroundingComments(J,G,X){let{commentStack:H}=this.state,Z=H.length;if(Z===0)return;let V=Z-1;for(;V>=0;V--){let Q=H[V],Y=Q.end;if(Q.start===X)Q.leadingNode=J;else if(Y===G)Q.trailingNode=J;else if(Y<G)break}}}var _W1=/\r\n|[\r\n\u2028\u2029]/,bJ=new RegExp(_W1.source,"g");function h5(J){switch(J){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function i$(J,G,X){for(let H=G;H<X;H++)if(h5(J.charCodeAt(H)))return!0;return!1}var T7=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,N7=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function gW1(J){switch(J){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}class u7{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[v1.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(J){if(J)this.flags|=1;else this.flags&=-2}init({strictMode:J,sourceType:G,startLine:X,startColumn:H}){this.strict=J===!1?!1:J===!0?!0:G==="module",this.curLine=X,this.lineStart=-H,this.startLoc=this.endLoc=new M0(X,H,0)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(J){if(J)this.flags|=2;else this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(J){if(J)this.flags|=4;else this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(J){if(J)this.flags|=8;else this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(J){if(J)this.flags|=16;else this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(J){if(J)this.flags|=32;else this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(J){if(J)this.flags|=64;else this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(J){if(J)this.flags|=128;else this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(J){if(J)this.flags|=256;else this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(J){if(J)this.flags|=512;else this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(J){if(J)this.flags|=1024;else this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(J){if(J)this.flags|=2048;else this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(J){if(J)this.flags|=4096;else this.flags&=-4097}curPosition(){return new M0(this.curLine,this.pos-this.lineStart,this.pos)}clone(){let J=new u7;return J.flags=this.flags,J.curLine=this.curLine,J.lineStart=this.lineStart,J.startLoc=this.startLoc,J.endLoc=this.endLoc,J.errors=this.errors.slice(),J.potentialArrowAt=this.potentialArrowAt,J.noArrowAt=this.noArrowAt.slice(),J.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),J.topicContext=this.topicContext,J.labels=this.labels.slice(),J.commentsLen=this.commentsLen,J.commentStack=this.commentStack.slice(),J.pos=this.pos,J.type=this.type,J.value=this.value,J.start=this.start,J.end=this.end,J.lastTokEndLoc=this.lastTokEndLoc,J.lastTokStartLoc=this.lastTokStartLoc,J.context=this.context.slice(),J.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,J.strictErrors=this.strictErrors,J.tokensLength=this.tokensLength,J}}var bW1=function J(G){return G>=48&&G<=57},u$={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},hJ={bin:(J)=>J===48||J===49,oct:(J)=>J>=48&&J<=55,dec:(J)=>J>=48&&J<=57,hex:(J)=>J>=48&&J<=57||J>=65&&J<=70||J>=97&&J<=102};function d$(J,G,X,H,Z,V){let Q=X,Y=H,z=Z,W="",K=null,q=X,{length:f}=G;for(;;){if(X>=f){V.unterminated(Q,Y,z),W+=G.slice(q,X);break}let I=G.charCodeAt(X);if(hW1(J,I,G,X)){W+=G.slice(q,X);break}if(I===92){W+=G.slice(q,X);let C=yW1(G,X,H,Z,J==="template",V);if(C.ch===null&&!K)K={pos:X,lineStart:H,curLine:Z};else W+=C.ch;({pos:X,lineStart:H,curLine:Z}=C),q=X}else if(I===8232||I===8233)++X,++Z,H=X;else if(I===10||I===13)if(J==="template"){if(W+=G.slice(q,X)+"\n",++X,I===13&&G.charCodeAt(X)===10)++X;++Z,q=H=X}else V.unterminated(Q,Y,z);else++X}return{pos:X,str:W,firstInvalidLoc:K,lineStart:H,curLine:Z,containsInvalid:!!K}}function hW1(J,G,X,H){if(J==="template")return G===96||G===36&&X.charCodeAt(H+1)===123;return G===(J==="double"?34:39)}function yW1(J,G,X,H,Z,V){let Q=!Z;G++;let Y=(W)=>({pos:G,ch:W,lineStart:X,curLine:H}),z=J.charCodeAt(G++);switch(z){case 110:return Y("\n");case 114:return Y("\r");case 120:{let W;return{code:W,pos:G}=g7(J,G,X,H,2,!1,Q,V),Y(W===null?null:String.fromCharCode(W))}case 117:{let W;return{code:W,pos:G}=RU(J,G,X,H,Q,V),Y(W===null?null:String.fromCodePoint(W))}case 116:return Y("\t");case 98:return Y("\b");case 118:return Y("\v");case 102:return Y("\f");case 13:if(J.charCodeAt(G)===10)++G;case 10:X=G,++H;case 8232:case 8233:return Y("");case 56:case 57:if(Z)return Y(null);else V.strictNumericEscape(G-1,X,H);default:if(z>=48&&z<=55){let W=G-1,q=/^[0-7]+/.exec(J.slice(W,G+2))[0],f=parseInt(q,8);if(f>255)q=q.slice(0,-1),f=parseInt(q,8);G+=q.length-1;let I=J.charCodeAt(G);if(q!=="0"||I===56||I===57)if(Z)return Y(null);else V.strictNumericEscape(W,X,H);return Y(String.fromCharCode(f))}return Y(String.fromCharCode(z))}}function g7(J,G,X,H,Z,V,Q,Y){let z=G,W;if({n:W,pos:G}=BU(J,G,X,H,16,Z,V,!1,Y,!Q),W===null)if(Q)Y.invalidEscapeSequence(z,X,H);else G=z-1;return{code:W,pos:G}}function BU(J,G,X,H,Z,V,Q,Y,z,W){let K=G,q=Z===16?u$.hex:u$.decBinOct,f=Z===16?hJ.hex:Z===10?hJ.dec:Z===8?hJ.oct:hJ.bin,I=!1,C=0;for(let x=0,O=V==null?1/0:V;x<O;++x){let v=J.charCodeAt(G),b;if(v===95&&Y!=="bail"){let B1=J.charCodeAt(G-1),J1=J.charCodeAt(G+1);if(!Y){if(W)return{n:null,pos:G};z.numericSeparatorInEscapeSequence(G,X,H)}else if(Number.isNaN(J1)||!f(J1)||q.has(B1)||q.has(J1)){if(W)return{n:null,pos:G};z.unexpectedNumericSeparator(G,X,H)}++G;continue}if(v>=97)b=v-97+10;else if(v>=65)b=v-65+10;else if(bW1(v))b=v-48;else b=1/0;if(b>=Z)if(b<=9&&W)return{n:null,pos:G};else if(b<=9&&z.invalidDigit(G,X,H,Z))b=0;else if(Q)b=0,I=!0;else break;++G,C=C*Z+b}if(G===K||V!=null&&G-K!==V||I)return{n:null,pos:G};return{n:C,pos:G}}function RU(J,G,X,H,Z,V){let Q=J.charCodeAt(G),Y;if(Q===123){if(++G,{code:Y,pos:G}=g7(J,G,X,H,J.indexOf("}",G)-G,!0,Z,V),++G,Y!==null&&Y>1114111)if(Z)V.invalidCodePoint(G,X,H);else return{code:null,pos:G}}else({code:Y,pos:G}=g7(J,G,X,H,4,!1,Z,V));return{code:Y,pos:G}}function v9(J,G,X){return new M0(X,J-G,J)}var mW1=new Set([103,109,115,105,121,117,100,118]);class U0{constructor(J){this.type=J.type,this.value=J.value,this.start=J.start,this.end=J.end,this.loc=new h9(J.startLoc,J.endLoc)}}class MU extends KU{constructor(J,G){super();this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(X,H,Z,V)=>{if(!this.options.errorRecovery)return!1;return this.raise(D.InvalidDigit,v9(X,H,Z),{radix:V}),!0},numericSeparatorInEscapeSequence:this.errorBuilder(D.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(D.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(D.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(D.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(X,H,Z)=>{this.recordStrictModeErrors(D.StrictNumericEscape,v9(X,H,Z))},unterminated:(X,H,Z)=>{throw this.raise(D.UnterminatedString,v9(X-1,H,Z))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(D.StrictNumericEscape),unterminated:(X,H,Z)=>{throw this.raise(D.UnterminatedTemplate,v9(X,H,Z))}}),this.state=new u7,this.state.init(J),this.input=G,this.length=G.length,this.comments=[],this.isLookahead=!1}pushToken(J){this.tokens.length=this.state.tokensLength,this.tokens.push(J),++this.state.tokensLength}next(){if(this.checkKeywordEscapes(),this.options.tokens)this.pushToken(new U0(this.state));this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(J){if(this.match(J))return this.next(),!0;else return!1}match(J){return this.state.type===J}createLookaheadState(J){return{pos:J.pos,value:null,type:J.type,start:J.start,end:J.end,context:[this.curContext()],inType:J.inType,startLoc:J.startLoc,lastTokEndLoc:J.lastTokEndLoc,curLine:J.curLine,lineStart:J.lineStart,curPosition:J.curPosition}}lookahead(){let J=this.state;this.state=this.createLookaheadState(J),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let G=this.state;return this.state=J,G}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(J){return T7.lastIndex=J,T7.test(this.input)?T7.lastIndex:J}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(J){return N7.lastIndex=J,N7.test(this.input)?N7.lastIndex:J}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(J){let G=this.input.charCodeAt(J);if((G&64512)===55296&&++J<this.input.length){let X=this.input.charCodeAt(J);if((X&64512)===56320)G=65536+((G&1023)<<10)+(X&1023)}return G}setStrict(J){if(this.state.strict=J,J)this.state.strictErrors.forEach(([G,X])=>this.raise(G,X)),this.state.strictErrors.clear()}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,!this.isLookahead)this.state.startLoc=this.state.curPosition();if(this.state.pos>=this.length){this.finishToken(139);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(J){let G;if(!this.isLookahead)G=this.state.curPosition();let X=this.state.pos,H=this.input.indexOf(J,X+2);if(H===-1)throw this.raise(D.UnterminatedComment,this.state.curPosition());this.state.pos=H+J.length,bJ.lastIndex=X+2;while(bJ.test(this.input)&&bJ.lastIndex<=H)++this.state.curLine,this.state.lineStart=bJ.lastIndex;if(this.isLookahead)return;let Z={type:"CommentBlock",value:this.input.slice(X+2,H),start:X,end:H+J.length,loc:new h9(G,this.state.curPosition())};if(this.options.tokens)this.pushToken(Z);return Z}skipLineComment(J){let G=this.state.pos,X;if(!this.isLookahead)X=this.state.curPosition();let H=this.input.charCodeAt(this.state.pos+=J);if(this.state.pos<this.length)while(!h5(H)&&++this.state.pos<this.length)H=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let Z=this.state.pos,Q={type:"CommentLine",value:this.input.slice(G+J,Z),start:G,end:Z,loc:new h9(X,this.state.curPosition())};if(this.options.tokens)this.pushToken(Q);return Q}skipSpace(){let J=this.state.pos,G=[];J:while(this.state.pos<this.length){let X=this.input.charCodeAt(this.state.pos);switch(X){case 32:case 160:case 9:++this.state.pos;break;case 13:if(this.input.charCodeAt(this.state.pos+1)===10)++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let H=this.skipBlockComment("*/");if(H!==void 0){if(this.addComment(H),this.options.attachComment)G.push(H)}break}case 47:{let H=this.skipLineComment(2);if(H!==void 0){if(this.addComment(H),this.options.attachComment)G.push(H)}break}default:break J}break;default:if(gW1(X))++this.state.pos;else if(X===45&&!this.inModule&&this.options.annexB){let H=this.state.pos;if(this.input.charCodeAt(H+1)===45&&this.input.charCodeAt(H+2)===62&&(J===0||this.state.lineStart>J)){let Z=this.skipLineComment(3);if(Z!==void 0){if(this.addComment(Z),this.options.attachComment)G.push(Z)}}else break J}else if(X===60&&!this.inModule&&this.options.annexB){let H=this.state.pos;if(this.input.charCodeAt(H+1)===33&&this.input.charCodeAt(H+2)===45&&this.input.charCodeAt(H+3)===45){let Z=this.skipLineComment(4);if(Z!==void 0){if(this.addComment(Z),this.options.attachComment)G.push(Z)}}else break J}else break J}}if(G.length>0){let X=this.state.pos,H={start:J,end:X,comments:G,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(H)}}finishToken(J,G){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let X=this.state.type;if(this.state.type=J,this.state.value=G,!this.isLookahead)this.updateContext(X)}replaceToken(J){this.state.type=J,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let J=this.state.pos+1,G=this.codePointAtPos(J);if(G>=48&&G<=57)throw this.raise(D.UnexpectedDigitAfterHash,this.state.curPosition());if(G===123||G===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(G===123?D.RecordExpressionHashIncorrectStartSyntaxType:D.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());if(this.state.pos+=2,G===123)this.finishToken(7);else this.finishToken(1)}else if(B0(G))++this.state.pos,this.finishToken(138,this.readWord1(G));else if(G===92)++this.state.pos,this.finishToken(138,this.readWord1());else this.finishOp(27,1)}readToken_dot(){let J=this.input.charCodeAt(this.state.pos+1);if(J>=48&&J<=57){this.readNumber(!0);return}if(J===46&&this.input.charCodeAt(this.state.pos+2)===46)this.state.pos+=3,this.finishToken(21);else++this.state.pos,this.finishToken(16)}readToken_slash(){if(this.input.charCodeAt(this.state.pos+1)===61)this.finishOp(31,2);else this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let J=this.input.charCodeAt(this.state.pos+1);if(J!==33)return!1;let G=this.state.pos;this.state.pos+=1;while(!h5(J)&&++this.state.pos<this.length)J=this.input.charCodeAt(this.state.pos);let X=this.input.slice(G+2,this.state.pos);return this.finishToken(28,X),!0}readToken_mult_modulo(J){let G=J===42?55:54,X=1,H=this.input.charCodeAt(this.state.pos+1);if(J===42&&H===42)X++,H=this.input.charCodeAt(this.state.pos+2),G=57;if(H===61&&!this.state.inType)X++,G=J===37?33:30;this.finishOp(G,X)}readToken_pipe_amp(J){let G=this.input.charCodeAt(this.state.pos+1);if(G===J){if(this.input.charCodeAt(this.state.pos+2)===61)this.finishOp(30,3);else this.finishOp(J===124?41:42,2);return}if(J===124){if(G===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&G===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(D.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&G===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(D.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(G===61){this.finishOp(30,2);return}this.finishOp(J===124?43:45,1)}readToken_caret(){let J=this.input.charCodeAt(this.state.pos+1);if(J===61&&!this.state.inType)this.finishOp(32,2);else if(J===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){if(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94)this.unexpected()}else this.finishOp(44,1)}readToken_atSign(){if(this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}]))this.finishOp(38,2);else this.finishOp(26,1)}readToken_plus_min(J){let G=this.input.charCodeAt(this.state.pos+1);if(G===J){this.finishOp(34,2);return}if(G===61)this.finishOp(30,2);else this.finishOp(53,1)}readToken_lt(){let{pos:J}=this.state,G=this.input.charCodeAt(J+1);if(G===60){if(this.input.charCodeAt(J+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(G===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:J}=this.state,G=this.input.charCodeAt(J+1);if(G===62){let X=this.input.charCodeAt(J+2)===62?3:2;if(this.input.charCodeAt(J+X)===61){this.finishOp(30,X+1);return}this.finishOp(52,X);return}if(G===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(J){let G=this.input.charCodeAt(this.state.pos+1);if(G===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(J===61&&G===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(J===61?29:35,1)}readToken_question(){let J=this.input.charCodeAt(this.state.pos+1),G=this.input.charCodeAt(this.state.pos+2);if(J===63)if(G===61)this.finishOp(30,3);else this.finishOp(40,2);else if(J===46&&!(G>=48&&G<=57))this.state.pos+=2,this.finishToken(18);else++this.state.pos,this.finishToken(17)}getTokenFromCode(J){switch(J){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(D.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(D.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:if(this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58)this.finishOp(15,2);else++this.state.pos,this.finishToken(14);return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let G=this.input.charCodeAt(this.state.pos+1);if(G===120||G===88){this.readRadixNumber(16);return}if(G===111||G===79){this.readRadixNumber(8);return}if(G===98||G===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(J);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(J);return;case 124:case 38:this.readToken_pipe_amp(J);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(J);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(J);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(B0(J)){this.readWord(J);return}}throw this.raise(D.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(J)})}finishOp(J,G){let X=this.input.slice(this.state.pos,this.state.pos+G);this.state.pos+=G,this.finishToken(J,X)}readRegexp(){let J=this.state.startLoc,G=this.state.start+1,X,H,{pos:Z}=this.state;for(;;++Z){if(Z>=this.length)throw this.raise(D.UnterminatedRegExp,U2(J,1));let z=this.input.charCodeAt(Z);if(h5(z))throw this.raise(D.UnterminatedRegExp,U2(J,1));if(X)X=!1;else{if(z===91)H=!0;else if(z===93&&H)H=!1;else if(z===47&&!H)break;X=z===92}}let V=this.input.slice(G,Z);++Z;let Q="",Y=()=>U2(J,Z+2-G);while(Z<this.length){let z=this.codePointAtPos(Z),W=String.fromCharCode(z);if(mW1.has(z)){if(z===118){if(Q.includes("u"))this.raise(D.IncompatibleRegExpUVFlags,Y())}else if(z===117){if(Q.includes("v"))this.raise(D.IncompatibleRegExpUVFlags,Y())}if(Q.includes(W))this.raise(D.DuplicateRegExpFlags,Y())}else if(b5(z)||z===92)this.raise(D.MalformedRegExpFlags,Y());else break;++Z,Q+=W}this.state.pos=Z,this.finishToken(137,{pattern:V,flags:Q})}readInt(J,G,X=!1,H=!0){let{n:Z,pos:V}=BU(this.input,this.state.pos,this.state.lineStart,this.state.curLine,J,G,X,H,this.errorHandlers_readInt,!1);return this.state.pos=V,Z}readRadixNumber(J){let G=this.state.curPosition(),X=!1;this.state.pos+=2;let H=this.readInt(J);if(H==null)this.raise(D.InvalidDigit,U2(G,2),{radix:J});let Z=this.input.charCodeAt(this.state.pos);if(Z===110)++this.state.pos,X=!0;else if(Z===109)throw this.raise(D.InvalidDecimal,G);if(B0(this.codePointAtPos(this.state.pos)))throw this.raise(D.NumberIdentifier,this.state.curPosition());if(X){let V=this.input.slice(G.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,V);return}this.finishToken(134,H)}readNumber(J){let G=this.state.pos,X=this.state.curPosition(),H=!1,Z=!1,V=!1,Q=!1;if(!J&&this.readInt(10)===null)this.raise(D.InvalidNumber,this.state.curPosition());let Y=this.state.pos-G>=2&&this.input.charCodeAt(G)===48;if(Y){let f=this.input.slice(G,this.state.pos);if(this.recordStrictModeErrors(D.StrictOctalLiteral,X),!this.state.strict){let I=f.indexOf("_");if(I>0)this.raise(D.ZeroDigitNumericSeparator,U2(X,I))}Q=Y&&!/[89]/.test(f)}let z=this.input.charCodeAt(this.state.pos);if(z===46&&!Q)++this.state.pos,this.readInt(10),H=!0,z=this.input.charCodeAt(this.state.pos);if((z===69||z===101)&&!Q){if(z=this.input.charCodeAt(++this.state.pos),z===43||z===45)++this.state.pos;if(this.readInt(10)===null)this.raise(D.InvalidOrMissingExponent,X);H=!0,V=!0,z=this.input.charCodeAt(this.state.pos)}if(z===110){if(H||Y)this.raise(D.InvalidBigIntLiteral,X);++this.state.pos,Z=!0}if(z===109){if(this.expectPlugin("decimal",this.state.curPosition()),V||Y)this.raise(D.InvalidDecimal,X);++this.state.pos;var W=!0}if(B0(this.codePointAtPos(this.state.pos)))throw this.raise(D.NumberIdentifier,this.state.curPosition());let K=this.input.slice(G,this.state.pos).replace(/[_mn]/g,"");if(Z){this.finishToken(135,K);return}if(W){this.finishToken(136,K);return}let q=Q?parseInt(K,8):parseFloat(K);this.finishToken(134,q)}readCodePoint(J){let{code:G,pos:X}=RU(this.input,this.state.pos,this.state.lineStart,this.state.curLine,J,this.errorHandlers_readCodePoint);return this.state.pos=X,G}readString(J){let{str:G,pos:X,curLine:H,lineStart:Z}=d$(J===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=X+1,this.state.lineStart=Z,this.state.curLine=H,this.finishToken(133,G)}readTemplateContinuation(){if(!this.match(8))this.unexpected(null,8);this.state.pos--,this.readTemplateToken()}readTemplateToken(){let J=this.input[this.state.pos],{str:G,firstInvalidLoc:X,pos:H,curLine:Z,lineStart:V}=d$("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);if(this.state.pos=H+1,this.state.lineStart=V,this.state.curLine=Z,X)this.state.firstInvalidTemplateEscapePos=new M0(X.curLine,X.pos-X.lineStart,X.pos);if(this.input.codePointAt(H)===96)this.finishToken(24,X?null:J+G+"`");else this.state.pos++,this.finishToken(25,X?null:J+G+"${")}recordStrictModeErrors(J,G){let X=G.index;if(this.state.strict&&!this.state.strictErrors.has(X))this.raise(J,G);else this.state.strictErrors.set(X,[J,G])}readWord1(J){this.state.containsEsc=!1;let G="",X=this.state.pos,H=this.state.pos;if(J!==void 0)this.state.pos+=J<=65535?1:2;while(this.state.pos<this.length){let Z=this.codePointAtPos(this.state.pos);if(b5(Z))this.state.pos+=Z<=65535?1:2;else if(Z===92){this.state.containsEsc=!0,G+=this.input.slice(H,this.state.pos);let V=this.state.curPosition(),Q=this.state.pos===X?B0:b5;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(D.MissingUnicodeEscape,this.state.curPosition()),H=this.state.pos-1;continue}++this.state.pos;let Y=this.readCodePoint(!0);if(Y!==null){if(!Q(Y))this.raise(D.EscapedCharNotAnIdentifier,V);G+=String.fromCodePoint(Y)}H=this.state.pos}else break}return G+this.input.slice(H,this.state.pos)}readWord(J){let G=this.readWord1(J),X=h7.get(G);if(X!==void 0)this.finishToken(X,O0(X));else this.finishToken(132,G)}checkKeywordEscapes(){let{type:J}=this.state;if(r7(J)&&this.state.containsEsc)this.raise(D.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:O0(J)})}raise(J,G,X={}){let H=G instanceof M0?G:G.loc.start,Z=J(H,X);if(!this.options.errorRecovery)throw Z;if(!this.isLookahead)this.state.errors.push(Z);return Z}raiseOverwrite(J,G,X={}){let H=G instanceof M0?G:G.loc.start,Z=H.index,V=this.state.errors;for(let Q=V.length-1;Q>=0;Q--){let Y=V[Q];if(Y.loc.index===Z)return V[Q]=J(H,X);if(Y.loc.index<Z)break}return this.raise(J,G,X)}updateContext(J){}unexpected(J,G){throw this.raise(D.UnexpectedToken,J!=null?J:this.state.startLoc,{expected:G?O0(G):null})}expectPlugin(J,G){if(this.hasPlugin(J))return!0;throw this.raise(D.MissingPlugin,G!=null?G:this.state.startLoc,{missingPlugin:[J]})}expectOnePlugin(J){if(!J.some((G)=>this.hasPlugin(G)))throw this.raise(D.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:J})}errorBuilder(J){return(G,X,H)=>{this.raise(J,v9(G,X,H))}}}class qU{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class FU{constructor(J){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=J}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new qU)}exit(){let J=this.stack.pop(),G=this.current();for(let[X,H]of Array.from(J.undefinedPrivateNames))if(G){if(!G.undefinedPrivateNames.has(X))G.undefinedPrivateNames.set(X,H)}else this.parser.raise(D.InvalidPrivateFieldResolution,H,{identifierName:X})}declarePrivateName(J,G,X){let{privateNames:H,loneAccessors:Z,undefinedPrivateNames:V}=this.current(),Q=H.has(J);if(G&3){let Y=Q&&Z.get(J);if(Y){let z=Y&4,W=G&4,K=Y&3,q=G&3;if(Q=K===q||z!==W,!Q)Z.delete(J)}else if(!Q)Z.set(J,G)}if(Q)this.parser.raise(D.PrivateNameRedeclaration,X,{identifierName:J});H.add(J),V.delete(J)}usePrivateName(J,G){let X;for(X of this.stack)if(X.privateNames.has(J))return;if(X)X.undefinedPrivateNames.set(J,G);else this.parser.raise(D.InvalidPrivateFieldResolution,G,{identifierName:J})}}class x9{constructor(J=0){this.type=J}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class d7 extends x9{constructor(J){super(J);this.declarationErrors=new Map}recordDeclarationError(J,G){let X=G.index;this.declarationErrors.set(X,[J,G])}clearDeclarationError(J){this.declarationErrors.delete(J)}iterateErrors(J){this.declarationErrors.forEach(J)}}class jU{constructor(J){this.parser=void 0,this.stack=[new x9],this.parser=J}enter(J){this.stack.push(J)}exit(){this.stack.pop()}recordParameterInitializerError(J,G){let X=G.loc.start,{stack:H}=this,Z=H.length-1,V=H[Z];while(!V.isCertainlyParameterDeclaration()){if(V.canBeArrowParameterDeclaration())V.recordDeclarationError(J,X);else return;V=H[--Z]}this.parser.raise(J,X)}recordArrowParameterBindingError(J,G){let{stack:X}=this,H=X[X.length-1],Z=G.loc.start;if(H.isCertainlyParameterDeclaration())this.parser.raise(J,Z);else if(H.canBeArrowParameterDeclaration())H.recordDeclarationError(J,Z);else return}recordAsyncArrowParametersError(J){let{stack:G}=this,X=G.length-1,H=G[X];while(H.canBeArrowParameterDeclaration()){if(H.type===2)H.recordDeclarationError(D.AwaitBindingIdentifier,J);H=G[--X]}}validateAsPattern(){let{stack:J}=this,G=J[J.length-1];if(!G.canBeArrowParameterDeclaration())return;G.iterateErrors(([X,H])=>{this.parser.raise(X,H);let Z=J.length-2,V=J[Z];while(V.canBeArrowParameterDeclaration())V.clearDeclarationError(H.index),V=J[--Z]})}}function xW1(){return new x9(3)}function lW1(){return new d7(1)}function cW1(){return new d7(2)}function fU(){return new x9}class DU{constructor(){this.stacks=[]}enter(J){this.stacks.push(J)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}}function xJ(J,G){return(J?2:0)|(G?1:0)}class AU extends MU{addExtra(J,G,X,H=!0){if(!J)return;let{extra:Z}=J;if(Z==null)Z={},J.extra=Z;if(H)Z[G]=X;else Object.defineProperty(Z,G,{enumerable:H,value:X})}isContextual(J){return this.state.type===J&&!this.state.containsEsc}isUnparsedContextual(J,G){let X=J+G.length;if(this.input.slice(J,X)===G){let H=this.input.charCodeAt(X);return!(b5(H)||(H&64512)===55296)}return!1}isLookaheadContextual(J){let G=this.nextTokenStart();return this.isUnparsedContextual(G,J)}eatContextual(J){if(this.isContextual(J))return this.next(),!0;return!1}expectContextual(J,G){if(!this.eatContextual(J)){if(G!=null)throw this.raise(G,this.state.startLoc);this.unexpected(null,J)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return i$(this.input,this.state.lastTokEndLoc.index,this.state.start)}hasFollowingLineBreak(){return i$(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(J=!0){if(J?this.isLineTerminator():this.eat(13))return;this.raise(D.MissingSemicolon,this.state.lastTokEndLoc)}expect(J,G){if(!this.eat(J))this.unexpected(G,J)}tryParse(J,G=this.state.clone()){let X={node:null};try{let H=J((Z=null)=>{throw X.node=Z,X});if(this.state.errors.length>G.errors.length){let Z=this.state;return this.state=G,this.state.tokensLength=Z.tokensLength,{node:H,error:Z.errors[G.errors.length],thrown:!1,aborted:!1,failState:Z}}return{node:H,error:null,thrown:!1,aborted:!1,failState:null}}catch(H){let Z=this.state;if(this.state=G,H instanceof SyntaxError)return{node:null,error:H,thrown:!0,aborted:!1,failState:Z};if(H===X)return{node:X.node,error:null,thrown:!1,aborted:!0,failState:Z};throw H}}checkExpressionErrors(J,G){if(!J)return!1;let{shorthandAssignLoc:X,doubleProtoLoc:H,privateKeyLoc:Z,optionalParametersLoc:V}=J,Q=!!X||!!H||!!V||!!Z;if(!G)return Q;if(X!=null)this.raise(D.InvalidCoverInitializedName,X);if(H!=null)this.raise(D.DuplicateProto,H);if(Z!=null)this.raise(D.UnexpectedPrivateField,Z);if(V!=null)this.unexpected(V)}isLiteralPropertyName(){return GU(this.state.type)}isPrivateName(J){return J.type==="PrivateName"}getPrivateNameSV(J){return J.id.name}hasPropertyAsPrivateName(J){return(J.type==="MemberExpression"||J.type==="OptionalMemberExpression")&&this.isPrivateName(J.property)}isObjectProperty(J){return J.type==="ObjectProperty"}isObjectMethod(J){return J.type==="ObjectMethod"}initializeScopes(J=this.options.sourceType==="module"){let G=this.state.labels;this.state.labels=[];let X=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let H=this.inModule;this.inModule=J;let Z=this.scope,V=this.getScopeHandler();this.scope=new V(this,J);let Q=this.prodParam;this.prodParam=new DU;let Y=this.classScope;this.classScope=new FU(this);let z=this.expressionScope;return this.expressionScope=new jU(this),()=>{this.state.labels=G,this.exportedIdentifiers=X,this.inModule=H,this.scope=Z,this.prodParam=Q,this.classScope=Y,this.expressionScope=z}}enterInitialScopes(){let J=0;if(this.inModule)J|=2;this.scope.enter(1),this.prodParam.enter(J)}checkDestructuringPrivate(J){let{privateKeyLoc:G}=J;if(G!==null)this.expectPlugin("destructuringPrivate",G)}}class b9{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}class m9{constructor(J,G,X){if(this.type="",this.start=G,this.end=0,this.loc=new h9(X),J!=null&&J.options.ranges)this.range=[G,0];if(J!=null&&J.filename)this.loc.filename=J.filename}}var s7=m9.prototype;s7.__clone=function(){let J=new m9(void 0,this.start,this.loc.start),G=Object.keys(this);for(let X=0,H=G.length;X<H;X++){let Z=G[X];if(Z!=="leadingComments"&&Z!=="trailingComments"&&Z!=="innerComments")J[Z]=this[Z]}return J};function rW1(J){return q0(J)}function q0(J){let{type:G,start:X,end:H,loc:Z,range:V,extra:Q,name:Y}=J,z=Object.create(s7);if(z.type=G,z.start=X,z.end=H,z.loc=Z,z.range=V,z.extra=Q,z.name=Y,G==="Placeholder")z.expectedNode=J.expectedNode;return z}function aW1(J){let{type:G,start:X,end:H,loc:Z,range:V,extra:Q}=J;if(G==="Placeholder")return rW1(J);let Y=Object.create(s7);if(Y.type=G,Y.start=X,Y.end=H,Y.loc=Z,Y.range=V,J.raw!==void 0)Y.raw=J.raw;else Y.extra=Q;return Y.value=J.value,Y}class IU extends AU{startNode(){let J=this.state.startLoc;return new m9(this,J.index,J)}startNodeAt(J){return new m9(this,J.index,J)}startNodeAtNode(J){return this.startNodeAt(J.loc.start)}finishNode(J,G){return this.finishNodeAt(J,G,this.state.lastTokEndLoc)}finishNodeAt(J,G,X){if(J.type=G,J.end=X.index,J.loc.end=X,this.options.ranges)J.range[1]=X.index;if(this.options.attachComment)this.processComment(J);return J}resetStartLocation(J,G){if(J.start=G.index,J.loc.start=G,this.options.ranges)J.range[0]=G.index}resetEndLocation(J,G=this.state.lastTokEndLoc){if(J.end=G.index,J.loc.end=G,this.options.ranges)J.range[1]=G.index}resetStartLocationFromNode(J,G){this.resetStartLocation(J,G.loc.start)}}var iW1=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Q1=R0`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:J})=>`Cannot overwrite reserved type ${J}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:J,enumName:G})=>`Boolean enum members need to be initialized. Use either \`${J} = true,\` or \`${J} = false,\` in enum \`${G}\`.`,EnumDuplicateMemberName:({memberName:J,enumName:G})=>`Enum member names need to be unique, but the name \`${J}\` has already been used before in enum \`${G}\`.`,EnumInconsistentMemberValues:({enumName:J})=>`Enum \`${J}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:J,enumName:G})=>`Enum type \`${J}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${G}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:J})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${J}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:J,memberName:G,explicitType:X})=>`Enum \`${J}\` has type \`${X}\`, so the initializer of \`${G}\` needs to be a ${X} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:J,memberName:G})=>`Symbol enum members cannot be initialized. Use \`${G},\` in enum \`${J}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:J,memberName:G})=>`The enum member initializer for \`${G}\` needs to be a literal (either a boolean, number, or string) in enum \`${J}\`.`,EnumInvalidMemberName:({enumName:J,memberName:G,suggestion:X})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${G}\`, consider using \`${X}\`, in enum \`${J}\`.`,EnumNumberMemberNotInitialized:({enumName:J,memberName:G})=>`Number enum members need to be initialized, e.g. \`${G} = 1\` in enum \`${J}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:J})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${J}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:J})=>`Unexpected reserved type ${J}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:J,suggestion:G})=>`\`declare export ${J}\` is not supported. Use \`${G}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function uW1(J){return J.type==="DeclareExportAllDeclaration"||J.type==="DeclareExportDeclaration"&&(!J.declaration||J.declaration.type!=="TypeAlias"&&J.declaration.type!=="InterfaceDeclaration")}function s$(J){return J.importKind==="type"||J.importKind==="typeof"}var dW1={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function sW1(J,G){let X=[],H=[];for(let Z=0;Z<J.length;Z++)(G(J[Z],Z,J)?X:H).push(J[Z]);return[X,H]}var pW1=/\*?\s*@((?:no)?flow)\b/,nW1=(J)=>class G extends J{constructor(...X){super(...X);this.flowPragma=void 0}getScopeHandler(){return WU}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(X,H){if(X!==133&&X!==13&&X!==28){if(this.flowPragma===void 0)this.flowPragma=null}super.finishToken(X,H)}addComment(X){if(this.flowPragma===void 0){let H=pW1.exec(X.value);if(!H);else if(H[1]==="flow")this.flowPragma="flow";else if(H[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(X)}flowParseTypeInitialiser(X){let H=this.state.inType;this.state.inType=!0,this.expect(X||14);let Z=this.flowParseType();return this.state.inType=H,Z}flowParsePredicate(){let X=this.startNode(),H=this.state.startLoc;if(this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>H.index+1)this.raise(Q1.UnexpectedSpaceBetweenModuloChecks,H);if(this.eat(10))return X.value=super.parseExpression(),this.expect(11),this.finishNode(X,"DeclaredPredicate");else return this.finishNode(X,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let X=this.state.inType;this.state.inType=!0,this.expect(14);let H=null,Z=null;if(this.match(54))this.state.inType=X,Z=this.flowParsePredicate();else if(H=this.flowParseType(),this.state.inType=X,this.match(54))Z=this.flowParsePredicate();return[H,Z]}flowParseDeclareClass(X){return this.next(),this.flowParseInterfaceish(X,!0),this.finishNode(X,"DeclareClass")}flowParseDeclareFunction(X){this.next();let H=X.id=this.parseIdentifier(),Z=this.startNode(),V=this.startNode();if(this.match(47))Z.typeParameters=this.flowParseTypeParameterDeclaration();else Z.typeParameters=null;this.expect(10);let Q=this.flowParseFunctionTypeParams();return Z.params=Q.params,Z.rest=Q.rest,Z.this=Q._this,this.expect(11),[Z.returnType,X.predicate]=this.flowParseTypeAndPredicateInitialiser(),V.typeAnnotation=this.finishNode(Z,"FunctionTypeAnnotation"),H.typeAnnotation=this.finishNode(V,"TypeAnnotation"),this.resetEndLocation(H),this.semicolon(),this.scope.declareName(X.id.name,2048,X.id.loc.start),this.finishNode(X,"DeclareFunction")}flowParseDeclare(X,H){if(this.match(80))return this.flowParseDeclareClass(X);else if(this.match(68))return this.flowParseDeclareFunction(X);else if(this.match(74))return this.flowParseDeclareVariable(X);else if(this.eatContextual(127))if(this.match(16))return this.flowParseDeclareModuleExports(X);else{if(H)this.raise(Q1.NestedDeclareModule,this.state.lastTokStartLoc);return this.flowParseDeclareModule(X)}else if(this.isContextual(130))return this.flowParseDeclareTypeAlias(X);else if(this.isContextual(131))return this.flowParseDeclareOpaqueType(X);else if(this.isContextual(129))return this.flowParseDeclareInterface(X);else if(this.match(82))return this.flowParseDeclareExportDeclaration(X,H);else this.unexpected()}flowParseDeclareVariable(X){return this.next(),X.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(X.id.name,5,X.id.loc.start),this.semicolon(),this.finishNode(X,"DeclareVariable")}flowParseDeclareModule(X){if(this.scope.enter(0),this.match(133))X.id=super.parseExprAtom();else X.id=this.parseIdentifier();let H=X.body=this.startNode(),Z=H.body=[];this.expect(5);while(!this.match(8)){let Y=this.startNode();if(this.match(83)){if(this.next(),!this.isContextual(130)&&!this.match(87))this.raise(Q1.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc);super.parseImport(Y)}else this.expectContextual(125,Q1.UnsupportedStatementInDeclareModule),Y=this.flowParseDeclare(Y,!0);Z.push(Y)}this.scope.exit(),this.expect(8),this.finishNode(H,"BlockStatement");let V=null,Q=!1;return Z.forEach((Y)=>{if(uW1(Y)){if(V==="CommonJS")this.raise(Q1.AmbiguousDeclareModuleKind,Y);V="ES"}else if(Y.type==="DeclareModuleExports"){if(Q)this.raise(Q1.DuplicateDeclareModuleExports,Y);if(V==="ES")this.raise(Q1.AmbiguousDeclareModuleKind,Y);V="CommonJS",Q=!0}}),X.kind=V||"CommonJS",this.finishNode(X,"DeclareModule")}flowParseDeclareExportDeclaration(X,H){if(this.expect(82),this.eat(65)){if(this.match(68)||this.match(80))X.declaration=this.flowParseDeclare(this.startNode());else X.declaration=this.flowParseType(),this.semicolon();return X.default=!0,this.finishNode(X,"DeclareExportDeclaration")}else{if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!H){let Z=this.state.value;throw this.raise(Q1.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:Z,suggestion:dW1[Z]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return X.declaration=this.flowParseDeclare(this.startNode()),X.default=!1,this.finishNode(X,"DeclareExportDeclaration");else if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)){if(X=this.parseExport(X,null),X.type==="ExportNamedDeclaration")X.type="ExportDeclaration",X.default=!1,delete X.exportKind;return X.type="Declare"+X.type,X}}this.unexpected()}flowParseDeclareModuleExports(X){return this.next(),this.expectContextual(111),X.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(X,"DeclareModuleExports")}flowParseDeclareTypeAlias(X){this.next();let H=this.flowParseTypeAlias(X);return H.type="DeclareTypeAlias",H}flowParseDeclareOpaqueType(X){this.next();let H=this.flowParseOpaqueType(X,!0);return H.type="DeclareOpaqueType",H}flowParseDeclareInterface(X){return this.next(),this.flowParseInterfaceish(X,!1),this.finishNode(X,"DeclareInterface")}flowParseInterfaceish(X,H){if(X.id=this.flowParseRestrictedIdentifier(!H,!0),this.scope.declareName(X.id.name,H?17:8201,X.id.loc.start),this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration();else X.typeParameters=null;if(X.extends=[],this.eat(81))do X.extends.push(this.flowParseInterfaceExtends());while(!H&&this.eat(12));if(H){if(X.implements=[],X.mixins=[],this.eatContextual(117))do X.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do X.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}X.body=this.flowParseObjectType({allowStatic:H,allowExact:!1,allowSpread:!1,allowProto:H,allowInexact:!1})}flowParseInterfaceExtends(){let X=this.startNode();if(X.id=this.flowParseQualifiedTypeIdentifier(),this.match(47))X.typeParameters=this.flowParseTypeParameterInstantiation();else X.typeParameters=null;return this.finishNode(X,"InterfaceExtends")}flowParseInterface(X){return this.flowParseInterfaceish(X,!1),this.finishNode(X,"InterfaceDeclaration")}checkNotUnderscore(X){if(X==="_")this.raise(Q1.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(X,H,Z){if(!iW1.has(X))return;this.raise(Z?Q1.AssignReservedType:Q1.UnexpectedReservedType,H,{reservedType:X})}flowParseRestrictedIdentifier(X,H){return this.checkReservedType(this.state.value,this.state.startLoc,H),this.parseIdentifier(X)}flowParseTypeAlias(X){if(X.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(X.id.name,8201,X.id.loc.start),this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration();else X.typeParameters=null;return X.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(X,"TypeAlias")}flowParseOpaqueType(X,H){if(this.expectContextual(130),X.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(X.id.name,8201,X.id.loc.start),this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration();else X.typeParameters=null;if(X.supertype=null,this.match(14))X.supertype=this.flowParseTypeInitialiser(14);if(X.impltype=null,!H)X.impltype=this.flowParseTypeInitialiser(29);return this.semicolon(),this.finishNode(X,"OpaqueType")}flowParseTypeParameter(X=!1){let H=this.state.startLoc,Z=this.startNode(),V=this.flowParseVariance(),Q=this.flowParseTypeAnnotatableIdentifier();if(Z.name=Q.name,Z.variance=V,Z.bound=Q.typeAnnotation,this.match(29))this.eat(29),Z.default=this.flowParseType();else if(X)this.raise(Q1.MissingTypeParamDefault,H);return this.finishNode(Z,"TypeParameter")}flowParseTypeParameterDeclaration(){let X=this.state.inType,H=this.startNode();if(H.params=[],this.state.inType=!0,this.match(47)||this.match(142))this.next();else this.unexpected();let Z=!1;do{let V=this.flowParseTypeParameter(Z);if(H.params.push(V),V.default)Z=!0;if(!this.match(48))this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=X,this.finishNode(H,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let X=this.startNode(),H=this.state.inType;X.params=[],this.state.inType=!0,this.expect(47);let Z=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!1;while(!this.match(48))if(X.params.push(this.flowParseType()),!this.match(48))this.expect(12);return this.state.noAnonFunctionType=Z,this.expect(48),this.state.inType=H,this.finishNode(X,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let X=this.startNode(),H=this.state.inType;X.params=[],this.state.inType=!0,this.expect(47);while(!this.match(48))if(X.params.push(this.flowParseTypeOrImplicitInstantiation()),!this.match(48))this.expect(12);return this.expect(48),this.state.inType=H,this.finishNode(X,"TypeParameterInstantiation")}flowParseInterfaceType(){let X=this.startNode();if(this.expectContextual(129),X.extends=[],this.eat(81))do X.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return X.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(X,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(X,H,Z){if(X.static=H,this.lookahead().type===14)X.id=this.flowParseObjectPropertyKey(),X.key=this.flowParseTypeInitialiser();else X.id=null,X.key=this.flowParseType();return this.expect(3),X.value=this.flowParseTypeInitialiser(),X.variance=Z,this.finishNode(X,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(X,H){if(X.static=H,X.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10))X.method=!0,X.optional=!1,X.value=this.flowParseObjectTypeMethodish(this.startNodeAt(X.loc.start));else{if(X.method=!1,this.eat(17))X.optional=!0;X.value=this.flowParseTypeInitialiser()}return this.finishNode(X,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(X){if(X.params=[],X.rest=null,X.typeParameters=null,X.this=null,this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration();if(this.expect(10),this.match(78)){if(X.this=this.flowParseFunctionTypeParam(!0),X.this.name=null,!this.match(11))this.expect(12)}while(!this.match(11)&&!this.match(21))if(X.params.push(this.flowParseFunctionTypeParam(!1)),!this.match(11))this.expect(12);if(this.eat(21))X.rest=this.flowParseFunctionTypeParam(!1);return this.expect(11),X.returnType=this.flowParseTypeInitialiser(),this.finishNode(X,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(X,H){let Z=this.startNode();return X.static=H,X.value=this.flowParseObjectTypeMethodish(Z),this.finishNode(X,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:X,allowExact:H,allowSpread:Z,allowProto:V,allowInexact:Q}){let Y=this.state.inType;this.state.inType=!0;let z=this.startNode();z.callProperties=[],z.properties=[],z.indexers=[],z.internalSlots=[];let W,K,q=!1;if(H&&this.match(6))this.expect(6),W=9,K=!0;else this.expect(5),W=8,K=!1;z.exact=K;while(!this.match(W)){let I=!1,C=null,x=null,O=this.startNode();if(V&&this.isContextual(118)){let b=this.lookahead();if(b.type!==14&&b.type!==17)this.next(),C=this.state.startLoc,X=!1}if(X&&this.isContextual(106)){let b=this.lookahead();if(b.type!==14&&b.type!==17)this.next(),I=!0}let v=this.flowParseVariance();if(this.eat(0)){if(C!=null)this.unexpected(C);if(this.eat(0)){if(v)this.unexpected(v.loc.start);z.internalSlots.push(this.flowParseObjectTypeInternalSlot(O,I))}else z.indexers.push(this.flowParseObjectTypeIndexer(O,I,v))}else if(this.match(10)||this.match(47)){if(C!=null)this.unexpected(C);if(v)this.unexpected(v.loc.start);z.callProperties.push(this.flowParseObjectTypeCallProperty(O,I))}else{let b="init";if(this.isContextual(99)||this.isContextual(104)){let J1=this.lookahead();if(GU(J1.type))b=this.state.value,this.next()}let B1=this.flowParseObjectTypeProperty(O,I,C,v,b,Z,Q!=null?Q:!K);if(B1===null)q=!0,x=this.state.lastTokStartLoc;else z.properties.push(B1)}if(this.flowObjectTypeSemicolon(),x&&!this.match(8)&&!this.match(9))this.raise(Q1.UnexpectedExplicitInexactInObject,x)}if(this.expect(W),Z)z.inexact=q;let f=this.finishNode(z,"ObjectTypeAnnotation");return this.state.inType=Y,f}flowParseObjectTypeProperty(X,H,Z,V,Q,Y,z){if(this.eat(21)){if(this.match(12)||this.match(13)||this.match(8)||this.match(9)){if(!Y)this.raise(Q1.InexactInsideNonObject,this.state.lastTokStartLoc);else if(!z)this.raise(Q1.InexactInsideExact,this.state.lastTokStartLoc);if(V)this.raise(Q1.InexactVariance,V);return null}if(!Y)this.raise(Q1.UnexpectedSpreadType,this.state.lastTokStartLoc);if(Z!=null)this.unexpected(Z);if(V)this.raise(Q1.SpreadVariance,V);return X.argument=this.flowParseType(),this.finishNode(X,"ObjectTypeSpreadProperty")}else{X.key=this.flowParseObjectPropertyKey(),X.static=H,X.proto=Z!=null,X.kind=Q;let W=!1;if(this.match(47)||this.match(10)){if(X.method=!0,Z!=null)this.unexpected(Z);if(V)this.unexpected(V.loc.start);if(X.value=this.flowParseObjectTypeMethodish(this.startNodeAt(X.loc.start)),Q==="get"||Q==="set")this.flowCheckGetterSetterParams(X);if(!Y&&X.key.name==="constructor"&&X.value.this)this.raise(Q1.ThisParamBannedInConstructor,X.value.this)}else{if(Q!=="init")this.unexpected();if(X.method=!1,this.eat(17))W=!0;X.value=this.flowParseTypeInitialiser(),X.variance=V}return X.optional=W,this.finishNode(X,"ObjectTypeProperty")}}flowCheckGetterSetterParams(X){let H=X.kind==="get"?0:1,Z=X.value.params.length+(X.value.rest?1:0);if(X.value.this)this.raise(X.kind==="get"?Q1.GetterMayNotHaveThisParam:Q1.SetterMayNotHaveThisParam,X.value.this);if(Z!==H)this.raise(X.kind==="get"?D.BadGetterArity:D.BadSetterArity,X);if(X.kind==="set"&&X.value.rest)this.raise(D.BadSetterRestParameter,X)}flowObjectTypeSemicolon(){if(!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9))this.unexpected()}flowParseQualifiedTypeIdentifier(X,H){var Z;(Z=X)!=null||(X=this.state.startLoc);let V=H||this.flowParseRestrictedIdentifier(!0);while(this.eat(16)){let Q=this.startNodeAt(X);Q.qualification=V,Q.id=this.flowParseRestrictedIdentifier(!0),V=this.finishNode(Q,"QualifiedTypeIdentifier")}return V}flowParseGenericType(X,H){let Z=this.startNodeAt(X);if(Z.typeParameters=null,Z.id=this.flowParseQualifiedTypeIdentifier(X,H),this.match(47))Z.typeParameters=this.flowParseTypeParameterInstantiation();return this.finishNode(Z,"GenericTypeAnnotation")}flowParseTypeofType(){let X=this.startNode();return this.expect(87),X.argument=this.flowParsePrimaryType(),this.finishNode(X,"TypeofTypeAnnotation")}flowParseTupleType(){let X=this.startNode();X.types=[],this.expect(0);while(this.state.pos<this.length&&!this.match(3)){if(X.types.push(this.flowParseType()),this.match(3))break;this.expect(12)}return this.expect(3),this.finishNode(X,"TupleTypeAnnotation")}flowParseFunctionTypeParam(X){let H=null,Z=!1,V=null,Q=this.startNode(),Y=this.lookahead(),z=this.state.type===78;if(Y.type===14||Y.type===17){if(z&&!X)this.raise(Q1.ThisParamMustBeFirst,Q);if(H=this.parseIdentifier(z),this.eat(17)){if(Z=!0,z)this.raise(Q1.ThisParamMayNotBeOptional,Q)}V=this.flowParseTypeInitialiser()}else V=this.flowParseType();return Q.name=H,Q.optional=Z,Q.typeAnnotation=V,this.finishNode(Q,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(X){let H=this.startNodeAt(X.loc.start);return H.name=null,H.optional=!1,H.typeAnnotation=X,this.finishNode(H,"FunctionTypeParam")}flowParseFunctionTypeParams(X=[]){let H=null,Z=null;if(this.match(78)){if(Z=this.flowParseFunctionTypeParam(!0),Z.name=null,!this.match(11))this.expect(12)}while(!this.match(11)&&!this.match(21))if(X.push(this.flowParseFunctionTypeParam(!1)),!this.match(11))this.expect(12);if(this.eat(21))H=this.flowParseFunctionTypeParam(!1);return{params:X,rest:H,_this:Z}}flowIdentToTypeAnnotation(X,H,Z){switch(Z.name){case"any":return this.finishNode(H,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(H,"BooleanTypeAnnotation");case"mixed":return this.finishNode(H,"MixedTypeAnnotation");case"empty":return this.finishNode(H,"EmptyTypeAnnotation");case"number":return this.finishNode(H,"NumberTypeAnnotation");case"string":return this.finishNode(H,"StringTypeAnnotation");case"symbol":return this.finishNode(H,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(Z.name),this.flowParseGenericType(X,Z)}}flowParsePrimaryType(){let X=this.state.startLoc,H=this.startNode(),Z,V,Q=!1,Y=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,V=this.flowParseTupleType(),this.state.noAnonFunctionType=Y,V;case 47:{let z=this.startNode();return z.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),Z=this.flowParseFunctionTypeParams(),z.params=Z.params,z.rest=Z.rest,z.this=Z._this,this.expect(11),this.expect(19),z.returnType=this.flowParseType(),this.finishNode(z,"FunctionTypeAnnotation")}case 10:{let z=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(N1(this.state.type)||this.match(78)){let W=this.lookahead().type;Q=W!==17&&W!==14}else Q=!0;if(Q)if(this.state.noAnonFunctionType=!1,V=this.flowParseType(),this.state.noAnonFunctionType=Y,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),V;else this.eat(12);if(V)Z=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(V)]);else Z=this.flowParseFunctionTypeParams();return z.params=Z.params,z.rest=Z.rest,z.this=Z._this,this.expect(11),this.expect(19),z.returnType=this.flowParseType(),z.typeParameters=null,this.finishNode(z,"FunctionTypeAnnotation")}case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return H.value=this.match(85),this.next(),this.finishNode(H,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",H);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",H);throw this.raise(Q1.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(H,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(H,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(H,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(H,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(r7(this.state.type)){let z=O0(this.state.type);return this.next(),super.createIdentifier(H,z)}else if(N1(this.state.type)){if(this.isContextual(129))return this.flowParseInterfaceType();return this.flowIdentToTypeAnnotation(X,H,this.parseIdentifier())}}this.unexpected()}flowParsePostfixType(){let X=this.state.startLoc,H=this.flowParsePrimaryType(),Z=!1;while((this.match(0)||this.match(18))&&!this.canInsertSemicolon()){let V=this.startNodeAt(X),Q=this.eat(18);if(Z=Z||Q,this.expect(0),!Q&&this.match(3))V.elementType=H,this.next(),H=this.finishNode(V,"ArrayTypeAnnotation");else if(V.objectType=H,V.indexType=this.flowParseType(),this.expect(3),Z)V.optional=Q,H=this.finishNode(V,"OptionalIndexedAccessType");else H=this.finishNode(V,"IndexedAccessType")}return H}flowParsePrefixType(){let X=this.startNode();if(this.eat(17))return X.typeAnnotation=this.flowParsePrefixType(),this.finishNode(X,"NullableTypeAnnotation");else return this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let X=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let H=this.startNodeAt(X.loc.start);return H.params=[this.reinterpretTypeAsFunctionTypeParam(X)],H.rest=null,H.this=null,H.returnType=this.flowParseType(),H.typeParameters=null,this.finishNode(H,"FunctionTypeAnnotation")}return X}flowParseIntersectionType(){let X=this.startNode();this.eat(45);let H=this.flowParseAnonFunctionWithoutParens();X.types=[H];while(this.eat(45))X.types.push(this.flowParseAnonFunctionWithoutParens());return X.types.length===1?H:this.finishNode(X,"IntersectionTypeAnnotation")}flowParseUnionType(){let X=this.startNode();this.eat(43);let H=this.flowParseIntersectionType();X.types=[H];while(this.eat(43))X.types.push(this.flowParseIntersectionType());return X.types.length===1?H:this.finishNode(X,"UnionTypeAnnotation")}flowParseType(){let X=this.state.inType;this.state.inType=!0;let H=this.flowParseUnionType();return this.state.inType=X,H}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let X=this.state.startLoc,H=this.parseIdentifier();return this.flowParseGenericType(X,H)}else return this.flowParseType()}flowParseTypeAnnotation(){let X=this.startNode();return X.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(X,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(X){let H=X?this.parseIdentifier():this.flowParseRestrictedIdentifier();if(this.match(14))H.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(H);return H}typeCastToParameter(X){return X.expression.typeAnnotation=X.typeAnnotation,this.resetEndLocation(X.expression,X.typeAnnotation.loc.end),X.expression}flowParseVariance(){let X=null;if(this.match(53)){if(X=this.startNode(),this.state.value==="+")X.kind="plus";else X.kind="minus";return this.next(),this.finishNode(X,"Variance")}return X}parseFunctionBody(X,H,Z=!1){if(H){this.forwardNoArrowParamsConversionAt(X,()=>super.parseFunctionBody(X,!0,Z));return}super.parseFunctionBody(X,!1,Z)}parseFunctionBodyAndFinish(X,H,Z=!1){if(this.match(14)){let V=this.startNode();[V.typeAnnotation,X.predicate]=this.flowParseTypeAndPredicateInitialiser(),X.returnType=V.typeAnnotation?this.finishNode(V,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(X,H,Z)}parseStatementLike(X){if(this.state.strict&&this.isContextual(129)){let Z=this.lookahead();if(x2(Z.type)){let V=this.startNode();return this.next(),this.flowParseInterface(V)}}else if(this.plugins.get("flow").enums&&this.isContextual(126)){let Z=this.startNode();return this.next(),this.flowParseEnumDeclaration(Z)}let H=super.parseStatementLike(X);if(this.flowPragma===void 0&&!this.isValidDirective(H))this.flowPragma=null;return H}parseExpressionStatement(X,H,Z){if(H.type==="Identifier"){if(H.name==="declare"){if(this.match(80)||N1(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(X)}else if(N1(this.state.type)){if(H.name==="interface")return this.flowParseInterface(X);else if(H.name==="type")return this.flowParseTypeAlias(X);else if(H.name==="opaque")return this.flowParseOpaqueType(X,!1)}}return super.parseExpressionStatement(X,H,Z)}shouldParseExportDeclaration(){let{type:X}=this.state;if(a$(X)||this.plugins.get("flow").enums&&X===126)return!this.state.containsEsc;return super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:X}=this.state;if(a$(X)||this.plugins.get("flow").enums&&X===126)return this.state.containsEsc;return super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.plugins.get("flow").enums&&this.isContextual(126)){let X=this.startNode();return this.next(),this.flowParseEnumDeclaration(X)}return super.parseExportDefaultExpression()}parseConditional(X,H,Z){if(!this.match(17))return X;if(this.state.maybeInArrowParameters){let f=this.lookaheadCharCode();if(f===44||f===61||f===58||f===41)return this.setOptionalParametersError(Z),X}this.expect(17);let V=this.state.clone(),Q=this.state.noArrowAt,Y=this.startNodeAt(H),{consequent:z,failed:W}=this.tryParseConditionalConsequent(),[K,q]=this.getArrowLikeExpressions(z);if(W||q.length>0){let f=[...Q];if(q.length>0){this.state=V,this.state.noArrowAt=f;for(let I=0;I<q.length;I++)f.push(q[I].start);({consequent:z,failed:W}=this.tryParseConditionalConsequent()),[K,q]=this.getArrowLikeExpressions(z)}if(W&&K.length>1)this.raise(Q1.AmbiguousConditionalArrow,V.startLoc);if(W&&K.length===1)this.state=V,f.push(K[0].start),this.state.noArrowAt=f,{consequent:z,failed:W}=this.tryParseConditionalConsequent()}return this.getArrowLikeExpressions(z,!0),this.state.noArrowAt=Q,this.expect(14),Y.test=X,Y.consequent=z,Y.alternate=this.forwardNoArrowParamsConversionAt(Y,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(Y,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let X=this.parseMaybeAssignAllowIn(),H=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:X,failed:H}}getArrowLikeExpressions(X,H){let Z=[X],V=[];while(Z.length!==0){let Q=Z.pop();if(Q.type==="ArrowFunctionExpression"&&Q.body.type!=="BlockStatement"){if(Q.typeParameters||!Q.returnType)this.finishArrowValidation(Q);else V.push(Q);Z.push(Q.body)}else if(Q.type==="ConditionalExpression")Z.push(Q.consequent),Z.push(Q.alternate)}if(H)return V.forEach((Q)=>this.finishArrowValidation(Q)),[V,[]];return sW1(V,(Q)=>Q.params.every((Y)=>this.isAssignable(Y,!0)))}finishArrowValidation(X){var H;this.toAssignableList(X.params,(H=X.extra)==null?void 0:H.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(X,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(X,H){let Z;if(this.state.noArrowParamsConversionAt.includes(X.start))this.state.noArrowParamsConversionAt.push(this.state.start),Z=H(),this.state.noArrowParamsConversionAt.pop();else Z=H();return Z}parseParenItem(X,H){let Z=super.parseParenItem(X,H);if(this.eat(17))Z.optional=!0,this.resetEndLocation(X);if(this.match(14)){let V=this.startNodeAt(H);return V.expression=Z,V.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(V,"TypeCastExpression")}return Z}assertModuleNodeAllowed(X){if(X.type==="ImportDeclaration"&&(X.importKind==="type"||X.importKind==="typeof")||X.type==="ExportNamedDeclaration"&&X.exportKind==="type"||X.type==="ExportAllDeclaration"&&X.exportKind==="type")return;super.assertModuleNodeAllowed(X)}parseExportDeclaration(X){if(this.isContextual(130)){X.exportKind="type";let H=this.startNode();if(this.next(),this.match(5))return X.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(X),null;else return this.flowParseTypeAlias(H)}else if(this.isContextual(131)){X.exportKind="type";let H=this.startNode();return this.next(),this.flowParseOpaqueType(H,!1)}else if(this.isContextual(129)){X.exportKind="type";let H=this.startNode();return this.next(),this.flowParseInterface(H)}else if(this.plugins.get("flow").enums&&this.isContextual(126)){X.exportKind="value";let H=this.startNode();return this.next(),this.flowParseEnumDeclaration(H)}else return super.parseExportDeclaration(X)}eatExportStar(X){if(super.eatExportStar(X))return!0;if(this.isContextual(130)&&this.lookahead().type===55)return X.exportKind="type",this.next(),this.next(),!0;return!1}maybeParseExportNamespaceSpecifier(X){let{startLoc:H}=this.state,Z=super.maybeParseExportNamespaceSpecifier(X);if(Z&&X.exportKind==="type")this.unexpected(H);return Z}parseClassId(X,H,Z){if(super.parseClassId(X,H,Z),this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration()}parseClassMember(X,H,Z){let{startLoc:V}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(X,H))return;H.declare=!0}if(super.parseClassMember(X,H,Z),H.declare){if(H.type!=="ClassProperty"&&H.type!=="ClassPrivateProperty"&&H.type!=="PropertyDefinition")this.raise(Q1.DeclareClassElement,V);else if(H.value)this.raise(Q1.DeclareClassFieldInitializer,H.value)}}isIterator(X){return X==="iterator"||X==="asyncIterator"}readIterator(){let X=super.readWord1(),H="@@"+X;if(!this.isIterator(X)||!this.state.inType)this.raise(D.InvalidIdentifier,this.state.curPosition(),{identifierName:H});this.finishToken(132,H)}getTokenFromCode(X){let H=this.input.charCodeAt(this.state.pos+1);if(X===123&&H===124)this.finishOp(6,2);else if(this.state.inType&&(X===62||X===60))this.finishOp(X===62?48:47,1);else if(this.state.inType&&X===63)if(H===46)this.finishOp(18,2);else this.finishOp(17,1);else if(kW1(X,H,this.input.charCodeAt(this.state.pos+2)))this.state.pos+=2,this.readIterator();else super.getTokenFromCode(X)}isAssignable(X,H){if(X.type==="TypeCastExpression")return this.isAssignable(X.expression,H);else return super.isAssignable(X,H)}toAssignable(X,H=!1){if(!H&&X.type==="AssignmentExpression"&&X.left.type==="TypeCastExpression")X.left=this.typeCastToParameter(X.left);super.toAssignable(X,H)}toAssignableList(X,H,Z){for(let V=0;V<X.length;V++){let Q=X[V];if((Q==null?void 0:Q.type)==="TypeCastExpression")X[V]=this.typeCastToParameter(Q)}super.toAssignableList(X,H,Z)}toReferencedList(X,H){for(let V=0;V<X.length;V++){var Z;let Q=X[V];if(Q&&Q.type==="TypeCastExpression"&&!((Z=Q.extra)!=null&&Z.parenthesized)&&(X.length>1||!H))this.raise(Q1.TypeCastInPattern,Q.typeAnnotation)}return X}parseArrayLike(X,H,Z,V){let Q=super.parseArrayLike(X,H,Z,V);if(H&&!this.state.maybeInArrowParameters)this.toReferencedList(Q.elements);return Q}isValidLVal(X,H,Z){return X==="TypeCastExpression"||super.isValidLVal(X,H,Z)}parseClassProperty(X){if(this.match(14))X.typeAnnotation=this.flowParseTypeAnnotation();return super.parseClassProperty(X)}parseClassPrivateProperty(X){if(this.match(14))X.typeAnnotation=this.flowParseTypeAnnotation();return super.parseClassPrivateProperty(X)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(X){return!this.match(14)&&super.isNonstaticConstructor(X)}pushClassMethod(X,H,Z,V,Q,Y){if(H.variance)this.unexpected(H.variance.loc.start);if(delete H.variance,this.match(47))H.typeParameters=this.flowParseTypeParameterDeclaration();if(super.pushClassMethod(X,H,Z,V,Q,Y),H.params&&Q){let z=H.params;if(z.length>0&&this.isThisParam(z[0]))this.raise(Q1.ThisParamBannedInConstructor,H)}else if(H.type==="MethodDefinition"&&Q&&H.value.params){let z=H.value.params;if(z.length>0&&this.isThisParam(z[0]))this.raise(Q1.ThisParamBannedInConstructor,H)}}pushClassPrivateMethod(X,H,Z,V){if(H.variance)this.unexpected(H.variance.loc.start);if(delete H.variance,this.match(47))H.typeParameters=this.flowParseTypeParameterDeclaration();super.pushClassPrivateMethod(X,H,Z,V)}parseClassSuper(X){if(super.parseClassSuper(X),X.superClass&&this.match(47))X.superTypeParameters=this.flowParseTypeParameterInstantiation();if(this.isContextual(113)){this.next();let H=X.implements=[];do{let Z=this.startNode();if(Z.id=this.flowParseRestrictedIdentifier(!0),this.match(47))Z.typeParameters=this.flowParseTypeParameterInstantiation();else Z.typeParameters=null;H.push(this.finishNode(Z,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(X){super.checkGetterSetterParams(X);let H=this.getObjectOrClassMethodParams(X);if(H.length>0){let Z=H[0];if(this.isThisParam(Z)&&X.kind==="get")this.raise(Q1.GetterMayNotHaveThisParam,Z);else if(this.isThisParam(Z))this.raise(Q1.SetterMayNotHaveThisParam,Z)}}parsePropertyNamePrefixOperator(X){X.variance=this.flowParseVariance()}parseObjPropValue(X,H,Z,V,Q,Y,z){if(X.variance)this.unexpected(X.variance.loc.start);delete X.variance;let W;if(this.match(47)&&!Y){if(W=this.flowParseTypeParameterDeclaration(),!this.match(10))this.unexpected()}let K=super.parseObjPropValue(X,H,Z,V,Q,Y,z);if(W)(K.value||K).typeParameters=W;return K}parseFunctionParamType(X){if(this.eat(17)){if(X.type!=="Identifier")this.raise(Q1.PatternIsOptional,X);if(this.isThisParam(X))this.raise(Q1.ThisParamMayNotBeOptional,X);X.optional=!0}if(this.match(14))X.typeAnnotation=this.flowParseTypeAnnotation();else if(this.isThisParam(X))this.raise(Q1.ThisParamAnnotationRequired,X);if(this.match(29)&&this.isThisParam(X))this.raise(Q1.ThisParamNoDefault,X);return this.resetEndLocation(X),X}parseMaybeDefault(X,H){let Z=super.parseMaybeDefault(X,H);if(Z.type==="AssignmentPattern"&&Z.typeAnnotation&&Z.right.start<Z.typeAnnotation.start)this.raise(Q1.TypeBeforeInitializer,Z.typeAnnotation);return Z}checkImportReflection(X){if(super.checkImportReflection(X),X.module&&X.importKind!=="value")this.raise(Q1.ImportReflectionHasImportType,X.specifiers[0].loc.start)}parseImportSpecifierLocal(X,H,Z){H.local=s$(X)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),X.specifiers.push(this.finishImportSpecifier(H,Z))}isPotentialImportPhase(X){if(super.isPotentialImportPhase(X))return!0;if(this.isContextual(130)){if(!X)return!0;let H=this.lookaheadCharCode();return H===123||H===42}return!X&&this.isContextual(87)}applyImportPhase(X,H,Z,V){if(super.applyImportPhase(X,H,Z,V),H){if(!Z&&this.match(65))return;X.exportKind=Z==="type"?Z:"value"}else{if(Z==="type"&&this.match(55))this.unexpected();X.importKind=Z==="type"||Z==="typeof"?Z:"value"}}parseImportSpecifier(X,H,Z,V,Q){let Y=X.imported,z=null;if(Y.type==="Identifier"){if(Y.name==="type")z="type";else if(Y.name==="typeof")z="typeof"}let W=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let q=this.parseIdentifier(!0);if(z!==null&&!x2(this.state.type))X.imported=q,X.importKind=z,X.local=q0(q);else X.imported=Y,X.importKind=null,X.local=this.parseIdentifier()}else{if(z!==null&&x2(this.state.type))X.imported=this.parseIdentifier(!0),X.importKind=z;else{if(H)throw this.raise(D.ImportBindingIsString,X,{importName:Y.value});X.imported=Y,X.importKind=null}if(this.eatContextual(93))X.local=this.parseIdentifier();else W=!0,X.local=q0(X.imported)}let K=s$(X);if(Z&&K)this.raise(Q1.ImportTypeShorthandOnlyInPureImport,X);if(Z||K)this.checkReservedType(X.local.name,X.local.loc.start,!0);if(W&&!Z&&!K)this.checkReservedWord(X.local.name,X.loc.start,!0,!0);return this.finishImportSpecifier(X,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(X,H){let Z=X.kind;if(Z!=="get"&&Z!=="set"&&this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration();super.parseFunctionParams(X,H)}parseVarId(X,H){if(super.parseVarId(X,H),this.match(14))X.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(X.id)}parseAsyncArrowFromCallExpression(X,H){if(this.match(14)){let Z=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,X.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=Z}return super.parseAsyncArrowFromCallExpression(X,H)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(X,H){var Z;let V=null,Q;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(V=this.state.clone(),Q=this.tryParse(()=>super.parseMaybeAssign(X,H),V),!Q.error)return Q.node;let{context:W}=this.state,K=W[W.length-1];if(K===v1.j_oTag||K===v1.j_expr)W.pop()}if((Z=Q)!=null&&Z.error||this.match(47)){var Y,z;V=V||this.state.clone();let W,K=this.tryParse((f)=>{var I;W=this.flowParseTypeParameterDeclaration();let C=this.forwardNoArrowParamsConversionAt(W,()=>{let O=super.parseMaybeAssign(X,H);return this.resetStartLocationFromNode(O,W),O});if((I=C.extra)!=null&&I.parenthesized)f();let x=this.maybeUnwrapTypeCastExpression(C);if(x.type!=="ArrowFunctionExpression")f();return x.typeParameters=W,this.resetStartLocationFromNode(x,W),C},V),q=null;if(K.node&&this.maybeUnwrapTypeCastExpression(K.node).type==="ArrowFunctionExpression"){if(!K.error&&!K.aborted){if(K.node.async)this.raise(Q1.UnexpectedTypeParameterBeforeAsyncArrowFunction,W);return K.node}q=K.node}if((Y=Q)!=null&&Y.node)return this.state=Q.failState,Q.node;if(q)return this.state=K.failState,q;if((z=Q)!=null&&z.thrown)throw Q.error;if(K.thrown)throw K.error;throw this.raise(Q1.UnexpectedTokenAfterTypeParameter,W)}return super.parseMaybeAssign(X,H)}parseArrow(X){if(this.match(14)){let H=this.tryParse(()=>{let Z=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let V=this.startNode();if([V.typeAnnotation,X.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=Z,this.canInsertSemicolon())this.unexpected();if(!this.match(19))this.unexpected();return V});if(H.thrown)return null;if(H.error)this.state=H.failState;X.returnType=H.node.typeAnnotation?this.finishNode(H.node,"TypeAnnotation"):null}return super.parseArrow(X)}shouldParseArrow(X){return this.match(14)||super.shouldParseArrow(X)}setArrowFunctionParameters(X,H){if(this.state.noArrowParamsConversionAt.includes(X.start))X.params=H;else super.setArrowFunctionParameters(X,H)}checkParams(X,H,Z,V=!0){if(Z&&this.state.noArrowParamsConversionAt.includes(X.start))return;for(let Q=0;Q<X.params.length;Q++)if(this.isThisParam(X.params[Q])&&Q>0)this.raise(Q1.ThisParamMustBeFirst,X.params[Q]);super.checkParams(X,H,Z,V)}parseParenAndDistinguishExpression(X){return super.parseParenAndDistinguishExpression(X&&!this.state.noArrowAt.includes(this.state.start))}parseSubscripts(X,H,Z){if(X.type==="Identifier"&&X.name==="async"&&this.state.noArrowAt.includes(H.index)){this.next();let V=this.startNodeAt(H);V.callee=X,V.arguments=super.parseCallExpressionArguments(11,!1),X=this.finishNode(V,"CallExpression")}else if(X.type==="Identifier"&&X.name==="async"&&this.match(47)){let V=this.state.clone(),Q=this.tryParse((z)=>this.parseAsyncArrowWithTypeParameters(H)||z(),V);if(!Q.error&&!Q.aborted)return Q.node;let Y=this.tryParse(()=>super.parseSubscripts(X,H,Z),V);if(Y.node&&!Y.error)return Y.node;if(Q.node)return this.state=Q.failState,Q.node;if(Y.node)return this.state=Y.failState,Y.node;throw Q.error||Y.error}return super.parseSubscripts(X,H,Z)}parseSubscript(X,H,Z,V){if(this.match(18)&&this.isLookaheadToken_lt()){if(V.optionalChainMember=!0,Z)return V.stop=!0,X;this.next();let Q=this.startNodeAt(H);return Q.callee=X,Q.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),Q.arguments=this.parseCallExpressionArguments(11,!1),Q.optional=!0,this.finishCallExpression(Q,!0)}else if(!Z&&this.shouldParseTypes()&&this.match(47)){let Q=this.startNodeAt(H);Q.callee=X;let Y=this.tryParse(()=>{if(Q.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),Q.arguments=super.parseCallExpressionArguments(11,!1),V.optionalChainMember)Q.optional=!1;return this.finishCallExpression(Q,V.optionalChainMember)});if(Y.node){if(Y.error)this.state=Y.failState;return Y.node}}return super.parseSubscript(X,H,Z,V)}parseNewCallee(X){super.parseNewCallee(X);let H=null;if(this.shouldParseTypes()&&this.match(47))H=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node;X.typeArguments=H}parseAsyncArrowWithTypeParameters(X){let H=this.startNodeAt(X);if(this.parseFunctionParams(H,!1),!this.parseArrow(H))return;return super.parseArrowExpression(H,void 0,!0)}readToken_mult_modulo(X){let H=this.input.charCodeAt(this.state.pos+1);if(X===42&&H===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(X)}readToken_pipe_amp(X){let H=this.input.charCodeAt(this.state.pos+1);if(X===124&&H===125){this.finishOp(9,2);return}super.readToken_pipe_amp(X)}parseTopLevel(X,H){let Z=super.parseTopLevel(X,H);if(this.state.hasFlowComment)this.raise(Q1.UnterminatedFlowComment,this.state.curPosition());return Z}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Q1.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let X=this.skipFlowComment();if(X)this.state.pos+=X,this.state.hasFlowComment=!0;return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:X}=this.state,H=2;while([32,9].includes(this.input.charCodeAt(X+H)))H++;let Z=this.input.charCodeAt(H+X),V=this.input.charCodeAt(H+X+1);if(Z===58&&V===58)return H+2;if(this.input.slice(H+X,H+X+12)==="flow-include")return H+12;if(Z===58&&V!==58)return H;return!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(D.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(X,{enumName:H,memberName:Z}){this.raise(Q1.EnumBooleanMemberNotInitialized,X,{memberName:Z,enumName:H})}flowEnumErrorInvalidMemberInitializer(X,H){return this.raise(!H.explicitType?Q1.EnumInvalidMemberInitializerUnknownType:H.explicitType==="symbol"?Q1.EnumInvalidMemberInitializerSymbolType:Q1.EnumInvalidMemberInitializerPrimaryType,X,H)}flowEnumErrorNumberMemberNotInitialized(X,H){this.raise(Q1.EnumNumberMemberNotInitialized,X,H)}flowEnumErrorStringMemberInconsistentlyInitialized(X,H){this.raise(Q1.EnumStringMemberInconsistentlyInitialized,X,H)}flowEnumMemberInit(){let X=this.state.startLoc,H=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{let Z=this.parseNumericLiteral(this.state.value);if(H())return{type:"number",loc:Z.loc.start,value:Z};return{type:"invalid",loc:X}}case 133:{let Z=this.parseStringLiteral(this.state.value);if(H())return{type:"string",loc:Z.loc.start,value:Z};return{type:"invalid",loc:X}}case 85:case 86:{let Z=this.parseBooleanLiteral(this.match(85));if(H())return{type:"boolean",loc:Z.loc.start,value:Z};return{type:"invalid",loc:X}}default:return{type:"invalid",loc:X}}}flowEnumMemberRaw(){let X=this.state.startLoc,H=this.parseIdentifier(!0),Z=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:X};return{id:H,init:Z}}flowEnumCheckExplicitTypeMismatch(X,H,Z){let{explicitType:V}=H;if(V===null)return;if(V!==Z)this.flowEnumErrorInvalidMemberInitializer(X,H)}flowEnumMembers({enumName:X,explicitType:H}){let Z=new Set,V={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},Q=!1;while(!this.match(8)){if(this.eat(21)){Q=!0;break}let Y=this.startNode(),{id:z,init:W}=this.flowEnumMemberRaw(),K=z.name;if(K==="")continue;if(/^[a-z]/.test(K))this.raise(Q1.EnumInvalidMemberName,z,{memberName:K,suggestion:K[0].toUpperCase()+K.slice(1),enumName:X});if(Z.has(K))this.raise(Q1.EnumDuplicateMemberName,z,{memberName:K,enumName:X});Z.add(K);let q={enumName:X,explicitType:H,memberName:K};switch(Y.id=z,W.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(W.loc,q,"boolean"),Y.init=W.value,V.booleanMembers.push(this.finishNode(Y,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(W.loc,q,"number"),Y.init=W.value,V.numberMembers.push(this.finishNode(Y,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(W.loc,q,"string"),Y.init=W.value,V.stringMembers.push(this.finishNode(Y,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(W.loc,q);case"none":switch(H){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(W.loc,q);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(W.loc,q);break;default:V.defaultedMembers.push(this.finishNode(Y,"EnumDefaultedMember"))}}if(!this.match(8))this.expect(12)}return{members:V,hasUnknownMembers:Q}}flowEnumStringMembers(X,H,{enumName:Z}){if(X.length===0)return H;else if(H.length===0)return X;else if(H.length>X.length){for(let V of X)this.flowEnumErrorStringMemberInconsistentlyInitialized(V,{enumName:Z});return H}else{for(let V of H)this.flowEnumErrorStringMemberInconsistentlyInitialized(V,{enumName:Z});return X}}flowEnumParseExplicitType({enumName:X}){if(!this.eatContextual(102))return null;if(!N1(this.state.type))throw this.raise(Q1.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:X});let{value:H}=this.state;if(this.next(),H!=="boolean"&&H!=="number"&&H!=="string"&&H!=="symbol")this.raise(Q1.EnumInvalidExplicitType,this.state.startLoc,{enumName:X,invalidEnumType:H});return H}flowEnumBody(X,H){let Z=H.name,V=H.loc.start,Q=this.flowEnumParseExplicitType({enumName:Z});this.expect(5);let{members:Y,hasUnknownMembers:z}=this.flowEnumMembers({enumName:Z,explicitType:Q});switch(X.hasUnknownMembers=z,Q){case"boolean":return X.explicitType=!0,X.members=Y.booleanMembers,this.expect(8),this.finishNode(X,"EnumBooleanBody");case"number":return X.explicitType=!0,X.members=Y.numberMembers,this.expect(8),this.finishNode(X,"EnumNumberBody");case"string":return X.explicitType=!0,X.members=this.flowEnumStringMembers(Y.stringMembers,Y.defaultedMembers,{enumName:Z}),this.expect(8),this.finishNode(X,"EnumStringBody");case"symbol":return X.members=Y.defaultedMembers,this.expect(8),this.finishNode(X,"EnumSymbolBody");default:{let W=()=>{return X.members=[],this.expect(8),this.finishNode(X,"EnumStringBody")};X.explicitType=!1;let K=Y.booleanMembers.length,q=Y.numberMembers.length,f=Y.stringMembers.length,I=Y.defaultedMembers.length;if(!K&&!q&&!f&&!I)return W();else if(!K&&!q)return X.members=this.flowEnumStringMembers(Y.stringMembers,Y.defaultedMembers,{enumName:Z}),this.expect(8),this.finishNode(X,"EnumStringBody");else if(!q&&!f&&K>=I){for(let C of Y.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(C.loc.start,{enumName:Z,memberName:C.id.name});return X.members=Y.booleanMembers,this.expect(8),this.finishNode(X,"EnumBooleanBody")}else if(!K&&!f&&q>=I){for(let C of Y.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(C.loc.start,{enumName:Z,memberName:C.id.name});return X.members=Y.numberMembers,this.expect(8),this.finishNode(X,"EnumNumberBody")}else return this.raise(Q1.EnumInconsistentMemberValues,V,{enumName:Z}),W()}}}flowParseEnumDeclaration(X){let H=this.parseIdentifier();return X.id=H,X.body=this.flowEnumBody(this.startNode(),H),this.finishNode(X,"EnumDeclaration")}isLookaheadToken_lt(){let X=this.nextTokenStart();if(this.input.charCodeAt(X)===60){let H=this.input.charCodeAt(X+1);return H!==60&&H!==61}return!1}maybeUnwrapTypeCastExpression(X){return X.type==="TypeCastExpression"?X.expression:X}},oW1={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},J5=R0`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:J})=>`Expected corresponding JSX closing tag for <${J}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:J,HTMLEntity:G})=>`Unexpected token \`${J}\`. Did you mean \`${G}\` or \`{'${J}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function E0(J){return J?J.type==="JSXOpeningFragment"||J.type==="JSXClosingFragment":!1}function g5(J){if(J.type==="JSXIdentifier")return J.name;if(J.type==="JSXNamespacedName")return J.namespace.name+":"+J.name.name;if(J.type==="JSXMemberExpression")return g5(J.object)+"."+g5(J.property);throw new Error("Node had unexpected type: "+J.type)}var eW1=(J)=>class G extends J{jsxReadToken(){let X="",H=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(J5.UnterminatedJsxContent,this.state.startLoc);let Z=this.input.charCodeAt(this.state.pos);switch(Z){case 60:case 123:if(this.state.pos===this.state.start){if(Z===60&&this.state.canStartJSXElement)++this.state.pos,this.finishToken(142);else super.getTokenFromCode(Z);return}X+=this.input.slice(H,this.state.pos),this.finishToken(141,X);return;case 38:X+=this.input.slice(H,this.state.pos),X+=this.jsxReadEntity(),H=this.state.pos;break;case 62:case 125:default:if(h5(Z))X+=this.input.slice(H,this.state.pos),X+=this.jsxReadNewLine(!0),H=this.state.pos;else++this.state.pos}}}jsxReadNewLine(X){let H=this.input.charCodeAt(this.state.pos),Z;if(++this.state.pos,H===13&&this.input.charCodeAt(this.state.pos)===10)++this.state.pos,Z=X?"\n":"\r\n";else Z=String.fromCharCode(H);return++this.state.curLine,this.state.lineStart=this.state.pos,Z}jsxReadString(X){let H="",Z=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(D.UnterminatedString,this.state.startLoc);let V=this.input.charCodeAt(this.state.pos);if(V===X)break;if(V===38)H+=this.input.slice(Z,this.state.pos),H+=this.jsxReadEntity(),Z=this.state.pos;else if(h5(V))H+=this.input.slice(Z,this.state.pos),H+=this.jsxReadNewLine(!1),Z=this.state.pos;else++this.state.pos}H+=this.input.slice(Z,this.state.pos++),this.finishToken(133,H)}jsxReadEntity(){let X=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let H=10;if(this.codePointAtPos(this.state.pos)===120)H=16,++this.state.pos;let Z=this.readInt(H,void 0,!1,"bail");if(Z!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(Z)}else{let H=0,Z=!1;while(H++<10&&this.state.pos<this.length&&!(Z=this.codePointAtPos(this.state.pos)===59))++this.state.pos;if(Z){let V=this.input.slice(X,this.state.pos),Q=oW1[V];if(++this.state.pos,Q)return Q}}return this.state.pos=X,"&"}jsxReadWord(){let X,H=this.state.pos;do X=this.input.charCodeAt(++this.state.pos);while(b5(X)||X===45);this.finishToken(140,this.input.slice(H,this.state.pos))}jsxParseIdentifier(){let X=this.startNode();if(this.match(140))X.name=this.state.value;else if(r7(this.state.type))X.name=O0(this.state.type);else this.unexpected();return this.next(),this.finishNode(X,"JSXIdentifier")}jsxParseNamespacedName(){let X=this.state.startLoc,H=this.jsxParseIdentifier();if(!this.eat(14))return H;let Z=this.startNodeAt(X);return Z.namespace=H,Z.name=this.jsxParseIdentifier(),this.finishNode(Z,"JSXNamespacedName")}jsxParseElementName(){let X=this.state.startLoc,H=this.jsxParseNamespacedName();if(H.type==="JSXNamespacedName")return H;while(this.eat(16)){let Z=this.startNodeAt(X);Z.object=H,Z.property=this.jsxParseIdentifier(),H=this.finishNode(Z,"JSXMemberExpression")}return H}jsxParseAttributeValue(){let X;switch(this.state.type){case 5:if(X=this.startNode(),this.setContext(v1.brace),this.next(),X=this.jsxParseExpressionContainer(X,v1.j_oTag),X.expression.type==="JSXEmptyExpression")this.raise(J5.AttributeIsEmpty,X);return X;case 142:case 133:return this.parseExprAtom();default:throw this.raise(J5.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let X=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(X,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(X){return this.next(),X.expression=this.parseExpression(),this.setContext(v1.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(X,"JSXSpreadChild")}jsxParseExpressionContainer(X,H){if(this.match(8))X.expression=this.jsxParseEmptyExpression();else{let Z=this.parseExpression();X.expression=Z}return this.setContext(H),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(X,"JSXExpressionContainer")}jsxParseAttribute(){let X=this.startNode();if(this.match(5))return this.setContext(v1.brace),this.next(),this.expect(21),X.argument=this.parseMaybeAssignAllowIn(),this.setContext(v1.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(X,"JSXSpreadAttribute");return X.name=this.jsxParseNamespacedName(),X.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(X,"JSXAttribute")}jsxParseOpeningElementAt(X){let H=this.startNodeAt(X);if(this.eat(143))return this.finishNode(H,"JSXOpeningFragment");return H.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(H)}jsxParseOpeningElementAfterName(X){let H=[];while(!this.match(56)&&!this.match(143))H.push(this.jsxParseAttribute());return X.attributes=H,X.selfClosing=this.eat(56),this.expect(143),this.finishNode(X,"JSXOpeningElement")}jsxParseClosingElementAt(X){let H=this.startNodeAt(X);if(this.eat(143))return this.finishNode(H,"JSXClosingFragment");return H.name=this.jsxParseElementName(),this.expect(143),this.finishNode(H,"JSXClosingElement")}jsxParseElementAt(X){let H=this.startNodeAt(X),Z=[],V=this.jsxParseOpeningElementAt(X),Q=null;if(!V.selfClosing){J:for(;;)switch(this.state.type){case 142:if(X=this.state.startLoc,this.next(),this.eat(56)){Q=this.jsxParseClosingElementAt(X);break J}Z.push(this.jsxParseElementAt(X));break;case 141:Z.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let Y=this.startNode();if(this.setContext(v1.brace),this.next(),this.match(21))Z.push(this.jsxParseSpreadChild(Y));else Z.push(this.jsxParseExpressionContainer(Y,v1.j_expr));break}default:this.unexpected()}if(E0(V)&&!E0(Q)&&Q!==null)this.raise(J5.MissingClosingTagFragment,Q);else if(!E0(V)&&E0(Q))this.raise(J5.MissingClosingTagElement,Q,{openingTagName:g5(V.name)});else if(!E0(V)&&!E0(Q)){if(g5(Q.name)!==g5(V.name))this.raise(J5.MissingClosingTagElement,Q,{openingTagName:g5(V.name)})}}if(E0(V))H.openingFragment=V,H.closingFragment=Q;else H.openingElement=V,H.closingElement=Q;if(H.children=Z,this.match(47))throw this.raise(J5.UnwrappedAdjacentJSXElements,this.state.startLoc);return E0(V)?this.finishNode(H,"JSXFragment"):this.finishNode(H,"JSXElement")}jsxParseElement(){let X=this.state.startLoc;return this.next(),this.jsxParseElementAt(X)}setContext(X){let{context:H}=this.state;H[H.length-1]=X}parseExprAtom(X){if(this.match(142))return this.jsxParseElement();else if(this.match(47)&&this.input.charCodeAt(this.state.pos)!==33)return this.replaceToken(142),this.jsxParseElement();else return super.parseExprAtom(X)}skipSpace(){if(!this.curContext().preserveSpace)super.skipSpace()}getTokenFromCode(X){let H=this.curContext();if(H===v1.j_expr){this.jsxReadToken();return}if(H===v1.j_oTag||H===v1.j_cTag){if(B0(X)){this.jsxReadWord();return}if(X===62){++this.state.pos,this.finishToken(143);return}if((X===34||X===39)&&H===v1.j_oTag){this.jsxReadString(X);return}}if(X===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(142);return}super.getTokenFromCode(X)}updateContext(X){let{context:H,type:Z}=this.state;if(Z===56&&X===142)H.splice(-2,2,v1.j_cTag),this.state.canStartJSXElement=!1;else if(Z===142)H.push(v1.j_oTag);else if(Z===143){let V=H[H.length-1];if(V===v1.j_oTag&&X===56||V===v1.j_cTag)H.pop(),this.state.canStartJSXElement=H[H.length-1]===v1.j_expr;else this.setContext(v1.j_expr),this.state.canStartJSXElement=!0}else this.state.canStartJSXElement=RW1(Z)}};class CU extends cJ{constructor(...J){super(...J);this.tsNames=new Map}}class SU extends rJ{constructor(...J){super(...J);this.importsStack=[]}createScope(J){return this.importsStack.push(new Set),new CU(J)}enter(J){if(J===256)this.importsStack.push(new Set);super.enter(J)}exit(){let J=super.exit();if(J===256)this.importsStack.pop();return J}hasImport(J,G){let X=this.importsStack.length;if(this.importsStack[X-1].has(J))return!0;if(!G&&X>1){for(let H=0;H<X-1;H++)if(this.importsStack[H].has(J))return!0}return!1}declareName(J,G,X){if(G&4096){if(this.hasImport(J,!0))this.parser.raise(D.VarRedeclaration,X,{identifierName:J});this.importsStack[this.importsStack.length-1].add(J);return}let H=this.currentScope(),Z=H.tsNames.get(J)||0;if(G&1024){this.maybeExportDefined(H,J),H.tsNames.set(J,Z|16);return}if(super.declareName(J,G,X),G&2){if(!(G&1))this.checkRedeclarationInScope(H,J,G,X),this.maybeExportDefined(H,J);Z=Z|1}if(G&256)Z=Z|2;if(G&512)Z=Z|4;if(G&128)Z=Z|8;if(Z)H.tsNames.set(J,Z)}isRedeclaredInScope(J,G,X){let H=J.tsNames.get(G);if((H&2)>0){if(X&256){let Z=!!(X&512),V=(H&4)>0;return Z!==V}return!0}if(X&128&&(H&8)>0)if(J.names.get(G)&2)return!!(X&1);else return!1;if(X&2&&(H&1)>0)return!0;return super.isRedeclaredInScope(J,G,X)}checkLocalExport(J){let{name:G}=J;if(this.hasImport(G))return;let X=this.scopeStack.length;for(let H=X-1;H>=0;H--){let V=this.scopeStack[H].tsNames.get(G);if((V&1)>0||(V&16)>0)return}super.checkLocalExport(J)}}var PU=(J)=>{return J.type==="ParenthesizedExpression"?PU(J.expression):J};class wU extends IU{toAssignable(J,G=!1){var X,H;let Z=void 0;if(J.type==="ParenthesizedExpression"||(X=J.extra)!=null&&X.parenthesized)if(Z=PU(J),G){if(Z.type==="Identifier")this.expressionScope.recordArrowParameterBindingError(D.InvalidParenthesizedAssignment,J);else if(Z.type!=="MemberExpression"&&!this.isOptionalMemberExpression(Z))this.raise(D.InvalidParenthesizedAssignment,J)}else this.raise(D.InvalidParenthesizedAssignment,J);switch(J.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":J.type="ObjectPattern";for(let Q=0,Y=J.properties.length,z=Y-1;Q<Y;Q++){var V;let W=J.properties[Q],K=Q===z;if(this.toAssignableObjectExpressionProp(W,K,G),K&&W.type==="RestElement"&&(V=J.extra)!=null&&V.trailingCommaLoc)this.raise(D.RestTrailingComma,J.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:Q,value:Y}=J;if(this.isPrivateName(Q))this.classScope.usePrivateName(this.getPrivateNameSV(Q),Q.loc.start);this.toAssignable(Y,G);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":J.type="ArrayPattern",this.toAssignableList(J.elements,(H=J.extra)==null?void 0:H.trailingCommaLoc,G);break;case"AssignmentExpression":if(J.operator!=="=")this.raise(D.MissingEqInAssignment,J.left.loc.end);J.type="AssignmentPattern",delete J.operator,this.toAssignable(J.left,G);break;case"ParenthesizedExpression":this.toAssignable(Z,G);break}}toAssignableObjectExpressionProp(J,G,X){if(J.type==="ObjectMethod")this.raise(J.kind==="get"||J.kind==="set"?D.PatternHasAccessor:D.PatternHasMethod,J.key);else if(J.type==="SpreadElement"){J.type="RestElement";let H=J.argument;if(this.checkToRestConversion(H,!1),this.toAssignable(H,X),!G)this.raise(D.RestTrailingComma,J)}else this.toAssignable(J,X)}toAssignableList(J,G,X){let H=J.length-1;for(let Z=0;Z<=H;Z++){let V=J[Z];if(!V)continue;if(V.type==="SpreadElement"){V.type="RestElement";let Q=V.argument;this.checkToRestConversion(Q,!0),this.toAssignable(Q,X)}else this.toAssignable(V,X);if(V.type==="RestElement"){if(Z<H)this.raise(D.RestTrailingComma,V);else if(G)this.raise(D.RestTrailingComma,G)}}}isAssignable(J,G){switch(J.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let X=J.properties.length-1;return J.properties.every((H,Z)=>{return H.type!=="ObjectMethod"&&(Z===X||H.type!=="SpreadElement")&&this.isAssignable(H)})}case"ObjectProperty":return this.isAssignable(J.value);case"SpreadElement":return this.isAssignable(J.argument);case"ArrayExpression":return J.elements.every((X)=>X===null||this.isAssignable(X));case"AssignmentExpression":return J.operator==="=";case"ParenthesizedExpression":return this.isAssignable(J.expression);case"MemberExpression":case"OptionalMemberExpression":return!G;default:return!1}}toReferencedList(J,G){return J}toReferencedListDeep(J,G){this.toReferencedList(J,G);for(let X of J)if((X==null?void 0:X.type)==="ArrayExpression")this.toReferencedListDeep(X.elements)}parseSpread(J){let G=this.startNode();return this.next(),G.argument=this.parseMaybeAssignAllowIn(J,void 0),this.finishNode(G,"SpreadElement")}parseRestBinding(){let J=this.startNode();return this.next(),J.argument=this.parseBindingAtom(),this.finishNode(J,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let J=this.startNode();return this.next(),J.elements=this.parseBindingList(3,93,1),this.finishNode(J,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(J,G,X){let H=X&1,Z=[],V=!0;while(!this.eat(J)){if(V)V=!1;else this.expect(12);if(H&&this.match(12))Z.push(null);else if(this.eat(J))break;else if(this.match(21)){let Q=this.parseRestBinding();if(this.hasPlugin("flow")||X&2)Q=this.parseFunctionParamType(Q);if(Z.push(Q),!this.checkCommaAfterRest(G)){this.expect(J);break}}else{let Q=[];if(this.match(26)&&this.hasPlugin("decorators"))this.raise(D.UnsupportedParameterDecorator,this.state.startLoc);while(this.match(26))Q.push(this.parseDecorator());Z.push(this.parseAssignableListItem(X,Q))}}return Z}parseBindingRestProperty(J){return this.next(),J.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(J,"RestElement")}parseBindingProperty(){let{type:J,startLoc:G}=this.state;if(J===21)return this.parseBindingRestProperty(this.startNode());let X=this.startNode();if(J===138)this.expectPlugin("destructuringPrivate",G),this.classScope.usePrivateName(this.state.value,G),X.key=this.parsePrivateName();else this.parsePropertyName(X);return X.method=!1,this.parseObjPropValue(X,G,!1,!1,!0,!1)}parseAssignableListItem(J,G){let X=this.parseMaybeDefault();if(this.hasPlugin("flow")||J&2)this.parseFunctionParamType(X);let H=this.parseMaybeDefault(X.loc.start,X);if(G.length)X.decorators=G;return H}parseFunctionParamType(J){return J}parseMaybeDefault(J,G){var X,H;if((X=J)!=null||(J=this.state.startLoc),G=(H=G)!=null?H:this.parseBindingAtom(),!this.eat(29))return G;let Z=this.startNodeAt(J);return Z.left=G,Z.right=this.parseMaybeAssignAllowIn(),this.finishNode(Z,"AssignmentPattern")}isValidLVal(J,G,X){switch(J){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties"}return!1}isOptionalMemberExpression(J){return J.type==="OptionalMemberExpression"}checkLVal(J,G,X=64,H=!1,Z=!1,V=!1){var Q;let Y=J.type;if(this.isObjectMethod(J))return;let z=this.isOptionalMemberExpression(J);if(z||Y==="MemberExpression"){if(z){if(this.expectPlugin("optionalChainingAssign",J.loc.start),G.type!=="AssignmentExpression")this.raise(D.InvalidLhsOptionalChaining,J,{ancestor:G})}if(X!==64)this.raise(D.InvalidPropertyBindingPattern,J);return}if(Y==="Identifier"){this.checkIdentifier(J,X,Z);let{name:C}=J;if(H)if(H.has(C))this.raise(D.ParamDupe,J);else H.add(C);return}let W=this.isValidLVal(Y,!(V||(Q=J.extra)!=null&&Q.parenthesized)&&G.type==="AssignmentExpression",X);if(W===!0)return;if(W===!1){let C=X===64?D.InvalidLhs:D.InvalidLhsBinding;this.raise(C,J,{ancestor:G});return}let K,q;if(typeof W==="string")K=W,q=Y==="ParenthesizedExpression";else[K,q]=W;let f=Y==="ArrayPattern"||Y==="ObjectPattern"?{type:Y}:G,I=J[K];if(Array.isArray(I)){for(let C of I)if(C)this.checkLVal(C,f,X,H,Z,q)}else if(I)this.checkLVal(I,f,X,H,Z,q)}checkIdentifier(J,G,X=!1){if(this.state.strict&&(X?YU(J.name,this.inModule):QU(J.name)))if(G===64)this.raise(D.StrictEvalArguments,J,{referenceName:J.name});else this.raise(D.StrictEvalArgumentsBinding,J,{bindingName:J.name});if(G&8192&&J.name==="let")this.raise(D.LetInLexicalBinding,J);if(!(G&64))this.declareNameFromIdentifier(J,G)}declareNameFromIdentifier(J,G){this.scope.declareName(J.name,G,J.loc.start)}checkToRestConversion(J,G){switch(J.type){case"ParenthesizedExpression":this.checkToRestConversion(J.expression,G);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(G)break;default:this.raise(D.InvalidRestAssignmentPattern,J)}}checkCommaAfterRest(J){if(!this.match(12))return!1;return this.raise(this.lookaheadCharCode()===J?D.RestTrailingComma:D.ElementAfterRest,this.state.startLoc),!0}}function tW1(J){if(J==null)throw new Error(`Unexpected ${J} value.`);return J}function p$(J){if(!J)throw new Error("Assert fail")}var t=R0`typescript`({AbstractMethodHasImplementation:({methodName:J})=>`Method '${J}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:J})=>`Property '${J}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:J})=>`'declare' is not allowed in ${J}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:J})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:J})=>`Duplicate modifier: '${J}'.`,EmptyHeritageClauseType:({token:J})=>`'${J}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:J})=>`'${J[0]}' modifier cannot be used with '${J[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:J})=>`Index signatures cannot have an accessibility modifier ('${J}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:J})=>`'${J}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:J})=>`'${J}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:J})=>`'${J}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:J})=>`'${J[0]}' modifier must precede '${J[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:J})=>`Private elements cannot have an accessibility modifier ('${J}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:J})=>`Single type parameter ${J} should have a trailing comma. Example usage: <${J},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:J})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${J}.`});function J$1(J){switch(J){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function n$(J){return J==="private"||J==="public"||J==="protected"}function G$1(J){return J==="in"||J==="out"}var X$1=(J)=>class G extends J{constructor(...X){super(...X);this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:t.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:t.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:t.InvalidModifierOnTypeParameter})}getScopeHandler(){return SU}tsIsIdentifier(){return N1(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){if(this.next(),this.hasPrecedingLineBreak())return!1;return this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){if(this.match(106))return this.next(),this.tsTokenCanFollowModifier();return this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(X,H){if(!N1(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let Z=this.state.value;if(X.includes(Z)){if(H&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return Z}return}tsParseModifiers({allowedModifiers:X,disallowedModifiers:H,stopOnStartOfClassStaticBlock:Z,errorTemplate:V=t.InvalidModifierOnTypeMember},Q){let Y=(W,K,q,f)=>{if(K===q&&Q[f])this.raise(t.InvalidModifiersOrder,W,{orderedModifiers:[q,f]})},z=(W,K,q,f)=>{if(Q[q]&&K===f||Q[f]&&K===q)this.raise(t.IncompatibleModifiers,W,{modifiers:[q,f]})};for(;;){let{startLoc:W}=this.state,K=this.tsParseModifier(X.concat(H!=null?H:[]),Z);if(!K)break;if(n$(K))if(Q.accessibility)this.raise(t.DuplicateAccessibilityModifier,W,{modifier:K});else Y(W,K,K,"override"),Y(W,K,K,"static"),Y(W,K,K,"readonly"),Q.accessibility=K;else if(G$1(K)){if(Q[K])this.raise(t.DuplicateModifier,W,{modifier:K});Q[K]=!0,Y(W,K,"in","out")}else{if(hasOwnProperty.call(Q,K))this.raise(t.DuplicateModifier,W,{modifier:K});else Y(W,K,"static","readonly"),Y(W,K,"static","override"),Y(W,K,"override","readonly"),Y(W,K,"abstract","override"),z(W,K,"declare","override"),z(W,K,"static","abstract");Q[K]=!0}if(H!=null&&H.includes(K))this.raise(V,W,{modifier:K})}}tsIsListTerminator(X){switch(X){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(X,H){let Z=[];while(!this.tsIsListTerminator(X))Z.push(H());return Z}tsParseDelimitedList(X,H,Z){return tW1(this.tsParseDelimitedListWorker(X,H,!0,Z))}tsParseDelimitedListWorker(X,H,Z,V){let Q=[],Y=-1;for(;;){if(this.tsIsListTerminator(X))break;Y=-1;let z=H();if(z==null)return;if(Q.push(z),this.eat(12)){Y=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(X))break;if(Z)this.expect(12);return}if(V)V.value=Y;return Q}tsParseBracketedList(X,H,Z,V,Q){if(!V)if(Z)this.expect(0);else this.expect(47);let Y=this.tsParseDelimitedList(X,H,Q);if(Z)this.expect(3);else this.expect(48);return Y}tsParseImportType(){let X=this.startNode();if(this.expect(83),this.expect(10),!this.match(133))this.raise(t.UnsupportedImportTypeArgument,this.state.startLoc);if(X.argument=super.parseExprAtom(),this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))X.options=null;if(this.eat(12)){if(!this.hasPlugin("importAssertions"))this.expectPlugin("importAttributes");if(!this.match(11))X.options=super.parseMaybeAssignAllowIn(),this.eat(12)}if(this.expect(11),this.eat(16))X.qualifier=this.tsParseEntityName();if(this.match(47))X.typeParameters=this.tsParseTypeArguments();return this.finishNode(X,"TSImportType")}tsParseEntityName(X=!0){let H=this.parseIdentifier(X);while(this.eat(16)){let Z=this.startNodeAtNode(H);Z.left=H,Z.right=this.parseIdentifier(X),H=this.finishNode(Z,"TSQualifiedName")}return H}tsParseTypeReference(){let X=this.startNode();if(X.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47))X.typeParameters=this.tsParseTypeArguments();return this.finishNode(X,"TSTypeReference")}tsParseThisTypePredicate(X){this.next();let H=this.startNodeAtNode(X);return H.parameterName=X,H.typeAnnotation=this.tsParseTypeAnnotation(!1),H.asserts=!1,this.finishNode(H,"TSTypePredicate")}tsParseThisTypeNode(){let X=this.startNode();return this.next(),this.finishNode(X,"TSThisType")}tsParseTypeQuery(){let X=this.startNode();if(this.expect(87),this.match(83))X.exprName=this.tsParseImportType();else X.exprName=this.tsParseEntityName();if(!this.hasPrecedingLineBreak()&&this.match(47))X.typeParameters=this.tsParseTypeArguments();return this.finishNode(X,"TSTypeQuery")}tsParseTypeParameter(X){let H=this.startNode();return X(H),H.name=this.tsParseTypeParameterName(),H.constraint=this.tsEatThenParseType(81),H.default=this.tsEatThenParseType(29),this.finishNode(H,"TSTypeParameter")}tsTryParseTypeParameters(X){if(this.match(47))return this.tsParseTypeParameters(X)}tsParseTypeParameters(X){let H=this.startNode();if(this.match(47)||this.match(142))this.next();else this.unexpected();let Z={value:-1};if(H.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,X),!1,!0,Z),H.params.length===0)this.raise(t.EmptyTypeParameters,H);if(Z.value!==-1)this.addExtra(H,"trailingComma",Z.value);return this.finishNode(H,"TSTypeParameterDeclaration")}tsFillSignature(X,H){let Z=X===19,V="parameters",Q="typeAnnotation";if(H.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),H.parameters=this.tsParseBindingListForSignature(),Z)H.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(X);else if(this.match(X))H.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(X)}tsParseBindingListForSignature(){let X=super.parseBindingList(11,41,2);for(let H of X){let{type:Z}=H;if(Z==="AssignmentPattern"||Z==="TSParameterProperty")this.raise(t.UnsupportedSignatureParameterKind,H,{type:Z})}return X}tsParseTypeMemberSemicolon(){if(!this.eat(12)&&!this.isLineTerminator())this.expect(13)}tsParseSignatureMember(X,H){return this.tsFillSignature(14,H),this.tsParseTypeMemberSemicolon(),this.finishNode(H,X)}tsIsUnambiguouslyIndexSignature(){if(this.next(),N1(this.state.type))return this.next(),this.match(14);return!1}tsTryParseIndexSignature(X){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let H=this.parseIdentifier();H.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(H),this.expect(3),X.parameters=[H];let Z=this.tsTryParseTypeAnnotation();if(Z)X.typeAnnotation=Z;return this.tsParseTypeMemberSemicolon(),this.finishNode(X,"TSIndexSignature")}tsParsePropertyOrMethodSignature(X,H){if(this.eat(17))X.optional=!0;let Z=X;if(this.match(10)||this.match(47)){if(H)this.raise(t.ReadonlyForMethodSignature,X);let V=Z;if(V.kind&&this.match(47))this.raise(t.AccessorCannotHaveTypeParameters,this.state.curPosition());this.tsFillSignature(14,V),this.tsParseTypeMemberSemicolon();let Q="parameters",Y="typeAnnotation";if(V.kind==="get"){if(V[Q].length>0){if(this.raise(D.BadGetterArity,this.state.curPosition()),this.isThisParam(V[Q][0]))this.raise(t.AccessorCannotDeclareThisParameter,this.state.curPosition())}}else if(V.kind==="set"){if(V[Q].length!==1)this.raise(D.BadSetterArity,this.state.curPosition());else{let z=V[Q][0];if(this.isThisParam(z))this.raise(t.AccessorCannotDeclareThisParameter,this.state.curPosition());if(z.type==="Identifier"&&z.optional)this.raise(t.SetAccessorCannotHaveOptionalParameter,this.state.curPosition());if(z.type==="RestElement")this.raise(t.SetAccessorCannotHaveRestParameter,this.state.curPosition())}if(V[Y])this.raise(t.SetAccessorCannotHaveReturnType,V[Y])}else V.kind="method";return this.finishNode(V,"TSMethodSignature")}else{let V=Z;if(H)V.readonly=!0;let Q=this.tsTryParseTypeAnnotation();if(Q)V.typeAnnotation=Q;return this.tsParseTypeMemberSemicolon(),this.finishNode(V,"TSPropertySignature")}}tsParseTypeMember(){let X=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",X);if(this.match(77)){let Z=this.startNode();if(this.next(),this.match(10)||this.match(47))return this.tsParseSignatureMember("TSConstructSignatureDeclaration",X);else return X.key=this.createIdentifier(Z,"new"),this.tsParsePropertyOrMethodSignature(X,!1)}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},X);let H=this.tsTryParseIndexSignature(X);if(H)return H;if(super.parsePropertyName(X),!X.computed&&X.key.type==="Identifier"&&(X.key.name==="get"||X.key.name==="set")&&this.tsTokenCanFollowModifier())X.kind=X.key.name,super.parsePropertyName(X);return this.tsParsePropertyOrMethodSignature(X,!!X.readonly)}tsParseTypeLiteral(){let X=this.startNode();return X.members=this.tsParseObjectTypeMembers(),this.finishNode(X,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let X=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),X}tsIsStartOfMappedType(){if(this.next(),this.eat(53))return this.isContextual(122);if(this.isContextual(122))this.next();if(!this.match(0))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(58)}tsParseMappedType(){let X=this.startNode();if(this.expect(5),this.match(53))X.readonly=this.state.value,this.next(),this.expectContextual(122);else if(this.eatContextual(122))X.readonly=!0;this.expect(0);{let H=this.startNode();H.name=this.tsParseTypeParameterName(),H.constraint=this.tsExpectThenParseType(58),X.typeParameter=this.finishNode(H,"TSTypeParameter")}if(X.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53))X.optional=this.state.value,this.next(),this.expect(17);else if(this.eat(17))X.optional=!0;return X.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(X,"TSMappedType")}tsParseTupleType(){let X=this.startNode();X.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let H=!1;return X.elementTypes.forEach((Z)=>{let{type:V}=Z;if(H&&V!=="TSRestType"&&V!=="TSOptionalType"&&!(V==="TSNamedTupleMember"&&Z.optional))this.raise(t.OptionalTypeBeforeRequired,Z);H||(H=V==="TSNamedTupleMember"&&Z.optional||V==="TSOptionalType")}),this.finishNode(X,"TSTupleType")}tsParseTupleElementType(){let{startLoc:X}=this.state,H=this.eat(21),Z,V,Q,Y,W=x2(this.state.type)?this.lookaheadCharCode():null;if(W===58)Z=!0,Q=!1,V=this.parseIdentifier(!0),this.expect(14),Y=this.tsParseType();else if(W===63){Q=!0;let K=this.state.startLoc,q=this.state.value,f=this.tsParseNonArrayType();if(this.lookaheadCharCode()===58)Z=!0,V=this.createIdentifier(this.startNodeAt(K),q),this.expect(17),this.expect(14),Y=this.tsParseType();else Z=!1,Y=f,this.expect(17)}else Y=this.tsParseType(),Q=this.eat(17),Z=this.eat(14);if(Z){let K;if(V){if(K=this.startNodeAtNode(V),K.optional=Q,K.label=V,K.elementType=Y,this.eat(17))K.optional=!0,this.raise(t.TupleOptionalAfterType,this.state.lastTokStartLoc)}else K=this.startNodeAtNode(Y),K.optional=Q,this.raise(t.InvalidTupleMemberLabel,Y),K.label=Y,K.elementType=this.tsParseType();Y=this.finishNode(K,"TSNamedTupleMember")}else if(Q){let K=this.startNodeAtNode(Y);K.typeAnnotation=Y,Y=this.finishNode(K,"TSOptionalType")}if(H){let K=this.startNodeAt(X);K.typeAnnotation=Y,Y=this.finishNode(K,"TSRestType")}return Y}tsParseParenthesizedType(){let X=this.startNode();return this.expect(10),X.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(X,"TSParenthesizedType")}tsParseFunctionOrConstructorType(X,H){let Z=this.startNode();if(X==="TSConstructorType"){if(Z.abstract=!!H,H)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,Z)),this.finishNode(Z,X)}tsParseLiteralTypeNode(){let X=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:X.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(X,"TSLiteralType")}tsParseTemplateLiteralType(){let X=this.startNode();return X.literal=super.parseTemplate(!1),this.finishNode(X,"TSLiteralType")}parseTemplateSubstitution(){if(this.state.inType)return this.tsParseType();return super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let X=this.tsParseThisTypeNode();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(X);else return X}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let X=this.startNode(),H=this.lookahead();if(H.type!==134&&H.type!==135)this.unexpected();return X.literal=this.parseMaybeUnary(),this.finishNode(X,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:X}=this.state;if(N1(X)||X===88||X===84){let H=X===88?"TSVoidKeyword":X===84?"TSNullKeyword":J$1(this.state.value);if(H!==void 0&&this.lookaheadCharCode()!==46){let Z=this.startNode();return this.next(),this.finishNode(Z,H)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let X=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(0))if(this.match(3)){let H=this.startNodeAtNode(X);H.elementType=X,this.expect(3),X=this.finishNode(H,"TSArrayType")}else{let H=this.startNodeAtNode(X);H.objectType=X,H.indexType=this.tsParseType(),this.expect(3),X=this.finishNode(H,"TSIndexedAccessType")}return X}tsParseTypeOperator(){let X=this.startNode(),H=this.state.value;if(this.next(),X.operator=H,X.typeAnnotation=this.tsParseTypeOperatorOrHigher(),H==="readonly")this.tsCheckTypeAnnotationForReadOnly(X);return this.finishNode(X,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(X){switch(X.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(t.UnexpectedReadonly,X)}}tsParseInferType(){let X=this.startNode();this.expectContextual(115);let H=this.startNode();return H.name=this.tsParseTypeParameterName(),H.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),X.typeParameter=this.finishNode(H,"TSTypeParameter"),this.finishNode(X,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let X=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return X}}tsParseTypeOperatorOrHigher(){return DW1(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(X,H,Z){let V=this.startNode(),Q=this.eat(Z),Y=[];do Y.push(H());while(this.eat(Z));if(Y.length===1&&!Q)return Y[0];return V.types=Y,this.finishNode(V,X)}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){if(this.match(47))return!0;return this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(N1(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:X}=this.state,H=X.length;try{return this.parseObjectLike(8,!0),X.length===H}catch(Z){return!1}}if(this.match(0)){this.next();let{errors:X}=this.state,H=X.length;try{return super.parseBindingList(3,93,1),X.length===H}catch(Z){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)){if(this.next(),this.match(19))return!0}}return!1}tsParseTypeOrTypePredicateAnnotation(X){return this.tsInType(()=>{let H=this.startNode();this.expect(X);let Z=this.startNode(),V=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(V&&this.match(78)){let z=this.tsParseThisTypeOrThisTypePredicate();if(z.type==="TSThisType")Z.parameterName=z,Z.asserts=!0,Z.typeAnnotation=null,z=this.finishNode(Z,"TSTypePredicate");else this.resetStartLocationFromNode(z,Z),z.asserts=!0;return H.typeAnnotation=z,this.finishNode(H,"TSTypeAnnotation")}let Q=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!Q){if(!V)return this.tsParseTypeAnnotation(!1,H);return Z.parameterName=this.parseIdentifier(),Z.asserts=V,Z.typeAnnotation=null,H.typeAnnotation=this.finishNode(Z,"TSTypePredicate"),this.finishNode(H,"TSTypeAnnotation")}let Y=this.tsParseTypeAnnotation(!1);return Z.parameterName=Q,Z.typeAnnotation=Y,Z.asserts=V,H.typeAnnotation=this.finishNode(Z,"TSTypePredicate"),this.finishNode(H,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let X=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),X}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let X=this.state.containsEsc;if(this.next(),!N1(this.state.type)&&!this.match(78))return!1;if(X)this.raise(D.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"});return!0}tsParseTypeAnnotation(X=!0,H=this.startNode()){return this.tsInType(()=>{if(X)this.expect(14);H.typeAnnotation=this.tsParseType()}),this.finishNode(H,"TSTypeAnnotation")}tsParseType(){p$(this.state.inType);let X=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return X;let H=this.startNodeAtNode(X);return H.checkType=X,H.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),H.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),H.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(H,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(77))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){if(this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(t.ReservedTypeAssertion,this.state.startLoc);let X=this.startNode();return X.typeAnnotation=this.tsInType(()=>{return this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()}),this.expect(48),X.expression=this.parseMaybeUnary(),this.finishNode(X,"TSTypeAssertion")}tsParseHeritageClause(X){let H=this.state.startLoc,Z=this.tsParseDelimitedList("HeritageClauseElement",()=>{let V=this.startNode();if(V.expression=this.tsParseEntityName(),this.match(47))V.typeParameters=this.tsParseTypeArguments();return this.finishNode(V,"TSExpressionWithTypeArguments")});if(!Z.length)this.raise(t.EmptyHeritageClauseType,H,{token:X});return Z}tsParseInterfaceDeclaration(X,H={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual(129),H.declare)X.declare=!0;if(N1(this.state.type))X.id=this.parseIdentifier(),this.checkIdentifier(X.id,130);else X.id=null,this.raise(t.MissingInterfaceName,this.state.startLoc);if(X.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81))X.extends=this.tsParseHeritageClause("extends");let Z=this.startNode();return Z.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),X.body=this.finishNode(Z,"TSInterfaceBody"),this.finishNode(X,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(X){return X.id=this.parseIdentifier(),this.checkIdentifier(X.id,2),X.typeAnnotation=this.tsInType(()=>{if(X.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){let H=this.startNode();return this.next(),this.finishNode(H,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(X,"TSTypeAliasDeclaration")}tsInNoContext(X){let H=this.state.context;this.state.context=[H[0]];try{return X()}finally{this.state.context=H}}tsInType(X){let H=this.state.inType;this.state.inType=!0;try{return X()}finally{this.state.inType=H}}tsInDisallowConditionalTypesContext(X){let H=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return X()}finally{this.state.inDisallowConditionalTypesContext=H}}tsInAllowConditionalTypesContext(X){let H=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return X()}finally{this.state.inDisallowConditionalTypesContext=H}}tsEatThenParseType(X){if(this.match(X))return this.tsNextThenParseType()}tsExpectThenParseType(X){return this.tsInType(()=>{return this.expect(X),this.tsParseType()})}tsNextThenParseType(){return this.tsInType(()=>{return this.next(),this.tsParseType()})}tsParseEnumMember(){let X=this.startNode();if(X.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29))X.initializer=super.parseMaybeAssignAllowIn();return this.finishNode(X,"TSEnumMember")}tsParseEnumDeclaration(X,H={}){if(H.const)X.const=!0;if(H.declare)X.declare=!0;return this.expectContextual(126),X.id=this.parseIdentifier(),this.checkIdentifier(X.id,X.const?8971:8459),this.expect(5),X.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(X,"TSEnumDeclaration")}tsParseModuleBlock(){let X=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(X.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(X,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(X,H=!1){if(X.id=this.parseIdentifier(),!H)this.checkIdentifier(X.id,1024);if(this.eat(16)){let Z=this.startNode();this.tsParseModuleOrNamespaceDeclaration(Z,!0),X.body=Z}else this.scope.enter(256),this.prodParam.enter(0),X.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(X,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(X){if(this.isContextual(112))X.global=!0,X.id=this.parseIdentifier();else if(this.match(133))X.id=super.parseStringLiteral(this.state.value);else this.unexpected();if(this.match(5))this.scope.enter(256),this.prodParam.enter(0),X.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();else this.semicolon();return this.finishNode(X,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(X,H,Z){X.isExport=Z||!1,X.id=H||this.parseIdentifier(),this.checkIdentifier(X.id,4096),this.expect(29);let V=this.tsParseModuleReference();if(X.importKind==="type"&&V.type!=="TSExternalModuleReference")this.raise(t.ImportAliasHasImportType,V);return X.moduleReference=V,this.semicolon(),this.finishNode(X,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let X=this.startNode();if(this.expectContextual(119),this.expect(10),!this.match(133))this.unexpected();return X.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(X,"TSExternalModuleReference")}tsLookAhead(X){let H=this.state.clone(),Z=X();return this.state=H,Z}tsTryParseAndCatch(X){let H=this.tryParse((Z)=>X()||Z());if(H.aborted||!H.node)return;if(H.error)this.state=H.failState;return H.node}tsTryParse(X){let H=this.state.clone(),Z=X();if(Z!==void 0&&Z!==!1)return Z;this.state=H}tsTryParseDeclare(X){if(this.isLineTerminator())return;let H=this.state.type,Z;if(this.isContextual(100))H=74,Z="let";return this.tsInAmbientContext(()=>{switch(H){case 68:return X.declare=!0,super.parseFunctionStatement(X,!1,!1);case 80:return X.declare=!0,this.parseClass(X,!0,!1);case 126:return this.tsParseEnumDeclaration(X,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(X);case 75:case 74:if(!this.match(75)||!this.isLookaheadContextual("enum"))return X.declare=!0,this.parseVarStatement(X,Z||this.state.value,!0);return this.expect(75),this.tsParseEnumDeclaration(X,{const:!0,declare:!0});case 129:{let V=this.tsParseInterfaceDeclaration(X,{declare:!0});if(V)return V}default:if(N1(H))return this.tsParseDeclaration(X,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(X,H,Z){switch(H.name){case"declare":{let V=this.tsTryParseDeclare(X);if(V)V.declare=!0;return V}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let V=X;return V.global=!0,V.id=H,V.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(V,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(X,H.name,!1,Z)}}tsParseDeclaration(X,H,Z,V){switch(H){case"abstract":if(this.tsCheckLineTerminator(Z)&&(this.match(80)||N1(this.state.type)))return this.tsParseAbstractDeclaration(X,V);break;case"module":if(this.tsCheckLineTerminator(Z)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(X);else if(N1(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(X)}break;case"namespace":if(this.tsCheckLineTerminator(Z)&&N1(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(X);break;case"type":if(this.tsCheckLineTerminator(Z)&&N1(this.state.type))return this.tsParseTypeAliasDeclaration(X);break}}tsCheckLineTerminator(X){if(X){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(X){if(!this.match(47))return;let H=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let Z=this.tsTryParseAndCatch(()=>{let V=this.startNodeAt(X);return V.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(V),V.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),V});if(this.state.maybeInArrowParameters=H,!Z)return;return super.parseArrowExpression(Z,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==47)return;return this.tsParseTypeArguments()}tsParseTypeArguments(){let X=this.startNode();if(X.params=this.tsInType(()=>this.tsInNoContext(()=>{return this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),X.params.length===0)this.raise(t.EmptyTypeArguments,X);else if(!this.state.inType&&this.curContext()===v1.brace)this.reScan_lt_gt();return this.expect(48),this.finishNode(X,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return AW1(this.state.type)}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;return super.isExportDefaultSpecifier()}parseAssignableListItem(X,H){let Z=this.state.startLoc,V={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},V);let{accessibility:Q,override:Y,readonly:z}=V;if(!(X&4)&&(Q||z||Y))this.raise(t.UnexpectedParameterModifier,Z);let W=this.parseMaybeDefault();if(X&2)this.parseFunctionParamType(W);let K=this.parseMaybeDefault(W.loc.start,W);if(Q||z||Y){let q=this.startNodeAt(Z);if(H.length)q.decorators=H;if(Q)q.accessibility=Q;if(z)q.readonly=z;if(Y)q.override=Y;if(K.type!=="Identifier"&&K.type!=="AssignmentPattern")this.raise(t.UnsupportedParameterPropertyKind,q);return q.parameter=K,this.finishNode(q,"TSParameterProperty")}if(H.length)W.decorators=H;return K}isSimpleParameter(X){return X.type==="TSParameterProperty"&&super.isSimpleParameter(X.parameter)||super.isSimpleParameter(X)}tsDisallowOptionalPattern(X){for(let H of X.params)if(H.type!=="Identifier"&&H.optional&&!this.state.isAmbientContext)this.raise(t.PatternIsOptional,H)}setArrowFunctionParameters(X,H,Z){super.setArrowFunctionParameters(X,H,Z),this.tsDisallowOptionalPattern(X)}parseFunctionBodyAndFinish(X,H,Z=!1){if(this.match(14))X.returnType=this.tsParseTypeOrTypePredicateAnnotation(14);let V=H==="FunctionDeclaration"?"TSDeclareFunction":H==="ClassMethod"||H==="ClassPrivateMethod"?"TSDeclareMethod":void 0;if(V&&!this.match(5)&&this.isLineTerminator())return this.finishNode(X,V);if(V==="TSDeclareFunction"&&this.state.isAmbientContext){if(this.raise(t.DeclareFunctionHasImplementation,X),X.declare)return super.parseFunctionBodyAndFinish(X,V,Z)}return this.tsDisallowOptionalPattern(X),super.parseFunctionBodyAndFinish(X,H,Z)}registerFunctionStatementId(X){if(!X.body&&X.id)this.checkIdentifier(X.id,1024);else super.registerFunctionStatementId(X)}tsCheckForInvalidTypeCasts(X){X.forEach((H)=>{if((H==null?void 0:H.type)==="TSTypeCastExpression")this.raise(t.UnexpectedTypeAnnotation,H.typeAnnotation)})}toReferencedList(X,H){return this.tsCheckForInvalidTypeCasts(X),X}parseArrayLike(X,H,Z,V){let Q=super.parseArrayLike(X,H,Z,V);if(Q.type==="ArrayExpression")this.tsCheckForInvalidTypeCasts(Q.elements);return Q}parseSubscript(X,H,Z,V){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let Y=this.startNodeAt(H);return Y.expression=X,this.finishNode(Y,"TSNonNullExpression")}let Q=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(Z)return V.stop=!0,X;V.optionalChainMember=Q=!0,this.next()}if(this.match(47)||this.match(51)){let Y,z=this.tsTryParseAndCatch(()=>{if(!Z&&this.atPossibleAsyncArrow(X)){let f=this.tsTryParseGenericAsyncArrowFunction(H);if(f)return f}let W=this.tsParseTypeArgumentsInExpression();if(!W)return;if(Q&&!this.match(10)){Y=this.state.curPosition();return}if(lJ(this.state.type)){let f=super.parseTaggedTemplateExpression(X,H,V);return f.typeParameters=W,f}if(!Z&&this.eat(10)){let f=this.startNodeAt(H);if(f.callee=X,f.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(f.arguments),f.typeParameters=W,V.optionalChainMember)f.optional=Q;return this.finishCallExpression(f,V.optionalChainMember)}let K=this.state.type;if(K===48||K===52||K!==10&&v7(K)&&!this.hasPrecedingLineBreak())return;let q=this.startNodeAt(H);return q.expression=X,q.typeParameters=W,this.finishNode(q,"TSInstantiationExpression")});if(Y)this.unexpected(Y,10);if(z){if(z.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40))this.raise(t.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc);return z}}return super.parseSubscript(X,H,Z,V)}parseNewCallee(X){var H;super.parseNewCallee(X);let{callee:Z}=X;if(Z.type==="TSInstantiationExpression"&&!((H=Z.extra)!=null&&H.parenthesized))X.typeParameters=Z.typeParameters,X.callee=Z.expression}parseExprOp(X,H,Z){let V;if(mJ(58)>Z&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(V=this.isContextual(120)))){let Q=this.startNodeAt(H);return Q.expression=X,Q.typeAnnotation=this.tsInType(()=>{if(this.next(),this.match(75)){if(V)this.raise(D.UnexpectedKeyword,this.state.startLoc,{keyword:"const"});return this.tsParseTypeReference()}return this.tsParseType()}),this.finishNode(Q,V?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(Q,H,Z)}return super.parseExprOp(X,H,Z)}checkReservedWord(X,H,Z,V){if(!this.state.isAmbientContext)super.checkReservedWord(X,H,Z,V)}checkImportReflection(X){if(super.checkImportReflection(X),X.module&&X.importKind!=="value")this.raise(t.ImportReflectionHasImportType,X.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(X){if(super.isPotentialImportPhase(X))return!0;if(this.isContextual(130)){let H=this.lookaheadCharCode();return X?H===123||H===42:H!==61}return!X&&this.isContextual(87)}applyImportPhase(X,H,Z,V){if(super.applyImportPhase(X,H,Z,V),H)X.exportKind=Z==="type"?"type":"value";else X.importKind=Z==="type"||Z==="typeof"?Z:"value"}parseImport(X){if(this.match(133))return X.importKind="value",super.parseImport(X);let H;if(N1(this.state.type)&&this.lookaheadCharCode()===61)return X.importKind="value",this.tsParseImportEqualsDeclaration(X);else if(this.isContextual(130)){let Z=this.parseMaybeImportPhase(X,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(X,Z);else H=super.parseImportSpecifiersAndAfter(X,Z)}else H=super.parseImport(X);if(H.importKind==="type"&&H.specifiers.length>1&&H.specifiers[0].type==="ImportDefaultSpecifier")this.raise(t.TypeImportCannotSpecifyDefaultAndNamed,H);return H}parseExport(X,H){if(this.match(83)){this.next();let Z=X,V=null;if(this.isContextual(130)&&this.isPotentialImportPhase(!1))V=this.parseMaybeImportPhase(Z,!1);else Z.importKind="value";return this.tsParseImportEqualsDeclaration(Z,V,!0)}else if(this.eat(29)){let Z=X;return Z.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(Z,"TSExportAssignment")}else if(this.eatContextual(93)){let Z=X;return this.expectContextual(128),Z.id=this.parseIdentifier(),this.semicolon(),this.finishNode(Z,"TSNamespaceExportDeclaration")}else return super.parseExport(X,H)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let X=this.startNode();return this.next(),X.abstract=!0,this.parseClass(X,!0,!0)}if(this.match(129)){let X=this.tsParseInterfaceDeclaration(this.startNode());if(X)return X}return super.parseExportDefaultExpression()}parseVarStatement(X,H,Z=!1){let{isAmbientContext:V}=this.state,Q=super.parseVarStatement(X,H,Z||V);if(!V)return Q;for(let{id:Y,init:z}of Q.declarations){if(!z)continue;if(H!=="const"||!!Y.typeAnnotation)this.raise(t.InitializerNotAllowedInAmbientContext,z);else if(!Z$1(z,this.hasPlugin("estree")))this.raise(t.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,z)}return Q}parseStatementContent(X,H){if(this.match(75)&&this.isLookaheadContextual("enum")){let Z=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(Z,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let Z=this.tsParseInterfaceDeclaration(this.startNode());if(Z)return Z}return super.parseStatementContent(X,H)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(X,H){return H.some((Z)=>{if(n$(Z))return X.accessibility===Z;return!!X[Z]})}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(X,H,Z){let V=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:V,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:t.InvalidModifierOnTypeParameterPositions},H);let Q=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(H,V))this.raise(t.StaticBlockCannotHaveModifier,this.state.curPosition());super.parseClassStaticBlock(X,H)}else this.parseClassMemberWithIsStatic(X,H,Z,!!H.static)};if(H.declare)this.tsInAmbientContext(Q);else Q()}parseClassMemberWithIsStatic(X,H,Z,V){let Q=this.tsTryParseIndexSignature(H);if(Q){if(X.body.push(Q),H.abstract)this.raise(t.IndexSignatureHasAbstract,H);if(H.accessibility)this.raise(t.IndexSignatureHasAccessibility,H,{modifier:H.accessibility});if(H.declare)this.raise(t.IndexSignatureHasDeclare,H);if(H.override)this.raise(t.IndexSignatureHasOverride,H);return}if(!this.state.inAbstractClass&&H.abstract)this.raise(t.NonAbstractClassHasAbstractMethod,H);if(H.override){if(!Z.hadSuperClass)this.raise(t.OverrideNotInSubClass,H)}super.parseClassMemberWithIsStatic(X,H,Z,V)}parsePostMemberNameModifiers(X){if(this.eat(17))X.optional=!0;if(X.readonly&&this.match(10))this.raise(t.ClassMethodHasReadonly,X);if(X.declare&&this.match(10))this.raise(t.ClassMethodHasDeclare,X)}parseExpressionStatement(X,H,Z){return(H.type==="Identifier"?this.tsParseExpressionStatement(X,H,Z):void 0)||super.parseExpressionStatement(X,H,Z)}shouldParseExportDeclaration(){if(this.tsIsDeclarationStart())return!0;return super.shouldParseExportDeclaration()}parseConditional(X,H,Z){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(X,H,Z);let V=this.tryParse(()=>super.parseConditional(X,H));if(!V.node){if(V.error)super.setOptionalParametersError(Z,V.error);return X}if(V.error)this.state=V.failState;return V.node}parseParenItem(X,H){let Z=super.parseParenItem(X,H);if(this.eat(17))Z.optional=!0,this.resetEndLocation(X);if(this.match(14)){let V=this.startNodeAt(H);return V.expression=X,V.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(V,"TSTypeCastExpression")}return X}parseExportDeclaration(X){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(X));let H=this.state.startLoc,Z=this.eatContextual(125);if(Z&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(t.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let Q=N1(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(X);if(!Q)return null;if(Q.type==="TSInterfaceDeclaration"||Q.type==="TSTypeAliasDeclaration"||Z)X.exportKind="type";if(Z)this.resetStartLocation(Q,H),Q.declare=!0;return Q}parseClassId(X,H,Z,V){if((!H||Z)&&this.isContextual(113))return;super.parseClassId(X,H,Z,X.declare?1024:8331);let Q=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(Q)X.typeParameters=Q}parseClassPropertyAnnotation(X){if(!X.optional){if(this.eat(35))X.definite=!0;else if(this.eat(17))X.optional=!0}let H=this.tsTryParseTypeAnnotation();if(H)X.typeAnnotation=H}parseClassProperty(X){if(this.parseClassPropertyAnnotation(X),this.state.isAmbientContext&&!(X.readonly&&!X.typeAnnotation)&&this.match(29))this.raise(t.DeclareClassFieldHasInitializer,this.state.startLoc);if(X.abstract&&this.match(29)){let{key:H}=X;this.raise(t.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:H.type==="Identifier"&&!X.computed?H.name:`[${this.input.slice(H.start,H.end)}]`})}return super.parseClassProperty(X)}parseClassPrivateProperty(X){if(X.abstract)this.raise(t.PrivateElementHasAbstract,X);if(X.accessibility)this.raise(t.PrivateElementHasAccessibility,X,{modifier:X.accessibility});return this.parseClassPropertyAnnotation(X),super.parseClassPrivateProperty(X)}parseClassAccessorProperty(X){if(this.parseClassPropertyAnnotation(X),X.optional)this.raise(t.AccessorCannotBeOptional,X);return super.parseClassAccessorProperty(X)}pushClassMethod(X,H,Z,V,Q,Y){let z=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(z&&Q)this.raise(t.ConstructorHasTypeParameters,z);let{declare:W=!1,kind:K}=H;if(W&&(K==="get"||K==="set"))this.raise(t.DeclareAccessor,H,{kind:K});if(z)H.typeParameters=z;super.pushClassMethod(X,H,Z,V,Q,Y)}pushClassPrivateMethod(X,H,Z,V){let Q=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(Q)H.typeParameters=Q;super.pushClassPrivateMethod(X,H,Z,V)}declareClassPrivateMethodInScope(X,H){if(X.type==="TSDeclareMethod")return;if(X.type==="MethodDefinition"&&!hasOwnProperty.call(X.value,"body"))return;super.declareClassPrivateMethodInScope(X,H)}parseClassSuper(X){if(super.parseClassSuper(X),X.superClass&&(this.match(47)||this.match(51)))X.superTypeParameters=this.tsParseTypeArgumentsInExpression();if(this.eatContextual(113))X.implements=this.tsParseHeritageClause("implements")}parseObjPropValue(X,H,Z,V,Q,Y,z){let W=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(W)X.typeParameters=W;return super.parseObjPropValue(X,H,Z,V,Q,Y,z)}parseFunctionParams(X,H){let Z=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(Z)X.typeParameters=Z;super.parseFunctionParams(X,H)}parseVarId(X,H){if(super.parseVarId(X,H),X.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35))X.definite=!0;let Z=this.tsTryParseTypeAnnotation();if(Z)X.id.typeAnnotation=Z,this.resetEndLocation(X.id)}parseAsyncArrowFromCallExpression(X,H){if(this.match(14))X.returnType=this.tsParseTypeAnnotation();return super.parseAsyncArrowFromCallExpression(X,H)}parseMaybeAssign(X,H){var Z,V,Q,Y,z;let W,K,q;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(W=this.state.clone(),K=this.tryParse(()=>super.parseMaybeAssign(X,H),W),!K.error)return K.node;let{context:C}=this.state,x=C[C.length-1];if(x===v1.j_oTag||x===v1.j_expr)C.pop()}if(!((Z=K)!=null&&Z.error)&&!this.match(47))return super.parseMaybeAssign(X,H);if(!W||W===this.state)W=this.state.clone();let f,I=this.tryParse((C)=>{var x,O;f=this.tsParseTypeParameters(this.tsParseConstModifier);let v=super.parseMaybeAssign(X,H);if(v.type!=="ArrowFunctionExpression"||(x=v.extra)!=null&&x.parenthesized)C();if(((O=f)==null?void 0:O.params.length)!==0)this.resetStartLocationFromNode(v,f);return v.typeParameters=f,v},W);if(!I.error&&!I.aborted){if(f)this.reportReservedArrowTypeParam(f);return I.node}if(!K){if(p$(!this.hasPlugin("jsx")),q=this.tryParse(()=>super.parseMaybeAssign(X,H),W),!q.error)return q.node}if((V=K)!=null&&V.node)return this.state=K.failState,K.node;if(I.node){if(this.state=I.failState,f)this.reportReservedArrowTypeParam(f);return I.node}if((Q=q)!=null&&Q.node)return this.state=q.failState,q.node;throw((Y=K)==null?void 0:Y.error)||I.error||((z=q)==null?void 0:z.error)}reportReservedArrowTypeParam(X){var H;if(X.params.length===1&&!X.params[0].constraint&&!((H=X.extra)!=null&&H.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(t.ReservedArrowTypeParam,X)}parseMaybeUnary(X,H){if(!this.hasPlugin("jsx")&&this.match(47))return this.tsParseTypeAssertion();return super.parseMaybeUnary(X,H)}parseArrow(X){if(this.match(14)){let H=this.tryParse((Z)=>{let V=this.tsParseTypeOrTypePredicateAnnotation(14);if(this.canInsertSemicolon()||!this.match(19))Z();return V});if(H.aborted)return;if(!H.thrown){if(H.error)this.state=H.failState;X.returnType=H.node}}return super.parseArrow(X)}parseFunctionParamType(X){if(this.eat(17))X.optional=!0;let H=this.tsTryParseTypeAnnotation();if(H)X.typeAnnotation=H;return this.resetEndLocation(X),X}isAssignable(X,H){switch(X.type){case"TSTypeCastExpression":return this.isAssignable(X.expression,H);case"TSParameterProperty":return!0;default:return super.isAssignable(X,H)}}toAssignable(X,H=!1){switch(X.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(X,H);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(H)this.expressionScope.recordArrowParameterBindingError(t.UnexpectedTypeCastInParameter,X);else this.raise(t.UnexpectedTypeCastInParameter,X);this.toAssignable(X.expression,H);break;case"AssignmentExpression":if(!H&&X.left.type==="TSTypeCastExpression")X.left=this.typeCastToParameter(X.left);default:super.toAssignable(X,H)}}toAssignableParenthesizedExpression(X,H){switch(X.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(X.expression,H);break;default:super.toAssignable(X,H)}}checkToRestConversion(X,H){switch(X.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(X.expression,!1);break;default:super.checkToRestConversion(X,H)}}isValidLVal(X,H,Z){switch(X){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":case"TSInstantiationExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(Z!==64||!H)&&["expression",!0];default:return super.isValidLVal(X,H,Z)}}parseBindingAtom(){if(this.state.type===78)return this.parseIdentifier(!0);return super.parseBindingAtom()}parseMaybeDecoratorArguments(X){if(this.match(47)||this.match(51)){let H=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let Z=super.parseMaybeDecoratorArguments(X);return Z.typeParameters=H,Z}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(X)}checkCommaAfterRest(X){if(this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===X)return this.next(),!1;return super.checkCommaAfterRest(X)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(X,H){let Z=super.parseMaybeDefault(X,H);if(Z.type==="AssignmentPattern"&&Z.typeAnnotation&&Z.right.start<Z.typeAnnotation.start)this.raise(t.TypeAnnotationAfterAssign,Z.typeAnnotation);return Z}getTokenFromCode(X){if(this.state.inType){if(X===62){this.finishOp(48,1);return}if(X===60){this.finishOp(47,1);return}}super.getTokenFromCode(X)}reScan_lt_gt(){let{type:X}=this.state;if(X===47)this.state.pos-=1,this.readToken_lt();else if(X===48)this.state.pos-=1,this.readToken_gt()}reScan_lt(){let{type:X}=this.state;if(X===51)return this.state.pos-=2,this.finishOp(47,1),47;return X}toAssignableList(X,H,Z){for(let V=0;V<X.length;V++){let Q=X[V];if((Q==null?void 0:Q.type)==="TSTypeCastExpression")X[V]=this.typeCastToParameter(Q)}super.toAssignableList(X,H,Z)}typeCastToParameter(X){return X.expression.typeAnnotation=X.typeAnnotation,this.resetEndLocation(X.expression,X.typeAnnotation.loc.end),X.expression}shouldParseArrow(X){if(this.match(14))return X.every((H)=>this.isAssignable(H,!0));return super.shouldParseArrow(X)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(X){if(this.match(47)||this.match(51)){let H=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(H)X.typeParameters=H}return super.jsxParseOpeningElementAfterName(X)}getGetterSetterExpectedParamCount(X){let H=super.getGetterSetterExpectedParamCount(X),V=this.getObjectOrClassMethodParams(X)[0];return V&&this.isThisParam(V)?H+1:H}parseCatchClauseParam(){let X=super.parseCatchClauseParam(),H=this.tsTryParseTypeAnnotation();if(H)X.typeAnnotation=H,this.resetEndLocation(X);return X}tsInAmbientContext(X){let{isAmbientContext:H,strict:Z}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return X()}finally{this.state.isAmbientContext=H,this.state.strict=Z}}parseClass(X,H,Z){let V=this.state.inAbstractClass;this.state.inAbstractClass=!!X.abstract;try{return super.parseClass(X,H,Z)}finally{this.state.inAbstractClass=V}}tsParseAbstractDeclaration(X,H){if(this.match(80))return X.abstract=!0,this.maybeTakeDecorators(H,this.parseClass(X,!0,!1));else if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return X.abstract=!0,this.raise(t.NonClassMethodPropertyHasAbstractModifer,X),this.tsParseInterfaceDeclaration(X)}else this.unexpected(null,80)}parseMethod(X,H,Z,V,Q,Y,z){let W=super.parseMethod(X,H,Z,V,Q,Y,z);if(W.abstract){if(this.hasPlugin("estree")?!!W.value.body:!!W.body){let{key:q}=W;this.raise(t.AbstractMethodHasImplementation,W,{methodName:q.type==="Identifier"&&!W.computed?q.name:`[${this.input.slice(q.start,q.end)}]`})}}return W}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){if(this.shouldParseAsAmbientContext())this.state.isAmbientContext=!0;return super.parse()}getExpression(){if(this.shouldParseAsAmbientContext())this.state.isAmbientContext=!0;return super.getExpression()}parseExportSpecifier(X,H,Z,V){if(!H&&V)return this.parseTypeOnlyImportExportSpecifier(X,!1,Z),this.finishNode(X,"ExportSpecifier");return X.exportKind="value",super.parseExportSpecifier(X,H,Z,V)}parseImportSpecifier(X,H,Z,V,Q){if(!H&&V)return this.parseTypeOnlyImportExportSpecifier(X,!0,Z),this.finishNode(X,"ImportSpecifier");return X.importKind="value",super.parseImportSpecifier(X,H,Z,V,Z?4098:4096)}parseTypeOnlyImportExportSpecifier(X,H,Z){let V=H?"imported":"local",Q=H?"local":"exported",Y=X[V],z,W=!1,K=!0,q=Y.loc.start;if(this.isContextual(93)){let I=this.parseIdentifier();if(this.isContextual(93)){let C=this.parseIdentifier();if(x2(this.state.type))W=!0,Y=I,z=H?this.parseIdentifier():this.parseModuleExportName(),K=!1;else z=C,K=!1}else if(x2(this.state.type))K=!1,z=H?this.parseIdentifier():this.parseModuleExportName();else W=!0,Y=I}else if(x2(this.state.type))if(W=!0,H){if(Y=this.parseIdentifier(!0),!this.isContextual(93))this.checkReservedWord(Y.name,Y.loc.start,!0,!0)}else Y=this.parseModuleExportName();if(W&&Z)this.raise(H?t.TypeModifierIsUsedInTypeImports:t.TypeModifierIsUsedInTypeExports,q);X[V]=Y,X[Q]=z;let f=H?"importKind":"exportKind";if(X[f]=W?"type":"value",K&&this.eatContextual(93))X[Q]=H?this.parseIdentifier():this.parseModuleExportName();if(!X[Q])X[Q]=q0(X[V]);if(H)this.checkIdentifier(X[Q],W?4098:4096)}};function H$1(J){if(J.type!=="MemberExpression")return!1;let{computed:G,property:X}=J;if(G&&X.type!=="StringLiteral"&&(X.type!=="TemplateLiteral"||X.expressions.length>0))return!1;return TU(J.object)}function Z$1(J,G){var X;let{type:H}=J;if((X=J.extra)!=null&&X.parenthesized)return!1;if(G){if(H==="Literal"){let{value:Z}=J;if(typeof Z==="string"||typeof Z==="boolean")return!0}}else if(H==="StringLiteral"||H==="BooleanLiteral")return!0;if(LU(J,G)||V$1(J,G))return!0;if(H==="TemplateLiteral"&&J.expressions.length===0)return!0;if(H$1(J))return!0;return!1}function LU(J,G){if(G)return J.type==="Literal"&&(typeof J.value==="number"||("bigint"in J));return J.type==="NumericLiteral"||J.type==="BigIntLiteral"}function V$1(J,G){if(J.type==="UnaryExpression"){let{operator:X,argument:H}=J;if(X==="-"&&LU(H,G))return!0}return!1}function TU(J){if(J.type==="Identifier")return!0;if(J.type!=="MemberExpression"||J.computed)return!1;return TU(J.object)}var o$=R0`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),Q$1=(J)=>class G extends J{parsePlaceholder(X){if(this.match(144)){let H=this.startNode();return this.next(),this.assertNoSpace(),H.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(H,X)}}finishPlaceholder(X,H){let Z=X;if(!Z.expectedNode||!Z.type)Z=this.finishNode(Z,"Placeholder");return Z.expectedNode=H,Z}getTokenFromCode(X){if(X===37&&this.input.charCodeAt(this.state.pos+1)===37)this.finishOp(144,2);else super.getTokenFromCode(X)}parseExprAtom(X){return this.parsePlaceholder("Expression")||super.parseExprAtom(X)}parseIdentifier(X){return this.parsePlaceholder("Identifier")||super.parseIdentifier(X)}checkReservedWord(X,H,Z,V){if(X!==void 0)super.checkReservedWord(X,H,Z,V)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(X,H,Z){return X==="Placeholder"||super.isValidLVal(X,H,Z)}toAssignable(X,H){if(X&&X.type==="Placeholder"&&X.expectedNode==="Expression")X.expectedNode="Pattern";else super.toAssignable(X,H)}chStartsBindingIdentifier(X,H){if(super.chStartsBindingIdentifier(X,H))return!0;if(this.lookahead().type===144)return!0;return!1}verifyBreakContinue(X,H){if(X.label&&X.label.type==="Placeholder")return;super.verifyBreakContinue(X,H)}parseExpressionStatement(X,H){var Z;if(H.type!=="Placeholder"||(Z=H.extra)!=null&&Z.parenthesized)return super.parseExpressionStatement(X,H);if(this.match(14)){let Q=X;return Q.label=this.finishPlaceholder(H,"Identifier"),this.next(),Q.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(Q,"LabeledStatement")}this.semicolon();let V=X;return V.name=H.name,this.finishPlaceholder(V,"Statement")}parseBlock(X,H,Z){return this.parsePlaceholder("BlockStatement")||super.parseBlock(X,H,Z)}parseFunctionId(X){return this.parsePlaceholder("Identifier")||super.parseFunctionId(X)}parseClass(X,H,Z){let V=H?"ClassDeclaration":"ClassExpression";this.next();let Q=this.state.strict,Y=this.parsePlaceholder("Identifier");if(Y)if(this.match(81)||this.match(144)||this.match(5))X.id=Y;else if(Z||!H)return X.id=null,X.body=this.finishPlaceholder(Y,"ClassBody"),this.finishNode(X,V);else throw this.raise(o$.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(X,H,Z);return super.parseClassSuper(X),X.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!X.superClass,Q),this.finishNode(X,V)}parseExport(X,H){let Z=this.parsePlaceholder("Identifier");if(!Z)return super.parseExport(X,H);let V=X;if(!this.isContextual(98)&&!this.match(12))return V.specifiers=[],V.source=null,V.declaration=this.finishPlaceholder(Z,"Declaration"),this.finishNode(V,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let Q=this.startNode();return Q.exported=Z,V.specifiers=[this.finishNode(Q,"ExportDefaultSpecifier")],super.parseExport(V,H)}isExportDefaultSpecifier(){if(this.match(65)){let X=this.nextTokenStart();if(this.isUnparsedContextual(X,"from")){if(this.input.startsWith(O0(144),this.nextTokenStartSince(X+4)))return!0}}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(X,H){var Z;if((Z=X.specifiers)!=null&&Z.length)return!0;return super.maybeParseExportDefaultSpecifier(X,H)}checkExport(X){let{specifiers:H}=X;if(H!=null&&H.length)X.specifiers=H.filter((Z)=>Z.exported.type==="Placeholder");super.checkExport(X),X.specifiers=H}parseImport(X){let H=this.parsePlaceholder("Identifier");if(!H)return super.parseImport(X);if(X.specifiers=[],!this.isContextual(98)&&!this.match(12))return X.source=this.finishPlaceholder(H,"StringLiteral"),this.semicolon(),this.finishNode(X,"ImportDeclaration");let Z=this.startNodeAtNode(H);if(Z.local=H,X.specifiers.push(this.finishNode(Z,"ImportDefaultSpecifier")),this.eat(12)){if(!this.maybeParseStarImportSpecifier(X))this.parseNamedImportSpecifiers(X)}return this.expectContextual(98),X.source=this.parseImportSource(),this.semicolon(),this.finishNode(X,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){if(this.state.start>this.state.lastTokEndLoc.index)this.raise(o$.UnexpectedSpace,this.state.lastTokEndLoc)}},Y$1=(J)=>class G extends J{parseV8Intrinsic(){if(this.match(54)){let X=this.state.startLoc,H=this.startNode();if(this.next(),N1(this.state.type)){let Z=this.parseIdentifierName(),V=this.createIdentifier(H,Z);if(V.type="V8IntrinsicIdentifier",this.match(10))return V}this.unexpected(X)}}parseExprAtom(X){return this.parseV8Intrinsic()||super.parseExprAtom(X)}},e$=["minimal","fsharp","hack","smart"],t$=["^^","@@","^","%","#"];function z$1(J){if(J.has("decorators")){if(J.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let X=J.get("decorators").decoratorsBeforeExport;if(X!=null&&typeof X!=="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let H=J.get("decorators").allowCallParenthesized;if(H!=null&&typeof H!=="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(J.has("flow")&&J.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(J.has("placeholders")&&J.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(J.has("pipelineOperator")){var G;let X=J.get("pipelineOperator").proposal;if(!e$.includes(X)){let Z=e$.map((V)=>`"${V}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${Z}.`)}let H=((G=J.get("recordAndTuple"))==null?void 0:G.syntaxType)==="hash";if(X==="hack"){if(J.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(J.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let Z=J.get("pipelineOperator").topicToken;if(!t$.includes(Z)){let V=t$.map((Q)=>`"${Q}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${V}.`)}if(Z==="#"&&H)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",J.get("recordAndTuple")])}\`.`)}else if(X==="smart"&&H)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",J.get("recordAndTuple")])}\`.`)}if(J.has("moduleAttributes")){if(J.has("importAttributes")||J.has("importAssertions"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if(J.get("moduleAttributes").version!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(J.has("importAssertions")){if(J.has("importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.")}if(J.has("recordAndTuple")){let X=J.get("recordAndTuple").syntaxType;if(X!=null){let H=["hash","bar"];if(!H.includes(X))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+H.map((Z)=>`'${Z}'`).join(", "))}}if(J.has("asyncDoExpressions")&&!J.has("doExpressions")){let X=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw X.missingPlugins="doExpressions",X}if(J.has("optionalChainingAssign")&&J.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}var NU={estree:$W1,jsx:eW1,flow:nW1,typescript:X$1,v8intrinsic:Y$1,placeholders:Q$1},W$1=Object.keys(NU),k7={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function $$1(J){if(J==null)return Object.assign({},k7);if(J.annexB!=null&&J.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");let G={};for(let H of Object.keys(k7)){var X;G[H]=(X=J[H])!=null?X:k7[H]}return G}class kU extends wU{checkProto(J,G,X,H){if(J.type==="SpreadElement"||this.isObjectMethod(J)||J.computed||J.shorthand)return;let Z=J.key;if((Z.type==="Identifier"?Z.name:Z.value)==="__proto__"){if(G){this.raise(D.RecordNoProto,Z);return}if(X.used)if(H){if(H.doubleProtoLoc===null)H.doubleProtoLoc=Z.loc.start}else this.raise(D.DuplicateProto,Z);X.used=!0}}shouldExitDescending(J,G){return J.type==="ArrowFunctionExpression"&&J.start===G}getExpression(){this.enterInitialScopes(),this.nextToken();let J=this.parseExpression();if(!this.match(139))this.unexpected();if(this.finalizeRemainingComments(),J.comments=this.comments,J.errors=this.state.errors,this.options.tokens)J.tokens=this.tokens;return J}parseExpression(J,G){if(J)return this.disallowInAnd(()=>this.parseExpressionBase(G));return this.allowInAnd(()=>this.parseExpressionBase(G))}parseExpressionBase(J){let G=this.state.startLoc,X=this.parseMaybeAssign(J);if(this.match(12)){let H=this.startNodeAt(G);H.expressions=[X];while(this.eat(12))H.expressions.push(this.parseMaybeAssign(J));return this.toReferencedList(H.expressions),this.finishNode(H,"SequenceExpression")}return X}parseMaybeAssignDisallowIn(J,G){return this.disallowInAnd(()=>this.parseMaybeAssign(J,G))}parseMaybeAssignAllowIn(J,G){return this.allowInAnd(()=>this.parseMaybeAssign(J,G))}setOptionalParametersError(J,G){var X;J.optionalParametersLoc=(X=G==null?void 0:G.loc)!=null?X:this.state.startLoc}parseMaybeAssign(J,G){let X=this.state.startLoc;if(this.isContextual(108)){if(this.prodParam.hasYield){let Q=this.parseYield();if(G)Q=G.call(this,Q,X);return Q}}let H;if(J)H=!1;else J=new b9,H=!0;let{type:Z}=this.state;if(Z===10||N1(Z))this.state.potentialArrowAt=this.state.start;let V=this.parseMaybeConditional(J);if(G)V=G.call(this,V,X);if(MW1(this.state.type)){let Q=this.startNodeAt(X),Y=this.state.value;if(Q.operator=Y,this.match(29)){this.toAssignable(V,!0),Q.left=V;let z=X.index;if(J.doubleProtoLoc!=null&&J.doubleProtoLoc.index>=z)J.doubleProtoLoc=null;if(J.shorthandAssignLoc!=null&&J.shorthandAssignLoc.index>=z)J.shorthandAssignLoc=null;if(J.privateKeyLoc!=null&&J.privateKeyLoc.index>=z)this.checkDestructuringPrivate(J),J.privateKeyLoc=null}else Q.left=V;return this.next(),Q.right=this.parseMaybeAssign(),this.checkLVal(V,this.finishNode(Q,"AssignmentExpression")),Q}else if(H)this.checkExpressionErrors(J,!0);return V}parseMaybeConditional(J){let G=this.state.startLoc,X=this.state.potentialArrowAt,H=this.parseExprOps(J);if(this.shouldExitDescending(H,X))return H;return this.parseConditional(H,G,J)}parseConditional(J,G,X){if(this.eat(17)){let H=this.startNodeAt(G);return H.test=J,H.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),H.alternate=this.parseMaybeAssign(),this.finishNode(H,"ConditionalExpression")}return J}parseMaybeUnaryOrPrivate(J){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(J)}parseExprOps(J){let G=this.state.startLoc,X=this.state.potentialArrowAt,H=this.parseMaybeUnaryOrPrivate(J);if(this.shouldExitDescending(H,X))return H;return this.parseExprOp(H,G,-1)}parseExprOp(J,G,X){if(this.isPrivateName(J)){let Z=this.getPrivateNameSV(J);if(X>=mJ(58)||!this.prodParam.hasIn||!this.match(58))this.raise(D.PrivateInExpectedIn,J,{identifierName:Z});this.classScope.usePrivateName(Z,J.loc.start)}let H=this.state.type;if(FW1(H)&&(this.prodParam.hasIn||!this.match(58))){let Z=mJ(H);if(Z>X){if(H===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return J;this.checkPipelineAtInfixOperator(J,G)}let V=this.startNodeAt(G);V.left=J,V.operator=this.state.value;let Q=H===41||H===42,Y=H===40;if(Y)Z=mJ(42);if(this.next(),H===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])){if(this.state.type===96&&this.prodParam.hasAwait)throw this.raise(D.UnexpectedAwaitAfterPipelineBody,this.state.startLoc)}V.right=this.parseExprOpRightExpr(H,Z);let z=this.finishNode(V,Q||Y?"LogicalExpression":"BinaryExpression"),W=this.state.type;if(Y&&(W===41||W===42)||Q&&W===40)throw this.raise(D.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(z,G,X)}}return J}parseExprOpRightExpr(J,G){let X=this.state.startLoc;switch(J){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>{return this.parseHackPipeBody()});case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(D.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(J,G),X)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>{return this.parseFSharpPipelineBody(G)})}default:return this.parseExprOpBaseRightExpr(J,G)}}parseExprOpBaseRightExpr(J,G){let X=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),X,IW1(J)?G-1:G)}parseHackPipeBody(){var J;let{startLoc:G}=this.state,X=this.parseMaybeAssign();if(VW1.has(X.type)&&!((J=X.extra)!=null&&J.parenthesized))this.raise(D.PipeUnparenthesizedBody,G,{type:X.type});if(!this.topicReferenceWasUsedInCurrentContext())this.raise(D.PipeTopicUnused,G);return X}checkExponentialAfterUnary(J){if(this.match(57))this.raise(D.UnexpectedTokenUnaryExponentiation,J.argument)}parseMaybeUnary(J,G){let X=this.state.startLoc,H=this.isContextual(96);if(H&&this.recordAwaitIfAllowed()){this.next();let Y=this.parseAwait(X);if(!G)this.checkExponentialAfterUnary(Y);return Y}let Z=this.match(34),V=this.startNode();if(fW1(this.state.type)){if(V.operator=this.state.value,V.prefix=!0,this.match(72))this.expectPlugin("throwExpressions");let Y=this.match(89);if(this.next(),V.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(J,!0),this.state.strict&&Y){let z=V.argument;if(z.type==="Identifier")this.raise(D.StrictDelete,V);else if(this.hasPropertyAsPrivateName(z))this.raise(D.DeletePrivateField,V)}if(!Z){if(!G)this.checkExponentialAfterUnary(V);return this.finishNode(V,"UnaryExpression")}}let Q=this.parseUpdate(V,Z,J);if(H){let{type:Y}=this.state;if((this.hasPlugin("v8intrinsic")?v7(Y):v7(Y)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(D.AwaitNotInAsyncContext,X),this.parseAwait(X)}return Q}parseUpdate(J,G,X){if(G){let V=J;return this.checkLVal(V.argument,this.finishNode(V,"UpdateExpression")),J}let H=this.state.startLoc,Z=this.parseExprSubscripts(X);if(this.checkExpressionErrors(X,!1))return Z;while(jW1(this.state.type)&&!this.canInsertSemicolon()){let V=this.startNodeAt(H);V.operator=this.state.value,V.prefix=!1,V.argument=Z,this.next(),this.checkLVal(Z,Z=this.finishNode(V,"UpdateExpression"))}return Z}parseExprSubscripts(J){let G=this.state.startLoc,X=this.state.potentialArrowAt,H=this.parseExprAtom(J);if(this.shouldExitDescending(H,X))return H;return this.parseSubscripts(H,G)}parseSubscripts(J,G,X){let H={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(J),stop:!1};do J=this.parseSubscript(J,G,X,H),H.maybeAsyncArrow=!1;while(!H.stop);return J}parseSubscript(J,G,X,H){let{type:Z}=this.state;if(!X&&Z===15)return this.parseBind(J,G,X,H);else if(lJ(Z))return this.parseTaggedTemplateExpression(J,G,H);let V=!1;if(Z===18){if(X){if(this.raise(D.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40)return H.stop=!0,J}H.optionalChainMember=V=!0,this.next()}if(!X&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(J,G,H,V);else{let Q=this.eat(0);if(Q||V||this.eat(16))return this.parseMember(J,G,H,Q,V);else return H.stop=!0,J}}parseMember(J,G,X,H,Z){let V=this.startNodeAt(G);if(V.object=J,V.computed=H,H)V.property=this.parseExpression(),this.expect(3);else if(this.match(138)){if(J.type==="Super")this.raise(D.SuperPrivateField,G);this.classScope.usePrivateName(this.state.value,this.state.startLoc),V.property=this.parsePrivateName()}else V.property=this.parseIdentifier(!0);if(X.optionalChainMember)return V.optional=Z,this.finishNode(V,"OptionalMemberExpression");else return this.finishNode(V,"MemberExpression")}parseBind(J,G,X,H){let Z=this.startNodeAt(G);return Z.object=J,this.next(),Z.callee=this.parseNoCallExpr(),H.stop=!0,this.parseSubscripts(this.finishNode(Z,"BindExpression"),G,X)}parseCoverCallAndAsyncArrowHead(J,G,X,H){let Z=this.state.maybeInArrowParameters,V=null;this.state.maybeInArrowParameters=!0,this.next();let Q=this.startNodeAt(G);Q.callee=J;let{maybeAsyncArrow:Y,optionalChainMember:z}=X;if(Y)this.expressionScope.enter(cW1()),V=new b9;if(z)Q.optional=H;if(H)Q.arguments=this.parseCallExpressionArguments(11);else Q.arguments=this.parseCallExpressionArguments(11,J.type==="Import",J.type!=="Super",Q,V);let W=this.finishCallExpression(Q,z);if(Y&&this.shouldParseAsyncArrow()&&!H)X.stop=!0,this.checkDestructuringPrivate(V),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),W=this.parseAsyncArrowFromCallExpression(this.startNodeAt(G),W);else{if(Y)this.checkExpressionErrors(V,!0),this.expressionScope.exit();this.toReferencedArguments(W)}return this.state.maybeInArrowParameters=Z,W}toReferencedArguments(J,G){this.toReferencedListDeep(J.arguments,G)}parseTaggedTemplateExpression(J,G,X){let H=this.startNodeAt(G);if(H.tag=J,H.quasi=this.parseTemplate(!0),X.optionalChainMember)this.raise(D.OptionalChainingNoTemplate,G);return this.finishNode(H,"TaggedTemplateExpression")}atPossibleAsyncArrow(J){return J.type==="Identifier"&&J.name==="async"&&this.state.lastTokEndLoc.index===J.end&&!this.canInsertSemicolon()&&J.end-J.start===5&&J.start===this.state.potentialArrowAt}finishCallExpression(J,G){if(J.callee.type==="Import"){if(J.arguments.length===2){if(!(this.hasPlugin("moduleAttributes")||this.hasPlugin("importAssertions")))this.expectPlugin("importAttributes")}if(J.arguments.length===0||J.arguments.length>2)this.raise(D.ImportCallArity,J,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let X of J.arguments)if(X.type==="SpreadElement")this.raise(D.ImportCallSpreadArgument,X)}return this.finishNode(J,G?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(J,G,X,H,Z){let V=[],Q=!0,Y=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;while(!this.eat(J)){if(Q)Q=!1;else if(this.expect(12),this.match(J)){if(G&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes"))this.raise(D.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc);if(H)this.addTrailingCommaExtraToNode(H);this.next();break}V.push(this.parseExprListItem(!1,Z,X))}return this.state.inFSharpPipelineDirectBody=Y,V}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(J,G){var X;if(this.resetPreviousNodeTrailingComments(G),this.expect(19),this.parseArrowExpression(J,G.arguments,!0,(X=G.extra)==null?void 0:X.trailingCommaLoc),G.innerComments)y9(J,G.innerComments);if(G.callee.trailingComments)y9(J,G.callee.trailingComments);return J}parseNoCallExpr(){let J=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),J,!0)}parseExprAtom(J){let G,X=null,{type:H}=this.state;switch(H){case 79:return this.parseSuper();case 83:if(G=this.startNode(),this.next(),this.match(16))return this.parseImportMetaProperty(G);if(this.match(10))if(this.options.createImportExpressions)return this.parseImportCall(G);else return this.finishNode(G,"Import");else return this.raise(D.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(G,"Import");case 78:return G=this.startNode(),this.next(),this.finishNode(G,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let Z=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(Z)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,J);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,J);case 68:return this.parseFunctionOrFunctionSent();case 26:X=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(X,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{G=this.startNode(),this.next(),G.object=null;let Z=G.callee=this.parseNoCallExpr();if(Z.type==="MemberExpression")return this.finishNode(G,"BindExpression");else throw this.raise(D.UnsupportedBind,Z)}case 138:return this.raise(D.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let Z=this.getPluginOption("pipelineOperator","proposal");if(Z)return this.parseTopicReference(Z);this.unexpected();break}case 47:{let Z=this.input.codePointAt(this.nextTokenStart());if(B0(Z)||Z===62)this.expectOnePlugin(["jsx","flow","typescript"]);else this.unexpected();break}default:if(H===136)return this.parseDecimalLiteral(this.state.value);if(N1(H)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let Z=this.state.potentialArrowAt===this.state.start,V=this.state.containsEsc,Q=this.parseIdentifier();if(!V&&Q.name==="async"&&!this.canInsertSemicolon()){let{type:Y}=this.state;if(Y===68)return this.resetPreviousNodeTrailingComments(Q),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(Q));else if(N1(Y))if(this.lookaheadCharCode()===61)return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(Q));else return Q;else if(Y===90)return this.resetPreviousNodeTrailingComments(Q),this.parseDo(this.startNodeAtNode(Q),!0)}if(Z&&this.match(19)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(Q),[Q],!1);return Q}else this.unexpected()}}parseTopicReferenceThenEqualsSign(J,G){let X=this.getPluginOption("pipelineOperator","proposal");if(X)return this.state.type=J,this.state.value=G,this.state.pos--,this.state.end--,this.state.endLoc=U2(this.state.endLoc,-1),this.parseTopicReference(X);else this.unexpected()}parseTopicReference(J){let G=this.startNode(),X=this.state.startLoc,H=this.state.type;return this.next(),this.finishTopicReference(G,X,J,H)}finishTopicReference(J,G,X,H){if(this.testTopicReferenceConfiguration(X,G,H)){let Z=X==="smart"?"PipelinePrimaryTopicReference":"TopicReference";if(!this.topicReferenceIsAllowedInCurrentContext())this.raise(X==="smart"?D.PrimaryTopicNotAllowed:D.PipeTopicUnbound,G);return this.registerTopicReference(),this.finishNode(J,Z)}else throw this.raise(D.PipeTopicUnconfiguredToken,G,{token:O0(H)})}testTopicReferenceConfiguration(J,G,X){switch(J){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:O0(X)}]);case"smart":return X===27;default:throw this.raise(D.PipeTopicRequiresHackPipes,G)}}parseAsyncArrowUnaryFunction(J){this.prodParam.enter(xJ(!0,this.prodParam.hasYield));let G=[this.parseIdentifier()];if(this.prodParam.exit(),this.hasPrecedingLineBreak())this.raise(D.LineTerminatorBeforeArrow,this.state.curPosition());return this.expect(19),this.parseArrowExpression(J,G,!0)}parseDo(J,G){if(this.expectPlugin("doExpressions"),G)this.expectPlugin("asyncDoExpressions");J.async=G,this.next();let X=this.state.labels;if(this.state.labels=[],G)this.prodParam.enter(2),J.body=this.parseBlock(),this.prodParam.exit();else J.body=this.parseBlock();return this.state.labels=X,this.finishNode(J,"DoExpression")}parseSuper(){let J=this.startNode();if(this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod)this.raise(D.SuperNotAllowed,J);else if(!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod)this.raise(D.UnexpectedSuper,J);if(!this.match(10)&&!this.match(0)&&!this.match(16))this.raise(D.UnsupportedSuper,J);return this.finishNode(J,"Super")}parsePrivateName(){let J=this.startNode(),G=this.startNodeAt(U2(this.state.startLoc,1)),X=this.state.value;return this.next(),J.id=this.createIdentifier(G,X),this.finishNode(J,"PrivateName")}parseFunctionOrFunctionSent(){let J=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let G=this.createIdentifier(this.startNodeAtNode(J),"function");if(this.next(),this.match(103))this.expectPlugin("functionSent");else if(!this.hasPlugin("functionSent"))this.unexpected();return this.parseMetaProperty(J,G,"sent")}return this.parseFunction(J)}parseMetaProperty(J,G,X){J.meta=G;let H=this.state.containsEsc;if(J.property=this.parseIdentifier(!0),J.property.name!==X||H)this.raise(D.UnsupportedMetaProperty,J.property,{target:G.name,onlyValidPropertyName:X});return this.finishNode(J,"MetaProperty")}parseImportMetaProperty(J){let G=this.createIdentifier(this.startNodeAtNode(J),"import");if(this.next(),this.isContextual(101)){if(!this.inModule)this.raise(D.ImportMetaOutsideModule,G);this.sawUnambiguousESM=!0}else if(this.isContextual(105)||this.isContextual(97)){let X=this.isContextual(105);if(!X)this.unexpected();if(this.expectPlugin(X?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(D.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),J.phase=X?"source":"defer",this.parseImportCall(J)}return this.parseMetaProperty(J,G,"meta")}parseLiteralAtNode(J,G,X){return this.addExtra(X,"rawValue",J),this.addExtra(X,"raw",this.input.slice(X.start,this.state.end)),X.value=J,this.next(),this.finishNode(X,G)}parseLiteral(J,G){let X=this.startNode();return this.parseLiteralAtNode(J,G,X)}parseStringLiteral(J){return this.parseLiteral(J,"StringLiteral")}parseNumericLiteral(J){return this.parseLiteral(J,"NumericLiteral")}parseBigIntLiteral(J){return this.parseLiteral(J,"BigIntLiteral")}parseDecimalLiteral(J){return this.parseLiteral(J,"DecimalLiteral")}parseRegExpLiteral(J){let G=this.startNode();return this.addExtra(G,"raw",this.input.slice(G.start,this.state.end)),G.pattern=J.pattern,G.flags=J.flags,this.next(),this.finishNode(G,"RegExpLiteral")}parseBooleanLiteral(J){let G=this.startNode();return G.value=J,this.next(),this.finishNode(G,"BooleanLiteral")}parseNullLiteral(){let J=this.startNode();return this.next(),this.finishNode(J,"NullLiteral")}parseParenAndDistinguishExpression(J){let G=this.state.startLoc,X;this.next(),this.expressionScope.enter(lW1());let H=this.state.maybeInArrowParameters,Z=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let V=this.state.startLoc,Q=[],Y=new b9,z=!0,W,K;while(!this.match(11)){if(z)z=!1;else if(this.expect(12,Y.optionalParametersLoc===null?null:Y.optionalParametersLoc),this.match(11)){K=this.state.startLoc;break}if(this.match(21)){let I=this.state.startLoc;if(W=this.state.startLoc,Q.push(this.parseParenItem(this.parseRestBinding(),I)),!this.checkCommaAfterRest(41))break}else Q.push(this.parseMaybeAssignAllowIn(Y,this.parseParenItem))}let q=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=H,this.state.inFSharpPipelineDirectBody=Z;let f=this.startNodeAt(G);if(J&&this.shouldParseArrow(Q)&&(f=this.parseArrow(f)))return this.checkDestructuringPrivate(Y),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(f,Q,!1),f;if(this.expressionScope.exit(),!Q.length)this.unexpected(this.state.lastTokStartLoc);if(K)this.unexpected(K);if(W)this.unexpected(W);if(this.checkExpressionErrors(Y,!0),this.toReferencedListDeep(Q,!0),Q.length>1)X=this.startNodeAt(V),X.expressions=Q,this.finishNode(X,"SequenceExpression"),this.resetEndLocation(X,q);else X=Q[0];return this.wrapParenthesis(G,X)}wrapParenthesis(J,G){if(!this.options.createParenthesizedExpressions)return this.addExtra(G,"parenthesized",!0),this.addExtra(G,"parenStart",J.index),this.takeSurroundingComments(G,J.index,this.state.lastTokEndLoc.index),G;let X=this.startNodeAt(J);return X.expression=G,this.finishNode(X,"ParenthesizedExpression")}shouldParseArrow(J){return!this.canInsertSemicolon()}parseArrow(J){if(this.eat(19))return J}parseParenItem(J,G){return J}parseNewOrNewTarget(){let J=this.startNode();if(this.next(),this.match(16)){let G=this.createIdentifier(this.startNodeAtNode(J),"new");this.next();let X=this.parseMetaProperty(J,G,"target");if(!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction)this.raise(D.UnexpectedNewTarget,X);return X}return this.parseNew(J)}parseNew(J){if(this.parseNewCallee(J),this.eat(10)){let G=this.parseExprList(11);this.toReferencedList(G),J.arguments=G}else J.arguments=[];return this.finishNode(J,"NewExpression")}parseNewCallee(J){let G=this.match(83),X=this.parseNoCallExpr();if(J.callee=X,G&&(X.type==="Import"||X.type==="ImportExpression"))this.raise(D.ImportCallNotNewExpression,X)}parseTemplateElement(J){let{start:G,startLoc:X,end:H,value:Z}=this.state,V=G+1,Q=this.startNodeAt(U2(X,1));if(Z===null){if(!J)this.raise(D.InvalidEscapeSequenceTemplate,U2(this.state.firstInvalidTemplateEscapePos,1))}let Y=this.match(24),z=Y?-1:-2,W=H+z;Q.value={raw:this.input.slice(V,W).replace(/\r\n?/g,"\n"),cooked:Z===null?null:Z.slice(1,z)},Q.tail=Y,this.next();let K=this.finishNode(Q,"TemplateElement");return this.resetEndLocation(K,U2(this.state.lastTokEndLoc,z)),K}parseTemplate(J){let G=this.startNode(),X=this.parseTemplateElement(J),H=[X],Z=[];while(!X.tail)Z.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),H.push(X=this.parseTemplateElement(J));return G.expressions=Z,G.quasis=H,this.finishNode(G,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(J,G,X,H){if(X)this.expectPlugin("recordAndTuple");let Z=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let V=Object.create(null),Q=!0,Y=this.startNode();Y.properties=[],this.next();while(!this.match(J)){if(Q)Q=!1;else if(this.expect(12),this.match(J)){this.addTrailingCommaExtraToNode(Y);break}let W;if(G)W=this.parseBindingProperty();else W=this.parsePropertyDefinition(H),this.checkProto(W,X,V,H);if(X&&!this.isObjectProperty(W)&&W.type!=="SpreadElement")this.raise(D.InvalidRecordProperty,W);if(W.shorthand)this.addExtra(W,"shorthand",!0);Y.properties.push(W)}this.next(),this.state.inFSharpPipelineDirectBody=Z;let z="ObjectExpression";if(G)z="ObjectPattern";else if(X)z="RecordExpression";return this.finishNode(Y,z)}addTrailingCommaExtraToNode(J){this.addExtra(J,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(J,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(J){return!J.computed&&J.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(J){let G=[];if(this.match(26)){if(this.hasPlugin("decorators"))this.raise(D.UnsupportedPropertyDecorator,this.state.startLoc);while(this.match(26))G.push(this.parseDecorator())}let X=this.startNode(),H=!1,Z=!1,V;if(this.match(21)){if(G.length)this.unexpected();return this.parseSpread()}if(G.length)X.decorators=G,G=[];if(X.method=!1,J)V=this.state.startLoc;let Q=this.eat(55);this.parsePropertyNamePrefixOperator(X);let Y=this.state.containsEsc;if(this.parsePropertyName(X,J),!Q&&!Y&&this.maybeAsyncOrAccessorProp(X)){let{key:z}=X,W=z.name;if(W==="async"&&!this.hasPrecedingLineBreak())H=!0,this.resetPreviousNodeTrailingComments(z),Q=this.eat(55),this.parsePropertyName(X);if(W==="get"||W==="set"){if(Z=!0,this.resetPreviousNodeTrailingComments(z),X.kind=W,this.match(55))Q=!0,this.raise(D.AccessorIsGenerator,this.state.curPosition(),{kind:W}),this.next();this.parsePropertyName(X)}}return this.parseObjPropValue(X,V,Q,H,!1,Z,J)}getGetterSetterExpectedParamCount(J){return J.kind==="get"?0:1}getObjectOrClassMethodParams(J){return J.params}checkGetterSetterParams(J){var G;let X=this.getGetterSetterExpectedParamCount(J),H=this.getObjectOrClassMethodParams(J);if(H.length!==X)this.raise(J.kind==="get"?D.BadGetterArity:D.BadSetterArity,J);if(J.kind==="set"&&((G=H[H.length-1])==null?void 0:G.type)==="RestElement")this.raise(D.BadSetterRestParameter,J)}parseObjectMethod(J,G,X,H,Z){if(Z){let V=this.parseMethod(J,G,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(V),V}if(X||G||this.match(10)){if(H)this.unexpected();return J.kind="method",J.method=!0,this.parseMethod(J,G,X,!1,!1,"ObjectMethod")}}parseObjectProperty(J,G,X,H){if(J.shorthand=!1,this.eat(14))return J.value=X?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(H),this.finishNode(J,"ObjectProperty");if(!J.computed&&J.key.type==="Identifier"){if(this.checkReservedWord(J.key.name,J.key.loc.start,!0,!1),X)J.value=this.parseMaybeDefault(G,q0(J.key));else if(this.match(29)){let Z=this.state.startLoc;if(H!=null){if(H.shorthandAssignLoc===null)H.shorthandAssignLoc=Z}else this.raise(D.InvalidCoverInitializedName,Z);J.value=this.parseMaybeDefault(G,q0(J.key))}else J.value=q0(J.key);return J.shorthand=!0,this.finishNode(J,"ObjectProperty")}}parseObjPropValue(J,G,X,H,Z,V,Q){let Y=this.parseObjectMethod(J,X,H,Z,V)||this.parseObjectProperty(J,G,Z,Q);if(!Y)this.unexpected();return Y}parsePropertyName(J,G){if(this.eat(0))J.computed=!0,J.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:X,value:H}=this.state,Z;if(x2(X))Z=this.parseIdentifier(!0);else switch(X){case 134:Z=this.parseNumericLiteral(H);break;case 133:Z=this.parseStringLiteral(H);break;case 135:Z=this.parseBigIntLiteral(H);break;case 138:{let V=this.state.startLoc;if(G!=null){if(G.privateKeyLoc===null)G.privateKeyLoc=V}else this.raise(D.UnexpectedPrivateField,V);Z=this.parsePrivateName();break}default:if(X===136){Z=this.parseDecimalLiteral(H);break}this.unexpected()}if(J.key=Z,X!==138)J.computed=!1}}initFunction(J,G){J.id=null,J.generator=!1,J.async=G}parseMethod(J,G,X,H,Z,V,Q=!1){this.initFunction(J,X),J.generator=G,this.scope.enter(18|(Q?64:0)|(Z?32:0)),this.prodParam.enter(xJ(X,J.generator)),this.parseFunctionParams(J,H);let Y=this.parseFunctionBodyAndFinish(J,V,!0);return this.prodParam.exit(),this.scope.exit(),Y}parseArrayLike(J,G,X,H){if(X)this.expectPlugin("recordAndTuple");let Z=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let V=this.startNode();return this.next(),V.elements=this.parseExprList(J,!X,H,V),this.state.inFSharpPipelineDirectBody=Z,this.finishNode(V,X?"TupleExpression":"ArrayExpression")}parseArrowExpression(J,G,X,H){this.scope.enter(6);let Z=xJ(X,!1);if(!this.match(5)&&this.prodParam.hasIn)Z|=8;this.prodParam.enter(Z),this.initFunction(J,X);let V=this.state.maybeInArrowParameters;if(G)this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(J,G,H);return this.state.maybeInArrowParameters=!1,this.parseFunctionBody(J,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=V,this.finishNode(J,"ArrowFunctionExpression")}setArrowFunctionParameters(J,G,X){this.toAssignableList(G,X,!1),J.params=G}parseFunctionBodyAndFinish(J,G,X=!1){return this.parseFunctionBody(J,!1,X),this.finishNode(J,G)}parseFunctionBody(J,G,X=!1){let H=G&&!this.match(5);if(this.expressionScope.enter(fU()),H)J.body=this.parseMaybeAssign(),this.checkParams(J,!1,G,!1);else{let Z=this.state.strict,V=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),J.body=this.parseBlock(!0,!1,(Q)=>{let Y=!this.isSimpleParamList(J.params);if(Q&&Y)this.raise(D.IllegalLanguageModeDirective,(J.kind==="method"||J.kind==="constructor")&&!!J.key?J.key.loc.end:J);let z=!Z&&this.state.strict;if(this.checkParams(J,!this.state.strict&&!G&&!X&&!Y,G,z),this.state.strict&&J.id)this.checkIdentifier(J.id,65,z)}),this.prodParam.exit(),this.state.labels=V}this.expressionScope.exit()}isSimpleParameter(J){return J.type==="Identifier"}isSimpleParamList(J){for(let G=0,X=J.length;G<X;G++)if(!this.isSimpleParameter(J[G]))return!1;return!0}checkParams(J,G,X,H=!0){let Z=!G&&new Set,V={type:"FormalParameters"};for(let Q of J.params)this.checkLVal(Q,V,5,Z,H)}parseExprList(J,G,X,H){let Z=[],V=!0;while(!this.eat(J)){if(V)V=!1;else if(this.expect(12),this.match(J)){if(H)this.addTrailingCommaExtraToNode(H);this.next();break}Z.push(this.parseExprListItem(G,X))}return Z}parseExprListItem(J,G,X){let H;if(this.match(12)){if(!J)this.raise(D.UnexpectedToken,this.state.curPosition(),{unexpected:","});H=null}else if(this.match(21)){let Z=this.state.startLoc;H=this.parseParenItem(this.parseSpread(G),Z)}else if(this.match(17)){if(this.expectPlugin("partialApplication"),!X)this.raise(D.UnexpectedArgumentPlaceholder,this.state.startLoc);let Z=this.startNode();this.next(),H=this.finishNode(Z,"ArgumentPlaceholder")}else H=this.parseMaybeAssignAllowIn(G,this.parseParenItem);return H}parseIdentifier(J){let G=this.startNode(),X=this.parseIdentifierName(J);return this.createIdentifier(G,X)}createIdentifier(J,G){return J.name=G,J.loc.identifierName=G,this.finishNode(J,"Identifier")}parseIdentifierName(J){let G,{startLoc:X,type:H}=this.state;if(x2(H))G=this.state.value;else this.unexpected();let Z=BW1(H);if(J){if(Z)this.replaceToken(132)}else this.checkReservedWord(G,X,Z,!1);return this.next(),G}checkReservedWord(J,G,X,H){if(J.length>10)return;if(!OW1(J))return;if(X&&NW1(J)){this.raise(D.UnexpectedKeyword,G,{keyword:J});return}if((!this.state.strict?ZU:H?YU:VU)(J,this.inModule)){this.raise(D.UnexpectedReservedWord,G,{reservedWord:J});return}else if(J==="yield"){if(this.prodParam.hasYield){this.raise(D.YieldBindingIdentifier,G);return}}else if(J==="await"){if(this.prodParam.hasAwait){this.raise(D.AwaitBindingIdentifier,G);return}if(this.scope.inStaticBlock){this.raise(D.AwaitBindingIdentifierInStaticBlock,G);return}this.expressionScope.recordAsyncArrowParametersError(G)}else if(J==="arguments"){if(this.scope.inClassAndNotInNonArrowFunction){this.raise(D.ArgumentsInClass,G);return}}}recordAwaitIfAllowed(){let J=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;if(J&&!this.scope.inFunction)this.state.hasTopLevelAwait=!0;return J}parseAwait(J){let G=this.startNodeAt(J);if(this.expressionScope.recordParameterInitializerError(D.AwaitExpressionFormalParameter,G),this.eat(55))this.raise(D.ObsoleteAwaitStar,G);if(!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction)if(this.isAmbiguousAwait())this.ambiguousScriptDifferentAst=!0;else this.sawUnambiguousESM=!0;if(!this.state.soloAwait)G.argument=this.parseMaybeUnary(null,!0);return this.finishNode(G,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:J}=this.state;return J===53||J===10||J===0||lJ(J)||J===102&&!this.state.containsEsc||J===137||J===56||this.hasPlugin("v8intrinsic")&&J===54}parseYield(){let J=this.startNode();this.expressionScope.recordParameterInitializerError(D.YieldInParameter,J),this.next();let G=!1,X=null;if(!this.hasPrecedingLineBreak())switch(G=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!G)break;default:X=this.parseMaybeAssign()}return J.delegate=G,J.argument=X,this.finishNode(J,"YieldExpression")}parseImportCall(J){if(this.next(),J.source=this.parseMaybeAssignAllowIn(),this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))J.options=null;if(this.eat(12)){if(!(this.hasPlugin("moduleAttributes")||this.hasPlugin("importAssertions")))this.expectPlugin("importAttributes");if(!this.match(11))J.options=this.parseMaybeAssignAllowIn(),this.eat(12)}return this.expect(11),this.finishNode(J,"ImportExpression")}checkPipelineAtInfixOperator(J,G){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){if(J.type==="SequenceExpression")this.raise(D.PipelineHeadSequenceExpression,G)}}parseSmartPipelineBodyInStyle(J,G){if(this.isSimpleReference(J)){let X=this.startNodeAt(G);return X.callee=J,this.finishNode(X,"PipelineBareFunction")}else{let X=this.startNodeAt(G);return this.checkSmartPipeTopicBodyEarlyErrors(G),X.expression=J,this.finishNode(X,"PipelineTopicExpression")}}isSimpleReference(J){switch(J.type){case"MemberExpression":return!J.computed&&this.isSimpleReference(J.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(J){if(this.match(19))throw this.raise(D.PipelineBodyNoArrow,this.state.startLoc);if(!this.topicReferenceWasUsedInCurrentContext())this.raise(D.PipelineTopicUnused,J)}withTopicBindingContext(J){let G=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return J()}finally{this.state.topicContext=G}}withSmartMixTopicForbiddingContext(J){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let G=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return J()}finally{this.state.topicContext=G}}else return J()}withSoloAwaitPermittingContext(J){let G=this.state.soloAwait;this.state.soloAwait=!0;try{return J()}finally{this.state.soloAwait=G}}allowInAnd(J){let G=this.prodParam.currentFlags();if(8&~G){this.prodParam.enter(G|8);try{return J()}finally{this.prodParam.exit()}}return J()}disallowInAnd(J){let G=this.prodParam.currentFlags();if(8&G){this.prodParam.enter(G&-9);try{return J()}finally{this.prodParam.exit()}}return J()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(J){let G=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let X=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let H=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),G,J);return this.state.inFSharpPipelineDirectBody=X,H}parseModuleExpression(){this.expectPlugin("moduleBlocks");let J=this.startNode();if(this.next(),!this.match(5))this.unexpected(null,5);let G=this.startNodeAt(this.state.endLoc);this.next();let X=this.initializeScopes(!0);this.enterInitialScopes();try{J.body=this.parseProgram(G,8,"module")}finally{X()}return this.finishNode(J,"ModuleExpression")}parsePropertyNamePrefixOperator(J){}}var E7={kind:1},U$1={kind:2},K$1=/[\uD800-\uDFFF]/u,O7=/in(?:stanceof)?/y;function B$1(J,G){for(let X=0;X<J.length;X++){let H=J[X],{type:Z}=H;if(typeof Z==="number"){{if(Z===138){let{loc:V,start:Q,value:Y,end:z}=H,W=Q+1,K=U2(V.start,1);J.splice(X,1,new U0({type:$0(27),value:"#",start:Q,end:W,startLoc:V.start,endLoc:K}),new U0({type:$0(132),value:Y,start:W,end:z,startLoc:K,endLoc:V.end})),X++;continue}if(lJ(Z)){let{loc:V,start:Q,value:Y,end:z}=H,W=Q+1,K=U2(V.start,1),q;if(G.charCodeAt(Q)===96)q=new U0({type:$0(22),value:"`",start:Q,end:W,startLoc:V.start,endLoc:K});else q=new U0({type:$0(8),value:"}",start:Q,end:W,startLoc:V.start,endLoc:K});let f,I,C,x;if(Z===24)I=z-1,C=U2(V.end,-1),f=Y===null?null:Y.slice(1,-1),x=new U0({type:$0(22),value:"`",start:I,end:z,startLoc:C,endLoc:V.end});else I=z-2,C=U2(V.end,-2),f=Y===null?null:Y.slice(1,-2),x=new U0({type:$0(23),value:"${",start:I,end:z,startLoc:C,endLoc:V.end});J.splice(X,1,q,new U0({type:$0(20),value:f,start:W,end:I,startLoc:K,endLoc:C}),x),X+=2;continue}}H.type=$0(Z)}}return J}class EU extends kU{parseTopLevel(J,G){if(J.program=this.parseProgram(G),J.comments=this.comments,this.options.tokens)J.tokens=B$1(this.tokens,this.input);return this.finishNode(J,"File")}parseProgram(J,G=139,X=this.options.sourceType){if(J.sourceType=X,J.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(J,!0,!0,G),this.inModule){if(!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[Z,V]of Array.from(this.scope.undefinedExports))this.raise(D.ModuleExportUndefined,V,{localName:Z});this.addExtra(J,"topLevelAwait",this.state.hasTopLevelAwait)}let H;if(G===139)H=this.finishNode(J,"Program");else H=this.finishNodeAt(J,"Program",U2(this.state.startLoc,-1));return H}stmtToDirective(J){let G=J;G.type="Directive",G.value=G.expression,delete G.expression;let X=G.value,H=X.value,Z=this.input.slice(X.start,X.end),V=X.value=Z.slice(1,-1);return this.addExtra(X,"raw",Z),this.addExtra(X,"rawValue",V),this.addExtra(X,"expressionValue",H),X.type="DirectiveLiteral",G}parseInterpreterDirective(){if(!this.match(28))return null;let J=this.startNode();return J.value=this.state.value,this.next(),this.finishNode(J,"InterpreterDirective")}isLet(){if(!this.isContextual(100))return!1;return this.hasFollowingBindingAtom()}chStartsBindingIdentifier(J,G){if(B0(J)){if(O7.lastIndex=G,O7.test(this.input)){let X=this.codePointAtPos(O7.lastIndex);if(!b5(X)&&X!==92)return!1}return!0}else if(J===92)return!0;else return!1}chStartsBindingPattern(J){return J===91||J===123}hasFollowingBindingAtom(){let J=this.nextTokenStart(),G=this.codePointAtPos(J);return this.chStartsBindingPattern(G)||this.chStartsBindingIdentifier(G,J)}hasInLineFollowingBindingIdentifierOrBrace(){let J=this.nextTokenInLineStart(),G=this.codePointAtPos(J);return G===123||this.chStartsBindingIdentifier(G,J)}startsUsingForOf(){let{type:J,containsEsc:G}=this.lookahead();if(J===102&&!G)return!1;else if(N1(J)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let J=this.nextTokenInLineStart();if(this.isUnparsedContextual(J,"using")){J=this.nextTokenInLineStartSince(J+5);let G=this.codePointAtPos(J);if(this.chStartsBindingIdentifier(G,J))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(J=!1){let G=0;if(this.options.annexB&&!this.state.strict){if(G|=4,J)G|=8}return this.parseStatementLike(G)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(J){let G=null;if(this.match(26))G=this.parseDecorators(!0);return this.parseStatementContent(J,G)}parseStatementContent(J,G){let X=this.state.type,H=this.startNode(),Z=!!(J&2),V=!!(J&4),Q=J&1;switch(X){case 60:return this.parseBreakContinueStatement(H,!0);case 63:return this.parseBreakContinueStatement(H,!1);case 64:return this.parseDebuggerStatement(H);case 90:return this.parseDoWhileStatement(H);case 91:return this.parseForStatement(H);case 68:if(this.lookaheadCharCode()===46)break;if(!V)this.raise(this.state.strict?D.StrictFunction:this.options.annexB?D.SloppyFunctionAnnexB:D.SloppyFunction,this.state.startLoc);return this.parseFunctionStatement(H,!1,!Z&&V);case 80:if(!Z)this.unexpected();return this.parseClass(this.maybeTakeDecorators(G,H),!0);case 69:return this.parseIfStatement(H);case 70:return this.parseReturnStatement(H);case 71:return this.parseSwitchStatement(H);case 72:return this.parseThrowStatement(H);case 73:return this.parseTryStatement(H);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing()){if(!this.recordAwaitIfAllowed())this.raise(D.AwaitUsingNotInAsyncContext,H);else if(!Z)this.raise(D.UnexpectedLexicalDeclaration,H);return this.next(),this.parseVarStatement(H,"await using")}break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;if(this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel)this.raise(D.UnexpectedUsingDeclaration,this.state.startLoc);else if(!Z)this.raise(D.UnexpectedLexicalDeclaration,this.state.startLoc);return this.parseVarStatement(H,"using");case 100:{if(this.state.containsEsc)break;let W=this.nextTokenStart(),K=this.codePointAtPos(W);if(K!==91){if(!Z&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(K,W)&&K!==123)break}}case 75:if(!Z)this.raise(D.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let W=this.state.value;return this.parseVarStatement(H,W)}case 92:return this.parseWhileStatement(H);case 76:return this.parseWithStatement(H);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(H);case 83:{let W=this.lookaheadCharCode();if(W===40||W===46)break}case 82:{if(!this.options.allowImportExportEverywhere&&!Q)this.raise(D.UnexpectedImportExport,this.state.startLoc);this.next();let W;if(X===83){if(W=this.parseImport(H),W.type==="ImportDeclaration"&&(!W.importKind||W.importKind==="value"))this.sawUnambiguousESM=!0}else if(W=this.parseExport(H,G),W.type==="ExportNamedDeclaration"&&(!W.exportKind||W.exportKind==="value")||W.type==="ExportAllDeclaration"&&(!W.exportKind||W.exportKind==="value")||W.type==="ExportDefaultDeclaration")this.sawUnambiguousESM=!0;return this.assertModuleNodeAllowed(W),W}default:if(this.isAsyncFunction()){if(!Z)this.raise(D.AsyncFunctionInSingleStatementContext,this.state.startLoc);return this.next(),this.parseFunctionStatement(H,!0,!Z&&V)}}let Y=this.state.value,z=this.parseExpression();if(N1(X)&&z.type==="Identifier"&&this.eat(14))return this.parseLabeledStatement(H,Y,z,J);else return this.parseExpressionStatement(H,z,G)}assertModuleNodeAllowed(J){if(!this.options.allowImportExportEverywhere&&!this.inModule)this.raise(D.ImportOutsideModule,J)}decoratorsEnabledBeforeExport(){if(this.hasPlugin("decorators-legacy"))return!0;return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(J,G,X){if(J){if(G.decorators&&G.decorators.length>0){if(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!=="boolean")this.raise(D.DecoratorsBeforeAfterExport,G.decorators[0]);G.decorators.unshift(...J)}else G.decorators=J;if(this.resetStartLocationFromNode(G,J[0]),X)this.resetStartLocationFromNode(X,G)}return G}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(J){let G=[];do G.push(this.parseDecorator());while(this.match(26));if(this.match(82)){if(!J)this.unexpected();if(!this.decoratorsEnabledBeforeExport())this.raise(D.DecoratorExportClass,this.state.startLoc)}else if(!this.canHaveLeadingDecorator())throw this.raise(D.UnexpectedLeadingDecorator,this.state.startLoc);return G}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let J=this.startNode();if(this.next(),this.hasPlugin("decorators")){let G=this.state.startLoc,X;if(this.match(10)){let H=this.state.startLoc;this.next(),X=this.parseExpression(),this.expect(11),X=this.wrapParenthesis(H,X);let Z=this.state.startLoc;if(J.expression=this.parseMaybeDecoratorArguments(X),this.getPluginOption("decorators","allowCallParenthesized")===!1&&J.expression!==X)this.raise(D.DecoratorArgumentsOutsideParentheses,Z)}else{X=this.parseIdentifier(!1);while(this.eat(16)){let H=this.startNodeAt(G);if(H.object=X,this.match(138))this.classScope.usePrivateName(this.state.value,this.state.startLoc),H.property=this.parsePrivateName();else H.property=this.parseIdentifier(!0);H.computed=!1,X=this.finishNode(H,"MemberExpression")}J.expression=this.parseMaybeDecoratorArguments(X)}}else J.expression=this.parseExprSubscripts();return this.finishNode(J,"Decorator")}parseMaybeDecoratorArguments(J){if(this.eat(10)){let G=this.startNodeAtNode(J);return G.callee=J,G.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(G.arguments),this.finishNode(G,"CallExpression")}return J}parseBreakContinueStatement(J,G){if(this.next(),this.isLineTerminator())J.label=null;else J.label=this.parseIdentifier(),this.semicolon();return this.verifyBreakContinue(J,G),this.finishNode(J,G?"BreakStatement":"ContinueStatement")}verifyBreakContinue(J,G){let X;for(X=0;X<this.state.labels.length;++X){let H=this.state.labels[X];if(J.label==null||H.name===J.label.name){if(H.kind!=null&&(G||H.kind===1))break;if(J.label&&G)break}}if(X===this.state.labels.length){let H=G?"BreakStatement":"ContinueStatement";this.raise(D.IllegalBreakContinue,J,{type:H})}}parseDebuggerStatement(J){return this.next(),this.semicolon(),this.finishNode(J,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let J=this.parseExpression();return this.expect(11),J}parseDoWhileStatement(J){return this.next(),this.state.labels.push(E7),J.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),J.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(J,"DoWhileStatement")}parseForStatement(J){this.next(),this.state.labels.push(E7);let G=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed())G=this.state.startLoc,this.next();if(this.scope.enter(0),this.expect(10),this.match(13)){if(G!==null)this.unexpected(G);return this.parseFor(J,null)}let X=this.isContextual(100);{let Y=this.isContextual(96)&&this.startsAwaitUsing(),z=Y||this.isContextual(107)&&this.startsUsingForOf(),W=X&&this.hasFollowingBindingAtom()||z;if(this.match(74)||this.match(75)||W){let K=this.startNode(),q;if(Y){if(q="await using",!this.recordAwaitIfAllowed())this.raise(D.AwaitUsingNotInAsyncContext,this.state.startLoc);this.next()}else q=this.state.value;this.next(),this.parseVar(K,!0,q);let f=this.finishNode(K,"VariableDeclaration"),I=this.match(58);if(I&&z)this.raise(D.ForInUsing,f);if((I||this.isContextual(102))&&f.declarations.length===1)return this.parseForIn(J,f,G);if(G!==null)this.unexpected(G);return this.parseFor(J,f)}}let H=this.isContextual(95),Z=new b9,V=this.parseExpression(!0,Z),Q=this.isContextual(102);if(Q){if(X)this.raise(D.ForOfLet,V);if(G===null&&H&&V.type==="Identifier")this.raise(D.ForOfAsync,V)}if(Q||this.match(58)){this.checkDestructuringPrivate(Z),this.toAssignable(V,!0);let Y=Q?"ForOfStatement":"ForInStatement";return this.checkLVal(V,{type:Y}),this.parseForIn(J,V,G)}else this.checkExpressionErrors(Z,!0);if(G!==null)this.unexpected(G);return this.parseFor(J,V)}parseFunctionStatement(J,G,X){return this.next(),this.parseFunction(J,1|(X?2:0)|(G?8:0))}parseIfStatement(J){return this.next(),J.test=this.parseHeaderExpression(),J.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),J.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(J,"IfStatement")}parseReturnStatement(J){if(!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction)this.raise(D.IllegalReturn,this.state.startLoc);if(this.next(),this.isLineTerminator())J.argument=null;else J.argument=this.parseExpression(),this.semicolon();return this.finishNode(J,"ReturnStatement")}parseSwitchStatement(J){this.next(),J.discriminant=this.parseHeaderExpression();let G=J.cases=[];this.expect(5),this.state.labels.push(U$1),this.scope.enter(0);let X;for(let H;!this.match(8);)if(this.match(61)||this.match(65)){let Z=this.match(61);if(X)this.finishNode(X,"SwitchCase");if(G.push(X=this.startNode()),X.consequent=[],this.next(),Z)X.test=this.parseExpression();else{if(H)this.raise(D.MultipleDefaultsInSwitch,this.state.lastTokStartLoc);H=!0,X.test=null}this.expect(14)}else if(X)X.consequent.push(this.parseStatementListItem());else this.unexpected();if(this.scope.exit(),X)this.finishNode(X,"SwitchCase");return this.next(),this.state.labels.pop(),this.finishNode(J,"SwitchStatement")}parseThrowStatement(J){if(this.next(),this.hasPrecedingLineBreak())this.raise(D.NewlineAfterThrow,this.state.lastTokEndLoc);return J.argument=this.parseExpression(),this.semicolon(),this.finishNode(J,"ThrowStatement")}parseCatchClauseParam(){let J=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&J.type==="Identifier"?8:0),this.checkLVal(J,{type:"CatchClause"},9),J}parseTryStatement(J){if(this.next(),J.block=this.parseBlock(),J.handler=null,this.match(62)){let G=this.startNode();if(this.next(),this.match(10))this.expect(10),G.param=this.parseCatchClauseParam(),this.expect(11);else G.param=null,this.scope.enter(0);G.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),J.handler=this.finishNode(G,"CatchClause")}if(J.finalizer=this.eat(67)?this.parseBlock():null,!J.handler&&!J.finalizer)this.raise(D.NoCatchOrFinally,J);return this.finishNode(J,"TryStatement")}parseVarStatement(J,G,X=!1){return this.next(),this.parseVar(J,!1,G,X),this.semicolon(),this.finishNode(J,"VariableDeclaration")}parseWhileStatement(J){return this.next(),J.test=this.parseHeaderExpression(),this.state.labels.push(E7),J.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(J,"WhileStatement")}parseWithStatement(J){if(this.state.strict)this.raise(D.StrictWith,this.state.startLoc);return this.next(),J.object=this.parseHeaderExpression(),J.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(J,"WithStatement")}parseEmptyStatement(J){return this.next(),this.finishNode(J,"EmptyStatement")}parseLabeledStatement(J,G,X,H){for(let V of this.state.labels)if(V.name===G)this.raise(D.LabelRedeclaration,X,{labelName:G});let Z=qW1(this.state.type)?1:this.match(71)?2:null;for(let V=this.state.labels.length-1;V>=0;V--){let Q=this.state.labels[V];if(Q.statementStart===J.start)Q.statementStart=this.state.start,Q.kind=Z;else break}return this.state.labels.push({name:G,kind:Z,statementStart:this.state.start}),J.body=H&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),J.label=X,this.finishNode(J,"LabeledStatement")}parseExpressionStatement(J,G,X){return J.expression=G,this.semicolon(),this.finishNode(J,"ExpressionStatement")}parseBlock(J=!1,G=!0,X){let H=this.startNode();if(J)this.state.strictErrors.clear();if(this.expect(5),G)this.scope.enter(0);if(this.parseBlockBody(H,J,!1,8,X),G)this.scope.exit();return this.finishNode(H,"BlockStatement")}isValidDirective(J){return J.type==="ExpressionStatement"&&J.expression.type==="StringLiteral"&&!J.expression.extra.parenthesized}parseBlockBody(J,G,X,H,Z){let V=J.body=[],Q=J.directives=[];this.parseBlockOrModuleBlockBody(V,G?Q:void 0,X,H,Z)}parseBlockOrModuleBlockBody(J,G,X,H,Z){let V=this.state.strict,Q=!1,Y=!1;while(!this.match(H)){let z=X?this.parseModuleItem():this.parseStatementListItem();if(G&&!Y){if(this.isValidDirective(z)){let W=this.stmtToDirective(z);if(G.push(W),!Q&&W.value.value==="use strict")Q=!0,this.setStrict(!0);continue}Y=!0,this.state.strictErrors.clear()}J.push(z)}if(Z==null||Z.call(this,Q),!V)this.setStrict(!1);this.next()}parseFor(J,G){return J.init=G,this.semicolon(!1),J.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),J.update=this.match(11)?null:this.parseExpression(),this.expect(11),J.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(J,"ForStatement")}parseForIn(J,G,X){let H=this.match(58);if(this.next(),H){if(X!==null)this.unexpected(X)}else J.await=X!==null;if(G.type==="VariableDeclaration"&&G.declarations[0].init!=null&&(!H||!this.options.annexB||this.state.strict||G.kind!=="var"||G.declarations[0].id.type!=="Identifier"))this.raise(D.ForInOfLoopInitializer,G,{type:H?"ForInStatement":"ForOfStatement"});if(G.type==="AssignmentPattern")this.raise(D.InvalidLhs,G,{ancestor:{type:"ForStatement"}});return J.left=G,J.right=H?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),J.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(J,H?"ForInStatement":"ForOfStatement")}parseVar(J,G,X,H=!1){let Z=J.declarations=[];J.kind=X;for(;;){let V=this.startNode();if(this.parseVarId(V,X),V.init=!this.eat(29)?null:G?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn(),V.init===null&&!H){if(V.id.type!=="Identifier"&&!(G&&(this.match(58)||this.isContextual(102))))this.raise(D.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"});else if((X==="const"||X==="using"||X==="await using")&&!(this.match(58)||this.isContextual(102)))this.raise(D.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:X})}if(Z.push(this.finishNode(V,"VariableDeclarator")),!this.eat(12))break}return J}parseVarId(J,G){let X=this.parseBindingAtom();if(G==="using"||G==="await using"){if(X.type==="ArrayPattern"||X.type==="ObjectPattern")this.raise(D.UsingDeclarationHasBindingPattern,X.loc.start)}this.checkLVal(X,{type:"VariableDeclarator"},G==="var"?5:8201),J.id=X}parseAsyncFunctionExpression(J){return this.parseFunction(J,8)}parseFunction(J,G=0){let X=G&2,H=!!(G&1),Z=H&&!(G&4),V=!!(G&8);if(this.initFunction(J,V),this.match(55)){if(X)this.raise(D.GeneratorInSingleStatementContext,this.state.startLoc);this.next(),J.generator=!0}if(H)J.id=this.parseFunctionId(Z);let Q=this.state.maybeInArrowParameters;if(this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(xJ(V,J.generator)),!H)J.id=this.parseFunctionId();if(this.parseFunctionParams(J,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(J,H?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),H&&!X)this.registerFunctionStatementId(J);return this.state.maybeInArrowParameters=Q,J}parseFunctionId(J){return J||N1(this.state.type)?this.parseIdentifier():null}parseFunctionParams(J,G){this.expect(10),this.expressionScope.enter(xW1()),J.params=this.parseBindingList(11,41,2|(G?4:0)),this.expressionScope.exit()}registerFunctionStatementId(J){if(!J.id)return;this.scope.declareName(J.id.name,!this.options.annexB||this.state.strict||J.generator||J.async?this.scope.treatFunctionsAsVar?5:8201:17,J.id.loc.start)}parseClass(J,G,X){this.next();let H=this.state.strict;return this.state.strict=!0,this.parseClassId(J,G,X),this.parseClassSuper(J),J.body=this.parseClassBody(!!J.superClass,H),this.finishNode(J,G?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(J){return J.type==="Identifier"&&J.name==="constructor"||J.type==="StringLiteral"&&J.value==="constructor"}isNonstaticConstructor(J){return!J.computed&&!J.static&&this.nameIsConstructor(J.key)}parseClassBody(J,G){this.classScope.enter();let X={hadConstructor:!1,hadSuperClass:J},H=[],Z=this.startNode();if(Z.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{while(!this.match(8)){if(this.eat(13)){if(H.length>0)throw this.raise(D.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){H.push(this.parseDecorator());continue}let V=this.startNode();if(H.length)V.decorators=H,this.resetStartLocationFromNode(V,H[0]),H=[];if(this.parseClassMember(Z,V,X),V.kind==="constructor"&&V.decorators&&V.decorators.length>0)this.raise(D.DecoratorConstructor,V)}}),this.state.strict=G,this.next(),H.length)throw this.raise(D.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(Z,"ClassBody")}parseClassMemberFromModifier(J,G){let X=this.parseIdentifier(!0);if(this.isClassMethod()){let H=G;return H.kind="method",H.computed=!1,H.key=X,H.static=!1,this.pushClassMethod(J,H,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let H=G;return H.computed=!1,H.key=X,H.static=!1,J.body.push(this.parseClassProperty(H)),!0}return this.resetPreviousNodeTrailingComments(X),!1}parseClassMember(J,G,X){let H=this.isContextual(106);if(H){if(this.parseClassMemberFromModifier(J,G))return;if(this.eat(5)){this.parseClassStaticBlock(J,G);return}}this.parseClassMemberWithIsStatic(J,G,X,H)}parseClassMemberWithIsStatic(J,G,X,H){let Z=G,V=G,Q=G,Y=G,z=G,W=Z,K=Z;if(G.static=H,this.parsePropertyNamePrefixOperator(G),this.eat(55)){W.kind="method";let O=this.match(138);if(this.parseClassElementName(W),O){this.pushClassPrivateMethod(J,V,!0,!1);return}if(this.isNonstaticConstructor(Z))this.raise(D.ConstructorIsGenerator,Z.key);this.pushClassMethod(J,Z,!0,!1,!1,!1);return}let q=!this.state.containsEsc&&N1(this.state.type),f=this.parseClassElementName(G),I=q?f.name:null,C=this.isPrivateName(f),x=this.state.startLoc;if(this.parsePostMemberNameModifiers(K),this.isClassMethod()){if(W.kind="method",C){this.pushClassPrivateMethod(J,V,!1,!1);return}let O=this.isNonstaticConstructor(Z),v=!1;if(O){if(Z.kind="constructor",X.hadConstructor&&!this.hasPlugin("typescript"))this.raise(D.DuplicateConstructor,f);if(O&&this.hasPlugin("typescript")&&G.override)this.raise(D.OverrideOnConstructor,f);X.hadConstructor=!0,v=X.hadSuperClass}this.pushClassMethod(J,Z,!1,!1,O,v)}else if(this.isClassProperty())if(C)this.pushClassPrivateProperty(J,Y);else this.pushClassProperty(J,Q);else if(I==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(f);let O=this.eat(55);if(K.optional)this.unexpected(x);W.kind="method";let v=this.match(138);if(this.parseClassElementName(W),this.parsePostMemberNameModifiers(K),v)this.pushClassPrivateMethod(J,V,O,!0);else{if(this.isNonstaticConstructor(Z))this.raise(D.ConstructorIsAsync,Z.key);this.pushClassMethod(J,Z,O,!0,!1,!1)}}else if((I==="get"||I==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(f),W.kind=I;let O=this.match(138);if(this.parseClassElementName(Z),O)this.pushClassPrivateMethod(J,V,!1,!1);else{if(this.isNonstaticConstructor(Z))this.raise(D.ConstructorIsAccessor,Z.key);this.pushClassMethod(J,Z,!1,!1,!1,!1)}this.checkGetterSetterParams(Z)}else if(I==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(f);let O=this.match(138);this.parseClassElementName(Q),this.pushClassAccessorProperty(J,z,O)}else if(this.isLineTerminator())if(C)this.pushClassPrivateProperty(J,Y);else this.pushClassProperty(J,Q);else this.unexpected()}parseClassElementName(J){let{type:G,value:X}=this.state;if((G===132||G===133)&&J.static&&X==="prototype")this.raise(D.StaticPrototype,this.state.startLoc);if(G===138){if(X==="constructor")this.raise(D.ConstructorClassPrivateField,this.state.startLoc);let H=this.parsePrivateName();return J.key=H,H}return this.parsePropertyName(J),J.key}parseClassStaticBlock(J,G){var X;this.scope.enter(208);let H=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let Z=G.body=[];if(this.parseBlockOrModuleBlockBody(Z,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=H,J.body.push(this.finishNode(G,"StaticBlock")),(X=G.decorators)!=null&&X.length)this.raise(D.DecoratorStaticBlock,G)}pushClassProperty(J,G){if(!G.computed&&this.nameIsConstructor(G.key))this.raise(D.ConstructorClassField,G.key);J.body.push(this.parseClassProperty(G))}pushClassPrivateProperty(J,G){let X=this.parseClassPrivateProperty(G);J.body.push(X),this.classScope.declarePrivateName(this.getPrivateNameSV(X.key),0,X.key.loc.start)}pushClassAccessorProperty(J,G,X){if(!X&&!G.computed&&this.nameIsConstructor(G.key))this.raise(D.ConstructorClassField,G.key);let H=this.parseClassAccessorProperty(G);if(J.body.push(H),X)this.classScope.declarePrivateName(this.getPrivateNameSV(H.key),0,H.key.loc.start)}pushClassMethod(J,G,X,H,Z,V){J.body.push(this.parseMethod(G,X,H,Z,V,"ClassMethod",!0))}pushClassPrivateMethod(J,G,X,H){let Z=this.parseMethod(G,X,H,!1,!1,"ClassPrivateMethod",!0);J.body.push(Z);let V=Z.kind==="get"?Z.static?6:2:Z.kind==="set"?Z.static?5:1:0;this.declareClassPrivateMethodInScope(Z,V)}declareClassPrivateMethodInScope(J,G){this.classScope.declarePrivateName(this.getPrivateNameSV(J.key),G,J.key.loc.start)}parsePostMemberNameModifiers(J){}parseClassPrivateProperty(J){return this.parseInitializer(J),this.semicolon(),this.finishNode(J,"ClassPrivateProperty")}parseClassProperty(J){return this.parseInitializer(J),this.semicolon(),this.finishNode(J,"ClassProperty")}parseClassAccessorProperty(J){return this.parseInitializer(J),this.semicolon(),this.finishNode(J,"ClassAccessorProperty")}parseInitializer(J){this.scope.enter(80),this.expressionScope.enter(fU()),this.prodParam.enter(0),J.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(J,G,X,H=8331){if(N1(this.state.type)){if(J.id=this.parseIdentifier(),G)this.declareNameFromIdentifier(J.id,H)}else if(X||!G)J.id=null;else throw this.raise(D.MissingClassName,this.state.startLoc)}parseClassSuper(J){J.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(J,G){let X=this.parseMaybeImportPhase(J,!0),H=this.maybeParseExportDefaultSpecifier(J,X),Z=!H||this.eat(12),V=Z&&this.eatExportStar(J),Q=V&&this.maybeParseExportNamespaceSpecifier(J),Y=Z&&(!Q||this.eat(12)),z=H||V;if(V&&!Q){if(H)this.unexpected();if(G)throw this.raise(D.UnsupportedDecoratorExport,J);return this.parseExportFrom(J,!0),this.finishNode(J,"ExportAllDeclaration")}let W=this.maybeParseExportNamedSpecifiers(J);if(H&&Z&&!V&&!W)this.unexpected(null,5);if(Q&&Y)this.unexpected(null,98);let K;if(z||W){if(K=!1,G)throw this.raise(D.UnsupportedDecoratorExport,J);this.parseExportFrom(J,z)}else K=this.maybeParseExportDeclaration(J);if(z||W||K){var q;let f=J;if(this.checkExport(f,!0,!1,!!f.source),((q=f.declaration)==null?void 0:q.type)==="ClassDeclaration")this.maybeTakeDecorators(G,f.declaration,f);else if(G)throw this.raise(D.UnsupportedDecoratorExport,J);return this.finishNode(f,"ExportNamedDeclaration")}if(this.eat(65)){let f=J,I=this.parseExportDefaultExpression();if(f.declaration=I,I.type==="ClassDeclaration")this.maybeTakeDecorators(G,I,f);else if(G)throw this.raise(D.UnsupportedDecoratorExport,J);return this.checkExport(f,!0,!0),this.finishNode(f,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(J){return this.eat(55)}maybeParseExportDefaultSpecifier(J,G){if(G||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",G==null?void 0:G.loc.start);let X=G||this.parseIdentifier(!0),H=this.startNodeAtNode(X);return H.exported=X,J.specifiers=[this.finishNode(H,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(J){if(this.isContextual(93)){var G,X;(X=(G=J).specifiers)!=null||(G.specifiers=[]);let H=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),H.exported=this.parseModuleExportName(),J.specifiers.push(this.finishNode(H,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(J){if(this.match(5)){let G=J;if(!G.specifiers)G.specifiers=[];let X=G.exportKind==="type";if(G.specifiers.push(...this.parseExportSpecifiers(X)),G.source=null,G.declaration=null,this.hasPlugin("importAssertions"))G.assertions=[];return!0}return!1}maybeParseExportDeclaration(J){if(this.shouldParseExportDeclaration()){if(J.specifiers=[],J.source=null,this.hasPlugin("importAssertions"))J.assertions=[];return J.declaration=this.parseExportDeclaration(J),!0}return!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let J=this.nextTokenInLineStart();return this.isUnparsedContextual(J,"function")}parseExportDefaultExpression(){let J=this.startNode();if(this.match(68))return this.next(),this.parseFunction(J,5);else if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(J,13);if(this.match(80))return this.parseClass(J,!0,!0);if(this.match(26)){if(this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise(D.DecoratorBeforeExport,this.state.startLoc);return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0)}if(this.match(75)||this.match(74)||this.isLet())throw this.raise(D.UnsupportedDefaultExport,this.state.startLoc);let G=this.parseMaybeAssignAllowIn();return this.semicolon(),G}parseExportDeclaration(J){if(this.match(80))return this.parseClass(this.startNode(),!0,!1);return this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:J}=this.state;if(N1(J)){if(J===95&&!this.state.containsEsc||J===100)return!1;if((J===130||J===129)&&!this.state.containsEsc){let{type:H}=this.lookahead();if(N1(H)&&H!==98||H===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let G=this.nextTokenStart(),X=this.isUnparsedContextual(G,"from");if(this.input.charCodeAt(G)===44||N1(this.state.type)&&X)return!0;if(this.match(65)&&X){let H=this.input.charCodeAt(this.nextTokenStartSince(G+4));return H===34||H===39}return!1}parseExportFrom(J,G){if(this.eatContextual(98))J.source=this.parseImportSource(),this.checkExport(J),this.maybeParseImportAttributes(J),this.checkJSONModuleImport(J);else if(G)this.unexpected();this.semicolon()}shouldParseExportDeclaration(){let{type:J}=this.state;if(J===26){if(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators")){if(this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise(D.DecoratorBeforeExport,this.state.startLoc);return!0}}if(this.isContextual(107))return this.raise(D.UsingDeclarationExport,this.state.startLoc),!0;if(this.isContextual(96)&&this.startsAwaitUsing())return this.raise(D.UsingDeclarationExport,this.state.startLoc),!0;return J===74||J===75||J===68||J===80||this.isLet()||this.isAsyncFunction()}checkExport(J,G,X,H){if(G){var Z;if(X){if(this.checkDuplicateExports(J,"default"),this.hasPlugin("exportDefaultFrom")){var V;let Q=J.declaration;if(Q.type==="Identifier"&&Q.name==="from"&&Q.end-Q.start===4&&!((V=Q.extra)!=null&&V.parenthesized))this.raise(D.ExportDefaultFromAsIdentifier,Q)}}else if((Z=J.specifiers)!=null&&Z.length)for(let Q of J.specifiers){let{exported:Y}=Q,z=Y.type==="Identifier"?Y.name:Y.value;if(this.checkDuplicateExports(Q,z),!H&&Q.local){let{local:W}=Q;if(W.type!=="Identifier")this.raise(D.ExportBindingIsString,Q,{localName:W.value,exportName:z});else this.checkReservedWord(W.name,W.loc.start,!0,!1),this.scope.checkLocalExport(W)}}else if(J.declaration){let Q=J.declaration;if(Q.type==="FunctionDeclaration"||Q.type==="ClassDeclaration"){let{id:Y}=Q;if(!Y)throw new Error("Assertion failure");this.checkDuplicateExports(J,Y.name)}else if(Q.type==="VariableDeclaration")for(let Y of Q.declarations)this.checkDeclaration(Y.id)}}}checkDeclaration(J){if(J.type==="Identifier")this.checkDuplicateExports(J,J.name);else if(J.type==="ObjectPattern")for(let G of J.properties)this.checkDeclaration(G);else if(J.type==="ArrayPattern"){for(let G of J.elements)if(G)this.checkDeclaration(G)}else if(J.type==="ObjectProperty")this.checkDeclaration(J.value);else if(J.type==="RestElement")this.checkDeclaration(J.argument);else if(J.type==="AssignmentPattern")this.checkDeclaration(J.left)}checkDuplicateExports(J,G){if(this.exportedIdentifiers.has(G))if(G==="default")this.raise(D.DuplicateDefaultExport,J);else this.raise(D.DuplicateExport,J,{exportName:G});this.exportedIdentifiers.add(G)}parseExportSpecifiers(J){let G=[],X=!0;this.expect(5);while(!this.eat(8)){if(X)X=!1;else if(this.expect(12),this.eat(8))break;let H=this.isContextual(130),Z=this.match(133),V=this.startNode();V.local=this.parseModuleExportName(),G.push(this.parseExportSpecifier(V,Z,J,H))}return G}parseExportSpecifier(J,G,X,H){if(this.eatContextual(93))J.exported=this.parseModuleExportName();else if(G)J.exported=aW1(J.local);else if(!J.exported)J.exported=q0(J.local);return this.finishNode(J,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){let J=this.parseStringLiteral(this.state.value),G=K$1.exec(J.value);if(G)this.raise(D.ModuleExportNameHasLoneSurrogate,J,{surrogateCharCode:G[0].charCodeAt(0)});return J}return this.parseIdentifier(!0)}isJSONModuleImport(J){if(J.assertions!=null)return J.assertions.some(({key:G,value:X})=>{return X.value==="json"&&(G.type==="Identifier"?G.name==="type":G.value==="type")});return!1}checkImportReflection(J){let{specifiers:G}=J,X=G.length===1?G[0].type:null;if(J.phase==="source"){if(X!=="ImportDefaultSpecifier")this.raise(D.SourcePhaseImportRequiresDefault,G[0].loc.start)}else if(J.phase==="defer"){if(X!=="ImportNamespaceSpecifier")this.raise(D.DeferImportRequiresNamespace,G[0].loc.start)}else if(J.module){var H;if(X!=="ImportDefaultSpecifier")this.raise(D.ImportReflectionNotBinding,G[0].loc.start);if(((H=J.assertions)==null?void 0:H.length)>0)this.raise(D.ImportReflectionHasAssertion,G[0].loc.start)}}checkJSONModuleImport(J){if(this.isJSONModuleImport(J)&&J.type!=="ExportAllDeclaration"){let{specifiers:G}=J;if(G!=null){let X=G.find((H)=>{let Z;if(H.type==="ExportSpecifier")Z=H.local;else if(H.type==="ImportSpecifier")Z=H.imported;if(Z!==void 0)return Z.type==="Identifier"?Z.name!=="default":Z.value!=="default"});if(X!==void 0)this.raise(D.ImportJSONBindingNotDefault,X.loc.start)}}}isPotentialImportPhase(J){if(J)return!1;return this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(J,G,X,H){if(G)return;if(X==="module")this.expectPlugin("importReflection",H),J.module=!0;else if(this.hasPlugin("importReflection"))J.module=!1;if(X==="source")this.expectPlugin("sourcePhaseImports",H),J.phase="source";else if(X==="defer")this.expectPlugin("deferredImportEvaluation",H),J.phase="defer";else if(this.hasPlugin("sourcePhaseImports"))J.phase=null}parseMaybeImportPhase(J,G){if(!this.isPotentialImportPhase(G))return this.applyImportPhase(J,G,null),null;let X=this.parseIdentifier(!0),{type:H}=this.state;if(x2(H)?H!==98||this.lookaheadCharCode()===102:H!==12)return this.resetPreviousIdentifierLeadingComments(X),this.applyImportPhase(J,G,X.name,X.loc.start),null;else return this.applyImportPhase(J,G,null),X}isPrecedingIdImportPhase(J){let{type:G}=this.state;return N1(G)?G!==98||this.lookaheadCharCode()===102:G!==12}parseImport(J){if(this.match(133))return this.parseImportSourceAndAttributes(J);return this.parseImportSpecifiersAndAfter(J,this.parseMaybeImportPhase(J,!1))}parseImportSpecifiersAndAfter(J,G){J.specifiers=[];let H=!this.maybeParseDefaultImportSpecifier(J,G)||this.eat(12),Z=H&&this.maybeParseStarImportSpecifier(J);if(H&&!Z)this.parseNamedImportSpecifiers(J);return this.expectContextual(98),this.parseImportSourceAndAttributes(J)}parseImportSourceAndAttributes(J){var G;return(G=J.specifiers)!=null||(J.specifiers=[]),J.source=this.parseImportSource(),this.maybeParseImportAttributes(J),this.checkImportReflection(J),this.checkJSONModuleImport(J),this.semicolon(),this.finishNode(J,"ImportDeclaration")}parseImportSource(){if(!this.match(133))this.unexpected();return this.parseExprAtom()}parseImportSpecifierLocal(J,G,X){G.local=this.parseIdentifier(),J.specifiers.push(this.finishImportSpecifier(G,X))}finishImportSpecifier(J,G,X=8201){return this.checkLVal(J.local,{type:G},X),this.finishNode(J,G)}parseImportAttributes(){this.expect(5);let J=[],G=new Set;do{if(this.match(8))break;let X=this.startNode(),H=this.state.value;if(G.has(H))this.raise(D.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:H});if(G.add(H),this.match(133))X.key=this.parseStringLiteral(H);else X.key=this.parseIdentifier(!0);if(this.expect(14),!this.match(133))throw this.raise(D.ModuleAttributeInvalidValue,this.state.startLoc);X.value=this.parseStringLiteral(this.state.value),J.push(this.finishNode(X,"ImportAttribute"))}while(this.eat(12));return this.expect(8),J}parseModuleAttributes(){let J=[],G=new Set;do{let X=this.startNode();if(X.key=this.parseIdentifier(!0),X.key.name!=="type")this.raise(D.ModuleAttributeDifferentFromType,X.key);if(G.has(X.key.name))this.raise(D.ModuleAttributesWithDuplicateKeys,X.key,{key:X.key.name});if(G.add(X.key.name),this.expect(14),!this.match(133))throw this.raise(D.ModuleAttributeInvalidValue,this.state.startLoc);X.value=this.parseStringLiteral(this.state.value),J.push(this.finishNode(X,"ImportAttribute"))}while(this.eat(12));return J}maybeParseImportAttributes(J){let G;var X=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;if(this.next(),this.hasPlugin("moduleAttributes"))G=this.parseModuleAttributes();else{if(!this.hasPlugin("importAssertions"))this.expectPlugin("importAttributes");G=this.parseImportAttributes()}X=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak()){if(this.hasPlugin("importAttributes")){if(this.getPluginOption("importAttributes","deprecatedAssertSyntax")!==!0)this.raise(D.ImportAttributesUseAssert,this.state.startLoc);this.addExtra(J,"deprecatedAssertSyntax",!0)}else this.expectOnePlugin(["importAttributes","importAssertions"]);this.next(),G=this.parseImportAttributes()}else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))G=[];else if(this.hasPlugin("moduleAttributes"))G=[];else return;if(!X&&this.hasPlugin("importAssertions"))J.assertions=G;else J.attributes=G}maybeParseDefaultImportSpecifier(J,G){if(G){let X=this.startNodeAtNode(G);return X.local=G,J.specifiers.push(this.finishImportSpecifier(X,"ImportDefaultSpecifier")),!0}else if(x2(this.state.type))return this.parseImportSpecifierLocal(J,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(J){if(this.match(55)){let G=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(J,G,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(J){let G=!0;this.expect(5);while(!this.eat(8)){if(G)G=!1;else{if(this.eat(14))throw this.raise(D.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let X=this.startNode(),H=this.match(133),Z=this.isContextual(130);X.imported=this.parseModuleExportName();let V=this.parseImportSpecifier(X,H,J.importKind==="type"||J.importKind==="typeof",Z,void 0);J.specifiers.push(V)}}parseImportSpecifier(J,G,X,H,Z){if(this.eatContextual(93))J.local=this.parseIdentifier();else{let{imported:V}=J;if(G)throw this.raise(D.ImportBindingIsString,J,{importName:V.value});if(this.checkReservedWord(V.name,J.loc.start,!0,!0),!J.local)J.local=q0(V)}return this.finishImportSpecifier(J,"ImportSpecifier",Z)}isThisParam(J){return J.type==="Identifier"&&J.name==="this"}}class p7 extends EU{constructor(J,G,X){J=$$1(J);super(J,G);this.options=J,this.initializeScopes(),this.plugins=X,this.filename=J.sourceFilename}getScopeHandler(){return rJ}parse(){this.enterInitialScopes();let J=this.startNode(),G=this.startNode();return this.nextToken(),J.errors=null,this.parseTopLevel(J,G),J.errors=this.state.errors,J.comments.length=this.state.commentsLen,J}}function R$1(J,G){var X;if(((X=G)==null?void 0:X.sourceType)==="unambiguous"){G=Object.assign({},G);try{G.sourceType="module";let H=_9(G,J),Z=H.parse();if(H.sawUnambiguousESM)return Z;if(H.ambiguousScriptDifferentAst)try{return G.sourceType="script",_9(G,J).parse()}catch(V){}else Z.program.sourceType="script";return Z}catch(H){try{return G.sourceType="script",_9(G,J).parse()}catch(Z){}throw H}}else return _9(G,J).parse()}function M$1(J,G){let X=_9(G,J);if(X.options.strictMode)X.state.strict=!0;return X.getExpression()}function q$1(J){let G={};for(let X of Object.keys(J))G[X]=$0(J[X]);return G}var F$1=q$1(KW1);function _9(J,G){let X=p7,H=new Map;if(J!=null&&J.plugins){for(let Z of J.plugins){let V,Q;if(typeof Z==="string")V=Z;else[V,Q]=Z;if(!H.has(V))H.set(V,Q||{})}z$1(H),X=j$1(H)}return new X(J,G,H)}var JU=new Map;function j$1(J){let G=[];for(let Z of W$1)if(J.has(Z))G.push(Z);let X=G.join("|"),H=JU.get(X);if(!H){H=p7;for(let Z of G)H=NU[Z](H);JU.set(X,H)}return H}OU.parse=R$1;OU.parseExpression=M$1;OU.tokTypes=F$1});var n7=S((vU)=>{Object.defineProperty(vU,"__esModule",{value:!0});vU.Var=vU.User=vU.Statement=vU.SpreadProperty=vU.Scope=vU.RestProperty=vU.ReferencedMemberExpression=vU.ReferencedIdentifier=vU.Referenced=vU.Pure=vU.NumericLiteralTypeAnnotation=vU.Generated=vU.ForAwaitStatement=vU.Flow=vU.Expression=vU.ExistentialTypeParam=vU.BlockScoped=vU.BindingIdentifier=void 0;var S_1=vU.ReferencedIdentifier=["Identifier","JSXIdentifier"],P_1=vU.ReferencedMemberExpression=["MemberExpression"],w_1=vU.BindingIdentifier=["Identifier"],L_1=vU.Statement=["Statement"],T_1=vU.Expression=["Expression"],N_1=vU.Scope=["Scopable","Pattern"],k_1=vU.Referenced=null,E_1=vU.BlockScoped=null,O_1=vU.Var=["VariableDeclaration"],v_1=vU.User=null,__1=vU.Generated=null,g_1=vU.Pure=null,b_1=vU.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],h_1=vU.RestProperty=["RestElement"],y_1=vU.SpreadProperty=["RestElement"],m_1=vU.ExistentialTypeParam=["ExistsTypeAnnotation"],x_1=vU.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],l_1=vU.ForAwaitStatement=["ForOfStatement"]});var bU=S((r_1,gU)=>{var y5=1000,m5=y5*60,x5=m5*60,G5=x5*24,m$1=G5*7,x$1=G5*365.25;gU.exports=function(J,G){G=G||{};var X=typeof J;if(X==="string"&&J.length>0)return l$1(J);else if(X==="number"&&isFinite(J))return G.long?r$1(J):c$1(J);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(J))};function l$1(J){if(J=String(J),J.length>100)return;var G=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(J);if(!G)return;var X=parseFloat(G[1]),H=(G[2]||"ms").toLowerCase();switch(H){case"years":case"year":case"yrs":case"yr":case"y":return X*x$1;case"weeks":case"week":case"w":return X*m$1;case"days":case"day":case"d":return X*G5;case"hours":case"hour":case"hrs":case"hr":case"h":return X*x5;case"minutes":case"minute":case"mins":case"min":case"m":return X*m5;case"seconds":case"second":case"secs":case"sec":case"s":return X*y5;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return X;default:return}}function c$1(J){var G=Math.abs(J);if(G>=G5)return Math.round(J/G5)+"d";if(G>=x5)return Math.round(J/x5)+"h";if(G>=m5)return Math.round(J/m5)+"m";if(G>=y5)return Math.round(J/y5)+"s";return J+"ms"}function r$1(J){var G=Math.abs(J);if(G>=G5)return iJ(J,G,G5,"day");if(G>=x5)return iJ(J,G,x5,"hour");if(G>=m5)return iJ(J,G,m5,"minute");if(G>=y5)return iJ(J,G,y5,"second");return J+" ms"}function iJ(J,G,X,H){var Z=G>=X*1.5;return Math.round(J/X)+" "+H+(Z?"s":"")}});var o7=S((a_1,hU)=>{function a$1(J){X.debug=X,X.default=X,X.coerce=z,X.disable=V,X.enable=Z,X.enabled=Q,X.humanize=bU(),X.destroy=W,Object.keys(J).forEach((K)=>{X[K]=J[K]}),X.names=[],X.skips=[],X.formatters={};function G(K){let q=0;for(let f=0;f<K.length;f++)q=(q<<5)-q+K.charCodeAt(f),q|=0;return X.colors[Math.abs(q)%X.colors.length]}X.selectColor=G;function X(K){let q,f=null,I,C;function x(...O){if(!x.enabled)return;let v=x,b=Number(new Date),B1=b-(q||b);if(v.diff=B1,v.prev=q,v.curr=b,q=b,O[0]=X.coerce(O[0]),typeof O[0]!=="string")O.unshift("%O");let J1=0;O[0]=O[0].replace(/%([a-zA-Z%])/g,(W1,D1)=>{if(W1==="%%")return"%";J1++;let E1=X.formatters[D1];if(typeof E1==="function"){let a=O[J1];W1=E1.call(v,a),O.splice(J1,1),J1--}return W1}),X.formatArgs.call(v,O),(v.log||X.log).apply(v,O)}if(x.namespace=K,x.useColors=X.useColors(),x.color=X.selectColor(K),x.extend=H,x.destroy=X.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(f!==null)return f;if(I!==X.namespaces)I=X.namespaces,C=X.enabled(K);return C},set:(O)=>{f=O}}),typeof X.init==="function")X.init(x);return x}function H(K,q){let f=X(this.namespace+(typeof q==="undefined"?":":q)+K);return f.log=this.log,f}function Z(K){X.save(K),X.namespaces=K,X.names=[],X.skips=[];let q,f=(typeof K==="string"?K:"").split(/[\s,]+/),I=f.length;for(q=0;q<I;q++){if(!f[q])continue;if(K=f[q].replace(/\*/g,".*?"),K[0]==="-")X.skips.push(new RegExp("^"+K.slice(1)+"$"));else X.names.push(new RegExp("^"+K+"$"))}}function V(){let K=[...X.names.map(Y),...X.skips.map(Y).map((q)=>"-"+q)].join(",");return X.enable(""),K}function Q(K){if(K[K.length-1]==="*")return!0;let q,f;for(q=0,f=X.skips.length;q<f;q++)if(X.skips[q].test(K))return!1;for(q=0,f=X.names.length;q<f;q++)if(X.names[q].test(K))return!0;return!1}function Y(K){return K.toString().substring(2,K.toString().length-2).replace(/\.\*\?$/,"*")}function z(K){if(K instanceof Error)return K.stack||K.message;return K}function W(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return X.enable(X.load()),X}hU.exports=a$1});var mU=S((yU,dJ)=>{yU.formatArgs=u$1;yU.save=d$1;yU.load=s$1;yU.useColors=i$1;yU.storage=p$1();yU.destroy=(()=>{let J=!1;return()=>{if(!J)J=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();yU.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function i$1(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let J;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(J=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(J[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function u$1(J){if(J[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+J[0]+(this.useColors?"%c ":" ")+"+"+dJ.exports.humanize(this.diff),!this.useColors)return;let G="color: "+this.color;J.splice(1,0,G,"color: inherit");let X=0,H=0;J[0].replace(/%[a-zA-Z%]/g,(Z)=>{if(Z==="%%")return;if(X++,Z==="%c")H=X}),J.splice(H,0,G)}yU.log=console.debug||console.log||(()=>{});function d$1(J){try{if(J)yU.storage.setItem("debug",J);else yU.storage.removeItem("debug")}catch(G){}}function s$1(){let J;try{J=yU.storage.getItem("debug")}catch(G){}if(!J&&typeof process!=="undefined"&&"env"in process)J=process.env.DEBUG;return J}function p$1(){try{return localStorage}catch(J){}}dJ.exports=o7()(yU);var{formatters:n$1}=dJ.exports;n$1.j=function(J){try{return JSON.stringify(J)}catch(G){return"[UnexpectedJSONParseError]: "+G.message}}});var lU={};ZU1(lU,{default:()=>UU1,createSupportsColor:()=>e7});import t7 from"process";import QU1 from"os";import xU from"tty";function O2(J,G=globalThis.Deno?globalThis.Deno.args:t7.argv){let X=J.startsWith("-")?"":J.length===1?"-":"--",H=G.indexOf(X+J),Z=G.indexOf("--");return H!==-1&&(Z===-1||H<Z)}function YU1(){if("FORCE_COLOR"in r1){if(r1.FORCE_COLOR==="true")return 1;if(r1.FORCE_COLOR==="false")return 0;return r1.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(r1.FORCE_COLOR,10),3)}}function zU1(J){if(J===0)return!1;return{level:J,hasBasic:!0,has256:J>=2,has16m:J>=3}}function WU1(J,{streamIsTTY:G,sniffFlags:X=!0}={}){let H=YU1();if(H!==void 0)sJ=H;let Z=X?sJ:H;if(Z===0)return 0;if(X){if(O2("color=16m")||O2("color=full")||O2("color=truecolor"))return 3;if(O2("color=256"))return 2}if("TF_BUILD"in r1&&"AGENT_NAME"in r1)return 1;if(J&&!G&&Z===void 0)return 0;let V=Z||0;if(r1.TERM==="dumb")return V;if(t7.platform==="win32"){let Q=QU1.release().split(".");if(Number(Q[0])>=10&&Number(Q[2])>=10586)return Number(Q[2])>=14931?3:2;return 1}if("CI"in r1){if("GITHUB_ACTIONS"in r1||"GITEA_ACTIONS"in r1)return 3;if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((Q)=>(Q in r1))||r1.CI_NAME==="codeship")return 1;return V}if("TEAMCITY_VERSION"in r1)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r1.TEAMCITY_VERSION)?1:0;if(r1.COLORTERM==="truecolor")return 3;if(r1.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in r1){let Q=Number.parseInt((r1.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r1.TERM_PROGRAM){case"iTerm.app":return Q>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(r1.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r1.TERM))return 1;if("COLORTERM"in r1)return 1;return V}function e7(J,G={}){let X=WU1(J,{streamIsTTY:J&&J.isTTY,...G});return zU1(X)}var r1,sJ,$U1,UU1;var cU=VU1(()=>{({env:r1}=t7);if(O2("no-color")||O2("no-colors")||O2("color=false")||O2("color=never"))sJ=0;else if(O2("color")||O2("colors")||O2("color=true")||O2("color=always"))sJ=1;$U1={stdout:e7({isTTY:xU.isatty(1)}),stderr:e7({isTTY:xU.isatty(2)})},UU1=$U1});var uU=S((aU,nJ)=>{var BU1=import.meta.require("tty"),pJ=import.meta.require("util");aU.init=DU1;aU.log=FU1;aU.formatArgs=MU1;aU.save=jU1;aU.load=fU1;aU.useColors=RU1;aU.destroy=pJ.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");aU.colors=[6,2,3,4,5,1];try{let J=(cU(),KU1(lU));if(J&&(J.stderr||J).level>=2)aU.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch(J){}aU.inspectOpts=Object.keys(process.env).filter((J)=>{return/^debug_/i.test(J)}).reduce((J,G)=>{let X=G.substring(6).toLowerCase().replace(/_([a-z])/g,(Z,V)=>{return V.toUpperCase()}),H=process.env[G];if(/^(yes|on|true|enabled)$/i.test(H))H=!0;else if(/^(no|off|false|disabled)$/i.test(H))H=!1;else if(H==="null")H=null;else H=Number(H);return J[X]=H,J},{});function RU1(){return"colors"in aU.inspectOpts?Boolean(aU.inspectOpts.colors):BU1.isatty(process.stderr.fd)}function MU1(J){let{namespace:G,useColors:X}=this;if(X){let H=this.color,Z="\x1B[3"+(H<8?H:"8;5;"+H),V=` ${Z};1m${G} \x1B[0m`;J[0]=V+J[0].split("\n").join("\n"+V),J.push(Z+"m+"+nJ.exports.humanize(this.diff)+"\x1B[0m")}else J[0]=qU1()+G+" "+J[0]}function qU1(){if(aU.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function FU1(...J){return process.stderr.write(pJ.formatWithOptions(aU.inspectOpts,...J)+"\n")}function jU1(J){if(J)process.env.DEBUG=J;else delete process.env.DEBUG}function fU1(){return process.env.DEBUG}function DU1(J){J.inspectOpts={};let G=Object.keys(aU.inspectOpts);for(let X=0;X<G.length;X++)J.inspectOpts[G[X]]=aU.inspectOpts[G[X]]}nJ.exports=o7()(aU);var{formatters:rU}=nJ.exports;rU.o=function(J){return this.inspectOpts.colors=this.useColors,pJ.inspect(J,this.inspectOpts).split("\n").map((G)=>G.trim()).join(" ")};rU.O=function(J){return this.inspectOpts.colors=this.useColors,pJ.inspect(J,this.inspectOpts)}});var dU=S((n_1,J3)=>{if(typeof process==="undefined"||process.type==="renderer"||!1||process.__nwjs)J3.exports=mU();else J3.exports=uU()});var X3=S((nU)=>{Object.defineProperty(nU,"__esModule",{value:!0});nU.isBindingIdentifier=nU1;nU.isBlockScoped=GK1;nU.isExpression=eU1;nU.isFlow=QK1;nU.isForAwaitStatement=WK1;nU.isGenerated=ZK1;nU.isPure=VK1;nU.isReferenced=JK1;nU.isReferencedIdentifier=sU1;nU.isReferencedMemberExpression=pU1;nU.isRestProperty=YK1;nU.isScope=tU1;nU.isSpreadProperty=zK1;nU.isStatement=oU1;nU.isUser=HK1;nU.isVar=XK1;var TU1=F1(),{isBinding:NU1,isBlockScoped:kU1,isExportDeclaration:EU1,isExpression:OU1,isFlow:vU1,isForStatement:_U1,isForXStatement:gU1,isIdentifier:sU,isImportDeclaration:bU1,isImportSpecifier:hU1,isJSXIdentifier:yU1,isJSXMemberExpression:mU1,isMemberExpression:xU1,isRestElement:pU,isReferenced:G3,isScope:lU1,isStatement:cU1,isVar:rU1,isVariableDeclaration:aU1,react:iU1,isForOfStatement:uU1}=TU1,{isCompatTag:dU1}=iU1;function sU1(J){let{node:G,parent:X}=this;if(!sU(G,J)&&!mU1(X,J))if(yU1(G,J)){if(dU1(G.name))return!1}else return!1;return G3(G,X,this.parentPath.parent)}function pU1(){let{node:J,parent:G}=this;return xU1(J)&&G3(J,G)}function nU1(){let{node:J,parent:G}=this,X=this.parentPath.parent;return sU(J)&&NU1(J,G,X)}function oU1(){let{node:J,parent:G}=this;if(cU1(J)){if(aU1(J)){if(gU1(G,{left:J}))return!1;if(_U1(G,{init:J}))return!1}return!0}else return!1}function eU1(){if(this.isIdentifier())return this.isReferencedIdentifier();else return OU1(this.node)}function tU1(){return lU1(this.node,this.parent)}function JK1(){return G3(this.node,this.parent)}function GK1(){return kU1(this.node)}function XK1(){return rU1(this.node)}function HK1(){return this.node&&!!this.node.loc}function ZK1(){return!this.isUser()}function VK1(J){return this.scope.isPure(this.node,J)}function QK1(){let{node:J}=this;if(vU1(J))return!0;else if(bU1(J))return J.importKind==="type"||J.importKind==="typeof";else if(EU1(J))return J.exportKind==="type";else if(hU1(J))return J.importKind==="type"||J.importKind==="typeof";else return!1}function YK1(){var J;return pU(this.node)&&((J=this.parentPath)==null?void 0:J.isObjectPattern())}function zK1(){var J;return pU(this.node)&&((J=this.parentPath)==null?void 0:J.isObjectExpression())}function WK1(){return uU1(this.node,{await:!0})}nU.isExistentialTypeParam=function J(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},nU.isNumericLiteralTypeAnnotation=function J(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var c9=S(($K)=>{Object.defineProperty($K,"__esModule",{value:!0});$K.environmentVisitor=vK1;$K.explode=YK;$K.isExplodedVisitor=QK;$K.merge=WK;$K.verify=zK;var VK=n7(),wK1=X3(),LK1=F1(),oU=o2(),{DEPRECATED_KEYS:eU,DEPRECATED_ALIASES:tU,FLIPPED_ALIAS_KEYS:JK,TYPES:TK1,__internal__deprecationWarning:GK}=LK1;function NK1(J){return J in VK}function QK(J){return J==null?void 0:J._exploded}function YK(J){if(QK(J))return J;J._exploded=!0;for(let G of Object.keys(J)){if(H5(G))continue;let X=G.split("|");if(X.length===1)continue;let H=J[G];delete J[G];for(let Z of X)J[Z]=H}zK(J),delete J.__esModule,kK1(J),ZK(J);for(let G of Object.keys(J)){if(H5(G))continue;if(!NK1(G))continue;let X=J[G];for(let Z of Object.keys(X))X[Z]=EK1(G,X[Z]);delete J[G];let H=VK[G];if(H!==null)for(let Z of H)if(J[Z])l9(J[Z],X);else J[Z]=X;else l9(J,X)}for(let G of Object.keys(J)){if(H5(G))continue;let X=JK[G];if(G in eU){let Z=eU[G];GK(G,Z,"Visitor "),X=[Z]}else if(G in tU){let Z=tU[G];GK(G,Z,"Visitor "),X=JK[Z]}if(!X)continue;let H=J[G];delete J[G];for(let Z of X){let V=J[Z];if(V)l9(V,H);else J[Z]=Object.assign({},H)}}for(let G of Object.keys(J)){if(H5(G))continue;ZK(J[G])}return J}function zK(J){if(J._verified)return;if(typeof J==="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let G of Object.keys(J)){if(G==="enter"||G==="exit")XK(G,J[G]);if(H5(G))continue;if(!TK1.includes(G))throw new Error(`You gave us a visitor for the node type ${G} but it's not a valid type in @babel/traverse 7.25.7`);let X=J[G];if(typeof X==="object")for(let H of Object.keys(X))if(H==="enter"||H==="exit")XK(`${G}.${H}`,X[H]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${G} that has the invalid property ${H}`)}J._verified=!0}function XK(J,G){let X=[].concat(G);for(let H of X)if(typeof H!=="function")throw new TypeError(`Non-function found defined in ${J} with type ${typeof H}`)}function WK(J,G=[],X){let H={_verified:!0,_exploded:!0};Object.defineProperty(H,"_exploded",{enumerable:!1}),Object.defineProperty(H,"_verified",{enumerable:!1});for(let Z=0;Z<J.length;Z++){let V=YK(J[Z]),Q=G[Z],Y=V;if(Q||X)Y=HK(Y,Q,X);l9(H,Y);for(let z of Object.keys(V)){if(H5(z))continue;let W=V[z];if(Q||X)W=HK(W,Q,X);let K=H[z]||(H[z]={});l9(K,W)}}return H}function HK(J,G,X){let H={};for(let Z of["enter","exit"]){let V=J[Z];if(!Array.isArray(V))continue;V=V.map(function(Q){let Y=Q;if(G)Y=function(z){Q.call(G,z,G)};if(X)Y=X(G==null?void 0:G.key,Z,Y);if(Y!==Q)Y.toString=()=>Q.toString();return Y}),H[Z]=V}return H}function kK1(J){for(let G of Object.keys(J)){if(H5(G))continue;let X=J[G];if(typeof X==="function")J[G]={enter:X}}}function ZK(J){if(J.enter&&!Array.isArray(J.enter))J.enter=[J.enter];if(J.exit&&!Array.isArray(J.exit))J.exit=[J.exit]}function EK1(J,G){let X=`is${J}`,H=wK1[X],Z=function(V){if(H.call(V))return G.apply(this,arguments)};return Z.toString=()=>G.toString(),Z}function H5(J){if(J[0]==="_")return!0;if(J==="enter"||J==="exit"||J==="shouldSkip")return!0;if(J==="denylist"||J==="noScope"||J==="skipKeys")return!0;if(J==="blacklist")return!0;return!1}function l9(J,G){for(let X of["enter","exit"]){if(!G[X])continue;J[X]=[].concat(J[X]||[],G[X])}}var OK1={FunctionParent(J){if(J.isArrowFunctionExpression())return;if(J.skip(),J.isMethod())if(!J.requeueComputedKeyAndDecorators)oU.requeueComputedKeyAndDecorators.call(J);else J.requeueComputedKeyAndDecorators()},Property(J){if(J.isObjectProperty())return;if(J.skip(),!J.requeueComputedKeyAndDecorators)oU.requeueComputedKeyAndDecorators.call(J);else J.requeueComputedKeyAndDecorators()}};function vK1(J){return WK([OK1,J])}});var RK=S((KK)=>{Object.defineProperty(KK,"__esModule",{value:!0});KK.default=void 0;var oJ=F1(),mK1=oJ,xK1=eJ(),lK1=c9(),cK1=o2(),{getAssignmentIdentifiers:rK1}=mK1,aK1={ReferencedIdentifier({node:J},G){if(J.name===G.oldName)J.name=G.newName},Scope(J,G){if(!J.scope.bindingIdentifierEquals(G.oldName,G.binding.identifier)){if(J.skip(),J.isMethod())if(!J.requeueComputedKeyAndDecorators)cK1.requeueComputedKeyAndDecorators.call(J);else J.requeueComputedKeyAndDecorators()}},ObjectProperty({node:J,scope:G},X){let{name:H}=J.key;if(J.shorthand&&(H===X.oldName||H===X.newName)&&G.getBindingIdentifier(H)===X.binding.identifier){J.shorthand=!1;{var Z;if((Z=J.extra)!=null&&Z.shorthand)J.extra.shorthand=!1}}},"AssignmentExpression|Declaration|VariableDeclarator"(J,G){if(J.isVariableDeclaration())return;let X=J.isAssignmentExpression()?rK1(J.node):J.getOuterBindingIdentifiers();for(let H in X)if(H===G.oldName)X[H].name=G.newName}};class UK{constructor(J,G,X){this.newName=X,this.oldName=G,this.binding=J}maybeConvertFromExportDeclaration(J){let G=J.parentPath;if(!G.isExportDeclaration())return;if(G.isExportDefaultDeclaration()){let{declaration:X}=G.node;if(oJ.isDeclaration(X)&&!X.id)return}if(G.isExportAllDeclaration())return;G.splitExportDeclaration()}maybeConvertFromClassFunctionDeclaration(J){return J}maybeConvertFromClassFunctionExpression(J){return J}rename(){let{binding:J,oldName:G,newName:X}=this,{scope:H,path:Z}=J,V=Z.find((z)=>z.isDeclaration()||z.isFunctionExpression()||z.isClassExpression());if(V){if(V.getOuterBindingIdentifiers()[G]===J.identifier)this.maybeConvertFromExportDeclaration(V)}let Q=arguments[0]||H.block,Y={discriminant:!0};if(oJ.isMethod(Q)){if(Q.computed)Y.key=!0;if(!oJ.isObjectMethod(Q))Y.decorators=!0}if(xK1.traverseNode(Q,lK1.explode(aK1),H,this,H.path,Y),!arguments[0])H.removeOwnBinding(G),H.bindings[X]=J,this.binding.identifier.name=X;if(V)this.maybeConvertFromClassFunctionDeclaration(Z),this.maybeConvertFromClassFunctionExpression(Z)}}KK.default=UK});var jK=S((qK)=>{Object.defineProperty(qK,"__esModule",{value:!0});qK.default=void 0;class MK{constructor({identifier:J,scope:G,path:X,kind:H}){if(this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=J,this.scope=G,this.path=X,this.kind=H,(H==="var"||H==="hoisted")&&iK1(X))this.reassign(X);this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(J){if(this.hasDeoptedValue)return;this.hasValue=!0,this.value=J}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(J){if(this.constant=!1,this.constantViolations.includes(J))return;this.constantViolations.push(J)}reference(J){if(this.referencePaths.includes(J))return;this.referenced=!0,this.references++,this.referencePaths.push(J)}dereference(){this.references--,this.referenced=!!this.references}}qK.default=MK;function iK1(J){for(let{parentPath:G,key:X}=J;G;{parentPath:G,key:X}=G){if(G.isFunctionParent())return!1;if(G.isWhile()||G.isForXStatement()||G.isForStatement()&&X==="body")return!0}return!1}});var fK=S((Hg1,uK1)=>{uK1.exports={builtin:{Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es5:{Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},es2015:{Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2017:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},browser:{AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffectReadOnly:!1,AnimationEffectTiming:!1,AnimationEffectTimingReadOnly:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,"AudioWorkletGlobalScope ":!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,blur:!1,BroadcastChannel:!1,btoa:!1,BudgetService:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClipboardEvent:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ConvolverNode:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,CredentialsContainer:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSConditionRule:!1,CSSFontFaceRule:!1,CSSGroupingRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSRule:!1,CSSRuleList:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,defaultstatus:!1,defaultStatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FontFaceSetLoadEvent:!1,FormData:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLLabelElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDeadline:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,Intl:!1,isSecureContext:!1,KeyboardEvent:!1,KeyframeEffect:!1,KeyframeEffectReadOnly:!1,length:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,matchMedia:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyMessageEvent:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaSettingsRange:!1,MediaSource:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackEvent:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigationPreloadManager:!1,navigator:!1,Navigator:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!0,onabort:!0,onafterprint:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinstallprompt:!0,onbeforeprint:!0,onbeforeunload:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontextmenu:!0,oncuechange:!0,ondblclick:!0,ondevicemotion:!0,ondeviceorientation:!0,ondeviceorientationabsolute:!0,ondrag:!0,ondragend:!0,ondragenter:!0,ondragleave:!0,ondragover:!0,ondragstart:!0,ondrop:!0,ondurationchange:!0,onemptied:!0,onended:!0,onerror:!0,onfocus:!0,ongotpointercapture:!0,onhashchange:!0,oninput:!0,oninvalid:!0,onkeydown:!0,onkeypress:!0,onkeyup:!0,onlanguagechange:!0,onload:!0,onloadeddata:!0,onloadedmetadata:!0,onloadstart:!0,onlostpointercapture:!0,onmessage:!0,onmessageerror:!0,onmousedown:!0,onmouseenter:!0,onmouseleave:!0,onmousemove:!0,onmouseout:!0,onmouseover:!0,onmouseup:!0,onmousewheel:!0,onoffline:!0,ononline:!0,onpagehide:!0,onpageshow:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onsearch:!0,onseeked:!0,onseeking:!0,onselect:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitionend:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,Path2D:!1,PaymentAddress:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,PhotoCapabilities:!1,Plugin:!1,PluginArray:!1,PointerEvent:!1,PopStateEvent:!1,postMessage:!1,Presentation:!1,PresentationAvailability:!1,PresentationConnection:!1,PresentationConnectionAvailableEvent:!1,PresentationConnectionCloseEvent:!1,PresentationConnectionList:!1,PresentationReceiver:!1,PresentationRequest:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableStream:!1,registerProcessor:!1,RemotePlayback:!1,removeEventListener:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCIceCandidate:!1,RTCIceGatherer:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceEvent:!1,RTCRtpContributingSource:!1,RTCRtpReceiver:!1,RTCRtpSender:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageEvent:!1,StorageManager:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAngle:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGComponentTransferFunctionElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGElement:!1,SVGEllipseElement:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGImageElement:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPathElement:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGViewElement:!1,TaskAttributionTiming:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeRanges:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,URLSearchParams:!1,ValidityState:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,WritableStream:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XSLTProcessor:!1},worker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,console:!1,fetch:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,removeEventListener:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},node:{__dirname:!1,__filename:!1,Buffer:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,exports:!0,global:!1,Intl:!1,module:!1,process:!1,queueMicrotask:!1,require:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1},commonjs:{exports:!0,global:!1,module:!1,require:!1},amd:{define:!1,require:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fdescribe:!1,fit:!1,it:!1,jest:!1,pit:!1,require:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},wsh:{ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WScript:!0,WSH:!0,XDomainRequest:!0},jquery:{$:!1,jQuery:!1},yui:{YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1},shelljs:{cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,target:!1,tempdir:!1,test:!1,touch:!1,which:!1},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},meteor:{_:!1,$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},serviceworker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,CacheStorage:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,close:!0,console:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!1,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,registration:!1,removeEventListener:!1,Request:!1,Response:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,WindowClient:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},atomtest:{advanceClock:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},protractor:{$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},"shared-node-browser":{clearInterval:!1,clearTimeout:!1,console:!1,setInterval:!1,setTimeout:!1,URL:!1,URLSearchParams:!1},webextensions:{browser:!1,chrome:!1,opr:!1},greasemonkey:{cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addStyle:!1,GM_deleteValue:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_setClipboard:!1,GM_setValue:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},devtools:{$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1}}});var Z5=S((IK)=>{Object.defineProperty(IK,"__esModule",{value:!0});IK.clear=sK1;IK.clearPath=DK;IK.clearScope=AK;IK.getCachedPaths=pK1;IK.getOrCreateCachedPaths=nK1;IK.scope=IK.path=void 0;var tJ=IK.path=new WeakMap,dK1=IK.scope=new WeakMap;function sK1(){DK(),AK()}function DK(){IK.path=tJ=new WeakMap}function AK(){IK.scope=dK1=new WeakMap}var H3=Object.freeze({});function pK1(J,G){var X,H;return J=null,(X=tJ.get((H=J)!=null?H:H3))==null?void 0:X.get(G)}function nK1(J,G){var X,H;J=null;let Z=tJ.get((X=J)!=null?X:H3);if(!Z)tJ.set((H=J)!=null?H:H3,Z=new WeakMap);let V=Z.get(G);if(!V)Z.set(G,V=new Map);return V}});var z3=S((hK)=>{Object.defineProperty(hK,"__esModule",{value:!0});hK.default=void 0;var XB1=RK(),HB1=r9(),ZB1=jK(),VB1=fK(),OK=F1(),QB1=OK,SK=Z5(),YB1=c9(),{NOT_LOCAL_BINDING:PK,assignmentExpression:zB1,callExpression:wK,cloneNode:LK,getBindingIdentifiers:vK,identifier:Q5,isArrayExpression:_K,isBinary:WB1,isCallExpression:TK,isClass:$B1,isClassBody:UB1,isClassDeclaration:KB1,isExportAllDeclaration:gK,isExportDefaultDeclaration:BB1,isExportNamedDeclaration:V3,isFunctionDeclaration:RB1,isIdentifier:V5,isImportDeclaration:Q3,isLiteral:MB1,isMemberExpression:qB1,isMethod:FB1,isModuleSpecifier:jB1,isNullLiteral:fB1,isObjectExpression:DB1,isProperty:AB1,isPureish:IB1,isRegExpLiteral:CB1,isSuper:SB1,isTaggedTemplateExpression:PB1,isTemplateLiteral:bK,isThisExpression:NK,isUnaryExpression:wB1,isVariableDeclaration:LB1,expressionStatement:TB1,matchesPattern:kK,memberExpression:Y3,numericLiteral:NB1,toIdentifier:kB1,variableDeclaration:EB1,variableDeclarator:OB1,isRecordExpression:vB1,isTupleExpression:_B1,isObjectProperty:gB1,isTopicReference:EK,isMetaProperty:bB1,isPrivateName:hB1,isExportDeclaration:yB1,buildUndefinedNode:mB1,sequenceExpression:xB1}=OK;function m1(J,G){switch(J==null?void 0:J.type){default:if(Q3(J)||yB1(J)){var X;if((gK(J)||V3(J)||Q3(J))&&J.source)m1(J.source,G);else if((V3(J)||Q3(J))&&(X=J.specifiers)!=null&&X.length)for(let H of J.specifiers)m1(H,G);else if((BB1(J)||V3(J))&&J.declaration)m1(J.declaration,G)}else if(jB1(J))m1(J.local,G);else if(MB1(J)&&!fB1(J)&&!CB1(J)&&!bK(J))G.push(J.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":m1(J.object,G),m1(J.property,G);break;case"Identifier":case"JSXIdentifier":G.push(J.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":m1(J.callee,G);break;case"ObjectExpression":case"ObjectPattern":for(let H of J.properties)m1(H,G);break;case"SpreadElement":case"RestElement":m1(J.argument,G);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":m1(J.key,G);break;case"ThisExpression":G.push("this");break;case"Super":G.push("super");break;case"Import":G.push("import");break;case"DoExpression":G.push("do");break;case"YieldExpression":G.push("yield"),m1(J.argument,G);break;case"AwaitExpression":G.push("await"),m1(J.argument,G);break;case"AssignmentExpression":m1(J.left,G);break;case"VariableDeclarator":m1(J.id,G);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":m1(J.id,G);break;case"PrivateName":m1(J.id,G);break;case"ParenthesizedExpression":m1(J.expression,G);break;case"UnaryExpression":case"UpdateExpression":m1(J.argument,G);break;case"MetaProperty":m1(J.meta,G),m1(J.property,G);break;case"JSXElement":m1(J.openingElement,G);break;case"JSXOpeningElement":m1(J.name,G);break;case"JSXFragment":m1(J.openingFragment,G);break;case"JSXOpeningFragment":G.push("Fragment");break;case"JSXNamespacedName":m1(J.namespace,G),m1(J.name,G);break}}var JG={ForStatement(J){let G=J.get("init");if(G.isVar()){let{scope:X}=J;(X.getFunctionParent()||X.getProgramParent()).registerBinding("var",G)}},Declaration(J){if(J.isBlockScoped())return;if(J.isImportDeclaration())return;if(J.isExportDeclaration())return;(J.scope.getFunctionParent()||J.scope.getProgramParent()).registerDeclaration(J)},ImportDeclaration(J){J.scope.getBlockParent().registerDeclaration(J)},ReferencedIdentifier(J,G){G.references.push(J)},ForXStatement(J,G){let X=J.get("left");if(X.isPattern()||X.isIdentifier())G.constantViolations.push(J);else if(X.isVar()){let{scope:H}=J;(H.getFunctionParent()||H.getProgramParent()).registerBinding("var",X)}},ExportDeclaration:{exit(J){let{node:G,scope:X}=J;if(gK(G))return;let H=G.declaration;if(KB1(H)||RB1(H)){let Z=H.id;if(!Z)return;let V=X.getBinding(Z.name);V==null||V.reference(J)}else if(LB1(H))for(let Z of H.declarations)for(let V of Object.keys(vK(Z))){let Q=X.getBinding(V);Q==null||Q.reference(J)}}},LabeledStatement(J){J.scope.getBlockParent().registerDeclaration(J)},AssignmentExpression(J,G){G.assignments.push(J)},UpdateExpression(J,G){G.constantViolations.push(J)},UnaryExpression(J,G){if(J.node.operator==="delete")G.constantViolations.push(J)},BlockScoped(J){let G=J.scope;if(G.path===J)G=G.parent;if(G.getBlockParent().registerDeclaration(J),J.isClassDeclaration()&&J.node.id){let Z=J.node.id.name;J.scope.bindings[Z]=J.scope.parent.getBinding(Z)}},CatchClause(J){J.scope.registerBinding("let",J)},Function(J){let G=J.get("params");for(let X of G)J.scope.registerBinding("param",X);if(J.isFunctionExpression()&&J.node.id&&!J.node.id[PK])J.scope.registerBinding("local",J.get("id"),J)},ClassExpression(J){if(J.node.id&&!J.node.id[PK])J.scope.registerBinding("local",J.get("id"),J)},TSTypeAnnotation(J){J.skip()}},lB1=0;class v2{constructor(J){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.references=void 0,this.globals=void 0,this.uids=void 0,this.data=void 0,this.crawling=void 0;let{node:G}=J,X=SK.scope.get(G);if((X==null?void 0:X.path)===J)return X;SK.scope.set(G,this),this.uid=lB1++,this.block=G,this.path=J,this.labels=new Map,this.inited=!1}get parent(){var J;let G,X=this.path;do{var H;let Z=X.key==="key"||X.listKey==="decorators";if(X=X.parentPath,Z&&X.isMethod())X=X.parentPath;if((H=X)!=null&&H.isScope())G=X}while(X&&!G);return(J=G)==null?void 0:J.scope}generateDeclaredUidIdentifier(J){let G=this.generateUidIdentifier(J);return this.push({id:G}),LK(G)}generateUidIdentifier(J){return Q5(this.generateUid(J))}generateUid(J="temp"){J=kB1(J).replace(/^_+/,"").replace(/\d+$/g,"");let G,X=1;do{if(G=`_${J}`,X>1)G+=X;X++}while(this.hasLabel(G)||this.hasBinding(G)||this.hasGlobal(G)||this.hasReference(G));let H=this.getProgramParent();return H.references[G]=!0,H.uids[G]=!0,G}generateUidBasedOnNode(J,G){let X=[];m1(J,X);let H=X.join("$");return H=H.replace(/^_/,"")||G||"ref",this.generateUid(H.slice(0,20))}generateUidIdentifierBasedOnNode(J,G){return Q5(this.generateUidBasedOnNode(J,G))}isStatic(J){if(NK(J)||SB1(J)||EK(J))return!0;if(V5(J)){let G=this.getBinding(J.name);if(G)return G.constant;else return this.hasBinding(J.name)}return!1}maybeGenerateMemoised(J,G){if(this.isStatic(J))return null;else{let X=this.generateUidIdentifierBasedOnNode(J);if(!G)return this.push({id:X}),LK(X);return X}}checkBlockScopedCollisions(J,G,X,H){if(G==="param")return;if(J.kind==="local")return;if(G==="let"||J.kind==="let"||J.kind==="const"||J.kind==="module"||J.kind==="param"&&G==="const")throw this.path.hub.buildError(H,`Duplicate declaration "${X}"`,TypeError)}rename(J,G){let X=this.getBinding(J);if(X)G||(G=this.generateUidIdentifier(J).name),new XB1.default(X,J,G).rename(arguments[2])}dump(){let J="-".repeat(60);console.log(J);let G=this;do{console.log("#",G.block.type);for(let X of Object.keys(G.bindings)){let H=G.bindings[X];console.log(" -",X,{constant:H.constant,references:H.references,violations:H.constantViolations.length,kind:H.kind})}}while(G=G.parent);console.log(J)}hasLabel(J){return!!this.getLabel(J)}getLabel(J){return this.labels.get(J)}registerLabel(J){this.labels.set(J.node.label.name,J)}registerDeclaration(J){if(J.isLabeledStatement())this.registerLabel(J);else if(J.isFunctionDeclaration())this.registerBinding("hoisted",J.get("id"),J);else if(J.isVariableDeclaration()){let G=J.get("declarations"),{kind:X}=J.node;for(let H of G)this.registerBinding(X==="using"||X==="await using"?"const":X,H)}else if(J.isClassDeclaration()){if(J.node.declare)return;this.registerBinding("let",J)}else if(J.isImportDeclaration()){let G=J.node.importKind==="type"||J.node.importKind==="typeof",X=J.get("specifiers");for(let H of X){let Z=G||H.isImportSpecifier()&&(H.node.importKind==="type"||H.node.importKind==="typeof");this.registerBinding(Z?"unknown":"module",H)}}else if(J.isExportDeclaration()){let G=J.get("declaration");if(G.isClassDeclaration()||G.isFunctionDeclaration()||G.isVariableDeclaration())this.registerDeclaration(G)}else this.registerBinding("unknown",J)}buildUndefinedNode(){return mB1()}registerConstantViolation(J){let G=J.getAssignmentIdentifiers();for(let H of Object.keys(G)){var X;(X=this.getBinding(H))==null||X.reassign(J)}}registerBinding(J,G,X=G){if(!J)throw new ReferenceError("no `kind`");if(G.isVariableDeclaration()){let V=G.get("declarations");for(let Q of V)this.registerBinding(J,Q);return}let H=this.getProgramParent(),Z=G.getOuterBindingIdentifiers(!0);for(let V of Object.keys(Z)){H.references[V]=!0;for(let Q of Z[V]){let Y=this.getOwnBinding(V);if(Y){if(Y.identifier===Q)continue;this.checkBlockScopedCollisions(Y,J,V,Q)}if(Y)Y.reassign(X);else this.bindings[V]=new ZB1.default({identifier:Q,scope:this,path:X,kind:J})}}}addGlobal(J){this.globals[J.name]=J}hasUid(J){let G=this;do if(G.uids[J])return!0;while(G=G.parent);return!1}hasGlobal(J){let G=this;do if(G.globals[J])return!0;while(G=G.parent);return!1}hasReference(J){return!!this.getProgramParent().references[J]}isPure(J,G){if(V5(J)){let V=this.getBinding(J.name);if(!V)return!1;if(G)return V.constant;return!0}else if(NK(J)||bB1(J)||EK(J)||hB1(J))return!0;else if($B1(J)){var X;if(J.superClass&&!this.isPure(J.superClass,G))return!1;if(((X=J.decorators)==null?void 0:X.length)>0)return!1;return this.isPure(J.body,G)}else if(UB1(J)){for(let V of J.body)if(!this.isPure(V,G))return!1;return!0}else if(WB1(J))return this.isPure(J.left,G)&&this.isPure(J.right,G);else if(_K(J)||_B1(J)){for(let V of J.elements)if(V!==null&&!this.isPure(V,G))return!1;return!0}else if(DB1(J)||vB1(J)){for(let V of J.properties)if(!this.isPure(V,G))return!1;return!0}else if(FB1(J)){var H;if(J.computed&&!this.isPure(J.key,G))return!1;if(((H=J.decorators)==null?void 0:H.length)>0)return!1;return!0}else if(AB1(J)){var Z;if(J.computed&&!this.isPure(J.key,G))return!1;if(((Z=J.decorators)==null?void 0:Z.length)>0)return!1;if(gB1(J)||J.static){if(J.value!==null&&!this.isPure(J.value,G))return!1}return!0}else if(wB1(J))return this.isPure(J.argument,G);else if(bK(J)){for(let V of J.expressions)if(!this.isPure(V,G))return!1;return!0}else if(PB1(J))return kK(J.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(J.quasi,G);else if(qB1(J))return!J.computed&&V5(J.object)&&J.object.name==="Symbol"&&V5(J.property)&&J.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0});else if(TK(J))return kK(J.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&J.arguments.length===1&&QB1.isStringLiteral(J.arguments[0]);else return IB1(J)}setData(J,G){return this.data[J]=G}getData(J){let G=this;do{let X=G.data[J];if(X!=null)return X}while(G=G.parent)}removeData(J){let G=this;do if(G.data[J]!=null)G.data[J]=null;while(G=G.parent)}init(){if(!this.inited)this.inited=!0,this.crawl()}crawl(){let J=this.path;this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null);let G=this.getProgramParent();if(G.crawling)return;let X={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,J.type!=="Program"&&YB1.isExplodedVisitor(JG)){for(let Z of JG.enter)Z.call(X,J,X);let H=JG[J.type];if(H)for(let Z of H.enter)Z.call(X,J,X)}J.traverse(JG,X),this.crawling=!1;for(let H of X.assignments){let Z=H.getAssignmentIdentifiers();for(let V of Object.keys(Z)){if(H.scope.getBinding(V))continue;G.addGlobal(Z[V])}H.scope.registerConstantViolation(H)}for(let H of X.references){let Z=H.scope.getBinding(H.node.name);if(Z)Z.reference(H);else G.addGlobal(H.node)}for(let H of X.constantViolations)H.scope.registerConstantViolation(H)}push(J){let G=this.path;if(G.isPattern())G=this.getPatternParent().path;else if(!G.isBlockStatement()&&!G.isProgram())G=this.getBlockParent().path;if(G.isSwitchStatement())G=(this.getFunctionParent()||this.getProgramParent()).path;let{init:X,unique:H,kind:Z="var",id:V}=J;if(!X&&!H&&(Z==="var"||Z==="let")&&G.isFunction()&&!G.node.name&&TK(G.parent,{callee:G.node})&&G.parent.arguments.length<=G.node.params.length&&V5(V)){G.pushContainer("params",V),G.scope.registerBinding("param",G.get("params")[G.node.params.length-1]);return}if(G.isLoop()||G.isCatchClause()||G.isFunction())G.ensureBlock(),G=G.get("body");let Q=J._blockHoist==null?2:J._blockHoist,Y=`declaration:${Z}:${Q}`,z=!H&&G.getData(Y);if(!z){let q=EB1(Z,[]);if(q._blockHoist=Q,[z]=G.unshiftContainer("body",[q]),!H)G.setData(Y,z)}let W=OB1(V,X),K=z.node.declarations.push(W);G.scope.registerBinding(Z,z.get("declarations")[K-1])}getProgramParent(){let J=this;do if(J.path.isProgram())return J;while(J=J.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let J=this;do if(J.path.isFunctionParent())return J;while(J=J.parent);return null}getBlockParent(){let J=this;do if(J.path.isBlockParent())return J;while(J=J.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let J=this;do if(!J.path.isPattern())return J.getBlockParent();while(J=J.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let J=Object.create(null),G=this;do{for(let X of Object.keys(G.bindings))if(X in J===!1)J[X]=G.bindings[X];G=G.parent}while(G);return J}bindingIdentifierEquals(J,G){return this.getBindingIdentifier(J)===G}getBinding(J){let G=this,X;do{let Z=G.getOwnBinding(J);if(Z){var H;if((H=X)!=null&&H.isPattern()&&Z.kind!=="param"&&Z.kind!=="local");else return Z}else if(!Z&&J==="arguments"&&G.path.isFunction()&&!G.path.isArrowFunctionExpression())break;X=G.path}while(G=G.parent)}getOwnBinding(J){return this.bindings[J]}getBindingIdentifier(J){var G;return(G=this.getBinding(J))==null?void 0:G.identifier}getOwnBindingIdentifier(J){let G=this.bindings[J];return G==null?void 0:G.identifier}hasOwnBinding(J){return!!this.getOwnBinding(J)}hasBinding(J,G){if(!J)return!1;let X=this;do if(X.hasOwnBinding(J))return!0;while(X=X.parent);let H,Z;if(typeof G==="object")H=G.noGlobals,Z=G.noUids;else if(typeof G==="boolean")H=G;if(!Z&&this.hasUid(J))return!0;if(!H&&v2.globals.includes(J))return!0;if(!H&&v2.contextVariables.includes(J))return!0;return!1}parentHasBinding(J,G){var X;return(X=this.parent)==null?void 0:X.hasBinding(J,G)}moveBindingTo(J,G){let X=this.getBinding(J);if(X)X.scope.removeOwnBinding(J),X.scope=G,G.bindings[J]=X}removeOwnBinding(J){delete this.bindings[J]}removeBinding(J){var G;(G=this.getBinding(J))==null||G.scope.removeOwnBinding(J);let X=this;do if(X.uids[J])X.uids[J]=!1;while(X=X.parent)}hoistVariables(J=(G)=>this.push({id:G})){this.crawl();let G=new Set;for(let H of Object.keys(this.bindings)){let Z=this.bindings[H];if(!Z)continue;let{path:V}=Z;if(!V.isVariableDeclarator())continue;let{parent:Q,parentPath:Y}=V;if(Q.kind!=="var"||G.has(Q))continue;G.add(V.parent);let z,W=[];for(let K of Q.declarations){var X;if((X=z)!=null||(z=K.id),K.init)W.push(zB1("=",K.id,K.init));let q=Object.keys(vK(K,!1,!0,!0));for(let f of q)J(Q5(f),K.init!=null)}if(Y.parentPath.isFor({left:Q}))Y.replaceWith(z);else if(W.length===0)Y.remove();else{let K=W.length===1?W[0]:xB1(W);if(Y.parentPath.isForStatement({init:Q}))Y.replaceWith(K);else Y.replaceWith(TB1(K))}}}}hK.default=v2;v2.globals=Object.keys(VB1.builtin);v2.contextVariables=["arguments","undefined","Infinity","NaN"];v2.prototype._renameFromMap=function J(G,X,H,Z){if(G[X])G[H]=Z,G[X]=null},v2.prototype.traverse=function(J,G,X){HB1.default(J,G,this,X,this.path)},v2.prototype._generateUid=function J(G,X){let H=G;if(X>1)H+=X;return`_${H}`},v2.prototype.toArray=function J(G,X,H){if(V5(G)){let Q=this.getBinding(G.name);if(Q!=null&&Q.constant&&Q.path.isGenericType("Array"))return G}if(_K(G))return G;if(V5(G,{name:"arguments"}))return wK(Y3(Y3(Y3(Q5("Array"),Q5("prototype")),Q5("slice")),Q5("call")),[G]);let Z,V=[G];if(X===!0)Z="toConsumableArray";else if(typeof X==="number")V.push(NB1(X)),Z="slicedToArray";else Z="toArray";if(H)V.unshift(this.path.hub.addHelper(Z)),Z="maybeArrayLike";return wK(this.path.hub.addHelper(Z),V)},v2.prototype.getAllBindingsOfKind=function J(...G){let X=Object.create(null);for(let H of G){let Z=this;do{for(let V of Object.keys(Z.bindings)){let Q=Z.bindings[V];if(Q.kind===H)X[V]=Q}Z=Z.parent}while(Z)}return X},Object.defineProperties(v2.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var xK=S((mK)=>{Object.defineProperty(mK,"__esModule",{value:!0});mK.find=iB1;mK.findParent=aB1;mK.getAncestry=nB1;mK.getDeepestCommonAncestorFrom=pB1;mK.getEarliestCommonAncestorFrom=sB1;mK.getFunctionParent=uB1;mK.getStatementParent=dB1;mK.inType=tB1;mK.isAncestor=oB1;mK.isDescendant=eB1;var cB1=F1(),{VISITOR_KEYS:rB1}=cB1;function aB1(J){let G=this;while(G=G.parentPath)if(J(G))return G;return null}function iB1(J){let G=this;do if(J(G))return G;while(G=G.parentPath);return null}function uB1(){return this.findParent((J)=>J.isFunction())}function dB1(){let J=this;do if(!J.parentPath||Array.isArray(J.container)&&J.isStatement())break;else J=J.parentPath;while(J);if(J&&(J.isProgram()||J.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return J}function sB1(J){return this.getDeepestCommonAncestorFrom(J,function(G,X,H){let Z,V=rB1[G.type];for(let Q of H){let Y=Q[X+1];if(!Z){Z=Y;continue}if(Y.listKey&&Z.listKey===Y.listKey){if(Y.key<Z.key){Z=Y;continue}}let z=V.indexOf(Z.parentKey),W=V.indexOf(Y.parentKey);if(z>W)Z=Y}return Z})}function pB1(J,G){if(!J.length)return this;if(J.length===1)return J[0];let X=1/0,H,Z,V=J.map((Y)=>{let z=[];do z.unshift(Y);while((Y=Y.parentPath)&&Y!==this);if(z.length<X)X=z.length;return z}),Q=V[0];J:for(let Y=0;Y<X;Y++){let z=Q[Y];for(let W of V)if(W[Y]!==z)break J;H=Y,Z=z}if(Z)if(G)return G(Z,H,V);else return Z;else throw new Error("Couldn't find intersection")}function nB1(){let J=this,G=[];do G.push(J);while(J=J.parentPath);return G}function oB1(J){return J.isDescendant(this)}function eB1(J){return!!this.findParent((G)=>G===J)}function tB1(...J){let G=this;while(G){for(let X of J)if(G.node.type===X)return!0;G=G.parentPath}return!1}});var W3=S((rK)=>{Object.defineProperty(rK,"__esModule",{value:!0});rK.createUnionType=RR1;var $R1=F1(),{createFlowUnionType:lK,createTSUnionType:cK,createUnionTypeAnnotation:UR1,isFlowType:KR1,isTSType:BR1}=$R1;function RR1(J){if(J.every((G)=>KR1(G))){if(lK)return lK(J);return UR1(J)}else if(J.every((G)=>BR1(G))){if(cK)return cK(J)}}});var pK=S((sK)=>{Object.defineProperty(sK,"__esModule",{value:!0});sK.default=DR1;var qR1=F1(),iK=W3(),{BOOLEAN_NUMBER_BINARY_OPERATORS:FR1,createTypeAnnotationBasedOnTypeof:jR1,numberTypeAnnotation:uK,voidTypeAnnotation:fR1}=qR1;function DR1(J){if(!this.isReferenced())return;let G=this.scope.getBinding(J.name);if(G)if(G.identifier.typeAnnotation)return G.identifier.typeAnnotation;else return AR1(G,this,J.name);if(J.name==="undefined")return fR1();else if(J.name==="NaN"||J.name==="Infinity")return uK();else if(J.name==="arguments");}function AR1(J,G,X){let H=[],Z=[],V=aK(J,G,Z),Q=dK(J,G,X);if(Q){let Y=aK(J,Q.ifStatement);V=V.filter((z)=>!Y.includes(z)),H.push(Q.typeAnnotation)}if(V.length){V.push(...Z);for(let Y of V)H.push(Y.getTypeAnnotation())}if(!H.length)return;return iK.createUnionType(H)}function aK(J,G,X){let H=J.constantViolations.slice();return H.unshift(J.path),H.filter((Z)=>{Z=Z.resolve();let V=Z._guessExecutionStatusRelativeTo(G);if(X&&V==="unknown")X.push(Z);return V==="before"})}function IR1(J,G){let X=G.node.operator,H=G.get("right").resolve(),Z=G.get("left").resolve(),V;if(Z.isIdentifier({name:J}))V=H;else if(H.isIdentifier({name:J}))V=Z;if(V){if(X==="===")return V.getTypeAnnotation();if(FR1.includes(X))return uK();return}if(X!=="==="&&X!=="==")return;let Q,Y;if(Z.isUnaryExpression({operator:"typeof"}))Q=Z,Y=H;else if(H.isUnaryExpression({operator:"typeof"}))Q=H,Y=Z;if(!Q)return;if(!Q.get("argument").isIdentifier({name:J}))return;if(Y=Y.resolve(),!Y.isLiteral())return;let z=Y.node.value;if(typeof z!=="string")return;return jR1(z)}function CR1(J,G,X){let H;while(H=G.parentPath){if(H.isIfStatement()||H.isConditionalExpression()){if(G.key==="test")return;return H}if(H.isFunction()){if(H.parentPath.scope.getBinding(X)!==J)return}G=H}}function dK(J,G,X){let H=CR1(J,G,X);if(!H)return;let V=[H.get("test")],Q=[];for(let Y=0;Y<V.length;Y++){let z=V[Y];if(z.isLogicalExpression()){if(z.node.operator==="&&")V.push(z.get("left")),V.push(z.get("right"))}else if(z.isBinaryExpression()){let W=IR1(X,z);if(W)Q.push(W)}}if(Q.length)return{typeAnnotation:iK.createUnionType(Q),ifStatement:H};return dK(J,H,X)}});var HB=S((K3)=>{Object.defineProperty(K3,"__esModule",{value:!0});K3.ArrayExpression=JB;K3.AssignmentExpression=dR1;K3.BinaryExpression=cR1;K3.BooleanLiteral=oR1;K3.CallExpression=QM1;K3.ConditionalExpression=aR1;K3.ClassDeclaration=K3.ClassExpression=K3.FunctionDeclaration=K3.ArrowFunctionExpression=K3.FunctionExpression=GM1;Object.defineProperty(K3,"Identifier",{enumerable:!0,get:function(){return wR1.default}});K3.LogicalExpression=rR1;K3.NewExpression=mR1;K3.NullLiteral=eR1;K3.NumericLiteral=nR1;K3.ObjectExpression=JM1;K3.ParenthesizedExpression=uR1;K3.RegExpLiteral=tR1;K3.RestElement=GB;K3.SequenceExpression=iR1;K3.StringLiteral=pR1;K3.TSAsExpression=tK;K3.TSNonNullExpression=yR1;K3.TaggedTemplateExpression=YM1;K3.TemplateLiteral=xR1;K3.TypeCastExpression=eK;K3.UnaryExpression=lR1;K3.UpdateExpression=sR1;K3.VariableDeclarator=hR1;var PR1=F1(),wR1=pK(),oK=W3(),{BOOLEAN_BINARY_OPERATORS:LR1,BOOLEAN_UNARY_OPERATORS:TR1,NUMBER_BINARY_OPERATORS:NR1,NUMBER_UNARY_OPERATORS:kR1,STRING_UNARY_OPERATORS:ER1,anyTypeAnnotation:nK,arrayTypeAnnotation:$3,booleanTypeAnnotation:U3,buildMatchMemberExpression:GG,genericTypeAnnotation:v0,identifier:Y5,nullLiteralTypeAnnotation:OR1,numberTypeAnnotation:l5,stringTypeAnnotation:z5,tupleTypeAnnotation:vR1,unionTypeAnnotation:_R1,voidTypeAnnotation:gR1,isIdentifier:bR1}=PR1;function hR1(){if(!this.get("id").isIdentifier())return;return this.get("init").getTypeAnnotation()}function eK(J){return J.typeAnnotation}eK.validParent=!0;function tK(J){return J.typeAnnotation}tK.validParent=!0;function yR1(){return this.get("expression").getTypeAnnotation()}function mR1(J){if(J.callee.type==="Identifier")return v0(J.callee)}function xR1(){return z5()}function lR1(J){let G=J.operator;if(G==="void")return gR1();else if(kR1.includes(G))return l5();else if(ER1.includes(G))return z5();else if(TR1.includes(G))return U3()}function cR1(J){let G=J.operator;if(NR1.includes(G))return l5();else if(LR1.includes(G))return U3();else if(G==="+"){let X=this.get("right"),H=this.get("left");if(H.isBaseType("number")&&X.isBaseType("number"))return l5();else if(H.isBaseType("string")||X.isBaseType("string"))return z5();return _R1([z5(),l5()])}}function rR1(){let J=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return oK.createUnionType(J)}function aR1(){let J=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return oK.createUnionType(J)}function iR1(){return this.get("expressions").pop().getTypeAnnotation()}function uR1(){return this.get("expression").getTypeAnnotation()}function dR1(){return this.get("right").getTypeAnnotation()}function sR1(J){let G=J.operator;if(G==="++"||G==="--")return l5()}function pR1(){return z5()}function nR1(){return l5()}function oR1(){return U3()}function eR1(){return OR1()}function tR1(){return v0(Y5("RegExp"))}function JM1(){return v0(Y5("Object"))}function JB(){return v0(Y5("Array"))}function GB(){return JB()}GB.validParent=!0;function GM1(){return v0(Y5("Function"))}var XM1=GG("Array.from"),HM1=GG("Object.keys"),ZM1=GG("Object.values"),VM1=GG("Object.entries");function QM1(){let{callee:J}=this.node;if(HM1(J))return $3(z5());else if(XM1(J)||ZM1(J)||bR1(J,{name:"Array"}))return $3(nK());else if(VM1(J))return $3(vR1([z5(),nK()]));return XB(this.get("callee"))}function YM1(){return XB(this.get("tag"))}function XB(J){if(J=J.resolve(),J.isFunction()){let{node:G}=J;if(G.async)if(G.generator)return v0(Y5("AsyncIterator"));else return v0(Y5("Promise"));else if(G.generator)return v0(Y5("Iterator"));else if(J.node.returnType)return J.node.returnType}}});var WB=S((zB)=>{Object.defineProperty(zB,"__esModule",{value:!0});zB._getTypeAnnotation=YB;zB.baseTypeStrictlyMatches=Jq1;zB.couldBeBaseType=tM1;zB.getTypeAnnotation=oM1;zB.isBaseType=eM1;zB.isGenericType=Gq1;var ZB=HB(),vM1=F1(),{anyTypeAnnotation:QB,isAnyTypeAnnotation:XG,isArrayTypeAnnotation:_M1,isBooleanTypeAnnotation:gM1,isEmptyTypeAnnotation:bM1,isFlowBaseAnnotation:hM1,isGenericTypeAnnotation:yM1,isIdentifier:VB,isMixedTypeAnnotation:mM1,isNumberTypeAnnotation:xM1,isStringTypeAnnotation:lM1,isTSArrayType:cM1,isTSTypeAnnotation:rM1,isTSTypeReference:aM1,isTupleTypeAnnotation:iM1,isTypeAnnotation:uM1,isUnionTypeAnnotation:dM1,isVoidTypeAnnotation:sM1,stringTypeAnnotation:pM1,voidTypeAnnotation:nM1}=vM1;function oM1(){let J=this.getData("typeAnnotation");if(J!=null)return J;if(J=YB.call(this)||QB(),uM1(J)||rM1(J))J=J.typeAnnotation;return this.setData("typeAnnotation",J),J}var B3=new WeakSet;function YB(){let J=this.node;if(!J)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){let X=this.parentPath.parentPath,H=X.parentPath;if(X.key==="left"&&H.isForInStatement())return pM1();if(X.key==="left"&&H.isForOfStatement())return QB();return nM1()}else return;if(J.typeAnnotation)return J.typeAnnotation;if(B3.has(J))return;B3.add(J);try{var G;let X=ZB[J.type];if(X)return X.call(this,J);if(X=ZB[this.parentPath.type],(G=X)!=null&&G.validParent)return this.parentPath.getTypeAnnotation()}finally{B3.delete(J)}}function eM1(J,G){return R3(J,this.getTypeAnnotation(),G)}function R3(J,G,X){if(J==="string")return lM1(G);else if(J==="number")return xM1(G);else if(J==="boolean")return gM1(G);else if(J==="any")return XG(G);else if(J==="mixed")return mM1(G);else if(J==="empty")return bM1(G);else if(J==="void")return sM1(G);else if(X)return!1;else throw new Error(`Unknown base type ${J}`)}function tM1(J){let G=this.getTypeAnnotation();if(XG(G))return!0;if(dM1(G)){for(let X of G.types)if(XG(X)||R3(J,X,!0))return!0;return!1}else return R3(J,G,!0)}function Jq1(J){let G=this.getTypeAnnotation(),X=J.getTypeAnnotation();if(!XG(G)&&hM1(G))return X.type===G.type;return!1}function Gq1(J){let G=this.getTypeAnnotation();if(J==="Array"){if(cM1(G)||_M1(G)||iM1(G))return!0}return yM1(G)&&VB(G.id,{name:J})||aM1(G)&&VB(G.typeName,{name:J})}});var UB=S(($B)=>{Object.defineProperty($B,"__esModule",{value:!0});$B.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;$B.matchToToken=function(J){var G={type:"invalid",value:J[0],closed:void 0};if(J[1])G.type="string",G.closed=!!(J[3]||J[4]);else if(J[5])G.type="comment";else if(J[6])G.type="comment",G.closed=!!J[7];else if(J[8])G.type="regex";else if(J[9])G.type="number";else if(J[10])G.type="name";else if(J[11])G.type="punctuator";else if(J[12])G.type="whitespace";return G}});var q3=S((qg1,M3)=>{var KB=process.argv||[],HG=process.env,$q1=!(("NO_COLOR"in HG)||KB.includes("--no-color"))&&(("FORCE_COLOR"in HG)||KB.includes("--color")||process.platform==="win32"||import.meta.require!=null&&import.meta.require("tty").isatty(1)&&HG.TERM!=="dumb"||("CI"in HG)),Uq1=(J,G,X=J)=>(H)=>{let Z=""+H,V=Z.indexOf(G,J.length);return~V?J+Kq1(Z,G,X,V)+G:J+Z+G},Kq1=(J,G,X,H)=>{let Z="",V=0;do Z+=J.substring(V,H)+X,V=H+G.length,H=J.indexOf(G,V);while(~H);return Z+J.substring(V)},BB=(J=$q1)=>{let G=J?Uq1:()=>String;return{isColorSupported:J,reset:G("\x1B[0m","\x1B[0m"),bold:G("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:G("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:G("\x1B[3m","\x1B[23m"),underline:G("\x1B[4m","\x1B[24m"),inverse:G("\x1B[7m","\x1B[27m"),hidden:G("\x1B[8m","\x1B[28m"),strikethrough:G("\x1B[9m","\x1B[29m"),black:G("\x1B[30m","\x1B[39m"),red:G("\x1B[31m","\x1B[39m"),green:G("\x1B[32m","\x1B[39m"),yellow:G("\x1B[33m","\x1B[39m"),blue:G("\x1B[34m","\x1B[39m"),magenta:G("\x1B[35m","\x1B[39m"),cyan:G("\x1B[36m","\x1B[39m"),white:G("\x1B[37m","\x1B[39m"),gray:G("\x1B[90m","\x1B[39m"),bgBlack:G("\x1B[40m","\x1B[49m"),bgRed:G("\x1B[41m","\x1B[49m"),bgGreen:G("\x1B[42m","\x1B[49m"),bgYellow:G("\x1B[43m","\x1B[49m"),bgBlue:G("\x1B[44m","\x1B[49m"),bgMagenta:G("\x1B[45m","\x1B[49m"),bgCyan:G("\x1B[46m","\x1B[49m"),bgWhite:G("\x1B[47m","\x1B[49m"),blackBright:G("\x1B[90m","\x1B[39m"),redBright:G("\x1B[91m","\x1B[39m"),greenBright:G("\x1B[92m","\x1B[39m"),yellowBright:G("\x1B[93m","\x1B[39m"),blueBright:G("\x1B[94m","\x1B[39m"),magentaBright:G("\x1B[95m","\x1B[39m"),cyanBright:G("\x1B[96m","\x1B[39m"),whiteBright:G("\x1B[97m","\x1B[39m"),bgBlackBright:G("\x1B[100m","\x1B[49m"),bgRedBright:G("\x1B[101m","\x1B[49m"),bgGreenBright:G("\x1B[102m","\x1B[49m"),bgYellowBright:G("\x1B[103m","\x1B[49m"),bgBlueBright:G("\x1B[104m","\x1B[49m"),bgMagentaBright:G("\x1B[105m","\x1B[49m"),bgCyanBright:G("\x1B[106m","\x1B[49m"),bgWhiteBright:G("\x1B[107m","\x1B[49m")}};M3.exports=BB();M3.exports.createColors=BB});var MB=S((Fg1,RB)=>{var Bq1=/[|\\{}()[\]^$+*?.]/g;RB.exports=function(J){if(typeof J!=="string")throw new TypeError("Expected a string");return J.replace(Bq1,"\\$&")}});var FB=S((jg1,qB)=>{qB.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var F3=S((fg1,AB)=>{var W5=FB(),DB={};for(ZG in W5)if(W5.hasOwnProperty(ZG))DB[W5[ZG]]=ZG;var ZG,X1=AB.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(K2 in X1)if(X1.hasOwnProperty(K2)){if(!("channels"in X1[K2]))throw new Error("missing channels property: "+K2);if(!("labels"in X1[K2]))throw new Error("missing channel labels property: "+K2);if(X1[K2].labels.length!==X1[K2].channels)throw new Error("channel and label counts mismatch: "+K2);jB=X1[K2].channels,fB=X1[K2].labels,delete X1[K2].channels,delete X1[K2].labels,Object.defineProperty(X1[K2],"channels",{value:jB}),Object.defineProperty(X1[K2],"labels",{value:fB})}var jB,fB,K2;X1.rgb.hsl=function(J){var G=J[0]/255,X=J[1]/255,H=J[2]/255,Z=Math.min(G,X,H),V=Math.max(G,X,H),Q=V-Z,Y,z,W;if(V===Z)Y=0;else if(G===V)Y=(X-H)/Q;else if(X===V)Y=2+(H-G)/Q;else if(H===V)Y=4+(G-X)/Q;if(Y=Math.min(Y*60,360),Y<0)Y+=360;if(W=(Z+V)/2,V===Z)z=0;else if(W<=0.5)z=Q/(V+Z);else z=Q/(2-V-Z);return[Y,z*100,W*100]};X1.rgb.hsv=function(J){var G,X,H,Z,V,Q=J[0]/255,Y=J[1]/255,z=J[2]/255,W=Math.max(Q,Y,z),K=W-Math.min(Q,Y,z),q=function(f){return(W-f)/6/K+0.5};if(K===0)Z=V=0;else{if(V=K/W,G=q(Q),X=q(Y),H=q(z),Q===W)Z=H-X;else if(Y===W)Z=0.3333333333333333+G-H;else if(z===W)Z=0.6666666666666666+X-G;if(Z<0)Z+=1;else if(Z>1)Z-=1}return[Z*360,V*100,W*100]};X1.rgb.hwb=function(J){var G=J[0],X=J[1],H=J[2],Z=X1.rgb.hsl(J)[0],V=0.00392156862745098*Math.min(G,Math.min(X,H));return H=1-0.00392156862745098*Math.max(G,Math.max(X,H)),[Z,V*100,H*100]};X1.rgb.cmyk=function(J){var G=J[0]/255,X=J[1]/255,H=J[2]/255,Z,V,Q,Y;return Y=Math.min(1-G,1-X,1-H),Z=(1-G-Y)/(1-Y)||0,V=(1-X-Y)/(1-Y)||0,Q=(1-H-Y)/(1-Y)||0,[Z*100,V*100,Q*100,Y*100]};function Rq1(J,G){return Math.pow(J[0]-G[0],2)+Math.pow(J[1]-G[1],2)+Math.pow(J[2]-G[2],2)}X1.rgb.keyword=function(J){var G=DB[J];if(G)return G;var X=1/0,H;for(var Z in W5)if(W5.hasOwnProperty(Z)){var V=W5[Z],Q=Rq1(J,V);if(Q<X)X=Q,H=Z}return H};X1.keyword.rgb=function(J){return W5[J]};X1.rgb.xyz=function(J){var G=J[0]/255,X=J[1]/255,H=J[2]/255;G=G>0.04045?Math.pow((G+0.055)/1.055,2.4):G/12.92,X=X>0.04045?Math.pow((X+0.055)/1.055,2.4):X/12.92,H=H>0.04045?Math.pow((H+0.055)/1.055,2.4):H/12.92;var Z=G*0.4124+X*0.3576+H*0.1805,V=G*0.2126+X*0.7152+H*0.0722,Q=G*0.0193+X*0.1192+H*0.9505;return[Z*100,V*100,Q*100]};X1.rgb.lab=function(J){var G=X1.rgb.xyz(J),X=G[0],H=G[1],Z=G[2],V,Q,Y;return X/=95.047,H/=100,Z/=108.883,X=X>0.008856?Math.pow(X,0.3333333333333333):7.787*X+0.13793103448275862,H=H>0.008856?Math.pow(H,0.3333333333333333):7.787*H+0.13793103448275862,Z=Z>0.008856?Math.pow(Z,0.3333333333333333):7.787*Z+0.13793103448275862,V=116*H-16,Q=500*(X-H),Y=200*(H-Z),[V,Q,Y]};X1.hsl.rgb=function(J){var G=J[0]/360,X=J[1]/100,H=J[2]/100,Z,V,Q,Y,z;if(X===0)return z=H*255,[z,z,z];if(H<0.5)V=H*(1+X);else V=H+X-H*X;Z=2*H-V,Y=[0,0,0];for(var W=0;W<3;W++){if(Q=G+0.3333333333333333*-(W-1),Q<0)Q++;if(Q>1)Q--;if(6*Q<1)z=Z+(V-Z)*6*Q;else if(2*Q<1)z=V;else if(3*Q<2)z=Z+(V-Z)*(0.6666666666666666-Q)*6;else z=Z;Y[W]=z*255}return Y};X1.hsl.hsv=function(J){var G=J[0],X=J[1]/100,H=J[2]/100,Z=X,V=Math.max(H,0.01),Q,Y;return H*=2,X*=H<=1?H:2-H,Z*=V<=1?V:2-V,Y=(H+X)/2,Q=H===0?2*Z/(V+Z):2*X/(H+X),[G,Q*100,Y*100]};X1.hsv.rgb=function(J){var G=J[0]/60,X=J[1]/100,H=J[2]/100,Z=Math.floor(G)%6,V=G-Math.floor(G),Q=255*H*(1-X),Y=255*H*(1-X*V),z=255*H*(1-X*(1-V));switch(H*=255,Z){case 0:return[H,z,Q];case 1:return[Y,H,Q];case 2:return[Q,H,z];case 3:return[Q,Y,H];case 4:return[z,Q,H];case 5:return[H,Q,Y]}};X1.hsv.hsl=function(J){var G=J[0],X=J[1]/100,H=J[2]/100,Z=Math.max(H,0.01),V,Q,Y;return Y=(2-X)*H,V=(2-X)*Z,Q=X*Z,Q/=V<=1?V:2-V,Q=Q||0,Y/=2,[G,Q*100,Y*100]};X1.hwb.rgb=function(J){var G=J[0]/360,X=J[1]/100,H=J[2]/100,Z=X+H,V,Q,Y,z;if(Z>1)X/=Z,H/=Z;if(V=Math.floor(6*G),Q=1-H,Y=6*G-V,(V&1)!==0)Y=1-Y;z=X+Y*(Q-X);var W,K,q;switch(V){default:case 6:case 0:W=Q,K=z,q=X;break;case 1:W=z,K=Q,q=X;break;case 2:W=X,K=Q,q=z;break;case 3:W=X,K=z,q=Q;break;case 4:W=z,K=X,q=Q;break;case 5:W=Q,K=X,q=z;break}return[W*255,K*255,q*255]};X1.cmyk.rgb=function(J){var G=J[0]/100,X=J[1]/100,H=J[2]/100,Z=J[3]/100,V,Q,Y;return V=1-Math.min(1,G*(1-Z)+Z),Q=1-Math.min(1,X*(1-Z)+Z),Y=1-Math.min(1,H*(1-Z)+Z),[V*255,Q*255,Y*255]};X1.xyz.rgb=function(J){var G=J[0]/100,X=J[1]/100,H=J[2]/100,Z,V,Q;return Z=G*3.2406+X*-1.5372+H*-0.4986,V=G*-0.9689+X*1.8758+H*0.0415,Q=G*0.0557+X*-0.204+H*1.057,Z=Z>0.0031308?1.055*Math.pow(Z,0.4166666666666667)-0.055:Z*12.92,V=V>0.0031308?1.055*Math.pow(V,0.4166666666666667)-0.055:V*12.92,Q=Q>0.0031308?1.055*Math.pow(Q,0.4166666666666667)-0.055:Q*12.92,Z=Math.min(Math.max(0,Z),1),V=Math.min(Math.max(0,V),1),Q=Math.min(Math.max(0,Q),1),[Z*255,V*255,Q*255]};X1.xyz.lab=function(J){var G=J[0],X=J[1],H=J[2],Z,V,Q;return G/=95.047,X/=100,H/=108.883,G=G>0.008856?Math.pow(G,0.3333333333333333):7.787*G+0.13793103448275862,X=X>0.008856?Math.pow(X,0.3333333333333333):7.787*X+0.13793103448275862,H=H>0.008856?Math.pow(H,0.3333333333333333):7.787*H+0.13793103448275862,Z=116*X-16,V=500*(G-X),Q=200*(X-H),[Z,V,Q]};X1.lab.xyz=function(J){var G=J[0],X=J[1],H=J[2],Z,V,Q;V=(G+16)/116,Z=X/500+V,Q=V-H/200;var Y=Math.pow(V,3),z=Math.pow(Z,3),W=Math.pow(Q,3);return V=Y>0.008856?Y:(V-0.13793103448275862)/7.787,Z=z>0.008856?z:(Z-0.13793103448275862)/7.787,Q=W>0.008856?W:(Q-0.13793103448275862)/7.787,Z*=95.047,V*=100,Q*=108.883,[Z,V,Q]};X1.lab.lch=function(J){var G=J[0],X=J[1],H=J[2],Z,V,Q;if(Z=Math.atan2(H,X),V=Z*360/2/Math.PI,V<0)V+=360;return Q=Math.sqrt(X*X+H*H),[G,Q,V]};X1.lch.lab=function(J){var G=J[0],X=J[1],H=J[2],Z,V,Q;return Q=H/360*2*Math.PI,Z=X*Math.cos(Q),V=X*Math.sin(Q),[G,Z,V]};X1.rgb.ansi16=function(J){var G=J[0],X=J[1],H=J[2],Z=1 in arguments?arguments[1]:X1.rgb.hsv(J)[2];if(Z=Math.round(Z/50),Z===0)return 30;var V=30+(Math.round(H/255)<<2|Math.round(X/255)<<1|Math.round(G/255));if(Z===2)V+=60;return V};X1.hsv.ansi16=function(J){return X1.rgb.ansi16(X1.hsv.rgb(J),J[2])};X1.rgb.ansi256=function(J){var G=J[0],X=J[1],H=J[2];if(G===X&&X===H){if(G<8)return 16;if(G>248)return 231;return Math.round((G-8)/247*24)+232}var Z=16+36*Math.round(G/255*5)+6*Math.round(X/255*5)+Math.round(H/255*5);return Z};X1.ansi16.rgb=function(J){var G=J%10;if(G===0||G===7){if(J>50)G+=3.5;return G=G/10.5*255,[G,G,G]}var X=(~~(J>50)+1)*0.5,H=(G&1)*X*255,Z=(G>>1&1)*X*255,V=(G>>2&1)*X*255;return[H,Z,V]};X1.ansi256.rgb=function(J){if(J>=232){var G=(J-232)*10+8;return[G,G,G]}J-=16;var X,H=Math.floor(J/36)/5*255,Z=Math.floor((X=J%36)/6)/5*255,V=X%6/5*255;return[H,Z,V]};X1.rgb.hex=function(J){var G=((Math.round(J[0])&255)<<16)+((Math.round(J[1])&255)<<8)+(Math.round(J[2])&255),X=G.toString(16).toUpperCase();return"000000".substring(X.length)+X};X1.hex.rgb=function(J){var G=J.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!G)return[0,0,0];var X=G[0];if(G[0].length===3)X=X.split("").map(function(Y){return Y+Y}).join("");var H=parseInt(X,16),Z=H>>16&255,V=H>>8&255,Q=H&255;return[Z,V,Q]};X1.rgb.hcg=function(J){var G=J[0]/255,X=J[1]/255,H=J[2]/255,Z=Math.max(Math.max(G,X),H),V=Math.min(Math.min(G,X),H),Q=Z-V,Y,z;if(Q<1)Y=V/(1-Q);else Y=0;if(Q<=0)z=0;else if(Z===G)z=(X-H)/Q%6;else if(Z===X)z=2+(H-G)/Q;else z=4+(G-X)/Q+4;return z/=6,z%=1,[z*360,Q*100,Y*100]};X1.hsl.hcg=function(J){var G=J[1]/100,X=J[2]/100,H=1,Z=0;if(X<0.5)H=2*G*X;else H=2*G*(1-X);if(H<1)Z=(X-0.5*H)/(1-H);return[J[0],H*100,Z*100]};X1.hsv.hcg=function(J){var G=J[1]/100,X=J[2]/100,H=G*X,Z=0;if(H<1)Z=(X-H)/(1-H);return[J[0],H*100,Z*100]};X1.hcg.rgb=function(J){var G=J[0]/360,X=J[1]/100,H=J[2]/100;if(X===0)return[H*255,H*255,H*255];var Z=[0,0,0],V=G%1*6,Q=V%1,Y=1-Q,z=0;switch(Math.floor(V)){case 0:Z[0]=1,Z[1]=Q,Z[2]=0;break;case 1:Z[0]=Y,Z[1]=1,Z[2]=0;break;case 2:Z[0]=0,Z[1]=1,Z[2]=Q;break;case 3:Z[0]=0,Z[1]=Y,Z[2]=1;break;case 4:Z[0]=Q,Z[1]=0,Z[2]=1;break;default:Z[0]=1,Z[1]=0,Z[2]=Y}return z=(1-X)*H,[(X*Z[0]+z)*255,(X*Z[1]+z)*255,(X*Z[2]+z)*255]};X1.hcg.hsv=function(J){var G=J[1]/100,X=J[2]/100,H=G+X*(1-G),Z=0;if(H>0)Z=G/H;return[J[0],Z*100,H*100]};X1.hcg.hsl=function(J){var G=J[1]/100,X=J[2]/100,H=X*(1-G)+0.5*G,Z=0;if(H>0&&H<0.5)Z=G/(2*H);else if(H>=0.5&&H<1)Z=G/(2*(1-H));return[J[0],Z*100,H*100]};X1.hcg.hwb=function(J){var G=J[1]/100,X=J[2]/100,H=G+X*(1-G);return[J[0],(H-G)*100,(1-H)*100]};X1.hwb.hcg=function(J){var G=J[1]/100,X=J[2]/100,H=1-X,Z=H-G,V=0;if(Z<1)V=(H-Z)/(1-Z);return[J[0],Z*100,V*100]};X1.apple.rgb=function(J){return[J[0]/65535*255,J[1]/65535*255,J[2]/65535*255]};X1.rgb.apple=function(J){return[J[0]/255*65535,J[1]/255*65535,J[2]/255*65535]};X1.gray.rgb=function(J){return[J[0]/100*255,J[0]/100*255,J[0]/100*255]};X1.gray.hsl=X1.gray.hsv=function(J){return[0,0,J[0]]};X1.gray.hwb=function(J){return[0,100,J[0]]};X1.gray.cmyk=function(J){return[0,0,0,J[0]]};X1.gray.lab=function(J){return[J[0],0,0]};X1.gray.hex=function(J){var G=Math.round(J[0]/100*255)&255,X=(G<<16)+(G<<8)+G,H=X.toString(16).toUpperCase();return"000000".substring(H.length)+H};X1.rgb.gray=function(J){var G=(J[0]+J[1]+J[2])/3;return[G/255*100]}});var CB=S((Dg1,IB)=>{var VG=F3();function Mq1(){var J={},G=Object.keys(VG);for(var X=G.length,H=0;H<X;H++)J[G[H]]={distance:-1,parent:null};return J}function qq1(J){var G=Mq1(),X=[J];G[J].distance=0;while(X.length){var H=X.pop(),Z=Object.keys(VG[H]);for(var V=Z.length,Q=0;Q<V;Q++){var Y=Z[Q],z=G[Y];if(z.distance===-1)z.distance=G[H].distance+1,z.parent=H,X.unshift(Y)}}return G}function Fq1(J,G){return function(X){return G(J(X))}}function jq1(J,G){var X=[G[J].parent,J],H=VG[G[J].parent][J],Z=G[J].parent;while(G[Z].parent)X.unshift(G[Z].parent),H=Fq1(VG[G[Z].parent][Z],H),Z=G[Z].parent;return H.conversion=X,H}IB.exports=function(J){var G=qq1(J),X={},H=Object.keys(G);for(var Z=H.length,V=0;V<Z;V++){var Q=H[V],Y=G[Q];if(Y.parent===null)continue;X[Q]=jq1(Q,G)}return X}});var PB=S((Ag1,SB)=>{var j3=F3(),fq1=CB(),c5={},Dq1=Object.keys(j3);function Aq1(J){var G=function(X){if(X===void 0||X===null)return X;if(arguments.length>1)X=Array.prototype.slice.call(arguments);return J(X)};if("conversion"in J)G.conversion=J.conversion;return G}function Iq1(J){var G=function(X){if(X===void 0||X===null)return X;if(arguments.length>1)X=Array.prototype.slice.call(arguments);var H=J(X);if(typeof H==="object")for(var Z=H.length,V=0;V<Z;V++)H[V]=Math.round(H[V]);return H};if("conversion"in J)G.conversion=J.conversion;return G}Dq1.forEach(function(J){c5[J]={},Object.defineProperty(c5[J],"channels",{value:j3[J].channels}),Object.defineProperty(c5[J],"labels",{value:j3[J].labels});var G=fq1(J),X=Object.keys(G);X.forEach(function(H){var Z=G[H];c5[J][H]=Iq1(Z),c5[J][H].raw=Aq1(Z)})});SB.exports=c5});var LB=S((Ig1,wB)=>{var r5=PB(),QG=(J,G)=>function(){return`\x1B[${J.apply(r5,arguments)+G}m`},YG=(J,G)=>function(){let X=J.apply(r5,arguments);return`\x1B[${38+G};5;${X}m`},zG=(J,G)=>function(){let X=J.apply(r5,arguments);return`\x1B[${38+G};2;${X[0]};${X[1]};${X[2]}m`};function Cq1(){let J=new Map,G={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};G.color.grey=G.color.gray;for(let Z of Object.keys(G)){let V=G[Z];for(let Q of Object.keys(V)){let Y=V[Q];G[Q]={open:`\x1B[${Y[0]}m`,close:`\x1B[${Y[1]}m`},V[Q]=G[Q],J.set(Y[0],Y[1])}Object.defineProperty(G,Z,{value:V,enumerable:!1}),Object.defineProperty(G,"codes",{value:J,enumerable:!1})}let X=(Z)=>Z,H=(Z,V,Q)=>[Z,V,Q];G.color.close="\x1B[39m",G.bgColor.close="\x1B[49m",G.color.ansi={ansi:QG(X,0)},G.color.ansi256={ansi256:YG(X,0)},G.color.ansi16m={rgb:zG(H,0)},G.bgColor.ansi={ansi:QG(X,10)},G.bgColor.ansi256={ansi256:YG(X,10)},G.bgColor.ansi16m={rgb:zG(H,10)};for(let Z of Object.keys(r5)){if(typeof r5[Z]!=="object")continue;let V=r5[Z];if(Z==="ansi16")Z="ansi";if("ansi16"in V)G.color.ansi[Z]=QG(V.ansi16,0),G.bgColor.ansi[Z]=QG(V.ansi16,10);if("ansi256"in V)G.color.ansi256[Z]=YG(V.ansi256,0),G.bgColor.ansi256[Z]=YG(V.ansi256,10);if("rgb"in V)G.color.ansi16m[Z]=zG(V.rgb,0),G.bgColor.ansi16m[Z]=zG(V.rgb,10)}return G}Object.defineProperty(wB,"exports",{enumerable:!0,get:Cq1})});var NB=S((Cg1,TB)=>{TB.exports=(J,G)=>{G=G||process.argv;let X=J.startsWith("-")?"":J.length===1?"-":"--",H=G.indexOf(X+J),Z=G.indexOf("--");return H!==-1&&(Z===-1?!0:H<Z)}});var EB=S((Sg1,kB)=>{var Sq1=import.meta.require("os"),l2=NB(),V2=process.env,a5;if(l2("no-color")||l2("no-colors")||l2("color=false"))a5=!1;else if(l2("color")||l2("colors")||l2("color=true")||l2("color=always"))a5=!0;if("FORCE_COLOR"in V2)a5=V2.FORCE_COLOR.length===0||parseInt(V2.FORCE_COLOR,10)!==0;function Pq1(J){if(J===0)return!1;return{level:J,hasBasic:!0,has256:J>=2,has16m:J>=3}}function wq1(J){if(a5===!1)return 0;if(l2("color=16m")||l2("color=full")||l2("color=truecolor"))return 3;if(l2("color=256"))return 2;if(J&&!J.isTTY&&a5!==!0)return 0;let G=a5?1:0;if(process.platform==="win32"){let X=Sq1.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(X[0])>=10&&Number(X[2])>=10586)return Number(X[2])>=14931?3:2;return 1}if("CI"in V2){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((X)=>(X in V2))||V2.CI_NAME==="codeship")return 1;return G}if("TEAMCITY_VERSION"in V2)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(V2.TEAMCITY_VERSION)?1:0;if(V2.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in V2){let X=parseInt((V2.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(V2.TERM_PROGRAM){case"iTerm.app":return X>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(V2.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(V2.TERM))return 1;if("COLORTERM"in V2)return 1;if(V2.TERM==="dumb")return G;return G}function f3(J){let G=wq1(J);return Pq1(G)}kB.exports={supportsColor:f3,stdout:f3(process.stdout),stderr:f3(process.stderr)}});var bB=S((Pg1,gB)=>{var Lq1=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,OB=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Tq1=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Nq1=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,kq1=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function _B(J){if(J[0]==="u"&&J.length===5||J[0]==="x"&&J.length===3)return String.fromCharCode(parseInt(J.slice(1),16));return kq1.get(J)||J}function Eq1(J,G){let X=[],H=G.trim().split(/\s*,\s*/g),Z;for(let V of H)if(!isNaN(V))X.push(Number(V));else if(Z=V.match(Tq1))X.push(Z[2].replace(Nq1,(Q,Y,z)=>Y?_B(Y):z));else throw new Error(`Invalid Chalk template style argument: ${V} (in style '${J}')`);return X}function Oq1(J){OB.lastIndex=0;let G=[],X;while((X=OB.exec(J))!==null){let H=X[1];if(X[2]){let Z=Eq1(H,X[2]);G.push([H].concat(Z))}else G.push([H])}return G}function vB(J,G){let X={};for(let Z of G)for(let V of Z.styles)X[V[0]]=Z.inverse?null:V.slice(1);let H=J;for(let Z of Object.keys(X))if(Array.isArray(X[Z])){if(!(Z in H))throw new Error(`Unknown Chalk style: ${Z}`);if(X[Z].length>0)H=H[Z].apply(H,X[Z]);else H=H[Z]}return H}gB.exports=(J,G)=>{let X=[],H=[],Z=[];if(G.replace(Lq1,(V,Q,Y,z,W,K)=>{if(Q)Z.push(_B(Q));else if(z){let q=Z.join("");Z=[],H.push(X.length===0?q:vB(J,X)(q)),X.push({inverse:Y,styles:Oq1(z)})}else if(W){if(X.length===0)throw new Error("Found extraneous } in Chalk template literal");H.push(vB(J,X)(Z.join(""))),Z=[],X.pop()}else Z.push(K)}),H.push(Z.join("")),X.length>0){let V=`Chalk template literal is missing ${X.length} closing bracket${X.length===1?"":"s"} (\`}\`)`;throw new Error(V)}return H.join("")}});var lB=S((wg1,i9)=>{var A3=MB(),s1=LB(),D3=EB().stdout,vq1=bB(),yB=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),mB=["ansi","ansi","ansi256","ansi16m"],xB=new Set(["gray"]),i5=Object.create(null);function hB(J,G){G=G||{};let X=D3?D3.level:0;J.level=G.level===void 0?X:G.level,J.enabled="enabled"in G?G.enabled:J.level>0}function a9(J){if(!this||!(this instanceof a9)||this.template){let G={};return hB(G,J),G.template=function(){let X=[].slice.call(arguments);return bq1.apply(null,[G.template].concat(X))},Object.setPrototypeOf(G,a9.prototype),Object.setPrototypeOf(G.template,G),G.template.constructor=a9,G.template}hB(this,J)}if(yB)s1.blue.open="\x1B[94m";for(let J of Object.keys(s1))s1[J].closeRe=new RegExp(A3(s1[J].close),"g"),i5[J]={get(){let G=s1[J];return WG.call(this,this._styles?this._styles.concat(G):[G],this._empty,J)}};i5.visible={get(){return WG.call(this,this._styles||[],!0,"visible")}};s1.color.closeRe=new RegExp(A3(s1.color.close),"g");for(let J of Object.keys(s1.color.ansi)){if(xB.has(J))continue;i5[J]={get(){let G=this.level;return function(){let H={open:s1.color[mB[G]][J].apply(null,arguments),close:s1.color.close,closeRe:s1.color.closeRe};return WG.call(this,this._styles?this._styles.concat(H):[H],this._empty,J)}}}}s1.bgColor.closeRe=new RegExp(A3(s1.bgColor.close),"g");for(let J of Object.keys(s1.bgColor.ansi)){if(xB.has(J))continue;let G="bg"+J[0].toUpperCase()+J.slice(1);i5[G]={get(){let X=this.level;return function(){let Z={open:s1.bgColor[mB[X]][J].apply(null,arguments),close:s1.bgColor.close,closeRe:s1.bgColor.closeRe};return WG.call(this,this._styles?this._styles.concat(Z):[Z],this._empty,J)}}}}var _q1=Object.defineProperties(()=>{},i5);function WG(J,G,X){let H=function(){return gq1.apply(H,arguments)};H._styles=J,H._empty=G;let Z=this;return Object.defineProperty(H,"level",{enumerable:!0,get(){return Z.level},set(V){Z.level=V}}),Object.defineProperty(H,"enabled",{enumerable:!0,get(){return Z.enabled},set(V){Z.enabled=V}}),H.hasGrey=this.hasGrey||X==="gray"||X==="grey",H.__proto__=_q1,H}function gq1(){let J=arguments,G=J.length,X=String(arguments[0]);if(G===0)return"";if(G>1)for(let Z=1;Z<G;Z++)X+=" "+J[Z];if(!this.enabled||this.level<=0||!X)return this._empty?"":X;let H=s1.dim.open;if(yB&&this.hasGrey)s1.dim.open="";for(let Z of this._styles.slice().reverse())X=Z.open+X.replace(Z.closeRe,Z.open)+Z.close,X=X.replace(/\r?\n/g,`${Z.close}\$&${Z.open}`);return s1.dim.open=H,X}function bq1(J,G){if(!Array.isArray(G))return[].slice.call(arguments,1).join(" ");let X=[].slice.call(arguments,2),H=[G.raw[0]];for(let Z=1;Z<G.length;Z++)H.push(String(X[Z-1]).replace(/[{}\\]/g,"\\$&")),H.push(String(G.raw[Z]));return vq1(J,H.join(""))}Object.defineProperties(a9.prototype,i5);i9.exports=a9();i9.exports.supportsColor=D3;i9.exports.default=i9.exports});var nB=S((pB)=>{Object.defineProperty(pB,"__esModule",{value:!0});pB.default=aq1;pB.shouldHighlight=sB;var cB=UB(),rB=j9(),C3=hq1(q3(),!0);function iB(J){if(typeof WeakMap!="function")return null;var G=new WeakMap,X=new WeakMap;return(iB=function(H){return H?X:G})(J)}function hq1(J,G){if(!G&&J&&J.__esModule)return J;if(J===null||typeof J!="object"&&typeof J!="function")return{default:J};var X=iB(G);if(X&&X.has(J))return X.get(J);var H={__proto__:null},Z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var V in J)if(V!=="default"&&{}.hasOwnProperty.call(J,V)){var Q=Z?Object.getOwnPropertyDescriptor(J,V):null;Q&&(Q.get||Q.set)?Object.defineProperty(H,V,Q):H[V]=J[V]}return H.default=J,X&&X.set(J,H),H}var uB=typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?C3.createColors(!1):C3.default,aB=(J,G)=>(X)=>J(G(X)),yq1=new Set(["as","async","from","get","of","set"]);function mq1(J){return{keyword:J.cyan,capitalized:J.yellow,jsxIdentifier:J.yellow,punctuator:J.yellow,number:J.magenta,string:J.green,regex:J.magenta,comment:J.gray,invalid:aB(aB(J.white,J.bgRed),J.bold)}}var xq1=/\r\n|[\n\r\u2028\u2029]/,lq1=/^[()[\]{}]$/,dB;{let J=/^[a-z][\w-]*$/i,G=function(X,H,Z){if(X.type==="name"){if(rB.isKeyword(X.value)||rB.isStrictReservedWord(X.value,!0)||yq1.has(X.value))return"keyword";if(J.test(X.value)&&(Z[H-1]==="<"||Z.slice(H-2,H)==="</"))return"jsxIdentifier";if(X.value[0]!==X.value[0].toLowerCase())return"capitalized"}if(X.type==="punctuator"&&lq1.test(X.value))return"bracket";if(X.type==="invalid"&&(X.value==="@"||X.value==="#"))return"punctuator";return X.type};dB=function*(X){let H;while(H=cB.default.exec(X)){let Z=cB.matchToToken(H);yield{type:G(Z,H.index,X),value:Z.value}}}}function cq1(J,G){let X="";for(let{type:H,value:Z}of dB(G)){let V=J[H];if(V)X+=Z.split(xq1).map((Q)=>V(Q)).join("\n");else X+=Z}return X}function sB(J){return uB.isColorSupported||J.forceColor}var I3=void 0;function rq1(J){if(J){var G;return(G=I3)!=null||(I3=C3.createColors(!0)),I3}return uB}function aq1(J,G={}){if(J!==""&&sB(G)){let X=mq1(rq1(G.forceColor));return cq1(X,J)}else return J}{let J,G;pB.getChalk=({forceColor:X})=>{var H;if((H=J)!=null||(J=lB()),X){var Z;return(Z=G)!=null||(G=new J.constructor({enabled:!0,level:1})),G}return J}}});var w3=S((HR)=>{Object.defineProperty(HR,"__esModule",{value:!0});HR.codeFrameColumns=XR;HR.default=eq1;var oB=nB(),P3=dq1(q3(),!0);function GR(J){if(typeof WeakMap!="function")return null;var G=new WeakMap,X=new WeakMap;return(GR=function(H){return H?X:G})(J)}function dq1(J,G){if(!G&&J&&J.__esModule)return J;if(J===null||typeof J!="object"&&typeof J!="function")return{default:J};var X=GR(G);if(X&&X.has(J))return X.get(J);var H={__proto__:null},Z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var V in J)if(V!=="default"&&{}.hasOwnProperty.call(J,V)){var Q=Z?Object.getOwnPropertyDescriptor(J,V):null;Q&&(Q.get||Q.set)?Object.defineProperty(H,V,Q):H[V]=J[V]}return H.default=J,X&&X.set(J,H),H}var sq1=typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?P3.createColors(!1):P3.default,eB=(J,G)=>(X)=>J(G(X)),S3=void 0;function pq1(J){if(J){var G;return(G=S3)!=null||(S3=P3.createColors(!0)),S3}return sq1}var tB=!1;function nq1(J){return{gutter:J.gray,marker:eB(J.red,J.bold),message:eB(J.red,J.bold)}}var JR=/\r\n|[\n\r\u2028\u2029]/;function oq1(J,G,X){let H=Object.assign({column:0,line:-1},J.start),Z=Object.assign({},H,J.end),{linesAbove:V=2,linesBelow:Q=3}=X||{},Y=H.line,z=H.column,W=Z.line,K=Z.column,q=Math.max(Y-(V+1),0),f=Math.min(G.length,W+Q);if(Y===-1)q=0;if(W===-1)f=G.length;let I=W-Y,C={};if(I)for(let x=0;x<=I;x++){let O=x+Y;if(!z)C[O]=!0;else if(x===0){let v=G[O-1].length;C[O]=[z,v-z+1]}else if(x===I)C[O]=[0,K];else{let v=G[O-x].length;C[O]=[0,v]}}else if(z===K)if(z)C[Y]=[z,0];else C[Y]=!0;else C[Y]=[z,K-z];return{start:q,end:f,markerLines:C}}function XR(J,G,X={}){let H=(X.highlightCode||X.forceColor)&&oB.shouldHighlight(X),Z=pq1(X.forceColor),V=nq1(Z),Q=(x,O)=>{return H?x(O):O},Y=J.split(JR),{start:z,end:W,markerLines:K}=oq1(G,Y,X),q=G.start&&typeof G.start.column==="number",f=String(W).length,C=(H?oB.default(J,X):J).split(JR,W).slice(z,W).map((x,O)=>{let v=z+1+O,B1=` ${` ${v}`.slice(-f)} |`,J1=K[v],R1=!K[v+1];if(J1){let W1="";if(Array.isArray(J1)){let D1=x.slice(0,Math.max(J1[0]-1,0)).replace(/[^\t]/g," "),E1=J1[1]||1;if(W1=["\n ",Q(V.gutter,B1.replace(/\d/g," "))," ",D1,Q(V.marker,"^").repeat(E1)].join(""),R1&&X.message)W1+=" "+Q(V.message,X.message)}return[Q(V.marker,">"),Q(V.gutter,B1),x.length>0?` ${x}`:"",W1].join("")}else return` ${Q(V.gutter,B1)}${x.length>0?` ${x}`:""}`}).join("\n");if(X.message&&!q)C=`${" ".repeat(f+1)}${X.message}\n${C}`;if(H)return Z.reset(C);else return C}function eq1(J,G,X,H={}){if(!tB){tB=!0;let V="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(V,"DeprecationWarning");else{let Q=new Error(V);Q.name="DeprecationWarning",console.warn(new Error(V))}}return X=Math.max(X,0),XR(J,{start:{column:X,line:G}},H)}});var zR=S((QR)=>{Object.defineProperty(QR,"__esModule",{value:!0});QR.default=void 0;var ZR=F1(),GF1=ZR,{react:XF1}=ZR,{cloneNode:HF1,jsxExpressionContainer:ZF1,variableDeclaration:VF1,variableDeclarator:QF1}=GF1,YF1={ReferencedIdentifier(J,G){if(J.isJSXIdentifier()&&XF1.isCompatTag(J.node.name)&&!J.parentPath.isJSXMemberExpression())return;if(J.node.name==="this"){let H=J.scope;do if(H.path.isFunction()&&!H.path.isArrowFunctionExpression())break;while(H=H.parent);if(H)G.breakOnScopePaths.push(H.path)}let X=J.scope.getBinding(J.node.name);if(!X)return;for(let H of X.constantViolations)if(H.scope!==X.path.scope){G.mutableBinding=!0,J.stop();return}if(X!==G.scope.getBinding(J.node.name))return;G.bindings[J.node.name]=X}};class VR{constructor(J,G){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=G,this.path=J,this.attachAfter=!1}isCompatibleScope(J){for(let G of Object.keys(this.bindings)){let X=this.bindings[G];if(!J.bindingIdentifierEquals(G,X.identifier))return!1}return!0}getCompatibleScopes(){let J=this.path.scope;do{if(this.isCompatibleScope(J))this.scopes.push(J);else break;if(this.breakOnScopePaths.includes(J.path))break}while(J=J.parent)}getAttachmentPath(){let J=this._getAttachmentPath();if(!J)return;let G=J.scope;if(G.path===J)G=J.scope.parent;if(G.path.isProgram()||G.path.isFunction())for(let X of Object.keys(this.bindings)){if(!G.hasOwnBinding(X))continue;let H=this.bindings[X];if(H.kind==="param"||H.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(H.path).key>=J.key){this.attachAfter=!0,J=H.path;for(let V of H.constantViolations)if(this.getAttachmentParentForPath(V).key>J.key)J=V}}return J}_getAttachmentPath(){let G=this.scopes.pop();if(!G)return;if(G.path.isFunction())if(this.hasOwnParamBindings(G)){if(this.scope===G)return;let X=G.path.get("body").get("body");for(let H=0;H<X.length;H++){if(X[H].node._blockHoist)continue;return X[H]}}else return this.getNextScopeAttachmentParent();else if(G.path.isProgram())return this.getNextScopeAttachmentParent()}getNextScopeAttachmentParent(){let J=this.scopes.pop();if(J)return this.getAttachmentParentForPath(J.path)}getAttachmentParentForPath(J){do if(!J.parentPath||Array.isArray(J.container)&&J.isStatement())return J;while(J=J.parentPath)}hasOwnParamBindings(J){for(let G of Object.keys(this.bindings)){if(!J.hasOwnBinding(G))continue;let X=this.bindings[G];if(X.kind==="param"&&X.constant)return!0}return!1}run(){if(this.path.traverse(YF1,this),this.mutableBinding)return;this.getCompatibleScopes();let J=this.getAttachmentPath();if(!J)return;if(J.getFunctionParent()===this.path.getFunctionParent())return;let G=J.scope.generateUidIdentifier("ref"),X=QF1(G,this.path.node),H=this.attachAfter?"insertAfter":"insertBefore",[Z]=J[H]([J.isVariableDeclarator()?X:VF1("var",[X])]),V=this.path.parentPath;if(V.isJSXElement()&&this.path.container===V.node.children)G=ZF1(G);return this.path.replaceWith(HF1(G)),J.isVariableDeclarator()?Z.get("init"):Z.get("declarations.0.init")}}QR.default=VR});var UR=S((WR)=>{Object.defineProperty(WR,"__esModule",{value:!0});WR.hooks=void 0;var Eg1=WR.hooks=[function(J,G){if(J.key==="test"&&(G.isWhile()||G.isSwitchCase())||J.key==="declaration"&&G.isExportDeclaration()||J.key==="body"&&G.isLabeledStatement()||J.listKey==="declarations"&&G.isVariableDeclaration()&&G.node.declarations.length===1||J.key==="expression"&&G.isExpressionStatement())return G.remove(),!0},function(J,G){if(G.isSequenceExpression()&&G.node.expressions.length===1)return G.replaceWith(G.node.expressions[0]),!0},function(J,G){if(G.isBinary()){if(J.key==="left")G.replaceWith(G.node.right);else G.replaceWith(G.node.left);return!0}},function(J,G){if(G.isIfStatement()&&J.key==="consequent"||J.key==="body"&&(G.isLoop()||G.isArrowFunctionExpression()))return J.replaceWith({type:"BlockStatement",body:[]}),!0}]});var $G=S((FR)=>{Object.defineProperty(FR,"__esModule",{value:!0});FR._assertUnremoved=qR;FR._callRemovalHooks=RR;FR._markRemoved=L3;FR._remove=MR;FR._removeFromScope=BR;FR.remove=MF1;var zF1=UR(),WF1=Z5(),$F1=T3(),KR=_0(),UF1=F1(),KF1=UG(),BF1=o2(),{getBindingIdentifiers:RF1}=UF1;function MF1(){var J;if(qR.call(this),BF1.resync.call(this),RR.call(this)){L3.call(this);return}if(!((J=this.opts)!=null&&J.noScope))BR.call(this);this.shareCommentsWithSiblings(),MR.call(this),L3.call(this)}function BR(){let J=RF1(this.node,!1,!1,!0);Object.keys(J).forEach((G)=>this.scope.removeBinding(G))}function RR(){if(this.parentPath){for(let J of zF1.hooks)if(J(this,this.parentPath))return!0}}function MR(){if(Array.isArray(this.container))this.container.splice(this.key,1),KF1.updateSiblingKeys.call(this,this.key,-1);else $F1._replaceWith.call(this,null)}function L3(){if(this._traverseFlags|=KR.SHOULD_SKIP|KR.REMOVED,this.parent)WF1.getCachedPaths(this.hub,this.parent).delete(this.node);this.node=null}function qR(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}});var UG=S((SR)=>{Object.defineProperty(SR,"__esModule",{value:!0});SR._containerInsert=v3;SR._containerInsertAfter=DR;SR._containerInsertBefore=_3;SR._verifyNodeList=u9;SR.insertAfter=yF1;SR.insertBefore=bF1;SR.pushContainer=xF1;SR.unshiftContainer=mF1;SR.updateSiblingKeys=CR;var IF1=Z5(),CF1=zR(),O3=_0(),N3=o2(),KG=$G(),SF1=F1(),{arrowFunctionExpression:PF1,assertExpression:wF1,assignmentExpression:LF1,blockStatement:jR,callExpression:TF1,cloneNode:k3,expressionStatement:E3,isAssignmentExpression:NF1,isCallExpression:kF1,isExportNamedDeclaration:fR,isExpression:EF1,isIdentifier:OF1,isSequenceExpression:vF1,isSuper:_F1,thisExpression:gF1}=SF1;function bF1(J){KG._assertUnremoved.call(this);let G=u9.call(this,J),{parentPath:X,parent:H}=this;if(X.isExpressionStatement()||X.isLabeledStatement()||fR(H)||X.isExportDefaultDeclaration()&&this.isDeclaration())return X.insertBefore(G);else if(this.isNodeType("Expression")&&!this.isJSXElement()||X.isForStatement()&&this.key==="init"){if(this.node)G.push(this.node);return this.replaceExpressionWithStatements(G)}else if(Array.isArray(this.container))return _3.call(this,G);else if(this.isStatementOrBlock()){let Z=this.node,V=Z&&(!this.isExpressionStatement()||Z.expression!=null);return this.replaceWith(jR(V?[Z]:[])),this.unshiftContainer("body",G)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function v3(J,G){CR.call(this,J,G.length);let X=[];this.container.splice(J,0,...G);for(let V=0;V<G.length;V++){var H;let Q=J+V,Y=this.getSibling(Q);if(X.push(Y),(H=this.context)!=null&&H.queue)N3.pushContext.call(Y,this.context)}let Z=N3._getQueueContexts.call(this);for(let V of X){N3.setScope.call(V),V.debug("Inserted.");for(let Q of Z)Q.maybeQueue(V,!0)}return X}function _3(J){return v3.call(this,this.key,J)}function DR(J){return v3.call(this,this.key+1,J)}var AR=(J)=>J[J.length-1];function IR(J){return vF1(J.parent)&&(AR(J.parent.expressions)!==J.node||IR(J.parentPath))}function hF1(J,G){if(!NF1(J)||!OF1(J.left))return!1;let X=G.getBlockParent();return X.hasOwnBinding(J.left.name)&&X.getOwnBinding(J.left.name).constantViolations.length<=1}function yF1(J){if(KG._assertUnremoved.call(this),this.isSequenceExpression())return AR(this.get("expressions")).insertAfter(J);let G=u9.call(this,J),{parentPath:X,parent:H}=this;if(X.isExpressionStatement()||X.isLabeledStatement()||fR(H)||X.isExportDefaultDeclaration()&&this.isDeclaration())return X.insertAfter(G.map((Z)=>{return EF1(Z)?E3(Z):Z}));else if(this.isNodeType("Expression")&&!this.isJSXElement()&&!X.isJSXElement()||X.isForStatement()&&this.key==="init"){let Z=this;if(Z.node){let V=Z.node,{scope:Q}=this;if(Q.path.isPattern())return wF1(V),Z.replaceWith(TF1(PF1([],V),[])),Z.get("callee.body").insertAfter(G),[Z];if(IR(Z))G.unshift(V);else if(kF1(V)&&_F1(V.callee))G.unshift(V),G.push(gF1());else if(hF1(V,Q))G.unshift(V),G.push(k3(V.left));else if(Q.isPure(V,!0))G.push(V);else{if(X.isMethod({computed:!0,key:V}))Q=Q.parent;let Y=Q.generateDeclaredUidIdentifier();G.unshift(E3(LF1("=",k3(Y),V))),G.push(E3(k3(Y)))}}return this.replaceExpressionWithStatements(G)}else if(Array.isArray(this.container))return DR.call(this,G);else if(this.isStatementOrBlock()){let Z=this.node,V=Z&&(!this.isExpressionStatement()||Z.expression!=null);return this.replaceWith(jR(V?[Z]:[])),this.pushContainer("body",G)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function CR(J,G){if(!this.parent)return;let X=IF1.getCachedPaths(this.hub,this.parent)||[];for(let[,H]of X)if(typeof H.key==="number"&&H.container===this.container&&H.key>=J)H.key+=G}function u9(J){if(!J)return[];if(!Array.isArray(J))J=[J];for(let G=0;G<J.length;G++){let X=J[G],H;if(!X)H="has falsy node";else if(typeof X!=="object")H="contains a non-object node";else if(!X.type)H="without a type";else if(X instanceof O3.default)H="has a NodePath when it expected a raw object";if(H){let Z=Array.isArray(X)?"array":typeof X;throw new Error(`Node list ${H} with the index of ${G} and type of ${Z}`)}}return J}function mF1(J,G){KG._assertUnremoved.call(this),G=u9.call(this,G);let X=O3.default.get({parentPath:this,parent:this.node,container:this.node[J],listKey:J,key:0}).setContext(this.context);return _3.call(X,G)}function xF1(J,G){KG._assertUnremoved.call(this);let X=u9.call(this,G),H=this.node[J];return O3.default.get({parentPath:this,parent:this.node,container:H,listKey:J,key:H.length}).setContext(this.context).replaceWithMultiple(X)}SR.hoist=function J(G=this.scope){return new CF1.default(this,G).run()}});var T3=S((vR)=>{Object.defineProperty(vR,"__esModule",{value:!0});vR._replaceWith=OR;vR.replaceExpressionWithStatements=Cj1;vR.replaceInline=Sj1;vR.replaceWith=Ij1;vR.replaceWithMultiple=Dj1;vR.replaceWithSourceString=Aj1;var nF1=w3(),b3=r9(),oF1=_0(),NR=Z5(),h3=UG(),eF1=aJ(),tF1=F1(),u5=o2(),{FUNCTION_TYPES:PR,arrowFunctionExpression:Jj1,assignmentExpression:kR,awaitExpression:Gj1,blockStatement:Xj1,buildUndefinedNode:g3,callExpression:Hj1,cloneNode:y3,conditionalExpression:Zj1,expressionStatement:Vj1,getBindingIdentifiers:Qj1,identifier:Yj1,inheritLeadingComments:zj1,inheritTrailingComments:Wj1,inheritsComments:$j1,isBlockStatement:Uj1,isEmptyStatement:wR,isExpression:ER,isExpressionStatement:Kj1,isIfStatement:Bj1,isProgram:Rj1,isStatement:Mj1,isVariableDeclaration:qj1,removeComments:Fj1,returnStatement:LR,sequenceExpression:jj1,validate:TR,yieldExpression:fj1}=tF1;function Dj1(J){var G;u5.resync.call(this),J=h3._verifyNodeList.call(this,J),zj1(J[0],this.node),Wj1(J[J.length-1],this.node),(G=NR.getCachedPaths(this.hub,this.parent))==null||G.delete(this.node),this.node=this.container[this.key]=null;let X=this.insertAfter(J);if(this.node)this.requeue();else this.remove();return X}function Aj1(J){u5.resync.call(this);let G;try{J=`(${J})`,G=eF1.parse(J)}catch(H){let Z=H.loc;if(Z)H.message+=" - make sure this is an expression.\n"+nF1.codeFrameColumns(J,{start:{line:Z.line,column:Z.column+1}}),H.code="BABEL_REPLACE_SOURCE_ERROR";throw H}let X=G.program.body[0].expression;return b3.default.removeProperties(X),this.replaceWith(X)}function Ij1(J){if(u5.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let G=J instanceof oF1.default?J.node:J;if(!G)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===G)return[this];if(this.isProgram()&&!Rj1(G))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(G))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof G==="string")throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let X="";if(this.isNodeType("Statement")&&ER(G)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(G)&&!this.parentPath.isExportDefaultDeclaration())G=Vj1(G),X="expression"}if(this.isNodeType("Expression")&&Mj1(G)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(G))return this.replaceExpressionWithStatements([G])}let H=this.node;if(H)$j1(G,H),Fj1(H);return OR.call(this,G),this.type=G.type,u5.setScope.call(this),this.requeue(),[X?this.get(X):this]}function OR(J){var G;if(!this.container)throw new ReferenceError("Container is falsy");if(this.inList)TR(this.parent,this.key,[J]);else TR(this.parent,this.key,J);this.debug(`Replace with ${J==null?void 0:J.type}`),(G=NR.getCachedPaths(this.hub,this.parent))==null||G.set(J,this).delete(this.node),this.node=this.container[this.key]=J}function Cj1(J){u5.resync.call(this);let G=[],X=BG(J,G);if(X){for(let f of G)this.scope.push({id:f});return this.replaceWith(X)[0].get("expressions")}let H=this.getFunctionParent(),Z=H==null?void 0:H.node.async,V=H==null?void 0:H.node.generator,Q=Jj1([],Xj1(J));this.replaceWith(Hj1(Q,[]));let Y=this.get("callee");Y.get("body").scope.hoistVariables((f)=>this.scope.push({id:f}));let z=Y.getCompletionRecords();for(let f of z){if(!f.isExpressionStatement())continue;let I=f.findParent((C)=>C.isLoop());if(I){let C=I.getData("expressionReplacementReturnUid");if(!C)C=Y.scope.generateDeclaredUidIdentifier("ret"),Y.get("body").pushContainer("body",LR(y3(C))),I.setData("expressionReplacementReturnUid",C);else C=Yj1(C.name);f.get("expression").replaceWith(kR("=",y3(C),f.node.expression))}else f.replaceWith(LR(f.node.expression))}Y.arrowFunctionToExpression();let W=Y,K=Z&&b3.default.hasType(this.get("callee.body").node,"AwaitExpression",PR),q=V&&b3.default.hasType(this.get("callee.body").node,"YieldExpression",PR);if(K){if(W.set("async",!0),!q)this.replaceWith(Gj1(this.node))}if(q)W.set("generator",!0),this.replaceWith(fj1(this.node,!0));return W.get("body.body")}function BG(J,G){let X=[],H=!0;for(let Z of J){if(!wR(Z))H=!1;if(ER(Z))X.push(Z);else if(Kj1(Z))X.push(Z.expression);else if(qj1(Z)){if(Z.kind!=="var")return;for(let V of Z.declarations){let Q=Qj1(V);for(let Y of Object.keys(Q))G.push(y3(Q[Y]));if(V.init)X.push(kR("=",V.id,V.init))}H=!0}else if(Bj1(Z)){let V=Z.consequent?BG([Z.consequent],G):g3(),Q=Z.alternate?BG([Z.alternate],G):g3();if(!V||!Q)return;X.push(Zj1(Z.test,V,Q))}else if(Uj1(Z)){let V=BG(Z.body,G);if(!V)return;X.push(V)}else if(wR(Z)){if(J.indexOf(Z)===0)H=!0}else return}if(H)X.push(g3());if(X.length===1)return X[0];else return jj1(X)}function Sj1(J){if(u5.resync.call(this),Array.isArray(J))if(Array.isArray(this.container)){J=h3._verifyNodeList.call(this,J);let G=h3._containerInsertAfter.call(this,J);return this.remove(),G}else return this.replaceWithMultiple(J);else return this.replaceWith(J)}});var yR=S((hR)=>{Object.defineProperty(hR,"__esModule",{value:!0});hR.evaluate=yj1;hR.evaluateTruthy=bj1;var Ej1=["Number","String","Math"],Oj1=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],vj1=["random"];function _R(J){return Ej1.includes(J)}function _j1(J){return Oj1.includes(J)}function gj1(J){return vj1.includes(J)}function bj1(){let J=this.evaluate();if(J.confident)return!!J.value}function F0(J,G){if(!G.confident)return;G.deoptPath=J,G.confident=!1}var gR=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function B2(J,G){let{node:X}=J,{seen:H}=G;if(H.has(X)){let Z=H.get(X);if(Z.resolved)return Z.value;else{F0(J,G);return}}else{let Z={resolved:!1};H.set(X,Z);let V=hj1(J,G);if(G.confident)Z.resolved=!0,Z.value=V;return V}}function hj1(J,G){if(!G.confident)return;if(J.isSequenceExpression()){let X=J.get("expressions");return B2(X[X.length-1],G)}if(J.isStringLiteral()||J.isNumericLiteral()||J.isBooleanLiteral())return J.node.value;if(J.isNullLiteral())return null;if(J.isTemplateLiteral())return bR(J,J.node.quasis,G);if(J.isTaggedTemplateExpression()&&J.get("tag").isMemberExpression()){let X=J.get("tag.object"),{node:{name:H}}=X,Z=J.get("tag.property");if(X.isIdentifier()&&H==="String"&&!J.scope.getBinding(H)&&Z.isIdentifier()&&Z.node.name==="raw")return bR(J,J.node.quasi.quasis,G,!0)}if(J.isConditionalExpression()){let X=B2(J.get("test"),G);if(!G.confident)return;if(X)return B2(J.get("consequent"),G);else return B2(J.get("alternate"),G)}if(J.isExpressionWrapper())return B2(J.get("expression"),G);if(J.isMemberExpression()&&!J.parentPath.isCallExpression({callee:J.node})){let X=J.get("property"),H=J.get("object");if(H.isLiteral()){let Z=H.node.value,V=typeof Z,Q=null;if(J.node.computed){if(Q=B2(X,G),!G.confident)return}else if(X.isIdentifier())Q=X.node.name;if((V==="number"||V==="string")&&Q!=null&&(typeof Q==="number"||typeof Q==="string"))return Z[Q]}}if(J.isReferencedIdentifier()){let X=J.scope.getBinding(J.node.name);if(X){if(X.constantViolations.length>0||J.node.start<X.path.node.end){F0(X.path,G);return}if(X.hasValue)return X.value}let H=J.node.name;if(gR.has(H)){if(!X)return gR.get(H);F0(X.path,G);return}let Z=J.resolve();if(Z===J){F0(J,G);return}else return B2(Z,G)}if(J.isUnaryExpression({prefix:!0})){if(J.node.operator==="void")return;let X=J.get("argument");if(J.node.operator==="typeof"&&(X.isFunction()||X.isClass()))return"function";let H=B2(X,G);if(!G.confident)return;switch(J.node.operator){case"!":return!H;case"+":return+H;case"-":return-H;case"~":return~H;case"typeof":return typeof H}}if(J.isArrayExpression()){let X=[],H=J.get("elements");for(let Z of H){let V=Z.evaluate();if(V.confident)X.push(V.value);else{F0(V.deopt,G);return}}return X}if(J.isObjectExpression()){let X={},H=J.get("properties");for(let Z of H){if(Z.isObjectMethod()||Z.isSpreadElement()){F0(Z,G);return}let V=Z.get("key"),Q;if(Z.node.computed){if(Q=V.evaluate(),!Q.confident){F0(Q.deopt,G);return}Q=Q.value}else if(V.isIdentifier())Q=V.node.name;else Q=V.node.value;let z=Z.get("value").evaluate();if(!z.confident){F0(z.deopt,G);return}z=z.value,X[Q]=z}return X}if(J.isLogicalExpression()){let X=G.confident,H=B2(J.get("left"),G),Z=G.confident;G.confident=X;let V=B2(J.get("right"),G),Q=G.confident;switch(J.node.operator){case"||":if(G.confident=Z&&(!!H||Q),!G.confident)return;return H||V;case"&&":if(G.confident=Z&&(!H||Q),!G.confident)return;return H&&V;case"??":if(G.confident=Z&&(H!=null||Q),!G.confident)return;return H!=null?H:V}}if(J.isBinaryExpression()){let X=B2(J.get("left"),G);if(!G.confident)return;let H=B2(J.get("right"),G);if(!G.confident)return;switch(J.node.operator){case"-":return X-H;case"+":return X+H;case"/":return X/H;case"*":return X*H;case"%":return X%H;case"**":return Math.pow(X,H);case"<":return X<H;case">":return X>H;case"<=":return X<=H;case">=":return X>=H;case"==":return X==H;case"!=":return X!=H;case"===":return X===H;case"!==":return X!==H;case"|":return X|H;case"&":return X&H;case"^":return X^H;case"<<":return X<<H;case">>":return X>>H;case">>>":return X>>>H}}if(J.isCallExpression()){let X=J.get("callee"),H,Z;if(X.isIdentifier()&&!J.scope.getBinding(X.node.name)&&(_R(X.node.name)||_j1(X.node.name)))Z=global[X.node.name];if(X.isMemberExpression()){let V=X.get("object"),Q=X.get("property");if(V.isIdentifier()&&Q.isIdentifier()&&_R(V.node.name)&&!gj1(Q.node.name)){H=global[V.node.name];let Y=Q.node.name;if(hasOwnProperty.call(H,Y))Z=H[Y]}if(V.isLiteral()&&Q.isIdentifier()){let Y=typeof V.node.value;if(Y==="string"||Y==="number")H=V.node.value,Z=H[Q.node.name]}}if(Z){let V=J.get("arguments").map((Q)=>B2(Q,G));if(!G.confident)return;return Z.apply(H,V)}}F0(J,G)}function bR(J,G,X,H=!1){let Z="",V=0,Q=J.isTemplateLiteral()?J.get("expressions"):J.get("quasi.expressions");for(let Y of G){if(!X.confident)break;Z+=H?Y.value.raw:Y.value.cooked;let z=Q[V++];if(z)Z+=String(B2(z,X))}if(!X.confident)return;return Z}function yj1(){let J={confident:!0,deoptPath:null,seen:new Map},G=B2(this,J);if(!J.confident)G=void 0;return{confident:J.confident,deopt:J.deoptPath,value:G}}});var lR=S((mR)=>{Object.defineProperty(mR,"__esModule",{value:!0});mR.statements=mR.statement=mR.smart=mR.program=mR.expression=void 0;var lj1=F1(),{assertExpressionStatement:cj1}=lj1;function m3(J){return{code:(G)=>`/* @babel/template */;\n${G}`,validate:()=>{},unwrap:(G)=>{return J(G.program.body.slice(1))}}}var yg1=mR.smart=m3((J)=>{if(J.length>1)return J;else return J[0]}),mg1=mR.statements=m3((J)=>J),xg1=mR.statement=m3((J)=>{if(J.length===0)throw new Error("Found nothing to return.");if(J.length>1)throw new Error("Found multiple statements but wanted one");return J[0]}),rj1=mR.expression={code:(J)=>`(\n${J}\n)`,validate:(J)=>{if(J.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(rj1.unwrap(J).start===0)throw new Error("Parse result included parens.")},unwrap:({program:J})=>{let[G]=J.body;return cj1(G),G.expression}},lg1=mR.program={code:(J)=>J,validate:()=>{},unwrap:(J)=>J.program}});var RG=S((cR)=>{Object.defineProperty(cR,"__esModule",{value:!0});cR.merge=nj1;cR.normalizeReplacements=ej1;cR.validate=oj1;var sj1=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function pj1(J,G){if(J==null)return{};var X={};for(var H in J)if({}.hasOwnProperty.call(J,H)){if(G.includes(H))continue;X[H]=J[H]}return X}function nj1(J,G){let{placeholderWhitelist:X=J.placeholderWhitelist,placeholderPattern:H=J.placeholderPattern,preserveComments:Z=J.preserveComments,syntacticPlaceholders:V=J.syntacticPlaceholders}=G;return{parser:Object.assign({},J.parser,G.parser),placeholderWhitelist:X,placeholderPattern:H,preserveComments:Z,syntacticPlaceholders:V}}function oj1(J){if(J!=null&&typeof J!=="object")throw new Error("Unknown template options.");let G=J||{},{placeholderWhitelist:X,placeholderPattern:H,preserveComments:Z,syntacticPlaceholders:V}=G,Q=pj1(G,sj1);if(X!=null&&!(X instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(H!=null&&!(H instanceof RegExp)&&H!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(Z!=null&&typeof Z!=="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(V!=null&&typeof V!=="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(V===!0&&(X!=null||H!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:Q,placeholderWhitelist:X||void 0,placeholderPattern:H==null?void 0:H,preserveComments:Z==null?void 0:Z,syntacticPlaceholders:V==null?void 0:V}}function ej1(J){if(Array.isArray(J))return J.reduce((G,X,H)=>{return G["$"+H]=X,G},{});else if(typeof J==="object"||J==null)return J||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}});var x3=S((aR)=>{Object.defineProperty(aR,"__esModule",{value:!0});aR.default=Mf1;var Xf1=F1(),Hf1=aJ(),Zf1=w3(),{isCallExpression:Vf1,isExpressionStatement:Qf1,isFunction:Yf1,isIdentifier:zf1,isJSXIdentifier:Wf1,isNewExpression:$f1,isPlaceholder:MG,isStatement:Uf1,isStringLiteral:rR,removePropertiesDeep:Kf1,traverse:Bf1}=Xf1,Rf1=/^[_$A-Z0-9]+$/;function Mf1(J,G,X){let{placeholderWhitelist:H,placeholderPattern:Z,preserveComments:V,syntacticPlaceholders:Q}=X,Y=jf1(G,X.parser,Q);Kf1(Y,{preserveComments:V}),J.validate(Y);let z={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:H,placeholderPattern:Z,syntacticPlaceholders:Q};return Bf1(Y,qf1,z),Object.assign({ast:Y},z.syntactic.placeholders.length?z.syntactic:z.legacy)}function qf1(J,G,X){var H;let Z,V=X.syntactic.placeholders.length>0;if(MG(J)){if(X.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");Z=J.name.name,V=!0}else if(V||X.syntacticPlaceholders)return;else if(zf1(J)||Wf1(J))Z=J.name;else if(rR(J))Z=J.value;else return;if(V&&(X.placeholderPattern!=null||X.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!V&&(X.placeholderPattern===!1||!(X.placeholderPattern||Rf1).test(Z))&&!((H=X.placeholderWhitelist)!=null&&H.has(Z)))return;G=G.slice();let{node:Q,key:Y}=G[G.length-1],z;if(rR(J)||MG(J,{expectedNode:"StringLiteral"}))z="string";else if($f1(Q)&&Y==="arguments"||Vf1(Q)&&Y==="arguments"||Yf1(Q)&&Y==="params")z="param";else if(Qf1(Q)&&!MG(J))z="statement",G=G.slice(0,-1);else if(Uf1(J)&&MG(J))z="statement";else z="other";let{placeholders:W,placeholderNames:K}=!V?X.legacy:X.syntactic;W.push({name:Z,type:z,resolve:(q)=>Ff1(q,G),isDuplicate:K.has(Z)}),K.add(Z)}function Ff1(J,G){let X=J;for(let V=0;V<G.length-1;V++){let{key:Q,index:Y}=G[V];if(Y===void 0)X=X[Q];else X=X[Q][Y]}let{key:H,index:Z}=G[G.length-1];return{parent:X,key:H,index:Z}}function jf1(J,G,X){let H=(G.plugins||[]).slice();if(X!==!1)H.push("placeholders");G=Object.assign({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,sourceType:"module"},G,{plugins:H});try{return Hf1.parse(J,G)}catch(Z){let V=Z.loc;if(V)Z.message+="\n"+Zf1.codeFrameColumns(J,{start:V}),Z.code="BABEL_TEMPLATE_PARSE_ERROR";throw Z}}});var r3=S((dR)=>{Object.defineProperty(dR,"__esModule",{value:!0});dR.default=Pf1;var Df1=F1(),{blockStatement:Af1,cloneNode:c3,emptyStatement:If1,expressionStatement:l3,identifier:qG,isStatement:iR,isStringLiteral:Cf1,stringLiteral:Sf1,validate:uR}=Df1;function Pf1(J,G){let X=c3(J.ast);if(G)J.placeholders.forEach((H)=>{if(!hasOwnProperty.call(G,H.name)){let Z=H.name;throw new Error(`Error: No substitution given for "${Z}". If this is not meant to be a
|
|
7
|
+
placeholder you may want to consider passing one of the following options to @babel/template:
|
|
8
|
+
- { placeholderPattern: false, placeholderWhitelist: new Set(['${Z}'])}
|
|
9
|
+
- { placeholderPattern: /^${Z}\$/ }`)}}),Object.keys(G).forEach((H)=>{if(!J.placeholderNames.has(H))throw new Error(`Unknown substitution "${H}" given`)});return J.placeholders.slice().reverse().forEach((H)=>{try{wf1(H,X,G&&G[H.name]||null)}catch(Z){throw Z.message=`@babel/template placeholder "${H.name}": ${Z.message}`,Z}}),X}function wf1(J,G,X){if(J.isDuplicate){if(Array.isArray(X))X=X.map((Y)=>c3(Y));else if(typeof X==="object")X=c3(X)}let{parent:H,key:Z,index:V}=J.resolve(G);if(J.type==="string"){if(typeof X==="string")X=Sf1(X);if(!X||!Cf1(X))throw new Error("Expected string substitution")}else if(J.type==="statement"){if(V===void 0){if(!X)X=If1();else if(Array.isArray(X))X=Af1(X);else if(typeof X==="string")X=l3(qG(X));else if(!iR(X))X=l3(X)}else if(X&&!Array.isArray(X)){if(typeof X==="string")X=qG(X);if(!iR(X))X=l3(X)}}else if(J.type==="param"){if(typeof X==="string")X=qG(X);if(V===void 0)throw new Error("Assertion failure.")}else{if(typeof X==="string")X=qG(X);if(Array.isArray(X))throw new Error("Cannot replace single expression with an array.")}function Q(Y,z,W){let K=Y[z];if(Y[z]=W,K.type==="Identifier"){if(K.typeAnnotation)W.typeAnnotation=K.typeAnnotation;if(K.optional)W.optional=K.optional;if(K.decorators)W.decorators=K.decorators}}if(V===void 0)uR(H,Z,X),Q(H,Z,X);else{let Y=H[Z].slice();if(J.type==="statement"||J.type==="param")if(X==null)Y.splice(V,1);else if(Array.isArray(X))Y.splice(V,1,...X);else Q(Y,V,X);else Q(Y,V,X);uR(H,Z,Y),H[Z]=Y}}});var pR=S((sR)=>{Object.defineProperty(sR,"__esModule",{value:!0});sR.default=Ef1;var Tf1=RG(),Nf1=x3(),kf1=r3();function Ef1(J,G,X){G=J.code(G);let H;return(Z)=>{let V=Tf1.normalizeReplacements(Z);if(!H)H=Nf1.default(J,G,X);return J.unwrap(kf1.default(H,V))}}});var oR=S((nR)=>{Object.defineProperty(nR,"__esModule",{value:!0});nR.default=bf1;var vf1=RG(),_f1=x3(),gf1=r3();function bf1(J,G,X){let{metadata:H,names:Z}=hf1(J,G,X);return(V)=>{let Q={};return V.forEach((Y,z)=>{Q[Z[z]]=Y}),(Y)=>{let z=vf1.normalizeReplacements(Y);if(z)Object.keys(z).forEach((W)=>{if(hasOwnProperty.call(Q,W))throw new Error("Unexpected replacement overlap.")});return J.unwrap(gf1.default(H,z?Object.assign(z,Q):Q))}}}function hf1(J,G,X){let H="BABEL_TPL$",Z=G.join("");do H="$$"+H;while(Z.includes(H));let{names:V,code:Q}=yf1(G,H);return{metadata:_f1.default(J,J.code(Q),{parser:X.parser,placeholderWhitelist:new Set(V.concat(X.placeholderWhitelist?Array.from(X.placeholderWhitelist):[])),placeholderPattern:X.placeholderPattern,preserveComments:X.preserveComments,syntacticPlaceholders:X.syntacticPlaceholders}),names:V}}function yf1(J,G){let X=[],H=J[0];for(let Z=1;Z<J.length;Z++){let V=`${G}${Z-1}`;X.push(V),H+=V+J[Z]}return{names:X,code:H}}});var ZM=S((HM)=>{Object.defineProperty(HM,"__esModule",{value:!0});HM.default=XM;var e2=RG(),eR=pR(),tR=oR(),JM=e2.validate({placeholderPattern:!1});function XM(J,G){let X=new WeakMap,H=new WeakMap,Z=G||e2.validate(null);return Object.assign((V,...Q)=>{if(typeof V==="string"){if(Q.length>1)throw new Error("Unexpected extra params.");return GM(eR.default(J,V,e2.merge(Z,e2.validate(Q[0]))))}else if(Array.isArray(V)){let Y=X.get(V);if(!Y)Y=tR.default(J,V,Z),X.set(V,Y);return GM(Y(Q))}else if(typeof V==="object"&&V){if(Q.length>0)throw new Error("Unexpected extra params.");return XM(J,e2.merge(Z,e2.validate(V)))}throw new Error(`Unexpected template param ${typeof V}`)},{ast:(V,...Q)=>{if(typeof V==="string"){if(Q.length>1)throw new Error("Unexpected extra params.");return eR.default(J,V,e2.merge(e2.merge(Z,e2.validate(Q[0])),JM))()}else if(Array.isArray(V)){let Y=H.get(V);if(!Y)Y=tR.default(J,V,e2.merge(Z,JM)),H.set(V,Y);return Y(Q)()}throw new Error(`Unexpected template param ${typeof V}`)}})}function GM(J){let G="";try{throw new Error}catch(X){if(X.stack)G=X.stack.split("\n").slice(3).join("\n")}return(X)=>{try{return J(X)}catch(H){throw H.stack+=`\n =============\n${G}`,H}}}});var YM=S((VM)=>{Object.defineProperty(VM,"__esModule",{value:!0});VM.statements=VM.statement=VM.smart=VM.program=VM.expression=VM.default=void 0;var d9=lR(),s9=ZM(),a3=VM.smart=s9.default(d9.smart),lf1=VM.statement=s9.default(d9.statement),cf1=VM.statements=s9.default(d9.statements),rf1=VM.expression=s9.default(d9.expression),af1=VM.program=s9.default(d9.program),pg1=VM.default=Object.assign(a3.bind(void 0),{smart:a3,statement:lf1,statements:cf1,expression:rf1,program:af1,ast:a3.ast})});var qM=S((MM)=>{Object.defineProperty(MM,"__esModule",{value:!0});MM.arrowFunctionToExpression=PD1;MM.ensureBlock=ID1;MM.ensureFunctionName=hD1;MM.splitExportDeclaration=gD1;MM.toComputedKey=AD1;MM.unwrapFunctionEnvironment=CD1;var nf1=F1(),of1=YM(),d3=c9(),ef1=o2(),{arrowFunctionExpression:s3,assignmentExpression:$5,binaryExpression:i3,blockStatement:tf1,callExpression:d5,conditionalExpression:JD1,expressionStatement:$M,identifier:_1,isIdentifier:GD1,jsxIdentifier:XD1,logicalExpression:HD1,LOGICAL_OPERATORS:ZD1,memberExpression:c2,metaProperty:VD1,numericLiteral:QD1,objectExpression:YD1,restElement:zD1,returnStatement:WD1,sequenceExpression:$D1,spreadElement:UD1,stringLiteral:UM,super:u3,thisExpression:p9,toExpression:KM,unaryExpression:KD1,toBindingIdentifierName:BD1,isFunction:RD1,isAssignmentPattern:MD1,isRestElement:qD1,getFunctionName:FD1,cloneNode:U5,variableDeclaration:jD1,variableDeclarator:fD1,exportNamedDeclaration:zM,exportSpecifier:WM,inherits:DD1}=nf1;function AD1(){let J;if(this.isMemberExpression())J=this.node.property;else if(this.isProperty()||this.isMethod())J=this.node.key;else throw new ReferenceError("todo");if(!this.node.computed){if(GD1(J))J=UM(J.name)}return J}function ID1(){let J=this.get("body"),G=J.node;if(Array.isArray(J))throw new Error("Can't convert array path to a block statement");if(!G)throw new Error("Can't convert node without a body");if(J.isBlockStatement())return G;let X=[],H="body",Z,V;if(J.isStatement())V="body",Z=0,X.push(J.node);else if(H+=".body.0",this.isFunction())Z="argument",X.push(WD1(J.node));else Z="expression",X.push($M(J.node));this.node.body=tf1(X);let Q=this.get(H);return ef1.setup.call(J,Q,V?Q.node[V]:Q.node,V,Z),this.node}MM.arrowFunctionToShadowed=function(){if(!this.isArrowFunctionExpression())return;this.arrowFunctionToExpression()};function CD1(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");BM(this)}function SD1(J,G){J.node.type=G}function PD1({allowInsertArrow:J=!0,allowInsertArrowWithRest:G=J,noNewArrows:X=!((H)=>(H=arguments[0])==null?void 0:H.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let H=this;if(!X){var Z;H=(Z=H.ensureFunctionName(!1))!=null?Z:H}let{thisBinding:V,fnPath:Q}=BM(H,X,J,G);if(Q.ensureBlock(),SD1(Q,"FunctionExpression"),!X){let Y=V?null:Q.scope.generateUidIdentifier("arrowCheckId");if(Y)Q.parentPath.scope.push({id:Y,init:YD1([])});return Q.get("body").unshiftContainer("body",$M(d5(this.hub.addHelper("newArrowCheck"),[p9(),Y?_1(Y.name):_1(V)]))),Q.replaceWith(d5(c2(Q.node,_1("bind")),[Y?_1(Y.name):p9()])),Q.get("callee.object")}return Q}var wD1=d3.environmentVisitor({CallExpression(J,{allSuperCalls:G}){if(!J.get("callee").isSuper())return;G.push(J)}});function BM(J,G=!0,X=!0,H=!0){let Z,V=J.findParent((I)=>{if(I.isArrowFunctionExpression()){var C;return(C=Z)!=null||(Z=I),!1}return I.isFunction()||I.isProgram()||I.isClassProperty({static:!1})||I.isClassPrivateProperty({static:!1})}),Q=V.isClassMethod({kind:"constructor"});if(V.isClassProperty()||V.isClassPrivateProperty())if(Z)V=Z;else if(X)J.replaceWith(d5(s3([],KM(J.node)),[])),V=J.get("callee"),J=V.get("body");else throw J.buildCodeFrameError("Unable to transform arrow inside class property");let{thisPaths:Y,argumentsPaths:z,newTargetPaths:W,superProps:K,superCalls:q}=_D1(J);if(Q&&q.length>0){if(!X)throw q[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!H)throw q[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");let I=[];V.traverse(wD1,{allSuperCalls:I});let C=ED1(V);I.forEach((x)=>{let O=_1(C);O.loc=x.node.callee.loc,x.get("callee").replaceWith(O)})}if(z.length>0){let I=n9(V,"arguments",()=>{let C=()=>_1("arguments");if(V.scope.path.isProgram())return JD1(i3("===",KD1("typeof",C()),UM("undefined")),V.scope.buildUndefinedNode(),C());else return C()});z.forEach((C)=>{let x=_1(I);x.loc=C.node.loc,C.replaceWith(x)})}if(W.length>0){let I=n9(V,"newtarget",()=>VD1(_1("new"),_1("target")));W.forEach((C)=>{let x=_1(I);x.loc=C.node.loc,C.replaceWith(x)})}if(K.length>0){if(!X)throw K[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");K.reduce((C,x)=>C.concat(TD1(x)),[]).forEach((C)=>{let x=C.node.computed?"":C.get("property").node.name,O=C.parentPath,v=O.isAssignmentExpression({left:C.node}),b=O.isCallExpression({callee:C.node}),B1=O.isTaggedTemplateExpression({tag:C.node}),J1=OD1(V,v,x),R1=[];if(C.node.computed)R1.push(C.get("property").node);if(v){let D1=O.node.right;R1.push(D1)}let W1=d5(_1(J1),R1);if(b)O.unshiftContainer("arguments",p9()),C.replaceWith(c2(W1,_1("call"))),Y.push(O.get("arguments.0"));else if(v)O.replaceWith(W1);else if(B1)C.replaceWith(d5(c2(W1,_1("bind"),!1),[p9()])),Y.push(C.get("arguments.0"));else C.replaceWith(W1)})}let f;if(Y.length>0||!G){if(f=kD1(V,Q),G||Q&&RM(V)){if(Y.forEach((I)=>{let C=I.isJSX()?XD1(f):_1(f);C.loc=I.node.loc,I.replaceWith(C)}),!G)f=null}}return{thisBinding:f,fnPath:J}}function LD1(J){return ZD1.includes(J)}function TD1(J){if(J.parentPath.isAssignmentExpression()&&J.parentPath.node.operator!=="="){let X=J.parentPath,H=X.node.operator.slice(0,-1),Z=X.node.right,V=LD1(H);if(J.node.computed){let Q=J.scope.generateDeclaredUidIdentifier("tmp"),Y=J.node.object,z=J.node.property;X.get("left").replaceWith(c2(Y,$5("=",Q,z),!0)),X.get("right").replaceWith(G(V?"=":H,c2(Y,_1(Q.name),!0),Z))}else{let Q=J.node.object,Y=J.node.property;X.get("left").replaceWith(c2(Q,Y)),X.get("right").replaceWith(G(V?"=":H,c2(Q,_1(Y.name)),Z))}if(V)X.replaceWith(HD1(H,X.node.left,X.node.right));else X.node.operator="=";return[X.get("left"),X.get("right").get("left")]}else if(J.parentPath.isUpdateExpression()){let X=J.parentPath,H=J.scope.generateDeclaredUidIdentifier("tmp"),Z=J.node.computed?J.scope.generateDeclaredUidIdentifier("prop"):null,V=[$5("=",H,c2(J.node.object,Z?$5("=",Z,J.node.property):J.node.property,J.node.computed)),$5("=",c2(J.node.object,Z?_1(Z.name):J.node.property,J.node.computed),i3(J.parentPath.node.operator[0],_1(H.name),QD1(1)))];if(!J.parentPath.node.prefix)V.push(_1(H.name));X.replaceWith($D1(V));let Q=X.get("expressions.0.right"),Y=X.get("expressions.1.left");return[Q,Y]}return[J];function G(X,H,Z){if(X==="=")return $5("=",H,Z);else return i3(X,H,Z)}}function RM(J){return J.isClassMethod()&&!!J.parentPath.parentPath.node.superClass}var ND1=d3.environmentVisitor({CallExpression(J,{supers:G,thisBinding:X}){if(!J.get("callee").isSuper())return;if(G.has(J.node))return;G.add(J.node),J.replaceWithMultiple([J.node,$5("=",_1(X),_1("this"))])}});function kD1(J,G){return n9(J,"this",(X)=>{if(!G||!RM(J))return p9();J.traverse(ND1,{supers:new WeakSet,thisBinding:X})})}function ED1(J){return n9(J,"supercall",()=>{let G=J.scope.generateUidIdentifier("args");return s3([zD1(G)],d5(u3(),[UD1(_1(G.name))]))})}function OD1(J,G,X){return n9(J,`superprop_${G?"set":"get"}:${X||""}`,()=>{let Z=[],V;if(X)V=c2(u3(),_1(X));else{let Q=J.scope.generateUidIdentifier("prop");Z.unshift(Q),V=c2(u3(),_1(Q.name),!0)}if(G){let Q=J.scope.generateUidIdentifier("value");Z.push(Q),V=$5("=",V,_1(Q.name))}return s3(Z,V)})}function n9(J,G,X){let H="binding:"+G,Z=J.getData(H);if(!Z){let V=J.scope.generateUidIdentifier(G);Z=V.name,J.setData(H,Z),J.scope.push({id:V,init:X(Z)})}return Z}var vD1=d3.environmentVisitor({ThisExpression(J,{thisPaths:G}){G.push(J)},JSXIdentifier(J,{thisPaths:G}){if(J.node.name!=="this")return;if(!J.parentPath.isJSXMemberExpression({object:J.node})&&!J.parentPath.isJSXOpeningElement({name:J.node}))return;G.push(J)},CallExpression(J,{superCalls:G}){if(J.get("callee").isSuper())G.push(J)},MemberExpression(J,{superProps:G}){if(J.get("object").isSuper())G.push(J)},Identifier(J,{argumentsPaths:G}){if(!J.isReferencedIdentifier({name:"arguments"}))return;let X=J.scope;do{if(X.hasOwnBinding("arguments")){X.rename("arguments");return}if(X.path.isFunction()&&!X.path.isArrowFunctionExpression())break}while(X=X.parent);G.push(J)},MetaProperty(J,{newTargetPaths:G}){if(!J.get("meta").isIdentifier({name:"new"}))return;if(!J.get("property").isIdentifier({name:"target"}))return;G.push(J)}});function _D1(J){let G=[],X=[],H=[],Z=[],V=[];return J.traverse(vD1,{thisPaths:G,argumentsPaths:X,newTargetPaths:H,superProps:Z,superCalls:V}),{thisPaths:G,argumentsPaths:X,newTargetPaths:H,superProps:Z,superCalls:V}}function gD1(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let J=this.get("declaration");if(this.isExportDefaultDeclaration()){let Z=J.isFunctionDeclaration()||J.isClassDeclaration(),V=J.isFunctionExpression()||J.isClassExpression(),Q=J.isScope()?J.scope.parent:J.scope,Y=J.node.id,z=!1;if(!Y){if(z=!0,Y=Q.generateUidIdentifier("default"),Z||V)J.node.id=U5(Y)}else if(V&&Q.hasBinding(Y.name))z=!0,Y=Q.generateUidIdentifier(Y.name);let W=Z?J.node:jD1("var",[fD1(U5(Y),J.node)]),K=zM(null,[WM(U5(Y),_1("default"))]);if(this.insertAfter(K),this.replaceWith(W),z)Q.registerDeclaration(this);return this}else if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let G=J.getOuterBindingIdentifiers(),X=Object.keys(G).map((Z)=>{return WM(_1(Z),_1(Z))}),H=zM(null,X);return this.insertAfter(H),this.replaceWith(J.node),this}var bD1={"ReferencedIdentifier|BindingIdentifier"(J,G){if(J.node.name!==G.name)return;G.needsRename=!0,J.stop()},Scope(J,G){if(J.scope.hasOwnBinding(G.name))J.skip()}};function hD1(J){if(this.node.id)return this;let G=FD1(this.node,this.parent);if(G==null)return this;let{name:X}=G;if(!J&&/[\uD800-\uDFFF]/.test(X))return null;if(X.startsWith("get ")||X.startsWith("set "))return null;X=BD1(X.replace(/[/ ]/g,"_"));let H=_1(X);DD1(H,G.originalNode);let Z={needsRename:!1,name:X},{scope:V}=this,Q=V.getOwnBinding(X);if(Q){if(Q.kind==="param")Z.needsRename=!0}else if(V.parent.hasBinding(X)||V.hasGlobal(X))this.traverse(bD1,Z);if(!Z.needsRename)return this.node.id=H,V.getProgramParent().references[H.name]=!0,this;if(V.hasBinding(H.name)&&!V.hasGlobal(H.name))return V.rename(H.name),this.node.id=H,V.getProgramParent().references[H.name]=!0,this;if(!RD1(this.node))return null;let Y=V.generateUidIdentifier(H.name),z=[];for(let K=0,q=yD1(this.node);K<q;K++)z.push(V.generateUidIdentifier("x"));let W=of1.default.expression.ast`
|
|
10
|
+
(function (${Y}) {
|
|
11
|
+
function ${H}(${z}) {
|
|
12
|
+
return ${U5(Y)}.apply(this, arguments);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
${U5(H)}.toString = function () {
|
|
16
|
+
return ${U5(Y)}.toString();
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return ${U5(H)};
|
|
20
|
+
})(${KM(this.node)})
|
|
21
|
+
`;return this.replaceWith(W)[0].get("arguments.0")}function yD1(J){let G=J.params.findIndex((X)=>MD1(X)||qD1(X));return G===-1?J.params.length:G}});var CM=S((IM)=>{Object.defineProperty(IM,"__esModule",{value:!0});IM._guessExecutionStatusRelativeTo=UA1;IM._resolve=AM;IM.canHaveVariableDeclarationOrExpression=HA1;IM.canSwapBetweenExpressionAndStatement=ZA1;IM.getSource=zA1;IM.isCompletionRecord=VA1;IM.isConstantExpression=MA1;IM.isInStrictMode=qA1;IM.isNodeType=XA1;IM.isStatementOrBlock=QA1;IM.isStatic=GA1;IM.matchesPattern=JA1;IM.referencesImport=YA1;IM.resolve=RA1;IM.willIMaybeExecuteBefore=WA1;var iD1=F1(),{STATEMENT_OR_BLOCK_KEYS:uD1,VISITOR_KEYS:dD1,isBlockStatement:DM,isExpression:sD1,isIdentifier:pD1,isLiteral:nD1,isStringLiteral:oD1,isType:eD1,matchesPattern:tD1}=iD1;function JA1(J,G){return tD1(this.node,J,G)}IM.has=function J(G){var X;let H=(X=this.node)==null?void 0:X[G];if(H&&Array.isArray(H))return!!H.length;else return!!H};function GA1(){return this.scope.isStatic(this.node)}IM.is=IM.has,IM.isnt=function J(G){return!this.has(G)},IM.equals=function J(G,X){return this.node[G]===X};function XA1(J){return eD1(this.type,J)}function HA1(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function ZA1(J){if(this.key!=="body"||!this.parentPath.isArrowFunctionExpression())return!1;if(this.isExpression())return DM(J);else if(this.isBlockStatement())return sD1(J);return!1}function VA1(J){let G=this,X=!0;do{let{type:H,container:Z}=G;if(!X&&(G.isFunction()||H==="StaticBlock"))return!!J;if(X=!1,Array.isArray(Z)&&G.key!==Z.length-1)return!1}while((G=G.parentPath)&&!G.isProgram()&&!G.isDoExpression());return!0}function QA1(){if(this.parentPath.isLabeledStatement()||DM(this.container))return!1;else return uD1.includes(this.key)}function YA1(J,G){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===G||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?oD1(this.node.property,{value:G}):this.node.property.name===G)){let V=this.get("object");return V.isReferencedIdentifier()&&V.referencesImport(J,"*")}return!1}let X=this.scope.getBinding(this.node.name);if(!X||X.kind!=="module")return!1;let H=X.path,Z=H.parentPath;if(!Z.isImportDeclaration())return!1;if(Z.node.source.value===J){if(!G)return!0}else return!1;if(H.isImportDefaultSpecifier()&&G==="default")return!0;if(H.isImportNamespaceSpecifier()&&G==="*")return!0;if(H.isImportSpecifier()&&pD1(H.node.imported,{name:G}))return!0;return!1}function zA1(){let J=this.node;if(J.end){let G=this.hub.getCode();if(G)return G.slice(J.start,J.end)}return""}function WA1(J){return this._guessExecutionStatusRelativeTo(J)!=="after"}function FM(J){return J.isProgram()?J:(J.parentPath.scope.getFunctionParent()||J.parentPath.scope.getProgramParent()).path}function $A1(J,G){switch(J){case"LogicalExpression":return G==="right";case"ConditionalExpression":case"IfStatement":return G==="consequent"||G==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return G==="body";case"ForStatement":return G==="body"||G==="update";case"SwitchStatement":return G==="cases";case"TryStatement":return G==="handler";case"AssignmentPattern":return G==="right";case"OptionalMemberExpression":return G==="property";case"OptionalCallExpression":return G==="arguments";default:return!1}}function jM(J,G){for(let X=0;X<G;X++){let H=J[X];if($A1(H.parent.type,H.parentKey))return!0}return!1}var fM=Symbol();function UA1(J){return p3(this,J,new Map)}function p3(J,G,X){let H={this:FM(J),target:FM(G)};if(H.target.node!==H.this.node)return BA1(J,H.target,X);let Z={target:G.getAncestry(),this:J.getAncestry()};if(Z.target.includes(J))return"after";if(Z.this.includes(G))return"before";let V,Q={target:0,this:0};while(!V&&Q.this<Z.this.length){let K=Z.this[Q.this];if(Q.target=Z.target.indexOf(K),Q.target>=0)V=K;else Q.this++}if(!V)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(jM(Z.this,Q.this-1)||jM(Z.target,Q.target-1))return"unknown";let Y={this:Z.this[Q.this-1],target:Z.target[Q.target-1]};if(Y.target.listKey&&Y.this.listKey&&Y.target.container===Y.this.container)return Y.target.key>Y.this.key?"before":"after";let z=dD1[V.type],W={this:z.indexOf(Y.this.parentKey),target:z.indexOf(Y.target.parentKey)};return W.target>W.this?"before":"after"}function KA1(J,G,X){if(!G.isFunctionDeclaration()){if(p3(J,G,X)==="before")return"before";return"unknown"}else if(G.parentPath.isExportDeclaration())return"unknown";let H=G.scope.getBinding(G.node.id.name);if(!H.references)return"before";let Z=H.referencePaths,V;for(let Q of Z){if(!!Q.find((W)=>W.node===G.node))continue;if(Q.key!=="callee"||!Q.parentPath.isCallExpression())return"unknown";let z=p3(J,Q,X);if(V&&V!==z)return"unknown";else V=z}return V}function BA1(J,G,X){let H=X.get(J.node),Z;if(!H)X.set(J.node,H=new Map);else if(Z=H.get(G.node)){if(Z===fM)return"unknown";return Z}H.set(G.node,fM);let V=KA1(J,G,X);return H.set(G.node,V),V}function RA1(J,G){return AM.call(this,J,G)||this}function AM(J,G){var X;if((X=G)!=null&&X.includes(this))return;if(G=G||[],G.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(J,G)}else if(this.isReferencedIdentifier()){let H=this.scope.getBinding(this.node.name);if(!H)return;if(!H.constant)return;if(H.kind==="module")return;if(H.path!==this){let Z=H.path.resolve(J,G);if(this.find((V)=>V.node===Z.node))return;return Z}}else if(this.isTypeCastExpression())return this.get("expression").resolve(J,G);else if(J&&this.isMemberExpression()){let H=this.toComputedKey();if(!nD1(H))return;let Z=H.value,V=this.get("object").resolve(J,G);if(V.isObjectExpression()){let Q=V.get("properties");for(let Y of Q){if(!Y.isProperty())continue;let z=Y.get("key"),W=Y.isnt("computed")&&z.isIdentifier({name:Z});if(W=W||z.isLiteral({value:Z}),W)return Y.get("value").resolve(J,G)}}else if(V.isArrayExpression()&&!isNaN(+Z)){let Y=V.get("elements")[Z];if(Y)return Y.resolve(J,G)}}}function MA1(){if(this.isIdentifier()){let J=this.scope.getBinding(this.node.name);if(!J)return!1;return J.constant}if(this.isLiteral()){if(this.isRegExpLiteral())return!1;if(this.isTemplateLiteral())return this.get("expressions").every((J)=>J.isConstantExpression());return!0}if(this.isUnaryExpression()){if(this.node.operator!=="void")return!1;return this.get("argument").isConstantExpression()}if(this.isBinaryExpression()){let{operator:J}=this.node;return J!=="in"&&J!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}if(this.isMemberExpression())return!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0});if(this.isCallExpression())return this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral();return!1}function qA1(){return!!(this.isProgram()?this:this.parentPath).find((X)=>{if(X.isProgram({sourceType:"module"}))return!0;if(X.isClass())return!0;if(X.isArrowFunctionExpression()&&!X.get("body").isBlockStatement())return!1;let H;if(X.isFunction())H=X.node.body;else if(X.isProgram())H=X.node;else return!1;for(let Z of H.directives)if(Z.value.value==="use strict")return!0})}});var NM=S((TM)=>{Object.defineProperty(TM,"__esModule",{value:!0});TM._getKey=wM;TM._getPattern=LM;TM.get=pA1;TM.getAllNextSiblings=dA1;TM.getAllPrevSiblings=sA1;TM.getAssignmentIdentifiers=nA1;TM.getBindingIdentifierPaths=tA1;TM.getBindingIdentifiers=oA1;TM.getCompletionRecords=rA1;TM.getNextSibling=uA1;TM.getOpposite=xA1;TM.getOuterBindingIdentifierPaths=JI1;TM.getOuterBindingIdentifiers=eA1;TM.getPrevSibling=iA1;TM.getSibling=aA1;var o3=_0(),vA1=F1(),{getAssignmentIdentifiers:_A1,getBindingIdentifiers:PM,getOuterBindingIdentifiers:gA1,numericLiteral:bA1,unaryExpression:hA1}=vA1,e3=0,o9=1;function yA1(J){return{type:e3,path:J}}function mA1(J){return{type:o9,path:J}}function xA1(){if(this.key==="left")return this.getSibling("right");else if(this.key==="right")return this.getSibling("left");return null}function s5(J,G,X){if(J)G.push(...p5(J,X));return G}function lA1(J,G,X){let H=[];for(let Z=0;Z<J.length;Z++){let V=J[Z],Q=p5(V,X),Y=[],z=[];for(let W of Q){if(W.type===e3)Y.push(W);if(W.type===o9)z.push(W)}if(Y.length)H=Y;G.push(...z)}return G.push(...H),G}function cA1(J){J.forEach((G)=>{G.type=o9})}function n3(J,G){J.forEach((X)=>{if(X.path.isBreakStatement({label:null}))if(G)X.path.replaceWith(hA1("void",bA1(0)));else X.path.remove()})}function SM(J,G){let X=[];if(G.canHaveBreak){let H=[];for(let Z=0;Z<J.length;Z++){let V=J[Z],Q=Object.assign({},G,{inCaseClause:!1});if(V.isBlockStatement()&&(G.inCaseClause||G.shouldPopulateBreak))Q.shouldPopulateBreak=!0;else Q.shouldPopulateBreak=!1;let Y=p5(V,Q);if(Y.length>0&&Y.every((z)=>z.type===o9)){if(H.length>0&&Y.every((z)=>z.path.isBreakStatement({label:null}))){if(cA1(H),X.push(...H),H.some((z)=>z.path.isDeclaration()))X.push(...Y),n3(Y,!0);n3(Y,!1)}else if(X.push(...Y),!G.shouldPopulateBreak)n3(Y,!0);break}if(Z===J.length-1)X.push(...Y);else{H=[];for(let z=0;z<Y.length;z++){let W=Y[z];if(W.type===o9)X.push(W);if(W.type===e3)H.push(W)}}}}else if(J.length)for(let H=J.length-1;H>=0;H--){let Z=p5(J[H],G);if(Z.length>1||Z.length===1&&!Z[0].path.isVariableDeclaration()){X.push(...Z);break}}return X}function p5(J,G){let X=[];if(J.isIfStatement())X=s5(J.get("consequent"),X,G),X=s5(J.get("alternate"),X,G);else if(J.isDoExpression()||J.isFor()||J.isWhile()||J.isLabeledStatement())return s5(J.get("body"),X,G);else if(J.isProgram()||J.isBlockStatement())return SM(J.get("body"),G);else if(J.isFunction())return p5(J.get("body"),G);else if(J.isTryStatement())X=s5(J.get("block"),X,G),X=s5(J.get("handler"),X,G);else if(J.isCatchClause())return s5(J.get("body"),X,G);else if(J.isSwitchStatement())return lA1(J.get("cases"),X,G);else if(J.isSwitchCase())return SM(J.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0});else if(J.isBreakStatement())X.push(mA1(J));else X.push(yA1(J));return X}function rA1(){return p5(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1}).map((G)=>G.path)}function aA1(J){return o3.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:J}).setContext(this.context)}function iA1(){return this.getSibling(this.key-1)}function uA1(){return this.getSibling(this.key+1)}function dA1(){let J=this.key,G=this.getSibling(++J),X=[];while(G.node)X.push(G),G=this.getSibling(++J);return X}function sA1(){let J=this.key,G=this.getSibling(--J),X=[];while(G.node)X.push(G),G=this.getSibling(--J);return X}function pA1(J,G=!0){if(G===!0)G=this.context;let X=J.split(".");if(X.length===1)return wM.call(this,J,G);else return LM.call(this,X,G)}function wM(J,G){let X=this.node,H=X[J];if(Array.isArray(H))return H.map((Z,V)=>{return o3.default.get({listKey:J,parentPath:this,parent:X,container:H,key:V}).setContext(G)});else return o3.default.get({parentPath:this,parent:X,container:X,key:J}).setContext(G)}function LM(J,G){let X=this;for(let H of J)if(H===".")X=X.parentPath;else if(Array.isArray(X))X=X[H];else X=X.get(H,G);return X}function nA1(){return _A1(this.node)}function oA1(J){return PM(this.node,J)}function eA1(J){return gA1(this.node,J)}function tA1(J=!1,G=!1){let H=[this],Z=Object.create(null);while(H.length){let V=H.shift();if(!V)continue;if(!V.node)continue;let Q=PM.keys[V.node.type];if(V.isIdentifier()){if(J)(Z[V.node.name]=Z[V.node.name]||[]).push(V);else Z[V.node.name]=V;continue}if(V.isExportDeclaration()){let Y=V.get("declaration");if(Y.isDeclaration())H.push(Y);continue}if(G){if(V.isFunctionDeclaration()){H.push(V.get("id"));continue}if(V.isFunctionExpression())continue}if(Q)for(let Y=0;Y<Q.length;Y++){let z=Q[Y],W=V.get(z);if(Array.isArray(W))H.push(...W);else if(W.node)H.push(W)}}return Z}function JI1(J=!1){return this.getBindingIdentifierPaths(J,!0)}});var OM=S((EM)=>{Object.defineProperty(EM,"__esModule",{value:!0});EM.addComment=DI1;EM.addComments=AI1;EM.shareCommentsWithSiblings=fI1;var qI1=F1(),{addComment:FI1,addComments:jI1}=qI1;function fI1(){if(typeof this.key==="string")return;let J=this.node;if(!J)return;let{trailingComments:G,leadingComments:X}=J;if(!G&&!X)return;let H=this.getSibling(this.key-1),Z=this.getSibling(this.key+1),V=Boolean(H.node),Q=Boolean(Z.node);if(V){if(X)H.addComments("trailing",kM(X,H.node.trailingComments));if(G&&!Q)H.addComments("trailing",G)}if(Q){if(G)Z.addComments("leading",kM(G,Z.node.leadingComments));if(X&&!V)Z.addComments("leading",X)}}function kM(J,G){if(!(G!=null&&G.length))return J;let X=new Set(G);return J.filter((H)=>{return!X.has(H)})}function DI1(J,G,X){FI1(this.node,J,G,X)}function AI1(J,G){jI1(this.node,J,G)}});var _0=S((hM)=>{Object.defineProperty(hM,"__esModule",{value:!0});hM.default=hM.SHOULD_STOP=hM.SHOULD_SKIP=hM.REMOVED=void 0;var PI1=n7(),wI1=dU(),LI1=r9(),TI1=z3(),gM=F1(),FG=gM,NI1=Z5(),kI1=w7(),t2=xK(),n5=WB(),o5=T3(),vM=yR(),K5=qM(),u1=CM(),bM=o2(),i1=bM,e5=$G(),J0=UG(),R2=NM(),t3=OM(),EI1=X3(),{validate:OI1}=gM,_M=wI1("babel"),Vb1=hM.REMOVED=1,Qb1=hM.SHOULD_STOP=2,Yb1=hM.SHOULD_SKIP=4,j0=hM.default=class J{constructor(G,X){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this.parent=X,this.hub=G,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(G){if(G)this._traverseFlags|=1;else this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(G){if(G)this._traverseFlags|=2;else this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(G){if(G)this._traverseFlags|=4;else this._traverseFlags&=-5}static get({hub:G,parentPath:X,parent:H,container:Z,listKey:V,key:Q}){if(!G&&X)G=X.hub;if(!H)throw new Error("To get a node path the parent needs to exist");let Y=Z[Q],z=NI1.getOrCreateCachedPaths(G,H),W=z.get(Y);if(!W){if(W=new J(G,H),Y)z.set(Y,W)}return bM.setup.call(W,X,Z,V,Q),W}getScope(G){return this.isScope()?new TI1.default(this):G}setData(G,X){if(this.data==null)this.data=Object.create(null);return this.data[G]=X}getData(G,X){if(this.data==null)this.data=Object.create(null);let H=this.data[G];if(H===void 0&&X!==void 0)H=this.data[G]=X;return H}hasNode(){return this.node!=null}buildCodeFrameError(G,X=SyntaxError){return this.hub.buildError(this.node,G,X)}traverse(G,X){LI1.default(this.node,G,this.scope,X,this)}set(G,X){OI1(this.node,G,X),this.node[G]=X}getPathLocation(){let G=[],X=this;do{let H=X.key;if(X.inList)H=`${X.listKey}[${H}]`;G.unshift(H)}while(X=X.parentPath);return G.join(".")}debug(G){if(!_M.enabled)return;_M(`${this.getPathLocation()} ${this.type}: ${G}`)}toString(){return kI1.default(this.node).code}get inList(){return!!this.listKey}set inList(G){if(!G)this.listKey=null}get parentKey(){return this.listKey||this.key}},vI1={findParent:t2.findParent,find:t2.find,getFunctionParent:t2.getFunctionParent,getStatementParent:t2.getStatementParent,getEarliestCommonAncestorFrom:t2.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:t2.getDeepestCommonAncestorFrom,getAncestry:t2.getAncestry,isAncestor:t2.isAncestor,isDescendant:t2.isDescendant,inType:t2.inType,getTypeAnnotation:n5.getTypeAnnotation,isBaseType:n5.isBaseType,couldBeBaseType:n5.couldBeBaseType,baseTypeStrictlyMatches:n5.baseTypeStrictlyMatches,isGenericType:n5.isGenericType,replaceWithMultiple:o5.replaceWithMultiple,replaceWithSourceString:o5.replaceWithSourceString,replaceWith:o5.replaceWith,replaceExpressionWithStatements:o5.replaceExpressionWithStatements,replaceInline:o5.replaceInline,evaluateTruthy:vM.evaluateTruthy,evaluate:vM.evaluate,toComputedKey:K5.toComputedKey,ensureBlock:K5.ensureBlock,unwrapFunctionEnvironment:K5.unwrapFunctionEnvironment,arrowFunctionToExpression:K5.arrowFunctionToExpression,splitExportDeclaration:K5.splitExportDeclaration,ensureFunctionName:K5.ensureFunctionName,matchesPattern:u1.matchesPattern,isStatic:u1.isStatic,isNodeType:u1.isNodeType,canHaveVariableDeclarationOrExpression:u1.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:u1.canSwapBetweenExpressionAndStatement,isCompletionRecord:u1.isCompletionRecord,isStatementOrBlock:u1.isStatementOrBlock,referencesImport:u1.referencesImport,getSource:u1.getSource,willIMaybeExecuteBefore:u1.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:u1._guessExecutionStatusRelativeTo,resolve:u1.resolve,isConstantExpression:u1.isConstantExpression,isInStrictMode:u1.isInStrictMode,isDenylisted:i1.isDenylisted,visit:i1.visit,skip:i1.skip,skipKey:i1.skipKey,stop:i1.stop,setContext:i1.setContext,requeue:i1.requeue,requeueComputedKeyAndDecorators:i1.requeueComputedKeyAndDecorators,remove:e5.remove,insertBefore:J0.insertBefore,insertAfter:J0.insertAfter,unshiftContainer:J0.unshiftContainer,pushContainer:J0.pushContainer,getOpposite:R2.getOpposite,getCompletionRecords:R2.getCompletionRecords,getSibling:R2.getSibling,getPrevSibling:R2.getPrevSibling,getNextSibling:R2.getNextSibling,getAllNextSiblings:R2.getAllNextSiblings,getAllPrevSiblings:R2.getAllPrevSiblings,get:R2.get,getAssignmentIdentifiers:R2.getAssignmentIdentifiers,getBindingIdentifiers:R2.getBindingIdentifiers,getOuterBindingIdentifiers:R2.getOuterBindingIdentifiers,getBindingIdentifierPaths:R2.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:R2.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:t3.shareCommentsWithSiblings,addComment:t3.addComment,addComments:t3.addComments};Object.assign(j0.prototype,vI1);j0.prototype.arrowFunctionToShadowed=K5[String("arrowFunctionToShadowed")],Object.assign(j0.prototype,{has:u1[String("has")],is:u1[String("is")],isnt:u1[String("isnt")],equals:u1[String("equals")],hoist:J0[String("hoist")],updateSiblingKeys:J0.updateSiblingKeys,call:i1.call,isBlacklisted:i1[String("isBlacklisted")],setScope:i1.setScope,resync:i1.resync,popContext:i1.popContext,pushContext:i1.pushContext,setup:i1.setup,setKey:i1.setKey});j0.prototype._guessExecutionStatusRelativeToDifferentFunctions=u1._guessExecutionStatusRelativeTo,j0.prototype._guessExecutionStatusRelativeToDifferentFunctions=u1._guessExecutionStatusRelativeTo,Object.assign(j0.prototype,{_getTypeAnnotation:n5._getTypeAnnotation,_replaceWith:o5._replaceWith,_resolve:u1._resolve,_call:i1._call,_resyncParent:i1._resyncParent,_resyncKey:i1._resyncKey,_resyncList:i1._resyncList,_resyncRemoved:i1._resyncRemoved,_getQueueContexts:i1._getQueueContexts,_removeFromScope:e5._removeFromScope,_callRemovalHooks:e5._callRemovalHooks,_remove:e5._remove,_markRemoved:e5._markRemoved,_assertUnremoved:e5._assertUnremoved,_containerInsert:J0._containerInsert,_containerInsertBefore:J0._containerInsertBefore,_containerInsertAfter:J0._containerInsertAfter,_verifyNodeList:J0._verifyNodeList,_getKey:R2._getKey,_getPattern:R2._getPattern});for(let J of FG.TYPES){let G=`is${J}`,X=FG[G];j0.prototype[G]=function(H){return X(this.node,H)},j0.prototype[`assert${J}`]=function(H){if(!X(this.node,H))throw new TypeError(`Expected node path of type ${J}`)}}Object.assign(j0.prototype,EI1);for(let J of Object.keys(PI1)){if(J[0]==="_")continue;if(!FG.TYPES.includes(J))FG.TYPES.push(J)}});var cM=S((xM)=>{Object.defineProperty(xM,"__esModule",{value:!0});xM.default=void 0;var hI1=_0(),yI1=F1(),JH=o2(),{VISITOR_KEYS:mI1}=yI1;class mM{constructor(J,G,X,H){this.queue=null,this.priorityQueue=null,this.parentPath=H,this.scope=J,this.state=X,this.opts=G}shouldVisit(J){let G=this.opts;if(G.enter||G.exit)return!0;if(G[J.type])return!0;let X=mI1[J.type];if(!(X!=null&&X.length))return!1;for(let H of X)if(J[H])return!0;return!1}create(J,G,X,H){return hI1.default.get({parentPath:this.parentPath,parent:J,container:G,key:X,listKey:H})}maybeQueue(J,G){if(this.queue)if(G)this.queue.push(J);else this.priorityQueue.push(J)}visitMultiple(J,G,X){if(J.length===0)return!1;let H=[];for(let Z=0;Z<J.length;Z++){let V=J[Z];if(V&&this.shouldVisit(V))H.push(this.create(G,J,Z,X))}return this.visitQueue(H)}visitSingle(J,G){if(this.shouldVisit(J[G]))return this.visitQueue([this.create(J,J,G)]);else return!1}visitQueue(J){this.queue=J,this.priorityQueue=[];let G=new WeakSet,X=!1,H=0;for(;H<J.length;){let Z=J[H];if(H++,JH.resync.call(Z),Z.contexts.length===0||Z.contexts[Z.contexts.length-1]!==this)JH.pushContext.call(Z,this);if(Z.key===null)continue;let{node:V}=Z;if(G.has(V))continue;if(V)G.add(V);if(Z.visit()){X=!0;break}if(this.priorityQueue.length){if(X=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=J,X)break}}for(let Z=0;Z<H;Z++)JH.popContext.call(J[Z]);return this.queue=null,X}visit(J,G){let X=J[G];if(!X)return!1;if(Array.isArray(X))return this.visitMultiple(X,J,G);else return this.visitSingle(J,G)}}xM.default=mM});var eJ=S((rM)=>{Object.defineProperty(rM,"__esModule",{value:!0});rM.traverseNode=rI1;var xI1=cM(),lI1=F1(),{VISITOR_KEYS:cI1}=lI1;function rI1(J,G,X,H,Z,V,Q){let Y=cI1[J.type];if(!Y)return!1;let z=new xI1.default(X,G,H,Z);if(Q){if(V!=null&&V[Z.parentKey])return!1;return z.visitQueue([Z])}for(let W of Y){if(V!=null&&V[W])continue;if(z.visit(J,W))return!0}return!1}});var o2=S((oM)=>{Object.defineProperty(oM,"__esModule",{value:!0});oM._call=XH;oM._getQueueContexts=QC1;oM._resyncKey=pM;oM._resyncList=nM;oM._resyncParent=sM;oM._resyncRemoved=JC1;oM.call=GH;oM.isDenylisted=uM;oM.popContext=GC1;oM.pushContext=XC1;oM.requeue=ZC1;oM.requeueComputedKeyAndDecorators=VC1;oM.resync=tI1;oM.setContext=eI1;oM.setKey=jG;oM.setScope=dM;oM.setup=HC1;oM.skip=pI1;oM.skipKey=nI1;oM.stop=oI1;oM.visit=sI1;var iI1=eJ(),aM=_0(),uI1=$G(),dI1=F1();function GH(J){let G=this.opts;if(this.debug(J),this.node){if(XH.call(this,G[J]))return!0}if(this.node){var X;return XH.call(this,(X=G[this.node.type])==null?void 0:X[J])}return!1}function XH(J){if(!J)return!1;for(let G of J){if(!G)continue;let X=this.node;if(!X)return!0;let H=G.call(this.state,this,this.state);if(H&&typeof H==="object"&&typeof H.then==="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(H)throw new Error(`Unexpected return value from visitor method ${G}`);if(this.node!==X)return!0;if(this._traverseFlags>0)return!0}return!1}function uM(){var J;let G=(J=this.opts.denylist)!=null?J:this.opts.blacklist;return G==null?void 0:G.includes(this.node.type)}oM.isBlacklisted=uM;function iM(J,G){if(J.context!==G)J.context=G,J.state=G.state,J.opts=G.opts}function sI1(){var J,G;if(!this.node)return!1;if(this.isDenylisted())return!1;if((J=(G=this.opts).shouldSkip)!=null&&J.call(G,this))return!1;let X=this.context;if(this.shouldSkip||GH.call(this,"enter"))return this.debug("Skip..."),this.shouldStop;return iM(this,X),this.debug("Recursing into..."),this.shouldStop=iI1.traverseNode(this.node,this.opts,this.scope,this.state,this,this.skipKeys),iM(this,X),GH.call(this,"exit"),this.shouldStop}function pI1(){this.shouldSkip=!0}function nI1(J){if(this.skipKeys==null)this.skipKeys={};this.skipKeys[J]=!0}function oI1(){this._traverseFlags|=aM.SHOULD_SKIP|aM.SHOULD_STOP}function dM(){var J,G;if((J=this.opts)!=null&&J.noScope)return;let X=this.parentPath;if((this.key==="key"||this.listKey==="decorators")&&X.isMethod()||this.key==="discriminant"&&X.isSwitchStatement())X=X.parentPath;let H;while(X&&!H){var Z;if((Z=X.opts)!=null&&Z.noScope)return;H=X.scope,X=X.parentPath}this.scope=this.getScope(H),(G=this.scope)==null||G.init()}function eI1(J){if(this.skipKeys!=null)this.skipKeys={};if(this._traverseFlags=0,J)this.context=J,this.state=J.state,this.opts=J.opts;return dM.call(this),this}function tI1(){if(this.removed)return;sM.call(this),nM.call(this),pM.call(this)}function sM(){if(this.parentPath)this.parent=this.parentPath.node}function pM(){if(!this.container)return;if(this.node===this.container[this.key])return;if(Array.isArray(this.container)){for(let J=0;J<this.container.length;J++)if(this.container[J]===this.node){jG.call(this,J);return}}else for(let J of Object.keys(this.container))if(this.container[J]===this.node){jG.call(this,J);return}this.key=null}function nM(){if(!this.parent||!this.inList)return;let J=this.parent[this.listKey];if(this.container===J)return;this.container=J||null}function JC1(){if(this.key==null||!this.container||this.container[this.key]!==this.node)uI1._markRemoved.call(this)}function GC1(){if(this.contexts.pop(),this.contexts.length>0)this.setContext(this.contexts[this.contexts.length-1]);else this.setContext(void 0)}function XC1(J){this.contexts.push(J),this.setContext(J)}function HC1(J,G,X,H){this.listKey=X,this.container=G,this.parentPath=J||this.parentPath,jG.call(this,H)}function jG(J){var G;this.key=J,this.node=this.container[this.key],this.type=(G=this.node)==null?void 0:G.type}function ZC1(J=this){if(J.removed)return;let G=this.contexts;for(let X of G)X.maybeQueue(J)}function VC1(){let{context:J,node:G}=this;if(!dI1.isPrivate(G)&&G.computed)J.maybeQueue(this.get("key"));if(G.decorators)for(let X of this.get("decorators"))J.maybeQueue(X)}function QC1(){let J=this,G=this.contexts;while(!G.length){if(J=J.parentPath,!J)break;G=J.contexts}return G}});var Gq=S((tM)=>{Object.defineProperty(tM,"__esModule",{value:!0});tM.default=void 0;class eM{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(J,G,X=TypeError){return new X(G)}}tM.default=eM});var r9=S((t9)=>{Object.defineProperty(t9,"__esModule",{value:!0});Object.defineProperty(t9,"Hub",{enumerable:!0,get:function(){return OC1.default}});Object.defineProperty(t9,"NodePath",{enumerable:!0,get:function(){return kC1.default}});Object.defineProperty(t9,"Scope",{enumerable:!0,get:function(){return EC1.default}});t9.visitors=t9.default=void 0;o2();var e9=c9();t9.visitors=e9;var TC1=F1(),NC1=Z5(),Xq=eJ(),kC1=_0(),EC1=z3(),OC1=Gq(),{VISITOR_KEYS:vC1,removeProperties:_C1,traverseFast:Hq}=TC1;function _2(J,G={},X,H,Z,V){if(!J)return;if(!G.noScope&&!X){if(J.type!=="Program"&&J.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${J.type} node without passing scope and parentPath.`)}if(!Z&&V)throw new Error("visitSelf can only be used when providing a NodePath.");if(!vC1[J.type])return;e9.explode(G),Xq.traverseNode(J,G,X,H,Z,null,V)}var Rb1=t9.default=_2;_2.visitors=e9;_2.verify=e9.verify;_2.explode=e9.explode;_2.cheap=function(J,G){Hq(J,G);return};_2.node=function(J,G,X,H,Z,V){Xq.traverseNode(J,G,X,H,Z,V)};_2.clearNode=function(J,G){_C1(J,G)};_2.removeProperties=function(J,G){return Hq(J,_2.clearNode,G),J};function gC1(J,G){if(J.node.type===G.type)G.has=!0,J.stop()}_2.hasType=function(J,G,X){if(X!=null&&X.includes(J.type))return!1;if(J.type===G)return!0;let H={has:!1,type:G};return _2(J,{noScope:!0,denylist:X,enter:gC1},null,H),H.has};_2.cache=NC1});import c0 from"process";import{runAction as p1}from"@stacksjs/actions";import{intro as vG,log as A2,outro as $6,prompts as VF}from"@stacksjs/cli";import{Action as n1}from"@stacksjs/enums";import{ExitCode as _G}from"@stacksjs/types";function sP1(J){let G={build:"Build any of your libraries (packages) for production use",components:"Build your component library",vueComponents:"Build your Vue component library",webComponents:"Build your framework agnostic web component library",elements:"An alias to the -w flag",buddy:"Build the Buddy binary",functions:"Build your function library",desktop:"Build the Desktop Application",pages:"Build your frontend",docs:"Build your documentation",framework:"Build Stacks framework",cli:"Automagically build the CLI",server:"Build the Stacks cloud server (Docker image)",select:"What are you trying to build?",project:"Target a specific project",verbose:"Enable verbose output"};J.command("build [type]",G.build).option("-c, --components",G.components).option("-v, --vue-components",G.vueComponents).option("-w, --web-components",G.webComponents).option("-e, --elements",G.elements).option("-f, --functions",G.functions).option("-p, --views",G.pages).option("--pages",G.pages).option("-d, --docs",G.docs).option("-b, --buddy",G.buddy,{default:!1}).option("-s, --stacks",G.framework,{default:!1}).option("--project [project]",G.project,{default:!1}).option("--server",G.server,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X,H)=>{switch(A2.debug("Running `buddy build` ...",H),X){case"components":H.components=!0;break;case"vue":H.vueComponents=!0;break;case"web-components":H.webComponents=!0;break;case"functions":H.functions=!0;break;case"views":H.views=!0;break;case"docs":H.docs=!0;break;case"buddy":H.buddy=!0;break;case"cli":H.buddy=!0;break;case"stacks":H.stacks=!0;break;case"server":H.server=!0;break;default:break}if(console.log("server",X,H),QF(H)){console.log("has no");let Z=await VF({type:"multiselect",name:"build",message:G.select,choices:[{title:"Components",value:"components"},{title:"Web Components",value:"web-components"},{title:"Functions",value:"functions"},{title:"Views",value:"views"},{title:"Documentation",value:"docs"}]});if(console.log("answers",Z),Z!==null)c0.exit(_G.InvalidArgument)}else console.log("has op");if(H.docs)await p1(n1.BuildDocs);if(H.components)await p1(n1.BuildComponentLibs);if(H.vueComponents)await p1(n1.BuildVueComponentLib);if(H.webComponents)await p1(n1.BuildWebComponentLib);if(H.functions)await p1(n1.BuildFunctionLib);if(H.views)await p1(n1.BuildViews);if(H.stacks)await p1(n1.BuildStacks);if(H.buddy)await p1(n1.BuildCli);if(H.server)await p1(n1.BuildServer);c0.exit(_G.Success)}),J.command("build:components","Automagically build component libraries for production use & npm/CDN distribution").alias("prod:components").option("-c, --components",G.components,{default:!0}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:components` ...",X),await p1(n1.BuildComponentLibs,X)}),J.command("build:cli",G.cli).alias("prod:cli").option("-b, --buddy",G.buddy,{default:!0}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:cli` ...",X),await p1(n1.BuildCli,X)}),J.command("build:server",G.server).alias("prod:server").alias("build:docker").option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:server` ...",X),await p1(n1.BuildServer,X)}),J.command("build:functions","Automagically build function library for npm/CDN distribution").option("-f, --functions",G.functions,{default:!0}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy `build:functions` ...",X),await p1(n1.BuildFunctionLib,X)}),J.command("build:vue-components","Automagically build Vue component library for npm/CDN distribution").alias("build:vue").alias("prod:vue-components").alias("prod:vue").option("-v, --vue-components",G.vueComponents,{default:!0}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).alias("build:vue").action(async(X)=>{A2.debug("Running `buddy build:vue-components` ...",X),await p1(n1.BuildVueComponentLib,X)}),J.command("build:web-components","Automagically build Web Component library for npm/CDN distribution").alias("build:wc").alias("prod:web-components").alias("prod:wc").option("-w, --web-components",G.webComponents,{default:!0}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:web-components` ...",X),await p1(n1.BuildWebComponentLib,X)}),J.command("build:docs","Automagically build your documentation site.").alias("prod:docs").alias("build:documentation").alias("prod:documentation").option("-d, --docs",G.docs,{default:!0}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:docs` ...",X),await p1(n1.BuildDocs,X)}),J.command("build:core","Automagically build the Stacks core.").option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:core` ...",X);let H=await vG("buddy build:core"),Z=await p1(n1.BuildCore,X);if(Z.isErr())A2.error("Failed to build the Stacks core.",Z.error),c0.exit();await $6("Core packages built successfully",{startTime:H,useSeconds:!0})}),J.command("build:desktop",G.desktop).alias("prod:desktop").option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:desktop` ...",X);let H=await vG("buddy build:desktop"),Z=await p1(n1.BuildDesktop,X);if(Z.isErr())await $6("While running the build:desktop command, there was an issue",{startTime:H,useSeconds:!0},Z.error),c0.exit();console.log(""),await $6("Exited",{startTime:H,useSeconds:!0}),c0.exit(_G.Success)}),J.command("build:stacks","Build the Stacks framework.").option("-s, --stacks",G.framework,{default:!0}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:stacks` ...",X);let H=await vG("buddy build:stacks"),Z=await p1(n1.BuildStacks,X);if(Z.isErr())A2.error("Failed to build Stacks.",Z.error),c0.exit();await $6("Stacks built successfully",{startTime:H,useSeconds:!0})}),J.on("build:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),c0.exit(1)})}function QF(J){return!J.components&&!J.vueComponents&&!J.webComponents&&!J.elements&&!J.functions&&!J.views&&!J.docs&&!J.stacks&&!J.buddy}import LH from"process";import{runAction as YF}from"@stacksjs/actions";import{intro as zF,log as WF,outro as TH}from"@stacksjs/cli";import{Action as $F}from"@stacksjs/enums";function Jw1(J){let G={changelog:"Create a CHANGELOG.md file",quiet:"Minimal output",dryRun:"Do not write the file, just output the changes",project:"Target a specific project",verbose:"Enable verbose output"};J.command("changelog",G.changelog).option("-q, --quiet",G.quiet,{default:!1}).option("-d, --dry-run",G.dryRun,{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{WF.debug("Running `buddy changelog` ...",X);let H=await zF("buddy changelog"),Z=await YF($F.Changelog,X);if(Z.isErr())await TH("While running the changelog command, there was an issue",{...X,startTime:H,useSeconds:!0},Z.error),LH.exit();await TH("Generated CHANGELOG.md",{...X,startTime:H,useSeconds:!0,type:"success"})}),J.on("changelog:*",()=>{console.log("Invalid command: %s",J.args.join(" ")),console.log("See --help for a list of available commands."),LH.exit(1)})}import gG from"process";import{runAction as UF}from"@stacksjs/actions";import{intro as KF,log as BF,outro as NH}from"@stacksjs/cli";import{Action as RF}from"@stacksjs/enums";import{ExitCode as kH}from"@stacksjs/types";function Yw1(J){let G={clean:"Removes all node_modules & lock files",project:"Target a specific project",verbose:"Enable verbose output"};J.command("clean",G.clean).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{BF.debug("Running `buddy clean` ...",X);let H=await KF("buddy clean"),Z=await UF(RF.Clean,X);if(Z.isErr())await NH("While running the clean command, there was an issue",{startTime:H,useSeconds:!0},Z.error),gG.exit(kH.FatalError);await NH("Cleaned up",{startTime:H,useSeconds:!0,message:"Cleaned up"}),gG.exit(kH.Success)}),J.on("clean:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),gG.exit(1)})}import I1 from"process";var A5=i2(aZ(),1);var vH=i2(U6(),1);var _H=async(J,G,X)=>{return{operation:EH(G).operation,region:await OH(J.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function MF(J){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cloudfront",region:J.region},propertiesExtractor:(G,X)=>({signingProperties:{config:G,context:X}})}}var gH=(J)=>{let G=[];switch(J.operation){default:G.push(MF(J))}return G},bH=(J)=>{return{...vH.resolveAwsSdkSigV4Config(J)}};var hH=(J)=>{return{...J,useDualstackEndpoint:J.useDualstackEndpoint??!1,useFipsEndpoint:J.useFipsEndpoint??!1,defaultSigningName:"cloudfront"}},yH={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var mH={name:"@aws-sdk/client-cloudfront",description:"AWS SDK for JavaScript Cloudfront Client for Node.js, Browser and React Native",version:"3.670.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-cloudfront","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo cloudfront"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.670.0","@aws-sdk/client-sts":"3.670.0","@aws-sdk/core":"3.667.0","@aws-sdk/credential-provider-node":"3.670.0","@aws-sdk/middleware-host-header":"3.667.0","@aws-sdk/middleware-logger":"3.667.0","@aws-sdk/middleware-recursion-detection":"3.667.0","@aws-sdk/middleware-user-agent":"3.669.0","@aws-sdk/region-config-resolver":"3.667.0","@aws-sdk/types":"3.667.0","@aws-sdk/util-endpoints":"3.667.0","@aws-sdk/util-user-agent-browser":"3.670.0","@aws-sdk/util-user-agent-node":"3.669.0","@aws-sdk/xml-builder":"3.662.0","@smithy/config-resolver":"^3.0.9","@smithy/core":"^2.4.8","@smithy/fetch-http-handler":"^3.2.9","@smithy/hash-node":"^3.0.7","@smithy/invalid-dependency":"^3.0.7","@smithy/middleware-content-length":"^3.0.9","@smithy/middleware-endpoint":"^3.1.4","@smithy/middleware-retry":"^3.0.23","@smithy/middleware-serde":"^3.0.7","@smithy/middleware-stack":"^3.0.7","@smithy/node-config-provider":"^3.1.8","@smithy/node-http-handler":"^3.2.4","@smithy/protocol-http":"^4.1.4","@smithy/smithy-client":"^3.4.0","@smithy/types":"^3.5.0","@smithy/url-parser":"^3.0.7","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.23","@smithy/util-defaults-mode-node":"^3.0.23","@smithy/util-endpoints":"^2.1.3","@smithy/util-middleware":"^3.0.7","@smithy/util-retry":"^3.0.7","@smithy/util-stream":"^3.1.9","@smithy/util-utf8":"^3.0.0","@smithy/util-waiter":"^3.1.6",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cloudfront",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-cloudfront"}};var NZ=i2(U6(),1);var $Z=i2(U6(),1);var xH={["required"]:!1,type:"String"},lH={["required"]:!0,default:!1,type:"Boolean"},cH={["ref"]:"Endpoint"},hG={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},oH={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},I2={},rH={["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},"aws"]},FF={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},aH={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!1]},bG={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!1]},iH={authSchemes:[{name:"sigv4",signingName:"cloudfront",signingRegion:"us-east-1"}]},uH={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},dH={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},sH=[hG],pH=[oH],nH=[{["ref"]:"Region"}],jF={version:"1.0",parameters:{Region:xH,UseDualStack:lH,UseFIPS:lH,Endpoint:xH},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[cH]}],rules:[{conditions:sH,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:pH,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:cH,properties:I2,headers:I2},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:nH}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:nH,assign:"PartitionResult"}],rules:[{conditions:[rH,aH,bG],endpoint:{url:"https://cloudfront.amazonaws.com",properties:iH,headers:I2},type:"endpoint"},{conditions:[rH,hG,bG],endpoint:{url:"https://cloudfront-fips.amazonaws.com",properties:iH,headers:I2},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[FF,"aws-cn"]},aH,bG],endpoint:{url:"https://cloudfront.cn-northwest-1.amazonaws.com.cn",properties:{authSchemes:[{name:"sigv4",signingName:"cloudfront",signingRegion:"cn-northwest-1"}]},headers:I2},type:"endpoint"},{conditions:[hG,oH],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,uH]},dH],rules:[{endpoint:{url:"https://cloudfront-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:I2,headers:I2},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:sH,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[uH,!0]}],rules:[{endpoint:{url:"https://cloudfront-fips.{Region}.{PartitionResult#dnsSuffix}",properties:I2,headers:I2},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:pH,rules:[{conditions:[dH],rules:[{endpoint:{url:"https://cloudfront.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:I2,headers:I2},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://cloudfront.{Region}.{PartitionResult#dnsSuffix}",properties:I2,headers:I2},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},eH=jF;var fF=new tH({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),HZ=(J,G={})=>{return fF.get(J,()=>GZ(eH,{endpointParams:J,logger:G.logger}))};JZ.aws=XZ;var UZ=(J)=>{return{apiVersion:"2020-05-31",base64Decoder:J?.base64Decoder??VZ,base64Encoder:J?.base64Encoder??zZ,disableHostPrefix:J?.disableHostPrefix??!1,endpointProvider:J?.endpointProvider??HZ,extensions:J?.extensions??[],httpAuthSchemeProvider:J?.httpAuthSchemeProvider??gH,httpAuthSchemes:J?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(G)=>G.getIdentityProvider("aws.auth#sigv4"),signer:new $Z.AwsSdkSigV4Signer}],logger:J?.logger??new WZ,serviceId:J?.serviceId??"CloudFront",urlParser:J?.urlParser??ZZ,utf8Decoder:J?.utf8Decoder??QZ,utf8Encoder:J?.utf8Encoder??YZ}};var kZ=(J)=>{IZ(process.version);let G=LZ(J),X=()=>G().then(AZ),H=UZ(J);return NZ.emitWarningIfUnsupportedVersion(process.version),{...H,...J,runtime:"node",defaultsMode:G,bodyLengthChecker:J?.bodyLengthChecker??wZ,credentialDefaultProvider:J?.credentialDefaultProvider??TZ,defaultUserAgentProvider:J?.defaultUserAgentProvider??CZ({serviceId:H.serviceId,clientVersion:mH.version}),maxAttempts:J?.maxAttempts??r0(FZ),region:J?.region??r0(RZ,MZ),requestHandler:fZ.create(J?.requestHandler??X),retryMode:J?.retryMode??r0({...jZ,default:async()=>(await X()).retryMode||qZ}),sha256:J?.sha256??PZ.bind(null,"sha256"),streamCollector:J?.streamCollector??DZ,useDualstackEndpoint:J?.useDualstackEndpoint??r0(KZ),useFipsEndpoint:J?.useFipsEndpoint??r0(BZ),userAgentAppId:J?.userAgentAppId??r0(SZ)}};var EZ=(J)=>{let{httpAuthSchemes:G,httpAuthSchemeProvider:X,credentials:H}=J;return{setHttpAuthScheme(Z){let V=G.findIndex((Q)=>Q.schemeId===Z.schemeId);if(V===-1)G.push(Z);else G.splice(V,1,Z)},httpAuthSchemes(){return G},setHttpAuthSchemeProvider(Z){X=Z},httpAuthSchemeProvider(){return X},setCredentials(Z){H=Z},credentials(){return H}}},OZ=(J)=>{return{httpAuthSchemes:J.httpAuthSchemes(),httpAuthSchemeProvider:J.httpAuthSchemeProvider(),credentials:J.credentials()}};var K6=(J)=>J,mZ=(J,G)=>{let X={...K6(hZ(J)),...K6(gZ(J)),...K6(vZ(J)),...K6(EZ(J))};return G.forEach((H)=>H.configure(X)),{...J,...yZ(X),...bZ(X),..._Z(X),...OZ(X)}};class yG extends oZ{constructor(...[J]){let G=kZ(J||{}),X=hH(G),H=iZ(X),Z=nZ(H),V=dZ(Z),Q=xZ(V),Y=pZ(Q),z=bH(Y),W=mZ(z,J?.extensions||[]);super(W);this.config=W,this.middlewareStack.use(uZ(this.config)),this.middlewareStack.use(eZ(this.config)),this.middlewareStack.use(sZ(this.config)),this.middlewareStack.use(lZ(this.config)),this.middlewareStack.use(cZ(this.config)),this.middlewareStack.use(rZ(this.config)),this.middlewareStack.use(A5.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:_H,identityProviderConfigProvider:async(K)=>new A5.DefaultIdentityProviderConfig({"aws.auth#sigv4":K.credentials})})),this.middlewareStack.use(A5.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}var P5=i2(U6(),1);function tZ(J){return J.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function JV(J){return J.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}class mG{constructor(J){this.value=J}toString(){return JV(""+this.value)}}class u2{static of(J,G,X){let H=new u2(J);if(G!==void 0)H.addChildNode(new mG(G));if(X!==void 0)H.withName(X);return H}constructor(J,G=[]){this.name=J,this.children=G,this.attributes={}}withName(J){return this.name=J,this}addAttribute(J,G){return this.attributes[J]=G,this}addChildNode(J){return this.children.push(J),this}removeAttribute(J){return delete this.attributes[J],this}n(J){return this.name=J,this}c(J){return this.children.push(J),this}a(J,G){if(G!=null)this.attributes[J]=G;return this}cc(J,G,X=G){if(J[G]!=null){let H=u2.of(G,J[G]).withName(X);this.c(H)}}l(J,G,X,H){if(J[G]!=null)H().map((V)=>{V.withName(X),this.c(V)})}lc(J,G,X,H){if(J[G]!=null){let Z=H(),V=new u2(X);Z.map((Q)=>{V.c(Q)}),this.c(V)}}toString(){let J=Boolean(this.children.length),G=`<${this.name}`,X=this.attributes;for(let H of Object.keys(X)){let Z=X[H];if(Z!=null)G+=` ${H}="${tZ(""+Z)}"`}return G+=!J?"/>":`>${this.children.map((H)=>H.toString()).join("")}</${this.name}>`}}var zV=i2(aZ(),1);class w extends GV{constructor(J){super(J);Object.setPrototypeOf(this,w.prototype)}}class B6 extends w{constructor(J){super({name:"AccessDenied",$fault:"client",...J});this.name="AccessDenied",this.$fault="client",Object.setPrototypeOf(this,B6.prototype),this.Message=J.Message}}class R6 extends w{constructor(J){super({name:"IllegalUpdate",$fault:"client",...J});this.name="IllegalUpdate",this.$fault="client",Object.setPrototypeOf(this,R6.prototype),this.Message=J.Message}}class M6 extends w{constructor(J){super({name:"InvalidArgument",$fault:"client",...J});this.name="InvalidArgument",this.$fault="client",Object.setPrototypeOf(this,M6.prototype),this.Message=J.Message}}class q6 extends w{constructor(J){super({name:"NoSuchDistribution",$fault:"client",...J});this.name="NoSuchDistribution",this.$fault="client",Object.setPrototypeOf(this,q6.prototype),this.Message=J.Message}}class F6 extends w{constructor(J){super({name:"TooManyDistributionCNAMEs",$fault:"client",...J});this.name="TooManyDistributionCNAMEs",this.$fault="client",Object.setPrototypeOf(this,F6.prototype),this.Message=J.Message}}class j6 extends w{constructor(J){super({name:"BatchTooLarge",$fault:"client",...J});this.name="BatchTooLarge",this.$fault="client",Object.setPrototypeOf(this,j6.prototype),this.Message=J.Message}}class f6 extends w{constructor(J){super({name:"CachePolicyAlreadyExists",$fault:"client",...J});this.name="CachePolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,f6.prototype),this.Message=J.Message}}class D6 extends w{constructor(J){super({name:"CachePolicyInUse",$fault:"client",...J});this.name="CachePolicyInUse",this.$fault="client",Object.setPrototypeOf(this,D6.prototype),this.Message=J.Message}}class A6 extends w{constructor(J){super({name:"CannotChangeImmutablePublicKeyFields",$fault:"client",...J});this.name="CannotChangeImmutablePublicKeyFields",this.$fault="client",Object.setPrototypeOf(this,A6.prototype),this.Message=J.Message}}class I6 extends w{constructor(J){super({name:"CannotDeleteEntityWhileInUse",$fault:"client",...J});this.name="CannotDeleteEntityWhileInUse",this.$fault="client",Object.setPrototypeOf(this,I6.prototype),this.Message=J.Message}}class C6 extends w{constructor(J){super({name:"CNAMEAlreadyExists",$fault:"client",...J});this.name="CNAMEAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,C6.prototype),this.Message=J.Message}}class S6 extends w{constructor(J){super({name:"DistributionAlreadyExists",$fault:"client",...J});this.name="DistributionAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,S6.prototype),this.Message=J.Message}}class P6 extends w{constructor(J){super({name:"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior",$fault:"client",...J});this.name="IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior",this.$fault="client",Object.setPrototypeOf(this,P6.prototype),this.Message=J.Message}}class w6 extends w{constructor(J){super({name:"InconsistentQuantities",$fault:"client",...J});this.name="InconsistentQuantities",this.$fault="client",Object.setPrototypeOf(this,w6.prototype),this.Message=J.Message}}class L6 extends w{constructor(J){super({name:"InvalidDefaultRootObject",$fault:"client",...J});this.name="InvalidDefaultRootObject",this.$fault="client",Object.setPrototypeOf(this,L6.prototype),this.Message=J.Message}}class T6 extends w{constructor(J){super({name:"InvalidErrorCode",$fault:"client",...J});this.name="InvalidErrorCode",this.$fault="client",Object.setPrototypeOf(this,T6.prototype),this.Message=J.Message}}class N6 extends w{constructor(J){super({name:"InvalidForwardCookies",$fault:"client",...J});this.name="InvalidForwardCookies",this.$fault="client",Object.setPrototypeOf(this,N6.prototype),this.Message=J.Message}}class k6 extends w{constructor(J){super({name:"InvalidFunctionAssociation",$fault:"client",...J});this.name="InvalidFunctionAssociation",this.$fault="client",Object.setPrototypeOf(this,k6.prototype),this.Message=J.Message}}class E6 extends w{constructor(J){super({name:"InvalidGeoRestrictionParameter",$fault:"client",...J});this.name="InvalidGeoRestrictionParameter",this.$fault="client",Object.setPrototypeOf(this,E6.prototype),this.Message=J.Message}}class O6 extends w{constructor(J){super({name:"InvalidHeadersForS3Origin",$fault:"client",...J});this.name="InvalidHeadersForS3Origin",this.$fault="client",Object.setPrototypeOf(this,O6.prototype),this.Message=J.Message}}class v6 extends w{constructor(J){super({name:"InvalidIfMatchVersion",$fault:"client",...J});this.name="InvalidIfMatchVersion",this.$fault="client",Object.setPrototypeOf(this,v6.prototype),this.Message=J.Message}}class _6 extends w{constructor(J){super({name:"InvalidLambdaFunctionAssociation",$fault:"client",...J});this.name="InvalidLambdaFunctionAssociation",this.$fault="client",Object.setPrototypeOf(this,_6.prototype),this.Message=J.Message}}class g6 extends w{constructor(J){super({name:"InvalidLocationCode",$fault:"client",...J});this.name="InvalidLocationCode",this.$fault="client",Object.setPrototypeOf(this,g6.prototype),this.Message=J.Message}}class b6 extends w{constructor(J){super({name:"InvalidMinimumProtocolVersion",$fault:"client",...J});this.name="InvalidMinimumProtocolVersion",this.$fault="client",Object.setPrototypeOf(this,b6.prototype),this.Message=J.Message}}class h6 extends w{constructor(J){super({name:"InvalidOrigin",$fault:"client",...J});this.name="InvalidOrigin",this.$fault="client",Object.setPrototypeOf(this,h6.prototype),this.Message=J.Message}}class y6 extends w{constructor(J){super({name:"InvalidOriginAccessControl",$fault:"client",...J});this.name="InvalidOriginAccessControl",this.$fault="client",Object.setPrototypeOf(this,y6.prototype),this.Message=J.Message}}class m6 extends w{constructor(J){super({name:"InvalidOriginAccessIdentity",$fault:"client",...J});this.name="InvalidOriginAccessIdentity",this.$fault="client",Object.setPrototypeOf(this,m6.prototype),this.Message=J.Message}}class x6 extends w{constructor(J){super({name:"InvalidOriginKeepaliveTimeout",$fault:"client",...J});this.name="InvalidOriginKeepaliveTimeout",this.$fault="client",Object.setPrototypeOf(this,x6.prototype),this.Message=J.Message}}class l6 extends w{constructor(J){super({name:"InvalidOriginReadTimeout",$fault:"client",...J});this.name="InvalidOriginReadTimeout",this.$fault="client",Object.setPrototypeOf(this,l6.prototype),this.Message=J.Message}}class c6 extends w{constructor(J){super({name:"InvalidProtocolSettings",$fault:"client",...J});this.name="InvalidProtocolSettings",this.$fault="client",Object.setPrototypeOf(this,c6.prototype),this.Message=J.Message}}class r6 extends w{constructor(J){super({name:"InvalidQueryStringParameters",$fault:"client",...J});this.name="InvalidQueryStringParameters",this.$fault="client",Object.setPrototypeOf(this,r6.prototype),this.Message=J.Message}}class a6 extends w{constructor(J){super({name:"InvalidRelativePath",$fault:"client",...J});this.name="InvalidRelativePath",this.$fault="client",Object.setPrototypeOf(this,a6.prototype),this.Message=J.Message}}class i6 extends w{constructor(J){super({name:"InvalidRequiredProtocol",$fault:"client",...J});this.name="InvalidRequiredProtocol",this.$fault="client",Object.setPrototypeOf(this,i6.prototype),this.Message=J.Message}}class u6 extends w{constructor(J){super({name:"InvalidResponseCode",$fault:"client",...J});this.name="InvalidResponseCode",this.$fault="client",Object.setPrototypeOf(this,u6.prototype),this.Message=J.Message}}class d6 extends w{constructor(J){super({name:"InvalidTTLOrder",$fault:"client",...J});this.name="InvalidTTLOrder",this.$fault="client",Object.setPrototypeOf(this,d6.prototype),this.Message=J.Message}}class s6 extends w{constructor(J){super({name:"InvalidViewerCertificate",$fault:"client",...J});this.name="InvalidViewerCertificate",this.$fault="client",Object.setPrototypeOf(this,s6.prototype),this.Message=J.Message}}class p6 extends w{constructor(J){super({name:"InvalidWebACLId",$fault:"client",...J});this.name="InvalidWebACLId",this.$fault="client",Object.setPrototypeOf(this,p6.prototype),this.Message=J.Message}}class n6 extends w{constructor(J){super({name:"MissingBody",$fault:"client",...J});this.name="MissingBody",this.$fault="client",Object.setPrototypeOf(this,n6.prototype),this.Message=J.Message}}class o6 extends w{constructor(J){super({name:"NoSuchCachePolicy",$fault:"client",...J});this.name="NoSuchCachePolicy",this.$fault="client",Object.setPrototypeOf(this,o6.prototype),this.Message=J.Message}}class e6 extends w{constructor(J){super({name:"NoSuchFieldLevelEncryptionConfig",$fault:"client",...J});this.name="NoSuchFieldLevelEncryptionConfig",this.$fault="client",Object.setPrototypeOf(this,e6.prototype),this.Message=J.Message}}class t6 extends w{constructor(J){super({name:"NoSuchOrigin",$fault:"client",...J});this.name="NoSuchOrigin",this.$fault="client",Object.setPrototypeOf(this,t6.prototype),this.Message=J.Message}}class J8 extends w{constructor(J){super({name:"NoSuchOriginRequestPolicy",$fault:"client",...J});this.name="NoSuchOriginRequestPolicy",this.$fault="client",Object.setPrototypeOf(this,J8.prototype),this.Message=J.Message}}class G8 extends w{constructor(J){super({name:"NoSuchRealtimeLogConfig",$fault:"client",...J});this.name="NoSuchRealtimeLogConfig",this.$fault="client",Object.setPrototypeOf(this,G8.prototype),this.Message=J.Message}}class X8 extends w{constructor(J){super({name:"NoSuchResponseHeadersPolicy",$fault:"client",...J});this.name="NoSuchResponseHeadersPolicy",this.$fault="client",Object.setPrototypeOf(this,X8.prototype),this.Message=J.Message}}class H8 extends w{constructor(J){super({name:"PreconditionFailed",$fault:"client",...J});this.name="PreconditionFailed",this.$fault="client",Object.setPrototypeOf(this,H8.prototype),this.Message=J.Message}}class Z8 extends w{constructor(J){super({name:"RealtimeLogConfigOwnerMismatch",$fault:"client",...J});this.name="RealtimeLogConfigOwnerMismatch",this.$fault="client",Object.setPrototypeOf(this,Z8.prototype),this.Message=J.Message}}class V8 extends w{constructor(J){super({name:"TooManyCacheBehaviors",$fault:"client",...J});this.name="TooManyCacheBehaviors",this.$fault="client",Object.setPrototypeOf(this,V8.prototype),this.Message=J.Message}}class Q8 extends w{constructor(J){super({name:"TooManyCertificates",$fault:"client",...J});this.name="TooManyCertificates",this.$fault="client",Object.setPrototypeOf(this,Q8.prototype),this.Message=J.Message}}class Y8 extends w{constructor(J){super({name:"TooManyCookieNamesInWhiteList",$fault:"client",...J});this.name="TooManyCookieNamesInWhiteList",this.$fault="client",Object.setPrototypeOf(this,Y8.prototype),this.Message=J.Message}}class z8 extends w{constructor(J){super({name:"TooManyDistributions",$fault:"client",...J});this.name="TooManyDistributions",this.$fault="client",Object.setPrototypeOf(this,z8.prototype),this.Message=J.Message}}class W8 extends w{constructor(J){super({name:"TooManyDistributionsAssociatedToCachePolicy",$fault:"client",...J});this.name="TooManyDistributionsAssociatedToCachePolicy",this.$fault="client",Object.setPrototypeOf(this,W8.prototype),this.Message=J.Message}}class $8 extends w{constructor(J){super({name:"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig",$fault:"client",...J});this.name="TooManyDistributionsAssociatedToFieldLevelEncryptionConfig",this.$fault="client",Object.setPrototypeOf(this,$8.prototype),this.Message=J.Message}}class U8 extends w{constructor(J){super({name:"TooManyDistributionsAssociatedToKeyGroup",$fault:"client",...J});this.name="TooManyDistributionsAssociatedToKeyGroup",this.$fault="client",Object.setPrototypeOf(this,U8.prototype),this.Message=J.Message}}class K8 extends w{constructor(J){super({name:"TooManyDistributionsAssociatedToOriginAccessControl",$fault:"client",...J});this.name="TooManyDistributionsAssociatedToOriginAccessControl",this.$fault="client",Object.setPrototypeOf(this,K8.prototype),this.Message=J.Message}}class B8 extends w{constructor(J){super({name:"TooManyDistributionsAssociatedToOriginRequestPolicy",$fault:"client",...J});this.name="TooManyDistributionsAssociatedToOriginRequestPolicy",this.$fault="client",Object.setPrototypeOf(this,B8.prototype),this.Message=J.Message}}class R8 extends w{constructor(J){super({name:"TooManyDistributionsAssociatedToResponseHeadersPolicy",$fault:"client",...J});this.name="TooManyDistributionsAssociatedToResponseHeadersPolicy",this.$fault="client",Object.setPrototypeOf(this,R8.prototype),this.Message=J.Message}}class M8 extends w{constructor(J){super({name:"TooManyDistributionsWithFunctionAssociations",$fault:"client",...J});this.name="TooManyDistributionsWithFunctionAssociations",this.$fault="client",Object.setPrototypeOf(this,M8.prototype),this.Message=J.Message}}class q8 extends w{constructor(J){super({name:"TooManyDistributionsWithLambdaAssociations",$fault:"client",...J});this.name="TooManyDistributionsWithLambdaAssociations",this.$fault="client",Object.setPrototypeOf(this,q8.prototype),this.Message=J.Message}}class F8 extends w{constructor(J){super({name:"TooManyDistributionsWithSingleFunctionARN",$fault:"client",...J});this.name="TooManyDistributionsWithSingleFunctionARN",this.$fault="client",Object.setPrototypeOf(this,F8.prototype),this.Message=J.Message}}class j8 extends w{constructor(J){super({name:"TooManyFunctionAssociations",$fault:"client",...J});this.name="TooManyFunctionAssociations",this.$fault="client",Object.setPrototypeOf(this,j8.prototype),this.Message=J.Message}}class f8 extends w{constructor(J){super({name:"TooManyHeadersInForwardedValues",$fault:"client",...J});this.name="TooManyHeadersInForwardedValues",this.$fault="client",Object.setPrototypeOf(this,f8.prototype),this.Message=J.Message}}class D8 extends w{constructor(J){super({name:"TooManyKeyGroupsAssociatedToDistribution",$fault:"client",...J});this.name="TooManyKeyGroupsAssociatedToDistribution",this.$fault="client",Object.setPrototypeOf(this,D8.prototype),this.Message=J.Message}}class A8 extends w{constructor(J){super({name:"TooManyLambdaFunctionAssociations",$fault:"client",...J});this.name="TooManyLambdaFunctionAssociations",this.$fault="client",Object.setPrototypeOf(this,A8.prototype),this.Message=J.Message}}class I8 extends w{constructor(J){super({name:"TooManyOriginCustomHeaders",$fault:"client",...J});this.name="TooManyOriginCustomHeaders",this.$fault="client",Object.setPrototypeOf(this,I8.prototype),this.Message=J.Message}}class C8 extends w{constructor(J){super({name:"TooManyOriginGroupsPerDistribution",$fault:"client",...J});this.name="TooManyOriginGroupsPerDistribution",this.$fault="client",Object.setPrototypeOf(this,C8.prototype),this.Message=J.Message}}class S8 extends w{constructor(J){super({name:"TooManyOrigins",$fault:"client",...J});this.name="TooManyOrigins",this.$fault="client",Object.setPrototypeOf(this,S8.prototype),this.Message=J.Message}}class P8 extends w{constructor(J){super({name:"TooManyQueryStringParameters",$fault:"client",...J});this.name="TooManyQueryStringParameters",this.$fault="client",Object.setPrototypeOf(this,P8.prototype),this.Message=J.Message}}class w8 extends w{constructor(J){super({name:"TooManyTrustedSigners",$fault:"client",...J});this.name="TooManyTrustedSigners",this.$fault="client",Object.setPrototypeOf(this,w8.prototype),this.Message=J.Message}}class L8 extends w{constructor(J){super({name:"TrustedKeyGroupDoesNotExist",$fault:"client",...J});this.name="TrustedKeyGroupDoesNotExist",this.$fault="client",Object.setPrototypeOf(this,L8.prototype),this.Message=J.Message}}class T8 extends w{constructor(J){super({name:"TrustedSignerDoesNotExist",$fault:"client",...J});this.name="TrustedSignerDoesNotExist",this.$fault="client",Object.setPrototypeOf(this,T8.prototype),this.Message=J.Message}}class N8 extends w{constructor(J){super({name:"TooManyCachePolicies",$fault:"client",...J});this.name="TooManyCachePolicies",this.$fault="client",Object.setPrototypeOf(this,N8.prototype),this.Message=J.Message}}class k8 extends w{constructor(J){super({name:"TooManyCookiesInCachePolicy",$fault:"client",...J});this.name="TooManyCookiesInCachePolicy",this.$fault="client",Object.setPrototypeOf(this,k8.prototype),this.Message=J.Message}}class E8 extends w{constructor(J){super({name:"TooManyHeadersInCachePolicy",$fault:"client",...J});this.name="TooManyHeadersInCachePolicy",this.$fault="client",Object.setPrototypeOf(this,E8.prototype),this.Message=J.Message}}class O8 extends w{constructor(J){super({name:"TooManyQueryStringsInCachePolicy",$fault:"client",...J});this.name="TooManyQueryStringsInCachePolicy",this.$fault="client",Object.setPrototypeOf(this,O8.prototype),this.Message=J.Message}}class v8 extends w{constructor(J){super({name:"CloudFrontOriginAccessIdentityAlreadyExists",$fault:"client",...J});this.name="CloudFrontOriginAccessIdentityAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,v8.prototype),this.Message=J.Message}}class _8 extends w{constructor(J){super({name:"TooManyCloudFrontOriginAccessIdentities",$fault:"client",...J});this.name="TooManyCloudFrontOriginAccessIdentities",this.$fault="client",Object.setPrototypeOf(this,_8.prototype),this.Message=J.Message}}class g8 extends w{constructor(J){super({name:"ContinuousDeploymentPolicyAlreadyExists",$fault:"client",...J});this.name="ContinuousDeploymentPolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,g8.prototype),this.Message=J.Message}}class b8 extends w{constructor(J){super({name:"StagingDistributionInUse",$fault:"client",...J});this.name="StagingDistributionInUse",this.$fault="client",Object.setPrototypeOf(this,b8.prototype),this.Message=J.Message}}class h8 extends w{constructor(J){super({name:"TooManyContinuousDeploymentPolicies",$fault:"client",...J});this.name="TooManyContinuousDeploymentPolicies",this.$fault="client",Object.setPrototypeOf(this,h8.prototype),this.Message=J.Message}}class y8 extends w{constructor(J){super({name:"ContinuousDeploymentPolicyInUse",$fault:"client",...J});this.name="ContinuousDeploymentPolicyInUse",this.$fault="client",Object.setPrototypeOf(this,y8.prototype),this.Message=J.Message}}class m8 extends w{constructor(J){super({name:"IllegalOriginAccessConfiguration",$fault:"client",...J});this.name="IllegalOriginAccessConfiguration",this.$fault="client",Object.setPrototypeOf(this,m8.prototype),this.Message=J.Message}}class x8 extends w{constructor(J){super({name:"InvalidDomainNameForOriginAccessControl",$fault:"client",...J});this.name="InvalidDomainNameForOriginAccessControl",this.$fault="client",Object.setPrototypeOf(this,x8.prototype),this.Message=J.Message}}class l8 extends w{constructor(J){super({name:"NoSuchContinuousDeploymentPolicy",$fault:"client",...J});this.name="NoSuchContinuousDeploymentPolicy",this.$fault="client",Object.setPrototypeOf(this,l8.prototype),this.Message=J.Message}}class c8 extends w{constructor(J){super({name:"InvalidTagging",$fault:"client",...J});this.name="InvalidTagging",this.$fault="client",Object.setPrototypeOf(this,c8.prototype),this.Message=J.Message}}class r8 extends w{constructor(J){super({name:"FieldLevelEncryptionConfigAlreadyExists",$fault:"client",...J});this.name="FieldLevelEncryptionConfigAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,r8.prototype),this.Message=J.Message}}class a8 extends w{constructor(J){super({name:"NoSuchFieldLevelEncryptionProfile",$fault:"client",...J});this.name="NoSuchFieldLevelEncryptionProfile",this.$fault="client",Object.setPrototypeOf(this,a8.prototype),this.Message=J.Message}}class i8 extends w{constructor(J){super({name:"QueryArgProfileEmpty",$fault:"client",...J});this.name="QueryArgProfileEmpty",this.$fault="client",Object.setPrototypeOf(this,i8.prototype),this.Message=J.Message}}class u8 extends w{constructor(J){super({name:"TooManyFieldLevelEncryptionConfigs",$fault:"client",...J});this.name="TooManyFieldLevelEncryptionConfigs",this.$fault="client",Object.setPrototypeOf(this,u8.prototype),this.Message=J.Message}}class d8 extends w{constructor(J){super({name:"TooManyFieldLevelEncryptionContentTypeProfiles",$fault:"client",...J});this.name="TooManyFieldLevelEncryptionContentTypeProfiles",this.$fault="client",Object.setPrototypeOf(this,d8.prototype),this.Message=J.Message}}class s8 extends w{constructor(J){super({name:"TooManyFieldLevelEncryptionQueryArgProfiles",$fault:"client",...J});this.name="TooManyFieldLevelEncryptionQueryArgProfiles",this.$fault="client",Object.setPrototypeOf(this,s8.prototype),this.Message=J.Message}}class p8 extends w{constructor(J){super({name:"FieldLevelEncryptionProfileAlreadyExists",$fault:"client",...J});this.name="FieldLevelEncryptionProfileAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,p8.prototype),this.Message=J.Message}}class n8 extends w{constructor(J){super({name:"FieldLevelEncryptionProfileSizeExceeded",$fault:"client",...J});this.name="FieldLevelEncryptionProfileSizeExceeded",this.$fault="client",Object.setPrototypeOf(this,n8.prototype),this.Message=J.Message}}class o8 extends w{constructor(J){super({name:"NoSuchPublicKey",$fault:"client",...J});this.name="NoSuchPublicKey",this.$fault="client",Object.setPrototypeOf(this,o8.prototype),this.Message=J.Message}}class e8 extends w{constructor(J){super({name:"TooManyFieldLevelEncryptionEncryptionEntities",$fault:"client",...J});this.name="TooManyFieldLevelEncryptionEncryptionEntities",this.$fault="client",Object.setPrototypeOf(this,e8.prototype),this.Message=J.Message}}class t8 extends w{constructor(J){super({name:"TooManyFieldLevelEncryptionFieldPatterns",$fault:"client",...J});this.name="TooManyFieldLevelEncryptionFieldPatterns",this.$fault="client",Object.setPrototypeOf(this,t8.prototype),this.Message=J.Message}}class J4 extends w{constructor(J){super({name:"TooManyFieldLevelEncryptionProfiles",$fault:"client",...J});this.name="TooManyFieldLevelEncryptionProfiles",this.$fault="client",Object.setPrototypeOf(this,J4.prototype),this.Message=J.Message}}class G4 extends w{constructor(J){super({name:"FunctionAlreadyExists",$fault:"client",...J});this.name="FunctionAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,G4.prototype),this.Message=J.Message}}class X4 extends w{constructor(J){super({name:"FunctionSizeLimitExceeded",$fault:"client",...J});this.name="FunctionSizeLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,X4.prototype),this.Message=J.Message}}class H4 extends w{constructor(J){super({name:"TooManyFunctions",$fault:"client",...J});this.name="TooManyFunctions",this.$fault="client",Object.setPrototypeOf(this,H4.prototype),this.Message=J.Message}}class Z4 extends w{constructor(J){super({name:"UnsupportedOperation",$fault:"client",...J});this.name="UnsupportedOperation",this.$fault="client",Object.setPrototypeOf(this,Z4.prototype),this.Message=J.Message}}class V4 extends w{constructor(J){super({name:"TooManyInvalidationsInProgress",$fault:"client",...J});this.name="TooManyInvalidationsInProgress",this.$fault="client",Object.setPrototypeOf(this,V4.prototype),this.Message=J.Message}}class Q4 extends w{constructor(J){super({name:"KeyGroupAlreadyExists",$fault:"client",...J});this.name="KeyGroupAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,Q4.prototype),this.Message=J.Message}}class Y4 extends w{constructor(J){super({name:"TooManyKeyGroups",$fault:"client",...J});this.name="TooManyKeyGroups",this.$fault="client",Object.setPrototypeOf(this,Y4.prototype),this.Message=J.Message}}class z4 extends w{constructor(J){super({name:"TooManyPublicKeysInKeyGroup",$fault:"client",...J});this.name="TooManyPublicKeysInKeyGroup",this.$fault="client",Object.setPrototypeOf(this,z4.prototype),this.Message=J.Message}}class W4 extends w{constructor(J){super({name:"EntityAlreadyExists",$fault:"client",...J});this.name="EntityAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,W4.prototype),this.Message=J.Message}}class $4 extends w{constructor(J){super({name:"EntityLimitExceeded",$fault:"client",...J});this.name="EntityLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,$4.prototype),this.Message=J.Message}}class U4 extends w{constructor(J){super({name:"EntitySizeLimitExceeded",$fault:"client",...J});this.name="EntitySizeLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,U4.prototype),this.Message=J.Message}}class K4 extends w{constructor(J){super({name:"MonitoringSubscriptionAlreadyExists",$fault:"client",...J});this.name="MonitoringSubscriptionAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,K4.prototype),this.Message=J.Message}}class B4 extends w{constructor(J){super({name:"OriginAccessControlAlreadyExists",$fault:"client",...J});this.name="OriginAccessControlAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,B4.prototype),this.Message=J.Message}}class R4 extends w{constructor(J){super({name:"TooManyOriginAccessControls",$fault:"client",...J});this.name="TooManyOriginAccessControls",this.$fault="client",Object.setPrototypeOf(this,R4.prototype),this.Message=J.Message}}class M4 extends w{constructor(J){super({name:"OriginRequestPolicyAlreadyExists",$fault:"client",...J});this.name="OriginRequestPolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,M4.prototype),this.Message=J.Message}}class q4 extends w{constructor(J){super({name:"TooManyCookiesInOriginRequestPolicy",$fault:"client",...J});this.name="TooManyCookiesInOriginRequestPolicy",this.$fault="client",Object.setPrototypeOf(this,q4.prototype),this.Message=J.Message}}class F4 extends w{constructor(J){super({name:"TooManyHeadersInOriginRequestPolicy",$fault:"client",...J});this.name="TooManyHeadersInOriginRequestPolicy",this.$fault="client",Object.setPrototypeOf(this,F4.prototype),this.Message=J.Message}}class j4 extends w{constructor(J){super({name:"TooManyOriginRequestPolicies",$fault:"client",...J});this.name="TooManyOriginRequestPolicies",this.$fault="client",Object.setPrototypeOf(this,j4.prototype),this.Message=J.Message}}class f4 extends w{constructor(J){super({name:"TooManyQueryStringsInOriginRequestPolicy",$fault:"client",...J});this.name="TooManyQueryStringsInOriginRequestPolicy",this.$fault="client",Object.setPrototypeOf(this,f4.prototype),this.Message=J.Message}}class D4 extends w{constructor(J){super({name:"PublicKeyAlreadyExists",$fault:"client",...J});this.name="PublicKeyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,D4.prototype),this.Message=J.Message}}class A4 extends w{constructor(J){super({name:"TooManyPublicKeys",$fault:"client",...J});this.name="TooManyPublicKeys",this.$fault="client",Object.setPrototypeOf(this,A4.prototype),this.Message=J.Message}}class I4 extends w{constructor(J){super({name:"RealtimeLogConfigAlreadyExists",$fault:"client",...J});this.name="RealtimeLogConfigAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,I4.prototype),this.Message=J.Message}}class C4 extends w{constructor(J){super({name:"TooManyRealtimeLogConfigs",$fault:"client",...J});this.name="TooManyRealtimeLogConfigs",this.$fault="client",Object.setPrototypeOf(this,C4.prototype),this.Message=J.Message}}class S4 extends w{constructor(J){super({name:"ResponseHeadersPolicyAlreadyExists",$fault:"client",...J});this.name="ResponseHeadersPolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,S4.prototype),this.Message=J.Message}}class P4 extends w{constructor(J){super({name:"TooLongCSPInResponseHeadersPolicy",$fault:"client",...J});this.name="TooLongCSPInResponseHeadersPolicy",this.$fault="client",Object.setPrototypeOf(this,P4.prototype),this.Message=J.Message}}class w4 extends w{constructor(J){super({name:"TooManyCustomHeadersInResponseHeadersPolicy",$fault:"client",...J});this.name="TooManyCustomHeadersInResponseHeadersPolicy",this.$fault="client",Object.setPrototypeOf(this,w4.prototype),this.Message=J.Message}}class L4 extends w{constructor(J){super({name:"TooManyRemoveHeadersInResponseHeadersPolicy",$fault:"client",...J});this.name="TooManyRemoveHeadersInResponseHeadersPolicy",this.$fault="client",Object.setPrototypeOf(this,L4.prototype),this.Message=J.Message}}class T4 extends w{constructor(J){super({name:"TooManyResponseHeadersPolicies",$fault:"client",...J});this.name="TooManyResponseHeadersPolicies",this.$fault="client",Object.setPrototypeOf(this,T4.prototype),this.Message=J.Message}}class N4 extends w{constructor(J){super({name:"StreamingDistributionAlreadyExists",$fault:"client",...J});this.name="StreamingDistributionAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,N4.prototype),this.Message=J.Message}}class k4 extends w{constructor(J){super({name:"TooManyStreamingDistributionCNAMEs",$fault:"client",...J});this.name="TooManyStreamingDistributionCNAMEs",this.$fault="client",Object.setPrototypeOf(this,k4.prototype),this.Message=J.Message}}class E4 extends w{constructor(J){super({name:"TooManyStreamingDistributions",$fault:"client",...J});this.name="TooManyStreamingDistributions",this.$fault="client",Object.setPrototypeOf(this,E4.prototype),this.Message=J.Message}}class O4 extends w{constructor(J){super({name:"IllegalDelete",$fault:"client",...J});this.name="IllegalDelete",this.$fault="client",Object.setPrototypeOf(this,O4.prototype),this.Message=J.Message}}class v4 extends w{constructor(J){super({name:"CloudFrontOriginAccessIdentityInUse",$fault:"client",...J});this.name="CloudFrontOriginAccessIdentityInUse",this.$fault="client",Object.setPrototypeOf(this,v4.prototype),this.Message=J.Message}}class _4 extends w{constructor(J){super({name:"NoSuchCloudFrontOriginAccessIdentity",$fault:"client",...J});this.name="NoSuchCloudFrontOriginAccessIdentity",this.$fault="client",Object.setPrototypeOf(this,_4.prototype),this.Message=J.Message}}class g4 extends w{constructor(J){super({name:"DistributionNotDisabled",$fault:"client",...J});this.name="DistributionNotDisabled",this.$fault="client",Object.setPrototypeOf(this,g4.prototype),this.Message=J.Message}}class b4 extends w{constructor(J){super({name:"FieldLevelEncryptionConfigInUse",$fault:"client",...J});this.name="FieldLevelEncryptionConfigInUse",this.$fault="client",Object.setPrototypeOf(this,b4.prototype),this.Message=J.Message}}class h4 extends w{constructor(J){super({name:"FieldLevelEncryptionProfileInUse",$fault:"client",...J});this.name="FieldLevelEncryptionProfileInUse",this.$fault="client",Object.setPrototypeOf(this,h4.prototype),this.Message=J.Message}}class y4 extends w{constructor(J){super({name:"FunctionInUse",$fault:"client",...J});this.name="FunctionInUse",this.$fault="client",Object.setPrototypeOf(this,y4.prototype),this.Message=J.Message}}class m4 extends w{constructor(J){super({name:"NoSuchFunctionExists",$fault:"client",...J});this.name="NoSuchFunctionExists",this.$fault="client",Object.setPrototypeOf(this,m4.prototype),this.Message=J.Message}}class x4 extends w{constructor(J){super({name:"NoSuchResource",$fault:"client",...J});this.name="NoSuchResource",this.$fault="client",Object.setPrototypeOf(this,x4.prototype),this.Message=J.Message}}class l4 extends w{constructor(J){super({name:"ResourceInUse",$fault:"client",...J});this.name="ResourceInUse",this.$fault="client",Object.setPrototypeOf(this,l4.prototype),this.Message=J.Message}}class c4 extends w{constructor(J){super({name:"EntityNotFound",$fault:"client",...J});this.name="EntityNotFound",this.$fault="client",Object.setPrototypeOf(this,c4.prototype),this.Message=J.Message}}class r4 extends w{constructor(J){super({name:"NoSuchMonitoringSubscription",$fault:"client",...J});this.name="NoSuchMonitoringSubscription",this.$fault="client",Object.setPrototypeOf(this,r4.prototype),this.Message=J.Message}}class a4 extends w{constructor(J){super({name:"NoSuchOriginAccessControl",$fault:"client",...J});this.name="NoSuchOriginAccessControl",this.$fault="client",Object.setPrototypeOf(this,a4.prototype),this.Message=J.Message}}class i4 extends w{constructor(J){super({name:"OriginAccessControlInUse",$fault:"client",...J});this.name="OriginAccessControlInUse",this.$fault="client",Object.setPrototypeOf(this,i4.prototype),this.Message=J.Message}}class u4 extends w{constructor(J){super({name:"OriginRequestPolicyInUse",$fault:"client",...J});this.name="OriginRequestPolicyInUse",this.$fault="client",Object.setPrototypeOf(this,u4.prototype),this.Message=J.Message}}class d4 extends w{constructor(J){super({name:"PublicKeyInUse",$fault:"client",...J});this.name="PublicKeyInUse",this.$fault="client",Object.setPrototypeOf(this,d4.prototype),this.Message=J.Message}}class s4 extends w{constructor(J){super({name:"RealtimeLogConfigInUse",$fault:"client",...J});this.name="RealtimeLogConfigInUse",this.$fault="client",Object.setPrototypeOf(this,s4.prototype),this.Message=J.Message}}class p4 extends w{constructor(J){super({name:"ResponseHeadersPolicyInUse",$fault:"client",...J});this.name="ResponseHeadersPolicyInUse",this.$fault="client",Object.setPrototypeOf(this,p4.prototype),this.Message=J.Message}}class n4 extends w{constructor(J){super({name:"NoSuchStreamingDistribution",$fault:"client",...J});this.name="NoSuchStreamingDistribution",this.$fault="client",Object.setPrototypeOf(this,n4.prototype),this.Message=J.Message}}class o4 extends w{constructor(J){super({name:"StreamingDistributionNotDisabled",$fault:"client",...J});this.name="StreamingDistributionNotDisabled",this.$fault="client",Object.setPrototypeOf(this,o4.prototype),this.Message=J.Message}}class e4 extends w{constructor(J){super({name:"NoSuchInvalidation",$fault:"client",...J});this.name="NoSuchInvalidation",this.$fault="client",Object.setPrototypeOf(this,e4.prototype),this.Message=J.Message}}class t4 extends w{constructor(J){super({name:"TestFunctionFailed",$fault:"server",...J});this.name="TestFunctionFailed",this.$fault="server",Object.setPrototypeOf(this,t4.prototype),this.Message=J.Message}}var WV=async(J,G)=>{let X=zV.requestBuilder(J,G),H={"content-type":"application/xml"};X.bp("/2020-05-31/distribution/{DistributionId}/invalidation"),X.p("DistributionId",()=>J.DistributionId,"{DistributionId}",!1);let Z,V;if(J.InvalidationBatch!==void 0)V=UD(J.InvalidationBatch,G),Z=AD,V.a("xmlns","http://cloudfront.amazonaws.com/doc/2020-05-31/"),Z+=V.toString();return X.m("POST").h(H).b(Z),X.build()};var $V=async(J,G)=>{if(J.statusCode!==201&&J.statusCode>=300)return AF(J,G);let X=T({$metadata:k(J),[jD]:[,J.headers[DD]]}),H=HV(await P5.parseXmlBody(J.body,G));return X.Invalidation=RD(H,G),X};var AF=async(J,G)=>{let X={...J,body:await P5.parseXmlErrorBody(J.body,G)},H=P5.loadRestXmlErrorCode(J,X.body);switch(H){case"AccessDenied":case"com.amazonaws.cloudfront#AccessDenied":throw await CF(X,G);case"IllegalUpdate":case"com.amazonaws.cloudfront#IllegalUpdate":throw await oF(X,G);case"InvalidArgument":case"com.amazonaws.cloudfront#InvalidArgument":throw await tF(X,G);case"NoSuchDistribution":case"com.amazonaws.cloudfront#NoSuchDistribution":throw await Ej(X,G);case"TooManyDistributionCNAMEs":case"com.amazonaws.cloudfront#TooManyDistributionCNAMEs":throw await ff(X,G);case"CNAMEAlreadyExists":case"com.amazonaws.cloudfront#CNAMEAlreadyExists":throw await EF(X,G);case"DistributionAlreadyExists":case"com.amazonaws.cloudfront#DistributionAlreadyExists":throw await _F(X,G);case"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":case"com.amazonaws.cloudfront#IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":throw await pF(X,G);case"InconsistentQuantities":case"com.amazonaws.cloudfront#InconsistentQuantities":throw await eF(X,G);case"InvalidDefaultRootObject":case"com.amazonaws.cloudfront#InvalidDefaultRootObject":throw await Jj(X,G);case"InvalidErrorCode":case"com.amazonaws.cloudfront#InvalidErrorCode":throw await Xj(X,G);case"InvalidForwardCookies":case"com.amazonaws.cloudfront#InvalidForwardCookies":throw await Hj(X,G);case"InvalidFunctionAssociation":case"com.amazonaws.cloudfront#InvalidFunctionAssociation":throw await Zj(X,G);case"InvalidGeoRestrictionParameter":case"com.amazonaws.cloudfront#InvalidGeoRestrictionParameter":throw await Vj(X,G);case"InvalidHeadersForS3Origin":case"com.amazonaws.cloudfront#InvalidHeadersForS3Origin":throw await Qj(X,G);case"InvalidIfMatchVersion":case"com.amazonaws.cloudfront#InvalidIfMatchVersion":throw await Yj(X,G);case"InvalidLambdaFunctionAssociation":case"com.amazonaws.cloudfront#InvalidLambdaFunctionAssociation":throw await zj(X,G);case"InvalidLocationCode":case"com.amazonaws.cloudfront#InvalidLocationCode":throw await Wj(X,G);case"InvalidMinimumProtocolVersion":case"com.amazonaws.cloudfront#InvalidMinimumProtocolVersion":throw await $j(X,G);case"InvalidOrigin":case"com.amazonaws.cloudfront#InvalidOrigin":throw await Uj(X,G);case"InvalidOriginAccessControl":case"com.amazonaws.cloudfront#InvalidOriginAccessControl":throw await Kj(X,G);case"InvalidOriginAccessIdentity":case"com.amazonaws.cloudfront#InvalidOriginAccessIdentity":throw await Bj(X,G);case"InvalidOriginKeepaliveTimeout":case"com.amazonaws.cloudfront#InvalidOriginKeepaliveTimeout":throw await Rj(X,G);case"InvalidOriginReadTimeout":case"com.amazonaws.cloudfront#InvalidOriginReadTimeout":throw await Mj(X,G);case"InvalidProtocolSettings":case"com.amazonaws.cloudfront#InvalidProtocolSettings":throw await qj(X,G);case"InvalidQueryStringParameters":case"com.amazonaws.cloudfront#InvalidQueryStringParameters":throw await Fj(X,G);case"InvalidRelativePath":case"com.amazonaws.cloudfront#InvalidRelativePath":throw await jj(X,G);case"InvalidRequiredProtocol":case"com.amazonaws.cloudfront#InvalidRequiredProtocol":throw await fj(X,G);case"InvalidResponseCode":case"com.amazonaws.cloudfront#InvalidResponseCode":throw await Dj(X,G);case"InvalidTTLOrder":case"com.amazonaws.cloudfront#InvalidTTLOrder":throw await Ij(X,G);case"InvalidViewerCertificate":case"com.amazonaws.cloudfront#InvalidViewerCertificate":throw await Cj(X,G);case"InvalidWebACLId":case"com.amazonaws.cloudfront#InvalidWebACLId":throw await Sj(X,G);case"MissingBody":case"com.amazonaws.cloudfront#MissingBody":throw await wj(X,G);case"NoSuchCachePolicy":case"com.amazonaws.cloudfront#NoSuchCachePolicy":throw await Tj(X,G);case"NoSuchFieldLevelEncryptionConfig":case"com.amazonaws.cloudfront#NoSuchFieldLevelEncryptionConfig":throw await Oj(X,G);case"NoSuchOrigin":case"com.amazonaws.cloudfront#NoSuchOrigin":throw await hj(X,G);case"NoSuchOriginRequestPolicy":case"com.amazonaws.cloudfront#NoSuchOriginRequestPolicy":throw await mj(X,G);case"NoSuchRealtimeLogConfig":case"com.amazonaws.cloudfront#NoSuchRealtimeLogConfig":throw await lj(X,G);case"NoSuchResponseHeadersPolicy":case"com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy":throw await rj(X,G);case"PreconditionFailed":case"com.amazonaws.cloudfront#PreconditionFailed":throw await pj(X,G);case"RealtimeLogConfigOwnerMismatch":case"com.amazonaws.cloudfront#RealtimeLogConfigOwnerMismatch":throw await Gf(X,G);case"TooManyCacheBehaviors":case"com.amazonaws.cloudfront#TooManyCacheBehaviors":throw await $f(X,G);case"TooManyCertificates":case"com.amazonaws.cloudfront#TooManyCertificates":throw await Kf(X,G);case"TooManyCookieNamesInWhiteList":case"com.amazonaws.cloudfront#TooManyCookieNamesInWhiteList":throw await Mf(X,G);case"TooManyDistributions":case"com.amazonaws.cloudfront#TooManyDistributions":throw await Df(X,G);case"TooManyDistributionsAssociatedToCachePolicy":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToCachePolicy":throw await Af(X,G);case"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToFieldLevelEncryptionConfig":throw await If(X,G);case"TooManyDistributionsAssociatedToKeyGroup":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup":throw await Cf(X,G);case"TooManyDistributionsAssociatedToOriginAccessControl":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginAccessControl":throw await Sf(X,G);case"TooManyDistributionsAssociatedToOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy":throw await Pf(X,G);case"TooManyDistributionsAssociatedToResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToResponseHeadersPolicy":throw await wf(X,G);case"TooManyDistributionsWithFunctionAssociations":case"com.amazonaws.cloudfront#TooManyDistributionsWithFunctionAssociations":throw await Lf(X,G);case"TooManyDistributionsWithLambdaAssociations":case"com.amazonaws.cloudfront#TooManyDistributionsWithLambdaAssociations":throw await Tf(X,G);case"TooManyDistributionsWithSingleFunctionARN":case"com.amazonaws.cloudfront#TooManyDistributionsWithSingleFunctionARN":throw await Nf(X,G);case"TooManyFunctionAssociations":case"com.amazonaws.cloudfront#TooManyFunctionAssociations":throw await bf(X,G);case"TooManyHeadersInForwardedValues":case"com.amazonaws.cloudfront#TooManyHeadersInForwardedValues":throw await mf(X,G);case"TooManyKeyGroupsAssociatedToDistribution":case"com.amazonaws.cloudfront#TooManyKeyGroupsAssociatedToDistribution":throw await rf(X,G);case"TooManyLambdaFunctionAssociations":case"com.amazonaws.cloudfront#TooManyLambdaFunctionAssociations":throw await af(X,G);case"TooManyOriginCustomHeaders":case"com.amazonaws.cloudfront#TooManyOriginCustomHeaders":throw await df(X,G);case"TooManyOriginGroupsPerDistribution":case"com.amazonaws.cloudfront#TooManyOriginGroupsPerDistribution":throw await sf(X,G);case"TooManyOrigins":case"com.amazonaws.cloudfront#TooManyOrigins":throw await nf(X,G);case"TooManyQueryStringParameters":case"com.amazonaws.cloudfront#TooManyQueryStringParameters":throw await tf(X,G);case"TooManyTrustedSigners":case"com.amazonaws.cloudfront#TooManyTrustedSigners":throw await YD(X,G);case"TrustedKeyGroupDoesNotExist":case"com.amazonaws.cloudfront#TrustedKeyGroupDoesNotExist":throw await zD(X,G);case"TrustedSignerDoesNotExist":case"com.amazonaws.cloudfront#TrustedSignerDoesNotExist":throw await WD(X,G);case"CachePolicyAlreadyExists":case"com.amazonaws.cloudfront#CachePolicyAlreadyExists":throw await PF(X,G);case"TooManyCachePolicies":case"com.amazonaws.cloudfront#TooManyCachePolicies":throw await Uf(X,G);case"TooManyCookiesInCachePolicy":case"com.amazonaws.cloudfront#TooManyCookiesInCachePolicy":throw await qf(X,G);case"TooManyHeadersInCachePolicy":case"com.amazonaws.cloudfront#TooManyHeadersInCachePolicy":throw await yf(X,G);case"TooManyQueryStringsInCachePolicy":case"com.amazonaws.cloudfront#TooManyQueryStringsInCachePolicy":throw await JD(X,G);case"CloudFrontOriginAccessIdentityAlreadyExists":case"com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityAlreadyExists":throw await NF(X,G);case"TooManyCloudFrontOriginAccessIdentities":case"com.amazonaws.cloudfront#TooManyCloudFrontOriginAccessIdentities":throw await Bf(X,G);case"ContinuousDeploymentPolicyAlreadyExists":case"com.amazonaws.cloudfront#ContinuousDeploymentPolicyAlreadyExists":throw await OF(X,G);case"StagingDistributionInUse":case"com.amazonaws.cloudfront#StagingDistributionInUse":throw await Vf(X,G);case"TooManyContinuousDeploymentPolicies":case"com.amazonaws.cloudfront#TooManyContinuousDeploymentPolicies":throw await Rf(X,G);case"ContinuousDeploymentPolicyInUse":case"com.amazonaws.cloudfront#ContinuousDeploymentPolicyInUse":throw await vF(X,G);case"IllegalOriginAccessConfiguration":case"com.amazonaws.cloudfront#IllegalOriginAccessConfiguration":throw await nF(X,G);case"InvalidDomainNameForOriginAccessControl":case"com.amazonaws.cloudfront#InvalidDomainNameForOriginAccessControl":throw await Gj(X,G);case"NoSuchContinuousDeploymentPolicy":case"com.amazonaws.cloudfront#NoSuchContinuousDeploymentPolicy":throw await kj(X,G);case"InvalidTagging":case"com.amazonaws.cloudfront#InvalidTagging":throw await Aj(X,G);case"FieldLevelEncryptionConfigAlreadyExists":case"com.amazonaws.cloudfront#FieldLevelEncryptionConfigAlreadyExists":throw await xF(X,G);case"NoSuchFieldLevelEncryptionProfile":case"com.amazonaws.cloudfront#NoSuchFieldLevelEncryptionProfile":throw await vj(X,G);case"QueryArgProfileEmpty":case"com.amazonaws.cloudfront#QueryArgProfileEmpty":throw await ej(X,G);case"TooManyFieldLevelEncryptionConfigs":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionConfigs":throw await kf(X,G);case"TooManyFieldLevelEncryptionContentTypeProfiles":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionContentTypeProfiles":throw await Ef(X,G);case"TooManyFieldLevelEncryptionQueryArgProfiles":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionQueryArgProfiles":throw await gf(X,G);case"FieldLevelEncryptionProfileAlreadyExists":case"com.amazonaws.cloudfront#FieldLevelEncryptionProfileAlreadyExists":throw await cF(X,G);case"FieldLevelEncryptionProfileSizeExceeded":case"com.amazonaws.cloudfront#FieldLevelEncryptionProfileSizeExceeded":throw await aF(X,G);case"NoSuchPublicKey":case"com.amazonaws.cloudfront#NoSuchPublicKey":throw await xj(X,G);case"TooManyFieldLevelEncryptionEncryptionEntities":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionEncryptionEntities":throw await Of(X,G);case"TooManyFieldLevelEncryptionFieldPatterns":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionFieldPatterns":throw await vf(X,G);case"TooManyFieldLevelEncryptionProfiles":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionProfiles":throw await _f(X,G);case"FunctionAlreadyExists":case"com.amazonaws.cloudfront#FunctionAlreadyExists":throw await iF(X,G);case"FunctionSizeLimitExceeded":case"com.amazonaws.cloudfront#FunctionSizeLimitExceeded":throw await dF(X,G);case"TooManyFunctions":case"com.amazonaws.cloudfront#TooManyFunctions":throw await hf(X,G);case"UnsupportedOperation":case"com.amazonaws.cloudfront#UnsupportedOperation":throw await $D(X,G);case"BatchTooLarge":case"com.amazonaws.cloudfront#BatchTooLarge":throw await SF(X,G);case"TooManyInvalidationsInProgress":case"com.amazonaws.cloudfront#TooManyInvalidationsInProgress":throw await lf(X,G);case"KeyGroupAlreadyExists":case"com.amazonaws.cloudfront#KeyGroupAlreadyExists":throw await Pj(X,G);case"TooManyKeyGroups":case"com.amazonaws.cloudfront#TooManyKeyGroups":throw await cf(X,G);case"TooManyPublicKeysInKeyGroup":case"com.amazonaws.cloudfront#TooManyPublicKeysInKeyGroup":throw await ef(X,G);case"EntityAlreadyExists":case"com.amazonaws.cloudfront#EntityAlreadyExists":throw await bF(X,G);case"EntityLimitExceeded":case"com.amazonaws.cloudfront#EntityLimitExceeded":throw await hF(X,G);case"EntitySizeLimitExceeded":case"com.amazonaws.cloudfront#EntitySizeLimitExceeded":throw await mF(X,G);case"MonitoringSubscriptionAlreadyExists":case"com.amazonaws.cloudfront#MonitoringSubscriptionAlreadyExists":throw await Lj(X,G);case"OriginAccessControlAlreadyExists":case"com.amazonaws.cloudfront#OriginAccessControlAlreadyExists":throw await ij(X,G);case"TooManyOriginAccessControls":case"com.amazonaws.cloudfront#TooManyOriginAccessControls":throw await uf(X,G);case"OriginRequestPolicyAlreadyExists":case"com.amazonaws.cloudfront#OriginRequestPolicyAlreadyExists":throw await dj(X,G);case"TooManyCookiesInOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyCookiesInOriginRequestPolicy":throw await Ff(X,G);case"TooManyHeadersInOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyHeadersInOriginRequestPolicy":throw await xf(X,G);case"TooManyOriginRequestPolicies":case"com.amazonaws.cloudfront#TooManyOriginRequestPolicies":throw await pf(X,G);case"TooManyQueryStringsInOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyQueryStringsInOriginRequestPolicy":throw await GD(X,G);case"PublicKeyAlreadyExists":case"com.amazonaws.cloudfront#PublicKeyAlreadyExists":throw await nj(X,G);case"TooManyPublicKeys":case"com.amazonaws.cloudfront#TooManyPublicKeys":throw await of(X,G);case"RealtimeLogConfigAlreadyExists":case"com.amazonaws.cloudfront#RealtimeLogConfigAlreadyExists":throw await tj(X,G);case"TooManyRealtimeLogConfigs":case"com.amazonaws.cloudfront#TooManyRealtimeLogConfigs":throw await XD(X,G);case"ResponseHeadersPolicyAlreadyExists":case"com.amazonaws.cloudfront#ResponseHeadersPolicyAlreadyExists":throw await Hf(X,G);case"TooLongCSPInResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooLongCSPInResponseHeadersPolicy":throw await Wf(X,G);case"TooManyCustomHeadersInResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooManyCustomHeadersInResponseHeadersPolicy":throw await jf(X,G);case"TooManyRemoveHeadersInResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooManyRemoveHeadersInResponseHeadersPolicy":throw await HD(X,G);case"TooManyResponseHeadersPolicies":case"com.amazonaws.cloudfront#TooManyResponseHeadersPolicies":throw await ZD(X,G);case"StreamingDistributionAlreadyExists":case"com.amazonaws.cloudfront#StreamingDistributionAlreadyExists":throw await Qf(X,G);case"TooManyStreamingDistributionCNAMEs":case"com.amazonaws.cloudfront#TooManyStreamingDistributionCNAMEs":throw await VD(X,G);case"TooManyStreamingDistributions":case"com.amazonaws.cloudfront#TooManyStreamingDistributions":throw await QD(X,G);case"CachePolicyInUse":case"com.amazonaws.cloudfront#CachePolicyInUse":throw await wF(X,G);case"IllegalDelete":case"com.amazonaws.cloudfront#IllegalDelete":throw await sF(X,G);case"CloudFrontOriginAccessIdentityInUse":case"com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityInUse":throw await kF(X,G);case"NoSuchCloudFrontOriginAccessIdentity":case"com.amazonaws.cloudfront#NoSuchCloudFrontOriginAccessIdentity":throw await Nj(X,G);case"DistributionNotDisabled":case"com.amazonaws.cloudfront#DistributionNotDisabled":throw await gF(X,G);case"FieldLevelEncryptionConfigInUse":case"com.amazonaws.cloudfront#FieldLevelEncryptionConfigInUse":throw await lF(X,G);case"FieldLevelEncryptionProfileInUse":case"com.amazonaws.cloudfront#FieldLevelEncryptionProfileInUse":throw await rF(X,G);case"FunctionInUse":case"com.amazonaws.cloudfront#FunctionInUse":throw await uF(X,G);case"NoSuchFunctionExists":case"com.amazonaws.cloudfront#NoSuchFunctionExists":throw await _j(X,G);case"NoSuchResource":case"com.amazonaws.cloudfront#NoSuchResource":throw await cj(X,G);case"ResourceInUse":case"com.amazonaws.cloudfront#ResourceInUse":throw await Xf(X,G);case"CannotDeleteEntityWhileInUse":case"com.amazonaws.cloudfront#CannotDeleteEntityWhileInUse":throw await TF(X,G);case"EntityNotFound":case"com.amazonaws.cloudfront#EntityNotFound":throw await yF(X,G);case"NoSuchMonitoringSubscription":case"com.amazonaws.cloudfront#NoSuchMonitoringSubscription":throw await bj(X,G);case"NoSuchOriginAccessControl":case"com.amazonaws.cloudfront#NoSuchOriginAccessControl":throw await yj(X,G);case"OriginAccessControlInUse":case"com.amazonaws.cloudfront#OriginAccessControlInUse":throw await uj(X,G);case"OriginRequestPolicyInUse":case"com.amazonaws.cloudfront#OriginRequestPolicyInUse":throw await sj(X,G);case"PublicKeyInUse":case"com.amazonaws.cloudfront#PublicKeyInUse":throw await oj(X,G);case"RealtimeLogConfigInUse":case"com.amazonaws.cloudfront#RealtimeLogConfigInUse":throw await Jf(X,G);case"ResponseHeadersPolicyInUse":case"com.amazonaws.cloudfront#ResponseHeadersPolicyInUse":throw await Zf(X,G);case"NoSuchStreamingDistribution":case"com.amazonaws.cloudfront#NoSuchStreamingDistribution":throw await aj(X,G);case"StreamingDistributionNotDisabled":case"com.amazonaws.cloudfront#StreamingDistributionNotDisabled":throw await Yf(X,G);case"NoSuchInvalidation":case"com.amazonaws.cloudfront#NoSuchInvalidation":throw await gj(X,G);case"TestFunctionFailed":case"com.amazonaws.cloudfront#TestFunctionFailed":throw await zf(X,G);case"CannotChangeImmutablePublicKeyFields":case"com.amazonaws.cloudfront#CannotChangeImmutablePublicKeyFields":throw await LF(X,G);default:let Z=X.body;return IF({output:J,parsedBody:Z.Error,errorCode:H})}},IF=QV(w),CF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new B6({$metadata:k(J),...X});return N(Z,J.body.Error)},SF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new j6({$metadata:k(J),...X});return N(Z,J.body.Error)},PF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new f6({$metadata:k(J),...X});return N(Z,J.body.Error)},wF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new D6({$metadata:k(J),...X});return N(Z,J.body.Error)},LF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new A6({$metadata:k(J),...X});return N(Z,J.body.Error)},TF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new I6({$metadata:k(J),...X});return N(Z,J.body.Error)},NF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new v8({$metadata:k(J),...X});return N(Z,J.body.Error)},kF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new v4({$metadata:k(J),...X});return N(Z,J.body.Error)},EF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new C6({$metadata:k(J),...X});return N(Z,J.body.Error)},OF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new g8({$metadata:k(J),...X});return N(Z,J.body.Error)},vF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new y8({$metadata:k(J),...X});return N(Z,J.body.Error)},_F=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new S6({$metadata:k(J),...X});return N(Z,J.body.Error)},gF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new g4({$metadata:k(J),...X});return N(Z,J.body.Error)},bF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new W4({$metadata:k(J),...X});return N(Z,J.body.Error)},hF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new $4({$metadata:k(J),...X});return N(Z,J.body.Error)},yF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new c4({$metadata:k(J),...X});return N(Z,J.body.Error)},mF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new U4({$metadata:k(J),...X});return N(Z,J.body.Error)},xF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new r8({$metadata:k(J),...X});return N(Z,J.body.Error)},lF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new b4({$metadata:k(J),...X});return N(Z,J.body.Error)},cF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new p8({$metadata:k(J),...X});return N(Z,J.body.Error)},rF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new h4({$metadata:k(J),...X});return N(Z,J.body.Error)},aF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new n8({$metadata:k(J),...X});return N(Z,J.body.Error)},iF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new G4({$metadata:k(J),...X});return N(Z,J.body.Error)},uF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new y4({$metadata:k(J),...X});return N(Z,J.body.Error)},dF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new X4({$metadata:k(J),...X});return N(Z,J.body.Error)},sF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new O4({$metadata:k(J),...X});return N(Z,J.body.Error)},pF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new P6({$metadata:k(J),...X});return N(Z,J.body.Error)},nF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new m8({$metadata:k(J),...X});return N(Z,J.body.Error)},oF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new R6({$metadata:k(J),...X});return N(Z,J.body.Error)},eF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new w6({$metadata:k(J),...X});return N(Z,J.body.Error)},tF=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new M6({$metadata:k(J),...X});return N(Z,J.body.Error)},Jj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new L6({$metadata:k(J),...X});return N(Z,J.body.Error)},Gj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new x8({$metadata:k(J),...X});return N(Z,J.body.Error)},Xj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new T6({$metadata:k(J),...X});return N(Z,J.body.Error)},Hj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new N6({$metadata:k(J),...X});return N(Z,J.body.Error)},Zj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new k6({$metadata:k(J),...X});return N(Z,J.body.Error)},Vj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new E6({$metadata:k(J),...X});return N(Z,J.body.Error)},Qj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new O6({$metadata:k(J),...X});return N(Z,J.body.Error)},Yj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new v6({$metadata:k(J),...X});return N(Z,J.body.Error)},zj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new _6({$metadata:k(J),...X});return N(Z,J.body.Error)},Wj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new g6({$metadata:k(J),...X});return N(Z,J.body.Error)},$j=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new b6({$metadata:k(J),...X});return N(Z,J.body.Error)},Uj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new h6({$metadata:k(J),...X});return N(Z,J.body.Error)},Kj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new y6({$metadata:k(J),...X});return N(Z,J.body.Error)},Bj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new m6({$metadata:k(J),...X});return N(Z,J.body.Error)},Rj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new x6({$metadata:k(J),...X});return N(Z,J.body.Error)},Mj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new l6({$metadata:k(J),...X});return N(Z,J.body.Error)},qj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new c6({$metadata:k(J),...X});return N(Z,J.body.Error)},Fj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new r6({$metadata:k(J),...X});return N(Z,J.body.Error)},jj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new a6({$metadata:k(J),...X});return N(Z,J.body.Error)},fj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new i6({$metadata:k(J),...X});return N(Z,J.body.Error)},Dj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new u6({$metadata:k(J),...X});return N(Z,J.body.Error)},Aj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new c8({$metadata:k(J),...X});return N(Z,J.body.Error)},Ij=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new d6({$metadata:k(J),...X});return N(Z,J.body.Error)},Cj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new s6({$metadata:k(J),...X});return N(Z,J.body.Error)},Sj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new p6({$metadata:k(J),...X});return N(Z,J.body.Error)},Pj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new Q4({$metadata:k(J),...X});return N(Z,J.body.Error)},wj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new n6({$metadata:k(J),...X});return N(Z,J.body.Error)},Lj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new K4({$metadata:k(J),...X});return N(Z,J.body.Error)},Tj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new o6({$metadata:k(J),...X});return N(Z,J.body.Error)},Nj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new _4({$metadata:k(J),...X});return N(Z,J.body.Error)},kj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new l8({$metadata:k(J),...X});return N(Z,J.body.Error)},Ej=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new q6({$metadata:k(J),...X});return N(Z,J.body.Error)},Oj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new e6({$metadata:k(J),...X});return N(Z,J.body.Error)},vj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new a8({$metadata:k(J),...X});return N(Z,J.body.Error)},_j=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new m4({$metadata:k(J),...X});return N(Z,J.body.Error)},gj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new e4({$metadata:k(J),...X});return N(Z,J.body.Error)},bj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new r4({$metadata:k(J),...X});return N(Z,J.body.Error)},hj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new t6({$metadata:k(J),...X});return N(Z,J.body.Error)},yj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new a4({$metadata:k(J),...X});return N(Z,J.body.Error)},mj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new J8({$metadata:k(J),...X});return N(Z,J.body.Error)},xj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new o8({$metadata:k(J),...X});return N(Z,J.body.Error)},lj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new G8({$metadata:k(J),...X});return N(Z,J.body.Error)},cj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new x4({$metadata:k(J),...X});return N(Z,J.body.Error)},rj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new X8({$metadata:k(J),...X});return N(Z,J.body.Error)},aj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new n4({$metadata:k(J),...X});return N(Z,J.body.Error)},ij=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new B4({$metadata:k(J),...X});return N(Z,J.body.Error)},uj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new i4({$metadata:k(J),...X});return N(Z,J.body.Error)},dj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new M4({$metadata:k(J),...X});return N(Z,J.body.Error)},sj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new u4({$metadata:k(J),...X});return N(Z,J.body.Error)},pj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new H8({$metadata:k(J),...X});return N(Z,J.body.Error)},nj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new D4({$metadata:k(J),...X});return N(Z,J.body.Error)},oj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new d4({$metadata:k(J),...X});return N(Z,J.body.Error)},ej=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new i8({$metadata:k(J),...X});return N(Z,J.body.Error)},tj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new I4({$metadata:k(J),...X});return N(Z,J.body.Error)},Jf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new s4({$metadata:k(J),...X});return N(Z,J.body.Error)},Gf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new Z8({$metadata:k(J),...X});return N(Z,J.body.Error)},Xf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new l4({$metadata:k(J),...X});return N(Z,J.body.Error)},Hf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new S4({$metadata:k(J),...X});return N(Z,J.body.Error)},Zf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new p4({$metadata:k(J),...X});return N(Z,J.body.Error)},Vf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new b8({$metadata:k(J),...X});return N(Z,J.body.Error)},Qf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new N4({$metadata:k(J),...X});return N(Z,J.body.Error)},Yf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new o4({$metadata:k(J),...X});return N(Z,J.body.Error)},zf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new t4({$metadata:k(J),...X});return N(Z,J.body.Error)},Wf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new P4({$metadata:k(J),...X});return N(Z,J.body.Error)},$f=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new V8({$metadata:k(J),...X});return N(Z,J.body.Error)},Uf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new N8({$metadata:k(J),...X});return N(Z,J.body.Error)},Kf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new Q8({$metadata:k(J),...X});return N(Z,J.body.Error)},Bf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new _8({$metadata:k(J),...X});return N(Z,J.body.Error)},Rf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new h8({$metadata:k(J),...X});return N(Z,J.body.Error)},Mf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new Y8({$metadata:k(J),...X});return N(Z,J.body.Error)},qf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new k8({$metadata:k(J),...X});return N(Z,J.body.Error)},Ff=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new q4({$metadata:k(J),...X});return N(Z,J.body.Error)},jf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new w4({$metadata:k(J),...X});return N(Z,J.body.Error)},ff=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new F6({$metadata:k(J),...X});return N(Z,J.body.Error)},Df=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new z8({$metadata:k(J),...X});return N(Z,J.body.Error)},Af=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new W8({$metadata:k(J),...X});return N(Z,J.body.Error)},If=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new $8({$metadata:k(J),...X});return N(Z,J.body.Error)},Cf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new U8({$metadata:k(J),...X});return N(Z,J.body.Error)},Sf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new K8({$metadata:k(J),...X});return N(Z,J.body.Error)},Pf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new B8({$metadata:k(J),...X});return N(Z,J.body.Error)},wf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new R8({$metadata:k(J),...X});return N(Z,J.body.Error)},Lf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new M8({$metadata:k(J),...X});return N(Z,J.body.Error)},Tf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new q8({$metadata:k(J),...X});return N(Z,J.body.Error)},Nf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new F8({$metadata:k(J),...X});return N(Z,J.body.Error)},kf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new u8({$metadata:k(J),...X});return N(Z,J.body.Error)},Ef=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new d8({$metadata:k(J),...X});return N(Z,J.body.Error)},Of=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new e8({$metadata:k(J),...X});return N(Z,J.body.Error)},vf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new t8({$metadata:k(J),...X});return N(Z,J.body.Error)},_f=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new J4({$metadata:k(J),...X});return N(Z,J.body.Error)},gf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new s8({$metadata:k(J),...X});return N(Z,J.body.Error)},bf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new j8({$metadata:k(J),...X});return N(Z,J.body.Error)},hf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new H4({$metadata:k(J),...X});return N(Z,J.body.Error)},yf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new E8({$metadata:k(J),...X});return N(Z,J.body.Error)},mf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new f8({$metadata:k(J),...X});return N(Z,J.body.Error)},xf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new F4({$metadata:k(J),...X});return N(Z,J.body.Error)},lf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new V4({$metadata:k(J),...X});return N(Z,J.body.Error)},cf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new Y4({$metadata:k(J),...X});return N(Z,J.body.Error)},rf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new D8({$metadata:k(J),...X});return N(Z,J.body.Error)},af=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new A8({$metadata:k(J),...X});return N(Z,J.body.Error)},uf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new R4({$metadata:k(J),...X});return N(Z,J.body.Error)},df=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new I8({$metadata:k(J),...X});return N(Z,J.body.Error)},sf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new C8({$metadata:k(J),...X});return N(Z,J.body.Error)},pf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new j4({$metadata:k(J),...X});return N(Z,J.body.Error)},nf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new S8({$metadata:k(J),...X});return N(Z,J.body.Error)},of=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new A4({$metadata:k(J),...X});return N(Z,J.body.Error)},ef=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new z4({$metadata:k(J),...X});return N(Z,J.body.Error)},tf=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new P8({$metadata:k(J),...X});return N(Z,J.body.Error)},JD=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new O8({$metadata:k(J),...X});return N(Z,J.body.Error)},GD=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new f4({$metadata:k(J),...X});return N(Z,J.body.Error)},XD=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new C4({$metadata:k(J),...X});return N(Z,J.body.Error)},HD=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new L4({$metadata:k(J),...X});return N(Z,J.body.Error)},ZD=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new T4({$metadata:k(J),...X});return N(Z,J.body.Error)},VD=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new k4({$metadata:k(J),...X});return N(Z,J.body.Error)},QD=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new E4({$metadata:k(J),...X});return N(Z,J.body.Error)},YD=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new w8({$metadata:k(J),...X});return N(Z,J.body.Error)},zD=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new L8({$metadata:k(J),...X});return N(Z,J.body.Error)},WD=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new T8({$metadata:k(J),...X});return N(Z,J.body.Error)},$D=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new Z4({$metadata:k(J),...X});return N(Z,J.body.Error)};var UD=(J,G)=>{let X=new u2(JJ);if(J[a0]!=null)X.c(BD(J[a0],G).n(a0));if(J[C5]!=null)X.c(u2.of(UV,J[C5]).n(C5));return X};var KD=(J,G)=>{return J.filter((X)=>X!=null).map((X)=>{return u2.of(UV,X).n(rG)})},BD=(J,G)=>{let X=new u2(a0);if(J[S5]!=null)X.c(u2.of(fD,String(J[S5])).n(S5));return X.lc(J,"Items","Items",()=>KD(J[I5],G)),X};var RD=(J,G)=>{let X={};if(J[lG]!=null)X[lG]=L(J[lG]);if(J[cG]!=null)X[cG]=L(J[cG]);if(J[xG]!=null)X[xG]=XV(VV(J[xG]));if(J[JJ]!=null)X[JJ]=MD(J[JJ],G);return X},MD=(J,G)=>{let X={};if(J[a0]!=null)X[a0]=FD(J[a0],G);if(J[C5]!=null)X[C5]=L(J[C5]);return X};var qD=(J,G)=>{return(J||[]).filter((X)=>X!=null).map((X)=>{return L(X)})},FD=(J,G)=>{let X={};if(J[S5]!=null)X[S5]=ZV(J[S5]);if(J.Items==="")X[I5]=[];else if(J[I5]!=null&&J[I5][rG]!=null)X[I5]=qD(YV(J[I5][rG]),G);return X};var k=(J)=>({httpStatusCode:J.statusCode,requestId:J.headers["x-amzn-requestid"]??J.headers["x-amzn-request-id"]??J.headers["x-amz-request-id"],extendedRequestId:J.headers["x-amz-id-2"],cfId:J.headers["x-amz-cf-id"]});var C5="CallerReference";var xG="CreateTime";var I5="Items";var JJ="InvalidationBatch";var lG="Id";var jD="Location";var $="Message";var a0="Paths";var rG="Path";var S5="Quantity";var cG="Status";var fD="integer";var DD="location";var UV="string",AD='<?xml version="1.0" encoding="UTF-8"?>';class aG extends RV.classBuilder().ep(yH).m(function(J,G,X,H){return[KV(X,this.serialize,this.deserialize),BV(X,J.getEndpointParameterInstructions())]}).s("Cloudfront2020_05_31","CreateInvalidation",{}).n("CloudFrontClient","CreateInvalidationCommand").f(void 0,void 0).ser(WV).de($V).build(){}import{intro as w5,italic as Y9,log as O1,outro as T1,prompts as z9,runCommand as i0,underline as MV}from"@stacksjs/cli";import{addJumpBox as ID,deleteCdkRemnants as CD,deleteIamUsers as SD,deleteJumpBox as iG,deleteLogGroups as PD,deleteParameterStore as wD,deleteStacksBuckets as LD,deleteStacksFunctions as TD,deleteSubnets as ND,deleteVpcs as kD,getCloudFrontDistributionId as ED,getJumpBoxInstanceId as OD}from"@stacksjs/cloud";import{path as u0}from"@stacksjs/path";import{ExitCode as C1}from"@stacksjs/types";import{loop as vD}from"@stacksjs/utils";function sL1(J){let G={cloud:"Interact with the Stacks Cloud",ssh:"SSH into the Stacks Cloud",add:"Add a resource to the Stacks Cloud",remove:"Remove the Stacks Cloud. In case it fails, try again",optimizeCost:"Remove certain resources that may be re-applied at a later time",cleanUp:"Remove all resources that were retained during the cloud deletion",invalidateCache:"Invalidate the CloudFront cache",diff:"Show the diff of the current, undeployed cloud changes ",paths:"The paths to invalidate",project:"Target a specific project",verbose:"Enable verbose output"};J.command("cloud",G.cloud).option("--ssh",G.ssh,{default:!1}).option("--connect",G.ssh,{default:!1}).option("--invalidate-cache",G.invalidateCache,{default:!1}).option("--paths [paths]",G.paths).option("--diff",G.diff,{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud` ...",X);let H=performance.now();if(X.ssh||X.connect){let Z=await OD(),V=await i0(`aws ssm start-session --target ${Z}`,{...X,cwd:u0.projectPath(),stdin:"pipe"});if(V.isErr())await T1("While running the cloud command, there was an issue",{startTime:H,useSeconds:!0},V.error),I1.exit(C1.FatalError);await T1("Exited",{startTime:H,useSeconds:!0}),I1.exit(C1.Success)}if(X.invalidateCache){let{confirm:Z}=await z9({name:"confirm",type:"confirm",message:"Would you like to invalidate the CDN (CloudFront) cache?"});if(!Z)await T1("Exited",{startTime:H,useSeconds:!0}),I1.exit(C1.Success);O1.info("Invalidating the CloudFront cache...");let V=new yG,Y={DistributionId:await ED(),InvalidationBatch:{CallerReference:`${Date.now()}`,Paths:{Quantity:1,Items:["/*"]}}},z=new aG(Y);V.send(z).then((W)=>console.log(W),(W)=>console.log(W,W.stack)),await T1("Exited",{startTime:H,useSeconds:!0}),I1.exit(C1.Success)}if(X.diff){let Z=await i0("bunx --bun cdk diff",{cwd:u0.frameworkCloudPath(),stdin:"pipe"});if(Z.isErr())await T1("While running the cloud diff command, there was an issue",{startTime:H,useSeconds:!0},Z.error),I1.exit(C1.FatalError);await T1("Showing diff of the current, undeployed cloud changes",{startTime:H,useSeconds:!0}),console.log(Z.value),I1.exit(C1.Success)}O1.info("Not implemented yet. Read more about `buddy cloud` here: https://stacksjs.org/docs/cloud"),I1.exit(C1.Success)}),J.command("cloud:add",G.add).option("--jump-box","Remove the jump-box",{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud:add` ...",X);let H=await w5("buddy cloud:add");if(X.jumpBox){let{confirm:Z}=await z9({name:"confirm",type:"confirm",message:"Would you like to add a jump-box to your cloud?"});if(!Z)await T1("Exited",{startTime:H,useSeconds:!0}),I1.exit(C1.Success);O1.info("The jump-box is getting added to your cloud resources..."),O1.info("This takes a few moments, please be patient."),await new Promise((Q)=>setTimeout(Q,2000));let V=await ID();if(V.isErr())await T1("While running the cloud:add command, there was an issue",{startTime:H,useSeconds:!0},V.error),I1.exit(C1.FatalError);O1.info(Y9("View the jump-box in the AWS console:")),O1.info(MV("https://us-east-1.console.aws.amazon.com/ec2/home?region=us-east-1#Instances:instanceState=running")),O1.info(Y9("Once it finished initializing, you may SSH into it:")),O1.info(MV("buddy cloud --ssh")),await T1("Your jump-box was added.",{startTime:H,useSeconds:!0}),I1.exit(C1.Success)}O1.info("This functionality is not yet implemented."),I1.exit(C1.Success)}),J.command("cloud:remove",G.remove).alias("cloud:destroy").alias("cloud:rm").alias("undeploy").option("--jump-box","Remove the jump-box",{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud:remove` ...",X);let H=await w5("buddy cloud:remove");if(X.jumpBox){let{confirm:V}=await z9({name:"confirm",type:"confirm",message:"Would you like to remove your jump-box for now?"});if(!V)await T1("Exited",{startTime:H,useSeconds:!0}),I1.exit(C1.Success);let Q=await iG();if(Q.isErr())await T1("While removing your jump-box, there was an issue",{startTime:H,useSeconds:!0},Q.error),I1.exit(C1.FatalError);await T1("Your jump-box was removed.",{startTime:H,useSeconds:!0}),I1.exit(C1.Success)}console.log(` ${Y9("\u2139\uFE0F Removing your cloud resources takes a while to complete.")}`),console.log(` ${Y9("Please note, your backups will not yet be deleted. Though,")}`),console.log(` ${Y9("Backups are scheduled to delete themselves in 30 days.")}`),await new Promise((V)=>setTimeout(V,2000));let Z=await i0("bunx --bun cdk destroy",{...X,cwd:u0.frameworkCloudPath(),stdin:"inherit"});if(Z.isErr())await T1('While running the cloud:remove ("undeploy") command, there was an issue',{startTime:H,useSeconds:!0},Z.error),I1.exit(C1.FatalError);await i0("buddy cloud:cleanup",{...X,cwd:u0.projectPath(),stdin:"inherit"});try{O1.info("Finalizing the removal of your cloud resources."),O1.info("This will take a few moments..."),await vD(7,async()=>{await i0("buddy cloud:cleanup",{...X,cwd:u0.projectPath(),stdout:"ignore"})}),await T1("Your cloud has been removed",{startTime:H,useSeconds:!0}),I1.exit(C1.Success)}catch(V){await T1("While cleaning up the cloud, there was an issue",{startTime:H,useSeconds:!0},V),I1.exit(C1.FatalError)}}),J.command("cloud:optimize-cost",G.optimizeCost).option("--jump-box","Remove the jump-box",{default:!0}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud:optimize-cost` ...",X);let H=await w5("buddy cloud:optimize-cost");if(X.jumpBox){let{confirm:Z}=await z9({name:"confirm",type:"confirm",message:"Would you like to remove your jump-box to optimize your costs?"});if(!Z)await T1("Exited",{startTime:H,useSeconds:!0}),I1.exit(C1.Success);await iG(),await T1("Your jump-box was removed & cost optimizations are applied.",{startTime:H,useSeconds:!0}),I1.exit(C1.Success)}await T1("No cost optimization was applied",{startTime:H,useSeconds:!0}),I1.exit(C1.Success)}),J.command("cloud:cleanup",G.cleanUp).alias("cloud:clean-up").option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud:cleanup` ...",X);let H=await w5("buddy cloud:cleanup");O1.info("Cleaning up your cloud resources will take a while to complete. Please be patient."),await new Promise((I)=>setTimeout(I,2000)),O1.info("Removing any jump-boxes...");let Z=await iG();if(Z.isErr()){if(Z.error!=="Jump-box not found")await T1("While removing your jump-box, there was an issue",{startTime:H,useSeconds:!0},Z.error),I1.exit(C1.FatalError)}O1.info("Removing any retained S3 buckets...");let V=await LD();if(V.isErr())await T1("While deleting the retained S3 buckets, there was an issue",{startTime:H,useSeconds:!0},V.error),I1.exit(C1.FatalError);O1.info("Removing any retained Lambda functions...");let Q=await TD();if(Q.isErr()){if(Q.error!=="No stacks functions found")await T1("While deleting the Origin Request Lambda function, there was an issue",{startTime:H,useSeconds:!0},Q.error);I1.exit(C1.FatalError)}O1.info(Q.value),O1.info("Removing any remaining Stacks logs...");let Y=await PD();if(Y.isErr())await T1("While deleting the Stacks log groups, there was an issue",{startTime:H,useSeconds:!0},Y.error),I1.exit(C1.FatalError);O1.info("Removing any stored parameters...");let z=await wD();if(z.isErr())await T1("While deleting the Stacks log groups, there was an issue",{startTime:H,useSeconds:!0},z.error),I1.exit(C1.FatalError);let W=await kD();if(W.isErr())await T1("While deleting the VPCs, there was an issue",{startTime:H,useSeconds:!0},W.error),I1.exit(C1.FatalError);let K=await ND();if(K.isErr())await T1("While deleting the Subnets, there was an issue",{startTime:H,useSeconds:!0},K.error),I1.exit(C1.FatalError);O1.info("Removing any CDK remnants...");let q=await CD();if(q.isErr())await T1("While deleting the Stacks log groups, there was an issue",{startTime:H,useSeconds:!0},q.error),I1.exit(C1.FatalError);O1.info("Removing any IAM users...");let f=await SD();if(f.isErr())await T1("While deleting the Stacks log groups, there was an issue",{startTime:H,useSeconds:!0},f.error),I1.exit(C1.FatalError);await T1("AWS resources have been removed",{startTime:H,useSeconds:!0}),I1.exit(C1.Success)}),J.command("cloud:invalidate-cache",G.invalidateCache).option("--paths [paths]",G.paths,{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud:invalidate-cache` ...",X);let H=await w5("buddy cloud:invalidate-cache"),{confirm:Z}=await z9({name:"confirm",type:"confirm",message:"Would you like to invalidate the CloudFront cache?"});if(!Z)await T1("Exited",{startTime:H,useSeconds:!0}),I1.exit(C1.Success);if(O1.info("Invalidating the CloudFront cache..."),X.paths){let V=await i0(`aws cloudfront create-invalidation --distribution-id E1U4Z2E9NJW9J --paths ${X.paths}`,{...X,cwd:u0.projectPath(),stdin:"pipe"});if(V.isErr())await T1("While running the cloud command, there was an issue",{startTime:H,useSeconds:!0},V.error),I1.exit(C1.FatalError);await T1("Exited",{startTime:H,useSeconds:!0}),I1.exit(C1.Success)}O1.info("Not implemented yet. Read more about `buddy cloud` here: https://stacksjs.org/docs/cloud"),I1.exit(C1.Success)}),J.command("cloud:diff",G.diff).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud:diff` ...",X);let H=await w5("buddy cloud:diff"),Z=await i0("bunx --bun cdk diff",{cwd:u0.frameworkCloudPath(),stdin:"pipe"});if(Z.isErr())await T1("While running the cloud diff command, there was an issue",{startTime:H,useSeconds:!0},Z.error),I1.exit(C1.FatalError);await T1("Showing diff of the current, undeployed cloud changes",{startTime:H,useSeconds:!0}),console.log(Z.value),I1.exit(C1.Success)}),J.on("cloud:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),I1.exit(1)})}import _D from"process";import{runCommit as gD}from"@stacksjs/actions";import{log as bD}from"@stacksjs/logging";function tL1(J){let G={commit:"Commit your stashed changes",project:"Target a specific project",verbose:"Enable verbose output"};J.command("commit",G.commit).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{bD.debug("Running `buddy commit` ...",X),await gD(X)}),J.on("commit:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),_D.exit(1)})}import H0 from"process";import{log as uG,outro as qV,runCommand as hD}from"@stacksjs/cli";import{path as yD}from"@stacksjs/path";import{ExitCode as W9}from"@stacksjs/types";function VT1(J){let G={configure:"Configure options",aws:"Configure the AWS connection",project:"Target a specific project",profile:"The AWS profile to use",verbose:"Enable verbose output"};J.command("configure",G.configure).option("--aws",G.aws,{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{if(uG.debug("Running `buddy configure` ...",X),X?.aws)await FV(X),H0.exit(W9.Success);uG.info("Not implemented yet. Please use the --aws flag to configure AWS."),H0.exit(W9.Success)}),J.command("configure:aws",G.aws).option("-p, --project [project]",G.project,{default:!1}).option("--profile",G.profile,{default:H0.env.AWS_PROFILE}).option("--verbose",G.verbose,{default:!1}).option("--access-key-id","The AWS access key").option("--secret-access-key","The AWS secret access key").option("--region","The AWS region").option("--output","The AWS output format").option("--quiet","Suppress output").action(async(X)=>{uG.debug("Running `buddy configure:aws` ...",X),await FV(X),H0.exit(W9.Success)}),J.on("configure:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),H0.exit(W9.FatalError)})}async function FV(J){let G=performance.now(),X=J?.accessKeyId??H0.env.AWS_ACCESS_KEY_ID,H=J?.secretAccessKey??H0.env.AWS_SECRET_ACCESS_KEY,Z="us-east-1",V=J?.output??"json",Q=H0.env.AWS_PROFILE??J?.profile,Y=Q?`aws configure --profile ${Q}`:"aws configure",z=`${X}\n${H}\nus-east-1\n${V}\n`,W=await hD(Y,{cwd:yD.projectPath(),stdin:"pipe",input:z});if(W.isErr())await qV("While running the cloud command, there was an issue",{startTime:G,useSeconds:!0},W.error),H0.exit(W9.FatalError);if(J?.quiet)return;await qV("Exited",{startTime:G,useSeconds:!0})}import Z0 from"process";import{runAction as mD}from"@stacksjs/actions";import{bold as xD,cyan as lD,dim as cD,intro as rD,log as t1,runCommand as $9}from"@stacksjs/cli";import{Action as aD}from"@stacksjs/enums";import{resolve as iD}from"@stacksjs/path";import{isFolder as uD}from"@stacksjs/storage";import{ExitCode as L5}from"@stacksjs/types";import{useOnline as dD}from"@stacksjs/utils";function MT1(J){let G={name:"The name of the project",command:"Create a new Stacks project",ui:"Are you building a UI?",components:"Are you building UI components?",webComponents:"Automagically built optimized custom elements/web components?",vue:"Automagically built a Vue component library?",views:"How about views?",functions:"Are you developing functions/composables?",api:"Are you building an API?",database:"Do you need a database?",notifications:"Do you need notifications? e.g. email, SMS, push or chat notifications",cache:"Do you need caching?",email:"Do you need email?",project:"Target a specific project",verbose:"Enable verbose output"};J.command("new [name]",G.command).alias("create [name]").option("-n, --name [name]",G.name,{default:!1}).option("-u, --ui",G.ui,{default:!0}).option("-c, --components",G.components,{default:!0}).option("-w, --web-components",G.webComponents,{default:!0}).option("-v, --vue",G.vue,{default:!0}).option("-p, --views",G.views,{default:!0}).option("-f, --functions",G.functions,{default:!0}).option("-a, --api",G.api,{default:!0}).option("-d, --database",G.database,{default:!0}).option("-ca, --cache",G.cache,{default:!1}).option("-e, --email",G.email,{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X,H)=>{t1.debug("Running `buddy new <name>` ...",H);let Z=await rD("stacks new");X=X??H.name;let V=iD(Z0.cwd(),X);sD(V),pD();let Q=await nD(X,V,H);if(Q.isErr())t1.error(Q.error),Z0.exit(L5.FatalError);if(await oD(V,H),await eD(V,H),Z){let Y=performance.now()-Z;t1.success(cD(`[${Y.toFixed(2)}ms] Completed`))}t1.info(xD("Welcome to the Stacks Framework! \u269B\uFE0F")),t1.info("To learn more, visit https://stacksjs.org"),Z0.exit(L5.Success)}),J.on("new:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),Z0.exit(1)})}function sD(J){if(uD(J))t1.error(`Path ${J} already exists`),Z0.exit(L5.FatalError)}function pD(){if(!dD())t1.info("It appears you are disconnected from the internet."),t1.info("The Stacks setup requires a brief internet connection for setup."),t1.info("For instance, it installs your dependencies from."),Z0.exit(L5.FatalError)}async function nD(J,G,X){t1.info("Setting up your stack.");let H=await $9(`bunx --bun giget stacks ${J}`,X);return t1.success(`Successfully scaffolded your project at ${lD(G)}`),H}async function oD(J,G){t1.info("Ensuring your environment is ready..."),await $9("pkgx --update ",{...G,cwd:J}),t1.success("Environment is ready")}async function eD(J,G){t1.info("Installing & setting up Stacks");let X=await $9("bun install",{...G,cwd:J});if(X?.isErr())t1.error(X.error),Z0.exit();if(X=await $9("cp .env.example .env",{...G,cwd:J}),X?.isErr())t1.error(X.error),Z0.exit(L5.FatalError);if(await mD(aD.KeyGenerate,{...G,cwd:J}),X=await $9("git init",{...G,cwd:J}),X.isErr())t1.error(X.error),Z0.exit(L5.FatalError);t1.success("Installed & set-up \uD83D\uDE80")}var{$:jV}=globalThis.Bun;import V0 from"process";import{runAction as tD}from"@stacksjs/actions";import{intro as JA,italic as U9,log as w1,outro as GJ,prompts as GA,runCommand as fV}from"@stacksjs/cli";import{app as XA}from"@stacksjs/config";import{addDomain as HA,hasUserDomainBeenAddedToCloud as ZA}from"@stacksjs/dns";import{Action as VA}from"@stacksjs/enums";import{path as QA}from"@stacksjs/path";import{ExitCode as A0}from"@stacksjs/types";function wT1(J){let G={deploy:"Deploy your project",project:"Target a specific project",production:"Deploy to production",development:"Deploy to development",staging:"Deploy to staging",yes:"Confirm all prompts by default",domain:"Specify a domain to deploy to",verbose:"Enable verbose output"};J.command("deploy [env]",G.deploy).option("--domain",G.domain,{default:void 0}).option("-p, --project [project]",G.project,{default:!1}).option("--prod",G.production,{default:!0}).option("--dev",G.development,{default:!1}).option("--yes",G.yes,{default:!1}).option("--staging",G.staging,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X,H)=>{w1.debug("Running `buddy deploy` ...",H);let Z=await JA("buddy deploy"),V=H.domain||XA.url;if((H.prod||X==="production"||X==="prod")&&!H.yes)await YA();if(!V)w1.info("No domain found in your .env or ./config/app.ts"),w1.info("Please ensure your domain is properly configured."),w1.info("For more info, check out the docs or join our Discord."),V0.exit(A0.FatalError);w1.info(`Deploying to ${U9(V)}`),await WA(),await $A(),H.domain=await zA(V,H,Z);let Q=await tD(VA.Deploy,H);if(Q.isErr())await GJ("While running the `buddy deploy`, there was an issue",{startTime:Z,useSeconds:!0},Q.error),V0.exit(A0.FatalError);await GJ("Project deployed.",{startTime:Z,useSeconds:!0})}),J.on("deploy:*",()=>{w1.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),V0.exit(1)})}async function YA(){let{confirmed:J}=await GA({type:"confirm",name:"confirmed",message:"Are you sure you want to deploy to production?"});if(!J)w1.info("Aborting deployment..."),V0.exit(A0.InvalidArgument)}async function zA(J,G,X){if(w1.debug("Configuring domain...",J),!J)w1.info("We could not identify a domain to deploy to."),w1.warn("Please set your .env or ./config/app.ts properly."),w1.info("Alternatively, specify a domain to deploy via the `--domain` flag."),console.log(""),w1.info(" \u27A1\uFE0F Example: `buddy deploy --domain example.com`"),console.log(""),V0.exit(A0.FatalError);if(J.includes("localhost"))w1.info("You are deploying to a local environment."),w1.warn("Please set your .env or ./config/app.ts properly. The domain we are deploying cannot be a `localhost` domain."),w1.info("Alternatively, specify a domain to deploy via the `--domain` flag."),console.log(""),w1.info(" \u27A1\uFE0F Example: `buddy deploy --domain example.com`"),console.log(""),V0.exit(A0.FatalError);if(await ZA(J))return w1.info("Domain is properly configured"),w1.info("Your cloud is deploying..."),w1.info(`${U9("This may take a while...")}`),J;console.log(""),w1.info(` \uD83D\uDC4B It appears to be your first ${U9(J)} deployment.`),console.log(""),w1.info(U9("Let\u2019s ensure it is all connected properly.")),w1.info(U9("One moment...")),console.log("");let H=await HA({...G,deploy:!0,startTime:X});if(H.isErr())await GJ("While running the `buddy deploy`, there was an issue",{startTime:X,useSeconds:!0},H.error),V0.exit(A0.FatalError);await GJ("Added your domain.",{startTime:X,useSeconds:!0}),V0.exit(A0.Success)}async function WA(){if(w1.info("Ensuring AWS is configured..."),(await fV("buddy configure:aws",{silent:!0})).isErr())w1.error("AWS is not configured properly.",{shouldExit:!1}),w1.error("Please run `buddy configure:aws` to set up your AWS credentials.");w1.success("AWS is configured")}async function $A(){try{return w1.info("Ensuring AWS is bootstrapped..."),await fV("aws cloudformation describe-stacks --stack-name stacks-toolkit",{silent:!0}),w1.success("AWS is bootstrapped"),!0}catch(J){w1.debug(`Not yet bootstrapped. Failed with code ${J.exitCode}`),w1.debug(J.stdout.toString()),w1.debug(J.stderr.toString()),w1.info("AWS is not bootstrapped yet"),w1.info("Bootstrapping. This may take a few moments...");try{jV.cwd(QA.frameworkCloudPath());let G=await jV`bun run bootstrap`;return console.log(G),!0}catch(G){w1.error("Failed to bootstrap AWS"),console.error(G),V0.exit(A0.FatalError)}}}import d2 from"process";import{runAction as nG,runApiDevServer as XJ,runComponentsDevServer as dG,runDashboardDevServer as sG,runDesktopDevServer as UA,runDocsDevServer as pG,runFrontendDevServer as DV,runSystemTrayDevServer as AV}from"@stacksjs/actions";import{intro as HJ,log as y2,outro as d0,prompts as KA,runCommand as BA}from"@stacksjs/cli";import{Action as oG}from"@stacksjs/enums";import{libsPath as RA}from"@stacksjs/path";import{ExitCode as T5}from"@stacksjs/types";function _T1(J){let G={dev:"Start development server",frontend:"Start the frontend development server",components:"Start the Components development server",desktop:"Start the Desktop App development server",dashboard:"Start the Dashboard development server",api:"Start the local API development server",email:"Start the Email development server",docs:"Start the Documentation development server",systemTray:"Start the System Tray development server",interactive:"Get asked which development server to start",select:"Which development server are you trying to start?",withLocalhost:"Include the localhost URL in the output",project:"Target a specific project",verbose:"Enable verbose output"};J.command("dev [server]",G.dev).option("-f, --frontend",G.frontend).option("-a, --api",G.api).option("-e, --email",G.email).option("-c, --components",G.components).option("-d, --dashboard",G.dashboard).option("-t, --desktop",G.desktop).option("-d, --docs",G.docs).option("-t, --system-tray",G.systemTray).option("-i, --interactive",G.interactive,{default:!1}).option("-l, --with-localhost",G.withLocalhost,{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X,H)=>{y2.debug("Running `buddy dev [server]` ...",H);let Z=await HJ("buddy dev");switch(X){case"frontend":await DV(H);break;case"api":await XJ(H);break;case"components":await dG(H);break;case"dashboard":await sG(H);break;case"desktop":await UA(H);break;case"system-tray":await AV(H);break;case"docs":await pG(H);break;default:}if(qA(H)){let Q=(await KA({type:"select",name:"value",message:G.select,choices:[{value:"all",title:"All"},{value:"frontend",title:"Frontend"},{value:"api",title:"Backend"},{value:"dashboard",title:"Dashboard"},{value:"desktop",title:"Desktop"},{value:"email",title:"Email"},{value:"components",title:"Components"},{value:"docs",title:"Documentation"}]})).value;if(Q==="components")await dG(H);else if(Q==="api")await XJ(H);else if(Q==="dashboard")await sG(H);else if(Q==="docs")await pG(H);else y2.error("Invalid option during interactive mode"),d2.exit(T5.InvalidArgument)}else{if(H.components)await dG(H);if(H.docs)await pG(H);else if(H.api)await XJ(H)}await MA(H),d0("Exited",{startTime:Z,useSeconds:!0}),d2.exit(T5.Success)}),J.command("dev:components",G.components).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:components` ...",X);let H=await HJ("buddy dev:components"),Z=await BA("bun run dev",{cwd:RA("components/vue")});if(X.verbose)y2.info("buddy dev:components result",Z);if(Z.isErr())await d0("While running the dev:components command, there was an issue",{startTime:H,useSeconds:!0},Z.error),d2.exit();console.log(""),await d0("Exited",{startTime:H,useSeconds:!0}),d2.exit(T5.Success)}),J.command("dev:docs",G.docs).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:docs` ...",X);let H=await HJ("buddy dev:docs"),Z=await nG(oG.DevDocs,X);if(Z.isErr())await d0("While running the dev:docs command, there was an issue",{startTime:H,useSeconds:!0},Z.error),d2.exit();console.log(""),await d0("Exited",{startTime:H,useSeconds:!0}),d2.exit(T5.Success)}),J.command("dev:desktop",G.desktop).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:desktop` ...",X);let H=await HJ("buddy dev:desktop"),Z=await nG(oG.DevDesktop,X);if(Z.isErr())await d0("While running the dev:desktop command, there was an issue",{startTime:H,useSeconds:!0},Z.error),d2.exit();console.log(""),await d0("Exited",{startTime:H,useSeconds:!0}),d2.exit(T5.Success)}),J.command("dev:api",G.api).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:api` ...",X),await XJ(X)}),J.command("dev:frontend",G.frontend).alias("dev:pages").alias("dev:views").option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:frontend` ...",X),await DV(X)}),J.command("dev:dashboard",G.dashboard).alias("dev:admin").option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:dashboard` ...",X),await sG(X)}),J.command("dev:system-tray",G.systemTray).alias("dev:tray").option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:system-tray` ...",X),await AV(X)}),J.on("dev:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),d2.exit(1)})}async function MA(J){let G=await nG(oG.Dev,J);if(G.isErr())y2.error("While running the dev command, there was an issue",G.error),d2.exit(T5.InvalidArgument)}function qA(J){return J.interactive}import IV from"process";import{log as FA,runCommand as jA}from"@stacksjs/cli";import{config as fA}from"@stacksjs/config";import{ExitCode as DA}from"@stacksjs/types";function xT1(J){let G={dns:"Lists the DNS records for a domain",query:"Host name or IP address to query",type:"Type of the DNS record being queried (A, MX, NS\u2026)",nameserver:"Address of the nameserver to send packets to",class:"Network class of the DNS record being queried (IN, CH, HS)",udp:"Use the DNS protocol over UDP",tcp:"Use the DNS protocol over TCP",tls:"Use the DNS-over-TLS protocol",https:"Use the DNS-over-HTTPS protocol",short:"Short mode: display nothing but the first result",json:"Display the output as JSON",pretty:"Display the output as JSON in a pretty format",project:"Target a specific project",verbose:"Enable verbose output"};J.command("dns [domain]",G.dns).option("-q, --query <query>",G.query).option("-t, --type <type>",G.type,{default:"ANY"}).option("-n, --nameserver <nameserver>",G.nameserver).option("--class <class>",G.nameserver).option("-U, --udp",G.udp).option("-T, --tcp",G.tcp).option("-S, --tls",G.tls).option("-H, --https",G.https).option("-1, --short",G.short,{default:!1}).option("-J, --json",G.json,{default:!1}).option("-p, --pretty",G.pretty,{default:!0}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X,H)=>{FA.debug("Running `buddy dns [domain]` ...",H),H.pretty=void 0,H.p=void 0;let Z=Object.entries(H).filter(([V,Q])=>V!=="--"&&V.length>1&&Q!==!1).map(([V,Q])=>`--${V} ${Q}`).join(" ");await jA(`dog ${X||fA.app.url} ${Z}`),IV.exit(DA.Success)}),J.on("dns:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),IV.exit(1)})}import Q0 from"process";import{runAction as CV}from"@stacksjs/actions";import{bgCyan as AA,bold as IA,intro as eG,italic as s0,log as ZJ,outro as I0,prompts as SV}from"@stacksjs/cli";import{config as PV}from"@stacksjs/config";import{addDomain as CA}from"@stacksjs/dns";import{Action as wV}from"@stacksjs/enums";import{ExitCode as C0}from"@stacksjs/types";function pT1(J){let G={purchase:"Purchase a domain",add:"Add a domain to your cloud",remove:"Remove a domain from your cloud",skip:"Skip the confirmation prompt",project:"Target a specific project",verbose:"Enable verbose output"},X=PV.dns.contactInfo;J.command("domains:purchase <domain>",G.purchase).option("--years <years>","Number of years to purchase the domain for",{default:1}).option("--privacy","Enable privacy protection",{default:!0}).option("--auto-renew","Enable auto-renew",{default:!0}).option("--first-name <firstName>","Registrant first name",{default:X?.firstName}).option("--last-name <lastName>","Registrant last name",{default:X?.lastName}).option("--organization <organization>","Registrant organization name",{default:X?.organizationName}).option("--address-line1 <address>","Registrant address line 1",{default:X?.addressLine1}).option("--address-line2 <address>","Registrant address line 2",{default:X?.addressLine2}).option("--city <city>","Registrant city",{default:X?.city}).option("--state <state>","Registrant state",{default:X?.state}).option("--country <country>","Registrant country code",{default:X?.countryCode}).option("--zip <zip>","Registrant zip",{default:X?.zip}).option("--phone <phone>","Registrant phone",{default:X?.phoneNumber}).option("--email <email>","Registrant email",{default:X?.email}).option("--admin-first-name <firstName>","Admin first name",{default:X?.admin?.firstName||X?.firstName}).option("--admin-last-name <lastName>","Admin last name",{default:X?.admin?.lastName||X?.lastName}).option("--admin-organization <organization>","Admin organization",{default:X?.admin?.organizationName||X?.organizationName}).option("--admin-address-line1 <address>","Admin address line 1",{default:X?.admin?.addressLine1||X?.addressLine1}).option("--admin-address-line2 <address>","Admin address line 2",{default:X?.admin?.addressLine2||X?.addressLine2}).option("--admin-city <city>","Admin city",{default:X?.admin?.city||X?.city}).option("--admin-state <state>","Admin state",{default:X?.admin?.state||X?.state}).option("--admin-country <country>","Admin country code",{default:X?.admin?.countryCode||X?.countryCode}).option("--admin-zip <zip>","Admin zip",{default:X?.admin?.zip||X?.zip}).option("--admin-phone <phone>","Admin phone number",{default:X?.admin?.phoneNumber||X?.phoneNumber}).option("--admin-email <email>","Admin email",{default:X?.admin?.email||X?.email}).option("--tech-first-name <firstName>","Tech first name",{default:X?.tech?.firstName||X?.firstName}).option("--tech-last-name <lastName>","Tech last name",{default:X?.tech?.lastName||X?.lastName}).option("--tech-organization <organization>","Tech organization name",{default:X?.tech?.organizationName||X?.organizationName}).option("--tech-address-line1 <address>","Tech address line 1",{default:X?.tech?.addressLine1||X?.addressLine1}).option("--tech-address-line2 <address>","Tech address line 2",{default:X?.tech?.addressLine2||X?.addressLine2}).option("--tech-city <city>","Tech city",{default:X?.tech?.city||X?.city}).option("--tech-state <state>","Tech state",{default:X?.tech?.state||X?.state}).option("--tech-country <country>","Tech country",{default:X?.tech?.countryCode||X?.countryCode}).option("--tech-zip <zip>","Tech zip",{default:X?.tech?.zip||X?.zip}).option("--tech-phone <phone>","Tech phone",{default:X?.tech?.phoneNumber||X?.phoneNumber}).option("--tech-email <email>","Tech email",{default:X?.tech?.email||X?.email}).option("--privacy-admin","Enable privacy protection for admin",{default:X?.privacyAdmin||X?.privacy||!0}).option("--privacy-tech","Enable privacy protection for tech",{default:X?.privacyTech||X?.privacy||!0}).option("--privacy-registrant","Enable privacy protection for registrant",{default:X?.privacyRegistrant||X?.privacy||!0}).option("--contact-type <type>","Contact type",{default:"person"}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(H,Z)=>{ZJ.debug("Running `buddy domains:purchase <domain>` ...",Z),Z.domain=H;let V=await eG("buddy domains:purchase"),Q=await CV(wV.DomainsPurchase,Z);if(Q.isErr())await I0("While running the domains:purchase command, there was an issue",{startTime:V,useSeconds:!0},Q.error),Q0.exit(C0.FatalError);let{confirm:Y}=await SV({name:"confirm",type:"confirm",message:`Would you like to set ${H} as your APP_URL?`});if(!Y)await I0(`Alrighty! ${s0(H)} was added to your account.`,{startTime:V,useSeconds:!0,type:"success"}),ZJ.info(`Please note, you may need to validate your email address. Check your ${s0(Z.registrantEmail)} inbox.`),Q0.exit(C0.Success);let{writeEnv:z}=await import("./chunk-wps8bq6b.js");z("APP_URL",H);let W=`Great! ${s0(H)} was added to your account.`;W+=`\n\nAnd your APP_URL has been set to ${s0(H)}.
|
|
22
|
+
\nPlease note, this change has not been deployed yet.
|
|
23
|
+
\nThe next time you run ${AA(s0(IA(" buddy deploy ")))}, your app will deploy to ${s0(H)}.
|
|
24
|
+
\n${s0("You may need to deploy 2-3 times for the changes to take effect. Issue tracked here: https://github.com/stacksjs/stacks/issues/685")}`,await I0(W,{startTime:V,useSeconds:!0,type:"info"}),Q0.exit(C0.Success)}),J.command("domains:add <domain>",G.add).option("--verbose",G.verbose,{default:!1}).action(async(H)=>{ZJ.debug("Running `buddy domains:add <domain>` ...",H);let Z=await eG("buddy domains:add"),V=await CA({...H,startTime:Z});if(V.isErr())await I0("While running the `buddy deploy`, there was an issue",{startTime:Z,useSeconds:!0},V.error),Q0.exit(C0.FatalError);await I0("Added your domain.",{startTime:Z,useSeconds:!0}),Q0.exit(C0.Success)}),J.command("domains:remove <domain>",G.remove).option("--yes",G.skip,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(H)=>{ZJ.debug("Running `buddy domains:remove <domain>` ...",H);let Z=H.domain||PV.app.url,V={...H,domain:Z},Q=await eG("buddy domains:remove");if(!V.yes){let{confirm:z}=await SV({name:"confirm",type:"confirm",message:`Are you sure you want to remove ${Z}?`});if(!z)await I0("Cancelled the domains:remove command",{startTime:Q,useSeconds:!0,type:"info"}),Q0.exit(C0.Success)}let Y=await CV(wV.DomainsRemove,V);if(Y.isErr())await I0("While running the domains:remove command, there was an issue",{startTime:Q,useSeconds:!0},Y.error),Q0.exit(C0.FatalError);await I0("Removed your domain DNS records.",{startTime:Q,useSeconds:!0}),Q0.exit(C0.Success)}),J.on("domains:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),Q0.exit(1)})}import tG from"process";import{runAction as SA}from"@stacksjs/actions";import{intro as PA,log as wA,outro as LV}from"@stacksjs/cli";import{Action as LA}from"@stacksjs/enums";import{ExitCode as TV}from"@stacksjs/types";function XN1(J){let G={fresh:"Re-installs your npm dependencies",project:"Target a specific project",verbose:"Enable verbose output"};J.command("fresh",G.fresh).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{wA.debug("Running `buddy fresh` ...",X);let H=await PA("buddy fresh"),Z=await SA(LA.Fresh,{...X,stdout:"inherit"});if(Z.isErr())await LV("While running `buddy fresh`, there was an issue",{startTime:H,useSeconds:!0},Z.error),tG.exit(TV.FatalError);await LV("Freshly reinstalled your dependencies",{startTime:H,useSeconds:!0}),tG.exit(TV.Success)}),J.on("fresh:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),tG.exit(1)})}import YH from"process";import{generateComponentMeta as BS1,generateCoreSymlink as RS1,generateIdeHelpers as MS1,generateLibEntries as qS1,generateOpenApiSpec as FS1,generatePkgxConfig as jS1,generateTypes as fS1,generateVsCodeCustomData as DS1,generateWebTypes as AS1,invoke as IS1}from"@stacksjs/actions";import{intro as Sq,log as g2,outro as Pq}from"@stacksjs/cli";import{bold as jb1,dim as fb1,green as Db1,italic as Ab1,log as Ib1}from"@stacksjs/cli";import{path as Sb1}from"@stacksjs/path";import{fs as wb1,glob as Lb1}from"@stacksjs/storage";var Vq=i2(w7(),1),Qq=i2(aJ(),1),Yq=i2(r9(),1);import{italic as G9,log as x1}from"@stacksjs/cli";import{handleError as VH}from"@stacksjs/error-handling";import{path as h1}from"@stacksjs/path";import{fs as o1,globSync as R5}from"@stacksjs/storage";var hC1=new Set([".","!","?"]),Ob1=new Set([...hC1,":",'"',"\'","\u201D"]);var yC1=/([\p{Ll}\d])(\p{Lu})/gu,mC1=/(\p{Lu})(\p{Lu}\p{Ll})/gu;var xC1=/[^\p{L}\d]+/giu,zq="$1\0$2",Wq="";function lC1(J){let G=J.trim();G=G.replace(yC1,zq).replace(mC1,zq),G=G.replace(xC1,"\0");let X=0,H=G.length;while(G.charAt(X)==="\0")X++;if(X===H)return[];while(G.charAt(H-1)==="\0")H--;return G.slice(X,H).split(/\0/g)}function $q(J,G){let[X,H,Z]=Kq(J,G);return X+H.map(Uq(G?.locale)).join(G?.delimiter??" ")+Z}function t5(J,G){let[X,H,Z]=Kq(J,G),V=Uq(G?.locale),Q=cC1(G?.locale),Y=G?.mergeAmbiguousCharacters?rC1(V,Q):aC1(V,Q);return X+H.map(Y).join(G?.delimiter??"")+Z}function S2(J,G){return $q(J,{delimiter:"_",...G})}function Uq(J){return J===!1?(G)=>G.toLowerCase():(G)=>G.toLocaleLowerCase(J)}function cC1(J){return J===!1?(G)=>G.toUpperCase():(G)=>G.toLocaleUpperCase(J)}function rC1(J,G){return(X)=>`${G(X[0])}${J(X.slice(1))}`}function aC1(J,G){return(X,H)=>{let Z=X[0];return(H>0&&Z>="0"&&Z<="9"?`_${Z}`:G(Z))+J(X.slice(1))}}function Kq(J,G={}){let X=G.split??lC1,H=G.prefixCharacters??Wq,Z=G.suffixCharacters??Wq,V=0,Q=J.length;while(V<J.length){let Y=J.charAt(V);if(!H.includes(Y))break;V++}while(Q>V){let Y=Q-1,z=J.charAt(Y);if(!Z.includes(z))break;Q=Y}return[J.slice(0,V),X(J.slice(V,Q)),J.slice(Q)]}var HH=[],ZH=[],Rq={},J6={},G6={};function Mq(J){return typeof J==="string"?new RegExp(`^${J}\$`,"i"):J}function fG(J,G){if(J===G)return G;if(J===J.toLowerCase())return G.toLowerCase();if(J===J.toUpperCase())return G.toUpperCase();if(J[0]===J[0].toUpperCase())return G.charAt(0).toUpperCase()+G.slice(1).toLowerCase();return G.toLowerCase()}function iC1(J,...G){return J.replace(/\$(\d{1,2})/g,(X,H)=>G[Number(H)]||"")}function uC1(J,G){return J.replace(G[0],(...X)=>{let H=iC1(G[1],...X);if(X[0]==="")return fG(J[X[X.length-2]-1],H);return fG(X[0],H)})}function qq(J,G,X){if(!J.length||Rq[J])return G;for(let H=X.length-1;H>=0;H--){let Z=X[H];if(Z[0].test(G))return uC1(G,Z)}return G}function Fq(J,G,X){return(H)=>{let Z=H.toLowerCase();if(G[Z])return fG(H,Z);if(J[Z])return fG(H,J[Z]);return qq(Z,H,X)}}function jq(J,G,X){return(H)=>{let Z=H.toLowerCase();if(G[Z])return!0;if(J[Z])return!1;return qq(Z,Z,X)===Z}}var G2=(J,G={})=>{let{count:X=2,inclusive:H=!1}=G;if(typeof J!=="string")throw new TypeError("Word must be a string");let Z=X===1?G2.singular(J):G2.plural(J);return H?`${X} ${Z}`:Z},DG=(J)=>{return G2.singular(J)},J9=(J,G=2)=>{return G2(J,{count:G})};G2.plural=Fq(G6,J6,HH);G2.isPlural=jq(G6,J6,HH);G2.singular=Fq(J6,G6,ZH);G2.isSingular=jq(J6,G6,ZH);G2.addPluralRule=(J,G)=>{HH.push([Mq(J),G])};G2.addSingularRule=(J,G)=>{ZH.push([Mq(J),G])};G2.addUncountableRule=(J)=>{if(typeof J==="string"){Rq[J.toLowerCase()]=!0;return}G2.addPluralRule(J,"$0"),G2.addSingularRule(J,"$0")};G2.addIrregularRule=(J,G)=>{let X=G.toLowerCase(),H=J.toLowerCase();G6[H]=X,J6[X]=H};[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["my","our"],["its","their"],["his","their"],["her","their"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"],["canvas","canvases"]].forEach(([J,G])=>G2.addIrregularRule(J,G));[[/s?$/i,"s"],[/[^\x20-\x7F]$/,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(([J,G])=>G2.addPluralRule(J,G));[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|\W|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/(dg|ss|ois|lk|ok|wn|mb|th|ch|ec|oal|is|ck|ix|sser|ts|wb)ies$/i,"$1ie"],[/\b(l|(?:neck|cross|hog|aun)?t|coll|faer|food|gen|goon|group|hipp|junk|vegg|(?:pork)?p|charl|calor|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(([J,G])=>G2.addSingularRule(J,G));["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[e\u00E9]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(G2.addUncountableRule);var yb1=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`),mb1=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');import{isString as pC1}from"@stacksjs/validation";function G0(J,G){if(J.name)return J.name;return h1.basename(G).replace(/\.ts$/,"")}function X6(J,G){if(J.table)return J.table;return S2(J9(G0(J,G)))}function nC1(J,G){let X=[J,G];return X.sort(),X[0]=DG(X[0]||""),X.join("_")}function oC1(J,G){return G in J}async function Dq(J,G){let X=["hasOne","belongsTo","hasMany","belongsToMany","hasOneThrough"],H=[];for(let Z of X)if(oC1(J,Z))for(let V of J[Z]||[]){let Q=V.model;if(pC1(V))Q=V;let Y=h1.userModelsPath(`${Q}.ts`),z=(await import(Y)).default,W=X6(z,Y),K=G.toLowerCase();H.push({relationship:Z,model:Q,table:W,foreignKey:V.foreignKey||`${K}_id`,relationName:V.relationName||"",throughModel:V.through||"",throughForeignKey:V.throughForeignKey||"",pivotTable:V?.pivotTable||nC1(J9(K),J9(z.table||""))})}return H}function eC1(J){let G=/belongs/,X=/has/;if(/Through/.test(J))return"throughType";if(G.test(J))return"belongsType";if(X.test(J))return"hasType";return""}function tC1(J){let G=/One/;if(/Many/.test(J))return"many";if(G.test(J))return"one";return""}async function fq(J,G){let X=[];if("belongsToMany"in J){let H=J.belongsToMany||[];for(let Z of H){let Q=(await import(h1.userModelsPath(`${Z}.ts`))).default,Y=G0(J,G),z=Y.toLowerCase(),W=typeof Z==="object"&&"firstForeignKey"in Z?Z.firstForeignKey:`${Y.toLowerCase()}_${J.primaryKey}`,K=typeof Z==="object"&&"secondForeignKey"in Z?Z.secondForeignKey:`${Q.name?.toLowerCase()}_${J.primaryKey}`;X.push({table:(typeof Z==="object"&&"pivotTable"in Z?Z.pivotTable:void 0)??`${z}_${Q.table}`,firstForeignKey:W,secondForeignKey:K})}return X}return[]}async function Aq(J,G){let X=R5([h1.userModelsPath("*.ts")],{absolute:!0}),H=[];for(let Z=0;Z<X.length;Z++){let V=X[Z],Q=await import(V);if(G===Q.default.name)continue;let Y=G0(Q,V),z=await Dq(Q.default,Y);if(!z.length)continue;let W=z.find((K)=>K.model===G);if(W)H.push(W)}return H}function JS1(J){if(J===void 0)return[];return Object.keys(J).filter((G)=>{if(J===void 0)return!1;return J[G]?.hidden===!0})}function GS1(J){if(J===void 0)return[];return Object.keys(J).filter((G)=>{if(J===void 0)return!1;return J[G]?.fillable===!0}).map((G)=>S2(G))}async function XS1(){let J=R5([h1.userModelsPath("*.ts")],{absolute:!0}),G="export type ModelNames = ";for(let X=0;X<J.length;X++){let H=J[X],Z=(await import(H)).default,V=G0(Z,H);if(G+=`'${V}'`,X<J.length-1)G+=" | ";let Q=h1.dirname(h1.typesPath("src/model-names.ts"));await o1.promises.mkdir(Q,{recursive:!0});let Y=h1.typesPath("src/model-names.ts");await o1.promises.writeFile(Y,G,"utf8")}}async function HS1(){let J=R5([h1.userModelsPath("*.ts")],{absolute:!0}),G=Bun.file(h1.frameworkPath("types/requests.d.ts")),X="",H="",Z="import { Request } from '../core/router/src/request'\nimport type { VineType } from '@stacksjs/types'\n\n";Z+=`interface ValidationField {
|
|
25
|
+
rule: VineType
|
|
26
|
+
message: Record<string, string>
|
|
27
|
+
}\n\n`,Z+=`interface CustomAttributes {
|
|
28
|
+
[key: string]: ValidationField
|
|
29
|
+
}\n\n`;for(let Q=0;Q<J.length;Q++){let Y="",z="",W="",K="import { Request } from '@stacksjs/router'\nimport { validateField } from '@stacksjs/validation'\nimport { customValidate } from '@stacksjs/validation'\n\n",q=J[Q],f=(await import(q)).default,I=G0(f,q),C=f?.traits?.useTimestamps??f?.traits?.timestampable??!0,x=f?.traits?.useSoftDeletes??f?.traits?.softDeletable??!1,O=await Iq(f,q);z+=" id: number\n",W+="public id = 1\n",Y+=" get(key: 'id'): number\n";let v={};for(let W1 of O){let D1=W1.fieldArray?.entity==="enum"?"string[]":W1.fieldArray?.entity,E1="''";if(W1.fieldArray?.entity==="boolean")E1=!1;if(W1.fieldArray?.entity==="number")E1=0;let a=S2(W1.field);if(typeof D1==="string"){if(v[D1])v[D1].push(`'${a}'`);else v[D1]=[`'${a}'`];z+=` ${S2(W1.field)}: ${D1}\n `,W+=`public ${a} = ${E1}\n`}}for(let[W1,D1]of Object.entries(v)){let E1=D1.join(" | ");Y+=` get(key: ${E1}): ${W1}\n`}let b=await Aq(f,I);for(let W1 of b)z+=` ${W1.foreignKey}: number\n `,Y+=` get(key: '${W1.foreignKey}'): string \n`,W+=`public ${W1.foreignKey} = 0\n`;if(C)W+=`public created_at = new Date
|
|
30
|
+
public updated_at = new Date
|
|
31
|
+
`;if(x)W+=`
|
|
32
|
+
public deleted_at = ''
|
|
33
|
+
`;z+=`created_at?: Date
|
|
34
|
+
updated_at?: Date
|
|
35
|
+
deleted_at?: Date`;let B1=Bun.file(h1.frameworkPath(`requests/${I}Request.ts`));if(X=`${I}RequestType`,H+=`${X}`,Q<J.length-1)H+=" | ";K+=`import type { ${X} } from '../types/requests'\n\n`,K+=`interface ValidationField {
|
|
36
|
+
rule: ReturnType<typeof schema.string>
|
|
37
|
+
message: Record<string, string>
|
|
38
|
+
}\n\n`,K+=`interface CustomAttributes {
|
|
39
|
+
[key: string]: ValidationField
|
|
40
|
+
}\n`;let J1=`export interface ${I}RequestType extends Request {
|
|
41
|
+
validate(attributes?: CustomAttributes): void
|
|
42
|
+
${Y}
|
|
43
|
+
all(): RequestData${I}
|
|
44
|
+
${z}
|
|
45
|
+
}\n\n`;Z+=`interface RequestData${I} {
|
|
46
|
+
${z}
|
|
47
|
+
}\n`,K+=`interface RequestData${I} {
|
|
48
|
+
${z}
|
|
49
|
+
}\n`,Z+=J1,K+=`export class ${I}Request extends Request<RequestData${I}> implements ${I}RequestType {
|
|
50
|
+
${W}
|
|
51
|
+
public async validate(attributes?: CustomAttributes): Promise<void> {
|
|
52
|
+
if (attributes === undefined || attributes === null) {
|
|
53
|
+
await validateField('${I}', this.all())
|
|
54
|
+
} else {
|
|
55
|
+
await customValidate(attributes, this.all())
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export const request = new ${I}Request()
|
|
62
|
+
`,B1.writer().write(K)}Z+=`export type ModelRequest = ${H}`,G.writer().write(Z)}async function QH(J,G,X){let H=J.charAt(0).toUpperCase()+J.slice(1),Z="GET",V="import { Action } from '@stacksjs/actions'\n";V+=`import ${G} from '../../orm/src/models/${G}'\n`;let Q="";if(J==="index")Q+=`async handle() {
|
|
63
|
+
return await ${G}.all()
|
|
64
|
+
},`,Z="GET";if(J==="show")V+=` import type { ${G}RequestType } from '../../types/requests'\n\n`,Q+=`async handle(request: ${G}RequestType) {
|
|
65
|
+
const id = await request.getParam('id')
|
|
66
|
+
|
|
67
|
+
return await ${G}.findOrFail(Number(id))
|
|
68
|
+
},`,Z="GET";if(J==="destroy")V+=` import type { ${G}RequestType } from '../../types/requests'\n\n`,Q+=`async handle(request: ${G}RequestType) {
|
|
69
|
+
const id = request.getParam('id')
|
|
70
|
+
|
|
71
|
+
const model = await ${G}.findOrFail(Number(id))
|
|
72
|
+
|
|
73
|
+
model.delete()
|
|
74
|
+
|
|
75
|
+
return 'Model deleted!'
|
|
76
|
+
},`,Z="DELETE";if(J==="store")V+=` import type { ${G}RequestType } from '../../types/requests'\n\n`,Q+=`async handle(request: ${G}RequestType) {
|
|
77
|
+
await request.validate()
|
|
78
|
+
const model = await ${G}.create(request.all())
|
|
79
|
+
|
|
80
|
+
return model
|
|
81
|
+
},`,Z="POST";if(J==="update")V+=` import type { ${G}RequestType } from '../../types/requests'\n\n`,Q+=`async handle(request: ${G}RequestType) {
|
|
82
|
+
await request.validate()
|
|
83
|
+
|
|
84
|
+
const id = request.getParam('id')
|
|
85
|
+
const model = await ${G}.findOrFail(Number(id))
|
|
86
|
+
|
|
87
|
+
return model.update(request.all())
|
|
88
|
+
},`,Z="PATCH";V+=`export default new Action({
|
|
89
|
+
name: '${G} ${H}',
|
|
90
|
+
description: '${G} ${H} ORM Action',
|
|
91
|
+
method: '${Z}',
|
|
92
|
+
${Q}
|
|
93
|
+
})
|
|
94
|
+
`;let Y=X||`${G}${H}OrmAction.ts`,z=h1.builtUserActionsPath(`src/${Y}`);if(o1.existsSync(z))return;Bun.file(z).writer().write(V)}async function Iq(J,G){let X=J.attributes;if(!X)X={};let H=Object.keys(X),Z=[],Q=await Bun.file(G).text(),Y=/rule:.*$/gm,z;z=Y.exec(Q);while(z!==null)Z.push(z[0]),z=Y.exec(Q);return H.map((K,q)=>{let f=X[K],I=null,C=!1;if(f)I=f||null,C=f.unique||!1;return{field:K,default:I,unique:C,fieldArray:ZS1(Z[q]??"")}})}function ZS1(J){let G=J.split("rule: schema.");if(G.length!==2)return null;if(!G[1])G[1]="";let X=G[1].replace(/,/g,"");if(!X)return null;let H=X.split("."),Z=/\(([^)]+)\)/;return H.map((V)=>{let Q=Z.exec(V),Y=Q?Q[1]:null;return{entity:V.replace(Z,"").replace(/\(|\)/g,""),charValue:Y}})[0]||null}async function VS1(J){let X=Bun.file(h1.frameworkPath("orm/routes.ts")).writer(),H="import { route } from '@stacksjs/router'\n\n\n";for(let Z of J){x1.info(`Generating API Routes for: ${G9(Z)}`);let V="",Q=(await import(Z)).default,Y=G0(Q,Z),z=X6(Q,Z);if(Q.traits?.useApi){if(Q.traits?.useApi&&typeof Q.traits.useApi==="object"){let W=Q.traits.useApi?.middleware,K=Q.traits.useApi?.uri||z;if(W){if(V=".middleware([",W.length){for(let q=0;q<W.length;q++)if(V+=`'${W[q]}'`,q<W.length-1)V+=","}V+="])"}if(Q.traits.useApi.routes&&Object.keys(Q.traits.useApi.routes).length>0){let q=Q.traits.useApi.routes;if(Array.isArray(q)){if(q.length){for(let f of q)if(typeof f==="string"){await QH(f,Y);let I=f.charAt(0).toUpperCase()+f.slice(1);if(f==="index")H+=`route.get('${K}', '${Y}${I}OrmAction').middleware(['Api'])\n\n`;if(f==="show")H+=`route.get('${K}/{id}', '${Y}${I}OrmAction').middleware(['Api'])\n\n`;if(f==="store")H+=`route.post('${K}', '${Y}${I}OrmAction').middleware(['Api'])\n\n`;if(f==="update")H+=`route.patch('${K}/{id}', '${Y}${I}OrmAction').middleware(['Api'])\n\n`;if(f==="destroy")H+=`route.delete('${K}/{id}', '${Y}${I}OrmAction').middleware(['Api'])\n\n`}}}else if(typeof q==="object"){for(let f in q)if(Object.prototype.hasOwnProperty.call(q,f)){let I=q[f];if(await QH(f,Y,I),typeof I!=="string")throw new TypeError(`Invalid route path for ${f}`);let C=`${I}.ts`;if(f==="index")H+=`route.get('${K}', '${C}').${V}\n\n`;if(f==="show")H+=`route.get('${K}/{id}', '${C}').${V}\n\n`;if(f==="store")H+=`route.post('${K}', '${C}').${V}\n\n`;if(f==="update")H+=`route.patch('${K}/{id}', '${C}').${V}\n\n`;if(f==="destroy")H+=`route.delete('${K}/{id}', '${C}').${V}\n\n`}}}}if(typeof Q.traits.useApi==="boolean"&&Q.traits?.useApi){let W=z,K=["index","show","store","update","destroy"];for(let q of K){await QH(q,Y);let f=q.charAt(0).toUpperCase()+q.slice(1),I=h1.builtUserActionsPath(`src/${Y}${f}OrmAction.ts`,{relative:!0});if(q==="index")H+=`route.get('${W}', '${I}').middleware(['Api'])\n\n`;if(q==="show")H+=`route.get('${W}/{id}', '${I}').middleware(['Api'])\n\n`;if(q==="store")H+=`route.post('${W}', '${I}').middleware(['Api'])\n\n`;if(q==="update")H+=`route.patch('${W}/{id}', '${I}').middleware(['Api'])\n\n`;if(q==="destroy")H+=`route.delete('${W}/{id}', '${I}').middleware(['Api'])\n\n`}}}}X.write(H),await X.end()}async function QS1(J){let G=h1.frameworkPath("orm/src/types.ts");if(o1.existsSync(G))await o1.promises.unlink(G);if(J){let H=h1.frameworkPath(`orm/src/models/${J}.ts`);if(o1.existsSync(H))await o1.promises.unlink(H);return}let X=R5([h1.frameworkPath("orm/src/models/*.ts")],{absolute:!0});await Promise.all(X.map(async(H)=>{if(o1.existsSync(H))x1.info(`Deleting Model: ${G9(H)}`),await o1.promises.unlink(H),x1.success(`Deleted Model: ${G9(H)}`)}))}async function YS1(){let J=h1.corePath("types/src/model-names.ts");if(o1.existsSync(J))await o1.promises.unlink(J)}async function zS1(J){let G=h1.frameworkPath("types/requests.d.ts");if(o1.existsSync(G))await o1.promises.unlink(G);if(J){let H=h1.frameworkPath(`requests/${J}.ts`);if(o1.existsSync(H))await o1.promises.unlink(H);return}let X=R5([h1.frameworkPath("requests/*.ts")],{absolute:!0});for(let H of X)if(o1.existsSync(H))await o1.promises.unlink(H)}async function WS1(){let J=h1.frameworkPath("orm/routes.ts");if(o1.existsSync(J))await o1.promises.unlink(J)}async function $S1(){let J=R5([h1.userModelsPath("*.ts")],{absolute:!0}),G="";for(let V of J){let Q=(await import(V)).default,Y=X6(Q,V),z=G0(Q,V),K=`${Y.split("_").map((q)=>q.charAt(0).toUpperCase()+q.slice(1)).join("")}`;G+=`import type { ${K}Table } from '../src/models/${z}'\n`}G+="import type { Generated } from 'kysely'\n\n";let X="";for(let V of J){let Q=(await import(V)).default,Y=G0(Q,V),z=await fq(Q,Y);for(let W of z)X=`${W.table.split("_").map((q)=>q.charAt(0).toUpperCase()+q.slice(1)).join("")}Table`,G+=`export interface ${X} {
|
|
95
|
+
id?: Generated<number>
|
|
96
|
+
${W.firstForeignKey}: number
|
|
97
|
+
${W.secondForeignKey}: number
|
|
98
|
+
}\n\n`}G+="\nexport interface MigrationsTable {\n",G+="name: string\n timestamp: string \n }",G+="\nexport interface PasskeysTable {\n",G+=" id: string\n",G+=" cred_public_key: string\n",G+=" user_id: number;\n",G+=" webauthn_user_id: string\n",G+=" counter: number\n",G+=" credential_type: string\n",G+=" device_type: string\n",G+=" backup_eligible: boolean\n",G+=" backup_status: boolean\n",G+=" transports?: string\n",G+=" created_at?: Date\n",G+=" last_used_at: string \n",G+="}\n\n",G+="\nexport interface Database {\n";for(let V of J){let Q=(await import(V)).default,Y=G0(Q,V),z=X6(Q,V),W=await fq(Q,Y);for(let f of W)G+=` ${f.table}: ${X}\n`;let q=`${z.split("_").map((f)=>f.charAt(0).toUpperCase()+f.slice(1)).join("")}Table`;G+=` ${z}: ${q}\n`}G+="passkeys: PasskeysTable\n",G+="migrations: MigrationsTable",G+="}";let Z=Bun.file(h1.frameworkPath("orm/src/types.ts")).writer();Z.write(G),await Z.end()}async function US1(J,G,X,H){let Z=t5(J),V=G.toLowerCase(),Q="",Y="",z="{\n",W="",K="",q="",f="",I="",C="",x="",O="",v="",b="",B1="",J1=await Dq(X,G);for(let i of J1)I+=`import ${i.model} from './${i.model}'\n\n`;let R1=X?.traits?.useTimestamps??X?.traits?.timestampable??!0,W1=X?.traits?.useSoftDeletes??X?.traits?.softDeletable??!1,D1=X?.traits?.observe;if(typeof D1==="boolean"){if(D1)x+=`if (model)\n dispatch('${V}:created', model)`,O+=`if (model)\n dispatch('${V}:updated', model)`,v+=`if (model)\n dispatch('${V}:deleted', model)`,b+="const model = await instance.find(id)",B1+="const model = await this.find(this.id)"}if(Array.isArray(D1)){if(D1.includes("create"))x+=`if (model)\n dispatch('${V}:created', model);`;if(D1.includes("update"))O+=`if (model)\n dispatch('${V}:updated', model);`;if(D1.includes("delete"))b+="const model = await instance.find(id)",v+=`if (model)\n dispatch('${V}:deleted', model);`}for(let i of J1){let{model:$1,foreignKey:r}=i,m=i.table||"",n=i.pivotTable,o=$1.toLowerCase(),H1=eC1(i.relationship),Y1=tC1(i.relationship);if(H1==="throughType"){let e=i.relationName||V+$1,K1=i.throughModel;if(i.throughModel===void 0)continue;let q1=i?.throughModel?.toLowerCase(),e1=K1,j2=i.throughForeignKey||`${q1}_id`;f+=`
|
|
99
|
+
async ${e}() {
|
|
100
|
+
if (this.id === undefined)
|
|
101
|
+
throw new HttpError(500, 'Relation Error!')
|
|
102
|
+
|
|
103
|
+
const firstModel = await db.selectFrom('${e1}')
|
|
104
|
+
.where('${r}', '=', this.id)
|
|
105
|
+
.selectAll()
|
|
106
|
+
.executeTakeFirst()
|
|
107
|
+
|
|
108
|
+
if (! firstModel)
|
|
109
|
+
throw new HttpError(500, 'Model Relation Not Found!')
|
|
110
|
+
|
|
111
|
+
const finalModel = ${$1}
|
|
112
|
+
.where('${j2}', '=', firstModel.id)
|
|
113
|
+
.first()
|
|
114
|
+
|
|
115
|
+
return new ${$1}.modelInstance(finalModel)
|
|
116
|
+
}\n\n`}if(H1==="hasType"&&Y1==="many"){let e=i.relationName||m;f+=`
|
|
117
|
+
async ${e}() {
|
|
118
|
+
if (this.id === undefined)
|
|
119
|
+
throw new HttpError(500, 'Relation Error!')
|
|
120
|
+
|
|
121
|
+
const results = await db.selectFrom('${m}')
|
|
122
|
+
.where('${r}', '=', this.id)
|
|
123
|
+
.selectAll()
|
|
124
|
+
.execute()
|
|
125
|
+
|
|
126
|
+
return results
|
|
127
|
+
}\n\n`}if(H1==="hasType"&&Y1==="one"){let e=i.relationName||o;f+=`
|
|
128
|
+
async ${e}() {
|
|
129
|
+
if (this.id === undefined)
|
|
130
|
+
throw new HttpError(500, 'Relation Error!')
|
|
131
|
+
|
|
132
|
+
const model = ${$1}
|
|
133
|
+
.where('${r}', '=', this.id).first()
|
|
134
|
+
|
|
135
|
+
if (! model)
|
|
136
|
+
throw new HttpError(500, 'Model Relation Not Found!')
|
|
137
|
+
|
|
138
|
+
return model
|
|
139
|
+
}\n\n`}if(H1==="belongsType"&&!Y1){let e=i.relationName||o;f+=`
|
|
140
|
+
async ${e}() {
|
|
141
|
+
if (this.${r} === undefined)
|
|
142
|
+
throw new HttpError(500, 'Relation Error!')
|
|
143
|
+
|
|
144
|
+
const model = await ${$1}
|
|
145
|
+
.where('id', '=', ${r})
|
|
146
|
+
.first()
|
|
147
|
+
|
|
148
|
+
if (! model)
|
|
149
|
+
throw new HttpError(500, 'Model Relation Not Found!')
|
|
150
|
+
|
|
151
|
+
return model
|
|
152
|
+
}\n\n`}if(H1==="belongsType"&&Y1==="many"){let e=n||m,K1=i.relationName||V+J9(t5($1));f+=`
|
|
153
|
+
async ${K1}() {
|
|
154
|
+
if (this.id === undefined)
|
|
155
|
+
throw new HttpError(500, 'Relation Error!')
|
|
156
|
+
|
|
157
|
+
const results = await db.selectFrom('${e}')
|
|
158
|
+
.where('${r}', '=', this.id)
|
|
159
|
+
.selectAll()
|
|
160
|
+
.execute()
|
|
161
|
+
|
|
162
|
+
const tableRelationIds = results.map(result => result.${DG(m)}_id)
|
|
163
|
+
|
|
164
|
+
if (! tableRelationIds.length)
|
|
165
|
+
throw new HttpError(500, 'Relation Error!')
|
|
166
|
+
|
|
167
|
+
const relationResults = await ${$1}.whereIn('id', tableRelationIds).get()
|
|
168
|
+
|
|
169
|
+
return relationResults
|
|
170
|
+
}\n\n`}}W+="public id: number | undefined \n ",Y+=`this.id = ${V}?.id\n `;let E1=typeof X.traits?.useAuth==="object"&&X.traits.useAuth.useTwoFactor,a=typeof X.traits?.useAuth==="object"&&X.traits.useAuth.usePasskey;if(E1)W+="public two_factor_secret: string | undefined \n",Y+=`this.two_factor_secret = ${V}?.two_factor_secret\n `,C+=`
|
|
171
|
+
async generateTwoFactorForModel() {
|
|
172
|
+
const secret = generateTwoFactorSecret()
|
|
173
|
+
|
|
174
|
+
await this.update({ 'two_factor_secret': secret })
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
verifyTwoFactorCode(code: string): boolean {
|
|
178
|
+
const modelTwoFactorSecret = this.two_factor_secret
|
|
179
|
+
let isValid = false
|
|
180
|
+
|
|
181
|
+
if (typeof modelTwoFactorSecret === 'string') {
|
|
182
|
+
isValid = verifyTwoFactorCode(code, modelTwoFactorSecret)
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
return isValid
|
|
186
|
+
}
|
|
187
|
+
`;if(a)W+="public public_passkey: string | undefined \n",Y+=`this.public_passkey = ${V}?.public_passkey\n `;z+="\nid: this.id,\n";for(let i of H){let $1=i.fieldArray?.entity==="enum"?"string[]":i.fieldArray?.entity;Q+=` ${S2(i.field)}?: ${$1}\n `,W+=`public ${S2(i.field)}: ${$1} | undefined \n `,Y+=`this.${S2(i.field)} = ${V}?.${S2(i.field)}\n `,z+=`${S2(i.field)}: this.${S2(i.field)},\n `,K+=`static where${t5(i.field)}(value: string): ${G}Model {
|
|
188
|
+
const instance = new ${G}Model(null)
|
|
189
|
+
|
|
190
|
+
instance.query = instance.query.where('${i.field}', '=', value)
|
|
191
|
+
|
|
192
|
+
return instance
|
|
193
|
+
} \n\n`,q+=`export async function where${t5(i.field)}(value: ${$1}): Promise<${G}Model[]> {
|
|
194
|
+
const query = db.selectFrom('${J}').where('${S2(i.field)}', '=', value)
|
|
195
|
+
const results = await query.execute()
|
|
196
|
+
|
|
197
|
+
return results.map(modelItem => new ${G}Model(modelItem))
|
|
198
|
+
} \n\n`}if(R1)W+=`
|
|
199
|
+
public created_at: Date | undefined
|
|
200
|
+
public updated_at: Date | undefined
|
|
201
|
+
`,Y+=`
|
|
202
|
+
this.created_at = ${V}?.created_at\n
|
|
203
|
+
this.updated_at = ${V}?.updated_at\n
|
|
204
|
+
`,z+=`
|
|
205
|
+
created_at: this.created_at,\n
|
|
206
|
+
updated_at: this.updated_at,\n
|
|
207
|
+
`;if(W1)W+=`
|
|
208
|
+
public deleted_at: string | undefined
|
|
209
|
+
`,Y+=`
|
|
210
|
+
this.deleted_at = ${V}?.deleted_at\n
|
|
211
|
+
`,z+=`
|
|
212
|
+
deleted_at: this.deleted_at,\n
|
|
213
|
+
`;z+="}";let u=await Aq(X,G);for(let i of u)Q+=` ${i.foreignKey}?: number \n`,W+=`public ${i.foreignKey}: number | undefined \n `,Y+=`this.${i.foreignKey} = ${V}?.${i.foreignKey}\n `;if(E1)Q+="two_factor_secret?: string \n";if(a)Q+="public_passkey?: string \n";if(R1)Q+=`
|
|
214
|
+
created_at?: Date\n
|
|
215
|
+
updated_at?: Date
|
|
216
|
+
`;Q+=`
|
|
217
|
+
deleted_at?: Date
|
|
218
|
+
`;let _=JSON.stringify(JS1(X.attributes)),p=JSON.stringify(GS1(X.attributes));return`import type { Generated, Insertable, Selectable, Updateable } from 'kysely'
|
|
219
|
+
import { db, sql } from '@stacksjs/database'
|
|
220
|
+
import { HttpError } from '@stacksjs/error-handling'
|
|
221
|
+
import { dispatch } from '@stacksjs/events'
|
|
222
|
+
import { generateTwoFactorSecret } from '@stacksjs/auth'
|
|
223
|
+
import { verifyTwoFactorCode } from '@stacksjs/auth'
|
|
224
|
+
import { cache } from '@stacksjs/cache'
|
|
225
|
+
${I}
|
|
226
|
+
// import { Kysely, MysqlDialect, PostgresDialect } from 'kysely'
|
|
227
|
+
// import { Pool } from 'pg'
|
|
228
|
+
|
|
229
|
+
export interface ${Z}Table {
|
|
230
|
+
id: Generated<number>
|
|
231
|
+
${Q}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
interface ${G}Response {
|
|
235
|
+
data: ${Z}
|
|
236
|
+
paging: {
|
|
237
|
+
total_records: number
|
|
238
|
+
page: number
|
|
239
|
+
total_pages: number
|
|
240
|
+
}
|
|
241
|
+
next_cursor: number | null
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export type ${G}Type = Selectable<${Z}Table>
|
|
245
|
+
export type New${G} = Insertable<${Z}Table>
|
|
246
|
+
export type ${G}Update = Updateable<${Z}Table>
|
|
247
|
+
export type ${Z} = ${G}Type[]
|
|
248
|
+
|
|
249
|
+
export type ${G}Column = ${Z}
|
|
250
|
+
export type ${G}Columns = Array<keyof ${Z}>
|
|
251
|
+
|
|
252
|
+
type SortDirection = 'asc' | 'desc'
|
|
253
|
+
interface SortOptions { column: ${G}Type, order: SortDirection }
|
|
254
|
+
// Define a type for the options parameter
|
|
255
|
+
interface QueryOptions {
|
|
256
|
+
sort?: SortOptions
|
|
257
|
+
limit?: number
|
|
258
|
+
offset?: number
|
|
259
|
+
page?: number
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export class ${G}Model {
|
|
263
|
+
private hidden = ${_}
|
|
264
|
+
private fillable = ${p}
|
|
265
|
+
private softDeletes = ${W1}
|
|
266
|
+
protected query: any
|
|
267
|
+
protected hasSelect: boolean
|
|
268
|
+
${W}
|
|
269
|
+
constructor(${V}: Partial<${G}Type> | null) {
|
|
270
|
+
${Y}
|
|
271
|
+
|
|
272
|
+
this.query = db.selectFrom('${J}')
|
|
273
|
+
this.hasSelect = false
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
// Method to find a ${G} by ID
|
|
277
|
+
async find(id: number): Promise<${G}Model | undefined> {
|
|
278
|
+
let query = db.selectFrom('${J}').where('id', '=', id).selectAll()
|
|
279
|
+
|
|
280
|
+
const model = await query.executeTakeFirst()
|
|
281
|
+
|
|
282
|
+
if (!model)
|
|
283
|
+
return undefined
|
|
284
|
+
|
|
285
|
+
cache.getOrSet(\`${V}:\${id}\`, JSON.stringify(model))
|
|
286
|
+
|
|
287
|
+
return this.parseResult(new ${G}Model(model))
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
// Method to find a ${G} by ID
|
|
291
|
+
static async find(id: number): Promise<${G}Model | undefined> {
|
|
292
|
+
let query = db.selectFrom('${J}').where('id', '=', id).selectAll()
|
|
293
|
+
|
|
294
|
+
const instance = new ${G}Model(null)
|
|
295
|
+
|
|
296
|
+
const model = await query.executeTakeFirst()
|
|
297
|
+
|
|
298
|
+
if (!model)
|
|
299
|
+
return undefined
|
|
300
|
+
|
|
301
|
+
cache.getOrSet(\`${V}:\${id}\`, JSON.stringify(model))
|
|
302
|
+
|
|
303
|
+
return instance.parseResult(new ${G}Model(model))
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
static async all(): Promise<${G}Model[]> {
|
|
307
|
+
let query = db.selectFrom('${J}').selectAll()
|
|
308
|
+
|
|
309
|
+
const instance = new ${G}Model(null)
|
|
310
|
+
|
|
311
|
+
if (instance.softDeletes) {
|
|
312
|
+
query = query.where('deleted_at', 'is', null)
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
const results = await query.execute();
|
|
316
|
+
|
|
317
|
+
return results.map(modelItem => instance.parseResult(new ${G}Model(modelItem)));
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
static async findOrFail(id: number): Promise<${G}Model> {
|
|
322
|
+
let query = db.selectFrom('${J}').where('id', '=', id)
|
|
323
|
+
|
|
324
|
+
const instance = new ${G}Model(null)
|
|
325
|
+
|
|
326
|
+
if (instance.softDeletes) {
|
|
327
|
+
query = query.where('deleted_at', 'is', null);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
query = query.selectAll()
|
|
331
|
+
|
|
332
|
+
const model = await query.executeTakeFirst()
|
|
333
|
+
|
|
334
|
+
if (model === undefined)
|
|
335
|
+
throw new HttpError(404, \`No ${G}Model results for \${id}\`)
|
|
336
|
+
|
|
337
|
+
cache.getOrSet(\`${V}:\${id}\`, JSON.stringify(model))
|
|
338
|
+
|
|
339
|
+
return instance.parseResult(new ${G}Model(model))
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
static async findMany(ids: number[]): Promise<${G}Model[]> {
|
|
343
|
+
let query = db.selectFrom('${J}').where('id', 'in', ids)
|
|
344
|
+
|
|
345
|
+
const instance = new ${G}Model(null)
|
|
346
|
+
|
|
347
|
+
if (instance.softDeletes) {
|
|
348
|
+
query = query.where('deleted_at', 'is', null);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
query = query.selectAll()
|
|
352
|
+
|
|
353
|
+
const model = await query.execute()
|
|
354
|
+
|
|
355
|
+
return model.map(modelItem => instance.parseResult(new ${G}Model(modelItem)))
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
// Method to get a User by criteria
|
|
359
|
+
static async get(): Promise<UserModel[]> {
|
|
360
|
+
const instance = new ${G}Model(null)
|
|
361
|
+
|
|
362
|
+
if (instance.hasSelect) {
|
|
363
|
+
if (instance.softDeletes) {
|
|
364
|
+
instance.query = instance.query.where('deleted_at', 'is', null)
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
const model = await instance.query.execute()
|
|
368
|
+
|
|
369
|
+
return model.map((modelItem: ${G}Model) => new ${G}Model(modelItem))
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
if (instance.softDeletes) {
|
|
373
|
+
instance.query = instance.query.where('deleted_at', 'is', null)
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
const model = await instance.query.selectAll().execute()
|
|
377
|
+
|
|
378
|
+
return model.map((modelItem: ${G}Model) => new ${G}Model(modelItem))
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
// Method to get a ${G} by criteria
|
|
383
|
+
async get(): Promise<${G}Model[]> {
|
|
384
|
+
if (this.hasSelect) {
|
|
385
|
+
|
|
386
|
+
if (this.softDeletes) {
|
|
387
|
+
this.query = this.query.where('deleted_at', 'is', null);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
const model = await this.query.execute()
|
|
391
|
+
|
|
392
|
+
return model.map((modelItem: ${G}Model) => new ${G}Model(modelItem))
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
if (this.softDeletes) {
|
|
396
|
+
this.query = this.query.where('deleted_at', 'is', null);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
const model = await this.query.selectAll().execute()
|
|
400
|
+
|
|
401
|
+
return model.map((modelItem: ${G}Model) => new ${G}Model(modelItem))
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
static async count(): Promise<number> {
|
|
405
|
+
const instance = new ${G}Model(null)
|
|
406
|
+
|
|
407
|
+
if (instance.softDeletes) {
|
|
408
|
+
instance.query = instance.query.where('deleted_at', 'is', null);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
const results = await instance.query.selectAll().execute()
|
|
412
|
+
|
|
413
|
+
return results.length
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
async count(): Promise<number> {
|
|
417
|
+
if (this.hasSelect) {
|
|
418
|
+
|
|
419
|
+
if (this.softDeletes) {
|
|
420
|
+
this.query = this.query.where('deleted_at', 'is', null);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
const results = await this.query.execute()
|
|
424
|
+
|
|
425
|
+
return results.length
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
const results = await this.query.selectAll().execute()
|
|
429
|
+
|
|
430
|
+
return results.length
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
// Method to get all ${J}
|
|
434
|
+
static async paginate(options: QueryOptions = { limit: 10, offset: 0, page: 1 }): Promise<${G}Response> {
|
|
435
|
+
const totalRecordsResult = await db.selectFrom('${J}')
|
|
436
|
+
.select(db.fn.count('id').as('total')) // Use 'id' or another actual column name
|
|
437
|
+
.executeTakeFirst()
|
|
438
|
+
|
|
439
|
+
const totalRecords = Number(totalRecordsResult?.total) || 0
|
|
440
|
+
const totalPages = Math.ceil(totalRecords / (options.limit ?? 10))
|
|
441
|
+
|
|
442
|
+
const ${J}WithExtra = await db.selectFrom('${J}')
|
|
443
|
+
.selectAll()
|
|
444
|
+
.orderBy('id', 'asc') // Assuming 'id' is used for cursor-based pagination
|
|
445
|
+
.limit((options.limit ?? 10) + 1) // Fetch one extra record
|
|
446
|
+
.offset(((options.page ?? 1) - 1) * (options.limit ?? 10)) // Ensure options.page is not undefined
|
|
447
|
+
.execute()
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
let nextCursor = null
|
|
451
|
+
if (${J}WithExtra.length > (options.limit ?? 10)) nextCursor = ${J}WithExtra.pop()?.id ?? null
|
|
452
|
+
|
|
453
|
+
return {
|
|
454
|
+
data: ${J}WithExtra,
|
|
455
|
+
paging: {
|
|
456
|
+
total_records: totalRecords,
|
|
457
|
+
page: options.page || 1,
|
|
458
|
+
total_pages: totalPages,
|
|
459
|
+
},
|
|
460
|
+
next_cursor: nextCursor,
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
// Method to create a new ${V}
|
|
465
|
+
static async create(new${G}: New${G}): Promise<${G}Model> {
|
|
466
|
+
const instance = new ${G}Model(null)
|
|
467
|
+
|
|
468
|
+
const filteredValues = Object.fromEntries(
|
|
469
|
+
Object.entries(new${G}).filter(([key]) => instance.fillable.includes(key)),
|
|
470
|
+
) as New${G}
|
|
471
|
+
|
|
472
|
+
const result = await db.insertInto('${J}')
|
|
473
|
+
.values(filteredValues)
|
|
474
|
+
.executeTakeFirst()
|
|
475
|
+
|
|
476
|
+
const model = await find(Number(result.insertId)) as ${G}Model
|
|
477
|
+
|
|
478
|
+
${x}
|
|
479
|
+
|
|
480
|
+
return model
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
static async forceCreate(new${G}: New${G}): Promise<${G}Model> {
|
|
484
|
+
const result = await db.insertInto('${J}')
|
|
485
|
+
.values(new${G})
|
|
486
|
+
.executeTakeFirst()
|
|
487
|
+
|
|
488
|
+
const model = await find(Number(result.insertId)) as ${G}Model
|
|
489
|
+
|
|
490
|
+
${x}
|
|
491
|
+
|
|
492
|
+
return model
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
// Method to remove a ${G}
|
|
496
|
+
static async remove(id: number): Promise<void> {
|
|
497
|
+
const instance = new ${G}Model(null)
|
|
498
|
+
${b}
|
|
499
|
+
|
|
500
|
+
if (instance.softDeletes) {
|
|
501
|
+
await db.updateTable('${J}')
|
|
502
|
+
.set({
|
|
503
|
+
deleted_at: sql.raw('CURRENT_TIMESTAMP')
|
|
504
|
+
})
|
|
505
|
+
.where('id', '=', id)
|
|
506
|
+
.execute();
|
|
507
|
+
} else {
|
|
508
|
+
await db.deleteFrom('${J}')
|
|
509
|
+
.where('id', '=', id)
|
|
510
|
+
.execute();
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
${v}
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
where(...args: (string | number | boolean | undefined | null)[]): ${G}Model {
|
|
518
|
+
let column: any
|
|
519
|
+
let operator: any
|
|
520
|
+
let value: any
|
|
521
|
+
|
|
522
|
+
if (args.length === 2) {
|
|
523
|
+
[column, value] = args
|
|
524
|
+
operator = '='
|
|
525
|
+
} else if (args.length === 3) {
|
|
526
|
+
[column, operator, value] = args
|
|
527
|
+
} else {
|
|
528
|
+
throw new HttpError(500, "Invalid number of arguments")
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
this.query = this.query.where(column, operator, value)
|
|
532
|
+
|
|
533
|
+
return this
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
static where(...args: (string | number | boolean | undefined | null)[]): ${G}Model {
|
|
537
|
+
let column: any
|
|
538
|
+
let operator: any
|
|
539
|
+
let value: any
|
|
540
|
+
|
|
541
|
+
const instance = new ${G}Model(null)
|
|
542
|
+
|
|
543
|
+
if (args.length === 2) {
|
|
544
|
+
[column, value] = args
|
|
545
|
+
operator = '='
|
|
546
|
+
} else if (args.length === 3) {
|
|
547
|
+
[column, operator, value] = args
|
|
548
|
+
} else {
|
|
549
|
+
throw new HttpError(500, "Invalid number of arguments")
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
instance.query = instance.query.where(column, operator, value)
|
|
553
|
+
|
|
554
|
+
return instance
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
${K}
|
|
558
|
+
|
|
559
|
+
static whereIn(column: keyof ${G}Type, values: any[]): ${G}Model {
|
|
560
|
+
const instance = new ${G}Model(null)
|
|
561
|
+
|
|
562
|
+
instance.query = instance.query.where(column, 'in', values)
|
|
563
|
+
|
|
564
|
+
return instance
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
async first(): Promise<${G}Model | undefined> {
|
|
568
|
+
const model = await this.query.selectAll().executeTakeFirst()
|
|
569
|
+
|
|
570
|
+
if (! model) {
|
|
571
|
+
return undefined
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
return this.parseResult(new ${G}Model(model))
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
async firstOrFail(): Promise<${G}Model | undefined> {
|
|
578
|
+
const model = await this.query.selectAll().executeTakeFirst()
|
|
579
|
+
|
|
580
|
+
if (model === undefined)
|
|
581
|
+
throw new HttpError(404, 'No ${G}Model results found for query')
|
|
582
|
+
|
|
583
|
+
return this.parseResult(new ${G}Model(model))
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
async exists(): Promise<boolean> {
|
|
587
|
+
const model = await this.query.selectAll().executeTakeFirst()
|
|
588
|
+
|
|
589
|
+
return model !== null || model !== undefined
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
static async first(): Promise<${G}Type | undefined> {
|
|
593
|
+
return await db.selectFrom('${J}')
|
|
594
|
+
.selectAll()
|
|
595
|
+
.executeTakeFirst()
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
async last(): Promise<${G}Type | undefined> {
|
|
599
|
+
return await db.selectFrom('${J}')
|
|
600
|
+
.selectAll()
|
|
601
|
+
.orderBy('id', 'desc')
|
|
602
|
+
.executeTakeFirst()
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
static async last(): Promise<${G}Type | undefined> {
|
|
606
|
+
return await db.selectFrom('${J}').selectAll().orderBy('id', 'desc').executeTakeFirst()
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
static orderBy(column: keyof ${G}Type, order: 'asc' | 'desc'): ${G}Model {
|
|
610
|
+
const instance = new ${G}Model(null)
|
|
611
|
+
|
|
612
|
+
instance.query = instance.query.orderBy(column, order)
|
|
613
|
+
|
|
614
|
+
return instance
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
orderBy(column: keyof ${G}Type, order: 'asc' | 'desc'): ${G}Model {
|
|
618
|
+
this.query = this.query.orderBy(column, order)
|
|
619
|
+
|
|
620
|
+
return this
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
static orderByDesc(column: keyof ${G}Type): ${G}Model {
|
|
624
|
+
const instance = new ${G}Model(null)
|
|
625
|
+
|
|
626
|
+
instance.query = instance.query.orderBy(column, 'desc')
|
|
627
|
+
|
|
628
|
+
return instance
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
orderByDesc(column: keyof ${G}Type): ${G}Model {
|
|
632
|
+
this.query = this.orderBy(column, 'desc')
|
|
633
|
+
|
|
634
|
+
return this
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
static orderByAsc(column: keyof ${G}Type): ${G}Model {
|
|
638
|
+
const instance = new ${G}Model(null)
|
|
639
|
+
|
|
640
|
+
instance.query = instance.query.orderBy(column, 'asc')
|
|
641
|
+
|
|
642
|
+
return instance
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
orderByAsc(column: keyof ${G}Type): ${G}Model {
|
|
646
|
+
this.query = this.query.orderBy(column, 'desc')
|
|
647
|
+
|
|
648
|
+
return this
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
async update(${V}: ${G}Update): Promise<${G}Model | undefined> {
|
|
652
|
+
if (this.id === undefined)
|
|
653
|
+
throw new HttpError(500, '${G} ID is undefined')
|
|
654
|
+
|
|
655
|
+
const filteredValues = Object.fromEntries(
|
|
656
|
+
Object.entries(${V}).filter(([key]) => this.fillable.includes(key)),
|
|
657
|
+
) as New${G}
|
|
658
|
+
|
|
659
|
+
await db.updateTable('${J}')
|
|
660
|
+
.set(filteredValues)
|
|
661
|
+
.where('id', '=', this.id)
|
|
662
|
+
.executeTakeFirst()
|
|
663
|
+
|
|
664
|
+
const model = await this.find(Number(this.id))
|
|
665
|
+
|
|
666
|
+
${O}
|
|
667
|
+
|
|
668
|
+
return model
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
async forceUpdate(${V}: ${G}Update): Promise<${G}Model | undefined> {
|
|
672
|
+
if (this.id === undefined)
|
|
673
|
+
throw new HttpError(500, '${G} ID is undefined')
|
|
674
|
+
|
|
675
|
+
await db.updateTable('${J}')
|
|
676
|
+
.set(${V})
|
|
677
|
+
.where('id', '=', this.id)
|
|
678
|
+
.executeTakeFirst()
|
|
679
|
+
|
|
680
|
+
const model = await this.find(Number(this.id))
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
${O}
|
|
684
|
+
|
|
685
|
+
return model
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
async save(): Promise<void> {
|
|
689
|
+
if (!this)
|
|
690
|
+
throw new HttpError(500, '${G} data is undefined')
|
|
691
|
+
|
|
692
|
+
if (this.id === undefined) {
|
|
693
|
+
await db.insertInto('${J}')
|
|
694
|
+
.values(this as New${G})
|
|
695
|
+
.executeTakeFirstOrThrow()
|
|
696
|
+
}
|
|
697
|
+
else {
|
|
698
|
+
await this.update(this)
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
// Method to delete (soft delete) the ${V} instance
|
|
703
|
+
async delete(): Promise<void> {
|
|
704
|
+
if (this.id === undefined)
|
|
705
|
+
throw new HttpError(500, '${G} ID is undefined')
|
|
706
|
+
|
|
707
|
+
${B1}
|
|
708
|
+
|
|
709
|
+
// Check if soft deletes are enabled
|
|
710
|
+
if (this.softDeletes) {
|
|
711
|
+
// Update the deleted_at column with the current timestamp
|
|
712
|
+
await db.updateTable('${J}')
|
|
713
|
+
.set({
|
|
714
|
+
deleted_at: sql.raw('CURRENT_TIMESTAMP')
|
|
715
|
+
})
|
|
716
|
+
.where('id', '=', this.id)
|
|
717
|
+
.execute();
|
|
718
|
+
} else {
|
|
719
|
+
// Perform a hard delete
|
|
720
|
+
await db.deleteFrom('${J}')
|
|
721
|
+
.where('id', '=', this.id)
|
|
722
|
+
.execute();
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
${v}
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
${f}
|
|
730
|
+
|
|
731
|
+
distinct(column: keyof ${G}Type): ${G}Model {
|
|
732
|
+
this.query = this.query.select(column).distinct()
|
|
733
|
+
|
|
734
|
+
this.hasSelect = true
|
|
735
|
+
|
|
736
|
+
return this
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
static distinct(column: keyof ${G}Type): ${G}Model {
|
|
740
|
+
const instance = new ${G}Model(null)
|
|
741
|
+
|
|
742
|
+
instance.query = instance.query.select(column).distinct()
|
|
743
|
+
|
|
744
|
+
instance.hasSelect = true
|
|
745
|
+
|
|
746
|
+
return instance
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
join(table: string, firstCol: string, secondCol: string): ${G}Model {
|
|
750
|
+
this.query = this.query.innerJoin(table, firstCol, secondCol)
|
|
751
|
+
|
|
752
|
+
return this
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
static join(table: string, firstCol: string, secondCol: string): ${G}Model {
|
|
756
|
+
const instance = new ${G}Model(null)
|
|
757
|
+
|
|
758
|
+
instance.query = instance.query.innerJoin(table, firstCol, secondCol)
|
|
759
|
+
|
|
760
|
+
return instance
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
static async rawQuery(rawQuery: string): Promise<any> {
|
|
764
|
+
return await sql\`\${rawQuery}\`.execute(db)
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
toJSON() {
|
|
768
|
+
const output: Partial<${G}Type> = ${z}
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
type ${G} = Omit<${G}Type, 'password'>
|
|
772
|
+
|
|
773
|
+
return output as ${G}
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
parseResult(model: ${G}Model): ${G}Model {
|
|
777
|
+
for (const hiddenAttribute of this.hidden) {
|
|
778
|
+
delete model[hiddenAttribute as keyof ${G}Model]
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
return model
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
${C}
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
async function find(id: number): Promise<${G}Model | undefined> {
|
|
788
|
+
let query = db.selectFrom('${J}').where('id', '=', id).selectAll()
|
|
789
|
+
|
|
790
|
+
const model = await query.executeTakeFirst()
|
|
791
|
+
|
|
792
|
+
if (!model) return undefined
|
|
793
|
+
|
|
794
|
+
return new ${G}Model(model)
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
export async function count(): Promise<number> {
|
|
798
|
+
const results = await ${G}Model.count()
|
|
799
|
+
|
|
800
|
+
return results
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
export async function create(new${G}: New${G}): Promise<${G}Model> {
|
|
804
|
+
|
|
805
|
+
const result = await db.insertInto('${J}')
|
|
806
|
+
.values(new${G})
|
|
807
|
+
.executeTakeFirstOrThrow()
|
|
808
|
+
|
|
809
|
+
return await find(Number(result.insertId)) as ${G}Model
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
export async function rawQuery(rawQuery: string): Promise<any> {
|
|
813
|
+
return await sql\`\${rawQuery}\`.execute(db)
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
export async function remove(id: number): Promise<void> {
|
|
817
|
+
await db.deleteFrom('${J}')
|
|
818
|
+
.where('id', '=', id)
|
|
819
|
+
.execute()
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
${q}
|
|
823
|
+
|
|
824
|
+
export const ${G} = ${G}Model
|
|
825
|
+
|
|
826
|
+
export default ${G}
|
|
827
|
+
`}async function Cq(J){try{x1.info("Cleanup of older Models..."),await QS1(J),x1.success("Deleted Models"),x1.info("Deleting old Model Name types..."),await YS1(),x1.success("Deleted Model Name types"),x1.info("Deleting old Model Requests..."),await zS1(J),x1.success("Deleted Model Requests"),x1.info("Deleting old Model Routes..."),await WS1(),x1.success("Deleted Model Routes");try{x1.info("Writing Model Names..."),await XS1(),x1.success("Wrote Model Names")}catch(X){VH("Error while writing Model Names",X)}try{x1.info("Writing Model Requests..."),await HS1(),x1.success("Wrote Model Requests")}catch(X){VH("Error while writing Model Requests",X)}x1.info("Generating API Routes...");let G=R5([h1.userModelsPath("**/*.ts")],{absolute:!0});await VS1(G),x1.success("Generated API Routes");for(let X of G){if(J&&J!==X)continue;x1.info(`Processing Model: ${G9(X)}`);let H=(await import(X)).default,Z=X6(H,X),V=G0(H,X),Q=Bun.file(h1.frameworkPath(`orm/src/models/${V}.ts`)),Y=await Iq(H,X),z=await US1(Z,V,H,Y),W=Q.writer();x1.info(`Writing API Endpoints for: ${G9(V)}`),W.write(z),x1.success(`Wrote API endpoints for: ${G9(V)}`),await W.end()}x1.info("Generating Query Builder types..."),await $S1(),x1.success("Generated Query Builder types"),await KS1()}catch(G){VH("Error while generating model files",G)}}async function KS1(){x1.info("Linting code style...");let J=Bun.spawn(["bunx","--bun","eslint",".","--fix"],{stdio:["ignore","pipe","pipe"],cwd:h1.projectPath()}),G=J.stdout.getReader();while(!0){let{done:Z}=await G.read();if(Z)break}let X=J.stderr.getReader();while(!0){let{done:Z}=await X.read();if(Z)break}if(await J.exited!==0)x1.debug("There was an error fixing your code style but we are ignoring it because we fixed the auto-generated code already. Run bunx eslint . --fix to fix the rest of the code.");else x1.debug("Code style fixed successfully.")}import{ExitCode as wq}from"@stacksjs/types";function bh1(J){let G={command:"Automagically build any of your libraries/packages for production use. Select any of the following packages",types:"Generate your TypeScript types",entries:"Generate your function & Component Library Entry Points",webTypes:"Generate web-types.json for IDEs",customData:"Generate VS Code custom data (custom-elements.json) for IDEs",ideHelpers:"Generate IDE helpers",componentMeta:"Generate component meta information",coreSymlink:"Generate symlink of the core framework to the project root",pkgx:"Generate the pkgx configuration file",modelFiles:"Generate the model files",openApi:"Generate the OpenAPI specification",select:"What are you trying to generate?",project:"Target a specific project",verbose:"Enable verbose output"};J.command("generate",G.command).option("-t, --types",G.types).option("-e, --entries",G.entries).option("-w, --web-types",G.webTypes).option("-c, --custom-data",G.customData).option("-i, --ide-helpers",G.ideHelpers).option("-c, --component-meta",G.componentMeta).option("-p, --pkgx",G.pkgx).option("-m, --model-files",G.modelFiles).option("-o, --openapi",G.openApi).option("-p, --project [project]",G.project,{default:!1}).option("--core-symlink",G.coreSymlink).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{g2.debug("Running `buddy generate` ...",X),await IS1(X),YH.exit(wq.Success)}),J.command("generate:types",G.types).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).alias("types:generate").action(async(X)=>{g2.debug("Running `buddy generate:types` ...",X),await fS1(X)}),J.command("generate:entries",G.entries).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{g2.debug("Running `buddy generate:entries` ...",X),await qS1(X)}),J.command("generate:web-types",G.webTypes).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{g2.debug("Running `buddy generate:web-types` ...",X),await AS1(X)}),J.command("generate:vscode-custom-data",G.customData).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{g2.debug("Running `buddy generate:vscode-custom-data` ...",X),await DS1(X)}),J.command("generate:ide-helpers",G.ideHelpers).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{g2.debug("Running `buddy generate:ide-helpers` ...",X),await MS1(X)}),J.command("generate:component-meta",G.componentMeta).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{g2.debug("Running `buddy generate:component-meta` ...",X),await BS1(X)}),J.command("generate:pkgx-config",G.pkgx).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action((X)=>{g2.debug("Running `buddy generate:pkgx-config` ...",X),jS1()}),J.command("generate:model-files",G.modelFiles).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async()=>{let X=await Sq("buddy generate:model-files");try{await Cq(),Pq("Generated Model files",{startTime:X,useSeconds:!0})}catch(H){g2.error("There was an error generating your model files",H),YH.exit(wq.FatalError)}}),J.command("generate:openapi-spec",G.openApi).alias("generate:openapi").option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{g2.debug("Running `buddy generate:openapi-spec` ...",X);let H=await Sq("buddy generate:openapi-spec");await FS1(),Pq("Generated OpenAPI specification",{startTime:H,useSeconds:!0})}),J.command("generate:migrations","Generate Migrations").action((X)=>{g2.debug("Running `buddy generate:migrations` ...",X)}),J.command("generate:core-symlink","Generate core symlink. A shortcut for core developers.").action(async(X)=>{g2.debug("Running `buddy core-symlink` ...",X),await RS1()}),J.on("generate:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),YH.exit(1)})}import CS1 from"process";import{config as SS1}from"@stacksjs/config";import{ExitCode as PS1}from"@stacksjs/types";import{log as Lq,runCommandSync as wS1}from"@stacksjs/cli";function ch1(J){let G={http:"Send an HTTP request to a domain",project:"Target a specific project",verbose:"Enable verbose output"};J.command("http [domain]",G.http).option("-p, --project [project]",G.project,{default:!1}).action(async(X,H)=>{Lq.debug("Running `buddy http [domain]` ...",H);let Z=Object.entries(H).filter(([Q,Y])=>Q!=="--"&&Q.length>1&&Y!==!1).map(([Q,Y])=>`--${Q} ${Y}`).join(" "),V=`http GET ${X||SS1.app.url} ${Z}`;Lq.info(`Running command: ${V}`),await wS1(V),CS1.exit(PS1.Success)})}import LS1 from"process";import{log as TS1,runCommand as NS1}from"@stacksjs/cli";import{path as kS1}from"@stacksjs/path";function dh1(J){let G={install:"Install your dependencies",project:"Target a specific project",verbose:"Enable verbose output"};J.command("install",G.install).option("-p, --project [project]",G.project,{default:!1}).option("-v, --verbose",G.verbose,{default:!1}).action(async(X)=>{TS1.debug("Running `buddy install` ...",X),await NS1("bun install",{...X,cwd:kS1.projectPath()})}),J.on("install:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),LS1.exit(1)})}import Tq from"process";import{runAction as ES1}from"@stacksjs/actions";import{intro as OS1,log as Nq,outro as vS1}from"@stacksjs/cli";import{Action as _S1}from"@stacksjs/enums";function th1(J){let G={command:"Generate & set the application key.",project:"Target a specific project",verbose:"Enable verbose output"};J.command("key:generate",G.command).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{Nq.debug("Running `buddy key:generate` ...",X),await OS1("buddy key:generate");let H=await ES1(_S1.KeyGenerate,X);if(H.isErr())Nq.error("Failed to set random application key.",H.error),Tq.exit();await vS1("Random application key set.")}),J.on("key:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),Tq.exit(1)})}import kq from"process";import{runAction as Eq}from"@stacksjs/actions";import{intro as gS1,log as H6,outro as bS1,runCommand as hS1}from"@stacksjs/cli";import{Action as Oq}from"@stacksjs/enums";function Vy1(J){let G={lint:"Automagically lints your project codebase",lintFix:"Automagically fixes all lint errors",project:"Target a specific project",verbose:"Enable verbose output"};J.command("lint",G.lint).option("-f, --fix",G.lintFix,{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{H6.debug("Running `buddy lint` ...",X);let H=await gS1("buddy lint");if(X.fix)await Eq(Oq.LintFix,{...X});else await hS1("bunx --bun eslint .");await bS1("Linted your project",{startTime:H,useSeconds:!0})}),J.command("lint:fix",G.lintFix).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{H6.debug("Running `buddy lint:fix` ...",X),H6.info("Fixing lint errors...");let H=await Eq(Oq.LintFix,{...X});if(H.isErr())H6.error("There was an error lint fixing your code.",H.error),kq.exit();H6.success("Fixed lint errors")}),J.on("lint:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),kq.exit(1)})}var{$:vq}=globalThis.Bun;import yS1 from"process";import{log as mS1}from"@stacksjs/logging";import{projectPath as xS1}from"@stacksjs/path";function Uy1(J){let G={list:"List all of the project-specific Buddy commands",project:"Target a specific project",verbose:"Enable verbose output"};J.command("list",G.list).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{mS1.debug("Running `buddy list` ...",X),vq.cwd(xS1());let Z=(await vq`buddy --help`.text()).match(/Commands:.*?(?=For more info, run any command with the)/s)?.[0];if(Z){let V=Z.replace("Commands:","").replace(/^\s+/gm,"");console.log(V);return}console.error("#1 - Please reach out to our Discord for helper: https://discord.gg/stacksjs")}),J.on("list:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),yS1.exit(1)})}import M2 from"process";import{createModel as lS1,createNotification as cS1,invoke as rS1,makeAction as aS1,makeComponent as iS1,makeDatabase as uS1,makeFunction as dS1,makeLanguage as sS1,makePage as pS1,makeStack as nS1}from"@stacksjs/actions";import{intro as oS1,italic as eS1,outro as _q,runCommand as gq}from"@stacksjs/cli";import{localUrl as tS1}from"@stacksjs/config";import{log as k1}from"@stacksjs/logging";import{path as bq}from"@stacksjs/path";import{ExitCode as hq}from"@stacksjs/types";function Dy1(J){let G={action:"Create a new action",model:"Create a new model",component:"Create a new component",page:"Create a new page",function:"Create a new function",language:"Create a new language",database:"Create a new database",migration:"Create a new migration",factory:"Create a new factory",notification:"Create a new notification",name:"The name of the action",stack:"Create a new stack",certificate:"Create a new SSL Certificate",select:"What are you trying to make?",project:"Target a specific project",verbose:"Enable verbose output"};J.command("make","The make command").option("-a, --action [action]",G.action,{default:!1}).option("-m, --model [model]",G.model,{default:!1}).option("-c, --component [component]",G.component,{default:!1}).option("-p, --page [page]",G.page,{default:!1}).option("-f, --function [function]",G.function,{default:!1}).option("-l, --language [language]",G.language,{default:!1}).option("-d, --database [database]",G.database,{default:!1}).option("-m, --migration [migration]",G.migration,{default:!1}).option("-f, --factory [factory]",G.factory,{default:!1}).option("-n, --notification [notification]",G.notification,{default:!1}).option("-s, --stack [stack]",G.stack,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{if(k1.debug("Running `buddy make` ...",X),!J.args[0])k1.error("You need to specify a name. Read more about the documentation here."),M2.exit();await rS1(X),M2.exit(hq.Success)}),J.command("make:component [name]",G.component).option("-n, --name [name]",G.name,{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X,H)=>{if(k1.debug("Running `buddy make:component` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),M2.exit();await iS1(H)}),J.command("make:database [name]",G.database).option("-n, --name [name]",G.name,{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action((X,H)=>{if(k1.debug("Running `buddy make:database` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a database name via the `--name` option, or as the command\u2019s argument."),k1.info("Example: `buddy make:database my-cool-database`"),k1.info("Or: `buddy make:database --name=my-cool-database`"),k1.info("Read more about the documentation here: https://stacksjs.org/docs/make/database"),M2.exit();uS1(H)}),J.command("make:factory [name]",G.factory).option("-n, --name [name]",G.name,{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action((X,H)=>{if(k1.debug("Running `buddy make:factory` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),M2.exit()}),J.command("make:view [name]",G.page).alias("make:page [name]").option("-n, --name [name]",G.name,{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X,H)=>{if(k1.debug("Running `buddy make:view` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),M2.exit();await pS1(H)}),J.command("make:function [name]",G.function).option("-n, --name [name]",G.name,{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{k1.debug("Running `buddy make:function` ...",X),await dS1(X)}),J.command("make:lang [name]",G.language).option("-n, --name [name]",G.name,{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X,H)=>{if(k1.debug("Running `buddy make:lang` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),M2.exit();await sS1(H)}),J.command("make:notification [name]",G.notification).option("-n, --name [name]",G.name,{default:!1}).option("-e, --email","Is it an email notification?",{default:!0}).option("-c, --chat","Is it a chat notification?",{default:!1}).option("-s, --sms","Is it a SMS notification?",{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X,H)=>{k1.debug("Running `buddy make:notification` ...",H);let Z=await oS1("buddy make:notification");if(X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),M2.exit();if(!await cS1(H))await _q("While running the make:notification command, there was an issue",{startTime:Z,useSeconds:!0}),M2.exit();await _q(`Created your ${eS1(X)} notification.`,{startTime:Z,useSeconds:!0}),M2.exit(hq.Success)}),J.command("make:stack [name]",G.stack).option("-n, --name [name]",G.name,{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action((X,H)=>{if(k1.debug("Running `buddy make:stack` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),M2.exit();nS1(H)}),J.command("make:action [name]",G.action).option("-n, --name [name]",G.name,{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X,H)=>{if(k1.info("Running `buddy make:action` ..."),k1.debug("Running `buddy make:action` ...",X,H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),M2.exit();await aS1(H)}),J.command("make:model [name]",G.model).option("-n, --name [name]",G.name,{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X,H)=>{if(k1.debug("Running `buddy make:model` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a model name"),M2.exit();await lS1(H)}),J.command("make:migration [name]",G.migration).option("-n, --name [name]",G.name,{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action((X,H)=>{if(k1.debug("Running `buddy make:migration` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a migration name"),M2.exit()}),J.command("make:certificate",G.certificate).alias("make:cert").example("buddy make:certificate").action(async(X)=>{k1.debug("Running `buddy make:certificate` ...",X);let H=await tS1();k1.info("Creating SSL certificate..."),await gq(`tlsx ${H}`,{cwd:bq.storagePath("keys")}),k1.success("Certificate created"),k1.info("Installing SSL certificate..."),await gq("tlsx -install",{cwd:bq.storagePath("keys")}),k1.success("Certificate installed")}),J.on("make:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),M2.exit(1)})}import f0 from"process";import{runAction as zH}from"@stacksjs/actions";import{intro as WH,log as $H,outro as X9}from"@stacksjs/cli";import{Action as UH}from"@stacksjs/enums";import{ExitCode as KH}from"@stacksjs/types";function Ly1(J){let G={migrate:"Migrates your database",dns:"Writes the DNS records for a domain to ./config/dns.ts",project:"Target a specific project",verbose:"Enable verbose output"};J.command("migrate",G.migrate).option("-d, --diff","Show the SQL that would be run",{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{$H.debug("Running `buddy migrate` ...",X);let H=await WH("buddy migrate"),Z=await zH(UH.Migrate,X);if(Z.isErr())await X9("While running the migrate command, there was an issue",{startTime:H,useSeconds:!0},Z.error),f0.exit();let V=f0.env.APP_ENV||"local";await X9(`Migrated your ${V} database.`,{startTime:H,useSeconds:!0}),f0.exit(KH.Success)}),J.command("migrate:fresh",G.migrate).option("-d, --diff","Show the SQL that would be run",{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{$H.debug("Running `buddy migrate:fresh` ...",X);let H=await WH("buddy migrate:fresh"),Z=await zH(UH.MigrateFresh,X);if(Z.isErr())await X9("While running the migrate:fresh command, there was an issue",{startTime:H,useSeconds:!0},Z.error),f0.exit();await X9("All tables dropped successfully & migrated successfully",{startTime:H,useSeconds:!0}),f0.exit(KH.Success)}),J.command("migrate:dns",G.migrate).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{$H.debug("Running `buddy migrate:dns` ...",X);let H=await WH("buddy migrate:dns"),Z=await zH(UH.MigrateDns,{...X});if(Z.isErr())await X9("While running the migrate:dns command, there was an issue",{startTime:H,useSeconds:!0},Z.error),f0.exit();let V=f0.env.APP_URL||"undefined";await X9(`Migrated your ${V} DNS.`,{startTime:H,useSeconds:!0}),f0.exit(KH.Success)}),J.on("migrate:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),f0.exit(1)})}var{$:yq}=globalThis.Bun;import JP1 from"process";import{log as GP1}from"@stacksjs/logging";import{projectPath as XP1}from"@stacksjs/path";function vy1(J){let G={outdated:"List all the outdated project dependencies",project:"Target a specific project",verbose:"Enable verbose output"};J.command("outdated",G.outdated).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async()=>{GP1.debug("Running `buddy outdated` ..."),yq.cwd(XP1());let X=await yq`bun outdated`.text();console.log(X)}),J.on("outdated:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),JP1.exit(1)})}var{$:AG}=globalThis.Bun;import IG from"process";import{intro as BH,italic as rq,outro as RH}from"@stacksjs/cli";import{ports as mq}from"@stacksjs/config";import{log as X2}from"@stacksjs/logging";import{findProjectPath as xq,path as lq,projectPath as cq}from"@stacksjs/path";import{ExitCode as MH}from"@stacksjs/types";import{findStacksProjects as HP1}from"@stacksjs/utils";function ry1(J){let G={command:"Let buddy check your project for potential issues and misconfigurations",ports:"Check if the ports are available",project:"Target a specific project",verbose:"Enable verbose output"};J.command("ports",G.command).option("-l, --list","List the used ports",{default:!0}).option("-c, --check","Check if the ports are available",{default:!1}).option("-p, --project [name]",G.project,{default:void 0}).option("-q, --quiet","Use minimal output",{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{X2.debug("Running `buddy ports` ...",X);let H;if(!X.quiet)H=await BH("buddy ports");if(X.project){let Z=await xq(X.project);X2.debug(`Path: ${Z}`);let V=await qH(Z,X);X2.debug(`./buddy ports --quiet response for ${cq}`,V),CG(V,X)}else CG(mq,X);if(!X.quiet)await RH("Exited",{startTime:H,useSeconds:!1});IG.exit(MH.Success)}),J.command("ports:list",G.ports).option("-p, --project [name]",G.project,{default:void 0}).option("-q, --quiet","Use minimal output",{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{X2.debug("Running `buddy ports:list` ...",X);let H;if(!X.quiet)H=await BH("buddy ports:list");if(X.project){if(!X.quiet)X2.info(`Listing ports for project: ${rq(X.project)}`);let Z=await xq(X.project);X2.debug(`Path: ${Z}`);let V=await qH(Z,X);CG(V,X)}else CG(mq,X);if(!X.quiet)await RH("Exited",{startTime:H,useSeconds:!1});IG.exit(MH.Success)}),J.command("ports:check",G.ports).option("-p, --project [name]",G.project,{default:cq()}).option("-q, --quiet","Use minimal output",{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{X2.debug("Running `buddy ports:check` ...",X);let H;if(!X.quiet)H=await BH("buddy ports:check");let Z=await HP1(void 0,{quiet:!0});X2.debug("Running `buddy ports`"),X2.debug(`Found ${Z.length} projects`),X2.debug("Projects:",Z);let V={};for(let Q of Z)V[Q]=await qH(Q,X);if(X2.info("ProjectsPorts:",V),!X.quiet)await RH("Exited",{startTime:H,useSeconds:!1});IG.exit(MH.Success)}),J.on("ports:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),IG.exit(1)})}async function qH(J,G){if(!G.quiet)X2.info(`Checking ports for project: ${rq(J)}`);AG.cwd(J),AG.env(await import(`${J}/.env`));let X=await AG`./buddy projects:list --quiet`.text();X2.debug("ProjectListResponse",X);let H=X.split("\n").filter((W)=>W.startsWith(" - ")).map((W)=>W.trim().substring(4));X2.debug("Projects:",H);let Z=G.project??lq.projectPath(),V=H.find((W)=>W.includes(Z));if(X2.debug(`Checking ports for project: ${V}`),V===""||!V)V=lq.projectPath();X2.debug(`\$ Running: ./buddy ports:list --quiet via ${V}`);let Q=await AG`./buddy ports:list --quiet`.json();X2.debug(`Response for ./buddy ports:list --quiet via ${V}`,Q);let Y=Q.replace(/(\w+)(?=\s*:)/g,'"$1"');Y=Y.replace(/,(\s*\})/g,"$1");let z=JSON.parse(Y);return X2.debug(`Ports for ${V}`,z),z}function CG(J,G){if(!G.quiet)console.log("");if(console.log(J),!G.quiet)console.log("")}import ZP1 from"process";import{runAction as VP1}from"@stacksjs/actions";import{Action as QP1}from"@stacksjs/enums";import{log as YP1}from"@stacksjs/logging";function py1(J){let G={command:"Run your prepublish script",project:"Target a specific project",verbose:"Enable verbose output"};J.command("prepublish",G.command).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{YP1.debug("Running `buddy prepublish` ...",X),await VP1(QP1.Prepublish,X)}),J.on("prepublish:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),ZP1.exit(1)})}import FH from"process";import{intro as aq,log as iq}from"@stacksjs/cli";import{ExitCode as uq}from"@stacksjs/types";import{findStacksProjects as dq}from"@stacksjs/utils";function Gm1(J){let G={projects:"Find all Stacks projects on your system",verbose:"Enable verbose output"};J.command("projects",G.projects).option("-q, --quiet","Use minimal output",{default:!1}).option("-l, --list","List all local Stacks projects",{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{if(iq.debug("Running `buddy projects` ...",X),!X.quiet)await aq("buddy projects");let H=await dq(void 0,X);for(let Z of H)console.log(" - ",Z);FH.exit(uq.Success)}),J.command("projects:list",G.projects).option("-q, --quiet","Use minimal output",{default:!1}).option("-l, --list","List all local Stacks projects",{default:!0}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{if(iq.debug("Running `buddy projects` ...",X),!X.quiet)await aq("buddy projects:list");let H=await dq(void 0,X);for(let Z of H)console.log(" - ",Z);FH.exit(uq.Success)}),J.on("projects:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),FH.exit(1)})}import sq from"process";import{runAction as zP1}from"@stacksjs/actions";import{intro as WP1,italic as $P1,log as SG,outro as UP1}from"@stacksjs/cli";import{Action as KP1}from"@stacksjs/enums";import{ExitCode as BP1}from"@stacksjs/types";var PG={release:"Release a new version of your libraries/packages",project:"Target a specific project",dryRun:"Run the release without actually releasing",verbose:"Enable verbose output"};function zm1(J){J.command("release",PG.release).option("--dry-run",PG.dryRun,{default:!1}).option("-p, --project [project]",PG.project,{default:!1}).option("--verbose",PG.verbose,{default:!1}).action(async(G)=>{if(SG.debug("Running `buddy release` ...",G),G.dryRun)SG.warn("Dry run enabled. No changes will be made or committed.");let X=await WP1("buddy release"),H=await zP1(KP1.Release,G);if(H.isErr())SG.error("Failed to release",H.error),sq.exit(BP1.FatalError);await UP1("Triggered CI/CD Release via GitHub Actions",{startTime:X,useSeconds:!0}),SG.info(`Follow along: ${$P1("https://github.com/stacksjs/stacks/actions")}`)}),J.on("release:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),sq.exit(1)})}import jH from"process";import{runAction as RP1}from"@stacksjs/actions";import{intro as MP1,outro as pq}from"@stacksjs/cli";import{Action as qP1}from"@stacksjs/enums";import{ExitCode as FP1}from"@stacksjs/types";function Mm1(J){let G={route:"Lists your routes",verbose:"Enable verbose output"};J.command("route:list",G.route).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{let H=await MP1("buddy route:list"),Z=await RP1(qP1.RouteList,X);if(Z.isErr())await pq("While running the migrate command, there was an issue",{startTime:H,useSeconds:!0},Z.error),jH.exit();await pq("Successfully listed routes"),jH.exit(FP1.Success)}),J.on("route:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),jH.exit(1)})}import wG from"process";import{runAction as jP1}from"@stacksjs/actions";import{intro as fP1,log as DP1,outro as nq}from"@stacksjs/cli";import{Action as AP1}from"@stacksjs/enums";import{ExitCode as oq}from"@stacksjs/types";function Im1(J){let G={seed:"Seed your database",project:"Target a specific project",verbose:"Enable verbose output"};J.command("seed",G.seed).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{DP1.debug("Running `buddy seed` ...",X);let H=await fP1("buddy seed"),Z=await jP1(AP1.Seed,X);if(Z.isErr())await nq("While running the seed command, there was an issue",{startTime:H,useSeconds:!0},Z.error),wG.exit(oq.FatalError);let V=wG.env.APP_ENV||"local";await nq(`Seeded your ${V} database.`,{startTime:H,useSeconds:!0}),wG.exit(oq.Success)}),J.on("seed:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),wG.exit(1)})}import M5 from"process";import{runAction as IP1}from"@stacksjs/actions";import{log as b2,runCommand as H9}from"@stacksjs/cli";import{Action as CP1}from"@stacksjs/enums";import{handleError as Z6}from"@stacksjs/error-handling";import{path as Z9}from"@stacksjs/path";import{storage as SP1}from"@stacksjs/storage";import{ExitCode as q5}from"@stacksjs/types";function Om1(J){let G={setup:"This command ensures your project is setup correctly",ohMyZsh:"Enable Oh My Zsh",aws:"Ensures AWS is connected to the project",project:"Target a specific project",verbose:"Enable verbose output"};J.command("setup",G.setup).alias("ensure").option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{if(b2.debug("Running `buddy setup` ...",X),!await PP1())await wP1();await TP1(),await LP1(X)}),J.command("setup:oh-my-zsh",G.ohMyZsh).alias("upgrade:oh-my-zsh").option("--verbose",G.verbose,{default:!1}).action(async(X)=>{b2.debug("Running `buddy setup:oh-my-zsh` ...",X);let H=await IP1(CP1.UpgradeShell);if(H.isErr())b2.error(H.error),M5.exit(q5.FatalError)}),J.on("setup:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),M5.exit(q5.FatalError)})}async function PP1(){if((await H9("pkgx --version",{silent:!0})).isOk())return!0;return!1}async function wP1(){let J=await H9(Z9.frameworkPath("scripts/pkgx-install"));if(J.isOk())return;Z6(J.error),M5.exit(q5.FatalError)}async function LP1(J){b2.info("Installing dependencies...");let G=await H9("bun install",{cwd:J.cwd||Z9.projectPath()});if(G.isErr())Z6(G.error),M5.exit(q5.FatalError);b2.success("Installed node_modules"),NP1(J);let X=await H9("buddy key:generate",{cwd:J.cwd||Z9.projectPath()});if(X.isErr())Z6(X.error),M5.exit(q5.FatalError);b2.info("Ensuring AWS is connected...");let H=await H9("buddy configure:aws",{cwd:J.cwd||Z9.projectPath()});if(H.isErr())Z6(H.error),M5.exit(q5.FatalError);b2.success("Configured AWS"),b2.success("Project is setup"),b2.info("Happy coding! \uD83D\uDC99")}async function TP1(){return new Promise((J)=>setTimeout(J,300))}async function NP1(J){if(b2.info("Ensuring .env exists..."),SP1.doesNotExist(Z9.projectPath(".env"))){let G=await H9("cp .env.example .env",{cwd:J.cwd||Z9.projectPath()});if(G.isErr())Z6(G.error),M5.exit(q5.FatalError);b2.success(".env created")}else b2.success(".env existed")}import D0 from"process";import{runAction as g0}from"@stacksjs/actions";import{intro as V6,log as eq,outro as P2}from"@stacksjs/cli";import{Action as b0}from"@stacksjs/enums";import{projectPath as h0}from"@stacksjs/path";function mm1(J){let G={command:"Runs your test suite",types:"Typechecks your codebase",coverage:"Generates a test coverage report",ui:"Runs your test suite in the browser",unit:"Runs your unit tests",feature:"Runs your feature tests",showReport:"Show the test report",project:"Target a specific project",verbose:"Enable verbose output"};J.command("test",G.command).option("-f, --feature",G.feature,{default:!1}).option("-u, --unit",G.unit,{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!0}).action(async(X)=>{let H=await V6("buddy test");if(X.feature&&X.unit){let Z=await g0(b0.Test,{...X,cwd:h0()});if(Z.isErr())await P2("While running `buddy test`, there was an issue",{startTime:H,useSeconds:!0},Z.error),D0.exit()}if(X.feature&&!X.unit){eq.info("Running Feature tests...");let Z=await g0(b0.TestFeature,{...X,cwd:h0()});if(Z.isErr())await P2("While running `buddy test`, there was an issue",{startTime:H,useSeconds:!0},Z.error),D0.exit()}if(!X.feature&&X.unit){eq.info("Running Unit tests...");let Z=await g0(b0.TestUnit,{...X,cwd:h0()});if(Z.isErr())await P2("While running `buddy test`, there was an issue",{startTime:H,useSeconds:!0},Z.error),D0.exit()}if(!X.feature&&!X.unit){let Z=await g0(b0.Test,{...X,cwd:h0()});if(Z.isErr())await P2("While running `buddy test`, there was an issue",{startTime:H,useSeconds:!0},Z.error),D0.exit()}await P2("Finished running tests",{startTime:H,useSeconds:!0})}),J.command("test:unit",G.unit).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{let H=await V6("buddy test:unit"),Z=await g0(b0.TestUnit,{...X,verbose:!0,cwd:h0()});if(Z.isErr())await P2("While running `buddy test:unit`, there was an issue",{startTime:H,useSeconds:!0},Z.error),D0.exit();await P2("Finished running unit tests",{startTime:H,useSeconds:!0})}),J.command("test:feature",G.feature).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{let H=await V6("buddy test:feature"),Z=await g0(b0.TestFeature,{...X,verbose:!0,cwd:h0()});if(Z.isErr())await P2("While running `buddy test:feature`, there was an issue",{startTime:H,useSeconds:!0},Z.error),D0.exit();await P2("Finished running feature tests",{startTime:H,useSeconds:!0})}),J.command("test:ui",G.command).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{let H=await V6("buddy test:ui"),Z=await g0(b0.TestUi,{...X,verbose:!0,cwd:h0()});if(Z.isErr())await P2("While running `buddy test:ui`, there was an issue",{startTime:H,useSeconds:!0},Z.error),D0.exit();await P2("Finished running tests in the browser",{startTime:H,useSeconds:!0})}),J.command("test:types",G.types).alias("typecheck").option("--verbose",G.verbose,{default:!1}).action(async(X)=>{let H=await V6("buddy test:types"),Z=await g0(b0.Typecheck,{...X,verbose:!0,cwd:h0()});if(Z.isErr())await P2("While running `buddy test:types`, there was an issue",{startTime:H,useSeconds:!0},Z.error),D0.exit();await P2("Finished running typecheck",{startTime:H,useSeconds:!0})}),J.on("test:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),D0.exit(1)})}import fH from"process";import{intro as kP1,log as EP1,outro as tq,runCommand as OP1}from"@stacksjs/cli";import{ExitCode as vP1}from"@stacksjs/types";function am1(J){let G={tinker:"Tinker with your code",project:"Target a specific project",verbose:"Enable verbose output"};J.command("tinker",G.tinker).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{EP1.debug("Running `buddy tinker` ...",X);let H=await kP1("buddy tinker"),Z=await OP1("bun repl",{stdin:"inherit"});if(Z.isErr())await tq("While running the tinker command, there was an issue",{startTime:H,useSeconds:!0},Z.error||void 0),fH.exit();await tq("Tinker mode exited.",{startTime:H,useSeconds:!0}),fH.exit(vP1.Success)}),J.on("tinker:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),fH.exit(1)})}import _P1 from"process";import{generateTypes as gP1}from"@stacksjs/actions";import{log as bP1}from"@stacksjs/logging";function pm1(J){let G={generate:"Generate the types of & for your library/libraries",fix:"wip",project:"Target a specific project",verbose:"Enable verbose output"};J.command("types:generate",G.generate).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{bP1.debug("Running `buddy types:generate` ...",X),await gP1()}),J.command("types:fix",G.fix).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async()=>{}),J.on("types:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),_P1.exit(1)})}import w2 from"process";import{runAction as F5}from"@stacksjs/actions";import{intro as LG,log as y0,outro as Q6,prompts as hP1}from"@stacksjs/cli";import{Action as j5}from"@stacksjs/enums";import{ExitCode as TG}from"@stacksjs/types";import{isString as yP1}from"@stacksjs/validation";function Hx1(J){let G={command:"Upgrade dependencies, framework, package manager, JS/TS runtime",framework:"Upgrade the Stacks framework",dependencies:"Upgrade your dependencies (pkgx.yaml & package.json)",bun:"Upgrade Bun to the latest version",shell:"Upgrade the to the latest shell integration (currently only supports Oh My Zsh)",binary:"Upgrade the `stacks` binary to the latest version. Please note, the binary is moved to the `~/.stacks/bin` directory",all:"Upgrade Node, package manager, project dependencies, and framework",force:"Overwrite possible local updates with remote framework updates",select:"What are you trying to upgrade?",project:"Target a specific project",verbose:"Enable verbose output"};J.command("upgrade",G.command).option("-d, --dependencies",G.dependencies,{default:!1}).option("-b, --bun",G.bun,{default:!1}).option("-a, --all",G.all,{default:!1}).option("-f, --force",G.force,{default:!1}).option("--framework",G.framework,{default:!1}).option("-p, --project [project]",G.project,{default:!1}).option("-s, --shell",G.shell,{default:!1}).option("-b, --binary",G.binary,{default:!1}).option("--verbose",G.verbose,{default:!1}).alias("update").example("buddy upgrade -a --verbose").action(async(X)=>{y0.debug("Running `buddy upgrade` ...",X);let H=await LG("buddy upgrade");if(mP1(X)){let Q=(await hP1({type:"multiselect",name:"value",message:G.select,choices:[{value:"dependencies",title:"Dependencies"},{value:"framework",title:"Framework"},{value:"bun",title:"Bun"},{value:"shell",title:"Shell"},{value:"binary",title:"Binary"}]})).value;if(Q!==null)w2.exit(TG.InvalidArgument);if(yP1(Q))Q=[Q];X=Q.reduce((Y,z)=>{return Y[z]=!0,Y},{})}let Z=await F5(j5.Upgrade,X);if(Z.isErr())await Q6("While running the buddy:upgrade command, there was an issue",{startTime:H,useSeconds:!0},Z.error),w2.exit();await Q6("Upgrade complete.",{startTime:H,useSeconds:!0}),w2.exit()}),J.command("upgrade:framework",G.framework).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).example("buddy upgrade:framework --verbose").action(async(X)=>{y0.debug("Running `buddy upgrade:framework` ...",X),await F5(j5.Upgrade,X)}),J.command("upgrade:dependencies",G.dependencies).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).alias("upgrade:deps").example("buddy upgrade:dependencies --verbose").action(async(X)=>{y0.debug("Running `buddy upgrade:dependencies` ...",X),await F5(j5.Upgrade,X)}),J.command("upgrade:bun",G.bun).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{y0.debug("Running `buddy upgrade:bun` ...",X);let H=await LG("buddy upgrade:bun"),Z=await F5(j5.UpgradeBun,X);if(Z.isErr())await Q6("While running the buddy upgrade:bun command, there was an issue",{startTime:H,useSeconds:!0},Z.error),w2.exit();w2.exit(TG.Success)}),J.command("upgrade:all",G.all).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{y0.debug("Running `buddy upgrade:all` ...",X),await F5(j5.Upgrade,X)}),J.command("upgrade:shell",G.shell).option("--verbose",G.verbose,{default:!1}).example("buddy upgrade:shell").action(async(X)=>{y0.debug("Running `buddy upgrade:shell` ...",X);let H=await LG("buddy upgrade:shell"),Z=await F5(j5.UpgradeShell,X);if(Z.isErr())await Q6("While running the buddy upgrade:shell command, there was an issue",{startTime:H,useSeconds:!0},Z.error),w2.exit();w2.exit(TG.Success)}),J.command("upgrade:binary",G.binary).option("--verbose",G.verbose,{default:!1}).example("buddy upgrade:binary").action(async(X)=>{if(w2.getuid&&w2.getuid()!==0)y0.warn("To upgrade the binary, you need to run this command with sudo, or as root."),w2.exit(0);y0.debug("Running `buddy upgrade:binary` ...",X);let H=await LG("buddy upgrade:binary"),Z=await F5(j5.UpgradeBinary,X);if(Z.isErr())await Q6("While running the buddy upgrade:binary command, there was an issue",{startTime:H,useSeconds:!0},Z.error),w2.exit();w2.exit(TG.Success)}),J.on("upgrade:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),w2.exit(1)})}function mP1(J){return!J.framework&&!J.dependencies&&!J.bun&&!J.shell&&!J.binary&&!J.all}import xP1 from"process";import{bold as JF,dim as GF,green as XF,intro as lP1,log as DH}from"@stacksjs/cli";import{storage as cP1}from"@stacksjs/storage";function zx1(J){let G={version:"Retrieving Stacks build version"};J.command("version",G.version).action(async()=>{DH.debug("Running `buddy version` ..."),await lP1("buddy version");let X=await cP1.readPackageJson("./package.json"),H="wip",Z=X.version;DH.info(XF(JF("@stacksjs/ "))+GF(` ${Z}`)),DH.info(XF(JF("Bun: "))+GF(` ${H}`))}),J.on("version:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),xP1.exit(1)})}export{sP1 as a,Jw1 as b,Yw1 as c,sL1 as d,tL1 as e,VT1 as f,MT1 as g,wT1 as h,_T1 as i,MA as j,xT1 as k,pT1 as l,XN1 as m,bh1 as n,ch1 as o,dh1 as p,th1 as q,Vy1 as r,Uy1 as s,Dy1 as t,Ly1 as u,vy1 as v,ry1 as w,py1 as x,Gm1 as y,zm1 as z,Mm1 as A,Im1 as B,Om1 as C,TP1 as D,NP1 as E,mm1 as F,am1 as G,pm1 as H,Hx1 as I,zx1 as J};
|