valaxy 0.7.4 → 0.7.5
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/client/config.ts +2 -2
- package/client/index.ts +0 -3
- package/client/main.ts +0 -3
- package/client/setup/main.ts +7 -1
- package/client/shims.d.ts +2 -2
- package/dist/chunk-B2L4QLCB.mjs +1 -0
- package/dist/chunk-KRHFRLOW.js +1 -0
- package/dist/{chunk-OFRGQSXQ.mjs → chunk-XWW4YHHO.mjs} +30 -30
- package/dist/{chunk-QJZSJAAI.js → chunk-YE3TWJS7.js} +31 -31
- package/dist/client/index.d.ts +1 -3
- package/dist/client/index.js +1 -1
- package/dist/client/index.mjs +1 -1
- package/dist/{index-df0324e3.d.ts → index-cfcea95c.d.ts} +1 -1
- package/dist/node/cli.js +7 -7
- package/dist/node/cli.mjs +2 -2
- package/dist/node/index.d.ts +12 -5
- package/dist/node/index.js +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-CGQACM7C.mjs +0 -1
- package/dist/chunk-YRJYFU6Y.js +0 -1
- package/dist/index-8b96b699.d.ts +0 -14
- package/shared/index.ts +0 -21
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{a as tt,b as Re,c as tn
|
|
1
|
+
import{a as tt,b as Re,c as tn}from"./chunk-B2L4QLCB.mjs";var jl=Re((lP,Nl)=>{var Wn=1e3,Gn=Wn*60,Kn=Gn*60,An=Kn*24,Km=An*7,Hm=An*365.25;Nl.exports=function(c,p){p=p||{};var b=typeof c;if(b==="string"&&c.length>0)return Ym(c);if(b==="number"&&isFinite(c))return p.long?zm(c):Xm(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function Ym(c){if(c=String(c),!(c.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(!!p){var b=parseFloat(p[1]),A=(p[2]||"ms").toLowerCase();switch(A){case"years":case"year":case"yrs":case"yr":case"y":return b*Hm;case"weeks":case"week":case"w":return b*Km;case"days":case"day":case"d":return b*An;case"hours":case"hour":case"hrs":case"hr":case"h":return b*Kn;case"minutes":case"minute":case"mins":case"min":case"m":return b*Gn;case"seconds":case"second":case"secs":case"sec":case"s":return b*Wn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return b;default:return}}}}function Xm(c){var p=Math.abs(c);return p>=An?Math.round(c/An)+"d":p>=Kn?Math.round(c/Kn)+"h":p>=Gn?Math.round(c/Gn)+"m":p>=Wn?Math.round(c/Wn)+"s":c+"ms"}function zm(c){var p=Math.abs(c);return p>=An?Mi(c,p,An,"day"):p>=Kn?Mi(c,p,Kn,"hour"):p>=Gn?Mi(c,p,Gn,"minute"):p>=Wn?Mi(c,p,Wn,"second"):c+" ms"}function Mi(c,p,b,A){var v=p>=b*1.5;return Math.round(c/b)+" "+A+(v?"s":"")}});var Js=Re((uP,Fl)=>{function Jm(c){b.debug=b,b.default=b,b.coerce=n,b.disable=e,b.enable=v,b.enabled=l,b.humanize=jl(),b.destroy=r,Object.keys(c).forEach(i=>{b[i]=c[i]}),b.names=[],b.skips=[],b.formatters={};function p(i){let u=0;for(let a=0;a<i.length;a++)u=(u<<5)-u+i.charCodeAt(a),u|=0;return b.colors[Math.abs(u)%b.colors.length]}b.selectColor=p;function b(i){let u,a=null,d,y;function m(...S){if(!m.enabled)return;let E=m,h=Number(new Date),f=h-(u||h);E.diff=f,E.prev=u,E.curr=h,u=h,S[0]=b.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let w=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(I,P)=>{if(I==="%%")return"%";w++;let R=b.formatters[P];if(typeof R=="function"){let C=S[w];I=R.call(E,C),S.splice(w,1),w--}return I}),b.formatArgs.call(E,S),(E.log||b.log).apply(E,S)}return m.namespace=i,m.useColors=b.useColors(),m.color=b.selectColor(i),m.extend=A,m.destroy=b.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>a!==null?a:(d!==b.namespaces&&(d=b.namespaces,y=b.enabled(i)),y),set:S=>{a=S}}),typeof b.init=="function"&&b.init(m),m}function A(i,u){let a=b(this.namespace+(typeof u>"u"?":":u)+i);return a.log=this.log,a}function v(i){b.save(i),b.namespaces=i,b.names=[],b.skips=[];let u,a=(typeof i=="string"?i:"").split(/[\s,]+/),d=a.length;for(u=0;u<d;u++)!a[u]||(i=a[u].replace(/\*/g,".*?"),i[0]==="-"?b.skips.push(new RegExp("^"+i.slice(1)+"$")):b.names.push(new RegExp("^"+i+"$")))}function e(){let i=[...b.names.map(t),...b.skips.map(t).map(u=>"-"+u)].join(",");return b.enable(""),i}function l(i){if(i[i.length-1]==="*")return!0;let u,a;for(u=0,a=b.skips.length;u<a;u++)if(b.skips[u].test(i))return!1;for(u=0,a=b.names.length;u<a;u++)if(b.names[u].test(i))return!0;return!1}function t(i){return i.toString().substring(2,i.toString().length-2).replace(/\.\*\?$/,"*")}function n(i){return i instanceof Error?i.stack||i.message:i}function r(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return b.enable(b.load()),b}Fl.exports=Jm});var Rl=Re((Rr,Bi)=>{Rr.formatArgs=Qm;Rr.save=Zm;Rr.load=ey;Rr.useColors=qm;Rr.storage=ty();Rr.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Rr.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function qm(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Qm(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+Bi.exports.humanize(this.diff),!this.useColors)return;let p="color: "+this.color;c.splice(1,0,p,"color: inherit");let b=0,A=0;c[0].replace(/%[a-zA-Z%]/g,v=>{v!=="%%"&&(b++,v==="%c"&&(A=b))}),c.splice(A,0,p)}Rr.log=console.debug||console.log||(()=>{});function Zm(c){try{c?Rr.storage.setItem("debug",c):Rr.storage.removeItem("debug")}catch{}}function ey(){let c;try{c=Rr.storage.getItem("debug")}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}function ty(){try{return localStorage}catch{}}Bi.exports=Js()(Rr);var{formatters:ry}=Bi.exports;ry.j=function(c){try{return JSON.stringify(c)}catch(p){return"[UnexpectedJSONParseError]: "+p.message}}});var Ll=Re((cP,kl)=>{"use strict";kl.exports=(c,p)=>{p=p||process.argv;let b=c.startsWith("-")?"":c.length===1?"-":"--",A=p.indexOf(b+c),v=p.indexOf("--");return A!==-1&&(v===-1?!0:A<v)}});var Bl=Re((pP,Ml)=>{"use strict";var ny=tt("os"),Ur=Ll(),gr=process.env,Hn;Ur("no-color")||Ur("no-colors")||Ur("color=false")?Hn=!1:(Ur("color")||Ur("colors")||Ur("color=true")||Ur("color=always"))&&(Hn=!0);"FORCE_COLOR"in gr&&(Hn=gr.FORCE_COLOR.length===0||parseInt(gr.FORCE_COLOR,10)!==0);function iy(c){return c===0?!1:{level:c,hasBasic:!0,has256:c>=2,has16m:c>=3}}function sy(c){if(Hn===!1)return 0;if(Ur("color=16m")||Ur("color=full")||Ur("color=truecolor"))return 3;if(Ur("color=256"))return 2;if(c&&!c.isTTY&&Hn!==!0)return 0;let p=Hn?1:0;if(process.platform==="win32"){let b=ny.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(b[0])>=10&&Number(b[2])>=10586?Number(b[2])>=14931?3:2:1}if("CI"in gr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(b=>b in gr)||gr.CI_NAME==="codeship"?1:p;if("TEAMCITY_VERSION"in gr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(gr.TEAMCITY_VERSION)?1:0;if(gr.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in gr){let b=parseInt((gr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(gr.TERM_PROGRAM){case"iTerm.app":return b>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(gr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(gr.TERM)||"COLORTERM"in gr?1:(gr.TERM==="dumb",p)}function qs(c){let p=sy(c);return iy(p)}Ml.exports={supportsColor:qs,stdout:qs(process.stdout),stderr:qs(process.stderr)}});var Ul=Re((mr,Ui)=>{var ay=tt("tty"),$i=tt("util");mr.init=fy;mr.log=cy;mr.formatArgs=ly;mr.save=py;mr.load=dy;mr.useColors=oy;mr.destroy=$i.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");mr.colors=[6,2,3,4,5,1];try{let c=Bl();c&&(c.stderr||c).level>=2&&(mr.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}mr.inspectOpts=Object.keys(process.env).filter(c=>/^debug_/i.test(c)).reduce((c,p)=>{let b=p.substring(6).toLowerCase().replace(/_([a-z])/g,(v,e)=>e.toUpperCase()),A=process.env[p];return/^(yes|on|true|enabled)$/i.test(A)?A=!0:/^(no|off|false|disabled)$/i.test(A)?A=!1:A==="null"?A=null:A=Number(A),c[b]=A,c},{});function oy(){return"colors"in mr.inspectOpts?Boolean(mr.inspectOpts.colors):ay.isatty(process.stderr.fd)}function ly(c){let{namespace:p,useColors:b}=this;if(b){let A=this.color,v="\x1B[3"+(A<8?A:"8;5;"+A),e=` ${v};1m${p} \x1B[0m`;c[0]=e+c[0].split(`
|
|
2
2
|
`).join(`
|
|
3
|
-
`+e),c.push(v+"m+"+
|
|
4
|
-
`)}function
|
|
5
|
-
`).map(p=>p.trim()).join(" ")};Vl.O=function(c){return this.inspectOpts.colors=this.useColors,Ui.inspect(c,this.inspectOpts)}});var Zs=Re((pP,Qs)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Qs.exports=Ll():Qs.exports=Wl()});var Gl=Re(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.splitWhen=Yn.flatten=void 0;function my(c){return c.reduce((p,b)=>[].concat(p,b),[])}Yn.flatten=my;function yy(c,p){let b=[[]],A=0;for(let v of c)p(v)?(A++,b[A]=[]):b[A].push(v);return b}Yn.splitWhen=yy});var Kl=Re(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.isEnoentCodeError=void 0;function by(c){return c.code==="ENOENT"}Wi.isEnoentCodeError=by});var Hl=Re(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.createDirentFromStats=void 0;var ea=class{constructor(p,b){this.name=p,this.isBlockDevice=b.isBlockDevice.bind(b),this.isCharacterDevice=b.isCharacterDevice.bind(b),this.isDirectory=b.isDirectory.bind(b),this.isFIFO=b.isFIFO.bind(b),this.isFile=b.isFile.bind(b),this.isSocket=b.isSocket.bind(b),this.isSymbolicLink=b.isSymbolicLink.bind(b)}};function gy(c,p){return new ea(c,p)}Gi.createDirentFromStats=gy});var Yl=Re(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.removeLeadingDotSegment=Xr.escape=Xr.makeAbsolute=Xr.unixify=void 0;var Ey=tt("path"),vy=2,Sy=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Ty(c){return c.replace(/\\/g,"/")}Xr.unixify=Ty;function Py(c,p){return Ey.resolve(c,p)}Xr.makeAbsolute=Py;function Ay(c){return c.replace(Sy,"\\$2")}Xr.escape=Ay;function _y(c){if(c.charAt(0)==="."){let p=c.charAt(1);if(p==="/"||p==="\\")return c.slice(vy)}return c}Xr.removeLeadingDotSegment=_y});var zl=Re((yP,Xl)=>{Xl.exports=function(p){if(typeof p!="string"||p==="")return!1;for(var b;b=/(\\).|([@?!+*]\(.*\))/g.exec(p);){if(b[2])return!0;p=p.slice(b.index+b[0].length)}return!1}});var Ql=Re((bP,ql)=>{var Cy=zl(),Jl={"{":"}","(":")","[":"]"},wy=function(c){if(c[0]==="!")return!0;for(var p=0,b=-2,A=-2,v=-2,e=-2,l=-2;p<c.length;){if(c[p]==="*"||c[p+1]==="?"&&/[\].+)]/.test(c[p])||A!==-1&&c[p]==="["&&c[p+1]!=="]"&&(A<p&&(A=c.indexOf("]",p)),A>p&&(l===-1||l>A||(l=c.indexOf("\\",p),l===-1||l>A)))||v!==-1&&c[p]==="{"&&c[p+1]!=="}"&&(v=c.indexOf("}",p),v>p&&(l=c.indexOf("\\",p),l===-1||l>v))||e!==-1&&c[p]==="("&&c[p+1]==="?"&&/[:!=]/.test(c[p+2])&&c[p+3]!==")"&&(e=c.indexOf(")",p),e>p&&(l=c.indexOf("\\",p),l===-1||l>e))||b!==-1&&c[p]==="("&&c[p+1]!=="|"&&(b<p&&(b=c.indexOf("|",p)),b!==-1&&c[b+1]!==")"&&(e=c.indexOf(")",b),e>b&&(l=c.indexOf("\\",b),l===-1||l>e))))return!0;if(c[p]==="\\"){var t=c[p+1];p+=2;var n=Jl[t];if(n){var r=c.indexOf(n,p);r!==-1&&(p=r+1)}if(c[p]==="!")return!0}else p++}return!1},Dy=function(c){if(c[0]==="!")return!0;for(var p=0;p<c.length;){if(/[*?{}()[\]]/.test(c[p]))return!0;if(c[p]==="\\"){var b=c[p+1];p+=2;var A=Jl[b];if(A){var v=c.indexOf(A,p);v!==-1&&(p=v+1)}if(c[p]==="!")return!0}else p++}return!1};ql.exports=function(p,b){if(typeof p!="string"||p==="")return!1;if(Cy(p))return!0;var A=wy;return b&&b.strict===!1&&(A=Dy),A(p)}});var eu=Re((gP,Zl)=>{"use strict";var xy=Ql(),Oy=tt("path").posix.dirname,Iy=tt("os").platform()==="win32",ta="/",Ny=/\\/g,jy=/[\{\[].*[\}\]]$/,Fy=/(^|[^\\])([\{\[]|\([^\)]+$)/,Ry=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Zl.exports=function(p,b){var A=Object.assign({flipBackslashes:!0},b);A.flipBackslashes&&Iy&&p.indexOf(ta)<0&&(p=p.replace(Ny,ta)),jy.test(p)&&(p+=ta),p+="a";do p=Oy(p);while(xy(p)||Fy.test(p));return p.replace(Ry,"$1")}});var Ki=Re(Br=>{"use strict";Br.isInteger=c=>typeof c=="number"?Number.isInteger(c):typeof c=="string"&&c.trim()!==""?Number.isInteger(Number(c)):!1;Br.find=(c,p)=>c.nodes.find(b=>b.type===p);Br.exceedsLimit=(c,p,b=1,A)=>A===!1||!Br.isInteger(c)||!Br.isInteger(p)?!1:(Number(p)-Number(c))/Number(b)>=A;Br.escapeNode=(c,p=0,b)=>{let A=c.nodes[p];!A||(b&&A.type===b||A.type==="open"||A.type==="close")&&A.escaped!==!0&&(A.value="\\"+A.value,A.escaped=!0)};Br.encloseBrace=c=>c.type!=="brace"?!1:c.commas>>0+c.ranges>>0===0?(c.invalid=!0,!0):!1;Br.isInvalidBrace=c=>c.type!=="brace"?!1:c.invalid===!0||c.dollar?!0:c.commas>>0+c.ranges>>0===0||c.open!==!0||c.close!==!0?(c.invalid=!0,!0):!1;Br.isOpenOrClose=c=>c.type==="open"||c.type==="close"?!0:c.open===!0||c.close===!0;Br.reduce=c=>c.reduce((p,b)=>(b.type==="text"&&p.push(b.value),b.type==="range"&&(b.type="text"),p),[]);Br.flatten=(...c)=>{let p=[],b=A=>{for(let v=0;v<A.length;v++){let e=A[v];Array.isArray(e)?b(e,p):e!==void 0&&p.push(e)}return p};return b(c),p}});var Hi=Re((vP,ru)=>{"use strict";var tu=Ki();ru.exports=(c,p={})=>{let b=(A,v={})=>{let e=p.escapeInvalid&&tu.isInvalidBrace(v),l=A.invalid===!0&&p.escapeInvalid===!0,t="";if(A.value)return(e||l)&&tu.isOpenOrClose(A)?"\\"+A.value:A.value;if(A.value)return A.value;if(A.nodes)for(let n of A.nodes)t+=b(n);return t};return b(c)}});var iu=Re((SP,nu)=>{"use strict";nu.exports=function(c){return typeof c=="number"?c-c===0:typeof c=="string"&&c.trim()!==""?Number.isFinite?Number.isFinite(+c):isFinite(+c):!1}});var fu=Re((TP,du)=>{"use strict";var su=iu(),_n=(c,p,b)=>{if(su(c)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(p===void 0||c===p)return String(c);if(su(p)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let A={relaxZeros:!0,...b};typeof A.strictZeros=="boolean"&&(A.relaxZeros=A.strictZeros===!1);let v=String(A.relaxZeros),e=String(A.shorthand),l=String(A.capture),t=String(A.wrap),n=c+":"+p+"="+v+e+l+t;if(_n.cache.hasOwnProperty(n))return _n.cache[n].result;let r=Math.min(c,p),i=Math.max(c,p);if(Math.abs(r-i)===1){let m=c+"|"+p;return A.capture?`(${m})`:A.wrap===!1?m:`(?:${m})`}let u=pu(c)||pu(p),a={min:c,max:p,a:r,b:i},d=[],y=[];if(u&&(a.isPadded=u,a.maxLen=String(a.max).length),r<0){let m=i<0?Math.abs(i):1;y=au(m,Math.abs(r),a,A),r=a.a=0}return i>=0&&(d=au(r,i,a,A)),a.negatives=y,a.positives=d,a.result=ky(y,d,A),A.capture===!0?a.result=`(${a.result})`:A.wrap!==!1&&d.length+y.length>1&&(a.result=`(?:${a.result})`),_n.cache[n]=a,a.result};function ky(c,p,b){let A=ra(c,p,"-",!1,b)||[],v=ra(p,c,"",!1,b)||[],e=ra(c,p,"-?",!0,b)||[];return A.concat(e).concat(v).join("|")}function Ly(c,p){let b=1,A=1,v=lu(c,b),e=new Set([p]);for(;c<=v&&v<=p;)e.add(v),b+=1,v=lu(c,b);for(v=uu(p+1,A)-1;c<v&&v<=p;)e.add(v),A+=1,v=uu(p+1,A)-1;return e=[...e],e.sort($y),e}function My(c,p,b){if(c===p)return{pattern:c,count:[],digits:0};let A=By(c,p),v=A.length,e="",l=0;for(let t=0;t<v;t++){let[n,r]=A[t];n===r?e+=n:n!=="0"||r!=="9"?e+=Uy(n,r,b):l++}return l&&(e+=b.shorthand===!0?"\\d":"[0-9]"),{pattern:e,count:[l],digits:v}}function au(c,p,b,A){let v=Ly(c,p),e=[],l=c,t;for(let n=0;n<v.length;n++){let r=v[n],i=My(String(l),String(r),A),u="";if(!b.isPadded&&t&&t.pattern===i.pattern){t.count.length>1&&t.count.pop(),t.count.push(i.count[0]),t.string=t.pattern+cu(t.count),l=r+1;continue}b.isPadded&&(u=Vy(r,b,A)),i.string=u+i.pattern+cu(i.count),e.push(i),l=r+1,t=i}return e}function ra(c,p,b,A,v){let e=[];for(let l of c){let{string:t}=l;!A&&!ou(p,"string",t)&&e.push(b+t),A&&ou(p,"string",t)&&e.push(b+t)}return e}function By(c,p){let b=[];for(let A=0;A<c.length;A++)b.push([c[A],p[A]]);return b}function $y(c,p){return c>p?1:p>c?-1:0}function ou(c,p,b){return c.some(A=>A[p]===b)}function lu(c,p){return Number(String(c).slice(0,-p)+"9".repeat(p))}function uu(c,p){return c-c%Math.pow(10,p)}function cu(c){let[p=0,b=""]=c;return b||p>1?`{${p+(b?","+b:"")}}`:""}function Uy(c,p,b){return`[${c}${p-c===1?"":"-"}${p}]`}function pu(c){return/^-?(0+)\d/.test(c)}function Vy(c,p,b){if(!p.isPadded)return c;let A=Math.abs(p.maxLen-String(c).length),v=b.relaxZeros!==!1;switch(A){case 0:return"";case 1:return v?"0?":"0";case 2:return v?"0{0,2}":"00";default:return v?`0{0,${A}}`:`0{${A}}`}}_n.cache={};_n.clearCache=()=>_n.cache={};du.exports=_n});var sa=Re((PP,Su)=>{"use strict";var Wy=tt("util"),yu=fu(),hu=c=>c!==null&&typeof c=="object"&&!Array.isArray(c),Gy=c=>p=>c===!0?Number(p):String(p),na=c=>typeof c=="number"||typeof c=="string"&&c!=="",fi=c=>Number.isInteger(+c),ia=c=>{let p=`${c}`,b=-1;if(p[0]==="-"&&(p=p.slice(1)),p==="0")return!1;for(;p[++b]==="0";);return b>0},Ky=(c,p,b)=>typeof c=="string"||typeof p=="string"?!0:b.stringify===!0,Hy=(c,p,b)=>{if(p>0){let A=c[0]==="-"?"-":"";A&&(c=c.slice(1)),c=A+c.padStart(A?p-1:p,"0")}return b===!1?String(c):c},mu=(c,p)=>{let b=c[0]==="-"?"-":"";for(b&&(c=c.slice(1),p--);c.length<p;)c="0"+c;return b?"-"+c:c},Yy=(c,p)=>{c.negatives.sort((l,t)=>l<t?-1:l>t?1:0),c.positives.sort((l,t)=>l<t?-1:l>t?1:0);let b=p.capture?"":"?:",A="",v="",e;return c.positives.length&&(A=c.positives.join("|")),c.negatives.length&&(v=`-(${b}${c.negatives.join("|")})`),A&&v?e=`${A}|${v}`:e=A||v,p.wrap?`(${b}${e})`:e},bu=(c,p,b,A)=>{if(b)return yu(c,p,{wrap:!1,...A});let v=String.fromCharCode(c);if(c===p)return v;let e=String.fromCharCode(p);return`[${v}-${e}]`},gu=(c,p,b)=>{if(Array.isArray(c)){let A=b.wrap===!0,v=b.capture?"":"?:";return A?`(${v}${c.join("|")})`:c.join("|")}return yu(c,p,b)},Eu=(...c)=>new RangeError("Invalid range arguments: "+Wy.inspect(...c)),vu=(c,p,b)=>{if(b.strictRanges===!0)throw Eu([c,p]);return[]},Xy=(c,p)=>{if(p.strictRanges===!0)throw new TypeError(`Expected step "${c}" to be a number`);return[]},zy=(c,p,b=1,A={})=>{let v=Number(c),e=Number(p);if(!Number.isInteger(v)||!Number.isInteger(e)){if(A.strictRanges===!0)throw Eu([c,p]);return[]}v===0&&(v=0),e===0&&(e=0);let l=v>e,t=String(c),n=String(p),r=String(b);b=Math.max(Math.abs(b),1);let i=ia(t)||ia(n)||ia(r),u=i?Math.max(t.length,n.length,r.length):0,a=i===!1&&Ky(c,p,A)===!1,d=A.transform||Gy(a);if(A.toRegex&&b===1)return bu(mu(c,u),mu(p,u),!0,A);let y={negatives:[],positives:[]},m=h=>y[h<0?"negatives":"positives"].push(Math.abs(h)),S=[],E=0;for(;l?v>=e:v<=e;)A.toRegex===!0&&b>1?m(v):S.push(Hy(d(v,E),u,a)),v=l?v-b:v+b,E++;return A.toRegex===!0?b>1?Yy(y,A):gu(S,null,{wrap:!1,...A}):S},Jy=(c,p,b=1,A={})=>{if(!fi(c)&&c.length>1||!fi(p)&&p.length>1)return vu(c,p,A);let v=A.transform||(a=>String.fromCharCode(a)),e=`${c}`.charCodeAt(0),l=`${p}`.charCodeAt(0),t=e>l,n=Math.min(e,l),r=Math.max(e,l);if(A.toRegex&&b===1)return bu(n,r,!1,A);let i=[],u=0;for(;t?e>=l:e<=l;)i.push(v(e,u)),e=t?e-b:e+b,u++;return A.toRegex===!0?gu(i,null,{wrap:!1,options:A}):i},Yi=(c,p,b,A={})=>{if(p==null&&na(c))return[c];if(!na(c)||!na(p))return vu(c,p,A);if(typeof b=="function")return Yi(c,p,1,{transform:b});if(hu(b))return Yi(c,p,0,b);let v={...A};return v.capture===!0&&(v.wrap=!0),b=b||v.step||1,fi(b)?fi(c)&&fi(p)?zy(c,p,b,v):Jy(c,p,Math.max(Math.abs(b),1),v):b!=null&&!hu(b)?Xy(b,v):Yi(c,p,1,b)};Su.exports=Yi});var Au=Re((AP,Pu)=>{"use strict";var qy=sa(),Tu=Ki(),Qy=(c,p={})=>{let b=(A,v={})=>{let e=Tu.isInvalidBrace(v),l=A.invalid===!0&&p.escapeInvalid===!0,t=e===!0||l===!0,n=p.escapeInvalid===!0?"\\":"",r="";if(A.isOpen===!0||A.isClose===!0)return n+A.value;if(A.type==="open")return t?n+A.value:"(";if(A.type==="close")return t?n+A.value:")";if(A.type==="comma")return A.prev.type==="comma"?"":t?A.value:"|";if(A.value)return A.value;if(A.nodes&&A.ranges>0){let i=Tu.reduce(A.nodes),u=qy(...i,{...p,wrap:!1,toRegex:!0});if(u.length!==0)return i.length>1&&u.length>1?`(${u})`:u}if(A.nodes)for(let i of A.nodes)r+=b(i,A);return r};return b(c)};Pu.exports=Qy});var wu=Re((_P,Cu)=>{"use strict";var Zy=sa(),_u=Hi(),Xn=Ki(),Cn=(c="",p="",b=!1)=>{let A=[];if(c=[].concat(c),p=[].concat(p),!p.length)return c;if(!c.length)return b?Xn.flatten(p).map(v=>`{${v}}`):p;for(let v of c)if(Array.isArray(v))for(let e of v)A.push(Cn(e,p,b));else for(let e of p)b===!0&&typeof e=="string"&&(e=`{${e}}`),A.push(Array.isArray(e)?Cn(v,e,b):v+e);return Xn.flatten(A)},eb=(c,p={})=>{let b=p.rangeLimit===void 0?1e3:p.rangeLimit,A=(v,e={})=>{v.queue=[];let l=e,t=e.queue;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,t=l.queue;if(v.invalid||v.dollar){t.push(Cn(t.pop(),_u(v,p)));return}if(v.type==="brace"&&v.invalid!==!0&&v.nodes.length===2){t.push(Cn(t.pop(),["{}"]));return}if(v.nodes&&v.ranges>0){let u=Xn.reduce(v.nodes);if(Xn.exceedsLimit(...u,p.step,b))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let a=Zy(...u,p);a.length===0&&(a=_u(v,p)),t.push(Cn(t.pop(),a)),v.nodes=[];return}let n=Xn.encloseBrace(v),r=v.queue,i=v;for(;i.type!=="brace"&&i.type!=="root"&&i.parent;)i=i.parent,r=i.queue;for(let u=0;u<v.nodes.length;u++){let a=v.nodes[u];if(a.type==="comma"&&v.type==="brace"){u===1&&r.push(""),r.push("");continue}if(a.type==="close"){t.push(Cn(t.pop(),r,n));continue}if(a.value&&a.type!=="open"){r.push(Cn(r.pop(),a.value));continue}a.nodes&&A(a,v)}return r};return Xn.flatten(A(c))};Cu.exports=eb});var xu=Re((CP,Du)=>{"use strict";Du.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
6
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Fu=Re((wP,ju)=>{"use strict";var tb=Hi(),{MAX_LENGTH:Ou,CHAR_BACKSLASH:aa,CHAR_BACKTICK:rb,CHAR_COMMA:nb,CHAR_DOT:ib,CHAR_LEFT_PARENTHESES:sb,CHAR_RIGHT_PARENTHESES:ab,CHAR_LEFT_CURLY_BRACE:ob,CHAR_RIGHT_CURLY_BRACE:lb,CHAR_LEFT_SQUARE_BRACKET:Iu,CHAR_RIGHT_SQUARE_BRACKET:Nu,CHAR_DOUBLE_QUOTE:ub,CHAR_SINGLE_QUOTE:cb,CHAR_NO_BREAK_SPACE:pb,CHAR_ZERO_WIDTH_NOBREAK_SPACE:db}=xu(),fb=(c,p={})=>{if(typeof c!="string")throw new TypeError("Expected a string");let b=p||{},A=typeof b.maxLength=="number"?Math.min(Ou,b.maxLength):Ou;if(c.length>A)throw new SyntaxError(`Input length (${c.length}), exceeds max characters (${A})`);let v={type:"root",input:c,nodes:[]},e=[v],l=v,t=v,n=0,r=c.length,i=0,u=0,a,d={},y=()=>c[i++],m=S=>{if(S.type==="text"&&t.type==="dot"&&(t.type="text"),t&&t.type==="text"&&S.type==="text"){t.value+=S.value;return}return l.nodes.push(S),S.parent=l,S.prev=t,t=S,S};for(m({type:"bos"});i<r;)if(l=e[e.length-1],a=y(),!(a===db||a===pb)){if(a===aa){m({type:"text",value:(p.keepEscaping?a:"")+y()});continue}if(a===Nu){m({type:"text",value:"\\"+a});continue}if(a===Iu){n++;let S=!0,E;for(;i<r&&(E=y());){if(a+=E,E===Iu){n++;continue}if(E===aa){a+=y();continue}if(E===Nu&&(n--,n===0))break}m({type:"text",value:a});continue}if(a===sb){l=m({type:"paren",nodes:[]}),e.push(l),m({type:"text",value:a});continue}if(a===ab){if(l.type!=="paren"){m({type:"text",value:a});continue}l=e.pop(),m({type:"text",value:a}),l=e[e.length-1];continue}if(a===ub||a===cb||a===rb){let S=a,E;for(p.keepQuotes!==!0&&(a="");i<r&&(E=y());){if(E===aa){a+=E+y();continue}if(E===S){p.keepQuotes===!0&&(a+=E);break}a+=E}m({type:"text",value:a});continue}if(a===ob){u++;let S=t.value&&t.value.slice(-1)==="$"||l.dollar===!0;l=m({type:"brace",open:!0,close:!1,dollar:S,depth:u,commas:0,ranges:0,nodes:[]}),e.push(l),m({type:"open",value:a});continue}if(a===lb){if(l.type!=="brace"){m({type:"text",value:a});continue}let S="close";l=e.pop(),l.close=!0,m({type:S,value:a}),u--,l=e[e.length-1];continue}if(a===nb&&u>0){if(l.ranges>0){l.ranges=0;let S=l.nodes.shift();l.nodes=[S,{type:"text",value:tb(l)}]}m({type:"comma",value:a}),l.commas++;continue}if(a===ib&&u>0&&l.commas===0){let S=l.nodes;if(u===0||S.length===0){m({type:"text",value:a});continue}if(t.type==="dot"){if(l.range=[],t.value+=a,t.type="range",l.nodes.length!==3&&l.nodes.length!==5){l.invalid=!0,l.ranges=0,t.type="text";continue}l.ranges++,l.args=[];continue}if(t.type==="range"){S.pop();let E=S[S.length-1];E.value+=t.value+a,t=E,l.ranges--;continue}m({type:"dot",value:a});continue}m({type:"text",value:a})}do if(l=e.pop(),l.type!=="root"){l.nodes.forEach(h=>{h.nodes||(h.type==="open"&&(h.isOpen=!0),h.type==="close"&&(h.isClose=!0),h.nodes||(h.type="text"),h.invalid=!0)});let S=e[e.length-1],E=S.nodes.indexOf(l);S.nodes.splice(E,1,...l.nodes)}while(e.length>0);return m({type:"eos"}),v};ju.exports=fb});var Lu=Re((DP,ku)=>{"use strict";var Ru=Hi(),hb=Au(),mb=wu(),yb=Fu(),kr=(c,p={})=>{let b=[];if(Array.isArray(c))for(let A of c){let v=kr.create(A,p);Array.isArray(v)?b.push(...v):b.push(v)}else b=[].concat(kr.create(c,p));return p&&p.expand===!0&&p.nodupes===!0&&(b=[...new Set(b)]),b};kr.parse=(c,p={})=>yb(c,p);kr.stringify=(c,p={})=>Ru(typeof c=="string"?kr.parse(c,p):c,p);kr.compile=(c,p={})=>(typeof c=="string"&&(c=kr.parse(c,p)),hb(c,p));kr.expand=(c,p={})=>{typeof c=="string"&&(c=kr.parse(c,p));let b=mb(c,p);return p.noempty===!0&&(b=b.filter(Boolean)),p.nodupes===!0&&(b=[...new Set(b)]),b};kr.create=(c,p={})=>c===""||c.length<3?[c]:p.expand!==!0?kr.compile(c,p):kr.expand(c,p);ku.exports=kr});var hi=Re((xP,Vu)=>{"use strict";var bb=tt("path"),zr="\\\\/",Mu=`[^${zr}]`,rn="\\.",gb="\\+",Eb="\\?",Xi="\\/",vb="(?=.)",Bu="[^/]",oa=`(?:${Xi}|$)`,$u=`(?:^|${Xi})`,la=`${rn}{1,2}${oa}`,Sb=`(?!${rn})`,Tb=`(?!${$u}${la})`,Pb=`(?!${rn}{0,1}${oa})`,Ab=`(?!${la})`,_b=`[^.${Xi}]`,Cb=`${Bu}*?`,Uu={DOT_LITERAL:rn,PLUS_LITERAL:gb,QMARK_LITERAL:Eb,SLASH_LITERAL:Xi,ONE_CHAR:vb,QMARK:Bu,END_ANCHOR:oa,DOTS_SLASH:la,NO_DOT:Sb,NO_DOTS:Tb,NO_DOT_SLASH:Pb,NO_DOTS_SLASH:Ab,QMARK_NO_DOT:_b,STAR:Cb,START_ANCHOR:$u},wb={...Uu,SLASH_LITERAL:`[${zr}]`,QMARK:Mu,STAR:`${Mu}*?`,DOTS_SLASH:`${rn}{1,2}(?:[${zr}]|$)`,NO_DOT:`(?!${rn})`,NO_DOTS:`(?!(?:^|[${zr}])${rn}{1,2}(?:[${zr}]|$))`,NO_DOT_SLASH:`(?!${rn}{0,1}(?:[${zr}]|$))`,NO_DOTS_SLASH:`(?!${rn}{1,2}(?:[${zr}]|$))`,QMARK_NO_DOT:`[^.${zr}]`,START_ANCHOR:`(?:^|[${zr}])`,END_ANCHOR:`(?:[${zr}]|$)`},Db={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Vu.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Db,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:bb.sep,extglobChars(c){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${c.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(c){return c===!0?wb:Uu}}});var mi=Re(Dr=>{"use strict";var xb=tt("path"),Ob=process.platform==="win32",{REGEX_BACKSLASH:Ib,REGEX_REMOVE_BACKSLASH:Nb,REGEX_SPECIAL_CHARS:jb,REGEX_SPECIAL_CHARS_GLOBAL:Fb}=hi();Dr.isObject=c=>c!==null&&typeof c=="object"&&!Array.isArray(c);Dr.hasRegexChars=c=>jb.test(c);Dr.isRegexChar=c=>c.length===1&&Dr.hasRegexChars(c);Dr.escapeRegex=c=>c.replace(Fb,"\\$1");Dr.toPosixSlashes=c=>c.replace(Ib,"/");Dr.removeBackslashes=c=>c.replace(Nb,p=>p==="\\"?"":p);Dr.supportsLookbehinds=()=>{let c=process.version.slice(1).split(".").map(Number);return c.length===3&&c[0]>=9||c[0]===8&&c[1]>=10};Dr.isWindows=c=>c&&typeof c.windows=="boolean"?c.windows:Ob===!0||xb.sep==="\\";Dr.escapeLast=(c,p,b)=>{let A=c.lastIndexOf(p,b);return A===-1?c:c[A-1]==="\\"?Dr.escapeLast(c,p,A-1):`${c.slice(0,A)}\\${c.slice(A)}`};Dr.removePrefix=(c,p={})=>{let b=c;return b.startsWith("./")&&(b=b.slice(2),p.prefix="./"),b};Dr.wrapOutput=(c,p={},b={})=>{let A=b.contains?"":"^",v=b.contains?"":"$",e=`${A}(?:${c})${v}`;return p.negated===!0&&(e=`(?:^(?!${e}).*$)`),e}});var Ju=Re((IP,zu)=>{"use strict";var Wu=mi(),{CHAR_ASTERISK:ua,CHAR_AT:Rb,CHAR_BACKWARD_SLASH:yi,CHAR_COMMA:kb,CHAR_DOT:ca,CHAR_EXCLAMATION_MARK:pa,CHAR_FORWARD_SLASH:Xu,CHAR_LEFT_CURLY_BRACE:da,CHAR_LEFT_PARENTHESES:fa,CHAR_LEFT_SQUARE_BRACKET:Lb,CHAR_PLUS:Mb,CHAR_QUESTION_MARK:Gu,CHAR_RIGHT_CURLY_BRACE:Bb,CHAR_RIGHT_PARENTHESES:Ku,CHAR_RIGHT_SQUARE_BRACKET:$b}=hi(),Hu=c=>c===Xu||c===yi,Yu=c=>{c.isPrefix!==!0&&(c.depth=c.isGlobstar?1/0:1)},Ub=(c,p)=>{let b=p||{},A=c.length-1,v=b.parts===!0||b.scanToEnd===!0,e=[],l=[],t=[],n=c,r=-1,i=0,u=0,a=!1,d=!1,y=!1,m=!1,S=!1,E=!1,h=!1,f=!1,w=!1,_=!1,I=0,P,R,C={value:"",depth:0,isGlob:!1},j=()=>r>=A,T=()=>n.charCodeAt(r+1),N=()=>(P=R,n.charCodeAt(++r));for(;r<A;){R=N();let M;if(R===yi){h=C.backslashes=!0,R=N(),R===da&&(E=!0);continue}if(E===!0||R===da){for(I++;j()!==!0&&(R=N());){if(R===yi){h=C.backslashes=!0,N();continue}if(R===da){I++;continue}if(E!==!0&&R===ca&&(R=N())===ca){if(a=C.isBrace=!0,y=C.isGlob=!0,_=!0,v===!0)continue;break}if(E!==!0&&R===kb){if(a=C.isBrace=!0,y=C.isGlob=!0,_=!0,v===!0)continue;break}if(R===Bb&&(I--,I===0)){E=!1,a=C.isBrace=!0,_=!0;break}}if(v===!0)continue;break}if(R===Xu){if(e.push(r),l.push(C),C={value:"",depth:0,isGlob:!1},_===!0)continue;if(P===ca&&r===i+1){i+=2;continue}u=r+1;continue}if(b.noext!==!0&&(R===Mb||R===Rb||R===ua||R===Gu||R===pa)===!0&&T()===fa){if(y=C.isGlob=!0,m=C.isExtglob=!0,_=!0,R===pa&&r===i&&(w=!0),v===!0){for(;j()!==!0&&(R=N());){if(R===yi){h=C.backslashes=!0,R=N();continue}if(R===Ku){y=C.isGlob=!0,_=!0;break}}continue}break}if(R===ua){if(P===ua&&(S=C.isGlobstar=!0),y=C.isGlob=!0,_=!0,v===!0)continue;break}if(R===Gu){if(y=C.isGlob=!0,_=!0,v===!0)continue;break}if(R===Lb){for(;j()!==!0&&(M=N());){if(M===yi){h=C.backslashes=!0,N();continue}if(M===$b){d=C.isBracket=!0,y=C.isGlob=!0,_=!0;break}}if(v===!0)continue;break}if(b.nonegate!==!0&&R===pa&&r===i){f=C.negated=!0,i++;continue}if(b.noparen!==!0&&R===fa){if(y=C.isGlob=!0,v===!0){for(;j()!==!0&&(R=N());){if(R===fa){h=C.backslashes=!0,R=N();continue}if(R===Ku){_=!0;break}}continue}break}if(y===!0){if(_=!0,v===!0)continue;break}}b.noext===!0&&(m=!1,y=!1);let $=n,G="",k="";i>0&&(G=n.slice(0,i),n=n.slice(i),u-=i),$&&y===!0&&u>0?($=n.slice(0,u),k=n.slice(u)):y===!0?($="",k=n):$=n,$&&$!==""&&$!=="/"&&$!==n&&Hu($.charCodeAt($.length-1))&&($=$.slice(0,-1)),b.unescape===!0&&(k&&(k=Wu.removeBackslashes(k)),$&&h===!0&&($=Wu.removeBackslashes($)));let U={prefix:G,input:c,start:i,base:$,glob:k,isBrace:a,isBracket:d,isGlob:y,isExtglob:m,isGlobstar:S,negated:f,negatedExtglob:w};if(b.tokens===!0&&(U.maxDepth=0,Hu(R)||l.push(C),U.tokens=l),b.parts===!0||b.tokens===!0){let M;for(let O=0;O<e.length;O++){let x=M?M+1:i,F=e[O],L=c.slice(x,F);b.tokens&&(O===0&&i!==0?(l[O].isPrefix=!0,l[O].value=G):l[O].value=L,Yu(l[O]),U.maxDepth+=l[O].depth),(O!==0||L!=="")&&t.push(L),M=F}if(M&&M+1<c.length){let O=c.slice(M+1);t.push(O),b.tokens&&(l[l.length-1].value=O,Yu(l[l.length-1]),U.maxDepth+=l[l.length-1].depth)}U.slashes=e,U.parts=t}return U};zu.exports=Ub});var Zu=Re((NP,Qu)=>{"use strict";var zi=hi(),Lr=mi(),{MAX_LENGTH:Ji,POSIX_REGEX_SOURCE:Vb,REGEX_NON_SPECIAL_CHARS:Wb,REGEX_SPECIAL_CHARS_BACKREF:Gb,REPLACEMENTS:qu}=zi,Kb=(c,p)=>{if(typeof p.expandRange=="function")return p.expandRange(...c,p);c.sort();let b=`[${c.join("-")}]`;try{new RegExp(b)}catch{return c.map(v=>Lr.escapeRegex(v)).join("..")}return b},zn=(c,p)=>`Missing ${c}: "${p}" - use "\\\\${p}" to match literal characters`,ha=(c,p)=>{if(typeof c!="string")throw new TypeError("Expected a string");c=qu[c]||c;let b={...p},A=typeof b.maxLength=="number"?Math.min(Ji,b.maxLength):Ji,v=c.length;if(v>A)throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${A}`);let e={type:"bos",value:"",output:b.prepend||""},l=[e],t=b.capture?"":"?:",n=Lr.isWindows(p),r=zi.globChars(n),i=zi.extglobChars(r),{DOT_LITERAL:u,PLUS_LITERAL:a,SLASH_LITERAL:d,ONE_CHAR:y,DOTS_SLASH:m,NO_DOT:S,NO_DOT_SLASH:E,NO_DOTS_SLASH:h,QMARK:f,QMARK_NO_DOT:w,STAR:_,START_ANCHOR:I}=r,P=pe=>`(${t}(?:(?!${I}${pe.dot?m:u}).)*?)`,R=b.dot?"":S,C=b.dot?f:w,j=b.bash===!0?P(b):_;b.capture&&(j=`(${j})`),typeof b.noext=="boolean"&&(b.noextglob=b.noext);let T={input:c,index:-1,start:0,dot:b.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:l};c=Lr.removePrefix(c,T),v=c.length;let N=[],$=[],G=[],k=e,U,M=()=>T.index===v-1,O=T.peek=(pe=1)=>c[T.index+pe],x=T.advance=()=>c[++T.index]||"",F=()=>c.slice(T.index+1),L=(pe="",Ee=0)=>{T.consumed+=pe,T.index+=Ee},V=pe=>{T.output+=pe.output!=null?pe.output:pe.value,L(pe.value)},K=()=>{let pe=1;for(;O()==="!"&&(O(2)!=="("||O(3)==="?");)x(),T.start++,pe++;return pe%2===0?!1:(T.negated=!0,T.start++,!0)},z=pe=>{T[pe]++,G.push(pe)},X=pe=>{T[pe]--,G.pop()},J=pe=>{if(k.type==="globstar"){let Ee=T.braces>0&&(pe.type==="comma"||pe.type==="brace"),ye=pe.extglob===!0||N.length&&(pe.type==="pipe"||pe.type==="paren");pe.type!=="slash"&&pe.type!=="paren"&&!Ee&&!ye&&(T.output=T.output.slice(0,-k.output.length),k.type="star",k.value="*",k.output=j,T.output+=k.output)}if(N.length&&pe.type!=="paren"&&(N[N.length-1].inner+=pe.value),(pe.value||pe.output)&&V(pe),k&&k.type==="text"&&pe.type==="text"){k.value+=pe.value,k.output=(k.output||"")+pe.value;return}pe.prev=k,l.push(pe),k=pe},ie=(pe,Ee)=>{let ye={...i[Ee],conditions:1,inner:""};ye.prev=k,ye.parens=T.parens,ye.output=T.output;let Y=(b.capture?"(":"")+ye.open;z("parens"),J({type:pe,value:Ee,output:T.output?"":y}),J({type:"paren",extglob:!0,value:x(),output:Y}),N.push(ye)},he=pe=>{let Ee=pe.close+(b.capture?")":""),ye;if(pe.type==="negate"){let Y=j;if(pe.inner&&pe.inner.length>1&&pe.inner.includes("/")&&(Y=P(b)),(Y!==j||M()||/^\)+$/.test(F()))&&(Ee=pe.close=`)$))${Y}`),pe.inner.includes("*")&&(ye=F())&&/^\.[^\\/.]+$/.test(ye)){let re=ha(ye,{...p,fastpaths:!1}).output;Ee=pe.close=`)${re})${Y})`}pe.prev.type==="bos"&&(T.negatedExtglob=!0)}J({type:"paren",extglob:!0,value:U,output:Ee}),X("parens")};if(b.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(c)){let pe=!1,Ee=c.replace(Gb,(ye,Y,re,ue,ce,Ie)=>ue==="\\"?(pe=!0,ye):ue==="?"?Y?Y+ue+(ce?f.repeat(ce.length):""):Ie===0?C+(ce?f.repeat(ce.length):""):f.repeat(re.length):ue==="."?u.repeat(re.length):ue==="*"?Y?Y+ue+(ce?j:""):j:Y?ye:`\\${ye}`);return pe===!0&&(b.unescape===!0?Ee=Ee.replace(/\\/g,""):Ee=Ee.replace(/\\+/g,ye=>ye.length%2===0?"\\\\":ye?"\\":"")),Ee===c&&b.contains===!0?(T.output=c,T):(T.output=Lr.wrapOutput(Ee,T,p),T)}for(;!M();){if(U=x(),U==="\0")continue;if(U==="\\"){let ye=O();if(ye==="/"&&b.bash!==!0||ye==="."||ye===";")continue;if(!ye){U+="\\",J({type:"text",value:U});continue}let Y=/^\\+/.exec(F()),re=0;if(Y&&Y[0].length>2&&(re=Y[0].length,T.index+=re,re%2!==0&&(U+="\\")),b.unescape===!0?U=x():U+=x(),T.brackets===0){J({type:"text",value:U});continue}}if(T.brackets>0&&(U!=="]"||k.value==="["||k.value==="[^")){if(b.posix!==!1&&U===":"){let ye=k.value.slice(1);if(ye.includes("[")&&(k.posix=!0,ye.includes(":"))){let Y=k.value.lastIndexOf("["),re=k.value.slice(0,Y),ue=k.value.slice(Y+2),ce=Vb[ue];if(ce){k.value=re+ce,T.backtrack=!0,x(),!e.output&&l.indexOf(k)===1&&(e.output=y);continue}}}(U==="["&&O()!==":"||U==="-"&&O()==="]")&&(U=`\\${U}`),U==="]"&&(k.value==="["||k.value==="[^")&&(U=`\\${U}`),b.posix===!0&&U==="!"&&k.value==="["&&(U="^"),k.value+=U,V({value:U});continue}if(T.quotes===1&&U!=='"'){U=Lr.escapeRegex(U),k.value+=U,V({value:U});continue}if(U==='"'){T.quotes=T.quotes===1?0:1,b.keepQuotes===!0&&J({type:"text",value:U});continue}if(U==="("){z("parens"),J({type:"paren",value:U});continue}if(U===")"){if(T.parens===0&&b.strictBrackets===!0)throw new SyntaxError(zn("opening","("));let ye=N[N.length-1];if(ye&&T.parens===ye.parens+1){he(N.pop());continue}J({type:"paren",value:U,output:T.parens?")":"\\)"}),X("parens");continue}if(U==="["){if(b.nobracket===!0||!F().includes("]")){if(b.nobracket!==!0&&b.strictBrackets===!0)throw new SyntaxError(zn("closing","]"));U=`\\${U}`}else z("brackets");J({type:"bracket",value:U});continue}if(U==="]"){if(b.nobracket===!0||k&&k.type==="bracket"&&k.value.length===1){J({type:"text",value:U,output:`\\${U}`});continue}if(T.brackets===0){if(b.strictBrackets===!0)throw new SyntaxError(zn("opening","["));J({type:"text",value:U,output:`\\${U}`});continue}X("brackets");let ye=k.value.slice(1);if(k.posix!==!0&&ye[0]==="^"&&!ye.includes("/")&&(U=`/${U}`),k.value+=U,V({value:U}),b.literalBrackets===!1||Lr.hasRegexChars(ye))continue;let Y=Lr.escapeRegex(k.value);if(T.output=T.output.slice(0,-k.value.length),b.literalBrackets===!0){T.output+=Y,k.value=Y;continue}k.value=`(${t}${Y}|${k.value})`,T.output+=k.value;continue}if(U==="{"&&b.nobrace!==!0){z("braces");let ye={type:"brace",value:U,output:"(",outputIndex:T.output.length,tokensIndex:T.tokens.length};$.push(ye),J(ye);continue}if(U==="}"){let ye=$[$.length-1];if(b.nobrace===!0||!ye){J({type:"text",value:U,output:U});continue}let Y=")";if(ye.dots===!0){let re=l.slice(),ue=[];for(let ce=re.length-1;ce>=0&&(l.pop(),re[ce].type!=="brace");ce--)re[ce].type!=="dots"&&ue.unshift(re[ce].value);Y=Kb(ue,b),T.backtrack=!0}if(ye.comma!==!0&&ye.dots!==!0){let re=T.output.slice(0,ye.outputIndex),ue=T.tokens.slice(ye.tokensIndex);ye.value=ye.output="\\{",U=Y="\\}",T.output=re;for(let ce of ue)T.output+=ce.output||ce.value}J({type:"brace",value:U,output:Y}),X("braces"),$.pop();continue}if(U==="|"){N.length>0&&N[N.length-1].conditions++,J({type:"text",value:U});continue}if(U===","){let ye=U,Y=$[$.length-1];Y&&G[G.length-1]==="braces"&&(Y.comma=!0,ye="|"),J({type:"comma",value:U,output:ye});continue}if(U==="/"){if(k.type==="dot"&&T.index===T.start+1){T.start=T.index+1,T.consumed="",T.output="",l.pop(),k=e;continue}J({type:"slash",value:U,output:d});continue}if(U==="."){if(T.braces>0&&k.type==="dot"){k.value==="."&&(k.output=u);let ye=$[$.length-1];k.type="dots",k.output+=U,k.value+=U,ye.dots=!0;continue}if(T.braces+T.parens===0&&k.type!=="bos"&&k.type!=="slash"){J({type:"text",value:U,output:u});continue}J({type:"dot",value:U,output:u});continue}if(U==="?"){if(!(k&&k.value==="(")&&b.noextglob!==!0&&O()==="("&&O(2)!=="?"){ie("qmark",U);continue}if(k&&k.type==="paren"){let Y=O(),re=U;if(Y==="<"&&!Lr.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(k.value==="("&&!/[!=<:]/.test(Y)||Y==="<"&&!/<([!=]|\w+>)/.test(F()))&&(re=`\\${U}`),J({type:"text",value:U,output:re});continue}if(b.dot!==!0&&(k.type==="slash"||k.type==="bos")){J({type:"qmark",value:U,output:w});continue}J({type:"qmark",value:U,output:f});continue}if(U==="!"){if(b.noextglob!==!0&&O()==="("&&(O(2)!=="?"||!/[!=<:]/.test(O(3)))){ie("negate",U);continue}if(b.nonegate!==!0&&T.index===0){K();continue}}if(U==="+"){if(b.noextglob!==!0&&O()==="("&&O(2)!=="?"){ie("plus",U);continue}if(k&&k.value==="("||b.regex===!1){J({type:"plus",value:U,output:a});continue}if(k&&(k.type==="bracket"||k.type==="paren"||k.type==="brace")||T.parens>0){J({type:"plus",value:U});continue}J({type:"plus",value:a});continue}if(U==="@"){if(b.noextglob!==!0&&O()==="("&&O(2)!=="?"){J({type:"at",extglob:!0,value:U,output:""});continue}J({type:"text",value:U});continue}if(U!=="*"){(U==="$"||U==="^")&&(U=`\\${U}`);let ye=Wb.exec(F());ye&&(U+=ye[0],T.index+=ye[0].length),J({type:"text",value:U});continue}if(k&&(k.type==="globstar"||k.star===!0)){k.type="star",k.star=!0,k.value+=U,k.output=j,T.backtrack=!0,T.globstar=!0,L(U);continue}let pe=F();if(b.noextglob!==!0&&/^\([^?]/.test(pe)){ie("star",U);continue}if(k.type==="star"){if(b.noglobstar===!0){L(U);continue}let ye=k.prev,Y=ye.prev,re=ye.type==="slash"||ye.type==="bos",ue=Y&&(Y.type==="star"||Y.type==="globstar");if(b.bash===!0&&(!re||pe[0]&&pe[0]!=="/")){J({type:"star",value:U,output:""});continue}let ce=T.braces>0&&(ye.type==="comma"||ye.type==="brace"),Ie=N.length&&(ye.type==="pipe"||ye.type==="paren");if(!re&&ye.type!=="paren"&&!ce&&!Ie){J({type:"star",value:U,output:""});continue}for(;pe.slice(0,3)==="/**";){let Ae=c[T.index+4];if(Ae&&Ae!=="/")break;pe=pe.slice(3),L("/**",3)}if(ye.type==="bos"&&M()){k.type="globstar",k.value+=U,k.output=P(b),T.output=k.output,T.globstar=!0,L(U);continue}if(ye.type==="slash"&&ye.prev.type!=="bos"&&!ue&&M()){T.output=T.output.slice(0,-(ye.output+k.output).length),ye.output=`(?:${ye.output}`,k.type="globstar",k.output=P(b)+(b.strictSlashes?")":"|$)"),k.value+=U,T.globstar=!0,T.output+=ye.output+k.output,L(U);continue}if(ye.type==="slash"&&ye.prev.type!=="bos"&&pe[0]==="/"){let Ae=pe[1]!==void 0?"|$":"";T.output=T.output.slice(0,-(ye.output+k.output).length),ye.output=`(?:${ye.output}`,k.type="globstar",k.output=`${P(b)}${d}|${d}${Ae})`,k.value+=U,T.output+=ye.output+k.output,T.globstar=!0,L(U+x()),J({type:"slash",value:"/",output:""});continue}if(ye.type==="bos"&&pe[0]==="/"){k.type="globstar",k.value+=U,k.output=`(?:^|${d}|${P(b)}${d})`,T.output=k.output,T.globstar=!0,L(U+x()),J({type:"slash",value:"/",output:""});continue}T.output=T.output.slice(0,-k.output.length),k.type="globstar",k.output=P(b),k.value+=U,T.output+=k.output,T.globstar=!0,L(U);continue}let Ee={type:"star",value:U,output:j};if(b.bash===!0){Ee.output=".*?",(k.type==="bos"||k.type==="slash")&&(Ee.output=R+Ee.output),J(Ee);continue}if(k&&(k.type==="bracket"||k.type==="paren")&&b.regex===!0){Ee.output=U,J(Ee);continue}(T.index===T.start||k.type==="slash"||k.type==="dot")&&(k.type==="dot"?(T.output+=E,k.output+=E):b.dot===!0?(T.output+=h,k.output+=h):(T.output+=R,k.output+=R),O()!=="*"&&(T.output+=y,k.output+=y)),J(Ee)}for(;T.brackets>0;){if(b.strictBrackets===!0)throw new SyntaxError(zn("closing","]"));T.output=Lr.escapeLast(T.output,"["),X("brackets")}for(;T.parens>0;){if(b.strictBrackets===!0)throw new SyntaxError(zn("closing",")"));T.output=Lr.escapeLast(T.output,"("),X("parens")}for(;T.braces>0;){if(b.strictBrackets===!0)throw new SyntaxError(zn("closing","}"));T.output=Lr.escapeLast(T.output,"{"),X("braces")}if(b.strictSlashes!==!0&&(k.type==="star"||k.type==="bracket")&&J({type:"maybe_slash",value:"",output:`${d}?`}),T.backtrack===!0){T.output="";for(let pe of T.tokens)T.output+=pe.output!=null?pe.output:pe.value,pe.suffix&&(T.output+=pe.suffix)}return T};ha.fastpaths=(c,p)=>{let b={...p},A=typeof b.maxLength=="number"?Math.min(Ji,b.maxLength):Ji,v=c.length;if(v>A)throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${A}`);c=qu[c]||c;let e=Lr.isWindows(p),{DOT_LITERAL:l,SLASH_LITERAL:t,ONE_CHAR:n,DOTS_SLASH:r,NO_DOT:i,NO_DOTS:u,NO_DOTS_SLASH:a,STAR:d,START_ANCHOR:y}=zi.globChars(e),m=b.dot?u:i,S=b.dot?a:i,E=b.capture?"":"?:",h={negated:!1,prefix:""},f=b.bash===!0?".*?":d;b.capture&&(f=`(${f})`);let w=R=>R.noglobstar===!0?f:`(${E}(?:(?!${y}${R.dot?r:l}).)*?)`,_=R=>{switch(R){case"*":return`${m}${n}${f}`;case".*":return`${l}${n}${f}`;case"*.*":return`${m}${f}${l}${n}${f}`;case"*/*":return`${m}${f}${t}${n}${S}${f}`;case"**":return m+w(b);case"**/*":return`(?:${m}${w(b)}${t})?${S}${n}${f}`;case"**/*.*":return`(?:${m}${w(b)}${t})?${S}${f}${l}${n}${f}`;case"**/.*":return`(?:${m}${w(b)}${t})?${l}${n}${f}`;default:{let C=/^(.*?)\.(\w+)$/.exec(R);if(!C)return;let j=_(C[1]);return j?j+l+C[2]:void 0}}},I=Lr.removePrefix(c,h),P=_(I);return P&&b.strictSlashes!==!0&&(P+=`${t}?`),P};Qu.exports=ha});var tc=Re((jP,ec)=>{"use strict";var Hb=tt("path"),Yb=Ju(),ma=Zu(),ya=mi(),Xb=hi(),zb=c=>c&&typeof c=="object"&&!Array.isArray(c),sr=(c,p,b=!1)=>{if(Array.isArray(c)){let i=c.map(a=>sr(a,p,b));return a=>{for(let d of i){let y=d(a);if(y)return y}return!1}}let A=zb(c)&&c.tokens&&c.input;if(c===""||typeof c!="string"&&!A)throw new TypeError("Expected pattern to be a non-empty string");let v=p||{},e=ya.isWindows(p),l=A?sr.compileRe(c,p):sr.makeRe(c,p,!1,!0),t=l.state;delete l.state;let n=()=>!1;if(v.ignore){let i={...p,ignore:null,onMatch:null,onResult:null};n=sr(v.ignore,i,b)}let r=(i,u=!1)=>{let{isMatch:a,match:d,output:y}=sr.test(i,l,p,{glob:c,posix:e}),m={glob:c,state:t,regex:l,posix:e,input:i,output:y,match:d,isMatch:a};return typeof v.onResult=="function"&&v.onResult(m),a===!1?(m.isMatch=!1,u?m:!1):n(i)?(typeof v.onIgnore=="function"&&v.onIgnore(m),m.isMatch=!1,u?m:!1):(typeof v.onMatch=="function"&&v.onMatch(m),u?m:!0)};return b&&(r.state=t),r};sr.test=(c,p,b,{glob:A,posix:v}={})=>{if(typeof c!="string")throw new TypeError("Expected input to be a string");if(c==="")return{isMatch:!1,output:""};let e=b||{},l=e.format||(v?ya.toPosixSlashes:null),t=c===A,n=t&&l?l(c):c;return t===!1&&(n=l?l(c):c,t=n===A),(t===!1||e.capture===!0)&&(e.matchBase===!0||e.basename===!0?t=sr.matchBase(c,p,b,v):t=p.exec(n)),{isMatch:Boolean(t),match:t,output:n}};sr.matchBase=(c,p,b,A=ya.isWindows(b))=>(p instanceof RegExp?p:sr.makeRe(p,b)).test(Hb.basename(c));sr.isMatch=(c,p,b)=>sr(p,b)(c);sr.parse=(c,p)=>Array.isArray(c)?c.map(b=>sr.parse(b,p)):ma(c,{...p,fastpaths:!1});sr.scan=(c,p)=>Yb(c,p);sr.compileRe=(c,p,b=!1,A=!1)=>{if(b===!0)return c.output;let v=p||{},e=v.contains?"":"^",l=v.contains?"":"$",t=`${e}(?:${c.output})${l}`;c&&c.negated===!0&&(t=`^(?!${t}).*$`);let n=sr.toRegex(t,p);return A===!0&&(n.state=c),n};sr.makeRe=(c,p={},b=!1,A=!1)=>{if(!c||typeof c!="string")throw new TypeError("Expected a non-empty string");let v={negated:!1,fastpaths:!0};return p.fastpaths!==!1&&(c[0]==="."||c[0]==="*")&&(v.output=ma.fastpaths(c,p)),v.output||(v=ma(c,p)),sr.compileRe(v,p,b,A)};sr.toRegex=(c,p)=>{try{let b=p||{};return new RegExp(c,b.flags||(b.nocase?"i":""))}catch(b){if(p&&p.debug===!0)throw b;return/$^/}};sr.constants=Xb;ec.exports=sr});var nc=Re((FP,rc)=>{"use strict";rc.exports=tc()});var lc=Re((RP,oc)=>{"use strict";var sc=tt("util"),ac=Lu(),Jr=nc(),ba=mi(),ic=c=>c===""||c==="./",tr=(c,p,b)=>{p=[].concat(p),c=[].concat(c);let A=new Set,v=new Set,e=new Set,l=0,t=i=>{e.add(i.output),b&&b.onResult&&b.onResult(i)};for(let i=0;i<p.length;i++){let u=Jr(String(p[i]),{...b,onResult:t},!0),a=u.state.negated||u.state.negatedExtglob;a&&l++;for(let d of c){let y=u(d,!0);!(a?!y.isMatch:y.isMatch)||(a?A.add(y.output):(A.delete(y.output),v.add(y.output)))}}let r=(l===p.length?[...e]:[...v]).filter(i=>!A.has(i));if(b&&r.length===0){if(b.failglob===!0)throw new Error(`No matches found for "${p.join(", ")}"`);if(b.nonull===!0||b.nullglob===!0)return b.unescape?p.map(i=>i.replace(/\\/g,"")):p}return r};tr.match=tr;tr.matcher=(c,p)=>Jr(c,p);tr.isMatch=(c,p,b)=>Jr(p,b)(c);tr.any=tr.isMatch;tr.not=(c,p,b={})=>{p=[].concat(p).map(String);let A=new Set,v=[],e=t=>{b.onResult&&b.onResult(t),v.push(t.output)},l=new Set(tr(c,p,{...b,onResult:e}));for(let t of v)l.has(t)||A.add(t);return[...A]};tr.contains=(c,p,b)=>{if(typeof c!="string")throw new TypeError(`Expected a string: "${sc.inspect(c)}"`);if(Array.isArray(p))return p.some(A=>tr.contains(c,A,b));if(typeof p=="string"){if(ic(c)||ic(p))return!1;if(c.includes(p)||c.startsWith("./")&&c.slice(2).includes(p))return!0}return tr.isMatch(c,p,{...b,contains:!0})};tr.matchKeys=(c,p,b)=>{if(!ba.isObject(c))throw new TypeError("Expected the first argument to be an object");let A=tr(Object.keys(c),p,b),v={};for(let e of A)v[e]=c[e];return v};tr.some=(c,p,b)=>{let A=[].concat(c);for(let v of[].concat(p)){let e=Jr(String(v),b);if(A.some(l=>e(l)))return!0}return!1};tr.every=(c,p,b)=>{let A=[].concat(c);for(let v of[].concat(p)){let e=Jr(String(v),b);if(!A.every(l=>e(l)))return!1}return!0};tr.all=(c,p,b)=>{if(typeof c!="string")throw new TypeError(`Expected a string: "${sc.inspect(c)}"`);return[].concat(p).every(A=>Jr(A,b)(c))};tr.capture=(c,p,b)=>{let A=ba.isWindows(b),e=Jr.makeRe(String(c),{...b,capture:!0}).exec(A?ba.toPosixSlashes(p):p);if(e)return e.slice(1).map(l=>l===void 0?"":l)};tr.makeRe=(...c)=>Jr.makeRe(...c);tr.scan=(...c)=>Jr.scan(...c);tr.parse=(c,p)=>{let b=[];for(let A of[].concat(c||[]))for(let v of ac(String(A),p))b.push(Jr.parse(v,p));return b};tr.braces=(c,p)=>{if(typeof c!="string")throw new TypeError("Expected a string");return p&&p.nobrace===!0||!/\{.*\}/.test(c)?[c]:ac(c,p)};tr.braceExpand=(c,p)=>{if(typeof c!="string")throw new TypeError("Expected a string");return tr.braces(c,{...p,expand:!0})};oc.exports=tr});var yc=Re(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.matchAny=It.convertPatternsToRe=It.makeRe=It.getPatternParts=It.expandBraceExpansion=It.expandPatternsWithBraceExpansion=It.isAffectDepthOfReadingPattern=It.endsWithSlashGlobStar=It.hasGlobStar=It.getBaseDirectory=It.isPatternRelatedToParentDirectory=It.getPatternsOutsideCurrentDirectory=It.getPatternsInsideCurrentDirectory=It.getPositivePatterns=It.getNegativePatterns=It.isPositivePattern=It.isNegativePattern=It.convertToNegativePattern=It.convertToPositivePattern=It.isDynamicPattern=It.isStaticPattern=void 0;var Jb=tt("path"),qb=eu(),ga=lc(),uc="**",Qb="\\",Zb=/[*?]|^!/,eg=/\[[^[]*]/,tg=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,rg=/[!*+?@]\([^(]*\)/,ng=/,|\.\./;function cc(c,p={}){return!pc(c,p)}It.isStaticPattern=cc;function pc(c,p={}){return c===""?!1:!!(p.caseSensitiveMatch===!1||c.includes(Qb)||Zb.test(c)||eg.test(c)||tg.test(c)||p.extglob!==!1&&rg.test(c)||p.braceExpansion!==!1&&ig(c))}It.isDynamicPattern=pc;function ig(c){let p=c.indexOf("{");if(p===-1)return!1;let b=c.indexOf("}",p+1);if(b===-1)return!1;let A=c.slice(p,b);return ng.test(A)}function sg(c){return qi(c)?c.slice(1):c}It.convertToPositivePattern=sg;function ag(c){return"!"+c}It.convertToNegativePattern=ag;function qi(c){return c.startsWith("!")&&c[1]!=="("}It.isNegativePattern=qi;function dc(c){return!qi(c)}It.isPositivePattern=dc;function og(c){return c.filter(qi)}It.getNegativePatterns=og;function lg(c){return c.filter(dc)}It.getPositivePatterns=lg;function ug(c){return c.filter(p=>!Ea(p))}It.getPatternsInsideCurrentDirectory=ug;function cg(c){return c.filter(Ea)}It.getPatternsOutsideCurrentDirectory=cg;function Ea(c){return c.startsWith("..")||c.startsWith("./..")}It.isPatternRelatedToParentDirectory=Ea;function pg(c){return qb(c,{flipBackslashes:!1})}It.getBaseDirectory=pg;function dg(c){return c.includes(uc)}It.hasGlobStar=dg;function fc(c){return c.endsWith("/"+uc)}It.endsWithSlashGlobStar=fc;function fg(c){let p=Jb.basename(c);return fc(c)||cc(p)}It.isAffectDepthOfReadingPattern=fg;function hg(c){return c.reduce((p,b)=>p.concat(hc(b)),[])}It.expandPatternsWithBraceExpansion=hg;function hc(c){return ga.braces(c,{expand:!0,nodupes:!0})}It.expandBraceExpansion=hc;function mg(c,p){let{parts:b}=ga.scan(c,Object.assign(Object.assign({},p),{parts:!0}));return b.length===0&&(b=[c]),b[0].startsWith("/")&&(b[0]=b[0].slice(1),b.unshift("")),b}It.getPatternParts=mg;function mc(c,p){return ga.makeRe(c,p)}It.makeRe=mc;function yg(c,p){return c.map(b=>mc(b,p))}It.convertPatternsToRe=yg;function bg(c,p){return p.some(b=>b.test(c))}It.matchAny=bg});var vc=Re((LP,Ec)=>{"use strict";var gg=tt("stream"),bc=gg.PassThrough,Eg=Array.prototype.slice;Ec.exports=vg;function vg(){let c=[],p=Eg.call(arguments),b=!1,A=p[p.length-1];A&&!Array.isArray(A)&&A.pipe==null?p.pop():A={};let v=A.end!==!1,e=A.pipeError===!0;A.objectMode==null&&(A.objectMode=!0),A.highWaterMark==null&&(A.highWaterMark=64*1024);let l=bc(A);function t(){for(let i=0,u=arguments.length;i<u;i++)c.push(gc(arguments[i],A));return n(),this}function n(){if(b)return;b=!0;let i=c.shift();if(!i){process.nextTick(r);return}Array.isArray(i)||(i=[i]);let u=i.length+1;function a(){--u>0||(b=!1,n())}function d(y){function m(){y.removeListener("merge2UnpipeEnd",m),y.removeListener("end",m),e&&y.removeListener("error",S),a()}function S(E){l.emit("error",E)}if(y._readableState.endEmitted)return a();y.on("merge2UnpipeEnd",m),y.on("end",m),e&&y.on("error",S),y.pipe(l,{end:!1}),y.resume()}for(let y=0;y<i.length;y++)d(i[y]);a()}function r(){b=!1,l.emit("queueDrain"),v&&l.end()}return l.setMaxListeners(0),l.add=t,l.on("unpipe",function(i){i.emit("merge2UnpipeEnd")}),p.length&&t.apply(null,p),l}function gc(c,p){if(Array.isArray(c))for(let b=0,A=c.length;b<A;b++)c[b]=gc(c[b],p);else{if(!c._readableState&&c.pipe&&(c=c.pipe(bc(p))),!c._readableState||!c.pause||!c.pipe)throw new Error("Only readable stream can be merged.");c.pause()}return c}});var Tc=Re(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.merge=void 0;var Sg=vc();function Tg(c){let p=Sg(c);return c.forEach(b=>{b.once("error",A=>p.emit("error",A))}),p.once("close",()=>Sc(c)),p.once("end",()=>Sc(c)),p}Qi.merge=Tg;function Sc(c){c.forEach(p=>p.emit("close"))}});var Pc=Re(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.isEmpty=Jn.isString=void 0;function Pg(c){return typeof c=="string"}Jn.isString=Pg;function Ag(c){return c===""}Jn.isEmpty=Ag});var nn=Re(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.string=Er.stream=Er.pattern=Er.path=Er.fs=Er.errno=Er.array=void 0;var _g=Gl();Er.array=_g;var Cg=Kl();Er.errno=Cg;var wg=Hl();Er.fs=wg;var Dg=Yl();Er.path=Dg;var xg=yc();Er.pattern=xg;var Og=Tc();Er.stream=Og;var Ig=Pc();Er.string=Ig});var Cc=Re(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.convertPatternGroupToTask=vr.convertPatternGroupsToTasks=vr.groupPatternsByBaseDirectory=vr.getNegativePatternsAsPositive=vr.getPositivePatterns=vr.convertPatternsToTasks=vr.generate=void 0;var sn=nn();function Ng(c,p){let b=Ac(c),A=_c(c,p.ignore),v=b.filter(n=>sn.pattern.isStaticPattern(n,p)),e=b.filter(n=>sn.pattern.isDynamicPattern(n,p)),l=va(v,A,!1),t=va(e,A,!0);return l.concat(t)}vr.generate=Ng;function va(c,p,b){let A=[],v=sn.pattern.getPatternsOutsideCurrentDirectory(c),e=sn.pattern.getPatternsInsideCurrentDirectory(c),l=Sa(v),t=Sa(e);return A.push(...Ta(l,p,b)),"."in t?A.push(Pa(".",e,p,b)):A.push(...Ta(t,p,b)),A}vr.convertPatternsToTasks=va;function Ac(c){return sn.pattern.getPositivePatterns(c)}vr.getPositivePatterns=Ac;function _c(c,p){return sn.pattern.getNegativePatterns(c).concat(p).map(sn.pattern.convertToPositivePattern)}vr.getNegativePatternsAsPositive=_c;function Sa(c){let p={};return c.reduce((b,A)=>{let v=sn.pattern.getBaseDirectory(A);return v in b?b[v].push(A):b[v]=[A],b},p)}vr.groupPatternsByBaseDirectory=Sa;function Ta(c,p,b){return Object.keys(c).map(A=>Pa(A,c[A],p,b))}vr.convertPatternGroupsToTasks=Ta;function Pa(c,p,b,A){return{dynamic:A,positive:p,negative:b,base:c,patterns:[].concat(p,b.map(sn.pattern.convertToNegativePattern))}}vr.convertPatternGroupToTask=Pa});var Dc=Re(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.removeDuplicateSlashes=qn.transform=void 0;var jg=/(?!^)\/{2,}/g;function Fg(c){return c.map(p=>wc(p))}qn.transform=Fg;function wc(c){return c.replace(jg,"/")}qn.removeDuplicateSlashes=wc});var Oc=Re(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.read=void 0;function Rg(c,p,b){p.fs.lstat(c,(A,v)=>{if(A!==null){xc(b,A);return}if(!v.isSymbolicLink()||!p.followSymbolicLink){Aa(b,v);return}p.fs.stat(c,(e,l)=>{if(e!==null){if(p.throwErrorOnBrokenSymbolicLink){xc(b,e);return}Aa(b,v);return}p.markSymbolicLink&&(l.isSymbolicLink=()=>!0),Aa(b,l)})})}Zi.read=Rg;function xc(c,p){c(p)}function Aa(c,p){c(null,p)}});var Ic=Re(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.read=void 0;function kg(c,p){let b=p.fs.lstatSync(c);if(!b.isSymbolicLink()||!p.followSymbolicLink)return b;try{let A=p.fs.statSync(c);return p.markSymbolicLink&&(A.isSymbolicLink=()=>!0),A}catch(A){if(!p.throwErrorOnBrokenSymbolicLink)return b;throw A}}es.read=kg});var Nc=Re(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.createFileSystemAdapter=un.FILE_SYSTEM_ADAPTER=void 0;var ts=tt("fs");un.FILE_SYSTEM_ADAPTER={lstat:ts.lstat,stat:ts.stat,lstatSync:ts.lstatSync,statSync:ts.statSync};function Lg(c){return c===void 0?un.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},un.FILE_SYSTEM_ADAPTER),c)}un.createFileSystemAdapter=Lg});var jc=Re(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var Mg=Nc(),_a=class{constructor(p={}){this._options=p,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Mg.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(p,b){return p??b}};Ca.default=_a});var wn=Re(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.statSync=cn.stat=cn.Settings=void 0;var Fc=Oc(),Bg=Ic(),wa=jc();cn.Settings=wa.default;function $g(c,p,b){if(typeof p=="function"){Fc.read(c,Da(),p);return}Fc.read(c,Da(p),b)}cn.stat=$g;function Ug(c,p){let b=Da(p);return Bg.read(c,b)}cn.statSync=Ug;function Da(c={}){return c instanceof wa.default?c:new wa.default(c)}});var Lc=Re((XP,kc)=>{var Rc;kc.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):c=>(Rc||(Rc=Promise.resolve())).then(c).catch(p=>setTimeout(()=>{throw p},0))});var Bc=Re((zP,Mc)=>{Mc.exports=Wg;var Vg=Lc();function Wg(c,p){let b,A,v,e=!0;Array.isArray(c)?(b=[],A=c.length):(v=Object.keys(c),b={},A=v.length);function l(n){function r(){p&&p(n,b),p=null}e?Vg(r):r()}function t(n,r,i){b[n]=i,(--A===0||r)&&l(r)}A?v?v.forEach(function(n){c[n](function(r,i){t(n,r,i)})}):c.forEach(function(n,r){n(function(i,u){t(r,i,u)})}):l(null),e=!1}});var xa=Re(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var rs=process.versions.node.split(".");if(rs[0]===void 0||rs[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var $c=Number.parseInt(rs[0],10),Gg=Number.parseInt(rs[1],10),Uc=10,Kg=10,Hg=$c>Uc,Yg=$c===Uc&&Gg>=Kg;ns.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Hg||Yg});var Vc=Re(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.createDirentFromStats=void 0;var Oa=class{constructor(p,b){this.name=p,this.isBlockDevice=b.isBlockDevice.bind(b),this.isCharacterDevice=b.isCharacterDevice.bind(b),this.isDirectory=b.isDirectory.bind(b),this.isFIFO=b.isFIFO.bind(b),this.isFile=b.isFile.bind(b),this.isSocket=b.isSocket.bind(b),this.isSymbolicLink=b.isSymbolicLink.bind(b)}};function Xg(c,p){return new Oa(c,p)}is.createDirentFromStats=Xg});var Ia=Re(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.fs=void 0;var zg=Vc();ss.fs=zg});var Na=Re(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.joinPathSegments=void 0;function Jg(c,p,b){return c.endsWith(b)?c+p:c+b+p}as.joinPathSegments=Jg});var Xc=Re(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.readdir=pn.readdirWithFileTypes=pn.read=void 0;var qg=wn(),Wc=Bc(),Qg=xa(),Gc=Ia(),Kc=Na();function Zg(c,p,b){if(!p.stats&&Qg.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Hc(c,p,b);return}Yc(c,p,b)}pn.read=Zg;function Hc(c,p,b){p.fs.readdir(c,{withFileTypes:!0},(A,v)=>{if(A!==null){os(b,A);return}let e=v.map(t=>({dirent:t,name:t.name,path:Kc.joinPathSegments(c,t.name,p.pathSegmentSeparator)}));if(!p.followSymbolicLinks){ja(b,e);return}let l=e.map(t=>e0(t,p));Wc(l,(t,n)=>{if(t!==null){os(b,t);return}ja(b,n)})})}pn.readdirWithFileTypes=Hc;function e0(c,p){return b=>{if(!c.dirent.isSymbolicLink()){b(null,c);return}p.fs.stat(c.path,(A,v)=>{if(A!==null){if(p.throwErrorOnBrokenSymbolicLink){b(A);return}b(null,c);return}c.dirent=Gc.fs.createDirentFromStats(c.name,v),b(null,c)})}}function Yc(c,p,b){p.fs.readdir(c,(A,v)=>{if(A!==null){os(b,A);return}let e=v.map(l=>{let t=Kc.joinPathSegments(c,l,p.pathSegmentSeparator);return n=>{qg.stat(t,p.fsStatSettings,(r,i)=>{if(r!==null){n(r);return}let u={name:l,path:t,dirent:Gc.fs.createDirentFromStats(l,i)};p.stats&&(u.stats=i),n(null,u)})}});Wc(e,(l,t)=>{if(l!==null){os(b,l);return}ja(b,t)})})}pn.readdir=Yc;function os(c,p){c(p)}function ja(c,p){c(null,p)}});var Zc=Re(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.readdir=dn.readdirWithFileTypes=dn.read=void 0;var t0=wn(),r0=xa(),zc=Ia(),Jc=Na();function n0(c,p){return!p.stats&&r0.IS_SUPPORT_READDIR_WITH_FILE_TYPES?qc(c,p):Qc(c,p)}dn.read=n0;function qc(c,p){return p.fs.readdirSync(c,{withFileTypes:!0}).map(A=>{let v={dirent:A,name:A.name,path:Jc.joinPathSegments(c,A.name,p.pathSegmentSeparator)};if(v.dirent.isSymbolicLink()&&p.followSymbolicLinks)try{let e=p.fs.statSync(v.path);v.dirent=zc.fs.createDirentFromStats(v.name,e)}catch(e){if(p.throwErrorOnBrokenSymbolicLink)throw e}return v})}dn.readdirWithFileTypes=qc;function Qc(c,p){return p.fs.readdirSync(c).map(A=>{let v=Jc.joinPathSegments(c,A,p.pathSegmentSeparator),e=t0.statSync(v,p.fsStatSettings),l={name:A,path:v,dirent:zc.fs.createDirentFromStats(A,e)};return p.stats&&(l.stats=e),l})}dn.readdir=Qc});var ep=Re(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.createFileSystemAdapter=fn.FILE_SYSTEM_ADAPTER=void 0;var Qn=tt("fs");fn.FILE_SYSTEM_ADAPTER={lstat:Qn.lstat,stat:Qn.stat,lstatSync:Qn.lstatSync,statSync:Qn.statSync,readdir:Qn.readdir,readdirSync:Qn.readdirSync};function i0(c){return c===void 0?fn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},fn.FILE_SYSTEM_ADAPTER),c)}fn.createFileSystemAdapter=i0});var tp=Re(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var s0=tt("path"),a0=wn(),o0=ep(),Fa=class{constructor(p={}){this._options=p,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=o0.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,s0.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new a0.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(p,b){return p??b}};Ra.default=Fa});var ls=Re(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.Settings=hn.scandirSync=hn.scandir=void 0;var rp=Xc(),l0=Zc(),ka=tp();hn.Settings=ka.default;function u0(c,p,b){if(typeof p=="function"){rp.read(c,La(),p);return}rp.read(c,La(p),b)}hn.scandir=u0;function c0(c,p){let b=La(p);return l0.read(c,b)}hn.scandirSync=c0;function La(c={}){return c instanceof ka.default?c:new ka.default(c)}});var ip=Re((sA,np)=>{"use strict";function p0(c){var p=new c,b=p;function A(){var e=p;return e.next?p=e.next:(p=new c,b=p),e.next=null,e}function v(e){b.next=e,b=e}return{get:A,release:v}}np.exports=p0});var ap=Re((aA,Ma)=>{"use strict";var d0=ip();function sp(c,p,b){if(typeof c=="function"&&(b=p,p=c,c=null),b<1)throw new Error("fastqueue concurrency must be greater than 1");var A=d0(f0),v=null,e=null,l=0,t=null,n={push:m,drain:$r,saturated:$r,pause:i,paused:!1,concurrency:b,running:r,resume:d,idle:y,length:u,getQueue:a,unshift:S,empty:$r,kill:h,killAndDrain:f,error:w};return n;function r(){return l}function i(){n.paused=!0}function u(){for(var _=v,I=0;_;)_=_.next,I++;return I}function a(){for(var _=v,I=[];_;)I.push(_.value),_=_.next;return I}function d(){if(!!n.paused){n.paused=!1;for(var _=0;_<n.concurrency;_++)l++,E()}}function y(){return l===0&&n.length()===0}function m(_,I){var P=A.get();P.context=c,P.release=E,P.value=_,P.callback=I||$r,P.errorHandler=t,l===n.concurrency||n.paused?e?(e.next=P,e=P):(v=P,e=P,n.saturated()):(l++,p.call(c,P.value,P.worked))}function S(_,I){var P=A.get();P.context=c,P.release=E,P.value=_,P.callback=I||$r,l===n.concurrency||n.paused?v?(P.next=v,v=P):(v=P,e=P,n.saturated()):(l++,p.call(c,P.value,P.worked))}function E(_){_&&A.release(_);var I=v;I?n.paused?l--:(e===v&&(e=null),v=I.next,I.next=null,p.call(c,I.value,I.worked),e===null&&n.empty()):--l===0&&n.drain()}function h(){v=null,e=null,n.drain=$r}function f(){v=null,e=null,n.drain(),n.drain=$r}function w(_){t=_}}function $r(){}function f0(){this.value=null,this.callback=$r,this.next=null,this.release=$r,this.context=null,this.errorHandler=null;var c=this;this.worked=function(b,A){var v=c.callback,e=c.errorHandler,l=c.value;c.value=null,c.callback=$r,c.errorHandler&&e(b,l),v.call(c.context,b,A),c.release(c)}}function h0(c,p,b){typeof c=="function"&&(b=p,p=c,c=null);function A(i,u){p.call(this,i).then(function(a){u(null,a)},u)}var v=sp(c,A,b),e=v.push,l=v.unshift;return v.push=t,v.unshift=n,v.drained=r,v;function t(i){var u=new Promise(function(a,d){e(i,function(y,m){if(y){d(y);return}a(m)})});return u.catch($r),u}function n(i){var u=new Promise(function(a,d){l(i,function(y,m){if(y){d(y);return}a(m)})});return u.catch($r),u}function r(){var i=v.drain,u=new Promise(function(a){v.drain=function(){i(),a()}});return u}}Ma.exports=sp;Ma.exports.promise=h0});var us=Re(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.joinPathSegments=qr.replacePathSegmentSeparator=qr.isAppliedFilter=qr.isFatalError=void 0;function m0(c,p){return c.errorFilter===null?!0:!c.errorFilter(p)}qr.isFatalError=m0;function y0(c,p){return c===null||c(p)}qr.isAppliedFilter=y0;function b0(c,p){return c.split(/[/\\]/).join(p)}qr.replacePathSegmentSeparator=b0;function g0(c,p,b){return c===""?p:c.endsWith(b)?c+p:c+b+p}qr.joinPathSegments=g0});var Ua=Re($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var E0=us(),Ba=class{constructor(p,b){this._root=p,this._settings=b,this._root=E0.replacePathSegmentSeparator(p,b.pathSegmentSeparator)}};$a.default=Ba});var Ga=Re(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});var v0=tt("events"),S0=ls(),T0=ap(),cs=us(),P0=Ua(),Va=class extends P0.default{constructor(p,b){super(p,b),this._settings=b,this._scandir=S0.scandir,this._emitter=new v0.EventEmitter,this._queue=T0(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(p){this._emitter.on("entry",p)}onError(p){this._emitter.once("error",p)}onEnd(p){this._emitter.once("end",p)}_pushToQueue(p,b){let A={directory:p,base:b};this._queue.push(A,v=>{v!==null&&this._handleError(v)})}_worker(p,b){this._scandir(p.directory,this._settings.fsScandirSettings,(A,v)=>{if(A!==null){b(A,void 0);return}for(let e of v)this._handleEntry(e,p.base);b(null,void 0)})}_handleError(p){this._isDestroyed||!cs.isFatalError(this._settings,p)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",p))}_handleEntry(p,b){if(this._isDestroyed||this._isFatalError)return;let A=p.path;b!==void 0&&(p.path=cs.joinPathSegments(b,p.name,this._settings.pathSegmentSeparator)),cs.isAppliedFilter(this._settings.entryFilter,p)&&this._emitEntry(p),p.dirent.isDirectory()&&cs.isAppliedFilter(this._settings.deepFilter,p)&&this._pushToQueue(A,b===void 0?void 0:p.path)}_emitEntry(p){this._emitter.emit("entry",p)}};Wa.default=Va});var op=Re(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var A0=Ga(),Ka=class{constructor(p,b){this._root=p,this._settings=b,this._reader=new A0.default(this._root,this._settings),this._storage=[]}read(p){this._reader.onError(b=>{_0(p,b)}),this._reader.onEntry(b=>{this._storage.push(b)}),this._reader.onEnd(()=>{C0(p,this._storage)}),this._reader.read()}};Ha.default=Ka;function _0(c,p){c(p)}function C0(c,p){c(null,p)}});var lp=Re(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});var w0=tt("stream"),D0=Ga(),Ya=class{constructor(p,b){this._root=p,this._settings=b,this._reader=new D0.default(this._root,this._settings),this._stream=new w0.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(p=>{this._stream.emit("error",p)}),this._reader.onEntry(p=>{this._stream.push(p)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Xa.default=Ya});var up=Re(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var x0=ls(),ps=us(),O0=Ua(),za=class extends O0.default{constructor(){super(...arguments),this._scandir=x0.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(p,b){this._queue.add({directory:p,base:b})}_handleQueue(){for(let p of this._queue.values())this._handleDirectory(p.directory,p.base)}_handleDirectory(p,b){try{let A=this._scandir(p,this._settings.fsScandirSettings);for(let v of A)this._handleEntry(v,b)}catch(A){this._handleError(A)}}_handleError(p){if(!!ps.isFatalError(this._settings,p))throw p}_handleEntry(p,b){let A=p.path;b!==void 0&&(p.path=ps.joinPathSegments(b,p.name,this._settings.pathSegmentSeparator)),ps.isAppliedFilter(this._settings.entryFilter,p)&&this._pushToStorage(p),p.dirent.isDirectory()&&ps.isAppliedFilter(this._settings.deepFilter,p)&&this._pushToQueue(A,b===void 0?void 0:p.path)}_pushToStorage(p){this._storage.push(p)}};Ja.default=za});var cp=Re(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var I0=up(),qa=class{constructor(p,b){this._root=p,this._settings=b,this._reader=new I0.default(this._root,this._settings)}read(){return this._reader.read()}};Qa.default=qa});var pp=Re(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});var N0=tt("path"),j0=ls(),Za=class{constructor(p={}){this._options=p,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,N0.sep),this.fsScandirSettings=new j0.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(p,b){return p??b}};eo.default=Za});var ro=Re(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.Settings=Qr.walkStream=Qr.walkSync=Qr.walk=void 0;var dp=op(),F0=lp(),R0=cp(),to=pp();Qr.Settings=to.default;function k0(c,p,b){if(typeof p=="function"){new dp.default(c,ds()).read(p);return}new dp.default(c,ds(p)).read(b)}Qr.walk=k0;function L0(c,p){let b=ds(p);return new R0.default(c,b).read()}Qr.walkSync=L0;function M0(c,p){let b=ds(p);return new F0.default(c,b).read()}Qr.walkStream=M0;function ds(c={}){return c instanceof to.default?c:new to.default(c)}});var so=Re(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});var B0=tt("path"),$0=wn(),fp=nn(),no=class{constructor(p){this._settings=p,this._fsStatSettings=new $0.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(p){return B0.resolve(this._settings.cwd,p)}_makeEntry(p,b){let A={name:b,path:b,dirent:fp.fs.createDirentFromStats(b,p)};return this._settings.stats&&(A.stats=p),A}_isFatalError(p){return!fp.errno.isEnoentCodeError(p)&&!this._settings.suppressErrors}};io.default=no});var lo=Re(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});var U0=tt("stream"),V0=wn(),W0=ro(),G0=so(),ao=class extends G0.default{constructor(){super(...arguments),this._walkStream=W0.walkStream,this._stat=V0.stat}dynamic(p,b){return this._walkStream(p,b)}static(p,b){let A=p.map(this._getFullEntryPath,this),v=new U0.PassThrough({objectMode:!0});v._write=(e,l,t)=>this._getEntry(A[e],p[e],b).then(n=>{n!==null&&b.entryFilter(n)&&v.push(n),e===A.length-1&&v.end(),t()}).catch(t);for(let e=0;e<A.length;e++)v.write(e);return v}_getEntry(p,b,A){return this._getStat(p).then(v=>this._makeEntry(v,b)).catch(v=>{if(A.errorFilter(v))return null;throw v})}_getStat(p){return new Promise((b,A)=>{this._stat(p,this._fsStatSettings,(v,e)=>v===null?b(e):A(v))})}};oo.default=ao});var hp=Re(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});var Zn=nn(),uo=class{constructor(p,b,A){this._patterns=p,this._settings=b,this._micromatchOptions=A,this._storage=[],this._fillStorage()}_fillStorage(){let p=Zn.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let b of p){let A=this._getPatternSegments(b),v=this._splitSegmentsIntoSections(A);this._storage.push({complete:v.length<=1,pattern:b,segments:A,sections:v})}}_getPatternSegments(p){return Zn.pattern.getPatternParts(p,this._micromatchOptions).map(A=>Zn.pattern.isDynamicPattern(A,this._settings)?{dynamic:!0,pattern:A,patternRe:Zn.pattern.makeRe(A,this._micromatchOptions)}:{dynamic:!1,pattern:A})}_splitSegmentsIntoSections(p){return Zn.array.splitWhen(p,b=>b.dynamic&&Zn.pattern.hasGlobStar(b.pattern))}};co.default=uo});var mp=Re(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});var K0=hp(),po=class extends K0.default{match(p){let b=p.split("/"),A=b.length,v=this._storage.filter(e=>!e.complete||e.segments.length>A);for(let e of v){let l=e.sections[0];if(!e.complete&&A>l.length||b.every((n,r)=>{let i=e.segments[r];return!!(i.dynamic&&i.patternRe.test(n)||!i.dynamic&&i.pattern===n)}))return!0}return!1}};fo.default=po});var yp=Re(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});var fs=nn(),H0=mp(),ho=class{constructor(p,b){this._settings=p,this._micromatchOptions=b}getFilter(p,b,A){let v=this._getMatcher(b),e=this._getNegativePatternsRe(A);return l=>this._filter(p,l,v,e)}_getMatcher(p){return new H0.default(p,this._settings,this._micromatchOptions)}_getNegativePatternsRe(p){let b=p.filter(fs.pattern.isAffectDepthOfReadingPattern);return fs.pattern.convertPatternsToRe(b,this._micromatchOptions)}_filter(p,b,A,v){if(this._isSkippedByDeep(p,b.path)||this._isSkippedSymbolicLink(b))return!1;let e=fs.path.removeLeadingDotSegment(b.path);return this._isSkippedByPositivePatterns(e,A)?!1:this._isSkippedByNegativePatterns(e,v)}_isSkippedByDeep(p,b){return this._settings.deep===1/0?!1:this._getEntryLevel(p,b)>=this._settings.deep}_getEntryLevel(p,b){let A=b.split("/").length;if(p==="")return A;let v=p.split("/").length;return A-v}_isSkippedSymbolicLink(p){return!this._settings.followSymbolicLinks&&p.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(p,b){return!this._settings.baseNameMatch&&!b.match(p)}_isSkippedByNegativePatterns(p,b){return!fs.pattern.matchAny(p,b)}};mo.default=ho});var bp=Re(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});var Dn=nn(),yo=class{constructor(p,b){this._settings=p,this._micromatchOptions=b,this.index=new Map}getFilter(p,b){let A=Dn.pattern.convertPatternsToRe(p,this._micromatchOptions),v=Dn.pattern.convertPatternsToRe(b,this._micromatchOptions);return e=>this._filter(e,A,v)}_filter(p,b,A){if(this._settings.unique&&this._isDuplicateEntry(p)||this._onlyFileFilter(p)||this._onlyDirectoryFilter(p)||this._isSkippedByAbsoluteNegativePatterns(p.path,A))return!1;let v=this._settings.baseNameMatch?p.name:p.path,e=this._isMatchToPatterns(v,b)&&!this._isMatchToPatterns(p.path,A);return this._settings.unique&&e&&this._createIndexRecord(p),e}_isDuplicateEntry(p){return this.index.has(p.path)}_createIndexRecord(p){this.index.set(p.path,void 0)}_onlyFileFilter(p){return this._settings.onlyFiles&&!p.dirent.isFile()}_onlyDirectoryFilter(p){return this._settings.onlyDirectories&&!p.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(p,b){if(!this._settings.absolute)return!1;let A=Dn.path.makeAbsolute(this._settings.cwd,p);return Dn.pattern.matchAny(A,b)}_isMatchToPatterns(p,b){let A=Dn.path.removeLeadingDotSegment(p);return Dn.pattern.matchAny(A,b)||Dn.pattern.matchAny(A+"/",b)}};bo.default=yo});var gp=Re(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});var Y0=nn(),go=class{constructor(p){this._settings=p}getFilter(){return p=>this._isNonFatalError(p)}_isNonFatalError(p){return Y0.errno.isEnoentCodeError(p)||this._settings.suppressErrors}};Eo.default=go});var vp=Re(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});var Ep=nn(),vo=class{constructor(p){this._settings=p}getTransformer(){return p=>this._transform(p)}_transform(p){let b=p.path;return this._settings.absolute&&(b=Ep.path.makeAbsolute(this._settings.cwd,b),b=Ep.path.unixify(b)),this._settings.markDirectories&&p.dirent.isDirectory()&&(b+="/"),this._settings.objectMode?Object.assign(Object.assign({},p),{path:b}):b}};So.default=vo});var hs=Re(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});var X0=tt("path"),z0=yp(),J0=bp(),q0=gp(),Q0=vp(),To=class{constructor(p){this._settings=p,this.errorFilter=new q0.default(this._settings),this.entryFilter=new J0.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new z0.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Q0.default(this._settings)}_getRootDirectory(p){return X0.resolve(this._settings.cwd,p.base)}_getReaderOptions(p){let b=p.base==="."?"":p.base;return{basePath:b,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(b,p.positive,p.negative),entryFilter:this.entryFilter.getFilter(p.positive,p.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Po.default=To});var Sp=Re(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});var Z0=lo(),eE=hs(),Ao=class extends eE.default{constructor(){super(...arguments),this._reader=new Z0.default(this._settings)}read(p){let b=this._getRootDirectory(p),A=this._getReaderOptions(p),v=[];return new Promise((e,l)=>{let t=this.api(b,p,A);t.once("error",l),t.on("data",n=>v.push(A.transform(n))),t.once("end",()=>e(v))})}api(p,b,A){return b.dynamic?this._reader.dynamic(p,A):this._reader.static(b.patterns,A)}};_o.default=Ao});var Tp=Re(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});var tE=tt("stream"),rE=lo(),nE=hs(),Co=class extends nE.default{constructor(){super(...arguments),this._reader=new rE.default(this._settings)}read(p){let b=this._getRootDirectory(p),A=this._getReaderOptions(p),v=this.api(b,p,A),e=new tE.Readable({objectMode:!0,read:()=>{}});return v.once("error",l=>e.emit("error",l)).on("data",l=>e.emit("data",A.transform(l))).once("end",()=>e.emit("end")),e.once("close",()=>v.destroy()),e}api(p,b,A){return b.dynamic?this._reader.dynamic(p,A):this._reader.static(b.patterns,A)}};wo.default=Co});var Pp=Re(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});var iE=wn(),sE=ro(),aE=so(),Do=class extends aE.default{constructor(){super(...arguments),this._walkSync=sE.walkSync,this._statSync=iE.statSync}dynamic(p,b){return this._walkSync(p,b)}static(p,b){let A=[];for(let v of p){let e=this._getFullEntryPath(v),l=this._getEntry(e,v,b);l===null||!b.entryFilter(l)||A.push(l)}return A}_getEntry(p,b,A){try{let v=this._getStat(p);return this._makeEntry(v,b)}catch(v){if(A.errorFilter(v))return null;throw v}}_getStat(p){return this._statSync(p,this._fsStatSettings)}};xo.default=Do});var Ap=Re(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});var oE=Pp(),lE=hs(),Oo=class extends lE.default{constructor(){super(...arguments),this._reader=new oE.default(this._settings)}read(p){let b=this._getRootDirectory(p),A=this._getReaderOptions(p);return this.api(b,p,A).map(A.transform)}api(p,b,A){return b.dynamic?this._reader.dynamic(p,A):this._reader.static(b.patterns,A)}};Io.default=Oo});var _p=Re(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var ei=tt("fs"),uE=tt("os"),cE=Math.max(uE.cpus().length,1);ti.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:ei.lstat,lstatSync:ei.lstatSync,stat:ei.stat,statSync:ei.statSync,readdir:ei.readdir,readdirSync:ei.readdirSync};var No=class{constructor(p={}){this._options=p,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,cE),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(p,b){return p===void 0?b:p}_getFileSystemMethods(p={}){return Object.assign(Object.assign({},ti.DEFAULT_FILE_SYSTEM_ADAPTER),p)}};ti.default=No});var xp=Re((OA,Dp)=>{"use strict";var Cp=Cc(),wp=Dc(),pE=Sp(),dE=Tp(),fE=Ap(),jo=_p(),xn=nn();async function Fo(c,p){ri(c);let b=Ro(c,pE.default,p),A=await Promise.all(b);return xn.array.flatten(A)}(function(c){function p(l,t){ri(l);let n=Ro(l,fE.default,t);return xn.array.flatten(n)}c.sync=p;function b(l,t){ri(l);let n=Ro(l,dE.default,t);return xn.stream.merge(n)}c.stream=b;function A(l,t){ri(l);let n=wp.transform([].concat(l)),r=new jo.default(t);return Cp.generate(n,r)}c.generateTasks=A;function v(l,t){ri(l);let n=new jo.default(t);return xn.pattern.isDynamicPattern(l,n)}c.isDynamicPattern=v;function e(l){return ri(l),xn.path.escape(l)}c.escapePath=e})(Fo||(Fo={}));function Ro(c,p,b){let A=wp.transform([].concat(c)),v=new jo.default(b),e=Cp.generate(A,v),l=new p(v);return e.map(l.read,l)}function ri(c){if(![].concat(c).every(A=>xn.string.isString(A)&&!xn.string.isEmpty(A)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Dp.exports=Fo});var ko=Re((IA,Op)=>{"use strict";var hE=tt("os");Op.exports=hE.homedir||function(){var p=process.env.HOME,b=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||p||null:process.platform==="darwin"?p||(b?"/Users/"+b:null):process.platform==="linux"?p||(process.getuid()===0?"/root":b?"/home/"+b:null):p||null}});var Lo=Re((NA,Ip)=>{Ip.exports=function(){var c=Error.prepareStackTrace;Error.prepareStackTrace=function(b,A){return A};var p=new Error().stack;return Error.prepareStackTrace=c,p[2].getFileName()}});var Np=Re((jA,bi)=>{"use strict";var mE=process.platform==="win32",yE=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,Mo={};function bE(c){return yE.exec(c).slice(1)}Mo.parse=function(c){if(typeof c!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof c);var p=bE(c);if(!p||p.length!==5)throw new TypeError("Invalid path '"+c+"'");return{root:p[1],dir:p[0]===p[1]?p[0]:p[0].slice(0,-1),base:p[2],ext:p[4],name:p[3]}};var gE=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,Bo={};function EE(c){return gE.exec(c).slice(1)}Bo.parse=function(c){if(typeof c!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof c);var p=EE(c);if(!p||p.length!==5)throw new TypeError("Invalid path '"+c+"'");return{root:p[1],dir:p[0].slice(0,-1),base:p[2],ext:p[4],name:p[3]}};mE?bi.exports=Mo.parse:bi.exports=Bo.parse;bi.exports.posix=Bo.parse;bi.exports.win32=Mo.parse});var $o=Re((FA,kp)=>{var Rp=tt("path"),jp=Rp.parse||Np(),Fp=function(p,b){var A="/";/^([A-Za-z]:)/.test(p)?A="":/^\\\\/.test(p)&&(A="\\\\");for(var v=[p],e=jp(p);e.dir!==v[v.length-1];)v.push(e.dir),e=jp(e.dir);return v.reduce(function(l,t){return l.concat(b.map(function(n){return Rp.resolve(A,t,n)}))},[])};kp.exports=function(p,b,A){var v=b&&b.moduleDirectory?[].concat(b.moduleDirectory):["node_modules"];if(b&&typeof b.paths=="function")return b.paths(A,p,function(){return Fp(p,v)},b);var e=Fp(p,v);return b&&b.paths?e.concat(b.paths):e}});var Uo=Re((RA,Lp)=>{Lp.exports=function(c,p){return p||{}}});var Bp=Re((kA,Mp)=>{"use strict";var vE="Function.prototype.bind called on incompatible ",Vo=Array.prototype.slice,SE=Object.prototype.toString,TE="[object Function]";Mp.exports=function(p){var b=this;if(typeof b!="function"||SE.call(b)!==TE)throw new TypeError(vE+b);for(var A=Vo.call(arguments,1),v,e=function(){if(this instanceof v){var i=b.apply(this,A.concat(Vo.call(arguments)));return Object(i)===i?i:this}else return b.apply(p,A.concat(Vo.call(arguments)))},l=Math.max(0,b.length-A.length),t=[],n=0;n<l;n++)t.push("$"+n);if(v=Function("binder","return function ("+t.join(",")+"){ return binder.apply(this,arguments); }")(e),b.prototype){var r=function(){};r.prototype=b.prototype,v.prototype=new r,r.prototype=null}return v}});var Up=Re((LA,$p)=>{"use strict";var PE=Bp();$p.exports=Function.prototype.bind||PE});var Wp=Re((MA,Vp)=>{"use strict";var AE=Up();Vp.exports=AE.call(Function.call,Object.prototype.hasOwnProperty)});var Gp=Re((BA,_E)=>{_E.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"node:test":">= 18",timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:">= 13.4 && < 13.5",worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var ms=Re(($A,Yp)=>{"use strict";var CE=Wp();function wE(c,p){for(var b=c.split("."),A=p.split(" "),v=A.length>1?A[0]:"=",e=(A.length>1?A[1]:A[0]).split("."),l=0;l<3;++l){var t=parseInt(b[l]||0,10),n=parseInt(e[l]||0,10);if(t!==n)return v==="<"?t<n:v===">="?t>=n:!1}return v===">="}function Kp(c,p){var b=p.split(/ ?&& ?/);if(b.length===0)return!1;for(var A=0;A<b.length;++A)if(!wE(c,b[A]))return!1;return!0}function DE(c,p){if(typeof p=="boolean")return p;var b=typeof c>"u"?process.versions&&process.versions.node:c;if(typeof b!="string")throw new TypeError(typeof c>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(p&&typeof p=="object"){for(var A=0;A<p.length;++A)if(Kp(b,p[A]))return!0;return!1}return Kp(b,p)}var Hp=Gp();Yp.exports=function(p,b){return CE(Hp,p)&&DE(b,Hp[p])}});var Jp=Re((UA,zp)=>{var On=tt("fs"),xE=ko(),or=tt("path"),OE=Lo(),IE=$o(),NE=Uo(),jE=ms(),FE=process.platform!=="win32"&&On.realpath&&typeof On.realpath.native=="function"?On.realpath.native:On.realpath,Xp=xE(),RE=function(){return[or.join(Xp,".node_modules"),or.join(Xp,".node_libraries")]},kE=function(p,b){On.stat(p,function(A,v){return A?A.code==="ENOENT"||A.code==="ENOTDIR"?b(null,!1):b(A):b(null,v.isFile()||v.isFIFO())})},LE=function(p,b){On.stat(p,function(A,v){return A?A.code==="ENOENT"||A.code==="ENOTDIR"?b(null,!1):b(A):b(null,v.isDirectory())})},ME=function(p,b){FE(p,function(A,v){A&&A.code!=="ENOENT"?b(A):b(null,A?p:v)})},gi=function(p,b,A,v){A&&A.preserveSymlinks===!1?p(b,v):v(null,b)},BE=function(p,b,A){p(b,function(v,e){if(v)A(v);else try{var l=JSON.parse(e);A(null,l)}catch{A(null)}})},$E=function(p,b,A){for(var v=IE(b,A,p),e=0;e<v.length;e++)v[e]=or.join(v[e],p);return v};zp.exports=function(p,b,A){var v=A,e=b;if(typeof b=="function"&&(v=e,e={}),typeof p!="string"){var l=new TypeError("Path must be a string.");return process.nextTick(function(){v(l)})}e=NE(p,e);var t=e.isFile||kE,n=e.isDirectory||LE,r=e.readFile||On.readFile,i=e.realpath||ME,u=e.readPackage||BE;if(e.readFile&&e.readPackage){var a=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){v(a)})}var d=e.packageIterator,y=e.extensions||[".js"],m=e.includeCoreModules!==!1,S=e.basedir||or.dirname(OE()),E=e.filename||S;e.paths=e.paths||RE();var h=or.resolve(S);gi(i,h,e,function(T,N){T?v(T):w(N)});var f;function w(T){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(p))f=or.resolve(T,p),(p==="."||p===".."||p.slice(-1)==="/")&&(f+="/"),/\/$/.test(p)&&f===T?R(f,e.package,_):I(f,e.package,_);else{if(m&&jE(p))return v(null,p);j(p,T,function(N,$,G){if(N)v(N);else{if($)return gi(i,$,e,function(U,M){U?v(U):v(null,M,G)});var k=new Error("Cannot find module '"+p+"' from '"+E+"'");k.code="MODULE_NOT_FOUND",v(k)}})}}function _(T,N,$){T?v(T):N?v(null,N,$):R(f,function(G,k,U){if(G)v(G);else if(k)gi(i,k,e,function(O,x){O?v(O):v(null,x,U)});else{var M=new Error("Cannot find module '"+p+"' from '"+E+"'");M.code="MODULE_NOT_FOUND",v(M)}})}function I(T,N,$){var G=N,k=$;typeof G=="function"&&(k=G,G=void 0);var U=[""].concat(y);M(U,T,G);function M(O,x,F){if(O.length===0)return k(null,void 0,F);var L=x+O[0],V=F;V?K(null,V):P(or.dirname(L),K);function K(X,J,ie){if(V=J,X)return k(X);if(ie&&V&&e.pathFilter){var he=or.relative(ie,L),pe=he.slice(0,he.length-O[0].length),Ee=e.pathFilter(V,x,pe);if(Ee)return M([""].concat(y.slice()),or.resolve(ie,Ee),V)}t(L,z)}function z(X,J){if(X)return k(X);if(J)return k(null,L,V);M(O.slice(1),x,V)}}}function P(T,N){if(T===""||T==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(T)||/[/\\]node_modules[/\\]*$/.test(T))return N(null);gi(i,T,e,function($,G){if($)return P(or.dirname(T),N);var k=or.join(G,"package.json");t(k,function(U,M){if(!M)return P(or.dirname(T),N);u(r,k,function(O,x){O&&N(O);var F=x;F&&e.packageFilter&&(F=e.packageFilter(F,k)),N(null,F,T)})})})}function R(T,N,$){var G=$,k=N;typeof k=="function"&&(G=k,k=e.package),gi(i,T,e,function(U,M){if(U)return G(U);var O=or.join(M,"package.json");t(O,function(x,F){if(x)return G(x);if(!F)return I(or.join(T,"index"),k,G);u(r,O,function(L,V){if(L)return G(L);var K=V;if(K&&e.packageFilter&&(K=e.packageFilter(K,O)),K&&K.main){if(typeof K.main!="string"){var z=new TypeError("package \u201C"+K.name+"\u201D `main` must be a string");return z.code="INVALID_PACKAGE_MAIN",G(z)}(K.main==="."||K.main==="./")&&(K.main="index"),I(or.resolve(T,K.main),K,function(X,J,ie){if(X)return G(X);if(J)return G(null,J,ie);if(!ie)return I(or.join(T,"index"),ie,G);var he=or.resolve(T,ie.main);R(he,ie,function(pe,Ee,ye){if(pe)return G(pe);if(Ee)return G(null,Ee,ye);I(or.join(T,"index"),ye,G)})});return}I(or.join(T,"/index"),K,G)})})})}function C(T,N){if(N.length===0)return T(null,void 0);var $=N[0];n(or.dirname($),G);function G(M,O){if(M)return T(M);if(!O)return C(T,N.slice(1));I($,e.package,k)}function k(M,O,x){if(M)return T(M);if(O)return T(null,O,x);R($,e.package,U)}function U(M,O,x){if(M)return T(M);if(O)return T(null,O,x);C(T,N.slice(1))}}function j(T,N,$){var G=function(){return $E(T,N,e)};C($,d?d(T,N,G,e):G())}}});var qp=Re((VA,UE)=>{UE.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"node:test":">= 18",timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:">= 13.4 && < 13.5",worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var td=Re((WA,ed)=>{var VE=process.versions&&process.versions.node&&process.versions.node.split(".")||[];function WE(c){for(var p=c.split(" "),b=p.length>1?p[0]:"=",A=(p.length>1?p[1]:p[0]).split("."),v=0;v<3;++v){var e=parseInt(VE[v]||0,10),l=parseInt(A[v]||0,10);if(e!==l)return b==="<"?e<l:b===">="?e>=l:!1}return b===">="}function Qp(c){var p=c.split(/ ?&& ?/);if(p.length===0)return!1;for(var b=0;b<p.length;++b)if(!WE(p[b]))return!1;return!0}function GE(c){if(typeof c=="boolean")return c;if(c&&typeof c=="object"){for(var p=0;p<c.length;++p)if(Qp(c[p]))return!0;return!1}return Qp(c)}var Wo=qp(),Zp={};for(ys in Wo)Object.prototype.hasOwnProperty.call(Wo,ys)&&(Zp[ys]=GE(Wo[ys]));var ys;ed.exports=Zp});var nd=Re((GA,rd)=>{var KE=ms();rd.exports=function(p){return KE(p)}});var ad=Re((KA,sd)=>{var HE=ms(),In=tt("fs"),Sr=tt("path"),YE=ko(),XE=Lo(),zE=$o(),JE=Uo(),qE=process.platform!=="win32"&&In.realpathSync&&typeof In.realpathSync.native=="function"?In.realpathSync.native:In.realpathSync,id=YE(),QE=function(){return[Sr.join(id,".node_modules"),Sr.join(id,".node_libraries")]},ZE=function(p){try{var b=In.statSync(p,{throwIfNoEntry:!1})}catch(A){if(A&&(A.code==="ENOENT"||A.code==="ENOTDIR"))return!1;throw A}return!!b&&(b.isFile()||b.isFIFO())},ev=function(p){try{var b=In.statSync(p,{throwIfNoEntry:!1})}catch(A){if(A&&(A.code==="ENOENT"||A.code==="ENOTDIR"))return!1;throw A}return!!b&&b.isDirectory()},tv=function(p){try{return qE(p)}catch(b){if(b.code!=="ENOENT")throw b}return p},Ei=function(p,b,A){return A&&A.preserveSymlinks===!1?p(b):b},rv=function(p,b){var A=p(b);try{var v=JSON.parse(A);return v}catch{}},nv=function(p,b,A){for(var v=zE(b,A,p),e=0;e<v.length;e++)v[e]=Sr.join(v[e],p);return v};sd.exports=function(p,b){if(typeof p!="string")throw new TypeError("Path must be a string.");var A=JE(p,b),v=A.isFile||ZE,e=A.readFileSync||In.readFileSync,l=A.isDirectory||ev,t=A.realpathSync||tv,n=A.readPackageSync||rv;if(A.readFileSync&&A.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var r=A.packageIterator,i=A.extensions||[".js"],u=A.includeCoreModules!==!1,a=A.basedir||Sr.dirname(XE()),d=A.filename||a;A.paths=A.paths||QE();var y=Ei(t,Sr.resolve(a),A);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(p)){var m=Sr.resolve(y,p);(p==="."||p===".."||p.slice(-1)==="/")&&(m+="/");var S=f(m)||_(m);if(S)return Ei(t,S,A)}else{if(u&&HE(p))return p;var E=I(p,y);if(E)return Ei(t,E,A)}var h=new Error("Cannot find module '"+p+"' from '"+d+"'");throw h.code="MODULE_NOT_FOUND",h;function f(P){var R=w(Sr.dirname(P));if(R&&R.dir&&R.pkg&&A.pathFilter){var C=Sr.relative(R.dir,P),j=A.pathFilter(R.pkg,P,C);j&&(P=Sr.resolve(R.dir,j))}if(v(P))return P;for(var T=0;T<i.length;T++){var N=P+i[T];if(v(N))return N}}function w(P){if(!(P===""||P==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(P))&&!/[/\\]node_modules[/\\]*$/.test(P)){var R=Sr.join(Ei(t,P,A),"package.json");if(!v(R))return w(Sr.dirname(P));var C=n(e,R);return C&&A.packageFilter&&(C=A.packageFilter(C,P)),{pkg:C,dir:P}}}function _(P){var R=Sr.join(Ei(t,P,A),"/package.json");if(v(R)){try{var C=n(e,R)}catch{}if(C&&A.packageFilter&&(C=A.packageFilter(C,P)),C&&C.main){if(typeof C.main!="string"){var j=new TypeError("package \u201C"+C.name+"\u201D `main` must be a string");throw j.code="INVALID_PACKAGE_MAIN",j}(C.main==="."||C.main==="./")&&(C.main="index");try{var T=f(Sr.resolve(P,C.main));if(T)return T;var N=_(Sr.resolve(P,C.main));if(N)return N}catch{}}}return f(Sr.join(P,"/index"))}function I(P,R){for(var C=function(){return nv(P,R,A)},j=r?r(P,R,C,A):C(),T=0;T<j.length;T++){var N=j[T];if(l(Sr.dirname(N))){var $=f(N);if($)return $;var G=_(N);if(G)return G}}}}});var ld=Re((HA,od)=>{var bs=Jp();bs.core=td();bs.isCore=nd();bs.sync=ad();od.exports=bs});var Sd=Re(vs=>{vs.remove=vv;var Es=[{base:" ",chars:"\xA0"},{base:"0",chars:"\u07C0"},{base:"A",chars:"\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",chars:"\uA732"},{base:"AE",chars:"\xC6\u01FC\u01E2"},{base:"AO",chars:"\uA734"},{base:"AU",chars:"\uA736"},{base:"AV",chars:"\uA738\uA73A"},{base:"AY",chars:"\uA73C"},{base:"B",chars:"\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0181"},{base:"C",chars:"\u24B8\uFF23\uA73E\u1E08\u0106C\u0108\u010A\u010C\xC7\u0187\u023B"},{base:"D",chars:"\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018A\u0189\u1D05\uA779"},{base:"Dh",chars:"\xD0"},{base:"DZ",chars:"\u01F1\u01C4"},{base:"Dz",chars:"\u01F2\u01C5"},{base:"E",chars:"\u025B\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E\u1D07"},{base:"F",chars:"\uA77C\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",chars:"\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E\u0262"},{base:"H",chars:"\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",chars:"\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",chars:"\u24BF\uFF2A\u0134\u0248\u0237"},{base:"K",chars:"\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",chars:"\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",chars:"\u01C7"},{base:"Lj",chars:"\u01C8"},{base:"M",chars:"\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C\u03FB"},{base:"N",chars:"\uA7A4\u0220\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u019D\uA790\u1D0E"},{base:"NJ",chars:"\u01CA"},{base:"Nj",chars:"\u01CB"},{base:"O",chars:"\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OE",chars:"\u0152"},{base:"OI",chars:"\u01A2"},{base:"OO",chars:"\uA74E"},{base:"OU",chars:"\u0222"},{base:"P",chars:"\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",chars:"\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",chars:"\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",chars:"\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",chars:"\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"Th",chars:"\xDE"},{base:"TZ",chars:"\uA728"},{base:"U",chars:"\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",chars:"\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",chars:"\uA760"},{base:"W",chars:"\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",chars:"\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",chars:"\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",chars:"\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",chars:"\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250\u0251"},{base:"aa",chars:"\uA733"},{base:"ae",chars:"\xE6\u01FD\u01E3"},{base:"ao",chars:"\uA735"},{base:"au",chars:"\uA737"},{base:"av",chars:"\uA739\uA73B"},{base:"ay",chars:"\uA73D"},{base:"b",chars:"\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253\u0182"},{base:"c",chars:"\uFF43\u24D2\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",chars:"\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\u018B\u13E7\u0501\uA7AA"},{base:"dh",chars:"\xF0"},{base:"dz",chars:"\u01F3\u01C6"},{base:"e",chars:"\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u01DD"},{base:"f",chars:"\u24D5\uFF46\u1E1F\u0192"},{base:"ff",chars:"\uFB00"},{base:"fi",chars:"\uFB01"},{base:"fl",chars:"\uFB02"},{base:"ffi",chars:"\uFB03"},{base:"ffl",chars:"\uFB04"},{base:"g",chars:"\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\uA77F\u1D79"},{base:"h",chars:"\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",chars:"\u0195"},{base:"i",chars:"\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",chars:"\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",chars:"\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",chars:"\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747\u026D"},{base:"lj",chars:"\u01C9"},{base:"m",chars:"\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",chars:"\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u043B\u0509"},{base:"nj",chars:"\u01CC"},{base:"o",chars:"\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\uA74B\uA74D\u0275\u0254\u1D11"},{base:"oe",chars:"\u0153"},{base:"oi",chars:"\u01A3"},{base:"oo",chars:"\uA74F"},{base:"ou",chars:"\u0223"},{base:"p",chars:"\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755\u03C1"},{base:"q",chars:"\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",chars:"\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",chars:"\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u0282"},{base:"ss",chars:"\xDF"},{base:"t",chars:"\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"th",chars:"\xFE"},{base:"tz",chars:"\uA729"},{base:"u",chars:"\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",chars:"\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",chars:"\uA761"},{base:"w",chars:"\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",chars:"\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",chars:"\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",chars:"\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],Jo={};for(vi=0;vi<Es.length;vi+=1)for(zo=Es[vi].chars,gs=0;gs<zo.length;gs+=1)Jo[zo[gs]]=Es[vi].base;var zo,gs,vi;function vv(c){return c.replace(/[^\u0000-\u007e]/g,function(p){return Jo[p]||p})}vs.replacementList=Es;vs.diacriticsMap=Jo});var Id=Re((G_,Od)=>{(()=>{var c={"./node_modules/.pnpm/create-require@1.1.1/node_modules/create-require/create-require.js":(v,e,l)=>{let t=l("module"),n=l("path"),r=l("fs");v.exports=function(i){return i||(i=process.cwd()),function(u){try{return r.lstatSync(u).isDirectory()}catch{return!1}}(i)&&(i=n.join(i,"index.js")),t.createRequire?t.createRequire(i):t.createRequireFromPath?t.createRequireFromPath(i):function(u){let a=new t.Module(u,null);return a.filename=u,a.paths=t.Module._nodeModulePaths(n.dirname(u)),a._compile("module.exports = require;",u),a.exports}(i)}},"./node_modules/.pnpm/lru-cache@6.0.0/node_modules/lru-cache/index.js":(v,e,l)=>{"use strict";let t=l("./node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/yallist.js"),n=Symbol("max"),r=Symbol("length"),i=Symbol("lengthCalculator"),u=Symbol("allowStale"),a=Symbol("maxAge"),d=Symbol("dispose"),y=Symbol("noDisposeOnSet"),m=Symbol("lruList"),S=Symbol("cache"),E=Symbol("updateAgeOnGet"),h=()=>1,f=(C,j,T)=>{let N=C[S].get(j);if(N){let $=N.value;if(w(C,$)){if(I(C,N),!C[u])return}else T&&(C[E]&&(N.value.now=Date.now()),C[m].unshiftNode(N));return $.value}},w=(C,j)=>{if(!j||!j.maxAge&&!C[a])return!1;let T=Date.now()-j.now;return j.maxAge?T>j.maxAge:C[a]&&T>C[a]},_=C=>{if(C[r]>C[n])for(let j=C[m].tail;C[r]>C[n]&&j!==null;){let T=j.prev;I(C,j),j=T}},I=(C,j)=>{if(j){let T=j.value;C[d]&&C[d](T.key,T.value),C[r]-=T.length,C[S].delete(T.key),C[m].removeNode(j)}};class P{constructor(j,T,N,$,G){this.key=j,this.value=T,this.length=N,this.now=$,this.maxAge=G||0}}let R=(C,j,T,N)=>{let $=T.value;w(C,$)&&(I(C,T),C[u]||($=void 0)),$&&j.call(N,$.value,$.key,C)};v.exports=class{constructor(C){if(typeof C=="number"&&(C={max:C}),C||(C={}),C.max&&(typeof C.max!="number"||C.max<0))throw new TypeError("max must be a non-negative number");this[n]=C.max||1/0;let j=C.length||h;if(this[i]=typeof j!="function"?h:j,this[u]=C.stale||!1,C.maxAge&&typeof C.maxAge!="number")throw new TypeError("maxAge must be a number");this[a]=C.maxAge||0,this[d]=C.dispose,this[y]=C.noDisposeOnSet||!1,this[E]=C.updateAgeOnGet||!1,this.reset()}set max(C){if(typeof C!="number"||C<0)throw new TypeError("max must be a non-negative number");this[n]=C||1/0,_(this)}get max(){return this[n]}set allowStale(C){this[u]=!!C}get allowStale(){return this[u]}set maxAge(C){if(typeof C!="number")throw new TypeError("maxAge must be a non-negative number");this[a]=C,_(this)}get maxAge(){return this[a]}set lengthCalculator(C){typeof C!="function"&&(C=h),C!==this[i]&&(this[i]=C,this[r]=0,this[m].forEach(j=>{j.length=this[i](j.value,j.key),this[r]+=j.length})),_(this)}get lengthCalculator(){return this[i]}get length(){return this[r]}get itemCount(){return this[m].length}rforEach(C,j){j=j||this;for(let T=this[m].tail;T!==null;){let N=T.prev;R(this,C,T,j),T=N}}forEach(C,j){j=j||this;for(let T=this[m].head;T!==null;){let N=T.next;R(this,C,T,j),T=N}}keys(){return this[m].toArray().map(C=>C.key)}values(){return this[m].toArray().map(C=>C.value)}reset(){this[d]&&this[m]&&this[m].length&&this[m].forEach(C=>this[d](C.key,C.value)),this[S]=new Map,this[m]=new t,this[r]=0}dump(){return this[m].map(C=>!w(this,C)&&{k:C.key,v:C.value,e:C.now+(C.maxAge||0)}).toArray().filter(C=>C)}dumpLru(){return this[m]}set(C,j,T){if((T=T||this[a])&&typeof T!="number")throw new TypeError("maxAge must be a number");let N=T?Date.now():0,$=this[i](j,C);if(this[S].has(C)){if($>this[n])return I(this,this[S].get(C)),!1;let k=this[S].get(C).value;return this[d]&&(this[y]||this[d](C,k.value)),k.now=N,k.maxAge=T,k.value=j,this[r]+=$-k.length,k.length=$,this.get(C),_(this),!0}let G=new P(C,j,$,N,T);return G.length>this[n]?(this[d]&&this[d](C,j),!1):(this[r]+=G.length,this[m].unshift(G),this[S].set(C,this[m].head),_(this),!0)}has(C){if(!this[S].has(C))return!1;let j=this[S].get(C).value;return!w(this,j)}get(C){return f(this,C,!0)}peek(C){return f(this,C,!1)}pop(){let C=this[m].tail;return C?(I(this,C),C.value):null}del(C){I(this,this[S].get(C))}load(C){this.reset();let j=Date.now();for(let T=C.length-1;T>=0;T--){let N=C[T],$=N.e||0;if($===0)this.set(N.k,N.v);else{let G=$-j;G>0&&this.set(N.k,N.v,G)}}}prune(){this[S].forEach((C,j)=>f(this,j,!1))}}},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/index.js":(v,e,l)=>{let t=l("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/opts-arg.js"),n=l("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/path-arg.js"),{mkdirpNative:r,mkdirpNativeSync:i}=l("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-native.js"),{mkdirpManual:u,mkdirpManualSync:a}=l("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js"),{useNative:d,useNativeSync:y}=l("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/use-native.js"),m=(S,E)=>(S=n(S),E=t(E),d(E)?r(S,E):u(S,E));m.sync=(S,E)=>(S=n(S),E=t(E),y(E)?i(S,E):a(S,E)),m.native=(S,E)=>r(n(S),t(E)),m.manual=(S,E)=>u(n(S),t(E)),m.nativeSync=(S,E)=>i(n(S),t(E)),m.manualSync=(S,E)=>a(n(S),t(E)),v.exports=m},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/find-made.js":(v,e,l)=>{let{dirname:t}=l("path"),n=(i,u,a)=>a===u?Promise.resolve():i.statAsync(u).then(d=>d.isDirectory()?a:void 0,d=>d.code==="ENOENT"?n(i,t(u),u):void 0),r=(i,u,a)=>{if(a!==u)try{return i.statSync(u).isDirectory()?a:void 0}catch(d){return d.code==="ENOENT"?r(i,t(u),u):void 0}};v.exports={findMade:n,findMadeSync:r}},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js":(v,e,l)=>{let{dirname:t}=l("path"),n=(i,u,a)=>{u.recursive=!1;let d=t(i);return d===i?u.mkdirAsync(i,u).catch(y=>{if(y.code!=="EISDIR")throw y}):u.mkdirAsync(i,u).then(()=>a||i,y=>{if(y.code==="ENOENT")return n(d,u).then(m=>n(i,u,m));if(y.code!=="EEXIST"&&y.code!=="EROFS")throw y;return u.statAsync(i).then(m=>{if(m.isDirectory())return a;throw y},()=>{throw y})})},r=(i,u,a)=>{let d=t(i);if(u.recursive=!1,d===i)try{return u.mkdirSync(i,u)}catch(y){if(y.code!=="EISDIR")throw y;return}try{return u.mkdirSync(i,u),a||i}catch(y){if(y.code==="ENOENT")return r(i,u,r(d,u,a));if(y.code!=="EEXIST"&&y.code!=="EROFS")throw y;try{if(!u.statSync(i).isDirectory())throw y}catch{throw y}}};v.exports={mkdirpManual:n,mkdirpManualSync:r}},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-native.js":(v,e,l)=>{let{dirname:t}=l("path"),{findMade:n,findMadeSync:r}=l("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/find-made.js"),{mkdirpManual:i,mkdirpManualSync:u}=l("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js");v.exports={mkdirpNative:(a,d)=>(d.recursive=!0,t(a)===a?d.mkdirAsync(a,d):n(d,a).then(y=>d.mkdirAsync(a,d).then(()=>y).catch(m=>{if(m.code==="ENOENT")return i(a,d);throw m}))),mkdirpNativeSync:(a,d)=>{if(d.recursive=!0,t(a)===a)return d.mkdirSync(a,d);let y=r(d,a);try{return d.mkdirSync(a,d),y}catch(m){if(m.code==="ENOENT")return u(a,d);throw m}}}},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/opts-arg.js":(v,e,l)=>{let{promisify:t}=l("util"),n=l("fs");v.exports=r=>{if(r)if(typeof r=="object")r={mode:511,fs:n,...r};else if(typeof r=="number")r={mode:r,fs:n};else{if(typeof r!="string")throw new TypeError("invalid options argument");r={mode:parseInt(r,8),fs:n}}else r={mode:511,fs:n};return r.mkdir=r.mkdir||r.fs.mkdir||n.mkdir,r.mkdirAsync=t(r.mkdir),r.stat=r.stat||r.fs.stat||n.stat,r.statAsync=t(r.stat),r.statSync=r.statSync||r.fs.statSync||n.statSync,r.mkdirSync=r.mkdirSync||r.fs.mkdirSync||n.mkdirSync,r}},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/path-arg.js":(v,e,l)=>{let t=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:n,parse:r}=l("path");v.exports=i=>{if(/\0/.test(i))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:i,code:"ERR_INVALID_ARG_VALUE"});if(i=n(i),t==="win32"){let u=/[*|"<>?:]/,{root:a}=r(i);if(u.test(i.substr(a.length)))throw Object.assign(new Error("Illegal characters in path."),{path:i,code:"EINVAL"})}return i}},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/use-native.js":(v,e,l)=>{let t=l("fs"),n=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),r=+n[0]>10||+n[0]==10&&+n[1]>=12,i=r?a=>a.mkdir===t.mkdir:()=>!1,u=r?a=>a.mkdirSync===t.mkdirSync:()=>!1;v.exports={useNative:i,useNativeSync:u}},"./node_modules/.pnpm/mlly@0.5.3/node_modules/mlly/dist lazy recursive":v=>{function e(l){return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+l+"'");throw t.code="MODULE_NOT_FOUND",t})}e.keys=()=>[],e.resolve=e,e.id="./node_modules/.pnpm/mlly@0.5.3/node_modules/mlly/dist lazy recursive",v.exports=e},"./node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.js":(v,e,l)=>{"use strict";var t=l("crypto");function n(m,S){return function(E,h){var f;if(f=h.algorithm!=="passthrough"?t.createHash(h.algorithm):new y,f.write===void 0&&(f.write=f.update,f.end=f.update),d(h,f).dispatch(E),f.update||f.end(""),f.digest)return f.digest(h.encoding==="buffer"?void 0:h.encoding);var w=f.read();return h.encoding==="buffer"?w:w.toString(h.encoding)}(m,S=u(m,S))}(e=v.exports=n).sha1=function(m){return n(m)},e.keys=function(m){return n(m,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},e.MD5=function(m){return n(m,{algorithm:"md5",encoding:"hex"})},e.keysMD5=function(m){return n(m,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var r=t.getHashes?t.getHashes().slice():["sha1","md5"];r.push("passthrough");var i=["buffer","hex","binary","base64"];function u(m,S){S=S||{};var E={};if(E.algorithm=S.algorithm||"sha1",E.encoding=S.encoding||"hex",E.excludeValues=!!S.excludeValues,E.algorithm=E.algorithm.toLowerCase(),E.encoding=E.encoding.toLowerCase(),E.ignoreUnknown=S.ignoreUnknown===!0,E.respectType=S.respectType!==!1,E.respectFunctionNames=S.respectFunctionNames!==!1,E.respectFunctionProperties=S.respectFunctionProperties!==!1,E.unorderedArrays=S.unorderedArrays===!0,E.unorderedSets=S.unorderedSets!==!1,E.unorderedObjects=S.unorderedObjects!==!1,E.replacer=S.replacer||void 0,E.excludeKeys=S.excludeKeys||void 0,m===void 0)throw new Error("Object argument required.");for(var h=0;h<r.length;++h)r[h].toLowerCase()===E.algorithm.toLowerCase()&&(E.algorithm=r[h]);if(r.indexOf(E.algorithm)===-1)throw new Error('Algorithm "'+E.algorithm+'" not supported. supported values: '+r.join(", "));if(i.indexOf(E.encoding)===-1&&E.algorithm!=="passthrough")throw new Error('Encoding "'+E.encoding+'" not supported. supported values: '+i.join(", "));return E}function a(m){return typeof m!="function"?!1:/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(m))!=null}function d(m,S,E){E=E||[];var h=function(f){return S.update?S.update(f,"utf8"):S.write(f,"utf8")};return{dispatch:function(f){m.replacer&&(f=m.replacer(f));var w=typeof f;return f===null&&(w="null"),this["_"+w](f)},_object:function(f){var w=Object.prototype.toString.call(f),_=/\[object (.*)\]/i.exec(w);_=(_=_?_[1]:"unknown:["+w+"]").toLowerCase();var I;if((I=E.indexOf(f))>=0)return this.dispatch("[CIRCULAR:"+I+"]");if(E.push(f),typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(f))return h("buffer:"),h(f);if(_==="object"||_==="function"||_==="asyncfunction"){var P=Object.keys(f);m.unorderedObjects&&(P=P.sort()),m.respectType===!1||a(f)||P.splice(0,0,"prototype","__proto__","constructor"),m.excludeKeys&&(P=P.filter(function(C){return!m.excludeKeys(C)})),h("object:"+P.length+":");var R=this;return P.forEach(function(C){R.dispatch(C),h(":"),m.excludeValues||R.dispatch(f[C]),h(",")})}if(!this["_"+_]){if(m.ignoreUnknown)return h("["+_+"]");throw new Error('Unknown object type "'+_+'"')}this["_"+_](f)},_array:function(f,w){w=w!==void 0?w:m.unorderedArrays!==!1;var _=this;if(h("array:"+f.length+":"),!w||f.length<=1)return f.forEach(function(R){return _.dispatch(R)});var I=[],P=f.map(function(R){var C=new y,j=E.slice();return d(m,C,j).dispatch(R),I=I.concat(j.slice(E.length)),C.read().toString()});return E=E.concat(I),P.sort(),this._array(P,!1)},_date:function(f){return h("date:"+f.toJSON())},_symbol:function(f){return h("symbol:"+f.toString())},_error:function(f){return h("error:"+f.toString())},_boolean:function(f){return h("bool:"+f.toString())},_string:function(f){h("string:"+f.length+":"),h(f.toString())},_function:function(f){h("fn:"),a(f)?this.dispatch("[native]"):this.dispatch(f.toString()),m.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(f.name)),m.respectFunctionProperties&&this._object(f)},_number:function(f){return h("number:"+f.toString())},_xml:function(f){return h("xml:"+f.toString())},_null:function(){return h("Null")},_undefined:function(){return h("Undefined")},_regexp:function(f){return h("regex:"+f.toString())},_uint8array:function(f){return h("uint8array:"),this.dispatch(Array.prototype.slice.call(f))},_uint8clampedarray:function(f){return h("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(f))},_int8array:function(f){return h("int8array:"),this.dispatch(Array.prototype.slice.call(f))},_uint16array:function(f){return h("uint16array:"),this.dispatch(Array.prototype.slice.call(f))},_int16array:function(f){return h("int16array:"),this.dispatch(Array.prototype.slice.call(f))},_uint32array:function(f){return h("uint32array:"),this.dispatch(Array.prototype.slice.call(f))},_int32array:function(f){return h("int32array:"),this.dispatch(Array.prototype.slice.call(f))},_float32array:function(f){return h("float32array:"),this.dispatch(Array.prototype.slice.call(f))},_float64array:function(f){return h("float64array:"),this.dispatch(Array.prototype.slice.call(f))},_arraybuffer:function(f){return h("arraybuffer:"),this.dispatch(new Uint8Array(f))},_url:function(f){return h("url:"+f.toString())},_map:function(f){h("map:");var w=Array.from(f);return this._array(w,m.unorderedSets!==!1)},_set:function(f){h("set:");var w=Array.from(f);return this._array(w,m.unorderedSets!==!1)},_file:function(f){return h("file:"),this.dispatch([f.name,f.size,f.type,f.lastModfied])},_blob:function(){if(m.ignoreUnknown)return h("[blob]");throw Error(`Hashing Blob objects is currently not supported
|
|
3
|
+
`+e),c.push(v+"m+"+Ui.exports.humanize(this.diff)+"\x1B[0m")}else c[0]=uy()+p+" "+c[0]}function uy(){return mr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function cy(...c){return process.stderr.write($i.format(...c)+`
|
|
4
|
+
`)}function py(c){c?process.env.DEBUG=c:delete process.env.DEBUG}function dy(){return process.env.DEBUG}function fy(c){c.inspectOpts={};let p=Object.keys(mr.inspectOpts);for(let b=0;b<p.length;b++)c.inspectOpts[p[b]]=mr.inspectOpts[p[b]]}Ui.exports=Js()(mr);var{formatters:$l}=Ui.exports;$l.o=function(c){return this.inspectOpts.colors=this.useColors,$i.inspect(c,this.inspectOpts).split(`
|
|
5
|
+
`).map(p=>p.trim()).join(" ")};$l.O=function(c){return this.inspectOpts.colors=this.useColors,$i.inspect(c,this.inspectOpts)}});var Zs=Re((dP,Qs)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Qs.exports=Rl():Qs.exports=Ul()});var Vl=Re(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.splitWhen=Yn.flatten=void 0;function hy(c){return c.reduce((p,b)=>[].concat(p,b),[])}Yn.flatten=hy;function my(c,p){let b=[[]],A=0;for(let v of c)p(v)?(A++,b[A]=[]):b[A].push(v);return b}Yn.splitWhen=my});var Wl=Re(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.isEnoentCodeError=void 0;function yy(c){return c.code==="ENOENT"}Vi.isEnoentCodeError=yy});var Gl=Re(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.createDirentFromStats=void 0;var ea=class{constructor(p,b){this.name=p,this.isBlockDevice=b.isBlockDevice.bind(b),this.isCharacterDevice=b.isCharacterDevice.bind(b),this.isDirectory=b.isDirectory.bind(b),this.isFIFO=b.isFIFO.bind(b),this.isFile=b.isFile.bind(b),this.isSocket=b.isSocket.bind(b),this.isSymbolicLink=b.isSymbolicLink.bind(b)}};function by(c,p){return new ea(c,p)}Wi.createDirentFromStats=by});var Kl=Re(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.removeLeadingDotSegment=Xr.escape=Xr.makeAbsolute=Xr.unixify=void 0;var gy=tt("path"),Ey=2,vy=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Sy(c){return c.replace(/\\/g,"/")}Xr.unixify=Sy;function Ty(c,p){return gy.resolve(c,p)}Xr.makeAbsolute=Ty;function Py(c){return c.replace(vy,"\\$2")}Xr.escape=Py;function Ay(c){if(c.charAt(0)==="."){let p=c.charAt(1);if(p==="/"||p==="\\")return c.slice(Ey)}return c}Xr.removeLeadingDotSegment=Ay});var Yl=Re((bP,Hl)=>{Hl.exports=function(p){if(typeof p!="string"||p==="")return!1;for(var b;b=/(\\).|([@?!+*]\(.*\))/g.exec(p);){if(b[2])return!0;p=p.slice(b.index+b[0].length)}return!1}});var Jl=Re((gP,zl)=>{var _y=Yl(),Xl={"{":"}","(":")","[":"]"},Cy=function(c){if(c[0]==="!")return!0;for(var p=0,b=-2,A=-2,v=-2,e=-2,l=-2;p<c.length;){if(c[p]==="*"||c[p+1]==="?"&&/[\].+)]/.test(c[p])||A!==-1&&c[p]==="["&&c[p+1]!=="]"&&(A<p&&(A=c.indexOf("]",p)),A>p&&(l===-1||l>A||(l=c.indexOf("\\",p),l===-1||l>A)))||v!==-1&&c[p]==="{"&&c[p+1]!=="}"&&(v=c.indexOf("}",p),v>p&&(l=c.indexOf("\\",p),l===-1||l>v))||e!==-1&&c[p]==="("&&c[p+1]==="?"&&/[:!=]/.test(c[p+2])&&c[p+3]!==")"&&(e=c.indexOf(")",p),e>p&&(l=c.indexOf("\\",p),l===-1||l>e))||b!==-1&&c[p]==="("&&c[p+1]!=="|"&&(b<p&&(b=c.indexOf("|",p)),b!==-1&&c[b+1]!==")"&&(e=c.indexOf(")",b),e>b&&(l=c.indexOf("\\",b),l===-1||l>e))))return!0;if(c[p]==="\\"){var t=c[p+1];p+=2;var n=Xl[t];if(n){var r=c.indexOf(n,p);r!==-1&&(p=r+1)}if(c[p]==="!")return!0}else p++}return!1},wy=function(c){if(c[0]==="!")return!0;for(var p=0;p<c.length;){if(/[*?{}()[\]]/.test(c[p]))return!0;if(c[p]==="\\"){var b=c[p+1];p+=2;var A=Xl[b];if(A){var v=c.indexOf(A,p);v!==-1&&(p=v+1)}if(c[p]==="!")return!0}else p++}return!1};zl.exports=function(p,b){if(typeof p!="string"||p==="")return!1;if(_y(p))return!0;var A=Cy;return b&&b.strict===!1&&(A=wy),A(p)}});var Ql=Re((EP,ql)=>{"use strict";var Dy=Jl(),xy=tt("path").posix.dirname,Oy=tt("os").platform()==="win32",ta="/",Iy=/\\/g,Ny=/[\{\[].*[\}\]]$/,jy=/(^|[^\\])([\{\[]|\([^\)]+$)/,Fy=/\\([\!\*\?\|\[\]\(\)\{\}])/g;ql.exports=function(p,b){var A=Object.assign({flipBackslashes:!0},b);A.flipBackslashes&&Oy&&p.indexOf(ta)<0&&(p=p.replace(Iy,ta)),Ny.test(p)&&(p+=ta),p+="a";do p=xy(p);while(Dy(p)||jy.test(p));return p.replace(Fy,"$1")}});var Gi=Re(Br=>{"use strict";Br.isInteger=c=>typeof c=="number"?Number.isInteger(c):typeof c=="string"&&c.trim()!==""?Number.isInteger(Number(c)):!1;Br.find=(c,p)=>c.nodes.find(b=>b.type===p);Br.exceedsLimit=(c,p,b=1,A)=>A===!1||!Br.isInteger(c)||!Br.isInteger(p)?!1:(Number(p)-Number(c))/Number(b)>=A;Br.escapeNode=(c,p=0,b)=>{let A=c.nodes[p];!A||(b&&A.type===b||A.type==="open"||A.type==="close")&&A.escaped!==!0&&(A.value="\\"+A.value,A.escaped=!0)};Br.encloseBrace=c=>c.type!=="brace"?!1:c.commas>>0+c.ranges>>0===0?(c.invalid=!0,!0):!1;Br.isInvalidBrace=c=>c.type!=="brace"?!1:c.invalid===!0||c.dollar?!0:c.commas>>0+c.ranges>>0===0||c.open!==!0||c.close!==!0?(c.invalid=!0,!0):!1;Br.isOpenOrClose=c=>c.type==="open"||c.type==="close"?!0:c.open===!0||c.close===!0;Br.reduce=c=>c.reduce((p,b)=>(b.type==="text"&&p.push(b.value),b.type==="range"&&(b.type="text"),p),[]);Br.flatten=(...c)=>{let p=[],b=A=>{for(let v=0;v<A.length;v++){let e=A[v];Array.isArray(e)?b(e,p):e!==void 0&&p.push(e)}return p};return b(c),p}});var Ki=Re((SP,eu)=>{"use strict";var Zl=Gi();eu.exports=(c,p={})=>{let b=(A,v={})=>{let e=p.escapeInvalid&&Zl.isInvalidBrace(v),l=A.invalid===!0&&p.escapeInvalid===!0,t="";if(A.value)return(e||l)&&Zl.isOpenOrClose(A)?"\\"+A.value:A.value;if(A.value)return A.value;if(A.nodes)for(let n of A.nodes)t+=b(n);return t};return b(c)}});var ru=Re((TP,tu)=>{"use strict";tu.exports=function(c){return typeof c=="number"?c-c===0:typeof c=="string"&&c.trim()!==""?Number.isFinite?Number.isFinite(+c):isFinite(+c):!1}});var pu=Re((PP,cu)=>{"use strict";var nu=ru(),_n=(c,p,b)=>{if(nu(c)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(p===void 0||c===p)return String(c);if(nu(p)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let A={relaxZeros:!0,...b};typeof A.strictZeros=="boolean"&&(A.relaxZeros=A.strictZeros===!1);let v=String(A.relaxZeros),e=String(A.shorthand),l=String(A.capture),t=String(A.wrap),n=c+":"+p+"="+v+e+l+t;if(_n.cache.hasOwnProperty(n))return _n.cache[n].result;let r=Math.min(c,p),i=Math.max(c,p);if(Math.abs(r-i)===1){let m=c+"|"+p;return A.capture?`(${m})`:A.wrap===!1?m:`(?:${m})`}let u=uu(c)||uu(p),a={min:c,max:p,a:r,b:i},d=[],y=[];if(u&&(a.isPadded=u,a.maxLen=String(a.max).length),r<0){let m=i<0?Math.abs(i):1;y=iu(m,Math.abs(r),a,A),r=a.a=0}return i>=0&&(d=iu(r,i,a,A)),a.negatives=y,a.positives=d,a.result=Ry(y,d,A),A.capture===!0?a.result=`(${a.result})`:A.wrap!==!1&&d.length+y.length>1&&(a.result=`(?:${a.result})`),_n.cache[n]=a,a.result};function Ry(c,p,b){let A=ra(c,p,"-",!1,b)||[],v=ra(p,c,"",!1,b)||[],e=ra(c,p,"-?",!0,b)||[];return A.concat(e).concat(v).join("|")}function ky(c,p){let b=1,A=1,v=au(c,b),e=new Set([p]);for(;c<=v&&v<=p;)e.add(v),b+=1,v=au(c,b);for(v=ou(p+1,A)-1;c<v&&v<=p;)e.add(v),A+=1,v=ou(p+1,A)-1;return e=[...e],e.sort(By),e}function Ly(c,p,b){if(c===p)return{pattern:c,count:[],digits:0};let A=My(c,p),v=A.length,e="",l=0;for(let t=0;t<v;t++){let[n,r]=A[t];n===r?e+=n:n!=="0"||r!=="9"?e+=$y(n,r,b):l++}return l&&(e+=b.shorthand===!0?"\\d":"[0-9]"),{pattern:e,count:[l],digits:v}}function iu(c,p,b,A){let v=ky(c,p),e=[],l=c,t;for(let n=0;n<v.length;n++){let r=v[n],i=Ly(String(l),String(r),A),u="";if(!b.isPadded&&t&&t.pattern===i.pattern){t.count.length>1&&t.count.pop(),t.count.push(i.count[0]),t.string=t.pattern+lu(t.count),l=r+1;continue}b.isPadded&&(u=Uy(r,b,A)),i.string=u+i.pattern+lu(i.count),e.push(i),l=r+1,t=i}return e}function ra(c,p,b,A,v){let e=[];for(let l of c){let{string:t}=l;!A&&!su(p,"string",t)&&e.push(b+t),A&&su(p,"string",t)&&e.push(b+t)}return e}function My(c,p){let b=[];for(let A=0;A<c.length;A++)b.push([c[A],p[A]]);return b}function By(c,p){return c>p?1:p>c?-1:0}function su(c,p,b){return c.some(A=>A[p]===b)}function au(c,p){return Number(String(c).slice(0,-p)+"9".repeat(p))}function ou(c,p){return c-c%Math.pow(10,p)}function lu(c){let[p=0,b=""]=c;return b||p>1?`{${p+(b?","+b:"")}}`:""}function $y(c,p,b){return`[${c}${p-c===1?"":"-"}${p}]`}function uu(c){return/^-?(0+)\d/.test(c)}function Uy(c,p,b){if(!p.isPadded)return c;let A=Math.abs(p.maxLen-String(c).length),v=b.relaxZeros!==!1;switch(A){case 0:return"";case 1:return v?"0?":"0";case 2:return v?"0{0,2}":"00";default:return v?`0{0,${A}}`:`0{${A}}`}}_n.cache={};_n.clearCache=()=>_n.cache={};cu.exports=_n});var sa=Re((AP,Eu)=>{"use strict";var Vy=tt("util"),hu=pu(),du=c=>c!==null&&typeof c=="object"&&!Array.isArray(c),Wy=c=>p=>c===!0?Number(p):String(p),na=c=>typeof c=="number"||typeof c=="string"&&c!=="",fi=c=>Number.isInteger(+c),ia=c=>{let p=`${c}`,b=-1;if(p[0]==="-"&&(p=p.slice(1)),p==="0")return!1;for(;p[++b]==="0";);return b>0},Gy=(c,p,b)=>typeof c=="string"||typeof p=="string"?!0:b.stringify===!0,Ky=(c,p,b)=>{if(p>0){let A=c[0]==="-"?"-":"";A&&(c=c.slice(1)),c=A+c.padStart(A?p-1:p,"0")}return b===!1?String(c):c},fu=(c,p)=>{let b=c[0]==="-"?"-":"";for(b&&(c=c.slice(1),p--);c.length<p;)c="0"+c;return b?"-"+c:c},Hy=(c,p)=>{c.negatives.sort((l,t)=>l<t?-1:l>t?1:0),c.positives.sort((l,t)=>l<t?-1:l>t?1:0);let b=p.capture?"":"?:",A="",v="",e;return c.positives.length&&(A=c.positives.join("|")),c.negatives.length&&(v=`-(${b}${c.negatives.join("|")})`),A&&v?e=`${A}|${v}`:e=A||v,p.wrap?`(${b}${e})`:e},mu=(c,p,b,A)=>{if(b)return hu(c,p,{wrap:!1,...A});let v=String.fromCharCode(c);if(c===p)return v;let e=String.fromCharCode(p);return`[${v}-${e}]`},yu=(c,p,b)=>{if(Array.isArray(c)){let A=b.wrap===!0,v=b.capture?"":"?:";return A?`(${v}${c.join("|")})`:c.join("|")}return hu(c,p,b)},bu=(...c)=>new RangeError("Invalid range arguments: "+Vy.inspect(...c)),gu=(c,p,b)=>{if(b.strictRanges===!0)throw bu([c,p]);return[]},Yy=(c,p)=>{if(p.strictRanges===!0)throw new TypeError(`Expected step "${c}" to be a number`);return[]},Xy=(c,p,b=1,A={})=>{let v=Number(c),e=Number(p);if(!Number.isInteger(v)||!Number.isInteger(e)){if(A.strictRanges===!0)throw bu([c,p]);return[]}v===0&&(v=0),e===0&&(e=0);let l=v>e,t=String(c),n=String(p),r=String(b);b=Math.max(Math.abs(b),1);let i=ia(t)||ia(n)||ia(r),u=i?Math.max(t.length,n.length,r.length):0,a=i===!1&&Gy(c,p,A)===!1,d=A.transform||Wy(a);if(A.toRegex&&b===1)return mu(fu(c,u),fu(p,u),!0,A);let y={negatives:[],positives:[]},m=h=>y[h<0?"negatives":"positives"].push(Math.abs(h)),S=[],E=0;for(;l?v>=e:v<=e;)A.toRegex===!0&&b>1?m(v):S.push(Ky(d(v,E),u,a)),v=l?v-b:v+b,E++;return A.toRegex===!0?b>1?Hy(y,A):yu(S,null,{wrap:!1,...A}):S},zy=(c,p,b=1,A={})=>{if(!fi(c)&&c.length>1||!fi(p)&&p.length>1)return gu(c,p,A);let v=A.transform||(a=>String.fromCharCode(a)),e=`${c}`.charCodeAt(0),l=`${p}`.charCodeAt(0),t=e>l,n=Math.min(e,l),r=Math.max(e,l);if(A.toRegex&&b===1)return mu(n,r,!1,A);let i=[],u=0;for(;t?e>=l:e<=l;)i.push(v(e,u)),e=t?e-b:e+b,u++;return A.toRegex===!0?yu(i,null,{wrap:!1,options:A}):i},Hi=(c,p,b,A={})=>{if(p==null&&na(c))return[c];if(!na(c)||!na(p))return gu(c,p,A);if(typeof b=="function")return Hi(c,p,1,{transform:b});if(du(b))return Hi(c,p,0,b);let v={...A};return v.capture===!0&&(v.wrap=!0),b=b||v.step||1,fi(b)?fi(c)&&fi(p)?Xy(c,p,b,v):zy(c,p,Math.max(Math.abs(b),1),v):b!=null&&!du(b)?Yy(b,v):Hi(c,p,1,b)};Eu.exports=Hi});var Tu=Re((_P,Su)=>{"use strict";var Jy=sa(),vu=Gi(),qy=(c,p={})=>{let b=(A,v={})=>{let e=vu.isInvalidBrace(v),l=A.invalid===!0&&p.escapeInvalid===!0,t=e===!0||l===!0,n=p.escapeInvalid===!0?"\\":"",r="";if(A.isOpen===!0||A.isClose===!0)return n+A.value;if(A.type==="open")return t?n+A.value:"(";if(A.type==="close")return t?n+A.value:")";if(A.type==="comma")return A.prev.type==="comma"?"":t?A.value:"|";if(A.value)return A.value;if(A.nodes&&A.ranges>0){let i=vu.reduce(A.nodes),u=Jy(...i,{...p,wrap:!1,toRegex:!0});if(u.length!==0)return i.length>1&&u.length>1?`(${u})`:u}if(A.nodes)for(let i of A.nodes)r+=b(i,A);return r};return b(c)};Su.exports=qy});var _u=Re((CP,Au)=>{"use strict";var Qy=sa(),Pu=Ki(),Xn=Gi(),Cn=(c="",p="",b=!1)=>{let A=[];if(c=[].concat(c),p=[].concat(p),!p.length)return c;if(!c.length)return b?Xn.flatten(p).map(v=>`{${v}}`):p;for(let v of c)if(Array.isArray(v))for(let e of v)A.push(Cn(e,p,b));else for(let e of p)b===!0&&typeof e=="string"&&(e=`{${e}}`),A.push(Array.isArray(e)?Cn(v,e,b):v+e);return Xn.flatten(A)},Zy=(c,p={})=>{let b=p.rangeLimit===void 0?1e3:p.rangeLimit,A=(v,e={})=>{v.queue=[];let l=e,t=e.queue;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,t=l.queue;if(v.invalid||v.dollar){t.push(Cn(t.pop(),Pu(v,p)));return}if(v.type==="brace"&&v.invalid!==!0&&v.nodes.length===2){t.push(Cn(t.pop(),["{}"]));return}if(v.nodes&&v.ranges>0){let u=Xn.reduce(v.nodes);if(Xn.exceedsLimit(...u,p.step,b))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let a=Qy(...u,p);a.length===0&&(a=Pu(v,p)),t.push(Cn(t.pop(),a)),v.nodes=[];return}let n=Xn.encloseBrace(v),r=v.queue,i=v;for(;i.type!=="brace"&&i.type!=="root"&&i.parent;)i=i.parent,r=i.queue;for(let u=0;u<v.nodes.length;u++){let a=v.nodes[u];if(a.type==="comma"&&v.type==="brace"){u===1&&r.push(""),r.push("");continue}if(a.type==="close"){t.push(Cn(t.pop(),r,n));continue}if(a.value&&a.type!=="open"){r.push(Cn(r.pop(),a.value));continue}a.nodes&&A(a,v)}return r};return Xn.flatten(A(c))};Au.exports=Zy});var wu=Re((wP,Cu)=>{"use strict";Cu.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
6
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Nu=Re((DP,Iu)=>{"use strict";var eb=Ki(),{MAX_LENGTH:Du,CHAR_BACKSLASH:aa,CHAR_BACKTICK:tb,CHAR_COMMA:rb,CHAR_DOT:nb,CHAR_LEFT_PARENTHESES:ib,CHAR_RIGHT_PARENTHESES:sb,CHAR_LEFT_CURLY_BRACE:ab,CHAR_RIGHT_CURLY_BRACE:ob,CHAR_LEFT_SQUARE_BRACKET:xu,CHAR_RIGHT_SQUARE_BRACKET:Ou,CHAR_DOUBLE_QUOTE:lb,CHAR_SINGLE_QUOTE:ub,CHAR_NO_BREAK_SPACE:cb,CHAR_ZERO_WIDTH_NOBREAK_SPACE:pb}=wu(),db=(c,p={})=>{if(typeof c!="string")throw new TypeError("Expected a string");let b=p||{},A=typeof b.maxLength=="number"?Math.min(Du,b.maxLength):Du;if(c.length>A)throw new SyntaxError(`Input length (${c.length}), exceeds max characters (${A})`);let v={type:"root",input:c,nodes:[]},e=[v],l=v,t=v,n=0,r=c.length,i=0,u=0,a,d={},y=()=>c[i++],m=S=>{if(S.type==="text"&&t.type==="dot"&&(t.type="text"),t&&t.type==="text"&&S.type==="text"){t.value+=S.value;return}return l.nodes.push(S),S.parent=l,S.prev=t,t=S,S};for(m({type:"bos"});i<r;)if(l=e[e.length-1],a=y(),!(a===pb||a===cb)){if(a===aa){m({type:"text",value:(p.keepEscaping?a:"")+y()});continue}if(a===Ou){m({type:"text",value:"\\"+a});continue}if(a===xu){n++;let S=!0,E;for(;i<r&&(E=y());){if(a+=E,E===xu){n++;continue}if(E===aa){a+=y();continue}if(E===Ou&&(n--,n===0))break}m({type:"text",value:a});continue}if(a===ib){l=m({type:"paren",nodes:[]}),e.push(l),m({type:"text",value:a});continue}if(a===sb){if(l.type!=="paren"){m({type:"text",value:a});continue}l=e.pop(),m({type:"text",value:a}),l=e[e.length-1];continue}if(a===lb||a===ub||a===tb){let S=a,E;for(p.keepQuotes!==!0&&(a="");i<r&&(E=y());){if(E===aa){a+=E+y();continue}if(E===S){p.keepQuotes===!0&&(a+=E);break}a+=E}m({type:"text",value:a});continue}if(a===ab){u++;let S=t.value&&t.value.slice(-1)==="$"||l.dollar===!0;l=m({type:"brace",open:!0,close:!1,dollar:S,depth:u,commas:0,ranges:0,nodes:[]}),e.push(l),m({type:"open",value:a});continue}if(a===ob){if(l.type!=="brace"){m({type:"text",value:a});continue}let S="close";l=e.pop(),l.close=!0,m({type:S,value:a}),u--,l=e[e.length-1];continue}if(a===rb&&u>0){if(l.ranges>0){l.ranges=0;let S=l.nodes.shift();l.nodes=[S,{type:"text",value:eb(l)}]}m({type:"comma",value:a}),l.commas++;continue}if(a===nb&&u>0&&l.commas===0){let S=l.nodes;if(u===0||S.length===0){m({type:"text",value:a});continue}if(t.type==="dot"){if(l.range=[],t.value+=a,t.type="range",l.nodes.length!==3&&l.nodes.length!==5){l.invalid=!0,l.ranges=0,t.type="text";continue}l.ranges++,l.args=[];continue}if(t.type==="range"){S.pop();let E=S[S.length-1];E.value+=t.value+a,t=E,l.ranges--;continue}m({type:"dot",value:a});continue}m({type:"text",value:a})}do if(l=e.pop(),l.type!=="root"){l.nodes.forEach(h=>{h.nodes||(h.type==="open"&&(h.isOpen=!0),h.type==="close"&&(h.isClose=!0),h.nodes||(h.type="text"),h.invalid=!0)});let S=e[e.length-1],E=S.nodes.indexOf(l);S.nodes.splice(E,1,...l.nodes)}while(e.length>0);return m({type:"eos"}),v};Iu.exports=db});var Ru=Re((xP,Fu)=>{"use strict";var ju=Ki(),fb=Tu(),hb=_u(),mb=Nu(),kr=(c,p={})=>{let b=[];if(Array.isArray(c))for(let A of c){let v=kr.create(A,p);Array.isArray(v)?b.push(...v):b.push(v)}else b=[].concat(kr.create(c,p));return p&&p.expand===!0&&p.nodupes===!0&&(b=[...new Set(b)]),b};kr.parse=(c,p={})=>mb(c,p);kr.stringify=(c,p={})=>ju(typeof c=="string"?kr.parse(c,p):c,p);kr.compile=(c,p={})=>(typeof c=="string"&&(c=kr.parse(c,p)),fb(c,p));kr.expand=(c,p={})=>{typeof c=="string"&&(c=kr.parse(c,p));let b=hb(c,p);return p.noempty===!0&&(b=b.filter(Boolean)),p.nodupes===!0&&(b=[...new Set(b)]),b};kr.create=(c,p={})=>c===""||c.length<3?[c]:p.expand!==!0?kr.compile(c,p):kr.expand(c,p);Fu.exports=kr});var hi=Re((OP,$u)=>{"use strict";var yb=tt("path"),zr="\\\\/",ku=`[^${zr}]`,rn="\\.",bb="\\+",gb="\\?",Yi="\\/",Eb="(?=.)",Lu="[^/]",oa=`(?:${Yi}|$)`,Mu=`(?:^|${Yi})`,la=`${rn}{1,2}${oa}`,vb=`(?!${rn})`,Sb=`(?!${Mu}${la})`,Tb=`(?!${rn}{0,1}${oa})`,Pb=`(?!${la})`,Ab=`[^.${Yi}]`,_b=`${Lu}*?`,Bu={DOT_LITERAL:rn,PLUS_LITERAL:bb,QMARK_LITERAL:gb,SLASH_LITERAL:Yi,ONE_CHAR:Eb,QMARK:Lu,END_ANCHOR:oa,DOTS_SLASH:la,NO_DOT:vb,NO_DOTS:Sb,NO_DOT_SLASH:Tb,NO_DOTS_SLASH:Pb,QMARK_NO_DOT:Ab,STAR:_b,START_ANCHOR:Mu},Cb={...Bu,SLASH_LITERAL:`[${zr}]`,QMARK:ku,STAR:`${ku}*?`,DOTS_SLASH:`${rn}{1,2}(?:[${zr}]|$)`,NO_DOT:`(?!${rn})`,NO_DOTS:`(?!(?:^|[${zr}])${rn}{1,2}(?:[${zr}]|$))`,NO_DOT_SLASH:`(?!${rn}{0,1}(?:[${zr}]|$))`,NO_DOTS_SLASH:`(?!${rn}{1,2}(?:[${zr}]|$))`,QMARK_NO_DOT:`[^.${zr}]`,START_ANCHOR:`(?:^|[${zr}])`,END_ANCHOR:`(?:[${zr}]|$)`},wb={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};$u.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:wb,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:yb.sep,extglobChars(c){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${c.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(c){return c===!0?Cb:Bu}}});var mi=Re(Dr=>{"use strict";var Db=tt("path"),xb=process.platform==="win32",{REGEX_BACKSLASH:Ob,REGEX_REMOVE_BACKSLASH:Ib,REGEX_SPECIAL_CHARS:Nb,REGEX_SPECIAL_CHARS_GLOBAL:jb}=hi();Dr.isObject=c=>c!==null&&typeof c=="object"&&!Array.isArray(c);Dr.hasRegexChars=c=>Nb.test(c);Dr.isRegexChar=c=>c.length===1&&Dr.hasRegexChars(c);Dr.escapeRegex=c=>c.replace(jb,"\\$1");Dr.toPosixSlashes=c=>c.replace(Ob,"/");Dr.removeBackslashes=c=>c.replace(Ib,p=>p==="\\"?"":p);Dr.supportsLookbehinds=()=>{let c=process.version.slice(1).split(".").map(Number);return c.length===3&&c[0]>=9||c[0]===8&&c[1]>=10};Dr.isWindows=c=>c&&typeof c.windows=="boolean"?c.windows:xb===!0||Db.sep==="\\";Dr.escapeLast=(c,p,b)=>{let A=c.lastIndexOf(p,b);return A===-1?c:c[A-1]==="\\"?Dr.escapeLast(c,p,A-1):`${c.slice(0,A)}\\${c.slice(A)}`};Dr.removePrefix=(c,p={})=>{let b=c;return b.startsWith("./")&&(b=b.slice(2),p.prefix="./"),b};Dr.wrapOutput=(c,p={},b={})=>{let A=b.contains?"":"^",v=b.contains?"":"$",e=`${A}(?:${c})${v}`;return p.negated===!0&&(e=`(?:^(?!${e}).*$)`),e}});var Xu=Re((NP,Yu)=>{"use strict";var Uu=mi(),{CHAR_ASTERISK:ua,CHAR_AT:Fb,CHAR_BACKWARD_SLASH:yi,CHAR_COMMA:Rb,CHAR_DOT:ca,CHAR_EXCLAMATION_MARK:pa,CHAR_FORWARD_SLASH:Hu,CHAR_LEFT_CURLY_BRACE:da,CHAR_LEFT_PARENTHESES:fa,CHAR_LEFT_SQUARE_BRACKET:kb,CHAR_PLUS:Lb,CHAR_QUESTION_MARK:Vu,CHAR_RIGHT_CURLY_BRACE:Mb,CHAR_RIGHT_PARENTHESES:Wu,CHAR_RIGHT_SQUARE_BRACKET:Bb}=hi(),Gu=c=>c===Hu||c===yi,Ku=c=>{c.isPrefix!==!0&&(c.depth=c.isGlobstar?1/0:1)},$b=(c,p)=>{let b=p||{},A=c.length-1,v=b.parts===!0||b.scanToEnd===!0,e=[],l=[],t=[],n=c,r=-1,i=0,u=0,a=!1,d=!1,y=!1,m=!1,S=!1,E=!1,h=!1,f=!1,w=!1,_=!1,I=0,P,R,C={value:"",depth:0,isGlob:!1},j=()=>r>=A,T=()=>n.charCodeAt(r+1),N=()=>(P=R,n.charCodeAt(++r));for(;r<A;){R=N();let M;if(R===yi){h=C.backslashes=!0,R=N(),R===da&&(E=!0);continue}if(E===!0||R===da){for(I++;j()!==!0&&(R=N());){if(R===yi){h=C.backslashes=!0,N();continue}if(R===da){I++;continue}if(E!==!0&&R===ca&&(R=N())===ca){if(a=C.isBrace=!0,y=C.isGlob=!0,_=!0,v===!0)continue;break}if(E!==!0&&R===Rb){if(a=C.isBrace=!0,y=C.isGlob=!0,_=!0,v===!0)continue;break}if(R===Mb&&(I--,I===0)){E=!1,a=C.isBrace=!0,_=!0;break}}if(v===!0)continue;break}if(R===Hu){if(e.push(r),l.push(C),C={value:"",depth:0,isGlob:!1},_===!0)continue;if(P===ca&&r===i+1){i+=2;continue}u=r+1;continue}if(b.noext!==!0&&(R===Lb||R===Fb||R===ua||R===Vu||R===pa)===!0&&T()===fa){if(y=C.isGlob=!0,m=C.isExtglob=!0,_=!0,R===pa&&r===i&&(w=!0),v===!0){for(;j()!==!0&&(R=N());){if(R===yi){h=C.backslashes=!0,R=N();continue}if(R===Wu){y=C.isGlob=!0,_=!0;break}}continue}break}if(R===ua){if(P===ua&&(S=C.isGlobstar=!0),y=C.isGlob=!0,_=!0,v===!0)continue;break}if(R===Vu){if(y=C.isGlob=!0,_=!0,v===!0)continue;break}if(R===kb){for(;j()!==!0&&(M=N());){if(M===yi){h=C.backslashes=!0,N();continue}if(M===Bb){d=C.isBracket=!0,y=C.isGlob=!0,_=!0;break}}if(v===!0)continue;break}if(b.nonegate!==!0&&R===pa&&r===i){f=C.negated=!0,i++;continue}if(b.noparen!==!0&&R===fa){if(y=C.isGlob=!0,v===!0){for(;j()!==!0&&(R=N());){if(R===fa){h=C.backslashes=!0,R=N();continue}if(R===Wu){_=!0;break}}continue}break}if(y===!0){if(_=!0,v===!0)continue;break}}b.noext===!0&&(m=!1,y=!1);let $=n,G="",k="";i>0&&(G=n.slice(0,i),n=n.slice(i),u-=i),$&&y===!0&&u>0?($=n.slice(0,u),k=n.slice(u)):y===!0?($="",k=n):$=n,$&&$!==""&&$!=="/"&&$!==n&&Gu($.charCodeAt($.length-1))&&($=$.slice(0,-1)),b.unescape===!0&&(k&&(k=Uu.removeBackslashes(k)),$&&h===!0&&($=Uu.removeBackslashes($)));let U={prefix:G,input:c,start:i,base:$,glob:k,isBrace:a,isBracket:d,isGlob:y,isExtglob:m,isGlobstar:S,negated:f,negatedExtglob:w};if(b.tokens===!0&&(U.maxDepth=0,Gu(R)||l.push(C),U.tokens=l),b.parts===!0||b.tokens===!0){let M;for(let O=0;O<e.length;O++){let x=M?M+1:i,F=e[O],L=c.slice(x,F);b.tokens&&(O===0&&i!==0?(l[O].isPrefix=!0,l[O].value=G):l[O].value=L,Ku(l[O]),U.maxDepth+=l[O].depth),(O!==0||L!=="")&&t.push(L),M=F}if(M&&M+1<c.length){let O=c.slice(M+1);t.push(O),b.tokens&&(l[l.length-1].value=O,Ku(l[l.length-1]),U.maxDepth+=l[l.length-1].depth)}U.slashes=e,U.parts=t}return U};Yu.exports=$b});var qu=Re((jP,Ju)=>{"use strict";var Xi=hi(),Lr=mi(),{MAX_LENGTH:zi,POSIX_REGEX_SOURCE:Ub,REGEX_NON_SPECIAL_CHARS:Vb,REGEX_SPECIAL_CHARS_BACKREF:Wb,REPLACEMENTS:zu}=Xi,Gb=(c,p)=>{if(typeof p.expandRange=="function")return p.expandRange(...c,p);c.sort();let b=`[${c.join("-")}]`;try{new RegExp(b)}catch{return c.map(v=>Lr.escapeRegex(v)).join("..")}return b},zn=(c,p)=>`Missing ${c}: "${p}" - use "\\\\${p}" to match literal characters`,ha=(c,p)=>{if(typeof c!="string")throw new TypeError("Expected a string");c=zu[c]||c;let b={...p},A=typeof b.maxLength=="number"?Math.min(zi,b.maxLength):zi,v=c.length;if(v>A)throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${A}`);let e={type:"bos",value:"",output:b.prepend||""},l=[e],t=b.capture?"":"?:",n=Lr.isWindows(p),r=Xi.globChars(n),i=Xi.extglobChars(r),{DOT_LITERAL:u,PLUS_LITERAL:a,SLASH_LITERAL:d,ONE_CHAR:y,DOTS_SLASH:m,NO_DOT:S,NO_DOT_SLASH:E,NO_DOTS_SLASH:h,QMARK:f,QMARK_NO_DOT:w,STAR:_,START_ANCHOR:I}=r,P=pe=>`(${t}(?:(?!${I}${pe.dot?m:u}).)*?)`,R=b.dot?"":S,C=b.dot?f:w,j=b.bash===!0?P(b):_;b.capture&&(j=`(${j})`),typeof b.noext=="boolean"&&(b.noextglob=b.noext);let T={input:c,index:-1,start:0,dot:b.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:l};c=Lr.removePrefix(c,T),v=c.length;let N=[],$=[],G=[],k=e,U,M=()=>T.index===v-1,O=T.peek=(pe=1)=>c[T.index+pe],x=T.advance=()=>c[++T.index]||"",F=()=>c.slice(T.index+1),L=(pe="",Ee=0)=>{T.consumed+=pe,T.index+=Ee},V=pe=>{T.output+=pe.output!=null?pe.output:pe.value,L(pe.value)},K=()=>{let pe=1;for(;O()==="!"&&(O(2)!=="("||O(3)==="?");)x(),T.start++,pe++;return pe%2===0?!1:(T.negated=!0,T.start++,!0)},z=pe=>{T[pe]++,G.push(pe)},X=pe=>{T[pe]--,G.pop()},J=pe=>{if(k.type==="globstar"){let Ee=T.braces>0&&(pe.type==="comma"||pe.type==="brace"),ye=pe.extglob===!0||N.length&&(pe.type==="pipe"||pe.type==="paren");pe.type!=="slash"&&pe.type!=="paren"&&!Ee&&!ye&&(T.output=T.output.slice(0,-k.output.length),k.type="star",k.value="*",k.output=j,T.output+=k.output)}if(N.length&&pe.type!=="paren"&&(N[N.length-1].inner+=pe.value),(pe.value||pe.output)&&V(pe),k&&k.type==="text"&&pe.type==="text"){k.value+=pe.value,k.output=(k.output||"")+pe.value;return}pe.prev=k,l.push(pe),k=pe},ie=(pe,Ee)=>{let ye={...i[Ee],conditions:1,inner:""};ye.prev=k,ye.parens=T.parens,ye.output=T.output;let Y=(b.capture?"(":"")+ye.open;z("parens"),J({type:pe,value:Ee,output:T.output?"":y}),J({type:"paren",extglob:!0,value:x(),output:Y}),N.push(ye)},he=pe=>{let Ee=pe.close+(b.capture?")":""),ye;if(pe.type==="negate"){let Y=j;if(pe.inner&&pe.inner.length>1&&pe.inner.includes("/")&&(Y=P(b)),(Y!==j||M()||/^\)+$/.test(F()))&&(Ee=pe.close=`)$))${Y}`),pe.inner.includes("*")&&(ye=F())&&/^\.[^\\/.]+$/.test(ye)){let re=ha(ye,{...p,fastpaths:!1}).output;Ee=pe.close=`)${re})${Y})`}pe.prev.type==="bos"&&(T.negatedExtglob=!0)}J({type:"paren",extglob:!0,value:U,output:Ee}),X("parens")};if(b.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(c)){let pe=!1,Ee=c.replace(Wb,(ye,Y,re,ue,ce,Ie)=>ue==="\\"?(pe=!0,ye):ue==="?"?Y?Y+ue+(ce?f.repeat(ce.length):""):Ie===0?C+(ce?f.repeat(ce.length):""):f.repeat(re.length):ue==="."?u.repeat(re.length):ue==="*"?Y?Y+ue+(ce?j:""):j:Y?ye:`\\${ye}`);return pe===!0&&(b.unescape===!0?Ee=Ee.replace(/\\/g,""):Ee=Ee.replace(/\\+/g,ye=>ye.length%2===0?"\\\\":ye?"\\":"")),Ee===c&&b.contains===!0?(T.output=c,T):(T.output=Lr.wrapOutput(Ee,T,p),T)}for(;!M();){if(U=x(),U==="\0")continue;if(U==="\\"){let ye=O();if(ye==="/"&&b.bash!==!0||ye==="."||ye===";")continue;if(!ye){U+="\\",J({type:"text",value:U});continue}let Y=/^\\+/.exec(F()),re=0;if(Y&&Y[0].length>2&&(re=Y[0].length,T.index+=re,re%2!==0&&(U+="\\")),b.unescape===!0?U=x():U+=x(),T.brackets===0){J({type:"text",value:U});continue}}if(T.brackets>0&&(U!=="]"||k.value==="["||k.value==="[^")){if(b.posix!==!1&&U===":"){let ye=k.value.slice(1);if(ye.includes("[")&&(k.posix=!0,ye.includes(":"))){let Y=k.value.lastIndexOf("["),re=k.value.slice(0,Y),ue=k.value.slice(Y+2),ce=Ub[ue];if(ce){k.value=re+ce,T.backtrack=!0,x(),!e.output&&l.indexOf(k)===1&&(e.output=y);continue}}}(U==="["&&O()!==":"||U==="-"&&O()==="]")&&(U=`\\${U}`),U==="]"&&(k.value==="["||k.value==="[^")&&(U=`\\${U}`),b.posix===!0&&U==="!"&&k.value==="["&&(U="^"),k.value+=U,V({value:U});continue}if(T.quotes===1&&U!=='"'){U=Lr.escapeRegex(U),k.value+=U,V({value:U});continue}if(U==='"'){T.quotes=T.quotes===1?0:1,b.keepQuotes===!0&&J({type:"text",value:U});continue}if(U==="("){z("parens"),J({type:"paren",value:U});continue}if(U===")"){if(T.parens===0&&b.strictBrackets===!0)throw new SyntaxError(zn("opening","("));let ye=N[N.length-1];if(ye&&T.parens===ye.parens+1){he(N.pop());continue}J({type:"paren",value:U,output:T.parens?")":"\\)"}),X("parens");continue}if(U==="["){if(b.nobracket===!0||!F().includes("]")){if(b.nobracket!==!0&&b.strictBrackets===!0)throw new SyntaxError(zn("closing","]"));U=`\\${U}`}else z("brackets");J({type:"bracket",value:U});continue}if(U==="]"){if(b.nobracket===!0||k&&k.type==="bracket"&&k.value.length===1){J({type:"text",value:U,output:`\\${U}`});continue}if(T.brackets===0){if(b.strictBrackets===!0)throw new SyntaxError(zn("opening","["));J({type:"text",value:U,output:`\\${U}`});continue}X("brackets");let ye=k.value.slice(1);if(k.posix!==!0&&ye[0]==="^"&&!ye.includes("/")&&(U=`/${U}`),k.value+=U,V({value:U}),b.literalBrackets===!1||Lr.hasRegexChars(ye))continue;let Y=Lr.escapeRegex(k.value);if(T.output=T.output.slice(0,-k.value.length),b.literalBrackets===!0){T.output+=Y,k.value=Y;continue}k.value=`(${t}${Y}|${k.value})`,T.output+=k.value;continue}if(U==="{"&&b.nobrace!==!0){z("braces");let ye={type:"brace",value:U,output:"(",outputIndex:T.output.length,tokensIndex:T.tokens.length};$.push(ye),J(ye);continue}if(U==="}"){let ye=$[$.length-1];if(b.nobrace===!0||!ye){J({type:"text",value:U,output:U});continue}let Y=")";if(ye.dots===!0){let re=l.slice(),ue=[];for(let ce=re.length-1;ce>=0&&(l.pop(),re[ce].type!=="brace");ce--)re[ce].type!=="dots"&&ue.unshift(re[ce].value);Y=Gb(ue,b),T.backtrack=!0}if(ye.comma!==!0&&ye.dots!==!0){let re=T.output.slice(0,ye.outputIndex),ue=T.tokens.slice(ye.tokensIndex);ye.value=ye.output="\\{",U=Y="\\}",T.output=re;for(let ce of ue)T.output+=ce.output||ce.value}J({type:"brace",value:U,output:Y}),X("braces"),$.pop();continue}if(U==="|"){N.length>0&&N[N.length-1].conditions++,J({type:"text",value:U});continue}if(U===","){let ye=U,Y=$[$.length-1];Y&&G[G.length-1]==="braces"&&(Y.comma=!0,ye="|"),J({type:"comma",value:U,output:ye});continue}if(U==="/"){if(k.type==="dot"&&T.index===T.start+1){T.start=T.index+1,T.consumed="",T.output="",l.pop(),k=e;continue}J({type:"slash",value:U,output:d});continue}if(U==="."){if(T.braces>0&&k.type==="dot"){k.value==="."&&(k.output=u);let ye=$[$.length-1];k.type="dots",k.output+=U,k.value+=U,ye.dots=!0;continue}if(T.braces+T.parens===0&&k.type!=="bos"&&k.type!=="slash"){J({type:"text",value:U,output:u});continue}J({type:"dot",value:U,output:u});continue}if(U==="?"){if(!(k&&k.value==="(")&&b.noextglob!==!0&&O()==="("&&O(2)!=="?"){ie("qmark",U);continue}if(k&&k.type==="paren"){let Y=O(),re=U;if(Y==="<"&&!Lr.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(k.value==="("&&!/[!=<:]/.test(Y)||Y==="<"&&!/<([!=]|\w+>)/.test(F()))&&(re=`\\${U}`),J({type:"text",value:U,output:re});continue}if(b.dot!==!0&&(k.type==="slash"||k.type==="bos")){J({type:"qmark",value:U,output:w});continue}J({type:"qmark",value:U,output:f});continue}if(U==="!"){if(b.noextglob!==!0&&O()==="("&&(O(2)!=="?"||!/[!=<:]/.test(O(3)))){ie("negate",U);continue}if(b.nonegate!==!0&&T.index===0){K();continue}}if(U==="+"){if(b.noextglob!==!0&&O()==="("&&O(2)!=="?"){ie("plus",U);continue}if(k&&k.value==="("||b.regex===!1){J({type:"plus",value:U,output:a});continue}if(k&&(k.type==="bracket"||k.type==="paren"||k.type==="brace")||T.parens>0){J({type:"plus",value:U});continue}J({type:"plus",value:a});continue}if(U==="@"){if(b.noextglob!==!0&&O()==="("&&O(2)!=="?"){J({type:"at",extglob:!0,value:U,output:""});continue}J({type:"text",value:U});continue}if(U!=="*"){(U==="$"||U==="^")&&(U=`\\${U}`);let ye=Vb.exec(F());ye&&(U+=ye[0],T.index+=ye[0].length),J({type:"text",value:U});continue}if(k&&(k.type==="globstar"||k.star===!0)){k.type="star",k.star=!0,k.value+=U,k.output=j,T.backtrack=!0,T.globstar=!0,L(U);continue}let pe=F();if(b.noextglob!==!0&&/^\([^?]/.test(pe)){ie("star",U);continue}if(k.type==="star"){if(b.noglobstar===!0){L(U);continue}let ye=k.prev,Y=ye.prev,re=ye.type==="slash"||ye.type==="bos",ue=Y&&(Y.type==="star"||Y.type==="globstar");if(b.bash===!0&&(!re||pe[0]&&pe[0]!=="/")){J({type:"star",value:U,output:""});continue}let ce=T.braces>0&&(ye.type==="comma"||ye.type==="brace"),Ie=N.length&&(ye.type==="pipe"||ye.type==="paren");if(!re&&ye.type!=="paren"&&!ce&&!Ie){J({type:"star",value:U,output:""});continue}for(;pe.slice(0,3)==="/**";){let Ae=c[T.index+4];if(Ae&&Ae!=="/")break;pe=pe.slice(3),L("/**",3)}if(ye.type==="bos"&&M()){k.type="globstar",k.value+=U,k.output=P(b),T.output=k.output,T.globstar=!0,L(U);continue}if(ye.type==="slash"&&ye.prev.type!=="bos"&&!ue&&M()){T.output=T.output.slice(0,-(ye.output+k.output).length),ye.output=`(?:${ye.output}`,k.type="globstar",k.output=P(b)+(b.strictSlashes?")":"|$)"),k.value+=U,T.globstar=!0,T.output+=ye.output+k.output,L(U);continue}if(ye.type==="slash"&&ye.prev.type!=="bos"&&pe[0]==="/"){let Ae=pe[1]!==void 0?"|$":"";T.output=T.output.slice(0,-(ye.output+k.output).length),ye.output=`(?:${ye.output}`,k.type="globstar",k.output=`${P(b)}${d}|${d}${Ae})`,k.value+=U,T.output+=ye.output+k.output,T.globstar=!0,L(U+x()),J({type:"slash",value:"/",output:""});continue}if(ye.type==="bos"&&pe[0]==="/"){k.type="globstar",k.value+=U,k.output=`(?:^|${d}|${P(b)}${d})`,T.output=k.output,T.globstar=!0,L(U+x()),J({type:"slash",value:"/",output:""});continue}T.output=T.output.slice(0,-k.output.length),k.type="globstar",k.output=P(b),k.value+=U,T.output+=k.output,T.globstar=!0,L(U);continue}let Ee={type:"star",value:U,output:j};if(b.bash===!0){Ee.output=".*?",(k.type==="bos"||k.type==="slash")&&(Ee.output=R+Ee.output),J(Ee);continue}if(k&&(k.type==="bracket"||k.type==="paren")&&b.regex===!0){Ee.output=U,J(Ee);continue}(T.index===T.start||k.type==="slash"||k.type==="dot")&&(k.type==="dot"?(T.output+=E,k.output+=E):b.dot===!0?(T.output+=h,k.output+=h):(T.output+=R,k.output+=R),O()!=="*"&&(T.output+=y,k.output+=y)),J(Ee)}for(;T.brackets>0;){if(b.strictBrackets===!0)throw new SyntaxError(zn("closing","]"));T.output=Lr.escapeLast(T.output,"["),X("brackets")}for(;T.parens>0;){if(b.strictBrackets===!0)throw new SyntaxError(zn("closing",")"));T.output=Lr.escapeLast(T.output,"("),X("parens")}for(;T.braces>0;){if(b.strictBrackets===!0)throw new SyntaxError(zn("closing","}"));T.output=Lr.escapeLast(T.output,"{"),X("braces")}if(b.strictSlashes!==!0&&(k.type==="star"||k.type==="bracket")&&J({type:"maybe_slash",value:"",output:`${d}?`}),T.backtrack===!0){T.output="";for(let pe of T.tokens)T.output+=pe.output!=null?pe.output:pe.value,pe.suffix&&(T.output+=pe.suffix)}return T};ha.fastpaths=(c,p)=>{let b={...p},A=typeof b.maxLength=="number"?Math.min(zi,b.maxLength):zi,v=c.length;if(v>A)throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${A}`);c=zu[c]||c;let e=Lr.isWindows(p),{DOT_LITERAL:l,SLASH_LITERAL:t,ONE_CHAR:n,DOTS_SLASH:r,NO_DOT:i,NO_DOTS:u,NO_DOTS_SLASH:a,STAR:d,START_ANCHOR:y}=Xi.globChars(e),m=b.dot?u:i,S=b.dot?a:i,E=b.capture?"":"?:",h={negated:!1,prefix:""},f=b.bash===!0?".*?":d;b.capture&&(f=`(${f})`);let w=R=>R.noglobstar===!0?f:`(${E}(?:(?!${y}${R.dot?r:l}).)*?)`,_=R=>{switch(R){case"*":return`${m}${n}${f}`;case".*":return`${l}${n}${f}`;case"*.*":return`${m}${f}${l}${n}${f}`;case"*/*":return`${m}${f}${t}${n}${S}${f}`;case"**":return m+w(b);case"**/*":return`(?:${m}${w(b)}${t})?${S}${n}${f}`;case"**/*.*":return`(?:${m}${w(b)}${t})?${S}${f}${l}${n}${f}`;case"**/.*":return`(?:${m}${w(b)}${t})?${l}${n}${f}`;default:{let C=/^(.*?)\.(\w+)$/.exec(R);if(!C)return;let j=_(C[1]);return j?j+l+C[2]:void 0}}},I=Lr.removePrefix(c,h),P=_(I);return P&&b.strictSlashes!==!0&&(P+=`${t}?`),P};Ju.exports=ha});var Zu=Re((FP,Qu)=>{"use strict";var Kb=tt("path"),Hb=Xu(),ma=qu(),ya=mi(),Yb=hi(),Xb=c=>c&&typeof c=="object"&&!Array.isArray(c),sr=(c,p,b=!1)=>{if(Array.isArray(c)){let i=c.map(a=>sr(a,p,b));return a=>{for(let d of i){let y=d(a);if(y)return y}return!1}}let A=Xb(c)&&c.tokens&&c.input;if(c===""||typeof c!="string"&&!A)throw new TypeError("Expected pattern to be a non-empty string");let v=p||{},e=ya.isWindows(p),l=A?sr.compileRe(c,p):sr.makeRe(c,p,!1,!0),t=l.state;delete l.state;let n=()=>!1;if(v.ignore){let i={...p,ignore:null,onMatch:null,onResult:null};n=sr(v.ignore,i,b)}let r=(i,u=!1)=>{let{isMatch:a,match:d,output:y}=sr.test(i,l,p,{glob:c,posix:e}),m={glob:c,state:t,regex:l,posix:e,input:i,output:y,match:d,isMatch:a};return typeof v.onResult=="function"&&v.onResult(m),a===!1?(m.isMatch=!1,u?m:!1):n(i)?(typeof v.onIgnore=="function"&&v.onIgnore(m),m.isMatch=!1,u?m:!1):(typeof v.onMatch=="function"&&v.onMatch(m),u?m:!0)};return b&&(r.state=t),r};sr.test=(c,p,b,{glob:A,posix:v}={})=>{if(typeof c!="string")throw new TypeError("Expected input to be a string");if(c==="")return{isMatch:!1,output:""};let e=b||{},l=e.format||(v?ya.toPosixSlashes:null),t=c===A,n=t&&l?l(c):c;return t===!1&&(n=l?l(c):c,t=n===A),(t===!1||e.capture===!0)&&(e.matchBase===!0||e.basename===!0?t=sr.matchBase(c,p,b,v):t=p.exec(n)),{isMatch:Boolean(t),match:t,output:n}};sr.matchBase=(c,p,b,A=ya.isWindows(b))=>(p instanceof RegExp?p:sr.makeRe(p,b)).test(Kb.basename(c));sr.isMatch=(c,p,b)=>sr(p,b)(c);sr.parse=(c,p)=>Array.isArray(c)?c.map(b=>sr.parse(b,p)):ma(c,{...p,fastpaths:!1});sr.scan=(c,p)=>Hb(c,p);sr.compileRe=(c,p,b=!1,A=!1)=>{if(b===!0)return c.output;let v=p||{},e=v.contains?"":"^",l=v.contains?"":"$",t=`${e}(?:${c.output})${l}`;c&&c.negated===!0&&(t=`^(?!${t}).*$`);let n=sr.toRegex(t,p);return A===!0&&(n.state=c),n};sr.makeRe=(c,p={},b=!1,A=!1)=>{if(!c||typeof c!="string")throw new TypeError("Expected a non-empty string");let v={negated:!1,fastpaths:!0};return p.fastpaths!==!1&&(c[0]==="."||c[0]==="*")&&(v.output=ma.fastpaths(c,p)),v.output||(v=ma(c,p)),sr.compileRe(v,p,b,A)};sr.toRegex=(c,p)=>{try{let b=p||{};return new RegExp(c,b.flags||(b.nocase?"i":""))}catch(b){if(p&&p.debug===!0)throw b;return/$^/}};sr.constants=Yb;Qu.exports=sr});var tc=Re((RP,ec)=>{"use strict";ec.exports=Zu()});var ac=Re((kP,sc)=>{"use strict";var nc=tt("util"),ic=Ru(),Jr=tc(),ba=mi(),rc=c=>c===""||c==="./",tr=(c,p,b)=>{p=[].concat(p),c=[].concat(c);let A=new Set,v=new Set,e=new Set,l=0,t=i=>{e.add(i.output),b&&b.onResult&&b.onResult(i)};for(let i=0;i<p.length;i++){let u=Jr(String(p[i]),{...b,onResult:t},!0),a=u.state.negated||u.state.negatedExtglob;a&&l++;for(let d of c){let y=u(d,!0);!(a?!y.isMatch:y.isMatch)||(a?A.add(y.output):(A.delete(y.output),v.add(y.output)))}}let r=(l===p.length?[...e]:[...v]).filter(i=>!A.has(i));if(b&&r.length===0){if(b.failglob===!0)throw new Error(`No matches found for "${p.join(", ")}"`);if(b.nonull===!0||b.nullglob===!0)return b.unescape?p.map(i=>i.replace(/\\/g,"")):p}return r};tr.match=tr;tr.matcher=(c,p)=>Jr(c,p);tr.isMatch=(c,p,b)=>Jr(p,b)(c);tr.any=tr.isMatch;tr.not=(c,p,b={})=>{p=[].concat(p).map(String);let A=new Set,v=[],e=t=>{b.onResult&&b.onResult(t),v.push(t.output)},l=new Set(tr(c,p,{...b,onResult:e}));for(let t of v)l.has(t)||A.add(t);return[...A]};tr.contains=(c,p,b)=>{if(typeof c!="string")throw new TypeError(`Expected a string: "${nc.inspect(c)}"`);if(Array.isArray(p))return p.some(A=>tr.contains(c,A,b));if(typeof p=="string"){if(rc(c)||rc(p))return!1;if(c.includes(p)||c.startsWith("./")&&c.slice(2).includes(p))return!0}return tr.isMatch(c,p,{...b,contains:!0})};tr.matchKeys=(c,p,b)=>{if(!ba.isObject(c))throw new TypeError("Expected the first argument to be an object");let A=tr(Object.keys(c),p,b),v={};for(let e of A)v[e]=c[e];return v};tr.some=(c,p,b)=>{let A=[].concat(c);for(let v of[].concat(p)){let e=Jr(String(v),b);if(A.some(l=>e(l)))return!0}return!1};tr.every=(c,p,b)=>{let A=[].concat(c);for(let v of[].concat(p)){let e=Jr(String(v),b);if(!A.every(l=>e(l)))return!1}return!0};tr.all=(c,p,b)=>{if(typeof c!="string")throw new TypeError(`Expected a string: "${nc.inspect(c)}"`);return[].concat(p).every(A=>Jr(A,b)(c))};tr.capture=(c,p,b)=>{let A=ba.isWindows(b),e=Jr.makeRe(String(c),{...b,capture:!0}).exec(A?ba.toPosixSlashes(p):p);if(e)return e.slice(1).map(l=>l===void 0?"":l)};tr.makeRe=(...c)=>Jr.makeRe(...c);tr.scan=(...c)=>Jr.scan(...c);tr.parse=(c,p)=>{let b=[];for(let A of[].concat(c||[]))for(let v of ic(String(A),p))b.push(Jr.parse(v,p));return b};tr.braces=(c,p)=>{if(typeof c!="string")throw new TypeError("Expected a string");return p&&p.nobrace===!0||!/\{.*\}/.test(c)?[c]:ic(c,p)};tr.braceExpand=(c,p)=>{if(typeof c!="string")throw new TypeError("Expected a string");return tr.braces(c,{...p,expand:!0})};sc.exports=tr});var hc=Re(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.matchAny=It.convertPatternsToRe=It.makeRe=It.getPatternParts=It.expandBraceExpansion=It.expandPatternsWithBraceExpansion=It.isAffectDepthOfReadingPattern=It.endsWithSlashGlobStar=It.hasGlobStar=It.getBaseDirectory=It.isPatternRelatedToParentDirectory=It.getPatternsOutsideCurrentDirectory=It.getPatternsInsideCurrentDirectory=It.getPositivePatterns=It.getNegativePatterns=It.isPositivePattern=It.isNegativePattern=It.convertToNegativePattern=It.convertToPositivePattern=It.isDynamicPattern=It.isStaticPattern=void 0;var zb=tt("path"),Jb=Ql(),ga=ac(),oc="**",qb="\\",Qb=/[*?]|^!/,Zb=/\[[^[]*]/,eg=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,tg=/[!*+?@]\([^(]*\)/,rg=/,|\.\./;function lc(c,p={}){return!uc(c,p)}It.isStaticPattern=lc;function uc(c,p={}){return c===""?!1:!!(p.caseSensitiveMatch===!1||c.includes(qb)||Qb.test(c)||Zb.test(c)||eg.test(c)||p.extglob!==!1&&tg.test(c)||p.braceExpansion!==!1&&ng(c))}It.isDynamicPattern=uc;function ng(c){let p=c.indexOf("{");if(p===-1)return!1;let b=c.indexOf("}",p+1);if(b===-1)return!1;let A=c.slice(p,b);return rg.test(A)}function ig(c){return Ji(c)?c.slice(1):c}It.convertToPositivePattern=ig;function sg(c){return"!"+c}It.convertToNegativePattern=sg;function Ji(c){return c.startsWith("!")&&c[1]!=="("}It.isNegativePattern=Ji;function cc(c){return!Ji(c)}It.isPositivePattern=cc;function ag(c){return c.filter(Ji)}It.getNegativePatterns=ag;function og(c){return c.filter(cc)}It.getPositivePatterns=og;function lg(c){return c.filter(p=>!Ea(p))}It.getPatternsInsideCurrentDirectory=lg;function ug(c){return c.filter(Ea)}It.getPatternsOutsideCurrentDirectory=ug;function Ea(c){return c.startsWith("..")||c.startsWith("./..")}It.isPatternRelatedToParentDirectory=Ea;function cg(c){return Jb(c,{flipBackslashes:!1})}It.getBaseDirectory=cg;function pg(c){return c.includes(oc)}It.hasGlobStar=pg;function pc(c){return c.endsWith("/"+oc)}It.endsWithSlashGlobStar=pc;function dg(c){let p=zb.basename(c);return pc(c)||lc(p)}It.isAffectDepthOfReadingPattern=dg;function fg(c){return c.reduce((p,b)=>p.concat(dc(b)),[])}It.expandPatternsWithBraceExpansion=fg;function dc(c){return ga.braces(c,{expand:!0,nodupes:!0})}It.expandBraceExpansion=dc;function hg(c,p){let{parts:b}=ga.scan(c,Object.assign(Object.assign({},p),{parts:!0}));return b.length===0&&(b=[c]),b[0].startsWith("/")&&(b[0]=b[0].slice(1),b.unshift("")),b}It.getPatternParts=hg;function fc(c,p){return ga.makeRe(c,p)}It.makeRe=fc;function mg(c,p){return c.map(b=>fc(b,p))}It.convertPatternsToRe=mg;function yg(c,p){return p.some(b=>b.test(c))}It.matchAny=yg});var gc=Re((MP,bc)=>{"use strict";var bg=tt("stream"),mc=bg.PassThrough,gg=Array.prototype.slice;bc.exports=Eg;function Eg(){let c=[],p=gg.call(arguments),b=!1,A=p[p.length-1];A&&!Array.isArray(A)&&A.pipe==null?p.pop():A={};let v=A.end!==!1,e=A.pipeError===!0;A.objectMode==null&&(A.objectMode=!0),A.highWaterMark==null&&(A.highWaterMark=64*1024);let l=mc(A);function t(){for(let i=0,u=arguments.length;i<u;i++)c.push(yc(arguments[i],A));return n(),this}function n(){if(b)return;b=!0;let i=c.shift();if(!i){process.nextTick(r);return}Array.isArray(i)||(i=[i]);let u=i.length+1;function a(){--u>0||(b=!1,n())}function d(y){function m(){y.removeListener("merge2UnpipeEnd",m),y.removeListener("end",m),e&&y.removeListener("error",S),a()}function S(E){l.emit("error",E)}if(y._readableState.endEmitted)return a();y.on("merge2UnpipeEnd",m),y.on("end",m),e&&y.on("error",S),y.pipe(l,{end:!1}),y.resume()}for(let y=0;y<i.length;y++)d(i[y]);a()}function r(){b=!1,l.emit("queueDrain"),v&&l.end()}return l.setMaxListeners(0),l.add=t,l.on("unpipe",function(i){i.emit("merge2UnpipeEnd")}),p.length&&t.apply(null,p),l}function yc(c,p){if(Array.isArray(c))for(let b=0,A=c.length;b<A;b++)c[b]=yc(c[b],p);else{if(!c._readableState&&c.pipe&&(c=c.pipe(mc(p))),!c._readableState||!c.pause||!c.pipe)throw new Error("Only readable stream can be merged.");c.pause()}return c}});var vc=Re(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.merge=void 0;var vg=gc();function Sg(c){let p=vg(c);return c.forEach(b=>{b.once("error",A=>p.emit("error",A))}),p.once("close",()=>Ec(c)),p.once("end",()=>Ec(c)),p}qi.merge=Sg;function Ec(c){c.forEach(p=>p.emit("close"))}});var Sc=Re(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.isEmpty=Jn.isString=void 0;function Tg(c){return typeof c=="string"}Jn.isString=Tg;function Pg(c){return c===""}Jn.isEmpty=Pg});var nn=Re(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.string=Er.stream=Er.pattern=Er.path=Er.fs=Er.errno=Er.array=void 0;var Ag=Vl();Er.array=Ag;var _g=Wl();Er.errno=_g;var Cg=Gl();Er.fs=Cg;var wg=Kl();Er.path=wg;var Dg=hc();Er.pattern=Dg;var xg=vc();Er.stream=xg;var Og=Sc();Er.string=Og});var Ac=Re(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.convertPatternGroupToTask=vr.convertPatternGroupsToTasks=vr.groupPatternsByBaseDirectory=vr.getNegativePatternsAsPositive=vr.getPositivePatterns=vr.convertPatternsToTasks=vr.generate=void 0;var sn=nn();function Ig(c,p){let b=Tc(c),A=Pc(c,p.ignore),v=b.filter(n=>sn.pattern.isStaticPattern(n,p)),e=b.filter(n=>sn.pattern.isDynamicPattern(n,p)),l=va(v,A,!1),t=va(e,A,!0);return l.concat(t)}vr.generate=Ig;function va(c,p,b){let A=[],v=sn.pattern.getPatternsOutsideCurrentDirectory(c),e=sn.pattern.getPatternsInsideCurrentDirectory(c),l=Sa(v),t=Sa(e);return A.push(...Ta(l,p,b)),"."in t?A.push(Pa(".",e,p,b)):A.push(...Ta(t,p,b)),A}vr.convertPatternsToTasks=va;function Tc(c){return sn.pattern.getPositivePatterns(c)}vr.getPositivePatterns=Tc;function Pc(c,p){return sn.pattern.getNegativePatterns(c).concat(p).map(sn.pattern.convertToPositivePattern)}vr.getNegativePatternsAsPositive=Pc;function Sa(c){let p={};return c.reduce((b,A)=>{let v=sn.pattern.getBaseDirectory(A);return v in b?b[v].push(A):b[v]=[A],b},p)}vr.groupPatternsByBaseDirectory=Sa;function Ta(c,p,b){return Object.keys(c).map(A=>Pa(A,c[A],p,b))}vr.convertPatternGroupsToTasks=Ta;function Pa(c,p,b,A){return{dynamic:A,positive:p,negative:b,base:c,patterns:[].concat(p,b.map(sn.pattern.convertToNegativePattern))}}vr.convertPatternGroupToTask=Pa});var Cc=Re(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.removeDuplicateSlashes=qn.transform=void 0;var Ng=/(?!^)\/{2,}/g;function jg(c){return c.map(p=>_c(p))}qn.transform=jg;function _c(c){return c.replace(Ng,"/")}qn.removeDuplicateSlashes=_c});var Dc=Re(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.read=void 0;function Fg(c,p,b){p.fs.lstat(c,(A,v)=>{if(A!==null){wc(b,A);return}if(!v.isSymbolicLink()||!p.followSymbolicLink){Aa(b,v);return}p.fs.stat(c,(e,l)=>{if(e!==null){if(p.throwErrorOnBrokenSymbolicLink){wc(b,e);return}Aa(b,v);return}p.markSymbolicLink&&(l.isSymbolicLink=()=>!0),Aa(b,l)})})}Qi.read=Fg;function wc(c,p){c(p)}function Aa(c,p){c(null,p)}});var xc=Re(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.read=void 0;function Rg(c,p){let b=p.fs.lstatSync(c);if(!b.isSymbolicLink()||!p.followSymbolicLink)return b;try{let A=p.fs.statSync(c);return p.markSymbolicLink&&(A.isSymbolicLink=()=>!0),A}catch(A){if(!p.throwErrorOnBrokenSymbolicLink)return b;throw A}}Zi.read=Rg});var Oc=Re(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.createFileSystemAdapter=un.FILE_SYSTEM_ADAPTER=void 0;var es=tt("fs");un.FILE_SYSTEM_ADAPTER={lstat:es.lstat,stat:es.stat,lstatSync:es.lstatSync,statSync:es.statSync};function kg(c){return c===void 0?un.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},un.FILE_SYSTEM_ADAPTER),c)}un.createFileSystemAdapter=kg});var Ic=Re(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var Lg=Oc(),_a=class{constructor(p={}){this._options=p,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Lg.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(p,b){return p??b}};Ca.default=_a});var wn=Re(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.statSync=cn.stat=cn.Settings=void 0;var Nc=Dc(),Mg=xc(),wa=Ic();cn.Settings=wa.default;function Bg(c,p,b){if(typeof p=="function"){Nc.read(c,Da(),p);return}Nc.read(c,Da(p),b)}cn.stat=Bg;function $g(c,p){let b=Da(p);return Mg.read(c,b)}cn.statSync=$g;function Da(c={}){return c instanceof wa.default?c:new wa.default(c)}});var Rc=Re((zP,Fc)=>{var jc;Fc.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):c=>(jc||(jc=Promise.resolve())).then(c).catch(p=>setTimeout(()=>{throw p},0))});var Lc=Re((JP,kc)=>{kc.exports=Vg;var Ug=Rc();function Vg(c,p){let b,A,v,e=!0;Array.isArray(c)?(b=[],A=c.length):(v=Object.keys(c),b={},A=v.length);function l(n){function r(){p&&p(n,b),p=null}e?Ug(r):r()}function t(n,r,i){b[n]=i,(--A===0||r)&&l(r)}A?v?v.forEach(function(n){c[n](function(r,i){t(n,r,i)})}):c.forEach(function(n,r){n(function(i,u){t(r,i,u)})}):l(null),e=!1}});var xa=Re(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var ts=process.versions.node.split(".");if(ts[0]===void 0||ts[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Mc=Number.parseInt(ts[0],10),Wg=Number.parseInt(ts[1],10),Bc=10,Gg=10,Kg=Mc>Bc,Hg=Mc===Bc&&Wg>=Gg;rs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Kg||Hg});var $c=Re(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.createDirentFromStats=void 0;var Oa=class{constructor(p,b){this.name=p,this.isBlockDevice=b.isBlockDevice.bind(b),this.isCharacterDevice=b.isCharacterDevice.bind(b),this.isDirectory=b.isDirectory.bind(b),this.isFIFO=b.isFIFO.bind(b),this.isFile=b.isFile.bind(b),this.isSocket=b.isSocket.bind(b),this.isSymbolicLink=b.isSymbolicLink.bind(b)}};function Yg(c,p){return new Oa(c,p)}ns.createDirentFromStats=Yg});var Ia=Re(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.fs=void 0;var Xg=$c();is.fs=Xg});var Na=Re(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.joinPathSegments=void 0;function zg(c,p,b){return c.endsWith(b)?c+p:c+b+p}ss.joinPathSegments=zg});var Hc=Re(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.readdir=pn.readdirWithFileTypes=pn.read=void 0;var Jg=wn(),Uc=Lc(),qg=xa(),Vc=Ia(),Wc=Na();function Qg(c,p,b){if(!p.stats&&qg.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Gc(c,p,b);return}Kc(c,p,b)}pn.read=Qg;function Gc(c,p,b){p.fs.readdir(c,{withFileTypes:!0},(A,v)=>{if(A!==null){as(b,A);return}let e=v.map(t=>({dirent:t,name:t.name,path:Wc.joinPathSegments(c,t.name,p.pathSegmentSeparator)}));if(!p.followSymbolicLinks){ja(b,e);return}let l=e.map(t=>Zg(t,p));Uc(l,(t,n)=>{if(t!==null){as(b,t);return}ja(b,n)})})}pn.readdirWithFileTypes=Gc;function Zg(c,p){return b=>{if(!c.dirent.isSymbolicLink()){b(null,c);return}p.fs.stat(c.path,(A,v)=>{if(A!==null){if(p.throwErrorOnBrokenSymbolicLink){b(A);return}b(null,c);return}c.dirent=Vc.fs.createDirentFromStats(c.name,v),b(null,c)})}}function Kc(c,p,b){p.fs.readdir(c,(A,v)=>{if(A!==null){as(b,A);return}let e=v.map(l=>{let t=Wc.joinPathSegments(c,l,p.pathSegmentSeparator);return n=>{Jg.stat(t,p.fsStatSettings,(r,i)=>{if(r!==null){n(r);return}let u={name:l,path:t,dirent:Vc.fs.createDirentFromStats(l,i)};p.stats&&(u.stats=i),n(null,u)})}});Uc(e,(l,t)=>{if(l!==null){as(b,l);return}ja(b,t)})})}pn.readdir=Kc;function as(c,p){c(p)}function ja(c,p){c(null,p)}});var qc=Re(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.readdir=dn.readdirWithFileTypes=dn.read=void 0;var e0=wn(),t0=xa(),Yc=Ia(),Xc=Na();function r0(c,p){return!p.stats&&t0.IS_SUPPORT_READDIR_WITH_FILE_TYPES?zc(c,p):Jc(c,p)}dn.read=r0;function zc(c,p){return p.fs.readdirSync(c,{withFileTypes:!0}).map(A=>{let v={dirent:A,name:A.name,path:Xc.joinPathSegments(c,A.name,p.pathSegmentSeparator)};if(v.dirent.isSymbolicLink()&&p.followSymbolicLinks)try{let e=p.fs.statSync(v.path);v.dirent=Yc.fs.createDirentFromStats(v.name,e)}catch(e){if(p.throwErrorOnBrokenSymbolicLink)throw e}return v})}dn.readdirWithFileTypes=zc;function Jc(c,p){return p.fs.readdirSync(c).map(A=>{let v=Xc.joinPathSegments(c,A,p.pathSegmentSeparator),e=e0.statSync(v,p.fsStatSettings),l={name:A,path:v,dirent:Yc.fs.createDirentFromStats(A,e)};return p.stats&&(l.stats=e),l})}dn.readdir=Jc});var Qc=Re(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.createFileSystemAdapter=fn.FILE_SYSTEM_ADAPTER=void 0;var Qn=tt("fs");fn.FILE_SYSTEM_ADAPTER={lstat:Qn.lstat,stat:Qn.stat,lstatSync:Qn.lstatSync,statSync:Qn.statSync,readdir:Qn.readdir,readdirSync:Qn.readdirSync};function n0(c){return c===void 0?fn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},fn.FILE_SYSTEM_ADAPTER),c)}fn.createFileSystemAdapter=n0});var Zc=Re(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var i0=tt("path"),s0=wn(),a0=Qc(),Fa=class{constructor(p={}){this._options=p,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=a0.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,i0.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new s0.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(p,b){return p??b}};Ra.default=Fa});var os=Re(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.Settings=hn.scandirSync=hn.scandir=void 0;var ep=Hc(),o0=qc(),ka=Zc();hn.Settings=ka.default;function l0(c,p,b){if(typeof p=="function"){ep.read(c,La(),p);return}ep.read(c,La(p),b)}hn.scandir=l0;function u0(c,p){let b=La(p);return o0.read(c,b)}hn.scandirSync=u0;function La(c={}){return c instanceof ka.default?c:new ka.default(c)}});var rp=Re((aA,tp)=>{"use strict";function c0(c){var p=new c,b=p;function A(){var e=p;return e.next?p=e.next:(p=new c,b=p),e.next=null,e}function v(e){b.next=e,b=e}return{get:A,release:v}}tp.exports=c0});var ip=Re((oA,Ma)=>{"use strict";var p0=rp();function np(c,p,b){if(typeof c=="function"&&(b=p,p=c,c=null),b<1)throw new Error("fastqueue concurrency must be greater than 1");var A=p0(d0),v=null,e=null,l=0,t=null,n={push:m,drain:$r,saturated:$r,pause:i,paused:!1,concurrency:b,running:r,resume:d,idle:y,length:u,getQueue:a,unshift:S,empty:$r,kill:h,killAndDrain:f,error:w};return n;function r(){return l}function i(){n.paused=!0}function u(){for(var _=v,I=0;_;)_=_.next,I++;return I}function a(){for(var _=v,I=[];_;)I.push(_.value),_=_.next;return I}function d(){if(!!n.paused){n.paused=!1;for(var _=0;_<n.concurrency;_++)l++,E()}}function y(){return l===0&&n.length()===0}function m(_,I){var P=A.get();P.context=c,P.release=E,P.value=_,P.callback=I||$r,P.errorHandler=t,l===n.concurrency||n.paused?e?(e.next=P,e=P):(v=P,e=P,n.saturated()):(l++,p.call(c,P.value,P.worked))}function S(_,I){var P=A.get();P.context=c,P.release=E,P.value=_,P.callback=I||$r,l===n.concurrency||n.paused?v?(P.next=v,v=P):(v=P,e=P,n.saturated()):(l++,p.call(c,P.value,P.worked))}function E(_){_&&A.release(_);var I=v;I?n.paused?l--:(e===v&&(e=null),v=I.next,I.next=null,p.call(c,I.value,I.worked),e===null&&n.empty()):--l===0&&n.drain()}function h(){v=null,e=null,n.drain=$r}function f(){v=null,e=null,n.drain(),n.drain=$r}function w(_){t=_}}function $r(){}function d0(){this.value=null,this.callback=$r,this.next=null,this.release=$r,this.context=null,this.errorHandler=null;var c=this;this.worked=function(b,A){var v=c.callback,e=c.errorHandler,l=c.value;c.value=null,c.callback=$r,c.errorHandler&&e(b,l),v.call(c.context,b,A),c.release(c)}}function f0(c,p,b){typeof c=="function"&&(b=p,p=c,c=null);function A(i,u){p.call(this,i).then(function(a){u(null,a)},u)}var v=np(c,A,b),e=v.push,l=v.unshift;return v.push=t,v.unshift=n,v.drained=r,v;function t(i){var u=new Promise(function(a,d){e(i,function(y,m){if(y){d(y);return}a(m)})});return u.catch($r),u}function n(i){var u=new Promise(function(a,d){l(i,function(y,m){if(y){d(y);return}a(m)})});return u.catch($r),u}function r(){var i=v.drain,u=new Promise(function(a){v.drain=function(){i(),a()}});return u}}Ma.exports=np;Ma.exports.promise=f0});var ls=Re(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.joinPathSegments=qr.replacePathSegmentSeparator=qr.isAppliedFilter=qr.isFatalError=void 0;function h0(c,p){return c.errorFilter===null?!0:!c.errorFilter(p)}qr.isFatalError=h0;function m0(c,p){return c===null||c(p)}qr.isAppliedFilter=m0;function y0(c,p){return c.split(/[/\\]/).join(p)}qr.replacePathSegmentSeparator=y0;function b0(c,p,b){return c===""?p:c.endsWith(b)?c+p:c+b+p}qr.joinPathSegments=b0});var Ua=Re($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var g0=ls(),Ba=class{constructor(p,b){this._root=p,this._settings=b,this._root=g0.replacePathSegmentSeparator(p,b.pathSegmentSeparator)}};$a.default=Ba});var Ga=Re(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});var E0=tt("events"),v0=os(),S0=ip(),us=ls(),T0=Ua(),Va=class extends T0.default{constructor(p,b){super(p,b),this._settings=b,this._scandir=v0.scandir,this._emitter=new E0.EventEmitter,this._queue=S0(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(p){this._emitter.on("entry",p)}onError(p){this._emitter.once("error",p)}onEnd(p){this._emitter.once("end",p)}_pushToQueue(p,b){let A={directory:p,base:b};this._queue.push(A,v=>{v!==null&&this._handleError(v)})}_worker(p,b){this._scandir(p.directory,this._settings.fsScandirSettings,(A,v)=>{if(A!==null){b(A,void 0);return}for(let e of v)this._handleEntry(e,p.base);b(null,void 0)})}_handleError(p){this._isDestroyed||!us.isFatalError(this._settings,p)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",p))}_handleEntry(p,b){if(this._isDestroyed||this._isFatalError)return;let A=p.path;b!==void 0&&(p.path=us.joinPathSegments(b,p.name,this._settings.pathSegmentSeparator)),us.isAppliedFilter(this._settings.entryFilter,p)&&this._emitEntry(p),p.dirent.isDirectory()&&us.isAppliedFilter(this._settings.deepFilter,p)&&this._pushToQueue(A,b===void 0?void 0:p.path)}_emitEntry(p){this._emitter.emit("entry",p)}};Wa.default=Va});var sp=Re(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var P0=Ga(),Ka=class{constructor(p,b){this._root=p,this._settings=b,this._reader=new P0.default(this._root,this._settings),this._storage=[]}read(p){this._reader.onError(b=>{A0(p,b)}),this._reader.onEntry(b=>{this._storage.push(b)}),this._reader.onEnd(()=>{_0(p,this._storage)}),this._reader.read()}};Ha.default=Ka;function A0(c,p){c(p)}function _0(c,p){c(null,p)}});var ap=Re(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});var C0=tt("stream"),w0=Ga(),Ya=class{constructor(p,b){this._root=p,this._settings=b,this._reader=new w0.default(this._root,this._settings),this._stream=new C0.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(p=>{this._stream.emit("error",p)}),this._reader.onEntry(p=>{this._stream.push(p)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Xa.default=Ya});var op=Re(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});var D0=os(),cs=ls(),x0=Ua(),za=class extends x0.default{constructor(){super(...arguments),this._scandir=D0.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(p,b){this._queue.add({directory:p,base:b})}_handleQueue(){for(let p of this._queue.values())this._handleDirectory(p.directory,p.base)}_handleDirectory(p,b){try{let A=this._scandir(p,this._settings.fsScandirSettings);for(let v of A)this._handleEntry(v,b)}catch(A){this._handleError(A)}}_handleError(p){if(!!cs.isFatalError(this._settings,p))throw p}_handleEntry(p,b){let A=p.path;b!==void 0&&(p.path=cs.joinPathSegments(b,p.name,this._settings.pathSegmentSeparator)),cs.isAppliedFilter(this._settings.entryFilter,p)&&this._pushToStorage(p),p.dirent.isDirectory()&&cs.isAppliedFilter(this._settings.deepFilter,p)&&this._pushToQueue(A,b===void 0?void 0:p.path)}_pushToStorage(p){this._storage.push(p)}};Ja.default=za});var lp=Re(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var O0=op(),qa=class{constructor(p,b){this._root=p,this._settings=b,this._reader=new O0.default(this._root,this._settings)}read(){return this._reader.read()}};Qa.default=qa});var up=Re(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});var I0=tt("path"),N0=os(),Za=class{constructor(p={}){this._options=p,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,I0.sep),this.fsScandirSettings=new N0.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(p,b){return p??b}};eo.default=Za});var ro=Re(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.Settings=Qr.walkStream=Qr.walkSync=Qr.walk=void 0;var cp=sp(),j0=ap(),F0=lp(),to=up();Qr.Settings=to.default;function R0(c,p,b){if(typeof p=="function"){new cp.default(c,ps()).read(p);return}new cp.default(c,ps(p)).read(b)}Qr.walk=R0;function k0(c,p){let b=ps(p);return new F0.default(c,b).read()}Qr.walkSync=k0;function L0(c,p){let b=ps(p);return new j0.default(c,b).read()}Qr.walkStream=L0;function ps(c={}){return c instanceof to.default?c:new to.default(c)}});var so=Re(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});var M0=tt("path"),B0=wn(),pp=nn(),no=class{constructor(p){this._settings=p,this._fsStatSettings=new B0.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(p){return M0.resolve(this._settings.cwd,p)}_makeEntry(p,b){let A={name:b,path:b,dirent:pp.fs.createDirentFromStats(b,p)};return this._settings.stats&&(A.stats=p),A}_isFatalError(p){return!pp.errno.isEnoentCodeError(p)&&!this._settings.suppressErrors}};io.default=no});var lo=Re(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});var $0=tt("stream"),U0=wn(),V0=ro(),W0=so(),ao=class extends W0.default{constructor(){super(...arguments),this._walkStream=V0.walkStream,this._stat=U0.stat}dynamic(p,b){return this._walkStream(p,b)}static(p,b){let A=p.map(this._getFullEntryPath,this),v=new $0.PassThrough({objectMode:!0});v._write=(e,l,t)=>this._getEntry(A[e],p[e],b).then(n=>{n!==null&&b.entryFilter(n)&&v.push(n),e===A.length-1&&v.end(),t()}).catch(t);for(let e=0;e<A.length;e++)v.write(e);return v}_getEntry(p,b,A){return this._getStat(p).then(v=>this._makeEntry(v,b)).catch(v=>{if(A.errorFilter(v))return null;throw v})}_getStat(p){return new Promise((b,A)=>{this._stat(p,this._fsStatSettings,(v,e)=>v===null?b(e):A(v))})}};oo.default=ao});var dp=Re(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});var Zn=nn(),uo=class{constructor(p,b,A){this._patterns=p,this._settings=b,this._micromatchOptions=A,this._storage=[],this._fillStorage()}_fillStorage(){let p=Zn.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let b of p){let A=this._getPatternSegments(b),v=this._splitSegmentsIntoSections(A);this._storage.push({complete:v.length<=1,pattern:b,segments:A,sections:v})}}_getPatternSegments(p){return Zn.pattern.getPatternParts(p,this._micromatchOptions).map(A=>Zn.pattern.isDynamicPattern(A,this._settings)?{dynamic:!0,pattern:A,patternRe:Zn.pattern.makeRe(A,this._micromatchOptions)}:{dynamic:!1,pattern:A})}_splitSegmentsIntoSections(p){return Zn.array.splitWhen(p,b=>b.dynamic&&Zn.pattern.hasGlobStar(b.pattern))}};co.default=uo});var fp=Re(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});var G0=dp(),po=class extends G0.default{match(p){let b=p.split("/"),A=b.length,v=this._storage.filter(e=>!e.complete||e.segments.length>A);for(let e of v){let l=e.sections[0];if(!e.complete&&A>l.length||b.every((n,r)=>{let i=e.segments[r];return!!(i.dynamic&&i.patternRe.test(n)||!i.dynamic&&i.pattern===n)}))return!0}return!1}};fo.default=po});var hp=Re(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});var ds=nn(),K0=fp(),ho=class{constructor(p,b){this._settings=p,this._micromatchOptions=b}getFilter(p,b,A){let v=this._getMatcher(b),e=this._getNegativePatternsRe(A);return l=>this._filter(p,l,v,e)}_getMatcher(p){return new K0.default(p,this._settings,this._micromatchOptions)}_getNegativePatternsRe(p){let b=p.filter(ds.pattern.isAffectDepthOfReadingPattern);return ds.pattern.convertPatternsToRe(b,this._micromatchOptions)}_filter(p,b,A,v){if(this._isSkippedByDeep(p,b.path)||this._isSkippedSymbolicLink(b))return!1;let e=ds.path.removeLeadingDotSegment(b.path);return this._isSkippedByPositivePatterns(e,A)?!1:this._isSkippedByNegativePatterns(e,v)}_isSkippedByDeep(p,b){return this._settings.deep===1/0?!1:this._getEntryLevel(p,b)>=this._settings.deep}_getEntryLevel(p,b){let A=b.split("/").length;if(p==="")return A;let v=p.split("/").length;return A-v}_isSkippedSymbolicLink(p){return!this._settings.followSymbolicLinks&&p.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(p,b){return!this._settings.baseNameMatch&&!b.match(p)}_isSkippedByNegativePatterns(p,b){return!ds.pattern.matchAny(p,b)}};mo.default=ho});var mp=Re(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});var Dn=nn(),yo=class{constructor(p,b){this._settings=p,this._micromatchOptions=b,this.index=new Map}getFilter(p,b){let A=Dn.pattern.convertPatternsToRe(p,this._micromatchOptions),v=Dn.pattern.convertPatternsToRe(b,this._micromatchOptions);return e=>this._filter(e,A,v)}_filter(p,b,A){if(this._settings.unique&&this._isDuplicateEntry(p)||this._onlyFileFilter(p)||this._onlyDirectoryFilter(p)||this._isSkippedByAbsoluteNegativePatterns(p.path,A))return!1;let v=this._settings.baseNameMatch?p.name:p.path,e=this._isMatchToPatterns(v,b)&&!this._isMatchToPatterns(p.path,A);return this._settings.unique&&e&&this._createIndexRecord(p),e}_isDuplicateEntry(p){return this.index.has(p.path)}_createIndexRecord(p){this.index.set(p.path,void 0)}_onlyFileFilter(p){return this._settings.onlyFiles&&!p.dirent.isFile()}_onlyDirectoryFilter(p){return this._settings.onlyDirectories&&!p.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(p,b){if(!this._settings.absolute)return!1;let A=Dn.path.makeAbsolute(this._settings.cwd,p);return Dn.pattern.matchAny(A,b)}_isMatchToPatterns(p,b){let A=Dn.path.removeLeadingDotSegment(p);return Dn.pattern.matchAny(A,b)||Dn.pattern.matchAny(A+"/",b)}};bo.default=yo});var yp=Re(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});var H0=nn(),go=class{constructor(p){this._settings=p}getFilter(){return p=>this._isNonFatalError(p)}_isNonFatalError(p){return H0.errno.isEnoentCodeError(p)||this._settings.suppressErrors}};Eo.default=go});var gp=Re(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});var bp=nn(),vo=class{constructor(p){this._settings=p}getTransformer(){return p=>this._transform(p)}_transform(p){let b=p.path;return this._settings.absolute&&(b=bp.path.makeAbsolute(this._settings.cwd,b),b=bp.path.unixify(b)),this._settings.markDirectories&&p.dirent.isDirectory()&&(b+="/"),this._settings.objectMode?Object.assign(Object.assign({},p),{path:b}):b}};So.default=vo});var fs=Re(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});var Y0=tt("path"),X0=hp(),z0=mp(),J0=yp(),q0=gp(),To=class{constructor(p){this._settings=p,this.errorFilter=new J0.default(this._settings),this.entryFilter=new z0.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new X0.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new q0.default(this._settings)}_getRootDirectory(p){return Y0.resolve(this._settings.cwd,p.base)}_getReaderOptions(p){let b=p.base==="."?"":p.base;return{basePath:b,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(b,p.positive,p.negative),entryFilter:this.entryFilter.getFilter(p.positive,p.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Po.default=To});var Ep=Re(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});var Q0=lo(),Z0=fs(),Ao=class extends Z0.default{constructor(){super(...arguments),this._reader=new Q0.default(this._settings)}read(p){let b=this._getRootDirectory(p),A=this._getReaderOptions(p),v=[];return new Promise((e,l)=>{let t=this.api(b,p,A);t.once("error",l),t.on("data",n=>v.push(A.transform(n))),t.once("end",()=>e(v))})}api(p,b,A){return b.dynamic?this._reader.dynamic(p,A):this._reader.static(b.patterns,A)}};_o.default=Ao});var vp=Re(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});var eE=tt("stream"),tE=lo(),rE=fs(),Co=class extends rE.default{constructor(){super(...arguments),this._reader=new tE.default(this._settings)}read(p){let b=this._getRootDirectory(p),A=this._getReaderOptions(p),v=this.api(b,p,A),e=new eE.Readable({objectMode:!0,read:()=>{}});return v.once("error",l=>e.emit("error",l)).on("data",l=>e.emit("data",A.transform(l))).once("end",()=>e.emit("end")),e.once("close",()=>v.destroy()),e}api(p,b,A){return b.dynamic?this._reader.dynamic(p,A):this._reader.static(b.patterns,A)}};wo.default=Co});var Sp=Re(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});var nE=wn(),iE=ro(),sE=so(),Do=class extends sE.default{constructor(){super(...arguments),this._walkSync=iE.walkSync,this._statSync=nE.statSync}dynamic(p,b){return this._walkSync(p,b)}static(p,b){let A=[];for(let v of p){let e=this._getFullEntryPath(v),l=this._getEntry(e,v,b);l===null||!b.entryFilter(l)||A.push(l)}return A}_getEntry(p,b,A){try{let v=this._getStat(p);return this._makeEntry(v,b)}catch(v){if(A.errorFilter(v))return null;throw v}}_getStat(p){return this._statSync(p,this._fsStatSettings)}};xo.default=Do});var Tp=Re(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});var aE=Sp(),oE=fs(),Oo=class extends oE.default{constructor(){super(...arguments),this._reader=new aE.default(this._settings)}read(p){let b=this._getRootDirectory(p),A=this._getReaderOptions(p);return this.api(b,p,A).map(A.transform)}api(p,b,A){return b.dynamic?this._reader.dynamic(p,A):this._reader.static(b.patterns,A)}};Io.default=Oo});var Pp=Re(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var ei=tt("fs"),lE=tt("os"),uE=Math.max(lE.cpus().length,1);ti.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:ei.lstat,lstatSync:ei.lstatSync,stat:ei.stat,statSync:ei.statSync,readdir:ei.readdir,readdirSync:ei.readdirSync};var No=class{constructor(p={}){this._options=p,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,uE),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(p,b){return p===void 0?b:p}_getFileSystemMethods(p={}){return Object.assign(Object.assign({},ti.DEFAULT_FILE_SYSTEM_ADAPTER),p)}};ti.default=No});var wp=Re((IA,Cp)=>{"use strict";var Ap=Ac(),_p=Cc(),cE=Ep(),pE=vp(),dE=Tp(),jo=Pp(),xn=nn();async function Fo(c,p){ri(c);let b=Ro(c,cE.default,p),A=await Promise.all(b);return xn.array.flatten(A)}(function(c){function p(l,t){ri(l);let n=Ro(l,dE.default,t);return xn.array.flatten(n)}c.sync=p;function b(l,t){ri(l);let n=Ro(l,pE.default,t);return xn.stream.merge(n)}c.stream=b;function A(l,t){ri(l);let n=_p.transform([].concat(l)),r=new jo.default(t);return Ap.generate(n,r)}c.generateTasks=A;function v(l,t){ri(l);let n=new jo.default(t);return xn.pattern.isDynamicPattern(l,n)}c.isDynamicPattern=v;function e(l){return ri(l),xn.path.escape(l)}c.escapePath=e})(Fo||(Fo={}));function Ro(c,p,b){let A=_p.transform([].concat(c)),v=new jo.default(b),e=Ap.generate(A,v),l=new p(v);return e.map(l.read,l)}function ri(c){if(![].concat(c).every(A=>xn.string.isString(A)&&!xn.string.isEmpty(A)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Cp.exports=Fo});var ko=Re((NA,Dp)=>{"use strict";var fE=tt("os");Dp.exports=fE.homedir||function(){var p=process.env.HOME,b=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||p||null:process.platform==="darwin"?p||(b?"/Users/"+b:null):process.platform==="linux"?p||(process.getuid()===0?"/root":b?"/home/"+b:null):p||null}});var Lo=Re((jA,xp)=>{xp.exports=function(){var c=Error.prepareStackTrace;Error.prepareStackTrace=function(b,A){return A};var p=new Error().stack;return Error.prepareStackTrace=c,p[2].getFileName()}});var Op=Re((FA,bi)=>{"use strict";var hE=process.platform==="win32",mE=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,Mo={};function yE(c){return mE.exec(c).slice(1)}Mo.parse=function(c){if(typeof c!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof c);var p=yE(c);if(!p||p.length!==5)throw new TypeError("Invalid path '"+c+"'");return{root:p[1],dir:p[0]===p[1]?p[0]:p[0].slice(0,-1),base:p[2],ext:p[4],name:p[3]}};var bE=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,Bo={};function gE(c){return bE.exec(c).slice(1)}Bo.parse=function(c){if(typeof c!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof c);var p=gE(c);if(!p||p.length!==5)throw new TypeError("Invalid path '"+c+"'");return{root:p[1],dir:p[0].slice(0,-1),base:p[2],ext:p[4],name:p[3]}};hE?bi.exports=Mo.parse:bi.exports=Bo.parse;bi.exports.posix=Bo.parse;bi.exports.win32=Mo.parse});var $o=Re((RA,Fp)=>{var jp=tt("path"),Ip=jp.parse||Op(),Np=function(p,b){var A="/";/^([A-Za-z]:)/.test(p)?A="":/^\\\\/.test(p)&&(A="\\\\");for(var v=[p],e=Ip(p);e.dir!==v[v.length-1];)v.push(e.dir),e=Ip(e.dir);return v.reduce(function(l,t){return l.concat(b.map(function(n){return jp.resolve(A,t,n)}))},[])};Fp.exports=function(p,b,A){var v=b&&b.moduleDirectory?[].concat(b.moduleDirectory):["node_modules"];if(b&&typeof b.paths=="function")return b.paths(A,p,function(){return Np(p,v)},b);var e=Np(p,v);return b&&b.paths?e.concat(b.paths):e}});var Uo=Re((kA,Rp)=>{Rp.exports=function(c,p){return p||{}}});var Lp=Re((LA,kp)=>{"use strict";var EE="Function.prototype.bind called on incompatible ",Vo=Array.prototype.slice,vE=Object.prototype.toString,SE="[object Function]";kp.exports=function(p){var b=this;if(typeof b!="function"||vE.call(b)!==SE)throw new TypeError(EE+b);for(var A=Vo.call(arguments,1),v,e=function(){if(this instanceof v){var i=b.apply(this,A.concat(Vo.call(arguments)));return Object(i)===i?i:this}else return b.apply(p,A.concat(Vo.call(arguments)))},l=Math.max(0,b.length-A.length),t=[],n=0;n<l;n++)t.push("$"+n);if(v=Function("binder","return function ("+t.join(",")+"){ return binder.apply(this,arguments); }")(e),b.prototype){var r=function(){};r.prototype=b.prototype,v.prototype=new r,r.prototype=null}return v}});var Bp=Re((MA,Mp)=>{"use strict";var TE=Lp();Mp.exports=Function.prototype.bind||TE});var Up=Re((BA,$p)=>{"use strict";var PE=Bp();$p.exports=PE.call(Function.call,Object.prototype.hasOwnProperty)});var Vp=Re(($A,AE)=>{AE.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"node:test":">= 18",timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:">= 13.4 && < 13.5",worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var hs=Re((UA,Kp)=>{"use strict";var _E=Up();function CE(c,p){for(var b=c.split("."),A=p.split(" "),v=A.length>1?A[0]:"=",e=(A.length>1?A[1]:A[0]).split("."),l=0;l<3;++l){var t=parseInt(b[l]||0,10),n=parseInt(e[l]||0,10);if(t!==n)return v==="<"?t<n:v===">="?t>=n:!1}return v===">="}function Wp(c,p){var b=p.split(/ ?&& ?/);if(b.length===0)return!1;for(var A=0;A<b.length;++A)if(!CE(c,b[A]))return!1;return!0}function wE(c,p){if(typeof p=="boolean")return p;var b=typeof c>"u"?process.versions&&process.versions.node:c;if(typeof b!="string")throw new TypeError(typeof c>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(p&&typeof p=="object"){for(var A=0;A<p.length;++A)if(Wp(b,p[A]))return!0;return!1}return Wp(b,p)}var Gp=Vp();Kp.exports=function(p,b){return _E(Gp,p)&&wE(b,Gp[p])}});var Xp=Re((VA,Yp)=>{var On=tt("fs"),DE=ko(),or=tt("path"),xE=Lo(),OE=$o(),IE=Uo(),NE=hs(),jE=process.platform!=="win32"&&On.realpath&&typeof On.realpath.native=="function"?On.realpath.native:On.realpath,Hp=DE(),FE=function(){return[or.join(Hp,".node_modules"),or.join(Hp,".node_libraries")]},RE=function(p,b){On.stat(p,function(A,v){return A?A.code==="ENOENT"||A.code==="ENOTDIR"?b(null,!1):b(A):b(null,v.isFile()||v.isFIFO())})},kE=function(p,b){On.stat(p,function(A,v){return A?A.code==="ENOENT"||A.code==="ENOTDIR"?b(null,!1):b(A):b(null,v.isDirectory())})},LE=function(p,b){jE(p,function(A,v){A&&A.code!=="ENOENT"?b(A):b(null,A?p:v)})},gi=function(p,b,A,v){A&&A.preserveSymlinks===!1?p(b,v):v(null,b)},ME=function(p,b,A){p(b,function(v,e){if(v)A(v);else try{var l=JSON.parse(e);A(null,l)}catch{A(null)}})},BE=function(p,b,A){for(var v=OE(b,A,p),e=0;e<v.length;e++)v[e]=or.join(v[e],p);return v};Yp.exports=function(p,b,A){var v=A,e=b;if(typeof b=="function"&&(v=e,e={}),typeof p!="string"){var l=new TypeError("Path must be a string.");return process.nextTick(function(){v(l)})}e=IE(p,e);var t=e.isFile||RE,n=e.isDirectory||kE,r=e.readFile||On.readFile,i=e.realpath||LE,u=e.readPackage||ME;if(e.readFile&&e.readPackage){var a=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){v(a)})}var d=e.packageIterator,y=e.extensions||[".js"],m=e.includeCoreModules!==!1,S=e.basedir||or.dirname(xE()),E=e.filename||S;e.paths=e.paths||FE();var h=or.resolve(S);gi(i,h,e,function(T,N){T?v(T):w(N)});var f;function w(T){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(p))f=or.resolve(T,p),(p==="."||p===".."||p.slice(-1)==="/")&&(f+="/"),/\/$/.test(p)&&f===T?R(f,e.package,_):I(f,e.package,_);else{if(m&&NE(p))return v(null,p);j(p,T,function(N,$,G){if(N)v(N);else{if($)return gi(i,$,e,function(U,M){U?v(U):v(null,M,G)});var k=new Error("Cannot find module '"+p+"' from '"+E+"'");k.code="MODULE_NOT_FOUND",v(k)}})}}function _(T,N,$){T?v(T):N?v(null,N,$):R(f,function(G,k,U){if(G)v(G);else if(k)gi(i,k,e,function(O,x){O?v(O):v(null,x,U)});else{var M=new Error("Cannot find module '"+p+"' from '"+E+"'");M.code="MODULE_NOT_FOUND",v(M)}})}function I(T,N,$){var G=N,k=$;typeof G=="function"&&(k=G,G=void 0);var U=[""].concat(y);M(U,T,G);function M(O,x,F){if(O.length===0)return k(null,void 0,F);var L=x+O[0],V=F;V?K(null,V):P(or.dirname(L),K);function K(X,J,ie){if(V=J,X)return k(X);if(ie&&V&&e.pathFilter){var he=or.relative(ie,L),pe=he.slice(0,he.length-O[0].length),Ee=e.pathFilter(V,x,pe);if(Ee)return M([""].concat(y.slice()),or.resolve(ie,Ee),V)}t(L,z)}function z(X,J){if(X)return k(X);if(J)return k(null,L,V);M(O.slice(1),x,V)}}}function P(T,N){if(T===""||T==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(T)||/[/\\]node_modules[/\\]*$/.test(T))return N(null);gi(i,T,e,function($,G){if($)return P(or.dirname(T),N);var k=or.join(G,"package.json");t(k,function(U,M){if(!M)return P(or.dirname(T),N);u(r,k,function(O,x){O&&N(O);var F=x;F&&e.packageFilter&&(F=e.packageFilter(F,k)),N(null,F,T)})})})}function R(T,N,$){var G=$,k=N;typeof k=="function"&&(G=k,k=e.package),gi(i,T,e,function(U,M){if(U)return G(U);var O=or.join(M,"package.json");t(O,function(x,F){if(x)return G(x);if(!F)return I(or.join(T,"index"),k,G);u(r,O,function(L,V){if(L)return G(L);var K=V;if(K&&e.packageFilter&&(K=e.packageFilter(K,O)),K&&K.main){if(typeof K.main!="string"){var z=new TypeError("package \u201C"+K.name+"\u201D `main` must be a string");return z.code="INVALID_PACKAGE_MAIN",G(z)}(K.main==="."||K.main==="./")&&(K.main="index"),I(or.resolve(T,K.main),K,function(X,J,ie){if(X)return G(X);if(J)return G(null,J,ie);if(!ie)return I(or.join(T,"index"),ie,G);var he=or.resolve(T,ie.main);R(he,ie,function(pe,Ee,ye){if(pe)return G(pe);if(Ee)return G(null,Ee,ye);I(or.join(T,"index"),ye,G)})});return}I(or.join(T,"/index"),K,G)})})})}function C(T,N){if(N.length===0)return T(null,void 0);var $=N[0];n(or.dirname($),G);function G(M,O){if(M)return T(M);if(!O)return C(T,N.slice(1));I($,e.package,k)}function k(M,O,x){if(M)return T(M);if(O)return T(null,O,x);R($,e.package,U)}function U(M,O,x){if(M)return T(M);if(O)return T(null,O,x);C(T,N.slice(1))}}function j(T,N,$){var G=function(){return BE(T,N,e)};C($,d?d(T,N,G,e):G())}}});var zp=Re((WA,$E)=>{$E.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"node:test":">= 18",timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:">= 13.4 && < 13.5",worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Zp=Re((GA,Qp)=>{var UE=process.versions&&process.versions.node&&process.versions.node.split(".")||[];function VE(c){for(var p=c.split(" "),b=p.length>1?p[0]:"=",A=(p.length>1?p[1]:p[0]).split("."),v=0;v<3;++v){var e=parseInt(UE[v]||0,10),l=parseInt(A[v]||0,10);if(e!==l)return b==="<"?e<l:b===">="?e>=l:!1}return b===">="}function Jp(c){var p=c.split(/ ?&& ?/);if(p.length===0)return!1;for(var b=0;b<p.length;++b)if(!VE(p[b]))return!1;return!0}function WE(c){if(typeof c=="boolean")return c;if(c&&typeof c=="object"){for(var p=0;p<c.length;++p)if(Jp(c[p]))return!0;return!1}return Jp(c)}var Wo=zp(),qp={};for(ms in Wo)Object.prototype.hasOwnProperty.call(Wo,ms)&&(qp[ms]=WE(Wo[ms]));var ms;Qp.exports=qp});var td=Re((KA,ed)=>{var GE=hs();ed.exports=function(p){return GE(p)}});var id=Re((HA,nd)=>{var KE=hs(),In=tt("fs"),Sr=tt("path"),HE=ko(),YE=Lo(),XE=$o(),zE=Uo(),JE=process.platform!=="win32"&&In.realpathSync&&typeof In.realpathSync.native=="function"?In.realpathSync.native:In.realpathSync,rd=HE(),qE=function(){return[Sr.join(rd,".node_modules"),Sr.join(rd,".node_libraries")]},QE=function(p){try{var b=In.statSync(p,{throwIfNoEntry:!1})}catch(A){if(A&&(A.code==="ENOENT"||A.code==="ENOTDIR"))return!1;throw A}return!!b&&(b.isFile()||b.isFIFO())},ZE=function(p){try{var b=In.statSync(p,{throwIfNoEntry:!1})}catch(A){if(A&&(A.code==="ENOENT"||A.code==="ENOTDIR"))return!1;throw A}return!!b&&b.isDirectory()},ev=function(p){try{return JE(p)}catch(b){if(b.code!=="ENOENT")throw b}return p},Ei=function(p,b,A){return A&&A.preserveSymlinks===!1?p(b):b},tv=function(p,b){var A=p(b);try{var v=JSON.parse(A);return v}catch{}},rv=function(p,b,A){for(var v=XE(b,A,p),e=0;e<v.length;e++)v[e]=Sr.join(v[e],p);return v};nd.exports=function(p,b){if(typeof p!="string")throw new TypeError("Path must be a string.");var A=zE(p,b),v=A.isFile||QE,e=A.readFileSync||In.readFileSync,l=A.isDirectory||ZE,t=A.realpathSync||ev,n=A.readPackageSync||tv;if(A.readFileSync&&A.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var r=A.packageIterator,i=A.extensions||[".js"],u=A.includeCoreModules!==!1,a=A.basedir||Sr.dirname(YE()),d=A.filename||a;A.paths=A.paths||qE();var y=Ei(t,Sr.resolve(a),A);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(p)){var m=Sr.resolve(y,p);(p==="."||p===".."||p.slice(-1)==="/")&&(m+="/");var S=f(m)||_(m);if(S)return Ei(t,S,A)}else{if(u&&KE(p))return p;var E=I(p,y);if(E)return Ei(t,E,A)}var h=new Error("Cannot find module '"+p+"' from '"+d+"'");throw h.code="MODULE_NOT_FOUND",h;function f(P){var R=w(Sr.dirname(P));if(R&&R.dir&&R.pkg&&A.pathFilter){var C=Sr.relative(R.dir,P),j=A.pathFilter(R.pkg,P,C);j&&(P=Sr.resolve(R.dir,j))}if(v(P))return P;for(var T=0;T<i.length;T++){var N=P+i[T];if(v(N))return N}}function w(P){if(!(P===""||P==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(P))&&!/[/\\]node_modules[/\\]*$/.test(P)){var R=Sr.join(Ei(t,P,A),"package.json");if(!v(R))return w(Sr.dirname(P));var C=n(e,R);return C&&A.packageFilter&&(C=A.packageFilter(C,P)),{pkg:C,dir:P}}}function _(P){var R=Sr.join(Ei(t,P,A),"/package.json");if(v(R)){try{var C=n(e,R)}catch{}if(C&&A.packageFilter&&(C=A.packageFilter(C,P)),C&&C.main){if(typeof C.main!="string"){var j=new TypeError("package \u201C"+C.name+"\u201D `main` must be a string");throw j.code="INVALID_PACKAGE_MAIN",j}(C.main==="."||C.main==="./")&&(C.main="index");try{var T=f(Sr.resolve(P,C.main));if(T)return T;var N=_(Sr.resolve(P,C.main));if(N)return N}catch{}}}return f(Sr.join(P,"/index"))}function I(P,R){for(var C=function(){return rv(P,R,A)},j=r?r(P,R,C,A):C(),T=0;T<j.length;T++){var N=j[T];if(l(Sr.dirname(N))){var $=f(N);if($)return $;var G=_(N);if(G)return G}}}}});var ad=Re((YA,sd)=>{var ys=Xp();ys.core=Zp();ys.isCore=td();ys.sync=id();sd.exports=ys});var vd=Re(Es=>{Es.remove=Ev;var gs=[{base:" ",chars:"\xA0"},{base:"0",chars:"\u07C0"},{base:"A",chars:"\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",chars:"\uA732"},{base:"AE",chars:"\xC6\u01FC\u01E2"},{base:"AO",chars:"\uA734"},{base:"AU",chars:"\uA736"},{base:"AV",chars:"\uA738\uA73A"},{base:"AY",chars:"\uA73C"},{base:"B",chars:"\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0181"},{base:"C",chars:"\u24B8\uFF23\uA73E\u1E08\u0106C\u0108\u010A\u010C\xC7\u0187\u023B"},{base:"D",chars:"\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018A\u0189\u1D05\uA779"},{base:"Dh",chars:"\xD0"},{base:"DZ",chars:"\u01F1\u01C4"},{base:"Dz",chars:"\u01F2\u01C5"},{base:"E",chars:"\u025B\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E\u1D07"},{base:"F",chars:"\uA77C\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",chars:"\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E\u0262"},{base:"H",chars:"\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",chars:"\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",chars:"\u24BF\uFF2A\u0134\u0248\u0237"},{base:"K",chars:"\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",chars:"\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",chars:"\u01C7"},{base:"Lj",chars:"\u01C8"},{base:"M",chars:"\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C\u03FB"},{base:"N",chars:"\uA7A4\u0220\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u019D\uA790\u1D0E"},{base:"NJ",chars:"\u01CA"},{base:"Nj",chars:"\u01CB"},{base:"O",chars:"\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OE",chars:"\u0152"},{base:"OI",chars:"\u01A2"},{base:"OO",chars:"\uA74E"},{base:"OU",chars:"\u0222"},{base:"P",chars:"\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",chars:"\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",chars:"\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",chars:"\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",chars:"\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"Th",chars:"\xDE"},{base:"TZ",chars:"\uA728"},{base:"U",chars:"\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",chars:"\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",chars:"\uA760"},{base:"W",chars:"\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",chars:"\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",chars:"\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",chars:"\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",chars:"\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250\u0251"},{base:"aa",chars:"\uA733"},{base:"ae",chars:"\xE6\u01FD\u01E3"},{base:"ao",chars:"\uA735"},{base:"au",chars:"\uA737"},{base:"av",chars:"\uA739\uA73B"},{base:"ay",chars:"\uA73D"},{base:"b",chars:"\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253\u0182"},{base:"c",chars:"\uFF43\u24D2\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",chars:"\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\u018B\u13E7\u0501\uA7AA"},{base:"dh",chars:"\xF0"},{base:"dz",chars:"\u01F3\u01C6"},{base:"e",chars:"\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u01DD"},{base:"f",chars:"\u24D5\uFF46\u1E1F\u0192"},{base:"ff",chars:"\uFB00"},{base:"fi",chars:"\uFB01"},{base:"fl",chars:"\uFB02"},{base:"ffi",chars:"\uFB03"},{base:"ffl",chars:"\uFB04"},{base:"g",chars:"\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\uA77F\u1D79"},{base:"h",chars:"\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",chars:"\u0195"},{base:"i",chars:"\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",chars:"\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",chars:"\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",chars:"\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747\u026D"},{base:"lj",chars:"\u01C9"},{base:"m",chars:"\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",chars:"\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u043B\u0509"},{base:"nj",chars:"\u01CC"},{base:"o",chars:"\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\uA74B\uA74D\u0275\u0254\u1D11"},{base:"oe",chars:"\u0153"},{base:"oi",chars:"\u01A3"},{base:"oo",chars:"\uA74F"},{base:"ou",chars:"\u0223"},{base:"p",chars:"\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755\u03C1"},{base:"q",chars:"\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",chars:"\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",chars:"\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u0282"},{base:"ss",chars:"\xDF"},{base:"t",chars:"\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"th",chars:"\xFE"},{base:"tz",chars:"\uA729"},{base:"u",chars:"\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",chars:"\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",chars:"\uA761"},{base:"w",chars:"\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",chars:"\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",chars:"\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",chars:"\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],Jo={};for(vi=0;vi<gs.length;vi+=1)for(zo=gs[vi].chars,bs=0;bs<zo.length;bs+=1)Jo[zo[bs]]=gs[vi].base;var zo,bs,vi;function Ev(c){return c.replace(/[^\u0000-\u007e]/g,function(p){return Jo[p]||p})}Es.replacementList=gs;Es.diacriticsMap=Jo});var Od=Re((K_,xd)=>{(()=>{var c={"./node_modules/.pnpm/create-require@1.1.1/node_modules/create-require/create-require.js":(v,e,l)=>{let t=l("module"),n=l("path"),r=l("fs");v.exports=function(i){return i||(i=process.cwd()),function(u){try{return r.lstatSync(u).isDirectory()}catch{return!1}}(i)&&(i=n.join(i,"index.js")),t.createRequire?t.createRequire(i):t.createRequireFromPath?t.createRequireFromPath(i):function(u){let a=new t.Module(u,null);return a.filename=u,a.paths=t.Module._nodeModulePaths(n.dirname(u)),a._compile("module.exports = require;",u),a.exports}(i)}},"./node_modules/.pnpm/lru-cache@6.0.0/node_modules/lru-cache/index.js":(v,e,l)=>{"use strict";let t=l("./node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/yallist.js"),n=Symbol("max"),r=Symbol("length"),i=Symbol("lengthCalculator"),u=Symbol("allowStale"),a=Symbol("maxAge"),d=Symbol("dispose"),y=Symbol("noDisposeOnSet"),m=Symbol("lruList"),S=Symbol("cache"),E=Symbol("updateAgeOnGet"),h=()=>1,f=(C,j,T)=>{let N=C[S].get(j);if(N){let $=N.value;if(w(C,$)){if(I(C,N),!C[u])return}else T&&(C[E]&&(N.value.now=Date.now()),C[m].unshiftNode(N));return $.value}},w=(C,j)=>{if(!j||!j.maxAge&&!C[a])return!1;let T=Date.now()-j.now;return j.maxAge?T>j.maxAge:C[a]&&T>C[a]},_=C=>{if(C[r]>C[n])for(let j=C[m].tail;C[r]>C[n]&&j!==null;){let T=j.prev;I(C,j),j=T}},I=(C,j)=>{if(j){let T=j.value;C[d]&&C[d](T.key,T.value),C[r]-=T.length,C[S].delete(T.key),C[m].removeNode(j)}};class P{constructor(j,T,N,$,G){this.key=j,this.value=T,this.length=N,this.now=$,this.maxAge=G||0}}let R=(C,j,T,N)=>{let $=T.value;w(C,$)&&(I(C,T),C[u]||($=void 0)),$&&j.call(N,$.value,$.key,C)};v.exports=class{constructor(C){if(typeof C=="number"&&(C={max:C}),C||(C={}),C.max&&(typeof C.max!="number"||C.max<0))throw new TypeError("max must be a non-negative number");this[n]=C.max||1/0;let j=C.length||h;if(this[i]=typeof j!="function"?h:j,this[u]=C.stale||!1,C.maxAge&&typeof C.maxAge!="number")throw new TypeError("maxAge must be a number");this[a]=C.maxAge||0,this[d]=C.dispose,this[y]=C.noDisposeOnSet||!1,this[E]=C.updateAgeOnGet||!1,this.reset()}set max(C){if(typeof C!="number"||C<0)throw new TypeError("max must be a non-negative number");this[n]=C||1/0,_(this)}get max(){return this[n]}set allowStale(C){this[u]=!!C}get allowStale(){return this[u]}set maxAge(C){if(typeof C!="number")throw new TypeError("maxAge must be a non-negative number");this[a]=C,_(this)}get maxAge(){return this[a]}set lengthCalculator(C){typeof C!="function"&&(C=h),C!==this[i]&&(this[i]=C,this[r]=0,this[m].forEach(j=>{j.length=this[i](j.value,j.key),this[r]+=j.length})),_(this)}get lengthCalculator(){return this[i]}get length(){return this[r]}get itemCount(){return this[m].length}rforEach(C,j){j=j||this;for(let T=this[m].tail;T!==null;){let N=T.prev;R(this,C,T,j),T=N}}forEach(C,j){j=j||this;for(let T=this[m].head;T!==null;){let N=T.next;R(this,C,T,j),T=N}}keys(){return this[m].toArray().map(C=>C.key)}values(){return this[m].toArray().map(C=>C.value)}reset(){this[d]&&this[m]&&this[m].length&&this[m].forEach(C=>this[d](C.key,C.value)),this[S]=new Map,this[m]=new t,this[r]=0}dump(){return this[m].map(C=>!w(this,C)&&{k:C.key,v:C.value,e:C.now+(C.maxAge||0)}).toArray().filter(C=>C)}dumpLru(){return this[m]}set(C,j,T){if((T=T||this[a])&&typeof T!="number")throw new TypeError("maxAge must be a number");let N=T?Date.now():0,$=this[i](j,C);if(this[S].has(C)){if($>this[n])return I(this,this[S].get(C)),!1;let k=this[S].get(C).value;return this[d]&&(this[y]||this[d](C,k.value)),k.now=N,k.maxAge=T,k.value=j,this[r]+=$-k.length,k.length=$,this.get(C),_(this),!0}let G=new P(C,j,$,N,T);return G.length>this[n]?(this[d]&&this[d](C,j),!1):(this[r]+=G.length,this[m].unshift(G),this[S].set(C,this[m].head),_(this),!0)}has(C){if(!this[S].has(C))return!1;let j=this[S].get(C).value;return!w(this,j)}get(C){return f(this,C,!0)}peek(C){return f(this,C,!1)}pop(){let C=this[m].tail;return C?(I(this,C),C.value):null}del(C){I(this,this[S].get(C))}load(C){this.reset();let j=Date.now();for(let T=C.length-1;T>=0;T--){let N=C[T],$=N.e||0;if($===0)this.set(N.k,N.v);else{let G=$-j;G>0&&this.set(N.k,N.v,G)}}}prune(){this[S].forEach((C,j)=>f(this,j,!1))}}},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/index.js":(v,e,l)=>{let t=l("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/opts-arg.js"),n=l("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/path-arg.js"),{mkdirpNative:r,mkdirpNativeSync:i}=l("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-native.js"),{mkdirpManual:u,mkdirpManualSync:a}=l("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js"),{useNative:d,useNativeSync:y}=l("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/use-native.js"),m=(S,E)=>(S=n(S),E=t(E),d(E)?r(S,E):u(S,E));m.sync=(S,E)=>(S=n(S),E=t(E),y(E)?i(S,E):a(S,E)),m.native=(S,E)=>r(n(S),t(E)),m.manual=(S,E)=>u(n(S),t(E)),m.nativeSync=(S,E)=>i(n(S),t(E)),m.manualSync=(S,E)=>a(n(S),t(E)),v.exports=m},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/find-made.js":(v,e,l)=>{let{dirname:t}=l("path"),n=(i,u,a)=>a===u?Promise.resolve():i.statAsync(u).then(d=>d.isDirectory()?a:void 0,d=>d.code==="ENOENT"?n(i,t(u),u):void 0),r=(i,u,a)=>{if(a!==u)try{return i.statSync(u).isDirectory()?a:void 0}catch(d){return d.code==="ENOENT"?r(i,t(u),u):void 0}};v.exports={findMade:n,findMadeSync:r}},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js":(v,e,l)=>{let{dirname:t}=l("path"),n=(i,u,a)=>{u.recursive=!1;let d=t(i);return d===i?u.mkdirAsync(i,u).catch(y=>{if(y.code!=="EISDIR")throw y}):u.mkdirAsync(i,u).then(()=>a||i,y=>{if(y.code==="ENOENT")return n(d,u).then(m=>n(i,u,m));if(y.code!=="EEXIST"&&y.code!=="EROFS")throw y;return u.statAsync(i).then(m=>{if(m.isDirectory())return a;throw y},()=>{throw y})})},r=(i,u,a)=>{let d=t(i);if(u.recursive=!1,d===i)try{return u.mkdirSync(i,u)}catch(y){if(y.code!=="EISDIR")throw y;return}try{return u.mkdirSync(i,u),a||i}catch(y){if(y.code==="ENOENT")return r(i,u,r(d,u,a));if(y.code!=="EEXIST"&&y.code!=="EROFS")throw y;try{if(!u.statSync(i).isDirectory())throw y}catch{throw y}}};v.exports={mkdirpManual:n,mkdirpManualSync:r}},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-native.js":(v,e,l)=>{let{dirname:t}=l("path"),{findMade:n,findMadeSync:r}=l("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/find-made.js"),{mkdirpManual:i,mkdirpManualSync:u}=l("./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/mkdirp-manual.js");v.exports={mkdirpNative:(a,d)=>(d.recursive=!0,t(a)===a?d.mkdirAsync(a,d):n(d,a).then(y=>d.mkdirAsync(a,d).then(()=>y).catch(m=>{if(m.code==="ENOENT")return i(a,d);throw m}))),mkdirpNativeSync:(a,d)=>{if(d.recursive=!0,t(a)===a)return d.mkdirSync(a,d);let y=r(d,a);try{return d.mkdirSync(a,d),y}catch(m){if(m.code==="ENOENT")return u(a,d);throw m}}}},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/opts-arg.js":(v,e,l)=>{let{promisify:t}=l("util"),n=l("fs");v.exports=r=>{if(r)if(typeof r=="object")r={mode:511,fs:n,...r};else if(typeof r=="number")r={mode:r,fs:n};else{if(typeof r!="string")throw new TypeError("invalid options argument");r={mode:parseInt(r,8),fs:n}}else r={mode:511,fs:n};return r.mkdir=r.mkdir||r.fs.mkdir||n.mkdir,r.mkdirAsync=t(r.mkdir),r.stat=r.stat||r.fs.stat||n.stat,r.statAsync=t(r.stat),r.statSync=r.statSync||r.fs.statSync||n.statSync,r.mkdirSync=r.mkdirSync||r.fs.mkdirSync||n.mkdirSync,r}},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/path-arg.js":(v,e,l)=>{let t=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:n,parse:r}=l("path");v.exports=i=>{if(/\0/.test(i))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:i,code:"ERR_INVALID_ARG_VALUE"});if(i=n(i),t==="win32"){let u=/[*|"<>?:]/,{root:a}=r(i);if(u.test(i.substr(a.length)))throw Object.assign(new Error("Illegal characters in path."),{path:i,code:"EINVAL"})}return i}},"./node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/use-native.js":(v,e,l)=>{let t=l("fs"),n=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),r=+n[0]>10||+n[0]==10&&+n[1]>=12,i=r?a=>a.mkdir===t.mkdir:()=>!1,u=r?a=>a.mkdirSync===t.mkdirSync:()=>!1;v.exports={useNative:i,useNativeSync:u}},"./node_modules/.pnpm/mlly@0.5.3/node_modules/mlly/dist lazy recursive":v=>{function e(l){return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+l+"'");throw t.code="MODULE_NOT_FOUND",t})}e.keys=()=>[],e.resolve=e,e.id="./node_modules/.pnpm/mlly@0.5.3/node_modules/mlly/dist lazy recursive",v.exports=e},"./node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.js":(v,e,l)=>{"use strict";var t=l("crypto");function n(m,S){return function(E,h){var f;if(f=h.algorithm!=="passthrough"?t.createHash(h.algorithm):new y,f.write===void 0&&(f.write=f.update,f.end=f.update),d(h,f).dispatch(E),f.update||f.end(""),f.digest)return f.digest(h.encoding==="buffer"?void 0:h.encoding);var w=f.read();return h.encoding==="buffer"?w:w.toString(h.encoding)}(m,S=u(m,S))}(e=v.exports=n).sha1=function(m){return n(m)},e.keys=function(m){return n(m,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},e.MD5=function(m){return n(m,{algorithm:"md5",encoding:"hex"})},e.keysMD5=function(m){return n(m,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var r=t.getHashes?t.getHashes().slice():["sha1","md5"];r.push("passthrough");var i=["buffer","hex","binary","base64"];function u(m,S){S=S||{};var E={};if(E.algorithm=S.algorithm||"sha1",E.encoding=S.encoding||"hex",E.excludeValues=!!S.excludeValues,E.algorithm=E.algorithm.toLowerCase(),E.encoding=E.encoding.toLowerCase(),E.ignoreUnknown=S.ignoreUnknown===!0,E.respectType=S.respectType!==!1,E.respectFunctionNames=S.respectFunctionNames!==!1,E.respectFunctionProperties=S.respectFunctionProperties!==!1,E.unorderedArrays=S.unorderedArrays===!0,E.unorderedSets=S.unorderedSets!==!1,E.unorderedObjects=S.unorderedObjects!==!1,E.replacer=S.replacer||void 0,E.excludeKeys=S.excludeKeys||void 0,m===void 0)throw new Error("Object argument required.");for(var h=0;h<r.length;++h)r[h].toLowerCase()===E.algorithm.toLowerCase()&&(E.algorithm=r[h]);if(r.indexOf(E.algorithm)===-1)throw new Error('Algorithm "'+E.algorithm+'" not supported. supported values: '+r.join(", "));if(i.indexOf(E.encoding)===-1&&E.algorithm!=="passthrough")throw new Error('Encoding "'+E.encoding+'" not supported. supported values: '+i.join(", "));return E}function a(m){return typeof m!="function"?!1:/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(m))!=null}function d(m,S,E){E=E||[];var h=function(f){return S.update?S.update(f,"utf8"):S.write(f,"utf8")};return{dispatch:function(f){m.replacer&&(f=m.replacer(f));var w=typeof f;return f===null&&(w="null"),this["_"+w](f)},_object:function(f){var w=Object.prototype.toString.call(f),_=/\[object (.*)\]/i.exec(w);_=(_=_?_[1]:"unknown:["+w+"]").toLowerCase();var I;if((I=E.indexOf(f))>=0)return this.dispatch("[CIRCULAR:"+I+"]");if(E.push(f),typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(f))return h("buffer:"),h(f);if(_==="object"||_==="function"||_==="asyncfunction"){var P=Object.keys(f);m.unorderedObjects&&(P=P.sort()),m.respectType===!1||a(f)||P.splice(0,0,"prototype","__proto__","constructor"),m.excludeKeys&&(P=P.filter(function(C){return!m.excludeKeys(C)})),h("object:"+P.length+":");var R=this;return P.forEach(function(C){R.dispatch(C),h(":"),m.excludeValues||R.dispatch(f[C]),h(",")})}if(!this["_"+_]){if(m.ignoreUnknown)return h("["+_+"]");throw new Error('Unknown object type "'+_+'"')}this["_"+_](f)},_array:function(f,w){w=w!==void 0?w:m.unorderedArrays!==!1;var _=this;if(h("array:"+f.length+":"),!w||f.length<=1)return f.forEach(function(R){return _.dispatch(R)});var I=[],P=f.map(function(R){var C=new y,j=E.slice();return d(m,C,j).dispatch(R),I=I.concat(j.slice(E.length)),C.read().toString()});return E=E.concat(I),P.sort(),this._array(P,!1)},_date:function(f){return h("date:"+f.toJSON())},_symbol:function(f){return h("symbol:"+f.toString())},_error:function(f){return h("error:"+f.toString())},_boolean:function(f){return h("bool:"+f.toString())},_string:function(f){h("string:"+f.length+":"),h(f.toString())},_function:function(f){h("fn:"),a(f)?this.dispatch("[native]"):this.dispatch(f.toString()),m.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(f.name)),m.respectFunctionProperties&&this._object(f)},_number:function(f){return h("number:"+f.toString())},_xml:function(f){return h("xml:"+f.toString())},_null:function(){return h("Null")},_undefined:function(){return h("Undefined")},_regexp:function(f){return h("regex:"+f.toString())},_uint8array:function(f){return h("uint8array:"),this.dispatch(Array.prototype.slice.call(f))},_uint8clampedarray:function(f){return h("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(f))},_int8array:function(f){return h("int8array:"),this.dispatch(Array.prototype.slice.call(f))},_uint16array:function(f){return h("uint16array:"),this.dispatch(Array.prototype.slice.call(f))},_int16array:function(f){return h("int16array:"),this.dispatch(Array.prototype.slice.call(f))},_uint32array:function(f){return h("uint32array:"),this.dispatch(Array.prototype.slice.call(f))},_int32array:function(f){return h("int32array:"),this.dispatch(Array.prototype.slice.call(f))},_float32array:function(f){return h("float32array:"),this.dispatch(Array.prototype.slice.call(f))},_float64array:function(f){return h("float64array:"),this.dispatch(Array.prototype.slice.call(f))},_arraybuffer:function(f){return h("arraybuffer:"),this.dispatch(new Uint8Array(f))},_url:function(f){return h("url:"+f.toString())},_map:function(f){h("map:");var w=Array.from(f);return this._array(w,m.unorderedSets!==!1)},_set:function(f){h("set:");var w=Array.from(f);return this._array(w,m.unorderedSets!==!1)},_file:function(f){return h("file:"),this.dispatch([f.name,f.size,f.type,f.lastModfied])},_blob:function(){if(m.ignoreUnknown)return h("[blob]");throw Error(`Hashing Blob objects is currently not supported
|
|
7
7
|
(see https://github.com/puleos/object-hash/issues/26)
|
|
8
8
|
Use "options.replacer" or "options.ignoreUnknown"
|
|
9
9
|
`)},_domwindow:function(){return h("domwindow")},_bigint:function(f){return h("bigint:"+f.toString())},_process:function(){return h("process")},_timer:function(){return h("timer")},_pipe:function(){return h("pipe")},_tcp:function(){return h("tcp")},_udp:function(){return h("udp")},_tty:function(){return h("tty")},_statwatcher:function(){return h("statwatcher")},_securecontext:function(){return h("securecontext")},_connection:function(){return h("connection")},_zlib:function(){return h("zlib")},_context:function(){return h("context")},_nodescript:function(){return h("nodescript")},_httpparser:function(){return h("httpparser")},_dataview:function(){return h("dataview")},_signal:function(){return h("signal")},_fsevent:function(){return h("fsevent")},_tlswrap:function(){return h("tlswrap")}}}function y(){return{buf:"",write:function(m){this.buf+=m},end:function(m){this.buf+=m},read:function(){return this.buf}}}e.writeToStream=function(m,S,E){return E===void 0&&(E=S,S={}),d(S=u(m,S),E).dispatch(m)}},"./node_modules/.pnpm/pirates@4.0.5/node_modules/pirates/lib/index.js":(v,e,l)=>{"use strict";v=l.nmd(v),Object.defineProperty(e,"__esModule",{value:!0}),e.addHook=function(a,d={}){let y=!1,m=[],S=[],E,h=u._extensions[".js"],f=d.matcher||null,w=d.ignoreNodeModules!==!1;return E=d.extensions||d.exts||d.extension||d.ext||[".js"],Array.isArray(E)||(E=[E]),E.forEach(_=>{if(typeof _!="string")throw new TypeError(`Invalid Extension: ${_}`);let I=u._extensions[_]||h;S[_]=u._extensions[_],m[_]=u._extensions[_]=function(P,R){let C;y||function(j,T,N,$){if(typeof j!="string"||T.indexOf(n.default.extname(j))===-1)return!1;let G=n.default.resolve(j);return $&&i.test(G)?!1:N&&typeof N=="function"?!!N(G):!0}(R,E,f,w)&&(C=P._compile,P._compile=function(j){P._compile=C;let T=a(j,R);if(typeof T!="string")throw new Error(`[Pirates] A hook returned a non-string, or nothing at all! This is a violation of intergalactic law!
|
|
@@ -12,7 +12,7 @@ If you have no idea what this means or what Pirates is, let me explain: Pirates
|
|
|
12
12
|
Update this package.json to use a subpath pattern like "${fe}*".`,"DeprecationWarning","DEP0148"))}function Lt(fe,le,Me,ke){let{format:Ke}=ue(fe.href);if(Ke!=="module")return;let et=(0,i.fileURLToPath)(fe.href),Ze=(0,i.fileURLToPath)(new URL(".",le)),ot=(0,i.fileURLToPath)(Me);ke?process.emitWarning(`Package ${Ze} has a "main" field set to ${JSON.stringify(ke)}, excluding the full filename and extension to the resolved file at "${et.slice(Ze.length)}", imported from ${ot}.
|
|
13
13
|
Automatic extension resolution of the "main" field isdeprecated for ES modules.`,"DeprecationWarning","DEP0151"):process.emitWarning(`No "main" or "exports" field defined in the package.json for ${Ze} resolving the main entry point "${et.slice(Ze.length)}", imported from ${ot}.
|
|
14
14
|
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function Ft(fe){try{return(0,v.statSync)(fe)}catch{return new v.Stats}}function wt(fe,le,Me){let ke=be.get(fe);if(ke!==void 0)return ke;let Ke=F.read(fe).string;if(Ke===void 0){let it={pjsonPath:fe,exists:!1,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};return be.set(fe,it),it}let et;try{et=JSON.parse(Ke)}catch(it){throw new Ie(fe,(Me?`"${le}" from `:"")+(0,i.fileURLToPath)(Me||le),it.message)}let{exports:Ze,imports:ot,main:st,name:nt,type:vt}=et,xt={pjsonPath:fe,exists:!0,main:typeof st=="string"?st:void 0,name:typeof nt=="string"?nt:void 0,type:vt==="module"||vt==="commonjs"?vt:"none",exports:Ze,imports:ot&&typeof ot=="object"?ot:void 0};return be.set(fe,xt),xt}function Rt(fe){let le=new URL("./package.json",fe);for(;!le.pathname.endsWith("node_modules/package.json");){let Ke=wt((0,i.fileURLToPath)(le),fe);if(Ke.exists)return Ke;let et=le;if(le=new URL("../package.json",le),le.pathname===et.pathname)break}let Me=(0,i.fileURLToPath)(le),ke={pjsonPath:Me,exists:!1,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};return be.set(Me,ke),ke}function Vt(fe){return Ft((0,i.fileURLToPath)(fe)).isFile()}function Et(fe,le,Me){let ke;if(le.main!==void 0){if(ke=new URL(`./${le.main}`,fe),Vt(ke))return ke;let Ze=[`./${le.main}.js`,`./${le.main}.json`,`./${le.main}.node`,`./${le.main}/index.js`,`./${le.main}/index.json`,`./${le.main}/index.node`],ot=-1;for(;++ot<Ze.length&&(ke=new URL(Ze[ot],fe),!Vt(ke));)ke=void 0;if(ke)return Lt(ke,fe,Me,le.main),ke}let Ke=["./index.js","./index.json","./index.node"],et=-1;for(;++et<Ke.length&&(ke=new URL(Ke[et],fe),!Vt(ke));)ke=void 0;if(ke)return Lt(ke,fe,Me,le.main),ke;throw new ve((0,i.fileURLToPath)(new URL(".",fe)),(0,i.fileURLToPath)(Me))}function ht(fe,le,Me){throw new Se((0,i.fileURLToPath)(new URL(".",le)),fe,Me&&(0,i.fileURLToPath)(Me))}function Kt(fe,le,Me,ke,Ke){throw le=typeof le=="object"&&le!==null?JSON.stringify(le,null,""):`${le}`,new Ae((0,i.fileURLToPath)(new URL(".",Me)),fe,le,ke,Ke&&(0,i.fileURLToPath)(Ke))}function Ye(fe,le,Me,ke,Ke,et,Ze,ot){if(le===""||et||fe[fe.length-1]==="/"||Kt(Me,fe,ke,Ze,Ke),!fe.startsWith("./")){if(Ze&&!fe.startsWith("../")&&!fe.startsWith("/")){let xt=!1;try{new URL(fe),xt=!0}catch{}if(!xt)return an(et?fe.replace(Te,le):fe+le,ke,ot)}Kt(Me,fe,ke,Ze,Ke)}ne.test(fe.slice(2))&&Kt(Me,fe,ke,Ze,Ke);let st=new URL(fe,ke),nt=st.pathname,vt=new URL(".",ke).pathname;return nt.startsWith(vt)||Kt(Me,fe,ke,Ze,Ke),le===""?st:(ne.test(le)&&function(xt,it,bt,He){let St=`request is not a valid subpath for the "${bt?"imports":"exports"}" resolution of ${(0,i.fileURLToPath)(it)}`;throw new ce(xt,St,He&&(0,i.fileURLToPath)(He))}(Me+le,ke,Ze,Ke),et?new URL(st.href.replace(Te,le)):new URL(le,st))}function Mr(fe){let le=Number(fe);return`${le}`===fe&&le>=0&&le<4294967295}function lr(fe,le,Me,ke,Ke,et,Ze,ot){if(typeof le=="string")return Ye(le,Me,ke,fe,Ke,et,Ze,ot);if(Array.isArray(le)){let st=le;if(st.length===0)return null;let nt,vt=-1;for(;++vt<st.length;){let xt=st[vt],it;try{it=lr(fe,xt,Me,ke,Ke,et,Ze,ot)}catch(bt){if(nt=bt,bt.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw bt}if(it!==void 0){if(it!==null)return it;nt=null}}if(nt==null)return nt;throw nt}if(typeof le!="object"||le===null){if(le===null)return null;Kt(ke,le,fe,Ze,Ke)}else{let st=Object.getOwnPropertyNames(le),nt=-1;for(;++nt<st.length;)if(Mr(st[nt]))throw new Ie((0,i.fileURLToPath)(fe),Ke,'"exports" cannot contain numeric property keys.');for(nt=-1;++nt<st.length;){let vt=st[nt];if(vt==="default"||ot&&ot.has(vt)){let xt=lr(fe,le[vt],Me,ke,Ke,et,Ze,ot);if(xt===void 0)continue;return xt}}}}function Cr(fe,le,Me,ke,Ke){let et=Me.exports;if(function(nt,vt,xt){if(typeof nt=="string"||Array.isArray(nt))return!0;if(typeof nt!="object"||nt===null)return!1;let it=Object.getOwnPropertyNames(nt),bt=!1,He=0,St=-1;for(;++St<it.length;){let Ut=it[St],ur=Ut===""||Ut[0]!==".";if(He++==0)bt=ur;else if(bt!==ur)throw new Ie((0,i.fileURLToPath)(vt),xt,`"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 bt}(et,fe,ke)&&(et={".":et}),q.call(et,le)){let nt=lr(fe,et[le],"",le,ke,!1,!1,Ke);return nt==null&&ht(le,fe,ke),{resolved:nt,exact:!0}}let Ze="",ot=Object.getOwnPropertyNames(et),st=-1;for(;++st<ot.length;){let nt=ot[st];(nt[nt.length-1]==="*"&&le.startsWith(nt.slice(0,-1))&&le.length>=nt.length&&nt.length>Ze.length||nt[nt.length-1]==="/"&&le.startsWith(nt)&&nt.length>Ze.length)&&(Ze=nt)}if(Ze){let nt=et[Ze],vt=Ze[Ze.length-1]==="*",xt=lr(fe,nt,le.slice(Ze.length-(vt?1:0)),Ze,ke,vt,!1,Ke);return xt==null&&ht(le,fe,ke),vt||rt(Ze,fe,!0,ke),{resolved:xt,exact:vt}}ht(le,fe,ke)}function Gr(fe,le,Me){if(fe==="#"||fe.startsWith("#/"))throw new ce(fe,"is not a valid internal imports specifier name",(0,i.fileURLToPath)(le));let ke,Ke=Rt(le);if(Ke.exists){ke=(0,i.pathToFileURL)(Ke.pjsonPath);let et=Ke.imports;if(et)if(q.call(et,fe)){let Ze=lr(ke,et[fe],"",fe,le,!1,!0,Me);if(Ze!==null)return{resolved:Ze,exact:!0}}else{let Ze="",ot=Object.getOwnPropertyNames(et),st=-1;for(;++st<ot.length;){let nt=ot[st];(nt[nt.length-1]==="*"&&fe.startsWith(nt.slice(0,-1))&&fe.length>=nt.length&&nt.length>Ze.length||nt[nt.length-1]==="/"&&fe.startsWith(nt)&&nt.length>Ze.length)&&(Ze=nt)}if(Ze){let nt=et[Ze],vt=Ze[Ze.length-1]==="*",xt=lr(ke,nt,fe.slice(Ze.length-(vt?1:0)),Ze,le,vt,!0,Me);if(xt!==null)return vt||rt(Ze,ke,!1,le),{resolved:xt,exact:vt}}}}(function(et,Ze,ot){throw new xe(et,Ze&&(0,i.fileURLToPath)(new URL(".",Ze)),(0,i.fileURLToPath)(ot))})(fe,ke,le)}function an(fe,le,Me){let{packageName:ke,packageSubpath:Ke,isScoped:et}=function(vt,xt){let it=vt.indexOf("/"),bt=!0,He=!1;vt[0]==="@"&&(He=!0,it===-1||vt.length===0?bt=!1:it=vt.indexOf("/",it+1));let St=it===-1?vt:vt.slice(0,it),Ut=-1;for(;++Ut<St.length;)if(St[Ut]==="%"||St[Ut]==="\\"){bt=!1;break}if(!bt)throw new ce(vt,"is not a valid package name",(0,i.fileURLToPath)(xt));return{packageName:St,packageSubpath:"."+(it===-1?"":vt.slice(it)),isScoped:He}}(fe,le),Ze=Rt(le);if(Ze.exists){let vt=(0,i.pathToFileURL)(Ze.pjsonPath);if(Ze.name===ke&&Ze.exports!==void 0&&Ze.exports!==null)return Cr(vt,Ke,Ze,le,Me).resolved}let ot,st=new URL("./node_modules/"+ke+"/package.json",le),nt=(0,i.fileURLToPath)(st);do{if(!Ft(nt.slice(0,-13)).isDirectory()){ot=nt,st=new URL((et?"../../../../node_modules/":"../../../node_modules/")+ke+"/package.json",st),nt=(0,i.fileURLToPath)(st);continue}let vt=wt(nt,fe,le);return vt.exports!==void 0&&vt.exports!==null?Cr(st,Ke,vt,le,Me).resolved:Ke==="."?Et(st,vt,le):new URL(Ke,st)}while(nt.length!==ot.length);throw new ve(ke,(0,i.fileURLToPath)(le))}function Pe(fe,le,Me){let ke;if(function(Ke){return Ke!==""&&(Ke[0]==="/"||function(et){return et[0]==="."&&(et.length===1||et[1]==="/"||et[1]==="."&&(et.length===2||et[2]==="/"))}(Ke))}(fe))ke=new URL(fe,le);else if(fe[0]==="#")({resolved:ke}=Gr(fe,le,Me));else try{ke=new URL(fe)}catch{ke=an(fe,le,Me)}return function(Ke,et){if(je.test(Ke.pathname))throw new ce(Ke.pathname,'must not include encoded "/" or "\\" characters',(0,i.fileURLToPath)(et));let Ze=(0,i.fileURLToPath)(Ke),ot=Ft(Ze.endsWith("/")?Ze.slice(-1):Ze);if(ot.isDirectory()){let st=new Ve(Ze,(0,i.fileURLToPath)(et));throw st.url=String(Ke),st}if(!ot.isFile())throw new ve(Ze||Ke.pathname,et&&(0,i.fileURLToPath)(et),"module");return Ke}(ke,le)}let De=new Set(["node","import"]),_e=(0,i.pathToFileURL)(process.cwd()),Le=[".mjs",".cjs",".js",".json"],Ue=new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function Xe(fe,le,Me){try{return Pe(fe,le,Me)}catch(ke){if(!Ue.has(ke.code))throw ke;return null}}function Je(fe,le={}){if(/(node|data|http|https):/.test(fe))return fe;if(M.has(fe))return"node:"+fe;if($(fe)&&(0,v.existsSync)(fe)){let ot=(0,v.realpathSync)(x(fe));return(0,i.pathToFileURL)(ot).toString()}let Me=le.conditions?new Set(le.conditions):De,ke=(Array.isArray(le.url)?le.url:[le.url]).filter(Boolean).map(ot=>new URL(function(st){return typeof st!="string"&&(st=st.toString()),/(node|data|http|https|file):/.test(st)?st:M.has(st)?"node:"+st:"file://"+O(st)}(ot.toString())));ke.length||ke.push(_e);let Ke=[...ke];for(let ot of ke)if(ot.protocol==="file:"&&!ot.pathname.includes("node_modules")){let st=new URL(ot);st.pathname+="/node_modules",Ke.push(st)}let et;for(let ot of Ke){if(et=Xe(fe,ot,Me),et)break;for(let st of["","/index"]){for(let nt of le.extensions||Le)if(et=Xe(fe+st+nt,ot,Me),et)break;if(et)break}}if(!et){let ot=new Error(`Cannot find module ${fe} imported from ${Ke.join(", ")}`);throw ot.code="ERR_MODULE_NOT_FOUND",ot}let Ze=(0,v.realpathSync)(x(et));return(0,i.pathToFileURL)(Ze).toString()}function ct(fe,le){return Je(fe,le)}function mt(fe,le){return x(ct(fe,le))}let At=/([\s;]|^)(import[\w,{}\s*]*from|import\s*['"*{]|export\b\s*(?:[*{]|default|type|function|const|var|let|async function)|import\.meta\b)/m;function $t(fe){return At.test(fe)}var Dt=b("crypto");function Bt(fe,le=8){return(0,Dt.createHash)("md5").update(fe).digest("hex").slice(0,le)}let Nt=S(process.env.JITI_DEBUG),Xt=S(process.env.JITI_CACHE),zt=S(process.env.JITI_ESM_RESOLVE),Qt=S(process.env.JITI_REQUIRE_CACHE),Jt=S(process.env.JITI_SOURCE_MAPS),br=(0,t.platform)()==="win32",ar={debug:Nt,cache:Xt===void 0||!!Xt,requireCache:Qt===void 0||!!Qt,sourceMaps:Jt!==void 0&&!!Jt,interopDefault:!1,esmResolve:zt||!1,cacheVersion:"7",legacy:(0,f.lt)(process.version||"0.0.0","14.0.0"),extensions:[".js",".mjs",".cjs",".ts"]};function wr(fe,le={},Me){function ke(...it){le.debug&&console.log("[jiti]",...it)}if((le=Object.assign(Object.assign({},ar),le)).legacy&&(le.cacheVersion+="-legacy"),le.transformOptions&&(le.cacheVersion+="-"+I()(le.transformOptions)),fe||(fe=process.cwd()),function(it){try{return(0,v.lstatSync)(it).isDirectory()}catch{return!1}}(fe)&&(fe=(0,l.join)(fe,"index.js")),le.cache===!0&&(le.cache=(0,l.join)((0,t.tmpdir)(),"node-jiti")),le.cache)try{if((0,u.sync)(le.cache),!function(it){try{return(0,v.accessSync)(it,v.constants.W_OK),!0}catch{return!1}}(le.cache))throw new Error("directory is not writable")}catch(it){ke("Error creating cache directory at ",le.cache,it),le.cache=!1}let Ke=h()(br?fe.replace(/\//g,"\\"):fe),et=(it,bt)=>{try{return Ke.resolve(it,bt)}catch{}},Ze=(0,i.pathToFileURL)(fe),ot=[...le.extensions].filter(it=>it!==".js"),st=(it,bt)=>{let He,St;if(le.esmResolve){try{He=mt(it,{url:Ze,conditions:["node","require","import"]})}catch(Ut){St=Ut}if(He)return He}if(le.extensions.includes((0,l.extname)(it)))return Ke.resolve(it,bt);try{return Ke.resolve(it,bt)}catch(Ut){St=Ut}for(let Ut of ot)if(He=et(it+Ut,bt)||et(it+"/index"+Ut,bt),He)return He;throw St};function nt(it){let bt=function(He,St,Ut){if(!le.cache||!He)return Ut();let ur=` /* v${le.cacheVersion}-${Bt(St,16)} */`,Kr=(0,l.basename)((0,l.dirname)(He))+"-"+(0,l.basename)(He),Nr=(0,l.join)(le.cache,Kr+"."+Bt(He)+".js");if((0,v.existsSync)(Nr)){let jr=(0,v.readFileSync)(Nr,"utf-8");if(jr.endsWith(ur))return ke("[cache hit]",He,"~>",Nr),jr}ke("[cache miss]",He);let jt=Ut();return jt.includes("__JITI_ERROR__")||(0,v.writeFileSync)(Nr,jt+ur,"utf-8"),jt}(it.filename,it.source,()=>{var He;let St=le.transform(Object.assign(Object.assign(Object.assign({legacy:le.legacy},le.transformOptions),{babel:Object.assign(Object.assign({},le.sourceMaps?{sourceFileName:it.filename,sourceMaps:"inline"}:{}),(He=le.transformOptions)===null||He===void 0?void 0:He.babel)}),it));return St.error&&le.debug&&ke(St.error),St.code});return bt.startsWith("#!")&&(bt="// "+bt),bt}function vt(it){return le.interopDefault?function(bt){if((He=bt)===null||typeof He!="object"||!("default"in bt))return bt;var He;let St=bt.default;for(let Ut in bt)if(Ut==="default")try{Ut in St||Object.defineProperty(St,Ut,{enumerable:!1,configurable:!1,get:()=>St})}catch{}else try{Ut in St||Object.defineProperty(St,Ut,{enumerable:!0,configurable:!0,get:()=>bt[Ut]})}catch{}return St}(it):it}function xt(it){var bt,He;if(it.startsWith("node:")?it=it.substr(5):it.startsWith("file:")&&(it=(0,i.fileURLToPath)(it)),e.builtinModules.includes(it)||it===".pnp.js")return Ke(it);let St=st(it),Ut=(0,l.extname)(St);if(Ut&&!le.extensions.includes(Ut))return ke("[unknown]",St),Ke(it);if(le.requireCache&&Ke.cache[St])return vt((bt=Ke.cache[St])===null||bt===void 0?void 0:bt.exports);let ur=(0,v.readFileSync)(St,"utf-8"),Kr=Ut===".ts",Nr=Ut===".mjs"||Ut===".js"&&((He=function(cr){for(;cr&&cr!=="."&&cr!=="/";){cr=(0,l.join)(cr,"..");try{let Hr=(0,v.readFileSync)((0,l.join)(cr,"package.json"),"utf-8");try{return JSON.parse(Hr)}catch{}break}catch{}}}(St))===null||He===void 0?void 0:He.type)==="module";if(Ut!==".cjs"&&(Kr||Nr||$t(ur)||le.legacy&&ur.match(/\?\.|\?\?/)||St.includes("node_modules/config/")))ke(`[transpile${Nr?" esm module":""}]`,St),ur=nt({filename:St,source:ur,ts:Kr});else try{return ke("[native]",St),vt(Ke(it))}catch(cr){ke("Native require error:",cr),ke("[fallback]",St),ur=nt({filename:St,source:ur,ts:Kr})}let jt=new e.Module(St),jr;jt.filename=St,Me&&(jt.parent=Me,Array.isArray(Me.children)&&!Me.children.includes(jt)&&Me.children.push(jt)),jt.require=wr(St,le,jt),jt.path=(0,l.dirname)(St),jt.paths=e.Module._nodeModulePaths(jt.path),le.requireCache&&(Ke.cache[St]=jt);try{jr=r().runInThisContext(e.Module.wrap(ur),{filename:St,lineOffset:0,displayErrors:!1})}catch(cr){le.requireCache&&delete Ke.cache[St],le.onError(cr)}try{jr(jt.exports,jt.require,jt,jt.filename,(0,l.dirname)(jt.filename))}catch(cr){le.requireCache&&delete Ke.cache[St],le.onError(cr)}if(jt.exports&&jt.exports.__JITI_ERROR__){let{filename:cr,line:Hr,column:on,code:kn,message:oi}=jt.exports.__JITI_ERROR__,Zr=new Error(`${kn}: ${oi}
|
|
15
|
-
${`${cr}:${Hr}:${on}`}`);Error.captureStackTrace(Zr,xt),le.onError(Zr)}return jt.loaded=!0,vt(jt.exports)}return st.paths=Ke.resolve.paths,xt.resolve=st,xt.cache=le.requireCache?Ke.cache:{},xt.extensions=Ke.extensions,xt.main=Ke.main,xt.transform=nt,xt.register=function(){return(0,w.addHook)((it,bt)=>xt.transform({source:it,filename:bt,ts:!!bt.match(/\.[cm]?ts$/)}),{exts:le.extensions})},xt}})(),
|
|
15
|
+
${`${cr}:${Hr}:${on}`}`);Error.captureStackTrace(Zr,xt),le.onError(Zr)}return jt.loaded=!0,vt(jt.exports)}return st.paths=Ke.resolve.paths,xt.resolve=st,xt.cache=le.requireCache?Ke.cache:{},xt.extensions=Ke.extensions,xt.main=Ke.main,xt.transform=nt,xt.register=function(){return(0,w.addHook)((it,bt)=>xt.transform({source:it,filename:bt,ts:!!bt.match(/\.[cm]?ts$/)}),{exts:le.extensions})},xt}})(),xd.exports=A.default})()});var Nd=Re((Y_,Id)=>{(()=>{var c={"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/config/cache-contexts.js":()=>{},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/config/caching.js":(v,e,l)=>{"use strict";function t(){let w=l("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return t=function(){return w},w}Object.defineProperty(e,"__esModule",{value:!0}),e.assertSimpleType=h,e.makeStrongCache=d,e.makeStrongCacheSync=function(w){return i(d(w))},e.makeWeakCache=a,e.makeWeakCacheSync=function(w){return i(a(w))};var n=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/gensync-utils/async.js"),r=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/config/util.js");let i=w=>t()(w).sync;function*u(){return!0}function a(w){return y(WeakMap,w)}function d(w){return y(Map,w)}function y(w,_){let I=new w,P=new w,R=new w;return function*(C,j){let T=yield*(0,n.isAsync)(),N=T?P:I,$=yield*function*(O,x,F,L,V){let K=yield*m(x,L,V);if(K.valid)return K;if(O){let z=yield*m(F,L,V);if(z.valid)return{valid:!0,value:yield*(0,n.waitFor)(z.value.promise)}}return{valid:!1,value:null}}(T,N,R,C,j);if($.valid)return $.value;let G=new E(j),k=_(C,G),U,M;if((0,r.isIterableIterator)(k)){let O=k;M=yield*(0,n.onFirstPause)(O,()=>{U=function(x,F,L){let V=new f;return S(F,x,L,V),V}(G,R,C)})}else M=k;return S(N,G,C,M),U&&(R.delete(C),U.release(M)),M}}function*m(w,_,I){let P=w.get(_);if(P){for(let{value:R,valid:C}of P)if(yield*C(I))return{valid:!0,value:R}}return{valid:!1,value:null}}function S(w,_,I,P){_.configured()||_.forever();let R=w.get(I);switch(_.deactivate(),_.mode()){case"forever":R=[{value:P,valid:u}],w.set(I,R);break;case"invalidate":R=[{value:P,valid:_.validator()}],w.set(I,R);break;case"valid":R?R.push({value:P,valid:_.validator()}):(R=[{value:P,valid:_.validator()}],w.set(I,R))}}class E{constructor(_){this._active=!0,this._never=!1,this._forever=!1,this._invalidate=!1,this._configured=!1,this._pairs=[],this._data=void 0,this._data=_}simple(){return function(_){function I(P){if(typeof P!="boolean")return _.using(()=>h(P()));P?_.forever():_.never()}return I.forever=()=>_.forever(),I.never=()=>_.never(),I.using=P=>_.using(()=>h(P())),I.invalidate=P=>_.invalidate(()=>h(P())),I}(this)}mode(){return this._never?"never":this._forever?"forever":this._invalidate?"invalidate":"valid"}forever(){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._never)throw new Error("Caching has already been configured with .never()");this._forever=!0,this._configured=!0}never(){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._forever)throw new Error("Caching has already been configured with .forever()");this._never=!0,this._configured=!0}using(_){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._never||this._forever)throw new Error("Caching has already been configured with .never or .forever()");this._configured=!0;let I=_(this._data),P=(0,n.maybeAsync)(_,"You appear to be using an async cache handler, but Babel has been called synchronously");return(0,n.isThenable)(I)?I.then(R=>(this._pairs.push([R,P]),R)):(this._pairs.push([I,P]),I)}invalidate(_){return this._invalidate=!0,this.using(_)}validator(){let _=this._pairs;return function*(I){for(let[P,R]of _)if(P!==(yield*R(I)))return!1;return!0}}deactivate(){this._active=!1}configured(){return this._configured}}function h(w){if((0,n.isThenable)(w))throw new Error("You appear to be using an async cache handler, which your current version of Babel does not support. We may add support for this in the future, but if you're on the most recent version of @babel/core and still seeing this error, then you'll need to synchronously handle your caching logic.");if(w!=null&&typeof w!="string"&&typeof w!="boolean"&&typeof w!="number")throw new Error("Cache keys must be either string, boolean, number, null, or undefined.");return w}class f{constructor(){this.released=!1,this.promise=void 0,this._resolve=void 0,this.promise=new Promise(_=>{this._resolve=_})}release(_){this.released=!0,this._resolve(_)}}},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/config/config-chain.js":(v,e,l)=>{"use strict";function t(){let Y=l("path");return t=function(){return Y},Y}function n(){let Y=l("./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js");return n=function(){return Y},Y}Object.defineProperty(e,"__esModule",{value:!0}),e.buildPresetChain=function*(Y,re){let ue=yield*S(Y,re);return ue?{plugins:X(ue.plugins),presets:X(ue.presets),options:ue.options.map(ce=>z(ce)),files:new Set}:null},e.buildPresetChainWalker=void 0,e.buildRootChain=function*(Y,re){let ue,ce,Ie=new u.ConfigPrinter,Ae=yield*R({options:Y,dirname:re.cwd},re,void 0,Ie);if(!Ae)return null;let ve=yield*Ie.output(),xe;typeof Y.configFile=="string"?xe=yield*(0,a.loadConfig)(Y.configFile,re.cwd,re.envName,re.caller):Y.configFile!==!1&&(xe=yield*(0,a.findRootConfig)(re.root,re.envName,re.caller));let{babelrc:Se,babelrcRoots:Ve}=Y,$e=re.cwd,de=K(),q=new u.ConfigPrinter;if(xe){let rt=_(xe),Lt=yield*j(rt,re,void 0,q);if(!Lt)return null;ue=yield*q.output(),Se===void 0&&(Se=rt.options.babelrc),Ve===void 0&&($e=rt.dirname,Ve=rt.options.babelrcRoots),L(de,Lt)}let ne,Te,je=!1,Oe=K();if((Se===!0||Se===void 0)&&typeof re.filename=="string"){let rt=yield*(0,a.findPackageData)(re.filename);if(rt&&function(Lt,Ft,wt,Rt){if(typeof wt=="boolean")return wt;let Vt=Lt.root;if(wt===void 0)return Ft.directories.indexOf(Vt)!==-1;let Et=wt;return Array.isArray(Et)||(Et=[Et]),Et=Et.map(ht=>typeof ht=="string"?t().resolve(Rt,ht):ht),Et.length===1&&Et[0]===Vt?Ft.directories.indexOf(Vt)!==-1:Et.some(ht=>(typeof ht=="string"&&(ht=(0,i.default)(ht,Rt)),Ft.directories.some(Kt=>ye(ht,Rt,Kt,Lt))))}(re,rt,Ve,$e)){if({ignore:ne,config:Te}=yield*(0,a.findRelativeConfig)(rt,re.envName,re.caller),ne&&Oe.files.add(ne.filepath),ne&&pe(re,ne.ignore,null,ne.dirname)&&(je=!0),Te&&!je){let Lt=I(Te),Ft=new u.ConfigPrinter,wt=yield*j(Lt,re,void 0,Ft);wt?(ce=yield*Ft.output(),L(Oe,wt)):je=!0}Te&&je&&Oe.files.add(Te.filepath)}}re.showConfig&&console.log(`Babel configs on "${re.filename}" (ascending priority):
|
|
16
16
|
`+[ue,ce,ve].filter(rt=>!!rt).join(`
|
|
17
17
|
|
|
18
18
|
`)+`
|
|
@@ -95,10 +95,10 @@ Add ${m} to the 'plugins' section of your Babel config to enable parsing.`}}retu
|
|
|
95
95
|
});
|
|
96
96
|
`(K))]);var K}function O(F){let L=P("babelHelpers"),V=[];V.push($("var",[G(L,C([]))]));let K=j(V);return x(V,L,F),V.push(_(L)),K}function x(F,L,V){let K=X=>L?R(L,P(X)):P(`_${X}`),z={};return t().list.forEach(function(X){if(V&&V.indexOf(X)<0)return;let J=z[X]=K(X);t().ensure(X,u.default);let{nodes:ie}=t().get(X,K,J);F.push(...ie)}),z}},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transform-ast.js":(v,e,l)=>{"use strict";function t(){let d=l("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return t=function(){return d},d}Object.defineProperty(e,"__esModule",{value:!0}),e.transformFromAstSync=e.transformFromAstAsync=e.transformFromAst=void 0;var n=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/config/index.js"),r=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/index.js");let i=t()(function*(d,y,m){let S=yield*(0,n.default)(m);if(S===null)return null;if(!d)throw new Error("No AST given");return yield*(0,r.run)(S,y,d)});e.transformFromAst=function(d,y,m,S){if(typeof m=="function"&&(S=m,m=void 0),S===void 0)return i.sync(d,y,m);i.errback(d,y,m,S)};let u=i.sync;e.transformFromAstSync=u;let a=i.async;e.transformFromAstAsync=a},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transform-file.js":(v,e,l)=>{"use strict";function t(){let m=l("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return t=function(){return m},m}Object.defineProperty(e,"__esModule",{value:!0}),e.transformFileSync=e.transformFileAsync=e.transformFile=void 0;var n=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/config/index.js"),r=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/index.js"),i=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/gensync-utils/fs.js");let u=t()(function*(m,S){let E=Object.assign({},S,{filename:m}),h=yield*(0,n.default)(E);if(h===null)return null;let f=yield*i.readFile(m,"utf8");return yield*(0,r.run)(h,f)}),a=u.errback;e.transformFile=a;let d=u.sync;e.transformFileSync=d;let y=u.async;e.transformFileAsync=y},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transform.js":(v,e,l)=>{"use strict";function t(){let d=l("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return t=function(){return d},d}Object.defineProperty(e,"__esModule",{value:!0}),e.transformSync=e.transformAsync=e.transform=void 0;var n=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/config/index.js"),r=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/index.js");let i=t()(function*(d,y){let m=yield*(0,n.default)(y);return m===null?null:yield*(0,r.run)(m,d)});e.transform=function(d,y,m){if(typeof y=="function"&&(m=y,y=void 0),m===void 0)return i.sync(d,y);i.errback(d,y,m)};let u=i.sync;e.transformSync=u;let a=i.async;e.transformAsync=a},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js":(v,e,l)=>{"use strict";function t(){let a=l("./node_modules/.pnpm/@babel+traverse@7.18.5/node_modules/@babel/traverse/lib/index.js");return t=function(){return a},a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return r||(r=new n.default(Object.assign({},u,{visitor:t().default.explode(u.visitor)}),{})),r};var n=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/config/plugin.js");let r;function i(a){let d=a==null?void 0:a._blockHoist;return d==null?1:d===!0?2:d}let u={name:"internal.blockHoist",visitor:{Block:{exit({node:a}){let{body:d}=a,y=Math.pow(2,30)-1,m=!1;for(let S=0;S<d.length;S++){let E=i(d[S]);if(E>y){m=!0;break}y=E}m&&(a.body=function(S){let E=Object.create(null);for(let w=0;w<S.length;w++){let _=S[w],I=i(_);(E[I]||(E[I]=[])).push(_)}let h=Object.keys(E).map(w=>+w).sort((w,_)=>_-w),f=0;for(let w of h){let _=E[w];for(let I of _)S[f++]=I}return S}(d.slice()))}}}}},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/file/file.js":(v,e,l)=>{"use strict";function t(){let E=l("./node_modules/.pnpm/@babel+helpers@7.18.2/node_modules/@babel/helpers/lib/index.js");return t=function(){return E},E}function n(){let E=l("./node_modules/.pnpm/@babel+traverse@7.18.5/node_modules/@babel/traverse/lib/index.js");return n=function(){return E},E}function r(){let E=l("./stubs/babel_codeframe.js");return r=function(){return E},E}function i(){let E=l("./node_modules/.pnpm/@babel+types@7.18.4/node_modules/@babel/types/lib/index.js");return i=function(){return E},E}function u(){let E=l("./node_modules/.pnpm/@babel+helper-module-transforms@7.18.0/node_modules/@babel/helper-module-transforms/lib/index.js");return u=function(){return E},E}function a(){let E=l("./node_modules/.pnpm/semver@6.3.0/node_modules/semver/semver.js");return a=function(){return E},E}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;let{cloneNode:d,interpreterDirective:y}=i(),m={enter(E,h){let f=E.node.loc;f&&(h.loc=f,E.stop())}};class S{constructor(h,{code:f,ast:w,inputMap:_}){this._map=new Map,this.opts=void 0,this.declarations={},this.path=null,this.ast={},this.scope=void 0,this.metadata={},this.code="",this.inputMap=null,this.hub={file:this,getCode:()=>this.code,getScope:()=>this.scope,addHelper:this.addHelper.bind(this),buildError:this.buildCodeFrameError.bind(this)},this.opts=h,this.code=f,this.ast=w,this.inputMap=_,this.path=n().NodePath.get({hub:this.hub,parentPath:null,parent:this.ast,container:this.ast,key:"program"}).setContext(),this.scope=this.path.scope}get shebang(){let{interpreter:h}=this.path.node;return h?h.value:""}set shebang(h){h?this.path.get("interpreter").replaceWith(y(h)):this.path.get("interpreter").remove()}set(h,f){if(h==="helpersNamespace")throw new Error("Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility.If you are using @babel/plugin-external-helpers you will need to use a newer version than the one you currently have installed. If you have your own implementation, you'll want to explore using 'helperGenerator' alongside 'file.availableHelper()'.");this._map.set(h,f)}get(h){return this._map.get(h)}has(h){return this._map.has(h)}getModuleName(){return(0,u().getModuleName)(this.opts,this.opts)}addImport(){throw new Error("This API has been removed. If you're looking for this functionality in Babel 7, you should import the '@babel/helper-module-imports' module and use the functions exposed from that module, such as 'addNamed' or 'addDefault'.")}availableHelper(h,f){let w;try{w=t().minVersion(h)}catch(_){if(_.code!=="BABEL_HELPER_UNKNOWN")throw _;return!1}return typeof f!="string"||(a().valid(f)&&(f=`^${f}`),!a().intersects(`<${w}`,f)&&!a().intersects(">=8.0.0",f))}addHelper(h){let f=this.declarations[h];if(f)return d(f);let w=this.get("helperGenerator");if(w){let C=w(h);if(C)return C}t().ensure(h,S);let _=this.declarations[h]=this.scope.generateUidIdentifier(h),I={};for(let C of t().getDependencies(h))I[C]=this.addHelper(C);let{nodes:P,globals:R}=t().get(h,C=>I[C],_,Object.keys(this.scope.getAllBindings()));return R.forEach(C=>{this.path.scope.hasBinding(C,!0)&&this.path.scope.rename(C)}),P.forEach(C=>{C._compact=!0}),this.path.unshiftContainer("body",P),this.path.get("body").forEach(C=>{P.indexOf(C.node)!==-1&&C.isVariableDeclaration()&&this.scope.registerDeclaration(C)}),_}addTemplateObject(){throw new Error("This function has been moved into the template literal transform itself.")}buildCodeFrameError(h,f,w=SyntaxError){let _=h&&(h.loc||h._loc);if(!_&&h){let I={loc:null};(0,n().default)(h,m,this.scope,I),_=I.loc;let P="This is an error on an internal node. Probably an internal error.";_&&(P+=" Location has been estimated."),f+=` (${P})`}if(_){let{highlightCode:I=!0}=this.opts;f+=`
|
|
97
97
|
`+(0,r().codeFrameColumns)(this.code,{start:{line:_.start.line,column:_.start.column+1},end:_.end&&_.start.line===_.end.line?{line:_.end.line,column:_.end.column+1}:void 0},{highlightCode:I})}return new w(f)}}e.default=S},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/file/generate.js":(v,e,l)=>{"use strict";function t(){let i=l("./node_modules/.pnpm/convert-source-map@1.8.0/node_modules/convert-source-map/index.js");return t=function(){return i},i}function n(){let i=l("./node_modules/.pnpm/@babel+generator@7.18.2/node_modules/@babel/generator/lib/index.js");return n=function(){return i},i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(i,u){let{opts:a,ast:d,code:y,inputMap:m}=u,{generatorOpts:S}=a,E=[];for(let _ of i)for(let I of _){let{generatorOverride:P}=I;if(P){let R=P(d,S,y,n().default);R!==void 0&&E.push(R)}}let h;if(E.length===0)h=(0,n().default)(d,S,y);else{if(E.length!==1)throw new Error("More than one plugin attempted to override codegen.");if(h=E[0],typeof h.then=="function")throw new Error("You appear to be using an async codegen plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}let{code:f,decodedMap:w=h.map}=h;return w&&(w=m?(0,r.default)(m.toObject(),w,S.sourceFileName):h.map),a.sourceMaps!=="inline"&&a.sourceMaps!=="both"||(f+=`
|
|
98
|
-
`+t().fromObject(w).toComment()),a.sourceMaps==="inline"&&(w=null),{outputCode:f,outputMap:w}};var r=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/file/merge-map.js")},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/file/merge-map.js":(v,e,l)=>{"use strict";function t(){let r=l("./node_modules/.pnpm/@ampproject+remapping@2.2.0/node_modules/@ampproject/remapping/dist/remapping.mjs");return t=function(){return r},r}function n(r){return Object.assign({},r,{sourceRoot:null})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r,i,u){let a=u.replace(/\\/g,"/"),d=!1,y=t()(n(i),(m,S)=>m!==a||d?null:(d=!0,S.source="",n(r)));return typeof r.sourceRoot=="string"&&(y.sourceRoot=r.sourceRoot),Object.assign({},y)}},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/index.js":(v,e,l)=>{"use strict";function t(){let m=l("./node_modules/.pnpm/@babel+traverse@7.18.5/node_modules/@babel/traverse/lib/index.js");return t=function(){return m},m}Object.defineProperty(e,"__esModule",{value:!0}),e.run=function*(m,S,E){let h=yield*(0,u.default)(m.passes,(0,i.default)(m),S,E),f=h.opts;try{yield*function*(R,C){for(let j of C){let T=[],N=[],$=[];for(let k of j.concat([(0,r.default)()])){let U=new n.default(R,k.key,k.options);T.push([k,U]),N.push(U),$.push(k.visitor)}for(let[k,U]of T){let M=k.pre;if(M){let O=M.call(U,R);if(yield*[],y(O))throw new Error("You appear to be using an plugin with an async .pre, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}}let G=t().default.visitors.merge($,N,R.opts.wrapPluginVisitorMethod);(0,t().default)(R.ast,G,R.scope);for(let[k,U]of T){let M=k.post;if(M){let O=M.call(U,R);if(yield*[],y(O))throw new Error("You appear to be using an plugin with an async .post, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}}}}(h,m.passes)}catch(R){var w;throw R.message=`${(w=f.filename)!=null?w:"unknown"}: ${R.message}`,R.code||(R.code="BABEL_TRANSFORM_ERROR"),R}let _,I;try{f.code!==!1&&({outputCode:_,outputMap:I}=(0,a.default)(m.passes,h))}catch(R){var P;throw R.message=`${(P=f.filename)!=null?P:"unknown"}: ${R.message}`,R.code||(R.code="BABEL_GENERATE_ERROR"),R}return{metadata:h.metadata,options:f,ast:f.ast===!0?h.ast:null,code:_===void 0?null:_,map:I===void 0?null:I,sourceType:h.ast.program.sourceType,externalDependencies:(0,d.flattenToSet)(m.externalDependencies)}};var n=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/plugin-pass.js"),r=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js"),i=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/normalize-opts.js"),u=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/normalize-file.js"),a=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/file/generate.js"),d=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/config/helpers/deep-array.js");function y(m){return!(!m||typeof m!="object"&&typeof m!="function"||!m.then||typeof m.then!="function")}},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/normalize-file.js":(v,e,l)=>{"use strict";function t(){let I=l("fs");return t=function(){return I},I}function n(){let I=l("path");return n=function(){return I},I}function r(){let I=l("./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js");return r=function(){return I},I}function i(){let I=l("./node_modules/.pnpm/@babel+types@7.18.4/node_modules/@babel/types/lib/index.js");return i=function(){return I},I}function u(){let I=l("./node_modules/.pnpm/convert-source-map@1.8.0/node_modules/convert-source-map/index.js");return u=function(){return I},I}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function*(I,P,R,C){if(R=`${R||""}`,C){if(C.type==="Program")C=m(C,[],[]);else if(C.type!=="File")throw new Error("AST root must be a Program or File node");P.cloneInputAst&&(C=(0,y.default)(C))}else C=yield*(0,d.default)(I,P,R);let j=null;if(P.inputSourceMap!==!1){if(typeof P.inputSourceMap=="object"&&(j=u().fromObject(P.inputSourceMap)),!j){let T=_(h,C);if(T)try{j=u().fromComment(T)}catch(N){E("discarding unknown inline input sourcemap",N)}}if(!j){let T=_(f,C);if(typeof P.filename=="string"&&T)try{let N=f.exec(T),$=t().readFileSync(n().resolve(n().dirname(P.filename),N[1]));$.length>3e6?E("skip merging input map > 1 MB"):j=u().fromJSON($)}catch(N){E("discarding unknown file input sourcemap",N)}else T&&E("discarding un-loadable file input sourcemap")}}return new a.default(P,{code:R,ast:C,inputMap:j})};var a=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/file/file.js"),d=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/parser/index.js"),y=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/util/clone-deep.js");let{file:m,traverseFast:S}=i(),E=r()("babel:transform:file"),h=/^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/,f=/^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/;function w(I,P,R){return P&&(P=P.filter(({value:C})=>!I.test(C)||(R=C,!1))),[P,R]}function _(I,P){let R=null;return S(P,C=>{[C.leadingComments,R]=w(I,C.leadingComments,R),[C.innerComments,R]=w(I,C.innerComments,R),[C.trailingComments,R]=w(I,C.trailingComments,R)}),R}},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/normalize-opts.js":(v,e,l)=>{"use strict";function t(){let n=l("path");return t=function(){return n},n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){let{filename:r,cwd:i,filenameRelative:u=typeof r=="string"?t().relative(i,r):"unknown",sourceType:a="module",inputSourceMap:d,sourceMaps:y=!!d,sourceRoot:m=n.options.moduleRoot,sourceFileName:S=t().basename(u),comments:E=!0,compact:h="auto"}=n.options,f=n.options,w=Object.assign({},f,{parserOpts:Object.assign({sourceType:t().extname(u)===".mjs"?"module":a,sourceFileName:r,plugins:[]},f.parserOpts),generatorOpts:Object.assign({filename:r,auxiliaryCommentBefore:f.auxiliaryCommentBefore,auxiliaryCommentAfter:f.auxiliaryCommentAfter,retainLines:f.retainLines,comments:E,shouldPrintComment:f.shouldPrintComment,compact:h,minified:f.minified,sourceMaps:y,sourceRoot:m,sourceFileName:S},f.generatorOpts)});for(let _ of n.passes)for(let I of _)I.manipulateOptions&&I.manipulateOptions(w,w.parserOpts);return w}},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/plugin-pass.js":(v,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class l{constructor(n,r,i){this._map=new Map,this.key=void 0,this.file=void 0,this.opts=void 0,this.cwd=void 0,this.filename=void 0,this.key=r,this.file=n,this.opts=i||{},this.cwd=n.opts.cwd,this.filename=n.opts.filename}set(n,r){this._map.set(n,r)}get(n){return this._map.get(n)}availableHelper(n,r){return this.file.availableHelper(n,r)}addHelper(n){return this.file.addHelper(n)}addImport(){return this.file.addImport()}buildCodeFrameError(n,r,i){return this.file.buildCodeFrameError(n,r,i)}}e.default=l,l.prototype.getModuleName=function(){return this.file.getModuleName()}},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/util/clone-deep-browser.js":(v,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r){return JSON.parse(JSON.stringify(r,t),n)};let l="$$ babel internal serialized type"+Math.random();function t(r,i){return typeof i!="bigint"?i:{[l]:"BigInt",value:i.toString()}}function n(r,i){return i&&typeof i=="object"?i[l]!=="BigInt"?i:BigInt(i.value):i}},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/util/clone-deep.js":(v,e,l)=>{"use strict";function t(){let r=l("v8");return t=function(){return r},r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r){return t().deserialize&&t().serialize?t().deserialize(t().serialize(r)):(0,n.default)(r)};var n=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/util/clone-deep-browser.js")},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/vendor/import-meta-resolve.js":(v,e,l)=>{"use strict";function t(){let Q=l("url");return t=function(){return Q},Q}function n(){let Q=function(ee,ae){if(!ae&&ee&&ee.__esModule)return ee;if(ee===null||typeof ee!="object"&&typeof ee!="function")return{default:ee};var ge=a(ae);if(ge&&ge.has(ee))return ge.get(ee);var Fe={},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var se in ee)if(se!=="default"&&Object.prototype.hasOwnProperty.call(ee,se)){var Ce=te?Object.getOwnPropertyDescriptor(ee,se):null;Ce&&(Ce.get||Ce.set)?Object.defineProperty(Fe,se,Ce):Fe[se]=ee[se]}return Fe.default=ee,ge&&ge.set(ee,Fe),Fe}(l("fs"),!0);return n=function(){return Q},Q}function r(){let Q=l("path");return r=function(){return Q},Q}function i(){let Q=l("assert");return i=function(){return Q},Q}function u(){let Q=l("util");return u=function(){return Q},Q}function a(Q){if(typeof WeakMap!="function")return null;var ee=new WeakMap,ae=new WeakMap;return(a=function(ge){return ge?ae:ee})(Q)}function d(Q,ee,ae,ge,Fe,te,se){try{var Ce=Q[te](se),we=Ce.value}catch(Be){return void ae(Be)}Ce.done?ee(we):Promise.resolve(we).then(ge,Fe)}function y(Q){return function(){var ee=this,ae=arguments;return new Promise(function(ge,Fe){var te=Q.apply(ee,ae);function se(we){d(te,ge,Fe,se,Ce,"next",we)}function Ce(we){d(te,ge,Fe,se,Ce,"throw",we)}se(void 0)})}}Object.defineProperty(e,"__esModule",{value:!0}),e.moduleResolve=Ol,e.resolve=function(Q,ee){return Il.apply(this,arguments)};var m={exports:{}},S={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},E=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...Q)=>console.error("SEMVER",...Q):()=>{};(function(Q,ee){let{MAX_SAFE_COMPONENT_LENGTH:ae}=S,ge=E,Fe=(ee=Q.exports={}).re=[],te=ee.src=[],se=ee.t={},Ce=0,we=(Be,We,Qe)=>{let ft=Ce++;ge(ft,We),se[Be]=ft,te[ft]=We,Fe[ft]=new RegExp(We,Qe?"g":void 0)};we("NUMERICIDENTIFIER","0|[1-9]\\d*"),we("NUMERICIDENTIFIERLOOSE","[0-9]+"),we("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),we("MAINVERSION",`(${te[se.NUMERICIDENTIFIER]})\\.(${te[se.NUMERICIDENTIFIER]})\\.(${te[se.NUMERICIDENTIFIER]})`),we("MAINVERSIONLOOSE",`(${te[se.NUMERICIDENTIFIERLOOSE]})\\.(${te[se.NUMERICIDENTIFIERLOOSE]})\\.(${te[se.NUMERICIDENTIFIERLOOSE]})`),we("PRERELEASEIDENTIFIER",`(?:${te[se.NUMERICIDENTIFIER]}|${te[se.NONNUMERICIDENTIFIER]})`),we("PRERELEASEIDENTIFIERLOOSE",`(?:${te[se.NUMERICIDENTIFIERLOOSE]}|${te[se.NONNUMERICIDENTIFIER]})`),we("PRERELEASE",`(?:-(${te[se.PRERELEASEIDENTIFIER]}(?:\\.${te[se.PRERELEASEIDENTIFIER]})*))`),we("PRERELEASELOOSE",`(?:-?(${te[se.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${te[se.PRERELEASEIDENTIFIERLOOSE]})*))`),we("BUILDIDENTIFIER","[0-9A-Za-z-]+"),we("BUILD",`(?:\\+(${te[se.BUILDIDENTIFIER]}(?:\\.${te[se.BUILDIDENTIFIER]})*))`),we("FULLPLAIN",`v?${te[se.MAINVERSION]}${te[se.PRERELEASE]}?${te[se.BUILD]}?`),we("FULL",`^${te[se.FULLPLAIN]}$`),we("LOOSEPLAIN",`[v=\\s]*${te[se.MAINVERSIONLOOSE]}${te[se.PRERELEASELOOSE]}?${te[se.BUILD]}?`),we("LOOSE",`^${te[se.LOOSEPLAIN]}$`),we("GTLT","((?:<|>)?=?)"),we("XRANGEIDENTIFIERLOOSE",`${te[se.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),we("XRANGEIDENTIFIER",`${te[se.NUMERICIDENTIFIER]}|x|X|\\*`),we("XRANGEPLAIN",`[v=\\s]*(${te[se.XRANGEIDENTIFIER]})(?:\\.(${te[se.XRANGEIDENTIFIER]})(?:\\.(${te[se.XRANGEIDENTIFIER]})(?:${te[se.PRERELEASE]})?${te[se.BUILD]}?)?)?`),we("XRANGEPLAINLOOSE",`[v=\\s]*(${te[se.XRANGEIDENTIFIERLOOSE]})(?:\\.(${te[se.XRANGEIDENTIFIERLOOSE]})(?:\\.(${te[se.XRANGEIDENTIFIERLOOSE]})(?:${te[se.PRERELEASELOOSE]})?${te[se.BUILD]}?)?)?`),we("XRANGE",`^${te[se.GTLT]}\\s*${te[se.XRANGEPLAIN]}$`),we("XRANGELOOSE",`^${te[se.GTLT]}\\s*${te[se.XRANGEPLAINLOOSE]}$`),we("COERCE",`(^|[^\\d])(\\d{1,${ae}})(?:\\.(\\d{1,${ae}}))?(?:\\.(\\d{1,${ae}}))?(?:$|[^\\d])`),we("COERCERTL",te[se.COERCE],!0),we("LONETILDE","(?:~>?)"),we("TILDETRIM",`(\\s*)${te[se.LONETILDE]}\\s+`,!0),ee.tildeTrimReplace="$1~",we("TILDE",`^${te[se.LONETILDE]}${te[se.XRANGEPLAIN]}$`),we("TILDELOOSE",`^${te[se.LONETILDE]}${te[se.XRANGEPLAINLOOSE]}$`),we("LONECARET","(?:\\^)"),we("CARETTRIM",`(\\s*)${te[se.LONECARET]}\\s+`,!0),ee.caretTrimReplace="$1^",we("CARET",`^${te[se.LONECARET]}${te[se.XRANGEPLAIN]}$`),we("CARETLOOSE",`^${te[se.LONECARET]}${te[se.XRANGEPLAINLOOSE]}$`),we("COMPARATORLOOSE",`^${te[se.GTLT]}\\s*(${te[se.LOOSEPLAIN]})$|^$`),we("COMPARATOR",`^${te[se.GTLT]}\\s*(${te[se.FULLPLAIN]})$|^$`),we("COMPARATORTRIM",`(\\s*)${te[se.GTLT]}\\s*(${te[se.LOOSEPLAIN]}|${te[se.XRANGEPLAIN]})`,!0),ee.comparatorTrimReplace="$1$2$3",we("HYPHENRANGE",`^\\s*(${te[se.XRANGEPLAIN]})\\s+-\\s+(${te[se.XRANGEPLAIN]})\\s*$`),we("HYPHENRANGELOOSE",`^\\s*(${te[se.XRANGEPLAINLOOSE]})\\s+-\\s+(${te[se.XRANGEPLAINLOOSE]})\\s*$`),we("STAR","(<|>)?=?\\s*\\*"),we("GTE0","^\\s*>=\\s*0.0.0\\s*$"),we("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")})(m,m.exports);let h=["includePrerelease","loose","rtl"];var f=Q=>Q?typeof Q!="object"?{loose:!0}:h.filter(ee=>Q[ee]).reduce((ee,ae)=>(ee[ae]=!0,ee),{}):{};let w=/^[0-9]+$/,_=(Q,ee)=>{let ae=w.test(Q),ge=w.test(ee);return ae&&ge&&(Q=+Q,ee=+ee),Q===ee?0:ae&&!ge?-1:ge&&!ae?1:Q<ee?-1:1};var I={compareIdentifiers:_,rcompareIdentifiers:(Q,ee)=>_(ee,Q)};let P=E,{MAX_LENGTH:R,MAX_SAFE_INTEGER:C}=S,{re:j,t:T}=m.exports,N=f,{compareIdentifiers:$}=I;class G{constructor(ee,ae){if(ae=N(ae),ee instanceof G){if(ee.loose===!!ae.loose&&ee.includePrerelease===!!ae.includePrerelease)return ee;ee=ee.version}else if(typeof ee!="string")throw new TypeError(`Invalid Version: ${ee}`);if(ee.length>R)throw new TypeError(`version is longer than ${R} characters`);P("SemVer",ee,ae),this.options=ae,this.loose=!!ae.loose,this.includePrerelease=!!ae.includePrerelease;let ge=ee.trim().match(ae.loose?j[T.LOOSE]:j[T.FULL]);if(!ge)throw new TypeError(`Invalid Version: ${ee}`);if(this.raw=ee,this.major=+ge[1],this.minor=+ge[2],this.patch=+ge[3],this.major>C||this.major<0)throw new TypeError("Invalid major version");if(this.minor>C||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>C||this.patch<0)throw new TypeError("Invalid patch version");ge[4]?this.prerelease=ge[4].split(".").map(Fe=>{if(/^[0-9]+$/.test(Fe)){let te=+Fe;if(te>=0&&te<C)return te}return Fe}):this.prerelease=[],this.build=ge[5]?ge[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(ee){if(P("SemVer.compare",this.version,this.options,ee),!(ee instanceof G)){if(typeof ee=="string"&&ee===this.version)return 0;ee=new G(ee,this.options)}return ee.version===this.version?0:this.compareMain(ee)||this.comparePre(ee)}compareMain(ee){return ee instanceof G||(ee=new G(ee,this.options)),$(this.major,ee.major)||$(this.minor,ee.minor)||$(this.patch,ee.patch)}comparePre(ee){if(ee instanceof G||(ee=new G(ee,this.options)),this.prerelease.length&&!ee.prerelease.length)return-1;if(!this.prerelease.length&&ee.prerelease.length)return 1;if(!this.prerelease.length&&!ee.prerelease.length)return 0;let ae=0;do{let ge=this.prerelease[ae],Fe=ee.prerelease[ae];if(P("prerelease compare",ae,ge,Fe),ge===void 0&&Fe===void 0)return 0;if(Fe===void 0)return 1;if(ge===void 0)return-1;if(ge!==Fe)return $(ge,Fe)}while(++ae)}compareBuild(ee){ee instanceof G||(ee=new G(ee,this.options));let ae=0;do{let ge=this.build[ae],Fe=ee.build[ae];if(P("prerelease compare",ae,ge,Fe),ge===void 0&&Fe===void 0)return 0;if(Fe===void 0)return 1;if(ge===void 0)return-1;if(ge!==Fe)return $(ge,Fe)}while(++ae)}inc(ee,ae){switch(ee){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",ae);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",ae);break;case"prepatch":this.prerelease.length=0,this.inc("patch",ae),this.inc("pre",ae);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",ae),this.inc("pre",ae);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let ge=this.prerelease.length;for(;--ge>=0;)typeof this.prerelease[ge]=="number"&&(this.prerelease[ge]++,ge=-2);ge===-1&&this.prerelease.push(0)}ae&&(this.prerelease[0]===ae?isNaN(this.prerelease[1])&&(this.prerelease=[ae,0]):this.prerelease=[ae,0]);break;default:throw new Error(`invalid increment argument: ${ee}`)}return this.format(),this.raw=this.version,this}}var k=G;let{MAX_LENGTH:U}=S,{re:M,t:O}=m.exports,x=k,F=f;var L=(Q,ee)=>{if(ee=F(ee),Q instanceof x)return Q;if(typeof Q!="string"||Q.length>U||!(ee.loose?M[O.LOOSE]:M[O.FULL]).test(Q))return null;try{return new x(Q,ee)}catch{return null}};let V=L;var K=(Q,ee)=>{let ae=V(Q,ee);return ae?ae.version:null};let z=L;var X=(Q,ee)=>{let ae=z(Q.trim().replace(/^[=v]+/,""),ee);return ae?ae.version:null};let J=k;var ie=(Q,ee,ae,ge)=>{typeof ae=="string"&&(ge=ae,ae=void 0);try{return new J(Q,ae).inc(ee,ge).version}catch{return null}};let he=k;var pe=(Q,ee,ae)=>new he(Q,ae).compare(new he(ee,ae));let Ee=pe;var ye=(Q,ee,ae)=>Ee(Q,ee,ae)===0;let Y=L,re=ye;var ue=(Q,ee)=>{if(re(Q,ee))return null;{let ae=Y(Q),ge=Y(ee),Fe=ae.prerelease.length||ge.prerelease.length,te=Fe?"pre":"",se=Fe?"prerelease":"";for(let Ce in ae)if((Ce==="major"||Ce==="minor"||Ce==="patch")&&ae[Ce]!==ge[Ce])return te+Ce;return se}};let ce=k;var Ie=(Q,ee)=>new ce(Q,ee).major;let Ae=k;var ve=(Q,ee)=>new Ae(Q,ee).minor;let xe=k;var Se=(Q,ee)=>new xe(Q,ee).patch;let Ve=L;var $e=(Q,ee)=>{let ae=Ve(Q,ee);return ae&&ae.prerelease.length?ae.prerelease:null};let de=pe;var q=(Q,ee,ae)=>de(ee,Q,ae);let ne=pe;var Te=(Q,ee)=>ne(Q,ee,!0);let je=k;var Oe=(Q,ee,ae)=>{let ge=new je(Q,ae),Fe=new je(ee,ae);return ge.compare(Fe)||ge.compareBuild(Fe)};let be=Oe;var rt=(Q,ee)=>Q.sort((ae,ge)=>be(ae,ge,ee));let Lt=Oe;var Ft=(Q,ee)=>Q.sort((ae,ge)=>Lt(ge,ae,ee));let wt=pe;var Rt=(Q,ee,ae)=>wt(Q,ee,ae)>0;let Vt=pe;var Et=(Q,ee,ae)=>Vt(Q,ee,ae)<0;let ht=pe;var Kt=(Q,ee,ae)=>ht(Q,ee,ae)!==0;let Ye=pe;var Mr=(Q,ee,ae)=>Ye(Q,ee,ae)>=0;let lr=pe;var Cr=(Q,ee,ae)=>lr(Q,ee,ae)<=0;let Gr=ye,an=Kt,Pe=Rt,De=Mr,_e=Et,Le=Cr;var Ue=(Q,ee,ae,ge)=>{switch(ee){case"===":return typeof Q=="object"&&(Q=Q.version),typeof ae=="object"&&(ae=ae.version),Q===ae;case"!==":return typeof Q=="object"&&(Q=Q.version),typeof ae=="object"&&(ae=ae.version),Q!==ae;case"":case"=":case"==":return Gr(Q,ae,ge);case"!=":return an(Q,ae,ge);case">":return Pe(Q,ae,ge);case">=":return De(Q,ae,ge);case"<":return _e(Q,ae,ge);case"<=":return Le(Q,ae,ge);default:throw new TypeError(`Invalid operator: ${ee}`)}};let Xe=k,Je=L,{re:ct,t:mt}=m.exports;var At,$t,Dt,Bt,Nt,Xt,zt,Qt,Jt,br,ar=(Q,ee)=>{if(Q instanceof Xe)return Q;if(typeof Q=="number"&&(Q=String(Q)),typeof Q!="string")return null;let ae=null;if((ee=ee||{}).rtl){let ge;for(;(ge=ct[mt.COERCERTL].exec(Q))&&(!ae||ae.index+ae[0].length!==Q.length);)ae&&ge.index+ge[0].length===ae.index+ae[0].length||(ae=ge),ct[mt.COERCERTL].lastIndex=ge.index+ge[1].length+ge[2].length;ct[mt.COERCERTL].lastIndex=-1}else ae=Q.match(ct[mt.COERCE]);return ae===null?null:Je(`${ae[2]}.${ae[3]||"0"}.${ae[4]||"0"}`,ee)};function wr(){if(Bt)return Dt;function Q(te){var se=this;if(se instanceof Q||(se=new Q),se.tail=null,se.head=null,se.length=0,te&&typeof te.forEach=="function")te.forEach(function(Be){se.push(Be)});else if(arguments.length>0)for(var Ce=0,we=arguments.length;Ce<we;Ce++)se.push(arguments[Ce]);return se}function ee(te,se,Ce){var we=se===te.head?new Fe(Ce,null,se,te):new Fe(Ce,se,se.next,te);return we.next===null&&(te.tail=we),we.prev===null&&(te.head=we),te.length++,we}function ae(te,se){te.tail=new Fe(se,te.tail,null,te),te.head||(te.head=te.tail),te.length++}function ge(te,se){te.head=new Fe(se,null,te.head,te),te.tail||(te.tail=te.head),te.length++}function Fe(te,se,Ce,we){if(!(this instanceof Fe))return new Fe(te,se,Ce,we);this.list=we,this.value=te,se?(se.next=this,this.prev=se):this.prev=null,Ce?(Ce.prev=this,this.next=Ce):this.next=null}Bt=1,Dt=Q,Q.Node=Fe,Q.create=Q,Q.prototype.removeNode=function(te){if(te.list!==this)throw new Error("removing node which does not belong to this list");var se=te.next,Ce=te.prev;return se&&(se.prev=Ce),Ce&&(Ce.next=se),te===this.head&&(this.head=se),te===this.tail&&(this.tail=Ce),te.list.length--,te.next=null,te.prev=null,te.list=null,se},Q.prototype.unshiftNode=function(te){if(te!==this.head){te.list&&te.list.removeNode(te);var se=this.head;te.list=this,te.next=se,se&&(se.prev=te),this.head=te,this.tail||(this.tail=te),this.length++}},Q.prototype.pushNode=function(te){if(te!==this.tail){te.list&&te.list.removeNode(te);var se=this.tail;te.list=this,te.prev=se,se&&(se.next=te),this.tail=te,this.head||(this.head=te),this.length++}},Q.prototype.push=function(){for(var te=0,se=arguments.length;te<se;te++)ae(this,arguments[te]);return this.length},Q.prototype.unshift=function(){for(var te=0,se=arguments.length;te<se;te++)ge(this,arguments[te]);return this.length},Q.prototype.pop=function(){if(this.tail){var te=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,te}},Q.prototype.shift=function(){if(this.head){var te=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,te}},Q.prototype.forEach=function(te,se){se=se||this;for(var Ce=this.head,we=0;Ce!==null;we++)te.call(se,Ce.value,we,this),Ce=Ce.next},Q.prototype.forEachReverse=function(te,se){se=se||this;for(var Ce=this.tail,we=this.length-1;Ce!==null;we--)te.call(se,Ce.value,we,this),Ce=Ce.prev},Q.prototype.get=function(te){for(var se=0,Ce=this.head;Ce!==null&&se<te;se++)Ce=Ce.next;if(se===te&&Ce!==null)return Ce.value},Q.prototype.getReverse=function(te){for(var se=0,Ce=this.tail;Ce!==null&&se<te;se++)Ce=Ce.prev;if(se===te&&Ce!==null)return Ce.value},Q.prototype.map=function(te,se){se=se||this;for(var Ce=new Q,we=this.head;we!==null;)Ce.push(te.call(se,we.value,this)),we=we.next;return Ce},Q.prototype.mapReverse=function(te,se){se=se||this;for(var Ce=new Q,we=this.tail;we!==null;)Ce.push(te.call(se,we.value,this)),we=we.prev;return Ce},Q.prototype.reduce=function(te,se){var Ce,we=this.head;if(arguments.length>1)Ce=se;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");we=this.head.next,Ce=this.head.value}for(var Be=0;we!==null;Be++)Ce=te(Ce,we.value,Be),we=we.next;return Ce},Q.prototype.reduceReverse=function(te,se){var Ce,we=this.tail;if(arguments.length>1)Ce=se;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");we=this.tail.prev,Ce=this.tail.value}for(var Be=this.length-1;we!==null;Be--)Ce=te(Ce,we.value,Be),we=we.prev;return Ce},Q.prototype.toArray=function(){for(var te=new Array(this.length),se=0,Ce=this.head;Ce!==null;se++)te[se]=Ce.value,Ce=Ce.next;return te},Q.prototype.toArrayReverse=function(){for(var te=new Array(this.length),se=0,Ce=this.tail;Ce!==null;se++)te[se]=Ce.value,Ce=Ce.prev;return te},Q.prototype.slice=function(te,se){(se=se||this.length)<0&&(se+=this.length),(te=te||0)<0&&(te+=this.length);var Ce=new Q;if(se<te||se<0)return Ce;te<0&&(te=0),se>this.length&&(se=this.length);for(var we=0,Be=this.head;Be!==null&&we<te;we++)Be=Be.next;for(;Be!==null&&we<se;we++,Be=Be.next)Ce.push(Be.value);return Ce},Q.prototype.sliceReverse=function(te,se){(se=se||this.length)<0&&(se+=this.length),(te=te||0)<0&&(te+=this.length);var Ce=new Q;if(se<te||se<0)return Ce;te<0&&(te=0),se>this.length&&(se=this.length);for(var we=this.length,Be=this.tail;Be!==null&&we>se;we--)Be=Be.prev;for(;Be!==null&&we>te;we--,Be=Be.prev)Ce.push(Be.value);return Ce},Q.prototype.splice=function(te,se,...Ce){te>this.length&&(te=this.length-1),te<0&&(te=this.length+te);for(var we=0,Be=this.head;Be!==null&&we<te;we++)Be=Be.next;var We=[];for(we=0;Be&&we<se;we++)We.push(Be.value),Be=this.removeNode(Be);for(Be===null&&(Be=this.tail),Be!==this.head&&Be!==this.tail&&(Be=Be.prev),we=0;we<Ce.length;we++)Be=ee(this,Be,Ce[we]);return We},Q.prototype.reverse=function(){for(var te=this.head,se=this.tail,Ce=te;Ce!==null;Ce=Ce.prev){var we=Ce.prev;Ce.prev=Ce.next,Ce.next=we}return this.head=se,this.tail=te,this};try{($t?At:($t=1,At=function(te){te.prototype[Symbol.iterator]=function*(){for(let se=this.head;se;se=se.next)yield se.value}}))(Q)}catch{}return Dt}function fe(){if(Qt)return zt;Qt=1;class Q{constructor(qe,Tt){if(Tt=ge(Tt),qe instanceof Q)return qe.loose===!!Tt.loose&&qe.includePrerelease===!!Tt.includePrerelease?qe:new Q(qe.raw,Tt);if(qe instanceof Fe)return this.raw=qe.value,this.set=[[qe]],this.format(),this;if(this.options=Tt,this.loose=!!Tt.loose,this.includePrerelease=!!Tt.includePrerelease,this.raw=qe,this.set=qe.split(/\s*\|\|\s*/).map(yt=>this.parseRange(yt.trim())).filter(yt=>yt.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${qe}`);if(this.set.length>1){let yt=this.set[0];if(this.set=this.set.filter(gt=>!ft(gt[0])),this.set.length===0)this.set=[yt];else if(this.set.length>1){for(let gt of this.set)if(gt.length===1&&at(gt[0])){this.set=[gt];break}}}this.format()}format(){return this.range=this.set.map(qe=>qe.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(qe){qe=qe.trim();let Tt=`parseRange:${Object.keys(this.options).join(",")}:${qe}`,yt=ae.get(Tt);if(yt)return yt;let gt=this.options.loose,pt=gt?Ce[we.HYPHENRANGELOOSE]:Ce[we.HYPHENRANGE];qe=qe.replace(pt,Bm(this.options.includePrerelease)),te("hyphen replace",qe),qe=qe.replace(Ce[we.COMPARATORTRIM],Be),te("comparator trim",qe,Ce[we.COMPARATORTRIM]),qe=(qe=(qe=qe.replace(Ce[we.TILDETRIM],We)).replace(Ce[we.CARETTRIM],Qe)).split(/\s+/).join(" ");let Pt=gt?Ce[we.COMPARATORLOOSE]:Ce[we.COMPARATOR],Yt=qe.split(" ").map(Zt=>Fr(Zt,this.options)).join(" ").split(/\s+/).map(Zt=>Mm(Zt,this.options)).filter(this.options.loose?Zt=>!!Zt.match(Pt):()=>!0).map(Zt=>new Fe(Zt,this.options));Yt.length;let _t=new Map;for(let Zt of Yt){if(ft(Zt))return[Zt];_t.set(Zt.value,Zt)}_t.size>1&&_t.has("")&&_t.delete("");let Gt=[..._t.values()];return ae.set(Tt,Gt),Gt}intersects(qe,Tt){if(!(qe instanceof Q))throw new TypeError("a Range is required");return this.set.some(yt=>hr(yt,Tt)&&qe.set.some(gt=>hr(gt,Tt)&&yt.every(pt=>gt.every(Pt=>pt.intersects(Pt,Tt)))))}test(qe){if(!qe)return!1;if(typeof qe=="string")try{qe=new se(qe,this.options)}catch{return!1}for(let Tt=0;Tt<this.set.length;Tt++)if($m(this.set[Tt],qe,this.options))return!0;return!1}}zt=Q;let ee=function(){if(Xt)return Nt;Xt=1;let lt=wr(),qe=Symbol("max"),Tt=Symbol("length"),yt=Symbol("lengthCalculator"),gt=Symbol("allowStale"),pt=Symbol("maxAge"),Pt=Symbol("dispose"),Yt=Symbol("noDisposeOnSet"),_t=Symbol("lruList"),Gt=Symbol("cache"),Zt=Symbol("updateAgeOnGet"),Yr=()=>1,en=(Ge,Ct,Mt)=>{let ir=Ge[Gt].get(Ct);if(ir){let pr=ir.value;if(pi(Ge,pr)){if($n(Ge,ir),!Ge[gt])return}else Mt&&(Ge[Zt]&&(ir.value.now=Date.now()),Ge[_t].unshiftNode(ir));return pr.value}},pi=(Ge,Ct)=>{if(!Ct||!Ct.maxAge&&!Ge[pt])return!1;let Mt=Date.now()-Ct.now;return Ct.maxAge?Mt>Ct.maxAge:Ge[pt]&&Mt>Ge[pt]},di=Ge=>{if(Ge[Tt]>Ge[qe])for(let Ct=Ge[_t].tail;Ge[Tt]>Ge[qe]&&Ct!==null;){let Mt=Ct.prev;$n(Ge,Ct),Ct=Mt}},$n=(Ge,Ct)=>{if(Ct){let Mt=Ct.value;Ge[Pt]&&Ge[Pt](Mt.key,Mt.value),Ge[Tt]-=Mt.length,Ge[Gt].delete(Mt.key),Ge[_t].removeNode(Ct)}};class Um{constructor(Ct,Mt,ir,pr,ln){this.key=Ct,this.value=Mt,this.length=ir,this.now=pr,this.maxAge=ln||0}}let Nl=(Ge,Ct,Mt,ir)=>{let pr=Mt.value;pi(Ge,pr)&&($n(Ge,Mt),Ge[gt]||(pr=void 0)),pr&&Ct.call(ir,pr.value,pr.key,Ge)};return Nt=class{constructor(Ge){if(typeof Ge=="number"&&(Ge={max:Ge}),Ge||(Ge={}),Ge.max&&(typeof Ge.max!="number"||Ge.max<0))throw new TypeError("max must be a non-negative number");this[qe]=Ge.max||1/0;let Ct=Ge.length||Yr;if(this[yt]=typeof Ct!="function"?Yr:Ct,this[gt]=Ge.stale||!1,Ge.maxAge&&typeof Ge.maxAge!="number")throw new TypeError("maxAge must be a number");this[pt]=Ge.maxAge||0,this[Pt]=Ge.dispose,this[Yt]=Ge.noDisposeOnSet||!1,this[Zt]=Ge.updateAgeOnGet||!1,this.reset()}set max(Ge){if(typeof Ge!="number"||Ge<0)throw new TypeError("max must be a non-negative number");this[qe]=Ge||1/0,di(this)}get max(){return this[qe]}set allowStale(Ge){this[gt]=!!Ge}get allowStale(){return this[gt]}set maxAge(Ge){if(typeof Ge!="number")throw new TypeError("maxAge must be a non-negative number");this[pt]=Ge,di(this)}get maxAge(){return this[pt]}set lengthCalculator(Ge){typeof Ge!="function"&&(Ge=Yr),Ge!==this[yt]&&(this[yt]=Ge,this[Tt]=0,this[_t].forEach(Ct=>{Ct.length=this[yt](Ct.value,Ct.key),this[Tt]+=Ct.length})),di(this)}get lengthCalculator(){return this[yt]}get length(){return this[Tt]}get itemCount(){return this[_t].length}rforEach(Ge,Ct){Ct=Ct||this;for(let Mt=this[_t].tail;Mt!==null;){let ir=Mt.prev;Nl(this,Ge,Mt,Ct),Mt=ir}}forEach(Ge,Ct){Ct=Ct||this;for(let Mt=this[_t].head;Mt!==null;){let ir=Mt.next;Nl(this,Ge,Mt,Ct),Mt=ir}}keys(){return this[_t].toArray().map(Ge=>Ge.key)}values(){return this[_t].toArray().map(Ge=>Ge.value)}reset(){this[Pt]&&this[_t]&&this[_t].length&&this[_t].forEach(Ge=>this[Pt](Ge.key,Ge.value)),this[Gt]=new Map,this[_t]=new lt,this[Tt]=0}dump(){return this[_t].map(Ge=>!pi(this,Ge)&&{k:Ge.key,v:Ge.value,e:Ge.now+(Ge.maxAge||0)}).toArray().filter(Ge=>Ge)}dumpLru(){return this[_t]}set(Ge,Ct,Mt){if((Mt=Mt||this[pt])&&typeof Mt!="number")throw new TypeError("maxAge must be a number");let ir=Mt?Date.now():0,pr=this[yt](Ct,Ge);if(this[Gt].has(Ge)){if(pr>this[qe])return $n(this,this[Gt].get(Ge)),!1;let Un=this[Gt].get(Ge).value;return this[Pt]&&(this[Yt]||this[Pt](Ge,Un.value)),Un.now=ir,Un.maxAge=Mt,Un.value=Ct,this[Tt]+=pr-Un.length,Un.length=pr,this.get(Ge),di(this),!0}let ln=new Um(Ge,Ct,pr,ir,Mt);return ln.length>this[qe]?(this[Pt]&&this[Pt](Ge,Ct),!1):(this[Tt]+=ln.length,this[_t].unshift(ln),this[Gt].set(Ge,this[_t].head),di(this),!0)}has(Ge){if(!this[Gt].has(Ge))return!1;let Ct=this[Gt].get(Ge).value;return!pi(this,Ct)}get(Ge){return en(this,Ge,!0)}peek(Ge){return en(this,Ge,!1)}pop(){let Ge=this[_t].tail;return Ge?($n(this,Ge),Ge.value):null}del(Ge){$n(this,this[Gt].get(Ge))}load(Ge){this.reset();let Ct=Date.now();for(let Mt=Ge.length-1;Mt>=0;Mt--){let ir=Ge[Mt],pr=ir.e||0;if(pr===0)this.set(ir.k,ir.v);else{let ln=pr-Ct;ln>0&&this.set(ir.k,ir.v,ln)}}}prune(){this[Gt].forEach((Ge,Ct)=>en(this,Ct,!1))}}}(),ae=new ee({max:1e3}),ge=f,Fe=le(),te=E,se=k,{re:Ce,t:we,comparatorTrimReplace:Be,tildeTrimReplace:We,caretTrimReplace:Qe}=m.exports,ft=lt=>lt.value==="<0.0.0-0",at=lt=>lt.value==="",hr=(lt,qe)=>{let Tt=!0,yt=lt.slice(),gt=yt.pop();for(;Tt&&yt.length;)Tt=yt.every(pt=>gt.intersects(pt,qe)),gt=yt.pop();return Tt},Fr=(lt,qe)=>(te("comp",lt,qe),lt=jm(lt,qe),te("caret",lt),lt=Bn(lt,qe),te("tildes",lt),lt=Rm(lt,qe),te("xrange",lt),lt=Lm(lt,qe),te("stars",lt),lt),er=lt=>!lt||lt.toLowerCase()==="x"||lt==="*",Bn=(lt,qe)=>lt.trim().split(/\s+/).map(Tt=>Nm(Tt,qe)).join(" "),Nm=(lt,qe)=>{let Tt=qe.loose?Ce[we.TILDELOOSE]:Ce[we.TILDE];return lt.replace(Tt,(yt,gt,pt,Pt,Yt)=>{let _t;return te("tilde",lt,yt,gt,pt,Pt,Yt),er(gt)?_t="":er(pt)?_t=`>=${gt}.0.0 <${+gt+1}.0.0-0`:er(Pt)?_t=`>=${gt}.${pt}.0 <${gt}.${+pt+1}.0-0`:Yt?(te("replaceTilde pr",Yt),_t=`>=${gt}.${pt}.${Pt}-${Yt} <${gt}.${+pt+1}.0-0`):_t=`>=${gt}.${pt}.${Pt} <${gt}.${+pt+1}.0-0`,te("tilde return",_t),_t})},jm=(lt,qe)=>lt.trim().split(/\s+/).map(Tt=>Fm(Tt,qe)).join(" "),Fm=(lt,qe)=>{te("caret",lt,qe);let Tt=qe.loose?Ce[we.CARETLOOSE]:Ce[we.CARET],yt=qe.includePrerelease?"-0":"";return lt.replace(Tt,(gt,pt,Pt,Yt,_t)=>{let Gt;return te("caret",lt,gt,pt,Pt,Yt,_t),er(pt)?Gt="":er(Pt)?Gt=`>=${pt}.0.0${yt} <${+pt+1}.0.0-0`:er(Yt)?Gt=pt==="0"?`>=${pt}.${Pt}.0${yt} <${pt}.${+Pt+1}.0-0`:`>=${pt}.${Pt}.0${yt} <${+pt+1}.0.0-0`:_t?(te("replaceCaret pr",_t),Gt=pt==="0"?Pt==="0"?`>=${pt}.${Pt}.${Yt}-${_t} <${pt}.${Pt}.${+Yt+1}-0`:`>=${pt}.${Pt}.${Yt}-${_t} <${pt}.${+Pt+1}.0-0`:`>=${pt}.${Pt}.${Yt}-${_t} <${+pt+1}.0.0-0`):(te("no pr"),Gt=pt==="0"?Pt==="0"?`>=${pt}.${Pt}.${Yt}${yt} <${pt}.${Pt}.${+Yt+1}-0`:`>=${pt}.${Pt}.${Yt}${yt} <${pt}.${+Pt+1}.0-0`:`>=${pt}.${Pt}.${Yt} <${+pt+1}.0.0-0`),te("caret return",Gt),Gt})},Rm=(lt,qe)=>(te("replaceXRanges",lt,qe),lt.split(/\s+/).map(Tt=>km(Tt,qe)).join(" ")),km=(lt,qe)=>{lt=lt.trim();let Tt=qe.loose?Ce[we.XRANGELOOSE]:Ce[we.XRANGE];return lt.replace(Tt,(yt,gt,pt,Pt,Yt,_t)=>{te("xRange",lt,yt,gt,pt,Pt,Yt,_t);let Gt=er(pt),Zt=Gt||er(Pt),Yr=Zt||er(Yt),en=Yr;return gt==="="&&en&&(gt=""),_t=qe.includePrerelease?"-0":"",Gt?yt=gt===">"||gt==="<"?"<0.0.0-0":"*":gt&&en?(Zt&&(Pt=0),Yt=0,gt===">"?(gt=">=",Zt?(pt=+pt+1,Pt=0,Yt=0):(Pt=+Pt+1,Yt=0)):gt==="<="&&(gt="<",Zt?pt=+pt+1:Pt=+Pt+1),gt==="<"&&(_t="-0"),yt=`${gt+pt}.${Pt}.${Yt}${_t}`):Zt?yt=`>=${pt}.0.0${_t} <${+pt+1}.0.0-0`:Yr&&(yt=`>=${pt}.${Pt}.0${_t} <${pt}.${+Pt+1}.0-0`),te("xRange return",yt),yt})},Lm=(lt,qe)=>(te("replaceStars",lt,qe),lt.trim().replace(Ce[we.STAR],"")),Mm=(lt,qe)=>(te("replaceGTE0",lt,qe),lt.trim().replace(Ce[qe.includePrerelease?we.GTE0PRE:we.GTE0],"")),Bm=lt=>(qe,Tt,yt,gt,pt,Pt,Yt,_t,Gt,Zt,Yr,en,pi)=>`${Tt=er(yt)?"":er(gt)?`>=${yt}.0.0${lt?"-0":""}`:er(pt)?`>=${yt}.${gt}.0${lt?"-0":""}`:Pt?`>=${Tt}`:`>=${Tt}${lt?"-0":""}`} ${_t=er(Gt)?"":er(Zt)?`<${+Gt+1}.0.0-0`:er(Yr)?`<${Gt}.${+Zt+1}.0-0`:en?`<=${Gt}.${Zt}.${Yr}-${en}`:lt?`<${Gt}.${Zt}.${+Yr+1}-0`:`<=${_t}`}`.trim(),$m=(lt,qe,Tt)=>{for(let yt=0;yt<lt.length;yt++)if(!lt[yt].test(qe))return!1;if(qe.prerelease.length&&!Tt.includePrerelease){for(let yt=0;yt<lt.length;yt++)if(te(lt[yt].semver),lt[yt].semver!==Fe.ANY&<[yt].semver.prerelease.length>0){let gt=lt[yt].semver;if(gt.major===qe.major&>.minor===qe.minor&>.patch===qe.patch)return!0}return!1}return!0};return zt}function le(){if(br)return Jt;br=1;let Q=Symbol("SemVer ANY");class ee{static get ANY(){return Q}constructor(We,Qe){if(Qe=ae(Qe),We instanceof ee){if(We.loose===!!Qe.loose)return We;We=We.value}se("comparator",We,Qe),this.options=Qe,this.loose=!!Qe.loose,this.parse(We),this.semver===Q?this.value="":this.value=this.operator+this.semver.version,se("comp",this)}parse(We){let Qe=this.options.loose?ge[Fe.COMPARATORLOOSE]:ge[Fe.COMPARATOR],ft=We.match(Qe);if(!ft)throw new TypeError(`Invalid comparator: ${We}`);this.operator=ft[1]!==void 0?ft[1]:"",this.operator==="="&&(this.operator=""),ft[2]?this.semver=new Ce(ft[2],this.options.loose):this.semver=Q}toString(){return this.value}test(We){if(se("Comparator.test",We,this.options.loose),this.semver===Q||We===Q)return!0;if(typeof We=="string")try{We=new Ce(We,this.options)}catch{return!1}return te(We,this.operator,this.semver,this.options)}intersects(We,Qe){if(!(We instanceof ee))throw new TypeError("a Comparator is required");if(Qe&&typeof Qe=="object"||(Qe={loose:!!Qe,includePrerelease:!1}),this.operator==="")return this.value===""||new we(We.value,Qe).test(this.value);if(We.operator==="")return We.value===""||new we(this.value,Qe).test(We.semver);let ft=!(this.operator!==">="&&this.operator!==">"||We.operator!==">="&&We.operator!==">"),at=!(this.operator!=="<="&&this.operator!=="<"||We.operator!=="<="&&We.operator!=="<"),hr=this.semver.version===We.semver.version,Fr=!(this.operator!==">="&&this.operator!=="<="||We.operator!==">="&&We.operator!=="<="),er=te(this.semver,"<",We.semver,Qe)&&(this.operator===">="||this.operator===">")&&(We.operator==="<="||We.operator==="<"),Bn=te(this.semver,">",We.semver,Qe)&&(this.operator==="<="||this.operator==="<")&&(We.operator===">="||We.operator===">");return ft||at||hr&&Fr||er||Bn}}Jt=ee;let ae=f,{re:ge,t:Fe}=m.exports,te=Ue,se=E,Ce=k,we=fe();return Jt}let Me=fe();var ke=(Q,ee,ae)=>{try{ee=new Me(ee,ae)}catch{return!1}return ee.test(Q)};let Ke=fe();var et=(Q,ee)=>new Ke(Q,ee).set.map(ae=>ae.map(ge=>ge.value).join(" ").trim().split(" "));let Ze=k,ot=fe();var st=(Q,ee,ae)=>{let ge=null,Fe=null,te=null;try{te=new ot(ee,ae)}catch{return null}return Q.forEach(se=>{te.test(se)&&(ge&&Fe.compare(se)!==-1||(ge=se,Fe=new Ze(ge,ae)))}),ge};let nt=k,vt=fe();var xt=(Q,ee,ae)=>{let ge=null,Fe=null,te=null;try{te=new vt(ee,ae)}catch{return null}return Q.forEach(se=>{te.test(se)&&(ge&&Fe.compare(se)!==1||(ge=se,Fe=new nt(ge,ae)))}),ge};let it=k,bt=fe(),He=Rt;var St=(Q,ee)=>{Q=new bt(Q,ee);let ae=new it("0.0.0");if(Q.test(ae)||(ae=new it("0.0.0-0"),Q.test(ae)))return ae;ae=null;for(let ge=0;ge<Q.set.length;++ge){let Fe=Q.set[ge],te=null;Fe.forEach(se=>{let Ce=new it(se.semver.version);switch(se.operator){case">":Ce.prerelease.length===0?Ce.patch++:Ce.prerelease.push(0),Ce.raw=Ce.format();case"":case">=":te&&!He(Ce,te)||(te=Ce);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${se.operator}`)}}),!te||ae&&!He(ae,te)||(ae=te)}return ae&&Q.test(ae)?ae:null};let Ut=fe();var ur=(Q,ee)=>{try{return new Ut(Q,ee).range||"*"}catch{return null}};let Kr=k,Nr=le(),{ANY:jt}=Nr,jr=fe(),cr=ke,Hr=Rt,on=Et,kn=Cr,oi=Mr;var Zr=(Q,ee,ae,ge)=>{let Fe,te,se,Ce,we;switch(Q=new Kr(Q,ge),ee=new jr(ee,ge),ae){case">":Fe=Hr,te=kn,se=on,Ce=">",we=">=";break;case"<":Fe=on,te=oi,se=Hr,Ce="<",we="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(cr(Q,ee,ge))return!1;for(let Be=0;Be<ee.set.length;++Be){let We=ee.set[Be],Qe=null,ft=null;if(We.forEach(at=>{at.semver===jt&&(at=new Nr(">=0.0.0")),Qe=Qe||at,ft=ft||at,Fe(at.semver,Qe.semver,ge)?Qe=at:se(at.semver,ft.semver,ge)&&(ft=at)}),Qe.operator===Ce||Qe.operator===we||(!ft.operator||ft.operator===Ce)&&te(Q,ft.semver)||ft.operator===we&&se(Q,ft.semver))return!1}return!0};let Fi=Zr;var li=(Q,ee,ae)=>Fi(Q,ee,">",ae);let Ls=Zr;var Ms=(Q,ee,ae)=>Ls(Q,ee,"<",ae);let Ln=fe();var Ri=(Q,ee,ae)=>(Q=new Ln(Q,ae),ee=new Ln(ee,ae),Q.intersects(ee));let Bs=ke,Pn=pe,ui=fe(),W=le(),{ANY:s}=W,o=ke,g=pe,D=(Q,ee,ae)=>{if(Q===ee)return!0;if(Q.length===1&&Q[0].semver===s){if(ee.length===1&&ee[0].semver===s)return!0;Q=ae.includePrerelease?[new W(">=0.0.0-0")]:[new W(">=0.0.0")]}if(ee.length===1&&ee[0].semver===s){if(ae.includePrerelease)return!0;ee=[new W(">=0.0.0")]}let ge=new Set,Fe,te,se,Ce,we,Be,We;for(let at of Q)at.operator===">"||at.operator===">="?Fe=B(Fe,at,ae):at.operator==="<"||at.operator==="<="?te=H(te,at,ae):ge.add(at.semver);if(ge.size>1||Fe&&te&&(se=g(Fe.semver,te.semver,ae),se>0||se===0&&(Fe.operator!==">="||te.operator!=="<=")))return null;for(let at of ge){if(Fe&&!o(at,String(Fe),ae)||te&&!o(at,String(te),ae))return null;for(let hr of ee)if(!o(at,String(hr),ae))return!1;return!0}let Qe=!(!te||ae.includePrerelease||!te.semver.prerelease.length)&&te.semver,ft=!(!Fe||ae.includePrerelease||!Fe.semver.prerelease.length)&&Fe.semver;Qe&&Qe.prerelease.length===1&&te.operator==="<"&&Qe.prerelease[0]===0&&(Qe=!1);for(let at of ee){if(We=We||at.operator===">"||at.operator===">=",Be=Be||at.operator==="<"||at.operator==="<=",Fe){if(ft&&at.semver.prerelease&&at.semver.prerelease.length&&at.semver.major===ft.major&&at.semver.minor===ft.minor&&at.semver.patch===ft.patch&&(ft=!1),at.operator===">"||at.operator===">="){if(Ce=B(Fe,at,ae),Ce===at&&Ce!==Fe)return!1}else if(Fe.operator===">="&&!o(Fe.semver,String(at),ae))return!1}if(te){if(Qe&&at.semver.prerelease&&at.semver.prerelease.length&&at.semver.major===Qe.major&&at.semver.minor===Qe.minor&&at.semver.patch===Qe.patch&&(Qe=!1),at.operator==="<"||at.operator==="<="){if(we=H(te,at,ae),we===at&&we!==te)return!1}else if(te.operator==="<="&&!o(te.semver,String(at),ae))return!1}if(!at.operator&&(te||Fe)&&se!==0)return!1}return!(Fe&&Be&&!te&&se!==0)&&!(te&&We&&!Fe&&se!==0)&&!ft&&!Qe},B=(Q,ee,ae)=>{if(!Q)return ee;let ge=g(Q.semver,ee.semver,ae);return ge>0?Q:ge<0||ee.operator===">"&&Q.operator===">="?ee:Q},H=(Q,ee,ae)=>{if(!Q)return ee;let ge=g(Q.semver,ee.semver,ae);return ge<0?Q:ge>0||ee.operator==="<"&&Q.operator==="<="?ee:Q};var Z=(Q,ee,ae={})=>{if(Q===ee)return!0;Q=new ui(Q,ae),ee=new ui(ee,ae);let ge=!1;e:for(let Fe of Q.set){for(let te of ee.set){let se=D(Fe,te,ae);if(ge=ge||se!==null,se)continue e}if(ge)return!1}return!0};let oe=m.exports;var me={re:oe.re,src:oe.src,tokens:oe.t,SEMVER_SPEC_VERSION:S.SEMVER_SPEC_VERSION,SemVer:k,compareIdentifiers:I.compareIdentifiers,rcompareIdentifiers:I.rcompareIdentifiers,parse:L,valid:K,clean:X,inc:ie,diff:ue,major:Ie,minor:ve,patch:Se,prerelease:$e,compare:pe,rcompare:q,compareLoose:Te,compareBuild:Oe,sort:rt,rsort:Ft,gt:Rt,lt:Et,eq:ye,neq:Kt,gte:Mr,lte:Cr,cmp:Ue,coerce:ar,Comparator:le(),Range:fe(),satisfies:ke,toComparators:et,maxSatisfying:st,minSatisfying:xt,minVersion:St,validRange:ur,outside:Zr,gtr:li,ltr:Ms,intersects:Ri,simplifyRange:(Q,ee,ae)=>{let ge=[],Fe=null,te=null,se=Q.sort((We,Qe)=>Pn(We,Qe,ae));for(let We of se)Bs(We,ee,ae)?(te=We,Fe||(Fe=We)):(te&&ge.push([Fe,te]),te=null,Fe=null);Fe&&ge.push([Fe,null]);let Ce=[];for(let[We,Qe]of ge)We===Qe?Ce.push(We):Qe||We!==se[0]?Qe?We===se[0]?Ce.push(`<=${Qe}`):Ce.push(`${We} - ${Qe}`):Ce.push(`>=${We}`):Ce.push("*");let we=Ce.join(" || "),Be=typeof ee.raw=="string"?ee.raw:String(ee);return we.length<Be.length?we:ee},subset:Z},Ne=me;let ze={read:function(Q){return ut(r().dirname(Q))}};function ut(Q){try{return{string:n().default.readFileSync(r().toNamespacedPath(r().join(Q,"package.json")),"utf8")}}catch(ee){if(ee.code==="ENOENT"){let ae=r().dirname(Q);return Q!==ae?ut(ae):{string:void 0}}throw ee}}let dt=process.platform==="win32",Ot={}.hasOwnProperty,kt={},Wt=new Map,Ht;function fr(Q,ee,ae){return Wt.set(Q,ee),function(ge,Fe){return te;function te(...se){let Ce=Error.stackTraceLimit;$s()&&(Error.stackTraceLimit=0);let we=new ge;$s()&&(Error.stackTraceLimit=Ce);let Be=function(We,Qe,ft){let at=Wt.get(We);if(typeof at=="function")return i()(at.length<=Qe.length,`Code: ${We}; The provided arguments length (${Qe.length}) does not match the required ones (${at.length}).`),Reflect.apply(at,ft,Qe);let hr=(at.match(/%[dfijoOs]/g)||[]).length;return i()(hr===Qe.length,`Code: ${We}; The provided arguments length (${Qe.length}) does not match the required ones (${hr}).`),Qe.length===0?at:(Qe.unshift(at),Reflect.apply(u().format,null,Qe))}(Fe,se,we);return Object.defineProperty(we,"message",{value:Be,enumerable:!1,writable:!0,configurable:!0}),Object.defineProperty(we,"toString",{value(){return`${this.name} [${Fe}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}),fm(we,ge.name,Fe),we.code=Fe,we}}(ae,Q)}kt.ERR_INVALID_MODULE_SPECIFIER=fr("ERR_INVALID_MODULE_SPECIFIER",(Q,ee,ae)=>`Invalid module "${Q}" ${ee}${ae?` imported from ${ae}`:""}`,TypeError),kt.ERR_INVALID_PACKAGE_CONFIG=fr("ERR_INVALID_PACKAGE_CONFIG",(Q,ee,ae)=>`Invalid package config ${Q}${ee?` while importing ${ee}`:""}${ae?`. ${ae}`:""}`,Error),kt.ERR_INVALID_PACKAGE_TARGET=fr("ERR_INVALID_PACKAGE_TARGET",(Q,ee,ae,ge=!1,Fe)=>{let te=typeof ae=="string"&&!ge&&ae.length>0&&!ae.startsWith("./");return ee==="."?(i()(ge===!1),`Invalid "exports" main target ${JSON.stringify(ae)} defined in the package config ${Q}package.json${Fe?` imported from ${Fe}`:""}${te?'; targets must start with "./"':""}`):`Invalid "${ge?"imports":"exports"}" target ${JSON.stringify(ae)} defined for '${ee}' in the package config ${Q}package.json${Fe?` imported from ${Fe}`:""}${te?'; targets must start with "./"':""}`},Error),kt.ERR_MODULE_NOT_FOUND=fr("ERR_MODULE_NOT_FOUND",(Q,ee,ae="package")=>`Cannot find ${ae} '${Q}' imported from ${ee}`,Error),kt.ERR_PACKAGE_IMPORT_NOT_DEFINED=fr("ERR_PACKAGE_IMPORT_NOT_DEFINED",(Q,ee,ae)=>`Package import specifier "${Q}" is not defined${ee?` in package ${ee}package.json`:""} imported from ${ae}`,TypeError),kt.ERR_PACKAGE_PATH_NOT_EXPORTED=fr("ERR_PACKAGE_PATH_NOT_EXPORTED",(Q,ee,ae)=>ee==="."?`No "exports" main defined in ${Q}package.json${ae?` imported from ${ae}`:""}`:`Package subpath '${ee}' is not defined by "exports" in ${Q}package.json${ae?` imported from ${ae}`:""}`,Error),kt.ERR_UNSUPPORTED_DIR_IMPORT=fr("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error),kt.ERR_UNKNOWN_FILE_EXTENSION=fr("ERR_UNKNOWN_FILE_EXTENSION",'Unknown file extension "%s" for %s',TypeError),kt.ERR_INVALID_ARG_VALUE=fr("ERR_INVALID_ARG_VALUE",(Q,ee,ae="is invalid")=>{let ge=(0,u().inspect)(ee);return ge.length>128&&(ge=`${ge.slice(0,128)}...`),`The ${Q.includes(".")?"property":"argument"} '${Q}' ${ae}. Received ${ge}`},TypeError),kt.ERR_UNSUPPORTED_ESM_URL_SCHEME=fr("ERR_UNSUPPORTED_ESM_URL_SCHEME",Q=>{let ee="Only file and data URLs are supported by the default ESM loader";return dt&&Q.protocol.length===2&&(ee+=". On Windows, absolute paths must be valid file:// URLs"),ee+=`. Received protocol '${Q.protocol}'`,ee},Error);let fm=El(function(Q,ee,ae){(Q=hm(Q)).name=`${ee} [${ae}]`,Q.stack,ee==="SystemError"?Object.defineProperty(Q,"name",{value:ee,enumerable:!1,writable:!0,configurable:!0}):delete Q.name});function $s(){let Q=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return Q===void 0?Object.isExtensible(Error):Ot.call(Q,"writable")?Q.writable:Q.set!==void 0}function El(Q){let ee="__node_internal_"+Q.name;return Object.defineProperty(Q,"name",{value:ee}),Q}let hm=El(function(Q){let ee=$s();return ee&&(Ht=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(Q),ee&&(Error.stackTraceLimit=Ht),Q}),{ERR_UNKNOWN_FILE_EXTENSION:mm}=kt,ym={__proto__:null,".cjs":"commonjs",".js":"module",".mjs":"module"};function bm(Q){if(Q.startsWith("node:"))return{format:"builtin"};let ee=new(t()).URL(Q);if(ee.protocol==="data:"){let{1:ae}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(ee.pathname)||[null,null];return{format:ae==="text/javascript"?"module":null}}if(ee.protocol==="file:"){let ae=r().extname(ee.pathname),ge;if(ge=ae===".js"?function(Fe){return Gs(Fe).type}(ee.href)==="module"?"module":"commonjs":ym[ae],!ge)throw new mm(ae,(0,t().fileURLToPath)(Q));return{format:ge||null}}return{format:null}}let gm=function({version:Q=process.version,experimental:ee=!1}={}){var ae=["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","punycode","querystring","readline","repl","stream","string_decoder","sys","timers","tls","tty","url","util","vm","zlib"];return Ne.lt(Q,"6.0.0")&&ae.push("freelist"),Ne.gte(Q,"1.0.0")&&ae.push("v8"),Ne.gte(Q,"1.1.0")&&ae.push("process"),Ne.gte(Q,"8.0.0")&&ae.push("inspector"),Ne.gte(Q,"8.1.0")&&ae.push("async_hooks"),Ne.gte(Q,"8.4.0")&&ae.push("http2"),Ne.gte(Q,"8.5.0")&&ae.push("perf_hooks"),Ne.gte(Q,"10.0.0")&&ae.push("trace_events"),Ne.gte(Q,"10.5.0")&&(ee||Ne.gte(Q,"12.0.0"))&&ae.push("worker_threads"),Ne.gte(Q,"12.16.0")&&ee&&ae.push("wasi"),ae}(),{ERR_INVALID_MODULE_SPECIFIER:ki,ERR_INVALID_PACKAGE_CONFIG:Us,ERR_INVALID_PACKAGE_TARGET:Em,ERR_MODULE_NOT_FOUND:Vs,ERR_PACKAGE_IMPORT_NOT_DEFINED:vm,ERR_PACKAGE_PATH_NOT_EXPORTED:Sm,ERR_UNSUPPORTED_DIR_IMPORT:Tm,ERR_UNSUPPORTED_ESM_URL_SCHEME:Pm,ERR_INVALID_ARG_VALUE:Am}=kt,vl={}.hasOwnProperty,Sl=Object.freeze(["node","import"]),_m=new Set(Sl),Tl=/(^|\\|\/)(\.\.?|node_modules)(\\|\/|$)/,Pl=/\*/g,Cm=/%2f|%2c/i,Al=new Set,Li=new Map;function _l(Q,ee,ae,ge){let Fe=(0,t().fileURLToPath)(ee);Al.has(Fe+"|"+Q)||(Al.add(Fe+"|"+Q),process.emitWarning(`Use of deprecated folder mapping "${Q}" in the ${ae?'"exports"':'"imports"'} field module resolution of the package at ${Fe}${ge?` imported from ${(0,t().fileURLToPath)(ge)}`:""}.
|
|
99
|
-
Update this package.json to use a subpath pattern like "${Q}*".`,"DeprecationWarning","DEP0148"))}function
|
|
98
|
+
`+t().fromObject(w).toComment()),a.sourceMaps==="inline"&&(w=null),{outputCode:f,outputMap:w}};var r=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/file/merge-map.js")},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/file/merge-map.js":(v,e,l)=>{"use strict";function t(){let r=l("./node_modules/.pnpm/@ampproject+remapping@2.2.0/node_modules/@ampproject/remapping/dist/remapping.mjs");return t=function(){return r},r}function n(r){return Object.assign({},r,{sourceRoot:null})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r,i,u){let a=u.replace(/\\/g,"/"),d=!1,y=t()(n(i),(m,S)=>m!==a||d?null:(d=!0,S.source="",n(r)));return typeof r.sourceRoot=="string"&&(y.sourceRoot=r.sourceRoot),Object.assign({},y)}},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/index.js":(v,e,l)=>{"use strict";function t(){let m=l("./node_modules/.pnpm/@babel+traverse@7.18.5/node_modules/@babel/traverse/lib/index.js");return t=function(){return m},m}Object.defineProperty(e,"__esModule",{value:!0}),e.run=function*(m,S,E){let h=yield*(0,u.default)(m.passes,(0,i.default)(m),S,E),f=h.opts;try{yield*function*(R,C){for(let j of C){let T=[],N=[],$=[];for(let k of j.concat([(0,r.default)()])){let U=new n.default(R,k.key,k.options);T.push([k,U]),N.push(U),$.push(k.visitor)}for(let[k,U]of T){let M=k.pre;if(M){let O=M.call(U,R);if(yield*[],y(O))throw new Error("You appear to be using an plugin with an async .pre, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}}let G=t().default.visitors.merge($,N,R.opts.wrapPluginVisitorMethod);(0,t().default)(R.ast,G,R.scope);for(let[k,U]of T){let M=k.post;if(M){let O=M.call(U,R);if(yield*[],y(O))throw new Error("You appear to be using an plugin with an async .post, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}}}}(h,m.passes)}catch(R){var w;throw R.message=`${(w=f.filename)!=null?w:"unknown"}: ${R.message}`,R.code||(R.code="BABEL_TRANSFORM_ERROR"),R}let _,I;try{f.code!==!1&&({outputCode:_,outputMap:I}=(0,a.default)(m.passes,h))}catch(R){var P;throw R.message=`${(P=f.filename)!=null?P:"unknown"}: ${R.message}`,R.code||(R.code="BABEL_GENERATE_ERROR"),R}return{metadata:h.metadata,options:f,ast:f.ast===!0?h.ast:null,code:_===void 0?null:_,map:I===void 0?null:I,sourceType:h.ast.program.sourceType,externalDependencies:(0,d.flattenToSet)(m.externalDependencies)}};var n=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/plugin-pass.js"),r=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js"),i=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/normalize-opts.js"),u=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/normalize-file.js"),a=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/file/generate.js"),d=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/config/helpers/deep-array.js");function y(m){return!(!m||typeof m!="object"&&typeof m!="function"||!m.then||typeof m.then!="function")}},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/normalize-file.js":(v,e,l)=>{"use strict";function t(){let I=l("fs");return t=function(){return I},I}function n(){let I=l("path");return n=function(){return I},I}function r(){let I=l("./node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js");return r=function(){return I},I}function i(){let I=l("./node_modules/.pnpm/@babel+types@7.18.4/node_modules/@babel/types/lib/index.js");return i=function(){return I},I}function u(){let I=l("./node_modules/.pnpm/convert-source-map@1.8.0/node_modules/convert-source-map/index.js");return u=function(){return I},I}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function*(I,P,R,C){if(R=`${R||""}`,C){if(C.type==="Program")C=m(C,[],[]);else if(C.type!=="File")throw new Error("AST root must be a Program or File node");P.cloneInputAst&&(C=(0,y.default)(C))}else C=yield*(0,d.default)(I,P,R);let j=null;if(P.inputSourceMap!==!1){if(typeof P.inputSourceMap=="object"&&(j=u().fromObject(P.inputSourceMap)),!j){let T=_(h,C);if(T)try{j=u().fromComment(T)}catch(N){E("discarding unknown inline input sourcemap",N)}}if(!j){let T=_(f,C);if(typeof P.filename=="string"&&T)try{let N=f.exec(T),$=t().readFileSync(n().resolve(n().dirname(P.filename),N[1]));$.length>3e6?E("skip merging input map > 1 MB"):j=u().fromJSON($)}catch(N){E("discarding unknown file input sourcemap",N)}else T&&E("discarding un-loadable file input sourcemap")}}return new a.default(P,{code:R,ast:C,inputMap:j})};var a=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/file/file.js"),d=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/parser/index.js"),y=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/util/clone-deep.js");let{file:m,traverseFast:S}=i(),E=r()("babel:transform:file"),h=/^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/,f=/^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/;function w(I,P,R){return P&&(P=P.filter(({value:C})=>!I.test(C)||(R=C,!1))),[P,R]}function _(I,P){let R=null;return S(P,C=>{[C.leadingComments,R]=w(I,C.leadingComments,R),[C.innerComments,R]=w(I,C.innerComments,R),[C.trailingComments,R]=w(I,C.trailingComments,R)}),R}},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/normalize-opts.js":(v,e,l)=>{"use strict";function t(){let n=l("path");return t=function(){return n},n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){let{filename:r,cwd:i,filenameRelative:u=typeof r=="string"?t().relative(i,r):"unknown",sourceType:a="module",inputSourceMap:d,sourceMaps:y=!!d,sourceRoot:m=n.options.moduleRoot,sourceFileName:S=t().basename(u),comments:E=!0,compact:h="auto"}=n.options,f=n.options,w=Object.assign({},f,{parserOpts:Object.assign({sourceType:t().extname(u)===".mjs"?"module":a,sourceFileName:r,plugins:[]},f.parserOpts),generatorOpts:Object.assign({filename:r,auxiliaryCommentBefore:f.auxiliaryCommentBefore,auxiliaryCommentAfter:f.auxiliaryCommentAfter,retainLines:f.retainLines,comments:E,shouldPrintComment:f.shouldPrintComment,compact:h,minified:f.minified,sourceMaps:y,sourceRoot:m,sourceFileName:S},f.generatorOpts)});for(let _ of n.passes)for(let I of _)I.manipulateOptions&&I.manipulateOptions(w,w.parserOpts);return w}},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/plugin-pass.js":(v,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class l{constructor(n,r,i){this._map=new Map,this.key=void 0,this.file=void 0,this.opts=void 0,this.cwd=void 0,this.filename=void 0,this.key=r,this.file=n,this.opts=i||{},this.cwd=n.opts.cwd,this.filename=n.opts.filename}set(n,r){this._map.set(n,r)}get(n){return this._map.get(n)}availableHelper(n,r){return this.file.availableHelper(n,r)}addHelper(n){return this.file.addHelper(n)}addImport(){return this.file.addImport()}buildCodeFrameError(n,r,i){return this.file.buildCodeFrameError(n,r,i)}}e.default=l,l.prototype.getModuleName=function(){return this.file.getModuleName()}},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/util/clone-deep-browser.js":(v,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r){return JSON.parse(JSON.stringify(r,t),n)};let l="$$ babel internal serialized type"+Math.random();function t(r,i){return typeof i!="bigint"?i:{[l]:"BigInt",value:i.toString()}}function n(r,i){return i&&typeof i=="object"?i[l]!=="BigInt"?i:BigInt(i.value):i}},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/util/clone-deep.js":(v,e,l)=>{"use strict";function t(){let r=l("v8");return t=function(){return r},r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r){return t().deserialize&&t().serialize?t().deserialize(t().serialize(r)):(0,n.default)(r)};var n=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/transformation/util/clone-deep-browser.js")},"./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/vendor/import-meta-resolve.js":(v,e,l)=>{"use strict";function t(){let Q=l("url");return t=function(){return Q},Q}function n(){let Q=function(ee,ae){if(!ae&&ee&&ee.__esModule)return ee;if(ee===null||typeof ee!="object"&&typeof ee!="function")return{default:ee};var ge=a(ae);if(ge&&ge.has(ee))return ge.get(ee);var Fe={},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var se in ee)if(se!=="default"&&Object.prototype.hasOwnProperty.call(ee,se)){var Ce=te?Object.getOwnPropertyDescriptor(ee,se):null;Ce&&(Ce.get||Ce.set)?Object.defineProperty(Fe,se,Ce):Fe[se]=ee[se]}return Fe.default=ee,ge&&ge.set(ee,Fe),Fe}(l("fs"),!0);return n=function(){return Q},Q}function r(){let Q=l("path");return r=function(){return Q},Q}function i(){let Q=l("assert");return i=function(){return Q},Q}function u(){let Q=l("util");return u=function(){return Q},Q}function a(Q){if(typeof WeakMap!="function")return null;var ee=new WeakMap,ae=new WeakMap;return(a=function(ge){return ge?ae:ee})(Q)}function d(Q,ee,ae,ge,Fe,te,se){try{var Ce=Q[te](se),we=Ce.value}catch(Be){return void ae(Be)}Ce.done?ee(we):Promise.resolve(we).then(ge,Fe)}function y(Q){return function(){var ee=this,ae=arguments;return new Promise(function(ge,Fe){var te=Q.apply(ee,ae);function se(we){d(te,ge,Fe,se,Ce,"next",we)}function Ce(we){d(te,ge,Fe,se,Ce,"throw",we)}se(void 0)})}}Object.defineProperty(e,"__esModule",{value:!0}),e.moduleResolve=xl,e.resolve=function(Q,ee){return Ol.apply(this,arguments)};var m={exports:{}},S={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},E=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...Q)=>console.error("SEMVER",...Q):()=>{};(function(Q,ee){let{MAX_SAFE_COMPONENT_LENGTH:ae}=S,ge=E,Fe=(ee=Q.exports={}).re=[],te=ee.src=[],se=ee.t={},Ce=0,we=(Be,We,Qe)=>{let ft=Ce++;ge(ft,We),se[Be]=ft,te[ft]=We,Fe[ft]=new RegExp(We,Qe?"g":void 0)};we("NUMERICIDENTIFIER","0|[1-9]\\d*"),we("NUMERICIDENTIFIERLOOSE","[0-9]+"),we("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),we("MAINVERSION",`(${te[se.NUMERICIDENTIFIER]})\\.(${te[se.NUMERICIDENTIFIER]})\\.(${te[se.NUMERICIDENTIFIER]})`),we("MAINVERSIONLOOSE",`(${te[se.NUMERICIDENTIFIERLOOSE]})\\.(${te[se.NUMERICIDENTIFIERLOOSE]})\\.(${te[se.NUMERICIDENTIFIERLOOSE]})`),we("PRERELEASEIDENTIFIER",`(?:${te[se.NUMERICIDENTIFIER]}|${te[se.NONNUMERICIDENTIFIER]})`),we("PRERELEASEIDENTIFIERLOOSE",`(?:${te[se.NUMERICIDENTIFIERLOOSE]}|${te[se.NONNUMERICIDENTIFIER]})`),we("PRERELEASE",`(?:-(${te[se.PRERELEASEIDENTIFIER]}(?:\\.${te[se.PRERELEASEIDENTIFIER]})*))`),we("PRERELEASELOOSE",`(?:-?(${te[se.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${te[se.PRERELEASEIDENTIFIERLOOSE]})*))`),we("BUILDIDENTIFIER","[0-9A-Za-z-]+"),we("BUILD",`(?:\\+(${te[se.BUILDIDENTIFIER]}(?:\\.${te[se.BUILDIDENTIFIER]})*))`),we("FULLPLAIN",`v?${te[se.MAINVERSION]}${te[se.PRERELEASE]}?${te[se.BUILD]}?`),we("FULL",`^${te[se.FULLPLAIN]}$`),we("LOOSEPLAIN",`[v=\\s]*${te[se.MAINVERSIONLOOSE]}${te[se.PRERELEASELOOSE]}?${te[se.BUILD]}?`),we("LOOSE",`^${te[se.LOOSEPLAIN]}$`),we("GTLT","((?:<|>)?=?)"),we("XRANGEIDENTIFIERLOOSE",`${te[se.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),we("XRANGEIDENTIFIER",`${te[se.NUMERICIDENTIFIER]}|x|X|\\*`),we("XRANGEPLAIN",`[v=\\s]*(${te[se.XRANGEIDENTIFIER]})(?:\\.(${te[se.XRANGEIDENTIFIER]})(?:\\.(${te[se.XRANGEIDENTIFIER]})(?:${te[se.PRERELEASE]})?${te[se.BUILD]}?)?)?`),we("XRANGEPLAINLOOSE",`[v=\\s]*(${te[se.XRANGEIDENTIFIERLOOSE]})(?:\\.(${te[se.XRANGEIDENTIFIERLOOSE]})(?:\\.(${te[se.XRANGEIDENTIFIERLOOSE]})(?:${te[se.PRERELEASELOOSE]})?${te[se.BUILD]}?)?)?`),we("XRANGE",`^${te[se.GTLT]}\\s*${te[se.XRANGEPLAIN]}$`),we("XRANGELOOSE",`^${te[se.GTLT]}\\s*${te[se.XRANGEPLAINLOOSE]}$`),we("COERCE",`(^|[^\\d])(\\d{1,${ae}})(?:\\.(\\d{1,${ae}}))?(?:\\.(\\d{1,${ae}}))?(?:$|[^\\d])`),we("COERCERTL",te[se.COERCE],!0),we("LONETILDE","(?:~>?)"),we("TILDETRIM",`(\\s*)${te[se.LONETILDE]}\\s+`,!0),ee.tildeTrimReplace="$1~",we("TILDE",`^${te[se.LONETILDE]}${te[se.XRANGEPLAIN]}$`),we("TILDELOOSE",`^${te[se.LONETILDE]}${te[se.XRANGEPLAINLOOSE]}$`),we("LONECARET","(?:\\^)"),we("CARETTRIM",`(\\s*)${te[se.LONECARET]}\\s+`,!0),ee.caretTrimReplace="$1^",we("CARET",`^${te[se.LONECARET]}${te[se.XRANGEPLAIN]}$`),we("CARETLOOSE",`^${te[se.LONECARET]}${te[se.XRANGEPLAINLOOSE]}$`),we("COMPARATORLOOSE",`^${te[se.GTLT]}\\s*(${te[se.LOOSEPLAIN]})$|^$`),we("COMPARATOR",`^${te[se.GTLT]}\\s*(${te[se.FULLPLAIN]})$|^$`),we("COMPARATORTRIM",`(\\s*)${te[se.GTLT]}\\s*(${te[se.LOOSEPLAIN]}|${te[se.XRANGEPLAIN]})`,!0),ee.comparatorTrimReplace="$1$2$3",we("HYPHENRANGE",`^\\s*(${te[se.XRANGEPLAIN]})\\s+-\\s+(${te[se.XRANGEPLAIN]})\\s*$`),we("HYPHENRANGELOOSE",`^\\s*(${te[se.XRANGEPLAINLOOSE]})\\s+-\\s+(${te[se.XRANGEPLAINLOOSE]})\\s*$`),we("STAR","(<|>)?=?\\s*\\*"),we("GTE0","^\\s*>=\\s*0.0.0\\s*$"),we("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")})(m,m.exports);let h=["includePrerelease","loose","rtl"];var f=Q=>Q?typeof Q!="object"?{loose:!0}:h.filter(ee=>Q[ee]).reduce((ee,ae)=>(ee[ae]=!0,ee),{}):{};let w=/^[0-9]+$/,_=(Q,ee)=>{let ae=w.test(Q),ge=w.test(ee);return ae&&ge&&(Q=+Q,ee=+ee),Q===ee?0:ae&&!ge?-1:ge&&!ae?1:Q<ee?-1:1};var I={compareIdentifiers:_,rcompareIdentifiers:(Q,ee)=>_(ee,Q)};let P=E,{MAX_LENGTH:R,MAX_SAFE_INTEGER:C}=S,{re:j,t:T}=m.exports,N=f,{compareIdentifiers:$}=I;class G{constructor(ee,ae){if(ae=N(ae),ee instanceof G){if(ee.loose===!!ae.loose&&ee.includePrerelease===!!ae.includePrerelease)return ee;ee=ee.version}else if(typeof ee!="string")throw new TypeError(`Invalid Version: ${ee}`);if(ee.length>R)throw new TypeError(`version is longer than ${R} characters`);P("SemVer",ee,ae),this.options=ae,this.loose=!!ae.loose,this.includePrerelease=!!ae.includePrerelease;let ge=ee.trim().match(ae.loose?j[T.LOOSE]:j[T.FULL]);if(!ge)throw new TypeError(`Invalid Version: ${ee}`);if(this.raw=ee,this.major=+ge[1],this.minor=+ge[2],this.patch=+ge[3],this.major>C||this.major<0)throw new TypeError("Invalid major version");if(this.minor>C||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>C||this.patch<0)throw new TypeError("Invalid patch version");ge[4]?this.prerelease=ge[4].split(".").map(Fe=>{if(/^[0-9]+$/.test(Fe)){let te=+Fe;if(te>=0&&te<C)return te}return Fe}):this.prerelease=[],this.build=ge[5]?ge[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(ee){if(P("SemVer.compare",this.version,this.options,ee),!(ee instanceof G)){if(typeof ee=="string"&&ee===this.version)return 0;ee=new G(ee,this.options)}return ee.version===this.version?0:this.compareMain(ee)||this.comparePre(ee)}compareMain(ee){return ee instanceof G||(ee=new G(ee,this.options)),$(this.major,ee.major)||$(this.minor,ee.minor)||$(this.patch,ee.patch)}comparePre(ee){if(ee instanceof G||(ee=new G(ee,this.options)),this.prerelease.length&&!ee.prerelease.length)return-1;if(!this.prerelease.length&&ee.prerelease.length)return 1;if(!this.prerelease.length&&!ee.prerelease.length)return 0;let ae=0;do{let ge=this.prerelease[ae],Fe=ee.prerelease[ae];if(P("prerelease compare",ae,ge,Fe),ge===void 0&&Fe===void 0)return 0;if(Fe===void 0)return 1;if(ge===void 0)return-1;if(ge!==Fe)return $(ge,Fe)}while(++ae)}compareBuild(ee){ee instanceof G||(ee=new G(ee,this.options));let ae=0;do{let ge=this.build[ae],Fe=ee.build[ae];if(P("prerelease compare",ae,ge,Fe),ge===void 0&&Fe===void 0)return 0;if(Fe===void 0)return 1;if(ge===void 0)return-1;if(ge!==Fe)return $(ge,Fe)}while(++ae)}inc(ee,ae){switch(ee){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",ae);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",ae);break;case"prepatch":this.prerelease.length=0,this.inc("patch",ae),this.inc("pre",ae);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",ae),this.inc("pre",ae);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let ge=this.prerelease.length;for(;--ge>=0;)typeof this.prerelease[ge]=="number"&&(this.prerelease[ge]++,ge=-2);ge===-1&&this.prerelease.push(0)}ae&&(this.prerelease[0]===ae?isNaN(this.prerelease[1])&&(this.prerelease=[ae,0]):this.prerelease=[ae,0]);break;default:throw new Error(`invalid increment argument: ${ee}`)}return this.format(),this.raw=this.version,this}}var k=G;let{MAX_LENGTH:U}=S,{re:M,t:O}=m.exports,x=k,F=f;var L=(Q,ee)=>{if(ee=F(ee),Q instanceof x)return Q;if(typeof Q!="string"||Q.length>U||!(ee.loose?M[O.LOOSE]:M[O.FULL]).test(Q))return null;try{return new x(Q,ee)}catch{return null}};let V=L;var K=(Q,ee)=>{let ae=V(Q,ee);return ae?ae.version:null};let z=L;var X=(Q,ee)=>{let ae=z(Q.trim().replace(/^[=v]+/,""),ee);return ae?ae.version:null};let J=k;var ie=(Q,ee,ae,ge)=>{typeof ae=="string"&&(ge=ae,ae=void 0);try{return new J(Q,ae).inc(ee,ge).version}catch{return null}};let he=k;var pe=(Q,ee,ae)=>new he(Q,ae).compare(new he(ee,ae));let Ee=pe;var ye=(Q,ee,ae)=>Ee(Q,ee,ae)===0;let Y=L,re=ye;var ue=(Q,ee)=>{if(re(Q,ee))return null;{let ae=Y(Q),ge=Y(ee),Fe=ae.prerelease.length||ge.prerelease.length,te=Fe?"pre":"",se=Fe?"prerelease":"";for(let Ce in ae)if((Ce==="major"||Ce==="minor"||Ce==="patch")&&ae[Ce]!==ge[Ce])return te+Ce;return se}};let ce=k;var Ie=(Q,ee)=>new ce(Q,ee).major;let Ae=k;var ve=(Q,ee)=>new Ae(Q,ee).minor;let xe=k;var Se=(Q,ee)=>new xe(Q,ee).patch;let Ve=L;var $e=(Q,ee)=>{let ae=Ve(Q,ee);return ae&&ae.prerelease.length?ae.prerelease:null};let de=pe;var q=(Q,ee,ae)=>de(ee,Q,ae);let ne=pe;var Te=(Q,ee)=>ne(Q,ee,!0);let je=k;var Oe=(Q,ee,ae)=>{let ge=new je(Q,ae),Fe=new je(ee,ae);return ge.compare(Fe)||ge.compareBuild(Fe)};let be=Oe;var rt=(Q,ee)=>Q.sort((ae,ge)=>be(ae,ge,ee));let Lt=Oe;var Ft=(Q,ee)=>Q.sort((ae,ge)=>Lt(ge,ae,ee));let wt=pe;var Rt=(Q,ee,ae)=>wt(Q,ee,ae)>0;let Vt=pe;var Et=(Q,ee,ae)=>Vt(Q,ee,ae)<0;let ht=pe;var Kt=(Q,ee,ae)=>ht(Q,ee,ae)!==0;let Ye=pe;var Mr=(Q,ee,ae)=>Ye(Q,ee,ae)>=0;let lr=pe;var Cr=(Q,ee,ae)=>lr(Q,ee,ae)<=0;let Gr=ye,an=Kt,Pe=Rt,De=Mr,_e=Et,Le=Cr;var Ue=(Q,ee,ae,ge)=>{switch(ee){case"===":return typeof Q=="object"&&(Q=Q.version),typeof ae=="object"&&(ae=ae.version),Q===ae;case"!==":return typeof Q=="object"&&(Q=Q.version),typeof ae=="object"&&(ae=ae.version),Q!==ae;case"":case"=":case"==":return Gr(Q,ae,ge);case"!=":return an(Q,ae,ge);case">":return Pe(Q,ae,ge);case">=":return De(Q,ae,ge);case"<":return _e(Q,ae,ge);case"<=":return Le(Q,ae,ge);default:throw new TypeError(`Invalid operator: ${ee}`)}};let Xe=k,Je=L,{re:ct,t:mt}=m.exports;var At,$t,Dt,Bt,Nt,Xt,zt,Qt,Jt,br,ar=(Q,ee)=>{if(Q instanceof Xe)return Q;if(typeof Q=="number"&&(Q=String(Q)),typeof Q!="string")return null;let ae=null;if((ee=ee||{}).rtl){let ge;for(;(ge=ct[mt.COERCERTL].exec(Q))&&(!ae||ae.index+ae[0].length!==Q.length);)ae&&ge.index+ge[0].length===ae.index+ae[0].length||(ae=ge),ct[mt.COERCERTL].lastIndex=ge.index+ge[1].length+ge[2].length;ct[mt.COERCERTL].lastIndex=-1}else ae=Q.match(ct[mt.COERCE]);return ae===null?null:Je(`${ae[2]}.${ae[3]||"0"}.${ae[4]||"0"}`,ee)};function wr(){if(Bt)return Dt;function Q(te){var se=this;if(se instanceof Q||(se=new Q),se.tail=null,se.head=null,se.length=0,te&&typeof te.forEach=="function")te.forEach(function(Be){se.push(Be)});else if(arguments.length>0)for(var Ce=0,we=arguments.length;Ce<we;Ce++)se.push(arguments[Ce]);return se}function ee(te,se,Ce){var we=se===te.head?new Fe(Ce,null,se,te):new Fe(Ce,se,se.next,te);return we.next===null&&(te.tail=we),we.prev===null&&(te.head=we),te.length++,we}function ae(te,se){te.tail=new Fe(se,te.tail,null,te),te.head||(te.head=te.tail),te.length++}function ge(te,se){te.head=new Fe(se,null,te.head,te),te.tail||(te.tail=te.head),te.length++}function Fe(te,se,Ce,we){if(!(this instanceof Fe))return new Fe(te,se,Ce,we);this.list=we,this.value=te,se?(se.next=this,this.prev=se):this.prev=null,Ce?(Ce.prev=this,this.next=Ce):this.next=null}Bt=1,Dt=Q,Q.Node=Fe,Q.create=Q,Q.prototype.removeNode=function(te){if(te.list!==this)throw new Error("removing node which does not belong to this list");var se=te.next,Ce=te.prev;return se&&(se.prev=Ce),Ce&&(Ce.next=se),te===this.head&&(this.head=se),te===this.tail&&(this.tail=Ce),te.list.length--,te.next=null,te.prev=null,te.list=null,se},Q.prototype.unshiftNode=function(te){if(te!==this.head){te.list&&te.list.removeNode(te);var se=this.head;te.list=this,te.next=se,se&&(se.prev=te),this.head=te,this.tail||(this.tail=te),this.length++}},Q.prototype.pushNode=function(te){if(te!==this.tail){te.list&&te.list.removeNode(te);var se=this.tail;te.list=this,te.prev=se,se&&(se.next=te),this.tail=te,this.head||(this.head=te),this.length++}},Q.prototype.push=function(){for(var te=0,se=arguments.length;te<se;te++)ae(this,arguments[te]);return this.length},Q.prototype.unshift=function(){for(var te=0,se=arguments.length;te<se;te++)ge(this,arguments[te]);return this.length},Q.prototype.pop=function(){if(this.tail){var te=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,te}},Q.prototype.shift=function(){if(this.head){var te=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,te}},Q.prototype.forEach=function(te,se){se=se||this;for(var Ce=this.head,we=0;Ce!==null;we++)te.call(se,Ce.value,we,this),Ce=Ce.next},Q.prototype.forEachReverse=function(te,se){se=se||this;for(var Ce=this.tail,we=this.length-1;Ce!==null;we--)te.call(se,Ce.value,we,this),Ce=Ce.prev},Q.prototype.get=function(te){for(var se=0,Ce=this.head;Ce!==null&&se<te;se++)Ce=Ce.next;if(se===te&&Ce!==null)return Ce.value},Q.prototype.getReverse=function(te){for(var se=0,Ce=this.tail;Ce!==null&&se<te;se++)Ce=Ce.prev;if(se===te&&Ce!==null)return Ce.value},Q.prototype.map=function(te,se){se=se||this;for(var Ce=new Q,we=this.head;we!==null;)Ce.push(te.call(se,we.value,this)),we=we.next;return Ce},Q.prototype.mapReverse=function(te,se){se=se||this;for(var Ce=new Q,we=this.tail;we!==null;)Ce.push(te.call(se,we.value,this)),we=we.prev;return Ce},Q.prototype.reduce=function(te,se){var Ce,we=this.head;if(arguments.length>1)Ce=se;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");we=this.head.next,Ce=this.head.value}for(var Be=0;we!==null;Be++)Ce=te(Ce,we.value,Be),we=we.next;return Ce},Q.prototype.reduceReverse=function(te,se){var Ce,we=this.tail;if(arguments.length>1)Ce=se;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");we=this.tail.prev,Ce=this.tail.value}for(var Be=this.length-1;we!==null;Be--)Ce=te(Ce,we.value,Be),we=we.prev;return Ce},Q.prototype.toArray=function(){for(var te=new Array(this.length),se=0,Ce=this.head;Ce!==null;se++)te[se]=Ce.value,Ce=Ce.next;return te},Q.prototype.toArrayReverse=function(){for(var te=new Array(this.length),se=0,Ce=this.tail;Ce!==null;se++)te[se]=Ce.value,Ce=Ce.prev;return te},Q.prototype.slice=function(te,se){(se=se||this.length)<0&&(se+=this.length),(te=te||0)<0&&(te+=this.length);var Ce=new Q;if(se<te||se<0)return Ce;te<0&&(te=0),se>this.length&&(se=this.length);for(var we=0,Be=this.head;Be!==null&&we<te;we++)Be=Be.next;for(;Be!==null&&we<se;we++,Be=Be.next)Ce.push(Be.value);return Ce},Q.prototype.sliceReverse=function(te,se){(se=se||this.length)<0&&(se+=this.length),(te=te||0)<0&&(te+=this.length);var Ce=new Q;if(se<te||se<0)return Ce;te<0&&(te=0),se>this.length&&(se=this.length);for(var we=this.length,Be=this.tail;Be!==null&&we>se;we--)Be=Be.prev;for(;Be!==null&&we>te;we--,Be=Be.prev)Ce.push(Be.value);return Ce},Q.prototype.splice=function(te,se,...Ce){te>this.length&&(te=this.length-1),te<0&&(te=this.length+te);for(var we=0,Be=this.head;Be!==null&&we<te;we++)Be=Be.next;var We=[];for(we=0;Be&&we<se;we++)We.push(Be.value),Be=this.removeNode(Be);for(Be===null&&(Be=this.tail),Be!==this.head&&Be!==this.tail&&(Be=Be.prev),we=0;we<Ce.length;we++)Be=ee(this,Be,Ce[we]);return We},Q.prototype.reverse=function(){for(var te=this.head,se=this.tail,Ce=te;Ce!==null;Ce=Ce.prev){var we=Ce.prev;Ce.prev=Ce.next,Ce.next=we}return this.head=se,this.tail=te,this};try{($t?At:($t=1,At=function(te){te.prototype[Symbol.iterator]=function*(){for(let se=this.head;se;se=se.next)yield se.value}}))(Q)}catch{}return Dt}function fe(){if(Qt)return zt;Qt=1;class Q{constructor(qe,Tt){if(Tt=ge(Tt),qe instanceof Q)return qe.loose===!!Tt.loose&&qe.includePrerelease===!!Tt.includePrerelease?qe:new Q(qe.raw,Tt);if(qe instanceof Fe)return this.raw=qe.value,this.set=[[qe]],this.format(),this;if(this.options=Tt,this.loose=!!Tt.loose,this.includePrerelease=!!Tt.includePrerelease,this.raw=qe,this.set=qe.split(/\s*\|\|\s*/).map(yt=>this.parseRange(yt.trim())).filter(yt=>yt.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${qe}`);if(this.set.length>1){let yt=this.set[0];if(this.set=this.set.filter(gt=>!ft(gt[0])),this.set.length===0)this.set=[yt];else if(this.set.length>1){for(let gt of this.set)if(gt.length===1&&at(gt[0])){this.set=[gt];break}}}this.format()}format(){return this.range=this.set.map(qe=>qe.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(qe){qe=qe.trim();let Tt=`parseRange:${Object.keys(this.options).join(",")}:${qe}`,yt=ae.get(Tt);if(yt)return yt;let gt=this.options.loose,pt=gt?Ce[we.HYPHENRANGELOOSE]:Ce[we.HYPHENRANGE];qe=qe.replace(pt,Mm(this.options.includePrerelease)),te("hyphen replace",qe),qe=qe.replace(Ce[we.COMPARATORTRIM],Be),te("comparator trim",qe,Ce[we.COMPARATORTRIM]),qe=(qe=(qe=qe.replace(Ce[we.TILDETRIM],We)).replace(Ce[we.CARETTRIM],Qe)).split(/\s+/).join(" ");let Pt=gt?Ce[we.COMPARATORLOOSE]:Ce[we.COMPARATOR],Yt=qe.split(" ").map(Zt=>Fr(Zt,this.options)).join(" ").split(/\s+/).map(Zt=>Lm(Zt,this.options)).filter(this.options.loose?Zt=>!!Zt.match(Pt):()=>!0).map(Zt=>new Fe(Zt,this.options));Yt.length;let _t=new Map;for(let Zt of Yt){if(ft(Zt))return[Zt];_t.set(Zt.value,Zt)}_t.size>1&&_t.has("")&&_t.delete("");let Gt=[..._t.values()];return ae.set(Tt,Gt),Gt}intersects(qe,Tt){if(!(qe instanceof Q))throw new TypeError("a Range is required");return this.set.some(yt=>hr(yt,Tt)&&qe.set.some(gt=>hr(gt,Tt)&&yt.every(pt=>gt.every(Pt=>pt.intersects(Pt,Tt)))))}test(qe){if(!qe)return!1;if(typeof qe=="string")try{qe=new se(qe,this.options)}catch{return!1}for(let Tt=0;Tt<this.set.length;Tt++)if(Bm(this.set[Tt],qe,this.options))return!0;return!1}}zt=Q;let ee=function(){if(Xt)return Nt;Xt=1;let lt=wr(),qe=Symbol("max"),Tt=Symbol("length"),yt=Symbol("lengthCalculator"),gt=Symbol("allowStale"),pt=Symbol("maxAge"),Pt=Symbol("dispose"),Yt=Symbol("noDisposeOnSet"),_t=Symbol("lruList"),Gt=Symbol("cache"),Zt=Symbol("updateAgeOnGet"),Yr=()=>1,en=(Ge,Ct,Mt)=>{let ir=Ge[Gt].get(Ct);if(ir){let pr=ir.value;if(pi(Ge,pr)){if($n(Ge,ir),!Ge[gt])return}else Mt&&(Ge[Zt]&&(ir.value.now=Date.now()),Ge[_t].unshiftNode(ir));return pr.value}},pi=(Ge,Ct)=>{if(!Ct||!Ct.maxAge&&!Ge[pt])return!1;let Mt=Date.now()-Ct.now;return Ct.maxAge?Mt>Ct.maxAge:Ge[pt]&&Mt>Ge[pt]},di=Ge=>{if(Ge[Tt]>Ge[qe])for(let Ct=Ge[_t].tail;Ge[Tt]>Ge[qe]&&Ct!==null;){let Mt=Ct.prev;$n(Ge,Ct),Ct=Mt}},$n=(Ge,Ct)=>{if(Ct){let Mt=Ct.value;Ge[Pt]&&Ge[Pt](Mt.key,Mt.value),Ge[Tt]-=Mt.length,Ge[Gt].delete(Mt.key),Ge[_t].removeNode(Ct)}};class $m{constructor(Ct,Mt,ir,pr,ln){this.key=Ct,this.value=Mt,this.length=ir,this.now=pr,this.maxAge=ln||0}}let Il=(Ge,Ct,Mt,ir)=>{let pr=Mt.value;pi(Ge,pr)&&($n(Ge,Mt),Ge[gt]||(pr=void 0)),pr&&Ct.call(ir,pr.value,pr.key,Ge)};return Nt=class{constructor(Ge){if(typeof Ge=="number"&&(Ge={max:Ge}),Ge||(Ge={}),Ge.max&&(typeof Ge.max!="number"||Ge.max<0))throw new TypeError("max must be a non-negative number");this[qe]=Ge.max||1/0;let Ct=Ge.length||Yr;if(this[yt]=typeof Ct!="function"?Yr:Ct,this[gt]=Ge.stale||!1,Ge.maxAge&&typeof Ge.maxAge!="number")throw new TypeError("maxAge must be a number");this[pt]=Ge.maxAge||0,this[Pt]=Ge.dispose,this[Yt]=Ge.noDisposeOnSet||!1,this[Zt]=Ge.updateAgeOnGet||!1,this.reset()}set max(Ge){if(typeof Ge!="number"||Ge<0)throw new TypeError("max must be a non-negative number");this[qe]=Ge||1/0,di(this)}get max(){return this[qe]}set allowStale(Ge){this[gt]=!!Ge}get allowStale(){return this[gt]}set maxAge(Ge){if(typeof Ge!="number")throw new TypeError("maxAge must be a non-negative number");this[pt]=Ge,di(this)}get maxAge(){return this[pt]}set lengthCalculator(Ge){typeof Ge!="function"&&(Ge=Yr),Ge!==this[yt]&&(this[yt]=Ge,this[Tt]=0,this[_t].forEach(Ct=>{Ct.length=this[yt](Ct.value,Ct.key),this[Tt]+=Ct.length})),di(this)}get lengthCalculator(){return this[yt]}get length(){return this[Tt]}get itemCount(){return this[_t].length}rforEach(Ge,Ct){Ct=Ct||this;for(let Mt=this[_t].tail;Mt!==null;){let ir=Mt.prev;Il(this,Ge,Mt,Ct),Mt=ir}}forEach(Ge,Ct){Ct=Ct||this;for(let Mt=this[_t].head;Mt!==null;){let ir=Mt.next;Il(this,Ge,Mt,Ct),Mt=ir}}keys(){return this[_t].toArray().map(Ge=>Ge.key)}values(){return this[_t].toArray().map(Ge=>Ge.value)}reset(){this[Pt]&&this[_t]&&this[_t].length&&this[_t].forEach(Ge=>this[Pt](Ge.key,Ge.value)),this[Gt]=new Map,this[_t]=new lt,this[Tt]=0}dump(){return this[_t].map(Ge=>!pi(this,Ge)&&{k:Ge.key,v:Ge.value,e:Ge.now+(Ge.maxAge||0)}).toArray().filter(Ge=>Ge)}dumpLru(){return this[_t]}set(Ge,Ct,Mt){if((Mt=Mt||this[pt])&&typeof Mt!="number")throw new TypeError("maxAge must be a number");let ir=Mt?Date.now():0,pr=this[yt](Ct,Ge);if(this[Gt].has(Ge)){if(pr>this[qe])return $n(this,this[Gt].get(Ge)),!1;let Un=this[Gt].get(Ge).value;return this[Pt]&&(this[Yt]||this[Pt](Ge,Un.value)),Un.now=ir,Un.maxAge=Mt,Un.value=Ct,this[Tt]+=pr-Un.length,Un.length=pr,this.get(Ge),di(this),!0}let ln=new $m(Ge,Ct,pr,ir,Mt);return ln.length>this[qe]?(this[Pt]&&this[Pt](Ge,Ct),!1):(this[Tt]+=ln.length,this[_t].unshift(ln),this[Gt].set(Ge,this[_t].head),di(this),!0)}has(Ge){if(!this[Gt].has(Ge))return!1;let Ct=this[Gt].get(Ge).value;return!pi(this,Ct)}get(Ge){return en(this,Ge,!0)}peek(Ge){return en(this,Ge,!1)}pop(){let Ge=this[_t].tail;return Ge?($n(this,Ge),Ge.value):null}del(Ge){$n(this,this[Gt].get(Ge))}load(Ge){this.reset();let Ct=Date.now();for(let Mt=Ge.length-1;Mt>=0;Mt--){let ir=Ge[Mt],pr=ir.e||0;if(pr===0)this.set(ir.k,ir.v);else{let ln=pr-Ct;ln>0&&this.set(ir.k,ir.v,ln)}}}prune(){this[Gt].forEach((Ge,Ct)=>en(this,Ct,!1))}}}(),ae=new ee({max:1e3}),ge=f,Fe=le(),te=E,se=k,{re:Ce,t:we,comparatorTrimReplace:Be,tildeTrimReplace:We,caretTrimReplace:Qe}=m.exports,ft=lt=>lt.value==="<0.0.0-0",at=lt=>lt.value==="",hr=(lt,qe)=>{let Tt=!0,yt=lt.slice(),gt=yt.pop();for(;Tt&&yt.length;)Tt=yt.every(pt=>gt.intersects(pt,qe)),gt=yt.pop();return Tt},Fr=(lt,qe)=>(te("comp",lt,qe),lt=Nm(lt,qe),te("caret",lt),lt=Bn(lt,qe),te("tildes",lt),lt=Fm(lt,qe),te("xrange",lt),lt=km(lt,qe),te("stars",lt),lt),er=lt=>!lt||lt.toLowerCase()==="x"||lt==="*",Bn=(lt,qe)=>lt.trim().split(/\s+/).map(Tt=>Im(Tt,qe)).join(" "),Im=(lt,qe)=>{let Tt=qe.loose?Ce[we.TILDELOOSE]:Ce[we.TILDE];return lt.replace(Tt,(yt,gt,pt,Pt,Yt)=>{let _t;return te("tilde",lt,yt,gt,pt,Pt,Yt),er(gt)?_t="":er(pt)?_t=`>=${gt}.0.0 <${+gt+1}.0.0-0`:er(Pt)?_t=`>=${gt}.${pt}.0 <${gt}.${+pt+1}.0-0`:Yt?(te("replaceTilde pr",Yt),_t=`>=${gt}.${pt}.${Pt}-${Yt} <${gt}.${+pt+1}.0-0`):_t=`>=${gt}.${pt}.${Pt} <${gt}.${+pt+1}.0-0`,te("tilde return",_t),_t})},Nm=(lt,qe)=>lt.trim().split(/\s+/).map(Tt=>jm(Tt,qe)).join(" "),jm=(lt,qe)=>{te("caret",lt,qe);let Tt=qe.loose?Ce[we.CARETLOOSE]:Ce[we.CARET],yt=qe.includePrerelease?"-0":"";return lt.replace(Tt,(gt,pt,Pt,Yt,_t)=>{let Gt;return te("caret",lt,gt,pt,Pt,Yt,_t),er(pt)?Gt="":er(Pt)?Gt=`>=${pt}.0.0${yt} <${+pt+1}.0.0-0`:er(Yt)?Gt=pt==="0"?`>=${pt}.${Pt}.0${yt} <${pt}.${+Pt+1}.0-0`:`>=${pt}.${Pt}.0${yt} <${+pt+1}.0.0-0`:_t?(te("replaceCaret pr",_t),Gt=pt==="0"?Pt==="0"?`>=${pt}.${Pt}.${Yt}-${_t} <${pt}.${Pt}.${+Yt+1}-0`:`>=${pt}.${Pt}.${Yt}-${_t} <${pt}.${+Pt+1}.0-0`:`>=${pt}.${Pt}.${Yt}-${_t} <${+pt+1}.0.0-0`):(te("no pr"),Gt=pt==="0"?Pt==="0"?`>=${pt}.${Pt}.${Yt}${yt} <${pt}.${Pt}.${+Yt+1}-0`:`>=${pt}.${Pt}.${Yt}${yt} <${pt}.${+Pt+1}.0-0`:`>=${pt}.${Pt}.${Yt} <${+pt+1}.0.0-0`),te("caret return",Gt),Gt})},Fm=(lt,qe)=>(te("replaceXRanges",lt,qe),lt.split(/\s+/).map(Tt=>Rm(Tt,qe)).join(" ")),Rm=(lt,qe)=>{lt=lt.trim();let Tt=qe.loose?Ce[we.XRANGELOOSE]:Ce[we.XRANGE];return lt.replace(Tt,(yt,gt,pt,Pt,Yt,_t)=>{te("xRange",lt,yt,gt,pt,Pt,Yt,_t);let Gt=er(pt),Zt=Gt||er(Pt),Yr=Zt||er(Yt),en=Yr;return gt==="="&&en&&(gt=""),_t=qe.includePrerelease?"-0":"",Gt?yt=gt===">"||gt==="<"?"<0.0.0-0":"*":gt&&en?(Zt&&(Pt=0),Yt=0,gt===">"?(gt=">=",Zt?(pt=+pt+1,Pt=0,Yt=0):(Pt=+Pt+1,Yt=0)):gt==="<="&&(gt="<",Zt?pt=+pt+1:Pt=+Pt+1),gt==="<"&&(_t="-0"),yt=`${gt+pt}.${Pt}.${Yt}${_t}`):Zt?yt=`>=${pt}.0.0${_t} <${+pt+1}.0.0-0`:Yr&&(yt=`>=${pt}.${Pt}.0${_t} <${pt}.${+Pt+1}.0-0`),te("xRange return",yt),yt})},km=(lt,qe)=>(te("replaceStars",lt,qe),lt.trim().replace(Ce[we.STAR],"")),Lm=(lt,qe)=>(te("replaceGTE0",lt,qe),lt.trim().replace(Ce[qe.includePrerelease?we.GTE0PRE:we.GTE0],"")),Mm=lt=>(qe,Tt,yt,gt,pt,Pt,Yt,_t,Gt,Zt,Yr,en,pi)=>`${Tt=er(yt)?"":er(gt)?`>=${yt}.0.0${lt?"-0":""}`:er(pt)?`>=${yt}.${gt}.0${lt?"-0":""}`:Pt?`>=${Tt}`:`>=${Tt}${lt?"-0":""}`} ${_t=er(Gt)?"":er(Zt)?`<${+Gt+1}.0.0-0`:er(Yr)?`<${Gt}.${+Zt+1}.0-0`:en?`<=${Gt}.${Zt}.${Yr}-${en}`:lt?`<${Gt}.${Zt}.${+Yr+1}-0`:`<=${_t}`}`.trim(),Bm=(lt,qe,Tt)=>{for(let yt=0;yt<lt.length;yt++)if(!lt[yt].test(qe))return!1;if(qe.prerelease.length&&!Tt.includePrerelease){for(let yt=0;yt<lt.length;yt++)if(te(lt[yt].semver),lt[yt].semver!==Fe.ANY&<[yt].semver.prerelease.length>0){let gt=lt[yt].semver;if(gt.major===qe.major&>.minor===qe.minor&>.patch===qe.patch)return!0}return!1}return!0};return zt}function le(){if(br)return Jt;br=1;let Q=Symbol("SemVer ANY");class ee{static get ANY(){return Q}constructor(We,Qe){if(Qe=ae(Qe),We instanceof ee){if(We.loose===!!Qe.loose)return We;We=We.value}se("comparator",We,Qe),this.options=Qe,this.loose=!!Qe.loose,this.parse(We),this.semver===Q?this.value="":this.value=this.operator+this.semver.version,se("comp",this)}parse(We){let Qe=this.options.loose?ge[Fe.COMPARATORLOOSE]:ge[Fe.COMPARATOR],ft=We.match(Qe);if(!ft)throw new TypeError(`Invalid comparator: ${We}`);this.operator=ft[1]!==void 0?ft[1]:"",this.operator==="="&&(this.operator=""),ft[2]?this.semver=new Ce(ft[2],this.options.loose):this.semver=Q}toString(){return this.value}test(We){if(se("Comparator.test",We,this.options.loose),this.semver===Q||We===Q)return!0;if(typeof We=="string")try{We=new Ce(We,this.options)}catch{return!1}return te(We,this.operator,this.semver,this.options)}intersects(We,Qe){if(!(We instanceof ee))throw new TypeError("a Comparator is required");if(Qe&&typeof Qe=="object"||(Qe={loose:!!Qe,includePrerelease:!1}),this.operator==="")return this.value===""||new we(We.value,Qe).test(this.value);if(We.operator==="")return We.value===""||new we(this.value,Qe).test(We.semver);let ft=!(this.operator!==">="&&this.operator!==">"||We.operator!==">="&&We.operator!==">"),at=!(this.operator!=="<="&&this.operator!=="<"||We.operator!=="<="&&We.operator!=="<"),hr=this.semver.version===We.semver.version,Fr=!(this.operator!==">="&&this.operator!=="<="||We.operator!==">="&&We.operator!=="<="),er=te(this.semver,"<",We.semver,Qe)&&(this.operator===">="||this.operator===">")&&(We.operator==="<="||We.operator==="<"),Bn=te(this.semver,">",We.semver,Qe)&&(this.operator==="<="||this.operator==="<")&&(We.operator===">="||We.operator===">");return ft||at||hr&&Fr||er||Bn}}Jt=ee;let ae=f,{re:ge,t:Fe}=m.exports,te=Ue,se=E,Ce=k,we=fe();return Jt}let Me=fe();var ke=(Q,ee,ae)=>{try{ee=new Me(ee,ae)}catch{return!1}return ee.test(Q)};let Ke=fe();var et=(Q,ee)=>new Ke(Q,ee).set.map(ae=>ae.map(ge=>ge.value).join(" ").trim().split(" "));let Ze=k,ot=fe();var st=(Q,ee,ae)=>{let ge=null,Fe=null,te=null;try{te=new ot(ee,ae)}catch{return null}return Q.forEach(se=>{te.test(se)&&(ge&&Fe.compare(se)!==-1||(ge=se,Fe=new Ze(ge,ae)))}),ge};let nt=k,vt=fe();var xt=(Q,ee,ae)=>{let ge=null,Fe=null,te=null;try{te=new vt(ee,ae)}catch{return null}return Q.forEach(se=>{te.test(se)&&(ge&&Fe.compare(se)!==1||(ge=se,Fe=new nt(ge,ae)))}),ge};let it=k,bt=fe(),He=Rt;var St=(Q,ee)=>{Q=new bt(Q,ee);let ae=new it("0.0.0");if(Q.test(ae)||(ae=new it("0.0.0-0"),Q.test(ae)))return ae;ae=null;for(let ge=0;ge<Q.set.length;++ge){let Fe=Q.set[ge],te=null;Fe.forEach(se=>{let Ce=new it(se.semver.version);switch(se.operator){case">":Ce.prerelease.length===0?Ce.patch++:Ce.prerelease.push(0),Ce.raw=Ce.format();case"":case">=":te&&!He(Ce,te)||(te=Ce);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${se.operator}`)}}),!te||ae&&!He(ae,te)||(ae=te)}return ae&&Q.test(ae)?ae:null};let Ut=fe();var ur=(Q,ee)=>{try{return new Ut(Q,ee).range||"*"}catch{return null}};let Kr=k,Nr=le(),{ANY:jt}=Nr,jr=fe(),cr=ke,Hr=Rt,on=Et,kn=Cr,oi=Mr;var Zr=(Q,ee,ae,ge)=>{let Fe,te,se,Ce,we;switch(Q=new Kr(Q,ge),ee=new jr(ee,ge),ae){case">":Fe=Hr,te=kn,se=on,Ce=">",we=">=";break;case"<":Fe=on,te=oi,se=Hr,Ce="<",we="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(cr(Q,ee,ge))return!1;for(let Be=0;Be<ee.set.length;++Be){let We=ee.set[Be],Qe=null,ft=null;if(We.forEach(at=>{at.semver===jt&&(at=new Nr(">=0.0.0")),Qe=Qe||at,ft=ft||at,Fe(at.semver,Qe.semver,ge)?Qe=at:se(at.semver,ft.semver,ge)&&(ft=at)}),Qe.operator===Ce||Qe.operator===we||(!ft.operator||ft.operator===Ce)&&te(Q,ft.semver)||ft.operator===we&&se(Q,ft.semver))return!1}return!0};let ji=Zr;var li=(Q,ee,ae)=>ji(Q,ee,">",ae);let Ls=Zr;var Ms=(Q,ee,ae)=>Ls(Q,ee,"<",ae);let Ln=fe();var Fi=(Q,ee,ae)=>(Q=new Ln(Q,ae),ee=new Ln(ee,ae),Q.intersects(ee));let Bs=ke,Pn=pe,ui=fe(),W=le(),{ANY:s}=W,o=ke,g=pe,D=(Q,ee,ae)=>{if(Q===ee)return!0;if(Q.length===1&&Q[0].semver===s){if(ee.length===1&&ee[0].semver===s)return!0;Q=ae.includePrerelease?[new W(">=0.0.0-0")]:[new W(">=0.0.0")]}if(ee.length===1&&ee[0].semver===s){if(ae.includePrerelease)return!0;ee=[new W(">=0.0.0")]}let ge=new Set,Fe,te,se,Ce,we,Be,We;for(let at of Q)at.operator===">"||at.operator===">="?Fe=B(Fe,at,ae):at.operator==="<"||at.operator==="<="?te=H(te,at,ae):ge.add(at.semver);if(ge.size>1||Fe&&te&&(se=g(Fe.semver,te.semver,ae),se>0||se===0&&(Fe.operator!==">="||te.operator!=="<=")))return null;for(let at of ge){if(Fe&&!o(at,String(Fe),ae)||te&&!o(at,String(te),ae))return null;for(let hr of ee)if(!o(at,String(hr),ae))return!1;return!0}let Qe=!(!te||ae.includePrerelease||!te.semver.prerelease.length)&&te.semver,ft=!(!Fe||ae.includePrerelease||!Fe.semver.prerelease.length)&&Fe.semver;Qe&&Qe.prerelease.length===1&&te.operator==="<"&&Qe.prerelease[0]===0&&(Qe=!1);for(let at of ee){if(We=We||at.operator===">"||at.operator===">=",Be=Be||at.operator==="<"||at.operator==="<=",Fe){if(ft&&at.semver.prerelease&&at.semver.prerelease.length&&at.semver.major===ft.major&&at.semver.minor===ft.minor&&at.semver.patch===ft.patch&&(ft=!1),at.operator===">"||at.operator===">="){if(Ce=B(Fe,at,ae),Ce===at&&Ce!==Fe)return!1}else if(Fe.operator===">="&&!o(Fe.semver,String(at),ae))return!1}if(te){if(Qe&&at.semver.prerelease&&at.semver.prerelease.length&&at.semver.major===Qe.major&&at.semver.minor===Qe.minor&&at.semver.patch===Qe.patch&&(Qe=!1),at.operator==="<"||at.operator==="<="){if(we=H(te,at,ae),we===at&&we!==te)return!1}else if(te.operator==="<="&&!o(te.semver,String(at),ae))return!1}if(!at.operator&&(te||Fe)&&se!==0)return!1}return!(Fe&&Be&&!te&&se!==0)&&!(te&&We&&!Fe&&se!==0)&&!ft&&!Qe},B=(Q,ee,ae)=>{if(!Q)return ee;let ge=g(Q.semver,ee.semver,ae);return ge>0?Q:ge<0||ee.operator===">"&&Q.operator===">="?ee:Q},H=(Q,ee,ae)=>{if(!Q)return ee;let ge=g(Q.semver,ee.semver,ae);return ge<0?Q:ge>0||ee.operator==="<"&&Q.operator==="<="?ee:Q};var Z=(Q,ee,ae={})=>{if(Q===ee)return!0;Q=new ui(Q,ae),ee=new ui(ee,ae);let ge=!1;e:for(let Fe of Q.set){for(let te of ee.set){let se=D(Fe,te,ae);if(ge=ge||se!==null,se)continue e}if(ge)return!1}return!0};let oe=m.exports;var me={re:oe.re,src:oe.src,tokens:oe.t,SEMVER_SPEC_VERSION:S.SEMVER_SPEC_VERSION,SemVer:k,compareIdentifiers:I.compareIdentifiers,rcompareIdentifiers:I.rcompareIdentifiers,parse:L,valid:K,clean:X,inc:ie,diff:ue,major:Ie,minor:ve,patch:Se,prerelease:$e,compare:pe,rcompare:q,compareLoose:Te,compareBuild:Oe,sort:rt,rsort:Ft,gt:Rt,lt:Et,eq:ye,neq:Kt,gte:Mr,lte:Cr,cmp:Ue,coerce:ar,Comparator:le(),Range:fe(),satisfies:ke,toComparators:et,maxSatisfying:st,minSatisfying:xt,minVersion:St,validRange:ur,outside:Zr,gtr:li,ltr:Ms,intersects:Fi,simplifyRange:(Q,ee,ae)=>{let ge=[],Fe=null,te=null,se=Q.sort((We,Qe)=>Pn(We,Qe,ae));for(let We of se)Bs(We,ee,ae)?(te=We,Fe||(Fe=We)):(te&&ge.push([Fe,te]),te=null,Fe=null);Fe&&ge.push([Fe,null]);let Ce=[];for(let[We,Qe]of ge)We===Qe?Ce.push(We):Qe||We!==se[0]?Qe?We===se[0]?Ce.push(`<=${Qe}`):Ce.push(`${We} - ${Qe}`):Ce.push(`>=${We}`):Ce.push("*");let we=Ce.join(" || "),Be=typeof ee.raw=="string"?ee.raw:String(ee);return we.length<Be.length?we:ee},subset:Z},Ne=me;let ze={read:function(Q){return ut(r().dirname(Q))}};function ut(Q){try{return{string:n().default.readFileSync(r().toNamespacedPath(r().join(Q,"package.json")),"utf8")}}catch(ee){if(ee.code==="ENOENT"){let ae=r().dirname(Q);return Q!==ae?ut(ae):{string:void 0}}throw ee}}let dt=process.platform==="win32",Ot={}.hasOwnProperty,kt={},Wt=new Map,Ht;function fr(Q,ee,ae){return Wt.set(Q,ee),function(ge,Fe){return te;function te(...se){let Ce=Error.stackTraceLimit;$s()&&(Error.stackTraceLimit=0);let we=new ge;$s()&&(Error.stackTraceLimit=Ce);let Be=function(We,Qe,ft){let at=Wt.get(We);if(typeof at=="function")return i()(at.length<=Qe.length,`Code: ${We}; The provided arguments length (${Qe.length}) does not match the required ones (${at.length}).`),Reflect.apply(at,ft,Qe);let hr=(at.match(/%[dfijoOs]/g)||[]).length;return i()(hr===Qe.length,`Code: ${We}; The provided arguments length (${Qe.length}) does not match the required ones (${hr}).`),Qe.length===0?at:(Qe.unshift(at),Reflect.apply(u().format,null,Qe))}(Fe,se,we);return Object.defineProperty(we,"message",{value:Be,enumerable:!1,writable:!0,configurable:!0}),Object.defineProperty(we,"toString",{value(){return`${this.name} [${Fe}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}),dm(we,ge.name,Fe),we.code=Fe,we}}(ae,Q)}kt.ERR_INVALID_MODULE_SPECIFIER=fr("ERR_INVALID_MODULE_SPECIFIER",(Q,ee,ae)=>`Invalid module "${Q}" ${ee}${ae?` imported from ${ae}`:""}`,TypeError),kt.ERR_INVALID_PACKAGE_CONFIG=fr("ERR_INVALID_PACKAGE_CONFIG",(Q,ee,ae)=>`Invalid package config ${Q}${ee?` while importing ${ee}`:""}${ae?`. ${ae}`:""}`,Error),kt.ERR_INVALID_PACKAGE_TARGET=fr("ERR_INVALID_PACKAGE_TARGET",(Q,ee,ae,ge=!1,Fe)=>{let te=typeof ae=="string"&&!ge&&ae.length>0&&!ae.startsWith("./");return ee==="."?(i()(ge===!1),`Invalid "exports" main target ${JSON.stringify(ae)} defined in the package config ${Q}package.json${Fe?` imported from ${Fe}`:""}${te?'; targets must start with "./"':""}`):`Invalid "${ge?"imports":"exports"}" target ${JSON.stringify(ae)} defined for '${ee}' in the package config ${Q}package.json${Fe?` imported from ${Fe}`:""}${te?'; targets must start with "./"':""}`},Error),kt.ERR_MODULE_NOT_FOUND=fr("ERR_MODULE_NOT_FOUND",(Q,ee,ae="package")=>`Cannot find ${ae} '${Q}' imported from ${ee}`,Error),kt.ERR_PACKAGE_IMPORT_NOT_DEFINED=fr("ERR_PACKAGE_IMPORT_NOT_DEFINED",(Q,ee,ae)=>`Package import specifier "${Q}" is not defined${ee?` in package ${ee}package.json`:""} imported from ${ae}`,TypeError),kt.ERR_PACKAGE_PATH_NOT_EXPORTED=fr("ERR_PACKAGE_PATH_NOT_EXPORTED",(Q,ee,ae)=>ee==="."?`No "exports" main defined in ${Q}package.json${ae?` imported from ${ae}`:""}`:`Package subpath '${ee}' is not defined by "exports" in ${Q}package.json${ae?` imported from ${ae}`:""}`,Error),kt.ERR_UNSUPPORTED_DIR_IMPORT=fr("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error),kt.ERR_UNKNOWN_FILE_EXTENSION=fr("ERR_UNKNOWN_FILE_EXTENSION",'Unknown file extension "%s" for %s',TypeError),kt.ERR_INVALID_ARG_VALUE=fr("ERR_INVALID_ARG_VALUE",(Q,ee,ae="is invalid")=>{let ge=(0,u().inspect)(ee);return ge.length>128&&(ge=`${ge.slice(0,128)}...`),`The ${Q.includes(".")?"property":"argument"} '${Q}' ${ae}. Received ${ge}`},TypeError),kt.ERR_UNSUPPORTED_ESM_URL_SCHEME=fr("ERR_UNSUPPORTED_ESM_URL_SCHEME",Q=>{let ee="Only file and data URLs are supported by the default ESM loader";return dt&&Q.protocol.length===2&&(ee+=". On Windows, absolute paths must be valid file:// URLs"),ee+=`. Received protocol '${Q.protocol}'`,ee},Error);let dm=gl(function(Q,ee,ae){(Q=fm(Q)).name=`${ee} [${ae}]`,Q.stack,ee==="SystemError"?Object.defineProperty(Q,"name",{value:ee,enumerable:!1,writable:!0,configurable:!0}):delete Q.name});function $s(){let Q=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return Q===void 0?Object.isExtensible(Error):Ot.call(Q,"writable")?Q.writable:Q.set!==void 0}function gl(Q){let ee="__node_internal_"+Q.name;return Object.defineProperty(Q,"name",{value:ee}),Q}let fm=gl(function(Q){let ee=$s();return ee&&(Ht=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(Q),ee&&(Error.stackTraceLimit=Ht),Q}),{ERR_UNKNOWN_FILE_EXTENSION:hm}=kt,mm={__proto__:null,".cjs":"commonjs",".js":"module",".mjs":"module"};function ym(Q){if(Q.startsWith("node:"))return{format:"builtin"};let ee=new(t()).URL(Q);if(ee.protocol==="data:"){let{1:ae}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(ee.pathname)||[null,null];return{format:ae==="text/javascript"?"module":null}}if(ee.protocol==="file:"){let ae=r().extname(ee.pathname),ge;if(ge=ae===".js"?function(Fe){return Gs(Fe).type}(ee.href)==="module"?"module":"commonjs":mm[ae],!ge)throw new hm(ae,(0,t().fileURLToPath)(Q));return{format:ge||null}}return{format:null}}let bm=function({version:Q=process.version,experimental:ee=!1}={}){var ae=["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","punycode","querystring","readline","repl","stream","string_decoder","sys","timers","tls","tty","url","util","vm","zlib"];return Ne.lt(Q,"6.0.0")&&ae.push("freelist"),Ne.gte(Q,"1.0.0")&&ae.push("v8"),Ne.gte(Q,"1.1.0")&&ae.push("process"),Ne.gte(Q,"8.0.0")&&ae.push("inspector"),Ne.gte(Q,"8.1.0")&&ae.push("async_hooks"),Ne.gte(Q,"8.4.0")&&ae.push("http2"),Ne.gte(Q,"8.5.0")&&ae.push("perf_hooks"),Ne.gte(Q,"10.0.0")&&ae.push("trace_events"),Ne.gte(Q,"10.5.0")&&(ee||Ne.gte(Q,"12.0.0"))&&ae.push("worker_threads"),Ne.gte(Q,"12.16.0")&&ee&&ae.push("wasi"),ae}(),{ERR_INVALID_MODULE_SPECIFIER:Ri,ERR_INVALID_PACKAGE_CONFIG:Us,ERR_INVALID_PACKAGE_TARGET:gm,ERR_MODULE_NOT_FOUND:Vs,ERR_PACKAGE_IMPORT_NOT_DEFINED:Em,ERR_PACKAGE_PATH_NOT_EXPORTED:vm,ERR_UNSUPPORTED_DIR_IMPORT:Sm,ERR_UNSUPPORTED_ESM_URL_SCHEME:Tm,ERR_INVALID_ARG_VALUE:Pm}=kt,El={}.hasOwnProperty,vl=Object.freeze(["node","import"]),Am=new Set(vl),Sl=/(^|\\|\/)(\.\.?|node_modules)(\\|\/|$)/,Tl=/\*/g,_m=/%2f|%2c/i,Pl=new Set,ki=new Map;function Al(Q,ee,ae,ge){let Fe=(0,t().fileURLToPath)(ee);Pl.has(Fe+"|"+Q)||(Pl.add(Fe+"|"+Q),process.emitWarning(`Use of deprecated folder mapping "${Q}" in the ${ae?'"exports"':'"imports"'} field module resolution of the package at ${Fe}${ge?` imported from ${(0,t().fileURLToPath)(ge)}`:""}.
|
|
99
|
+
Update this package.json to use a subpath pattern like "${Q}*".`,"DeprecationWarning","DEP0148"))}function _l(Q,ee,ae,ge){let{format:Fe}=ym(Q.href);if(Fe!=="module")return;let te=(0,t().fileURLToPath)(Q.href),se=(0,t().fileURLToPath)(new(t()).URL(".",ee)),Ce=(0,t().fileURLToPath)(ae);ge?process.emitWarning(`Package ${se} has a "main" field set to ${JSON.stringify(ge)}, excluding the full filename and extension to the resolved file at "${te.slice(se.length)}", imported from ${Ce}.
|
|
100
100
|
Automatic extension resolution of the "main" field isdeprecated for ES modules.`,"DeprecationWarning","DEP0151"):process.emitWarning(`No "main" or "exports" field defined in the package.json for ${se} resolving the main entry point "${te.slice(se.length)}", imported from ${Ce}.
|
|
101
|
-
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function Ws(Q){try{return(0,n().statSync)(Q)}catch{return new(n()).Stats}}function
|
|
101
|
+
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function Ws(Q){try{return(0,n().statSync)(Q)}catch{return new(n()).Stats}}function Cl(Q,ee,ae){let ge=ki.get(Q);if(ge!==void 0)return ge;let Fe=ze.read(Q).string;if(Fe===void 0){let ft={pjsonPath:Q,exists:!1,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};return ki.set(Q,ft),ft}let te;try{te=JSON.parse(Fe)}catch(ft){throw new Us(Q,(ae?`"${ee}" from `:"")+(0,t().fileURLToPath)(ae||ee),ft.message)}let{exports:se,imports:Ce,main:we,name:Be,type:We}=te,Qe={pjsonPath:Q,exists:!0,main:typeof we=="string"?we:void 0,name:typeof Be=="string"?Be:void 0,type:We==="module"||We==="commonjs"?We:"none",exports:se,imports:Ce&&typeof Ce=="object"?Ce:void 0};return ki.set(Q,Qe),Qe}function Gs(Q){let ee=new(t()).URL("./package.json",Q);for(;!ee.pathname.endsWith("node_modules/package.json");){let Fe=Cl((0,t().fileURLToPath)(ee),Q);if(Fe.exists)return Fe;let te=ee;if(ee=new(t()).URL("../package.json",ee),ee.pathname===te.pathname)break}let ae=(0,t().fileURLToPath)(ee),ge={pjsonPath:ae,exists:!1,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};return ki.set(ae,ge),ge}function Ks(Q){return Ws((0,t().fileURLToPath)(Q)).isFile()}function Cm(Q,ee,ae){let ge;if(ee.main!==void 0){if(ge=new(t()).URL(`./${ee.main}`,Q),Ks(ge))return ge;let se=[`./${ee.main}.js`,`./${ee.main}.json`,`./${ee.main}.node`,`./${ee.main}/index.js`,`./${ee.main}/index.json`,`./${ee.main}/index.node`],Ce=-1;for(;++Ce<se.length&&(ge=new(t()).URL(se[Ce],Q),!Ks(ge));)ge=void 0;if(ge)return _l(ge,Q,ae,ee.main),ge}let Fe=["./index.js","./index.json","./index.node"],te=-1;for(;++te<Fe.length&&(ge=new(t()).URL(Fe[te],Q),!Ks(ge));)ge=void 0;if(ge)return _l(ge,Q,ae,ee.main),ge;throw new Vs((0,t().fileURLToPath)(new(t()).URL(".",Q)),(0,t().fileURLToPath)(ae))}function Hs(Q,ee,ae){throw new vm((0,t().fileURLToPath)(new(t()).URL(".",ee)),Q,ae&&(0,t().fileURLToPath)(ae))}function ci(Q,ee,ae,ge,Fe){throw ee=typeof ee=="object"&&ee!==null?JSON.stringify(ee,null,""):`${ee}`,new gm((0,t().fileURLToPath)(new(t()).URL(".",ae)),Q,ee,ge,Fe&&(0,t().fileURLToPath)(Fe))}function wm(Q,ee,ae,ge,Fe,te,se,Ce){if(ee===""||te||Q[Q.length-1]==="/"||ci(ae,Q,ge,se,Fe),!Q.startsWith("./")){if(se&&!Q.startsWith("../")&&!Q.startsWith("/")){let Qe=!1;try{new(t()).URL(Q),Qe=!0}catch{}if(!Qe)return Dl(te?Q.replace(Tl,ee):Q+ee,ge,Ce)}ci(ae,Q,ge,se,Fe)}Sl.test(Q.slice(2))&&ci(ae,Q,ge,se,Fe);let we=new(t()).URL(Q,ge),Be=we.pathname,We=new(t()).URL(".",ge).pathname;return Be.startsWith(We)||ci(ae,Q,ge,se,Fe),ee===""?we:(Sl.test(ee)&&function(Qe,ft,at,hr){let Fr=`request is not a valid subpath for the "${at?"imports":"exports"}" resolution of ${(0,t().fileURLToPath)(ft)}`;throw new Ri(Qe,Fr,hr&&(0,t().fileURLToPath)(hr))}(ae+ee,ge,se,Fe),te?new(t()).URL(we.href.replace(Tl,ee)):new(t()).URL(ee,we))}function Dm(Q){let ee=Number(Q);return`${ee}`===Q&&ee>=0&&ee<4294967295}function Mn(Q,ee,ae,ge,Fe,te,se,Ce){if(typeof ee=="string")return wm(ee,ae,ge,Q,Fe,te,se,Ce);if(Array.isArray(ee)){let we=ee;if(we.length===0)return null;let Be,We=-1;for(;++We<we.length;){let Qe=we[We],ft;try{ft=Mn(Q,Qe,ae,ge,Fe,te,se,Ce)}catch(at){if(Be=at,at.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw at}if(ft!==void 0){if(ft!==null)return ft;Be=null}}if(Be==null)return Be;throw Be}if(typeof ee!="object"||ee===null){if(ee===null)return null;ci(ge,ee,Q,se,Fe)}else{let we=Object.getOwnPropertyNames(ee),Be=-1;for(;++Be<we.length;)if(Dm(we[Be]))throw new Us((0,t().fileURLToPath)(Q),Fe,'"exports" cannot contain numeric property keys.');for(Be=-1;++Be<we.length;){let We=we[Be];if(We==="default"||Ce&&Ce.has(We)){let Qe=Mn(Q,ee[We],ae,ge,Fe,te,se,Ce);if(Qe===void 0)continue;return Qe}}}}function wl(Q,ee,ae,ge,Fe){let te=ae.exports;if(function(Be,We,Qe){if(typeof Be=="string"||Array.isArray(Be))return!0;if(typeof Be!="object"||Be===null)return!1;let ft=Object.getOwnPropertyNames(Be),at=!1,hr=0,Fr=-1;for(;++Fr<ft.length;){let er=ft[Fr],Bn=er===""||er[0]!==".";if(hr++==0)at=Bn;else if(at!==Bn)throw new Us((0,t().fileURLToPath)(We),Qe,`"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 at}(te,Q,ge)&&(te={".":te}),El.call(te,ee)){let Be=Mn(Q,te[ee],"",ee,ge,!1,!1,Fe);return Be==null&&Hs(ee,Q,ge),{resolved:Be,exact:!0}}let se="",Ce=Object.getOwnPropertyNames(te),we=-1;for(;++we<Ce.length;){let Be=Ce[we];(Be[Be.length-1]==="*"&&ee.startsWith(Be.slice(0,-1))&&ee.length>=Be.length&&Be.length>se.length||Be[Be.length-1]==="/"&&ee.startsWith(Be)&&Be.length>se.length)&&(se=Be)}if(se){let Be=te[se],We=se[se.length-1]==="*",Qe=Mn(Q,Be,ee.slice(se.length-(We?1:0)),se,ge,We,!1,Fe);return Qe==null&&Hs(ee,Q,ge),We||Al(se,Q,!0,ge),{resolved:Qe,exact:We}}Hs(ee,Q,ge)}function xm(Q,ee,ae){if(Q==="#"||Q.startsWith("#/"))throw new Ri(Q,"is not a valid internal imports specifier name",(0,t().fileURLToPath)(ee));let ge,Fe=Gs(ee);if(Fe.exists){ge=(0,t().pathToFileURL)(Fe.pjsonPath);let te=Fe.imports;if(te)if(El.call(te,Q)){let se=Mn(ge,te[Q],"",Q,ee,!1,!0,ae);if(se!==null)return{resolved:se,exact:!0}}else{let se="",Ce=Object.getOwnPropertyNames(te),we=-1;for(;++we<Ce.length;){let Be=Ce[we];(Be[Be.length-1]==="*"&&Q.startsWith(Be.slice(0,-1))&&Q.length>=Be.length&&Be.length>se.length||Be[Be.length-1]==="/"&&Q.startsWith(Be)&&Be.length>se.length)&&(se=Be)}if(se){let Be=te[se],We=se[se.length-1]==="*",Qe=Mn(ge,Be,Q.slice(se.length-(We?1:0)),se,ee,We,!0,ae);if(Qe!==null)return We||Al(se,ge,!1,ee),{resolved:Qe,exact:We}}}}(function(te,se,Ce){throw new Em(te,se&&(0,t().fileURLToPath)(new(t()).URL(".",se)),(0,t().fileURLToPath)(Ce))})(Q,ge,ee)}function Dl(Q,ee,ae){let{packageName:ge,packageSubpath:Fe,isScoped:te}=function(We,Qe){let ft=We.indexOf("/"),at=!0,hr=!1;We[0]==="@"&&(hr=!0,ft===-1||We.length===0?at=!1:ft=We.indexOf("/",ft+1));let Fr=ft===-1?We:We.slice(0,ft),er=-1;for(;++er<Fr.length;)if(Fr[er]==="%"||Fr[er]==="\\"){at=!1;break}if(!at)throw new Ri(We,"is not a valid package name",(0,t().fileURLToPath)(Qe));return{packageName:Fr,packageSubpath:"."+(ft===-1?"":We.slice(ft)),isScoped:hr}}(Q,ee),se=Gs(ee);if(se.exists){let We=(0,t().pathToFileURL)(se.pjsonPath);if(se.name===ge&&se.exports!==void 0&&se.exports!==null)return wl(We,Fe,se,ee,ae).resolved}let Ce,we=new(t()).URL("./node_modules/"+ge+"/package.json",ee),Be=(0,t().fileURLToPath)(we);do{if(!Ws(Be.slice(0,-13)).isDirectory()){Ce=Be,we=new(t()).URL((te?"../../../../node_modules/":"../../../node_modules/")+ge+"/package.json",we),Be=(0,t().fileURLToPath)(we);continue}let We=Cl(Be,Q,ee);return We.exports!==void 0&&We.exports!==null?wl(we,Fe,We,ee,ae).resolved:Fe==="."?Cm(we,We,ee):new(t()).URL(Fe,we)}while(Be.length!==Ce.length);throw new Vs(ge,(0,t().fileURLToPath)(ee))}function xl(Q,ee,ae){let ge;if(function(Fe){return Fe!==""&&(Fe[0]==="/"||function(te){return te[0]==="."&&(te.length===1||te[1]==="/"||te[1]==="."&&(te.length===2||te[2]==="/"))}(Fe))}(Q))ge=new(t()).URL(Q,ee);else if(Q[0]==="#")({resolved:ge}=xm(Q,ee,ae));else try{ge=new(t()).URL(Q)}catch{ge=Dl(Q,ee,ae)}return function(Fe,te){if(_m.test(Fe.pathname))throw new Ri(Fe.pathname,'must not include encoded "/" or "\\" characters',(0,t().fileURLToPath)(te));let se=(0,t().fileURLToPath)(Fe),Ce=Ws(se.endsWith("/")?se.slice(-1):se);if(Ce.isDirectory()){let we=new Sm(se,(0,t().fileURLToPath)(te));throw we.url=String(Fe),we}if(!Ce.isFile())throw new Vs(se||Fe.pathname,te&&(0,t().fileURLToPath)(te),"module");return Fe}(ge,ee)}function Om(Q,ee={}){let{parentURL:ae}=ee,ge;try{if(ge=new(t()).URL(Q),ge.protocol==="data:")return{url:Q}}catch{}if(ge&&ge.protocol==="node:")return{url:Q};if(ge&&ge.protocol!=="file:"&&ge.protocol!=="data:")throw new Tm(ge);if(bm.includes(Q))return{url:"node:"+Q};ae.startsWith("data:")&&new(t()).URL(Q,ae);let Fe=function(Be){if(Be!==void 0&&Be!==vl){if(!Array.isArray(Be))throw new Pm("conditions",Be,"expected an array");return new Set(Be)}return Am}(ee.conditions),te=xl(Q,new(t()).URL(ae),Fe),se=(0,t().fileURLToPath)(te),Ce=(0,n().realpathSync)(se),we=te;return te=(0,t().pathToFileURL)(Ce+(se.endsWith(r().sep)?"/":"")),te.search=we.search,te.hash=we.hash,{url:`${te}`}}function Ol(){return(Ol=y(function*(Q,ee){if(!ee)throw new Error("Please pass `parent`: `import-meta-resolve` cannot ponyfill that");try{return Om(Q,{parentURL:ee}).url}catch(ae){return ae.code==="ERR_UNSUPPORTED_DIR_IMPORT"?ae.url:Promise.reject(ae)}})).apply(this,arguments)}},"./node_modules/.pnpm/@babel+generator@7.18.2/node_modules/@babel/generator/lib/buffer.js":(v,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;let l=/^[ \t]+$/;e.default=class{constructor(t){this._map=null,this._buf="",this._last=0,this._queue=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,line:void 0,column:void 0,filename:void 0},this._disallowedPop=null,this._map=t}get(){this._flush();let t=this._map,n={code:this._buf.trimRight(),decodedMap:t==null?void 0:t.getDecoded(),get map(){return n.map=t?t.get():null},set map(r){Object.defineProperty(n,"map",{value:r,writable:!0})},get rawMappings(){return n.rawMappings=t==null?void 0:t.getRawMappings()},set rawMappings(r){Object.defineProperty(n,"rawMappings",{value:r,writable:!0})}};return n}append(t){this._flush();let{line:n,column:r,filename:i,identifierName:u}=this._sourcePosition;this._append(t,n,r,u,i)}queue(t){if(t===`
|
|
102
102
|
`)for(;this._queue.length>0&&l.test(this._queue[0][0]);)this._queue.shift();let{line:n,column:r,filename:i,identifierName:u}=this._sourcePosition;this._queue.unshift([t,n,r,u,i])}queueIndentation(t){this._queue.unshift([t,void 0,void 0,void 0,void 0])}_flush(){let t;for(;t=this._queue.pop();)this._append(...t)}_append(t,n,r,i,u){this._buf+=t,this._last=t.charCodeAt(t.length-1);let a=t.indexOf(`
|
|
103
103
|
`),d=0;for(a!==0&&this._mark(n,r,i,u);a!==-1;)this._position.line++,this._position.column=0,d=a+1,d<t.length&&this._mark(++n,0,i,u),a=t.indexOf(`
|
|
104
104
|
`,d);this._position.column+=t.length-d}_mark(t,n,r,i){var u;(u=this._map)==null||u.mark(this._position,t,n,r,i)}removeTrailingNewline(){this._queue.length>0&&this._queue[0][0]===`
|
|
@@ -2141,10 +2141,10 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
|
|
|
2141
2141
|
- Did you mean \`export { '${s}' as '${o}' } from 'some-module'\`?`),ExportDefaultFromAsIdentifier:W("'from' is not allowed as an identifier after 'export default'."),ForInOfLoopInitializer:W(({type:s})=>`'${s==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`),ForOfAsync:W("The left-hand side of a for-of loop may not be 'async'."),ForOfLet:W("The left-hand side of a for-of loop may not start with 'let'."),GeneratorInSingleStatementContext:W("Generators can only be declared at the top level or inside a block."),IllegalBreakContinue:W(({type:s})=>`Unsyntactic ${s==="BreakStatement"?"break":"continue"}.`),IllegalLanguageModeDirective:W("Illegal 'use strict' directive in function with non-simple parameter list."),IllegalReturn:W("'return' outside of function."),ImportBindingIsString:W(({importName:s})=>`A string literal cannot be used as an imported binding.
|
|
2142
2142
|
- Did you mean \`import { "${s}" as foo }\`?`),ImportCallArgumentTrailingComma:W("Trailing comma is disallowed inside import(...) arguments."),ImportCallArity:W(({maxArgumentCount:s})=>`\`import()\` requires exactly ${s===1?"one argument":"one or two arguments"}.`),ImportCallNotNewExpression:W("Cannot use new with import(...)."),ImportCallSpreadArgument:W("`...` is not allowed in `import()`."),IncompatibleRegExpUVFlags:W("The 'u' and 'v' regular expression flags cannot be enabled at the same time."),InvalidBigIntLiteral:W("Invalid BigIntLiteral."),InvalidCodePoint:W("Code point out of bounds."),InvalidCoverInitializedName:W("Invalid shorthand property initializer."),InvalidDecimal:W("Invalid decimal."),InvalidDigit:W(({radix:s})=>`Expected number in radix ${s}.`),InvalidEscapeSequence:W("Bad character escape sequence."),InvalidEscapeSequenceTemplate:W("Invalid escape sequence in template."),InvalidEscapedReservedWord:W(({reservedWord:s})=>`Escape sequence in keyword ${s}.`),InvalidIdentifier:W(({identifierName:s})=>`Invalid identifier ${s}.`),InvalidLhs:W(({ancestor:s})=>`Invalid left-hand side in ${d(s)}.`),InvalidLhsBinding:W(({ancestor:s})=>`Binding invalid left-hand side in ${d(s)}.`),InvalidNumber:W("Invalid number."),InvalidOrMissingExponent:W("Floating-point numbers require a valid exponent after the 'e'."),InvalidOrUnexpectedToken:W(({unexpected:s})=>`Unexpected character '${s}'.`),InvalidParenthesizedAssignment:W("Invalid parenthesized assignment pattern."),InvalidPrivateFieldResolution:W(({identifierName:s})=>`Private name #${s} is not defined.`),InvalidPropertyBindingPattern:W("Binding member expression."),InvalidRecordProperty:W("Only properties and spread elements are allowed in record definitions."),InvalidRestAssignmentPattern:W("Invalid rest operator's argument."),LabelRedeclaration:W(({labelName:s})=>`Label '${s}' is already declared.`),LetInLexicalBinding:W("'let' is not allowed to be used as a name in 'let' or 'const' declarations."),LineTerminatorBeforeArrow:W("No line break is allowed before '=>'."),MalformedRegExpFlags:W("Invalid regular expression flag."),MissingClassName:W("A class name is required."),MissingEqInAssignment:W("Only '=' operator can be used for specifying default value."),MissingSemicolon:W("Missing semicolon."),MissingPlugin:W(({missingPlugin:s})=>`This experimental syntax requires enabling the parser plugin: ${s.map(o=>JSON.stringify(o)).join(", ")}.`),MissingOneOfPlugins:W(({missingPlugin:s})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${s.map(o=>JSON.stringify(o)).join(", ")}.`),MissingUnicodeEscape:W("Expecting Unicode escape sequence \\uXXXX."),MixingCoalesceWithLogical:W("Nullish coalescing operator(??) requires parens when mixing with logical operators."),ModuleAttributeDifferentFromType:W("The only accepted module attribute is `type`."),ModuleAttributeInvalidValue:W("Only string literals are allowed as module attribute values."),ModuleAttributesWithDuplicateKeys:W(({key:s})=>`Duplicate key "${s}" is not allowed in module attributes.`),ModuleExportNameHasLoneSurrogate:W(({surrogateCharCode:s})=>`An export name cannot include a lone surrogate, found '\\u${s.toString(16)}'.`),ModuleExportUndefined:W(({localName:s})=>`Export '${s}' is not defined.`),MultipleDefaultsInSwitch:W("Multiple default clauses."),NewlineAfterThrow:W("Illegal newline after throw."),NoCatchOrFinally:W("Missing catch or finally clause."),NumberIdentifier:W("Identifier directly after number."),NumericSeparatorInEscapeSequence:W("Numeric separators are not allowed inside unicode escape sequences or hex escape sequences."),ObsoleteAwaitStar:W("'await*' has been removed from the async functions proposal. Use Promise.all() instead."),OptionalChainingNoNew:W("Constructors in/after an Optional Chain are not allowed."),OptionalChainingNoTemplate:W("Tagged Template Literals are not allowed in optionalChain."),OverrideOnConstructor:W("'override' modifier cannot appear on a constructor declaration."),ParamDupe:W("Argument name clash."),PatternHasAccessor:W("Object pattern can't contain getter or setter."),PatternHasMethod:W("Object pattern can't contain methods."),PrivateInExpectedIn:W(({identifierName:s})=>`Private names are only allowed in property accesses (\`obj.#${s}\`) or in \`in\` expressions (\`#${s} in obj\`).`),PrivateNameRedeclaration:W(({identifierName:s})=>`Duplicate private name #${s}.`),RecordExpressionBarIncorrectEndSyntaxType:W("Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'."),RecordExpressionBarIncorrectStartSyntaxType:W("Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'."),RecordExpressionHashIncorrectStartSyntaxType:W("Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'."),RecordNoProto:W("'__proto__' is not allowed in Record expressions."),RestTrailingComma:W("Unexpected trailing comma after rest element."),SloppyFunction:W("In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement."),StaticPrototype:W("Classes may not have static property named prototype."),SuperNotAllowed:W("`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?"),SuperPrivateField:W("Private fields can't be accessed on super."),TrailingDecorator:W("Decorators must be attached to a class element."),TupleExpressionBarIncorrectEndSyntaxType:W("Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'."),TupleExpressionBarIncorrectStartSyntaxType:W("Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'."),TupleExpressionHashIncorrectStartSyntaxType:W("Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'."),UnexpectedArgumentPlaceholder:W("Unexpected argument placeholder."),UnexpectedAwaitAfterPipelineBody:W('Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.'),UnexpectedDigitAfterHash:W("Unexpected digit after hash token."),UnexpectedImportExport:W("'import' and 'export' may only appear at the top level."),UnexpectedKeyword:W(({keyword:s})=>`Unexpected keyword '${s}'.`),UnexpectedLeadingDecorator:W("Leading decorators must be attached to a class declaration."),UnexpectedLexicalDeclaration:W("Lexical declaration cannot appear in a single-statement context."),UnexpectedNewTarget:W("`new.target` can only be used in functions or class properties."),UnexpectedNumericSeparator:W("A numeric separator is only allowed between two digits."),UnexpectedPrivateField:W("Unexpected private name."),UnexpectedReservedWord:W(({reservedWord:s})=>`Unexpected reserved word '${s}'.`),UnexpectedSuper:W("'super' is only allowed in object methods and classes."),UnexpectedToken:W(({expected:s,unexpected:o})=>`Unexpected token${o?` '${o}'.`:""}${s?`, expected "${s}"`:""}`),UnexpectedTokenUnaryExponentiation:W("Illegal expression. Wrap left hand side or entire exponentiation in parentheses."),UnsupportedBind:W("Binding should be performed on object property."),UnsupportedDecoratorExport:W("A decorated export must export a class declaration."),UnsupportedDefaultExport:W("Only expressions, functions or classes are allowed as the `default` export."),UnsupportedImport:W("`import` can only be used in `import()` or `import.meta`."),UnsupportedMetaProperty:W(({target:s,onlyValidPropertyName:o})=>`The only valid meta property for ${s} is ${s}.${o}.`),UnsupportedParameterDecorator:W("Decorators cannot be used to decorate parameters."),UnsupportedPropertyDecorator:W("Decorators cannot be used to decorate object literal properties."),UnsupportedSuper:W("'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop])."),UnterminatedComment:W("Unterminated comment."),UnterminatedRegExp:W("Unterminated regular expression."),UnterminatedString:W("Unterminated string constant."),UnterminatedTemplate:W("Unterminated template."),VarRedeclaration:W(({identifierName:s})=>`Identifier '${s}' has already been declared.`),YieldBindingIdentifier:W("Can not use 'yield' as identifier inside a generator."),YieldInParameter:W("Yield expression is not allowed in formal parameters."),ZeroDigitNumericSeparator:W("Numeric separator can not be used after leading 0.")})),h(W=>({StrictDelete:W("Deleting local variable in strict mode."),StrictEvalArguments:W(({referenceName:s})=>`Assigning to '${s}' in strict mode.`),StrictEvalArgumentsBinding:W(({bindingName:s})=>`Binding '${s}' in strict mode.`),StrictFunction:W("In strict mode code, functions can only be declared at top level or inside a block."),StrictNumericEscape:W("The only valid numeric escape in strict mode is '\\0'."),StrictOctalLiteral:W("Legacy octal literals are not allowed in strict mode."),StrictWith:W("'with' in strict mode.")})),h`pipelineOperator`(W=>({PipeBodyIsTighter:W("Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence."),PipeTopicRequiresHackPipes:W('Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'),PipeTopicUnbound:W("Topic reference is unbound; it must be inside a pipe body."),PipeTopicUnconfiguredToken:W(({token:s})=>`Invalid topic token ${s}. In order to use ${s} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${s}" }.`),PipeTopicUnused:W("Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once."),PipeUnparenthesizedBody:W(({type:s})=>`Hack-style pipe body cannot be an unparenthesized ${d({type:s})}; please wrap it in parentheses.`),PipelineBodyNoArrow:W('Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.'),PipelineBodySequenceExpression:W("Pipeline body may not be a comma-separated sequence expression."),PipelineHeadSequenceExpression:W("Pipeline head should not be a comma-separated sequence expression."),PipelineTopicUnused:W("Pipeline is in topic style but does not use topic reference."),PrimaryTopicNotAllowed:W("Topic reference was used in a lexical context without topic binding."),PrimaryTopicRequiresSmartPipeline:W('Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.')}))),{defineProperty:w}=Object,_=(W,s)=>w(W,s,{enumerable:!1,value:W[s]});function I(W){return W.loc.start&&_(W.loc.start,"index"),W.loc.end&&_(W.loc.end,"index"),W}class P{constructor(s,o){this.token=void 0,this.preserveSpace=void 0,this.token=s,this.preserveSpace=!!o}}let R={brace:new P("{"),j_oTag:new P("<tag"),j_cTag:new P("</tag"),j_expr:new P("<tag>...</tag>",!0)};R.template=new P("`",!0);class C{constructor(s,o={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=s,this.keyword=o.keyword,this.beforeExpr=!!o.beforeExpr,this.startsExpr=!!o.startsExpr,this.rightAssociative=!!o.rightAssociative,this.isLoop=!!o.isLoop,this.isAssign=!!o.isAssign,this.prefix=!!o.prefix,this.postfix=!!o.postfix,this.binop=o.binop!=null?o.binop:null,this.updateContext=null}}let j=new Map;function T(W,s={}){s.keyword=W;let o=F(W,s);return j.set(W,o),o}function N(W,s){return F(W,{beforeExpr:!0,binop:s})}let $=-1,G=[],k=[],U=[],M=[],O=[],x=[];function F(W,s={}){var o,g,D,B;return++$,k.push(W),U.push((o=s.binop)!=null?o:-1),M.push((g=s.beforeExpr)!=null&&g),O.push((D=s.startsExpr)!=null&&D),x.push((B=s.prefix)!=null&&B),G.push(new C(W,s)),$}function L(W,s={}){var o,g,D,B;return++$,j.set(W,$),k.push(W),U.push((o=s.binop)!=null?o:-1),M.push((g=s.beforeExpr)!=null&&g),O.push((D=s.startsExpr)!=null&&D),x.push((B=s.prefix)!=null&&B),G.push(new C("name",s)),$}let V={bracketL:F("[",{beforeExpr:!0,startsExpr:!0}),bracketHashL:F("#[",{beforeExpr:!0,startsExpr:!0}),bracketBarL:F("[|",{beforeExpr:!0,startsExpr:!0}),bracketR:F("]"),bracketBarR:F("|]"),braceL:F("{",{beforeExpr:!0,startsExpr:!0}),braceBarL:F("{|",{beforeExpr:!0,startsExpr:!0}),braceHashL:F("#{",{beforeExpr:!0,startsExpr:!0}),braceR:F("}"),braceBarR:F("|}"),parenL:F("(",{beforeExpr:!0,startsExpr:!0}),parenR:F(")"),comma:F(",",{beforeExpr:!0}),semi:F(";",{beforeExpr:!0}),colon:F(":",{beforeExpr:!0}),doubleColon:F("::",{beforeExpr:!0}),dot:F("."),question:F("?",{beforeExpr:!0}),questionDot:F("?."),arrow:F("=>",{beforeExpr:!0}),template:F("template"),ellipsis:F("...",{beforeExpr:!0}),backQuote:F("`",{startsExpr:!0}),dollarBraceL:F("${",{beforeExpr:!0,startsExpr:!0}),templateTail:F("...`",{startsExpr:!0}),templateNonTail:F("...${",{beforeExpr:!0,startsExpr:!0}),at:F("@"),hash:F("#",{startsExpr:!0}),interpreterDirective:F("#!..."),eq:F("=",{beforeExpr:!0,isAssign:!0}),assign:F("_=",{beforeExpr:!0,isAssign:!0}),slashAssign:F("_=",{beforeExpr:!0,isAssign:!0}),xorAssign:F("_=",{beforeExpr:!0,isAssign:!0}),moduloAssign:F("_=",{beforeExpr:!0,isAssign:!0}),incDec:F("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),bang:F("!",{beforeExpr:!0,prefix:!0,startsExpr:!0}),tilde:F("~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),doubleCaret:F("^^",{startsExpr:!0}),doubleAt:F("@@",{startsExpr:!0}),pipeline:N("|>",0),nullishCoalescing:N("??",1),logicalOR:N("||",1),logicalAND:N("&&",2),bitwiseOR:N("|",3),bitwiseXOR:N("^",4),bitwiseAND:N("&",5),equality:N("==/!=/===/!==",6),lt:N("</>/<=/>=",7),gt:N("</>/<=/>=",7),relational:N("</>/<=/>=",7),bitShift:N("<</>>/>>>",8),bitShiftL:N("<</>>/>>>",8),bitShiftR:N("<</>>/>>>",8),plusMin:F("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:F("%",{binop:10,startsExpr:!0}),star:F("*",{binop:10}),slash:N("/",10),exponent:F("**",{beforeExpr:!0,binop:11,rightAssociative:!0}),_in:T("in",{beforeExpr:!0,binop:7}),_instanceof:T("instanceof",{beforeExpr:!0,binop:7}),_break:T("break"),_case:T("case",{beforeExpr:!0}),_catch:T("catch"),_continue:T("continue"),_debugger:T("debugger"),_default:T("default",{beforeExpr:!0}),_else:T("else",{beforeExpr:!0}),_finally:T("finally"),_function:T("function",{startsExpr:!0}),_if:T("if"),_return:T("return",{beforeExpr:!0}),_switch:T("switch"),_throw:T("throw",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_try:T("try"),_var:T("var"),_const:T("const"),_with:T("with"),_new:T("new",{beforeExpr:!0,startsExpr:!0}),_this:T("this",{startsExpr:!0}),_super:T("super",{startsExpr:!0}),_class:T("class",{startsExpr:!0}),_extends:T("extends",{beforeExpr:!0}),_export:T("export"),_import:T("import",{startsExpr:!0}),_null:T("null",{startsExpr:!0}),_true:T("true",{startsExpr:!0}),_false:T("false",{startsExpr:!0}),_typeof:T("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:T("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:T("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_do:T("do",{isLoop:!0,beforeExpr:!0}),_for:T("for",{isLoop:!0}),_while:T("while",{isLoop:!0}),_as:L("as",{startsExpr:!0}),_assert:L("assert",{startsExpr:!0}),_async:L("async",{startsExpr:!0}),_await:L("await",{startsExpr:!0}),_from:L("from",{startsExpr:!0}),_get:L("get",{startsExpr:!0}),_let:L("let",{startsExpr:!0}),_meta:L("meta",{startsExpr:!0}),_of:L("of",{startsExpr:!0}),_sent:L("sent",{startsExpr:!0}),_set:L("set",{startsExpr:!0}),_static:L("static",{startsExpr:!0}),_yield:L("yield",{startsExpr:!0}),_asserts:L("asserts",{startsExpr:!0}),_checks:L("checks",{startsExpr:!0}),_exports:L("exports",{startsExpr:!0}),_global:L("global",{startsExpr:!0}),_implements:L("implements",{startsExpr:!0}),_intrinsic:L("intrinsic",{startsExpr:!0}),_infer:L("infer",{startsExpr:!0}),_is:L("is",{startsExpr:!0}),_mixins:L("mixins",{startsExpr:!0}),_proto:L("proto",{startsExpr:!0}),_require:L("require",{startsExpr:!0}),_keyof:L("keyof",{startsExpr:!0}),_readonly:L("readonly",{startsExpr:!0}),_unique:L("unique",{startsExpr:!0}),_abstract:L("abstract",{startsExpr:!0}),_declare:L("declare",{startsExpr:!0}),_enum:L("enum",{startsExpr:!0}),_module:L("module",{startsExpr:!0}),_namespace:L("namespace",{startsExpr:!0}),_interface:L("interface",{startsExpr:!0}),_type:L("type",{startsExpr:!0}),_opaque:L("opaque",{startsExpr:!0}),name:F("name",{startsExpr:!0}),string:F("string",{startsExpr:!0}),num:F("num",{startsExpr:!0}),bigint:F("bigint",{startsExpr:!0}),decimal:F("decimal",{startsExpr:!0}),regexp:F("regexp",{startsExpr:!0}),privateName:F("#name",{startsExpr:!0}),eof:F("eof"),jsxName:F("jsxName"),jsxText:F("jsxText",{beforeExpr:!0}),jsxTagStart:F("jsxTagStart",{startsExpr:!0}),jsxTagEnd:F("jsxTagEnd"),placeholder:F("%%",{startsExpr:!0})};function K(W){return W>=93&&W<=128}function z(W){return W>=58&&W<=128}function X(W){return W>=58&&W<=132}function J(W){return O[W]}function ie(W){return W>=125&&W<=127}function he(W){return W>=58&&W<=92}function pe(W){return k[W]}function Ee(W){return U[W]}function ye(W){return W>=24&&W<=25}function Y(W){return G[W]}G[8].updateContext=W=>{W.pop()},G[5].updateContext=G[7].updateContext=G[23].updateContext=W=>{W.push(R.brace)},G[22].updateContext=W=>{W[W.length-1]===R.template?W.pop():W.push(R.template)},G[138].updateContext=W=>{W.push(R.j_expr,R.j_oTag)};let re="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",ue="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\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-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",ce=new RegExp("["+re+"]"),Ie=new RegExp("["+re+ue+"]");re=ue=null;let Ae=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,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,482,44,11,6,17,0,322,29,19,43,1269,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,4152,8,221,3,5761,15,7472,3104,541,1507,4938],ve=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,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,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239];function xe(W,s){let o=65536;for(let g=0,D=s.length;g<D;g+=2){if(o+=s[g],o>W)return!1;if(o+=s[g+1],o>=W)return!0}return!1}function Se(W){return W<65?W===36:W<=90||(W<97?W===95:W<=122||(W<=65535?W>=170&&ce.test(String.fromCharCode(W)):xe(W,Ae)))}function Ve(W){return W<48?W===36:W<58||!(W<65)&&(W<=90||(W<97?W===95:W<=122||(W<=65535?W>=170&&Ie.test(String.fromCharCode(W)):xe(W,Ae)||xe(W,ve))))}let $e=["implements","interface","let","package","private","protected","public","static","yield"],de=["eval","arguments"],q=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),ne=new Set($e),Te=new Set(de);function je(W,s){return s&&W==="await"||W==="enum"}function Oe(W,s){return je(W,s)||ne.has(W)}function be(W){return Te.has(W)}function rt(W,s){return Oe(W,s)||be(W)}let Lt=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Ft(W,s){W.trailingComments===void 0?W.trailingComments=s:W.trailingComments.unshift(...s)}function wt(W,s){W.innerComments===void 0?W.innerComments=s:W.innerComments.unshift(...s)}function Rt(W,s,o){let g=null,D=s.length;for(;g===null&&D>0;)g=s[--D];g===null||g.start>o.start?wt(W,o.comments):Ft(g,o.comments)}let Vt=/\r\n?|[\n\u2028\u2029]/,Et=new RegExp(Vt.source,"g");function ht(W){switch(W){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}let Kt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ye=new RegExp("(?=("+/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function Mr(W){switch(W){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}class lr{constructor(){this.strict=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.maybeInArrowParameters=!1,this.inType=!1,this.noAnonFunctionType=!1,this.hasFlowComment=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.inDisallowConditionalTypesContext=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.decoratorStack=[[]],this.comments=[],this.commentStack=[],this.pos=0,this.type=135,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.context=[R.brace],this.canStartJSXElement=!0,this.containsEsc=!1,this.strictErrors=new Map,this.tokensLength=0}init({strictMode:s,sourceType:o,startLine:g,startColumn:D}){this.strict=s!==!1&&(s===!0||o==="module"),this.curLine=g,this.lineStart=-D,this.startLoc=this.endLoc=new t(g,D,0)}curPosition(){return new t(this.curLine,this.pos-this.lineStart,this.pos)}clone(s){let o=new lr,g=Object.keys(this);for(let D=0,B=g.length;D<B;D++){let H=g[D],Z=this[H];!s&&Array.isArray(Z)&&(Z=Z.slice()),o[H]=Z}return o}}let Cr=["at"],Gr=["at"];var an=function(W){return W>=48&&W<=57};let Pe=new Set([103,109,115,105,121,117,100,118]),De={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},_e={bin:W=>W===48||W===49,oct:W=>W>=48&&W<=55,dec:W=>W>=48&&W<=57,hex:W=>W>=48&&W<=57||W>=65&&W<=70||W>=97&&W<=102};class Le{constructor(s){this.type=s.type,this.value=s.value,this.start=s.start,this.end=s.end,this.loc=new n(s.startLoc,s.endLoc)}}class Ue{constructor(s){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=s}}class Xe{constructor(s,o){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=s,this.inModule=o}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){let s=this.currentThisScopeFlags();return(64&s)>0&&(2&s)==0}get inStaticBlock(){for(let s=this.scopeStack.length-1;;s--){let{flags:o}=this.scopeStack[s];if(128&o)return!0;if(323&o)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(s){return new Ue(s)}enter(s){this.scopeStack.push(this.createScope(s))}exit(){this.scopeStack.pop()}treatFunctionsAsVarInScope(s){return!!(130&s.flags||!this.parser.inModule&&1&s.flags)}declareName(s,o,g){let D=this.currentScope();if(8&o||16&o)this.checkRedeclarationInScope(D,s,o,g),16&o?D.functions.add(s):D.lexical.add(s),8&o&&this.maybeExportDefined(D,s);else if(4&o)for(let B=this.scopeStack.length-1;B>=0&&(D=this.scopeStack[B],this.checkRedeclarationInScope(D,s,o,g),D.var.add(s),this.maybeExportDefined(D,s),!(259&D.flags));--B);this.parser.inModule&&1&D.flags&&this.undefinedExports.delete(s)}maybeExportDefined(s,o){this.parser.inModule&&1&s.flags&&this.undefinedExports.delete(o)}checkRedeclarationInScope(s,o,g,D){this.isRedeclaredInScope(s,o,g)&&this.parser.raise(f.VarRedeclaration,{at:D,identifierName:o})}isRedeclaredInScope(s,o,g){return!!(1&g)&&(8&g?s.lexical.has(o)||s.functions.has(o)||s.var.has(o):16&g?s.lexical.has(o)||!this.treatFunctionsAsVarInScope(s)&&s.var.has(o):s.lexical.has(o)&&!(8&s.flags&&s.lexical.values().next().value===o)||!this.treatFunctionsAsVarInScope(s)&&s.functions.has(o))}checkLocalExport(s){let{name:o}=s,g=this.scopeStack[0];g.lexical.has(o)||g.var.has(o)||g.functions.has(o)||this.undefinedExports.set(o,s.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let s=this.scopeStack.length-1;;s--){let{flags:o}=this.scopeStack[s];if(259&o)return o}}currentThisScopeFlags(){for(let s=this.scopeStack.length-1;;s--){let{flags:o}=this.scopeStack[s];if(323&o&&!(4&o))return o}}}class Je extends Ue{constructor(...s){super(...s),this.declareFunctions=new Set}}class ct extends Xe{createScope(s){return new Je(s)}declareName(s,o,g){let D=this.currentScope();if(2048&o)return this.checkRedeclarationInScope(D,s,o,g),this.maybeExportDefined(D,s),void D.declareFunctions.add(s);super.declareName(...arguments)}isRedeclaredInScope(s,o,g){return!!super.isRedeclaredInScope(...arguments)||!!(2048&g)&&!s.declareFunctions.has(o)&&(s.lexical.has(o)||s.functions.has(o))}checkLocalExport(s){this.scopeStack[0].declareFunctions.has(s.name)||super.checkLocalExport(s)}}class mt{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class At{constructor(s){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=s}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new mt)}exit(){let s=this.stack.pop(),o=this.current();for(let[g,D]of Array.from(s.undefinedPrivateNames))o?o.undefinedPrivateNames.has(g)||o.undefinedPrivateNames.set(g,D):this.parser.raise(f.InvalidPrivateFieldResolution,{at:D,identifierName:g})}declarePrivateName(s,o,g){let{privateNames:D,loneAccessors:B,undefinedPrivateNames:H}=this.current(),Z=D.has(s);if(3&o){let oe=Z&&B.get(s);if(oe){let me=4&oe,Ne=4&o;Z=(3&oe)===(3&o)||me!==Ne,Z||B.delete(s)}else Z||B.set(s,o)}Z&&this.parser.raise(f.PrivateNameRedeclaration,{at:g,identifierName:s}),D.add(s),H.delete(s)}usePrivateName(s,o){let g;for(g of this.stack)if(g.privateNames.has(s))return;g?g.undefinedPrivateNames.set(s,o):this.parser.raise(f.InvalidPrivateFieldResolution,{at:o,identifierName:s})}}class $t{constructor(s=0){this.type=void 0,this.type=s}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class Dt extends $t{constructor(s){super(s),this.declarationErrors=new Map}recordDeclarationError(s,{at:o}){let g=o.index;this.declarationErrors.set(g,[s,o])}clearDeclarationError(s){this.declarationErrors.delete(s)}iterateErrors(s){this.declarationErrors.forEach(s)}}class Bt{constructor(s){this.parser=void 0,this.stack=[new $t],this.parser=s}enter(s){this.stack.push(s)}exit(){this.stack.pop()}recordParameterInitializerError(s,{at:o}){let g={at:o.loc.start},{stack:D}=this,B=D.length-1,H=D[B];for(;!H.isCertainlyParameterDeclaration();){if(!H.canBeArrowParameterDeclaration())return;H.recordDeclarationError(s,g),H=D[--B]}this.parser.raise(s,g)}recordArrowParemeterBindingError(s,{at:o}){let{stack:g}=this,D=g[g.length-1],B={at:o.loc.start};if(D.isCertainlyParameterDeclaration())this.parser.raise(s,B);else{if(!D.canBeArrowParameterDeclaration())return;D.recordDeclarationError(s,B)}}recordAsyncArrowParametersError({at:s}){let{stack:o}=this,g=o.length-1,D=o[g];for(;D.canBeArrowParameterDeclaration();)D.type===2&&D.recordDeclarationError(f.AwaitBindingIdentifier,{at:s}),D=o[--g]}validateAsPattern(){let{stack:s}=this,o=s[s.length-1];o.canBeArrowParameterDeclaration()&&o.iterateErrors(([g,D])=>{this.parser.raise(g,{at:D});let B=s.length-2,H=s[B];for(;H.canBeArrowParameterDeclaration();)H.clearDeclarationError(D.index),H=s[--B]})}}function Nt(){return new $t}class Xt{constructor(){this.stacks=[]}enter(s){this.stacks.push(s)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function zt(W,s){return(W?2:0)|(s?1:0)}class Qt{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}class Jt{constructor(s,o,g){this.type="",this.start=o,this.end=0,this.loc=new n(g),s!=null&&s.options.ranges&&(this.range=[o,0]),s!=null&&s.filename&&(this.loc.filename=s.filename)}}let br=Jt.prototype;function ar(W){let{type:s,start:o,end:g,loc:D,range:B,extra:H,name:Z}=W,oe=Object.create(br);return oe.type=s,oe.start=o,oe.end=g,oe.loc=D,oe.range=B,oe.extra=H,oe.name=Z,s==="Placeholder"&&(oe.expectedNode=W.expectedNode),oe}function wr(W){let{type:s,start:o,end:g,loc:D,range:B,extra:H}=W;if(s==="Placeholder")return function(oe){return ar(oe)}(W);let Z=Object.create(br);return Z.type=s,Z.start=o,Z.end=g,Z.loc=D,Z.range=B,W.raw!==void 0?Z.raw=W.raw:Z.extra=H,Z.value=W.value,Z}br.__clone=function(){let W=new Jt,s=Object.keys(this);for(let o=0,g=s.length;o<g;o++){let D=s[o];D!=="leadingComments"&&D!=="trailingComments"&&D!=="innerComments"&&(W[D]=this[D])}return W};let fe=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),le=h`flow`(W=>({AmbiguousConditionalArrow:W("Ambiguous expression: wrap the arrow functions in parentheses to disambiguate."),AmbiguousDeclareModuleKind:W("Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module."),AssignReservedType:W(({reservedType:s})=>`Cannot overwrite reserved type ${s}.`),DeclareClassElement:W("The `declare` modifier can only appear on class fields."),DeclareClassFieldInitializer:W("Initializers are not allowed in fields with the `declare` modifier."),DuplicateDeclareModuleExports:W("Duplicate `declare module.exports` statement."),EnumBooleanMemberNotInitialized:W(({memberName:s,enumName:o})=>`Boolean enum members need to be initialized. Use either \`${s} = true,\` or \`${s} = false,\` in enum \`${o}\`.`),EnumDuplicateMemberName:W(({memberName:s,enumName:o})=>`Enum member names need to be unique, but the name \`${s}\` has already been used before in enum \`${o}\`.`),EnumInconsistentMemberValues:W(({enumName:s})=>`Enum \`${s}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`),EnumInvalidExplicitType:W(({invalidEnumType:s,enumName:o})=>`Enum type \`${s}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${o}\`.`),EnumInvalidExplicitTypeUnknownSupplied:W(({enumName:s})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${s}\`.`),EnumInvalidMemberInitializerPrimaryType:W(({enumName:s,memberName:o,explicitType:g})=>`Enum \`${s}\` has type \`${g}\`, so the initializer of \`${o}\` needs to be a ${g} literal.`),EnumInvalidMemberInitializerSymbolType:W(({enumName:s,memberName:o})=>`Symbol enum members cannot be initialized. Use \`${o},\` in enum \`${s}\`.`),EnumInvalidMemberInitializerUnknownType:W(({enumName:s,memberName:o})=>`The enum member initializer for \`${o}\` needs to be a literal (either a boolean, number, or string) in enum \`${s}\`.`),EnumInvalidMemberName:W(({enumName:s,memberName:o,suggestion:g})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${o}\`, consider using \`${g}\`, in enum \`${s}\`.`),EnumNumberMemberNotInitialized:W(({enumName:s,memberName:o})=>`Number enum members need to be initialized, e.g. \`${o} = 1\` in enum \`${s}\`.`),EnumStringMemberInconsistentlyInitailized:W(({enumName:s})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${s}\`.`),GetterMayNotHaveThisParam:W("A getter cannot have a `this` parameter."),ImportTypeShorthandOnlyInPureImport:W("The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements."),InexactInsideExact:W("Explicit inexact syntax cannot appear inside an explicit exact object type."),InexactInsideNonObject:W("Explicit inexact syntax cannot appear in class or interface definitions."),InexactVariance:W("Explicit inexact syntax cannot have variance."),InvalidNonTypeImportInDeclareModule:W("Imports within a `declare module` body must always be `import type` or `import typeof`."),MissingTypeParamDefault:W("Type parameter declaration needs a default, since a preceding type parameter declaration has a default."),NestedDeclareModule:W("`declare module` cannot be used inside another `declare module`."),NestedFlowComment:W("Cannot have a flow comment inside another flow comment."),PatternIsOptional:W("A binding pattern parameter cannot be optional in an implementation signature.",{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:W("A setter cannot have a `this` parameter."),SpreadVariance:W("Spread properties cannot have variance."),ThisParamAnnotationRequired:W("A type annotation is required for the `this` parameter."),ThisParamBannedInConstructor:W("Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions."),ThisParamMayNotBeOptional:W("The `this` parameter cannot be optional."),ThisParamMustBeFirst:W("The `this` parameter must be the first function parameter."),ThisParamNoDefault:W("The `this` parameter may not have a default value."),TypeBeforeInitializer:W("Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`."),TypeCastInPattern:W("The type cast expression is expected to be wrapped with parenthesis."),UnexpectedExplicitInexactInObject:W("Explicit inexact syntax must appear at the end of an inexact object."),UnexpectedReservedType:W(({reservedType:s})=>`Unexpected reserved type ${s}.`),UnexpectedReservedUnderscore:W("`_` is only allowed as a type argument to call or new."),UnexpectedSpaceBetweenModuloChecks:W("Spaces between `%` and `checks` are not allowed here."),UnexpectedSpreadType:W("Spread operator cannot appear in class or interface definitions."),UnexpectedSubtractionOperand:W('Unexpected token, expected "number" or "bigint".'),UnexpectedTokenAfterTypeParameter:W("Expected an arrow function after this type parameter declaration."),UnexpectedTypeParameterBeforeAsyncArrowFunction:W("Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`."),UnsupportedDeclareExportKind:W(({unsupportedExportKind:s,suggestion:o})=>`\`declare export ${s}\` is not supported. Use \`${o}\` instead.`),UnsupportedStatementInDeclareModule:W("Only declares and type imports are allowed inside declare module."),UnterminatedFlowComment:W("Unterminated flow-comment.")}));function Me(W){return W.importKind==="type"||W.importKind==="typeof"}function ke(W){return z(W)&&W!==97}let Ke={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},et=/\*?\s*@((?:no)?flow)\b/,Ze={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},ot=h`jsx`(W=>({AttributeIsEmpty:W("JSX attributes must only be assigned a non-empty expression."),MissingClosingTagElement:W(({openingTagName:s})=>`Expected corresponding JSX closing tag for <${s}>.`),MissingClosingTagFragment:W("Expected corresponding JSX closing tag for <>."),UnexpectedSequenceExpression:W("Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?"),UnexpectedToken:W(({unexpected:s,HTMLEntity:o})=>`Unexpected token \`${s}\`. Did you mean \`${o}\` or \`{'${s}'}\`?`),UnsupportedJsxValue:W("JSX value should be either an expression or a quoted JSX text."),UnterminatedJsxContent:W("Unterminated JSX contents."),UnwrappedAdjacentJSXElements:W("Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?")}));function st(W){return!!W&&(W.type==="JSXOpeningFragment"||W.type==="JSXClosingFragment")}function nt(W){if(W.type==="JSXIdentifier")return W.name;if(W.type==="JSXNamespacedName")return W.namespace.name+":"+W.name.name;if(W.type==="JSXMemberExpression")return nt(W.object)+"."+nt(W.property);throw new Error("Node had unexpected type: "+W.type)}class vt extends Ue{constructor(...s){super(...s),this.types=new Set,this.enums=new Set,this.constEnums=new Set,this.classes=new Set,this.exportOnlyBindings=new Set}}class xt extends Xe{createScope(s){return new vt(s)}declareName(s,o,g){let D=this.currentScope();if(1024&o)return this.maybeExportDefined(D,s),void D.exportOnlyBindings.add(s);super.declareName(...arguments),2&o&&(1&o||(this.checkRedeclarationInScope(D,s,o,g),this.maybeExportDefined(D,s)),D.types.add(s)),256&o&&D.enums.add(s),512&o&&D.constEnums.add(s),128&o&&D.classes.add(s)}isRedeclaredInScope(s,o,g){return s.enums.has(o)?256&g?!!(512&g)!==s.constEnums.has(o):!0:128&g&&s.classes.has(o)?!!s.lexical.has(o)&&!!(1&g):!!(2&g&&s.types.has(o))||super.isRedeclaredInScope(...arguments)}checkLocalExport(s){let o=this.scopeStack[0],{name:g}=s;o.types.has(g)||o.exportOnlyBindings.has(g)||super.checkLocalExport(s)}}function it(W){if(!W)throw new Error("Assert fail")}function bt(W){return J(W)||function(s){return U[s]!==-1}(W)}let He=h`typescript`(W=>({AbstractMethodHasImplementation:W(({methodName:s})=>`Method '${s}' cannot have an implementation because it is marked abstract.`),AbstractPropertyHasInitializer:W(({propertyName:s})=>`Property '${s}' cannot have an initializer because it is marked abstract.`),AccesorCannotDeclareThisParameter:W("'get' and 'set' accessors cannot declare 'this' parameters."),AccesorCannotHaveTypeParameters:W("An accessor cannot have type parameters."),CannotFindName:W(({name:s})=>`Cannot find name '${s}'.`),ClassMethodHasDeclare:W("Class methods cannot have the 'declare' modifier."),ClassMethodHasReadonly:W("Class methods cannot have the 'readonly' modifier."),ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:W("A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),ConstructorHasTypeParameters:W("Type parameters cannot appear on a constructor declaration."),DeclareAccessor:W(({kind:s})=>`'declare' is not allowed in ${s}ters.`),DeclareClassFieldHasInitializer:W("Initializers are not allowed in ambient contexts."),DeclareFunctionHasImplementation:W("An implementation cannot be declared in ambient contexts."),DuplicateAccessibilityModifier:W(({modifier:s})=>"Accessibility modifier already seen."),DuplicateModifier:W(({modifier:s})=>`Duplicate modifier: '${s}'.`),EmptyHeritageClauseType:W(({token:s})=>`'${s}' list cannot be empty.`),EmptyTypeArguments:W("Type argument list cannot be empty."),EmptyTypeParameters:W("Type parameter list cannot be empty."),ExpectedAmbientAfterExportDeclare:W("'export declare' must be followed by an ambient declaration."),ImportAliasHasImportType:W("An import alias can not use 'import type'."),IncompatibleModifiers:W(({modifiers:s})=>`'${s[0]}' modifier cannot be used with '${s[1]}' modifier.`),IndexSignatureHasAbstract:W("Index signatures cannot have the 'abstract' modifier."),IndexSignatureHasAccessibility:W(({modifier:s})=>`Index signatures cannot have an accessibility modifier ('${s}').`),IndexSignatureHasDeclare:W("Index signatures cannot have the 'declare' modifier."),IndexSignatureHasOverride:W("'override' modifier cannot appear on an index signature."),IndexSignatureHasStatic:W("Index signatures cannot have the 'static' modifier."),InitializerNotAllowedInAmbientContext:W("Initializers are not allowed in ambient contexts."),InvalidModifierOnTypeMember:W(({modifier:s})=>`'${s}' modifier cannot appear on a type member.`),InvalidModifierOnTypeParameter:W(({modifier:s})=>`'${s}' modifier cannot appear on a type parameter.`),InvalidModifierOnTypeParameterPositions:W(({modifier:s})=>`'${s}' modifier can only appear on a type parameter of a class, interface or type alias.`),InvalidModifiersOrder:W(({orderedModifiers:s})=>`'${s[0]}' modifier must precede '${s[1]}' modifier.`),InvalidTupleMemberLabel:W("Tuple members must be labeled with a simple identifier."),MissingInterfaceName:W("'interface' declarations must be followed by an identifier."),MixedLabeledAndUnlabeledElements:W("Tuple members must all have names or all not have names."),NonAbstractClassHasAbstractMethod:W("Abstract methods can only appear within an abstract class."),NonClassMethodPropertyHasAbstractModifer:W("'abstract' modifier can only appear on a class, method, or property declaration."),OptionalTypeBeforeRequired:W("A required element cannot follow an optional element."),OverrideNotInSubClass:W("This member cannot have an 'override' modifier because its containing class does not extend another class."),PatternIsOptional:W("A binding pattern parameter cannot be optional in an implementation signature."),PrivateElementHasAbstract:W("Private elements cannot have the 'abstract' modifier."),PrivateElementHasAccessibility:W(({modifier:s})=>`Private elements cannot have an accessibility modifier ('${s}').`),ReadonlyForMethodSignature:W("'readonly' modifier can only appear on a property declaration or index signature."),ReservedArrowTypeParam:W("This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`."),ReservedTypeAssertion:W("This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),SetAccesorCannotHaveOptionalParameter:W("A 'set' accessor cannot have an optional parameter."),SetAccesorCannotHaveRestParameter:W("A 'set' accessor cannot have rest parameter."),SetAccesorCannotHaveReturnType:W("A 'set' accessor cannot have a return type annotation."),SingleTypeParameterWithoutTrailingComma:W(({typeParameterName:s})=>`Single type parameter ${s} should have a trailing comma. Example usage: <${s},>.`),StaticBlockCannotHaveModifier:W("Static class blocks cannot have any modifier."),TypeAnnotationAfterAssign:W("Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`."),TypeImportCannotSpecifyDefaultAndNamed:W("A type-only import can specify a default import or named bindings, but not both."),TypeModifierIsUsedInTypeExports:W("The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),TypeModifierIsUsedInTypeImports:W("The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),UnexpectedParameterModifier:W("A parameter property is only allowed in a constructor implementation."),UnexpectedReadonly:W("'readonly' type modifier is only permitted on array and tuple literal types."),UnexpectedTypeAnnotation:W("Did not expect a type annotation here."),UnexpectedTypeCastInParameter:W("Unexpected type cast in parameter position."),UnsupportedImportTypeArgument:W("Argument in a type import must be a string literal."),UnsupportedParameterPropertyKind:W("A parameter property may not be declared using a binding pattern."),UnsupportedSignatureParameterKind:W(({type:s})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${s}.`)}));function St(W){return W==="private"||W==="public"||W==="protected"}function Ut(W){return W==="in"||W==="out"}function ur(W){if(W.type!=="MemberExpression")return!1;let{computed:s,property:o}=W;return(!s||o.type==="StringLiteral"||!(o.type!=="TemplateLiteral"||o.expressions.length>0))&&Kr(W.object)}function Kr(W){return W.type==="Identifier"||W.type==="MemberExpression"&&!W.computed&&Kr(W.object)}let Nr=h`placeholders`(W=>({ClassNameIsRequired:W("A class name is required."),UnexpectedSpace:W("Unexpected space in placeholder.")}));function jt(W,s){let[o,g]=typeof s=="string"?[s,{}]:s,D=Object.keys(g),B=D.length===0;return W.some(H=>{if(typeof H=="string")return B&&H===o;{let[Z,oe]=H;if(Z!==o)return!1;for(let me of D)if(oe[me]!==g[me])return!1;return!0}})}function jr(W,s,o){let g=W.find(D=>Array.isArray(D)?D[0]===s:D===s);return g&&Array.isArray(g)?g[1][o]:null}let cr=["minimal","fsharp","hack","smart"],Hr=["^^","@@","^","%","#"],on=["hash","bar"],kn={estree:W=>class extends W{parse(){let s=I(super.parse());return this.options.tokens&&(s.tokens=s.tokens.map(I)),s}parseRegExpLiteral({pattern:s,flags:o}){let g=null;try{g=new RegExp(s,o)}catch{}let D=this.estreeParseLiteral(g);return D.regex={pattern:s,flags:o},D}parseBigIntLiteral(s){let o;try{o=BigInt(s)}catch{o=null}let g=this.estreeParseLiteral(o);return g.bigint=String(g.value||s),g}parseDecimalLiteral(s){let o=this.estreeParseLiteral(null);return o.decimal=String(o.value||s),o}estreeParseLiteral(s){return this.parseLiteral(s,"Literal")}parseStringLiteral(s){return this.estreeParseLiteral(s)}parseNumericLiteral(s){return this.estreeParseLiteral(s)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(s){return this.estreeParseLiteral(s)}directiveToStmt(s){let o=s.value,g=this.startNodeAt(s.start,s.loc.start),D=this.startNodeAt(o.start,o.loc.start);return D.value=o.extra.expressionValue,D.raw=o.extra.raw,g.expression=this.finishNodeAt(D,"Literal",o.loc.end),g.directive=o.extra.raw.slice(1,-1),this.finishNodeAt(g,"ExpressionStatement",s.loc.end)}initFunction(s,o){super.initFunction(s,o),s.expression=!1}checkDeclaration(s){s!=null&&this.isObjectProperty(s)?this.checkDeclaration(s.value):super.checkDeclaration(s)}getObjectOrClassMethodParams(s){return s.value.params}isValidDirective(s){var o;return s.type==="ExpressionStatement"&&s.expression.type==="Literal"&&typeof s.expression.value=="string"&&!((o=s.expression.extra)!=null&&o.parenthesized)}parseBlockBody(s,...o){super.parseBlockBody(s,...o);let g=s.directives.map(D=>this.directiveToStmt(D));s.body=g.concat(s.body),delete s.directives}pushClassMethod(s,o,g,D,B,H){this.parseMethod(o,g,D,B,H,"ClassMethod",!0),o.typeParameters&&(o.value.typeParameters=o.typeParameters,delete o.typeParameters),s.body.push(o)}parsePrivateName(){let s=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(s):s}convertPrivateNameToPrivateIdentifier(s){let o=super.getPrivateNameSV(s);return delete s.id,s.name=o,s.type="PrivateIdentifier",s}isPrivateName(s){return this.getPluginOption("estree","classFeatures")?s.type==="PrivateIdentifier":super.isPrivateName(s)}getPrivateNameSV(s){return this.getPluginOption("estree","classFeatures")?s.name:super.getPrivateNameSV(s)}parseLiteral(s,o){let g=super.parseLiteral(s,o);return g.raw=g.extra.raw,delete g.extra,g}parseFunctionBody(s,o,g=!1){super.parseFunctionBody(s,o,g),s.expression=s.body.type!=="BlockStatement"}parseMethod(s,o,g,D,B,H,Z=!1){let oe=this.startNode();return oe.kind=s.kind,oe=super.parseMethod(oe,o,g,D,B,H,Z),oe.type="FunctionExpression",delete oe.kind,s.value=oe,H==="ClassPrivateMethod"&&(s.computed=!1),H="MethodDefinition",this.finishNode(s,H)}parseClassProperty(...s){let o=super.parseClassProperty(...s);return this.getPluginOption("estree","classFeatures")&&(o.type="PropertyDefinition"),o}parseClassPrivateProperty(...s){let o=super.parseClassPrivateProperty(...s);return this.getPluginOption("estree","classFeatures")&&(o.type="PropertyDefinition",o.computed=!1),o}parseObjectMethod(s,o,g,D,B){let H=super.parseObjectMethod(s,o,g,D,B);return H&&(H.type="Property",H.kind==="method"&&(H.kind="init"),H.shorthand=!1),H}parseObjectProperty(s,o,g,D,B){let H=super.parseObjectProperty(s,o,g,D,B);return H&&(H.kind="init",H.type="Property"),H}isValidLVal(s,...o){return s==="Property"?"value":super.isValidLVal(s,...o)}isAssignable(s,o){return s!=null&&this.isObjectProperty(s)?this.isAssignable(s.value,o):super.isAssignable(s,o)}toAssignable(s,o=!1){if(s!=null&&this.isObjectProperty(s)){let{key:g,value:D}=s;this.isPrivateName(g)&&this.classScope.usePrivateName(this.getPrivateNameSV(g),g.loc.start),this.toAssignable(D,o)}else super.toAssignable(s,o)}toAssignableObjectExpressionProp(s){s.kind==="get"||s.kind==="set"?this.raise(f.PatternHasAccessor,{at:s.key}):s.method?this.raise(f.PatternHasMethod,{at:s.key}):super.toAssignableObjectExpressionProp(...arguments)}finishCallExpression(s,o){if(super.finishCallExpression(s,o),s.callee.type==="Import"){var g;s.type="ImportExpression",s.source=s.arguments[0],this.hasPlugin("importAssertions")&&(s.attributes=(g=s.arguments[1])!=null?g:null),delete s.arguments,delete s.callee}return s}toReferencedArguments(s){s.type!=="ImportExpression"&&super.toReferencedArguments(s)}parseExport(s){switch(super.parseExport(s),s.type){case"ExportAllDeclaration":s.exported=null;break;case"ExportNamedDeclaration":s.specifiers.length===1&&s.specifiers[0].type==="ExportNamespaceSpecifier"&&(s.type="ExportAllDeclaration",s.exported=s.specifiers[0].exported,delete s.specifiers)}return s}parseSubscript(s,o,g,D,B){let H=super.parseSubscript(s,o,g,D,B);if(B.optionalChainMember){if(H.type!=="OptionalMemberExpression"&&H.type!=="OptionalCallExpression"||(H.type=H.type.substring(8)),B.stop){let Z=this.startNodeAtNode(H);return Z.expression=H,this.finishNode(Z,"ChainExpression")}}else H.type!=="MemberExpression"&&H.type!=="CallExpression"||(H.optional=!1);return H}hasPropertyAsPrivateName(s){return s.type==="ChainExpression"&&(s=s.expression),super.hasPropertyAsPrivateName(s)}isOptionalChain(s){return s.type==="ChainExpression"}isObjectProperty(s){return s.type==="Property"&&s.kind==="init"&&!s.method}isObjectMethod(s){return s.method||s.kind==="get"||s.kind==="set"}finishNodeAt(s,o,g){return I(super.finishNodeAt(s,o,g))}resetStartLocation(s,o,g){super.resetStartLocation(s,o,g),I(s)}resetEndLocation(s,o=this.state.lastTokEndLoc){super.resetEndLocation(s,o),I(s)}},jsx:W=>class extends W{jsxReadToken(){let s="",o=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ot.UnterminatedJsxContent,{at:this.state.startLoc});let g=this.input.charCodeAt(this.state.pos);switch(g){case 60:case 123:return this.state.pos===this.state.start?g===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(138)):super.getTokenFromCode(g):(s+=this.input.slice(o,this.state.pos),this.finishToken(137,s));case 38:s+=this.input.slice(o,this.state.pos),s+=this.jsxReadEntity(),o=this.state.pos;break;default:ht(g)?(s+=this.input.slice(o,this.state.pos),s+=this.jsxReadNewLine(!0),o=this.state.pos):++this.state.pos}}}jsxReadNewLine(s){let o=this.input.charCodeAt(this.state.pos),g;return++this.state.pos,o===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,g=s?`
|
|
2143
2143
|
`:`\r
|
|
2144
|
-
`):g=String.fromCharCode(o),++this.state.curLine,this.state.lineStart=this.state.pos,g}jsxReadString(s){let o="",g=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(f.UnterminatedString,{at:this.state.startLoc});let D=this.input.charCodeAt(this.state.pos);if(D===s)break;D===38?(o+=this.input.slice(g,this.state.pos),o+=this.jsxReadEntity(),g=this.state.pos):ht(D)?(o+=this.input.slice(g,this.state.pos),o+=this.jsxReadNewLine(!1),g=this.state.pos):++this.state.pos}return o+=this.input.slice(g,this.state.pos++),this.finishToken(129,o)}jsxReadEntity(){let s=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let o=10;this.codePointAtPos(this.state.pos)===120&&(o=16,++this.state.pos);let g=this.readInt(o,void 0,!1,"bail");if(g!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(g)}else{let o=0,g=!1;for(;o++<10&&this.state.pos<this.length&&!(g=this.codePointAtPos(this.state.pos)==59);)++this.state.pos;if(g){let D=this.input.slice(s,this.state.pos),B=Ze[D];if(++this.state.pos,B)return B}}return this.state.pos=s,"&"}jsxReadWord(){let s,o=this.state.pos;do s=this.input.charCodeAt(++this.state.pos);while(Ve(s)||s===45);return this.finishToken(136,this.input.slice(o,this.state.pos))}jsxParseIdentifier(){let s=this.startNode();return this.match(136)?s.name=this.state.value:he(this.state.type)?s.name=pe(this.state.type):this.unexpected(),this.next(),this.finishNode(s,"JSXIdentifier")}jsxParseNamespacedName(){let s=this.state.start,o=this.state.startLoc,g=this.jsxParseIdentifier();if(!this.eat(14))return g;let D=this.startNodeAt(s,o);return D.namespace=g,D.name=this.jsxParseIdentifier(),this.finishNode(D,"JSXNamespacedName")}jsxParseElementName(){let s=this.state.start,o=this.state.startLoc,g=this.jsxParseNamespacedName();if(g.type==="JSXNamespacedName")return g;for(;this.eat(16);){let D=this.startNodeAt(s,o);D.object=g,D.property=this.jsxParseIdentifier(),g=this.finishNode(D,"JSXMemberExpression")}return g}jsxParseAttributeValue(){let s;switch(this.state.type){case 5:return s=this.startNode(),this.setContext(R.brace),this.next(),s=this.jsxParseExpressionContainer(s,R.j_oTag),s.expression.type==="JSXEmptyExpression"&&this.raise(ot.AttributeIsEmpty,{at:s}),s;case 138:case 129:return this.parseExprAtom();default:throw this.raise(ot.UnsupportedJsxValue,{at:this.state.startLoc})}}jsxParseEmptyExpression(){let s=this.startNodeAt(this.state.lastTokEndLoc.index,this.state.lastTokEndLoc);return this.finishNodeAt(s,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(s){return this.next(),s.expression=this.parseExpression(),this.setContext(R.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(s,"JSXSpreadChild")}jsxParseExpressionContainer(s,o){if(this.match(8))s.expression=this.jsxParseEmptyExpression();else{let g=this.parseExpression();s.expression=g}return this.setContext(o),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(s,"JSXExpressionContainer")}jsxParseAttribute(){let s=this.startNode();return this.match(5)?(this.setContext(R.brace),this.next(),this.expect(21),s.argument=this.parseMaybeAssignAllowIn(),this.setContext(R.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(s,"JSXSpreadAttribute")):(s.name=this.jsxParseNamespacedName(),s.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(s,"JSXAttribute"))}jsxParseOpeningElementAt(s,o){let g=this.startNodeAt(s,o);return this.eat(139)?this.finishNode(g,"JSXOpeningFragment"):(g.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(g))}jsxParseOpeningElementAfterName(s){let o=[];for(;!this.match(56)&&!this.match(139);)o.push(this.jsxParseAttribute());return s.attributes=o,s.selfClosing=this.eat(56),this.expect(139),this.finishNode(s,"JSXOpeningElement")}jsxParseClosingElementAt(s,o){let g=this.startNodeAt(s,o);return this.eat(139)?this.finishNode(g,"JSXClosingFragment"):(g.name=this.jsxParseElementName(),this.expect(139),this.finishNode(g,"JSXClosingElement"))}jsxParseElementAt(s,o){let g=this.startNodeAt(s,o),D=[],B=this.jsxParseOpeningElementAt(s,o),H=null;if(!B.selfClosing){e:for(;;)switch(this.state.type){case 138:if(s=this.state.start,o=this.state.startLoc,this.next(),this.eat(56)){H=this.jsxParseClosingElementAt(s,o);break e}D.push(this.jsxParseElementAt(s,o));break;case 137:D.push(this.parseExprAtom());break;case 5:{let Z=this.startNode();this.setContext(R.brace),this.next(),this.match(21)?D.push(this.jsxParseSpreadChild(Z)):D.push(this.jsxParseExpressionContainer(Z,R.j_expr));break}default:throw this.unexpected()}st(B)&&!st(H)&&H!==null?this.raise(ot.MissingClosingTagFragment,{at:H}):!st(B)&&st(H)?this.raise(ot.MissingClosingTagElement,{at:H,openingTagName:nt(B.name)}):st(B)||st(H)||nt(H.name)!==nt(B.name)&&this.raise(ot.MissingClosingTagElement,{at:H,openingTagName:nt(B.name)})}if(st(B)?(g.openingFragment=B,g.closingFragment=H):(g.openingElement=B,g.closingElement=H),g.children=D,this.match(47))throw this.raise(ot.UnwrappedAdjacentJSXElements,{at:this.state.startLoc});return st(B)?this.finishNode(g,"JSXFragment"):this.finishNode(g,"JSXElement")}jsxParseElement(){let s=this.state.start,o=this.state.startLoc;return this.next(),this.jsxParseElementAt(s,o)}setContext(s){let{context:o}=this.state;o[o.length-1]=s}parseExprAtom(s){return this.match(137)?this.parseLiteral(this.state.value,"JSXText"):this.match(138)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(138),this.jsxParseElement()):super.parseExprAtom(s)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(s){let o=this.curContext();if(o===R.j_expr)return this.jsxReadToken();if(o===R.j_oTag||o===R.j_cTag){if(Se(s))return this.jsxReadWord();if(s===62)return++this.state.pos,this.finishToken(139);if((s===34||s===39)&&o===R.j_oTag)return this.jsxReadString(s)}return s===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33?(++this.state.pos,this.finishToken(138)):super.getTokenFromCode(s)}updateContext(s){let{context:o,type:g}=this.state;if(g===56&&s===138)o.splice(-2,2,R.j_cTag),this.state.canStartJSXElement=!1;else if(g===138)o.push(R.j_oTag);else if(g===139){let D=o[o.length-1];D===R.j_oTag&&s===56||D===R.j_cTag?(o.pop(),this.state.canStartJSXElement=o[o.length-1]===R.j_expr):(this.setContext(R.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=M[g]}},flow:W=>class extends W{constructor(...s){super(...s),this.flowPragma=void 0}getScopeHandler(){return ct}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(s,o){return s!==129&&s!==13&&s!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(s,o)}addComment(s){if(this.flowPragma===void 0){let o=et.exec(s.value);if(o)if(o[1]==="flow")this.flowPragma="flow";else{if(o[1]!=="noflow")throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}}return super.addComment(s)}flowParseTypeInitialiser(s){let o=this.state.inType;this.state.inType=!0,this.expect(s||14);let g=this.flowParseType();return this.state.inType=o,g}flowParsePredicate(){let s=this.startNode(),o=this.state.startLoc;return this.next(),this.expectContextual(107),this.state.lastTokStart>o.index+1&&this.raise(le.UnexpectedSpaceBetweenModuloChecks,{at:o}),this.eat(10)?(s.value=this.parseExpression(),this.expect(11),this.finishNode(s,"DeclaredPredicate")):this.finishNode(s,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let s=this.state.inType;this.state.inType=!0,this.expect(14);let o=null,g=null;return this.match(54)?(this.state.inType=s,g=this.flowParsePredicate()):(o=this.flowParseType(),this.state.inType=s,this.match(54)&&(g=this.flowParsePredicate())),[o,g]}flowParseDeclareClass(s){return this.next(),this.flowParseInterfaceish(s,!0),this.finishNode(s,"DeclareClass")}flowParseDeclareFunction(s){this.next();let o=s.id=this.parseIdentifier(),g=this.startNode(),D=this.startNode();this.match(47)?g.typeParameters=this.flowParseTypeParameterDeclaration():g.typeParameters=null,this.expect(10);let B=this.flowParseFunctionTypeParams();return g.params=B.params,g.rest=B.rest,g.this=B._this,this.expect(11),[g.returnType,s.predicate]=this.flowParseTypeAndPredicateInitialiser(),D.typeAnnotation=this.finishNode(g,"FunctionTypeAnnotation"),o.typeAnnotation=this.finishNode(D,"TypeAnnotation"),this.resetEndLocation(o),this.semicolon(),this.scope.declareName(s.id.name,2048,s.id.loc.start),this.finishNode(s,"DeclareFunction")}flowParseDeclare(s,o){if(this.match(80))return this.flowParseDeclareClass(s);if(this.match(68))return this.flowParseDeclareFunction(s);if(this.match(74))return this.flowParseDeclareVariable(s);if(this.eatContextual(123))return this.match(16)?this.flowParseDeclareModuleExports(s):(o&&this.raise(le.NestedDeclareModule,{at:this.state.lastTokStartLoc}),this.flowParseDeclareModule(s));if(this.isContextual(126))return this.flowParseDeclareTypeAlias(s);if(this.isContextual(127))return this.flowParseDeclareOpaqueType(s);if(this.isContextual(125))return this.flowParseDeclareInterface(s);if(this.match(82))return this.flowParseDeclareExportDeclaration(s,o);throw this.unexpected()}flowParseDeclareVariable(s){return this.next(),s.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(s.id.name,5,s.id.loc.start),this.semicolon(),this.finishNode(s,"DeclareVariable")}flowParseDeclareModule(s){this.scope.enter(0),this.match(129)?s.id=this.parseExprAtom():s.id=this.parseIdentifier();let o=s.body=this.startNode(),g=o.body=[];for(this.expect(5);!this.match(8);){let H=this.startNode();this.match(83)?(this.next(),this.isContextual(126)||this.match(87)||this.raise(le.InvalidNonTypeImportInDeclareModule,{at:this.state.lastTokStartLoc}),this.parseImport(H)):(this.expectContextual(121,le.UnsupportedStatementInDeclareModule),H=this.flowParseDeclare(H,!0)),g.push(H)}this.scope.exit(),this.expect(8),this.finishNode(o,"BlockStatement");let D=null,B=!1;return g.forEach(H=>{(function(Z){return Z.type==="DeclareExportAllDeclaration"||Z.type==="DeclareExportDeclaration"&&(!Z.declaration||Z.declaration.type!=="TypeAlias"&&Z.declaration.type!=="InterfaceDeclaration")})(H)?(D==="CommonJS"&&this.raise(le.AmbiguousDeclareModuleKind,{at:H}),D="ES"):H.type==="DeclareModuleExports"&&(B&&this.raise(le.DuplicateDeclareModuleExports,{at:H}),D==="ES"&&this.raise(le.AmbiguousDeclareModuleKind,{at:H}),D="CommonJS",B=!0)}),s.kind=D||"CommonJS",this.finishNode(s,"DeclareModule")}flowParseDeclareExportDeclaration(s,o){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?s.declaration=this.flowParseDeclare(this.startNode()):(s.declaration=this.flowParseType(),this.semicolon()),s.default=!0,this.finishNode(s,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(126)||this.isContextual(125))&&!o){let g=this.state.value;throw this.raise(le.UnsupportedDeclareExportKind,{at:this.state.startLoc,unsupportedExportKind:g,suggestion:Ke[g]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(127))return s.declaration=this.flowParseDeclare(this.startNode()),s.default=!1,this.finishNode(s,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(125)||this.isContextual(126)||this.isContextual(127))return(s=this.parseExport(s)).type==="ExportNamedDeclaration"&&(s.type="ExportDeclaration",s.default=!1,delete s.exportKind),s.type="Declare"+s.type,s;throw this.unexpected()}flowParseDeclareModuleExports(s){return this.next(),this.expectContextual(108),s.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(s,"DeclareModuleExports")}flowParseDeclareTypeAlias(s){return this.next(),this.flowParseTypeAlias(s),s.type="DeclareTypeAlias",s}flowParseDeclareOpaqueType(s){return this.next(),this.flowParseOpaqueType(s,!0),s.type="DeclareOpaqueType",s}flowParseDeclareInterface(s){return this.next(),this.flowParseInterfaceish(s),this.finishNode(s,"DeclareInterface")}flowParseInterfaceish(s,o=!1){if(s.id=this.flowParseRestrictedIdentifier(!o,!0),this.scope.declareName(s.id.name,o?17:9,s.id.loc.start),this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,s.extends=[],s.implements=[],s.mixins=[],this.eat(81))do s.extends.push(this.flowParseInterfaceExtends());while(!o&&this.eat(12));if(this.isContextual(114)){this.next();do s.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12))}if(this.isContextual(110)){this.next();do s.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}s.body=this.flowParseObjectType({allowStatic:o,allowExact:!1,allowSpread:!1,allowProto:o,allowInexact:!1})}flowParseInterfaceExtends(){let s=this.startNode();return s.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?s.typeParameters=this.flowParseTypeParameterInstantiation():s.typeParameters=null,this.finishNode(s,"InterfaceExtends")}flowParseInterface(s){return this.flowParseInterfaceish(s),this.finishNode(s,"InterfaceDeclaration")}checkNotUnderscore(s){s==="_"&&this.raise(le.UnexpectedReservedUnderscore,{at:this.state.startLoc})}checkReservedType(s,o,g){fe.has(s)&&this.raise(g?le.AssignReservedType:le.UnexpectedReservedType,{at:o,reservedType:s})}flowParseRestrictedIdentifier(s,o){return this.checkReservedType(this.state.value,this.state.startLoc,o),this.parseIdentifier(s)}flowParseTypeAlias(s){return s.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(s.id.name,9,s.id.loc.start),this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,s.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(s,"TypeAlias")}flowParseOpaqueType(s,o){return this.expectContextual(126),s.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(s.id.name,9,s.id.loc.start),this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,s.supertype=null,this.match(14)&&(s.supertype=this.flowParseTypeInitialiser(14)),s.impltype=null,o||(s.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(s,"OpaqueType")}flowParseTypeParameter(s=!1){let o=this.state.startLoc,g=this.startNode(),D=this.flowParseVariance(),B=this.flowParseTypeAnnotatableIdentifier();return g.name=B.name,g.variance=D,g.bound=B.typeAnnotation,this.match(29)?(this.eat(29),g.default=this.flowParseType()):s&&this.raise(le.MissingTypeParamDefault,{at:o}),this.finishNode(g,"TypeParameter")}flowParseTypeParameterDeclaration(){let s=this.state.inType,o=this.startNode();o.params=[],this.state.inType=!0,this.match(47)||this.match(138)?this.next():this.unexpected();let g=!1;do{let D=this.flowParseTypeParameter(g);o.params.push(D),D.default&&(g=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=s,this.finishNode(o,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let s=this.startNode(),o=this.state.inType;s.params=[],this.state.inType=!0,this.expect(47);let g=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)s.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=g,this.expect(48),this.state.inType=o,this.finishNode(s,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let s=this.startNode(),o=this.state.inType;for(s.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)s.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=o,this.finishNode(s,"TypeParameterInstantiation")}flowParseInterfaceType(){let s=this.startNode();if(this.expectContextual(125),s.extends=[],this.eat(81))do s.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return s.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(s,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(130)||this.match(129)?this.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(s,o,g){return s.static=o,this.lookahead().type===14?(s.id=this.flowParseObjectPropertyKey(),s.key=this.flowParseTypeInitialiser()):(s.id=null,s.key=this.flowParseType()),this.expect(3),s.value=this.flowParseTypeInitialiser(),s.variance=g,this.finishNode(s,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(s,o){return s.static=o,s.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(s.method=!0,s.optional=!1,s.value=this.flowParseObjectTypeMethodish(this.startNodeAt(s.start,s.loc.start))):(s.method=!1,this.eat(17)&&(s.optional=!0),s.value=this.flowParseTypeInitialiser()),this.finishNode(s,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(s){for(s.params=[],s.rest=null,s.typeParameters=null,s.this=null,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(s.this=this.flowParseFunctionTypeParam(!0),s.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)s.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(s.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),s.returnType=this.flowParseTypeInitialiser(),this.finishNode(s,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(s,o){let g=this.startNode();return s.static=o,s.value=this.flowParseObjectTypeMethodish(g),this.finishNode(s,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:s,allowExact:o,allowSpread:g,allowProto:D,allowInexact:B}){let H=this.state.inType;this.state.inType=!0;let Z=this.startNode(),oe,me;Z.callProperties=[],Z.properties=[],Z.indexers=[],Z.internalSlots=[];let Ne=!1;for(o&&this.match(6)?(this.expect(6),oe=9,me=!0):(this.expect(5),oe=8,me=!1),Z.exact=me;!this.match(oe);){let ut=!1,dt=null,Ot=null,kt=this.startNode();if(D&&this.isContextual(115)){let Ht=this.lookahead();Ht.type!==14&&Ht.type!==17&&(this.next(),dt=this.state.startLoc,s=!1)}if(s&&this.isContextual(104)){let Ht=this.lookahead();Ht.type!==14&&Ht.type!==17&&(this.next(),ut=!0)}let Wt=this.flowParseVariance();if(this.eat(0))dt!=null&&this.unexpected(dt),this.eat(0)?(Wt&&this.unexpected(Wt.loc.start),Z.internalSlots.push(this.flowParseObjectTypeInternalSlot(kt,ut))):Z.indexers.push(this.flowParseObjectTypeIndexer(kt,ut,Wt));else if(this.match(10)||this.match(47))dt!=null&&this.unexpected(dt),Wt&&this.unexpected(Wt.loc.start),Z.callProperties.push(this.flowParseObjectTypeCallProperty(kt,ut));else{let Ht="init";(this.isContextual(98)||this.isContextual(103))&&X(this.lookahead().type)&&(Ht=this.state.value,this.next());let fr=this.flowParseObjectTypeProperty(kt,ut,dt,Wt,Ht,g,B??!me);fr===null?(Ne=!0,Ot=this.state.lastTokStartLoc):Z.properties.push(fr)}this.flowObjectTypeSemicolon(),!Ot||this.match(8)||this.match(9)||this.raise(le.UnexpectedExplicitInexactInObject,{at:Ot})}this.expect(oe),g&&(Z.inexact=Ne);let ze=this.finishNode(Z,"ObjectTypeAnnotation");return this.state.inType=H,ze}flowParseObjectTypeProperty(s,o,g,D,B,H,Z){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(H?Z||this.raise(le.InexactInsideExact,{at:this.state.lastTokStartLoc}):this.raise(le.InexactInsideNonObject,{at:this.state.lastTokStartLoc}),D&&this.raise(le.InexactVariance,{at:D}),null):(H||this.raise(le.UnexpectedSpreadType,{at:this.state.lastTokStartLoc}),g!=null&&this.unexpected(g),D&&this.raise(le.SpreadVariance,{at:D}),s.argument=this.flowParseType(),this.finishNode(s,"ObjectTypeSpreadProperty"));{s.key=this.flowParseObjectPropertyKey(),s.static=o,s.proto=g!=null,s.kind=B;let oe=!1;return this.match(47)||this.match(10)?(s.method=!0,g!=null&&this.unexpected(g),D&&this.unexpected(D.loc.start),s.value=this.flowParseObjectTypeMethodish(this.startNodeAt(s.start,s.loc.start)),B!=="get"&&B!=="set"||this.flowCheckGetterSetterParams(s),!H&&s.key.name==="constructor"&&s.value.this&&this.raise(le.ThisParamBannedInConstructor,{at:s.value.this})):(B!=="init"&&this.unexpected(),s.method=!1,this.eat(17)&&(oe=!0),s.value=this.flowParseTypeInitialiser(),s.variance=D),s.optional=oe,this.finishNode(s,"ObjectTypeProperty")}}flowCheckGetterSetterParams(s){let o=s.kind==="get"?0:1,g=s.value.params.length+(s.value.rest?1:0);s.value.this&&this.raise(s.kind==="get"?le.GetterMayNotHaveThisParam:le.SetterMayNotHaveThisParam,{at:s.value.this}),g!==o&&this.raise(s.kind==="get"?f.BadGetterArity:f.BadSetterArity,{at:s}),s.kind==="set"&&s.value.rest&&this.raise(f.BadSetterRestParameter,{at:s})}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(s,o,g){s=s||this.state.start,o=o||this.state.startLoc;let D=g||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let B=this.startNodeAt(s,o);B.qualification=D,B.id=this.flowParseRestrictedIdentifier(!0),D=this.finishNode(B,"QualifiedTypeIdentifier")}return D}flowParseGenericType(s,o,g){let D=this.startNodeAt(s,o);return D.typeParameters=null,D.id=this.flowParseQualifiedTypeIdentifier(s,o,g),this.match(47)&&(D.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(D,"GenericTypeAnnotation")}flowParseTypeofType(){let s=this.startNode();return this.expect(87),s.argument=this.flowParsePrimaryType(),this.finishNode(s,"TypeofTypeAnnotation")}flowParseTupleType(){let s=this.startNode();for(s.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(s.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(s,"TupleTypeAnnotation")}flowParseFunctionTypeParam(s){let o=null,g=!1,D=null,B=this.startNode(),H=this.lookahead(),Z=this.state.type===78;return H.type===14||H.type===17?(Z&&!s&&this.raise(le.ThisParamMustBeFirst,{at:B}),o=this.parseIdentifier(Z),this.eat(17)&&(g=!0,Z&&this.raise(le.ThisParamMayNotBeOptional,{at:B})),D=this.flowParseTypeInitialiser()):D=this.flowParseType(),B.name=o,B.optional=g,B.typeAnnotation=D,this.finishNode(B,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(s){let o=this.startNodeAt(s.start,s.loc.start);return o.name=null,o.optional=!1,o.typeAnnotation=s,this.finishNode(o,"FunctionTypeParam")}flowParseFunctionTypeParams(s=[]){let o=null,g=null;for(this.match(78)&&(g=this.flowParseFunctionTypeParam(!0),g.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)s.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(o=this.flowParseFunctionTypeParam(!1)),{params:s,rest:o,_this:g}}flowIdentToTypeAnnotation(s,o,g,D){switch(D.name){case"any":return this.finishNode(g,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(g,"BooleanTypeAnnotation");case"mixed":return this.finishNode(g,"MixedTypeAnnotation");case"empty":return this.finishNode(g,"EmptyTypeAnnotation");case"number":return this.finishNode(g,"NumberTypeAnnotation");case"string":return this.finishNode(g,"StringTypeAnnotation");case"symbol":return this.finishNode(g,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(D.name),this.flowParseGenericType(s,o,D)}}flowParsePrimaryType(){let s=this.state.start,o=this.state.startLoc,g=this.startNode(),D,B,H=!1,Z=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,B=this.flowParseTupleType(),this.state.noAnonFunctionType=Z,B;case 47:return g.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),D=this.flowParseFunctionTypeParams(),g.params=D.params,g.rest=D.rest,g.this=D._this,this.expect(11),this.expect(19),g.returnType=this.flowParseType(),this.finishNode(g,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if(K(this.state.type)||this.match(78)){let oe=this.lookahead().type;H=oe!==17&&oe!==14}else H=!0;if(H){if(this.state.noAnonFunctionType=!1,B=this.flowParseType(),this.state.noAnonFunctionType=Z,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),B;this.eat(12)}return D=B?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(B)]):this.flowParseFunctionTypeParams(),g.params=D.params,g.rest=D.rest,g.this=D._this,this.expect(11),this.expect(19),g.returnType=this.flowParseType(),g.typeParameters=null,this.finishNode(g,"FunctionTypeAnnotation");case 129:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return g.value=this.match(85),this.next(),this.finishNode(g,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(130))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",g);if(this.match(131))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",g);throw this.raise(le.UnexpectedSubtractionOperand,{at:this.state.startLoc})}throw this.unexpected();case 130:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 131:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(g,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(g,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(g,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(g,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(he(this.state.type)){let oe=pe(this.state.type);return this.next(),super.createIdentifier(g,oe)}if(K(this.state.type))return this.isContextual(125)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(s,o,g,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let s=this.state.start,o=this.state.startLoc,g=this.flowParsePrimaryType(),D=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let B=this.startNodeAt(s,o),H=this.eat(18);D=D||H,this.expect(0),!H&&this.match(3)?(B.elementType=g,this.next(),g=this.finishNode(B,"ArrayTypeAnnotation")):(B.objectType=g,B.indexType=this.flowParseType(),this.expect(3),D?(B.optional=H,g=this.finishNode(B,"OptionalIndexedAccessType")):g=this.finishNode(B,"IndexedAccessType"))}return g}flowParsePrefixType(){let s=this.startNode();return this.eat(17)?(s.typeAnnotation=this.flowParsePrefixType(),this.finishNode(s,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let s=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let o=this.startNodeAt(s.start,s.loc.start);return o.params=[this.reinterpretTypeAsFunctionTypeParam(s)],o.rest=null,o.this=null,o.returnType=this.flowParseType(),o.typeParameters=null,this.finishNode(o,"FunctionTypeAnnotation")}return s}flowParseIntersectionType(){let s=this.startNode();this.eat(45);let o=this.flowParseAnonFunctionWithoutParens();for(s.types=[o];this.eat(45);)s.types.push(this.flowParseAnonFunctionWithoutParens());return s.types.length===1?o:this.finishNode(s,"IntersectionTypeAnnotation")}flowParseUnionType(){let s=this.startNode();this.eat(43);let o=this.flowParseIntersectionType();for(s.types=[o];this.eat(43);)s.types.push(this.flowParseIntersectionType());return s.types.length===1?o:this.finishNode(s,"UnionTypeAnnotation")}flowParseType(){let s=this.state.inType;this.state.inType=!0;let o=this.flowParseUnionType();return this.state.inType=s,o}flowParseTypeOrImplicitInstantiation(){if(this.state.type===128&&this.state.value==="_"){let s=this.state.start,o=this.state.startLoc,g=this.parseIdentifier();return this.flowParseGenericType(s,o,g)}return this.flowParseType()}flowParseTypeAnnotation(){let s=this.startNode();return s.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(s,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(s){let o=s?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(o.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(o)),o}typeCastToParameter(s){return s.expression.typeAnnotation=s.typeAnnotation,this.resetEndLocation(s.expression,s.typeAnnotation.loc.end),s.expression}flowParseVariance(){let s=null;return this.match(53)&&(s=this.startNode(),this.state.value==="+"?s.kind="plus":s.kind="minus",this.next(),this.finishNode(s,"Variance")),s}parseFunctionBody(s,o,g=!1){return o?this.forwardNoArrowParamsConversionAt(s,()=>super.parseFunctionBody(s,!0,g)):super.parseFunctionBody(s,!1,g)}parseFunctionBodyAndFinish(s,o,g=!1){if(this.match(14)){let D=this.startNode();[D.typeAnnotation,s.predicate]=this.flowParseTypeAndPredicateInitialiser(),s.returnType=D.typeAnnotation?this.finishNode(D,"TypeAnnotation"):null}super.parseFunctionBodyAndFinish(s,o,g)}parseStatement(s,o){if(this.state.strict&&this.isContextual(125)){if(z(this.lookahead().type)){let D=this.startNode();return this.next(),this.flowParseInterface(D)}}else if(this.shouldParseEnums()&&this.isContextual(122)){let D=this.startNode();return this.next(),this.flowParseEnumDeclaration(D)}let g=super.parseStatement(s,o);return this.flowPragma!==void 0||this.isValidDirective(g)||(this.flowPragma=null),g}parseExpressionStatement(s,o){if(o.type==="Identifier"){if(o.name==="declare"){if(this.match(80)||K(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(s)}else if(K(this.state.type)){if(o.name==="interface")return this.flowParseInterface(s);if(o.name==="type")return this.flowParseTypeAlias(s);if(o.name==="opaque")return this.flowParseOpaqueType(s,!1)}}return super.parseExpressionStatement(s,o)}shouldParseExportDeclaration(){let{type:s}=this.state;return ie(s)||this.shouldParseEnums()&&s===122?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:s}=this.state;return ie(s)||this.shouldParseEnums()&&s===122?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(122)){let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}return super.parseExportDefaultExpression()}parseConditional(s,o,g,D){if(!this.match(17))return s;if(this.state.maybeInArrowParameters){let ut=this.lookaheadCharCode();if(ut===44||ut===61||ut===58||ut===41)return this.setOptionalParametersError(D),s}this.expect(17);let B=this.state.clone(),H=this.state.noArrowAt,Z=this.startNodeAt(o,g),{consequent:oe,failed:me}=this.tryParseConditionalConsequent(),[Ne,ze]=this.getArrowLikeExpressions(oe);if(me||ze.length>0){let ut=[...H];if(ze.length>0){this.state=B,this.state.noArrowAt=ut;for(let dt=0;dt<ze.length;dt++)ut.push(ze[dt].start);({consequent:oe,failed:me}=this.tryParseConditionalConsequent()),[Ne,ze]=this.getArrowLikeExpressions(oe)}me&&Ne.length>1&&this.raise(le.AmbiguousConditionalArrow,{at:B.startLoc}),me&&Ne.length===1&&(this.state=B,ut.push(Ne[0].start),this.state.noArrowAt=ut,{consequent:oe,failed:me}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(oe,!0),this.state.noArrowAt=H,this.expect(14),Z.test=s,Z.consequent=oe,Z.alternate=this.forwardNoArrowParamsConversionAt(Z,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(Z,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let s=this.parseMaybeAssignAllowIn(),o=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:s,failed:o}}getArrowLikeExpressions(s,o){let g=[s],D=[];for(;g.length!==0;){let B=g.pop();B.type==="ArrowFunctionExpression"?(B.typeParameters||!B.returnType?this.finishArrowValidation(B):D.push(B),g.push(B.body)):B.type==="ConditionalExpression"&&(g.push(B.consequent),g.push(B.alternate))}return o?(D.forEach(B=>this.finishArrowValidation(B)),[D,[]]):function(B,H){let Z=[],oe=[];for(let me=0;me<B.length;me++)(H(B[me],me,B)?Z:oe).push(B[me]);return[Z,oe]}(D,B=>B.params.every(H=>this.isAssignable(H,!0)))}finishArrowValidation(s){var o;this.toAssignableList(s.params,(o=s.extra)==null?void 0:o.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(s,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(s,o){let g;return this.state.noArrowParamsConversionAt.indexOf(s.start)!==-1?(this.state.noArrowParamsConversionAt.push(this.state.start),g=o(),this.state.noArrowParamsConversionAt.pop()):g=o(),g}parseParenItem(s,o,g){if(s=super.parseParenItem(s,o,g),this.eat(17)&&(s.optional=!0,this.resetEndLocation(s)),this.match(14)){let D=this.startNodeAt(o,g);return D.expression=s,D.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(D,"TypeCastExpression")}return s}assertModuleNodeAllowed(s){s.type==="ImportDeclaration"&&(s.importKind==="type"||s.importKind==="typeof")||s.type==="ExportNamedDeclaration"&&s.exportKind==="type"||s.type==="ExportAllDeclaration"&&s.exportKind==="type"||super.assertModuleNodeAllowed(s)}parseExport(s){let o=super.parseExport(s);return o.type!=="ExportNamedDeclaration"&&o.type!=="ExportAllDeclaration"||(o.exportKind=o.exportKind||"value"),o}parseExportDeclaration(s){if(this.isContextual(126)){s.exportKind="type";let o=this.startNode();return this.next(),this.match(5)?(s.specifiers=this.parseExportSpecifiers(!0),this.parseExportFrom(s),null):this.flowParseTypeAlias(o)}if(this.isContextual(127)){s.exportKind="type";let o=this.startNode();return this.next(),this.flowParseOpaqueType(o,!1)}if(this.isContextual(125)){s.exportKind="type";let o=this.startNode();return this.next(),this.flowParseInterface(o)}if(this.shouldParseEnums()&&this.isContextual(122)){s.exportKind="value";let o=this.startNode();return this.next(),this.flowParseEnumDeclaration(o)}return super.parseExportDeclaration(s)}eatExportStar(s){return!!super.eatExportStar(...arguments)||!(!this.isContextual(126)||this.lookahead().type!==55)&&(s.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(s){let{startLoc:o}=this.state,g=super.maybeParseExportNamespaceSpecifier(s);return g&&s.exportKind==="type"&&this.unexpected(o),g}parseClassId(s,o,g){super.parseClassId(s,o,g),this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(s,o,g){let{startLoc:D}=this.state;if(this.isContextual(121)){if(this.parseClassMemberFromModifier(s,o))return;o.declare=!0}super.parseClassMember(s,o,g),o.declare&&(o.type!=="ClassProperty"&&o.type!=="ClassPrivateProperty"&&o.type!=="PropertyDefinition"?this.raise(le.DeclareClassElement,{at:D}):o.value&&this.raise(le.DeclareClassFieldInitializer,{at:o.value}))}isIterator(s){return s==="iterator"||s==="asyncIterator"}readIterator(){let s=super.readWord1(),o="@@"+s;this.isIterator(s)&&this.state.inType||this.raise(f.InvalidIdentifier,{at:this.state.curPosition(),identifierName:o}),this.finishToken(128,o)}getTokenFromCode(s){let o=this.input.charCodeAt(this.state.pos+1);return s===123&&o===124?this.finishOp(6,2):!this.state.inType||s!==62&&s!==60?this.state.inType&&s===63?o===46?this.finishOp(18,2):this.finishOp(17,1):function(g,D,B){return g===64&&D===64&&Se(B)}(s,o,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(s):this.finishOp(s===62?48:47,1)}isAssignable(s,o){return s.type==="TypeCastExpression"?this.isAssignable(s.expression,o):super.isAssignable(s,o)}toAssignable(s,o=!1){o||s.type!=="AssignmentExpression"||s.left.type!=="TypeCastExpression"||(s.left=this.typeCastToParameter(s.left)),super.toAssignable(...arguments)}toAssignableList(s,o,g){for(let D=0;D<s.length;D++){let B=s[D];(B==null?void 0:B.type)==="TypeCastExpression"&&(s[D]=this.typeCastToParameter(B))}super.toAssignableList(s,o,g)}toReferencedList(s,o){for(let D=0;D<s.length;D++){var g;let B=s[D];!B||B.type!=="TypeCastExpression"||(g=B.extra)!=null&&g.parenthesized||!(s.length>1)&&o||this.raise(le.TypeCastInPattern,{at:B.typeAnnotation})}return s}parseArrayLike(s,o,g,D){let B=super.parseArrayLike(s,o,g,D);return o&&!this.state.maybeInArrowParameters&&this.toReferencedList(B.elements),B}isValidLVal(s,...o){return s==="TypeCastExpression"||super.isValidLVal(s,...o)}parseClassProperty(s){return this.match(14)&&(s.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(s)}parseClassPrivateProperty(s){return this.match(14)&&(s.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(s)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(s){return!this.match(14)&&super.isNonstaticConstructor(s)}pushClassMethod(s,o,g,D,B,H){if(o.variance&&this.unexpected(o.variance.loc.start),delete o.variance,this.match(47)&&(o.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(s,o,g,D,B,H),o.params&&B){let Z=o.params;Z.length>0&&this.isThisParam(Z[0])&&this.raise(le.ThisParamBannedInConstructor,{at:o})}else if(o.type==="MethodDefinition"&&B&&o.value.params){let Z=o.value.params;Z.length>0&&this.isThisParam(Z[0])&&this.raise(le.ThisParamBannedInConstructor,{at:o})}}pushClassPrivateMethod(s,o,g,D){o.variance&&this.unexpected(o.variance.loc.start),delete o.variance,this.match(47)&&(o.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(s,o,g,D)}parseClassSuper(s){if(super.parseClassSuper(s),s.superClass&&this.match(47)&&(s.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(110)){this.next();let o=s.implements=[];do{let g=this.startNode();g.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?g.typeParameters=this.flowParseTypeParameterInstantiation():g.typeParameters=null,o.push(this.finishNode(g,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(s){super.checkGetterSetterParams(s);let o=this.getObjectOrClassMethodParams(s);if(o.length>0){let g=o[0];this.isThisParam(g)&&s.kind==="get"?this.raise(le.GetterMayNotHaveThisParam,{at:g}):this.isThisParam(g)&&this.raise(le.SetterMayNotHaveThisParam,{at:g})}}parsePropertyNamePrefixOperator(s){s.variance=this.flowParseVariance()}parseObjPropValue(s,o,g,D,B,H,Z,oe){let me;s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&!Z&&(me=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected()),super.parseObjPropValue(s,o,g,D,B,H,Z,oe),me&&((s.value||s).typeParameters=me)}parseAssignableListItemTypes(s){return this.eat(17)&&(s.type!=="Identifier"&&this.raise(le.PatternIsOptional,{at:s}),this.isThisParam(s)&&this.raise(le.ThisParamMayNotBeOptional,{at:s}),s.optional=!0),this.match(14)?s.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(s)&&this.raise(le.ThisParamAnnotationRequired,{at:s}),this.match(29)&&this.isThisParam(s)&&this.raise(le.ThisParamNoDefault,{at:s}),this.resetEndLocation(s),s}parseMaybeDefault(s,o,g){let D=super.parseMaybeDefault(s,o,g);return D.type==="AssignmentPattern"&&D.typeAnnotation&&D.right.start<D.typeAnnotation.start&&this.raise(le.TypeBeforeInitializer,{at:D.typeAnnotation}),D}shouldParseDefaultImport(s){return Me(s)?ke(this.state.type):super.shouldParseDefaultImport(s)}parseImportSpecifierLocal(s,o,g){o.local=Me(s)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),s.specifiers.push(this.finishImportSpecifier(o,g))}maybeParseDefaultImportSpecifier(s){s.importKind="value";let o=null;if(this.match(87)?o="typeof":this.isContextual(126)&&(o="type"),o){let g=this.lookahead(),{type:D}=g;o==="type"&&D===55&&this.unexpected(null,g.type),(ke(D)||D===5||D===55)&&(this.next(),s.importKind=o)}return super.maybeParseDefaultImportSpecifier(s)}parseImportSpecifier(s,o,g,D){let B=s.imported,H=null;B.type==="Identifier"&&(B.name==="type"?H="type":B.name==="typeof"&&(H="typeof"));let Z=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let me=this.parseIdentifier(!0);H===null||z(this.state.type)?(s.imported=B,s.importKind=null,s.local=this.parseIdentifier()):(s.imported=me,s.importKind=H,s.local=ar(me))}else{if(H!==null&&z(this.state.type))s.imported=this.parseIdentifier(!0),s.importKind=H;else{if(o)throw this.raise(f.ImportBindingIsString,{at:s,importName:B.value});s.imported=B,s.importKind=null}this.eatContextual(93)?s.local=this.parseIdentifier():(Z=!0,s.local=ar(s.imported))}let oe=Me(s);return g&&oe&&this.raise(le.ImportTypeShorthandOnlyInPureImport,{at:s}),(g||oe)&&this.checkReservedType(s.local.name,s.local.loc.start,!0),!Z||g||oe||this.checkReservedWord(s.local.name,s.loc.start,!0,!0),this.finishImportSpecifier(s,"ImportSpecifier")}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(s,o){let g=s.kind;g!=="get"&&g!=="set"&&this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(s,o)}parseVarId(s,o){super.parseVarId(s,o),this.match(14)&&(s.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(s.id))}parseAsyncArrowFromCallExpression(s,o){if(this.match(14)){let g=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,s.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=g}return super.parseAsyncArrowFromCallExpression(s,o)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(s,o){var g;let D,B=null;if(this.hasPlugin("jsx")&&(this.match(138)||this.match(47))){if(B=this.state.clone(),D=this.tryParse(()=>super.parseMaybeAssign(s,o),B),!D.error)return D.node;let{context:oe}=this.state,me=oe[oe.length-1];me!==R.j_oTag&&me!==R.j_expr||oe.pop()}if((g=D)!=null&&g.error||this.match(47)){var H,Z;let oe;B=B||this.state.clone();let me=this.tryParse(ze=>{var ut;oe=this.flowParseTypeParameterDeclaration();let dt=this.forwardNoArrowParamsConversionAt(oe,()=>{let kt=super.parseMaybeAssign(s,o);return this.resetStartLocationFromNode(kt,oe),kt});(ut=dt.extra)!=null&&ut.parenthesized&&ze();let Ot=this.maybeUnwrapTypeCastExpression(dt);return Ot.type!=="ArrowFunctionExpression"&&ze(),Ot.typeParameters=oe,this.resetStartLocationFromNode(Ot,oe),dt},B),Ne=null;if(me.node&&this.maybeUnwrapTypeCastExpression(me.node).type==="ArrowFunctionExpression"){if(!me.error&&!me.aborted)return me.node.async&&this.raise(le.UnexpectedTypeParameterBeforeAsyncArrowFunction,{at:oe}),me.node;Ne=me.node}if((H=D)!=null&&H.node)return this.state=D.failState,D.node;if(Ne)return this.state=me.failState,Ne;throw(Z=D)!=null&&Z.thrown?D.error:me.thrown?me.error:this.raise(le.UnexpectedTokenAfterTypeParameter,{at:oe})}return super.parseMaybeAssign(s,o)}parseArrow(s){if(this.match(14)){let o=this.tryParse(()=>{let g=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let D=this.startNode();return[D.typeAnnotation,s.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=g,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),D});if(o.thrown)return null;o.error&&(this.state=o.failState),s.returnType=o.node.typeAnnotation?this.finishNode(o.node,"TypeAnnotation"):null}return super.parseArrow(s)}shouldParseArrow(s){return this.match(14)||super.shouldParseArrow(s)}setArrowFunctionParameters(s,o){this.state.noArrowParamsConversionAt.indexOf(s.start)!==-1?s.params=o:super.setArrowFunctionParameters(s,o)}checkParams(s,o,g){if(!g||this.state.noArrowParamsConversionAt.indexOf(s.start)===-1){for(let D=0;D<s.params.length;D++)this.isThisParam(s.params[D])&&D>0&&this.raise(le.ThisParamMustBeFirst,{at:s.params[D]});return super.checkParams(...arguments)}}parseParenAndDistinguishExpression(s){return super.parseParenAndDistinguishExpression(s&&this.state.noArrowAt.indexOf(this.state.start)===-1)}parseSubscripts(s,o,g,D){if(s.type==="Identifier"&&s.name==="async"&&this.state.noArrowAt.indexOf(o)!==-1){this.next();let B=this.startNodeAt(o,g);B.callee=s,B.arguments=this.parseCallExpressionArguments(11,!1),s=this.finishNode(B,"CallExpression")}else if(s.type==="Identifier"&&s.name==="async"&&this.match(47)){let B=this.state.clone(),H=this.tryParse(oe=>this.parseAsyncArrowWithTypeParameters(o,g)||oe(),B);if(!H.error&&!H.aborted)return H.node;let Z=this.tryParse(()=>super.parseSubscripts(s,o,g,D),B);if(Z.node&&!Z.error)return Z.node;if(H.node)return this.state=H.failState,H.node;if(Z.node)return this.state=Z.failState,Z.node;throw H.error||Z.error}return super.parseSubscripts(s,o,g,D)}parseSubscript(s,o,g,D,B){if(this.match(18)&&this.isLookaheadToken_lt()){if(B.optionalChainMember=!0,D)return B.stop=!0,s;this.next();let H=this.startNodeAt(o,g);return H.callee=s,H.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),H.arguments=this.parseCallExpressionArguments(11,!1),H.optional=!0,this.finishCallExpression(H,!0)}if(!D&&this.shouldParseTypes()&&this.match(47)){let H=this.startNodeAt(o,g);H.callee=s;let Z=this.tryParse(()=>(H.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),H.arguments=this.parseCallExpressionArguments(11,!1),B.optionalChainMember&&(H.optional=!1),this.finishCallExpression(H,B.optionalChainMember)));if(Z.node)return Z.error&&(this.state=Z.failState),Z.node}return super.parseSubscript(s,o,g,D,B)}parseNewCallee(s){super.parseNewCallee(s);let o=null;this.shouldParseTypes()&&this.match(47)&&(o=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),s.typeArguments=o}parseAsyncArrowWithTypeParameters(s,o){let g=this.startNodeAt(s,o);if(this.parseFunctionParams(g),this.parseArrow(g))return this.parseArrowExpression(g,void 0,!0)}readToken_mult_modulo(s){let o=this.input.charCodeAt(this.state.pos+1);if(s===42&&o===47&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(s)}readToken_pipe_amp(s){let o=this.input.charCodeAt(this.state.pos+1);s!==124||o!==125?super.readToken_pipe_amp(s):this.finishOp(9,2)}parseTopLevel(s,o){let g=super.parseTopLevel(s,o);return this.state.hasFlowComment&&this.raise(le.UnterminatedFlowComment,{at:this.state.curPosition()}),g}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(le.NestedFlowComment,{at:this.state.startLoc});return this.hasFlowCommentCompletion(),this.state.pos+=this.skipFlowComment(),void(this.state.hasFlowComment=!0)}if(!this.state.hasFlowComment)return super.skipBlockComment();{let s=this.input.indexOf("*-/",this.state.pos+2);if(s===-1)throw this.raise(f.UnterminatedComment,{at:this.state.curPosition()});this.state.pos=s+2+3}}skipFlowComment(){let{pos:s}=this.state,o=2;for(;[32,9].includes(this.input.charCodeAt(s+o));)o++;let g=this.input.charCodeAt(o+s),D=this.input.charCodeAt(o+s+1);return g===58&&D===58?o+2:this.input.slice(o+s,o+s+12)==="flow-include"?o+12:g===58&&D!==58&&o}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(f.UnterminatedComment,{at:this.state.curPosition()})}flowEnumErrorBooleanMemberNotInitialized(s,{enumName:o,memberName:g}){this.raise(le.EnumBooleanMemberNotInitialized,{at:s,memberName:g,enumName:o})}flowEnumErrorInvalidMemberInitializer(s,o){return this.raise(o.explicitType?o.explicitType==="symbol"?le.EnumInvalidMemberInitializerSymbolType:le.EnumInvalidMemberInitializerPrimaryType:le.EnumInvalidMemberInitializerUnknownType,Object.assign({at:s},o))}flowEnumErrorNumberMemberNotInitialized(s,{enumName:o,memberName:g}){this.raise(le.EnumNumberMemberNotInitialized,{at:s,enumName:o,memberName:g})}flowEnumErrorStringMemberInconsistentlyInitailized(s,{enumName:o}){this.raise(le.EnumStringMemberInconsistentlyInitailized,{at:s,enumName:o})}flowEnumMemberInit(){let s=this.state.startLoc,o=()=>this.match(12)||this.match(8);switch(this.state.type){case 130:{let g=this.parseNumericLiteral(this.state.value);return o()?{type:"number",loc:g.loc.start,value:g}:{type:"invalid",loc:s}}case 129:{let g=this.parseStringLiteral(this.state.value);return o()?{type:"string",loc:g.loc.start,value:g}:{type:"invalid",loc:s}}case 85:case 86:{let g=this.parseBooleanLiteral(this.match(85));return o()?{type:"boolean",loc:g.loc.start,value:g}:{type:"invalid",loc:s}}default:return{type:"invalid",loc:s}}}flowEnumMemberRaw(){let s=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:s}}}flowEnumCheckExplicitTypeMismatch(s,o,g){let{explicitType:D}=o;D!==null&&D!==g&&this.flowEnumErrorInvalidMemberInitializer(s,o)}flowEnumMembers({enumName:s,explicitType:o}){let g=new Set,D={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},B=!1;for(;!this.match(8);){if(this.eat(21)){B=!0;break}let H=this.startNode(),{id:Z,init:oe}=this.flowEnumMemberRaw(),me=Z.name;if(me==="")continue;/^[a-z]/.test(me)&&this.raise(le.EnumInvalidMemberName,{at:Z,memberName:me,suggestion:me[0].toUpperCase()+me.slice(1),enumName:s}),g.has(me)&&this.raise(le.EnumDuplicateMemberName,{at:Z,memberName:me,enumName:s}),g.add(me);let Ne={enumName:s,explicitType:o,memberName:me};switch(H.id=Z,oe.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(oe.loc,Ne,"boolean"),H.init=oe.value,D.booleanMembers.push(this.finishNode(H,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(oe.loc,Ne,"number"),H.init=oe.value,D.numberMembers.push(this.finishNode(H,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(oe.loc,Ne,"string"),H.init=oe.value,D.stringMembers.push(this.finishNode(H,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(oe.loc,Ne);case"none":switch(o){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(oe.loc,Ne);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(oe.loc,Ne);break;default:D.defaultedMembers.push(this.finishNode(H,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:D,hasUnknownMembers:B}}flowEnumStringMembers(s,o,{enumName:g}){if(s.length===0)return o;if(o.length===0)return s;if(o.length>s.length){for(let D of s)this.flowEnumErrorStringMemberInconsistentlyInitailized(D,{enumName:g});return o}for(let D of o)this.flowEnumErrorStringMemberInconsistentlyInitailized(D,{enumName:g});return s}flowEnumParseExplicitType({enumName:s}){if(!this.eatContextual(101))return null;if(!K(this.state.type))throw this.raise(le.EnumInvalidExplicitTypeUnknownSupplied,{at:this.state.startLoc,enumName:s});let{value:o}=this.state;return this.next(),o!=="boolean"&&o!=="number"&&o!=="string"&&o!=="symbol"&&this.raise(le.EnumInvalidExplicitType,{at:this.state.startLoc,enumName:s,invalidEnumType:o}),o}flowEnumBody(s,o){let g=o.name,D=o.loc.start,B=this.flowEnumParseExplicitType({enumName:g});this.expect(5);let{members:H,hasUnknownMembers:Z}=this.flowEnumMembers({enumName:g,explicitType:B});switch(s.hasUnknownMembers=Z,B){case"boolean":return s.explicitType=!0,s.members=H.booleanMembers,this.expect(8),this.finishNode(s,"EnumBooleanBody");case"number":return s.explicitType=!0,s.members=H.numberMembers,this.expect(8),this.finishNode(s,"EnumNumberBody");case"string":return s.explicitType=!0,s.members=this.flowEnumStringMembers(H.stringMembers,H.defaultedMembers,{enumName:g}),this.expect(8),this.finishNode(s,"EnumStringBody");case"symbol":return s.members=H.defaultedMembers,this.expect(8),this.finishNode(s,"EnumSymbolBody");default:{let oe=()=>(s.members=[],this.expect(8),this.finishNode(s,"EnumStringBody"));s.explicitType=!1;let me=H.booleanMembers.length,Ne=H.numberMembers.length,ze=H.stringMembers.length,ut=H.defaultedMembers.length;if(me||Ne||ze||ut){if(me||Ne){if(!Ne&&!ze&&me>=ut){for(let dt of H.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(dt.loc.start,{enumName:g,memberName:dt.id.name});return s.members=H.booleanMembers,this.expect(8),this.finishNode(s,"EnumBooleanBody")}if(!me&&!ze&&Ne>=ut){for(let dt of H.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(dt.loc.start,{enumName:g,memberName:dt.id.name});return s.members=H.numberMembers,this.expect(8),this.finishNode(s,"EnumNumberBody")}return this.raise(le.EnumInconsistentMemberValues,{at:D,enumName:g}),oe()}return s.members=this.flowEnumStringMembers(H.stringMembers,H.defaultedMembers,{enumName:g}),this.expect(8),this.finishNode(s,"EnumStringBody")}return oe()}}}flowParseEnumDeclaration(s){let o=this.parseIdentifier();return s.id=o,s.body=this.flowEnumBody(this.startNode(),o),this.finishNode(s,"EnumDeclaration")}isLookaheadToken_lt(){let s=this.nextTokenStart();if(this.input.charCodeAt(s)===60){let o=this.input.charCodeAt(s+1);return o!==60&&o!==61}return!1}maybeUnwrapTypeCastExpression(s){return s.type==="TypeCastExpression"?s.expression:s}},typescript:W=>class extends W{getScopeHandler(){return xt}tsIsIdentifier(){return K(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(134)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(s,o){if(!K(this.state.type)&&this.state.type!==58)return;let g=this.state.value;if(s.indexOf(g)!==-1){if(o&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return g}}tsParseModifiers({modified:s,allowedModifiers:o,disallowedModifiers:g,stopOnStartOfClassStaticBlock:D,errorTemplate:B=He.InvalidModifierOnTypeMember}){let H=(oe,me,Ne,ze)=>{me===Ne&&s[ze]&&this.raise(He.InvalidModifiersOrder,{at:oe,orderedModifiers:[Ne,ze]})},Z=(oe,me,Ne,ze)=>{(s[Ne]&&me===ze||s[ze]&&me===Ne)&&this.raise(He.IncompatibleModifiers,{at:oe,modifiers:[Ne,ze]})};for(;;){let{startLoc:oe}=this.state,me=this.tsParseModifier(o.concat(g??[]),D);if(!me)break;St(me)?s.accessibility?this.raise(He.DuplicateAccessibilityModifier,{at:oe,modifier:me}):(H(oe,me,me,"override"),H(oe,me,me,"static"),H(oe,me,me,"readonly"),s.accessibility=me):Ut(me)?(s[me]&&this.raise(He.DuplicateModifier,{at:oe,modifier:me}),s[me]=!0,H(oe,me,"in","out")):(Object.hasOwnProperty.call(s,me)?this.raise(He.DuplicateModifier,{at:oe,modifier:me}):(H(oe,me,"static","readonly"),H(oe,me,"static","override"),H(oe,me,"override","readonly"),H(oe,me,"abstract","override"),Z(oe,me,"declare","override"),Z(oe,me,"static","abstract")),s[me]=!0),g!=null&&g.includes(me)&&this.raise(B,{at:oe,modifier:me})}}tsIsListTerminator(s){switch(s){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}throw new Error("Unreachable")}tsParseList(s,o){let g=[];for(;!this.tsIsListTerminator(s);)g.push(o());return g}tsParseDelimitedList(s,o,g){return function(D){if(D==null)throw new Error(`Unexpected ${D} value.`);return D}(this.tsParseDelimitedListWorker(s,o,!0,g))}tsParseDelimitedListWorker(s,o,g,D){let B=[],H=-1;for(;!this.tsIsListTerminator(s);){H=-1;let Z=o();if(Z==null)return;if(B.push(Z),!this.eat(12)){if(this.tsIsListTerminator(s))break;return void(g&&this.expect(12))}H=this.state.lastTokStart}return D&&(D.value=H),B}tsParseBracketedList(s,o,g,D,B){D||(g?this.expect(0):this.expect(47));let H=this.tsParseDelimitedList(s,o,B);return g?this.expect(3):this.expect(48),H}tsParseImportType(){let s=this.startNode();return this.expect(83),this.expect(10),this.match(129)||this.raise(He.UnsupportedImportTypeArgument,{at:this.state.startLoc}),s.argument=this.parseExprAtom(),this.expect(11),this.eat(16)&&(s.qualifier=this.tsParseEntityName()),this.match(47)&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSImportType")}tsParseEntityName(s=!0){let o=this.parseIdentifier(s);for(;this.eat(16);){let g=this.startNodeAtNode(o);g.left=o,g.right=this.parseIdentifier(s),o=this.finishNode(g,"TSQualifiedName")}return o}tsParseTypeReference(){let s=this.startNode();return s.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSTypeReference")}tsParseThisTypePredicate(s){this.next();let o=this.startNodeAtNode(s);return o.parameterName=s,o.typeAnnotation=this.tsParseTypeAnnotation(!1),o.asserts=!1,this.finishNode(o,"TSTypePredicate")}tsParseThisTypeNode(){let s=this.startNode();return this.next(),this.finishNode(s,"TSThisType")}tsParseTypeQuery(){let s=this.startNode();return this.expect(87),this.match(83)?s.exprName=this.tsParseImportType():s.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSTypeQuery")}tsParseInOutModifiers(s){this.tsParseModifiers({modified:s,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:He.InvalidModifierOnTypeParameter})}tsParseNoneModifiers(s){this.tsParseModifiers({modified:s,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:He.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(s=this.tsParseNoneModifiers.bind(this)){let o=this.startNode();return s(o),o.name=this.tsParseTypeParameterName(),o.constraint=this.tsEatThenParseType(81),o.default=this.tsEatThenParseType(29),this.finishNode(o,"TSTypeParameter")}tsTryParseTypeParameters(s){if(this.match(47))return this.tsParseTypeParameters(s)}tsParseTypeParameters(s){let o=this.startNode();this.match(47)||this.match(138)?this.next():this.unexpected();let g={value:-1};return o.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,s),!1,!0,g),o.params.length===0&&this.raise(He.EmptyTypeParameters,{at:o}),g.value!==-1&&this.addExtra(o,"trailingComma",g.value),this.finishNode(o,"TSTypeParameterDeclaration")}tsTryNextParseConstantContext(){if(this.lookahead().type!==75)return null;this.next();let s=this.tsParseTypeReference();return s.typeParameters&&this.raise(He.CannotFindName,{at:s.typeName,name:"const"}),s}tsFillSignature(s,o){let g=s===19;o.typeParameters=this.tsTryParseTypeParameters(),this.expect(10),o.parameters=this.tsParseBindingListForSignature(),(g||this.match(s))&&(o.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(s))}tsParseBindingListForSignature(){return this.parseBindingList(11,41).map(s=>(s.type!=="Identifier"&&s.type!=="RestElement"&&s.type!=="ObjectPattern"&&s.type!=="ArrayPattern"&&this.raise(He.UnsupportedSignatureParameterKind,{at:s,type:s.type}),s))}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(s,o){return this.tsFillSignature(14,o),this.tsParseTypeMemberSemicolon(),this.finishNode(o,s)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!K(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(s){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);let o=this.parseIdentifier();o.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(o),this.expect(3),s.parameters=[o];let g=this.tsTryParseTypeAnnotation();return g&&(s.typeAnnotation=g),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSIndexSignature")}tsParsePropertyOrMethodSignature(s,o){this.eat(17)&&(s.optional=!0);let g=s;if(this.match(10)||this.match(47)){o&&this.raise(He.ReadonlyForMethodSignature,{at:s});let D=g;D.kind&&this.match(47)&&this.raise(He.AccesorCannotHaveTypeParameters,{at:this.state.curPosition()}),this.tsFillSignature(14,D),this.tsParseTypeMemberSemicolon();let B="parameters",H="typeAnnotation";if(D.kind==="get")D[B].length>0&&(this.raise(f.BadGetterArity,{at:this.state.curPosition()}),this.isThisParam(D[B][0])&&this.raise(He.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}));else if(D.kind==="set"){if(D[B].length!==1)this.raise(f.BadSetterArity,{at:this.state.curPosition()});else{let Z=D[B][0];this.isThisParam(Z)&&this.raise(He.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}),Z.type==="Identifier"&&Z.optional&&this.raise(He.SetAccesorCannotHaveOptionalParameter,{at:this.state.curPosition()}),Z.type==="RestElement"&&this.raise(He.SetAccesorCannotHaveRestParameter,{at:this.state.curPosition()})}D[H]&&this.raise(He.SetAccesorCannotHaveReturnType,{at:D[H]})}else D.kind="method";return this.finishNode(D,"TSMethodSignature")}{let D=g;o&&(D.readonly=!0);let B=this.tsTryParseTypeAnnotation();return B&&(D.typeAnnotation=B),this.tsParseTypeMemberSemicolon(),this.finishNode(D,"TSPropertySignature")}}tsParseTypeMember(){let s=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",s);if(this.match(77)){let g=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",s):(s.key=this.createIdentifier(g,"new"),this.tsParsePropertyOrMethodSignature(s,!1))}return this.tsParseModifiers({modified:s,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]}),this.tsTryParseIndexSignature(s)||(this.parsePropertyName(s),s.computed||s.key.type!=="Identifier"||s.key.name!=="get"&&s.key.name!=="set"||!this.tsTokenCanFollowModifier()||(s.kind=s.key.name,this.parsePropertyName(s)),this.tsParsePropertyOrMethodSignature(s,!!s.readonly))}tsParseTypeLiteral(){let s=this.startNode();return s.members=this.tsParseObjectTypeMembers(),this.finishNode(s,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let s=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),s}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(118):(this.isContextual(118)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedTypeParameter(){let s=this.startNode();return s.name=this.tsParseTypeParameterName(),s.constraint=this.tsExpectThenParseType(58),this.finishNode(s,"TSTypeParameter")}tsParseMappedType(){let s=this.startNode();return this.expect(5),this.match(53)?(s.readonly=this.state.value,this.next(),this.expectContextual(118)):this.eatContextual(118)&&(s.readonly=!0),this.expect(0),s.typeParameter=this.tsParseMappedTypeParameter(),s.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(s.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(s.optional=!0),s.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(s,"TSMappedType")}tsParseTupleType(){let s=this.startNode();s.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let o=!1,g=null;return s.elementTypes.forEach(D=>{var B;let{type:H}=D;!o||H==="TSRestType"||H==="TSOptionalType"||H==="TSNamedTupleMember"&&D.optional||this.raise(He.OptionalTypeBeforeRequired,{at:D}),o=o||H==="TSNamedTupleMember"&&D.optional||H==="TSOptionalType",H==="TSRestType"&&(H=(D=D.typeAnnotation).type);let Z=H==="TSNamedTupleMember";g=(B=g)!=null?B:Z,g!==Z&&this.raise(He.MixedLabeledAndUnlabeledElements,{at:D})}),this.finishNode(s,"TSTupleType")}tsParseTupleElementType(){let{start:s,startLoc:o}=this.state,g=this.eat(21),D=this.tsParseType(),B=this.eat(17);if(this.eat(14)){let H=this.startNodeAtNode(D);H.optional=B,D.type!=="TSTypeReference"||D.typeParameters||D.typeName.type!=="Identifier"?(this.raise(He.InvalidTupleMemberLabel,{at:D}),H.label=D):H.label=D.typeName,H.elementType=this.tsParseType(),D=this.finishNode(H,"TSNamedTupleMember")}else if(B){let H=this.startNodeAtNode(D);H.typeAnnotation=D,D=this.finishNode(H,"TSOptionalType")}if(g){let H=this.startNodeAt(s,o);H.typeAnnotation=D,D=this.finishNode(H,"TSRestType")}return D}tsParseParenthesizedType(){let s=this.startNode();return this.expect(10),s.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(s,"TSParenthesizedType")}tsParseFunctionOrConstructorType(s,o){let g=this.startNode();return s==="TSConstructorType"&&(g.abstract=!!o,o&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,g)),this.finishNode(g,s)}tsParseLiteralTypeNode(){let s=this.startNode();return s.literal=(()=>{switch(this.state.type){case 130:case 131:case 129:case 85:case 86:return this.parseExprAtom();default:throw this.unexpected()}})(),this.finishNode(s,"TSLiteralType")}tsParseTemplateLiteralType(){let s=this.startNode();return s.literal=this.parseTemplate(!1),this.finishNode(s,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let s=this.tsParseThisTypeNode();return this.isContextual(113)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(s):s}tsParseNonArrayType(){switch(this.state.type){case 129:case 130:case 131:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let s=this.startNode(),o=this.lookahead();if(o.type!==130&&o.type!==131)throw this.unexpected();return s.literal=this.parseMaybeUnary(),this.finishNode(s,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:s}=this.state;if(K(s)||s===88||s===84){let o=s===88?"TSVoidKeyword":s===84?"TSNullKeyword":function(g){switch(g){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(o!==void 0&&this.lookaheadCharCode()!==46){let g=this.startNode();return this.next(),this.finishNode(g,o)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let s=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let o=this.startNodeAtNode(s);o.elementType=s,this.expect(3),s=this.finishNode(o,"TSArrayType")}else{let o=this.startNodeAtNode(s);o.objectType=s,o.indexType=this.tsParseType(),this.expect(3),s=this.finishNode(o,"TSIndexedAccessType")}return s}tsParseTypeOperator(){let s=this.startNode(),o=this.state.value;return this.next(),s.operator=o,s.typeAnnotation=this.tsParseTypeOperatorOrHigher(),o==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(s),this.finishNode(s,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(s){switch(s.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(He.UnexpectedReadonly,{at:s})}}tsParseInferType(){let s=this.startNode();this.expectContextual(112);let o=this.startNode();return o.name=this.tsParseTypeParameterName(),o.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),s.typeParameter=this.finishNode(o,"TSTypeParameter"),this.finishNode(s,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let s=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return s}}tsParseTypeOperatorOrHigher(){var s;return(s=this.state.type)>=117&&s<=119&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(112)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(s,o,g){let D=this.startNode(),B=this.eat(g),H=[];do H.push(o());while(this.eat(g));return H.length!==1||B?(D.types=H,this.finishNode(D,s)):H[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(K(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:s}=this.state,o=s.length;try{return this.parseObjectLike(8,!0),s.length===o}catch{return!1}}if(this.match(0)){this.next();let{errors:s}=this.state,o=s.length;try{return this.parseBindingList(3,93,!0),s.length===o}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(s){return this.tsInType(()=>{let o=this.startNode();this.expect(s);let g=this.startNode(),D=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(D&&this.match(78)){let Z=this.tsParseThisTypeOrThisTypePredicate();return Z.type==="TSThisType"?(g.parameterName=Z,g.asserts=!0,g.typeAnnotation=null,Z=this.finishNode(g,"TSTypePredicate")):(this.resetStartLocationFromNode(Z,g),Z.asserts=!0),o.typeAnnotation=Z,this.finishNode(o,"TSTypeAnnotation")}let B=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!B)return D?(g.parameterName=this.parseIdentifier(),g.asserts=D,g.typeAnnotation=null,o.typeAnnotation=this.finishNode(g,"TSTypePredicate"),this.finishNode(o,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,o);let H=this.tsParseTypeAnnotation(!1);return g.parameterName=B,g.typeAnnotation=H,g.asserts=D,o.typeAnnotation=this.finishNode(g,"TSTypePredicate"),this.finishNode(o,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(14)?this.tsParseTypeOrTypePredicateAnnotation(14):void 0}tsTryParseTypeAnnotation(){return this.match(14)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let s=this.parseIdentifier();if(this.isContextual(113)&&!this.hasPrecedingLineBreak())return this.next(),s}tsParseTypePredicateAsserts(){if(this.state.type!==106)return!1;let s=this.state.containsEsc;return this.next(),!(!K(this.state.type)&&!this.match(78))&&(s&&this.raise(f.InvalidEscapedReservedWord,{at:this.state.lastTokStartLoc,reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(s=!0,o=this.startNode()){return this.tsInType(()=>{s&&this.expect(14),o.typeAnnotation=this.tsParseType()}),this.finishNode(o,"TSTypeAnnotation")}tsParseType(){it(this.state.inType);let s=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return s;let o=this.startNodeAtNode(s);return o.checkType=s,o.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),o.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),o.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(o,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(120)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(He.ReservedTypeAssertion,{at:this.state.startLoc});let s=this.startNode(),o=this.tsTryNextParseConstantContext();return s.typeAnnotation=o||this.tsNextThenParseType(),this.expect(48),s.expression=this.parseMaybeUnary(),this.finishNode(s,"TSTypeAssertion")}tsParseHeritageClause(s){let o=this.state.startLoc,g=this.tsParseDelimitedList("HeritageClauseElement",()=>{let D=this.startNode();return D.expression=this.tsParseEntityName(),this.match(47)&&(D.typeParameters=this.tsParseTypeArguments()),this.finishNode(D,"TSExpressionWithTypeArguments")});return g.length||this.raise(He.EmptyHeritageClauseType,{at:o,token:s}),g}tsParseInterfaceDeclaration(s,o={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(125),o.declare&&(s.declare=!0),K(this.state.type)?(s.id=this.parseIdentifier(),this.checkIdentifier(s.id,130)):(s.id=null,this.raise(He.MissingInterfaceName,{at:this.state.startLoc})),s.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(81)&&(s.extends=this.tsParseHeritageClause("extends"));let g=this.startNode();return g.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),s.body=this.finishNode(g,"TSInterfaceBody"),this.finishNode(s,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(s){return s.id=this.parseIdentifier(),this.checkIdentifier(s.id,2),s.typeAnnotation=this.tsInType(()=>{if(s.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(29),this.isContextual(111)&&this.lookahead().type!==16){let o=this.startNode();return this.next(),this.finishNode(o,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(s,"TSTypeAliasDeclaration")}tsInNoContext(s){let o=this.state.context;this.state.context=[o[0]];try{return s()}finally{this.state.context=o}}tsInType(s){let o=this.state.inType;this.state.inType=!0;try{return s()}finally{this.state.inType=o}}tsInDisallowConditionalTypesContext(s){let o=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return s()}finally{this.state.inDisallowConditionalTypesContext=o}}tsInAllowConditionalTypesContext(s){let o=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return s()}finally{this.state.inDisallowConditionalTypesContext=o}}tsEatThenParseType(s){return this.match(s)?this.tsNextThenParseType():void 0}tsExpectThenParseType(s){return this.tsDoThenParseType(()=>this.expect(s))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(s){return this.tsInType(()=>(s(),this.tsParseType()))}tsParseEnumMember(){let s=this.startNode();return s.id=this.match(129)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(29)&&(s.initializer=this.parseMaybeAssignAllowIn()),this.finishNode(s,"TSEnumMember")}tsParseEnumDeclaration(s,o={}){return o.const&&(s.const=!0),o.declare&&(s.declare=!0),this.expectContextual(122),s.id=this.parseIdentifier(),this.checkIdentifier(s.id,s.const?779:267),this.expect(5),s.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(s,"TSEnumDeclaration")}tsParseModuleBlock(){let s=this.startNode();return this.scope.enter(0),this.expect(5),this.parseBlockOrModuleBlockBody(s.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(s,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(s,o=!1){if(s.id=this.parseIdentifier(),o||this.checkIdentifier(s.id,1024),this.eat(16)){let g=this.startNode();this.tsParseModuleOrNamespaceDeclaration(g,!0),s.body=g}else this.scope.enter(256),this.prodParam.enter(0),s.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(s,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(s){return this.isContextual(109)?(s.global=!0,s.id=this.parseIdentifier()):this.match(129)?s.id=this.parseExprAtom():this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),s.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(s,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(s,o){s.isExport=o||!1,s.id=this.parseIdentifier(),this.checkIdentifier(s.id,9),this.expect(29);let g=this.tsParseModuleReference();return s.importKind==="type"&&g.type!=="TSExternalModuleReference"&&this.raise(He.ImportAliasHasImportType,{at:g}),s.moduleReference=g,this.semicolon(),this.finishNode(s,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(116)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let s=this.startNode();if(this.expectContextual(116),this.expect(10),!this.match(129))throw this.unexpected();return s.expression=this.parseExprAtom(),this.expect(11),this.finishNode(s,"TSExternalModuleReference")}tsLookAhead(s){let o=this.state.clone(),g=s();return this.state=o,g}tsTryParseAndCatch(s){let o=this.tryParse(g=>s()||g());if(!o.aborted&&o.node)return o.error&&(this.state=o.failState),o.node}tsTryParse(s){let o=this.state.clone(),g=s();return g!==void 0&&g!==!1?g:void(this.state=o)}tsTryParseDeclare(s){if(this.isLineTerminator())return;let o,g=this.state.type;return this.isContextual(99)&&(g=74,o="let"),this.tsInAmbientContext(()=>{if(g===68)return s.declare=!0,this.parseFunctionStatement(s,!1,!0);if(g===80)return s.declare=!0,this.parseClass(s,!0,!1);if(g===122)return this.tsParseEnumDeclaration(s,{declare:!0});if(g===109)return this.tsParseAmbientExternalModuleDeclaration(s);if(g===75||g===74)return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(s,{const:!0,declare:!0})):(s.declare=!0,this.parseVarStatement(s,o||this.state.value,!0));if(g===125){let D=this.tsParseInterfaceDeclaration(s,{declare:!0});if(D)return D}return K(g)?this.tsParseDeclaration(s,this.state.value,!0):void 0})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)}tsParseExpressionStatement(s,o){switch(o.name){case"declare":{let g=this.tsTryParseDeclare(s);if(g)return g.declare=!0,g;break}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let g=s;return g.global=!0,g.id=o,g.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(g,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(s,o.name,!1)}}tsParseDeclaration(s,o,g){switch(o){case"abstract":if(this.tsCheckLineTerminator(g)&&(this.match(80)||K(this.state.type)))return this.tsParseAbstractDeclaration(s);break;case"module":if(this.tsCheckLineTerminator(g)){if(this.match(129))return this.tsParseAmbientExternalModuleDeclaration(s);if(K(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(s)}break;case"namespace":if(this.tsCheckLineTerminator(g)&&K(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(s);break;case"type":if(this.tsCheckLineTerminator(g)&&K(this.state.type))return this.tsParseTypeAliasDeclaration(s)}}tsCheckLineTerminator(s){return s?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(s,o){if(!this.match(47))return;let g=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let D=this.tsTryParseAndCatch(()=>{let B=this.startNodeAt(s,o);return B.typeParameters=this.tsParseTypeParameters(),super.parseFunctionParams(B),B.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),B});return this.state.maybeInArrowParameters=g,D?this.parseArrowExpression(D,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let s=this.startNode();return s.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),s.params.length===0&&this.raise(He.EmptyTypeArguments,{at:s}),this.expect(48),this.finishNode(s,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(s=this.state.type)>=120&&s<=126;var s}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(s,o){let g=this.state.start,D=this.state.startLoc,B,H=!1,Z=!1;if(s!==void 0){let Ne={};this.tsParseModifiers({modified:Ne,allowedModifiers:["public","private","protected","override","readonly"]}),B=Ne.accessibility,Z=Ne.override,H=Ne.readonly,s===!1&&(B||H||Z)&&this.raise(He.UnexpectedParameterModifier,{at:D})}let oe=this.parseMaybeDefault();this.parseAssignableListItemTypes(oe);let me=this.parseMaybeDefault(oe.start,oe.loc.start,oe);if(B||H||Z){let Ne=this.startNodeAt(g,D);return o.length&&(Ne.decorators=o),B&&(Ne.accessibility=B),H&&(Ne.readonly=H),Z&&(Ne.override=Z),me.type!=="Identifier"&&me.type!=="AssignmentPattern"&&this.raise(He.UnsupportedParameterPropertyKind,{at:Ne}),Ne.parameter=me,this.finishNode(Ne,"TSParameterProperty")}return o.length&&(oe.decorators=o),me}isSimpleParameter(s){return s.type==="TSParameterProperty"&&super.isSimpleParameter(s.parameter)||super.isSimpleParameter(s)}parseFunctionBodyAndFinish(s,o,g=!1){this.match(14)&&(s.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let D=o==="FunctionDeclaration"?"TSDeclareFunction":o==="ClassMethod"||o==="ClassPrivateMethod"?"TSDeclareMethod":void 0;D&&!this.match(5)&&this.isLineTerminator()?this.finishNode(s,D):D==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(He.DeclareFunctionHasImplementation,{at:s}),s.declare)?super.parseFunctionBodyAndFinish(s,D,g):super.parseFunctionBodyAndFinish(s,o,g)}registerFunctionStatementId(s){!s.body&&s.id?this.checkIdentifier(s.id,1024):super.registerFunctionStatementId(...arguments)}tsCheckForInvalidTypeCasts(s){s.forEach(o=>{(o==null?void 0:o.type)==="TSTypeCastExpression"&&this.raise(He.UnexpectedTypeAnnotation,{at:o.typeAnnotation})})}toReferencedList(s,o){return this.tsCheckForInvalidTypeCasts(s),s}parseArrayLike(...s){let o=super.parseArrayLike(...s);return o.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(o.elements),o}parseSubscript(s,o,g,D,B){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let Z=this.startNodeAt(o,g);return Z.expression=s,this.finishNode(Z,"TSNonNullExpression")}let H=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(D)return B.stop=!0,s;B.optionalChainMember=H=!0,this.next()}if(this.match(47)||this.match(51)){let Z,oe=this.tsTryParseAndCatch(()=>{if(!D&&this.atPossibleAsyncArrow(s)){let ze=this.tsTryParseGenericAsyncArrowFunction(o,g);if(ze)return ze}let me=this.tsParseTypeArgumentsInExpression();if(!me)throw this.unexpected();if(H&&!this.match(10))throw Z=this.state.curPosition(),this.unexpected();if(ye(this.state.type)){let ze=this.parseTaggedTemplateExpression(s,o,g,B);return ze.typeParameters=me,ze}if(!D&&this.eat(10)){let ze=this.startNodeAt(o,g);return ze.callee=s,ze.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(ze.arguments),ze.typeParameters=me,B.optionalChainMember&&(ze.optional=H),this.finishCallExpression(ze,B.optionalChainMember)}if(bt(this.state.type)&&this.state.type!==10)throw this.unexpected();let Ne=this.startNodeAt(o,g);return Ne.expression=s,Ne.typeParameters=me,this.finishNode(Ne,"TSInstantiationExpression")});if(Z&&this.unexpected(Z,10),oe)return oe}return super.parseSubscript(s,o,g,D,B)}parseNewCallee(s){var o;super.parseNewCallee(s);let{callee:g}=s;g.type!=="TSInstantiationExpression"||(o=g.extra)!=null&&o.parenthesized||(s.typeParameters=g.typeParameters,s.callee=g.expression)}parseExprOp(s,o,g,D){if(Ee(58)>D&&!this.hasPrecedingLineBreak()&&this.isContextual(93)){let B=this.startNodeAt(o,g);B.expression=s;let H=this.tsTryNextParseConstantContext();return B.typeAnnotation=H||this.tsNextThenParseType(),this.finishNode(B,"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(B,o,g,D)}return super.parseExprOp(s,o,g,D)}checkReservedWord(s,o,g,D){this.state.isAmbientContext||super.checkReservedWord(s,o,g,D)}checkDuplicateExports(){}parseImport(s){if(s.importKind="value",K(this.state.type)||this.match(55)||this.match(5)){let g=this.lookahead();if(this.isContextual(126)&&g.type!==12&&g.type!==97&&g.type!==29&&(s.importKind="type",this.next(),g=this.lookahead()),K(this.state.type)&&g.type===29)return this.tsParseImportEqualsDeclaration(s)}let o=super.parseImport(s);return o.importKind==="type"&&o.specifiers.length>1&&o.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(He.TypeImportCannotSpecifyDefaultAndNamed,{at:o}),o}parseExport(s){if(this.match(83))return this.next(),this.isContextual(126)&&this.lookaheadCharCode()!==61?(s.importKind="type",this.next()):s.importKind="value",this.tsParseImportEqualsDeclaration(s,!0);if(this.eat(29)){let o=s;return o.expression=this.parseExpression(),this.semicolon(),this.finishNode(o,"TSExportAssignment")}if(this.eatContextual(93)){let o=s;return this.expectContextual(124),o.id=this.parseIdentifier(),this.semicolon(),this.finishNode(o,"TSNamespaceExportDeclaration")}return this.isContextual(126)&&this.lookahead().type===5?(this.next(),s.exportKind="type"):s.exportKind="value",super.parseExport(s)}isAbstractClass(){return this.isContextual(120)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let s=this.startNode();return this.next(),s.abstract=!0,this.parseClass(s,!0,!0),s}if(this.match(125)){let s=this.tsParseInterfaceDeclaration(this.startNode());if(s)return s}return super.parseExportDefaultExpression()}parseVarStatement(s,o,g=!1){let{isAmbientContext:D}=this.state,B=super.parseVarStatement(s,o,g||D);if(!D)return B;for(let{id:H,init:Z}of B.declarations)Z&&(o!=="const"||H.typeAnnotation?this.raise(He.InitializerNotAllowedInAmbientContext,{at:Z}):Z.type!=="StringLiteral"&&Z.type!=="BooleanLiteral"&&Z.type!=="NumericLiteral"&&Z.type!=="BigIntLiteral"&&(Z.type!=="TemplateLiteral"||Z.expressions.length>0)&&!ur(Z)&&this.raise(He.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,{at:Z}));return B}parseStatementContent(s,o){if(this.match(75)&&this.isLookaheadContextual("enum")){let g=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(g,{const:!0})}if(this.isContextual(122))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(125)){let g=this.tsParseInterfaceDeclaration(this.startNode());if(g)return g}return super.parseStatementContent(s,o)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(s,o){return o.some(g=>St(g)?s.accessibility===g:!!s[g])}tsIsStartOfStaticBlocks(){return this.isContextual(104)&&this.lookaheadCharCode()===123}parseClassMember(s,o,g){let D=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({modified:o,allowedModifiers:D,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:He.InvalidModifierOnTypeParameterPositions});let B=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(o,D)&&this.raise(He.StaticBlockCannotHaveModifier,{at:this.state.curPosition()}),this.parseClassStaticBlock(s,o)):this.parseClassMemberWithIsStatic(s,o,g,!!o.static)};o.declare?this.tsInAmbientContext(B):B()}parseClassMemberWithIsStatic(s,o,g,D){let B=this.tsTryParseIndexSignature(o);if(B)return s.body.push(B),o.abstract&&this.raise(He.IndexSignatureHasAbstract,{at:o}),o.accessibility&&this.raise(He.IndexSignatureHasAccessibility,{at:o,modifier:o.accessibility}),o.declare&&this.raise(He.IndexSignatureHasDeclare,{at:o}),void(o.override&&this.raise(He.IndexSignatureHasOverride,{at:o}));!this.state.inAbstractClass&&o.abstract&&this.raise(He.NonAbstractClassHasAbstractMethod,{at:o}),o.override&&(g.hadSuperClass||this.raise(He.OverrideNotInSubClass,{at:o})),super.parseClassMemberWithIsStatic(s,o,g,D)}parsePostMemberNameModifiers(s){this.eat(17)&&(s.optional=!0),s.readonly&&this.match(10)&&this.raise(He.ClassMethodHasReadonly,{at:s}),s.declare&&this.match(10)&&this.raise(He.ClassMethodHasDeclare,{at:s})}parseExpressionStatement(s,o){return(o.type==="Identifier"?this.tsParseExpressionStatement(s,o):void 0)||super.parseExpressionStatement(s,o)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(s,o,g,D){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(s,o,g,D);let B=this.tryParse(()=>super.parseConditional(s,o,g));return B.node?(B.error&&(this.state=B.failState),B.node):(B.error&&super.setOptionalParametersError(D,B.error),s)}parseParenItem(s,o,g){if(s=super.parseParenItem(s,o,g),this.eat(17)&&(s.optional=!0,this.resetEndLocation(s)),this.match(14)){let D=this.startNodeAt(o,g);return D.expression=s,D.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(D,"TSTypeCastExpression")}return s}parseExportDeclaration(s){if(!this.state.isAmbientContext&&this.isContextual(121))return this.tsInAmbientContext(()=>this.parseExportDeclaration(s));let o=this.state.start,g=this.state.startLoc,D=this.eatContextual(121);if(D&&(this.isContextual(121)||!this.shouldParseExportDeclaration()))throw this.raise(He.ExpectedAmbientAfterExportDeclare,{at:this.state.startLoc});let B=K(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(s);return B?((B.type==="TSInterfaceDeclaration"||B.type==="TSTypeAliasDeclaration"||D)&&(s.exportKind="type"),D&&(this.resetStartLocation(B,o,g),B.declare=!0),B):null}parseClassId(s,o,g){if((!o||g)&&this.isContextual(110))return;super.parseClassId(s,o,g,s.declare?1024:139);let D=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));D&&(s.typeParameters=D)}parseClassPropertyAnnotation(s){!s.optional&&this.eat(35)&&(s.definite=!0);let o=this.tsTryParseTypeAnnotation();o&&(s.typeAnnotation=o)}parseClassProperty(s){if(this.parseClassPropertyAnnotation(s),this.state.isAmbientContext&&this.match(29)&&this.raise(He.DeclareClassFieldHasInitializer,{at:this.state.startLoc}),s.abstract&&this.match(29)){let{key:o}=s;this.raise(He.AbstractPropertyHasInitializer,{at:this.state.startLoc,propertyName:o.type!=="Identifier"||s.computed?`[${this.input.slice(o.start,o.end)}]`:o.name})}return super.parseClassProperty(s)}parseClassPrivateProperty(s){return s.abstract&&this.raise(He.PrivateElementHasAbstract,{at:s}),s.accessibility&&this.raise(He.PrivateElementHasAccessibility,{at:s,modifier:s.accessibility}),this.parseClassPropertyAnnotation(s),super.parseClassPrivateProperty(s)}pushClassMethod(s,o,g,D,B,H){let Z=this.tsTryParseTypeParameters();Z&&B&&this.raise(He.ConstructorHasTypeParameters,{at:Z});let{declare:oe=!1,kind:me}=o;!oe||me!=="get"&&me!=="set"||this.raise(He.DeclareAccessor,{at:o,kind:me}),Z&&(o.typeParameters=Z),super.pushClassMethod(s,o,g,D,B,H)}pushClassPrivateMethod(s,o,g,D){let B=this.tsTryParseTypeParameters();B&&(o.typeParameters=B),super.pushClassPrivateMethod(s,o,g,D)}declareClassPrivateMethodInScope(s,o){s.type!=="TSDeclareMethod"&&(s.type!=="MethodDefinition"||s.value.body)&&super.declareClassPrivateMethodInScope(s,o)}parseClassSuper(s){super.parseClassSuper(s),s.superClass&&(this.match(47)||this.match(51))&&(s.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(110)&&(s.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(s,...o){let g=this.tsTryParseTypeParameters();g&&(s.typeParameters=g),super.parseObjPropValue(s,...o)}parseFunctionParams(s,o){let g=this.tsTryParseTypeParameters();g&&(s.typeParameters=g),super.parseFunctionParams(s,o)}parseVarId(s,o){super.parseVarId(s,o),s.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(s.definite=!0);let g=this.tsTryParseTypeAnnotation();g&&(s.id.typeAnnotation=g,this.resetEndLocation(s.id))}parseAsyncArrowFromCallExpression(s,o){return this.match(14)&&(s.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(s,o)}parseMaybeAssign(...s){var o,g,D,B,H,Z,oe;let me,Ne,ze,ut;if(this.hasPlugin("jsx")&&(this.match(138)||this.match(47))){if(me=this.state.clone(),Ne=this.tryParse(()=>super.parseMaybeAssign(...s),me),!Ne.error)return Ne.node;let{context:Ot}=this.state,kt=Ot[Ot.length-1];kt!==R.j_oTag&&kt!==R.j_expr||Ot.pop()}if(!((o=Ne)!=null&&o.error||this.match(47)))return super.parseMaybeAssign(...s);me&&me!==this.state||(me=this.state.clone());let dt=this.tryParse(Ot=>{var kt,Wt;ut=this.tsParseTypeParameters();let Ht=super.parseMaybeAssign(...s);return(Ht.type!=="ArrowFunctionExpression"||(kt=Ht.extra)!=null&&kt.parenthesized)&&Ot(),((Wt=ut)==null?void 0:Wt.params.length)!==0&&this.resetStartLocationFromNode(Ht,ut),Ht.typeParameters=ut,Ht},me);if(!dt.error&&!dt.aborted)return ut&&this.reportReservedArrowTypeParam(ut),dt.node;if(!Ne&&(it(!this.hasPlugin("jsx")),ze=this.tryParse(()=>super.parseMaybeAssign(...s),me),!ze.error))return ze.node;if((g=Ne)!=null&&g.node)return this.state=Ne.failState,Ne.node;if(dt.node)return this.state=dt.failState,ut&&this.reportReservedArrowTypeParam(ut),dt.node;if((D=ze)!=null&&D.node)return this.state=ze.failState,ze.node;throw(B=Ne)!=null&&B.thrown?Ne.error:dt.thrown?dt.error:(H=ze)!=null&&H.thrown?ze.error:((Z=Ne)==null?void 0:Z.error)||dt.error||((oe=ze)==null?void 0:oe.error)}reportReservedArrowTypeParam(s){var o;s.params.length!==1||(o=s.extra)!=null&&o.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(He.ReservedArrowTypeParam,{at:s})}parseMaybeUnary(s){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(s)}parseArrow(s){if(this.match(14)){let o=this.tryParse(g=>{let D=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||g(),D});if(o.aborted)return;o.thrown||(o.error&&(this.state=o.failState),s.returnType=o.node)}return super.parseArrow(s)}parseAssignableListItemTypes(s){this.eat(17)&&(s.type==="Identifier"||this.state.isAmbientContext||this.state.inType||this.raise(He.PatternIsOptional,{at:s}),s.optional=!0);let o=this.tsTryParseTypeAnnotation();return o&&(s.typeAnnotation=o),this.resetEndLocation(s),s}isAssignable(s,o){switch(s.type){case"TSTypeCastExpression":return this.isAssignable(s.expression,o);case"TSParameterProperty":return!0;default:return super.isAssignable(s,o)}}toAssignable(s,o=!1){switch(s.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(s,o);break;case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":o?this.expressionScope.recordArrowParemeterBindingError(He.UnexpectedTypeCastInParameter,{at:s}):this.raise(He.UnexpectedTypeCastInParameter,{at:s}),this.toAssignable(s.expression,o);break;case"AssignmentExpression":o||s.left.type!=="TSTypeCastExpression"||(s.left=this.typeCastToParameter(s.left));default:super.toAssignable(s,o)}}toAssignableParenthesizedExpression(s,o){switch(s.expression.type){case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(s.expression,o);break;default:super.toAssignable(s,o)}}checkToRestConversion(s,o){switch(s.type){case"TSAsExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(s.expression,!1);break;default:super.checkToRestConversion(s,o)}}isValidLVal(s,o,g){return D={TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(g!==64||!o)&&["expression",!0],TSTypeAssertion:(g!==64||!o)&&["expression",!0]},B=s,Object.hasOwnProperty.call(D,B)&&D[B]||super.isValidLVal(s,o,g);var D,B}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(s){if(this.match(47)||this.match(51)){let o=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let g=super.parseMaybeDecoratorArguments(s);return g.typeParameters=o,g}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(s)}checkCommaAfterRest(s){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===s?(this.next(),!1):super.checkCommaAfterRest(s)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(...s){let o=super.parseMaybeDefault(...s);return o.type==="AssignmentPattern"&&o.typeAnnotation&&o.right.start<o.typeAnnotation.start&&this.raise(He.TypeAnnotationAfterAssign,{at:o.typeAnnotation}),o}getTokenFromCode(s){if(this.state.inType){if(s===62)return this.finishOp(48,1);if(s===60)return this.finishOp(47,1)}return super.getTokenFromCode(s)}reScan_lt_gt(){let{type:s}=this.state;s===47?(this.state.pos-=1,this.readToken_lt()):s===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:s}=this.state;return s===51?(this.state.pos-=2,this.finishOp(47,1),47):s}toAssignableList(s){for(let o=0;o<s.length;o++){let g=s[o];(g==null?void 0:g.type)==="TSTypeCastExpression"&&(s[o]=this.typeCastToParameter(g))}super.toAssignableList(...arguments)}typeCastToParameter(s){return s.expression.typeAnnotation=s.typeAnnotation,this.resetEndLocation(s.expression,s.typeAnnotation.loc.end),s.expression}shouldParseArrow(s){return this.match(14)?s.every(o=>this.isAssignable(o,!0)):super.shouldParseArrow(s)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(s){if(this.match(47)||this.match(51)){let o=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());o&&(s.typeParameters=o)}return super.jsxParseOpeningElementAfterName(s)}getGetterSetterExpectedParamCount(s){let o=super.getGetterSetterExpectedParamCount(s),g=this.getObjectOrClassMethodParams(s)[0];return g&&this.isThisParam(g)?o+1:o}parseCatchClauseParam(){let s=super.parseCatchClauseParam(),o=this.tsTryParseTypeAnnotation();return o&&(s.typeAnnotation=o,this.resetEndLocation(s)),s}tsInAmbientContext(s){let o=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return s()}finally{this.state.isAmbientContext=o}}parseClass(s,...o){let g=this.state.inAbstractClass;this.state.inAbstractClass=!!s.abstract;try{return super.parseClass(s,...o)}finally{this.state.inAbstractClass=g}}tsParseAbstractDeclaration(s){if(this.match(80))return s.abstract=!0,this.parseClass(s,!0,!1);if(this.isContextual(125)){if(!this.hasFollowingLineBreak())return s.abstract=!0,this.raise(He.NonClassMethodPropertyHasAbstractModifer,{at:s}),this.tsParseInterfaceDeclaration(s)}else this.unexpected(null,80)}parseMethod(...s){let o=super.parseMethod(...s);if(o.abstract&&(this.hasPlugin("estree")?!!o.value.body:!!o.body)){let{key:g}=o;this.raise(He.AbstractMethodHasImplementation,{at:o,methodName:g.type!=="Identifier"||o.computed?`[${this.input.slice(g.start,g.end)}]`:g.name})}return o}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(s,o,g,D){return!o&&D?(this.parseTypeOnlyImportExportSpecifier(s,!1,g),this.finishNode(s,"ExportSpecifier")):(s.exportKind="value",super.parseExportSpecifier(s,o,g,D))}parseImportSpecifier(s,o,g,D){return!o&&D?(this.parseTypeOnlyImportExportSpecifier(s,!0,g),this.finishNode(s,"ImportSpecifier")):(s.importKind="value",super.parseImportSpecifier(s,o,g,D))}parseTypeOnlyImportExportSpecifier(s,o,g){let D=o?"imported":"local",B=o?"local":"exported",H,Z=s[D],oe=!1,me=!0,Ne=Z.loc.start;if(this.isContextual(93)){let ze=this.parseIdentifier();if(this.isContextual(93)){let ut=this.parseIdentifier();z(this.state.type)?(oe=!0,Z=ze,H=o?this.parseIdentifier():this.parseModuleExportName(),me=!1):(H=ut,me=!1)}else z(this.state.type)?(me=!1,H=o?this.parseIdentifier():this.parseModuleExportName()):(oe=!0,Z=ze)}else z(this.state.type)&&(oe=!0,o?(Z=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(Z.name,Z.loc.start,!0,!0)):Z=this.parseModuleExportName());oe&&g&&this.raise(o?He.TypeModifierIsUsedInTypeImports:He.TypeModifierIsUsedInTypeExports,{at:Ne}),s[D]=Z,s[B]=H,s[o?"importKind":"exportKind"]=oe?"type":"value",me&&this.eatContextual(93)&&(s[B]=o?this.parseIdentifier():this.parseModuleExportName()),s[B]||(s[B]=ar(s[D])),o&&this.checkIdentifier(s[B],9)}},v8intrinsic:W=>class extends W{parseV8Intrinsic(){if(this.match(54)){let s=this.state.startLoc,o=this.startNode();if(this.next(),K(this.state.type)){let g=this.parseIdentifierName(this.state.start),D=this.createIdentifier(o,g);if(D.type="V8IntrinsicIdentifier",this.match(10))return D}this.unexpected(s)}}parseExprAtom(){return this.parseV8Intrinsic()||super.parseExprAtom(...arguments)}},placeholders:W=>class extends W{parsePlaceholder(s){if(this.match(140)){let o=this.startNode();return this.next(),this.assertNoSpace(),o.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(140),this.finishPlaceholder(o,s)}}finishPlaceholder(s,o){let g=!(!s.expectedNode||s.type!=="Placeholder");return s.expectedNode=o,g?s:this.finishNode(s,"Placeholder")}getTokenFromCode(s){return s===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(140,2):super.getTokenFromCode(...arguments)}parseExprAtom(){return this.parsePlaceholder("Expression")||super.parseExprAtom(...arguments)}parseIdentifier(){return this.parsePlaceholder("Identifier")||super.parseIdentifier(...arguments)}checkReservedWord(s){s!==void 0&&super.checkReservedWord(...arguments)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom(...arguments)}isValidLVal(s,...o){return s==="Placeholder"||super.isValidLVal(s,...o)}toAssignable(s){s&&s.type==="Placeholder"&&s.expectedNode==="Expression"?s.expectedNode="Pattern":super.toAssignable(...arguments)}isLet(s){return super.isLet(s)?!0:!this.isContextual(99)||s?!1:this.lookahead().type===140}verifyBreakContinue(s){s.label&&s.label.type==="Placeholder"||super.verifyBreakContinue(...arguments)}parseExpressionStatement(s,o){if(o.type!=="Placeholder"||o.extra&&o.extra.parenthesized)return super.parseExpressionStatement(...arguments);if(this.match(14)){let g=s;return g.label=this.finishPlaceholder(o,"Identifier"),this.next(),g.body=this.parseStatement("label"),this.finishNode(g,"LabeledStatement")}return this.semicolon(),s.name=o.name,this.finishPlaceholder(s,"Statement")}parseBlock(){return this.parsePlaceholder("BlockStatement")||super.parseBlock(...arguments)}parseFunctionId(){return this.parsePlaceholder("Identifier")||super.parseFunctionId(...arguments)}parseClass(s,o,g){let D=o?"ClassDeclaration":"ClassExpression";this.next(),this.takeDecorators(s);let B=this.state.strict,H=this.parsePlaceholder("Identifier");if(H){if(!(this.match(81)||this.match(140)||this.match(5))){if(g||!o)return s.id=null,s.body=this.finishPlaceholder(H,"ClassBody"),this.finishNode(s,D);throw this.raise(Nr.ClassNameIsRequired,{at:this.state.startLoc})}s.id=H}else this.parseClassId(s,o,g);return this.parseClassSuper(s),s.body=this.parsePlaceholder("ClassBody")||this.parseClassBody(!!s.superClass,B),this.finishNode(s,D)}parseExport(s){let o=this.parsePlaceholder("Identifier");if(!o)return super.parseExport(...arguments);if(!this.isContextual(97)&&!this.match(12))return s.specifiers=[],s.source=null,s.declaration=this.finishPlaceholder(o,"Declaration"),this.finishNode(s,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let g=this.startNode();return g.exported=o,s.specifiers=[this.finishNode(g,"ExportDefaultSpecifier")],super.parseExport(s)}isExportDefaultSpecifier(){if(this.match(65)){let s=this.nextTokenStart();if(this.isUnparsedContextual(s,"from")&&this.input.startsWith(pe(140),this.nextTokenStartSince(s+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(s){return!!(s.specifiers&&s.specifiers.length>0)||super.maybeParseExportDefaultSpecifier(...arguments)}checkExport(s){let{specifiers:o}=s;o!=null&&o.length&&(s.specifiers=o.filter(g=>g.exported.type==="Placeholder")),super.checkExport(s),s.specifiers=o}parseImport(s){let o=this.parsePlaceholder("Identifier");if(!o)return super.parseImport(...arguments);if(s.specifiers=[],!this.isContextual(97)&&!this.match(12))return s.source=this.finishPlaceholder(o,"StringLiteral"),this.semicolon(),this.finishNode(s,"ImportDeclaration");let g=this.startNodeAtNode(o);return g.local=o,this.finishNode(g,"ImportDefaultSpecifier"),s.specifiers.push(g),this.eat(12)&&(this.maybeParseStarImportSpecifier(s)||this.parseNamedImportSpecifiers(s)),this.expectContextual(97),s.source=this.parseImportSource(),this.semicolon(),this.finishNode(s,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource(...arguments)}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(Nr.UnexpectedSpace,{at:this.state.lastTokEndLoc})}}},oi=Object.keys(kn),Zr={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0},Fi=W=>W.type==="ParenthesizedExpression"?Fi(W.expression):W,li={kind:"loop"},Ls={kind:"switch"},Ms=/[\uD800-\uDFFF]/u,Ln=/in(?:stanceof)?/y;class Ri extends class extends class extends class extends class extends class extends class extends class extends class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(s){if(typeof s=="string")return this.plugins.has(s);{let[o,g]=s;if(!this.hasPlugin(o))return!1;let D=this.plugins.get(o);for(let B of Object.keys(g))if((D==null?void 0:D[B])!==g[B])return!1;return!0}}getPluginOption(s,o){var g;return(g=this.plugins.get(s))==null?void 0:g[o]}}{addComment(s){this.filename&&(s.loc.filename=this.filename),this.state.comments.push(s)}processComment(s){let{commentStack:o}=this.state,g=o.length;if(g===0)return;let D=g-1,B=o[D];B.start===s.end&&(B.leadingNode=s,D--);let{start:H}=s;for(;D>=0;D--){let Z=o[D],oe=Z.end;if(!(oe>H)){oe===H&&(Z.trailingNode=s);break}Z.containingNode=s,this.finalizeComment(Z),o.splice(D,1)}}finalizeComment(s){let{comments:o}=s;if(s.leadingNode!==null||s.trailingNode!==null)s.leadingNode!==null&&Ft(s.leadingNode,o),s.trailingNode!==null&&function(g,D){g.leadingComments===void 0?g.leadingComments=D:g.leadingComments.unshift(...D)}(s.trailingNode,o);else{let{containingNode:g,start:D}=s;if(this.input.charCodeAt(D-1)===44)switch(g.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Rt(g,g.properties,s);break;case"CallExpression":case"OptionalCallExpression":Rt(g,g.arguments,s);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Rt(g,g.params,s);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Rt(g,g.elements,s);break;case"ExportNamedDeclaration":case"ImportDeclaration":Rt(g,g.specifiers,s);break;default:wt(g,o)}else wt(g,o)}}finalizeRemainingComments(){let{commentStack:s}=this.state;for(let o=s.length-1;o>=0;o--)this.finalizeComment(s[o]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(s){let{commentStack:o}=this.state,{length:g}=o;if(g===0)return;let D=o[g-1];D.leadingNode===s&&(D.leadingNode=null)}takeSurroundingComments(s,o,g){let{commentStack:D}=this.state,B=D.length;if(B===0)return;let H=B-1;for(;H>=0;H--){let Z=D[H],oe=Z.end;if(Z.start===g)Z.leadingNode=s;else if(oe===o)Z.trailingNode=s;else if(oe<o)break}}}{constructor(s,o){super(),this.isLookahead=void 0,this.tokens=[],this.state=new lr,this.state.init(s),this.input=o,this.length=o.length,this.isLookahead=!1}pushToken(s){this.tokens.length=this.state.tokensLength,this.tokens.push(s),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Le(this.state)),this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(s){return!!this.match(s)&&(this.next(),!0)}match(s){return this.state.type===s}createLookaheadState(s){return{pos:s.pos,value:null,type:s.type,start:s.start,end:s.end,context:[this.curContext()],inType:s.inType,startLoc:s.startLoc,lastTokEndLoc:s.lastTokEndLoc,curLine:s.curLine,lineStart:s.lineStart,curPosition:s.curPosition}}lookahead(){let s=this.state;this.state=this.createLookaheadState(s),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let o=this.state;return this.state=s,o}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(s){return Kt.lastIndex=s,Kt.test(this.input)?Kt.lastIndex:s}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}codePointAtPos(s){let o=this.input.charCodeAt(s);if((64512&o)==55296&&++s<this.input.length){let g=this.input.charCodeAt(s);(64512&g)==56320&&(o=65536+((1023&o)<<10)+(1023&g))}return o}setStrict(s){this.state.strict=s,s&&(this.state.strictErrors.forEach(([o,g])=>this.raise(o,{at:g})),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(135):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(){let s;this.isLookahead||(s=this.state.curPosition());let o=this.state.pos,g=this.input.indexOf("*/",o+2);if(g===-1)throw this.raise(f.UnterminatedComment,{at:this.state.curPosition()});for(this.state.pos=g+2,Et.lastIndex=o+2;Et.test(this.input)&&Et.lastIndex<=g;)++this.state.curLine,this.state.lineStart=Et.lastIndex;if(this.isLookahead)return;let D={type:"CommentBlock",value:this.input.slice(o+2,g),start:o,end:g+2,loc:new n(s,this.state.curPosition())};return this.options.tokens&&this.pushToken(D),D}skipLineComment(s){let o=this.state.pos,g;this.isLookahead||(g=this.state.curPosition());let D=this.input.charCodeAt(this.state.pos+=s);if(this.state.pos<this.length)for(;!ht(D)&&++this.state.pos<this.length;)D=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let B=this.state.pos,H={type:"CommentLine",value:this.input.slice(o+s,B),start:o,end:B,loc:new n(g,this.state.curPosition())};return this.options.tokens&&this.pushToken(H),H}skipSpace(){let s=this.state.pos,o=[];e:for(;this.state.pos<this.length;){let g=this.input.charCodeAt(this.state.pos);switch(g){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let D=this.skipBlockComment();D!==void 0&&(this.addComment(D),this.options.attachComment&&o.push(D));break}case 47:{let D=this.skipLineComment(2);D!==void 0&&(this.addComment(D),this.options.attachComment&&o.push(D));break}default:break e}break;default:if(Mr(g))++this.state.pos;else if(g!==45||this.inModule){if(g!==60||this.inModule)break e;{let D=this.state.pos;if(this.input.charCodeAt(D+1)!==33||this.input.charCodeAt(D+2)!==45||this.input.charCodeAt(D+3)!==45)break e;{let B=this.skipLineComment(4);B!==void 0&&(this.addComment(B),this.options.attachComment&&o.push(B))}}}else{let D=this.state.pos;if(this.input.charCodeAt(D+1)!==45||this.input.charCodeAt(D+2)!==62||!(s===0||this.state.lineStart>s))break e;{let B=this.skipLineComment(3);B!==void 0&&(this.addComment(B),this.options.attachComment&&o.push(B))}}}}if(o.length>0){let g={start:s,end:this.state.pos,comments:o,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(g)}}finishToken(s,o){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let g=this.state.type;this.state.type=s,this.state.value=o,this.isLookahead||this.updateContext(g)}replaceToken(s){this.state.type=s,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let s=this.state.pos+1,o=this.codePointAtPos(s);if(o>=48&&o<=57)throw this.raise(f.UnexpectedDigitAfterHash,{at:this.state.curPosition()});if(o===123||o===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")!=="hash")throw this.raise(o===123?f.RecordExpressionHashIncorrectStartSyntaxType:f.TupleExpressionHashIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,o===123?this.finishToken(7):this.finishToken(1)}else Se(o)?(++this.state.pos,this.finishToken(134,this.readWord1(o))):o===92?(++this.state.pos,this.finishToken(134,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let s=this.input.charCodeAt(this.state.pos+1);s>=48&&s<=57?this.readNumber(!0):s===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let s=this.input.charCodeAt(this.state.pos+1);if(s!==33)return!1;let o=this.state.pos;for(this.state.pos+=1;!ht(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);let g=this.input.slice(o+2,this.state.pos);return this.finishToken(28,g),!0}readToken_mult_modulo(s){let o=s===42?55:54,g=1,D=this.input.charCodeAt(this.state.pos+1);s===42&&D===42&&(g++,D=this.input.charCodeAt(this.state.pos+2),o=57),D!==61||this.state.inType||(g++,o=s===37?33:30),this.finishOp(o,g)}readToken_pipe_amp(s){let o=this.input.charCodeAt(this.state.pos+1);if(o!==s){if(s===124){if(o===62)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&o===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(f.RecordExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&o===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(f.TupleExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});return this.state.pos+=2,void this.finishToken(4)}}o!==61?this.finishOp(s===124?43:45,1):this.finishOp(30,2)}else this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(s===124?41:42,2)}readToken_caret(){let s=this.input.charCodeAt(this.state.pos+1);if(s!==61||this.state.inType)if(s===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){if(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94)throw this.unexpected()}else this.finishOp(44,1);else this.finishOp(32,2)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(s){let o=this.input.charCodeAt(this.state.pos+1);o!==s?o===61?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){let{pos:s}=this.state,o=this.input.charCodeAt(s+1);if(o===60)return this.input.charCodeAt(s+2)===61?void this.finishOp(30,3):void this.finishOp(51,2);o!==61?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){let{pos:s}=this.state,o=this.input.charCodeAt(s+1);if(o===62){let g=this.input.charCodeAt(s+2)===62?3:2;return this.input.charCodeAt(s+g)===61?void this.finishOp(30,g+1):void this.finishOp(52,g)}o!==61?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(s){let o=this.input.charCodeAt(this.state.pos+1);if(o!==61)return s===61&&o===62?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(s===61?29:35,1);this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2)}readToken_question(){let s=this.input.charCodeAt(this.state.pos+1),o=this.input.charCodeAt(this.state.pos+2);s===63?o===61?this.finishOp(30,3):this.finishOp(40,2):s!==46||o>=48&&o<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(s){switch(s){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(f.TupleExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(f.RecordExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{let o=this.input.charCodeAt(this.state.pos+1);if(o===120||o===88)return void this.readRadixNumber(16);if(o===111||o===79)return void this.readRadixNumber(8);if(o===98||o===66)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(s);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(s);case 124:case 38:return void this.readToken_pipe_amp(s);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(s);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(s);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(Se(s))return void this.readWord(s)}throw this.raise(f.InvalidOrUnexpectedToken,{at:this.state.curPosition(),unexpected:String.fromCodePoint(s)})}finishOp(s,o){let g=this.input.slice(this.state.pos,this.state.pos+o);this.state.pos+=o,this.finishToken(s,g)}readRegexp(){let s=this.state.startLoc,o=this.state.start+1,g,D,{pos:B}=this.state;for(;;++B){if(B>=this.length)throw this.raise(f.UnterminatedRegExp,{at:r(s,1)});let me=this.input.charCodeAt(B);if(ht(me))throw this.raise(f.UnterminatedRegExp,{at:r(s,1)});if(g)g=!1;else{if(me===91)D=!0;else if(me===93&&D)D=!1;else if(me===47&&!D)break;g=me===92}}let H=this.input.slice(o,B);++B;let Z="",oe=()=>r(s,B+2-o);for(;B<this.length;){let me=this.codePointAtPos(B),Ne=String.fromCharCode(me);if(Pe.has(me))me===118?(this.expectPlugin("regexpUnicodeSets",oe()),Z.includes("u")&&this.raise(f.IncompatibleRegExpUVFlags,{at:oe()})):me===117&&Z.includes("v")&&this.raise(f.IncompatibleRegExpUVFlags,{at:oe()}),Z.includes(Ne)&&this.raise(f.DuplicateRegExpFlags,{at:oe()});else{if(!Ve(me)&&me!==92)break;this.raise(f.MalformedRegExpFlags,{at:oe()})}++B,Z+=Ne}this.state.pos=B,this.finishToken(133,{pattern:H,flags:Z})}readInt(s,o,g,D=!0){let B=this.state.pos,H=s===16?De.hex:De.decBinOct,Z=s===16?_e.hex:s===10?_e.dec:s===8?_e.oct:_e.bin,oe=!1,me=0;for(let Ne=0,ze=o??1/0;Ne<ze;++Ne){let ut=this.input.charCodeAt(this.state.pos),dt;if(ut!==95||D==="bail"){if(dt=ut>=97?ut-97+10:ut>=65?ut-65+10:an(ut)?ut-48:1/0,dt>=s)if(this.options.errorRecovery&&dt<=9)dt=0,this.raise(f.InvalidDigit,{at:this.state.curPosition(),radix:s});else{if(!g)break;dt=0,oe=!0}++this.state.pos,me=me*s+dt}else{let Ot=this.input.charCodeAt(this.state.pos-1),kt=this.input.charCodeAt(this.state.pos+1);D?(Number.isNaN(kt)||!Z(kt)||H.has(Ot)||H.has(kt))&&this.raise(f.UnexpectedNumericSeparator,{at:this.state.curPosition()}):this.raise(f.NumericSeparatorInEscapeSequence,{at:this.state.curPosition()}),++this.state.pos}}return this.state.pos===B||o!=null&&this.state.pos-B!==o||oe?null:me}readRadixNumber(s){let o=this.state.curPosition(),g=!1;this.state.pos+=2;let D=this.readInt(s);D==null&&this.raise(f.InvalidDigit,{at:r(o,2),radix:s});let B=this.input.charCodeAt(this.state.pos);if(B===110)++this.state.pos,g=!0;else if(B===109)throw this.raise(f.InvalidDecimal,{at:o});if(Se(this.codePointAtPos(this.state.pos)))throw this.raise(f.NumberIdentifier,{at:this.state.curPosition()});if(g){let H=this.input.slice(o.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(131,H)}else this.finishToken(130,D)}readNumber(s){let o=this.state.pos,g=this.state.curPosition(),D=!1,B=!1,H=!1,Z=!1,oe=!1;s||this.readInt(10)!==null||this.raise(f.InvalidNumber,{at:this.state.curPosition()});let me=this.state.pos-o>=2&&this.input.charCodeAt(o)===48;if(me){let dt=this.input.slice(o,this.state.pos);if(this.recordStrictModeErrors(f.StrictOctalLiteral,{at:g}),!this.state.strict){let Ot=dt.indexOf("_");Ot>0&&this.raise(f.ZeroDigitNumericSeparator,{at:r(g,Ot)})}oe=me&&!/[89]/.test(dt)}let Ne=this.input.charCodeAt(this.state.pos);if(Ne!==46||oe||(++this.state.pos,this.readInt(10),D=!0,Ne=this.input.charCodeAt(this.state.pos)),Ne!==69&&Ne!==101||oe||(Ne=this.input.charCodeAt(++this.state.pos),Ne!==43&&Ne!==45||++this.state.pos,this.readInt(10)===null&&this.raise(f.InvalidOrMissingExponent,{at:g}),D=!0,Z=!0,Ne=this.input.charCodeAt(this.state.pos)),Ne===110&&((D||me)&&this.raise(f.InvalidBigIntLiteral,{at:g}),++this.state.pos,B=!0),Ne===109&&(this.expectPlugin("decimal",this.state.curPosition()),(Z||me)&&this.raise(f.InvalidDecimal,{at:g}),++this.state.pos,H=!0),Se(this.codePointAtPos(this.state.pos)))throw this.raise(f.NumberIdentifier,{at:this.state.curPosition()});let ze=this.input.slice(o,this.state.pos).replace(/[_mn]/g,"");if(B)return void this.finishToken(131,ze);if(H)return void this.finishToken(132,ze);let ut=oe?parseInt(ze,8):parseFloat(ze);this.finishToken(130,ut)}readCodePoint(s){let o;if(this.input.charCodeAt(this.state.pos)===123){if(++this.state.pos,o=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,!0,s),++this.state.pos,o!==null&&o>1114111){if(!s)return null;this.raise(f.InvalidCodePoint,{at:this.state.curPosition()})}}else o=this.readHexChar(4,!1,s);return o}readString(s){let o="",g=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(f.UnterminatedString,{at:this.state.startLoc});let D=this.input.charCodeAt(this.state.pos);if(D===s)break;if(D===92)o+=this.input.slice(g,this.state.pos),o+=this.readEscapedChar(!1),g=this.state.pos;else if(D===8232||D===8233)++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;else{if(ht(D))throw this.raise(f.UnterminatedString,{at:this.state.startLoc});++this.state.pos}}o+=this.input.slice(g,this.state.pos++),this.finishToken(129,o)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let s="",o=this.state.pos,g=!1;for(++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(f.UnterminatedTemplate,{at:r(this.state.startLoc,1)});let D=this.input.charCodeAt(this.state.pos);if(D===96)return++this.state.pos,s+=this.input.slice(o,this.state.pos),void this.finishToken(24,g?null:s);if(D===36&&this.input.charCodeAt(this.state.pos+1)===123)return this.state.pos+=2,s+=this.input.slice(o,this.state.pos),void this.finishToken(25,g?null:s);if(D===92){s+=this.input.slice(o,this.state.pos);let B=this.readEscapedChar(!0);B===null?g=!0:s+=B,o=this.state.pos}else if(ht(D)){switch(s+=this.input.slice(o,this.state.pos),++this.state.pos,D){case 13:this.input.charCodeAt(this.state.pos)===10&&++this.state.pos;case 10:s+=`
|
|
2144
|
+
`):g=String.fromCharCode(o),++this.state.curLine,this.state.lineStart=this.state.pos,g}jsxReadString(s){let o="",g=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(f.UnterminatedString,{at:this.state.startLoc});let D=this.input.charCodeAt(this.state.pos);if(D===s)break;D===38?(o+=this.input.slice(g,this.state.pos),o+=this.jsxReadEntity(),g=this.state.pos):ht(D)?(o+=this.input.slice(g,this.state.pos),o+=this.jsxReadNewLine(!1),g=this.state.pos):++this.state.pos}return o+=this.input.slice(g,this.state.pos++),this.finishToken(129,o)}jsxReadEntity(){let s=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let o=10;this.codePointAtPos(this.state.pos)===120&&(o=16,++this.state.pos);let g=this.readInt(o,void 0,!1,"bail");if(g!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(g)}else{let o=0,g=!1;for(;o++<10&&this.state.pos<this.length&&!(g=this.codePointAtPos(this.state.pos)==59);)++this.state.pos;if(g){let D=this.input.slice(s,this.state.pos),B=Ze[D];if(++this.state.pos,B)return B}}return this.state.pos=s,"&"}jsxReadWord(){let s,o=this.state.pos;do s=this.input.charCodeAt(++this.state.pos);while(Ve(s)||s===45);return this.finishToken(136,this.input.slice(o,this.state.pos))}jsxParseIdentifier(){let s=this.startNode();return this.match(136)?s.name=this.state.value:he(this.state.type)?s.name=pe(this.state.type):this.unexpected(),this.next(),this.finishNode(s,"JSXIdentifier")}jsxParseNamespacedName(){let s=this.state.start,o=this.state.startLoc,g=this.jsxParseIdentifier();if(!this.eat(14))return g;let D=this.startNodeAt(s,o);return D.namespace=g,D.name=this.jsxParseIdentifier(),this.finishNode(D,"JSXNamespacedName")}jsxParseElementName(){let s=this.state.start,o=this.state.startLoc,g=this.jsxParseNamespacedName();if(g.type==="JSXNamespacedName")return g;for(;this.eat(16);){let D=this.startNodeAt(s,o);D.object=g,D.property=this.jsxParseIdentifier(),g=this.finishNode(D,"JSXMemberExpression")}return g}jsxParseAttributeValue(){let s;switch(this.state.type){case 5:return s=this.startNode(),this.setContext(R.brace),this.next(),s=this.jsxParseExpressionContainer(s,R.j_oTag),s.expression.type==="JSXEmptyExpression"&&this.raise(ot.AttributeIsEmpty,{at:s}),s;case 138:case 129:return this.parseExprAtom();default:throw this.raise(ot.UnsupportedJsxValue,{at:this.state.startLoc})}}jsxParseEmptyExpression(){let s=this.startNodeAt(this.state.lastTokEndLoc.index,this.state.lastTokEndLoc);return this.finishNodeAt(s,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(s){return this.next(),s.expression=this.parseExpression(),this.setContext(R.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(s,"JSXSpreadChild")}jsxParseExpressionContainer(s,o){if(this.match(8))s.expression=this.jsxParseEmptyExpression();else{let g=this.parseExpression();s.expression=g}return this.setContext(o),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(s,"JSXExpressionContainer")}jsxParseAttribute(){let s=this.startNode();return this.match(5)?(this.setContext(R.brace),this.next(),this.expect(21),s.argument=this.parseMaybeAssignAllowIn(),this.setContext(R.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(s,"JSXSpreadAttribute")):(s.name=this.jsxParseNamespacedName(),s.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(s,"JSXAttribute"))}jsxParseOpeningElementAt(s,o){let g=this.startNodeAt(s,o);return this.eat(139)?this.finishNode(g,"JSXOpeningFragment"):(g.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(g))}jsxParseOpeningElementAfterName(s){let o=[];for(;!this.match(56)&&!this.match(139);)o.push(this.jsxParseAttribute());return s.attributes=o,s.selfClosing=this.eat(56),this.expect(139),this.finishNode(s,"JSXOpeningElement")}jsxParseClosingElementAt(s,o){let g=this.startNodeAt(s,o);return this.eat(139)?this.finishNode(g,"JSXClosingFragment"):(g.name=this.jsxParseElementName(),this.expect(139),this.finishNode(g,"JSXClosingElement"))}jsxParseElementAt(s,o){let g=this.startNodeAt(s,o),D=[],B=this.jsxParseOpeningElementAt(s,o),H=null;if(!B.selfClosing){e:for(;;)switch(this.state.type){case 138:if(s=this.state.start,o=this.state.startLoc,this.next(),this.eat(56)){H=this.jsxParseClosingElementAt(s,o);break e}D.push(this.jsxParseElementAt(s,o));break;case 137:D.push(this.parseExprAtom());break;case 5:{let Z=this.startNode();this.setContext(R.brace),this.next(),this.match(21)?D.push(this.jsxParseSpreadChild(Z)):D.push(this.jsxParseExpressionContainer(Z,R.j_expr));break}default:throw this.unexpected()}st(B)&&!st(H)&&H!==null?this.raise(ot.MissingClosingTagFragment,{at:H}):!st(B)&&st(H)?this.raise(ot.MissingClosingTagElement,{at:H,openingTagName:nt(B.name)}):st(B)||st(H)||nt(H.name)!==nt(B.name)&&this.raise(ot.MissingClosingTagElement,{at:H,openingTagName:nt(B.name)})}if(st(B)?(g.openingFragment=B,g.closingFragment=H):(g.openingElement=B,g.closingElement=H),g.children=D,this.match(47))throw this.raise(ot.UnwrappedAdjacentJSXElements,{at:this.state.startLoc});return st(B)?this.finishNode(g,"JSXFragment"):this.finishNode(g,"JSXElement")}jsxParseElement(){let s=this.state.start,o=this.state.startLoc;return this.next(),this.jsxParseElementAt(s,o)}setContext(s){let{context:o}=this.state;o[o.length-1]=s}parseExprAtom(s){return this.match(137)?this.parseLiteral(this.state.value,"JSXText"):this.match(138)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(138),this.jsxParseElement()):super.parseExprAtom(s)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(s){let o=this.curContext();if(o===R.j_expr)return this.jsxReadToken();if(o===R.j_oTag||o===R.j_cTag){if(Se(s))return this.jsxReadWord();if(s===62)return++this.state.pos,this.finishToken(139);if((s===34||s===39)&&o===R.j_oTag)return this.jsxReadString(s)}return s===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33?(++this.state.pos,this.finishToken(138)):super.getTokenFromCode(s)}updateContext(s){let{context:o,type:g}=this.state;if(g===56&&s===138)o.splice(-2,2,R.j_cTag),this.state.canStartJSXElement=!1;else if(g===138)o.push(R.j_oTag);else if(g===139){let D=o[o.length-1];D===R.j_oTag&&s===56||D===R.j_cTag?(o.pop(),this.state.canStartJSXElement=o[o.length-1]===R.j_expr):(this.setContext(R.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=M[g]}},flow:W=>class extends W{constructor(...s){super(...s),this.flowPragma=void 0}getScopeHandler(){return ct}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(s,o){return s!==129&&s!==13&&s!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(s,o)}addComment(s){if(this.flowPragma===void 0){let o=et.exec(s.value);if(o)if(o[1]==="flow")this.flowPragma="flow";else{if(o[1]!=="noflow")throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}}return super.addComment(s)}flowParseTypeInitialiser(s){let o=this.state.inType;this.state.inType=!0,this.expect(s||14);let g=this.flowParseType();return this.state.inType=o,g}flowParsePredicate(){let s=this.startNode(),o=this.state.startLoc;return this.next(),this.expectContextual(107),this.state.lastTokStart>o.index+1&&this.raise(le.UnexpectedSpaceBetweenModuloChecks,{at:o}),this.eat(10)?(s.value=this.parseExpression(),this.expect(11),this.finishNode(s,"DeclaredPredicate")):this.finishNode(s,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let s=this.state.inType;this.state.inType=!0,this.expect(14);let o=null,g=null;return this.match(54)?(this.state.inType=s,g=this.flowParsePredicate()):(o=this.flowParseType(),this.state.inType=s,this.match(54)&&(g=this.flowParsePredicate())),[o,g]}flowParseDeclareClass(s){return this.next(),this.flowParseInterfaceish(s,!0),this.finishNode(s,"DeclareClass")}flowParseDeclareFunction(s){this.next();let o=s.id=this.parseIdentifier(),g=this.startNode(),D=this.startNode();this.match(47)?g.typeParameters=this.flowParseTypeParameterDeclaration():g.typeParameters=null,this.expect(10);let B=this.flowParseFunctionTypeParams();return g.params=B.params,g.rest=B.rest,g.this=B._this,this.expect(11),[g.returnType,s.predicate]=this.flowParseTypeAndPredicateInitialiser(),D.typeAnnotation=this.finishNode(g,"FunctionTypeAnnotation"),o.typeAnnotation=this.finishNode(D,"TypeAnnotation"),this.resetEndLocation(o),this.semicolon(),this.scope.declareName(s.id.name,2048,s.id.loc.start),this.finishNode(s,"DeclareFunction")}flowParseDeclare(s,o){if(this.match(80))return this.flowParseDeclareClass(s);if(this.match(68))return this.flowParseDeclareFunction(s);if(this.match(74))return this.flowParseDeclareVariable(s);if(this.eatContextual(123))return this.match(16)?this.flowParseDeclareModuleExports(s):(o&&this.raise(le.NestedDeclareModule,{at:this.state.lastTokStartLoc}),this.flowParseDeclareModule(s));if(this.isContextual(126))return this.flowParseDeclareTypeAlias(s);if(this.isContextual(127))return this.flowParseDeclareOpaqueType(s);if(this.isContextual(125))return this.flowParseDeclareInterface(s);if(this.match(82))return this.flowParseDeclareExportDeclaration(s,o);throw this.unexpected()}flowParseDeclareVariable(s){return this.next(),s.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(s.id.name,5,s.id.loc.start),this.semicolon(),this.finishNode(s,"DeclareVariable")}flowParseDeclareModule(s){this.scope.enter(0),this.match(129)?s.id=this.parseExprAtom():s.id=this.parseIdentifier();let o=s.body=this.startNode(),g=o.body=[];for(this.expect(5);!this.match(8);){let H=this.startNode();this.match(83)?(this.next(),this.isContextual(126)||this.match(87)||this.raise(le.InvalidNonTypeImportInDeclareModule,{at:this.state.lastTokStartLoc}),this.parseImport(H)):(this.expectContextual(121,le.UnsupportedStatementInDeclareModule),H=this.flowParseDeclare(H,!0)),g.push(H)}this.scope.exit(),this.expect(8),this.finishNode(o,"BlockStatement");let D=null,B=!1;return g.forEach(H=>{(function(Z){return Z.type==="DeclareExportAllDeclaration"||Z.type==="DeclareExportDeclaration"&&(!Z.declaration||Z.declaration.type!=="TypeAlias"&&Z.declaration.type!=="InterfaceDeclaration")})(H)?(D==="CommonJS"&&this.raise(le.AmbiguousDeclareModuleKind,{at:H}),D="ES"):H.type==="DeclareModuleExports"&&(B&&this.raise(le.DuplicateDeclareModuleExports,{at:H}),D==="ES"&&this.raise(le.AmbiguousDeclareModuleKind,{at:H}),D="CommonJS",B=!0)}),s.kind=D||"CommonJS",this.finishNode(s,"DeclareModule")}flowParseDeclareExportDeclaration(s,o){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?s.declaration=this.flowParseDeclare(this.startNode()):(s.declaration=this.flowParseType(),this.semicolon()),s.default=!0,this.finishNode(s,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(126)||this.isContextual(125))&&!o){let g=this.state.value;throw this.raise(le.UnsupportedDeclareExportKind,{at:this.state.startLoc,unsupportedExportKind:g,suggestion:Ke[g]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(127))return s.declaration=this.flowParseDeclare(this.startNode()),s.default=!1,this.finishNode(s,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(125)||this.isContextual(126)||this.isContextual(127))return(s=this.parseExport(s)).type==="ExportNamedDeclaration"&&(s.type="ExportDeclaration",s.default=!1,delete s.exportKind),s.type="Declare"+s.type,s;throw this.unexpected()}flowParseDeclareModuleExports(s){return this.next(),this.expectContextual(108),s.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(s,"DeclareModuleExports")}flowParseDeclareTypeAlias(s){return this.next(),this.flowParseTypeAlias(s),s.type="DeclareTypeAlias",s}flowParseDeclareOpaqueType(s){return this.next(),this.flowParseOpaqueType(s,!0),s.type="DeclareOpaqueType",s}flowParseDeclareInterface(s){return this.next(),this.flowParseInterfaceish(s),this.finishNode(s,"DeclareInterface")}flowParseInterfaceish(s,o=!1){if(s.id=this.flowParseRestrictedIdentifier(!o,!0),this.scope.declareName(s.id.name,o?17:9,s.id.loc.start),this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,s.extends=[],s.implements=[],s.mixins=[],this.eat(81))do s.extends.push(this.flowParseInterfaceExtends());while(!o&&this.eat(12));if(this.isContextual(114)){this.next();do s.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12))}if(this.isContextual(110)){this.next();do s.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}s.body=this.flowParseObjectType({allowStatic:o,allowExact:!1,allowSpread:!1,allowProto:o,allowInexact:!1})}flowParseInterfaceExtends(){let s=this.startNode();return s.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?s.typeParameters=this.flowParseTypeParameterInstantiation():s.typeParameters=null,this.finishNode(s,"InterfaceExtends")}flowParseInterface(s){return this.flowParseInterfaceish(s),this.finishNode(s,"InterfaceDeclaration")}checkNotUnderscore(s){s==="_"&&this.raise(le.UnexpectedReservedUnderscore,{at:this.state.startLoc})}checkReservedType(s,o,g){fe.has(s)&&this.raise(g?le.AssignReservedType:le.UnexpectedReservedType,{at:o,reservedType:s})}flowParseRestrictedIdentifier(s,o){return this.checkReservedType(this.state.value,this.state.startLoc,o),this.parseIdentifier(s)}flowParseTypeAlias(s){return s.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(s.id.name,9,s.id.loc.start),this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,s.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(s,"TypeAlias")}flowParseOpaqueType(s,o){return this.expectContextual(126),s.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(s.id.name,9,s.id.loc.start),this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,s.supertype=null,this.match(14)&&(s.supertype=this.flowParseTypeInitialiser(14)),s.impltype=null,o||(s.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(s,"OpaqueType")}flowParseTypeParameter(s=!1){let o=this.state.startLoc,g=this.startNode(),D=this.flowParseVariance(),B=this.flowParseTypeAnnotatableIdentifier();return g.name=B.name,g.variance=D,g.bound=B.typeAnnotation,this.match(29)?(this.eat(29),g.default=this.flowParseType()):s&&this.raise(le.MissingTypeParamDefault,{at:o}),this.finishNode(g,"TypeParameter")}flowParseTypeParameterDeclaration(){let s=this.state.inType,o=this.startNode();o.params=[],this.state.inType=!0,this.match(47)||this.match(138)?this.next():this.unexpected();let g=!1;do{let D=this.flowParseTypeParameter(g);o.params.push(D),D.default&&(g=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=s,this.finishNode(o,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let s=this.startNode(),o=this.state.inType;s.params=[],this.state.inType=!0,this.expect(47);let g=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)s.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=g,this.expect(48),this.state.inType=o,this.finishNode(s,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let s=this.startNode(),o=this.state.inType;for(s.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)s.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=o,this.finishNode(s,"TypeParameterInstantiation")}flowParseInterfaceType(){let s=this.startNode();if(this.expectContextual(125),s.extends=[],this.eat(81))do s.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return s.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(s,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(130)||this.match(129)?this.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(s,o,g){return s.static=o,this.lookahead().type===14?(s.id=this.flowParseObjectPropertyKey(),s.key=this.flowParseTypeInitialiser()):(s.id=null,s.key=this.flowParseType()),this.expect(3),s.value=this.flowParseTypeInitialiser(),s.variance=g,this.finishNode(s,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(s,o){return s.static=o,s.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(s.method=!0,s.optional=!1,s.value=this.flowParseObjectTypeMethodish(this.startNodeAt(s.start,s.loc.start))):(s.method=!1,this.eat(17)&&(s.optional=!0),s.value=this.flowParseTypeInitialiser()),this.finishNode(s,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(s){for(s.params=[],s.rest=null,s.typeParameters=null,s.this=null,this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(s.this=this.flowParseFunctionTypeParam(!0),s.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)s.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(s.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),s.returnType=this.flowParseTypeInitialiser(),this.finishNode(s,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(s,o){let g=this.startNode();return s.static=o,s.value=this.flowParseObjectTypeMethodish(g),this.finishNode(s,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:s,allowExact:o,allowSpread:g,allowProto:D,allowInexact:B}){let H=this.state.inType;this.state.inType=!0;let Z=this.startNode(),oe,me;Z.callProperties=[],Z.properties=[],Z.indexers=[],Z.internalSlots=[];let Ne=!1;for(o&&this.match(6)?(this.expect(6),oe=9,me=!0):(this.expect(5),oe=8,me=!1),Z.exact=me;!this.match(oe);){let ut=!1,dt=null,Ot=null,kt=this.startNode();if(D&&this.isContextual(115)){let Ht=this.lookahead();Ht.type!==14&&Ht.type!==17&&(this.next(),dt=this.state.startLoc,s=!1)}if(s&&this.isContextual(104)){let Ht=this.lookahead();Ht.type!==14&&Ht.type!==17&&(this.next(),ut=!0)}let Wt=this.flowParseVariance();if(this.eat(0))dt!=null&&this.unexpected(dt),this.eat(0)?(Wt&&this.unexpected(Wt.loc.start),Z.internalSlots.push(this.flowParseObjectTypeInternalSlot(kt,ut))):Z.indexers.push(this.flowParseObjectTypeIndexer(kt,ut,Wt));else if(this.match(10)||this.match(47))dt!=null&&this.unexpected(dt),Wt&&this.unexpected(Wt.loc.start),Z.callProperties.push(this.flowParseObjectTypeCallProperty(kt,ut));else{let Ht="init";(this.isContextual(98)||this.isContextual(103))&&X(this.lookahead().type)&&(Ht=this.state.value,this.next());let fr=this.flowParseObjectTypeProperty(kt,ut,dt,Wt,Ht,g,B??!me);fr===null?(Ne=!0,Ot=this.state.lastTokStartLoc):Z.properties.push(fr)}this.flowObjectTypeSemicolon(),!Ot||this.match(8)||this.match(9)||this.raise(le.UnexpectedExplicitInexactInObject,{at:Ot})}this.expect(oe),g&&(Z.inexact=Ne);let ze=this.finishNode(Z,"ObjectTypeAnnotation");return this.state.inType=H,ze}flowParseObjectTypeProperty(s,o,g,D,B,H,Z){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(H?Z||this.raise(le.InexactInsideExact,{at:this.state.lastTokStartLoc}):this.raise(le.InexactInsideNonObject,{at:this.state.lastTokStartLoc}),D&&this.raise(le.InexactVariance,{at:D}),null):(H||this.raise(le.UnexpectedSpreadType,{at:this.state.lastTokStartLoc}),g!=null&&this.unexpected(g),D&&this.raise(le.SpreadVariance,{at:D}),s.argument=this.flowParseType(),this.finishNode(s,"ObjectTypeSpreadProperty"));{s.key=this.flowParseObjectPropertyKey(),s.static=o,s.proto=g!=null,s.kind=B;let oe=!1;return this.match(47)||this.match(10)?(s.method=!0,g!=null&&this.unexpected(g),D&&this.unexpected(D.loc.start),s.value=this.flowParseObjectTypeMethodish(this.startNodeAt(s.start,s.loc.start)),B!=="get"&&B!=="set"||this.flowCheckGetterSetterParams(s),!H&&s.key.name==="constructor"&&s.value.this&&this.raise(le.ThisParamBannedInConstructor,{at:s.value.this})):(B!=="init"&&this.unexpected(),s.method=!1,this.eat(17)&&(oe=!0),s.value=this.flowParseTypeInitialiser(),s.variance=D),s.optional=oe,this.finishNode(s,"ObjectTypeProperty")}}flowCheckGetterSetterParams(s){let o=s.kind==="get"?0:1,g=s.value.params.length+(s.value.rest?1:0);s.value.this&&this.raise(s.kind==="get"?le.GetterMayNotHaveThisParam:le.SetterMayNotHaveThisParam,{at:s.value.this}),g!==o&&this.raise(s.kind==="get"?f.BadGetterArity:f.BadSetterArity,{at:s}),s.kind==="set"&&s.value.rest&&this.raise(f.BadSetterRestParameter,{at:s})}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(s,o,g){s=s||this.state.start,o=o||this.state.startLoc;let D=g||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let B=this.startNodeAt(s,o);B.qualification=D,B.id=this.flowParseRestrictedIdentifier(!0),D=this.finishNode(B,"QualifiedTypeIdentifier")}return D}flowParseGenericType(s,o,g){let D=this.startNodeAt(s,o);return D.typeParameters=null,D.id=this.flowParseQualifiedTypeIdentifier(s,o,g),this.match(47)&&(D.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(D,"GenericTypeAnnotation")}flowParseTypeofType(){let s=this.startNode();return this.expect(87),s.argument=this.flowParsePrimaryType(),this.finishNode(s,"TypeofTypeAnnotation")}flowParseTupleType(){let s=this.startNode();for(s.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(s.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(s,"TupleTypeAnnotation")}flowParseFunctionTypeParam(s){let o=null,g=!1,D=null,B=this.startNode(),H=this.lookahead(),Z=this.state.type===78;return H.type===14||H.type===17?(Z&&!s&&this.raise(le.ThisParamMustBeFirst,{at:B}),o=this.parseIdentifier(Z),this.eat(17)&&(g=!0,Z&&this.raise(le.ThisParamMayNotBeOptional,{at:B})),D=this.flowParseTypeInitialiser()):D=this.flowParseType(),B.name=o,B.optional=g,B.typeAnnotation=D,this.finishNode(B,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(s){let o=this.startNodeAt(s.start,s.loc.start);return o.name=null,o.optional=!1,o.typeAnnotation=s,this.finishNode(o,"FunctionTypeParam")}flowParseFunctionTypeParams(s=[]){let o=null,g=null;for(this.match(78)&&(g=this.flowParseFunctionTypeParam(!0),g.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)s.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(o=this.flowParseFunctionTypeParam(!1)),{params:s,rest:o,_this:g}}flowIdentToTypeAnnotation(s,o,g,D){switch(D.name){case"any":return this.finishNode(g,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(g,"BooleanTypeAnnotation");case"mixed":return this.finishNode(g,"MixedTypeAnnotation");case"empty":return this.finishNode(g,"EmptyTypeAnnotation");case"number":return this.finishNode(g,"NumberTypeAnnotation");case"string":return this.finishNode(g,"StringTypeAnnotation");case"symbol":return this.finishNode(g,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(D.name),this.flowParseGenericType(s,o,D)}}flowParsePrimaryType(){let s=this.state.start,o=this.state.startLoc,g=this.startNode(),D,B,H=!1,Z=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,B=this.flowParseTupleType(),this.state.noAnonFunctionType=Z,B;case 47:return g.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),D=this.flowParseFunctionTypeParams(),g.params=D.params,g.rest=D.rest,g.this=D._this,this.expect(11),this.expect(19),g.returnType=this.flowParseType(),this.finishNode(g,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if(K(this.state.type)||this.match(78)){let oe=this.lookahead().type;H=oe!==17&&oe!==14}else H=!0;if(H){if(this.state.noAnonFunctionType=!1,B=this.flowParseType(),this.state.noAnonFunctionType=Z,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),B;this.eat(12)}return D=B?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(B)]):this.flowParseFunctionTypeParams(),g.params=D.params,g.rest=D.rest,g.this=D._this,this.expect(11),this.expect(19),g.returnType=this.flowParseType(),g.typeParameters=null,this.finishNode(g,"FunctionTypeAnnotation");case 129:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return g.value=this.match(85),this.next(),this.finishNode(g,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(130))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",g);if(this.match(131))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",g);throw this.raise(le.UnexpectedSubtractionOperand,{at:this.state.startLoc})}throw this.unexpected();case 130:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 131:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(g,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(g,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(g,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(g,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(he(this.state.type)){let oe=pe(this.state.type);return this.next(),super.createIdentifier(g,oe)}if(K(this.state.type))return this.isContextual(125)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(s,o,g,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let s=this.state.start,o=this.state.startLoc,g=this.flowParsePrimaryType(),D=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let B=this.startNodeAt(s,o),H=this.eat(18);D=D||H,this.expect(0),!H&&this.match(3)?(B.elementType=g,this.next(),g=this.finishNode(B,"ArrayTypeAnnotation")):(B.objectType=g,B.indexType=this.flowParseType(),this.expect(3),D?(B.optional=H,g=this.finishNode(B,"OptionalIndexedAccessType")):g=this.finishNode(B,"IndexedAccessType"))}return g}flowParsePrefixType(){let s=this.startNode();return this.eat(17)?(s.typeAnnotation=this.flowParsePrefixType(),this.finishNode(s,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let s=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let o=this.startNodeAt(s.start,s.loc.start);return o.params=[this.reinterpretTypeAsFunctionTypeParam(s)],o.rest=null,o.this=null,o.returnType=this.flowParseType(),o.typeParameters=null,this.finishNode(o,"FunctionTypeAnnotation")}return s}flowParseIntersectionType(){let s=this.startNode();this.eat(45);let o=this.flowParseAnonFunctionWithoutParens();for(s.types=[o];this.eat(45);)s.types.push(this.flowParseAnonFunctionWithoutParens());return s.types.length===1?o:this.finishNode(s,"IntersectionTypeAnnotation")}flowParseUnionType(){let s=this.startNode();this.eat(43);let o=this.flowParseIntersectionType();for(s.types=[o];this.eat(43);)s.types.push(this.flowParseIntersectionType());return s.types.length===1?o:this.finishNode(s,"UnionTypeAnnotation")}flowParseType(){let s=this.state.inType;this.state.inType=!0;let o=this.flowParseUnionType();return this.state.inType=s,o}flowParseTypeOrImplicitInstantiation(){if(this.state.type===128&&this.state.value==="_"){let s=this.state.start,o=this.state.startLoc,g=this.parseIdentifier();return this.flowParseGenericType(s,o,g)}return this.flowParseType()}flowParseTypeAnnotation(){let s=this.startNode();return s.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(s,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(s){let o=s?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(o.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(o)),o}typeCastToParameter(s){return s.expression.typeAnnotation=s.typeAnnotation,this.resetEndLocation(s.expression,s.typeAnnotation.loc.end),s.expression}flowParseVariance(){let s=null;return this.match(53)&&(s=this.startNode(),this.state.value==="+"?s.kind="plus":s.kind="minus",this.next(),this.finishNode(s,"Variance")),s}parseFunctionBody(s,o,g=!1){return o?this.forwardNoArrowParamsConversionAt(s,()=>super.parseFunctionBody(s,!0,g)):super.parseFunctionBody(s,!1,g)}parseFunctionBodyAndFinish(s,o,g=!1){if(this.match(14)){let D=this.startNode();[D.typeAnnotation,s.predicate]=this.flowParseTypeAndPredicateInitialiser(),s.returnType=D.typeAnnotation?this.finishNode(D,"TypeAnnotation"):null}super.parseFunctionBodyAndFinish(s,o,g)}parseStatement(s,o){if(this.state.strict&&this.isContextual(125)){if(z(this.lookahead().type)){let D=this.startNode();return this.next(),this.flowParseInterface(D)}}else if(this.shouldParseEnums()&&this.isContextual(122)){let D=this.startNode();return this.next(),this.flowParseEnumDeclaration(D)}let g=super.parseStatement(s,o);return this.flowPragma!==void 0||this.isValidDirective(g)||(this.flowPragma=null),g}parseExpressionStatement(s,o){if(o.type==="Identifier"){if(o.name==="declare"){if(this.match(80)||K(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(s)}else if(K(this.state.type)){if(o.name==="interface")return this.flowParseInterface(s);if(o.name==="type")return this.flowParseTypeAlias(s);if(o.name==="opaque")return this.flowParseOpaqueType(s,!1)}}return super.parseExpressionStatement(s,o)}shouldParseExportDeclaration(){let{type:s}=this.state;return ie(s)||this.shouldParseEnums()&&s===122?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:s}=this.state;return ie(s)||this.shouldParseEnums()&&s===122?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(122)){let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}return super.parseExportDefaultExpression()}parseConditional(s,o,g,D){if(!this.match(17))return s;if(this.state.maybeInArrowParameters){let ut=this.lookaheadCharCode();if(ut===44||ut===61||ut===58||ut===41)return this.setOptionalParametersError(D),s}this.expect(17);let B=this.state.clone(),H=this.state.noArrowAt,Z=this.startNodeAt(o,g),{consequent:oe,failed:me}=this.tryParseConditionalConsequent(),[Ne,ze]=this.getArrowLikeExpressions(oe);if(me||ze.length>0){let ut=[...H];if(ze.length>0){this.state=B,this.state.noArrowAt=ut;for(let dt=0;dt<ze.length;dt++)ut.push(ze[dt].start);({consequent:oe,failed:me}=this.tryParseConditionalConsequent()),[Ne,ze]=this.getArrowLikeExpressions(oe)}me&&Ne.length>1&&this.raise(le.AmbiguousConditionalArrow,{at:B.startLoc}),me&&Ne.length===1&&(this.state=B,ut.push(Ne[0].start),this.state.noArrowAt=ut,{consequent:oe,failed:me}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(oe,!0),this.state.noArrowAt=H,this.expect(14),Z.test=s,Z.consequent=oe,Z.alternate=this.forwardNoArrowParamsConversionAt(Z,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(Z,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let s=this.parseMaybeAssignAllowIn(),o=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:s,failed:o}}getArrowLikeExpressions(s,o){let g=[s],D=[];for(;g.length!==0;){let B=g.pop();B.type==="ArrowFunctionExpression"?(B.typeParameters||!B.returnType?this.finishArrowValidation(B):D.push(B),g.push(B.body)):B.type==="ConditionalExpression"&&(g.push(B.consequent),g.push(B.alternate))}return o?(D.forEach(B=>this.finishArrowValidation(B)),[D,[]]):function(B,H){let Z=[],oe=[];for(let me=0;me<B.length;me++)(H(B[me],me,B)?Z:oe).push(B[me]);return[Z,oe]}(D,B=>B.params.every(H=>this.isAssignable(H,!0)))}finishArrowValidation(s){var o;this.toAssignableList(s.params,(o=s.extra)==null?void 0:o.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(s,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(s,o){let g;return this.state.noArrowParamsConversionAt.indexOf(s.start)!==-1?(this.state.noArrowParamsConversionAt.push(this.state.start),g=o(),this.state.noArrowParamsConversionAt.pop()):g=o(),g}parseParenItem(s,o,g){if(s=super.parseParenItem(s,o,g),this.eat(17)&&(s.optional=!0,this.resetEndLocation(s)),this.match(14)){let D=this.startNodeAt(o,g);return D.expression=s,D.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(D,"TypeCastExpression")}return s}assertModuleNodeAllowed(s){s.type==="ImportDeclaration"&&(s.importKind==="type"||s.importKind==="typeof")||s.type==="ExportNamedDeclaration"&&s.exportKind==="type"||s.type==="ExportAllDeclaration"&&s.exportKind==="type"||super.assertModuleNodeAllowed(s)}parseExport(s){let o=super.parseExport(s);return o.type!=="ExportNamedDeclaration"&&o.type!=="ExportAllDeclaration"||(o.exportKind=o.exportKind||"value"),o}parseExportDeclaration(s){if(this.isContextual(126)){s.exportKind="type";let o=this.startNode();return this.next(),this.match(5)?(s.specifiers=this.parseExportSpecifiers(!0),this.parseExportFrom(s),null):this.flowParseTypeAlias(o)}if(this.isContextual(127)){s.exportKind="type";let o=this.startNode();return this.next(),this.flowParseOpaqueType(o,!1)}if(this.isContextual(125)){s.exportKind="type";let o=this.startNode();return this.next(),this.flowParseInterface(o)}if(this.shouldParseEnums()&&this.isContextual(122)){s.exportKind="value";let o=this.startNode();return this.next(),this.flowParseEnumDeclaration(o)}return super.parseExportDeclaration(s)}eatExportStar(s){return!!super.eatExportStar(...arguments)||!(!this.isContextual(126)||this.lookahead().type!==55)&&(s.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(s){let{startLoc:o}=this.state,g=super.maybeParseExportNamespaceSpecifier(s);return g&&s.exportKind==="type"&&this.unexpected(o),g}parseClassId(s,o,g){super.parseClassId(s,o,g),this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(s,o,g){let{startLoc:D}=this.state;if(this.isContextual(121)){if(this.parseClassMemberFromModifier(s,o))return;o.declare=!0}super.parseClassMember(s,o,g),o.declare&&(o.type!=="ClassProperty"&&o.type!=="ClassPrivateProperty"&&o.type!=="PropertyDefinition"?this.raise(le.DeclareClassElement,{at:D}):o.value&&this.raise(le.DeclareClassFieldInitializer,{at:o.value}))}isIterator(s){return s==="iterator"||s==="asyncIterator"}readIterator(){let s=super.readWord1(),o="@@"+s;this.isIterator(s)&&this.state.inType||this.raise(f.InvalidIdentifier,{at:this.state.curPosition(),identifierName:o}),this.finishToken(128,o)}getTokenFromCode(s){let o=this.input.charCodeAt(this.state.pos+1);return s===123&&o===124?this.finishOp(6,2):!this.state.inType||s!==62&&s!==60?this.state.inType&&s===63?o===46?this.finishOp(18,2):this.finishOp(17,1):function(g,D,B){return g===64&&D===64&&Se(B)}(s,o,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(s):this.finishOp(s===62?48:47,1)}isAssignable(s,o){return s.type==="TypeCastExpression"?this.isAssignable(s.expression,o):super.isAssignable(s,o)}toAssignable(s,o=!1){o||s.type!=="AssignmentExpression"||s.left.type!=="TypeCastExpression"||(s.left=this.typeCastToParameter(s.left)),super.toAssignable(...arguments)}toAssignableList(s,o,g){for(let D=0;D<s.length;D++){let B=s[D];(B==null?void 0:B.type)==="TypeCastExpression"&&(s[D]=this.typeCastToParameter(B))}super.toAssignableList(s,o,g)}toReferencedList(s,o){for(let D=0;D<s.length;D++){var g;let B=s[D];!B||B.type!=="TypeCastExpression"||(g=B.extra)!=null&&g.parenthesized||!(s.length>1)&&o||this.raise(le.TypeCastInPattern,{at:B.typeAnnotation})}return s}parseArrayLike(s,o,g,D){let B=super.parseArrayLike(s,o,g,D);return o&&!this.state.maybeInArrowParameters&&this.toReferencedList(B.elements),B}isValidLVal(s,...o){return s==="TypeCastExpression"||super.isValidLVal(s,...o)}parseClassProperty(s){return this.match(14)&&(s.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(s)}parseClassPrivateProperty(s){return this.match(14)&&(s.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(s)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(s){return!this.match(14)&&super.isNonstaticConstructor(s)}pushClassMethod(s,o,g,D,B,H){if(o.variance&&this.unexpected(o.variance.loc.start),delete o.variance,this.match(47)&&(o.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(s,o,g,D,B,H),o.params&&B){let Z=o.params;Z.length>0&&this.isThisParam(Z[0])&&this.raise(le.ThisParamBannedInConstructor,{at:o})}else if(o.type==="MethodDefinition"&&B&&o.value.params){let Z=o.value.params;Z.length>0&&this.isThisParam(Z[0])&&this.raise(le.ThisParamBannedInConstructor,{at:o})}}pushClassPrivateMethod(s,o,g,D){o.variance&&this.unexpected(o.variance.loc.start),delete o.variance,this.match(47)&&(o.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(s,o,g,D)}parseClassSuper(s){if(super.parseClassSuper(s),s.superClass&&this.match(47)&&(s.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(110)){this.next();let o=s.implements=[];do{let g=this.startNode();g.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?g.typeParameters=this.flowParseTypeParameterInstantiation():g.typeParameters=null,o.push(this.finishNode(g,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(s){super.checkGetterSetterParams(s);let o=this.getObjectOrClassMethodParams(s);if(o.length>0){let g=o[0];this.isThisParam(g)&&s.kind==="get"?this.raise(le.GetterMayNotHaveThisParam,{at:g}):this.isThisParam(g)&&this.raise(le.SetterMayNotHaveThisParam,{at:g})}}parsePropertyNamePrefixOperator(s){s.variance=this.flowParseVariance()}parseObjPropValue(s,o,g,D,B,H,Z,oe){let me;s.variance&&this.unexpected(s.variance.loc.start),delete s.variance,this.match(47)&&!Z&&(me=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected()),super.parseObjPropValue(s,o,g,D,B,H,Z,oe),me&&((s.value||s).typeParameters=me)}parseAssignableListItemTypes(s){return this.eat(17)&&(s.type!=="Identifier"&&this.raise(le.PatternIsOptional,{at:s}),this.isThisParam(s)&&this.raise(le.ThisParamMayNotBeOptional,{at:s}),s.optional=!0),this.match(14)?s.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(s)&&this.raise(le.ThisParamAnnotationRequired,{at:s}),this.match(29)&&this.isThisParam(s)&&this.raise(le.ThisParamNoDefault,{at:s}),this.resetEndLocation(s),s}parseMaybeDefault(s,o,g){let D=super.parseMaybeDefault(s,o,g);return D.type==="AssignmentPattern"&&D.typeAnnotation&&D.right.start<D.typeAnnotation.start&&this.raise(le.TypeBeforeInitializer,{at:D.typeAnnotation}),D}shouldParseDefaultImport(s){return Me(s)?ke(this.state.type):super.shouldParseDefaultImport(s)}parseImportSpecifierLocal(s,o,g){o.local=Me(s)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),s.specifiers.push(this.finishImportSpecifier(o,g))}maybeParseDefaultImportSpecifier(s){s.importKind="value";let o=null;if(this.match(87)?o="typeof":this.isContextual(126)&&(o="type"),o){let g=this.lookahead(),{type:D}=g;o==="type"&&D===55&&this.unexpected(null,g.type),(ke(D)||D===5||D===55)&&(this.next(),s.importKind=o)}return super.maybeParseDefaultImportSpecifier(s)}parseImportSpecifier(s,o,g,D){let B=s.imported,H=null;B.type==="Identifier"&&(B.name==="type"?H="type":B.name==="typeof"&&(H="typeof"));let Z=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let me=this.parseIdentifier(!0);H===null||z(this.state.type)?(s.imported=B,s.importKind=null,s.local=this.parseIdentifier()):(s.imported=me,s.importKind=H,s.local=ar(me))}else{if(H!==null&&z(this.state.type))s.imported=this.parseIdentifier(!0),s.importKind=H;else{if(o)throw this.raise(f.ImportBindingIsString,{at:s,importName:B.value});s.imported=B,s.importKind=null}this.eatContextual(93)?s.local=this.parseIdentifier():(Z=!0,s.local=ar(s.imported))}let oe=Me(s);return g&&oe&&this.raise(le.ImportTypeShorthandOnlyInPureImport,{at:s}),(g||oe)&&this.checkReservedType(s.local.name,s.local.loc.start,!0),!Z||g||oe||this.checkReservedWord(s.local.name,s.loc.start,!0,!0),this.finishImportSpecifier(s,"ImportSpecifier")}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(s,o){let g=s.kind;g!=="get"&&g!=="set"&&this.match(47)&&(s.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(s,o)}parseVarId(s,o){super.parseVarId(s,o),this.match(14)&&(s.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(s.id))}parseAsyncArrowFromCallExpression(s,o){if(this.match(14)){let g=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,s.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=g}return super.parseAsyncArrowFromCallExpression(s,o)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(s,o){var g;let D,B=null;if(this.hasPlugin("jsx")&&(this.match(138)||this.match(47))){if(B=this.state.clone(),D=this.tryParse(()=>super.parseMaybeAssign(s,o),B),!D.error)return D.node;let{context:oe}=this.state,me=oe[oe.length-1];me!==R.j_oTag&&me!==R.j_expr||oe.pop()}if((g=D)!=null&&g.error||this.match(47)){var H,Z;let oe;B=B||this.state.clone();let me=this.tryParse(ze=>{var ut;oe=this.flowParseTypeParameterDeclaration();let dt=this.forwardNoArrowParamsConversionAt(oe,()=>{let kt=super.parseMaybeAssign(s,o);return this.resetStartLocationFromNode(kt,oe),kt});(ut=dt.extra)!=null&&ut.parenthesized&&ze();let Ot=this.maybeUnwrapTypeCastExpression(dt);return Ot.type!=="ArrowFunctionExpression"&&ze(),Ot.typeParameters=oe,this.resetStartLocationFromNode(Ot,oe),dt},B),Ne=null;if(me.node&&this.maybeUnwrapTypeCastExpression(me.node).type==="ArrowFunctionExpression"){if(!me.error&&!me.aborted)return me.node.async&&this.raise(le.UnexpectedTypeParameterBeforeAsyncArrowFunction,{at:oe}),me.node;Ne=me.node}if((H=D)!=null&&H.node)return this.state=D.failState,D.node;if(Ne)return this.state=me.failState,Ne;throw(Z=D)!=null&&Z.thrown?D.error:me.thrown?me.error:this.raise(le.UnexpectedTokenAfterTypeParameter,{at:oe})}return super.parseMaybeAssign(s,o)}parseArrow(s){if(this.match(14)){let o=this.tryParse(()=>{let g=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let D=this.startNode();return[D.typeAnnotation,s.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=g,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),D});if(o.thrown)return null;o.error&&(this.state=o.failState),s.returnType=o.node.typeAnnotation?this.finishNode(o.node,"TypeAnnotation"):null}return super.parseArrow(s)}shouldParseArrow(s){return this.match(14)||super.shouldParseArrow(s)}setArrowFunctionParameters(s,o){this.state.noArrowParamsConversionAt.indexOf(s.start)!==-1?s.params=o:super.setArrowFunctionParameters(s,o)}checkParams(s,o,g){if(!g||this.state.noArrowParamsConversionAt.indexOf(s.start)===-1){for(let D=0;D<s.params.length;D++)this.isThisParam(s.params[D])&&D>0&&this.raise(le.ThisParamMustBeFirst,{at:s.params[D]});return super.checkParams(...arguments)}}parseParenAndDistinguishExpression(s){return super.parseParenAndDistinguishExpression(s&&this.state.noArrowAt.indexOf(this.state.start)===-1)}parseSubscripts(s,o,g,D){if(s.type==="Identifier"&&s.name==="async"&&this.state.noArrowAt.indexOf(o)!==-1){this.next();let B=this.startNodeAt(o,g);B.callee=s,B.arguments=this.parseCallExpressionArguments(11,!1),s=this.finishNode(B,"CallExpression")}else if(s.type==="Identifier"&&s.name==="async"&&this.match(47)){let B=this.state.clone(),H=this.tryParse(oe=>this.parseAsyncArrowWithTypeParameters(o,g)||oe(),B);if(!H.error&&!H.aborted)return H.node;let Z=this.tryParse(()=>super.parseSubscripts(s,o,g,D),B);if(Z.node&&!Z.error)return Z.node;if(H.node)return this.state=H.failState,H.node;if(Z.node)return this.state=Z.failState,Z.node;throw H.error||Z.error}return super.parseSubscripts(s,o,g,D)}parseSubscript(s,o,g,D,B){if(this.match(18)&&this.isLookaheadToken_lt()){if(B.optionalChainMember=!0,D)return B.stop=!0,s;this.next();let H=this.startNodeAt(o,g);return H.callee=s,H.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),H.arguments=this.parseCallExpressionArguments(11,!1),H.optional=!0,this.finishCallExpression(H,!0)}if(!D&&this.shouldParseTypes()&&this.match(47)){let H=this.startNodeAt(o,g);H.callee=s;let Z=this.tryParse(()=>(H.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),H.arguments=this.parseCallExpressionArguments(11,!1),B.optionalChainMember&&(H.optional=!1),this.finishCallExpression(H,B.optionalChainMember)));if(Z.node)return Z.error&&(this.state=Z.failState),Z.node}return super.parseSubscript(s,o,g,D,B)}parseNewCallee(s){super.parseNewCallee(s);let o=null;this.shouldParseTypes()&&this.match(47)&&(o=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),s.typeArguments=o}parseAsyncArrowWithTypeParameters(s,o){let g=this.startNodeAt(s,o);if(this.parseFunctionParams(g),this.parseArrow(g))return this.parseArrowExpression(g,void 0,!0)}readToken_mult_modulo(s){let o=this.input.charCodeAt(this.state.pos+1);if(s===42&&o===47&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(s)}readToken_pipe_amp(s){let o=this.input.charCodeAt(this.state.pos+1);s!==124||o!==125?super.readToken_pipe_amp(s):this.finishOp(9,2)}parseTopLevel(s,o){let g=super.parseTopLevel(s,o);return this.state.hasFlowComment&&this.raise(le.UnterminatedFlowComment,{at:this.state.curPosition()}),g}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(le.NestedFlowComment,{at:this.state.startLoc});return this.hasFlowCommentCompletion(),this.state.pos+=this.skipFlowComment(),void(this.state.hasFlowComment=!0)}if(!this.state.hasFlowComment)return super.skipBlockComment();{let s=this.input.indexOf("*-/",this.state.pos+2);if(s===-1)throw this.raise(f.UnterminatedComment,{at:this.state.curPosition()});this.state.pos=s+2+3}}skipFlowComment(){let{pos:s}=this.state,o=2;for(;[32,9].includes(this.input.charCodeAt(s+o));)o++;let g=this.input.charCodeAt(o+s),D=this.input.charCodeAt(o+s+1);return g===58&&D===58?o+2:this.input.slice(o+s,o+s+12)==="flow-include"?o+12:g===58&&D!==58&&o}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(f.UnterminatedComment,{at:this.state.curPosition()})}flowEnumErrorBooleanMemberNotInitialized(s,{enumName:o,memberName:g}){this.raise(le.EnumBooleanMemberNotInitialized,{at:s,memberName:g,enumName:o})}flowEnumErrorInvalidMemberInitializer(s,o){return this.raise(o.explicitType?o.explicitType==="symbol"?le.EnumInvalidMemberInitializerSymbolType:le.EnumInvalidMemberInitializerPrimaryType:le.EnumInvalidMemberInitializerUnknownType,Object.assign({at:s},o))}flowEnumErrorNumberMemberNotInitialized(s,{enumName:o,memberName:g}){this.raise(le.EnumNumberMemberNotInitialized,{at:s,enumName:o,memberName:g})}flowEnumErrorStringMemberInconsistentlyInitailized(s,{enumName:o}){this.raise(le.EnumStringMemberInconsistentlyInitailized,{at:s,enumName:o})}flowEnumMemberInit(){let s=this.state.startLoc,o=()=>this.match(12)||this.match(8);switch(this.state.type){case 130:{let g=this.parseNumericLiteral(this.state.value);return o()?{type:"number",loc:g.loc.start,value:g}:{type:"invalid",loc:s}}case 129:{let g=this.parseStringLiteral(this.state.value);return o()?{type:"string",loc:g.loc.start,value:g}:{type:"invalid",loc:s}}case 85:case 86:{let g=this.parseBooleanLiteral(this.match(85));return o()?{type:"boolean",loc:g.loc.start,value:g}:{type:"invalid",loc:s}}default:return{type:"invalid",loc:s}}}flowEnumMemberRaw(){let s=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:s}}}flowEnumCheckExplicitTypeMismatch(s,o,g){let{explicitType:D}=o;D!==null&&D!==g&&this.flowEnumErrorInvalidMemberInitializer(s,o)}flowEnumMembers({enumName:s,explicitType:o}){let g=new Set,D={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},B=!1;for(;!this.match(8);){if(this.eat(21)){B=!0;break}let H=this.startNode(),{id:Z,init:oe}=this.flowEnumMemberRaw(),me=Z.name;if(me==="")continue;/^[a-z]/.test(me)&&this.raise(le.EnumInvalidMemberName,{at:Z,memberName:me,suggestion:me[0].toUpperCase()+me.slice(1),enumName:s}),g.has(me)&&this.raise(le.EnumDuplicateMemberName,{at:Z,memberName:me,enumName:s}),g.add(me);let Ne={enumName:s,explicitType:o,memberName:me};switch(H.id=Z,oe.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(oe.loc,Ne,"boolean"),H.init=oe.value,D.booleanMembers.push(this.finishNode(H,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(oe.loc,Ne,"number"),H.init=oe.value,D.numberMembers.push(this.finishNode(H,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(oe.loc,Ne,"string"),H.init=oe.value,D.stringMembers.push(this.finishNode(H,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(oe.loc,Ne);case"none":switch(o){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(oe.loc,Ne);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(oe.loc,Ne);break;default:D.defaultedMembers.push(this.finishNode(H,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:D,hasUnknownMembers:B}}flowEnumStringMembers(s,o,{enumName:g}){if(s.length===0)return o;if(o.length===0)return s;if(o.length>s.length){for(let D of s)this.flowEnumErrorStringMemberInconsistentlyInitailized(D,{enumName:g});return o}for(let D of o)this.flowEnumErrorStringMemberInconsistentlyInitailized(D,{enumName:g});return s}flowEnumParseExplicitType({enumName:s}){if(!this.eatContextual(101))return null;if(!K(this.state.type))throw this.raise(le.EnumInvalidExplicitTypeUnknownSupplied,{at:this.state.startLoc,enumName:s});let{value:o}=this.state;return this.next(),o!=="boolean"&&o!=="number"&&o!=="string"&&o!=="symbol"&&this.raise(le.EnumInvalidExplicitType,{at:this.state.startLoc,enumName:s,invalidEnumType:o}),o}flowEnumBody(s,o){let g=o.name,D=o.loc.start,B=this.flowEnumParseExplicitType({enumName:g});this.expect(5);let{members:H,hasUnknownMembers:Z}=this.flowEnumMembers({enumName:g,explicitType:B});switch(s.hasUnknownMembers=Z,B){case"boolean":return s.explicitType=!0,s.members=H.booleanMembers,this.expect(8),this.finishNode(s,"EnumBooleanBody");case"number":return s.explicitType=!0,s.members=H.numberMembers,this.expect(8),this.finishNode(s,"EnumNumberBody");case"string":return s.explicitType=!0,s.members=this.flowEnumStringMembers(H.stringMembers,H.defaultedMembers,{enumName:g}),this.expect(8),this.finishNode(s,"EnumStringBody");case"symbol":return s.members=H.defaultedMembers,this.expect(8),this.finishNode(s,"EnumSymbolBody");default:{let oe=()=>(s.members=[],this.expect(8),this.finishNode(s,"EnumStringBody"));s.explicitType=!1;let me=H.booleanMembers.length,Ne=H.numberMembers.length,ze=H.stringMembers.length,ut=H.defaultedMembers.length;if(me||Ne||ze||ut){if(me||Ne){if(!Ne&&!ze&&me>=ut){for(let dt of H.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(dt.loc.start,{enumName:g,memberName:dt.id.name});return s.members=H.booleanMembers,this.expect(8),this.finishNode(s,"EnumBooleanBody")}if(!me&&!ze&&Ne>=ut){for(let dt of H.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(dt.loc.start,{enumName:g,memberName:dt.id.name});return s.members=H.numberMembers,this.expect(8),this.finishNode(s,"EnumNumberBody")}return this.raise(le.EnumInconsistentMemberValues,{at:D,enumName:g}),oe()}return s.members=this.flowEnumStringMembers(H.stringMembers,H.defaultedMembers,{enumName:g}),this.expect(8),this.finishNode(s,"EnumStringBody")}return oe()}}}flowParseEnumDeclaration(s){let o=this.parseIdentifier();return s.id=o,s.body=this.flowEnumBody(this.startNode(),o),this.finishNode(s,"EnumDeclaration")}isLookaheadToken_lt(){let s=this.nextTokenStart();if(this.input.charCodeAt(s)===60){let o=this.input.charCodeAt(s+1);return o!==60&&o!==61}return!1}maybeUnwrapTypeCastExpression(s){return s.type==="TypeCastExpression"?s.expression:s}},typescript:W=>class extends W{getScopeHandler(){return xt}tsIsIdentifier(){return K(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(134)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(s,o){if(!K(this.state.type)&&this.state.type!==58)return;let g=this.state.value;if(s.indexOf(g)!==-1){if(o&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return g}}tsParseModifiers({modified:s,allowedModifiers:o,disallowedModifiers:g,stopOnStartOfClassStaticBlock:D,errorTemplate:B=He.InvalidModifierOnTypeMember}){let H=(oe,me,Ne,ze)=>{me===Ne&&s[ze]&&this.raise(He.InvalidModifiersOrder,{at:oe,orderedModifiers:[Ne,ze]})},Z=(oe,me,Ne,ze)=>{(s[Ne]&&me===ze||s[ze]&&me===Ne)&&this.raise(He.IncompatibleModifiers,{at:oe,modifiers:[Ne,ze]})};for(;;){let{startLoc:oe}=this.state,me=this.tsParseModifier(o.concat(g??[]),D);if(!me)break;St(me)?s.accessibility?this.raise(He.DuplicateAccessibilityModifier,{at:oe,modifier:me}):(H(oe,me,me,"override"),H(oe,me,me,"static"),H(oe,me,me,"readonly"),s.accessibility=me):Ut(me)?(s[me]&&this.raise(He.DuplicateModifier,{at:oe,modifier:me}),s[me]=!0,H(oe,me,"in","out")):(Object.hasOwnProperty.call(s,me)?this.raise(He.DuplicateModifier,{at:oe,modifier:me}):(H(oe,me,"static","readonly"),H(oe,me,"static","override"),H(oe,me,"override","readonly"),H(oe,me,"abstract","override"),Z(oe,me,"declare","override"),Z(oe,me,"static","abstract")),s[me]=!0),g!=null&&g.includes(me)&&this.raise(B,{at:oe,modifier:me})}}tsIsListTerminator(s){switch(s){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}throw new Error("Unreachable")}tsParseList(s,o){let g=[];for(;!this.tsIsListTerminator(s);)g.push(o());return g}tsParseDelimitedList(s,o,g){return function(D){if(D==null)throw new Error(`Unexpected ${D} value.`);return D}(this.tsParseDelimitedListWorker(s,o,!0,g))}tsParseDelimitedListWorker(s,o,g,D){let B=[],H=-1;for(;!this.tsIsListTerminator(s);){H=-1;let Z=o();if(Z==null)return;if(B.push(Z),!this.eat(12)){if(this.tsIsListTerminator(s))break;return void(g&&this.expect(12))}H=this.state.lastTokStart}return D&&(D.value=H),B}tsParseBracketedList(s,o,g,D,B){D||(g?this.expect(0):this.expect(47));let H=this.tsParseDelimitedList(s,o,B);return g?this.expect(3):this.expect(48),H}tsParseImportType(){let s=this.startNode();return this.expect(83),this.expect(10),this.match(129)||this.raise(He.UnsupportedImportTypeArgument,{at:this.state.startLoc}),s.argument=this.parseExprAtom(),this.expect(11),this.eat(16)&&(s.qualifier=this.tsParseEntityName()),this.match(47)&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSImportType")}tsParseEntityName(s=!0){let o=this.parseIdentifier(s);for(;this.eat(16);){let g=this.startNodeAtNode(o);g.left=o,g.right=this.parseIdentifier(s),o=this.finishNode(g,"TSQualifiedName")}return o}tsParseTypeReference(){let s=this.startNode();return s.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSTypeReference")}tsParseThisTypePredicate(s){this.next();let o=this.startNodeAtNode(s);return o.parameterName=s,o.typeAnnotation=this.tsParseTypeAnnotation(!1),o.asserts=!1,this.finishNode(o,"TSTypePredicate")}tsParseThisTypeNode(){let s=this.startNode();return this.next(),this.finishNode(s,"TSThisType")}tsParseTypeQuery(){let s=this.startNode();return this.expect(87),this.match(83)?s.exprName=this.tsParseImportType():s.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSTypeQuery")}tsParseInOutModifiers(s){this.tsParseModifiers({modified:s,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:He.InvalidModifierOnTypeParameter})}tsParseNoneModifiers(s){this.tsParseModifiers({modified:s,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:He.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(s=this.tsParseNoneModifiers.bind(this)){let o=this.startNode();return s(o),o.name=this.tsParseTypeParameterName(),o.constraint=this.tsEatThenParseType(81),o.default=this.tsEatThenParseType(29),this.finishNode(o,"TSTypeParameter")}tsTryParseTypeParameters(s){if(this.match(47))return this.tsParseTypeParameters(s)}tsParseTypeParameters(s){let o=this.startNode();this.match(47)||this.match(138)?this.next():this.unexpected();let g={value:-1};return o.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,s),!1,!0,g),o.params.length===0&&this.raise(He.EmptyTypeParameters,{at:o}),g.value!==-1&&this.addExtra(o,"trailingComma",g.value),this.finishNode(o,"TSTypeParameterDeclaration")}tsTryNextParseConstantContext(){if(this.lookahead().type!==75)return null;this.next();let s=this.tsParseTypeReference();return s.typeParameters&&this.raise(He.CannotFindName,{at:s.typeName,name:"const"}),s}tsFillSignature(s,o){let g=s===19;o.typeParameters=this.tsTryParseTypeParameters(),this.expect(10),o.parameters=this.tsParseBindingListForSignature(),(g||this.match(s))&&(o.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(s))}tsParseBindingListForSignature(){return this.parseBindingList(11,41).map(s=>(s.type!=="Identifier"&&s.type!=="RestElement"&&s.type!=="ObjectPattern"&&s.type!=="ArrayPattern"&&this.raise(He.UnsupportedSignatureParameterKind,{at:s,type:s.type}),s))}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(s,o){return this.tsFillSignature(14,o),this.tsParseTypeMemberSemicolon(),this.finishNode(o,s)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!K(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(s){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);let o=this.parseIdentifier();o.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(o),this.expect(3),s.parameters=[o];let g=this.tsTryParseTypeAnnotation();return g&&(s.typeAnnotation=g),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSIndexSignature")}tsParsePropertyOrMethodSignature(s,o){this.eat(17)&&(s.optional=!0);let g=s;if(this.match(10)||this.match(47)){o&&this.raise(He.ReadonlyForMethodSignature,{at:s});let D=g;D.kind&&this.match(47)&&this.raise(He.AccesorCannotHaveTypeParameters,{at:this.state.curPosition()}),this.tsFillSignature(14,D),this.tsParseTypeMemberSemicolon();let B="parameters",H="typeAnnotation";if(D.kind==="get")D[B].length>0&&(this.raise(f.BadGetterArity,{at:this.state.curPosition()}),this.isThisParam(D[B][0])&&this.raise(He.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}));else if(D.kind==="set"){if(D[B].length!==1)this.raise(f.BadSetterArity,{at:this.state.curPosition()});else{let Z=D[B][0];this.isThisParam(Z)&&this.raise(He.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}),Z.type==="Identifier"&&Z.optional&&this.raise(He.SetAccesorCannotHaveOptionalParameter,{at:this.state.curPosition()}),Z.type==="RestElement"&&this.raise(He.SetAccesorCannotHaveRestParameter,{at:this.state.curPosition()})}D[H]&&this.raise(He.SetAccesorCannotHaveReturnType,{at:D[H]})}else D.kind="method";return this.finishNode(D,"TSMethodSignature")}{let D=g;o&&(D.readonly=!0);let B=this.tsTryParseTypeAnnotation();return B&&(D.typeAnnotation=B),this.tsParseTypeMemberSemicolon(),this.finishNode(D,"TSPropertySignature")}}tsParseTypeMember(){let s=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",s);if(this.match(77)){let g=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",s):(s.key=this.createIdentifier(g,"new"),this.tsParsePropertyOrMethodSignature(s,!1))}return this.tsParseModifiers({modified:s,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]}),this.tsTryParseIndexSignature(s)||(this.parsePropertyName(s),s.computed||s.key.type!=="Identifier"||s.key.name!=="get"&&s.key.name!=="set"||!this.tsTokenCanFollowModifier()||(s.kind=s.key.name,this.parsePropertyName(s)),this.tsParsePropertyOrMethodSignature(s,!!s.readonly))}tsParseTypeLiteral(){let s=this.startNode();return s.members=this.tsParseObjectTypeMembers(),this.finishNode(s,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let s=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),s}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(118):(this.isContextual(118)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedTypeParameter(){let s=this.startNode();return s.name=this.tsParseTypeParameterName(),s.constraint=this.tsExpectThenParseType(58),this.finishNode(s,"TSTypeParameter")}tsParseMappedType(){let s=this.startNode();return this.expect(5),this.match(53)?(s.readonly=this.state.value,this.next(),this.expectContextual(118)):this.eatContextual(118)&&(s.readonly=!0),this.expect(0),s.typeParameter=this.tsParseMappedTypeParameter(),s.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(s.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(s.optional=!0),s.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(s,"TSMappedType")}tsParseTupleType(){let s=this.startNode();s.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let o=!1,g=null;return s.elementTypes.forEach(D=>{var B;let{type:H}=D;!o||H==="TSRestType"||H==="TSOptionalType"||H==="TSNamedTupleMember"&&D.optional||this.raise(He.OptionalTypeBeforeRequired,{at:D}),o=o||H==="TSNamedTupleMember"&&D.optional||H==="TSOptionalType",H==="TSRestType"&&(H=(D=D.typeAnnotation).type);let Z=H==="TSNamedTupleMember";g=(B=g)!=null?B:Z,g!==Z&&this.raise(He.MixedLabeledAndUnlabeledElements,{at:D})}),this.finishNode(s,"TSTupleType")}tsParseTupleElementType(){let{start:s,startLoc:o}=this.state,g=this.eat(21),D=this.tsParseType(),B=this.eat(17);if(this.eat(14)){let H=this.startNodeAtNode(D);H.optional=B,D.type!=="TSTypeReference"||D.typeParameters||D.typeName.type!=="Identifier"?(this.raise(He.InvalidTupleMemberLabel,{at:D}),H.label=D):H.label=D.typeName,H.elementType=this.tsParseType(),D=this.finishNode(H,"TSNamedTupleMember")}else if(B){let H=this.startNodeAtNode(D);H.typeAnnotation=D,D=this.finishNode(H,"TSOptionalType")}if(g){let H=this.startNodeAt(s,o);H.typeAnnotation=D,D=this.finishNode(H,"TSRestType")}return D}tsParseParenthesizedType(){let s=this.startNode();return this.expect(10),s.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(s,"TSParenthesizedType")}tsParseFunctionOrConstructorType(s,o){let g=this.startNode();return s==="TSConstructorType"&&(g.abstract=!!o,o&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,g)),this.finishNode(g,s)}tsParseLiteralTypeNode(){let s=this.startNode();return s.literal=(()=>{switch(this.state.type){case 130:case 131:case 129:case 85:case 86:return this.parseExprAtom();default:throw this.unexpected()}})(),this.finishNode(s,"TSLiteralType")}tsParseTemplateLiteralType(){let s=this.startNode();return s.literal=this.parseTemplate(!1),this.finishNode(s,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let s=this.tsParseThisTypeNode();return this.isContextual(113)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(s):s}tsParseNonArrayType(){switch(this.state.type){case 129:case 130:case 131:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let s=this.startNode(),o=this.lookahead();if(o.type!==130&&o.type!==131)throw this.unexpected();return s.literal=this.parseMaybeUnary(),this.finishNode(s,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:s}=this.state;if(K(s)||s===88||s===84){let o=s===88?"TSVoidKeyword":s===84?"TSNullKeyword":function(g){switch(g){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(o!==void 0&&this.lookaheadCharCode()!==46){let g=this.startNode();return this.next(),this.finishNode(g,o)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let s=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let o=this.startNodeAtNode(s);o.elementType=s,this.expect(3),s=this.finishNode(o,"TSArrayType")}else{let o=this.startNodeAtNode(s);o.objectType=s,o.indexType=this.tsParseType(),this.expect(3),s=this.finishNode(o,"TSIndexedAccessType")}return s}tsParseTypeOperator(){let s=this.startNode(),o=this.state.value;return this.next(),s.operator=o,s.typeAnnotation=this.tsParseTypeOperatorOrHigher(),o==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(s),this.finishNode(s,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(s){switch(s.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(He.UnexpectedReadonly,{at:s})}}tsParseInferType(){let s=this.startNode();this.expectContextual(112);let o=this.startNode();return o.name=this.tsParseTypeParameterName(),o.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),s.typeParameter=this.finishNode(o,"TSTypeParameter"),this.finishNode(s,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let s=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return s}}tsParseTypeOperatorOrHigher(){var s;return(s=this.state.type)>=117&&s<=119&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(112)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(s,o,g){let D=this.startNode(),B=this.eat(g),H=[];do H.push(o());while(this.eat(g));return H.length!==1||B?(D.types=H,this.finishNode(D,s)):H[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(K(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:s}=this.state,o=s.length;try{return this.parseObjectLike(8,!0),s.length===o}catch{return!1}}if(this.match(0)){this.next();let{errors:s}=this.state,o=s.length;try{return this.parseBindingList(3,93,!0),s.length===o}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(s){return this.tsInType(()=>{let o=this.startNode();this.expect(s);let g=this.startNode(),D=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(D&&this.match(78)){let Z=this.tsParseThisTypeOrThisTypePredicate();return Z.type==="TSThisType"?(g.parameterName=Z,g.asserts=!0,g.typeAnnotation=null,Z=this.finishNode(g,"TSTypePredicate")):(this.resetStartLocationFromNode(Z,g),Z.asserts=!0),o.typeAnnotation=Z,this.finishNode(o,"TSTypeAnnotation")}let B=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!B)return D?(g.parameterName=this.parseIdentifier(),g.asserts=D,g.typeAnnotation=null,o.typeAnnotation=this.finishNode(g,"TSTypePredicate"),this.finishNode(o,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,o);let H=this.tsParseTypeAnnotation(!1);return g.parameterName=B,g.typeAnnotation=H,g.asserts=D,o.typeAnnotation=this.finishNode(g,"TSTypePredicate"),this.finishNode(o,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(14)?this.tsParseTypeOrTypePredicateAnnotation(14):void 0}tsTryParseTypeAnnotation(){return this.match(14)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let s=this.parseIdentifier();if(this.isContextual(113)&&!this.hasPrecedingLineBreak())return this.next(),s}tsParseTypePredicateAsserts(){if(this.state.type!==106)return!1;let s=this.state.containsEsc;return this.next(),!(!K(this.state.type)&&!this.match(78))&&(s&&this.raise(f.InvalidEscapedReservedWord,{at:this.state.lastTokStartLoc,reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(s=!0,o=this.startNode()){return this.tsInType(()=>{s&&this.expect(14),o.typeAnnotation=this.tsParseType()}),this.finishNode(o,"TSTypeAnnotation")}tsParseType(){it(this.state.inType);let s=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return s;let o=this.startNodeAtNode(s);return o.checkType=s,o.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),o.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),o.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(o,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(120)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(He.ReservedTypeAssertion,{at:this.state.startLoc});let s=this.startNode(),o=this.tsTryNextParseConstantContext();return s.typeAnnotation=o||this.tsNextThenParseType(),this.expect(48),s.expression=this.parseMaybeUnary(),this.finishNode(s,"TSTypeAssertion")}tsParseHeritageClause(s){let o=this.state.startLoc,g=this.tsParseDelimitedList("HeritageClauseElement",()=>{let D=this.startNode();return D.expression=this.tsParseEntityName(),this.match(47)&&(D.typeParameters=this.tsParseTypeArguments()),this.finishNode(D,"TSExpressionWithTypeArguments")});return g.length||this.raise(He.EmptyHeritageClauseType,{at:o,token:s}),g}tsParseInterfaceDeclaration(s,o={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(125),o.declare&&(s.declare=!0),K(this.state.type)?(s.id=this.parseIdentifier(),this.checkIdentifier(s.id,130)):(s.id=null,this.raise(He.MissingInterfaceName,{at:this.state.startLoc})),s.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(81)&&(s.extends=this.tsParseHeritageClause("extends"));let g=this.startNode();return g.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),s.body=this.finishNode(g,"TSInterfaceBody"),this.finishNode(s,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(s){return s.id=this.parseIdentifier(),this.checkIdentifier(s.id,2),s.typeAnnotation=this.tsInType(()=>{if(s.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(29),this.isContextual(111)&&this.lookahead().type!==16){let o=this.startNode();return this.next(),this.finishNode(o,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(s,"TSTypeAliasDeclaration")}tsInNoContext(s){let o=this.state.context;this.state.context=[o[0]];try{return s()}finally{this.state.context=o}}tsInType(s){let o=this.state.inType;this.state.inType=!0;try{return s()}finally{this.state.inType=o}}tsInDisallowConditionalTypesContext(s){let o=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return s()}finally{this.state.inDisallowConditionalTypesContext=o}}tsInAllowConditionalTypesContext(s){let o=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return s()}finally{this.state.inDisallowConditionalTypesContext=o}}tsEatThenParseType(s){return this.match(s)?this.tsNextThenParseType():void 0}tsExpectThenParseType(s){return this.tsDoThenParseType(()=>this.expect(s))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(s){return this.tsInType(()=>(s(),this.tsParseType()))}tsParseEnumMember(){let s=this.startNode();return s.id=this.match(129)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(29)&&(s.initializer=this.parseMaybeAssignAllowIn()),this.finishNode(s,"TSEnumMember")}tsParseEnumDeclaration(s,o={}){return o.const&&(s.const=!0),o.declare&&(s.declare=!0),this.expectContextual(122),s.id=this.parseIdentifier(),this.checkIdentifier(s.id,s.const?779:267),this.expect(5),s.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(s,"TSEnumDeclaration")}tsParseModuleBlock(){let s=this.startNode();return this.scope.enter(0),this.expect(5),this.parseBlockOrModuleBlockBody(s.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(s,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(s,o=!1){if(s.id=this.parseIdentifier(),o||this.checkIdentifier(s.id,1024),this.eat(16)){let g=this.startNode();this.tsParseModuleOrNamespaceDeclaration(g,!0),s.body=g}else this.scope.enter(256),this.prodParam.enter(0),s.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(s,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(s){return this.isContextual(109)?(s.global=!0,s.id=this.parseIdentifier()):this.match(129)?s.id=this.parseExprAtom():this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),s.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(s,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(s,o){s.isExport=o||!1,s.id=this.parseIdentifier(),this.checkIdentifier(s.id,9),this.expect(29);let g=this.tsParseModuleReference();return s.importKind==="type"&&g.type!=="TSExternalModuleReference"&&this.raise(He.ImportAliasHasImportType,{at:g}),s.moduleReference=g,this.semicolon(),this.finishNode(s,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(116)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let s=this.startNode();if(this.expectContextual(116),this.expect(10),!this.match(129))throw this.unexpected();return s.expression=this.parseExprAtom(),this.expect(11),this.finishNode(s,"TSExternalModuleReference")}tsLookAhead(s){let o=this.state.clone(),g=s();return this.state=o,g}tsTryParseAndCatch(s){let o=this.tryParse(g=>s()||g());if(!o.aborted&&o.node)return o.error&&(this.state=o.failState),o.node}tsTryParse(s){let o=this.state.clone(),g=s();return g!==void 0&&g!==!1?g:void(this.state=o)}tsTryParseDeclare(s){if(this.isLineTerminator())return;let o,g=this.state.type;return this.isContextual(99)&&(g=74,o="let"),this.tsInAmbientContext(()=>{if(g===68)return s.declare=!0,this.parseFunctionStatement(s,!1,!0);if(g===80)return s.declare=!0,this.parseClass(s,!0,!1);if(g===122)return this.tsParseEnumDeclaration(s,{declare:!0});if(g===109)return this.tsParseAmbientExternalModuleDeclaration(s);if(g===75||g===74)return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(s,{const:!0,declare:!0})):(s.declare=!0,this.parseVarStatement(s,o||this.state.value,!0));if(g===125){let D=this.tsParseInterfaceDeclaration(s,{declare:!0});if(D)return D}return K(g)?this.tsParseDeclaration(s,this.state.value,!0):void 0})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)}tsParseExpressionStatement(s,o){switch(o.name){case"declare":{let g=this.tsTryParseDeclare(s);if(g)return g.declare=!0,g;break}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let g=s;return g.global=!0,g.id=o,g.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(g,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(s,o.name,!1)}}tsParseDeclaration(s,o,g){switch(o){case"abstract":if(this.tsCheckLineTerminator(g)&&(this.match(80)||K(this.state.type)))return this.tsParseAbstractDeclaration(s);break;case"module":if(this.tsCheckLineTerminator(g)){if(this.match(129))return this.tsParseAmbientExternalModuleDeclaration(s);if(K(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(s)}break;case"namespace":if(this.tsCheckLineTerminator(g)&&K(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(s);break;case"type":if(this.tsCheckLineTerminator(g)&&K(this.state.type))return this.tsParseTypeAliasDeclaration(s)}}tsCheckLineTerminator(s){return s?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(s,o){if(!this.match(47))return;let g=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let D=this.tsTryParseAndCatch(()=>{let B=this.startNodeAt(s,o);return B.typeParameters=this.tsParseTypeParameters(),super.parseFunctionParams(B),B.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),B});return this.state.maybeInArrowParameters=g,D?this.parseArrowExpression(D,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let s=this.startNode();return s.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),s.params.length===0&&this.raise(He.EmptyTypeArguments,{at:s}),this.expect(48),this.finishNode(s,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(s=this.state.type)>=120&&s<=126;var s}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(s,o){let g=this.state.start,D=this.state.startLoc,B,H=!1,Z=!1;if(s!==void 0){let Ne={};this.tsParseModifiers({modified:Ne,allowedModifiers:["public","private","protected","override","readonly"]}),B=Ne.accessibility,Z=Ne.override,H=Ne.readonly,s===!1&&(B||H||Z)&&this.raise(He.UnexpectedParameterModifier,{at:D})}let oe=this.parseMaybeDefault();this.parseAssignableListItemTypes(oe);let me=this.parseMaybeDefault(oe.start,oe.loc.start,oe);if(B||H||Z){let Ne=this.startNodeAt(g,D);return o.length&&(Ne.decorators=o),B&&(Ne.accessibility=B),H&&(Ne.readonly=H),Z&&(Ne.override=Z),me.type!=="Identifier"&&me.type!=="AssignmentPattern"&&this.raise(He.UnsupportedParameterPropertyKind,{at:Ne}),Ne.parameter=me,this.finishNode(Ne,"TSParameterProperty")}return o.length&&(oe.decorators=o),me}isSimpleParameter(s){return s.type==="TSParameterProperty"&&super.isSimpleParameter(s.parameter)||super.isSimpleParameter(s)}parseFunctionBodyAndFinish(s,o,g=!1){this.match(14)&&(s.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let D=o==="FunctionDeclaration"?"TSDeclareFunction":o==="ClassMethod"||o==="ClassPrivateMethod"?"TSDeclareMethod":void 0;D&&!this.match(5)&&this.isLineTerminator()?this.finishNode(s,D):D==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(He.DeclareFunctionHasImplementation,{at:s}),s.declare)?super.parseFunctionBodyAndFinish(s,D,g):super.parseFunctionBodyAndFinish(s,o,g)}registerFunctionStatementId(s){!s.body&&s.id?this.checkIdentifier(s.id,1024):super.registerFunctionStatementId(...arguments)}tsCheckForInvalidTypeCasts(s){s.forEach(o=>{(o==null?void 0:o.type)==="TSTypeCastExpression"&&this.raise(He.UnexpectedTypeAnnotation,{at:o.typeAnnotation})})}toReferencedList(s,o){return this.tsCheckForInvalidTypeCasts(s),s}parseArrayLike(...s){let o=super.parseArrayLike(...s);return o.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(o.elements),o}parseSubscript(s,o,g,D,B){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let Z=this.startNodeAt(o,g);return Z.expression=s,this.finishNode(Z,"TSNonNullExpression")}let H=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(D)return B.stop=!0,s;B.optionalChainMember=H=!0,this.next()}if(this.match(47)||this.match(51)){let Z,oe=this.tsTryParseAndCatch(()=>{if(!D&&this.atPossibleAsyncArrow(s)){let ze=this.tsTryParseGenericAsyncArrowFunction(o,g);if(ze)return ze}let me=this.tsParseTypeArgumentsInExpression();if(!me)throw this.unexpected();if(H&&!this.match(10))throw Z=this.state.curPosition(),this.unexpected();if(ye(this.state.type)){let ze=this.parseTaggedTemplateExpression(s,o,g,B);return ze.typeParameters=me,ze}if(!D&&this.eat(10)){let ze=this.startNodeAt(o,g);return ze.callee=s,ze.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(ze.arguments),ze.typeParameters=me,B.optionalChainMember&&(ze.optional=H),this.finishCallExpression(ze,B.optionalChainMember)}if(bt(this.state.type)&&this.state.type!==10)throw this.unexpected();let Ne=this.startNodeAt(o,g);return Ne.expression=s,Ne.typeParameters=me,this.finishNode(Ne,"TSInstantiationExpression")});if(Z&&this.unexpected(Z,10),oe)return oe}return super.parseSubscript(s,o,g,D,B)}parseNewCallee(s){var o;super.parseNewCallee(s);let{callee:g}=s;g.type!=="TSInstantiationExpression"||(o=g.extra)!=null&&o.parenthesized||(s.typeParameters=g.typeParameters,s.callee=g.expression)}parseExprOp(s,o,g,D){if(Ee(58)>D&&!this.hasPrecedingLineBreak()&&this.isContextual(93)){let B=this.startNodeAt(o,g);B.expression=s;let H=this.tsTryNextParseConstantContext();return B.typeAnnotation=H||this.tsNextThenParseType(),this.finishNode(B,"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(B,o,g,D)}return super.parseExprOp(s,o,g,D)}checkReservedWord(s,o,g,D){this.state.isAmbientContext||super.checkReservedWord(s,o,g,D)}checkDuplicateExports(){}parseImport(s){if(s.importKind="value",K(this.state.type)||this.match(55)||this.match(5)){let g=this.lookahead();if(this.isContextual(126)&&g.type!==12&&g.type!==97&&g.type!==29&&(s.importKind="type",this.next(),g=this.lookahead()),K(this.state.type)&&g.type===29)return this.tsParseImportEqualsDeclaration(s)}let o=super.parseImport(s);return o.importKind==="type"&&o.specifiers.length>1&&o.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(He.TypeImportCannotSpecifyDefaultAndNamed,{at:o}),o}parseExport(s){if(this.match(83))return this.next(),this.isContextual(126)&&this.lookaheadCharCode()!==61?(s.importKind="type",this.next()):s.importKind="value",this.tsParseImportEqualsDeclaration(s,!0);if(this.eat(29)){let o=s;return o.expression=this.parseExpression(),this.semicolon(),this.finishNode(o,"TSExportAssignment")}if(this.eatContextual(93)){let o=s;return this.expectContextual(124),o.id=this.parseIdentifier(),this.semicolon(),this.finishNode(o,"TSNamespaceExportDeclaration")}return this.isContextual(126)&&this.lookahead().type===5?(this.next(),s.exportKind="type"):s.exportKind="value",super.parseExport(s)}isAbstractClass(){return this.isContextual(120)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let s=this.startNode();return this.next(),s.abstract=!0,this.parseClass(s,!0,!0),s}if(this.match(125)){let s=this.tsParseInterfaceDeclaration(this.startNode());if(s)return s}return super.parseExportDefaultExpression()}parseVarStatement(s,o,g=!1){let{isAmbientContext:D}=this.state,B=super.parseVarStatement(s,o,g||D);if(!D)return B;for(let{id:H,init:Z}of B.declarations)Z&&(o!=="const"||H.typeAnnotation?this.raise(He.InitializerNotAllowedInAmbientContext,{at:Z}):Z.type!=="StringLiteral"&&Z.type!=="BooleanLiteral"&&Z.type!=="NumericLiteral"&&Z.type!=="BigIntLiteral"&&(Z.type!=="TemplateLiteral"||Z.expressions.length>0)&&!ur(Z)&&this.raise(He.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,{at:Z}));return B}parseStatementContent(s,o){if(this.match(75)&&this.isLookaheadContextual("enum")){let g=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(g,{const:!0})}if(this.isContextual(122))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(125)){let g=this.tsParseInterfaceDeclaration(this.startNode());if(g)return g}return super.parseStatementContent(s,o)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(s,o){return o.some(g=>St(g)?s.accessibility===g:!!s[g])}tsIsStartOfStaticBlocks(){return this.isContextual(104)&&this.lookaheadCharCode()===123}parseClassMember(s,o,g){let D=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({modified:o,allowedModifiers:D,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:He.InvalidModifierOnTypeParameterPositions});let B=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(o,D)&&this.raise(He.StaticBlockCannotHaveModifier,{at:this.state.curPosition()}),this.parseClassStaticBlock(s,o)):this.parseClassMemberWithIsStatic(s,o,g,!!o.static)};o.declare?this.tsInAmbientContext(B):B()}parseClassMemberWithIsStatic(s,o,g,D){let B=this.tsTryParseIndexSignature(o);if(B)return s.body.push(B),o.abstract&&this.raise(He.IndexSignatureHasAbstract,{at:o}),o.accessibility&&this.raise(He.IndexSignatureHasAccessibility,{at:o,modifier:o.accessibility}),o.declare&&this.raise(He.IndexSignatureHasDeclare,{at:o}),void(o.override&&this.raise(He.IndexSignatureHasOverride,{at:o}));!this.state.inAbstractClass&&o.abstract&&this.raise(He.NonAbstractClassHasAbstractMethod,{at:o}),o.override&&(g.hadSuperClass||this.raise(He.OverrideNotInSubClass,{at:o})),super.parseClassMemberWithIsStatic(s,o,g,D)}parsePostMemberNameModifiers(s){this.eat(17)&&(s.optional=!0),s.readonly&&this.match(10)&&this.raise(He.ClassMethodHasReadonly,{at:s}),s.declare&&this.match(10)&&this.raise(He.ClassMethodHasDeclare,{at:s})}parseExpressionStatement(s,o){return(o.type==="Identifier"?this.tsParseExpressionStatement(s,o):void 0)||super.parseExpressionStatement(s,o)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(s,o,g,D){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(s,o,g,D);let B=this.tryParse(()=>super.parseConditional(s,o,g));return B.node?(B.error&&(this.state=B.failState),B.node):(B.error&&super.setOptionalParametersError(D,B.error),s)}parseParenItem(s,o,g){if(s=super.parseParenItem(s,o,g),this.eat(17)&&(s.optional=!0,this.resetEndLocation(s)),this.match(14)){let D=this.startNodeAt(o,g);return D.expression=s,D.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(D,"TSTypeCastExpression")}return s}parseExportDeclaration(s){if(!this.state.isAmbientContext&&this.isContextual(121))return this.tsInAmbientContext(()=>this.parseExportDeclaration(s));let o=this.state.start,g=this.state.startLoc,D=this.eatContextual(121);if(D&&(this.isContextual(121)||!this.shouldParseExportDeclaration()))throw this.raise(He.ExpectedAmbientAfterExportDeclare,{at:this.state.startLoc});let B=K(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(s);return B?((B.type==="TSInterfaceDeclaration"||B.type==="TSTypeAliasDeclaration"||D)&&(s.exportKind="type"),D&&(this.resetStartLocation(B,o,g),B.declare=!0),B):null}parseClassId(s,o,g){if((!o||g)&&this.isContextual(110))return;super.parseClassId(s,o,g,s.declare?1024:139);let D=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));D&&(s.typeParameters=D)}parseClassPropertyAnnotation(s){!s.optional&&this.eat(35)&&(s.definite=!0);let o=this.tsTryParseTypeAnnotation();o&&(s.typeAnnotation=o)}parseClassProperty(s){if(this.parseClassPropertyAnnotation(s),this.state.isAmbientContext&&this.match(29)&&this.raise(He.DeclareClassFieldHasInitializer,{at:this.state.startLoc}),s.abstract&&this.match(29)){let{key:o}=s;this.raise(He.AbstractPropertyHasInitializer,{at:this.state.startLoc,propertyName:o.type!=="Identifier"||s.computed?`[${this.input.slice(o.start,o.end)}]`:o.name})}return super.parseClassProperty(s)}parseClassPrivateProperty(s){return s.abstract&&this.raise(He.PrivateElementHasAbstract,{at:s}),s.accessibility&&this.raise(He.PrivateElementHasAccessibility,{at:s,modifier:s.accessibility}),this.parseClassPropertyAnnotation(s),super.parseClassPrivateProperty(s)}pushClassMethod(s,o,g,D,B,H){let Z=this.tsTryParseTypeParameters();Z&&B&&this.raise(He.ConstructorHasTypeParameters,{at:Z});let{declare:oe=!1,kind:me}=o;!oe||me!=="get"&&me!=="set"||this.raise(He.DeclareAccessor,{at:o,kind:me}),Z&&(o.typeParameters=Z),super.pushClassMethod(s,o,g,D,B,H)}pushClassPrivateMethod(s,o,g,D){let B=this.tsTryParseTypeParameters();B&&(o.typeParameters=B),super.pushClassPrivateMethod(s,o,g,D)}declareClassPrivateMethodInScope(s,o){s.type!=="TSDeclareMethod"&&(s.type!=="MethodDefinition"||s.value.body)&&super.declareClassPrivateMethodInScope(s,o)}parseClassSuper(s){super.parseClassSuper(s),s.superClass&&(this.match(47)||this.match(51))&&(s.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(110)&&(s.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(s,...o){let g=this.tsTryParseTypeParameters();g&&(s.typeParameters=g),super.parseObjPropValue(s,...o)}parseFunctionParams(s,o){let g=this.tsTryParseTypeParameters();g&&(s.typeParameters=g),super.parseFunctionParams(s,o)}parseVarId(s,o){super.parseVarId(s,o),s.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(s.definite=!0);let g=this.tsTryParseTypeAnnotation();g&&(s.id.typeAnnotation=g,this.resetEndLocation(s.id))}parseAsyncArrowFromCallExpression(s,o){return this.match(14)&&(s.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(s,o)}parseMaybeAssign(...s){var o,g,D,B,H,Z,oe;let me,Ne,ze,ut;if(this.hasPlugin("jsx")&&(this.match(138)||this.match(47))){if(me=this.state.clone(),Ne=this.tryParse(()=>super.parseMaybeAssign(...s),me),!Ne.error)return Ne.node;let{context:Ot}=this.state,kt=Ot[Ot.length-1];kt!==R.j_oTag&&kt!==R.j_expr||Ot.pop()}if(!((o=Ne)!=null&&o.error||this.match(47)))return super.parseMaybeAssign(...s);me&&me!==this.state||(me=this.state.clone());let dt=this.tryParse(Ot=>{var kt,Wt;ut=this.tsParseTypeParameters();let Ht=super.parseMaybeAssign(...s);return(Ht.type!=="ArrowFunctionExpression"||(kt=Ht.extra)!=null&&kt.parenthesized)&&Ot(),((Wt=ut)==null?void 0:Wt.params.length)!==0&&this.resetStartLocationFromNode(Ht,ut),Ht.typeParameters=ut,Ht},me);if(!dt.error&&!dt.aborted)return ut&&this.reportReservedArrowTypeParam(ut),dt.node;if(!Ne&&(it(!this.hasPlugin("jsx")),ze=this.tryParse(()=>super.parseMaybeAssign(...s),me),!ze.error))return ze.node;if((g=Ne)!=null&&g.node)return this.state=Ne.failState,Ne.node;if(dt.node)return this.state=dt.failState,ut&&this.reportReservedArrowTypeParam(ut),dt.node;if((D=ze)!=null&&D.node)return this.state=ze.failState,ze.node;throw(B=Ne)!=null&&B.thrown?Ne.error:dt.thrown?dt.error:(H=ze)!=null&&H.thrown?ze.error:((Z=Ne)==null?void 0:Z.error)||dt.error||((oe=ze)==null?void 0:oe.error)}reportReservedArrowTypeParam(s){var o;s.params.length!==1||(o=s.extra)!=null&&o.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(He.ReservedArrowTypeParam,{at:s})}parseMaybeUnary(s){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(s)}parseArrow(s){if(this.match(14)){let o=this.tryParse(g=>{let D=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||g(),D});if(o.aborted)return;o.thrown||(o.error&&(this.state=o.failState),s.returnType=o.node)}return super.parseArrow(s)}parseAssignableListItemTypes(s){this.eat(17)&&(s.type==="Identifier"||this.state.isAmbientContext||this.state.inType||this.raise(He.PatternIsOptional,{at:s}),s.optional=!0);let o=this.tsTryParseTypeAnnotation();return o&&(s.typeAnnotation=o),this.resetEndLocation(s),s}isAssignable(s,o){switch(s.type){case"TSTypeCastExpression":return this.isAssignable(s.expression,o);case"TSParameterProperty":return!0;default:return super.isAssignable(s,o)}}toAssignable(s,o=!1){switch(s.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(s,o);break;case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":o?this.expressionScope.recordArrowParemeterBindingError(He.UnexpectedTypeCastInParameter,{at:s}):this.raise(He.UnexpectedTypeCastInParameter,{at:s}),this.toAssignable(s.expression,o);break;case"AssignmentExpression":o||s.left.type!=="TSTypeCastExpression"||(s.left=this.typeCastToParameter(s.left));default:super.toAssignable(s,o)}}toAssignableParenthesizedExpression(s,o){switch(s.expression.type){case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(s.expression,o);break;default:super.toAssignable(s,o)}}checkToRestConversion(s,o){switch(s.type){case"TSAsExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(s.expression,!1);break;default:super.checkToRestConversion(s,o)}}isValidLVal(s,o,g){return D={TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(g!==64||!o)&&["expression",!0],TSTypeAssertion:(g!==64||!o)&&["expression",!0]},B=s,Object.hasOwnProperty.call(D,B)&&D[B]||super.isValidLVal(s,o,g);var D,B}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(s){if(this.match(47)||this.match(51)){let o=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let g=super.parseMaybeDecoratorArguments(s);return g.typeParameters=o,g}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(s)}checkCommaAfterRest(s){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===s?(this.next(),!1):super.checkCommaAfterRest(s)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(...s){let o=super.parseMaybeDefault(...s);return o.type==="AssignmentPattern"&&o.typeAnnotation&&o.right.start<o.typeAnnotation.start&&this.raise(He.TypeAnnotationAfterAssign,{at:o.typeAnnotation}),o}getTokenFromCode(s){if(this.state.inType){if(s===62)return this.finishOp(48,1);if(s===60)return this.finishOp(47,1)}return super.getTokenFromCode(s)}reScan_lt_gt(){let{type:s}=this.state;s===47?(this.state.pos-=1,this.readToken_lt()):s===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:s}=this.state;return s===51?(this.state.pos-=2,this.finishOp(47,1),47):s}toAssignableList(s){for(let o=0;o<s.length;o++){let g=s[o];(g==null?void 0:g.type)==="TSTypeCastExpression"&&(s[o]=this.typeCastToParameter(g))}super.toAssignableList(...arguments)}typeCastToParameter(s){return s.expression.typeAnnotation=s.typeAnnotation,this.resetEndLocation(s.expression,s.typeAnnotation.loc.end),s.expression}shouldParseArrow(s){return this.match(14)?s.every(o=>this.isAssignable(o,!0)):super.shouldParseArrow(s)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(s){if(this.match(47)||this.match(51)){let o=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());o&&(s.typeParameters=o)}return super.jsxParseOpeningElementAfterName(s)}getGetterSetterExpectedParamCount(s){let o=super.getGetterSetterExpectedParamCount(s),g=this.getObjectOrClassMethodParams(s)[0];return g&&this.isThisParam(g)?o+1:o}parseCatchClauseParam(){let s=super.parseCatchClauseParam(),o=this.tsTryParseTypeAnnotation();return o&&(s.typeAnnotation=o,this.resetEndLocation(s)),s}tsInAmbientContext(s){let o=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return s()}finally{this.state.isAmbientContext=o}}parseClass(s,...o){let g=this.state.inAbstractClass;this.state.inAbstractClass=!!s.abstract;try{return super.parseClass(s,...o)}finally{this.state.inAbstractClass=g}}tsParseAbstractDeclaration(s){if(this.match(80))return s.abstract=!0,this.parseClass(s,!0,!1);if(this.isContextual(125)){if(!this.hasFollowingLineBreak())return s.abstract=!0,this.raise(He.NonClassMethodPropertyHasAbstractModifer,{at:s}),this.tsParseInterfaceDeclaration(s)}else this.unexpected(null,80)}parseMethod(...s){let o=super.parseMethod(...s);if(o.abstract&&(this.hasPlugin("estree")?!!o.value.body:!!o.body)){let{key:g}=o;this.raise(He.AbstractMethodHasImplementation,{at:o,methodName:g.type!=="Identifier"||o.computed?`[${this.input.slice(g.start,g.end)}]`:g.name})}return o}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(s,o,g,D){return!o&&D?(this.parseTypeOnlyImportExportSpecifier(s,!1,g),this.finishNode(s,"ExportSpecifier")):(s.exportKind="value",super.parseExportSpecifier(s,o,g,D))}parseImportSpecifier(s,o,g,D){return!o&&D?(this.parseTypeOnlyImportExportSpecifier(s,!0,g),this.finishNode(s,"ImportSpecifier")):(s.importKind="value",super.parseImportSpecifier(s,o,g,D))}parseTypeOnlyImportExportSpecifier(s,o,g){let D=o?"imported":"local",B=o?"local":"exported",H,Z=s[D],oe=!1,me=!0,Ne=Z.loc.start;if(this.isContextual(93)){let ze=this.parseIdentifier();if(this.isContextual(93)){let ut=this.parseIdentifier();z(this.state.type)?(oe=!0,Z=ze,H=o?this.parseIdentifier():this.parseModuleExportName(),me=!1):(H=ut,me=!1)}else z(this.state.type)?(me=!1,H=o?this.parseIdentifier():this.parseModuleExportName()):(oe=!0,Z=ze)}else z(this.state.type)&&(oe=!0,o?(Z=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(Z.name,Z.loc.start,!0,!0)):Z=this.parseModuleExportName());oe&&g&&this.raise(o?He.TypeModifierIsUsedInTypeImports:He.TypeModifierIsUsedInTypeExports,{at:Ne}),s[D]=Z,s[B]=H,s[o?"importKind":"exportKind"]=oe?"type":"value",me&&this.eatContextual(93)&&(s[B]=o?this.parseIdentifier():this.parseModuleExportName()),s[B]||(s[B]=ar(s[D])),o&&this.checkIdentifier(s[B],9)}},v8intrinsic:W=>class extends W{parseV8Intrinsic(){if(this.match(54)){let s=this.state.startLoc,o=this.startNode();if(this.next(),K(this.state.type)){let g=this.parseIdentifierName(this.state.start),D=this.createIdentifier(o,g);if(D.type="V8IntrinsicIdentifier",this.match(10))return D}this.unexpected(s)}}parseExprAtom(){return this.parseV8Intrinsic()||super.parseExprAtom(...arguments)}},placeholders:W=>class extends W{parsePlaceholder(s){if(this.match(140)){let o=this.startNode();return this.next(),this.assertNoSpace(),o.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(140),this.finishPlaceholder(o,s)}}finishPlaceholder(s,o){let g=!(!s.expectedNode||s.type!=="Placeholder");return s.expectedNode=o,g?s:this.finishNode(s,"Placeholder")}getTokenFromCode(s){return s===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(140,2):super.getTokenFromCode(...arguments)}parseExprAtom(){return this.parsePlaceholder("Expression")||super.parseExprAtom(...arguments)}parseIdentifier(){return this.parsePlaceholder("Identifier")||super.parseIdentifier(...arguments)}checkReservedWord(s){s!==void 0&&super.checkReservedWord(...arguments)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom(...arguments)}isValidLVal(s,...o){return s==="Placeholder"||super.isValidLVal(s,...o)}toAssignable(s){s&&s.type==="Placeholder"&&s.expectedNode==="Expression"?s.expectedNode="Pattern":super.toAssignable(...arguments)}isLet(s){return super.isLet(s)?!0:!this.isContextual(99)||s?!1:this.lookahead().type===140}verifyBreakContinue(s){s.label&&s.label.type==="Placeholder"||super.verifyBreakContinue(...arguments)}parseExpressionStatement(s,o){if(o.type!=="Placeholder"||o.extra&&o.extra.parenthesized)return super.parseExpressionStatement(...arguments);if(this.match(14)){let g=s;return g.label=this.finishPlaceholder(o,"Identifier"),this.next(),g.body=this.parseStatement("label"),this.finishNode(g,"LabeledStatement")}return this.semicolon(),s.name=o.name,this.finishPlaceholder(s,"Statement")}parseBlock(){return this.parsePlaceholder("BlockStatement")||super.parseBlock(...arguments)}parseFunctionId(){return this.parsePlaceholder("Identifier")||super.parseFunctionId(...arguments)}parseClass(s,o,g){let D=o?"ClassDeclaration":"ClassExpression";this.next(),this.takeDecorators(s);let B=this.state.strict,H=this.parsePlaceholder("Identifier");if(H){if(!(this.match(81)||this.match(140)||this.match(5))){if(g||!o)return s.id=null,s.body=this.finishPlaceholder(H,"ClassBody"),this.finishNode(s,D);throw this.raise(Nr.ClassNameIsRequired,{at:this.state.startLoc})}s.id=H}else this.parseClassId(s,o,g);return this.parseClassSuper(s),s.body=this.parsePlaceholder("ClassBody")||this.parseClassBody(!!s.superClass,B),this.finishNode(s,D)}parseExport(s){let o=this.parsePlaceholder("Identifier");if(!o)return super.parseExport(...arguments);if(!this.isContextual(97)&&!this.match(12))return s.specifiers=[],s.source=null,s.declaration=this.finishPlaceholder(o,"Declaration"),this.finishNode(s,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let g=this.startNode();return g.exported=o,s.specifiers=[this.finishNode(g,"ExportDefaultSpecifier")],super.parseExport(s)}isExportDefaultSpecifier(){if(this.match(65)){let s=this.nextTokenStart();if(this.isUnparsedContextual(s,"from")&&this.input.startsWith(pe(140),this.nextTokenStartSince(s+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(s){return!!(s.specifiers&&s.specifiers.length>0)||super.maybeParseExportDefaultSpecifier(...arguments)}checkExport(s){let{specifiers:o}=s;o!=null&&o.length&&(s.specifiers=o.filter(g=>g.exported.type==="Placeholder")),super.checkExport(s),s.specifiers=o}parseImport(s){let o=this.parsePlaceholder("Identifier");if(!o)return super.parseImport(...arguments);if(s.specifiers=[],!this.isContextual(97)&&!this.match(12))return s.source=this.finishPlaceholder(o,"StringLiteral"),this.semicolon(),this.finishNode(s,"ImportDeclaration");let g=this.startNodeAtNode(o);return g.local=o,this.finishNode(g,"ImportDefaultSpecifier"),s.specifiers.push(g),this.eat(12)&&(this.maybeParseStarImportSpecifier(s)||this.parseNamedImportSpecifiers(s)),this.expectContextual(97),s.source=this.parseImportSource(),this.semicolon(),this.finishNode(s,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource(...arguments)}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(Nr.UnexpectedSpace,{at:this.state.lastTokEndLoc})}}},oi=Object.keys(kn),Zr={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0},ji=W=>W.type==="ParenthesizedExpression"?ji(W.expression):W,li={kind:"loop"},Ls={kind:"switch"},Ms=/[\uD800-\uDFFF]/u,Ln=/in(?:stanceof)?/y;class Fi extends class extends class extends class extends class extends class extends class extends class extends class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(s){if(typeof s=="string")return this.plugins.has(s);{let[o,g]=s;if(!this.hasPlugin(o))return!1;let D=this.plugins.get(o);for(let B of Object.keys(g))if((D==null?void 0:D[B])!==g[B])return!1;return!0}}getPluginOption(s,o){var g;return(g=this.plugins.get(s))==null?void 0:g[o]}}{addComment(s){this.filename&&(s.loc.filename=this.filename),this.state.comments.push(s)}processComment(s){let{commentStack:o}=this.state,g=o.length;if(g===0)return;let D=g-1,B=o[D];B.start===s.end&&(B.leadingNode=s,D--);let{start:H}=s;for(;D>=0;D--){let Z=o[D],oe=Z.end;if(!(oe>H)){oe===H&&(Z.trailingNode=s);break}Z.containingNode=s,this.finalizeComment(Z),o.splice(D,1)}}finalizeComment(s){let{comments:o}=s;if(s.leadingNode!==null||s.trailingNode!==null)s.leadingNode!==null&&Ft(s.leadingNode,o),s.trailingNode!==null&&function(g,D){g.leadingComments===void 0?g.leadingComments=D:g.leadingComments.unshift(...D)}(s.trailingNode,o);else{let{containingNode:g,start:D}=s;if(this.input.charCodeAt(D-1)===44)switch(g.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Rt(g,g.properties,s);break;case"CallExpression":case"OptionalCallExpression":Rt(g,g.arguments,s);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Rt(g,g.params,s);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Rt(g,g.elements,s);break;case"ExportNamedDeclaration":case"ImportDeclaration":Rt(g,g.specifiers,s);break;default:wt(g,o)}else wt(g,o)}}finalizeRemainingComments(){let{commentStack:s}=this.state;for(let o=s.length-1;o>=0;o--)this.finalizeComment(s[o]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(s){let{commentStack:o}=this.state,{length:g}=o;if(g===0)return;let D=o[g-1];D.leadingNode===s&&(D.leadingNode=null)}takeSurroundingComments(s,o,g){let{commentStack:D}=this.state,B=D.length;if(B===0)return;let H=B-1;for(;H>=0;H--){let Z=D[H],oe=Z.end;if(Z.start===g)Z.leadingNode=s;else if(oe===o)Z.trailingNode=s;else if(oe<o)break}}}{constructor(s,o){super(),this.isLookahead=void 0,this.tokens=[],this.state=new lr,this.state.init(s),this.input=o,this.length=o.length,this.isLookahead=!1}pushToken(s){this.tokens.length=this.state.tokensLength,this.tokens.push(s),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Le(this.state)),this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(s){return!!this.match(s)&&(this.next(),!0)}match(s){return this.state.type===s}createLookaheadState(s){return{pos:s.pos,value:null,type:s.type,start:s.start,end:s.end,context:[this.curContext()],inType:s.inType,startLoc:s.startLoc,lastTokEndLoc:s.lastTokEndLoc,curLine:s.curLine,lineStart:s.lineStart,curPosition:s.curPosition}}lookahead(){let s=this.state;this.state=this.createLookaheadState(s),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let o=this.state;return this.state=s,o}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(s){return Kt.lastIndex=s,Kt.test(this.input)?Kt.lastIndex:s}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}codePointAtPos(s){let o=this.input.charCodeAt(s);if((64512&o)==55296&&++s<this.input.length){let g=this.input.charCodeAt(s);(64512&g)==56320&&(o=65536+((1023&o)<<10)+(1023&g))}return o}setStrict(s){this.state.strict=s,s&&(this.state.strictErrors.forEach(([o,g])=>this.raise(o,{at:g})),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(135):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(){let s;this.isLookahead||(s=this.state.curPosition());let o=this.state.pos,g=this.input.indexOf("*/",o+2);if(g===-1)throw this.raise(f.UnterminatedComment,{at:this.state.curPosition()});for(this.state.pos=g+2,Et.lastIndex=o+2;Et.test(this.input)&&Et.lastIndex<=g;)++this.state.curLine,this.state.lineStart=Et.lastIndex;if(this.isLookahead)return;let D={type:"CommentBlock",value:this.input.slice(o+2,g),start:o,end:g+2,loc:new n(s,this.state.curPosition())};return this.options.tokens&&this.pushToken(D),D}skipLineComment(s){let o=this.state.pos,g;this.isLookahead||(g=this.state.curPosition());let D=this.input.charCodeAt(this.state.pos+=s);if(this.state.pos<this.length)for(;!ht(D)&&++this.state.pos<this.length;)D=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let B=this.state.pos,H={type:"CommentLine",value:this.input.slice(o+s,B),start:o,end:B,loc:new n(g,this.state.curPosition())};return this.options.tokens&&this.pushToken(H),H}skipSpace(){let s=this.state.pos,o=[];e:for(;this.state.pos<this.length;){let g=this.input.charCodeAt(this.state.pos);switch(g){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let D=this.skipBlockComment();D!==void 0&&(this.addComment(D),this.options.attachComment&&o.push(D));break}case 47:{let D=this.skipLineComment(2);D!==void 0&&(this.addComment(D),this.options.attachComment&&o.push(D));break}default:break e}break;default:if(Mr(g))++this.state.pos;else if(g!==45||this.inModule){if(g!==60||this.inModule)break e;{let D=this.state.pos;if(this.input.charCodeAt(D+1)!==33||this.input.charCodeAt(D+2)!==45||this.input.charCodeAt(D+3)!==45)break e;{let B=this.skipLineComment(4);B!==void 0&&(this.addComment(B),this.options.attachComment&&o.push(B))}}}else{let D=this.state.pos;if(this.input.charCodeAt(D+1)!==45||this.input.charCodeAt(D+2)!==62||!(s===0||this.state.lineStart>s))break e;{let B=this.skipLineComment(3);B!==void 0&&(this.addComment(B),this.options.attachComment&&o.push(B))}}}}if(o.length>0){let g={start:s,end:this.state.pos,comments:o,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(g)}}finishToken(s,o){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let g=this.state.type;this.state.type=s,this.state.value=o,this.isLookahead||this.updateContext(g)}replaceToken(s){this.state.type=s,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let s=this.state.pos+1,o=this.codePointAtPos(s);if(o>=48&&o<=57)throw this.raise(f.UnexpectedDigitAfterHash,{at:this.state.curPosition()});if(o===123||o===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")!=="hash")throw this.raise(o===123?f.RecordExpressionHashIncorrectStartSyntaxType:f.TupleExpressionHashIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,o===123?this.finishToken(7):this.finishToken(1)}else Se(o)?(++this.state.pos,this.finishToken(134,this.readWord1(o))):o===92?(++this.state.pos,this.finishToken(134,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let s=this.input.charCodeAt(this.state.pos+1);s>=48&&s<=57?this.readNumber(!0):s===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let s=this.input.charCodeAt(this.state.pos+1);if(s!==33)return!1;let o=this.state.pos;for(this.state.pos+=1;!ht(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);let g=this.input.slice(o+2,this.state.pos);return this.finishToken(28,g),!0}readToken_mult_modulo(s){let o=s===42?55:54,g=1,D=this.input.charCodeAt(this.state.pos+1);s===42&&D===42&&(g++,D=this.input.charCodeAt(this.state.pos+2),o=57),D!==61||this.state.inType||(g++,o=s===37?33:30),this.finishOp(o,g)}readToken_pipe_amp(s){let o=this.input.charCodeAt(this.state.pos+1);if(o!==s){if(s===124){if(o===62)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&o===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(f.RecordExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&o===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(f.TupleExpressionBarIncorrectEndSyntaxType,{at:this.state.curPosition()});return this.state.pos+=2,void this.finishToken(4)}}o!==61?this.finishOp(s===124?43:45,1):this.finishOp(30,2)}else this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(s===124?41:42,2)}readToken_caret(){let s=this.input.charCodeAt(this.state.pos+1);if(s!==61||this.state.inType)if(s===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){if(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94)throw this.unexpected()}else this.finishOp(44,1);else this.finishOp(32,2)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(s){let o=this.input.charCodeAt(this.state.pos+1);o!==s?o===61?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){let{pos:s}=this.state,o=this.input.charCodeAt(s+1);if(o===60)return this.input.charCodeAt(s+2)===61?void this.finishOp(30,3):void this.finishOp(51,2);o!==61?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){let{pos:s}=this.state,o=this.input.charCodeAt(s+1);if(o===62){let g=this.input.charCodeAt(s+2)===62?3:2;return this.input.charCodeAt(s+g)===61?void this.finishOp(30,g+1):void this.finishOp(52,g)}o!==61?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(s){let o=this.input.charCodeAt(this.state.pos+1);if(o!==61)return s===61&&o===62?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(s===61?29:35,1);this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2)}readToken_question(){let s=this.input.charCodeAt(this.state.pos+1),o=this.input.charCodeAt(this.state.pos+2);s===63?o===61?this.finishOp(30,3):this.finishOp(40,2):s!==46||o>=48&&o<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(s){switch(s){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(f.TupleExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(f.RecordExpressionBarIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{let o=this.input.charCodeAt(this.state.pos+1);if(o===120||o===88)return void this.readRadixNumber(16);if(o===111||o===79)return void this.readRadixNumber(8);if(o===98||o===66)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(s);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(s);case 124:case 38:return void this.readToken_pipe_amp(s);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(s);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(s);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(Se(s))return void this.readWord(s)}throw this.raise(f.InvalidOrUnexpectedToken,{at:this.state.curPosition(),unexpected:String.fromCodePoint(s)})}finishOp(s,o){let g=this.input.slice(this.state.pos,this.state.pos+o);this.state.pos+=o,this.finishToken(s,g)}readRegexp(){let s=this.state.startLoc,o=this.state.start+1,g,D,{pos:B}=this.state;for(;;++B){if(B>=this.length)throw this.raise(f.UnterminatedRegExp,{at:r(s,1)});let me=this.input.charCodeAt(B);if(ht(me))throw this.raise(f.UnterminatedRegExp,{at:r(s,1)});if(g)g=!1;else{if(me===91)D=!0;else if(me===93&&D)D=!1;else if(me===47&&!D)break;g=me===92}}let H=this.input.slice(o,B);++B;let Z="",oe=()=>r(s,B+2-o);for(;B<this.length;){let me=this.codePointAtPos(B),Ne=String.fromCharCode(me);if(Pe.has(me))me===118?(this.expectPlugin("regexpUnicodeSets",oe()),Z.includes("u")&&this.raise(f.IncompatibleRegExpUVFlags,{at:oe()})):me===117&&Z.includes("v")&&this.raise(f.IncompatibleRegExpUVFlags,{at:oe()}),Z.includes(Ne)&&this.raise(f.DuplicateRegExpFlags,{at:oe()});else{if(!Ve(me)&&me!==92)break;this.raise(f.MalformedRegExpFlags,{at:oe()})}++B,Z+=Ne}this.state.pos=B,this.finishToken(133,{pattern:H,flags:Z})}readInt(s,o,g,D=!0){let B=this.state.pos,H=s===16?De.hex:De.decBinOct,Z=s===16?_e.hex:s===10?_e.dec:s===8?_e.oct:_e.bin,oe=!1,me=0;for(let Ne=0,ze=o??1/0;Ne<ze;++Ne){let ut=this.input.charCodeAt(this.state.pos),dt;if(ut!==95||D==="bail"){if(dt=ut>=97?ut-97+10:ut>=65?ut-65+10:an(ut)?ut-48:1/0,dt>=s)if(this.options.errorRecovery&&dt<=9)dt=0,this.raise(f.InvalidDigit,{at:this.state.curPosition(),radix:s});else{if(!g)break;dt=0,oe=!0}++this.state.pos,me=me*s+dt}else{let Ot=this.input.charCodeAt(this.state.pos-1),kt=this.input.charCodeAt(this.state.pos+1);D?(Number.isNaN(kt)||!Z(kt)||H.has(Ot)||H.has(kt))&&this.raise(f.UnexpectedNumericSeparator,{at:this.state.curPosition()}):this.raise(f.NumericSeparatorInEscapeSequence,{at:this.state.curPosition()}),++this.state.pos}}return this.state.pos===B||o!=null&&this.state.pos-B!==o||oe?null:me}readRadixNumber(s){let o=this.state.curPosition(),g=!1;this.state.pos+=2;let D=this.readInt(s);D==null&&this.raise(f.InvalidDigit,{at:r(o,2),radix:s});let B=this.input.charCodeAt(this.state.pos);if(B===110)++this.state.pos,g=!0;else if(B===109)throw this.raise(f.InvalidDecimal,{at:o});if(Se(this.codePointAtPos(this.state.pos)))throw this.raise(f.NumberIdentifier,{at:this.state.curPosition()});if(g){let H=this.input.slice(o.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(131,H)}else this.finishToken(130,D)}readNumber(s){let o=this.state.pos,g=this.state.curPosition(),D=!1,B=!1,H=!1,Z=!1,oe=!1;s||this.readInt(10)!==null||this.raise(f.InvalidNumber,{at:this.state.curPosition()});let me=this.state.pos-o>=2&&this.input.charCodeAt(o)===48;if(me){let dt=this.input.slice(o,this.state.pos);if(this.recordStrictModeErrors(f.StrictOctalLiteral,{at:g}),!this.state.strict){let Ot=dt.indexOf("_");Ot>0&&this.raise(f.ZeroDigitNumericSeparator,{at:r(g,Ot)})}oe=me&&!/[89]/.test(dt)}let Ne=this.input.charCodeAt(this.state.pos);if(Ne!==46||oe||(++this.state.pos,this.readInt(10),D=!0,Ne=this.input.charCodeAt(this.state.pos)),Ne!==69&&Ne!==101||oe||(Ne=this.input.charCodeAt(++this.state.pos),Ne!==43&&Ne!==45||++this.state.pos,this.readInt(10)===null&&this.raise(f.InvalidOrMissingExponent,{at:g}),D=!0,Z=!0,Ne=this.input.charCodeAt(this.state.pos)),Ne===110&&((D||me)&&this.raise(f.InvalidBigIntLiteral,{at:g}),++this.state.pos,B=!0),Ne===109&&(this.expectPlugin("decimal",this.state.curPosition()),(Z||me)&&this.raise(f.InvalidDecimal,{at:g}),++this.state.pos,H=!0),Se(this.codePointAtPos(this.state.pos)))throw this.raise(f.NumberIdentifier,{at:this.state.curPosition()});let ze=this.input.slice(o,this.state.pos).replace(/[_mn]/g,"");if(B)return void this.finishToken(131,ze);if(H)return void this.finishToken(132,ze);let ut=oe?parseInt(ze,8):parseFloat(ze);this.finishToken(130,ut)}readCodePoint(s){let o;if(this.input.charCodeAt(this.state.pos)===123){if(++this.state.pos,o=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,!0,s),++this.state.pos,o!==null&&o>1114111){if(!s)return null;this.raise(f.InvalidCodePoint,{at:this.state.curPosition()})}}else o=this.readHexChar(4,!1,s);return o}readString(s){let o="",g=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(f.UnterminatedString,{at:this.state.startLoc});let D=this.input.charCodeAt(this.state.pos);if(D===s)break;if(D===92)o+=this.input.slice(g,this.state.pos),o+=this.readEscapedChar(!1),g=this.state.pos;else if(D===8232||D===8233)++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;else{if(ht(D))throw this.raise(f.UnterminatedString,{at:this.state.startLoc});++this.state.pos}}o+=this.input.slice(g,this.state.pos++),this.finishToken(129,o)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let s="",o=this.state.pos,g=!1;for(++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(f.UnterminatedTemplate,{at:r(this.state.startLoc,1)});let D=this.input.charCodeAt(this.state.pos);if(D===96)return++this.state.pos,s+=this.input.slice(o,this.state.pos),void this.finishToken(24,g?null:s);if(D===36&&this.input.charCodeAt(this.state.pos+1)===123)return this.state.pos+=2,s+=this.input.slice(o,this.state.pos),void this.finishToken(25,g?null:s);if(D===92){s+=this.input.slice(o,this.state.pos);let B=this.readEscapedChar(!0);B===null?g=!0:s+=B,o=this.state.pos}else if(ht(D)){switch(s+=this.input.slice(o,this.state.pos),++this.state.pos,D){case 13:this.input.charCodeAt(this.state.pos)===10&&++this.state.pos;case 10:s+=`
|
|
2145
2145
|
`;break;default:s+=String.fromCharCode(D)}++this.state.curLine,this.state.lineStart=this.state.pos,o=this.state.pos}else++this.state.pos}}recordStrictModeErrors(s,{at:o}){let g=o.index;this.state.strict&&!this.state.strictErrors.has(g)?this.raise(s,{at:o}):this.state.strictErrors.set(g,[s,o])}readEscapedChar(s){let o=!s,g=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,g){case 110:return`
|
|
2146
|
-
`;case 114:return"\r";case 120:{let D=this.readHexChar(2,!1,o);return D===null?null:String.fromCharCode(D)}case 117:{let D=this.readCodePoint(o);return D===null?null:String.fromCodePoint(D)}case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.state.pos)===10&&++this.state.pos;case 10:this.state.lineStart=this.state.pos,++this.state.curLine;case 8232:case 8233:return"";case 56:case 57:if(s)return null;this.recordStrictModeErrors(f.StrictNumericEscape,{at:r(this.state.curPosition(),-1)});default:if(g>=48&&g<=55){let D=r(this.state.curPosition(),-1),B=this.input.slice(this.state.pos-1,this.state.pos+2).match(/^[0-7]+/)[0],H=parseInt(B,8);H>255&&(B=B.slice(0,-1),H=parseInt(B,8)),this.state.pos+=B.length-1;let Z=this.input.charCodeAt(this.state.pos);if(B!=="0"||Z===56||Z===57){if(s)return null;this.recordStrictModeErrors(f.StrictNumericEscape,{at:D})}return String.fromCharCode(H)}return String.fromCharCode(g)}}readHexChar(s,o,g){let D=this.state.curPosition(),B=this.readInt(16,s,o,!1);return B===null&&(g?this.raise(f.InvalidEscapeSequence,{at:D}):this.state.pos=D.index-1),B}readWord1(s){this.state.containsEsc=!1;let o="",g=this.state.pos,D=this.state.pos;for(s!==void 0&&(this.state.pos+=s<=65535?1:2);this.state.pos<this.length;){let B=this.codePointAtPos(this.state.pos);if(Ve(B))this.state.pos+=B<=65535?1:2;else{if(B!==92)break;{this.state.containsEsc=!0,o+=this.input.slice(D,this.state.pos);let H=this.state.curPosition(),Z=this.state.pos===g?Se:Ve;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(f.MissingUnicodeEscape,{at:this.state.curPosition()}),D=this.state.pos-1;continue}++this.state.pos;let oe=this.readCodePoint(!0);oe!==null&&(Z(oe)||this.raise(f.EscapedCharNotAnIdentifier,{at:H}),o+=String.fromCodePoint(oe)),D=this.state.pos}}}return o+this.input.slice(D,this.state.pos)}readWord(s){let o=this.readWord1(s),g=j.get(o);g!==void 0?this.finishToken(g,pe(g)):this.finishToken(128,o)}checkKeywordEscapes(){let{type:s}=this.state;he(s)&&this.state.containsEsc&&this.raise(f.InvalidEscapedReservedWord,{at:this.state.startLoc,reservedWord:pe(s)})}raise(s,o){let{at:g}=o,D=l(o,Cr),B=s({loc:g instanceof t?g:g.loc.start,details:D});if(!this.options.errorRecovery)throw B;return this.isLookahead||this.state.errors.push(B),B}raiseOverwrite(s,o){let{at:g}=o,D=l(o,Gr),B=g instanceof t?g:g.loc.start,H=B.index,Z=this.state.errors;for(let oe=Z.length-1;oe>=0;oe--){let me=Z[oe];if(me.loc.index===H)return Z[oe]=s({loc:B,details:D});if(me.loc.index<H)break}return this.raise(s,o)}updateContext(s){}unexpected(s,o){throw this.raise(f.UnexpectedToken,{expected:o?pe(o):null,at:s??this.state.startLoc})}expectPlugin(s,o){if(this.hasPlugin(s))return!0;throw this.raise(f.MissingPlugin,{at:o??this.state.startLoc,missingPlugin:[s]})}expectOnePlugin(s){if(!s.some(o=>this.hasPlugin(o)))throw this.raise(f.MissingOneOfPlugins,{at:this.state.startLoc,missingPlugin:s})}}{addExtra(s,o,g,D=!0){if(!s)return;let B=s.extra=s.extra||{};D?B[o]=g:Object.defineProperty(B,o,{enumerable:D,value:g})}isContextual(s){return this.state.type===s&&!this.state.containsEsc}isUnparsedContextual(s,o){let g=s+o.length;if(this.input.slice(s,g)===o){let D=this.input.charCodeAt(g);return!(Ve(D)||(64512&D)==55296)}return!1}isLookaheadContextual(s){let o=this.nextTokenStart();return this.isUnparsedContextual(o,s)}eatContextual(s){return!!this.isContextual(s)&&(this.next(),!0)}expectContextual(s,o){if(!this.eatContextual(s))throw o!=null?this.raise(o,{at:this.state.startLoc}):this.unexpected(null,s)}canInsertSemicolon(){return this.match(135)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Vt.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return Ye.lastIndex=this.state.end,Ye.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(s=!0){(s?this.isLineTerminator():this.eat(13))||this.raise(f.MissingSemicolon,{at:this.state.lastTokEndLoc})}expect(s,o){this.eat(s)||this.unexpected(o,s)}tryParse(s,o=this.state.clone()){let g={node:null};try{let D=s((B=null)=>{throw g.node=B,g});if(this.state.errors.length>o.errors.length){let B=this.state;return this.state=o,this.state.tokensLength=B.tokensLength,{node:D,error:B.errors[o.errors.length],thrown:!1,aborted:!1,failState:B}}return{node:D,error:null,thrown:!1,aborted:!1,failState:null}}catch(D){let B=this.state;if(this.state=o,D instanceof SyntaxError)return{node:null,error:D,thrown:!0,aborted:!1,failState:B};if(D===g)return{node:g.node,error:null,thrown:!1,aborted:!0,failState:B};throw D}}checkExpressionErrors(s,o){if(!s)return!1;let{shorthandAssignLoc:g,doubleProtoLoc:D,privateKeyLoc:B,optionalParametersLoc:H}=s;if(!o)return!!(g||D||H||B);g!=null&&this.raise(f.InvalidCoverInitializedName,{at:g}),D!=null&&this.raise(f.DuplicateProto,{at:D}),B!=null&&this.raise(f.UnexpectedPrivateField,{at:B}),H!=null&&this.unexpected(H)}isLiteralPropertyName(){return X(this.state.type)}isPrivateName(s){return s.type==="PrivateName"}getPrivateNameSV(s){return s.id.name}hasPropertyAsPrivateName(s){return(s.type==="MemberExpression"||s.type==="OptionalMemberExpression")&&this.isPrivateName(s.property)}isOptionalChain(s){return s.type==="OptionalMemberExpression"||s.type==="OptionalCallExpression"}isObjectProperty(s){return s.type==="ObjectProperty"}isObjectMethod(s){return s.type==="ObjectMethod"}initializeScopes(s=this.options.sourceType==="module"){let o=this.state.labels;this.state.labels=[];let g=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let D=this.inModule;this.inModule=s;let B=this.scope,H=this.getScopeHandler();this.scope=new H(this,s);let Z=this.prodParam;this.prodParam=new Xt;let oe=this.classScope;this.classScope=new At(this);let me=this.expressionScope;return this.expressionScope=new Bt(this),()=>{this.state.labels=o,this.exportedIdentifiers=g,this.inModule=D,this.scope=B,this.prodParam=Z,this.classScope=oe,this.expressionScope=me}}enterInitialScopes(){let s=0;this.inModule&&(s|=2),this.scope.enter(1),this.prodParam.enter(s)}checkDestructuringPrivate(s){let{privateKeyLoc:o}=s;o!==null&&this.expectPlugin("destructuringPrivate",o)}}{startNode(){return new Jt(this,this.state.start,this.state.startLoc)}startNodeAt(s,o){return new Jt(this,s,o)}startNodeAtNode(s){return this.startNodeAt(s.start,s.loc.start)}finishNode(s,o){return this.finishNodeAt(s,o,this.state.lastTokEndLoc)}finishNodeAt(s,o,g){return s.type=o,s.end=g.index,s.loc.end=g,this.options.ranges&&(s.range[1]=g.index),this.options.attachComment&&this.processComment(s),s}resetStartLocation(s,o,g){s.start=o,s.loc.start=g,this.options.ranges&&(s.range[0]=o)}resetEndLocation(s,o=this.state.lastTokEndLoc){s.end=o.index,s.loc.end=o,this.options.ranges&&(s.range[1]=o.index)}resetStartLocationFromNode(s,o){this.resetStartLocation(s,o.start,o.loc.start)}}{toAssignable(s,o=!1){var g,D;let B;switch((s.type==="ParenthesizedExpression"||(g=s.extra)!=null&&g.parenthesized)&&(B=Fi(s),o?B.type==="Identifier"?this.expressionScope.recordArrowParemeterBindingError(f.InvalidParenthesizedAssignment,{at:s}):B.type!=="MemberExpression"&&this.raise(f.InvalidParenthesizedAssignment,{at:s}):this.raise(f.InvalidParenthesizedAssignment,{at:s})),s.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":s.type="ObjectPattern";for(let Z=0,oe=s.properties.length,me=oe-1;Z<oe;Z++){var H;let Ne=s.properties[Z],ze=Z===me;this.toAssignableObjectExpressionProp(Ne,ze,o),ze&&Ne.type==="RestElement"&&(H=s.extra)!=null&&H.trailingCommaLoc&&this.raise(f.RestTrailingComma,{at:s.extra.trailingCommaLoc})}break;case"ObjectProperty":{let{key:Z,value:oe}=s;this.isPrivateName(Z)&&this.classScope.usePrivateName(this.getPrivateNameSV(Z),Z.loc.start),this.toAssignable(oe,o);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":s.type="ArrayPattern",this.toAssignableList(s.elements,(D=s.extra)==null?void 0:D.trailingCommaLoc,o);break;case"AssignmentExpression":s.operator!=="="&&this.raise(f.MissingEqInAssignment,{at:s.left.loc.end}),s.type="AssignmentPattern",delete s.operator,this.toAssignable(s.left,o);break;case"ParenthesizedExpression":this.toAssignable(B,o)}}toAssignableObjectExpressionProp(s,o,g){if(s.type==="ObjectMethod")this.raise(s.kind==="get"||s.kind==="set"?f.PatternHasAccessor:f.PatternHasMethod,{at:s.key});else if(s.type==="SpreadElement"){s.type="RestElement";let D=s.argument;this.checkToRestConversion(D,!1),this.toAssignable(D,g),o||this.raise(f.RestTrailingComma,{at:s})}else this.toAssignable(s,g)}toAssignableList(s,o,g){let D=s.length-1;for(let B=0;B<=D;B++){let H=s[B];if(H){if(H.type==="SpreadElement"){H.type="RestElement";let Z=H.argument;this.checkToRestConversion(Z,!0),this.toAssignable(Z,g)}else this.toAssignable(H,g);H.type==="RestElement"&&(B<D?this.raise(f.RestTrailingComma,{at:H}):o&&this.raise(f.RestTrailingComma,{at:o}))}}}isAssignable(s,o){switch(s.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let g=s.properties.length-1;return s.properties.every((D,B)=>D.type!=="ObjectMethod"&&(B===g||D.type!=="SpreadElement")&&this.isAssignable(D))}case"ObjectProperty":return this.isAssignable(s.value);case"SpreadElement":return this.isAssignable(s.argument);case"ArrayExpression":return s.elements.every(g=>g===null||this.isAssignable(g));case"AssignmentExpression":return s.operator==="=";case"ParenthesizedExpression":return this.isAssignable(s.expression);case"MemberExpression":case"OptionalMemberExpression":return!o;default:return!1}}toReferencedList(s,o){return s}toReferencedListDeep(s,o){this.toReferencedList(s,o);for(let g of s)(g==null?void 0:g.type)==="ArrayExpression"&&this.toReferencedListDeep(g.elements)}parseSpread(s,o){let g=this.startNode();return this.next(),g.argument=this.parseMaybeAssignAllowIn(s,void 0,o),this.finishNode(g,"SpreadElement")}parseRestBinding(){let s=this.startNode();return this.next(),s.argument=this.parseBindingAtom(),this.finishNode(s,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let s=this.startNode();return this.next(),s.elements=this.parseBindingList(3,93,!0),this.finishNode(s,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(s,o,g,D){let B=[],H=!0;for(;!this.eat(s);)if(H?H=!1:this.expect(12),g&&this.match(12))B.push(null);else{if(this.eat(s))break;if(this.match(21)){if(B.push(this.parseAssignableListItemTypes(this.parseRestBinding())),!this.checkCommaAfterRest(o)){this.expect(s);break}}else{let Z=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(f.UnsupportedParameterDecorator,{at:this.state.startLoc});this.match(26);)Z.push(this.parseDecorator());B.push(this.parseAssignableListItem(D,Z))}}return B}parseBindingRestProperty(s){return this.next(),s.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(s,"RestElement")}parseBindingProperty(){let s=this.startNode(),{type:o,start:g,startLoc:D}=this.state;return o===21?this.parseBindingRestProperty(s):(o===134?(this.expectPlugin("destructuringPrivate",D),this.classScope.usePrivateName(this.state.value,D),s.key=this.parsePrivateName()):this.parsePropertyName(s),s.method=!1,this.parseObjPropValue(s,g,D,!1,!1,!0,!1),s)}parseAssignableListItem(s,o){let g=this.parseMaybeDefault();this.parseAssignableListItemTypes(g);let D=this.parseMaybeDefault(g.start,g.loc.start,g);return o.length&&(g.decorators=o),D}parseAssignableListItemTypes(s){return s}parseMaybeDefault(s,o,g){var D,B,H;if(o=(D=o)!=null?D:this.state.startLoc,s=(B=s)!=null?B:this.state.start,g=(H=g)!=null?H:this.parseBindingAtom(),!this.eat(29))return g;let Z=this.startNodeAt(s,o);return Z.left=g,Z.right=this.parseMaybeAssignAllowIn(),this.finishNode(Z,"AssignmentPattern")}isValidLVal(s,o,g){return D={AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},B=s,Object.hasOwnProperty.call(D,B)&&D[B];var D,B}checkLVal(s,{in:o,binding:g=64,checkClashes:D=!1,strictModeChanged:B=!1,allowingSloppyLetBinding:H=!(8&g),hasParenthesizedAncestor:Z=!1}){var oe;let me=s.type;if(this.isObjectMethod(s))return;if(me==="MemberExpression")return void(g!==64&&this.raise(f.InvalidPropertyBindingPattern,{at:s}));if(s.type==="Identifier"){this.checkIdentifier(s,g,B,H);let{name:Ot}=s;return void(D&&(D.has(Ot)?this.raise(f.ParamDupe,{at:s}):D.add(Ot)))}let Ne=this.isValidLVal(s.type,!(Z||(oe=s.extra)!=null&&oe.parenthesized)&&o.type==="AssignmentExpression",g);if(Ne===!0)return;if(Ne===!1){let Ot=g===64?f.InvalidLhs:f.InvalidLhsBinding;return void this.raise(Ot,{at:s,ancestor:o.type==="UpdateExpression"?{type:"UpdateExpression",prefix:o.prefix}:{type:o.type}})}let[ze,ut]=Array.isArray(Ne)?Ne:[Ne,me==="ParenthesizedExpression"],dt=s.type==="ArrayPattern"||s.type==="ObjectPattern"||s.type==="ParenthesizedExpression"?s:o;for(let Ot of[].concat(s[ze]))Ot&&this.checkLVal(Ot,{in:dt,binding:g,checkClashes:D,allowingSloppyLetBinding:H,strictModeChanged:B,hasParenthesizedAncestor:ut})}checkIdentifier(s,o,g=!1,D=!(8&o)){this.state.strict&&(g?rt(s.name,this.inModule):be(s.name))&&(o===64?this.raise(f.StrictEvalArguments,{at:s,referenceName:s.name}):this.raise(f.StrictEvalArgumentsBinding,{at:s,bindingName:s.name})),D||s.name!=="let"||this.raise(f.LetInLexicalBinding,{at:s}),64&o||this.declareNameFromIdentifier(s,o)}declareNameFromIdentifier(s,o){this.scope.declareName(s.name,o,s.loc.start)}checkToRestConversion(s,o){switch(s.type){case"ParenthesizedExpression":this.checkToRestConversion(s.expression,o);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(o)break;default:this.raise(f.InvalidRestAssignmentPattern,{at:s})}}checkCommaAfterRest(s){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===s?f.RestTrailingComma:f.ElementAfterRest,{at:this.state.startLoc}),!0)}}{checkProto(s,o,g,D){if(s.type==="SpreadElement"||this.isObjectMethod(s)||s.computed||s.shorthand)return;let B=s.key;if((B.type==="Identifier"?B.name:B.value)==="__proto__"){if(o)return void this.raise(f.RecordNoProto,{at:B});g.used&&(D?D.doubleProtoLoc===null&&(D.doubleProtoLoc=B.loc.start):this.raise(f.DuplicateProto,{at:B})),g.used=!0}}shouldExitDescending(s,o){return s.type==="ArrowFunctionExpression"&&s.start===o}getExpression(){this.enterInitialScopes(),this.nextToken();let s=this.parseExpression();return this.match(135)||this.unexpected(),this.finalizeRemainingComments(),s.comments=this.state.comments,s.errors=this.state.errors,this.options.tokens&&(s.tokens=this.tokens),s}parseExpression(s,o){return s?this.disallowInAnd(()=>this.parseExpressionBase(o)):this.allowInAnd(()=>this.parseExpressionBase(o))}parseExpressionBase(s){let o=this.state.start,g=this.state.startLoc,D=this.parseMaybeAssign(s);if(this.match(12)){let B=this.startNodeAt(o,g);for(B.expressions=[D];this.eat(12);)B.expressions.push(this.parseMaybeAssign(s));return this.toReferencedList(B.expressions),this.finishNode(B,"SequenceExpression")}return D}parseMaybeAssignDisallowIn(s,o){return this.disallowInAnd(()=>this.parseMaybeAssign(s,o))}parseMaybeAssignAllowIn(s,o){return this.allowInAnd(()=>this.parseMaybeAssign(s,o))}setOptionalParametersError(s,o){var g;s.optionalParametersLoc=(g=o==null?void 0:o.loc)!=null?g:this.state.startLoc}parseMaybeAssign(s,o){let g=this.state.start,D=this.state.startLoc;if(this.isContextual(105)&&this.prodParam.hasYield){let me=this.parseYield();return o&&(me=o.call(this,me,g,D)),me}let B;s?B=!1:(s=new Qt,B=!0);let{type:H}=this.state;(H===10||K(H))&&(this.state.potentialArrowAt=this.state.start);let Z=this.parseMaybeConditional(s);if(o&&(Z=o.call(this,Z,g,D)),(oe=this.state.type)>=29&&oe<=33){let me=this.startNodeAt(g,D),Ne=this.state.value;return me.operator=Ne,this.match(29)?(this.toAssignable(Z,!0),me.left=Z,s.doubleProtoLoc!=null&&s.doubleProtoLoc.index>=g&&(s.doubleProtoLoc=null),s.shorthandAssignLoc!=null&&s.shorthandAssignLoc.index>=g&&(s.shorthandAssignLoc=null),s.privateKeyLoc!=null&&s.privateKeyLoc.index>=g&&(this.checkDestructuringPrivate(s),s.privateKeyLoc=null)):me.left=Z,this.next(),me.right=this.parseMaybeAssign(),this.checkLVal(Z,{in:this.finishNode(me,"AssignmentExpression")}),me}var oe;return B&&this.checkExpressionErrors(s,!0),Z}parseMaybeConditional(s){let o=this.state.start,g=this.state.startLoc,D=this.state.potentialArrowAt,B=this.parseExprOps(s);return this.shouldExitDescending(B,D)?B:this.parseConditional(B,o,g,s)}parseConditional(s,o,g,D){if(this.eat(17)){let B=this.startNodeAt(o,g);return B.test=s,B.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),B.alternate=this.parseMaybeAssign(),this.finishNode(B,"ConditionalExpression")}return s}parseMaybeUnaryOrPrivate(s){return this.match(134)?this.parsePrivateName():this.parseMaybeUnary(s)}parseExprOps(s){let o=this.state.start,g=this.state.startLoc,D=this.state.potentialArrowAt,B=this.parseMaybeUnaryOrPrivate(s);return this.shouldExitDescending(B,D)?B:this.parseExprOp(B,o,g,-1)}parseExprOp(s,o,g,D){if(this.isPrivateName(s)){let Z=this.getPrivateNameSV(s);(D>=Ee(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(f.PrivateInExpectedIn,{at:s,identifierName:Z}),this.classScope.usePrivateName(Z,s.loc.start)}let B=this.state.type;if((H=B)>=39&&H<=59&&(this.prodParam.hasIn||!this.match(58))){let Z=Ee(B);if(Z>D){if(B===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return s;this.checkPipelineAtInfixOperator(s,g)}let oe=this.startNodeAt(o,g);oe.left=s,oe.operator=this.state.value;let me=B===41||B===42,Ne=B===40;if(Ne&&(Z=Ee(42)),this.next(),B===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(f.UnexpectedAwaitAfterPipelineBody,{at:this.state.startLoc});oe.right=this.parseExprOpRightExpr(B,Z),this.finishNode(oe,me||Ne?"LogicalExpression":"BinaryExpression");let ze=this.state.type;if(Ne&&(ze===41||ze===42)||me&&ze===40)throw this.raise(f.MixingCoalesceWithLogical,{at:this.state.startLoc});return this.parseExprOp(oe,o,g,D)}}var H;return s}parseExprOpRightExpr(s,o){let g=this.state.start,D=this.state.startLoc;if(s===39)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(105))throw this.raise(f.PipeBodyIsTighter,{at:this.state.startLoc});return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(s,o),g,D)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(o))}return this.parseExprOpBaseRightExpr(s,o)}parseExprOpBaseRightExpr(s,o){let g=this.state.start,D=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),g,D,s===57?o-1:o)}parseHackPipeBody(){var s;let{startLoc:o}=this.state,g=this.parseMaybeAssign();return!y.has(g.type)||(s=g.extra)!=null&&s.parenthesized||this.raise(f.PipeUnparenthesizedBody,{at:o,type:g.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(f.PipeTopicUnused,{at:o}),g}checkExponentialAfterUnary(s){this.match(57)&&this.raise(f.UnexpectedTokenUnaryExponentiation,{at:s.argument})}parseMaybeUnary(s,o){let g=this.state.start,D=this.state.startLoc,B=this.isContextual(96);if(B&&this.isAwaitAllowed()){this.next();let Ne=this.parseAwait(g,D);return o||this.checkExponentialAfterUnary(Ne),Ne}let H=this.match(34),Z=this.startNode();if(oe=this.state.type,x[oe]){Z.operator=this.state.value,Z.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let Ne=this.match(89);if(this.next(),Z.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(s,!0),this.state.strict&&Ne){let ze=Z.argument;ze.type==="Identifier"?this.raise(f.StrictDelete,{at:Z}):this.hasPropertyAsPrivateName(ze)&&this.raise(f.DeletePrivateField,{at:Z})}if(!H)return o||this.checkExponentialAfterUnary(Z),this.finishNode(Z,"UnaryExpression")}var oe;let me=this.parseUpdate(Z,H,s);if(B){let{type:Ne}=this.state;if((this.hasPlugin("v8intrinsic")?J(Ne):J(Ne)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(f.AwaitNotInAsyncContext,{at:D}),this.parseAwait(g,D)}return me}parseUpdate(s,o,g){if(o)return this.checkLVal(s.argument,{in:this.finishNode(s,"UpdateExpression")}),s;let D=this.state.start,B=this.state.startLoc,H=this.parseExprSubscripts(g);if(this.checkExpressionErrors(g,!1))return H;for(;this.state.type===34&&!this.canInsertSemicolon();){let Z=this.startNodeAt(D,B);Z.operator=this.state.value,Z.prefix=!1,Z.argument=H,this.next(),this.checkLVal(H,{in:H=this.finishNode(Z,"UpdateExpression")})}return H}parseExprSubscripts(s){let o=this.state.start,g=this.state.startLoc,D=this.state.potentialArrowAt,B=this.parseExprAtom(s);return this.shouldExitDescending(B,D)?B:this.parseSubscripts(B,o,g)}parseSubscripts(s,o,g,D){let B={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(s),stop:!1};do s=this.parseSubscript(s,o,g,D,B),B.maybeAsyncArrow=!1;while(!B.stop);return s}parseSubscript(s,o,g,D,B){let{type:H}=this.state;if(!D&&H===15)return this.parseBind(s,o,g,D,B);if(ye(H))return this.parseTaggedTemplateExpression(s,o,g,B);let Z=!1;if(H===18){if(D&&this.lookaheadCharCode()===40)return B.stop=!0,s;B.optionalChainMember=Z=!0,this.next()}if(!D&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(s,o,g,B,Z);{let oe=this.eat(0);return oe||Z||this.eat(16)?this.parseMember(s,o,g,B,oe,Z):(B.stop=!0,s)}}parseMember(s,o,g,D,B,H){let Z=this.startNodeAt(o,g);return Z.object=s,Z.computed=B,B?(Z.property=this.parseExpression(),this.expect(3)):this.match(134)?(s.type==="Super"&&this.raise(f.SuperPrivateField,{at:g}),this.classScope.usePrivateName(this.state.value,this.state.startLoc),Z.property=this.parsePrivateName()):Z.property=this.parseIdentifier(!0),D.optionalChainMember?(Z.optional=H,this.finishNode(Z,"OptionalMemberExpression")):this.finishNode(Z,"MemberExpression")}parseBind(s,o,g,D,B){let H=this.startNodeAt(o,g);return H.object=s,this.next(),H.callee=this.parseNoCallExpr(),B.stop=!0,this.parseSubscripts(this.finishNode(H,"BindExpression"),o,g,D)}parseCoverCallAndAsyncArrowHead(s,o,g,D,B){let H=this.state.maybeInArrowParameters,Z=null;this.state.maybeInArrowParameters=!0,this.next();let oe=this.startNodeAt(o,g);oe.callee=s;let{maybeAsyncArrow:me,optionalChainMember:Ne}=D;return me&&(this.expressionScope.enter(new Dt(2)),Z=new Qt),Ne&&(oe.optional=B),oe.arguments=B?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,s.type==="Import",s.type!=="Super",oe,Z),this.finishCallExpression(oe,Ne),me&&this.shouldParseAsyncArrow()&&!B?(D.stop=!0,this.checkDestructuringPrivate(Z),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),oe=this.parseAsyncArrowFromCallExpression(this.startNodeAt(o,g),oe)):(me&&(this.checkExpressionErrors(Z,!0),this.expressionScope.exit()),this.toReferencedArguments(oe)),this.state.maybeInArrowParameters=H,oe}toReferencedArguments(s,o){this.toReferencedListDeep(s.arguments,o)}parseTaggedTemplateExpression(s,o,g,D){let B=this.startNodeAt(o,g);return B.tag=s,B.quasi=this.parseTemplate(!0),D.optionalChainMember&&this.raise(f.OptionalChainingNoTemplate,{at:g}),this.finishNode(B,"TaggedTemplateExpression")}atPossibleAsyncArrow(s){return s.type==="Identifier"&&s.name==="async"&&this.state.lastTokEndLoc.index===s.end&&!this.canInsertSemicolon()&&s.end-s.start==5&&s.start===this.state.potentialArrowAt}finishCallExpression(s,o){if(s.callee.type==="Import")if(s.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),s.arguments.length===0||s.arguments.length>2)this.raise(f.ImportCallArity,{at:s,maxArgumentCount:this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let g of s.arguments)g.type==="SpreadElement"&&this.raise(f.ImportCallSpreadArgument,{at:g});return this.finishNode(s,o?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(s,o,g,D,B){let H=[],Z=!0,oe=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(s);){if(Z)Z=!1;else if(this.expect(12),this.match(s)){!o||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(f.ImportCallArgumentTrailingComma,{at:this.state.lastTokStartLoc}),D&&this.addTrailingCommaExtraToNode(D),this.next();break}H.push(this.parseExprListItem(!1,B,g))}return this.state.inFSharpPipelineDirectBody=oe,H}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(s,o){var g;return this.resetPreviousNodeTrailingComments(o),this.expect(19),this.parseArrowExpression(s,o.arguments,!0,(g=o.extra)==null?void 0:g.trailingCommaLoc),o.innerComments&&wt(s,o.innerComments),o.callee.trailingComments&&wt(s,o.callee.trailingComments),s}parseNoCallExpr(){let s=this.state.start,o=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),s,o,!0)}parseExprAtom(s){let o,{type:g}=this.state;switch(g){case 79:return this.parseSuper();case 83:return o=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(o):(this.match(10)||this.raise(f.UnsupportedImport,{at:this.state.lastTokStartLoc}),this.finishNode(o,"Import"));case 78:return o=this.startNode(),this.next(),this.finishNode(o,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 130:return this.parseNumericLiteral(this.state.value);case 131:return this.parseBigIntLiteral(this.state.value);case 132:return this.parseDecimalLiteral(this.state.value);case 129:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let D=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(D)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,s);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,s);case 68:return this.parseFunctionOrFunctionSent();case 26:this.parseDecorators();case 80:return o=this.startNode(),this.takeDecorators(o),this.parseClass(o,!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{o=this.startNode(),this.next(),o.object=null;let D=o.callee=this.parseNoCallExpr();if(D.type==="MemberExpression")return this.finishNode(o,"BindExpression");throw this.raise(f.UnsupportedBind,{at:D})}case 134:return this.raise(f.PrivateInExpectedIn,{at:this.state.startLoc,identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let D=this.getPluginOption("pipelineOperator","proposal");if(D)return this.parseTopicReference(D);throw this.unexpected()}case 47:{let D=this.input.codePointAt(this.nextTokenStart());if(Se(D)||D===62){this.expectOnePlugin(["jsx","flow","typescript"]);break}throw this.unexpected()}default:if(K(g)){if(this.isContextual(123)&&this.lookaheadCharCode()===123&&!this.hasFollowingLineBreak())return this.parseModuleExpression();let D=this.state.potentialArrowAt===this.state.start,B=this.state.containsEsc,H=this.parseIdentifier();if(!B&&H.name==="async"&&!this.canInsertSemicolon()){let{type:Z}=this.state;if(Z===68)return this.resetPreviousNodeTrailingComments(H),this.next(),this.parseFunction(this.startNodeAtNode(H),void 0,!0);if(K(Z))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(H)):H;if(Z===90)return this.resetPreviousNodeTrailingComments(H),this.parseDo(this.startNodeAtNode(H),!0)}return D&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(H),[H],!1)):H}throw this.unexpected()}}parseTopicReferenceThenEqualsSign(s,o){let g=this.getPluginOption("pipelineOperator","proposal");if(g)return this.state.type=s,this.state.value=o,this.state.pos--,this.state.end--,this.state.endLoc=r(this.state.endLoc,-1),this.parseTopicReference(g);throw this.unexpected()}parseTopicReference(s){let o=this.startNode(),g=this.state.startLoc,D=this.state.type;return this.next(),this.finishTopicReference(o,g,s,D)}finishTopicReference(s,o,g,D){if(this.testTopicReferenceConfiguration(g,o,D)){let B=g==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(g==="smart"?f.PrimaryTopicNotAllowed:f.PipeTopicUnbound,{at:o}),this.registerTopicReference(),this.finishNode(s,B)}throw this.raise(f.PipeTopicUnconfiguredToken,{at:o,token:pe(D)})}testTopicReferenceConfiguration(s,o,g){switch(s){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:pe(g)}]);case"smart":return g===27;default:throw this.raise(f.PipeTopicRequiresHackPipes,{at:o})}}parseAsyncArrowUnaryFunction(s){this.prodParam.enter(zt(!0,this.prodParam.hasYield));let o=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(f.LineTerminatorBeforeArrow,{at:this.state.curPosition()}),this.expect(19),this.parseArrowExpression(s,o,!0),s}parseDo(s,o){this.expectPlugin("doExpressions"),o&&this.expectPlugin("asyncDoExpressions"),s.async=o,this.next();let g=this.state.labels;return this.state.labels=[],o?(this.prodParam.enter(2),s.body=this.parseBlock(),this.prodParam.exit()):s.body=this.parseBlock(),this.state.labels=g,this.finishNode(s,"DoExpression")}parseSuper(){let s=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(f.UnexpectedSuper,{at:s}):this.raise(f.SuperNotAllowed,{at:s}),this.match(10)||this.match(0)||this.match(16)||this.raise(f.UnsupportedSuper,{at:s}),this.finishNode(s,"Super")}parsePrivateName(){let s=this.startNode(),o=this.startNodeAt(this.state.start+1,new t(this.state.curLine,this.state.start+1-this.state.lineStart,this.state.start+1)),g=this.state.value;return this.next(),s.id=this.createIdentifier(o,g),this.finishNode(s,"PrivateName")}parseFunctionOrFunctionSent(){let s=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let o=this.createIdentifier(this.startNodeAtNode(s),"function");return this.next(),this.match(102)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(s,o,"sent")}return this.parseFunction(s)}parseMetaProperty(s,o,g){s.meta=o;let D=this.state.containsEsc;return s.property=this.parseIdentifier(!0),(s.property.name!==g||D)&&this.raise(f.UnsupportedMetaProperty,{at:s.property,target:o.name,onlyValidPropertyName:g}),this.finishNode(s,"MetaProperty")}parseImportMetaProperty(s){let o=this.createIdentifier(this.startNodeAtNode(s),"import");return this.next(),this.isContextual(100)&&(this.inModule||this.raise(f.ImportMetaOutsideModule,{at:o}),this.sawUnambiguousESM=!0),this.parseMetaProperty(s,o,"meta")}parseLiteralAtNode(s,o,g){return this.addExtra(g,"rawValue",s),this.addExtra(g,"raw",this.input.slice(g.start,this.state.end)),g.value=s,this.next(),this.finishNode(g,o)}parseLiteral(s,o){let g=this.startNode();return this.parseLiteralAtNode(s,o,g)}parseStringLiteral(s){return this.parseLiteral(s,"StringLiteral")}parseNumericLiteral(s){return this.parseLiteral(s,"NumericLiteral")}parseBigIntLiteral(s){return this.parseLiteral(s,"BigIntLiteral")}parseDecimalLiteral(s){return this.parseLiteral(s,"DecimalLiteral")}parseRegExpLiteral(s){let o=this.parseLiteral(s.value,"RegExpLiteral");return o.pattern=s.pattern,o.flags=s.flags,o}parseBooleanLiteral(s){let o=this.startNode();return o.value=s,this.next(),this.finishNode(o,"BooleanLiteral")}parseNullLiteral(){let s=this.startNode();return this.next(),this.finishNode(s,"NullLiteral")}parseParenAndDistinguishExpression(s){let o=this.state.start,g=this.state.startLoc,D;this.next(),this.expressionScope.enter(new Dt(1));let B=this.state.maybeInArrowParameters,H=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let Z=this.state.start,oe=this.state.startLoc,me=[],Ne=new Qt,ze,ut,dt=!0;for(;!this.match(11);){if(dt)dt=!1;else if(this.expect(12,Ne.optionalParametersLoc===null?null:Ne.optionalParametersLoc),this.match(11)){ut=this.state.startLoc;break}if(this.match(21)){let Wt=this.state.start,Ht=this.state.startLoc;if(ze=this.state.startLoc,me.push(this.parseParenItem(this.parseRestBinding(),Wt,Ht)),!this.checkCommaAfterRest(41))break}else me.push(this.parseMaybeAssignAllowIn(Ne,this.parseParenItem))}let Ot=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=B,this.state.inFSharpPipelineDirectBody=H;let kt=this.startNodeAt(o,g);return s&&this.shouldParseArrow(me)&&(kt=this.parseArrow(kt))?(this.checkDestructuringPrivate(Ne),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(kt,me,!1),kt):(this.expressionScope.exit(),me.length||this.unexpected(this.state.lastTokStartLoc),ut&&this.unexpected(ut),ze&&this.unexpected(ze),this.checkExpressionErrors(Ne,!0),this.toReferencedListDeep(me,!0),me.length>1?(D=this.startNodeAt(Z,oe),D.expressions=me,this.finishNode(D,"SequenceExpression"),this.resetEndLocation(D,Ot)):D=me[0],this.wrapParenthesis(o,g,D))}wrapParenthesis(s,o,g){if(!this.options.createParenthesizedExpressions)return this.addExtra(g,"parenthesized",!0),this.addExtra(g,"parenStart",s),this.takeSurroundingComments(g,s,this.state.lastTokEndLoc.index),g;let D=this.startNodeAt(s,o);return D.expression=g,this.finishNode(D,"ParenthesizedExpression"),D}shouldParseArrow(s){return!this.canInsertSemicolon()}parseArrow(s){if(this.eat(19))return s}parseParenItem(s,o,g){return s}parseNewOrNewTarget(){let s=this.startNode();if(this.next(),this.match(16)){let o=this.createIdentifier(this.startNodeAtNode(s),"new");this.next();let g=this.parseMetaProperty(s,o,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.raise(f.UnexpectedNewTarget,{at:g}),g}return this.parseNew(s)}parseNew(s){if(this.parseNewCallee(s),this.eat(10)){let o=this.parseExprList(11);this.toReferencedList(o),s.arguments=o}else s.arguments=[];return this.finishNode(s,"NewExpression")}parseNewCallee(s){s.callee=this.parseNoCallExpr(),s.callee.type==="Import"?this.raise(f.ImportCallNotNewExpression,{at:s.callee}):this.isOptionalChain(s.callee)?this.raise(f.OptionalChainingNoNew,{at:this.state.lastTokEndLoc}):this.eat(18)&&this.raise(f.OptionalChainingNoNew,{at:this.state.startLoc})}parseTemplateElement(s){let{start:o,startLoc:g,end:D,value:B}=this.state,H=o+1,Z=this.startNodeAt(H,r(g,1));B===null&&(s||this.raise(f.InvalidEscapeSequenceTemplate,{at:r(g,2)}));let oe=this.match(24),me=oe?-1:-2,Ne=D+me;return Z.value={raw:this.input.slice(H,Ne).replace(/\r\n?/g,`
|
|
2147
|
-
`),cooked:B===null?null:B.slice(1,me)},Z.tail=oe,this.next(),this.finishNode(Z,"TemplateElement"),this.resetEndLocation(Z,r(this.state.lastTokEndLoc,me)),Z}parseTemplate(s){let o=this.startNode();o.expressions=[];let g=this.parseTemplateElement(s);for(o.quasis=[g];!g.tail;)o.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),o.quasis.push(g=this.parseTemplateElement(s));return this.finishNode(o,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(s,o,g,D){g&&this.expectPlugin("recordAndTuple");let B=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let H=Object.create(null),Z=!0,oe=this.startNode();for(oe.properties=[],this.next();!this.match(s);){if(Z)Z=!1;else if(this.expect(12),this.match(s)){this.addTrailingCommaExtraToNode(oe);break}let Ne;o?Ne=this.parseBindingProperty():(Ne=this.parsePropertyDefinition(D),this.checkProto(Ne,g,H,D)),g&&!this.isObjectProperty(Ne)&&Ne.type!=="SpreadElement"&&this.raise(f.InvalidRecordProperty,{at:Ne}),Ne.shorthand&&this.addExtra(Ne,"shorthand",!0),oe.properties.push(Ne)}this.next(),this.state.inFSharpPipelineDirectBody=B;let me="ObjectExpression";return o?me="ObjectPattern":g&&(me="RecordExpression"),this.finishNode(oe,me)}addTrailingCommaExtraToNode(s){this.addExtra(s,"trailingComma",this.state.lastTokStart),this.addExtra(s,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(s){return!s.computed&&s.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(s){let o=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(f.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)o.push(this.parseDecorator());let g=this.startNode(),D,B,H=!1,Z=!1;if(this.match(21))return o.length&&this.unexpected(),this.parseSpread();o.length&&(g.decorators=o,o=[]),g.method=!1,s&&(D=this.state.start,B=this.state.startLoc);let oe=this.eat(55);this.parsePropertyNamePrefixOperator(g);let me=this.state.containsEsc,Ne=this.parsePropertyName(g,s);if(!oe&&!me&&this.maybeAsyncOrAccessorProp(g)){let ze=Ne.name;ze!=="async"||this.hasPrecedingLineBreak()||(H=!0,this.resetPreviousNodeTrailingComments(Ne),oe=this.eat(55),this.parsePropertyName(g)),ze!=="get"&&ze!=="set"||(Z=!0,this.resetPreviousNodeTrailingComments(Ne),g.kind=ze,this.match(55)&&(oe=!0,this.raise(f.AccessorIsGenerator,{at:this.state.curPosition(),kind:ze}),this.next()),this.parsePropertyName(g))}return this.parseObjPropValue(g,D,B,oe,H,!1,Z,s),g}getGetterSetterExpectedParamCount(s){return s.kind==="get"?0:1}getObjectOrClassMethodParams(s){return s.params}checkGetterSetterParams(s){var o;let g=this.getGetterSetterExpectedParamCount(s),D=this.getObjectOrClassMethodParams(s);D.length!==g&&this.raise(s.kind==="get"?f.BadGetterArity:f.BadSetterArity,{at:s}),s.kind==="set"&&((o=D[D.length-1])==null?void 0:o.type)==="RestElement"&&this.raise(f.BadSetterRestParameter,{at:s})}parseObjectMethod(s,o,g,D,B){return B?(this.parseMethod(s,o,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(s),s):g||o||this.match(10)?(D&&this.unexpected(),s.kind="method",s.method=!0,this.parseMethod(s,o,g,!1,!1,"ObjectMethod")):void 0}parseObjectProperty(s,o,g,D,B){if(s.shorthand=!1,this.eat(14))return s.value=D?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(B),this.finishNode(s,"ObjectProperty");if(!s.computed&&s.key.type==="Identifier"){if(this.checkReservedWord(s.key.name,s.key.loc.start,!0,!1),D)s.value=this.parseMaybeDefault(o,g,ar(s.key));else if(this.match(29)){let H=this.state.startLoc;B!=null?B.shorthandAssignLoc===null&&(B.shorthandAssignLoc=H):this.raise(f.InvalidCoverInitializedName,{at:H}),s.value=this.parseMaybeDefault(o,g,ar(s.key))}else s.value=ar(s.key);return s.shorthand=!0,this.finishNode(s,"ObjectProperty")}}parseObjPropValue(s,o,g,D,B,H,Z,oe){let me=this.parseObjectMethod(s,D,B,H,Z)||this.parseObjectProperty(s,o,g,H,oe);return me||this.unexpected(),me}parsePropertyName(s,o){if(this.eat(0))s.computed=!0,s.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:g,value:D}=this.state,B;if(z(g))B=this.parseIdentifier(!0);else switch(g){case 130:B=this.parseNumericLiteral(D);break;case 129:B=this.parseStringLiteral(D);break;case 131:B=this.parseBigIntLiteral(D);break;case 132:B=this.parseDecimalLiteral(D);break;case 134:{let H=this.state.startLoc;o!=null?o.privateKeyLoc===null&&(o.privateKeyLoc=H):this.raise(f.UnexpectedPrivateField,{at:H}),B=this.parsePrivateName();break}default:throw this.unexpected()}s.key=B,g!==134&&(s.computed=!1)}return s.key}initFunction(s,o){s.id=null,s.generator=!1,s.async=!!o}parseMethod(s,o,g,D,B,H,Z=!1){this.initFunction(s,g),s.generator=!!o;let oe=D;return this.scope.enter(18|(Z?64:0)|(B?32:0)),this.prodParam.enter(zt(g,s.generator)),this.parseFunctionParams(s,oe),this.parseFunctionBodyAndFinish(s,H,!0),this.prodParam.exit(),this.scope.exit(),s}parseArrayLike(s,o,g,D){g&&this.expectPlugin("recordAndTuple");let B=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let H=this.startNode();return this.next(),H.elements=this.parseExprList(s,!g,D,H),this.state.inFSharpPipelineDirectBody=B,this.finishNode(H,g?"TupleExpression":"ArrayExpression")}parseArrowExpression(s,o,g,D){this.scope.enter(6);let B=zt(g,!1);!this.match(5)&&this.prodParam.hasIn&&(B|=8),this.prodParam.enter(B),this.initFunction(s,g);let H=this.state.maybeInArrowParameters;return o&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(s,o,D)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(s,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=H,this.finishNode(s,"ArrowFunctionExpression")}setArrowFunctionParameters(s,o,g){this.toAssignableList(o,g,!1),s.params=o}parseFunctionBodyAndFinish(s,o,g=!1){this.parseFunctionBody(s,!1,g),this.finishNode(s,o)}parseFunctionBody(s,o,g=!1){let D=o&&!this.match(5);if(this.expressionScope.enter(Nt()),D)s.body=this.parseMaybeAssign(),this.checkParams(s,!1,o,!1);else{let B=this.state.strict,H=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),s.body=this.parseBlock(!0,!1,Z=>{let oe=!this.isSimpleParamList(s.params);Z&&oe&&this.raise(f.IllegalLanguageModeDirective,{at:s.kind!=="method"&&s.kind!=="constructor"||!s.key?s:s.key.loc.end});let me=!B&&this.state.strict;this.checkParams(s,!(this.state.strict||o||g||oe),o,me),this.state.strict&&s.id&&this.checkIdentifier(s.id,65,me)}),this.prodParam.exit(),this.state.labels=H}this.expressionScope.exit()}isSimpleParameter(s){return s.type==="Identifier"}isSimpleParamList(s){for(let o=0,g=s.length;o<g;o++)if(!this.isSimpleParameter(s[o]))return!1;return!0}checkParams(s,o,g,D=!0){let B=!o&&new Set,H={type:"FormalParameters"};for(let Z of s.params)this.checkLVal(Z,{in:H,binding:5,checkClashes:B,strictModeChanged:D})}parseExprList(s,o,g,D){let B=[],H=!0;for(;!this.eat(s);){if(H)H=!1;else if(this.expect(12),this.match(s)){D&&this.addTrailingCommaExtraToNode(D),this.next();break}B.push(this.parseExprListItem(o,g))}return B}parseExprListItem(s,o,g){let D;if(this.match(12))s||this.raise(f.UnexpectedToken,{at:this.state.curPosition(),unexpected:","}),D=null;else if(this.match(21)){let B=this.state.start,H=this.state.startLoc;D=this.parseParenItem(this.parseSpread(o),B,H)}else if(this.match(17)){this.expectPlugin("partialApplication"),g||this.raise(f.UnexpectedArgumentPlaceholder,{at:this.state.startLoc});let B=this.startNode();this.next(),D=this.finishNode(B,"ArgumentPlaceholder")}else D=this.parseMaybeAssignAllowIn(o,this.parseParenItem);return D}parseIdentifier(s){let o=this.startNode(),g=this.parseIdentifierName(o.start,s);return this.createIdentifier(o,g)}createIdentifier(s,o){return s.name=o,s.loc.identifierName=o,this.finishNode(s,"Identifier")}parseIdentifierName(s,o){let g,{startLoc:D,type:B}=this.state;if(!z(B))throw this.unexpected();g=this.state.value;let H=B<=92;return o?H&&this.replaceToken(128):this.checkReservedWord(g,D,H,!1),this.next(),g}checkReservedWord(s,o,g,D){if(!(s.length>10)&&!!function(B){return Lt.has(B)}(s)){if(s==="yield"){if(this.prodParam.hasYield)return void this.raise(f.YieldBindingIdentifier,{at:o})}else if(s==="await"){if(this.prodParam.hasAwait)return void this.raise(f.AwaitBindingIdentifier,{at:o});if(this.scope.inStaticBlock)return void this.raise(f.AwaitBindingIdentifierInStaticBlock,{at:o});this.expressionScope.recordAsyncArrowParametersError({at:o})}else if(s==="arguments"&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(f.ArgumentsInClass,{at:o});if(g&&function(B){return q.has(B)}(s))return void this.raise(f.UnexpectedKeyword,{at:o,keyword:s});(this.state.strict?D?rt:Oe:je)(s,this.inModule)&&this.raise(f.UnexpectedReservedWord,{at:o,reservedWord:s})}}isAwaitAllowed(){return!!this.prodParam.hasAwait||!(!this.options.allowAwaitOutsideFunction||this.scope.inFunction)}parseAwait(s,o){let g=this.startNodeAt(s,o);return this.expressionScope.recordParameterInitializerError(f.AwaitExpressionFormalParameter,{at:g}),this.eat(55)&&this.raise(f.ObsoleteAwaitStar,{at:g}),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(g.argument=this.parseMaybeUnary(null,!0)),this.finishNode(g,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:s}=this.state;return s===53||s===10||s===0||ye(s)||s===133||s===56||this.hasPlugin("v8intrinsic")&&s===54}parseYield(){let s=this.startNode();this.expressionScope.recordParameterInitializerError(f.YieldInParameter,{at:s}),this.next();let o=!1,g=null;if(!this.hasPrecedingLineBreak())switch(o=this.eat(55),this.state.type){case 13:case 135:case 8:case 11:case 3:case 9:case 14:case 12:if(!o)break;default:g=this.parseMaybeAssign()}return s.delegate=o,s.argument=g,this.finishNode(s,"YieldExpression")}checkPipelineAtInfixOperator(s,o){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&s.type==="SequenceExpression"&&this.raise(f.PipelineHeadSequenceExpression,{at:o})}parseSmartPipelineBodyInStyle(s,o,g){let D=this.startNodeAt(o,g);return this.isSimpleReference(s)?(D.callee=s,this.finishNode(D,"PipelineBareFunction")):(this.checkSmartPipeTopicBodyEarlyErrors(g),D.expression=s,this.finishNode(D,"PipelineTopicExpression"))}isSimpleReference(s){switch(s.type){case"MemberExpression":return!s.computed&&this.isSimpleReference(s.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(s){if(this.match(19))throw this.raise(f.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(f.PipelineTopicUnused,{at:s})}withTopicBindingContext(s){let o=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return s()}finally{this.state.topicContext=o}}withSmartMixTopicForbiddingContext(s){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return s();{let o=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return s()}finally{this.state.topicContext=o}}}withSoloAwaitPermittingContext(s){let o=this.state.soloAwait;this.state.soloAwait=!0;try{return s()}finally{this.state.soloAwait=o}}allowInAnd(s){let o=this.prodParam.currentFlags();if(8&~o){this.prodParam.enter(8|o);try{return s()}finally{this.prodParam.exit()}}return s()}disallowInAnd(s){let o=this.prodParam.currentFlags();if(8&o){this.prodParam.enter(-9&o);try{return s()}finally{this.prodParam.exit()}}return s()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(s){let o=this.state.start,g=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let D=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let B=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),o,g,s);return this.state.inFSharpPipelineDirectBody=D,B}parseModuleExpression(){this.expectPlugin("moduleBlocks");let s=this.startNode();this.next(),this.eat(5);let o=this.initializeScopes(!0);this.enterInitialScopes();let g=this.startNode();try{s.body=this.parseProgram(g,8,"module")}finally{o()}return this.eat(8),this.finishNode(s,"ModuleExpression")}parsePropertyNamePrefixOperator(s){}}{parseTopLevel(s,o){return s.program=this.parseProgram(o),s.comments=this.state.comments,this.options.tokens&&(s.tokens=function(g,D){for(let B=0;B<g.length;B++){let H=g[B],{type:Z}=H;if(typeof Z=="number"){if(Z===134){let{loc:oe,start:me,value:Ne,end:ze}=H,ut=me+1,dt=r(oe.start,1);g.splice(B,1,new Le({type:Y(27),value:"#",start:me,end:ut,startLoc:oe.start,endLoc:dt}),new Le({type:Y(128),value:Ne,start:ut,end:ze,startLoc:dt,endLoc:oe.end})),B++;continue}if(ye(Z)){let{loc:oe,start:me,value:Ne,end:ze}=H,ut=me+1,dt=r(oe.start,1),Ot,kt,Wt,Ht,fr;Ot=D.charCodeAt(me)===96?new Le({type:Y(22),value:"`",start:me,end:ut,startLoc:oe.start,endLoc:dt}):new Le({type:Y(8),value:"}",start:me,end:ut,startLoc:oe.start,endLoc:dt}),Z===24?(Wt=ze-1,Ht=r(oe.end,-1),kt=Ne===null?null:Ne.slice(1,-1),fr=new Le({type:Y(22),value:"`",start:Wt,end:ze,startLoc:Ht,endLoc:oe.end})):(Wt=ze-2,Ht=r(oe.end,-2),kt=Ne===null?null:Ne.slice(1,-2),fr=new Le({type:Y(23),value:"${",start:Wt,end:ze,startLoc:Ht,endLoc:oe.end})),g.splice(B,1,Ot,new Le({type:Y(20),value:kt,start:ut,end:Wt,startLoc:dt,endLoc:Ht}),fr),B+=2;continue}H.type=Y(Z)}}return g}(this.tokens,this.input)),this.finishNode(s,"File")}parseProgram(s,o=135,g=this.options.sourceType){if(s.sourceType=g,s.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(s,!0,!0,o),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[D,B]of Array.from(this.scope.undefinedExports))this.raise(f.ModuleExportUndefined,{at:B,localName:D});return this.finishNode(s,"Program")}stmtToDirective(s){let o=s;o.type="Directive",o.value=o.expression,delete o.expression;let g=o.value,D=g.value,B=this.input.slice(g.start,g.end),H=g.value=B.slice(1,-1);return this.addExtra(g,"raw",B),this.addExtra(g,"rawValue",H),this.addExtra(g,"expressionValue",D),g.type="DirectiveLiteral",o}parseInterpreterDirective(){if(!this.match(28))return null;let s=this.startNode();return s.value=this.state.value,this.next(),this.finishNode(s,"InterpreterDirective")}isLet(s){return!!this.isContextual(99)&&this.isLetKeyword(s)}isLetKeyword(s){let o=this.nextTokenStart(),g=this.codePointAtPos(o);if(g===92||g===91)return!0;if(s)return!1;if(g===123)return!0;if(Se(g)){if(Ln.lastIndex=o,Ln.test(this.input)){let D=this.codePointAtPos(Ln.lastIndex);if(!Ve(D)&&D!==92)return!1}return!0}return!1}parseStatement(s,o){return this.match(26)&&this.parseDecorators(!0),this.parseStatementContent(s,o)}parseStatementContent(s,o){let g=this.state.type,D=this.startNode(),B;switch(this.isLet(s)&&(g=74,B="let"),g){case 60:return this.parseBreakContinueStatement(D,!0);case 63:return this.parseBreakContinueStatement(D,!1);case 64:return this.parseDebuggerStatement(D);case 90:return this.parseDoStatement(D);case 91:return this.parseForStatement(D);case 68:if(this.lookaheadCharCode()===46)break;return s&&(this.state.strict?this.raise(f.StrictFunction,{at:this.state.startLoc}):s!=="if"&&s!=="label"&&this.raise(f.SloppyFunction,{at:this.state.startLoc})),this.parseFunctionStatement(D,!1,!s);case 80:return s&&this.unexpected(),this.parseClass(D,!0);case 69:return this.parseIfStatement(D);case 70:return this.parseReturnStatement(D);case 71:return this.parseSwitchStatement(D);case 72:return this.parseThrowStatement(D);case 73:return this.parseTryStatement(D);case 75:case 74:return B=B||this.state.value,s&&B!=="var"&&this.raise(f.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(D,B);case 92:return this.parseWhileStatement(D);case 76:return this.parseWithStatement(D);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(D);case 83:{let oe=this.lookaheadCharCode();if(oe===40||oe===46)break}case 82:{let oe;return this.options.allowImportExportEverywhere||o||this.raise(f.UnexpectedImportExport,{at:this.state.startLoc}),this.next(),g===83?(oe=this.parseImport(D),oe.type!=="ImportDeclaration"||oe.importKind&&oe.importKind!=="value"||(this.sawUnambiguousESM=!0)):(oe=this.parseExport(D),(oe.type!=="ExportNamedDeclaration"||oe.exportKind&&oe.exportKind!=="value")&&(oe.type!=="ExportAllDeclaration"||oe.exportKind&&oe.exportKind!=="value")&&oe.type!=="ExportDefaultDeclaration"||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(D),oe}default:if(this.isAsyncFunction())return s&&this.raise(f.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(D,!0,!s)}let H=this.state.value,Z=this.parseExpression();return K(g)&&Z.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(D,H,Z,s):this.parseExpressionStatement(D,Z)}assertModuleNodeAllowed(s){this.options.allowImportExportEverywhere||this.inModule||this.raise(f.ImportOutsideModule,{at:s})}takeDecorators(s){let o=this.state.decoratorStack[this.state.decoratorStack.length-1];o.length&&(s.decorators=o,this.resetStartLocationFromNode(s,o[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[])}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(s){let o=this.state.decoratorStack[this.state.decoratorStack.length-1];for(;this.match(26);){let g=this.parseDecorator();o.push(g)}if(this.match(82))s||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(f.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(f.UnexpectedLeadingDecorator,{at:this.state.startLoc})}parseDecorator(){this.expectOnePlugin(["decorators-legacy","decorators"]);let s=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);let o=this.state.start,g=this.state.startLoc,D;if(this.match(10)){let B=this.state.start,H=this.state.startLoc;this.next(),D=this.parseExpression(),this.expect(11),D=this.wrapParenthesis(B,H,D)}else for(D=this.parseIdentifier(!1);this.eat(16);){let B=this.startNodeAt(o,g);B.object=D,B.property=this.parseIdentifier(!0),B.computed=!1,D=this.finishNode(B,"MemberExpression")}s.expression=this.parseMaybeDecoratorArguments(D),this.state.decoratorStack.pop()}else s.expression=this.parseExprSubscripts();return this.finishNode(s,"Decorator")}parseMaybeDecoratorArguments(s){if(this.eat(10)){let o=this.startNodeAtNode(s);return o.callee=s,o.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(o.arguments),this.finishNode(o,"CallExpression")}return s}parseBreakContinueStatement(s,o){return this.next(),this.isLineTerminator()?s.label=null:(s.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(s,o),this.finishNode(s,o?"BreakStatement":"ContinueStatement")}verifyBreakContinue(s,o){let g;for(g=0;g<this.state.labels.length;++g){let D=this.state.labels[g];if((s.label==null||D.name===s.label.name)&&(D.kind!=null&&(o||D.kind==="loop")||s.label&&o))break}if(g===this.state.labels.length){let D=o?"BreakStatement":"ContinueStatement";this.raise(f.IllegalBreakContinue,{at:s,type:D})}}parseDebuggerStatement(s){return this.next(),this.semicolon(),this.finishNode(s,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let s=this.parseExpression();return this.expect(11),s}parseDoStatement(s){return this.next(),this.state.labels.push(li),s.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("do")),this.state.labels.pop(),this.expect(92),s.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(s,"DoWhileStatement")}parseForStatement(s){this.next(),this.state.labels.push(li);let o=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(o=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return o!==null&&this.unexpected(o),this.parseFor(s,null);let g=this.isContextual(99),D=g&&this.isLetKeyword();if(this.match(74)||this.match(75)||D){let me=this.startNode(),Ne=D?"let":this.state.value;return this.next(),this.parseVar(me,!0,Ne),this.finishNode(me,"VariableDeclaration"),(this.match(58)||this.isContextual(101))&&me.declarations.length===1?this.parseForIn(s,me,o):(o!==null&&this.unexpected(o),this.parseFor(s,me))}let B=this.isContextual(95),H=new Qt,Z=this.parseExpression(!0,H),oe=this.isContextual(101);if(oe&&(g&&this.raise(f.ForOfLet,{at:Z}),o===null&&B&&Z.type==="Identifier"&&this.raise(f.ForOfAsync,{at:Z})),oe||this.match(58)){this.checkDestructuringPrivate(H),this.toAssignable(Z,!0);let me=oe?"ForOfStatement":"ForInStatement";return this.checkLVal(Z,{in:{type:me}}),this.parseForIn(s,Z,o)}return this.checkExpressionErrors(H,!0),o!==null&&this.unexpected(o),this.parseFor(s,Z)}parseFunctionStatement(s,o,g){return this.next(),this.parseFunction(s,1|(g?0:2),o)}parseIfStatement(s){return this.next(),s.test=this.parseHeaderExpression(),s.consequent=this.parseStatement("if"),s.alternate=this.eat(66)?this.parseStatement("if"):null,this.finishNode(s,"IfStatement")}parseReturnStatement(s){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(f.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?s.argument=null:(s.argument=this.parseExpression(),this.semicolon()),this.finishNode(s,"ReturnStatement")}parseSwitchStatement(s){this.next(),s.discriminant=this.parseHeaderExpression();let o=s.cases=[],g,D;for(this.expect(5),this.state.labels.push(Ls),this.scope.enter(0);!this.match(8);)if(this.match(61)||this.match(65)){let B=this.match(61);g&&this.finishNode(g,"SwitchCase"),o.push(g=this.startNode()),g.consequent=[],this.next(),B?g.test=this.parseExpression():(D&&this.raise(f.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),D=!0,g.test=null),this.expect(14)}else g?g.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),g&&this.finishNode(g,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(s,"SwitchStatement")}parseThrowStatement(s){return this.next(),this.hasPrecedingLineBreak()&&this.raise(f.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),s.argument=this.parseExpression(),this.semicolon(),this.finishNode(s,"ThrowStatement")}parseCatchClauseParam(){let s=this.parseBindingAtom(),o=s.type==="Identifier";return this.scope.enter(o?8:0),this.checkLVal(s,{in:{type:"CatchClause"},binding:9,allowingSloppyLetBinding:!0}),s}parseTryStatement(s){if(this.next(),s.block=this.parseBlock(),s.handler=null,this.match(62)){let o=this.startNode();this.next(),this.match(10)?(this.expect(10),o.param=this.parseCatchClauseParam(),this.expect(11)):(o.param=null,this.scope.enter(0)),o.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),s.handler=this.finishNode(o,"CatchClause")}return s.finalizer=this.eat(67)?this.parseBlock():null,s.handler||s.finalizer||this.raise(f.NoCatchOrFinally,{at:s}),this.finishNode(s,"TryStatement")}parseVarStatement(s,o,g=!1){return this.next(),this.parseVar(s,!1,o,g),this.semicolon(),this.finishNode(s,"VariableDeclaration")}parseWhileStatement(s){return this.next(),s.test=this.parseHeaderExpression(),this.state.labels.push(li),s.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("while")),this.state.labels.pop(),this.finishNode(s,"WhileStatement")}parseWithStatement(s){return this.state.strict&&this.raise(f.StrictWith,{at:this.state.startLoc}),this.next(),s.object=this.parseHeaderExpression(),s.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("with")),this.finishNode(s,"WithStatement")}parseEmptyStatement(s){return this.next(),this.finishNode(s,"EmptyStatement")}parseLabeledStatement(s,o,g,D){for(let Z of this.state.labels)Z.name===o&&this.raise(f.LabelRedeclaration,{at:g,labelName:o});let B=(H=this.state.type)>=90&&H<=92?"loop":this.match(71)?"switch":null;var H;for(let Z=this.state.labels.length-1;Z>=0;Z--){let oe=this.state.labels[Z];if(oe.statementStart!==s.start)break;oe.statementStart=this.state.start,oe.kind=B}return this.state.labels.push({name:o,kind:B,statementStart:this.state.start}),s.body=this.parseStatement(D?D.indexOf("label")===-1?D+"label":D:"label"),this.state.labels.pop(),s.label=g,this.finishNode(s,"LabeledStatement")}parseExpressionStatement(s,o){return s.expression=o,this.semicolon(),this.finishNode(s,"ExpressionStatement")}parseBlock(s=!1,o=!0,g){let D=this.startNode();return s&&this.state.strictErrors.clear(),this.expect(5),o&&this.scope.enter(0),this.parseBlockBody(D,s,!1,8,g),o&&this.scope.exit(),this.finishNode(D,"BlockStatement")}isValidDirective(s){return s.type==="ExpressionStatement"&&s.expression.type==="StringLiteral"&&!s.expression.extra.parenthesized}parseBlockBody(s,o,g,D,B){let H=s.body=[],Z=s.directives=[];this.parseBlockOrModuleBlockBody(H,o?Z:void 0,g,D,B)}parseBlockOrModuleBlockBody(s,o,g,D,B){let H=this.state.strict,Z=!1,oe=!1;for(;!this.match(D);){let me=this.parseStatement(null,g);if(o&&!oe){if(this.isValidDirective(me)){let Ne=this.stmtToDirective(me);o.push(Ne),Z||Ne.value.value!=="use strict"||(Z=!0,this.setStrict(!0));continue}oe=!0,this.state.strictErrors.clear()}s.push(me)}B&&B.call(this,Z),H||this.setStrict(!1),this.next()}parseFor(s,o){return s.init=o,this.semicolon(!1),s.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),s.update=this.match(11)?null:this.parseExpression(),this.expect(11),s.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("for")),this.scope.exit(),this.state.labels.pop(),this.finishNode(s,"ForStatement")}parseForIn(s,o,g){let D=this.match(58);return this.next(),D?g!==null&&this.unexpected(g):s.await=g!==null,o.type!=="VariableDeclaration"||o.declarations[0].init==null||D&&!this.state.strict&&o.kind==="var"&&o.declarations[0].id.type==="Identifier"||this.raise(f.ForInOfLoopInitializer,{at:o,type:D?"ForInStatement":"ForOfStatement"}),o.type==="AssignmentPattern"&&this.raise(f.InvalidLhs,{at:o,ancestor:{type:"ForStatement"}}),s.left=o,s.right=D?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),s.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("for")),this.scope.exit(),this.state.labels.pop(),this.finishNode(s,D?"ForInStatement":"ForOfStatement")}parseVar(s,o,g,D=!1){let B=s.declarations=[];for(s.kind=g;;){let H=this.startNode();if(this.parseVarId(H,g),H.init=this.eat(29)?o?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,H.init!==null||D||(H.id.type==="Identifier"||o&&(this.match(58)||this.isContextual(101))?g!=="const"||this.match(58)||this.isContextual(101)||this.raise(f.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"}):this.raise(f.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"})),B.push(this.finishNode(H,"VariableDeclarator")),!this.eat(12))break}return s}parseVarId(s,o){s.id=this.parseBindingAtom(),this.checkLVal(s.id,{in:{type:"VariableDeclarator"},binding:o==="var"?5:9})}parseFunction(s,o=0,g=!1){let D=1&o,B=2&o,H=!(!D||4&o);this.initFunction(s,g),this.match(55)&&B&&this.raise(f.GeneratorInSingleStatementContext,{at:this.state.startLoc}),s.generator=this.eat(55),D&&(s.id=this.parseFunctionId(H));let Z=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(zt(g,s.generator)),D||(s.id=this.parseFunctionId()),this.parseFunctionParams(s,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(s,D?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),D&&!B&&this.registerFunctionStatementId(s),this.state.maybeInArrowParameters=Z,s}parseFunctionId(s){return s||K(this.state.type)?this.parseIdentifier():null}parseFunctionParams(s,o){this.expect(10),this.expressionScope.enter(new $t(3)),s.params=this.parseBindingList(11,41,!1,o),this.expressionScope.exit()}registerFunctionStatementId(s){s.id&&this.scope.declareName(s.id.name,this.state.strict||s.generator||s.async?this.scope.treatFunctionsAsVar?5:9:17,s.id.loc.start)}parseClass(s,o,g){this.next(),this.takeDecorators(s);let D=this.state.strict;return this.state.strict=!0,this.parseClassId(s,o,g),this.parseClassSuper(s),s.body=this.parseClassBody(!!s.superClass,D),this.finishNode(s,o?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(s){return!(s.computed||s.static||s.key.name!=="constructor"&&s.key.value!=="constructor")}parseClassBody(s,o){this.classScope.enter();let g={hadConstructor:!1,hadSuperClass:s},D=[],B=this.startNode();if(B.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(D.length>0)throw this.raise(f.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){D.push(this.parseDecorator());continue}let H=this.startNode();D.length&&(H.decorators=D,this.resetStartLocationFromNode(H,D[0]),D=[]),this.parseClassMember(B,H,g),H.kind==="constructor"&&H.decorators&&H.decorators.length>0&&this.raise(f.DecoratorConstructor,{at:H})}}),this.state.strict=o,this.next(),D.length)throw this.raise(f.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(B,"ClassBody")}parseClassMemberFromModifier(s,o){let g=this.parseIdentifier(!0);if(this.isClassMethod()){let D=o;return D.kind="method",D.computed=!1,D.key=g,D.static=!1,this.pushClassMethod(s,D,!1,!1,!1,!1),!0}if(this.isClassProperty()){let D=o;return D.computed=!1,D.key=g,D.static=!1,s.body.push(this.parseClassProperty(D)),!0}return this.resetPreviousNodeTrailingComments(g),!1}parseClassMember(s,o,g){let D=this.isContextual(104);if(D){if(this.parseClassMemberFromModifier(s,o))return;if(this.eat(5))return void this.parseClassStaticBlock(s,o)}this.parseClassMemberWithIsStatic(s,o,g,D)}parseClassMemberWithIsStatic(s,o,g,D){let B=o,H=o,Z=o,oe=o,me=o,Ne=B,ze=B;if(o.static=D,this.parsePropertyNamePrefixOperator(o),this.eat(55)){Ne.kind="method";let Wt=this.match(134);return this.parseClassElementName(Ne),Wt?void this.pushClassPrivateMethod(s,H,!0,!1):(this.isNonstaticConstructor(B)&&this.raise(f.ConstructorIsGenerator,{at:B.key}),void this.pushClassMethod(s,B,!0,!1,!1,!1))}let ut=K(this.state.type)&&!this.state.containsEsc,dt=this.match(134),Ot=this.parseClassElementName(o),kt=this.state.startLoc;if(this.parsePostMemberNameModifiers(ze),this.isClassMethod()){if(Ne.kind="method",dt)return void this.pushClassPrivateMethod(s,H,!1,!1);let Wt=this.isNonstaticConstructor(B),Ht=!1;Wt&&(B.kind="constructor",g.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(f.DuplicateConstructor,{at:Ot}),Wt&&this.hasPlugin("typescript")&&o.override&&this.raise(f.OverrideOnConstructor,{at:Ot}),g.hadConstructor=!0,Ht=g.hadSuperClass),this.pushClassMethod(s,B,!1,!1,Wt,Ht)}else if(this.isClassProperty())dt?this.pushClassPrivateProperty(s,oe):this.pushClassProperty(s,Z);else if(ut&&Ot.name==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(Ot);let Wt=this.eat(55);ze.optional&&this.unexpected(kt),Ne.kind="method";let Ht=this.match(134);this.parseClassElementName(Ne),this.parsePostMemberNameModifiers(ze),Ht?this.pushClassPrivateMethod(s,H,Wt,!0):(this.isNonstaticConstructor(B)&&this.raise(f.ConstructorIsAsync,{at:B.key}),this.pushClassMethod(s,B,Wt,!0,!1,!1))}else if(!ut||Ot.name!=="get"&&Ot.name!=="set"||this.match(55)&&this.isLineTerminator())if(ut&&Ot.name==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(Ot);let Wt=this.match(134);this.parseClassElementName(Z),this.pushClassAccessorProperty(s,me,Wt)}else this.isLineTerminator()?dt?this.pushClassPrivateProperty(s,oe):this.pushClassProperty(s,Z):this.unexpected();else{this.resetPreviousNodeTrailingComments(Ot),Ne.kind=Ot.name;let Wt=this.match(134);this.parseClassElementName(B),Wt?this.pushClassPrivateMethod(s,H,!1,!1):(this.isNonstaticConstructor(B)&&this.raise(f.ConstructorIsAccessor,{at:B.key}),this.pushClassMethod(s,B,!1,!1,!1,!1)),this.checkGetterSetterParams(B)}}parseClassElementName(s){let{type:o,value:g}=this.state;if(o!==128&&o!==129||!s.static||g!=="prototype"||this.raise(f.StaticPrototype,{at:this.state.startLoc}),o===134){g==="constructor"&&this.raise(f.ConstructorClassPrivateField,{at:this.state.startLoc});let D=this.parsePrivateName();return s.key=D,D}return this.parsePropertyName(s)}parseClassStaticBlock(s,o){var g;this.scope.enter(208);let D=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let B=o.body=[];this.parseBlockOrModuleBlockBody(B,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=D,s.body.push(this.finishNode(o,"StaticBlock")),(g=o.decorators)!=null&&g.length&&this.raise(f.DecoratorStaticBlock,{at:o})}pushClassProperty(s,o){o.computed||o.key.name!=="constructor"&&o.key.value!=="constructor"||this.raise(f.ConstructorClassField,{at:o.key}),s.body.push(this.parseClassProperty(o))}pushClassPrivateProperty(s,o){let g=this.parseClassPrivateProperty(o);s.body.push(g),this.classScope.declarePrivateName(this.getPrivateNameSV(g.key),0,g.key.loc.start)}pushClassAccessorProperty(s,o,g){if(!g&&!o.computed){let B=o.key;B.name!=="constructor"&&B.value!=="constructor"||this.raise(f.ConstructorClassField,{at:B})}let D=this.parseClassAccessorProperty(o);s.body.push(D),g&&this.classScope.declarePrivateName(this.getPrivateNameSV(D.key),0,D.key.loc.start)}pushClassMethod(s,o,g,D,B,H){s.body.push(this.parseMethod(o,g,D,B,H,"ClassMethod",!0))}pushClassPrivateMethod(s,o,g,D){let B=this.parseMethod(o,g,D,!1,!1,"ClassPrivateMethod",!0);s.body.push(B);let H=B.kind==="get"?B.static?6:2:B.kind==="set"?B.static?5:1:0;this.declareClassPrivateMethodInScope(B,H)}declareClassPrivateMethodInScope(s,o){this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),o,s.key.loc.start)}parsePostMemberNameModifiers(s){}parseClassPrivateProperty(s){return this.parseInitializer(s),this.semicolon(),this.finishNode(s,"ClassPrivateProperty")}parseClassProperty(s){return this.parseInitializer(s),this.semicolon(),this.finishNode(s,"ClassProperty")}parseClassAccessorProperty(s){return this.parseInitializer(s),this.semicolon(),this.finishNode(s,"ClassAccessorProperty")}parseInitializer(s){this.scope.enter(80),this.expressionScope.enter(Nt()),this.prodParam.enter(0),s.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(s,o,g,D=139){if(K(this.state.type))s.id=this.parseIdentifier(),o&&this.declareNameFromIdentifier(s.id,D);else{if(!g&&o)throw this.raise(f.MissingClassName,{at:this.state.startLoc});s.id=null}}parseClassSuper(s){s.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(s){let o=this.maybeParseExportDefaultSpecifier(s),g=!o||this.eat(12),D=g&&this.eatExportStar(s),B=D&&this.maybeParseExportNamespaceSpecifier(s),H=g&&(!B||this.eat(12)),Z=o||D;if(D&&!B)return o&&this.unexpected(),this.parseExportFrom(s,!0),this.finishNode(s,"ExportAllDeclaration");let oe=this.maybeParseExportNamedSpecifiers(s);if(o&&g&&!D&&!oe||B&&H&&!oe)throw this.unexpected(null,5);let me;if(Z||oe?(me=!1,this.parseExportFrom(s,Z)):me=this.maybeParseExportDeclaration(s),Z||oe||me)return this.checkExport(s,!0,!1,!!s.source),this.finishNode(s,"ExportNamedDeclaration");if(this.eat(65))return s.declaration=this.parseExportDefaultExpression(),this.checkExport(s,!0,!0),this.finishNode(s,"ExportDefaultDeclaration");throw this.unexpected(null,5)}eatExportStar(s){return this.eat(55)}maybeParseExportDefaultSpecifier(s){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");let o=this.startNode();return o.exported=this.parseIdentifier(!0),s.specifiers=[this.finishNode(o,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(s){if(this.isContextual(93)){s.specifiers||(s.specifiers=[]);let o=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),o.exported=this.parseModuleExportName(),s.specifiers.push(this.finishNode(o,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(s){if(this.match(5)){s.specifiers||(s.specifiers=[]);let o=s.exportKind==="type";return s.specifiers.push(...this.parseExportSpecifiers(o)),s.source=null,s.declaration=null,this.hasPlugin("importAssertions")&&(s.assertions=[]),!0}return!1}maybeParseExportDeclaration(s){return!!this.shouldParseExportDeclaration()&&(s.specifiers=[],s.source=null,this.hasPlugin("importAssertions")&&(s.assertions=[]),s.declaration=this.parseExportDeclaration(s),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;let s=this.nextTokenStart();return!Vt.test(this.input.slice(this.state.pos,s))&&this.isUnparsedContextual(s,"function")}parseExportDefaultExpression(){let s=this.startNode(),o=this.isAsyncFunction();if(this.match(68)||o)return this.next(),o&&this.next(),this.parseFunction(s,5,o);if(this.match(80))return this.parseClass(s,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(f.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseDecorators(!1),this.parseClass(s,!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(f.UnsupportedDefaultExport,{at:this.state.startLoc});let g=this.parseMaybeAssignAllowIn();return this.semicolon(),g}parseExportDeclaration(s){return this.parseStatement(null)}isExportDefaultSpecifier(){let{type:s}=this.state;if(K(s)){if(s===95&&!this.state.containsEsc||s===99)return!1;if((s===126||s===125)&&!this.state.containsEsc){let{type:D}=this.lookahead();if(K(D)&&D!==97||D===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let o=this.nextTokenStart(),g=this.isUnparsedContextual(o,"from");if(this.input.charCodeAt(o)===44||K(this.state.type)&&g)return!0;if(this.match(65)&&g){let D=this.input.charCodeAt(this.nextTokenStartSince(o+4));return D===34||D===39}return!1}parseExportFrom(s,o){if(this.eatContextual(97)){s.source=this.parseImportSource(),this.checkExport(s);let g=this.maybeParseImportAssertions();g&&(s.assertions=g)}else o&&this.unexpected();this.semicolon()}shouldParseExportDeclaration(){let{type:s}=this.state;if(s===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(this.getPluginOption("decorators","decoratorsBeforeExport"))throw this.raise(f.DecoratorBeforeExport,{at:this.state.startLoc});return!0}return s===74||s===75||s===68||s===80||this.isLet()||this.isAsyncFunction()}checkExport(s,o,g,D){if(o){if(g){if(this.checkDuplicateExports(s,"default"),this.hasPlugin("exportDefaultFrom")){var B;let H=s.declaration;H.type!=="Identifier"||H.name!=="from"||H.end-H.start!=4||(B=H.extra)!=null&&B.parenthesized||this.raise(f.ExportDefaultFromAsIdentifier,{at:H})}}else if(s.specifiers&&s.specifiers.length)for(let H of s.specifiers){let{exported:Z}=H,oe=Z.type==="Identifier"?Z.name:Z.value;if(this.checkDuplicateExports(H,oe),!D&&H.local){let{local:me}=H;me.type!=="Identifier"?this.raise(f.ExportBindingIsString,{at:H,localName:me.value,exportName:oe}):(this.checkReservedWord(me.name,me.loc.start,!0,!1),this.scope.checkLocalExport(me))}}else if(s.declaration){if(s.declaration.type==="FunctionDeclaration"||s.declaration.type==="ClassDeclaration"){let H=s.declaration.id;if(!H)throw new Error("Assertion failure");this.checkDuplicateExports(s,H.name)}else if(s.declaration.type==="VariableDeclaration")for(let H of s.declaration.declarations)this.checkDeclaration(H.id)}}if(this.state.decoratorStack[this.state.decoratorStack.length-1].length)throw this.raise(f.UnsupportedDecoratorExport,{at:s})}checkDeclaration(s){if(s.type==="Identifier")this.checkDuplicateExports(s,s.name);else if(s.type==="ObjectPattern")for(let o of s.properties)this.checkDeclaration(o);else if(s.type==="ArrayPattern")for(let o of s.elements)o&&this.checkDeclaration(o);else s.type==="ObjectProperty"?this.checkDeclaration(s.value):s.type==="RestElement"?this.checkDeclaration(s.argument):s.type==="AssignmentPattern"&&this.checkDeclaration(s.left)}checkDuplicateExports(s,o){this.exportedIdentifiers.has(o)&&(o==="default"?this.raise(f.DuplicateDefaultExport,{at:s}):this.raise(f.DuplicateExport,{at:s,exportName:o})),this.exportedIdentifiers.add(o)}parseExportSpecifiers(s){let o=[],g=!0;for(this.expect(5);!this.eat(8);){if(g)g=!1;else if(this.expect(12),this.eat(8))break;let D=this.isContextual(126),B=this.match(129),H=this.startNode();H.local=this.parseModuleExportName(),o.push(this.parseExportSpecifier(H,B,s,D))}return o}parseExportSpecifier(s,o,g,D){return this.eatContextual(93)?s.exported=this.parseModuleExportName():o?s.exported=wr(s.local):s.exported||(s.exported=ar(s.local)),this.finishNode(s,"ExportSpecifier")}parseModuleExportName(){if(this.match(129)){let s=this.parseStringLiteral(this.state.value),o=s.value.match(Ms);return o&&this.raise(f.ModuleExportNameHasLoneSurrogate,{at:s,surrogateCharCode:o[0].charCodeAt(0)}),s}return this.parseIdentifier(!0)}parseImport(s){if(s.specifiers=[],!this.match(129)){let g=!this.maybeParseDefaultImportSpecifier(s)||this.eat(12),D=g&&this.maybeParseStarImportSpecifier(s);g&&!D&&this.parseNamedImportSpecifiers(s),this.expectContextual(97)}s.source=this.parseImportSource();let o=this.maybeParseImportAssertions();if(o)s.assertions=o;else{let g=this.maybeParseModuleAttributes();g&&(s.attributes=g)}return this.semicolon(),this.finishNode(s,"ImportDeclaration")}parseImportSource(){return this.match(129)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(s){return K(this.state.type)}parseImportSpecifierLocal(s,o,g){o.local=this.parseIdentifier(),s.specifiers.push(this.finishImportSpecifier(o,g))}finishImportSpecifier(s,o){return this.checkLVal(s.local,{in:s,binding:9}),this.finishNode(s,o)}parseAssertEntries(){let s=[],o=new Set;do{if(this.match(8))break;let g=this.startNode(),D=this.state.value;if(o.has(D)&&this.raise(f.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:D}),o.add(D),this.match(129)?g.key=this.parseStringLiteral(D):g.key=this.parseIdentifier(!0),this.expect(14),!this.match(129))throw this.raise(f.ModuleAttributeInvalidValue,{at:this.state.startLoc});g.value=this.parseStringLiteral(this.state.value),this.finishNode(g,"ImportAttribute"),s.push(g)}while(this.eat(12));return s}maybeParseModuleAttributes(){if(!this.match(76)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();let s=[],o=new Set;do{let g=this.startNode();if(g.key=this.parseIdentifier(!0),g.key.name!=="type"&&this.raise(f.ModuleAttributeDifferentFromType,{at:g.key}),o.has(g.key.name)&&this.raise(f.ModuleAttributesWithDuplicateKeys,{at:g.key,key:g.key.name}),o.add(g.key.name),this.expect(14),!this.match(129))throw this.raise(f.ModuleAttributeInvalidValue,{at:this.state.startLoc});g.value=this.parseStringLiteral(this.state.value),this.finishNode(g,"ImportAttribute"),s.push(g)}while(this.eat(12));return s}maybeParseImportAssertions(){if(!this.isContextual(94)||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next(),this.eat(5);let s=this.parseAssertEntries();return this.eat(8),s}maybeParseDefaultImportSpecifier(s){return!!this.shouldParseDefaultImport(s)&&(this.parseImportSpecifierLocal(s,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(s){if(this.match(55)){let o=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(s,o,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(s){let o=!0;for(this.expect(5);!this.eat(8);){if(o)o=!1;else{if(this.eat(14))throw this.raise(f.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}let g=this.startNode(),D=this.match(129),B=this.isContextual(126);g.imported=this.parseModuleExportName();let H=this.parseImportSpecifier(g,D,s.importKind==="type"||s.importKind==="typeof",B);s.specifiers.push(H)}}parseImportSpecifier(s,o,g,D){if(this.eatContextual(93))s.local=this.parseIdentifier();else{let{imported:B}=s;if(o)throw this.raise(f.ImportBindingIsString,{at:s,importName:B.value});this.checkReservedWord(B.name,s.loc.start,!0,!0),s.local||(s.local=ar(B))}return this.finishImportSpecifier(s,"ImportSpecifier")}isThisParam(s){return s.type==="Identifier"&&s.name==="this"}}{constructor(s,o){super(s=function(g){let D={};for(let B of Object.keys(Zr))D[B]=g&&g[B]!=null?g[B]:Zr[B];return D}(s),o),this.options=s,this.initializeScopes(),this.plugins=function(g){let D=new Map;for(let B of g){let[H,Z]=Array.isArray(B)?B:[B,{}];D.has(H)||D.set(H,Z||{})}return D}(this.options.plugins),this.filename=s.sourceFilename}getScopeHandler(){return Xe}parse(){this.enterInitialScopes();let s=this.startNode(),o=this.startNode();return this.nextToken(),s.errors=null,this.parseTopLevel(s,o),s.errors=this.state.errors,s}}let Bs=function(W){let s={};for(let o of Object.keys(W))s[o]=Y(W[o]);return s}(V);function Pn(W,s){let o=Ri;return W!=null&&W.plugins&&(function(g){if(jt(g,"decorators")){if(jt(g,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let D=jr(g,"decorators","decoratorsBeforeExport");if(D==null)throw new Error("The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'.");if(typeof D!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean.")}if(jt(g,"flow")&&jt(g,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(jt(g,"placeholders")&&jt(g,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(jt(g,"pipelineOperator")){let D=jr(g,"pipelineOperator","proposal");if(!cr.includes(D)){let H=cr.map(Z=>`"${Z}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${H}.`)}let B=jt(g,["recordAndTuple",{syntaxType:"hash"}]);if(D==="hack"){if(jt(g,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(jt(g,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let H=jr(g,"pipelineOperator","topicToken");if(!Hr.includes(H)){let Z=Hr.map(oe=>`"${oe}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${Z}.`)}if(H==="#"&&B)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if(D==="smart"&&B)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(jt(g,"moduleAttributes")){if(jt(g,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if(jr(g,"moduleAttributes","version")!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(jt(g,"recordAndTuple")&&!on.includes(jr(g,"recordAndTuple","syntaxType")))throw new Error("'recordAndTuple' requires 'syntaxType' option whose value should be one of: "+on.map(D=>`'${D}'`).join(", "));if(jt(g,"asyncDoExpressions")&&!jt(g,"doExpressions")){let D=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw D.missingPlugins="doExpressions",D}}(W.plugins),o=function(g){let D=oi.filter(Z=>jt(g,Z)),B=D.join("/"),H=ui[B];if(!H){H=Ri;for(let Z of D)H=kn[Z](H);ui[B]=H}return H}(W.plugins)),new o(W,s)}let ui={};e.parse=function(W,s){var o;if(((o=s)==null?void 0:o.sourceType)!=="unambiguous")return Pn(s,W).parse();s=Object.assign({},s);try{s.sourceType="module";let g=Pn(s,W),D=g.parse();if(g.sawUnambiguousESM)return D;if(g.ambiguousScriptDifferentAst)try{return s.sourceType="script",Pn(s,W).parse()}catch{}else D.program.sourceType="script";return D}catch(g){try{return s.sourceType="script",Pn(s,W).parse()}catch{}throw g}},e.parseExpression=function(W,s){let o=Pn(s,W);return o.options.strictMode&&(o.state.strict=!0),o.getExpression()},e.tokTypes=Bs},"./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.18.2_@babel+core@7.18.5/node_modules/@babel/plugin-proposal-decorators/lib/index.js":(v,e,l)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=l("./node_modules/.pnpm/@babel+helper-plugin-utils@7.17.12/node_modules/@babel/helper-plugin-utils/lib/index.js"),n=l("./node_modules/.pnpm/@babel+plugin-syntax-decorators@7.17.12_@babel+core@7.18.5/node_modules/@babel/plugin-syntax-decorators/lib/index.js"),r=l("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.18.0_@babel+core@7.18.5/node_modules/@babel/helper-create-class-features-plugin/lib/index.js"),i=l("./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.18.2_@babel+core@7.18.5/node_modules/@babel/plugin-proposal-decorators/lib/transformer-legacy.js"),u=l("./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.18.2_@babel+core@7.18.5/node_modules/@babel/plugin-proposal-decorators/lib/transformer-2021-12.js"),a=(0,t.declare)((d,y)=>{d.assertVersion(7);let{legacy:m,version:S}=y;return m||S==="legacy"?{name:"proposal-decorators",inherits:n.default,visitor:i.default}:S==="2021-12"?(0,u.default)(d,y):(0,r.createClassFeaturePlugin)({name:"proposal-decorators",api:d,feature:r.FEATURES.decorators,inherits:n.default})});e.default=a},"./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.18.2_@babel+core@7.18.5/node_modules/@babel/plugin-proposal-decorators/lib/transformer-2021-12.js":(v,e,l)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({assertVersion:P,assumption:R},{loose:C}){var j;P("^7.16.0");let T=new WeakSet,N=(j=R("constantSuper"))!=null?j:C;return{name:"proposal-decorators",inherits:n.default,visitor:{"ExportNamedDeclaration|ExportDefaultDeclaration"($){var G;let{declaration:k}=$.node;(k==null?void 0:k.type)==="ClassDeclaration"&&((G=k.decorators)==null?void 0:G.length)>0&&(0,i.default)($)},Class($,G){if(T.has($))return;let k=function(U,M,O){let x=U.get("body.body"),F=U.node.decorators,L=!1,V=function(de){let q;return()=>(q||(q=function(ne){let Te=[],je=new Set;return ne.traverse({PrivateName(Oe){je.add(Oe.node.id.name)}}),()=>{let Oe;do u(Te),Oe=String.fromCharCode(...Te);while(je.has(Oe));return t.types.privateName(t.types.identifier(Oe))}}(de)),q())}(U);for(let de of x)if(_(de)){if(de.node.decorators&&de.node.decorators.length>0)L=!0;else if(de.node.type==="ClassAccessorProperty"){let{key:q,value:ne,static:Te,computed:je}=de.node,Oe=V(),be=a(Oe,ne?t.types.cloneNode(ne):void 0,Te),[rt]=de.replaceWith(be);d(rt,q,Oe,je)}}if(!F&&!L)return;let K=[],z,X,J=!1,ie=!1,he=new Set,pe,Ee,ye,Y,re=[],ue=U.scope.parent,ce=(de,q)=>{let ne=ue.generateDeclaredUidIdentifier(q);return re.push(t.types.assignmentExpression("=",ne,de)),t.types.cloneNode(ne)};if(F){ye=ue.generateDeclaredUidIdentifier("initClass");let[de,q]=function(ne){if(ne.type==="ClassDeclaration"){let Te=ne.scope.generateUidIdentifierBasedOnNode(ne.node.id),je=t.types.identifier(ne.node.id.name);return ne.scope.rename(je.name,Te.name),ne.insertBefore(t.types.variableDeclaration("let",[t.types.variableDeclarator(Te)])),ne.get("id").replaceWith(je),[t.types.cloneNode(Te),ne]}{let Te,je;ne.node.id?(Te=ne.node.id.name,je=ne.scope.parent.generateDeclaredUidIdentifier(Te),ne.scope.rename(Te,je.name)):ne.parentPath.node.type==="VariableDeclarator"&&ne.parentPath.node.id.type==="Identifier"?(Te=ne.parentPath.node.id.name,je=ne.scope.parent.generateDeclaredUidIdentifier(Te)):je=ne.scope.parent.generateDeclaredUidIdentifier("decorated_class");let Oe=t.types.classExpression(Te&&t.types.identifier(Te),ne.node.superClass,ne.node.body),[be]=ne.replaceWith(t.types.sequenceExpression([Oe,je]));return[t.types.cloneNode(je),be.get("expressions.0")]}}(U);Y=de,(U=q).node.decorators=null;for(let ne of F)ue.isStatic(ne.expression)||(ne.expression=ce(ne.expression,"dec"))}else U.node.id||(U.node.id=U.scope.generateUidIdentifier("Class")),Y=t.types.cloneNode(U.node.id);if(L)for(let de of x){if(!_(de))continue;let{node:q}=de,ne=de.get("decorators"),Te=Array.isArray(ne)&&ne.length>0;if(Te)for(let wt of ne)ue.isStatic(wt.node.expression)||(wt.node.expression=ce(wt.node.expression,"dec"));let je="computed"in de.node&&de.node.computed===!0;je&&(ue.isStatic(q.key)||(q.key=ce(q.key,"computedKey")));let Oe=m(de),{key:be}=q,rt=be.type==="PrivateName",Lt=!!de.node.static,Ft="computedKey";if(rt?Ft=be.id.name:je||be.type!=="Identifier"||(Ft=be.name),de.isClassMethod({kind:"constructor"})&&(X=de),Te){let wt,Rt,Vt;if(Oe===1){let{value:Et}=de.node,ht=[t.types.thisExpression()];Et&&ht.push(t.types.cloneNode(Et));let Kt=V(),Ye=de.scope.parent.generateDeclaredUidIdentifier(`init_${Ft}`),Mr=a(Kt,t.types.callExpression(t.types.cloneNode(Ye),ht),Lt),[lr]=de.replaceWith(Mr);if(rt){Rt=y(Kt);let Cr=lr.scope.parent.generateDeclaredUidIdentifier(`get_${Ft}`),Gr=lr.scope.parent.generateDeclaredUidIdentifier(`set_${Ft}`);h(lr,be,Cr,Gr),wt=[Ye,Cr,Gr]}else d(lr,be,Kt,je),wt=Ye}else if(Oe===0){let Et=de.scope.parent.generateDeclaredUidIdentifier(`init_${Ft}`),ht=de.get("value");ht.replaceWith(t.types.callExpression(t.types.cloneNode(Et),[t.types.thisExpression(),ht.node].filter(Kt=>Kt))),wt=Et,rt&&(Rt=y(be))}else if(rt){wt=de.scope.parent.generateDeclaredUidIdentifier(`call_${Ft}`),new r.default({constantSuper:O,methodPath:de,objectRef:Y,superRef:U.node.superClass,file:M,refToPreserve:Y}).replace();let{params:Et,body:ht,async:Kt}=de.node;if(Rt=t.types.functionExpression(void 0,Et.filter(f),ht,Kt),Oe===3||Oe===4)w(de,t.types.cloneNode(be),t.types.cloneNode(wt),Lt);else{let Ye=de.node;U.node.body.body.unshift(t.types.classPrivateProperty(be,t.types.cloneNode(wt),[],Ye.static)),he.add(be.id.name),de.remove()}}Vt=je?t.types.cloneNode(be):be.type==="PrivateName"?t.types.stringLiteral(be.id.name):be.type==="Identifier"?t.types.stringLiteral(be.name):t.types.cloneNode(be),K.push({kind:Oe,decorators:ne.map(Et=>Et.node.expression),name:Vt,isStatic:Lt,privateMethods:Rt,locals:wt}),Oe!==0&&(Lt?ie=!0:J=!0),de.node&&(de.node.decorators=null),z||Oe!==0&&Oe!==1||(z=de)}}let Ie=(xe=K,t.types.arrayExpression(E(xe).map(de=>{let q=de.decorators.length>1?t.types.arrayExpression(de.decorators):de.decorators[0],ne=de.isStatic?de.kind+5:de.kind,Te=[q,t.types.numericLiteral(ne),de.name],{privateMethods:je}=de;return Array.isArray(je)?Te.push(...je):je&&Te.push(je),t.types.arrayExpression(Te)}))),Ae=t.types.arrayExpression((F||[]).map(de=>de.expression)),ve=function(de){let q=[];for(let ne of E(de)){let{locals:Te}=ne;Array.isArray(Te)?q.push(...Te):Te!==void 0&&q.push(Te)}return q}(K);var xe;if(J){pe=ue.generateDeclaredUidIdentifier("initProto"),ve.push(pe);let de=t.types.callExpression(t.types.cloneNode(pe),[t.types.thisExpression()]);if(z){let q=z.get("value"),ne=[de];q.node&&ne.push(q.node),q.replaceWith(t.types.sequenceExpression(ne))}else if(X)U.node.superClass?U.traverse({CallExpression:{exit(q){q.get("callee").isSuper()&&(q.replaceWith(t.types.callExpression(t.types.cloneNode(pe),[q.node])),q.skip())}}}):X.node.body.body.unshift(t.types.expressionStatement(de));else{let q=[t.types.expressionStatement(de)];U.node.superClass&&q.unshift(t.types.expressionStatement(t.types.callExpression(t.types.super(),[t.types.spreadElement(t.types.identifier("args"))]))),U.node.body.body.unshift(t.types.classMethod("constructor",t.types.identifier("constructor"),[t.types.restElement(t.types.identifier("args"))],t.types.blockStatement(q)))}}ie&&(Ee=ue.generateDeclaredUidIdentifier("initStatic"),ve.push(Ee)),he.size>0&&U.traverse({PrivateName(de){if(!he.has(de.node.id.name))return;let q=de.parentPath,ne=q.parentPath;if(ne.node.type==="AssignmentExpression"&&ne.node.left===q.node||ne.node.type==="UpdateExpression"||ne.node.type==="RestElement"||ne.node.type==="ArrayPattern"||ne.node.type==="ObjectProperty"&&ne.node.value===q.node&&ne.parentPath.type==="ObjectPattern"||ne.node.type==="ForOfStatement"&&ne.node.left===q.node)throw de.buildCodeFrameError(`Decorated private methods are not updatable, but "#${de.node.id.name}" is updated via this expression.`)}});let Se=!1,Ve=ye&&t.types.callExpression(t.types.cloneNode(ye),[]),$e=U.node;if(F){ve.push(Y,ye);let de=[],q=[];if(U.get("body.body").forEach(ne=>{if(ne.isStaticBlock())return q.push(ne.node),void ne.remove();let Te=ne.isClassProperty()||ne.isClassPrivateProperty();if((Te||ne.isClassPrivateMethod())&&ne.node.static){if(Te&&q.length>0){let Oe=q.map(I);ne.node.value&&Oe.push(ne.node.value),ne.node.value=(je=Oe).length===0?t.types.unaryExpression("void",t.types.numericLiteral(0)):je.length===1?je[0]:t.types.sequenceExpression(je),q=[]}ne.node.static=!1,de.push(ne.node),ne.remove()}var je}),de.length>0||q.length>0){let ne=t.template.expression.ast`
|
|
2146
|
+
`;case 114:return"\r";case 120:{let D=this.readHexChar(2,!1,o);return D===null?null:String.fromCharCode(D)}case 117:{let D=this.readCodePoint(o);return D===null?null:String.fromCodePoint(D)}case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.state.pos)===10&&++this.state.pos;case 10:this.state.lineStart=this.state.pos,++this.state.curLine;case 8232:case 8233:return"";case 56:case 57:if(s)return null;this.recordStrictModeErrors(f.StrictNumericEscape,{at:r(this.state.curPosition(),-1)});default:if(g>=48&&g<=55){let D=r(this.state.curPosition(),-1),B=this.input.slice(this.state.pos-1,this.state.pos+2).match(/^[0-7]+/)[0],H=parseInt(B,8);H>255&&(B=B.slice(0,-1),H=parseInt(B,8)),this.state.pos+=B.length-1;let Z=this.input.charCodeAt(this.state.pos);if(B!=="0"||Z===56||Z===57){if(s)return null;this.recordStrictModeErrors(f.StrictNumericEscape,{at:D})}return String.fromCharCode(H)}return String.fromCharCode(g)}}readHexChar(s,o,g){let D=this.state.curPosition(),B=this.readInt(16,s,o,!1);return B===null&&(g?this.raise(f.InvalidEscapeSequence,{at:D}):this.state.pos=D.index-1),B}readWord1(s){this.state.containsEsc=!1;let o="",g=this.state.pos,D=this.state.pos;for(s!==void 0&&(this.state.pos+=s<=65535?1:2);this.state.pos<this.length;){let B=this.codePointAtPos(this.state.pos);if(Ve(B))this.state.pos+=B<=65535?1:2;else{if(B!==92)break;{this.state.containsEsc=!0,o+=this.input.slice(D,this.state.pos);let H=this.state.curPosition(),Z=this.state.pos===g?Se:Ve;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(f.MissingUnicodeEscape,{at:this.state.curPosition()}),D=this.state.pos-1;continue}++this.state.pos;let oe=this.readCodePoint(!0);oe!==null&&(Z(oe)||this.raise(f.EscapedCharNotAnIdentifier,{at:H}),o+=String.fromCodePoint(oe)),D=this.state.pos}}}return o+this.input.slice(D,this.state.pos)}readWord(s){let o=this.readWord1(s),g=j.get(o);g!==void 0?this.finishToken(g,pe(g)):this.finishToken(128,o)}checkKeywordEscapes(){let{type:s}=this.state;he(s)&&this.state.containsEsc&&this.raise(f.InvalidEscapedReservedWord,{at:this.state.startLoc,reservedWord:pe(s)})}raise(s,o){let{at:g}=o,D=l(o,Cr),B=s({loc:g instanceof t?g:g.loc.start,details:D});if(!this.options.errorRecovery)throw B;return this.isLookahead||this.state.errors.push(B),B}raiseOverwrite(s,o){let{at:g}=o,D=l(o,Gr),B=g instanceof t?g:g.loc.start,H=B.index,Z=this.state.errors;for(let oe=Z.length-1;oe>=0;oe--){let me=Z[oe];if(me.loc.index===H)return Z[oe]=s({loc:B,details:D});if(me.loc.index<H)break}return this.raise(s,o)}updateContext(s){}unexpected(s,o){throw this.raise(f.UnexpectedToken,{expected:o?pe(o):null,at:s??this.state.startLoc})}expectPlugin(s,o){if(this.hasPlugin(s))return!0;throw this.raise(f.MissingPlugin,{at:o??this.state.startLoc,missingPlugin:[s]})}expectOnePlugin(s){if(!s.some(o=>this.hasPlugin(o)))throw this.raise(f.MissingOneOfPlugins,{at:this.state.startLoc,missingPlugin:s})}}{addExtra(s,o,g,D=!0){if(!s)return;let B=s.extra=s.extra||{};D?B[o]=g:Object.defineProperty(B,o,{enumerable:D,value:g})}isContextual(s){return this.state.type===s&&!this.state.containsEsc}isUnparsedContextual(s,o){let g=s+o.length;if(this.input.slice(s,g)===o){let D=this.input.charCodeAt(g);return!(Ve(D)||(64512&D)==55296)}return!1}isLookaheadContextual(s){let o=this.nextTokenStart();return this.isUnparsedContextual(o,s)}eatContextual(s){return!!this.isContextual(s)&&(this.next(),!0)}expectContextual(s,o){if(!this.eatContextual(s))throw o!=null?this.raise(o,{at:this.state.startLoc}):this.unexpected(null,s)}canInsertSemicolon(){return this.match(135)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Vt.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return Ye.lastIndex=this.state.end,Ye.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(s=!0){(s?this.isLineTerminator():this.eat(13))||this.raise(f.MissingSemicolon,{at:this.state.lastTokEndLoc})}expect(s,o){this.eat(s)||this.unexpected(o,s)}tryParse(s,o=this.state.clone()){let g={node:null};try{let D=s((B=null)=>{throw g.node=B,g});if(this.state.errors.length>o.errors.length){let B=this.state;return this.state=o,this.state.tokensLength=B.tokensLength,{node:D,error:B.errors[o.errors.length],thrown:!1,aborted:!1,failState:B}}return{node:D,error:null,thrown:!1,aborted:!1,failState:null}}catch(D){let B=this.state;if(this.state=o,D instanceof SyntaxError)return{node:null,error:D,thrown:!0,aborted:!1,failState:B};if(D===g)return{node:g.node,error:null,thrown:!1,aborted:!0,failState:B};throw D}}checkExpressionErrors(s,o){if(!s)return!1;let{shorthandAssignLoc:g,doubleProtoLoc:D,privateKeyLoc:B,optionalParametersLoc:H}=s;if(!o)return!!(g||D||H||B);g!=null&&this.raise(f.InvalidCoverInitializedName,{at:g}),D!=null&&this.raise(f.DuplicateProto,{at:D}),B!=null&&this.raise(f.UnexpectedPrivateField,{at:B}),H!=null&&this.unexpected(H)}isLiteralPropertyName(){return X(this.state.type)}isPrivateName(s){return s.type==="PrivateName"}getPrivateNameSV(s){return s.id.name}hasPropertyAsPrivateName(s){return(s.type==="MemberExpression"||s.type==="OptionalMemberExpression")&&this.isPrivateName(s.property)}isOptionalChain(s){return s.type==="OptionalMemberExpression"||s.type==="OptionalCallExpression"}isObjectProperty(s){return s.type==="ObjectProperty"}isObjectMethod(s){return s.type==="ObjectMethod"}initializeScopes(s=this.options.sourceType==="module"){let o=this.state.labels;this.state.labels=[];let g=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let D=this.inModule;this.inModule=s;let B=this.scope,H=this.getScopeHandler();this.scope=new H(this,s);let Z=this.prodParam;this.prodParam=new Xt;let oe=this.classScope;this.classScope=new At(this);let me=this.expressionScope;return this.expressionScope=new Bt(this),()=>{this.state.labels=o,this.exportedIdentifiers=g,this.inModule=D,this.scope=B,this.prodParam=Z,this.classScope=oe,this.expressionScope=me}}enterInitialScopes(){let s=0;this.inModule&&(s|=2),this.scope.enter(1),this.prodParam.enter(s)}checkDestructuringPrivate(s){let{privateKeyLoc:o}=s;o!==null&&this.expectPlugin("destructuringPrivate",o)}}{startNode(){return new Jt(this,this.state.start,this.state.startLoc)}startNodeAt(s,o){return new Jt(this,s,o)}startNodeAtNode(s){return this.startNodeAt(s.start,s.loc.start)}finishNode(s,o){return this.finishNodeAt(s,o,this.state.lastTokEndLoc)}finishNodeAt(s,o,g){return s.type=o,s.end=g.index,s.loc.end=g,this.options.ranges&&(s.range[1]=g.index),this.options.attachComment&&this.processComment(s),s}resetStartLocation(s,o,g){s.start=o,s.loc.start=g,this.options.ranges&&(s.range[0]=o)}resetEndLocation(s,o=this.state.lastTokEndLoc){s.end=o.index,s.loc.end=o,this.options.ranges&&(s.range[1]=o.index)}resetStartLocationFromNode(s,o){this.resetStartLocation(s,o.start,o.loc.start)}}{toAssignable(s,o=!1){var g,D;let B;switch((s.type==="ParenthesizedExpression"||(g=s.extra)!=null&&g.parenthesized)&&(B=ji(s),o?B.type==="Identifier"?this.expressionScope.recordArrowParemeterBindingError(f.InvalidParenthesizedAssignment,{at:s}):B.type!=="MemberExpression"&&this.raise(f.InvalidParenthesizedAssignment,{at:s}):this.raise(f.InvalidParenthesizedAssignment,{at:s})),s.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":s.type="ObjectPattern";for(let Z=0,oe=s.properties.length,me=oe-1;Z<oe;Z++){var H;let Ne=s.properties[Z],ze=Z===me;this.toAssignableObjectExpressionProp(Ne,ze,o),ze&&Ne.type==="RestElement"&&(H=s.extra)!=null&&H.trailingCommaLoc&&this.raise(f.RestTrailingComma,{at:s.extra.trailingCommaLoc})}break;case"ObjectProperty":{let{key:Z,value:oe}=s;this.isPrivateName(Z)&&this.classScope.usePrivateName(this.getPrivateNameSV(Z),Z.loc.start),this.toAssignable(oe,o);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":s.type="ArrayPattern",this.toAssignableList(s.elements,(D=s.extra)==null?void 0:D.trailingCommaLoc,o);break;case"AssignmentExpression":s.operator!=="="&&this.raise(f.MissingEqInAssignment,{at:s.left.loc.end}),s.type="AssignmentPattern",delete s.operator,this.toAssignable(s.left,o);break;case"ParenthesizedExpression":this.toAssignable(B,o)}}toAssignableObjectExpressionProp(s,o,g){if(s.type==="ObjectMethod")this.raise(s.kind==="get"||s.kind==="set"?f.PatternHasAccessor:f.PatternHasMethod,{at:s.key});else if(s.type==="SpreadElement"){s.type="RestElement";let D=s.argument;this.checkToRestConversion(D,!1),this.toAssignable(D,g),o||this.raise(f.RestTrailingComma,{at:s})}else this.toAssignable(s,g)}toAssignableList(s,o,g){let D=s.length-1;for(let B=0;B<=D;B++){let H=s[B];if(H){if(H.type==="SpreadElement"){H.type="RestElement";let Z=H.argument;this.checkToRestConversion(Z,!0),this.toAssignable(Z,g)}else this.toAssignable(H,g);H.type==="RestElement"&&(B<D?this.raise(f.RestTrailingComma,{at:H}):o&&this.raise(f.RestTrailingComma,{at:o}))}}}isAssignable(s,o){switch(s.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let g=s.properties.length-1;return s.properties.every((D,B)=>D.type!=="ObjectMethod"&&(B===g||D.type!=="SpreadElement")&&this.isAssignable(D))}case"ObjectProperty":return this.isAssignable(s.value);case"SpreadElement":return this.isAssignable(s.argument);case"ArrayExpression":return s.elements.every(g=>g===null||this.isAssignable(g));case"AssignmentExpression":return s.operator==="=";case"ParenthesizedExpression":return this.isAssignable(s.expression);case"MemberExpression":case"OptionalMemberExpression":return!o;default:return!1}}toReferencedList(s,o){return s}toReferencedListDeep(s,o){this.toReferencedList(s,o);for(let g of s)(g==null?void 0:g.type)==="ArrayExpression"&&this.toReferencedListDeep(g.elements)}parseSpread(s,o){let g=this.startNode();return this.next(),g.argument=this.parseMaybeAssignAllowIn(s,void 0,o),this.finishNode(g,"SpreadElement")}parseRestBinding(){let s=this.startNode();return this.next(),s.argument=this.parseBindingAtom(),this.finishNode(s,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let s=this.startNode();return this.next(),s.elements=this.parseBindingList(3,93,!0),this.finishNode(s,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(s,o,g,D){let B=[],H=!0;for(;!this.eat(s);)if(H?H=!1:this.expect(12),g&&this.match(12))B.push(null);else{if(this.eat(s))break;if(this.match(21)){if(B.push(this.parseAssignableListItemTypes(this.parseRestBinding())),!this.checkCommaAfterRest(o)){this.expect(s);break}}else{let Z=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(f.UnsupportedParameterDecorator,{at:this.state.startLoc});this.match(26);)Z.push(this.parseDecorator());B.push(this.parseAssignableListItem(D,Z))}}return B}parseBindingRestProperty(s){return this.next(),s.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(s,"RestElement")}parseBindingProperty(){let s=this.startNode(),{type:o,start:g,startLoc:D}=this.state;return o===21?this.parseBindingRestProperty(s):(o===134?(this.expectPlugin("destructuringPrivate",D),this.classScope.usePrivateName(this.state.value,D),s.key=this.parsePrivateName()):this.parsePropertyName(s),s.method=!1,this.parseObjPropValue(s,g,D,!1,!1,!0,!1),s)}parseAssignableListItem(s,o){let g=this.parseMaybeDefault();this.parseAssignableListItemTypes(g);let D=this.parseMaybeDefault(g.start,g.loc.start,g);return o.length&&(g.decorators=o),D}parseAssignableListItemTypes(s){return s}parseMaybeDefault(s,o,g){var D,B,H;if(o=(D=o)!=null?D:this.state.startLoc,s=(B=s)!=null?B:this.state.start,g=(H=g)!=null?H:this.parseBindingAtom(),!this.eat(29))return g;let Z=this.startNodeAt(s,o);return Z.left=g,Z.right=this.parseMaybeAssignAllowIn(),this.finishNode(Z,"AssignmentPattern")}isValidLVal(s,o,g){return D={AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},B=s,Object.hasOwnProperty.call(D,B)&&D[B];var D,B}checkLVal(s,{in:o,binding:g=64,checkClashes:D=!1,strictModeChanged:B=!1,allowingSloppyLetBinding:H=!(8&g),hasParenthesizedAncestor:Z=!1}){var oe;let me=s.type;if(this.isObjectMethod(s))return;if(me==="MemberExpression")return void(g!==64&&this.raise(f.InvalidPropertyBindingPattern,{at:s}));if(s.type==="Identifier"){this.checkIdentifier(s,g,B,H);let{name:Ot}=s;return void(D&&(D.has(Ot)?this.raise(f.ParamDupe,{at:s}):D.add(Ot)))}let Ne=this.isValidLVal(s.type,!(Z||(oe=s.extra)!=null&&oe.parenthesized)&&o.type==="AssignmentExpression",g);if(Ne===!0)return;if(Ne===!1){let Ot=g===64?f.InvalidLhs:f.InvalidLhsBinding;return void this.raise(Ot,{at:s,ancestor:o.type==="UpdateExpression"?{type:"UpdateExpression",prefix:o.prefix}:{type:o.type}})}let[ze,ut]=Array.isArray(Ne)?Ne:[Ne,me==="ParenthesizedExpression"],dt=s.type==="ArrayPattern"||s.type==="ObjectPattern"||s.type==="ParenthesizedExpression"?s:o;for(let Ot of[].concat(s[ze]))Ot&&this.checkLVal(Ot,{in:dt,binding:g,checkClashes:D,allowingSloppyLetBinding:H,strictModeChanged:B,hasParenthesizedAncestor:ut})}checkIdentifier(s,o,g=!1,D=!(8&o)){this.state.strict&&(g?rt(s.name,this.inModule):be(s.name))&&(o===64?this.raise(f.StrictEvalArguments,{at:s,referenceName:s.name}):this.raise(f.StrictEvalArgumentsBinding,{at:s,bindingName:s.name})),D||s.name!=="let"||this.raise(f.LetInLexicalBinding,{at:s}),64&o||this.declareNameFromIdentifier(s,o)}declareNameFromIdentifier(s,o){this.scope.declareName(s.name,o,s.loc.start)}checkToRestConversion(s,o){switch(s.type){case"ParenthesizedExpression":this.checkToRestConversion(s.expression,o);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(o)break;default:this.raise(f.InvalidRestAssignmentPattern,{at:s})}}checkCommaAfterRest(s){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===s?f.RestTrailingComma:f.ElementAfterRest,{at:this.state.startLoc}),!0)}}{checkProto(s,o,g,D){if(s.type==="SpreadElement"||this.isObjectMethod(s)||s.computed||s.shorthand)return;let B=s.key;if((B.type==="Identifier"?B.name:B.value)==="__proto__"){if(o)return void this.raise(f.RecordNoProto,{at:B});g.used&&(D?D.doubleProtoLoc===null&&(D.doubleProtoLoc=B.loc.start):this.raise(f.DuplicateProto,{at:B})),g.used=!0}}shouldExitDescending(s,o){return s.type==="ArrowFunctionExpression"&&s.start===o}getExpression(){this.enterInitialScopes(),this.nextToken();let s=this.parseExpression();return this.match(135)||this.unexpected(),this.finalizeRemainingComments(),s.comments=this.state.comments,s.errors=this.state.errors,this.options.tokens&&(s.tokens=this.tokens),s}parseExpression(s,o){return s?this.disallowInAnd(()=>this.parseExpressionBase(o)):this.allowInAnd(()=>this.parseExpressionBase(o))}parseExpressionBase(s){let o=this.state.start,g=this.state.startLoc,D=this.parseMaybeAssign(s);if(this.match(12)){let B=this.startNodeAt(o,g);for(B.expressions=[D];this.eat(12);)B.expressions.push(this.parseMaybeAssign(s));return this.toReferencedList(B.expressions),this.finishNode(B,"SequenceExpression")}return D}parseMaybeAssignDisallowIn(s,o){return this.disallowInAnd(()=>this.parseMaybeAssign(s,o))}parseMaybeAssignAllowIn(s,o){return this.allowInAnd(()=>this.parseMaybeAssign(s,o))}setOptionalParametersError(s,o){var g;s.optionalParametersLoc=(g=o==null?void 0:o.loc)!=null?g:this.state.startLoc}parseMaybeAssign(s,o){let g=this.state.start,D=this.state.startLoc;if(this.isContextual(105)&&this.prodParam.hasYield){let me=this.parseYield();return o&&(me=o.call(this,me,g,D)),me}let B;s?B=!1:(s=new Qt,B=!0);let{type:H}=this.state;(H===10||K(H))&&(this.state.potentialArrowAt=this.state.start);let Z=this.parseMaybeConditional(s);if(o&&(Z=o.call(this,Z,g,D)),(oe=this.state.type)>=29&&oe<=33){let me=this.startNodeAt(g,D),Ne=this.state.value;return me.operator=Ne,this.match(29)?(this.toAssignable(Z,!0),me.left=Z,s.doubleProtoLoc!=null&&s.doubleProtoLoc.index>=g&&(s.doubleProtoLoc=null),s.shorthandAssignLoc!=null&&s.shorthandAssignLoc.index>=g&&(s.shorthandAssignLoc=null),s.privateKeyLoc!=null&&s.privateKeyLoc.index>=g&&(this.checkDestructuringPrivate(s),s.privateKeyLoc=null)):me.left=Z,this.next(),me.right=this.parseMaybeAssign(),this.checkLVal(Z,{in:this.finishNode(me,"AssignmentExpression")}),me}var oe;return B&&this.checkExpressionErrors(s,!0),Z}parseMaybeConditional(s){let o=this.state.start,g=this.state.startLoc,D=this.state.potentialArrowAt,B=this.parseExprOps(s);return this.shouldExitDescending(B,D)?B:this.parseConditional(B,o,g,s)}parseConditional(s,o,g,D){if(this.eat(17)){let B=this.startNodeAt(o,g);return B.test=s,B.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),B.alternate=this.parseMaybeAssign(),this.finishNode(B,"ConditionalExpression")}return s}parseMaybeUnaryOrPrivate(s){return this.match(134)?this.parsePrivateName():this.parseMaybeUnary(s)}parseExprOps(s){let o=this.state.start,g=this.state.startLoc,D=this.state.potentialArrowAt,B=this.parseMaybeUnaryOrPrivate(s);return this.shouldExitDescending(B,D)?B:this.parseExprOp(B,o,g,-1)}parseExprOp(s,o,g,D){if(this.isPrivateName(s)){let Z=this.getPrivateNameSV(s);(D>=Ee(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(f.PrivateInExpectedIn,{at:s,identifierName:Z}),this.classScope.usePrivateName(Z,s.loc.start)}let B=this.state.type;if((H=B)>=39&&H<=59&&(this.prodParam.hasIn||!this.match(58))){let Z=Ee(B);if(Z>D){if(B===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return s;this.checkPipelineAtInfixOperator(s,g)}let oe=this.startNodeAt(o,g);oe.left=s,oe.operator=this.state.value;let me=B===41||B===42,Ne=B===40;if(Ne&&(Z=Ee(42)),this.next(),B===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(f.UnexpectedAwaitAfterPipelineBody,{at:this.state.startLoc});oe.right=this.parseExprOpRightExpr(B,Z),this.finishNode(oe,me||Ne?"LogicalExpression":"BinaryExpression");let ze=this.state.type;if(Ne&&(ze===41||ze===42)||me&&ze===40)throw this.raise(f.MixingCoalesceWithLogical,{at:this.state.startLoc});return this.parseExprOp(oe,o,g,D)}}var H;return s}parseExprOpRightExpr(s,o){let g=this.state.start,D=this.state.startLoc;if(s===39)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(105))throw this.raise(f.PipeBodyIsTighter,{at:this.state.startLoc});return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(s,o),g,D)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(o))}return this.parseExprOpBaseRightExpr(s,o)}parseExprOpBaseRightExpr(s,o){let g=this.state.start,D=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),g,D,s===57?o-1:o)}parseHackPipeBody(){var s;let{startLoc:o}=this.state,g=this.parseMaybeAssign();return!y.has(g.type)||(s=g.extra)!=null&&s.parenthesized||this.raise(f.PipeUnparenthesizedBody,{at:o,type:g.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(f.PipeTopicUnused,{at:o}),g}checkExponentialAfterUnary(s){this.match(57)&&this.raise(f.UnexpectedTokenUnaryExponentiation,{at:s.argument})}parseMaybeUnary(s,o){let g=this.state.start,D=this.state.startLoc,B=this.isContextual(96);if(B&&this.isAwaitAllowed()){this.next();let Ne=this.parseAwait(g,D);return o||this.checkExponentialAfterUnary(Ne),Ne}let H=this.match(34),Z=this.startNode();if(oe=this.state.type,x[oe]){Z.operator=this.state.value,Z.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let Ne=this.match(89);if(this.next(),Z.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(s,!0),this.state.strict&&Ne){let ze=Z.argument;ze.type==="Identifier"?this.raise(f.StrictDelete,{at:Z}):this.hasPropertyAsPrivateName(ze)&&this.raise(f.DeletePrivateField,{at:Z})}if(!H)return o||this.checkExponentialAfterUnary(Z),this.finishNode(Z,"UnaryExpression")}var oe;let me=this.parseUpdate(Z,H,s);if(B){let{type:Ne}=this.state;if((this.hasPlugin("v8intrinsic")?J(Ne):J(Ne)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(f.AwaitNotInAsyncContext,{at:D}),this.parseAwait(g,D)}return me}parseUpdate(s,o,g){if(o)return this.checkLVal(s.argument,{in:this.finishNode(s,"UpdateExpression")}),s;let D=this.state.start,B=this.state.startLoc,H=this.parseExprSubscripts(g);if(this.checkExpressionErrors(g,!1))return H;for(;this.state.type===34&&!this.canInsertSemicolon();){let Z=this.startNodeAt(D,B);Z.operator=this.state.value,Z.prefix=!1,Z.argument=H,this.next(),this.checkLVal(H,{in:H=this.finishNode(Z,"UpdateExpression")})}return H}parseExprSubscripts(s){let o=this.state.start,g=this.state.startLoc,D=this.state.potentialArrowAt,B=this.parseExprAtom(s);return this.shouldExitDescending(B,D)?B:this.parseSubscripts(B,o,g)}parseSubscripts(s,o,g,D){let B={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(s),stop:!1};do s=this.parseSubscript(s,o,g,D,B),B.maybeAsyncArrow=!1;while(!B.stop);return s}parseSubscript(s,o,g,D,B){let{type:H}=this.state;if(!D&&H===15)return this.parseBind(s,o,g,D,B);if(ye(H))return this.parseTaggedTemplateExpression(s,o,g,B);let Z=!1;if(H===18){if(D&&this.lookaheadCharCode()===40)return B.stop=!0,s;B.optionalChainMember=Z=!0,this.next()}if(!D&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(s,o,g,B,Z);{let oe=this.eat(0);return oe||Z||this.eat(16)?this.parseMember(s,o,g,B,oe,Z):(B.stop=!0,s)}}parseMember(s,o,g,D,B,H){let Z=this.startNodeAt(o,g);return Z.object=s,Z.computed=B,B?(Z.property=this.parseExpression(),this.expect(3)):this.match(134)?(s.type==="Super"&&this.raise(f.SuperPrivateField,{at:g}),this.classScope.usePrivateName(this.state.value,this.state.startLoc),Z.property=this.parsePrivateName()):Z.property=this.parseIdentifier(!0),D.optionalChainMember?(Z.optional=H,this.finishNode(Z,"OptionalMemberExpression")):this.finishNode(Z,"MemberExpression")}parseBind(s,o,g,D,B){let H=this.startNodeAt(o,g);return H.object=s,this.next(),H.callee=this.parseNoCallExpr(),B.stop=!0,this.parseSubscripts(this.finishNode(H,"BindExpression"),o,g,D)}parseCoverCallAndAsyncArrowHead(s,o,g,D,B){let H=this.state.maybeInArrowParameters,Z=null;this.state.maybeInArrowParameters=!0,this.next();let oe=this.startNodeAt(o,g);oe.callee=s;let{maybeAsyncArrow:me,optionalChainMember:Ne}=D;return me&&(this.expressionScope.enter(new Dt(2)),Z=new Qt),Ne&&(oe.optional=B),oe.arguments=B?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,s.type==="Import",s.type!=="Super",oe,Z),this.finishCallExpression(oe,Ne),me&&this.shouldParseAsyncArrow()&&!B?(D.stop=!0,this.checkDestructuringPrivate(Z),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),oe=this.parseAsyncArrowFromCallExpression(this.startNodeAt(o,g),oe)):(me&&(this.checkExpressionErrors(Z,!0),this.expressionScope.exit()),this.toReferencedArguments(oe)),this.state.maybeInArrowParameters=H,oe}toReferencedArguments(s,o){this.toReferencedListDeep(s.arguments,o)}parseTaggedTemplateExpression(s,o,g,D){let B=this.startNodeAt(o,g);return B.tag=s,B.quasi=this.parseTemplate(!0),D.optionalChainMember&&this.raise(f.OptionalChainingNoTemplate,{at:g}),this.finishNode(B,"TaggedTemplateExpression")}atPossibleAsyncArrow(s){return s.type==="Identifier"&&s.name==="async"&&this.state.lastTokEndLoc.index===s.end&&!this.canInsertSemicolon()&&s.end-s.start==5&&s.start===this.state.potentialArrowAt}finishCallExpression(s,o){if(s.callee.type==="Import")if(s.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),s.arguments.length===0||s.arguments.length>2)this.raise(f.ImportCallArity,{at:s,maxArgumentCount:this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let g of s.arguments)g.type==="SpreadElement"&&this.raise(f.ImportCallSpreadArgument,{at:g});return this.finishNode(s,o?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(s,o,g,D,B){let H=[],Z=!0,oe=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(s);){if(Z)Z=!1;else if(this.expect(12),this.match(s)){!o||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(f.ImportCallArgumentTrailingComma,{at:this.state.lastTokStartLoc}),D&&this.addTrailingCommaExtraToNode(D),this.next();break}H.push(this.parseExprListItem(!1,B,g))}return this.state.inFSharpPipelineDirectBody=oe,H}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(s,o){var g;return this.resetPreviousNodeTrailingComments(o),this.expect(19),this.parseArrowExpression(s,o.arguments,!0,(g=o.extra)==null?void 0:g.trailingCommaLoc),o.innerComments&&wt(s,o.innerComments),o.callee.trailingComments&&wt(s,o.callee.trailingComments),s}parseNoCallExpr(){let s=this.state.start,o=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),s,o,!0)}parseExprAtom(s){let o,{type:g}=this.state;switch(g){case 79:return this.parseSuper();case 83:return o=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(o):(this.match(10)||this.raise(f.UnsupportedImport,{at:this.state.lastTokStartLoc}),this.finishNode(o,"Import"));case 78:return o=this.startNode(),this.next(),this.finishNode(o,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 130:return this.parseNumericLiteral(this.state.value);case 131:return this.parseBigIntLiteral(this.state.value);case 132:return this.parseDecimalLiteral(this.state.value);case 129:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let D=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(D)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,s);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,s);case 68:return this.parseFunctionOrFunctionSent();case 26:this.parseDecorators();case 80:return o=this.startNode(),this.takeDecorators(o),this.parseClass(o,!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{o=this.startNode(),this.next(),o.object=null;let D=o.callee=this.parseNoCallExpr();if(D.type==="MemberExpression")return this.finishNode(o,"BindExpression");throw this.raise(f.UnsupportedBind,{at:D})}case 134:return this.raise(f.PrivateInExpectedIn,{at:this.state.startLoc,identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let D=this.getPluginOption("pipelineOperator","proposal");if(D)return this.parseTopicReference(D);throw this.unexpected()}case 47:{let D=this.input.codePointAt(this.nextTokenStart());if(Se(D)||D===62){this.expectOnePlugin(["jsx","flow","typescript"]);break}throw this.unexpected()}default:if(K(g)){if(this.isContextual(123)&&this.lookaheadCharCode()===123&&!this.hasFollowingLineBreak())return this.parseModuleExpression();let D=this.state.potentialArrowAt===this.state.start,B=this.state.containsEsc,H=this.parseIdentifier();if(!B&&H.name==="async"&&!this.canInsertSemicolon()){let{type:Z}=this.state;if(Z===68)return this.resetPreviousNodeTrailingComments(H),this.next(),this.parseFunction(this.startNodeAtNode(H),void 0,!0);if(K(Z))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(H)):H;if(Z===90)return this.resetPreviousNodeTrailingComments(H),this.parseDo(this.startNodeAtNode(H),!0)}return D&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(H),[H],!1)):H}throw this.unexpected()}}parseTopicReferenceThenEqualsSign(s,o){let g=this.getPluginOption("pipelineOperator","proposal");if(g)return this.state.type=s,this.state.value=o,this.state.pos--,this.state.end--,this.state.endLoc=r(this.state.endLoc,-1),this.parseTopicReference(g);throw this.unexpected()}parseTopicReference(s){let o=this.startNode(),g=this.state.startLoc,D=this.state.type;return this.next(),this.finishTopicReference(o,g,s,D)}finishTopicReference(s,o,g,D){if(this.testTopicReferenceConfiguration(g,o,D)){let B=g==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(g==="smart"?f.PrimaryTopicNotAllowed:f.PipeTopicUnbound,{at:o}),this.registerTopicReference(),this.finishNode(s,B)}throw this.raise(f.PipeTopicUnconfiguredToken,{at:o,token:pe(D)})}testTopicReferenceConfiguration(s,o,g){switch(s){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:pe(g)}]);case"smart":return g===27;default:throw this.raise(f.PipeTopicRequiresHackPipes,{at:o})}}parseAsyncArrowUnaryFunction(s){this.prodParam.enter(zt(!0,this.prodParam.hasYield));let o=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(f.LineTerminatorBeforeArrow,{at:this.state.curPosition()}),this.expect(19),this.parseArrowExpression(s,o,!0),s}parseDo(s,o){this.expectPlugin("doExpressions"),o&&this.expectPlugin("asyncDoExpressions"),s.async=o,this.next();let g=this.state.labels;return this.state.labels=[],o?(this.prodParam.enter(2),s.body=this.parseBlock(),this.prodParam.exit()):s.body=this.parseBlock(),this.state.labels=g,this.finishNode(s,"DoExpression")}parseSuper(){let s=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(f.UnexpectedSuper,{at:s}):this.raise(f.SuperNotAllowed,{at:s}),this.match(10)||this.match(0)||this.match(16)||this.raise(f.UnsupportedSuper,{at:s}),this.finishNode(s,"Super")}parsePrivateName(){let s=this.startNode(),o=this.startNodeAt(this.state.start+1,new t(this.state.curLine,this.state.start+1-this.state.lineStart,this.state.start+1)),g=this.state.value;return this.next(),s.id=this.createIdentifier(o,g),this.finishNode(s,"PrivateName")}parseFunctionOrFunctionSent(){let s=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let o=this.createIdentifier(this.startNodeAtNode(s),"function");return this.next(),this.match(102)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(s,o,"sent")}return this.parseFunction(s)}parseMetaProperty(s,o,g){s.meta=o;let D=this.state.containsEsc;return s.property=this.parseIdentifier(!0),(s.property.name!==g||D)&&this.raise(f.UnsupportedMetaProperty,{at:s.property,target:o.name,onlyValidPropertyName:g}),this.finishNode(s,"MetaProperty")}parseImportMetaProperty(s){let o=this.createIdentifier(this.startNodeAtNode(s),"import");return this.next(),this.isContextual(100)&&(this.inModule||this.raise(f.ImportMetaOutsideModule,{at:o}),this.sawUnambiguousESM=!0),this.parseMetaProperty(s,o,"meta")}parseLiteralAtNode(s,o,g){return this.addExtra(g,"rawValue",s),this.addExtra(g,"raw",this.input.slice(g.start,this.state.end)),g.value=s,this.next(),this.finishNode(g,o)}parseLiteral(s,o){let g=this.startNode();return this.parseLiteralAtNode(s,o,g)}parseStringLiteral(s){return this.parseLiteral(s,"StringLiteral")}parseNumericLiteral(s){return this.parseLiteral(s,"NumericLiteral")}parseBigIntLiteral(s){return this.parseLiteral(s,"BigIntLiteral")}parseDecimalLiteral(s){return this.parseLiteral(s,"DecimalLiteral")}parseRegExpLiteral(s){let o=this.parseLiteral(s.value,"RegExpLiteral");return o.pattern=s.pattern,o.flags=s.flags,o}parseBooleanLiteral(s){let o=this.startNode();return o.value=s,this.next(),this.finishNode(o,"BooleanLiteral")}parseNullLiteral(){let s=this.startNode();return this.next(),this.finishNode(s,"NullLiteral")}parseParenAndDistinguishExpression(s){let o=this.state.start,g=this.state.startLoc,D;this.next(),this.expressionScope.enter(new Dt(1));let B=this.state.maybeInArrowParameters,H=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let Z=this.state.start,oe=this.state.startLoc,me=[],Ne=new Qt,ze,ut,dt=!0;for(;!this.match(11);){if(dt)dt=!1;else if(this.expect(12,Ne.optionalParametersLoc===null?null:Ne.optionalParametersLoc),this.match(11)){ut=this.state.startLoc;break}if(this.match(21)){let Wt=this.state.start,Ht=this.state.startLoc;if(ze=this.state.startLoc,me.push(this.parseParenItem(this.parseRestBinding(),Wt,Ht)),!this.checkCommaAfterRest(41))break}else me.push(this.parseMaybeAssignAllowIn(Ne,this.parseParenItem))}let Ot=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=B,this.state.inFSharpPipelineDirectBody=H;let kt=this.startNodeAt(o,g);return s&&this.shouldParseArrow(me)&&(kt=this.parseArrow(kt))?(this.checkDestructuringPrivate(Ne),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(kt,me,!1),kt):(this.expressionScope.exit(),me.length||this.unexpected(this.state.lastTokStartLoc),ut&&this.unexpected(ut),ze&&this.unexpected(ze),this.checkExpressionErrors(Ne,!0),this.toReferencedListDeep(me,!0),me.length>1?(D=this.startNodeAt(Z,oe),D.expressions=me,this.finishNode(D,"SequenceExpression"),this.resetEndLocation(D,Ot)):D=me[0],this.wrapParenthesis(o,g,D))}wrapParenthesis(s,o,g){if(!this.options.createParenthesizedExpressions)return this.addExtra(g,"parenthesized",!0),this.addExtra(g,"parenStart",s),this.takeSurroundingComments(g,s,this.state.lastTokEndLoc.index),g;let D=this.startNodeAt(s,o);return D.expression=g,this.finishNode(D,"ParenthesizedExpression"),D}shouldParseArrow(s){return!this.canInsertSemicolon()}parseArrow(s){if(this.eat(19))return s}parseParenItem(s,o,g){return s}parseNewOrNewTarget(){let s=this.startNode();if(this.next(),this.match(16)){let o=this.createIdentifier(this.startNodeAtNode(s),"new");this.next();let g=this.parseMetaProperty(s,o,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.raise(f.UnexpectedNewTarget,{at:g}),g}return this.parseNew(s)}parseNew(s){if(this.parseNewCallee(s),this.eat(10)){let o=this.parseExprList(11);this.toReferencedList(o),s.arguments=o}else s.arguments=[];return this.finishNode(s,"NewExpression")}parseNewCallee(s){s.callee=this.parseNoCallExpr(),s.callee.type==="Import"?this.raise(f.ImportCallNotNewExpression,{at:s.callee}):this.isOptionalChain(s.callee)?this.raise(f.OptionalChainingNoNew,{at:this.state.lastTokEndLoc}):this.eat(18)&&this.raise(f.OptionalChainingNoNew,{at:this.state.startLoc})}parseTemplateElement(s){let{start:o,startLoc:g,end:D,value:B}=this.state,H=o+1,Z=this.startNodeAt(H,r(g,1));B===null&&(s||this.raise(f.InvalidEscapeSequenceTemplate,{at:r(g,2)}));let oe=this.match(24),me=oe?-1:-2,Ne=D+me;return Z.value={raw:this.input.slice(H,Ne).replace(/\r\n?/g,`
|
|
2147
|
+
`),cooked:B===null?null:B.slice(1,me)},Z.tail=oe,this.next(),this.finishNode(Z,"TemplateElement"),this.resetEndLocation(Z,r(this.state.lastTokEndLoc,me)),Z}parseTemplate(s){let o=this.startNode();o.expressions=[];let g=this.parseTemplateElement(s);for(o.quasis=[g];!g.tail;)o.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),o.quasis.push(g=this.parseTemplateElement(s));return this.finishNode(o,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(s,o,g,D){g&&this.expectPlugin("recordAndTuple");let B=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let H=Object.create(null),Z=!0,oe=this.startNode();for(oe.properties=[],this.next();!this.match(s);){if(Z)Z=!1;else if(this.expect(12),this.match(s)){this.addTrailingCommaExtraToNode(oe);break}let Ne;o?Ne=this.parseBindingProperty():(Ne=this.parsePropertyDefinition(D),this.checkProto(Ne,g,H,D)),g&&!this.isObjectProperty(Ne)&&Ne.type!=="SpreadElement"&&this.raise(f.InvalidRecordProperty,{at:Ne}),Ne.shorthand&&this.addExtra(Ne,"shorthand",!0),oe.properties.push(Ne)}this.next(),this.state.inFSharpPipelineDirectBody=B;let me="ObjectExpression";return o?me="ObjectPattern":g&&(me="RecordExpression"),this.finishNode(oe,me)}addTrailingCommaExtraToNode(s){this.addExtra(s,"trailingComma",this.state.lastTokStart),this.addExtra(s,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(s){return!s.computed&&s.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(s){let o=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(f.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)o.push(this.parseDecorator());let g=this.startNode(),D,B,H=!1,Z=!1;if(this.match(21))return o.length&&this.unexpected(),this.parseSpread();o.length&&(g.decorators=o,o=[]),g.method=!1,s&&(D=this.state.start,B=this.state.startLoc);let oe=this.eat(55);this.parsePropertyNamePrefixOperator(g);let me=this.state.containsEsc,Ne=this.parsePropertyName(g,s);if(!oe&&!me&&this.maybeAsyncOrAccessorProp(g)){let ze=Ne.name;ze!=="async"||this.hasPrecedingLineBreak()||(H=!0,this.resetPreviousNodeTrailingComments(Ne),oe=this.eat(55),this.parsePropertyName(g)),ze!=="get"&&ze!=="set"||(Z=!0,this.resetPreviousNodeTrailingComments(Ne),g.kind=ze,this.match(55)&&(oe=!0,this.raise(f.AccessorIsGenerator,{at:this.state.curPosition(),kind:ze}),this.next()),this.parsePropertyName(g))}return this.parseObjPropValue(g,D,B,oe,H,!1,Z,s),g}getGetterSetterExpectedParamCount(s){return s.kind==="get"?0:1}getObjectOrClassMethodParams(s){return s.params}checkGetterSetterParams(s){var o;let g=this.getGetterSetterExpectedParamCount(s),D=this.getObjectOrClassMethodParams(s);D.length!==g&&this.raise(s.kind==="get"?f.BadGetterArity:f.BadSetterArity,{at:s}),s.kind==="set"&&((o=D[D.length-1])==null?void 0:o.type)==="RestElement"&&this.raise(f.BadSetterRestParameter,{at:s})}parseObjectMethod(s,o,g,D,B){return B?(this.parseMethod(s,o,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(s),s):g||o||this.match(10)?(D&&this.unexpected(),s.kind="method",s.method=!0,this.parseMethod(s,o,g,!1,!1,"ObjectMethod")):void 0}parseObjectProperty(s,o,g,D,B){if(s.shorthand=!1,this.eat(14))return s.value=D?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(B),this.finishNode(s,"ObjectProperty");if(!s.computed&&s.key.type==="Identifier"){if(this.checkReservedWord(s.key.name,s.key.loc.start,!0,!1),D)s.value=this.parseMaybeDefault(o,g,ar(s.key));else if(this.match(29)){let H=this.state.startLoc;B!=null?B.shorthandAssignLoc===null&&(B.shorthandAssignLoc=H):this.raise(f.InvalidCoverInitializedName,{at:H}),s.value=this.parseMaybeDefault(o,g,ar(s.key))}else s.value=ar(s.key);return s.shorthand=!0,this.finishNode(s,"ObjectProperty")}}parseObjPropValue(s,o,g,D,B,H,Z,oe){let me=this.parseObjectMethod(s,D,B,H,Z)||this.parseObjectProperty(s,o,g,H,oe);return me||this.unexpected(),me}parsePropertyName(s,o){if(this.eat(0))s.computed=!0,s.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:g,value:D}=this.state,B;if(z(g))B=this.parseIdentifier(!0);else switch(g){case 130:B=this.parseNumericLiteral(D);break;case 129:B=this.parseStringLiteral(D);break;case 131:B=this.parseBigIntLiteral(D);break;case 132:B=this.parseDecimalLiteral(D);break;case 134:{let H=this.state.startLoc;o!=null?o.privateKeyLoc===null&&(o.privateKeyLoc=H):this.raise(f.UnexpectedPrivateField,{at:H}),B=this.parsePrivateName();break}default:throw this.unexpected()}s.key=B,g!==134&&(s.computed=!1)}return s.key}initFunction(s,o){s.id=null,s.generator=!1,s.async=!!o}parseMethod(s,o,g,D,B,H,Z=!1){this.initFunction(s,g),s.generator=!!o;let oe=D;return this.scope.enter(18|(Z?64:0)|(B?32:0)),this.prodParam.enter(zt(g,s.generator)),this.parseFunctionParams(s,oe),this.parseFunctionBodyAndFinish(s,H,!0),this.prodParam.exit(),this.scope.exit(),s}parseArrayLike(s,o,g,D){g&&this.expectPlugin("recordAndTuple");let B=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let H=this.startNode();return this.next(),H.elements=this.parseExprList(s,!g,D,H),this.state.inFSharpPipelineDirectBody=B,this.finishNode(H,g?"TupleExpression":"ArrayExpression")}parseArrowExpression(s,o,g,D){this.scope.enter(6);let B=zt(g,!1);!this.match(5)&&this.prodParam.hasIn&&(B|=8),this.prodParam.enter(B),this.initFunction(s,g);let H=this.state.maybeInArrowParameters;return o&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(s,o,D)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(s,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=H,this.finishNode(s,"ArrowFunctionExpression")}setArrowFunctionParameters(s,o,g){this.toAssignableList(o,g,!1),s.params=o}parseFunctionBodyAndFinish(s,o,g=!1){this.parseFunctionBody(s,!1,g),this.finishNode(s,o)}parseFunctionBody(s,o,g=!1){let D=o&&!this.match(5);if(this.expressionScope.enter(Nt()),D)s.body=this.parseMaybeAssign(),this.checkParams(s,!1,o,!1);else{let B=this.state.strict,H=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),s.body=this.parseBlock(!0,!1,Z=>{let oe=!this.isSimpleParamList(s.params);Z&&oe&&this.raise(f.IllegalLanguageModeDirective,{at:s.kind!=="method"&&s.kind!=="constructor"||!s.key?s:s.key.loc.end});let me=!B&&this.state.strict;this.checkParams(s,!(this.state.strict||o||g||oe),o,me),this.state.strict&&s.id&&this.checkIdentifier(s.id,65,me)}),this.prodParam.exit(),this.state.labels=H}this.expressionScope.exit()}isSimpleParameter(s){return s.type==="Identifier"}isSimpleParamList(s){for(let o=0,g=s.length;o<g;o++)if(!this.isSimpleParameter(s[o]))return!1;return!0}checkParams(s,o,g,D=!0){let B=!o&&new Set,H={type:"FormalParameters"};for(let Z of s.params)this.checkLVal(Z,{in:H,binding:5,checkClashes:B,strictModeChanged:D})}parseExprList(s,o,g,D){let B=[],H=!0;for(;!this.eat(s);){if(H)H=!1;else if(this.expect(12),this.match(s)){D&&this.addTrailingCommaExtraToNode(D),this.next();break}B.push(this.parseExprListItem(o,g))}return B}parseExprListItem(s,o,g){let D;if(this.match(12))s||this.raise(f.UnexpectedToken,{at:this.state.curPosition(),unexpected:","}),D=null;else if(this.match(21)){let B=this.state.start,H=this.state.startLoc;D=this.parseParenItem(this.parseSpread(o),B,H)}else if(this.match(17)){this.expectPlugin("partialApplication"),g||this.raise(f.UnexpectedArgumentPlaceholder,{at:this.state.startLoc});let B=this.startNode();this.next(),D=this.finishNode(B,"ArgumentPlaceholder")}else D=this.parseMaybeAssignAllowIn(o,this.parseParenItem);return D}parseIdentifier(s){let o=this.startNode(),g=this.parseIdentifierName(o.start,s);return this.createIdentifier(o,g)}createIdentifier(s,o){return s.name=o,s.loc.identifierName=o,this.finishNode(s,"Identifier")}parseIdentifierName(s,o){let g,{startLoc:D,type:B}=this.state;if(!z(B))throw this.unexpected();g=this.state.value;let H=B<=92;return o?H&&this.replaceToken(128):this.checkReservedWord(g,D,H,!1),this.next(),g}checkReservedWord(s,o,g,D){if(!(s.length>10)&&!!function(B){return Lt.has(B)}(s)){if(s==="yield"){if(this.prodParam.hasYield)return void this.raise(f.YieldBindingIdentifier,{at:o})}else if(s==="await"){if(this.prodParam.hasAwait)return void this.raise(f.AwaitBindingIdentifier,{at:o});if(this.scope.inStaticBlock)return void this.raise(f.AwaitBindingIdentifierInStaticBlock,{at:o});this.expressionScope.recordAsyncArrowParametersError({at:o})}else if(s==="arguments"&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(f.ArgumentsInClass,{at:o});if(g&&function(B){return q.has(B)}(s))return void this.raise(f.UnexpectedKeyword,{at:o,keyword:s});(this.state.strict?D?rt:Oe:je)(s,this.inModule)&&this.raise(f.UnexpectedReservedWord,{at:o,reservedWord:s})}}isAwaitAllowed(){return!!this.prodParam.hasAwait||!(!this.options.allowAwaitOutsideFunction||this.scope.inFunction)}parseAwait(s,o){let g=this.startNodeAt(s,o);return this.expressionScope.recordParameterInitializerError(f.AwaitExpressionFormalParameter,{at:g}),this.eat(55)&&this.raise(f.ObsoleteAwaitStar,{at:g}),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(g.argument=this.parseMaybeUnary(null,!0)),this.finishNode(g,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:s}=this.state;return s===53||s===10||s===0||ye(s)||s===133||s===56||this.hasPlugin("v8intrinsic")&&s===54}parseYield(){let s=this.startNode();this.expressionScope.recordParameterInitializerError(f.YieldInParameter,{at:s}),this.next();let o=!1,g=null;if(!this.hasPrecedingLineBreak())switch(o=this.eat(55),this.state.type){case 13:case 135:case 8:case 11:case 3:case 9:case 14:case 12:if(!o)break;default:g=this.parseMaybeAssign()}return s.delegate=o,s.argument=g,this.finishNode(s,"YieldExpression")}checkPipelineAtInfixOperator(s,o){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&s.type==="SequenceExpression"&&this.raise(f.PipelineHeadSequenceExpression,{at:o})}parseSmartPipelineBodyInStyle(s,o,g){let D=this.startNodeAt(o,g);return this.isSimpleReference(s)?(D.callee=s,this.finishNode(D,"PipelineBareFunction")):(this.checkSmartPipeTopicBodyEarlyErrors(g),D.expression=s,this.finishNode(D,"PipelineTopicExpression"))}isSimpleReference(s){switch(s.type){case"MemberExpression":return!s.computed&&this.isSimpleReference(s.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(s){if(this.match(19))throw this.raise(f.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(f.PipelineTopicUnused,{at:s})}withTopicBindingContext(s){let o=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return s()}finally{this.state.topicContext=o}}withSmartMixTopicForbiddingContext(s){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return s();{let o=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return s()}finally{this.state.topicContext=o}}}withSoloAwaitPermittingContext(s){let o=this.state.soloAwait;this.state.soloAwait=!0;try{return s()}finally{this.state.soloAwait=o}}allowInAnd(s){let o=this.prodParam.currentFlags();if(8&~o){this.prodParam.enter(8|o);try{return s()}finally{this.prodParam.exit()}}return s()}disallowInAnd(s){let o=this.prodParam.currentFlags();if(8&o){this.prodParam.enter(-9&o);try{return s()}finally{this.prodParam.exit()}}return s()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(s){let o=this.state.start,g=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let D=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let B=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),o,g,s);return this.state.inFSharpPipelineDirectBody=D,B}parseModuleExpression(){this.expectPlugin("moduleBlocks");let s=this.startNode();this.next(),this.eat(5);let o=this.initializeScopes(!0);this.enterInitialScopes();let g=this.startNode();try{s.body=this.parseProgram(g,8,"module")}finally{o()}return this.eat(8),this.finishNode(s,"ModuleExpression")}parsePropertyNamePrefixOperator(s){}}{parseTopLevel(s,o){return s.program=this.parseProgram(o),s.comments=this.state.comments,this.options.tokens&&(s.tokens=function(g,D){for(let B=0;B<g.length;B++){let H=g[B],{type:Z}=H;if(typeof Z=="number"){if(Z===134){let{loc:oe,start:me,value:Ne,end:ze}=H,ut=me+1,dt=r(oe.start,1);g.splice(B,1,new Le({type:Y(27),value:"#",start:me,end:ut,startLoc:oe.start,endLoc:dt}),new Le({type:Y(128),value:Ne,start:ut,end:ze,startLoc:dt,endLoc:oe.end})),B++;continue}if(ye(Z)){let{loc:oe,start:me,value:Ne,end:ze}=H,ut=me+1,dt=r(oe.start,1),Ot,kt,Wt,Ht,fr;Ot=D.charCodeAt(me)===96?new Le({type:Y(22),value:"`",start:me,end:ut,startLoc:oe.start,endLoc:dt}):new Le({type:Y(8),value:"}",start:me,end:ut,startLoc:oe.start,endLoc:dt}),Z===24?(Wt=ze-1,Ht=r(oe.end,-1),kt=Ne===null?null:Ne.slice(1,-1),fr=new Le({type:Y(22),value:"`",start:Wt,end:ze,startLoc:Ht,endLoc:oe.end})):(Wt=ze-2,Ht=r(oe.end,-2),kt=Ne===null?null:Ne.slice(1,-2),fr=new Le({type:Y(23),value:"${",start:Wt,end:ze,startLoc:Ht,endLoc:oe.end})),g.splice(B,1,Ot,new Le({type:Y(20),value:kt,start:ut,end:Wt,startLoc:dt,endLoc:Ht}),fr),B+=2;continue}H.type=Y(Z)}}return g}(this.tokens,this.input)),this.finishNode(s,"File")}parseProgram(s,o=135,g=this.options.sourceType){if(s.sourceType=g,s.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(s,!0,!0,o),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[D,B]of Array.from(this.scope.undefinedExports))this.raise(f.ModuleExportUndefined,{at:B,localName:D});return this.finishNode(s,"Program")}stmtToDirective(s){let o=s;o.type="Directive",o.value=o.expression,delete o.expression;let g=o.value,D=g.value,B=this.input.slice(g.start,g.end),H=g.value=B.slice(1,-1);return this.addExtra(g,"raw",B),this.addExtra(g,"rawValue",H),this.addExtra(g,"expressionValue",D),g.type="DirectiveLiteral",o}parseInterpreterDirective(){if(!this.match(28))return null;let s=this.startNode();return s.value=this.state.value,this.next(),this.finishNode(s,"InterpreterDirective")}isLet(s){return!!this.isContextual(99)&&this.isLetKeyword(s)}isLetKeyword(s){let o=this.nextTokenStart(),g=this.codePointAtPos(o);if(g===92||g===91)return!0;if(s)return!1;if(g===123)return!0;if(Se(g)){if(Ln.lastIndex=o,Ln.test(this.input)){let D=this.codePointAtPos(Ln.lastIndex);if(!Ve(D)&&D!==92)return!1}return!0}return!1}parseStatement(s,o){return this.match(26)&&this.parseDecorators(!0),this.parseStatementContent(s,o)}parseStatementContent(s,o){let g=this.state.type,D=this.startNode(),B;switch(this.isLet(s)&&(g=74,B="let"),g){case 60:return this.parseBreakContinueStatement(D,!0);case 63:return this.parseBreakContinueStatement(D,!1);case 64:return this.parseDebuggerStatement(D);case 90:return this.parseDoStatement(D);case 91:return this.parseForStatement(D);case 68:if(this.lookaheadCharCode()===46)break;return s&&(this.state.strict?this.raise(f.StrictFunction,{at:this.state.startLoc}):s!=="if"&&s!=="label"&&this.raise(f.SloppyFunction,{at:this.state.startLoc})),this.parseFunctionStatement(D,!1,!s);case 80:return s&&this.unexpected(),this.parseClass(D,!0);case 69:return this.parseIfStatement(D);case 70:return this.parseReturnStatement(D);case 71:return this.parseSwitchStatement(D);case 72:return this.parseThrowStatement(D);case 73:return this.parseTryStatement(D);case 75:case 74:return B=B||this.state.value,s&&B!=="var"&&this.raise(f.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(D,B);case 92:return this.parseWhileStatement(D);case 76:return this.parseWithStatement(D);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(D);case 83:{let oe=this.lookaheadCharCode();if(oe===40||oe===46)break}case 82:{let oe;return this.options.allowImportExportEverywhere||o||this.raise(f.UnexpectedImportExport,{at:this.state.startLoc}),this.next(),g===83?(oe=this.parseImport(D),oe.type!=="ImportDeclaration"||oe.importKind&&oe.importKind!=="value"||(this.sawUnambiguousESM=!0)):(oe=this.parseExport(D),(oe.type!=="ExportNamedDeclaration"||oe.exportKind&&oe.exportKind!=="value")&&(oe.type!=="ExportAllDeclaration"||oe.exportKind&&oe.exportKind!=="value")&&oe.type!=="ExportDefaultDeclaration"||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(D),oe}default:if(this.isAsyncFunction())return s&&this.raise(f.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(D,!0,!s)}let H=this.state.value,Z=this.parseExpression();return K(g)&&Z.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(D,H,Z,s):this.parseExpressionStatement(D,Z)}assertModuleNodeAllowed(s){this.options.allowImportExportEverywhere||this.inModule||this.raise(f.ImportOutsideModule,{at:s})}takeDecorators(s){let o=this.state.decoratorStack[this.state.decoratorStack.length-1];o.length&&(s.decorators=o,this.resetStartLocationFromNode(s,o[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[])}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(s){let o=this.state.decoratorStack[this.state.decoratorStack.length-1];for(;this.match(26);){let g=this.parseDecorator();o.push(g)}if(this.match(82))s||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(f.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(f.UnexpectedLeadingDecorator,{at:this.state.startLoc})}parseDecorator(){this.expectOnePlugin(["decorators-legacy","decorators"]);let s=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);let o=this.state.start,g=this.state.startLoc,D;if(this.match(10)){let B=this.state.start,H=this.state.startLoc;this.next(),D=this.parseExpression(),this.expect(11),D=this.wrapParenthesis(B,H,D)}else for(D=this.parseIdentifier(!1);this.eat(16);){let B=this.startNodeAt(o,g);B.object=D,B.property=this.parseIdentifier(!0),B.computed=!1,D=this.finishNode(B,"MemberExpression")}s.expression=this.parseMaybeDecoratorArguments(D),this.state.decoratorStack.pop()}else s.expression=this.parseExprSubscripts();return this.finishNode(s,"Decorator")}parseMaybeDecoratorArguments(s){if(this.eat(10)){let o=this.startNodeAtNode(s);return o.callee=s,o.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(o.arguments),this.finishNode(o,"CallExpression")}return s}parseBreakContinueStatement(s,o){return this.next(),this.isLineTerminator()?s.label=null:(s.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(s,o),this.finishNode(s,o?"BreakStatement":"ContinueStatement")}verifyBreakContinue(s,o){let g;for(g=0;g<this.state.labels.length;++g){let D=this.state.labels[g];if((s.label==null||D.name===s.label.name)&&(D.kind!=null&&(o||D.kind==="loop")||s.label&&o))break}if(g===this.state.labels.length){let D=o?"BreakStatement":"ContinueStatement";this.raise(f.IllegalBreakContinue,{at:s,type:D})}}parseDebuggerStatement(s){return this.next(),this.semicolon(),this.finishNode(s,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let s=this.parseExpression();return this.expect(11),s}parseDoStatement(s){return this.next(),this.state.labels.push(li),s.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("do")),this.state.labels.pop(),this.expect(92),s.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(s,"DoWhileStatement")}parseForStatement(s){this.next(),this.state.labels.push(li);let o=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(o=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return o!==null&&this.unexpected(o),this.parseFor(s,null);let g=this.isContextual(99),D=g&&this.isLetKeyword();if(this.match(74)||this.match(75)||D){let me=this.startNode(),Ne=D?"let":this.state.value;return this.next(),this.parseVar(me,!0,Ne),this.finishNode(me,"VariableDeclaration"),(this.match(58)||this.isContextual(101))&&me.declarations.length===1?this.parseForIn(s,me,o):(o!==null&&this.unexpected(o),this.parseFor(s,me))}let B=this.isContextual(95),H=new Qt,Z=this.parseExpression(!0,H),oe=this.isContextual(101);if(oe&&(g&&this.raise(f.ForOfLet,{at:Z}),o===null&&B&&Z.type==="Identifier"&&this.raise(f.ForOfAsync,{at:Z})),oe||this.match(58)){this.checkDestructuringPrivate(H),this.toAssignable(Z,!0);let me=oe?"ForOfStatement":"ForInStatement";return this.checkLVal(Z,{in:{type:me}}),this.parseForIn(s,Z,o)}return this.checkExpressionErrors(H,!0),o!==null&&this.unexpected(o),this.parseFor(s,Z)}parseFunctionStatement(s,o,g){return this.next(),this.parseFunction(s,1|(g?0:2),o)}parseIfStatement(s){return this.next(),s.test=this.parseHeaderExpression(),s.consequent=this.parseStatement("if"),s.alternate=this.eat(66)?this.parseStatement("if"):null,this.finishNode(s,"IfStatement")}parseReturnStatement(s){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(f.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?s.argument=null:(s.argument=this.parseExpression(),this.semicolon()),this.finishNode(s,"ReturnStatement")}parseSwitchStatement(s){this.next(),s.discriminant=this.parseHeaderExpression();let o=s.cases=[],g,D;for(this.expect(5),this.state.labels.push(Ls),this.scope.enter(0);!this.match(8);)if(this.match(61)||this.match(65)){let B=this.match(61);g&&this.finishNode(g,"SwitchCase"),o.push(g=this.startNode()),g.consequent=[],this.next(),B?g.test=this.parseExpression():(D&&this.raise(f.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),D=!0,g.test=null),this.expect(14)}else g?g.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),g&&this.finishNode(g,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(s,"SwitchStatement")}parseThrowStatement(s){return this.next(),this.hasPrecedingLineBreak()&&this.raise(f.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),s.argument=this.parseExpression(),this.semicolon(),this.finishNode(s,"ThrowStatement")}parseCatchClauseParam(){let s=this.parseBindingAtom(),o=s.type==="Identifier";return this.scope.enter(o?8:0),this.checkLVal(s,{in:{type:"CatchClause"},binding:9,allowingSloppyLetBinding:!0}),s}parseTryStatement(s){if(this.next(),s.block=this.parseBlock(),s.handler=null,this.match(62)){let o=this.startNode();this.next(),this.match(10)?(this.expect(10),o.param=this.parseCatchClauseParam(),this.expect(11)):(o.param=null,this.scope.enter(0)),o.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),s.handler=this.finishNode(o,"CatchClause")}return s.finalizer=this.eat(67)?this.parseBlock():null,s.handler||s.finalizer||this.raise(f.NoCatchOrFinally,{at:s}),this.finishNode(s,"TryStatement")}parseVarStatement(s,o,g=!1){return this.next(),this.parseVar(s,!1,o,g),this.semicolon(),this.finishNode(s,"VariableDeclaration")}parseWhileStatement(s){return this.next(),s.test=this.parseHeaderExpression(),this.state.labels.push(li),s.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("while")),this.state.labels.pop(),this.finishNode(s,"WhileStatement")}parseWithStatement(s){return this.state.strict&&this.raise(f.StrictWith,{at:this.state.startLoc}),this.next(),s.object=this.parseHeaderExpression(),s.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("with")),this.finishNode(s,"WithStatement")}parseEmptyStatement(s){return this.next(),this.finishNode(s,"EmptyStatement")}parseLabeledStatement(s,o,g,D){for(let Z of this.state.labels)Z.name===o&&this.raise(f.LabelRedeclaration,{at:g,labelName:o});let B=(H=this.state.type)>=90&&H<=92?"loop":this.match(71)?"switch":null;var H;for(let Z=this.state.labels.length-1;Z>=0;Z--){let oe=this.state.labels[Z];if(oe.statementStart!==s.start)break;oe.statementStart=this.state.start,oe.kind=B}return this.state.labels.push({name:o,kind:B,statementStart:this.state.start}),s.body=this.parseStatement(D?D.indexOf("label")===-1?D+"label":D:"label"),this.state.labels.pop(),s.label=g,this.finishNode(s,"LabeledStatement")}parseExpressionStatement(s,o){return s.expression=o,this.semicolon(),this.finishNode(s,"ExpressionStatement")}parseBlock(s=!1,o=!0,g){let D=this.startNode();return s&&this.state.strictErrors.clear(),this.expect(5),o&&this.scope.enter(0),this.parseBlockBody(D,s,!1,8,g),o&&this.scope.exit(),this.finishNode(D,"BlockStatement")}isValidDirective(s){return s.type==="ExpressionStatement"&&s.expression.type==="StringLiteral"&&!s.expression.extra.parenthesized}parseBlockBody(s,o,g,D,B){let H=s.body=[],Z=s.directives=[];this.parseBlockOrModuleBlockBody(H,o?Z:void 0,g,D,B)}parseBlockOrModuleBlockBody(s,o,g,D,B){let H=this.state.strict,Z=!1,oe=!1;for(;!this.match(D);){let me=this.parseStatement(null,g);if(o&&!oe){if(this.isValidDirective(me)){let Ne=this.stmtToDirective(me);o.push(Ne),Z||Ne.value.value!=="use strict"||(Z=!0,this.setStrict(!0));continue}oe=!0,this.state.strictErrors.clear()}s.push(me)}B&&B.call(this,Z),H||this.setStrict(!1),this.next()}parseFor(s,o){return s.init=o,this.semicolon(!1),s.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),s.update=this.match(11)?null:this.parseExpression(),this.expect(11),s.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("for")),this.scope.exit(),this.state.labels.pop(),this.finishNode(s,"ForStatement")}parseForIn(s,o,g){let D=this.match(58);return this.next(),D?g!==null&&this.unexpected(g):s.await=g!==null,o.type!=="VariableDeclaration"||o.declarations[0].init==null||D&&!this.state.strict&&o.kind==="var"&&o.declarations[0].id.type==="Identifier"||this.raise(f.ForInOfLoopInitializer,{at:o,type:D?"ForInStatement":"ForOfStatement"}),o.type==="AssignmentPattern"&&this.raise(f.InvalidLhs,{at:o,ancestor:{type:"ForStatement"}}),s.left=o,s.right=D?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),s.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("for")),this.scope.exit(),this.state.labels.pop(),this.finishNode(s,D?"ForInStatement":"ForOfStatement")}parseVar(s,o,g,D=!1){let B=s.declarations=[];for(s.kind=g;;){let H=this.startNode();if(this.parseVarId(H,g),H.init=this.eat(29)?o?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,H.init!==null||D||(H.id.type==="Identifier"||o&&(this.match(58)||this.isContextual(101))?g!=="const"||this.match(58)||this.isContextual(101)||this.raise(f.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"}):this.raise(f.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"})),B.push(this.finishNode(H,"VariableDeclarator")),!this.eat(12))break}return s}parseVarId(s,o){s.id=this.parseBindingAtom(),this.checkLVal(s.id,{in:{type:"VariableDeclarator"},binding:o==="var"?5:9})}parseFunction(s,o=0,g=!1){let D=1&o,B=2&o,H=!(!D||4&o);this.initFunction(s,g),this.match(55)&&B&&this.raise(f.GeneratorInSingleStatementContext,{at:this.state.startLoc}),s.generator=this.eat(55),D&&(s.id=this.parseFunctionId(H));let Z=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(zt(g,s.generator)),D||(s.id=this.parseFunctionId()),this.parseFunctionParams(s,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(s,D?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),D&&!B&&this.registerFunctionStatementId(s),this.state.maybeInArrowParameters=Z,s}parseFunctionId(s){return s||K(this.state.type)?this.parseIdentifier():null}parseFunctionParams(s,o){this.expect(10),this.expressionScope.enter(new $t(3)),s.params=this.parseBindingList(11,41,!1,o),this.expressionScope.exit()}registerFunctionStatementId(s){s.id&&this.scope.declareName(s.id.name,this.state.strict||s.generator||s.async?this.scope.treatFunctionsAsVar?5:9:17,s.id.loc.start)}parseClass(s,o,g){this.next(),this.takeDecorators(s);let D=this.state.strict;return this.state.strict=!0,this.parseClassId(s,o,g),this.parseClassSuper(s),s.body=this.parseClassBody(!!s.superClass,D),this.finishNode(s,o?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(s){return!(s.computed||s.static||s.key.name!=="constructor"&&s.key.value!=="constructor")}parseClassBody(s,o){this.classScope.enter();let g={hadConstructor:!1,hadSuperClass:s},D=[],B=this.startNode();if(B.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(D.length>0)throw this.raise(f.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){D.push(this.parseDecorator());continue}let H=this.startNode();D.length&&(H.decorators=D,this.resetStartLocationFromNode(H,D[0]),D=[]),this.parseClassMember(B,H,g),H.kind==="constructor"&&H.decorators&&H.decorators.length>0&&this.raise(f.DecoratorConstructor,{at:H})}}),this.state.strict=o,this.next(),D.length)throw this.raise(f.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(B,"ClassBody")}parseClassMemberFromModifier(s,o){let g=this.parseIdentifier(!0);if(this.isClassMethod()){let D=o;return D.kind="method",D.computed=!1,D.key=g,D.static=!1,this.pushClassMethod(s,D,!1,!1,!1,!1),!0}if(this.isClassProperty()){let D=o;return D.computed=!1,D.key=g,D.static=!1,s.body.push(this.parseClassProperty(D)),!0}return this.resetPreviousNodeTrailingComments(g),!1}parseClassMember(s,o,g){let D=this.isContextual(104);if(D){if(this.parseClassMemberFromModifier(s,o))return;if(this.eat(5))return void this.parseClassStaticBlock(s,o)}this.parseClassMemberWithIsStatic(s,o,g,D)}parseClassMemberWithIsStatic(s,o,g,D){let B=o,H=o,Z=o,oe=o,me=o,Ne=B,ze=B;if(o.static=D,this.parsePropertyNamePrefixOperator(o),this.eat(55)){Ne.kind="method";let Wt=this.match(134);return this.parseClassElementName(Ne),Wt?void this.pushClassPrivateMethod(s,H,!0,!1):(this.isNonstaticConstructor(B)&&this.raise(f.ConstructorIsGenerator,{at:B.key}),void this.pushClassMethod(s,B,!0,!1,!1,!1))}let ut=K(this.state.type)&&!this.state.containsEsc,dt=this.match(134),Ot=this.parseClassElementName(o),kt=this.state.startLoc;if(this.parsePostMemberNameModifiers(ze),this.isClassMethod()){if(Ne.kind="method",dt)return void this.pushClassPrivateMethod(s,H,!1,!1);let Wt=this.isNonstaticConstructor(B),Ht=!1;Wt&&(B.kind="constructor",g.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(f.DuplicateConstructor,{at:Ot}),Wt&&this.hasPlugin("typescript")&&o.override&&this.raise(f.OverrideOnConstructor,{at:Ot}),g.hadConstructor=!0,Ht=g.hadSuperClass),this.pushClassMethod(s,B,!1,!1,Wt,Ht)}else if(this.isClassProperty())dt?this.pushClassPrivateProperty(s,oe):this.pushClassProperty(s,Z);else if(ut&&Ot.name==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(Ot);let Wt=this.eat(55);ze.optional&&this.unexpected(kt),Ne.kind="method";let Ht=this.match(134);this.parseClassElementName(Ne),this.parsePostMemberNameModifiers(ze),Ht?this.pushClassPrivateMethod(s,H,Wt,!0):(this.isNonstaticConstructor(B)&&this.raise(f.ConstructorIsAsync,{at:B.key}),this.pushClassMethod(s,B,Wt,!0,!1,!1))}else if(!ut||Ot.name!=="get"&&Ot.name!=="set"||this.match(55)&&this.isLineTerminator())if(ut&&Ot.name==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(Ot);let Wt=this.match(134);this.parseClassElementName(Z),this.pushClassAccessorProperty(s,me,Wt)}else this.isLineTerminator()?dt?this.pushClassPrivateProperty(s,oe):this.pushClassProperty(s,Z):this.unexpected();else{this.resetPreviousNodeTrailingComments(Ot),Ne.kind=Ot.name;let Wt=this.match(134);this.parseClassElementName(B),Wt?this.pushClassPrivateMethod(s,H,!1,!1):(this.isNonstaticConstructor(B)&&this.raise(f.ConstructorIsAccessor,{at:B.key}),this.pushClassMethod(s,B,!1,!1,!1,!1)),this.checkGetterSetterParams(B)}}parseClassElementName(s){let{type:o,value:g}=this.state;if(o!==128&&o!==129||!s.static||g!=="prototype"||this.raise(f.StaticPrototype,{at:this.state.startLoc}),o===134){g==="constructor"&&this.raise(f.ConstructorClassPrivateField,{at:this.state.startLoc});let D=this.parsePrivateName();return s.key=D,D}return this.parsePropertyName(s)}parseClassStaticBlock(s,o){var g;this.scope.enter(208);let D=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let B=o.body=[];this.parseBlockOrModuleBlockBody(B,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=D,s.body.push(this.finishNode(o,"StaticBlock")),(g=o.decorators)!=null&&g.length&&this.raise(f.DecoratorStaticBlock,{at:o})}pushClassProperty(s,o){o.computed||o.key.name!=="constructor"&&o.key.value!=="constructor"||this.raise(f.ConstructorClassField,{at:o.key}),s.body.push(this.parseClassProperty(o))}pushClassPrivateProperty(s,o){let g=this.parseClassPrivateProperty(o);s.body.push(g),this.classScope.declarePrivateName(this.getPrivateNameSV(g.key),0,g.key.loc.start)}pushClassAccessorProperty(s,o,g){if(!g&&!o.computed){let B=o.key;B.name!=="constructor"&&B.value!=="constructor"||this.raise(f.ConstructorClassField,{at:B})}let D=this.parseClassAccessorProperty(o);s.body.push(D),g&&this.classScope.declarePrivateName(this.getPrivateNameSV(D.key),0,D.key.loc.start)}pushClassMethod(s,o,g,D,B,H){s.body.push(this.parseMethod(o,g,D,B,H,"ClassMethod",!0))}pushClassPrivateMethod(s,o,g,D){let B=this.parseMethod(o,g,D,!1,!1,"ClassPrivateMethod",!0);s.body.push(B);let H=B.kind==="get"?B.static?6:2:B.kind==="set"?B.static?5:1:0;this.declareClassPrivateMethodInScope(B,H)}declareClassPrivateMethodInScope(s,o){this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),o,s.key.loc.start)}parsePostMemberNameModifiers(s){}parseClassPrivateProperty(s){return this.parseInitializer(s),this.semicolon(),this.finishNode(s,"ClassPrivateProperty")}parseClassProperty(s){return this.parseInitializer(s),this.semicolon(),this.finishNode(s,"ClassProperty")}parseClassAccessorProperty(s){return this.parseInitializer(s),this.semicolon(),this.finishNode(s,"ClassAccessorProperty")}parseInitializer(s){this.scope.enter(80),this.expressionScope.enter(Nt()),this.prodParam.enter(0),s.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(s,o,g,D=139){if(K(this.state.type))s.id=this.parseIdentifier(),o&&this.declareNameFromIdentifier(s.id,D);else{if(!g&&o)throw this.raise(f.MissingClassName,{at:this.state.startLoc});s.id=null}}parseClassSuper(s){s.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(s){let o=this.maybeParseExportDefaultSpecifier(s),g=!o||this.eat(12),D=g&&this.eatExportStar(s),B=D&&this.maybeParseExportNamespaceSpecifier(s),H=g&&(!B||this.eat(12)),Z=o||D;if(D&&!B)return o&&this.unexpected(),this.parseExportFrom(s,!0),this.finishNode(s,"ExportAllDeclaration");let oe=this.maybeParseExportNamedSpecifiers(s);if(o&&g&&!D&&!oe||B&&H&&!oe)throw this.unexpected(null,5);let me;if(Z||oe?(me=!1,this.parseExportFrom(s,Z)):me=this.maybeParseExportDeclaration(s),Z||oe||me)return this.checkExport(s,!0,!1,!!s.source),this.finishNode(s,"ExportNamedDeclaration");if(this.eat(65))return s.declaration=this.parseExportDefaultExpression(),this.checkExport(s,!0,!0),this.finishNode(s,"ExportDefaultDeclaration");throw this.unexpected(null,5)}eatExportStar(s){return this.eat(55)}maybeParseExportDefaultSpecifier(s){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");let o=this.startNode();return o.exported=this.parseIdentifier(!0),s.specifiers=[this.finishNode(o,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(s){if(this.isContextual(93)){s.specifiers||(s.specifiers=[]);let o=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),o.exported=this.parseModuleExportName(),s.specifiers.push(this.finishNode(o,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(s){if(this.match(5)){s.specifiers||(s.specifiers=[]);let o=s.exportKind==="type";return s.specifiers.push(...this.parseExportSpecifiers(o)),s.source=null,s.declaration=null,this.hasPlugin("importAssertions")&&(s.assertions=[]),!0}return!1}maybeParseExportDeclaration(s){return!!this.shouldParseExportDeclaration()&&(s.specifiers=[],s.source=null,this.hasPlugin("importAssertions")&&(s.assertions=[]),s.declaration=this.parseExportDeclaration(s),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;let s=this.nextTokenStart();return!Vt.test(this.input.slice(this.state.pos,s))&&this.isUnparsedContextual(s,"function")}parseExportDefaultExpression(){let s=this.startNode(),o=this.isAsyncFunction();if(this.match(68)||o)return this.next(),o&&this.next(),this.parseFunction(s,5,o);if(this.match(80))return this.parseClass(s,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(f.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseDecorators(!1),this.parseClass(s,!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(f.UnsupportedDefaultExport,{at:this.state.startLoc});let g=this.parseMaybeAssignAllowIn();return this.semicolon(),g}parseExportDeclaration(s){return this.parseStatement(null)}isExportDefaultSpecifier(){let{type:s}=this.state;if(K(s)){if(s===95&&!this.state.containsEsc||s===99)return!1;if((s===126||s===125)&&!this.state.containsEsc){let{type:D}=this.lookahead();if(K(D)&&D!==97||D===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let o=this.nextTokenStart(),g=this.isUnparsedContextual(o,"from");if(this.input.charCodeAt(o)===44||K(this.state.type)&&g)return!0;if(this.match(65)&&g){let D=this.input.charCodeAt(this.nextTokenStartSince(o+4));return D===34||D===39}return!1}parseExportFrom(s,o){if(this.eatContextual(97)){s.source=this.parseImportSource(),this.checkExport(s);let g=this.maybeParseImportAssertions();g&&(s.assertions=g)}else o&&this.unexpected();this.semicolon()}shouldParseExportDeclaration(){let{type:s}=this.state;if(s===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(this.getPluginOption("decorators","decoratorsBeforeExport"))throw this.raise(f.DecoratorBeforeExport,{at:this.state.startLoc});return!0}return s===74||s===75||s===68||s===80||this.isLet()||this.isAsyncFunction()}checkExport(s,o,g,D){if(o){if(g){if(this.checkDuplicateExports(s,"default"),this.hasPlugin("exportDefaultFrom")){var B;let H=s.declaration;H.type!=="Identifier"||H.name!=="from"||H.end-H.start!=4||(B=H.extra)!=null&&B.parenthesized||this.raise(f.ExportDefaultFromAsIdentifier,{at:H})}}else if(s.specifiers&&s.specifiers.length)for(let H of s.specifiers){let{exported:Z}=H,oe=Z.type==="Identifier"?Z.name:Z.value;if(this.checkDuplicateExports(H,oe),!D&&H.local){let{local:me}=H;me.type!=="Identifier"?this.raise(f.ExportBindingIsString,{at:H,localName:me.value,exportName:oe}):(this.checkReservedWord(me.name,me.loc.start,!0,!1),this.scope.checkLocalExport(me))}}else if(s.declaration){if(s.declaration.type==="FunctionDeclaration"||s.declaration.type==="ClassDeclaration"){let H=s.declaration.id;if(!H)throw new Error("Assertion failure");this.checkDuplicateExports(s,H.name)}else if(s.declaration.type==="VariableDeclaration")for(let H of s.declaration.declarations)this.checkDeclaration(H.id)}}if(this.state.decoratorStack[this.state.decoratorStack.length-1].length)throw this.raise(f.UnsupportedDecoratorExport,{at:s})}checkDeclaration(s){if(s.type==="Identifier")this.checkDuplicateExports(s,s.name);else if(s.type==="ObjectPattern")for(let o of s.properties)this.checkDeclaration(o);else if(s.type==="ArrayPattern")for(let o of s.elements)o&&this.checkDeclaration(o);else s.type==="ObjectProperty"?this.checkDeclaration(s.value):s.type==="RestElement"?this.checkDeclaration(s.argument):s.type==="AssignmentPattern"&&this.checkDeclaration(s.left)}checkDuplicateExports(s,o){this.exportedIdentifiers.has(o)&&(o==="default"?this.raise(f.DuplicateDefaultExport,{at:s}):this.raise(f.DuplicateExport,{at:s,exportName:o})),this.exportedIdentifiers.add(o)}parseExportSpecifiers(s){let o=[],g=!0;for(this.expect(5);!this.eat(8);){if(g)g=!1;else if(this.expect(12),this.eat(8))break;let D=this.isContextual(126),B=this.match(129),H=this.startNode();H.local=this.parseModuleExportName(),o.push(this.parseExportSpecifier(H,B,s,D))}return o}parseExportSpecifier(s,o,g,D){return this.eatContextual(93)?s.exported=this.parseModuleExportName():o?s.exported=wr(s.local):s.exported||(s.exported=ar(s.local)),this.finishNode(s,"ExportSpecifier")}parseModuleExportName(){if(this.match(129)){let s=this.parseStringLiteral(this.state.value),o=s.value.match(Ms);return o&&this.raise(f.ModuleExportNameHasLoneSurrogate,{at:s,surrogateCharCode:o[0].charCodeAt(0)}),s}return this.parseIdentifier(!0)}parseImport(s){if(s.specifiers=[],!this.match(129)){let g=!this.maybeParseDefaultImportSpecifier(s)||this.eat(12),D=g&&this.maybeParseStarImportSpecifier(s);g&&!D&&this.parseNamedImportSpecifiers(s),this.expectContextual(97)}s.source=this.parseImportSource();let o=this.maybeParseImportAssertions();if(o)s.assertions=o;else{let g=this.maybeParseModuleAttributes();g&&(s.attributes=g)}return this.semicolon(),this.finishNode(s,"ImportDeclaration")}parseImportSource(){return this.match(129)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(s){return K(this.state.type)}parseImportSpecifierLocal(s,o,g){o.local=this.parseIdentifier(),s.specifiers.push(this.finishImportSpecifier(o,g))}finishImportSpecifier(s,o){return this.checkLVal(s.local,{in:s,binding:9}),this.finishNode(s,o)}parseAssertEntries(){let s=[],o=new Set;do{if(this.match(8))break;let g=this.startNode(),D=this.state.value;if(o.has(D)&&this.raise(f.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:D}),o.add(D),this.match(129)?g.key=this.parseStringLiteral(D):g.key=this.parseIdentifier(!0),this.expect(14),!this.match(129))throw this.raise(f.ModuleAttributeInvalidValue,{at:this.state.startLoc});g.value=this.parseStringLiteral(this.state.value),this.finishNode(g,"ImportAttribute"),s.push(g)}while(this.eat(12));return s}maybeParseModuleAttributes(){if(!this.match(76)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();let s=[],o=new Set;do{let g=this.startNode();if(g.key=this.parseIdentifier(!0),g.key.name!=="type"&&this.raise(f.ModuleAttributeDifferentFromType,{at:g.key}),o.has(g.key.name)&&this.raise(f.ModuleAttributesWithDuplicateKeys,{at:g.key,key:g.key.name}),o.add(g.key.name),this.expect(14),!this.match(129))throw this.raise(f.ModuleAttributeInvalidValue,{at:this.state.startLoc});g.value=this.parseStringLiteral(this.state.value),this.finishNode(g,"ImportAttribute"),s.push(g)}while(this.eat(12));return s}maybeParseImportAssertions(){if(!this.isContextual(94)||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next(),this.eat(5);let s=this.parseAssertEntries();return this.eat(8),s}maybeParseDefaultImportSpecifier(s){return!!this.shouldParseDefaultImport(s)&&(this.parseImportSpecifierLocal(s,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(s){if(this.match(55)){let o=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(s,o,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(s){let o=!0;for(this.expect(5);!this.eat(8);){if(o)o=!1;else{if(this.eat(14))throw this.raise(f.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}let g=this.startNode(),D=this.match(129),B=this.isContextual(126);g.imported=this.parseModuleExportName();let H=this.parseImportSpecifier(g,D,s.importKind==="type"||s.importKind==="typeof",B);s.specifiers.push(H)}}parseImportSpecifier(s,o,g,D){if(this.eatContextual(93))s.local=this.parseIdentifier();else{let{imported:B}=s;if(o)throw this.raise(f.ImportBindingIsString,{at:s,importName:B.value});this.checkReservedWord(B.name,s.loc.start,!0,!0),s.local||(s.local=ar(B))}return this.finishImportSpecifier(s,"ImportSpecifier")}isThisParam(s){return s.type==="Identifier"&&s.name==="this"}}{constructor(s,o){super(s=function(g){let D={};for(let B of Object.keys(Zr))D[B]=g&&g[B]!=null?g[B]:Zr[B];return D}(s),o),this.options=s,this.initializeScopes(),this.plugins=function(g){let D=new Map;for(let B of g){let[H,Z]=Array.isArray(B)?B:[B,{}];D.has(H)||D.set(H,Z||{})}return D}(this.options.plugins),this.filename=s.sourceFilename}getScopeHandler(){return Xe}parse(){this.enterInitialScopes();let s=this.startNode(),o=this.startNode();return this.nextToken(),s.errors=null,this.parseTopLevel(s,o),s.errors=this.state.errors,s}}let Bs=function(W){let s={};for(let o of Object.keys(W))s[o]=Y(W[o]);return s}(V);function Pn(W,s){let o=Fi;return W!=null&&W.plugins&&(function(g){if(jt(g,"decorators")){if(jt(g,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let D=jr(g,"decorators","decoratorsBeforeExport");if(D==null)throw new Error("The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'.");if(typeof D!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean.")}if(jt(g,"flow")&&jt(g,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(jt(g,"placeholders")&&jt(g,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(jt(g,"pipelineOperator")){let D=jr(g,"pipelineOperator","proposal");if(!cr.includes(D)){let H=cr.map(Z=>`"${Z}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${H}.`)}let B=jt(g,["recordAndTuple",{syntaxType:"hash"}]);if(D==="hack"){if(jt(g,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(jt(g,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let H=jr(g,"pipelineOperator","topicToken");if(!Hr.includes(H)){let Z=Hr.map(oe=>`"${oe}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${Z}.`)}if(H==="#"&&B)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if(D==="smart"&&B)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(jt(g,"moduleAttributes")){if(jt(g,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if(jr(g,"moduleAttributes","version")!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(jt(g,"recordAndTuple")&&!on.includes(jr(g,"recordAndTuple","syntaxType")))throw new Error("'recordAndTuple' requires 'syntaxType' option whose value should be one of: "+on.map(D=>`'${D}'`).join(", "));if(jt(g,"asyncDoExpressions")&&!jt(g,"doExpressions")){let D=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw D.missingPlugins="doExpressions",D}}(W.plugins),o=function(g){let D=oi.filter(Z=>jt(g,Z)),B=D.join("/"),H=ui[B];if(!H){H=Fi;for(let Z of D)H=kn[Z](H);ui[B]=H}return H}(W.plugins)),new o(W,s)}let ui={};e.parse=function(W,s){var o;if(((o=s)==null?void 0:o.sourceType)!=="unambiguous")return Pn(s,W).parse();s=Object.assign({},s);try{s.sourceType="module";let g=Pn(s,W),D=g.parse();if(g.sawUnambiguousESM)return D;if(g.ambiguousScriptDifferentAst)try{return s.sourceType="script",Pn(s,W).parse()}catch{}else D.program.sourceType="script";return D}catch(g){try{return s.sourceType="script",Pn(s,W).parse()}catch{}throw g}},e.parseExpression=function(W,s){let o=Pn(s,W);return o.options.strictMode&&(o.state.strict=!0),o.getExpression()},e.tokTypes=Bs},"./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.18.2_@babel+core@7.18.5/node_modules/@babel/plugin-proposal-decorators/lib/index.js":(v,e,l)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=l("./node_modules/.pnpm/@babel+helper-plugin-utils@7.17.12/node_modules/@babel/helper-plugin-utils/lib/index.js"),n=l("./node_modules/.pnpm/@babel+plugin-syntax-decorators@7.17.12_@babel+core@7.18.5/node_modules/@babel/plugin-syntax-decorators/lib/index.js"),r=l("./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.18.0_@babel+core@7.18.5/node_modules/@babel/helper-create-class-features-plugin/lib/index.js"),i=l("./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.18.2_@babel+core@7.18.5/node_modules/@babel/plugin-proposal-decorators/lib/transformer-legacy.js"),u=l("./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.18.2_@babel+core@7.18.5/node_modules/@babel/plugin-proposal-decorators/lib/transformer-2021-12.js"),a=(0,t.declare)((d,y)=>{d.assertVersion(7);let{legacy:m,version:S}=y;return m||S==="legacy"?{name:"proposal-decorators",inherits:n.default,visitor:i.default}:S==="2021-12"?(0,u.default)(d,y):(0,r.createClassFeaturePlugin)({name:"proposal-decorators",api:d,feature:r.FEATURES.decorators,inherits:n.default})});e.default=a},"./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.18.2_@babel+core@7.18.5/node_modules/@babel/plugin-proposal-decorators/lib/transformer-2021-12.js":(v,e,l)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({assertVersion:P,assumption:R},{loose:C}){var j;P("^7.16.0");let T=new WeakSet,N=(j=R("constantSuper"))!=null?j:C;return{name:"proposal-decorators",inherits:n.default,visitor:{"ExportNamedDeclaration|ExportDefaultDeclaration"($){var G;let{declaration:k}=$.node;(k==null?void 0:k.type)==="ClassDeclaration"&&((G=k.decorators)==null?void 0:G.length)>0&&(0,i.default)($)},Class($,G){if(T.has($))return;let k=function(U,M,O){let x=U.get("body.body"),F=U.node.decorators,L=!1,V=function(de){let q;return()=>(q||(q=function(ne){let Te=[],je=new Set;return ne.traverse({PrivateName(Oe){je.add(Oe.node.id.name)}}),()=>{let Oe;do u(Te),Oe=String.fromCharCode(...Te);while(je.has(Oe));return t.types.privateName(t.types.identifier(Oe))}}(de)),q())}(U);for(let de of x)if(_(de)){if(de.node.decorators&&de.node.decorators.length>0)L=!0;else if(de.node.type==="ClassAccessorProperty"){let{key:q,value:ne,static:Te,computed:je}=de.node,Oe=V(),be=a(Oe,ne?t.types.cloneNode(ne):void 0,Te),[rt]=de.replaceWith(be);d(rt,q,Oe,je)}}if(!F&&!L)return;let K=[],z,X,J=!1,ie=!1,he=new Set,pe,Ee,ye,Y,re=[],ue=U.scope.parent,ce=(de,q)=>{let ne=ue.generateDeclaredUidIdentifier(q);return re.push(t.types.assignmentExpression("=",ne,de)),t.types.cloneNode(ne)};if(F){ye=ue.generateDeclaredUidIdentifier("initClass");let[de,q]=function(ne){if(ne.type==="ClassDeclaration"){let Te=ne.scope.generateUidIdentifierBasedOnNode(ne.node.id),je=t.types.identifier(ne.node.id.name);return ne.scope.rename(je.name,Te.name),ne.insertBefore(t.types.variableDeclaration("let",[t.types.variableDeclarator(Te)])),ne.get("id").replaceWith(je),[t.types.cloneNode(Te),ne]}{let Te,je;ne.node.id?(Te=ne.node.id.name,je=ne.scope.parent.generateDeclaredUidIdentifier(Te),ne.scope.rename(Te,je.name)):ne.parentPath.node.type==="VariableDeclarator"&&ne.parentPath.node.id.type==="Identifier"?(Te=ne.parentPath.node.id.name,je=ne.scope.parent.generateDeclaredUidIdentifier(Te)):je=ne.scope.parent.generateDeclaredUidIdentifier("decorated_class");let Oe=t.types.classExpression(Te&&t.types.identifier(Te),ne.node.superClass,ne.node.body),[be]=ne.replaceWith(t.types.sequenceExpression([Oe,je]));return[t.types.cloneNode(je),be.get("expressions.0")]}}(U);Y=de,(U=q).node.decorators=null;for(let ne of F)ue.isStatic(ne.expression)||(ne.expression=ce(ne.expression,"dec"))}else U.node.id||(U.node.id=U.scope.generateUidIdentifier("Class")),Y=t.types.cloneNode(U.node.id);if(L)for(let de of x){if(!_(de))continue;let{node:q}=de,ne=de.get("decorators"),Te=Array.isArray(ne)&&ne.length>0;if(Te)for(let wt of ne)ue.isStatic(wt.node.expression)||(wt.node.expression=ce(wt.node.expression,"dec"));let je="computed"in de.node&&de.node.computed===!0;je&&(ue.isStatic(q.key)||(q.key=ce(q.key,"computedKey")));let Oe=m(de),{key:be}=q,rt=be.type==="PrivateName",Lt=!!de.node.static,Ft="computedKey";if(rt?Ft=be.id.name:je||be.type!=="Identifier"||(Ft=be.name),de.isClassMethod({kind:"constructor"})&&(X=de),Te){let wt,Rt,Vt;if(Oe===1){let{value:Et}=de.node,ht=[t.types.thisExpression()];Et&&ht.push(t.types.cloneNode(Et));let Kt=V(),Ye=de.scope.parent.generateDeclaredUidIdentifier(`init_${Ft}`),Mr=a(Kt,t.types.callExpression(t.types.cloneNode(Ye),ht),Lt),[lr]=de.replaceWith(Mr);if(rt){Rt=y(Kt);let Cr=lr.scope.parent.generateDeclaredUidIdentifier(`get_${Ft}`),Gr=lr.scope.parent.generateDeclaredUidIdentifier(`set_${Ft}`);h(lr,be,Cr,Gr),wt=[Ye,Cr,Gr]}else d(lr,be,Kt,je),wt=Ye}else if(Oe===0){let Et=de.scope.parent.generateDeclaredUidIdentifier(`init_${Ft}`),ht=de.get("value");ht.replaceWith(t.types.callExpression(t.types.cloneNode(Et),[t.types.thisExpression(),ht.node].filter(Kt=>Kt))),wt=Et,rt&&(Rt=y(be))}else if(rt){wt=de.scope.parent.generateDeclaredUidIdentifier(`call_${Ft}`),new r.default({constantSuper:O,methodPath:de,objectRef:Y,superRef:U.node.superClass,file:M,refToPreserve:Y}).replace();let{params:Et,body:ht,async:Kt}=de.node;if(Rt=t.types.functionExpression(void 0,Et.filter(f),ht,Kt),Oe===3||Oe===4)w(de,t.types.cloneNode(be),t.types.cloneNode(wt),Lt);else{let Ye=de.node;U.node.body.body.unshift(t.types.classPrivateProperty(be,t.types.cloneNode(wt),[],Ye.static)),he.add(be.id.name),de.remove()}}Vt=je?t.types.cloneNode(be):be.type==="PrivateName"?t.types.stringLiteral(be.id.name):be.type==="Identifier"?t.types.stringLiteral(be.name):t.types.cloneNode(be),K.push({kind:Oe,decorators:ne.map(Et=>Et.node.expression),name:Vt,isStatic:Lt,privateMethods:Rt,locals:wt}),Oe!==0&&(Lt?ie=!0:J=!0),de.node&&(de.node.decorators=null),z||Oe!==0&&Oe!==1||(z=de)}}let Ie=(xe=K,t.types.arrayExpression(E(xe).map(de=>{let q=de.decorators.length>1?t.types.arrayExpression(de.decorators):de.decorators[0],ne=de.isStatic?de.kind+5:de.kind,Te=[q,t.types.numericLiteral(ne),de.name],{privateMethods:je}=de;return Array.isArray(je)?Te.push(...je):je&&Te.push(je),t.types.arrayExpression(Te)}))),Ae=t.types.arrayExpression((F||[]).map(de=>de.expression)),ve=function(de){let q=[];for(let ne of E(de)){let{locals:Te}=ne;Array.isArray(Te)?q.push(...Te):Te!==void 0&&q.push(Te)}return q}(K);var xe;if(J){pe=ue.generateDeclaredUidIdentifier("initProto"),ve.push(pe);let de=t.types.callExpression(t.types.cloneNode(pe),[t.types.thisExpression()]);if(z){let q=z.get("value"),ne=[de];q.node&&ne.push(q.node),q.replaceWith(t.types.sequenceExpression(ne))}else if(X)U.node.superClass?U.traverse({CallExpression:{exit(q){q.get("callee").isSuper()&&(q.replaceWith(t.types.callExpression(t.types.cloneNode(pe),[q.node])),q.skip())}}}):X.node.body.body.unshift(t.types.expressionStatement(de));else{let q=[t.types.expressionStatement(de)];U.node.superClass&&q.unshift(t.types.expressionStatement(t.types.callExpression(t.types.super(),[t.types.spreadElement(t.types.identifier("args"))]))),U.node.body.body.unshift(t.types.classMethod("constructor",t.types.identifier("constructor"),[t.types.restElement(t.types.identifier("args"))],t.types.blockStatement(q)))}}ie&&(Ee=ue.generateDeclaredUidIdentifier("initStatic"),ve.push(Ee)),he.size>0&&U.traverse({PrivateName(de){if(!he.has(de.node.id.name))return;let q=de.parentPath,ne=q.parentPath;if(ne.node.type==="AssignmentExpression"&&ne.node.left===q.node||ne.node.type==="UpdateExpression"||ne.node.type==="RestElement"||ne.node.type==="ArrayPattern"||ne.node.type==="ObjectProperty"&&ne.node.value===q.node&&ne.parentPath.type==="ObjectPattern"||ne.node.type==="ForOfStatement"&&ne.node.left===q.node)throw de.buildCodeFrameError(`Decorated private methods are not updatable, but "#${de.node.id.name}" is updated via this expression.`)}});let Se=!1,Ve=ye&&t.types.callExpression(t.types.cloneNode(ye),[]),$e=U.node;if(F){ve.push(Y,ye);let de=[],q=[];if(U.get("body.body").forEach(ne=>{if(ne.isStaticBlock())return q.push(ne.node),void ne.remove();let Te=ne.isClassProperty()||ne.isClassPrivateProperty();if((Te||ne.isClassPrivateMethod())&&ne.node.static){if(Te&&q.length>0){let Oe=q.map(I);ne.node.value&&Oe.push(ne.node.value),ne.node.value=(je=Oe).length===0?t.types.unaryExpression("void",t.types.numericLiteral(0)):je.length===1?je[0]:t.types.sequenceExpression(je),q=[]}ne.node.static=!1,de.push(ne.node),ne.remove()}var je}),de.length>0||q.length>0){let ne=t.template.expression.ast`
|
|
2148
2148
|
class extends ${M.addHelper("identity")} {}
|
|
2149
2149
|
`;ne.body.body=[t.types.staticBlock([t.types.toStatement(U.node,!1)]),...de];let Te=[],je=t.types.newExpression(ne,[]);q.length>0&&Te.push(...q.map(I)),Ve&&(Se=!0,Te.push(Ve)),Te.length>0?(Te.unshift(t.types.callExpression(t.types.super(),[t.types.cloneNode(Y)])),ne.body.body.push(t.types.classMethod("constructor",t.types.identifier("constructor"),[],t.types.blockStatement([t.types.expressionStatement(t.types.sequenceExpression(Te))])))):je.arguments.push(t.types.cloneNode(Y)),U.replaceWith(je)}}return!Se&&Ve&&U.node.body.body.push(t.types.staticBlock([t.types.expressionStatement(Ve)])),$e.body.body.unshift(t.types.staticBlock([t.types.expressionStatement(t.types.assignmentExpression("=",t.types.arrayPattern(ve),t.types.callExpression(M.addHelper("applyDecs"),[t.types.thisExpression(),Ie,Ae]))),ie&&t.types.expressionStatement(t.types.callExpression(t.types.cloneNode(Ee),[t.types.thisExpression()]))].filter(Boolean))),U.insertBefore(re.map(de=>t.types.expressionStatement(de))),U.scope.crawl(),U}($,G,N);k&&T.add(k)}}}};var t=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/index.js"),n=l("./node_modules/.pnpm/@babel+plugin-syntax-decorators@7.17.12_@babel+core@7.18.5/node_modules/@babel/plugin-syntax-decorators/lib/index.js"),r=l("./node_modules/.pnpm/@babel+helper-replace-supers@7.18.2/node_modules/@babel/helper-replace-supers/lib/index.js"),i=l("./node_modules/.pnpm/@babel+helper-split-export-declaration@7.16.7/node_modules/@babel/helper-split-export-declaration/lib/index.js");function u(P,R=P.length-1){if(R===-1)return void P.unshift(65);let C=P[R];C===90?P[R]=97:C===122?(P[R]=65,u(P,R-1)):P[R]=C+1}function a(P,R,C){return P.type==="PrivateName"?t.types.classPrivateProperty(P,R,void 0,C):t.types.classProperty(P,R,void 0,void 0,C)}function d(P,R,C,j=!1){let{static:T}=P.node,N=t.types.blockStatement([t.types.returnStatement(t.types.memberExpression(t.types.thisExpression(),t.types.cloneNode(C)))]),$=t.types.blockStatement([t.types.expressionStatement(t.types.assignmentExpression("=",t.types.memberExpression(t.types.thisExpression(),t.types.cloneNode(C)),t.types.identifier("v")))]),G,k;R.type==="PrivateName"?(G=t.types.classPrivateMethod("get",t.types.cloneNode(R),[],N,T),k=t.types.classPrivateMethod("set",t.types.cloneNode(R),[t.types.identifier("v")],$,T)):(G=t.types.classMethod("get",t.types.cloneNode(R),[],N,j,T),k=t.types.classMethod("set",t.types.cloneNode(R),[t.types.identifier("v")],$,j,T)),P.insertAfter(k),P.insertAfter(G)}function y(P){return[t.types.functionExpression(void 0,[],t.types.blockStatement([t.types.returnStatement(t.types.memberExpression(t.types.thisExpression(),t.types.cloneNode(P)))])),t.types.functionExpression(void 0,[t.types.identifier("value")],t.types.blockStatement([t.types.expressionStatement(t.types.assignmentExpression("=",t.types.memberExpression(t.types.thisExpression(),t.types.cloneNode(P)),t.types.identifier("value")))]))]}function m(P){switch(P.node.type){case"ClassProperty":case"ClassPrivateProperty":return 0;case"ClassAccessorProperty":return 1;case"ClassMethod":case"ClassPrivateMethod":return P.node.kind==="get"?3:P.node.kind==="set"?4:2}}function S(P){return"decorators"in P}function E(P){let R=P.filter(S);return[...R.filter(C=>C.isStatic&&C.kind>=1&&C.kind<=4),...R.filter(C=>!C.isStatic&&C.kind>=1&&C.kind<=4),...R.filter(C=>C.isStatic&&C.kind===0),...R.filter(C=>!C.isStatic&&C.kind===0)]}function h(P,R,C,j){P.insertAfter(t.types.classPrivateMethod("get",t.types.cloneNode(R),[],t.types.blockStatement([t.types.returnStatement(t.types.callExpression(t.types.cloneNode(C),[t.types.thisExpression()]))]))),P.insertAfter(t.types.classPrivateMethod("set",t.types.cloneNode(R),[t.types.identifier("v")],t.types.blockStatement([t.types.expressionStatement(t.types.callExpression(t.types.cloneNode(j),[t.types.thisExpression(),t.types.identifier("v")]))])))}function f(P){return P.type!=="TSParameterProperty"}function w(P,R,C,j){let T,N;P.node.kind==="set"?(T=[t.types.identifier("v")],N=[t.types.expressionStatement(t.types.callExpression(C,[t.types.thisExpression(),t.types.identifier("v")]))]):(T=[],N=[t.types.returnStatement(t.types.callExpression(C,[t.types.thisExpression()]))]),P.replaceWith(t.types.classPrivateMethod(P.node.kind,t.types.cloneNode(R),T,t.types.blockStatement(N),j))}function _(P){let{type:R}=P;return R!=="TSDeclareMethod"&&R!=="TSIndexSignature"&&R!=="StaticBlock"}function I(P){return t.types.callExpression(t.types.arrowFunctionExpression([],t.types.blockStatement(P.body)),[])}},"./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.18.2_@babel+core@7.18.5/node_modules/@babel/plugin-proposal-decorators/lib/transformer-legacy.js":(v,e,l)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=l("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/index.js");let n=(0,t.template)(`
|
|
2150
2150
|
DECORATOR(CLASS_REF = INNER) || CLASS_REF;
|
|
@@ -2237,33 +2237,33 @@ Did you specify these with the most recent transformation maps first?`);let Xe=C
|
|
|
2237
2237
|
`+Ve+"]"}return he.pop(),Y=Ve,$e}(xe):function(Se){if(he.indexOf(Se)>=0)throw TypeError("Converting circular structure to JSON5");he.push(Se);let Ve=Y;Y+=re;let $e,de=pe||Object.keys(Se),q=[];for(let ne of de){let Te=ue(ne,Se);if(Te!==void 0){let je=Ie(ne)+":";re!==""&&(je+=" "),je+=Te,q.push(je)}}if(q.length===0)$e="{}";else{let ne;if(re==="")ne=q.join(","),$e="{"+ne+"}";else{let Te=`,
|
|
2238
2238
|
`+Y;ne=q.join(Te),$e=`{
|
|
2239
2239
|
`+Y+ne+`,
|
|
2240
|
-
`+Ve+"}"}}return he.pop(),Y=Ve,$e}(xe):void 0}function ce(Ae){let ve={"'":.1,'"':.2},xe={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},Se="";for(let $e=0;$e<Ae.length;$e++){let de=Ae[$e];switch(de){case"'":case'"':ve[de]++,Se+=de;continue;case"\0":if(n.isDigit(Ae[$e+1])){Se+="\\x00";continue}}if(xe[de])Se+=xe[de];else if(de<" "){let q=de.charCodeAt(0).toString(16);Se+="\\x"+("00"+q).substring(q.length)}else Se+=de}let Ve=ye||Object.keys(ve).reduce(($e,de)=>ve[$e]<ve[de]?$e:de);return Se=Se.replace(new RegExp(Ve,"g"),xe[Ve]),Ve+Se+Ve}function Ie(Ae){if(Ae.length===0)return ce(Ae);let ve=String.fromCodePoint(Ae.codePointAt(0));if(!n.isIdStartChar(ve))return ce(Ae);for(let xe=ve.length;xe<Ae.length;xe++)if(!n.isIdContinueChar(String.fromCodePoint(Ae.codePointAt(xe))))return ce(Ae);return Ae}}}},"./node_modules/.pnpm/globals@11.12.0/node_modules/globals/globals.json":v=>{"use strict";v.exports=JSON.parse('{"builtin":{"Array":false,"ArrayBuffer":false,"Atomics":false,"BigInt":false,"BigInt64Array":false,"BigUint64Array":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"globalThis":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es5":{"Array":false,"Boolean":false,"constructor":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"propertyIsEnumerable":false,"RangeError":false,"ReferenceError":false,"RegExp":false,"String":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false},"es2015":{"Array":false,"ArrayBuffer":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es2017":{"Array":false,"ArrayBuffer":false,"Atomics":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"browser":{"AbortController":false,"AbortSignal":false,"addEventListener":false,"alert":false,"AnalyserNode":false,"Animation":false,"AnimationEffectReadOnly":false,"AnimationEffectTiming":false,"AnimationEffectTimingReadOnly":false,"AnimationEvent":false,"AnimationPlaybackEvent":false,"AnimationTimeline":false,"applicationCache":false,"ApplicationCache":false,"ApplicationCacheErrorEvent":false,"atob":false,"Attr":false,"Audio":false,"AudioBuffer":false,"AudioBufferSourceNode":false,"AudioContext":false,"AudioDestinationNode":false,"AudioListener":false,"AudioNode":false,"AudioParam":false,"AudioProcessingEvent":false,"AudioScheduledSourceNode":false,"AudioWorkletGlobalScope ":false,"AudioWorkletNode":false,"AudioWorkletProcessor":false,"BarProp":false,"BaseAudioContext":false,"BatteryManager":false,"BeforeUnloadEvent":false,"BiquadFilterNode":false,"Blob":false,"BlobEvent":false,"blur":false,"BroadcastChannel":false,"btoa":false,"BudgetService":false,"ByteLengthQueuingStrategy":false,"Cache":false,"caches":false,"CacheStorage":false,"cancelAnimationFrame":false,"cancelIdleCallback":false,"CanvasCaptureMediaStreamTrack":false,"CanvasGradient":false,"CanvasPattern":false,"CanvasRenderingContext2D":false,"ChannelMergerNode":false,"ChannelSplitterNode":false,"CharacterData":false,"clearInterval":false,"clearTimeout":false,"clientInformation":false,"ClipboardEvent":false,"close":false,"closed":false,"CloseEvent":false,"Comment":false,"CompositionEvent":false,"confirm":false,"console":false,"ConstantSourceNode":false,"ConvolverNode":false,"CountQueuingStrategy":false,"createImageBitmap":false,"Credential":false,"CredentialsContainer":false,"crypto":false,"Crypto":false,"CryptoKey":false,"CSS":false,"CSSConditionRule":false,"CSSFontFaceRule":false,"CSSGroupingRule":false,"CSSImportRule":false,"CSSKeyframeRule":false,"CSSKeyframesRule":false,"CSSMediaRule":false,"CSSNamespaceRule":false,"CSSPageRule":false,"CSSRule":false,"CSSRuleList":false,"CSSStyleDeclaration":false,"CSSStyleRule":false,"CSSStyleSheet":false,"CSSSupportsRule":false,"CustomElementRegistry":false,"customElements":false,"CustomEvent":false,"DataTransfer":false,"DataTransferItem":false,"DataTransferItemList":false,"defaultstatus":false,"defaultStatus":false,"DelayNode":false,"DeviceMotionEvent":false,"DeviceOrientationEvent":false,"devicePixelRatio":false,"dispatchEvent":false,"document":false,"Document":false,"DocumentFragment":false,"DocumentType":false,"DOMError":false,"DOMException":false,"DOMImplementation":false,"DOMMatrix":false,"DOMMatrixReadOnly":false,"DOMParser":false,"DOMPoint":false,"DOMPointReadOnly":false,"DOMQuad":false,"DOMRect":false,"DOMRectReadOnly":false,"DOMStringList":false,"DOMStringMap":false,"DOMTokenList":false,"DragEvent":false,"DynamicsCompressorNode":false,"Element":false,"ErrorEvent":false,"event":false,"Event":false,"EventSource":false,"EventTarget":false,"external":false,"fetch":false,"File":false,"FileList":false,"FileReader":false,"find":false,"focus":false,"FocusEvent":false,"FontFace":false,"FontFaceSetLoadEvent":false,"FormData":false,"frameElement":false,"frames":false,"GainNode":false,"Gamepad":false,"GamepadButton":false,"GamepadEvent":false,"getComputedStyle":false,"getSelection":false,"HashChangeEvent":false,"Headers":false,"history":false,"History":false,"HTMLAllCollection":false,"HTMLAnchorElement":false,"HTMLAreaElement":false,"HTMLAudioElement":false,"HTMLBaseElement":false,"HTMLBodyElement":false,"HTMLBRElement":false,"HTMLButtonElement":false,"HTMLCanvasElement":false,"HTMLCollection":false,"HTMLContentElement":false,"HTMLDataElement":false,"HTMLDataListElement":false,"HTMLDetailsElement":false,"HTMLDialogElement":false,"HTMLDirectoryElement":false,"HTMLDivElement":false,"HTMLDListElement":false,"HTMLDocument":false,"HTMLElement":false,"HTMLEmbedElement":false,"HTMLFieldSetElement":false,"HTMLFontElement":false,"HTMLFormControlsCollection":false,"HTMLFormElement":false,"HTMLFrameElement":false,"HTMLFrameSetElement":false,"HTMLHeadElement":false,"HTMLHeadingElement":false,"HTMLHRElement":false,"HTMLHtmlElement":false,"HTMLIFrameElement":false,"HTMLImageElement":false,"HTMLInputElement":false,"HTMLLabelElement":false,"HTMLLegendElement":false,"HTMLLIElement":false,"HTMLLinkElement":false,"HTMLMapElement":false,"HTMLMarqueeElement":false,"HTMLMediaElement":false,"HTMLMenuElement":false,"HTMLMetaElement":false,"HTMLMeterElement":false,"HTMLModElement":false,"HTMLObjectElement":false,"HTMLOListElement":false,"HTMLOptGroupElement":false,"HTMLOptionElement":false,"HTMLOptionsCollection":false,"HTMLOutputElement":false,"HTMLParagraphElement":false,"HTMLParamElement":false,"HTMLPictureElement":false,"HTMLPreElement":false,"HTMLProgressElement":false,"HTMLQuoteElement":false,"HTMLScriptElement":false,"HTMLSelectElement":false,"HTMLShadowElement":false,"HTMLSlotElement":false,"HTMLSourceElement":false,"HTMLSpanElement":false,"HTMLStyleElement":false,"HTMLTableCaptionElement":false,"HTMLTableCellElement":false,"HTMLTableColElement":false,"HTMLTableElement":false,"HTMLTableRowElement":false,"HTMLTableSectionElement":false,"HTMLTemplateElement":false,"HTMLTextAreaElement":false,"HTMLTimeElement":false,"HTMLTitleElement":false,"HTMLTrackElement":false,"HTMLUListElement":false,"HTMLUnknownElement":false,"HTMLVideoElement":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"IdleDeadline":false,"IIRFilterNode":false,"Image":false,"ImageBitmap":false,"ImageBitmapRenderingContext":false,"ImageCapture":false,"ImageData":false,"indexedDB":false,"innerHeight":false,"innerWidth":false,"InputEvent":false,"IntersectionObserver":false,"IntersectionObserverEntry":false,"Intl":false,"isSecureContext":false,"KeyboardEvent":false,"KeyframeEffect":false,"KeyframeEffectReadOnly":false,"length":false,"localStorage":false,"location":true,"Location":false,"locationbar":false,"matchMedia":false,"MediaDeviceInfo":false,"MediaDevices":false,"MediaElementAudioSourceNode":false,"MediaEncryptedEvent":false,"MediaError":false,"MediaKeyMessageEvent":false,"MediaKeySession":false,"MediaKeyStatusMap":false,"MediaKeySystemAccess":false,"MediaList":false,"MediaQueryList":false,"MediaQueryListEvent":false,"MediaRecorder":false,"MediaSettingsRange":false,"MediaSource":false,"MediaStream":false,"MediaStreamAudioDestinationNode":false,"MediaStreamAudioSourceNode":false,"MediaStreamEvent":false,"MediaStreamTrack":false,"MediaStreamTrackEvent":false,"menubar":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"MIDIAccess":false,"MIDIConnectionEvent":false,"MIDIInput":false,"MIDIInputMap":false,"MIDIMessageEvent":false,"MIDIOutput":false,"MIDIOutputMap":false,"MIDIPort":false,"MimeType":false,"MimeTypeArray":false,"MouseEvent":false,"moveBy":false,"moveTo":false,"MutationEvent":false,"MutationObserver":false,"MutationRecord":false,"name":false,"NamedNodeMap":false,"NavigationPreloadManager":false,"navigator":false,"Navigator":false,"NetworkInformation":false,"Node":false,"NodeFilter":false,"NodeIterator":false,"NodeList":false,"Notification":false,"OfflineAudioCompletionEvent":false,"OfflineAudioContext":false,"offscreenBuffering":false,"OffscreenCanvas":true,"onabort":true,"onafterprint":true,"onanimationend":true,"onanimationiteration":true,"onanimationstart":true,"onappinstalled":true,"onauxclick":true,"onbeforeinstallprompt":true,"onbeforeprint":true,"onbeforeunload":true,"onblur":true,"oncancel":true,"oncanplay":true,"oncanplaythrough":true,"onchange":true,"onclick":true,"onclose":true,"oncontextmenu":true,"oncuechange":true,"ondblclick":true,"ondevicemotion":true,"ondeviceorientation":true,"ondeviceorientationabsolute":true,"ondrag":true,"ondragend":true,"ondragenter":true,"ondragleave":true,"ondragover":true,"ondragstart":true,"ondrop":true,"ondurationchange":true,"onemptied":true,"onended":true,"onerror":true,"onfocus":true,"ongotpointercapture":true,"onhashchange":true,"oninput":true,"oninvalid":true,"onkeydown":true,"onkeypress":true,"onkeyup":true,"onlanguagechange":true,"onload":true,"onloadeddata":true,"onloadedmetadata":true,"onloadstart":true,"onlostpointercapture":true,"onmessage":true,"onmessageerror":true,"onmousedown":true,"onmouseenter":true,"onmouseleave":true,"onmousemove":true,"onmouseout":true,"onmouseover":true,"onmouseup":true,"onmousewheel":true,"onoffline":true,"ononline":true,"onpagehide":true,"onpageshow":true,"onpause":true,"onplay":true,"onplaying":true,"onpointercancel":true,"onpointerdown":true,"onpointerenter":true,"onpointerleave":true,"onpointermove":true,"onpointerout":true,"onpointerover":true,"onpointerup":true,"onpopstate":true,"onprogress":true,"onratechange":true,"onrejectionhandled":true,"onreset":true,"onresize":true,"onscroll":true,"onsearch":true,"onseeked":true,"onseeking":true,"onselect":true,"onstalled":true,"onstorage":true,"onsubmit":true,"onsuspend":true,"ontimeupdate":true,"ontoggle":true,"ontransitionend":true,"onunhandledrejection":true,"onunload":true,"onvolumechange":true,"onwaiting":true,"onwheel":true,"open":false,"openDatabase":false,"opener":false,"Option":false,"origin":false,"OscillatorNode":false,"outerHeight":false,"outerWidth":false,"PageTransitionEvent":false,"pageXOffset":false,"pageYOffset":false,"PannerNode":false,"parent":false,"Path2D":false,"PaymentAddress":false,"PaymentRequest":false,"PaymentRequestUpdateEvent":false,"PaymentResponse":false,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceLongTaskTiming":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceNavigationTiming":false,"PerformanceObserver":false,"PerformanceObserverEntryList":false,"PerformancePaintTiming":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"PeriodicWave":false,"Permissions":false,"PermissionStatus":false,"personalbar":false,"PhotoCapabilities":false,"Plugin":false,"PluginArray":false,"PointerEvent":false,"PopStateEvent":false,"postMessage":false,"Presentation":false,"PresentationAvailability":false,"PresentationConnection":false,"PresentationConnectionAvailableEvent":false,"PresentationConnectionCloseEvent":false,"PresentationConnectionList":false,"PresentationReceiver":false,"PresentationRequest":false,"print":false,"ProcessingInstruction":false,"ProgressEvent":false,"PromiseRejectionEvent":false,"prompt":false,"PushManager":false,"PushSubscription":false,"PushSubscriptionOptions":false,"queueMicrotask":false,"RadioNodeList":false,"Range":false,"ReadableStream":false,"registerProcessor":false,"RemotePlayback":false,"removeEventListener":false,"Request":false,"requestAnimationFrame":false,"requestIdleCallback":false,"resizeBy":false,"ResizeObserver":false,"ResizeObserverEntry":false,"resizeTo":false,"Response":false,"RTCCertificate":false,"RTCDataChannel":false,"RTCDataChannelEvent":false,"RTCDtlsTransport":false,"RTCIceCandidate":false,"RTCIceGatherer":false,"RTCIceTransport":false,"RTCPeerConnection":false,"RTCPeerConnectionIceEvent":false,"RTCRtpContributingSource":false,"RTCRtpReceiver":false,"RTCRtpSender":false,"RTCSctpTransport":false,"RTCSessionDescription":false,"RTCStatsReport":false,"RTCTrackEvent":false,"screen":false,"Screen":false,"screenLeft":false,"ScreenOrientation":false,"screenTop":false,"screenX":false,"screenY":false,"ScriptProcessorNode":false,"scroll":false,"scrollbars":false,"scrollBy":false,"scrollTo":false,"scrollX":false,"scrollY":false,"SecurityPolicyViolationEvent":false,"Selection":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerRegistration":false,"sessionStorage":false,"setInterval":false,"setTimeout":false,"ShadowRoot":false,"SharedWorker":false,"SourceBuffer":false,"SourceBufferList":false,"speechSynthesis":false,"SpeechSynthesisEvent":false,"SpeechSynthesisUtterance":false,"StaticRange":false,"status":false,"statusbar":false,"StereoPannerNode":false,"stop":false,"Storage":false,"StorageEvent":false,"StorageManager":false,"styleMedia":false,"StyleSheet":false,"StyleSheetList":false,"SubtleCrypto":false,"SVGAElement":false,"SVGAngle":false,"SVGAnimatedAngle":false,"SVGAnimatedBoolean":false,"SVGAnimatedEnumeration":false,"SVGAnimatedInteger":false,"SVGAnimatedLength":false,"SVGAnimatedLengthList":false,"SVGAnimatedNumber":false,"SVGAnimatedNumberList":false,"SVGAnimatedPreserveAspectRatio":false,"SVGAnimatedRect":false,"SVGAnimatedString":false,"SVGAnimatedTransformList":false,"SVGAnimateElement":false,"SVGAnimateMotionElement":false,"SVGAnimateTransformElement":false,"SVGAnimationElement":false,"SVGCircleElement":false,"SVGClipPathElement":false,"SVGComponentTransferFunctionElement":false,"SVGDefsElement":false,"SVGDescElement":false,"SVGDiscardElement":false,"SVGElement":false,"SVGEllipseElement":false,"SVGFEBlendElement":false,"SVGFEColorMatrixElement":false,"SVGFEComponentTransferElement":false,"SVGFECompositeElement":false,"SVGFEConvolveMatrixElement":false,"SVGFEDiffuseLightingElement":false,"SVGFEDisplacementMapElement":false,"SVGFEDistantLightElement":false,"SVGFEDropShadowElement":false,"SVGFEFloodElement":false,"SVGFEFuncAElement":false,"SVGFEFuncBElement":false,"SVGFEFuncGElement":false,"SVGFEFuncRElement":false,"SVGFEGaussianBlurElement":false,"SVGFEImageElement":false,"SVGFEMergeElement":false,"SVGFEMergeNodeElement":false,"SVGFEMorphologyElement":false,"SVGFEOffsetElement":false,"SVGFEPointLightElement":false,"SVGFESpecularLightingElement":false,"SVGFESpotLightElement":false,"SVGFETileElement":false,"SVGFETurbulenceElement":false,"SVGFilterElement":false,"SVGForeignObjectElement":false,"SVGGElement":false,"SVGGeometryElement":false,"SVGGradientElement":false,"SVGGraphicsElement":false,"SVGImageElement":false,"SVGLength":false,"SVGLengthList":false,"SVGLinearGradientElement":false,"SVGLineElement":false,"SVGMarkerElement":false,"SVGMaskElement":false,"SVGMatrix":false,"SVGMetadataElement":false,"SVGMPathElement":false,"SVGNumber":false,"SVGNumberList":false,"SVGPathElement":false,"SVGPatternElement":false,"SVGPoint":false,"SVGPointList":false,"SVGPolygonElement":false,"SVGPolylineElement":false,"SVGPreserveAspectRatio":false,"SVGRadialGradientElement":false,"SVGRect":false,"SVGRectElement":false,"SVGScriptElement":false,"SVGSetElement":false,"SVGStopElement":false,"SVGStringList":false,"SVGStyleElement":false,"SVGSVGElement":false,"SVGSwitchElement":false,"SVGSymbolElement":false,"SVGTextContentElement":false,"SVGTextElement":false,"SVGTextPathElement":false,"SVGTextPositioningElement":false,"SVGTitleElement":false,"SVGTransform":false,"SVGTransformList":false,"SVGTSpanElement":false,"SVGUnitTypes":false,"SVGUseElement":false,"SVGViewElement":false,"TaskAttributionTiming":false,"Text":false,"TextDecoder":false,"TextEncoder":false,"TextEvent":false,"TextMetrics":false,"TextTrack":false,"TextTrackCue":false,"TextTrackCueList":false,"TextTrackList":false,"TimeRanges":false,"toolbar":false,"top":false,"Touch":false,"TouchEvent":false,"TouchList":false,"TrackEvent":false,"TransitionEvent":false,"TreeWalker":false,"UIEvent":false,"URL":false,"URLSearchParams":false,"ValidityState":false,"visualViewport":false,"VisualViewport":false,"VTTCue":false,"WaveShaperNode":false,"WebAssembly":false,"WebGL2RenderingContext":false,"WebGLActiveInfo":false,"WebGLBuffer":false,"WebGLContextEvent":false,"WebGLFramebuffer":false,"WebGLProgram":false,"WebGLQuery":false,"WebGLRenderbuffer":false,"WebGLRenderingContext":false,"WebGLSampler":false,"WebGLShader":false,"WebGLShaderPrecisionFormat":false,"WebGLSync":false,"WebGLTexture":false,"WebGLTransformFeedback":false,"WebGLUniformLocation":false,"WebGLVertexArrayObject":false,"WebSocket":false,"WheelEvent":false,"window":false,"Window":false,"Worker":false,"WritableStream":false,"XMLDocument":false,"XMLHttpRequest":false,"XMLHttpRequestEventTarget":false,"XMLHttpRequestUpload":false,"XMLSerializer":false,"XPathEvaluator":false,"XPathExpression":false,"XPathResult":false,"XSLTProcessor":false},"worker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"clearInterval":false,"clearTimeout":false,"close":true,"console":false,"fetch":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":true,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onlanguagechange":true,"onmessage":true,"onoffline":true,"ononline":true,"onrejectionhandled":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"removeEventListener":false,"Request":false,"Response":false,"self":true,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"node":{"__dirname":false,"__filename":false,"Buffer":false,"clearImmediate":false,"clearInterval":false,"clearTimeout":false,"console":false,"exports":true,"global":false,"Intl":false,"module":false,"process":false,"queueMicrotask":false,"require":false,"setImmediate":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false},"commonjs":{"exports":true,"global":false,"module":false,"require":false},"amd":{"define":false,"require":false},"mocha":{"after":false,"afterEach":false,"before":false,"beforeEach":false,"context":false,"describe":false,"it":false,"mocha":false,"run":false,"setup":false,"specify":false,"suite":false,"suiteSetup":false,"suiteTeardown":false,"teardown":false,"test":false,"xcontext":false,"xdescribe":false,"xit":false,"xspecify":false},"jasmine":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fail":false,"fdescribe":false,"fit":false,"it":false,"jasmine":false,"pending":false,"runs":false,"spyOn":false,"spyOnProperty":false,"waits":false,"waitsFor":false,"xdescribe":false,"xit":false},"jest":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fdescribe":false,"fit":false,"it":false,"jest":false,"pit":false,"require":false,"test":false,"xdescribe":false,"xit":false,"xtest":false},"qunit":{"asyncTest":false,"deepEqual":false,"equal":false,"expect":false,"module":false,"notDeepEqual":false,"notEqual":false,"notOk":false,"notPropEqual":false,"notStrictEqual":false,"ok":false,"propEqual":false,"QUnit":false,"raises":false,"start":false,"stop":false,"strictEqual":false,"test":false,"throws":false},"phantomjs":{"console":true,"exports":true,"phantom":true,"require":true,"WebPage":true},"couch":{"emit":false,"exports":false,"getRow":false,"log":false,"module":false,"provides":false,"require":false,"respond":false,"send":false,"start":false,"sum":false},"rhino":{"defineClass":false,"deserialize":false,"gc":false,"help":false,"importClass":false,"importPackage":false,"java":false,"load":false,"loadClass":false,"Packages":false,"print":false,"quit":false,"readFile":false,"readUrl":false,"runCommand":false,"seal":false,"serialize":false,"spawn":false,"sync":false,"toint32":false,"version":false},"nashorn":{"__DIR__":false,"__FILE__":false,"__LINE__":false,"com":false,"edu":false,"exit":false,"java":false,"Java":false,"javafx":false,"JavaImporter":false,"javax":false,"JSAdapter":false,"load":false,"loadWithNewGlobal":false,"org":false,"Packages":false,"print":false,"quit":false},"wsh":{"ActiveXObject":true,"Enumerator":true,"GetObject":true,"ScriptEngine":true,"ScriptEngineBuildVersion":true,"ScriptEngineMajorVersion":true,"ScriptEngineMinorVersion":true,"VBArray":true,"WScript":true,"WSH":true,"XDomainRequest":true},"jquery":{"$":false,"jQuery":false},"yui":{"YAHOO":false,"YAHOO_config":false,"YUI":false,"YUI_config":false},"shelljs":{"cat":false,"cd":false,"chmod":false,"config":false,"cp":false,"dirs":false,"echo":false,"env":false,"error":false,"exec":false,"exit":false,"find":false,"grep":false,"ln":false,"ls":false,"mkdir":false,"mv":false,"popd":false,"pushd":false,"pwd":false,"rm":false,"sed":false,"set":false,"target":false,"tempdir":false,"test":false,"touch":false,"which":false},"prototypejs":{"$":false,"$$":false,"$A":false,"$break":false,"$continue":false,"$F":false,"$H":false,"$R":false,"$w":false,"Abstract":false,"Ajax":false,"Autocompleter":false,"Builder":false,"Class":false,"Control":false,"Draggable":false,"Draggables":false,"Droppables":false,"Effect":false,"Element":false,"Enumerable":false,"Event":false,"Field":false,"Form":false,"Hash":false,"Insertion":false,"ObjectRange":false,"PeriodicalExecuter":false,"Position":false,"Prototype":false,"Scriptaculous":false,"Selector":false,"Sortable":false,"SortableObserver":false,"Sound":false,"Template":false,"Toggle":false,"Try":false},"meteor":{"_":false,"$":false,"Accounts":false,"AccountsClient":false,"AccountsCommon":false,"AccountsServer":false,"App":false,"Assets":false,"Blaze":false,"check":false,"Cordova":false,"DDP":false,"DDPRateLimiter":false,"DDPServer":false,"Deps":false,"EJSON":false,"Email":false,"HTTP":false,"Log":false,"Match":false,"Meteor":false,"Mongo":false,"MongoInternals":false,"Npm":false,"Package":false,"Plugin":false,"process":false,"Random":false,"ReactiveDict":false,"ReactiveVar":false,"Router":false,"ServiceConfiguration":false,"Session":false,"share":false,"Spacebars":false,"Template":false,"Tinytest":false,"Tracker":false,"UI":false,"Utils":false,"WebApp":false,"WebAppInternals":false},"mongo":{"_isWindows":false,"_rand":false,"BulkWriteResult":false,"cat":false,"cd":false,"connect":false,"db":false,"getHostName":false,"getMemInfo":false,"hostname":false,"ISODate":false,"listFiles":false,"load":false,"ls":false,"md5sumFile":false,"mkdir":false,"Mongo":false,"NumberInt":false,"NumberLong":false,"ObjectId":false,"PlanCache":false,"print":false,"printjson":false,"pwd":false,"quit":false,"removeFile":false,"rs":false,"sh":false,"UUID":false,"version":false,"WriteResult":false},"applescript":{"$":false,"Application":false,"Automation":false,"console":false,"delay":false,"Library":false,"ObjC":false,"ObjectSpecifier":false,"Path":false,"Progress":false,"Ref":false},"serviceworker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"CacheStorage":false,"clearInterval":false,"clearTimeout":false,"Client":false,"clients":false,"Clients":false,"close":true,"console":false,"ExtendableEvent":false,"ExtendableMessageEvent":false,"fetch":false,"FetchEvent":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":false,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onfetch":true,"oninstall":true,"onlanguagechange":true,"onmessage":true,"onmessageerror":true,"onnotificationclick":true,"onnotificationclose":true,"onoffline":true,"ononline":true,"onpush":true,"onpushsubscriptionchange":true,"onrejectionhandled":true,"onsync":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"registration":false,"removeEventListener":false,"Request":false,"Response":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerGlobalScope":false,"ServiceWorkerMessageEvent":false,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"skipWaiting":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"WindowClient":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"atomtest":{"advanceClock":false,"fakeClearInterval":false,"fakeClearTimeout":false,"fakeSetInterval":false,"fakeSetTimeout":false,"resetTimeouts":false,"waitsForPromise":false},"embertest":{"andThen":false,"click":false,"currentPath":false,"currentRouteName":false,"currentURL":false,"fillIn":false,"find":false,"findAll":false,"findWithAssert":false,"keyEvent":false,"pauseTest":false,"resumeTest":false,"triggerEvent":false,"visit":false,"wait":false},"protractor":{"$":false,"$$":false,"browser":false,"by":false,"By":false,"DartObject":false,"element":false,"protractor":false},"shared-node-browser":{"clearInterval":false,"clearTimeout":false,"console":false,"setInterval":false,"setTimeout":false,"URL":false,"URLSearchParams":false},"webextensions":{"browser":false,"chrome":false,"opr":false},"greasemonkey":{"cloneInto":false,"createObjectIn":false,"exportFunction":false,"GM":false,"GM_addStyle":false,"GM_deleteValue":false,"GM_getResourceText":false,"GM_getResourceURL":false,"GM_getValue":false,"GM_info":false,"GM_listValues":false,"GM_log":false,"GM_openInTab":false,"GM_registerMenuCommand":false,"GM_setClipboard":false,"GM_setValue":false,"GM_xmlhttpRequest":false,"unsafeWindow":false},"devtools":{"$":false,"$_":false,"$$":false,"$0":false,"$1":false,"$2":false,"$3":false,"$4":false,"$x":false,"chrome":false,"clear":false,"copy":false,"debug":false,"dir":false,"dirxml":false,"getEventListeners":false,"inspect":false,"keys":false,"monitor":false,"monitorEvents":false,"profile":false,"profileEnd":false,"queryObjects":false,"table":false,"undebug":false,"unmonitor":false,"unmonitorEvents":false,"values":false}}')}},p={};function b(v){var e=p[v];if(e!==void 0)return e.exports;var l=p[v]={exports:{}};return c[v].call(l.exports,l,l.exports,b),l.exports}b.d=(v,e)=>{for(var l in e)b.o(e,l)&&!b.o(v,l)&&Object.defineProperty(v,l,{enumerable:!0,get:e[l]})},b.o=(v,e)=>Object.prototype.hasOwnProperty.call(v,e),b.r=v=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})};var A={};(()=>{"use strict";b.d(A,{default:()=>n});var v=b("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/index.js"),e=b("url"),l=b("./node_modules/.pnpm/@babel+template@7.16.7/node_modules/@babel/template/lib/index.js");function t(r,i){return{name:"transform-import-meta",visitor:{Program(u){let a=[];if(u.traverse({MemberExpression(d){let{node:y}=d;y.object.type==="MetaProperty"&&y.object.meta.name==="import"&&y.object.property.name==="meta"&&y.property.type==="Identifier"&&y.property.name==="url"&&a.push(d)}}),a.length!==0)for(let d of a)d.replaceWith(l.smart.ast`${i.filename?JSON.stringify((0,e.pathToFileURL)(i.filename)):"require('url').pathToFileURL(__filename).toString()"}`)}}}}function n(r){var i,u,a,d,y,m;let S=Object.assign(Object.assign({babelrc:!1,configFile:!1,compact:!1,retainLines:typeof r.retainLines!="boolean"||r.retainLines,filename:"",cwd:"/"},r.babel),{plugins:[[b("./node_modules/.pnpm/@babel+plugin-transform-modules-commonjs@7.18.2_@babel+core@7.18.5/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js"),{allowTopLevelThis:!0}],[b("./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/lib/index.js"),{noInterop:!0}],[t,{filename:r.filename}],[b("./node_modules/.pnpm/@babel+plugin-syntax-class-properties@7.12.13_@babel+core@7.18.5/node_modules/@babel/plugin-syntax-class-properties/lib/index.js")]]});r.ts&&(S.plugins.push([b("./node_modules/.pnpm/@babel+plugin-transform-typescript@7.18.4_@babel+core@7.18.5/node_modules/@babel/plugin-transform-typescript/lib/index.js"),{allowDeclareFields:!0}]),S.plugins.unshift([b("./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.18.2_@babel+core@7.18.5/node_modules/@babel/plugin-proposal-decorators/lib/index.js"),{legacy:!0}]),S.plugins.push(b("./node_modules/.pnpm/babel-plugin-parameter-decorator@1.0.16/node_modules/babel-plugin-parameter-decorator/lib/index.js"))),r.legacy&&(S.plugins.push(b("./node_modules/.pnpm/@babel+plugin-proposal-nullish-coalescing-operator@7.17.12_@babel+core@7.18.5/node_modules/@babel/plugin-proposal-nullish-coalescing-operator/lib/index.js")),S.plugins.push(b("./node_modules/.pnpm/@babel+plugin-proposal-optional-chaining@7.17.12_@babel+core@7.18.5/node_modules/@babel/plugin-proposal-optional-chaining/lib/index.js"))),r.babel&&Array.isArray(r.babel.plugins)&&((i=S.plugins)===null||i===void 0||i.push(...r.babel.plugins));try{return{code:((u=(0,v.transformSync)(r.source,S))===null||u===void 0?void 0:u.code)||""}}catch(E){return{error:E,code:"exports.__JITI_ERROR__ = "+JSON.stringify({filename:r.filename,line:((a=E.loc)===null||a===void 0?void 0:a.line)||0,column:((d=E.loc)===null||d===void 0?void 0:d.column)||0,code:(y=E.code)===null||y===void 0?void 0:y.replace("BABEL_","").replace("PARSE_ERROR","ParseError"),message:(m=E.message)===null||m===void 0?void 0:m.replace("/: ","").replace(/\(.+\)\s*$/,"")})}}}})(),Nd.exports=A.default})()});var Zo=Re((SC,Fd)=>{function Bv(c){throw c}Fd.exports=function(c,p){let b=Id();return p={onError:Bv,...p},p.transform||(p.transform=jd()),b(c,p)}});var xr=Re(el=>{"use strict";el.fromCallback=function(c){return Object.defineProperty(function(...p){if(typeof p[p.length-1]=="function")c.apply(this,p);else return new Promise((b,A)=>{c.call(this,...p,(v,e)=>v!=null?A(v):b(e))})},"name",{value:c.name})};el.fromPromise=function(c){return Object.defineProperty(function(...p){let b=p[p.length-1];if(typeof b!="function")return c.apply(this,p);c.apply(this,p.slice(0,-1)).then(A=>b(null,A),b)},"name",{value:c.name})}});var kd=Re((PC,Rd)=>{var yn=tt("constants"),$v=process.cwd,Ss=null,Uv=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Ss||(Ss=$v.call(process)),Ss};try{process.cwd()}catch{}typeof process.chdir=="function"&&(tl=process.chdir,process.chdir=function(c){Ss=null,tl.call(process,c)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,tl));var tl;Rd.exports=Vv;function Vv(c){yn.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&p(c),c.lutimes||b(c),c.chown=e(c.chown),c.fchown=e(c.fchown),c.lchown=e(c.lchown),c.chmod=A(c.chmod),c.fchmod=A(c.fchmod),c.lchmod=A(c.lchmod),c.chownSync=l(c.chownSync),c.fchownSync=l(c.fchownSync),c.lchownSync=l(c.lchownSync),c.chmodSync=v(c.chmodSync),c.fchmodSync=v(c.fchmodSync),c.lchmodSync=v(c.lchmodSync),c.stat=t(c.stat),c.fstat=t(c.fstat),c.lstat=t(c.lstat),c.statSync=n(c.statSync),c.fstatSync=n(c.fstatSync),c.lstatSync=n(c.lstatSync),c.chmod&&!c.lchmod&&(c.lchmod=function(i,u,a){a&&process.nextTick(a)},c.lchmodSync=function(){}),c.chown&&!c.lchown&&(c.lchown=function(i,u,a,d){d&&process.nextTick(d)},c.lchownSync=function(){}),Uv==="win32"&&(c.rename=typeof c.rename!="function"?c.rename:function(i){function u(a,d,y){var m=Date.now(),S=0;i(a,d,function E(h){if(h&&(h.code==="EACCES"||h.code==="EPERM")&&Date.now()-m<6e4){setTimeout(function(){c.stat(d,function(f,w){f&&f.code==="ENOENT"?i(a,d,E):y(h)})},S),S<100&&(S+=10);return}y&&y(h)})}return Object.setPrototypeOf&&Object.setPrototypeOf(u,i),u}(c.rename)),c.read=typeof c.read!="function"?c.read:function(i){function u(a,d,y,m,S,E){var h;if(E&&typeof E=="function"){var f=0;h=function(w,_,I){if(w&&w.code==="EAGAIN"&&f<10)return f++,i.call(c,a,d,y,m,S,h);E.apply(this,arguments)}}return i.call(c,a,d,y,m,S,h)}return Object.setPrototypeOf&&Object.setPrototypeOf(u,i),u}(c.read),c.readSync=typeof c.readSync!="function"?c.readSync:function(i){return function(u,a,d,y,m){for(var S=0;;)try{return i.call(c,u,a,d,y,m)}catch(E){if(E.code==="EAGAIN"&&S<10){S++;continue}throw E}}}(c.readSync);function p(i){i.lchmod=function(u,a,d){i.open(u,yn.O_WRONLY|yn.O_SYMLINK,a,function(y,m){if(y){d&&d(y);return}i.fchmod(m,a,function(S){i.close(m,function(E){d&&d(S||E)})})})},i.lchmodSync=function(u,a){var d=i.openSync(u,yn.O_WRONLY|yn.O_SYMLINK,a),y=!0,m;try{m=i.fchmodSync(d,a),y=!1}finally{if(y)try{i.closeSync(d)}catch{}else i.closeSync(d)}return m}}function b(i){yn.hasOwnProperty("O_SYMLINK")&&i.futimes?(i.lutimes=function(u,a,d,y){i.open(u,yn.O_SYMLINK,function(m,S){if(m){y&&y(m);return}i.futimes(S,a,d,function(E){i.close(S,function(h){y&&y(E||h)})})})},i.lutimesSync=function(u,a,d){var y=i.openSync(u,yn.O_SYMLINK),m,S=!0;try{m=i.futimesSync(y,a,d),S=!1}finally{if(S)try{i.closeSync(y)}catch{}else i.closeSync(y)}return m}):i.futimes&&(i.lutimes=function(u,a,d,y){y&&process.nextTick(y)},i.lutimesSync=function(){})}function A(i){return i&&function(u,a,d){return i.call(c,u,a,function(y){r(y)&&(y=null),d&&d.apply(this,arguments)})}}function v(i){return i&&function(u,a){try{return i.call(c,u,a)}catch(d){if(!r(d))throw d}}}function e(i){return i&&function(u,a,d,y){return i.call(c,u,a,d,function(m){r(m)&&(m=null),y&&y.apply(this,arguments)})}}function l(i){return i&&function(u,a,d){try{return i.call(c,u,a,d)}catch(y){if(!r(y))throw y}}}function t(i){return i&&function(u,a,d){typeof a=="function"&&(d=a,a=null);function y(m,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),d&&d.apply(this,arguments)}return a?i.call(c,u,a,y):i.call(c,u,y)}}function n(i){return i&&function(u,a){var d=a?i.call(c,u,a):i.call(c,u);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function r(i){if(!i||i.code==="ENOSYS")return!0;var u=!process.getuid||process.getuid()!==0;return!!(u&&(i.code==="EINVAL"||i.code==="EPERM"))}}});var Bd=Re((AC,Md)=>{var Ld=tt("stream").Stream;Md.exports=Wv;function Wv(c){return{ReadStream:p,WriteStream:b};function p(A,v){if(!(this instanceof p))return new p(A,v);Ld.call(this);var e=this;this.path=A,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,v=v||{};for(var l=Object.keys(v),t=0,n=l.length;t<n;t++){var r=l[t];this[r]=v[r]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){e._read()});return}c.open(this.path,this.flags,this.mode,function(i,u){if(i){e.emit("error",i),e.readable=!1;return}e.fd=u,e.emit("open",u),e._read()})}function b(A,v){if(!(this instanceof b))return new b(A,v);Ld.call(this),this.path=A,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,v=v||{};for(var e=Object.keys(v),l=0,t=e.length;l<t;l++){var n=e[l];this[n]=v[n]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=c.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Ud=Re((_C,$d)=>{"use strict";$d.exports=Kv;var Gv=Object.getPrototypeOf||function(c){return c.__proto__};function Kv(c){if(c===null||typeof c!="object")return c;if(c instanceof Object)var p={__proto__:Gv(c)};else var p=Object.create(null);return Object.getOwnPropertyNames(c).forEach(function(b){Object.defineProperty(p,b,Object.getOwnPropertyDescriptor(c,b))}),p}});var Ar=Re((CC,il)=>{var nr=tt("fs"),Hv=kd(),Yv=Bd(),Xv=Ud(),Ts=tt("util"),yr,As;typeof Symbol=="function"&&typeof Symbol.for=="function"?(yr=Symbol.for("graceful-fs.queue"),As=Symbol.for("graceful-fs.previous")):(yr="___graceful-fs.queue",As="___graceful-fs.previous");function zv(){}function Gd(c,p){Object.defineProperty(c,yr,{get:function(){return p}})}var jn=zv;Ts.debuglog?jn=Ts.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(jn=function(){var c=Ts.format.apply(Ts,arguments);c="GFS4: "+c.split(/\n/).join(`
|
|
2241
|
-
GFS4: `),console.error(c)});nr[yr]||(Vd=global[yr]||[],Gd(nr,Vd),nr.close=function(c){function p(b,A){return c.call(nr,b,function(v){v||Wd(),typeof A=="function"&&A.apply(this,arguments)})}return Object.defineProperty(p,As,{value:c}),p}(nr.close),nr.closeSync=function(c){function p(b){c.apply(nr,arguments),Wd()}return Object.defineProperty(p,As,{value:c}),p}(nr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){jn(nr[yr]),tt("assert").equal(nr[yr].length,0)}));var Vd;global[yr]||Gd(global,nr[yr]);il.exports=rl(Xv(nr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!nr.__patched&&(il.exports=rl(nr),nr.__patched=!0);function rl(c){Hv(c),c.gracefulify=rl,c.createReadStream=_,c.createWriteStream=I;var p=c.readFile;c.readFile=b;function b(C,j,T){return typeof j=="function"&&(T=j,j=null),N(C,j,T);function N($,G,k,U){return p($,G,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?ni([N,[$,G,k],M,U||Date.now(),Date.now()]):typeof k=="function"&&k.apply(this,arguments)})}}var A=c.writeFile;c.writeFile=v;function v(C,j,T,N){return typeof T=="function"&&(N=T,T=null),$(C,j,T,N);function $(G,k,U,M,O){return A(G,k,U,function(x){x&&(x.code==="EMFILE"||x.code==="ENFILE")?ni([$,[G,k,U,M],x,O||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var e=c.appendFile;e&&(c.appendFile=l);function l(C,j,T,N){return typeof T=="function"&&(N=T,T=null),$(C,j,T,N);function $(G,k,U,M,O){return e(G,k,U,function(x){x&&(x.code==="EMFILE"||x.code==="ENFILE")?ni([$,[G,k,U,M],x,O||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var t=c.copyFile;t&&(c.copyFile=n);function n(C,j,T,N){return typeof T=="function"&&(N=T,T=0),$(C,j,T,N);function $(G,k,U,M,O){return t(G,k,U,function(x){x&&(x.code==="EMFILE"||x.code==="ENFILE")?ni([$,[G,k,U,M],x,O||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var r=c.readdir;c.readdir=u;var i=/^v[0-5]\./;function u(C,j,T){typeof j=="function"&&(T=j,j=null);var N=i.test(process.version)?function(k,U,M,O){return r(k,$(k,U,M,O))}:function(k,U,M,O){return r(k,U,$(k,U,M,O))};return N(C,j,T);function $(G,k,U,M){return function(O,x){O&&(O.code==="EMFILE"||O.code==="ENFILE")?ni([N,[G,k,U],O,M||Date.now(),Date.now()]):(x&&x.sort&&x.sort(),typeof U=="function"&&U.call(this,O,x))}}}if(process.version.substr(0,4)==="v0.8"){var a=Yv(c);E=a.ReadStream,f=a.WriteStream}var d=c.ReadStream;d&&(E.prototype=Object.create(d.prototype),E.prototype.open=h);var y=c.WriteStream;y&&(f.prototype=Object.create(y.prototype),f.prototype.open=w),Object.defineProperty(c,"ReadStream",{get:function(){return E},set:function(C){E=C},enumerable:!0,configurable:!0}),Object.defineProperty(c,"WriteStream",{get:function(){return f},set:function(C){f=C},enumerable:!0,configurable:!0});var m=E;Object.defineProperty(c,"FileReadStream",{get:function(){return m},set:function(C){m=C},enumerable:!0,configurable:!0});var S=f;Object.defineProperty(c,"FileWriteStream",{get:function(){return S},set:function(C){S=C},enumerable:!0,configurable:!0});function E(C,j){return this instanceof E?(d.apply(this,arguments),this):E.apply(Object.create(E.prototype),arguments)}function h(){var C=this;R(C.path,C.flags,C.mode,function(j,T){j?(C.autoClose&&C.destroy(),C.emit("error",j)):(C.fd=T,C.emit("open",T),C.read())})}function f(C,j){return this instanceof f?(y.apply(this,arguments),this):f.apply(Object.create(f.prototype),arguments)}function w(){var C=this;R(C.path,C.flags,C.mode,function(j,T){j?(C.destroy(),C.emit("error",j)):(C.fd=T,C.emit("open",T))})}function _(C,j){return new c.ReadStream(C,j)}function I(C,j){return new c.WriteStream(C,j)}var P=c.open;c.open=R;function R(C,j,T,N){return typeof T=="function"&&(N=T,T=null),$(C,j,T,N);function $(G,k,U,M,O){return P(G,k,U,function(x,F){x&&(x.code==="EMFILE"||x.code==="ENFILE")?ni([$,[G,k,U,M],x,O||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}return c}function ni(c){jn("ENQUEUE",c[0].name,c[1]),nr[yr].push(c),nl()}var Ps;function Wd(){for(var c=Date.now(),p=0;p<nr[yr].length;++p)nr[yr][p].length>2&&(nr[yr][p][3]=c,nr[yr][p][4]=c);nl()}function nl(){if(clearTimeout(Ps),Ps=void 0,nr[yr].length!==0){var c=nr[yr].shift(),p=c[0],b=c[1],A=c[2],v=c[3],e=c[4];if(v===void 0)jn("RETRY",p.name,b),p.apply(null,b);else if(Date.now()-v>=6e4){jn("TIMEOUT",p.name,b);var l=b.pop();typeof l=="function"&&l.call(null,A)}else{var t=Date.now()-e,n=Math.max(e-v,1),r=Math.min(n*1.2,100);t>=r?(jn("RETRY",p.name,b),p.apply(null,b.concat([v]))):nr[yr].push(c)}Ps===void 0&&(Ps=setTimeout(nl,0))}}});var Fn=Re(bn=>{"use strict";var Kd=xr().fromCallback,Or=Ar(),Jv=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(c=>typeof Or[c]=="function");Object.assign(bn,Or);Jv.forEach(c=>{bn[c]=Kd(Or[c])});bn.exists=function(c,p){return typeof p=="function"?Or.exists(c,p):new Promise(b=>Or.exists(c,b))};bn.read=function(c,p,b,A,v,e){return typeof e=="function"?Or.read(c,p,b,A,v,e):new Promise((l,t)=>{Or.read(c,p,b,A,v,(n,r,i)=>{if(n)return t(n);l({bytesRead:r,buffer:i})})})};bn.write=function(c,p,...b){return typeof b[b.length-1]=="function"?Or.write(c,p,...b):new Promise((A,v)=>{Or.write(c,p,...b,(e,l,t)=>{if(e)return v(e);A({bytesWritten:l,buffer:t})})})};typeof Or.writev=="function"&&(bn.writev=function(c,p,...b){return typeof b[b.length-1]=="function"?Or.writev(c,p,...b):new Promise((A,v)=>{Or.writev(c,p,...b,(e,l,t)=>{if(e)return v(e);A({bytesWritten:l,buffers:t})})})});typeof Or.realpath.native=="function"?bn.realpath.native=Kd(Or.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var Yd=Re((DC,Hd)=>{"use strict";var qv=tt("path");Hd.exports.checkPath=function(p){if(process.platform==="win32"&&/[<>:"|?*]/.test(p.replace(qv.parse(p).root,""))){let A=new Error(`Path contains invalid characters: ${p}`);throw A.code="EINVAL",A}}});var qd=Re((xC,sl)=>{"use strict";var Xd=Fn(),{checkPath:zd}=Yd(),Jd=c=>{let p={mode:511};return typeof c=="number"?c:{...p,...c}.mode};sl.exports.makeDir=async(c,p)=>(zd(c),Xd.mkdir(c,{mode:Jd(p),recursive:!0}));sl.exports.makeDirSync=(c,p)=>(zd(c),Xd.mkdirSync(c,{mode:Jd(p),recursive:!0}))});var Vr=Re((OC,Qd)=>{"use strict";var Qv=xr().fromPromise,{makeDir:Zv,makeDirSync:al}=qd(),ol=Qv(Zv);Qd.exports={mkdirs:ol,mkdirsSync:al,mkdirp:ol,mkdirpSync:al,ensureDir:ol,ensureDirSync:al}});var gn=Re((IC,ef)=>{"use strict";var eS=xr().fromPromise,Zd=Fn();function tS(c){return Zd.access(c).then(()=>!0).catch(()=>!1)}ef.exports={pathExists:eS(tS),pathExistsSync:Zd.existsSync}});var ll=Re((NC,tf)=>{"use strict";var ii=Ar();function rS(c,p,b,A){ii.open(c,"r+",(v,e)=>{if(v)return A(v);ii.futimes(e,p,b,l=>{ii.close(e,t=>{A&&A(l||t)})})})}function nS(c,p,b){let A=ii.openSync(c,"r+");return ii.futimesSync(A,p,b),ii.closeSync(A)}tf.exports={utimesMillis:rS,utimesMillisSync:nS}});var Rn=Re((jC,sf)=>{"use strict";var si=Fn(),dr=tt("path"),iS=tt("util");function sS(c,p,b){let A=b.dereference?v=>si.stat(v,{bigint:!0}):v=>si.lstat(v,{bigint:!0});return Promise.all([A(c),A(p).catch(v=>{if(v.code==="ENOENT")return null;throw v})]).then(([v,e])=>({srcStat:v,destStat:e}))}function aS(c,p,b){let A,v=b.dereference?l=>si.statSync(l,{bigint:!0}):l=>si.lstatSync(l,{bigint:!0}),e=v(c);try{A=v(p)}catch(l){if(l.code==="ENOENT")return{srcStat:e,destStat:null};throw l}return{srcStat:e,destStat:A}}function oS(c,p,b,A,v){iS.callbackify(sS)(c,p,A,(e,l)=>{if(e)return v(e);let{srcStat:t,destStat:n}=l;if(n){if(Pi(t,n)){let r=dr.basename(c),i=dr.basename(p);return b==="move"&&r!==i&&r.toLowerCase()===i.toLowerCase()?v(null,{srcStat:t,destStat:n,isChangingCase:!0}):v(new Error("Source and destination must not be the same."))}if(t.isDirectory()&&!n.isDirectory())return v(new Error(`Cannot overwrite non-directory '${p}' with directory '${c}'.`));if(!t.isDirectory()&&n.isDirectory())return v(new Error(`Cannot overwrite directory '${p}' with non-directory '${c}'.`))}return t.isDirectory()&&ul(c,p)?v(new Error(_s(c,p,b))):v(null,{srcStat:t,destStat:n})})}function lS(c,p,b,A){let{srcStat:v,destStat:e}=aS(c,p,A);if(e){if(Pi(v,e)){let l=dr.basename(c),t=dr.basename(p);if(b==="move"&&l!==t&&l.toLowerCase()===t.toLowerCase())return{srcStat:v,destStat:e,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(v.isDirectory()&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${p}' with directory '${c}'.`);if(!v.isDirectory()&&e.isDirectory())throw new Error(`Cannot overwrite directory '${p}' with non-directory '${c}'.`)}if(v.isDirectory()&&ul(c,p))throw new Error(_s(c,p,b));return{srcStat:v,destStat:e}}function rf(c,p,b,A,v){let e=dr.resolve(dr.dirname(c)),l=dr.resolve(dr.dirname(b));if(l===e||l===dr.parse(l).root)return v();si.stat(l,{bigint:!0},(t,n)=>t?t.code==="ENOENT"?v():v(t):Pi(p,n)?v(new Error(_s(c,b,A))):rf(c,p,l,A,v))}function nf(c,p,b,A){let v=dr.resolve(dr.dirname(c)),e=dr.resolve(dr.dirname(b));if(e===v||e===dr.parse(e).root)return;let l;try{l=si.statSync(e,{bigint:!0})}catch(t){if(t.code==="ENOENT")return;throw t}if(Pi(p,l))throw new Error(_s(c,b,A));return nf(c,p,e,A)}function Pi(c,p){return p.ino&&p.dev&&p.ino===c.ino&&p.dev===c.dev}function ul(c,p){let b=dr.resolve(c).split(dr.sep).filter(v=>v),A=dr.resolve(p).split(dr.sep).filter(v=>v);return b.reduce((v,e,l)=>v&&A[l]===e,!0)}function _s(c,p,b){return`Cannot ${b} '${c}' to a subdirectory of itself, '${p}'.`}sf.exports={checkPaths:oS,checkPathsSync:lS,checkParentPaths:rf,checkParentPathsSync:nf,isSrcSubdir:ul,areIdentical:Pi}});var ff=Re((FC,df)=>{"use strict";var Ir=Ar(),Ai=tt("path"),uS=Vr().mkdirs,cS=gn().pathExists,pS=ll().utimesMillis,_i=Rn();function dS(c,p,b,A){typeof b=="function"&&!A?(A=b,b={}):typeof b=="function"&&(b={filter:b}),A=A||function(){},b=b||{},b.clobber="clobber"in b?!!b.clobber:!0,b.overwrite="overwrite"in b?!!b.overwrite:b.clobber,b.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
2240
|
+
`+Ve+"}"}}return he.pop(),Y=Ve,$e}(xe):void 0}function ce(Ae){let ve={"'":.1,'"':.2},xe={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},Se="";for(let $e=0;$e<Ae.length;$e++){let de=Ae[$e];switch(de){case"'":case'"':ve[de]++,Se+=de;continue;case"\0":if(n.isDigit(Ae[$e+1])){Se+="\\x00";continue}}if(xe[de])Se+=xe[de];else if(de<" "){let q=de.charCodeAt(0).toString(16);Se+="\\x"+("00"+q).substring(q.length)}else Se+=de}let Ve=ye||Object.keys(ve).reduce(($e,de)=>ve[$e]<ve[de]?$e:de);return Se=Se.replace(new RegExp(Ve,"g"),xe[Ve]),Ve+Se+Ve}function Ie(Ae){if(Ae.length===0)return ce(Ae);let ve=String.fromCodePoint(Ae.codePointAt(0));if(!n.isIdStartChar(ve))return ce(Ae);for(let xe=ve.length;xe<Ae.length;xe++)if(!n.isIdContinueChar(String.fromCodePoint(Ae.codePointAt(xe))))return ce(Ae);return Ae}}}},"./node_modules/.pnpm/globals@11.12.0/node_modules/globals/globals.json":v=>{"use strict";v.exports=JSON.parse('{"builtin":{"Array":false,"ArrayBuffer":false,"Atomics":false,"BigInt":false,"BigInt64Array":false,"BigUint64Array":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"globalThis":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es5":{"Array":false,"Boolean":false,"constructor":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"propertyIsEnumerable":false,"RangeError":false,"ReferenceError":false,"RegExp":false,"String":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false},"es2015":{"Array":false,"ArrayBuffer":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es2017":{"Array":false,"ArrayBuffer":false,"Atomics":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"browser":{"AbortController":false,"AbortSignal":false,"addEventListener":false,"alert":false,"AnalyserNode":false,"Animation":false,"AnimationEffectReadOnly":false,"AnimationEffectTiming":false,"AnimationEffectTimingReadOnly":false,"AnimationEvent":false,"AnimationPlaybackEvent":false,"AnimationTimeline":false,"applicationCache":false,"ApplicationCache":false,"ApplicationCacheErrorEvent":false,"atob":false,"Attr":false,"Audio":false,"AudioBuffer":false,"AudioBufferSourceNode":false,"AudioContext":false,"AudioDestinationNode":false,"AudioListener":false,"AudioNode":false,"AudioParam":false,"AudioProcessingEvent":false,"AudioScheduledSourceNode":false,"AudioWorkletGlobalScope ":false,"AudioWorkletNode":false,"AudioWorkletProcessor":false,"BarProp":false,"BaseAudioContext":false,"BatteryManager":false,"BeforeUnloadEvent":false,"BiquadFilterNode":false,"Blob":false,"BlobEvent":false,"blur":false,"BroadcastChannel":false,"btoa":false,"BudgetService":false,"ByteLengthQueuingStrategy":false,"Cache":false,"caches":false,"CacheStorage":false,"cancelAnimationFrame":false,"cancelIdleCallback":false,"CanvasCaptureMediaStreamTrack":false,"CanvasGradient":false,"CanvasPattern":false,"CanvasRenderingContext2D":false,"ChannelMergerNode":false,"ChannelSplitterNode":false,"CharacterData":false,"clearInterval":false,"clearTimeout":false,"clientInformation":false,"ClipboardEvent":false,"close":false,"closed":false,"CloseEvent":false,"Comment":false,"CompositionEvent":false,"confirm":false,"console":false,"ConstantSourceNode":false,"ConvolverNode":false,"CountQueuingStrategy":false,"createImageBitmap":false,"Credential":false,"CredentialsContainer":false,"crypto":false,"Crypto":false,"CryptoKey":false,"CSS":false,"CSSConditionRule":false,"CSSFontFaceRule":false,"CSSGroupingRule":false,"CSSImportRule":false,"CSSKeyframeRule":false,"CSSKeyframesRule":false,"CSSMediaRule":false,"CSSNamespaceRule":false,"CSSPageRule":false,"CSSRule":false,"CSSRuleList":false,"CSSStyleDeclaration":false,"CSSStyleRule":false,"CSSStyleSheet":false,"CSSSupportsRule":false,"CustomElementRegistry":false,"customElements":false,"CustomEvent":false,"DataTransfer":false,"DataTransferItem":false,"DataTransferItemList":false,"defaultstatus":false,"defaultStatus":false,"DelayNode":false,"DeviceMotionEvent":false,"DeviceOrientationEvent":false,"devicePixelRatio":false,"dispatchEvent":false,"document":false,"Document":false,"DocumentFragment":false,"DocumentType":false,"DOMError":false,"DOMException":false,"DOMImplementation":false,"DOMMatrix":false,"DOMMatrixReadOnly":false,"DOMParser":false,"DOMPoint":false,"DOMPointReadOnly":false,"DOMQuad":false,"DOMRect":false,"DOMRectReadOnly":false,"DOMStringList":false,"DOMStringMap":false,"DOMTokenList":false,"DragEvent":false,"DynamicsCompressorNode":false,"Element":false,"ErrorEvent":false,"event":false,"Event":false,"EventSource":false,"EventTarget":false,"external":false,"fetch":false,"File":false,"FileList":false,"FileReader":false,"find":false,"focus":false,"FocusEvent":false,"FontFace":false,"FontFaceSetLoadEvent":false,"FormData":false,"frameElement":false,"frames":false,"GainNode":false,"Gamepad":false,"GamepadButton":false,"GamepadEvent":false,"getComputedStyle":false,"getSelection":false,"HashChangeEvent":false,"Headers":false,"history":false,"History":false,"HTMLAllCollection":false,"HTMLAnchorElement":false,"HTMLAreaElement":false,"HTMLAudioElement":false,"HTMLBaseElement":false,"HTMLBodyElement":false,"HTMLBRElement":false,"HTMLButtonElement":false,"HTMLCanvasElement":false,"HTMLCollection":false,"HTMLContentElement":false,"HTMLDataElement":false,"HTMLDataListElement":false,"HTMLDetailsElement":false,"HTMLDialogElement":false,"HTMLDirectoryElement":false,"HTMLDivElement":false,"HTMLDListElement":false,"HTMLDocument":false,"HTMLElement":false,"HTMLEmbedElement":false,"HTMLFieldSetElement":false,"HTMLFontElement":false,"HTMLFormControlsCollection":false,"HTMLFormElement":false,"HTMLFrameElement":false,"HTMLFrameSetElement":false,"HTMLHeadElement":false,"HTMLHeadingElement":false,"HTMLHRElement":false,"HTMLHtmlElement":false,"HTMLIFrameElement":false,"HTMLImageElement":false,"HTMLInputElement":false,"HTMLLabelElement":false,"HTMLLegendElement":false,"HTMLLIElement":false,"HTMLLinkElement":false,"HTMLMapElement":false,"HTMLMarqueeElement":false,"HTMLMediaElement":false,"HTMLMenuElement":false,"HTMLMetaElement":false,"HTMLMeterElement":false,"HTMLModElement":false,"HTMLObjectElement":false,"HTMLOListElement":false,"HTMLOptGroupElement":false,"HTMLOptionElement":false,"HTMLOptionsCollection":false,"HTMLOutputElement":false,"HTMLParagraphElement":false,"HTMLParamElement":false,"HTMLPictureElement":false,"HTMLPreElement":false,"HTMLProgressElement":false,"HTMLQuoteElement":false,"HTMLScriptElement":false,"HTMLSelectElement":false,"HTMLShadowElement":false,"HTMLSlotElement":false,"HTMLSourceElement":false,"HTMLSpanElement":false,"HTMLStyleElement":false,"HTMLTableCaptionElement":false,"HTMLTableCellElement":false,"HTMLTableColElement":false,"HTMLTableElement":false,"HTMLTableRowElement":false,"HTMLTableSectionElement":false,"HTMLTemplateElement":false,"HTMLTextAreaElement":false,"HTMLTimeElement":false,"HTMLTitleElement":false,"HTMLTrackElement":false,"HTMLUListElement":false,"HTMLUnknownElement":false,"HTMLVideoElement":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"IdleDeadline":false,"IIRFilterNode":false,"Image":false,"ImageBitmap":false,"ImageBitmapRenderingContext":false,"ImageCapture":false,"ImageData":false,"indexedDB":false,"innerHeight":false,"innerWidth":false,"InputEvent":false,"IntersectionObserver":false,"IntersectionObserverEntry":false,"Intl":false,"isSecureContext":false,"KeyboardEvent":false,"KeyframeEffect":false,"KeyframeEffectReadOnly":false,"length":false,"localStorage":false,"location":true,"Location":false,"locationbar":false,"matchMedia":false,"MediaDeviceInfo":false,"MediaDevices":false,"MediaElementAudioSourceNode":false,"MediaEncryptedEvent":false,"MediaError":false,"MediaKeyMessageEvent":false,"MediaKeySession":false,"MediaKeyStatusMap":false,"MediaKeySystemAccess":false,"MediaList":false,"MediaQueryList":false,"MediaQueryListEvent":false,"MediaRecorder":false,"MediaSettingsRange":false,"MediaSource":false,"MediaStream":false,"MediaStreamAudioDestinationNode":false,"MediaStreamAudioSourceNode":false,"MediaStreamEvent":false,"MediaStreamTrack":false,"MediaStreamTrackEvent":false,"menubar":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"MIDIAccess":false,"MIDIConnectionEvent":false,"MIDIInput":false,"MIDIInputMap":false,"MIDIMessageEvent":false,"MIDIOutput":false,"MIDIOutputMap":false,"MIDIPort":false,"MimeType":false,"MimeTypeArray":false,"MouseEvent":false,"moveBy":false,"moveTo":false,"MutationEvent":false,"MutationObserver":false,"MutationRecord":false,"name":false,"NamedNodeMap":false,"NavigationPreloadManager":false,"navigator":false,"Navigator":false,"NetworkInformation":false,"Node":false,"NodeFilter":false,"NodeIterator":false,"NodeList":false,"Notification":false,"OfflineAudioCompletionEvent":false,"OfflineAudioContext":false,"offscreenBuffering":false,"OffscreenCanvas":true,"onabort":true,"onafterprint":true,"onanimationend":true,"onanimationiteration":true,"onanimationstart":true,"onappinstalled":true,"onauxclick":true,"onbeforeinstallprompt":true,"onbeforeprint":true,"onbeforeunload":true,"onblur":true,"oncancel":true,"oncanplay":true,"oncanplaythrough":true,"onchange":true,"onclick":true,"onclose":true,"oncontextmenu":true,"oncuechange":true,"ondblclick":true,"ondevicemotion":true,"ondeviceorientation":true,"ondeviceorientationabsolute":true,"ondrag":true,"ondragend":true,"ondragenter":true,"ondragleave":true,"ondragover":true,"ondragstart":true,"ondrop":true,"ondurationchange":true,"onemptied":true,"onended":true,"onerror":true,"onfocus":true,"ongotpointercapture":true,"onhashchange":true,"oninput":true,"oninvalid":true,"onkeydown":true,"onkeypress":true,"onkeyup":true,"onlanguagechange":true,"onload":true,"onloadeddata":true,"onloadedmetadata":true,"onloadstart":true,"onlostpointercapture":true,"onmessage":true,"onmessageerror":true,"onmousedown":true,"onmouseenter":true,"onmouseleave":true,"onmousemove":true,"onmouseout":true,"onmouseover":true,"onmouseup":true,"onmousewheel":true,"onoffline":true,"ononline":true,"onpagehide":true,"onpageshow":true,"onpause":true,"onplay":true,"onplaying":true,"onpointercancel":true,"onpointerdown":true,"onpointerenter":true,"onpointerleave":true,"onpointermove":true,"onpointerout":true,"onpointerover":true,"onpointerup":true,"onpopstate":true,"onprogress":true,"onratechange":true,"onrejectionhandled":true,"onreset":true,"onresize":true,"onscroll":true,"onsearch":true,"onseeked":true,"onseeking":true,"onselect":true,"onstalled":true,"onstorage":true,"onsubmit":true,"onsuspend":true,"ontimeupdate":true,"ontoggle":true,"ontransitionend":true,"onunhandledrejection":true,"onunload":true,"onvolumechange":true,"onwaiting":true,"onwheel":true,"open":false,"openDatabase":false,"opener":false,"Option":false,"origin":false,"OscillatorNode":false,"outerHeight":false,"outerWidth":false,"PageTransitionEvent":false,"pageXOffset":false,"pageYOffset":false,"PannerNode":false,"parent":false,"Path2D":false,"PaymentAddress":false,"PaymentRequest":false,"PaymentRequestUpdateEvent":false,"PaymentResponse":false,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceLongTaskTiming":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceNavigationTiming":false,"PerformanceObserver":false,"PerformanceObserverEntryList":false,"PerformancePaintTiming":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"PeriodicWave":false,"Permissions":false,"PermissionStatus":false,"personalbar":false,"PhotoCapabilities":false,"Plugin":false,"PluginArray":false,"PointerEvent":false,"PopStateEvent":false,"postMessage":false,"Presentation":false,"PresentationAvailability":false,"PresentationConnection":false,"PresentationConnectionAvailableEvent":false,"PresentationConnectionCloseEvent":false,"PresentationConnectionList":false,"PresentationReceiver":false,"PresentationRequest":false,"print":false,"ProcessingInstruction":false,"ProgressEvent":false,"PromiseRejectionEvent":false,"prompt":false,"PushManager":false,"PushSubscription":false,"PushSubscriptionOptions":false,"queueMicrotask":false,"RadioNodeList":false,"Range":false,"ReadableStream":false,"registerProcessor":false,"RemotePlayback":false,"removeEventListener":false,"Request":false,"requestAnimationFrame":false,"requestIdleCallback":false,"resizeBy":false,"ResizeObserver":false,"ResizeObserverEntry":false,"resizeTo":false,"Response":false,"RTCCertificate":false,"RTCDataChannel":false,"RTCDataChannelEvent":false,"RTCDtlsTransport":false,"RTCIceCandidate":false,"RTCIceGatherer":false,"RTCIceTransport":false,"RTCPeerConnection":false,"RTCPeerConnectionIceEvent":false,"RTCRtpContributingSource":false,"RTCRtpReceiver":false,"RTCRtpSender":false,"RTCSctpTransport":false,"RTCSessionDescription":false,"RTCStatsReport":false,"RTCTrackEvent":false,"screen":false,"Screen":false,"screenLeft":false,"ScreenOrientation":false,"screenTop":false,"screenX":false,"screenY":false,"ScriptProcessorNode":false,"scroll":false,"scrollbars":false,"scrollBy":false,"scrollTo":false,"scrollX":false,"scrollY":false,"SecurityPolicyViolationEvent":false,"Selection":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerRegistration":false,"sessionStorage":false,"setInterval":false,"setTimeout":false,"ShadowRoot":false,"SharedWorker":false,"SourceBuffer":false,"SourceBufferList":false,"speechSynthesis":false,"SpeechSynthesisEvent":false,"SpeechSynthesisUtterance":false,"StaticRange":false,"status":false,"statusbar":false,"StereoPannerNode":false,"stop":false,"Storage":false,"StorageEvent":false,"StorageManager":false,"styleMedia":false,"StyleSheet":false,"StyleSheetList":false,"SubtleCrypto":false,"SVGAElement":false,"SVGAngle":false,"SVGAnimatedAngle":false,"SVGAnimatedBoolean":false,"SVGAnimatedEnumeration":false,"SVGAnimatedInteger":false,"SVGAnimatedLength":false,"SVGAnimatedLengthList":false,"SVGAnimatedNumber":false,"SVGAnimatedNumberList":false,"SVGAnimatedPreserveAspectRatio":false,"SVGAnimatedRect":false,"SVGAnimatedString":false,"SVGAnimatedTransformList":false,"SVGAnimateElement":false,"SVGAnimateMotionElement":false,"SVGAnimateTransformElement":false,"SVGAnimationElement":false,"SVGCircleElement":false,"SVGClipPathElement":false,"SVGComponentTransferFunctionElement":false,"SVGDefsElement":false,"SVGDescElement":false,"SVGDiscardElement":false,"SVGElement":false,"SVGEllipseElement":false,"SVGFEBlendElement":false,"SVGFEColorMatrixElement":false,"SVGFEComponentTransferElement":false,"SVGFECompositeElement":false,"SVGFEConvolveMatrixElement":false,"SVGFEDiffuseLightingElement":false,"SVGFEDisplacementMapElement":false,"SVGFEDistantLightElement":false,"SVGFEDropShadowElement":false,"SVGFEFloodElement":false,"SVGFEFuncAElement":false,"SVGFEFuncBElement":false,"SVGFEFuncGElement":false,"SVGFEFuncRElement":false,"SVGFEGaussianBlurElement":false,"SVGFEImageElement":false,"SVGFEMergeElement":false,"SVGFEMergeNodeElement":false,"SVGFEMorphologyElement":false,"SVGFEOffsetElement":false,"SVGFEPointLightElement":false,"SVGFESpecularLightingElement":false,"SVGFESpotLightElement":false,"SVGFETileElement":false,"SVGFETurbulenceElement":false,"SVGFilterElement":false,"SVGForeignObjectElement":false,"SVGGElement":false,"SVGGeometryElement":false,"SVGGradientElement":false,"SVGGraphicsElement":false,"SVGImageElement":false,"SVGLength":false,"SVGLengthList":false,"SVGLinearGradientElement":false,"SVGLineElement":false,"SVGMarkerElement":false,"SVGMaskElement":false,"SVGMatrix":false,"SVGMetadataElement":false,"SVGMPathElement":false,"SVGNumber":false,"SVGNumberList":false,"SVGPathElement":false,"SVGPatternElement":false,"SVGPoint":false,"SVGPointList":false,"SVGPolygonElement":false,"SVGPolylineElement":false,"SVGPreserveAspectRatio":false,"SVGRadialGradientElement":false,"SVGRect":false,"SVGRectElement":false,"SVGScriptElement":false,"SVGSetElement":false,"SVGStopElement":false,"SVGStringList":false,"SVGStyleElement":false,"SVGSVGElement":false,"SVGSwitchElement":false,"SVGSymbolElement":false,"SVGTextContentElement":false,"SVGTextElement":false,"SVGTextPathElement":false,"SVGTextPositioningElement":false,"SVGTitleElement":false,"SVGTransform":false,"SVGTransformList":false,"SVGTSpanElement":false,"SVGUnitTypes":false,"SVGUseElement":false,"SVGViewElement":false,"TaskAttributionTiming":false,"Text":false,"TextDecoder":false,"TextEncoder":false,"TextEvent":false,"TextMetrics":false,"TextTrack":false,"TextTrackCue":false,"TextTrackCueList":false,"TextTrackList":false,"TimeRanges":false,"toolbar":false,"top":false,"Touch":false,"TouchEvent":false,"TouchList":false,"TrackEvent":false,"TransitionEvent":false,"TreeWalker":false,"UIEvent":false,"URL":false,"URLSearchParams":false,"ValidityState":false,"visualViewport":false,"VisualViewport":false,"VTTCue":false,"WaveShaperNode":false,"WebAssembly":false,"WebGL2RenderingContext":false,"WebGLActiveInfo":false,"WebGLBuffer":false,"WebGLContextEvent":false,"WebGLFramebuffer":false,"WebGLProgram":false,"WebGLQuery":false,"WebGLRenderbuffer":false,"WebGLRenderingContext":false,"WebGLSampler":false,"WebGLShader":false,"WebGLShaderPrecisionFormat":false,"WebGLSync":false,"WebGLTexture":false,"WebGLTransformFeedback":false,"WebGLUniformLocation":false,"WebGLVertexArrayObject":false,"WebSocket":false,"WheelEvent":false,"window":false,"Window":false,"Worker":false,"WritableStream":false,"XMLDocument":false,"XMLHttpRequest":false,"XMLHttpRequestEventTarget":false,"XMLHttpRequestUpload":false,"XMLSerializer":false,"XPathEvaluator":false,"XPathExpression":false,"XPathResult":false,"XSLTProcessor":false},"worker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"clearInterval":false,"clearTimeout":false,"close":true,"console":false,"fetch":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":true,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onlanguagechange":true,"onmessage":true,"onoffline":true,"ononline":true,"onrejectionhandled":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"removeEventListener":false,"Request":false,"Response":false,"self":true,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"node":{"__dirname":false,"__filename":false,"Buffer":false,"clearImmediate":false,"clearInterval":false,"clearTimeout":false,"console":false,"exports":true,"global":false,"Intl":false,"module":false,"process":false,"queueMicrotask":false,"require":false,"setImmediate":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false},"commonjs":{"exports":true,"global":false,"module":false,"require":false},"amd":{"define":false,"require":false},"mocha":{"after":false,"afterEach":false,"before":false,"beforeEach":false,"context":false,"describe":false,"it":false,"mocha":false,"run":false,"setup":false,"specify":false,"suite":false,"suiteSetup":false,"suiteTeardown":false,"teardown":false,"test":false,"xcontext":false,"xdescribe":false,"xit":false,"xspecify":false},"jasmine":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fail":false,"fdescribe":false,"fit":false,"it":false,"jasmine":false,"pending":false,"runs":false,"spyOn":false,"spyOnProperty":false,"waits":false,"waitsFor":false,"xdescribe":false,"xit":false},"jest":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fdescribe":false,"fit":false,"it":false,"jest":false,"pit":false,"require":false,"test":false,"xdescribe":false,"xit":false,"xtest":false},"qunit":{"asyncTest":false,"deepEqual":false,"equal":false,"expect":false,"module":false,"notDeepEqual":false,"notEqual":false,"notOk":false,"notPropEqual":false,"notStrictEqual":false,"ok":false,"propEqual":false,"QUnit":false,"raises":false,"start":false,"stop":false,"strictEqual":false,"test":false,"throws":false},"phantomjs":{"console":true,"exports":true,"phantom":true,"require":true,"WebPage":true},"couch":{"emit":false,"exports":false,"getRow":false,"log":false,"module":false,"provides":false,"require":false,"respond":false,"send":false,"start":false,"sum":false},"rhino":{"defineClass":false,"deserialize":false,"gc":false,"help":false,"importClass":false,"importPackage":false,"java":false,"load":false,"loadClass":false,"Packages":false,"print":false,"quit":false,"readFile":false,"readUrl":false,"runCommand":false,"seal":false,"serialize":false,"spawn":false,"sync":false,"toint32":false,"version":false},"nashorn":{"__DIR__":false,"__FILE__":false,"__LINE__":false,"com":false,"edu":false,"exit":false,"java":false,"Java":false,"javafx":false,"JavaImporter":false,"javax":false,"JSAdapter":false,"load":false,"loadWithNewGlobal":false,"org":false,"Packages":false,"print":false,"quit":false},"wsh":{"ActiveXObject":true,"Enumerator":true,"GetObject":true,"ScriptEngine":true,"ScriptEngineBuildVersion":true,"ScriptEngineMajorVersion":true,"ScriptEngineMinorVersion":true,"VBArray":true,"WScript":true,"WSH":true,"XDomainRequest":true},"jquery":{"$":false,"jQuery":false},"yui":{"YAHOO":false,"YAHOO_config":false,"YUI":false,"YUI_config":false},"shelljs":{"cat":false,"cd":false,"chmod":false,"config":false,"cp":false,"dirs":false,"echo":false,"env":false,"error":false,"exec":false,"exit":false,"find":false,"grep":false,"ln":false,"ls":false,"mkdir":false,"mv":false,"popd":false,"pushd":false,"pwd":false,"rm":false,"sed":false,"set":false,"target":false,"tempdir":false,"test":false,"touch":false,"which":false},"prototypejs":{"$":false,"$$":false,"$A":false,"$break":false,"$continue":false,"$F":false,"$H":false,"$R":false,"$w":false,"Abstract":false,"Ajax":false,"Autocompleter":false,"Builder":false,"Class":false,"Control":false,"Draggable":false,"Draggables":false,"Droppables":false,"Effect":false,"Element":false,"Enumerable":false,"Event":false,"Field":false,"Form":false,"Hash":false,"Insertion":false,"ObjectRange":false,"PeriodicalExecuter":false,"Position":false,"Prototype":false,"Scriptaculous":false,"Selector":false,"Sortable":false,"SortableObserver":false,"Sound":false,"Template":false,"Toggle":false,"Try":false},"meteor":{"_":false,"$":false,"Accounts":false,"AccountsClient":false,"AccountsCommon":false,"AccountsServer":false,"App":false,"Assets":false,"Blaze":false,"check":false,"Cordova":false,"DDP":false,"DDPRateLimiter":false,"DDPServer":false,"Deps":false,"EJSON":false,"Email":false,"HTTP":false,"Log":false,"Match":false,"Meteor":false,"Mongo":false,"MongoInternals":false,"Npm":false,"Package":false,"Plugin":false,"process":false,"Random":false,"ReactiveDict":false,"ReactiveVar":false,"Router":false,"ServiceConfiguration":false,"Session":false,"share":false,"Spacebars":false,"Template":false,"Tinytest":false,"Tracker":false,"UI":false,"Utils":false,"WebApp":false,"WebAppInternals":false},"mongo":{"_isWindows":false,"_rand":false,"BulkWriteResult":false,"cat":false,"cd":false,"connect":false,"db":false,"getHostName":false,"getMemInfo":false,"hostname":false,"ISODate":false,"listFiles":false,"load":false,"ls":false,"md5sumFile":false,"mkdir":false,"Mongo":false,"NumberInt":false,"NumberLong":false,"ObjectId":false,"PlanCache":false,"print":false,"printjson":false,"pwd":false,"quit":false,"removeFile":false,"rs":false,"sh":false,"UUID":false,"version":false,"WriteResult":false},"applescript":{"$":false,"Application":false,"Automation":false,"console":false,"delay":false,"Library":false,"ObjC":false,"ObjectSpecifier":false,"Path":false,"Progress":false,"Ref":false},"serviceworker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"CacheStorage":false,"clearInterval":false,"clearTimeout":false,"Client":false,"clients":false,"Clients":false,"close":true,"console":false,"ExtendableEvent":false,"ExtendableMessageEvent":false,"fetch":false,"FetchEvent":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":false,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onfetch":true,"oninstall":true,"onlanguagechange":true,"onmessage":true,"onmessageerror":true,"onnotificationclick":true,"onnotificationclose":true,"onoffline":true,"ononline":true,"onpush":true,"onpushsubscriptionchange":true,"onrejectionhandled":true,"onsync":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"registration":false,"removeEventListener":false,"Request":false,"Response":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerGlobalScope":false,"ServiceWorkerMessageEvent":false,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"skipWaiting":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"WindowClient":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"atomtest":{"advanceClock":false,"fakeClearInterval":false,"fakeClearTimeout":false,"fakeSetInterval":false,"fakeSetTimeout":false,"resetTimeouts":false,"waitsForPromise":false},"embertest":{"andThen":false,"click":false,"currentPath":false,"currentRouteName":false,"currentURL":false,"fillIn":false,"find":false,"findAll":false,"findWithAssert":false,"keyEvent":false,"pauseTest":false,"resumeTest":false,"triggerEvent":false,"visit":false,"wait":false},"protractor":{"$":false,"$$":false,"browser":false,"by":false,"By":false,"DartObject":false,"element":false,"protractor":false},"shared-node-browser":{"clearInterval":false,"clearTimeout":false,"console":false,"setInterval":false,"setTimeout":false,"URL":false,"URLSearchParams":false},"webextensions":{"browser":false,"chrome":false,"opr":false},"greasemonkey":{"cloneInto":false,"createObjectIn":false,"exportFunction":false,"GM":false,"GM_addStyle":false,"GM_deleteValue":false,"GM_getResourceText":false,"GM_getResourceURL":false,"GM_getValue":false,"GM_info":false,"GM_listValues":false,"GM_log":false,"GM_openInTab":false,"GM_registerMenuCommand":false,"GM_setClipboard":false,"GM_setValue":false,"GM_xmlhttpRequest":false,"unsafeWindow":false},"devtools":{"$":false,"$_":false,"$$":false,"$0":false,"$1":false,"$2":false,"$3":false,"$4":false,"$x":false,"chrome":false,"clear":false,"copy":false,"debug":false,"dir":false,"dirxml":false,"getEventListeners":false,"inspect":false,"keys":false,"monitor":false,"monitorEvents":false,"profile":false,"profileEnd":false,"queryObjects":false,"table":false,"undebug":false,"unmonitor":false,"unmonitorEvents":false,"values":false}}')}},p={};function b(v){var e=p[v];if(e!==void 0)return e.exports;var l=p[v]={exports:{}};return c[v].call(l.exports,l,l.exports,b),l.exports}b.d=(v,e)=>{for(var l in e)b.o(e,l)&&!b.o(v,l)&&Object.defineProperty(v,l,{enumerable:!0,get:e[l]})},b.o=(v,e)=>Object.prototype.hasOwnProperty.call(v,e),b.r=v=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})};var A={};(()=>{"use strict";b.d(A,{default:()=>n});var v=b("./node_modules/.pnpm/@babel+core@7.18.5/node_modules/@babel/core/lib/index.js"),e=b("url"),l=b("./node_modules/.pnpm/@babel+template@7.16.7/node_modules/@babel/template/lib/index.js");function t(r,i){return{name:"transform-import-meta",visitor:{Program(u){let a=[];if(u.traverse({MemberExpression(d){let{node:y}=d;y.object.type==="MetaProperty"&&y.object.meta.name==="import"&&y.object.property.name==="meta"&&y.property.type==="Identifier"&&y.property.name==="url"&&a.push(d)}}),a.length!==0)for(let d of a)d.replaceWith(l.smart.ast`${i.filename?JSON.stringify((0,e.pathToFileURL)(i.filename)):"require('url').pathToFileURL(__filename).toString()"}`)}}}}function n(r){var i,u,a,d,y,m;let S=Object.assign(Object.assign({babelrc:!1,configFile:!1,compact:!1,retainLines:typeof r.retainLines!="boolean"||r.retainLines,filename:"",cwd:"/"},r.babel),{plugins:[[b("./node_modules/.pnpm/@babel+plugin-transform-modules-commonjs@7.18.2_@babel+core@7.18.5/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js"),{allowTopLevelThis:!0}],[b("./node_modules/.pnpm/babel-plugin-dynamic-import-node@2.3.3/node_modules/babel-plugin-dynamic-import-node/lib/index.js"),{noInterop:!0}],[t,{filename:r.filename}],[b("./node_modules/.pnpm/@babel+plugin-syntax-class-properties@7.12.13_@babel+core@7.18.5/node_modules/@babel/plugin-syntax-class-properties/lib/index.js")]]});r.ts&&(S.plugins.push([b("./node_modules/.pnpm/@babel+plugin-transform-typescript@7.18.4_@babel+core@7.18.5/node_modules/@babel/plugin-transform-typescript/lib/index.js"),{allowDeclareFields:!0}]),S.plugins.unshift([b("./node_modules/.pnpm/@babel+plugin-proposal-decorators@7.18.2_@babel+core@7.18.5/node_modules/@babel/plugin-proposal-decorators/lib/index.js"),{legacy:!0}]),S.plugins.push(b("./node_modules/.pnpm/babel-plugin-parameter-decorator@1.0.16/node_modules/babel-plugin-parameter-decorator/lib/index.js"))),r.legacy&&(S.plugins.push(b("./node_modules/.pnpm/@babel+plugin-proposal-nullish-coalescing-operator@7.17.12_@babel+core@7.18.5/node_modules/@babel/plugin-proposal-nullish-coalescing-operator/lib/index.js")),S.plugins.push(b("./node_modules/.pnpm/@babel+plugin-proposal-optional-chaining@7.17.12_@babel+core@7.18.5/node_modules/@babel/plugin-proposal-optional-chaining/lib/index.js"))),r.babel&&Array.isArray(r.babel.plugins)&&((i=S.plugins)===null||i===void 0||i.push(...r.babel.plugins));try{return{code:((u=(0,v.transformSync)(r.source,S))===null||u===void 0?void 0:u.code)||""}}catch(E){return{error:E,code:"exports.__JITI_ERROR__ = "+JSON.stringify({filename:r.filename,line:((a=E.loc)===null||a===void 0?void 0:a.line)||0,column:((d=E.loc)===null||d===void 0?void 0:d.column)||0,code:(y=E.code)===null||y===void 0?void 0:y.replace("BABEL_","").replace("PARSE_ERROR","ParseError"),message:(m=E.message)===null||m===void 0?void 0:m.replace("/: ","").replace(/\(.+\)\s*$/,"")})}}}})(),Id.exports=A.default})()});var Zo=Re((TC,jd)=>{function Mv(c){throw c}jd.exports=function(c,p){let b=Od();return p={onError:Mv,...p},p.transform||(p.transform=Nd()),b(c,p)}});var xr=Re(el=>{"use strict";el.fromCallback=function(c){return Object.defineProperty(function(...p){if(typeof p[p.length-1]=="function")c.apply(this,p);else return new Promise((b,A)=>{c.call(this,...p,(v,e)=>v!=null?A(v):b(e))})},"name",{value:c.name})};el.fromPromise=function(c){return Object.defineProperty(function(...p){let b=p[p.length-1];if(typeof b!="function")return c.apply(this,p);c.apply(this,p.slice(0,-1)).then(A=>b(null,A),b)},"name",{value:c.name})}});var Rd=Re((AC,Fd)=>{var yn=tt("constants"),Bv=process.cwd,vs=null,$v=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return vs||(vs=Bv.call(process)),vs};try{process.cwd()}catch{}typeof process.chdir=="function"&&(tl=process.chdir,process.chdir=function(c){vs=null,tl.call(process,c)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,tl));var tl;Fd.exports=Uv;function Uv(c){yn.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&p(c),c.lutimes||b(c),c.chown=e(c.chown),c.fchown=e(c.fchown),c.lchown=e(c.lchown),c.chmod=A(c.chmod),c.fchmod=A(c.fchmod),c.lchmod=A(c.lchmod),c.chownSync=l(c.chownSync),c.fchownSync=l(c.fchownSync),c.lchownSync=l(c.lchownSync),c.chmodSync=v(c.chmodSync),c.fchmodSync=v(c.fchmodSync),c.lchmodSync=v(c.lchmodSync),c.stat=t(c.stat),c.fstat=t(c.fstat),c.lstat=t(c.lstat),c.statSync=n(c.statSync),c.fstatSync=n(c.fstatSync),c.lstatSync=n(c.lstatSync),c.chmod&&!c.lchmod&&(c.lchmod=function(i,u,a){a&&process.nextTick(a)},c.lchmodSync=function(){}),c.chown&&!c.lchown&&(c.lchown=function(i,u,a,d){d&&process.nextTick(d)},c.lchownSync=function(){}),$v==="win32"&&(c.rename=typeof c.rename!="function"?c.rename:function(i){function u(a,d,y){var m=Date.now(),S=0;i(a,d,function E(h){if(h&&(h.code==="EACCES"||h.code==="EPERM")&&Date.now()-m<6e4){setTimeout(function(){c.stat(d,function(f,w){f&&f.code==="ENOENT"?i(a,d,E):y(h)})},S),S<100&&(S+=10);return}y&&y(h)})}return Object.setPrototypeOf&&Object.setPrototypeOf(u,i),u}(c.rename)),c.read=typeof c.read!="function"?c.read:function(i){function u(a,d,y,m,S,E){var h;if(E&&typeof E=="function"){var f=0;h=function(w,_,I){if(w&&w.code==="EAGAIN"&&f<10)return f++,i.call(c,a,d,y,m,S,h);E.apply(this,arguments)}}return i.call(c,a,d,y,m,S,h)}return Object.setPrototypeOf&&Object.setPrototypeOf(u,i),u}(c.read),c.readSync=typeof c.readSync!="function"?c.readSync:function(i){return function(u,a,d,y,m){for(var S=0;;)try{return i.call(c,u,a,d,y,m)}catch(E){if(E.code==="EAGAIN"&&S<10){S++;continue}throw E}}}(c.readSync);function p(i){i.lchmod=function(u,a,d){i.open(u,yn.O_WRONLY|yn.O_SYMLINK,a,function(y,m){if(y){d&&d(y);return}i.fchmod(m,a,function(S){i.close(m,function(E){d&&d(S||E)})})})},i.lchmodSync=function(u,a){var d=i.openSync(u,yn.O_WRONLY|yn.O_SYMLINK,a),y=!0,m;try{m=i.fchmodSync(d,a),y=!1}finally{if(y)try{i.closeSync(d)}catch{}else i.closeSync(d)}return m}}function b(i){yn.hasOwnProperty("O_SYMLINK")&&i.futimes?(i.lutimes=function(u,a,d,y){i.open(u,yn.O_SYMLINK,function(m,S){if(m){y&&y(m);return}i.futimes(S,a,d,function(E){i.close(S,function(h){y&&y(E||h)})})})},i.lutimesSync=function(u,a,d){var y=i.openSync(u,yn.O_SYMLINK),m,S=!0;try{m=i.futimesSync(y,a,d),S=!1}finally{if(S)try{i.closeSync(y)}catch{}else i.closeSync(y)}return m}):i.futimes&&(i.lutimes=function(u,a,d,y){y&&process.nextTick(y)},i.lutimesSync=function(){})}function A(i){return i&&function(u,a,d){return i.call(c,u,a,function(y){r(y)&&(y=null),d&&d.apply(this,arguments)})}}function v(i){return i&&function(u,a){try{return i.call(c,u,a)}catch(d){if(!r(d))throw d}}}function e(i){return i&&function(u,a,d,y){return i.call(c,u,a,d,function(m){r(m)&&(m=null),y&&y.apply(this,arguments)})}}function l(i){return i&&function(u,a,d){try{return i.call(c,u,a,d)}catch(y){if(!r(y))throw y}}}function t(i){return i&&function(u,a,d){typeof a=="function"&&(d=a,a=null);function y(m,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),d&&d.apply(this,arguments)}return a?i.call(c,u,a,y):i.call(c,u,y)}}function n(i){return i&&function(u,a){var d=a?i.call(c,u,a):i.call(c,u);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function r(i){if(!i||i.code==="ENOSYS")return!0;var u=!process.getuid||process.getuid()!==0;return!!(u&&(i.code==="EINVAL"||i.code==="EPERM"))}}});var Md=Re((_C,Ld)=>{var kd=tt("stream").Stream;Ld.exports=Vv;function Vv(c){return{ReadStream:p,WriteStream:b};function p(A,v){if(!(this instanceof p))return new p(A,v);kd.call(this);var e=this;this.path=A,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,v=v||{};for(var l=Object.keys(v),t=0,n=l.length;t<n;t++){var r=l[t];this[r]=v[r]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){e._read()});return}c.open(this.path,this.flags,this.mode,function(i,u){if(i){e.emit("error",i),e.readable=!1;return}e.fd=u,e.emit("open",u),e._read()})}function b(A,v){if(!(this instanceof b))return new b(A,v);kd.call(this),this.path=A,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,v=v||{};for(var e=Object.keys(v),l=0,t=e.length;l<t;l++){var n=e[l];this[n]=v[n]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=c.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var $d=Re((CC,Bd)=>{"use strict";Bd.exports=Gv;var Wv=Object.getPrototypeOf||function(c){return c.__proto__};function Gv(c){if(c===null||typeof c!="object")return c;if(c instanceof Object)var p={__proto__:Wv(c)};else var p=Object.create(null);return Object.getOwnPropertyNames(c).forEach(function(b){Object.defineProperty(p,b,Object.getOwnPropertyDescriptor(c,b))}),p}});var Ar=Re((wC,il)=>{var nr=tt("fs"),Kv=Rd(),Hv=Md(),Yv=$d(),Ss=tt("util"),yr,Ps;typeof Symbol=="function"&&typeof Symbol.for=="function"?(yr=Symbol.for("graceful-fs.queue"),Ps=Symbol.for("graceful-fs.previous")):(yr="___graceful-fs.queue",Ps="___graceful-fs.previous");function Xv(){}function Wd(c,p){Object.defineProperty(c,yr,{get:function(){return p}})}var jn=Xv;Ss.debuglog?jn=Ss.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(jn=function(){var c=Ss.format.apply(Ss,arguments);c="GFS4: "+c.split(/\n/).join(`
|
|
2241
|
+
GFS4: `),console.error(c)});nr[yr]||(Ud=global[yr]||[],Wd(nr,Ud),nr.close=function(c){function p(b,A){return c.call(nr,b,function(v){v||Vd(),typeof A=="function"&&A.apply(this,arguments)})}return Object.defineProperty(p,Ps,{value:c}),p}(nr.close),nr.closeSync=function(c){function p(b){c.apply(nr,arguments),Vd()}return Object.defineProperty(p,Ps,{value:c}),p}(nr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){jn(nr[yr]),tt("assert").equal(nr[yr].length,0)}));var Ud;global[yr]||Wd(global,nr[yr]);il.exports=rl(Yv(nr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!nr.__patched&&(il.exports=rl(nr),nr.__patched=!0);function rl(c){Kv(c),c.gracefulify=rl,c.createReadStream=_,c.createWriteStream=I;var p=c.readFile;c.readFile=b;function b(C,j,T){return typeof j=="function"&&(T=j,j=null),N(C,j,T);function N($,G,k,U){return p($,G,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?ni([N,[$,G,k],M,U||Date.now(),Date.now()]):typeof k=="function"&&k.apply(this,arguments)})}}var A=c.writeFile;c.writeFile=v;function v(C,j,T,N){return typeof T=="function"&&(N=T,T=null),$(C,j,T,N);function $(G,k,U,M,O){return A(G,k,U,function(x){x&&(x.code==="EMFILE"||x.code==="ENFILE")?ni([$,[G,k,U,M],x,O||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var e=c.appendFile;e&&(c.appendFile=l);function l(C,j,T,N){return typeof T=="function"&&(N=T,T=null),$(C,j,T,N);function $(G,k,U,M,O){return e(G,k,U,function(x){x&&(x.code==="EMFILE"||x.code==="ENFILE")?ni([$,[G,k,U,M],x,O||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var t=c.copyFile;t&&(c.copyFile=n);function n(C,j,T,N){return typeof T=="function"&&(N=T,T=0),$(C,j,T,N);function $(G,k,U,M,O){return t(G,k,U,function(x){x&&(x.code==="EMFILE"||x.code==="ENFILE")?ni([$,[G,k,U,M],x,O||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var r=c.readdir;c.readdir=u;var i=/^v[0-5]\./;function u(C,j,T){typeof j=="function"&&(T=j,j=null);var N=i.test(process.version)?function(k,U,M,O){return r(k,$(k,U,M,O))}:function(k,U,M,O){return r(k,U,$(k,U,M,O))};return N(C,j,T);function $(G,k,U,M){return function(O,x){O&&(O.code==="EMFILE"||O.code==="ENFILE")?ni([N,[G,k,U],O,M||Date.now(),Date.now()]):(x&&x.sort&&x.sort(),typeof U=="function"&&U.call(this,O,x))}}}if(process.version.substr(0,4)==="v0.8"){var a=Hv(c);E=a.ReadStream,f=a.WriteStream}var d=c.ReadStream;d&&(E.prototype=Object.create(d.prototype),E.prototype.open=h);var y=c.WriteStream;y&&(f.prototype=Object.create(y.prototype),f.prototype.open=w),Object.defineProperty(c,"ReadStream",{get:function(){return E},set:function(C){E=C},enumerable:!0,configurable:!0}),Object.defineProperty(c,"WriteStream",{get:function(){return f},set:function(C){f=C},enumerable:!0,configurable:!0});var m=E;Object.defineProperty(c,"FileReadStream",{get:function(){return m},set:function(C){m=C},enumerable:!0,configurable:!0});var S=f;Object.defineProperty(c,"FileWriteStream",{get:function(){return S},set:function(C){S=C},enumerable:!0,configurable:!0});function E(C,j){return this instanceof E?(d.apply(this,arguments),this):E.apply(Object.create(E.prototype),arguments)}function h(){var C=this;R(C.path,C.flags,C.mode,function(j,T){j?(C.autoClose&&C.destroy(),C.emit("error",j)):(C.fd=T,C.emit("open",T),C.read())})}function f(C,j){return this instanceof f?(y.apply(this,arguments),this):f.apply(Object.create(f.prototype),arguments)}function w(){var C=this;R(C.path,C.flags,C.mode,function(j,T){j?(C.destroy(),C.emit("error",j)):(C.fd=T,C.emit("open",T))})}function _(C,j){return new c.ReadStream(C,j)}function I(C,j){return new c.WriteStream(C,j)}var P=c.open;c.open=R;function R(C,j,T,N){return typeof T=="function"&&(N=T,T=null),$(C,j,T,N);function $(G,k,U,M,O){return P(G,k,U,function(x,F){x&&(x.code==="EMFILE"||x.code==="ENFILE")?ni([$,[G,k,U,M],x,O||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}return c}function ni(c){jn("ENQUEUE",c[0].name,c[1]),nr[yr].push(c),nl()}var Ts;function Vd(){for(var c=Date.now(),p=0;p<nr[yr].length;++p)nr[yr][p].length>2&&(nr[yr][p][3]=c,nr[yr][p][4]=c);nl()}function nl(){if(clearTimeout(Ts),Ts=void 0,nr[yr].length!==0){var c=nr[yr].shift(),p=c[0],b=c[1],A=c[2],v=c[3],e=c[4];if(v===void 0)jn("RETRY",p.name,b),p.apply(null,b);else if(Date.now()-v>=6e4){jn("TIMEOUT",p.name,b);var l=b.pop();typeof l=="function"&&l.call(null,A)}else{var t=Date.now()-e,n=Math.max(e-v,1),r=Math.min(n*1.2,100);t>=r?(jn("RETRY",p.name,b),p.apply(null,b.concat([v]))):nr[yr].push(c)}Ts===void 0&&(Ts=setTimeout(nl,0))}}});var Fn=Re(bn=>{"use strict";var Gd=xr().fromCallback,Or=Ar(),zv=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(c=>typeof Or[c]=="function");Object.assign(bn,Or);zv.forEach(c=>{bn[c]=Gd(Or[c])});bn.exists=function(c,p){return typeof p=="function"?Or.exists(c,p):new Promise(b=>Or.exists(c,b))};bn.read=function(c,p,b,A,v,e){return typeof e=="function"?Or.read(c,p,b,A,v,e):new Promise((l,t)=>{Or.read(c,p,b,A,v,(n,r,i)=>{if(n)return t(n);l({bytesRead:r,buffer:i})})})};bn.write=function(c,p,...b){return typeof b[b.length-1]=="function"?Or.write(c,p,...b):new Promise((A,v)=>{Or.write(c,p,...b,(e,l,t)=>{if(e)return v(e);A({bytesWritten:l,buffer:t})})})};typeof Or.writev=="function"&&(bn.writev=function(c,p,...b){return typeof b[b.length-1]=="function"?Or.writev(c,p,...b):new Promise((A,v)=>{Or.writev(c,p,...b,(e,l,t)=>{if(e)return v(e);A({bytesWritten:l,buffers:t})})})});typeof Or.realpath.native=="function"?bn.realpath.native=Gd(Or.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var Hd=Re((xC,Kd)=>{"use strict";var Jv=tt("path");Kd.exports.checkPath=function(p){if(process.platform==="win32"&&/[<>:"|?*]/.test(p.replace(Jv.parse(p).root,""))){let A=new Error(`Path contains invalid characters: ${p}`);throw A.code="EINVAL",A}}});var Jd=Re((OC,sl)=>{"use strict";var Yd=Fn(),{checkPath:Xd}=Hd(),zd=c=>{let p={mode:511};return typeof c=="number"?c:{...p,...c}.mode};sl.exports.makeDir=async(c,p)=>(Xd(c),Yd.mkdir(c,{mode:zd(p),recursive:!0}));sl.exports.makeDirSync=(c,p)=>(Xd(c),Yd.mkdirSync(c,{mode:zd(p),recursive:!0}))});var Vr=Re((IC,qd)=>{"use strict";var qv=xr().fromPromise,{makeDir:Qv,makeDirSync:al}=Jd(),ol=qv(Qv);qd.exports={mkdirs:ol,mkdirsSync:al,mkdirp:ol,mkdirpSync:al,ensureDir:ol,ensureDirSync:al}});var gn=Re((NC,Zd)=>{"use strict";var Zv=xr().fromPromise,Qd=Fn();function eS(c){return Qd.access(c).then(()=>!0).catch(()=>!1)}Zd.exports={pathExists:Zv(eS),pathExistsSync:Qd.existsSync}});var ll=Re((jC,ef)=>{"use strict";var ii=Ar();function tS(c,p,b,A){ii.open(c,"r+",(v,e)=>{if(v)return A(v);ii.futimes(e,p,b,l=>{ii.close(e,t=>{A&&A(l||t)})})})}function rS(c,p,b){let A=ii.openSync(c,"r+");return ii.futimesSync(A,p,b),ii.closeSync(A)}ef.exports={utimesMillis:tS,utimesMillisSync:rS}});var Rn=Re((FC,nf)=>{"use strict";var si=Fn(),dr=tt("path"),nS=tt("util");function iS(c,p,b){let A=b.dereference?v=>si.stat(v,{bigint:!0}):v=>si.lstat(v,{bigint:!0});return Promise.all([A(c),A(p).catch(v=>{if(v.code==="ENOENT")return null;throw v})]).then(([v,e])=>({srcStat:v,destStat:e}))}function sS(c,p,b){let A,v=b.dereference?l=>si.statSync(l,{bigint:!0}):l=>si.lstatSync(l,{bigint:!0}),e=v(c);try{A=v(p)}catch(l){if(l.code==="ENOENT")return{srcStat:e,destStat:null};throw l}return{srcStat:e,destStat:A}}function aS(c,p,b,A,v){nS.callbackify(iS)(c,p,A,(e,l)=>{if(e)return v(e);let{srcStat:t,destStat:n}=l;if(n){if(Pi(t,n)){let r=dr.basename(c),i=dr.basename(p);return b==="move"&&r!==i&&r.toLowerCase()===i.toLowerCase()?v(null,{srcStat:t,destStat:n,isChangingCase:!0}):v(new Error("Source and destination must not be the same."))}if(t.isDirectory()&&!n.isDirectory())return v(new Error(`Cannot overwrite non-directory '${p}' with directory '${c}'.`));if(!t.isDirectory()&&n.isDirectory())return v(new Error(`Cannot overwrite directory '${p}' with non-directory '${c}'.`))}return t.isDirectory()&&ul(c,p)?v(new Error(As(c,p,b))):v(null,{srcStat:t,destStat:n})})}function oS(c,p,b,A){let{srcStat:v,destStat:e}=sS(c,p,A);if(e){if(Pi(v,e)){let l=dr.basename(c),t=dr.basename(p);if(b==="move"&&l!==t&&l.toLowerCase()===t.toLowerCase())return{srcStat:v,destStat:e,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(v.isDirectory()&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${p}' with directory '${c}'.`);if(!v.isDirectory()&&e.isDirectory())throw new Error(`Cannot overwrite directory '${p}' with non-directory '${c}'.`)}if(v.isDirectory()&&ul(c,p))throw new Error(As(c,p,b));return{srcStat:v,destStat:e}}function tf(c,p,b,A,v){let e=dr.resolve(dr.dirname(c)),l=dr.resolve(dr.dirname(b));if(l===e||l===dr.parse(l).root)return v();si.stat(l,{bigint:!0},(t,n)=>t?t.code==="ENOENT"?v():v(t):Pi(p,n)?v(new Error(As(c,b,A))):tf(c,p,l,A,v))}function rf(c,p,b,A){let v=dr.resolve(dr.dirname(c)),e=dr.resolve(dr.dirname(b));if(e===v||e===dr.parse(e).root)return;let l;try{l=si.statSync(e,{bigint:!0})}catch(t){if(t.code==="ENOENT")return;throw t}if(Pi(p,l))throw new Error(As(c,b,A));return rf(c,p,e,A)}function Pi(c,p){return p.ino&&p.dev&&p.ino===c.ino&&p.dev===c.dev}function ul(c,p){let b=dr.resolve(c).split(dr.sep).filter(v=>v),A=dr.resolve(p).split(dr.sep).filter(v=>v);return b.reduce((v,e,l)=>v&&A[l]===e,!0)}function As(c,p,b){return`Cannot ${b} '${c}' to a subdirectory of itself, '${p}'.`}nf.exports={checkPaths:aS,checkPathsSync:oS,checkParentPaths:tf,checkParentPathsSync:rf,isSrcSubdir:ul,areIdentical:Pi}});var df=Re((RC,pf)=>{"use strict";var Ir=Ar(),Ai=tt("path"),lS=Vr().mkdirs,uS=gn().pathExists,cS=ll().utimesMillis,_i=Rn();function pS(c,p,b,A){typeof b=="function"&&!A?(A=b,b={}):typeof b=="function"&&(b={filter:b}),A=A||function(){},b=b||{},b.clobber="clobber"in b?!!b.clobber:!0,b.overwrite="overwrite"in b?!!b.overwrite:b.clobber,b.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
2242
2242
|
|
|
2243
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),_i.checkPaths(c,p,"copy",b,(v,e)=>{if(v)return A(v);let{srcStat:l,destStat:t}=e;_i.checkParentPaths(c,l,p,"copy",n=>n?A(n):b.filter?
|
|
2243
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),_i.checkPaths(c,p,"copy",b,(v,e)=>{if(v)return A(v);let{srcStat:l,destStat:t}=e;_i.checkParentPaths(c,l,p,"copy",n=>n?A(n):b.filter?of(sf,t,c,p,b,A):sf(t,c,p,b,A))})}function sf(c,p,b,A,v){let e=Ai.dirname(b);uS(e,(l,t)=>{if(l)return v(l);if(t)return _s(c,p,b,A,v);lS(e,n=>n?v(n):_s(c,p,b,A,v))})}function of(c,p,b,A,v,e){Promise.resolve(v.filter(b,A)).then(l=>l?c(p,b,A,v,e):e(),l=>e(l))}function dS(c,p,b,A,v){return A.filter?of(_s,c,p,b,A,v):_s(c,p,b,A,v)}function _s(c,p,b,A,v){(A.dereference?Ir.stat:Ir.lstat)(p,(l,t)=>l?v(l):t.isDirectory()?ES(t,c,p,b,A,v):t.isFile()||t.isCharacterDevice()||t.isBlockDevice()?fS(t,c,p,b,A,v):t.isSymbolicLink()?TS(c,p,b,A,v):t.isSocket()?v(new Error(`Cannot copy a socket file: ${p}`)):t.isFIFO()?v(new Error(`Cannot copy a FIFO pipe: ${p}`)):v(new Error(`Unknown file: ${p}`)))}function fS(c,p,b,A,v,e){return p?hS(c,b,A,v,e):lf(c,b,A,v,e)}function hS(c,p,b,A,v){if(A.overwrite)Ir.unlink(b,e=>e?v(e):lf(c,p,b,A,v));else return A.errorOnExist?v(new Error(`'${b}' already exists`)):v()}function lf(c,p,b,A,v){Ir.copyFile(p,b,e=>e?v(e):A.preserveTimestamps?mS(c.mode,p,b,v):Cs(b,c.mode,v))}function mS(c,p,b,A){return yS(c)?bS(b,c,v=>v?A(v):af(c,p,b,A)):af(c,p,b,A)}function yS(c){return(c&128)===0}function bS(c,p,b){return Cs(c,p|128,b)}function af(c,p,b,A){gS(p,b,v=>v?A(v):Cs(b,c,A))}function Cs(c,p,b){return Ir.chmod(c,p,b)}function gS(c,p,b){Ir.stat(c,(A,v)=>A?b(A):cS(p,v.atime,v.mtime,b))}function ES(c,p,b,A,v,e){return p?uf(b,A,v,e):vS(c.mode,b,A,v,e)}function vS(c,p,b,A,v){Ir.mkdir(b,e=>{if(e)return v(e);uf(p,b,A,l=>l?v(l):Cs(b,c,v))})}function uf(c,p,b,A){Ir.readdir(c,(v,e)=>v?A(v):cf(e,c,p,b,A))}function cf(c,p,b,A,v){let e=c.pop();return e?SS(c,e,p,b,A,v):v()}function SS(c,p,b,A,v,e){let l=Ai.join(b,p),t=Ai.join(A,p);_i.checkPaths(l,t,"copy",v,(n,r)=>{if(n)return e(n);let{destStat:i}=r;dS(i,l,t,v,u=>u?e(u):cf(c,b,A,v,e))})}function TS(c,p,b,A,v){Ir.readlink(p,(e,l)=>{if(e)return v(e);if(A.dereference&&(l=Ai.resolve(process.cwd(),l)),c)Ir.readlink(b,(t,n)=>t?t.code==="EINVAL"||t.code==="UNKNOWN"?Ir.symlink(l,b,v):v(t):(A.dereference&&(n=Ai.resolve(process.cwd(),n)),_i.isSrcSubdir(l,n)?v(new Error(`Cannot copy '${l}' to a subdirectory of itself, '${n}'.`)):c.isDirectory()&&_i.isSrcSubdir(n,l)?v(new Error(`Cannot overwrite '${n}' with '${l}'.`)):PS(l,b,v)));else return Ir.symlink(l,b,v)})}function PS(c,p,b){Ir.unlink(p,A=>A?b(A):Ir.symlink(c,p,b))}pf.exports=pS});var bf=Re((kC,yf)=>{"use strict";var Tr=Ar(),Ci=tt("path"),AS=Vr().mkdirsSync,_S=ll().utimesMillisSync,wi=Rn();function CS(c,p,b){typeof b=="function"&&(b={filter:b}),b=b||{},b.clobber="clobber"in b?!!b.clobber:!0,b.overwrite="overwrite"in b?!!b.overwrite:b.clobber,b.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
2244
2244
|
|
|
2245
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:A,destStat:v}=wi.checkPathsSync(c,p,"copy",b);return wi.checkParentPathsSync(c,A,p,"copy"),DS(v,c,p,b)}function DS(c,p,b,A){if(A.filter&&!A.filter(p,b))return;let v=Ci.dirname(b);return Pr.existsSync(v)||_S(v),hf(c,p,b,A)}function xS(c,p,b,A){if(!(A.filter&&!A.filter(p,b)))return hf(c,p,b,A)}function hf(c,p,b,A){let e=(A.dereference?Pr.statSync:Pr.lstatSync)(p);if(e.isDirectory())return kS(e,c,p,b,A);if(e.isFile()||e.isCharacterDevice()||e.isBlockDevice())return OS(e,c,p,b,A);if(e.isSymbolicLink())return BS(c,p,b,A);throw e.isSocket()?new Error(`Cannot copy a socket file: ${p}`):e.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${p}`):new Error(`Unknown file: ${p}`)}function OS(c,p,b,A,v){return p?IS(c,b,A,v):mf(c,b,A,v)}function IS(c,p,b,A){if(A.overwrite)return Pr.unlinkSync(b),mf(c,p,b,A);if(A.errorOnExist)throw new Error(`'${b}' already exists`)}function mf(c,p,b,A){return Pr.copyFileSync(p,b),A.preserveTimestamps&&NS(c.mode,p,b),cl(b,c.mode)}function NS(c,p,b){return jS(c)&&FS(b,c),RS(p,b)}function jS(c){return(c&128)===0}function FS(c,p){return cl(c,p|128)}function cl(c,p){return Pr.chmodSync(c,p)}function RS(c,p){let b=Pr.statSync(c);return CS(p,b.atime,b.mtime)}function kS(c,p,b,A,v){return p?yf(b,A,v):LS(c.mode,b,A,v)}function LS(c,p,b,A){return Pr.mkdirSync(b),yf(p,b,A),cl(b,c)}function yf(c,p,b){Pr.readdirSync(c).forEach(A=>MS(A,c,p,b))}function MS(c,p,b,A){let v=Ci.join(p,c),e=Ci.join(b,c),{destStat:l}=wi.checkPathsSync(v,e,"copy",A);return xS(l,v,e,A)}function BS(c,p,b,A){let v=Pr.readlinkSync(p);if(A.dereference&&(v=Ci.resolve(process.cwd(),v)),c){let e;try{e=Pr.readlinkSync(b)}catch(l){if(l.code==="EINVAL"||l.code==="UNKNOWN")return Pr.symlinkSync(v,b);throw l}if(A.dereference&&(e=Ci.resolve(process.cwd(),e)),wi.isSrcSubdir(v,e))throw new Error(`Cannot copy '${v}' to a subdirectory of itself, '${e}'.`);if(Pr.statSync(b).isDirectory()&&wi.isSrcSubdir(e,v))throw new Error(`Cannot overwrite '${e}' with '${v}'.`);return $S(v,b)}else return Pr.symlinkSync(v,b)}function $S(c,p){return Pr.unlinkSync(p),Pr.symlinkSync(c,p)}bf.exports=wS});var Ds=Re((kC,Ef)=>{"use strict";var US=xr().fromCallback;Ef.exports={copy:US(ff()),copySync:gf()}});var Df=Re((LC,wf)=>{"use strict";var vf=Ar(),Af=tt("path"),qt=tt("assert"),Di=process.platform==="win32";function _f(c){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(b=>{c[b]=c[b]||vf[b],b=b+"Sync",c[b]=c[b]||vf[b]}),c.maxBusyTries=c.maxBusyTries||3}function pl(c,p,b){let A=0;typeof p=="function"&&(b=p,p={}),qt(c,"rimraf: missing path"),qt.strictEqual(typeof c,"string","rimraf: path should be a string"),qt.strictEqual(typeof b,"function","rimraf: callback function required"),qt(p,"rimraf: invalid options argument provided"),qt.strictEqual(typeof p,"object","rimraf: options should be object"),_f(p),Sf(c,p,function v(e){if(e){if((e.code==="EBUSY"||e.code==="ENOTEMPTY"||e.code==="EPERM")&&A<p.maxBusyTries){A++;let l=A*100;return setTimeout(()=>Sf(c,p,v),l)}e.code==="ENOENT"&&(e=null)}b(e)})}function Sf(c,p,b){qt(c),qt(p),qt(typeof b=="function"),p.lstat(c,(A,v)=>{if(A&&A.code==="ENOENT")return b(null);if(A&&A.code==="EPERM"&&Di)return Tf(c,p,A,b);if(v&&v.isDirectory())return xs(c,p,A,b);p.unlink(c,e=>{if(e){if(e.code==="ENOENT")return b(null);if(e.code==="EPERM")return Di?Tf(c,p,e,b):xs(c,p,e,b);if(e.code==="EISDIR")return xs(c,p,e,b)}return b(e)})})}function Tf(c,p,b,A){qt(c),qt(p),qt(typeof A=="function"),p.chmod(c,438,v=>{v?A(v.code==="ENOENT"?null:b):p.stat(c,(e,l)=>{e?A(e.code==="ENOENT"?null:b):l.isDirectory()?xs(c,p,b,A):p.unlink(c,A)})})}function Pf(c,p,b){let A;qt(c),qt(p);try{p.chmodSync(c,438)}catch(v){if(v.code==="ENOENT")return;throw b}try{A=p.statSync(c)}catch(v){if(v.code==="ENOENT")return;throw b}A.isDirectory()?Os(c,p,b):p.unlinkSync(c)}function xs(c,p,b,A){qt(c),qt(p),qt(typeof A=="function"),p.rmdir(c,v=>{v&&(v.code==="ENOTEMPTY"||v.code==="EEXIST"||v.code==="EPERM")?VS(c,p,A):v&&v.code==="ENOTDIR"?A(b):A(v)})}function VS(c,p,b){qt(c),qt(p),qt(typeof b=="function"),p.readdir(c,(A,v)=>{if(A)return b(A);let e=v.length,l;if(e===0)return p.rmdir(c,b);v.forEach(t=>{pl(Af.join(c,t),p,n=>{if(!l){if(n)return b(l=n);--e===0&&p.rmdir(c,b)}})})})}function Cf(c,p){let b;p=p||{},_f(p),qt(c,"rimraf: missing path"),qt.strictEqual(typeof c,"string","rimraf: path should be a string"),qt(p,"rimraf: missing options"),qt.strictEqual(typeof p,"object","rimraf: options should be object");try{b=p.lstatSync(c)}catch(A){if(A.code==="ENOENT")return;A.code==="EPERM"&&Di&&Pf(c,p,A)}try{b&&b.isDirectory()?Os(c,p,null):p.unlinkSync(c)}catch(A){if(A.code==="ENOENT")return;if(A.code==="EPERM")return Di?Pf(c,p,A):Os(c,p,A);if(A.code!=="EISDIR")throw A;Os(c,p,A)}}function Os(c,p,b){qt(c),qt(p);try{p.rmdirSync(c)}catch(A){if(A.code==="ENOTDIR")throw b;if(A.code==="ENOTEMPTY"||A.code==="EEXIST"||A.code==="EPERM")WS(c,p);else if(A.code!=="ENOENT")throw A}}function WS(c,p){if(qt(c),qt(p),p.readdirSync(c).forEach(b=>Cf(Af.join(c,b),p)),Di){let b=Date.now();do try{return p.rmdirSync(c,p)}catch{}while(Date.now()-b<500)}else return p.rmdirSync(c,p)}wf.exports=pl;pl.sync=Cf});var xi=Re((MC,Of)=>{"use strict";var Is=Ar(),GS=xr().fromCallback,xf=Df();function KS(c,p){if(Is.rm)return Is.rm(c,{recursive:!0,force:!0},p);xf(c,p)}function HS(c){if(Is.rmSync)return Is.rmSync(c,{recursive:!0,force:!0});xf.sync(c)}Of.exports={remove:GS(KS),removeSync:HS}});var Mf=Re((BC,Lf)=>{"use strict";var YS=xr().fromPromise,jf=Fn(),Ff=tt("path"),Rf=Vr(),kf=xi(),If=YS(async function(p){let b;try{b=await jf.readdir(p)}catch{return Rf.mkdirs(p)}return Promise.all(b.map(A=>kf.remove(Ff.join(p,A))))});function Nf(c){let p;try{p=jf.readdirSync(c)}catch{return Rf.mkdirsSync(c)}p.forEach(b=>{b=Ff.join(c,b),kf.removeSync(b)})}Lf.exports={emptyDirSync:Nf,emptydirSync:Nf,emptyDir:If,emptydir:If}});var Vf=Re(($C,Uf)=>{"use strict";var XS=xr().fromCallback,Bf=tt("path"),En=Ar(),$f=Vr();function zS(c,p){function b(){En.writeFile(c,"",A=>{if(A)return p(A);p()})}En.stat(c,(A,v)=>{if(!A&&v.isFile())return p();let e=Bf.dirname(c);En.stat(e,(l,t)=>{if(l)return l.code==="ENOENT"?$f.mkdirs(e,n=>{if(n)return p(n);b()}):p(l);t.isDirectory()?b():En.readdir(e,n=>{if(n)return p(n)})})})}function JS(c){let p;try{p=En.statSync(c)}catch{}if(p&&p.isFile())return;let b=Bf.dirname(c);try{En.statSync(b).isDirectory()||En.readdirSync(b)}catch(A){if(A&&A.code==="ENOENT")$f.mkdirsSync(b);else throw A}En.writeFileSync(c,"")}Uf.exports={createFile:XS(zS),createFileSync:JS}});var Yf=Re((UC,Hf)=>{"use strict";var qS=xr().fromCallback,Wf=tt("path"),vn=Ar(),Gf=Vr(),QS=gn().pathExists,{areIdentical:Kf}=Rn();function ZS(c,p,b){function A(v,e){vn.link(v,e,l=>{if(l)return b(l);b(null)})}vn.lstat(p,(v,e)=>{vn.lstat(c,(l,t)=>{if(l)return l.message=l.message.replace("lstat","ensureLink"),b(l);if(e&&Kf(t,e))return b(null);let n=Wf.dirname(p);QS(n,(r,i)=>{if(r)return b(r);if(i)return A(c,p);Gf.mkdirs(n,u=>{if(u)return b(u);A(c,p)})})})})}function eT(c,p){let b;try{b=vn.lstatSync(p)}catch{}try{let e=vn.lstatSync(c);if(b&&Kf(e,b))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}let A=Wf.dirname(p);return vn.existsSync(A)||Gf.mkdirsSync(A),vn.linkSync(c,p)}Hf.exports={createLink:qS(ZS),createLinkSync:eT}});var zf=Re((VC,Xf)=>{"use strict";var Sn=tt("path"),Oi=Ar(),tT=gn().pathExists;function rT(c,p,b){if(Sn.isAbsolute(c))return Oi.lstat(c,A=>A?(A.message=A.message.replace("lstat","ensureSymlink"),b(A)):b(null,{toCwd:c,toDst:c}));{let A=Sn.dirname(p),v=Sn.join(A,c);return tT(v,(e,l)=>e?b(e):l?b(null,{toCwd:v,toDst:c}):Oi.lstat(c,t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),b(t)):b(null,{toCwd:c,toDst:Sn.relative(A,c)})))}}function nT(c,p){let b;if(Sn.isAbsolute(c)){if(b=Oi.existsSync(c),!b)throw new Error("absolute srcpath does not exist");return{toCwd:c,toDst:c}}else{let A=Sn.dirname(p),v=Sn.join(A,c);if(b=Oi.existsSync(v),b)return{toCwd:v,toDst:c};if(b=Oi.existsSync(c),!b)throw new Error("relative srcpath does not exist");return{toCwd:c,toDst:Sn.relative(A,c)}}}Xf.exports={symlinkPaths:rT,symlinkPathsSync:nT}});var Qf=Re((WC,qf)=>{"use strict";var Jf=Ar();function iT(c,p,b){if(b=typeof p=="function"?p:b,p=typeof p=="function"?!1:p,p)return b(null,p);Jf.lstat(c,(A,v)=>{if(A)return b(null,"file");p=v&&v.isDirectory()?"dir":"file",b(null,p)})}function sT(c,p){let b;if(p)return p;try{b=Jf.lstatSync(c)}catch{return"file"}return b&&b.isDirectory()?"dir":"file"}qf.exports={symlinkType:iT,symlinkTypeSync:sT}});var ah=Re((GC,sh)=>{"use strict";var aT=xr().fromCallback,eh=tt("path"),Wr=Fn(),th=Vr(),oT=th.mkdirs,lT=th.mkdirsSync,rh=zf(),uT=rh.symlinkPaths,cT=rh.symlinkPathsSync,nh=Qf(),pT=nh.symlinkType,dT=nh.symlinkTypeSync,fT=gn().pathExists,{areIdentical:ih}=Rn();function hT(c,p,b,A){A=typeof b=="function"?b:A,b=typeof b=="function"?!1:b,Wr.lstat(p,(v,e)=>{!v&&e.isSymbolicLink()?Promise.all([Wr.stat(c),Wr.stat(p)]).then(([l,t])=>{if(ih(l,t))return A(null);Zf(c,p,b,A)}):Zf(c,p,b,A)})}function Zf(c,p,b,A){uT(c,p,(v,e)=>{if(v)return A(v);c=e.toDst,pT(e.toCwd,b,(l,t)=>{if(l)return A(l);let n=eh.dirname(p);fT(n,(r,i)=>{if(r)return A(r);if(i)return Wr.symlink(c,p,t,A);oT(n,u=>{if(u)return A(u);Wr.symlink(c,p,t,A)})})})})}function mT(c,p,b){let A;try{A=Wr.lstatSync(p)}catch{}if(A&&A.isSymbolicLink()){let t=Wr.statSync(c),n=Wr.statSync(p);if(ih(t,n))return}let v=cT(c,p);c=v.toDst,b=dT(v.toCwd,b);let e=eh.dirname(p);return Wr.existsSync(e)||lT(e),Wr.symlinkSync(c,p,b)}sh.exports={createSymlink:aT(hT),createSymlinkSync:mT}});var hh=Re((KC,fh)=>{"use strict";var{createFile:oh,createFileSync:lh}=Vf(),{createLink:uh,createLinkSync:ch}=Yf(),{createSymlink:ph,createSymlinkSync:dh}=ah();fh.exports={createFile:oh,createFileSync:lh,ensureFile:oh,ensureFileSync:lh,createLink:uh,createLinkSync:ch,ensureLink:uh,ensureLinkSync:ch,createSymlink:ph,createSymlinkSync:dh,ensureSymlink:ph,ensureSymlinkSync:dh}});var Ns=Re((HC,mh)=>{function yT(c,{EOL:p=`
|
|
2246
|
-
`,finalEOL:b=!0,replacer:A=null,spaces:v}={}){let e=b?p:"";return JSON.stringify(c,A,v).replace(/\n/g,p)+e}function bT(c){return Buffer.isBuffer(c)&&(c=c.toString("utf8")),c.replace(/^\uFEFF/,"")}mh.exports={stringify:yT,stripBom:bT}});var Eh=Re((YC,gh)=>{var ai;try{ai=Ar()}catch{ai=tt("fs")}var js=xr(),{stringify:yh,stripBom:bh}=Ns();async function gT(c,p={}){typeof p=="string"&&(p={encoding:p});let b=p.fs||ai,A="throws"in p?p.throws:!0,v=await js.fromCallback(b.readFile)(c,p);v=bh(v);let e;try{e=JSON.parse(v,p?p.reviver:null)}catch(l){if(A)throw l.message=`${c}: ${l.message}`,l;return null}return e}var ET=js.fromPromise(gT);function vT(c,p={}){typeof p=="string"&&(p={encoding:p});let b=p.fs||ai,A="throws"in p?p.throws:!0;try{let v=b.readFileSync(c,p);return v=bh(v),JSON.parse(v,p.reviver)}catch(v){if(A)throw v.message=`${c}: ${v.message}`,v;return null}}async function ST(c,p,b={}){let A=b.fs||ai,v=yh(p,b);await js.fromCallback(A.writeFile)(c,v,b)}var TT=js.fromPromise(ST);function PT(c,p,b={}){let A=b.fs||ai,v=yh(p,b);return A.writeFileSync(c,v,b)}var AT={readFile:ET,readFileSync:vT,writeFile:TT,writeFileSync:PT};gh.exports=AT});var Sh=Re((XC,vh)=>{"use strict";var Fs=Eh();vh.exports={readJson:Fs.readFile,readJsonSync:Fs.readFileSync,writeJson:Fs.writeFile,writeJsonSync:Fs.writeFileSync}});var Rs=Re((zC,Ah)=>{"use strict";var _T=xr().fromCallback,Ii=Ar(),Th=tt("path"),Ph=Vr(),CT=gn().pathExists;function wT(c,p,b,A){typeof b=="function"&&(A=b,b="utf8");let v=Th.dirname(c);CT(v,(e,l)=>{if(e)return A(e);if(l)return Ii.writeFile(c,p,b,A);Ph.mkdirs(v,t=>{if(t)return A(t);Ii.writeFile(c,p,b,A)})})}function DT(c,...p){let b=Th.dirname(c);if(Ii.existsSync(b))return Ii.writeFileSync(c,...p);Ph.mkdirsSync(b),Ii.writeFileSync(c,...p)}Ah.exports={outputFile:_T(wT),outputFileSync:DT}});var Ch=Re((JC,_h)=>{"use strict";var{stringify:xT}=Ns(),{outputFile:OT}=Rs();async function IT(c,p,b={}){let A=xT(p,b);await OT(c,A,b)}_h.exports=IT});var Dh=Re((qC,wh)=>{"use strict";var{stringify:NT}=Ns(),{outputFileSync:jT}=Rs();function FT(c,p,b){let A=NT(p,b);jT(c,A,b)}wh.exports=FT});var Oh=Re((QC,xh)=>{"use strict";var RT=xr().fromPromise,_r=Sh();_r.outputJson=RT(Ch());_r.outputJsonSync=Dh();_r.outputJSON=_r.outputJson;_r.outputJSONSync=_r.outputJsonSync;_r.writeJSON=_r.writeJson;_r.writeJSONSync=_r.writeJsonSync;_r.readJSON=_r.readJson;_r.readJSONSync=_r.readJsonSync;xh.exports=_r});var Rh=Re((ZC,Fh)=>{"use strict";var kT=Ar(),fl=tt("path"),LT=Ds().copy,jh=xi().remove,MT=Vr().mkdirp,BT=gn().pathExists,Ih=Rn();function $T(c,p,b,A){typeof b=="function"&&(A=b,b={}),b=b||{};let v=b.overwrite||b.clobber||!1;Ih.checkPaths(c,p,"move",b,(e,l)=>{if(e)return A(e);let{srcStat:t,isChangingCase:n=!1}=l;Ih.checkParentPaths(c,t,p,"move",r=>{if(r)return A(r);if(UT(p))return Nh(c,p,v,n,A);MT(fl.dirname(p),i=>i?A(i):Nh(c,p,v,n,A))})})}function UT(c){let p=fl.dirname(c);return fl.parse(p).root===p}function Nh(c,p,b,A,v){if(A)return dl(c,p,b,v);if(b)return jh(p,e=>e?v(e):dl(c,p,b,v));BT(p,(e,l)=>e?v(e):l?v(new Error("dest already exists.")):dl(c,p,b,v))}function dl(c,p,b,A){kT.rename(c,p,v=>v?v.code!=="EXDEV"?A(v):VT(c,p,b,A):A())}function VT(c,p,b,A){LT(c,p,{overwrite:b,errorOnExist:!0},e=>e?A(e):jh(c,A))}Fh.exports=$T});var $h=Re((ew,Bh)=>{"use strict";var Lh=Ar(),ml=tt("path"),WT=Ds().copySync,Mh=xi().removeSync,GT=Vr().mkdirpSync,kh=Rn();function KT(c,p,b){b=b||{};let A=b.overwrite||b.clobber||!1,{srcStat:v,isChangingCase:e=!1}=kh.checkPathsSync(c,p,"move",b);return kh.checkParentPathsSync(c,v,p,"move"),HT(p)||GT(ml.dirname(p)),YT(c,p,A,e)}function HT(c){let p=ml.dirname(c);return ml.parse(p).root===p}function YT(c,p,b,A){if(A)return hl(c,p,b);if(b)return Mh(p),hl(c,p,b);if(Lh.existsSync(p))throw new Error("dest already exists.");return hl(c,p,b)}function hl(c,p,b){try{Lh.renameSync(c,p)}catch(A){if(A.code!=="EXDEV")throw A;return XT(c,p,b)}}function XT(c,p,b){return WT(c,p,{overwrite:b,errorOnExist:!0}),Mh(c)}Bh.exports=KT});var Vh=Re((tw,Uh)=>{"use strict";var zT=xr().fromCallback;Uh.exports={move:zT(Rh()),moveSync:$h()}});var Gh=Re((rw,Wh)=>{"use strict";Wh.exports={...Fn(),...Ds(),...Mf(),...hh(),...Oh(),...Vr(),...Vh(),...Rs(),...gn(),...xi()}});var tm=Re((Tw,yl)=>{var m1=tt("tty"),y1=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||m1.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env),rr=(c,p,b=c)=>A=>{let v=""+A,e=v.indexOf(p,c.length);return~e?c+Zh(v,p,b,e)+p:c+v+p},Zh=(c,p,b,A)=>{let v=c.substring(0,A)+b,e=c.substring(A+p.length),l=e.indexOf(p);return~l?v+Zh(e,p,b,l):v+e},em=(c=y1)=>({isColorSupported:c,reset:c?p=>`\x1B[0m${p}\x1B[0m`:String,bold:c?rr("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:c?rr("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:c?rr("\x1B[3m","\x1B[23m"):String,underline:c?rr("\x1B[4m","\x1B[24m"):String,inverse:c?rr("\x1B[7m","\x1B[27m"):String,hidden:c?rr("\x1B[8m","\x1B[28m"):String,strikethrough:c?rr("\x1B[9m","\x1B[29m"):String,black:c?rr("\x1B[30m","\x1B[39m"):String,red:c?rr("\x1B[31m","\x1B[39m"):String,green:c?rr("\x1B[32m","\x1B[39m"):String,yellow:c?rr("\x1B[33m","\x1B[39m"):String,blue:c?rr("\x1B[34m","\x1B[39m"):String,magenta:c?rr("\x1B[35m","\x1B[39m"):String,cyan:c?rr("\x1B[36m","\x1B[39m"):String,white:c?rr("\x1B[37m","\x1B[39m"):String,gray:c?rr("\x1B[90m","\x1B[39m"):String,bgBlack:c?rr("\x1B[40m","\x1B[49m"):String,bgRed:c?rr("\x1B[41m","\x1B[49m"):String,bgGreen:c?rr("\x1B[42m","\x1B[49m"):String,bgYellow:c?rr("\x1B[43m","\x1B[49m"):String,bgBlue:c?rr("\x1B[44m","\x1B[49m"):String,bgMagenta:c?rr("\x1B[45m","\x1B[49m"):String,bgCyan:c?rr("\x1B[46m","\x1B[49m"):String,bgWhite:c?rr("\x1B[47m","\x1B[49m"):String});yl.exports=em();yl.exports.createColors=em});import Vm from"fs";import{loadConfig as Wm}from"unconfig";function Ys(c){return c!==null&&typeof c=="object"}function Xs(c,p,b=".",A){if(!Ys(p))return Xs(c,{},b,A);let v=Object.assign({},p);for(let e in c){if(e==="__proto__"||e==="constructor")continue;let l=c[e];l!=null&&(A&&A(v,e,l,b)||(Array.isArray(l)&&Array.isArray(v[e])?v[e]=l.concat(v[e]):Ys(l)&&Ys(v[e])?v[e]=Xs(l,v[e],(b?`${b}.`:"")+e.toString(),A):v[e]=l))}return v}function zs(c){return(...p)=>p.reduce((b,A)=>Xs(b,A,"",c),{})}var Vn=zs(),Z1=zs((c,p,b,A)=>{if(typeof c[p]<"u"&&typeof b=="function")return c[p]=b(c[p]),!0}),eP=zs((c,p,b,A)=>{if(Array.isArray(c[p])&&typeof b=="function")return c[p]=b(c[p]),!0});import{ensureSuffix as Gm}from"@antfu/utils";var Km={url:"/",lang:"en",title:"Valaxy Blog",description:"A blog generated by Valaxy.",subtitle:"Next Generation Static Blog Framework.",author:{avatar:"https://cdn.jsdelivr.net/gh/YunYouJun/yun/images/meme/yun-good-with-bg.jpg",email:"me@yunyoujun.cn",link:"https://www.yunyoujun.cn",name:"YunYouJun",status:{emoji:"\u{1F60A}",message:"All at sea."}},favicon:"/favicon.svg",feed:{name:"",favicon:"/favicon.svg"},social:[],lastUpdated:!0,license:{enabled:!0,language:"",type:"by-nc-sa"},sponsor:{enable:!0,title:"\u6211\u5F88\u53EF\u7231\uFF0C\u8BF7\u7ED9\u6211\u94B1",methods:[]},search:{enable:!0,algolia:{enable:!1,appId:"",apiKey:"",indexName:""}},comment:{enable:!1,waline:{enable:!1,serverURL:""},twikoo:{enable:!1,envId:"https://twikoo.vercel.app"}},features:{katex:!0},theme:"yun",themeConfig:{pkg:{name:"",version:""}},markdownIt:{toc:{includeLevel:[1,2,3,4],listType:"ol"},katex:{}}};async function Mi(c={}){let{config:p,sources:b}=await Wm({sources:[{files:"valaxy.config",extensions:["ts","js","mjs","cjs","json"]}],merge:!1}),A=b[0],v=Vn(p,Km),e=c.theme||v.theme||"yun";try{let{defaultThemeConfig:l}=await import(`valaxy-theme-${e}`);v.themeConfig=Vn(v.themeConfig,l)}catch{console.error(`valaxy-theme-${e} doesn't have default config`)}try{let l=Vm.readFileSync(tt.resolve(`valaxy-theme-${e}/package.json`),"utf-8");v.themeConfig.pkg=JSON.parse(l)}catch{console.error(`valaxy-theme-${e} doesn't have package.json`)}return v.url=Gm("/",v.url),{config:v,configFile:A,theme:e}}var fd=tn(Zs()),hd=tn(xp());import{dirname as Ko,resolve as Ho}from"path";import{uniq as lv}from"@antfu/utils";import{resolveConfig as uv}from"vite";var dd=tn(ld());import{join as cd}from"path";import sv from"is-installed-globally";import pd from"global-dirs";import av from"consola";import{spawn as iv}from"cross-spawn";function ud(c){return new Promise((p,b)=>{let A=iv("git",["log","-1",'--pretty="%ci"',c]),v="";A.stdout.on("data",e=>v+=String(e)),A.on("close",()=>{p(+new Date(v))}),A.on("error",b)})}var Go=c=>`JSON.parse(${JSON.stringify(JSON.stringify(c))})`;function mn(c){return c.replace(/\\/g,"/")}function ov(c,p){return p.startsWith(c)?p:c+p}function Tr(c){return`/@fs${ov("/",mn(c))}`}function Nn(c,p=!1){try{return(0,dd.sync)(c,{preserveSymlinks:!1})}catch{}if(sv){try{return tt.resolve(cd(pd.yarn.packages,c))}catch{}try{return tt.resolve(cd(pd.npm.packages,c))}catch{}}if(p)throw new Error(`Failed to resolve package ${c}`);av.error(`Failed to resolve package ${c}`)}var cv=(0,fd.default)("valaxy:options");function pv(c){return c.startsWith("/")||/^\.\.?[\/\\]/.test(c)}function dv(c,p){return c?pv(c)?Ho(Ko(p),c):Ko(Nn(`valaxy-theme-${c}/package.json`)||""):""}async function a_(c,p="dev"){let b=Ho(Ko(Nn("valaxy/package.json",!0)),"client"),A=Ho(c.userRoot||process.cwd()),{config:v,configFile:e,theme:l}=await Mi(c),t=dv(l,A),n=lv([b,t,A]),r=(await(0,hd.default)(["**.md"],{cwd:A,ignore:["**/node_modules"]})).sort(),i={mode:p,clientRoot:b,userRoot:A,themeRoot:t,roots:n,theme:l,config:v,configFile:e||"",pages:r};return cv(i),i}async function o_(c="serve"){return(await uv({},c)).valaxy||{}}import{existsSync as fv}from"fs";import{join as hv}from"path";import{uniq as mv}from"@antfu/utils";import{loadConfigFromFile as yv,mergeConfig as md}from"vite";async function yd({userRoot:c,themeRoot:p},b,A,v){let e={mode:"development",command:v},l=mv([c,p]).map(n=>hv(n,"vite.config.ts"));for await(let n of l){if(!fv(n))continue;let r=await yv(e,n);!(r!=null&&r.config)||(A=md(A,r.config))}return md(b,A)}import{createServer as q1,resolveConfig as Q1}from"vite";import{dirname as X1,join as z1}from"path";import{splitVendorChunkPlugin as J1}from"vite";import cm from"fs";import L1 from"consola";import M1 from"markdown-it";import B1 from"gray-matter";import $1 from"@vitejs/plugin-vue";import U1 from"vite-plugin-pages";import V1 from"vite-plugin-vue-layouts";import W1 from"unplugin-vue-components/vite";import G1 from"@intlify/vite-plugin-vue-i18n";import K1 from"vite-plugin-inspect";import{dim as H1,yellow as Y1}from"kolorist";import jv from"markdown-it";import Dd from"markdown-it-anchor";import Fv from"markdown-it-emoji";import Rv from"markdown-it-link-attributes";import kv from"markdown-it-table-of-contents";import Lv from"markdown-it-task-lists";import Mv from"markdown-it-attrs";import bd from"katex";function gd(c,p){let b=c.posMax,A=!0,v=!0,e=p>0?c.src.charCodeAt(p-1):-1,l=p+1<=b?c.src.charCodeAt(p+1):-1;return(e===32||e===9||l>=48&&l<=57)&&(v=!1),(l===32||l===9)&&(A=!1),{can_open:A,can_close:v}}function bv(c,p){let b,A,v,e;if(c.src[c.pos]!=="$")return!1;if(v=gd(c,c.pos),!v.can_open)return p||(c.pending+="$"),c.pos+=1,!0;let l=c.pos+1;for(b=l;(b=c.src.indexOf("$",b))!==-1;){for(e=b-1;c.src[e]==="\\";)e-=1;if((b-e)%2===1)break;b+=1}return b===-1?(p||(c.pending+="$"),c.pos=l,!0):b-l===0?(p||(c.pending+="$$"),c.pos=l+1,!0):(v=gd(c,b),v.can_close?(p||(A=c.push("math_inline","math",0),A.markup="$",A.content=c.src.slice(l,b)),c.pos=b+1,!0):(p||(c.pending+="$"),c.pos=l,!0))}function gv(c,p,b,A){let v,e,l,t,n=!1,r=c.bMarks[p]+c.tShift[p],i=c.eMarks[p];if(r+2>i||c.src.slice(r,r+2)!=="$$")return!1;if(r+=2,v=c.src.slice(r,i),A)return!0;for(v.trim().slice(-2)==="$$"&&(v=v.trim().slice(0,-2),n=!0),l=p;!n&&(l++,!(l>=b||(r=c.bMarks[l]+c.tShift[l],i=c.eMarks[l],r<i&&c.tShift[l]<c.blkIndent)));)c.src.slice(r,i).trim().slice(-2)==="$$"&&(t=c.src.slice(0,i).lastIndexOf("$$"),e=c.src.slice(r,t),n=!0);c.line=l+1;let u=c.push("math_block","math",0);return u.block=!0,u.content=(v&&v.trim()?`${v}
|
|
2247
|
-
`:"")+c.getLines(p+1,l,c.tShift[p],!0)+(e&&e.trim()?e:""),u.map=[p,c.line],u.markup="$$",!0}function Yo(c,p){p=p||{};let b=function(l){p.displayMode=!1;try{return
|
|
2248
|
-
`};c.inline.ruler.after("escape","math_inline",
|
|
2245
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:A,destStat:v}=wi.checkPathsSync(c,p,"copy",b);return wi.checkParentPathsSync(c,A,p,"copy"),wS(v,c,p,b)}function wS(c,p,b,A){if(A.filter&&!A.filter(p,b))return;let v=Ci.dirname(b);return Tr.existsSync(v)||AS(v),ff(c,p,b,A)}function DS(c,p,b,A){if(!(A.filter&&!A.filter(p,b)))return ff(c,p,b,A)}function ff(c,p,b,A){let e=(A.dereference?Tr.statSync:Tr.lstatSync)(p);if(e.isDirectory())return RS(e,c,p,b,A);if(e.isFile()||e.isCharacterDevice()||e.isBlockDevice())return xS(e,c,p,b,A);if(e.isSymbolicLink())return MS(c,p,b,A);throw e.isSocket()?new Error(`Cannot copy a socket file: ${p}`):e.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${p}`):new Error(`Unknown file: ${p}`)}function xS(c,p,b,A,v){return p?OS(c,b,A,v):hf(c,b,A,v)}function OS(c,p,b,A){if(A.overwrite)return Tr.unlinkSync(b),hf(c,p,b,A);if(A.errorOnExist)throw new Error(`'${b}' already exists`)}function hf(c,p,b,A){return Tr.copyFileSync(p,b),A.preserveTimestamps&&IS(c.mode,p,b),cl(b,c.mode)}function IS(c,p,b){return NS(c)&&jS(b,c),FS(p,b)}function NS(c){return(c&128)===0}function jS(c,p){return cl(c,p|128)}function cl(c,p){return Tr.chmodSync(c,p)}function FS(c,p){let b=Tr.statSync(c);return _S(p,b.atime,b.mtime)}function RS(c,p,b,A,v){return p?mf(b,A,v):kS(c.mode,b,A,v)}function kS(c,p,b,A){return Tr.mkdirSync(b),mf(p,b,A),cl(b,c)}function mf(c,p,b){Tr.readdirSync(c).forEach(A=>LS(A,c,p,b))}function LS(c,p,b,A){let v=Ci.join(p,c),e=Ci.join(b,c),{destStat:l}=wi.checkPathsSync(v,e,"copy",A);return DS(l,v,e,A)}function MS(c,p,b,A){let v=Tr.readlinkSync(p);if(A.dereference&&(v=Ci.resolve(process.cwd(),v)),c){let e;try{e=Tr.readlinkSync(b)}catch(l){if(l.code==="EINVAL"||l.code==="UNKNOWN")return Tr.symlinkSync(v,b);throw l}if(A.dereference&&(e=Ci.resolve(process.cwd(),e)),wi.isSrcSubdir(v,e))throw new Error(`Cannot copy '${v}' to a subdirectory of itself, '${e}'.`);if(Tr.statSync(b).isDirectory()&&wi.isSrcSubdir(e,v))throw new Error(`Cannot overwrite '${e}' with '${v}'.`);return BS(v,b)}else return Tr.symlinkSync(v,b)}function BS(c,p){return Tr.unlinkSync(p),Tr.symlinkSync(c,p)}yf.exports=CS});var ws=Re((LC,gf)=>{"use strict";var $S=xr().fromCallback;gf.exports={copy:$S(df()),copySync:bf()}});var wf=Re((MC,Cf)=>{"use strict";var Ef=Ar(),Pf=tt("path"),qt=tt("assert"),Di=process.platform==="win32";function Af(c){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(b=>{c[b]=c[b]||Ef[b],b=b+"Sync",c[b]=c[b]||Ef[b]}),c.maxBusyTries=c.maxBusyTries||3}function pl(c,p,b){let A=0;typeof p=="function"&&(b=p,p={}),qt(c,"rimraf: missing path"),qt.strictEqual(typeof c,"string","rimraf: path should be a string"),qt.strictEqual(typeof b,"function","rimraf: callback function required"),qt(p,"rimraf: invalid options argument provided"),qt.strictEqual(typeof p,"object","rimraf: options should be object"),Af(p),vf(c,p,function v(e){if(e){if((e.code==="EBUSY"||e.code==="ENOTEMPTY"||e.code==="EPERM")&&A<p.maxBusyTries){A++;let l=A*100;return setTimeout(()=>vf(c,p,v),l)}e.code==="ENOENT"&&(e=null)}b(e)})}function vf(c,p,b){qt(c),qt(p),qt(typeof b=="function"),p.lstat(c,(A,v)=>{if(A&&A.code==="ENOENT")return b(null);if(A&&A.code==="EPERM"&&Di)return Sf(c,p,A,b);if(v&&v.isDirectory())return Ds(c,p,A,b);p.unlink(c,e=>{if(e){if(e.code==="ENOENT")return b(null);if(e.code==="EPERM")return Di?Sf(c,p,e,b):Ds(c,p,e,b);if(e.code==="EISDIR")return Ds(c,p,e,b)}return b(e)})})}function Sf(c,p,b,A){qt(c),qt(p),qt(typeof A=="function"),p.chmod(c,438,v=>{v?A(v.code==="ENOENT"?null:b):p.stat(c,(e,l)=>{e?A(e.code==="ENOENT"?null:b):l.isDirectory()?Ds(c,p,b,A):p.unlink(c,A)})})}function Tf(c,p,b){let A;qt(c),qt(p);try{p.chmodSync(c,438)}catch(v){if(v.code==="ENOENT")return;throw b}try{A=p.statSync(c)}catch(v){if(v.code==="ENOENT")return;throw b}A.isDirectory()?xs(c,p,b):p.unlinkSync(c)}function Ds(c,p,b,A){qt(c),qt(p),qt(typeof A=="function"),p.rmdir(c,v=>{v&&(v.code==="ENOTEMPTY"||v.code==="EEXIST"||v.code==="EPERM")?US(c,p,A):v&&v.code==="ENOTDIR"?A(b):A(v)})}function US(c,p,b){qt(c),qt(p),qt(typeof b=="function"),p.readdir(c,(A,v)=>{if(A)return b(A);let e=v.length,l;if(e===0)return p.rmdir(c,b);v.forEach(t=>{pl(Pf.join(c,t),p,n=>{if(!l){if(n)return b(l=n);--e===0&&p.rmdir(c,b)}})})})}function _f(c,p){let b;p=p||{},Af(p),qt(c,"rimraf: missing path"),qt.strictEqual(typeof c,"string","rimraf: path should be a string"),qt(p,"rimraf: missing options"),qt.strictEqual(typeof p,"object","rimraf: options should be object");try{b=p.lstatSync(c)}catch(A){if(A.code==="ENOENT")return;A.code==="EPERM"&&Di&&Tf(c,p,A)}try{b&&b.isDirectory()?xs(c,p,null):p.unlinkSync(c)}catch(A){if(A.code==="ENOENT")return;if(A.code==="EPERM")return Di?Tf(c,p,A):xs(c,p,A);if(A.code!=="EISDIR")throw A;xs(c,p,A)}}function xs(c,p,b){qt(c),qt(p);try{p.rmdirSync(c)}catch(A){if(A.code==="ENOTDIR")throw b;if(A.code==="ENOTEMPTY"||A.code==="EEXIST"||A.code==="EPERM")VS(c,p);else if(A.code!=="ENOENT")throw A}}function VS(c,p){if(qt(c),qt(p),p.readdirSync(c).forEach(b=>_f(Pf.join(c,b),p)),Di){let b=Date.now();do try{return p.rmdirSync(c,p)}catch{}while(Date.now()-b<500)}else return p.rmdirSync(c,p)}Cf.exports=pl;pl.sync=_f});var xi=Re((BC,xf)=>{"use strict";var Os=Ar(),WS=xr().fromCallback,Df=wf();function GS(c,p){if(Os.rm)return Os.rm(c,{recursive:!0,force:!0},p);Df(c,p)}function KS(c){if(Os.rmSync)return Os.rmSync(c,{recursive:!0,force:!0});Df.sync(c)}xf.exports={remove:WS(GS),removeSync:KS}});var Lf=Re(($C,kf)=>{"use strict";var HS=xr().fromPromise,Nf=Fn(),jf=tt("path"),Ff=Vr(),Rf=xi(),Of=HS(async function(p){let b;try{b=await Nf.readdir(p)}catch{return Ff.mkdirs(p)}return Promise.all(b.map(A=>Rf.remove(jf.join(p,A))))});function If(c){let p;try{p=Nf.readdirSync(c)}catch{return Ff.mkdirsSync(c)}p.forEach(b=>{b=jf.join(c,b),Rf.removeSync(b)})}kf.exports={emptyDirSync:If,emptydirSync:If,emptyDir:Of,emptydir:Of}});var Uf=Re((UC,$f)=>{"use strict";var YS=xr().fromCallback,Mf=tt("path"),En=Ar(),Bf=Vr();function XS(c,p){function b(){En.writeFile(c,"",A=>{if(A)return p(A);p()})}En.stat(c,(A,v)=>{if(!A&&v.isFile())return p();let e=Mf.dirname(c);En.stat(e,(l,t)=>{if(l)return l.code==="ENOENT"?Bf.mkdirs(e,n=>{if(n)return p(n);b()}):p(l);t.isDirectory()?b():En.readdir(e,n=>{if(n)return p(n)})})})}function zS(c){let p;try{p=En.statSync(c)}catch{}if(p&&p.isFile())return;let b=Mf.dirname(c);try{En.statSync(b).isDirectory()||En.readdirSync(b)}catch(A){if(A&&A.code==="ENOENT")Bf.mkdirsSync(b);else throw A}En.writeFileSync(c,"")}$f.exports={createFile:YS(XS),createFileSync:zS}});var Hf=Re((VC,Kf)=>{"use strict";var JS=xr().fromCallback,Vf=tt("path"),vn=Ar(),Wf=Vr(),qS=gn().pathExists,{areIdentical:Gf}=Rn();function QS(c,p,b){function A(v,e){vn.link(v,e,l=>{if(l)return b(l);b(null)})}vn.lstat(p,(v,e)=>{vn.lstat(c,(l,t)=>{if(l)return l.message=l.message.replace("lstat","ensureLink"),b(l);if(e&&Gf(t,e))return b(null);let n=Vf.dirname(p);qS(n,(r,i)=>{if(r)return b(r);if(i)return A(c,p);Wf.mkdirs(n,u=>{if(u)return b(u);A(c,p)})})})})}function ZS(c,p){let b;try{b=vn.lstatSync(p)}catch{}try{let e=vn.lstatSync(c);if(b&&Gf(e,b))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}let A=Vf.dirname(p);return vn.existsSync(A)||Wf.mkdirsSync(A),vn.linkSync(c,p)}Kf.exports={createLink:JS(QS),createLinkSync:ZS}});var Xf=Re((WC,Yf)=>{"use strict";var Sn=tt("path"),Oi=Ar(),eT=gn().pathExists;function tT(c,p,b){if(Sn.isAbsolute(c))return Oi.lstat(c,A=>A?(A.message=A.message.replace("lstat","ensureSymlink"),b(A)):b(null,{toCwd:c,toDst:c}));{let A=Sn.dirname(p),v=Sn.join(A,c);return eT(v,(e,l)=>e?b(e):l?b(null,{toCwd:v,toDst:c}):Oi.lstat(c,t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),b(t)):b(null,{toCwd:c,toDst:Sn.relative(A,c)})))}}function rT(c,p){let b;if(Sn.isAbsolute(c)){if(b=Oi.existsSync(c),!b)throw new Error("absolute srcpath does not exist");return{toCwd:c,toDst:c}}else{let A=Sn.dirname(p),v=Sn.join(A,c);if(b=Oi.existsSync(v),b)return{toCwd:v,toDst:c};if(b=Oi.existsSync(c),!b)throw new Error("relative srcpath does not exist");return{toCwd:c,toDst:Sn.relative(A,c)}}}Yf.exports={symlinkPaths:tT,symlinkPathsSync:rT}});var qf=Re((GC,Jf)=>{"use strict";var zf=Ar();function nT(c,p,b){if(b=typeof p=="function"?p:b,p=typeof p=="function"?!1:p,p)return b(null,p);zf.lstat(c,(A,v)=>{if(A)return b(null,"file");p=v&&v.isDirectory()?"dir":"file",b(null,p)})}function iT(c,p){let b;if(p)return p;try{b=zf.lstatSync(c)}catch{return"file"}return b&&b.isDirectory()?"dir":"file"}Jf.exports={symlinkType:nT,symlinkTypeSync:iT}});var sh=Re((KC,ih)=>{"use strict";var sT=xr().fromCallback,Zf=tt("path"),Wr=Fn(),eh=Vr(),aT=eh.mkdirs,oT=eh.mkdirsSync,th=Xf(),lT=th.symlinkPaths,uT=th.symlinkPathsSync,rh=qf(),cT=rh.symlinkType,pT=rh.symlinkTypeSync,dT=gn().pathExists,{areIdentical:nh}=Rn();function fT(c,p,b,A){A=typeof b=="function"?b:A,b=typeof b=="function"?!1:b,Wr.lstat(p,(v,e)=>{!v&&e.isSymbolicLink()?Promise.all([Wr.stat(c),Wr.stat(p)]).then(([l,t])=>{if(nh(l,t))return A(null);Qf(c,p,b,A)}):Qf(c,p,b,A)})}function Qf(c,p,b,A){lT(c,p,(v,e)=>{if(v)return A(v);c=e.toDst,cT(e.toCwd,b,(l,t)=>{if(l)return A(l);let n=Zf.dirname(p);dT(n,(r,i)=>{if(r)return A(r);if(i)return Wr.symlink(c,p,t,A);aT(n,u=>{if(u)return A(u);Wr.symlink(c,p,t,A)})})})})}function hT(c,p,b){let A;try{A=Wr.lstatSync(p)}catch{}if(A&&A.isSymbolicLink()){let t=Wr.statSync(c),n=Wr.statSync(p);if(nh(t,n))return}let v=uT(c,p);c=v.toDst,b=pT(v.toCwd,b);let e=Zf.dirname(p);return Wr.existsSync(e)||oT(e),Wr.symlinkSync(c,p,b)}ih.exports={createSymlink:sT(fT),createSymlinkSync:hT}});var fh=Re((HC,dh)=>{"use strict";var{createFile:ah,createFileSync:oh}=Uf(),{createLink:lh,createLinkSync:uh}=Hf(),{createSymlink:ch,createSymlinkSync:ph}=sh();dh.exports={createFile:ah,createFileSync:oh,ensureFile:ah,ensureFileSync:oh,createLink:lh,createLinkSync:uh,ensureLink:lh,ensureLinkSync:uh,createSymlink:ch,createSymlinkSync:ph,ensureSymlink:ch,ensureSymlinkSync:ph}});var Is=Re((YC,hh)=>{function mT(c,{EOL:p=`
|
|
2246
|
+
`,finalEOL:b=!0,replacer:A=null,spaces:v}={}){let e=b?p:"";return JSON.stringify(c,A,v).replace(/\n/g,p)+e}function yT(c){return Buffer.isBuffer(c)&&(c=c.toString("utf8")),c.replace(/^\uFEFF/,"")}hh.exports={stringify:mT,stripBom:yT}});var gh=Re((XC,bh)=>{var ai;try{ai=Ar()}catch{ai=tt("fs")}var Ns=xr(),{stringify:mh,stripBom:yh}=Is();async function bT(c,p={}){typeof p=="string"&&(p={encoding:p});let b=p.fs||ai,A="throws"in p?p.throws:!0,v=await Ns.fromCallback(b.readFile)(c,p);v=yh(v);let e;try{e=JSON.parse(v,p?p.reviver:null)}catch(l){if(A)throw l.message=`${c}: ${l.message}`,l;return null}return e}var gT=Ns.fromPromise(bT);function ET(c,p={}){typeof p=="string"&&(p={encoding:p});let b=p.fs||ai,A="throws"in p?p.throws:!0;try{let v=b.readFileSync(c,p);return v=yh(v),JSON.parse(v,p.reviver)}catch(v){if(A)throw v.message=`${c}: ${v.message}`,v;return null}}async function vT(c,p,b={}){let A=b.fs||ai,v=mh(p,b);await Ns.fromCallback(A.writeFile)(c,v,b)}var ST=Ns.fromPromise(vT);function TT(c,p,b={}){let A=b.fs||ai,v=mh(p,b);return A.writeFileSync(c,v,b)}var PT={readFile:gT,readFileSync:ET,writeFile:ST,writeFileSync:TT};bh.exports=PT});var vh=Re((zC,Eh)=>{"use strict";var js=gh();Eh.exports={readJson:js.readFile,readJsonSync:js.readFileSync,writeJson:js.writeFile,writeJsonSync:js.writeFileSync}});var Fs=Re((JC,Ph)=>{"use strict";var AT=xr().fromCallback,Ii=Ar(),Sh=tt("path"),Th=Vr(),_T=gn().pathExists;function CT(c,p,b,A){typeof b=="function"&&(A=b,b="utf8");let v=Sh.dirname(c);_T(v,(e,l)=>{if(e)return A(e);if(l)return Ii.writeFile(c,p,b,A);Th.mkdirs(v,t=>{if(t)return A(t);Ii.writeFile(c,p,b,A)})})}function wT(c,...p){let b=Sh.dirname(c);if(Ii.existsSync(b))return Ii.writeFileSync(c,...p);Th.mkdirsSync(b),Ii.writeFileSync(c,...p)}Ph.exports={outputFile:AT(CT),outputFileSync:wT}});var _h=Re((qC,Ah)=>{"use strict";var{stringify:DT}=Is(),{outputFile:xT}=Fs();async function OT(c,p,b={}){let A=DT(p,b);await xT(c,A,b)}Ah.exports=OT});var wh=Re((QC,Ch)=>{"use strict";var{stringify:IT}=Is(),{outputFileSync:NT}=Fs();function jT(c,p,b){let A=IT(p,b);NT(c,A,b)}Ch.exports=jT});var xh=Re((ZC,Dh)=>{"use strict";var FT=xr().fromPromise,_r=vh();_r.outputJson=FT(_h());_r.outputJsonSync=wh();_r.outputJSON=_r.outputJson;_r.outputJSONSync=_r.outputJsonSync;_r.writeJSON=_r.writeJson;_r.writeJSONSync=_r.writeJsonSync;_r.readJSON=_r.readJson;_r.readJSONSync=_r.readJsonSync;Dh.exports=_r});var Fh=Re((ew,jh)=>{"use strict";var RT=Ar(),fl=tt("path"),kT=ws().copy,Nh=xi().remove,LT=Vr().mkdirp,MT=gn().pathExists,Oh=Rn();function BT(c,p,b,A){typeof b=="function"&&(A=b,b={}),b=b||{};let v=b.overwrite||b.clobber||!1;Oh.checkPaths(c,p,"move",b,(e,l)=>{if(e)return A(e);let{srcStat:t,isChangingCase:n=!1}=l;Oh.checkParentPaths(c,t,p,"move",r=>{if(r)return A(r);if($T(p))return Ih(c,p,v,n,A);LT(fl.dirname(p),i=>i?A(i):Ih(c,p,v,n,A))})})}function $T(c){let p=fl.dirname(c);return fl.parse(p).root===p}function Ih(c,p,b,A,v){if(A)return dl(c,p,b,v);if(b)return Nh(p,e=>e?v(e):dl(c,p,b,v));MT(p,(e,l)=>e?v(e):l?v(new Error("dest already exists.")):dl(c,p,b,v))}function dl(c,p,b,A){RT.rename(c,p,v=>v?v.code!=="EXDEV"?A(v):UT(c,p,b,A):A())}function UT(c,p,b,A){kT(c,p,{overwrite:b,errorOnExist:!0},e=>e?A(e):Nh(c,A))}jh.exports=BT});var Bh=Re((tw,Mh)=>{"use strict";var kh=Ar(),ml=tt("path"),VT=ws().copySync,Lh=xi().removeSync,WT=Vr().mkdirpSync,Rh=Rn();function GT(c,p,b){b=b||{};let A=b.overwrite||b.clobber||!1,{srcStat:v,isChangingCase:e=!1}=Rh.checkPathsSync(c,p,"move",b);return Rh.checkParentPathsSync(c,v,p,"move"),KT(p)||WT(ml.dirname(p)),HT(c,p,A,e)}function KT(c){let p=ml.dirname(c);return ml.parse(p).root===p}function HT(c,p,b,A){if(A)return hl(c,p,b);if(b)return Lh(p),hl(c,p,b);if(kh.existsSync(p))throw new Error("dest already exists.");return hl(c,p,b)}function hl(c,p,b){try{kh.renameSync(c,p)}catch(A){if(A.code!=="EXDEV")throw A;return YT(c,p,b)}}function YT(c,p,b){return VT(c,p,{overwrite:b,errorOnExist:!0}),Lh(c)}Mh.exports=GT});var Uh=Re((rw,$h)=>{"use strict";var XT=xr().fromCallback;$h.exports={move:XT(Fh()),moveSync:Bh()}});var Wh=Re((nw,Vh)=>{"use strict";Vh.exports={...Fn(),...ws(),...Lf(),...fh(),...xh(),...Vr(),...Uh(),...Fs(),...gn(),...xi()}});var em=Re((Pw,yl)=>{var h1=tt("tty"),m1=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||h1.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env),rr=(c,p,b=c)=>A=>{let v=""+A,e=v.indexOf(p,c.length);return~e?c+Qh(v,p,b,e)+p:c+v+p},Qh=(c,p,b,A)=>{let v=c.substring(0,A)+b,e=c.substring(A+p.length),l=e.indexOf(p);return~l?v+Qh(e,p,b,l):v+e},Zh=(c=m1)=>({isColorSupported:c,reset:c?p=>`\x1B[0m${p}\x1B[0m`:String,bold:c?rr("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:c?rr("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:c?rr("\x1B[3m","\x1B[23m"):String,underline:c?rr("\x1B[4m","\x1B[24m"):String,inverse:c?rr("\x1B[7m","\x1B[27m"):String,hidden:c?rr("\x1B[8m","\x1B[28m"):String,strikethrough:c?rr("\x1B[9m","\x1B[29m"):String,black:c?rr("\x1B[30m","\x1B[39m"):String,red:c?rr("\x1B[31m","\x1B[39m"):String,green:c?rr("\x1B[32m","\x1B[39m"):String,yellow:c?rr("\x1B[33m","\x1B[39m"):String,blue:c?rr("\x1B[34m","\x1B[39m"):String,magenta:c?rr("\x1B[35m","\x1B[39m"):String,cyan:c?rr("\x1B[36m","\x1B[39m"):String,white:c?rr("\x1B[37m","\x1B[39m"):String,gray:c?rr("\x1B[90m","\x1B[39m"):String,bgBlack:c?rr("\x1B[40m","\x1B[49m"):String,bgRed:c?rr("\x1B[41m","\x1B[49m"):String,bgGreen:c?rr("\x1B[42m","\x1B[49m"):String,bgYellow:c?rr("\x1B[43m","\x1B[49m"):String,bgBlue:c?rr("\x1B[44m","\x1B[49m"):String,bgMagenta:c?rr("\x1B[45m","\x1B[49m"):String,bgCyan:c?rr("\x1B[46m","\x1B[49m"):String,bgWhite:c?rr("\x1B[47m","\x1B[49m"):String});yl.exports=Zh();yl.exports.createColors=Zh});import Um from"fs";import{loadConfig as Vm}from"unconfig";function Ys(c){return c!==null&&typeof c=="object"}function Xs(c,p,b=".",A){if(!Ys(p))return Xs(c,{},b,A);let v=Object.assign({},p);for(let e in c){if(e==="__proto__"||e==="constructor")continue;let l=c[e];l!=null&&(A&&A(v,e,l,b)||(Array.isArray(l)&&Array.isArray(v[e])?v[e]=l.concat(v[e]):Ys(l)&&Ys(v[e])?v[e]=Xs(l,v[e],(b?`${b}.`:"")+e.toString(),A):v[e]=l))}return v}function zs(c){return(...p)=>p.reduce((b,A)=>Xs(b,A,"",c),{})}var Vn=zs(),Q1=zs((c,p,b,A)=>{if(typeof c[p]<"u"&&typeof b=="function")return c[p]=b(c[p]),!0}),Z1=zs((c,p,b,A)=>{if(Array.isArray(c[p])&&typeof b=="function")return c[p]=b(c[p]),!0});import{ensureSuffix as Wm}from"@antfu/utils";function sP(c){return c}function aP(c){return c}var Gm={url:"/",lang:"en",title:"Valaxy Blog",description:"A blog generated by Valaxy.",subtitle:"Next Generation Static Blog Framework.",author:{avatar:"https://cdn.jsdelivr.net/gh/YunYouJun/yun/images/meme/yun-good-with-bg.jpg",email:"me@yunyoujun.cn",link:"https://www.yunyoujun.cn",name:"YunYouJun",status:{emoji:"\u{1F60A}",message:"All at sea."}},favicon:"/favicon.svg",feed:{name:"",favicon:"/favicon.svg"},social:[],lastUpdated:!0,license:{enabled:!0,language:"",type:"by-nc-sa"},sponsor:{enable:!0,title:"\u6211\u5F88\u53EF\u7231\uFF0C\u8BF7\u7ED9\u6211\u94B1",methods:[]},search:{enable:!0,algolia:{enable:!1,appId:"",apiKey:"",indexName:""}},comment:{enable:!1,waline:{enable:!1,serverURL:""},twikoo:{enable:!1,envId:"https://twikoo.vercel.app"}},features:{katex:!0},theme:"yun",themeConfig:{pkg:{name:"",version:""}},markdownIt:{toc:{includeLevel:[1,2,3,4],listType:"ol"},katex:{}}};async function Li(c={}){let{config:p,sources:b}=await Vm({sources:[{files:"valaxy.config",extensions:["ts","js","mjs","cjs","json"]}],merge:!1}),A=b[0],v=Vn(p,Gm),e=c.theme||v.theme||"yun";try{let{defaultThemeConfig:l}=await import(`valaxy-theme-${e}`);v.themeConfig=Vn(v.themeConfig,l)}catch{console.error(`valaxy-theme-${e} doesn't have default config`)}try{let l=Um.readFileSync(tt.resolve(`valaxy-theme-${e}/package.json`),"utf-8");v.themeConfig.pkg=JSON.parse(l)}catch{console.error(`valaxy-theme-${e} doesn't have package.json`)}return v.url=Wm("/",v.url),{config:v,configFile:A,theme:e}}var dd=tn(Zs()),fd=tn(wp());import{dirname as Ko,resolve as Ho}from"path";import{uniq as ov}from"@antfu/utils";import{resolveConfig as lv}from"vite";var cd=tn(ad());import{join as ld}from"path";import iv from"is-installed-globally";import ud from"global-dirs";import sv from"consola";import{spawn as nv}from"cross-spawn";function od(c){return new Promise((p,b)=>{let A=nv("git",["log","-1",'--pretty="%ci"',c]),v="";A.stdout.on("data",e=>v+=String(e)),A.on("close",()=>{p(+new Date(v))}),A.on("error",b)})}var pd=/^https?:/i,Go=c=>`JSON.parse(${JSON.stringify(JSON.stringify(c))})`;function mn(c){return c.replace(/\\/g,"/")}function av(c,p){return p.startsWith(c)?p:c+p}function Pr(c){return`/@fs${av("/",mn(c))}`}function Nn(c,p=!1){try{return(0,cd.sync)(c,{preserveSymlinks:!1})}catch{}if(iv){try{return tt.resolve(ld(ud.yarn.packages,c))}catch{}try{return tt.resolve(ld(ud.npm.packages,c))}catch{}}if(p)throw new Error(`Failed to resolve package ${c}`);sv.error(`Failed to resolve package ${c}`)}var uv=(0,dd.default)("valaxy:options");function cv(c){return c.startsWith("/")||/^\.\.?[\/\\]/.test(c)}function pv(c,p){return c?cv(c)?Ho(Ko(p),c):Ko(Nn(`valaxy-theme-${c}/package.json`)||""):""}async function o_(c,p="dev"){let b=Ho(Ko(Nn("valaxy/package.json",!0)),"client"),A=Ho(c.userRoot||process.cwd()),{config:v,configFile:e,theme:l}=await Li(c),t=pv(l,A),n=ov([b,t,A]),r=(await(0,fd.default)(["**.md"],{cwd:A,ignore:["**/node_modules"]})).sort(),i={mode:p,clientRoot:b,userRoot:A,themeRoot:t,roots:n,theme:l,config:v,configFile:e||"",pages:r};return uv(i),i}async function l_(c="serve"){return(await lv({},c)).valaxy||{}}import{existsSync as dv}from"fs";import{join as fv}from"path";import{uniq as hv}from"@antfu/utils";import{loadConfigFromFile as mv,mergeConfig as hd}from"vite";async function md({userRoot:c,themeRoot:p},b,A,v){let e={mode:"development",command:v},l=hv([c,p]).map(n=>fv(n,"vite.config.ts"));for await(let n of l){if(!dv(n))continue;let r=await mv(e,n);!(r!=null&&r.config)||(A=hd(A,r.config))}return hd(b,A)}import{createServer as J1,resolveConfig as q1}from"vite";import{dirname as Y1,join as X1}from"path";import{splitVendorChunkPlugin as z1}from"vite";import um from"fs";import k1 from"consola";import L1 from"markdown-it";import M1 from"gray-matter";import B1 from"@vitejs/plugin-vue";import $1 from"vite-plugin-pages";import U1 from"vite-plugin-vue-layouts";import V1 from"unplugin-vue-components/vite";import W1 from"@intlify/vite-plugin-vue-i18n";import G1 from"vite-plugin-inspect";import{dim as K1,yellow as H1}from"kolorist";import Nv from"markdown-it";import wd from"markdown-it-anchor";import jv from"markdown-it-emoji";import Fv from"markdown-it-link-attributes";import Rv from"markdown-it-table-of-contents";import kv from"markdown-it-task-lists";import Lv from"markdown-it-attrs";import yd from"katex";function bd(c,p){let b=c.posMax,A=!0,v=!0,e=p>0?c.src.charCodeAt(p-1):-1,l=p+1<=b?c.src.charCodeAt(p+1):-1;return(e===32||e===9||l>=48&&l<=57)&&(v=!1),(l===32||l===9)&&(A=!1),{can_open:A,can_close:v}}function yv(c,p){let b,A,v,e;if(c.src[c.pos]!=="$")return!1;if(v=bd(c,c.pos),!v.can_open)return p||(c.pending+="$"),c.pos+=1,!0;let l=c.pos+1;for(b=l;(b=c.src.indexOf("$",b))!==-1;){for(e=b-1;c.src[e]==="\\";)e-=1;if((b-e)%2===1)break;b+=1}return b===-1?(p||(c.pending+="$"),c.pos=l,!0):b-l===0?(p||(c.pending+="$$"),c.pos=l+1,!0):(v=bd(c,b),v.can_close?(p||(A=c.push("math_inline","math",0),A.markup="$",A.content=c.src.slice(l,b)),c.pos=b+1,!0):(p||(c.pending+="$"),c.pos=l,!0))}function bv(c,p,b,A){let v,e,l,t,n=!1,r=c.bMarks[p]+c.tShift[p],i=c.eMarks[p];if(r+2>i||c.src.slice(r,r+2)!=="$$")return!1;if(r+=2,v=c.src.slice(r,i),A)return!0;for(v.trim().slice(-2)==="$$"&&(v=v.trim().slice(0,-2),n=!0),l=p;!n&&(l++,!(l>=b||(r=c.bMarks[l]+c.tShift[l],i=c.eMarks[l],r<i&&c.tShift[l]<c.blkIndent)));)c.src.slice(r,i).trim().slice(-2)==="$$"&&(t=c.src.slice(0,i).lastIndexOf("$$"),e=c.src.slice(r,t),n=!0);c.line=l+1;let u=c.push("math_block","math",0);return u.block=!0,u.content=(v&&v.trim()?`${v}
|
|
2247
|
+
`:"")+c.getLines(p+1,l,c.tShift[p],!0)+(e&&e.trim()?e:""),u.map=[p,c.line],u.markup="$$",!0}function Yo(c,p){p=p||{};let b=function(l){p.displayMode=!1;try{return yd.renderToString(l,p)}catch(t){return p.throwOnError&&console.warn(t),l}},A=function(l,t){return b(l[t].content)},v=function(l){p.displayMode=!0;try{return`<p>${yd.renderToString(l,p)}</p>`}catch(t){return p.throwOnError&&console.warn(t),l}},e=function(l,t){return`${v(l[t].content)}
|
|
2248
|
+
`};c.inline.ruler.after("escape","math_inline",yv),c.block.ruler.after("blockquote","math_block",bv,{alt:["paragraph","reference","blockquote","list"]}),c.renderer.rules.math_inline=A,c.renderer.rules.math_block=e}import Xo from"markdown-it-container";function gv(c,p,{icon:b,color:A}={}){return[Xo,c,{render(v,e){let l=v[e],t=l.info.trim().slice(c.length).trim();if(l.nesting===1){if(c==="details")return`<details class="${c} custom-block">${`<summary>${t}</summary>`}
|
|
2249
2249
|
`;let n="";return b&&(n=`<i class="icon ${b}" ${A?`style="color: ${A}"`:""}></i>`),`<div class="${c} custom-block"><p class="custom-block-title">${n}${t||p}</p>
|
|
2250
2250
|
`}else return c==="details"?`</details>
|
|
2251
2251
|
`:`</div>
|
|
2252
|
-
`}}]}var
|
|
2252
|
+
`}}]}var gd={tip:{text:"TIP"},warning:{text:"WARNING"},danger:{text:"WARNING"},info:{text:"INFO"},details:{text:"Details"}},Ed=(c,p={})=>{Object.keys(gd).forEach(A=>{let v={...gd[A],...p[A]||{}};c.use(...gv(A,v.text,v))}),c.use(Xo,"v-pre",{render:(A,v)=>A[v].nesting===1?`<div v-pre>
|
|
2253
2253
|
`:`</div>
|
|
2254
2254
|
`}),["zh-CN","en"].forEach(A=>{c.use(Xo,A,{render:(v,e)=>v[e].nesting===1?`<div lang="${A}">
|
|
2255
2255
|
`:`</div>
|
|
2256
|
-
`})})};var
|
|
2257
|
-
`).map((y,m)=>{let S=m+1;return r.some(([h,f])=>h&&f?S>=h&&S<=f:S===h)?'<div class="highlighted"> </div>':"<br>"}).join("")}</div>`+i}},
|
|
2256
|
+
`})})};var Sd=tn(vd()),vv=/[\u0000-\u001F]/g,Sv=/[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'<>,.…?/]+/g,Si=c=>(0,Sd.remove)(c).replace(vv,"").replace(Sv,"-").replace(/\-{2,}/g,"-").replace(/^\-+|\-+$/g,"").replace(/^(\d)/,"_$1").toLowerCase();import Tv from"markdown-it-emoji/lib/data/full.json";var Pv=c=>c.replace(/:(.+?):/g,(p,b)=>Tv[b]||p),Av=c=>c.replace(/"/g,'"').replace(/'/g,"'").replace(/:/g,":").replace(/</g,"<").replace(/>/g,">"),_v=c=>c.replace(/(\[(.[^\]]+)\]\((.[^)]+)\))/g,"$2").replace(/(`|\*{1,3}|_)(.*?[^\\])\1/g,"$2").replace(/(\\)(\*|_|`|\!|<|\$)/g,"$2"),Cv=c=>c.replace(/\{#([a-z0-9\-_]+?)\}\s*$/,""),wv=c=>c.trim(),Dv=c=>String(c).replace(/(^|[^><`\\])<.*>([^><`]|$)/g,"$1$2"),Td=(...c)=>c.length===0?p=>p:c.length===1?c[0]:c.reduce((p,b)=>A=>b(p(A))),qo=Td(Av,Pv,Cv,_v,wv),Ti=Td(Dv,qo);var Pd=(c,p=[1,2,3,4])=>{c.renderer.rules.heading_open=(b,A,v,e,l)=>{let t=b[A];if(p.map(r=>`h${r}`).includes(t.tag)){let r=b[A+1].content,i=t.attrs.find(([h])=>h==="id"),u=i&&i[1],a=c.__data,d=a.headers||(a.headers=[]),y=r.indexOf("{"),m=y===-1?r:r.slice(0,y).trim(),S=r.match(/\{lang=\"(.*)\"\}/),E=S?S[1]:"";d.push({level:parseInt(t.tag.slice(1),10),title:Ti(m),slug:u||Si(m),lang:E})}return l.renderToken(b,A,v)}};import{getHighlighter as xv}from"shiki";import Ov from"consola";async function Ad(c="material-palenight"){let p=typeof c=="string"?[c]:[c.dark,c.light],b=await xv({themes:p}),A=/^<pre.*?>/;return(v,e)=>{if(e=e||"text",e==="yml"&&(e="yaml",Ov.warn("[shiki] It is recommended to use `.yaml` instead of `.yml`.")),typeof c=="string")return b.codeToHtml(v,{lang:e,theme:c}).replace(A,"<pre v-pre>");let l=b.codeToHtml(v,{lang:e,theme:c.dark}).replace(A,'<pre v-pre class="vp-code-dark">'),t=b.codeToHtml(v,{lang:e,theme:c.light}).replace(A,'<pre v-pre class="vp-code-light">');return l+t}}var Iv=/^<pre .*?><code>/,_d=c=>{let p=c.renderer.rules.fence;c.renderer.rules.fence=(...b)=>{let[A,v,e]=b,l=A[v],t=l.attrs&&l.attrs[0];if(!t)return p(...b);let n=t[0];if(!n||!/[\d,-]+/.test(n))return p(...b);let r=n.split(",").map(y=>y.split("-").map(m=>parseInt(m,10))),i=e.highlight?e.highlight(l.content,l.info,""):l.content;return`<div class="highlight-lines">${i.replace(Iv,"").split(`
|
|
2257
|
+
`).map((y,m)=>{let S=m+1;return r.some(([h,f])=>h&&f?S>=h&&S<=f:S===h)?'<div class="highlighted"> </div>':"<br>"}).join("")}</div>`+i}},Cd=c=>{let p=c.renderer.rules.fence;c.renderer.rules.fence=(...b)=>{let[A,v]=b,e=A[v],l=p(...b);return`<div class="language-${e.info.trim()}"><span class="copy"></span>${l}</div>`}};async function Qo(c,p={},b=!1){var v;c.use(_d).use(Cd).use(Ed,p.blocks).use(Lv),b||c.use(Pd,(v=p==null?void 0:p.toc)==null?void 0:v.includeLevel),c.use(Fv,{matcher:e=>/^https?:\/\//.test(e),attrs:{target:"_blank",rel:"noopener"}}),c.use(Yo,p.katex),b||c.use(wd,{slugify:Si,permalink:wd.permalink.ariaHidden({})}).use(Rv,{slugify:Si,includeLevel:[2,3,4],format:qo,...p.toc}),c.use(jv).use(kv);let A=c.render;return c.render=(...e)=>(c.__data={},A.call(c,...e)),c}var Dd=async(c,p={},b="/")=>{let A=Nv({html:!0,linkify:!0,highlight:await Ad(p.theme),...p});return await Qo(A,p),A};var Xh=tn(Zo());import{resolve as qT}from"path";import{existsSync as QT}from"fs";import ZT from"unocss/vite";import{presetAttributify as e1,presetIcons as t1,presetTypography as r1,presetUno as n1,transformerDirectives as i1,transformerVariantGroup as s1}from"unocss";var Gh=tn(Wh()),Kh=tn(Zo());import{resolve as zT}from"path";import{isObject as JT}from"@antfu/utils";function Hh(c,p,b=""){return c={...c},Object.keys(p).forEach(A=>{JT(c[A])?c[A]=Hh(c[A],p[A],b?`${b}.${A}`:A):Array.isArray(c[A])?c[A]=[...c[A],...p[A]]:c[A]=p[A]}),c}async function Yh(c,p,b,A,v=!0){let e=A;for(let l of c){let t=zT(l,"setup",p);if((0,Gh.existsSync)(t)){let{default:n}=(0,Kh.default)(__filename)(t),r=await n(b);r!==null&&(e=v?Hh(e,r):r)}}return e}var a1=async c=>{let{generateSafelist:p}=await import(`valaxy-theme-${c.theme}`),b=["i-ri-clipboard-line","i-ri-archive-line","i-ri-folder-2-line","i-ri-price-tag-3-line","i-ri-cloud-line"],A=[];typeof p=="function"&&(A=p(c.themeConfig));let v="animate-fade-in m-auto text-left".split(" ").concat(["rotate-y-180"]).concat(b).concat(A);return c.social.length&&c.social.forEach(e=>v.push(e.icon)),c.sponsor.methods.length&&c.sponsor.methods.forEach(e=>v.push(e.icon)),v},o1=async c=>({shortcuts:[["btn","px-4 py-1 rounded inline-block bg-sky-600 text-white cursor-pointer hover:bg-sky-700 disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50"],["icon-btn","inline-block cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:opacity-100 hover:text-sky-600"],["va-card","shadow hover:shadow-lg"]],presets:[n1(),e1(),t1({scale:1.2}),r1()],rules:[["yun-transition",{"transition-duration":"var(--va-transition-duration)"}],["yun-text-light",{color:"var(--va-c-text-light)"}],["font-serif",{"font-family":"var(--va-font-serif)"}],["font-sans",{"font-family":"var(--va-font-sans)"}],["font-mono",{"font-family":"var(--va-font-mono)"}]],transformers:[i1(),s1()],safelist:await a1(c.config)}),zh=async(c,{unocss:p})=>{let b=await o1(c),{themeRoot:A,clientRoot:v,roots:e}=c,l=["uno.config.ts","unocss.config.ts"],t=[];[A,v].forEach(i=>l.forEach(u=>t.push(qT(i,u))));let r={};return t.forEach(i=>{if(QT(i)){let u=(0,Xh.default)(__filename)(i);"default"in u&&(u=u.default),r=Vn(r,u)}}),r=await Yh(e,"unocss.ts",{},r,!0),ZT({configFile:!1,...Vn(p||{},r,b)})};import{resolve as Rs}from"path";import{mergeConfig as l1}from"vite";function Jh(c){return{name:"valaxy:config",enforce:"pre",config(p){let b={resolve:{alias:{"@/":`${Pr(c.userRoot)}/`,"~/":`${Pr(c.clientRoot)}/`,"valaxy/client":`${Pr(c.clientRoot)}/`,"valaxy/package.json":Pr(Rs(c.clientRoot,"../package.json")),valaxy:Pr(Rs(c.clientRoot,"index.ts")),"@valaxyjs/client":`${Pr(c.clientRoot)}/`,[`valaxy-theme-${c.theme}/`]:`${Pr(Rs(c.themeRoot))}/`}},optimizeDeps:{entries:[Rs(c.clientRoot,"main.ts"),c.configFile],include:["vue","vue-router","@vueuse/core","@vueuse/head","dayjs","nprogress"],exclude:["@docsearch/js"]}};return l1(p,b)}}}import{existsSync as u1}from"fs";import{join as c1,resolve as p1}from"path";import{slash as d1,uniq as f1}from"@antfu/utils";function qh({clientRoot:c,themeRoot:p,userRoot:b}){let A=d1(p1(c,"setup"));return{name:"valaxy:setup",enforce:"pre",async transform(v,e){if(e.startsWith(A)){let l=e.slice(A.length+1),t=[],n=[];return f1([p,b]).map(i=>c1(i,"setup",l)).forEach((i,u)=>{if(!u1(i))return;t.push(`import __n${u} from '${Pr(i)}'`);let a=`__n${u}`;/\binjection_return\b/g.test(v)&&(a=`injection_return = ${a}`),/\binjection_arg\b/g.test(v)?a+="(injection_arg)":a+="()",n.push(`// ${i}`,a)}),v=v.replace("/* __imports__ */",t.join(`
|
|
2258
2258
|
`)),v=v.replace("/* __injections__ */",n.join(`
|
|
2259
|
-
`)),v}return null}}}import
|
|
2260
|
-
(!) Found dead link ${
|
|
2259
|
+
`)),v}return null}}}import bl from"fs";import{join as ks,relative as N1}from"path";import{normalizePath as j1}from"vite";var Ni=tn(em()),sm=tn(Zs());import tm from"fs";import Tn from"path";import y1 from"gray-matter";import b1 from"lru-cache";var rm=(0,sm.default)("vitepress:md"),nm=new b1({max:1024}),g1=/<!--\s*@include:\s*(.*?)\s*-->/g,E1=(c,p)=>{if(c.title)return Ti(c.title);let b=p.match(/^\s*#+\s+(.*)/m);return b?Ti(b[1].trim()):""},v1=(c,p)=>{if(!c||!c.length)return;let b=c.find(([A,v={}])=>A==="meta"&&v.name===p&&v.content);return b&&b[1].content},S1=c=>{let{description:p,head:b}=c;return p!==void 0?p:b&&v1(b,"description")||""};async function am(c,p={},b,A,v=!1,e="/",l=!1){let t=await Dd(c,p,e);b=b.map(r=>mn(r.replace(/\.md$/,"")));let n=A?new RegExp(`\\b(${Object.keys(A).map(r=>r.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")).join("|")})`,"g"):null;return async(r,i,u)=>{let a=mn(Tn.relative(c,i)),d=Tn.dirname(i),y=nm.get(r);if(y)return rm(`[cache hit] ${a}`),y;let m=Date.now(),S=[];r=r.replace(g1,(N,$)=>{let G=Tn.join(d,$),k=tm.readFileSync(G,"utf-8");return S.push(mn(G)),k});let{content:E,data:h}=y1(r);t.__path=i,t.__relativePath=a;let f=t.render(E),w=t.__data;v&&(f=f.replace(/\bimport\.meta/g,"import.<wbr/>meta").replace(/\bprocess\.env/g,"process.<wbr/>env"),n&&(f=f.replace(n,N=>`${N[0]}<wbr/>${N.slice(1)}`)));let _=[],I=N=>{console.warn(Ni.default.yellow(`
|
|
2260
|
+
(!) Found dead link ${Ni.default.cyan(N)} in file ${Ni.default.white(Ni.default.dim(i))}`)),_.push(N)};if(w.links){let N=Tn.dirname(i);for(let $ of w.links){if(/\.(?!html|md)\w+($|\?)/i.test($))continue;if($.replace(pd,"").startsWith("//localhost:")){I($);continue}$=$.replace(/[?#].*$/,"").replace(/\.(html|md)$/,""),$.endsWith("/")&&($+="index");let G=decodeURIComponent(mn($.startsWith("/")?$.slice(1):Tn.relative(c,Tn.resolve(N,$))));!b.includes(G)&&!tm.existsSync(Tn.resolve(N,u,`${G}.html`))&&I($)}}let P={title:E1(h,E),titleTemplate:h.titleTemplate,description:S1(h),frontmatter:h,headers:w.headers||[],relativePath:a,path:Tn.join(c,a)};l&&(P.lastUpdated=await od(i));let R="ValaxyMain";function C(){return["main-header","main-header-after","main-nav","main-content","main-content-after","main-nav-before","main-nav-after","comment","footer","aside","aside-custom"].map(G=>`<template #${G}><slot name="${G}" /></template>`).join("")}let j=`${w1(w.hoistedTags||[],P).join(`
|
|
2261
2261
|
`)}
|
|
2262
2262
|
<template><${R} :frontmatter="frontmatter" :data="data">
|
|
2263
2263
|
<template #main-content-md>${f}</template>
|
|
2264
2264
|
${C()}
|
|
2265
2265
|
<slot />
|
|
2266
|
-
</${R}></template>`;
|
|
2266
|
+
</${R}></template>`;rm(`[render] ${i} in ${Date.now()-m}ms.`);let T={vueSrc:j,pageData:P,deadLinks:_,includes:S};return nm.set(r,T),T}}var im=/<\/script>/,T1=/<\s*script[^>]*\blang=['"]ts['"][^>]*/,P1=/<\s*script[^>]*\bsetup\b[^>]*/,A1=/<\s*script[^>]*\bclient\b[^>]*/,_1=/((?:^|\n|;)\s*)export(\s*)default/,C1=/((?:^|\n|;)\s*)export(.+)as(\s*)default/;function w1(c,p){let b="",A=c.findIndex(l=>im.test(l)&&!P1.test(l)&&!A1.test(l)),v=c.findIndex(l=>T1.test(l))>-1,e=`
|
|
2267
2267
|
export default {
|
|
2268
2268
|
name:'${p.relativePath}',
|
|
2269
2269
|
data() {
|
|
@@ -2272,12 +2272,12 @@ GFS4: `),console.error(c)});nr[yr]||(Vd=global[yr]||[],Gd(nr,Vd),nr.close=functi
|
|
|
2272
2272
|
data: ${Go(p)}
|
|
2273
2273
|
}
|
|
2274
2274
|
}
|
|
2275
|
-
}`;if(A>-1){let l=c[A],t=
|
|
2275
|
+
}`;if(A>-1){let l=c[A],t=_1.test(l)||C1.test(l);c[A]=l.replace(im,`${b+(t?"":`
|
|
2276
2276
|
${e}`)}<\/script>`)}else c.unshift(`<script ${v?'lang="ts"':""}>${b}
|
|
2277
|
-
${e}<\/script>`);return c}import{cyan as
|
|
2278
|
-
`} Please ${
|
|
2279
|
-
`)}function
|
|
2280
|
-
`)}function
|
|
2277
|
+
${e}<\/script>`);return c}import{cyan as D1,red as x1,yellow as O1}from"kolorist";import I1 from"consola";function om(c,p){c.includes("{%")&&c.includes("%}")&&I1.error(`${`${p}
|
|
2278
|
+
`} Please ${x1("remove")} ${D1("{% %}")}, because it conflicts with ${O1("markdown-it-attrs")}.`)}function F1(c,p){let b=[];p.config.features.katex&&(b.push(`import "${Pr(Nn("katex/dist/katex.min.css",!0))}"`),b.push(`import "${Pr(ks(p.clientRoot,"styles/third/katex.scss"))}"`));for(let A of c){let v=[];["index","css-vars"].forEach(l=>{v.push(ks(A,"styles",`${l}.css`)),v.push(ks(A,"styles",`${l}.scss`))});for(let l of v)bl.existsSync(l)&&b.push(`import "${Pr(l)}"`)}return b.join(`
|
|
2279
|
+
`)}function R1(c){let p=['const messages = { "zh-CN": {}, en: {} }'],b=["zh-CN","en"];return c.forEach((A,v)=>{b.forEach(e=>{let l=`${A}/locales/${e}.yml`;if(bl.existsSync(l)&&bl.readFileSync(l,"utf-8")){let t=e.replace("-","")+v;p.push(`import ${t} from "${Pr(l)}"`),p.push(`Object.assign(messages['${e}'], ${t})`)}})}),p.push("export default messages"),p.join(`
|
|
2280
|
+
`)}function lm(c,p={}){let b="/@valaxy",A=c.config,v=[c.clientRoot,c.themeRoot,c.userRoot],e,l=!1,t;return{name:"valaxy",enforce:"pre",async configResolved(n){t=n,e=await am(c.userRoot,c.config.markdownIt,c.pages,t.define,t.command==="build",t.base,c.config.lastUpdated)},configureServer(n){n.watcher.add([c.configFile,c.userRoot,c.themeRoot])},resolveId(n){return n.startsWith(b)?n:null},load(n){if(n==="/@valaxyjs/config")return`export default ${JSON.stringify(JSON.stringify(A))}`;if(n==="/@valaxyjs/context")return`export default ${JSON.stringify(JSON.stringify({userRoot:c.userRoot}))}`;if(n==="/@valaxyjs/styles")return F1(v,c);if(n==="/@valaxyjs/locales")return R1(v);if(n.startsWith(b))return{code:"",map:{mappings:""}}},async transform(n,r){if(r.endsWith(".md")){om(n,r),n.replace("{%","{%"),n.replace("%}","%}");let{vueSrc:i,deadLinks:u,includes:a}=await e(n,r,t.publicDir);return u.length&&(l=!0),a.length&&a.forEach(d=>{this.addWatchFile(d)}),i}},renderStart(){if(l)throw new Error("One or more pages contain dead links.")},async handleHotUpdate(n){var m;let{file:r,server:i,read:u}=n;if(r!==j1(c.configFile))return;if(r.endsWith(".md")){let S=await u(),{pageData:E,vueSrc:h}=await e(S,r,ks(c.userRoot,"public")),w={path:`/${mn(N1(`${c.userRoot}/pages`,r))}`,pageData:E};i.ws.send({type:"custom",event:"valaxy:pageData",data:w}),n.read=()=>h}let{config:a}=await Li();(m=p.onConfigReload)==null||m.call(p,a,c.config),Object.assign(c.config,a),A=a;let d=["/@valaxyjs/config","/@valaxyjs/context"];return[...Array.from(d).map(S=>i.moduleGraph.getModuleById(S))].filter(S=>!!S)}}}async function cm(c,p={},b={}){let{vue:A={},components:v={}}=p,{clientRoot:e,themeRoot:l,userRoot:t}=c,n=await zh(c,p),r=lm(c,b),i=new L1({html:!0});await Qo(i,c.config.markdownIt,!0);let u=[e,l,t],{default:a}=await import(`valaxy-theme-${c.theme}`),d=new Set(["annotation","math","menclose","mfrac","mglyph","mi","mlabeledtr","mn","mo","mover","mpadded","mphantom","mroot","mrow","mspace","msqrt","mstyle","msub","msubsup","msup","mtable","mtd","mtext","mtr","munder","munderover","semantics","meting-js"]);return[B1({include:[/\.vue$/,/\.md$/],template:{compilerOptions:{isCustomElement:y=>d.has(y)},...A==null?void 0:A.template},...A}),Jh(c),qh(c),r,a(c.config.themeConfig),$1({extensions:["vue","md"],dirs:u.map(y=>`${y}/pages`),extendRoute(y){let m=y.component;y.meta||(y.meta={}),y.path==="/"&&(y.meta.layout="home"),u.forEach(f=>{let w=f+y.component;um.existsSync(w)&&(m=w)});let S=um.readFileSync(m,"utf-8"),{data:E,excerpt:h}=M1(S,{excerpt_separator:"<!-- more -->"});return y.path.startsWith("/posts/")&&(y.meta.layout="post",E.date||k1.warn(`You forgot to write ${H1("date")} for post: ${K1(`${y.component}`)}`)),y.meta=Object.assign(y.meta,{frontmatter:Object.assign({date:new Date},E),excerpt:h?i.render(h):""}),y.meta.frontmatter.updated&&(y.meta.frontmatter.updated=y.meta.frontmatter.date),E.layout&&(y.meta.layout=E.layout),y}}),U1({layoutsDirs:u.map(y=>`${y}/layouts`)}),V1({extensions:["vue","md"],include:[/\.vue$/,/\.vue\?vue/,/\.md$/],exclude:[],allowOverrides:!0,dirs:u.map(y=>`${y}/components`).concat(u.map(y=>`${y}/layouts`)).concat(["src/components","components"]),dts:`${c.userRoot}/components.d.ts`,...v}),n,W1({runtimeOnly:!0,compositionOnly:!0,include:u.map(y=>`${y}/locales/**`)}),c.mode==="dev"&&G1()]}async function pm(c,p,b={}){return{define:{__DEV__:c.mode==="dev"?"true":"false",__ALGOLIA__:!!c.config.search.algolia.enable},root:c.clientRoot,publicDir:X1(c.userRoot,"public"),plugins:[await cm(c,p,b),z1()],server:{fs:{allow:[c.clientRoot,c.themeRoot,c.userRoot,Y1(Nn("katex/package.json",!0))]}}}}async function hD(c,p={},b={}){let v=(await q1({},"serve")).valaxy||{};return process.env.EDITOR=process.env.EDITOR||"code",await J1(await md(c,p,await pm(c,v,b),"serve"))}export{sP as a,aP as b,Li as c,wp as d,cv as e,pv as f,o_ as g,l_ as h,md as i,Wh as j,a1 as k,pm as l,hD as m};
|
|
2281
2281
|
/*!
|
|
2282
2282
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
2283
2283
|
*
|