@turboforge/sync 0.0.0 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-ZY4O5KW5.mjs +6 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +24 -18
- package/dist/cli.mjs +2 -2
- package/dist/defu-4NW2TEDJ.mjs +1 -0
- package/dist/dist-WX6I3LW6.mjs +139 -0
- package/dist/index.d.mts +1 -7
- package/dist/index.d.ts +1 -7
- package/dist/index.js +4 -4
- package/dist/index.mjs +1 -1
- package/dist/jiti-D4HPEZZY.mjs +20 -0
- package/package.json +2 -2
- package/dist/chunk-P3TVCV3U.mjs +0 -6
- package/dist/defu-EM2AXOCS.mjs +0 -1
- package/dist/dist-VHTBRCO5.mjs +0 -139
- package/dist/jiti-7K72E5ZK.mjs +0 -14
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import{a as mt,b as Vr,c as Ur}from"./chunk-WVOQBBD4.mjs";var ks=Vr((Gr,Cs)=>{"use strict";(()=>{var Dt={"./node_modules/.pnpm/mlly@1.8.2/node_modules/mlly/dist lazy recursive"(B){function X(at){return Promise.resolve().then(function(){var vt=new Error("Cannot find module '"+at+"'");throw vt.code="MODULE_NOT_FOUND",vt})}X.keys=()=>[],X.resolve=X,X.id="./node_modules/.pnpm/mlly@1.8.2/node_modules/mlly/dist lazy recursive",B.exports=X},fs(B){"use strict";B.exports=mt("fs")},"node:fs"(B){"use strict";B.exports=mt("fs")},"node:module"(B){"use strict";B.exports=mt("module")},"node:path"(B){"use strict";B.exports=mt("path")},os(B){"use strict";B.exports=mt("os")},path(B){"use strict";B.exports=mt("path")},"./node_modules/.pnpm/get-tsconfig@4.14.0/node_modules/get-tsconfig/dist/index.cjs"(B,X,at){"use strict";var vt=Object.defineProperty,k=(a,p)=>vt(a,"name",{value:p,configurable:!0}),L=at("node:path"),ae=at("node:fs"),oe=at("node:module"),_e=at("./node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.cjs"),Jt=at("fs"),Vt=at("os"),pt=at("path");function H(a){return a.startsWith("\\\\?\\")?a:a.replace(/\\/g,"/")}k(H,"slash");let M=k(a=>{let p=ae[a];return(g,...l)=>{let y=`${a}:${l.join(":")}`,v=g?.get(y);return v===void 0&&(v=Reflect.apply(p,ae,l),g?.set(y,v)),v}},"cacheFs"),Z=M("existsSync"),gt=M("readFileSync"),P=M("statSync"),O=k((a,p,g)=>{for(;;){let l=L.posix.join(a,p);if(Z(g,l))return l;let y=L.dirname(a);if(y===a)return;a=y}},"findUp"),A=/^\.{1,2}(\/.*)?$/,n=k(a=>{let p=H(a);return A.test(p)?p:`./${p}`},"normalizeRelativePath");function z(a,p=!1){let g=a.length,l=0,y="",v=0,d=16,C=0,S=0,R=0,W=0,$=0;function tt(E,ht){let dt=0,F=0;for(;dt<E;){let I=a.charCodeAt(l);if(I>=48&&I<=57)F=16*F+I-48;else if(I>=65&&I<=70)F=16*F+I-65+10;else{if(!(I>=97&&I<=102))break;F=16*F+I-97+10}l++,dt++}return dt<E&&(F=-1),F}function J(E){l=E,y="",v=0,d=16,$=0}function Y(){let E=l;if(a.charCodeAt(l)===48)l++;else for(l++;l<a.length&&ut(a.charCodeAt(l));)l++;if(l<a.length&&a.charCodeAt(l)===46){if(l++,!(l<a.length&&ut(a.charCodeAt(l))))return $=3,a.substring(E,l);for(l++;l<a.length&&ut(a.charCodeAt(l));)l++}let ht=l;if(l<a.length&&(a.charCodeAt(l)===69||a.charCodeAt(l)===101))if(l++,(l<a.length&&a.charCodeAt(l)===43||a.charCodeAt(l)===45)&&l++,l<a.length&&ut(a.charCodeAt(l))){for(l++;l<a.length&&ut(a.charCodeAt(l));)l++;ht=l}else $=3;return a.substring(E,ht)}function Q(){let E="",ht=l;for(;;){if(l>=g){E+=a.substring(ht,l),$=2;break}let dt=a.charCodeAt(l);if(dt===34){E+=a.substring(ht,l),l++;break}if(dt!==92){if(dt>=0&&dt<=31){if(ot(dt)){E+=a.substring(ht,l),$=2;break}$=6}l++}else{if(E+=a.substring(ht,l),l++,l>=g){$=2;break}switch(a.charCodeAt(l++)){case 34:E+='"';break;case 92:E+="\\";break;case 47:E+="/";break;case 98:E+="\b";break;case 102:E+="\f";break;case 110:E+=`
|
|
2
|
+
`;break;case 114:E+="\r";break;case 116:E+=" ";break;case 117:let F=tt(4);F>=0?E+=String.fromCharCode(F):$=4;break;default:$=5}ht=l}}return E}function rt(){if(y="",$=0,v=l,S=C,W=R,l>=g)return v=g,d=17;let E=a.charCodeAt(l);if(it(E)){do l++,y+=String.fromCharCode(E),E=a.charCodeAt(l);while(it(E));return d=15}if(ot(E))return l++,y+=String.fromCharCode(E),E===13&&a.charCodeAt(l)===10&&(l++,y+=`
|
|
3
|
+
`),C++,R=l,d=14;switch(E){case 123:return l++,d=1;case 125:return l++,d=2;case 91:return l++,d=3;case 93:return l++,d=4;case 58:return l++,d=6;case 44:return l++,d=5;case 34:return l++,y=Q(),d=10;case 47:let ht=l-1;if(a.charCodeAt(l+1)===47){for(l+=2;l<g&&!ot(a.charCodeAt(l));)l++;return y=a.substring(ht,l),d=12}if(a.charCodeAt(l+1)===42){l+=2;let dt=g-1,F=!1;for(;l<dt;){let I=a.charCodeAt(l);if(I===42&&a.charCodeAt(l+1)===47){l+=2,F=!0;break}l++,ot(I)&&(I===13&&a.charCodeAt(l)===10&&l++,C++,R=l)}return F||(l++,$=1),y=a.substring(ht,l),d=13}return y+=String.fromCharCode(E),l++,d=16;case 45:if(y+=String.fromCharCode(E),l++,l===g||!ut(a.charCodeAt(l)))return d=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return y+=Y(),d=11;default:for(;l<g&&wt(E);)l++,E=a.charCodeAt(l);if(v!==l){switch(y=a.substring(v,l),y){case"true":return d=8;case"false":return d=9;case"null":return d=7}return d=16}return y+=String.fromCharCode(E),l++,d=16}}function wt(E){if(it(E)||ot(E))return!1;switch(E){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function Nt(){let E;do E=rt();while(E>=12&&E<=15);return E}return k(tt,"scanHexDigits"),k(J,"setPosition"),k(Y,"scanNumber"),k(Q,"scanString"),k(rt,"scanNext"),k(wt,"isUnknownContentCharacter"),k(Nt,"scanNextNonTrivia"),{setPosition:J,getPosition:k(()=>l,"getPosition"),scan:p?Nt:rt,getToken:k(()=>d,"getToken"),getTokenValue:k(()=>y,"getTokenValue"),getTokenOffset:k(()=>v,"getTokenOffset"),getTokenLength:k(()=>l-v,"getTokenLength"),getTokenStartLine:k(()=>S,"getTokenStartLine"),getTokenStartCharacter:k(()=>v-W,"getTokenStartCharacter"),getTokenError:k(()=>$,"getTokenError")}}function it(a){return a===32||a===9}function ot(a){return a===10||a===13}function ut(a){return a>=48&&a<=57}var At,u;k(z,"createScanner"),k(it,"isWhiteSpace"),k(ot,"isLineBreak"),k(ut,"isDigit"),(u=At||(At={}))[u.lineFeed=10]="lineFeed",u[u.carriageReturn=13]="carriageReturn",u[u.space=32]="space",u[u._0=48]="_0",u[u._1=49]="_1",u[u._2=50]="_2",u[u._3=51]="_3",u[u._4=52]="_4",u[u._5=53]="_5",u[u._6=54]="_6",u[u._7=55]="_7",u[u._8=56]="_8",u[u._9=57]="_9",u[u.a=97]="a",u[u.b=98]="b",u[u.c=99]="c",u[u.d=100]="d",u[u.e=101]="e",u[u.f=102]="f",u[u.g=103]="g",u[u.h=104]="h",u[u.i=105]="i",u[u.j=106]="j",u[u.k=107]="k",u[u.l=108]="l",u[u.m=109]="m",u[u.n=110]="n",u[u.o=111]="o",u[u.p=112]="p",u[u.q=113]="q",u[u.r=114]="r",u[u.s=115]="s",u[u.t=116]="t",u[u.u=117]="u",u[u.v=118]="v",u[u.w=119]="w",u[u.x=120]="x",u[u.y=121]="y",u[u.z=122]="z",u[u.A=65]="A",u[u.B=66]="B",u[u.C=67]="C",u[u.D=68]="D",u[u.E=69]="E",u[u.F=70]="F",u[u.G=71]="G",u[u.H=72]="H",u[u.I=73]="I",u[u.J=74]="J",u[u.K=75]="K",u[u.L=76]="L",u[u.M=77]="M",u[u.N=78]="N",u[u.O=79]="O",u[u.P=80]="P",u[u.Q=81]="Q",u[u.R=82]="R",u[u.S=83]="S",u[u.T=84]="T",u[u.U=85]="U",u[u.V=86]="V",u[u.W=87]="W",u[u.X=88]="X",u[u.Y=89]="Y",u[u.Z=90]="Z",u[u.asterisk=42]="asterisk",u[u.backslash=92]="backslash",u[u.closeBrace=125]="closeBrace",u[u.closeBracket=93]="closeBracket",u[u.colon=58]="colon",u[u.comma=44]="comma",u[u.dot=46]="dot",u[u.doubleQuote=34]="doubleQuote",u[u.minus=45]="minus",u[u.openBrace=123]="openBrace",u[u.openBracket=91]="openBracket",u[u.plus=43]="plus",u[u.slash=47]="slash",u[u.formFeed=12]="formFeed",u[u.tab=9]="tab",new Array(20).fill(0).map((a,p)=>" ".repeat(p));let Ut=200;var ce,Oe,Mt;function Ee(a,p=[],g=ce.DEFAULT){let l=null,y=[],v=[];function d(C){Array.isArray(y)?y.push(C):l!==null&&(y[l]=C)}return k(d,"onValue"),be(a,{onObjectBegin:k(()=>{let C={};d(C),v.push(y),y=C,l=null},"onObjectBegin"),onObjectProperty:k(C=>{l=C},"onObjectProperty"),onObjectEnd:k(()=>{y=v.pop()},"onObjectEnd"),onArrayBegin:k(()=>{let C=[];d(C),v.push(y),y=C,l=null},"onArrayBegin"),onArrayEnd:k(()=>{y=v.pop()},"onArrayEnd"),onLiteralValue:d,onError:k((C,S,R)=>{p.push({error:C,offset:S,length:R})},"onError")},g),y[0]}function be(a,p,g=ce.DEFAULT){let l=z(a,!1),y=[],v=0;function d(q){return q?()=>v===0&&q(l.getTokenOffset(),l.getTokenLength(),l.getTokenStartLine(),l.getTokenStartCharacter()):()=>!0}function C(q){return q?nt=>v===0&&q(nt,l.getTokenOffset(),l.getTokenLength(),l.getTokenStartLine(),l.getTokenStartCharacter()):()=>!0}function S(q){return q?nt=>v===0&&q(nt,l.getTokenOffset(),l.getTokenLength(),l.getTokenStartLine(),l.getTokenStartCharacter(),()=>y.slice()):()=>!0}function R(q){return q?()=>{v>0?v++:q(l.getTokenOffset(),l.getTokenLength(),l.getTokenStartLine(),l.getTokenStartCharacter(),()=>y.slice())===!1&&(v=1)}:()=>!0}function W(q){return q?()=>{v>0&&v--,v===0&&q(l.getTokenOffset(),l.getTokenLength(),l.getTokenStartLine(),l.getTokenStartCharacter())}:()=>!0}k(d,"toNoArgVisit"),k(C,"toOneArgVisit"),k(S,"toOneArgVisitWithPath"),k(R,"toBeginVisit"),k(W,"toEndVisit");let $=R(p.onObjectBegin),tt=S(p.onObjectProperty),J=W(p.onObjectEnd),Y=R(p.onArrayBegin),Q=W(p.onArrayEnd),rt=S(p.onLiteralValue),wt=C(p.onSeparator),Nt=d(p.onComment),E=C(p.onError),ht=g&&g.disallowComments,dt=g&&g.allowTrailingComma;function F(){for(;;){let q=l.scan();switch(l.getTokenError()){case 4:I(14);break;case 5:I(15);break;case 3:I(13);break;case 1:ht||I(11);break;case 2:I(12);break;case 6:I(16)}switch(q){case 12:case 13:ht?I(10):Nt();break;case 16:I(1);break;case 15:case 14:break;default:return q}}}function I(q,nt=[],Xe=[]){if(E(q),nt.length+Xe.length>0){let fe=l.getToken();for(;fe!==17;){if(nt.indexOf(fe)!==-1){F();break}if(Xe.indexOf(fe)!==-1)break;fe=F()}}}function Te(q){let nt=l.getTokenValue();return q?rt(nt):(tt(nt),y.push(nt)),F(),!0}function ze(){switch(l.getToken()){case 11:let q=l.getTokenValue(),nt=Number(q);isNaN(nt)&&(I(2),nt=0),rt(nt);break;case 7:rt(null);break;case 8:rt(!0);break;case 9:rt(!1);break;default:return!1}return F(),!0}function Je(){return l.getToken()!==10?(I(3,[],[2,5]),!1):(Te(!1),l.getToken()===6?(wt(":"),F(),Zt()||I(4,[],[2,5])):I(5,[],[2,5]),y.pop(),!0)}function Ye(){$(),F();let q=!1;for(;l.getToken()!==2&&l.getToken()!==17;){if(l.getToken()===5){if(q||I(4,[],[]),wt(","),F(),l.getToken()===2&&dt)break}else q&&I(6,[],[]);Je()||I(4,[],[2,5]),q=!0}return J(),l.getToken()!==2?I(7,[2],[]):F(),!0}function Qe(){Y(),F();let q=!0,nt=!1;for(;l.getToken()!==4&&l.getToken()!==17;){if(l.getToken()===5){if(nt||I(4,[],[]),wt(","),F(),l.getToken()===4&&dt)break}else nt&&I(6,[],[]);q?(y.push(0),q=!1):y[y.length-1]++,Zt()||I(4,[],[4,5]),nt=!0}return Q(),q||y.pop(),l.getToken()!==4?I(8,[4],[]):F(),!0}function Zt(){switch(l.getToken()){case 3:return Qe();case 1:return Ye();case 10:return Te(!0);default:return ze()}}return k(F,"scanNext"),k(I,"handleError"),k(Te,"parseString"),k(ze,"parseLiteral"),k(Je,"parseProperty"),k(Ye,"parseObject"),k(Qe,"parseArray"),k(Zt,"parseValue"),F(),l.getToken()===17?!!g.allowEmptyContent||(I(4,[],[]),!1):Zt()?(l.getToken()!==17&&I(9,[],[]),!0):(I(4,[],[]),!1)}new Array(Ut).fill(0).map((a,p)=>`
|
|
4
|
+
`+" ".repeat(p)),new Array(Ut).fill(0).map((a,p)=>"\r"+" ".repeat(p)),new Array(Ut).fill(0).map((a,p)=>`\r
|
|
5
|
+
`+" ".repeat(p)),new Array(Ut).fill(0).map((a,p)=>`
|
|
6
|
+
`+" ".repeat(p)),new Array(Ut).fill(0).map((a,p)=>"\r"+" ".repeat(p)),new Array(Ut).fill(0).map((a,p)=>`\r
|
|
7
|
+
`+" ".repeat(p)),(function(a){a.DEFAULT={allowTrailingComma:!1}})(ce||(ce={})),k(Ee,"parse$1"),k(be,"visit"),(function(a){a[a.None=0]="None",a[a.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",a[a.UnexpectedEndOfString=2]="UnexpectedEndOfString",a[a.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",a[a.InvalidUnicode=4]="InvalidUnicode",a[a.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",a[a.InvalidCharacter=6]="InvalidCharacter"})(Oe||(Oe={})),(function(a){a[a.OpenBraceToken=1]="OpenBraceToken",a[a.CloseBraceToken=2]="CloseBraceToken",a[a.OpenBracketToken=3]="OpenBracketToken",a[a.CloseBracketToken=4]="CloseBracketToken",a[a.CommaToken=5]="CommaToken",a[a.ColonToken=6]="ColonToken",a[a.NullKeyword=7]="NullKeyword",a[a.TrueKeyword=8]="TrueKeyword",a[a.FalseKeyword=9]="FalseKeyword",a[a.StringLiteral=10]="StringLiteral",a[a.NumericLiteral=11]="NumericLiteral",a[a.LineCommentTrivia=12]="LineCommentTrivia",a[a.BlockCommentTrivia=13]="BlockCommentTrivia",a[a.LineBreakTrivia=14]="LineBreakTrivia",a[a.Trivia=15]="Trivia",a[a.Unknown=16]="Unknown",a[a.EOF=17]="EOF"})(Mt||(Mt={}));let Tt=Ee;var St;(function(a){a[a.InvalidSymbol=1]="InvalidSymbol",a[a.InvalidNumberFormat=2]="InvalidNumberFormat",a[a.PropertyNameExpected=3]="PropertyNameExpected",a[a.ValueExpected=4]="ValueExpected",a[a.ColonExpected=5]="ColonExpected",a[a.CommaExpected=6]="CommaExpected",a[a.CloseBraceExpected=7]="CloseBraceExpected",a[a.CloseBracketExpected=8]="CloseBracketExpected",a[a.EndOfFileExpected=9]="EndOfFileExpected",a[a.InvalidCommentToken=10]="InvalidCommentToken",a[a.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",a[a.UnexpectedEndOfString=12]="UnexpectedEndOfString",a[a.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",a[a.InvalidUnicode=14]="InvalidUnicode",a[a.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",a[a.InvalidCharacter=16]="InvalidCharacter"})(St||(St={}));let De=k((a,p)=>Tt(gt(p,a,"utf8")),"readJsonc"),jt=Symbol("implicitBaseUrl"),xt="${configDir}",Ve=k(()=>{let{findPnpApi:a}=oe;return a&&a(process.cwd())},"getPnpApi"),Yt=k((a,p,g,l)=>{let y=`resolveFromPackageJsonPath:${a}:${p}:${g}`;if(l!=null&&l.has(y))return l.get(y);let v=De(a,l);if(!v)return;let d=p||"tsconfig.json";if(!g&&v.exports)try{let[C]=_e.resolveExports(v.exports,p,["require","types"]);d=C}catch{return!1}else!p&&v.tsconfig&&(d=v.tsconfig);return d=L.join(a,"..",d),l?.set(y,d),d},"resolveFromPackageJsonPath"),he="package.json",Ce="tsconfig.json",ci=k((a,p,g)=>{let l=a;if(a===".."&&(l=L.join(l,Ce)),a[0]==="."&&(l=L.resolve(p,l)),L.isAbsolute(l)){if(Z(g,l)){if(P(g,l).isFile())return l}else if(!l.endsWith(".json")){let J=`${l}.json`;if(Z(g,J))return J}return}let[y,...v]=a.split("/"),d=y[0]==="@"?`${y}/${v.shift()}`:y,C=v.join("/"),S=Ve();if(S){let{resolveRequest:J}=S;try{if(d===a){let Y=J(L.join(d,he),p);if(Y){let Q=Yt(Y,C,!1,g);if(Q&&Z(g,Q))return Q}}else{let Y;try{Y=J(a,p,{extensions:[".json"]})}catch{Y=J(L.join(a,Ce),p)}if(Y)return Y}}catch{}}let R=O(L.resolve(p),L.join("node_modules",d),g);if(!R||!P(g,R).isDirectory())return;let W=L.join(R,he);if(Z(g,W)){let J=Yt(W,C,!1,g);if(J===!1)return;if(J&&Z(g,J)&&P(g,J).isFile())return J}let $=L.join(R,C),tt=$.endsWith(".json");if(!tt){let J=`${$}.json`;if(Z(g,J))return J}if(Z(g,$)){if(P(g,$).isDirectory()){let J=L.join($,he);if(Z(g,J)){let Q=Yt(J,"",!0,g);if(Q&&Z(g,Q))return Q}let Y=L.join($,Ce);if(Z(g,Y))return Y}else if(tt)return $}},"resolveExtendsPath"),le=k((a,p)=>n(L.relative(a,p)),"pathRelative"),pe=["files","include","exclude"],st=k((a,p,g)=>{let l=L.join(p,g);return H(L.relative(a,l))||"./"},"resolveAndRelativize"),Ct=k((a,p,g)=>{let l=L.relative(a,p);return l?H(`${l}/${g.startsWith("./")?g.slice(2):g}`):g},"prefixPattern"),ft=k((a,p,g,l)=>{let y=ci(a,p,l);if(!y)throw new Error(`File '${a}' not found.`);if(g.has(y))throw new Error(`Circularity detected while resolving configuration: ${y}`);g.add(y);let v=L.dirname(y),d=Qt(y,l,g);delete d.references;let{compilerOptions:C}=d;if(C){let{baseUrl:S}=C;S&&!S.startsWith(xt)&&(C.baseUrl=st(p,v,S));let{outDir:R}=C;R&&!R.startsWith(xt)&&(C.outDir=st(p,v,R));let{declarationDir:W}=C;W&&!W.startsWith(xt)&&(C.declarationDir=st(p,v,W));let{rootDir:$}=C;$&&!$.startsWith(xt)&&(C.rootDir=st(p,v,$));let{rootDirs:tt}=C;tt&&(C.rootDirs=tt.map(Y=>Y.startsWith(xt)?Y:st(p,v,Y)));let{typeRoots:J}=C;J&&(C.typeRoots=J.map(Y=>Y.startsWith(xt)?Y:st(p,v,Y)))}for(let S of pe){let R=d[S];R&&(d[S]=R.map(W=>W.startsWith(xt)?W:Ct(p,v,W)))}return d},"resolveExtends"),Ue=["outDir","declarationDir"],Qt=k((a,p,g=new Set)=>{let l;try{l=De(a,p)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${a}`)}if(typeof l!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${a}`);let y=L.dirname(a);if(l.compilerOptions){let{compilerOptions:v}=l;v.paths&&!v.baseUrl&&(v[jt]=y)}if(l.extends){let v=Array.isArray(l.extends)?l.extends:[l.extends];delete l.extends;for(let d of v.reverse()){let C=ft(d,y,new Set(g),p),S={...C,...l,compilerOptions:{...C.compilerOptions,...l.compilerOptions}};C.watchOptions&&(S.watchOptions={...C.watchOptions,...l.watchOptions}),l=S}}if(l.compilerOptions){let{compilerOptions:v}=l,d=["baseUrl","rootDir"];for(let C of d){let S=v[C];if(S&&!S.startsWith(xt)){let R=L.resolve(y,S),W=le(y,R);v[C]=W}}for(let C of Ue){let S=v[C];S&&(Array.isArray(l.exclude)||(l.exclude=Ue.map(R=>v[R]).filter(Boolean)),S.startsWith(xt)||(S=n(S)),v[C]=S)}}else l.compilerOptions={};if(l.include&&(l.include=l.include.map(H)),l.files&&(l.files=l.files.map(v=>v.startsWith(xt)?v:n(v))),l.watchOptions){let{watchOptions:v}=l;v.excludeDirectories&&(v.excludeDirectories=v.excludeDirectories.map(d=>H(L.resolve(y,d)))),v.excludeFiles&&(v.excludeFiles=v.excludeFiles.map(d=>H(L.resolve(y,d)))),v.watchFile&&(v.watchFile=v.watchFile.toLowerCase()),v.watchDirectory&&(v.watchDirectory=v.watchDirectory.toLowerCase()),v.fallbackPolling&&(v.fallbackPolling=v.fallbackPolling.toLowerCase())}return l},"_parseTsconfig"),w=k((a,p)=>{if(a.startsWith(xt))return H(L.join(p,a.slice(12)))},"interpolateConfigDir"),ke=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],hi=k(a=>{if(a.strict){let p=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(let g of p)a[g]===void 0&&(a[g]=!0)}if(a.composite&&(a.declaration!=null||(a.declaration=!0),a.incremental!=null||(a.incremental=!0)),a.target){let p=a.target.toLowerCase();p==="es2015"&&(p="es6"),a.target=p,p==="esnext"&&(a.module!=null||(a.module="es6"),a.useDefineForClassFields!=null||(a.useDefineForClassFields=!0)),(p==="es6"||p==="es2016"||p==="es2017"||p==="es2018"||p==="es2019"||p==="es2020"||p==="es2021"||p==="es2022"||p==="es2023"||p==="es2024")&&(a.module!=null||(a.module="es6")),(p==="es2022"||p==="es2023"||p==="es2024")&&(a.useDefineForClassFields!=null||(a.useDefineForClassFields=!0))}if(a.module){let p=a.module.toLowerCase();if(p==="es2015"&&(p="es6"),a.module=p,(p==="es6"||p==="es2020"||p==="es2022"||p==="esnext"||p==="none"||p==="system"||p==="umd"||p==="amd")&&(a.moduleResolution!=null||(a.moduleResolution="classic")),p==="system"&&(a.allowSyntheticDefaultImports!=null||(a.allowSyntheticDefaultImports=!0)),(p==="node16"||p==="node18"||p==="node20"||p==="nodenext"||p==="preserve")&&(a.esModuleInterop!=null||(a.esModuleInterop=!0),a.allowSyntheticDefaultImports!=null||(a.allowSyntheticDefaultImports=!0)),(p==="node16"||p==="node18"||p==="node20"||p==="nodenext")&&(a.moduleDetection!=null||(a.moduleDetection="force")),p==="node16"&&(a.target!=null||(a.target="es2022"),a.moduleResolution!=null||(a.moduleResolution="node16")),p==="node18"&&(a.target!=null||(a.target="es2022"),a.moduleResolution!=null||(a.moduleResolution="node16")),p==="node20"&&(a.target!=null||(a.target="es2023"),a.moduleResolution!=null||(a.moduleResolution="node16"),a.resolveJsonModule!=null||(a.resolveJsonModule=!0)),p==="nodenext"&&(a.target!=null||(a.target="esnext"),a.moduleResolution!=null||(a.moduleResolution="nodenext"),a.resolveJsonModule!=null||(a.resolveJsonModule=!0)),p==="node16"||p==="node18"||p==="node20"||p==="nodenext"){let g=a.target;(g==="es3"||g==="es2022"||g==="es2023"||g==="es2024"||g==="esnext")&&(a.useDefineForClassFields!=null||(a.useDefineForClassFields=!0))}p==="preserve"&&(a.moduleResolution!=null||(a.moduleResolution="bundler"))}if(a.moduleResolution){let p=a.moduleResolution.toLowerCase();p==="node"&&(p="node10"),a.moduleResolution=p,(p==="node16"||p==="nodenext"||p==="bundler")&&(a.resolvePackageJsonExports!=null||(a.resolvePackageJsonExports=!0),a.resolvePackageJsonImports!=null||(a.resolvePackageJsonImports=!0)),p==="bundler"&&(a.allowSyntheticDefaultImports!=null||(a.allowSyntheticDefaultImports=!0),a.resolveJsonModule!=null||(a.resolveJsonModule=!0))}a.jsx&&(a.jsx=a.jsx.toLowerCase()),a.moduleDetection&&(a.moduleDetection=a.moduleDetection.toLowerCase()),a.importsNotUsedAsValues&&(a.importsNotUsedAsValues=a.importsNotUsedAsValues.toLowerCase()),a.newLine&&(a.newLine=a.newLine.toLowerCase()),a.esModuleInterop&&(a.allowSyntheticDefaultImports!=null||(a.allowSyntheticDefaultImports=!0)),a.verbatimModuleSyntax&&(a.isolatedModules!=null||(a.isolatedModules=!0),a.preserveConstEnums!=null||(a.preserveConstEnums=!0)),a.isolatedModules&&(a.preserveConstEnums!=null||(a.preserveConstEnums=!0)),a.rewriteRelativeImportExtensions&&(a.allowImportingTsExtensions!=null||(a.allowImportingTsExtensions=!0)),a.lib&&(a.lib=a.lib.map(p=>p.toLowerCase())),a.checkJs&&(a.allowJs!=null||(a.allowJs=!0))},"normalizeCompilerOptions"),Me=k((a,p=new Map)=>{let g=L.resolve(a),l=Qt(g,p),y=L.dirname(g),{compilerOptions:v}=l;if(v){for(let C of ke){let S=v[C];if(S){let R=w(S,y);v[C]=R?le(y,R):S}}for(let C of["rootDirs","typeRoots"]){let S=v[C];S&&(v[C]=S.map(R=>{let W=w(R,y);return W?le(y,W):n(R)}))}let{paths:d}=v;if(d)for(let C of Object.keys(d))d[C]=d[C].map(S=>{var R;return(R=w(S,y))!=null?R:S});hi(v)}for(let d of pe){let C=l[d];C&&(l[d]=C.map(S=>{var R;return(R=w(S,y))!=null?R:S}))}return l},"parseTsconfig");var Xt=Object.defineProperty,Wt=k((a,p)=>Xt(a,"name",{value:p,configurable:!0}),"s");let je=Wt(a=>{let p="";for(let g=0;g<a.length;g+=1){let l=a[g],y=l.toUpperCase();p+=l===y?l.toLowerCase():y}return p},"invertCase"),qt=new Map,yt=Wt((a,p)=>{let g=pt.join(a,`.is-fs-case-sensitive-test-${process.pid}`);try{return p.writeFileSync(g,""),!p.existsSync(je(g))}finally{try{p.unlinkSync(g)}catch{}}},"checkDirectoryCaseWithWrite"),kt=Wt((a,p,g)=>{try{return yt(a,g)}catch(l){if(p===void 0)return yt(Vt.tmpdir(),g);throw l}},"checkDirectoryCaseWithFallback"),et=Wt((a,p=Jt,g=!0)=>{let l=a??process.cwd();if(g&&qt.has(l))return qt.get(l);let y,v=je(l);return y=v!==l&&p.existsSync(l)?!p.existsSync(v):kt(l,a,p),g&&qt.set(l,y),y},"isFsCaseSensitive"),{join:Ft}=L.posix,N={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},Fe=k(a=>{let p=[...N.ts],g=[...N.cts],l=[...N.mts];return a!=null&&a.allowJs&&(p.push(".js",".jsx"),g.push(".cjs"),l.push(".mjs")),[...p,...g,...l]},"getSupportedExtensions"),we=k(a=>{let p=[];if(!a)return p;let{outDir:g,declarationDir:l}=a;return g&&p.push(g),l&&p.push(l),p},"getDefaultExcludeSpec"),Be=k(a=>a.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),Gt=`(?!(${["node_modules","bower_components","jspm_packages"].join("|")})(/|$))`,Rt=/(?:^|\/)[^.*?]+$/,$e="**/*",Pt="[^/]",Bt="[^./]",Se=process.platform==="win32",We=k(({config:a,path:p},g=et())=>{if("extends"in a)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");if(!L.isAbsolute(p))throw new Error("The tsconfig path must be absolute");Se&&(p=H(p));let l=L.dirname(p),{files:y,include:v,exclude:d,compilerOptions:C}=a,S=k(Q=>L.isAbsolute(Q)?Q:Ft(l,Q),"resolvePattern"),R=y?.map(S),W=Fe(C),$=g?"":"i",tt=(d||we(C)).map(Q=>{let rt=S(Q),wt=Be(rt).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${Pt}*`).replaceAll(String.raw`\?`,Pt);return new RegExp(`^${wt}($|/)`,$)}),J=y||v?v:[$e],Y=J?J.map(Q=>{let rt=S(Q);Rt.test(rt)&&(rt=Ft(rt,$e));let wt=Be(rt).replaceAll(String.raw`/\*\*`,`(/${Gt}${Bt}${Pt}*)*?`).replaceAll(/(\/)?\\\*/g,(Nt,E)=>{let ht=`(${Bt}|(\\.(?!min\\.js$))?)*`;return E?`/${Gt}${Bt}${ht}`:ht}).replaceAll(/(\/)?\\\?/g,(Nt,E)=>E?`/${Gt}${Pt}`:Pt);return new RegExp(`^${wt}$`,$)}):void 0;return Q=>{if(!L.isAbsolute(Q))throw new Error("filePath must be absolute");return Se&&(Q=H(Q)),R!=null&&R.includes(Q)||W.some(rt=>Q.endsWith(rt))&&!tt.some(rt=>rt.test(Q))&&Y&&Y.some(rt=>rt.test(Q))?a:void 0}},"createFilesMatcher"),ue=k((a,p,g)=>{let l=L.resolve(a),y=H(a);for(;;){let v=O(y,p,g);if(!v)return;let d=L.resolve(v),C=Me(d,g),S={path:H(d),config:C};if(We(S)(l))return S;let R=L.dirname(v),W=L.dirname(R);if(W===R)return;y=W}},"findConfigApplicable"),Ie=k((a=process.cwd(),p="tsconfig.json",g=new Map,l=!1)=>{var y;return l?(y=ue(a,p,g))==null?void 0:y.path:O(H(a),p,g)},"findTsconfig"),li=k((a=process.cwd(),p="tsconfig.json",g=new Map,l=!1)=>{var y;if(!l){let v=Ie(a,p,g);return v?{path:v,config:Me(v,g)}:null}return(y=ue(a,p,g))!=null?y:null},"getTsconfig"),pi=/\*/g,Ae=k((a,p)=>{let g=a.match(pi);if(g&&g.length>1)throw new Error(p)},"assertStarCount"),qe=k(a=>{if(a.includes("*")){let[p,g]=a.split("*");return{prefix:p,suffix:g}}return a},"parsePattern"),Ge=k(({prefix:a,suffix:p},g)=>g.startsWith(a)&&g.endsWith(p),"isPatternMatch"),Ke=k((a,p,g)=>Object.entries(a).map(([l,y])=>(Ae(l,`Pattern '${l}' can have at most one '*' character.`),{pattern:qe(l),substitutions:y.map(v=>{if(Ae(v,`Substitution '${v}' in pattern '${l}' can have at most one '*' character.`),!p&&!A.test(v)&&!L.isAbsolute(v))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return L.resolve(g,v)})})),"parsePaths"),He=k(a=>{let{compilerOptions:p}=a.config;if(!p)return null;let{baseUrl:g,paths:l}=p;if(!g&&!l)return null;let y=jt in p&&p[jt],v=L.resolve(L.dirname(a.path),g||y||"."),d=l?Ke(l,g,v):[];return C=>{if(A.test(C))return[];let S=[];for(let tt of d){if(tt.pattern===C)return tt.substitutions.map(H);typeof tt.pattern!="string"&&S.push(tt)}let R,W=-1;for(let tt of S)Ge(tt.pattern,C)&&tt.pattern.prefix.length>W&&(W=tt.pattern.prefix.length,R=tt);if(!R)return g?[H(L.join(v,C))]:[];let $=C.slice(R.pattern.prefix.length,C.length-R.pattern.suffix.length);return R.substitutions.map(tt=>H(tt.replace("*",$)))}},"createPathsMatcher");X.createPathsMatcher=He,X.getTsconfig=li},"./node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.cjs"(B,X){"use strict";Object.defineProperty(X,"__esModule",{value:!0});let at=P=>P!==null&&typeof P=="object",vt=(P,O)=>Object.assign(new Error(`[${P}]: ${O}`),{code:P}),k="ERR_INVALID_PACKAGE_CONFIG",L="ERR_INVALID_PACKAGE_TARGET",ae=/^\d+$/,oe=/^(\.{1,2}|node_modules)$/i,_e=/\/|\\/;var Jt,Vt=((Jt=Vt||{}).Export="exports",Jt.Import="imports",Jt);let pt=(P,O,A,n,z)=>{if(O==null)return[];if(typeof O=="string"){let[it,...ot]=O.split(_e);if(it===".."||ot.some(ut=>oe.test(ut)))throw vt(L,`Invalid "${P}" target "${O}" defined in the package config`);return[z?O.replace(/\*/g,z):O]}if(Array.isArray(O))return O.flatMap(it=>pt(P,it,A,n,z));if(at(O)){for(let it of Object.keys(O)){if(ae.test(it))throw vt(k,"Cannot contain numeric property keys");if(it==="default"||n.includes(it))return pt(P,O[it],A,n,z)}return[]}throw vt(L,`Invalid "${P}" target "${O}"`)},H="*",M=(P,O)=>{let A=P.indexOf(H),n=O.indexOf(H);return A===n?O.length>P.length:n>A};function Z(P,O){if(!O.includes(H)&&P.hasOwnProperty(O))return[O];let A,n;for(let z of Object.keys(P))if(z.includes(H)){let[it,ot,ut]=z.split(H);if(ut===void 0&&O.startsWith(it)&&O.endsWith(ot)){let At=O.slice(it.length,-ot.length||void 0);At&&(!A||M(A,z))&&(A=z,n=At)}}return[A,n]}let gt=/^\w+:/;X.resolveExports=(P,O,A)=>{if(!P)throw new Error('"exports" is required');O=O===""?".":`./${O}`,(typeof P=="string"||Array.isArray(P)||at(P)&&(ot=>Object.keys(ot).reduce((ut,At)=>{let u=At===""||At[0]!==".";if(ut===void 0||ut===u)return u;throw vt(k,'"exports" cannot contain some keys starting with "." and some not')},void 0))(P))&&(P={".":P});let[n,z]=Z(P,O),it=pt(Vt.Export,P[n],O,A,z);if(it.length===0)throw vt("ERR_PACKAGE_PATH_NOT_EXPORTED",O==="."?'No "exports" main defined':`Package subpath '${O}' is not defined by "exports"`);for(let ot of it)if(!ot.startsWith("./")&&!gt.test(ot))throw vt(L,`Invalid "exports" target "${ot}" defined in the package config`);return it},X.resolveImports=(P,O,A)=>{if(!P)throw new Error('"imports" is required');let[n,z]=Z(P,O),it=pt(Vt.Import,P[n],O,A,z);if(it.length===0)throw vt("ERR_PACKAGE_IMPORT_NOT_DEFINED",`Package import specifier "${O}" is not defined in package`);return it}}},zt={};function bt(B){var X=zt[B];if(X!==void 0)return X.exports;var at=zt[B]={exports:{}};return Dt[B](at,at.exports,bt),at.exports}bt.n=B=>{var X=B&&B.__esModule?()=>B.default:()=>B;return bt.d(X,{a:X}),X},bt.d=(B,X)=>{for(var at in X)bt.o(X,at)&&!bt.o(B,at)&&Object.defineProperty(B,at,{enumerable:!0,get:X[at]})},bt.o=(B,X)=>Object.prototype.hasOwnProperty.call(B,X);var Ri={};(()=>{"use strict";bt.d(Ri,{default:()=>gs});let B=mt("os");var X=[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,78,5,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,199,7,137,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,55,9,266,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,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],at=[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,7,25,39,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,5,57,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,24,43,261,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,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],vt="\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-\u088F\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\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-\uA7DC\uA7F1-\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",k={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},L="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",ae={5:L,"5module":L+" export import",6:L+" const class extends export import super"},oe=/^in(stanceof)?$/,_e=new RegExp("["+vt+"]"),Jt=new RegExp("["+vt+"\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\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-\u1ADD\u1AE0-\u1AEB\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]");function Vt(t,e){for(var i=65536,s=0;s<e.length;s+=2){if((i+=e[s])>t)return!1;if((i+=e[s+1])>=t)return!0}return!1}function pt(t,e){return t<65?t===36:t<91||(t<97?t===95:t<123||(t<=65535?t>=170&&_e.test(String.fromCharCode(t)):e!==!1&&Vt(t,at)))}function H(t,e){return t<48?t===36:t<58||!(t<65)&&(t<91||(t<97?t===95:t<123||(t<=65535?t>=170&&Jt.test(String.fromCharCode(t)):e!==!1&&(Vt(t,at)||Vt(t,X)))))}var M=function(t,e){e===void 0&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function Z(t,e){return new M(t,{beforeExpr:!0,binop:e})}var gt={beforeExpr:!0},P={startsExpr:!0},O={};function A(t,e){return e===void 0&&(e={}),e.keyword=t,O[t]=new M(t,e)}var n={num:new M("num",P),regexp:new M("regexp",P),string:new M("string",P),name:new M("name",P),privateId:new M("privateId",P),eof:new M("eof"),bracketL:new M("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new M("]"),braceL:new M("{",{beforeExpr:!0,startsExpr:!0}),braceR:new M("}"),parenL:new M("(",{beforeExpr:!0,startsExpr:!0}),parenR:new M(")"),comma:new M(",",gt),semi:new M(";",gt),colon:new M(":",gt),dot:new M("."),question:new M("?",gt),questionDot:new M("?."),arrow:new M("=>",gt),template:new M("template"),invalidTemplate:new M("invalidTemplate"),ellipsis:new M("...",gt),backQuote:new M("`",P),dollarBraceL:new M("${",{beforeExpr:!0,startsExpr:!0}),eq:new M("=",{beforeExpr:!0,isAssign:!0}),assign:new M("_=",{beforeExpr:!0,isAssign:!0}),incDec:new M("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new M("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Z("||",1),logicalAND:Z("&&",2),bitwiseOR:Z("|",3),bitwiseXOR:Z("^",4),bitwiseAND:Z("&",5),equality:Z("==/!=/===/!==",6),relational:Z("</>/<=/>=",7),bitShift:Z("<</>>/>>>",8),plusMin:new M("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Z("%",10),star:Z("*",10),slash:Z("/",10),starstar:new M("**",{beforeExpr:!0}),coalesce:Z("??",1),_break:A("break"),_case:A("case",gt),_catch:A("catch"),_continue:A("continue"),_debugger:A("debugger"),_default:A("default",gt),_do:A("do",{isLoop:!0,beforeExpr:!0}),_else:A("else",gt),_finally:A("finally"),_for:A("for",{isLoop:!0}),_function:A("function",P),_if:A("if"),_return:A("return",gt),_switch:A("switch"),_throw:A("throw",gt),_try:A("try"),_var:A("var"),_const:A("const"),_while:A("while",{isLoop:!0}),_with:A("with"),_new:A("new",{beforeExpr:!0,startsExpr:!0}),_this:A("this",P),_super:A("super",P),_class:A("class",P),_extends:A("extends",gt),_export:A("export"),_import:A("import",P),_null:A("null",P),_true:A("true",P),_false:A("false",P),_in:A("in",{beforeExpr:!0,binop:7}),_instanceof:A("instanceof",{beforeExpr:!0,binop:7}),_typeof:A("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:A("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:A("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},z=/\r\n?|\n|\u2028|\u2029/,it=new RegExp(z.source,"g");function ot(t){return t===10||t===13||t===8232||t===8233}function ut(t,e,i){i===void 0&&(i=t.length);for(var s=e;s<i;s++){var r=t.charCodeAt(s);if(ot(r))return s<i-1&&r===13&&t.charCodeAt(s+1)===10?s+2:s+1}return-1}var At=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,u=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ut=Object.prototype,ce=Ut.hasOwnProperty,Oe=Ut.toString,Mt=Object.hasOwn||function(t,e){return ce.call(t,e)},Ee=Array.isArray||function(t){return Oe.call(t)==="[object Array]"},be=Object.create(null);function Tt(t){return be[t]||(be[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function St(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}var De=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,jt=function(t,e){this.line=t,this.column=e};jt.prototype.offset=function(t){return new jt(this.line,this.column+t)};var xt=function(t,e,i){this.start=e,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)};function Ve(t,e){for(var i=1,s=0;;){var r=ut(t,s,e);if(r<0)return new jt(i,e-s);++i,s=r}}var Yt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},he=!1;function Ce(t){var e={};for(var i in Yt)e[i]=t&&Mt(t,i)?t[i]:Yt[i];if(e.ecmaVersion==="latest"?e.ecmaVersion=1e8:e.ecmaVersion==null?(!he&&typeof console=="object"&&console.warn&&(he=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
8
|
+
Defaulting to 2020, but this will stop working in the future.`)),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),e.allowReserved==null&&(e.allowReserved=e.ecmaVersion<5),t&&t.allowHashBang!=null||(e.allowHashBang=e.ecmaVersion>=14),Ee(e.onToken)){var s=e.onToken;e.onToken=function(r){return s.push(r)}}if(Ee(e.onComment)&&(e.onComment=(function(r,o){return function(c,h,f,x,m,b){var _={type:c?"Block":"Line",value:h,start:f,end:x};r.locations&&(_.loc=new xt(this,m,b)),r.ranges&&(_.range=[f,x]),o.push(_)}})(e,e.onComment)),e.sourceType==="commonjs"&&e.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return e}var ci=256,le=259;function pe(t,e){return 2|(t?4:0)|(e?8:0)}var st=function(t,e,i){this.options=t=Ce(t),this.sourceFile=t.sourceFile,this.keywords=Tt(ae[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var s="";t.allowReserved!==!0&&(s=k[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(s+=" await")),this.reservedWords=Tt(s);var r=(s?s+" ":"")+k.strict;this.reservedWordsStrict=Tt(r),this.reservedWordsStrictBind=Tt(r+" "+k.strictBind),this.input=String(e),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(`
|
|
9
|
+
`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(z).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=n.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?2:1),this.regexpState=null,this.privateNameStack=[]},Ct={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};st.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},Ct.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Ct.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},Ct.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},Ct.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t].flags;if(768&e)return!1;if(2&e)return(4&e)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Ct.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&1&this.currentVarScope().flags)},Ct.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},Ct.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Ct.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ct.allowNewDotTarget.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t].flags;if(768&e||2&e&&!(16&e))return!0}return!1},Ct.allowUsing.get=function(){var t=this.currentScope().flags;return!(1024&t)&&!(!this.inModule&&1&t)},Ct.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ci)>0},st.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=this,s=0;s<t.length;s++)i=t[s](i);return i},st.parse=function(t,e){return new this(e,t).parse()},st.parseExpressionAt=function(t,e,i){var s=new this(i,t,e);return s.nextToken(),s.parseExpression()},st.tokenizer=function(t,e){return new this(e,t)},Object.defineProperties(st.prototype,Ct);var ft=st.prototype,Ue=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ft.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){u.lastIndex=t,t+=u.exec(this.input)[0].length;var e=Ue.exec(this.input.slice(t));if(!e)return!1;if((e[1]||e[2])==="use strict"){u.lastIndex=t+e[0].length;var i=u.exec(this.input),s=i.index+i[0].length,r=this.input.charAt(s);return r===";"||r==="}"||z.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||r==="!"&&this.input.charAt(s+1)==="=")}t+=e[0].length,u.lastIndex=t,t+=u.exec(this.input)[0].length,this.input[t]===";"&&t++}},ft.eat=function(t){return this.type===t&&(this.next(),!0)},ft.isContextual=function(t){return this.type===n.name&&this.value===t&&!this.containsEsc},ft.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},ft.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},ft.canInsertSemicolon=function(){return this.type===n.eof||this.type===n.braceR||z.test(this.input.slice(this.lastTokEnd,this.start))},ft.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ft.semicolon=function(){this.eat(n.semi)||this.insertSemicolon()||this.unexpected()},ft.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},ft.expect=function(t){this.eat(t)||this.unexpected()},ft.unexpected=function(t){this.raise(t??this.start,"Unexpected token")};var Qt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ft.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var i=e?t.parenthesizedAssign:t.parenthesizedBind;i>-1&&this.raiseRecoverable(i,e?"Assigning to rvalue":"Parenthesized pattern")}},ft.checkExpressionErrors=function(t,e){if(!t)return!1;var i=t.shorthandAssign,s=t.doubleProto;if(!e)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},ft.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},ft.isSimpleAssignTarget=function(t){return t.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(t.expression):t.type==="Identifier"||t.type==="MemberExpression"};var w=st.prototype;w.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==n.eof;){var i=this.parseStatement(null,!0,e);t.body.push(i)}if(this.inModule)for(var s=0,r=Object.keys(this.undefinedExports);s<r.length;s+=1){var o=r[s];this.raiseRecoverable(this.undefinedExports[o].start,"Export '"+o+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(t,"Program")};var ke={kind:"loop"},hi={kind:"switch"};w.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;u.lastIndex=this.pos;var e=u.exec(this.input),i=this.pos+e[0].length,s=this.fullCharCodeAt(i);if(s===91||s===92)return!0;if(t)return!1;if(s===123)return!0;if(pt(s)){var r=i;do i+=s<=65535?1:2;while(H(s=this.fullCharCodeAt(i)));if(s===92)return!0;var o=this.input.slice(r,i);if(!oe.test(o))return!0}return!1},w.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;u.lastIndex=this.pos;var t,e=u.exec(this.input),i=this.pos+e[0].length;return!(z.test(this.input.slice(this.pos,i))||this.input.slice(i,i+8)!=="function"||i+8!==this.input.length&&(H(t=this.fullCharCodeAt(i+8))||t===92))},w.isUsingKeyword=function(t,e){if(this.options.ecmaVersion<17||!this.isContextual(t?"await":"using"))return!1;u.lastIndex=this.pos;var i=u.exec(this.input),s=this.pos+i[0].length;if(z.test(this.input.slice(this.pos,s)))return!1;if(t){var r,o=s+5;if(this.input.slice(s,o)!=="using"||o===this.input.length||H(r=this.fullCharCodeAt(o))||r===92)return!1;u.lastIndex=o;var c=u.exec(this.input);if(s=o+c[0].length,c&&z.test(this.input.slice(o,s)))return!1}var h=this.fullCharCodeAt(s);if(!pt(h)&&h!==92)return!1;var f=s;do s+=h<=65535?1:2;while(H(h=this.fullCharCodeAt(s)));if(h===92)return!0;var x=this.input.slice(f,s);return!(oe.test(x)||e&&x==="of")},w.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)},w.isUsing=function(t){return this.isUsingKeyword(!1,t)},w.parseStatement=function(t,e,i){var s,r=this.type,o=this.startNode();switch(this.isLet(t)&&(r=n._var,s="let"),r){case n._break:case n._continue:return this.parseBreakContinueStatement(o,r.keyword);case n._debugger:return this.parseDebuggerStatement(o);case n._do:return this.parseDoStatement(o);case n._for:return this.parseForStatement(o);case n._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1,!t);case n._class:return t&&this.unexpected(),this.parseClass(o,!0);case n._if:return this.parseIfStatement(o);case n._return:return this.parseReturnStatement(o);case n._switch:return this.parseSwitchStatement(o);case n._throw:return this.parseThrowStatement(o);case n._try:return this.parseTryStatement(o);case n._const:case n._var:return s=s||this.value,t&&s!=="var"&&this.unexpected(),this.parseVarStatement(o,s);case n._while:return this.parseWhileStatement(o);case n._with:return this.parseWithStatement(o);case n.braceL:return this.parseBlock(!0,o);case n.semi:return this.parseEmptyStatement(o);case n._export:case n._import:if(this.options.ecmaVersion>10&&r===n._import){u.lastIndex=this.pos;var c=u.exec(this.input),h=this.pos+c[0].length,f=this.input.charCodeAt(h);if(f===40||f===46)return this.parseExpressionStatement(o,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===n._import?this.parseImport(o):this.parseExport(o,i);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(o,!0,!t);var x=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(x)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),x==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(o,!1,x),this.semicolon(),this.finishNode(o,"VariableDeclaration");var m=this.value,b=this.parseExpression();return r===n.name&&b.type==="Identifier"&&this.eat(n.colon)?this.parseLabeledStatement(o,m,b,t):this.parseExpressionStatement(o,b)}},w.parseBreakContinueStatement=function(t,e){var i=e==="break";this.next(),this.eat(n.semi)||this.insertSemicolon()?t.label=null:this.type!==n.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var r=this.labels[s];if((t.label==null||r.name===t.label.name)&&(r.kind!=null&&(i||r.kind==="loop")||t.label&&i))break}return s===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,i?"BreakStatement":"ContinueStatement")},w.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},w.parseDoStatement=function(t){return this.next(),this.labels.push(ke),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(n._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(n.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},w.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ke),this.enterScope(0),this.expect(n.parenL),this.type===n.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var i=this.isLet();if(this.type===n._var||this.type===n._const||i){var s=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),this.parseForAfterInit(t,s,e)}var o=this.isContextual("let"),c=!1,h=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(h){var f=this.startNode();return this.next(),h==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(f,!0,h),this.finishNode(f,"VariableDeclaration"),this.parseForAfterInit(t,f,e)}var x=this.containsEsc,m=new Qt,b=this.start,_=e>-1?this.parseExprSubscripts(m,"await"):this.parseExpression(!0,m);return this.type===n._in||(c=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===n._in&&this.unexpected(e),t.await=!0):c&&this.options.ecmaVersion>=8&&(_.start!==b||x||_.type!=="Identifier"||_.name!=="async"?this.options.ecmaVersion>=9&&(t.await=!1):this.unexpected()),o&&c&&this.raise(_.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(_,!1,m),this.checkLValPattern(_),this.parseForIn(t,_)):(this.checkExpressionErrors(m,!0),e>-1&&this.unexpected(e),this.parseFor(t,_))},w.parseForAfterInit=function(t,e,i){return(this.type===n._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&e.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===n._in?i>-1&&this.unexpected(i):t.await=i>-1),this.parseForIn(t,e)):(i>-1&&this.unexpected(i),this.parseFor(t,e))},w.parseFunctionStatement=function(t,e,i){return this.next(),this.parseFunction(t,Xt|(i?0:Wt),!1,e)},w.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(n._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},w.parseReturnStatement=function(t){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(n.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},w.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(n.braceL),this.labels.push(hi),this.enterScope(1024);for(var i=!1;this.type!==n.braceR;)if(this.type===n._case||this.type===n._default){var s=this.type===n._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),s?e.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(n.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},w.parseThrowStatement=function(t){return this.next(),z.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var Me=[];w.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e=t.type==="Identifier";return this.enterScope(e?32:0),this.checkLValPattern(t,e?4:2),this.expect(n.parenR),t},w.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===n._catch){var e=this.startNode();this.next(),this.eat(n.parenL)?e.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0)),e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(n._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},w.parseVarStatement=function(t,e,i){return this.next(),this.parseVar(t,!1,e,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")},w.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(ke),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},w.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")},w.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},w.parseLabeledStatement=function(t,e,i,s){for(var r=0,o=this.labels;r<o.length;r+=1)o[r].name===e&&this.raise(i.start,"Label '"+e+"' is already declared");for(var c=this.type.isLoop?"loop":this.type===n._switch?"switch":null,h=this.labels.length-1;h>=0;h--){var f=this.labels[h];if(f.statementStart!==t.start)break;f.statementStart=this.start,f.kind=c}return this.labels.push({name:e,kind:c,statementStart:this.start}),t.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")},w.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},w.parseBlock=function(t,e,i){for(t===void 0&&(t=!0),e===void 0&&(e=this.startNode()),e.body=[],this.expect(n.braceL),t&&this.enterScope(0);this.type!==n.braceR;){var s=this.parseStatement(null);e.body.push(s)}return i&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},w.parseFor=function(t,e){return t.init=e,this.expect(n.semi),t.test=this.type===n.semi?null:this.parseExpression(),this.expect(n.semi),t.update=this.type===n.parenR?null:this.parseExpression(),this.expect(n.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},w.parseForIn=function(t,e){var i=this.type===n._in;return this.next(),e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(e.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(n.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")},w.parseVar=function(t,e,i,s){for(t.declarations=[],t.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(n.eq)?r.init=this.parseMaybeAssign(e):s||i!=="const"||this.type===n._in||this.options.ecmaVersion>=6&&this.isContextual("of")?s||i!=="using"&&i!=="await using"||!(this.options.ecmaVersion>=17)||this.type===n._in||this.isContextual("of")?s||r.id.type==="Identifier"||e&&(this.type===n._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+i+" declaration"):this.unexpected(),t.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(n.comma))break}return t},w.parseVarId=function(t,e){t.id=e==="using"||e==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(t.id,e==="var"?1:2,!1)};var Xt=1,Wt=2;function je(t,e){var i=e.key.name,s=t[i],r="true";return e.type!=="MethodDefinition"||e.kind!=="get"&&e.kind!=="set"||(r=(e.static?"s":"i")+e.kind),s==="iget"&&r==="iset"||s==="iset"&&r==="iget"||s==="sget"&&r==="sset"||s==="sset"&&r==="sget"?(t[i]="true",!1):!!s||(t[i]=r,!1)}function qt(t,e){var i=t.computed,s=t.key;return!i&&(s.type==="Identifier"&&s.name===e||s.type==="Literal"&&s.value===e)}w.parseFunction=function(t,e,i,s,r){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===n.star&&e&Wt&&this.unexpected(),t.generator=this.eat(n.star)),this.options.ecmaVersion>=8&&(t.async=!!s),e&Xt&&(t.id=4&e&&this.type!==n.name?null:this.parseIdent(),!t.id||e&Wt||this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var o=this.yieldPos,c=this.awaitPos,h=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(pe(t.async,t.generator)),e&Xt||(t.id=this.type===n.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,i,!1,r),this.yieldPos=o,this.awaitPos=c,this.awaitIdentPos=h,this.finishNode(t,e&Xt?"FunctionDeclaration":"FunctionExpression")},w.parseFunctionParams=function(t){this.expect(n.parenL),t.params=this.parseBindingList(n.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},w.parseClass=function(t,e){this.next();var i=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var s=this.enterClassBody(),r=this.startNode(),o=!1;for(r.body=[],this.expect(n.braceL);this.type!==n.braceR;){var c=this.parseClassElement(t.superClass!==null);c&&(r.body.push(c),c.type==="MethodDefinition"&&c.kind==="constructor"?(o&&this.raiseRecoverable(c.start,"Duplicate constructor in the same class"),o=!0):c.key&&c.key.type==="PrivateIdentifier"&&je(s,c)&&this.raiseRecoverable(c.key.start,"Identifier '#"+c.key.name+"' has already been declared"))}return this.strict=i,this.next(),t.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},w.parseClassElement=function(t){if(this.eat(n.semi))return null;var e=this.options.ecmaVersion,i=this.startNode(),s="",r=!1,o=!1,c="method",h=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(n.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===n.star?h=!0:s="static"}if(i.static=h,!s&&e>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==n.star||this.canInsertSemicolon()?s="async":o=!0),!s&&(e>=9||!o)&&this.eat(n.star)&&(r=!0),!s&&!o&&!r){var f=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?c=f:s=f)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),e<13||this.type===n.parenL||c!=="method"||r||o){var x=!i.static&&qt(i,"constructor"),m=x&&t;x&&c!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=x?"constructor":c,this.parseClassMethod(i,r,o,m)}else this.parseClassField(i);return i},w.isClassElementNameStart=function(){return this.type===n.name||this.type===n.privateId||this.type===n.num||this.type===n.string||this.type===n.bracketL||this.type.keyword},w.parseClassElementName=function(t){this.type===n.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)},w.parseClassMethod=function(t,e,i,s){var r=t.key;t.kind==="constructor"?(e&&this.raise(r.start,"Constructor can't be a generator"),i&&this.raise(r.start,"Constructor can't be an async method")):t.static&&qt(t,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var o=t.value=this.parseMethod(e,i,s);return t.kind==="get"&&o.params.length!==0&&this.raiseRecoverable(o.start,"getter should have no params"),t.kind==="set"&&o.params.length!==1&&this.raiseRecoverable(o.start,"setter should have exactly one param"),t.kind==="set"&&o.params[0].type==="RestElement"&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},w.parseClassField=function(t){return qt(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&qt(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(n.eq)?(this.enterScope(576),t.value=this.parseMaybeAssign(),this.exitScope()):t.value=null,this.semicolon(),this.finishNode(t,"PropertyDefinition")},w.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(320);this.type!==n.braceR;){var i=this.parseStatement(null);t.body.push(i)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},w.parseClassId=function(t,e){this.type===n.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(e===!0&&this.unexpected(),t.id=null)},w.parseClassSuper=function(t){t.superClass=this.eat(n._extends)?this.parseExprSubscripts(null,!1):null},w.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},w.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,i=t.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,r=s===0?null:this.privateNameStack[s-1],o=0;o<i.length;++o){var c=i[o];Mt(e,c.name)||(r?r.used.push(c):this.raiseRecoverable(c.start,"Private field '#"+c.name+"' must be declared in an enclosing class"))}},w.parseExportAllDeclaration=function(t,e){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==n.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},w.parseExport=function(t,e){if(this.next(),this.eat(n.star))return this.parseExportAllDeclaration(t,e);if(this.eat(n._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),t.declaration.type==="VariableDeclaration"?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[]);else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==n.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause());else{for(var i=0,s=t.specifiers;i<s.length;i+=1){var r=s[i];this.checkUnreserved(r.local),this.checkLocalExport(r.local),r.local.type==="Literal"&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without `from`.")}t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[])}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")},w.parseExportDeclaration=function(t){return this.parseStatement(null)},w.parseExportDefaultDeclaration=function(){var t;if(this.type===n._function||(t=this.isAsyncFunction())){var e=this.startNode();return this.next(),t&&this.next(),this.parseFunction(e,4|Xt,!1,t)}if(this.type===n._class){var i=this.startNode();return this.parseClass(i,"nullableID")}var s=this.parseMaybeAssign();return this.semicolon(),s},w.checkExport=function(t,e,i){t&&(typeof e!="string"&&(e=e.type==="Identifier"?e.name:e.value),Mt(t,e)&&this.raiseRecoverable(i,"Duplicate export '"+e+"'"),t[e]=!0)},w.checkPatternExport=function(t,e){var i=e.type;if(i==="Identifier")this.checkExport(t,e,e.start);else if(i==="ObjectPattern")for(var s=0,r=e.properties;s<r.length;s+=1){var o=r[s];this.checkPatternExport(t,o)}else if(i==="ArrayPattern")for(var c=0,h=e.elements;c<h.length;c+=1){var f=h[c];f&&this.checkPatternExport(t,f)}else i==="Property"?this.checkPatternExport(t,e.value):i==="AssignmentPattern"?this.checkPatternExport(t,e.left):i==="RestElement"&&this.checkPatternExport(t,e.argument)},w.checkVariableExport=function(t,e){if(t)for(var i=0,s=e;i<s.length;i+=1){var r=s[i];this.checkPatternExport(t,r.id)}},w.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},w.parseExportSpecifier=function(t){var e=this.startNode();return e.local=this.parseModuleExportName(),e.exported=this.eatContextual("as")?this.parseModuleExportName():e.local,this.checkExport(t,e.exported,e.exported.start),this.finishNode(e,"ExportSpecifier")},w.parseExportSpecifiers=function(t){var e=[],i=!0;for(this.expect(n.braceL);!this.eat(n.braceR);){if(i)i=!1;else if(this.expect(n.comma),this.afterTrailingComma(n.braceR))break;e.push(this.parseExportSpecifier(t))}return e},w.parseImport=function(t){return this.next(),this.type===n.string?(t.specifiers=Me,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===n.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},w.parseImportSpecifier=function(){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.eatContextual("as")?t.local=this.parseIdent():(this.checkUnreserved(t.imported),t.local=t.imported),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportSpecifier")},w.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportDefaultSpecifier")},w.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportNamespaceSpecifier")},w.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===n.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(n.comma)))return t;if(this.type===n.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(n.braceL);!this.eat(n.braceR);){if(e)e=!1;else if(this.expect(n.comma),this.afterTrailingComma(n.braceR))break;t.push(this.parseImportSpecifier())}return t},w.parseWithClause=function(){var t=[];if(!this.eat(n._with))return t;this.expect(n.braceL);for(var e={},i=!0;!this.eat(n.braceR);){if(i)i=!1;else if(this.expect(n.comma),this.afterTrailingComma(n.braceR))break;var s=this.parseImportAttribute(),r=s.key.type==="Identifier"?s.key.name:s.key.value;Mt(e,r)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+r+"'"),e[r]=!0,t.push(s)}return t},w.parseImportAttribute=function(){var t=this.startNode();return t.key=this.type===n.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(n.colon),this.type!==n.string&&this.unexpected(),t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")},w.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===n.string){var t=this.parseLiteral(this.value);return De.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},w.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)},w.isDirectiveCandidate=function(t){return this.options.ecmaVersion>=5&&t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&(this.input[t.start]==='"'||this.input[t.start]==="'")};var yt=st.prototype;yt.toAssignable=function(t,e,i){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&t.name==="await"&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,r=t.properties;s<r.length;s+=1){var o=r[s];this.toAssignable(o,e),o.type!=="RestElement"||o.argument.type!=="ArrayPattern"&&o.argument.type!=="ObjectPattern"||this.raise(o.argument.start,"Unexpected token")}break;case"Property":t.kind!=="init"&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),t.argument.type==="AssignmentPattern"&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":t.operator!=="="&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,i);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return t},yt.toAssignableList=function(t,e){for(var i=t.length,s=0;s<i;s++){var r=t[s];r&&this.toAssignable(r,e)}if(i){var o=t[i-1];this.options.ecmaVersion===6&&e&&o&&o.type==="RestElement"&&o.argument.type!=="Identifier"&&this.unexpected(o.argument.start)}return t},yt.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},yt.parseRestBinding=function(){var t=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==n.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},yt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case n.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(n.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case n.braceL:return this.parseObj(!0)}return this.parseIdent()},yt.parseBindingList=function(t,e,i,s){for(var r=[],o=!0;!this.eat(t);)if(o?o=!1:this.expect(n.comma),e&&this.type===n.comma)r.push(null);else{if(i&&this.afterTrailingComma(t))break;if(this.type===n.ellipsis){var c=this.parseRestBinding();this.parseBindingListItem(c),r.push(c),this.type===n.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}r.push(this.parseAssignableListItem(s))}return r},yt.parseAssignableListItem=function(t){var e=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(e),e},yt.parseBindingListItem=function(t){return t},yt.parseMaybeDefault=function(t,e,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(n.eq))return i;var s=this.startNodeAt(t,e);return s.left=i,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},yt.checkLValSimple=function(t,e,i){e===void 0&&(e=0);var s=e!==0;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(s?"Binding ":"Assigning to ")+t.name+" in strict mode"),s&&(e===2&&t.name==="let"&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),i&&(Mt(i,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),i[t.name]=!0),e!==5&&this.declareName(t.name,e,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,i);default:this.raise(t.start,(s?"Binding":"Assigning to")+" rvalue")}},yt.checkLValPattern=function(t,e,i){switch(e===void 0&&(e=0),t.type){case"ObjectPattern":for(var s=0,r=t.properties;s<r.length;s+=1){var o=r[s];this.checkLValInnerPattern(o,e,i)}break;case"ArrayPattern":for(var c=0,h=t.elements;c<h.length;c+=1){var f=h[c];f&&this.checkLValInnerPattern(f,e,i)}break;default:this.checkLValSimple(t,e,i)}},yt.checkLValInnerPattern=function(t,e,i){switch(e===void 0&&(e=0),t.type){case"Property":this.checkLValInnerPattern(t.value,e,i);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,i);break;case"RestElement":this.checkLValPattern(t.argument,e,i);break;default:this.checkLValPattern(t,e,i)}};var kt=function(t,e,i,s,r){this.token=t,this.isExpr=!!e,this.preserveSpace=!!i,this.override=s,this.generator=!!r},et={b_stat:new kt("{",!1),b_expr:new kt("{",!0),b_tmpl:new kt("${",!1),p_stat:new kt("(",!1),p_expr:new kt("(",!0),q_tmpl:new kt("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new kt("function",!1),f_expr:new kt("function",!0),f_expr_gen:new kt("function",!0,!1,null,!0),f_gen:new kt("function",!1,!1,null,!0)},Ft=st.prototype;Ft.initialContext=function(){return[et.b_stat]},Ft.curContext=function(){return this.context[this.context.length-1]},Ft.braceIsBlock=function(t){var e=this.curContext();return e===et.f_expr||e===et.f_stat||(t!==n.colon||e!==et.b_stat&&e!==et.b_expr?t===n._return||t===n.name&&this.exprAllowed?z.test(this.input.slice(this.lastTokEnd,this.start)):t===n._else||t===n.semi||t===n.eof||t===n.parenR||t===n.arrow||(t===n.braceL?e===et.b_stat:t!==n._var&&t!==n._const&&t!==n.name&&!this.exprAllowed):!e.isExpr)},Ft.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if(e.token==="function")return e.generator}return!1},Ft.updateContext=function(t){var e,i=this.type;i.keyword&&t===n.dot?this.exprAllowed=!1:(e=i.updateContext)?e.call(this,t):this.exprAllowed=i.beforeExpr},Ft.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)},n.parenR.updateContext=n.braceR.updateContext=function(){if(this.context.length!==1){var t=this.context.pop();t===et.b_stat&&this.curContext().token==="function"&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},n.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?et.b_stat:et.b_expr),this.exprAllowed=!0},n.dollarBraceL.updateContext=function(){this.context.push(et.b_tmpl),this.exprAllowed=!0},n.parenL.updateContext=function(t){var e=t===n._if||t===n._for||t===n._with||t===n._while;this.context.push(e?et.p_stat:et.p_expr),this.exprAllowed=!0},n.incDec.updateContext=function(){},n._function.updateContext=n._class.updateContext=function(t){!t.beforeExpr||t===n._else||t===n.semi&&this.curContext()!==et.p_stat||t===n._return&&z.test(this.input.slice(this.lastTokEnd,this.start))||(t===n.colon||t===n.braceL)&&this.curContext()===et.b_stat?this.context.push(et.f_stat):this.context.push(et.f_expr),this.exprAllowed=!1},n.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},n.backQuote.updateContext=function(){this.curContext()===et.q_tmpl?this.context.pop():this.context.push(et.q_tmpl),this.exprAllowed=!1},n.star.updateContext=function(t){if(t===n._function){var e=this.context.length-1;this.context[e]===et.f_expr?this.context[e]=et.f_expr_gen:this.context[e]=et.f_gen}this.exprAllowed=!0},n.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==n.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var N=st.prototype;function Fe(t){return t.type==="Identifier"||t.type==="ParenthesizedExpression"&&Fe(t.expression)}function we(t){return t.type==="MemberExpression"&&t.property.type==="PrivateIdentifier"||t.type==="ChainExpression"&&we(t.expression)||t.type==="ParenthesizedExpression"&&we(t.expression)}N.checkPropClash=function(t,e,i){if(!(this.options.ecmaVersion>=9&&t.type==="SpreadElement"||this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var s,r=t.key;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=String(r.value);break;default:return}var o=t.kind;if(this.options.ecmaVersion>=6)s==="__proto__"&&o==="init"&&(e.proto&&(i?i.doubleProto<0&&(i.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),e.proto=!0);else{var c=e[s="$"+s];c?(o==="init"?this.strict&&c.init||c.get||c.set:c.init||c[o])&&this.raiseRecoverable(r.start,"Redefinition of property"):c=e[s]={init:!1,get:!1,set:!1},c[o]=!0}}},N.parseExpression=function(t,e){var i=this.start,s=this.startLoc,r=this.parseMaybeAssign(t,e);if(this.type===n.comma){var o=this.startNodeAt(i,s);for(o.expressions=[r];this.eat(n.comma);)o.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(o,"SequenceExpression")}return r},N.parseMaybeAssign=function(t,e,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var s=!1,r=-1,o=-1,c=-1;e?(r=e.parenthesizedAssign,o=e.trailingComma,c=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1):(e=new Qt,s=!0);var h=this.start,f=this.startLoc;this.type!==n.parenL&&this.type!==n.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=t==="await");var x=this.parseMaybeConditional(t,e);if(i&&(x=i.call(this,x,h,f)),this.type.isAssign){var m=this.startNodeAt(h,f);return m.operator=this.value,this.type===n.eq&&(x=this.toAssignable(x,!1,e)),s||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=x.start&&(e.shorthandAssign=-1),this.type===n.eq?this.checkLValPattern(x):this.checkLValSimple(x),m.left=x,this.next(),m.right=this.parseMaybeAssign(t),c>-1&&(e.doubleProto=c),this.finishNode(m,"AssignmentExpression")}return s&&this.checkExpressionErrors(e,!0),r>-1&&(e.parenthesizedAssign=r),o>-1&&(e.trailingComma=o),x},N.parseMaybeConditional=function(t,e){var i=this.start,s=this.startLoc,r=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return r;if(this.eat(n.question)){var o=this.startNodeAt(i,s);return o.test=r,o.consequent=this.parseMaybeAssign(),this.expect(n.colon),o.alternate=this.parseMaybeAssign(t),this.finishNode(o,"ConditionalExpression")}return r},N.parseExprOps=function(t,e){var i=this.start,s=this.startLoc,r=this.parseMaybeUnary(e,!1,!1,t);return this.checkExpressionErrors(e)||r.start===i&&r.type==="ArrowFunctionExpression"?r:this.parseExprOp(r,i,s,-1,t)},N.parseExprOp=function(t,e,i,s,r){var o=this.type.binop;if(o!=null&&(!r||this.type!==n._in)&&o>s){var c=this.type===n.logicalOR||this.type===n.logicalAND,h=this.type===n.coalesce;h&&(o=n.logicalAND.binop);var f=this.value;this.next();var x=this.start,m=this.startLoc,b=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),x,m,o,r),_=this.buildBinary(e,i,t,b,f,c||h);return(c&&this.type===n.coalesce||h&&(this.type===n.logicalOR||this.type===n.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(_,e,i,s,r)}return t},N.buildBinary=function(t,e,i,s,r,o){s.type==="PrivateIdentifier"&&this.raise(s.start,"Private identifier can only be left side of binary expression");var c=this.startNodeAt(t,e);return c.left=i,c.operator=r,c.right=s,this.finishNode(c,o?"LogicalExpression":"BinaryExpression")},N.parseMaybeUnary=function(t,e,i,s){var r,o=this.start,c=this.startLoc;if(this.isContextual("await")&&this.canAwait)r=this.parseAwait(s),e=!0;else if(this.type.prefix){var h=this.startNode(),f=this.type===n.incDec;h.operator=this.value,h.prefix=!0,this.next(),h.argument=this.parseMaybeUnary(null,!0,f,s),this.checkExpressionErrors(t,!0),f?this.checkLValSimple(h.argument):this.strict&&h.operator==="delete"&&Fe(h.argument)?this.raiseRecoverable(h.start,"Deleting local variable in strict mode"):h.operator==="delete"&&we(h.argument)?this.raiseRecoverable(h.start,"Private fields can not be deleted"):e=!0,r=this.finishNode(h,f?"UpdateExpression":"UnaryExpression")}else if(e||this.type!==n.privateId){if(r=this.parseExprSubscripts(t,s),this.checkExpressionErrors(t))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var x=this.startNodeAt(o,c);x.operator=this.value,x.prefix=!1,x.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(x,"UpdateExpression")}}else(s||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),r=this.parsePrivateIdent(),this.type!==n._in&&this.unexpected();return i||!this.eat(n.starstar)?r:e?void this.unexpected(this.lastTokStart):this.buildBinary(o,c,r,this.parseMaybeUnary(null,!1,!1,s),"**",!1)},N.parseExprSubscripts=function(t,e){var i=this.start,s=this.startLoc,r=this.parseExprAtom(t,e);if(r.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return r;var o=this.parseSubscripts(r,i,s,!1,e);return t&&o.type==="MemberExpression"&&(t.parenthesizedAssign>=o.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=o.start&&(t.parenthesizedBind=-1),t.trailingComma>=o.start&&(t.trailingComma=-1)),o},N.parseSubscripts=function(t,e,i,s,r){for(var o=this.options.ecmaVersion>=8&&t.type==="Identifier"&&t.name==="async"&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,c=!1;;){var h=this.parseSubscript(t,e,i,s,o,c,r);if(h.optional&&(c=!0),h===t||h.type==="ArrowFunctionExpression"){if(c){var f=this.startNodeAt(e,i);f.expression=h,h=this.finishNode(f,"ChainExpression")}return h}t=h}},N.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(n.arrow)},N.parseSubscriptAsyncArrow=function(t,e,i,s){return this.parseArrowExpression(this.startNodeAt(t,e),i,!0,s)},N.parseSubscript=function(t,e,i,s,r,o,c){var h=this.options.ecmaVersion>=11,f=h&&this.eat(n.questionDot);s&&f&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var x=this.eat(n.bracketL);if(x||f&&this.type!==n.parenL&&this.type!==n.backQuote||this.eat(n.dot)){var m=this.startNodeAt(e,i);m.object=t,x?(m.property=this.parseExpression(),this.expect(n.bracketR)):this.type===n.privateId&&t.type!=="Super"?m.property=this.parsePrivateIdent():m.property=this.parseIdent(this.options.allowReserved!=="never"),m.computed=!!x,h&&(m.optional=f),t=this.finishNode(m,"MemberExpression")}else if(!s&&this.eat(n.parenL)){var b=new Qt,_=this.yieldPos,T=this.awaitPos,G=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var lt=this.parseExprList(n.parenR,this.options.ecmaVersion>=8,!1,b);if(r&&!f&&this.shouldParseAsyncArrow())return this.checkPatternErrors(b,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=_,this.awaitPos=T,this.awaitIdentPos=G,this.parseSubscriptAsyncArrow(e,i,lt,c);this.checkExpressionErrors(b,!0),this.yieldPos=_||this.yieldPos,this.awaitPos=T||this.awaitPos,this.awaitIdentPos=G||this.awaitIdentPos;var U=this.startNodeAt(e,i);U.callee=t,U.arguments=lt,h&&(U.optional=f),t=this.finishNode(U,"CallExpression")}else if(this.type===n.backQuote){(f||o)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var K=this.startNodeAt(e,i);K.tag=t,K.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(K,"TaggedTemplateExpression")}return t},N.parseExprAtom=function(t,e,i){this.type===n.slash&&this.readRegexp();var s,r=this.potentialArrowAt===this.start;switch(this.type){case n._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type!==n.parenL||this.allowDirectSuper||this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==n.dot&&this.type!==n.bracketL&&this.type!==n.parenL&&this.unexpected(),this.finishNode(s,"Super");case n._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case n.name:var o=this.start,c=this.startLoc,h=this.containsEsc,f=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!h&&f.name==="async"&&!this.canInsertSemicolon()&&this.eat(n._function))return this.overrideContext(et.f_expr),this.parseFunction(this.startNodeAt(o,c),0,!1,!0,e);if(r&&!this.canInsertSemicolon()){if(this.eat(n.arrow))return this.parseArrowExpression(this.startNodeAt(o,c),[f],!1,e);if(this.options.ecmaVersion>=8&&f.name==="async"&&this.type===n.name&&!h&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return f=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(n.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(o,c),[f],!0,e)}return f;case n.regexp:var x=this.value;return(s=this.parseLiteral(x.value)).regex={pattern:x.pattern,flags:x.flags},s;case n.num:case n.string:return this.parseLiteral(this.value);case n._null:case n._true:case n._false:return(s=this.startNode()).value=this.type===n._null?null:this.type===n._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case n.parenL:var m=this.start,b=this.parseParenAndDistinguishExpression(r,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(b)&&(t.parenthesizedAssign=m),t.parenthesizedBind<0&&(t.parenthesizedBind=m)),b;case n.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(n.bracketR,!0,!0,t),this.finishNode(s,"ArrayExpression");case n.braceL:return this.overrideContext(et.b_expr),this.parseObj(!1,t);case n._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case n._class:return this.parseClass(this.startNode(),!1);case n._new:return this.parseNew();case n.backQuote:return this.parseTemplate();case n._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},N.parseExprAtomDefault=function(){this.unexpected()},N.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===n.parenL&&!t)return this.parseDynamicImport(e);if(this.type===n.dot){var i=this.startNodeAt(e.start,e.loc&&e.loc.start);return i.name="import",e.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(e)}this.unexpected()},N.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(n.parenR)?t.options=null:(this.expect(n.comma),this.afterTrailingComma(n.parenR)?t.options=null:(t.options=this.parseMaybeAssign(),this.eat(n.parenR)||(this.expect(n.comma),this.afterTrailingComma(n.parenR)||this.unexpected())));else if(!this.eat(n.parenR)){var e=this.start;this.eat(n.comma)&&this.eat(n.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")},N.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="meta"&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),this.options.sourceType==="module"||this.options.allowImportExportEverywhere||this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")},N.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),e.raw.charCodeAt(e.raw.length-1)===110&&(e.bigint=e.value!=null?e.value.toString():e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},N.parseParenExpression=function(){this.expect(n.parenL);var t=this.parseExpression();return this.expect(n.parenR),t},N.shouldParseArrow=function(t){return!this.canInsertSemicolon()},N.parseParenAndDistinguishExpression=function(t,e){var i,s=this.start,r=this.startLoc,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var c,h=this.start,f=this.startLoc,x=[],m=!0,b=!1,_=new Qt,T=this.yieldPos,G=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==n.parenR;){if(m?m=!1:this.expect(n.comma),o&&this.afterTrailingComma(n.parenR,!0)){b=!0;break}if(this.type===n.ellipsis){c=this.start,x.push(this.parseParenItem(this.parseRestBinding())),this.type===n.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}x.push(this.parseMaybeAssign(!1,_,this.parseParenItem))}var lt=this.lastTokEnd,U=this.lastTokEndLoc;if(this.expect(n.parenR),t&&this.shouldParseArrow(x)&&this.eat(n.arrow))return this.checkPatternErrors(_,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=T,this.awaitPos=G,this.parseParenArrowList(s,r,x,e);x.length&&!b||this.unexpected(this.lastTokStart),c&&this.unexpected(c),this.checkExpressionErrors(_,!0),this.yieldPos=T||this.yieldPos,this.awaitPos=G||this.awaitPos,x.length>1?((i=this.startNodeAt(h,f)).expressions=x,this.finishNodeAt(i,"SequenceExpression",lt,U)):i=x[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var K=this.startNodeAt(s,r);return K.expression=i,this.finishNode(K,"ParenthesizedExpression")}return i},N.parseParenItem=function(t){return t},N.parseParenArrowList=function(t,e,i,s){return this.parseArrowExpression(this.startNodeAt(t,e),i,!1,s)};var Be=[];N.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===n.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var i=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="target"&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var s=this.start,r=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,r,!0,!1),this.eat(n.parenL)?t.arguments=this.parseExprList(n.parenR,this.options.ecmaVersion>=8,!1):t.arguments=Be,this.finishNode(t,"NewExpression")},N.parseTemplateElement=function(t){var e=t.isTagged,i=this.startNode();return this.type===n.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,`
|
|
10
|
+
`),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
11
|
+
`),cooked:this.value},this.next(),i.tail=this.type===n.backQuote,this.finishNode(i,"TemplateElement")},N.parseTemplate=function(t){t===void 0&&(t={});var e=t.isTagged;e===void 0&&(e=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:e});for(i.quasis=[s];!s.tail;)this.type===n.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(n.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(n.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(i,"TemplateLiteral")},N.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.key.name==="async"&&(this.type===n.name||this.type===n.num||this.type===n.string||this.type===n.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===n.star)&&!z.test(this.input.slice(this.lastTokEnd,this.start))},N.parseObj=function(t,e){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(n.braceR);){if(s)s=!1;else if(this.expect(n.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(n.braceR))break;var o=this.parseProperty(t,e);t||this.checkPropClash(o,r,e),i.properties.push(o)}return this.finishNode(i,t?"ObjectPattern":"ObjectExpression")},N.parseProperty=function(t,e){var i,s,r,o,c=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(n.ellipsis))return t?(c.argument=this.parseIdent(!1),this.type===n.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(c,"RestElement")):(c.argument=this.parseMaybeAssign(!1,e),this.type===n.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(c,"SpreadElement"));this.options.ecmaVersion>=6&&(c.method=!1,c.shorthand=!1,(t||e)&&(r=this.start,o=this.startLoc),t||(i=this.eat(n.star)));var h=this.containsEsc;return this.parsePropertyName(c),!t&&!h&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(c)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(n.star),this.parsePropertyName(c)):s=!1,this.parsePropertyValue(c,t,i,s,r,o,e,h),this.finishNode(c,"Property")},N.parseGetterSetter=function(t){var e=t.key.name;this.parsePropertyName(t),t.value=this.parseMethod(!1),t.kind=e;var i=t.kind==="get"?0:1;if(t.value.params.length!==i){var s=t.value.start;t.kind==="get"?this.raiseRecoverable(s,"getter should have no params"):this.raiseRecoverable(s,"setter should have exactly one param")}else t.kind==="set"&&t.value.params[0].type==="RestElement"&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")},N.parsePropertyValue=function(t,e,i,s,r,o,c,h){(i||s)&&this.type===n.colon&&this.unexpected(),this.eat(n.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,c),t.kind="init"):this.options.ecmaVersion>=6&&this.type===n.parenL?(e&&this.unexpected(),t.method=!0,t.value=this.parseMethod(i,s),t.kind="init"):e||h||!(this.options.ecmaVersion>=5)||t.computed||t.key.type!=="Identifier"||t.key.name!=="get"&&t.key.name!=="set"||this.type===n.comma||this.type===n.braceR||this.type===n.eq?this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"?((i||s)&&this.unexpected(),this.checkUnreserved(t.key),t.key.name!=="await"||this.awaitIdentPos||(this.awaitIdentPos=r),e?t.value=this.parseMaybeDefault(r,o,this.copyNode(t.key)):this.type===n.eq&&c?(c.shorthandAssign<0&&(c.shorthandAssign=this.start),t.value=this.parseMaybeDefault(r,o,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):this.unexpected():((i||s)&&this.unexpected(),this.parseGetterSetter(t))},N.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(n.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(n.bracketR),t.key;t.computed=!1}return t.key=this.type===n.num||this.type===n.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},N.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},N.parseMethod=function(t,e,i){var s=this.startNode(),r=this.yieldPos,o=this.awaitPos,c=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=t),this.options.ecmaVersion>=8&&(s.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|pe(e,s.generator)|(i?128:0)),this.expect(n.parenL),s.params=this.parseBindingList(n.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=o,this.awaitIdentPos=c,this.finishNode(s,"FunctionExpression")},N.parseArrowExpression=function(t,e,i,s){var r=this.yieldPos,o=this.awaitPos,c=this.awaitIdentPos;return this.enterScope(16|pe(i,!1)),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,s),this.yieldPos=r,this.awaitPos=o,this.awaitIdentPos=c,this.finishNode(t,"ArrowFunctionExpression")},N.parseFunctionBody=function(t,e,i,s){var r=e&&this.type!==n.braceL,o=this.strict,c=!1;if(r)t.body=this.parseMaybeAssign(s),t.expression=!0,this.checkParams(t,!1);else{var h=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);o&&!h||(c=this.strictDirective(this.end))&&h&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var f=this.labels;this.labels=[],c&&(this.strict=!0),this.checkParams(t,!o&&!c&&!e&&!i&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,5),t.body=this.parseBlock(!1,void 0,c&&!o),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=f}this.exitScope()},N.isSimpleParamList=function(t){for(var e=0,i=t;e<i.length;e+=1)if(i[e].type!=="Identifier")return!1;return!0},N.checkParams=function(t,e){for(var i=Object.create(null),s=0,r=t.params;s<r.length;s+=1){var o=r[s];this.checkLValInnerPattern(o,1,e?null:i)}},N.parseExprList=function(t,e,i,s){for(var r=[],o=!0;!this.eat(t);){if(o)o=!1;else if(this.expect(n.comma),e&&this.afterTrailingComma(t))break;var c=void 0;i&&this.type===n.comma?c=null:this.type===n.ellipsis?(c=this.parseSpread(s),s&&this.type===n.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):c=this.parseMaybeAssign(!1,s),r.push(c)}return r},N.checkUnreserved=function(t){var e=t.start,i=t.end,s=t.name;this.inGenerator&&s==="yield"&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&s==="await"&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().flags&le||s!=="arguments"||this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||s!=="arguments"&&s!=="await"||this.raise(e,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(e,"Unexpected keyword '"+s+"'"),this.options.ecmaVersion<6&&this.input.slice(e,i).indexOf("\\")!==-1||(this.strict?this.reservedWordsStrict:this.reservedWords).test(s)&&(this.inAsync||s!=="await"||this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+s+"' is reserved"))},N.parseIdent=function(t){var e=this.parseIdentNode();return this.next(!!t),this.finishNode(e,"Identifier"),t||(this.checkUnreserved(e),e.name!=="await"||this.awaitIdentPos||(this.awaitIdentPos=e.start)),e},N.parseIdentNode=function(){var t=this.startNode();return this.type===n.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,t.name!=="class"&&t.name!=="function"||this.lastTokEnd===this.lastTokStart+1&&this.input.charCodeAt(this.lastTokStart)===46||this.context.pop(),this.type=n.name):this.unexpected(),t},N.parsePrivateIdent=function(){var t=this.startNode();return this.type===n.privateId?t.name=this.value:this.unexpected(),this.next(),this.finishNode(t,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(t)),t},N.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===n.semi||this.canInsertSemicolon()||this.type!==n.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(n.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")},N.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(e,"AwaitExpression")};var Gt=st.prototype;Gt.raise=function(t,e){var i=Ve(this.input,t);e+=" ("+i.line+":"+i.column+")",this.sourceFile&&(e+=" in "+this.sourceFile);var s=new SyntaxError(e);throw s.pos=t,s.loc=i,s.raisedAt=this.pos,s},Gt.raiseRecoverable=Gt.raise,Gt.curPosition=function(){if(this.options.locations)return new jt(this.curLine,this.pos-this.lineStart)};var Rt=st.prototype,$e=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};Rt.enterScope=function(t){this.scopeStack.push(new $e(t))},Rt.exitScope=function(){this.scopeStack.pop()},Rt.treatFunctionsAsVarInScope=function(t){return 2&t.flags||!this.inModule&&1&t.flags},Rt.declareName=function(t,e,i){var s=!1;if(e===2){var r=this.currentScope();s=r.lexical.indexOf(t)>-1||r.functions.indexOf(t)>-1||r.var.indexOf(t)>-1,r.lexical.push(t),this.inModule&&1&r.flags&&delete this.undefinedExports[t]}else if(e===4)this.currentScope().lexical.push(t);else if(e===3){var o=this.currentScope();s=this.treatFunctionsAsVar?o.lexical.indexOf(t)>-1:o.lexical.indexOf(t)>-1||o.var.indexOf(t)>-1,o.functions.push(t)}else for(var c=this.scopeStack.length-1;c>=0;--c){var h=this.scopeStack[c];if(h.lexical.indexOf(t)>-1&&!(32&h.flags&&h.lexical[0]===t)||!this.treatFunctionsAsVarInScope(h)&&h.functions.indexOf(t)>-1){s=!0;break}if(h.var.push(t),this.inModule&&1&h.flags&&delete this.undefinedExports[t],h.flags&le)break}s&&this.raiseRecoverable(i,"Identifier '"+t+"' has already been declared")},Rt.checkLocalExport=function(t){this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1&&(this.undefinedExports[t.name]=t)},Rt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Rt.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags)return e}},Rt.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags&&!(16&e.flags))return e}};var Pt=function(t,e,i){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new xt(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},Bt=st.prototype;function Se(t,e,i,s){return t.type=e,t.end=i,this.options.locations&&(t.loc.end=s),this.options.ranges&&(t.range[1]=i),t}Bt.startNode=function(){return new Pt(this,this.start,this.startLoc)},Bt.startNodeAt=function(t,e){return new Pt(this,t,e)},Bt.finishNode=function(t,e){return Se.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},Bt.finishNodeAt=function(t,e,i,s){return Se.call(this,t,e,i,s)},Bt.copyNode=function(t){var e=new Pt(this,t.start,this.startLoc);for(var i in t)e[i]=t[i];return e};var We="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ue=We+" Extended_Pictographic",Ie=ue+" EBase EComp EMod EPres ExtPict",li={9:We,10:ue,11:ue,12:Ie,13:Ie,14:Ie},pi={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},Ae="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",qe="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Ge=qe+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ke=Ge+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",He=Ke+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",a=He+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",p={9:qe,10:Ge,11:Ke,12:He,13:a,14:a+" Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz"},g={};function l(t){var e=g[t]={binary:Tt(li[t]+" "+Ae),binaryOfStrings:Tt(pi[t]),nonBinary:{General_Category:Tt(Ae),Script:Tt(p[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}for(var y=0,v=[9,10,11,12,13,14];y<v.length;y+=1)l(v[y]);var d=st.prototype,C=function(t,e){this.parent=t,this.base=e||this};C.prototype.separatedFrom=function(t){for(var e=this;e;e=e.parent)for(var i=t;i;i=i.parent)if(e.base===i.base&&e!==i)return!0;return!1},C.prototype.sibling=function(){return new C(this.parent,this.base)};var S=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=g[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function R(t){return t===105||t===109||t===115}function W(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}function $(t){return t>=65&&t<=90||t>=97&&t<=122}S.prototype.reset=function(t,e,i){var s=i.indexOf("v")!==-1,r=i.indexOf("u")!==-1;this.start=0|t,this.source=e+"",this.flags=i,s&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=r&&this.parser.options.ecmaVersion>=9)},S.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},S.prototype.at=function(t,e){e===void 0&&(e=!1);var i=this.source,s=i.length;if(t>=s)return-1;var r=i.charCodeAt(t);if(!e&&!this.switchU||r<=55295||r>=57344||t+1>=s)return r;var o=i.charCodeAt(t+1);return o>=56320&&o<=57343?(r<<10)+o-56613888:r},S.prototype.nextIndex=function(t,e){e===void 0&&(e=!1);var i=this.source,s=i.length;if(t>=s)return s;var r,o=i.charCodeAt(t);return!e&&!this.switchU||o<=55295||o>=57344||t+1>=s||(r=i.charCodeAt(t+1))<56320||r>57343?t+1:t+2},S.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)},S.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},S.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)},S.prototype.eat=function(t,e){return e===void 0&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},S.prototype.eatChars=function(t,e){e===void 0&&(e=!1);for(var i=this.pos,s=0,r=t;s<r.length;s+=1){var o=r[s],c=this.at(i,e);if(c===-1||c!==o)return!1;i=this.nextIndex(i,e)}return this.pos=i,!0},d.validateRegExpFlags=function(t){for(var e=t.validFlags,i=t.flags,s=!1,r=!1,o=0;o<i.length;o++){var c=i.charAt(o);e.indexOf(c)===-1&&this.raise(t.start,"Invalid regular expression flag"),i.indexOf(c,o+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),c==="u"&&(s=!0),c==="v"&&(r=!0)}this.options.ecmaVersion>=15&&s&&r&&this.raise(t.start,"Invalid regular expression flag")},d.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&(function(e){for(var i in e)return!0;return!1})(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))},d.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames=Object.create(null),t.backReferenceNames.length=0,t.branchID=null,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,i=t.backReferenceNames;e<i.length;e+=1){var s=i[e];t.groupNames[s]||t.raise("Invalid named capture referenced")}},d.regexp_disjunction=function(t){var e=this.options.ecmaVersion>=16;for(e&&(t.branchID=new C(t.branchID,null)),this.regexp_alternative(t);t.eat(124);)e&&(t.branchID=t.branchID.sibling()),this.regexp_alternative(t);e&&(t.branchID=t.branchID.parent),this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},d.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},d.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):!!(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))&&(this.regexp_eatQuantifier(t),!0)},d.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!i,!0}return t.pos=e,!1},d.regexp_eatQuantifier=function(t,e){return e===void 0&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},d.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},d.regexp_eatBracedQuantifier=function(t,e){var i=t.pos;if(t.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue),t.eat(125)))return r!==-1&&r<s&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=i}return!1},d.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)},d.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},d.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)){if(this.options.ecmaVersion>=16){var i=this.regexp_eatModifiers(t),s=t.eat(45);if(i||s){for(var r=0;r<i.length;r++){var o=i.charAt(r);i.indexOf(o,r+1)>-1&&t.raise("Duplicate regular expression modifiers")}if(s){var c=this.regexp_eatModifiers(t);i||c||t.current()!==58||t.raise("Invalid regular expression modifiers");for(var h=0;h<c.length;h++){var f=c.charAt(h);(c.indexOf(f,h+1)>-1||i.indexOf(f)>-1)&&t.raise("Duplicate regular expression modifiers")}}}}if(t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}}t.pos=e}return!1},d.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):t.current()===63&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},d.regexp_eatModifiers=function(t){for(var e="",i=0;(i=t.current())!==-1&&R(i);)e+=St(i),t.advance();return e},d.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},d.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},d.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!W(e)&&(t.lastIntValue=e,t.advance(),!0)},d.regexp_eatPatternCharacters=function(t){for(var e=t.pos,i=0;(i=t.current())!==-1&&!W(i);)t.advance();return t.pos!==e},d.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return!(e===-1||e===36||e>=40&&e<=43||e===46||e===63||e===91||e===94||e===124)&&(t.advance(),!0)},d.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var e=this.options.ecmaVersion>=16,i=t.groupNames[t.lastStringValue];if(i)if(e)for(var s=0,r=i;s<r.length;s+=1)r[s].separatedFrom(t.branchID)||t.raise("Duplicate capture group name");else t.raise("Duplicate capture group name");e?(i||(t.groupNames[t.lastStringValue]=[])).push(t.branchID):t.groupNames[t.lastStringValue]=!0}},d.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},d.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=St(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=St(t.lastIntValue);return!0}return!1},d.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,s=t.current(i);return t.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(s=t.lastIntValue),(function(r){return pt(r,!0)||r===36||r===95})(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)},d.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,s=t.current(i);return t.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(s=t.lastIntValue),(function(r){return H(r,!0)||r===36||r===95||r===8204||r===8205})(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)},d.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(t.current()===99&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},d.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var i=t.lastIntValue;if(t.switchU)return i>t.maxBackReference&&(t.maxBackReference=i),!0;if(i<=t.numCapturingParens)return!0;t.pos=e}return!1},d.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},d.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},d.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},d.regexp_eatZero=function(t){return t.current()===48&&!Y(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},d.regexp_eatControlEscape=function(t){var e=t.current();return e===116?(t.lastIntValue=9,t.advance(),!0):e===110?(t.lastIntValue=10,t.advance(),!0):e===118?(t.lastIntValue=11,t.advance(),!0):e===102?(t.lastIntValue=12,t.advance(),!0):e===114&&(t.lastIntValue=13,t.advance(),!0)},d.regexp_eatControlLetter=function(t){var e=t.current();return!!$(e)&&(t.lastIntValue=e%32,t.advance(),!0)},d.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){e===void 0&&(e=!1);var i,s=t.pos,r=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(r&&o>=55296&&o<=56319){var c=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var h=t.lastIntValue;if(h>=56320&&h<=57343)return t.lastIntValue=1024*(o-55296)+(h-56320)+65536,!0}t.pos=c,t.lastIntValue=o}return!0}if(r&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&(i=t.lastIntValue)>=0&&i<=1114111)return!0;r&&t.raise("Invalid unicode escape"),t.pos=s}return!1},d.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return!(e===99||t.switchN&&e===107)&&(t.lastIntValue=e,t.advance(),!0)},d.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do t.lastIntValue=10*t.lastIntValue+(e-48),t.advance();while((e=t.current())>=48&&e<=57);return!0}return!1};function tt(t){return $(t)||t===95}function J(t){return tt(t)||Y(t)}function Y(t){return t>=48&&t<=57}function Q(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function rt(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t-48}function wt(t){return t>=48&&t<=55}d.regexp_eatCharacterClassEscape=function(t){var e=t.current();if((function(r){return r===100||r===68||r===115||r===83||r===119||r===87})(e))return t.lastIntValue=-1,t.advance(),1;var i=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((i=e===80)||e===112)){var s;if(t.lastIntValue=-1,t.advance(),t.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return i&&s===2&&t.raise("Invalid property name"),s;t.raise("Invalid property name")}return 0},d.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var i=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,i,s),1}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,r)}return 0},d.regexp_validateUnicodePropertyNameAndValue=function(t,e,i){Mt(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(i)||t.raise("Invalid property value")},d.regexp_validateUnicodePropertyNameOrValue=function(t,e){return t.unicodeProperties.binary.test(e)?1:t.switchV&&t.unicodeProperties.binaryOfStrings.test(e)?2:void t.raise("Invalid property name")},d.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";tt(e=t.current());)t.lastStringValue+=St(e),t.advance();return t.lastStringValue!==""},d.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";J(e=t.current());)t.lastStringValue+=St(e),t.advance();return t.lastStringValue!==""},d.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},d.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),i=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&i===2&&t.raise("Negated character class may contain strings"),!0}return!1},d.regexp_classContents=function(t){return t.current()===93?1:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),1)},d.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var i=t.lastIntValue;!t.switchU||e!==-1&&i!==-1||t.raise("Invalid character class"),e!==-1&&i!==-1&&e>i&&t.raise("Range out of order in character class")}}},d.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var i=t.current();(i===99||wt(i))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var s=t.current();return s!==93&&(t.lastIntValue=s,t.advance(),!0)},d.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},d.regexp_classSetExpression=function(t){var e,i=1;if(!this.regexp_eatClassSetRange(t))if(e=this.regexp_eatClassSetOperand(t)){e===2&&(i=2);for(var s=t.pos;t.eatChars([38,38]);)t.current()!==38&&(e=this.regexp_eatClassSetOperand(t))?e!==2&&(i=1):t.raise("Invalid character in character class");if(s!==t.pos)return i;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(s!==t.pos)return i}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(!(e=this.regexp_eatClassSetOperand(t)))return i;e===2&&(i=2)}},d.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var i=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var s=t.lastIntValue;return i!==-1&&s!==-1&&i>s&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1},d.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?1:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},d.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var i=t.eat(94),s=this.regexp_classContents(t);if(t.eat(93))return i&&s===2&&t.raise("Negated character class may contain strings"),s;t.pos=e}if(t.eat(92)){var r=this.regexp_eatCharacterClassEscape(t);if(r)return r;t.pos=e}return null},d.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var i=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return i}else t.raise("Invalid escape");t.pos=e}return null},d.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)this.regexp_classString(t)===2&&(e=2);return e},d.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return e===1?1:2},d.regexp_eatClassSetCharacter=function(t){var e=t.pos;if(t.eat(92))return!(!this.regexp_eatCharacterEscape(t)&&!this.regexp_eatClassSetReservedPunctuator(t))||(t.eat(98)?(t.lastIntValue=8,!0):(t.pos=e,!1));var i=t.current();return!(i<0||i===t.lookahead()&&(function(s){return s===33||s>=35&&s<=38||s>=42&&s<=44||s===46||s>=58&&s<=64||s===94||s===96||s===126})(i))&&!(function(s){return s===40||s===41||s===45||s===47||s>=91&&s<=93||s>=123&&s<=125})(i)&&(t.advance(),t.lastIntValue=i,!0)},d.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return!!(function(i){return i===33||i===35||i===37||i===38||i===44||i===45||i>=58&&i<=62||i===64||i===96||i===126})(e)&&(t.lastIntValue=e,t.advance(),!0)},d.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!Y(e)&&e!==95)&&(t.lastIntValue=e%32,t.advance(),!0)},d.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},d.regexp_eatDecimalDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;Y(i=t.current());)t.lastIntValue=10*t.lastIntValue+(i-48),t.advance();return t.pos!==e},d.regexp_eatHexDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;Q(i=t.current());)t.lastIntValue=16*t.lastIntValue+rt(i),t.advance();return t.pos!==e},d.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*i+t.lastIntValue:t.lastIntValue=8*e+i}else t.lastIntValue=e;return!0}return!1},d.regexp_eatOctalDigit=function(t){var e=t.current();return wt(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},d.regexp_eatFixedHexDigits=function(t,e){var i=t.pos;t.lastIntValue=0;for(var s=0;s<e;++s){var r=t.current();if(!Q(r))return t.pos=i,!1;t.lastIntValue=16*t.lastIntValue+rt(r),t.advance()}return!0};var Nt=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new xt(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},E=st.prototype;function ht(t){return typeof BigInt!="function"?null:BigInt(t.replace(/_/g,""))}E.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Nt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},E.getToken=function(){return this.next(),new Nt(this)},typeof Symbol<"u"&&(E[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===n.eof,value:e}}}}),E.nextToken=function(){var t=this.curContext();return t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(n.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},E.readToken=function(t){return pt(t,this.options.ecmaVersion>=6)||t===92?this.readWord():this.getTokenFromCode(t)},E.fullCharCodeAt=function(t){var e=this.input.charCodeAt(t);if(e<=55295||e>=56320)return e;var i=this.input.charCodeAt(t+1);return i<=56319||i>=57344?e:(e<<10)+i-56613888},E.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},E.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,r=e;(s=ut(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,i),e,this.pos,t,this.curPosition())},E.skipLineComment=function(t){for(var e=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!ot(s);)s=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,i,this.curPosition())},E.skipSpace=function(){t:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(!(t>8&&t<14||t>=5760&&At.test(String.fromCharCode(t))))break t;++this.pos}}},E.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=t,this.value=e,this.updateContext(i)},E.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&t===46&&e===46?(this.pos+=3,this.finishToken(n.ellipsis)):(++this.pos,this.finishToken(n.dot))},E.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):t===61?this.finishOp(n.assign,2):this.finishOp(n.slash,1)},E.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),i=1,s=t===42?n.star:n.modulo;return this.options.ecmaVersion>=7&&t===42&&e===42&&(++i,s=n.starstar,e=this.input.charCodeAt(this.pos+2)),e===61?this.finishOp(n.assign,i+1):this.finishOp(s,i)},E.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(n.assign,3):this.finishOp(t===124?n.logicalOR:n.logicalAND,2):e===61?this.finishOp(n.assign,2):this.finishOp(t===124?n.bitwiseOR:n.bitwiseAND,1)},E.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(n.assign,2):this.finishOp(n.bitwiseXOR,1)},E.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?e!==45||this.inModule||this.input.charCodeAt(this.pos+2)!==62||this.lastTokEnd!==0&&!z.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(n.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):e===61?this.finishOp(n.assign,2):this.finishOp(n.plusMin,1)},E.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),i=1;return e===t?(i=t===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(n.assign,i+1):this.finishOp(n.bitShift,i)):e!==33||t!==60||this.inModule||this.input.charCodeAt(this.pos+2)!==45||this.input.charCodeAt(this.pos+3)!==45?(e===61&&(i=2),this.finishOp(n.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},E.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(n.equality,this.input.charCodeAt(this.pos+2)===61?3:2):t===61&&e===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(n.arrow)):this.finishOp(t===61?n.eq:n.prefix,1)},E.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(e===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(n.questionDot,2)}if(e===63)return t>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(n.assign,3):this.finishOp(n.coalesce,2)}return this.finishOp(n.question,1)},E.readToken_numberSign=function(){var t=35;if(this.options.ecmaVersion>=13&&(++this.pos,pt(t=this.fullCharCodeAtPos(),!0)||t===92))return this.finishToken(n.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+St(t)+"'")},E.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(n.parenL);case 41:return++this.pos,this.finishToken(n.parenR);case 59:return++this.pos,this.finishToken(n.semi);case 44:return++this.pos,this.finishToken(n.comma);case 91:return++this.pos,this.finishToken(n.bracketL);case 93:return++this.pos,this.finishToken(n.bracketR);case 123:return++this.pos,this.finishToken(n.braceL);case 125:return++this.pos,this.finishToken(n.braceR);case 58:return++this.pos,this.finishToken(n.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(n.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(e===120||e===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(e===111||e===79)return this.readRadixNumber(8);if(e===98||e===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(n.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+St(t)+"'")},E.finishOp=function(t,e){var i=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,i)},E.readRegexp=function(){for(var t,e,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(z.test(s)&&this.raise(i,"Unterminated regular expression"),t)t=!1;else{if(s==="[")e=!0;else if(s==="]"&&e)e=!1;else if(s==="/"&&!e)break;t=s==="\\"}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var o=this.pos,c=this.readWord1();this.containsEsc&&this.unexpected(o);var h=this.regexpState||(this.regexpState=new S(this));h.reset(i,r,c),this.validateRegExpFlags(h),this.validateRegExpPattern(h);var f=null;try{f=new RegExp(r,c)}catch{}return this.finishToken(n.regexp,{pattern:r,flags:c,value:f})},E.readInt=function(t,e,i){for(var s=this.options.ecmaVersion>=12&&e===void 0,r=i&&this.input.charCodeAt(this.pos)===48,o=this.pos,c=0,h=0,f=0,x=e??1/0;f<x;++f,++this.pos){var m=this.input.charCodeAt(this.pos),b=void 0;if(s&&m===95)r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),h===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),f===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),h=m;else{if((b=m>=97?m-97+10:m>=65?m-65+10:m>=48&&m<=57?m-48:1/0)>=t)break;h=m,c=c*t+b}}return s&&h===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||e!=null&&this.pos-o!==e?null:c},E.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var i=this.readInt(t);return i==null&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=ht(this.input.slice(e,this.pos)),++this.pos):pt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(n.num,i)},E.readNumber=function(t){var e=this.pos;t||this.readInt(10,void 0,!0)!==null||this.raise(e,"Invalid number");var i=this.pos-e>=2&&this.input.charCodeAt(e)===48;i&&this.strict&&this.raise(e,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!t&&this.options.ecmaVersion>=11&&s===110){var r=ht(this.input.slice(e,this.pos));return++this.pos,pt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(n.num,r)}i&&/[89]/.test(this.input.slice(e,this.pos))&&(i=!1),s!==46||i||(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),s!==69&&s!==101||i||((s=this.input.charCodeAt(++this.pos))!==43&&s!==45||++this.pos,this.readInt(10)===null&&this.raise(e,"Invalid number")),pt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o,c=(o=this.input.slice(e,this.pos),i?parseInt(o,8):parseFloat(o.replace(/_/g,"")));return this.finishToken(n.num,c)},E.readCodePoint=function(){var t;if(this.input.charCodeAt(this.pos)===123){this.options.ecmaVersion<6&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},E.readString=function(t){for(var e="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===t)break;s===92?(e+=this.input.slice(i,this.pos),e+=this.readEscapedChar(!1),i=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ot(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(i,this.pos++),this.finishToken(n.string,e)};var dt={};E.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==dt)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},E.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw dt;this.raise(t,e)},E.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos!==this.start||this.type!==n.template&&this.type!==n.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(n.template,t)):i===36?(this.pos+=2,this.finishToken(n.dollarBraceL)):(++this.pos,this.finishToken(n.backQuote));if(i===92)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(ot(i)){switch(t+=this.input.slice(e,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:t+=`
|
|
12
|
+
`;break;default:t+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},E.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(n.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
13
|
+
`&&++this.pos;case`
|
|
14
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},E.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return`
|
|
15
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return St(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(e>=48&&e<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.pos+=s.length-1,e=this.input.charCodeAt(this.pos),s==="0"&&e!==56&&e!==57||!this.strict&&!t||this.invalidStringToken(this.pos-1-s.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return ot(e)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(e)}},E.readHexChar=function(t){var e=this.pos,i=this.readInt(16,t);return i===null&&this.invalidStringToken(e,"Bad character escape sequence"),i},E.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(H(r,s))this.pos+=r<=65535?1:2;else{if(r!==92)break;this.containsEsc=!0,t+=this.input.slice(i,this.pos);var o=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var c=this.readCodePoint();(e?pt:H)(c,s)||this.invalidStringToken(o,"Invalid Unicode escape"),t+=St(c),i=this.pos}e=!1}return t+this.input.slice(i,this.pos)},E.readWord=function(){var t=this.readWord1(),e=n.name;return this.keywords.test(t)&&(e=O[t]),this.finishToken(e,t)},st.acorn={Parser:st,version:"8.16.0",defaultOptions:Yt,Position:jt,SourceLocation:xt,getLineInfo:Ve,Node:Pt,TokenType:M,tokTypes:n,keywordTypes:O,TokContext:kt,tokContexts:et,isIdentifierChar:H,isIdentifierStart:pt,Token:Nt,isNewLine:ot,lineBreak:z,lineBreakG:it,nonASCIIwhitespace:At};var F=bt("node:module"),I=bt("node:fs");String.fromCharCode;let Te=/\/$|\/\?|\/#/,ze=/^\.?\//;function Je(t="",e){return e?Te.test(t):t.endsWith("/")}function Ye(t="",e){if(!e)return t.endsWith("/")?t:t+"/";if(Je(t,!0))return t||"/";let i=t,s="",r=t.indexOf("#");if(r!==-1&&(i=t.slice(0,r),s=t.slice(r),!i))return s;let[o,...c]=i.split("?");return o+"/"+(c.length>0?`?${c.join("?")}`:"")+s}function Qe(t){return t&&t!=="/"}function Zt(t,...e){let i=t||"";for(let s of e.filter(r=>Qe(r)))if(i){let r=s.replace(ze,"");i=Ye(i)+r}else i=s;return i}let q=/^[A-Za-z]:\//;function nt(t=""){return t&&t.replace(/\\/g,"/").replace(q,e=>e.toUpperCase())}let Xe=/^[/\\]{2}/,fe=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Pi=/^[A-Za-z]:$/,Is=/.(\.[^./]+|\.)$/,As=function(t){if(t.length===0)return".";let e=(t=nt(t)).match(Xe),i=te(t),s=t[t.length-1]==="/";return(t=Ni(t,!i)).length===0?i?"/":s?"./":".":(s&&(t+="/"),Pi.test(t)&&(t+="/"),e?i?`//${t}`:`//./${t}`:i&&!te(t)?`/${t}`:t)},Lt=function(...t){let e="";for(let i of t)if(i)if(e.length>0){let s=e[e.length-1]==="/",r=i[0]==="/";e+=s&&r?i.slice(1):s||r?i:`/${i}`}else e+=i;return As(e)};function Ts(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}let Rs=function(...t){let e="",i=!1;for(let s=(t=t.map(r=>nt(r))).length-1;s>=-1&&!i;s--){let r=s>=0?t[s]:Ts();r&&r.length!==0&&(e=`${r}/${e}`,i=te(r))}return e=Ni(e,!i),i&&!te(e)?`/${e}`:e.length>0?e:"."};function Ni(t,e){let i="",s=0,r=-1,o=0,c=null;for(let h=0;h<=t.length;++h){if(h<t.length)c=t[h];else{if(c==="/")break;c="/"}if(c==="/"){if(!(r===h-1||o===1))if(o===2){if(i.length<2||s!==2||i[i.length-1]!=="."||i[i.length-2]!=="."){if(i.length>2){let f=i.lastIndexOf("/");f===-1?(i="",s=0):(i=i.slice(0,f),s=i.length-1-i.lastIndexOf("/")),r=h,o=0;continue}if(i.length>0){i="",s=0,r=h,o=0;continue}}e&&(i+=i.length>0?"/..":"..",s=2)}else i.length>0?i+=`/${t.slice(r+1,h)}`:i=t.slice(r+1,h),s=h-r-1;r=h,o=0}else c==="."&&o!==-1?++o:o=-1}return i}let te=function(t){return fe.test(t)},ui=function(t){if(t==="..")return"";let e=Is.exec(nt(t));return e&&e[1]||""},Re=function(t){let e=nt(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&Pi.test(e[0])&&(e[0]+="/"),e.join("/")||(te(t)?"/":".")},fi=function(t,e){let i=nt(t).split("/"),s="";for(let r=i.length-1;r>=0;r--){let o=i[r];if(o){s=o;break}}return e&&s.endsWith(e)?s.slice(0,-e.length):s},j=mt("url"),Kt=mt("assert"),ee=mt("process");var di=bt("node:path");let Ps=mt("v8"),Ze=mt("util"),Li=new Set(F.builtinModules);function mi(t){return t.replace(/\\/g,"/")}let Ns={}.hasOwnProperty,Ls=/^([A-Z][a-z\d]*)+$/,Os=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),_t={};function gi(t,e="and"){return t.length<3?t.join(` ${e} `):`${t.slice(0,-1).join(", ")}, ${e} ${t[t.length-1]}`}let Oi=new Map,Di;function It(t,e,i){return Oi.set(t,e),(function(s,r){return o;function o(...c){let h=Error.stackTraceLimit;xi()&&(Error.stackTraceLimit=0);let f=new s;xi()&&(Error.stackTraceLimit=h);let x=(function(m,b,_){let T=Oi.get(m);if(Kt.ok(T!==void 0,"expected `message` to be found"),typeof T=="function")return Kt.ok(T.length<=b.length,`Code: ${m}; The provided arguments length (${b.length}) does not match the required ones (${T.length}).`),Reflect.apply(T,_,b);let G=/%[dfijoOs]/g,lt=0;for(;G.exec(T)!==null;)lt++;return Kt.ok(lt===b.length,`Code: ${m}; The provided arguments length (${b.length}) does not match the required ones (${lt}).`),b.length===0?T:(b.unshift(T),Reflect.apply(Ze.format,null,b))})(r,c,f);return Object.defineProperties(f,{message:{value:x,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${r}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),Ds(f),f.code=r,f}})(i,t)}function xi(){try{if(Ps.startupSnapshot.isBuildingSnapshot())return!1}catch{}let t=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return t===void 0?Object.isExtensible(Error):Ns.call(t,"writable")&&t.writable!==void 0?t.writable:t.set!==void 0}_t.ERR_INVALID_ARG_TYPE=It("ERR_INVALID_ARG_TYPE",(t,e,i)=>{Kt.ok(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let s="The ";if(t.endsWith(" argument"))s+=`${t} `;else{let h=t.includes(".")?"property":"argument";s+=`"${t}" ${h} `}s+="must be ";let r=[],o=[],c=[];for(let h of e)Kt.ok(typeof h=="string","All expected entries have to be of type string"),Os.has(h)?r.push(h.toLowerCase()):Ls.exec(h)===null?(Kt.ok(h!=="object",'The value "object" should be written as "Object"'),c.push(h)):o.push(h);if(o.length>0){let h=r.indexOf("object");h!==-1&&(r.slice(h,1),o.push("Object"))}return r.length>0&&(s+=`${r.length>1?"one of type":"of type"} ${gi(r,"or")}`,(o.length>0||c.length>0)&&(s+=" or ")),o.length>0&&(s+=`an instance of ${gi(o,"or")}`,c.length>0&&(s+=" or ")),c.length>0&&(c.length>1?s+=`one of ${gi(c,"or")}`:(c[0].toLowerCase()!==c[0]&&(s+="an "),s+=`${c[0]}`)),s+=`. Received ${(function(h){if(h==null)return String(h);if(typeof h=="function"&&h.name)return`function ${h.name}`;if(typeof h=="object")return h.constructor&&h.constructor.name?`an instance of ${h.constructor.name}`:`${(0,Ze.inspect)(h,{depth:-1})}`;let f=(0,Ze.inspect)(h,{colors:!1});return f.length>28&&(f=`${f.slice(0,25)}...`),`type ${typeof h} (${f})`})(i)}`,s},TypeError),_t.ERR_INVALID_MODULE_SPECIFIER=It("ERR_INVALID_MODULE_SPECIFIER",(t,e,i=void 0)=>`Invalid module "${t}" ${e}${i?` imported from ${i}`:""}`,TypeError),_t.ERR_INVALID_PACKAGE_CONFIG=It("ERR_INVALID_PACKAGE_CONFIG",(t,e,i)=>`Invalid package config ${t}${e?` while importing ${e}`:""}${i?`. ${i}`:""}`,Error),_t.ERR_INVALID_PACKAGE_TARGET=It("ERR_INVALID_PACKAGE_TARGET",(t,e,i,s=!1,r=void 0)=>{let o=typeof i=="string"&&!s&&i.length>0&&!i.startsWith("./");return e==="."?(Kt.ok(s===!1),`Invalid "exports" main target ${JSON.stringify(i)} defined in the package config ${t}package.json${r?` imported from ${r}`:""}${o?'; targets must start with "./"':""}`):`Invalid "${s?"imports":"exports"}" target ${JSON.stringify(i)} defined for '${e}' in the package config ${t}package.json${r?` imported from ${r}`:""}${o?'; targets must start with "./"':""}`},Error),_t.ERR_MODULE_NOT_FOUND=It("ERR_MODULE_NOT_FOUND",(t,e,i=!1)=>`Cannot find ${i?"module":"package"} '${t}' imported from ${e}`,Error),_t.ERR_NETWORK_IMPORT_DISALLOWED=It("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error),_t.ERR_PACKAGE_IMPORT_NOT_DEFINED=It("ERR_PACKAGE_IMPORT_NOT_DEFINED",(t,e,i)=>`Package import specifier "${t}" is not defined${e?` in package ${e}package.json`:""} imported from ${i}`,TypeError),_t.ERR_PACKAGE_PATH_NOT_EXPORTED=It("ERR_PACKAGE_PATH_NOT_EXPORTED",(t,e,i=void 0)=>e==="."?`No "exports" main defined in ${t}package.json${i?` imported from ${i}`:""}`:`Package subpath '${e}' is not defined by "exports" in ${t}package.json${i?` imported from ${i}`:""}`,Error),_t.ERR_UNSUPPORTED_DIR_IMPORT=It("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error),_t.ERR_UNSUPPORTED_RESOLVE_REQUEST=It("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError),_t.ERR_UNKNOWN_FILE_EXTENSION=It("ERR_UNKNOWN_FILE_EXTENSION",(t,e)=>`Unknown file extension "${t}" for ${e}`,TypeError),_t.ERR_INVALID_ARG_VALUE=It("ERR_INVALID_ARG_VALUE",(t,e,i="is invalid")=>{let s=(0,Ze.inspect)(e);return s.length>128&&(s=`${s.slice(0,128)}...`),`The ${t.includes(".")?"property":"argument"} '${t}' ${i}. Received ${s}`},TypeError);let Ds=(function(t){let e="__node_internal_"+t.name;return Object.defineProperty(t,"name",{value:e}),t})(function(t){let e=xi();return e&&(Di=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(t),e&&(Error.stackTraceLimit=Di),t}),Pe={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:Vs}=_t,Vi=new Map;function Ui(t,{base:e,specifier:i}){let s=Vi.get(t);if(s)return s;let r;try{r=I.readFileSync(di.toNamespacedPath(t),"utf8")}catch(c){let h=c;if(h.code!=="ENOENT")throw h}let o={exists:!1,pjsonPath:t,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(r!==void 0){let c;try{c=JSON.parse(r)}catch(h){let f=h,x=new Vs(t,(e?`"${i}" from `:"")+(0,j.fileURLToPath)(e||i),f.message);throw x.cause=f,x}o.exists=!0,Pe.call(c,"name")&&typeof c.name=="string"&&(o.name=c.name),Pe.call(c,"main")&&typeof c.main=="string"&&(o.main=c.main),Pe.call(c,"exports")&&(o.exports=c.exports),Pe.call(c,"imports")&&(o.imports=c.imports),!Pe.call(c,"type")||c.type!=="commonjs"&&c.type!=="module"||(o.type=c.type)}return Vi.set(t,o),o}function vi(t){let e=new URL("package.json",t);for(;!e.pathname.endsWith("node_modules/package.json");){let i=Ui((0,j.fileURLToPath)(e),{specifier:t});if(i.exists)return i;let s=e;if(e=new URL("../package.json",e),e.pathname===s.pathname)break}return{pjsonPath:(0,j.fileURLToPath)(e),exists:!1,type:"none"}}function Mi(t){return vi(t).type}let{ERR_UNKNOWN_FILE_EXTENSION:Us}=_t,Ms={}.hasOwnProperty,js={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"},ji={__proto__:null,"data:":function(t){let{1:e}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(t.pathname)||[null,null,null];return(function(i){return i&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(i)?"module":i==="application/json"?"json":null})(e)},"file:":function(t,e,i){let s=(function(c){let h=c.pathname,f=h.length;for(;f--;){let x=h.codePointAt(f);if(x===47)return"";if(x===46)return h.codePointAt(f-1)===47?"":h.slice(f)}return""})(t);if(s===".js"){let c=Mi(t);return c!=="none"?c:"commonjs"}if(s===""){let c=Mi(t);return c==="none"||c==="commonjs"?"commonjs":"module"}let r=js[s];if(r)return r;if(i)return;let o=(0,j.fileURLToPath)(t);throw new Us(s,o)},"http:":Fi,"https:":Fi,"node:":()=>"builtin"};function Fi(){}let Fs=Object.freeze(["node","import"]),Bs=new Set(Fs);function $s(t){return Bs}let ti=RegExp.prototype[Symbol.replace],{ERR_INVALID_MODULE_SPECIFIER:ei,ERR_INVALID_PACKAGE_CONFIG:Bi,ERR_INVALID_PACKAGE_TARGET:Ws,ERR_MODULE_NOT_FOUND:$i,ERR_PACKAGE_IMPORT_NOT_DEFINED:qs,ERR_PACKAGE_PATH_NOT_EXPORTED:Gs,ERR_UNSUPPORTED_DIR_IMPORT:Ks,ERR_UNSUPPORTED_RESOLVE_REQUEST:Wi}=_t,qi={}.hasOwnProperty,Gi=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,Ki=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,Hs=/^\.|%|\\/,ii=/\*/g,zs=/%2f|%5c/i,Hi=new Set,Js=/[/\\]{2}/;function zi(t,e,i,s,r,o,c){if(ee.noDeprecation)return;let h=(0,j.fileURLToPath)(s),f=Js.exec(c?t:e)!==null;ee.emitWarning(`Use of deprecated ${f?"double slash":"leading or trailing slash matching"} resolving "${t}" for module request "${e}" ${e===i?"":`matched to "${i}" `}in the "${r?"imports":"exports"}" field module resolution of the package at ${h}${o?` imported from ${(0,j.fileURLToPath)(o)}`:""}.`,"DeprecationWarning","DEP0166")}function Ji(t,e,i,s){if(ee.noDeprecation||(function(f,x){let m=f.protocol;return Ms.call(ji,m)&&ji[m](f,x,!0)||null})(t,{parentURL:i.href})!=="module")return;let o=(0,j.fileURLToPath)(t.href),c=(0,j.fileURLToPath)(new URL(".",e)),h=(0,j.fileURLToPath)(i);s?di.resolve(c,s)!==o&&ee.emitWarning(`Package ${c} has a "main" field set to "${s}", excluding the full filename and extension to the resolved file at "${o.slice(c.length)}", imported from ${h}.
|
|
16
|
+
Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):ee.emitWarning(`No "main" or "exports" field defined in the package.json for ${c} resolving the main entry point "${o.slice(c.length)}", imported from ${h}.
|
|
17
|
+
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function Yi(t){try{return(0,I.statSync)(t)}catch{}}function yi(t){let e=(0,I.statSync)(t,{throwIfNoEntry:!1}),i=e?e.isFile():void 0;return i!=null&&i}function Ys(t,e,i){let s;if(e.main!==void 0){if(s=new URL(e.main,t),yi(s))return s;let c=[`./${e.main}.js`,`./${e.main}.json`,`./${e.main}.node`,`./${e.main}/index.js`,`./${e.main}/index.json`,`./${e.main}/index.node`],h=-1;for(;++h<c.length&&(s=new URL(c[h],t),!yi(s));)s=void 0;if(s)return Ji(s,t,i,e.main),s}let r=["./index.js","./index.json","./index.node"],o=-1;for(;++o<r.length&&(s=new URL(r[o],t),!yi(s));)s=void 0;if(s)return Ji(s,t,i,e.main),s;throw new $i((0,j.fileURLToPath)(new URL(".",t)),(0,j.fileURLToPath)(i))}function _i(t,e,i){return new Gs((0,j.fileURLToPath)(new URL(".",e)),t,i&&(0,j.fileURLToPath)(i))}function Ne(t,e,i,s,r){return e=typeof e=="object"&&e!==null?JSON.stringify(e,null,""):`${e}`,new Ws((0,j.fileURLToPath)(new URL(".",i)),t,e,s,r&&(0,j.fileURLToPath)(r))}function Qs(t,e,i,s,r,o,c,h,f){if(e!==""&&!o&&t[t.length-1]!=="/")throw Ne(i,t,s,c,r);if(!t.startsWith("./")){if(c&&!t.startsWith("../")&&!t.startsWith("/")){let _=!1;try{new URL(t),_=!0}catch{}if(!_)return Zi(o?ti.call(ii,t,()=>e):t+e,s,f)}throw Ne(i,t,s,c,r)}if(Gi.exec(t.slice(2))!==null){if(Ki.exec(t.slice(2))!==null)throw Ne(i,t,s,c,r);if(!h){let _=o?i.replace("*",()=>e):i+e;zi(o?ti.call(ii,t,()=>e):t,_,i,s,c,r,!0)}}let x=new URL(t,s),m=x.pathname,b=new URL(".",s).pathname;if(!m.startsWith(b))throw Ne(i,t,s,c,r);if(e==="")return x;if(Gi.exec(e)!==null){let _=o?i.replace("*",()=>e):i+e;Ki.exec(e)===null?h||zi(o?ti.call(ii,t,()=>e):t,_,i,s,c,r,!1):(function(T,G,lt,U,K){let D=`request is not a valid match in pattern "${G}" for the "${U?"imports":"exports"}" resolution of ${(0,j.fileURLToPath)(lt)}`;throw new ei(T,D,K&&(0,j.fileURLToPath)(K))})(_,i,s,c,r)}return o?new URL(ti.call(ii,x.href,()=>e)):new URL(e,x)}function Xs(t){let e=Number(t);return`${e}`===t&&e>=0&&e<4294967295}function de(t,e,i,s,r,o,c,h,f){if(typeof e=="string")return Qs(e,i,s,t,r,o,c,h,f);if(Array.isArray(e)){let x=e;if(x.length===0)return null;let m,b=-1;for(;++b<x.length;){let _=x[b],T;try{T=de(t,_,i,s,r,o,c,h,f)}catch(G){if(m=G,G.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw G}if(T!==void 0){if(T!==null)return T;m=null}}if(m==null)return null;throw m}if(typeof e=="object"&&e!==null){let x=Object.getOwnPropertyNames(e),m=-1;for(;++m<x.length;)if(Xs(x[m]))throw new Bi((0,j.fileURLToPath)(t),r,'"exports" cannot contain numeric property keys.');for(m=-1;++m<x.length;){let b=x[m];if(b==="default"||f&&f.has(b)){let _=de(t,e[b],i,s,r,o,c,h,f);if(_===void 0)continue;return _}}return null}if(e===null)return null;throw Ne(s,e,t,c,r)}function Zs(t,e,i){if(ee.noDeprecation)return;let s=(0,j.fileURLToPath)(e);Hi.has(s+"|"+t)||(Hi.add(s+"|"+t),ee.emitWarning(`Use of deprecated trailing slash pattern mapping "${t}" in the "exports" field module resolution of the package at ${s}${i?` imported from ${(0,j.fileURLToPath)(i)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function Qi(t,e,i,s,r){let o=i.exports;if((function(m,b,_){if(typeof m=="string"||Array.isArray(m))return!0;if(typeof m!="object"||m===null)return!1;let T=Object.getOwnPropertyNames(m),G=!1,lt=0,U=-1;for(;++U<T.length;){let K=T[U],D=K===""||K[0]!==".";if(lt++===0)G=D;else if(G!==D)throw new Bi((0,j.fileURLToPath)(b),_,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return G})(o,t,s)&&(o={".":o}),qi.call(o,e)&&!e.includes("*")&&!e.endsWith("/")){let m=de(t,o[e],"",e,s,!1,!1,!1,r);if(m==null)throw _i(e,t,s);return m}let c="",h="",f=Object.getOwnPropertyNames(o),x=-1;for(;++x<f.length;){let m=f[x],b=m.indexOf("*");if(b!==-1&&e.startsWith(m.slice(0,b))){e.endsWith("/")&&Zs(e,t,s);let _=m.slice(b+1);e.length>=m.length&&e.endsWith(_)&&Xi(c,m)===1&&m.lastIndexOf("*")===b&&(c=m,h=e.slice(b,e.length-_.length))}}if(c){let m=de(t,o[c],h,c,s,!0,!1,e.endsWith("/"),r);if(m==null)throw _i(e,t,s);return m}throw _i(e,t,s)}function Xi(t,e){let i=t.indexOf("*"),s=e.indexOf("*"),r=i===-1?t.length:i+1,o=s===-1?e.length:s+1;return r>o?-1:o>r||i===-1?1:s===-1||t.length>e.length?-1:e.length>t.length?1:0}function tr(t,e,i){if(t==="#"||t.startsWith("#/")||t.endsWith("/"))throw new ei(t,"is not a valid internal imports specifier name",(0,j.fileURLToPath)(e));let s,r=vi(e);if(r.exists){s=(0,j.pathToFileURL)(r.pjsonPath);let o=r.imports;if(o)if(qi.call(o,t)&&!t.includes("*")){let c=de(s,o[t],"",t,e,!1,!0,!1,i);if(c!=null)return c}else{let c="",h="",f=Object.getOwnPropertyNames(o),x=-1;for(;++x<f.length;){let m=f[x],b=m.indexOf("*");if(b!==-1&&t.startsWith(m.slice(0,-1))){let _=m.slice(b+1);t.length>=m.length&&t.endsWith(_)&&Xi(c,m)===1&&m.lastIndexOf("*")===b&&(c=m,h=t.slice(b,t.length-_.length))}}if(c){let m=de(s,o[c],h,c,e,!0,!0,!1,i);if(m!=null)return m}}}throw(function(o,c,h){return new qs(o,c&&(0,j.fileURLToPath)(new URL(".",c)),(0,j.fileURLToPath)(h))})(t,s,e)}function Zi(t,e,i){if(F.builtinModules.includes(t))return new URL("node:"+t);let{packageName:s,packageSubpath:r,isScoped:o}=(function(m,b){let _=m.indexOf("/"),T=!0,G=!1;m[0]==="@"&&(G=!0,_===-1||m.length===0?T=!1:_=m.indexOf("/",_+1));let lt=_===-1?m:m.slice(0,_);if(Hs.exec(lt)!==null&&(T=!1),!T)throw new ei(m,"is not a valid package name",(0,j.fileURLToPath)(b));return{packageName:lt,packageSubpath:"."+(_===-1?"":m.slice(_)),isScoped:G}})(t,e),c=vi(e);if(c.exists){let m=(0,j.pathToFileURL)(c.pjsonPath);if(c.name===s&&c.exports!==void 0&&c.exports!==null)return Qi(m,r,c,e,i)}let h,f=new URL("./node_modules/"+s+"/package.json",e),x=(0,j.fileURLToPath)(f);do{let m=Yi(x.slice(0,-13));if(!m||!m.isDirectory()){h=x,f=new URL((o?"../../../../node_modules/":"../../../node_modules/")+s+"/package.json",f),x=(0,j.fileURLToPath)(f);continue}let b=Ui(x,{base:e,specifier:t});return b.exports!==void 0&&b.exports!==null?Qi(f,r,b,e,i):r==="."?Ys(f,b,e):new URL(r,f)}while(x.length!==h.length)}function er(t,e,i,s){i===void 0&&(i=$s());let r=e.protocol,o=r==="data:"||r==="http:"||r==="https:",c;if((function(h){return h!==""&&(h[0]==="/"||(function(f){return f[0]==="."&&(f.length===1||f[1]==="/"||f[1]==="."&&(f.length===2||f[2]==="/"))})(h))})(t))try{c=new URL(t,e)}catch(h){let f=new Wi(t,e);throw f.cause=h,f}else if(r==="file:"&&t[0]==="#")c=tr(t,e,i);else try{c=new URL(t)}catch(h){if(o&&!F.builtinModules.includes(t)){let f=new Wi(t,e);throw f.cause=h,f}c=Zi(t,e,i)}return Kt.ok(c!==void 0,"expected to be defined"),c.protocol!=="file:"?c:(function(h,f){if(zs.exec(h.pathname)!==null)throw new ei(h.pathname,'must not include encoded "/" or "\\" characters',(0,j.fileURLToPath)(f));let x;try{x=(0,j.fileURLToPath)(h)}catch(b){let _=b;throw Object.defineProperty(_,"input",{value:String(h)}),Object.defineProperty(_,"module",{value:String(f)}),_}let m=Yi(x.endsWith("/")?x.slice(-1):x);if(m&&m.isDirectory()){let b=new Ks(x,(0,j.fileURLToPath)(f));throw b.url=String(h),b}if(!m||!m.isFile()){let b=new $i(x||h.pathname,f&&(0,j.fileURLToPath)(f),!0);throw b.url=String(h),b}{let b=(0,I.realpathSync)(x),{search:_,hash:T}=h;(h=(0,j.pathToFileURL)(b+(x.endsWith(di.sep)?"/":""))).search=_,h.hash=T}return h})(c,e)}function me(t){return typeof t!="string"||t.startsWith("file://")?mi((0,j.fileURLToPath)(t)):mi(t)}function ie(t){return(0,j.pathToFileURL)(me(t)).toString()}let ir=new Set(["node","import"]),sr=[".mjs",".cjs",".js",".json"],rr=new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function ts(t,e,i){try{return er(t,e,i)}catch(s){if(!rr.has(s?.code))throw s}}function nr(t,e={}){if(typeof t!="string"){if(!(t instanceof URL))throw new TypeError("input must be a `string` or `URL`");t=me(t)}if(/(?:node|data|http|https):/.test(t))return t;if(Li.has(t))return"node:"+t;if(t.startsWith("file://")&&(t=me(t)),te(t))try{if((0,I.statSync)(t).isFile())return ie(t)}catch(c){if(c?.code!=="ENOENT")throw c}let i=e.conditions?new Set(e.conditions):ir,s=(Array.isArray(e.url)?e.url:[e.url]).filter(Boolean).map(c=>new URL((function(h){return typeof h!="string"&&(h=h.toString()),/(?:node|data|http|https|file):/.test(h)?h:Li.has(h)?"node:"+h:"file://"+encodeURI(mi(h))})(c.toString())));s.length===0&&s.push(new URL(ie(process.cwd())));let r=[...s];for(let c of s)c.protocol==="file:"&&r.push(new URL("./",c),new URL(Zt(c.pathname,"_index.js"),c),new URL("node_modules",c));let o;for(let c of r){if(o=ts(t,c,i),o)break;for(let h of["","/index"]){for(let f of e.extensions||sr)if(o=ts(Zt(t,h)+f,c,i),o)break;if(o)break}if(o)break}if(!o){let c=new Error(`Cannot find module ${t} imported from ${r.join(", ")}`);throw c.code="ERR_MODULE_NOT_FOUND",c}return ie(o)}function ar(t,e){return nr(t,e)}function or(t,e){return me(ar(t,e))}let cr=/(?:[\s;]|^)(?:import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m,hr=/\/\*.+?\*\/|\/\/.*(?=[nr])/g;function lr(t,e={}){return e.stripComments&&(t=t.replace(hr,"")),cr.test(t)}function es(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}let pr=new Set(["/","\\",void 0]),is=Symbol.for("pathe:normalizedAlias"),ur=/[/\\]/;function ss(t){if(t[is])return t;let e=Object.fromEntries(Object.entries(t).sort(([i],[s])=>(function(r,o){return o.split("/").length-r.split("/").length})(i,s)));for(let i in e)for(let s in e)s===i||i.startsWith(s)||e[i]?.startsWith(s)&&pr.has(e[i][s.length])&&(e[i]=e[s]+e[i].slice(s.length));return Object.defineProperty(e,is,{value:!0,enumerable:!1}),e}function rs(t="/"){let e=t[t.length-1];return e==="/"||e==="\\"}var fr={rE:"2.6.1"};let dr=mt("crypto");var Ei=bt.n(dr);let Et=globalThis.process?.env||Object.create(null),Ht=globalThis.process||{env:Et},si=Ht!==void 0&&Ht.env&&Ht.env.NODE_ENV||void 0,mr=[["claude",["CLAUDECODE","CLAUDE_CODE"]],["replit",["REPL_ID"]],["gemini",["GEMINI_CLI"]],["codex",["CODEX_SANDBOX","CODEX_THREAD_ID"]],["opencode",["OPENCODE"]],["pi",[bi("PATH",/\.pi[\\/]agent/)]],["auggie",["AUGMENT_AGENT"]],["goose",["GOOSE_PROVIDER"]],["devin",[bi("EDITOR",/devin/)]],["cursor",["CURSOR_AGENT"]],["kiro",[bi("TERM_PROGRAM",/kiro/)]]];function bi(t,e){return()=>{let i=Et[t];return!!i&&e.test(i)}}let ns=(function(){let t=Et.AI_AGENT;if(t)return{name:t.toLowerCase()};for(let[e,i]of mr)for(let s of i)if(typeof s=="string"?Et[s]:s())return{name:e};return{}})(),gr=(ns.name,ns.name,[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:!0}],["GOOGLE_CLOUDRUN","K_SERVICE"],["GOOGLE_CLOUDRUN_JOB","CLOUD_RUN_JOB"],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["JENKINS","JENKINS_URL"],["HUDSON","HUDSON_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOY"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}],["EDGEONE_PAGES","EO_PAGES_CI",{ci:!0}]]),as=(function(){for(let t of gr)if(Et[t[1]||t[0]])return{name:t[0].toLowerCase(),...t[2]};return Et.SHELL==="/bin/jsh"&&Ht.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}})(),Ci=(as.name,Ht.platform||""),$r=!!Et.CI||as.ci!==!1,xr=!!Ht.stdout?.isTTY,Wr=(Et.DEBUG,si==="test"||!!Et.TEST),os=(si==="production"||Et.MODE,si==="dev"||si==="development"||Et.MODE,Et.MINIMAL,/^win/i.test(Ci)),vr=(/^linux/i.test(Ci),/^darwin/i.test(Ci),!Et.NO_COLOR&&(Et.FORCE_COLOR||(xr||os)&&Et.TERM),(Ht.versions?.node||"").replace(/^v/,"")||null),yr=(Number(vr?.split(".")[0]),!!Ht?.versions?.node),_r="Bun"in globalThis,Er="Deno"in globalThis,br="fastly"in globalThis,Cr=[["Netlify"in globalThis,"netlify"],["EdgeRuntime"in globalThis,"edge-light"],[globalThis.navigator?.userAgent==="Cloudflare-Workers","workerd"],[br,"fastly"],[Er,"deno"],[_r,"bun"],[yr,"node"]];(function(){let t=Cr.find(e=>e[0]);t&&t[1]})();let kr=mt("tty"),wr=kr?.WriteStream?.prototype?.hasColors?.()??!1,V=(t,e)=>{if(!wr)return r=>r;let i=`\x1B[${t}m`,s=`\x1B[${e}m`;return r=>{let o=r+"",c=o.indexOf(s);if(c===-1)return i+o+s;let h=i,f=0,x=(e===22?s:"")+i;for(;c!==-1;)h+=o.slice(f,c)+x,f=c+s.length,c=o.indexOf(s,f);return h+=o.slice(f)+s,h}},cs=(V(0,0),V(1,22),V(2,22),V(3,23),V(4,24),V(53,55),V(7,27),V(8,28),V(9,29),V(30,39),V(31,39)),ge=V(32,39),ri=V(33,39),hs=V(34,39),Sr=(V(35,39),V(36,39)),Ir=(V(37,39),V(90,39));V(40,49),V(41,49),V(42,49),V(43,49),V(44,49),V(45,49),V(46,49),V(47,49),V(100,49),V(91,39),V(92,39),V(93,39),V(94,39),V(95,39),V(96,39),V(97,39),V(101,49),V(102,49),V(103,49),V(104,49),V(105,49),V(106,49),V(107,49);function ls(t){if(typeof t!="string"||t.startsWith("file://"))return!1;try{return(0,I.lstatSync)(t).isDirectory()}catch{return!1}}function ps(t,e=8){return((function(){if(xe!==void 0)return xe;try{return xe=!!Ei().getFips?.(),xe}catch{return xe=!1,xe}})()?Ei().createHash("sha256"):Ei().createHash("md5")).update(t).digest("hex").slice(0,e)}let us={true:ge("true"),false:ri("false"),"[rebuild]":ri("[rebuild]"),"[esm]":hs("[esm]"),"[cjs]":ge("[cjs]"),"[import]":hs("[import]"),"[require]":ge("[require]"),"[native]":Sr("[native]"),"[transpile]":ri("[transpile]"),"[fallback]":cs("[fallback]"),"[unknown]":cs("[unknown]"),"[hit]":ge("[hit]"),"[miss]":ri("[miss]"),"[json]":ge("[json]"),"[data]":ge("[data]")};function ct(t,...e){if(!t.opts.debug)return;let i=process.cwd();console.log(Ir(["[jiti]",...e.map(s=>s in us?us[s]:typeof s!="string"?JSON.stringify(s):s.replace(i,"."))].join(" ")))}function $t(t,e){return t.opts.interopDefault?(function(i){let s=typeof i;if(i===null||s!=="object"&&s!=="function")return i;let r=i.default,o=typeof r,c=r==null,h=o==="object"||o==="function";if(c&&i instanceof Promise)return i;let f=o==="function"&&s!=="function",x=h&&!(r instanceof Promise),m=new Map;return new Proxy(i,{get(b,_){if(m.has(_))return m.get(_);let T;return _==="__esModule"?T=!0:_==="default"?T=c?i:typeof r?.default=="function"&&i.__esModule?r.default:r:_ in b?T=b[_]:x&&(T=r[_],typeof T=="function"&&(T=T.bind(r))),m.set(_,T),T},apply:f?(b,_,T)=>Reflect.apply(r,_,T):void 0})})(e):e}let xe;function Ot(t,e){return!!se(t,e)}function se(t,e,i){let s=process.env[t];if(!(t in process.env))return e;try{return JSON.parse(s)}catch{return i?s:e}}let fs=/\.(c|m)?j(sx?)$/,ds=/\.(c|m)?t(sx?)$/;function ve(t,e,i){let s,r;if(t.isNativeRe.test(e))return e;if(t.resolveTsConfigPaths&&!i.skipTsConfigPaths){let h=t.resolveTsConfigPaths(e);for(let f of h){let x=ve(t,f,{...i,try:!0,skipTsConfigPaths:!0});if(x)return x}}t.alias&&(e=(function(h,f){let x=nt(h);f=ss(f);for(let[m,b]of Object.entries(f)){if(!x.startsWith(m))continue;let _=rs(m)?m.slice(0,-1):m;if(rs(x[_.length]))return Lt(b,x.slice(m.length))}return x})(e,t.alias));let o=i?.parentURL||t.url;ls(o)&&(o=Lt(o,"_index.js"));let c=(i?.async?[i?.conditions,["node","import"],["node","require"]]:[i?.conditions,["node","require"],["node","import"]]).filter(Boolean);for(let h of c){try{s=or(e,{url:o,conditions:h,extensions:t.opts.extensions})}catch(f){r=f}if(s)return s}try{return t.nativeRequire.resolve(e,{paths:i.paths})}catch(h){r=h}for(let h of t.additionalExts)if(s=ki(t,e+h,o,i)||ki(t,e+"/index"+h,o,i),s||(ds.test(t.filename)||ds.test(t.parentModule?.filename||"")||fs.test(e))&&(s=ki(t,e.replace(fs,".$1t$2"),o,i),s))return s;if(!i?.try)throw r}function ki(t,e,i,s){try{return t.nativeRequire.resolve(e,{...s,paths:[Re(me(i)),...s?.paths||[]]})}catch{}}let Ar=mt("fs/promises"),ms=mt("perf_hooks"),Tr=mt("vm");var Rr=bt.n(Tr);function ni(t,e,i){let s=t.parentCache||{};if(e.startsWith("node:"))return re(t,e,i.async);if(e.startsWith("file:"))e=(0,j.fileURLToPath)(e);else if(e.startsWith("data:")){if(!i.async)throw new Error("`data:` URLs are only supported in ESM context. Use `import` or `jiti.import` instead.");return ct(t,"[native]","[data]","[import]",e),re(t,e,!0)}if(F.builtinModules.includes(e)||e===".pnp.js")return re(t,e,i.async);if(t.opts.virtualModules&&e in t.opts.virtualModules){ct(t,"[virtual]",e);let h=t.opts.virtualModules[e];return i.async?Promise.resolve($t(t,h)):$t(t,h)}if(t.opts.tryNative&&!t.opts.transformOptions)try{if(!(e=ve(t,e,i))&&i.try)return;if(ct(t,"[try-native]",i.async&&t.nativeImport?"[import]":"[require]",e),i.async&&t.nativeImport)return t.nativeImport(e).then(h=>(t.opts.moduleCache===!1&&delete t.nativeRequire.cache[e],$t(t,h))).catch(h=>(ct(t,`[try-native] Using fallback for ${e} because of an error:`,h),ni({...t,opts:{...t.opts,tryNative:!1}},e,i)));{let h=t.nativeRequire(e);return t.opts.moduleCache===!1&&delete t.nativeRequire.cache[e],$t(t,h)}}catch(h){ct(t,`[try-native] Using fallback for ${e} because of an error:`,h)}let r=ve(t,e,i);if(!r&&i.try)return;let o=ui(r);if(o===".json"){ct(t,"[json]",r);let h=t.nativeRequire(r);return h&&!("default"in h)&&Object.defineProperty(h,"default",{value:h,enumerable:!1}),h}if(o&&!t.opts.extensions.includes(o))return ct(t,"[native]","[unknown]",i.async?"[import]":"[require]",r),re(t,r,i.async);if(t.isNativeRe.test(r))return ct(t,"[native]",i.async?"[import]":"[require]",r),re(t,r,i.async);if(s[r])return $t(t,s[r]?.exports);if(t.opts.moduleCache){let h=t.nativeRequire.cache[r];if(h?.loaded)return $t(t,h.exports)}let c=(0,I.readFileSync)(r,"utf8");return Si(t,c,{id:e,filename:r,ext:o,cache:s,async:i.async})}function re(t,e,i){return i&&t.nativeImport?t.nativeImport((function(s){return os&&te(s)?ie(s):s})(e)).then(s=>$t(t,s)):$t(t,t.nativeRequire(e))}let Pr="9";function Nr(t,e,i){if(!t.opts.fsCache||!e.filename)return i();let s=` /* v${Pr}-${ps(e.source,16)} */
|
|
18
|
+
`,r=`${fi(Re(e.filename))}-${(function(f){let x=f.split(ur).pop();if(!x)return;let m=x.lastIndexOf(".");return m<=0?x:x.slice(0,m)})(e.filename)}`+(t.opts.sourceMaps?"+map":"")+(e.interopDefault?".i":"")+`.${ps(e.filename)}`+(e.async?".mjs":".cjs");e.jsx&&e.filename.endsWith("x")&&(r+="x");let o=t.opts.fsCache,c=Lt(o,r);if(!t.opts.rebuildFsCache&&(0,I.existsSync)(c)){let f=(0,I.readFileSync)(c,"utf8");if(f.endsWith(s))return ct(t,"[cache]","[hit]",e.filename,"~>",c),f}ct(t,"[cache]","[miss]",e.filename);let h=i();return h.includes("__JITI_ERROR__")||((0,I.writeFileSync)(c,h+s,"utf8"),ct(t,"[cache]","[store]",e.filename,"~>",c)),h}function Lr(t){if(t.opts.fsCache===!0&&(t.opts.fsCache=(function(e){let i=e.filename&&Rs(e.filename,"../node_modules");if(i&&(0,I.existsSync)(i))return Lt(i,".cache/jiti");let s=(0,B.tmpdir)();if(process.env.TMPDIR&&s===process.cwd()&&!process.env.JITI_RESPECT_TMPDIR_ENV){let r=process.env.TMPDIR;delete process.env.TMPDIR,s=(0,B.tmpdir)(),process.env.TMPDIR=r}return Lt(s,"jiti")})(t)),t.opts.fsCache)try{if((0,I.mkdirSync)(t.opts.fsCache,{recursive:!0}),!(function(e){try{return(0,I.accessSync)(e,I.constants.W_OK),!0}catch{return!1}})(t.opts.fsCache))throw new Error("directory is not writable!")}catch(e){ct(t,"Error creating cache directory at ",t.opts.fsCache,e),t.opts.fsCache=!1}}function wi(t,e){let i=Nr(t,e,()=>{let s=t.opts.transform({...t.opts.transformOptions,babel:{...t.opts.sourceMaps?{sourceFileName:e.filename,sourceMaps:"inline"}:{},...t.opts.transformOptions?.babel},interopDefault:t.opts.interopDefault,...e});return s.error&&t.opts.debug&&ct(t,s.error),s.code});return i.startsWith("#!")&&(i="// "+i),i}function Si(t,e,i={}){let s=i.id||(i.filename?fi(i.filename):`_jitiEval.${i.ext||(i.async?"mjs":"js")}`),r=i.filename||ve(t,s,{async:i.async}),o=i.ext||ui(r),c=i.cache||t.parentCache||{},h=/\.[cm]?tsx?$/.test(o),f=o===".mjs"||o===".js"&&(function(D){for(;D&&D!=="."&&D!=="/";){D=Lt(D,"..");try{let ne=(0,I.readFileSync)(Lt(D,"package.json"),"utf8");try{return JSON.parse(ne)}catch{}break}catch{}}})(r)?.type==="module",x=o===".cjs",m=i.forceTranspile??(!x&&!(f&&i.async)&&(h||f||t.isTransformRe.test(r)||lr(e))),b=ms.performance.now();if(m){e=wi(t,{filename:r,source:e,ts:h,async:i.async??!1,jsx:t.opts.jsx});let D=Math.round(1e3*(ms.performance.now()-b))/1e3;ct(t,"[transpile]",i.async?"[esm]":"[cjs]",r,`(${D}ms)`)}else{if(ct(t,"[native]",i.async?"[import]":"[require]",r),i.async)return Promise.resolve(re(t,r,i.async)).catch(D=>(ct(t,"Native import error:",D),ct(t,"[fallback]",r),Si(t,e,{...i,forceTranspile:!0})));try{return re(t,r,i.async)}catch(D){ct(t,"Native require error:",D),ct(t,"[fallback]",r),e=wi(t,{filename:r,source:e,ts:h,async:i.async??!1,jsx:t.opts.jsx})}}let _=new F.Module(r);_.filename=r,t.parentModule&&(_.parent=t.parentModule,Array.isArray(t.parentModule.children)&&!t.parentModule.children.includes(_)&&t.parentModule.children.push(_));let T=gs(r,t.opts,{parentModule:_,parentCache:c,nativeImport:t.nativeImport,onError:t.onError,createRequire:t.createRequire},!0),G;_.require=T,_.path=Re(r),_.paths=F.Module._nodeModulePaths(_.path),c[r]=_,t.opts.moduleCache&&(t.nativeRequire.cache[r]=_);let lt=(function(D,ne){return`(${ne?.async?"async ":""}function (exports, require, module, __filename, __dirname, jitiImport, jitiESMResolve) { ${D}
|
|
19
|
+
});`})(e,{async:i.async});try{G=Rr().runInThisContext(lt,{filename:r,lineOffset:0,displayErrors:!1})}catch(D){D.name==="SyntaxError"&&i.async&&t.nativeImport?(ct(t,"[esm]","[import]","[fallback]",r),G=(function(ne,Ii,Ai,ai,oi){let xs=`export default ${Ii}`,vs=oi?void 0:`data:text/javascript;base64,${Buffer.from(xs).toString("base64")}`;return(...Dr)=>{let Le,ys=()=>(Le=(function(ye,_s){let Es=Lt((0,B.tmpdir)(),"jiti-esm");try{(0,I.mkdirSync)(Es,{recursive:!0})}catch{}let bs=Lt(Es,`${fi(_s,ui(_s))}-${Date.now()}-${Math.random().toString(36).slice(2)}.mjs`);return(0,I.writeFileSync)(bs,ye),bs})(xs,Ai),ct(ne,"[esm]","[tempfile]",Le),ai(ie(Le)));return(vs?ai(vs).catch(ye=>{if(ye?.code!=="ENAMETOOLONG")throw ye;return ys()}):ys()).then(ye=>ye.default(...Dr)).finally(()=>{Le&&(0,Ar.unlink)(Le).catch(()=>{})})}})(t,lt,r,t.nativeImport,t.opts.esmEvalTempFile)):(t.opts.moduleCache&&delete t.nativeRequire.cache[r],t.onError(D))}let U;try{U=G(_.exports,_.require,_,_.filename,Re(_.filename),T.import,T.esmResolve)}catch(D){t.opts.moduleCache&&delete t.nativeRequire.cache[r],t.onError(D)}function K(){if(_.exports&&_.exports.__JITI_ERROR__){let{filename:D,line:ne,column:Ii,code:Ai,message:ai}=_.exports.__JITI_ERROR__,oi=new Error(`${Ai}: ${ai}
|
|
20
|
+
${`${D}:${ne}:${Ii}`}`);Error.captureStackTrace(oi,ni),t.onError(oi)}return _.loaded=!0,$t(t,_.exports)}return i.async?Promise.resolve(U).then(K):K()}let Or=(0,B.platform)()==="win32";function gs(t,e={},i,s=!1){let r=s?e:(function(U){let K={fsCache:Ot("JITI_FS_CACHE",Ot("JITI_CACHE",!0)),rebuildFsCache:Ot("JITI_REBUILD_FS_CACHE",!1),moduleCache:Ot("JITI_MODULE_CACHE",Ot("JITI_REQUIRE_CACHE",!0)),debug:Ot("JITI_DEBUG",!1),sourceMaps:Ot("JITI_SOURCE_MAPS",!1),interopDefault:Ot("JITI_INTEROP_DEFAULT",!0),extensions:se("JITI_EXTENSIONS",[".js",".mjs",".cjs",".ts",".tsx",".mts",".cts",".mtsx",".ctsx"]),alias:se("JITI_ALIAS",{}),nativeModules:se("JITI_NATIVE_MODULES",[]),transformModules:se("JITI_TRANSFORM_MODULES",[]),tryNative:se("JITI_TRY_NATIVE","Bun"in globalThis),esmEvalTempFile:Ot("JITI_ESM_EVAL_TEMP_FILE",!1),jsx:Ot("JITI_JSX",!1),tsconfigPaths:se("JITI_TSCONFIG_PATHS",!1,!0)};K.jsx&&K.extensions.push(".jsx",".tsx");let D={};return U.cache!==void 0&&(D.fsCache=U.cache),U.requireCache!==void 0&&(D.moduleCache=U.requireCache),{...K,...D,...U}})(e);typeof t=="string"&&t.startsWith("file://")&&(t=me(t));let o=r.alias&&Object.keys(r.alias).length>0?ss(r.alias||{}):void 0,c;if(r.tsconfigPaths){let{getTsconfig:U,createPathsMatcher:K}=bt("./node_modules/.pnpm/get-tsconfig@4.14.0/node_modules/get-tsconfig/dist/index.cjs"),D=U(typeof r.tsconfigPaths=="string"?r.tsconfigPaths:Re(t));D&&(c=K(D))}let h=["typescript","jiti",...r.nativeModules||[]],f=new RegExp(`node_modules/(${h.map(U=>es(U)).join("|")})/`),x=[...r.transformModules||[]],m=new RegExp(`node_modules/(${x.map(U=>es(U)).join("|")})/`);t||(t=process.cwd()),!s&&ls(t)&&(t=Lt(t,"_index.js"));let b=ie(t),_=[...r.extensions].filter(U=>U!==".js"),T=i.createRequire(Or?t.replace(/\//g,"\\"):t),G={filename:t,url:b,opts:r,alias:o,resolveTsConfigPaths:c,nativeModules:h,transformModules:x,isNativeRe:f,isTransformRe:m,additionalExts:_,nativeRequire:T,onError:i.onError,parentModule:i.parentModule,parentCache:i.parentCache,nativeImport:i.nativeImport,createRequire:i.createRequire};return s||ct(G,"[init]",...[["version:",fr.rE],["module-cache:",r.moduleCache],["fs-cache:",r.fsCache],["rebuild-fs-cache:",r.rebuildFsCache],["interop-defaults:",r.interopDefault]].flat()),s||Lr(G),Object.assign(function(U){return ni(G,U,{async:!1})},{cache:r.moduleCache?T.cache:Object.create(null),extensions:T.extensions,main:T.main,options:r,resolve:Object.assign(function(U,K){return ve(G,U,{...K,async:!1})},{paths:T.resolve.paths}),transform:U=>wi(G,U),evalModule:(U,K)=>Si(G,U,K),async import(U,K){let D=await ni(G,U,{...K,async:!0});return K?.default?D?.default??D:D},esmResolve(U,K){typeof K=="string"&&(K={parentURL:K});let D=ve(G,U,{parentURL:b,...K,async:!0});return!D||typeof D!="string"||D.startsWith("file://")?D:ie(D)}})}})(),Cs.exports=Ri.default})()});var Ss=Ur(ks(),1);import{createRequire as ws}from"module";function Mr(Dt){throw Dt}var jr=Dt=>import(Dt),Ti;function Fr(...Dt){return Ti||(Ti=ws(import.meta.url)("../dist/babel.cjs")),Ti(...Dt)}function Br(Dt,zt={}){return zt.transform||(zt={...zt,transform:Fr}),(0,Ss.default)(Dt,zt,{onError:Mr,nativeImport:jr,createRequire:ws})}var Hr=Br;export{Br as createJiti,Hr as default};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@turboforge/sync",
|
|
3
3
|
"author": "Mayank Kumar Chaudhari <https://mayankchaudhari.com>",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.1",
|
|
6
6
|
"description": "The authoritative synchronization engine for Turboforge monorepos to align tooling, configurations, and dependencies with upstream templates.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "./dist/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@types/node": "latest",
|
|
42
42
|
"tsup": "latest",
|
|
43
43
|
"typescript": "latest",
|
|
44
|
-
"@turboforge/cli-kit": "^1.0.
|
|
44
|
+
"@turboforge/cli-kit": "^1.0.1"
|
|
45
45
|
},
|
|
46
46
|
"forge": {
|
|
47
47
|
"aliases": [
|
package/dist/chunk-P3TVCV3U.mjs
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{access as ye,readFile as H,writeFile as V}from"fs/promises";import{resolve as xe}from"path";import{exec as _,execFile as U}from"child_process";import{randomUUID as re}from"crypto";import{access as J,readFile as M,rename as oe,rm as ie,writeFile as se}from"fs/promises";import{dirname as G,join as W,parse as q,resolve as B}from"path";import{promisify as k}from"util";var f=k(_),y=k(U),A=async e=>{try{return await J(e),!0}catch(t){if(t.code==="ENOENT")return!1;throw t}},h=new Map,P=200,le=async(e,t)=>{let n=B(e),r=`${n}:${[...t].sort().join(",")}`;if(h.has(r))return h.get(r);let o=n,{root:i}=q(o);for(;;){for(let c of t)if(await A(W(o,c)))return h.set(r,o),h.size>P&&h.clear(),o;if(o===i)break;o=G(o)}return h.set(r,null),h.size>P&&h.clear(),null},ge=async(e,t={})=>{try{let n=await M(e,"utf-8");return JSON.parse(n)}catch(n){if(n.code==="ENOENT")return null;if(t.strict)throw n;return null}},pe=async(e,t={})=>{if(!await A(e))return null;try{let n=await import("./jiti-7K72E5ZK.mjs"),o=(n.createJiti?n.createJiti(process.cwd()):n.default(process.cwd()))(e);return o.default??o}catch{try{let n=await import(e);return n.default??n}catch(n){if(t.strict)throw/\.(ts|mts)$/.test(e)?new Error(`Failed to load TypeScript config at ${e}. Install 'jiti' to load TS configs. Original error: ${n}`):n;return null}}},L=(e,t)=>{if(typeof e!="object"||e===null||typeof t!="object"||t===null||Array.isArray(e)&&Array.isArray(t))return t;let n={...e};for(let r of Object.keys(t))r==="__proto__"||r==="constructor"||r==="prototype"||Object.hasOwn(t,r)&&(n[r]=r in e?L(e[r],t[r]):t[r]);return n};import{createWriteStream as Y}from"fs";import Z from"os";var w="\x1B[",S={gray:e=>`${w}90m${e}${w}39m`,blue:e=>`${w}34m${e}${w}39m`,yellow:e=>`${w}33m${e}${w}39m`,red:e=>`${w}31m${e}${w}39m`},F={debug:20,info:30,warn:40,error:50},N={debug:S.gray,info:S.blue,warn:S.yellow,error:S.red},T=e=>{let t=F[e.level],n=e.logFormat??"text",r=e.name,o=r?{debug:`${r}:DEBUG`,info:`${r}:INFO`,warn:`${r}:WARN`,error:`${e.name}:ERROR`}:{debug:"DEBUG",info:"INFO",warn:"WARN",error:"ERROR"},i=null,c=!1,m=process.stdout.isTTY&&!process.env.NO_COLOR||!!process.env.FORCE_COLOR;if(e.logFile)try{i=Y(e.logFile,{flags:"a"}),i.on("error",()=>{i=null})}catch{i=null}let p=()=>{if(!c&&(c=!0,i)){try{i.end()}catch{}i=null}};process.once("exit",p),process.once("SIGINT",()=>{p(),process.exit(0)}),process.once("SIGTERM",()=>{p(),process.exit(0)});let x=process.pid,v=Z.hostname(),l=(a,...s)=>{if(F[a]<t)return;let g=new Date().toISOString(),u=s.map(String).join(" "),d=n==="json"?JSON.stringify({ts:g,level:a,message:u,pid:x,hostname:v,name:r}):`[${g}] [${o[a]}] ${u}`,b=m&&N[a]?N[a](d):d;if((a==="warn"||a==="error"?process.stderr:process.stdout).write(`${b}
|
|
2
|
-
`),i)try{i.write(`${d}
|
|
3
|
-
`)}catch{i=null}};return{debug:(...a)=>l("debug",...a),info:(...a)=>l("info",...a),warn:(...a)=>l("warn",...a),error:(...a)=>l("error",...a),close:p}};import{resolveConflicts as j}from"git-json-resolver";var D=()=>Promise.all([f("git diff --quiet"),f("git diff --cached --quiet")]);var O=e=>e.replace(/[^a-zA-Z0-9._/-]/g,""),I=e=>{let t=e.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9_-]/g,"");if(!t||!/^[a-zA-Z0-9_]/.test(t)||t.startsWith("-"))throw new Error(`Invalid remote name: "${e}". Remote names may only contain letters, numbers, underscore, and hyphen, and cannot start with '-'.`);return t},$=e=>e.replace(/[\r\n]/g,""),C=async({remoteName:e,baseRef:t,targetRef:n,exclusions:r,logger:o,maxRetries:i=3,errorLogs:c=[]},m=0)=>{if(m>i){o.warn(`Max patch recursion reached (${i}), stopping`);return}let p=`git diff ${t} ${e}/main -- ${r.join(" ")} .`;o.debug(`Running: ${p}`);let{stdout:x}=await y("git",["diff",t,`${e}/${n}`,"--",...r,"."],{encoding:"utf8"});await V(".template.patch",x),o.debug(`Patch written to .template.patch (${x.length} chars)`);try{o.debug("Applying patch with 3-way merge"),await f("git apply --3way --ignore-space-change --ignore-whitespace .template.patch",{encoding:"utf8"}),o.debug("Patch applied successfully")}catch(v){let l=v.stderr?.split(`
|
|
4
|
-
`).filter(a=>a.startsWith("error"));o.debug(`Patch failed with ${l.length} errors`),l.forEach(a=>{let s=a.split(":")[1]?.trim();s&&(r.push(`:!${s}`),o.debug(`Added to exclusions: ${$(s)}`))}),c.push("Applied patch with errors: "),c.push({errorLines:l,exclusions:r}),c.push("^^^---Applied patch with errors"),l.length&&await C({remoteName:e,baseRef:t,targetRef:n,exclusions:r,logger:o,maxRetries:i,errorLogs:c},m+1)}},z=async e=>{await j({include:["package.json"],defaultStrategy:["merge","theirs"],rules:{name:["ours"],"devDependencies.*":["ignore-removed","theirs"],"dependencies.*":["ignore-removed","theirs"]},debug:e}),await j({include:["**/package.json"],exclude:["package.json","**/dist/**","**/.next/**"],defaultStrategy:["merge","non-empty","ours"],rules:{"devDependencies.*":["semver-max"],"dependencies.*":["semver-max"]},loggerConfig:{logDir:".logs2",levels:{stdout:[]}},plugins:["git-json-resolver-semver"],pluginConfig:{"git-json-resolver-semver":{preferValid:!0}},includeNonConflicted:!0,debug:e})},ve=async e=>{try{let c=await H(e,"utf8");return JSON.parse(c).lastSyncedCommit}catch{}let[{stdout:t},{stdout:n}]=await Promise.all([f("git log --reverse --format=%ai | head -n 1",{encoding:"utf8"}),f("git log --format=%H::%ai template/main",{encoding:"utf8"})]),r=new Date(t.trim()),i=n.trim().split(`
|
|
5
|
-
`).map(c=>{let[m,p]=c.split("::");return{hash:m,date:new Date(p?.trim())}}).reverse().find(c=>c.date>=r);if(i)return console.info("Applying changes from ",i.hash," dated ",i.date),i.hash};import{writeFile as X}from"fs/promises";var K={logLevel:"info",dryRun:!1,templateUrl:"https://github.com/turboforge/forge-template.git",excludePaths:[],remoteName:"template",maxPatchRetries:3,backupDir:".forge-backup",skipCleanCheck:!1,targetRef:"main",metaFile:".forge-meta.json",baseRef:"",postSync:["pnpm install","pnpm biome check --write --no-errors-on-unmatched $(git diff --cached --name-only --diff-filter=ACM | grep -E '\\.(ts|tsx|js|json)$' || true)"]},Q=[],Ce=async e=>{let{logLevel:t,skipCleanCheck:n,dryRun:r,remoteName:o,templateUrl:i,backupDir:c,baseRef:m,excludePaths:p,targetRef:x,metaFile:v,postSync:l,maxPatchRetries:a}=L(K,e),s=T({level:t});if(!m){s.error("\u274C Error: Base ref is required");return}if(n)s.info("Skipping git clean check");else try{await D(),s.info("Git tree is clean")}catch{s.error("\u274C Error: Please commit or stash your changes before upgrading.");return}r&&s.info("Dry run mode - no changes will be applied");let g=I(o);try{await Promise.all([y("git",["remote","add",g,i]),f(`rm -rf ${c}`)])}catch{s.debug(`${$(g)} remote already exists`)}finally{s.debug(`Added ${$(g)} remote: ${$(i)}`)}try{await y("git",["fetch",g]),s.debug(`Fetched latest changes from ${$(g)}`);let u=O(m),d=O(x),b=[...p].map(R=>`:!${R}`);if(s.debug(`Base exclusions: ${b.length} items`),s.debug(`Generating patch from ${u} to ${d}`),s.debug(`Total exclusions: ${b.length}`),r){let{stdout:R}=await y("git",["diff",u,`${g}/${d}`,"--",...b,"."],{encoding:"utf8"});s.info("\u{1F4CB} Patch preview:"),s.info(R||"No changes to apply");return}await C({remoteName:g,baseRef:u,targetRef:d,exclusions:b,logger:s,maxRetries:a,errorLogs:Q});let{stdout:E}=await y("git",["rev-parse",`${g}/${d}`],{encoding:"utf8"});await X(v,JSON.stringify({lastSyncedCommit:E.trim(),baseRef:u,targetRef:d,generatedAt:new Date().toISOString()},null,2)),await z(t==="debug"),console.log("\u2705 Upgrade applied successfully."),r||(s.info("Running post-sync commands..."),s.info(l.join(`
|
|
6
|
-
`)),await Promise.all(l.map(R=>f(R))))}catch(u){console.error("\u274C Upgrade failed:",u)}try{await y("git",["remote","remove",g])}catch{}};export{le as a,ge as b,pe as c,L as d,ve as e,K as f,Ce as g};
|
package/dist/defu-EM2AXOCS.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-WVOQBBD4.mjs";function e(t){if(t===null||typeof t!="object")return!1;let r=Object.getPrototypeOf(t);return r!==null&&r!==Object.prototype&&Object.getPrototypeOf(r)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function c(t,r,n=".",u){if(!e(r))return c(t,{},n,u);let i=Object.assign({},r);for(let o in t){if(o==="__proto__"||o==="constructor")continue;let f=t[o];f!=null&&(u&&u(i,o,f,n)||(Array.isArray(f)&&Array.isArray(i[o])?i[o]=[...f,...i[o]]:e(f)&&e(i[o])?i[o]=c(f,i[o],(n?`${n}.`:"")+o.toString(),u):i[o]=f))}return i}function s(t){return(...r)=>r.reduce((n,u)=>c(n,u,"",t),{})}var y=s(),l=s((t,r,n)=>{if(t[r]!==void 0&&typeof n=="function")return t[r]=n(t[r]),!0}),p=s((t,r,n)=>{if(Array.isArray(t[r])&&typeof n=="function")return t[r]=n(t[r]),!0});export{s as createDefu,y as default,y as defu,p as defuArrayFn,l as defuFn};
|