@stacksjs/buddy 0.68.2 → 0.69.2
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/README.md +1 -1
- package/dist/chunk-0ara6h0a.js +2 -0
- package/dist/chunk-0pxb6cz2.js +3 -0
- package/dist/chunk-1v5v7cn7.js +2 -0
- package/dist/chunk-3v3zq8w4.js +2 -0
- package/dist/{chunk-jr4naxsv.js → chunk-3yp4xe8e.js} +1 -1
- package/dist/{chunk-3wpw5xgd.js → chunk-5d1pmfaj.js} +1 -1
- package/dist/chunk-7dhp3rzj.js +61 -0
- package/dist/chunk-8y9rns0z.js +2 -0
- package/dist/chunk-c0awzy8k.js +10 -0
- package/dist/chunk-c6ermrr1.js +3 -0
- package/dist/{chunk-8gx9at51.js → chunk-cdnqz7bt.js} +1 -1
- package/dist/{chunk-27ksm11g.js → chunk-f0ywgmn1.js} +2 -2
- package/dist/chunk-fzqy272g.js +2 -0
- package/dist/chunk-hmvbpz4z.js +25 -0
- package/dist/chunk-kqn7aa4r.js +5442 -0
- package/dist/chunk-n337bav6.js +5 -0
- package/dist/chunk-rez6aknn.js +29 -0
- package/dist/chunk-rvzykrtp.js +10 -0
- package/dist/{chunk-b3wr7cpk.js → chunk-tnqbven5.js} +2 -2
- package/dist/{chunk-25nxsybw.js → chunk-vs0pve8j.js} +2 -2
- package/dist/{chunk-hgrs6wcy.js → chunk-x4zbf5c8.js} +1 -1
- package/dist/{chunk-z1h35hsa.js → chunk-xqcyxfy4.js} +2 -1
- package/dist/{chunk-0q0jn0kk.js → chunk-yajm5bx9.js} +1 -1
- package/dist/chunk-ybkvyfqx.js +2 -0
- package/dist/{chunk-f0ksrase.js → chunk-zmz07e1t.js} +2 -2
- package/dist/chunk-zxexe5eh.js +2 -0
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/ports.d.ts +0 -1
- package/dist/queue.d.ts +3 -0
- package/dist/schedule.d.ts +3 -0
- package/dist/search.d.ts +3 -0
- package/package.json +54 -55
- package/dist/chunk-06g79v9j.js +0 -2
- package/dist/chunk-08bm2xax.js +0 -2
- package/dist/chunk-0enrsn65.js +0 -978
- package/dist/chunk-0m218zhk.js +0 -2
- package/dist/chunk-0qvaepnz.js +0 -2
- package/dist/chunk-0yyhz107.js +0 -2
- package/dist/chunk-11vhe2za.js +0 -2
- package/dist/chunk-13143jmy.js +0 -3
- package/dist/chunk-1agj4qty.js +0 -2
- package/dist/chunk-1c4yywmn.js +0 -9
- package/dist/chunk-1e2f0z80.js +0 -2
- package/dist/chunk-1v13dkfw.js +0 -2
- package/dist/chunk-20e0mpcw.js +0 -9
- package/dist/chunk-2mhj5ght.js +0 -2
- package/dist/chunk-2wrs9p57.js +0 -1
- package/dist/chunk-2yj4j69j.js +0 -2
- package/dist/chunk-2ymn50ck.js +0 -2
- package/dist/chunk-3vjfkr7v.js +0 -978
- package/dist/chunk-3y0gapf6.js +0 -2
- package/dist/chunk-4rb5r88h.js +0 -978
- package/dist/chunk-4wb68jfr.js +0 -2
- package/dist/chunk-5ewcj9vd.js +0 -2
- package/dist/chunk-5fm9mfqs.js +0 -2
- package/dist/chunk-5jhkn5by.js +0 -2
- package/dist/chunk-5m9xts4v.js +0 -2
- package/dist/chunk-63pxna7y.js +0 -978
- package/dist/chunk-6sqy7049.js +0 -2
- package/dist/chunk-6yazdvb4.js +0 -2
- package/dist/chunk-746p83dw.js +0 -2
- package/dist/chunk-76g7tr80.js +0 -2
- package/dist/chunk-7fz1p8p3.js +0 -10
- package/dist/chunk-814adsn3.js +0 -2
- package/dist/chunk-831wk0b3.js +0 -2
- package/dist/chunk-833tanrb.js +0 -2
- package/dist/chunk-8cx90pvv.js +0 -2
- package/dist/chunk-8yky4bsd.js +0 -10
- package/dist/chunk-91pnyybg.js +0 -9
- package/dist/chunk-99syj1p0.js +0 -2
- package/dist/chunk-9bxh78vd.js +0 -5
- package/dist/chunk-9jaqey2q.js +0 -2
- package/dist/chunk-9tyaew40.js +0 -2
- package/dist/chunk-9zcyq5gh.js +0 -2
- package/dist/chunk-a4g1e1n0.js +0 -2
- package/dist/chunk-a6g2jk1y.js +0 -2
- package/dist/chunk-aaqd43t5.js +0 -2
- package/dist/chunk-adswb3gq.js +0 -2
- package/dist/chunk-akkmfscs.js +0 -978
- package/dist/chunk-atnw2cq3.js +0 -2
- package/dist/chunk-avdharmq.js +0 -2
- package/dist/chunk-b13gbfg3.js +0 -2
- package/dist/chunk-bngyck4v.js +0 -2
- package/dist/chunk-brb5zthb.js +0 -1
- package/dist/chunk-bx2vf8g7.js +0 -5
- package/dist/chunk-c343n0yt.js +0 -2
- package/dist/chunk-c4msw6hf.js +0 -2
- package/dist/chunk-cdwpqzrw.js +0 -2
- package/dist/chunk-cm7bwdk9.js +0 -2
- package/dist/chunk-cs5k02gt.js +0 -1
- package/dist/chunk-cv8f2v27.js +0 -2
- package/dist/chunk-d2dbhn2h.js +0 -2
- package/dist/chunk-d3awsfqm.js +0 -9
- package/dist/chunk-d9q17hb8.js +0 -2
- package/dist/chunk-dw62d69f.js +0 -2
- package/dist/chunk-e8p8v7ca.js +0 -978
- package/dist/chunk-ehhrhkwe.js +0 -9
- package/dist/chunk-enhf12a1.js +0 -2
- package/dist/chunk-f2d9w3nr.js +0 -2
- package/dist/chunk-f3y73e4b.js +0 -6
- package/dist/chunk-fe3xb8z9.js +0 -2
- package/dist/chunk-fg5gh4dn.js +0 -2
- package/dist/chunk-fh4rw8kr.js +0 -5
- package/dist/chunk-fxsv4p5c.js +0 -8
- package/dist/chunk-gezc36zy.js +0 -2
- package/dist/chunk-gg80s18j.js +0 -2
- package/dist/chunk-gjefq0nq.js +0 -2
- package/dist/chunk-h5saw32v.js +0 -2
- package/dist/chunk-ha75r57f.js +0 -8
- package/dist/chunk-hrsat16n.js +0 -8
- package/dist/chunk-hxy5t7tm.js +0 -10
- package/dist/chunk-hzfqtj82.js +0 -2
- package/dist/chunk-j2n86dsz.js +0 -2
- package/dist/chunk-jbpgmjzs.js +0 -2
- package/dist/chunk-jg68fsnk.js +0 -10
- package/dist/chunk-jhvjhf1j.js +0 -2
- package/dist/chunk-jms0s1vh.js +0 -6
- package/dist/chunk-js6y6fm1.js +0 -2
- package/dist/chunk-jtax0mpm.js +0 -2
- package/dist/chunk-k59kbbvm.js +0 -2
- package/dist/chunk-kanz993c.js +0 -2
- package/dist/chunk-kg9abatp.js +0 -2
- package/dist/chunk-kvghsjg7.js +0 -5
- package/dist/chunk-ky8p46ae.js +0 -5
- package/dist/chunk-kzm498bh.js +0 -2
- package/dist/chunk-m4gwjnfh.js +0 -6
- package/dist/chunk-m6regb6b.js +0 -2
- package/dist/chunk-mevackhg.js +0 -9
- package/dist/chunk-msv6dcc2.js +0 -2
- package/dist/chunk-mxdajhb4.js +0 -10
- package/dist/chunk-mxzjn2gs.js +0 -978
- package/dist/chunk-n1bqkqk7.js +0 -10
- package/dist/chunk-n2c2dcxa.js +0 -2
- package/dist/chunk-njtyervf.js +0 -1
- package/dist/chunk-nx1598yr.js +0 -2
- package/dist/chunk-p18kqenr.js +0 -1
- package/dist/chunk-p23aswbf.js +0 -2
- package/dist/chunk-p55ntqj0.js +0 -2
- package/dist/chunk-p5va3trj.js +0 -2
- package/dist/chunk-p88bsqtc.js +0 -10
- package/dist/chunk-p9z7f8c8.js +0 -2
- package/dist/chunk-ppkzf21q.js +0 -8
- package/dist/chunk-prqq5zw2.js +0 -2
- package/dist/chunk-pv6hp18q.js +0 -10
- package/dist/chunk-q9ycfthp.js +0 -2
- package/dist/chunk-qhcx6dmf.js +0 -2
- package/dist/chunk-qma4ysd8.js +0 -9
- package/dist/chunk-qpdxnnf8.js +0 -10
- package/dist/chunk-qq851psj.js +0 -6
- package/dist/chunk-qqp394c2.js +0 -2
- package/dist/chunk-qzxab3cn.js +0 -2
- package/dist/chunk-r6rhrt1p.js +0 -2
- package/dist/chunk-ra5sfgg4.js +0 -2
- package/dist/chunk-rfd43z7p.js +0 -5
- package/dist/chunk-rtfeef82.js +0 -2
- package/dist/chunk-ryjbc6dz.js +0 -5
- package/dist/chunk-s2n3hw0a.js +0 -2
- package/dist/chunk-scc3z70n.js +0 -2
- package/dist/chunk-sk3x55wm.js +0 -2
- package/dist/chunk-sm7vvfqf.js +0 -2
- package/dist/chunk-sqbdav33.js +0 -2
- package/dist/chunk-sy4d4hnx.js +0 -2
- package/dist/chunk-t0b356bb.js +0 -978
- package/dist/chunk-t9wdnzz4.js +0 -6
- package/dist/chunk-v25g7h01.js +0 -2
- package/dist/chunk-v7zy7xda.js +0 -1
- package/dist/chunk-v9kknk69.js +0 -2
- package/dist/chunk-vg4vfkzk.js +0 -6
- package/dist/chunk-vgcre8jy.js +0 -2
- package/dist/chunk-vqyngnj0.js +0 -9
- package/dist/chunk-w17d2rbd.js +0 -6
- package/dist/chunk-x22v9kvb.js +0 -2
- package/dist/chunk-xacjs4ar.js +0 -6
- package/dist/chunk-xmdbxa8w.js +0 -1
- package/dist/chunk-xy6hjazn.js +0 -978
- package/dist/chunk-y0m35t3m.js +0 -2
- package/dist/chunk-y1tre8v8.js +0 -8
- package/dist/chunk-y50mc7dt.js +0 -2
- package/dist/chunk-y5vqt054.js +0 -5
- package/dist/chunk-y93ke5m6.js +0 -2
- package/dist/chunk-yktee4wv.js +0 -1
- package/dist/chunk-yvmyw2r2.js +0 -2
- package/dist/chunk-z6xydw90.js +0 -2
- package/dist/chunk-zak32nab.js +0 -2
- package/dist/chunk-zanq4wm3.js +0 -9
- package/dist/stacks +0 -0
package/dist/chunk-3vjfkr7v.js
DELETED
|
@@ -1,978 +0,0 @@
|
|
|
1
|
-
import{L as wZ}from"./chunk-d3awsfqm.js";import{$ as kH,M as yZ,N as mZ,O as xZ,P as lZ,Q as cZ,R as rZ,S as oH,T as eH,U as tH,V as JZ,W as Y8,X as aZ,Y as $Z,Z as UZ,_ as NH,aa as KZ,ba as BZ,ca as iZ,da as uZ,ea as $V,fa as UV,ga as dZ,ha as RZ,ia as MZ,ja as sZ,ka as qZ,la as nZ,ma as AZ,na as IZ,oa as ZZ,pa as VZ,qa as CZ,ra as SZ,sa as QZ,ta as YZ,ua as PZ,va as gZ,wa as bZ}from"./chunk-pv6hp18q.js";import{xa as i0,ya as XZ}from"./chunk-b3wr7cpk.js";import{Aa as OZ,Ka as pZ,La as KV,Qa as JV,Ra as GV,Sa as L,Ta as XV,Va as HV,Wa as tZ,Xa as N,Ya as ZV,Za as FZ,_a as jZ,ab as vZ,bb as _Z,cb as VV,eb as HZ,fb as T,ib as fZ,jb as DZ,za as EZ}from"./chunk-9bxh78vd.js";import{Db as u2,Eb as BU1,Fb as S,Gb as VU1,Hb as QU1}from"./chunk-yvmyw2r2.js";var TV=S((GJ,LV)=>{(function(J,G){typeof GJ==="object"&&typeof LV!=="undefined"?G(GJ):typeof define==="function"&&define.amd?define(["exports"],G):(J=typeof globalThis!=="undefined"?globalThis:J||self,G(J.setArray={}))})(GJ,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 A=K[f];K[f-1]=A,q[A]--}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 eG=S((XJ,NV)=>{(function(J,G){typeof XJ==="object"&&typeof NV!=="undefined"?G(XJ):typeof define==="function"&&define.amd?define(["exports"],G):(J=typeof globalThis!=="undefined"?globalThis:J||self,G(J.sourcemapCodec={}))})(XJ,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 i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(a);Z[a]=i,V[i]=a}function Q(a,i){let _=0,s=0,B1=0;do{let g=a.next();B1=V[g],_|=(B1&31)<<s,s+=5}while(B1&32);let f1=_&1;if(_>>>=1,f1)_=-2147483648|-_;return i+_}function Y(a,i,_){let s=i-_;s=s<0?-s<<1|1:s<<1;do{let B1=s&31;if(s>>>=5,s>0)B1|=32;a.write(Z[B1])}while(s>0);return i}function z(a,i){if(a.pos>=i)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 i="";for(let _=0;_<a.length;_++)i+=String.fromCharCode(a[_]);return i}};class q{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(W)}write(a){let{buffer:i}=this;if(i[this.pos++]=a,this.pos===W)this.out+=K.decode(i),this.pos=0}flush(){let{buffer:a,out:i,pos:_}=this;return _>0?i+K.decode(a.subarray(0,_)):i}}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:i,pos:_}=this,s=i.indexOf(a,_);return s===-1?i.length:s}}let A=[];function C(a){let{length:i}=a,_=new f(a),s=[],B1=[],f1=0;for(;_.pos<i;_.pos++){f1=Q(_,f1);let g=Q(_,0);if(!z(_,i)){let H1=B1.pop();H1[2]=f1,H1[3]=g;continue}let y=Q(_,0),G1=Q(_,0)&1?[f1,g,0,0,y,Q(_,0)]:[f1,g,0,0,y],z1=A;if(z(_,i)){z1=[];do{let H1=Q(_,0);z1.push(H1)}while(z(_,i))}G1.vars=z1,s.push(G1),B1.push(G1)}return s}function l(a){let i=new q;for(let _=0;_<a.length;)_=O(a,_,i,[0]);return i.flush()}function O(a,i,_,s){let B1=a[i],{0:f1,1:g,2:y,3:p,4:n,vars:G1}=B1;if(i>0)_.write(G);s[0]=Y(_,f1,s[0]),Y(_,g,0),Y(_,n,0);let z1=B1.length===6?1:0;if(Y(_,z1,0),B1.length===6)Y(_,B1[5],0);for(let H1 of G1)Y(_,H1,0);for(i++;i<a.length;){let H1=a[i],{0:W1,1:R1}=H1;if(W1>y||W1===y&&R1>=p)break;i=O(a,i,_,s)}return _.write(G),s[0]=Y(_,y,s[0]),Y(_,p,0),i}function v(a){let{length:i}=a,_=new f(a),s=[],B1=[],f1=0,g=0,y=0,p=0,n=0,G1=0,z1=0,H1=0;do{let W1=_.indexOf(";"),R1=0;for(;_.pos<W1;_.pos++){if(R1=Q(_,R1),!z(_,W1)){let X2=B1.pop();X2[2]=f1,X2[3]=R1;continue}let m1=Q(_,0),V2=m1&1,Q2=m1&2,F2=m1&4,T2=null,m2=A,Y2;if(V2){let X2=Q(_,g);y=Q(_,g===X2?y:0),g=X2,Y2=[f1,R1,0,0,X2,y]}else Y2=[f1,R1,0,0];if(Y2.isScope=!!F2,Q2){let X2=p,H0=n;p=Q(_,p);let l0=X2===p;n=Q(_,l0?n:0),G1=Q(_,l0&&H0===n?G1:0),T2=[p,n,G1]}if(Y2.callsite=T2,z(_,W1)){m2=[];do{z1=f1,H1=R1;let X2=Q(_,0),H0;if(X2<-1){H0=[[Q(_,0)]];for(let l0=-1;l0>X2;l0--){let LG=z1;z1=Q(_,z1),H1=Q(_,z1===LG?H1:0);let V9=Q(_,0);H0.push([V9,z1,H1])}}else H0=[[X2]];m2.push(H0)}while(z(_,W1))}Y2.bindings=m2,s.push(Y2),B1.push(Y2)}f1++,_.pos=W1+1}while(_.pos<i);return s}function h(a){if(a.length===0)return"";let i=new q;for(let _=0;_<a.length;)_=U1(a,_,i,[0,0,0,0,0,0,0]);return i.flush()}function U1(a,i,_,s){let B1=a[i],{0:f1,1:g,2:y,3:p,isScope:n,callsite:G1,bindings:z1}=B1;if(s[0]<f1)e(_,s[0],f1),s[0]=f1,s[1]=0;else if(i>0)_.write(G);s[1]=Y(_,B1[1],s[1]);let H1=(B1.length===6?1:0)|(G1?2:0)|(n?4:0);if(Y(_,H1,0),B1.length===6){let{4:W1,5:R1}=B1;if(W1!==s[2])s[3]=0;s[2]=Y(_,W1,s[2]),s[3]=Y(_,R1,s[3])}if(G1){let{0:W1,1:R1,2:m1}=B1.callsite;if(W1!==s[4])s[5]=0,s[6]=0;else if(R1!==s[5])s[6]=0;s[4]=Y(_,W1,s[4]),s[5]=Y(_,R1,s[5]),s[6]=Y(_,m1,s[6])}if(z1)for(let W1 of z1){if(W1.length>1)Y(_,-W1.length,0);let R1=W1[0][0];Y(_,R1,0);let m1=f1,V2=g;for(let Q2=1;Q2<W1.length;Q2++){let F2=W1[Q2];m1=Y(_,F2[1],m1),V2=Y(_,F2[2],V2),Y(_,F2[0],0)}}for(i++;i<a.length;){let W1=a[i],{0:R1,1:m1}=W1;if(R1>y||R1===y&&m1>=p)break;i=U1(a,i,_,s)}if(s[0]<y)e(_,s[0],y),s[0]=y,s[1]=0;else _.write(G);return s[1]=Y(_,p,s[1]),i}function e(a,i,_){do a.write(X);while(++i<_)}function K1(a){let{length:i}=a,_=new f(a),s=[],B1=0,f1=0,g=0,y=0,p=0;do{let n=_.indexOf(";"),G1=[],z1=!0,H1=0;B1=0;while(_.pos<n){let W1;if(B1=Q(_,B1),B1<H1)z1=!1;if(H1=B1,z(_,n))if(f1=Q(_,f1),g=Q(_,g),y=Q(_,y),z(_,n))p=Q(_,p),W1=[B1,f1,g,y,p];else W1=[B1,f1,g,y];else W1=[B1];G1.push(W1),_.pos++}if(!z1)Y1(G1);s.push(G1),_.pos=n+1}while(_.pos<=i);return s}function Y1(a){a.sort(w1)}function w1(a,i){return a[0]-i[0]}function L1(a){let i=new q,_=0,s=0,B1=0,f1=0;for(let g=0;g<a.length;g++){let y=a[g];if(g>0)i.write(X);if(y.length===0)continue;let p=0;for(let n=0;n<y.length;n++){let G1=y[n];if(n>0)i.write(G);if(p=Y(i,G1[0],p),G1.length===1)continue;if(_=Y(i,G1[1],_),s=Y(i,G1[2],s),B1=Y(i,G1[3],B1),G1.length===4)continue;f1=Y(i,G1[4],f1)}}return i.flush()}J.decode=K1,J.decodeGeneratedRanges=v,J.decodeOriginalScopes=C,J.encode=L1,J.encodeGeneratedRanges=h,J.encodeOriginalScopes=l,Object.defineProperty(J,"__esModule",{value:!0})})});var kV=S((tG,J7)=>{(function(J,G){typeof tG==="object"&&typeof J7!=="undefined"?J7.exports=G():typeof define==="function"&&define.amd?define(G):(J=typeof globalThis!=="undefined"?globalThis:J||self,J.resolveURI=G())})(tG,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),h=v[2];return K("file:","",v[1]||"","",V(h)?h:"/"+h,v[3]||"",v[4]||"")}function K(O,v,h,U1,e,K1,Y1){return{scheme:O,user:v,host:h,port:U1,path:e,query:K1,hash:Y1,type:7}}function q(O){if(Z(O)){let h=z("http:"+O);return h.scheme="",h.type=6,h}if(V(O)){let h=z("http://foo.com"+O);return h.scheme="",h.host="",h.type=5,h}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 A(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 h=v<=4,U1=O.path.split("/"),e=1,K1=0,Y1=!1;for(let L1=1;L1<U1.length;L1++){let a=U1[L1];if(!a){Y1=!0;continue}if(Y1=!1,a===".")continue;if(a===".."){if(K1)Y1=!0,K1--,e--;else if(h)U1[e++]=a;continue}U1[e++]=a,K1++}let w1="";for(let L1=1;L1<e;L1++)w1+="/"+U1[L1];if(!w1||Y1&&!w1.endsWith("/.."))w1+="/";O.path=w1}function l(O,v){if(!O&&!v)return"";let h=q(O),U1=h.type;if(v&&U1!==7){let K1=q(v),Y1=K1.type;switch(U1){case 1:h.hash=K1.hash;case 2:h.query=K1.query;case 3:case 4:A(h,K1);case 5:h.user=K1.user,h.host=K1.host,h.port=K1.port;case 6:h.scheme=K1.scheme}if(Y1>U1)U1=Y1}C(h,U1);let e=h.query+h.hash;switch(U1){case 2:case 3:return e;case 4:{let K1=h.path.slice(1);if(!K1)return e||".";if(Y(v||O)&&!Y(K1))return"./"+K1+e;return K1+e}case 5:return h.path+e;default:return h.scheme+"//"+h.user+h.host+h.port+h.path+e}}return l})});var G7=S((HJ,EV)=>{(function(J,G){typeof HJ==="object"&&typeof EV!=="undefined"?G(HJ,eG(),kV()):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))})(HJ,function(J,G,X){function H(E,m){if(m&&!m.endsWith("/"))m+="/";return X(E,m)}function Z(E){if(!E)return"";let m=E.lastIndexOf("/");return E.slice(0,m+1)}let V=0,Q=1,Y=2,z=3,W=4,K=1,q=2;function f(E,m){let x=A(E,0);if(x===E.length)return E;if(!m)E=E.slice();for(let d=x;d<E.length;d=A(E,d+1))E[d]=l(E[d],m);return E}function A(E,m){for(let x=m;x<E.length;x++)if(!C(E[x]))return x;return E.length}function C(E){for(let m=1;m<E.length;m++)if(E[m][V]<E[m-1][V])return!1;return!0}function l(E,m){if(!m)E=E.slice();return E.sort(O)}function O(E,m){return E[V]-m[V]}let v=!1;function h(E,m,x,d){while(x<=d){let M1=x+(d-x>>1),Z1=E[M1][V]-m;if(Z1===0)return v=!0,M1;if(Z1<0)x=M1+1;else d=M1-1}return v=!1,x-1}function U1(E,m,x){for(let d=x+1;d<E.length;x=d++)if(E[d][V]!==m)break;return x}function e(E,m,x){for(let d=x-1;d>=0;x=d--)if(E[d][V]!==m)break;return x}function K1(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function Y1(E,m,x,d){let{lastKey:M1,lastNeedle:Z1,lastIndex:T1}=x,b1=0,D1=E.length-1;if(d===M1){if(m===Z1)return v=T1!==-1&&E[T1][V]===m,T1;if(m>=Z1)b1=T1===-1?0:T1;else D1=T1}return x.lastKey=d,x.lastNeedle=m,x.lastIndex=h(E,m,b1,D1)}function w1(E,m){let x=m.map(a);for(let d=0;d<E.length;d++){let M1=E[d];for(let Z1=0;Z1<M1.length;Z1++){let T1=M1[Z1];if(T1.length===1)continue;let b1=T1[Q],D1=T1[Y],x1=T1[z],j2=x[b1],c1=j2[D1]||(j2[D1]=[]),s1=m[b1],A2=U1(c1,x1,Y1(c1,x1,s1,D1));s1.lastIndex=++A2,L1(c1,A2,[x1,d,T1[V]])}}return x}function L1(E,m,x){for(let d=E.length;d>m;d--)E[d]=E[d-1];E[m]=x}function a(){return{__proto__:null}}let i=function(E,m){let x=_(E);if(!("sections"in x))return new z1(x,m);let d=[],M1=[],Z1=[],T1=[],b1=[];s(x,m,d,M1,Z1,T1,b1,0,0,1/0,1/0);let D1={version:3,file:x.file,names:T1,sources:M1,sourcesContent:Z1,mappings:d,ignoreList:b1};return H0(D1)};function _(E){return typeof E==="string"?JSON.parse(E):E}function s(E,m,x,d,M1,Z1,T1,b1,D1,x1,j2){let{sections:c1}=E;for(let s1=0;s1<c1.length;s1++){let{map:A2,offset:i2}=c1[s1],c0=x1,D5=j2;if(s1+1<c1.length){let A5=c1[s1+1].offset;if(c0=Math.min(x1,b1+A5.line),c0===x1)D5=Math.min(j2,D1+A5.column);else if(c0<x1)D5=D1+A5.column}B1(A2,m,x,d,M1,Z1,T1,b1+i2.line,D1+i2.column,c0,D5)}}function B1(E,m,x,d,M1,Z1,T1,b1,D1,x1,j2){let c1=_(E);if("sections"in c1)return s(...arguments);let s1=new z1(c1,m),A2=d.length,i2=Z1.length,c0=R1(s1),{resolvedSources:D5,sourcesContent:A5,ignoreList:TG}=s1;if(f1(d,D5),f1(Z1,s1.names),A5)f1(M1,A5);else for(let N2=0;N2<D5.length;N2++)M1.push(null);if(TG)for(let N2=0;N2<TG.length;N2++)T1.push(TG[N2]+A2);for(let N2=0;N2<c0.length;N2++){let NG=b1+N2;if(NG>x1)return;let DH=g(x,NG),HF=N2===0?D1:0,AH=c0[N2];for(let kG=0;kG<AH.length;kG++){let r0=AH[kG],V8=HF+r0[V];if(NG===x1&&V8>=j2)return;if(r0.length===1){DH.push([V8]);continue}let IH=A2+r0[Q],CH=r0[Y],SH=r0[z];DH.push(r0.length===4?[V8,IH,CH,SH]:[V8,IH,CH,SH,i2+r0[W]])}}}function f1(E,m){for(let x=0;x<m.length;x++)E.push(m[x])}function g(E,m){for(let x=E.length;x<=m;x++)E[x]=[];return E[m]}let y="`line` must be greater than 0 (lines start at line 1)",p="`column` must be greater than or equal to 0 (columns start at column 0)",n=-1,G1=1;class z1{constructor(E,m){let x=typeof E==="string";if(!x&&E._decodedMemo)return E;let d=x?JSON.parse(E):E,{version:M1,file:Z1,names:T1,sourceRoot:b1,sources:D1,sourcesContent:x1}=d;this.version=M1,this.file=Z1,this.names=T1||[],this.sourceRoot=b1,this.sources=D1,this.sourcesContent=x1,this.ignoreList=d.ignoreList||d.x_google_ignoreList||void 0;let j2=H(b1||"",Z(m));this.resolvedSources=D1.map((s1)=>H(s1||"",j2));let{mappings:c1}=d;if(typeof c1==="string")this._encoded=c1,this._decoded=void 0;else this._encoded=void 0,this._decoded=f(c1,x);this._decodedMemo=K1(),this._bySources=void 0,this._bySourceMemos=void 0}}function H1(E){return E}function W1(E){var m,x;return(m=(x=H1(E))._encoded)!==null&&m!==void 0?m:x._encoded=G.encode(H1(E)._decoded)}function R1(E){var m;return(m=H1(E))._decoded||(m._decoded=G.decode(H1(E)._encoded))}function m1(E,m,x){let d=R1(E);if(m>=d.length)return null;let M1=d[m],Z1=Z8(M1,H1(E)._decodedMemo,m,x,G1);return Z1===-1?null:M1[Z1]}function V2(E,m){let{line:x,column:d,bias:M1}=m;if(x--,x<0)throw new Error(y);if(d<0)throw new Error(p);let Z1=R1(E);if(x>=Z1.length)return H8(null,null,null,null);let T1=Z1[x],b1=Z8(T1,H1(E)._decodedMemo,x,d,M1||G1);if(b1===-1)return H8(null,null,null,null);let D1=T1[b1];if(D1.length===1)return H8(null,null,null,null);let{names:x1,resolvedSources:j2}=E;return H8(j2[D1[Q]],D1[Y]+1,D1[z],D1.length===5?x1[D1[W]]:null)}function Q2(E,m){let{source:x,line:d,column:M1,bias:Z1}=m;return fH(E,x,d,M1,Z1||G1,!1)}function F2(E,m){let{source:x,line:d,column:M1,bias:Z1}=m;return fH(E,x,d,M1,Z1||n,!0)}function T2(E,m){let x=R1(E),{names:d,resolvedSources:M1}=E;for(let Z1=0;Z1<x.length;Z1++){let T1=x[Z1];for(let b1=0;b1<T1.length;b1++){let D1=T1[b1],x1=Z1+1,j2=D1[0],c1=null,s1=null,A2=null,i2=null;if(D1.length!==1)c1=M1[D1[1]],s1=D1[2]+1,A2=D1[3];if(D1.length===5)i2=d[D1[4]];m({generatedLine:x1,generatedColumn:j2,source:c1,originalLine:s1,originalColumn:A2,name:i2})}}}function m2(E,m){let{sources:x,resolvedSources:d}=E,M1=x.indexOf(m);if(M1===-1)M1=d.indexOf(m);return M1}function Y2(E,m){let{sourcesContent:x}=E;if(x==null)return null;let d=m2(E,m);return d===-1?null:x[d]}function X2(E,m){let{ignoreList:x}=E;if(x==null)return!1;let d=m2(E,m);return d===-1?!1:x.includes(d)}function H0(E,m){let x=new z1(V9(E,[]),m);return H1(x)._decoded=E.mappings,x}function l0(E){return V9(E,R1(E))}function LG(E){return V9(E,W1(E))}function V9(E,m){return{version:E.version,file:E.file,names:E.names,sourceRoot:E.sourceRoot,sources:E.sources,sourcesContent:E.sourcesContent,mappings:m,ignoreList:E.ignoreList||E.x_google_ignoreList}}function H8(E,m,x,d){return{source:E,line:m,column:x,name:d}}function Q9(E,m){return{line:E,column:m}}function Z8(E,m,x,d,M1){let Z1=Y1(E,d,m,x);if(v)Z1=(M1===n?U1:e)(E,d,Z1);else if(M1===n)Z1++;if(Z1===-1||Z1===E.length)return-1;return Z1}function XF(E,m,x,d,M1){let Z1=Z8(E,m,x,d,G1);if(!v&&M1===n)Z1++;if(Z1===-1||Z1===E.length)return[];let T1=v?d:E[Z1][V];if(!v)Z1=e(E,T1,Z1);let b1=U1(E,T1,Z1),D1=[];for(;Z1<=b1;Z1++){let x1=E[Z1];D1.push(Q9(x1[K]+1,x1[q]))}return D1}function fH(E,m,x,d,M1,Z1){var T1;if(x--,x<0)throw new Error(y);if(d<0)throw new Error(p);let{sources:b1,resolvedSources:D1}=E,x1=b1.indexOf(m);if(x1===-1)x1=D1.indexOf(m);if(x1===-1)return Z1?[]:Q9(null,null);let c1=((T1=H1(E))._bySources||(T1._bySources=w1(R1(E),H1(E)._bySourceMemos=b1.map(K1))))[x1][x];if(c1==null)return Z1?[]:Q9(null,null);let s1=H1(E)._bySourceMemos[x1];if(Z1)return XF(c1,s1,x,d,M1);let A2=Z8(c1,s1,x,d,M1);if(A2===-1)return Q9(null,null);let i2=c1[A2];return Q9(i2[K]+1,i2[q])}J.AnyMap=i,J.GREATEST_LOWER_BOUND=G1,J.LEAST_UPPER_BOUND=n,J.TraceMap=z1,J.allGeneratedPositionsFor=F2,J.decodedMap=l0,J.decodedMappings=R1,J.eachMapping=T2,J.encodedMap=LG,J.encodedMappings=W1,J.generatedPositionFor=Q2,J.isIgnored=X2,J.originalPositionFor=V2,J.presortedDecodedMap=H0,J.sourceContentFor=Y2,J.traceSegment=m1})});var vV=S((ZJ,OV)=>{(function(J,G){typeof ZJ==="object"&&typeof OV!=="undefined"?G(ZJ,TV(),eG(),G7()):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:g,sourceRoot:y}={}){this._names=new G.SetArray,this._sources=new G.SetArray,this._sourcesContent=[],this._mappings=[],this.file=g,this.sourceRoot=y,this._ignoreList=new G.SetArray}}function q(g){return g}function f(g,y,p,n,G1,z1,H1,W1){return Y1(!1,g,y,p,n,G1,z1,H1,W1)}function A(g,y){return f1(!1,g,y)}let C=(g,y,p,n,G1,z1,H1,W1)=>{return Y1(!0,g,y,p,n,G1,z1,H1,W1)},l=(g,y)=>{return f1(!0,g,y)};function O(g,y,p){let{_sources:n,_sourcesContent:G1}=q(g),z1=G.put(n,y);G1[z1]=p}function v(g,y,p=!0){let{_sources:n,_sourcesContent:G1,_ignoreList:z1}=q(g),H1=G.put(n,y);if(H1===G1.length)G1[H1]=null;if(p)G.put(z1,H1);else G.remove(z1,H1)}function h(g){let{_mappings:y,_sources:p,_sourcesContent:n,_names:G1,_ignoreList:z1}=q(g);return i(y),{version:3,file:g.file||void 0,names:G1.array,sourceRoot:g.sourceRoot||void 0,sources:p.array,sourcesContent:n,mappings:y,ignoreList:z1.array}}function U1(g){let y=h(g);return Object.assign(Object.assign({},y),{mappings:X.encode(y.mappings)})}function e(g){let y=new H.TraceMap(g),p=new K({file:y.file,sourceRoot:y.sourceRoot});if(_(q(p)._names,y.names),_(q(p)._sources,y.sources),q(p)._sourcesContent=y.sourcesContent||y.sources.map(()=>null),q(p)._mappings=H.decodedMappings(y),y.ignoreList)_(q(p)._ignoreList,y.ignoreList);return p}function K1(g){let y=[],{_mappings:p,_sources:n,_names:G1}=q(g);for(let z1=0;z1<p.length;z1++){let H1=p[z1];for(let W1=0;W1<H1.length;W1++){let R1=H1[W1],m1={line:z1+1,column:R1[0]},V2=void 0,Q2=void 0,F2=void 0;if(R1.length!==1){if(V2=n.array[R1[1]],Q2={line:R1[2]+1,column:R1[3]},R1.length===5)F2=G1.array[R1[4]]}y.push({generated:m1,source:V2,original:Q2,name:F2})}}return y}function Y1(g,y,p,n,G1,z1,H1,W1,R1){let{_mappings:m1,_sources:V2,_sourcesContent:Q2,_names:F2}=q(y),T2=w1(m1,p),m2=L1(T2,n);if(!G1){if(g&&s(T2,m2))return;return a(T2,m2,[n])}let Y2=G.put(V2,G1),X2=W1?G.put(F2,W1):-1;if(Y2===Q2.length)Q2[Y2]=R1!==null&&R1!==void 0?R1:null;if(g&&B1(T2,m2,Y2,z1,H1,X2))return;return a(T2,m2,W1?[n,Y2,z1,H1,X2]:[n,Y2,z1,H1])}function w1(g,y){for(let p=g.length;p<=y;p++)g[p]=[];return g[y]}function L1(g,y){let p=g.length;for(let n=p-1;n>=0;p=n--){let G1=g[n];if(y>=G1[0])break}return p}function a(g,y,p){for(let n=g.length;n>y;n--)g[n]=g[n-1];g[y]=p}function i(g){let{length:y}=g,p=y;for(let n=p-1;n>=0;p=n,n--)if(g[n].length>0)break;if(p<y)g.length=p}function _(g,y){for(let p=0;p<y.length;p++)G.put(g,y[p])}function s(g,y){if(y===0)return!0;return g[y-1].length===1}function B1(g,y,p,n,G1,z1){if(y===0)return!1;let H1=g[y-1];if(H1.length===1)return!1;return p===H1[1]&&n===H1[2]&&G1===H1[3]&&z1===(H1.length===5?H1[4]:-1)}function f1(g,y,p){let{generated:n,source:G1,original:z1,name:H1,content:W1}=p;if(!G1)return Y1(g,y,n.line-1,n.column,null,null,null,null,null);return Y1(g,y,n.line-1,n.column,G1,z1.line-1,z1.column,H1,W1)}J.GenMapping=K,J.addMapping=A,J.addSegment=f,J.allMappings=K1,J.fromMap=e,J.maybeAddMapping=l,J.maybeAddSegment=C,J.setIgnore=v,J.setSourceContent=O,J.toDecodedMap=h,J.toEncodedMap=U1,Object.defineProperty(J,"__esModule",{value:!0})})});var hV=S((gV)=>{Object.defineProperty(gV,"__esModule",{value:!0});gV.default=void 0;var w0=vV(),X7=G7();class _V{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 w0.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 X7.TraceMap(J.inputSourceMap);let V=this._inputMap.resolvedSources;if(V.length)for(let Q=0;Q<V.length;Q++){var Z;w0.setSourceContent(H,V[Q],(Z=this._inputMap.sourcesContent)==null?void 0:Z[Q])}}if(typeof G==="string"&&!J.inputSourceMap)w0.setSourceContent(H,this._sourceFileName,G);else if(typeof G==="object")for(let V of Object.keys(G))w0.setSourceContent(H,V.replace(/\\/g,"/"),G[V])}get(){return w0.toEncodedMap(this._map)}getDecoded(){return w0.toDecodedMap(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=w0.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=X7.originalPositionFor(this._inputMap,{line:G,column:X}),!Y.name&&Z){let z=X7.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};w0.maybeAddMapping(this._map,{name:H,generated:J,source:(Q=Y)==null?void 0:Q.source,original:Y})}}gV.default=_V});var lV=S((mV)=>{Object.defineProperty(mV,"__esModule",{value:!0});mV.default=void 0;class yV{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}}mV.default=yV});var VJ=S((cV)=>{Object.defineProperty(cV,"__esModule",{value:!0});cV.default=LA;function LA(J,G){let X=Object.keys(G);for(let H of X)if(J[H]!==G[H])return!1;return!0}});var K9=S((aV)=>{Object.defineProperty(aV,"__esModule",{value:!0});aV.default=NA;var rV=new Set;function NA(J,G,X=""){if(rV.has(J))return;rV.add(J);let{internal:H,trace:Z}=kA(1,2);if(H)return;console.warn(`${X}\`${J}\` has been deprecated, please migrate to \`${G}\`\n${Z}`)}function kA(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 i1=S((uV)=>{Object.defineProperty(uV,"__esModule",{value:!0});uV.isAccessor=iw;uV.isAnyTypeAnnotation=KC;uV.isArgumentPlaceholder=lS;uV.isArrayExpression=OA;uV.isArrayPattern=kI;uV.isArrayTypeAnnotation=BC;uV.isArrowFunctionExpression=EI;uV.isAssignmentExpression=vA;uV.isAssignmentPattern=NI;uV.isAwaitExpression=JC;uV.isBigIntLiteral=XC;uV.isBinary=Rw;uV.isBinaryExpression=_A;uV.isBindExpression=cS;uV.isBlock=Fw;uV.isBlockParent=qw;uV.isBlockStatement=yA;uV.isBooleanLiteral=VI;uV.isBooleanLiteralTypeAnnotation=MC;uV.isBooleanTypeAnnotation=RC;uV.isBreakStatement=mA;uV.isCallExpression=xA;uV.isCatchClause=lA;uV.isClass=cw;uV.isClassAccessorProperty=YC;uV.isClassBody=OI;uV.isClassDeclaration=_I;uV.isClassExpression=vI;uV.isClassImplements=FC;uV.isClassMethod=uI;uV.isClassPrivateMethod=WC;uV.isClassPrivateProperty=zC;uV.isClassProperty=QC;uV.isCompletionStatement=Dw;uV.isConditional=Aw;uV.isConditionalExpression=cA;uV.isContinueStatement=rA;uV.isDebuggerStatement=aA;uV.isDecimalLiteral=pS;uV.isDeclaration=kw;uV.isDeclareClass=jC;uV.isDeclareExportAllDeclaration=LC;uV.isDeclareExportDeclaration=wC;uV.isDeclareFunction=fC;uV.isDeclareInterface=DC;uV.isDeclareModule=AC;uV.isDeclareModuleExports=IC;uV.isDeclareOpaqueType=SC;uV.isDeclareTypeAlias=CC;uV.isDeclareVariable=PC;uV.isDeclaredPredicate=TC;uV.isDecorator=aS;uV.isDirective=bA;uV.isDirectiveLiteral=hA;uV.isDoExpression=iS;uV.isDoWhileStatement=iA;uV.isEmptyStatement=uA;uV.isEmptyTypeAnnotation=mC;uV.isEnumBody=ew;uV.isEnumBooleanBody=BS;uV.isEnumBooleanMember=FS;uV.isEnumDeclaration=KS;uV.isEnumDefaultedMember=DS;uV.isEnumMember=tw;uV.isEnumNumberBody=RS;uV.isEnumNumberMember=jS;uV.isEnumStringBody=MS;uV.isEnumStringMember=fS;uV.isEnumSymbolBody=qS;uV.isExistsTypeAnnotation=NC;uV.isExportAllDeclaration=gI;uV.isExportDeclaration=rw;uV.isExportDefaultDeclaration=bI;uV.isExportDefaultSpecifier=uS;uV.isExportNamedDeclaration=hI;uV.isExportNamespaceSpecifier=HC;uV.isExportSpecifier=yI;uV.isExpression=Bw;uV.isExpressionStatement=dA;uV.isExpressionWrapper=Sw;uV.isFile=sA;uV.isFlow=dw;uV.isFlowBaseAnnotation=pw;uV.isFlowDeclaration=nw;uV.isFlowPredicate=ow;uV.isFlowType=sw;uV.isFor=Pw;uV.isForInStatement=pA;uV.isForOfStatement=mI;uV.isForStatement=nA;uV.isForXStatement=ww;uV.isFunction=Lw;uV.isFunctionDeclaration=oA;uV.isFunctionExpression=eA;uV.isFunctionParent=Tw;uV.isFunctionTypeAnnotation=kC;uV.isFunctionTypeParam=EC;uV.isGenericTypeAnnotation=OC;uV.isIdentifier=tA;uV.isIfStatement=JI;uV.isImmutable=gw;uV.isImport=GC;uV.isImportAttribute=rS;uV.isImportDeclaration=xI;uV.isImportDefaultSpecifier=lI;uV.isImportExpression=aI;uV.isImportNamespaceSpecifier=cI;uV.isImportOrExportDeclaration=iV;uV.isImportSpecifier=rI;uV.isIndexedAccessType=AS;uV.isInferredPredicate=vC;uV.isInterfaceDeclaration=gC;uV.isInterfaceExtends=_C;uV.isInterfaceTypeAnnotation=bC;uV.isInterpreterDirective=gA;uV.isIntersectionTypeAnnotation=hC;uV.isJSX=JL;uV.isJSXAttribute=CS;uV.isJSXClosingElement=SS;uV.isJSXClosingFragment=hS;uV.isJSXElement=PS;uV.isJSXEmptyExpression=wS;uV.isJSXExpressionContainer=LS;uV.isJSXFragment=gS;uV.isJSXIdentifier=NS;uV.isJSXMemberExpression=kS;uV.isJSXNamespacedName=ES;uV.isJSXOpeningElement=OS;uV.isJSXOpeningFragment=bS;uV.isJSXSpreadAttribute=vS;uV.isJSXSpreadChild=TS;uV.isJSXText=_S;uV.isLVal=Ow;uV.isLabeledStatement=GI;uV.isLiteral=_w;uV.isLogicalExpression=YI;uV.isLoop=Iw;uV.isMemberExpression=zI;uV.isMetaProperty=iI;uV.isMethod=hw;uV.isMiscellaneous=GL;uV.isMixedTypeAnnotation=yC;uV.isModuleDeclaration=$L;uV.isModuleExpression=nS;uV.isModuleSpecifier=aw;uV.isNewExpression=WI;uV.isNoop=yS;uV.isNullLiteral=ZI;uV.isNullLiteralTypeAnnotation=qC;uV.isNullableTypeAnnotation=xC;uV.isNumberLiteral=QL;uV.isNumberLiteralTypeAnnotation=lC;uV.isNumberTypeAnnotation=cC;uV.isNumericLiteral=HI;uV.isObjectExpression=UI;uV.isObjectMember=yw;uV.isObjectMethod=KI;uV.isObjectPattern=dI;uV.isObjectProperty=BI;uV.isObjectTypeAnnotation=rC;uV.isObjectTypeCallProperty=iC;uV.isObjectTypeIndexer=uC;uV.isObjectTypeInternalSlot=aC;uV.isObjectTypeProperty=dC;uV.isObjectTypeSpreadProperty=sC;uV.isOpaqueType=pC;uV.isOptionalCallExpression=VC;uV.isOptionalIndexedAccessType=IS;uV.isOptionalMemberExpression=ZC;uV.isParenthesizedExpression=FI;uV.isPattern=lw;uV.isPatternLike=Ew;uV.isPipelineBareFunction=tS;uV.isPipelinePrimaryTopicReference=JP;uV.isPipelineTopicExpression=eS;uV.isPlaceholder=mS;uV.isPrivate=uw;uV.isPrivateName=$C;uV.isProgram=$I;uV.isProperty=mw;uV.isPureish=Nw;uV.isQualifiedTypeIdentifier=nC;uV.isRecordExpression=dS;uV.isRegExpLiteral=QI;uV.isRegexLiteral=YL;uV.isRestElement=RI;uV.isRestProperty=zL;uV.isReturnStatement=MI;uV.isScopable=Mw;uV.isSequenceExpression=qI;uV.isSpreadElement=sI;uV.isSpreadProperty=WL;uV.isStandardized=Kw;uV.isStatement=jw;uV.isStaticBlock=UC;uV.isStringLiteral=XI;uV.isStringLiteralTypeAnnotation=oC;uV.isStringTypeAnnotation=eC;uV.isSuper=pI;uV.isSwitchCase=jI;uV.isSwitchStatement=fI;uV.isSymbolTypeAnnotation=tC;uV.isTSAnyKeyword=$P;uV.isTSArrayType=kP;uV.isTSAsExpression=pP;uV.isTSBaseType=VL;uV.isTSBigIntKeyword=KP;uV.isTSBooleanKeyword=UP;uV.isTSCallSignatureDeclaration=VP;uV.isTSConditionalType=hP;uV.isTSConstructSignatureDeclaration=QP;uV.isTSConstructorType=PP;uV.isTSDeclareFunction=XP;uV.isTSDeclareMethod=HP;uV.isTSEntityName=vw;uV.isTSEnumDeclaration=eP;uV.isTSEnumMember=tP;uV.isTSExportAssignment=Qw;uV.isTSExpressionWithTypeArguments=aP;uV.isTSExternalModuleReference=Zw;uV.isTSFunctionType=SP;uV.isTSImportEqualsDeclaration=Hw;uV.isTSImportType=Xw;uV.isTSIndexSignature=WP;uV.isTSIndexedAccessType=lP;uV.isTSInferType=yP;uV.isTSInstantiationExpression=sP;uV.isTSInterfaceBody=uP;uV.isTSInterfaceDeclaration=iP;uV.isTSIntersectionType=bP;uV.isTSIntrinsicKeyword=BP;uV.isTSLiteralType=rP;uV.isTSMappedType=cP;uV.isTSMethodSignature=zP;uV.isTSModuleBlock=Gw;uV.isTSModuleDeclaration=Jw;uV.isTSNamedTupleMember=_P;uV.isTSNamespaceExportDeclaration=Yw;uV.isTSNeverKeyword=RP;uV.isTSNonNullExpression=Vw;uV.isTSNullKeyword=MP;uV.isTSNumberKeyword=qP;uV.isTSObjectKeyword=FP;uV.isTSOptionalType=OP;uV.isTSParameterProperty=GP;uV.isTSParenthesizedType=mP;uV.isTSPropertySignature=YP;uV.isTSQualifiedName=ZP;uV.isTSRestType=vP;uV.isTSSatisfiesExpression=nP;uV.isTSStringKeyword=jP;uV.isTSSymbolKeyword=fP;uV.isTSThisType=CP;uV.isTSTupleType=EP;uV.isTSType=ZL;uV.isTSTypeAliasDeclaration=dP;uV.isTSTypeAnnotation=zw;uV.isTSTypeAssertion=oP;uV.isTSTypeElement=HL;uV.isTSTypeLiteral=NP;uV.isTSTypeOperator=xP;uV.isTSTypeParameter=Uw;uV.isTSTypeParameterDeclaration=$w;uV.isTSTypeParameterInstantiation=Ww;uV.isTSTypePredicate=LP;uV.isTSTypeQuery=TP;uV.isTSTypeReference=wP;uV.isTSUndefinedKeyword=DP;uV.isTSUnionType=gP;uV.isTSUnknownKeyword=AP;uV.isTSVoidKeyword=IP;uV.isTaggedTemplateExpression=nI;uV.isTemplateElement=oI;uV.isTemplateLiteral=eI;uV.isTerminatorless=fw;uV.isThisExpression=DI;uV.isThisTypeAnnotation=JS;uV.isThrowStatement=AI;uV.isTopicReference=oS;uV.isTryStatement=II;uV.isTupleExpression=sS;uV.isTupleTypeAnnotation=GS;uV.isTypeAlias=HS;uV.isTypeAnnotation=ZS;uV.isTypeCastExpression=VS;uV.isTypeParameter=QS;uV.isTypeParameterDeclaration=YS;uV.isTypeParameterInstantiation=zS;uV.isTypeScript=XL;uV.isTypeofTypeAnnotation=XS;uV.isUnaryExpression=CI;uV.isUnaryLike=xw;uV.isUnionTypeAnnotation=WS;uV.isUpdateExpression=SI;uV.isUserWhitespacable=bw;uV.isV8IntrinsicIdentifier=xS;uV.isVariableDeclaration=PI;uV.isVariableDeclarator=wI;uV.isVariance=$S;uV.isVoidTypeAnnotation=US;uV.isWhile=Cw;uV.isWhileStatement=LI;uV.isWithStatement=TI;uV.isYieldExpression=tI;var R=VJ(),B9=K9();function OA(J,G){if(!J)return!1;if(J.type!=="ArrayExpression")return!1;return G==null||R.default(J,G)}function vA(J,G){if(!J)return!1;if(J.type!=="AssignmentExpression")return!1;return G==null||R.default(J,G)}function _A(J,G){if(!J)return!1;if(J.type!=="BinaryExpression")return!1;return G==null||R.default(J,G)}function gA(J,G){if(!J)return!1;if(J.type!=="InterpreterDirective")return!1;return G==null||R.default(J,G)}function bA(J,G){if(!J)return!1;if(J.type!=="Directive")return!1;return G==null||R.default(J,G)}function hA(J,G){if(!J)return!1;if(J.type!=="DirectiveLiteral")return!1;return G==null||R.default(J,G)}function yA(J,G){if(!J)return!1;if(J.type!=="BlockStatement")return!1;return G==null||R.default(J,G)}function mA(J,G){if(!J)return!1;if(J.type!=="BreakStatement")return!1;return G==null||R.default(J,G)}function xA(J,G){if(!J)return!1;if(J.type!=="CallExpression")return!1;return G==null||R.default(J,G)}function lA(J,G){if(!J)return!1;if(J.type!=="CatchClause")return!1;return G==null||R.default(J,G)}function cA(J,G){if(!J)return!1;if(J.type!=="ConditionalExpression")return!1;return G==null||R.default(J,G)}function rA(J,G){if(!J)return!1;if(J.type!=="ContinueStatement")return!1;return G==null||R.default(J,G)}function aA(J,G){if(!J)return!1;if(J.type!=="DebuggerStatement")return!1;return G==null||R.default(J,G)}function iA(J,G){if(!J)return!1;if(J.type!=="DoWhileStatement")return!1;return G==null||R.default(J,G)}function uA(J,G){if(!J)return!1;if(J.type!=="EmptyStatement")return!1;return G==null||R.default(J,G)}function dA(J,G){if(!J)return!1;if(J.type!=="ExpressionStatement")return!1;return G==null||R.default(J,G)}function sA(J,G){if(!J)return!1;if(J.type!=="File")return!1;return G==null||R.default(J,G)}function pA(J,G){if(!J)return!1;if(J.type!=="ForInStatement")return!1;return G==null||R.default(J,G)}function nA(J,G){if(!J)return!1;if(J.type!=="ForStatement")return!1;return G==null||R.default(J,G)}function oA(J,G){if(!J)return!1;if(J.type!=="FunctionDeclaration")return!1;return G==null||R.default(J,G)}function eA(J,G){if(!J)return!1;if(J.type!=="FunctionExpression")return!1;return G==null||R.default(J,G)}function tA(J,G){if(!J)return!1;if(J.type!=="Identifier")return!1;return G==null||R.default(J,G)}function JI(J,G){if(!J)return!1;if(J.type!=="IfStatement")return!1;return G==null||R.default(J,G)}function GI(J,G){if(!J)return!1;if(J.type!=="LabeledStatement")return!1;return G==null||R.default(J,G)}function XI(J,G){if(!J)return!1;if(J.type!=="StringLiteral")return!1;return G==null||R.default(J,G)}function HI(J,G){if(!J)return!1;if(J.type!=="NumericLiteral")return!1;return G==null||R.default(J,G)}function ZI(J,G){if(!J)return!1;if(J.type!=="NullLiteral")return!1;return G==null||R.default(J,G)}function VI(J,G){if(!J)return!1;if(J.type!=="BooleanLiteral")return!1;return G==null||R.default(J,G)}function QI(J,G){if(!J)return!1;if(J.type!=="RegExpLiteral")return!1;return G==null||R.default(J,G)}function YI(J,G){if(!J)return!1;if(J.type!=="LogicalExpression")return!1;return G==null||R.default(J,G)}function zI(J,G){if(!J)return!1;if(J.type!=="MemberExpression")return!1;return G==null||R.default(J,G)}function WI(J,G){if(!J)return!1;if(J.type!=="NewExpression")return!1;return G==null||R.default(J,G)}function $I(J,G){if(!J)return!1;if(J.type!=="Program")return!1;return G==null||R.default(J,G)}function UI(J,G){if(!J)return!1;if(J.type!=="ObjectExpression")return!1;return G==null||R.default(J,G)}function KI(J,G){if(!J)return!1;if(J.type!=="ObjectMethod")return!1;return G==null||R.default(J,G)}function BI(J,G){if(!J)return!1;if(J.type!=="ObjectProperty")return!1;return G==null||R.default(J,G)}function RI(J,G){if(!J)return!1;if(J.type!=="RestElement")return!1;return G==null||R.default(J,G)}function MI(J,G){if(!J)return!1;if(J.type!=="ReturnStatement")return!1;return G==null||R.default(J,G)}function qI(J,G){if(!J)return!1;if(J.type!=="SequenceExpression")return!1;return G==null||R.default(J,G)}function FI(J,G){if(!J)return!1;if(J.type!=="ParenthesizedExpression")return!1;return G==null||R.default(J,G)}function jI(J,G){if(!J)return!1;if(J.type!=="SwitchCase")return!1;return G==null||R.default(J,G)}function fI(J,G){if(!J)return!1;if(J.type!=="SwitchStatement")return!1;return G==null||R.default(J,G)}function DI(J,G){if(!J)return!1;if(J.type!=="ThisExpression")return!1;return G==null||R.default(J,G)}function AI(J,G){if(!J)return!1;if(J.type!=="ThrowStatement")return!1;return G==null||R.default(J,G)}function II(J,G){if(!J)return!1;if(J.type!=="TryStatement")return!1;return G==null||R.default(J,G)}function CI(J,G){if(!J)return!1;if(J.type!=="UnaryExpression")return!1;return G==null||R.default(J,G)}function SI(J,G){if(!J)return!1;if(J.type!=="UpdateExpression")return!1;return G==null||R.default(J,G)}function PI(J,G){if(!J)return!1;if(J.type!=="VariableDeclaration")return!1;return G==null||R.default(J,G)}function wI(J,G){if(!J)return!1;if(J.type!=="VariableDeclarator")return!1;return G==null||R.default(J,G)}function LI(J,G){if(!J)return!1;if(J.type!=="WhileStatement")return!1;return G==null||R.default(J,G)}function TI(J,G){if(!J)return!1;if(J.type!=="WithStatement")return!1;return G==null||R.default(J,G)}function NI(J,G){if(!J)return!1;if(J.type!=="AssignmentPattern")return!1;return G==null||R.default(J,G)}function kI(J,G){if(!J)return!1;if(J.type!=="ArrayPattern")return!1;return G==null||R.default(J,G)}function EI(J,G){if(!J)return!1;if(J.type!=="ArrowFunctionExpression")return!1;return G==null||R.default(J,G)}function OI(J,G){if(!J)return!1;if(J.type!=="ClassBody")return!1;return G==null||R.default(J,G)}function vI(J,G){if(!J)return!1;if(J.type!=="ClassExpression")return!1;return G==null||R.default(J,G)}function _I(J,G){if(!J)return!1;if(J.type!=="ClassDeclaration")return!1;return G==null||R.default(J,G)}function gI(J,G){if(!J)return!1;if(J.type!=="ExportAllDeclaration")return!1;return G==null||R.default(J,G)}function bI(J,G){if(!J)return!1;if(J.type!=="ExportDefaultDeclaration")return!1;return G==null||R.default(J,G)}function hI(J,G){if(!J)return!1;if(J.type!=="ExportNamedDeclaration")return!1;return G==null||R.default(J,G)}function yI(J,G){if(!J)return!1;if(J.type!=="ExportSpecifier")return!1;return G==null||R.default(J,G)}function mI(J,G){if(!J)return!1;if(J.type!=="ForOfStatement")return!1;return G==null||R.default(J,G)}function xI(J,G){if(!J)return!1;if(J.type!=="ImportDeclaration")return!1;return G==null||R.default(J,G)}function lI(J,G){if(!J)return!1;if(J.type!=="ImportDefaultSpecifier")return!1;return G==null||R.default(J,G)}function cI(J,G){if(!J)return!1;if(J.type!=="ImportNamespaceSpecifier")return!1;return G==null||R.default(J,G)}function rI(J,G){if(!J)return!1;if(J.type!=="ImportSpecifier")return!1;return G==null||R.default(J,G)}function aI(J,G){if(!J)return!1;if(J.type!=="ImportExpression")return!1;return G==null||R.default(J,G)}function iI(J,G){if(!J)return!1;if(J.type!=="MetaProperty")return!1;return G==null||R.default(J,G)}function uI(J,G){if(!J)return!1;if(J.type!=="ClassMethod")return!1;return G==null||R.default(J,G)}function dI(J,G){if(!J)return!1;if(J.type!=="ObjectPattern")return!1;return G==null||R.default(J,G)}function sI(J,G){if(!J)return!1;if(J.type!=="SpreadElement")return!1;return G==null||R.default(J,G)}function pI(J,G){if(!J)return!1;if(J.type!=="Super")return!1;return G==null||R.default(J,G)}function nI(J,G){if(!J)return!1;if(J.type!=="TaggedTemplateExpression")return!1;return G==null||R.default(J,G)}function oI(J,G){if(!J)return!1;if(J.type!=="TemplateElement")return!1;return G==null||R.default(J,G)}function eI(J,G){if(!J)return!1;if(J.type!=="TemplateLiteral")return!1;return G==null||R.default(J,G)}function tI(J,G){if(!J)return!1;if(J.type!=="YieldExpression")return!1;return G==null||R.default(J,G)}function JC(J,G){if(!J)return!1;if(J.type!=="AwaitExpression")return!1;return G==null||R.default(J,G)}function GC(J,G){if(!J)return!1;if(J.type!=="Import")return!1;return G==null||R.default(J,G)}function XC(J,G){if(!J)return!1;if(J.type!=="BigIntLiteral")return!1;return G==null||R.default(J,G)}function HC(J,G){if(!J)return!1;if(J.type!=="ExportNamespaceSpecifier")return!1;return G==null||R.default(J,G)}function ZC(J,G){if(!J)return!1;if(J.type!=="OptionalMemberExpression")return!1;return G==null||R.default(J,G)}function VC(J,G){if(!J)return!1;if(J.type!=="OptionalCallExpression")return!1;return G==null||R.default(J,G)}function QC(J,G){if(!J)return!1;if(J.type!=="ClassProperty")return!1;return G==null||R.default(J,G)}function YC(J,G){if(!J)return!1;if(J.type!=="ClassAccessorProperty")return!1;return G==null||R.default(J,G)}function zC(J,G){if(!J)return!1;if(J.type!=="ClassPrivateProperty")return!1;return G==null||R.default(J,G)}function WC(J,G){if(!J)return!1;if(J.type!=="ClassPrivateMethod")return!1;return G==null||R.default(J,G)}function $C(J,G){if(!J)return!1;if(J.type!=="PrivateName")return!1;return G==null||R.default(J,G)}function UC(J,G){if(!J)return!1;if(J.type!=="StaticBlock")return!1;return G==null||R.default(J,G)}function KC(J,G){if(!J)return!1;if(J.type!=="AnyTypeAnnotation")return!1;return G==null||R.default(J,G)}function BC(J,G){if(!J)return!1;if(J.type!=="ArrayTypeAnnotation")return!1;return G==null||R.default(J,G)}function RC(J,G){if(!J)return!1;if(J.type!=="BooleanTypeAnnotation")return!1;return G==null||R.default(J,G)}function MC(J,G){if(!J)return!1;if(J.type!=="BooleanLiteralTypeAnnotation")return!1;return G==null||R.default(J,G)}function qC(J,G){if(!J)return!1;if(J.type!=="NullLiteralTypeAnnotation")return!1;return G==null||R.default(J,G)}function FC(J,G){if(!J)return!1;if(J.type!=="ClassImplements")return!1;return G==null||R.default(J,G)}function jC(J,G){if(!J)return!1;if(J.type!=="DeclareClass")return!1;return G==null||R.default(J,G)}function fC(J,G){if(!J)return!1;if(J.type!=="DeclareFunction")return!1;return G==null||R.default(J,G)}function DC(J,G){if(!J)return!1;if(J.type!=="DeclareInterface")return!1;return G==null||R.default(J,G)}function AC(J,G){if(!J)return!1;if(J.type!=="DeclareModule")return!1;return G==null||R.default(J,G)}function IC(J,G){if(!J)return!1;if(J.type!=="DeclareModuleExports")return!1;return G==null||R.default(J,G)}function CC(J,G){if(!J)return!1;if(J.type!=="DeclareTypeAlias")return!1;return G==null||R.default(J,G)}function SC(J,G){if(!J)return!1;if(J.type!=="DeclareOpaqueType")return!1;return G==null||R.default(J,G)}function PC(J,G){if(!J)return!1;if(J.type!=="DeclareVariable")return!1;return G==null||R.default(J,G)}function wC(J,G){if(!J)return!1;if(J.type!=="DeclareExportDeclaration")return!1;return G==null||R.default(J,G)}function LC(J,G){if(!J)return!1;if(J.type!=="DeclareExportAllDeclaration")return!1;return G==null||R.default(J,G)}function TC(J,G){if(!J)return!1;if(J.type!=="DeclaredPredicate")return!1;return G==null||R.default(J,G)}function NC(J,G){if(!J)return!1;if(J.type!=="ExistsTypeAnnotation")return!1;return G==null||R.default(J,G)}function kC(J,G){if(!J)return!1;if(J.type!=="FunctionTypeAnnotation")return!1;return G==null||R.default(J,G)}function EC(J,G){if(!J)return!1;if(J.type!=="FunctionTypeParam")return!1;return G==null||R.default(J,G)}function OC(J,G){if(!J)return!1;if(J.type!=="GenericTypeAnnotation")return!1;return G==null||R.default(J,G)}function vC(J,G){if(!J)return!1;if(J.type!=="InferredPredicate")return!1;return G==null||R.default(J,G)}function _C(J,G){if(!J)return!1;if(J.type!=="InterfaceExtends")return!1;return G==null||R.default(J,G)}function gC(J,G){if(!J)return!1;if(J.type!=="InterfaceDeclaration")return!1;return G==null||R.default(J,G)}function bC(J,G){if(!J)return!1;if(J.type!=="InterfaceTypeAnnotation")return!1;return G==null||R.default(J,G)}function hC(J,G){if(!J)return!1;if(J.type!=="IntersectionTypeAnnotation")return!1;return G==null||R.default(J,G)}function yC(J,G){if(!J)return!1;if(J.type!=="MixedTypeAnnotation")return!1;return G==null||R.default(J,G)}function mC(J,G){if(!J)return!1;if(J.type!=="EmptyTypeAnnotation")return!1;return G==null||R.default(J,G)}function xC(J,G){if(!J)return!1;if(J.type!=="NullableTypeAnnotation")return!1;return G==null||R.default(J,G)}function lC(J,G){if(!J)return!1;if(J.type!=="NumberLiteralTypeAnnotation")return!1;return G==null||R.default(J,G)}function cC(J,G){if(!J)return!1;if(J.type!=="NumberTypeAnnotation")return!1;return G==null||R.default(J,G)}function rC(J,G){if(!J)return!1;if(J.type!=="ObjectTypeAnnotation")return!1;return G==null||R.default(J,G)}function aC(J,G){if(!J)return!1;if(J.type!=="ObjectTypeInternalSlot")return!1;return G==null||R.default(J,G)}function iC(J,G){if(!J)return!1;if(J.type!=="ObjectTypeCallProperty")return!1;return G==null||R.default(J,G)}function uC(J,G){if(!J)return!1;if(J.type!=="ObjectTypeIndexer")return!1;return G==null||R.default(J,G)}function dC(J,G){if(!J)return!1;if(J.type!=="ObjectTypeProperty")return!1;return G==null||R.default(J,G)}function sC(J,G){if(!J)return!1;if(J.type!=="ObjectTypeSpreadProperty")return!1;return G==null||R.default(J,G)}function pC(J,G){if(!J)return!1;if(J.type!=="OpaqueType")return!1;return G==null||R.default(J,G)}function nC(J,G){if(!J)return!1;if(J.type!=="QualifiedTypeIdentifier")return!1;return G==null||R.default(J,G)}function oC(J,G){if(!J)return!1;if(J.type!=="StringLiteralTypeAnnotation")return!1;return G==null||R.default(J,G)}function eC(J,G){if(!J)return!1;if(J.type!=="StringTypeAnnotation")return!1;return G==null||R.default(J,G)}function tC(J,G){if(!J)return!1;if(J.type!=="SymbolTypeAnnotation")return!1;return G==null||R.default(J,G)}function JS(J,G){if(!J)return!1;if(J.type!=="ThisTypeAnnotation")return!1;return G==null||R.default(J,G)}function GS(J,G){if(!J)return!1;if(J.type!=="TupleTypeAnnotation")return!1;return G==null||R.default(J,G)}function XS(J,G){if(!J)return!1;if(J.type!=="TypeofTypeAnnotation")return!1;return G==null||R.default(J,G)}function HS(J,G){if(!J)return!1;if(J.type!=="TypeAlias")return!1;return G==null||R.default(J,G)}function ZS(J,G){if(!J)return!1;if(J.type!=="TypeAnnotation")return!1;return G==null||R.default(J,G)}function VS(J,G){if(!J)return!1;if(J.type!=="TypeCastExpression")return!1;return G==null||R.default(J,G)}function QS(J,G){if(!J)return!1;if(J.type!=="TypeParameter")return!1;return G==null||R.default(J,G)}function YS(J,G){if(!J)return!1;if(J.type!=="TypeParameterDeclaration")return!1;return G==null||R.default(J,G)}function zS(J,G){if(!J)return!1;if(J.type!=="TypeParameterInstantiation")return!1;return G==null||R.default(J,G)}function WS(J,G){if(!J)return!1;if(J.type!=="UnionTypeAnnotation")return!1;return G==null||R.default(J,G)}function $S(J,G){if(!J)return!1;if(J.type!=="Variance")return!1;return G==null||R.default(J,G)}function US(J,G){if(!J)return!1;if(J.type!=="VoidTypeAnnotation")return!1;return G==null||R.default(J,G)}function KS(J,G){if(!J)return!1;if(J.type!=="EnumDeclaration")return!1;return G==null||R.default(J,G)}function BS(J,G){if(!J)return!1;if(J.type!=="EnumBooleanBody")return!1;return G==null||R.default(J,G)}function RS(J,G){if(!J)return!1;if(J.type!=="EnumNumberBody")return!1;return G==null||R.default(J,G)}function MS(J,G){if(!J)return!1;if(J.type!=="EnumStringBody")return!1;return G==null||R.default(J,G)}function qS(J,G){if(!J)return!1;if(J.type!=="EnumSymbolBody")return!1;return G==null||R.default(J,G)}function FS(J,G){if(!J)return!1;if(J.type!=="EnumBooleanMember")return!1;return G==null||R.default(J,G)}function jS(J,G){if(!J)return!1;if(J.type!=="EnumNumberMember")return!1;return G==null||R.default(J,G)}function fS(J,G){if(!J)return!1;if(J.type!=="EnumStringMember")return!1;return G==null||R.default(J,G)}function DS(J,G){if(!J)return!1;if(J.type!=="EnumDefaultedMember")return!1;return G==null||R.default(J,G)}function AS(J,G){if(!J)return!1;if(J.type!=="IndexedAccessType")return!1;return G==null||R.default(J,G)}function IS(J,G){if(!J)return!1;if(J.type!=="OptionalIndexedAccessType")return!1;return G==null||R.default(J,G)}function CS(J,G){if(!J)return!1;if(J.type!=="JSXAttribute")return!1;return G==null||R.default(J,G)}function SS(J,G){if(!J)return!1;if(J.type!=="JSXClosingElement")return!1;return G==null||R.default(J,G)}function PS(J,G){if(!J)return!1;if(J.type!=="JSXElement")return!1;return G==null||R.default(J,G)}function wS(J,G){if(!J)return!1;if(J.type!=="JSXEmptyExpression")return!1;return G==null||R.default(J,G)}function LS(J,G){if(!J)return!1;if(J.type!=="JSXExpressionContainer")return!1;return G==null||R.default(J,G)}function TS(J,G){if(!J)return!1;if(J.type!=="JSXSpreadChild")return!1;return G==null||R.default(J,G)}function NS(J,G){if(!J)return!1;if(J.type!=="JSXIdentifier")return!1;return G==null||R.default(J,G)}function kS(J,G){if(!J)return!1;if(J.type!=="JSXMemberExpression")return!1;return G==null||R.default(J,G)}function ES(J,G){if(!J)return!1;if(J.type!=="JSXNamespacedName")return!1;return G==null||R.default(J,G)}function OS(J,G){if(!J)return!1;if(J.type!=="JSXOpeningElement")return!1;return G==null||R.default(J,G)}function vS(J,G){if(!J)return!1;if(J.type!=="JSXSpreadAttribute")return!1;return G==null||R.default(J,G)}function _S(J,G){if(!J)return!1;if(J.type!=="JSXText")return!1;return G==null||R.default(J,G)}function gS(J,G){if(!J)return!1;if(J.type!=="JSXFragment")return!1;return G==null||R.default(J,G)}function bS(J,G){if(!J)return!1;if(J.type!=="JSXOpeningFragment")return!1;return G==null||R.default(J,G)}function hS(J,G){if(!J)return!1;if(J.type!=="JSXClosingFragment")return!1;return G==null||R.default(J,G)}function yS(J,G){if(!J)return!1;if(J.type!=="Noop")return!1;return G==null||R.default(J,G)}function mS(J,G){if(!J)return!1;if(J.type!=="Placeholder")return!1;return G==null||R.default(J,G)}function xS(J,G){if(!J)return!1;if(J.type!=="V8IntrinsicIdentifier")return!1;return G==null||R.default(J,G)}function lS(J,G){if(!J)return!1;if(J.type!=="ArgumentPlaceholder")return!1;return G==null||R.default(J,G)}function cS(J,G){if(!J)return!1;if(J.type!=="BindExpression")return!1;return G==null||R.default(J,G)}function rS(J,G){if(!J)return!1;if(J.type!=="ImportAttribute")return!1;return G==null||R.default(J,G)}function aS(J,G){if(!J)return!1;if(J.type!=="Decorator")return!1;return G==null||R.default(J,G)}function iS(J,G){if(!J)return!1;if(J.type!=="DoExpression")return!1;return G==null||R.default(J,G)}function uS(J,G){if(!J)return!1;if(J.type!=="ExportDefaultSpecifier")return!1;return G==null||R.default(J,G)}function dS(J,G){if(!J)return!1;if(J.type!=="RecordExpression")return!1;return G==null||R.default(J,G)}function sS(J,G){if(!J)return!1;if(J.type!=="TupleExpression")return!1;return G==null||R.default(J,G)}function pS(J,G){if(!J)return!1;if(J.type!=="DecimalLiteral")return!1;return G==null||R.default(J,G)}function nS(J,G){if(!J)return!1;if(J.type!=="ModuleExpression")return!1;return G==null||R.default(J,G)}function oS(J,G){if(!J)return!1;if(J.type!=="TopicReference")return!1;return G==null||R.default(J,G)}function eS(J,G){if(!J)return!1;if(J.type!=="PipelineTopicExpression")return!1;return G==null||R.default(J,G)}function tS(J,G){if(!J)return!1;if(J.type!=="PipelineBareFunction")return!1;return G==null||R.default(J,G)}function JP(J,G){if(!J)return!1;if(J.type!=="PipelinePrimaryTopicReference")return!1;return G==null||R.default(J,G)}function GP(J,G){if(!J)return!1;if(J.type!=="TSParameterProperty")return!1;return G==null||R.default(J,G)}function XP(J,G){if(!J)return!1;if(J.type!=="TSDeclareFunction")return!1;return G==null||R.default(J,G)}function HP(J,G){if(!J)return!1;if(J.type!=="TSDeclareMethod")return!1;return G==null||R.default(J,G)}function ZP(J,G){if(!J)return!1;if(J.type!=="TSQualifiedName")return!1;return G==null||R.default(J,G)}function VP(J,G){if(!J)return!1;if(J.type!=="TSCallSignatureDeclaration")return!1;return G==null||R.default(J,G)}function QP(J,G){if(!J)return!1;if(J.type!=="TSConstructSignatureDeclaration")return!1;return G==null||R.default(J,G)}function YP(J,G){if(!J)return!1;if(J.type!=="TSPropertySignature")return!1;return G==null||R.default(J,G)}function zP(J,G){if(!J)return!1;if(J.type!=="TSMethodSignature")return!1;return G==null||R.default(J,G)}function WP(J,G){if(!J)return!1;if(J.type!=="TSIndexSignature")return!1;return G==null||R.default(J,G)}function $P(J,G){if(!J)return!1;if(J.type!=="TSAnyKeyword")return!1;return G==null||R.default(J,G)}function UP(J,G){if(!J)return!1;if(J.type!=="TSBooleanKeyword")return!1;return G==null||R.default(J,G)}function KP(J,G){if(!J)return!1;if(J.type!=="TSBigIntKeyword")return!1;return G==null||R.default(J,G)}function BP(J,G){if(!J)return!1;if(J.type!=="TSIntrinsicKeyword")return!1;return G==null||R.default(J,G)}function RP(J,G){if(!J)return!1;if(J.type!=="TSNeverKeyword")return!1;return G==null||R.default(J,G)}function MP(J,G){if(!J)return!1;if(J.type!=="TSNullKeyword")return!1;return G==null||R.default(J,G)}function qP(J,G){if(!J)return!1;if(J.type!=="TSNumberKeyword")return!1;return G==null||R.default(J,G)}function FP(J,G){if(!J)return!1;if(J.type!=="TSObjectKeyword")return!1;return G==null||R.default(J,G)}function jP(J,G){if(!J)return!1;if(J.type!=="TSStringKeyword")return!1;return G==null||R.default(J,G)}function fP(J,G){if(!J)return!1;if(J.type!=="TSSymbolKeyword")return!1;return G==null||R.default(J,G)}function DP(J,G){if(!J)return!1;if(J.type!=="TSUndefinedKeyword")return!1;return G==null||R.default(J,G)}function AP(J,G){if(!J)return!1;if(J.type!=="TSUnknownKeyword")return!1;return G==null||R.default(J,G)}function IP(J,G){if(!J)return!1;if(J.type!=="TSVoidKeyword")return!1;return G==null||R.default(J,G)}function CP(J,G){if(!J)return!1;if(J.type!=="TSThisType")return!1;return G==null||R.default(J,G)}function SP(J,G){if(!J)return!1;if(J.type!=="TSFunctionType")return!1;return G==null||R.default(J,G)}function PP(J,G){if(!J)return!1;if(J.type!=="TSConstructorType")return!1;return G==null||R.default(J,G)}function wP(J,G){if(!J)return!1;if(J.type!=="TSTypeReference")return!1;return G==null||R.default(J,G)}function LP(J,G){if(!J)return!1;if(J.type!=="TSTypePredicate")return!1;return G==null||R.default(J,G)}function TP(J,G){if(!J)return!1;if(J.type!=="TSTypeQuery")return!1;return G==null||R.default(J,G)}function NP(J,G){if(!J)return!1;if(J.type!=="TSTypeLiteral")return!1;return G==null||R.default(J,G)}function kP(J,G){if(!J)return!1;if(J.type!=="TSArrayType")return!1;return G==null||R.default(J,G)}function EP(J,G){if(!J)return!1;if(J.type!=="TSTupleType")return!1;return G==null||R.default(J,G)}function OP(J,G){if(!J)return!1;if(J.type!=="TSOptionalType")return!1;return G==null||R.default(J,G)}function vP(J,G){if(!J)return!1;if(J.type!=="TSRestType")return!1;return G==null||R.default(J,G)}function _P(J,G){if(!J)return!1;if(J.type!=="TSNamedTupleMember")return!1;return G==null||R.default(J,G)}function gP(J,G){if(!J)return!1;if(J.type!=="TSUnionType")return!1;return G==null||R.default(J,G)}function bP(J,G){if(!J)return!1;if(J.type!=="TSIntersectionType")return!1;return G==null||R.default(J,G)}function hP(J,G){if(!J)return!1;if(J.type!=="TSConditionalType")return!1;return G==null||R.default(J,G)}function yP(J,G){if(!J)return!1;if(J.type!=="TSInferType")return!1;return G==null||R.default(J,G)}function mP(J,G){if(!J)return!1;if(J.type!=="TSParenthesizedType")return!1;return G==null||R.default(J,G)}function xP(J,G){if(!J)return!1;if(J.type!=="TSTypeOperator")return!1;return G==null||R.default(J,G)}function lP(J,G){if(!J)return!1;if(J.type!=="TSIndexedAccessType")return!1;return G==null||R.default(J,G)}function cP(J,G){if(!J)return!1;if(J.type!=="TSMappedType")return!1;return G==null||R.default(J,G)}function rP(J,G){if(!J)return!1;if(J.type!=="TSLiteralType")return!1;return G==null||R.default(J,G)}function aP(J,G){if(!J)return!1;if(J.type!=="TSExpressionWithTypeArguments")return!1;return G==null||R.default(J,G)}function iP(J,G){if(!J)return!1;if(J.type!=="TSInterfaceDeclaration")return!1;return G==null||R.default(J,G)}function uP(J,G){if(!J)return!1;if(J.type!=="TSInterfaceBody")return!1;return G==null||R.default(J,G)}function dP(J,G){if(!J)return!1;if(J.type!=="TSTypeAliasDeclaration")return!1;return G==null||R.default(J,G)}function sP(J,G){if(!J)return!1;if(J.type!=="TSInstantiationExpression")return!1;return G==null||R.default(J,G)}function pP(J,G){if(!J)return!1;if(J.type!=="TSAsExpression")return!1;return G==null||R.default(J,G)}function nP(J,G){if(!J)return!1;if(J.type!=="TSSatisfiesExpression")return!1;return G==null||R.default(J,G)}function oP(J,G){if(!J)return!1;if(J.type!=="TSTypeAssertion")return!1;return G==null||R.default(J,G)}function eP(J,G){if(!J)return!1;if(J.type!=="TSEnumDeclaration")return!1;return G==null||R.default(J,G)}function tP(J,G){if(!J)return!1;if(J.type!=="TSEnumMember")return!1;return G==null||R.default(J,G)}function Jw(J,G){if(!J)return!1;if(J.type!=="TSModuleDeclaration")return!1;return G==null||R.default(J,G)}function Gw(J,G){if(!J)return!1;if(J.type!=="TSModuleBlock")return!1;return G==null||R.default(J,G)}function Xw(J,G){if(!J)return!1;if(J.type!=="TSImportType")return!1;return G==null||R.default(J,G)}function Hw(J,G){if(!J)return!1;if(J.type!=="TSImportEqualsDeclaration")return!1;return G==null||R.default(J,G)}function Zw(J,G){if(!J)return!1;if(J.type!=="TSExternalModuleReference")return!1;return G==null||R.default(J,G)}function Vw(J,G){if(!J)return!1;if(J.type!=="TSNonNullExpression")return!1;return G==null||R.default(J,G)}function Qw(J,G){if(!J)return!1;if(J.type!=="TSExportAssignment")return!1;return G==null||R.default(J,G)}function Yw(J,G){if(!J)return!1;if(J.type!=="TSNamespaceExportDeclaration")return!1;return G==null||R.default(J,G)}function zw(J,G){if(!J)return!1;if(J.type!=="TSTypeAnnotation")return!1;return G==null||R.default(J,G)}function Ww(J,G){if(!J)return!1;if(J.type!=="TSTypeParameterInstantiation")return!1;return G==null||R.default(J,G)}function $w(J,G){if(!J)return!1;if(J.type!=="TSTypeParameterDeclaration")return!1;return G==null||R.default(J,G)}function Uw(J,G){if(!J)return!1;if(J.type!=="TSTypeParameter")return!1;return G==null||R.default(J,G)}function Kw(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 Bw(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 Rw(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 Mw(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 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"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"Program":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"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 fw(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 Dw(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 Aw(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 Iw(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 Cw(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 Sw(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 Pw(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 ww(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 Lw(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 Tw(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 Nw(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 kw(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 Ew(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 Ow(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 vw(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 _w(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 gw(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 bw(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 hw(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 yw(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 mw(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 xw(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 lw(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 cw(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 iV(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 rw(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 aw(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 iw(J,G){if(!J)return!1;switch(J.type){case"ClassAccessorProperty":break;default:return!1}return G==null||R.default(J,G)}function uw(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 dw(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 sw(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 pw(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 nw(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 ow(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 ew(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 tw(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 JL(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 GL(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 XL(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 HL(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 ZL(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 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"TSLiteralType":break;default:return!1}return G==null||R.default(J,G)}function QL(J,G){if(B9.default("isNumberLiteral","isNumericLiteral"),!J)return!1;if(J.type!=="NumberLiteral")return!1;return G==null||R.default(J,G)}function YL(J,G){if(B9.default("isRegexLiteral","isRegExpLiteral"),!J)return!1;if(J.type!=="RegexLiteral")return!1;return G==null||R.default(J,G)}function zL(J,G){if(B9.default("isRestProperty","isRestElement"),!J)return!1;if(J.type!=="RestProperty")return!1;return G==null||R.default(J,G)}function WL(J,G){if(B9.default("isSpreadProperty","isSpreadElement"),!J)return!1;if(J.type!=="SpreadProperty")return!1;return G==null||R.default(J,G)}function $L(J,G){return B9.default("isModuleDeclaration","isImportOrExportDeclaration"),iV(J,G)}});var H7=S((dV)=>{Object.defineProperty(dV,"__esModule",{value:!0});dV.default=iO;var R9=i1();function iO(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 Z7=S((sV)=>{Object.defineProperty(sV,"__esModule",{value:!0});sV.default=sO;var dO=H7();function sO(J,G){let X=J.split(".");return(H)=>dO.default(H,X,G)}});var oV=S((pV)=>{Object.defineProperty(pV,"__esModule",{value:!0});pV.default=void 0;var nO=Z7(),oO=nO.default("React.Component"),MN1=pV.default=oO});var tV=S((eV)=>{Object.defineProperty(eV,"__esModule",{value:!0});eV.default=eO;function eO(J){return!!J&&/^[a-z]/.test(J)}});var QJ=S((GQ)=>{Object.defineProperty(GQ,"__esModule",{value:!0});GQ.default=Jv;var JQ=k2();function Jv(J,G){if(J===G)return!0;if(J==null)return!1;if(JQ.ALIAS_KEYS[G])return!1;let X=JQ.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 V7=S((XQ)=>{Object.defineProperty(XQ,"__esModule",{value:!0});XQ.default=Hv;var Xv=k2();function Hv(J,G){if(J===G)return!0;let X=Xv.PLACEHOLDERS_ALIAS[J];if(X){for(let H of X)if(G===H)return!0}return!1}});var k5=S((HQ)=>{Object.defineProperty(HQ,"__esModule",{value:!0});HQ.default=Wv;var Vv=VJ(),Qv=QJ(),Yv=V7(),zv=k2();function Wv(J,G,X){if(!G)return!1;if(!Qv.default(G.type,J)){if(!X&&G.type==="Placeholder"&&J in zv.FLIPPED_ALIAS_KEYS)return Yv.default(G.expectedNode,J);return!1}if(X===void 0)return!0;else return Vv.default(G,X)}});var WQ=S((zQ)=>{Object.defineProperty(zQ,"__esModule",{value:!0});zQ.isIdentifierChar=YQ;zQ.isIdentifierName=Rv;zQ.isIdentifierStart=QQ;var Y7="\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",Uv=new RegExp("["+Y7+"]"),Kv=new RegExp("["+Y7+ZQ+"]");Y7=ZQ=null;var VQ=[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],Bv=[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 Q7(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 QQ(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&&Uv.test(String.fromCharCode(J));return Q7(J,VQ)}function YQ(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&&Kv.test(String.fromCharCode(J));return Q7(J,VQ)||Q7(J,Bv)}function Rv(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,!QQ(H))return!1}else if(!YQ(H))return!1}return!G}});var RQ=S((BQ)=>{Object.defineProperty(BQ,"__esModule",{value:!0});BQ.isKeyword=Iv;BQ.isReservedWord=$Q;BQ.isStrictBindOnlyReservedWord=KQ;BQ.isStrictBindReservedWord=Av;BQ.isStrictReservedWord=UQ;var z7={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"]},jv=new Set(z7.keyword),fv=new Set(z7.strict),Dv=new Set(z7.strictBind);function $Q(J,G){return G&&J==="await"||J==="enum"}function UQ(J,G){return $Q(J,G)||fv.has(J)}function KQ(J){return Dv.has(J)}function Av(J,G){return UQ(J,G)||KQ(J)}function Iv(J){return jv.has(J)}});var q9=S((p2)=>{Object.defineProperty(p2,"__esModule",{value:!0});Object.defineProperty(p2,"isIdentifierChar",{enumerable:!0,get:function(){return W7.isIdentifierChar}});Object.defineProperty(p2,"isIdentifierName",{enumerable:!0,get:function(){return W7.isIdentifierName}});Object.defineProperty(p2,"isIdentifierStart",{enumerable:!0,get:function(){return W7.isIdentifierStart}});Object.defineProperty(p2,"isKeyword",{enumerable:!0,get:function(){return M9.isKeyword}});Object.defineProperty(p2,"isReservedWord",{enumerable:!0,get:function(){return M9.isReservedWord}});Object.defineProperty(p2,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return M9.isStrictBindOnlyReservedWord}});Object.defineProperty(p2,"isStrictBindReservedWord",{enumerable:!0,get:function(){return M9.isStrictBindReservedWord}});Object.defineProperty(p2,"isStrictReservedWord",{enumerable:!0,get:function(){return M9.isStrictReservedWord}});var W7=WQ(),M9=RQ()});var E5=S((MQ)=>{Object.defineProperty(MQ,"__esModule",{value:!0});MQ.default=Tv;var $7=q9();function Tv(J,G=!0){if(typeof J!=="string")return!1;if(G){if($7.isKeyword(J)||$7.isStrictReservedWord(J,!0))return!1}return $7.isIdentifierName(J)}});var DQ=S((fQ)=>{Object.defineProperty(fQ,"__esModule",{value:!0});fQ.readCodePoint=jQ;fQ.readInt=FQ;fQ.readStringContents=Ev;var kv=function J(G){return G>=48&&G<=57},qQ={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},YJ={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 Ev(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 A=G.charCodeAt(X);if(Ov(J,A,G,X)){W+=G.slice(q,X);break}if(A===92){W+=G.slice(q,X);let C=vv(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(A===8232||A===8233)++X,++Z,H=X;else if(A===10||A===13)if(J==="template"){if(W+=G.slice(q,X)+"\n",++X,A===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 Ov(J,G,X,H){if(J==="template")return G===96||G===36&&X.charCodeAt(H+1)===123;return G===(J==="double"?34:39)}function vv(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}=U7(J,G,X,H,2,!1,Q,V),Y(W===null?null:String.fromCharCode(W))}case 117:{let W;return{code:W,pos:G}=jQ(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 A=J.charCodeAt(G);if(q!=="0"||A===56||A===57)if(Z)return Y(null);else V.strictNumericEscape(W,X,H);return Y(String.fromCharCode(f))}return Y(String.fromCharCode(z))}}function U7(J,G,X,H,Z,V,Q,Y){let z=G,W;if({n:W,pos:G}=FQ(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 FQ(J,G,X,H,Z,V,Q,Y,z,W){let K=G,q=Z===16?qQ.hex:qQ.decBinOct,f=Z===16?YJ.hex:Z===10?YJ.dec:Z===8?YJ.oct:YJ.bin,A=!1,C=0;for(let l=0,O=V==null?1/0:V;l<O;++l){let v=J.charCodeAt(G),h;if(v===95&&Y!=="bail"){let U1=J.charCodeAt(G-1),e=J.charCodeAt(G+1);if(!Y){if(W)return{n:null,pos:G};z.numericSeparatorInEscapeSequence(G,X,H)}else if(Number.isNaN(e)||!f(e)||q.has(U1)||q.has(e)){if(W)return{n:null,pos:G};z.unexpectedNumericSeparator(G,X,H)}++G;continue}if(v>=97)h=v-97+10;else if(v>=65)h=v-65+10;else if(kv(v))h=v-48;else h=1/0;if(h>=Z)if(h<=9&&W)return{n:null,pos:G};else if(h<=9&&z.invalidDigit(G,X,H,Z))h=0;else if(Q)h=0,A=!0;else break;++G,C=C*Z+h}if(G===K||V!=null&&G-K!==V||A)return{n:null,pos:G};return{n:C,pos:G}}function jQ(J,G,X,H,Z,V){let Q=J.charCodeAt(G),Y;if(Q===123){if(++G,{code:Y,pos:G}=U7(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}=U7(J,G,X,H,4,!1,Z,V));return{code:Y,pos:G}}});var L0=S((IQ)=>{Object.defineProperty(IQ,"__esModule",{value:!0});IQ.UPDATE_OPERATORS=IQ.UNARY_OPERATORS=IQ.STRING_UNARY_OPERATORS=IQ.STATEMENT_OR_BLOCK_KEYS=IQ.NUMBER_UNARY_OPERATORS=IQ.NUMBER_BINARY_OPERATORS=IQ.NOT_LOCAL_BINDING=IQ.LOGICAL_OPERATORS=IQ.INHERIT_KEYS=IQ.FOR_INIT_KEYS=IQ.FLATTENABLE_KEYS=IQ.EQUALITY_BINARY_OPERATORS=IQ.COMPARISON_BINARY_OPERATORS=IQ.COMMENT_KEYS=IQ.BOOLEAN_UNARY_OPERATORS=IQ.BOOLEAN_NUMBER_BINARY_OPERATORS=IQ.BOOLEAN_BINARY_OPERATORS=IQ.BLOCK_SCOPED_SYMBOL=IQ.BINARY_OPERATORS=IQ.ASSIGNMENT_OPERATORS=void 0;var wN1=IQ.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],LN1=IQ.FLATTENABLE_KEYS=["body","expressions"],TN1=IQ.FOR_INIT_KEYS=["left","init"],NN1=IQ.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],hv=IQ.LOGICAL_OPERATORS=["||","&&","??"],kN1=IQ.UPDATE_OPERATORS=["++","--"],yv=IQ.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],mv=IQ.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],xv=IQ.COMPARISON_BINARY_OPERATORS=[...mv,"in","instanceof"],lv=IQ.BOOLEAN_BINARY_OPERATORS=[...xv,...yv],AQ=IQ.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],EN1=IQ.BINARY_OPERATORS=["+",...AQ,...lv,"|>"],ON1=IQ.ASSIGNMENT_OPERATORS=["=","+=",...AQ.map((J)=>J+"="),...hv.map((J)=>J+"=")],cv=IQ.BOOLEAN_UNARY_OPERATORS=["delete","!"],rv=IQ.NUMBER_UNARY_OPERATORS=["+","-","~"],av=IQ.STRING_UNARY_OPERATORS=["typeof"],vN1=IQ.UNARY_OPERATORS=["void","throw",...cv,...rv,...av],_N1=IQ.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},gN1=IQ.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),bN1=IQ.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var n2=S((kQ)=>{Object.defineProperty(kQ,"__esModule",{value:!0});kQ.VISITOR_KEYS=kQ.NODE_PARENT_VALIDATIONS=kQ.NODE_FIELDS=kQ.FLIPPED_ALIAS_KEYS=kQ.DEPRECATED_KEYS=kQ.BUILDER_KEYS=kQ.ALIAS_KEYS=void 0;kQ.arrayOf=PQ;kQ.arrayOfType=wQ;kQ.assertEach=LQ;kQ.assertNodeOrValueType=A_;kQ.assertNodeType=$J;kQ.assertOneOf=D_;kQ.assertOptionalChainStart=C_;kQ.assertShape=I_;kQ.assertValueType=M7;kQ.chain=TQ;kQ.default=NQ;kQ.defineAliasedType=w_;kQ.validate=R7;kQ.validateArrayOfType=f_;kQ.validateOptional=F_;kQ.validateOptionalType=j_;kQ.validateType=q_;var SQ=k5(),WJ=UJ(),$_=kQ.VISITOR_KEYS={},U_=kQ.ALIAS_KEYS={},K7=kQ.FLIPPED_ALIAS_KEYS={},K_=kQ.NODE_FIELDS={},B_=kQ.BUILDER_KEYS={},R_=kQ.DEPRECATED_KEYS={},M_=kQ.NODE_PARENT_VALIDATIONS={};function zJ(J){if(Array.isArray(J))return"array";else if(J===null)return"null";else return typeof J}function R7(J){return{validate:J}}function q_(...J){return R7($J(...J))}function F_(J){return{validate:J,optional:!0}}function j_(...J){return{validate:$J(...J),optional:!0}}function PQ(J){return TQ(M7("array"),LQ(J))}function wQ(...J){return PQ($J(...J))}function f_(...J){return R7(wQ(...J))}function LQ(J){let G=process.env.BABEL_TYPES_8_BREAKING?WJ.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 D_(...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 $J(...J){function G(X,H,Z){for(let V of J)if(SQ.default(V,Z)){WJ.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 A_(...J){function G(X,H,Z){for(let V of J)if(zJ(Z)===V||SQ.default(V,Z)){WJ.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 M7(J){function G(X,H,Z){if(zJ(Z)!==J)throw new TypeError(`Property ${H} expected type of ${J} but got ${zJ(Z)}`)}return G.type=J,G}function I_(J){function G(X,H,Z){let V=[];for(let Q of Object.keys(J))try{WJ.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 C_(){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 TQ(...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 S_=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),P_=new Set(["default","optional","deprecated","validate"]),B7={};function w_(...J){return(G,X={})=>{let H=X.aliases;if(!H){var Z,V;if(X.inherits)H=(Z=B7[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),NQ(G,X)}}function NQ(J,G={}){let X=G.inherits&&B7[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(!S_.has(Y))throw new Error(`Unknown type option "${Y}" on ${J}`);if(G.deprecatedAlias)R_[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=M7(zJ(z.default));for(let W of Object.keys(z))if(!P_.has(W))throw new Error(`Unknown field key "${W}" on ${J}.${Y}`)}if($_[J]=G.visitor=Z,B_[J]=G.builder=Q,K_[J]=G.fields=H,U_[J]=G.aliases=V,V.forEach((Y)=>{K7[Y]=K7[Y]||[],K7[Y].push(J)}),G.validate)M_[J]=G.validate;B7[J]=G}});var BJ=S((_Q)=>{Object.defineProperty(_Q,"__esModule",{value:!0});_Q.patternLikeCommon=_Q.functionTypeAnnotationCommon=_Q.functionDeclarationCommon=_Q.functionCommon=_Q.classMethodOrPropertyCommon=_Q.classMethodOrDeclareMethodCommon=void 0;var z2=k5(),n_=E5(),OQ=q9(),o_=DQ(),F9=L0(),M=n2(),c=M.defineAliasedType("Standardized");c("ArrayExpression",{fields:{elements:{validate:M.arrayOf(M.assertNodeOrValueType("null","Expression","SpreadElement")),default:!process.env.BABEL_TYPES_8_BREAKING?[]:void 0}},visitor:["elements"],aliases:["Expression"]});c("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){(z2.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"]});c("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"]});c("InterpreterDirective",{builder:["value"],fields:{value:{validate:M.assertValueType("string")}}});c("Directive",{visitor:["value"],fields:{value:{validate:M.assertNodeType("DirectiveLiteral")}}});c("DirectiveLiteral",{builder:["value"],fields:{value:{validate:M.assertValueType("string")}}});c("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:M.arrayOfType("Directive"),default:[]},body:M.validateArrayOfType("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});c("BreakStatement",{visitor:["label"],fields:{label:{validate:M.assertNodeType("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});c("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}})});c("CatchClause",{visitor:["param","body"],fields:{param:{validate:M.assertNodeType("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:M.assertNodeType("BlockStatement")}},aliases:["Scopable","BlockParent"]});c("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:M.assertNodeType("Expression")},consequent:{validate:M.assertNodeType("Expression")},alternate:{validate:M.assertNodeType("Expression")}},aliases:["Expression","Conditional"]});c("ContinueStatement",{visitor:["label"],fields:{label:{validate:M.assertNodeType("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});c("DebuggerStatement",{aliases:["Statement"]});c("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});c("EmptyStatement",{aliases:["Statement"]});c("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:M.assertNodeType("Expression")}},aliases:["Statement","ExpressionWrapper"]});c("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}}});c("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")}}});c("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 O5=()=>({params:M.validateArrayOfType("Identifier","Pattern","RestElement"),generator:{default:!1},async:{default:!1}});_Q.functionCommon=O5;var o0=()=>({returnType:{validate:M.assertNodeType("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:M.assertNodeType("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});_Q.functionTypeAnnotationCommon=o0;var vQ=()=>Object.assign({},O5(),{declare:{validate:M.assertValueType("boolean"),optional:!0},id:{validate:M.assertNodeType("Identifier"),optional:!0}});_Q.functionDeclarationCommon=vQ;c("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","returnType","body"],fields:Object.assign({},vQ(),o0(),{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(!z2.default("ExportDefaultDeclaration",G))J(H,"id",H.id)}}()});c("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},O5(),o0(),{id:{validate:M.assertNodeType("Identifier"),optional:!0},body:{validate:M.assertNodeType("BlockStatement")},predicate:{validate:M.assertNodeType("DeclaredPredicate","InferredPredicate"),optional:!0}})});var v5=()=>({typeAnnotation:{validate:M.assertNodeType("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:M.assertValueType("boolean"),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0}});_Q.patternLikeCommon=v5;c("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},v5(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertValueType("string"),Object.assign(function(J,G,X){if(!n_.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(z2.default("MemberExpression",J,V))return;if(z2.default("OptionalMemberExpression",J,V))return}else if(Z==="key"){if(z2.default("Property",J,V))return;if(z2.default("Method",J,V))return}else if(Z==="exported"){if(z2.default("ExportSpecifier",J))return}else if(Z==="imported"){if(z2.default("ImportSpecifier",J,{imported:X}))return}else if(Z==="meta"){if(z2.default("MetaProperty",J,{meta:X}))return}if((OQ.isKeyword(X.name)||OQ.isReservedWord(X.name,!1))&&X.name!=="this")throw new TypeError(`"${X.name}" is not a valid identifier`)}:void 0});c("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")}}});c("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:M.assertNodeType("Identifier")},body:{validate:M.assertNodeType("Statement")}}});c("StringLiteral",{builder:["value"],fields:{value:{validate:M.assertValueType("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});c("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"]});c("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});c("BooleanLiteral",{builder:["value"],fields:{value:{validate:M.assertValueType("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});c("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:""}}});c("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")}}});c("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}}:{})});c("NewExpression",{inherits:"CallExpression"});c("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"]});c("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:M.validateArrayOfType("ObjectMethod","ObjectProperty","SpreadElement")}});c("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},O5(),o0(),{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"]});c("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(!z2.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){(z2.default("ObjectPattern",X)?J:G)(Z,"value",Z.value)}}()});c("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},v5(),{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});c("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:M.assertNodeType("Expression"),optional:!0}}});c("SequenceExpression",{visitor:["expressions"],fields:{expressions:M.validateArrayOfType("Expression")},aliases:["Expression"]});c("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:M.assertNodeType("Expression")}}});c("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:M.assertNodeType("Expression"),optional:!0},consequent:M.validateArrayOfType("Statement")}});c("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:M.assertNodeType("Expression")},cases:M.validateArrayOfType("SwitchCase")}});c("ThisExpression",{aliases:["Expression"]});c("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:M.assertNodeType("Expression")}}});c("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")}}});c("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"]});c("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"]});c("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(z2.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});c("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")}}});c("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")}}});c("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")}}});c("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},v5(),{left:{validate:M.assertNodeType("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:M.assertNodeType("Expression")},decorators:{validate:M.arrayOfType("Decorator"),optional:!0}})});c("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},v5(),{elements:{validate:M.chain(M.assertValueType("array"),M.assertEach(M.assertNodeOrValueType("null","PatternLike","LVal")))}})});c("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},O5(),o0(),{expression:{validate:M.assertValueType("boolean")},body:{validate:M.assertNodeType("BlockStatement","Expression")},predicate:{validate:M.assertNodeType("DeclaredPredicate","InferredPredicate"),optional:!0}})});c("ClassBody",{visitor:["body"],fields:{body:M.validateArrayOfType("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});c("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}}});c("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(!z2.default("ExportDefaultDeclaration",G))J(H,"id",H.id)}}()});c("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")}}});c("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:M.validateType("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:M.validateOptional(M.assertOneOf("value"))}});c("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"))}});c("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}}});c("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(z2.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}}});c("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}}});c("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:M.assertNodeType("Identifier")}}});c("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:M.assertNodeType("Identifier")}}});c("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}}});c("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}}});c("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(!z2.default("Identifier",J.property,{name:H}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):M.assertNodeType("Identifier")},property:{validate:M.assertNodeType("Identifier")}}});var KJ=()=>({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"))}});_Q.classMethodOrPropertyCommon=KJ;var q7=()=>Object.assign({},O5(),KJ(),{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}});_Q.classMethodOrDeclareMethodCommon=q7;c("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({},q7(),o0(),{body:{validate:M.assertNodeType("BlockStatement")}})});c("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},v5(),{properties:M.validateArrayOfType("RestElement","ObjectProperty")})});c("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:M.assertNodeType("Expression")}}});c("Super",{aliases:["Expression"]});c("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}}});c("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}=o_.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}}});c("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}`)})}}});c("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")}}});c("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:M.assertNodeType("Expression")}}});c("Import",{aliases:["Expression"]});c("BigIntLiteral",{builder:["value"],fields:{value:{validate:M.assertValueType("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});c("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:M.assertNodeType("Identifier")}}});c("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())}}});c("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}}});c("ClassProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},KJ(),{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}})});c("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},KJ(),{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}})});c("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}}});c("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},q7(),o0(),{kind:{validate:M.assertOneOf("get","set","method"),default:"method"},key:{validate:M.assertNodeType("PrivateName")},body:{validate:M.assertNodeType("BlockStatement")}})});c("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:M.assertNodeType("Identifier")}}});c("StaticBlock",{visitor:["body"],fields:{body:M.validateArrayOfType("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]})});var bQ=S(()=>{var P=n2(),t=P.defineAliasedType("Flow"),F7=(J)=>{let G=J==="DeclareClass";t(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")})})};t("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});t("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:P.validateType("FlowType")}});t("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});t("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:P.validate(P.assertValueType("boolean"))}});t("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});t("ClassImplements",{visitor:["id","typeParameters"],fields:{id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterInstantiation")}});F7("DeclareClass");t("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier"),predicate:P.validateOptionalType("DeclaredPredicate")}});F7("DeclareInterface");t("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"))}});t("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:P.validateType("TypeAnnotation")}});t("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterDeclaration"),right:P.validateType("FlowType")}});t("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")}});t("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier")}});t("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"))}});t("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:P.validateType("StringLiteral"),exportKind:P.validateOptional(P.assertOneOf("type","value"))}});t("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:P.validateType("Flow")}});t("ExistsTypeAnnotation",{aliases:["FlowType"]});t("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")}});t("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:P.validateOptionalType("Identifier"),typeAnnotation:P.validateType("FlowType"),optional:P.validateOptional(P.assertValueType("boolean"))}});t("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:P.validateType("Identifier","QualifiedTypeIdentifier"),typeParameters:P.validateOptionalType("TypeParameterInstantiation")}});t("InferredPredicate",{aliases:["FlowPredicate"]});t("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:P.validateType("Identifier","QualifiedTypeIdentifier"),typeParameters:P.validateOptionalType("TypeParameterInstantiation")}});F7("InterfaceDeclaration");t("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:P.validateOptional(P.arrayOfType("InterfaceExtends")),body:P.validateType("ObjectTypeAnnotation")}});t("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:P.validate(P.arrayOfType("FlowType"))}});t("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});t("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});t("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:P.validateType("FlowType")}});t("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:P.validate(P.assertValueType("number"))}});t("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});t("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"))}});t("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"))}});t("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:P.validateType("FlowType"),static:P.validate(P.assertValueType("boolean"))}});t("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")}});t("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"))}});t("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:P.validateType("FlowType")}});t("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")}});t("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:P.validateType("Identifier"),qualification:P.validateType("Identifier","QualifiedTypeIdentifier")}});t("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:P.validate(P.assertValueType("string"))}});t("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});t("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});t("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});t("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:P.validate(P.arrayOfType("FlowType"))}});t("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:P.validateType("FlowType")}});t("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterDeclaration"),right:P.validateType("FlowType")}});t("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:P.validateType("FlowType")}});t("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:P.validateType("Expression"),typeAnnotation:P.validateType("TypeAnnotation")}});t("TypeParameter",{visitor:["bound","default","variance"],fields:{name:P.validate(P.assertValueType("string")),bound:P.validateOptionalType("TypeAnnotation"),default:P.validateOptionalType("FlowType"),variance:P.validateOptionalType("Variance")}});t("TypeParameterDeclaration",{visitor:["params"],fields:{params:P.validate(P.arrayOfType("TypeParameter"))}});t("TypeParameterInstantiation",{visitor:["params"],fields:{params:P.validate(P.arrayOfType("FlowType"))}});t("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:P.validate(P.arrayOfType("FlowType"))}});t("Variance",{builder:["kind"],fields:{kind:P.validate(P.assertOneOf("minus","plus"))}});t("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});t("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:P.validateType("Identifier"),body:P.validateType("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});t("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:P.validate(P.assertValueType("boolean")),members:P.validateArrayOfType("EnumBooleanMember"),hasUnknownMembers:P.validate(P.assertValueType("boolean"))}});t("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:P.validate(P.assertValueType("boolean")),members:P.validateArrayOfType("EnumNumberMember"),hasUnknownMembers:P.validate(P.assertValueType("boolean"))}});t("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:P.validate(P.assertValueType("boolean")),members:P.validateArrayOfType("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:P.validate(P.assertValueType("boolean"))}});t("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:P.validateArrayOfType("EnumDefaultedMember"),hasUnknownMembers:P.validate(P.assertValueType("boolean"))}});t("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:P.validateType("Identifier"),init:P.validateType("BooleanLiteral")}});t("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:P.validateType("Identifier"),init:P.validateType("NumericLiteral")}});t("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:P.validateType("Identifier"),init:P.validateType("StringLiteral")}});t("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:P.validateType("Identifier")}});t("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:P.validateType("FlowType"),indexType:P.validateType("FlowType")}});t("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:P.validateType("FlowType"),indexType:P.validateType("FlowType"),optional:P.validate(P.assertValueType("boolean"))}})});var hQ=S(()=>{var r1=n2(),W2=r1.defineAliasedType("JSX");W2("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:r1.assertNodeType("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:r1.assertNodeType("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});W2("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:r1.assertNodeType("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});W2("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:r1.assertNodeType("JSXOpeningElement")},closingElement:{optional:!0,validate:r1.assertNodeType("JSXClosingElement")},children:r1.validateArrayOfType("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:r1.assertValueType("boolean"),optional:!0}})});W2("JSXEmptyExpression",{});W2("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:r1.assertNodeType("Expression","JSXEmptyExpression")}}});W2("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:r1.assertNodeType("Expression")}}});W2("JSXIdentifier",{builder:["name"],fields:{name:{validate:r1.assertValueType("string")}}});W2("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:r1.assertNodeType("JSXMemberExpression","JSXIdentifier")},property:{validate:r1.assertNodeType("JSXIdentifier")}}});W2("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:r1.assertNodeType("JSXIdentifier")},name:{validate:r1.assertNodeType("JSXIdentifier")}}});W2("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:r1.assertNodeType("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:r1.validateArrayOfType("JSXAttribute","JSXSpreadAttribute"),typeParameters:{validate:r1.assertNodeType("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});W2("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:r1.assertNodeType("Expression")}}});W2("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:r1.assertValueType("string")}}});W2("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:r1.assertNodeType("JSXOpeningFragment")},closingFragment:{validate:r1.assertNodeType("JSXClosingFragment")},children:r1.validateArrayOfType("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});W2("JSXOpeningFragment",{aliases:["Immutable"]});W2("JSXClosingFragment",{aliases:["Immutable"]})});var D7=S((yQ)=>{Object.defineProperty(yQ,"__esModule",{value:!0});yQ.PLACEHOLDERS_FLIPPED_ALIAS=yQ.PLACEHOLDERS_ALIAS=yQ.PLACEHOLDERS=void 0;var Hg=n2(),Zg=yQ.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],f7=yQ.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let J of Zg){let G=Hg.ALIAS_KEYS[J];if(G!=null&&G.length)f7[J]=G}var j7=yQ.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(f7).forEach((J)=>{f7[J].forEach((G)=>{if(!hasOwnProperty.call(j7,G))j7[G]=[];j7[G].push(J)})})});var xQ=S(()=>{var RJ=n2(),Yg=D7(),zg=BJ(),A7=RJ.defineAliasedType("Miscellaneous");A7("Noop",{visitor:[]});A7("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:RJ.assertNodeType("Identifier")},expectedNode:{validate:RJ.assertOneOf(...Yg.PLACEHOLDERS)}},zg.patternLikeCommon())});A7("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:RJ.assertValueType("string")}}})});var lQ=S(()=>{var h1=n2();h1.default("ArgumentPlaceholder",{});h1.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:h1.assertNodeType("Expression")},callee:{validate:h1.assertNodeType("Expression")}}});h1.default("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:h1.assertNodeType("Identifier","StringLiteral")},value:{validate:h1.assertNodeType("StringLiteral")}}});h1.default("Decorator",{visitor:["expression"],fields:{expression:{validate:h1.assertNodeType("Expression")}}});h1.default("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:h1.assertNodeType("BlockStatement")},async:{validate:h1.assertValueType("boolean"),default:!1}}});h1.default("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:h1.assertNodeType("Identifier")}}});h1.default("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:h1.validateArrayOfType("ObjectProperty","SpreadElement")}});h1.default("TupleExpression",{fields:{elements:{validate:h1.arrayOfType("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});h1.default("DecimalLiteral",{builder:["value"],fields:{value:{validate:h1.assertValueType("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});h1.default("ModuleExpression",{visitor:["body"],fields:{body:{validate:h1.assertNodeType("Program")}},aliases:["Expression"]});h1.default("TopicReference",{aliases:["Expression"]});h1.default("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:h1.assertNodeType("Expression")}},aliases:["Expression"]});h1.default("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:h1.assertNodeType("Expression")}},aliases:["Expression"]});h1.default("PipelinePrimaryTopicReference",{aliases:["Expression"]})});var pQ=S(()=>{var b=n2(),cQ=BJ(),Wg=k5(),Q1=b.defineAliasedType("TypeScript"),f2=b.assertValueType("boolean"),rQ=()=>({returnType:{validate:b.assertNodeType("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:b.assertNodeType("TSTypeParameterDeclaration","Noop"),optional:!0}});Q1("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:b.assertOneOf("public","private","protected"),optional:!0},readonly:{validate:b.assertValueType("boolean"),optional:!0},parameter:{validate:b.assertNodeType("Identifier","AssignmentPattern")},override:{validate:b.assertValueType("boolean"),optional:!0},decorators:{validate:b.arrayOfType("Decorator"),optional:!0}}});Q1("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},cQ.functionDeclarationCommon(),rQ())});Q1("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},cQ.classMethodOrDeclareMethodCommon(),rQ())});Q1("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:b.validateType("TSEntityName"),right:b.validateType("Identifier")}});var MJ=()=>({typeParameters:b.validateOptionalType("TSTypeParameterDeclaration"),["parameters"]:b.validateArrayOfType("ArrayPattern","Identifier","ObjectPattern","RestElement"),["typeAnnotation"]:b.validateOptionalType("TSTypeAnnotation")}),aQ={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:MJ()};Q1("TSCallSignatureDeclaration",aQ);Q1("TSConstructSignatureDeclaration",aQ);var iQ=()=>({key:b.validateType("Expression"),computed:{default:!1},optional:b.validateOptional(f2)});Q1("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},iQ(),{readonly:b.validateOptional(f2),typeAnnotation:b.validateOptionalType("TSTypeAnnotation"),kind:{validate:b.assertOneOf("get","set")}})});Q1("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},MJ(),iQ(),{kind:{validate:b.assertOneOf("method","get","set")}})});Q1("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:b.validateOptional(f2),static:b.validateOptional(f2),parameters:b.validateArrayOfType("Identifier"),typeAnnotation:b.validateOptionalType("TSTypeAnnotation")}});var $g=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let J of $g)Q1(J,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});Q1("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var uQ={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};Q1("TSFunctionType",Object.assign({},uQ,{fields:MJ()}));Q1("TSConstructorType",Object.assign({},uQ,{fields:Object.assign({},MJ(),{abstract:b.validateOptional(f2)})}));Q1("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:b.validateType("TSEntityName"),typeParameters:b.validateOptionalType("TSTypeParameterInstantiation")}});Q1("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:b.validateType("Identifier","TSThisType"),typeAnnotation:b.validateOptionalType("TSTypeAnnotation"),asserts:b.validateOptional(f2)}});Q1("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:b.validateType("TSEntityName","TSImportType"),typeParameters:b.validateOptionalType("TSTypeParameterInstantiation")}});Q1("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:b.validateArrayOfType("TSTypeElement")}});Q1("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:b.validateType("TSType")}});Q1("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:b.validateArrayOfType("TSType","TSNamedTupleMember")}});Q1("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:b.validateType("TSType")}});Q1("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:b.validateType("TSType")}});Q1("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:b.validateType("Identifier"),optional:{validate:f2,default:!1},elementType:b.validateType("TSType")}});var dQ={aliases:["TSType"],visitor:["types"],fields:{types:b.validateArrayOfType("TSType")}};Q1("TSUnionType",dQ);Q1("TSIntersectionType",dQ);Q1("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:b.validateType("TSType"),extendsType:b.validateType("TSType"),trueType:b.validateType("TSType"),falseType:b.validateType("TSType")}});Q1("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:b.validateType("TSTypeParameter")}});Q1("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:b.validateType("TSType")}});Q1("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:b.validate(b.assertValueType("string")),typeAnnotation:b.validateType("TSType")}});Q1("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:b.validateType("TSType"),indexType:b.validateType("TSType")}});Q1("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:b.validateType("TSTypeParameter")},{readonly:b.validateOptional(b.assertOneOf(!0,!1,"+","-")),optional:b.validateOptional(b.assertOneOf(!0,!1,"+","-")),typeAnnotation:b.validateOptionalType("TSType"),nameType:b.validateOptionalType("TSType")})});Q1("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){let J=b.assertNodeType("NumericLiteral","BigIntLiteral"),G=b.assertOneOf("-"),X=b.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:b.validateType("TSEntityName"),typeParameters:b.validateOptionalType("TSTypeParameterInstantiation")}};Q1("TSExpressionWithTypeArguments",Ug);Q1("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:b.validateOptional(f2),id:b.validateType("Identifier"),typeParameters:b.validateOptionalType("TSTypeParameterDeclaration"),extends:b.validateOptional(b.arrayOfType("TSExpressionWithTypeArguments")),body:b.validateType("TSInterfaceBody")}});Q1("TSInterfaceBody",{visitor:["body"],fields:{body:b.validateArrayOfType("TSTypeElement")}});Q1("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:b.validateOptional(f2),id:b.validateType("Identifier"),typeParameters:b.validateOptionalType("TSTypeParameterDeclaration"),typeAnnotation:b.validateType("TSType")}});Q1("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:b.validateType("Expression"),typeParameters:b.validateOptionalType("TSTypeParameterInstantiation")}});var sQ={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:b.validateType("Expression"),typeAnnotation:b.validateType("TSType")}};Q1("TSAsExpression",sQ);Q1("TSSatisfiesExpression",sQ);Q1("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:b.validateType("TSType"),expression:b.validateType("Expression")}});Q1("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:b.validateOptional(f2),const:b.validateOptional(f2),id:b.validateType("Identifier"),members:b.validateArrayOfType("TSEnumMember"),initializer:b.validateOptionalType("Expression")}});Q1("TSEnumMember",{visitor:["id","initializer"],fields:{id:b.validateType("Identifier","StringLiteral"),initializer:b.validateOptionalType("Expression")}});Q1("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:b.validateOptional(f2),global:b.validateOptional(f2),id:b.validateType("Identifier","StringLiteral"),body:b.validateType("TSModuleBlock","TSModuleDeclaration")}});Q1("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:b.validateArrayOfType("Statement")}});Q1("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:b.validateType("StringLiteral"),qualifier:b.validateOptionalType("TSEntityName"),typeParameters:b.validateOptionalType("TSTypeParameterInstantiation"),options:{validate:b.assertNodeType("Expression"),optional:!0}}});Q1("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:b.validate(f2),id:b.validateType("Identifier"),moduleReference:b.validateType("TSEntityName","TSExternalModuleReference"),importKind:{validate:b.assertOneOf("type","value"),optional:!0}}});Q1("TSExternalModuleReference",{visitor:["expression"],fields:{expression:b.validateType("StringLiteral")}});Q1("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:b.validateType("Expression")}});Q1("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:b.validateType("Expression")}});Q1("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:b.validateType("Identifier")}});Q1("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:b.assertNodeType("TSType")}}});Q1("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:b.validateArrayOfType("TSType")}});Q1("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:b.validateArrayOfType("TSTypeParameter")}});Q1("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:b.assertValueType("string")},in:{validate:b.assertValueType("boolean"),optional:!0},out:{validate:b.assertValueType("boolean"),optional:!0},const:{validate:b.assertValueType("boolean"),optional:!0},constraint:{validate:b.assertNodeType("TSType"),optional:!0},default:{validate:b.assertNodeType("TSType"),optional:!0}}})});var eQ=S((nQ)=>{Object.defineProperty(nQ,"__esModule",{value:!0});nQ.DEPRECATED_ALIASES=void 0;var oN1=nQ.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var k2=S((S2)=>{Object.defineProperty(S2,"__esModule",{value:!0});Object.defineProperty(S2,"ALIAS_KEYS",{enumerable:!0,get:function(){return E2.ALIAS_KEYS}});Object.defineProperty(S2,"BUILDER_KEYS",{enumerable:!0,get:function(){return E2.BUILDER_KEYS}});Object.defineProperty(S2,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return I7.DEPRECATED_ALIASES}});Object.defineProperty(S2,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return E2.DEPRECATED_KEYS}});Object.defineProperty(S2,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return E2.FLIPPED_ALIAS_KEYS}});Object.defineProperty(S2,"NODE_FIELDS",{enumerable:!0,get:function(){return E2.NODE_FIELDS}});Object.defineProperty(S2,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return E2.NODE_PARENT_VALIDATIONS}});Object.defineProperty(S2,"PLACEHOLDERS",{enumerable:!0,get:function(){return C7.PLACEHOLDERS}});Object.defineProperty(S2,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return C7.PLACEHOLDERS_ALIAS}});Object.defineProperty(S2,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return C7.PLACEHOLDERS_FLIPPED_ALIAS}});S2.TYPES=void 0;Object.defineProperty(S2,"VISITOR_KEYS",{enumerable:!0,get:function(){return E2.VISITOR_KEYS}});BJ();bQ();hQ();xQ();lQ();pQ();var E2=n2(),C7=D7(),I7=eQ();Object.keys(I7.DEPRECATED_ALIASES).forEach((J)=>{E2.FLIPPED_ALIAS_KEYS[J]=E2.FLIPPED_ALIAS_KEYS[I7.DEPRECATED_ALIASES[J]]});var tN1=S2.TYPES=[].concat(Object.keys(E2.VISITOR_KEYS),Object.keys(E2.FLIPPED_ALIAS_KEYS),Object.keys(E2.DEPRECATED_KEYS))});var UJ=S((XY)=>{Object.defineProperty(XY,"__esModule",{value:!0});XY.default=Kg;XY.validateChild=GY;XY.validateField=JY;XY.validateInternal=Bg;var j9=k2();function Kg(J,G,X){if(!J)return;let H=j9.NODE_FIELDS[J.type];if(!H)return;let Z=H[G];JY(J,G,X,Z),GY(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=j9.NODE_PARENT_VALIDATIONS[Q])==null||V.call(j9.NODE_PARENT_VALIDATIONS,G,X,H)}}function JY(J,G,X,H){if(!(H!=null&&H.validate))return;if(H.optional&&X==null)return;H.validate(J,G,X)}function GY(J,G,X){var H;let Z=X==null?void 0:X.type;if(Z==null)return;(H=j9.NODE_PARENT_VALIDATIONS[Z])==null||H.call(j9.NODE_PARENT_VALIDATIONS,J,G,X)}});var $2=S((YY)=>{Object.defineProperty(YY,"__esModule",{value:!0});YY.anyTypeAnnotation=nb;YY.argumentPlaceholder=Py;YY.arrayExpression=Dg;YY.arrayPattern=Mb;YY.arrayTypeAnnotation=ob;YY.arrowFunctionExpression=qb;YY.assignmentExpression=Ag;YY.assignmentPattern=Rb;YY.awaitExpression=yb;YY.bigIntLiteral=xb;YY.binaryExpression=Ig;YY.bindExpression=wy;YY.blockStatement=wg;YY.booleanLiteral=ug;YY.booleanLiteralTypeAnnotation=tb;YY.booleanTypeAnnotation=eb;YY.breakStatement=Lg;YY.callExpression=Tg;YY.catchClause=Ng;YY.classAccessorProperty=ib;YY.classBody=Fb;YY.classDeclaration=fb;YY.classExpression=jb;YY.classImplements=Gh;YY.classMethod=Eb;YY.classPrivateMethod=db;YY.classPrivateProperty=ub;YY.classProperty=ab;YY.conditionalExpression=kg;YY.continueStatement=Eg;YY.debuggerStatement=Og;YY.decimalLiteral=vy;YY.declareClass=Xh;YY.declareExportAllDeclaration=Uh;YY.declareExportDeclaration=$h;YY.declareFunction=Hh;YY.declareInterface=Zh;YY.declareModule=Vh;YY.declareModuleExports=Qh;YY.declareOpaqueType=zh;YY.declareTypeAlias=Yh;YY.declareVariable=Wh;YY.declaredPredicate=Kh;YY.decorator=Ty;YY.directive=Sg;YY.directiveLiteral=Pg;YY.doExpression=Ny;YY.doWhileStatement=vg;YY.emptyStatement=_g;YY.emptyTypeAnnotation=Ch;YY.enumBooleanBody=oh;YY.enumBooleanMember=Gy;YY.enumDeclaration=nh;YY.enumDefaultedMember=Zy;YY.enumNumberBody=eh;YY.enumNumberMember=Xy;YY.enumStringBody=th;YY.enumStringMember=Hy;YY.enumSymbolBody=Jy;YY.existsTypeAnnotation=Bh;YY.exportAllDeclaration=Db;YY.exportDefaultDeclaration=Ab;YY.exportDefaultSpecifier=ky;YY.exportNamedDeclaration=Ib;YY.exportNamespaceSpecifier=lb;YY.exportSpecifier=Cb;YY.expressionStatement=gg;YY.file=bg;YY.forInStatement=hg;YY.forOfStatement=Sb;YY.forStatement=yg;YY.functionDeclaration=mg;YY.functionExpression=xg;YY.functionTypeAnnotation=Rh;YY.functionTypeParam=Mh;YY.genericTypeAnnotation=qh;YY.identifier=lg;YY.ifStatement=cg;YY.import=mb;YY.importAttribute=Ly;YY.importDeclaration=Pb;YY.importDefaultSpecifier=wb;YY.importExpression=Nb;YY.importNamespaceSpecifier=Lb;YY.importSpecifier=Tb;YY.indexedAccessType=Vy;YY.inferredPredicate=Fh;YY.interfaceDeclaration=fh;YY.interfaceExtends=jh;YY.interfaceTypeAnnotation=Dh;YY.interpreterDirective=Cg;YY.intersectionTypeAnnotation=Ah;YY.jSXAttribute=YY.jsxAttribute=Yy;YY.jSXClosingElement=YY.jsxClosingElement=zy;YY.jSXClosingFragment=YY.jsxClosingFragment=Ay;YY.jSXElement=YY.jsxElement=Wy;YY.jSXEmptyExpression=YY.jsxEmptyExpression=$y;YY.jSXExpressionContainer=YY.jsxExpressionContainer=Uy;YY.jSXFragment=YY.jsxFragment=fy;YY.jSXIdentifier=YY.jsxIdentifier=By;YY.jSXMemberExpression=YY.jsxMemberExpression=Ry;YY.jSXNamespacedName=YY.jsxNamespacedName=My;YY.jSXOpeningElement=YY.jsxOpeningElement=qy;YY.jSXOpeningFragment=YY.jsxOpeningFragment=Dy;YY.jSXSpreadAttribute=YY.jsxSpreadAttribute=Fy;YY.jSXSpreadChild=YY.jsxSpreadChild=Ky;YY.jSXText=YY.jsxText=jy;YY.labeledStatement=rg;YY.logicalExpression=dg;YY.memberExpression=sg;YY.metaProperty=kb;YY.mixedTypeAnnotation=Ih;YY.moduleExpression=_y;YY.newExpression=pg;YY.noop=Iy;YY.nullLiteral=ig;YY.nullLiteralTypeAnnotation=Jh;YY.nullableTypeAnnotation=Sh;YY.numberLiteral=nm;YY.numberLiteralTypeAnnotation=Ph;YY.numberTypeAnnotation=wh;YY.numericLiteral=HY;YY.objectExpression=og;YY.objectMethod=eg;YY.objectPattern=Ob;YY.objectProperty=tg;YY.objectTypeAnnotation=Lh;YY.objectTypeCallProperty=Nh;YY.objectTypeIndexer=kh;YY.objectTypeInternalSlot=Th;YY.objectTypeProperty=Eh;YY.objectTypeSpreadProperty=Oh;YY.opaqueType=vh;YY.optionalCallExpression=rb;YY.optionalIndexedAccessType=Qy;YY.optionalMemberExpression=cb;YY.parenthesizedExpression=Xb;YY.pipelineBareFunction=hy;YY.pipelinePrimaryTopicReference=yy;YY.pipelineTopicExpression=by;YY.placeholder=Cy;YY.privateName=sb;YY.program=ng;YY.qualifiedTypeIdentifier=_h;YY.recordExpression=Ey;YY.regExpLiteral=ZY;YY.regexLiteral=om;YY.restElement=VY;YY.restProperty=em;YY.returnStatement=Jb;YY.sequenceExpression=Gb;YY.spreadElement=QY;YY.spreadProperty=tm;YY.staticBlock=pb;YY.stringLiteral=ag;YY.stringLiteralTypeAnnotation=gh;YY.stringTypeAnnotation=bh;YY.super=vb;YY.switchCase=Hb;YY.switchStatement=Zb;YY.symbolTypeAnnotation=hh;YY.taggedTemplateExpression=_b;YY.templateElement=gb;YY.templateLiteral=bb;YY.thisExpression=Vb;YY.thisTypeAnnotation=yh;YY.throwStatement=Qb;YY.topicReference=gy;YY.tryStatement=Yb;YY.tSAnyKeyword=YY.tsAnyKeyword=sy;YY.tSArrayType=YY.tsArrayType=Rm;YY.tSAsExpression=YY.tsAsExpression=vm;YY.tSBigIntKeyword=YY.tsBigIntKeyword=ny;YY.tSBooleanKeyword=YY.tsBooleanKeyword=py;YY.tSCallSignatureDeclaration=YY.tsCallSignatureDeclaration=ry;YY.tSConditionalType=YY.tsConditionalType=Am;YY.tSConstructSignatureDeclaration=YY.tsConstructSignatureDeclaration=ay;YY.tSConstructorType=YY.tsConstructorType=Wm;YY.tSDeclareFunction=YY.tsDeclareFunction=xy;YY.tSDeclareMethod=YY.tsDeclareMethod=ly;YY.tSEnumDeclaration=YY.tsEnumDeclaration=bm;YY.tSEnumMember=YY.tsEnumMember=hm;YY.tSExportAssignment=YY.tsExportAssignment=am;YY.tSExpressionWithTypeArguments=YY.tsExpressionWithTypeArguments=Tm;YY.tSExternalModuleReference=YY.tsExternalModuleReference=cm;YY.tSFunctionType=YY.tsFunctionType=zm;YY.tSImportEqualsDeclaration=YY.tsImportEqualsDeclaration=lm;YY.tSImportType=YY.tsImportType=xm;YY.tSIndexSignature=YY.tsIndexSignature=dy;YY.tSIndexedAccessType=YY.tsIndexedAccessType=Pm;YY.tSInferType=YY.tsInferType=Im;YY.tSInstantiationExpression=YY.tsInstantiationExpression=Om;YY.tSInterfaceBody=YY.tsInterfaceBody=km;YY.tSInterfaceDeclaration=YY.tsInterfaceDeclaration=Nm;YY.tSIntersectionType=YY.tsIntersectionType=Dm;YY.tSIntrinsicKeyword=YY.tsIntrinsicKeyword=oy;YY.tSLiteralType=YY.tsLiteralType=Lm;YY.tSMappedType=YY.tsMappedType=wm;YY.tSMethodSignature=YY.tsMethodSignature=uy;YY.tSModuleBlock=YY.tsModuleBlock=mm;YY.tSModuleDeclaration=YY.tsModuleDeclaration=ym;YY.tSNamedTupleMember=YY.tsNamedTupleMember=jm;YY.tSNamespaceExportDeclaration=YY.tsNamespaceExportDeclaration=im;YY.tSNeverKeyword=YY.tsNeverKeyword=ey;YY.tSNonNullExpression=YY.tsNonNullExpression=rm;YY.tSNullKeyword=YY.tsNullKeyword=ty;YY.tSNumberKeyword=YY.tsNumberKeyword=Jm;YY.tSObjectKeyword=YY.tsObjectKeyword=Gm;YY.tSOptionalType=YY.tsOptionalType=qm;YY.tSParameterProperty=YY.tsParameterProperty=my;YY.tSParenthesizedType=YY.tsParenthesizedType=Cm;YY.tSPropertySignature=YY.tsPropertySignature=iy;YY.tSQualifiedName=YY.tsQualifiedName=cy;YY.tSRestType=YY.tsRestType=Fm;YY.tSSatisfiesExpression=YY.tsSatisfiesExpression=_m;YY.tSStringKeyword=YY.tsStringKeyword=Xm;YY.tSSymbolKeyword=YY.tsSymbolKeyword=Hm;YY.tSThisType=YY.tsThisType=Ym;YY.tSTupleType=YY.tsTupleType=Mm;YY.tSTypeAliasDeclaration=YY.tsTypeAliasDeclaration=Em;YY.tSTypeAnnotation=YY.tsTypeAnnotation=um;YY.tSTypeAssertion=YY.tsTypeAssertion=gm;YY.tSTypeLiteral=YY.tsTypeLiteral=Bm;YY.tSTypeOperator=YY.tsTypeOperator=Sm;YY.tSTypeParameter=YY.tsTypeParameter=pm;YY.tSTypeParameterDeclaration=YY.tsTypeParameterDeclaration=sm;YY.tSTypeParameterInstantiation=YY.tsTypeParameterInstantiation=dm;YY.tSTypePredicate=YY.tsTypePredicate=Um;YY.tSTypeQuery=YY.tsTypeQuery=Km;YY.tSTypeReference=YY.tsTypeReference=$m;YY.tSUndefinedKeyword=YY.tsUndefinedKeyword=Zm;YY.tSUnionType=YY.tsUnionType=fm;YY.tSUnknownKeyword=YY.tsUnknownKeyword=Vm;YY.tSVoidKeyword=YY.tsVoidKeyword=Qm;YY.tupleExpression=Oy;YY.tupleTypeAnnotation=mh;YY.typeAlias=lh;YY.typeAnnotation=ch;YY.typeCastExpression=rh;YY.typeParameter=ah;YY.typeParameterDeclaration=ih;YY.typeParameterInstantiation=uh;YY.typeofTypeAnnotation=xh;YY.unaryExpression=zb;YY.unionTypeAnnotation=dh;YY.updateExpression=Wb;YY.v8IntrinsicIdentifier=Sy;YY.variableDeclaration=$b;YY.variableDeclarator=Ub;YY.variance=sh;YY.voidTypeAnnotation=ph;YY.whileStatement=Kb;YY.withStatement=Bb;YY.yieldExpression=hb;var jg=UJ(),qJ=K9(),fg=n2(),{validateInternal:U}=jg,{NODE_FIELDS:I}=fg;function Dg(J=[]){let G={type:"ArrayExpression",elements:J},X=I.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=I.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=I.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=I.InterpreterDirective;return U(X.value,G,"value",J),G}function Sg(J){let G={type:"Directive",value:J},X=I.Directive;return U(X.value,G,"value",J,1),G}function Pg(J){let G={type:"DirectiveLiteral",value:J},X=I.DirectiveLiteral;return U(X.value,G,"value",J),G}function wg(J,G=[]){let X={type:"BlockStatement",body:J,directives:G},H=I.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=I.BreakStatement;return U(X.label,G,"label",J,1),G}function Tg(J,G){let X={type:"CallExpression",callee:J,arguments:G},H=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.StringLiteral;return U(X.value,G,"value",J),G}function HY(J){let G={type:"NumericLiteral",value:J},X=I.NumericLiteral;return U(X.value,G,"value",J),G}function ig(){return{type:"NullLiteral"}}function ug(J){let G={type:"BooleanLiteral",value:J},X=I.BooleanLiteral;return U(X.value,G,"value",J),G}function ZY(J,G=""){let X={type:"RegExpLiteral",pattern:J,flags:G},H=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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 VY(J){let G={type:"RestElement",argument:J},X=I.RestElement;return U(X.argument,G,"argument",J,1),G}function Jb(J=null){let G={type:"ReturnStatement",argument:J},X=I.ReturnStatement;return U(X.argument,G,"argument",J,1),G}function Gb(J){let G={type:"SequenceExpression",expressions:J},X=I.SequenceExpression;return U(X.expressions,G,"expressions",J,1),G}function Xb(J){let G={type:"ParenthesizedExpression",expression:J},X=I.ParenthesizedExpression;return U(X.expression,G,"expression",J,1),G}function Hb(J=null,G){let X={type:"SwitchCase",test:J,consequent:G},H=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.ExportAllDeclaration;return U(X.source,G,"source",J,1),G}function Ab(J){let G={type:"ExportDefaultDeclaration",declaration:J},X=I.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=I.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=I.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=I.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=I.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=I.ImportDefaultSpecifier;return U(X.local,G,"local",J,1),G}function Lb(J){let G={type:"ImportNamespaceSpecifier",local:J},X=I.ImportNamespaceSpecifier;return U(X.local,G,"local",J,1),G}function Tb(J,G){let X={type:"ImportSpecifier",local:J,imported:G},H=I.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=I.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=I.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=I.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=I.ObjectPattern;return U(X.properties,G,"properties",J,1),G}function QY(J){let G={type:"SpreadElement",argument:J},X=I.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=I.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=I.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=I.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=I.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=I.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=I.BigIntLiteral;return U(X.value,G,"value",J),G}function lb(J){let G={type:"ExportNamespaceSpecifier",exported:J},X=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.PrivateName;return U(X.id,G,"id",J,1),G}function pb(J){let G={type:"StaticBlock",body:J},X=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.DeclareExportAllDeclaration;return U(X.source,G,"source",J,1),G}function Kh(J){let G={type:"DeclaredPredicate",value:J},X=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.NullableTypeAnnotation;return U(X.typeAnnotation,G,"typeAnnotation",J,1),G}function Ph(J){let G={type:"NumberLiteralTypeAnnotation",value:J},X=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.TupleTypeAnnotation;return U(X.types,G,"types",J,1),G}function xh(J){let G={type:"TypeofTypeAnnotation",argument:J},X=I.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=I.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=I.TypeAnnotation;return U(X.typeAnnotation,G,"typeAnnotation",J,1),G}function rh(J,G){let X={type:"TypeCastExpression",expression:J,typeAnnotation:G},H=I.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=I.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=I.TypeParameterDeclaration;return U(X.params,G,"params",J,1),G}function uh(J){let G={type:"TypeParameterInstantiation",params:J},X=I.TypeParameterInstantiation;return U(X.params,G,"params",J,1),G}function dh(J){let G={type:"UnionTypeAnnotation",types:J},X=I.UnionTypeAnnotation;return U(X.types,G,"types",J,1),G}function sh(J){let G={type:"Variance",kind:J},X=I.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=I.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=I.EnumBooleanBody;return U(X.members,G,"members",J,1),G}function eh(J){let G={type:"EnumNumberBody",members:J,explicitType:null,hasUnknownMembers:null},X=I.EnumNumberBody;return U(X.members,G,"members",J,1),G}function th(J){let G={type:"EnumStringBody",members:J,explicitType:null,hasUnknownMembers:null},X=I.EnumStringBody;return U(X.members,G,"members",J,1),G}function Jy(J){let G={type:"EnumSymbolBody",members:J,hasUnknownMembers:null},X=I.EnumSymbolBody;return U(X.members,G,"members",J,1),G}function Gy(J){let G={type:"EnumBooleanMember",id:J,init:null},X=I.EnumBooleanMember;return U(X.id,G,"id",J,1),G}function Xy(J,G){let X={type:"EnumNumberMember",id:J,init:G},H=I.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=I.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=I.EnumDefaultedMember;return U(X.id,G,"id",J,1),G}function Vy(J,G){let X={type:"IndexedAccessType",objectType:J,indexType:G},H=I.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=I.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=I.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=I.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=I.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=I.JSXExpressionContainer;return U(X.expression,G,"expression",J,1),G}function Ky(J){let G={type:"JSXSpreadChild",expression:J},X=I.JSXSpreadChild;return U(X.expression,G,"expression",J,1),G}function By(J){let G={type:"JSXIdentifier",name:J},X=I.JSXIdentifier;return U(X.name,G,"name",J),G}function Ry(J,G){let X={type:"JSXMemberExpression",object:J,property:G},H=I.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=I.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=I.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=I.JSXSpreadAttribute;return U(X.argument,G,"argument",J,1),G}function jy(J){let G={type:"JSXText",value:J},X=I.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=I.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=I.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=I.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=I.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=I.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=I.Decorator;return U(X.expression,G,"expression",J,1),G}function Ny(J,G=!1){let X={type:"DoExpression",body:J,async:G},H=I.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=I.ExportDefaultSpecifier;return U(X.exported,G,"exported",J,1),G}function Ey(J){let G={type:"RecordExpression",properties:J},X=I.RecordExpression;return U(X.properties,G,"properties",J,1),G}function Oy(J=[]){let G={type:"TupleExpression",elements:J},X=I.TupleExpression;return U(X.elements,G,"elements",J,1),G}function vy(J){let G={type:"DecimalLiteral",value:J},X=I.DecimalLiteral;return U(X.value,G,"value",J),G}function _y(J){let G={type:"ModuleExpression",body:J},X=I.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=I.PipelineTopicExpression;return U(X.expression,G,"expression",J,1),G}function hy(J){let G={type:"PipelineBareFunction",callee:J},X=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.TSTypeLiteral;return U(X.members,G,"members",J,1),G}function Rm(J){let G={type:"TSArrayType",elementType:J},X=I.TSArrayType;return U(X.elementType,G,"elementType",J,1),G}function Mm(J){let G={type:"TSTupleType",elementTypes:J},X=I.TSTupleType;return U(X.elementTypes,G,"elementTypes",J,1),G}function qm(J){let G={type:"TSOptionalType",typeAnnotation:J},X=I.TSOptionalType;return U(X.typeAnnotation,G,"typeAnnotation",J,1),G}function Fm(J){let G={type:"TSRestType",typeAnnotation:J},X=I.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=I.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=I.TSUnionType;return U(X.types,G,"types",J,1),G}function Dm(J){let G={type:"TSIntersectionType",types:J},X=I.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=I.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=I.TSInferType;return U(X.typeParameter,G,"typeParameter",J,1),G}function Cm(J){let G={type:"TSParenthesizedType",typeAnnotation:J},X=I.TSParenthesizedType;return U(X.typeAnnotation,G,"typeAnnotation",J,1),G}function Sm(J){let G={type:"TSTypeOperator",typeAnnotation:J,operator:null},X=I.TSTypeOperator;return U(X.typeAnnotation,G,"typeAnnotation",J,1),G}function Pm(J,G){let X={type:"TSIndexedAccessType",objectType:J,indexType:G},H=I.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=I.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=I.TSLiteralType;return U(X.literal,G,"literal",J,1),G}function Tm(J,G=null){let X={type:"TSExpressionWithTypeArguments",expression:J,typeParameters:G},H=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.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=I.TSExternalModuleReference;return U(X.expression,G,"expression",J,1),G}function rm(J){let G={type:"TSNonNullExpression",expression:J},X=I.TSNonNullExpression;return U(X.expression,G,"expression",J,1),G}function am(J){let G={type:"TSExportAssignment",expression:J},X=I.TSExportAssignment;return U(X.expression,G,"expression",J,1),G}function im(J){let G={type:"TSNamespaceExportDeclaration",id:J},X=I.TSNamespaceExportDeclaration;return U(X.id,G,"id",J,1),G}function um(J){let G={type:"TSTypeAnnotation",typeAnnotation:J},X=I.TSTypeAnnotation;return U(X.typeAnnotation,G,"typeAnnotation",J,1),G}function dm(J){let G={type:"TSTypeParameterInstantiation",params:J},X=I.TSTypeParameterInstantiation;return U(X.params,G,"params",J,1),G}function sm(J){let G={type:"TSTypeParameterDeclaration",params:J},X=I.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=I.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 qJ.default("NumberLiteral","NumericLiteral","The node type "),HY(J)}function om(J,G=""){return qJ.default("RegexLiteral","RegExpLiteral","The node type "),ZY(J,G)}function em(J){return qJ.default("RestProperty","RestElement","The node type "),VY(J)}function tm(J){return qJ.default("SpreadProperty","SpreadElement","The node type "),QY(J)}});var WY=S((zY)=>{Object.defineProperty(zY,"__esModule",{value:!0});zY.default=xa;var ya=$2(),ma=q1();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 UY=S(($Y)=>{Object.defineProperty($Y,"__esModule",{value:!0});$Y.default=ra;var S7=i1(),ca=WY();function ra(J){let G=[];for(let X=0;X<J.children.length;X++){let H=J.children[X];if(S7.isJSXText(H)){ca.default(H,G);continue}if(S7.isJSXExpressionContainer(H))H=H.expression;if(S7.isJSXEmptyExpression(H))continue;G.push(H)}return G}});var P7=S((KY)=>{Object.defineProperty(KY,"__esModule",{value:!0});KY.default=ua;var ia=k2();function ua(J){return!!(J&&ia.VISITOR_KEYS[J.type])}});var RY=S((BY)=>{Object.defineProperty(BY,"__esModule",{value:!0});BY.default=pa;var sa=P7();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 qY=S((MY)=>{Object.defineProperty(MY,"__esModule",{value:!0});MY.assertAccessor=Kn;MY.assertAnyTypeAnnotation=Ou;MY.assertArgumentPlaceholder=Ys;MY.assertArrayExpression=ea;MY.assertArrayPattern=ni;MY.assertArrayTypeAnnotation=vu;MY.assertArrowFunctionExpression=oi;MY.assertAssignmentExpression=ta;MY.assertAssignmentPattern=pi;MY.assertAwaitExpression=Du;MY.assertBigIntLiteral=Iu;MY.assertBinary=_p;MY.assertBinaryExpression=Ji;MY.assertBindExpression=zs;MY.assertBlock=hp;MY.assertBlockParent=bp;MY.assertBlockStatement=Zi;MY.assertBooleanLiteral=Pi;MY.assertBooleanLiteralTypeAnnotation=gu;MY.assertBooleanTypeAnnotation=_u;MY.assertBreakStatement=Vi;MY.assertCallExpression=Qi;MY.assertCatchClause=Yi;MY.assertClass=zn;MY.assertClassAccessorProperty=Lu;MY.assertClassBody=ei;MY.assertClassDeclaration=Ju;MY.assertClassExpression=ti;MY.assertClassImplements=hu;MY.assertClassMethod=Ku;MY.assertClassPrivateMethod=Nu;MY.assertClassPrivateProperty=Tu;MY.assertClassProperty=wu;MY.assertCompletionStatement=xp;MY.assertConditional=lp;MY.assertConditionalExpression=zi;MY.assertContinueStatement=Wi;MY.assertDebuggerStatement=$i;MY.assertDecimalLiteral=Ms;MY.assertDeclaration=np;MY.assertDeclareClass=yu;MY.assertDeclareExportAllDeclaration=du;MY.assertDeclareExportDeclaration=uu;MY.assertDeclareFunction=mu;MY.assertDeclareInterface=xu;MY.assertDeclareModule=lu;MY.assertDeclareModuleExports=cu;MY.assertDeclareOpaqueType=au;MY.assertDeclareTypeAlias=ru;MY.assertDeclareVariable=iu;MY.assertDeclaredPredicate=su;MY.assertDecorator=$s;MY.assertDirective=Xi;MY.assertDirectiveLiteral=Hi;MY.assertDoExpression=Us;MY.assertDoWhileStatement=Ui;MY.assertEmptyStatement=Ki;MY.assertEmptyTypeAnnotation=Vd;MY.assertEnumBody=fn;MY.assertEnumBooleanBody=vd;MY.assertEnumBooleanMember=hd;MY.assertEnumDeclaration=Od;MY.assertEnumDefaultedMember=xd;MY.assertEnumMember=Dn;MY.assertEnumNumberBody=_d;MY.assertEnumNumberMember=yd;MY.assertEnumStringBody=gd;MY.assertEnumStringMember=md;MY.assertEnumSymbolBody=bd;MY.assertExistsTypeAnnotation=pu;MY.assertExportAllDeclaration=Gu;MY.assertExportDeclaration=$n;MY.assertExportDefaultDeclaration=Xu;MY.assertExportDefaultSpecifier=Ks;MY.assertExportNamedDeclaration=Hu;MY.assertExportNamespaceSpecifier=Cu;MY.assertExportSpecifier=Zu;MY.assertExpression=vp;MY.assertExpressionStatement=Bi;MY.assertExpressionWrapper=ap;MY.assertFile=Ri;MY.assertFlow=Rn;MY.assertFlowBaseAnnotation=qn;MY.assertFlowDeclaration=Fn;MY.assertFlowPredicate=jn;MY.assertFlowType=Mn;MY.assertFor=ip;MY.assertForInStatement=Mi;MY.assertForOfStatement=Vu;MY.assertForStatement=qi;MY.assertForXStatement=up;MY.assertFunction=dp;MY.assertFunctionDeclaration=Fi;MY.assertFunctionExpression=ji;MY.assertFunctionParent=sp;MY.assertFunctionTypeAnnotation=nu;MY.assertFunctionTypeParam=ou;MY.assertGenericTypeAnnotation=eu;MY.assertIdentifier=fi;MY.assertIfStatement=Di;MY.assertImmutable=Gn;MY.assertImport=Au;MY.assertImportAttribute=Ws;MY.assertImportDeclaration=Qu;MY.assertImportDefaultSpecifier=Yu;MY.assertImportExpression=$u;MY.assertImportNamespaceSpecifier=zu;MY.assertImportOrExportDeclaration=Wn;MY.assertImportSpecifier=Wu;MY.assertIndexedAccessType=ld;MY.assertInferredPredicate=tu;MY.assertInterfaceDeclaration=Gd;MY.assertInterfaceExtends=Jd;MY.assertInterfaceTypeAnnotation=Xd;MY.assertInterpreterDirective=Gi;MY.assertIntersectionTypeAnnotation=Hd;MY.assertJSX=An;MY.assertJSXAttribute=rd;MY.assertJSXClosingElement=ad;MY.assertJSXClosingFragment=Hs;MY.assertJSXElement=id;MY.assertJSXEmptyExpression=ud;MY.assertJSXExpressionContainer=dd;MY.assertJSXFragment=Gs;MY.assertJSXIdentifier=pd;MY.assertJSXMemberExpression=nd;MY.assertJSXNamespacedName=od;MY.assertJSXOpeningElement=ed;MY.assertJSXOpeningFragment=Xs;MY.assertJSXSpreadAttribute=td;MY.assertJSXSpreadChild=sd;MY.assertJSXText=Js;MY.assertLVal=ep;MY.assertLabeledStatement=Ai;MY.assertLiteral=Jn;MY.assertLogicalExpression=Li;MY.assertLoop=cp;MY.assertMemberExpression=Ti;MY.assertMetaProperty=Uu;MY.assertMethod=Hn;MY.assertMiscellaneous=In;MY.assertMixedTypeAnnotation=Zd;MY.assertModuleDeclaration=En;MY.assertModuleExpression=qs;MY.assertModuleSpecifier=Un;MY.assertNewExpression=Ni;MY.assertNoop=Zs;MY.assertNullLiteral=Si;MY.assertNullLiteralTypeAnnotation=bu;MY.assertNullableTypeAnnotation=Qd;MY.assertNumberLiteral=Ln;MY.assertNumberLiteralTypeAnnotation=Yd;MY.assertNumberTypeAnnotation=zd;MY.assertNumericLiteral=Ci;MY.assertObjectExpression=Ei;MY.assertObjectMember=Zn;MY.assertObjectMethod=Oi;MY.assertObjectPattern=Bu;MY.assertObjectProperty=vi;MY.assertObjectTypeAnnotation=Wd;MY.assertObjectTypeCallProperty=Ud;MY.assertObjectTypeIndexer=Kd;MY.assertObjectTypeInternalSlot=$d;MY.assertObjectTypeProperty=Bd;MY.assertObjectTypeSpreadProperty=Rd;MY.assertOpaqueType=Md;MY.assertOptionalCallExpression=Pu;MY.assertOptionalIndexedAccessType=cd;MY.assertOptionalMemberExpression=Su;MY.assertParenthesizedExpression=hi;MY.assertPattern=Yn;MY.assertPatternLike=op;MY.assertPipelineBareFunction=fs;MY.assertPipelinePrimaryTopicReference=Ds;MY.assertPipelineTopicExpression=js;MY.assertPlaceholder=Vs;MY.assertPrivate=Bn;MY.assertPrivateName=ku;MY.assertProgram=ki;MY.assertProperty=Vn;MY.assertPureish=pp;MY.assertQualifiedTypeIdentifier=qd;MY.assertRecordExpression=Bs;MY.assertRegExpLiteral=wi;MY.assertRegexLiteral=Tn;MY.assertRestElement=_i;MY.assertRestProperty=Nn;MY.assertReturnStatement=gi;MY.assertScopable=gp;MY.assertSequenceExpression=bi;MY.assertSpreadElement=Ru;MY.assertSpreadProperty=kn;MY.assertStandardized=Op;MY.assertStatement=yp;MY.assertStaticBlock=Eu;MY.assertStringLiteral=Ii;MY.assertStringLiteralTypeAnnotation=Fd;MY.assertStringTypeAnnotation=jd;MY.assertSuper=Mu;MY.assertSwitchCase=yi;MY.assertSwitchStatement=mi;MY.assertSymbolTypeAnnotation=fd;MY.assertTSAnyKeyword=ks;MY.assertTSArrayType=ns;MY.assertTSAsExpression=Mp;MY.assertTSBaseType=wn;MY.assertTSBigIntKeyword=Os;MY.assertTSBooleanKeyword=Es;MY.assertTSCallSignatureDeclaration=Ps;MY.assertTSConditionalType=Hp;MY.assertTSConstructSignatureDeclaration=ws;MY.assertTSConstructorType=is;MY.assertTSDeclareFunction=Is;MY.assertTSDeclareMethod=Cs;MY.assertTSEntityName=tp;MY.assertTSEnumDeclaration=jp;MY.assertTSEnumMember=fp;MY.assertTSExportAssignment=wp;MY.assertTSExpressionWithTypeArguments=$p;MY.assertTSExternalModuleReference=Sp;MY.assertTSFunctionType=as;MY.assertTSImportEqualsDeclaration=Cp;MY.assertTSImportType=Ip;MY.assertTSIndexSignature=Ns;MY.assertTSIndexedAccessType=Yp;MY.assertTSInferType=Zp;MY.assertTSInstantiationExpression=Rp;MY.assertTSInterfaceBody=Kp;MY.assertTSInterfaceDeclaration=Up;MY.assertTSIntersectionType=Xp;MY.assertTSIntrinsicKeyword=vs;MY.assertTSLiteralType=Wp;MY.assertTSMappedType=zp;MY.assertTSMethodSignature=Ts;MY.assertTSModuleBlock=Ap;MY.assertTSModuleDeclaration=Dp;MY.assertTSNamedTupleMember=Jp;MY.assertTSNamespaceExportDeclaration=Lp;MY.assertTSNeverKeyword=_s;MY.assertTSNonNullExpression=Pp;MY.assertTSNullKeyword=gs;MY.assertTSNumberKeyword=bs;MY.assertTSObjectKeyword=hs;MY.assertTSOptionalType=es;MY.assertTSParameterProperty=As;MY.assertTSParenthesizedType=Vp;MY.assertTSPropertySignature=Ls;MY.assertTSQualifiedName=Ss;MY.assertTSRestType=ts;MY.assertTSSatisfiesExpression=qp;MY.assertTSStringKeyword=ys;MY.assertTSSymbolKeyword=ms;MY.assertTSThisType=rs;MY.assertTSTupleType=os;MY.assertTSType=Pn;MY.assertTSTypeAliasDeclaration=Bp;MY.assertTSTypeAnnotation=Tp;MY.assertTSTypeAssertion=Fp;MY.assertTSTypeElement=Sn;MY.assertTSTypeLiteral=ps;MY.assertTSTypeOperator=Qp;MY.assertTSTypeParameter=Ep;MY.assertTSTypeParameterDeclaration=kp;MY.assertTSTypeParameterInstantiation=Np;MY.assertTSTypePredicate=ds;MY.assertTSTypeQuery=ss;MY.assertTSTypeReference=us;MY.assertTSUndefinedKeyword=xs;MY.assertTSUnionType=Gp;MY.assertTSUnknownKeyword=ls;MY.assertTSVoidKeyword=cs;MY.assertTaggedTemplateExpression=qu;MY.assertTemplateElement=Fu;MY.assertTemplateLiteral=ju;MY.assertTerminatorless=mp;MY.assertThisExpression=xi;MY.assertThisTypeAnnotation=Dd;MY.assertThrowStatement=li;MY.assertTopicReference=Fs;MY.assertTryStatement=ci;MY.assertTupleExpression=Rs;MY.assertTupleTypeAnnotation=Ad;MY.assertTypeAlias=Cd;MY.assertTypeAnnotation=Sd;MY.assertTypeCastExpression=Pd;MY.assertTypeParameter=wd;MY.assertTypeParameterDeclaration=Ld;MY.assertTypeParameterInstantiation=Td;MY.assertTypeScript=Cn;MY.assertTypeofTypeAnnotation=Id;MY.assertUnaryExpression=ri;MY.assertUnaryLike=Qn;MY.assertUnionTypeAnnotation=Nd;MY.assertUpdateExpression=ai;MY.assertUserWhitespacable=Xn;MY.assertV8IntrinsicIdentifier=Qs;MY.assertVariableDeclaration=ii;MY.assertVariableDeclarator=ui;MY.assertVariance=kd;MY.assertVoidTypeAnnotation=Ed;MY.assertWhile=rp;MY.assertWhileStatement=di;MY.assertWithStatement=si;MY.assertYieldExpression=fu;var oa=k5(),f9=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){f9.default("assertNumberLiteral","assertNumericLiteral"),B("NumberLiteral",J,G)}function Tn(J,G){f9.default("assertRegexLiteral","assertRegExpLiteral"),B("RegexLiteral",J,G)}function Nn(J,G){f9.default("assertRestProperty","assertRestElement"),B("RestProperty",J,G)}function kn(J,G){f9.default("assertSpreadProperty","assertSpreadElement"),B("SpreadProperty",J,G)}function En(J,G){f9.default("assertModuleDeclaration","assertImportOrExportDeclaration"),B("ModuleDeclaration",J,G)}});var fY=S((FY)=>{Object.defineProperty(FY,"__esModule",{value:!0});FY.default=void 0;var l2=$2(),_E1=FY.default=R01;function R01(J){switch(J){case"string":return l2.stringTypeAnnotation();case"number":return l2.numberTypeAnnotation();case"undefined":return l2.voidTypeAnnotation();case"boolean":return l2.booleanTypeAnnotation();case"function":return l2.genericTypeAnnotation(l2.identifier("Function"));case"object":return l2.genericTypeAnnotation(l2.identifier("Object"));case"symbol":return l2.genericTypeAnnotation(l2.identifier("Symbol"));case"bigint":return l2.anyTypeAnnotation()}throw new Error("Invalid typeof value: "+J)}});var w7=S((IY)=>{Object.defineProperty(IY,"__esModule",{value:!0});IY.default=AY;var D9=i1();function DY(J){return D9.isIdentifier(J)?J.name:`${J.id.name}.${DY(J.qualification)}`}function AY(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(D9.isAnyTypeAnnotation(Y))return[Y];if(D9.isFlowBaseAnnotation(Y)){H.set(Y.type,Y);continue}if(D9.isUnionTypeAnnotation(Y)){if(!Z.has(Y.types))G.push(...Y.types),Z.add(Y.types);continue}if(D9.isGenericTypeAnnotation(Y)){let z=DY(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=AY(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 SY=S((CY)=>{Object.defineProperty(CY,"__esModule",{value:!0});CY.default=j01;var q01=$2(),F01=w7();function j01(J){let G=F01.default(J);if(G.length===1)return G[0];else return q01.unionTypeAnnotation(G)}});var TY=S((LY)=>{Object.defineProperty(LY,"__esModule",{value:!0});LY.default=wY;var A9=i1();function PY(J){return A9.isIdentifier(J)?J.name:`${J.right.name}.${PY(J.left)}`}function wY(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(A9.isTSAnyKeyword(Y))return[Y];if(A9.isTSBaseType(Y)){H.set(Y.type,Y);continue}if(A9.isTSUnionType(Y)){if(!Z.has(Y.types))G.push(...Y.types),Z.add(Y.types);continue}if(A9.isTSTypeReference(Y)&&Y.typeParameters){let z=PY(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=wY(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 kY=S((NY)=>{Object.defineProperty(NY,"__esModule",{value:!0});NY.default=S01;var A01=$2(),I01=TY(),C01=i1();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 EY=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=$2()});var L7=S((vY)=>{Object.defineProperty(vY,"__esModule",{value:!0});vY.buildUndefinedNode=w01;var OY=$2();function w01(){return OY.unaryExpression("void",OY.numericLiteral(0),!0)}});var T0=S((yY)=>{Object.defineProperty(yY,"__esModule",{value:!0});yY.default=T01;var _Y=k2(),gY=i1(),{hasOwn:o2}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function bY(J,G,X,H){if(J&&typeof J.type==="string")return hY(J,G,X,H);return J}function T7(J,G,X,H){if(Array.isArray(J))return J.map((Z)=>bY(Z,G,X,H));return bY(J,G,X,H)}function T01(J,G=!0,X=!1){return hY(J,G,X,new Map)}function hY(J,G=!0,X=!1,H){if(!J)return J;let{type:Z}=J,V={type:J.type};if(gY.isIdentifier(J)){if(V.name=J.name,o2(J,"optional")&&typeof J.optional==="boolean")V.optional=J.optional;if(o2(J,"typeAnnotation"))V.typeAnnotation=G?T7(J.typeAnnotation,!0,X,H):J.typeAnnotation;if(o2(J,"decorators"))V.decorators=G?T7(J.decorators,!0,X,H):J.decorators}else if(!o2(_Y.NODE_FIELDS,Z))throw new Error(`Unknown node type: "${Z}"`);else for(let Q of Object.keys(_Y.NODE_FIELDS[Z]))if(o2(J,Q))if(G)V[Q]=gY.isFile(J)&&Q==="comments"?FJ(J.comments,G,X,H):T7(J[Q],!0,X,H);else V[Q]=J[Q];if(o2(J,"loc"))if(X)V.loc=null;else V.loc=J.loc;if(o2(J,"leadingComments"))V.leadingComments=FJ(J.leadingComments,G,X,H);if(o2(J,"innerComments"))V.innerComments=FJ(J.innerComments,G,X,H);if(o2(J,"trailingComments"))V.trailingComments=FJ(J.trailingComments,G,X,H);if(o2(J,"extra"))V.extra=Object.assign({},J.extra);return V}function FJ(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 xY=S((mY)=>{Object.defineProperty(mY,"__esModule",{value:!0});mY.default=E01;var k01=T0();function E01(J){return k01.default(J,!1)}});var cY=S((lY)=>{Object.defineProperty(lY,"__esModule",{value:!0});lY.default=_01;var v01=T0();function _01(J){return v01.default(J)}});var aY=S((rY)=>{Object.defineProperty(rY,"__esModule",{value:!0});rY.default=h01;var b01=T0();function h01(J){return b01.default(J,!0,!0)}});var uY=S((iY)=>{Object.defineProperty(iY,"__esModule",{value:!0});iY.default=x01;var m01=T0();function x01(J){return m01.default(J,!1,!0)}});var N7=S((dY)=>{Object.defineProperty(dY,"__esModule",{value:!0});dY.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 pY=S((sY)=>{Object.defineProperty(sY,"__esModule",{value:!0});sY.default=i01;var a01=N7();function i01(J,G,X,H){return a01.default(J,G,[{type:H?"CommentLine":"CommentBlock",value:X}])}});var jJ=S((nY)=>{Object.defineProperty(nY,"__esModule",{value:!0});nY.default=d01;function d01(J,G,X){if(G&&X)G[J]=Array.from(new Set([].concat(G[J],X[J]).filter(Boolean)))}});var k7=S((oY)=>{Object.defineProperty(oY,"__esModule",{value:!0});oY.default=n01;var p01=jJ();function n01(J,G){p01.default("innerComments",J,G)}});var E7=S((eY)=>{Object.defineProperty(eY,"__esModule",{value:!0});eY.default=t01;var e01=jJ();function t01(J,G){e01.default("leadingComments",J,G)}});var O7=S((tY)=>{Object.defineProperty(tY,"__esModule",{value:!0});tY.default=X51;var G51=jJ();function X51(J,G){G51.default("trailingComments",J,G)}});var v7=S((Jz)=>{Object.defineProperty(Jz,"__esModule",{value:!0});Jz.default=Y51;var Z51=O7(),V51=E7(),Q51=k7();function Y51(J,G){return Z51.default(J,G),V51.default(J,G),Q51.default(J,G),J}});var Xz=S((Gz)=>{Object.defineProperty(Gz,"__esModule",{value:!0});Gz.default=$51;var W51=L0();function $51(J){return W51.COMMENT_KEYS.forEach((G)=>{J[G]=null}),J}});var Vz=S((Hz)=>{Object.defineProperty(Hz,"__esModule",{value:!0});Hz.WHILE_TYPES=Hz.USERWHITESPACABLE_TYPES=Hz.UNARYLIKE_TYPES=Hz.TYPESCRIPT_TYPES=Hz.TSTYPE_TYPES=Hz.TSTYPEELEMENT_TYPES=Hz.TSENTITYNAME_TYPES=Hz.TSBASETYPE_TYPES=Hz.TERMINATORLESS_TYPES=Hz.STATEMENT_TYPES=Hz.STANDARDIZED_TYPES=Hz.SCOPABLE_TYPES=Hz.PUREISH_TYPES=Hz.PROPERTY_TYPES=Hz.PRIVATE_TYPES=Hz.PATTERN_TYPES=Hz.PATTERNLIKE_TYPES=Hz.OBJECTMEMBER_TYPES=Hz.MODULESPECIFIER_TYPES=Hz.MODULEDECLARATION_TYPES=Hz.MISCELLANEOUS_TYPES=Hz.METHOD_TYPES=Hz.LVAL_TYPES=Hz.LOOP_TYPES=Hz.LITERAL_TYPES=Hz.JSX_TYPES=Hz.IMPORTOREXPORTDECLARATION_TYPES=Hz.IMMUTABLE_TYPES=Hz.FUNCTION_TYPES=Hz.FUNCTIONPARENT_TYPES=Hz.FOR_TYPES=Hz.FORXSTATEMENT_TYPES=Hz.FLOW_TYPES=Hz.FLOWTYPE_TYPES=Hz.FLOWPREDICATE_TYPES=Hz.FLOWDECLARATION_TYPES=Hz.FLOWBASEANNOTATION_TYPES=Hz.EXPRESSION_TYPES=Hz.EXPRESSIONWRAPPER_TYPES=Hz.EXPORTDECLARATION_TYPES=Hz.ENUMMEMBER_TYPES=Hz.ENUMBODY_TYPES=Hz.DECLARATION_TYPES=Hz.CONDITIONAL_TYPES=Hz.COMPLETIONSTATEMENT_TYPES=Hz.CLASS_TYPES=Hz.BLOCK_TYPES=Hz.BLOCKPARENT_TYPES=Hz.BINARY_TYPES=Hz.ACCESSOR_TYPES=void 0;var $1=k2(),GO1=Hz.STANDARDIZED_TYPES=$1.FLIPPED_ALIAS_KEYS.Standardized,XO1=Hz.EXPRESSION_TYPES=$1.FLIPPED_ALIAS_KEYS.Expression,HO1=Hz.BINARY_TYPES=$1.FLIPPED_ALIAS_KEYS.Binary,ZO1=Hz.SCOPABLE_TYPES=$1.FLIPPED_ALIAS_KEYS.Scopable,VO1=Hz.BLOCKPARENT_TYPES=$1.FLIPPED_ALIAS_KEYS.BlockParent,QO1=Hz.BLOCK_TYPES=$1.FLIPPED_ALIAS_KEYS.Block,YO1=Hz.STATEMENT_TYPES=$1.FLIPPED_ALIAS_KEYS.Statement,zO1=Hz.TERMINATORLESS_TYPES=$1.FLIPPED_ALIAS_KEYS.Terminatorless,WO1=Hz.COMPLETIONSTATEMENT_TYPES=$1.FLIPPED_ALIAS_KEYS.CompletionStatement,$O1=Hz.CONDITIONAL_TYPES=$1.FLIPPED_ALIAS_KEYS.Conditional,UO1=Hz.LOOP_TYPES=$1.FLIPPED_ALIAS_KEYS.Loop,KO1=Hz.WHILE_TYPES=$1.FLIPPED_ALIAS_KEYS.While,BO1=Hz.EXPRESSIONWRAPPER_TYPES=$1.FLIPPED_ALIAS_KEYS.ExpressionWrapper,RO1=Hz.FOR_TYPES=$1.FLIPPED_ALIAS_KEYS.For,MO1=Hz.FORXSTATEMENT_TYPES=$1.FLIPPED_ALIAS_KEYS.ForXStatement,qO1=Hz.FUNCTION_TYPES=$1.FLIPPED_ALIAS_KEYS.Function,FO1=Hz.FUNCTIONPARENT_TYPES=$1.FLIPPED_ALIAS_KEYS.FunctionParent,jO1=Hz.PUREISH_TYPES=$1.FLIPPED_ALIAS_KEYS.Pureish,fO1=Hz.DECLARATION_TYPES=$1.FLIPPED_ALIAS_KEYS.Declaration,DO1=Hz.PATTERNLIKE_TYPES=$1.FLIPPED_ALIAS_KEYS.PatternLike,AO1=Hz.LVAL_TYPES=$1.FLIPPED_ALIAS_KEYS.LVal,IO1=Hz.TSENTITYNAME_TYPES=$1.FLIPPED_ALIAS_KEYS.TSEntityName,CO1=Hz.LITERAL_TYPES=$1.FLIPPED_ALIAS_KEYS.Literal,SO1=Hz.IMMUTABLE_TYPES=$1.FLIPPED_ALIAS_KEYS.Immutable,PO1=Hz.USERWHITESPACABLE_TYPES=$1.FLIPPED_ALIAS_KEYS.UserWhitespacable,wO1=Hz.METHOD_TYPES=$1.FLIPPED_ALIAS_KEYS.Method,LO1=Hz.OBJECTMEMBER_TYPES=$1.FLIPPED_ALIAS_KEYS.ObjectMember,TO1=Hz.PROPERTY_TYPES=$1.FLIPPED_ALIAS_KEYS.Property,NO1=Hz.UNARYLIKE_TYPES=$1.FLIPPED_ALIAS_KEYS.UnaryLike,kO1=Hz.PATTERN_TYPES=$1.FLIPPED_ALIAS_KEYS.Pattern,EO1=Hz.CLASS_TYPES=$1.FLIPPED_ALIAS_KEYS.Class,K51=Hz.IMPORTOREXPORTDECLARATION_TYPES=$1.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,OO1=Hz.EXPORTDECLARATION_TYPES=$1.FLIPPED_ALIAS_KEYS.ExportDeclaration,vO1=Hz.MODULESPECIFIER_TYPES=$1.FLIPPED_ALIAS_KEYS.ModuleSpecifier,_O1=Hz.ACCESSOR_TYPES=$1.FLIPPED_ALIAS_KEYS.Accessor,gO1=Hz.PRIVATE_TYPES=$1.FLIPPED_ALIAS_KEYS.Private,bO1=Hz.FLOW_TYPES=$1.FLIPPED_ALIAS_KEYS.Flow,hO1=Hz.FLOWTYPE_TYPES=$1.FLIPPED_ALIAS_KEYS.FlowType,yO1=Hz.FLOWBASEANNOTATION_TYPES=$1.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,mO1=Hz.FLOWDECLARATION_TYPES=$1.FLIPPED_ALIAS_KEYS.FlowDeclaration,xO1=Hz.FLOWPREDICATE_TYPES=$1.FLIPPED_ALIAS_KEYS.FlowPredicate,lO1=Hz.ENUMBODY_TYPES=$1.FLIPPED_ALIAS_KEYS.EnumBody,cO1=Hz.ENUMMEMBER_TYPES=$1.FLIPPED_ALIAS_KEYS.EnumMember,rO1=Hz.JSX_TYPES=$1.FLIPPED_ALIAS_KEYS.JSX,aO1=Hz.MISCELLANEOUS_TYPES=$1.FLIPPED_ALIAS_KEYS.Miscellaneous,iO1=Hz.TYPESCRIPT_TYPES=$1.FLIPPED_ALIAS_KEYS.TypeScript,uO1=Hz.TSTYPEELEMENT_TYPES=$1.FLIPPED_ALIAS_KEYS.TSTypeElement,dO1=Hz.TSTYPE_TYPES=$1.FLIPPED_ALIAS_KEYS.TSType,sO1=Hz.TSBASETYPE_TYPES=$1.FLIPPED_ALIAS_KEYS.TSBaseType,pO1=Hz.MODULEDECLARATION_TYPES=K51});var g7=S((Qz)=>{Object.defineProperty(Qz,"__esModule",{value:!0});Qz.default=z91;var fJ=i1(),_7=$2();function z91(J,G){if(fJ.isBlockStatement(J))return J;let X=[];if(fJ.isEmptyStatement(J))X=[];else{if(!fJ.isStatement(J))if(fJ.isFunction(G))J=_7.returnStatement(J);else J=_7.expressionStatement(J);X=[J]}return _7.blockStatement(X)}});var zz=S((Yz)=>{Object.defineProperty(Yz,"__esModule",{value:!0});Yz.default=U91;var $91=g7();function U91(J,G="body"){let X=$91.default(J[G],J);return J[G]=X,X}});var b7=S((Wz)=>{Object.defineProperty(Wz,"__esModule",{value:!0});Wz.default=M91;var B91=E5(),R91=q9();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 Uz=S(($z)=>{Object.defineProperty($z,"__esModule",{value:!0});$z.default=j91;var F91=b7();function j91(J){if(J=F91.default(J),J==="eval"||J==="arguments")J="_"+J;return J}});var Bz=S((Kz)=>{Object.defineProperty(Kz,"__esModule",{value:!0});Kz.default=I91;var D91=i1(),A91=$2();function I91(J,G=J.key||J.property){if(!J.computed&&D91.isIdentifier(G))G=A91.stringLiteral(G.name);return G}});var qz=S((Rz)=>{Object.defineProperty(Rz,"__esModule",{value:!0});Rz.default=void 0;var I9=i1(),Xv1=Rz.default=S91;function S91(J){if(I9.isExpressionStatement(J))J=J.expression;if(I9.isExpression(J))return J;if(I9.isClass(J))J.type="ClassExpression";else if(I9.isFunction(J))J.type="FunctionExpression";if(!I9.isExpression(J))throw new Error(`cannot turn ${J.type} to an expression`);return J}});var y7=S((Fz)=>{Object.defineProperty(Fz,"__esModule",{value:!0});Fz.default=h7;var P91=k2();function h7(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)h7(Q,G,X);else h7(V,G,X)}}});var m7=S((fz)=>{Object.defineProperty(fz,"__esModule",{value:!0});fz.default=N91;var L91=L0(),jz=["tokens","start","end","loc","raw","rawValue"],T91=[...L91.COMMENT_KEYS,"comments",...jz];function N91(J,G={}){let X=G.preserveComments?jz: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 x7=S((Dz)=>{Object.defineProperty(Dz,"__esModule",{value:!0});Dz.default=v91;var E91=y7(),O91=m7();function v91(J,G){return E91.default(J,O91.default,G),J}});var Cz=S((Iz)=>{Object.defineProperty(Iz,"__esModule",{value:!0});Iz.default=e0;var Az=i1(),g91=T0(),b91=x7();function e0(J,G=J.key){let X;if(J.kind==="method")return e0.increment()+"";else if(Az.isIdentifier(G))X=G.name;else if(Az.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}e0.uid=0;e0.increment=function(){if(e0.uid>=Number.MAX_SAFE_INTEGER)return e0.uid=0;else return e0.uid++}});var wz=S((Sz)=>{Object.defineProperty(Sz,"__esModule",{value:!0});Sz.default=void 0;var DJ=i1(),y91=$2(),zv1=Sz.default=m91;function m91(J,G){if(DJ.isStatement(J))return J;let X=!1,H;if(DJ.isClass(J))X=!0,H="ClassDeclaration";else if(DJ.isFunction(J))X=!0,H="FunctionDeclaration";else if(DJ.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 Nz=S((Lz)=>{Object.defineProperty(Lz,"__esModule",{value:!0});Lz.default=void 0;var x91=E5(),H2=$2(),$v1=Lz.default=l7,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 l7(J){if(J===void 0)return H2.identifier("undefined");if(J===!0||J===!1)return H2.booleanLiteral(J);if(J===null)return H2.nullLiteral();if(typeof J==="string")return H2.stringLiteral(J);if(typeof J==="number"){let G;if(Number.isFinite(J))G=H2.numericLiteral(Math.abs(J));else{let X;if(Number.isNaN(J))X=H2.numericLiteral(0);else X=H2.numericLiteral(1);G=H2.binaryExpression("/",X,H2.numericLiteral(0))}if(J<0||Object.is(J,-0))G=H2.unaryExpression("-",G);return G}if(c91(J)){let G=J.source,X=/\/([a-z]*)$/.exec(J.toString())[1];return H2.regExpLiteral(G,X)}if(Array.isArray(J))return H2.arrayExpression(J.map(l7));if(r91(J)){let G=[];for(let X of Object.keys(J)){let H;if(x91.default(X))H=H2.identifier(X);else H=H2.stringLiteral(X);G.push(H2.objectProperty(H,l7(J[X])))}return H2.objectExpression(G)}throw new Error("don't know how to turn this value into a node")}});var Ez=S((kz)=>{Object.defineProperty(kz,"__esModule",{value:!0});kz.default=i91;var a91=$2();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 _z=S((vz)=>{Object.defineProperty(vz,"__esModule",{value:!0});vz.default=s91;var Oz=L0(),d91=v7();function s91(J,G){if(!J||!G)return J;for(let X of Oz.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 Oz.INHERIT_KEYS.force)J[X]=G[X];return d91.default(J,G),J}});var bz=S((gz)=>{Object.defineProperty(gz,"__esModule",{value:!0});gz.default=e91;var n91=$2(),o91=q1();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 yz=S((hz)=>{Object.defineProperty(hz,"__esModule",{value:!0});hz.default=J81;function J81(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 C9=S((mz)=>{Object.defineProperty(mz,"__esModule",{value:!0});mz.default=c7;var z0=i1();function c7(J,G,X,H){let Z=[].concat(J),V=Object.create(null);while(Z.length){let Q=Z.shift();if(!Q)continue;if(H&&(z0.isAssignmentExpression(Q)||z0.isUnaryExpression(Q)||z0.isUpdateExpression(Q)))continue;if(z0.isIdentifier(Q)){if(G)(V[Q.name]=V[Q.name]||[]).push(Q);else V[Q.name]=Q;continue}if(z0.isExportDeclaration(Q)&&!z0.isExportAllDeclaration(Q)){if(z0.isDeclaration(Q.declaration))Z.push(Q.declaration);continue}if(X){if(z0.isFunctionDeclaration(Q)){Z.push(Q.id);continue}if(z0.isFunctionExpression(Q))continue}let Y=c7.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 X81={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"]};c7.keys=X81});var cz=S((xz)=>{Object.defineProperty(xz,"__esModule",{value:!0});xz.default=void 0;var Z81=C9(),Fv1=xz.default=V81;function V81(J,G){return Z81.default(J,G,!0)}});var iz=S((az)=>{Object.defineProperty(az,"__esModule",{value:!0});az.default=Y81;var O2=i1();function Q81(J){if(O2.isNullLiteral(J))return"null";if(O2.isRegExpLiteral(J))return`/${J.pattern}/${J.flags}`;if(O2.isTemplateLiteral(J))return J.quasis.map((G)=>G.value.raw).join("");if(J.value!==void 0)return String(J.value);return null}function rz(J){if(!J.computed||O2.isLiteral(J.key))return J.key}function Y81(J,G){if("id"in J&&J.id)return{name:J.id.name,originalNode:J.id};let X="",H;if(O2.isObjectProperty(G,{value:J}))H=rz(G);else if(O2.isObjectMethod(J)||O2.isClassMethod(J)){if(H=rz(J),J.kind==="get")X="get ";else if(J.kind==="set")X="set "}else if(O2.isVariableDeclarator(G,{init:J}))H=G.id;else if(O2.isAssignmentExpression(G,{operator:"=",right:J}))H=G.left;if(!H)return null;let Z=O2.isLiteral(H)?Q81(H):O2.isIdentifier(H)?H.name:O2.isPrivateName(H)?H.id.name:null;if(Z==null)return null;return{name:X+Z,originalNode:H}}});var dz=S((uz)=>{Object.defineProperty(uz,"__esModule",{value:!0});uz.default=$81;var W81=k2();function $81(J,G,X){if(typeof G==="function")G={enter:G};let{enter:H,exit:Z}=G;r7(J,H,Z,X,[])}function r7(J,G,X,H,Z){let V=W81.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}),r7(W,G,X,H,Z),Z.pop()}else if(Y)Z.push({node:J,key:Q}),r7(Y,G,X,H,Z),Z.pop()}if(X)X(J,Z,H)}});var pz=S((sz)=>{Object.defineProperty(sz,"__esModule",{value:!0});sz.default=B81;var K81=C9();function B81(J,G,X){if(X&&J.type==="Identifier"&&G.type==="ObjectProperty"&&X.type==="ObjectExpression")return!1;let H=K81.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 a7=S((nz)=>{Object.defineProperty(nz,"__esModule",{value:!0});nz.default=F81;var M81=i1(),q81=L0();function F81(J){return M81.isVariableDeclaration(J)&&(J.kind!=="var"||J[q81.BLOCK_SCOPED_SYMBOL])}});var tz=S((ez)=>{Object.defineProperty(ez,"__esModule",{value:!0});ez.default=D81;var oz=i1(),f81=a7();function D81(J){return oz.isFunctionDeclaration(J)||oz.isClassDeclaration(J)||f81.default(J)}});var GW=S((JW)=>{Object.defineProperty(JW,"__esModule",{value:!0});JW.default=S81;var I81=QJ(),C81=i1();function S81(J){if(I81.default(J.type,"Immutable"))return!0;if(C81.isIdentifier(J))if(J.name==="undefined")return!0;else return!1;return!1}});var ZW=S((HW)=>{Object.defineProperty(HW,"__esModule",{value:!0});HW.default=i7;var XW=k2();function i7(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(XW.NODE_FIELDS[J.type]||J.type),H=XW.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(!i7(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(!i7(V,Q))return!1}return!0}});var QW=S((VW)=>{Object.defineProperty(VW,"__esModule",{value:!0});VW.default=L81;function L81(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 zW=S((YW)=>{Object.defineProperty(YW,"__esModule",{value:!0});YW.default=N81;var t0=i1();function N81(J,G){if(t0.isBlockStatement(J)&&(t0.isFunction(G)||t0.isCatchClause(G)))return!1;if(t0.isPattern(J)&&(t0.isFunction(G)||t0.isCatchClause(G)))return!0;return t0.isScopable(J)}});var UW=S(($W)=>{Object.defineProperty($W,"__esModule",{value:!0});$W.default=E81;var WW=i1();function E81(J){return WW.isImportDefaultSpecifier(J)||WW.isIdentifier(J.imported||J.exported,{name:"default"})}});var BW=S((KW)=>{Object.defineProperty(KW,"__esModule",{value:!0});KW.default=g81;var v81=E5(),_81=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 g81(J){return v81.default(J)&&!_81.has(J)}});var MW=S((RW)=>{Object.defineProperty(RW,"__esModule",{value:!0});RW.default=m81;var h81=i1(),y81=L0();function m81(J){return h81.isVariableDeclaration(J,{kind:"var"})&&!J[y81.BLOCK_SCOPED_SYMBOL]}});var FW=S((qW)=>{Object.defineProperty(qW,"__esModule",{value:!0});qW.default=AJ;var l81=C9(),J5=i1(),u7=$2(),d7=L7(),c81=T0();function AJ(J,G){let X=[],H=!0;for(let Z of J){if(!J5.isEmptyStatement(Z))H=!1;if(J5.isExpression(Z))X.push(Z);else if(J5.isExpressionStatement(Z))X.push(Z.expression);else if(J5.isVariableDeclaration(Z)){if(Z.kind!=="var")return;for(let V of Z.declarations){let Q=l81.default(V);for(let Y of Object.keys(Q))G.push({kind:Z.kind,id:c81.default(Q[Y])});if(V.init)X.push(u7.assignmentExpression("=",V.id,V.init))}H=!0}else if(J5.isIfStatement(Z)){let V=Z.consequent?AJ([Z.consequent],G):d7.buildUndefinedNode(),Q=Z.alternate?AJ([Z.alternate],G):d7.buildUndefinedNode();if(!V||!Q)return;X.push(u7.conditionalExpression(Z.test,V,Q))}else if(J5.isBlockStatement(Z)){let V=AJ(Z.body,G);if(!V)return;X.push(V)}else if(J5.isEmptyStatement(Z)){if(J.indexOf(Z)===0)H=!0}else return}if(H)X.push(d7.buildUndefinedNode());if(X.length===1)return X[0];else return u7.sequenceExpression(X)}});var fW=S((jW)=>{Object.defineProperty(jW,"__esModule",{value:!0});jW.default=i81;var a81=FW();function i81(J,G){if(!(J!=null&&J.length))return;let X=[],H=a81.default(J,X);if(!H)return;for(let Z of X)G.push(Z);return H}});var q1=S((r)=>{Object.defineProperty(r,"__esModule",{value:!0});var W0={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(r,"__internal__deprecationWarning",{enumerable:!0,get:function(){return n41.default}});Object.defineProperty(r,"addComment",{enumerable:!0,get:function(){return Z41.default}});Object.defineProperty(r,"addComments",{enumerable:!0,get:function(){return V41.default}});Object.defineProperty(r,"appendToMemberExpression",{enumerable:!0,get:function(){return D41.default}});Object.defineProperty(r,"assertNode",{enumerable:!0,get:function(){return n81.default}});Object.defineProperty(r,"buildMatchMemberExpression",{enumerable:!0,get:function(){return p41.default}});Object.defineProperty(r,"clone",{enumerable:!0,get:function(){return J41.default}});Object.defineProperty(r,"cloneDeep",{enumerable:!0,get:function(){return G41.default}});Object.defineProperty(r,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return X41.default}});Object.defineProperty(r,"cloneNode",{enumerable:!0,get:function(){return t81.default}});Object.defineProperty(r,"cloneWithoutLoc",{enumerable:!0,get:function(){return H41.default}});Object.defineProperty(r,"createFlowUnionType",{enumerable:!0,get:function(){return DW.default}});Object.defineProperty(r,"createTSUnionType",{enumerable:!0,get:function(){return e81.default}});Object.defineProperty(r,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return o81.default}});Object.defineProperty(r,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return DW.default}});Object.defineProperty(r,"ensureBlock",{enumerable:!0,get:function(){return U41.default}});Object.defineProperty(r,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return w41.default}});Object.defineProperty(r,"getBindingIdentifiers",{enumerable:!0,get:function(){return L41.default}});Object.defineProperty(r,"getFunctionName",{enumerable:!0,get:function(){return N41.default}});Object.defineProperty(r,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return T41.default}});Object.defineProperty(r,"inheritInnerComments",{enumerable:!0,get:function(){return Q41.default}});Object.defineProperty(r,"inheritLeadingComments",{enumerable:!0,get:function(){return Y41.default}});Object.defineProperty(r,"inheritTrailingComments",{enumerable:!0,get:function(){return W41.default}});Object.defineProperty(r,"inherits",{enumerable:!0,get:function(){return A41.default}});Object.defineProperty(r,"inheritsComments",{enumerable:!0,get:function(){return z41.default}});Object.defineProperty(r,"is",{enumerable:!0,get:function(){return O41.default}});Object.defineProperty(r,"isBinding",{enumerable:!0,get:function(){return v41.default}});Object.defineProperty(r,"isBlockScoped",{enumerable:!0,get:function(){return _41.default}});Object.defineProperty(r,"isImmutable",{enumerable:!0,get:function(){return g41.default}});Object.defineProperty(r,"isLet",{enumerable:!0,get:function(){return b41.default}});Object.defineProperty(r,"isNode",{enumerable:!0,get:function(){return h41.default}});Object.defineProperty(r,"isNodesEquivalent",{enumerable:!0,get:function(){return y41.default}});Object.defineProperty(r,"isPlaceholderType",{enumerable:!0,get:function(){return m41.default}});Object.defineProperty(r,"isReferenced",{enumerable:!0,get:function(){return x41.default}});Object.defineProperty(r,"isScope",{enumerable:!0,get:function(){return l41.default}});Object.defineProperty(r,"isSpecifierDefault",{enumerable:!0,get:function(){return c41.default}});Object.defineProperty(r,"isType",{enumerable:!0,get:function(){return r41.default}});Object.defineProperty(r,"isValidES3Identifier",{enumerable:!0,get:function(){return a41.default}});Object.defineProperty(r,"isValidIdentifier",{enumerable:!0,get:function(){return i41.default}});Object.defineProperty(r,"isVar",{enumerable:!0,get:function(){return u41.default}});Object.defineProperty(r,"matchesPattern",{enumerable:!0,get:function(){return d41.default}});Object.defineProperty(r,"prependToMemberExpression",{enumerable:!0,get:function(){return I41.default}});r.react=void 0;Object.defineProperty(r,"removeComments",{enumerable:!0,get:function(){return $41.default}});Object.defineProperty(r,"removeProperties",{enumerable:!0,get:function(){return C41.default}});Object.defineProperty(r,"removePropertiesDeep",{enumerable:!0,get:function(){return S41.default}});Object.defineProperty(r,"removeTypeDuplicates",{enumerable:!0,get:function(){return P41.default}});Object.defineProperty(r,"shallowEqual",{enumerable:!0,get:function(){return E41.default}});Object.defineProperty(r,"toBindingIdentifierName",{enumerable:!0,get:function(){return K41.default}});Object.defineProperty(r,"toBlock",{enumerable:!0,get:function(){return B41.default}});Object.defineProperty(r,"toComputedKey",{enumerable:!0,get:function(){return R41.default}});Object.defineProperty(r,"toExpression",{enumerable:!0,get:function(){return M41.default}});Object.defineProperty(r,"toIdentifier",{enumerable:!0,get:function(){return q41.default}});Object.defineProperty(r,"toKeyAlias",{enumerable:!0,get:function(){return F41.default}});Object.defineProperty(r,"toStatement",{enumerable:!0,get:function(){return j41.default}});Object.defineProperty(r,"traverse",{enumerable:!0,get:function(){return IJ.default}});Object.defineProperty(r,"traverseFast",{enumerable:!0,get:function(){return k41.default}});Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return s41.default}});Object.defineProperty(r,"valueToNode",{enumerable:!0,get:function(){return f41.default}});var d81=oV(),s81=tV(),p81=UY(),n81=RY(),s7=qY();Object.keys(s7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,J))return;if(J in r&&r[J]===s7[J])return;Object.defineProperty(r,J,{enumerable:!0,get:function(){return s7[J]}})});var o81=fY(),DW=SY(),e81=kY(),p7=$2();Object.keys(p7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,J))return;if(J in r&&r[J]===p7[J])return;Object.defineProperty(r,J,{enumerable:!0,get:function(){return p7[J]}})});var n7=EY();Object.keys(n7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,J))return;if(J in r&&r[J]===n7[J])return;Object.defineProperty(r,J,{enumerable:!0,get:function(){return n7[J]}})});var o7=L7();Object.keys(o7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,J))return;if(J in r&&r[J]===o7[J])return;Object.defineProperty(r,J,{enumerable:!0,get:function(){return o7[J]}})});var t81=T0(),J41=xY(),G41=cY(),X41=aY(),H41=uY(),Z41=pY(),V41=N7(),Q41=k7(),Y41=E7(),z41=v7(),W41=O7(),$41=Xz(),e7=Vz();Object.keys(e7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,J))return;if(J in r&&r[J]===e7[J])return;Object.defineProperty(r,J,{enumerable:!0,get:function(){return e7[J]}})});var t7=L0();Object.keys(t7).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,J))return;if(J in r&&r[J]===t7[J])return;Object.defineProperty(r,J,{enumerable:!0,get:function(){return t7[J]}})});var U41=zz(),K41=Uz(),B41=g7(),R41=Bz(),M41=qz(),q41=b7(),F41=Cz(),j41=wz(),f41=Nz(),JX=k2();Object.keys(JX).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,J))return;if(J in r&&r[J]===JX[J])return;Object.defineProperty(r,J,{enumerable:!0,get:function(){return JX[J]}})});var D41=Ez(),A41=_z(),I41=bz(),C41=m7(),S41=x7(),P41=w7(),w41=yz(),L41=C9(),T41=cz(),N41=iz(),IJ=dz();Object.keys(IJ).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,J))return;if(J in r&&r[J]===IJ[J])return;Object.defineProperty(r,J,{enumerable:!0,get:function(){return IJ[J]}})});var k41=y7(),E41=VJ(),O41=k5(),v41=pz(),_41=tz(),g41=GW(),b41=a7(),h41=P7(),y41=ZW(),m41=V7(),x41=QW(),l41=zW(),c41=UW(),r41=QJ(),a41=BW(),i41=E5(),u41=MW(),d41=H7(),s41=UJ(),p41=Z7(),GX=i1();Object.keys(GX).forEach(function(J){if(J==="default"||J==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,J))return;if(J in r&&r[J]===GX[J])return;Object.defineProperty(r,J,{enumerable:!0,get:function(){return GX[J]}})});var n41=K9(),vv1=r.react={isReactComponent:d81.default,isCompatTag:s81.default,buildChildren:p81.default};r.toSequenceExpression=fW().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 TW=S((wW)=>{Object.defineProperty(wW,"__esModule",{value:!0});wW.nodes=void 0;var o41=q1(),{FLIPPED_ALIAS_KEYS:e41,isArrayExpression:t41,isAssignmentExpression:CW,isBinary:SW,isBlockStatement:J61,isCallExpression:PW,isFunction:S9,isIdentifier:CJ,isLiteral:G61,isMemberExpression:XX,isObjectExpression:X61,isOptionalCallExpression:H61,isOptionalMemberExpression:Z61,isStringLiteral:V61}=o41;function _5(J,G){if(!J)return G;if(XX(J)||Z61(J)){if(_5(J.object,G),J.computed)_5(J.property,G)}else if(SW(J)||CW(J))_5(J.left,G),_5(J.right,G);else if(PW(J)||H61(J))G.hasCall=!0,_5(J.callee,G);else if(S9(J))G.hasFunction=!0;else if(CJ(J))G.hasHelper=G.hasHelper||J.callee&&$0(J.callee);return G}function IW(J){return _5(J,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function $0(J){if(!J)return!1;if(XX(J))return $0(J.object)||$0(J.property);else if(CJ(J))return J.name==="require"||J.name.charCodeAt(0)===95;else if(PW(J))return $0(J.callee);else if(SW(J)||CW(J))return CJ(J.left)&&$0(J.left)||$0(J.right);else return!1}function Q61(J){return G61(J)||X61(J)||t41(J)||CJ(J)||XX(J)}var G5=wW.nodes={AssignmentExpression(J){let G=IW(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(S9(J.left)||S9(J.right))return 2},Literal(J){if(V61(J)&&J.value==="use strict")return 2},CallExpression(J){if(S9(J.callee)||$0(J))return 3},OptionalCallExpression(J){if(S9(J.callee))return 3},VariableDeclaration(J){for(let G=0;G<J.declarations.length;G++){let X=J.declarations[G],H=$0(X.id)&&!Q61(X.init);if(!H&&X.init){let Z=IW(X.init);H=$0(X.init)&&Z.hasCall||Z.hasFunction}if(H)return 3}},IfStatement(J){if(J61(J.consequent))return 3}};G5.ObjectProperty=G5.ObjectTypeProperty=G5.ObjectMethod=function(J,G){if(G.properties[0]===J)return 1};G5.ObjectTypeCallProperty=function(J,G){var X;if(G.callProperties[0]===J&&!((X=G.properties)!=null&&X.length))return 1};G5.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};G5.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(e41[J]||[]).forEach(function(X){let H=G?3:0;G5[X]=()=>H})})});var hW=S((bW)=>{Object.defineProperty(bW,"__esModule",{value:!0});bW.AssignmentExpression=_61;bW.Binary=vW;bW.BinaryExpression=T61;bW.ClassExpression=E61;bW.ArrowFunctionExpression=bW.ConditionalExpression=gW;bW.DoExpression=A61;bW.FunctionExpression=O61;bW.FunctionTypeAnnotation=j61;bW.Identifier=b61;bW.LogicalExpression=g61;bW.NullableTypeAnnotation=F61;bW.ObjectExpression=D61;bW.OptionalIndexedAccessType=C61;bW.OptionalCallExpression=bW.OptionalMemberExpression=v61;bW.SequenceExpression=N61;bW.TSSatisfiesExpression=bW.TSAsExpression=S61;bW.TSInferType=w61;bW.TSInstantiationExpression=L61;bW.UnaryLike=bW.TSTypeAssertion=_W;bW.TSIntersectionType=bW.TSUnionType=P61;bW.IntersectionTypeAnnotation=bW.UnionTypeAnnotation=I61;bW.UpdateExpression=f61;bW.AwaitExpression=bW.YieldExpression=k61;var Y61=q1(),v2=N0(),{isArrayTypeAnnotation:z61,isBinaryExpression:W61,isCallExpression:$61,isForOfStatement:U61,isIndexedAccessType:K61,isMemberExpression:EW,isObjectPattern:B61,isOptionalMemberExpression:R61,isYieldExpression:M61,isStatement:q61}=Y61,NW=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 kW(J,G){if(G==="BinaryExpression"||G==="LogicalExpression")return NW.get(J.operator);if(G==="TSAsExpression"||G==="TSSatisfiesExpression")return NW.get("in")}function HX(J){return J==="TSAsExpression"||J==="TSSatisfiesExpression"||J==="TSTypeAssertion"}var SJ=(J,G)=>{let X=G.type;return(X==="ClassDeclaration"||X==="ClassExpression")&&G.superClass===J},PJ=(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 F61(J,G){return z61(G)}function j61(J,G,X){let H=G.type;return H==="UnionTypeAnnotation"||H==="IntersectionTypeAnnotation"||H==="ArrayTypeAnnotation"||Boolean(X&v2.TokenContext.arrowFlowReturnType)}function f61(J,G){return PJ(J,G)||SJ(J,G)}function OW(J){return Boolean(J&(v2.TokenContext.expressionStatement|v2.TokenContext.arrowBody))}function D61(J,G,X){return OW(X)}function A61(J,G,X){return!J.async&&Boolean(X&v2.TokenContext.expressionStatement)}function vW(J,G){let X=G.type;if(J.type==="BinaryExpression"&&J.operator==="**"&&X==="BinaryExpression"&&G.operator==="**")return G.left===J;if(SJ(J,G))return!0;if(PJ(J,G)||X==="UnaryExpression"||X==="SpreadElement"||X==="AwaitExpression")return!0;let H=kW(G,X);if(H!=null){let Z=kW(J,J.type);if(H===Z&&X==="BinaryExpression"&&G.right===J||H>Z)return!0}return}function I61(J,G){let X=G.type;return X==="ArrayTypeAnnotation"||X==="NullableTypeAnnotation"||X==="IntersectionTypeAnnotation"||X==="UnionTypeAnnotation"}function C61(J,G){return K61(G)&&G.objectType===J}function S61(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 vW(J,G)}function P61(J,G){let X=G.type;return X==="TSArrayType"||X==="TSOptionalType"||X==="TSIntersectionType"||X==="TSRestType"}function w61(J,G){let X=G.type;return X==="TSArrayType"||X==="TSOptionalType"}function L61(J,G){let X=G.type;return(X==="CallExpression"||X==="OptionalCallExpression"||X==="NewExpression"||X==="TSInstantiationExpression")&&!!G.typeParameters}function T61(J,G,X,H){return J.operator==="in"&&H}function N61(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!q61(G)}function k61(J,G){let X=G.type;return X==="BinaryExpression"||X==="LogicalExpression"||X==="UnaryExpression"||X==="SpreadElement"||PJ(J,G)||X==="AwaitExpression"&&M61(J)||X==="ConditionalExpression"&&J===G.test||SJ(J,G)||HX(X)}function E61(J,G,X){return Boolean(X&(v2.TokenContext.expressionStatement|v2.TokenContext.exportDefault))}function _W(J,G){return PJ(J,G)||W61(G)&&G.operator==="**"&&G.left===J||SJ(J,G)}function O61(J,G,X){return Boolean(X&(v2.TokenContext.expressionStatement|v2.TokenContext.exportDefault))}function gW(J,G){let X=G.type;if(X==="UnaryExpression"||X==="SpreadElement"||X==="BinaryExpression"||X==="LogicalExpression"||X==="ConditionalExpression"&&G.test===J||X==="AwaitExpression"||HX(X))return!0;return _W(J,G)}function v61(J,G){return $61(G)&&G.callee===J||EW(G)&&G.object===J}function _61(J,G,X){if(OW(X)&&B61(J.left))return!0;else return gW(J,G)}function g61(J,G){let X=G.type;if(HX(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 b61(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((EW(G,{object:J,computed:!0})||R61(G,{object:J,computed:!0,optional:!1}))&&X&(v2.TokenContext.expressionStatement|v2.TokenContext.forHead|v2.TokenContext.forInHead))return!0;return Boolean(X&v2.TokenContext.forOfHead)}return J.name==="async"&&U61(G,{left:J,await:!1})}});var N0=S((lW)=>{Object.defineProperty(lW,"__esModule",{value:!0});lW.TokenContext=void 0;lW.isLastChild=AJ1;lW.needsParens=DJ1;lW.needsWhitespace=VX;lW.needsWhitespaceAfter=fJ1;lW.needsWhitespaceBefore=jJ1;var QJ1=TW(),YJ1=hW(),zJ1=q1(),{FLIPPED_ALIAS_KEYS:WJ1,VISITOR_KEYS:$J1,isCallExpression:yW,isDecorator:UJ1,isExpressionStatement:KJ1,isMemberExpression:BJ1,isNewExpression:RJ1,isParenthesizedExpression:MJ1}=zJ1,iv1=lW.TokenContext={expressionStatement:1,arrowBody:2,exportDefault:4,forHead:8,forInHead:16,forOfHead:32,arrowFlowReturnType:64};function mW(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=mW(YJ1),FJ1=mW(QJ1.nodes);function xW(J){if(yW(J))return!0;return BJ1(J)&&xW(J.object)}function VX(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 VX(J,G,1)}function fJ1(J,G){return VX(J,G,2)}function DJ1(J,G,X,H){var Z;if(!G)return!1;if(RJ1(G)&&G.callee===J){if(xW(J))return!0}if(UJ1(G))return!ZX(J)&&!(yW(J)&&ZX(J.callee))&&!MJ1(J);return(Z=qJ1.get(J.type))==null?void 0:Z(J,G,X,H)}function ZX(J){switch(J.type){case"Identifier":return!0;case"MemberExpression":return!J.computed&&J.property.type==="Identifier"&&ZX(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 aW=S((rW)=>{Object.defineProperty(rW,"__esModule",{value:!0});rW.TaggedTemplateExpression=LJ1;rW.TemplateElement=TJ1;rW.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 dW=S((uW)=>{Object.defineProperty(uW,"__esModule",{value:!0});uW.LogicalExpression=uW.BinaryExpression=uW.AssignmentExpression=ZG1;uW.AssignmentPattern=HG1;uW.AwaitExpression=tJ1;uW.BindExpression=VG1;uW.CallExpression=oJ1;uW.ConditionalExpression=cJ1;uW.Decorator=sJ1;uW.DoExpression=mJ1;uW.EmptyStatement=GG1;uW.ExpressionStatement=XG1;uW.Import=eJ1;uW.MemberExpression=QG1;uW.MetaProperty=YG1;uW.ModuleExpression=$G1;uW.NewExpression=rJ1;uW.OptionalCallExpression=nJ1;uW.OptionalMemberExpression=pJ1;uW.ParenthesizedExpression=xJ1;uW.PrivateName=zG1;uW.SequenceExpression=aJ1;uW.Super=uJ1;uW.ThisExpression=iJ1;uW.UnaryExpression=yJ1;uW.UpdateExpression=lJ1;uW.V8IntrinsicIdentifier=WG1;uW.YieldExpression=JG1;uW._shouldPrintDecoratorsBeforeExport=dJ1;var vJ1=q1(),_J1=N0(),{isCallExpression:gJ1,isLiteral:iW,isMemberExpression:QX,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})&&!QX(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&&QX(H))throw new TypeError("Got a MemberExpression for MemberExpression property");if(iW(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&&QX(J.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let G=J.computed;if(iW(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 tW=S((oW)=>{Object.defineProperty(oW,"__esModule",{value:!0});oW.BreakStatement=dG1;oW.CatchClause=tG1;oW.ContinueStatement=sG1;oW.DebuggerStatement=X71;oW.DoWhileStatement=uG1;oW.ForOfStatement=oW.ForInStatement=void 0;oW.ForStatement=aG1;oW.IfStatement=rG1;oW.LabeledStatement=oG1;oW.ReturnStatement=pG1;oW.SwitchCase=G71;oW.SwitchStatement=J71;oW.ThrowStatement=nG1;oW.TryStatement=eG1;oW.VariableDeclaration=H71;oW.VariableDeclarator=Z71;oW.WhileStatement=iG1;oW.WithStatement=cG1;var yG1=q1(),YX=N0(),{isFor:sW,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(pW(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 pW(J){let{body:G}=J;if(lG1(G)===!1)return J;return pW(G)}function aG1(J){this.word("for"),this.space(),this.tokenChar(40);{let G=this.enterForStatementInit();this.tokenContext|=YX.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 nW(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?YX.TokenContext.forOfHead:YX.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 ov1=oW.ForInStatement=nW,ev1=oW.ForOfStatement=nW;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 wJ(J,G){if(G)J.space(),J.printTerminatorless(G);J.semicolon()}function dG1(J){this.word("break"),wJ(this,J.label)}function sG1(J){this.word("continue"),wJ(this,J.label)}function pG1(J){this.word("return"),wJ(this,J.argument)}function nG1(J){this.word("throw"),wJ(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 J71(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 G71(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 X71(){this.word("debugger"),this.semicolon()}function H71(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(!sW(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}),sW(G)){if(mG1(G)){if(G.init===J)return}else if(G.left===J)return}this.semicolon()}function Z71(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 G$=S((J$)=>{Object.defineProperty(J$,"__esModule",{value:!0});J$.ClassAccessorProperty=N71;J$.ClassBody=L71;J$.ClassExpression=J$.ClassDeclaration=w71;J$.ClassMethod=E71;J$.ClassPrivateMethod=O71;J$.ClassPrivateProperty=k71;J$.ClassProperty=T71;J$.StaticBlock=_71;J$._classMethodHead=v71;var C71=q1(),{isExportDefaultDeclaration:S71,isExportNamedDeclaration:P71}=C71;function w71(J,G){if(!(S71(G)||P71(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 L71(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 T71(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 N71(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 k71(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 E71(J){this._classMethodHead(J),this.space(),this.print(J.body)}function O71(J){this._classMethodHead(J),this.space(),this.print(J.body)}function v71(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 _71(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 H$=S((X$)=>{Object.defineProperty(X$,"__esModule",{value:!0});X$.ArrowFunctionExpression=JX1;X$.FunctionDeclaration=X$.FunctionExpression=t71;X$._functionHead=e71;X$._methodHead=n71;X$._param=p71;X$._parameters=s71;X$._params=d71;X$._predicate=o71;var a71=q1(),i71=N0(),{isIdentifier:u71}=a71;function d71(J,G,X){this.print(J.typeParameters);let H=XX1.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 s71(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 p71(J){if(this.printJoin(J.decorators),this.print(J),J.optional)this.tokenChar(63);this.print(J.typeAnnotation)}function n71(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 o71(J,G){if(J.predicate){if(!J.returnType)this.tokenChar(58);this.space(),this.print(J.predicate,G)}}function e71(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 t71(J,G){this._functionHead(J,G),this.space(),this.print(J.body)}function JX1(J,G){if(J.async)this.word("async",!0),this.space();let X;if(!this.format.retainLines&&J.params.length===1&&u71(X=J.params[0])&&!GX1(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|=i71.TokenContext.arrowBody,this.print(J.body)}function GX1(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 XX1(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 zX=S((Y$)=>{Object.defineProperty(Y$,"__esModule",{value:!0});Y$.ExportAllDeclaration=SX1;Y$.ExportDefaultDeclaration=wX1;Y$.ExportDefaultSpecifier=DX1;Y$.ExportNamedDeclaration=PX1;Y$.ExportNamespaceSpecifier=IX1;Y$.ExportSpecifier=AX1;Y$.ImportAttribute=TX1;Y$.ImportDeclaration=LX1;Y$.ImportDefaultSpecifier=fX1;Y$.ImportExpression=kX1;Y$.ImportNamespaceSpecifier=NX1;Y$.ImportSpecifier=jX1;Y$._printAttributes=CX1;var UX1=q1(),KX1=N0(),{isClassDeclaration:BX1,isExportDefaultSpecifier:RX1,isExportNamespaceSpecifier:MX1,isImportDefaultSpecifier:qX1,isImportNamespaceSpecifier:FX1,isStatement:V$}=UX1;function jX1(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 fX1(J){this.print(J.local)}function DX1(J){this.print(J.exported)}function AX1(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 IX1(J){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(J.exported)}var Z$=!1;function CX1(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 SX1(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 Q$(J,G){if(BX1(G.declaration)&&J._shouldPrintDecoratorsBeforeExport(G))J.printJoin(G.declaration.decorators)}function PX1(J){if(Q$(this,J),this.word("export"),this.space(),J.declaration){let H=J.declaration;if(this.print(H),!V$(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(RX1(V)||MX1(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 wX1(J){Q$(this,J),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=KX1.TokenContext.exportDefault;let G=J.declaration;if(this.print(G),!V$(G))this.semicolon()}function LX1(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(qX1(Q)||FX1(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 TX1(J){this.print(J.key),this.tokenChar(58),this.space(),this.print(J.value)}function NX1(J){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(J.local)}function kX1(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 U$=S((V_1,$$)=>{var z$={},aX1=z$.hasOwnProperty,W$=(J,G)=>{for(let X in J)if(aX1.call(J,X))G(X,J[X])},iX1=(J,G)=>{if(!G)return J;return W$(G,(X,H)=>{J[X]=H}),J},uX1=(J,G)=>{let X=J.length,H=-1;while(++H<X)G(J[H])},LJ=(J)=>{return"\\u"+("0000"+J).slice(-4)},P9=(J,G)=>{let X=J.toString(16);if(G)return X;return X.toUpperCase()},w9=z$.toString,dX1=Array.isArray,sX1=(J)=>{return typeof Buffer==="function"&&Buffer.isBuffer(J)},pX1=(J)=>{return w9.call(J)=="[object Object]"},nX1=(J)=>{return typeof J=="string"||w9.call(J)=="[object String]"},oX1=(J)=>{return typeof J=="number"||w9.call(J)=="[object Number]"},eX1=(J)=>{return typeof J=="function"},tX1=(J)=>{return w9.call(J)=="[object Map]"},J31=(J)=>{return w9.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,k0=(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=iX1(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",A,C=!0,l=G.numbers=="binary",O=G.numbers=="octal",v=G.numbers=="decimal",h=G.numbers=="hexadecimal";if(Z&&J&&eX1(J.toJSON))J=J.toJSON();if(!nX1(J)){if(tX1(J)){if(J.size==0)return"new Map()";if(!Q)G.__inline1__=!0,G.__inline2__=!1;return"new Map("+k0(Array.from(J),G)+")"}if(J31(J)){if(J.size==0)return"new Set()";return"new Set("+k0(Array.from(J),G)+")"}if(sX1(J)){if(J.length==0)return"Buffer.from([])";return"Buffer.from("+k0(Array.from(J),G)+")"}if(dX1(J)){if(A=[],G.wrap=!0,K)G.__inline1__=!1,G.__inline2__=!0;if(!q)X();if(uX1(J,(e)=>{if(C=!1,q)G.__inline2__=!1;A.push((Q||q?"":z)+k0(e,G))}),C)return"[]";if(q)return"["+A.join(", ")+"]";return"["+f+A.join(","+f)+f+(Q?"":W)+"]"}else if(oX1(J)){if(Z)return JSON.stringify(J);if(v)return String(J);if(h){let e=J.toString(16);if(!Y)e=e.toUpperCase();return"0x"+e}if(l)return"0b"+J.toString(2);if(O)return"0o"+J.toString(8)}else if(!pX1(J)){if(Z)return JSON.stringify(J)||"null";return String(J)}else{if(A=[],G.wrap=!0,X(),W$(J,(e,K1)=>{C=!1,A.push((Q?"":z)+k0(e,G)+":"+(Q?"":" ")+k0(K1,G))}),C)return"{}";return"{"+f+A.join(","+f)+f+(Q?"":W)+"}"}}let U1=G.escapeEverything?V31:Q31;if(A=J.replace(U1,(e,K1,Y1,w1,L1,a)=>{if(K1){if(G.minimal)return K1;let _=K1.charCodeAt(0),s=K1.charCodeAt(1);if(G.es6){let B1=(_-55296)*1024+s-56320+65536;return"\\u{"+P9(B1,Y)+"}"}return LJ(P9(_,Y))+LJ(P9(s,Y))}if(Y1)return LJ(P9(Y1.charCodeAt(0),Y));if(e=="\0"&&!Z&&!H31.test(a.charAt(L1+1)))return"\\0";if(w1){if(w1==V||G.escapeEverything)return"\\"+w1;return w1}if(X31.test(e))return G31[e];if(G.minimal&&!Z31.test(e))return e;let i=P9(e.charCodeAt(0),Y);if(Z||i.length>2)return LJ(i);return"\\x"+("00"+i).slice(-2)}),V=="`")A=A.replace(/\$\{/g,"\\${");if(G.isScriptContext)A=A.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,Z?"\\u003C!--":"\\x3C!--");if(G.wrap)A=V+A+V;return A};k0.version="3.0.2";$$.exports=k0});var $X=S((R$)=>{Object.defineProperty(R$,"__esModule",{value:!0});R$.ArgumentPlaceholder=$31;R$.ArrayPattern=R$.ArrayExpression=M31;R$.BigIntLiteral=C31;R$.BooleanLiteral=f31;R$.DecimalLiteral=S31;R$.Identifier=W31;R$.NullLiteral=D31;R$.NumericLiteral=A31;R$.ObjectPattern=R$.ObjectExpression=K31;R$.ObjectMethod=B31;R$.ObjectProperty=R31;R$.PipelineBareFunction=L31;R$.PipelinePrimaryTopicReference=T31;R$.PipelineTopicExpression=w31;R$.RecordExpression=q31;R$.RegExpLiteral=j31;R$.SpreadElement=R$.RestElement=U31;R$.StringLiteral=I31;R$.TopicReference=P31;R$.TupleExpression=F31;var Y31=q1(),B$=U$(),{isAssignmentPattern:z31,isIdentifier:WX}=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)&&WX(J.key)&&J.key.name===J.value.left.name){this.print(J.value);return}if(this.print(J.key),J.shorthand&&WX(J.key)&&WX(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(B$(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=B$(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 K$=new Set(["^^","@@","^","%","#"]);function P31(){let{topicToken:J}=this.format;if(K$.has(J))this.token(J);else{let G=JSON.stringify(J),X=Array.from(K$,(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 q$=S((EJ)=>{Object.defineProperty(EJ,"__esModule",{value:!0});EJ.AnyTypeAnnotation=t31;EJ.ArrayTypeAnnotation=JH1;EJ.BooleanLiteralTypeAnnotation=XH1;EJ.BooleanTypeAnnotation=GH1;EJ.DeclareClass=ZH1;EJ.DeclareExportAllDeclaration=MH1;EJ.DeclareExportDeclaration=RH1;EJ.DeclareFunction=VH1;EJ.DeclareInterface=zH1;EJ.DeclareModule=WH1;EJ.DeclareModuleExports=$H1;EJ.DeclareOpaqueType=KH1;EJ.DeclareTypeAlias=UH1;EJ.DeclareVariable=BH1;EJ.DeclaredPredicate=YH1;EJ.EmptyTypeAnnotation=hH1;EJ.EnumBooleanBody=FH1;EJ.EnumBooleanMember=IH1;EJ.EnumDeclaration=qH1;EJ.EnumDefaultedMember=AH1;EJ.EnumNumberBody=jH1;EJ.EnumNumberMember=CH1;EJ.EnumStringBody=fH1;EJ.EnumStringMember=SH1;EJ.EnumSymbolBody=DH1;EJ.ExistsTypeAnnotation=wH1;EJ.FunctionTypeAnnotation=LH1;EJ.FunctionTypeParam=TH1;EJ.IndexedAccessType=zZ1;EJ.InferredPredicate=QH1;EJ.InterfaceDeclaration=OH1;EJ.GenericTypeAnnotation=EJ.ClassImplements=EJ.InterfaceExtends=NH1;EJ.InterfaceTypeAnnotation=_H1;EJ.IntersectionTypeAnnotation=gH1;EJ.MixedTypeAnnotation=bH1;EJ.NullLiteralTypeAnnotation=HH1;EJ.NullableTypeAnnotation=yH1;Object.defineProperty(EJ,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return M$.NumericLiteral}});EJ.NumberTypeAnnotation=mH1;EJ.ObjectTypeAnnotation=pH1;EJ.ObjectTypeCallProperty=oH1;EJ.ObjectTypeIndexer=eH1;EJ.ObjectTypeInternalSlot=nH1;EJ.ObjectTypeProperty=tH1;EJ.ObjectTypeSpreadProperty=JZ1;EJ.OpaqueType=sH1;EJ.OptionalIndexedAccessType=WZ1;EJ.QualifiedTypeIdentifier=GZ1;Object.defineProperty(EJ,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return M$.StringLiteral}});EJ.StringTypeAnnotation=xH1;EJ.SymbolTypeAnnotation=XZ1;EJ.ThisTypeAnnotation=lH1;EJ.TupleTypeAnnotation=cH1;EJ.TypeAlias=aH1;EJ.TypeAnnotation=iH1;EJ.TypeCastExpression=VZ1;EJ.TypeParameter=dH1;EJ.TypeParameterDeclaration=EJ.TypeParameterInstantiation=uH1;EJ.TypeofTypeAnnotation=rH1;EJ.UnionTypeAnnotation=ZZ1;EJ.Variance=QZ1;EJ.VoidTypeAnnotation=YZ1;EJ._interfaceish=kH1;EJ._variance=EH1;var p31=q1(),n31=zX(),o31=N0(),M$=$X(),{isDeclareExportDeclaration:TJ,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(!TJ(G))this.word("declare"),this.space();this.word("class"),this.space(),this._interfaceish(J)}function VH1(J,G){if(!TJ(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(!TJ(G))this.word("declare"),this.space();this.OpaqueType(J)}function BH1(J,G){if(!TJ(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 NJ(J,G,X){if(X)J.space(),J.word("of"),J.space(),J.word(G);J.space()}function kJ(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;NJ(this,"boolean",G),kJ(this,J)}function jH1(J){let{explicitType:G}=J;NJ(this,"number",G),kJ(this,J)}function fH1(J){let{explicitType:G}=J;NJ(this,"string",G),kJ(this,J)}function DH1(J){NJ(this,"symbol",!0),kJ(this,J)}function AH1(J){let{id:G}=J;this.print(G),this.tokenChar(44)}function UX(J,G){J.print(G.id),J.space(),J.token("="),J.space(),J.print(G.init),J.token(",")}function IH1(J){UX(this,J)}function CH1(J){UX(this,J)}function SH1(J){UX(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 j$=S((F$)=>{Object.defineProperty(F$,"__esModule",{value:!0});F$.BlockStatement=DV1;F$.Directive=AV1;F$.DirectiveLiteral=SV1;F$.File=jV1;F$.InterpreterDirective=PV1;F$.Placeholder=wV1;F$.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 D$=S((f$)=>{Object.defineProperty(f$,"__esModule",{value:!0});f$.JSXAttribute=_V1;f$.JSXClosingElement=iV1;f$.JSXClosingFragment=pV1;f$.JSXElement=cV1;f$.JSXEmptyExpression=uV1;f$.JSXExpressionContainer=mV1;f$.JSXFragment=dV1;f$.JSXIdentifier=gV1;f$.JSXMemberExpression=hV1;f$.JSXNamespacedName=bV1;f$.JSXOpeningElement=aV1;f$.JSXOpeningFragment=sV1;f$.JSXSpreadAttribute=yV1;f$.JSXSpreadChild=xV1;f$.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 S$=S((C$)=>{Object.defineProperty(C$,"__esModule",{value:!0});C$.TSAnyKeyword=SQ1;C$.TSArrayType=uQ1;C$.TSSatisfiesExpression=C$.TSAsExpression=$Y1;C$.TSBigIntKeyword=PQ1;C$.TSBooleanKeyword=NQ1;C$.TSCallSignatureDeclaration=jQ1;C$.TSInterfaceHeritage=C$.TSExpressionWithTypeArguments=C$.TSClassImplements=QY1;C$.TSConditionalType=tQ1;C$.TSConstructSignatureDeclaration=fQ1;C$.TSConstructorType=mQ1;C$.TSDeclareFunction=MQ1;C$.TSDeclareMethod=qQ1;C$.TSEnumDeclaration=BY1;C$.TSEnumMember=RY1;C$.TSExportAssignment=AY1;C$.TSExternalModuleReference=fY1;C$.TSFunctionType=yQ1;C$.TSImportEqualsDeclaration=jY1;C$.TSImportType=FY1;C$.TSIndexSignature=CQ1;C$.TSIndexedAccessType=HY1;C$.TSInferType=JY1;C$.TSInstantiationExpression=KY1;C$.TSInterfaceBody=zY1;C$.TSInterfaceDeclaration=YY1;C$.TSIntersectionType=eQ1;C$.TSIntrinsicKeyword=bQ1;C$.TSLiteralType=VY1;C$.TSMappedType=ZY1;C$.TSMethodSignature=IQ1;C$.TSModuleBlock=qY1;C$.TSModuleDeclaration=MY1;C$.TSNamedTupleMember=nQ1;C$.TSNamespaceExportDeclaration=IY1;C$.TSNeverKeyword=gQ1;C$.TSNonNullExpression=DY1;C$.TSNullKeyword=_Q1;C$.TSNumberKeyword=LQ1;C$.TSObjectKeyword=TQ1;C$.TSOptionalType=sQ1;C$.TSParameterProperty=RQ1;C$.TSParenthesizedType=GY1;C$.TSPropertySignature=DQ1;C$.TSQualifiedName=FQ1;C$.TSRestType=pQ1;C$.TSStringKeyword=kQ1;C$.TSSymbolKeyword=EQ1;C$.TSThisType=hQ1;C$.TSTupleType=dQ1;C$.TSTypeAliasDeclaration=WY1;C$.TSTypeAnnotation=UQ1;C$.TSTypeAssertion=UY1;C$.TSTypeLiteral=aQ1;C$.TSTypeOperator=XY1;C$.TSTypeParameter=BQ1;C$.TSTypeParameterDeclaration=C$.TSTypeParameterInstantiation=KQ1;C$.TSTypePredicate=cQ1;C$.TSTypeQuery=rQ1;C$.TSTypeReference=lQ1;C$.TSUndefinedKeyword=vQ1;C$.TSUnionType=oQ1;C$.TSUnknownKeyword=wQ1;C$.TSVoidKeyword=OQ1;C$.tsPrintClassMemberModifiers=SY1;C$.tsPrintFunctionOrConstructorType=xQ1;C$.tsPrintPropertyOrMethodName=AQ1;C$.tsPrintSignatureDeclarationBase=CY1;C$.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){KX(this,J,G)}function KX(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){I$(this,J,"|")}function eQ1(J){I$(this,J,"&")}function I$(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)A$(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)A$(this,X),this.tokenChar(63);if(Z)this.tokenChar(58),this.space(),this.print(Z);this.space(),this.tokenChar(125)}function A$(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(),KX(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){KX(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 P$=S((C1)=>{Object.defineProperty(C1,"__esModule",{value:!0});var BX=aW();Object.keys(BX).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in C1&&C1[J]===BX[J])return;Object.defineProperty(C1,J,{enumerable:!0,get:function(){return BX[J]}})});var RX=dW();Object.keys(RX).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in C1&&C1[J]===RX[J])return;Object.defineProperty(C1,J,{enumerable:!0,get:function(){return RX[J]}})});var MX=tW();Object.keys(MX).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in C1&&C1[J]===MX[J])return;Object.defineProperty(C1,J,{enumerable:!0,get:function(){return MX[J]}})});var qX=G$();Object.keys(qX).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in C1&&C1[J]===qX[J])return;Object.defineProperty(C1,J,{enumerable:!0,get:function(){return qX[J]}})});var FX=H$();Object.keys(FX).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in C1&&C1[J]===FX[J])return;Object.defineProperty(C1,J,{enumerable:!0,get:function(){return FX[J]}})});var jX=zX();Object.keys(jX).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in C1&&C1[J]===jX[J])return;Object.defineProperty(C1,J,{enumerable:!0,get:function(){return jX[J]}})});var fX=$X();Object.keys(fX).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in C1&&C1[J]===fX[J])return;Object.defineProperty(C1,J,{enumerable:!0,get:function(){return fX[J]}})});var DX=q$();Object.keys(DX).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in C1&&C1[J]===DX[J])return;Object.defineProperty(C1,J,{enumerable:!0,get:function(){return DX[J]}})});var AX=j$();Object.keys(AX).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in C1&&C1[J]===AX[J])return;Object.defineProperty(C1,J,{enumerable:!0,get:function(){return AX[J]}})});var IX=D$();Object.keys(IX).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in C1&&C1[J]===IX[J])return;Object.defineProperty(C1,J,{enumerable:!0,get:function(){return IX[J]}})});var CX=S$();Object.keys(CX).forEach(function(J){if(J==="default"||J==="__esModule")return;if(J in C1&&C1[J]===CX[J])return;Object.defineProperty(C1,J,{enumerable:!0,get:function(){return CX[J]}})})});var E$=S((N$)=>{Object.defineProperty(N$,"__esModule",{value:!0});N$.default=void 0;var mz1=lV(),L$=N0(),xz1=q1(),lz1=P$(),{isExpression:cz1,isFunction:rz1,isStatement:az1,isClassBody:iz1,isTSInterfaceBody:uz1,isTSEnumDeclaration:dz1}=xz1,sz1=/e/i,pz1=/\.0+$/,T$=/[\n\r\u2028\u2029]/,nz1=/[\n\r\u2028\u2029]|\*\//;function w$(J){return J.type==="CommentLine"||T$.test(J.value)}var{needsParens:oz1}=L$;class OJ{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,A=f&&Y.retainFunctionParens&&Q==="FunctionExpression"||oz1(J,K,this.tokenContext,this.inForStatementInit);if(!A&&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:A=!0}let C=!1;if(!A&&this._noLineTerminator&&((V=J.leadingComments)!=null&&V.some(w$)||this.format.retainLines&&J.loc&&J.loc.start.line>this._buf.getCurrentLine()))A=!0,C=!0;let l,O;if(!A){if(G||(G=K&&this._noLineTerminatorAfterNode===K&&L$.isLastChild(K,J)),G){var v;if((v=J.trailingComments)!=null&&v.some(w$)){if(cz1(J))A=!0}else l=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=J}}if(A){if(this.tokenChar(40),C)this.indent();if(this._endsWithInnerRaw=!1,this.inForStatementInit)O=!0,this.inForStatementInit=!1;l=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null}this._lastCommentLine=0,this._printLeadingComments(J,K);let h=Q==="Program"||Q==="File"?null:J.loc;if(this.exactSource(h,W.bind(this,J,K)),A){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,l!==void 0)this._noLineTerminatorAfterNode=l;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 A=0;A<Q;A++){let C=G[A],l=this._shouldPrintComment(C);if(l===2){Y=!1;break}if(Y&&C.loc&&l===1){let O=C.loc.start.line,v=C.loc.end.line;if(J===0){let h=0;if(A===0){if(this._buf.hasContent()&&(C.type==="CommentLine"||O!==v))h=q=1}else h=O-K;if(K=v,f(h),this._printComment(C,1),A+1===Q)f(Math.max(z-K,q)),K=z}else if(J===1){let h=O-(A===0?z:K);if(K=v,f(h),this._printComment(C,1),A+1===Q)f(Math.min(1,W-K)),K=W}else{let h=O-(A===0?W-Z:K);K=v,f(h),this._printComment(C,1)}}else{if(Y=!1,l!==1)continue;if(Q===1){let O=C.loc?C.loc.start.line===C.loc.end.line:!T$.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,A===0?2:A===Q-1?3:0);else this._printComment(C,0)}}if(J===2&&Y&&K)this._lastCommentLine=K}}Object.assign(OJ.prototype,lz1);OJ.prototype.Noop=function J(){};var I_1=N$.default=OJ;function ez1(){this.tokenChar(44),this.space()}});var SX=S((g$)=>{Object.defineProperty(g$,"__esModule",{value:!0});g$.default=tz1;var O$=hV(),v$=E$();function _$(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}g$.CodeGenerator=class J{constructor(G,X={},H){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=G,this._format=_$(H,X),this._map=X.sourceMaps?new O$.default(X,H):null}generate(){return new v$.default(this._format,this._map).generate(this._ast)}};function tz1(J,G={},X){let H=_$(X,G),Z=G.sourceMaps?new O$.default(G,X):null;return new v$.default(H,Z).generate(J)}});var lJ=S((TU)=>{Object.defineProperty(TU,"__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 q0{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 _9{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 K2(J,G){let{line:X,column:H,index:Z}=J;return new q0(X,H+G,Z+G)}var b$="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",XW1={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:b$},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:b$}},h$={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"},gJ=(J)=>J.type==="UpdateExpression"?h$.UpdateExpression[`${J.prefix}`]:h$[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 ${gJ(J)}.`,InvalidLhsBinding:({ancestor:J})=>`Binding invalid left-hand side in ${gJ(J)}.`,InvalidLhsOptionalChaining:({ancestor:J})=>`Invalid optional chaining in the left-hand side of ${gJ(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 ${gJ({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 y$(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 y$(z,"clone",function W(K={}){var q;let{line:f,column:A,index:C}=(q=K.loc)!=null?q:Q;return V(new q0(f,A,C),Object.assign({},Y,K.details))}),y$(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 M0(J,G){if(Array.isArray(J))return(H)=>M0(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({},M0(XW1),M0(HW1),M0(ZW1),M0`pipelineOperator`(QW1)),{defineProperty:WW1}=Object,m$=(J,G)=>{if(J)WW1(J,G,{enumerable:!1,value:J[G]})};function L9(J){return m$(J.loc.start,"index"),m$(J.loc.end,"index"),J}var $W1=(J)=>class G extends J{parse(){let X=L9(super.parse());if(this.options.tokens)X.tokens=X.tokens.map(L9);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 L9(super.finishNodeAt(X,H,Z))}resetStartLocation(X,H){super.resetStartLocation(X,H),L9(X)}resetEndLocation(X,H=this.state.lastTokEndLoc){super.resetEndLocation(X,H),L9(X)}};class g5{constructor(J,G){this.token=void 0,this.preserveSpace=void 0,this.token=J,this.preserveSpace=!!G}}var _1={brace:new g5("{"),j_oTag:new g5("<tag"),j_cTag:new g5("</tag"),j_expr:new g5("<tag>...</tag>",!0)};_1.template=new g5("`",!0);var j1=!0,u=!0,PX=!0,T9=!0,E0=!0,UW1=!0;class vX{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 _X=new Map;function S1(J,G={}){G.keyword=J;let X=X1(J,G);return _X.set(J,X),X}function U2(J,G){return X1(J,{beforeExpr:j1,binop:G})}var O9=-1,B0=[],gX=[],bX=[],hX=[],yX=[],mX=[];function X1(J,G={}){var X,H,Z,V;return++O9,gX.push(J),bX.push((X=G.binop)!=null?X:-1),hX.push((H=G.beforeExpr)!=null?H:!1),yX.push((Z=G.startsExpr)!=null?Z:!1),mX.push((V=G.prefix)!=null?V:!1),B0.push(new vX(J,G)),O9}function F1(J,G={}){var X,H,Z,V;return++O9,_X.set(J,O9),gX.push(J),bX.push((X=G.binop)!=null?X:-1),hX.push((H=G.beforeExpr)!=null?H:!1),yX.push((Z=G.startsExpr)!=null?Z:!1),mX.push((V=G.prefix)!=null?V:!1),B0.push(new vX("name",G)),O9}var KW1={bracketL:X1("[",{beforeExpr:j1,startsExpr:u}),bracketHashL:X1("#[",{beforeExpr:j1,startsExpr:u}),bracketBarL:X1("[|",{beforeExpr:j1,startsExpr:u}),bracketR:X1("]"),bracketBarR:X1("|]"),braceL:X1("{",{beforeExpr:j1,startsExpr:u}),braceBarL:X1("{|",{beforeExpr:j1,startsExpr:u}),braceHashL:X1("#{",{beforeExpr:j1,startsExpr:u}),braceR:X1("}"),braceBarR:X1("|}"),parenL:X1("(",{beforeExpr:j1,startsExpr:u}),parenR:X1(")"),comma:X1(",",{beforeExpr:j1}),semi:X1(";",{beforeExpr:j1}),colon:X1(":",{beforeExpr:j1}),doubleColon:X1("::",{beforeExpr:j1}),dot:X1("."),question:X1("?",{beforeExpr:j1}),questionDot:X1("?."),arrow:X1("=>",{beforeExpr:j1}),template:X1("template"),ellipsis:X1("...",{beforeExpr:j1}),backQuote:X1("`",{startsExpr:u}),dollarBraceL:X1("${",{beforeExpr:j1,startsExpr:u}),templateTail:X1("...`",{startsExpr:u}),templateNonTail:X1("...${",{beforeExpr:j1,startsExpr:u}),at:X1("@"),hash:X1("#",{startsExpr:u}),interpreterDirective:X1("#!..."),eq:X1("=",{beforeExpr:j1,isAssign:T9}),assign:X1("_=",{beforeExpr:j1,isAssign:T9}),slashAssign:X1("_=",{beforeExpr:j1,isAssign:T9}),xorAssign:X1("_=",{beforeExpr:j1,isAssign:T9}),moduloAssign:X1("_=",{beforeExpr:j1,isAssign:T9}),incDec:X1("++/--",{prefix:E0,postfix:UW1,startsExpr:u}),bang:X1("!",{beforeExpr:j1,prefix:E0,startsExpr:u}),tilde:X1("~",{beforeExpr:j1,prefix:E0,startsExpr:u}),doubleCaret:X1("^^",{startsExpr:u}),doubleAt:X1("@@",{startsExpr:u}),pipeline:U2("|>",0),nullishCoalescing:U2("??",1),logicalOR:U2("||",1),logicalAND:U2("&&",2),bitwiseOR:U2("|",3),bitwiseXOR:U2("^",4),bitwiseAND:U2("&",5),equality:U2("==/!=/===/!==",6),lt:U2("</>/<=/>=",7),gt:U2("</>/<=/>=",7),relational:U2("</>/<=/>=",7),bitShift:U2("<</>>/>>>",8),bitShiftL:U2("<</>>/>>>",8),bitShiftR:U2("<</>>/>>>",8),plusMin:X1("+/-",{beforeExpr:j1,binop:9,prefix:E0,startsExpr:u}),modulo:X1("%",{binop:10,startsExpr:u}),star:X1("*",{binop:10}),slash:U2("/",10),exponent:X1("**",{beforeExpr:j1,binop:11,rightAssociative:!0}),_in:S1("in",{beforeExpr:j1,binop:7}),_instanceof:S1("instanceof",{beforeExpr:j1,binop:7}),_break:S1("break"),_case:S1("case",{beforeExpr:j1}),_catch:S1("catch"),_continue:S1("continue"),_debugger:S1("debugger"),_default:S1("default",{beforeExpr:j1}),_else:S1("else",{beforeExpr:j1}),_finally:S1("finally"),_function:S1("function",{startsExpr:u}),_if:S1("if"),_return:S1("return",{beforeExpr:j1}),_switch:S1("switch"),_throw:S1("throw",{beforeExpr:j1,prefix:E0,startsExpr:u}),_try:S1("try"),_var:S1("var"),_const:S1("const"),_with:S1("with"),_new:S1("new",{beforeExpr:j1,startsExpr:u}),_this:S1("this",{startsExpr:u}),_super:S1("super",{startsExpr:u}),_class:S1("class",{startsExpr:u}),_extends:S1("extends",{beforeExpr:j1}),_export:S1("export"),_import:S1("import",{startsExpr:u}),_null:S1("null",{startsExpr:u}),_true:S1("true",{startsExpr:u}),_false:S1("false",{startsExpr:u}),_typeof:S1("typeof",{beforeExpr:j1,prefix:E0,startsExpr:u}),_void:S1("void",{beforeExpr:j1,prefix:E0,startsExpr:u}),_delete:S1("delete",{beforeExpr:j1,prefix:E0,startsExpr:u}),_do:S1("do",{isLoop:PX,beforeExpr:j1}),_for:S1("for",{isLoop:PX}),_while:S1("while",{isLoop:PX}),_as:F1("as",{startsExpr:u}),_assert:F1("assert",{startsExpr:u}),_async:F1("async",{startsExpr:u}),_await:F1("await",{startsExpr:u}),_defer:F1("defer",{startsExpr:u}),_from:F1("from",{startsExpr:u}),_get:F1("get",{startsExpr:u}),_let:F1("let",{startsExpr:u}),_meta:F1("meta",{startsExpr:u}),_of:F1("of",{startsExpr:u}),_sent:F1("sent",{startsExpr:u}),_set:F1("set",{startsExpr:u}),_source:F1("source",{startsExpr:u}),_static:F1("static",{startsExpr:u}),_using:F1("using",{startsExpr:u}),_yield:F1("yield",{startsExpr:u}),_asserts:F1("asserts",{startsExpr:u}),_checks:F1("checks",{startsExpr:u}),_exports:F1("exports",{startsExpr:u}),_global:F1("global",{startsExpr:u}),_implements:F1("implements",{startsExpr:u}),_intrinsic:F1("intrinsic",{startsExpr:u}),_infer:F1("infer",{startsExpr:u}),_is:F1("is",{startsExpr:u}),_mixins:F1("mixins",{startsExpr:u}),_proto:F1("proto",{startsExpr:u}),_require:F1("require",{startsExpr:u}),_satisfies:F1("satisfies",{startsExpr:u}),_keyof:F1("keyof",{startsExpr:u}),_readonly:F1("readonly",{startsExpr:u}),_unique:F1("unique",{startsExpr:u}),_abstract:F1("abstract",{startsExpr:u}),_declare:F1("declare",{startsExpr:u}),_enum:F1("enum",{startsExpr:u}),_module:F1("module",{startsExpr:u}),_namespace:F1("namespace",{startsExpr:u}),_interface:F1("interface",{startsExpr:u}),_type:F1("type",{startsExpr:u}),_opaque:F1("opaque",{startsExpr:u}),name:X1("name",{startsExpr:u}),string:X1("string",{startsExpr:u}),num:X1("num",{startsExpr:u}),bigint:X1("bigint",{startsExpr:u}),decimal:X1("decimal",{startsExpr:u}),regexp:X1("regexp",{startsExpr:u}),privateName:X1("#name",{startsExpr:u}),eof:X1("eof"),jsxName:X1("jsxName"),jsxText:X1("jsxText",{beforeExpr:!0}),jsxTagStart:X1("jsxTagStart",{startsExpr:!0}),jsxTagEnd:X1("jsxTagEnd"),placeholder:X1("%%",{startsExpr:!0})};function k1(J){return J>=93&&J<=132}function BW1(J){return J<=92}function c2(J){return J>=58&&J<=132}function o$(J){return J>=58&&J<=136}function RW1(J){return hX[J]}function kX(J){return yX[J]}function MW1(J){return J>=29&&J<=33}function x$(J){return J>=129&&J<=131}function qW1(J){return J>=90&&J<=92}function xX(J){return J>=58&&J<=92}function FW1(J){return J>=39&&J<=59}function jW1(J){return J===34}function fW1(J){return mX[J]}function DW1(J){return J>=121&&J<=123}function AW1(J){return J>=124&&J<=130}function v0(J){return gX[J]}function bJ(J){return bX[J]}function IW1(J){return J===57}function yJ(J){return J>=24&&J<=25}function U0(J){return B0[J]}B0[8].updateContext=(J)=>{J.pop()},B0[5].updateContext=B0[7].updateContext=B0[23].updateContext=(J)=>{J.push(_1.brace)},B0[22].updateContext=(J)=>{if(J[J.length-1]===_1.template)J.pop();else J.push(_1.template)},B0[142].updateContext=(J)=>{J.push(_1.j_expr,_1.j_oTag)};var lX="\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",e$="\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("["+lX+"]"),SW1=new RegExp("["+lX+e$+"]");lX=e$=null;var t$=[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 EX(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 R0(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 EX(J,t$)}function h5(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 EX(J,t$)||EX(J,PW1)}var cX={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(cX.keyword),LW1=new Set(cX.strict),TW1=new Set(cX.strictBind);function JU(J,G){return G&&J==="await"||J==="enum"}function GU(J,G){return JU(J,G)||LW1.has(J)}function XU(J){return TW1.has(J)}function HU(J,G){return GU(J,G)||XU(J)}function NW1(J){return wW1.has(J)}function kW1(J,G,X){return J===64&&G===64&&R0(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 mJ{constructor(J){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=J}}class xJ{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 mJ(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 mJ{constructor(...J){super(...J);this.declareFunctions=new Set}}class VU extends xJ{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 QU{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 YU(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 g9(J,G){if(J.innerComments===void 0)J.innerComments=G;else J.innerComments.unshift(...G)}function N9(J,G,X){let H=null,Z=G.length;while(H===null&&Z>0)H=G[--Z];if(H===null||H.start>X.start)g9(J,X.comments);else YU(H,X.comments)}class zU extends QU{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)YU(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":N9(X,X.properties,J);break;case"CallExpression":case"OptionalCallExpression":N9(X,X.arguments,J);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":N9(X,X.params,J);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":N9(X,X.elements,J);break;case"ExportNamedDeclaration":case"ImportDeclaration":N9(X,X.specifiers,J);break;default:g9(X,G)}else g9(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]/,vJ=new RegExp(_W1.source,"g");function y5(J){switch(J){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function l$(J,G,X){for(let H=G;H<X;H++)if(y5(J.charCodeAt(H)))return!0;return!1}var wX=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,LX=/(?:[^\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 rX{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=[_1.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 q0(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 q0(this.curLine,this.pos-this.lineStart,this.pos)}clone(){let J=new rX;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},c$={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},_J={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 r$(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 A=G.charCodeAt(X);if(hW1(J,A,G,X)){W+=G.slice(q,X);break}if(A===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(A===8232||A===8233)++X,++Z,H=X;else if(A===10||A===13)if(J==="template"){if(W+=G.slice(q,X)+"\n",++X,A===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}=OX(J,G,X,H,2,!1,Q,V),Y(W===null?null:String.fromCharCode(W))}case 117:{let W;return{code:W,pos:G}=$U(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 A=J.charCodeAt(G);if(q!=="0"||A===56||A===57)if(Z)return Y(null);else V.strictNumericEscape(W,X,H);return Y(String.fromCharCode(f))}return Y(String.fromCharCode(z))}}function OX(J,G,X,H,Z,V,Q,Y){let z=G,W;if({n:W,pos:G}=WU(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 WU(J,G,X,H,Z,V,Q,Y,z,W){let K=G,q=Z===16?c$.hex:c$.decBinOct,f=Z===16?_J.hex:Z===10?_J.dec:Z===8?_J.oct:_J.bin,A=!1,C=0;for(let l=0,O=V==null?1/0:V;l<O;++l){let v=J.charCodeAt(G),h;if(v===95&&Y!=="bail"){let U1=J.charCodeAt(G-1),e=J.charCodeAt(G+1);if(!Y){if(W)return{n:null,pos:G};z.numericSeparatorInEscapeSequence(G,X,H)}else if(Number.isNaN(e)||!f(e)||q.has(U1)||q.has(e)){if(W)return{n:null,pos:G};z.unexpectedNumericSeparator(G,X,H)}++G;continue}if(v>=97)h=v-97+10;else if(v>=65)h=v-65+10;else if(bW1(v))h=v-48;else h=1/0;if(h>=Z)if(h<=9&&W)return{n:null,pos:G};else if(h<=9&&z.invalidDigit(G,X,H,Z))h=0;else if(Q)h=0,A=!0;else break;++G,C=C*Z+h}if(G===K||V!=null&&G-K!==V||A)return{n:null,pos:G};return{n:C,pos:G}}function $U(J,G,X,H,Z,V){let Q=J.charCodeAt(G),Y;if(Q===123){if(++G,{code:Y,pos:G}=OX(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}=OX(J,G,X,H,4,!1,Z,V));return{code:Y,pos:G}}function k9(J,G,X){return new q0(X,J-G,J)}var mW1=new Set([103,109,115,105,121,117,100,118]);class K0{constructor(J){this.type=J.type,this.value=J.value,this.start=J.start,this.end=J.end,this.loc=new _9(J.startLoc,J.endLoc)}}class UU extends zU{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,k9(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,k9(X,H,Z))},unterminated:(X,H,Z)=>{throw this.raise(D.UnterminatedString,k9(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,k9(X,H,Z))}}),this.state=new rX,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 K0(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 wX.lastIndex=J,wX.test(this.input)?wX.lastIndex:J}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(J){return LX.lastIndex=J,LX.test(this.input)?LX.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,vJ.lastIndex=X+2;while(vJ.test(this.input)&&vJ.lastIndex<=H)++this.state.curLine,this.state.lineStart=vJ.lastIndex;if(this.isLookahead)return;let Z={type:"CommentBlock",value:this.input.slice(X+2,H),start:X,end:H+J.length,loc:new _9(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(!y5(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 _9(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(R0(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(!y5(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(R0(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,K2(J,1));let z=this.input.charCodeAt(Z);if(y5(z))throw this.raise(D.UnterminatedRegExp,K2(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=()=>K2(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(h5(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}=WU(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,K2(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(R0(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 A=f.indexOf("_");if(A>0)this.raise(D.ZeroDigitNumericSeparator,K2(X,A))}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(R0(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}=$U(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}=r$(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}=r$("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 q0(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(h5(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?R0:h5;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=_X.get(G);if(X!==void 0)this.finishToken(X,v0(X));else this.finishToken(132,G)}checkKeywordEscapes(){let{type:J}=this.state;if(xX(J)&&this.state.containsEsc)this.raise(D.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:v0(J)})}raise(J,G,X={}){let H=G instanceof q0?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 q0?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?v0(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,k9(G,X,H))}}}class KU{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class BU{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 KU)}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 h9{constructor(J=0){this.type=J}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class aX extends h9{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 RU{constructor(J){this.parser=void 0,this.stack=[new h9],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 h9(3)}function lW1(){return new aX(1)}function cW1(){return new aX(2)}function MU(){return new h9}class qU{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 hJ(J,G){return(J?2:0)|(G?1:0)}class FU extends UU{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!(h5(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 l$(this.input,this.state.lastTokEndLoc.index,this.state.start)}hasFollowingLineBreak(){return l$(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 o$(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 qU;let Y=this.classScope;this.classScope=new BU(this);let z=this.expressionScope;return this.expressionScope=new RU(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 v9{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}class b9{constructor(J,G,X){if(this.type="",this.start=G,this.end=0,this.loc=new _9(X),J!=null&&J.options.ranges)this.range=[G,0];if(J!=null&&J.filename)this.loc.filename=J.filename}}var iX=b9.prototype;iX.__clone=function(){let J=new b9(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 F0(J)}function F0(J){let{type:G,start:X,end:H,loc:Z,range:V,extra:Q,name:Y}=J,z=Object.create(iX);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(iX);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 jU extends FU{startNode(){let J=this.state.startLoc;return new b9(this,J.index,J)}startNodeAt(J){return new b9(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"]),V1=M0`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 a$(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 VU}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(V1.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(V1.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(V1.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc);super.parseImport(Y)}else this.expectContextual(125,V1.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(V1.AmbiguousDeclareModuleKind,Y);V="ES"}else if(Y.type==="DeclareModuleExports"){if(Q)this.raise(V1.DuplicateDeclareModuleExports,Y);if(V==="ES")this.raise(V1.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(V1.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(V1.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(X,H,Z){if(!iW1.has(X))return;this.raise(Z?V1.AssignReservedType:V1.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(V1.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 A=!1,C=null,l=null,O=this.startNode();if(V&&this.isContextual(118)){let h=this.lookahead();if(h.type!==14&&h.type!==17)this.next(),C=this.state.startLoc,X=!1}if(X&&this.isContextual(106)){let h=this.lookahead();if(h.type!==14&&h.type!==17)this.next(),A=!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,A))}else z.indexers.push(this.flowParseObjectTypeIndexer(O,A,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,A))}else{let h="init";if(this.isContextual(99)||this.isContextual(104)){let e=this.lookahead();if(o$(e.type))h=this.state.value,this.next()}let U1=this.flowParseObjectTypeProperty(O,A,C,v,h,Z,Q!=null?Q:!K);if(U1===null)q=!0,l=this.state.lastTokStartLoc;else z.properties.push(U1)}if(this.flowObjectTypeSemicolon(),l&&!this.match(8)&&!this.match(9))this.raise(V1.UnexpectedExplicitInexactInObject,l)}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(V1.InexactInsideNonObject,this.state.lastTokStartLoc);else if(!z)this.raise(V1.InexactInsideExact,this.state.lastTokStartLoc);if(V)this.raise(V1.InexactVariance,V);return null}if(!Y)this.raise(V1.UnexpectedSpreadType,this.state.lastTokStartLoc);if(Z!=null)this.unexpected(Z);if(V)this.raise(V1.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(V1.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"?V1.GetterMayNotHaveThisParam:V1.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(V1.ThisParamMustBeFirst,Q);if(H=this.parseIdentifier(z),this.eat(17)){if(Z=!0,z)this.raise(V1.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(k1(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(V1.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(xX(this.state.type)){let z=v0(this.state.type);return this.next(),super.createIdentifier(H,z)}else if(k1(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(c2(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)||k1(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(X)}else if(k1(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(x$(X)||this.plugins.get("flow").enums&&X===126)return!this.state.containsEsc;return super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:X}=this.state;if(x$(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 A=0;A<q.length;A++)f.push(q[A].start);({consequent:z,failed:W}=this.tryParseConditionalConsequent()),[K,q]=this.getArrowLikeExpressions(z)}if(W&&K.length>1)this.raise(V1.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(V1.DeclareClassElement,V);else if(H.value)this.raise(V1.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(V1.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(V1.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(V1.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(V1.GetterMayNotHaveThisParam,Z);else if(this.isThisParam(Z))this.raise(V1.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(V1.PatternIsOptional,X);if(this.isThisParam(X))this.raise(V1.ThisParamMayNotBeOptional,X);X.optional=!0}if(this.match(14))X.typeAnnotation=this.flowParseTypeAnnotation();else if(this.isThisParam(X))this.raise(V1.ThisParamAnnotationRequired,X);if(this.match(29)&&this.isThisParam(X))this.raise(V1.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(V1.TypeBeforeInitializer,Z.typeAnnotation);return Z}checkImportReflection(X){if(super.checkImportReflection(X),X.module&&X.importKind!=="value")this.raise(V1.ImportReflectionHasImportType,X.specifiers[0].loc.start)}parseImportSpecifierLocal(X,H,Z){H.local=a$(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&&!c2(this.state.type))X.imported=q,X.importKind=z,X.local=F0(q);else X.imported=Y,X.importKind=null,X.local=this.parseIdentifier()}else{if(z!==null&&c2(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=F0(X.imported)}let K=a$(X);if(Z&&K)this.raise(V1.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===_1.j_oTag||K===_1.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 A;W=this.flowParseTypeParameterDeclaration();let C=this.forwardNoArrowParamsConversionAt(W,()=>{let O=super.parseMaybeAssign(X,H);return this.resetStartLocationFromNode(O,W),O});if((A=C.extra)!=null&&A.parenthesized)f();let l=this.maybeUnwrapTypeCastExpression(C);if(l.type!=="ArrowFunctionExpression")f();return l.typeParameters=W,this.resetStartLocationFromNode(l,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(V1.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(V1.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(V1.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(V1.UnterminatedFlowComment,this.state.curPosition());return Z}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(V1.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(V1.EnumBooleanMemberNotInitialized,X,{memberName:Z,enumName:H})}flowEnumErrorInvalidMemberInitializer(X,H){return this.raise(!H.explicitType?V1.EnumInvalidMemberInitializerUnknownType:H.explicitType==="symbol"?V1.EnumInvalidMemberInitializerSymbolType:V1.EnumInvalidMemberInitializerPrimaryType,X,H)}flowEnumErrorNumberMemberNotInitialized(X,H){this.raise(V1.EnumNumberMemberNotInitialized,X,H)}flowEnumErrorStringMemberInconsistentlyInitialized(X,H){this.raise(V1.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(V1.EnumInvalidMemberName,z,{memberName:K,suggestion:K[0].toUpperCase()+K.slice(1),enumName:X});if(Z.has(K))this.raise(V1.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(!k1(this.state.type))throw this.raise(V1.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:X});let{value:H}=this.state;if(this.next(),H!=="boolean"&&H!=="number"&&H!=="string"&&H!=="symbol")this.raise(V1.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,A=Y.defaultedMembers.length;if(!K&&!q&&!f&&!A)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>=A){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>=A){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(V1.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"},X5=M0`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 O0(J){return J?J.type==="JSXOpeningFragment"||J.type==="JSXClosingFragment":!1}function b5(J){if(J.type==="JSXIdentifier")return J.name;if(J.type==="JSXNamespacedName")return J.namespace.name+":"+J.name.name;if(J.type==="JSXMemberExpression")return b5(J.object)+"."+b5(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(X5.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(y5(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(y5(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(h5(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(xX(this.state.type))X.name=v0(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(_1.brace),this.next(),X=this.jsxParseExpressionContainer(X,_1.j_oTag),X.expression.type==="JSXEmptyExpression")this.raise(X5.AttributeIsEmpty,X);return X;case 142:case 133:return this.parseExprAtom();default:throw this.raise(X5.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(_1.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(_1.brace),this.next(),this.expect(21),X.argument=this.parseMaybeAssignAllowIn(),this.setContext(_1.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(_1.brace),this.next(),this.match(21))Z.push(this.jsxParseSpreadChild(Y));else Z.push(this.jsxParseExpressionContainer(Y,_1.j_expr));break}default:this.unexpected()}if(O0(V)&&!O0(Q)&&Q!==null)this.raise(X5.MissingClosingTagFragment,Q);else if(!O0(V)&&O0(Q))this.raise(X5.MissingClosingTagElement,Q,{openingTagName:b5(V.name)});else if(!O0(V)&&!O0(Q)){if(b5(Q.name)!==b5(V.name))this.raise(X5.MissingClosingTagElement,Q,{openingTagName:b5(V.name)})}}if(O0(V))H.openingFragment=V,H.closingFragment=Q;else H.openingElement=V,H.closingElement=Q;if(H.children=Z,this.match(47))throw this.raise(X5.UnwrappedAdjacentJSXElements,this.state.startLoc);return O0(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===_1.j_expr){this.jsxReadToken();return}if(H===_1.j_oTag||H===_1.j_cTag){if(R0(X)){this.jsxReadWord();return}if(X===62){++this.state.pos,this.finishToken(143);return}if((X===34||X===39)&&H===_1.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,_1.j_cTag),this.state.canStartJSXElement=!1;else if(Z===142)H.push(_1.j_oTag);else if(Z===143){let V=H[H.length-1];if(V===_1.j_oTag&&X===56||V===_1.j_cTag)H.pop(),this.state.canStartJSXElement=H[H.length-1]===_1.j_expr;else this.setContext(_1.j_expr),this.state.canStartJSXElement=!0}else this.state.canStartJSXElement=RW1(Z)}};class fU extends mJ{constructor(...J){super(...J);this.tsNames=new Map}}class DU extends xJ{constructor(...J){super(...J);this.importsStack=[]}createScope(J){return this.importsStack.push(new Set),new fU(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 AU=(J)=>{return J.type==="ParenthesizedExpression"?AU(J.expression):J};class IU extends jU{toAssignable(J,G=!1){var X,H;let Z=void 0;if(J.type==="ParenthesizedExpression"||(X=J.extra)!=null&&X.parenthesized)if(Z=AU(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,A=J[K];if(Array.isArray(A)){for(let C of A)if(C)this.checkLVal(C,f,X,H,Z,q)}else if(A)this.checkLVal(A,f,X,H,Z,q)}checkIdentifier(J,G,X=!1){if(this.state.strict&&(X?HU(J.name,this.inModule):XU(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 i$(J){if(!J)throw new Error("Assert fail")}var o=M0`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 u$(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:o.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:o.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:o.InvalidModifierOnTypeParameter})}getScopeHandler(){return DU}tsIsIdentifier(){return k1(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(!k1(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=o.InvalidModifierOnTypeMember},Q){let Y=(W,K,q,f)=>{if(K===q&&Q[f])this.raise(o.InvalidModifiersOrder,W,{orderedModifiers:[q,f]})},z=(W,K,q,f)=>{if(Q[q]&&K===f||Q[f]&&K===q)this.raise(o.IncompatibleModifiers,W,{modifiers:[q,f]})};for(;;){let{startLoc:W}=this.state,K=this.tsParseModifier(X.concat(H!=null?H:[]),Z);if(!K)break;if(u$(K))if(Q.accessibility)this.raise(o.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(o.DuplicateModifier,W,{modifier:K});Q[K]=!0,Y(W,K,"in","out")}else{if(hasOwnProperty.call(Q,K))this.raise(o.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(o.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(o.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(o.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(),k1(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(o.ReadonlyForMethodSignature,X);let V=Z;if(V.kind&&this.match(47))this.raise(o.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(o.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(o.AccessorCannotDeclareThisParameter,this.state.curPosition());if(z.type==="Identifier"&&z.optional)this.raise(o.SetAccessorCannotHaveOptionalParameter,this.state.curPosition());if(z.type==="RestElement")this.raise(o.SetAccessorCannotHaveRestParameter,this.state.curPosition())}if(V[Y])this.raise(o.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(o.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=c2(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(o.TupleOptionalAfterType,this.state.lastTokStartLoc)}else K=this.startNodeAtNode(Y),K.optional=Q,this.raise(o.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(k1(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(o.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(k1(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(),!k1(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(){i$(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(o.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(o.EmptyHeritageClauseType,H,{token:X});return Z}tsParseInterfaceDeclaration(X,H={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual(129),H.declare)X.declare=!0;if(k1(this.state.type))X.id=this.parseIdentifier(),this.checkIdentifier(X.id,130);else X.id=null,this.raise(o.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(o.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(k1(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)||k1(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(k1(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(X)}break;case"namespace":if(this.tsCheckLineTerminator(Z)&&k1(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(X);break;case"type":if(this.tsCheckLineTerminator(Z)&&k1(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(o.EmptyTypeArguments,X);else if(!this.state.inType&&this.curContext()===_1.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(o.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(o.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(o.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(o.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(o.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(yJ(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&&kX(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(o.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(bJ(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(o.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(k1(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(o.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(o.InitializerNotAllowedInAmbientContext,z);else if(!Z$1(z,this.hasPlugin("estree")))this.raise(o.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(u$(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:o.InvalidModifierOnTypeParameterPositions},H);let Q=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(H,V))this.raise(o.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(o.IndexSignatureHasAbstract,H);if(H.accessibility)this.raise(o.IndexSignatureHasAccessibility,H,{modifier:H.accessibility});if(H.declare)this.raise(o.IndexSignatureHasDeclare,H);if(H.override)this.raise(o.IndexSignatureHasOverride,H);return}if(!this.state.inAbstractClass&&H.abstract)this.raise(o.NonAbstractClassHasAbstractMethod,H);if(H.override){if(!Z.hadSuperClass)this.raise(o.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(o.ClassMethodHasReadonly,X);if(X.declare&&this.match(10))this.raise(o.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(o.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let Q=k1(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(o.DeclareClassFieldHasInitializer,this.state.startLoc);if(X.abstract&&this.match(29)){let{key:H}=X;this.raise(o.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(o.PrivateElementHasAbstract,X);if(X.accessibility)this.raise(o.PrivateElementHasAccessibility,X,{modifier:X.accessibility});return this.parseClassPropertyAnnotation(X),super.parseClassPrivateProperty(X)}parseClassAccessorProperty(X){if(this.parseClassPropertyAnnotation(X),X.optional)this.raise(o.AccessorCannotBeOptional,X);return super.parseClassAccessorProperty(X)}pushClassMethod(X,H,Z,V,Q,Y){let z=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(z&&Q)this.raise(o.ConstructorHasTypeParameters,z);let{declare:W=!1,kind:K}=H;if(W&&(K==="get"||K==="set"))this.raise(o.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,l=C[C.length-1];if(l===_1.j_oTag||l===_1.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,A=this.tryParse((C)=>{var l,O;f=this.tsParseTypeParameters(this.tsParseConstModifier);let v=super.parseMaybeAssign(X,H);if(v.type!=="ArrowFunctionExpression"||(l=v.extra)!=null&&l.parenthesized)C();if(((O=f)==null?void 0:O.params.length)!==0)this.resetStartLocationFromNode(v,f);return v.typeParameters=f,v},W);if(!A.error&&!A.aborted){if(f)this.reportReservedArrowTypeParam(f);return A.node}if(!K){if(i$(!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(A.node){if(this.state=A.failState,f)this.reportReservedArrowTypeParam(f);return A.node}if((Q=q)!=null&&Q.node)return this.state=q.failState,q.node;throw((Y=K)==null?void 0:Y.error)||A.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(o.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(o.UnexpectedTypeCastInParameter,X);else this.raise(o.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(o.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(o.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(o.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 A=this.parseIdentifier();if(this.isContextual(93)){let C=this.parseIdentifier();if(c2(this.state.type))W=!0,Y=A,z=H?this.parseIdentifier():this.parseModuleExportName(),K=!1;else z=C,K=!1}else if(c2(this.state.type))K=!1,z=H?this.parseIdentifier():this.parseModuleExportName();else W=!0,Y=A}else if(c2(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?o.TypeModifierIsUsedInTypeImports:o.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]=F0(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 SU(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(CU(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 CU(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==="-"&&CU(H,G))return!0}return!1}function SU(J){if(J.type==="Identifier")return!0;if(J.type!=="MemberExpression"||J.computed)return!1;return SU(J.object)}var d$=M0`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(d$.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(v0(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(d$.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(),k1(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)}},s$=["minimal","fsharp","hack","smart"],p$=["^^","@@","^","%","#"];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(!s$.includes(X)){let Z=s$.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(!p$.includes(Z)){let V=p$.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 PU={estree:$W1,jsx:eW1,flow:nW1,typescript:X$1,v8intrinsic:Y$1,placeholders:Q$1},W$1=Object.keys(PU);function $$1(){return{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 U$1(J){let G=$$1();if(J==null)return G;if(J.annexB!=null&&J.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let X of Object.keys(G))if(J[X]!=null)G[X]=J[X];return G}class wU extends IU{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 v9,H=!0;let{type:Z}=this.state;if(Z===10||k1(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>=bJ(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=bJ(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=bJ(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")?kX(Y):kX(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(yJ(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 v9;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)g9(J,G.innerComments);if(G.callee.trailingComments)g9(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(R0(Z)||Z===62)this.expectOnePlugin(["jsx","flow","typescript"]);else this.unexpected();break}default:if(H===136)return this.parseDecimalLiteral(this.state.value);if(k1(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(k1(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=K2(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:v0(H)})}testTopicReferenceConfiguration(J,G,X){switch(J){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:v0(X)}]);case"smart":return X===27;default:throw this.raise(D.PipeTopicRequiresHackPipes,G)}}parseAsyncArrowUnaryFunction(J){this.prodParam.enter(hJ(!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(K2(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 v9,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 A=this.state.startLoc;if(W=this.state.startLoc,Q.push(this.parseParenItem(this.parseRestBinding(),A)),!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(K2(X,1));if(Z===null){if(!J)this.raise(D.InvalidEscapeSequenceTemplate,K2(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,K2(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,F0(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,F0(J.key))}else J.value=F0(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(c2(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(hJ(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=hJ(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(MU()),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(c2(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?JU:H?HU:GU)(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||yJ(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 TX={kind:1},K$1={kind:2},B$1=/[\uD800-\uDFFF]/u,NX=/in(?:stanceof)?/y;function R$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=K2(V.start,1);J.splice(X,1,new K0({type:U0(27),value:"#",start:Q,end:W,startLoc:V.start,endLoc:K}),new K0({type:U0(132),value:Y,start:W,end:z,startLoc:K,endLoc:V.end})),X++;continue}if(yJ(Z)){let{loc:V,start:Q,value:Y,end:z}=H,W=Q+1,K=K2(V.start,1),q;if(G.charCodeAt(Q)===96)q=new K0({type:U0(22),value:"`",start:Q,end:W,startLoc:V.start,endLoc:K});else q=new K0({type:U0(8),value:"}",start:Q,end:W,startLoc:V.start,endLoc:K});let f,A,C,l;if(Z===24)A=z-1,C=K2(V.end,-1),f=Y===null?null:Y.slice(1,-1),l=new K0({type:U0(22),value:"`",start:A,end:z,startLoc:C,endLoc:V.end});else A=z-2,C=K2(V.end,-2),f=Y===null?null:Y.slice(1,-2),l=new K0({type:U0(23),value:"${",start:A,end:z,startLoc:C,endLoc:V.end});J.splice(X,1,q,new K0({type:U0(20),value:f,start:W,end:A,startLoc:K,endLoc:C}),l),X+=2;continue}}H.type=U0(Z)}}return J}class LU extends wU{parseTopLevel(J,G){if(J.program=this.parseProgram(G),J.comments=this.comments,this.options.tokens)J.tokens=R$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",K2(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(R0(J)){if(NX.lastIndex=G,NX.test(this.input)){let X=this.codePointAtPos(NX.lastIndex);if(!h5(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(k1(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(k1(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(TX),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(TX);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"),A=this.match(58);if(A&&z)this.raise(D.ForInUsing,f);if((A||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 v9,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(K$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(TX),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(hJ(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||k1(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&&k1(this.state.type),f=this.parseClassElementName(G),A=q?f.name:null,C=this.isPrivateName(f),l=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(A==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(f);let O=this.eat(55);if(K.optional)this.unexpected(l);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((A==="get"||A==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(f),W.kind=A;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(A==="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(MU()),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(k1(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,A=this.parseExportDefaultExpression();if(f.declaration=A,A.type==="ClassDeclaration")this.maybeTakeDecorators(G,A,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(k1(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(k1(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||k1(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=F0(J.local);return this.finishNode(J,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){let J=this.parseStringLiteral(this.state.value),G=B$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(c2(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 k1(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(c2(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=F0(V)}return this.finishImportSpecifier(J,"ImportSpecifier",Z)}isThisParam(J){return J.type==="Identifier"&&J.name==="this"}}class uX extends LU{constructor(J,G,X){J=U$1(J);super(J,G);this.options=J,this.initializeScopes(),this.plugins=X,this.filename=J.sourceFilename}getScopeHandler(){return xJ}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 M$1(J,G){var X;if(((X=G)==null?void 0:X.sourceType)==="unambiguous"){G=Object.assign({},G);try{G.sourceType="module";let H=E9(G,J),Z=H.parse();if(H.sawUnambiguousESM)return Z;if(H.ambiguousScriptDifferentAst)try{return G.sourceType="script",E9(G,J).parse()}catch(V){}else Z.program.sourceType="script";return Z}catch(H){try{return G.sourceType="script",E9(G,J).parse()}catch(Z){}throw H}}else return E9(G,J).parse()}function q$1(J,G){let X=E9(G,J);if(X.options.strictMode)X.state.strict=!0;return X.getExpression()}function F$1(J){let G={};for(let X of Object.keys(J))G[X]=U0(J[X]);return G}var j$1=F$1(KW1);function E9(J,G){let X=uX,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=f$1(H)}return new X(J,G,H)}var n$=new Map;function f$1(J){let G=[];for(let Z of W$1)if(J.has(Z))G.push(Z);let X=G.join("|"),H=n$.get(X);if(!H){H=uX;for(let Z of G)H=PU[Z](H);n$.set(X,H)}return H}TU.parse=M$1;TU.parseExpression=q$1;TU.tokTypes=j$1});var dX=S((NU)=>{Object.defineProperty(NU,"__esModule",{value:!0});NU.Var=NU.User=NU.Statement=NU.SpreadProperty=NU.Scope=NU.RestProperty=NU.ReferencedMemberExpression=NU.ReferencedIdentifier=NU.Referenced=NU.Pure=NU.NumericLiteralTypeAnnotation=NU.Generated=NU.ForAwaitStatement=NU.Flow=NU.Expression=NU.ExistentialTypeParam=NU.BlockScoped=NU.BindingIdentifier=void 0;var L_1=NU.ReferencedIdentifier=["Identifier","JSXIdentifier"],T_1=NU.ReferencedMemberExpression=["MemberExpression"],N_1=NU.BindingIdentifier=["Identifier"],k_1=NU.Statement=["Statement"],E_1=NU.Expression=["Expression"],O_1=NU.Scope=["Scopable","Pattern"],v_1=NU.Referenced=null,__1=NU.BlockScoped=null,g_1=NU.Var=["VariableDeclaration"],b_1=NU.User=null,h_1=NU.Generated=null,y_1=NU.Pure=null,m_1=NU.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],x_1=NU.RestProperty=["RestElement"],l_1=NU.SpreadProperty=["RestElement"],c_1=NU.ExistentialTypeParam=["ExistsTypeAnnotation"],r_1=NU.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],a_1=NU.ForAwaitStatement=["ForOfStatement"]});var OU=S((u_1,EU)=>{var m5=1000,x5=m5*60,l5=x5*60,H5=l5*24,x$1=H5*7,l$1=H5*365.25;EU.exports=function(J,G){G=G||{};var X=typeof J;if(X==="string"&&J.length>0)return c$1(J);else if(X==="number"&&isFinite(J))return G.long?a$1(J):r$1(J);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(J))};function c$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*l$1;case"weeks":case"week":case"w":return X*x$1;case"days":case"day":case"d":return X*H5;case"hours":case"hour":case"hrs":case"hr":case"h":return X*l5;case"minutes":case"minute":case"mins":case"min":case"m":return X*x5;case"seconds":case"second":case"secs":case"sec":case"s":return X*m5;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return X;default:return}}function r$1(J){var G=Math.abs(J);if(G>=H5)return Math.round(J/H5)+"d";if(G>=l5)return Math.round(J/l5)+"h";if(G>=x5)return Math.round(J/x5)+"m";if(G>=m5)return Math.round(J/m5)+"s";return J+"ms"}function a$1(J){var G=Math.abs(J);if(G>=H5)return cJ(J,G,H5,"day");if(G>=l5)return cJ(J,G,l5,"hour");if(G>=x5)return cJ(J,G,x5,"minute");if(G>=m5)return cJ(J,G,m5,"second");return J+" ms"}function cJ(J,G,X,H){var Z=G>=X*1.5;return Math.round(J/X)+" "+H+(Z?"s":"")}});var sX=S((d_1,vU)=>{function i$1(J){X.debug=X,X.default=X,X.coerce=z,X.disable=V,X.enable=Z,X.enabled=Q,X.humanize=OU(),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,A,C;function l(...O){if(!l.enabled)return;let v=l,h=Number(new Date),U1=h-(q||h);if(v.diff=U1,v.prev=q,v.curr=h,q=h,O[0]=X.coerce(O[0]),typeof O[0]!=="string")O.unshift("%O");let e=0;O[0]=O[0].replace(/%([a-zA-Z%])/g,(Y1,w1)=>{if(Y1==="%%")return"%";e++;let L1=X.formatters[w1];if(typeof L1==="function"){let a=O[e];Y1=L1.call(v,a),O.splice(e,1),e--}return Y1}),X.formatArgs.call(v,O),(v.log||X.log).apply(v,O)}if(l.namespace=K,l.useColors=X.useColors(),l.color=X.selectColor(K),l.extend=H,l.destroy=X.destroy,Object.defineProperty(l,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(f!==null)return f;if(A!==X.namespaces)A=X.namespaces,C=X.enabled(K);return C},set:(O)=>{f=O}}),typeof X.init==="function")X.init(l);return l}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,]+/),A=f.length;for(q=0;q<A;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}vU.exports=i$1});var gU=S((_U,aJ)=>{_U.formatArgs=d$1;_U.save=s$1;_U.load=p$1;_U.useColors=u$1;_U.storage=n$1();_U.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`.")}})();_U.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 u$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 d$1(J){if(J[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+J[0]+(this.useColors?"%c ":" ")+"+"+aJ.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)}_U.log=console.debug||console.log||(()=>{});function s$1(J){try{if(J)_U.storage.setItem("debug",J);else _U.storage.removeItem("debug")}catch(G){}}function p$1(){let J;try{J=_U.storage.getItem("debug")}catch(G){}if(!J&&typeof process!=="undefined"&&"env"in process)J="true";return J}function n$1(){try{return localStorage}catch(J){}}aJ.exports=sX()(_U);var{formatters:o$1}=aJ.exports;o$1.j=function(J){try{return JSON.stringify(J)}catch(G){return"[UnexpectedJSONParseError]: "+G.message}}});var hU={};VU1(hU,{default:()=>KU1,createSupportsColor:()=>pX});import nX from"process";import YU1 from"os";import bU from"tty";function _2(J,G=globalThis.Deno?globalThis.Deno.args:nX.argv){let X=J.startsWith("-")?"":J.length===1?"-":"--",H=G.indexOf(X+J),Z=G.indexOf("--");return H!==-1&&(Z===-1||H<Z)}function zU1(){if("FORCE_COLOR"in a1){if(a1.FORCE_COLOR==="true")return 1;if(a1.FORCE_COLOR==="false")return 0;return a1.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(a1.FORCE_COLOR,10),3)}}function WU1(J){if(J===0)return!1;return{level:J,hasBasic:!0,has256:J>=2,has16m:J>=3}}function $U1(J,{streamIsTTY:G,sniffFlags:X=!0}={}){let H=zU1();if(H!==void 0)iJ=H;let Z=X?iJ:H;if(Z===0)return 0;if(X){if(_2("color=16m")||_2("color=full")||_2("color=truecolor"))return 3;if(_2("color=256"))return 2}if("TF_BUILD"in a1&&"AGENT_NAME"in a1)return 1;if(J&&!G&&Z===void 0)return 0;let V=Z||0;if(a1.TERM==="dumb")return V;if(nX.platform==="win32"){let Q=YU1.release().split(".");if(Number(Q[0])>=10&&Number(Q[2])>=10586)return Number(Q[2])>=14931?3:2;return 1}if("CI"in a1){if("GITHUB_ACTIONS"in a1||"GITEA_ACTIONS"in a1)return 3;if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((Q)=>(Q in a1))||a1.CI_NAME==="codeship")return 1;return V}if("TEAMCITY_VERSION"in a1)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a1.TEAMCITY_VERSION)?1:0;if(a1.COLORTERM==="truecolor")return 3;if(a1.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in a1){let Q=Number.parseInt((a1.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a1.TERM_PROGRAM){case"iTerm.app":return Q>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(a1.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a1.TERM))return 1;if("COLORTERM"in a1)return 1;return V}function pX(J,G={}){let X=$U1(J,{streamIsTTY:J&&J.isTTY,...G});return WU1(X)}var a1,iJ,UU1,KU1;var yU=QU1(()=>{({env:a1}=nX);if(_2("no-color")||_2("no-colors")||_2("color=false")||_2("color=never"))iJ=0;else if(_2("color")||_2("colors")||_2("color=true")||_2("color=always"))iJ=1;UU1={stdout:pX({isTTY:bU.isatty(1)}),stderr:pX({isTTY:bU.isatty(2)})},KU1=UU1});var cU=S((xU,dJ)=>{var RU1=import.meta.require("tty"),uJ=import.meta.require("util");xU.init=AU1;xU.log=jU1;xU.formatArgs=qU1;xU.save=fU1;xU.load=DU1;xU.useColors=MU1;xU.destroy=uJ.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");xU.colors=[6,2,3,4,5,1];try{let J=(yU(),BU1(hU));if(J&&(J.stderr||J).level>=2)xU.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){}xU.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 MU1(){return"colors"in xU.inspectOpts?Boolean(xU.inspectOpts.colors):RU1.isatty(process.stderr.fd)}function qU1(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+"+dJ.exports.humanize(this.diff)+"\x1B[0m")}else J[0]=FU1()+G+" "+J[0]}function FU1(){if(xU.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function jU1(...J){return process.stderr.write(uJ.formatWithOptions(xU.inspectOpts,...J)+"\n")}function fU1(J){if(J)process.env.DEBUG=J;else delete"true"}function DU1(){return"true"}function AU1(J){J.inspectOpts={};let G=Object.keys(xU.inspectOpts);for(let X=0;X<G.length;X++)J.inspectOpts[G[X]]=xU.inspectOpts[G[X]]}dJ.exports=sX()(xU);var{formatters:mU}=dJ.exports;mU.o=function(J){return this.inspectOpts.colors=this.useColors,uJ.inspect(J,this.inspectOpts).split("\n").map((G)=>G.trim()).join(" ")};mU.O=function(J){return this.inspectOpts.colors=this.useColors,uJ.inspect(J,this.inspectOpts)}});var rU=S((t_1,oX)=>{if(typeof process==="undefined"||process.type==="renderer"||!1||process.__nwjs)oX.exports=gU();else oX.exports=cU()});var tX=S((uU)=>{Object.defineProperty(uU,"__esModule",{value:!0});uU.isBindingIdentifier=oU1;uU.isBlockScoped=XK1;uU.isExpression=tU1;uU.isFlow=YK1;uU.isForAwaitStatement=$K1;uU.isGenerated=VK1;uU.isPure=QK1;uU.isReferenced=GK1;uU.isReferencedIdentifier=pU1;uU.isReferencedMemberExpression=nU1;uU.isRestProperty=zK1;uU.isScope=JK1;uU.isSpreadProperty=WK1;uU.isStatement=eU1;uU.isUser=ZK1;uU.isVar=HK1;var NU1=q1(),{isBinding:kU1,isBlockScoped:EU1,isExportDeclaration:OU1,isExpression:vU1,isFlow:_U1,isForStatement:gU1,isForXStatement:bU1,isIdentifier:aU,isImportDeclaration:hU1,isImportSpecifier:yU1,isJSXIdentifier:mU1,isJSXMemberExpression:xU1,isMemberExpression:lU1,isRestElement:iU,isReferenced:eX,isScope:cU1,isStatement:rU1,isVar:aU1,isVariableDeclaration:iU1,react:uU1,isForOfStatement:dU1}=NU1,{isCompatTag:sU1}=uU1;function pU1(J){let{node:G,parent:X}=this;if(!aU(G,J)&&!xU1(X,J))if(mU1(G,J)){if(sU1(G.name))return!1}else return!1;return eX(G,X,this.parentPath.parent)}function nU1(){let{node:J,parent:G}=this;return lU1(J)&&eX(J,G)}function oU1(){let{node:J,parent:G}=this,X=this.parentPath.parent;return aU(J)&&kU1(J,G,X)}function eU1(){let{node:J,parent:G}=this;if(rU1(J)){if(iU1(J)){if(bU1(G,{left:J}))return!1;if(gU1(G,{init:J}))return!1}return!0}else return!1}function tU1(){if(this.isIdentifier())return this.isReferencedIdentifier();else return vU1(this.node)}function JK1(){return cU1(this.node,this.parent)}function GK1(){return eX(this.node,this.parent)}function XK1(){return EU1(this.node)}function HK1(){return aU1(this.node)}function ZK1(){return this.node&&!!this.node.loc}function VK1(){return!this.isUser()}function QK1(J){return this.scope.isPure(this.node,J)}function YK1(){let{node:J}=this;if(_U1(J))return!0;else if(hU1(J))return J.importKind==="type"||J.importKind==="typeof";else if(OU1(J))return J.exportKind==="type";else if(yU1(J))return J.importKind==="type"||J.importKind==="typeof";else return!1}function zK1(){var J;return iU(this.node)&&((J=this.parentPath)==null?void 0:J.isObjectPattern())}function WK1(){var J;return iU(this.node)&&((J=this.parentPath)==null?void 0:J.isObjectExpression())}function $K1(){return dU1(this.node,{await:!0})}uU.isExistentialTypeParam=function J(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},uU.isNumericLiteralTypeAnnotation=function J(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var m9=S((QK)=>{Object.defineProperty(QK,"__esModule",{value:!0});QK.environmentVisitor=_K1;QK.explode=HK;QK.isExplodedVisitor=XK;QK.merge=VK;QK.verify=ZK;var GK=dX(),LK1=tX(),TK1=q1(),dU=e2(),{DEPRECATED_KEYS:sU,DEPRECATED_ALIASES:pU,FLIPPED_ALIAS_KEYS:nU,TYPES:NK1,__internal__deprecationWarning:oU}=TK1;function kK1(J){return J in GK}function XK(J){return J==null?void 0:J._exploded}function HK(J){if(XK(J))return J;J._exploded=!0;for(let G of Object.keys(J)){if(V5(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,EK1(J),JK(J);for(let G of Object.keys(J)){if(V5(G))continue;if(!kK1(G))continue;let X=J[G];for(let Z of Object.keys(X))X[Z]=OK1(G,X[Z]);delete J[G];let H=GK[G];if(H!==null)for(let Z of H)if(J[Z])y9(J[Z],X);else J[Z]=X;else y9(J,X)}for(let G of Object.keys(J)){if(V5(G))continue;let X=nU[G];if(G in sU){let Z=sU[G];oU(G,Z,"Visitor "),X=[Z]}else if(G in pU){let Z=pU[G];oU(G,Z,"Visitor "),X=nU[Z]}if(!X)continue;let H=J[G];delete J[G];for(let Z of X){let V=J[Z];if(V)y9(V,H);else J[Z]=Object.assign({},H)}}for(let G of Object.keys(J)){if(V5(G))continue;JK(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")eU(G,J[G]);if(V5(G))continue;if(!NK1.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.9`);let X=J[G];if(typeof X==="object")for(let H of Object.keys(X))if(H==="enter"||H==="exit")eU(`${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 eU(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 VK(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=HK(J[Z]),Q=G[Z],Y=V;if(Q||X)Y=tU(Y,Q,X);y9(H,Y);for(let z of Object.keys(V)){if(V5(z))continue;let W=V[z];if(Q||X)W=tU(W,Q,X);let K=H[z]||(H[z]={});y9(K,W)}}return H}function tU(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 EK1(J){for(let G of Object.keys(J)){if(V5(G))continue;let X=J[G];if(typeof X==="function")J[G]={enter:X}}}function JK(J){if(J.enter&&!Array.isArray(J.enter))J.enter=[J.enter];if(J.exit&&!Array.isArray(J.exit))J.exit=[J.exit]}function OK1(J,G){let X=`is${J}`,H=LK1[X],Z=function(V){if(H.call(V))return G.apply(this,arguments)};return Z.toString=()=>G.toString(),Z}function V5(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 y9(J,G){for(let X of["enter","exit"]){if(!G[X])continue;J[X]=[].concat(J[X]||[],G[X])}}var vK1={FunctionParent(J){if(J.isArrowFunctionExpression())return;if(J.skip(),J.isMethod())if(!J.requeueComputedKeyAndDecorators)dU.requeueComputedKeyAndDecorators.call(J);else J.requeueComputedKeyAndDecorators()},Property(J){if(J.isObjectProperty())return;if(J.skip(),!J.requeueComputedKeyAndDecorators)dU.requeueComputedKeyAndDecorators.call(J);else J.requeueComputedKeyAndDecorators()}};function _K1(J){return VK([vK1,J])}});var $K=S((zK)=>{Object.defineProperty(zK,"__esModule",{value:!0});zK.default=void 0;var sJ=q1(),xK1=sJ,lK1=pJ(),cK1=m9(),rK1=e2(),{getAssignmentIdentifiers:aK1}=xK1,iK1={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)rK1.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()?aK1(J.node):J.getOuterBindingIdentifiers();for(let H in X)if(H===G.oldName)X[H].name=G.newName}};class YK{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(sJ.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(sJ.isMethod(Q)){if(Q.computed)Y.key=!0;if(!sJ.isObjectMethod(Q))Y.decorators=!0}if(lK1.traverseNode(Q,cK1.explode(iK1),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)}}zK.default=YK});var RK=S((KK)=>{Object.defineProperty(KK,"__esModule",{value:!0});KK.default=void 0;class UK{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")&&uK1(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}}KK.default=UK;function uK1(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 MK=S((Qg1,dK1)=>{dK1.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 Q5=S((jK)=>{Object.defineProperty(jK,"__esModule",{value:!0});jK.clear=pK1;jK.clearPath=qK;jK.clearScope=FK;jK.getCachedPaths=nK1;jK.getOrCreateCachedPaths=oK1;jK.scope=jK.path=void 0;var nJ=jK.path=new WeakMap,sK1=jK.scope=new WeakMap;function pK1(){qK(),FK()}function qK(){jK.path=nJ=new WeakMap}function FK(){jK.scope=sK1=new WeakMap}var J3=Object.freeze({});function nK1(J,G){var X,H;return J=null,(X=nJ.get((H=J)!=null?H:J3))==null?void 0:X.get(G)}function oK1(J,G){var X,H;J=null;let Z=nJ.get((X=J)!=null?X:J3);if(!Z)nJ.set((H=J)!=null?H:J3,Z=new WeakMap);let V=Z.get(G);if(!V)Z.set(G,V=new Map);return V}});var V3=S((vK)=>{Object.defineProperty(vK,"__esModule",{value:!0});vK.default=void 0;var HB1=$K(),ZB1=x9(),VB1=RK(),QB1=MK(),TK=q1(),YB1=TK,DK=Q5(),zB1=m9(),{NOT_LOCAL_BINDING:AK,assignmentExpression:WB1,callExpression:IK,cloneNode:CK,getBindingIdentifiers:NK,identifier:z5,isArrayExpression:kK,isBinary:$B1,isCallExpression:SK,isClass:UB1,isClassBody:KB1,isClassDeclaration:BB1,isExportAllDeclaration:EK,isExportDefaultDeclaration:RB1,isExportNamedDeclaration:X3,isFunctionDeclaration:MB1,isIdentifier:Y5,isImportDeclaration:H3,isLiteral:qB1,isMemberExpression:FB1,isMethod:jB1,isModuleSpecifier:fB1,isNullLiteral:DB1,isObjectExpression:AB1,isProperty:IB1,isPureish:CB1,isRegExpLiteral:SB1,isSuper:PB1,isTaggedTemplateExpression:wB1,isTemplateLiteral:OK,isThisExpression:PK,isUnaryExpression:LB1,isVariableDeclaration:TB1,expressionStatement:NB1,matchesPattern:wK,memberExpression:Z3,numericLiteral:kB1,toIdentifier:EB1,variableDeclaration:OB1,variableDeclarator:vB1,isRecordExpression:_B1,isTupleExpression:gB1,isObjectProperty:bB1,isTopicReference:LK,isMetaProperty:hB1,isPrivateName:yB1,isExportDeclaration:mB1,buildUndefinedNode:xB1,sequenceExpression:lB1}=TK;function l1(J,G){switch(J==null?void 0:J.type){default:if(H3(J)||mB1(J)){var X;if((EK(J)||X3(J)||H3(J))&&J.source)l1(J.source,G);else if((X3(J)||H3(J))&&(X=J.specifiers)!=null&&X.length)for(let H of J.specifiers)l1(H,G);else if((RB1(J)||X3(J))&&J.declaration)l1(J.declaration,G)}else if(fB1(J))l1(J.local,G);else if(qB1(J)&&!DB1(J)&&!SB1(J)&&!OK(J))G.push(J.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":l1(J.object,G),l1(J.property,G);break;case"Identifier":case"JSXIdentifier":G.push(J.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":l1(J.callee,G);break;case"ObjectExpression":case"ObjectPattern":for(let H of J.properties)l1(H,G);break;case"SpreadElement":case"RestElement":l1(J.argument,G);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":l1(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"),l1(J.argument,G);break;case"AwaitExpression":G.push("await"),l1(J.argument,G);break;case"AssignmentExpression":l1(J.left,G);break;case"VariableDeclarator":l1(J.id,G);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":l1(J.id,G);break;case"PrivateName":l1(J.id,G);break;case"ParenthesizedExpression":l1(J.expression,G);break;case"UnaryExpression":case"UpdateExpression":l1(J.argument,G);break;case"MetaProperty":l1(J.meta,G),l1(J.property,G);break;case"JSXElement":l1(J.openingElement,G);break;case"JSXOpeningElement":l1(J.name,G);break;case"JSXFragment":l1(J.openingFragment,G);break;case"JSXOpeningFragment":G.push("Fragment");break;case"JSXNamespacedName":l1(J.namespace,G),l1(J.name,G);break}}var oJ={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(EK(G))return;let H=G.declaration;if(BB1(H)||MB1(H)){let Z=H.id;if(!Z)return;let V=X.getBinding(Z.name);V==null||V.reference(J)}else if(TB1(H))for(let Z of H.declarations)for(let V of Object.keys(NK(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[AK])J.scope.registerBinding("local",J.get("id"),J)},ClassExpression(J){if(J.node.id&&!J.node.id[AK])J.scope.registerBinding("local",J.get("id"),J)},TSTypeAnnotation(J){J.skip()}},cB1=0;class g2{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=DK.scope.get(G);if((X==null?void 0:X.path)===J)return X;DK.scope.set(G,this),this.uid=cB1++,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}),CK(G)}generateUidIdentifier(J){return z5(this.generateUid(J))}generateUid(J="temp"){J=EB1(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=[];l1(J,X);let H=X.join("$");return H=H.replace(/^_/,"")||G||"ref",this.generateUid(H.slice(0,20))}generateUidIdentifierBasedOnNode(J,G){return z5(this.generateUidBasedOnNode(J,G))}isStatic(J){if(PK(J)||PB1(J)||LK(J))return!0;if(Y5(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}),CK(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 HB1.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 xB1()}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 VB1.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(Y5(J)){let V=this.getBinding(J.name);if(!V)return!1;if(G)return V.constant;return!0}else if(PK(J)||hB1(J)||LK(J)||yB1(J))return!0;else if(UB1(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(KB1(J)){for(let V of J.body)if(!this.isPure(V,G))return!1;return!0}else if($B1(J))return this.isPure(J.left,G)&&this.isPure(J.right,G);else if(kK(J)||gB1(J)){for(let V of J.elements)if(V!==null&&!this.isPure(V,G))return!1;return!0}else if(AB1(J)||_B1(J)){for(let V of J.properties)if(!this.isPure(V,G))return!1;return!0}else if(jB1(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(IB1(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(bB1(J)||J.static){if(J.value!==null&&!this.isPure(J.value,G))return!1}return!0}else if(LB1(J))return this.isPure(J.argument,G);else if(OK(J)){for(let V of J.expressions)if(!this.isPure(V,G))return!1;return!0}else if(wB1(J))return wK(J.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(J.quasi,G);else if(FB1(J))return!J.computed&&Y5(J.object)&&J.object.name==="Symbol"&&Y5(J.property)&&J.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0});else if(SK(J))return wK(J.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&J.arguments.length===1&&YB1.isStringLiteral(J.arguments[0]);else return CB1(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"&&zB1.isExplodedVisitor(oJ)){for(let Z of oJ.enter)Z.call(X,J,X);let H=oJ[J.type];if(H)for(let Z of H.enter)Z.call(X,J,X)}J.traverse(oJ,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&&SK(G.parent,{callee:G.node})&&G.parent.arguments.length<=G.node.params.length&&Y5(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=OB1(Z,[]);if(q._blockHoist=Q,[z]=G.unshiftContainer("body",[q]),!H)G.setData(Y,z)}let W=vB1(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&&g2.globals.includes(J))return!0;if(!H&&g2.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(WB1("=",K.id,K.init));let q=Object.keys(NK(K,!1,!0,!0));for(let f of q)J(z5(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]:lB1(W);if(Y.parentPath.isForStatement({init:Q}))Y.replaceWith(K);else Y.replaceWith(NB1(K))}}}}vK.default=g2;g2.globals=Object.keys(QB1.builtin);g2.contextVariables=["arguments","undefined","Infinity","NaN"];g2.prototype._renameFromMap=function J(G,X,H,Z){if(G[X])G[H]=Z,G[X]=null},g2.prototype.traverse=function(J,G,X){ZB1.default(J,G,this,X,this.path)},g2.prototype._generateUid=function J(G,X){let H=G;if(X>1)H+=X;return`_${H}`},g2.prototype.toArray=function J(G,X,H){if(Y5(G)){let Q=this.getBinding(G.name);if(Q!=null&&Q.constant&&Q.path.isGenericType("Array"))return G}if(kK(G))return G;if(Y5(G,{name:"arguments"}))return IK(Z3(Z3(Z3(z5("Array"),z5("prototype")),z5("slice")),z5("call")),[G]);let Z,V=[G];if(X===!0)Z="toConsumableArray";else if(typeof X==="number")V.push(kB1(X)),Z="slicedToArray";else Z="toArray";if(H)V.unshift(this.path.hub.addHelper(Z)),Z="maybeArrayLike";return IK(this.path.hub.addHelper(Z),V)},g2.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(g2.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var bK=S((gK)=>{Object.defineProperty(gK,"__esModule",{value:!0});gK.find=uB1;gK.findParent=iB1;gK.getAncestry=oB1;gK.getDeepestCommonAncestorFrom=nB1;gK.getEarliestCommonAncestorFrom=pB1;gK.getFunctionParent=dB1;gK.getStatementParent=sB1;gK.inType=JR1;gK.isAncestor=eB1;gK.isDescendant=tB1;var rB1=q1(),{VISITOR_KEYS:aB1}=rB1;function iB1(J){let G=this;while(G=G.parentPath)if(J(G))return G;return null}function uB1(J){let G=this;do if(J(G))return G;while(G=G.parentPath);return null}function dB1(){return this.findParent((J)=>J.isFunction())}function sB1(){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 pB1(J){return this.getDeepestCommonAncestorFrom(J,function(G,X,H){let Z,V=aB1[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 nB1(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 oB1(){let J=this,G=[];do G.push(J);while(J=J.parentPath);return G}function eB1(J){return J.isDescendant(this)}function tB1(J){return!!this.findParent((G)=>G===J)}function JR1(...J){let G=this;while(G){for(let X of J)if(G.node.type===X)return!0;G=G.parentPath}return!1}});var Q3=S((mK)=>{Object.defineProperty(mK,"__esModule",{value:!0});mK.createUnionType=MR1;var UR1=q1(),{createFlowUnionType:hK,createTSUnionType:yK,createUnionTypeAnnotation:KR1,isFlowType:BR1,isTSType:RR1}=UR1;function MR1(J){if(J.every((G)=>BR1(G))){if(hK)return hK(J);return KR1(J)}else if(J.every((G)=>RR1(G))){if(yK)return yK(J)}}});var iK=S((aK)=>{Object.defineProperty(aK,"__esModule",{value:!0});aK.default=AR1;var FR1=q1(),lK=Q3(),{BOOLEAN_NUMBER_BINARY_OPERATORS:jR1,createTypeAnnotationBasedOnTypeof:fR1,numberTypeAnnotation:cK,voidTypeAnnotation:DR1}=FR1;function AR1(J){if(!this.isReferenced())return;let G=this.scope.getBinding(J.name);if(G)if(G.identifier.typeAnnotation)return G.identifier.typeAnnotation;else return IR1(G,this,J.name);if(J.name==="undefined")return DR1();else if(J.name==="NaN"||J.name==="Infinity")return cK();else if(J.name==="arguments");}function IR1(J,G,X){let H=[],Z=[],V=xK(J,G,Z),Q=rK(J,G,X);if(Q){let Y=xK(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 lK.createUnionType(H)}function xK(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 CR1(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(jR1.includes(X))return cK();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 fR1(z)}function SR1(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 rK(J,G,X){let H=SR1(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=CR1(X,z);if(W)Q.push(W)}}if(Q.length)return{typeAnnotation:lK.createUnionType(Q),ifStatement:H};return rK(J,H,X)}});var tK=S((W3)=>{Object.defineProperty(W3,"__esModule",{value:!0});W3.ArrayExpression=nK;W3.AssignmentExpression=sR1;W3.BinaryExpression=rR1;W3.BooleanLiteral=eR1;W3.CallExpression=YM1;W3.ConditionalExpression=iR1;W3.ClassDeclaration=W3.ClassExpression=W3.FunctionDeclaration=W3.ArrowFunctionExpression=W3.FunctionExpression=XM1;Object.defineProperty(W3,"Identifier",{enumerable:!0,get:function(){return LR1.default}});W3.LogicalExpression=aR1;W3.NewExpression=xR1;W3.NullLiteral=tR1;W3.NumericLiteral=oR1;W3.ObjectExpression=GM1;W3.ParenthesizedExpression=dR1;W3.RegExpLiteral=JM1;W3.RestElement=oK;W3.SequenceExpression=uR1;W3.StringLiteral=nR1;W3.TSAsExpression=pK;W3.TSNonNullExpression=mR1;W3.TaggedTemplateExpression=zM1;W3.TemplateLiteral=lR1;W3.TypeCastExpression=sK;W3.UnaryExpression=cR1;W3.UpdateExpression=pR1;W3.VariableDeclarator=yR1;var wR1=q1(),LR1=iK(),dK=Q3(),{BOOLEAN_BINARY_OPERATORS:TR1,BOOLEAN_UNARY_OPERATORS:NR1,NUMBER_BINARY_OPERATORS:kR1,NUMBER_UNARY_OPERATORS:ER1,STRING_UNARY_OPERATORS:OR1,anyTypeAnnotation:uK,arrayTypeAnnotation:Y3,booleanTypeAnnotation:z3,buildMatchMemberExpression:eJ,genericTypeAnnotation:_0,identifier:W5,nullLiteralTypeAnnotation:vR1,numberTypeAnnotation:c5,stringTypeAnnotation:$5,tupleTypeAnnotation:_R1,unionTypeAnnotation:gR1,voidTypeAnnotation:bR1,isIdentifier:hR1}=wR1;function yR1(){if(!this.get("id").isIdentifier())return;return this.get("init").getTypeAnnotation()}function sK(J){return J.typeAnnotation}sK.validParent=!0;function pK(J){return J.typeAnnotation}pK.validParent=!0;function mR1(){return this.get("expression").getTypeAnnotation()}function xR1(J){if(J.callee.type==="Identifier")return _0(J.callee)}function lR1(){return $5()}function cR1(J){let G=J.operator;if(G==="void")return bR1();else if(ER1.includes(G))return c5();else if(OR1.includes(G))return $5();else if(NR1.includes(G))return z3()}function rR1(J){let G=J.operator;if(kR1.includes(G))return c5();else if(TR1.includes(G))return z3();else if(G==="+"){let X=this.get("right"),H=this.get("left");if(H.isBaseType("number")&&X.isBaseType("number"))return c5();else if(H.isBaseType("string")||X.isBaseType("string"))return $5();return gR1([$5(),c5()])}}function aR1(){let J=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return dK.createUnionType(J)}function iR1(){let J=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return dK.createUnionType(J)}function uR1(){return this.get("expressions").pop().getTypeAnnotation()}function dR1(){return this.get("expression").getTypeAnnotation()}function sR1(){return this.get("right").getTypeAnnotation()}function pR1(J){let G=J.operator;if(G==="++"||G==="--")return c5()}function nR1(){return $5()}function oR1(){return c5()}function eR1(){return z3()}function tR1(){return vR1()}function JM1(){return _0(W5("RegExp"))}function GM1(){return _0(W5("Object"))}function nK(){return _0(W5("Array"))}function oK(){return nK()}oK.validParent=!0;function XM1(){return _0(W5("Function"))}var HM1=eJ("Array.from"),ZM1=eJ("Object.keys"),VM1=eJ("Object.values"),QM1=eJ("Object.entries");function YM1(){let{callee:J}=this.node;if(ZM1(J))return Y3($5());else if(HM1(J)||VM1(J)||hR1(J,{name:"Array"}))return Y3(uK());else if(QM1(J))return Y3(_R1([$5(),uK()]));return eK(this.get("callee"))}function zM1(){return eK(this.get("tag"))}function eK(J){if(J=J.resolve(),J.isFunction()){let{node:G}=J;if(G.async)if(G.generator)return _0(W5("AsyncIterator"));else return _0(W5("Promise"));else if(G.generator)return _0(W5("Iterator"));else if(J.node.returnType)return J.node.returnType}}});var VB=S((ZB)=>{Object.defineProperty(ZB,"__esModule",{value:!0});ZB._getTypeAnnotation=HB;ZB.baseTypeStrictlyMatches=Gq1;ZB.couldBeBaseType=Jq1;ZB.getTypeAnnotation=eM1;ZB.isBaseType=tM1;ZB.isGenericType=Xq1;var JB=tK(),_M1=q1(),{anyTypeAnnotation:XB,isAnyTypeAnnotation:tJ,isArrayTypeAnnotation:gM1,isBooleanTypeAnnotation:bM1,isEmptyTypeAnnotation:hM1,isFlowBaseAnnotation:yM1,isGenericTypeAnnotation:mM1,isIdentifier:GB,isMixedTypeAnnotation:xM1,isNumberTypeAnnotation:lM1,isStringTypeAnnotation:cM1,isTSArrayType:rM1,isTSTypeAnnotation:aM1,isTSTypeReference:iM1,isTupleTypeAnnotation:uM1,isTypeAnnotation:dM1,isUnionTypeAnnotation:sM1,isVoidTypeAnnotation:pM1,stringTypeAnnotation:nM1,voidTypeAnnotation:oM1}=_M1;function eM1(){let J=this.getData("typeAnnotation");if(J!=null)return J;if(J=HB.call(this)||XB(),dM1(J)||aM1(J))J=J.typeAnnotation;return this.setData("typeAnnotation",J),J}var $3=new WeakSet;function HB(){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 nM1();if(X.key==="left"&&H.isForOfStatement())return XB();return oM1()}else return;if(J.typeAnnotation)return J.typeAnnotation;if($3.has(J))return;$3.add(J);try{var G;let X=JB[J.type];if(X)return X.call(this,J);if(X=JB[this.parentPath.type],(G=X)!=null&&G.validParent)return this.parentPath.getTypeAnnotation()}finally{$3.delete(J)}}function tM1(J,G){return U3(J,this.getTypeAnnotation(),G)}function U3(J,G,X){if(J==="string")return cM1(G);else if(J==="number")return lM1(G);else if(J==="boolean")return bM1(G);else if(J==="any")return tJ(G);else if(J==="mixed")return xM1(G);else if(J==="empty")return hM1(G);else if(J==="void")return pM1(G);else if(X)return!1;else throw new Error(`Unknown base type ${J}`)}function Jq1(J){let G=this.getTypeAnnotation();if(tJ(G))return!0;if(sM1(G)){for(let X of G.types)if(tJ(X)||U3(J,X,!0))return!0;return!1}else return U3(J,G,!0)}function Gq1(J){let G=this.getTypeAnnotation(),X=J.getTypeAnnotation();if(!tJ(G)&&yM1(G))return X.type===G.type;return!1}function Xq1(J){let G=this.getTypeAnnotation();if(J==="Array"){if(rM1(G)||gM1(G)||uM1(G))return!0}return mM1(G)&&GB(G.id,{name:J})||iM1(G)&&GB(G.typeName,{name:J})}});var YB=S((QB)=>{Object.defineProperty(QB,"__esModule",{value:!0});QB.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;QB.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 B3=S((fg1,K3)=>{var GG=process||{},zB=GG.argv||[],JG=GG.env||{},Uq1=!(!!JG.NO_COLOR||zB.includes("--no-color"))&&(!!JG.FORCE_COLOR||zB.includes("--color")||GG.platform==="win32"||(GG.stdout||{}).isTTY&&JG.TERM!=="dumb"||!!JG.CI),Kq1=(J,G,X=J)=>(H)=>{let Z=""+H,V=Z.indexOf(G,J.length);return~V?J+Bq1(Z,G,X,V)+G:J+Z+G},Bq1=(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)},WB=(J=Uq1)=>{let G=J?Kq1:()=>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")}};K3.exports=WB();K3.exports.createColors=WB});var UB=S((Dg1,$B)=>{var Rq1=/[|\\{}()[\]^$+*?.]/g;$B.exports=function(J){if(typeof J!=="string")throw new TypeError("Expected a string");return J.replace(Rq1,"\\$&")}});var BB=S((Ag1,KB)=>{KB.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 R3=S((Ig1,FB)=>{var U5=BB(),qB={};for(XG in U5)if(U5.hasOwnProperty(XG))qB[U5[XG]]=XG;var XG,J1=FB.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(B2 in J1)if(J1.hasOwnProperty(B2)){if(!("channels"in J1[B2]))throw new Error("missing channels property: "+B2);if(!("labels"in J1[B2]))throw new Error("missing channel labels property: "+B2);if(J1[B2].labels.length!==J1[B2].channels)throw new Error("channel and label counts mismatch: "+B2);RB=J1[B2].channels,MB=J1[B2].labels,delete J1[B2].channels,delete J1[B2].labels,Object.defineProperty(J1[B2],"channels",{value:RB}),Object.defineProperty(J1[B2],"labels",{value:MB})}var RB,MB,B2;J1.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]};J1.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]};J1.rgb.hwb=function(J){var G=J[0],X=J[1],H=J[2],Z=J1.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]};J1.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 Mq1(J,G){return Math.pow(J[0]-G[0],2)+Math.pow(J[1]-G[1],2)+Math.pow(J[2]-G[2],2)}J1.rgb.keyword=function(J){var G=qB[J];if(G)return G;var X=1/0,H;for(var Z in U5)if(U5.hasOwnProperty(Z)){var V=U5[Z],Q=Mq1(J,V);if(Q<X)X=Q,H=Z}return H};J1.keyword.rgb=function(J){return U5[J]};J1.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]};J1.rgb.lab=function(J){var G=J1.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]};J1.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};J1.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]};J1.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]}};J1.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]};J1.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]};J1.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]};J1.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]};J1.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]};J1.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]};J1.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]};J1.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]};J1.rgb.ansi16=function(J){var G=J[0],X=J[1],H=J[2],Z=1 in arguments?arguments[1]:J1.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};J1.hsv.ansi16=function(J){return J1.rgb.ansi16(J1.hsv.rgb(J),J[2])};J1.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};J1.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]};J1.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]};J1.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};J1.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]};J1.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]};J1.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]};J1.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]};J1.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]};J1.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]};J1.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]};J1.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]};J1.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]};J1.apple.rgb=function(J){return[J[0]/65535*255,J[1]/65535*255,J[2]/65535*255]};J1.rgb.apple=function(J){return[J[0]/255*65535,J[1]/255*65535,J[2]/255*65535]};J1.gray.rgb=function(J){return[J[0]/100*255,J[0]/100*255,J[0]/100*255]};J1.gray.hsl=J1.gray.hsv=function(J){return[0,0,J[0]]};J1.gray.hwb=function(J){return[0,100,J[0]]};J1.gray.cmyk=function(J){return[0,0,0,J[0]]};J1.gray.lab=function(J){return[J[0],0,0]};J1.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};J1.rgb.gray=function(J){var G=(J[0]+J[1]+J[2])/3;return[G/255*100]}});var fB=S((Cg1,jB)=>{var HG=R3();function qq1(){var J={},G=Object.keys(HG);for(var X=G.length,H=0;H<X;H++)J[G[H]]={distance:-1,parent:null};return J}function Fq1(J){var G=qq1(),X=[J];G[J].distance=0;while(X.length){var H=X.pop(),Z=Object.keys(HG[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 jq1(J,G){return function(X){return G(J(X))}}function fq1(J,G){var X=[G[J].parent,J],H=HG[G[J].parent][J],Z=G[J].parent;while(G[Z].parent)X.unshift(G[Z].parent),H=jq1(HG[G[Z].parent][Z],H),Z=G[Z].parent;return H.conversion=X,H}jB.exports=function(J){var G=Fq1(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]=fq1(Q,G)}return X}});var AB=S((Sg1,DB)=>{var M3=R3(),Dq1=fB(),r5={},Aq1=Object.keys(M3);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);return J(X)};if("conversion"in J)G.conversion=J.conversion;return G}function Cq1(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}Aq1.forEach(function(J){r5[J]={},Object.defineProperty(r5[J],"channels",{value:M3[J].channels}),Object.defineProperty(r5[J],"labels",{value:M3[J].labels});var G=Dq1(J),X=Object.keys(G);X.forEach(function(H){var Z=G[H];r5[J][H]=Cq1(Z),r5[J][H].raw=Iq1(Z)})});DB.exports=r5});var CB=S((Pg1,IB)=>{var a5=AB(),ZG=(J,G)=>function(){return`\x1B[${J.apply(a5,arguments)+G}m`},VG=(J,G)=>function(){let X=J.apply(a5,arguments);return`\x1B[${38+G};5;${X}m`},QG=(J,G)=>function(){let X=J.apply(a5,arguments);return`\x1B[${38+G};2;${X[0]};${X[1]};${X[2]}m`};function Sq1(){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:ZG(X,0)},G.color.ansi256={ansi256:VG(X,0)},G.color.ansi16m={rgb:QG(H,0)},G.bgColor.ansi={ansi:ZG(X,10)},G.bgColor.ansi256={ansi256:VG(X,10)},G.bgColor.ansi16m={rgb:QG(H,10)};for(let Z of Object.keys(a5)){if(typeof a5[Z]!=="object")continue;let V=a5[Z];if(Z==="ansi16")Z="ansi";if("ansi16"in V)G.color.ansi[Z]=ZG(V.ansi16,0),G.bgColor.ansi[Z]=ZG(V.ansi16,10);if("ansi256"in V)G.color.ansi256[Z]=VG(V.ansi256,0),G.bgColor.ansi256[Z]=VG(V.ansi256,10);if("rgb"in V)G.color.ansi16m[Z]=QG(V.rgb,0),G.bgColor.ansi16m[Z]=QG(V.rgb,10)}return G}Object.defineProperty(IB,"exports",{enumerable:!0,get:Sq1})});var PB=S((wg1,SB)=>{SB.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 LB=S((Lg1,wB)=>{var Pq1=import.meta.require("os"),r2=PB(),Z2=process.env,i5;if(r2("no-color")||r2("no-colors")||r2("color=false"))i5=!1;else if(r2("color")||r2("colors")||r2("color=true")||r2("color=always"))i5=!0;if("FORCE_COLOR"in Z2)i5=Z2.FORCE_COLOR.length===0||parseInt(Z2.FORCE_COLOR,10)!==0;function wq1(J){if(J===0)return!1;return{level:J,hasBasic:!0,has256:J>=2,has16m:J>=3}}function Lq1(J){if(i5===!1)return 0;if(r2("color=16m")||r2("color=full")||r2("color=truecolor"))return 3;if(r2("color=256"))return 2;if(J&&!J.isTTY&&i5!==!0)return 0;let G=i5?1:0;if(process.platform==="win32"){let X=Pq1.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 Z2){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((X)=>(X in Z2))||Z2.CI_NAME==="codeship")return 1;return G}if("TEAMCITY_VERSION"in Z2)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Z2.TEAMCITY_VERSION)?1:0;if(Z2.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Z2){let X=parseInt((Z2.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z2.TERM_PROGRAM){case"iTerm.app":return X>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(Z2.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Z2.TERM))return 1;if("COLORTERM"in Z2)return 1;if(Z2.TERM==="dumb")return G;return G}function q3(J){let G=Lq1(J);return wq1(G)}wB.exports={supportsColor:q3,stdout:q3(process.stdout),stderr:q3(process.stderr)}});var OB=S((Tg1,EB)=>{var Tq1=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,TB=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Nq1=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,kq1=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Eq1=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function kB(J){if(J[0]==="u"&&J.length===5||J[0]==="x"&&J.length===3)return String.fromCharCode(parseInt(J.slice(1),16));return Eq1.get(J)||J}function Oq1(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(Nq1))X.push(Z[2].replace(kq1,(Q,Y,z)=>Y?kB(Y):z));else throw new Error(`Invalid Chalk template style argument: ${V} (in style '${J}')`);return X}function vq1(J){TB.lastIndex=0;let G=[],X;while((X=TB.exec(J))!==null){let H=X[1];if(X[2]){let Z=Oq1(H,X[2]);G.push([H].concat(Z))}else G.push([H])}return G}function NB(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}EB.exports=(J,G)=>{let X=[],H=[],Z=[];if(G.replace(Tq1,(V,Q,Y,z,W,K)=>{if(Q)Z.push(kB(Q));else if(z){let q=Z.join("");Z=[],H.push(X.length===0?q:NB(J,X)(q)),X.push({inverse:Y,styles:vq1(z)})}else if(W){if(X.length===0)throw new Error("Found extraneous } in Chalk template literal");H.push(NB(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 hB=S((Ng1,c9)=>{var j3=UB(),p1=CB(),F3=LB().stdout,_q1=OB(),_B=process.platform==="win32"&&!"xterm-256color".toLowerCase().startsWith("xterm"),gB=["ansi","ansi","ansi256","ansi16m"],bB=new Set(["gray"]),u5=Object.create(null);function vB(J,G){G=G||{};let X=F3?F3.level:0;J.level=G.level===void 0?X:G.level,J.enabled="enabled"in G?G.enabled:J.level>0}function l9(J){if(!this||!(this instanceof l9)||this.template){let G={};return vB(G,J),G.template=function(){let X=[].slice.call(arguments);return hq1.apply(null,[G.template].concat(X))},Object.setPrototypeOf(G,l9.prototype),Object.setPrototypeOf(G.template,G),G.template.constructor=l9,G.template}vB(this,J)}if(_B)p1.blue.open="\x1B[94m";for(let J of Object.keys(p1))p1[J].closeRe=new RegExp(j3(p1[J].close),"g"),u5[J]={get(){let G=p1[J];return YG.call(this,this._styles?this._styles.concat(G):[G],this._empty,J)}};u5.visible={get(){return YG.call(this,this._styles||[],!0,"visible")}};p1.color.closeRe=new RegExp(j3(p1.color.close),"g");for(let J of Object.keys(p1.color.ansi)){if(bB.has(J))continue;u5[J]={get(){let G=this.level;return function(){let H={open:p1.color[gB[G]][J].apply(null,arguments),close:p1.color.close,closeRe:p1.color.closeRe};return YG.call(this,this._styles?this._styles.concat(H):[H],this._empty,J)}}}}p1.bgColor.closeRe=new RegExp(j3(p1.bgColor.close),"g");for(let J of Object.keys(p1.bgColor.ansi)){if(bB.has(J))continue;let G="bg"+J[0].toUpperCase()+J.slice(1);u5[G]={get(){let X=this.level;return function(){let Z={open:p1.bgColor[gB[X]][J].apply(null,arguments),close:p1.bgColor.close,closeRe:p1.bgColor.closeRe};return YG.call(this,this._styles?this._styles.concat(Z):[Z],this._empty,J)}}}}var gq1=Object.defineProperties(()=>{},u5);function YG(J,G,X){let H=function(){return bq1.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__=gq1,H}function bq1(){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=p1.dim.open;if(_B&&this.hasGrey)p1.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 p1.dim.open=H,X}function hq1(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 _q1(J,H.join(""))}Object.defineProperties(l9.prototype,u5);c9.exports=l9();c9.exports.supportsColor=F3;c9.exports.default=c9.exports});var uB=S((iB)=>{Object.defineProperty(iB,"__esModule",{value:!0});iB.default=iq1;iB.shouldHighlight=aB;var yB=YB(),mB=q9(),D3=yq1(B3(),!0);function lB(J){if(typeof WeakMap!="function")return null;var G=new WeakMap,X=new WeakMap;return(lB=function(H){return H?X:G})(J)}function yq1(J,G){if(!G&&J&&J.__esModule)return J;if(J===null||typeof J!="object"&&typeof J!="function")return{default:J};var X=lB(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 cB=typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?D3.createColors(!1):D3.default,xB=(J,G)=>(X)=>J(G(X)),mq1=new Set(["as","async","from","get","of","set"]);function xq1(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:xB(xB(J.white,J.bgRed),J.bold)}}var lq1=/\r\n|[\n\r\u2028\u2029]/,cq1=/^[()[\]{}]$/,rB;{let J=/^[a-z][\w-]*$/i,G=function(X,H,Z){if(X.type==="name"){if(mB.isKeyword(X.value)||mB.isStrictReservedWord(X.value,!0)||mq1.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"&&cq1.test(X.value))return"bracket";if(X.type==="invalid"&&(X.value==="@"||X.value==="#"))return"punctuator";return X.type};rB=function*(X){let H;while(H=yB.default.exec(X)){let Z=yB.matchToToken(H);yield{type:G(Z,H.index,X),value:Z.value}}}}function rq1(J,G){let X="";for(let{type:H,value:Z}of rB(G)){let V=J[H];if(V)X+=Z.split(lq1).map((Q)=>V(Q)).join("\n");else X+=Z}return X}function aB(J){return cB.isColorSupported||J.forceColor}var f3=void 0;function aq1(J){if(J){var G;return(G=f3)!=null||(f3=D3.createColors(!0)),f3}return cB}function iq1(J,G={}){if(J!==""&&aB(G)){let X=xq1(aq1(G.forceColor));return rq1(X,J)}else return J}{let J,G;iB.getChalk=({forceColor:X})=>{var H;if((H=J)!=null||(J=hB()),X){var Z;return(Z=G)!=null||(G=new J.constructor({enabled:!0,level:1})),G}return J}}});var C3=S((tB)=>{Object.defineProperty(tB,"__esModule",{value:!0});tB.codeFrameColumns=eB;tB.default=tq1;var dB=uB(),I3=sq1(B3(),!0);function oB(J){if(typeof WeakMap!="function")return null;var G=new WeakMap,X=new WeakMap;return(oB=function(H){return H?X:G})(J)}function sq1(J,G){if(!G&&J&&J.__esModule)return J;if(J===null||typeof J!="object"&&typeof J!="function")return{default:J};var X=oB(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 pq1=typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?I3.createColors(!1):I3.default,sB=(J,G)=>(X)=>J(G(X)),A3=void 0;function nq1(J){if(J){var G;return(G=A3)!=null||(A3=I3.createColors(!0)),A3}return pq1}var pB=!1;function oq1(J){return{gutter:J.gray,marker:sB(J.red,J.bold),message:sB(J.red,J.bold)}}var nB=/\r\n|[\n\r\u2028\u2029]/;function eq1(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 A=W-Y,C={};if(A)for(let l=0;l<=A;l++){let O=l+Y;if(!z)C[O]=!0;else if(l===0){let v=G[O-1].length;C[O]=[z,v-z+1]}else if(l===A)C[O]=[0,K];else{let v=G[O-l].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 eB(J,G,X={}){let H=(X.highlightCode||X.forceColor)&&dB.shouldHighlight(X),Z=nq1(X.forceColor),V=oq1(Z),Q=(l,O)=>{return H?l(O):O},Y=J.split(nB),{start:z,end:W,markerLines:K}=eq1(G,Y,X),q=G.start&&typeof G.start.column==="number",f=String(W).length,C=(H?dB.default(J,X):J).split(nB,W).slice(z,W).map((l,O)=>{let v=z+1+O,U1=` ${` ${v}`.slice(-f)} |`,e=K[v],K1=!K[v+1];if(e){let Y1="";if(Array.isArray(e)){let w1=l.slice(0,Math.max(e[0]-1,0)).replace(/[^\t]/g," "),L1=e[1]||1;if(Y1=["\n ",Q(V.gutter,U1.replace(/\d/g," "))," ",w1,Q(V.marker,"^").repeat(L1)].join(""),K1&&X.message)Y1+=" "+Q(V.message,X.message)}return[Q(V.marker,">"),Q(V.gutter,U1),l.length>0?` ${l}`:"",Y1].join("")}else return` ${Q(V.gutter,U1)}${l.length>0?` ${l}`:""}`}).join("\n");if(X.message&&!q)C=`${" ".repeat(f+1)}${X.message}\n${C}`;if(H)return Z.reset(C);else return C}function tq1(J,G,X,H={}){if(!pB){pB=!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),eB(J,{start:{column:X,line:G}},H)}});var ZR=S((XR)=>{Object.defineProperty(XR,"__esModule",{value:!0});XR.default=void 0;var JR=q1(),XF1=JR,{react:HF1}=JR,{cloneNode:ZF1,jsxExpressionContainer:VF1,variableDeclaration:QF1,variableDeclarator:YF1}=XF1,zF1={ReferencedIdentifier(J,G){if(J.isJSXIdentifier()&&HF1.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 GR{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(zF1,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=YF1(G,this.path.node),H=this.attachAfter?"insertAfter":"insertBefore",[Z]=J[H]([J.isVariableDeclarator()?X:QF1("var",[X])]),V=this.path.parentPath;if(V.isJSXElement()&&this.path.container===V.node.children)G=VF1(G);return this.path.replaceWith(ZF1(G)),J.isVariableDeclarator()?Z.get("init"):Z.get("declarations.0.init")}}XR.default=GR});var YR=S((VR)=>{Object.defineProperty(VR,"__esModule",{value:!0});VR.hooks=void 0;var _g1=VR.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 zG=S((BR)=>{Object.defineProperty(BR,"__esModule",{value:!0});BR._assertUnremoved=KR;BR._callRemovalHooks=$R;BR._markRemoved=S3;BR._remove=UR;BR._removeFromScope=WR;BR.remove=qF1;var WF1=YR(),$F1=Q5(),UF1=P3(),zR=g0(),KF1=q1(),BF1=WG(),RF1=e2(),{getBindingIdentifiers:MF1}=KF1;function qF1(){var J;if(KR.call(this),RF1.resync.call(this),$R.call(this)){S3.call(this);return}if(!((J=this.opts)!=null&&J.noScope))WR.call(this);this.shareCommentsWithSiblings(),UR.call(this),S3.call(this)}function WR(){let J=MF1(this.node,!1,!1,!0);Object.keys(J).forEach((G)=>this.scope.removeBinding(G))}function $R(){if(this.parentPath){for(let J of WF1.hooks)if(J(this,this.parentPath))return!0}}function UR(){if(Array.isArray(this.container))this.container.splice(this.key,1),BF1.updateSiblingKeys.call(this,this.key,-1);else UF1._replaceWith.call(this,null)}function S3(){if(this._traverseFlags|=zR.SHOULD_SKIP|zR.REMOVED,this.parent)$F1.getCachedPaths(this.hub,this.parent).delete(this.node);this.node=null}function KR(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}});var WG=S((DR)=>{Object.defineProperty(DR,"__esModule",{value:!0});DR._containerInsert=k3;DR._containerInsertAfter=qR;DR._containerInsertBefore=E3;DR._verifyNodeList=r9;DR.insertAfter=mF1;DR.insertBefore=hF1;DR.pushContainer=lF1;DR.unshiftContainer=xF1;DR.updateSiblingKeys=fR;var CF1=Q5(),SF1=ZR(),N3=g0(),w3=e2(),$G=zG(),PF1=q1(),{arrowFunctionExpression:wF1,assertExpression:LF1,assignmentExpression:TF1,blockStatement:RR,callExpression:NF1,cloneNode:L3,expressionStatement:T3,isAssignmentExpression:kF1,isCallExpression:EF1,isExportNamedDeclaration:MR,isExpression:OF1,isIdentifier:vF1,isSequenceExpression:_F1,isSuper:gF1,thisExpression:bF1}=PF1;function hF1(J){$G._assertUnremoved.call(this);let G=r9.call(this,J),{parentPath:X,parent:H}=this;if(X.isExpressionStatement()||X.isLabeledStatement()||MR(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 E3.call(this,G);else if(this.isStatementOrBlock()){let Z=this.node,V=Z&&(!this.isExpressionStatement()||Z.expression!=null);return this.replaceWith(RR(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 k3(J,G){fR.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)w3.pushContext.call(Y,this.context)}let Z=w3._getQueueContexts.call(this);for(let V of X){w3.setScope.call(V),V.debug("Inserted.");for(let Q of Z)Q.maybeQueue(V,!0)}return X}function E3(J){return k3.call(this,this.key,J)}function qR(J){return k3.call(this,this.key+1,J)}var FR=(J)=>J[J.length-1];function jR(J){return _F1(J.parent)&&(FR(J.parent.expressions)!==J.node||jR(J.parentPath))}function yF1(J,G){if(!kF1(J)||!vF1(J.left))return!1;let X=G.getBlockParent();return X.hasOwnBinding(J.left.name)&&X.getOwnBinding(J.left.name).constantViolations.length<=1}function mF1(J){if($G._assertUnremoved.call(this),this.isSequenceExpression())return FR(this.get("expressions")).insertAfter(J);let G=r9.call(this,J),{parentPath:X,parent:H}=this;if(X.isExpressionStatement()||X.isLabeledStatement()||MR(H)||X.isExportDefaultDeclaration()&&this.isDeclaration())return X.insertAfter(G.map((Z)=>{return OF1(Z)?T3(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 LF1(V),Z.replaceWith(NF1(wF1([],V),[])),Z.get("callee.body").insertAfter(G),[Z];if(jR(Z))G.unshift(V);else if(EF1(V)&&gF1(V.callee))G.unshift(V),G.push(bF1());else if(yF1(V,Q))G.unshift(V),G.push(L3(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(T3(TF1("=",L3(Y),V))),G.push(T3(L3(Y)))}}return this.replaceExpressionWithStatements(G)}else if(Array.isArray(this.container))return qR.call(this,G);else if(this.isStatementOrBlock()){let Z=this.node,V=Z&&(!this.isExpressionStatement()||Z.expression!=null);return this.replaceWith(RR(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 fR(J,G){if(!this.parent)return;let X=CF1.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 r9(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 N3.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 xF1(J,G){$G._assertUnremoved.call(this),G=r9.call(this,G);let X=N3.default.get({parentPath:this,parent:this.node,container:this.node[J],listKey:J,key:0}).setContext(this.context);return E3.call(X,G)}function lF1(J,G){$G._assertUnremoved.call(this);let X=r9.call(this,G),H=this.node[J];return N3.default.get({parentPath:this,parent:this.node,container:H,listKey:J,key:H.length}).setContext(this.context).replaceWithMultiple(X)}DR.hoist=function J(G=this.scope){return new SF1.default(this,G).run()}});var P3=S((NR)=>{Object.defineProperty(NR,"__esModule",{value:!0});NR._replaceWith=TR;NR.replaceExpressionWithStatements=Sj1;NR.replaceInline=Pj1;NR.replaceWith=Cj1;NR.replaceWithMultiple=Aj1;NR.replaceWithSourceString=Ij1;var oF1=C3(),v3=x9(),eF1=g0(),PR=Q5(),_3=WG(),tF1=lJ(),Jj1=q1(),d5=e2(),{FUNCTION_TYPES:AR,arrowFunctionExpression:Gj1,assignmentExpression:wR,awaitExpression:Xj1,blockStatement:Hj1,buildUndefinedNode:O3,callExpression:Zj1,cloneNode:g3,conditionalExpression:Vj1,expressionStatement:Qj1,getBindingIdentifiers:Yj1,identifier:zj1,inheritLeadingComments:Wj1,inheritTrailingComments:$j1,inheritsComments:Uj1,isBlockStatement:Kj1,isEmptyStatement:IR,isExpression:LR,isExpressionStatement:Bj1,isIfStatement:Rj1,isProgram:Mj1,isStatement:qj1,isVariableDeclaration:Fj1,removeComments:jj1,returnStatement:CR,sequenceExpression:fj1,validate:SR,yieldExpression:Dj1}=Jj1;function Aj1(J){var G;d5.resync.call(this),J=_3._verifyNodeList.call(this,J),Wj1(J[0],this.node),$j1(J[J.length-1],this.node),(G=PR.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 Ij1(J){d5.resync.call(this);let G;try{J=`(${J})`,G=tF1.parse(J)}catch(H){let Z=H.loc;if(Z)H.message+=" - make sure this is an expression.\n"+oF1.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 v3.default.removeProperties(X),this.replaceWith(X)}function Cj1(J){if(d5.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let G=J instanceof eF1.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()&&!Mj1(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")&&LR(G)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(G)&&!this.parentPath.isExportDefaultDeclaration())G=Qj1(G),X="expression"}if(this.isNodeType("Expression")&&qj1(G)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(G))return this.replaceExpressionWithStatements([G])}let H=this.node;if(H)Uj1(G,H),jj1(H);return TR.call(this,G),this.type=G.type,d5.setScope.call(this),this.requeue(),[X?this.get(X):this]}function TR(J){var G;if(!this.container)throw new ReferenceError("Container is falsy");if(this.inList)SR(this.parent,this.key,[J]);else SR(this.parent,this.key,J);this.debug(`Replace with ${J==null?void 0:J.type}`),(G=PR.getCachedPaths(this.hub,this.parent))==null||G.set(J,this).delete(this.node),this.node=this.container[this.key]=J}function Sj1(J){d5.resync.call(this);let G=[],X=UG(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=Gj1([],Hj1(J));this.replaceWith(Zj1(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 A=f.findParent((C)=>C.isLoop());if(A){let C=A.getData("expressionReplacementReturnUid");if(!C)C=Y.scope.generateDeclaredUidIdentifier("ret"),Y.get("body").pushContainer("body",CR(g3(C))),A.setData("expressionReplacementReturnUid",C);else C=zj1(C.name);f.get("expression").replaceWith(wR("=",g3(C),f.node.expression))}else f.replaceWith(CR(f.node.expression))}Y.arrowFunctionToExpression();let W=Y,K=Z&&v3.default.hasType(this.get("callee.body").node,"AwaitExpression",AR),q=V&&v3.default.hasType(this.get("callee.body").node,"YieldExpression",AR);if(K){if(W.set("async",!0),!q)this.replaceWith(Xj1(this.node))}if(q)W.set("generator",!0),this.replaceWith(Dj1(this.node,!0));return W.get("body.body")}function UG(J,G){let X=[],H=!0;for(let Z of J){if(!IR(Z))H=!1;if(LR(Z))X.push(Z);else if(Bj1(Z))X.push(Z.expression);else if(Fj1(Z)){if(Z.kind!=="var")return;for(let V of Z.declarations){let Q=Yj1(V);for(let Y of Object.keys(Q))G.push(g3(Q[Y]));if(V.init)X.push(wR("=",V.id,V.init))}H=!0}else if(Rj1(Z)){let V=Z.consequent?UG([Z.consequent],G):O3(),Q=Z.alternate?UG([Z.alternate],G):O3();if(!V||!Q)return;X.push(Vj1(Z.test,V,Q))}else if(Kj1(Z)){let V=UG(Z.body,G);if(!V)return;X.push(V)}else if(IR(Z)){if(J.indexOf(Z)===0)H=!0}else return}if(H)X.push(O3());if(X.length===1)return X[0];else return fj1(X)}function Pj1(J){if(d5.resync.call(this),Array.isArray(J))if(Array.isArray(this.container)){J=_3._verifyNodeList.call(this,J);let G=_3._containerInsertAfter.call(this,J);return this.remove(),G}else return this.replaceWithMultiple(J);else return this.replaceWith(J)}});var _R=S((vR)=>{Object.defineProperty(vR,"__esModule",{value:!0});vR.evaluate=mj1;vR.evaluateTruthy=hj1;var Oj1=["Number","String","Math"],vj1=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],_j1=["random"];function kR(J){return Oj1.includes(J)}function gj1(J){return vj1.includes(J)}function bj1(J){return _j1.includes(J)}function hj1(){let J=this.evaluate();if(J.confident)return!!J.value}function j0(J,G){if(!G.confident)return;G.deoptPath=J,G.confident=!1}var ER=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function R2(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{j0(J,G);return}}else{let Z={resolved:!1};H.set(X,Z);let V=yj1(J,G);if(G.confident)Z.resolved=!0,Z.value=V;return V}}function yj1(J,G){if(!G.confident)return;if(J.isSequenceExpression()){let X=J.get("expressions");return R2(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 OR(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 OR(J,J.node.quasi.quasis,G,!0)}if(J.isConditionalExpression()){let X=R2(J.get("test"),G);if(!G.confident)return;if(X)return R2(J.get("consequent"),G);else return R2(J.get("alternate"),G)}if(J.isExpressionWrapper())return R2(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=R2(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){j0(X.path,G);return}if(X.hasValue)return X.value}let H=J.node.name;if(ER.has(H)){if(!X)return ER.get(H);j0(X.path,G);return}let Z=J.resolve();if(Z===J){j0(J,G);return}else return R2(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=R2(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{j0(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()){j0(Z,G);return}let V=Z.get("key"),Q;if(Z.node.computed){if(Q=V.evaluate(),!Q.confident){j0(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){j0(z.deopt,G);return}z=z.value,X[Q]=z}return X}if(J.isLogicalExpression()){let X=G.confident,H=R2(J.get("left"),G),Z=G.confident;G.confident=X;let V=R2(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=R2(J.get("left"),G);if(!G.confident)return;let H=R2(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)&&(kR(X.node.name)||gj1(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()&&kR(V.node.name)&&!bj1(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)=>R2(Q,G));if(!G.confident)return;return Z.apply(H,V)}}j0(J,G)}function OR(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(R2(z,X))}if(!X.confident)return;return Z}function mj1(){let J={confident:!0,deoptPath:null,seen:new Map},G=R2(this,J);if(!J.confident)G=void 0;return{confident:J.confident,deopt:J.deoptPath,value:G}}});var hR=S((gR)=>{Object.defineProperty(gR,"__esModule",{value:!0});gR.statements=gR.statement=gR.smart=gR.program=gR.expression=void 0;var cj1=q1(),{assertExpressionStatement:rj1}=cj1;function b3(J){return{code:(G)=>`/* @babel/template */;\n${G}`,validate:()=>{},unwrap:(G)=>{return J(G.program.body.slice(1))}}}var lg1=gR.smart=b3((J)=>{if(J.length>1)return J;else return J[0]}),cg1=gR.statements=b3((J)=>J),rg1=gR.statement=b3((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]}),aj1=gR.expression={code:(J)=>`(\n${J}\n)`,validate:(J)=>{if(J.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(aj1.unwrap(J).start===0)throw new Error("Parse result included parens.")},unwrap:({program:J})=>{let[G]=J.body;return rj1(G),G.expression}},ag1=gR.program={code:(J)=>J,validate:()=>{},unwrap:(J)=>J.program}});var KG=S((yR)=>{Object.defineProperty(yR,"__esModule",{value:!0});yR.merge=oj1;yR.normalizeReplacements=tj1;yR.validate=ej1;var pj1=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function nj1(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 oj1(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 ej1(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=nj1(G,pj1);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 tj1(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 h3=S((xR)=>{Object.defineProperty(xR,"__esModule",{value:!0});xR.default=qf1;var Hf1=q1(),Zf1=lJ(),Vf1=C3(),{isCallExpression:Qf1,isExpressionStatement:Yf1,isFunction:zf1,isIdentifier:Wf1,isJSXIdentifier:$f1,isNewExpression:Uf1,isPlaceholder:BG,isStatement:Kf1,isStringLiteral:mR,removePropertiesDeep:Bf1,traverse:Rf1}=Hf1,Mf1=/^[_$A-Z0-9]+$/;function qf1(J,G,X){let{placeholderWhitelist:H,placeholderPattern:Z,preserveComments:V,syntacticPlaceholders:Q}=X,Y=ff1(G,X.parser,Q);Bf1(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 Rf1(Y,Ff1,z),Object.assign({ast:Y},z.syntactic.placeholders.length?z.syntactic:z.legacy)}function Ff1(J,G,X){var H;let Z,V=X.syntactic.placeholders.length>0;if(BG(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(Wf1(J)||$f1(J))Z=J.name;else if(mR(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||Mf1).test(Z))&&!((H=X.placeholderWhitelist)!=null&&H.has(Z)))return;G=G.slice();let{node:Q,key:Y}=G[G.length-1],z;if(mR(J)||BG(J,{expectedNode:"StringLiteral"}))z="string";else if(Uf1(Q)&&Y==="arguments"||Qf1(Q)&&Y==="arguments"||zf1(Q)&&Y==="params")z="param";else if(Yf1(Q)&&!BG(J))z="statement",G=G.slice(0,-1);else if(Kf1(J)&&BG(J))z="statement";else z="other";let{placeholders:W,placeholderNames:K}=!V?X.legacy:X.syntactic;W.push({name:Z,type:z,resolve:(q)=>jf1(q,G),isDuplicate:K.has(Z)}),K.add(Z)}function jf1(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 ff1(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 Zf1.parse(J,G)}catch(Z){let V=Z.loc;if(V)Z.message+="\n"+Vf1.codeFrameColumns(J,{start:V}),Z.code="BABEL_TEMPLATE_PARSE_ERROR";throw Z}}});var x3=S((rR)=>{Object.defineProperty(rR,"__esModule",{value:!0});rR.default=wf1;var Af1=q1(),{blockStatement:If1,cloneNode:m3,emptyStatement:Cf1,expressionStatement:y3,identifier:RG,isStatement:lR,isStringLiteral:Sf1,stringLiteral:Pf1,validate:cR}=Af1;function wf1(J,G){let X=m3(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{Lf1(H,X,G&&G[H.name]||null)}catch(Z){throw Z.message=`@babel/template placeholder "${H.name}": ${Z.message}`,Z}}),X}function Lf1(J,G,X){if(J.isDuplicate){if(Array.isArray(X))X=X.map((Y)=>m3(Y));else if(typeof X==="object")X=m3(X)}let{parent:H,key:Z,index:V}=J.resolve(G);if(J.type==="string"){if(typeof X==="string")X=Pf1(X);if(!X||!Sf1(X))throw new Error("Expected string substitution")}else if(J.type==="statement"){if(V===void 0){if(!X)X=Cf1();else if(Array.isArray(X))X=If1(X);else if(typeof X==="string")X=y3(RG(X));else if(!lR(X))X=y3(X)}else if(X&&!Array.isArray(X)){if(typeof X==="string")X=RG(X);if(!lR(X))X=y3(X)}}else if(J.type==="param"){if(typeof X==="string")X=RG(X);if(V===void 0)throw new Error("Assertion failure.")}else{if(typeof X==="string")X=RG(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"||K.type==="Placeholder"){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)cR(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);cR(H,Z,Y),H[Z]=Y}}});var iR=S((aR)=>{Object.defineProperty(aR,"__esModule",{value:!0});aR.default=Of1;var Nf1=KG(),kf1=h3(),Ef1=x3();function Of1(J,G,X){G=J.code(G);let H;return(Z)=>{let V=Nf1.normalizeReplacements(Z);if(!H)H=kf1.default(J,G,X);return J.unwrap(Ef1.default(H,V))}}});var dR=S((uR)=>{Object.defineProperty(uR,"__esModule",{value:!0});uR.default=hf1;var _f1=KG(),gf1=h3(),bf1=x3();function hf1(J,G,X){let{metadata:H,names:Z}=yf1(J,G,X);return(V)=>{let Q={};return V.forEach((Y,z)=>{Q[Z[z]]=Y}),(Y)=>{let z=_f1.normalizeReplacements(Y);if(z)Object.keys(z).forEach((W)=>{if(hasOwnProperty.call(Q,W))throw new Error("Unexpected replacement overlap.")});return J.unwrap(bf1.default(H,z?Object.assign(z,Q):Q))}}}function yf1(J,G,X){let H="BABEL_TPL$",Z=G.join("");do H="$$"+H;while(Z.includes(H));let{names:V,code:Q}=mf1(G,H);return{metadata:gf1.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 mf1(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 JM=S((tR)=>{Object.defineProperty(tR,"__esModule",{value:!0});tR.default=eR;var t2=KG(),sR=iR(),pR=dR(),nR=t2.validate({placeholderPattern:!1});function eR(J,G){let X=new WeakMap,H=new WeakMap,Z=G||t2.validate(null);return Object.assign((V,...Q)=>{if(typeof V==="string"){if(Q.length>1)throw new Error("Unexpected extra params.");return oR(sR.default(J,V,t2.merge(Z,t2.validate(Q[0]))))}else if(Array.isArray(V)){let Y=X.get(V);if(!Y)Y=pR.default(J,V,Z),X.set(V,Y);return oR(Y(Q))}else if(typeof V==="object"&&V){if(Q.length>0)throw new Error("Unexpected extra params.");return eR(J,t2.merge(Z,t2.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 sR.default(J,V,t2.merge(t2.merge(Z,t2.validate(Q[0])),nR))()}else if(Array.isArray(V)){let Y=H.get(V);if(!Y)Y=pR.default(J,V,t2.merge(Z,nR)),H.set(V,Y);return Y(Q)()}throw new Error(`Unexpected template param ${typeof V}`)}})}function oR(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 HM=S((GM)=>{Object.defineProperty(GM,"__esModule",{value:!0});GM.statements=GM.statement=GM.smart=GM.program=GM.expression=GM.default=void 0;var a9=hR(),i9=JM(),l3=GM.smart=i9.default(a9.smart),cf1=GM.statement=i9.default(a9.statement),rf1=GM.statements=i9.default(a9.statements),af1=GM.expression=i9.default(a9.expression),if1=GM.program=i9.default(a9.program),eg1=GM.default=Object.assign(l3.bind(void 0),{smart:l3,statement:cf1,statements:rf1,expression:af1,program:if1,ast:l3.ast})});var KM=S((UM)=>{Object.defineProperty(UM,"__esModule",{value:!0});UM.arrowFunctionToExpression=wD1;UM.ensureBlock=CD1;UM.ensureFunctionName=yD1;UM.splitExportDeclaration=bD1;UM.toComputedKey=ID1;UM.unwrapFunctionEnvironment=SD1;var of1=q1(),ef1=HM(),a3=m9(),tf1=e2(),{arrowFunctionExpression:i3,assignmentExpression:K5,binaryExpression:c3,blockStatement:JD1,callExpression:s5,conditionalExpression:GD1,expressionStatement:QM,identifier:g1,isIdentifier:XD1,jsxIdentifier:HD1,logicalExpression:ZD1,LOGICAL_OPERATORS:VD1,memberExpression:a2,metaProperty:QD1,numericLiteral:YD1,objectExpression:zD1,restElement:WD1,returnStatement:$D1,sequenceExpression:UD1,spreadElement:KD1,stringLiteral:YM,super:r3,thisExpression:u9,toExpression:zM,unaryExpression:BD1,toBindingIdentifierName:RD1,isFunction:MD1,isAssignmentPattern:qD1,isRestElement:FD1,getFunctionName:jD1,cloneNode:B5,variableDeclaration:fD1,variableDeclarator:DD1,exportNamedDeclaration:ZM,exportSpecifier:VM,inherits:AD1}=of1;function ID1(){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(XD1(J))J=YM(J.name)}return J}function CD1(){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($D1(J.node));else Z="expression",X.push(QM(J.node));this.node.body=JD1(X);let Q=this.get(H);return tf1.setup.call(J,Q,V?Q.node[V]:Q.node,V,Z),this.node}UM.arrowFunctionToShadowed=function(){if(!this.isArrowFunctionExpression())return;this.arrowFunctionToExpression()};function SD1(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");WM(this)}function PD1(J,G){J.node.type=G}function wD1({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}=WM(H,X,J,G);if(Q.ensureBlock(),PD1(Q,"FunctionExpression"),!X){let Y=V?null:Q.scope.generateUidIdentifier("arrowCheckId");if(Y)Q.parentPath.scope.push({id:Y,init:zD1([])});return Q.get("body").unshiftContainer("body",QM(s5(this.hub.addHelper("newArrowCheck"),[u9(),Y?g1(Y.name):g1(V)]))),Q.replaceWith(s5(a2(Q.node,g1("bind")),[Y?g1(Y.name):u9()])),Q.get("callee.object")}return Q}var LD1=a3.environmentVisitor({CallExpression(J,{allSuperCalls:G}){if(!J.get("callee").isSuper())return;G.push(J)}});function WM(J,G=!0,X=!0,H=!0){let Z,V=J.findParent((A)=>{if(A.isArrowFunctionExpression()){var C;return(C=Z)!=null||(Z=A),!1}return A.isFunction()||A.isProgram()||A.isClassProperty({static:!1})||A.isClassPrivateProperty({static:!1})}),Q=V.isClassMethod({kind:"constructor"});if(V.isClassProperty()||V.isClassPrivateProperty())if(Z)V=Z;else if(X)J.replaceWith(s5(i3([],zM(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}=gD1(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 A=[];V.traverse(LD1,{allSuperCalls:A});let C=OD1(V);A.forEach((l)=>{let O=g1(C);O.loc=l.node.callee.loc,l.get("callee").replaceWith(O)})}if(z.length>0){let A=d9(V,"arguments",()=>{let C=()=>g1("arguments");if(V.scope.path.isProgram())return GD1(c3("===",BD1("typeof",C()),YM("undefined")),V.scope.buildUndefinedNode(),C());else return C()});z.forEach((C)=>{let l=g1(A);l.loc=C.node.loc,C.replaceWith(l)})}if(W.length>0){let A=d9(V,"newtarget",()=>QD1(g1("new"),g1("target")));W.forEach((C)=>{let l=g1(A);l.loc=C.node.loc,C.replaceWith(l)})}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,l)=>C.concat(ND1(l)),[]).forEach((C)=>{let l=C.node.computed?"":C.get("property").node.name,O=C.parentPath,v=O.isAssignmentExpression({left:C.node}),h=O.isCallExpression({callee:C.node}),U1=O.isTaggedTemplateExpression({tag:C.node}),e=vD1(V,v,l),K1=[];if(C.node.computed)K1.push(C.get("property").node);if(v){let w1=O.node.right;K1.push(w1)}let Y1=s5(g1(e),K1);if(h)O.unshiftContainer("arguments",u9()),C.replaceWith(a2(Y1,g1("call"))),Y.push(O.get("arguments.0"));else if(v)O.replaceWith(Y1);else if(U1)C.replaceWith(s5(a2(Y1,g1("bind"),!1),[u9()])),Y.push(C.get("arguments.0"));else C.replaceWith(Y1)})}let f;if(Y.length>0||!G){if(f=ED1(V,Q),G||Q&&$M(V)){if(Y.forEach((A)=>{let C=A.isJSX()?HD1(f):g1(f);C.loc=A.node.loc,A.replaceWith(C)}),!G)f=null}}return{thisBinding:f,fnPath:J}}function TD1(J){return VD1.includes(J)}function ND1(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=TD1(H);if(J.node.computed){let Q=J.scope.generateDeclaredUidIdentifier("tmp"),Y=J.node.object,z=J.node.property;X.get("left").replaceWith(a2(Y,K5("=",Q,z),!0)),X.get("right").replaceWith(G(V?"=":H,a2(Y,g1(Q.name),!0),Z))}else{let Q=J.node.object,Y=J.node.property;X.get("left").replaceWith(a2(Q,Y)),X.get("right").replaceWith(G(V?"=":H,a2(Q,g1(Y.name)),Z))}if(V)X.replaceWith(ZD1(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=[K5("=",H,a2(J.node.object,Z?K5("=",Z,J.node.property):J.node.property,J.node.computed)),K5("=",a2(J.node.object,Z?g1(Z.name):J.node.property,J.node.computed),c3(J.parentPath.node.operator[0],g1(H.name),YD1(1)))];if(!J.parentPath.node.prefix)V.push(g1(H.name));X.replaceWith(UD1(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 K5("=",H,Z);else return c3(X,H,Z)}}function $M(J){return J.isClassMethod()&&!!J.parentPath.parentPath.node.superClass}var kD1=a3.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,K5("=",g1(X),g1("this"))])}});function ED1(J,G){return d9(J,"this",(X)=>{if(!G||!$M(J))return u9();J.traverse(kD1,{supers:new WeakSet,thisBinding:X})})}function OD1(J){return d9(J,"supercall",()=>{let G=J.scope.generateUidIdentifier("args");return i3([WD1(G)],s5(r3(),[KD1(g1(G.name))]))})}function vD1(J,G,X){return d9(J,`superprop_${G?"set":"get"}:${X||""}`,()=>{let Z=[],V;if(X)V=a2(r3(),g1(X));else{let Q=J.scope.generateUidIdentifier("prop");Z.unshift(Q),V=a2(r3(),g1(Q.name),!0)}if(G){let Q=J.scope.generateUidIdentifier("value");Z.push(Q),V=K5("=",V,g1(Q.name))}return i3(Z,V)})}function d9(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 _D1=a3.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 gD1(J){let G=[],X=[],H=[],Z=[],V=[];return J.traverse(_D1,{thisPaths:G,argumentsPaths:X,newTargetPaths:H,superProps:Z,superCalls:V}),{thisPaths:G,argumentsPaths:X,newTargetPaths:H,superProps:Z,superCalls:V}}function bD1(){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=B5(Y)}else if(V&&Q.hasBinding(Y.name))z=!0,Y=Q.generateUidIdentifier(Y.name);let W=Z?J.node:fD1("var",[DD1(B5(Y),J.node)]),K=ZM(null,[VM(B5(Y),g1("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 VM(g1(Z),g1(Z))}),H=ZM(null,X);return this.insertAfter(H),this.replaceWith(J.node),this}var hD1={"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 yD1(J){if(this.node.id)return this;let G=jD1(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=RD1(X.replace(/[/ ]/g,"_"));let H=g1(X);AD1(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(hD1,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(!MD1(this.node))return null;let Y=V.generateUidIdentifier(H.name),z=[];for(let K=0,q=mD1(this.node);K<q;K++)z.push(V.generateUidIdentifier("x"));let W=ef1.default.expression.ast`
|
|
10
|
-
(function (${Y}) {
|
|
11
|
-
function ${H}(${z}) {
|
|
12
|
-
return ${B5(Y)}.apply(this, arguments);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
${B5(H)}.toString = function () {
|
|
16
|
-
return ${B5(Y)}.toString();
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return ${B5(H)};
|
|
20
|
-
})(${zM(this.node)})
|
|
21
|
-
`;return this.replaceWith(W)[0].get("arguments.0")}function mD1(J){let G=J.params.findIndex((X)=>qD1(X)||FD1(X));return G===-1?J.params.length:G}});var fM=S((jM)=>{Object.defineProperty(jM,"__esModule",{value:!0});jM._guessExecutionStatusRelativeTo=KA1;jM._resolve=FM;jM.canHaveVariableDeclarationOrExpression=ZA1;jM.canSwapBetweenExpressionAndStatement=VA1;jM.getSource=WA1;jM.isCompletionRecord=QA1;jM.isConstantExpression=qA1;jM.isInStrictMode=FA1;jM.isNodeType=HA1;jM.isStatementOrBlock=YA1;jM.isStatic=XA1;jM.matchesPattern=GA1;jM.referencesImport=zA1;jM.resolve=MA1;jM.willIMaybeExecuteBefore=$A1;var uD1=q1(),{STATEMENT_OR_BLOCK_KEYS:dD1,VISITOR_KEYS:sD1,isBlockStatement:qM,isExpression:pD1,isIdentifier:nD1,isLiteral:oD1,isStringLiteral:eD1,isType:tD1,matchesPattern:JA1}=uD1;function GA1(J,G){return JA1(this.node,J,G)}jM.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 XA1(){return this.scope.isStatic(this.node)}jM.is=jM.has,jM.isnt=function J(G){return!this.has(G)},jM.equals=function J(G,X){return this.node[G]===X};function HA1(J){return tD1(this.type,J)}function ZA1(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function VA1(J){if(this.key!=="body"||!this.parentPath.isArrowFunctionExpression())return!1;if(this.isExpression())return qM(J);else if(this.isBlockStatement())return pD1(J);return!1}function QA1(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 YA1(){if(this.parentPath.isLabeledStatement()||qM(this.container))return!1;else return dD1.includes(this.key)}function zA1(J,G){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===G||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?eD1(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()&&nD1(H.node.imported,{name:G}))return!0;return!1}function WA1(){let J=this.node;if(J.end){let G=this.hub.getCode();if(G)return G.slice(J.start,J.end)}return""}function $A1(J){return this._guessExecutionStatusRelativeTo(J)!=="after"}function BM(J){return J.isProgram()?J:(J.parentPath.scope.getFunctionParent()||J.parentPath.scope.getProgramParent()).path}function UA1(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 RM(J,G){for(let X=0;X<G;X++){let H=J[X];if(UA1(H.parent.type,H.parentKey))return!0}return!1}var MM=Symbol();function KA1(J){return u3(this,J,new Map)}function u3(J,G,X){let H={this:BM(J),target:BM(G)};if(H.target.node!==H.this.node)return RA1(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(RM(Z.this,Q.this-1)||RM(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=sD1[V.type],W={this:z.indexOf(Y.this.parentKey),target:z.indexOf(Y.target.parentKey)};return W.target>W.this?"before":"after"}function BA1(J,G,X){if(!G.isFunctionDeclaration()){if(u3(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=u3(J,Q,X);if(V&&V!==z)return"unknown";else V=z}return V}function RA1(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===MM)return"unknown";return Z}H.set(G.node,MM);let V=BA1(J,G,X);return H.set(G.node,V),V}function MA1(J,G){return FM.call(this,J,G)||this}function FM(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(!oD1(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 qA1(){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 FA1(){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 PM=S((SM)=>{Object.defineProperty(SM,"__esModule",{value:!0});SM._getKey=IM;SM._getPattern=CM;SM.get=nA1;SM.getAllNextSiblings=sA1;SM.getAllPrevSiblings=pA1;SM.getAssignmentIdentifiers=oA1;SM.getBindingIdentifierPaths=JI1;SM.getBindingIdentifiers=eA1;SM.getCompletionRecords=aA1;SM.getNextSibling=dA1;SM.getOpposite=lA1;SM.getOuterBindingIdentifierPaths=GI1;SM.getOuterBindingIdentifiers=tA1;SM.getPrevSibling=uA1;SM.getSibling=iA1;var s3=g0(),_A1=q1(),{getAssignmentIdentifiers:gA1,getBindingIdentifiers:AM,getOuterBindingIdentifiers:bA1,numericLiteral:hA1,unaryExpression:yA1}=_A1,p3=0,s9=1;function mA1(J){return{type:p3,path:J}}function xA1(J){return{type:s9,path:J}}function lA1(){if(this.key==="left")return this.getSibling("right");else if(this.key==="right")return this.getSibling("left");return null}function p5(J,G,X){if(J)G.push(...n5(J,X));return G}function cA1(J,G,X){let H=[];for(let Z=0;Z<J.length;Z++){let V=J[Z],Q=n5(V,X),Y=[],z=[];for(let W of Q){if(W.type===p3)Y.push(W);if(W.type===s9)z.push(W)}if(Y.length)H=Y;G.push(...z)}return G.push(...H),G}function rA1(J){J.forEach((G)=>{G.type=s9})}function d3(J,G){J.forEach((X)=>{if(X.path.isBreakStatement({label:null}))if(G)X.path.replaceWith(yA1("void",hA1(0)));else X.path.remove()})}function DM(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=n5(V,Q);if(Y.length>0&&Y.every((z)=>z.type===s9)){if(H.length>0&&Y.every((z)=>z.path.isBreakStatement({label:null}))){if(rA1(H),X.push(...H),H.some((z)=>z.path.isDeclaration()))X.push(...Y),d3(Y,!0);d3(Y,!1)}else if(X.push(...Y),!G.shouldPopulateBreak)d3(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===s9)X.push(W);if(W.type===p3)H.push(W)}}}}else if(J.length)for(let H=J.length-1;H>=0;H--){let Z=n5(J[H],G);if(Z.length>1||Z.length===1&&!Z[0].path.isVariableDeclaration()){X.push(...Z);break}}return X}function n5(J,G){let X=[];if(J.isIfStatement())X=p5(J.get("consequent"),X,G),X=p5(J.get("alternate"),X,G);else if(J.isDoExpression()||J.isFor()||J.isWhile()||J.isLabeledStatement())return p5(J.get("body"),X,G);else if(J.isProgram()||J.isBlockStatement())return DM(J.get("body"),G);else if(J.isFunction())return n5(J.get("body"),G);else if(J.isTryStatement())X=p5(J.get("block"),X,G),X=p5(J.get("handler"),X,G);else if(J.isCatchClause())return p5(J.get("body"),X,G);else if(J.isSwitchStatement())return cA1(J.get("cases"),X,G);else if(J.isSwitchCase())return DM(J.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0});else if(J.isBreakStatement())X.push(xA1(J));else X.push(mA1(J));return X}function aA1(){return n5(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1}).map((G)=>G.path)}function iA1(J){return s3.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:J}).setContext(this.context)}function uA1(){return this.getSibling(this.key-1)}function dA1(){return this.getSibling(this.key+1)}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(){let J=this.key,G=this.getSibling(--J),X=[];while(G.node)X.push(G),G=this.getSibling(--J);return X}function nA1(J,G=!0){if(G===!0)G=this.context;let X=J.split(".");if(X.length===1)return IM.call(this,J,G);else return CM.call(this,X,G)}function IM(J,G){let X=this.node,H=X[J];if(Array.isArray(H))return H.map((Z,V)=>{return s3.default.get({listKey:J,parentPath:this,parent:X,container:H,key:V}).setContext(G)});else return s3.default.get({parentPath:this,parent:X,container:X,key:J}).setContext(G)}function CM(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 oA1(){return gA1(this.node)}function eA1(J){return AM(this.node,J)}function tA1(J){return bA1(this.node,J)}function JI1(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=AM.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 GI1(J=!1){return this.getBindingIdentifierPaths(J,!0)}});var TM=S((LM)=>{Object.defineProperty(LM,"__esModule",{value:!0});LM.addComment=AI1;LM.addComments=II1;LM.shareCommentsWithSiblings=DI1;var FI1=q1(),{addComment:jI1,addComments:fI1}=FI1;function DI1(){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",wM(X,H.node.trailingComments));if(G&&!Q)H.addComments("trailing",G)}if(Q){if(G)Z.addComments("leading",wM(G,Z.node.leadingComments));if(X&&!V)Z.addComments("leading",X)}}function wM(J,G){if(!(G!=null&&G.length))return J;let X=new Set(G);return J.filter((H)=>{return!X.has(H)})}function AI1(J,G,X){jI1(this.node,J,G,X)}function II1(J,G){fI1(this.node,J,G)}});var g0=S((vM)=>{Object.defineProperty(vM,"__esModule",{value:!0});vM.default=vM.SHOULD_STOP=vM.SHOULD_SKIP=vM.REMOVED=void 0;var wI1=dX(),LI1=rU(),TI1=x9(),NI1=V3(),EM=q1(),MG=EM,kI1=Q5(),EI1=SX(),J0=bK(),o5=VB(),e5=P3(),NM=_R(),R5=KM(),d1=fM(),OM=e2(),u1=OM,t5=zG(),G0=WG(),M2=PM(),n3=TM(),OI1=tX(),{validate:vI1}=EM,kM=LI1("babel"),zb1=vM.REMOVED=1,Wb1=vM.SHOULD_STOP=2,$b1=vM.SHOULD_SKIP=4,f0=vM.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=kI1.getOrCreateCachedPaths(G,H),W=z.get(Y);if(!W){if(W=new J(G,H),Y)z.set(Y,W)}return OM.setup.call(W,X,Z,V,Q),W}getScope(G){return this.isScope()?new NI1.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){TI1.default(this.node,G,this.scope,X,this)}set(G,X){vI1(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(!kM.enabled)return;kM(`${this.getPathLocation()} ${this.type}: ${G}`)}toString(){return EI1.default(this.node).code}get inList(){return!!this.listKey}set inList(G){if(!G)this.listKey=null}get parentKey(){return this.listKey||this.key}},_I1={findParent:J0.findParent,find:J0.find,getFunctionParent:J0.getFunctionParent,getStatementParent:J0.getStatementParent,getEarliestCommonAncestorFrom:J0.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:J0.getDeepestCommonAncestorFrom,getAncestry:J0.getAncestry,isAncestor:J0.isAncestor,isDescendant:J0.isDescendant,inType:J0.inType,getTypeAnnotation:o5.getTypeAnnotation,isBaseType:o5.isBaseType,couldBeBaseType:o5.couldBeBaseType,baseTypeStrictlyMatches:o5.baseTypeStrictlyMatches,isGenericType:o5.isGenericType,replaceWithMultiple:e5.replaceWithMultiple,replaceWithSourceString:e5.replaceWithSourceString,replaceWith:e5.replaceWith,replaceExpressionWithStatements:e5.replaceExpressionWithStatements,replaceInline:e5.replaceInline,evaluateTruthy:NM.evaluateTruthy,evaluate:NM.evaluate,toComputedKey:R5.toComputedKey,ensureBlock:R5.ensureBlock,unwrapFunctionEnvironment:R5.unwrapFunctionEnvironment,arrowFunctionToExpression:R5.arrowFunctionToExpression,splitExportDeclaration:R5.splitExportDeclaration,ensureFunctionName:R5.ensureFunctionName,matchesPattern:d1.matchesPattern,isStatic:d1.isStatic,isNodeType:d1.isNodeType,canHaveVariableDeclarationOrExpression:d1.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:d1.canSwapBetweenExpressionAndStatement,isCompletionRecord:d1.isCompletionRecord,isStatementOrBlock:d1.isStatementOrBlock,referencesImport:d1.referencesImport,getSource:d1.getSource,willIMaybeExecuteBefore:d1.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:d1._guessExecutionStatusRelativeTo,resolve:d1.resolve,isConstantExpression:d1.isConstantExpression,isInStrictMode:d1.isInStrictMode,isDenylisted:u1.isDenylisted,visit:u1.visit,skip:u1.skip,skipKey:u1.skipKey,stop:u1.stop,setContext:u1.setContext,requeue:u1.requeue,requeueComputedKeyAndDecorators:u1.requeueComputedKeyAndDecorators,remove:t5.remove,insertBefore:G0.insertBefore,insertAfter:G0.insertAfter,unshiftContainer:G0.unshiftContainer,pushContainer:G0.pushContainer,getOpposite:M2.getOpposite,getCompletionRecords:M2.getCompletionRecords,getSibling:M2.getSibling,getPrevSibling:M2.getPrevSibling,getNextSibling:M2.getNextSibling,getAllNextSiblings:M2.getAllNextSiblings,getAllPrevSiblings:M2.getAllPrevSiblings,get:M2.get,getAssignmentIdentifiers:M2.getAssignmentIdentifiers,getBindingIdentifiers:M2.getBindingIdentifiers,getOuterBindingIdentifiers:M2.getOuterBindingIdentifiers,getBindingIdentifierPaths:M2.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:M2.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:n3.shareCommentsWithSiblings,addComment:n3.addComment,addComments:n3.addComments};Object.assign(f0.prototype,_I1);f0.prototype.arrowFunctionToShadowed=R5[String("arrowFunctionToShadowed")],Object.assign(f0.prototype,{has:d1[String("has")],is:d1[String("is")],isnt:d1[String("isnt")],equals:d1[String("equals")],hoist:G0[String("hoist")],updateSiblingKeys:G0.updateSiblingKeys,call:u1.call,isBlacklisted:u1[String("isBlacklisted")],setScope:u1.setScope,resync:u1.resync,popContext:u1.popContext,pushContext:u1.pushContext,setup:u1.setup,setKey:u1.setKey});f0.prototype._guessExecutionStatusRelativeToDifferentFunctions=d1._guessExecutionStatusRelativeTo,f0.prototype._guessExecutionStatusRelativeToDifferentFunctions=d1._guessExecutionStatusRelativeTo,Object.assign(f0.prototype,{_getTypeAnnotation:o5._getTypeAnnotation,_replaceWith:e5._replaceWith,_resolve:d1._resolve,_call:u1._call,_resyncParent:u1._resyncParent,_resyncKey:u1._resyncKey,_resyncList:u1._resyncList,_resyncRemoved:u1._resyncRemoved,_getQueueContexts:u1._getQueueContexts,_removeFromScope:t5._removeFromScope,_callRemovalHooks:t5._callRemovalHooks,_remove:t5._remove,_markRemoved:t5._markRemoved,_assertUnremoved:t5._assertUnremoved,_containerInsert:G0._containerInsert,_containerInsertBefore:G0._containerInsertBefore,_containerInsertAfter:G0._containerInsertAfter,_verifyNodeList:G0._verifyNodeList,_getKey:M2._getKey,_getPattern:M2._getPattern});for(let J of MG.TYPES){let G=`is${J}`,X=MG[G];f0.prototype[G]=function(H){return X(this.node,H)},f0.prototype[`assert${J}`]=function(H){if(!X(this.node,H))throw new TypeError(`Expected node path of type ${J}`)}}Object.assign(f0.prototype,OI1);for(let J of Object.keys(wI1)){if(J[0]==="_")continue;if(!MG.TYPES.includes(J))MG.TYPES.push(J)}});var yM=S((bM)=>{Object.defineProperty(bM,"__esModule",{value:!0});bM.default=void 0;var yI1=g0(),mI1=q1(),o3=e2(),{VISITOR_KEYS:xI1}=mI1;class gM{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=xI1[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 yI1.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++,o3.resync.call(Z),Z.contexts.length===0||Z.contexts[Z.contexts.length-1]!==this)o3.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++)o3.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)}}bM.default=gM});var pJ=S((mM)=>{Object.defineProperty(mM,"__esModule",{value:!0});mM.traverseNode=aI1;var lI1=yM(),cI1=q1(),{VISITOR_KEYS:rI1}=cI1;function aI1(J,G,X,H,Z,V,Q){let Y=rI1[J.type];if(!Y)return!1;let z=new lI1.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 e2=S((dM)=>{Object.defineProperty(dM,"__esModule",{value:!0});dM._call=t3;dM._getQueueContexts=YC1;dM._resyncKey=iM;dM._resyncList=uM;dM._resyncParent=aM;dM._resyncRemoved=GC1;dM.call=e3;dM.isDenylisted=cM;dM.popContext=XC1;dM.pushContext=HC1;dM.requeue=VC1;dM.requeueComputedKeyAndDecorators=QC1;dM.resync=JC1;dM.setContext=tI1;dM.setKey=qG;dM.setScope=rM;dM.setup=ZC1;dM.skip=nI1;dM.skipKey=oI1;dM.stop=eI1;dM.visit=pI1;var uI1=pJ(),xM=g0(),dI1=zG(),sI1=q1();function e3(J){let G=this.opts;if(this.debug(J),this.node){if(t3.call(this,G[J]))return!0}if(this.node){var X;return t3.call(this,(X=G[this.node.type])==null?void 0:X[J])}return!1}function t3(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 cM(){var J;let G=(J=this.opts.denylist)!=null?J:this.opts.blacklist;return G==null?void 0:G.includes(this.node.type)}dM.isBlacklisted=cM;function lM(J,G){if(J.context!==G)J.context=G,J.state=G.state,J.opts=G.opts}function pI1(){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||e3.call(this,"enter"))return this.debug("Skip..."),this.shouldStop;return lM(this,X),this.debug("Recursing into..."),this.shouldStop=uI1.traverseNode(this.node,this.opts,this.scope,this.state,this,this.skipKeys),lM(this,X),e3.call(this,"exit"),this.shouldStop}function nI1(){this.shouldSkip=!0}function oI1(J){if(this.skipKeys==null)this.skipKeys={};this.skipKeys[J]=!0}function eI1(){this._traverseFlags|=xM.SHOULD_SKIP|xM.SHOULD_STOP}function rM(){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 tI1(J){if(this.skipKeys!=null)this.skipKeys={};if(this._traverseFlags=0,J)this.context=J,this.state=J.state,this.opts=J.opts;return rM.call(this),this}function JC1(){if(this.removed)return;aM.call(this),uM.call(this),iM.call(this)}function aM(){if(this.parentPath)this.parent=this.parentPath.node}function iM(){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){qG.call(this,J);return}}else for(let J of Object.keys(this.container))if(this.container[J]===this.node){qG.call(this,J);return}this.key=null}function uM(){if(!this.parent||!this.inList)return;let J=this.parent[this.listKey];if(this.container===J)return;this.container=J||null}function GC1(){if(this.key==null||!this.container||this.container[this.key]!==this.node)dI1._markRemoved.call(this)}function XC1(){if(this.contexts.pop(),this.contexts.length>0)this.setContext(this.contexts[this.contexts.length-1]);else this.setContext(void 0)}function HC1(J){this.contexts.push(J),this.setContext(J)}function ZC1(J,G,X,H){this.listKey=X,this.container=G,this.parentPath=J||this.parentPath,qG.call(this,H)}function qG(J){var G;this.key=J,this.node=this.container[this.key],this.type=(G=this.node)==null?void 0:G.type}function VC1(J=this){if(J.removed)return;let G=this.contexts;for(let X of G)X.maybeQueue(J)}function QC1(){let{context:J,node:G}=this;if(!sI1.isPrivate(G)&&G.computed)J.maybeQueue(this.get("key"));if(G.decorators)for(let X of this.get("decorators"))J.maybeQueue(X)}function YC1(){let J=this,G=this.contexts;while(!G.length){if(J=J.parentPath,!J)break;G=J.contexts}return G}});var oM=S((pM)=>{Object.defineProperty(pM,"__esModule",{value:!0});pM.default=void 0;class sM{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(J,G,X=TypeError){return new X(G)}}pM.default=sM});var x9=S((n9)=>{Object.defineProperty(n9,"__esModule",{value:!0});Object.defineProperty(n9,"Hub",{enumerable:!0,get:function(){return vC1.default}});Object.defineProperty(n9,"NodePath",{enumerable:!0,get:function(){return EC1.default}});Object.defineProperty(n9,"Scope",{enumerable:!0,get:function(){return OC1.default}});n9.visitors=n9.default=void 0;e2();var p9=m9();n9.visitors=p9;var NC1=q1(),kC1=Q5(),eM=pJ(),EC1=g0(),OC1=V3(),vC1=oM(),{VISITOR_KEYS:_C1,removeProperties:gC1,traverseFast:tM}=NC1;function b2(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(!_C1[J.type])return;p9.explode(G),eM.traverseNode(J,G,X,H,Z,null,V)}var Fb1=n9.default=b2;b2.visitors=p9;b2.verify=p9.verify;b2.explode=p9.explode;b2.cheap=function(J,G){tM(J,G);return};b2.node=function(J,G,X,H,Z,V){eM.traverseNode(J,G,X,H,Z,V)};b2.clearNode=function(J,G){gC1(J,G)};b2.removeProperties=function(J,G){return tM(J,b2.clearNode,G),J};function bC1(J,G){if(J.node.type===G.type)G.has=!0,J.stop()}b2.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 b2(J,{noScope:!0,denylist:X,enter:bC1},null,H),H.has};b2.cache=kC1});import a0 from"process";import{runAction as o1}from"@stacksjs/actions";import{intro as EG,log as I2,outro as Q8,prompts as ZF}from"@stacksjs/cli";import{Action as e1}from"@stacksjs/enums";import{ExitCode as OG}from"@stacksjs/types";function eP1(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(I2.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),VF(H)){console.log("has no");let Z=await ZF({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)a0.exit(OG.InvalidArgument)}else console.log("has op");if(H.docs)await o1(e1.BuildDocs);if(H.components)await o1(e1.BuildComponentLibs);if(H.vueComponents)await o1(e1.BuildVueComponentLib);if(H.webComponents)await o1(e1.BuildWebComponentLib);if(H.functions)await o1(e1.BuildFunctionLib);if(H.views)await o1(e1.BuildViews);if(H.stacks)await o1(e1.BuildStacks);if(H.buddy)await o1(e1.BuildCli);if(H.server)await o1(e1.BuildServer);a0.exit(OG.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)=>{I2.debug("Running `buddy build:components` ...",X),await o1(e1.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)=>{I2.debug("Running `buddy build:cli` ...",X),await o1(e1.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)=>{I2.debug("Running `buddy build:server` ...",X),await o1(e1.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)=>{I2.debug("Running `buddy `build:functions` ...",X),await o1(e1.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)=>{I2.debug("Running `buddy build:vue-components` ...",X),await o1(e1.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)=>{I2.debug("Running `buddy build:web-components` ...",X),await o1(e1.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)=>{I2.debug("Running `buddy build:docs` ...",X),await o1(e1.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)=>{I2.debug("Running `buddy build:core` ...",X);let H=await EG("buddy build:core"),Z=await o1(e1.BuildCore,X);if(Z.isErr())I2.error("Failed to build the Stacks core.",Z.error),a0.exit();await Q8("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)=>{I2.debug("Running `buddy build:desktop` ...",X);let H=await EG("buddy build:desktop"),Z=await o1(e1.BuildDesktop,X);if(Z.isErr())await Q8("While running the build:desktop command, there was an issue",{startTime:H,useSeconds:!0},Z.error),a0.exit();console.log(""),await Q8("Exited",{startTime:H,useSeconds:!0}),a0.exit(OG.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)=>{I2.debug("Running `buddy build:stacks` ...",X);let H=await EG("buddy build:stacks"),Z=await o1(e1.BuildStacks,X);if(Z.isErr())I2.error("Failed to build Stacks.",Z.error),a0.exit();await Q8("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(" ")),a0.exit(1)})}function VF(J){return!J.components&&!J.vueComponents&&!J.webComponents&&!J.elements&&!J.functions&&!J.views&&!J.docs&&!J.stacks&&!J.buddy}import PH from"process";import{runAction as QF}from"@stacksjs/actions";import{intro as YF,log as zF,outro as wH}from"@stacksjs/cli";import{Action as WF}from"@stacksjs/enums";function Zw1(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)=>{zF.debug("Running `buddy changelog` ...",X);let H=await YF("buddy changelog"),Z=await QF(WF.Changelog,X);if(Z.isErr())await wH("While running the changelog command, there was an issue",{...X,startTime:H,useSeconds:!0},Z.error),PH.exit();await wH("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."),PH.exit(1)})}import vG from"process";import{runAction as $F}from"@stacksjs/actions";import{intro as UF,log as KF,outro as LH}from"@stacksjs/cli";import{Action as BF}from"@stacksjs/enums";import{ExitCode as TH}from"@stacksjs/types";function Uw1(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)=>{KF.debug("Running `buddy clean` ...",X);let H=await UF("buddy clean"),Z=await $F(BF.Clean,X);if(Z.isErr())await LH("While running the clean command, there was an issue",{startTime:H,useSeconds:!0},Z.error),vG.exit(TH.FatalError);await LH("Cleaned up",{startTime:H,useSeconds:!0,message:"Cleaned up"}),vG.exit(TH.Success)}),J.on("clean:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),vG.exit(1)})}import A1 from"process";var I5=u2(cZ(),1);var EH=u2(Y8(),1);var OH=async(J,G,X)=>{return{operation:NH(G).operation,region:await kH(J.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function RF(J){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cloudfront",region:J.region},propertiesExtractor:(G,X)=>({signingProperties:{config:G,context:X}})}}var vH=(J)=>{let G=[];switch(J.operation){default:G.push(RF(J))}return G},_H=(J)=>{return{...EH.resolveAwsSdkSigV4Config(J)}};var gH=(J)=>{return{...J,useDualstackEndpoint:J.useDualstackEndpoint??!1,useFipsEndpoint:J.useFipsEndpoint??!1,defaultSigningName:"cloudfront"}},bH={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var hH={name:"@aws-sdk/client-cloudfront",description:"AWS SDK for JavaScript Cloudfront Client for Node.js, Browser and React Native",version:"3.679.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.679.0","@aws-sdk/client-sts":"3.679.0","@aws-sdk/core":"3.679.0","@aws-sdk/credential-provider-node":"3.679.0","@aws-sdk/middleware-host-header":"3.679.0","@aws-sdk/middleware-logger":"3.679.0","@aws-sdk/middleware-recursion-detection":"3.679.0","@aws-sdk/middleware-user-agent":"3.679.0","@aws-sdk/region-config-resolver":"3.679.0","@aws-sdk/types":"3.679.0","@aws-sdk/util-endpoints":"3.679.0","@aws-sdk/util-user-agent-browser":"3.679.0","@aws-sdk/util-user-agent-node":"3.679.0","@aws-sdk/xml-builder":"3.679.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 LZ=u2(Y8(),1);var zZ=u2(Y8(),1);var yH={["required"]:!1,type:"String"},mH={["required"]:!0,default:!1,type:"Boolean"},xH={["ref"]:"Endpoint"},gG={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},pH={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},C2={},lH={["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},"aws"]},qF={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},cH={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!1]},_G={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!1]},rH={authSchemes:[{name:"sigv4",signingName:"cloudfront",signingRegion:"us-east-1"}]},aH={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},iH={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},uH=[gG],dH=[pH],sH=[{["ref"]:"Region"}],FF={version:"1.0",parameters:{Region:yH,UseDualStack:mH,UseFIPS:mH,Endpoint:yH},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[xH]}],rules:[{conditions:uH,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:dH,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:xH,properties:C2,headers:C2},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:sH}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:sH,assign:"PartitionResult"}],rules:[{conditions:[lH,cH,_G],endpoint:{url:"https://cloudfront.amazonaws.com",properties:rH,headers:C2},type:"endpoint"},{conditions:[lH,gG,_G],endpoint:{url:"https://cloudfront-fips.amazonaws.com",properties:rH,headers:C2},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[qF,"aws-cn"]},cH,_G],endpoint:{url:"https://cloudfront.cn-northwest-1.amazonaws.com.cn",properties:{authSchemes:[{name:"sigv4",signingName:"cloudfront",signingRegion:"cn-northwest-1"}]},headers:C2},type:"endpoint"},{conditions:[gG,pH],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,aH]},iH],rules:[{endpoint:{url:"https://cloudfront-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:C2,headers:C2},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:uH,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[aH,!0]}],rules:[{endpoint:{url:"https://cloudfront-fips.{Region}.{PartitionResult#dnsSuffix}",properties:C2,headers:C2},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:dH,rules:[{conditions:[iH],rules:[{endpoint:{url:"https://cloudfront.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:C2,headers:C2},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:C2,headers:C2},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},nH=FF;var jF=new oH({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),GZ=(J,G={})=>{return jF.get(J,()=>tH(nH,{endpointParams:J,logger:G.logger}))};eH.aws=JZ;var WZ=(J)=>{return{apiVersion:"2020-05-31",base64Decoder:J?.base64Decoder??QZ,base64Encoder:J?.base64Encoder??YZ,disableHostPrefix:J?.disableHostPrefix??!1,endpointProvider:J?.endpointProvider??GZ,extensions:J?.extensions??[],httpAuthSchemeProvider:J?.httpAuthSchemeProvider??vH,httpAuthSchemes:J?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(G)=>G.getIdentityProvider("aws.auth#sigv4"),signer:new zZ.AwsSdkSigV4Signer}],logger:J?.logger??new HZ,serviceId:J?.serviceId??"CloudFront",urlParser:J?.urlParser??XZ,utf8Decoder:J?.utf8Decoder??ZZ,utf8Encoder:J?.utf8Encoder??VZ}};var TZ=(J)=>{jZ(process.version);let G=PZ(J),X=()=>G().then(FZ),H=WZ(J);return LZ.emitWarningIfUnsupportedVersion(process.version),{...H,...J,runtime:"node",defaultsMode:G,bodyLengthChecker:J?.bodyLengthChecker??SZ,credentialDefaultProvider:J?.credentialDefaultProvider??wZ,defaultUserAgentProvider:J?.defaultUserAgentProvider??AZ({serviceId:H.serviceId,clientVersion:hH.version}),maxAttempts:J?.maxAttempts??i0(MZ),region:J?.region??i0(KZ,BZ),requestHandler:fZ.create(J?.requestHandler??X),retryMode:J?.retryMode??i0({...qZ,default:async()=>(await X()).retryMode||RZ}),sha256:J?.sha256??CZ.bind(null,"sha256"),streamCollector:J?.streamCollector??DZ,useDualstackEndpoint:J?.useDualstackEndpoint??i0($Z),useFipsEndpoint:J?.useFipsEndpoint??i0(UZ),userAgentAppId:J?.userAgentAppId??i0(IZ)}};var NZ=(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}}},kZ=(J)=>{return{httpAuthSchemes:J.httpAuthSchemes(),httpAuthSchemeProvider:J.httpAuthSchemeProvider(),credentials:J.credentials()}};var z8=(J)=>J,hZ=(J,G)=>{let X={...z8(gZ(J)),...z8(vZ(J)),...z8(EZ(J)),...z8(NZ(J))};return G.forEach((H)=>H.configure(X)),{...J,...bZ(X),..._Z(X),...OZ(X),...kZ(X)}};class bG extends pZ{constructor(...[J]){let G=TZ(J||{}),X=gH(G),H=rZ(X),Z=sZ(H),V=iZ(Z),Q=yZ(V),Y=dZ(Q),z=_H(Y),W=hZ(z,J?.extensions||[]);super(W);this.config=W,this.middlewareStack.use(aZ(this.config)),this.middlewareStack.use(nZ(this.config)),this.middlewareStack.use(uZ(this.config)),this.middlewareStack.use(mZ(this.config)),this.middlewareStack.use(xZ(this.config)),this.middlewareStack.use(lZ(this.config)),this.middlewareStack.use(I5.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:OH,identityProviderConfigProvider:async(K)=>new I5.DefaultIdentityProviderConfig({"aws.auth#sigv4":K.credentials})})),this.middlewareStack.use(I5.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}var w5=u2(Y8(),1);function oZ(J){return J.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function eZ(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 hG{constructor(J){this.value=J}toString(){return eZ(""+this.value)}}class d2{static of(J,G,X){let H=new d2(J);if(G!==void 0)H.addChildNode(new hG(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=d2.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 d2(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}="${oZ(""+Z)}"`}return G+=!J?"/>":`>${this.children.map((H)=>H.toString()).join("")}</${this.name}>`}}var QV=u2(cZ(),1);class w extends tZ{constructor(J){super(J);Object.setPrototypeOf(this,w.prototype)}}class W8 extends w{constructor(J){super({name:"AccessDenied",$fault:"client",...J});this.name="AccessDenied",this.$fault="client",Object.setPrototypeOf(this,W8.prototype),this.Message=J.Message}}class $8 extends w{constructor(J){super({name:"IllegalUpdate",$fault:"client",...J});this.name="IllegalUpdate",this.$fault="client",Object.setPrototypeOf(this,$8.prototype),this.Message=J.Message}}class U8 extends w{constructor(J){super({name:"InvalidArgument",$fault:"client",...J});this.name="InvalidArgument",this.$fault="client",Object.setPrototypeOf(this,U8.prototype),this.Message=J.Message}}class K8 extends w{constructor(J){super({name:"NoSuchDistribution",$fault:"client",...J});this.name="NoSuchDistribution",this.$fault="client",Object.setPrototypeOf(this,K8.prototype),this.Message=J.Message}}class B8 extends w{constructor(J){super({name:"TooManyDistributionCNAMEs",$fault:"client",...J});this.name="TooManyDistributionCNAMEs",this.$fault="client",Object.setPrototypeOf(this,B8.prototype),this.Message=J.Message}}class R8 extends w{constructor(J){super({name:"BatchTooLarge",$fault:"client",...J});this.name="BatchTooLarge",this.$fault="client",Object.setPrototypeOf(this,R8.prototype),this.Message=J.Message}}class M8 extends w{constructor(J){super({name:"CachePolicyAlreadyExists",$fault:"client",...J});this.name="CachePolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,M8.prototype),this.Message=J.Message}}class q8 extends w{constructor(J){super({name:"CachePolicyInUse",$fault:"client",...J});this.name="CachePolicyInUse",this.$fault="client",Object.setPrototypeOf(this,q8.prototype),this.Message=J.Message}}class F8 extends w{constructor(J){super({name:"CannotChangeImmutablePublicKeyFields",$fault:"client",...J});this.name="CannotChangeImmutablePublicKeyFields",this.$fault="client",Object.setPrototypeOf(this,F8.prototype),this.Message=J.Message}}class j8 extends w{constructor(J){super({name:"CannotDeleteEntityWhileInUse",$fault:"client",...J});this.name="CannotDeleteEntityWhileInUse",this.$fault="client",Object.setPrototypeOf(this,j8.prototype),this.Message=J.Message}}class f8 extends w{constructor(J){super({name:"CNAMEAlreadyExists",$fault:"client",...J});this.name="CNAMEAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,f8.prototype),this.Message=J.Message}}class D8 extends w{constructor(J){super({name:"DistributionAlreadyExists",$fault:"client",...J});this.name="DistributionAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,D8.prototype),this.Message=J.Message}}class A8 extends w{constructor(J){super({name:"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior",$fault:"client",...J});this.name="IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior",this.$fault="client",Object.setPrototypeOf(this,A8.prototype),this.Message=J.Message}}class I8 extends w{constructor(J){super({name:"InconsistentQuantities",$fault:"client",...J});this.name="InconsistentQuantities",this.$fault="client",Object.setPrototypeOf(this,I8.prototype),this.Message=J.Message}}class C8 extends w{constructor(J){super({name:"InvalidDefaultRootObject",$fault:"client",...J});this.name="InvalidDefaultRootObject",this.$fault="client",Object.setPrototypeOf(this,C8.prototype),this.Message=J.Message}}class S8 extends w{constructor(J){super({name:"InvalidErrorCode",$fault:"client",...J});this.name="InvalidErrorCode",this.$fault="client",Object.setPrototypeOf(this,S8.prototype),this.Message=J.Message}}class P8 extends w{constructor(J){super({name:"InvalidForwardCookies",$fault:"client",...J});this.name="InvalidForwardCookies",this.$fault="client",Object.setPrototypeOf(this,P8.prototype),this.Message=J.Message}}class w8 extends w{constructor(J){super({name:"InvalidFunctionAssociation",$fault:"client",...J});this.name="InvalidFunctionAssociation",this.$fault="client",Object.setPrototypeOf(this,w8.prototype),this.Message=J.Message}}class L8 extends w{constructor(J){super({name:"InvalidGeoRestrictionParameter",$fault:"client",...J});this.name="InvalidGeoRestrictionParameter",this.$fault="client",Object.setPrototypeOf(this,L8.prototype),this.Message=J.Message}}class T8 extends w{constructor(J){super({name:"InvalidHeadersForS3Origin",$fault:"client",...J});this.name="InvalidHeadersForS3Origin",this.$fault="client",Object.setPrototypeOf(this,T8.prototype),this.Message=J.Message}}class N8 extends w{constructor(J){super({name:"InvalidIfMatchVersion",$fault:"client",...J});this.name="InvalidIfMatchVersion",this.$fault="client",Object.setPrototypeOf(this,N8.prototype),this.Message=J.Message}}class k8 extends w{constructor(J){super({name:"InvalidLambdaFunctionAssociation",$fault:"client",...J});this.name="InvalidLambdaFunctionAssociation",this.$fault="client",Object.setPrototypeOf(this,k8.prototype),this.Message=J.Message}}class E8 extends w{constructor(J){super({name:"InvalidLocationCode",$fault:"client",...J});this.name="InvalidLocationCode",this.$fault="client",Object.setPrototypeOf(this,E8.prototype),this.Message=J.Message}}class O8 extends w{constructor(J){super({name:"InvalidMinimumProtocolVersion",$fault:"client",...J});this.name="InvalidMinimumProtocolVersion",this.$fault="client",Object.setPrototypeOf(this,O8.prototype),this.Message=J.Message}}class v8 extends w{constructor(J){super({name:"InvalidOrigin",$fault:"client",...J});this.name="InvalidOrigin",this.$fault="client",Object.setPrototypeOf(this,v8.prototype),this.Message=J.Message}}class _8 extends w{constructor(J){super({name:"InvalidOriginAccessControl",$fault:"client",...J});this.name="InvalidOriginAccessControl",this.$fault="client",Object.setPrototypeOf(this,_8.prototype),this.Message=J.Message}}class g8 extends w{constructor(J){super({name:"InvalidOriginAccessIdentity",$fault:"client",...J});this.name="InvalidOriginAccessIdentity",this.$fault="client",Object.setPrototypeOf(this,g8.prototype),this.Message=J.Message}}class b8 extends w{constructor(J){super({name:"InvalidOriginKeepaliveTimeout",$fault:"client",...J});this.name="InvalidOriginKeepaliveTimeout",this.$fault="client",Object.setPrototypeOf(this,b8.prototype),this.Message=J.Message}}class h8 extends w{constructor(J){super({name:"InvalidOriginReadTimeout",$fault:"client",...J});this.name="InvalidOriginReadTimeout",this.$fault="client",Object.setPrototypeOf(this,h8.prototype),this.Message=J.Message}}class y8 extends w{constructor(J){super({name:"InvalidProtocolSettings",$fault:"client",...J});this.name="InvalidProtocolSettings",this.$fault="client",Object.setPrototypeOf(this,y8.prototype),this.Message=J.Message}}class m8 extends w{constructor(J){super({name:"InvalidQueryStringParameters",$fault:"client",...J});this.name="InvalidQueryStringParameters",this.$fault="client",Object.setPrototypeOf(this,m8.prototype),this.Message=J.Message}}class x8 extends w{constructor(J){super({name:"InvalidRelativePath",$fault:"client",...J});this.name="InvalidRelativePath",this.$fault="client",Object.setPrototypeOf(this,x8.prototype),this.Message=J.Message}}class l8 extends w{constructor(J){super({name:"InvalidRequiredProtocol",$fault:"client",...J});this.name="InvalidRequiredProtocol",this.$fault="client",Object.setPrototypeOf(this,l8.prototype),this.Message=J.Message}}class c8 extends w{constructor(J){super({name:"InvalidResponseCode",$fault:"client",...J});this.name="InvalidResponseCode",this.$fault="client",Object.setPrototypeOf(this,c8.prototype),this.Message=J.Message}}class r8 extends w{constructor(J){super({name:"InvalidTTLOrder",$fault:"client",...J});this.name="InvalidTTLOrder",this.$fault="client",Object.setPrototypeOf(this,r8.prototype),this.Message=J.Message}}class a8 extends w{constructor(J){super({name:"InvalidViewerCertificate",$fault:"client",...J});this.name="InvalidViewerCertificate",this.$fault="client",Object.setPrototypeOf(this,a8.prototype),this.Message=J.Message}}class i8 extends w{constructor(J){super({name:"InvalidWebACLId",$fault:"client",...J});this.name="InvalidWebACLId",this.$fault="client",Object.setPrototypeOf(this,i8.prototype),this.Message=J.Message}}class u8 extends w{constructor(J){super({name:"MissingBody",$fault:"client",...J});this.name="MissingBody",this.$fault="client",Object.setPrototypeOf(this,u8.prototype),this.Message=J.Message}}class d8 extends w{constructor(J){super({name:"NoSuchCachePolicy",$fault:"client",...J});this.name="NoSuchCachePolicy",this.$fault="client",Object.setPrototypeOf(this,d8.prototype),this.Message=J.Message}}class s8 extends w{constructor(J){super({name:"NoSuchFieldLevelEncryptionConfig",$fault:"client",...J});this.name="NoSuchFieldLevelEncryptionConfig",this.$fault="client",Object.setPrototypeOf(this,s8.prototype),this.Message=J.Message}}class p8 extends w{constructor(J){super({name:"NoSuchOrigin",$fault:"client",...J});this.name="NoSuchOrigin",this.$fault="client",Object.setPrototypeOf(this,p8.prototype),this.Message=J.Message}}class n8 extends w{constructor(J){super({name:"NoSuchOriginRequestPolicy",$fault:"client",...J});this.name="NoSuchOriginRequestPolicy",this.$fault="client",Object.setPrototypeOf(this,n8.prototype),this.Message=J.Message}}class o8 extends w{constructor(J){super({name:"NoSuchRealtimeLogConfig",$fault:"client",...J});this.name="NoSuchRealtimeLogConfig",this.$fault="client",Object.setPrototypeOf(this,o8.prototype),this.Message=J.Message}}class e8 extends w{constructor(J){super({name:"NoSuchResponseHeadersPolicy",$fault:"client",...J});this.name="NoSuchResponseHeadersPolicy",this.$fault="client",Object.setPrototypeOf(this,e8.prototype),this.Message=J.Message}}class t8 extends w{constructor(J){super({name:"PreconditionFailed",$fault:"client",...J});this.name="PreconditionFailed",this.$fault="client",Object.setPrototypeOf(this,t8.prototype),this.Message=J.Message}}class J4 extends w{constructor(J){super({name:"RealtimeLogConfigOwnerMismatch",$fault:"client",...J});this.name="RealtimeLogConfigOwnerMismatch",this.$fault="client",Object.setPrototypeOf(this,J4.prototype),this.Message=J.Message}}class G4 extends w{constructor(J){super({name:"TooManyCacheBehaviors",$fault:"client",...J});this.name="TooManyCacheBehaviors",this.$fault="client",Object.setPrototypeOf(this,G4.prototype),this.Message=J.Message}}class X4 extends w{constructor(J){super({name:"TooManyCertificates",$fault:"client",...J});this.name="TooManyCertificates",this.$fault="client",Object.setPrototypeOf(this,X4.prototype),this.Message=J.Message}}class H4 extends w{constructor(J){super({name:"TooManyCookieNamesInWhiteList",$fault:"client",...J});this.name="TooManyCookieNamesInWhiteList",this.$fault="client",Object.setPrototypeOf(this,H4.prototype),this.Message=J.Message}}class Z4 extends w{constructor(J){super({name:"TooManyDistributions",$fault:"client",...J});this.name="TooManyDistributions",this.$fault="client",Object.setPrototypeOf(this,Z4.prototype),this.Message=J.Message}}class V4 extends w{constructor(J){super({name:"TooManyDistributionsAssociatedToCachePolicy",$fault:"client",...J});this.name="TooManyDistributionsAssociatedToCachePolicy",this.$fault="client",Object.setPrototypeOf(this,V4.prototype),this.Message=J.Message}}class Q4 extends w{constructor(J){super({name:"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig",$fault:"client",...J});this.name="TooManyDistributionsAssociatedToFieldLevelEncryptionConfig",this.$fault="client",Object.setPrototypeOf(this,Q4.prototype),this.Message=J.Message}}class Y4 extends w{constructor(J){super({name:"TooManyDistributionsAssociatedToKeyGroup",$fault:"client",...J});this.name="TooManyDistributionsAssociatedToKeyGroup",this.$fault="client",Object.setPrototypeOf(this,Y4.prototype),this.Message=J.Message}}class z4 extends w{constructor(J){super({name:"TooManyDistributionsAssociatedToOriginAccessControl",$fault:"client",...J});this.name="TooManyDistributionsAssociatedToOriginAccessControl",this.$fault="client",Object.setPrototypeOf(this,z4.prototype),this.Message=J.Message}}class W4 extends w{constructor(J){super({name:"TooManyDistributionsAssociatedToOriginRequestPolicy",$fault:"client",...J});this.name="TooManyDistributionsAssociatedToOriginRequestPolicy",this.$fault="client",Object.setPrototypeOf(this,W4.prototype),this.Message=J.Message}}class $4 extends w{constructor(J){super({name:"TooManyDistributionsAssociatedToResponseHeadersPolicy",$fault:"client",...J});this.name="TooManyDistributionsAssociatedToResponseHeadersPolicy",this.$fault="client",Object.setPrototypeOf(this,$4.prototype),this.Message=J.Message}}class U4 extends w{constructor(J){super({name:"TooManyDistributionsWithFunctionAssociations",$fault:"client",...J});this.name="TooManyDistributionsWithFunctionAssociations",this.$fault="client",Object.setPrototypeOf(this,U4.prototype),this.Message=J.Message}}class K4 extends w{constructor(J){super({name:"TooManyDistributionsWithLambdaAssociations",$fault:"client",...J});this.name="TooManyDistributionsWithLambdaAssociations",this.$fault="client",Object.setPrototypeOf(this,K4.prototype),this.Message=J.Message}}class B4 extends w{constructor(J){super({name:"TooManyDistributionsWithSingleFunctionARN",$fault:"client",...J});this.name="TooManyDistributionsWithSingleFunctionARN",this.$fault="client",Object.setPrototypeOf(this,B4.prototype),this.Message=J.Message}}class R4 extends w{constructor(J){super({name:"TooManyFunctionAssociations",$fault:"client",...J});this.name="TooManyFunctionAssociations",this.$fault="client",Object.setPrototypeOf(this,R4.prototype),this.Message=J.Message}}class M4 extends w{constructor(J){super({name:"TooManyHeadersInForwardedValues",$fault:"client",...J});this.name="TooManyHeadersInForwardedValues",this.$fault="client",Object.setPrototypeOf(this,M4.prototype),this.Message=J.Message}}class q4 extends w{constructor(J){super({name:"TooManyKeyGroupsAssociatedToDistribution",$fault:"client",...J});this.name="TooManyKeyGroupsAssociatedToDistribution",this.$fault="client",Object.setPrototypeOf(this,q4.prototype),this.Message=J.Message}}class F4 extends w{constructor(J){super({name:"TooManyLambdaFunctionAssociations",$fault:"client",...J});this.name="TooManyLambdaFunctionAssociations",this.$fault="client",Object.setPrototypeOf(this,F4.prototype),this.Message=J.Message}}class j4 extends w{constructor(J){super({name:"TooManyOriginCustomHeaders",$fault:"client",...J});this.name="TooManyOriginCustomHeaders",this.$fault="client",Object.setPrototypeOf(this,j4.prototype),this.Message=J.Message}}class f4 extends w{constructor(J){super({name:"TooManyOriginGroupsPerDistribution",$fault:"client",...J});this.name="TooManyOriginGroupsPerDistribution",this.$fault="client",Object.setPrototypeOf(this,f4.prototype),this.Message=J.Message}}class D4 extends w{constructor(J){super({name:"TooManyOrigins",$fault:"client",...J});this.name="TooManyOrigins",this.$fault="client",Object.setPrototypeOf(this,D4.prototype),this.Message=J.Message}}class A4 extends w{constructor(J){super({name:"TooManyQueryStringParameters",$fault:"client",...J});this.name="TooManyQueryStringParameters",this.$fault="client",Object.setPrototypeOf(this,A4.prototype),this.Message=J.Message}}class I4 extends w{constructor(J){super({name:"TooManyTrustedSigners",$fault:"client",...J});this.name="TooManyTrustedSigners",this.$fault="client",Object.setPrototypeOf(this,I4.prototype),this.Message=J.Message}}class C4 extends w{constructor(J){super({name:"TrustedKeyGroupDoesNotExist",$fault:"client",...J});this.name="TrustedKeyGroupDoesNotExist",this.$fault="client",Object.setPrototypeOf(this,C4.prototype),this.Message=J.Message}}class S4 extends w{constructor(J){super({name:"TrustedSignerDoesNotExist",$fault:"client",...J});this.name="TrustedSignerDoesNotExist",this.$fault="client",Object.setPrototypeOf(this,S4.prototype),this.Message=J.Message}}class P4 extends w{constructor(J){super({name:"TooManyCachePolicies",$fault:"client",...J});this.name="TooManyCachePolicies",this.$fault="client",Object.setPrototypeOf(this,P4.prototype),this.Message=J.Message}}class w4 extends w{constructor(J){super({name:"TooManyCookiesInCachePolicy",$fault:"client",...J});this.name="TooManyCookiesInCachePolicy",this.$fault="client",Object.setPrototypeOf(this,w4.prototype),this.Message=J.Message}}class L4 extends w{constructor(J){super({name:"TooManyHeadersInCachePolicy",$fault:"client",...J});this.name="TooManyHeadersInCachePolicy",this.$fault="client",Object.setPrototypeOf(this,L4.prototype),this.Message=J.Message}}class T4 extends w{constructor(J){super({name:"TooManyQueryStringsInCachePolicy",$fault:"client",...J});this.name="TooManyQueryStringsInCachePolicy",this.$fault="client",Object.setPrototypeOf(this,T4.prototype),this.Message=J.Message}}class N4 extends w{constructor(J){super({name:"CloudFrontOriginAccessIdentityAlreadyExists",$fault:"client",...J});this.name="CloudFrontOriginAccessIdentityAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,N4.prototype),this.Message=J.Message}}class k4 extends w{constructor(J){super({name:"TooManyCloudFrontOriginAccessIdentities",$fault:"client",...J});this.name="TooManyCloudFrontOriginAccessIdentities",this.$fault="client",Object.setPrototypeOf(this,k4.prototype),this.Message=J.Message}}class E4 extends w{constructor(J){super({name:"ContinuousDeploymentPolicyAlreadyExists",$fault:"client",...J});this.name="ContinuousDeploymentPolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,E4.prototype),this.Message=J.Message}}class O4 extends w{constructor(J){super({name:"StagingDistributionInUse",$fault:"client",...J});this.name="StagingDistributionInUse",this.$fault="client",Object.setPrototypeOf(this,O4.prototype),this.Message=J.Message}}class v4 extends w{constructor(J){super({name:"TooManyContinuousDeploymentPolicies",$fault:"client",...J});this.name="TooManyContinuousDeploymentPolicies",this.$fault="client",Object.setPrototypeOf(this,v4.prototype),this.Message=J.Message}}class _4 extends w{constructor(J){super({name:"ContinuousDeploymentPolicyInUse",$fault:"client",...J});this.name="ContinuousDeploymentPolicyInUse",this.$fault="client",Object.setPrototypeOf(this,_4.prototype),this.Message=J.Message}}class g4 extends w{constructor(J){super({name:"IllegalOriginAccessConfiguration",$fault:"client",...J});this.name="IllegalOriginAccessConfiguration",this.$fault="client",Object.setPrototypeOf(this,g4.prototype),this.Message=J.Message}}class b4 extends w{constructor(J){super({name:"InvalidDomainNameForOriginAccessControl",$fault:"client",...J});this.name="InvalidDomainNameForOriginAccessControl",this.$fault="client",Object.setPrototypeOf(this,b4.prototype),this.Message=J.Message}}class h4 extends w{constructor(J){super({name:"NoSuchContinuousDeploymentPolicy",$fault:"client",...J});this.name="NoSuchContinuousDeploymentPolicy",this.$fault="client",Object.setPrototypeOf(this,h4.prototype),this.Message=J.Message}}class y4 extends w{constructor(J){super({name:"InvalidTagging",$fault:"client",...J});this.name="InvalidTagging",this.$fault="client",Object.setPrototypeOf(this,y4.prototype),this.Message=J.Message}}class m4 extends w{constructor(J){super({name:"FieldLevelEncryptionConfigAlreadyExists",$fault:"client",...J});this.name="FieldLevelEncryptionConfigAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,m4.prototype),this.Message=J.Message}}class x4 extends w{constructor(J){super({name:"NoSuchFieldLevelEncryptionProfile",$fault:"client",...J});this.name="NoSuchFieldLevelEncryptionProfile",this.$fault="client",Object.setPrototypeOf(this,x4.prototype),this.Message=J.Message}}class l4 extends w{constructor(J){super({name:"QueryArgProfileEmpty",$fault:"client",...J});this.name="QueryArgProfileEmpty",this.$fault="client",Object.setPrototypeOf(this,l4.prototype),this.Message=J.Message}}class c4 extends w{constructor(J){super({name:"TooManyFieldLevelEncryptionConfigs",$fault:"client",...J});this.name="TooManyFieldLevelEncryptionConfigs",this.$fault="client",Object.setPrototypeOf(this,c4.prototype),this.Message=J.Message}}class r4 extends w{constructor(J){super({name:"TooManyFieldLevelEncryptionContentTypeProfiles",$fault:"client",...J});this.name="TooManyFieldLevelEncryptionContentTypeProfiles",this.$fault="client",Object.setPrototypeOf(this,r4.prototype),this.Message=J.Message}}class a4 extends w{constructor(J){super({name:"TooManyFieldLevelEncryptionQueryArgProfiles",$fault:"client",...J});this.name="TooManyFieldLevelEncryptionQueryArgProfiles",this.$fault="client",Object.setPrototypeOf(this,a4.prototype),this.Message=J.Message}}class i4 extends w{constructor(J){super({name:"FieldLevelEncryptionProfileAlreadyExists",$fault:"client",...J});this.name="FieldLevelEncryptionProfileAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,i4.prototype),this.Message=J.Message}}class u4 extends w{constructor(J){super({name:"FieldLevelEncryptionProfileSizeExceeded",$fault:"client",...J});this.name="FieldLevelEncryptionProfileSizeExceeded",this.$fault="client",Object.setPrototypeOf(this,u4.prototype),this.Message=J.Message}}class d4 extends w{constructor(J){super({name:"NoSuchPublicKey",$fault:"client",...J});this.name="NoSuchPublicKey",this.$fault="client",Object.setPrototypeOf(this,d4.prototype),this.Message=J.Message}}class s4 extends w{constructor(J){super({name:"TooManyFieldLevelEncryptionEncryptionEntities",$fault:"client",...J});this.name="TooManyFieldLevelEncryptionEncryptionEntities",this.$fault="client",Object.setPrototypeOf(this,s4.prototype),this.Message=J.Message}}class p4 extends w{constructor(J){super({name:"TooManyFieldLevelEncryptionFieldPatterns",$fault:"client",...J});this.name="TooManyFieldLevelEncryptionFieldPatterns",this.$fault="client",Object.setPrototypeOf(this,p4.prototype),this.Message=J.Message}}class n4 extends w{constructor(J){super({name:"TooManyFieldLevelEncryptionProfiles",$fault:"client",...J});this.name="TooManyFieldLevelEncryptionProfiles",this.$fault="client",Object.setPrototypeOf(this,n4.prototype),this.Message=J.Message}}class o4 extends w{constructor(J){super({name:"FunctionAlreadyExists",$fault:"client",...J});this.name="FunctionAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,o4.prototype),this.Message=J.Message}}class e4 extends w{constructor(J){super({name:"FunctionSizeLimitExceeded",$fault:"client",...J});this.name="FunctionSizeLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,e4.prototype),this.Message=J.Message}}class t4 extends w{constructor(J){super({name:"TooManyFunctions",$fault:"client",...J});this.name="TooManyFunctions",this.$fault="client",Object.setPrototypeOf(this,t4.prototype),this.Message=J.Message}}class J6 extends w{constructor(J){super({name:"UnsupportedOperation",$fault:"client",...J});this.name="UnsupportedOperation",this.$fault="client",Object.setPrototypeOf(this,J6.prototype),this.Message=J.Message}}class G6 extends w{constructor(J){super({name:"TooManyInvalidationsInProgress",$fault:"client",...J});this.name="TooManyInvalidationsInProgress",this.$fault="client",Object.setPrototypeOf(this,G6.prototype),this.Message=J.Message}}class X6 extends w{constructor(J){super({name:"KeyGroupAlreadyExists",$fault:"client",...J});this.name="KeyGroupAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,X6.prototype),this.Message=J.Message}}class H6 extends w{constructor(J){super({name:"TooManyKeyGroups",$fault:"client",...J});this.name="TooManyKeyGroups",this.$fault="client",Object.setPrototypeOf(this,H6.prototype),this.Message=J.Message}}class Z6 extends w{constructor(J){super({name:"TooManyPublicKeysInKeyGroup",$fault:"client",...J});this.name="TooManyPublicKeysInKeyGroup",this.$fault="client",Object.setPrototypeOf(this,Z6.prototype),this.Message=J.Message}}class V6 extends w{constructor(J){super({name:"EntityAlreadyExists",$fault:"client",...J});this.name="EntityAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,V6.prototype),this.Message=J.Message}}class Q6 extends w{constructor(J){super({name:"EntityLimitExceeded",$fault:"client",...J});this.name="EntityLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,Q6.prototype),this.Message=J.Message}}class Y6 extends w{constructor(J){super({name:"EntitySizeLimitExceeded",$fault:"client",...J});this.name="EntitySizeLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,Y6.prototype),this.Message=J.Message}}class z6 extends w{constructor(J){super({name:"MonitoringSubscriptionAlreadyExists",$fault:"client",...J});this.name="MonitoringSubscriptionAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,z6.prototype),this.Message=J.Message}}class W6 extends w{constructor(J){super({name:"OriginAccessControlAlreadyExists",$fault:"client",...J});this.name="OriginAccessControlAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,W6.prototype),this.Message=J.Message}}class $6 extends w{constructor(J){super({name:"TooManyOriginAccessControls",$fault:"client",...J});this.name="TooManyOriginAccessControls",this.$fault="client",Object.setPrototypeOf(this,$6.prototype),this.Message=J.Message}}class U6 extends w{constructor(J){super({name:"OriginRequestPolicyAlreadyExists",$fault:"client",...J});this.name="OriginRequestPolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,U6.prototype),this.Message=J.Message}}class K6 extends w{constructor(J){super({name:"TooManyCookiesInOriginRequestPolicy",$fault:"client",...J});this.name="TooManyCookiesInOriginRequestPolicy",this.$fault="client",Object.setPrototypeOf(this,K6.prototype),this.Message=J.Message}}class B6 extends w{constructor(J){super({name:"TooManyHeadersInOriginRequestPolicy",$fault:"client",...J});this.name="TooManyHeadersInOriginRequestPolicy",this.$fault="client",Object.setPrototypeOf(this,B6.prototype),this.Message=J.Message}}class R6 extends w{constructor(J){super({name:"TooManyOriginRequestPolicies",$fault:"client",...J});this.name="TooManyOriginRequestPolicies",this.$fault="client",Object.setPrototypeOf(this,R6.prototype),this.Message=J.Message}}class M6 extends w{constructor(J){super({name:"TooManyQueryStringsInOriginRequestPolicy",$fault:"client",...J});this.name="TooManyQueryStringsInOriginRequestPolicy",this.$fault="client",Object.setPrototypeOf(this,M6.prototype),this.Message=J.Message}}class q6 extends w{constructor(J){super({name:"PublicKeyAlreadyExists",$fault:"client",...J});this.name="PublicKeyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,q6.prototype),this.Message=J.Message}}class F6 extends w{constructor(J){super({name:"TooManyPublicKeys",$fault:"client",...J});this.name="TooManyPublicKeys",this.$fault="client",Object.setPrototypeOf(this,F6.prototype),this.Message=J.Message}}class j6 extends w{constructor(J){super({name:"RealtimeLogConfigAlreadyExists",$fault:"client",...J});this.name="RealtimeLogConfigAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,j6.prototype),this.Message=J.Message}}class f6 extends w{constructor(J){super({name:"TooManyRealtimeLogConfigs",$fault:"client",...J});this.name="TooManyRealtimeLogConfigs",this.$fault="client",Object.setPrototypeOf(this,f6.prototype),this.Message=J.Message}}class D6 extends w{constructor(J){super({name:"ResponseHeadersPolicyAlreadyExists",$fault:"client",...J});this.name="ResponseHeadersPolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,D6.prototype),this.Message=J.Message}}class A6 extends w{constructor(J){super({name:"TooLongCSPInResponseHeadersPolicy",$fault:"client",...J});this.name="TooLongCSPInResponseHeadersPolicy",this.$fault="client",Object.setPrototypeOf(this,A6.prototype),this.Message=J.Message}}class I6 extends w{constructor(J){super({name:"TooManyCustomHeadersInResponseHeadersPolicy",$fault:"client",...J});this.name="TooManyCustomHeadersInResponseHeadersPolicy",this.$fault="client",Object.setPrototypeOf(this,I6.prototype),this.Message=J.Message}}class C6 extends w{constructor(J){super({name:"TooManyRemoveHeadersInResponseHeadersPolicy",$fault:"client",...J});this.name="TooManyRemoveHeadersInResponseHeadersPolicy",this.$fault="client",Object.setPrototypeOf(this,C6.prototype),this.Message=J.Message}}class S6 extends w{constructor(J){super({name:"TooManyResponseHeadersPolicies",$fault:"client",...J});this.name="TooManyResponseHeadersPolicies",this.$fault="client",Object.setPrototypeOf(this,S6.prototype),this.Message=J.Message}}class P6 extends w{constructor(J){super({name:"StreamingDistributionAlreadyExists",$fault:"client",...J});this.name="StreamingDistributionAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,P6.prototype),this.Message=J.Message}}class w6 extends w{constructor(J){super({name:"TooManyStreamingDistributionCNAMEs",$fault:"client",...J});this.name="TooManyStreamingDistributionCNAMEs",this.$fault="client",Object.setPrototypeOf(this,w6.prototype),this.Message=J.Message}}class L6 extends w{constructor(J){super({name:"TooManyStreamingDistributions",$fault:"client",...J});this.name="TooManyStreamingDistributions",this.$fault="client",Object.setPrototypeOf(this,L6.prototype),this.Message=J.Message}}class T6 extends w{constructor(J){super({name:"IllegalDelete",$fault:"client",...J});this.name="IllegalDelete",this.$fault="client",Object.setPrototypeOf(this,T6.prototype),this.Message=J.Message}}class N6 extends w{constructor(J){super({name:"CloudFrontOriginAccessIdentityInUse",$fault:"client",...J});this.name="CloudFrontOriginAccessIdentityInUse",this.$fault="client",Object.setPrototypeOf(this,N6.prototype),this.Message=J.Message}}class k6 extends w{constructor(J){super({name:"NoSuchCloudFrontOriginAccessIdentity",$fault:"client",...J});this.name="NoSuchCloudFrontOriginAccessIdentity",this.$fault="client",Object.setPrototypeOf(this,k6.prototype),this.Message=J.Message}}class E6 extends w{constructor(J){super({name:"DistributionNotDisabled",$fault:"client",...J});this.name="DistributionNotDisabled",this.$fault="client",Object.setPrototypeOf(this,E6.prototype),this.Message=J.Message}}class O6 extends w{constructor(J){super({name:"FieldLevelEncryptionConfigInUse",$fault:"client",...J});this.name="FieldLevelEncryptionConfigInUse",this.$fault="client",Object.setPrototypeOf(this,O6.prototype),this.Message=J.Message}}class v6 extends w{constructor(J){super({name:"FieldLevelEncryptionProfileInUse",$fault:"client",...J});this.name="FieldLevelEncryptionProfileInUse",this.$fault="client",Object.setPrototypeOf(this,v6.prototype),this.Message=J.Message}}class _6 extends w{constructor(J){super({name:"FunctionInUse",$fault:"client",...J});this.name="FunctionInUse",this.$fault="client",Object.setPrototypeOf(this,_6.prototype),this.Message=J.Message}}class g6 extends w{constructor(J){super({name:"NoSuchFunctionExists",$fault:"client",...J});this.name="NoSuchFunctionExists",this.$fault="client",Object.setPrototypeOf(this,g6.prototype),this.Message=J.Message}}class b6 extends w{constructor(J){super({name:"NoSuchResource",$fault:"client",...J});this.name="NoSuchResource",this.$fault="client",Object.setPrototypeOf(this,b6.prototype),this.Message=J.Message}}class h6 extends w{constructor(J){super({name:"ResourceInUse",$fault:"client",...J});this.name="ResourceInUse",this.$fault="client",Object.setPrototypeOf(this,h6.prototype),this.Message=J.Message}}class y6 extends w{constructor(J){super({name:"EntityNotFound",$fault:"client",...J});this.name="EntityNotFound",this.$fault="client",Object.setPrototypeOf(this,y6.prototype),this.Message=J.Message}}class m6 extends w{constructor(J){super({name:"NoSuchMonitoringSubscription",$fault:"client",...J});this.name="NoSuchMonitoringSubscription",this.$fault="client",Object.setPrototypeOf(this,m6.prototype),this.Message=J.Message}}class x6 extends w{constructor(J){super({name:"NoSuchOriginAccessControl",$fault:"client",...J});this.name="NoSuchOriginAccessControl",this.$fault="client",Object.setPrototypeOf(this,x6.prototype),this.Message=J.Message}}class l6 extends w{constructor(J){super({name:"OriginAccessControlInUse",$fault:"client",...J});this.name="OriginAccessControlInUse",this.$fault="client",Object.setPrototypeOf(this,l6.prototype),this.Message=J.Message}}class c6 extends w{constructor(J){super({name:"OriginRequestPolicyInUse",$fault:"client",...J});this.name="OriginRequestPolicyInUse",this.$fault="client",Object.setPrototypeOf(this,c6.prototype),this.Message=J.Message}}class r6 extends w{constructor(J){super({name:"PublicKeyInUse",$fault:"client",...J});this.name="PublicKeyInUse",this.$fault="client",Object.setPrototypeOf(this,r6.prototype),this.Message=J.Message}}class a6 extends w{constructor(J){super({name:"RealtimeLogConfigInUse",$fault:"client",...J});this.name="RealtimeLogConfigInUse",this.$fault="client",Object.setPrototypeOf(this,a6.prototype),this.Message=J.Message}}class i6 extends w{constructor(J){super({name:"ResponseHeadersPolicyInUse",$fault:"client",...J});this.name="ResponseHeadersPolicyInUse",this.$fault="client",Object.setPrototypeOf(this,i6.prototype),this.Message=J.Message}}class u6 extends w{constructor(J){super({name:"NoSuchStreamingDistribution",$fault:"client",...J});this.name="NoSuchStreamingDistribution",this.$fault="client",Object.setPrototypeOf(this,u6.prototype),this.Message=J.Message}}class d6 extends w{constructor(J){super({name:"StreamingDistributionNotDisabled",$fault:"client",...J});this.name="StreamingDistributionNotDisabled",this.$fault="client",Object.setPrototypeOf(this,d6.prototype),this.Message=J.Message}}class s6 extends w{constructor(J){super({name:"NoSuchInvalidation",$fault:"client",...J});this.name="NoSuchInvalidation",this.$fault="client",Object.setPrototypeOf(this,s6.prototype),this.Message=J.Message}}class p6 extends w{constructor(J){super({name:"TestFunctionFailed",$fault:"server",...J});this.name="TestFunctionFailed",this.$fault="server",Object.setPrototypeOf(this,p6.prototype),this.Message=J.Message}}var YV=async(J,G)=>{let X=QV.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=$D(J.InvalidationBatch,G),Z=DD,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 zV=async(J,G)=>{if(J.statusCode!==201&&J.statusCode>=300)return DF(J,G);let X=T({$metadata:k(J),[FD]:[,J.headers[fD]]}),H=GV(await w5.parseXmlBody(J.body,G));return X.Invalidation=BD(H,G),X};var DF=async(J,G)=>{let X={...J,body:await w5.parseXmlErrorBody(J.body,G)},H=w5.loadRestXmlErrorCode(J,X.body);switch(H){case"AccessDenied":case"com.amazonaws.cloudfront#AccessDenied":throw await IF(X,G);case"IllegalUpdate":case"com.amazonaws.cloudfront#IllegalUpdate":throw await nF(X,G);case"InvalidArgument":case"com.amazonaws.cloudfront#InvalidArgument":throw await eF(X,G);case"NoSuchDistribution":case"com.amazonaws.cloudfront#NoSuchDistribution":throw await kj(X,G);case"TooManyDistributionCNAMEs":case"com.amazonaws.cloudfront#TooManyDistributionCNAMEs":throw await jf(X,G);case"CNAMEAlreadyExists":case"com.amazonaws.cloudfront#CNAMEAlreadyExists":throw await kF(X,G);case"DistributionAlreadyExists":case"com.amazonaws.cloudfront#DistributionAlreadyExists":throw await vF(X,G);case"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":case"com.amazonaws.cloudfront#IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":throw await sF(X,G);case"InconsistentQuantities":case"com.amazonaws.cloudfront#InconsistentQuantities":throw await oF(X,G);case"InvalidDefaultRootObject":case"com.amazonaws.cloudfront#InvalidDefaultRootObject":throw await tF(X,G);case"InvalidErrorCode":case"com.amazonaws.cloudfront#InvalidErrorCode":throw await Gj(X,G);case"InvalidForwardCookies":case"com.amazonaws.cloudfront#InvalidForwardCookies":throw await Xj(X,G);case"InvalidFunctionAssociation":case"com.amazonaws.cloudfront#InvalidFunctionAssociation":throw await Hj(X,G);case"InvalidGeoRestrictionParameter":case"com.amazonaws.cloudfront#InvalidGeoRestrictionParameter":throw await Zj(X,G);case"InvalidHeadersForS3Origin":case"com.amazonaws.cloudfront#InvalidHeadersForS3Origin":throw await Vj(X,G);case"InvalidIfMatchVersion":case"com.amazonaws.cloudfront#InvalidIfMatchVersion":throw await Qj(X,G);case"InvalidLambdaFunctionAssociation":case"com.amazonaws.cloudfront#InvalidLambdaFunctionAssociation":throw await Yj(X,G);case"InvalidLocationCode":case"com.amazonaws.cloudfront#InvalidLocationCode":throw await zj(X,G);case"InvalidMinimumProtocolVersion":case"com.amazonaws.cloudfront#InvalidMinimumProtocolVersion":throw await Wj(X,G);case"InvalidOrigin":case"com.amazonaws.cloudfront#InvalidOrigin":throw await $j(X,G);case"InvalidOriginAccessControl":case"com.amazonaws.cloudfront#InvalidOriginAccessControl":throw await Uj(X,G);case"InvalidOriginAccessIdentity":case"com.amazonaws.cloudfront#InvalidOriginAccessIdentity":throw await Kj(X,G);case"InvalidOriginKeepaliveTimeout":case"com.amazonaws.cloudfront#InvalidOriginKeepaliveTimeout":throw await Bj(X,G);case"InvalidOriginReadTimeout":case"com.amazonaws.cloudfront#InvalidOriginReadTimeout":throw await Rj(X,G);case"InvalidProtocolSettings":case"com.amazonaws.cloudfront#InvalidProtocolSettings":throw await Mj(X,G);case"InvalidQueryStringParameters":case"com.amazonaws.cloudfront#InvalidQueryStringParameters":throw await qj(X,G);case"InvalidRelativePath":case"com.amazonaws.cloudfront#InvalidRelativePath":throw await Fj(X,G);case"InvalidRequiredProtocol":case"com.amazonaws.cloudfront#InvalidRequiredProtocol":throw await jj(X,G);case"InvalidResponseCode":case"com.amazonaws.cloudfront#InvalidResponseCode":throw await fj(X,G);case"InvalidTTLOrder":case"com.amazonaws.cloudfront#InvalidTTLOrder":throw await Aj(X,G);case"InvalidViewerCertificate":case"com.amazonaws.cloudfront#InvalidViewerCertificate":throw await Ij(X,G);case"InvalidWebACLId":case"com.amazonaws.cloudfront#InvalidWebACLId":throw await Cj(X,G);case"MissingBody":case"com.amazonaws.cloudfront#MissingBody":throw await Pj(X,G);case"NoSuchCachePolicy":case"com.amazonaws.cloudfront#NoSuchCachePolicy":throw await Lj(X,G);case"NoSuchFieldLevelEncryptionConfig":case"com.amazonaws.cloudfront#NoSuchFieldLevelEncryptionConfig":throw await Ej(X,G);case"NoSuchOrigin":case"com.amazonaws.cloudfront#NoSuchOrigin":throw await bj(X,G);case"NoSuchOriginRequestPolicy":case"com.amazonaws.cloudfront#NoSuchOriginRequestPolicy":throw await yj(X,G);case"NoSuchRealtimeLogConfig":case"com.amazonaws.cloudfront#NoSuchRealtimeLogConfig":throw await xj(X,G);case"NoSuchResponseHeadersPolicy":case"com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy":throw await cj(X,G);case"PreconditionFailed":case"com.amazonaws.cloudfront#PreconditionFailed":throw await sj(X,G);case"RealtimeLogConfigOwnerMismatch":case"com.amazonaws.cloudfront#RealtimeLogConfigOwnerMismatch":throw await Jf(X,G);case"TooManyCacheBehaviors":case"com.amazonaws.cloudfront#TooManyCacheBehaviors":throw await Wf(X,G);case"TooManyCertificates":case"com.amazonaws.cloudfront#TooManyCertificates":throw await Uf(X,G);case"TooManyCookieNamesInWhiteList":case"com.amazonaws.cloudfront#TooManyCookieNamesInWhiteList":throw await Rf(X,G);case"TooManyDistributions":case"com.amazonaws.cloudfront#TooManyDistributions":throw await ff(X,G);case"TooManyDistributionsAssociatedToCachePolicy":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToCachePolicy":throw await Df(X,G);case"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToFieldLevelEncryptionConfig":throw await Af(X,G);case"TooManyDistributionsAssociatedToKeyGroup":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup":throw await If(X,G);case"TooManyDistributionsAssociatedToOriginAccessControl":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginAccessControl":throw await Cf(X,G);case"TooManyDistributionsAssociatedToOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy":throw await Sf(X,G);case"TooManyDistributionsAssociatedToResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToResponseHeadersPolicy":throw await Pf(X,G);case"TooManyDistributionsWithFunctionAssociations":case"com.amazonaws.cloudfront#TooManyDistributionsWithFunctionAssociations":throw await wf(X,G);case"TooManyDistributionsWithLambdaAssociations":case"com.amazonaws.cloudfront#TooManyDistributionsWithLambdaAssociations":throw await Lf(X,G);case"TooManyDistributionsWithSingleFunctionARN":case"com.amazonaws.cloudfront#TooManyDistributionsWithSingleFunctionARN":throw await Tf(X,G);case"TooManyFunctionAssociations":case"com.amazonaws.cloudfront#TooManyFunctionAssociations":throw await gf(X,G);case"TooManyHeadersInForwardedValues":case"com.amazonaws.cloudfront#TooManyHeadersInForwardedValues":throw await yf(X,G);case"TooManyKeyGroupsAssociatedToDistribution":case"com.amazonaws.cloudfront#TooManyKeyGroupsAssociatedToDistribution":throw await cf(X,G);case"TooManyLambdaFunctionAssociations":case"com.amazonaws.cloudfront#TooManyLambdaFunctionAssociations":throw await rf(X,G);case"TooManyOriginCustomHeaders":case"com.amazonaws.cloudfront#TooManyOriginCustomHeaders":throw await uf(X,G);case"TooManyOriginGroupsPerDistribution":case"com.amazonaws.cloudfront#TooManyOriginGroupsPerDistribution":throw await df(X,G);case"TooManyOrigins":case"com.amazonaws.cloudfront#TooManyOrigins":throw await pf(X,G);case"TooManyQueryStringParameters":case"com.amazonaws.cloudfront#TooManyQueryStringParameters":throw await ef(X,G);case"TooManyTrustedSigners":case"com.amazonaws.cloudfront#TooManyTrustedSigners":throw await QD(X,G);case"TrustedKeyGroupDoesNotExist":case"com.amazonaws.cloudfront#TrustedKeyGroupDoesNotExist":throw await YD(X,G);case"TrustedSignerDoesNotExist":case"com.amazonaws.cloudfront#TrustedSignerDoesNotExist":throw await zD(X,G);case"CachePolicyAlreadyExists":case"com.amazonaws.cloudfront#CachePolicyAlreadyExists":throw await SF(X,G);case"TooManyCachePolicies":case"com.amazonaws.cloudfront#TooManyCachePolicies":throw await $f(X,G);case"TooManyCookiesInCachePolicy":case"com.amazonaws.cloudfront#TooManyCookiesInCachePolicy":throw await Mf(X,G);case"TooManyHeadersInCachePolicy":case"com.amazonaws.cloudfront#TooManyHeadersInCachePolicy":throw await hf(X,G);case"TooManyQueryStringsInCachePolicy":case"com.amazonaws.cloudfront#TooManyQueryStringsInCachePolicy":throw await tf(X,G);case"CloudFrontOriginAccessIdentityAlreadyExists":case"com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityAlreadyExists":throw await TF(X,G);case"TooManyCloudFrontOriginAccessIdentities":case"com.amazonaws.cloudfront#TooManyCloudFrontOriginAccessIdentities":throw await Kf(X,G);case"ContinuousDeploymentPolicyAlreadyExists":case"com.amazonaws.cloudfront#ContinuousDeploymentPolicyAlreadyExists":throw await EF(X,G);case"StagingDistributionInUse":case"com.amazonaws.cloudfront#StagingDistributionInUse":throw await Zf(X,G);case"TooManyContinuousDeploymentPolicies":case"com.amazonaws.cloudfront#TooManyContinuousDeploymentPolicies":throw await Bf(X,G);case"ContinuousDeploymentPolicyInUse":case"com.amazonaws.cloudfront#ContinuousDeploymentPolicyInUse":throw await OF(X,G);case"IllegalOriginAccessConfiguration":case"com.amazonaws.cloudfront#IllegalOriginAccessConfiguration":throw await pF(X,G);case"InvalidDomainNameForOriginAccessControl":case"com.amazonaws.cloudfront#InvalidDomainNameForOriginAccessControl":throw await Jj(X,G);case"NoSuchContinuousDeploymentPolicy":case"com.amazonaws.cloudfront#NoSuchContinuousDeploymentPolicy":throw await Nj(X,G);case"InvalidTagging":case"com.amazonaws.cloudfront#InvalidTagging":throw await Dj(X,G);case"FieldLevelEncryptionConfigAlreadyExists":case"com.amazonaws.cloudfront#FieldLevelEncryptionConfigAlreadyExists":throw await mF(X,G);case"NoSuchFieldLevelEncryptionProfile":case"com.amazonaws.cloudfront#NoSuchFieldLevelEncryptionProfile":throw await Oj(X,G);case"QueryArgProfileEmpty":case"com.amazonaws.cloudfront#QueryArgProfileEmpty":throw await oj(X,G);case"TooManyFieldLevelEncryptionConfigs":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionConfigs":throw await Nf(X,G);case"TooManyFieldLevelEncryptionContentTypeProfiles":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionContentTypeProfiles":throw await kf(X,G);case"TooManyFieldLevelEncryptionQueryArgProfiles":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionQueryArgProfiles":throw await _f(X,G);case"FieldLevelEncryptionProfileAlreadyExists":case"com.amazonaws.cloudfront#FieldLevelEncryptionProfileAlreadyExists":throw await lF(X,G);case"FieldLevelEncryptionProfileSizeExceeded":case"com.amazonaws.cloudfront#FieldLevelEncryptionProfileSizeExceeded":throw await rF(X,G);case"NoSuchPublicKey":case"com.amazonaws.cloudfront#NoSuchPublicKey":throw await mj(X,G);case"TooManyFieldLevelEncryptionEncryptionEntities":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionEncryptionEntities":throw await Ef(X,G);case"TooManyFieldLevelEncryptionFieldPatterns":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionFieldPatterns":throw await Of(X,G);case"TooManyFieldLevelEncryptionProfiles":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionProfiles":throw await vf(X,G);case"FunctionAlreadyExists":case"com.amazonaws.cloudfront#FunctionAlreadyExists":throw await aF(X,G);case"FunctionSizeLimitExceeded":case"com.amazonaws.cloudfront#FunctionSizeLimitExceeded":throw await uF(X,G);case"TooManyFunctions":case"com.amazonaws.cloudfront#TooManyFunctions":throw await bf(X,G);case"UnsupportedOperation":case"com.amazonaws.cloudfront#UnsupportedOperation":throw await WD(X,G);case"BatchTooLarge":case"com.amazonaws.cloudfront#BatchTooLarge":throw await CF(X,G);case"TooManyInvalidationsInProgress":case"com.amazonaws.cloudfront#TooManyInvalidationsInProgress":throw await xf(X,G);case"KeyGroupAlreadyExists":case"com.amazonaws.cloudfront#KeyGroupAlreadyExists":throw await Sj(X,G);case"TooManyKeyGroups":case"com.amazonaws.cloudfront#TooManyKeyGroups":throw await lf(X,G);case"TooManyPublicKeysInKeyGroup":case"com.amazonaws.cloudfront#TooManyPublicKeysInKeyGroup":throw await of(X,G);case"EntityAlreadyExists":case"com.amazonaws.cloudfront#EntityAlreadyExists":throw await gF(X,G);case"EntityLimitExceeded":case"com.amazonaws.cloudfront#EntityLimitExceeded":throw await bF(X,G);case"EntitySizeLimitExceeded":case"com.amazonaws.cloudfront#EntitySizeLimitExceeded":throw await yF(X,G);case"MonitoringSubscriptionAlreadyExists":case"com.amazonaws.cloudfront#MonitoringSubscriptionAlreadyExists":throw await wj(X,G);case"OriginAccessControlAlreadyExists":case"com.amazonaws.cloudfront#OriginAccessControlAlreadyExists":throw await aj(X,G);case"TooManyOriginAccessControls":case"com.amazonaws.cloudfront#TooManyOriginAccessControls":throw await af(X,G);case"OriginRequestPolicyAlreadyExists":case"com.amazonaws.cloudfront#OriginRequestPolicyAlreadyExists":throw await uj(X,G);case"TooManyCookiesInOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyCookiesInOriginRequestPolicy":throw await qf(X,G);case"TooManyHeadersInOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyHeadersInOriginRequestPolicy":throw await mf(X,G);case"TooManyOriginRequestPolicies":case"com.amazonaws.cloudfront#TooManyOriginRequestPolicies":throw await sf(X,G);case"TooManyQueryStringsInOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyQueryStringsInOriginRequestPolicy":throw await JD(X,G);case"PublicKeyAlreadyExists":case"com.amazonaws.cloudfront#PublicKeyAlreadyExists":throw await pj(X,G);case"TooManyPublicKeys":case"com.amazonaws.cloudfront#TooManyPublicKeys":throw await nf(X,G);case"RealtimeLogConfigAlreadyExists":case"com.amazonaws.cloudfront#RealtimeLogConfigAlreadyExists":throw await ej(X,G);case"TooManyRealtimeLogConfigs":case"com.amazonaws.cloudfront#TooManyRealtimeLogConfigs":throw await GD(X,G);case"ResponseHeadersPolicyAlreadyExists":case"com.amazonaws.cloudfront#ResponseHeadersPolicyAlreadyExists":throw await Xf(X,G);case"TooLongCSPInResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooLongCSPInResponseHeadersPolicy":throw await zf(X,G);case"TooManyCustomHeadersInResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooManyCustomHeadersInResponseHeadersPolicy":throw await Ff(X,G);case"TooManyRemoveHeadersInResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooManyRemoveHeadersInResponseHeadersPolicy":throw await XD(X,G);case"TooManyResponseHeadersPolicies":case"com.amazonaws.cloudfront#TooManyResponseHeadersPolicies":throw await HD(X,G);case"StreamingDistributionAlreadyExists":case"com.amazonaws.cloudfront#StreamingDistributionAlreadyExists":throw await Vf(X,G);case"TooManyStreamingDistributionCNAMEs":case"com.amazonaws.cloudfront#TooManyStreamingDistributionCNAMEs":throw await ZD(X,G);case"TooManyStreamingDistributions":case"com.amazonaws.cloudfront#TooManyStreamingDistributions":throw await VD(X,G);case"CachePolicyInUse":case"com.amazonaws.cloudfront#CachePolicyInUse":throw await PF(X,G);case"IllegalDelete":case"com.amazonaws.cloudfront#IllegalDelete":throw await dF(X,G);case"CloudFrontOriginAccessIdentityInUse":case"com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityInUse":throw await NF(X,G);case"NoSuchCloudFrontOriginAccessIdentity":case"com.amazonaws.cloudfront#NoSuchCloudFrontOriginAccessIdentity":throw await Tj(X,G);case"DistributionNotDisabled":case"com.amazonaws.cloudfront#DistributionNotDisabled":throw await _F(X,G);case"FieldLevelEncryptionConfigInUse":case"com.amazonaws.cloudfront#FieldLevelEncryptionConfigInUse":throw await xF(X,G);case"FieldLevelEncryptionProfileInUse":case"com.amazonaws.cloudfront#FieldLevelEncryptionProfileInUse":throw await cF(X,G);case"FunctionInUse":case"com.amazonaws.cloudfront#FunctionInUse":throw await iF(X,G);case"NoSuchFunctionExists":case"com.amazonaws.cloudfront#NoSuchFunctionExists":throw await vj(X,G);case"NoSuchResource":case"com.amazonaws.cloudfront#NoSuchResource":throw await lj(X,G);case"ResourceInUse":case"com.amazonaws.cloudfront#ResourceInUse":throw await Gf(X,G);case"CannotDeleteEntityWhileInUse":case"com.amazonaws.cloudfront#CannotDeleteEntityWhileInUse":throw await LF(X,G);case"EntityNotFound":case"com.amazonaws.cloudfront#EntityNotFound":throw await hF(X,G);case"NoSuchMonitoringSubscription":case"com.amazonaws.cloudfront#NoSuchMonitoringSubscription":throw await gj(X,G);case"NoSuchOriginAccessControl":case"com.amazonaws.cloudfront#NoSuchOriginAccessControl":throw await hj(X,G);case"OriginAccessControlInUse":case"com.amazonaws.cloudfront#OriginAccessControlInUse":throw await ij(X,G);case"OriginRequestPolicyInUse":case"com.amazonaws.cloudfront#OriginRequestPolicyInUse":throw await dj(X,G);case"PublicKeyInUse":case"com.amazonaws.cloudfront#PublicKeyInUse":throw await nj(X,G);case"RealtimeLogConfigInUse":case"com.amazonaws.cloudfront#RealtimeLogConfigInUse":throw await tj(X,G);case"ResponseHeadersPolicyInUse":case"com.amazonaws.cloudfront#ResponseHeadersPolicyInUse":throw await Hf(X,G);case"NoSuchStreamingDistribution":case"com.amazonaws.cloudfront#NoSuchStreamingDistribution":throw await rj(X,G);case"StreamingDistributionNotDisabled":case"com.amazonaws.cloudfront#StreamingDistributionNotDisabled":throw await Qf(X,G);case"NoSuchInvalidation":case"com.amazonaws.cloudfront#NoSuchInvalidation":throw await _j(X,G);case"TestFunctionFailed":case"com.amazonaws.cloudfront#TestFunctionFailed":throw await Yf(X,G);case"CannotChangeImmutablePublicKeyFields":case"com.amazonaws.cloudfront#CannotChangeImmutablePublicKeyFields":throw await wF(X,G);default:let Z=X.body;return AF({output:J,parsedBody:Z.Error,errorCode:H})}},AF=ZV(w),IF=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)},CF=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)},SF=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)},PF=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)},wF=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)},LF=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)},TF=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)},NF=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)},kF=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)},EF=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)},OF=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)},vF=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)},_F=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)},gF=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)},bF=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)},hF=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)},yF=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)},mF=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)},xF=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)},lF=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)},cF=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)},rF=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)},aF=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)},iF=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)},uF=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)},dF=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)},sF=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)},pF=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)},nF=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)},oF=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)},eF=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)},tF=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)},Jj=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)},Gj=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)},Xj=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)},Hj=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)},Zj=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)},Vj=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)},Qj=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)},Yj=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)},zj=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)},Wj=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)},$j=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)},Uj=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)},Kj=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)},Bj=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)},Rj=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)},Mj=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)},qj=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)},Fj=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)},jj=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)},fj=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)},Dj=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)},Aj=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)},Ij=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)},Cj=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)},Sj=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)},Pj=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)},wj=async(J,G)=>{let X=T({}),H=J.body.Error;if(H[$]!=null)X[$]=L(H[$]);let Z=new z6({$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 d8({$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 k6({$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 h4({$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 K8({$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 s8({$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 x4({$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 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 s6({$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 m6({$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 p8({$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 x6({$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 n8({$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 d4({$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 b6({$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 e8({$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 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 W6({$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 l6({$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 U6({$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 c6({$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 t8({$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 q6({$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 r6({$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 l4({$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 j6({$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 a6({$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 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 h6({$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 D6({$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 i6({$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 O4({$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 P6({$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 d6({$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 p6({$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 A6({$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 G4({$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 P4({$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 X4({$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 k4({$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 v4({$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)},Mf=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)},qf=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)},Ff=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)},jf=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)},ff=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)},Df=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)},Af=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)},If=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)},Cf=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)},Sf=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)},Pf=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)},wf=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)},Lf=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)},Tf=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)},Nf=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)},kf=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)},Ef=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)},Of=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 n4({$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 a4({$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 R4({$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 t4({$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 L4({$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 M4({$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 B6({$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 G6({$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 H6({$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 q4({$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 F4({$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 $6({$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 j4({$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 f4({$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 R6({$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 D4({$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 F6({$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 Z6({$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 A4({$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 T4({$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 M6({$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 f6({$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 C6({$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 S6({$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 w6({$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 L6({$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 I4({$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 C4({$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 S4({$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 J6({$metadata:k(J),...X});return N(Z,J.body.Error)};var $D=(J,G)=>{let X=new d2(n6);if(J[u0]!=null)X.c(KD(J[u0],G).n(u0));if(J[S5]!=null)X.c(d2.of(WV,J[S5]).n(S5));return X};var UD=(J,G)=>{return J.filter((X)=>X!=null).map((X)=>{return d2.of(WV,X).n(lG)})},KD=(J,G)=>{let X=new d2(u0);if(J[P5]!=null)X.c(d2.of(jD,String(J[P5])).n(P5));return X.lc(J,"Items","Items",()=>UD(J[C5],G)),X};var BD=(J,G)=>{let X={};if(J[mG]!=null)X[mG]=L(J[mG]);if(J[xG]!=null)X[xG]=L(J[xG]);if(J[yG]!=null)X[yG]=JV(HV(J[yG]));if(J[n6]!=null)X[n6]=RD(J[n6],G);return X},RD=(J,G)=>{let X={};if(J[u0]!=null)X[u0]=qD(J[u0],G);if(J[S5]!=null)X[S5]=L(J[S5]);return X};var MD=(J,G)=>{return(J||[]).filter((X)=>X!=null).map((X)=>{return L(X)})},qD=(J,G)=>{let X={};if(J[P5]!=null)X[P5]=XV(J[P5]);if(J.Items==="")X[C5]=[];else if(J[C5]!=null&&J[C5][lG]!=null)X[C5]=MD(VV(J[C5][lG]),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 S5="CallerReference";var yG="CreateTime";var C5="Items";var n6="InvalidationBatch";var mG="Id";var FD="Location";var $="Message";var u0="Paths";var lG="Path";var P5="Quantity";var xG="Status";var jD="integer";var fD="location";var WV="string",DD='<?xml version="1.0" encoding="UTF-8"?>';class cG extends KV.classBuilder().ep(bH).m(function(J,G,X,H){return[$V(X,this.serialize,this.deserialize),UV(X,J.getEndpointParameterInstructions())]}).s("Cloudfront2020_05_31","CreateInvalidation",{}).n("CloudFrontClient","CreateInvalidationCommand").f(void 0,void 0).ser(YV).de(zV).build(){}import{intro as L5,italic as Y9,log as v1,outro as N1,prompts as z9,runCommand as d0,underline as BV}from"@stacksjs/cli";import{addJumpBox as AD,deleteCdkRemnants as ID,deleteIamUsers as CD,deleteJumpBox as rG,deleteLogGroups as SD,deleteParameterStore as PD,deleteStacksBuckets as wD,deleteStacksFunctions as LD,deleteSubnets as TD,deleteVpcs as ND,getCloudFrontDistributionId as kD,getJumpBoxInstanceId as ED}from"@stacksjs/cloud";import{path as s0}from"@stacksjs/path";import{ExitCode as I1}from"@stacksjs/types";import{loop as OD}from"@stacksjs/utils";function eL1(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)=>{v1.debug("Running `buddy cloud` ...",X);let H=performance.now();if(X.ssh||X.connect){let Z=await ED(),V=await d0(`aws ssm start-session --target ${Z}`,{...X,cwd:s0.projectPath(),stdin:"pipe"});if(V.isErr())await N1("While running the cloud command, there was an issue",{startTime:H,useSeconds:!0},V.error),A1.exit(I1.FatalError);await N1("Exited",{startTime:H,useSeconds:!0}),A1.exit(I1.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 N1("Exited",{startTime:H,useSeconds:!0}),A1.exit(I1.Success);v1.info("Invalidating the CloudFront cache...");let V=new bG,Y={DistributionId:await kD(),InvalidationBatch:{CallerReference:`${Date.now()}`,Paths:{Quantity:1,Items:["/*"]}}},z=new cG(Y);V.send(z).then((W)=>console.log(W),(W)=>console.log(W,W.stack)),await N1("Exited",{startTime:H,useSeconds:!0}),A1.exit(I1.Success)}if(X.diff){let Z=await d0("bunx --bun cdk diff",{cwd:s0.frameworkCloudPath(),stdin:"pipe"});if(Z.isErr())await N1("While running the cloud diff command, there was an issue",{startTime:H,useSeconds:!0},Z.error),A1.exit(I1.FatalError);await N1("Showing diff of the current, undeployed cloud changes",{startTime:H,useSeconds:!0}),console.log(Z.value),A1.exit(I1.Success)}v1.info("Not implemented yet. Read more about `buddy cloud` here: https://stacksjs.org/docs/cloud"),A1.exit(I1.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)=>{v1.debug("Running `buddy cloud:add` ...",X);let H=await L5("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 N1("Exited",{startTime:H,useSeconds:!0}),A1.exit(I1.Success);v1.info("The jump-box is getting added to your cloud resources..."),v1.info("This takes a few moments, please be patient."),await new Promise((Q)=>setTimeout(Q,2000));let V=await AD();if(V.isErr())await N1("While running the cloud:add command, there was an issue",{startTime:H,useSeconds:!0},V.error),A1.exit(I1.FatalError);v1.info(Y9("View the jump-box in the AWS console:")),v1.info(BV("https://us-east-1.console.aws.amazon.com/ec2/home?region=us-east-1#Instances:instanceState=running")),v1.info(Y9("Once it finished initializing, you may SSH into it:")),v1.info(BV("buddy cloud --ssh")),await N1("Your jump-box was added.",{startTime:H,useSeconds:!0}),A1.exit(I1.Success)}v1.info("This functionality is not yet implemented."),A1.exit(I1.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)=>{v1.debug("Running `buddy cloud:remove` ...",X);let H=await L5("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 N1("Exited",{startTime:H,useSeconds:!0}),A1.exit(I1.Success);let Q=await rG();if(Q.isErr())await N1("While removing your jump-box, there was an issue",{startTime:H,useSeconds:!0},Q.error),A1.exit(I1.FatalError);await N1("Your jump-box was removed.",{startTime:H,useSeconds:!0}),A1.exit(I1.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 d0("bunx --bun cdk destroy",{...X,cwd:s0.frameworkCloudPath(),stdin:"inherit"});if(Z.isErr())await N1('While running the cloud:remove ("undeploy") command, there was an issue',{startTime:H,useSeconds:!0},Z.error),A1.exit(I1.FatalError);await d0("buddy cloud:cleanup",{...X,cwd:s0.projectPath(),stdin:"inherit"});try{v1.info("Finalizing the removal of your cloud resources."),v1.info("This will take a few moments..."),await OD(7,async()=>{await d0("buddy cloud:cleanup",{...X,cwd:s0.projectPath(),stdout:"ignore"})}),await N1("Your cloud has been removed",{startTime:H,useSeconds:!0}),A1.exit(I1.Success)}catch(V){await N1("While cleaning up the cloud, there was an issue",{startTime:H,useSeconds:!0},V),A1.exit(I1.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)=>{v1.debug("Running `buddy cloud:optimize-cost` ...",X);let H=await L5("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 N1("Exited",{startTime:H,useSeconds:!0}),A1.exit(I1.Success);await rG(),await N1("Your jump-box was removed & cost optimizations are applied.",{startTime:H,useSeconds:!0}),A1.exit(I1.Success)}await N1("No cost optimization was applied",{startTime:H,useSeconds:!0}),A1.exit(I1.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)=>{v1.debug("Running `buddy cloud:cleanup` ...",X);let H=await L5("buddy cloud:cleanup");v1.info("Cleaning up your cloud resources will take a while to complete. Please be patient."),await new Promise((A)=>setTimeout(A,2000)),v1.info("Removing any jump-boxes...");let Z=await rG();if(Z.isErr()){if(Z.error!=="Jump-box not found")await N1("While removing your jump-box, there was an issue",{startTime:H,useSeconds:!0},Z.error),A1.exit(I1.FatalError)}v1.info("Removing any retained S3 buckets...");let V=await wD();if(V.isErr())await N1("While deleting the retained S3 buckets, there was an issue",{startTime:H,useSeconds:!0},V.error),A1.exit(I1.FatalError);v1.info("Removing any retained Lambda functions...");let Q=await LD();if(Q.isErr()){if(Q.error!=="No stacks functions found")await N1("While deleting the Origin Request Lambda function, there was an issue",{startTime:H,useSeconds:!0},Q.error);A1.exit(I1.FatalError)}v1.info(Q.value),v1.info("Removing any remaining Stacks logs...");let Y=await SD();if(Y.isErr())await N1("While deleting the Stacks log groups, there was an issue",{startTime:H,useSeconds:!0},Y.error),A1.exit(I1.FatalError);v1.info("Removing any stored parameters...");let z=await PD();if(z.isErr())await N1("While deleting the Stacks log groups, there was an issue",{startTime:H,useSeconds:!0},z.error),A1.exit(I1.FatalError);let W=await ND();if(W.isErr())await N1("While deleting the VPCs, there was an issue",{startTime:H,useSeconds:!0},W.error),A1.exit(I1.FatalError);let K=await TD();if(K.isErr())await N1("While deleting the Subnets, there was an issue",{startTime:H,useSeconds:!0},K.error),A1.exit(I1.FatalError);v1.info("Removing any CDK remnants...");let q=await ID();if(q.isErr())await N1("While deleting the Stacks log groups, there was an issue",{startTime:H,useSeconds:!0},q.error),A1.exit(I1.FatalError);v1.info("Removing any IAM users...");let f=await CD();if(f.isErr())await N1("While deleting the Stacks log groups, there was an issue",{startTime:H,useSeconds:!0},f.error),A1.exit(I1.FatalError);await N1("AWS resources have been removed",{startTime:H,useSeconds:!0}),A1.exit(I1.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)=>{v1.debug("Running `buddy cloud:invalidate-cache` ...",X);let H=await L5("buddy cloud:invalidate-cache"),{confirm:Z}=await z9({name:"confirm",type:"confirm",message:"Would you like to invalidate the CloudFront cache?"});if(!Z)await N1("Exited",{startTime:H,useSeconds:!0}),A1.exit(I1.Success);if(v1.info("Invalidating the CloudFront cache..."),X.paths){let V=await d0(`aws cloudfront create-invalidation --distribution-id E1U4Z2E9NJW9J --paths ${X.paths}`,{...X,cwd:s0.projectPath(),stdin:"pipe"});if(V.isErr())await N1("While running the cloud command, there was an issue",{startTime:H,useSeconds:!0},V.error),A1.exit(I1.FatalError);await N1("Exited",{startTime:H,useSeconds:!0}),A1.exit(I1.Success)}v1.info("Not implemented yet. Read more about `buddy cloud` here: https://stacksjs.org/docs/cloud"),A1.exit(I1.Success)}),J.command("cloud:diff",G.diff).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{v1.debug("Running `buddy cloud:diff` ...",X);let H=await L5("buddy cloud:diff"),Z=await d0("bunx --bun cdk diff",{cwd:s0.frameworkCloudPath(),stdin:"pipe"});if(Z.isErr())await N1("While running the cloud diff command, there was an issue",{startTime:H,useSeconds:!0},Z.error),A1.exit(I1.FatalError);await N1("Showing diff of the current, undeployed cloud changes",{startTime:H,useSeconds:!0}),console.log(Z.value),A1.exit(I1.Success)}),J.on("cloud:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),A1.exit(1)})}import vD from"process";import{runCommit as _D}from"@stacksjs/actions";import{log as gD}from"@stacksjs/logging";function HT1(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)=>{gD.debug("Running `buddy commit` ...",X),await _D(X)}),J.on("commit:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),vD.exit(1)})}import Z0 from"process";import{log as aG,outro as RV,runCommand as bD}from"@stacksjs/cli";import{path as hD}from"@stacksjs/path";import{ExitCode as W9}from"@stacksjs/types";function WT1(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(aG.debug("Running `buddy configure` ...",X),X?.aws)await MV(X),Z0.exit(W9.Success);aG.info("Not implemented yet. Please use the --aws flag to configure AWS."),Z0.exit(W9.Success)}),J.command("configure:aws",G.aws).option("-p, --project [project]",G.project,{default:!1}).option("--profile",G.profile,{default:Z0.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)=>{aG.debug("Running `buddy configure:aws` ...",X),await MV(X),Z0.exit(W9.Success)}),J.on("configure:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),Z0.exit(W9.FatalError)})}async function MV(J){let G=performance.now(),X=J?.accessKeyId??Z0.env.AWS_ACCESS_KEY_ID,H=J?.secretAccessKey??Z0.env.AWS_SECRET_ACCESS_KEY,Z="us-east-1",V=J?.output??"json",Q=Z0.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 bD(Y,{cwd:hD.projectPath(),stdin:"pipe",input:z});if(W.isErr())await RV("While running the cloud command, there was an issue",{startTime:G,useSeconds:!0},W.error),Z0.exit(W9.FatalError);if(J?.quiet)return;await RV("Exited",{startTime:G,useSeconds:!0})}import V0 from"process";import{runAction as yD}from"@stacksjs/actions";import{bold as mD,cyan as xD,dim as lD,intro as cD,log as t1,runCommand as $9}from"@stacksjs/cli";import{Action as rD}from"@stacksjs/enums";import{resolve as aD}from"@stacksjs/path";import{isFolder as iD}from"@stacksjs/storage";import{ExitCode as T5}from"@stacksjs/types";import{useOnline as uD}from"@stacksjs/utils";function fT1(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 cD("stacks new");X=X??H.name;let V=aD(V0.cwd(),X);dD(V),sD();let Q=await pD(X,V,H);if(Q.isErr())t1.error(Q.error),V0.exit(T5.FatalError);if(await nD(V,H),await oD(V,H),Z){let Y=performance.now()-Z;t1.success(lD(`[${Y.toFixed(2)}ms] Completed`))}t1.info(mD("Welcome to the Stacks Framework! \u269B\uFE0F")),t1.info("To learn more, visit https://stacksjs.org"),V0.exit(T5.Success)}),J.on("new:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),V0.exit(1)})}function dD(J){if(iD(J))t1.error(`Path ${J} already exists`),V0.exit(T5.FatalError)}function sD(){if(!uD())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."),V0.exit(T5.FatalError)}async function pD(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 ${xD(G)}`),H}async function nD(J,G){t1.info("Ensuring your environment is ready..."),await $9("pkgx --update ",{...G,cwd:J}),t1.success("Environment is ready")}async function oD(J,G){t1.info("Installing & setting up Stacks");let X=await $9("bun install",{...G,cwd:J});if(X?.isErr())t1.error(X.error),V0.exit();if(X=await $9("cp .env.example .env",{...G,cwd:J}),X?.isErr())t1.error(X.error),V0.exit(T5.FatalError);if(await yD(rD.KeyGenerate,{...G,cwd:J}),X=await $9("git init",{...G,cwd:J}),X.isErr())t1.error(X.error),V0.exit(T5.FatalError);t1.success("Installed & set-up \uD83D\uDE80")}var{$:qV}=globalThis.Bun;import Q0 from"process";import{runAction as eD}from"@stacksjs/actions";import{intro as tD,italic as U9,log as P1,outro as o6,prompts as JA,runCommand as FV}from"@stacksjs/cli";import{app as GA}from"@stacksjs/config";import{addDomain as XA,hasUserDomainBeenAddedToCloud as HA}from"@stacksjs/dns";import{Action as ZA}from"@stacksjs/enums";import{path as VA}from"@stacksjs/path";import{ExitCode as C0}from"@stacksjs/types";function kT1(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)=>{P1.debug("Running `buddy deploy` ...",H);let Z=await tD("buddy deploy"),V=H.domain||GA.url;if((H.prod||X==="production"||X==="prod")&&!H.yes)await QA();if(!V)P1.info("No domain found in your .env or ./config/app.ts"),P1.info("Please ensure your domain is properly configured."),P1.info("For more info, check out the docs or join our Discord."),Q0.exit(C0.FatalError);P1.info(`Deploying to ${U9(V)}`),await zA(),await WA(),H.domain=await YA(V,H,Z);let Q=await eD(ZA.Deploy,H);if(Q.isErr())await o6("While running the `buddy deploy`, there was an issue",{startTime:Z,useSeconds:!0},Q.error),Q0.exit(C0.FatalError);await o6("Project deployed.",{startTime:Z,useSeconds:!0})}),J.on("deploy:*",()=>{P1.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),Q0.exit(1)})}async function QA(){let{confirmed:J}=await JA({type:"confirm",name:"confirmed",message:"Are you sure you want to deploy to production?"});if(!J)P1.info("Aborting deployment..."),Q0.exit(C0.InvalidArgument)}async function YA(J,G,X){if(P1.debug("Configuring domain...",J),!J)P1.info("We could not identify a domain to deploy to."),P1.warn("Please set your .env or ./config/app.ts properly."),P1.info("Alternatively, specify a domain to deploy via the `--domain` flag."),console.log(""),P1.info(" \u27A1\uFE0F Example: `buddy deploy --domain example.com`"),console.log(""),Q0.exit(C0.FatalError);if(J.includes("localhost"))P1.info("You are deploying to a local environment."),P1.warn("Please set your .env or ./config/app.ts properly. The domain we are deploying cannot be a `localhost` domain."),P1.info("Alternatively, specify a domain to deploy via the `--domain` flag."),console.log(""),P1.info(" \u27A1\uFE0F Example: `buddy deploy --domain example.com`"),console.log(""),Q0.exit(C0.FatalError);if(await HA(J))return P1.info("Domain is properly configured"),P1.info("Your cloud is deploying..."),P1.info(`${U9("This may take a while...")}`),J;console.log(""),P1.info(` \uD83D\uDC4B It appears to be your first ${U9(J)} deployment.`),console.log(""),P1.info(U9("Let\u2019s ensure it is all connected properly.")),P1.info(U9("One moment...")),console.log("");let H=await XA({...G,deploy:!0,startTime:X});if(H.isErr())await o6("While running the `buddy deploy`, there was an issue",{startTime:X,useSeconds:!0},H.error),Q0.exit(C0.FatalError);await o6("Added your domain.",{startTime:X,useSeconds:!0}),Q0.exit(C0.Success)}async function zA(){if(P1.info("Ensuring AWS is configured..."),(await FV("buddy configure:aws",{silent:!0})).isErr())P1.error("AWS is not configured properly.",{shouldExit:!1}),P1.error("Please run `buddy configure:aws` to set up your AWS credentials.");P1.success("AWS is configured")}async function WA(){try{return P1.info("Ensuring AWS is bootstrapped..."),await FV("aws cloudformation describe-stacks --stack-name stacks-toolkit",{silent:!0}),P1.success("AWS is bootstrapped"),!0}catch(J){P1.debug(`Not yet bootstrapped. Failed with code ${J.exitCode}`),P1.debug(J.stdout.toString()),P1.debug(J.stderr.toString()),P1.info("AWS is not bootstrapped yet"),P1.info("Bootstrapping. This may take a few moments...");try{qV.cwd(VA.frameworkCloudPath());let G=await qV`bun run bootstrap`;return console.log(G),!0}catch(G){P1.error("Failed to bootstrap AWS"),console.error(G),Q0.exit(C0.FatalError)}}}import s2 from"process";import{runAction as sG,runApiDevServer as e6,runComponentsDevServer as iG,runDashboardDevServer as uG,runDesktopDevServer as $A,runDocsDevServer as dG,runFrontendDevServer as jV,runSystemTrayDevServer as fV}from"@stacksjs/actions";import{intro as t6,log as x2,outro as p0,prompts as UA,runCommand as KA}from"@stacksjs/cli";import{Action as pG}from"@stacksjs/enums";import{libsPath as BA}from"@stacksjs/path";import{ExitCode as N5}from"@stacksjs/types";function yT1(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)=>{x2.debug("Running `buddy dev [server]` ...",H);let Z=await t6("buddy dev");switch(X){case"frontend":await jV(H);break;case"api":await e6(H);break;case"components":await iG(H);break;case"dashboard":await uG(H);break;case"desktop":await $A(H);break;case"system-tray":await fV(H);break;case"docs":await dG(H);break;default:}if(MA(H)){let Q=(await UA({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 iG(H);else if(Q==="api")await e6(H);else if(Q==="dashboard")await uG(H);else if(Q==="docs")await dG(H);else x2.error("Invalid option during interactive mode"),s2.exit(N5.InvalidArgument)}else{if(H.components)await iG(H);if(H.docs)await dG(H);else if(H.api)await e6(H)}await RA(H),p0("Exited",{startTime:Z,useSeconds:!0}),s2.exit(N5.Success)}),J.command("dev:components",G.components).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{x2.debug("Running `buddy dev:components` ...",X);let H=await t6("buddy dev:components"),Z=await KA("bun run dev",{cwd:BA("components/vue")});if(X.verbose)x2.info("buddy dev:components result",Z);if(Z.isErr())await p0("While running the dev:components command, there was an issue",{startTime:H,useSeconds:!0},Z.error),s2.exit();console.log(""),await p0("Exited",{startTime:H,useSeconds:!0}),s2.exit(N5.Success)}),J.command("dev:docs",G.docs).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{x2.debug("Running `buddy dev:docs` ...",X);let H=await t6("buddy dev:docs"),Z=await sG(pG.DevDocs,X);if(Z.isErr())await p0("While running the dev:docs command, there was an issue",{startTime:H,useSeconds:!0},Z.error),s2.exit();console.log(""),await p0("Exited",{startTime:H,useSeconds:!0}),s2.exit(N5.Success)}),J.command("dev:desktop",G.desktop).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{x2.debug("Running `buddy dev:desktop` ...",X);let H=await t6("buddy dev:desktop"),Z=await sG(pG.DevDesktop,X);if(Z.isErr())await p0("While running the dev:desktop command, there was an issue",{startTime:H,useSeconds:!0},Z.error),s2.exit();console.log(""),await p0("Exited",{startTime:H,useSeconds:!0}),s2.exit(N5.Success)}),J.command("dev:api",G.api).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{x2.debug("Running `buddy dev:api` ...",X),await e6(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)=>{x2.debug("Running `buddy dev:frontend` ...",X),await jV(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)=>{x2.debug("Running `buddy dev:dashboard` ...",X),await uG(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)=>{x2.debug("Running `buddy dev:system-tray` ...",X),await fV(X)}),J.on("dev:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),s2.exit(1)})}async function RA(J){let G=await sG(pG.Dev,J);if(G.isErr())x2.error("While running the dev command, there was an issue",G.error),s2.exit(N5.InvalidArgument)}function MA(J){return J.interactive}import DV from"process";import{log as qA,runCommand as FA}from"@stacksjs/cli";import{config as jA}from"@stacksjs/config";import{ExitCode as fA}from"@stacksjs/types";function aT1(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)=>{qA.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 FA(`dog ${X||jA.app.url} ${Z}`),DV.exit(fA.Success)}),J.on("dns:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),DV.exit(1)})}import Y0 from"process";import{runAction as AV}from"@stacksjs/actions";import{bgCyan as DA,bold as AA,intro as nG,italic as n0,log as JJ,outro as S0,prompts as IV}from"@stacksjs/cli";import{config as CV}from"@stacksjs/config";import{addDomain as IA}from"@stacksjs/dns";import{Action as SV}from"@stacksjs/enums";import{ExitCode as P0}from"@stacksjs/types";function tT1(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=CV.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)=>{JJ.debug("Running `buddy domains:purchase <domain>` ...",Z),Z.domain=H;let V=await nG("buddy domains:purchase"),Q=await AV(SV.DomainsPurchase,Z);if(Q.isErr())await S0("While running the domains:purchase command, there was an issue",{startTime:V,useSeconds:!0},Q.error),Y0.exit(P0.FatalError);let{confirm:Y}=await IV({name:"confirm",type:"confirm",message:`Would you like to set ${H} as your APP_URL?`});if(!Y)await S0(`Alrighty! ${n0(H)} was added to your account.`,{startTime:V,useSeconds:!0,type:"success"}),JJ.info(`Please note, you may need to validate your email address. Check your ${n0(Z.registrantEmail)} inbox.`),Y0.exit(P0.Success);let{writeEnv:z}=await import("./chunk-746p83dw.js");z("APP_URL",H);let W=`Great! ${n0(H)} was added to your account.`;W+=`\n\nAnd your APP_URL has been set to ${n0(H)}.
|
|
22
|
-
\nPlease note, this change has not been deployed yet.
|
|
23
|
-
\nThe next time you run ${DA(n0(AA(" buddy deploy ")))}, your app will deploy to ${n0(H)}.
|
|
24
|
-
\n${n0("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 S0(W,{startTime:V,useSeconds:!0,type:"info"}),Y0.exit(P0.Success)}),J.command("domains:add <domain>",G.add).option("--verbose",G.verbose,{default:!1}).action(async(H)=>{JJ.debug("Running `buddy domains:add <domain>` ...",H);let Z=await nG("buddy domains:add"),V=await IA({...H,startTime:Z});if(V.isErr())await S0("While running the `buddy deploy`, there was an issue",{startTime:Z,useSeconds:!0},V.error),Y0.exit(P0.FatalError);await S0("Added your domain.",{startTime:Z,useSeconds:!0}),Y0.exit(P0.Success)}),J.command("domains:remove <domain>",G.remove).option("--yes",G.skip,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(H)=>{JJ.debug("Running `buddy domains:remove <domain>` ...",H);let Z=H.domain||CV.app.url,V={...H,domain:Z},Q=await nG("buddy domains:remove");if(!V.yes){let{confirm:z}=await IV({name:"confirm",type:"confirm",message:`Are you sure you want to remove ${Z}?`});if(!z)await S0("Cancelled the domains:remove command",{startTime:Q,useSeconds:!0,type:"info"}),Y0.exit(P0.Success)}let Y=await AV(SV.DomainsRemove,V);if(Y.isErr())await S0("While running the domains:remove command, there was an issue",{startTime:Q,useSeconds:!0},Y.error),Y0.exit(P0.FatalError);await S0("Removed your domain DNS records.",{startTime:Q,useSeconds:!0}),Y0.exit(P0.Success)}),J.on("domains:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),Y0.exit(1)})}import oG from"process";import{runAction as CA}from"@stacksjs/actions";import{intro as SA,log as PA,outro as PV}from"@stacksjs/cli";import{Action as wA}from"@stacksjs/enums";import{ExitCode as wV}from"@stacksjs/types";function QN1(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)=>{PA.debug("Running `buddy fresh` ...",X);let H=await SA("buddy fresh"),Z=await CA(wA.Fresh,{...X,stdout:"inherit"});if(Z.isErr())await PV("While running `buddy fresh`, there was an issue",{startTime:H,useSeconds:!0},Z.error),oG.exit(wV.FatalError);await PV("Freshly reinstalled your dependencies",{startTime:H,useSeconds:!0}),oG.exit(wV.Success)}),J.on("fresh:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),oG.exit(1)})}import VH from"process";import{generateComponentMeta as KS1,generateCoreSymlink as BS1,generateIdeHelpers as RS1,generateLibEntries as MS1,generateOpenApiSpec as qS1,generatePkgxConfig as FS1,generateTypes as jS1,generateVsCodeCustomData as fS1,generateWebTypes as DS1,invoke as AS1}from"@stacksjs/actions";import{intro as Aq,log as h2,outro as Iq}from"@stacksjs/cli";import{bold as Ab1,dim as Ib1,green as Cb1,italic as Sb1,log as Pb1}from"@stacksjs/cli";import{path as Lb1}from"@stacksjs/path";import{fs as Nb1,glob as kb1}from"@stacksjs/storage";var Gq=u2(SX(),1),Xq=u2(lJ(),1),Hq=u2(x9(),1);import{italic as D0,log as y1}from"@stacksjs/cli";import{handleError as XH}from"@stacksjs/error-handling";import{path as E1}from"@stacksjs/path";import{fs as n1,globSync as X0}from"@stacksjs/storage";var yC1=new Set([".","!","?"]),gb1=new Set([...yC1,":",'"',"\'","\u201D"]);var mC1=/([\p{Ll}\d])(\p{Lu})/gu,xC1=/(\p{Lu})(\p{Lu}\p{Ll})/gu;var lC1=/[^\p{L}\d]+/giu,Zq="$1\0$2",Vq="";function cC1(J){let G=J.trim();G=G.replace(mC1,Zq).replace(xC1,Zq),G=G.replace(lC1,"\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 Qq(J,G){let[X,H,Z]=zq(J,G);return X+H.map(Yq(G?.locale)).join(G?.delimiter??" ")+Z}function J9(J,G){let[X,H,Z]=zq(J,G),V=Yq(G?.locale),Q=rC1(G?.locale),Y=G?.mergeAmbiguousCharacters?aC1(V,Q):iC1(V,Q);return X+H.map(Y).join(G?.delimiter??"")+Z}function P2(J,G){return Qq(J,{delimiter:"_",...G})}function Yq(J){return J===!1?(G)=>G.toLowerCase():(G)=>G.toLocaleLowerCase(J)}function rC1(J){return J===!1?(G)=>G.toUpperCase():(G)=>G.toLocaleUpperCase(J)}function aC1(J,G){return(X)=>`${G(X[0])}${J(X.slice(1))}`}function iC1(J,G){return(X,H)=>{let Z=X[0];return(H>0&&Z>="0"&&Z<="9"?`_${Z}`:G(Z))+J(X.slice(1))}}function zq(J,G={}){let X=G.split??cC1,H=G.prefixCharacters??Vq,Z=G.suffixCharacters??Vq,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 JH=[],GH=[],$q={},o9={},e9={};function Uq(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 uC1(J,...G){return J.replace(/\$(\d{1,2})/g,(X,H)=>G[Number(H)]||"")}function dC1(J,G){return J.replace(G[0],(...X)=>{let H=uC1(G[1],...X);if(X[0]==="")return FG(J[X[X.length-2]-1],H);return FG(X[0],H)})}function Kq(J,G,X){if(!J.length||$q[J])return G;for(let H=X.length-1;H>=0;H--){let Z=X[H];if(Z[0].test(G))return dC1(G,Z)}return G}function Bq(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 Kq(Z,H,X)}}function Rq(J,G,X){return(H)=>{let Z=H.toLowerCase();if(G[Z])return!0;if(J[Z])return!1;return Kq(Z,Z,X)===Z}}var J2=(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?J2.singular(J):J2.plural(J);return H?`${X} ${Z}`:Z},jG=(J)=>{return J2.singular(J)},G9=(J,G=2)=>{return J2(J,{count:G})};J2.plural=Bq(e9,o9,JH);J2.isPlural=Rq(e9,o9,JH);J2.singular=Bq(o9,e9,GH);J2.isSingular=Rq(o9,e9,GH);J2.addPluralRule=(J,G)=>{JH.push([Uq(J),G])};J2.addSingularRule=(J,G)=>{GH.push([Uq(J),G])};J2.addUncountableRule=(J)=>{if(typeof J==="string"){$q[J.toLowerCase()]=!0;return}J2.addPluralRule(J,"$0"),J2.addSingularRule(J,"$0")};J2.addIrregularRule=(J,G)=>{let X=G.toLowerCase(),H=J.toLowerCase();e9[H]=X,o9[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])=>J2.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])=>J2.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])=>J2.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(J2.addUncountableRule);var lb1=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"}`),cb1=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 nC1}from"@stacksjs/validation";function D2(J,G){if(J.name)return J.name;return E1.basename(G).replace(/\.ts$/,"")}function b0(J,G){if(J.table)return J.table;return P2(G9(D2(J,G)))}function oC1(J,G){let X=[J,G];return X.sort(),X[0]=jG(X[0]||""),X.join("_")}function eC1(J,G){return G in J}async function jq(J,G){let X=["hasOne","belongsTo","hasMany","belongsToMany","hasOneThrough"],H=[];for(let Z of X)if(eC1(J,Z))for(let V of J[Z]||[]){let Q=V.model,Y;if(nC1(V))Q=V;let z=E1.userModelsPath(`${Q}.ts`),W=E1.storagePath(`framework/database/models/generated/${Q}.ts`);if(n1.existsSync(z))Y=(await import(z)).default;else Y=(await import(W)).default;let K=b0(Y,z),q=D2(Y,z),f=G.toLowerCase(),A=q.toLowerCase();H.push({relationship:Z,model:Q,table:K,foreignKey:V.foreignKey||`${f}_id`,modelKey:`${A}_id`,relationName:V.relationName||"",throughModel:V.through||"",throughForeignKey:V.throughForeignKey||"",pivotTable:V?.pivotTable||oC1(G9(f),G9(Y.table||""))})}return H}function tC1(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 JS1(J){let G=/One/;if(/Many/.test(J))return"many";if(G.test(J))return"one";return""}async function Mq(J,G){let X=[];if("belongsToMany"in J){let H=J.belongsToMany||[];for(let Z of H){let Q=(await import(E1.userModelsPath(`${Z}.ts`))).default,Y=D2(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 fq(J){let G=X0([E1.userModelsPath("*.ts")],{absolute:!0}),X=[];for(let H=0;H<G.length;H++){let Z=G[H],V=await import(Z);if(J===V.default.name)continue;let Q=D2(V,Z),Y=await jq(V.default,Q);if(!Y.length)continue;let z=Y.find((W)=>W.model===J);if(z)X.push(z)}return X}function GS1(J){if(J===void 0)return[];return Object.keys(J).filter((G)=>{if(J===void 0)return!1;return J[G]?.hidden===!0})}function XS1(J,G){if(J===void 0)return["stripe_id","two_factor_secret","public_key"];let X=G.map((H)=>H.foreignKey);return[...Object.keys(J).filter((H)=>{if(J===void 0)return!1;return J[H]?.fillable===!0}).map((H)=>P2(H)),"stripe_id","public_key","two_factor_secret",...X]}async function HS1(){let J=X0([E1.userModelsPath("*.ts")],{absolute:!0}),G=X0([E1.storagePath("framework/database/models/generated/*.ts")],{absolute:!0}),X="export type ModelNames = ";for(let V=0;V<J.length;V++){let Q=J[V],Y=(await import(Q)).default,z=D2(Y,Q);if(X+=`'${z}'`,V<J.length-1)X+=" | "}X+=" | ";for(let V=0;V<G.length;V++){let Q=G[V],Y=(await import(Q)).default,z=D2(Y,Q);if(X+=`'${z}'`,V<G.length-1)X+=" | "}let H=E1.dirname(E1.typesPath("src/model-names.ts"));await n1.promises.mkdir(H,{recursive:!0});let Z=E1.typesPath("src/model-names.ts");await n1.promises.writeFile(Z,X,"utf8")}async function ZS1(){let J=X0([E1.userModelsPath("*.ts")],{absolute:!0}),G=Bun.file(E1.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,A=D2(f,q),C=f?.traits?.useTimestamps??f?.traits?.timestampable??!0,l=f?.traits?.useSoftDeletes??f?.traits?.softDeletable??!1,O=await ZH(f,q);z+=" id: number\n",W+="public id = 1\n",Y+=" get(key: 'id'): number\n";let v={};for(let Y1 of O){let w1=Y1.fieldArray?.entity==="enum"?"string[]":Y1.fieldArray?.entity,L1="''";if(Y1.fieldArray?.entity==="boolean")L1=!1;if(Y1.fieldArray?.entity==="number")L1=0;let a=P2(Y1.field);if(typeof w1==="string"){if(v[w1])v[w1].push(`'${a}'`);else v[w1]=[`'${a}'`];z+=` ${P2(Y1.field)}: ${w1}\n `,W+=`public ${a} = ${L1}\n`}}for(let[Y1,w1]of Object.entries(v)){let L1=w1.join(" | ");Y+=` get(key: ${L1}): ${Y1}\n`}let h=await fq(A);for(let Y1 of h)z+=` ${Y1.foreignKey}: number\n `,Y+=` get(key: '${Y1.foreignKey}'): string \n`,W+=`public ${Y1.foreignKey} = 0\n`;if(C)W+=`public created_at = new Date
|
|
30
|
-
public updated_at = new Date
|
|
31
|
-
`;if(l)W+=`
|
|
32
|
-
public deleted_at = ''
|
|
33
|
-
`;z+=`created_at?: Date
|
|
34
|
-
updated_at?: Date
|
|
35
|
-
deleted_at?: Date`;let U1=Bun.file(E1.frameworkPath(`requests/${A}Request.ts`));if(X=`${A}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 e=`export interface ${A}RequestType extends Request {
|
|
41
|
-
validate(attributes?: CustomAttributes): void
|
|
42
|
-
${Y}
|
|
43
|
-
all(): RequestData${A}
|
|
44
|
-
${z}
|
|
45
|
-
}\n\n`;Z+=`interface RequestData${A} {
|
|
46
|
-
${z}
|
|
47
|
-
}\n`,K+=`interface RequestData${A} {
|
|
48
|
-
${z}
|
|
49
|
-
}\n`,Z+=e,K+=`export class ${A}Request extends Request<RequestData${A}> implements ${A}RequestType {
|
|
50
|
-
${W}
|
|
51
|
-
public async validate(attributes?: CustomAttributes): Promise<void> {
|
|
52
|
-
if (attributes === undefined || attributes === null) {
|
|
53
|
-
await validateField('${A}', this.all())
|
|
54
|
-
} else {
|
|
55
|
-
await customValidate(attributes, this.all())
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export const request = new ${A}Request()
|
|
62
|
-
`,U1.writer().write(K)}Z+=`export type ModelRequest = ${H}`,G.writer().write(Z)}async function HH(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=E1.builtUserActionsPath(`src/${Y}`);if(n1.existsSync(z))return;Bun.file(z).writer().write(V)}async function ZH(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],A=null,C=!1;if(f)A=f||null,C=f.unique||!1;return{field:K,default:A,unique:C,fieldArray:VS1(Z[q]??"")}})}function VS1(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 qq(J){let X=Bun.file(E1.frameworkPath("orm/routes.ts")).writer(),H="import { route } from '@stacksjs/router'\n\n\n";for(let Z of J){y1.info(`Generating API Routes for: ${D0(Z)}`);let V="",Q=(await import(Z)).default,Y=D2(Q,Z),z=b0(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 HH(f,Y);let A=f.charAt(0).toUpperCase()+f.slice(1);if(f==="index")H+=`route.get('${K}', '${Y}${A}OrmAction').middleware(['Api'])\n\n`;if(f==="show")H+=`route.get('${K}/{id}', '${Y}${A}OrmAction').middleware(['Api'])\n\n`;if(f==="store")H+=`route.post('${K}', '${Y}${A}OrmAction').middleware(['Api'])\n\n`;if(f==="update")H+=`route.patch('${K}/{id}', '${Y}${A}OrmAction').middleware(['Api'])\n\n`;if(f==="destroy")H+=`route.delete('${K}/{id}', '${Y}${A}OrmAction').middleware(['Api'])\n\n`}}}else if(typeof q==="object"){for(let f in q)if(Object.prototype.hasOwnProperty.call(q,f)){let A=q[f];if(await HH(f,Y,A),typeof A!=="string")throw new TypeError(`Invalid route path for ${f}`);let C=`${A}.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 HH(q,Y);let f=q.charAt(0).toUpperCase()+q.slice(1),A=E1.builtUserActionsPath(`src/${Y}${f}OrmAction.ts`,{relative:!0});if(q==="index")H+=`route.get('${W}', '${A}').middleware(['Api'])\n\n`;if(q==="show")H+=`route.get('${W}/{id}', '${A}').middleware(['Api'])\n\n`;if(q==="store")H+=`route.post('${W}', '${A}').middleware(['Api'])\n\n`;if(q==="update")H+=`route.patch('${W}/{id}', '${A}').middleware(['Api'])\n\n`;if(q==="destroy")H+=`route.delete('${W}/{id}', '${A}').middleware(['Api'])\n\n`}}}}X.write(H),await X.end()}async function QS1(J){let G=E1.frameworkPath("orm/src/types.ts");if(n1.existsSync(G))await n1.promises.unlink(G);if(J){let H=E1.frameworkPath(`orm/src/models/${J}.ts`);if(n1.existsSync(H))await n1.promises.unlink(H);return}let X=X0([E1.frameworkPath("orm/src/models/*.ts")],{absolute:!0});await Promise.all(X.map(async(H)=>{if(n1.existsSync(H))y1.info(`Deleting Model: ${D0(H)}`),await n1.promises.unlink(H),y1.success(`Deleted Model: ${D0(H)}`)}))}async function YS1(){let J=E1.corePath("types/src/model-names.ts");if(n1.existsSync(J))await n1.promises.unlink(J)}async function zS1(J){let G=E1.frameworkPath("types/requests.d.ts");if(n1.existsSync(G))await n1.promises.unlink(G);if(J){let H=E1.frameworkPath(`requests/${J}.ts`);if(n1.existsSync(H))await n1.promises.unlink(H);return}let X=X0([E1.frameworkPath("requests/*.ts")],{absolute:!0});for(let H of X)if(n1.existsSync(H))await n1.promises.unlink(H)}async function WS1(){let J=E1.frameworkPath("orm/routes.ts");if(n1.existsSync(J))await n1.promises.unlink(J)}async function $S1(){let J=X0([E1.userModelsPath("*.ts")],{absolute:!0}),G=X0([E1.storagePath("framework/database/models/generated/*.ts")],{absolute:!0}),X="";for(let Q of J){let Y=(await import(Q)).default,z=b0(Y,Q),W=D2(Y,Q),q=`${z.split("_").map((f)=>f.charAt(0).toUpperCase()+f.slice(1)).join("")}`;X+=`import type { ${q}Table } from '../src/models/${W}'\n`}for(let Q of G){let Y=(await import(Q)).default,z=b0(Y,Q),W=D2(Y,Q),q=`${z.split("_").map((f)=>f.charAt(0).toUpperCase()+f.slice(1)).join("")}`;X+=`import type { ${q}Table } from '../src/models/${W}'\n`}X+="import type { Generated } from 'kysely'\n\n";let H="";for(let Q of J){let Y=(await import(Q)).default,z=D2(Y,Q),W=await Mq(Y,z);for(let K of W)H=`${K.table.split("_").map((f)=>f.charAt(0).toUpperCase()+f.slice(1)).join("")}Table`,X+=`export interface ${H} {
|
|
95
|
-
id?: Generated<number>
|
|
96
|
-
${K.firstForeignKey}: number
|
|
97
|
-
${K.secondForeignKey}: number
|
|
98
|
-
}\n\n`}X+="\nexport interface MigrationsTable {\n",X+="name: string\n timestamp: string \n }",X+="\nexport interface PasskeysTable {\n",X+=" id?: string\n",X+=" cred_public_key: string\n",X+=" user_id: number;\n",X+=" webauthn_user_id: string\n",X+=" counter: number\n",X+=" credential_type: string\n",X+=" device_type: string\n",X+=" backup_eligible: boolean\n",X+=" backup_status: boolean\n",X+=" transports?: string\n",X+=" created_at?: Date\n",X+=" last_used_at: string \n",X+="}\n\n",X+="\nexport interface Database {\n";for(let Q of J){let Y=(await import(Q)).default,z=D2(Y,Q),W=b0(Y,Q),K=await Mq(Y,z);for(let A of K)X+=` ${A.table}: ${H}\n`;let f=`${W.split("_").map((A)=>A.charAt(0).toUpperCase()+A.slice(1)).join("")}Table`;X+=` ${W}: ${f}\n`}for(let Q of G){let Y=(await import(Q)).default,z=b0(Y,Q),K=`${z.split("_").map((q)=>q.charAt(0).toUpperCase()+q.slice(1)).join("")}Table`;X+=` ${z}: ${K}\n`}X+="passkeys: PasskeysTable\n",X+="migrations: MigrationsTable\n",X+="}";let V=Bun.file(E1.frameworkPath("orm/src/types.ts")).writer();V.write(X),await V.end()}async function Fq(J,G,X,H){let Z=J9(J),V=G.toLowerCase(),Q="",Y="",z="{\n",W="",K="",q="",f="",A="",C="",l="",O="",v="",h="",U1="",e="",K1=await jq(X,G);for(let g of K1)A+=`import ${g.model} from './${g.model}'\n\n`;let Y1=X?.traits?.useTimestamps??X?.traits?.timestampable??!0,w1=X?.traits?.useSoftDeletes??X?.traits?.softDeletable??!1,L1=X?.traits?.observe;if(typeof L1==="boolean"){if(L1)O+=`if (model)\n dispatch('${V}:created', model)`,v+=`if (model)\n dispatch('${V}:updated', model)`,h+=`if (model)\n dispatch('${V}:deleted', model)`,U1+="const model = await instance.find(id)",e+="const model = await this.find(this.id)"}if(Array.isArray(L1)){if(L1.includes("create"))O+=`if (model)\n dispatch('${V}:created', model);`;if(L1.includes("update"))v+=`if (model)\n dispatch('${V}:updated', model);`;if(L1.includes("delete"))U1+="const model = await instance.find(id)",h+=`if (model)\n dispatch('${V}:deleted', model);`}for(let g of K1){let{model:y,foreignKey:p,modelKey:n}=g,G1=g.table||"",z1=g.pivotTable,H1=y.toLowerCase(),W1=tC1(g.relationship),R1=JS1(g.relationship);if(W1==="throughType"){let m1=g.relationName||V+y,V2=g.throughModel;if(g.throughModel===void 0)continue;let Q2=g?.throughModel?.toLowerCase(),F2=V2,T2=g.throughForeignKey||`${Q2}_id`;f+=`
|
|
99
|
-
async ${m1}() {
|
|
100
|
-
if (this.id === undefined)
|
|
101
|
-
throw new HttpError(500, 'Relation Error!')
|
|
102
|
-
|
|
103
|
-
const firstModel = await db.selectFrom('${F2}')
|
|
104
|
-
.where('${p}', '=', this.id)
|
|
105
|
-
.selectAll()
|
|
106
|
-
.executeTakeFirst()
|
|
107
|
-
|
|
108
|
-
if (! firstModel)
|
|
109
|
-
throw new HttpError(500, 'Model Relation Not Found!')
|
|
110
|
-
|
|
111
|
-
const finalModel = ${y}
|
|
112
|
-
.where('${T2}', '=', firstModel.id)
|
|
113
|
-
.first()
|
|
114
|
-
|
|
115
|
-
return new ${y}.modelInstance(finalModel)
|
|
116
|
-
}\n\n`}if(W1==="hasType"&&R1==="many"){let m1=g.relationName||G1;f+=`
|
|
117
|
-
async ${m1}() {
|
|
118
|
-
if (this.id === undefined)
|
|
119
|
-
throw new HttpError(500, 'Relation Error!')
|
|
120
|
-
|
|
121
|
-
const results = await db.selectFrom('${G1}')
|
|
122
|
-
.where('${p}', '=', this.id)
|
|
123
|
-
.selectAll()
|
|
124
|
-
.execute()
|
|
125
|
-
|
|
126
|
-
return results
|
|
127
|
-
}\n\n`}if(W1==="hasType"&&R1==="one"){let m1=g.relationName||H1;f+=`
|
|
128
|
-
async ${m1}() {
|
|
129
|
-
if (this.id === undefined)
|
|
130
|
-
throw new HttpError(500, 'Relation Error!')
|
|
131
|
-
|
|
132
|
-
const model = ${y}
|
|
133
|
-
.where('${p}', '=', this.id).first()
|
|
134
|
-
|
|
135
|
-
if (! model)
|
|
136
|
-
throw new HttpError(500, 'Model Relation Not Found!')
|
|
137
|
-
|
|
138
|
-
return model
|
|
139
|
-
}\n\n`}if(W1==="belongsType"&&!R1){let m1=g.relationName||H1;f+=`
|
|
140
|
-
async ${m1}() {
|
|
141
|
-
if (this.${n} === undefined)
|
|
142
|
-
throw new HttpError(500, 'Relation Error!')
|
|
143
|
-
|
|
144
|
-
const model = await ${y}
|
|
145
|
-
.where('id', '=', this.${n})
|
|
146
|
-
.first()
|
|
147
|
-
|
|
148
|
-
if (! model)
|
|
149
|
-
throw new HttpError(500, 'Model Relation Not Found!')
|
|
150
|
-
|
|
151
|
-
return model
|
|
152
|
-
}\n\n`}if(W1==="belongsType"&&R1==="many"){let m1=z1||G1,V2=g.relationName||V+G9(J9(y));f+=`
|
|
153
|
-
async ${V2}() {
|
|
154
|
-
if (this.id === undefined)
|
|
155
|
-
throw new HttpError(500, 'Relation Error!')
|
|
156
|
-
|
|
157
|
-
const results = await db.selectFrom('${m1}')
|
|
158
|
-
.where('${p}', '=', this.id)
|
|
159
|
-
.selectAll()
|
|
160
|
-
.execute()
|
|
161
|
-
|
|
162
|
-
const tableRelationIds = results.map(result => result.${jG(G1)}_id)
|
|
163
|
-
|
|
164
|
-
if (! tableRelationIds.length)
|
|
165
|
-
throw new HttpError(500, 'Relation Error!')
|
|
166
|
-
|
|
167
|
-
const relationResults = await ${y}.whereIn('id', tableRelationIds).get()
|
|
168
|
-
|
|
169
|
-
return relationResults
|
|
170
|
-
}\n\n`}}W+="public id: number | undefined \n ",Y+=`this.id = ${V}?.id\n `;let a=typeof X.traits?.useAuth==="object"&&X.traits.useAuth.useTwoFactor,i=typeof X.traits?.useAuth==="object"&&X.traits.useAuth.usePasskey,_=X.traits?.billable||!1;if(_)l+=` async createStripeUser(options: Stripe.CustomerCreateParams): Promise<Stripe.Response<Stripe.Customer>> {
|
|
171
|
-
const customer = await manageCustomer.createStripeCustomer(this, options)
|
|
172
|
-
|
|
173
|
-
return customer
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
async updateStripeUser(options: Stripe.CustomerUpdateParams): Promise<Stripe.Response<Stripe.Customer>> {
|
|
177
|
-
const customer = await manageCustomer.updateStripeCustomer(this, options)
|
|
178
|
-
|
|
179
|
-
return customer
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
async deleteStripeUser(): Promise<Stripe.Response<Stripe.DeletedCustomer>> {
|
|
183
|
-
const deletedCustomer = await manageCustomer.deleteStripeUser(this)
|
|
184
|
-
return deletedCustomer
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
async createOrGetStripeUser(options: Stripe.CustomerCreateParams): Promise<Stripe.Response<Stripe.Customer>> {
|
|
188
|
-
const customer = await manageCustomer.createOrGetStripeUser(this, options)
|
|
189
|
-
return customer
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
async retrieveStripeUser(): Promise<Stripe.Response<Stripe.Customer>> {
|
|
193
|
-
const customer = await manageCustomer.retrieveStripeUser(this)
|
|
194
|
-
return customer
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
async asStripeUser(): Promise<Stripe.Response<Stripe.Customer>> {
|
|
198
|
-
return await this.retrieveStripeUser()
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
async createOrUpdateStripeUser(options: Stripe.CustomerCreateParams | Stripe.CustomerUpdateParams): Promise<Stripe.Response<Stripe.Customer>> {
|
|
202
|
-
const customer = await manageCustomer.createOrUpdateStripeUser(this, options)
|
|
203
|
-
return customer
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
stripeId(): string {
|
|
207
|
-
return manageCustomer.stripeId(this)
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
hasStripeId(): boolean {
|
|
211
|
-
return manageCustomer.hasStripeId(this)
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
async addPaymentMethod(paymentMethodId: string): Promise<Stripe.Response<Stripe.PaymentMethod>> {
|
|
215
|
-
const paymentMethod = await managePaymentMethod.addPaymentMethod(this, paymentMethodId)
|
|
216
|
-
|
|
217
|
-
return paymentMethod
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
async updatePaymentMethod(paymentMethodId: string, params: Stripe.PaymentMethodUpdateParams): Promise<Stripe.Response<Stripe.PaymentMethod>> {
|
|
221
|
-
const updatedPaymentMethod = await managePaymentMethod.updatePaymentMethod(this, paymentMethodId, params)
|
|
222
|
-
|
|
223
|
-
return updatedPaymentMethod
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
async deletePaymentMethod(paymentMethodId: string): Promise<Stripe.Response<Stripe.PaymentMethod>> {
|
|
227
|
-
const deletedPaymentMethod = await managePaymentMethod.deletePaymentMethod(this, paymentMethodId)
|
|
228
|
-
return deletedPaymentMethod
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
async retrievePaymentMethod(paymentMethod: string): Promise<Stripe.Response<Stripe.PaymentMethod> | null> {
|
|
232
|
-
const defaultPaymentMethod = await managePaymentMethod.retrievePaymentMethod(this, paymentMethod)
|
|
233
|
-
|
|
234
|
-
return defaultPaymentMethod
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
async paymentIntent(options: Stripe.PaymentIntentCreateParams): Promise<Stripe.Response<Stripe.PaymentIntent>> {
|
|
238
|
-
if (!this.hasStripeId()) {
|
|
239
|
-
throw new Error('Customer does not exist in Stripe')
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
const defaultOptions: Stripe.PaymentIntentCreateParams = {
|
|
243
|
-
customer: this.stripeId(),
|
|
244
|
-
currency: 'usd',
|
|
245
|
-
amount: options.amount
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
const mergedOptions = { ...defaultOptions, ...options }
|
|
249
|
-
|
|
250
|
-
return await manageCharge.createPayment(this, mergedOptions.amount, mergedOptions)
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
async syncStripeCustomerDetails(options: StripeCustomerOptions): Promise<Stripe.Response<Stripe.Customer>> {
|
|
254
|
-
const customer = await manageCustomer.syncStripeCustomerDetails(this, options)
|
|
255
|
-
|
|
256
|
-
return customer
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
async isSubscribed(type: string): Promise<boolean> {
|
|
260
|
-
return await manageSubscription.isValid(this, type)
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
async isIncomplete(type: string): Promise<boolean> {
|
|
264
|
-
return await manageSubscription.isIncomplete(this, type)
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
async newSubscriptionInvoice(
|
|
268
|
-
type: string,
|
|
269
|
-
priceId: string,
|
|
270
|
-
options: Partial<Stripe.SubscriptionCreateParams> = {},
|
|
271
|
-
): Promise<{ subscription: Stripe.Subscription, paymentIntent?: Stripe.PaymentIntent }> {
|
|
272
|
-
return await this.newSubscription(type, priceId, { ...options, days_until_due: 15, collection_method: 'send_invoice' })
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
async newSubscription(
|
|
276
|
-
type: string,
|
|
277
|
-
priceId: string,
|
|
278
|
-
options: Partial<Stripe.SubscriptionCreateParams> = {},
|
|
279
|
-
): Promise<{ subscription: Stripe.Subscription, paymentIntent?: Stripe.PaymentIntent }> {
|
|
280
|
-
const subscription = await manageSubscription.create(this, type, priceId, options)
|
|
281
|
-
|
|
282
|
-
const latestInvoice = subscription.latest_invoice as Stripe.Invoice | null
|
|
283
|
-
const paymentIntent = latestInvoice?.payment_intent as Stripe.PaymentIntent | undefined
|
|
284
|
-
|
|
285
|
-
return { subscription, paymentIntent }
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
async checkout(
|
|
289
|
-
priceIds: CheckoutLineItem[],
|
|
290
|
-
options: CheckoutOptions = {},
|
|
291
|
-
): Promise<Stripe.Response<Stripe.Checkout.Session>> {
|
|
292
|
-
const newOptions: Partial<Stripe.Checkout.SessionCreateParams> = {}
|
|
293
|
-
|
|
294
|
-
if (options.enableTax) {
|
|
295
|
-
newOptions.automatic_tax = { enabled: true }
|
|
296
|
-
delete options.enableTax
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
if (options.allowPromotions) {
|
|
300
|
-
newOptions.allow_promotion_codes = true
|
|
301
|
-
delete options.allowPromotions
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
const defaultOptions: Partial<Stripe.Checkout.SessionCreateParams> = {
|
|
305
|
-
mode: 'payment',
|
|
306
|
-
customer: await this.createOrGetStripeUser({}).then(customer => customer.id),
|
|
307
|
-
line_items: priceIds.map((item: CheckoutLineItem) => ({
|
|
308
|
-
price: item.priceId,
|
|
309
|
-
quantity: item.quantity || 1,
|
|
310
|
-
})),
|
|
311
|
-
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
const mergedOptions = { ...defaultOptions, ...newOptions, ...options }
|
|
315
|
-
|
|
316
|
-
return await manageCheckout.create(this, mergedOptions)
|
|
317
|
-
}
|
|
318
|
-
`,W+="public stripe_id: string | undefined\n",Y+=`this.stripe_id = ${V}?.stripe_id\n `;if(a)W+="public two_factor_secret: string | undefined \n",Y+=`this.two_factor_secret = ${V}?.two_factor_secret\n `,C+=`
|
|
319
|
-
async generateTwoFactorForModel() {
|
|
320
|
-
const secret = generateTwoFactorSecret()
|
|
321
|
-
|
|
322
|
-
await this.update({ 'two_factor_secret': secret })
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
verifyTwoFactorCode(code: string): boolean {
|
|
326
|
-
const modelTwoFactorSecret = this.two_factor_secret
|
|
327
|
-
let isValid = false
|
|
328
|
-
|
|
329
|
-
if (typeof modelTwoFactorSecret === 'string') {
|
|
330
|
-
isValid = verifyTwoFactorCode(code, modelTwoFactorSecret)
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
return isValid
|
|
334
|
-
}
|
|
335
|
-
`;if(i)W+="public public_passkey: string | undefined \n",Y+=`this.public_passkey = ${V}?.public_passkey\n `;z+="\nid: this.id,\n";for(let g of H){let y=g.fieldArray?.entity==="enum"?"string[]":g.fieldArray?.entity;Q+=` ${P2(g.field)}?: ${y}\n `,W+=`public ${P2(g.field)}: ${y} | undefined \n `,Y+=`this.${P2(g.field)} = ${V}?.${P2(g.field)}\n `,z+=`${P2(g.field)}: this.${P2(g.field)},\n `,K+=`static where${J9(g.field)}(value: string): ${G}Model {
|
|
336
|
-
const instance = new ${G}Model(null)
|
|
337
|
-
|
|
338
|
-
instance.query = instance.query.where('${g.field}', '=', value)
|
|
339
|
-
|
|
340
|
-
return instance
|
|
341
|
-
} \n\n`,q+=`export async function where${J9(g.field)}(value: ${y}): Promise<${G}Model[]> {
|
|
342
|
-
const query = db.selectFrom('${J}').where('${P2(g.field)}', '=', value)
|
|
343
|
-
const results = await query.execute()
|
|
344
|
-
|
|
345
|
-
return results.map(modelItem => new ${G}Model(modelItem))
|
|
346
|
-
} \n\n`}if(Y1)W+=`
|
|
347
|
-
public created_at: Date | undefined
|
|
348
|
-
public updated_at: Date | undefined
|
|
349
|
-
`,Y+=`
|
|
350
|
-
this.created_at = ${V}?.created_at\n
|
|
351
|
-
this.updated_at = ${V}?.updated_at\n
|
|
352
|
-
`,z+=`
|
|
353
|
-
created_at: this.created_at,\n
|
|
354
|
-
updated_at: this.updated_at,\n
|
|
355
|
-
`;if(w1)W+=`
|
|
356
|
-
public deleted_at: string | undefined
|
|
357
|
-
`,Y+=`
|
|
358
|
-
this.deleted_at = ${V}?.deleted_at\n
|
|
359
|
-
`,z+=`
|
|
360
|
-
deleted_at: this.deleted_at,\n
|
|
361
|
-
`;z+="}";let s=await fq(G);for(let g of s)Q+=` ${g.foreignKey}?: number \n`,W+=`public ${g.foreignKey}: number | undefined \n `,Y+=`this.${g.foreignKey} = ${V}?.${g.foreignKey}\n `;if(a&&J==="users")Q+="two_factor_secret?: string \n";if(i&&J==="users")Q+="public_passkey?: string \n";if(_&&J==="users")Q+="stripe_id?: string \n";if(Y1)Q+=`
|
|
362
|
-
created_at?: Date\n
|
|
363
|
-
updated_at?: Date
|
|
364
|
-
`;Q+=`
|
|
365
|
-
deleted_at?: Date
|
|
366
|
-
`;let B1=JSON.stringify(GS1(X.attributes)),f1=JSON.stringify(XS1(X.attributes,s));return`import type { Generated, Insertable, Selectable, Updateable } from 'kysely'
|
|
367
|
-
import { manageCharge, manageCheckout, manageCustomer, managePaymentMethod, manageSubscription, managePrice, type Stripe } from '@stacksjs/payments'
|
|
368
|
-
import { db, sql } from '@stacksjs/database'
|
|
369
|
-
import type { CheckoutLineItem, CheckoutOptions, StripeCustomerOptions, SubscriptionOptions } from '@stacksjs/types'
|
|
370
|
-
import { HttpError } from '@stacksjs/error-handling'
|
|
371
|
-
import { dispatch } from '@stacksjs/events'
|
|
372
|
-
import { generateTwoFactorSecret } from '@stacksjs/auth'
|
|
373
|
-
import { verifyTwoFactorCode } from '@stacksjs/auth'
|
|
374
|
-
import { cache } from '@stacksjs/cache'
|
|
375
|
-
${A}
|
|
376
|
-
// import { Kysely, MysqlDialect, PostgresDialect } from 'kysely'
|
|
377
|
-
// import { Pool } from 'pg'
|
|
378
|
-
|
|
379
|
-
export interface ${Z}Table {
|
|
380
|
-
id: Generated<number>
|
|
381
|
-
${Q}
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
interface ${G}Response {
|
|
385
|
-
data: ${Z}
|
|
386
|
-
paging: {
|
|
387
|
-
total_records: number
|
|
388
|
-
page: number
|
|
389
|
-
total_pages: number
|
|
390
|
-
}
|
|
391
|
-
next_cursor: number | null
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
export type ${G}Type = Selectable<${Z}Table>
|
|
395
|
-
export type New${G} = Insertable<${Z}Table>
|
|
396
|
-
export type ${G}Update = Updateable<${Z}Table>
|
|
397
|
-
export type ${Z} = ${G}Type[]
|
|
398
|
-
|
|
399
|
-
export type ${G}Column = ${Z}
|
|
400
|
-
export type ${G}Columns = Array<keyof ${Z}>
|
|
401
|
-
|
|
402
|
-
type SortDirection = 'asc' | 'desc'
|
|
403
|
-
interface SortOptions { column: ${G}Type, order: SortDirection }
|
|
404
|
-
// Define a type for the options parameter
|
|
405
|
-
interface QueryOptions {
|
|
406
|
-
sort?: SortOptions
|
|
407
|
-
limit?: number
|
|
408
|
-
offset?: number
|
|
409
|
-
page?: number
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
export class ${G}Model {
|
|
413
|
-
private hidden = ${B1}
|
|
414
|
-
private fillable = ${f1}
|
|
415
|
-
private softDeletes = ${w1}
|
|
416
|
-
protected query: any
|
|
417
|
-
protected hasSelect: boolean
|
|
418
|
-
${W}
|
|
419
|
-
constructor(${V}: Partial<${G}Type> | null) {
|
|
420
|
-
${Y}
|
|
421
|
-
|
|
422
|
-
this.query = db.selectFrom('${J}')
|
|
423
|
-
this.hasSelect = false
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
// Method to find a ${G} by ID
|
|
427
|
-
async find(id: number): Promise<${G}Model | undefined> {
|
|
428
|
-
let query = db.selectFrom('${J}').where('id', '=', id).selectAll()
|
|
429
|
-
|
|
430
|
-
const model = await query.executeTakeFirst()
|
|
431
|
-
|
|
432
|
-
if (!model)
|
|
433
|
-
return undefined
|
|
434
|
-
|
|
435
|
-
cache.getOrSet(\`${V}:\${id}\`, JSON.stringify(model))
|
|
436
|
-
|
|
437
|
-
return this.parseResult(new ${G}Model(model))
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
// Method to find a ${G} by ID
|
|
441
|
-
static async find(id: number): Promise<${G}Model | undefined> {
|
|
442
|
-
let query = db.selectFrom('${J}').where('id', '=', id).selectAll()
|
|
443
|
-
|
|
444
|
-
const instance = new ${G}Model(null)
|
|
445
|
-
|
|
446
|
-
const model = await query.executeTakeFirst()
|
|
447
|
-
|
|
448
|
-
if (!model)
|
|
449
|
-
return undefined
|
|
450
|
-
|
|
451
|
-
cache.getOrSet(\`${V}:\${id}\`, JSON.stringify(model))
|
|
452
|
-
|
|
453
|
-
return instance.parseResult(new ${G}Model(model))
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
static async all(): Promise<${G}Model[]> {
|
|
457
|
-
let query = db.selectFrom('${J}').selectAll()
|
|
458
|
-
|
|
459
|
-
const instance = new ${G}Model(null)
|
|
460
|
-
|
|
461
|
-
if (instance.softDeletes) {
|
|
462
|
-
query = query.where('deleted_at', 'is', null)
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
const results = await query.execute();
|
|
466
|
-
|
|
467
|
-
return results.map(modelItem => instance.parseResult(new ${G}Model(modelItem)));
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
static async findOrFail(id: number): Promise<${G}Model> {
|
|
472
|
-
let query = db.selectFrom('${J}').where('id', '=', id)
|
|
473
|
-
|
|
474
|
-
const instance = new ${G}Model(null)
|
|
475
|
-
|
|
476
|
-
if (instance.softDeletes) {
|
|
477
|
-
query = query.where('deleted_at', 'is', null);
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
query = query.selectAll()
|
|
481
|
-
|
|
482
|
-
const model = await query.executeTakeFirst()
|
|
483
|
-
|
|
484
|
-
if (model === undefined)
|
|
485
|
-
throw new HttpError(404, \`No ${G}Model results for \${id}\`)
|
|
486
|
-
|
|
487
|
-
cache.getOrSet(\`${V}:\${id}\`, JSON.stringify(model))
|
|
488
|
-
|
|
489
|
-
return instance.parseResult(new ${G}Model(model))
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
static async findMany(ids: number[]): Promise<${G}Model[]> {
|
|
493
|
-
let query = db.selectFrom('${J}').where('id', 'in', ids)
|
|
494
|
-
|
|
495
|
-
const instance = new ${G}Model(null)
|
|
496
|
-
|
|
497
|
-
if (instance.softDeletes) {
|
|
498
|
-
query = query.where('deleted_at', 'is', null);
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
query = query.selectAll()
|
|
502
|
-
|
|
503
|
-
const model = await query.execute()
|
|
504
|
-
|
|
505
|
-
return model.map(modelItem => instance.parseResult(new ${G}Model(modelItem)))
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
// Method to get a User by criteria
|
|
509
|
-
static async get(): Promise<${G}Model[]> {
|
|
510
|
-
const instance = new ${G}Model(null)
|
|
511
|
-
|
|
512
|
-
if (instance.hasSelect) {
|
|
513
|
-
if (instance.softDeletes) {
|
|
514
|
-
instance.query = instance.query.where('deleted_at', 'is', null)
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
const model = await instance.query.execute()
|
|
518
|
-
|
|
519
|
-
return model.map((modelItem: ${G}Model) => new ${G}Model(modelItem))
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
if (instance.softDeletes) {
|
|
523
|
-
instance.query = instance.query.where('deleted_at', 'is', null)
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
const model = await instance.query.selectAll().execute()
|
|
527
|
-
|
|
528
|
-
return model.map((modelItem: ${G}Model) => new ${G}Model(modelItem))
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
// Method to get a ${G} by criteria
|
|
533
|
-
async get(): Promise<${G}Model[]> {
|
|
534
|
-
if (this.hasSelect) {
|
|
535
|
-
|
|
536
|
-
if (this.softDeletes) {
|
|
537
|
-
this.query = this.query.where('deleted_at', 'is', null);
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
const model = await this.query.execute()
|
|
541
|
-
|
|
542
|
-
return model.map((modelItem: ${G}Model) => new ${G}Model(modelItem))
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
if (this.softDeletes) {
|
|
546
|
-
this.query = this.query.where('deleted_at', 'is', null);
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
const model = await this.query.selectAll().execute()
|
|
550
|
-
|
|
551
|
-
return model.map((modelItem: ${G}Model) => new ${G}Model(modelItem))
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
static async count(): Promise<number> {
|
|
555
|
-
const instance = new ${G}Model(null)
|
|
556
|
-
|
|
557
|
-
if (instance.softDeletes) {
|
|
558
|
-
instance.query = instance.query.where('deleted_at', 'is', null);
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
const results = await instance.query.selectAll().execute()
|
|
562
|
-
|
|
563
|
-
return results.length
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
async count(): Promise<number> {
|
|
567
|
-
if (this.hasSelect) {
|
|
568
|
-
|
|
569
|
-
if (this.softDeletes) {
|
|
570
|
-
this.query = this.query.where('deleted_at', 'is', null);
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
const results = await this.query.execute()
|
|
574
|
-
|
|
575
|
-
return results.length
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
const results = await this.query.selectAll().execute()
|
|
579
|
-
|
|
580
|
-
return results.length
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
// Method to get all ${J}
|
|
584
|
-
static async paginate(options: QueryOptions = { limit: 10, offset: 0, page: 1 }): Promise<${G}Response> {
|
|
585
|
-
const totalRecordsResult = await db.selectFrom('${J}')
|
|
586
|
-
.select(db.fn.count('id').as('total')) // Use 'id' or another actual column name
|
|
587
|
-
.executeTakeFirst()
|
|
588
|
-
|
|
589
|
-
const totalRecords = Number(totalRecordsResult?.total) || 0
|
|
590
|
-
const totalPages = Math.ceil(totalRecords / (options.limit ?? 10))
|
|
591
|
-
|
|
592
|
-
const ${J}WithExtra = await db.selectFrom('${J}')
|
|
593
|
-
.selectAll()
|
|
594
|
-
.orderBy('id', 'asc') // Assuming 'id' is used for cursor-based pagination
|
|
595
|
-
.limit((options.limit ?? 10) + 1) // Fetch one extra record
|
|
596
|
-
.offset(((options.page ?? 1) - 1) * (options.limit ?? 10)) // Ensure options.page is not undefined
|
|
597
|
-
.execute()
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
let nextCursor = null
|
|
601
|
-
if (${J}WithExtra.length > (options.limit ?? 10)) nextCursor = ${J}WithExtra.pop()?.id ?? null
|
|
602
|
-
|
|
603
|
-
return {
|
|
604
|
-
data: ${J}WithExtra,
|
|
605
|
-
paging: {
|
|
606
|
-
total_records: totalRecords,
|
|
607
|
-
page: options.page || 1,
|
|
608
|
-
total_pages: totalPages,
|
|
609
|
-
},
|
|
610
|
-
next_cursor: nextCursor,
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
// Method to create a new ${V}
|
|
615
|
-
static async create(new${G}: New${G}): Promise<${G}Model> {
|
|
616
|
-
const instance = new ${G}Model(null)
|
|
617
|
-
|
|
618
|
-
const filteredValues = Object.fromEntries(
|
|
619
|
-
Object.entries(new${G}).filter(([key]) => instance.fillable.includes(key)),
|
|
620
|
-
) as New${G}
|
|
621
|
-
|
|
622
|
-
const result = await db.insertInto('${J}')
|
|
623
|
-
.values(filteredValues)
|
|
624
|
-
.executeTakeFirst()
|
|
625
|
-
|
|
626
|
-
const model = await find(Number(result.insertId)) as ${G}Model
|
|
627
|
-
|
|
628
|
-
${O}
|
|
629
|
-
|
|
630
|
-
return model
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
static async forceCreate(new${G}: New${G}): Promise<${G}Model> {
|
|
634
|
-
const result = await db.insertInto('${J}')
|
|
635
|
-
.values(new${G})
|
|
636
|
-
.executeTakeFirst()
|
|
637
|
-
|
|
638
|
-
const model = await find(Number(result.insertId)) as ${G}Model
|
|
639
|
-
|
|
640
|
-
${O}
|
|
641
|
-
|
|
642
|
-
return model
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
// Method to remove a ${G}
|
|
646
|
-
static async remove(id: number): Promise<void> {
|
|
647
|
-
const instance = new ${G}Model(null)
|
|
648
|
-
${U1}
|
|
649
|
-
|
|
650
|
-
if (instance.softDeletes) {
|
|
651
|
-
await db.updateTable('${J}')
|
|
652
|
-
.set({
|
|
653
|
-
deleted_at: sql.raw('CURRENT_TIMESTAMP')
|
|
654
|
-
})
|
|
655
|
-
.where('id', '=', id)
|
|
656
|
-
.execute();
|
|
657
|
-
} else {
|
|
658
|
-
await db.deleteFrom('${J}')
|
|
659
|
-
.where('id', '=', id)
|
|
660
|
-
.execute();
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
${h}
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
where(...args: (string | number | boolean | undefined | null)[]): ${G}Model {
|
|
668
|
-
let column: any
|
|
669
|
-
let operator: any
|
|
670
|
-
let value: any
|
|
671
|
-
|
|
672
|
-
if (args.length === 2) {
|
|
673
|
-
[column, value] = args
|
|
674
|
-
operator = '='
|
|
675
|
-
} else if (args.length === 3) {
|
|
676
|
-
[column, operator, value] = args
|
|
677
|
-
} else {
|
|
678
|
-
throw new HttpError(500, "Invalid number of arguments")
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
this.query = this.query.where(column, operator, value)
|
|
682
|
-
|
|
683
|
-
return this
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
static where(...args: (string | number | boolean | undefined | null)[]): ${G}Model {
|
|
687
|
-
let column: any
|
|
688
|
-
let operator: any
|
|
689
|
-
let value: any
|
|
690
|
-
|
|
691
|
-
const instance = new ${G}Model(null)
|
|
692
|
-
|
|
693
|
-
if (args.length === 2) {
|
|
694
|
-
[column, value] = args
|
|
695
|
-
operator = '='
|
|
696
|
-
} else if (args.length === 3) {
|
|
697
|
-
[column, operator, value] = args
|
|
698
|
-
} else {
|
|
699
|
-
throw new HttpError(500, "Invalid number of arguments")
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
instance.query = instance.query.where(column, operator, value)
|
|
703
|
-
|
|
704
|
-
return instance
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
${K}
|
|
708
|
-
|
|
709
|
-
static whereIn(column: keyof ${G}Type, values: any[]): ${G}Model {
|
|
710
|
-
const instance = new ${G}Model(null)
|
|
711
|
-
|
|
712
|
-
instance.query = instance.query.where(column, 'in', values)
|
|
713
|
-
|
|
714
|
-
return instance
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
async first(): Promise<${G}Model | undefined> {
|
|
718
|
-
const model = await this.query.selectAll().executeTakeFirst()
|
|
719
|
-
|
|
720
|
-
if (! model) {
|
|
721
|
-
return undefined
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
return this.parseResult(new ${G}Model(model))
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
async firstOrFail(): Promise<${G}Model | undefined> {
|
|
728
|
-
const model = await this.query.selectAll().executeTakeFirst()
|
|
729
|
-
|
|
730
|
-
if (model === undefined)
|
|
731
|
-
throw new HttpError(404, 'No ${G}Model results found for query')
|
|
732
|
-
|
|
733
|
-
return this.parseResult(new ${G}Model(model))
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
async exists(): Promise<boolean> {
|
|
737
|
-
const model = await this.query.selectAll().executeTakeFirst()
|
|
738
|
-
|
|
739
|
-
return model !== null || model !== undefined
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
static async first(): Promise<${G}Type | undefined> {
|
|
743
|
-
return await db.selectFrom('${J}')
|
|
744
|
-
.selectAll()
|
|
745
|
-
.executeTakeFirst()
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
async last(): Promise<${G}Type | undefined> {
|
|
749
|
-
return await db.selectFrom('${J}')
|
|
750
|
-
.selectAll()
|
|
751
|
-
.orderBy('id', 'desc')
|
|
752
|
-
.executeTakeFirst()
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
static async last(): Promise<${G}Type | undefined> {
|
|
756
|
-
return await db.selectFrom('${J}').selectAll().orderBy('id', 'desc').executeTakeFirst()
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
static orderBy(column: keyof ${G}Type, order: 'asc' | 'desc'): ${G}Model {
|
|
760
|
-
const instance = new ${G}Model(null)
|
|
761
|
-
|
|
762
|
-
instance.query = instance.query.orderBy(column, order)
|
|
763
|
-
|
|
764
|
-
return instance
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
orderBy(column: keyof ${G}Type, order: 'asc' | 'desc'): ${G}Model {
|
|
768
|
-
this.query = this.query.orderBy(column, order)
|
|
769
|
-
|
|
770
|
-
return this
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
static orderByDesc(column: keyof ${G}Type): ${G}Model {
|
|
774
|
-
const instance = new ${G}Model(null)
|
|
775
|
-
|
|
776
|
-
instance.query = instance.query.orderBy(column, 'desc')
|
|
777
|
-
|
|
778
|
-
return instance
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
orderByDesc(column: keyof ${G}Type): ${G}Model {
|
|
782
|
-
this.query = this.orderBy(column, 'desc')
|
|
783
|
-
|
|
784
|
-
return this
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
static orderByAsc(column: keyof ${G}Type): ${G}Model {
|
|
788
|
-
const instance = new ${G}Model(null)
|
|
789
|
-
|
|
790
|
-
instance.query = instance.query.orderBy(column, 'asc')
|
|
791
|
-
|
|
792
|
-
return instance
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
orderByAsc(column: keyof ${G}Type): ${G}Model {
|
|
796
|
-
this.query = this.query.orderBy(column, 'desc')
|
|
797
|
-
|
|
798
|
-
return this
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
async update(${V}: ${G}Update): Promise<${G}Model | undefined> {
|
|
802
|
-
if (this.id === undefined)
|
|
803
|
-
throw new HttpError(500, '${G} ID is undefined')
|
|
804
|
-
|
|
805
|
-
const filteredValues = Object.fromEntries(
|
|
806
|
-
Object.entries(${V}).filter(([key]) => this.fillable.includes(key)),
|
|
807
|
-
) as New${G}
|
|
808
|
-
|
|
809
|
-
await db.updateTable('${J}')
|
|
810
|
-
.set(filteredValues)
|
|
811
|
-
.where('id', '=', this.id)
|
|
812
|
-
.executeTakeFirst()
|
|
813
|
-
|
|
814
|
-
const model = await this.find(Number(this.id))
|
|
815
|
-
|
|
816
|
-
${v}
|
|
817
|
-
|
|
818
|
-
return model
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
async forceUpdate(${V}: ${G}Update): Promise<${G}Model | undefined> {
|
|
822
|
-
if (this.id === undefined)
|
|
823
|
-
throw new HttpError(500, '${G} ID is undefined')
|
|
824
|
-
|
|
825
|
-
await db.updateTable('${J}')
|
|
826
|
-
.set(${V})
|
|
827
|
-
.where('id', '=', this.id)
|
|
828
|
-
.executeTakeFirst()
|
|
829
|
-
|
|
830
|
-
const model = await this.find(Number(this.id))
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
${v}
|
|
834
|
-
|
|
835
|
-
return model
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
async save(): Promise<void> {
|
|
839
|
-
if (!this)
|
|
840
|
-
throw new HttpError(500, '${G} data is undefined')
|
|
841
|
-
|
|
842
|
-
if (this.id === undefined) {
|
|
843
|
-
await db.insertInto('${J}')
|
|
844
|
-
.values(this as New${G})
|
|
845
|
-
.executeTakeFirstOrThrow()
|
|
846
|
-
}
|
|
847
|
-
else {
|
|
848
|
-
await this.update(this)
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
// Method to delete (soft delete) the ${V} instance
|
|
853
|
-
async delete(): Promise<void> {
|
|
854
|
-
if (this.id === undefined)
|
|
855
|
-
throw new HttpError(500, '${G} ID is undefined')
|
|
856
|
-
|
|
857
|
-
${e}
|
|
858
|
-
|
|
859
|
-
// Check if soft deletes are enabled
|
|
860
|
-
if (this.softDeletes) {
|
|
861
|
-
// Update the deleted_at column with the current timestamp
|
|
862
|
-
await db.updateTable('${J}')
|
|
863
|
-
.set({
|
|
864
|
-
deleted_at: sql.raw('CURRENT_TIMESTAMP')
|
|
865
|
-
})
|
|
866
|
-
.where('id', '=', this.id)
|
|
867
|
-
.execute();
|
|
868
|
-
} else {
|
|
869
|
-
// Perform a hard delete
|
|
870
|
-
await db.deleteFrom('${J}')
|
|
871
|
-
.where('id', '=', this.id)
|
|
872
|
-
.execute();
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
${h}
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
${f}
|
|
880
|
-
${l}
|
|
881
|
-
|
|
882
|
-
distinct(column: keyof ${G}Type): ${G}Model {
|
|
883
|
-
this.query = this.query.select(column).distinct()
|
|
884
|
-
|
|
885
|
-
this.hasSelect = true
|
|
886
|
-
|
|
887
|
-
return this
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
static distinct(column: keyof ${G}Type): ${G}Model {
|
|
891
|
-
const instance = new ${G}Model(null)
|
|
892
|
-
|
|
893
|
-
instance.query = instance.query.select(column).distinct()
|
|
894
|
-
|
|
895
|
-
instance.hasSelect = true
|
|
896
|
-
|
|
897
|
-
return instance
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
join(table: string, firstCol: string, secondCol: string): ${G}Model {
|
|
901
|
-
this.query = this.query.innerJoin(table, firstCol, secondCol)
|
|
902
|
-
|
|
903
|
-
return this
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
static join(table: string, firstCol: string, secondCol: string): ${G}Model {
|
|
907
|
-
const instance = new ${G}Model(null)
|
|
908
|
-
|
|
909
|
-
instance.query = instance.query.innerJoin(table, firstCol, secondCol)
|
|
910
|
-
|
|
911
|
-
return instance
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
static async rawQuery(rawQuery: string): Promise<any> {
|
|
915
|
-
return await sql\`\${rawQuery}\`.execute(db)
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
toJSON() {
|
|
919
|
-
const output: Partial<${G}Type> = ${z}
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
type ${G} = Omit<${G}Type, 'password'>
|
|
923
|
-
|
|
924
|
-
return output as ${G}
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
parseResult(model: ${G}Model): ${G}Model {
|
|
928
|
-
for (const hiddenAttribute of this.hidden) {
|
|
929
|
-
delete model[hiddenAttribute as keyof ${G}Model]
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
return model
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
${C}
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
async function find(id: number): Promise<${G}Model | undefined> {
|
|
939
|
-
let query = db.selectFrom('${J}').where('id', '=', id).selectAll()
|
|
940
|
-
|
|
941
|
-
const model = await query.executeTakeFirst()
|
|
942
|
-
|
|
943
|
-
if (!model) return undefined
|
|
944
|
-
|
|
945
|
-
return new ${G}Model(model)
|
|
946
|
-
}
|
|
947
|
-
|
|
948
|
-
export async function count(): Promise<number> {
|
|
949
|
-
const results = await ${G}Model.count()
|
|
950
|
-
|
|
951
|
-
return results
|
|
952
|
-
}
|
|
953
|
-
|
|
954
|
-
export async function create(new${G}: New${G}): Promise<${G}Model> {
|
|
955
|
-
|
|
956
|
-
const result = await db.insertInto('${J}')
|
|
957
|
-
.values(new${G})
|
|
958
|
-
.executeTakeFirstOrThrow()
|
|
959
|
-
|
|
960
|
-
return await find(Number(result.insertId)) as ${G}Model
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
export async function rawQuery(rawQuery: string): Promise<any> {
|
|
964
|
-
return await sql\`\${rawQuery}\`.execute(db)
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
export async function remove(id: number): Promise<void> {
|
|
968
|
-
await db.deleteFrom('${J}')
|
|
969
|
-
.where('id', '=', id)
|
|
970
|
-
.execute()
|
|
971
|
-
}
|
|
972
|
-
|
|
973
|
-
${q}
|
|
974
|
-
|
|
975
|
-
export const ${G} = ${G}Model
|
|
976
|
-
|
|
977
|
-
export default ${G}
|
|
978
|
-
`}async function Dq(J){try{y1.info("Cleanup of older Models..."),await QS1(J),y1.success("Deleted Models"),y1.info("Deleting old Model Name types..."),await YS1(),y1.success("Deleted Model Name types"),y1.info("Deleting old Model Requests..."),await zS1(J),y1.success("Deleted Model Requests"),y1.info("Deleting old Model Routes..."),await WS1(),y1.success("Deleted Model Routes");try{y1.info("Writing Model Names..."),await HS1(),y1.success("Wrote Model Names")}catch(H){XH("Error while writing Model Names",H)}try{y1.info("Writing Model Requests..."),await ZS1(),y1.success("Wrote Model Requests")}catch(H){XH("Error while writing Model Requests",H)}y1.info("Generating API Routes...");let G=X0([E1.userModelsPath("**/*.ts")],{absolute:!0}),X=X0([E1.storagePath("framework/database/models/generated/*.ts")],{absolute:!0});await qq(G),await qq(X),y1.success("Generated API Routes");for(let H of G){if(J&&J!==H)continue;y1.info(`Processing Model: ${D0(H)}`);let Z=(await import(H)).default,V=b0(Z,H),Q=D2(Z,H),Y=Bun.file(E1.frameworkPath(`orm/src/models/${Q}.ts`)),z=await ZH(Z,H),W=await Fq(V,Q,Z,z),K=Y.writer();y1.info(`Writing API Endpoints for: ${D0(Q)}`),K.write(W),y1.success(`Wrote API endpoints for: ${D0(Q)}`),await K.end()}for(let H of X){if(J&&J!==H)continue;y1.info(`Processing Model: ${D0(H)}`);let Z=(await import(H)).default,V=b0(Z,H),Q=D2(Z,H),Y=Bun.file(E1.frameworkPath(`orm/src/models/${Q}.ts`)),z=await ZH(Z,H),W=await Fq(V,Q,Z,z),K=Y.writer();y1.info(`Writing API Endpoints for: ${D0(Q)}`),K.write(W),y1.success(`Wrote API endpoints for: ${D0(Q)}`),await K.end()}y1.info("Generating Query Builder types..."),await $S1(),y1.success("Generated Query Builder types"),await US1()}catch(G){XH("Error while generating model files",G)}}async function US1(){y1.info("Linting code style...");let J=Bun.spawn(["bunx","--bun","eslint",".","--fix"],{stdio:["ignore","pipe","pipe"],cwd:E1.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)y1.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 y1.debug("Code style fixed successfully.")}import{ExitCode as Cq}from"@stacksjs/types";function mh1(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)=>{h2.debug("Running `buddy generate` ...",X),await AS1(X),VH.exit(Cq.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)=>{h2.debug("Running `buddy generate:types` ...",X),await jS1(X)}),J.command("generate:entries",G.entries).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{h2.debug("Running `buddy generate:entries` ...",X),await MS1(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)=>{h2.debug("Running `buddy generate:web-types` ...",X),await DS1(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)=>{h2.debug("Running `buddy generate:vscode-custom-data` ...",X),await fS1(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)=>{h2.debug("Running `buddy generate:ide-helpers` ...",X),await RS1(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)=>{h2.debug("Running `buddy generate:component-meta` ...",X),await KS1(X)}),J.command("generate:pkgx-config",G.pkgx).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action((X)=>{h2.debug("Running `buddy generate:pkgx-config` ...",X),FS1()}),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 Aq("buddy generate:model-files");try{await Dq(),Iq("Generated Model files",{startTime:X,useSeconds:!0})}catch(H){h2.error("There was an error generating your model files",H),VH.exit(Cq.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)=>{h2.debug("Running `buddy generate:openapi-spec` ...",X);let H=await Aq("buddy generate:openapi-spec");await qS1(),Iq("Generated OpenAPI specification",{startTime:H,useSeconds:!0})}),J.command("generate:migrations","Generate Migrations").action((X)=>{h2.debug("Running `buddy generate:migrations` ...",X)}),J.command("generate:core-symlink","Generate core symlink. A shortcut for core developers.").action(async(X)=>{h2.debug("Running `buddy core-symlink` ...",X),await BS1()}),J.on("generate:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),VH.exit(1)})}import IS1 from"process";import{config as CS1}from"@stacksjs/config";import{ExitCode as SS1}from"@stacksjs/types";import{log as Sq,runCommandSync as PS1}from"@stacksjs/cli";function ih1(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)=>{Sq.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||CS1.app.url} ${Z}`;Sq.info(`Running command: ${V}`),await PS1(V),IS1.exit(SS1.Success)})}import wS1 from"process";import{log as LS1,runCommand as TS1}from"@stacksjs/cli";import{path as NS1}from"@stacksjs/path";function nh1(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)=>{LS1.debug("Running `buddy install` ...",X),await TS1("bun install",{...X,cwd:NS1.projectPath()})}),J.on("install:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),wS1.exit(1)})}import Pq from"process";import{runAction as kS1}from"@stacksjs/actions";import{intro as ES1,log as wq,outro as OS1}from"@stacksjs/cli";import{Action as vS1}from"@stacksjs/enums";function Xy1(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)=>{wq.debug("Running `buddy key:generate` ...",X),await ES1("buddy key:generate");let H=await kS1(vS1.KeyGenerate,X);if(H.isErr())wq.error("Failed to set random application key.",H.error),Pq.exit();await OS1("Random application key set.")}),J.on("key:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),Pq.exit(1)})}import Lq from"process";import{runAction as Tq}from"@stacksjs/actions";import{intro as _S1,log as t9,outro as gS1,runCommand as bS1}from"@stacksjs/cli";import{Action as Nq}from"@stacksjs/enums";function zy1(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)=>{t9.debug("Running `buddy lint` ...",X);let H=await _S1("buddy lint");if(X.fix)await Tq(Nq.LintFix,{...X});else await bS1("bunx --bun eslint .");await gS1("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)=>{t9.debug("Running `buddy lint:fix` ...",X),t9.info("Fixing lint errors...");let H=await Tq(Nq.LintFix,{...X});if(H.isErr())t9.error("There was an error lint fixing your code.",H.error),Lq.exit();t9.success("Fixed lint errors")}),J.on("lint:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),Lq.exit(1)})}var{$:kq}=globalThis.Bun;import hS1 from"process";import{log as yS1}from"@stacksjs/logging";import{projectPath as mS1}from"@stacksjs/path";function Ry1(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)=>{yS1.debug("Running `buddy list` ...",X),kq.cwd(mS1());let Z=(await kq`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(" ")),hS1.exit(1)})}import q2 from"process";import{createModel as xS1,createNotification as lS1,invoke as cS1,makeAction as rS1,makeComponent as aS1,makeDatabase as iS1,makeFunction as uS1,makeLanguage as dS1,makePage as sS1,makeStack as pS1}from"@stacksjs/actions";import{intro as nS1,italic as oS1,outro as Eq,runCommand as Oq}from"@stacksjs/cli";import{localUrl as eS1}from"@stacksjs/config";import{log as O1}from"@stacksjs/logging";import{path as vq}from"@stacksjs/path";import{ExitCode as _q}from"@stacksjs/types";function Cy1(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(O1.debug("Running `buddy make` ...",X),!J.args[0])O1.error("You need to specify a name. Read more about the documentation here."),q2.exit();await cS1(X),q2.exit(_q.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(O1.debug("Running `buddy make:component` ...",H),X=X??H.name,H.name=X,!X)O1.error("You need to specify a name. Read more about the documentation here."),q2.exit();await aS1(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(O1.debug("Running `buddy make:database` ...",H),X=X??H.name,H.name=X,!X)O1.error("You need to specify a database name via the `--name` option, or as the command\u2019s argument."),O1.info("Example: `buddy make:database my-cool-database`"),O1.info("Or: `buddy make:database --name=my-cool-database`"),O1.info("Read more about the documentation here: https://stacksjs.org/docs/make/database"),q2.exit();iS1(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(O1.debug("Running `buddy make:factory` ...",H),X=X??H.name,H.name=X,!X)O1.error("You need to specify a name. Read more about the documentation here."),q2.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(O1.debug("Running `buddy make:view` ...",H),X=X??H.name,H.name=X,!X)O1.error("You need to specify a name. Read more about the documentation here."),q2.exit();await sS1(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)=>{O1.debug("Running `buddy make:function` ...",X),await uS1(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(O1.debug("Running `buddy make:lang` ...",H),X=X??H.name,H.name=X,!X)O1.error("You need to specify a name. Read more about the documentation here."),q2.exit();await dS1(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)=>{O1.debug("Running `buddy make:notification` ...",H);let Z=await nS1("buddy make:notification");if(X=X??H.name,H.name=X,!X)O1.error("You need to specify a name. Read more about the documentation here."),q2.exit();if(!await lS1(H))await Eq("While running the make:notification command, there was an issue",{startTime:Z,useSeconds:!0}),q2.exit();await Eq(`Created your ${oS1(X)} notification.`,{startTime:Z,useSeconds:!0}),q2.exit(_q.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(O1.debug("Running `buddy make:stack` ...",H),X=X??H.name,H.name=X,!X)O1.error("You need to specify a name. Read more about the documentation here."),q2.exit();pS1(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(O1.info("Running `buddy make:action` ..."),O1.debug("Running `buddy make:action` ...",X,H),X=X??H.name,H.name=X,!X)O1.error("You need to specify a name. Read more about the documentation here."),q2.exit();await rS1(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(O1.debug("Running `buddy make:model` ...",H),X=X??H.name,H.name=X,!X)O1.error("You need to specify a model name"),q2.exit();await xS1(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(O1.debug("Running `buddy make:migration` ...",H),X=X??H.name,H.name=X,!X)O1.error("You need to specify a migration name"),q2.exit()}),J.command("make:certificate",G.certificate).alias("make:cert").example("buddy make:certificate").action(async(X)=>{O1.debug("Running `buddy make:certificate` ...",X);let H=await eS1();O1.info("Creating SSL certificate..."),await Oq(`tlsx ${H}`,{cwd:vq.storagePath("keys")}),O1.success("Certificate created"),O1.info("Installing SSL certificate..."),await Oq("tlsx -install",{cwd:vq.storagePath("keys")}),O1.success("Certificate installed")}),J.on("make:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),q2.exit(1)})}import A0 from"process";import{runAction as QH}from"@stacksjs/actions";import{intro as YH,log as zH,outro as X9}from"@stacksjs/cli";import{Action as WH}from"@stacksjs/enums";import{ExitCode as $H}from"@stacksjs/types";function ky1(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)=>{zH.debug("Running `buddy migrate` ...",X);let H=await YH("buddy migrate"),Z=await QH(WH.Migrate,X);if(Z.isErr())await X9("While running the migrate command, there was an issue",{startTime:H,useSeconds:!0},Z.error),A0.exit();let V=A0.env.APP_ENV||"local";await X9(`Migrated your ${V} database.`,{startTime:H,useSeconds:!0}),A0.exit($H.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)=>{zH.debug("Running `buddy migrate:fresh` ...",X);let H=await YH("buddy migrate:fresh"),Z=await QH(WH.MigrateFresh,X);if(Z.isErr())await X9("While running the migrate:fresh command, there was an issue",{startTime:H,useSeconds:!0},Z.error),A0.exit();await X9("All tables dropped successfully & migrated successfully",{startTime:H,useSeconds:!0}),A0.exit($H.Success)}),J.command("migrate:dns",G.migrate).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{zH.debug("Running `buddy migrate:dns` ...",X);let H=await YH("buddy migrate:dns"),Z=await QH(WH.MigrateDns,{...X});if(Z.isErr())await X9("While running the migrate:dns command, there was an issue",{startTime:H,useSeconds:!0},Z.error),A0.exit();let V=A0.env.APP_URL||"undefined";await X9(`Migrated your ${V} DNS.`,{startTime:H,useSeconds:!0}),A0.exit($H.Success)}),J.on("migrate:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),A0.exit(1)})}var{$:gq}=globalThis.Bun;import tS1 from"process";import{log as JP1}from"@stacksjs/logging";import{projectPath as GP1}from"@stacksjs/path";function by1(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()=>{JP1.debug("Running `buddy outdated` ..."),gq.cwd(GP1());let X=await gq`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(" ")),tS1.exit(1)})}var{$:fG}=globalThis.Bun;import DG from"process";import{intro as UH,italic as xq,outro as KH}from"@stacksjs/cli";import{ports as bq}from"@stacksjs/config";import{log as G2}from"@stacksjs/logging";import{findProjectPath as hq,path as yq,projectPath as mq}from"@stacksjs/path";import{ExitCode as BH}from"@stacksjs/types";import{findStacksProjects as XP1}from"@stacksjs/utils";function uy1(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)=>{G2.debug("Running `buddy ports` ...",X);let H;if(!X.quiet)H=await UH("buddy ports");if(X.project){let Z=await hq(X.project);G2.debug(`Path: ${Z}`);let V=await RH(Z,X);G2.debug(`./buddy ports --quiet response for ${mq}`,V),AG(V,X)}else AG(bq,X);if(!X.quiet)await KH("Exited",{startTime:H,useSeconds:!1});DG.exit(BH.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)=>{G2.debug("Running `buddy ports:list` ...",X);let H;if(!X.quiet)H=await UH("buddy ports:list");if(X.project){if(!X.quiet)G2.info(`Listing ports for project: ${xq(X.project)}`);let Z=await hq(X.project);G2.debug(`Path: ${Z}`);let V=await RH(Z,X);AG(V,X)}else AG(bq,X);if(!X.quiet)await KH("Exited",{startTime:H,useSeconds:!1});DG.exit(BH.Success)}),J.command("ports:check",G.ports).option("-p, --project [name]",G.project,{default:mq()}).option("-q, --quiet","Use minimal output",{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{G2.debug("Running `buddy ports:check` ...",X);let H;if(!X.quiet)H=await UH("buddy ports:check");let Z=await XP1(void 0,{quiet:!0});G2.debug("Running `buddy ports`"),G2.debug(`Found ${Z.length} projects`),G2.debug("Projects:",Z);let V={};for(let Q of Z)V[Q]=await RH(Q,X);if(G2.info("ProjectsPorts:",V),!X.quiet)await KH("Exited",{startTime:H,useSeconds:!1});DG.exit(BH.Success)}),J.on("ports:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),DG.exit(1)})}async function RH(J,G){if(!G.quiet)G2.info(`Checking ports for project: ${xq(J)}`);fG.cwd(J),fG.env(await import(`${J}/.env`));let X=await fG`./buddy projects:list --quiet`.text();G2.debug("ProjectListResponse",X);let H=X.split("\n").filter((W)=>W.startsWith(" - ")).map((W)=>W.trim().substring(4));G2.debug("Projects:",H);let Z=G.project??yq.projectPath(),V=H.find((W)=>W.includes(Z));if(G2.debug(`Checking ports for project: ${V}`),V===""||!V)V=yq.projectPath();G2.debug(`\$ Running: ./buddy ports:list --quiet via ${V}`);let Q=await fG`./buddy ports:list --quiet`.json();G2.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 G2.debug(`Ports for ${V}`,z),z}function AG(J,G){if(!G.quiet)console.log("");if(console.log(J),!G.quiet)console.log("")}import HP1 from"process";import{runAction as ZP1}from"@stacksjs/actions";import{Action as VP1}from"@stacksjs/enums";import{log as QP1}from"@stacksjs/logging";function ey1(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)=>{QP1.debug("Running `buddy prepublish` ...",X),await ZP1(VP1.Prepublish,X)}),J.on("prepublish:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),HP1.exit(1)})}import MH from"process";import{intro as lq,log as cq}from"@stacksjs/cli";import{ExitCode as rq}from"@stacksjs/types";import{findStacksProjects as aq}from"@stacksjs/utils";function Zm1(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(cq.debug("Running `buddy projects` ...",X),!X.quiet)await lq("buddy projects");let H=await aq(void 0,X);for(let Z of H)console.log(" - ",Z);MH.exit(rq.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(cq.debug("Running `buddy projects` ...",X),!X.quiet)await lq("buddy projects:list");let H=await aq(void 0,X);for(let Z of H)console.log(" - ",Z);MH.exit(rq.Success)}),J.on("projects:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),MH.exit(1)})}import iq from"process";import{runAction as YP1}from"@stacksjs/actions";import{intro as zP1,italic as WP1,log as IG,outro as $P1}from"@stacksjs/cli";import{Action as UP1}from"@stacksjs/enums";import{ExitCode as KP1}from"@stacksjs/types";var CG={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 Um1(J){J.command("release",CG.release).option("--dry-run",CG.dryRun,{default:!1}).option("-p, --project [project]",CG.project,{default:!1}).option("--verbose",CG.verbose,{default:!1}).action(async(G)=>{if(IG.debug("Running `buddy release` ...",G),G.dryRun)IG.warn("Dry run enabled. No changes will be made or committed.");let X=await zP1("buddy release"),H=await YP1(UP1.Release,G);if(H.isErr())IG.error("Failed to release",H.error),iq.exit(KP1.FatalError);await $P1("Triggered CI/CD Release via GitHub Actions",{startTime:X,useSeconds:!0}),IG.info(`Follow along: ${WP1("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(" ")),iq.exit(1)})}import qH from"process";import{runAction as BP1}from"@stacksjs/actions";import{intro as RP1,outro as uq}from"@stacksjs/cli";import{Action as MP1}from"@stacksjs/enums";import{ExitCode as qP1}from"@stacksjs/types";function jm1(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 RP1("buddy route:list"),Z=await BP1(MP1.RouteList,X);if(Z.isErr())await uq("While running the migrate command, there was an issue",{startTime:H,useSeconds:!0},Z.error),qH.exit();await uq("Successfully listed routes"),qH.exit(qP1.Success)}),J.on("route:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),qH.exit(1)})}import dq from"process";import{runAction as FP1}from"@stacksjs/actions";import{intro as jP1,log as fP1,outro as sq}from"@stacksjs/cli";import{Action as DP1}from"@stacksjs/enums";import{ExitCode as AP1}from"@stacksjs/types";function Pm1(J){let G={stripe:"Sets up stripe products in the dashboard",project:"Target a specific project",verbose:"Enable verbose output"};J.command("stripe:setup",G.stripe).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{fP1.debug("Running `buddy stripe:setup` ...",X);let H=await jP1("buddy stripe:setup"),Z=await FP1(DP1.StripeSetup,X);if(Z.isErr())await sq("While running the stripe:setup command, there was an issue",{startTime:H,useSeconds:!0},Z.error),dq.exit();await sq("Stripe products created successfully",{startTime:H,useSeconds:!0}),dq.exit(AP1.Success)})}import SG from"process";import{runAction as IP1}from"@stacksjs/actions";import{intro as CP1,log as SP1,outro as pq}from"@stacksjs/cli";import{Action as PP1}from"@stacksjs/enums";import{ExitCode as nq}from"@stacksjs/types";function Om1(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)=>{SP1.debug("Running `buddy seed` ...",X);let H=await CP1("buddy seed"),Z=await IP1(PP1.Seed,X);if(Z.isErr())await pq("While running the seed command, there was an issue",{startTime:H,useSeconds:!0},Z.error),SG.exit(nq.FatalError);let V=SG.env.APP_ENV||"local";await pq(`Seeded your ${V} database.`,{startTime:H,useSeconds:!0}),SG.exit(nq.Success)}),J.on("seed:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),SG.exit(1)})}import q5 from"process";import{runAction as wP1}from"@stacksjs/actions";import{log as y2,runCommand as H9}from"@stacksjs/cli";import{Action as LP1}from"@stacksjs/enums";import{handleError as J8}from"@stacksjs/error-handling";import{path as Z9}from"@stacksjs/path";import{storage as TP1}from"@stacksjs/storage";import{ExitCode as F5}from"@stacksjs/types";function cm1(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(y2.debug("Running `buddy setup` ...",X),!await NP1())await kP1();await OP1(),await EP1(X)}),J.command("setup:oh-my-zsh",G.ohMyZsh).alias("upgrade:oh-my-zsh").option("--verbose",G.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy setup:oh-my-zsh` ...",X);let H=await wP1(LP1.UpgradeShell);if(H.isErr())y2.error(H.error),q5.exit(F5.FatalError)}),J.on("setup:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),q5.exit(F5.FatalError)})}async function NP1(){if((await H9("pkgx --version",{silent:!0})).isOk())return!0;return!1}async function kP1(){let J=await H9(Z9.frameworkPath("scripts/pkgx-install"));if(J.isOk())return;J8(J.error),q5.exit(F5.FatalError)}async function EP1(J){y2.info("Installing dependencies...");let G=await H9("bun install",{cwd:J.cwd||Z9.projectPath()});if(G.isErr())J8(G.error),q5.exit(F5.FatalError);y2.success("Installed node_modules"),vP1(J);let X=await H9("buddy key:generate",{cwd:J.cwd||Z9.projectPath()});if(X.isErr())J8(X.error),q5.exit(F5.FatalError);y2.info("Ensuring AWS is connected...");let H=await H9("buddy configure:aws",{cwd:J.cwd||Z9.projectPath()});if(H.isErr())J8(H.error),q5.exit(F5.FatalError);y2.success("Configured AWS"),y2.success("Project is setup"),y2.info("Happy coding! \uD83D\uDC99")}async function OP1(){return new Promise((J)=>setTimeout(J,300))}async function vP1(J){if(y2.info("Ensuring .env exists..."),TP1.doesNotExist(Z9.projectPath(".env"))){let G=await H9("cp .env.example .env",{cwd:J.cwd||Z9.projectPath()});if(G.isErr())J8(G.error),q5.exit(F5.FatalError);y2.success(".env created")}else y2.success(".env existed")}import I0 from"process";import{runAction as h0}from"@stacksjs/actions";import{intro as G8,log as oq,outro as w2}from"@stacksjs/cli";import{Action as y0}from"@stacksjs/enums";import{projectPath as m0}from"@stacksjs/path";function pm1(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 G8("buddy test");if(X.feature&&X.unit){let Z=await h0(y0.Test,{...X,cwd:m0()});if(Z.isErr())await w2("While running `buddy test`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit()}if(X.feature&&!X.unit){oq.info("Running Feature tests...");let Z=await h0(y0.TestFeature,{...X,cwd:m0()});if(Z.isErr())await w2("While running `buddy test`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit()}if(!X.feature&&X.unit){oq.info("Running Unit tests...");let Z=await h0(y0.TestUnit,{...X,cwd:m0()});if(Z.isErr())await w2("While running `buddy test`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit()}if(!X.feature&&!X.unit){let Z=await h0(y0.Test,{...X,cwd:m0()});if(Z.isErr())await w2("While running `buddy test`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit()}await w2("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 G8("buddy test:unit"),Z=await h0(y0.TestUnit,{...X,verbose:!0,cwd:m0()});if(Z.isErr())await w2("While running `buddy test:unit`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit();await w2("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 G8("buddy test:feature"),Z=await h0(y0.TestFeature,{...X,verbose:!0,cwd:m0()});if(Z.isErr())await w2("While running `buddy test:feature`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit();await w2("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 G8("buddy test:ui"),Z=await h0(y0.TestUi,{...X,verbose:!0,cwd:m0()});if(Z.isErr())await w2("While running `buddy test:ui`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit();await w2("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 G8("buddy test:types"),Z=await h0(y0.Typecheck,{...X,verbose:!0,cwd:m0()});if(Z.isErr())await w2("While running `buddy test:types`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit();await w2("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(" ")),I0.exit(1)})}import FH from"process";import{intro as _P1,log as gP1,outro as eq,runCommand as bP1}from"@stacksjs/cli";import{ExitCode as hP1}from"@stacksjs/types";function Jx1(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)=>{gP1.debug("Running `buddy tinker` ...",X);let H=await _P1("buddy tinker"),Z=await bP1("bun repl",{stdin:"inherit"});if(Z.isErr())await eq("While running the tinker command, there was an issue",{startTime:H,useSeconds:!0},Z.error||void 0),FH.exit();await eq("Tinker mode exited.",{startTime:H,useSeconds:!0}),FH.exit(hP1.Success)}),J.on("tinker:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),FH.exit(1)})}import yP1 from"process";import{generateTypes as mP1}from"@stacksjs/actions";import{log as xP1}from"@stacksjs/logging";function Vx1(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)=>{xP1.debug("Running `buddy types:generate` ...",X),await mP1()}),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(" ")),yP1.exit(1)})}import L2 from"process";import{runAction as j5}from"@stacksjs/actions";import{intro as PG,log as x0,outro as X8,prompts as lP1}from"@stacksjs/cli";import{Action as f5}from"@stacksjs/enums";import{ExitCode as wG}from"@stacksjs/types";import{isString as cP1}from"@stacksjs/validation";function Bx1(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)=>{x0.debug("Running `buddy upgrade` ...",X);let H=await PG("buddy upgrade");if(rP1(X)){let Q=(await lP1({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)L2.exit(wG.InvalidArgument);if(cP1(Q))Q=[Q];X=Q.reduce((Y,z)=>{return Y[z]=!0,Y},{})}let Z=await j5(f5.Upgrade,X);if(Z.isErr())await X8("While running the buddy:upgrade command, there was an issue",{startTime:H,useSeconds:!0},Z.error),L2.exit();await X8("Upgrade complete.",{startTime:H,useSeconds:!0}),L2.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)=>{x0.debug("Running `buddy upgrade:framework` ...",X),await j5(f5.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)=>{x0.debug("Running `buddy upgrade:dependencies` ...",X),await j5(f5.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)=>{x0.debug("Running `buddy upgrade:bun` ...",X);let H=await PG("buddy upgrade:bun"),Z=await j5(f5.UpgradeBun,X);if(Z.isErr())await X8("While running the buddy upgrade:bun command, there was an issue",{startTime:H,useSeconds:!0},Z.error),L2.exit();L2.exit(wG.Success)}),J.command("upgrade:all",G.all).option("-p, --project [project]",G.project,{default:!1}).option("--verbose",G.verbose,{default:!1}).action(async(X)=>{x0.debug("Running `buddy upgrade:all` ...",X),await j5(f5.Upgrade,X)}),J.command("upgrade:shell",G.shell).option("--verbose",G.verbose,{default:!1}).example("buddy upgrade:shell").action(async(X)=>{x0.debug("Running `buddy upgrade:shell` ...",X);let H=await PG("buddy upgrade:shell"),Z=await j5(f5.UpgradeShell,X);if(Z.isErr())await X8("While running the buddy upgrade:shell command, there was an issue",{startTime:H,useSeconds:!0},Z.error),L2.exit();L2.exit(wG.Success)}),J.command("upgrade:binary",G.binary).option("--verbose",G.verbose,{default:!1}).example("buddy upgrade:binary").action(async(X)=>{if(L2.getuid&&L2.getuid()!==0)x0.warn("To upgrade the binary, you need to run this command with sudo, or as root."),L2.exit(0);x0.debug("Running `buddy upgrade:binary` ...",X);let H=await PG("buddy upgrade:binary"),Z=await j5(f5.UpgradeBinary,X);if(Z.isErr())await X8("While running the buddy upgrade:binary command, there was an issue",{startTime:H,useSeconds:!0},Z.error),L2.exit();L2.exit(wG.Success)}),J.on("upgrade:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),L2.exit(1)})}function rP1(J){return!J.framework&&!J.dependencies&&!J.bun&&!J.shell&&!J.binary&&!J.all}import aP1 from"process";import{bold as tq,dim as JF,green as GF,intro as iP1,log as jH}from"@stacksjs/cli";import{storage as uP1}from"@stacksjs/storage";function jx1(J){let G={version:"Retrieving Stacks build version"};J.command("version",G.version).action(async()=>{jH.debug("Running `buddy version` ..."),await iP1("buddy version");let X=await uP1.readPackageJson("./package.json"),H="wip",Z=X.version;jH.info(GF(tq("@stacksjs/ "))+JF(` ${Z}`)),jH.info(GF(tq("Bun: "))+JF(` ${H}`))}),J.on("version:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",J.args.join(" ")),aP1.exit(1)})}export{eP1 as a,Zw1 as b,Uw1 as c,eL1 as d,HT1 as e,WT1 as f,fT1 as g,kT1 as h,yT1 as i,RA as j,aT1 as k,tT1 as l,QN1 as m,mh1 as n,ih1 as o,nh1 as p,Xy1 as q,zy1 as r,Ry1 as s,Cy1 as t,ky1 as u,by1 as v,uy1 as w,ey1 as x,Zm1 as y,Um1 as z,jm1 as A,Pm1 as B,Om1 as C,cm1 as D,OP1 as E,vP1 as F,pm1 as G,Jx1 as H,Vx1 as I,Bx1 as J,jx1 as K};
|