@verirun/cli 0.2.3 → 0.2.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/dist/graph.mjs CHANGED
@@ -1,58 +1,58 @@
1
1
  import{createRequire as __cr}from'node:module';const require=__cr(import.meta.url);
2
- var rg=Object.create;var zp=Object.defineProperty;var ig=Object.getOwnPropertyDescriptor;var sg=Object.getOwnPropertyNames;var ng=Object.getPrototypeOf,ag=Object.prototype.hasOwnProperty;var sn=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var N=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var og=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of sg(t))!ag.call(e,s)&&s!==r&&zp(e,s,{get:()=>t[s],enumerable:!(i=ig(t,s))||i.enumerable});return e};var rr=(e,t,r)=>(r=e!=null?rg(ng(e)):{},og(t||!e||!e.__esModule?zp(r,"default",{value:e,enumerable:!0}):r,e));var Wa=N(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.Var=Ce.User=Ce.Statement=Ce.SpreadProperty=Ce.Scope=Ce.RestProperty=Ce.ReferencedMemberExpression=Ce.ReferencedIdentifier=Ce.Referenced=Ce.Pure=Ce.NumericLiteralTypeAnnotation=Ce.Generated=Ce.ForAwaitStatement=Ce.Flow=Ce.Expression=Ce.ExistentialTypeParam=Ce.BlockScoped=Ce.BindingIdentifier=void 0;var yY=Ce.ReferencedIdentifier=["Identifier","JSXIdentifier"],TY=Ce.ReferencedMemberExpression=["MemberExpression"],SY=Ce.BindingIdentifier=["Identifier"],gY=Ce.Statement=["Statement"],xY=Ce.Expression=["Expression"],bY=Ce.Scope=["Scopable","Pattern"],EY=Ce.Referenced=null,PY=Ce.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],AY=Ce.Var=["VariableDeclaration"],vY=Ce.User=null,CY=Ce.Generated=null,IY=Ce.Pure=null,wY=Ce.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],NY=Ce.RestProperty=["RestElement"],OY=Ce.SpreadProperty=["RestElement"],_Y=Ce.ExistentialTypeParam=["ExistsTypeAnnotation"],kY=Ce.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],DY=Ce.ForAwaitStatement=["ForOfStatement"]});var Qp=N((MY,Gp)=>{var wi=1e3,Ni=wi*60,Oi=Ni*60,ii=Oi*24,lg=ii*7,ug=ii*365.25;Gp.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return cg(e);if(r==="number"&&isFinite(e))return t.long?fg(e):pg(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function cg(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),i=(t[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*ug;case"weeks":case"week":case"w":return r*lg;case"days":case"day":case"d":return r*ii;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Oi;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ni;case"seconds":case"second":case"secs":case"sec":case"s":return r*wi;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function pg(e){var t=Math.abs(e);return t>=ii?Math.round(e/ii)+"d":t>=Oi?Math.round(e/Oi)+"h":t>=Ni?Math.round(e/Ni)+"m":t>=wi?Math.round(e/wi)+"s":e+"ms"}function fg(e){var t=Math.abs(e);return t>=ii?nn(e,t,ii,"day"):t>=Oi?nn(e,t,Oi,"hour"):t>=Ni?nn(e,t,Ni,"minute"):t>=wi?nn(e,t,wi,"second"):e+" ms"}function nn(e,t,r,i){var s=t>=r*1.5;return Math.round(e/r)+" "+i+(s?"s":"")}});var Ha=N((FY,Zp)=>{function dg(e){r.debug=r,r.default=r,r.coerce=l,r.disable=a,r.enable=s,r.enabled=o,r.humanize=Qp(),r.destroy=u,Object.keys(e).forEach(f=>{r[f]=e[f]}),r.names=[],r.skips=[],r.formatters={};function t(f){let h=0;for(let g=0;g<f.length;g++)h=(h<<5)-h+f.charCodeAt(g),h|=0;return r.colors[Math.abs(h)%r.colors.length]}r.selectColor=t;function r(f){let h,g=null,b,E;function w(...A){if(!w.enabled)return;let I=w,k=Number(new Date),Y=k-(h||k);I.diff=Y,I.prev=h,I.curr=k,h=k,A[0]=r.coerce(A[0]),typeof A[0]!="string"&&A.unshift("%O");let B=0;A[0]=A[0].replace(/%([a-zA-Z%])/g,(ae,xe)=>{if(ae==="%%")return"%";B++;let ke=r.formatters[xe];if(typeof ke=="function"){let G=A[B];ae=ke.call(I,G),A.splice(B,1),B--}return ae}),r.formatArgs.call(I,A),(I.log||r.log).apply(I,A)}return w.namespace=f,w.useColors=r.useColors(),w.color=r.selectColor(f),w.extend=i,w.destroy=r.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(b!==r.namespaces&&(b=r.namespaces,E=r.enabled(f)),E),set:A=>{g=A}}),typeof r.init=="function"&&r.init(w),w}function i(f,h){let g=r(this.namespace+(typeof h>"u"?":":h)+f);return g.log=this.log,g}function s(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let h=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let g of h)g[0]==="-"?r.skips.push(g.slice(1)):r.names.push(g)}function n(f,h){let g=0,b=0,E=-1,w=0;for(;g<f.length;)if(b<h.length&&(h[b]===f[g]||h[b]==="*"))h[b]==="*"?(E=b,w=g,b++):(g++,b++);else if(E!==-1)b=E+1,w++,g=w;else return!1;for(;b<h.length&&h[b]==="*";)b++;return b===h.length}function a(){let f=[...r.names,...r.skips.map(h=>"-"+h)].join(",");return r.enable(""),f}function o(f){for(let h of r.skips)if(n(f,h))return!1;for(let h of r.names)if(n(f,h))return!0;return!1}function l(f){return f instanceof Error?f.stack||f.message:f}function u(){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 r.enable(r.load()),r}Zp.exports=dg});var ef=N((Ft,an)=>{Ft.formatArgs=mg;Ft.save=yg;Ft.load=Tg;Ft.useColors=hg;Ft.storage=Sg();Ft.destroy=(()=>{let e=!1;return()=>{e||(e=!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`."))}})();Ft.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 hg(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return 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&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function mg(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+an.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(i=r))}),e.splice(i,0,t)}Ft.log=console.debug||console.log||(()=>{});function yg(e){try{e?Ft.storage.setItem("debug",e):Ft.storage.removeItem("debug")}catch{}}function Tg(){let e;try{e=Ft.storage.getItem("debug")||Ft.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Sg(){try{return localStorage}catch{}}an.exports=Ha()(Ft);var{formatters:gg}=an.exports;gg.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var rf=N((BY,tf)=>{"use strict";tf.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(r+e),s=t.indexOf("--");return i!==-1&&(s===-1||i<s)}});var af=N((RY,nf)=>{"use strict";var xg=sn("os"),sf=sn("tty"),$t=rf(),{env:gt}=process,Br;$t("no-color")||$t("no-colors")||$t("color=false")||$t("color=never")?Br=0:($t("color")||$t("colors")||$t("color=true")||$t("color=always"))&&(Br=1);"FORCE_COLOR"in gt&&(gt.FORCE_COLOR==="true"?Br=1:gt.FORCE_COLOR==="false"?Br=0:Br=gt.FORCE_COLOR.length===0?1:Math.min(parseInt(gt.FORCE_COLOR,10),3));function za(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Ga(e,t){if(Br===0)return 0;if($t("color=16m")||$t("color=full")||$t("color=truecolor"))return 3;if($t("color=256"))return 2;if(e&&!t&&Br===void 0)return 0;let r=Br||0;if(gt.TERM==="dumb")return r;if(process.platform==="win32"){let i=xg.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in gt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in gt)||gt.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in gt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(gt.TEAMCITY_VERSION)?1:0;if(gt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in gt){let i=parseInt((gt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(gt.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(gt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(gt.TERM)||"COLORTERM"in gt?1:r}function bg(e){let t=Ga(e,e&&e.isTTY);return za(t)}nf.exports={supportsColor:bg,stdout:za(Ga(!0,sf.isatty(1))),stderr:za(Ga(!0,sf.isatty(2)))}});var lf=N((xt,ln)=>{var Eg=sn("tty"),on=sn("util");xt.init=Ng;xt.log=Cg;xt.formatArgs=Ag;xt.save=Ig;xt.load=wg;xt.useColors=Pg;xt.destroy=on.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");xt.colors=[6,2,3,4,5,1];try{let e=af();e&&(e.stderr||e).level>=2&&(xt.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{}xt.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(s,n)=>n.toUpperCase()),i=process.env[t];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),e[r]=i,e},{});function Pg(){return"colors"in xt.inspectOpts?!!xt.inspectOpts.colors:Eg.isatty(process.stderr.fd)}function Ag(e){let{namespace:t,useColors:r}=this;if(r){let i=this.color,s="\x1B[3"+(i<8?i:"8;5;"+i),n=` ${s};1m${t} \x1B[0m`;e[0]=n+e[0].split(`
2
+ var lS=Object.create;var Zp=Object.defineProperty;var uS=Object.getOwnPropertyDescriptor;var cS=Object.getOwnPropertyNames;var pS=Object.getPrototypeOf,fS=Object.prototype.hasOwnProperty;var sn=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var N=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var dS=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of cS(t))!fS.call(e,s)&&s!==r&&Zp(e,s,{get:()=>t[s],enumerable:!(i=uS(t,s))||i.enumerable});return e};var rr=(e,t,r)=>(r=e!=null?lS(pS(e)):{},dS(t||!e||!e.__esModule?Zp(r,"default",{value:e,enumerable:!0}):r,e));var za=N(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.Var=Ie.User=Ie.Statement=Ie.SpreadProperty=Ie.Scope=Ie.RestProperty=Ie.ReferencedMemberExpression=Ie.ReferencedIdentifier=Ie.Referenced=Ie.Pure=Ie.NumericLiteralTypeAnnotation=Ie.Generated=Ie.ForAwaitStatement=Ie.Flow=Ie.Expression=Ie.ExistentialTypeParam=Ie.BlockScoped=Ie.BindingIdentifier=void 0;var EY=Ie.ReferencedIdentifier=["Identifier","JSXIdentifier"],PY=Ie.ReferencedMemberExpression=["MemberExpression"],AY=Ie.BindingIdentifier=["Identifier"],vY=Ie.Statement=["Statement"],CY=Ie.Expression=["Expression"],IY=Ie.Scope=["Scopable","Pattern"],wY=Ie.Referenced=null,NY=Ie.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],OY=Ie.Var=["VariableDeclaration"],_Y=Ie.User=null,kY=Ie.Generated=null,DY=Ie.Pure=null,LY=Ie.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],MY=Ie.RestProperty=["RestElement"],BY=Ie.SpreadProperty=["RestElement"],FY=Ie.ExistentialTypeParam=["ExistsTypeAnnotation"],RY=Ie.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],jY=Ie.ForAwaitStatement=["ForOfStatement"]});var tf=N((UY,ef)=>{var Ni=1e3,Oi=Ni*60,_i=Oi*60,si=_i*24,hS=si*7,mS=si*365.25;ef.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return yS(e);if(r==="number"&&isFinite(e))return t.long?gS(e):TS(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function yS(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),i=(t[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*mS;case"weeks":case"week":case"w":return r*hS;case"days":case"day":case"d":return r*si;case"hours":case"hour":case"hrs":case"hr":case"h":return r*_i;case"minutes":case"minute":case"mins":case"min":case"m":return r*Oi;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ni;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function TS(e){var t=Math.abs(e);return t>=si?Math.round(e/si)+"d":t>=_i?Math.round(e/_i)+"h":t>=Oi?Math.round(e/Oi)+"m":t>=Ni?Math.round(e/Ni)+"s":e+"ms"}function gS(e){var t=Math.abs(e);return t>=si?nn(e,t,si,"day"):t>=_i?nn(e,t,_i,"hour"):t>=Oi?nn(e,t,Oi,"minute"):t>=Ni?nn(e,t,Ni,"second"):e+" ms"}function nn(e,t,r,i){var s=t>=r*1.5;return Math.round(e/r)+" "+i+(s?"s":"")}});var Ga=N((KY,rf)=>{function SS(e){r.debug=r,r.default=r,r.coerce=l,r.disable=a,r.enable=s,r.enabled=o,r.humanize=tf(),r.destroy=u,Object.keys(e).forEach(f=>{r[f]=e[f]}),r.names=[],r.skips=[],r.formatters={};function t(f){let h=0;for(let x=0;x<f.length;x++)h=(h<<5)-h+f.charCodeAt(x),h|=0;return r.colors[Math.abs(h)%r.colors.length]}r.selectColor=t;function r(f){let h,x=null,A,P;function w(...b){if(!w.enabled)return;let C=w,D=Number(new Date),U=D-(h||D);C.diff=U,C.prev=h,C.curr=D,h=D,b[0]=r.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let k=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(te,Te)=>{if(te==="%%")return"%";k++;let be=r.formatters[Te];if(typeof be=="function"){let X=b[k];te=be.call(C,X),b.splice(k,1),k--}return te}),r.formatArgs.call(C,b),(C.log||r.log).apply(C,b)}return w.namespace=f,w.useColors=r.useColors(),w.color=r.selectColor(f),w.extend=i,w.destroy=r.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>x!==null?x:(A!==r.namespaces&&(A=r.namespaces,P=r.enabled(f)),P),set:b=>{x=b}}),typeof r.init=="function"&&r.init(w),w}function i(f,h){let x=r(this.namespace+(typeof h>"u"?":":h)+f);return x.log=this.log,x}function s(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let h=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let x of h)x[0]==="-"?r.skips.push(x.slice(1)):r.names.push(x)}function n(f,h){let x=0,A=0,P=-1,w=0;for(;x<f.length;)if(A<h.length&&(h[A]===f[x]||h[A]==="*"))h[A]==="*"?(P=A,w=x,A++):(x++,A++);else if(P!==-1)A=P+1,w++,x=w;else return!1;for(;A<h.length&&h[A]==="*";)A++;return A===h.length}function a(){let f=[...r.names,...r.skips.map(h=>"-"+h)].join(",");return r.enable(""),f}function o(f){for(let h of r.skips)if(n(f,h))return!1;for(let h of r.names)if(n(f,h))return!0;return!1}function l(f){return f instanceof Error?f.stack||f.message:f}function u(){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 r.enable(r.load()),r}rf.exports=SS});var sf=N((Bt,an)=>{Bt.formatArgs=bS;Bt.save=ES;Bt.load=PS;Bt.useColors=xS;Bt.storage=AS();Bt.destroy=(()=>{let e=!1;return()=>{e||(e=!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`."))}})();Bt.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 xS(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return 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&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function bS(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+an.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(i=r))}),e.splice(i,0,t)}Bt.log=console.debug||console.log||(()=>{});function ES(e){try{e?Bt.storage.setItem("debug",e):Bt.storage.removeItem("debug")}catch{}}function PS(){let e;try{e=Bt.storage.getItem("debug")||Bt.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function AS(){try{return localStorage}catch{}}an.exports=Ga()(Bt);var{formatters:vS}=an.exports;vS.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var af=N((VY,nf)=>{"use strict";nf.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(r+e),s=t.indexOf("--");return i!==-1&&(s===-1||i<s)}});var uf=N(($Y,lf)=>{"use strict";var CS=sn("os"),of=sn("tty"),$t=af(),{env:St}=process,Fr;$t("no-color")||$t("no-colors")||$t("color=false")||$t("color=never")?Fr=0:($t("color")||$t("colors")||$t("color=true")||$t("color=always"))&&(Fr=1);"FORCE_COLOR"in St&&(St.FORCE_COLOR==="true"?Fr=1:St.FORCE_COLOR==="false"?Fr=0:Fr=St.FORCE_COLOR.length===0?1:Math.min(parseInt(St.FORCE_COLOR,10),3));function Qa(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Za(e,t){if(Fr===0)return 0;if($t("color=16m")||$t("color=full")||$t("color=truecolor"))return 3;if($t("color=256"))return 2;if(e&&!t&&Fr===void 0)return 0;let r=Fr||0;if(St.TERM==="dumb")return r;if(process.platform==="win32"){let i=CS.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in St)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in St)||St.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in St)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(St.TEAMCITY_VERSION)?1:0;if(St.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in St){let i=parseInt((St.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(St.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(St.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(St.TERM)||"COLORTERM"in St?1:r}function IS(e){let t=Za(e,e&&e.isTTY);return Qa(t)}lf.exports={supportsColor:IS,stdout:Qa(Za(!0,of.isatty(1))),stderr:Qa(Za(!0,of.isatty(2)))}});var pf=N((xt,ln)=>{var wS=sn("tty"),on=sn("util");xt.init=MS;xt.log=kS;xt.formatArgs=OS;xt.save=DS;xt.load=LS;xt.useColors=NS;xt.destroy=on.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");xt.colors=[6,2,3,4,5,1];try{let e=uf();e&&(e.stderr||e).level>=2&&(xt.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{}xt.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(s,n)=>n.toUpperCase()),i=process.env[t];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),e[r]=i,e},{});function NS(){return"colors"in xt.inspectOpts?!!xt.inspectOpts.colors:wS.isatty(process.stderr.fd)}function OS(e){let{namespace:t,useColors:r}=this;if(r){let i=this.color,s="\x1B[3"+(i<8?i:"8;5;"+i),n=` ${s};1m${t} \x1B[0m`;e[0]=n+e[0].split(`
3
3
  `).join(`
4
- `+n),e.push(s+"m+"+ln.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=vg()+t+" "+e[0]}function vg(){return xt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Cg(...e){return process.stderr.write(on.formatWithOptions(xt.inspectOpts,...e)+`
5
- `)}function Ig(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function wg(){return process.env.DEBUG}function Ng(e){e.inspectOpts={};let t=Object.keys(xt.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=xt.inspectOpts[t[r]]}ln.exports=Ha()(xt);var{formatters:of}=ln.exports;of.o=function(e){return this.inspectOpts.colors=this.useColors,on.inspect(e,this.inspectOpts).split(`
6
- `).map(t=>t.trim()).join(" ")};of.O=function(e){return this.inspectOpts.colors=this.useColors,on.inspect(e,this.inspectOpts)}});var uf=N((jY,Qa)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Qa.exports=ef():Qa.exports=lf()});var un=N(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.default=Og;function Og(e,t){let r=Object.keys(t);for(let i of r)if(e[i]!==t[i])return!1;return!0}});var _i=N(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.default=_g;var cf=new Set;function _g(e,t,r="",i=e){if(cf.has(i))return;cf.add(i);let{internal:s,trace:n}=kg(1,2);s||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
7
- ${n}`)}function kg(e,t){let{stackTraceLimit:r,prepareStackTrace:i}=Error,s;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(a,o){s=o},new Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=i,!s)return{internal:!1,trace:""};let n=s.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(n[1].getFileName()),trace:n.map(a=>` at ${a}`).join(`
8
- `)}}});var st=N(m=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});m.isAccessor=zP;m.isAnyTypeAnnotation=hb;m.isArgumentPlaceholder=V0;m.isArrayExpression=Dg;m.isArrayPattern=_x;m.isArrayTypeAnnotation=mb;m.isArrowFunctionExpression=kx;m.isAssignmentExpression=Lg;m.isAssignmentPattern=Ox;m.isAwaitExpression=tb;m.isBigIntLiteral=ib;m.isBinary=SP;m.isBinaryExpression=Mg;m.isBindExpression=$0;m.isBlock=bP;m.isBlockParent=xP;m.isBlockStatement=jg;m.isBooleanLiteral=ax;m.isBooleanLiteralTypeAnnotation=Tb;m.isBooleanTypeAnnotation=yb;m.isBreakStatement=qg;m.isCallExpression=Ug;m.isCatchClause=Kg;m.isClass=YP;m.isClassAccessorProperty=lb;m.isClassBody=Dx;m.isClassDeclaration=Mx;m.isClassExpression=Lx;m.isClassImplements=gb;m.isClassMethod=Yx;m.isClassPrivateMethod=cb;m.isClassPrivateProperty=ub;m.isClassProperty=ob;m.isCompletionStatement=AP;m.isConditional=vP;m.isConditionalExpression=Vg;m.isContinueStatement=$g;m.isDebuggerStatement=Jg;m.isDecimalLiteral=z0;m.isDeclaration=LP;m.isDeclareClass=xb;m.isDeclareExportAllDeclaration=Nb;m.isDeclareExportDeclaration=wb;m.isDeclareFunction=bb;m.isDeclareInterface=Eb;m.isDeclareModule=Pb;m.isDeclareModuleExports=Ab;m.isDeclareOpaqueType=Cb;m.isDeclareTypeAlias=vb;m.isDeclareVariable=Ib;m.isDeclaredPredicate=Ob;m.isDecorator=J0;m.isDirective=Bg;m.isDirectiveLiteral=Rg;m.isDoExpression=X0;m.isDoWhileStatement=Xg;m.isEmptyStatement=Yg;m.isEmptyTypeAnnotation=Ub;m.isEnumBody=iA;m.isEnumBooleanBody=m0;m.isEnumBooleanMember=g0;m.isEnumDeclaration=h0;m.isEnumDefaultedMember=E0;m.isEnumMember=sA;m.isEnumNumberBody=y0;m.isEnumNumberMember=x0;m.isEnumStringBody=T0;m.isEnumStringMember=b0;m.isEnumSymbolBody=S0;m.isExistsTypeAnnotation=_b;m.isExportAllDeclaration=Fx;m.isExportDeclaration=WP;m.isExportDefaultDeclaration=Bx;m.isExportDefaultSpecifier=Y0;m.isExportNamedDeclaration=Rx;m.isExportNamespaceSpecifier=sb;m.isExportSpecifier=jx;m.isExpression=TP;m.isExpressionStatement=Wg;m.isExpressionWrapper=wP;m.isFile=Hg;m.isFlow=QP;m.isFlowBaseAnnotation=eA;m.isFlowDeclaration=tA;m.isFlowPredicate=rA;m.isFlowType=ZP;m.isFor=NP;m.isForInStatement=zg;m.isForOfStatement=qx;m.isForStatement=Gg;m.isForXStatement=OP;m.isFunction=_P;m.isFunctionDeclaration=Qg;m.isFunctionExpression=Zg;m.isFunctionParameter=MP;m.isFunctionParent=kP;m.isFunctionTypeAnnotation=kb;m.isFunctionTypeParam=Db;m.isGenericTypeAnnotation=Lb;m.isIdentifier=ex;m.isIfStatement=tx;m.isImmutable=qP;m.isImport=rb;m.isImportAttribute=db;m.isImportDeclaration=Ux;m.isImportDefaultSpecifier=Kx;m.isImportExpression=Jx;m.isImportNamespaceSpecifier=Vx;m.isImportOrExportDeclaration=pf;m.isImportSpecifier=$x;m.isIndexedAccessType=P0;m.isInferredPredicate=Mb;m.isInterfaceDeclaration=Bb;m.isInterfaceExtends=Fb;m.isInterfaceTypeAnnotation=Rb;m.isInterpreterDirective=Fg;m.isIntersectionTypeAnnotation=jb;m.isJSX=nA;m.isJSXAttribute=v0;m.isJSXClosingElement=C0;m.isJSXClosingFragment=j0;m.isJSXElement=I0;m.isJSXEmptyExpression=w0;m.isJSXExpressionContainer=N0;m.isJSXFragment=B0;m.isJSXIdentifier=_0;m.isJSXMemberExpression=k0;m.isJSXNamespacedName=D0;m.isJSXOpeningElement=L0;m.isJSXOpeningFragment=R0;m.isJSXSpreadAttribute=M0;m.isJSXSpreadChild=O0;m.isJSXText=F0;m.isLVal=BP;m.isLabeledStatement=rx;m.isLiteral=jP;m.isLogicalExpression=lx;m.isLoop=CP;m.isMemberExpression=ux;m.isMetaProperty=Xx;m.isMethod=KP;m.isMiscellaneous=aA;m.isMixedTypeAnnotation=qb;m.isModuleDeclaration=mA;m.isModuleExpression=G0;m.isModuleSpecifier=HP;m.isNewExpression=cx;m.isNoop=q0;m.isNullLiteral=nx;m.isNullLiteralTypeAnnotation=Sb;m.isNullableTypeAnnotation=Kb;m.isNumberLiteral=pA;m.isNumberLiteralTypeAnnotation=Vb;m.isNumberTypeAnnotation=$b;m.isNumericLiteral=sx;m.isObjectExpression=fx;m.isObjectMember=VP;m.isObjectMethod=dx;m.isObjectPattern=Wx;m.isObjectProperty=hx;m.isObjectTypeAnnotation=Jb;m.isObjectTypeCallProperty=Yb;m.isObjectTypeIndexer=Wb;m.isObjectTypeInternalSlot=Xb;m.isObjectTypeProperty=Hb;m.isObjectTypeSpreadProperty=zb;m.isOpaqueType=Gb;m.isOptionalCallExpression=ab;m.isOptionalIndexedAccessType=A0;m.isOptionalMemberExpression=nb;m.isParenthesizedExpression=Sx;m.isPattern=XP;m.isPatternLike=FP;m.isPipelineBareFunction=eE;m.isPipelinePrimaryTopicReference=tE;m.isPipelineTopicExpression=Z0;m.isPlaceholder=U0;m.isPrivate=GP;m.isPrivateName=pb;m.isProgram=px;m.isProperty=$P;m.isPureish=DP;m.isQualifiedTypeIdentifier=Qb;m.isRecordExpression=W0;m.isRegExpLiteral=ox;m.isRegexLiteral=fA;m.isRestElement=mx;m.isRestProperty=dA;m.isReturnStatement=yx;m.isScopable=gP;m.isSequenceExpression=Tx;m.isSpreadElement=Hx;m.isSpreadProperty=hA;m.isStandardized=yP;m.isStatement=EP;m.isStaticBlock=fb;m.isStringLiteral=ix;m.isStringLiteralTypeAnnotation=Zb;m.isStringTypeAnnotation=e0;m.isSuper=zx;m.isSwitchCase=gx;m.isSwitchStatement=xx;m.isSymbolTypeAnnotation=t0;m.isTSAnyKeyword=fE;m.isTSArrayType=kE;m.isTSAsExpression=QE;m.isTSBaseType=cA;m.isTSBigIntKeyword=hE;m.isTSBooleanKeyword=dE;m.isTSCallSignatureDeclaration=oE;m.isTSConditionalType=jE;m.isTSConstructSignatureDeclaration=lE;m.isTSConstructorType=IE;m.isTSDeclareFunction=sE;m.isTSDeclareMethod=nE;m.isTSEntityName=RP;m.isTSEnumBody=tP;m.isTSEnumDeclaration=rP;m.isTSEnumMember=iP;m.isTSExportAssignment=cP;m.isTSExpressionWithTypeArguments=YE;m.isTSExternalModuleReference=lP;m.isTSFunctionType=CE;m.isTSImportEqualsDeclaration=oP;m.isTSImportType=aP;m.isTSIndexSignature=pE;m.isTSIndexedAccessType=VE;m.isTSInferType=qE;m.isTSInstantiationExpression=GE;m.isTSInterfaceBody=HE;m.isTSInterfaceDeclaration=WE;m.isTSIntersectionType=RE;m.isTSIntrinsicKeyword=mE;m.isTSLiteralType=XE;m.isTSMappedType=$E;m.isTSMethodSignature=cE;m.isTSModuleBlock=nP;m.isTSModuleDeclaration=sP;m.isTSNamedTupleMember=FE;m.isTSNamespaceExportDeclaration=pP;m.isTSNeverKeyword=yE;m.isTSNonNullExpression=uP;m.isTSNullKeyword=TE;m.isTSNumberKeyword=SE;m.isTSObjectKeyword=gE;m.isTSOptionalType=LE;m.isTSParameterProperty=iE;m.isTSParenthesizedType=UE;m.isTSPropertySignature=uE;m.isTSQualifiedName=aE;m.isTSRestType=ME;m.isTSSatisfiesExpression=ZE;m.isTSStringKeyword=xE;m.isTSSymbolKeyword=bE;m.isTSTemplateLiteralType=JE;m.isTSThisType=vE;m.isTSTupleType=DE;m.isTSType=uA;m.isTSTypeAliasDeclaration=zE;m.isTSTypeAnnotation=fP;m.isTSTypeAssertion=eP;m.isTSTypeElement=lA;m.isTSTypeLiteral=_E;m.isTSTypeOperator=KE;m.isTSTypeParameter=mP;m.isTSTypeParameterDeclaration=hP;m.isTSTypeParameterInstantiation=dP;m.isTSTypePredicate=NE;m.isTSTypeQuery=OE;m.isTSTypeReference=wE;m.isTSUndefinedKeyword=EE;m.isTSUnionType=BE;m.isTSUnknownKeyword=PE;m.isTSVoidKeyword=AE;m.isTaggedTemplateExpression=Gx;m.isTemplateElement=Qx;m.isTemplateLiteral=Zx;m.isTerminatorless=PP;m.isThisExpression=bx;m.isThisTypeAnnotation=r0;m.isThrowStatement=Ex;m.isTopicReference=Q0;m.isTryStatement=Px;m.isTupleExpression=H0;m.isTupleTypeAnnotation=i0;m.isTypeAlias=n0;m.isTypeAnnotation=a0;m.isTypeCastExpression=o0;m.isTypeParameter=l0;m.isTypeParameterDeclaration=u0;m.isTypeParameterInstantiation=c0;m.isTypeScript=oA;m.isTypeofTypeAnnotation=s0;m.isUnaryExpression=Ax;m.isUnaryLike=JP;m.isUnionTypeAnnotation=p0;m.isUpdateExpression=vx;m.isUserWhitespacable=UP;m.isV8IntrinsicIdentifier=K0;m.isVariableDeclaration=Cx;m.isVariableDeclarator=Ix;m.isVariance=f0;m.isVoidPattern=rE;m.isVoidTypeAnnotation=d0;m.isWhile=IP;m.isWhileStatement=wx;m.isWithStatement=Nx;m.isYieldExpression=eb;var S=un(),ns=_i();function Dg(e,t){return!e||e.type!=="ArrayExpression"?!1:t==null||(0,S.default)(e,t)}function Lg(e,t){return!e||e.type!=="AssignmentExpression"?!1:t==null||(0,S.default)(e,t)}function Mg(e,t){return!e||e.type!=="BinaryExpression"?!1:t==null||(0,S.default)(e,t)}function Fg(e,t){return!e||e.type!=="InterpreterDirective"?!1:t==null||(0,S.default)(e,t)}function Bg(e,t){return!e||e.type!=="Directive"?!1:t==null||(0,S.default)(e,t)}function Rg(e,t){return!e||e.type!=="DirectiveLiteral"?!1:t==null||(0,S.default)(e,t)}function jg(e,t){return!e||e.type!=="BlockStatement"?!1:t==null||(0,S.default)(e,t)}function qg(e,t){return!e||e.type!=="BreakStatement"?!1:t==null||(0,S.default)(e,t)}function Ug(e,t){return!e||e.type!=="CallExpression"?!1:t==null||(0,S.default)(e,t)}function Kg(e,t){return!e||e.type!=="CatchClause"?!1:t==null||(0,S.default)(e,t)}function Vg(e,t){return!e||e.type!=="ConditionalExpression"?!1:t==null||(0,S.default)(e,t)}function $g(e,t){return!e||e.type!=="ContinueStatement"?!1:t==null||(0,S.default)(e,t)}function Jg(e,t){return!e||e.type!=="DebuggerStatement"?!1:t==null||(0,S.default)(e,t)}function Xg(e,t){return!e||e.type!=="DoWhileStatement"?!1:t==null||(0,S.default)(e,t)}function Yg(e,t){return!e||e.type!=="EmptyStatement"?!1:t==null||(0,S.default)(e,t)}function Wg(e,t){return!e||e.type!=="ExpressionStatement"?!1:t==null||(0,S.default)(e,t)}function Hg(e,t){return!e||e.type!=="File"?!1:t==null||(0,S.default)(e,t)}function zg(e,t){return!e||e.type!=="ForInStatement"?!1:t==null||(0,S.default)(e,t)}function Gg(e,t){return!e||e.type!=="ForStatement"?!1:t==null||(0,S.default)(e,t)}function Qg(e,t){return!e||e.type!=="FunctionDeclaration"?!1:t==null||(0,S.default)(e,t)}function Zg(e,t){return!e||e.type!=="FunctionExpression"?!1:t==null||(0,S.default)(e,t)}function ex(e,t){return!e||e.type!=="Identifier"?!1:t==null||(0,S.default)(e,t)}function tx(e,t){return!e||e.type!=="IfStatement"?!1:t==null||(0,S.default)(e,t)}function rx(e,t){return!e||e.type!=="LabeledStatement"?!1:t==null||(0,S.default)(e,t)}function ix(e,t){return!e||e.type!=="StringLiteral"?!1:t==null||(0,S.default)(e,t)}function sx(e,t){return!e||e.type!=="NumericLiteral"?!1:t==null||(0,S.default)(e,t)}function nx(e,t){return!e||e.type!=="NullLiteral"?!1:t==null||(0,S.default)(e,t)}function ax(e,t){return!e||e.type!=="BooleanLiteral"?!1:t==null||(0,S.default)(e,t)}function ox(e,t){return!e||e.type!=="RegExpLiteral"?!1:t==null||(0,S.default)(e,t)}function lx(e,t){return!e||e.type!=="LogicalExpression"?!1:t==null||(0,S.default)(e,t)}function ux(e,t){return!e||e.type!=="MemberExpression"?!1:t==null||(0,S.default)(e,t)}function cx(e,t){return!e||e.type!=="NewExpression"?!1:t==null||(0,S.default)(e,t)}function px(e,t){return!e||e.type!=="Program"?!1:t==null||(0,S.default)(e,t)}function fx(e,t){return!e||e.type!=="ObjectExpression"?!1:t==null||(0,S.default)(e,t)}function dx(e,t){return!e||e.type!=="ObjectMethod"?!1:t==null||(0,S.default)(e,t)}function hx(e,t){return!e||e.type!=="ObjectProperty"?!1:t==null||(0,S.default)(e,t)}function mx(e,t){return!e||e.type!=="RestElement"?!1:t==null||(0,S.default)(e,t)}function yx(e,t){return!e||e.type!=="ReturnStatement"?!1:t==null||(0,S.default)(e,t)}function Tx(e,t){return!e||e.type!=="SequenceExpression"?!1:t==null||(0,S.default)(e,t)}function Sx(e,t){return!e||e.type!=="ParenthesizedExpression"?!1:t==null||(0,S.default)(e,t)}function gx(e,t){return!e||e.type!=="SwitchCase"?!1:t==null||(0,S.default)(e,t)}function xx(e,t){return!e||e.type!=="SwitchStatement"?!1:t==null||(0,S.default)(e,t)}function bx(e,t){return!e||e.type!=="ThisExpression"?!1:t==null||(0,S.default)(e,t)}function Ex(e,t){return!e||e.type!=="ThrowStatement"?!1:t==null||(0,S.default)(e,t)}function Px(e,t){return!e||e.type!=="TryStatement"?!1:t==null||(0,S.default)(e,t)}function Ax(e,t){return!e||e.type!=="UnaryExpression"?!1:t==null||(0,S.default)(e,t)}function vx(e,t){return!e||e.type!=="UpdateExpression"?!1:t==null||(0,S.default)(e,t)}function Cx(e,t){return!e||e.type!=="VariableDeclaration"?!1:t==null||(0,S.default)(e,t)}function Ix(e,t){return!e||e.type!=="VariableDeclarator"?!1:t==null||(0,S.default)(e,t)}function wx(e,t){return!e||e.type!=="WhileStatement"?!1:t==null||(0,S.default)(e,t)}function Nx(e,t){return!e||e.type!=="WithStatement"?!1:t==null||(0,S.default)(e,t)}function Ox(e,t){return!e||e.type!=="AssignmentPattern"?!1:t==null||(0,S.default)(e,t)}function _x(e,t){return!e||e.type!=="ArrayPattern"?!1:t==null||(0,S.default)(e,t)}function kx(e,t){return!e||e.type!=="ArrowFunctionExpression"?!1:t==null||(0,S.default)(e,t)}function Dx(e,t){return!e||e.type!=="ClassBody"?!1:t==null||(0,S.default)(e,t)}function Lx(e,t){return!e||e.type!=="ClassExpression"?!1:t==null||(0,S.default)(e,t)}function Mx(e,t){return!e||e.type!=="ClassDeclaration"?!1:t==null||(0,S.default)(e,t)}function Fx(e,t){return!e||e.type!=="ExportAllDeclaration"?!1:t==null||(0,S.default)(e,t)}function Bx(e,t){return!e||e.type!=="ExportDefaultDeclaration"?!1:t==null||(0,S.default)(e,t)}function Rx(e,t){return!e||e.type!=="ExportNamedDeclaration"?!1:t==null||(0,S.default)(e,t)}function jx(e,t){return!e||e.type!=="ExportSpecifier"?!1:t==null||(0,S.default)(e,t)}function qx(e,t){return!e||e.type!=="ForOfStatement"?!1:t==null||(0,S.default)(e,t)}function Ux(e,t){return!e||e.type!=="ImportDeclaration"?!1:t==null||(0,S.default)(e,t)}function Kx(e,t){return!e||e.type!=="ImportDefaultSpecifier"?!1:t==null||(0,S.default)(e,t)}function Vx(e,t){return!e||e.type!=="ImportNamespaceSpecifier"?!1:t==null||(0,S.default)(e,t)}function $x(e,t){return!e||e.type!=="ImportSpecifier"?!1:t==null||(0,S.default)(e,t)}function Jx(e,t){return!e||e.type!=="ImportExpression"?!1:t==null||(0,S.default)(e,t)}function Xx(e,t){return!e||e.type!=="MetaProperty"?!1:t==null||(0,S.default)(e,t)}function Yx(e,t){return!e||e.type!=="ClassMethod"?!1:t==null||(0,S.default)(e,t)}function Wx(e,t){return!e||e.type!=="ObjectPattern"?!1:t==null||(0,S.default)(e,t)}function Hx(e,t){return!e||e.type!=="SpreadElement"?!1:t==null||(0,S.default)(e,t)}function zx(e,t){return!e||e.type!=="Super"?!1:t==null||(0,S.default)(e,t)}function Gx(e,t){return!e||e.type!=="TaggedTemplateExpression"?!1:t==null||(0,S.default)(e,t)}function Qx(e,t){return!e||e.type!=="TemplateElement"?!1:t==null||(0,S.default)(e,t)}function Zx(e,t){return!e||e.type!=="TemplateLiteral"?!1:t==null||(0,S.default)(e,t)}function eb(e,t){return!e||e.type!=="YieldExpression"?!1:t==null||(0,S.default)(e,t)}function tb(e,t){return!e||e.type!=="AwaitExpression"?!1:t==null||(0,S.default)(e,t)}function rb(e,t){return!e||e.type!=="Import"?!1:t==null||(0,S.default)(e,t)}function ib(e,t){return!e||e.type!=="BigIntLiteral"?!1:t==null||(0,S.default)(e,t)}function sb(e,t){return!e||e.type!=="ExportNamespaceSpecifier"?!1:t==null||(0,S.default)(e,t)}function nb(e,t){return!e||e.type!=="OptionalMemberExpression"?!1:t==null||(0,S.default)(e,t)}function ab(e,t){return!e||e.type!=="OptionalCallExpression"?!1:t==null||(0,S.default)(e,t)}function ob(e,t){return!e||e.type!=="ClassProperty"?!1:t==null||(0,S.default)(e,t)}function lb(e,t){return!e||e.type!=="ClassAccessorProperty"?!1:t==null||(0,S.default)(e,t)}function ub(e,t){return!e||e.type!=="ClassPrivateProperty"?!1:t==null||(0,S.default)(e,t)}function cb(e,t){return!e||e.type!=="ClassPrivateMethod"?!1:t==null||(0,S.default)(e,t)}function pb(e,t){return!e||e.type!=="PrivateName"?!1:t==null||(0,S.default)(e,t)}function fb(e,t){return!e||e.type!=="StaticBlock"?!1:t==null||(0,S.default)(e,t)}function db(e,t){return!e||e.type!=="ImportAttribute"?!1:t==null||(0,S.default)(e,t)}function hb(e,t){return!e||e.type!=="AnyTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function mb(e,t){return!e||e.type!=="ArrayTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function yb(e,t){return!e||e.type!=="BooleanTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Tb(e,t){return!e||e.type!=="BooleanLiteralTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Sb(e,t){return!e||e.type!=="NullLiteralTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function gb(e,t){return!e||e.type!=="ClassImplements"?!1:t==null||(0,S.default)(e,t)}function xb(e,t){return!e||e.type!=="DeclareClass"?!1:t==null||(0,S.default)(e,t)}function bb(e,t){return!e||e.type!=="DeclareFunction"?!1:t==null||(0,S.default)(e,t)}function Eb(e,t){return!e||e.type!=="DeclareInterface"?!1:t==null||(0,S.default)(e,t)}function Pb(e,t){return!e||e.type!=="DeclareModule"?!1:t==null||(0,S.default)(e,t)}function Ab(e,t){return!e||e.type!=="DeclareModuleExports"?!1:t==null||(0,S.default)(e,t)}function vb(e,t){return!e||e.type!=="DeclareTypeAlias"?!1:t==null||(0,S.default)(e,t)}function Cb(e,t){return!e||e.type!=="DeclareOpaqueType"?!1:t==null||(0,S.default)(e,t)}function Ib(e,t){return!e||e.type!=="DeclareVariable"?!1:t==null||(0,S.default)(e,t)}function wb(e,t){return!e||e.type!=="DeclareExportDeclaration"?!1:t==null||(0,S.default)(e,t)}function Nb(e,t){return!e||e.type!=="DeclareExportAllDeclaration"?!1:t==null||(0,S.default)(e,t)}function Ob(e,t){return!e||e.type!=="DeclaredPredicate"?!1:t==null||(0,S.default)(e,t)}function _b(e,t){return!e||e.type!=="ExistsTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function kb(e,t){return!e||e.type!=="FunctionTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Db(e,t){return!e||e.type!=="FunctionTypeParam"?!1:t==null||(0,S.default)(e,t)}function Lb(e,t){return!e||e.type!=="GenericTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Mb(e,t){return!e||e.type!=="InferredPredicate"?!1:t==null||(0,S.default)(e,t)}function Fb(e,t){return!e||e.type!=="InterfaceExtends"?!1:t==null||(0,S.default)(e,t)}function Bb(e,t){return!e||e.type!=="InterfaceDeclaration"?!1:t==null||(0,S.default)(e,t)}function Rb(e,t){return!e||e.type!=="InterfaceTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function jb(e,t){return!e||e.type!=="IntersectionTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function qb(e,t){return!e||e.type!=="MixedTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Ub(e,t){return!e||e.type!=="EmptyTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Kb(e,t){return!e||e.type!=="NullableTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Vb(e,t){return!e||e.type!=="NumberLiteralTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function $b(e,t){return!e||e.type!=="NumberTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Jb(e,t){return!e||e.type!=="ObjectTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function Xb(e,t){return!e||e.type!=="ObjectTypeInternalSlot"?!1:t==null||(0,S.default)(e,t)}function Yb(e,t){return!e||e.type!=="ObjectTypeCallProperty"?!1:t==null||(0,S.default)(e,t)}function Wb(e,t){return!e||e.type!=="ObjectTypeIndexer"?!1:t==null||(0,S.default)(e,t)}function Hb(e,t){return!e||e.type!=="ObjectTypeProperty"?!1:t==null||(0,S.default)(e,t)}function zb(e,t){return!e||e.type!=="ObjectTypeSpreadProperty"?!1:t==null||(0,S.default)(e,t)}function Gb(e,t){return!e||e.type!=="OpaqueType"?!1:t==null||(0,S.default)(e,t)}function Qb(e,t){return!e||e.type!=="QualifiedTypeIdentifier"?!1:t==null||(0,S.default)(e,t)}function Zb(e,t){return!e||e.type!=="StringLiteralTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function e0(e,t){return!e||e.type!=="StringTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function t0(e,t){return!e||e.type!=="SymbolTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function r0(e,t){return!e||e.type!=="ThisTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function i0(e,t){return!e||e.type!=="TupleTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function s0(e,t){return!e||e.type!=="TypeofTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function n0(e,t){return!e||e.type!=="TypeAlias"?!1:t==null||(0,S.default)(e,t)}function a0(e,t){return!e||e.type!=="TypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function o0(e,t){return!e||e.type!=="TypeCastExpression"?!1:t==null||(0,S.default)(e,t)}function l0(e,t){return!e||e.type!=="TypeParameter"?!1:t==null||(0,S.default)(e,t)}function u0(e,t){return!e||e.type!=="TypeParameterDeclaration"?!1:t==null||(0,S.default)(e,t)}function c0(e,t){return!e||e.type!=="TypeParameterInstantiation"?!1:t==null||(0,S.default)(e,t)}function p0(e,t){return!e||e.type!=="UnionTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function f0(e,t){return!e||e.type!=="Variance"?!1:t==null||(0,S.default)(e,t)}function d0(e,t){return!e||e.type!=="VoidTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function h0(e,t){return!e||e.type!=="EnumDeclaration"?!1:t==null||(0,S.default)(e,t)}function m0(e,t){return!e||e.type!=="EnumBooleanBody"?!1:t==null||(0,S.default)(e,t)}function y0(e,t){return!e||e.type!=="EnumNumberBody"?!1:t==null||(0,S.default)(e,t)}function T0(e,t){return!e||e.type!=="EnumStringBody"?!1:t==null||(0,S.default)(e,t)}function S0(e,t){return!e||e.type!=="EnumSymbolBody"?!1:t==null||(0,S.default)(e,t)}function g0(e,t){return!e||e.type!=="EnumBooleanMember"?!1:t==null||(0,S.default)(e,t)}function x0(e,t){return!e||e.type!=="EnumNumberMember"?!1:t==null||(0,S.default)(e,t)}function b0(e,t){return!e||e.type!=="EnumStringMember"?!1:t==null||(0,S.default)(e,t)}function E0(e,t){return!e||e.type!=="EnumDefaultedMember"?!1:t==null||(0,S.default)(e,t)}function P0(e,t){return!e||e.type!=="IndexedAccessType"?!1:t==null||(0,S.default)(e,t)}function A0(e,t){return!e||e.type!=="OptionalIndexedAccessType"?!1:t==null||(0,S.default)(e,t)}function v0(e,t){return!e||e.type!=="JSXAttribute"?!1:t==null||(0,S.default)(e,t)}function C0(e,t){return!e||e.type!=="JSXClosingElement"?!1:t==null||(0,S.default)(e,t)}function I0(e,t){return!e||e.type!=="JSXElement"?!1:t==null||(0,S.default)(e,t)}function w0(e,t){return!e||e.type!=="JSXEmptyExpression"?!1:t==null||(0,S.default)(e,t)}function N0(e,t){return!e||e.type!=="JSXExpressionContainer"?!1:t==null||(0,S.default)(e,t)}function O0(e,t){return!e||e.type!=="JSXSpreadChild"?!1:t==null||(0,S.default)(e,t)}function _0(e,t){return!e||e.type!=="JSXIdentifier"?!1:t==null||(0,S.default)(e,t)}function k0(e,t){return!e||e.type!=="JSXMemberExpression"?!1:t==null||(0,S.default)(e,t)}function D0(e,t){return!e||e.type!=="JSXNamespacedName"?!1:t==null||(0,S.default)(e,t)}function L0(e,t){return!e||e.type!=="JSXOpeningElement"?!1:t==null||(0,S.default)(e,t)}function M0(e,t){return!e||e.type!=="JSXSpreadAttribute"?!1:t==null||(0,S.default)(e,t)}function F0(e,t){return!e||e.type!=="JSXText"?!1:t==null||(0,S.default)(e,t)}function B0(e,t){return!e||e.type!=="JSXFragment"?!1:t==null||(0,S.default)(e,t)}function R0(e,t){return!e||e.type!=="JSXOpeningFragment"?!1:t==null||(0,S.default)(e,t)}function j0(e,t){return!e||e.type!=="JSXClosingFragment"?!1:t==null||(0,S.default)(e,t)}function q0(e,t){return!e||e.type!=="Noop"?!1:t==null||(0,S.default)(e,t)}function U0(e,t){return!e||e.type!=="Placeholder"?!1:t==null||(0,S.default)(e,t)}function K0(e,t){return!e||e.type!=="V8IntrinsicIdentifier"?!1:t==null||(0,S.default)(e,t)}function V0(e,t){return!e||e.type!=="ArgumentPlaceholder"?!1:t==null||(0,S.default)(e,t)}function $0(e,t){return!e||e.type!=="BindExpression"?!1:t==null||(0,S.default)(e,t)}function J0(e,t){return!e||e.type!=="Decorator"?!1:t==null||(0,S.default)(e,t)}function X0(e,t){return!e||e.type!=="DoExpression"?!1:t==null||(0,S.default)(e,t)}function Y0(e,t){return!e||e.type!=="ExportDefaultSpecifier"?!1:t==null||(0,S.default)(e,t)}function W0(e,t){return!e||e.type!=="RecordExpression"?!1:t==null||(0,S.default)(e,t)}function H0(e,t){return!e||e.type!=="TupleExpression"?!1:t==null||(0,S.default)(e,t)}function z0(e,t){return!e||e.type!=="DecimalLiteral"?!1:t==null||(0,S.default)(e,t)}function G0(e,t){return!e||e.type!=="ModuleExpression"?!1:t==null||(0,S.default)(e,t)}function Q0(e,t){return!e||e.type!=="TopicReference"?!1:t==null||(0,S.default)(e,t)}function Z0(e,t){return!e||e.type!=="PipelineTopicExpression"?!1:t==null||(0,S.default)(e,t)}function eE(e,t){return!e||e.type!=="PipelineBareFunction"?!1:t==null||(0,S.default)(e,t)}function tE(e,t){return!e||e.type!=="PipelinePrimaryTopicReference"?!1:t==null||(0,S.default)(e,t)}function rE(e,t){return!e||e.type!=="VoidPattern"?!1:t==null||(0,S.default)(e,t)}function iE(e,t){return!e||e.type!=="TSParameterProperty"?!1:t==null||(0,S.default)(e,t)}function sE(e,t){return!e||e.type!=="TSDeclareFunction"?!1:t==null||(0,S.default)(e,t)}function nE(e,t){return!e||e.type!=="TSDeclareMethod"?!1:t==null||(0,S.default)(e,t)}function aE(e,t){return!e||e.type!=="TSQualifiedName"?!1:t==null||(0,S.default)(e,t)}function oE(e,t){return!e||e.type!=="TSCallSignatureDeclaration"?!1:t==null||(0,S.default)(e,t)}function lE(e,t){return!e||e.type!=="TSConstructSignatureDeclaration"?!1:t==null||(0,S.default)(e,t)}function uE(e,t){return!e||e.type!=="TSPropertySignature"?!1:t==null||(0,S.default)(e,t)}function cE(e,t){return!e||e.type!=="TSMethodSignature"?!1:t==null||(0,S.default)(e,t)}function pE(e,t){return!e||e.type!=="TSIndexSignature"?!1:t==null||(0,S.default)(e,t)}function fE(e,t){return!e||e.type!=="TSAnyKeyword"?!1:t==null||(0,S.default)(e,t)}function dE(e,t){return!e||e.type!=="TSBooleanKeyword"?!1:t==null||(0,S.default)(e,t)}function hE(e,t){return!e||e.type!=="TSBigIntKeyword"?!1:t==null||(0,S.default)(e,t)}function mE(e,t){return!e||e.type!=="TSIntrinsicKeyword"?!1:t==null||(0,S.default)(e,t)}function yE(e,t){return!e||e.type!=="TSNeverKeyword"?!1:t==null||(0,S.default)(e,t)}function TE(e,t){return!e||e.type!=="TSNullKeyword"?!1:t==null||(0,S.default)(e,t)}function SE(e,t){return!e||e.type!=="TSNumberKeyword"?!1:t==null||(0,S.default)(e,t)}function gE(e,t){return!e||e.type!=="TSObjectKeyword"?!1:t==null||(0,S.default)(e,t)}function xE(e,t){return!e||e.type!=="TSStringKeyword"?!1:t==null||(0,S.default)(e,t)}function bE(e,t){return!e||e.type!=="TSSymbolKeyword"?!1:t==null||(0,S.default)(e,t)}function EE(e,t){return!e||e.type!=="TSUndefinedKeyword"?!1:t==null||(0,S.default)(e,t)}function PE(e,t){return!e||e.type!=="TSUnknownKeyword"?!1:t==null||(0,S.default)(e,t)}function AE(e,t){return!e||e.type!=="TSVoidKeyword"?!1:t==null||(0,S.default)(e,t)}function vE(e,t){return!e||e.type!=="TSThisType"?!1:t==null||(0,S.default)(e,t)}function CE(e,t){return!e||e.type!=="TSFunctionType"?!1:t==null||(0,S.default)(e,t)}function IE(e,t){return!e||e.type!=="TSConstructorType"?!1:t==null||(0,S.default)(e,t)}function wE(e,t){return!e||e.type!=="TSTypeReference"?!1:t==null||(0,S.default)(e,t)}function NE(e,t){return!e||e.type!=="TSTypePredicate"?!1:t==null||(0,S.default)(e,t)}function OE(e,t){return!e||e.type!=="TSTypeQuery"?!1:t==null||(0,S.default)(e,t)}function _E(e,t){return!e||e.type!=="TSTypeLiteral"?!1:t==null||(0,S.default)(e,t)}function kE(e,t){return!e||e.type!=="TSArrayType"?!1:t==null||(0,S.default)(e,t)}function DE(e,t){return!e||e.type!=="TSTupleType"?!1:t==null||(0,S.default)(e,t)}function LE(e,t){return!e||e.type!=="TSOptionalType"?!1:t==null||(0,S.default)(e,t)}function ME(e,t){return!e||e.type!=="TSRestType"?!1:t==null||(0,S.default)(e,t)}function FE(e,t){return!e||e.type!=="TSNamedTupleMember"?!1:t==null||(0,S.default)(e,t)}function BE(e,t){return!e||e.type!=="TSUnionType"?!1:t==null||(0,S.default)(e,t)}function RE(e,t){return!e||e.type!=="TSIntersectionType"?!1:t==null||(0,S.default)(e,t)}function jE(e,t){return!e||e.type!=="TSConditionalType"?!1:t==null||(0,S.default)(e,t)}function qE(e,t){return!e||e.type!=="TSInferType"?!1:t==null||(0,S.default)(e,t)}function UE(e,t){return!e||e.type!=="TSParenthesizedType"?!1:t==null||(0,S.default)(e,t)}function KE(e,t){return!e||e.type!=="TSTypeOperator"?!1:t==null||(0,S.default)(e,t)}function VE(e,t){return!e||e.type!=="TSIndexedAccessType"?!1:t==null||(0,S.default)(e,t)}function $E(e,t){return!e||e.type!=="TSMappedType"?!1:t==null||(0,S.default)(e,t)}function JE(e,t){return!e||e.type!=="TSTemplateLiteralType"?!1:t==null||(0,S.default)(e,t)}function XE(e,t){return!e||e.type!=="TSLiteralType"?!1:t==null||(0,S.default)(e,t)}function YE(e,t){return!e||e.type!=="TSExpressionWithTypeArguments"?!1:t==null||(0,S.default)(e,t)}function WE(e,t){return!e||e.type!=="TSInterfaceDeclaration"?!1:t==null||(0,S.default)(e,t)}function HE(e,t){return!e||e.type!=="TSInterfaceBody"?!1:t==null||(0,S.default)(e,t)}function zE(e,t){return!e||e.type!=="TSTypeAliasDeclaration"?!1:t==null||(0,S.default)(e,t)}function GE(e,t){return!e||e.type!=="TSInstantiationExpression"?!1:t==null||(0,S.default)(e,t)}function QE(e,t){return!e||e.type!=="TSAsExpression"?!1:t==null||(0,S.default)(e,t)}function ZE(e,t){return!e||e.type!=="TSSatisfiesExpression"?!1:t==null||(0,S.default)(e,t)}function eP(e,t){return!e||e.type!=="TSTypeAssertion"?!1:t==null||(0,S.default)(e,t)}function tP(e,t){return!e||e.type!=="TSEnumBody"?!1:t==null||(0,S.default)(e,t)}function rP(e,t){return!e||e.type!=="TSEnumDeclaration"?!1:t==null||(0,S.default)(e,t)}function iP(e,t){return!e||e.type!=="TSEnumMember"?!1:t==null||(0,S.default)(e,t)}function sP(e,t){return!e||e.type!=="TSModuleDeclaration"?!1:t==null||(0,S.default)(e,t)}function nP(e,t){return!e||e.type!=="TSModuleBlock"?!1:t==null||(0,S.default)(e,t)}function aP(e,t){return!e||e.type!=="TSImportType"?!1:t==null||(0,S.default)(e,t)}function oP(e,t){return!e||e.type!=="TSImportEqualsDeclaration"?!1:t==null||(0,S.default)(e,t)}function lP(e,t){return!e||e.type!=="TSExternalModuleReference"?!1:t==null||(0,S.default)(e,t)}function uP(e,t){return!e||e.type!=="TSNonNullExpression"?!1:t==null||(0,S.default)(e,t)}function cP(e,t){return!e||e.type!=="TSExportAssignment"?!1:t==null||(0,S.default)(e,t)}function pP(e,t){return!e||e.type!=="TSNamespaceExportDeclaration"?!1:t==null||(0,S.default)(e,t)}function fP(e,t){return!e||e.type!=="TSTypeAnnotation"?!1:t==null||(0,S.default)(e,t)}function dP(e,t){return!e||e.type!=="TSTypeParameterInstantiation"?!1:t==null||(0,S.default)(e,t)}function hP(e,t){return!e||e.type!=="TSTypeParameterDeclaration"?!1:t==null||(0,S.default)(e,t)}function mP(e,t){return!e||e.type!=="TSTypeParameter"?!1:t==null||(0,S.default)(e,t)}function yP(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return t==null||(0,S.default)(e,t)}function TP(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return t==null||(0,S.default)(e,t)}function SP(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return t==null||(0,S.default)(e,t)}function gP(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,S.default)(e,t)}function xP(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,S.default)(e,t)}function bP(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,S.default)(e,t)}function EP(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return t==null||(0,S.default)(e,t)}function PP(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return t==null||(0,S.default)(e,t)}function AP(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return t==null||(0,S.default)(e,t)}function vP(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return t==null||(0,S.default)(e,t)}function CP(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,S.default)(e,t)}function IP(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return t==null||(0,S.default)(e,t)}function wP(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return t==null||(0,S.default)(e,t)}function NP(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,S.default)(e,t)}function OP(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,S.default)(e,t)}function _P(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,S.default)(e,t)}function kP(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return t==null||(0,S.default)(e,t)}function DP(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,S.default)(e,t)}function LP(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if(e.expectedNode==="Declaration")break;default:return!1}return t==null||(0,S.default)(e,t)}function MP(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,S.default)(e,t)}function FP(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,S.default)(e,t)}function BP(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,S.default)(e,t)}function RP(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,S.default)(e,t)}function jP(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,S.default)(e,t)}function qP(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,S.default)(e,t)}function UP(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return t==null||(0,S.default)(e,t)}function KP(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,S.default)(e,t)}function VP(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return t==null||(0,S.default)(e,t)}function $P(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return t==null||(0,S.default)(e,t)}function JP(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return t==null||(0,S.default)(e,t)}function XP(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Pattern")break;default:return!1}return t==null||(0,S.default)(e,t)}function YP(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return t==null||(0,S.default)(e,t)}function pf(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return t==null||(0,S.default)(e,t)}function WP(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return t==null||(0,S.default)(e,t)}function HP(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return t==null||(0,S.default)(e,t)}function zP(e,t){return!e||e.type!=="ClassAccessorProperty"?!1:t==null||(0,S.default)(e,t)}function GP(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return t==null||(0,S.default)(e,t)}function QP(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,S.default)(e,t)}function ZP(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,S.default)(e,t)}function eA(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return t==null||(0,S.default)(e,t)}function tA(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return t==null||(0,S.default)(e,t)}function rA(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return t==null||(0,S.default)(e,t)}function iA(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return t==null||(0,S.default)(e,t)}function sA(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return t==null||(0,S.default)(e,t)}function nA(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return t==null||(0,S.default)(e,t)}function aA(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return t==null||(0,S.default)(e,t)}function oA(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return t==null||(0,S.default)(e,t)}function lA(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return t==null||(0,S.default)(e,t)}function uA(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return t==null||(0,S.default)(e,t)}function cA(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return t==null||(0,S.default)(e,t)}function pA(e,t){return(0,ns.default)("isNumberLiteral","isNumericLiteral"),!e||e.type!=="NumberLiteral"?!1:t==null||(0,S.default)(e,t)}function fA(e,t){return(0,ns.default)("isRegexLiteral","isRegExpLiteral"),!e||e.type!=="RegexLiteral"?!1:t==null||(0,S.default)(e,t)}function dA(e,t){return(0,ns.default)("isRestProperty","isRestElement"),!e||e.type!=="RestProperty"?!1:t==null||(0,S.default)(e,t)}function hA(e,t){return(0,ns.default)("isSpreadProperty","isSpreadElement"),!e||e.type!=="SpreadProperty"?!1:t==null||(0,S.default)(e,t)}function mA(e,t){return(0,ns.default)("isModuleDeclaration","isImportOrExportDeclaration"),pf(e,t)}});var ro=N(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.default=yA;var si=st();function ff(e){return(0,si.isMemberExpression)(e)||(0,si.isMetaProperty)(e)}function yA(e,t,r){if(!ff(e))return!1;let i=Array.isArray(t)?t:t.split("."),s=[],n;for(n=e;ff(n);n=(a=n.object)!=null?a:n.meta){var a;s.push(n.property)}if(s.push(n),s.length<i.length||!r&&s.length>i.length)return!1;for(let o=0,l=s.length-1;o<i.length;o++,l--){let u=s[l],f;if((0,si.isIdentifier)(u))f=u.name;else if((0,si.isStringLiteral)(u))f=u.value;else if((0,si.isThisExpression)(u))f="this";else if((0,si.isSuper)(u))f="super";else if((0,si.isPrivateName)(u))f="#"+u.id.name;else return!1;if(i[o]!==f)return!1}return!0}});var so=N(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.default=SA;var TA=ro();function SA(e,t){let r=e.split(".");return i=>(0,TA.default)(i,r,t)}});var df=N(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.default=void 0;var gA=so(),xA=(0,gA.default)("React.Component"),JY=cn.default=xA});var hf=N(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.default=bA;function bA(e){return!!e&&/^[a-z]/.test(e)}});var pn=N(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.default=EA;var mf=Jt();function EA(e,t){if(e===t)return!0;if(e==null||mf.ALIAS_KEYS[t])return!1;let r=mf.FLIPPED_ALIAS_KEYS[t];return!!(r!=null&&r.includes(e))}});var lo=N(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.default=AA;var PA=Jt();function AA(e,t){if(e===t)return!0;let r=PA.PLACEHOLDERS_ALIAS[e];return!!(r!=null&&r.includes(t))}});var ki=N(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.default=NA;var vA=un(),CA=pn(),IA=lo(),wA=Jt();function NA(e,t,r){return t?(0,CA.default)(t.type,e)?r===void 0?!0:(0,vA.default)(t,r):!r&&t.type==="Placeholder"&&e in wA.FLIPPED_ALIAS_KEYS?(0,IA.default)(t.expectedNode,e):!1:!1}});var xf=N(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.isIdentifierChar=gf;as.isIdentifierName=DA;as.isIdentifierStart=Sf;var po="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",yf="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",OA=new RegExp("["+po+"]"),_A=new RegExp("["+po+yf+"]");po=yf=null;var Tf=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],kA=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function co(e,t){let r=65536;for(let i=0,s=t.length;i<s;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function Sf(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&OA.test(String.fromCharCode(e)):co(e,Tf)}function gf(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&_A.test(String.fromCharCode(e)):co(e,Tf)||co(e,kA)}function DA(e){let t=!0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if((i&64512)===55296&&r+1<e.length){let s=e.charCodeAt(++r);(s&64512)===56320&&(i=65536+((i&1023)<<10)+(s&1023))}if(t){if(t=!1,!Sf(i))return!1}else if(!gf(i))return!1}return!t}});var Af=N(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.isKeyword=RA;ni.isReservedWord=bf;ni.isStrictBindOnlyReservedWord=Pf;ni.isStrictBindReservedWord=BA;ni.isStrictReservedWord=Ef;var fo={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},LA=new Set(fo.keyword),MA=new Set(fo.strict),FA=new Set(fo.strictBind);function bf(e,t){return t&&e==="await"||e==="enum"}function Ef(e,t){return bf(e,t)||MA.has(e)}function Pf(e){return FA.has(e)}function BA(e,t){return Ef(e,t)||Pf(e)}function RA(e){return LA.has(e)}});var ls=N(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});Object.defineProperty(fr,"isIdentifierChar",{enumerable:!0,get:function(){return ho.isIdentifierChar}});Object.defineProperty(fr,"isIdentifierName",{enumerable:!0,get:function(){return ho.isIdentifierName}});Object.defineProperty(fr,"isIdentifierStart",{enumerable:!0,get:function(){return ho.isIdentifierStart}});Object.defineProperty(fr,"isKeyword",{enumerable:!0,get:function(){return os.isKeyword}});Object.defineProperty(fr,"isReservedWord",{enumerable:!0,get:function(){return os.isReservedWord}});Object.defineProperty(fr,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return os.isStrictBindOnlyReservedWord}});Object.defineProperty(fr,"isStrictBindReservedWord",{enumerable:!0,get:function(){return os.isStrictBindReservedWord}});Object.defineProperty(fr,"isStrictReservedWord",{enumerable:!0,get:function(){return os.isStrictReservedWord}});var ho=xf(),os=Af()});var Di=N(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.default=jA;var mo=ls();function jA(e,t=!0){return typeof e!="string"||t&&((0,mo.isKeyword)(e)||(0,mo.isStrictReservedWord)(e,!0))?!1:(0,mo.isIdentifierName)(e)}});var wf=N(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.readCodePoint=If;us.readInt=Cf;us.readStringContents=UA;var qA=function(t){return t>=48&&t<=57},vf={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},fn={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function UA(e,t,r,i,s,n){let a=r,o=i,l=s,u="",f=null,h=r,{length:g}=t;for(;;){if(r>=g){n.unterminated(a,o,l),u+=t.slice(h,r);break}let b=t.charCodeAt(r);if(KA(e,b,t,r)){u+=t.slice(h,r);break}if(b===92){u+=t.slice(h,r);let E=VA(t,r,i,s,e==="template",n);E.ch===null&&!f?f={pos:r,lineStart:i,curLine:s}:u+=E.ch,{pos:r,lineStart:i,curLine:s}=E,h=r}else b===8232||b===8233?(++r,++s,i=r):b===10||b===13?e==="template"?(u+=t.slice(h,r)+`
9
- `,++r,b===13&&t.charCodeAt(r)===10&&++r,++s,h=i=r):n.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:f,lineStart:i,curLine:s,containsInvalid:!!f}}function KA(e,t,r,i){return e==="template"?t===96||t===36&&r.charCodeAt(i+1)===123:t===(e==="double"?34:39)}function VA(e,t,r,i,s,n){let a=!s;t++;let o=u=>({pos:t,ch:u,lineStart:r,curLine:i}),l=e.charCodeAt(t++);switch(l){case 110:return o(`
10
- `);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=To(e,t,r,i,2,!1,a,n),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=If(e,t,r,i,a,n),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++i;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);n.strictNumericEscape(t-1,r,i);default:if(l>=48&&l<=55){let u=t-1,h=/^[0-7]+/.exec(e.slice(u,t+2))[0],g=parseInt(h,8);g>255&&(h=h.slice(0,-1),g=parseInt(h,8)),t+=h.length-1;let b=e.charCodeAt(t);if(h!=="0"||b===56||b===57){if(s)return o(null);n.strictNumericEscape(u,r,i)}return o(String.fromCharCode(g))}return o(String.fromCharCode(l))}}function To(e,t,r,i,s,n,a,o){let l=t,u;return{n:u,pos:t}=Cf(e,t,r,i,16,s,n,!1,o,!a),u===null&&(a?o.invalidEscapeSequence(l,r,i):t=l-1),{code:u,pos:t}}function Cf(e,t,r,i,s,n,a,o,l,u){let f=t,h=s===16?vf.hex:vf.decBinOct,g=s===16?fn.hex:s===10?fn.dec:s===8?fn.oct:fn.bin,b=!1,E=0;for(let w=0,A=n??1/0;w<A;++w){let I=e.charCodeAt(t),k;if(I===95&&o!=="bail"){let Y=e.charCodeAt(t-1),B=e.charCodeAt(t+1);if(o){if(Number.isNaN(B)||!g(B)||h.has(Y)||h.has(B)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,i)}}else{if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,i)}++t;continue}if(I>=97?k=I-97+10:I>=65?k=I-65+10:qA(I)?k=I-48:k=1/0,k>=s){if(k<=9&&u)return{n:null,pos:t};if(k<=9&&l.invalidDigit(t,r,i,s))k=0;else if(a)k=0,b=!0;else break}++t,E=E*s+k}return t===f||n!=null&&t-f!==n||b?{n:null,pos:t}:{n:E,pos:t}}function If(e,t,r,i,s,n){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=To(e,t,r,i,e.indexOf("}",t)-t,!0,s,n),++t,o!==null&&o>1114111)if(s)n.invalidCodePoint(t,r,i);else return{code:null,pos:t}}else({code:o,pos:t}=To(e,t,r,i,4,!1,s,n));return{code:o,pos:t}}});var Li=N(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.UPDATE_OPERATORS=Se.UNARY_OPERATORS=Se.STRING_UNARY_OPERATORS=Se.STATEMENT_OR_BLOCK_KEYS=Se.NUMBER_UNARY_OPERATORS=Se.NUMBER_BINARY_OPERATORS=Se.LOGICAL_OPERATORS=Se.INHERIT_KEYS=Se.FOR_INIT_KEYS=Se.FLATTENABLE_KEYS=Se.EQUALITY_BINARY_OPERATORS=Se.COMPARISON_BINARY_OPERATORS=Se.COMMENT_KEYS=Se.BOOLEAN_UNARY_OPERATORS=Se.BOOLEAN_NUMBER_BINARY_OPERATORS=Se.BOOLEAN_BINARY_OPERATORS=Se.BINARY_OPERATORS=Se.ASSIGNMENT_OPERATORS=void 0;var rW=Se.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],iW=Se.FLATTENABLE_KEYS=["body","expressions"],sW=Se.FOR_INIT_KEYS=["left","init"],nW=Se.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],$A=Se.LOGICAL_OPERATORS=["||","&&","??"],aW=Se.UPDATE_OPERATORS=["++","--"],JA=Se.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],XA=Se.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],YA=Se.COMPARISON_BINARY_OPERATORS=[...XA,"in","instanceof"],WA=Se.BOOLEAN_BINARY_OPERATORS=[...YA,...JA],Nf=Se.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],oW=Se.BINARY_OPERATORS=["+",...Nf,...WA,"|>"],lW=Se.ASSIGNMENT_OPERATORS=["=","+=",...Nf.map(e=>e+"="),...$A.map(e=>e+"=")],HA=Se.BOOLEAN_UNARY_OPERATORS=["delete","!"],zA=Se.NUMBER_UNARY_OPERATORS=["+","-","~"],GA=Se.STRING_UNARY_OPERATORS=["typeof"],uW=Se.UNARY_OPERATORS=["void","throw",...HA,...zA,...GA],cW=Se.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};Se.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");Se.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var dr=N(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.allExpandedTypes=Ne.VISITOR_KEYS=Ne.NODE_UNION_SHAPES__PRIVATE=Ne.NODE_PARENT_VALIDATIONS=Ne.NODE_FIELDS=Ne.FLIPPED_ALIAS_KEYS=Ne.DEPRECATED_KEYS=Ne.BUILDER_KEYS=Ne.ALIAS_KEYS=void 0;Ne.arrayOf=_f;Ne.arrayOfType=kf;Ne.assertEach=Df;Ne.assertNodeOrValueType=pv;Ne.assertNodeType=hn;Ne.assertOneOf=uv;Ne.assertOptionalChainStart=dv;Ne.assertShape=fv;Ne.assertValueType=bo;Ne.chain=Lf;Ne.default=Mf;Ne.defineAliasedType=yv;Ne.validate=xo;Ne.validateArrayOfType=lv;Ne.validateOptional=av;Ne.validateOptionalType=ov;Ne.validateType=nv;var Of=ki(),cs=mn(),QA=Ne.VISITOR_KEYS={},ZA=Ne.ALIAS_KEYS={},So=Ne.FLIPPED_ALIAS_KEYS={},ev=Ne.NODE_FIELDS={},tv=Ne.BUILDER_KEYS={},rv=Ne.DEPRECATED_KEYS={},iv=Ne.NODE_PARENT_VALIDATIONS={},sv=Ne.NODE_UNION_SHAPES__PRIVATE={};function dn(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function xo(e){return{validate:e}}function nv(...e){return xo(hn(...e))}function av(e){return{validate:e,optional:!0}}function ov(...e){return{validate:hn(...e),optional:!0}}function _f(e){return Lf(bo("array"),Df(e))}function kf(...e){return _f(hn(...e))}function lv(...e){return xo(kf(...e))}function Df(e){let t=process.env.BABEL_TYPES_8_BREAKING?cs.validateChild:()=>{};function r(i,s,n){if(!Array.isArray(n))return;let a=0,o={toString(){return`${s}[${a}]`}};for(;a<n.length;a++){let l=n[a];e(i,o,l),t(i,o,l)}}return r.each=e,r}function uv(...e){function t(r,i,s){if(!e.includes(s))throw new TypeError(`Property ${i} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(s)}`)}return t.oneOf=e,t}var cv=Ne.allExpandedTypes=[];function hn(...e){let t=new Set;cv.push({types:e,set:t});function r(i,s,n){let a=n?.type;if(a!=null){if(t.has(a)){(0,cs.validateChild)(i,s,n);return}if(a==="Placeholder"){for(let o of e)if((0,Of.default)(o,n)){(0,cs.validateChild)(i,s,n);return}}}throw new TypeError(`Property ${s} of ${i.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(a)}`)}return r.oneOfNodeTypes=e,r}function pv(...e){function t(r,i,s){let n=dn(s);for(let a of e)if(n===a||(0,Of.default)(a,s)){(0,cs.validateChild)(r,i,s);return}throw new TypeError(`Property ${i} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(s?.type)}`)}return t.oneOfNodeOrValueTypes=e,t}function bo(e){function t(r,i,s){if(dn(s)!==e)throw new TypeError(`Property ${i} expected type of ${e} but got ${dn(s)}`)}return t.type=e,t}function fv(e){let t=Object.keys(e);function r(i,s,n){let a=[];for(let o of t)try{(0,cs.validateField)(i,o,n[o],e[o])}catch(l){if(l instanceof TypeError){a.push(l.message);continue}throw l}if(a.length)throw new TypeError(`Property ${s} of ${i.type} expected to have the following:
4
+ `+n),e.push(s+"m+"+ln.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=_S()+t+" "+e[0]}function _S(){return xt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function kS(...e){return process.stderr.write(on.formatWithOptions(xt.inspectOpts,...e)+`
5
+ `)}function DS(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function LS(){return process.env.DEBUG}function MS(e){e.inspectOpts={};let t=Object.keys(xt.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=xt.inspectOpts[t[r]]}ln.exports=Ga()(xt);var{formatters:cf}=ln.exports;cf.o=function(e){return this.inspectOpts.colors=this.useColors,on.inspect(e,this.inspectOpts).split(`
6
+ `).map(t=>t.trim()).join(" ")};cf.O=function(e){return this.inspectOpts.colors=this.useColors,on.inspect(e,this.inspectOpts)}});var ff=N((JY,eo)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?eo.exports=sf():eo.exports=pf()});var un=N(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.default=BS;function BS(e,t){let r=Object.keys(t);for(let i of r)if(e[i]!==t[i])return!1;return!0}});var ki=N(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.default=FS;var df=new Set;function FS(e,t,r="",i=e){if(df.has(i))return;df.add(i);let{internal:s,trace:n}=RS(1,2);s||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
7
+ ${n}`)}function RS(e,t){let{stackTraceLimit:r,prepareStackTrace:i}=Error,s;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(a,o){s=o},new Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=i,!s)return{internal:!1,trace:""};let n=s.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(n[1].getFileName()),trace:n.map(a=>` at ${a}`).join(`
8
+ `)}}});var st=N(m=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});m.isAccessor=rA;m.isAnyTypeAnnotation=xb;m.isArgumentPlaceholder=H0;m.isArrayExpression=jS;m.isArrayPattern=Fx;m.isArrayTypeAnnotation=bb;m.isArrowFunctionExpression=Rx;m.isAssignmentExpression=qS;m.isAssignmentPattern=Bx;m.isAwaitExpression=ob;m.isBigIntLiteral=ub;m.isBinary=AP;m.isBinaryExpression=US;m.isBindExpression=z0;m.isBlock=IP;m.isBlockParent=CP;m.isBlockStatement=JS;m.isBooleanLiteral=fx;m.isBooleanLiteralTypeAnnotation=Pb;m.isBooleanTypeAnnotation=Eb;m.isBreakStatement=XS;m.isCallExpression=YS;m.isCatchClause=WS;m.isClass=ZP;m.isClassAccessorProperty=hb;m.isClassBody=jx;m.isClassDeclaration=Ux;m.isClassExpression=qx;m.isClassImplements=vb;m.isClassMethod=Zx;m.isClassPrivateMethod=yb;m.isClassPrivateProperty=mb;m.isClassProperty=db;m.isCompletionStatement=OP;m.isConditional=_P;m.isConditionalExpression=HS;m.isContinueStatement=zS;m.isDebuggerStatement=GS;m.isDecimalLiteral=rE;m.isDeclaration=qP;m.isDeclareClass=Cb;m.isDeclareExportAllDeclaration=Mb;m.isDeclareExportDeclaration=Lb;m.isDeclareFunction=Ib;m.isDeclareInterface=wb;m.isDeclareModule=Nb;m.isDeclareModuleExports=Ob;m.isDeclareOpaqueType=kb;m.isDeclareTypeAlias=_b;m.isDeclareVariable=Db;m.isDeclaredPredicate=Bb;m.isDecorator=G0;m.isDirective=VS;m.isDirectiveLiteral=$S;m.isDoExpression=Q0;m.isDoWhileStatement=QS;m.isEmptyStatement=ZS;m.isEmptyTypeAnnotation=Yb;m.isEnumBody=uA;m.isEnumBooleanBody=b0;m.isEnumBooleanMember=v0;m.isEnumDeclaration=x0;m.isEnumDefaultedMember=w0;m.isEnumMember=cA;m.isEnumNumberBody=E0;m.isEnumNumberMember=C0;m.isEnumStringBody=P0;m.isEnumStringMember=I0;m.isEnumSymbolBody=A0;m.isExistsTypeAnnotation=Fb;m.isExportAllDeclaration=Kx;m.isExportDeclaration=eA;m.isExportDefaultDeclaration=Vx;m.isExportDefaultSpecifier=Z0;m.isExportNamedDeclaration=$x;m.isExportNamespaceSpecifier=cb;m.isExportSpecifier=Jx;m.isExpression=PP;m.isExpressionStatement=ex;m.isExpressionWrapper=LP;m.isFile=tx;m.isFlow=sA;m.isFlowBaseAnnotation=aA;m.isFlowDeclaration=oA;m.isFlowPredicate=lA;m.isFlowType=nA;m.isFor=MP;m.isForInStatement=rx;m.isForOfStatement=Xx;m.isForStatement=ix;m.isForXStatement=BP;m.isFunction=FP;m.isFunctionDeclaration=sx;m.isFunctionExpression=nx;m.isFunctionParameter=UP;m.isFunctionParent=RP;m.isFunctionTypeAnnotation=Rb;m.isFunctionTypeParam=jb;m.isGenericTypeAnnotation=qb;m.isIdentifier=ax;m.isIfStatement=ox;m.isImmutable=XP;m.isImport=lb;m.isImportAttribute=Sb;m.isImportDeclaration=Yx;m.isImportDefaultSpecifier=Wx;m.isImportExpression=Gx;m.isImportNamespaceSpecifier=Hx;m.isImportOrExportDeclaration=hf;m.isImportSpecifier=zx;m.isIndexedAccessType=N0;m.isInferredPredicate=Ub;m.isInterfaceDeclaration=Vb;m.isInterfaceExtends=Kb;m.isInterfaceTypeAnnotation=$b;m.isInterpreterDirective=KS;m.isIntersectionTypeAnnotation=Jb;m.isJSX=pA;m.isJSXAttribute=_0;m.isJSXClosingElement=k0;m.isJSXClosingFragment=J0;m.isJSXElement=D0;m.isJSXEmptyExpression=L0;m.isJSXExpressionContainer=M0;m.isJSXFragment=V0;m.isJSXIdentifier=F0;m.isJSXMemberExpression=R0;m.isJSXNamespacedName=j0;m.isJSXOpeningElement=q0;m.isJSXOpeningFragment=$0;m.isJSXSpreadAttribute=U0;m.isJSXSpreadChild=B0;m.isJSXText=K0;m.isLVal=VP;m.isLabeledStatement=lx;m.isLiteral=JP;m.isLogicalExpression=hx;m.isLoop=kP;m.isMemberExpression=mx;m.isMetaProperty=Qx;m.isMethod=WP;m.isMiscellaneous=fA;m.isMixedTypeAnnotation=Xb;m.isModuleDeclaration=bA;m.isModuleExpression=iE;m.isModuleSpecifier=tA;m.isNewExpression=yx;m.isNoop=X0;m.isNullLiteral=px;m.isNullLiteralTypeAnnotation=Ab;m.isNullableTypeAnnotation=Wb;m.isNumberLiteral=TA;m.isNumberLiteralTypeAnnotation=Hb;m.isNumberTypeAnnotation=zb;m.isNumericLiteral=cx;m.isObjectExpression=gx;m.isObjectMember=HP;m.isObjectMethod=Sx;m.isObjectPattern=eb;m.isObjectProperty=xx;m.isObjectTypeAnnotation=Gb;m.isObjectTypeCallProperty=Zb;m.isObjectTypeIndexer=e0;m.isObjectTypeInternalSlot=Qb;m.isObjectTypeProperty=t0;m.isObjectTypeSpreadProperty=r0;m.isOpaqueType=i0;m.isOptionalCallExpression=fb;m.isOptionalIndexedAccessType=O0;m.isOptionalMemberExpression=pb;m.isParenthesizedExpression=Ax;m.isPattern=QP;m.isPatternLike=KP;m.isPipelineBareFunction=aE;m.isPipelinePrimaryTopicReference=oE;m.isPipelineTopicExpression=nE;m.isPlaceholder=Y0;m.isPrivate=iA;m.isPrivateName=Tb;m.isProgram=Tx;m.isProperty=zP;m.isPureish=jP;m.isQualifiedTypeIdentifier=s0;m.isRecordExpression=eE;m.isRegExpLiteral=dx;m.isRegexLiteral=gA;m.isRestElement=bx;m.isRestProperty=SA;m.isReturnStatement=Ex;m.isScopable=vP;m.isSequenceExpression=Px;m.isSpreadElement=tb;m.isSpreadProperty=xA;m.isStandardized=EP;m.isStatement=wP;m.isStaticBlock=gb;m.isStringLiteral=ux;m.isStringLiteralTypeAnnotation=n0;m.isStringTypeAnnotation=a0;m.isSuper=rb;m.isSwitchCase=vx;m.isSwitchStatement=Cx;m.isSymbolTypeAnnotation=o0;m.isTSAnyKeyword=gE;m.isTSArrayType=RE;m.isTSAsExpression=sP;m.isTSBaseType=yA;m.isTSBigIntKeyword=xE;m.isTSBooleanKeyword=SE;m.isTSCallSignatureDeclaration=dE;m.isTSConditionalType=JE;m.isTSConstructSignatureDeclaration=hE;m.isTSConstructorType=DE;m.isTSDeclareFunction=cE;m.isTSDeclareMethod=pE;m.isTSEntityName=$P;m.isTSEnumBody=oP;m.isTSEnumDeclaration=lP;m.isTSEnumMember=uP;m.isTSExportAssignment=yP;m.isTSExpressionWithTypeArguments=ZE;m.isTSExternalModuleReference=hP;m.isTSFunctionType=kE;m.isTSImportEqualsDeclaration=dP;m.isTSImportType=fP;m.isTSIndexSignature=TE;m.isTSIndexedAccessType=HE;m.isTSInferType=XE;m.isTSInstantiationExpression=iP;m.isTSInterfaceBody=tP;m.isTSInterfaceDeclaration=eP;m.isTSIntersectionType=$E;m.isTSIntrinsicKeyword=bE;m.isTSLiteralType=QE;m.isTSMappedType=zE;m.isTSMethodSignature=yE;m.isTSModuleBlock=pP;m.isTSModuleDeclaration=cP;m.isTSNamedTupleMember=KE;m.isTSNamespaceExportDeclaration=TP;m.isTSNeverKeyword=EE;m.isTSNonNullExpression=mP;m.isTSNullKeyword=PE;m.isTSNumberKeyword=AE;m.isTSObjectKeyword=vE;m.isTSOptionalType=qE;m.isTSParameterProperty=uE;m.isTSParenthesizedType=YE;m.isTSPropertySignature=mE;m.isTSQualifiedName=fE;m.isTSRestType=UE;m.isTSSatisfiesExpression=nP;m.isTSStringKeyword=CE;m.isTSSymbolKeyword=IE;m.isTSTemplateLiteralType=GE;m.isTSThisType=_E;m.isTSTupleType=jE;m.isTSType=mA;m.isTSTypeAliasDeclaration=rP;m.isTSTypeAnnotation=gP;m.isTSTypeAssertion=aP;m.isTSTypeElement=hA;m.isTSTypeLiteral=FE;m.isTSTypeOperator=WE;m.isTSTypeParameter=bP;m.isTSTypeParameterDeclaration=xP;m.isTSTypeParameterInstantiation=SP;m.isTSTypePredicate=ME;m.isTSTypeQuery=BE;m.isTSTypeReference=LE;m.isTSUndefinedKeyword=wE;m.isTSUnionType=VE;m.isTSUnknownKeyword=NE;m.isTSVoidKeyword=OE;m.isTaggedTemplateExpression=ib;m.isTemplateElement=sb;m.isTemplateLiteral=nb;m.isTerminatorless=NP;m.isThisExpression=Ix;m.isThisTypeAnnotation=l0;m.isThrowStatement=wx;m.isTopicReference=sE;m.isTryStatement=Nx;m.isTupleExpression=tE;m.isTupleTypeAnnotation=u0;m.isTypeAlias=p0;m.isTypeAnnotation=f0;m.isTypeCastExpression=d0;m.isTypeParameter=h0;m.isTypeParameterDeclaration=m0;m.isTypeParameterInstantiation=y0;m.isTypeScript=dA;m.isTypeofTypeAnnotation=c0;m.isUnaryExpression=Ox;m.isUnaryLike=GP;m.isUnionTypeAnnotation=T0;m.isUpdateExpression=_x;m.isUserWhitespacable=YP;m.isV8IntrinsicIdentifier=W0;m.isVariableDeclaration=kx;m.isVariableDeclarator=Dx;m.isVariance=g0;m.isVoidPattern=lE;m.isVoidTypeAnnotation=S0;m.isWhile=DP;m.isWhileStatement=Lx;m.isWithStatement=Mx;m.isYieldExpression=ab;var g=un(),as=ki();function jS(e,t){return!e||e.type!=="ArrayExpression"?!1:t==null||(0,g.default)(e,t)}function qS(e,t){return!e||e.type!=="AssignmentExpression"?!1:t==null||(0,g.default)(e,t)}function US(e,t){return!e||e.type!=="BinaryExpression"?!1:t==null||(0,g.default)(e,t)}function KS(e,t){return!e||e.type!=="InterpreterDirective"?!1:t==null||(0,g.default)(e,t)}function VS(e,t){return!e||e.type!=="Directive"?!1:t==null||(0,g.default)(e,t)}function $S(e,t){return!e||e.type!=="DirectiveLiteral"?!1:t==null||(0,g.default)(e,t)}function JS(e,t){return!e||e.type!=="BlockStatement"?!1:t==null||(0,g.default)(e,t)}function XS(e,t){return!e||e.type!=="BreakStatement"?!1:t==null||(0,g.default)(e,t)}function YS(e,t){return!e||e.type!=="CallExpression"?!1:t==null||(0,g.default)(e,t)}function WS(e,t){return!e||e.type!=="CatchClause"?!1:t==null||(0,g.default)(e,t)}function HS(e,t){return!e||e.type!=="ConditionalExpression"?!1:t==null||(0,g.default)(e,t)}function zS(e,t){return!e||e.type!=="ContinueStatement"?!1:t==null||(0,g.default)(e,t)}function GS(e,t){return!e||e.type!=="DebuggerStatement"?!1:t==null||(0,g.default)(e,t)}function QS(e,t){return!e||e.type!=="DoWhileStatement"?!1:t==null||(0,g.default)(e,t)}function ZS(e,t){return!e||e.type!=="EmptyStatement"?!1:t==null||(0,g.default)(e,t)}function ex(e,t){return!e||e.type!=="ExpressionStatement"?!1:t==null||(0,g.default)(e,t)}function tx(e,t){return!e||e.type!=="File"?!1:t==null||(0,g.default)(e,t)}function rx(e,t){return!e||e.type!=="ForInStatement"?!1:t==null||(0,g.default)(e,t)}function ix(e,t){return!e||e.type!=="ForStatement"?!1:t==null||(0,g.default)(e,t)}function sx(e,t){return!e||e.type!=="FunctionDeclaration"?!1:t==null||(0,g.default)(e,t)}function nx(e,t){return!e||e.type!=="FunctionExpression"?!1:t==null||(0,g.default)(e,t)}function ax(e,t){return!e||e.type!=="Identifier"?!1:t==null||(0,g.default)(e,t)}function ox(e,t){return!e||e.type!=="IfStatement"?!1:t==null||(0,g.default)(e,t)}function lx(e,t){return!e||e.type!=="LabeledStatement"?!1:t==null||(0,g.default)(e,t)}function ux(e,t){return!e||e.type!=="StringLiteral"?!1:t==null||(0,g.default)(e,t)}function cx(e,t){return!e||e.type!=="NumericLiteral"?!1:t==null||(0,g.default)(e,t)}function px(e,t){return!e||e.type!=="NullLiteral"?!1:t==null||(0,g.default)(e,t)}function fx(e,t){return!e||e.type!=="BooleanLiteral"?!1:t==null||(0,g.default)(e,t)}function dx(e,t){return!e||e.type!=="RegExpLiteral"?!1:t==null||(0,g.default)(e,t)}function hx(e,t){return!e||e.type!=="LogicalExpression"?!1:t==null||(0,g.default)(e,t)}function mx(e,t){return!e||e.type!=="MemberExpression"?!1:t==null||(0,g.default)(e,t)}function yx(e,t){return!e||e.type!=="NewExpression"?!1:t==null||(0,g.default)(e,t)}function Tx(e,t){return!e||e.type!=="Program"?!1:t==null||(0,g.default)(e,t)}function gx(e,t){return!e||e.type!=="ObjectExpression"?!1:t==null||(0,g.default)(e,t)}function Sx(e,t){return!e||e.type!=="ObjectMethod"?!1:t==null||(0,g.default)(e,t)}function xx(e,t){return!e||e.type!=="ObjectProperty"?!1:t==null||(0,g.default)(e,t)}function bx(e,t){return!e||e.type!=="RestElement"?!1:t==null||(0,g.default)(e,t)}function Ex(e,t){return!e||e.type!=="ReturnStatement"?!1:t==null||(0,g.default)(e,t)}function Px(e,t){return!e||e.type!=="SequenceExpression"?!1:t==null||(0,g.default)(e,t)}function Ax(e,t){return!e||e.type!=="ParenthesizedExpression"?!1:t==null||(0,g.default)(e,t)}function vx(e,t){return!e||e.type!=="SwitchCase"?!1:t==null||(0,g.default)(e,t)}function Cx(e,t){return!e||e.type!=="SwitchStatement"?!1:t==null||(0,g.default)(e,t)}function Ix(e,t){return!e||e.type!=="ThisExpression"?!1:t==null||(0,g.default)(e,t)}function wx(e,t){return!e||e.type!=="ThrowStatement"?!1:t==null||(0,g.default)(e,t)}function Nx(e,t){return!e||e.type!=="TryStatement"?!1:t==null||(0,g.default)(e,t)}function Ox(e,t){return!e||e.type!=="UnaryExpression"?!1:t==null||(0,g.default)(e,t)}function _x(e,t){return!e||e.type!=="UpdateExpression"?!1:t==null||(0,g.default)(e,t)}function kx(e,t){return!e||e.type!=="VariableDeclaration"?!1:t==null||(0,g.default)(e,t)}function Dx(e,t){return!e||e.type!=="VariableDeclarator"?!1:t==null||(0,g.default)(e,t)}function Lx(e,t){return!e||e.type!=="WhileStatement"?!1:t==null||(0,g.default)(e,t)}function Mx(e,t){return!e||e.type!=="WithStatement"?!1:t==null||(0,g.default)(e,t)}function Bx(e,t){return!e||e.type!=="AssignmentPattern"?!1:t==null||(0,g.default)(e,t)}function Fx(e,t){return!e||e.type!=="ArrayPattern"?!1:t==null||(0,g.default)(e,t)}function Rx(e,t){return!e||e.type!=="ArrowFunctionExpression"?!1:t==null||(0,g.default)(e,t)}function jx(e,t){return!e||e.type!=="ClassBody"?!1:t==null||(0,g.default)(e,t)}function qx(e,t){return!e||e.type!=="ClassExpression"?!1:t==null||(0,g.default)(e,t)}function Ux(e,t){return!e||e.type!=="ClassDeclaration"?!1:t==null||(0,g.default)(e,t)}function Kx(e,t){return!e||e.type!=="ExportAllDeclaration"?!1:t==null||(0,g.default)(e,t)}function Vx(e,t){return!e||e.type!=="ExportDefaultDeclaration"?!1:t==null||(0,g.default)(e,t)}function $x(e,t){return!e||e.type!=="ExportNamedDeclaration"?!1:t==null||(0,g.default)(e,t)}function Jx(e,t){return!e||e.type!=="ExportSpecifier"?!1:t==null||(0,g.default)(e,t)}function Xx(e,t){return!e||e.type!=="ForOfStatement"?!1:t==null||(0,g.default)(e,t)}function Yx(e,t){return!e||e.type!=="ImportDeclaration"?!1:t==null||(0,g.default)(e,t)}function Wx(e,t){return!e||e.type!=="ImportDefaultSpecifier"?!1:t==null||(0,g.default)(e,t)}function Hx(e,t){return!e||e.type!=="ImportNamespaceSpecifier"?!1:t==null||(0,g.default)(e,t)}function zx(e,t){return!e||e.type!=="ImportSpecifier"?!1:t==null||(0,g.default)(e,t)}function Gx(e,t){return!e||e.type!=="ImportExpression"?!1:t==null||(0,g.default)(e,t)}function Qx(e,t){return!e||e.type!=="MetaProperty"?!1:t==null||(0,g.default)(e,t)}function Zx(e,t){return!e||e.type!=="ClassMethod"?!1:t==null||(0,g.default)(e,t)}function eb(e,t){return!e||e.type!=="ObjectPattern"?!1:t==null||(0,g.default)(e,t)}function tb(e,t){return!e||e.type!=="SpreadElement"?!1:t==null||(0,g.default)(e,t)}function rb(e,t){return!e||e.type!=="Super"?!1:t==null||(0,g.default)(e,t)}function ib(e,t){return!e||e.type!=="TaggedTemplateExpression"?!1:t==null||(0,g.default)(e,t)}function sb(e,t){return!e||e.type!=="TemplateElement"?!1:t==null||(0,g.default)(e,t)}function nb(e,t){return!e||e.type!=="TemplateLiteral"?!1:t==null||(0,g.default)(e,t)}function ab(e,t){return!e||e.type!=="YieldExpression"?!1:t==null||(0,g.default)(e,t)}function ob(e,t){return!e||e.type!=="AwaitExpression"?!1:t==null||(0,g.default)(e,t)}function lb(e,t){return!e||e.type!=="Import"?!1:t==null||(0,g.default)(e,t)}function ub(e,t){return!e||e.type!=="BigIntLiteral"?!1:t==null||(0,g.default)(e,t)}function cb(e,t){return!e||e.type!=="ExportNamespaceSpecifier"?!1:t==null||(0,g.default)(e,t)}function pb(e,t){return!e||e.type!=="OptionalMemberExpression"?!1:t==null||(0,g.default)(e,t)}function fb(e,t){return!e||e.type!=="OptionalCallExpression"?!1:t==null||(0,g.default)(e,t)}function db(e,t){return!e||e.type!=="ClassProperty"?!1:t==null||(0,g.default)(e,t)}function hb(e,t){return!e||e.type!=="ClassAccessorProperty"?!1:t==null||(0,g.default)(e,t)}function mb(e,t){return!e||e.type!=="ClassPrivateProperty"?!1:t==null||(0,g.default)(e,t)}function yb(e,t){return!e||e.type!=="ClassPrivateMethod"?!1:t==null||(0,g.default)(e,t)}function Tb(e,t){return!e||e.type!=="PrivateName"?!1:t==null||(0,g.default)(e,t)}function gb(e,t){return!e||e.type!=="StaticBlock"?!1:t==null||(0,g.default)(e,t)}function Sb(e,t){return!e||e.type!=="ImportAttribute"?!1:t==null||(0,g.default)(e,t)}function xb(e,t){return!e||e.type!=="AnyTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function bb(e,t){return!e||e.type!=="ArrayTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function Eb(e,t){return!e||e.type!=="BooleanTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function Pb(e,t){return!e||e.type!=="BooleanLiteralTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function Ab(e,t){return!e||e.type!=="NullLiteralTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function vb(e,t){return!e||e.type!=="ClassImplements"?!1:t==null||(0,g.default)(e,t)}function Cb(e,t){return!e||e.type!=="DeclareClass"?!1:t==null||(0,g.default)(e,t)}function Ib(e,t){return!e||e.type!=="DeclareFunction"?!1:t==null||(0,g.default)(e,t)}function wb(e,t){return!e||e.type!=="DeclareInterface"?!1:t==null||(0,g.default)(e,t)}function Nb(e,t){return!e||e.type!=="DeclareModule"?!1:t==null||(0,g.default)(e,t)}function Ob(e,t){return!e||e.type!=="DeclareModuleExports"?!1:t==null||(0,g.default)(e,t)}function _b(e,t){return!e||e.type!=="DeclareTypeAlias"?!1:t==null||(0,g.default)(e,t)}function kb(e,t){return!e||e.type!=="DeclareOpaqueType"?!1:t==null||(0,g.default)(e,t)}function Db(e,t){return!e||e.type!=="DeclareVariable"?!1:t==null||(0,g.default)(e,t)}function Lb(e,t){return!e||e.type!=="DeclareExportDeclaration"?!1:t==null||(0,g.default)(e,t)}function Mb(e,t){return!e||e.type!=="DeclareExportAllDeclaration"?!1:t==null||(0,g.default)(e,t)}function Bb(e,t){return!e||e.type!=="DeclaredPredicate"?!1:t==null||(0,g.default)(e,t)}function Fb(e,t){return!e||e.type!=="ExistsTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function Rb(e,t){return!e||e.type!=="FunctionTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function jb(e,t){return!e||e.type!=="FunctionTypeParam"?!1:t==null||(0,g.default)(e,t)}function qb(e,t){return!e||e.type!=="GenericTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function Ub(e,t){return!e||e.type!=="InferredPredicate"?!1:t==null||(0,g.default)(e,t)}function Kb(e,t){return!e||e.type!=="InterfaceExtends"?!1:t==null||(0,g.default)(e,t)}function Vb(e,t){return!e||e.type!=="InterfaceDeclaration"?!1:t==null||(0,g.default)(e,t)}function $b(e,t){return!e||e.type!=="InterfaceTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function Jb(e,t){return!e||e.type!=="IntersectionTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function Xb(e,t){return!e||e.type!=="MixedTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function Yb(e,t){return!e||e.type!=="EmptyTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function Wb(e,t){return!e||e.type!=="NullableTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function Hb(e,t){return!e||e.type!=="NumberLiteralTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function zb(e,t){return!e||e.type!=="NumberTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function Gb(e,t){return!e||e.type!=="ObjectTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function Qb(e,t){return!e||e.type!=="ObjectTypeInternalSlot"?!1:t==null||(0,g.default)(e,t)}function Zb(e,t){return!e||e.type!=="ObjectTypeCallProperty"?!1:t==null||(0,g.default)(e,t)}function e0(e,t){return!e||e.type!=="ObjectTypeIndexer"?!1:t==null||(0,g.default)(e,t)}function t0(e,t){return!e||e.type!=="ObjectTypeProperty"?!1:t==null||(0,g.default)(e,t)}function r0(e,t){return!e||e.type!=="ObjectTypeSpreadProperty"?!1:t==null||(0,g.default)(e,t)}function i0(e,t){return!e||e.type!=="OpaqueType"?!1:t==null||(0,g.default)(e,t)}function s0(e,t){return!e||e.type!=="QualifiedTypeIdentifier"?!1:t==null||(0,g.default)(e,t)}function n0(e,t){return!e||e.type!=="StringLiteralTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function a0(e,t){return!e||e.type!=="StringTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function o0(e,t){return!e||e.type!=="SymbolTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function l0(e,t){return!e||e.type!=="ThisTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function u0(e,t){return!e||e.type!=="TupleTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function c0(e,t){return!e||e.type!=="TypeofTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function p0(e,t){return!e||e.type!=="TypeAlias"?!1:t==null||(0,g.default)(e,t)}function f0(e,t){return!e||e.type!=="TypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function d0(e,t){return!e||e.type!=="TypeCastExpression"?!1:t==null||(0,g.default)(e,t)}function h0(e,t){return!e||e.type!=="TypeParameter"?!1:t==null||(0,g.default)(e,t)}function m0(e,t){return!e||e.type!=="TypeParameterDeclaration"?!1:t==null||(0,g.default)(e,t)}function y0(e,t){return!e||e.type!=="TypeParameterInstantiation"?!1:t==null||(0,g.default)(e,t)}function T0(e,t){return!e||e.type!=="UnionTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function g0(e,t){return!e||e.type!=="Variance"?!1:t==null||(0,g.default)(e,t)}function S0(e,t){return!e||e.type!=="VoidTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function x0(e,t){return!e||e.type!=="EnumDeclaration"?!1:t==null||(0,g.default)(e,t)}function b0(e,t){return!e||e.type!=="EnumBooleanBody"?!1:t==null||(0,g.default)(e,t)}function E0(e,t){return!e||e.type!=="EnumNumberBody"?!1:t==null||(0,g.default)(e,t)}function P0(e,t){return!e||e.type!=="EnumStringBody"?!1:t==null||(0,g.default)(e,t)}function A0(e,t){return!e||e.type!=="EnumSymbolBody"?!1:t==null||(0,g.default)(e,t)}function v0(e,t){return!e||e.type!=="EnumBooleanMember"?!1:t==null||(0,g.default)(e,t)}function C0(e,t){return!e||e.type!=="EnumNumberMember"?!1:t==null||(0,g.default)(e,t)}function I0(e,t){return!e||e.type!=="EnumStringMember"?!1:t==null||(0,g.default)(e,t)}function w0(e,t){return!e||e.type!=="EnumDefaultedMember"?!1:t==null||(0,g.default)(e,t)}function N0(e,t){return!e||e.type!=="IndexedAccessType"?!1:t==null||(0,g.default)(e,t)}function O0(e,t){return!e||e.type!=="OptionalIndexedAccessType"?!1:t==null||(0,g.default)(e,t)}function _0(e,t){return!e||e.type!=="JSXAttribute"?!1:t==null||(0,g.default)(e,t)}function k0(e,t){return!e||e.type!=="JSXClosingElement"?!1:t==null||(0,g.default)(e,t)}function D0(e,t){return!e||e.type!=="JSXElement"?!1:t==null||(0,g.default)(e,t)}function L0(e,t){return!e||e.type!=="JSXEmptyExpression"?!1:t==null||(0,g.default)(e,t)}function M0(e,t){return!e||e.type!=="JSXExpressionContainer"?!1:t==null||(0,g.default)(e,t)}function B0(e,t){return!e||e.type!=="JSXSpreadChild"?!1:t==null||(0,g.default)(e,t)}function F0(e,t){return!e||e.type!=="JSXIdentifier"?!1:t==null||(0,g.default)(e,t)}function R0(e,t){return!e||e.type!=="JSXMemberExpression"?!1:t==null||(0,g.default)(e,t)}function j0(e,t){return!e||e.type!=="JSXNamespacedName"?!1:t==null||(0,g.default)(e,t)}function q0(e,t){return!e||e.type!=="JSXOpeningElement"?!1:t==null||(0,g.default)(e,t)}function U0(e,t){return!e||e.type!=="JSXSpreadAttribute"?!1:t==null||(0,g.default)(e,t)}function K0(e,t){return!e||e.type!=="JSXText"?!1:t==null||(0,g.default)(e,t)}function V0(e,t){return!e||e.type!=="JSXFragment"?!1:t==null||(0,g.default)(e,t)}function $0(e,t){return!e||e.type!=="JSXOpeningFragment"?!1:t==null||(0,g.default)(e,t)}function J0(e,t){return!e||e.type!=="JSXClosingFragment"?!1:t==null||(0,g.default)(e,t)}function X0(e,t){return!e||e.type!=="Noop"?!1:t==null||(0,g.default)(e,t)}function Y0(e,t){return!e||e.type!=="Placeholder"?!1:t==null||(0,g.default)(e,t)}function W0(e,t){return!e||e.type!=="V8IntrinsicIdentifier"?!1:t==null||(0,g.default)(e,t)}function H0(e,t){return!e||e.type!=="ArgumentPlaceholder"?!1:t==null||(0,g.default)(e,t)}function z0(e,t){return!e||e.type!=="BindExpression"?!1:t==null||(0,g.default)(e,t)}function G0(e,t){return!e||e.type!=="Decorator"?!1:t==null||(0,g.default)(e,t)}function Q0(e,t){return!e||e.type!=="DoExpression"?!1:t==null||(0,g.default)(e,t)}function Z0(e,t){return!e||e.type!=="ExportDefaultSpecifier"?!1:t==null||(0,g.default)(e,t)}function eE(e,t){return!e||e.type!=="RecordExpression"?!1:t==null||(0,g.default)(e,t)}function tE(e,t){return!e||e.type!=="TupleExpression"?!1:t==null||(0,g.default)(e,t)}function rE(e,t){return!e||e.type!=="DecimalLiteral"?!1:t==null||(0,g.default)(e,t)}function iE(e,t){return!e||e.type!=="ModuleExpression"?!1:t==null||(0,g.default)(e,t)}function sE(e,t){return!e||e.type!=="TopicReference"?!1:t==null||(0,g.default)(e,t)}function nE(e,t){return!e||e.type!=="PipelineTopicExpression"?!1:t==null||(0,g.default)(e,t)}function aE(e,t){return!e||e.type!=="PipelineBareFunction"?!1:t==null||(0,g.default)(e,t)}function oE(e,t){return!e||e.type!=="PipelinePrimaryTopicReference"?!1:t==null||(0,g.default)(e,t)}function lE(e,t){return!e||e.type!=="VoidPattern"?!1:t==null||(0,g.default)(e,t)}function uE(e,t){return!e||e.type!=="TSParameterProperty"?!1:t==null||(0,g.default)(e,t)}function cE(e,t){return!e||e.type!=="TSDeclareFunction"?!1:t==null||(0,g.default)(e,t)}function pE(e,t){return!e||e.type!=="TSDeclareMethod"?!1:t==null||(0,g.default)(e,t)}function fE(e,t){return!e||e.type!=="TSQualifiedName"?!1:t==null||(0,g.default)(e,t)}function dE(e,t){return!e||e.type!=="TSCallSignatureDeclaration"?!1:t==null||(0,g.default)(e,t)}function hE(e,t){return!e||e.type!=="TSConstructSignatureDeclaration"?!1:t==null||(0,g.default)(e,t)}function mE(e,t){return!e||e.type!=="TSPropertySignature"?!1:t==null||(0,g.default)(e,t)}function yE(e,t){return!e||e.type!=="TSMethodSignature"?!1:t==null||(0,g.default)(e,t)}function TE(e,t){return!e||e.type!=="TSIndexSignature"?!1:t==null||(0,g.default)(e,t)}function gE(e,t){return!e||e.type!=="TSAnyKeyword"?!1:t==null||(0,g.default)(e,t)}function SE(e,t){return!e||e.type!=="TSBooleanKeyword"?!1:t==null||(0,g.default)(e,t)}function xE(e,t){return!e||e.type!=="TSBigIntKeyword"?!1:t==null||(0,g.default)(e,t)}function bE(e,t){return!e||e.type!=="TSIntrinsicKeyword"?!1:t==null||(0,g.default)(e,t)}function EE(e,t){return!e||e.type!=="TSNeverKeyword"?!1:t==null||(0,g.default)(e,t)}function PE(e,t){return!e||e.type!=="TSNullKeyword"?!1:t==null||(0,g.default)(e,t)}function AE(e,t){return!e||e.type!=="TSNumberKeyword"?!1:t==null||(0,g.default)(e,t)}function vE(e,t){return!e||e.type!=="TSObjectKeyword"?!1:t==null||(0,g.default)(e,t)}function CE(e,t){return!e||e.type!=="TSStringKeyword"?!1:t==null||(0,g.default)(e,t)}function IE(e,t){return!e||e.type!=="TSSymbolKeyword"?!1:t==null||(0,g.default)(e,t)}function wE(e,t){return!e||e.type!=="TSUndefinedKeyword"?!1:t==null||(0,g.default)(e,t)}function NE(e,t){return!e||e.type!=="TSUnknownKeyword"?!1:t==null||(0,g.default)(e,t)}function OE(e,t){return!e||e.type!=="TSVoidKeyword"?!1:t==null||(0,g.default)(e,t)}function _E(e,t){return!e||e.type!=="TSThisType"?!1:t==null||(0,g.default)(e,t)}function kE(e,t){return!e||e.type!=="TSFunctionType"?!1:t==null||(0,g.default)(e,t)}function DE(e,t){return!e||e.type!=="TSConstructorType"?!1:t==null||(0,g.default)(e,t)}function LE(e,t){return!e||e.type!=="TSTypeReference"?!1:t==null||(0,g.default)(e,t)}function ME(e,t){return!e||e.type!=="TSTypePredicate"?!1:t==null||(0,g.default)(e,t)}function BE(e,t){return!e||e.type!=="TSTypeQuery"?!1:t==null||(0,g.default)(e,t)}function FE(e,t){return!e||e.type!=="TSTypeLiteral"?!1:t==null||(0,g.default)(e,t)}function RE(e,t){return!e||e.type!=="TSArrayType"?!1:t==null||(0,g.default)(e,t)}function jE(e,t){return!e||e.type!=="TSTupleType"?!1:t==null||(0,g.default)(e,t)}function qE(e,t){return!e||e.type!=="TSOptionalType"?!1:t==null||(0,g.default)(e,t)}function UE(e,t){return!e||e.type!=="TSRestType"?!1:t==null||(0,g.default)(e,t)}function KE(e,t){return!e||e.type!=="TSNamedTupleMember"?!1:t==null||(0,g.default)(e,t)}function VE(e,t){return!e||e.type!=="TSUnionType"?!1:t==null||(0,g.default)(e,t)}function $E(e,t){return!e||e.type!=="TSIntersectionType"?!1:t==null||(0,g.default)(e,t)}function JE(e,t){return!e||e.type!=="TSConditionalType"?!1:t==null||(0,g.default)(e,t)}function XE(e,t){return!e||e.type!=="TSInferType"?!1:t==null||(0,g.default)(e,t)}function YE(e,t){return!e||e.type!=="TSParenthesizedType"?!1:t==null||(0,g.default)(e,t)}function WE(e,t){return!e||e.type!=="TSTypeOperator"?!1:t==null||(0,g.default)(e,t)}function HE(e,t){return!e||e.type!=="TSIndexedAccessType"?!1:t==null||(0,g.default)(e,t)}function zE(e,t){return!e||e.type!=="TSMappedType"?!1:t==null||(0,g.default)(e,t)}function GE(e,t){return!e||e.type!=="TSTemplateLiteralType"?!1:t==null||(0,g.default)(e,t)}function QE(e,t){return!e||e.type!=="TSLiteralType"?!1:t==null||(0,g.default)(e,t)}function ZE(e,t){return!e||e.type!=="TSExpressionWithTypeArguments"?!1:t==null||(0,g.default)(e,t)}function eP(e,t){return!e||e.type!=="TSInterfaceDeclaration"?!1:t==null||(0,g.default)(e,t)}function tP(e,t){return!e||e.type!=="TSInterfaceBody"?!1:t==null||(0,g.default)(e,t)}function rP(e,t){return!e||e.type!=="TSTypeAliasDeclaration"?!1:t==null||(0,g.default)(e,t)}function iP(e,t){return!e||e.type!=="TSInstantiationExpression"?!1:t==null||(0,g.default)(e,t)}function sP(e,t){return!e||e.type!=="TSAsExpression"?!1:t==null||(0,g.default)(e,t)}function nP(e,t){return!e||e.type!=="TSSatisfiesExpression"?!1:t==null||(0,g.default)(e,t)}function aP(e,t){return!e||e.type!=="TSTypeAssertion"?!1:t==null||(0,g.default)(e,t)}function oP(e,t){return!e||e.type!=="TSEnumBody"?!1:t==null||(0,g.default)(e,t)}function lP(e,t){return!e||e.type!=="TSEnumDeclaration"?!1:t==null||(0,g.default)(e,t)}function uP(e,t){return!e||e.type!=="TSEnumMember"?!1:t==null||(0,g.default)(e,t)}function cP(e,t){return!e||e.type!=="TSModuleDeclaration"?!1:t==null||(0,g.default)(e,t)}function pP(e,t){return!e||e.type!=="TSModuleBlock"?!1:t==null||(0,g.default)(e,t)}function fP(e,t){return!e||e.type!=="TSImportType"?!1:t==null||(0,g.default)(e,t)}function dP(e,t){return!e||e.type!=="TSImportEqualsDeclaration"?!1:t==null||(0,g.default)(e,t)}function hP(e,t){return!e||e.type!=="TSExternalModuleReference"?!1:t==null||(0,g.default)(e,t)}function mP(e,t){return!e||e.type!=="TSNonNullExpression"?!1:t==null||(0,g.default)(e,t)}function yP(e,t){return!e||e.type!=="TSExportAssignment"?!1:t==null||(0,g.default)(e,t)}function TP(e,t){return!e||e.type!=="TSNamespaceExportDeclaration"?!1:t==null||(0,g.default)(e,t)}function gP(e,t){return!e||e.type!=="TSTypeAnnotation"?!1:t==null||(0,g.default)(e,t)}function SP(e,t){return!e||e.type!=="TSTypeParameterInstantiation"?!1:t==null||(0,g.default)(e,t)}function xP(e,t){return!e||e.type!=="TSTypeParameterDeclaration"?!1:t==null||(0,g.default)(e,t)}function bP(e,t){return!e||e.type!=="TSTypeParameter"?!1:t==null||(0,g.default)(e,t)}function EP(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return t==null||(0,g.default)(e,t)}function PP(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return t==null||(0,g.default)(e,t)}function AP(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return t==null||(0,g.default)(e,t)}function vP(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,g.default)(e,t)}function CP(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,g.default)(e,t)}function IP(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,g.default)(e,t)}function wP(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return t==null||(0,g.default)(e,t)}function NP(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return t==null||(0,g.default)(e,t)}function OP(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return t==null||(0,g.default)(e,t)}function _P(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return t==null||(0,g.default)(e,t)}function kP(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,g.default)(e,t)}function DP(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return t==null||(0,g.default)(e,t)}function LP(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return t==null||(0,g.default)(e,t)}function MP(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,g.default)(e,t)}function BP(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,g.default)(e,t)}function FP(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,g.default)(e,t)}function RP(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return t==null||(0,g.default)(e,t)}function jP(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,g.default)(e,t)}function qP(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if(e.expectedNode==="Declaration")break;default:return!1}return t==null||(0,g.default)(e,t)}function UP(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,g.default)(e,t)}function KP(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,g.default)(e,t)}function VP(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,g.default)(e,t)}function $P(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,g.default)(e,t)}function JP(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,g.default)(e,t)}function XP(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,g.default)(e,t)}function YP(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return t==null||(0,g.default)(e,t)}function WP(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,g.default)(e,t)}function HP(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return t==null||(0,g.default)(e,t)}function zP(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return t==null||(0,g.default)(e,t)}function GP(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return t==null||(0,g.default)(e,t)}function QP(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Pattern")break;default:return!1}return t==null||(0,g.default)(e,t)}function ZP(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return t==null||(0,g.default)(e,t)}function hf(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return t==null||(0,g.default)(e,t)}function eA(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return t==null||(0,g.default)(e,t)}function tA(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return t==null||(0,g.default)(e,t)}function rA(e,t){return!e||e.type!=="ClassAccessorProperty"?!1:t==null||(0,g.default)(e,t)}function iA(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return t==null||(0,g.default)(e,t)}function sA(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,g.default)(e,t)}function nA(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,g.default)(e,t)}function aA(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return t==null||(0,g.default)(e,t)}function oA(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return t==null||(0,g.default)(e,t)}function lA(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return t==null||(0,g.default)(e,t)}function uA(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return t==null||(0,g.default)(e,t)}function cA(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return t==null||(0,g.default)(e,t)}function pA(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return t==null||(0,g.default)(e,t)}function fA(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return t==null||(0,g.default)(e,t)}function dA(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return t==null||(0,g.default)(e,t)}function hA(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return t==null||(0,g.default)(e,t)}function mA(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return t==null||(0,g.default)(e,t)}function yA(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return t==null||(0,g.default)(e,t)}function TA(e,t){return(0,as.default)("isNumberLiteral","isNumericLiteral"),!e||e.type!=="NumberLiteral"?!1:t==null||(0,g.default)(e,t)}function gA(e,t){return(0,as.default)("isRegexLiteral","isRegExpLiteral"),!e||e.type!=="RegexLiteral"?!1:t==null||(0,g.default)(e,t)}function SA(e,t){return(0,as.default)("isRestProperty","isRestElement"),!e||e.type!=="RestProperty"?!1:t==null||(0,g.default)(e,t)}function xA(e,t){return(0,as.default)("isSpreadProperty","isSpreadElement"),!e||e.type!=="SpreadProperty"?!1:t==null||(0,g.default)(e,t)}function bA(e,t){return(0,as.default)("isModuleDeclaration","isImportOrExportDeclaration"),hf(e,t)}});var so=N(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.default=EA;var ni=st();function mf(e){return(0,ni.isMemberExpression)(e)||(0,ni.isMetaProperty)(e)}function EA(e,t,r){if(!mf(e))return!1;let i=Array.isArray(t)?t:t.split("."),s=[],n;for(n=e;mf(n);n=(a=n.object)!=null?a:n.meta){var a;s.push(n.property)}if(s.push(n),s.length<i.length||!r&&s.length>i.length)return!1;for(let o=0,l=s.length-1;o<i.length;o++,l--){let u=s[l],f;if((0,ni.isIdentifier)(u))f=u.name;else if((0,ni.isStringLiteral)(u))f=u.value;else if((0,ni.isThisExpression)(u))f="this";else if((0,ni.isSuper)(u))f="super";else if((0,ni.isPrivateName)(u))f="#"+u.id.name;else return!1;if(i[o]!==f)return!1}return!0}});var ao=N(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.default=AA;var PA=so();function AA(e,t){let r=e.split(".");return i=>(0,PA.default)(i,r,t)}});var yf=N(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.default=void 0;var vA=ao(),CA=(0,vA.default)("React.Component"),GY=cn.default=CA});var Tf=N(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.default=IA;function IA(e){return!!e&&/^[a-z]/.test(e)}});var pn=N(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.default=wA;var gf=Jt();function wA(e,t){if(e===t)return!0;if(e==null||gf.ALIAS_KEYS[t])return!1;let r=gf.FLIPPED_ALIAS_KEYS[t];return!!(r!=null&&r.includes(e))}});var co=N(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.default=OA;var NA=Jt();function OA(e,t){if(e===t)return!0;let r=NA.PLACEHOLDERS_ALIAS[e];return!!(r!=null&&r.includes(t))}});var Di=N(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.default=MA;var _A=un(),kA=pn(),DA=co(),LA=Jt();function MA(e,t,r){return t?(0,kA.default)(t.type,e)?r===void 0?!0:(0,_A.default)(t,r):!r&&t.type==="Placeholder"&&e in LA.FLIPPED_ALIAS_KEYS?(0,DA.default)(t.expectedNode,e):!1:!1}});var Pf=N(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.isIdentifierChar=Ef;os.isIdentifierName=jA;os.isIdentifierStart=bf;var ho="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Sf="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",BA=new RegExp("["+ho+"]"),FA=new RegExp("["+ho+Sf+"]");ho=Sf=null;var xf=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],RA=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function fo(e,t){let r=65536;for(let i=0,s=t.length;i<s;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function bf(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&BA.test(String.fromCharCode(e)):fo(e,xf)}function Ef(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&FA.test(String.fromCharCode(e)):fo(e,xf)||fo(e,RA)}function jA(e){let t=!0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if((i&64512)===55296&&r+1<e.length){let s=e.charCodeAt(++r);(s&64512)===56320&&(i=65536+((i&1023)<<10)+(s&1023))}if(t){if(t=!1,!bf(i))return!1}else if(!Ef(i))return!1}return!t}});var If=N(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.isKeyword=$A;ai.isReservedWord=Af;ai.isStrictBindOnlyReservedWord=Cf;ai.isStrictBindReservedWord=VA;ai.isStrictReservedWord=vf;var mo={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},qA=new Set(mo.keyword),UA=new Set(mo.strict),KA=new Set(mo.strictBind);function Af(e,t){return t&&e==="await"||e==="enum"}function vf(e,t){return Af(e,t)||UA.has(e)}function Cf(e){return KA.has(e)}function VA(e,t){return vf(e,t)||Cf(e)}function $A(e){return qA.has(e)}});var us=N(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});Object.defineProperty(fr,"isIdentifierChar",{enumerable:!0,get:function(){return yo.isIdentifierChar}});Object.defineProperty(fr,"isIdentifierName",{enumerable:!0,get:function(){return yo.isIdentifierName}});Object.defineProperty(fr,"isIdentifierStart",{enumerable:!0,get:function(){return yo.isIdentifierStart}});Object.defineProperty(fr,"isKeyword",{enumerable:!0,get:function(){return ls.isKeyword}});Object.defineProperty(fr,"isReservedWord",{enumerable:!0,get:function(){return ls.isReservedWord}});Object.defineProperty(fr,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return ls.isStrictBindOnlyReservedWord}});Object.defineProperty(fr,"isStrictBindReservedWord",{enumerable:!0,get:function(){return ls.isStrictBindReservedWord}});Object.defineProperty(fr,"isStrictReservedWord",{enumerable:!0,get:function(){return ls.isStrictReservedWord}});var yo=Pf(),ls=If()});var Li=N(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.default=JA;var To=us();function JA(e,t=!0){return typeof e!="string"||t&&((0,To.isKeyword)(e)||(0,To.isStrictReservedWord)(e,!0))?!1:(0,To.isIdentifierName)(e)}});var _f=N(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.readCodePoint=Of;cs.readInt=Nf;cs.readStringContents=YA;var XA=function(t){return t>=48&&t<=57},wf={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},fn={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function YA(e,t,r,i,s,n){let a=r,o=i,l=s,u="",f=null,h=r,{length:x}=t;for(;;){if(r>=x){n.unterminated(a,o,l),u+=t.slice(h,r);break}let A=t.charCodeAt(r);if(WA(e,A,t,r)){u+=t.slice(h,r);break}if(A===92){u+=t.slice(h,r);let P=HA(t,r,i,s,e==="template",n);P.ch===null&&!f?f={pos:r,lineStart:i,curLine:s}:u+=P.ch,{pos:r,lineStart:i,curLine:s}=P,h=r}else A===8232||A===8233?(++r,++s,i=r):A===10||A===13?e==="template"?(u+=t.slice(h,r)+`
9
+ `,++r,A===13&&t.charCodeAt(r)===10&&++r,++s,h=i=r):n.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:f,lineStart:i,curLine:s,containsInvalid:!!f}}function WA(e,t,r,i){return e==="template"?t===96||t===36&&r.charCodeAt(i+1)===123:t===(e==="double"?34:39)}function HA(e,t,r,i,s,n){let a=!s;t++;let o=u=>({pos:t,ch:u,lineStart:r,curLine:i}),l=e.charCodeAt(t++);switch(l){case 110:return o(`
10
+ `);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=So(e,t,r,i,2,!1,a,n),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=Of(e,t,r,i,a,n),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++i;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);n.strictNumericEscape(t-1,r,i);default:if(l>=48&&l<=55){let u=t-1,h=/^[0-7]+/.exec(e.slice(u,t+2))[0],x=parseInt(h,8);x>255&&(h=h.slice(0,-1),x=parseInt(h,8)),t+=h.length-1;let A=e.charCodeAt(t);if(h!=="0"||A===56||A===57){if(s)return o(null);n.strictNumericEscape(u,r,i)}return o(String.fromCharCode(x))}return o(String.fromCharCode(l))}}function So(e,t,r,i,s,n,a,o){let l=t,u;return{n:u,pos:t}=Nf(e,t,r,i,16,s,n,!1,o,!a),u===null&&(a?o.invalidEscapeSequence(l,r,i):t=l-1),{code:u,pos:t}}function Nf(e,t,r,i,s,n,a,o,l,u){let f=t,h=s===16?wf.hex:wf.decBinOct,x=s===16?fn.hex:s===10?fn.dec:s===8?fn.oct:fn.bin,A=!1,P=0;for(let w=0,b=n??1/0;w<b;++w){let C=e.charCodeAt(t),D;if(C===95&&o!=="bail"){let U=e.charCodeAt(t-1),k=e.charCodeAt(t+1);if(o){if(Number.isNaN(k)||!x(k)||h.has(U)||h.has(k)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,i)}}else{if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,i)}++t;continue}if(C>=97?D=C-97+10:C>=65?D=C-65+10:XA(C)?D=C-48:D=1/0,D>=s){if(D<=9&&u)return{n:null,pos:t};if(D<=9&&l.invalidDigit(t,r,i,s))D=0;else if(a)D=0,A=!0;else break}++t,P=P*s+D}return t===f||n!=null&&t-f!==n||A?{n:null,pos:t}:{n:P,pos:t}}function Of(e,t,r,i,s,n){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=So(e,t,r,i,e.indexOf("}",t)-t,!0,s,n),++t,o!==null&&o>1114111)if(s)n.invalidCodePoint(t,r,i);else return{code:null,pos:t}}else({code:o,pos:t}=So(e,t,r,i,4,!1,s,n));return{code:o,pos:t}}});var Mi=N(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.UPDATE_OPERATORS=Se.UNARY_OPERATORS=Se.STRING_UNARY_OPERATORS=Se.STATEMENT_OR_BLOCK_KEYS=Se.NUMBER_UNARY_OPERATORS=Se.NUMBER_BINARY_OPERATORS=Se.LOGICAL_OPERATORS=Se.INHERIT_KEYS=Se.FOR_INIT_KEYS=Se.FLATTENABLE_KEYS=Se.EQUALITY_BINARY_OPERATORS=Se.COMPARISON_BINARY_OPERATORS=Se.COMMENT_KEYS=Se.BOOLEAN_UNARY_OPERATORS=Se.BOOLEAN_NUMBER_BINARY_OPERATORS=Se.BOOLEAN_BINARY_OPERATORS=Se.BINARY_OPERATORS=Se.ASSIGNMENT_OPERATORS=void 0;var lW=Se.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],uW=Se.FLATTENABLE_KEYS=["body","expressions"],cW=Se.FOR_INIT_KEYS=["left","init"],pW=Se.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],zA=Se.LOGICAL_OPERATORS=["||","&&","??"],fW=Se.UPDATE_OPERATORS=["++","--"],GA=Se.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],QA=Se.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],ZA=Se.COMPARISON_BINARY_OPERATORS=[...QA,"in","instanceof"],ev=Se.BOOLEAN_BINARY_OPERATORS=[...ZA,...GA],kf=Se.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],dW=Se.BINARY_OPERATORS=["+",...kf,...ev,"|>"],hW=Se.ASSIGNMENT_OPERATORS=["=","+=",...kf.map(e=>e+"="),...zA.map(e=>e+"=")],tv=Se.BOOLEAN_UNARY_OPERATORS=["delete","!"],rv=Se.NUMBER_UNARY_OPERATORS=["+","-","~"],iv=Se.STRING_UNARY_OPERATORS=["typeof"],mW=Se.UNARY_OPERATORS=["void","throw",...tv,...rv,...iv],yW=Se.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};Se.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");Se.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var dr=N(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.allExpandedTypes=Oe.VISITOR_KEYS=Oe.NODE_UNION_SHAPES__PRIVATE=Oe.NODE_PARENT_VALIDATIONS=Oe.NODE_FIELDS=Oe.FLIPPED_ALIAS_KEYS=Oe.DEPRECATED_KEYS=Oe.BUILDER_KEYS=Oe.ALIAS_KEYS=void 0;Oe.arrayOf=Lf;Oe.arrayOfType=Mf;Oe.assertEach=Bf;Oe.assertNodeOrValueType=Tv;Oe.assertNodeType=hn;Oe.assertOneOf=mv;Oe.assertOptionalChainStart=Sv;Oe.assertShape=gv;Oe.assertValueType=Po;Oe.chain=Ff;Oe.default=Rf;Oe.defineAliasedType=Ev;Oe.validate=Eo;Oe.validateArrayOfType=hv;Oe.validateOptional=fv;Oe.validateOptionalType=dv;Oe.validateType=pv;var Df=Di(),ps=mn(),sv=Oe.VISITOR_KEYS={},nv=Oe.ALIAS_KEYS={},xo=Oe.FLIPPED_ALIAS_KEYS={},av=Oe.NODE_FIELDS={},ov=Oe.BUILDER_KEYS={},lv=Oe.DEPRECATED_KEYS={},uv=Oe.NODE_PARENT_VALIDATIONS={},cv=Oe.NODE_UNION_SHAPES__PRIVATE={};function dn(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function Eo(e){return{validate:e}}function pv(...e){return Eo(hn(...e))}function fv(e){return{validate:e,optional:!0}}function dv(...e){return{validate:hn(...e),optional:!0}}function Lf(e){return Ff(Po("array"),Bf(e))}function Mf(...e){return Lf(hn(...e))}function hv(...e){return Eo(Mf(...e))}function Bf(e){let t=process.env.BABEL_TYPES_8_BREAKING?ps.validateChild:()=>{};function r(i,s,n){if(!Array.isArray(n))return;let a=0,o={toString(){return`${s}[${a}]`}};for(;a<n.length;a++){let l=n[a];e(i,o,l),t(i,o,l)}}return r.each=e,r}function mv(...e){function t(r,i,s){if(!e.includes(s))throw new TypeError(`Property ${i} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(s)}`)}return t.oneOf=e,t}var yv=Oe.allExpandedTypes=[];function hn(...e){let t=new Set;yv.push({types:e,set:t});function r(i,s,n){let a=n?.type;if(a!=null){if(t.has(a)){(0,ps.validateChild)(i,s,n);return}if(a==="Placeholder"){for(let o of e)if((0,Df.default)(o,n)){(0,ps.validateChild)(i,s,n);return}}}throw new TypeError(`Property ${s} of ${i.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(a)}`)}return r.oneOfNodeTypes=e,r}function Tv(...e){function t(r,i,s){let n=dn(s);for(let a of e)if(n===a||(0,Df.default)(a,s)){(0,ps.validateChild)(r,i,s);return}throw new TypeError(`Property ${i} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(s?.type)}`)}return t.oneOfNodeOrValueTypes=e,t}function Po(e){function t(r,i,s){if(dn(s)!==e)throw new TypeError(`Property ${i} expected type of ${e} but got ${dn(s)}`)}return t.type=e,t}function gv(e){let t=Object.keys(e);function r(i,s,n){let a=[];for(let o of t)try{(0,ps.validateField)(i,o,n[o],e[o])}catch(l){if(l instanceof TypeError){a.push(l.message);continue}throw l}if(a.length)throw new TypeError(`Property ${s} of ${i.type} expected to have the following:
11
11
  ${a.join(`
12
- `)}`)}return r.shapeOf=e,r}function dv(){function e(t){var r;let i=t;for(;t;){let{type:s}=i;if(s==="OptionalCallExpression"){if(i.optional)return;i=i.callee;continue}if(s==="OptionalMemberExpression"){if(i.optional)return;i=i.object;continue}break}throw new TypeError(`Non-optional ${t.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(r=i)==null?void 0:r.type}`)}return e}function Lf(...e){function t(...r){for(let i of e)i(...r)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&e[0].type==="array"&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}var hv=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),mv=new Set(["default","optional","deprecated","validate"]),go={};function yv(...e){return(t,r={})=>{let i=r.aliases;if(!i){var s;r.inherits&&(i=(s=go[r.inherits].aliases)==null?void 0:s.slice()),i??(i=[]),r.aliases=i}let n=e.filter(a=>!i.includes(a));i.unshift(...n),Mf(t,r)}}function Mf(e,t={}){let r=t.inherits&&go[t.inherits]||{},i=t.fields;if(!i&&(i={},r.fields)){let o=Object.getOwnPropertyNames(r.fields);for(let l of o){let u=r.fields[l],f=u.default;if(Array.isArray(f)?f.length>0:f&&typeof f=="object")throw new Error("field defaults can only be primitives or empty arrays currently");i[l]={default:Array.isArray(f)?[]:f,optional:u.optional,deprecated:u.deprecated,validate:u.validate}}}let s=t.visitor||r.visitor||[],n=t.aliases||r.aliases||[],a=t.builder||r.builder||t.visitor||[];for(let o of Object.keys(t))if(!hv.has(o))throw new Error(`Unknown type option "${o}" on ${e}`);t.deprecatedAlias&&(rv[t.deprecatedAlias]=e);for(let o of s.concat(a))i[o]=i[o]||{};for(let o of Object.keys(i)){let l=i[o];l.default!==void 0&&!a.includes(o)&&(l.optional=!0),l.default===void 0?l.default=null:!l.validate&&l.default!=null&&(l.validate=bo(dn(l.default)));for(let u of Object.keys(l))if(!mv.has(u))throw new Error(`Unknown field key "${u}" on ${e}.${o}`)}QA[e]=t.visitor=s,tv[e]=t.builder=a,ev[e]=t.fields=i,ZA[e]=t.aliases=n,n.forEach(o=>{So[o]=So[o]||[],So[o].push(e)}),t.validate&&(iv[e]=t.validate),t.unionShape&&(sv[e]=t.unionShape),go[e]=t}});var fs=N(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.patternLikeCommon=bt.importAttributes=bt.functionTypeAnnotationCommon=bt.functionDeclarationCommon=bt.functionCommon=bt.classMethodOrPropertyUnionShapeCommon=bt.classMethodOrPropertyCommon=bt.classMethodOrDeclareMethodCommon=void 0;var It=ki(),Tv=Di(),Ff=ls(),Sv=wf(),Mi=Li(),x=dr(),ps=(e=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,x.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:e?(0,x.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,x.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});bt.classMethodOrPropertyUnionShapeCommon=ps;var J=(0,x.defineAliasedType)("Standardized");J("ArrayExpression",{fields:{elements:{validate:(0,x.arrayOf)((0,x.assertNodeOrValueType)("null","Expression","SpreadElement")),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]});J("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign((function(){let e=(0,x.assertOneOf)(...Mi.ASSIGNMENT_OPERATORS),t=(0,x.assertOneOf)("=");return function(r,i,s){((0,It.default)("Pattern",r.left)?t:e)(r,i,s)}})(),{oneOf:Mi.ASSIGNMENT_OPERATORS}):(0,x.assertValueType)("string")},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,x.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,x.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,x.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});J("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,x.assertOneOf)(...Mi.BINARY_OPERATORS)},left:{validate:(function(){let e=(0,x.assertNodeType)("Expression"),t=(0,x.assertNodeType)("Expression","PrivateName");return Object.assign(function(i,s,n){(i.operator==="in"?t:e)(i,s,n)},{oneOfNodeTypes:["Expression","PrivateName"]})})()},right:{validate:(0,x.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});J("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,x.assertValueType)("string")}}});J("Directive",{visitor:["value"],fields:{value:{validate:(0,x.assertNodeType)("DirectiveLiteral")}}});J("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,x.assertValueType)("string")}}});J("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,x.arrayOfType)("Directive"),default:[]},body:(0,x.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});J("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,x.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});J("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,x.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,x.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,x.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,x.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,x.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});J("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,x.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,x.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});J("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,x.assertNodeType)("Expression")},consequent:{validate:(0,x.assertNodeType)("Expression")},alternate:{validate:(0,x.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});J("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,x.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});J("DebuggerStatement",{aliases:["Statement"]});J("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,x.assertNodeType)("Expression")},body:{validate:(0,x.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});J("EmptyStatement",{aliases:["Statement"]});J("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,x.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});J("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,x.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,x.assertEach)((0,x.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,x.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});J("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,x.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,x.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,x.assertNodeType)("Expression")},body:{validate:(0,x.assertNodeType)("Statement")}}});J("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,x.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,x.assertNodeType)("Expression"),optional:!0},update:{validate:(0,x.assertNodeType)("Expression"),optional:!0},body:{validate:(0,x.assertNodeType)("Statement")}}});var Fi=()=>({params:(0,x.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});bt.functionCommon=Fi;var ai=()=>({returnType:{validate:(0,x.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,x.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});bt.functionTypeAnnotationCommon=ai;var Bf=()=>Object.assign({},Fi(),{declare:{validate:(0,x.assertValueType)("boolean"),optional:!0},id:{validate:(0,x.assertNodeType)("Identifier"),optional:!0}});bt.functionDeclarationCommon=Bf;J("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},Bf(),ai(),{body:{validate:(0,x.assertNodeType)("BlockStatement")},predicate:{validate:(0,x.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:process.env.BABEL_TYPES_8_BREAKING?(function(){let e=(0,x.assertNodeType)("Identifier");return function(t,r,i){(0,It.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}})():void 0});J("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Fi(),ai(),{id:{validate:(0,x.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,x.assertNodeType)("BlockStatement")},predicate:{validate:(0,x.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var Bi=()=>({typeAnnotation:{validate:(0,x.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,x.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,x.arrayOfType)("Decorator"),optional:!0}});bt.patternLikeCommon=Bi;J("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},Bi(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,x.chain)((0,x.assertValueType)("string"),Object.assign(function(e,t,r){if(!(0,Tv.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)},{type:"string"})):(0,x.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t,r){let i=/\.(\w+)$/.exec(t.toString());if(!i)return;let[,s]=i,n={computed:!1};if(s==="property"){if((0,It.default)("MemberExpression",e,n)||(0,It.default)("OptionalMemberExpression",e,n))return}else if(s==="key"){if((0,It.default)("Property",e,n)||(0,It.default)("Method",e,n))return}else if(s==="exported"){if((0,It.default)("ExportSpecifier",e))return}else if(s==="imported"){if((0,It.default)("ImportSpecifier",e,{imported:r}))return}else if(s==="meta"&&(0,It.default)("MetaProperty",e,{meta:r}))return;if(((0,Ff.isKeyword)(r.name)||(0,Ff.isReservedWord)(r.name,!1))&&r.name!=="this")throw new TypeError(`"${r.name}" is not a valid identifier`)}:void 0});J("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,x.assertNodeType)("Expression")},consequent:{validate:(0,x.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,x.assertNodeType)("Statement")}}});J("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,x.assertNodeType)("Identifier")},body:{validate:(0,x.assertNodeType)("Statement")}}});J("StringLiteral",{builder:["value"],fields:{value:{validate:(0,x.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});J("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,x.chain)((0,x.assertValueType)("number"),Object.assign(function(e,t,r){if(1/r<0||!Number.isFinite(r)){let i=new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});J("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});J("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,x.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});J("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,x.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,x.chain)((0,x.assertValueType)("string"),Object.assign(function(e,t,r){let i=/[^dgimsuvy]/.exec(r);if(i)throw new TypeError(`"${i[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,x.assertValueType)("string"),default:""}}});J("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,x.assertOneOf)(...Mi.LOGICAL_OPERATORS)},left:{validate:(0,x.assertNodeType)("Expression")},right:{validate:(0,x.assertNodeType)("Expression")}}});J("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:(0,x.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,x.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,x.assertNodeType)("Expression","Super")},property:{validate:(function(){let e=(0,x.assertNodeType)("Identifier","PrivateName"),t=(0,x.assertNodeType)("Expression"),r=function(i,s,n){(i.computed?t:e)(i,s,n)};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r})()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,x.assertValueType)("boolean"),optional:!0}})});J("NewExpression",{inherits:"CallExpression",fields:{callee:{validate:(0,x.assertNodeType)("Expression")},arguments:(0,x.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,x.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});J("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,x.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,x.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,x.arrayOfType)("Directive"),default:[]},body:(0,x.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]});J("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,x.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}});J("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},ps(),{fields:Object.assign({},Fi(),ai(),{kind:Object.assign({validate:(0,x.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:(function(){let e=(0,x.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,x.assertNodeType)("Expression"),r=function(i,s,n){(i.computed?t:e)(i,s,n)};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r})()},decorators:{validate:(0,x.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,x.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}));J("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,x.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,x.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:(function(){let e=(0,x.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,x.assertNodeType)("Expression");return Object.assign(function(i,s,n){(i.computed?t:e)(i,s,n)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})})()},value:{validate:(0,x.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,x.chain)((0,x.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r){if(e.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,It.default)("Identifier",e.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0,x.assertValueType)("boolean"),default:!1},decorators:{validate:(0,x.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:process.env.BABEL_TYPES_8_BREAKING?(function(){let e=(0,x.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=(0,x.assertNodeType)("Expression");return function(r,i,s){((0,It.default)("ObjectPattern",r)?e:t)(s,"value",s.value)}})():void 0});J("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},Bi(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,x.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,x.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t){let r=/(\w+)\[(\d+)\]/.exec(t.toString());if(!r)throw new Error("Internal Babel error: malformed key.");let[,i,s]=r;if(e[i].length>+s+1)throw new TypeError(`RestElement must be last element of ${i}`)}:void 0});J("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,x.assertNodeType)("Expression"),optional:!0}}});J("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,x.validateArrayOfType)("Expression")},aliases:["Expression"]});J("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,x.assertNodeType)("Expression")}}});J("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,x.assertNodeType)("Expression"),optional:!0},consequent:(0,x.validateArrayOfType)("Statement")}});J("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,x.assertNodeType)("Expression")},cases:(0,x.validateArrayOfType)("SwitchCase")}});J("ThisExpression",{aliases:["Expression"]});J("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,x.assertNodeType)("Expression")}}});J("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,x.chain)((0,x.assertNodeType)("BlockStatement"),Object.assign(function(e){if(!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,x.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,x.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,x.assertNodeType)("BlockStatement")}}});J("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,x.assertNodeType)("Expression")},operator:{validate:(0,x.assertOneOf)(...Mi.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});J("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,x.assertNodeType)("Identifier","MemberExpression"):(0,x.assertNodeType)("Expression")},operator:{validate:(0,x.assertOneOf)(...Mi.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});J("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,x.assertValueType)("boolean"),optional:!0},kind:{validate:(0,x.assertOneOf)("var","let","const","using","await using")},declarations:(0,x.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{let e=(0,x.assertNodeType)("Identifier","Placeholder"),t=(0,x.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),r=(0,x.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(i,s,n){let{kind:a,declarations:o}=n,l=(0,It.default)("ForXStatement",i,{left:n});if(l&&o.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${i.type}`);for(let u of o)a==="const"||a==="let"||a==="var"?!l&&!u.init?e(u,"id",u.id):t(u,"id",u.id):r(u,"id",u.id)}})():void 0});J("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,x.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,x.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,x.assertValueType)("boolean")},init:{optional:!0,validate:(0,x.assertNodeType)("Expression")}}});J("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,x.assertNodeType)("Expression")},body:{validate:(0,x.assertNodeType)("Statement")}}});J("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,x.assertNodeType)("Expression")},body:{validate:(0,x.assertNodeType)("Statement")}}});J("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Bi(),{left:{validate:(0,x.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,x.assertNodeType)("Expression")},decorators:{validate:(0,x.arrayOfType)("Decorator"),optional:!0}})});J("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Bi(),{elements:{validate:(0,x.chain)((0,x.assertValueType)("array"),(0,x.assertEach)((0,x.assertNodeOrValueType)("null","PatternLike")))}})});J("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Fi(),ai(),{expression:{validate:(0,x.assertValueType)("boolean")},body:{validate:(0,x.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,x.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});J("ClassBody",{visitor:["body"],fields:{body:(0,x.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});J("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,x.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,x.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,x.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,x.assertNodeType)("Expression")},superTypeParameters:{validate:(0,x.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,x.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,x.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,x.assertNodeType)("InterfaceExtends"),optional:!0}}});J("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,x.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,x.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,x.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,x.assertNodeType)("Expression")},superTypeParameters:{validate:(0,x.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,x.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,x.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,x.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,x.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,x.assertValueType)("boolean"),optional:!0}},validate:process.env.BABEL_TYPES_8_BREAKING?(function(){let e=(0,x.assertNodeType)("Identifier");return function(t,r,i){(0,It.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}})():void 0});var yn=bt.importAttributes={attributes:{optional:!0,validate:(0,x.arrayOfType)("ImportAttribute")}};yn.assertions={deprecated:!0,optional:!0,validate:(0,x.arrayOfType)("ImportAttribute")};J("ExportAllDeclaration",{builder:["source","attributes"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,x.assertNodeType)("StringLiteral")},exportKind:(0,x.validateOptional)((0,x.assertOneOf)("type","value"))},yn)});J("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,x.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,x.validateOptional)((0,x.assertOneOf)("value"))}});J("ExportNamedDeclaration",{builder:["declaration","specifiers","source","attributes"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?(0,x.chain)((0,x.assertNodeType)("Declaration"),Object.assign(function(e,t,r){if(r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(r&&e.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,x.assertNodeType)("Declaration")}},yn,{specifiers:{default:[],validate:(0,x.arrayOf)((function(){let e=(0,x.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,x.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(r,i,s){(r.source?e:t)(r,i,s)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):e})())},source:{validate:(0,x.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,x.validateOptional)((0,x.assertOneOf)("type","value"))})});J("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,x.assertNodeType)("Identifier")},exported:{validate:(0,x.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,x.assertOneOf)("type","value"),optional:!0}}});J("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,x.assertNodeType)("VariableDeclaration","LVal");let e=(0,x.assertNodeType)("VariableDeclaration"),t=(0,x.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(r,i,s){(0,It.default)("VariableDeclaration",s)?e(r,i,s):t(r,i,s)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})})()},right:{validate:(0,x.assertNodeType)("Expression")},body:{validate:(0,x.assertNodeType)("Statement")},await:{default:!1}}});J("ImportDeclaration",{builder:["specifiers","source","attributes"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},yn,{module:{optional:!0,validate:(0,x.assertValueType)("boolean")},phase:{default:null,validate:(0,x.assertOneOf)("source","defer")},specifiers:(0,x.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,x.assertNodeType)("StringLiteral")},importKind:{validate:(0,x.assertOneOf)("type","typeof","value"),optional:!0}})});J("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,x.assertNodeType)("Identifier")}}});J("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,x.assertNodeType)("Identifier")}}});J("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,x.assertNodeType)("Identifier")},imported:{validate:(0,x.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,x.assertOneOf)("type","typeof","value"),optional:!0}}});J("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,x.assertOneOf)("source","defer")},source:{validate:(0,x.assertNodeType)("Expression")},options:{validate:(0,x.assertNodeType)("Expression"),optional:!0}}});J("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,x.chain)((0,x.assertNodeType)("Identifier"),Object.assign(function(e,t,r){let i;switch(r.name){case"function":i="sent";break;case"new":i="target";break;case"import":i="meta";break}if(!(0,It.default)("Identifier",e.property,{name:i}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,x.assertNodeType)("Identifier")},property:{validate:(0,x.assertNodeType)("Identifier")}}});var Tn=()=>({abstract:{validate:(0,x.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,x.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,x.assertValueType)("boolean"),optional:!0},key:{validate:(0,x.chain)((function(){let e=(0,x.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,x.assertNodeType)("Expression");return function(r,i,s){(r.computed?t:e)(r,i,s)}})(),(0,x.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});bt.classMethodOrPropertyCommon=Tn;var Eo=()=>Object.assign({},Fi(),Tn(),{params:(0,x.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,x.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,x.chain)((0,x.assertValueType)("string"),(0,x.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,x.arrayOfType)("Decorator"),optional:!0}});bt.classMethodOrDeclareMethodCommon=Eo;J("ClassMethod",Object.assign({aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},ps(),{fields:Object.assign({},Eo(),ai(),{body:{validate:(0,x.assertNodeType)("BlockStatement")}})}));J("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Bi(),{properties:(0,x.validateArrayOfType)("RestElement","ObjectProperty")})});J("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,x.assertNodeType)("Expression")}}});J("Super",{aliases:["Expression"]});J("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,x.assertNodeType)("Expression")},quasi:{validate:(0,x.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,x.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});J("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,x.chain)((0,x.assertShape)({raw:{validate:(0,x.assertValueType)("string")},cooked:{validate:(0,x.assertValueType)("string"),optional:!0}}),function(t){let r=t.value.raw,i=!1,s=()=>{throw new Error("Internal @babel/types error.")},{str:n,firstInvalidLoc:a}=(0,Sv.readStringContents)("template",r,0,0,0,{unterminated(){i=!0},strictNumericEscape:s,invalidEscapeSequence:s,numericSeparatorInEscapeSequence:s,unexpectedNumericSeparator:s,invalidDigit:s,invalidCodePoint:s});if(!i)throw new Error("Invalid raw");t.value.cooked=a?null:n})},tail:{default:!1}}});J("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,x.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,x.chain)((0,x.assertValueType)("array"),(0,x.assertEach)((0,x.assertNodeType)("Expression","TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.
13
- Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});J("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,x.chain)((0,x.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,x.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,x.assertNodeType)("Expression")}}});J("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,x.assertNodeType)("Expression")}}});J("Import",{aliases:["Expression"]});J("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,x.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});J("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,x.assertNodeType)("Identifier")}}});J("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,x.assertNodeType)("Expression")},property:{validate:(function(){let e=(0,x.assertNodeType)("Identifier"),t=(0,x.assertNodeType)("Expression");return Object.assign(function(i,s,n){(i.computed?t:e)(i,s,n)},{oneOfNodeTypes:["Expression","Identifier"]})})()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,x.chain)((0,x.assertValueType)("boolean"),(0,x.assertOptionalChainStart)()):(0,x.assertValueType)("boolean")}}});J("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,x.assertNodeType)("Expression")},arguments:(0,x.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,x.chain)((0,x.assertValueType)("boolean"),(0,x.assertOptionalChainStart)()):(0,x.assertValueType)("boolean")},typeArguments:{validate:(0,x.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,x.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});J("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},ps(),{fields:Object.assign({},Tn(),{value:{validate:(0,x.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,x.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,x.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,x.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,x.assertValueType)("boolean"),optional:!0},declare:{validate:(0,x.assertValueType)("boolean"),optional:!0},variance:{validate:(0,x.assertNodeType)("Variance"),optional:!0}})}));J("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},ps(!0),{fields:Object.assign({},Tn(),{key:{validate:(0,x.chain)((function(){let e=(0,x.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,x.assertNodeType)("Expression");return function(r,i,s){(r.computed?t:e)(r,i,s)}})(),(0,x.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,x.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,x.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,x.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,x.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,x.assertValueType)("boolean"),optional:!0},declare:{validate:(0,x.assertValueType)("boolean"),optional:!0},variance:{validate:(0,x.assertNodeType)("Variance"),optional:!0}})}));J("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,x.assertNodeType)("PrivateName")},value:{validate:(0,x.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,x.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,x.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,x.assertValueType)("boolean"),default:!1},readonly:{validate:(0,x.assertValueType)("boolean"),optional:!0},optional:{validate:(0,x.assertValueType)("boolean"),optional:!0},definite:{validate:(0,x.assertValueType)("boolean"),optional:!0},variance:{validate:(0,x.assertNodeType)("Variance"),optional:!0}}});J("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},Eo(),ai(),{kind:{validate:(0,x.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,x.assertNodeType)("PrivateName")},body:{validate:(0,x.assertNodeType)("BlockStatement")}})});J("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,x.assertNodeType)("Identifier")}}});J("StaticBlock",{visitor:["body"],fields:{body:(0,x.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});J("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,x.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,x.assertNodeType)("StringLiteral")}}})});var jf=N(()=>{"use strict";var Rf=fs(),O=dr(),ne=(0,O.defineAliasedType)("Flow"),Po=e=>{let t=e==="DeclareClass";ne(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),extends:(0,O.validateOptional)((0,O.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,O.validateOptional)((0,O.arrayOfType)("InterfaceExtends")),implements:(0,O.validateOptional)((0,O.arrayOfType)("ClassImplements"))}:{},{body:(0,O.validateType)("ObjectTypeAnnotation")})})};ne("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ne("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,O.validateType)("FlowType")}});ne("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ne("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,O.validate)((0,O.assertValueType)("boolean"))}});ne("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ne("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterInstantiation")}});Po("DeclareClass");ne("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier"),predicate:(0,O.validateOptionalType)("DeclaredPredicate")}});Po("DeclareInterface");ne("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier","StringLiteral"),body:(0,O.validateType)("BlockStatement"),kind:(0,O.validateOptional)((0,O.assertOneOf)("CommonJS","ES"))}});ne("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,O.validateType)("TypeAnnotation")}});ne("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),right:(0,O.validateType)("FlowType")}});ne("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,O.validateOptionalType)("FlowType"),impltype:(0,O.validateOptionalType)("FlowType")}});ne("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier")}});ne("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,O.validateOptionalType)("Flow"),specifiers:(0,O.validateOptional)((0,O.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,O.validateOptionalType)("StringLiteral"),default:(0,O.validateOptional)((0,O.assertValueType)("boolean"))},Rf.importAttributes)});ne("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,O.validateType)("StringLiteral"),exportKind:(0,O.validateOptional)((0,O.assertOneOf)("type","value"))},Rf.importAttributes)});ne("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,O.validateType)("Flow")}});ne("ExistsTypeAnnotation",{aliases:["FlowType"]});ne("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),params:(0,O.validateArrayOfType)("FunctionTypeParam"),rest:(0,O.validateOptionalType)("FunctionTypeParam"),this:(0,O.validateOptionalType)("FunctionTypeParam"),returnType:(0,O.validateType)("FlowType")}});ne("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,O.validateOptionalType)("Identifier"),typeAnnotation:(0,O.validateType)("FlowType"),optional:(0,O.validateOptional)((0,O.assertValueType)("boolean"))}});ne("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,O.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterInstantiation")}});ne("InferredPredicate",{aliases:["FlowPredicate"]});ne("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,O.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterInstantiation")}});Po("InterfaceDeclaration");ne("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,O.validateOptional)((0,O.arrayOfType)("InterfaceExtends")),body:(0,O.validateType)("ObjectTypeAnnotation")}});ne("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,O.validate)((0,O.arrayOfType)("FlowType"))}});ne("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ne("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ne("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,O.validateType)("FlowType")}});ne("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,O.validate)((0,O.assertValueType)("number"))}});ne("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ne("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,O.validate)((0,O.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,O.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,O.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,O.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,O.assertValueType)("boolean"),default:!1},inexact:(0,O.validateOptional)((0,O.assertValueType)("boolean"))}});ne("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,O.validateType)("Identifier"),value:(0,O.validateType)("FlowType"),optional:(0,O.validate)((0,O.assertValueType)("boolean")),static:(0,O.validate)((0,O.assertValueType)("boolean")),method:(0,O.validate)((0,O.assertValueType)("boolean"))}});ne("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,O.validateType)("FlowType"),static:(0,O.validate)((0,O.assertValueType)("boolean"))}});ne("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,O.validateOptionalType)("Identifier"),key:(0,O.validateType)("FlowType"),value:(0,O.validateType)("FlowType"),static:(0,O.validate)((0,O.assertValueType)("boolean")),variance:(0,O.validateOptionalType)("Variance")}});ne("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,O.validateType)("Identifier","StringLiteral"),value:(0,O.validateType)("FlowType"),kind:(0,O.validate)((0,O.assertOneOf)("init","get","set")),static:(0,O.validate)((0,O.assertValueType)("boolean")),proto:(0,O.validate)((0,O.assertValueType)("boolean")),optional:(0,O.validate)((0,O.assertValueType)("boolean")),variance:(0,O.validateOptionalType)("Variance"),method:(0,O.validate)((0,O.assertValueType)("boolean"))}});ne("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,O.validateType)("FlowType")}});ne("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,O.validateOptionalType)("FlowType"),impltype:(0,O.validateType)("FlowType")}});ne("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,O.validateType)("Identifier"),qualification:(0,O.validateType)("Identifier","QualifiedTypeIdentifier")}});ne("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,O.validate)((0,O.assertValueType)("string"))}});ne("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ne("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ne("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ne("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,O.validate)((0,O.arrayOfType)("FlowType"))}});ne("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,O.validateType)("FlowType")}});ne("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),right:(0,O.validateType)("FlowType")}});ne("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,O.validateType)("FlowType")}});ne("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,O.validateType)("Expression"),typeAnnotation:(0,O.validateType)("TypeAnnotation")}});ne("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,O.validate)((0,O.assertValueType)("string")),bound:(0,O.validateOptionalType)("TypeAnnotation"),default:(0,O.validateOptionalType)("FlowType"),variance:(0,O.validateOptionalType)("Variance")}});ne("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,O.validate)((0,O.arrayOfType)("TypeParameter"))}});ne("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,O.validate)((0,O.arrayOfType)("FlowType"))}});ne("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,O.validate)((0,O.arrayOfType)("FlowType"))}});ne("Variance",{builder:["kind"],fields:{kind:(0,O.validate)((0,O.assertOneOf)("minus","plus"))}});ne("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ne("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,O.validateType)("Identifier"),body:(0,O.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});ne("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,O.validate)((0,O.assertValueType)("boolean")),members:(0,O.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,O.validate)((0,O.assertValueType)("boolean"))}});ne("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,O.validate)((0,O.assertValueType)("boolean")),members:(0,O.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,O.validate)((0,O.assertValueType)("boolean"))}});ne("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,O.validate)((0,O.assertValueType)("boolean")),members:(0,O.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,O.validate)((0,O.assertValueType)("boolean"))}});ne("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,O.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,O.validate)((0,O.assertValueType)("boolean"))}});ne("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,O.validateType)("Identifier"),init:(0,O.validateType)("BooleanLiteral")}});ne("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,O.validateType)("Identifier"),init:(0,O.validateType)("NumericLiteral")}});ne("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,O.validateType)("Identifier"),init:(0,O.validateType)("StringLiteral")}});ne("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,O.validateType)("Identifier")}});ne("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,O.validateType)("FlowType"),indexType:(0,O.validateType)("FlowType")}});ne("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,O.validateType)("FlowType"),indexType:(0,O.validateType)("FlowType"),optional:(0,O.validate)((0,O.assertValueType)("boolean"))}})});var qf=N(()=>{"use strict";var rt=dr(),wt=(0,rt.defineAliasedType)("JSX");wt("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,rt.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,rt.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});wt("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,rt.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});wt("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,rt.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,rt.assertNodeType)("JSXClosingElement")},children:(0,rt.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,rt.assertValueType)("boolean"),optional:!0}})});wt("JSXEmptyExpression",{});wt("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,rt.assertNodeType)("Expression","JSXEmptyExpression")}}});wt("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,rt.assertNodeType)("Expression")}}});wt("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,rt.assertValueType)("string")}}});wt("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,rt.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,rt.assertNodeType)("JSXIdentifier")}}});wt("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,rt.assertNodeType)("JSXIdentifier")},name:{validate:(0,rt.assertNodeType)("JSXIdentifier")}}});wt("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,rt.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,rt.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,rt.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,rt.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});wt("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,rt.assertNodeType)("Expression")}}});wt("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,rt.assertValueType)("string")}}});wt("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,rt.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,rt.assertNodeType)("JSXClosingFragment")},children:(0,rt.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});wt("JSXOpeningFragment",{aliases:["Immutable"]});wt("JSXClosingFragment",{aliases:["Immutable"]})});var Co=N(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.PLACEHOLDERS_FLIPPED_ALIAS=Rr.PLACEHOLDERS_ALIAS=Rr.PLACEHOLDERS=void 0;var gv=dr(),xv=Rr.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],vo=Rr.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let e of xv){let t=gv.ALIAS_KEYS[e];t!=null&&t.length&&(vo[e]=t)}var Ao=Rr.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(vo).forEach(e=>{vo[e].forEach(t=>{hasOwnProperty.call(Ao,t)||(Ao[t]=[]),Ao[t].push(e)})})});var Uf=N(()=>{"use strict";var Sn=dr(),bv=Co(),Ev=fs(),Io=(0,Sn.defineAliasedType)("Miscellaneous");Io("Noop",{visitor:[]});Io("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,Sn.assertNodeType)("Identifier")},expectedNode:{validate:(0,Sn.assertOneOf)(...bv.PLACEHOLDERS)}},(0,Ev.patternLikeCommon)())});Io("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,Sn.assertValueType)("string")}}})});var Kf=N(()=>{"use strict";var Qe=dr();(0,Qe.default)("ArgumentPlaceholder",{});(0,Qe.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,Qe.assertNodeType)("Expression")},callee:{validate:(0,Qe.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}});(0,Qe.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,Qe.assertNodeType)("Expression")}}});(0,Qe.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,Qe.assertNodeType)("BlockStatement")},async:{validate:(0,Qe.assertValueType)("boolean"),default:!1}}});(0,Qe.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,Qe.assertNodeType)("Identifier")}}});(0,Qe.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,Qe.validateArrayOfType)("ObjectProperty","SpreadElement")}});(0,Qe.default)("TupleExpression",{fields:{elements:{validate:(0,Qe.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});(0,Qe.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,Qe.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0,Qe.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,Qe.assertNodeType)("Program")}},aliases:["Expression"]});(0,Qe.default)("TopicReference",{aliases:["Expression"]});(0,Qe.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,Qe.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Qe.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,Qe.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Qe.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});(0,Qe.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})});var Hf=N(()=>{"use strict";var M=dr(),wo=fs(),Pv=ki(),ce=(0,M.defineAliasedType)("TypeScript"),Bt=(0,M.assertValueType)("boolean"),Vf=()=>({returnType:{validate:(0,M.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,M.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});ce("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,M.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,M.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,M.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,M.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,M.arrayOfType)("Decorator"),optional:!0}}});ce("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,wo.functionDeclarationCommon)(),Vf())});ce("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,wo.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,wo.classMethodOrDeclareMethodCommon)(),Vf())}));ce("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,M.validateType)("TSEntityName"),right:(0,M.validateType)("Identifier")}});var gn=()=>({typeParameters:(0,M.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,M.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,M.validateOptionalType)("TSTypeAnnotation")}),$f={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:gn()};ce("TSCallSignatureDeclaration",$f);ce("TSConstructSignatureDeclaration",$f);var Jf=()=>({key:(0,M.validateType)("Expression"),computed:{default:!1},optional:(0,M.validateOptional)(Bt)});ce("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},Jf(),{readonly:(0,M.validateOptional)(Bt),typeAnnotation:(0,M.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,M.assertOneOf)("get","set")}})});ce("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},gn(),Jf(),{kind:{validate:(0,M.assertOneOf)("method","get","set")}})});ce("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,M.validateOptional)(Bt),static:(0,M.validateOptional)(Bt),parameters:(0,M.validateArrayOfType)("Identifier"),typeAnnotation:(0,M.validateOptionalType)("TSTypeAnnotation")}});var Av=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let e of Av)ce(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});ce("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var Xf={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};ce("TSFunctionType",Object.assign({},Xf,{fields:gn()}));ce("TSConstructorType",Object.assign({},Xf,{fields:Object.assign({},gn(),{abstract:(0,M.validateOptional)(Bt)})}));ce("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,M.validateType)("TSEntityName"),typeParameters:(0,M.validateOptionalType)("TSTypeParameterInstantiation")}});ce("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,M.validateType)("Identifier","TSThisType"),typeAnnotation:(0,M.validateOptionalType)("TSTypeAnnotation"),asserts:(0,M.validateOptional)(Bt)}});ce("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,M.validateType)("TSEntityName","TSImportType"),typeParameters:(0,M.validateOptionalType)("TSTypeParameterInstantiation")}});ce("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,M.validateArrayOfType)("TSTypeElement")}});ce("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,M.validateType)("TSType")}});ce("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,M.validateArrayOfType)("TSType","TSNamedTupleMember")}});ce("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,M.validateType)("TSType")}});ce("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,M.validateType)("TSType")}});ce("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,M.validateType)("Identifier"),optional:{validate:Bt,default:!1},elementType:(0,M.validateType)("TSType")}});var Yf={aliases:["TSType"],visitor:["types"],fields:{types:(0,M.validateArrayOfType)("TSType")}};ce("TSUnionType",Yf);ce("TSIntersectionType",Yf);ce("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,M.validateType)("TSType"),extendsType:(0,M.validateType)("TSType"),trueType:(0,M.validateType)("TSType"),falseType:(0,M.validateType)("TSType")}});ce("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,M.validateType)("TSTypeParameter")}});ce("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,M.validateType)("TSType")}});ce("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,M.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,M.validateType)("TSType")}});ce("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,M.validateType)("TSType"),indexType:(0,M.validateType)("TSType")}});ce("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,M.validateType)("TSTypeParameter")},{readonly:(0,M.validateOptional)((0,M.assertOneOf)(!0,!1,"+","-")),optional:(0,M.validateOptional)((0,M.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,M.validateOptionalType)("TSType"),nameType:(0,M.validateOptionalType)("TSType")})});ce("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,M.validateArrayOfType)("TemplateElement"),types:{validate:(0,M.chain)((0,M.assertValueType)("array"),(0,M.assertEach)((0,M.assertNodeType)("TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.
14
- Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});ce("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:(function(){let e=(0,M.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,M.assertOneOf)("-"),r=(0,M.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),i=function(n,a,o){(0,Pv.default)("UnaryExpression",o)?(t(o,"operator",o.operator),e(o,"argument",o.argument)):r(n,a,o)};return i.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],i})()}}});ce("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,M.validateType)("TSEntityName"),typeParameters:(0,M.validateOptionalType)("TSTypeParameterInstantiation")}});ce("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,M.validateOptional)(Bt),id:(0,M.validateType)("Identifier"),typeParameters:(0,M.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,M.validateOptional)((0,M.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,M.validateType)("TSInterfaceBody")}});ce("TSInterfaceBody",{visitor:["body"],fields:{body:(0,M.validateArrayOfType)("TSTypeElement")}});ce("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,M.validateOptional)(Bt),id:(0,M.validateType)("Identifier"),typeParameters:(0,M.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,M.validateType)("TSType")}});ce("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,M.validateType)("Expression"),typeParameters:(0,M.validateOptionalType)("TSTypeParameterInstantiation")}});var Wf={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,M.validateType)("Expression"),typeAnnotation:(0,M.validateType)("TSType")}};ce("TSAsExpression",Wf);ce("TSSatisfiesExpression",Wf);ce("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,M.validateType)("TSType"),expression:(0,M.validateType)("Expression")}});ce("TSEnumBody",{visitor:["members"],fields:{members:(0,M.validateArrayOfType)("TSEnumMember")}});ce("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,M.validateOptional)(Bt),const:(0,M.validateOptional)(Bt),id:(0,M.validateType)("Identifier"),members:(0,M.validateArrayOfType)("TSEnumMember"),initializer:(0,M.validateOptionalType)("Expression"),body:(0,M.validateOptionalType)("TSEnumBody")}});ce("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,M.validateType)("Identifier","StringLiteral"),initializer:(0,M.validateOptionalType)("Expression")}});ce("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,M.assertOneOf)("global","module","namespace")},declare:(0,M.validateOptional)(Bt)},{global:(0,M.validateOptional)(Bt)},{id:(0,M.validateType)("Identifier","StringLiteral"),body:(0,M.validateType)("TSModuleBlock","TSModuleDeclaration")})});ce("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,M.validateArrayOfType)("Statement")}});ce("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:Object.assign({},{argument:(0,M.validateType)("StringLiteral")},{qualifier:(0,M.validateOptionalType)("TSEntityName")},{typeParameters:(0,M.validateOptionalType)("TSTypeParameterInstantiation")},{options:{validate:(0,M.assertNodeType)("ObjectExpression"),optional:!0}})});ce("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,M.validate)(Bt)},{id:(0,M.validateType)("Identifier"),moduleReference:(0,M.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,M.assertOneOf)("type","value"),optional:!0}})});ce("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,M.validateType)("StringLiteral")}});ce("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,M.validateType)("Expression")}});ce("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,M.validateType)("Expression")}});ce("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,M.validateType)("Identifier")}});ce("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,M.assertNodeType)("TSType")}}});ce("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,M.validateArrayOfType)("TSType")}});ce("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,M.validateArrayOfType)("TSTypeParameter")}});ce("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,M.assertValueType)("string")},in:{validate:(0,M.assertValueType)("boolean"),optional:!0},out:{validate:(0,M.assertValueType)("boolean"),optional:!0},const:{validate:(0,M.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,M.assertNodeType)("TSType"),optional:!0},default:{validate:(0,M.assertNodeType)("TSType"),optional:!0}}})});var zf=N(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.DEPRECATED_ALIASES=void 0;var vW=xn.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var Jt=N(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Object.defineProperty(Ct,"ALIAS_KEYS",{enumerable:!0,get:function(){return Nt.ALIAS_KEYS}});Object.defineProperty(Ct,"BUILDER_KEYS",{enumerable:!0,get:function(){return Nt.BUILDER_KEYS}});Object.defineProperty(Ct,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return No.DEPRECATED_ALIASES}});Object.defineProperty(Ct,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return Nt.DEPRECATED_KEYS}});Object.defineProperty(Ct,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return Nt.FLIPPED_ALIAS_KEYS}});Object.defineProperty(Ct,"NODE_FIELDS",{enumerable:!0,get:function(){return Nt.NODE_FIELDS}});Object.defineProperty(Ct,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return Nt.NODE_PARENT_VALIDATIONS}});Object.defineProperty(Ct,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return Nt.NODE_UNION_SHAPES__PRIVATE}});Object.defineProperty(Ct,"PLACEHOLDERS",{enumerable:!0,get:function(){return Oo.PLACEHOLDERS}});Object.defineProperty(Ct,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return Oo.PLACEHOLDERS_ALIAS}});Object.defineProperty(Ct,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return Oo.PLACEHOLDERS_FLIPPED_ALIAS}});Ct.TYPES=void 0;Object.defineProperty(Ct,"VISITOR_KEYS",{enumerable:!0,get:function(){return Nt.VISITOR_KEYS}});fs();jf();qf();Uf();Kf();Hf();var Nt=dr(),Oo=Co(),No=zf();Object.keys(No.DEPRECATED_ALIASES).forEach(e=>{Nt.FLIPPED_ALIAS_KEYS[e]=Nt.FLIPPED_ALIAS_KEYS[No.DEPRECATED_ALIASES[e]]});for(let{types:e,set:t}of Nt.allExpandedTypes)for(let r of e){let i=Nt.FLIPPED_ALIAS_KEYS[r];i?i.forEach(t.add,t):t.add(r)}var IW=Ct.TYPES=[].concat(Object.keys(Nt.VISITOR_KEYS),Object.keys(Nt.FLIPPED_ALIAS_KEYS),Object.keys(Nt.DEPRECATED_KEYS))});var mn=N(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.default=vv;Ri.validateChild=Qf;Ri.validateField=Gf;Ri.validateInternal=Cv;var ds=Jt();function vv(e,t,r){if(!e)return;let i=ds.NODE_FIELDS[e.type];if(!i)return;let s=i[t];Gf(e,t,r,s),Qf(e,t,r)}function Cv(e,t,r,i,s){if(e!=null&&e.validate&&!(e.optional&&i==null)&&(e.validate(t,r,i),s)){var n;let a=i.type;if(a==null)return;(n=ds.NODE_PARENT_VALIDATIONS[a])==null||n.call(ds.NODE_PARENT_VALIDATIONS,t,r,i)}}function Gf(e,t,r,i){i!=null&&i.validate&&(i.optional&&r==null||i.validate(e,t,r))}function Qf(e,t,r){var i;let s=r?.type;s!=null&&((i=ds.NODE_PARENT_VALIDATIONS[s])==null||i.call(ds.NODE_PARENT_VALIDATIONS,e,t,r))}});var _o=N(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});d.anyTypeAnnotation=aC;d.argumentPlaceholder=MI;d.arrayExpression=Ov;d.arrayPattern=v1;d.arrayTypeAnnotation=oC;d.arrowFunctionExpression=C1;d.assignmentExpression=_v;d.assignmentPattern=A1;d.awaitExpression=W1;d.bigIntLiteral=Nv;d.binaryExpression=kv;d.bindExpression=FI;d.blockStatement=Fv;d.booleanLiteral=r1;d.booleanLiteralTypeAnnotation=uC;d.booleanTypeAnnotation=lC;d.breakStatement=Bv;d.callExpression=Rv;d.catchClause=jv;d.classAccessorProperty=eC;d.classBody=I1;d.classDeclaration=N1;d.classExpression=w1;d.classImplements=pC;d.classMethod=U1;d.classPrivateMethod=rC;d.classPrivateProperty=tC;d.classProperty=Z1;d.conditionalExpression=qv;d.continueStatement=Uv;d.debuggerStatement=Kv;d.decimalLiteral=KI;d.declareClass=fC;d.declareExportAllDeclaration=bC;d.declareExportDeclaration=xC;d.declareFunction=dC;d.declareInterface=hC;d.declareModule=mC;d.declareModuleExports=yC;d.declareOpaqueType=SC;d.declareTypeAlias=TC;d.declareVariable=gC;d.declaredPredicate=EC;d.decorator=BI;d.directive=Lv;d.directiveLiteral=Mv;d.doExpression=RI;d.doWhileStatement=Vv;d.emptyStatement=$v;d.emptyTypeAnnotation=DC;d.enumBooleanBody=oI;d.enumBooleanMember=pI;d.enumDeclaration=aI;d.enumDefaultedMember=hI;d.enumNumberBody=lI;d.enumNumberMember=fI;d.enumStringBody=uI;d.enumStringMember=dI;d.enumSymbolBody=cI;d.existsTypeAnnotation=PC;d.exportAllDeclaration=O1;d.exportDefaultDeclaration=_1;d.exportDefaultSpecifier=jI;d.exportNamedDeclaration=k1;d.exportNamespaceSpecifier=z1;d.exportSpecifier=D1;d.expressionStatement=Jv;d.file=Xv;d.forInStatement=Yv;d.forOfStatement=L1;d.forStatement=Wv;d.functionDeclaration=Hv;d.functionExpression=zv;d.functionTypeAnnotation=AC;d.functionTypeParam=vC;d.genericTypeAnnotation=CC;d.identifier=Gv;d.ifStatement=Qv;d.import=H1;d.importAttribute=nC;d.importDeclaration=M1;d.importDefaultSpecifier=F1;d.importExpression=j1;d.importNamespaceSpecifier=B1;d.importSpecifier=R1;d.indexedAccessType=mI;d.inferredPredicate=IC;d.interfaceDeclaration=NC;d.interfaceExtends=wC;d.interfaceTypeAnnotation=OC;d.interpreterDirective=Dv;d.intersectionTypeAnnotation=_C;d.jSXAttribute=d.jsxAttribute=TI;d.jSXClosingElement=d.jsxClosingElement=SI;d.jSXClosingFragment=d.jsxClosingFragment=_I;d.jSXElement=d.jsxElement=gI;d.jSXEmptyExpression=d.jsxEmptyExpression=xI;d.jSXExpressionContainer=d.jsxExpressionContainer=bI;d.jSXFragment=d.jsxFragment=NI;d.jSXIdentifier=d.jsxIdentifier=PI;d.jSXMemberExpression=d.jsxMemberExpression=AI;d.jSXNamespacedName=d.jsxNamespacedName=vI;d.jSXOpeningElement=d.jsxOpeningElement=CI;d.jSXOpeningFragment=d.jsxOpeningFragment=OI;d.jSXSpreadAttribute=d.jsxSpreadAttribute=II;d.jSXSpreadChild=d.jsxSpreadChild=EI;d.jSXText=d.jsxText=wI;d.labeledStatement=Zv;d.logicalExpression=i1;d.memberExpression=s1;d.metaProperty=q1;d.mixedTypeAnnotation=kC;d.moduleExpression=VI;d.newExpression=n1;d.noop=kI;d.nullLiteral=t1;d.nullLiteralTypeAnnotation=cC;d.nullableTypeAnnotation=LC;d.numberLiteral=lN;d.numberLiteralTypeAnnotation=MC;d.numberTypeAnnotation=FC;d.numericLiteral=Zf;d.objectExpression=o1;d.objectMethod=l1;d.objectPattern=K1;d.objectProperty=u1;d.objectTypeAnnotation=BC;d.objectTypeCallProperty=jC;d.objectTypeIndexer=qC;d.objectTypeInternalSlot=RC;d.objectTypeProperty=UC;d.objectTypeSpreadProperty=KC;d.opaqueType=VC;d.optionalCallExpression=Q1;d.optionalIndexedAccessType=yI;d.optionalMemberExpression=G1;d.parenthesizedExpression=f1;d.pipelineBareFunction=XI;d.pipelinePrimaryTopicReference=YI;d.pipelineTopicExpression=JI;d.placeholder=DI;d.privateName=iC;d.program=a1;d.qualifiedTypeIdentifier=$C;d.recordExpression=qI;d.regExpLiteral=ed;d.regexLiteral=uN;d.restElement=td;d.restProperty=cN;d.returnStatement=c1;d.sequenceExpression=p1;d.spreadElement=rd;d.spreadProperty=pN;d.staticBlock=sC;d.stringLiteral=e1;d.stringLiteralTypeAnnotation=JC;d.stringTypeAnnotation=XC;d.super=V1;d.switchCase=d1;d.switchStatement=h1;d.symbolTypeAnnotation=YC;d.taggedTemplateExpression=$1;d.templateElement=J1;d.templateLiteral=X1;d.thisExpression=m1;d.thisTypeAnnotation=WC;d.throwStatement=y1;d.topicReference=$I;d.tryStatement=T1;d.tSAnyKeyword=d.tsAnyKeyword=sw;d.tSArrayType=d.tsArrayType=Aw;d.tSAsExpression=d.tsAsExpression=$w;d.tSBigIntKeyword=d.tsBigIntKeyword=aw;d.tSBooleanKeyword=d.tsBooleanKeyword=nw;d.tSCallSignatureDeclaration=d.tsCallSignatureDeclaration=ZI;d.tSConditionalType=d.tsConditionalType=_w;d.tSConstructSignatureDeclaration=d.tsConstructSignatureDeclaration=ew;d.tSConstructorType=d.tsConstructorType=gw;d.tSDeclareFunction=d.tsDeclareFunction=zI;d.tSDeclareMethod=d.tsDeclareMethod=GI;d.tSEnumBody=d.tsEnumBody=Yw;d.tSEnumDeclaration=d.tsEnumDeclaration=Ww;d.tSEnumMember=d.tsEnumMember=Hw;d.tSExportAssignment=d.tsExportAssignment=rN;d.tSExpressionWithTypeArguments=d.tsExpressionWithTypeArguments=jw;d.tSExternalModuleReference=d.tsExternalModuleReference=eN;d.tSFunctionType=d.tsFunctionType=Sw;d.tSImportEqualsDeclaration=d.tsImportEqualsDeclaration=Zw;d.tSImportType=d.tsImportType=Qw;d.tSIndexSignature=d.tsIndexSignature=iw;d.tSIndexedAccessType=d.tsIndexedAccessType=Mw;d.tSInferType=d.tsInferType=kw;d.tSInstantiationExpression=d.tsInstantiationExpression=Vw;d.tSInterfaceBody=d.tsInterfaceBody=Uw;d.tSInterfaceDeclaration=d.tsInterfaceDeclaration=qw;d.tSIntersectionType=d.tsIntersectionType=Ow;d.tSIntrinsicKeyword=d.tsIntrinsicKeyword=ow;d.tSLiteralType=d.tsLiteralType=Rw;d.tSMappedType=d.tsMappedType=Fw;d.tSMethodSignature=d.tsMethodSignature=rw;d.tSModuleBlock=d.tsModuleBlock=Gw;d.tSModuleDeclaration=d.tsModuleDeclaration=zw;d.tSNamedTupleMember=d.tsNamedTupleMember=ww;d.tSNamespaceExportDeclaration=d.tsNamespaceExportDeclaration=iN;d.tSNeverKeyword=d.tsNeverKeyword=lw;d.tSNonNullExpression=d.tsNonNullExpression=tN;d.tSNullKeyword=d.tsNullKeyword=uw;d.tSNumberKeyword=d.tsNumberKeyword=cw;d.tSObjectKeyword=d.tsObjectKeyword=pw;d.tSOptionalType=d.tsOptionalType=Cw;d.tSParameterProperty=d.tsParameterProperty=HI;d.tSParenthesizedType=d.tsParenthesizedType=Dw;d.tSPropertySignature=d.tsPropertySignature=tw;d.tSQualifiedName=d.tsQualifiedName=QI;d.tSRestType=d.tsRestType=Iw;d.tSSatisfiesExpression=d.tsSatisfiesExpression=Jw;d.tSStringKeyword=d.tsStringKeyword=fw;d.tSSymbolKeyword=d.tsSymbolKeyword=dw;d.tSTemplateLiteralType=d.tsTemplateLiteralType=Bw;d.tSThisType=d.tsThisType=Tw;d.tSTupleType=d.tsTupleType=vw;d.tSTypeAliasDeclaration=d.tsTypeAliasDeclaration=Kw;d.tSTypeAnnotation=d.tsTypeAnnotation=sN;d.tSTypeAssertion=d.tsTypeAssertion=Xw;d.tSTypeLiteral=d.tsTypeLiteral=Pw;d.tSTypeOperator=d.tsTypeOperator=Lw;d.tSTypeParameter=d.tsTypeParameter=oN;d.tSTypeParameterDeclaration=d.tsTypeParameterDeclaration=aN;d.tSTypeParameterInstantiation=d.tsTypeParameterInstantiation=nN;d.tSTypePredicate=d.tsTypePredicate=bw;d.tSTypeQuery=d.tsTypeQuery=Ew;d.tSTypeReference=d.tsTypeReference=xw;d.tSUndefinedKeyword=d.tsUndefinedKeyword=hw;d.tSUnionType=d.tsUnionType=Nw;d.tSUnknownKeyword=d.tsUnknownKeyword=mw;d.tSVoidKeyword=d.tsVoidKeyword=yw;d.tupleExpression=UI;d.tupleTypeAnnotation=HC;d.typeAlias=GC;d.typeAnnotation=QC;d.typeCastExpression=ZC;d.typeParameter=eI;d.typeParameterDeclaration=tI;d.typeParameterInstantiation=rI;d.typeofTypeAnnotation=zC;d.unaryExpression=S1;d.unionTypeAnnotation=iI;d.updateExpression=g1;d.v8IntrinsicIdentifier=LI;d.variableDeclaration=x1;d.variableDeclarator=b1;d.variance=sI;d.voidPattern=WI;d.voidTypeAnnotation=nI;d.whileStatement=E1;d.withStatement=P1;d.yieldExpression=Y1;var Iv=mn(),bn=_i(),wv=dr(),{validateInternal:p}=Iv,{NODE_FIELDS:C}=wv;function Nv(e){typeof e=="bigint"&&(e=e.toString());let t={type:"BigIntLiteral",value:e},r=C.BigIntLiteral;return p(r.value,t,"value",e),t}function Ov(e=[]){let t={type:"ArrayExpression",elements:e},r=C.ArrayExpression;return p(r.elements,t,"elements",e,1),t}function _v(e,t,r){let i={type:"AssignmentExpression",operator:e,left:t,right:r},s=C.AssignmentExpression;return p(s.operator,i,"operator",e),p(s.left,i,"left",t,1),p(s.right,i,"right",r,1),i}function kv(e,t,r){let i={type:"BinaryExpression",operator:e,left:t,right:r},s=C.BinaryExpression;return p(s.operator,i,"operator",e),p(s.left,i,"left",t,1),p(s.right,i,"right",r,1),i}function Dv(e){let t={type:"InterpreterDirective",value:e},r=C.InterpreterDirective;return p(r.value,t,"value",e),t}function Lv(e){let t={type:"Directive",value:e},r=C.Directive;return p(r.value,t,"value",e,1),t}function Mv(e){let t={type:"DirectiveLiteral",value:e},r=C.DirectiveLiteral;return p(r.value,t,"value",e),t}function Fv(e,t=[]){let r={type:"BlockStatement",body:e,directives:t},i=C.BlockStatement;return p(i.body,r,"body",e,1),p(i.directives,r,"directives",t,1),r}function Bv(e=null){let t={type:"BreakStatement",label:e},r=C.BreakStatement;return p(r.label,t,"label",e,1),t}function Rv(e,t){let r={type:"CallExpression",callee:e,arguments:t},i=C.CallExpression;return p(i.callee,r,"callee",e,1),p(i.arguments,r,"arguments",t,1),r}function jv(e=null,t){let r={type:"CatchClause",param:e,body:t},i=C.CatchClause;return p(i.param,r,"param",e,1),p(i.body,r,"body",t,1),r}function qv(e,t,r){let i={type:"ConditionalExpression",test:e,consequent:t,alternate:r},s=C.ConditionalExpression;return p(s.test,i,"test",e,1),p(s.consequent,i,"consequent",t,1),p(s.alternate,i,"alternate",r,1),i}function Uv(e=null){let t={type:"ContinueStatement",label:e},r=C.ContinueStatement;return p(r.label,t,"label",e,1),t}function Kv(){return{type:"DebuggerStatement"}}function Vv(e,t){let r={type:"DoWhileStatement",test:e,body:t},i=C.DoWhileStatement;return p(i.test,r,"test",e,1),p(i.body,r,"body",t,1),r}function $v(){return{type:"EmptyStatement"}}function Jv(e){let t={type:"ExpressionStatement",expression:e},r=C.ExpressionStatement;return p(r.expression,t,"expression",e,1),t}function Xv(e,t=null,r=null){let i={type:"File",program:e,comments:t,tokens:r},s=C.File;return p(s.program,i,"program",e,1),p(s.comments,i,"comments",t,1),p(s.tokens,i,"tokens",r),i}function Yv(e,t,r){let i={type:"ForInStatement",left:e,right:t,body:r},s=C.ForInStatement;return p(s.left,i,"left",e,1),p(s.right,i,"right",t,1),p(s.body,i,"body",r,1),i}function Wv(e=null,t=null,r=null,i){let s={type:"ForStatement",init:e,test:t,update:r,body:i},n=C.ForStatement;return p(n.init,s,"init",e,1),p(n.test,s,"test",t,1),p(n.update,s,"update",r,1),p(n.body,s,"body",i,1),s}function Hv(e=null,t,r,i=!1,s=!1){let n={type:"FunctionDeclaration",id:e,params:t,body:r,generator:i,async:s},a=C.FunctionDeclaration;return p(a.id,n,"id",e,1),p(a.params,n,"params",t,1),p(a.body,n,"body",r,1),p(a.generator,n,"generator",i),p(a.async,n,"async",s),n}function zv(e=null,t,r,i=!1,s=!1){let n={type:"FunctionExpression",id:e,params:t,body:r,generator:i,async:s},a=C.FunctionExpression;return p(a.id,n,"id",e,1),p(a.params,n,"params",t,1),p(a.body,n,"body",r,1),p(a.generator,n,"generator",i),p(a.async,n,"async",s),n}function Gv(e){let t={type:"Identifier",name:e},r=C.Identifier;return p(r.name,t,"name",e),t}function Qv(e,t,r=null){let i={type:"IfStatement",test:e,consequent:t,alternate:r},s=C.IfStatement;return p(s.test,i,"test",e,1),p(s.consequent,i,"consequent",t,1),p(s.alternate,i,"alternate",r,1),i}function Zv(e,t){let r={type:"LabeledStatement",label:e,body:t},i=C.LabeledStatement;return p(i.label,r,"label",e,1),p(i.body,r,"body",t,1),r}function e1(e){let t={type:"StringLiteral",value:e},r=C.StringLiteral;return p(r.value,t,"value",e),t}function Zf(e){let t={type:"NumericLiteral",value:e},r=C.NumericLiteral;return p(r.value,t,"value",e),t}function t1(){return{type:"NullLiteral"}}function r1(e){let t={type:"BooleanLiteral",value:e},r=C.BooleanLiteral;return p(r.value,t,"value",e),t}function ed(e,t=""){let r={type:"RegExpLiteral",pattern:e,flags:t},i=C.RegExpLiteral;return p(i.pattern,r,"pattern",e),p(i.flags,r,"flags",t),r}function i1(e,t,r){let i={type:"LogicalExpression",operator:e,left:t,right:r},s=C.LogicalExpression;return p(s.operator,i,"operator",e),p(s.left,i,"left",t,1),p(s.right,i,"right",r,1),i}function s1(e,t,r=!1,i=null){let s={type:"MemberExpression",object:e,property:t,computed:r,optional:i},n=C.MemberExpression;return p(n.object,s,"object",e,1),p(n.property,s,"property",t,1),p(n.computed,s,"computed",r),p(n.optional,s,"optional",i),s}function n1(e,t){let r={type:"NewExpression",callee:e,arguments:t,typeParameters:null},i=C.NewExpression;return p(i.callee,r,"callee",e,1),p(i.arguments,r,"arguments",t,1),r}function a1(e,t=[],r="script",i=null){let s={type:"Program",body:e,directives:t,sourceType:r,interpreter:i},n=C.Program;return p(n.body,s,"body",e,1),p(n.directives,s,"directives",t,1),p(n.sourceType,s,"sourceType",r),p(n.interpreter,s,"interpreter",i,1),s}function o1(e){let t={type:"ObjectExpression",properties:e},r=C.ObjectExpression;return p(r.properties,t,"properties",e,1),t}function l1(e="method",t,r,i,s=!1,n=!1,a=!1){let o={type:"ObjectMethod",kind:e,key:t,params:r,body:i,computed:s,generator:n,async:a},l=C.ObjectMethod;return p(l.kind,o,"kind",e),p(l.key,o,"key",t,1),p(l.params,o,"params",r,1),p(l.body,o,"body",i,1),p(l.computed,o,"computed",s),p(l.generator,o,"generator",n),p(l.async,o,"async",a),o}function u1(e,t,r=!1,i=!1,s=null){let n={type:"ObjectProperty",key:e,value:t,computed:r,shorthand:i,decorators:s},a=C.ObjectProperty;return p(a.key,n,"key",e,1),p(a.value,n,"value",t,1),p(a.computed,n,"computed",r),p(a.shorthand,n,"shorthand",i),p(a.decorators,n,"decorators",s,1),n}function td(e){let t={type:"RestElement",argument:e},r=C.RestElement;return p(r.argument,t,"argument",e,1),t}function c1(e=null){let t={type:"ReturnStatement",argument:e},r=C.ReturnStatement;return p(r.argument,t,"argument",e,1),t}function p1(e){let t={type:"SequenceExpression",expressions:e},r=C.SequenceExpression;return p(r.expressions,t,"expressions",e,1),t}function f1(e){let t={type:"ParenthesizedExpression",expression:e},r=C.ParenthesizedExpression;return p(r.expression,t,"expression",e,1),t}function d1(e=null,t){let r={type:"SwitchCase",test:e,consequent:t},i=C.SwitchCase;return p(i.test,r,"test",e,1),p(i.consequent,r,"consequent",t,1),r}function h1(e,t){let r={type:"SwitchStatement",discriminant:e,cases:t},i=C.SwitchStatement;return p(i.discriminant,r,"discriminant",e,1),p(i.cases,r,"cases",t,1),r}function m1(){return{type:"ThisExpression"}}function y1(e){let t={type:"ThrowStatement",argument:e},r=C.ThrowStatement;return p(r.argument,t,"argument",e,1),t}function T1(e,t=null,r=null){let i={type:"TryStatement",block:e,handler:t,finalizer:r},s=C.TryStatement;return p(s.block,i,"block",e,1),p(s.handler,i,"handler",t,1),p(s.finalizer,i,"finalizer",r,1),i}function S1(e,t,r=!0){let i={type:"UnaryExpression",operator:e,argument:t,prefix:r},s=C.UnaryExpression;return p(s.operator,i,"operator",e),p(s.argument,i,"argument",t,1),p(s.prefix,i,"prefix",r),i}function g1(e,t,r=!1){let i={type:"UpdateExpression",operator:e,argument:t,prefix:r},s=C.UpdateExpression;return p(s.operator,i,"operator",e),p(s.argument,i,"argument",t,1),p(s.prefix,i,"prefix",r),i}function x1(e,t){let r={type:"VariableDeclaration",kind:e,declarations:t},i=C.VariableDeclaration;return p(i.kind,r,"kind",e),p(i.declarations,r,"declarations",t,1),r}function b1(e,t=null){let r={type:"VariableDeclarator",id:e,init:t},i=C.VariableDeclarator;return p(i.id,r,"id",e,1),p(i.init,r,"init",t,1),r}function E1(e,t){let r={type:"WhileStatement",test:e,body:t},i=C.WhileStatement;return p(i.test,r,"test",e,1),p(i.body,r,"body",t,1),r}function P1(e,t){let r={type:"WithStatement",object:e,body:t},i=C.WithStatement;return p(i.object,r,"object",e,1),p(i.body,r,"body",t,1),r}function A1(e,t){let r={type:"AssignmentPattern",left:e,right:t},i=C.AssignmentPattern;return p(i.left,r,"left",e,1),p(i.right,r,"right",t,1),r}function v1(e){let t={type:"ArrayPattern",elements:e},r=C.ArrayPattern;return p(r.elements,t,"elements",e,1),t}function C1(e,t,r=!1){let i={type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null},s=C.ArrowFunctionExpression;return p(s.params,i,"params",e,1),p(s.body,i,"body",t,1),p(s.async,i,"async",r),i}function I1(e){let t={type:"ClassBody",body:e},r=C.ClassBody;return p(r.body,t,"body",e,1),t}function w1(e=null,t=null,r,i=null){let s={type:"ClassExpression",id:e,superClass:t,body:r,decorators:i},n=C.ClassExpression;return p(n.id,s,"id",e,1),p(n.superClass,s,"superClass",t,1),p(n.body,s,"body",r,1),p(n.decorators,s,"decorators",i,1),s}function N1(e=null,t=null,r,i=null){let s={type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:i},n=C.ClassDeclaration;return p(n.id,s,"id",e,1),p(n.superClass,s,"superClass",t,1),p(n.body,s,"body",r,1),p(n.decorators,s,"decorators",i,1),s}function O1(e,t=null){let r={type:"ExportAllDeclaration",source:e,attributes:t},i=C.ExportAllDeclaration;return p(i.source,r,"source",e,1),p(i.attributes,r,"attributes",t,1),r}function _1(e){let t={type:"ExportDefaultDeclaration",declaration:e},r=C.ExportDefaultDeclaration;return p(r.declaration,t,"declaration",e,1),t}function k1(e=null,t=[],r=null,i=null){let s={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r,attributes:i},n=C.ExportNamedDeclaration;return p(n.declaration,s,"declaration",e,1),p(n.specifiers,s,"specifiers",t,1),p(n.source,s,"source",r,1),p(n.attributes,s,"attributes",i,1),s}function D1(e,t){let r={type:"ExportSpecifier",local:e,exported:t},i=C.ExportSpecifier;return p(i.local,r,"local",e,1),p(i.exported,r,"exported",t,1),r}function L1(e,t,r,i=!1){let s={type:"ForOfStatement",left:e,right:t,body:r,await:i},n=C.ForOfStatement;return p(n.left,s,"left",e,1),p(n.right,s,"right",t,1),p(n.body,s,"body",r,1),p(n.await,s,"await",i),s}function M1(e,t,r=null){let i={type:"ImportDeclaration",specifiers:e,source:t,attributes:r},s=C.ImportDeclaration;return p(s.specifiers,i,"specifiers",e,1),p(s.source,i,"source",t,1),p(s.attributes,i,"attributes",r,1),i}function F1(e){let t={type:"ImportDefaultSpecifier",local:e},r=C.ImportDefaultSpecifier;return p(r.local,t,"local",e,1),t}function B1(e){let t={type:"ImportNamespaceSpecifier",local:e},r=C.ImportNamespaceSpecifier;return p(r.local,t,"local",e,1),t}function R1(e,t){let r={type:"ImportSpecifier",local:e,imported:t},i=C.ImportSpecifier;return p(i.local,r,"local",e,1),p(i.imported,r,"imported",t,1),r}function j1(e,t=null){let r={type:"ImportExpression",source:e,options:t},i=C.ImportExpression;return p(i.source,r,"source",e,1),p(i.options,r,"options",t,1),r}function q1(e,t){let r={type:"MetaProperty",meta:e,property:t},i=C.MetaProperty;return p(i.meta,r,"meta",e,1),p(i.property,r,"property",t,1),r}function U1(e="method",t,r,i,s=!1,n=!1,a=!1,o=!1){let l={type:"ClassMethod",kind:e,key:t,params:r,body:i,computed:s,static:n,generator:a,async:o},u=C.ClassMethod;return p(u.kind,l,"kind",e),p(u.key,l,"key",t,1),p(u.params,l,"params",r,1),p(u.body,l,"body",i,1),p(u.computed,l,"computed",s),p(u.static,l,"static",n),p(u.generator,l,"generator",a),p(u.async,l,"async",o),l}function K1(e){let t={type:"ObjectPattern",properties:e},r=C.ObjectPattern;return p(r.properties,t,"properties",e,1),t}function rd(e){let t={type:"SpreadElement",argument:e},r=C.SpreadElement;return p(r.argument,t,"argument",e,1),t}function V1(){return{type:"Super"}}function $1(e,t){let r={type:"TaggedTemplateExpression",tag:e,quasi:t},i=C.TaggedTemplateExpression;return p(i.tag,r,"tag",e,1),p(i.quasi,r,"quasi",t,1),r}function J1(e,t=!1){let r={type:"TemplateElement",value:e,tail:t},i=C.TemplateElement;return p(i.value,r,"value",e),p(i.tail,r,"tail",t),r}function X1(e,t){let r={type:"TemplateLiteral",quasis:e,expressions:t},i=C.TemplateLiteral;return p(i.quasis,r,"quasis",e,1),p(i.expressions,r,"expressions",t,1),r}function Y1(e=null,t=!1){let r={type:"YieldExpression",argument:e,delegate:t},i=C.YieldExpression;return p(i.argument,r,"argument",e,1),p(i.delegate,r,"delegate",t),r}function W1(e){let t={type:"AwaitExpression",argument:e},r=C.AwaitExpression;return p(r.argument,t,"argument",e,1),t}function H1(){return{type:"Import"}}function z1(e){let t={type:"ExportNamespaceSpecifier",exported:e},r=C.ExportNamespaceSpecifier;return p(r.exported,t,"exported",e,1),t}function G1(e,t,r=!1,i){let s={type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:i},n=C.OptionalMemberExpression;return p(n.object,s,"object",e,1),p(n.property,s,"property",t,1),p(n.computed,s,"computed",r),p(n.optional,s,"optional",i),s}function Q1(e,t,r){let i={type:"OptionalCallExpression",callee:e,arguments:t,optional:r},s=C.OptionalCallExpression;return p(s.callee,i,"callee",e,1),p(s.arguments,i,"arguments",t,1),p(s.optional,i,"optional",r),i}function Z1(e,t=null,r=null,i=null,s=!1,n=!1){let a={type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:i,computed:s,static:n},o=C.ClassProperty;return p(o.key,a,"key",e,1),p(o.value,a,"value",t,1),p(o.typeAnnotation,a,"typeAnnotation",r,1),p(o.decorators,a,"decorators",i,1),p(o.computed,a,"computed",s),p(o.static,a,"static",n),a}function eC(e,t=null,r=null,i=null,s=!1,n=!1){let a={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:i,computed:s,static:n},o=C.ClassAccessorProperty;return p(o.key,a,"key",e,1),p(o.value,a,"value",t,1),p(o.typeAnnotation,a,"typeAnnotation",r,1),p(o.decorators,a,"decorators",i,1),p(o.computed,a,"computed",s),p(o.static,a,"static",n),a}function tC(e,t=null,r=null,i=!1){let s={type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:i},n=C.ClassPrivateProperty;return p(n.key,s,"key",e,1),p(n.value,s,"value",t,1),p(n.decorators,s,"decorators",r,1),p(n.static,s,"static",i),s}function rC(e="method",t,r,i,s=!1){let n={type:"ClassPrivateMethod",kind:e,key:t,params:r,body:i,static:s},a=C.ClassPrivateMethod;return p(a.kind,n,"kind",e),p(a.key,n,"key",t,1),p(a.params,n,"params",r,1),p(a.body,n,"body",i,1),p(a.static,n,"static",s),n}function iC(e){let t={type:"PrivateName",id:e},r=C.PrivateName;return p(r.id,t,"id",e,1),t}function sC(e){let t={type:"StaticBlock",body:e},r=C.StaticBlock;return p(r.body,t,"body",e,1),t}function nC(e,t){let r={type:"ImportAttribute",key:e,value:t},i=C.ImportAttribute;return p(i.key,r,"key",e,1),p(i.value,r,"value",t,1),r}function aC(){return{type:"AnyTypeAnnotation"}}function oC(e){let t={type:"ArrayTypeAnnotation",elementType:e},r=C.ArrayTypeAnnotation;return p(r.elementType,t,"elementType",e,1),t}function lC(){return{type:"BooleanTypeAnnotation"}}function uC(e){let t={type:"BooleanLiteralTypeAnnotation",value:e},r=C.BooleanLiteralTypeAnnotation;return p(r.value,t,"value",e),t}function cC(){return{type:"NullLiteralTypeAnnotation"}}function pC(e,t=null){let r={type:"ClassImplements",id:e,typeParameters:t},i=C.ClassImplements;return p(i.id,r,"id",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function fC(e,t=null,r=null,i){let s={type:"DeclareClass",id:e,typeParameters:t,extends:r,body:i},n=C.DeclareClass;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.extends,s,"extends",r,1),p(n.body,s,"body",i,1),s}function dC(e){let t={type:"DeclareFunction",id:e},r=C.DeclareFunction;return p(r.id,t,"id",e,1),t}function hC(e,t=null,r=null,i){let s={type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:i},n=C.DeclareInterface;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.extends,s,"extends",r,1),p(n.body,s,"body",i,1),s}function mC(e,t,r=null){let i={type:"DeclareModule",id:e,body:t,kind:r},s=C.DeclareModule;return p(s.id,i,"id",e,1),p(s.body,i,"body",t,1),p(s.kind,i,"kind",r),i}function yC(e){let t={type:"DeclareModuleExports",typeAnnotation:e},r=C.DeclareModuleExports;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function TC(e,t=null,r){let i={type:"DeclareTypeAlias",id:e,typeParameters:t,right:r},s=C.DeclareTypeAlias;return p(s.id,i,"id",e,1),p(s.typeParameters,i,"typeParameters",t,1),p(s.right,i,"right",r,1),i}function SC(e,t=null,r=null){let i={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r},s=C.DeclareOpaqueType;return p(s.id,i,"id",e,1),p(s.typeParameters,i,"typeParameters",t,1),p(s.supertype,i,"supertype",r,1),i}function gC(e){let t={type:"DeclareVariable",id:e},r=C.DeclareVariable;return p(r.id,t,"id",e,1),t}function xC(e=null,t=null,r=null,i=null){let s={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r,attributes:i},n=C.DeclareExportDeclaration;return p(n.declaration,s,"declaration",e,1),p(n.specifiers,s,"specifiers",t,1),p(n.source,s,"source",r,1),p(n.attributes,s,"attributes",i,1),s}function bC(e,t=null){let r={type:"DeclareExportAllDeclaration",source:e,attributes:t},i=C.DeclareExportAllDeclaration;return p(i.source,r,"source",e,1),p(i.attributes,r,"attributes",t,1),r}function EC(e){let t={type:"DeclaredPredicate",value:e},r=C.DeclaredPredicate;return p(r.value,t,"value",e,1),t}function PC(){return{type:"ExistsTypeAnnotation"}}function AC(e=null,t,r=null,i){let s={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:i},n=C.FunctionTypeAnnotation;return p(n.typeParameters,s,"typeParameters",e,1),p(n.params,s,"params",t,1),p(n.rest,s,"rest",r,1),p(n.returnType,s,"returnType",i,1),s}function vC(e=null,t){let r={type:"FunctionTypeParam",name:e,typeAnnotation:t},i=C.FunctionTypeParam;return p(i.name,r,"name",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function CC(e,t=null){let r={type:"GenericTypeAnnotation",id:e,typeParameters:t},i=C.GenericTypeAnnotation;return p(i.id,r,"id",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function IC(){return{type:"InferredPredicate"}}function wC(e,t=null){let r={type:"InterfaceExtends",id:e,typeParameters:t},i=C.InterfaceExtends;return p(i.id,r,"id",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function NC(e,t=null,r=null,i){let s={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:i},n=C.InterfaceDeclaration;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.extends,s,"extends",r,1),p(n.body,s,"body",i,1),s}function OC(e=null,t){let r={type:"InterfaceTypeAnnotation",extends:e,body:t},i=C.InterfaceTypeAnnotation;return p(i.extends,r,"extends",e,1),p(i.body,r,"body",t,1),r}function _C(e){let t={type:"IntersectionTypeAnnotation",types:e},r=C.IntersectionTypeAnnotation;return p(r.types,t,"types",e,1),t}function kC(){return{type:"MixedTypeAnnotation"}}function DC(){return{type:"EmptyTypeAnnotation"}}function LC(e){let t={type:"NullableTypeAnnotation",typeAnnotation:e},r=C.NullableTypeAnnotation;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function MC(e){let t={type:"NumberLiteralTypeAnnotation",value:e},r=C.NumberLiteralTypeAnnotation;return p(r.value,t,"value",e),t}function FC(){return{type:"NumberTypeAnnotation"}}function BC(e,t=[],r=[],i=[],s=!1){let n={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:i,exact:s},a=C.ObjectTypeAnnotation;return p(a.properties,n,"properties",e,1),p(a.indexers,n,"indexers",t,1),p(a.callProperties,n,"callProperties",r,1),p(a.internalSlots,n,"internalSlots",i,1),p(a.exact,n,"exact",s),n}function RC(e,t,r,i,s){let n={type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:i,method:s},a=C.ObjectTypeInternalSlot;return p(a.id,n,"id",e,1),p(a.value,n,"value",t,1),p(a.optional,n,"optional",r),p(a.static,n,"static",i),p(a.method,n,"method",s),n}function jC(e){let t={type:"ObjectTypeCallProperty",value:e,static:null},r=C.ObjectTypeCallProperty;return p(r.value,t,"value",e,1),t}function qC(e=null,t,r,i=null){let s={type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:i,static:null},n=C.ObjectTypeIndexer;return p(n.id,s,"id",e,1),p(n.key,s,"key",t,1),p(n.value,s,"value",r,1),p(n.variance,s,"variance",i,1),s}function UC(e,t,r=null){let i={type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null},s=C.ObjectTypeProperty;return p(s.key,i,"key",e,1),p(s.value,i,"value",t,1),p(s.variance,i,"variance",r,1),i}function KC(e){let t={type:"ObjectTypeSpreadProperty",argument:e},r=C.ObjectTypeSpreadProperty;return p(r.argument,t,"argument",e,1),t}function VC(e,t=null,r=null,i){let s={type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:i},n=C.OpaqueType;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.supertype,s,"supertype",r,1),p(n.impltype,s,"impltype",i,1),s}function $C(e,t){let r={type:"QualifiedTypeIdentifier",id:e,qualification:t},i=C.QualifiedTypeIdentifier;return p(i.id,r,"id",e,1),p(i.qualification,r,"qualification",t,1),r}function JC(e){let t={type:"StringLiteralTypeAnnotation",value:e},r=C.StringLiteralTypeAnnotation;return p(r.value,t,"value",e),t}function XC(){return{type:"StringTypeAnnotation"}}function YC(){return{type:"SymbolTypeAnnotation"}}function WC(){return{type:"ThisTypeAnnotation"}}function HC(e){let t={type:"TupleTypeAnnotation",types:e},r=C.TupleTypeAnnotation;return p(r.types,t,"types",e,1),t}function zC(e){let t={type:"TypeofTypeAnnotation",argument:e},r=C.TypeofTypeAnnotation;return p(r.argument,t,"argument",e,1),t}function GC(e,t=null,r){let i={type:"TypeAlias",id:e,typeParameters:t,right:r},s=C.TypeAlias;return p(s.id,i,"id",e,1),p(s.typeParameters,i,"typeParameters",t,1),p(s.right,i,"right",r,1),i}function QC(e){let t={type:"TypeAnnotation",typeAnnotation:e},r=C.TypeAnnotation;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function ZC(e,t){let r={type:"TypeCastExpression",expression:e,typeAnnotation:t},i=C.TypeCastExpression;return p(i.expression,r,"expression",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function eI(e=null,t=null,r=null){let i={type:"TypeParameter",bound:e,default:t,variance:r,name:null},s=C.TypeParameter;return p(s.bound,i,"bound",e,1),p(s.default,i,"default",t,1),p(s.variance,i,"variance",r,1),i}function tI(e){let t={type:"TypeParameterDeclaration",params:e},r=C.TypeParameterDeclaration;return p(r.params,t,"params",e,1),t}function rI(e){let t={type:"TypeParameterInstantiation",params:e},r=C.TypeParameterInstantiation;return p(r.params,t,"params",e,1),t}function iI(e){let t={type:"UnionTypeAnnotation",types:e},r=C.UnionTypeAnnotation;return p(r.types,t,"types",e,1),t}function sI(e){let t={type:"Variance",kind:e},r=C.Variance;return p(r.kind,t,"kind",e),t}function nI(){return{type:"VoidTypeAnnotation"}}function aI(e,t){let r={type:"EnumDeclaration",id:e,body:t},i=C.EnumDeclaration;return p(i.id,r,"id",e,1),p(i.body,r,"body",t,1),r}function oI(e){let t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null},r=C.EnumBooleanBody;return p(r.members,t,"members",e,1),t}function lI(e){let t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},r=C.EnumNumberBody;return p(r.members,t,"members",e,1),t}function uI(e){let t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},r=C.EnumStringBody;return p(r.members,t,"members",e,1),t}function cI(e){let t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},r=C.EnumSymbolBody;return p(r.members,t,"members",e,1),t}function pI(e){let t={type:"EnumBooleanMember",id:e,init:null},r=C.EnumBooleanMember;return p(r.id,t,"id",e,1),t}function fI(e,t){let r={type:"EnumNumberMember",id:e,init:t},i=C.EnumNumberMember;return p(i.id,r,"id",e,1),p(i.init,r,"init",t,1),r}function dI(e,t){let r={type:"EnumStringMember",id:e,init:t},i=C.EnumStringMember;return p(i.id,r,"id",e,1),p(i.init,r,"init",t,1),r}function hI(e){let t={type:"EnumDefaultedMember",id:e},r=C.EnumDefaultedMember;return p(r.id,t,"id",e,1),t}function mI(e,t){let r={type:"IndexedAccessType",objectType:e,indexType:t},i=C.IndexedAccessType;return p(i.objectType,r,"objectType",e,1),p(i.indexType,r,"indexType",t,1),r}function yI(e,t){let r={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},i=C.OptionalIndexedAccessType;return p(i.objectType,r,"objectType",e,1),p(i.indexType,r,"indexType",t,1),r}function TI(e,t=null){let r={type:"JSXAttribute",name:e,value:t},i=C.JSXAttribute;return p(i.name,r,"name",e,1),p(i.value,r,"value",t,1),r}function SI(e){let t={type:"JSXClosingElement",name:e},r=C.JSXClosingElement;return p(r.name,t,"name",e,1),t}function gI(e,t=null,r,i=null){let s={type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:i},n=C.JSXElement;return p(n.openingElement,s,"openingElement",e,1),p(n.closingElement,s,"closingElement",t,1),p(n.children,s,"children",r,1),p(n.selfClosing,s,"selfClosing",i),s}function xI(){return{type:"JSXEmptyExpression"}}function bI(e){let t={type:"JSXExpressionContainer",expression:e},r=C.JSXExpressionContainer;return p(r.expression,t,"expression",e,1),t}function EI(e){let t={type:"JSXSpreadChild",expression:e},r=C.JSXSpreadChild;return p(r.expression,t,"expression",e,1),t}function PI(e){let t={type:"JSXIdentifier",name:e},r=C.JSXIdentifier;return p(r.name,t,"name",e),t}function AI(e,t){let r={type:"JSXMemberExpression",object:e,property:t},i=C.JSXMemberExpression;return p(i.object,r,"object",e,1),p(i.property,r,"property",t,1),r}function vI(e,t){let r={type:"JSXNamespacedName",namespace:e,name:t},i=C.JSXNamespacedName;return p(i.namespace,r,"namespace",e,1),p(i.name,r,"name",t,1),r}function CI(e,t,r=!1){let i={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r},s=C.JSXOpeningElement;return p(s.name,i,"name",e,1),p(s.attributes,i,"attributes",t,1),p(s.selfClosing,i,"selfClosing",r),i}function II(e){let t={type:"JSXSpreadAttribute",argument:e},r=C.JSXSpreadAttribute;return p(r.argument,t,"argument",e,1),t}function wI(e){let t={type:"JSXText",value:e},r=C.JSXText;return p(r.value,t,"value",e),t}function NI(e,t,r){let i={type:"JSXFragment",openingFragment:e,closingFragment:t,children:r},s=C.JSXFragment;return p(s.openingFragment,i,"openingFragment",e,1),p(s.closingFragment,i,"closingFragment",t,1),p(s.children,i,"children",r,1),i}function OI(){return{type:"JSXOpeningFragment"}}function _I(){return{type:"JSXClosingFragment"}}function kI(){return{type:"Noop"}}function DI(e,t){let r={type:"Placeholder",expectedNode:e,name:t},i=C.Placeholder;return p(i.expectedNode,r,"expectedNode",e),p(i.name,r,"name",t,1),r}function LI(e){let t={type:"V8IntrinsicIdentifier",name:e},r=C.V8IntrinsicIdentifier;return p(r.name,t,"name",e),t}function MI(){return{type:"ArgumentPlaceholder"}}function FI(e,t){let r={type:"BindExpression",object:e,callee:t},i=C.BindExpression;return p(i.object,r,"object",e,1),p(i.callee,r,"callee",t,1),r}function BI(e){let t={type:"Decorator",expression:e},r=C.Decorator;return p(r.expression,t,"expression",e,1),t}function RI(e,t=!1){let r={type:"DoExpression",body:e,async:t},i=C.DoExpression;return p(i.body,r,"body",e,1),p(i.async,r,"async",t),r}function jI(e){let t={type:"ExportDefaultSpecifier",exported:e},r=C.ExportDefaultSpecifier;return p(r.exported,t,"exported",e,1),t}function qI(e){let t={type:"RecordExpression",properties:e},r=C.RecordExpression;return p(r.properties,t,"properties",e,1),t}function UI(e=[]){let t={type:"TupleExpression",elements:e},r=C.TupleExpression;return p(r.elements,t,"elements",e,1),t}function KI(e){let t={type:"DecimalLiteral",value:e},r=C.DecimalLiteral;return p(r.value,t,"value",e),t}function VI(e){let t={type:"ModuleExpression",body:e},r=C.ModuleExpression;return p(r.body,t,"body",e,1),t}function $I(){return{type:"TopicReference"}}function JI(e){let t={type:"PipelineTopicExpression",expression:e},r=C.PipelineTopicExpression;return p(r.expression,t,"expression",e,1),t}function XI(e){let t={type:"PipelineBareFunction",callee:e},r=C.PipelineBareFunction;return p(r.callee,t,"callee",e,1),t}function YI(){return{type:"PipelinePrimaryTopicReference"}}function WI(){return{type:"VoidPattern"}}function HI(e){let t={type:"TSParameterProperty",parameter:e},r=C.TSParameterProperty;return p(r.parameter,t,"parameter",e,1),t}function zI(e=null,t=null,r,i=null){let s={type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:i},n=C.TSDeclareFunction;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.params,s,"params",r,1),p(n.returnType,s,"returnType",i,1),s}function GI(e=null,t,r=null,i,s=null){let n={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:i,returnType:s},a=C.TSDeclareMethod;return p(a.decorators,n,"decorators",e,1),p(a.key,n,"key",t,1),p(a.typeParameters,n,"typeParameters",r,1),p(a.params,n,"params",i,1),p(a.returnType,n,"returnType",s,1),n}function QI(e,t){let r={type:"TSQualifiedName",left:e,right:t},i=C.TSQualifiedName;return p(i.left,r,"left",e,1),p(i.right,r,"right",t,1),r}function ZI(e=null,t,r=null){let i={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},s=C.TSCallSignatureDeclaration;return p(s.typeParameters,i,"typeParameters",e,1),p(s.parameters,i,"parameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function ew(e=null,t,r=null){let i={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},s=C.TSConstructSignatureDeclaration;return p(s.typeParameters,i,"typeParameters",e,1),p(s.parameters,i,"parameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function tw(e,t=null){let r={type:"TSPropertySignature",key:e,typeAnnotation:t},i=C.TSPropertySignature;return p(i.key,r,"key",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function rw(e,t=null,r,i=null){let s={type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:i,kind:null},n=C.TSMethodSignature;return p(n.key,s,"key",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.parameters,s,"parameters",r,1),p(n.typeAnnotation,s,"typeAnnotation",i,1),s}function iw(e,t=null){let r={type:"TSIndexSignature",parameters:e,typeAnnotation:t},i=C.TSIndexSignature;return p(i.parameters,r,"parameters",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function sw(){return{type:"TSAnyKeyword"}}function nw(){return{type:"TSBooleanKeyword"}}function aw(){return{type:"TSBigIntKeyword"}}function ow(){return{type:"TSIntrinsicKeyword"}}function lw(){return{type:"TSNeverKeyword"}}function uw(){return{type:"TSNullKeyword"}}function cw(){return{type:"TSNumberKeyword"}}function pw(){return{type:"TSObjectKeyword"}}function fw(){return{type:"TSStringKeyword"}}function dw(){return{type:"TSSymbolKeyword"}}function hw(){return{type:"TSUndefinedKeyword"}}function mw(){return{type:"TSUnknownKeyword"}}function yw(){return{type:"TSVoidKeyword"}}function Tw(){return{type:"TSThisType"}}function Sw(e=null,t,r=null){let i={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r},s=C.TSFunctionType;return p(s.typeParameters,i,"typeParameters",e,1),p(s.parameters,i,"parameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function gw(e=null,t,r=null){let i={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r},s=C.TSConstructorType;return p(s.typeParameters,i,"typeParameters",e,1),p(s.parameters,i,"parameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function xw(e,t=null){let r={type:"TSTypeReference",typeName:e,typeParameters:t},i=C.TSTypeReference;return p(i.typeName,r,"typeName",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function bw(e,t=null,r=null){let i={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r},s=C.TSTypePredicate;return p(s.parameterName,i,"parameterName",e,1),p(s.typeAnnotation,i,"typeAnnotation",t,1),p(s.asserts,i,"asserts",r),i}function Ew(e,t=null){let r={type:"TSTypeQuery",exprName:e,typeParameters:t},i=C.TSTypeQuery;return p(i.exprName,r,"exprName",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function Pw(e){let t={type:"TSTypeLiteral",members:e},r=C.TSTypeLiteral;return p(r.members,t,"members",e,1),t}function Aw(e){let t={type:"TSArrayType",elementType:e},r=C.TSArrayType;return p(r.elementType,t,"elementType",e,1),t}function vw(e){let t={type:"TSTupleType",elementTypes:e},r=C.TSTupleType;return p(r.elementTypes,t,"elementTypes",e,1),t}function Cw(e){let t={type:"TSOptionalType",typeAnnotation:e},r=C.TSOptionalType;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function Iw(e){let t={type:"TSRestType",typeAnnotation:e},r=C.TSRestType;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function ww(e,t,r=!1){let i={type:"TSNamedTupleMember",label:e,elementType:t,optional:r},s=C.TSNamedTupleMember;return p(s.label,i,"label",e,1),p(s.elementType,i,"elementType",t,1),p(s.optional,i,"optional",r),i}function Nw(e){let t={type:"TSUnionType",types:e},r=C.TSUnionType;return p(r.types,t,"types",e,1),t}function Ow(e){let t={type:"TSIntersectionType",types:e},r=C.TSIntersectionType;return p(r.types,t,"types",e,1),t}function _w(e,t,r,i){let s={type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:i},n=C.TSConditionalType;return p(n.checkType,s,"checkType",e,1),p(n.extendsType,s,"extendsType",t,1),p(n.trueType,s,"trueType",r,1),p(n.falseType,s,"falseType",i,1),s}function kw(e){let t={type:"TSInferType",typeParameter:e},r=C.TSInferType;return p(r.typeParameter,t,"typeParameter",e,1),t}function Dw(e){let t={type:"TSParenthesizedType",typeAnnotation:e},r=C.TSParenthesizedType;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function Lw(e,t="keyof"){let r={type:"TSTypeOperator",typeAnnotation:e,operator:t},i=C.TSTypeOperator;return p(i.typeAnnotation,r,"typeAnnotation",e,1),p(i.operator,r,"operator",t),r}function Mw(e,t){let r={type:"TSIndexedAccessType",objectType:e,indexType:t},i=C.TSIndexedAccessType;return p(i.objectType,r,"objectType",e,1),p(i.indexType,r,"indexType",t,1),r}function Fw(e,t=null,r=null){let i={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r},s=C.TSMappedType;return p(s.typeParameter,i,"typeParameter",e,1),p(s.typeAnnotation,i,"typeAnnotation",t,1),p(s.nameType,i,"nameType",r,1),i}function Bw(e,t){let r={type:"TSTemplateLiteralType",quasis:e,types:t},i=C.TSTemplateLiteralType;return p(i.quasis,r,"quasis",e,1),p(i.types,r,"types",t,1),r}function Rw(e){let t={type:"TSLiteralType",literal:e},r=C.TSLiteralType;return p(r.literal,t,"literal",e,1),t}function jw(e,t=null){let r={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},i=C.TSExpressionWithTypeArguments;return p(i.expression,r,"expression",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function qw(e,t=null,r=null,i){let s={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:i},n=C.TSInterfaceDeclaration;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.extends,s,"extends",r,1),p(n.body,s,"body",i,1),s}function Uw(e){let t={type:"TSInterfaceBody",body:e},r=C.TSInterfaceBody;return p(r.body,t,"body",e,1),t}function Kw(e,t=null,r){let i={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r},s=C.TSTypeAliasDeclaration;return p(s.id,i,"id",e,1),p(s.typeParameters,i,"typeParameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function Vw(e,t=null){let r={type:"TSInstantiationExpression",expression:e,typeParameters:t},i=C.TSInstantiationExpression;return p(i.expression,r,"expression",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function $w(e,t){let r={type:"TSAsExpression",expression:e,typeAnnotation:t},i=C.TSAsExpression;return p(i.expression,r,"expression",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function Jw(e,t){let r={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},i=C.TSSatisfiesExpression;return p(i.expression,r,"expression",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function Xw(e,t){let r={type:"TSTypeAssertion",typeAnnotation:e,expression:t},i=C.TSTypeAssertion;return p(i.typeAnnotation,r,"typeAnnotation",e,1),p(i.expression,r,"expression",t,1),r}function Yw(e){let t={type:"TSEnumBody",members:e},r=C.TSEnumBody;return p(r.members,t,"members",e,1),t}function Ww(e,t){let r={type:"TSEnumDeclaration",id:e,members:t},i=C.TSEnumDeclaration;return p(i.id,r,"id",e,1),p(i.members,r,"members",t,1),r}function Hw(e,t=null){let r={type:"TSEnumMember",id:e,initializer:t},i=C.TSEnumMember;return p(i.id,r,"id",e,1),p(i.initializer,r,"initializer",t,1),r}function zw(e,t){let r={type:"TSModuleDeclaration",id:e,body:t,kind:null},i=C.TSModuleDeclaration;return p(i.id,r,"id",e,1),p(i.body,r,"body",t,1),r}function Gw(e){let t={type:"TSModuleBlock",body:e},r=C.TSModuleBlock;return p(r.body,t,"body",e,1),t}function Qw(e,t=null,r=null){let i={type:"TSImportType",argument:e,qualifier:t,typeParameters:r},s=C.TSImportType;return p(s.argument,i,"argument",e,1),p(s.qualifier,i,"qualifier",t,1),p(s.typeParameters,i,"typeParameters",r,1),i}function Zw(e,t){let r={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},i=C.TSImportEqualsDeclaration;return p(i.id,r,"id",e,1),p(i.moduleReference,r,"moduleReference",t,1),r}function eN(e){let t={type:"TSExternalModuleReference",expression:e},r=C.TSExternalModuleReference;return p(r.expression,t,"expression",e,1),t}function tN(e){let t={type:"TSNonNullExpression",expression:e},r=C.TSNonNullExpression;return p(r.expression,t,"expression",e,1),t}function rN(e){let t={type:"TSExportAssignment",expression:e},r=C.TSExportAssignment;return p(r.expression,t,"expression",e,1),t}function iN(e){let t={type:"TSNamespaceExportDeclaration",id:e},r=C.TSNamespaceExportDeclaration;return p(r.id,t,"id",e,1),t}function sN(e){let t={type:"TSTypeAnnotation",typeAnnotation:e},r=C.TSTypeAnnotation;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function nN(e){let t={type:"TSTypeParameterInstantiation",params:e},r=C.TSTypeParameterInstantiation;return p(r.params,t,"params",e,1),t}function aN(e){let t={type:"TSTypeParameterDeclaration",params:e},r=C.TSTypeParameterDeclaration;return p(r.params,t,"params",e,1),t}function oN(e=null,t=null,r){let i={type:"TSTypeParameter",constraint:e,default:t,name:r},s=C.TSTypeParameter;return p(s.constraint,i,"constraint",e,1),p(s.default,i,"default",t,1),p(s.name,i,"name",r),i}function lN(e){return(0,bn.default)("NumberLiteral","NumericLiteral","The node type "),Zf(e)}function uN(e,t=""){return(0,bn.default)("RegexLiteral","RegExpLiteral","The node type "),ed(e,t)}function cN(e){return(0,bn.default)("RestProperty","RestElement","The node type "),td(e)}function pN(e){return(0,bn.default)("SpreadProperty","SpreadElement","The node type "),rd(e)}});var id=N(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});c.JSXIdentifier=c.JSXFragment=c.JSXExpressionContainer=c.JSXEmptyExpression=c.JSXElement=c.JSXClosingFragment=c.JSXClosingElement=c.JSXAttribute=c.IntersectionTypeAnnotation=c.InterpreterDirective=c.InterfaceTypeAnnotation=c.InterfaceExtends=c.InterfaceDeclaration=c.InferredPredicate=c.IndexedAccessType=c.ImportSpecifier=c.ImportNamespaceSpecifier=c.ImportExpression=c.ImportDefaultSpecifier=c.ImportDeclaration=c.ImportAttribute=c.Import=c.IfStatement=c.Identifier=c.GenericTypeAnnotation=c.FunctionTypeParam=c.FunctionTypeAnnotation=c.FunctionExpression=c.FunctionDeclaration=c.ForStatement=c.ForOfStatement=c.ForInStatement=c.File=c.ExpressionStatement=c.ExportSpecifier=c.ExportNamespaceSpecifier=c.ExportNamedDeclaration=c.ExportDefaultSpecifier=c.ExportDefaultDeclaration=c.ExportAllDeclaration=c.ExistsTypeAnnotation=c.EnumSymbolBody=c.EnumStringMember=c.EnumStringBody=c.EnumNumberMember=c.EnumNumberBody=c.EnumDefaultedMember=c.EnumDeclaration=c.EnumBooleanMember=c.EnumBooleanBody=c.EmptyTypeAnnotation=c.EmptyStatement=c.DoWhileStatement=c.DoExpression=c.DirectiveLiteral=c.Directive=c.Decorator=c.DeclaredPredicate=c.DeclareVariable=c.DeclareTypeAlias=c.DeclareOpaqueType=c.DeclareModuleExports=c.DeclareModule=c.DeclareInterface=c.DeclareFunction=c.DeclareExportDeclaration=c.DeclareExportAllDeclaration=c.DeclareClass=c.DecimalLiteral=c.DebuggerStatement=c.ContinueStatement=c.ConditionalExpression=c.ClassProperty=c.ClassPrivateProperty=c.ClassPrivateMethod=c.ClassMethod=c.ClassImplements=c.ClassExpression=c.ClassDeclaration=c.ClassBody=c.ClassAccessorProperty=c.CatchClause=c.CallExpression=c.BreakStatement=c.BooleanTypeAnnotation=c.BooleanLiteralTypeAnnotation=c.BooleanLiteral=c.BlockStatement=c.BindExpression=c.BinaryExpression=c.BigIntLiteral=c.AwaitExpression=c.AssignmentPattern=c.AssignmentExpression=c.ArrowFunctionExpression=c.ArrayTypeAnnotation=c.ArrayPattern=c.ArrayExpression=c.ArgumentPlaceholder=c.AnyTypeAnnotation=void 0;c.TSNumberKeyword=c.TSNullKeyword=c.TSNonNullExpression=c.TSNeverKeyword=c.TSNamespaceExportDeclaration=c.TSNamedTupleMember=c.TSModuleDeclaration=c.TSModuleBlock=c.TSMethodSignature=c.TSMappedType=c.TSLiteralType=c.TSIntrinsicKeyword=c.TSIntersectionType=c.TSInterfaceDeclaration=c.TSInterfaceBody=c.TSInstantiationExpression=c.TSInferType=c.TSIndexedAccessType=c.TSIndexSignature=c.TSImportType=c.TSImportEqualsDeclaration=c.TSFunctionType=c.TSExternalModuleReference=c.TSExpressionWithTypeArguments=c.TSExportAssignment=c.TSEnumMember=c.TSEnumDeclaration=c.TSEnumBody=c.TSDeclareMethod=c.TSDeclareFunction=c.TSConstructorType=c.TSConstructSignatureDeclaration=c.TSConditionalType=c.TSCallSignatureDeclaration=c.TSBooleanKeyword=c.TSBigIntKeyword=c.TSAsExpression=c.TSArrayType=c.TSAnyKeyword=c.SymbolTypeAnnotation=c.SwitchStatement=c.SwitchCase=c.Super=c.StringTypeAnnotation=c.StringLiteralTypeAnnotation=c.StringLiteral=c.StaticBlock=c.SpreadProperty=c.SpreadElement=c.SequenceExpression=c.ReturnStatement=c.RestProperty=c.RestElement=c.RegexLiteral=c.RegExpLiteral=c.RecordExpression=c.QualifiedTypeIdentifier=c.Program=c.PrivateName=c.Placeholder=c.PipelineTopicExpression=c.PipelinePrimaryTopicReference=c.PipelineBareFunction=c.ParenthesizedExpression=c.OptionalMemberExpression=c.OptionalIndexedAccessType=c.OptionalCallExpression=c.OpaqueType=c.ObjectTypeSpreadProperty=c.ObjectTypeProperty=c.ObjectTypeInternalSlot=c.ObjectTypeIndexer=c.ObjectTypeCallProperty=c.ObjectTypeAnnotation=c.ObjectProperty=c.ObjectPattern=c.ObjectMethod=c.ObjectExpression=c.NumericLiteral=c.NumberTypeAnnotation=c.NumberLiteralTypeAnnotation=c.NumberLiteral=c.NullableTypeAnnotation=c.NullLiteralTypeAnnotation=c.NullLiteral=c.Noop=c.NewExpression=c.ModuleExpression=c.MixedTypeAnnotation=c.MetaProperty=c.MemberExpression=c.LogicalExpression=c.LabeledStatement=c.JSXText=c.JSXSpreadChild=c.JSXSpreadAttribute=c.JSXOpeningFragment=c.JSXOpeningElement=c.JSXNamespacedName=c.JSXMemberExpression=void 0;c.YieldExpression=c.WithStatement=c.WhileStatement=c.VoidTypeAnnotation=c.VoidPattern=c.Variance=c.VariableDeclarator=c.VariableDeclaration=c.V8IntrinsicIdentifier=c.UpdateExpression=c.UnionTypeAnnotation=c.UnaryExpression=c.TypeofTypeAnnotation=c.TypeParameterInstantiation=c.TypeParameterDeclaration=c.TypeParameter=c.TypeCastExpression=c.TypeAnnotation=c.TypeAlias=c.TupleTypeAnnotation=c.TupleExpression=c.TryStatement=c.TopicReference=c.ThrowStatement=c.ThisTypeAnnotation=c.ThisExpression=c.TemplateLiteral=c.TemplateElement=c.TaggedTemplateExpression=c.TSVoidKeyword=c.TSUnknownKeyword=c.TSUnionType=c.TSUndefinedKeyword=c.TSTypeReference=c.TSTypeQuery=c.TSTypePredicate=c.TSTypeParameterInstantiation=c.TSTypeParameterDeclaration=c.TSTypeParameter=c.TSTypeOperator=c.TSTypeLiteral=c.TSTypeAssertion=c.TSTypeAnnotation=c.TSTypeAliasDeclaration=c.TSTupleType=c.TSThisType=c.TSTemplateLiteralType=c.TSSymbolKeyword=c.TSStringKeyword=c.TSSatisfiesExpression=c.TSRestType=c.TSQualifiedName=c.TSPropertySignature=c.TSParenthesizedType=c.TSParameterProperty=c.TSOptionalType=c.TSObjectKeyword=void 0;var hs=_o(),_W=_i();function P(e){return hs[e]}var kW=c.ArrayExpression=P("arrayExpression"),DW=c.AssignmentExpression=P("assignmentExpression"),LW=c.BinaryExpression=P("binaryExpression"),MW=c.InterpreterDirective=P("interpreterDirective"),FW=c.Directive=P("directive"),BW=c.DirectiveLiteral=P("directiveLiteral"),RW=c.BlockStatement=P("blockStatement"),jW=c.BreakStatement=P("breakStatement"),qW=c.CallExpression=P("callExpression"),UW=c.CatchClause=P("catchClause"),KW=c.ConditionalExpression=P("conditionalExpression"),VW=c.ContinueStatement=P("continueStatement"),$W=c.DebuggerStatement=P("debuggerStatement"),JW=c.DoWhileStatement=P("doWhileStatement"),XW=c.EmptyStatement=P("emptyStatement"),YW=c.ExpressionStatement=P("expressionStatement"),WW=c.File=P("file"),HW=c.ForInStatement=P("forInStatement"),zW=c.ForStatement=P("forStatement"),GW=c.FunctionDeclaration=P("functionDeclaration"),QW=c.FunctionExpression=P("functionExpression"),ZW=c.Identifier=P("identifier"),eH=c.IfStatement=P("ifStatement"),tH=c.LabeledStatement=P("labeledStatement"),rH=c.StringLiteral=P("stringLiteral"),iH=c.NumericLiteral=P("numericLiteral"),sH=c.NullLiteral=P("nullLiteral"),nH=c.BooleanLiteral=P("booleanLiteral"),aH=c.RegExpLiteral=P("regExpLiteral"),oH=c.LogicalExpression=P("logicalExpression"),lH=c.MemberExpression=P("memberExpression"),uH=c.NewExpression=P("newExpression"),cH=c.Program=P("program"),pH=c.ObjectExpression=P("objectExpression"),fH=c.ObjectMethod=P("objectMethod"),dH=c.ObjectProperty=P("objectProperty"),hH=c.RestElement=P("restElement"),mH=c.ReturnStatement=P("returnStatement"),yH=c.SequenceExpression=P("sequenceExpression"),TH=c.ParenthesizedExpression=P("parenthesizedExpression"),SH=c.SwitchCase=P("switchCase"),gH=c.SwitchStatement=P("switchStatement"),xH=c.ThisExpression=P("thisExpression"),bH=c.ThrowStatement=P("throwStatement"),EH=c.TryStatement=P("tryStatement"),PH=c.UnaryExpression=P("unaryExpression"),AH=c.UpdateExpression=P("updateExpression"),vH=c.VariableDeclaration=P("variableDeclaration"),CH=c.VariableDeclarator=P("variableDeclarator"),IH=c.WhileStatement=P("whileStatement"),wH=c.WithStatement=P("withStatement"),NH=c.AssignmentPattern=P("assignmentPattern"),OH=c.ArrayPattern=P("arrayPattern"),_H=c.ArrowFunctionExpression=P("arrowFunctionExpression"),kH=c.ClassBody=P("classBody"),DH=c.ClassExpression=P("classExpression"),LH=c.ClassDeclaration=P("classDeclaration"),MH=c.ExportAllDeclaration=P("exportAllDeclaration"),FH=c.ExportDefaultDeclaration=P("exportDefaultDeclaration"),BH=c.ExportNamedDeclaration=P("exportNamedDeclaration"),RH=c.ExportSpecifier=P("exportSpecifier"),jH=c.ForOfStatement=P("forOfStatement"),qH=c.ImportDeclaration=P("importDeclaration"),UH=c.ImportDefaultSpecifier=P("importDefaultSpecifier"),KH=c.ImportNamespaceSpecifier=P("importNamespaceSpecifier"),VH=c.ImportSpecifier=P("importSpecifier"),$H=c.ImportExpression=P("importExpression"),JH=c.MetaProperty=P("metaProperty"),XH=c.ClassMethod=P("classMethod"),YH=c.ObjectPattern=P("objectPattern"),WH=c.SpreadElement=P("spreadElement"),HH=c.Super=P("super"),zH=c.TaggedTemplateExpression=P("taggedTemplateExpression"),GH=c.TemplateElement=P("templateElement"),QH=c.TemplateLiteral=P("templateLiteral"),ZH=c.YieldExpression=P("yieldExpression"),ez=c.AwaitExpression=P("awaitExpression"),tz=c.Import=P("import"),rz=c.BigIntLiteral=P("bigIntLiteral"),iz=c.ExportNamespaceSpecifier=P("exportNamespaceSpecifier"),sz=c.OptionalMemberExpression=P("optionalMemberExpression"),nz=c.OptionalCallExpression=P("optionalCallExpression"),az=c.ClassProperty=P("classProperty"),oz=c.ClassAccessorProperty=P("classAccessorProperty"),lz=c.ClassPrivateProperty=P("classPrivateProperty"),uz=c.ClassPrivateMethod=P("classPrivateMethod"),cz=c.PrivateName=P("privateName"),pz=c.StaticBlock=P("staticBlock"),fz=c.ImportAttribute=P("importAttribute"),dz=c.AnyTypeAnnotation=P("anyTypeAnnotation"),hz=c.ArrayTypeAnnotation=P("arrayTypeAnnotation"),mz=c.BooleanTypeAnnotation=P("booleanTypeAnnotation"),yz=c.BooleanLiteralTypeAnnotation=P("booleanLiteralTypeAnnotation"),Tz=c.NullLiteralTypeAnnotation=P("nullLiteralTypeAnnotation"),Sz=c.ClassImplements=P("classImplements"),gz=c.DeclareClass=P("declareClass"),xz=c.DeclareFunction=P("declareFunction"),bz=c.DeclareInterface=P("declareInterface"),Ez=c.DeclareModule=P("declareModule"),Pz=c.DeclareModuleExports=P("declareModuleExports"),Az=c.DeclareTypeAlias=P("declareTypeAlias"),vz=c.DeclareOpaqueType=P("declareOpaqueType"),Cz=c.DeclareVariable=P("declareVariable"),Iz=c.DeclareExportDeclaration=P("declareExportDeclaration"),wz=c.DeclareExportAllDeclaration=P("declareExportAllDeclaration"),Nz=c.DeclaredPredicate=P("declaredPredicate"),Oz=c.ExistsTypeAnnotation=P("existsTypeAnnotation"),_z=c.FunctionTypeAnnotation=P("functionTypeAnnotation"),kz=c.FunctionTypeParam=P("functionTypeParam"),Dz=c.GenericTypeAnnotation=P("genericTypeAnnotation"),Lz=c.InferredPredicate=P("inferredPredicate"),Mz=c.InterfaceExtends=P("interfaceExtends"),Fz=c.InterfaceDeclaration=P("interfaceDeclaration"),Bz=c.InterfaceTypeAnnotation=P("interfaceTypeAnnotation"),Rz=c.IntersectionTypeAnnotation=P("intersectionTypeAnnotation"),jz=c.MixedTypeAnnotation=P("mixedTypeAnnotation"),qz=c.EmptyTypeAnnotation=P("emptyTypeAnnotation"),Uz=c.NullableTypeAnnotation=P("nullableTypeAnnotation"),Kz=c.NumberLiteralTypeAnnotation=P("numberLiteralTypeAnnotation"),Vz=c.NumberTypeAnnotation=P("numberTypeAnnotation"),$z=c.ObjectTypeAnnotation=P("objectTypeAnnotation"),Jz=c.ObjectTypeInternalSlot=P("objectTypeInternalSlot"),Xz=c.ObjectTypeCallProperty=P("objectTypeCallProperty"),Yz=c.ObjectTypeIndexer=P("objectTypeIndexer"),Wz=c.ObjectTypeProperty=P("objectTypeProperty"),Hz=c.ObjectTypeSpreadProperty=P("objectTypeSpreadProperty"),zz=c.OpaqueType=P("opaqueType"),Gz=c.QualifiedTypeIdentifier=P("qualifiedTypeIdentifier"),Qz=c.StringLiteralTypeAnnotation=P("stringLiteralTypeAnnotation"),Zz=c.StringTypeAnnotation=P("stringTypeAnnotation"),eG=c.SymbolTypeAnnotation=P("symbolTypeAnnotation"),tG=c.ThisTypeAnnotation=P("thisTypeAnnotation"),rG=c.TupleTypeAnnotation=P("tupleTypeAnnotation"),iG=c.TypeofTypeAnnotation=P("typeofTypeAnnotation"),sG=c.TypeAlias=P("typeAlias"),nG=c.TypeAnnotation=P("typeAnnotation"),aG=c.TypeCastExpression=P("typeCastExpression"),oG=c.TypeParameter=P("typeParameter"),lG=c.TypeParameterDeclaration=P("typeParameterDeclaration"),uG=c.TypeParameterInstantiation=P("typeParameterInstantiation"),cG=c.UnionTypeAnnotation=P("unionTypeAnnotation"),pG=c.Variance=P("variance"),fG=c.VoidTypeAnnotation=P("voidTypeAnnotation"),dG=c.EnumDeclaration=P("enumDeclaration"),hG=c.EnumBooleanBody=P("enumBooleanBody"),mG=c.EnumNumberBody=P("enumNumberBody"),yG=c.EnumStringBody=P("enumStringBody"),TG=c.EnumSymbolBody=P("enumSymbolBody"),SG=c.EnumBooleanMember=P("enumBooleanMember"),gG=c.EnumNumberMember=P("enumNumberMember"),xG=c.EnumStringMember=P("enumStringMember"),bG=c.EnumDefaultedMember=P("enumDefaultedMember"),EG=c.IndexedAccessType=P("indexedAccessType"),PG=c.OptionalIndexedAccessType=P("optionalIndexedAccessType"),AG=c.JSXAttribute=P("jsxAttribute"),vG=c.JSXClosingElement=P("jsxClosingElement"),CG=c.JSXElement=P("jsxElement"),IG=c.JSXEmptyExpression=P("jsxEmptyExpression"),wG=c.JSXExpressionContainer=P("jsxExpressionContainer"),NG=c.JSXSpreadChild=P("jsxSpreadChild"),OG=c.JSXIdentifier=P("jsxIdentifier"),_G=c.JSXMemberExpression=P("jsxMemberExpression"),kG=c.JSXNamespacedName=P("jsxNamespacedName"),DG=c.JSXOpeningElement=P("jsxOpeningElement"),LG=c.JSXSpreadAttribute=P("jsxSpreadAttribute"),MG=c.JSXText=P("jsxText"),FG=c.JSXFragment=P("jsxFragment"),BG=c.JSXOpeningFragment=P("jsxOpeningFragment"),RG=c.JSXClosingFragment=P("jsxClosingFragment"),jG=c.Noop=P("noop"),qG=c.Placeholder=P("placeholder"),UG=c.V8IntrinsicIdentifier=P("v8IntrinsicIdentifier"),KG=c.ArgumentPlaceholder=P("argumentPlaceholder"),VG=c.BindExpression=P("bindExpression"),$G=c.Decorator=P("decorator"),JG=c.DoExpression=P("doExpression"),XG=c.ExportDefaultSpecifier=P("exportDefaultSpecifier"),YG=c.RecordExpression=P("recordExpression"),WG=c.TupleExpression=P("tupleExpression"),HG=c.DecimalLiteral=P("decimalLiteral"),zG=c.ModuleExpression=P("moduleExpression"),GG=c.TopicReference=P("topicReference"),QG=c.PipelineTopicExpression=P("pipelineTopicExpression"),ZG=c.PipelineBareFunction=P("pipelineBareFunction"),eQ=c.PipelinePrimaryTopicReference=P("pipelinePrimaryTopicReference"),tQ=c.VoidPattern=P("voidPattern"),rQ=c.TSParameterProperty=P("tsParameterProperty"),iQ=c.TSDeclareFunction=P("tsDeclareFunction"),sQ=c.TSDeclareMethod=P("tsDeclareMethod"),nQ=c.TSQualifiedName=P("tsQualifiedName"),aQ=c.TSCallSignatureDeclaration=P("tsCallSignatureDeclaration"),oQ=c.TSConstructSignatureDeclaration=P("tsConstructSignatureDeclaration"),lQ=c.TSPropertySignature=P("tsPropertySignature"),uQ=c.TSMethodSignature=P("tsMethodSignature"),cQ=c.TSIndexSignature=P("tsIndexSignature"),pQ=c.TSAnyKeyword=P("tsAnyKeyword"),fQ=c.TSBooleanKeyword=P("tsBooleanKeyword"),dQ=c.TSBigIntKeyword=P("tsBigIntKeyword"),hQ=c.TSIntrinsicKeyword=P("tsIntrinsicKeyword"),mQ=c.TSNeverKeyword=P("tsNeverKeyword"),yQ=c.TSNullKeyword=P("tsNullKeyword"),TQ=c.TSNumberKeyword=P("tsNumberKeyword"),SQ=c.TSObjectKeyword=P("tsObjectKeyword"),gQ=c.TSStringKeyword=P("tsStringKeyword"),xQ=c.TSSymbolKeyword=P("tsSymbolKeyword"),bQ=c.TSUndefinedKeyword=P("tsUndefinedKeyword"),EQ=c.TSUnknownKeyword=P("tsUnknownKeyword"),PQ=c.TSVoidKeyword=P("tsVoidKeyword"),AQ=c.TSThisType=P("tsThisType"),vQ=c.TSFunctionType=P("tsFunctionType"),CQ=c.TSConstructorType=P("tsConstructorType"),IQ=c.TSTypeReference=P("tsTypeReference"),wQ=c.TSTypePredicate=P("tsTypePredicate"),NQ=c.TSTypeQuery=P("tsTypeQuery"),OQ=c.TSTypeLiteral=P("tsTypeLiteral"),_Q=c.TSArrayType=P("tsArrayType"),kQ=c.TSTupleType=P("tsTupleType"),DQ=c.TSOptionalType=P("tsOptionalType"),LQ=c.TSRestType=P("tsRestType"),MQ=c.TSNamedTupleMember=P("tsNamedTupleMember"),FQ=c.TSUnionType=P("tsUnionType"),BQ=c.TSIntersectionType=P("tsIntersectionType"),RQ=c.TSConditionalType=P("tsConditionalType"),jQ=c.TSInferType=P("tsInferType"),qQ=c.TSParenthesizedType=P("tsParenthesizedType"),UQ=c.TSTypeOperator=P("tsTypeOperator"),KQ=c.TSIndexedAccessType=P("tsIndexedAccessType"),VQ=c.TSMappedType=P("tsMappedType"),$Q=c.TSTemplateLiteralType=P("tsTemplateLiteralType"),JQ=c.TSLiteralType=P("tsLiteralType"),XQ=c.TSExpressionWithTypeArguments=P("tsExpressionWithTypeArguments"),YQ=c.TSInterfaceDeclaration=P("tsInterfaceDeclaration"),WQ=c.TSInterfaceBody=P("tsInterfaceBody"),HQ=c.TSTypeAliasDeclaration=P("tsTypeAliasDeclaration"),zQ=c.TSInstantiationExpression=P("tsInstantiationExpression"),GQ=c.TSAsExpression=P("tsAsExpression"),QQ=c.TSSatisfiesExpression=P("tsSatisfiesExpression"),ZQ=c.TSTypeAssertion=P("tsTypeAssertion"),eZ=c.TSEnumBody=P("tsEnumBody"),tZ=c.TSEnumDeclaration=P("tsEnumDeclaration"),rZ=c.TSEnumMember=P("tsEnumMember"),iZ=c.TSModuleDeclaration=P("tsModuleDeclaration"),sZ=c.TSModuleBlock=P("tsModuleBlock"),nZ=c.TSImportType=P("tsImportType"),aZ=c.TSImportEqualsDeclaration=P("tsImportEqualsDeclaration"),oZ=c.TSExternalModuleReference=P("tsExternalModuleReference"),lZ=c.TSNonNullExpression=P("tsNonNullExpression"),uZ=c.TSExportAssignment=P("tsExportAssignment"),cZ=c.TSNamespaceExportDeclaration=P("tsNamespaceExportDeclaration"),pZ=c.TSTypeAnnotation=P("tsTypeAnnotation"),fZ=c.TSTypeParameterInstantiation=P("tsTypeParameterInstantiation"),dZ=c.TSTypeParameterDeclaration=P("tsTypeParameterDeclaration"),hZ=c.TSTypeParameter=P("tsTypeParameter"),mZ=c.NumberLiteral=hs.numberLiteral,yZ=c.RegexLiteral=hs.regexLiteral,TZ=c.RestProperty=hs.restProperty,SZ=c.SpreadProperty=hs.spreadProperty});var Rt=N(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});var ko=_o();Object.keys(ko).forEach(function(e){e==="default"||e==="__esModule"||e in jr&&jr[e]===ko[e]||Object.defineProperty(jr,e,{enumerable:!0,get:function(){return ko[e]}})});var Do=id();Object.keys(Do).forEach(function(e){e==="default"||e==="__esModule"||e in jr&&jr[e]===Do[e]||Object.defineProperty(jr,e,{enumerable:!0,get:function(){return Do[e]}})})});var sd=N(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.default=hN;var fN=Rt(),dN=ye();function hN(e,t){let r=e.value.split(/\r\n|\n|\r/),i=0;for(let n=0;n<r.length;n++)/[^ \t]/.exec(r[n])&&(i=n);let s="";for(let n=0;n<r.length;n++){let a=r[n],o=n===0,l=n===r.length-1,u=n===i,f=a.replace(/\t/g," ");o||(f=f.replace(/^ +/,"")),l||(f=f.replace(/ +$/,"")),f&&(u||(f+=" "),s+=f)}s&&t.push((0,dN.inherits)((0,fN.stringLiteral)(s),e))}});var nd=N(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.default=yN;var Mo=st(),mN=sd();function yN(e){let t=[];for(let r=0;r<e.children.length;r++){let i=e.children[r];if((0,Mo.isJSXText)(i)){(0,mN.default)(i,t);continue}(0,Mo.isJSXExpressionContainer)(i)&&(i=i.expression),!(0,Mo.isJSXEmptyExpression)(i)&&t.push(i)}return t}});var Ro=N(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.default=SN;var TN=Jt();function SN(e){return!!(e&&TN.VISITOR_KEYS[e.type])}});var ad=N(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.default=xN;var gN=Ro();function xN(e){if(!(0,gN.default)(e)){var t;let r=(t=e?.type)!=null?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}}});var od=N(y=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});y.assertAccessor=qL;y.assertAnyTypeAnnotation=i_;y.assertArgumentPlaceholder=kk;y.assertArrayExpression=EN;y.assertArrayPattern=xO;y.assertArrayTypeAnnotation=s_;y.assertArrowFunctionExpression=bO;y.assertAssignmentExpression=PN;y.assertAssignmentPattern=gO;y.assertAwaitExpression=$O;y.assertBigIntLiteral=XO;y.assertBinary=oL;y.assertBinaryExpression=AN;y.assertBindExpression=Dk;y.assertBlock=cL;y.assertBlockParent=uL;y.assertBlockStatement=wN;y.assertBooleanLiteral=HN;y.assertBooleanLiteralTypeAnnotation=a_;y.assertBooleanTypeAnnotation=n_;y.assertBreakStatement=NN;y.assertCallExpression=ON;y.assertCatchClause=_N;y.assertClass=FL;y.assertClassAccessorProperty=GO;y.assertClassBody=EO;y.assertClassDeclaration=AO;y.assertClassExpression=PO;y.assertClassImplements=l_;y.assertClassMethod=FO;y.assertClassPrivateMethod=ZO;y.assertClassPrivateProperty=QO;y.assertClassProperty=zO;y.assertCompletionStatement=dL;y.assertConditional=hL;y.assertConditionalExpression=kN;y.assertContinueStatement=DN;y.assertDebuggerStatement=LN;y.assertDecimalLiteral=jk;y.assertDeclaration=PL;y.assertDeclareClass=u_;y.assertDeclareExportAllDeclaration=S_;y.assertDeclareExportDeclaration=T_;y.assertDeclareFunction=c_;y.assertDeclareInterface=p_;y.assertDeclareModule=f_;y.assertDeclareModuleExports=d_;y.assertDeclareOpaqueType=m_;y.assertDeclareTypeAlias=h_;y.assertDeclareVariable=y_;y.assertDeclaredPredicate=g_;y.assertDecorator=Lk;y.assertDirective=CN;y.assertDirectiveLiteral=IN;y.assertDoExpression=Mk;y.assertDoWhileStatement=MN;y.assertEmptyStatement=FN;y.assertEmptyTypeAnnotation=O_;y.assertEnumBody=YL;y.assertEnumBooleanBody=sk;y.assertEnumBooleanMember=lk;y.assertEnumDeclaration=ik;y.assertEnumDefaultedMember=pk;y.assertEnumMember=WL;y.assertEnumNumberBody=nk;y.assertEnumNumberMember=uk;y.assertEnumStringBody=ak;y.assertEnumStringMember=ck;y.assertEnumSymbolBody=ok;y.assertExistsTypeAnnotation=x_;y.assertExportAllDeclaration=vO;y.assertExportDeclaration=RL;y.assertExportDefaultDeclaration=CO;y.assertExportDefaultSpecifier=Fk;y.assertExportNamedDeclaration=IO;y.assertExportNamespaceSpecifier=YO;y.assertExportSpecifier=wO;y.assertExpression=aL;y.assertExpressionStatement=BN;y.assertExpressionWrapper=TL;y.assertFile=RN;y.assertFlow=KL;y.assertFlowBaseAnnotation=$L;y.assertFlowDeclaration=JL;y.assertFlowPredicate=XL;y.assertFlowType=VL;y.assertFor=SL;y.assertForInStatement=jN;y.assertForOfStatement=NO;y.assertForStatement=qN;y.assertForXStatement=gL;y.assertFunction=xL;y.assertFunctionDeclaration=UN;y.assertFunctionExpression=KN;y.assertFunctionParameter=AL;y.assertFunctionParent=bL;y.assertFunctionTypeAnnotation=b_;y.assertFunctionTypeParam=E_;y.assertGenericTypeAnnotation=P_;y.assertIdentifier=VN;y.assertIfStatement=$N;y.assertImmutable=NL;y.assertImport=JO;y.assertImportAttribute=r_;y.assertImportDeclaration=OO;y.assertImportDefaultSpecifier=_O;y.assertImportExpression=LO;y.assertImportNamespaceSpecifier=kO;y.assertImportOrExportDeclaration=BL;y.assertImportSpecifier=DO;y.assertIndexedAccessType=fk;y.assertInferredPredicate=A_;y.assertInterfaceDeclaration=C_;y.assertInterfaceExtends=v_;y.assertInterfaceTypeAnnotation=I_;y.assertInterpreterDirective=vN;y.assertIntersectionTypeAnnotation=w_;y.assertJSX=HL;y.assertJSXAttribute=hk;y.assertJSXClosingElement=mk;y.assertJSXClosingFragment=wk;y.assertJSXElement=yk;y.assertJSXEmptyExpression=Tk;y.assertJSXExpressionContainer=Sk;y.assertJSXFragment=Ck;y.assertJSXIdentifier=xk;y.assertJSXMemberExpression=bk;y.assertJSXNamespacedName=Ek;y.assertJSXOpeningElement=Pk;y.assertJSXOpeningFragment=Ik;y.assertJSXSpreadAttribute=Ak;y.assertJSXSpreadChild=gk;y.assertJSXText=vk;y.assertLVal=CL;y.assertLabeledStatement=JN;y.assertLiteral=wL;y.assertLogicalExpression=GN;y.assertLoop=mL;y.assertMemberExpression=QN;y.assertMetaProperty=MO;y.assertMethod=_L;y.assertMiscellaneous=zL;y.assertMixedTypeAnnotation=N_;y.assertModuleDeclaration=n2;y.assertModuleExpression=qk;y.assertModuleSpecifier=jL;y.assertNewExpression=ZN;y.assertNoop=Nk;y.assertNullLiteral=WN;y.assertNullLiteralTypeAnnotation=o_;y.assertNullableTypeAnnotation=__;y.assertNumberLiteral=t2;y.assertNumberLiteralTypeAnnotation=k_;y.assertNumberTypeAnnotation=D_;y.assertNumericLiteral=YN;y.assertObjectExpression=tO;y.assertObjectMember=kL;y.assertObjectMethod=rO;y.assertObjectPattern=BO;y.assertObjectProperty=iO;y.assertObjectTypeAnnotation=L_;y.assertObjectTypeCallProperty=F_;y.assertObjectTypeIndexer=B_;y.assertObjectTypeInternalSlot=M_;y.assertObjectTypeProperty=R_;y.assertObjectTypeSpreadProperty=j_;y.assertOpaqueType=q_;y.assertOptionalCallExpression=HO;y.assertOptionalIndexedAccessType=dk;y.assertOptionalMemberExpression=WO;y.assertParenthesizedExpression=oO;y.assertPattern=ML;y.assertPatternLike=vL;y.assertPipelineBareFunction=Vk;y.assertPipelinePrimaryTopicReference=$k;y.assertPipelineTopicExpression=Kk;y.assertPlaceholder=Ok;y.assertPrivate=UL;y.assertPrivateName=e_;y.assertProgram=eO;y.assertProperty=DL;y.assertPureish=EL;y.assertQualifiedTypeIdentifier=U_;y.assertRecordExpression=Bk;y.assertRegExpLiteral=zN;y.assertRegexLiteral=r2;y.assertRestElement=sO;y.assertRestProperty=i2;y.assertReturnStatement=nO;y.assertScopable=lL;y.assertSequenceExpression=aO;y.assertSpreadElement=RO;y.assertSpreadProperty=s2;y.assertStandardized=nL;y.assertStatement=pL;y.assertStaticBlock=t_;y.assertStringLiteral=XN;y.assertStringLiteralTypeAnnotation=K_;y.assertStringTypeAnnotation=V_;y.assertSuper=jO;y.assertSwitchCase=lO;y.assertSwitchStatement=uO;y.assertSymbolTypeAnnotation=$_;y.assertTSAnyKeyword=tD;y.assertTSArrayType=bD;y.assertTSAsExpression=UD;y.assertTSBaseType=e2;y.assertTSBigIntKeyword=iD;y.assertTSBooleanKeyword=rD;y.assertTSCallSignatureDeclaration=zk;y.assertTSConditionalType=wD;y.assertTSConstructSignatureDeclaration=Gk;y.assertTSConstructorType=yD;y.assertTSDeclareFunction=Yk;y.assertTSDeclareMethod=Wk;y.assertTSEntityName=IL;y.assertTSEnumBody=$D;y.assertTSEnumDeclaration=JD;y.assertTSEnumMember=XD;y.assertTSExportAssignment=ZD;y.assertTSExpressionWithTypeArguments=FD;y.assertTSExternalModuleReference=GD;y.assertTSFunctionType=mD;y.assertTSImportEqualsDeclaration=zD;y.assertTSImportType=HD;y.assertTSIndexSignature=eD;y.assertTSIndexedAccessType=kD;y.assertTSInferType=ND;y.assertTSInstantiationExpression=qD;y.assertTSInterfaceBody=RD;y.assertTSInterfaceDeclaration=BD;y.assertTSIntersectionType=ID;y.assertTSIntrinsicKeyword=sD;y.assertTSLiteralType=MD;y.assertTSMappedType=DD;y.assertTSMethodSignature=Zk;y.assertTSModuleBlock=WD;y.assertTSModuleDeclaration=YD;y.assertTSNamedTupleMember=vD;y.assertTSNamespaceExportDeclaration=eL;y.assertTSNeverKeyword=nD;y.assertTSNonNullExpression=QD;y.assertTSNullKeyword=aD;y.assertTSNumberKeyword=oD;y.assertTSObjectKeyword=lD;y.assertTSOptionalType=PD;y.assertTSParameterProperty=Xk;y.assertTSParenthesizedType=OD;y.assertTSPropertySignature=Qk;y.assertTSQualifiedName=Hk;y.assertTSRestType=AD;y.assertTSSatisfiesExpression=KD;y.assertTSStringKeyword=uD;y.assertTSSymbolKeyword=cD;y.assertTSTemplateLiteralType=LD;y.assertTSThisType=hD;y.assertTSTupleType=ED;y.assertTSType=ZL;y.assertTSTypeAliasDeclaration=jD;y.assertTSTypeAnnotation=tL;y.assertTSTypeAssertion=VD;y.assertTSTypeElement=QL;y.assertTSTypeLiteral=xD;y.assertTSTypeOperator=_D;y.assertTSTypeParameter=sL;y.assertTSTypeParameterDeclaration=iL;y.assertTSTypeParameterInstantiation=rL;y.assertTSTypePredicate=SD;y.assertTSTypeQuery=gD;y.assertTSTypeReference=TD;y.assertTSUndefinedKeyword=pD;y.assertTSUnionType=CD;y.assertTSUnknownKeyword=fD;y.assertTSVoidKeyword=dD;y.assertTaggedTemplateExpression=qO;y.assertTemplateElement=UO;y.assertTemplateLiteral=KO;y.assertTerminatorless=fL;y.assertThisExpression=cO;y.assertThisTypeAnnotation=J_;y.assertThrowStatement=pO;y.assertTopicReference=Uk;y.assertTryStatement=fO;y.assertTupleExpression=Rk;y.assertTupleTypeAnnotation=X_;y.assertTypeAlias=W_;y.assertTypeAnnotation=H_;y.assertTypeCastExpression=z_;y.assertTypeParameter=G_;y.assertTypeParameterDeclaration=Q_;y.assertTypeParameterInstantiation=Z_;y.assertTypeScript=GL;y.assertTypeofTypeAnnotation=Y_;y.assertUnaryExpression=dO;y.assertUnaryLike=LL;y.assertUnionTypeAnnotation=ek;y.assertUpdateExpression=hO;y.assertUserWhitespacable=OL;y.assertV8IntrinsicIdentifier=_k;y.assertVariableDeclaration=mO;y.assertVariableDeclarator=yO;y.assertVariance=tk;y.assertVoidPattern=Jk;y.assertVoidTypeAnnotation=rk;y.assertWhile=yL;y.assertWhileStatement=TO;y.assertWithStatement=SO;y.assertYieldExpression=VO;var bN=ki(),ms=_i();function T(e,t,r){if(!(0,bN.default)(e,t,r))throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}function EN(e,t){T("ArrayExpression",e,t)}function PN(e,t){T("AssignmentExpression",e,t)}function AN(e,t){T("BinaryExpression",e,t)}function vN(e,t){T("InterpreterDirective",e,t)}function CN(e,t){T("Directive",e,t)}function IN(e,t){T("DirectiveLiteral",e,t)}function wN(e,t){T("BlockStatement",e,t)}function NN(e,t){T("BreakStatement",e,t)}function ON(e,t){T("CallExpression",e,t)}function _N(e,t){T("CatchClause",e,t)}function kN(e,t){T("ConditionalExpression",e,t)}function DN(e,t){T("ContinueStatement",e,t)}function LN(e,t){T("DebuggerStatement",e,t)}function MN(e,t){T("DoWhileStatement",e,t)}function FN(e,t){T("EmptyStatement",e,t)}function BN(e,t){T("ExpressionStatement",e,t)}function RN(e,t){T("File",e,t)}function jN(e,t){T("ForInStatement",e,t)}function qN(e,t){T("ForStatement",e,t)}function UN(e,t){T("FunctionDeclaration",e,t)}function KN(e,t){T("FunctionExpression",e,t)}function VN(e,t){T("Identifier",e,t)}function $N(e,t){T("IfStatement",e,t)}function JN(e,t){T("LabeledStatement",e,t)}function XN(e,t){T("StringLiteral",e,t)}function YN(e,t){T("NumericLiteral",e,t)}function WN(e,t){T("NullLiteral",e,t)}function HN(e,t){T("BooleanLiteral",e,t)}function zN(e,t){T("RegExpLiteral",e,t)}function GN(e,t){T("LogicalExpression",e,t)}function QN(e,t){T("MemberExpression",e,t)}function ZN(e,t){T("NewExpression",e,t)}function eO(e,t){T("Program",e,t)}function tO(e,t){T("ObjectExpression",e,t)}function rO(e,t){T("ObjectMethod",e,t)}function iO(e,t){T("ObjectProperty",e,t)}function sO(e,t){T("RestElement",e,t)}function nO(e,t){T("ReturnStatement",e,t)}function aO(e,t){T("SequenceExpression",e,t)}function oO(e,t){T("ParenthesizedExpression",e,t)}function lO(e,t){T("SwitchCase",e,t)}function uO(e,t){T("SwitchStatement",e,t)}function cO(e,t){T("ThisExpression",e,t)}function pO(e,t){T("ThrowStatement",e,t)}function fO(e,t){T("TryStatement",e,t)}function dO(e,t){T("UnaryExpression",e,t)}function hO(e,t){T("UpdateExpression",e,t)}function mO(e,t){T("VariableDeclaration",e,t)}function yO(e,t){T("VariableDeclarator",e,t)}function TO(e,t){T("WhileStatement",e,t)}function SO(e,t){T("WithStatement",e,t)}function gO(e,t){T("AssignmentPattern",e,t)}function xO(e,t){T("ArrayPattern",e,t)}function bO(e,t){T("ArrowFunctionExpression",e,t)}function EO(e,t){T("ClassBody",e,t)}function PO(e,t){T("ClassExpression",e,t)}function AO(e,t){T("ClassDeclaration",e,t)}function vO(e,t){T("ExportAllDeclaration",e,t)}function CO(e,t){T("ExportDefaultDeclaration",e,t)}function IO(e,t){T("ExportNamedDeclaration",e,t)}function wO(e,t){T("ExportSpecifier",e,t)}function NO(e,t){T("ForOfStatement",e,t)}function OO(e,t){T("ImportDeclaration",e,t)}function _O(e,t){T("ImportDefaultSpecifier",e,t)}function kO(e,t){T("ImportNamespaceSpecifier",e,t)}function DO(e,t){T("ImportSpecifier",e,t)}function LO(e,t){T("ImportExpression",e,t)}function MO(e,t){T("MetaProperty",e,t)}function FO(e,t){T("ClassMethod",e,t)}function BO(e,t){T("ObjectPattern",e,t)}function RO(e,t){T("SpreadElement",e,t)}function jO(e,t){T("Super",e,t)}function qO(e,t){T("TaggedTemplateExpression",e,t)}function UO(e,t){T("TemplateElement",e,t)}function KO(e,t){T("TemplateLiteral",e,t)}function VO(e,t){T("YieldExpression",e,t)}function $O(e,t){T("AwaitExpression",e,t)}function JO(e,t){T("Import",e,t)}function XO(e,t){T("BigIntLiteral",e,t)}function YO(e,t){T("ExportNamespaceSpecifier",e,t)}function WO(e,t){T("OptionalMemberExpression",e,t)}function HO(e,t){T("OptionalCallExpression",e,t)}function zO(e,t){T("ClassProperty",e,t)}function GO(e,t){T("ClassAccessorProperty",e,t)}function QO(e,t){T("ClassPrivateProperty",e,t)}function ZO(e,t){T("ClassPrivateMethod",e,t)}function e_(e,t){T("PrivateName",e,t)}function t_(e,t){T("StaticBlock",e,t)}function r_(e,t){T("ImportAttribute",e,t)}function i_(e,t){T("AnyTypeAnnotation",e,t)}function s_(e,t){T("ArrayTypeAnnotation",e,t)}function n_(e,t){T("BooleanTypeAnnotation",e,t)}function a_(e,t){T("BooleanLiteralTypeAnnotation",e,t)}function o_(e,t){T("NullLiteralTypeAnnotation",e,t)}function l_(e,t){T("ClassImplements",e,t)}function u_(e,t){T("DeclareClass",e,t)}function c_(e,t){T("DeclareFunction",e,t)}function p_(e,t){T("DeclareInterface",e,t)}function f_(e,t){T("DeclareModule",e,t)}function d_(e,t){T("DeclareModuleExports",e,t)}function h_(e,t){T("DeclareTypeAlias",e,t)}function m_(e,t){T("DeclareOpaqueType",e,t)}function y_(e,t){T("DeclareVariable",e,t)}function T_(e,t){T("DeclareExportDeclaration",e,t)}function S_(e,t){T("DeclareExportAllDeclaration",e,t)}function g_(e,t){T("DeclaredPredicate",e,t)}function x_(e,t){T("ExistsTypeAnnotation",e,t)}function b_(e,t){T("FunctionTypeAnnotation",e,t)}function E_(e,t){T("FunctionTypeParam",e,t)}function P_(e,t){T("GenericTypeAnnotation",e,t)}function A_(e,t){T("InferredPredicate",e,t)}function v_(e,t){T("InterfaceExtends",e,t)}function C_(e,t){T("InterfaceDeclaration",e,t)}function I_(e,t){T("InterfaceTypeAnnotation",e,t)}function w_(e,t){T("IntersectionTypeAnnotation",e,t)}function N_(e,t){T("MixedTypeAnnotation",e,t)}function O_(e,t){T("EmptyTypeAnnotation",e,t)}function __(e,t){T("NullableTypeAnnotation",e,t)}function k_(e,t){T("NumberLiteralTypeAnnotation",e,t)}function D_(e,t){T("NumberTypeAnnotation",e,t)}function L_(e,t){T("ObjectTypeAnnotation",e,t)}function M_(e,t){T("ObjectTypeInternalSlot",e,t)}function F_(e,t){T("ObjectTypeCallProperty",e,t)}function B_(e,t){T("ObjectTypeIndexer",e,t)}function R_(e,t){T("ObjectTypeProperty",e,t)}function j_(e,t){T("ObjectTypeSpreadProperty",e,t)}function q_(e,t){T("OpaqueType",e,t)}function U_(e,t){T("QualifiedTypeIdentifier",e,t)}function K_(e,t){T("StringLiteralTypeAnnotation",e,t)}function V_(e,t){T("StringTypeAnnotation",e,t)}function $_(e,t){T("SymbolTypeAnnotation",e,t)}function J_(e,t){T("ThisTypeAnnotation",e,t)}function X_(e,t){T("TupleTypeAnnotation",e,t)}function Y_(e,t){T("TypeofTypeAnnotation",e,t)}function W_(e,t){T("TypeAlias",e,t)}function H_(e,t){T("TypeAnnotation",e,t)}function z_(e,t){T("TypeCastExpression",e,t)}function G_(e,t){T("TypeParameter",e,t)}function Q_(e,t){T("TypeParameterDeclaration",e,t)}function Z_(e,t){T("TypeParameterInstantiation",e,t)}function ek(e,t){T("UnionTypeAnnotation",e,t)}function tk(e,t){T("Variance",e,t)}function rk(e,t){T("VoidTypeAnnotation",e,t)}function ik(e,t){T("EnumDeclaration",e,t)}function sk(e,t){T("EnumBooleanBody",e,t)}function nk(e,t){T("EnumNumberBody",e,t)}function ak(e,t){T("EnumStringBody",e,t)}function ok(e,t){T("EnumSymbolBody",e,t)}function lk(e,t){T("EnumBooleanMember",e,t)}function uk(e,t){T("EnumNumberMember",e,t)}function ck(e,t){T("EnumStringMember",e,t)}function pk(e,t){T("EnumDefaultedMember",e,t)}function fk(e,t){T("IndexedAccessType",e,t)}function dk(e,t){T("OptionalIndexedAccessType",e,t)}function hk(e,t){T("JSXAttribute",e,t)}function mk(e,t){T("JSXClosingElement",e,t)}function yk(e,t){T("JSXElement",e,t)}function Tk(e,t){T("JSXEmptyExpression",e,t)}function Sk(e,t){T("JSXExpressionContainer",e,t)}function gk(e,t){T("JSXSpreadChild",e,t)}function xk(e,t){T("JSXIdentifier",e,t)}function bk(e,t){T("JSXMemberExpression",e,t)}function Ek(e,t){T("JSXNamespacedName",e,t)}function Pk(e,t){T("JSXOpeningElement",e,t)}function Ak(e,t){T("JSXSpreadAttribute",e,t)}function vk(e,t){T("JSXText",e,t)}function Ck(e,t){T("JSXFragment",e,t)}function Ik(e,t){T("JSXOpeningFragment",e,t)}function wk(e,t){T("JSXClosingFragment",e,t)}function Nk(e,t){T("Noop",e,t)}function Ok(e,t){T("Placeholder",e,t)}function _k(e,t){T("V8IntrinsicIdentifier",e,t)}function kk(e,t){T("ArgumentPlaceholder",e,t)}function Dk(e,t){T("BindExpression",e,t)}function Lk(e,t){T("Decorator",e,t)}function Mk(e,t){T("DoExpression",e,t)}function Fk(e,t){T("ExportDefaultSpecifier",e,t)}function Bk(e,t){T("RecordExpression",e,t)}function Rk(e,t){T("TupleExpression",e,t)}function jk(e,t){T("DecimalLiteral",e,t)}function qk(e,t){T("ModuleExpression",e,t)}function Uk(e,t){T("TopicReference",e,t)}function Kk(e,t){T("PipelineTopicExpression",e,t)}function Vk(e,t){T("PipelineBareFunction",e,t)}function $k(e,t){T("PipelinePrimaryTopicReference",e,t)}function Jk(e,t){T("VoidPattern",e,t)}function Xk(e,t){T("TSParameterProperty",e,t)}function Yk(e,t){T("TSDeclareFunction",e,t)}function Wk(e,t){T("TSDeclareMethod",e,t)}function Hk(e,t){T("TSQualifiedName",e,t)}function zk(e,t){T("TSCallSignatureDeclaration",e,t)}function Gk(e,t){T("TSConstructSignatureDeclaration",e,t)}function Qk(e,t){T("TSPropertySignature",e,t)}function Zk(e,t){T("TSMethodSignature",e,t)}function eD(e,t){T("TSIndexSignature",e,t)}function tD(e,t){T("TSAnyKeyword",e,t)}function rD(e,t){T("TSBooleanKeyword",e,t)}function iD(e,t){T("TSBigIntKeyword",e,t)}function sD(e,t){T("TSIntrinsicKeyword",e,t)}function nD(e,t){T("TSNeverKeyword",e,t)}function aD(e,t){T("TSNullKeyword",e,t)}function oD(e,t){T("TSNumberKeyword",e,t)}function lD(e,t){T("TSObjectKeyword",e,t)}function uD(e,t){T("TSStringKeyword",e,t)}function cD(e,t){T("TSSymbolKeyword",e,t)}function pD(e,t){T("TSUndefinedKeyword",e,t)}function fD(e,t){T("TSUnknownKeyword",e,t)}function dD(e,t){T("TSVoidKeyword",e,t)}function hD(e,t){T("TSThisType",e,t)}function mD(e,t){T("TSFunctionType",e,t)}function yD(e,t){T("TSConstructorType",e,t)}function TD(e,t){T("TSTypeReference",e,t)}function SD(e,t){T("TSTypePredicate",e,t)}function gD(e,t){T("TSTypeQuery",e,t)}function xD(e,t){T("TSTypeLiteral",e,t)}function bD(e,t){T("TSArrayType",e,t)}function ED(e,t){T("TSTupleType",e,t)}function PD(e,t){T("TSOptionalType",e,t)}function AD(e,t){T("TSRestType",e,t)}function vD(e,t){T("TSNamedTupleMember",e,t)}function CD(e,t){T("TSUnionType",e,t)}function ID(e,t){T("TSIntersectionType",e,t)}function wD(e,t){T("TSConditionalType",e,t)}function ND(e,t){T("TSInferType",e,t)}function OD(e,t){T("TSParenthesizedType",e,t)}function _D(e,t){T("TSTypeOperator",e,t)}function kD(e,t){T("TSIndexedAccessType",e,t)}function DD(e,t){T("TSMappedType",e,t)}function LD(e,t){T("TSTemplateLiteralType",e,t)}function MD(e,t){T("TSLiteralType",e,t)}function FD(e,t){T("TSExpressionWithTypeArguments",e,t)}function BD(e,t){T("TSInterfaceDeclaration",e,t)}function RD(e,t){T("TSInterfaceBody",e,t)}function jD(e,t){T("TSTypeAliasDeclaration",e,t)}function qD(e,t){T("TSInstantiationExpression",e,t)}function UD(e,t){T("TSAsExpression",e,t)}function KD(e,t){T("TSSatisfiesExpression",e,t)}function VD(e,t){T("TSTypeAssertion",e,t)}function $D(e,t){T("TSEnumBody",e,t)}function JD(e,t){T("TSEnumDeclaration",e,t)}function XD(e,t){T("TSEnumMember",e,t)}function YD(e,t){T("TSModuleDeclaration",e,t)}function WD(e,t){T("TSModuleBlock",e,t)}function HD(e,t){T("TSImportType",e,t)}function zD(e,t){T("TSImportEqualsDeclaration",e,t)}function GD(e,t){T("TSExternalModuleReference",e,t)}function QD(e,t){T("TSNonNullExpression",e,t)}function ZD(e,t){T("TSExportAssignment",e,t)}function eL(e,t){T("TSNamespaceExportDeclaration",e,t)}function tL(e,t){T("TSTypeAnnotation",e,t)}function rL(e,t){T("TSTypeParameterInstantiation",e,t)}function iL(e,t){T("TSTypeParameterDeclaration",e,t)}function sL(e,t){T("TSTypeParameter",e,t)}function nL(e,t){T("Standardized",e,t)}function aL(e,t){T("Expression",e,t)}function oL(e,t){T("Binary",e,t)}function lL(e,t){T("Scopable",e,t)}function uL(e,t){T("BlockParent",e,t)}function cL(e,t){T("Block",e,t)}function pL(e,t){T("Statement",e,t)}function fL(e,t){T("Terminatorless",e,t)}function dL(e,t){T("CompletionStatement",e,t)}function hL(e,t){T("Conditional",e,t)}function mL(e,t){T("Loop",e,t)}function yL(e,t){T("While",e,t)}function TL(e,t){T("ExpressionWrapper",e,t)}function SL(e,t){T("For",e,t)}function gL(e,t){T("ForXStatement",e,t)}function xL(e,t){T("Function",e,t)}function bL(e,t){T("FunctionParent",e,t)}function EL(e,t){T("Pureish",e,t)}function PL(e,t){T("Declaration",e,t)}function AL(e,t){T("FunctionParameter",e,t)}function vL(e,t){T("PatternLike",e,t)}function CL(e,t){T("LVal",e,t)}function IL(e,t){T("TSEntityName",e,t)}function wL(e,t){T("Literal",e,t)}function NL(e,t){T("Immutable",e,t)}function OL(e,t){T("UserWhitespacable",e,t)}function _L(e,t){T("Method",e,t)}function kL(e,t){T("ObjectMember",e,t)}function DL(e,t){T("Property",e,t)}function LL(e,t){T("UnaryLike",e,t)}function ML(e,t){T("Pattern",e,t)}function FL(e,t){T("Class",e,t)}function BL(e,t){T("ImportOrExportDeclaration",e,t)}function RL(e,t){T("ExportDeclaration",e,t)}function jL(e,t){T("ModuleSpecifier",e,t)}function qL(e,t){T("Accessor",e,t)}function UL(e,t){T("Private",e,t)}function KL(e,t){T("Flow",e,t)}function VL(e,t){T("FlowType",e,t)}function $L(e,t){T("FlowBaseAnnotation",e,t)}function JL(e,t){T("FlowDeclaration",e,t)}function XL(e,t){T("FlowPredicate",e,t)}function YL(e,t){T("EnumBody",e,t)}function WL(e,t){T("EnumMember",e,t)}function HL(e,t){T("JSX",e,t)}function zL(e,t){T("Miscellaneous",e,t)}function GL(e,t){T("TypeScript",e,t)}function QL(e,t){T("TSTypeElement",e,t)}function ZL(e,t){T("TSType",e,t)}function e2(e,t){T("TSBaseType",e,t)}function t2(e,t){(0,ms.default)("assertNumberLiteral","assertNumericLiteral"),T("NumberLiteral",e,t)}function r2(e,t){(0,ms.default)("assertRegexLiteral","assertRegExpLiteral"),T("RegexLiteral",e,t)}function i2(e,t){(0,ms.default)("assertRestProperty","assertRestElement"),T("RestProperty",e,t)}function s2(e,t){(0,ms.default)("assertSpreadProperty","assertSpreadElement"),T("SpreadProperty",e,t)}function n2(e,t){(0,ms.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),T("ModuleDeclaration",e,t)}});var ld=N(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.default=void 0;var ir=Rt(),CZ=En.default=a2;function a2(e){switch(e){case"string":return(0,ir.stringTypeAnnotation)();case"number":return(0,ir.numberTypeAnnotation)();case"undefined":return(0,ir.voidTypeAnnotation)();case"boolean":return(0,ir.booleanTypeAnnotation)();case"function":return(0,ir.genericTypeAnnotation)((0,ir.identifier)("Function"));case"object":return(0,ir.genericTypeAnnotation)((0,ir.identifier)("Object"));case"symbol":return(0,ir.genericTypeAnnotation)((0,ir.identifier)("Symbol"));case"bigint":return(0,ir.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)}});var Uo=N(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.default=cd;var ys=st();function ud(e){return(0,ys.isIdentifier)(e)?e.name:`${e.id.name}.${ud(e.qualification)}`}function cd(e){let t=Array.from(e),r=new Map,i=new Map,s=new Set,n=[];for(let a=0;a<t.length;a++){let o=t[a];if(o&&!n.includes(o)){if((0,ys.isAnyTypeAnnotation)(o))return[o];if((0,ys.isFlowBaseAnnotation)(o)){i.set(o.type,o);continue}if((0,ys.isUnionTypeAnnotation)(o)){s.has(o.types)||(t.push(...o.types),s.add(o.types));continue}if((0,ys.isGenericTypeAnnotation)(o)){let l=ud(o.id);if(r.has(l)){let u=r.get(l);u.typeParameters?o.typeParameters&&(u.typeParameters.params.push(...o.typeParameters.params),u.typeParameters.params=cd(u.typeParameters.params)):u=o.typeParameters}else r.set(l,o);continue}n.push(o)}}for(let[,a]of i)n.push(a);for(let[,a]of r)n.push(a);return n}});var pd=N(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.default=u2;var o2=Rt(),l2=Uo();function u2(e){let t=(0,l2.default)(e);return t.length===1?t[0]:(0,o2.unionTypeAnnotation)(t)}});var hd=N(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.default=dd;var ji=st();function fd(e){return(0,ji.isIdentifier)(e)?e.name:(0,ji.isThisExpression)(e)?"this":`${e.right.name}.${fd(e.left)}`}function dd(e){let t=Array.from(e),r=new Map,i=new Map,s=new Set,n=[];for(let a=0;a<t.length;a++){let o=t[a];if(!o||n.includes(o))continue;if((0,ji.isTSAnyKeyword)(o))return[o];if((0,ji.isTSBaseType)(o)){i.set(o.type,o);continue}if((0,ji.isTSUnionType)(o)){s.has(o.types)||(t.push(...o.types),s.add(o.types));continue}let l="typeParameters";if((0,ji.isTSTypeReference)(o)&&o[l]){let u=o[l],f=fd(o.typeName);if(r.has(f)){let h=r.get(f),g=h[l];g?(g.params.push(...u.params),g.params=dd(g.params)):h=u}else r.set(f,o);continue}n.push(o)}for(let[,a]of i)n.push(a);for(let[,a]of r)n.push(a);return n}});var md=N($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.default=d2;var c2=Rt(),p2=hd(),f2=st();function d2(e){let t=e.map(i=>(0,f2.isTSTypeAnnotation)(i)?i.typeAnnotation:i),r=(0,p2.default)(t);return r.length===1?r[0]:(0,c2.tsUnionType)(r)}});var Xo=N(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.buildUndefinedNode=h2;var yd=Rt();function h2(){return(0,yd.unaryExpression)("void",(0,yd.numericLiteral)(0),!0)}});var qr=N(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.default=m2;var Td=Jt(),Sd=st(),{hasOwn:hr}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function gd(e,t,r,i){return e&&typeof e.type=="string"?xd(e,t,r,i):e}function Yo(e,t,r,i){return Array.isArray(e)?e.map(s=>gd(s,t,r,i)):gd(e,t,r,i)}function m2(e,t=!0,r=!1){return xd(e,t,r,new Map)}function xd(e,t=!0,r=!1,i){if(!e)return e;let{type:s}=e,n={type:e.type};if((0,Sd.isIdentifier)(e))n.name=e.name,hr(e,"optional")&&typeof e.optional=="boolean"&&(n.optional=e.optional),hr(e,"typeAnnotation")&&(n.typeAnnotation=t?Yo(e.typeAnnotation,!0,r,i):e.typeAnnotation),hr(e,"decorators")&&(n.decorators=t?Yo(e.decorators,!0,r,i):e.decorators);else if(hr(Td.NODE_FIELDS,s))for(let a of Object.keys(Td.NODE_FIELDS[s]))hr(e,a)&&(t?n[a]=(0,Sd.isFile)(e)&&a==="comments"?Pn(e.comments,t,r,i):Yo(e[a],!0,r,i):n[a]=e[a]);else throw new Error(`Unknown node type: "${s}"`);return hr(e,"loc")&&(r?n.loc=null:n.loc=e.loc),hr(e,"leadingComments")&&(n.leadingComments=Pn(e.leadingComments,t,r,i)),hr(e,"innerComments")&&(n.innerComments=Pn(e.innerComments,t,r,i)),hr(e,"trailingComments")&&(n.trailingComments=Pn(e.trailingComments,t,r,i)),hr(e,"extra")&&(n.extra=Object.assign({},e.extra)),n}function Pn(e,t,r,i){return!e||!t?e:e.map(s=>{let n=i.get(s);if(n)return n;let{type:a,value:o,loc:l}=s,u={type:a,value:o,loc:l};return r&&(u.loc=null),i.set(s,u),u})}});var bd=N(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.default=T2;var y2=qr();function T2(e){return(0,y2.default)(e,!1)}});var Ed=N(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.default=g2;var S2=qr();function g2(e){return(0,S2.default)(e)}});var Pd=N(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.default=b2;var x2=qr();function b2(e){return(0,x2.default)(e,!0,!0)}});var Ad=N(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.default=P2;var E2=qr();function P2(e){return(0,E2.default)(e,!1,!0)}});var el=N(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.default=A2;function A2(e,t,r){if(!r||!e)return e;let i=`${t}Comments`;return e[i]?t==="leading"?e[i]=r.concat(e[i]):e[i].push(...r):e[i]=r,e}});var vd=N(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.default=C2;var v2=el();function C2(e,t,r,i){return(0,v2.default)(e,t,[{type:i?"CommentLine":"CommentBlock",value:r}])}});var An=N(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.default=I2;function I2(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))}});var sl=N(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.default=N2;var w2=An();function N2(e,t){(0,w2.default)("innerComments",e,t)}});var al=N(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.default=_2;var O2=An();function _2(e,t){(0,O2.default)("leadingComments",e,t)}});var ll=N(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.default=D2;var k2=An();function D2(e,t){(0,k2.default)("trailingComments",e,t)}});var cl=N(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.default=B2;var L2=ll(),M2=al(),F2=sl();function B2(e,t){return(0,L2.default)(e,t),(0,M2.default)(e,t),(0,F2.default)(e,t),e}});var Cd=N(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.default=j2;var R2=Li();function j2(e){return R2.COMMENT_KEYS.forEach(t=>{e[t]=null}),e}});var Id=N(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.WHILE_TYPES=q.USERWHITESPACABLE_TYPES=q.UNARYLIKE_TYPES=q.TYPESCRIPT_TYPES=q.TSTYPE_TYPES=q.TSTYPEELEMENT_TYPES=q.TSENTITYNAME_TYPES=q.TSBASETYPE_TYPES=q.TERMINATORLESS_TYPES=q.STATEMENT_TYPES=q.STANDARDIZED_TYPES=q.SCOPABLE_TYPES=q.PUREISH_TYPES=q.PROPERTY_TYPES=q.PRIVATE_TYPES=q.PATTERN_TYPES=q.PATTERNLIKE_TYPES=q.OBJECTMEMBER_TYPES=q.MODULESPECIFIER_TYPES=q.MODULEDECLARATION_TYPES=q.MISCELLANEOUS_TYPES=q.METHOD_TYPES=q.LVAL_TYPES=q.LOOP_TYPES=q.LITERAL_TYPES=q.JSX_TYPES=q.IMPORTOREXPORTDECLARATION_TYPES=q.IMMUTABLE_TYPES=q.FUNCTION_TYPES=q.FUNCTIONPARENT_TYPES=q.FUNCTIONPARAMETER_TYPES=q.FOR_TYPES=q.FORXSTATEMENT_TYPES=q.FLOW_TYPES=q.FLOWTYPE_TYPES=q.FLOWPREDICATE_TYPES=q.FLOWDECLARATION_TYPES=q.FLOWBASEANNOTATION_TYPES=q.EXPRESSION_TYPES=q.EXPRESSIONWRAPPER_TYPES=q.EXPORTDECLARATION_TYPES=q.ENUMMEMBER_TYPES=q.ENUMBODY_TYPES=q.DECLARATION_TYPES=q.CONDITIONAL_TYPES=q.COMPLETIONSTATEMENT_TYPES=q.CLASS_TYPES=q.BLOCK_TYPES=q.BLOCKPARENT_TYPES=q.BINARY_TYPES=q.ACCESSOR_TYPES=void 0;var he=Jt(),XZ=q.STANDARDIZED_TYPES=he.FLIPPED_ALIAS_KEYS.Standardized,YZ=q.EXPRESSION_TYPES=he.FLIPPED_ALIAS_KEYS.Expression,WZ=q.BINARY_TYPES=he.FLIPPED_ALIAS_KEYS.Binary,HZ=q.SCOPABLE_TYPES=he.FLIPPED_ALIAS_KEYS.Scopable,zZ=q.BLOCKPARENT_TYPES=he.FLIPPED_ALIAS_KEYS.BlockParent,GZ=q.BLOCK_TYPES=he.FLIPPED_ALIAS_KEYS.Block,QZ=q.STATEMENT_TYPES=he.FLIPPED_ALIAS_KEYS.Statement,ZZ=q.TERMINATORLESS_TYPES=he.FLIPPED_ALIAS_KEYS.Terminatorless,eee=q.COMPLETIONSTATEMENT_TYPES=he.FLIPPED_ALIAS_KEYS.CompletionStatement,tee=q.CONDITIONAL_TYPES=he.FLIPPED_ALIAS_KEYS.Conditional,ree=q.LOOP_TYPES=he.FLIPPED_ALIAS_KEYS.Loop,iee=q.WHILE_TYPES=he.FLIPPED_ALIAS_KEYS.While,see=q.EXPRESSIONWRAPPER_TYPES=he.FLIPPED_ALIAS_KEYS.ExpressionWrapper,nee=q.FOR_TYPES=he.FLIPPED_ALIAS_KEYS.For,aee=q.FORXSTATEMENT_TYPES=he.FLIPPED_ALIAS_KEYS.ForXStatement,oee=q.FUNCTION_TYPES=he.FLIPPED_ALIAS_KEYS.Function,lee=q.FUNCTIONPARENT_TYPES=he.FLIPPED_ALIAS_KEYS.FunctionParent,uee=q.PUREISH_TYPES=he.FLIPPED_ALIAS_KEYS.Pureish,cee=q.DECLARATION_TYPES=he.FLIPPED_ALIAS_KEYS.Declaration,pee=q.FUNCTIONPARAMETER_TYPES=he.FLIPPED_ALIAS_KEYS.FunctionParameter,fee=q.PATTERNLIKE_TYPES=he.FLIPPED_ALIAS_KEYS.PatternLike,dee=q.LVAL_TYPES=he.FLIPPED_ALIAS_KEYS.LVal,hee=q.TSENTITYNAME_TYPES=he.FLIPPED_ALIAS_KEYS.TSEntityName,mee=q.LITERAL_TYPES=he.FLIPPED_ALIAS_KEYS.Literal,yee=q.IMMUTABLE_TYPES=he.FLIPPED_ALIAS_KEYS.Immutable,Tee=q.USERWHITESPACABLE_TYPES=he.FLIPPED_ALIAS_KEYS.UserWhitespacable,See=q.METHOD_TYPES=he.FLIPPED_ALIAS_KEYS.Method,gee=q.OBJECTMEMBER_TYPES=he.FLIPPED_ALIAS_KEYS.ObjectMember,xee=q.PROPERTY_TYPES=he.FLIPPED_ALIAS_KEYS.Property,bee=q.UNARYLIKE_TYPES=he.FLIPPED_ALIAS_KEYS.UnaryLike,Eee=q.PATTERN_TYPES=he.FLIPPED_ALIAS_KEYS.Pattern,Pee=q.CLASS_TYPES=he.FLIPPED_ALIAS_KEYS.Class,q2=q.IMPORTOREXPORTDECLARATION_TYPES=he.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,Aee=q.EXPORTDECLARATION_TYPES=he.FLIPPED_ALIAS_KEYS.ExportDeclaration,vee=q.MODULESPECIFIER_TYPES=he.FLIPPED_ALIAS_KEYS.ModuleSpecifier,Cee=q.ACCESSOR_TYPES=he.FLIPPED_ALIAS_KEYS.Accessor,Iee=q.PRIVATE_TYPES=he.FLIPPED_ALIAS_KEYS.Private,wee=q.FLOW_TYPES=he.FLIPPED_ALIAS_KEYS.Flow,Nee=q.FLOWTYPE_TYPES=he.FLIPPED_ALIAS_KEYS.FlowType,Oee=q.FLOWBASEANNOTATION_TYPES=he.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,_ee=q.FLOWDECLARATION_TYPES=he.FLIPPED_ALIAS_KEYS.FlowDeclaration,kee=q.FLOWPREDICATE_TYPES=he.FLIPPED_ALIAS_KEYS.FlowPredicate,Dee=q.ENUMBODY_TYPES=he.FLIPPED_ALIAS_KEYS.EnumBody,Lee=q.ENUMMEMBER_TYPES=he.FLIPPED_ALIAS_KEYS.EnumMember,Mee=q.JSX_TYPES=he.FLIPPED_ALIAS_KEYS.JSX,Fee=q.MISCELLANEOUS_TYPES=he.FLIPPED_ALIAS_KEYS.Miscellaneous,Bee=q.TYPESCRIPT_TYPES=he.FLIPPED_ALIAS_KEYS.TypeScript,Ree=q.TSTYPEELEMENT_TYPES=he.FLIPPED_ALIAS_KEYS.TSTypeElement,jee=q.TSTYPE_TYPES=he.FLIPPED_ALIAS_KEYS.TSType,qee=q.TSBASETYPE_TYPES=he.FLIPPED_ALIAS_KEYS.TSBaseType,Uee=q.MODULEDECLARATION_TYPES=q2});var hl=N(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.default=U2;var vn=st(),fl=Rt();function U2(e,t){if((0,vn.isBlockStatement)(e))return e;let r=[];return(0,vn.isEmptyStatement)(e)?r=[]:((0,vn.isStatement)(e)||((0,vn.isFunction)(t)?e=(0,fl.returnStatement)(e):e=(0,fl.expressionStatement)(e)),r=[e]),(0,fl.blockStatement)(r)}});var wd=N(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.default=V2;var K2=hl();function V2(e,t="body"){let r=(0,K2.default)(e[t],e);return e[t]=r,r}});var Tl=N(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.default=X2;var $2=Di(),J2=ls();function X2(e){e=e+"";let t="";for(let r of e)t+=(0,J2.isIdentifierChar)(r.codePointAt(0))?r:"-";return t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,function(r,i){return i?i.toUpperCase():""}),(0,$2.default)(t)||(t=`_${t}`),t||"_"}});var Nd=N(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.default=W2;var Y2=Tl();function W2(e){return e=(0,Y2.default)(e),(e==="eval"||e==="arguments")&&(e="_"+e),e}});var Od=N(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.default=G2;var H2=st(),z2=Rt();function G2(e,t=e.key||e.property){return!e.computed&&(0,H2.isIdentifier)(t)&&(t=(0,z2.stringLiteral)(t.name)),t}});var _d=N(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.default=void 0;var Ts=st(),Wee=Cn.default=Q2;function Q2(e){if((0,Ts.isExpressionStatement)(e)&&(e=e.expression),(0,Ts.isExpression)(e))return e;if((0,Ts.isClass)(e)?(e.type="ClassExpression",e.abstract=!1):(0,Ts.isFunction)(e)&&(e.type="FunctionExpression"),!(0,Ts.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}});var bl=N(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.default=Ss;var Z2=Jt(),kd=Symbol(),Dd=Symbol();function Ss(e,t,r){if(!e)return!1;let i=Z2.VISITOR_KEYS[e.type];if(!i)return!1;r=r||{};let s=t(e,r);if(s!==void 0)switch(s){case kd:return!1;case Dd:return!0}for(let n of i){let a=e[n];if(a){if(Array.isArray(a)){for(let o of a)if(Ss(o,t,r))return!0}else if(Ss(a,t,r))return!0}}return!1}Ss.skip=kd;Ss.stop=Dd});var Pl=N(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.default=rM;var eM=Li(),Ld=["tokens","start","end","loc","raw","rawValue"],tM=[...eM.COMMENT_KEYS,"comments",...Ld];function rM(e,t={}){let r=t.preserveComments?Ld:tM;for(let s of r)e[s]!=null&&(e[s]=void 0);for(let s of Object.keys(e))s.startsWith("_")&&e[s]!=null&&(e[s]=void 0);let i=Object.getOwnPropertySymbols(e);for(let s of i)e[s]=null}});var vl=N(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.default=nM;var iM=bl(),sM=Pl();function nM(e,t){return(0,iM.default)(e,sM.default,t),e}});var Fd=N(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.default=oi;var Md=st(),aM=qr(),oM=vl();function oi(e,t=e.key){let r;return e.kind==="method"?oi.increment()+"":((0,Md.isIdentifier)(t)?r=t.name:(0,Md.isStringLiteral)(t)?r=JSON.stringify(t.value):r=JSON.stringify((0,oM.default)((0,aM.default)(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}oi.uid=0;oi.increment=function(){return oi.uid>=Number.MAX_SAFE_INTEGER?oi.uid=0:oi.uid++}});var Bd=N(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.default=void 0;var In=st(),lM=Rt(),ete=wn.default=uM;function uM(e,t){if((0,In.isStatement)(e))return e;let r=!1,i;if((0,In.isClass)(e))r=!0,i="ClassDeclaration";else if((0,In.isFunction)(e))r=!0,i="FunctionDeclaration";else if((0,In.isAssignmentExpression)(e))return(0,lM.expressionStatement)(e);if(r&&!e.id&&(i=!1),!i){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=i,e}});var Rd=N(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.default=void 0;var cM=Di(),ft=Rt(),rte=Nn.default=Il,pM=Function.call.bind(Object.prototype.toString);function fM(e){return pM(e)==="[object RegExp]"}function dM(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Il(e){if(e===void 0)return(0,ft.identifier)("undefined");if(e===!0||e===!1)return(0,ft.booleanLiteral)(e);if(e===null)return(0,ft.nullLiteral)();if(typeof e=="string")return(0,ft.stringLiteral)(e);if(typeof e=="number"){let t;if(Number.isFinite(e))t=(0,ft.numericLiteral)(Math.abs(e));else{let r;Number.isNaN(e)?r=(0,ft.numericLiteral)(0):r=(0,ft.numericLiteral)(1),t=(0,ft.binaryExpression)("/",r,(0,ft.numericLiteral)(0))}return(e<0||Object.is(e,-0))&&(t=(0,ft.unaryExpression)("-",t)),t}if(typeof e=="bigint")return e<0?(0,ft.unaryExpression)("-",(0,ft.bigIntLiteral)(-e)):(0,ft.bigIntLiteral)(e);if(fM(e)){let t=e.source,r=/\/([a-z]*)$/.exec(e.toString())[1];return(0,ft.regExpLiteral)(t,r)}if(Array.isArray(e))return(0,ft.arrayExpression)(e.map(Il));if(dM(e)){let t=[];for(let r of Object.keys(e)){let i,s=!1;(0,cM.default)(r)?r==="__proto__"?(s=!0,i=(0,ft.stringLiteral)(r)):i=(0,ft.identifier)(r):i=(0,ft.stringLiteral)(r),t.push((0,ft.objectProperty)(i,Il(e[r]),s))}return(0,ft.objectExpression)(t)}throw new Error("don't know how to turn this value into a node")}});var jd=N(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.default=mM;var hM=Rt();function mM(e,t,r=!1){return e.object=(0,hM.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e}});var Ud=N(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.default=TM;var qd=Li(),yM=cl();function TM(e,t){if(!e||!t)return e;for(let r of qd.INHERIT_KEYS.optional)e[r]==null&&(e[r]=t[r]);for(let r of Object.keys(t))r.startsWith("_")&&r!=="__clone"&&(e[r]=t[r]);for(let r of qd.INHERIT_KEYS.force)e[r]=t[r];return(0,yM.default)(e,t),e}});var Kd=N(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.default=xM;var SM=Rt(),gM=ye();function xM(e,t){if((0,gM.isSuper)(e.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,SM.memberExpression)(t,e.object),e}});var Vd=N(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.default=bM;function bM(e){let t=[].concat(e),r=Object.create(null);for(;t.length;){let i=t.pop();if(i)switch(i.type){case"ArrayPattern":t.push(...i.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(i.left);break;case"ObjectPattern":t.push(...i.properties);break;case"ObjectProperty":t.push(i.value);break;case"RestElement":case"UpdateExpression":t.push(i.argument);break;case"UnaryExpression":i.operator==="delete"&&t.push(i.argument);break;case"Identifier":r[i.name]=i;break;default:break}}return r}});var gs=N(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.default=kl;var wr=st();function kl(e,t,r,i){let s=[].concat(e),n=Object.create(null);for(;s.length;){let a=s.shift();if(!a||i&&((0,wr.isAssignmentExpression)(a)||(0,wr.isUnaryExpression)(a)||(0,wr.isUpdateExpression)(a)))continue;if((0,wr.isIdentifier)(a)){t?(n[a.name]=n[a.name]||[]).push(a):n[a.name]=a;continue}if((0,wr.isExportDeclaration)(a)&&!(0,wr.isExportAllDeclaration)(a)){(0,wr.isDeclaration)(a.declaration)&&s.push(a.declaration);continue}if(r){if((0,wr.isFunctionDeclaration)(a)){s.push(a.id);continue}if((0,wr.isFunctionExpression)(a))continue}let o=kl.keys[a.type];if(o)for(let l=0;l<o.length;l++){let u=o[l],f=a[u];f&&(Array.isArray(f)?s.push(...f):s.push(f))}}return n}var EM={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};kl.keys=EM});var $d=N(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.default=void 0;var PM=gs(),ute=On.default=AM;function AM(e,t){return(0,PM.default)(e,t,!0)}});var Xd=N(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.default=CM;var Xt=st();function vM(e){return(0,Xt.isNullLiteral)(e)?"null":(0,Xt.isRegExpLiteral)(e)?`/${e.pattern}/${e.flags}`:(0,Xt.isTemplateLiteral)(e)?e.quasis.map(t=>t.value.raw).join(""):e.value!==void 0?String(e.value):null}function Jd(e){if(!e.computed||(0,Xt.isLiteral)(e.key))return e.key}function CM(e,t){if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let r="",i;if((0,Xt.isObjectProperty)(t,{value:e})?i=Jd(t):(0,Xt.isObjectMethod)(e)||(0,Xt.isClassMethod)(e)?(i=Jd(e),e.kind==="get"?r="get ":e.kind==="set"&&(r="set ")):(0,Xt.isVariableDeclarator)(t,{init:e})?i=t.id:(0,Xt.isAssignmentExpression)(t,{operator:"=",right:e})&&(i=t.left),!i)return null;let s=(0,Xt.isLiteral)(i)?vM(i):(0,Xt.isIdentifier)(i)?i.name:(0,Xt.isPrivateName)(i)?i.id.name:null;return s==null?null:{name:r+s,originalNode:i}}});var Yd=N(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.default=wM;var IM=Jt();function wM(e,t,r){typeof t=="function"&&(t={enter:t});let{enter:i,exit:s}=t;Ml(e,i,s,r,[])}function Ml(e,t,r,i,s){let n=IM.VISITOR_KEYS[e.type];if(n){t&&t(e,s,i);for(let a of n){let o=e[a];if(Array.isArray(o))for(let l=0;l<o.length;l++){let u=o[l];u&&(s.push({node:e,key:a,index:l}),Ml(u,t,r,i,s),s.pop())}else o&&(s.push({node:e,key:a}),Ml(o,t,r,i,s),s.pop())}r&&r(e,s,i)}}});var Wd=N(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.default=OM;var NM=gs();function OM(e,t,r){if(r&&e.type==="Identifier"&&t.type==="ObjectProperty"&&r.type==="ObjectExpression")return!1;let i=NM.default.keys[t.type];if(i)for(let s=0;s<i.length;s++){let n=i[s],a=t[n];if(Array.isArray(a)){if(a.includes(e))return!0}else if(a===e)return!0}return!1}});var jl=N(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.default=DM;var _M=st(),kM=Symbol.for("var used to be block scoped");function DM(e){return(0,_M.isVariableDeclaration)(e)&&(e.kind!=="var"||e[kM])}});var zd=N(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.default=MM;var Hd=st(),LM=jl();function MM(e){return(0,Hd.isFunctionDeclaration)(e)||(0,Hd.isClassDeclaration)(e)||(0,LM.default)(e)}});var Gd=N(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.default=RM;var FM=pn(),BM=st();function RM(e){return(0,FM.default)(e.type,"Immutable")?!0:(0,BM.isIdentifier)(e)?e.name==="undefined":!1}});var Zd=N(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.default=Kl;var Qd=Jt();function Kl(e,t){if(typeof e!="object"||typeof t!="object"||e==null||t==null)return e===t;if(e.type!==t.type)return!1;let r=Object.keys(Qd.NODE_FIELDS[e.type]||e.type),i=Qd.VISITOR_KEYS[e.type];for(let s of r){let n=e[s],a=t[s];if(typeof n!=typeof a)return!1;if(!(n==null&&a==null)){if(n==null||a==null)return!1;if(Array.isArray(n)){if(!Array.isArray(a)||n.length!==a.length)return!1;for(let o=0;o<n.length;o++)if(!Kl(n[o],a[o]))return!1;continue}if(typeof n=="object"&&!(i!=null&&i.includes(s))){for(let o of Object.keys(n))if(n[o]!==a[o])return!1;continue}if(!Kl(n,a))return!1}}return!0}});var eh=N($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.default=jM;function jM(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e?!!t.computed:!1;case"ObjectProperty":return t.key===e?!!t.computed:r?.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return t.key===e?!!t.computed:!0;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return r!=null&&r.source?!1:t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key===e?!!t.computed:!0}return!0}});var th=N(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.default=qM;var li=st();function qM(e,t){return(0,li.isBlockStatement)(e)&&((0,li.isFunction)(t)||(0,li.isCatchClause)(t))?!1:(0,li.isPattern)(e)&&((0,li.isFunction)(t)||(0,li.isCatchClause)(t))?!0:(0,li.isScopable)(e)}});var ih=N(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.default=UM;var rh=st();function UM(e){return(0,rh.isImportDefaultSpecifier)(e)||(0,rh.isIdentifier)(e.imported||e.exported,{name:"default"})}});var sh=N(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.default=$M;var KM=Di(),VM=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function $M(e){return(0,KM.default)(e)&&!VM.has(e)}});var nh=N(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.default=YM;var JM=st(),XM=Symbol.for("var used to be block scoped");function YM(e){return(0,JM.isVariableDeclaration)(e,{kind:"var"})&&!e[XM]}});var ah=N(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.default=_n;var WM=gs(),ui=st(),Hl=Rt(),zl=Xo(),HM=qr();function _n(e,t){let r=[],i=!0;for(let s of e)if((0,ui.isEmptyStatement)(s)||(i=!1),(0,ui.isExpression)(s))r.push(s);else if((0,ui.isExpressionStatement)(s))r.push(s.expression);else if((0,ui.isVariableDeclaration)(s)){if(s.kind!=="var")return;for(let n of s.declarations){let a=(0,WM.default)(n);for(let o of Object.keys(a))t.push({kind:s.kind,id:(0,HM.default)(a[o])});n.init&&r.push((0,Hl.assignmentExpression)("=",n.id,n.init))}i=!0}else if((0,ui.isIfStatement)(s)){let n=s.consequent?_n([s.consequent],t):(0,zl.buildUndefinedNode)(),a=s.alternate?_n([s.alternate],t):(0,zl.buildUndefinedNode)();if(!n||!a)return;r.push((0,Hl.conditionalExpression)(s.test,n,a))}else if((0,ui.isBlockStatement)(s)){let n=_n(s.body,t);if(!n)return;r.push(n)}else if((0,ui.isEmptyStatement)(s))e.indexOf(s)===0&&(i=!0);else return;return i&&r.push((0,zl.buildUndefinedNode)()),r.length===1?r[0]:(0,Hl.sequenceExpression)(r)}});var oh=N(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.default=GM;var zM=ah();function GM(e,t){if(!(e!=null&&e.length))return;let r=[],i=(0,zM.default)(e,r);if(i){for(let s of r)t.push(s);return i}}});var ye=N(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});var Ur={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(X,"__internal__deprecationWarning",{enumerable:!0,get:function(){return tB.default}});Object.defineProperty(X,"addComment",{enumerable:!0,get:function(){return uF.default}});Object.defineProperty(X,"addComments",{enumerable:!0,get:function(){return cF.default}});Object.defineProperty(X,"appendToMemberExpression",{enumerable:!0,get:function(){return vF.default}});Object.defineProperty(X,"assertNode",{enumerable:!0,get:function(){return tF.default}});Object.defineProperty(X,"buildMatchMemberExpression",{enumerable:!0,get:function(){return eB.default}});Object.defineProperty(X,"clone",{enumerable:!0,get:function(){return nF.default}});Object.defineProperty(X,"cloneDeep",{enumerable:!0,get:function(){return aF.default}});Object.defineProperty(X,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return oF.default}});Object.defineProperty(X,"cloneNode",{enumerable:!0,get:function(){return sF.default}});Object.defineProperty(X,"cloneWithoutLoc",{enumerable:!0,get:function(){return lF.default}});Object.defineProperty(X,"createFlowUnionType",{enumerable:!0,get:function(){return lh.default}});Object.defineProperty(X,"createTSUnionType",{enumerable:!0,get:function(){return iF.default}});Object.defineProperty(X,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return rF.default}});Object.defineProperty(X,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return lh.default}});Object.defineProperty(X,"ensureBlock",{enumerable:!0,get:function(){return yF.default}});Object.defineProperty(X,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return _F.default}});Object.defineProperty(X,"getBindingIdentifiers",{enumerable:!0,get:function(){return kF.default}});Object.defineProperty(X,"getFunctionName",{enumerable:!0,get:function(){return LF.default}});Object.defineProperty(X,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return DF.default}});Object.defineProperty(X,"inheritInnerComments",{enumerable:!0,get:function(){return pF.default}});Object.defineProperty(X,"inheritLeadingComments",{enumerable:!0,get:function(){return fF.default}});Object.defineProperty(X,"inheritTrailingComments",{enumerable:!0,get:function(){return hF.default}});Object.defineProperty(X,"inherits",{enumerable:!0,get:function(){return CF.default}});Object.defineProperty(X,"inheritsComments",{enumerable:!0,get:function(){return dF.default}});Object.defineProperty(X,"is",{enumerable:!0,get:function(){return BF.default}});Object.defineProperty(X,"isBinding",{enumerable:!0,get:function(){return RF.default}});Object.defineProperty(X,"isBlockScoped",{enumerable:!0,get:function(){return jF.default}});Object.defineProperty(X,"isImmutable",{enumerable:!0,get:function(){return qF.default}});Object.defineProperty(X,"isLet",{enumerable:!0,get:function(){return UF.default}});Object.defineProperty(X,"isNode",{enumerable:!0,get:function(){return KF.default}});Object.defineProperty(X,"isNodesEquivalent",{enumerable:!0,get:function(){return VF.default}});Object.defineProperty(X,"isPlaceholderType",{enumerable:!0,get:function(){return $F.default}});Object.defineProperty(X,"isReferenced",{enumerable:!0,get:function(){return JF.default}});Object.defineProperty(X,"isScope",{enumerable:!0,get:function(){return XF.default}});Object.defineProperty(X,"isSpecifierDefault",{enumerable:!0,get:function(){return YF.default}});Object.defineProperty(X,"isType",{enumerable:!0,get:function(){return WF.default}});Object.defineProperty(X,"isValidES3Identifier",{enumerable:!0,get:function(){return HF.default}});Object.defineProperty(X,"isValidIdentifier",{enumerable:!0,get:function(){return zF.default}});Object.defineProperty(X,"isVar",{enumerable:!0,get:function(){return GF.default}});Object.defineProperty(X,"matchesPattern",{enumerable:!0,get:function(){return QF.default}});Object.defineProperty(X,"prependToMemberExpression",{enumerable:!0,get:function(){return IF.default}});X.react=void 0;Object.defineProperty(X,"removeComments",{enumerable:!0,get:function(){return mF.default}});Object.defineProperty(X,"removeProperties",{enumerable:!0,get:function(){return wF.default}});Object.defineProperty(X,"removePropertiesDeep",{enumerable:!0,get:function(){return NF.default}});Object.defineProperty(X,"removeTypeDuplicates",{enumerable:!0,get:function(){return OF.default}});Object.defineProperty(X,"shallowEqual",{enumerable:!0,get:function(){return FF.default}});Object.defineProperty(X,"toBindingIdentifierName",{enumerable:!0,get:function(){return TF.default}});Object.defineProperty(X,"toBlock",{enumerable:!0,get:function(){return SF.default}});Object.defineProperty(X,"toComputedKey",{enumerable:!0,get:function(){return gF.default}});Object.defineProperty(X,"toExpression",{enumerable:!0,get:function(){return xF.default}});Object.defineProperty(X,"toIdentifier",{enumerable:!0,get:function(){return bF.default}});Object.defineProperty(X,"toKeyAlias",{enumerable:!0,get:function(){return EF.default}});Object.defineProperty(X,"toStatement",{enumerable:!0,get:function(){return PF.default}});Object.defineProperty(X,"traverse",{enumerable:!0,get:function(){return kn.default}});Object.defineProperty(X,"traverseFast",{enumerable:!0,get:function(){return MF.default}});Object.defineProperty(X,"validate",{enumerable:!0,get:function(){return ZF.default}});Object.defineProperty(X,"valueToNode",{enumerable:!0,get:function(){return AF.default}});var QM=df(),ZM=hf(),eF=nd(),tF=ad(),Zl=od();Object.keys(Zl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ur,e)||e in X&&X[e]===Zl[e]||Object.defineProperty(X,e,{enumerable:!0,get:function(){return Zl[e]}})});var rF=ld(),lh=pd(),iF=md(),eu=Xo();Object.keys(eu).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ur,e)||e in X&&X[e]===eu[e]||Object.defineProperty(X,e,{enumerable:!0,get:function(){return eu[e]}})});var tu=Rt();Object.keys(tu).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ur,e)||e in X&&X[e]===tu[e]||Object.defineProperty(X,e,{enumerable:!0,get:function(){return tu[e]}})});var sF=qr(),nF=bd(),aF=Ed(),oF=Pd(),lF=Ad(),uF=vd(),cF=el(),pF=sl(),fF=al(),dF=cl(),hF=ll(),mF=Cd(),ru=Id();Object.keys(ru).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ur,e)||e in X&&X[e]===ru[e]||Object.defineProperty(X,e,{enumerable:!0,get:function(){return ru[e]}})});var iu=Li();Object.keys(iu).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ur,e)||e in X&&X[e]===iu[e]||Object.defineProperty(X,e,{enumerable:!0,get:function(){return iu[e]}})});var yF=wd(),TF=Nd(),SF=hl(),gF=Od(),xF=_d(),bF=Tl(),EF=Fd(),PF=Bd(),AF=Rd(),su=Jt();Object.keys(su).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ur,e)||e in X&&X[e]===su[e]||Object.defineProperty(X,e,{enumerable:!0,get:function(){return su[e]}})});var vF=jd(),CF=Ud(),IF=Kd(),wF=Pl(),NF=vl(),OF=Uo(),_F=Vd(),kF=gs(),DF=$d(),LF=Xd(),kn=Yd();Object.keys(kn).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ur,e)||e in X&&X[e]===kn[e]||Object.defineProperty(X,e,{enumerable:!0,get:function(){return kn[e]}})});var MF=bl(),FF=un(),BF=ki(),RF=Wd(),jF=zd(),qF=Gd(),UF=jl(),KF=Ro(),VF=Zd(),$F=lo(),JF=eh(),XF=th(),YF=ih(),WF=pn(),HF=sh(),zF=Di(),GF=nh(),QF=ro(),ZF=mn(),eB=so(),nu=st();Object.keys(nu).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ur,e)||e in X&&X[e]===nu[e]||Object.defineProperty(X,e,{enumerable:!0,get:function(){return nu[e]}})});var tB=_i(),rB=oh(),vte=X.react={isReactComponent:QM.default,isCompatTag:ZM.default,buildChildren:eF.default};X.toSequenceExpression=rB.default;process.env.BABEL_TYPES_8_BREAKING&&console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")});var au=N(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.isBindingIdentifier=vB;dt.isBlockScoped=OB;dt.isExpression=IB;dt.isFlow=MB;dt.isForAwaitStatement=RB;dt.isGenerated=DB;dt.isPure=LB;dt.isReferenced=NB;dt.isReferencedIdentifier=PB;dt.isReferencedMemberExpression=AB;dt.isRestProperty=FB;dt.isScope=wB;dt.isSpreadProperty=BB;dt.isStatement=CB;dt.isUser=kB;dt.isVar=_B;var iB=ye(),{isBinding:sB,isBlockScoped:nB,isExportDeclaration:aB,isExpression:oB,isFlow:lB,isForStatement:uB,isForXStatement:cB,isIdentifier:uh,isImportDeclaration:pB,isImportSpecifier:fB,isJSXIdentifier:dB,isJSXMemberExpression:hB,isMemberExpression:mB,isRestElement:ch,isReferenced:Dn,isScope:yB,isStatement:TB,isVar:SB,isVariableDeclaration:gB,react:xB,isForOfStatement:bB}=iB,{isCompatTag:EB}=xB;function PB(e){let{node:t,parent:r}=this;return uh(t,e)?Dn(t,r,this.parentPath.parent):dB(t,e)?!hB(r)&&EB(t.name)?!1:Dn(t,r,this.parentPath.parent):!1}function AB(){let{node:e,parent:t}=this;return mB(e)&&Dn(e,t)}function vB(){let{node:e,parent:t}=this,r=this.parentPath.parent;return uh(e)&&sB(e,t,r)}function CB(){let{node:e,parent:t}=this;return TB(e)?!(gB(e)&&(cB(t,{left:e})||uB(t,{init:e}))):!1}function IB(){return this.isIdentifier()?this.isReferencedIdentifier():oB(this.node)}function wB(){return yB(this.node,this.parent)}function NB(){return Dn(this.node,this.parent)}function OB(){return nB(this.node)}function _B(){return SB(this.node)}function kB(){var e;return!!((e=this.node)!=null&&e.loc)}function DB(){return!this.isUser()}function LB(e){return this.scope.isPure(this.node,e)}function MB(){let{node:e}=this;return lB(e)?!0:pB(e)?e.importKind==="type"||e.importKind==="typeof":aB(e)?e.exportKind==="type":fB(e)?e.importKind==="type"||e.importKind==="typeof":!1}function FB(){var e;return ch(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function BB(){var e;return ch(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function RB(){return bB(this.node,{await:!0})}dt.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")};dt.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var bs=N(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.environmentVisitor=XB;pi.explode=bh;pi.isExplodedVisitor=xh;pi.merge=Ph;pi.verify=Eh;var gh=Wa(),jB=au(),qB=ye(),ph=Yt(),{DEPRECATED_KEYS:fh,DEPRECATED_ALIASES:dh,FLIPPED_ALIAS_KEYS:hh,TYPES:UB,__internal__deprecationWarning:mh}=qB;function KB(e){return e in gh}function xh(e){return e?._exploded}function bh(e){if(xh(e))return e;e._exploded=!0;for(let r of Object.keys(e)){if(ci(r))continue;let i=r.split("|");if(i.length===1)continue;let s=e[r];delete e[r];for(let n of i)e[n]=s}Eh(e),delete e.__esModule,VB(e),Sh(e);for(let r of Object.keys(e)){if(ci(r)||!KB(r))continue;let i=e[r];for(let n of Object.keys(i))i[n]=$B(r,i[n]);delete e[r];let s=gh[r];if(s!==null)for(let n of s){var t;(t=e[n])!=null||(e[n]={}),xs(e[n],i)}else xs(e,i)}for(let r of Object.keys(e)){if(ci(r))continue;let i=hh[r];if(r in fh){let n=fh[r];mh(r,n,"Visitor "),i=[n]}else if(r in dh){let n=dh[r];mh(r,n,"Visitor "),i=hh[n]}if(!i)continue;let s=e[r];delete e[r];for(let n of i){let a=e[n];a?xs(a,s):e[n]=Object.assign({},s)}}for(let r of Object.keys(e))ci(r)||Sh(e[r]);return e}function Eh(e){if(!e._verified){if(typeof e=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let t of Object.keys(e)){if((t==="enter"||t==="exit")&&yh(t,e[t]),ci(t))continue;if(!UB.includes(t))throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.29.8`);let r=e[t];if(typeof r=="object")for(let i of Object.keys(r))if(i==="enter"||i==="exit")yh(`${t}.${i}`,r[i]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${i}`)}e._verified=!0}}function yh(e,t){let r=[].concat(t);for(let i of r)if(typeof i!="function")throw new TypeError(`Non-function found defined in ${e} with type ${typeof i}`)}function Ph(e,t=[],r){let i={_verified:!0,_exploded:!0};Object.defineProperty(i,"_exploded",{enumerable:!1}),Object.defineProperty(i,"_verified",{enumerable:!1});for(let s=0;s<e.length;s++){let n=bh(e[s]),a=t[s],o=n;(a||r)&&(o=Th(o,a,r)),xs(i,o);for(let l of Object.keys(n)){if(ci(l))continue;let u=n[l];(a||r)&&(u=Th(u,a,r));let f=i[l]||(i[l]={});xs(f,u)}}return i}function Th(e,t,r){let i={};for(let s of["enter","exit"]){let n=e[s];Array.isArray(n)&&(n=n.map(function(a){let o=a;return t&&(o=function(l){a.call(t,l,t)}),r&&(o=r(t?.key,s,o)),o!==a&&(o.toString=()=>a.toString()),o}),i[s]=n)}return i}function VB(e){for(let t of Object.keys(e)){if(ci(t))continue;let r=e[t];typeof r=="function"&&(e[t]={enter:r})}}function Sh(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function $B(e,t){let r=`is${e}`,i=jB[r],s=function(n){if(i.call(n))return t.apply(this,arguments)};return s.toString=()=>t.toString(),s}function ci(e){return!!(e.startsWith("_")||e==="enter"||e==="exit"||e==="shouldSkip"||e==="denylist"||e==="noScope"||e==="skipKeys"||e==="blacklist")}function xs(e,t){for(let r of["enter","exit"])t[r]&&(e[r]=[].concat(e[r]||[],t[r]))}var JB={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():ph.requeueComputedKeyAndDecorators.call(e)))},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():ph.requeueComputedKeyAndDecorators.call(e))}};function XB(e){return Ph([JB,e])}});var Ah=N(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.default=void 0;var Ln=ye(),YB=Ln,WB=Fn(),HB=bs(),zB=Yt(),{getAssignmentIdentifiers:GB}=YB,QB={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():zB.requeueComputedKeyAndDecorators.call(e)),e.isSwitchStatement()&&e.context.maybeQueue(e.get("discriminant")))},ObjectProperty({node:e,scope:t},r){let{name:i}=e.key;if(e.shorthand&&(i===r.oldName||i===r.newName)&&t.getBindingIdentifier(i)===r.binding.identifier){var s;e.shorthand=!1,(s=e.extra)!=null&&s.shorthand&&(e.extra.shorthand=!1)}},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;let r=e.isAssignmentExpression()?GB(e.node):e.getOuterBindingIdentifiers();for(let i in r)i===t.oldName&&(r[i].name=t.newName)}},ou=class{constructor(t,r,i){this.newName=i,this.oldName=r,this.binding=t}maybeConvertFromExportDeclaration(t){let r=t.parentPath;if(r.isExportDeclaration()){if(r.isExportDefaultDeclaration()){let{declaration:i}=r.node;if(Ln.isDeclaration(i)&&!i.id)return}r.isExportAllDeclaration()||r.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(t){return t}maybeConvertFromClassFunctionExpression(t){return t}rename(){let{binding:t,oldName:r,newName:i}=this,{scope:s,path:n}=t,a=n.find(u=>u.isDeclaration()||u.isFunctionExpression()||u.isClassExpression());a&&a.getOuterBindingIdentifiers()[r]===t.identifier&&this.maybeConvertFromExportDeclaration(a);let o=arguments[0]||s.block,l={discriminant:!0};Ln.isMethod(o)&&(o.computed&&(l.key=!0),Ln.isObjectMethod(o)||(l.decorators=!0)),(0,WB.traverseNode)(o,(0,HB.explode)(QB),s,this,s.path,l),arguments[0]||(s.removeOwnBinding(r),s.bindings[i]=t,this.binding.identifier.name=i),a&&(this.maybeConvertFromClassFunctionDeclaration(n),this.maybeConvertFromClassFunctionExpression(n))}};Mn.default=ou});var vh=N(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.default=s3;var ZB=ye(),e3=mr(),t3=bs(),r3=Yt(),{VISITOR_KEYS:i3}=ZB;function s3(e,t,r){let i=(0,t3.explode)(t);if(i.enter||i.exit)throw new Error("Should not be used with enter/exit visitors.");s(e.parentPath,e.parent,e.node,e.container,e.key,e.listKey,e.hub,e);function s(n,a,o,l,u,f,h,g){if(!o)return;let b=g||e3.NodePath.get({hub:h,parentPath:n,parent:a,container:l,listKey:f,key:u});r3._forceSetScope.call(b);let E=i[o.type];if(E!=null&&E.enter)for(let A of E.enter)A.call(r,b,r);if(b.shouldSkip)return;let w=i3[o.type];if(w!=null&&w.length){for(let A of w){let I=o[A];if(I)if(Array.isArray(I))for(let k=0;k<I.length;k++){let Y=I[k];s(b,o,Y,I,k,A)}else s(b,o,I,o,A,null)}if(E!=null&&E.exit)for(let A of E.exit)A.call(r,b,r)}}}});var Ch=N(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.default=void 0;var uu=class{constructor({identifier:t,scope:r,path:i,kind:s}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=t,this.scope=r,this.path=i,this.kind=s,(s==="var"||s==="hoisted")&&n3(i)&&this.reassign(i),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(t){this.hasDeoptedValue||(this.hasValue=!0,this.value=t)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(t){this.constant=!1,!this.constantViolations.includes(t)&&this.constantViolations.push(t)}reference(t){this.referencePaths.includes(t)||(this.referenced=!0,this.references++,this.referencePaths.push(t))}dereference(){this.references--,this.referenced=!!this.references}};Bn.default=uu;function n3(e){let t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:r,key:i}=e;r;{parentPath:r,key:i}=r){if(r.isFunctionParent())return!1;if(i==="left"&&r.isForXStatement()||t&&i==="body"&&r.isLoop())return!0}return!1}});var fi=N(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.clear=o3;Ut.clearPath=Ih;Ut.clearScope=wh;Ut.getCachedPaths=l3;Ut.getOrCreateCachedPaths=u3;Ut.scope=Ut.path=void 0;var Rn=Ut.path=new WeakMap,a3=Ut.scope=new WeakMap;function o3(){Ih(),wh()}function Ih(){Ut.path=Rn=new WeakMap}function wh(){Ut.scope=a3=new WeakMap}function l3(e){let{parent:t,parentPath:r}=e;return Rn.get(t)}function u3(e,t){let r=Rn.get(e);return r||Rn.set(e,r=new Map),r}});var Nh=N((Dte,c3)=>{c3.exports=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]});var Oh=N((Lte,p3)=>{p3.exports=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"]});var du=N(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.default=void 0;var f3=Ah(),qh=mr(),Mte=vh(),d3=Ch(),Uh=ye(),Kh=Uh,_h=fi(),h3=Nh(),m3=Oh(),{assignmentExpression:y3,callExpression:kh,cloneNode:Dh,getBindingIdentifiers:Vh,identifier:hi,isArrayExpression:$h,isBinary:T3,isCallExpression:Lh,isClass:S3,isClassBody:g3,isClassDeclaration:x3,isExportAllDeclaration:Jh,isExportDefaultDeclaration:b3,isExportNamedDeclaration:cu,isFunctionDeclaration:E3,isIdentifier:di,isImportDeclaration:pu,isLiteral:P3,isMemberExpression:A3,isMethod:v3,isModuleSpecifier:C3,isNullLiteral:I3,isObjectExpression:w3,isProperty:N3,isPureish:O3,isRegExpLiteral:_3,isSuper:k3,isTaggedTemplateExpression:D3,isTemplateLiteral:Xh,isThisExpression:Mh,isUnaryExpression:L3,isVariableDeclaration:M3,expressionStatement:F3,matchesPattern:Fh,memberExpression:fu,numericLiteral:B3,toIdentifier:R3,variableDeclaration:j3,variableDeclarator:q3,isObjectProperty:U3,isTopicReference:Bh,isMetaProperty:K3,isPrivateName:V3,isExportDeclaration:$3,buildUndefinedNode:J3,sequenceExpression:X3}=Uh;function Ze(e,t){switch(e?.type){default:if(pu(e)||$3(e)){var r;if((Jh(e)||cu(e)||pu(e))&&e.source)Ze(e.source,t);else if((cu(e)||pu(e))&&(r=e.specifiers)!=null&&r.length)for(let i of e.specifiers)Ze(i,t);else(b3(e)||cu(e))&&e.declaration&&Ze(e.declaration,t)}else C3(e)?Ze(e.local,t):P3(e)&&!I3(e)&&!_3(e)&&!Xh(e)&&t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":Ze(e.object,t),Ze(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":Ze(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(let i of e.properties)Ze(i,t);break;case"SpreadElement":case"RestElement":Ze(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":Ze(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":case"ImportExpression":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),Ze(e.argument,t);break;case"AwaitExpression":t.push("await"),Ze(e.argument,t);break;case"AssignmentExpression":Ze(e.left,t);break;case"VariableDeclarator":Ze(e.id,t);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":Ze(e.id,t);break;case"PrivateName":Ze(e.id,t);break;case"ParenthesizedExpression":Ze(e.expression,t);break;case"UnaryExpression":case"UpdateExpression":Ze(e.argument,t);break;case"MetaProperty":Ze(e.meta,t),Ze(e.property,t);break;case"JSXElement":Ze(e.openingElement,t);break;case"JSXOpeningElement":Ze(e.name,t);break;case"JSXFragment":Ze(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":Ze(e.namespace,t),Ze(e.name,t);break}}function Rh(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null)}function Y3(e){return e.isFunctionExpression()&&!e.node.id||e.isArrowFunctionExpression()}var jh=Symbol.for("should not be considered a local binding"),W3={ForStatement(e){let t=e.get("init");if(t.isVar()){let{scope:r}=e;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",t)}},Declaration(e){if(e.isBlockScoped()||e.isImportDeclaration()||e.isExportDeclaration())return;(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){Kh.isTSQualifiedName(e.parent)&&e.parent.right===e.node||e.parentPath.isTSImportEqualsDeclaration()||t.references.push(e)},ForXStatement(e,t){let r=e.get("left");if(r.isPattern()||r.isIdentifier())t.constantViolations.push(e);else if(r.isVar()){let{scope:i}=e;(i.getFunctionParent()||i.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit(e){let{node:t,scope:r}=e;if(Jh(t))return;let i=t.declaration;if(x3(i)||E3(i)){let s=i.id;if(!s)return;let n=r.getBinding(s.name);n?.reference(e)}else if(M3(i))for(let s of i.declarations)for(let n of Object.keys(Vh(s))){let a=r.getBinding(n);a?.reference(e)}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){e.node.operator==="delete"&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){let s=e.node.id.name;e.scope.bindings[s]=e.scope.parent.getBinding(s)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){let t=e.get("params");for(let r of t)e.scope.registerBinding("param",r);e.isFunctionExpression()&&e.node.id&&!e.node.id[jh]&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&!e.node.id[jh]&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}},jn,H3=0,sr=class e{constructor(t){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;let{node:r}=t,i=_h.scope.get(r);if(i?.path===t)return i;_h.scope.set(r,this),this.uid=H3++,this.block=r,this.path=t,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var t;let r,i=this.path;do{var s;let n=i.key==="key"||i.listKey==="decorators";i=i.parentPath,n&&i.isMethod()&&(i=i.parentPath),(s=i)!=null&&s.isScope()&&(r=i)}while(i&&!r);return(t=r)==null?void 0:t.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(t){let r=this.generateUidIdentifier(t);return this.push({id:r}),Dh(r)}generateUidIdentifier(t){return hi(this.generateUid(t))}generateUid(t="temp"){t=R3(t).replace(/^_+/,"").replace(/\d+$/g,"");let r,i=0;do r=`_${t}`,i>=11?r+=i-1:i>=9?r+=i-9:i>=1&&(r+=i+1),i++;while(this.hasLabel(r)||this.hasBinding(r)||this.hasGlobal(r)||this.hasReference(r));let s=this.getProgramParent();return s.references[r]=!0,s.uids[r]=!0,r}generateUidBasedOnNode(t,r){let i=[];Ze(t,i);let s=i.join("$");return s=s.replace(/^_/,"")||r||"ref",this.generateUid(s.slice(0,20))}generateUidIdentifierBasedOnNode(t,r){return hi(this.generateUidBasedOnNode(t,r))}isStatic(t){if(Mh(t)||k3(t)||Bh(t))return!0;if(di(t)){let r=this.getBinding(t.name);return r?r.constant:this.hasBinding(t.name)}return!1}maybeGenerateMemoised(t,r){if(this.isStatic(t))return null;{let i=this.generateUidIdentifierBasedOnNode(t);return r?i:(this.push({id:i}),Dh(i))}}checkBlockScopedCollisions(t,r,i,s){if(r==="param"||t.kind==="local")return;if(r==="let"||t.kind==="let"||t.kind==="const"||t.kind==="module"||t.kind==="param"&&r==="const")throw this.path.hub.buildError(s,`Duplicate declaration "${i}"`,TypeError)}rename(t,r){let i=this.getBinding(t);i&&(r||(r=this.generateUidIdentifier(t).name),new f3.default(i,t,r).rename(arguments[2]))}dump(){let t="-".repeat(60);console.log(t);let r=this;do{console.log("#",r.block.type);for(let i of Object.keys(r.bindings)){let s=r.bindings[i];console.log(" -",i,{constant:s.constant,references:s.references,violations:s.constantViolations.length,kind:s.kind})}}while(r=r.parent);console.log(t)}hasLabel(t){return!!this.getLabel(t)}getLabel(t){return this.labels.get(t)}registerLabel(t){this.labels.set(t.node.label.name,t)}registerDeclaration(t){if(t.isLabeledStatement())this.registerLabel(t);else if(t.isFunctionDeclaration())this.registerBinding("hoisted",t.get("id"),t);else if(t.isVariableDeclaration()){let r=t.get("declarations"),{kind:i}=t.node;for(let s of r)this.registerBinding(i==="using"||i==="await using"?"const":i,s)}else if(t.isClassDeclaration()){if(t.node.declare)return;this.registerBinding("let",t)}else if(t.isImportDeclaration()){let r=t.node.importKind==="type"||t.node.importKind==="typeof",i=t.get("specifiers");for(let s of i){let n=r||s.isImportSpecifier()&&(s.node.importKind==="type"||s.node.importKind==="typeof");this.registerBinding(n?"unknown":"module",s)}}else if(t.isExportDeclaration()){let r=t.get("declaration");(r.isClassDeclaration()||r.isFunctionDeclaration()||r.isVariableDeclaration())&&this.registerDeclaration(r)}else this.registerBinding("unknown",t)}buildUndefinedNode(){return J3()}registerConstantViolation(t){let r=t.getAssignmentIdentifiers();for(let s of Object.keys(r)){var i;(i=this.getBinding(s))==null||i.reassign(t)}}registerBinding(t,r,i=r){if(!t)throw new ReferenceError("no `kind`");if(r.isVariableDeclaration()){let a=r.get("declarations");for(let o of a)this.registerBinding(t,o);return}let s=this.getProgramParent(),n=r.getOuterBindingIdentifiers(!0);for(let a of Object.keys(n)){s.references[a]=!0;for(let o of n[a]){let l=this.getOwnBinding(a);if(l){if(l.identifier===o)continue;this.checkBlockScopedCollisions(l,t,a,o)}l?l.reassign(i):this.bindings[a]=new d3.default({identifier:o,scope:this,path:i,kind:t})}}}addGlobal(t){this.globals[t.name]=t}hasUid(t){let r=this;do if(r.uids[t])return!0;while(r=r.parent);return!1}hasGlobal(t){let r=this;do if(r.globals[t])return!0;while(r=r.parent);return!1}hasReference(t){return!!this.getProgramParent().references[t]}isPure(t,r){if(di(t)){let a=this.getBinding(t.name);return a?r?a.constant:!0:!1}else{if(Mh(t)||K3(t)||Bh(t)||V3(t))return!0;if(S3(t)){var i;return t.superClass&&!this.isPure(t.superClass,r)||((i=t.decorators)==null?void 0:i.length)>0?!1:this.isPure(t.body,r)}else if(g3(t)){for(let a of t.body)if(!this.isPure(a,r))return!1;return!0}else{if(T3(t))return this.isPure(t.left,r)&&this.isPure(t.right,r);if($h(t)||t?.type==="TupleExpression"){for(let a of t.elements)if(a!==null&&!this.isPure(a,r))return!1;return!0}else if(w3(t)||t?.type==="RecordExpression"){for(let a of t.properties)if(!this.isPure(a,r))return!1;return!0}else if(v3(t)){var s;return!(t.computed&&!this.isPure(t.key,r)||((s=t.decorators)==null?void 0:s.length)>0)}else if(N3(t)){var n;return!(t.computed&&!this.isPure(t.key,r)||((n=t.decorators)==null?void 0:n.length)>0||(U3(t)||t.static)&&t.value!==null&&!this.isPure(t.value,r))}else{if(L3(t))return this.isPure(t.argument,r);if(Xh(t)){for(let a of t.expressions)if(!this.isPure(a,r))return!1;return!0}else return D3(t)?Fh(t.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(t.quasi,r):A3(t)?!t.computed&&di(t.object)&&t.object.name==="Symbol"&&di(t.property)&&t.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):Lh(t)?Fh(t.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&t.arguments.length===1&&Kh.isStringLiteral(t.arguments[0]):O3(t)}}}}setData(t,r){return this.data[t]=r}getData(t){let r=this;do{let i=r.data[t];if(i!=null)return i}while(r=r.parent)}removeData(t){let r=this;do r.data[t]!=null&&(r.data[t]=null);while(r=r.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){let t=this.path;Rh(this),this.data=Object.create(null);let r=this;do{if(r.crawling)return;if(r.path.isProgram())break}while(r=r.parent);let i=r,s={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,jn||(jn=qh.default.visitors.merge([{Scope(n){Rh(n.scope)}},W3])),t.type!=="Program"){let n=jn[t.type];if(n)for(let a of n.enter)a.call(s,t,s)}t.traverse(jn,s),this.crawling=!1;for(let n of s.assignments){let a=n.getAssignmentIdentifiers();for(let o of Object.keys(a))n.scope.getBinding(o)||i.addGlobal(a[o]);n.scope.registerConstantViolation(n)}for(let n of s.references){let a=n.scope.getBinding(n.node.name);a?a.reference(n):i.addGlobal(n.node)}for(let n of s.constantViolations)n.scope.registerConstantViolation(n)}push(t){let r=this.path;r.isPattern()?r=this.getPatternParent().path:!r.isBlockStatement()&&!r.isProgram()&&(r=this.getBlockParent().path),r.isSwitchStatement()&&(r=(this.getFunctionParent()||this.getProgramParent()).path);let{init:i,unique:s,kind:n="var",id:a}=t;if(!i&&!s&&(n==="var"||n==="let")&&Y3(r)&&Lh(r.parent,{callee:r.node})&&r.parent.arguments.length<=r.node.params.length&&di(a)){r.pushContainer("params",a),r.scope.registerBinding("param",r.get("params")[r.node.params.length-1]);return}(r.isLoop()||r.isCatchClause()||r.isFunction())&&(r.ensureBlock(),r=r.get("body"));let o=t._blockHoist==null?2:t._blockHoist,l=`declaration:${n}:${o}`,u=!s&&r.getData(l);if(!u){let g=j3(n,[]);g._blockHoist=o,[u]=r.unshiftContainer("body",[g]),s||r.setData(l,u)}let f=q3(a,i),h=u.node.declarations.push(f);r.scope.registerBinding(n,u.get("declarations")[h-1])}getProgramParent(){let t=this;do if(t.path.isProgram())return t;while(t=t.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let t=this;do if(t.path.isFunctionParent())return t;while(t=t.parent);return null}getBlockParent(){let t=this;do if(t.path.isBlockParent())return t;while(t=t.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let t=this;do if(!t.path.isPattern())return t.getBlockParent();while(t=t.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let t=Object.create(null),r=this;do{for(let i of Object.keys(r.bindings))i in t||(t[i]=r.bindings[i]);r=r.parent}while(r);return t}bindingIdentifierEquals(t,r){return this.getBindingIdentifier(t)===r}getBinding(t){let r=this,i;do{let n=r.getOwnBinding(t);if(n){var s;if(!((s=i)!=null&&s.isPattern()&&n.kind!=="param"&&n.kind!=="local"))return n}else if(!n&&t==="arguments"&&r.path.isFunction()&&!r.path.isArrowFunctionExpression())break;i=r.path}while(r=r.parent)}getOwnBinding(t){return this.bindings[t]}getBindingIdentifier(t){var r;return(r=this.getBinding(t))==null?void 0:r.identifier}getOwnBindingIdentifier(t){let r=this.bindings[t];return r?.identifier}hasOwnBinding(t){return!!this.getOwnBinding(t)}hasBinding(t,r){if(!t)return!1;let i,s,n;typeof r=="object"?(i=r.noGlobals,s=r.noUids,n=r.upToScope):typeof r=="boolean"&&(i=r);let a=this;do{if(n===a)break;if(a.hasOwnBinding(t))return!0}while(a=a.parent);return!!(!s&&this.hasUid(t)||!i&&e.globals.includes(t)||!i&&e.contextVariables.includes(t))}parentHasBinding(t,r){var i;return(i=this.parent)==null?void 0:i.hasBinding(t,r)}moveBindingTo(t,r){let i=this.getBinding(t);i&&(i.scope.removeOwnBinding(t),i.scope=r,r.bindings[t]=i)}removeOwnBinding(t){delete this.bindings[t]}removeBinding(t){var r;(r=this.getBinding(t))==null||r.scope.removeOwnBinding(t);let i=this;do i.uids[t]&&(i.uids[t]=!1);while(i=i.parent)}hoistVariables(t=r=>this.push({id:r})){this.crawl();let r=new Set;for(let i of Object.keys(this.bindings)){let s=this.bindings[i];if(!s)continue;let{path:n}=s;if(!n.isVariableDeclarator())continue;let{parent:a,parentPath:o}=n;if(a.kind!=="var"||r.has(a))continue;r.add(n.parent);let l,u=[];for(let f of a.declarations){l??(l=f.id),f.init&&u.push(y3("=",f.id,f.init));let h=Object.keys(Vh(f,!1,!0,!0));for(let g of h)t(hi(g),f.init!=null)}if(o.parentPath.isForXStatement({left:a}))o.replaceWith(l);else if(u.length===0)o.remove();else{let f=u.length===1?u[0]:X3(u);o.parentPath.isForStatement({init:a})?o.replaceWith(f):o.replaceWith(F3(f))}}}};qn.default=sr;sr.globals=[...h3,...m3];sr.contextVariables=["arguments","undefined","Infinity","NaN"];sr.prototype._renameFromMap=function(t,r,i,s){t[r]&&(t[i]=s,t[r]=null)};sr.prototype.traverse=function(e,t,r){(0,qh.default)(e,t,this,r,this.path)};sr.prototype._generateUid=function(t,r){let i=t;return r>1&&(i+=r),`_${i}`};sr.prototype.toArray=function(t,r,i){if(di(t)){let a=this.getBinding(t.name);if(a!=null&&a.constant&&a.path.isGenericType("Array"))return t}if($h(t))return t;if(di(t,{name:"arguments"}))return kh(fu(fu(fu(hi("Array"),hi("prototype")),hi("slice")),hi("call")),[t]);let s,n=[t];return r===!0?s="toConsumableArray":typeof r=="number"?(n.push(B3(r)),s="slicedToArray"):s="toArray",i&&(n.unshift(this.path.hub.addHelper(s)),s="maybeArrayLike"),kh(this.path.hub.addHelper(s),n)};sr.prototype.getAllBindingsOfKind=function(...t){let r=Object.create(null);for(let i of t){let s=this;do{for(let n of Object.keys(s.bindings)){let a=s.bindings[n];a.kind===i&&(r[n]=a)}s=s.parent}while(s)}return r};Object.defineProperties(sr.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var mu=N((hu,Es)=>{(function(e,t){if(typeof hu=="object"&&typeof Es<"u")t(Es),Es.exports=r(Es);else if(typeof define=="function"&&define.amd)define(["module"],function(i){t.apply(this,arguments),i.exports=r(i)});else{let i={exports:{}};t(i),e=typeof globalThis<"u"?globalThis:e||self,e.sourcemapCodec=r(i)}function r(i){return"default"in i.exports?i.exports.default:i.exports}})(hu,(function(e){"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,n=($,V)=>{for(var D in V)t($,D,{get:V[D],enumerable:!0})},a=($,V,D,Z)=>{if(V&&typeof V=="object"||typeof V=="function")for(let de of i(V))!s.call($,de)&&de!==D&&t($,de,{get:()=>V[de],enumerable:!(Z=r(V,de))||Z.enumerable});return $},o=$=>a(t({},"__esModule",{value:!0}),$),l={};n(l,{decode:()=>Mt,decodeGeneratedRanges:()=>ct,decodeOriginalScopes:()=>ke,decodeRangeMappings:()=>je,encode:()=>Et,encodeGeneratedRanges:()=>L,encodeOriginalScopes:()=>G,encodeRangeMappings:()=>ht}),e.exports=o(l);var u=44,f=59,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=new Uint8Array(64),b=new Uint8Array(128);for(let $=0;$<h.length;$++){let V=h.charCodeAt($);g[$]=V,b[V]=$}function E($){let V=0,D=0,Z=0;do{let de=$.next();Z=b[de],V|=(Z&31)<<D,D+=5}while(Z&32);return V}function w($){return $&1?-2147483648|-($>>>1):$>>>1}function A($,V){do{let D=V&31;V>>>=5,V>0&&(D|=32),$.write(g[D])}while(V>0)}function I($){return $<0?-$<<1|1:$<<1}function k($,V){return $.pos>=V?!1:$.peek()!==u}var Y=1024*16,B=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode($){return Buffer.from($.buffer,$.byteOffset,$.byteLength).toString()}}:{decode($){let V="";for(let D=0;D<$.length;D++)V+=String.fromCharCode($[D]);return V}},F=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Y)}write($){let{buffer:V}=this;V[this.pos++]=$,this.pos===Y&&(this.out+=B.decode(V),this.pos=0)}flush(){let{buffer:$,out:V,pos:D}=this;return D>0?V+B.decode($.subarray(0,D)):V}},ae=class{constructor($){this.pos=0,this.buffer=$}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf($){let{buffer:V,pos:D}=this,Z=V.indexOf($,D);return Z===-1?V.length:Z}},xe=[];function ke($){let{length:V}=$,D=new ae($),Z=[],de=[],Te=0;for(;D.pos<V;D.pos++){Te+=w(E(D));let Fe=w(E(D));if(!k(D,V)){let $e=de.pop();$e[2]=Te,$e[3]=Fe;continue}let Me=w(E(D)),Ie=w(E(D))&1?[Te,Fe,0,0,Me,w(E(D))]:[Te,Fe,0,0,Me],Ke=xe;if(k(D,V)){Ke=[];do{let $e=w(E(D));Ke.push($e)}while(k(D,V))}Ie.vars=Ke,Z.push(Ie),de.push(Ie)}return Z}function G($){let V=new F;for(let D=0;D<$.length;)D=Ye($,D,V,[0]);return V.flush()}function Ye($,V,D,Z){let de=$[V],{0:Te,1:Fe,2:Me,3:et,4:Ve,vars:Ie}=de;V>0&&D.write(u),A(D,I(Te-Z[0])),Z[0]=Te,A(D,I(Fe)),A(D,I(Ve));let Ke=de.length===6?1:0;A(D,I(Ke)),de.length===6&&A(D,I(de[5]));for(let $e of Ie)A(D,I($e));for(V++;V<$.length;){let $e=$[V],{0:be,1:Ge}=$e;if(be>Me||be===Me&&Ge>=et)break;V=Ye($,V,D,Z)}return D.write(u),A(D,I(Me-Z[0])),Z[0]=Me,A(D,I(et)),V}function ct($){let{length:V}=$,D=new ae($),Z=[],de=[],Te=0,Fe=0,Me=0,et=0,Ve=0,Ie=0,Ke=0,$e=0;do{let be=D.indexOf(";"),Ge=0;for(;D.pos<be;D.pos++){if(Ge+=w(E(D)),!k(D,be)){let Je=de.pop();Je[2]=Te,Je[3]=Ge;continue}let K=w(E(D)),U=K&1,te=K&2,ue=K&4,Ae=null,Ee=xe,ve;if(U){let Je=Fe+w(E(D));Me=w(E(D))+(Fe===Je?Me:0),Fe=Je,ve=[Te,Ge,0,0,Je,Me]}else ve=[Te,Ge,0,0];if(ve.isScope=!!ue,te){let Je=et,mt=Ve;et+=w(E(D));let er=Je===et;Ve=(er?Ve:0)+w(E(D)),Ie=(er&&mt===Ve?Ie:0)+w(E(D)),Ae=[et,Ve,Ie]}if(ve.callsite=Ae,k(D,be)){Ee=[];do{Ke=Te,$e=Ge;let Je=w(E(D)),mt;if(Je<-1){mt=[[w(E(D))]];for(let er=-1;er>Je;er--){let Pr=Ke;Ke+=w(E(D)),$e=(Ke===Pr?$e:0)+w(E(D));let Ar=w(E(D));mt.push([Ar,Ke,$e])}}else mt=[[Je]];Ee.push(mt)}while(k(D,be))}ve.bindings=Ee,Z.push(ve),de.push(ve)}Te++,D.pos=be+1}while(D.pos<V);return Z}function L($){if($.length===0)return"";let V=new F;for(let D=0;D<$.length;)D=H($,D,V,[0,0,0,0,0,0,0]);return V.flush()}function H($,V,D,Z){let de=$[V],{0:Te,1:Fe,2:Me,3:et,isScope:Ve,callsite:Ie,bindings:Ke}=de;Z[0]<Te?(me(D,Z[0],Te),Z[0]=Te,Z[1]=0):V>0&&D.write(u),A(D,I(de[1]-Z[1])),Z[1]=de[1];let $e=(de.length===6?1:0)|(Ie?2:0)|(Ve?4:0);if(A(D,I($e)),de.length===6){let{4:be,5:Ge}=de;be!==Z[2]&&(Z[3]=0),A(D,I(be-Z[2])),Z[2]=be,A(D,I(Ge-Z[3])),Z[3]=Ge}if(Ie){let{0:be,1:Ge,2:K}=de.callsite;be!==Z[4]?(Z[5]=0,Z[6]=0):Ge!==Z[5]&&(Z[6]=0),A(D,I(be-Z[4])),Z[4]=be,A(D,I(Ge-Z[5])),Z[5]=Ge,A(D,I(K-Z[6])),Z[6]=K}if(Ke)for(let be of Ke){be.length>1&&A(D,I(-be.length));let Ge=be[0][0];A(D,I(Ge));let K=Te,U=Fe;for(let te=1;te<be.length;te++){let ue=be[te];A(D,I(ue[1]-K)),K=ue[1],A(D,I(ue[2]-U)),U=ue[2],A(D,I(ue[0]))}}for(V++;V<$.length;){let be=$[V],{0:Ge,1:K}=be;if(Ge>Me||Ge===Me&&K>=et)break;V=H($,V,D,Z)}return Z[0]<Me?(me(D,Z[0],Me),Z[0]=Me,Z[1]=0):D.write(u),A(D,I(et-Z[1])),Z[1]=et,V}function me($,V,D){do $.write(f);while(++V<D)}function je($){let{length:V}=$,D=new ae($),Z=[];do{let de=D.indexOf(";"),Te=[],Fe=0;for(;D.pos<de;)Fe+=E(D),Te.push(Fe);Z.push(Te),D.pos=de+1}while(D.pos<=V);return Z}function ht($){if($.length===0)return"";let V=new F;for(let D=0;D<$.length;D++){let Z=$[D];D>0&&V.write(f);let de=0;for(let Te=0;Te<Z.length;Te++){let Fe=Z[Te];A(V,Fe-de),de=Fe}}return V.flush()}function Mt($){let{length:V}=$,D=new ae($),Z=[],de=0,Te=0,Fe=0,Me=0,et=0;do{let Ve=D.indexOf(";"),Ie=[],Ke=!0,$e=0;for(de=0;D.pos<Ve;){let be;de+=w(E(D)),de<$e&&(Ke=!1),$e=de,k(D,Ve)?(Te+=w(E(D)),Fe+=w(E(D)),Me+=w(E(D)),k(D,Ve)?(et+=w(E(D)),be=[de,Te,Fe,Me,et]):be=[de,Te,Fe,Me]):be=[de],Ie.push(be),D.pos++}Ke||We(Ie),Z.push(Ie),D.pos=Ve+1}while(D.pos<=V);return Z}function We($){$.sort(ot)}function ot($,V){return $[0]-V[0]}function Et($){let V=new F,D=0,Z=0,de=0,Te=0;for(let Fe=0;Fe<$.length;Fe++){let Me=$[Fe];if(Fe>0&&V.write(f),Me.length===0)continue;let et=0;for(let Ve=0;Ve<Me.length;Ve++){let Ie=Me[Ve];Ve>0&&V.write(u),A(V,I(Ie[0]-et)),et=Ie[0],Ie.length!==1&&(A(V,I(Ie[1]-D)),A(V,I(Ie[2]-Z)),A(V,I(Ie[3]-de)),D=Ie[1],Z=Ie[2],de=Ie[3],Ie.length!==4&&(A(V,I(Ie[4]-Te)),Te=Ie[4]))}}return V.flush()}}))});var Yh=N((yu,Tu)=>{(function(e,t){typeof yu=="object"&&typeof Tu<"u"?Tu.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.resolveURI=t())})(yu,(function(){"use strict";let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function i(A){return e.test(A)}function s(A){return A.startsWith("//")}function n(A){return A.startsWith("/")}function a(A){return A.startsWith("file:")}function o(A){return/^[.?#]/.test(A)}function l(A){let I=t.exec(A);return f(I[1],I[2]||"",I[3],I[4]||"",I[5]||"/",I[6]||"",I[7]||"")}function u(A){let I=r.exec(A),k=I[2];return f("file:","",I[1]||"","",n(k)?k:"/"+k,I[3]||"",I[4]||"")}function f(A,I,k,Y,B,F,ae){return{scheme:A,user:I,host:k,port:Y,path:B,query:F,hash:ae,type:7}}function h(A){if(s(A)){let k=l("http:"+A);return k.scheme="",k.type=6,k}if(n(A)){let k=l("http://foo.com"+A);return k.scheme="",k.host="",k.type=5,k}if(a(A))return u(A);if(i(A))return l(A);let I=l("http://foo.com/"+A);return I.scheme="",I.host="",I.type=A?A.startsWith("?")?3:A.startsWith("#")?2:4:1,I}function g(A){if(A.endsWith("/.."))return A;let I=A.lastIndexOf("/");return A.slice(0,I+1)}function b(A,I){E(I,I.type),A.path==="/"?A.path=I.path:A.path=g(I.path)+A.path}function E(A,I){let k=I<=4,Y=A.path.split("/"),B=1,F=0,ae=!1;for(let ke=1;ke<Y.length;ke++){let G=Y[ke];if(!G){ae=!0;continue}if(ae=!1,G!=="."){if(G===".."){F?(ae=!0,F--,B--):k&&(Y[B++]=G);continue}Y[B++]=G,F++}}let xe="";for(let ke=1;ke<B;ke++)xe+="/"+Y[ke];(!xe||ae&&!xe.endsWith("/.."))&&(xe+="/"),A.path=xe}function w(A,I){if(!A&&!I)return"";let k=h(A),Y=k.type;if(I&&Y!==7){let F=h(I),ae=F.type;switch(Y){case 1:k.hash=F.hash;case 2:k.query=F.query;case 3:case 4:b(k,F);case 5:k.user=F.user,k.host=F.host,k.port=F.port;case 6:k.scheme=F.scheme}ae>Y&&(Y=ae)}E(k,Y);let B=k.query+k.hash;switch(Y){case 2:case 3:return B;case 4:{let F=k.path.slice(1);return F?o(I||A)&&!o(F)?"./"+F+B:F+B:B||"."}case 5:return k.path+B;default:return k.scheme+"//"+k.user+k.host+k.port+k.path+B}}return w}))});var gu=N((Su,Ps)=>{(function(e,t){if(typeof Su=="object"&&typeof Ps<"u")t(Ps,Yh(),mu()),Ps.exports=r(Ps);else if(typeof define=="function"&&define.amd)define(["module","@jridgewell/resolve-uri","@jridgewell/sourcemap-codec"],function(i){t.apply(this,arguments),i.exports=r(i)});else{let i={exports:{}};t(i,e.resolveURI,e.sourcemapCodec),e=typeof globalThis<"u"?globalThis:e||self,e.traceMapping=r(i)}function r(i){return"default"in i.exports?i.exports.default:i.exports}})(Su,(function(e,t,r){"use strict";var i=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(_,R)=>function(){return R||(0,_[a(_)[0]])((R={exports:{}}).exports,R),R.exports},f=(_,R)=>{for(var j in R)s(_,j,{get:R[j],enumerable:!0})},h=(_,R,j,z)=>{if(R&&typeof R=="object"||typeof R=="function")for(let fe of a(R))!l.call(_,fe)&&fe!==j&&s(_,fe,{get:()=>R[fe],enumerable:!(z=n(R,fe))||z.enumerable});return _},g=(_,R,j)=>(j=_!=null?i(o(_)):{},h(R||!_||!_.__esModule?s(j,"default",{value:_,enumerable:!0}):j,_)),b=_=>h(s({},"__esModule",{value:!0}),_),E=u({"umd:@jridgewell/sourcemap-codec"(_,R){R.exports=r}}),w=u({"umd:@jridgewell/resolve-uri"(_,R){R.exports=t}}),A={};f(A,{AnyMap:()=>de,FlattenMap:()=>de,GREATEST_LOWER_BOUND:()=>$e,LEAST_UPPER_BOUND:()=>Ke,TraceMap:()=>be,allGeneratedPositionsFor:()=>Ee,decodedMap:()=>Ar,decodedMappings:()=>U,eachMapping:()=>ve,encodedMap:()=>Ci,encodedMappings:()=>K,generatedPositionFor:()=>Ae,isIgnored:()=>er,originalPositionFor:()=>ue,presortedDecodedMap:()=>Pr,sourceContentFor:()=>mt,traceSegment:()=>te}),e.exports=b(A);var I=g(E()),k=g(w());function Y(_){if(!_)return"";let R=_.lastIndexOf("/");return _.slice(0,R+1)}function B(_,R){let j=Y(_),z=R?R+"/":"";return fe=>(0,k.default)(z+(fe||""),j)}var F=0,ae=1,xe=2,ke=3,G=4,Ye=1,ct=2;function L(_,R){let j=H(_,0);if(j===_.length)return _;R||(_=_.slice());for(let z=j;z<_.length;z=H(_,z+1))_[z]=je(_[z],R);return _}function H(_,R){for(let j=R;j<_.length;j++)if(!me(_[j]))return j;return _.length}function me(_){for(let R=1;R<_.length;R++)if(_[R][F]<_[R-1][F])return!1;return!0}function je(_,R){return R||(_=_.slice()),_.sort(ht)}function ht(_,R){return _[F]-R[F]}function Mt(_,R){let j=R.map(()=>[]);for(let z=0;z<_.length;z++){let fe=_[z];for(let oe=0;oe<fe.length;oe++){let Oe=fe[oe];if(Oe.length===1)continue;let He=Oe[ae],we=Oe[xe],pt=Oe[ke],yt=j[He];(yt[we]||(yt[we]=[])).push([pt,z,Oe[F]])}}for(let z=0;z<j.length;z++){let fe=j[z];for(let oe=0;oe<fe.length;oe++){let Oe=fe[oe];Oe&&Oe.sort(ht)}}return j}var We=!1;function ot(_,R,j,z){for(;j<=z;){let fe=j+(z-j>>1),oe=_[fe][F]-R;if(oe===0)return We=!0,fe;oe<0?j=fe+1:z=fe-1}return We=!1,j-1}function Et(_,R,j){for(let z=j+1;z<_.length&&_[z][F]===R;j=z++);return j}function $(_,R,j){for(let z=j-1;z>=0&&_[z][F]===R;j=z--);return j}function V(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function D(_,R,j,z){let{lastKey:fe,lastNeedle:oe,lastIndex:Oe}=j,He=0,we=_.length-1;if(z===fe){if(R===oe)return We=Oe!==-1&&_[Oe][F]===R,Oe;R>=oe?He=Oe===-1?0:Oe:we=Oe}return j.lastKey=z,j.lastNeedle=R,j.lastIndex=ot(_,R,He,we)}function Z(_){return typeof _=="string"?JSON.parse(_):_}var de=function(_,R){let j=Z(_);if(!("sections"in j))return new be(j,R);let z=[],fe=[],oe=[],Oe=[],He=[];Te(j,R,z,fe,oe,Oe,He,0,0,1/0,1/0);let we={version:3,file:j.file,names:Oe,sources:fe,sourcesContent:oe,mappings:z,ignoreList:He};return Pr(we)};function Te(_,R,j,z,fe,oe,Oe,He,we,pt,yt){let{sections:Tt}=_;for(let qt=0;qt<Tt.length;qt++){let{map:Kt,offset:cr}=Tt[qt],pr=pt,Ir=yt;if(qt+1<Tt.length){let Ii=Tt[qt+1].offset;pr=Math.min(pt,He+Ii.line),pr===pt?Ir=Math.min(yt,we+Ii.column):pr<pt&&(Ir=we+Ii.column)}Fe(Kt,R,j,z,fe,oe,Oe,He+cr.line,we+cr.column,pr,Ir)}}function Fe(_,R,j,z,fe,oe,Oe,He,we,pt,yt){let Tt=Z(_);if("sections"in Tt)return Te(...arguments);let qt=new be(Tt,R),Kt=z.length,cr=oe.length,pr=U(qt),{resolvedSources:Ir,sourcesContent:Ii,ignoreList:Ja}=qt;if(Me(z,Ir),Me(oe,qt.names),Ii)Me(fe,Ii);else for(let Vt=0;Vt<Ir.length;Vt++)fe.push(null);if(Ja)for(let Vt=0;Vt<Ja.length;Vt++)Oe.push(Ja[Vt]+Kt);for(let Vt=0;Vt<pr.length;Vt++){let Xa=He+Vt;if(Xa>pt)return;let Jp=et(j,Xa),tg=Vt===0?we:0,Xp=pr[Vt];for(let Ya=0;Ya<Xp.length;Ya++){let ri=Xp[Ya],rn=tg+ri[F];if(Xa===pt&&rn>=yt)return;if(ri.length===1){Jp.push([rn]);continue}let Yp=Kt+ri[ae],Wp=ri[xe],Hp=ri[ke];Jp.push(ri.length===4?[rn,Yp,Wp,Hp]:[rn,Yp,Wp,Hp,cr+ri[G]])}}}function Me(_,R){for(let j=0;j<R.length;j++)_.push(R[j])}function et(_,R){for(let j=_.length;j<=R;j++)_[j]=[];return _[R]}var Ve="`line` must be greater than 0 (lines start at line 1)",Ie="`column` must be greater than or equal to 0 (columns start at column 0)",Ke=-1,$e=1,be=class{constructor(_,R){let j=typeof _=="string";if(!j&&_._decodedMemo)return _;let z=Z(_),{version:fe,file:oe,names:Oe,sourceRoot:He,sources:we,sourcesContent:pt}=z;this.version=fe,this.file=oe,this.names=Oe||[],this.sourceRoot=He,this.sources=we,this.sourcesContent=pt,this.ignoreList=z.ignoreList||z.x_google_ignoreList||void 0;let yt=B(R,He);this.resolvedSources=we.map(yt);let{mappings:Tt}=z;if(typeof Tt=="string")this._encoded=Tt,this._decoded=void 0;else if(Array.isArray(Tt))this._encoded=void 0,this._decoded=L(Tt,j);else throw z.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(z)}`);this._decodedMemo=V(),this._bySources=void 0,this._bySourceMemos=void 0}};function Ge(_){return _}function K(_){var R,j;return(j=(R=_)._encoded)!=null?j:R._encoded=(0,I.encode)(_._decoded)}function U(_){var R;return(R=_)._decoded||(R._decoded=(0,I.decode)(_._encoded))}function te(_,R,j){let z=U(_);if(R>=z.length)return null;let fe=z[R],oe=ti(fe,_._decodedMemo,R,j,$e);return oe===-1?null:fe[oe]}function ue(_,R){let{line:j,column:z,bias:fe}=R;if(j--,j<0)throw new Error(Ve);if(z<0)throw new Error(Ie);let oe=U(_);if(j>=oe.length)return Cr(null,null,null,null);let Oe=oe[j],He=ti(Oe,_._decodedMemo,j,z,fe||$e);if(He===-1)return Cr(null,null,null,null);let we=Oe[He];if(we.length===1)return Cr(null,null,null,null);let{names:pt,resolvedSources:yt}=_;return Cr(yt[we[ae]],we[xe]+1,we[ke],we.length===5?pt[we[G]]:null)}function Ae(_,R){let{source:j,line:z,column:fe,bias:oe}=R;return $p(_,j,z,fe,oe||$e,!1)}function Ee(_,R){let{source:j,line:z,column:fe,bias:oe}=R;return $p(_,j,z,fe,oe||Ke,!0)}function ve(_,R){let j=U(_),{names:z,resolvedSources:fe}=_;for(let oe=0;oe<j.length;oe++){let Oe=j[oe];for(let He=0;He<Oe.length;He++){let we=Oe[He],pt=oe+1,yt=we[0],Tt=null,qt=null,Kt=null,cr=null;we.length!==1&&(Tt=fe[we[1]],qt=we[2]+1,Kt=we[3]),we.length===5&&(cr=z[we[4]]),R({generatedLine:pt,generatedColumn:yt,source:Tt,originalLine:qt,originalColumn:Kt,name:cr})}}}function Je(_,R){let{sources:j,resolvedSources:z}=_,fe=j.indexOf(R);return fe===-1&&(fe=z.indexOf(R)),fe}function mt(_,R){let{sourcesContent:j}=_;if(j==null)return null;let z=Je(_,R);return z===-1?null:j[z]}function er(_,R){let{ignoreList:j}=_;if(j==null)return!1;let z=Je(_,R);return z===-1?!1:j.includes(z)}function Pr(_,R){let j=new be(vr(_,[]),R);return j._decoded=_.mappings,j}function Ar(_){return vr(_,U(_))}function Ci(_){return vr(_,K(_))}function vr(_,R){return{version:_.version,file:_.file,names:_.names,sourceRoot:_.sourceRoot,sources:_.sources,sourcesContent:_.sourcesContent,mappings:R,ignoreList:_.ignoreList||_.x_google_ignoreList}}function Cr(_,R,j,z){return{source:_,line:R,column:j,name:z}}function tr(_,R){return{line:_,column:R}}function ti(_,R,j,z,fe){let oe=D(_,z,R,j);return We?oe=(fe===Ke?Et:$)(_,z,oe):fe===Ke&&oe++,oe===-1||oe===_.length?-1:oe}function eg(_,R,j,z,fe){let oe=ti(_,R,j,z,$e);if(!We&&fe===Ke&&oe++,oe===-1||oe===_.length)return[];let Oe=We?z:_[oe][F];We||(oe=$(_,Oe,oe));let He=Et(_,Oe,oe),we=[];for(;oe<=He;oe++){let pt=_[oe];we.push(tr(pt[Ye]+1,pt[ct]))}return we}function $p(_,R,j,z,fe,oe){var Oe,He;if(j--,j<0)throw new Error(Ve);if(z<0)throw new Error(Ie);let{sources:we,resolvedSources:pt}=_,yt=we.indexOf(R);if(yt===-1&&(yt=pt.indexOf(R)),yt===-1)return oe?[]:tr(null,null);let Tt=(Oe=_)._bySourceMemos||(Oe._bySourceMemos=we.map(V)),Kt=((He=_)._bySources||(He._bySources=Mt(U(_),Tt)))[yt][j];if(Kt==null)return oe?[]:tr(null,null);let cr=Tt[yt];if(oe)return eg(Kt,cr,j,z,fe);let pr=ti(Kt,cr,j,z,fe);if(pr===-1)return tr(null,null);let Ir=Kt[pr];return tr(Ir[Ye]+1,Ir[ct])}}))});var Wh=N((xu,As)=>{(function(e,t){if(typeof xu=="object"&&typeof As<"u")t(As,mu(),gu()),As.exports=r(As);else if(typeof define=="function"&&define.amd)define(["module","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],function(i){t.apply(this,arguments),i.exports=r(i)});else{let i={exports:{}};t(i,e.sourcemapCodec,e.traceMapping),e=typeof globalThis<"u"?globalThis:e||self,e.genMapping=r(i)}function r(i){return"default"in i.exports?i.exports.default:i.exports}})(xu,(function(e,t,r){"use strict";var i=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(K,U)=>function(){return U||(0,K[a(K)[0]])((U={exports:{}}).exports,U),U.exports},f=(K,U)=>{for(var te in U)s(K,te,{get:U[te],enumerable:!0})},h=(K,U,te,ue)=>{if(U&&typeof U=="object"||typeof U=="function")for(let Ae of a(U))!l.call(K,Ae)&&Ae!==te&&s(K,Ae,{get:()=>U[Ae],enumerable:!(ue=n(U,Ae))||ue.enumerable});return K},g=(K,U,te)=>(te=K!=null?i(o(K)):{},h(U||!K||!K.__esModule?s(te,"default",{value:K,enumerable:!0}):te,K)),b=K=>h(s({},"__esModule",{value:!0}),K),E=u({"umd:@jridgewell/sourcemap-codec"(K,U){U.exports=t}}),w=u({"umd:@jridgewell/trace-mapping"(K,U){U.exports=r}}),A={};f(A,{GenMapping:()=>me,addMapping:()=>Mt,addSegment:()=>ht,allMappings:()=>de,fromMap:()=>Z,maybeAddMapping:()=>ot,maybeAddSegment:()=>We,setIgnore:()=>$,setSourceContent:()=>Et,toDecodedMap:()=>V,toEncodedMap:()=>D}),e.exports=b(A);var I=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function k(K){return K}function Y(K,U){return K._indexes[U]}function B(K,U){let te=Y(K,U);if(te!==void 0)return te;let{array:ue,_indexes:Ae}=K,Ee=ue.push(U);return Ae[U]=Ee-1}function F(K,U){let te=Y(K,U);if(te===void 0)return;let{array:ue,_indexes:Ae}=K;for(let Ee=te+1;Ee<ue.length;Ee++){let ve=ue[Ee];ue[Ee-1]=ve,Ae[ve]--}Ae[U]=void 0,ue.pop()}var ae=g(E()),xe=g(w()),ke=0,G=1,Ye=2,ct=3,L=4,H=-1,me=class{constructor({file:K,sourceRoot:U}={}){this._names=new I,this._sources=new I,this._sourcesContent=[],this._mappings=[],this.file=K,this.sourceRoot=U,this._ignoreList=new I}};function je(K){return K}function ht(K,U,te,ue,Ae,Ee,ve,Je){return Te(!1,K,U,te,ue,Ae,Ee,ve,Je)}function Mt(K,U){return Ge(!1,K,U)}var We=(K,U,te,ue,Ae,Ee,ve,Je)=>Te(!0,K,U,te,ue,Ae,Ee,ve,Je),ot=(K,U)=>Ge(!0,K,U);function Et(K,U,te){let{_sources:ue,_sourcesContent:Ae}=K,Ee=B(ue,U);Ae[Ee]=te}function $(K,U,te=!0){let{_sources:ue,_sourcesContent:Ae,_ignoreList:Ee}=K,ve=B(ue,U);ve===Ae.length&&(Ae[ve]=null),te?B(Ee,ve):F(Ee,ve)}function V(K){let{_mappings:U,_sources:te,_sourcesContent:ue,_names:Ae,_ignoreList:Ee}=K;return Ie(U),{version:3,file:K.file||void 0,names:Ae.array,sourceRoot:K.sourceRoot||void 0,sources:te.array,sourcesContent:ue,mappings:U,ignoreList:Ee.array}}function D(K){let U=V(K);return Object.assign({},U,{mappings:(0,ae.encode)(U.mappings)})}function Z(K){let U=new xe.TraceMap(K),te=new me({file:U.file,sourceRoot:U.sourceRoot});return Ke(te._names,U.names),Ke(te._sources,U.sources),te._sourcesContent=U.sourcesContent||U.sources.map(()=>null),te._mappings=(0,xe.decodedMappings)(U),U.ignoreList&&Ke(te._ignoreList,U.ignoreList),te}function de(K){let U=[],{_mappings:te,_sources:ue,_names:Ae}=K;for(let Ee=0;Ee<te.length;Ee++){let ve=te[Ee];for(let Je=0;Je<ve.length;Je++){let mt=ve[Je],er={line:Ee+1,column:mt[ke]},Pr,Ar,Ci;mt.length!==1&&(Pr=ue.array[mt[G]],Ar={line:mt[Ye]+1,column:mt[ct]},mt.length===5&&(Ci=Ae.array[mt[L]])),U.push({generated:er,source:Pr,original:Ar,name:Ci})}}return U}function Te(K,U,te,ue,Ae,Ee,ve,Je,mt){let{_mappings:er,_sources:Pr,_sourcesContent:Ar,_names:Ci}=U,vr=Me(er,te),Cr=et(vr,ue);if(!Ae)return K&&$e(vr,Cr)?void 0:Ve(vr,Cr,[ue]);let tr=B(Pr,Ae),ti=Je?B(Ci,Je):H;if(tr===Ar.length&&(Ar[tr]=mt??null),!(K&&be(vr,Cr,tr,Ee,ve,ti)))return Ve(vr,Cr,Je?[ue,tr,Ee,ve,ti]:[ue,tr,Ee,ve])}function Fe(K){}function Me(K,U){for(let te=K.length;te<=U;te++)K[te]=[];return K[U]}function et(K,U){let te=K.length;for(let ue=te-1;ue>=0;te=ue--){let Ae=K[ue];if(U>=Ae[ke])break}return te}function Ve(K,U,te){for(let ue=K.length;ue>U;ue--)K[ue]=K[ue-1];K[U]=te}function Ie(K){let{length:U}=K,te=U;for(let ue=te-1;ue>=0&&!(K[ue].length>0);te=ue,ue--);te<U&&(K.length=te)}function Ke(K,U){for(let te=0;te<U.length;te++)B(K,U[te])}function $e(K,U){return U===0?!0:K[U-1].length===1}function be(K,U,te,ue,Ae,Ee){if(U===0)return!1;let ve=K[U-1];return ve.length===1?!1:te===ve[G]&&ue===ve[Ye]&&Ae===ve[ct]&&Ee===(ve.length===5?ve[L]:H)}function Ge(K,U,te){let{generated:ue,source:Ae,original:Ee,name:ve,content:Je}=te;return Ae?Te(K,U,ue.line-1,ue.column,Ae,Ee.line-1,Ee.column,ve,Je):Te(K,U,ue.line-1,ue.column,null,null,null,null,null)}}))});var Hh=N(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.default=void 0;var Kr=Wh(),bu=gu(),Eu=class{constructor(t,r){var i;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;let s=this._map=new Kr.GenMapping({sourceRoot:t.sourceRoot});if(this._sourceFileName=(i=t.sourceFileName)==null?void 0:i.replace(/\\/g,"/"),this._rawMappings=void 0,t.inputSourceMap){this._inputMap=new bu.TraceMap(t.inputSourceMap);let a=this._inputMap.resolvedSources;if(a.length)for(let o=0;o<a.length;o++){var n;(0,Kr.setSourceContent)(s,a[o],(n=this._inputMap.sourcesContent)==null?void 0:n[o])}}if(typeof r=="string"&&!t.inputSourceMap)(0,Kr.setSourceContent)(s,this._sourceFileName,r);else if(typeof r=="object")for(let a of Object.keys(r))(0,Kr.setSourceContent)(s,a.replace(/\\/g,"/"),r[a])}get(){return(0,Kr.toEncodedMap)(this._map)}getDecoded(){return(0,Kr.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,Kr.allMappings)(this._map))}mark(t,r,i,s,n,a){var o;this._rawMappings=void 0;let l;if(r!=null)if(this._inputMap){if(l=(0,bu.originalPositionFor)(this._inputMap,{line:r,column:i}),l.name&&(n||s!=null&&l.column===i))s=l.name;else if(n){let u=(0,bu.originalPositionFor)(this._inputMap,n);u.name&&(s=u.name)}}else l={name:null,source:a?.replace(/\\/g,"/")||this._sourceFileName,line:r,column:i};(0,Kr.maybeAddMapping)(this._map,{name:s,generated:t,source:(o=l)==null?void 0:o.source,original:l})}};Un.default=Eu});var Gh=N(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.default=void 0;var zh=[];for(let e=0;e<32;e++)zh.push(" ".repeat(e*2));var Pu=class{constructor(t,r){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._canMarkIdName=!0,this._indentChar="",this._queuedChar=0,this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=t,this._indentChar=r}get(){let{_map:t,_last:r}=this;this._queuedChar!==32&&this._flush();let i=r===10?(this._buf+this._str).trimRight():this._buf+this._str;if(t===null)return{code:i,decodedMap:void 0,map:null,rawMappings:void 0};let s={code:i,decodedMap:t.getDecoded(),get __mergedMap(){return this.map},get map(){let n=t.get();return s.map=n,n},set map(n){Object.defineProperty(s,"map",{value:n,writable:!0})},get rawMappings(){let n=t.getRawMappings();return s.rawMappings=n,n},set rawMappings(n){Object.defineProperty(s,"rawMappings",{value:n,writable:!0})}};return s}append(t,r,i=!1){this._flush(),this._append(t,r,i)}appendChar(t){this._flush(),this._appendChar(t,1,!0)}queue(t){this._flush(),this._queuedChar=t}_flush(){let t=this._queuedChar;t!==0&&(this._appendChar(t,1,!0),this._queuedChar=0)}_appendChar(t,r,i){if(this._last=t,t===-1){let a=r>=64?this._indentChar.repeat(r):zh[r/2];this._str+=a}else this._str+=r>1?String.fromCharCode(t).repeat(r):String.fromCharCode(t);let s=t===32,n=this._position;if(t!==10){if(this._map){let a=this._sourcePosition;i&&a?(this._map.mark(n,a.line,a.column,s?void 0:a.identifierName,s?void 0:a.identifierNamePos,a.filename),!s&&this._canMarkIdName&&(a.identifierName=void 0,a.identifierNamePos=void 0)):this._map.mark(n)}n.column+=r}else n.line++,n.column=0}_append(t,r,i){let s=t.length,n=this._position,a=this._sourcePosition;this._last=-1,++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=t,this._appendCount=0):this._str+=t;let o=!i&&this._map!==null;if(!r&&!o){n.column+=s;return}let{column:l,identifierName:u,identifierNamePos:f,filename:h}=a,g=a.line;(u!=null||f!=null)&&this._canMarkIdName&&(a.identifierName=void 0,a.identifierNamePos=void 0);let b=t.indexOf(`
15
- `),E=0;for(o&&b!==0&&this._map.mark(n,g,l,u,f,h);b!==-1;)n.line++,n.column=0,E=b+1,E<s&&g!==void 0&&(g++,o&&this._map.mark(n,g,0,void 0,void 0,h)),b=t.indexOf(`
16
- `,E);n.column+=s-E}removeLastSemicolon(){this._queuedChar===59&&(this._queuedChar=0)}getLastChar(t){if(!t)return this._last;let r=this._queuedChar;return r!==0?r:this._last}getNewlineCount(){return this._queuedChar===0&&this._last===10?1:0}hasContent(){return this._last!==0}exactSource(t,r){if(!this._map){r();return}this.source("start",t);let i=t.identifierName,s=this._sourcePosition;i!=null&&(this._canMarkIdName=!1,s.identifierName=i),r(),i!=null&&(this._canMarkIdName=!0,s.identifierName=void 0,s.identifierNamePos=void 0),this.source("end",t)}source(t,r){this._map&&this._normalizePosition(t,r,0)}sourceWithOffset(t,r,i){this._map&&this._normalizePosition(t,r,i)}_normalizePosition(t,r,i){this._flush();let s=r[t];s&&(this.setSourcePosition(s.line,Math.max(s.column+i,0)),this._sourcePosition.filename=r.filename)}setSourcePosition(t,r){let i=this._sourcePosition;i.line=t,i.column=r}getCurrentColumn(){return this._position.column+(this._queuedChar?1:0)}getCurrentLine(){return this._position.line}};Kn.default=Pu});var sm=N(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.AssignmentExpression=bR;_e.BinaryExpression=hR;_e.ClassExpression=SR;_e.ArrowFunctionExpression=_e.ConditionalExpression=im;_e.DoExpression=nR;_e.FunctionExpression=gR;_e.FunctionTypeAnnotation=rR;_e.Identifier=ER;_e.LogicalExpression=mR;_e.NullableTypeAnnotation=tR;_e.ObjectExpression=sR;_e.OptionalIndexedAccessType=oR;_e.OptionalCallExpression=_e.OptionalMemberExpression=xR;_e.SequenceExpression=yR;_e.TSSatisfiesExpression=_e.TSAsExpression=lR;_e.TSConditionalType=uR;_e.TSConstructorType=_e.TSFunctionType=dR;_e.TSInferType=pR;_e.TSInstantiationExpression=fR;_e.TSIntersectionType=cR;_e.SpreadElement=_e.UnaryExpression=_e.TSTypeAssertion=rm;_e.TSTypeOperator=vu;_e.TSUnionType=tm;_e.IntersectionTypeAnnotation=_e.UnionTypeAnnotation=aR;_e.UpdateExpression=iR;_e.AwaitExpression=_e.YieldExpression=TR;var z3=ye(),Pt=Vr(),{isMemberExpression:G3,isOptionalMemberExpression:Q3,isYieldExpression:Z3,isStatement:eR}=z3,Qh=new Map([["||",0],["??",1],["&&",2],["|",3],["^",4],["&",5],["==",6],["===",6],["!=",6],["!==",6],["<",7],[">",7],["<=",7],[">=",7],["in",7],["instanceof",7],[">>",8],["<<",8],[">>>",8],["+",9],["-",9],["*",10],["/",10],["%",10],["**",11]]);function Zh(e){return e===156||e===201||e===209}var Vn=(e,t,r)=>(r===21||r===22)&&t.superClass===e,$n=(e,t,r)=>{switch(r){case 108:case 132:return t.object===e;case 17:case 130:case 112:return t.callee===e;case 222:return t.tag===e;case 191:return!0}return!1};function tR(e,t,r){return r===4}function rR(e,t,r,i){return r===239||r===90||r===4||(i&Pt.TokenContext.arrowFlowReturnType)>0}function iR(e,t,r){return $n(e,t,r)||Vn(e,t,r)}function em(e){return(e&(Pt.TokenContext.expressionStatement|Pt.TokenContext.arrowBody))>0}function sR(e,t,r,i){return em(i)}function nR(e,t,r,i){return(i&Pt.TokenContext.expressionStatement)>0&&!e.async}function Au(e,t,r,i){if(Vn(e,t,r)||$n(e,t,r)||r===238||r===145||r===8)return!0;let s;switch(r){case 10:case 107:s=Qh.get(t.operator);break;case 156:case 201:s=7}if(s!==void 0){let n=i===2?7:Qh.get(e.operator);if(s>n||s===n&&r===10&&(n===11?t.left===e:t.right===e)||i===1&&r===107&&(n===1&&s!==1||s===1&&n!==1))return!0}return!1}function aR(e,t,r){switch(r){case 4:case 115:case 90:case 239:return!0}return!1}function oR(e,t,r){return r===84&&t.objectType===e}function lR(e,t,r){return(r===6||r===7)&&t.left===e||r===10&&(t.operator==="|"||t.operator==="&")&&e===t.left?!0:Au(e,t,r,2)}function uR(e,t,r){switch(r){case 155:case 195:case 211:case 212:return!0;case 175:return t.objectType===e;case 181:case 219:return t.types[0]===e;case 161:return t.checkType===e||t.extendsType===e}return!1}function tm(e,t,r){switch(r){case 181:case 211:case 155:case 195:return!0;case 175:return t.objectType===e}return!1}function cR(e,t,r){return r===211||vu(e,t,r)}function pR(e,t,r){return!!(vu(e,t,r)||(r===181||r===219)&&e.typeParameter.constraint&&t.types[0]===e)}function vu(e,t,r){switch(r){case 155:case 195:return!0;case 175:if(t.objectType===e)return!0}return!1}function fR(e,t,r){switch(r){case 17:case 130:case 112:case 177:return t.typeParameters!=null}return!1}function dR(e,t,r){return tm(e,t,r)?!0:r===219||r===161&&(t.checkType===e||t.extendsType===e)}function hR(e,t,r,i){return Au(e,t,r,0)?!0:(i&Pt.TokenContext.forInOrInitHeadAccumulate)>0&&e.operator==="in"}function mR(e,t,r){return Au(e,t,r,1)}function yR(e,t,r){return r===144||r===133||r===108&&t.property===e||r===132&&t.property===e||r===224?!1:r===21?!0:r===68?t.right===e:r===60?!0:!eR(t)}function TR(e,t,r){return r===10||r===107||r===238||r===145||$n(e,t,r)||r===8&&Z3(e)||r===28&&e===t.test||Vn(e,t,r)||Zh(r)}function SR(e,t,r,i){return(i&(Pt.TokenContext.expressionStatement|Pt.TokenContext.exportDefault))>0}function rm(e,t,r){return $n(e,t,r)||r===10&&t.operator==="**"&&t.left===e||Vn(e,t,r)}function gR(e,t,r,i){return(i&(Pt.TokenContext.expressionStatement|Pt.TokenContext.exportDefault))>0}function im(e,t,r){switch(r){case 238:case 145:case 10:case 107:case 8:return!0;case 28:if(t.test===e)return!0}return Zh(r)?!0:rm(e,t,r)}function xR(e,t,r){switch(r){case 17:return t.callee===e;case 108:return t.object===e}return!1}function bR(e,t,r,i){return em(i)&&e.left.type==="ObjectPattern"?!0:im(e,t,r)}function ER(e,t,r,i,s){var n;if(s&&s(e)!==e.name)return!1;if(r===6&&(n=e.extra)!=null&&n.parenthesized&&t.left===e){let a=t.right.type;if((a==="FunctionExpression"||a==="ClassExpression")&&t.right.id==null)return!0}return(i&Pt.TokenContext.forOfHead||(r===108||r===132)&&i&(Pt.TokenContext.expressionStatement|Pt.TokenContext.forInitHead|Pt.TokenContext.forInHead))&&e.name==="let"?(G3(t,{object:e,computed:!0})||Q3(t,{object:e,computed:!0,optional:!1}))&&i&(Pt.TokenContext.expressionStatement|Pt.TokenContext.forInitHead|Pt.TokenContext.forInHead)?!0:(i&Pt.TokenContext.forOfHead)>0:r===68&&t.left===e&&e.name==="async"&&!t.await}});var Cu=N(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.TaggedTemplateExpression=PR;qi.TemplateElement=AR;qi.TemplateLiteral=vR;qi._printTemplate=nm;function PR(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)}function AR(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function nm(e,t){let r=e.quasis,i="`";for(let s=0;s<r.length-1;s++)if(i+=r[s].value.raw,this.token(i+"${",!0),this.print(t[s]),i="}",this.tokenMap){let n=this.tokenMap.findMatching(e,"}",s);n&&this._catchUpTo(n.loc.start)}i+=r[r.length-1].value.raw,this.token(i+"`",!0)}function vR(e){nm.call(this,e,e.expressions)}});var Jn=N(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.LogicalExpression=qe.AssignmentExpression=GR;qe.AssignmentPattern=zR;qe.AwaitExpression=XR;qe.BinaryExpression=QR;qe.BindExpression=ZR;qe.CallExpression=$R;qe.ConditionalExpression=MR;qe.Decorator=UR;qe.DoExpression=kR;qe.EmptyStatement=WR;qe.ExpressionStatement=HR;qe.Import=JR;qe.MemberExpression=ej;qe.MetaProperty=tj;qe.ModuleExpression=sj;qe.NewExpression=FR;qe.OptionalCallExpression=VR;qe.OptionalMemberExpression=KR;qe.ParenthesizedExpression=DR;qe.PrivateName=rj;qe.SequenceExpression=BR;qe.Super=jR;qe.ThisExpression=RR;qe.UnaryExpression=_R;qe.UpdateExpression=LR;qe.V8IntrinsicIdentifier=ij;qe.YieldExpression=YR;qe._shouldPrintDecoratorsBeforeExport=qR;var CR=ye(),IR=Vr(),{isCallExpression:wR,isLiteral:am,isMemberExpression:Iu,isNewExpression:NR,isPattern:OR}=CR;function _R(e){let{operator:t}=e,r=t.charCodeAt(0);r>=97&&r<=122?(this.word(t),this.space()):this.tokenChar(r),this.print(e.argument)}function kR(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)}function DR(e){this.tokenChar(40);let t=this.enterDelimited();this.print(e.expression,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function LR(e){e.prefix?(this.token(e.operator,!1,0,!0),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator,!1,0,!0))}function MR(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)}function FR(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&e.arguments.length===0&&!e.optional&&!wR(t,{callee:e})&&!Iu(t)&&!NR(t)||(this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?."),e.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(e,")")))return;this.tokenChar(40);let r=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=r,this.rightParens(e)}function BR(e){this.printList(e.expressions)}function RR(){this.word("this")}function jR(){this.word("super")}function qR(e){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof e.start=="number"&&e.start===e.declaration.start}function UR(e){this.tokenChar(64);let{expression:t}=e;this.print(t),this.newline()}function KR(e){let{computed:t}=e,{optional:r,property:i}=e;if(this.print(e.object),!t&&Iu(i))throw new TypeError("Got a MemberExpression for MemberExpression property");am(i)&&typeof i.value=="number"&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(i),this.tokenChar(93)):(r||this.tokenChar(46),this.print(i))}function VR(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?."),this.print(e.typeArguments),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,void 0,void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function $R(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function JR(){this.word("import")}function XR(e){this.word("await"),this.space(),this.print(e.argument)}function YR(e){e.delegate?(this.word("yield",!0),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",!0),this.space(),this.print(e.argument)):this.word("yield")}function WR(){this.semicolon(!0)}function HR(e){this.tokenContext|=IR.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()}function zR(e){this.print(e.left),(e.left.type==="Identifier"||OR(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)}function GR(e){this.print(e.left),this.space(),this.token(e.operator,!1,0,!0),this.space(),this.print(e.right)}function QR(e){this.print(e.left),this.space();let{operator:t}=e;t.charCodeAt(0)===105?this.word(t):(this.token(t,!1,0,!0),this.setLastChar(t.charCodeAt(t.length-1))),this.space(),this.print(e.right)}function ZR(e){this.print(e.object),this.token("::"),this.print(e.callee)}function ej(e){if(this.print(e.object),!e.computed&&Iu(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(am(e.property)&&typeof e.property.value=="number"&&(t=!0),t){let r=this.enterDelimited();this.tokenChar(91),this.print(e.property,void 0,!0),this.tokenChar(93),this._noLineTerminatorAfterNode=r}else this.tokenChar(46),this.print(e.property)}function tj(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)}function rj(e){this.tokenChar(35),this.print(e.id)}function ij(e){this.tokenChar(37),this.word(e.name)}function sj(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)}});var lm=N(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.BreakStatement=yj;lt.CatchClause=Ej;lt.ContinueStatement=Tj;lt.DebuggerStatement=vj;lt.DoWhileStatement=mj;lt.ForInStatement=dj;lt.ForOfStatement=hj;lt.ForStatement=pj;lt.IfStatement=cj;lt.LabeledStatement=xj;lt.ReturnStatement=Sj;lt.SwitchCase=Aj;lt.SwitchStatement=Pj;lt.ThrowStatement=gj;lt.TryStatement=bj;lt.VariableDeclaration=Ij;lt.VariableDeclarator=wj;lt.WhileStatement=fj;lt.WithStatement=uj;var nj=ye(),mi=Vr(),{isFor:aj,isIfStatement:oj,isStatement:lj}=nj;function uj(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e.body)}function cj(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();let t=e.alternate&&oj(om(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))}function om(e){let{body:t}=e;return lj(t)===!1?e:om(t)}function pj(e){this.word("for"),this.space(),this.tokenChar(40),this.tokenContext|=mi.TokenContext.forInitHead|mi.TokenContext.forInOrInitHeadAccumulate,this.print(e.init),this.tokenContext=mi.TokenContext.normal,this.tokenChar(59),e.test&&(this.space(),this.print(e.test)),this.tokenChar(59,1),e.update&&(this.space(),this.print(e.update)),this.tokenChar(41),this.printBlock(e.body)}function fj(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e.body)}function dj(e){this.word("for"),this.space(),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=mi.TokenContext.forInHead|mi.TokenContext.forInOrInitHeadAccumulate,this.print(e.left),this.tokenContext=mi.TokenContext.normal,this.space(),this.word("in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)}function hj(e){this.word("for"),this.space(),e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=mi.TokenContext.forOfHead,this.print(e.left),this.space(),this.word("of"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)}function mj(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()}function Xn(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}function yj(e){this.word("break"),Xn(this,e.label)}function Tj(e){this.word("continue"),Xn(this,e.label)}function Sj(e){this.word("return"),Xn(this,e.argument)}function gj(e){this.word("throw"),Xn(this,e.argument)}function xj(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)}function bj(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))}function Ej(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(e.body)}function Pj(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0),this.rightBrace(e)}function Aj(e){e.test?(this.word("case"),this.space(),this.print(e.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))}function vj(){this.word("debugger"),this.semicolon()}function Cj(e){this.tokenChar(44,e),this.newline()}function Ij(e,t){e.declare&&(this.word("declare"),this.space());let{kind:r}=e;switch(r){case"await using":this.word("await"),this.space();case"using":this.word("using",!0);break;default:this.word(r)}this.space();let i=!1;if(!aj(t)){for(let s of e.declarations)if(s.init){i=!0;break}}if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,i?Cj:void 0),t!=null)switch(t.type){case"ForStatement":if(t.init===e)return;break;case"ForInStatement":case"ForOfStatement":if(t.left===e)return}this.semicolon()}function wj(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))}});var vs=N(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.ArrowFunctionExpression=Lj;Wt.FunctionDeclaration=Wt.FunctionExpression=Dj;Wt._functionHead=pm;Wt._methodHead=kj;Wt._param=cm;Wt._parameters=um;Wt._params=Ui;Wt._predicate=wu;Wt._shouldPrintArrowParamsParens=fm;var Nj=ye(),Oj=Vr(),{isIdentifier:_j}=Nj;function Ui(e,t,r,i){if(this.print(e.typeParameters),r!==void 0||i!==void 0){let s=Mj.call(this,r,i);s&&this.sourceIdentifierName(s.name,s.pos)}this.tokenChar(40),um.call(this,e.params,41),this.print(e.returnType,t),this._noLineTerminator=t}function um(e,t){let r=this.enterDelimited(),i=this.shouldPrintTrailingComma(t),s=e.length;for(let n=0;n<s;n++)cm.call(this,e[n]),(i||n<s-1)&&(this.tokenChar(44,n),this.space());this.tokenChar(t),this._noLineTerminatorAfterNode=r}function cm(e){this.printJoin(e.decorators,void 0,void 0,void 0,void 0,!0),this.print(e,void 0,!0),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,void 0,!0)}function kj(e){let t=e.kind,r=e.key;(t==="get"||t==="set")&&(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),(t==="method"||t==="init")&&e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(r),this.tokenChar(93)):this.print(r),e.optional&&this.tokenChar(63),this._buf._map?Ui.call(this,e,!1,e.computed&&e.key.type!=="StringLiteral"?void 0:e.key):Ui.call(this,e,!1)}function wu(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t))}function pm(e,t,r){e.async&&(this.word("async"),this.format.preserveFormat||(this._innerCommentsState=0),this.space()),this.word("function"),e.generator&&(this.format.preserveFormat||(this._innerCommentsState=0),this.tokenChar(42)),this.space(),e.id&&this.print(e.id),this._buf._map?Ui.call(this,e,!1,e.id,t):Ui.call(this,e,!1),r&&wu.call(this,e)}function Dj(e,t){pm.call(this,e,t,!0),this.space(),this.print(e.body)}function Lj(e,t){e.async&&(this.word("async",!0),this.space()),fm.call(this,e)?Ui.call(this,e,!0,void 0,this._buf._map?t:void 0):this.print(e.params[0],!0),wu.call(this,e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=Oj.TokenContext.arrowBody,this.print(e.body)}function fm(e){var t,r;if(e.params.length!==1||e.typeParameters||e.returnType||e.predicate)return!0;let i=e.params[0];if(!_j(i)||i.typeAnnotation||i.optional||(t=i.leadingComments)!=null&&t.length||(r=i.trailingComments)!=null&&r.length)return!0;if(this.tokenMap){if(e.loc==null||this.tokenMap.findMatching(e,"(")!==null)return!0;let s=this.tokenMap.findMatching(e,"=>");return s?.loc==null?!0:s.loc.start.line!==e.loc.start.line}return!!this.format.retainLines}function Mj(e,t){let r=e;if(!r&&t){let l=t.type;l==="VariableDeclarator"?r=t.id:l==="AssignmentExpression"||l==="AssignmentPattern"?r=t.left:l==="ObjectProperty"||l==="ClassProperty"?(!t.computed||t.key.type==="StringLiteral")&&(r=t.key):(l==="ClassPrivateProperty"||l==="ClassAccessorProperty")&&(r=t.key)}if(!r)return;let i;if(r.type==="Identifier"){var s,n;i={pos:(s=r.loc)==null?void 0:s.start,name:((n=r.loc)==null?void 0:n.identifierName)||r.name}}else if(r.type==="PrivateName"){var a;i={pos:(a=r.loc)==null?void 0:a.start,name:"#"+r.id.name}}else if(r.type==="StringLiteral"){var o;i={pos:(o=r.loc)==null?void 0:o.start,name:r.value}}return i}});var Ou=N(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.TSAnyKeyword=zj;ee.TSArrayType=y4;ee.TSAsExpression=M4;ee.TSBigIntKeyword=Gj;ee.TSBooleanKeyword=t4;ee.TSCallSignatureDeclaration=Jj;ee.TSInterfaceHeritage=ee.TSClassImplements=_4;ee.TSConditionalType=P4;ee.TSConstructSignatureDeclaration=Xj;ee.TSConstructorType=p4;ee.TSDeclareFunction=Kj;ee.TSDeclareMethod=Vj;ee.TSEnumBody=Sm;ee.TSEnumDeclaration=j4;ee.TSEnumMember=q4;ee.TSExportAssignment=Y4;ee.TSExternalModuleReference=J4;ee.TSFunctionType=c4;ee.TSImportEqualsDeclaration=$4;ee.TSImportType=V4;ee.TSIndexSignature=Hj;ee.TSIndexedAccessType=I4;ee.TSInferType=A4;ee.TSInstantiationExpression=R4;ee.TSInterfaceBody=D4;ee.TSInterfaceDeclaration=k4;ee.TSIntersectionType=E4;ee.TSIntrinsicKeyword=l4;ee.TSLiteralType=O4;ee.TSMappedType=w4;ee.TSMethodSignature=Wj;ee.TSModuleBlock=K4;ee.TSModuleDeclaration=U4;ee.TSNamedTupleMember=x4;ee.TSNamespaceExportDeclaration=W4;ee.TSNeverKeyword=o4;ee.TSNonNullExpression=X4;ee.TSNullKeyword=a4;ee.TSNumberKeyword=Zj;ee.TSObjectKeyword=e4;ee.TSOptionalType=S4;ee.TSParameterProperty=Uj;ee.TSParenthesizedType=v4;ee.TSPropertySignature=Yj;ee.TSQualifiedName=$j;ee.TSRestType=g4;ee.TSSatisfiesExpression=F4;ee.TSStringKeyword=r4;ee.TSSymbolKeyword=i4;ee.TSTemplateLiteralType=N4;ee.TSThisType=u4;ee.TSTupleType=T4;ee.TSTypeAliasDeclaration=L4;ee.TSTypeAnnotation=Rj;ee.TSTypeAssertion=B4;ee.TSTypeLiteral=m4;ee.TSTypeOperator=C4;ee.TSTypeParameter=qj;ee.TSTypeParameterDeclaration=ee.TSTypeParameterInstantiation=jj;ee.TSTypePredicate=d4;ee.TSTypeQuery=h4;ee.TSTypeReference=f4;ee.TSUndefinedKeyword=n4;ee.TSUnionType=b4;ee.TSUnknownKeyword=Qj;ee.TSVoidKeyword=s4;ee._tsPrintClassMemberModifiers=H4;var Cs=vs(),Fj=_u(),Bj=Cu();function Rj(e,t){this.token((t.type==="TSFunctionType"||t.type==="TSConstructorType")&&t.typeAnnotation===e?"=>":":"),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)}function jj(e,t){this.tokenChar(60);let r=t.type==="ArrowFunctionExpression"&&e.params.length===1;this.tokenMap&&e.start!=null&&e.end!=null&&(r&&(r=!!this.tokenMap.find(e,i=>this.tokenMap.matchesOriginal(i,","))),r||(r=this.shouldPrintTrailingComma(">"))),this.printList(e.params,r),this.tokenChar(62)}function qj(e){e.const&&(this.word("const"),this.space()),e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))}function Uj(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),Cs._param.call(this,e.parameter)}function Kj(e,t){e.declare&&(this.word("declare"),this.space()),Cs._functionHead.call(this,e,t,!1),this.semicolon()}function Vj(e){Fj._classMethodHead.call(this,e),this.semicolon()}function $j(e){this.print(e.left),this.tokenChar(46),this.print(e.right)}function Jj(e){Nu.call(this,e),Is(this,e)}function Is(e,t){if(!e.tokenMap||!t.start||!t.end){e.semicolon();return}e.tokenMap.endMatches(t,",")?e.token(","):e.tokenMap.endMatches(t,";")&&e.semicolon()}function Xj(e){this.word("new"),this.space(),Nu.call(this,e),Is(this,e)}function Yj(e){let{readonly:t}=e;t&&(this.word("readonly"),this.space()),mm.call(this,e),this.print(e.typeAnnotation),Is(this,e)}function mm(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)}function Wj(e){let{kind:t}=e;(t==="set"||t==="get")&&(this.word(t),this.space()),mm.call(this,e),Nu.call(this,e),Is(this,e)}function Hj(e){let{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),Cs._parameters.call(this,e.parameters,93),this.print(e.typeAnnotation),Is(this,e)}function zj(){this.word("any")}function Gj(){this.word("bigint")}function Qj(){this.word("unknown")}function Zj(){this.word("number")}function e4(){this.word("object")}function t4(){this.word("boolean")}function r4(){this.word("string")}function i4(){this.word("symbol")}function s4(){this.word("void")}function n4(){this.word("undefined")}function a4(){this.word("null")}function o4(){this.word("never")}function l4(){this.word("intrinsic")}function u4(){this.word("this")}function c4(e){ym.call(this,e)}function p4(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),ym.call(this,e)}function ym(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),Cs._parameters.call(this,r,41),this.space();let i=e.typeAnnotation;this.print(i)}function f4(e){let t=e.typeParameters;this.print(e.typeName,!!t),this.print(t)}function d4(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))}function h4(e){this.word("typeof"),this.space(),this.print(e.exprName);let t=e.typeParameters;t&&this.print(t)}function m4(e){Yn(this,e,()=>this.printJoin(e.members,!0,!0,void 0,void 0,!0))}function y4(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function T4(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)}function S4(e){this.print(e.typeAnnotation),this.tokenChar(63)}function g4(e){this.token("..."),this.print(e.typeAnnotation)}function x4(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType)}function b4(e){Tm(this,e,"|")}function E4(e){Tm(this,e,"&")}function Tm(e,t,r){var i;let s=0;(i=e.tokenMap)!=null&&i.startMatches(t,r)&&(s=1,e.token(r)),e.printJoin(t.types,void 0,void 0,function(n){this.space(),this.token(r,void 0,n+s),this.space()})}function P4(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)}function A4(e){this.word("infer"),this.print(e.typeParameter)}function v4(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)}function C4(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)}function I4(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}function w4(e){let{nameType:t,optional:r,readonly:i,typeAnnotation:s}=e;this.tokenChar(123);let n=this.enterDelimited();this.space(),i&&(dm(this,i),this.word("readonly"),this.space()),this.tokenChar(91),this.word(e.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(e.typeParameter.constraint,void 0,!0),t&&(this.space(),this.word("as"),this.space(),this.print(t,void 0,!0)),this.tokenChar(93),r&&(dm(this,r),this.tokenChar(63)),s&&(this.tokenChar(58),this.space(),this.print(s,void 0,!0)),this.space(),this._noLineTerminatorAfterNode=n,this.tokenChar(125)}function dm(e,t){t!==!0&&e.token(t)}function N4(e){Bj._printTemplate.call(this,e,e.types)}function O4(e){this.print(e.literal)}function _4(e){this.print(e.expression),this.print(e.typeArguments)}function k4(e){let{declare:t,id:r,typeParameters:i,extends:s,body:n}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(r),this.print(i),s!=null&&s.length&&(this.space(),this.word("extends"),this.space(),this.printList(s)),this.space(),this.print(n)}function D4(e){Yn(this,e,()=>this.printJoin(e.body,!0,!0,void 0,void 0,!0))}function L4(e){let{declare:t,id:r,typeParameters:i,typeAnnotation:s}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(r),this.print(i),this.space(),this.tokenChar(61),this.space(),this.print(s),this.semicolon()}function M4(e){let{expression:t,typeAnnotation:r}=e;this.print(t,!0),this.space(),this.word("as"),this.space(),this.print(r)}function F4(e){let{expression:t,typeAnnotation:r}=e;this.print(t,!0),this.space(),this.word("satisfies"),this.space(),this.print(r)}function B4(e){let{typeAnnotation:t,expression:r}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(r)}function R4(e){this.print(e.expression),this.print(e.typeParameters)}function j4(e){let{declare:t,const:r,id:i}=e;t&&(this.word("declare"),this.space()),r&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(i),this.space(),Sm.call(this,e)}function Sm(e){Yn(this,e,()=>{var t;return this.printList(e.members,(t=this.shouldPrintTrailingComma("}"))!=null?t:!0,!0,!0,void 0,!0)})}function q4(e){let{id:t,initializer:r}=e;this.print(t),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r))}function U4(e){let{declare:t,id:r,kind:i}=e;if(t&&(this.word("declare"),this.space()),e.global||(this.word(i??(r.type==="Identifier"?"namespace":"module")),this.space()),this.print(r),!e.body){this.semicolon();return}let s=e.body;for(;s.type==="TSModuleDeclaration";)this.tokenChar(46),this.print(s.id),s=s.body;this.space(),this.print(s)}function K4(e){Yn(this,e,()=>this.printSequence(e.body,!0,!0))}function V4(e){let{qualifier:t,options:r}=e;this.word("import"),this.tokenChar(40),this.print(e.argument),r&&(this.tokenChar(44),this.print(r)),this.tokenChar(41),t&&(this.tokenChar(46),this.print(t));let i=e.typeParameters;i&&this.print(i)}function $4(e){let{id:t,moduleReference:r}=e;e.isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(t),this.space(),this.tokenChar(61),this.space(),this.print(r),this.semicolon()}function J4(e){this.token("require("),this.print(e.expression),this.tokenChar(41)}function X4(e){this.print(e.expression),this.tokenChar(33),this.setLastChar(33)}function Y4(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()}function W4(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()}function Nu(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),Cs._parameters.call(this,r,41);let i=e.typeAnnotation;this.print(i)}function H4(e){let t=e.type==="ClassPrivateProperty",r=e.type==="ClassAccessorProperty"||e.type==="ClassProperty";hm(this,e,[r&&e.declare&&"declare",!t&&e.accessibility]),e.static&&(this.word("static"),this.space()),hm(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(r||t)&&e.readonly&&"readonly"])}function Yn(e,t,r){e.token("{");let i=e.enterDelimited();r(),e._noLineTerminatorAfterNode=i,e.rightBrace(t)}function hm(e,t,r){var i;let s=new Set;for(let n of r)n&&s.add(n);(i=e.tokenMap)==null||i.find(t,n=>s.has(n.value)?(e.token(n.value),e.space(),s.delete(n.value),s.size===0):!1);for(let n of s)e.word(n),e.space()}});var ku=N(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.ExportAllDeclaration=u8;Ot.ExportDefaultDeclaration=p8;Ot.ExportDefaultSpecifier=a8;Ot.ExportNamedDeclaration=c8;Ot.ExportNamespaceSpecifier=l8;Ot.ExportSpecifier=o8;Ot.ImportAttribute=d8;Ot.ImportDeclaration=f8;Ot.ImportDefaultSpecifier=n8;Ot.ImportExpression=m8;Ot.ImportNamespaceSpecifier=h8;Ot.ImportSpecifier=s8;Ot._printAttributes=Wn;var z4=ye(),G4=Vr(),Q4=Jn(),{isClassDeclaration:Z4,isExportDefaultSpecifier:e8,isExportNamespaceSpecifier:t8,isImportDefaultSpecifier:r8,isImportNamespaceSpecifier:i8,isStatement:xm}=z4;function s8(e){(e.importKind==="type"||e.importKind==="typeof")&&(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))}function n8(e){this.print(e.local)}function a8(e){this.print(e.exported)}function o8(e){e.exportKind==="type"&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))}function l8(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)}var gm=!1;function Wn(e,t){var r;let{attributes:i}=e;var{assertions:s}=e;let{importAttributesKeyword:n}=this.format;i&&!n&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!gm&&(gm=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));let a=n==="assert"||!n&&s;if(this.word(a?"assert":"with"),this.space(),!a&&(n==="with-legacy"||!n&&(r=e.extra)!=null&&r.deprecatedWithLegacySyntax)){this.printList(i||s);return}let o=t?1:0;this.token("{",void 0,o),this.space(),this.printList(i||s,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,o)}function u8(e){var t,r;this.word("export"),this.space(),e.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),Wn.call(this,e,!1)):this.print(e.source),this.semicolon()}function bm(e,t){Z4(t.declaration)&&Q4._shouldPrintDecoratorsBeforeExport.call(e,t)&&e.printJoin(t.declaration.decorators)}function c8(e){if(bm(this,e),this.word("export"),this.space(),e.declaration){let i=e.declaration;this.print(i),xm(i)||this.semicolon()}else{e.exportKind==="type"&&(this.word("type"),this.space());let i=e.specifiers.slice(0),s=!1;for(;;){let a=i[0];if(e8(a)||t8(a))s=!0,this.print(i.shift()),i.length&&(this.tokenChar(44),this.space());else break}let n=!1;if((i.length||!i.length&&!s)&&(n=!0,this.tokenChar(123),i.length&&(this.space(),this.printList(i,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source){var t,r;this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),Wn.call(this,e,n)):this.print(e.source)}this.semicolon()}}function p8(e){bm(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=G4.TokenContext.exportDefault;let t=e.declaration;this.print(t),xm(t)||this.semicolon()}function f8(e){var t,r;this.word("import"),this.space();let i=e.importKind==="type"||e.importKind==="typeof";i?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());let s=e.specifiers.slice(0),n=!!s.length;for(;n;){let o=s[0];if(r8(o)||i8(o))this.print(s.shift()),s.length&&(this.tokenChar(44),this.space());else break}let a=!1;s.length?(a=!0,this.tokenChar(123),this.space(),this.printList(s,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):i&&!n&&(a=!0,this.tokenChar(123),this.tokenChar(125)),(n||i)&&(this.space(),this.word("from"),this.space()),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),Wn.call(this,e,a)):this.print(e.source),this.semicolon()}function d8(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function h8(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)}function m8(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40);let t=this.shouldPrintTrailingComma(")");this.print(e.source),e.options!=null&&(this.tokenChar(44),this.space(),this.print(e.options)),t&&this.tokenChar(44),this.rightParens(e)}});var vm=N((Gte,Am)=>{"use strict";var Em={},y8=Em.hasOwnProperty,Pm=(e,t)=>{for(let r in e)y8.call(e,r)&&t(r,e[r])},T8=(e,t)=>(t&&Pm(t,(r,i)=>{e[r]=i}),e),S8=(e,t)=>{let r=e.length,i=-1;for(;++i<r;)t(e[i])},Hn=e=>"\\u"+("0000"+e).slice(-4),ws=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},Ns=Em.toString,g8=Array.isArray,x8=e=>typeof Buffer=="function"&&Buffer.isBuffer(e),b8=e=>Ns.call(e)=="[object Object]",E8=e=>typeof e=="string"||Ns.call(e)=="[object String]",P8=e=>typeof e=="number"||Ns.call(e)=="[object Number]",Du=e=>typeof e=="bigint",A8=e=>typeof e=="function",v8=e=>Ns.call(e)=="[object Map]",C8=e=>Ns.call(e)=="[object Set]",I8={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},w8=/[\\\b\f\n\r\t]/,N8=/[0-9]/,O8=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,_8=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,k8=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,$r=(e,t)=>{let r=()=>{u=l,++t.indentLevel,l=t.indent.repeat(t.indentLevel)},i={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},s=t&&t.json;s&&(i.quotes="double",i.wrap=!0),t=T8(i,t),t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"&&(t.quotes="single");let n=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'",a=t.compact,o=t.lowercaseHex,l=t.indent.repeat(t.indentLevel),u="",f=t.__inline1__,h=t.__inline2__,g=a?"":`
17
- `,b,E=!0,w=t.numbers=="binary",A=t.numbers=="octal",I=t.numbers=="decimal",k=t.numbers=="hexadecimal";if(s&&e&&A8(e.toJSON)&&(e=e.toJSON()),!E8(e)){if(v8(e))return e.size==0?"new Map()":(a||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+$r(Array.from(e),t)+")");if(C8(e))return e.size==0?"new Set()":"new Set("+$r(Array.from(e),t)+")";if(x8(e))return e.length==0?"Buffer.from([])":"Buffer.from("+$r(Array.from(e),t)+")";if(g8(e))return b=[],t.wrap=!0,f&&(t.__inline1__=!1,t.__inline2__=!0),h||r(),S8(e,B=>{E=!1,h&&(t.__inline2__=!1),b.push((a||h?"":l)+$r(B,t))}),E?"[]":h?"["+b.join(", ")+"]":"["+g+b.join(","+g)+g+(a?"":u)+"]";if(P8(e)||Du(e)){if(s)return JSON.stringify(Number(e));let B;if(I)B=String(e);else if(k){let F=e.toString(16);o||(F=F.toUpperCase()),B="0x"+F}else w?B="0b"+e.toString(2):A&&(B="0o"+e.toString(8));return Du(e)?B+"n":B}else return Du(e)?s?JSON.stringify(Number(e)):e+"n":b8(e)?(b=[],t.wrap=!0,r(),Pm(e,(B,F)=>{E=!1,b.push((a?"":l)+$r(B,t)+":"+(a?"":" ")+$r(F,t))}),E?"{}":"{"+g+b.join(","+g)+g+(a?"":u)+"}"):s?JSON.stringify(e)||"null":String(e)}let Y=t.escapeEverything?_8:k8;return b=e.replace(Y,(B,F,ae,xe,ke,G)=>{if(F){if(t.minimal)return F;let ct=F.charCodeAt(0),L=F.charCodeAt(1);if(t.es6){let H=(ct-55296)*1024+L-56320+65536;return"\\u{"+ws(H,o)+"}"}return Hn(ws(ct,o))+Hn(ws(L,o))}if(ae)return Hn(ws(ae.charCodeAt(0),o));if(B=="\0"&&!s&&!N8.test(G.charAt(ke+1)))return"\\0";if(xe)return xe==n||t.escapeEverything?"\\"+xe:xe;if(w8.test(B))return I8[B];if(t.minimal&&!O8.test(B))return B;let Ye=ws(B.charCodeAt(0),o);return s||Ye.length>2?Hn(Ye):"\\x"+("00"+Ye).slice(-2)}),n=="`"&&(b=b.replace(/\$\{/g,"\\${")),t.isScriptContext&&(b=b.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,s?"\\u003C!--":"\\x3C!--")),t.wrap&&(b=n+b+n),b};$r.version="3.0.2";Am.exports=$r});var Gn=N(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.ArgumentPlaceholder=R8;it.ArrayPattern=it.ArrayExpression=V8;it.BigIntLiteral=H8;it.BooleanLiteral=J8;it.Identifier=B8;it.NullLiteral=X8;it.NumericLiteral=Y8;it.ObjectPattern=it.ObjectExpression=q8;it.ObjectMethod=U8;it.ObjectProperty=K8;it.PipelineBareFunction=Q8;it.PipelinePrimaryTopicReference=Z8;it.PipelineTopicExpression=G8;it.RegExpLiteral=$8;it.SpreadElement=it.RestElement=j8;it.StringLiteral=W8;it.TopicReference=z8;it.VoidPattern=e6;it._getRawIdentifier=F8;var D8=ye(),Im=vm(),L8=vs(),{isAssignmentPattern:M8,isIdentifier:Lu}=D8,zn="";function F8(e){let{name:t}=e,r=this.tokenMap.find(e,i=>i.value===t);return r?(zn=this._originalCode.slice(r.start,r.end),zn):zn=e.name}function B8(e){if(this._buf._map){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name)}this.word(this.tokenMap?zn:e.name)}function R8(){this.tokenChar(63)}function j8(e){this.token("..."),this.print(e.argument)}function q8(e){let t=e.properties;if(this.tokenChar(123),t.length){let r=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0,void 0,!0),this.space(),this._noLineTerminatorAfterNode=r}this.rightBrace(e)}function U8(e){this.printJoin(e.decorators),L8._methodHead.call(this,e),this.space(),this.print(e.body)}function K8(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(M8(e.value)&&Lu(e.key)&&e.key.name===e.value.left.name){this.print(e.value);return}if(this.print(e.key),e.shorthand&&Lu(e.key)&&Lu(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)}function V8(e){let t=e.elements,r=t.length;this.tokenChar(91);let i=this.enterDelimited();for(let s=0;s<t.length;s++){let n=t[s];n?(s>0&&this.space(),this.print(n,void 0,!0),(s<r-1||this.shouldPrintTrailingComma("]"))&&this.tokenChar(44,s)):this.tokenChar(44,s)}this._noLineTerminatorAfterNode=i,this.tokenChar(93)}function $8(e){this.word(`/${e.pattern}/${e.flags}`,!1)}function J8(e){this.word(e.value?"true":"false")}function X8(){this.word("null")}function Y8(e){let t=this.getPossibleRaw(e),r=this.format.jsescOption,i=e.value,s=i+"";r.numbers?this.number(Im(i,r),i):t==null?this.number(s,i):this.format.minified?this.number(t.length<s.length?t:s,i):this.number(t,i)}function W8(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let r=Im(e.value,this.format.jsescOption);this.token(r)}function H8(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"n")}var Cm=new Set(["^^","@@","^","%","#"]);function z8(){let{topicToken:e}=this.format;if(Cm.has(e))this.token(e);else{let t=JSON.stringify(e),r=Array.from(Cm,i=>JSON.stringify(i));throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`)}}function G8(e){this.print(e.expression)}function Q8(e){this.print(e.callee)}function Z8(){this.tokenChar(35)}function e6(){this.word("void")}});var Bu=N(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.AnyTypeAnnotation=n6;re.ArrayTypeAnnotation=a6;re.BooleanLiteralTypeAnnotation=l6;re.BooleanTypeAnnotation=o6;re.DeclareClass=c6;re.DeclareExportAllDeclaration=b6;re.DeclareExportDeclaration=x6;re.DeclareFunction=p6;re.DeclareInterface=h6;re.DeclareModule=m6;re.DeclareModuleExports=y6;re.DeclareOpaqueType=S6;re.DeclareTypeAlias=T6;re.DeclareVariable=g6;re.DeclaredPredicate=d6;re.EmptyTypeAnnotation=q6;re.EnumBooleanBody=P6;re.EnumBooleanMember=w6;re.EnumDeclaration=E6;re.EnumDefaultedMember=I6;re.EnumNumberBody=A6;re.EnumNumberMember=N6;re.EnumStringBody=v6;re.EnumStringMember=O6;re.EnumSymbolBody=C6;re.ExistsTypeAnnotation=k6;re.FunctionTypeAnnotation=D6;re.FunctionTypeParam=L6;re.IndexedAccessType=u9;re.InferredPredicate=f6;re.InterfaceDeclaration=Nm;re.GenericTypeAnnotation=re.ClassImplements=re.InterfaceExtends=M6;re.InterfaceTypeAnnotation=B6;re.IntersectionTypeAnnotation=R6;re.MixedTypeAnnotation=j6;re.NullLiteralTypeAnnotation=u6;re.NullableTypeAnnotation=U6;Object.defineProperty(re,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return wm.NumericLiteral}});re.NumberTypeAnnotation=K6;re.ObjectTypeAnnotation=z6;re.ObjectTypeCallProperty=Q6;re.ObjectTypeIndexer=Z6;re.ObjectTypeInternalSlot=G6;re.ObjectTypeProperty=e9;re.ObjectTypeSpreadProperty=t9;re.OpaqueType=_m;re.OptionalIndexedAccessType=c9;re.QualifiedTypeIdentifier=r9;Object.defineProperty(re,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return wm.StringLiteral}});re.StringTypeAnnotation=V6;re.SymbolTypeAnnotation=i9;re.ThisTypeAnnotation=$6;re.TupleTypeAnnotation=J6;re.TypeAlias=Om;re.TypeAnnotation=Y6;re.TypeCastExpression=a9;re.TypeParameter=H6;re.TypeParameterDeclaration=re.TypeParameterInstantiation=W6;re.TypeofTypeAnnotation=X6;re.UnionTypeAnnotation=n9;re.Variance=o9;re.VoidTypeAnnotation=l9;re._interfaceish=Fu;re._variance=ta;var t6=ye(),r6=ku(),i6=Vr(),wm=Gn(),{isDeclareExportDeclaration:Qn,isStatement:s6}=t6;function n6(){this.word("any")}function a6(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function o6(){this.word("boolean")}function l6(e){this.word(e.value?"true":"false")}function u6(){this.word("null")}function c6(e,t){Qn(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),Fu.call(this,e)}function p6(e,t){Qn(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate)),this.semicolon()}function f6(){this.tokenChar(37),this.word("checks")}function d6(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)}function h6(e){this.word("declare"),this.space(),Nm.call(this,e)}function m6(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)}function y6(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)}function T6(e){this.word("declare"),this.space(),Om.call(this,e)}function S6(e,t){Qn(t)||(this.word("declare"),this.space()),_m.call(this,e)}function g6(e,t){Qn(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()}function x6(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),_6.call(this,e)}function b6(e){this.word("declare"),this.space(),r6.ExportAllDeclaration.call(this,e)}function E6(e){let{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t),this.print(r)}function Zn(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function ea(e,t){let{members:r}=t;e.token("{"),e.indent(),e.newline();for(let i of r)e.print(i),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function P6(e){let{explicitType:t}=e;Zn(this,"boolean",t),ea(this,e)}function A6(e){let{explicitType:t}=e;Zn(this,"number",t),ea(this,e)}function v6(e){let{explicitType:t}=e;Zn(this,"string",t),ea(this,e)}function C6(e){Zn(this,"symbol",!0),ea(this,e)}function I6(e){let{id:t}=e;this.print(t),this.tokenChar(44)}function Mu(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function w6(e){Mu(this,e)}function N6(e){Mu(this,e)}function O6(e){Mu(this,e)}function _6(e){if(e.declaration){let t=e.declaration;this.print(t),s6(t)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source)),this.semicolon()}function k6(){this.tokenChar(42)}function D6(e,t){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest)),this.tokenChar(41);let r=t?.type;r!=null&&(r==="ObjectTypeCallProperty"||r==="ObjectTypeInternalSlot"||r==="DeclareFunction"||r==="ObjectTypeProperty"&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType)}function L6(e){this.print(e.name),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation)}function M6(e){this.print(e.id),this.print(e.typeParameters,!0)}function Fu(e){var t;if(this.print(e.id),this.print(e.typeParameters),(t=e.extends)!=null&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),e.type==="DeclareClass"){var r,i;(r=e.mixins)!=null&&r.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),(i=e.implements)!=null&&i.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements))}this.space(),this.print(e.body)}function ta(e){var t;let r=(t=e.variance)==null?void 0:t.kind;r!=null&&(r==="plus"?this.tokenChar(43):r==="minus"&&this.tokenChar(45))}function Nm(e){this.word("interface"),this.space(),Fu.call(this,e)}function F6(e){this.space(),this.token("&",!1,e),this.space()}function B6(e){var t;this.word("interface"),(t=e.extends)!=null&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),this.space(),this.print(e.body)}function R6(e){this.printJoin(e.types,void 0,void 0,F6)}function j6(){this.word("mixed")}function q6(){this.word("empty")}function U6(e){this.tokenChar(63),this.print(e.typeAnnotation)}function K6(){this.word("number")}function V6(){this.word("string")}function $6(){this.word("this")}function J6(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)}function X6(e){this.word("typeof"),this.space(),this.print(e.argument)}function Om(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()}function Y6(e,t){this.tokenChar(58),this.space(),t.type==="ArrowFunctionExpression"?this.tokenContext|=i6.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)}function W6(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)}function H6(e){ta.call(this,e),this.word(e.name),e.bound&&this.print(e.bound),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))}function _m(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype)),this.semicolon()}function z6(e){e.exact?this.token("{|"):this.tokenChar(123);let t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,!0,!0,()=>{(t.length!==1||e.inexact)&&(this.tokenChar(44),this.space())},!0),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125)}function G6(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)}function Q6(e){e.static&&(this.word("static"),this.space()),this.print(e.value)}function Z6(e){e.static&&(this.word("static"),this.space()),ta.call(this,e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space()),this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)}function e9(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),(e.kind==="get"||e.kind==="set")&&(this.word(e.kind),this.space()),ta.call(this,e),this.print(e.key),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)}function t9(e){this.token("..."),this.print(e.argument)}function r9(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)}function i9(){this.word("symbol")}function s9(e){this.space(),this.token("|",!1,e),this.space()}function n9(e){this.printJoin(e.types,void 0,void 0,s9)}function a9(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)}function o9(e){e.kind==="plus"?this.tokenChar(43):this.tokenChar(45)}function l9(){this.word("void")}function u9(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}function c9(e){this.print(e.objectType),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}});var _u=N(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.ClassAccessorProperty=x9;Ht.ClassBody=T9;Ht.ClassExpression=Ht.ClassDeclaration=y9;Ht.ClassMethod=E9;Ht.ClassPrivateMethod=P9;Ht.ClassPrivateProperty=b9;Ht.ClassProperty=g9;Ht.StaticBlock=A9;Ht._classMethodHead=Ru;var p9=ye(),f9=Jn(),ra=Ou(),km=Bu(),d9=vs(),{isExportDefaultDeclaration:h9,isExportNamedDeclaration:m9}=p9;function y9(e,t){(!(h9(t)||m9(t))||!f9._shouldPrintDecoratorsBeforeExport.call(this,t))&&this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)}function T9(e){if(this.tokenChar(123),e.body.length===0)this.tokenChar(125);else{let t=S9(this,e);t?.(-1);let r=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0,!0),this._noLineTerminatorAfterNode=r,this.endsWith(10)||this.newline(),this.rightBrace(e)}}function S9(e,t){if(!e.tokenMap||t.start==null||t.end==null)return null;let r=e.tokenMap.getIndexes(t);if(!r)return null;let i=1,s=0,n=0,a=()=>{for(;n<t.body.length&&t.body[n].start==null;)n++};return a(),o=>{n<=o&&(n=o+1,a());let l=n===t.body.length?t.end:t.body[n].start,u;for(;i<r.length&&e.tokenMap.matchesOriginal(u=e._tokens[r[i]],";")&&u.start<l;)e.tokenChar(59,s++),i++}}function g9(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){var t;let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r)}ra._tsPrintClassMemberModifiers.call(this,e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(km._variance.call(this,e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function x9(e){var t;this.printJoin(e.decorators);let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),ra._tsPrintClassMemberModifiers.call(this,e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(km._variance.call(this,e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function b9(e){this.printJoin(e.decorators),ra._tsPrintClassMemberModifiers.call(this,e),this.print(e.key),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function E9(e){Ru.call(this,e),this.space(),this.print(e.body)}function P9(e){Ru.call(this,e),this.space(),this.print(e.body)}function Ru(e){if(this.printJoin(e.decorators),!this.format.preserveFormat){var t;let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r)}ra._tsPrintClassMemberModifiers.call(this,e),d9._methodHead.call(this,e)}function A9(e){this.word("static"),this.space(),this.tokenChar(123),e.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(e.body,!0),this.rightBrace(e))}});var Dm=N(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.BlockStatement=I9;Nr.Directive=w9;Nr.DirectiveLiteral=_9;Nr.File=v9;Nr.InterpreterDirective=k9;Nr.Placeholder=D9;Nr.Program=C9;function v9(e){e.program&&this.print(e.program.interpreter),this.print(e.program)}function C9(e){var t;this.printInnerComments(!1);let r=(t=e.directives)==null?void 0:t.length;if(r){var i;let s=e.body.length?2:1;this.printSequence(e.directives,void 0,void 0,s),(i=e.directives[r-1].trailingComments)!=null&&i.length||this.newline(s)}this.printSequence(e.body)}function I9(e){var t;this.tokenChar(123);let r=this.enterDelimited(),i=(t=e.directives)==null?void 0:t.length;if(i){var s;let n=e.body.length?2:1;this.printSequence(e.directives,!0,!0,n),(s=e.directives[i-1].trailingComments)!=null&&s.length||this.newline(n)}this.printSequence(e.body,!0,!0),this._noLineTerminatorAfterNode=r,this.rightBrace(e)}function w9(e){this.print(e.value),this.semicolon()}var N9=/(?:^|[^\\])(?:\\\\)*'/,O9=/(?:^|[^\\])(?:\\\\)*"/;function _9(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let{value:r}=e;if(!O9.test(r))this.token(`"${r}"`);else if(!N9.test(r))this.token(`'${r}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function k9(e){this.token(`#!${e.value}`),this._newline()}function D9(e){this.token("%%"),this.print(e.name),this.token("%%"),e.expectedNode==="Statement"&&this.semicolon()}});var Lm=N(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.JSXAttribute=L9;At.JSXClosingElement=J9;At.JSXClosingFragment=H9;At.JSXElement=K9;At.JSXEmptyExpression=X9;At.JSXExpressionContainer=j9;At.JSXFragment=Y9;At.JSXIdentifier=M9;At.JSXMemberExpression=B9;At.JSXNamespacedName=F9;At.JSXOpeningElement=$9;At.JSXOpeningFragment=W9;At.JSXSpreadAttribute=R9;At.JSXSpreadChild=q9;At.JSXText=U9;function L9(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))}function M9(e){this.word(e.name)}function F9(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)}function B9(e){this.print(e.object),this.tokenChar(46),this.print(e.property)}function R9(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)}function j9(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)}function q9(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)}function U9(e){let t=this.getPossibleRaw(e);t!==void 0?this.token(t,!0):this.token(e.value,!0)}function K9(e){let t=e.openingElement;if(this.print(t),!t.selfClosing){this.indent();for(let r of e.children)this.print(r);this.dedent(),this.print(e.closingElement)}}function V9(){this.space()}function $9(e){this.tokenChar(60),this.print(e.name),e.typeArguments&&this.print(e.typeArguments),this.print(e.typeParameters),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,void 0,void 0,V9)),e.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)}function J9(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)}function X9(){this.printInnerComments()}function Y9(e){this.print(e.openingFragment),this.indent();for(let t of e.children)this.print(t);this.dedent(),this.print(e.closingFragment)}function W9(){this.tokenChar(60),this.tokenChar(62)}function H9(){this.token("</"),this.tokenChar(62)}});var Mm=N(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});var ju=Cu();Object.keys(ju).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===ju[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return ju[e]}})});var qu=Jn();Object.keys(qu).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===qu[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return qu[e]}})});var Uu=lm();Object.keys(Uu).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===Uu[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return Uu[e]}})});var Ku=_u();Object.keys(Ku).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===Ku[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return Ku[e]}})});var Vu=vs();Object.keys(Vu).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===Vu[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return Vu[e]}})});var $u=ku();Object.keys($u).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===$u[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return $u[e]}})});var Ju=Gn();Object.keys(Ju).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===Ju[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return Ju[e]}})});var Xu=Bu();Object.keys(Xu).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===Xu[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return Xu[e]}})});var Yu=Dm();Object.keys(Yu).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===Yu[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return Yu[e]}})});var Wu=Lm();Object.keys(Wu).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===Wu[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return Wu[e]}})});var Hu=Ou();Object.keys(Hu).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===Hu[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return Hu[e]}})})});var Fm=N(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.DecimalLiteral=Q9;yi.Noop=z9;yi.RecordExpression=Z9;yi.TSExpressionWithTypeArguments=G9;yi.TupleExpression=e5;function z9(){}function G9(e){this.print(e.expression),this.print(e.typeParameters)}function Q9(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"m")}function Z9(e){let t=e.properties,r,i;if(this.format.recordAndTupleSyntaxType==="bar")r="{|",i="|}";else{if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);r="#{",i="}"}this.token(r),t.length&&(this.space(),this.printList(t,this.shouldPrintTrailingComma(i),!0,!0),this.space()),this.token(i)}function e5(e){let t=e.elements,r=t.length,i,s;if(this.format.recordAndTupleSyntaxType==="bar")i="[|",s="|]";else if(this.format.recordAndTupleSyntaxType==="hash")i="#[",s="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(i);for(let n=0;n<t.length;n++){let a=t[n];a&&(n>0&&this.space(),this.print(a),(n<r-1||this.shouldPrintTrailingComma(s))&&this.token(",",!1,n))}this.token(s)}});var zu=N(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.generatorInfosMap=void 0;var Bm=Mm(),Rm=Fm(),jm=ia.generatorInfosMap=new Map,qm=0;for(let e of Object.keys(Bm).sort())e.startsWith("_")||jm.set(e,[Bm[e],qm++,void 0]);for(let e of Object.keys(Rm))jm.set(e,[Rm[e],qm++,void 0])});var Vr=N(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.TokenContext=void 0;Ki.isLastChild=n5;Ki.parentNeedsParens=s5;var Um=sm(),t5=ye(),Km=zu(),{VISITOR_KEYS:r5}=t5,are=Ki.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};for(let e of Object.keys(Um)){let t=Um[e];Km.generatorInfosMap.has(e)&&(Km.generatorInfosMap.get(e)[2]=t)}function i5(e){let t=e;for(;;)switch(t.type){case"CallExpression":case"ImportExpression":case"OptionalCallExpression":case"OptionalMemberExpression":return!0;case"MemberExpression":t=t.object;break;case"TaggedTemplateExpression":t=t.tag;break;case"TSNonNullExpression":t=t.expression;break;default:return!1}}function s5(e,t,r){switch(r){case 112:if(t.callee===e)return i5(e);break;case 42:return!Gu(e)&&!(e.type==="CallExpression"&&Gu(e.callee))&&e.type!=="ParenthesizedExpression"}return!1}function Gu(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&e.property.type==="Identifier"&&Gu(e.object);default:return!1}}function n5(e,t){let r=r5[e.type];for(let i=r.length-1;i>=0;i--){let s=e[r[i]];if(s===t)return!0;if(Array.isArray(s)){let n=s.length-1;for(;n>=0&&s[n]===null;)n--;return n>=0&&s[n]===t}else if(s)return!1}return!1}});var Vm=N(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.TokenMap=void 0;var a5=ye(),{traverseFast:o5,VISITOR_KEYS:l5}=a5,Qu=class{constructor(t,r,i){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=r,this._source=i,o5(t,s=>{let n=this._getTokensIndexesOfNode(s);n.length>0&&this._nodesToTokenIndexes.set(s,n)}),this._tokensCache.clear()}has(t){return this._nodesToTokenIndexes.has(t)}getIndexes(t){return this._nodesToTokenIndexes.get(t)}find(t,r){let i=this._nodesToTokenIndexes.get(t);if(i)for(let s=0;s<i.length;s++){let n=i[s],a=this._tokens[n];if(r(a,n))return a}return null}findLastIndex(t,r){let i=this._nodesToTokenIndexes.get(t);if(i)for(let s=i.length-1;s>=0;s--){let n=i[s],a=this._tokens[n];if(r(a,n))return n}return-1}findMatching(t,r,i=0){let s=this._nodesToTokenIndexes.get(t);if(s){typeof r=="number"&&(r=String.fromCharCode(r));let n=0,a=i;if(a>1){let o=this._nodesOccurrencesCountCache.get(t);o?.test===r&&o.count<a&&(n=o.i+1,i-=o.count+1)}for(;n<s.length;n++){let o=this._tokens[s[n]];if(this.matchesOriginal(o,r)){if(i===0)return a>0&&this._nodesOccurrencesCountCache.set(t,{test:r,count:a,i:n}),o;i--}}}return null}matchesOriginal(t,r){return t.end-t.start!==r.length?!1:t.value!=null?t.value===r:this._source.startsWith(r,t.start)}startMatches(t,r){let i=this._nodesToTokenIndexes.get(t);if(!i)return!1;let s=this._tokens[i[0]];return s.start!==t.start?!1:this.matchesOriginal(s,r)}endMatches(t,r){let i=this._nodesToTokenIndexes.get(t);if(!i)return!1;let s=this._tokens[i[i.length-1]];return s.end!==t.end?!1:this.matchesOriginal(s,r)}_getTokensIndexesOfNode(t){var r;if(t.start==null||t.end==null)return[];let{first:i,last:s}=this._findTokensOfNode(t,0,this._tokens.length-1),n=i,a=u5(t);(t.type==="ExportNamedDeclaration"||t.type==="ExportDefaultDeclaration")&&((r=t.declaration)==null?void 0:r.type)==="ClassDeclaration"&&a.next();let o=[];for(let l of a){if(l==null||l.start==null||l.end==null)continue;let u=this._findTokensOfNode(l,n,s),f=u.first;for(let h=n;h<f;h++)o.push(h);n=u.last+1}for(let l=n;l<=s;l++)o.push(l);return o}_findTokensOfNode(t,r,i){let s=this._tokensCache.get(t);if(s)return s;let n=this._findFirstTokenOfNode(t.start,r,i),a=this._findLastTokenOfNode(t.end,n,i);return this._tokensCache.set(t,{first:n,last:a}),{first:n,last:a}}_findFirstTokenOfNode(t,r,i){for(;r<=i;){let s=i+r>>1;if(t<this._tokens[s].start)i=s-1;else if(t>this._tokens[s].start)r=s+1;else return s}return r}_findLastTokenOfNode(t,r,i){for(;r<=i;){let s=i+r>>1;if(t<this._tokens[s].end)i=s-1;else if(t>this._tokens[s].end)r=s+1;else return s}return i}};sa.TokenMap=Qu;function*u5(e){if(e.type==="TemplateLiteral"){yield e.quasis[0];for(let r=1;r<e.quasis.length;r++)yield e.expressions[r-1],yield e.quasis[r];return}let t=l5[e.type];for(let r of t){let i=e[r];i&&(Array.isArray(i)?yield*i:yield i)}}});var Xm=N(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.default=void 0;var c5=Gh(),Jr=Vr(),p5=zu(),f5=ye(),d5=Vm(),h5=Gn(),{isExpression:m5,isFunction:y5,isStatement:T5,isClassBody:S5,isTSInterfaceBody:g5,isTSEnumMember:x5}=f5,b5=/e/i,E5=/\.0+$/,Jm=/[\n\r\u2028\u2029]/,P5=/[\n\r\u2028\u2029]|\*\//;function $m(e){return e.type==="CommentLine"||Jm.test(e.value)}var Zu=class{constructor(t,r,i=null,s=null){this.tokenContext=Jr.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._currentTypeId=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._lastCommentLine=0,this._innerCommentsState=0,this._flags=0,this.tokenMap=null,this._boundGetRawIdentifier=null,this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=t,this._tokens=i,this._originalCode=s,this._indentRepeat=t.indent.style.length,this._inputMap=r?._inputMap||null,this._buf=new c5.default(r,t.indent.style[0]);let{preserveFormat:n,compact:a,concise:o,retainLines:l,retainFunctionParens:u}=t;n&&(this._flags|=1),a&&(this._flags|=2),o&&(this._flags|=4),l&&(this._flags|=8),u&&(this._flags|=16),(t.auxiliaryCommentBefore||t.auxiliaryCommentAfter)&&(this._flags|=32)}enterDelimited(){let t=this._noLineTerminatorAfterNode;return t!==null&&(this._noLineTerminatorAfterNode=null),t}generate(t){return this.format.preserveFormat&&(this.tokenMap=new d5.TokenMap(t,this._tokens,this._originalCode),this._boundGetRawIdentifier=h5._getRawIdentifier.bind(this)),this.print(t),this._maybeAddAuxComment(),this._buf.get()}indent(t=this._flags){t&7||(this._indent+=this._indentRepeat)}dedent(t=this._flags){t&7||(this._indent-=this._indentRepeat)}semicolon(t=!1){let r=this._flags;if(r&32&&this._maybeAddAuxComment(),r&1){let i=this._currentNode;if(i.start!=null&&i.end!=null){if(!this.tokenMap.endMatches(i,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}let s=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[s[s.length-1]].loc.start)}}t?this._appendChar(59):this._queue(59),this._noLineTerminator=!1}rightBrace(t){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",t.loc,-1),this.tokenChar(125)}rightParens(t){this.sourceWithOffset("end",t.loc,-1),this.tokenChar(41)}space(t=!1){if(!(this._flags&3))if(t)this._space();else{let r=this.getLastChar(!0);r!==0&&r!==32&&r!==10&&this._space()}}word(t,r=!1){this.tokenContext&=Jr.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(t);let i=this._flags;i&32&&this._maybeAddAuxComment(),i&1&&this._catchUpToCurrentToken(t);let s=this.getLastChar();(s===-2||s===-3||s===47&&t.charCodeAt(0)===47)&&this._space(),this._append(t,!1),this.setLastChar(-3),this._noLineTerminator=r}number(t,r){function i(s){if(s.length>2&&s.charCodeAt(0)===48){let n=s.charCodeAt(1);return n===98||n===111||n===120}return!1}this.word(t),Number.isInteger(r)&&!i(t)&&!b5.test(t)&&!E5.test(t)&&t.charCodeAt(t.length-1)!==46&&this.setLastChar(-2)}token(t,r=!1,i=0,s=!1){this.tokenContext&=Jr.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(t,i);let n=this._flags;if(n&32&&this._maybeAddAuxComment(),n&1&&this._catchUpToCurrentToken(t,i),s){let a=t.charCodeAt(0);((a===45&&t==="--"||a===61)&&this.getLastChar()===33||a===43&&this.getLastChar()===43||a===45&&this.getLastChar()===45||a===46&&this.getLastChar()===-2)&&this._space()}this._append(t,r),this._noLineTerminator=!1}tokenChar(t,r=0){this.tokenContext&=Jr.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(t,r);let i=this._flags;i&32&&this._maybeAddAuxComment(),i&1&&this._catchUpToCurrentToken(t,r),(t===43&&this.getLastChar()===43||t===45&&this.getLastChar()===45||t===46&&this.getLastChar()===-2)&&this._space(),this._appendChar(t),this._noLineTerminator=!1}newline(t=1,r=this._flags){if(!(t<=0)&&!(r&10)){if(r&4){this.space();return}t>2&&(t=2),t-=this._buf.getNewlineCount();for(let i=0;i<t;i++)this._newline()}}endsWith(t){return this.getLastChar(!0)===t}getLastChar(t){return this._buf.getLastChar(t)}setLastChar(t){this._buf._last=t}exactSource(t,r){if(!t){r();return}this._catchUp("start",t),this._buf.exactSource(t,r)}source(t,r){r&&(this._catchUp(t,r),this._buf.source(t,r))}sourceWithOffset(t,r,i){!r||this.format.preserveFormat||(this._catchUp(t,r),this._buf.sourceWithOffset(t,r,i))}sourceIdentifierName(t,r){if(!this._buf._canMarkIdName)return;let i=this._buf._sourcePosition;i.identifierNamePos=r,i.identifierName=t}_space(){this._queue(32)}_newline(){this._buf._queuedChar===32&&(this._buf._queuedChar=0),this._appendChar(10,!0)}_catchUpToCurrentToken(t,r=0){let i=this.tokenMap.findMatching(this._currentNode,t,r);i&&this._catchUpTo(i.loc.start),this._printSemicolonBeforeNextToken!==-1&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&this._appendChar(59,!0),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(t,r){this._maybeIndent(),this._buf.append(t,r)}_appendChar(t,r){r||this._maybeIndent(),this._buf.appendChar(t)}_queue(t){this._buf.queue(t),this.setLastChar(-1)}_maybeIndent(){let t=this._shouldIndent();t>0&&this._buf._appendChar(-1,t,!1)}_shouldIndent(){return this.endsWith(10)?this._indent:0}catchUp(t){if(!this.format.retainLines)return;let r=t-this._buf.getCurrentLine();for(let i=0;i<r;i++)this._newline()}_catchUp(t,r){let i=this._flags;if((i&1)===0){i&8&&r!=null&&r[t]&&this.catchUp(r[t].line);return}let s=r?.[t];s!=null&&this._catchUpTo(s)}_catchUpTo({line:t,column:r,index:i}){let s=t-this._buf.getCurrentLine();if(s>0&&this._noLineTerminator)return;for(let a=0;a<s;a++)this._newline();let n=s>0?r:r-this._buf.getCurrentColumn();if(n>0){let a=this._originalCode?this._originalCode.slice(i-n,i).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(n);this._buf.append(a,!1,!0),this._buf.setSourcePosition(t,r),this.setLastChar(32)}}printTerminatorless(t){this._noLineTerminator=!0,this.print(t)}print(t,r=!1,i=!1,s){var n,a;if(!t)return;this._innerCommentsState=0;let{type:o,loc:l,extra:u}=t,f=this._flags,h=!1;t._compact&&(this._flags|=4,h=!0);let g=p5.generatorInfosMap.get(o);if(g===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(o)} with constructor ${JSON.stringify(t.constructor.name)}`);let[b,E,w]=g,A=this._currentNode,I=this._currentTypeId;this._currentNode=t,this._currentTypeId=E,f&1&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);let k;f&32&&(k=this._insideAux,this._insideAux=l==null,this._maybeAddAuxComment(this._insideAux&&!k));let Y=0;i&&(Y=this.tokenContext,Y&Jr.TokenContext.forInOrInitHeadAccumulate?this.tokenContext=0:Y=0);let B=u!=null&&u.parenthesized,F=B&&f&1||B&&f&16&&E===71||A&&((0,Jr.parentNeedsParens)(t,A,I)||w!=null&&w(t,A,I,this.tokenContext,f&1?this._boundGetRawIdentifier:void 0));if(!F&&B&&(n=t.leadingComments)!=null&&n.length&&t.leadingComments[0].type==="CommentBlock")switch(I){case 65:case 243:case 6:case 143:break;case 17:case 130:case 112:if(A.callee!==t)break;default:F=!0}let ae=!1;!F&&this._noLineTerminator&&((a=t.leadingComments)!=null&&a.some($m)||f&8&&l&&l.start.line>this._buf.getCurrentLine())&&(F=!0,ae=!0);let xe;if(!F&&(r||(r=!!A&&this._noLineTerminatorAfterNode===A&&(0,Jr.isLastChild)(A,t)),r)){var ke;(ke=t.trailingComments)!=null&&ke.some($m)?m5(t)&&(F=!0):(xe=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=t)}F&&(this.tokenChar(40),ae&&this.indent(),this._innerCommentsState=0,i||(Y=this.tokenContext),Y&Jr.TokenContext.forInOrInitHeadAccumulate&&(this.tokenContext=0),xe=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._printLeadingComments(t,A),this.exactSource(E===139||E===66?null:l,b.bind(this,t,A)),F?(this._printTrailingComments(t,A),ae&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=r):r&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(t,A)):this._printTrailingComments(t,A,s),Y&&(this.tokenContext=Y),this._currentNode=A,this._currentTypeId=I,h&&(this._flags=f),f&32&&(this._insideAux=k),xe!=null&&(this._noLineTerminatorAfterNode=xe),this._innerCommentsState=0}_maybeAddAuxComment(t){t&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let t=this.format.auxiliaryCommentBefore;t&&this._printComment({type:"CommentBlock",value:t},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let t=this.format.auxiliaryCommentAfter;t&&this._printComment({type:"CommentBlock",value:t},0)}getPossibleRaw(t){let r=t.extra;if(r?.raw!=null&&r.rawValue!=null&&t.value===r.rawValue)return r.raw}printJoin(t,r,i,s,n,a,o){if(!(t!=null&&t.length))return;let l=this._flags;if(i==null&&l&8){var u;let g=(u=t[0].loc)==null?void 0:u.start.line;g!=null&&g!==this._buf.getCurrentLine()&&(i=!0)}i&&this.indent(l);let f=t.length;for(let g=0;g<f;g++){let b=t[g];if(b&&(r&&g===0&&this._buf.hasContent()&&this.newline(1,l),this.print(b,!1,a,o||0),s!=null&&(g<f-1?s.call(this,g,!1):n&&s.call(this,g,!0)),r))if(g+1===f)this.newline(1,l);else{let E=this._lastCommentLine;if(E>0){var h;let w=(((h=t[g+1].loc)==null?void 0:h.start.line)||0)-E;if(w>=0){this.newline(w||1,l);continue}}this.newline(1,l)}}i&&this.dedent(l)}printAndIndentOnComments(t){let r=t.leadingComments&&t.leadingComments.length>0;r&&this.indent(),this.print(t),r&&this.dedent()}printBlock(t){t.type!=="EmptyStatement"&&this.space(),this.print(t)}_printTrailingComments(t,r,i){let{innerComments:s,trailingComments:n}=t;s!=null&&s.length&&this._printComments(2,s,t,r,i),n!=null&&n.length?this._printComments(2,n,t,r,i):this._lastCommentLine=0}_printLeadingComments(t,r){let i=t.leadingComments;i!=null&&i.length&&this._printComments(0,i,t,r)}_maybePrintInnerComments(t,r){var i;let s=this._innerCommentsState;switch(s&3){case 0:this._innerCommentsState=5;return;case 1:this.printInnerComments((s&4)>0,(i=this.tokenMap)==null?void 0:i.findMatching(this._currentNode,t,r))}}printInnerComments(t=!0,r){let i=this._currentNode,s=i.innerComments;if(!(s!=null&&s.length)){this._innerCommentsState=2;return}let n=this.endsWith(32);switch(t&&this.indent(),this._printComments(1,s,i,void 0,void 0,r)){case 2:this._innerCommentsState=2;case 1:n&&this.space()}t&&this.dedent()}noIndentInnerCommentsHere(){this._innerCommentsState&=-5}printSequence(t,r,i,s){this.printJoin(t,!0,r??!1,void 0,void 0,i,s)}printList(t,r,i,s,n,a){this.printJoin(t,i,s,n??A5,r,a)}shouldPrintTrailingComma(t){if(!this.tokenMap)return null;let r=this.tokenMap.findLastIndex(this._currentNode,i=>this.tokenMap.matchesOriginal(i,typeof t=="number"?String.fromCharCode(t):t));return r<=0?null:this.tokenMap.matchesOriginal(this._tokens[r-1],",")}_shouldPrintComment(t,r){if(t.ignore||this._printedComments.has(t))return 0;if(this._noLineTerminator&&P5.test(t.value))return 2;if(r&&this.tokenMap){let i=this.tokenMap.find(this._currentNode,s=>s.value===t.value);if(i&&i.start>r.start)return 2}return this._printedComments.add(t),this.format.shouldPrintComment(t.value)?1:0}_printComment(t,r){let i=this._noLineTerminator,s=t.type==="CommentBlock",n=s&&r!==1&&!i;switch(n&&this._buf.hasContent()&&r!==2&&this.newline(1),this.getLastChar(!0)){case 47:this._space();case 91:case 123:case 40:break;default:this.space()}let a;if(s){if(a=`/*${t.value}*/`,this.format.indent.adjustMultilineComment){var o;let l=(o=t.loc)==null?void 0:o.start.column;if(l){let u=new RegExp("\\n\\s{1,"+l+"}","g");a=a.replace(u,`
12
+ `)}`)}return r.shapeOf=e,r}function Sv(){function e(t){var r;let i=t;for(;t;){let{type:s}=i;if(s==="OptionalCallExpression"){if(i.optional)return;i=i.callee;continue}if(s==="OptionalMemberExpression"){if(i.optional)return;i=i.object;continue}break}throw new TypeError(`Non-optional ${t.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(r=i)==null?void 0:r.type}`)}return e}function Ff(...e){function t(...r){for(let i of e)i(...r)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&e[0].type==="array"&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}var xv=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),bv=new Set(["default","optional","deprecated","validate"]),bo={};function Ev(...e){return(t,r={})=>{let i=r.aliases;if(!i){var s;r.inherits&&(i=(s=bo[r.inherits].aliases)==null?void 0:s.slice()),i??(i=[]),r.aliases=i}let n=e.filter(a=>!i.includes(a));i.unshift(...n),Rf(t,r)}}function Rf(e,t={}){let r=t.inherits&&bo[t.inherits]||{},i=t.fields;if(!i&&(i={},r.fields)){let o=Object.getOwnPropertyNames(r.fields);for(let l of o){let u=r.fields[l],f=u.default;if(Array.isArray(f)?f.length>0:f&&typeof f=="object")throw new Error("field defaults can only be primitives or empty arrays currently");i[l]={default:Array.isArray(f)?[]:f,optional:u.optional,deprecated:u.deprecated,validate:u.validate}}}let s=t.visitor||r.visitor||[],n=t.aliases||r.aliases||[],a=t.builder||r.builder||t.visitor||[];for(let o of Object.keys(t))if(!xv.has(o))throw new Error(`Unknown type option "${o}" on ${e}`);t.deprecatedAlias&&(lv[t.deprecatedAlias]=e);for(let o of s.concat(a))i[o]=i[o]||{};for(let o of Object.keys(i)){let l=i[o];l.default!==void 0&&!a.includes(o)&&(l.optional=!0),l.default===void 0?l.default=null:!l.validate&&l.default!=null&&(l.validate=Po(dn(l.default)));for(let u of Object.keys(l))if(!bv.has(u))throw new Error(`Unknown field key "${u}" on ${e}.${o}`)}sv[e]=t.visitor=s,ov[e]=t.builder=a,av[e]=t.fields=i,nv[e]=t.aliases=n,n.forEach(o=>{xo[o]=xo[o]||[],xo[o].push(e)}),t.validate&&(uv[e]=t.validate),t.unionShape&&(cv[e]=t.unionShape),bo[e]=t}});var ds=N(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.patternLikeCommon=bt.importAttributes=bt.functionTypeAnnotationCommon=bt.functionDeclarationCommon=bt.functionCommon=bt.classMethodOrPropertyUnionShapeCommon=bt.classMethodOrPropertyCommon=bt.classMethodOrDeclareMethodCommon=void 0;var It=Di(),Pv=Li(),jf=us(),Av=_f(),Bi=Mi(),S=dr(),fs=(e=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,S.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:e?(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});bt.classMethodOrPropertyUnionShapeCommon=fs;var Y=(0,S.defineAliasedType)("Standardized");Y("ArrayExpression",{fields:{elements:{validate:(0,S.arrayOf)((0,S.assertNodeOrValueType)("null","Expression","SpreadElement")),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]});Y("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign((function(){let e=(0,S.assertOneOf)(...Bi.ASSIGNMENT_OPERATORS),t=(0,S.assertOneOf)("=");return function(r,i,s){((0,It.default)("Pattern",r.left)?t:e)(r,i,s)}})(),{oneOf:Bi.ASSIGNMENT_OPERATORS}):(0,S.assertValueType)("string")},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,S.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,S.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});Y("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,S.assertOneOf)(...Bi.BINARY_OPERATORS)},left:{validate:(function(){let e=(0,S.assertNodeType)("Expression"),t=(0,S.assertNodeType)("Expression","PrivateName");return Object.assign(function(i,s,n){(i.operator==="in"?t:e)(i,s,n)},{oneOfNodeTypes:["Expression","PrivateName"]})})()},right:{validate:(0,S.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});Y("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("string")}}});Y("Directive",{visitor:["value"],fields:{value:{validate:(0,S.assertNodeType)("DirectiveLiteral")}}});Y("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("string")}}});Y("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,S.arrayOfType)("Directive"),default:[]},body:(0,S.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});Y("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,S.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});Y("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,S.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,S.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,S.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,S.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,S.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});Y("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,S.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});Y("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,S.assertNodeType)("Expression")},consequent:{validate:(0,S.assertNodeType)("Expression")},alternate:{validate:(0,S.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});Y("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,S.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});Y("DebuggerStatement",{aliases:["Statement"]});Y("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});Y("EmptyStatement",{aliases:["Statement"]});Y("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,S.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});Y("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,S.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertEach)((0,S.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,S.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});Y("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,S.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")}}});Y("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,S.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,S.assertNodeType)("Expression"),optional:!0},update:{validate:(0,S.assertNodeType)("Expression"),optional:!0},body:{validate:(0,S.assertNodeType)("Statement")}}});var Fi=()=>({params:(0,S.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});bt.functionCommon=Fi;var oi=()=>({returnType:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,S.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});bt.functionTypeAnnotationCommon=oi;var qf=()=>Object.assign({},Fi(),{declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},id:{validate:(0,S.assertNodeType)("Identifier"),optional:!0}});bt.functionDeclarationCommon=qf;Y("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},qf(),oi(),{body:{validate:(0,S.assertNodeType)("BlockStatement")},predicate:{validate:(0,S.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:process.env.BABEL_TYPES_8_BREAKING?(function(){let e=(0,S.assertNodeType)("Identifier");return function(t,r,i){(0,It.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}})():void 0});Y("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Fi(),oi(),{id:{validate:(0,S.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,S.assertNodeType)("BlockStatement")},predicate:{validate:(0,S.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var Ri=()=>({typeAnnotation:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,S.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0}});bt.patternLikeCommon=Ri;Y("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},Ri(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("string"),Object.assign(function(e,t,r){if(!(0,Pv.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)},{type:"string"})):(0,S.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t,r){let i=/\.(\w+)$/.exec(t.toString());if(!i)return;let[,s]=i,n={computed:!1};if(s==="property"){if((0,It.default)("MemberExpression",e,n)||(0,It.default)("OptionalMemberExpression",e,n))return}else if(s==="key"){if((0,It.default)("Property",e,n)||(0,It.default)("Method",e,n))return}else if(s==="exported"){if((0,It.default)("ExportSpecifier",e))return}else if(s==="imported"){if((0,It.default)("ImportSpecifier",e,{imported:r}))return}else if(s==="meta"&&(0,It.default)("MetaProperty",e,{meta:r}))return;if(((0,jf.isKeyword)(r.name)||(0,jf.isReservedWord)(r.name,!1))&&r.name!=="this")throw new TypeError(`"${r.name}" is not a valid identifier`)}:void 0});Y("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,S.assertNodeType)("Expression")},consequent:{validate:(0,S.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,S.assertNodeType)("Statement")}}});Y("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,S.assertNodeType)("Identifier")},body:{validate:(0,S.assertNodeType)("Statement")}}});Y("StringLiteral",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});Y("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,S.chain)((0,S.assertValueType)("number"),Object.assign(function(e,t,r){if(1/r<0||!Number.isFinite(r)){let i=new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});Y("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});Y("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});Y("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,S.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("string"),Object.assign(function(e,t,r){let i=/[^dgimsuvy]/.exec(r);if(i)throw new TypeError(`"${i[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,S.assertValueType)("string"),default:""}}});Y("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,S.assertOneOf)(...Bi.LOGICAL_OPERATORS)},left:{validate:(0,S.assertNodeType)("Expression")},right:{validate:(0,S.assertNodeType)("Expression")}}});Y("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:(0,S.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,S.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,S.assertNodeType)("Expression","Super")},property:{validate:(function(){let e=(0,S.assertNodeType)("Identifier","PrivateName"),t=(0,S.assertNodeType)("Expression"),r=function(i,s,n){(i.computed?t:e)(i,s,n)};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r})()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,S.assertValueType)("boolean"),optional:!0}})});Y("NewExpression",{inherits:"CallExpression",fields:{callee:{validate:(0,S.assertNodeType)("Expression")},arguments:(0,S.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,S.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});Y("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,S.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,S.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,S.arrayOfType)("Directive"),default:[]},body:(0,S.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]});Y("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,S.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}});Y("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},fs(),{fields:Object.assign({},Fi(),oi(),{kind:Object.assign({validate:(0,S.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:(function(){let e=(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,S.assertNodeType)("Expression"),r=function(i,s,n){(i.computed?t:e)(i,s,n)};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r})()},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,S.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}));Y("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,S.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:(function(){let e=(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,S.assertNodeType)("Expression");return Object.assign(function(i,s,n){(i.computed?t:e)(i,s,n)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})})()},value:{validate:(0,S.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r){if(e.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,It.default)("Identifier",e.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0,S.assertValueType)("boolean"),default:!1},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:process.env.BABEL_TYPES_8_BREAKING?(function(){let e=(0,S.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=(0,S.assertNodeType)("Expression");return function(r,i,s){((0,It.default)("ObjectPattern",r)?e:t)(s,"value",s.value)}})():void 0});Y("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},Ri(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t){let r=/(\w+)\[(\d+)\]/.exec(t.toString());if(!r)throw new Error("Internal Babel error: malformed key.");let[,i,s]=r;if(e[i].length>+s+1)throw new TypeError(`RestElement must be last element of ${i}`)}:void 0});Y("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,S.assertNodeType)("Expression"),optional:!0}}});Y("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,S.validateArrayOfType)("Expression")},aliases:["Expression"]});Y("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,S.assertNodeType)("Expression")}}});Y("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,S.assertNodeType)("Expression"),optional:!0},consequent:(0,S.validateArrayOfType)("Statement")}});Y("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,S.assertNodeType)("Expression")},cases:(0,S.validateArrayOfType)("SwitchCase")}});Y("ThisExpression",{aliases:["Expression"]});Y("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,S.assertNodeType)("Expression")}}});Y("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertNodeType)("BlockStatement"),Object.assign(function(e){if(!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,S.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,S.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,S.assertNodeType)("BlockStatement")}}});Y("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,S.assertNodeType)("Expression")},operator:{validate:(0,S.assertOneOf)(...Bi.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});Y("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("Identifier","MemberExpression"):(0,S.assertNodeType)("Expression")},operator:{validate:(0,S.assertOneOf)(...Bi.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});Y("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},kind:{validate:(0,S.assertOneOf)("var","let","const","using","await using")},declarations:(0,S.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{let e=(0,S.assertNodeType)("Identifier","Placeholder"),t=(0,S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),r=(0,S.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(i,s,n){let{kind:a,declarations:o}=n,l=(0,It.default)("ForXStatement",i,{left:n});if(l&&o.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${i.type}`);for(let u of o)a==="const"||a==="let"||a==="var"?!l&&!u.init?e(u,"id",u.id):t(u,"id",u.id):r(u,"id",u.id)}})():void 0});Y("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,S.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,S.assertValueType)("boolean")},init:{optional:!0,validate:(0,S.assertNodeType)("Expression")}}});Y("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")}}});Y("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")}}});Y("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ri(),{left:{validate:(0,S.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,S.assertNodeType)("Expression")},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0}})});Y("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ri(),{elements:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeOrValueType)("null","PatternLike")))}})});Y("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Fi(),oi(),{expression:{validate:(0,S.assertValueType)("boolean")},body:{validate:(0,S.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,S.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});Y("ClassBody",{visitor:["body"],fields:{body:(0,S.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});Y("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,S.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,S.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,S.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,S.assertNodeType)("Expression")},superTypeParameters:{validate:(0,S.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,S.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,S.assertNodeType)("InterfaceExtends"),optional:!0}}});Y("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,S.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,S.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,S.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,S.assertNodeType)("Expression")},superTypeParameters:{validate:(0,S.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,S.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,S.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,S.assertValueType)("boolean"),optional:!0}},validate:process.env.BABEL_TYPES_8_BREAKING?(function(){let e=(0,S.assertNodeType)("Identifier");return function(t,r,i){(0,It.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}})():void 0});var yn=bt.importAttributes={attributes:{optional:!0,validate:(0,S.arrayOfType)("ImportAttribute")}};yn.assertions={deprecated:!0,optional:!0,validate:(0,S.arrayOfType)("ImportAttribute")};Y("ExportAllDeclaration",{builder:["source","attributes"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,S.assertNodeType)("StringLiteral")},exportKind:(0,S.validateOptional)((0,S.assertOneOf)("type","value"))},yn)});Y("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,S.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,S.validateOptional)((0,S.assertOneOf)("value"))}});Y("ExportNamedDeclaration",{builder:["declaration","specifiers","source","attributes"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertNodeType)("Declaration"),Object.assign(function(e,t,r){if(r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(r&&e.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,S.assertNodeType)("Declaration")}},yn,{specifiers:{default:[],validate:(0,S.arrayOf)((function(){let e=(0,S.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,S.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(r,i,s){(r.source?e:t)(r,i,s)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):e})())},source:{validate:(0,S.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,S.validateOptional)((0,S.assertOneOf)("type","value"))})});Y("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,S.assertNodeType)("Identifier")},exported:{validate:(0,S.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,S.assertOneOf)("type","value"),optional:!0}}});Y("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,S.assertNodeType)("VariableDeclaration","LVal");let e=(0,S.assertNodeType)("VariableDeclaration"),t=(0,S.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(r,i,s){(0,It.default)("VariableDeclaration",s)?e(r,i,s):t(r,i,s)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})})()},right:{validate:(0,S.assertNodeType)("Expression")},body:{validate:(0,S.assertNodeType)("Statement")},await:{default:!1}}});Y("ImportDeclaration",{builder:["specifiers","source","attributes"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},yn,{module:{optional:!0,validate:(0,S.assertValueType)("boolean")},phase:{default:null,validate:(0,S.assertOneOf)("source","defer")},specifiers:(0,S.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,S.assertNodeType)("StringLiteral")},importKind:{validate:(0,S.assertOneOf)("type","typeof","value"),optional:!0}})});Y("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,S.assertNodeType)("Identifier")}}});Y("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,S.assertNodeType)("Identifier")}}});Y("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,S.assertNodeType)("Identifier")},imported:{validate:(0,S.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,S.assertOneOf)("type","typeof","value"),optional:!0}}});Y("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,S.assertOneOf)("source","defer")},source:{validate:(0,S.assertNodeType)("Expression")},options:{validate:(0,S.assertNodeType)("Expression"),optional:!0}}});Y("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertNodeType)("Identifier"),Object.assign(function(e,t,r){let i;switch(r.name){case"function":i="sent";break;case"new":i="target";break;case"import":i="meta";break}if(!(0,It.default)("Identifier",e.property,{name:i}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,S.assertNodeType)("Identifier")},property:{validate:(0,S.assertNodeType)("Identifier")}}});var Tn=()=>({abstract:{validate:(0,S.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,S.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,S.assertValueType)("boolean"),optional:!0},key:{validate:(0,S.chain)((function(){let e=(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,S.assertNodeType)("Expression");return function(r,i,s){(r.computed?t:e)(r,i,s)}})(),(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});bt.classMethodOrPropertyCommon=Tn;var Ao=()=>Object.assign({},Fi(),Tn(),{params:(0,S.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,S.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,S.chain)((0,S.assertValueType)("string"),(0,S.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0}});bt.classMethodOrDeclareMethodCommon=Ao;Y("ClassMethod",Object.assign({aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},fs(),{fields:Object.assign({},Ao(),oi(),{body:{validate:(0,S.assertNodeType)("BlockStatement")}})}));Y("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ri(),{properties:(0,S.validateArrayOfType)("RestElement","ObjectProperty")})});Y("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,S.assertNodeType)("Expression")}}});Y("Super",{aliases:["Expression"]});Y("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,S.assertNodeType)("Expression")},quasi:{validate:(0,S.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,S.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});Y("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,S.chain)((0,S.assertShape)({raw:{validate:(0,S.assertValueType)("string")},cooked:{validate:(0,S.assertValueType)("string"),optional:!0}}),function(t){let r=t.value.raw,i=!1,s=()=>{throw new Error("Internal @babel/types error.")},{str:n,firstInvalidLoc:a}=(0,Av.readStringContents)("template",r,0,0,0,{unterminated(){i=!0},strictNumericEscape:s,invalidEscapeSequence:s,numericSeparatorInEscapeSequence:s,unexpectedNumericSeparator:s,invalidDigit:s,invalidCodePoint:s});if(!i)throw new Error("Invalid raw");t.value.cooked=a?null:n})},tail:{default:!1}}});Y("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,S.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,S.chain)((0,S.assertValueType)("array"),(0,S.assertEach)((0,S.assertNodeType)("Expression","TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.
13
+ Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});Y("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,S.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,S.assertNodeType)("Expression")}}});Y("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,S.assertNodeType)("Expression")}}});Y("Import",{aliases:["Expression"]});Y("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,S.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});Y("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,S.assertNodeType)("Identifier")}}});Y("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,S.assertNodeType)("Expression")},property:{validate:(function(){let e=(0,S.assertNodeType)("Identifier"),t=(0,S.assertNodeType)("Expression");return Object.assign(function(i,s,n){(i.computed?t:e)(i,s,n)},{oneOfNodeTypes:["Expression","Identifier"]})})()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("boolean"),(0,S.assertOptionalChainStart)()):(0,S.assertValueType)("boolean")}}});Y("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,S.assertNodeType)("Expression")},arguments:(0,S.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,S.chain)((0,S.assertValueType)("boolean"),(0,S.assertOptionalChainStart)()):(0,S.assertValueType)("boolean")},typeArguments:{validate:(0,S.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,S.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});Y("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},fs(),{fields:Object.assign({},Tn(),{value:{validate:(0,S.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,S.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,S.assertValueType)("boolean"),optional:!0},declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},variance:{validate:(0,S.assertNodeType)("Variance"),optional:!0}})}));Y("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},fs(!0),{fields:Object.assign({},Tn(),{key:{validate:(0,S.chain)((function(){let e=(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,S.assertNodeType)("Expression");return function(r,i,s){(r.computed?t:e)(r,i,s)}})(),(0,S.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,S.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,S.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,S.assertValueType)("boolean"),optional:!0},declare:{validate:(0,S.assertValueType)("boolean"),optional:!0},variance:{validate:(0,S.assertNodeType)("Variance"),optional:!0}})}));Y("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,S.assertNodeType)("PrivateName")},value:{validate:(0,S.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,S.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,S.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,S.assertValueType)("boolean"),default:!1},readonly:{validate:(0,S.assertValueType)("boolean"),optional:!0},optional:{validate:(0,S.assertValueType)("boolean"),optional:!0},definite:{validate:(0,S.assertValueType)("boolean"),optional:!0},variance:{validate:(0,S.assertNodeType)("Variance"),optional:!0}}});Y("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},Ao(),oi(),{kind:{validate:(0,S.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,S.assertNodeType)("PrivateName")},body:{validate:(0,S.assertNodeType)("BlockStatement")}})});Y("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,S.assertNodeType)("Identifier")}}});Y("StaticBlock",{visitor:["body"],fields:{body:(0,S.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});Y("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,S.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,S.assertNodeType)("StringLiteral")}}})});var Kf=N(()=>{"use strict";var Uf=ds(),O=dr(),ae=(0,O.defineAliasedType)("Flow"),vo=e=>{let t=e==="DeclareClass";ae(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),extends:(0,O.validateOptional)((0,O.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,O.validateOptional)((0,O.arrayOfType)("InterfaceExtends")),implements:(0,O.validateOptional)((0,O.arrayOfType)("ClassImplements"))}:{},{body:(0,O.validateType)("ObjectTypeAnnotation")})})};ae("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ae("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,O.validateType)("FlowType")}});ae("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ae("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,O.validate)((0,O.assertValueType)("boolean"))}});ae("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ae("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterInstantiation")}});vo("DeclareClass");ae("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier"),predicate:(0,O.validateOptionalType)("DeclaredPredicate")}});vo("DeclareInterface");ae("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier","StringLiteral"),body:(0,O.validateType)("BlockStatement"),kind:(0,O.validateOptional)((0,O.assertOneOf)("CommonJS","ES"))}});ae("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,O.validateType)("TypeAnnotation")}});ae("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),right:(0,O.validateType)("FlowType")}});ae("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,O.validateOptionalType)("FlowType"),impltype:(0,O.validateOptionalType)("FlowType")}});ae("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier")}});ae("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,O.validateOptionalType)("Flow"),specifiers:(0,O.validateOptional)((0,O.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,O.validateOptionalType)("StringLiteral"),default:(0,O.validateOptional)((0,O.assertValueType)("boolean"))},Uf.importAttributes)});ae("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,O.validateType)("StringLiteral"),exportKind:(0,O.validateOptional)((0,O.assertOneOf)("type","value"))},Uf.importAttributes)});ae("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,O.validateType)("Flow")}});ae("ExistsTypeAnnotation",{aliases:["FlowType"]});ae("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),params:(0,O.validateArrayOfType)("FunctionTypeParam"),rest:(0,O.validateOptionalType)("FunctionTypeParam"),this:(0,O.validateOptionalType)("FunctionTypeParam"),returnType:(0,O.validateType)("FlowType")}});ae("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,O.validateOptionalType)("Identifier"),typeAnnotation:(0,O.validateType)("FlowType"),optional:(0,O.validateOptional)((0,O.assertValueType)("boolean"))}});ae("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,O.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterInstantiation")}});ae("InferredPredicate",{aliases:["FlowPredicate"]});ae("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,O.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterInstantiation")}});vo("InterfaceDeclaration");ae("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,O.validateOptional)((0,O.arrayOfType)("InterfaceExtends")),body:(0,O.validateType)("ObjectTypeAnnotation")}});ae("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,O.validate)((0,O.arrayOfType)("FlowType"))}});ae("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ae("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ae("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,O.validateType)("FlowType")}});ae("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,O.validate)((0,O.assertValueType)("number"))}});ae("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ae("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,O.validate)((0,O.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,O.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,O.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,O.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,O.assertValueType)("boolean"),default:!1},inexact:(0,O.validateOptional)((0,O.assertValueType)("boolean"))}});ae("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,O.validateType)("Identifier"),value:(0,O.validateType)("FlowType"),optional:(0,O.validate)((0,O.assertValueType)("boolean")),static:(0,O.validate)((0,O.assertValueType)("boolean")),method:(0,O.validate)((0,O.assertValueType)("boolean"))}});ae("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,O.validateType)("FlowType"),static:(0,O.validate)((0,O.assertValueType)("boolean"))}});ae("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,O.validateOptionalType)("Identifier"),key:(0,O.validateType)("FlowType"),value:(0,O.validateType)("FlowType"),static:(0,O.validate)((0,O.assertValueType)("boolean")),variance:(0,O.validateOptionalType)("Variance")}});ae("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,O.validateType)("Identifier","StringLiteral"),value:(0,O.validateType)("FlowType"),kind:(0,O.validate)((0,O.assertOneOf)("init","get","set")),static:(0,O.validate)((0,O.assertValueType)("boolean")),proto:(0,O.validate)((0,O.assertValueType)("boolean")),optional:(0,O.validate)((0,O.assertValueType)("boolean")),variance:(0,O.validateOptionalType)("Variance"),method:(0,O.validate)((0,O.assertValueType)("boolean"))}});ae("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,O.validateType)("FlowType")}});ae("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,O.validateOptionalType)("FlowType"),impltype:(0,O.validateType)("FlowType")}});ae("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,O.validateType)("Identifier"),qualification:(0,O.validateType)("Identifier","QualifiedTypeIdentifier")}});ae("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,O.validate)((0,O.assertValueType)("string"))}});ae("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ae("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ae("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ae("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,O.validate)((0,O.arrayOfType)("FlowType"))}});ae("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,O.validateType)("FlowType")}});ae("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),right:(0,O.validateType)("FlowType")}});ae("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,O.validateType)("FlowType")}});ae("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,O.validateType)("Expression"),typeAnnotation:(0,O.validateType)("TypeAnnotation")}});ae("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,O.validate)((0,O.assertValueType)("string")),bound:(0,O.validateOptionalType)("TypeAnnotation"),default:(0,O.validateOptionalType)("FlowType"),variance:(0,O.validateOptionalType)("Variance")}});ae("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,O.validate)((0,O.arrayOfType)("TypeParameter"))}});ae("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,O.validate)((0,O.arrayOfType)("FlowType"))}});ae("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,O.validate)((0,O.arrayOfType)("FlowType"))}});ae("Variance",{builder:["kind"],fields:{kind:(0,O.validate)((0,O.assertOneOf)("minus","plus"))}});ae("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ae("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,O.validateType)("Identifier"),body:(0,O.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});ae("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,O.validate)((0,O.assertValueType)("boolean")),members:(0,O.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,O.validate)((0,O.assertValueType)("boolean"))}});ae("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,O.validate)((0,O.assertValueType)("boolean")),members:(0,O.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,O.validate)((0,O.assertValueType)("boolean"))}});ae("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,O.validate)((0,O.assertValueType)("boolean")),members:(0,O.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,O.validate)((0,O.assertValueType)("boolean"))}});ae("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,O.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,O.validate)((0,O.assertValueType)("boolean"))}});ae("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,O.validateType)("Identifier"),init:(0,O.validateType)("BooleanLiteral")}});ae("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,O.validateType)("Identifier"),init:(0,O.validateType)("NumericLiteral")}});ae("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,O.validateType)("Identifier"),init:(0,O.validateType)("StringLiteral")}});ae("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,O.validateType)("Identifier")}});ae("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,O.validateType)("FlowType"),indexType:(0,O.validateType)("FlowType")}});ae("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,O.validateType)("FlowType"),indexType:(0,O.validateType)("FlowType"),optional:(0,O.validate)((0,O.assertValueType)("boolean"))}})});var Vf=N(()=>{"use strict";var rt=dr(),wt=(0,rt.defineAliasedType)("JSX");wt("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,rt.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,rt.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});wt("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,rt.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});wt("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,rt.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,rt.assertNodeType)("JSXClosingElement")},children:(0,rt.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,rt.assertValueType)("boolean"),optional:!0}})});wt("JSXEmptyExpression",{});wt("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,rt.assertNodeType)("Expression","JSXEmptyExpression")}}});wt("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,rt.assertNodeType)("Expression")}}});wt("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,rt.assertValueType)("string")}}});wt("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,rt.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,rt.assertNodeType)("JSXIdentifier")}}});wt("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,rt.assertNodeType)("JSXIdentifier")},name:{validate:(0,rt.assertNodeType)("JSXIdentifier")}}});wt("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,rt.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,rt.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,rt.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,rt.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});wt("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,rt.assertNodeType)("Expression")}}});wt("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,rt.assertValueType)("string")}}});wt("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,rt.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,rt.assertNodeType)("JSXClosingFragment")},children:(0,rt.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});wt("JSXOpeningFragment",{aliases:["Immutable"]});wt("JSXClosingFragment",{aliases:["Immutable"]})});var wo=N(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.PLACEHOLDERS_FLIPPED_ALIAS=Rr.PLACEHOLDERS_ALIAS=Rr.PLACEHOLDERS=void 0;var vv=dr(),Cv=Rr.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],Io=Rr.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let e of Cv){let t=vv.ALIAS_KEYS[e];t!=null&&t.length&&(Io[e]=t)}var Co=Rr.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(Io).forEach(e=>{Io[e].forEach(t=>{hasOwnProperty.call(Co,t)||(Co[t]=[]),Co[t].push(e)})})});var $f=N(()=>{"use strict";var gn=dr(),Iv=wo(),wv=ds(),No=(0,gn.defineAliasedType)("Miscellaneous");No("Noop",{visitor:[]});No("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,gn.assertNodeType)("Identifier")},expectedNode:{validate:(0,gn.assertOneOf)(...Iv.PLACEHOLDERS)}},(0,wv.patternLikeCommon)())});No("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,gn.assertValueType)("string")}}})});var Jf=N(()=>{"use strict";var Qe=dr();(0,Qe.default)("ArgumentPlaceholder",{});(0,Qe.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,Qe.assertNodeType)("Expression")},callee:{validate:(0,Qe.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}});(0,Qe.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,Qe.assertNodeType)("Expression")}}});(0,Qe.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,Qe.assertNodeType)("BlockStatement")},async:{validate:(0,Qe.assertValueType)("boolean"),default:!1}}});(0,Qe.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,Qe.assertNodeType)("Identifier")}}});(0,Qe.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,Qe.validateArrayOfType)("ObjectProperty","SpreadElement")}});(0,Qe.default)("TupleExpression",{fields:{elements:{validate:(0,Qe.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});(0,Qe.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,Qe.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0,Qe.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,Qe.assertNodeType)("Program")}},aliases:["Expression"]});(0,Qe.default)("TopicReference",{aliases:["Expression"]});(0,Qe.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,Qe.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Qe.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,Qe.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Qe.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});(0,Qe.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})});var Qf=N(()=>{"use strict";var F=dr(),Oo=ds(),Nv=Di(),ce=(0,F.defineAliasedType)("TypeScript"),Ft=(0,F.assertValueType)("boolean"),Xf=()=>({returnType:{validate:(0,F.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,F.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});ce("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,F.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,F.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,F.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,F.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,F.arrayOfType)("Decorator"),optional:!0}}});ce("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,Oo.functionDeclarationCommon)(),Xf())});ce("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,Oo.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,Oo.classMethodOrDeclareMethodCommon)(),Xf())}));ce("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,F.validateType)("TSEntityName"),right:(0,F.validateType)("Identifier")}});var Sn=()=>({typeParameters:(0,F.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,F.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,F.validateOptionalType)("TSTypeAnnotation")}),Yf={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:Sn()};ce("TSCallSignatureDeclaration",Yf);ce("TSConstructSignatureDeclaration",Yf);var Wf=()=>({key:(0,F.validateType)("Expression"),computed:{default:!1},optional:(0,F.validateOptional)(Ft)});ce("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},Wf(),{readonly:(0,F.validateOptional)(Ft),typeAnnotation:(0,F.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,F.assertOneOf)("get","set")}})});ce("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},Sn(),Wf(),{kind:{validate:(0,F.assertOneOf)("method","get","set")}})});ce("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,F.validateOptional)(Ft),static:(0,F.validateOptional)(Ft),parameters:(0,F.validateArrayOfType)("Identifier"),typeAnnotation:(0,F.validateOptionalType)("TSTypeAnnotation")}});var Ov=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let e of Ov)ce(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});ce("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var Hf={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};ce("TSFunctionType",Object.assign({},Hf,{fields:Sn()}));ce("TSConstructorType",Object.assign({},Hf,{fields:Object.assign({},Sn(),{abstract:(0,F.validateOptional)(Ft)})}));ce("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,F.validateType)("TSEntityName"),typeParameters:(0,F.validateOptionalType)("TSTypeParameterInstantiation")}});ce("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,F.validateType)("Identifier","TSThisType"),typeAnnotation:(0,F.validateOptionalType)("TSTypeAnnotation"),asserts:(0,F.validateOptional)(Ft)}});ce("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,F.validateType)("TSEntityName","TSImportType"),typeParameters:(0,F.validateOptionalType)("TSTypeParameterInstantiation")}});ce("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,F.validateArrayOfType)("TSTypeElement")}});ce("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,F.validateType)("TSType")}});ce("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,F.validateArrayOfType)("TSType","TSNamedTupleMember")}});ce("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,F.validateType)("TSType")}});ce("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,F.validateType)("TSType")}});ce("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,F.validateType)("Identifier"),optional:{validate:Ft,default:!1},elementType:(0,F.validateType)("TSType")}});var zf={aliases:["TSType"],visitor:["types"],fields:{types:(0,F.validateArrayOfType)("TSType")}};ce("TSUnionType",zf);ce("TSIntersectionType",zf);ce("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,F.validateType)("TSType"),extendsType:(0,F.validateType)("TSType"),trueType:(0,F.validateType)("TSType"),falseType:(0,F.validateType)("TSType")}});ce("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,F.validateType)("TSTypeParameter")}});ce("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,F.validateType)("TSType")}});ce("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,F.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,F.validateType)("TSType")}});ce("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,F.validateType)("TSType"),indexType:(0,F.validateType)("TSType")}});ce("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,F.validateType)("TSTypeParameter")},{readonly:(0,F.validateOptional)((0,F.assertOneOf)(!0,!1,"+","-")),optional:(0,F.validateOptional)((0,F.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,F.validateOptionalType)("TSType"),nameType:(0,F.validateOptionalType)("TSType")})});ce("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,F.validateArrayOfType)("TemplateElement"),types:{validate:(0,F.chain)((0,F.assertValueType)("array"),(0,F.assertEach)((0,F.assertNodeType)("TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.
14
+ Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});ce("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:(function(){let e=(0,F.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,F.assertOneOf)("-"),r=(0,F.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),i=function(n,a,o){(0,Nv.default)("UnaryExpression",o)?(t(o,"operator",o.operator),e(o,"argument",o.argument)):r(n,a,o)};return i.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],i})()}}});ce("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,F.validateType)("TSEntityName"),typeParameters:(0,F.validateOptionalType)("TSTypeParameterInstantiation")}});ce("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,F.validateOptional)(Ft),id:(0,F.validateType)("Identifier"),typeParameters:(0,F.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,F.validateOptional)((0,F.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,F.validateType)("TSInterfaceBody")}});ce("TSInterfaceBody",{visitor:["body"],fields:{body:(0,F.validateArrayOfType)("TSTypeElement")}});ce("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,F.validateOptional)(Ft),id:(0,F.validateType)("Identifier"),typeParameters:(0,F.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,F.validateType)("TSType")}});ce("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,F.validateType)("Expression"),typeParameters:(0,F.validateOptionalType)("TSTypeParameterInstantiation")}});var Gf={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,F.validateType)("Expression"),typeAnnotation:(0,F.validateType)("TSType")}};ce("TSAsExpression",Gf);ce("TSSatisfiesExpression",Gf);ce("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,F.validateType)("TSType"),expression:(0,F.validateType)("Expression")}});ce("TSEnumBody",{visitor:["members"],fields:{members:(0,F.validateArrayOfType)("TSEnumMember")}});ce("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,F.validateOptional)(Ft),const:(0,F.validateOptional)(Ft),id:(0,F.validateType)("Identifier"),members:(0,F.validateArrayOfType)("TSEnumMember"),initializer:(0,F.validateOptionalType)("Expression"),body:(0,F.validateOptionalType)("TSEnumBody")}});ce("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,F.validateType)("Identifier","StringLiteral"),initializer:(0,F.validateOptionalType)("Expression")}});ce("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,F.assertOneOf)("global","module","namespace")},declare:(0,F.validateOptional)(Ft)},{global:(0,F.validateOptional)(Ft)},{id:(0,F.validateType)("Identifier","StringLiteral"),body:(0,F.validateType)("TSModuleBlock","TSModuleDeclaration")})});ce("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,F.validateArrayOfType)("Statement")}});ce("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:Object.assign({},{argument:(0,F.validateType)("StringLiteral")},{qualifier:(0,F.validateOptionalType)("TSEntityName")},{typeParameters:(0,F.validateOptionalType)("TSTypeParameterInstantiation")},{options:{validate:(0,F.assertNodeType)("ObjectExpression"),optional:!0}})});ce("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,F.validate)(Ft)},{id:(0,F.validateType)("Identifier"),moduleReference:(0,F.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,F.assertOneOf)("type","value"),optional:!0}})});ce("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,F.validateType)("StringLiteral")}});ce("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,F.validateType)("Expression")}});ce("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,F.validateType)("Expression")}});ce("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,F.validateType)("Identifier")}});ce("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,F.assertNodeType)("TSType")}}});ce("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,F.validateArrayOfType)("TSType")}});ce("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,F.validateArrayOfType)("TSTypeParameter")}});ce("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,F.assertValueType)("string")},in:{validate:(0,F.assertValueType)("boolean"),optional:!0},out:{validate:(0,F.assertValueType)("boolean"),optional:!0},const:{validate:(0,F.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,F.assertNodeType)("TSType"),optional:!0},default:{validate:(0,F.assertNodeType)("TSType"),optional:!0}}})});var Zf=N(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.DEPRECATED_ALIASES=void 0;var _W=xn.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var Jt=N(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Object.defineProperty(Ct,"ALIAS_KEYS",{enumerable:!0,get:function(){return Nt.ALIAS_KEYS}});Object.defineProperty(Ct,"BUILDER_KEYS",{enumerable:!0,get:function(){return Nt.BUILDER_KEYS}});Object.defineProperty(Ct,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return _o.DEPRECATED_ALIASES}});Object.defineProperty(Ct,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return Nt.DEPRECATED_KEYS}});Object.defineProperty(Ct,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return Nt.FLIPPED_ALIAS_KEYS}});Object.defineProperty(Ct,"NODE_FIELDS",{enumerable:!0,get:function(){return Nt.NODE_FIELDS}});Object.defineProperty(Ct,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return Nt.NODE_PARENT_VALIDATIONS}});Object.defineProperty(Ct,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return Nt.NODE_UNION_SHAPES__PRIVATE}});Object.defineProperty(Ct,"PLACEHOLDERS",{enumerable:!0,get:function(){return ko.PLACEHOLDERS}});Object.defineProperty(Ct,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return ko.PLACEHOLDERS_ALIAS}});Object.defineProperty(Ct,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return ko.PLACEHOLDERS_FLIPPED_ALIAS}});Ct.TYPES=void 0;Object.defineProperty(Ct,"VISITOR_KEYS",{enumerable:!0,get:function(){return Nt.VISITOR_KEYS}});ds();Kf();Vf();$f();Jf();Qf();var Nt=dr(),ko=wo(),_o=Zf();Object.keys(_o.DEPRECATED_ALIASES).forEach(e=>{Nt.FLIPPED_ALIAS_KEYS[e]=Nt.FLIPPED_ALIAS_KEYS[_o.DEPRECATED_ALIASES[e]]});for(let{types:e,set:t}of Nt.allExpandedTypes)for(let r of e){let i=Nt.FLIPPED_ALIAS_KEYS[r];i?i.forEach(t.add,t):t.add(r)}var DW=Ct.TYPES=[].concat(Object.keys(Nt.VISITOR_KEYS),Object.keys(Nt.FLIPPED_ALIAS_KEYS),Object.keys(Nt.DEPRECATED_KEYS))});var mn=N(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.default=_v;ji.validateChild=td;ji.validateField=ed;ji.validateInternal=kv;var hs=Jt();function _v(e,t,r){if(!e)return;let i=hs.NODE_FIELDS[e.type];if(!i)return;let s=i[t];ed(e,t,r,s),td(e,t,r)}function kv(e,t,r,i,s){if(e!=null&&e.validate&&!(e.optional&&i==null)&&(e.validate(t,r,i),s)){var n;let a=i.type;if(a==null)return;(n=hs.NODE_PARENT_VALIDATIONS[a])==null||n.call(hs.NODE_PARENT_VALIDATIONS,t,r,i)}}function ed(e,t,r,i){i!=null&&i.validate&&(i.optional&&r==null||i.validate(e,t,r))}function td(e,t,r){var i;let s=r?.type;s!=null&&((i=hs.NODE_PARENT_VALIDATIONS[s])==null||i.call(hs.NODE_PARENT_VALIDATIONS,e,t,r))}});var Do=N(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});d.anyTypeAnnotation=fC;d.argumentPlaceholder=UI;d.arrayExpression=Bv;d.arrayPattern=_1;d.arrayTypeAnnotation=dC;d.arrowFunctionExpression=k1;d.assignmentExpression=Fv;d.assignmentPattern=O1;d.awaitExpression=eC;d.bigIntLiteral=Mv;d.binaryExpression=Rv;d.bindExpression=KI;d.blockStatement=Kv;d.booleanLiteral=l1;d.booleanLiteralTypeAnnotation=mC;d.booleanTypeAnnotation=hC;d.breakStatement=Vv;d.callExpression=$v;d.catchClause=Jv;d.classAccessorProperty=aC;d.classBody=D1;d.classDeclaration=M1;d.classExpression=L1;d.classImplements=TC;d.classMethod=Y1;d.classPrivateMethod=lC;d.classPrivateProperty=oC;d.classProperty=nC;d.conditionalExpression=Xv;d.continueStatement=Yv;d.debuggerStatement=Wv;d.decimalLiteral=WI;d.declareClass=gC;d.declareExportAllDeclaration=IC;d.declareExportDeclaration=CC;d.declareFunction=SC;d.declareInterface=xC;d.declareModule=bC;d.declareModuleExports=EC;d.declareOpaqueType=AC;d.declareTypeAlias=PC;d.declareVariable=vC;d.declaredPredicate=wC;d.decorator=VI;d.directive=qv;d.directiveLiteral=Uv;d.doExpression=$I;d.doWhileStatement=Hv;d.emptyStatement=zv;d.emptyTypeAnnotation=jC;d.enumBooleanBody=dI;d.enumBooleanMember=TI;d.enumDeclaration=fI;d.enumDefaultedMember=xI;d.enumNumberBody=hI;d.enumNumberMember=gI;d.enumStringBody=mI;d.enumStringMember=SI;d.enumSymbolBody=yI;d.existsTypeAnnotation=NC;d.exportAllDeclaration=B1;d.exportDefaultDeclaration=F1;d.exportDefaultSpecifier=JI;d.exportNamedDeclaration=R1;d.exportNamespaceSpecifier=rC;d.exportSpecifier=j1;d.expressionStatement=Gv;d.file=Qv;d.forInStatement=Zv;d.forOfStatement=q1;d.forStatement=e1;d.functionDeclaration=t1;d.functionExpression=r1;d.functionTypeAnnotation=OC;d.functionTypeParam=_C;d.genericTypeAnnotation=kC;d.identifier=i1;d.ifStatement=s1;d.import=tC;d.importAttribute=pC;d.importDeclaration=U1;d.importDefaultSpecifier=K1;d.importExpression=J1;d.importNamespaceSpecifier=V1;d.importSpecifier=$1;d.indexedAccessType=bI;d.inferredPredicate=DC;d.interfaceDeclaration=MC;d.interfaceExtends=LC;d.interfaceTypeAnnotation=BC;d.interpreterDirective=jv;d.intersectionTypeAnnotation=FC;d.jSXAttribute=d.jsxAttribute=PI;d.jSXClosingElement=d.jsxClosingElement=AI;d.jSXClosingFragment=d.jsxClosingFragment=FI;d.jSXElement=d.jsxElement=vI;d.jSXEmptyExpression=d.jsxEmptyExpression=CI;d.jSXExpressionContainer=d.jsxExpressionContainer=II;d.jSXFragment=d.jsxFragment=MI;d.jSXIdentifier=d.jsxIdentifier=NI;d.jSXMemberExpression=d.jsxMemberExpression=OI;d.jSXNamespacedName=d.jsxNamespacedName=_I;d.jSXOpeningElement=d.jsxOpeningElement=kI;d.jSXOpeningFragment=d.jsxOpeningFragment=BI;d.jSXSpreadAttribute=d.jsxSpreadAttribute=DI;d.jSXSpreadChild=d.jsxSpreadChild=wI;d.jSXText=d.jsxText=LI;d.labeledStatement=n1;d.logicalExpression=u1;d.memberExpression=c1;d.metaProperty=X1;d.mixedTypeAnnotation=RC;d.moduleExpression=HI;d.newExpression=p1;d.noop=RI;d.nullLiteral=o1;d.nullLiteralTypeAnnotation=yC;d.nullableTypeAnnotation=qC;d.numberLiteral=hN;d.numberLiteralTypeAnnotation=UC;d.numberTypeAnnotation=KC;d.numericLiteral=rd;d.objectExpression=d1;d.objectMethod=h1;d.objectPattern=W1;d.objectProperty=m1;d.objectTypeAnnotation=VC;d.objectTypeCallProperty=JC;d.objectTypeIndexer=XC;d.objectTypeInternalSlot=$C;d.objectTypeProperty=YC;d.objectTypeSpreadProperty=WC;d.opaqueType=HC;d.optionalCallExpression=sC;d.optionalIndexedAccessType=EI;d.optionalMemberExpression=iC;d.parenthesizedExpression=g1;d.pipelineBareFunction=QI;d.pipelinePrimaryTopicReference=ZI;d.pipelineTopicExpression=GI;d.placeholder=jI;d.privateName=uC;d.program=f1;d.qualifiedTypeIdentifier=zC;d.recordExpression=XI;d.regExpLiteral=id;d.regexLiteral=mN;d.restElement=sd;d.restProperty=yN;d.returnStatement=y1;d.sequenceExpression=T1;d.spreadElement=nd;d.spreadProperty=TN;d.staticBlock=cC;d.stringLiteral=a1;d.stringLiteralTypeAnnotation=GC;d.stringTypeAnnotation=QC;d.super=H1;d.switchCase=S1;d.switchStatement=x1;d.symbolTypeAnnotation=ZC;d.taggedTemplateExpression=z1;d.templateElement=G1;d.templateLiteral=Q1;d.thisExpression=b1;d.thisTypeAnnotation=eI;d.throwStatement=E1;d.topicReference=zI;d.tryStatement=P1;d.tSAnyKeyword=d.tsAnyKeyword=cw;d.tSArrayType=d.tsArrayType=Ow;d.tSAsExpression=d.tsAsExpression=zw;d.tSBigIntKeyword=d.tsBigIntKeyword=fw;d.tSBooleanKeyword=d.tsBooleanKeyword=pw;d.tSCallSignatureDeclaration=d.tsCallSignatureDeclaration=nw;d.tSConditionalType=d.tsConditionalType=Fw;d.tSConstructSignatureDeclaration=d.tsConstructSignatureDeclaration=aw;d.tSConstructorType=d.tsConstructorType=vw;d.tSDeclareFunction=d.tsDeclareFunction=rw;d.tSDeclareMethod=d.tsDeclareMethod=iw;d.tSEnumBody=d.tsEnumBody=Zw;d.tSEnumDeclaration=d.tsEnumDeclaration=eN;d.tSEnumMember=d.tsEnumMember=tN;d.tSExportAssignment=d.tsExportAssignment=lN;d.tSExpressionWithTypeArguments=d.tsExpressionWithTypeArguments=Jw;d.tSExternalModuleReference=d.tsExternalModuleReference=aN;d.tSFunctionType=d.tsFunctionType=Aw;d.tSImportEqualsDeclaration=d.tsImportEqualsDeclaration=nN;d.tSImportType=d.tsImportType=sN;d.tSIndexSignature=d.tsIndexSignature=uw;d.tSIndexedAccessType=d.tsIndexedAccessType=Uw;d.tSInferType=d.tsInferType=Rw;d.tSInstantiationExpression=d.tsInstantiationExpression=Hw;d.tSInterfaceBody=d.tsInterfaceBody=Yw;d.tSInterfaceDeclaration=d.tsInterfaceDeclaration=Xw;d.tSIntersectionType=d.tsIntersectionType=Bw;d.tSIntrinsicKeyword=d.tsIntrinsicKeyword=dw;d.tSLiteralType=d.tsLiteralType=$w;d.tSMappedType=d.tsMappedType=Kw;d.tSMethodSignature=d.tsMethodSignature=lw;d.tSModuleBlock=d.tsModuleBlock=iN;d.tSModuleDeclaration=d.tsModuleDeclaration=rN;d.tSNamedTupleMember=d.tsNamedTupleMember=Lw;d.tSNamespaceExportDeclaration=d.tsNamespaceExportDeclaration=uN;d.tSNeverKeyword=d.tsNeverKeyword=hw;d.tSNonNullExpression=d.tsNonNullExpression=oN;d.tSNullKeyword=d.tsNullKeyword=mw;d.tSNumberKeyword=d.tsNumberKeyword=yw;d.tSObjectKeyword=d.tsObjectKeyword=Tw;d.tSOptionalType=d.tsOptionalType=kw;d.tSParameterProperty=d.tsParameterProperty=tw;d.tSParenthesizedType=d.tsParenthesizedType=jw;d.tSPropertySignature=d.tsPropertySignature=ow;d.tSQualifiedName=d.tsQualifiedName=sw;d.tSRestType=d.tsRestType=Dw;d.tSSatisfiesExpression=d.tsSatisfiesExpression=Gw;d.tSStringKeyword=d.tsStringKeyword=gw;d.tSSymbolKeyword=d.tsSymbolKeyword=Sw;d.tSTemplateLiteralType=d.tsTemplateLiteralType=Vw;d.tSThisType=d.tsThisType=Pw;d.tSTupleType=d.tsTupleType=_w;d.tSTypeAliasDeclaration=d.tsTypeAliasDeclaration=Ww;d.tSTypeAnnotation=d.tsTypeAnnotation=cN;d.tSTypeAssertion=d.tsTypeAssertion=Qw;d.tSTypeLiteral=d.tsTypeLiteral=Nw;d.tSTypeOperator=d.tsTypeOperator=qw;d.tSTypeParameter=d.tsTypeParameter=dN;d.tSTypeParameterDeclaration=d.tsTypeParameterDeclaration=fN;d.tSTypeParameterInstantiation=d.tsTypeParameterInstantiation=pN;d.tSTypePredicate=d.tsTypePredicate=Iw;d.tSTypeQuery=d.tsTypeQuery=ww;d.tSTypeReference=d.tsTypeReference=Cw;d.tSUndefinedKeyword=d.tsUndefinedKeyword=xw;d.tSUnionType=d.tsUnionType=Mw;d.tSUnknownKeyword=d.tsUnknownKeyword=bw;d.tSVoidKeyword=d.tsVoidKeyword=Ew;d.tupleExpression=YI;d.tupleTypeAnnotation=tI;d.typeAlias=iI;d.typeAnnotation=sI;d.typeCastExpression=nI;d.typeParameter=aI;d.typeParameterDeclaration=oI;d.typeParameterInstantiation=lI;d.typeofTypeAnnotation=rI;d.unaryExpression=A1;d.unionTypeAnnotation=uI;d.updateExpression=v1;d.v8IntrinsicIdentifier=qI;d.variableDeclaration=C1;d.variableDeclarator=I1;d.variance=cI;d.voidPattern=ew;d.voidTypeAnnotation=pI;d.whileStatement=w1;d.withStatement=N1;d.yieldExpression=Z1;var Dv=mn(),bn=ki(),Lv=dr(),{validateInternal:p}=Dv,{NODE_FIELDS:I}=Lv;function Mv(e){typeof e=="bigint"&&(e=e.toString());let t={type:"BigIntLiteral",value:e},r=I.BigIntLiteral;return p(r.value,t,"value",e),t}function Bv(e=[]){let t={type:"ArrayExpression",elements:e},r=I.ArrayExpression;return p(r.elements,t,"elements",e,1),t}function Fv(e,t,r){let i={type:"AssignmentExpression",operator:e,left:t,right:r},s=I.AssignmentExpression;return p(s.operator,i,"operator",e),p(s.left,i,"left",t,1),p(s.right,i,"right",r,1),i}function Rv(e,t,r){let i={type:"BinaryExpression",operator:e,left:t,right:r},s=I.BinaryExpression;return p(s.operator,i,"operator",e),p(s.left,i,"left",t,1),p(s.right,i,"right",r,1),i}function jv(e){let t={type:"InterpreterDirective",value:e},r=I.InterpreterDirective;return p(r.value,t,"value",e),t}function qv(e){let t={type:"Directive",value:e},r=I.Directive;return p(r.value,t,"value",e,1),t}function Uv(e){let t={type:"DirectiveLiteral",value:e},r=I.DirectiveLiteral;return p(r.value,t,"value",e),t}function Kv(e,t=[]){let r={type:"BlockStatement",body:e,directives:t},i=I.BlockStatement;return p(i.body,r,"body",e,1),p(i.directives,r,"directives",t,1),r}function Vv(e=null){let t={type:"BreakStatement",label:e},r=I.BreakStatement;return p(r.label,t,"label",e,1),t}function $v(e,t){let r={type:"CallExpression",callee:e,arguments:t},i=I.CallExpression;return p(i.callee,r,"callee",e,1),p(i.arguments,r,"arguments",t,1),r}function Jv(e=null,t){let r={type:"CatchClause",param:e,body:t},i=I.CatchClause;return p(i.param,r,"param",e,1),p(i.body,r,"body",t,1),r}function Xv(e,t,r){let i={type:"ConditionalExpression",test:e,consequent:t,alternate:r},s=I.ConditionalExpression;return p(s.test,i,"test",e,1),p(s.consequent,i,"consequent",t,1),p(s.alternate,i,"alternate",r,1),i}function Yv(e=null){let t={type:"ContinueStatement",label:e},r=I.ContinueStatement;return p(r.label,t,"label",e,1),t}function Wv(){return{type:"DebuggerStatement"}}function Hv(e,t){let r={type:"DoWhileStatement",test:e,body:t},i=I.DoWhileStatement;return p(i.test,r,"test",e,1),p(i.body,r,"body",t,1),r}function zv(){return{type:"EmptyStatement"}}function Gv(e){let t={type:"ExpressionStatement",expression:e},r=I.ExpressionStatement;return p(r.expression,t,"expression",e,1),t}function Qv(e,t=null,r=null){let i={type:"File",program:e,comments:t,tokens:r},s=I.File;return p(s.program,i,"program",e,1),p(s.comments,i,"comments",t,1),p(s.tokens,i,"tokens",r),i}function Zv(e,t,r){let i={type:"ForInStatement",left:e,right:t,body:r},s=I.ForInStatement;return p(s.left,i,"left",e,1),p(s.right,i,"right",t,1),p(s.body,i,"body",r,1),i}function e1(e=null,t=null,r=null,i){let s={type:"ForStatement",init:e,test:t,update:r,body:i},n=I.ForStatement;return p(n.init,s,"init",e,1),p(n.test,s,"test",t,1),p(n.update,s,"update",r,1),p(n.body,s,"body",i,1),s}function t1(e=null,t,r,i=!1,s=!1){let n={type:"FunctionDeclaration",id:e,params:t,body:r,generator:i,async:s},a=I.FunctionDeclaration;return p(a.id,n,"id",e,1),p(a.params,n,"params",t,1),p(a.body,n,"body",r,1),p(a.generator,n,"generator",i),p(a.async,n,"async",s),n}function r1(e=null,t,r,i=!1,s=!1){let n={type:"FunctionExpression",id:e,params:t,body:r,generator:i,async:s},a=I.FunctionExpression;return p(a.id,n,"id",e,1),p(a.params,n,"params",t,1),p(a.body,n,"body",r,1),p(a.generator,n,"generator",i),p(a.async,n,"async",s),n}function i1(e){let t={type:"Identifier",name:e},r=I.Identifier;return p(r.name,t,"name",e),t}function s1(e,t,r=null){let i={type:"IfStatement",test:e,consequent:t,alternate:r},s=I.IfStatement;return p(s.test,i,"test",e,1),p(s.consequent,i,"consequent",t,1),p(s.alternate,i,"alternate",r,1),i}function n1(e,t){let r={type:"LabeledStatement",label:e,body:t},i=I.LabeledStatement;return p(i.label,r,"label",e,1),p(i.body,r,"body",t,1),r}function a1(e){let t={type:"StringLiteral",value:e},r=I.StringLiteral;return p(r.value,t,"value",e),t}function rd(e){let t={type:"NumericLiteral",value:e},r=I.NumericLiteral;return p(r.value,t,"value",e),t}function o1(){return{type:"NullLiteral"}}function l1(e){let t={type:"BooleanLiteral",value:e},r=I.BooleanLiteral;return p(r.value,t,"value",e),t}function id(e,t=""){let r={type:"RegExpLiteral",pattern:e,flags:t},i=I.RegExpLiteral;return p(i.pattern,r,"pattern",e),p(i.flags,r,"flags",t),r}function u1(e,t,r){let i={type:"LogicalExpression",operator:e,left:t,right:r},s=I.LogicalExpression;return p(s.operator,i,"operator",e),p(s.left,i,"left",t,1),p(s.right,i,"right",r,1),i}function c1(e,t,r=!1,i=null){let s={type:"MemberExpression",object:e,property:t,computed:r,optional:i},n=I.MemberExpression;return p(n.object,s,"object",e,1),p(n.property,s,"property",t,1),p(n.computed,s,"computed",r),p(n.optional,s,"optional",i),s}function p1(e,t){let r={type:"NewExpression",callee:e,arguments:t,typeParameters:null},i=I.NewExpression;return p(i.callee,r,"callee",e,1),p(i.arguments,r,"arguments",t,1),r}function f1(e,t=[],r="script",i=null){let s={type:"Program",body:e,directives:t,sourceType:r,interpreter:i},n=I.Program;return p(n.body,s,"body",e,1),p(n.directives,s,"directives",t,1),p(n.sourceType,s,"sourceType",r),p(n.interpreter,s,"interpreter",i,1),s}function d1(e){let t={type:"ObjectExpression",properties:e},r=I.ObjectExpression;return p(r.properties,t,"properties",e,1),t}function h1(e="method",t,r,i,s=!1,n=!1,a=!1){let o={type:"ObjectMethod",kind:e,key:t,params:r,body:i,computed:s,generator:n,async:a},l=I.ObjectMethod;return p(l.kind,o,"kind",e),p(l.key,o,"key",t,1),p(l.params,o,"params",r,1),p(l.body,o,"body",i,1),p(l.computed,o,"computed",s),p(l.generator,o,"generator",n),p(l.async,o,"async",a),o}function m1(e,t,r=!1,i=!1,s=null){let n={type:"ObjectProperty",key:e,value:t,computed:r,shorthand:i,decorators:s},a=I.ObjectProperty;return p(a.key,n,"key",e,1),p(a.value,n,"value",t,1),p(a.computed,n,"computed",r),p(a.shorthand,n,"shorthand",i),p(a.decorators,n,"decorators",s,1),n}function sd(e){let t={type:"RestElement",argument:e},r=I.RestElement;return p(r.argument,t,"argument",e,1),t}function y1(e=null){let t={type:"ReturnStatement",argument:e},r=I.ReturnStatement;return p(r.argument,t,"argument",e,1),t}function T1(e){let t={type:"SequenceExpression",expressions:e},r=I.SequenceExpression;return p(r.expressions,t,"expressions",e,1),t}function g1(e){let t={type:"ParenthesizedExpression",expression:e},r=I.ParenthesizedExpression;return p(r.expression,t,"expression",e,1),t}function S1(e=null,t){let r={type:"SwitchCase",test:e,consequent:t},i=I.SwitchCase;return p(i.test,r,"test",e,1),p(i.consequent,r,"consequent",t,1),r}function x1(e,t){let r={type:"SwitchStatement",discriminant:e,cases:t},i=I.SwitchStatement;return p(i.discriminant,r,"discriminant",e,1),p(i.cases,r,"cases",t,1),r}function b1(){return{type:"ThisExpression"}}function E1(e){let t={type:"ThrowStatement",argument:e},r=I.ThrowStatement;return p(r.argument,t,"argument",e,1),t}function P1(e,t=null,r=null){let i={type:"TryStatement",block:e,handler:t,finalizer:r},s=I.TryStatement;return p(s.block,i,"block",e,1),p(s.handler,i,"handler",t,1),p(s.finalizer,i,"finalizer",r,1),i}function A1(e,t,r=!0){let i={type:"UnaryExpression",operator:e,argument:t,prefix:r},s=I.UnaryExpression;return p(s.operator,i,"operator",e),p(s.argument,i,"argument",t,1),p(s.prefix,i,"prefix",r),i}function v1(e,t,r=!1){let i={type:"UpdateExpression",operator:e,argument:t,prefix:r},s=I.UpdateExpression;return p(s.operator,i,"operator",e),p(s.argument,i,"argument",t,1),p(s.prefix,i,"prefix",r),i}function C1(e,t){let r={type:"VariableDeclaration",kind:e,declarations:t},i=I.VariableDeclaration;return p(i.kind,r,"kind",e),p(i.declarations,r,"declarations",t,1),r}function I1(e,t=null){let r={type:"VariableDeclarator",id:e,init:t},i=I.VariableDeclarator;return p(i.id,r,"id",e,1),p(i.init,r,"init",t,1),r}function w1(e,t){let r={type:"WhileStatement",test:e,body:t},i=I.WhileStatement;return p(i.test,r,"test",e,1),p(i.body,r,"body",t,1),r}function N1(e,t){let r={type:"WithStatement",object:e,body:t},i=I.WithStatement;return p(i.object,r,"object",e,1),p(i.body,r,"body",t,1),r}function O1(e,t){let r={type:"AssignmentPattern",left:e,right:t},i=I.AssignmentPattern;return p(i.left,r,"left",e,1),p(i.right,r,"right",t,1),r}function _1(e){let t={type:"ArrayPattern",elements:e},r=I.ArrayPattern;return p(r.elements,t,"elements",e,1),t}function k1(e,t,r=!1){let i={type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null},s=I.ArrowFunctionExpression;return p(s.params,i,"params",e,1),p(s.body,i,"body",t,1),p(s.async,i,"async",r),i}function D1(e){let t={type:"ClassBody",body:e},r=I.ClassBody;return p(r.body,t,"body",e,1),t}function L1(e=null,t=null,r,i=null){let s={type:"ClassExpression",id:e,superClass:t,body:r,decorators:i},n=I.ClassExpression;return p(n.id,s,"id",e,1),p(n.superClass,s,"superClass",t,1),p(n.body,s,"body",r,1),p(n.decorators,s,"decorators",i,1),s}function M1(e=null,t=null,r,i=null){let s={type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:i},n=I.ClassDeclaration;return p(n.id,s,"id",e,1),p(n.superClass,s,"superClass",t,1),p(n.body,s,"body",r,1),p(n.decorators,s,"decorators",i,1),s}function B1(e,t=null){let r={type:"ExportAllDeclaration",source:e,attributes:t},i=I.ExportAllDeclaration;return p(i.source,r,"source",e,1),p(i.attributes,r,"attributes",t,1),r}function F1(e){let t={type:"ExportDefaultDeclaration",declaration:e},r=I.ExportDefaultDeclaration;return p(r.declaration,t,"declaration",e,1),t}function R1(e=null,t=[],r=null,i=null){let s={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r,attributes:i},n=I.ExportNamedDeclaration;return p(n.declaration,s,"declaration",e,1),p(n.specifiers,s,"specifiers",t,1),p(n.source,s,"source",r,1),p(n.attributes,s,"attributes",i,1),s}function j1(e,t){let r={type:"ExportSpecifier",local:e,exported:t},i=I.ExportSpecifier;return p(i.local,r,"local",e,1),p(i.exported,r,"exported",t,1),r}function q1(e,t,r,i=!1){let s={type:"ForOfStatement",left:e,right:t,body:r,await:i},n=I.ForOfStatement;return p(n.left,s,"left",e,1),p(n.right,s,"right",t,1),p(n.body,s,"body",r,1),p(n.await,s,"await",i),s}function U1(e,t,r=null){let i={type:"ImportDeclaration",specifiers:e,source:t,attributes:r},s=I.ImportDeclaration;return p(s.specifiers,i,"specifiers",e,1),p(s.source,i,"source",t,1),p(s.attributes,i,"attributes",r,1),i}function K1(e){let t={type:"ImportDefaultSpecifier",local:e},r=I.ImportDefaultSpecifier;return p(r.local,t,"local",e,1),t}function V1(e){let t={type:"ImportNamespaceSpecifier",local:e},r=I.ImportNamespaceSpecifier;return p(r.local,t,"local",e,1),t}function $1(e,t){let r={type:"ImportSpecifier",local:e,imported:t},i=I.ImportSpecifier;return p(i.local,r,"local",e,1),p(i.imported,r,"imported",t,1),r}function J1(e,t=null){let r={type:"ImportExpression",source:e,options:t},i=I.ImportExpression;return p(i.source,r,"source",e,1),p(i.options,r,"options",t,1),r}function X1(e,t){let r={type:"MetaProperty",meta:e,property:t},i=I.MetaProperty;return p(i.meta,r,"meta",e,1),p(i.property,r,"property",t,1),r}function Y1(e="method",t,r,i,s=!1,n=!1,a=!1,o=!1){let l={type:"ClassMethod",kind:e,key:t,params:r,body:i,computed:s,static:n,generator:a,async:o},u=I.ClassMethod;return p(u.kind,l,"kind",e),p(u.key,l,"key",t,1),p(u.params,l,"params",r,1),p(u.body,l,"body",i,1),p(u.computed,l,"computed",s),p(u.static,l,"static",n),p(u.generator,l,"generator",a),p(u.async,l,"async",o),l}function W1(e){let t={type:"ObjectPattern",properties:e},r=I.ObjectPattern;return p(r.properties,t,"properties",e,1),t}function nd(e){let t={type:"SpreadElement",argument:e},r=I.SpreadElement;return p(r.argument,t,"argument",e,1),t}function H1(){return{type:"Super"}}function z1(e,t){let r={type:"TaggedTemplateExpression",tag:e,quasi:t},i=I.TaggedTemplateExpression;return p(i.tag,r,"tag",e,1),p(i.quasi,r,"quasi",t,1),r}function G1(e,t=!1){let r={type:"TemplateElement",value:e,tail:t},i=I.TemplateElement;return p(i.value,r,"value",e),p(i.tail,r,"tail",t),r}function Q1(e,t){let r={type:"TemplateLiteral",quasis:e,expressions:t},i=I.TemplateLiteral;return p(i.quasis,r,"quasis",e,1),p(i.expressions,r,"expressions",t,1),r}function Z1(e=null,t=!1){let r={type:"YieldExpression",argument:e,delegate:t},i=I.YieldExpression;return p(i.argument,r,"argument",e,1),p(i.delegate,r,"delegate",t),r}function eC(e){let t={type:"AwaitExpression",argument:e},r=I.AwaitExpression;return p(r.argument,t,"argument",e,1),t}function tC(){return{type:"Import"}}function rC(e){let t={type:"ExportNamespaceSpecifier",exported:e},r=I.ExportNamespaceSpecifier;return p(r.exported,t,"exported",e,1),t}function iC(e,t,r=!1,i){let s={type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:i},n=I.OptionalMemberExpression;return p(n.object,s,"object",e,1),p(n.property,s,"property",t,1),p(n.computed,s,"computed",r),p(n.optional,s,"optional",i),s}function sC(e,t,r){let i={type:"OptionalCallExpression",callee:e,arguments:t,optional:r},s=I.OptionalCallExpression;return p(s.callee,i,"callee",e,1),p(s.arguments,i,"arguments",t,1),p(s.optional,i,"optional",r),i}function nC(e,t=null,r=null,i=null,s=!1,n=!1){let a={type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:i,computed:s,static:n},o=I.ClassProperty;return p(o.key,a,"key",e,1),p(o.value,a,"value",t,1),p(o.typeAnnotation,a,"typeAnnotation",r,1),p(o.decorators,a,"decorators",i,1),p(o.computed,a,"computed",s),p(o.static,a,"static",n),a}function aC(e,t=null,r=null,i=null,s=!1,n=!1){let a={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:i,computed:s,static:n},o=I.ClassAccessorProperty;return p(o.key,a,"key",e,1),p(o.value,a,"value",t,1),p(o.typeAnnotation,a,"typeAnnotation",r,1),p(o.decorators,a,"decorators",i,1),p(o.computed,a,"computed",s),p(o.static,a,"static",n),a}function oC(e,t=null,r=null,i=!1){let s={type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:i},n=I.ClassPrivateProperty;return p(n.key,s,"key",e,1),p(n.value,s,"value",t,1),p(n.decorators,s,"decorators",r,1),p(n.static,s,"static",i),s}function lC(e="method",t,r,i,s=!1){let n={type:"ClassPrivateMethod",kind:e,key:t,params:r,body:i,static:s},a=I.ClassPrivateMethod;return p(a.kind,n,"kind",e),p(a.key,n,"key",t,1),p(a.params,n,"params",r,1),p(a.body,n,"body",i,1),p(a.static,n,"static",s),n}function uC(e){let t={type:"PrivateName",id:e},r=I.PrivateName;return p(r.id,t,"id",e,1),t}function cC(e){let t={type:"StaticBlock",body:e},r=I.StaticBlock;return p(r.body,t,"body",e,1),t}function pC(e,t){let r={type:"ImportAttribute",key:e,value:t},i=I.ImportAttribute;return p(i.key,r,"key",e,1),p(i.value,r,"value",t,1),r}function fC(){return{type:"AnyTypeAnnotation"}}function dC(e){let t={type:"ArrayTypeAnnotation",elementType:e},r=I.ArrayTypeAnnotation;return p(r.elementType,t,"elementType",e,1),t}function hC(){return{type:"BooleanTypeAnnotation"}}function mC(e){let t={type:"BooleanLiteralTypeAnnotation",value:e},r=I.BooleanLiteralTypeAnnotation;return p(r.value,t,"value",e),t}function yC(){return{type:"NullLiteralTypeAnnotation"}}function TC(e,t=null){let r={type:"ClassImplements",id:e,typeParameters:t},i=I.ClassImplements;return p(i.id,r,"id",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function gC(e,t=null,r=null,i){let s={type:"DeclareClass",id:e,typeParameters:t,extends:r,body:i},n=I.DeclareClass;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.extends,s,"extends",r,1),p(n.body,s,"body",i,1),s}function SC(e){let t={type:"DeclareFunction",id:e},r=I.DeclareFunction;return p(r.id,t,"id",e,1),t}function xC(e,t=null,r=null,i){let s={type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:i},n=I.DeclareInterface;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.extends,s,"extends",r,1),p(n.body,s,"body",i,1),s}function bC(e,t,r=null){let i={type:"DeclareModule",id:e,body:t,kind:r},s=I.DeclareModule;return p(s.id,i,"id",e,1),p(s.body,i,"body",t,1),p(s.kind,i,"kind",r),i}function EC(e){let t={type:"DeclareModuleExports",typeAnnotation:e},r=I.DeclareModuleExports;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function PC(e,t=null,r){let i={type:"DeclareTypeAlias",id:e,typeParameters:t,right:r},s=I.DeclareTypeAlias;return p(s.id,i,"id",e,1),p(s.typeParameters,i,"typeParameters",t,1),p(s.right,i,"right",r,1),i}function AC(e,t=null,r=null){let i={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r},s=I.DeclareOpaqueType;return p(s.id,i,"id",e,1),p(s.typeParameters,i,"typeParameters",t,1),p(s.supertype,i,"supertype",r,1),i}function vC(e){let t={type:"DeclareVariable",id:e},r=I.DeclareVariable;return p(r.id,t,"id",e,1),t}function CC(e=null,t=null,r=null,i=null){let s={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r,attributes:i},n=I.DeclareExportDeclaration;return p(n.declaration,s,"declaration",e,1),p(n.specifiers,s,"specifiers",t,1),p(n.source,s,"source",r,1),p(n.attributes,s,"attributes",i,1),s}function IC(e,t=null){let r={type:"DeclareExportAllDeclaration",source:e,attributes:t},i=I.DeclareExportAllDeclaration;return p(i.source,r,"source",e,1),p(i.attributes,r,"attributes",t,1),r}function wC(e){let t={type:"DeclaredPredicate",value:e},r=I.DeclaredPredicate;return p(r.value,t,"value",e,1),t}function NC(){return{type:"ExistsTypeAnnotation"}}function OC(e=null,t,r=null,i){let s={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:i},n=I.FunctionTypeAnnotation;return p(n.typeParameters,s,"typeParameters",e,1),p(n.params,s,"params",t,1),p(n.rest,s,"rest",r,1),p(n.returnType,s,"returnType",i,1),s}function _C(e=null,t){let r={type:"FunctionTypeParam",name:e,typeAnnotation:t},i=I.FunctionTypeParam;return p(i.name,r,"name",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function kC(e,t=null){let r={type:"GenericTypeAnnotation",id:e,typeParameters:t},i=I.GenericTypeAnnotation;return p(i.id,r,"id",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function DC(){return{type:"InferredPredicate"}}function LC(e,t=null){let r={type:"InterfaceExtends",id:e,typeParameters:t},i=I.InterfaceExtends;return p(i.id,r,"id",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function MC(e,t=null,r=null,i){let s={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:i},n=I.InterfaceDeclaration;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.extends,s,"extends",r,1),p(n.body,s,"body",i,1),s}function BC(e=null,t){let r={type:"InterfaceTypeAnnotation",extends:e,body:t},i=I.InterfaceTypeAnnotation;return p(i.extends,r,"extends",e,1),p(i.body,r,"body",t,1),r}function FC(e){let t={type:"IntersectionTypeAnnotation",types:e},r=I.IntersectionTypeAnnotation;return p(r.types,t,"types",e,1),t}function RC(){return{type:"MixedTypeAnnotation"}}function jC(){return{type:"EmptyTypeAnnotation"}}function qC(e){let t={type:"NullableTypeAnnotation",typeAnnotation:e},r=I.NullableTypeAnnotation;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function UC(e){let t={type:"NumberLiteralTypeAnnotation",value:e},r=I.NumberLiteralTypeAnnotation;return p(r.value,t,"value",e),t}function KC(){return{type:"NumberTypeAnnotation"}}function VC(e,t=[],r=[],i=[],s=!1){let n={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:i,exact:s},a=I.ObjectTypeAnnotation;return p(a.properties,n,"properties",e,1),p(a.indexers,n,"indexers",t,1),p(a.callProperties,n,"callProperties",r,1),p(a.internalSlots,n,"internalSlots",i,1),p(a.exact,n,"exact",s),n}function $C(e,t,r,i,s){let n={type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:i,method:s},a=I.ObjectTypeInternalSlot;return p(a.id,n,"id",e,1),p(a.value,n,"value",t,1),p(a.optional,n,"optional",r),p(a.static,n,"static",i),p(a.method,n,"method",s),n}function JC(e){let t={type:"ObjectTypeCallProperty",value:e,static:null},r=I.ObjectTypeCallProperty;return p(r.value,t,"value",e,1),t}function XC(e=null,t,r,i=null){let s={type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:i,static:null},n=I.ObjectTypeIndexer;return p(n.id,s,"id",e,1),p(n.key,s,"key",t,1),p(n.value,s,"value",r,1),p(n.variance,s,"variance",i,1),s}function YC(e,t,r=null){let i={type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null},s=I.ObjectTypeProperty;return p(s.key,i,"key",e,1),p(s.value,i,"value",t,1),p(s.variance,i,"variance",r,1),i}function WC(e){let t={type:"ObjectTypeSpreadProperty",argument:e},r=I.ObjectTypeSpreadProperty;return p(r.argument,t,"argument",e,1),t}function HC(e,t=null,r=null,i){let s={type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:i},n=I.OpaqueType;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.supertype,s,"supertype",r,1),p(n.impltype,s,"impltype",i,1),s}function zC(e,t){let r={type:"QualifiedTypeIdentifier",id:e,qualification:t},i=I.QualifiedTypeIdentifier;return p(i.id,r,"id",e,1),p(i.qualification,r,"qualification",t,1),r}function GC(e){let t={type:"StringLiteralTypeAnnotation",value:e},r=I.StringLiteralTypeAnnotation;return p(r.value,t,"value",e),t}function QC(){return{type:"StringTypeAnnotation"}}function ZC(){return{type:"SymbolTypeAnnotation"}}function eI(){return{type:"ThisTypeAnnotation"}}function tI(e){let t={type:"TupleTypeAnnotation",types:e},r=I.TupleTypeAnnotation;return p(r.types,t,"types",e,1),t}function rI(e){let t={type:"TypeofTypeAnnotation",argument:e},r=I.TypeofTypeAnnotation;return p(r.argument,t,"argument",e,1),t}function iI(e,t=null,r){let i={type:"TypeAlias",id:e,typeParameters:t,right:r},s=I.TypeAlias;return p(s.id,i,"id",e,1),p(s.typeParameters,i,"typeParameters",t,1),p(s.right,i,"right",r,1),i}function sI(e){let t={type:"TypeAnnotation",typeAnnotation:e},r=I.TypeAnnotation;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function nI(e,t){let r={type:"TypeCastExpression",expression:e,typeAnnotation:t},i=I.TypeCastExpression;return p(i.expression,r,"expression",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function aI(e=null,t=null,r=null){let i={type:"TypeParameter",bound:e,default:t,variance:r,name:null},s=I.TypeParameter;return p(s.bound,i,"bound",e,1),p(s.default,i,"default",t,1),p(s.variance,i,"variance",r,1),i}function oI(e){let t={type:"TypeParameterDeclaration",params:e},r=I.TypeParameterDeclaration;return p(r.params,t,"params",e,1),t}function lI(e){let t={type:"TypeParameterInstantiation",params:e},r=I.TypeParameterInstantiation;return p(r.params,t,"params",e,1),t}function uI(e){let t={type:"UnionTypeAnnotation",types:e},r=I.UnionTypeAnnotation;return p(r.types,t,"types",e,1),t}function cI(e){let t={type:"Variance",kind:e},r=I.Variance;return p(r.kind,t,"kind",e),t}function pI(){return{type:"VoidTypeAnnotation"}}function fI(e,t){let r={type:"EnumDeclaration",id:e,body:t},i=I.EnumDeclaration;return p(i.id,r,"id",e,1),p(i.body,r,"body",t,1),r}function dI(e){let t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null},r=I.EnumBooleanBody;return p(r.members,t,"members",e,1),t}function hI(e){let t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},r=I.EnumNumberBody;return p(r.members,t,"members",e,1),t}function mI(e){let t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},r=I.EnumStringBody;return p(r.members,t,"members",e,1),t}function yI(e){let t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},r=I.EnumSymbolBody;return p(r.members,t,"members",e,1),t}function TI(e){let t={type:"EnumBooleanMember",id:e,init:null},r=I.EnumBooleanMember;return p(r.id,t,"id",e,1),t}function gI(e,t){let r={type:"EnumNumberMember",id:e,init:t},i=I.EnumNumberMember;return p(i.id,r,"id",e,1),p(i.init,r,"init",t,1),r}function SI(e,t){let r={type:"EnumStringMember",id:e,init:t},i=I.EnumStringMember;return p(i.id,r,"id",e,1),p(i.init,r,"init",t,1),r}function xI(e){let t={type:"EnumDefaultedMember",id:e},r=I.EnumDefaultedMember;return p(r.id,t,"id",e,1),t}function bI(e,t){let r={type:"IndexedAccessType",objectType:e,indexType:t},i=I.IndexedAccessType;return p(i.objectType,r,"objectType",e,1),p(i.indexType,r,"indexType",t,1),r}function EI(e,t){let r={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},i=I.OptionalIndexedAccessType;return p(i.objectType,r,"objectType",e,1),p(i.indexType,r,"indexType",t,1),r}function PI(e,t=null){let r={type:"JSXAttribute",name:e,value:t},i=I.JSXAttribute;return p(i.name,r,"name",e,1),p(i.value,r,"value",t,1),r}function AI(e){let t={type:"JSXClosingElement",name:e},r=I.JSXClosingElement;return p(r.name,t,"name",e,1),t}function vI(e,t=null,r,i=null){let s={type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:i},n=I.JSXElement;return p(n.openingElement,s,"openingElement",e,1),p(n.closingElement,s,"closingElement",t,1),p(n.children,s,"children",r,1),p(n.selfClosing,s,"selfClosing",i),s}function CI(){return{type:"JSXEmptyExpression"}}function II(e){let t={type:"JSXExpressionContainer",expression:e},r=I.JSXExpressionContainer;return p(r.expression,t,"expression",e,1),t}function wI(e){let t={type:"JSXSpreadChild",expression:e},r=I.JSXSpreadChild;return p(r.expression,t,"expression",e,1),t}function NI(e){let t={type:"JSXIdentifier",name:e},r=I.JSXIdentifier;return p(r.name,t,"name",e),t}function OI(e,t){let r={type:"JSXMemberExpression",object:e,property:t},i=I.JSXMemberExpression;return p(i.object,r,"object",e,1),p(i.property,r,"property",t,1),r}function _I(e,t){let r={type:"JSXNamespacedName",namespace:e,name:t},i=I.JSXNamespacedName;return p(i.namespace,r,"namespace",e,1),p(i.name,r,"name",t,1),r}function kI(e,t,r=!1){let i={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r},s=I.JSXOpeningElement;return p(s.name,i,"name",e,1),p(s.attributes,i,"attributes",t,1),p(s.selfClosing,i,"selfClosing",r),i}function DI(e){let t={type:"JSXSpreadAttribute",argument:e},r=I.JSXSpreadAttribute;return p(r.argument,t,"argument",e,1),t}function LI(e){let t={type:"JSXText",value:e},r=I.JSXText;return p(r.value,t,"value",e),t}function MI(e,t,r){let i={type:"JSXFragment",openingFragment:e,closingFragment:t,children:r},s=I.JSXFragment;return p(s.openingFragment,i,"openingFragment",e,1),p(s.closingFragment,i,"closingFragment",t,1),p(s.children,i,"children",r,1),i}function BI(){return{type:"JSXOpeningFragment"}}function FI(){return{type:"JSXClosingFragment"}}function RI(){return{type:"Noop"}}function jI(e,t){let r={type:"Placeholder",expectedNode:e,name:t},i=I.Placeholder;return p(i.expectedNode,r,"expectedNode",e),p(i.name,r,"name",t,1),r}function qI(e){let t={type:"V8IntrinsicIdentifier",name:e},r=I.V8IntrinsicIdentifier;return p(r.name,t,"name",e),t}function UI(){return{type:"ArgumentPlaceholder"}}function KI(e,t){let r={type:"BindExpression",object:e,callee:t},i=I.BindExpression;return p(i.object,r,"object",e,1),p(i.callee,r,"callee",t,1),r}function VI(e){let t={type:"Decorator",expression:e},r=I.Decorator;return p(r.expression,t,"expression",e,1),t}function $I(e,t=!1){let r={type:"DoExpression",body:e,async:t},i=I.DoExpression;return p(i.body,r,"body",e,1),p(i.async,r,"async",t),r}function JI(e){let t={type:"ExportDefaultSpecifier",exported:e},r=I.ExportDefaultSpecifier;return p(r.exported,t,"exported",e,1),t}function XI(e){let t={type:"RecordExpression",properties:e},r=I.RecordExpression;return p(r.properties,t,"properties",e,1),t}function YI(e=[]){let t={type:"TupleExpression",elements:e},r=I.TupleExpression;return p(r.elements,t,"elements",e,1),t}function WI(e){let t={type:"DecimalLiteral",value:e},r=I.DecimalLiteral;return p(r.value,t,"value",e),t}function HI(e){let t={type:"ModuleExpression",body:e},r=I.ModuleExpression;return p(r.body,t,"body",e,1),t}function zI(){return{type:"TopicReference"}}function GI(e){let t={type:"PipelineTopicExpression",expression:e},r=I.PipelineTopicExpression;return p(r.expression,t,"expression",e,1),t}function QI(e){let t={type:"PipelineBareFunction",callee:e},r=I.PipelineBareFunction;return p(r.callee,t,"callee",e,1),t}function ZI(){return{type:"PipelinePrimaryTopicReference"}}function ew(){return{type:"VoidPattern"}}function tw(e){let t={type:"TSParameterProperty",parameter:e},r=I.TSParameterProperty;return p(r.parameter,t,"parameter",e,1),t}function rw(e=null,t=null,r,i=null){let s={type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:i},n=I.TSDeclareFunction;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.params,s,"params",r,1),p(n.returnType,s,"returnType",i,1),s}function iw(e=null,t,r=null,i,s=null){let n={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:i,returnType:s},a=I.TSDeclareMethod;return p(a.decorators,n,"decorators",e,1),p(a.key,n,"key",t,1),p(a.typeParameters,n,"typeParameters",r,1),p(a.params,n,"params",i,1),p(a.returnType,n,"returnType",s,1),n}function sw(e,t){let r={type:"TSQualifiedName",left:e,right:t},i=I.TSQualifiedName;return p(i.left,r,"left",e,1),p(i.right,r,"right",t,1),r}function nw(e=null,t,r=null){let i={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},s=I.TSCallSignatureDeclaration;return p(s.typeParameters,i,"typeParameters",e,1),p(s.parameters,i,"parameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function aw(e=null,t,r=null){let i={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},s=I.TSConstructSignatureDeclaration;return p(s.typeParameters,i,"typeParameters",e,1),p(s.parameters,i,"parameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function ow(e,t=null){let r={type:"TSPropertySignature",key:e,typeAnnotation:t},i=I.TSPropertySignature;return p(i.key,r,"key",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function lw(e,t=null,r,i=null){let s={type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:i,kind:null},n=I.TSMethodSignature;return p(n.key,s,"key",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.parameters,s,"parameters",r,1),p(n.typeAnnotation,s,"typeAnnotation",i,1),s}function uw(e,t=null){let r={type:"TSIndexSignature",parameters:e,typeAnnotation:t},i=I.TSIndexSignature;return p(i.parameters,r,"parameters",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function cw(){return{type:"TSAnyKeyword"}}function pw(){return{type:"TSBooleanKeyword"}}function fw(){return{type:"TSBigIntKeyword"}}function dw(){return{type:"TSIntrinsicKeyword"}}function hw(){return{type:"TSNeverKeyword"}}function mw(){return{type:"TSNullKeyword"}}function yw(){return{type:"TSNumberKeyword"}}function Tw(){return{type:"TSObjectKeyword"}}function gw(){return{type:"TSStringKeyword"}}function Sw(){return{type:"TSSymbolKeyword"}}function xw(){return{type:"TSUndefinedKeyword"}}function bw(){return{type:"TSUnknownKeyword"}}function Ew(){return{type:"TSVoidKeyword"}}function Pw(){return{type:"TSThisType"}}function Aw(e=null,t,r=null){let i={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r},s=I.TSFunctionType;return p(s.typeParameters,i,"typeParameters",e,1),p(s.parameters,i,"parameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function vw(e=null,t,r=null){let i={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r},s=I.TSConstructorType;return p(s.typeParameters,i,"typeParameters",e,1),p(s.parameters,i,"parameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function Cw(e,t=null){let r={type:"TSTypeReference",typeName:e,typeParameters:t},i=I.TSTypeReference;return p(i.typeName,r,"typeName",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function Iw(e,t=null,r=null){let i={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r},s=I.TSTypePredicate;return p(s.parameterName,i,"parameterName",e,1),p(s.typeAnnotation,i,"typeAnnotation",t,1),p(s.asserts,i,"asserts",r),i}function ww(e,t=null){let r={type:"TSTypeQuery",exprName:e,typeParameters:t},i=I.TSTypeQuery;return p(i.exprName,r,"exprName",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function Nw(e){let t={type:"TSTypeLiteral",members:e},r=I.TSTypeLiteral;return p(r.members,t,"members",e,1),t}function Ow(e){let t={type:"TSArrayType",elementType:e},r=I.TSArrayType;return p(r.elementType,t,"elementType",e,1),t}function _w(e){let t={type:"TSTupleType",elementTypes:e},r=I.TSTupleType;return p(r.elementTypes,t,"elementTypes",e,1),t}function kw(e){let t={type:"TSOptionalType",typeAnnotation:e},r=I.TSOptionalType;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function Dw(e){let t={type:"TSRestType",typeAnnotation:e},r=I.TSRestType;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function Lw(e,t,r=!1){let i={type:"TSNamedTupleMember",label:e,elementType:t,optional:r},s=I.TSNamedTupleMember;return p(s.label,i,"label",e,1),p(s.elementType,i,"elementType",t,1),p(s.optional,i,"optional",r),i}function Mw(e){let t={type:"TSUnionType",types:e},r=I.TSUnionType;return p(r.types,t,"types",e,1),t}function Bw(e){let t={type:"TSIntersectionType",types:e},r=I.TSIntersectionType;return p(r.types,t,"types",e,1),t}function Fw(e,t,r,i){let s={type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:i},n=I.TSConditionalType;return p(n.checkType,s,"checkType",e,1),p(n.extendsType,s,"extendsType",t,1),p(n.trueType,s,"trueType",r,1),p(n.falseType,s,"falseType",i,1),s}function Rw(e){let t={type:"TSInferType",typeParameter:e},r=I.TSInferType;return p(r.typeParameter,t,"typeParameter",e,1),t}function jw(e){let t={type:"TSParenthesizedType",typeAnnotation:e},r=I.TSParenthesizedType;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function qw(e,t="keyof"){let r={type:"TSTypeOperator",typeAnnotation:e,operator:t},i=I.TSTypeOperator;return p(i.typeAnnotation,r,"typeAnnotation",e,1),p(i.operator,r,"operator",t),r}function Uw(e,t){let r={type:"TSIndexedAccessType",objectType:e,indexType:t},i=I.TSIndexedAccessType;return p(i.objectType,r,"objectType",e,1),p(i.indexType,r,"indexType",t,1),r}function Kw(e,t=null,r=null){let i={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r},s=I.TSMappedType;return p(s.typeParameter,i,"typeParameter",e,1),p(s.typeAnnotation,i,"typeAnnotation",t,1),p(s.nameType,i,"nameType",r,1),i}function Vw(e,t){let r={type:"TSTemplateLiteralType",quasis:e,types:t},i=I.TSTemplateLiteralType;return p(i.quasis,r,"quasis",e,1),p(i.types,r,"types",t,1),r}function $w(e){let t={type:"TSLiteralType",literal:e},r=I.TSLiteralType;return p(r.literal,t,"literal",e,1),t}function Jw(e,t=null){let r={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},i=I.TSExpressionWithTypeArguments;return p(i.expression,r,"expression",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function Xw(e,t=null,r=null,i){let s={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:i},n=I.TSInterfaceDeclaration;return p(n.id,s,"id",e,1),p(n.typeParameters,s,"typeParameters",t,1),p(n.extends,s,"extends",r,1),p(n.body,s,"body",i,1),s}function Yw(e){let t={type:"TSInterfaceBody",body:e},r=I.TSInterfaceBody;return p(r.body,t,"body",e,1),t}function Ww(e,t=null,r){let i={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r},s=I.TSTypeAliasDeclaration;return p(s.id,i,"id",e,1),p(s.typeParameters,i,"typeParameters",t,1),p(s.typeAnnotation,i,"typeAnnotation",r,1),i}function Hw(e,t=null){let r={type:"TSInstantiationExpression",expression:e,typeParameters:t},i=I.TSInstantiationExpression;return p(i.expression,r,"expression",e,1),p(i.typeParameters,r,"typeParameters",t,1),r}function zw(e,t){let r={type:"TSAsExpression",expression:e,typeAnnotation:t},i=I.TSAsExpression;return p(i.expression,r,"expression",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function Gw(e,t){let r={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},i=I.TSSatisfiesExpression;return p(i.expression,r,"expression",e,1),p(i.typeAnnotation,r,"typeAnnotation",t,1),r}function Qw(e,t){let r={type:"TSTypeAssertion",typeAnnotation:e,expression:t},i=I.TSTypeAssertion;return p(i.typeAnnotation,r,"typeAnnotation",e,1),p(i.expression,r,"expression",t,1),r}function Zw(e){let t={type:"TSEnumBody",members:e},r=I.TSEnumBody;return p(r.members,t,"members",e,1),t}function eN(e,t){let r={type:"TSEnumDeclaration",id:e,members:t},i=I.TSEnumDeclaration;return p(i.id,r,"id",e,1),p(i.members,r,"members",t,1),r}function tN(e,t=null){let r={type:"TSEnumMember",id:e,initializer:t},i=I.TSEnumMember;return p(i.id,r,"id",e,1),p(i.initializer,r,"initializer",t,1),r}function rN(e,t){let r={type:"TSModuleDeclaration",id:e,body:t,kind:null},i=I.TSModuleDeclaration;return p(i.id,r,"id",e,1),p(i.body,r,"body",t,1),r}function iN(e){let t={type:"TSModuleBlock",body:e},r=I.TSModuleBlock;return p(r.body,t,"body",e,1),t}function sN(e,t=null,r=null){let i={type:"TSImportType",argument:e,qualifier:t,typeParameters:r},s=I.TSImportType;return p(s.argument,i,"argument",e,1),p(s.qualifier,i,"qualifier",t,1),p(s.typeParameters,i,"typeParameters",r,1),i}function nN(e,t){let r={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},i=I.TSImportEqualsDeclaration;return p(i.id,r,"id",e,1),p(i.moduleReference,r,"moduleReference",t,1),r}function aN(e){let t={type:"TSExternalModuleReference",expression:e},r=I.TSExternalModuleReference;return p(r.expression,t,"expression",e,1),t}function oN(e){let t={type:"TSNonNullExpression",expression:e},r=I.TSNonNullExpression;return p(r.expression,t,"expression",e,1),t}function lN(e){let t={type:"TSExportAssignment",expression:e},r=I.TSExportAssignment;return p(r.expression,t,"expression",e,1),t}function uN(e){let t={type:"TSNamespaceExportDeclaration",id:e},r=I.TSNamespaceExportDeclaration;return p(r.id,t,"id",e,1),t}function cN(e){let t={type:"TSTypeAnnotation",typeAnnotation:e},r=I.TSTypeAnnotation;return p(r.typeAnnotation,t,"typeAnnotation",e,1),t}function pN(e){let t={type:"TSTypeParameterInstantiation",params:e},r=I.TSTypeParameterInstantiation;return p(r.params,t,"params",e,1),t}function fN(e){let t={type:"TSTypeParameterDeclaration",params:e},r=I.TSTypeParameterDeclaration;return p(r.params,t,"params",e,1),t}function dN(e=null,t=null,r){let i={type:"TSTypeParameter",constraint:e,default:t,name:r},s=I.TSTypeParameter;return p(s.constraint,i,"constraint",e,1),p(s.default,i,"default",t,1),p(s.name,i,"name",r),i}function hN(e){return(0,bn.default)("NumberLiteral","NumericLiteral","The node type "),rd(e)}function mN(e,t=""){return(0,bn.default)("RegexLiteral","RegExpLiteral","The node type "),id(e,t)}function yN(e){return(0,bn.default)("RestProperty","RestElement","The node type "),sd(e)}function TN(e){return(0,bn.default)("SpreadProperty","SpreadElement","The node type "),nd(e)}});var ad=N(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});c.JSXIdentifier=c.JSXFragment=c.JSXExpressionContainer=c.JSXEmptyExpression=c.JSXElement=c.JSXClosingFragment=c.JSXClosingElement=c.JSXAttribute=c.IntersectionTypeAnnotation=c.InterpreterDirective=c.InterfaceTypeAnnotation=c.InterfaceExtends=c.InterfaceDeclaration=c.InferredPredicate=c.IndexedAccessType=c.ImportSpecifier=c.ImportNamespaceSpecifier=c.ImportExpression=c.ImportDefaultSpecifier=c.ImportDeclaration=c.ImportAttribute=c.Import=c.IfStatement=c.Identifier=c.GenericTypeAnnotation=c.FunctionTypeParam=c.FunctionTypeAnnotation=c.FunctionExpression=c.FunctionDeclaration=c.ForStatement=c.ForOfStatement=c.ForInStatement=c.File=c.ExpressionStatement=c.ExportSpecifier=c.ExportNamespaceSpecifier=c.ExportNamedDeclaration=c.ExportDefaultSpecifier=c.ExportDefaultDeclaration=c.ExportAllDeclaration=c.ExistsTypeAnnotation=c.EnumSymbolBody=c.EnumStringMember=c.EnumStringBody=c.EnumNumberMember=c.EnumNumberBody=c.EnumDefaultedMember=c.EnumDeclaration=c.EnumBooleanMember=c.EnumBooleanBody=c.EmptyTypeAnnotation=c.EmptyStatement=c.DoWhileStatement=c.DoExpression=c.DirectiveLiteral=c.Directive=c.Decorator=c.DeclaredPredicate=c.DeclareVariable=c.DeclareTypeAlias=c.DeclareOpaqueType=c.DeclareModuleExports=c.DeclareModule=c.DeclareInterface=c.DeclareFunction=c.DeclareExportDeclaration=c.DeclareExportAllDeclaration=c.DeclareClass=c.DecimalLiteral=c.DebuggerStatement=c.ContinueStatement=c.ConditionalExpression=c.ClassProperty=c.ClassPrivateProperty=c.ClassPrivateMethod=c.ClassMethod=c.ClassImplements=c.ClassExpression=c.ClassDeclaration=c.ClassBody=c.ClassAccessorProperty=c.CatchClause=c.CallExpression=c.BreakStatement=c.BooleanTypeAnnotation=c.BooleanLiteralTypeAnnotation=c.BooleanLiteral=c.BlockStatement=c.BindExpression=c.BinaryExpression=c.BigIntLiteral=c.AwaitExpression=c.AssignmentPattern=c.AssignmentExpression=c.ArrowFunctionExpression=c.ArrayTypeAnnotation=c.ArrayPattern=c.ArrayExpression=c.ArgumentPlaceholder=c.AnyTypeAnnotation=void 0;c.TSNumberKeyword=c.TSNullKeyword=c.TSNonNullExpression=c.TSNeverKeyword=c.TSNamespaceExportDeclaration=c.TSNamedTupleMember=c.TSModuleDeclaration=c.TSModuleBlock=c.TSMethodSignature=c.TSMappedType=c.TSLiteralType=c.TSIntrinsicKeyword=c.TSIntersectionType=c.TSInterfaceDeclaration=c.TSInterfaceBody=c.TSInstantiationExpression=c.TSInferType=c.TSIndexedAccessType=c.TSIndexSignature=c.TSImportType=c.TSImportEqualsDeclaration=c.TSFunctionType=c.TSExternalModuleReference=c.TSExpressionWithTypeArguments=c.TSExportAssignment=c.TSEnumMember=c.TSEnumDeclaration=c.TSEnumBody=c.TSDeclareMethod=c.TSDeclareFunction=c.TSConstructorType=c.TSConstructSignatureDeclaration=c.TSConditionalType=c.TSCallSignatureDeclaration=c.TSBooleanKeyword=c.TSBigIntKeyword=c.TSAsExpression=c.TSArrayType=c.TSAnyKeyword=c.SymbolTypeAnnotation=c.SwitchStatement=c.SwitchCase=c.Super=c.StringTypeAnnotation=c.StringLiteralTypeAnnotation=c.StringLiteral=c.StaticBlock=c.SpreadProperty=c.SpreadElement=c.SequenceExpression=c.ReturnStatement=c.RestProperty=c.RestElement=c.RegexLiteral=c.RegExpLiteral=c.RecordExpression=c.QualifiedTypeIdentifier=c.Program=c.PrivateName=c.Placeholder=c.PipelineTopicExpression=c.PipelinePrimaryTopicReference=c.PipelineBareFunction=c.ParenthesizedExpression=c.OptionalMemberExpression=c.OptionalIndexedAccessType=c.OptionalCallExpression=c.OpaqueType=c.ObjectTypeSpreadProperty=c.ObjectTypeProperty=c.ObjectTypeInternalSlot=c.ObjectTypeIndexer=c.ObjectTypeCallProperty=c.ObjectTypeAnnotation=c.ObjectProperty=c.ObjectPattern=c.ObjectMethod=c.ObjectExpression=c.NumericLiteral=c.NumberTypeAnnotation=c.NumberLiteralTypeAnnotation=c.NumberLiteral=c.NullableTypeAnnotation=c.NullLiteralTypeAnnotation=c.NullLiteral=c.Noop=c.NewExpression=c.ModuleExpression=c.MixedTypeAnnotation=c.MetaProperty=c.MemberExpression=c.LogicalExpression=c.LabeledStatement=c.JSXText=c.JSXSpreadChild=c.JSXSpreadAttribute=c.JSXOpeningFragment=c.JSXOpeningElement=c.JSXNamespacedName=c.JSXMemberExpression=void 0;c.YieldExpression=c.WithStatement=c.WhileStatement=c.VoidTypeAnnotation=c.VoidPattern=c.Variance=c.VariableDeclarator=c.VariableDeclaration=c.V8IntrinsicIdentifier=c.UpdateExpression=c.UnionTypeAnnotation=c.UnaryExpression=c.TypeofTypeAnnotation=c.TypeParameterInstantiation=c.TypeParameterDeclaration=c.TypeParameter=c.TypeCastExpression=c.TypeAnnotation=c.TypeAlias=c.TupleTypeAnnotation=c.TupleExpression=c.TryStatement=c.TopicReference=c.ThrowStatement=c.ThisTypeAnnotation=c.ThisExpression=c.TemplateLiteral=c.TemplateElement=c.TaggedTemplateExpression=c.TSVoidKeyword=c.TSUnknownKeyword=c.TSUnionType=c.TSUndefinedKeyword=c.TSTypeReference=c.TSTypeQuery=c.TSTypePredicate=c.TSTypeParameterInstantiation=c.TSTypeParameterDeclaration=c.TSTypeParameter=c.TSTypeOperator=c.TSTypeLiteral=c.TSTypeAssertion=c.TSTypeAnnotation=c.TSTypeAliasDeclaration=c.TSTupleType=c.TSThisType=c.TSTemplateLiteralType=c.TSSymbolKeyword=c.TSStringKeyword=c.TSSatisfiesExpression=c.TSRestType=c.TSQualifiedName=c.TSPropertySignature=c.TSParenthesizedType=c.TSParameterProperty=c.TSOptionalType=c.TSObjectKeyword=void 0;var ms=Do(),FW=ki();function E(e){return ms[e]}var RW=c.ArrayExpression=E("arrayExpression"),jW=c.AssignmentExpression=E("assignmentExpression"),qW=c.BinaryExpression=E("binaryExpression"),UW=c.InterpreterDirective=E("interpreterDirective"),KW=c.Directive=E("directive"),VW=c.DirectiveLiteral=E("directiveLiteral"),$W=c.BlockStatement=E("blockStatement"),JW=c.BreakStatement=E("breakStatement"),XW=c.CallExpression=E("callExpression"),YW=c.CatchClause=E("catchClause"),WW=c.ConditionalExpression=E("conditionalExpression"),HW=c.ContinueStatement=E("continueStatement"),zW=c.DebuggerStatement=E("debuggerStatement"),GW=c.DoWhileStatement=E("doWhileStatement"),QW=c.EmptyStatement=E("emptyStatement"),ZW=c.ExpressionStatement=E("expressionStatement"),eH=c.File=E("file"),tH=c.ForInStatement=E("forInStatement"),rH=c.ForStatement=E("forStatement"),iH=c.FunctionDeclaration=E("functionDeclaration"),sH=c.FunctionExpression=E("functionExpression"),nH=c.Identifier=E("identifier"),aH=c.IfStatement=E("ifStatement"),oH=c.LabeledStatement=E("labeledStatement"),lH=c.StringLiteral=E("stringLiteral"),uH=c.NumericLiteral=E("numericLiteral"),cH=c.NullLiteral=E("nullLiteral"),pH=c.BooleanLiteral=E("booleanLiteral"),fH=c.RegExpLiteral=E("regExpLiteral"),dH=c.LogicalExpression=E("logicalExpression"),hH=c.MemberExpression=E("memberExpression"),mH=c.NewExpression=E("newExpression"),yH=c.Program=E("program"),TH=c.ObjectExpression=E("objectExpression"),gH=c.ObjectMethod=E("objectMethod"),SH=c.ObjectProperty=E("objectProperty"),xH=c.RestElement=E("restElement"),bH=c.ReturnStatement=E("returnStatement"),EH=c.SequenceExpression=E("sequenceExpression"),PH=c.ParenthesizedExpression=E("parenthesizedExpression"),AH=c.SwitchCase=E("switchCase"),vH=c.SwitchStatement=E("switchStatement"),CH=c.ThisExpression=E("thisExpression"),IH=c.ThrowStatement=E("throwStatement"),wH=c.TryStatement=E("tryStatement"),NH=c.UnaryExpression=E("unaryExpression"),OH=c.UpdateExpression=E("updateExpression"),_H=c.VariableDeclaration=E("variableDeclaration"),kH=c.VariableDeclarator=E("variableDeclarator"),DH=c.WhileStatement=E("whileStatement"),LH=c.WithStatement=E("withStatement"),MH=c.AssignmentPattern=E("assignmentPattern"),BH=c.ArrayPattern=E("arrayPattern"),FH=c.ArrowFunctionExpression=E("arrowFunctionExpression"),RH=c.ClassBody=E("classBody"),jH=c.ClassExpression=E("classExpression"),qH=c.ClassDeclaration=E("classDeclaration"),UH=c.ExportAllDeclaration=E("exportAllDeclaration"),KH=c.ExportDefaultDeclaration=E("exportDefaultDeclaration"),VH=c.ExportNamedDeclaration=E("exportNamedDeclaration"),$H=c.ExportSpecifier=E("exportSpecifier"),JH=c.ForOfStatement=E("forOfStatement"),XH=c.ImportDeclaration=E("importDeclaration"),YH=c.ImportDefaultSpecifier=E("importDefaultSpecifier"),WH=c.ImportNamespaceSpecifier=E("importNamespaceSpecifier"),HH=c.ImportSpecifier=E("importSpecifier"),zH=c.ImportExpression=E("importExpression"),GH=c.MetaProperty=E("metaProperty"),QH=c.ClassMethod=E("classMethod"),ZH=c.ObjectPattern=E("objectPattern"),ez=c.SpreadElement=E("spreadElement"),tz=c.Super=E("super"),rz=c.TaggedTemplateExpression=E("taggedTemplateExpression"),iz=c.TemplateElement=E("templateElement"),sz=c.TemplateLiteral=E("templateLiteral"),nz=c.YieldExpression=E("yieldExpression"),az=c.AwaitExpression=E("awaitExpression"),oz=c.Import=E("import"),lz=c.BigIntLiteral=E("bigIntLiteral"),uz=c.ExportNamespaceSpecifier=E("exportNamespaceSpecifier"),cz=c.OptionalMemberExpression=E("optionalMemberExpression"),pz=c.OptionalCallExpression=E("optionalCallExpression"),fz=c.ClassProperty=E("classProperty"),dz=c.ClassAccessorProperty=E("classAccessorProperty"),hz=c.ClassPrivateProperty=E("classPrivateProperty"),mz=c.ClassPrivateMethod=E("classPrivateMethod"),yz=c.PrivateName=E("privateName"),Tz=c.StaticBlock=E("staticBlock"),gz=c.ImportAttribute=E("importAttribute"),Sz=c.AnyTypeAnnotation=E("anyTypeAnnotation"),xz=c.ArrayTypeAnnotation=E("arrayTypeAnnotation"),bz=c.BooleanTypeAnnotation=E("booleanTypeAnnotation"),Ez=c.BooleanLiteralTypeAnnotation=E("booleanLiteralTypeAnnotation"),Pz=c.NullLiteralTypeAnnotation=E("nullLiteralTypeAnnotation"),Az=c.ClassImplements=E("classImplements"),vz=c.DeclareClass=E("declareClass"),Cz=c.DeclareFunction=E("declareFunction"),Iz=c.DeclareInterface=E("declareInterface"),wz=c.DeclareModule=E("declareModule"),Nz=c.DeclareModuleExports=E("declareModuleExports"),Oz=c.DeclareTypeAlias=E("declareTypeAlias"),_z=c.DeclareOpaqueType=E("declareOpaqueType"),kz=c.DeclareVariable=E("declareVariable"),Dz=c.DeclareExportDeclaration=E("declareExportDeclaration"),Lz=c.DeclareExportAllDeclaration=E("declareExportAllDeclaration"),Mz=c.DeclaredPredicate=E("declaredPredicate"),Bz=c.ExistsTypeAnnotation=E("existsTypeAnnotation"),Fz=c.FunctionTypeAnnotation=E("functionTypeAnnotation"),Rz=c.FunctionTypeParam=E("functionTypeParam"),jz=c.GenericTypeAnnotation=E("genericTypeAnnotation"),qz=c.InferredPredicate=E("inferredPredicate"),Uz=c.InterfaceExtends=E("interfaceExtends"),Kz=c.InterfaceDeclaration=E("interfaceDeclaration"),Vz=c.InterfaceTypeAnnotation=E("interfaceTypeAnnotation"),$z=c.IntersectionTypeAnnotation=E("intersectionTypeAnnotation"),Jz=c.MixedTypeAnnotation=E("mixedTypeAnnotation"),Xz=c.EmptyTypeAnnotation=E("emptyTypeAnnotation"),Yz=c.NullableTypeAnnotation=E("nullableTypeAnnotation"),Wz=c.NumberLiteralTypeAnnotation=E("numberLiteralTypeAnnotation"),Hz=c.NumberTypeAnnotation=E("numberTypeAnnotation"),zz=c.ObjectTypeAnnotation=E("objectTypeAnnotation"),Gz=c.ObjectTypeInternalSlot=E("objectTypeInternalSlot"),Qz=c.ObjectTypeCallProperty=E("objectTypeCallProperty"),Zz=c.ObjectTypeIndexer=E("objectTypeIndexer"),eG=c.ObjectTypeProperty=E("objectTypeProperty"),tG=c.ObjectTypeSpreadProperty=E("objectTypeSpreadProperty"),rG=c.OpaqueType=E("opaqueType"),iG=c.QualifiedTypeIdentifier=E("qualifiedTypeIdentifier"),sG=c.StringLiteralTypeAnnotation=E("stringLiteralTypeAnnotation"),nG=c.StringTypeAnnotation=E("stringTypeAnnotation"),aG=c.SymbolTypeAnnotation=E("symbolTypeAnnotation"),oG=c.ThisTypeAnnotation=E("thisTypeAnnotation"),lG=c.TupleTypeAnnotation=E("tupleTypeAnnotation"),uG=c.TypeofTypeAnnotation=E("typeofTypeAnnotation"),cG=c.TypeAlias=E("typeAlias"),pG=c.TypeAnnotation=E("typeAnnotation"),fG=c.TypeCastExpression=E("typeCastExpression"),dG=c.TypeParameter=E("typeParameter"),hG=c.TypeParameterDeclaration=E("typeParameterDeclaration"),mG=c.TypeParameterInstantiation=E("typeParameterInstantiation"),yG=c.UnionTypeAnnotation=E("unionTypeAnnotation"),TG=c.Variance=E("variance"),gG=c.VoidTypeAnnotation=E("voidTypeAnnotation"),SG=c.EnumDeclaration=E("enumDeclaration"),xG=c.EnumBooleanBody=E("enumBooleanBody"),bG=c.EnumNumberBody=E("enumNumberBody"),EG=c.EnumStringBody=E("enumStringBody"),PG=c.EnumSymbolBody=E("enumSymbolBody"),AG=c.EnumBooleanMember=E("enumBooleanMember"),vG=c.EnumNumberMember=E("enumNumberMember"),CG=c.EnumStringMember=E("enumStringMember"),IG=c.EnumDefaultedMember=E("enumDefaultedMember"),wG=c.IndexedAccessType=E("indexedAccessType"),NG=c.OptionalIndexedAccessType=E("optionalIndexedAccessType"),OG=c.JSXAttribute=E("jsxAttribute"),_G=c.JSXClosingElement=E("jsxClosingElement"),kG=c.JSXElement=E("jsxElement"),DG=c.JSXEmptyExpression=E("jsxEmptyExpression"),LG=c.JSXExpressionContainer=E("jsxExpressionContainer"),MG=c.JSXSpreadChild=E("jsxSpreadChild"),BG=c.JSXIdentifier=E("jsxIdentifier"),FG=c.JSXMemberExpression=E("jsxMemberExpression"),RG=c.JSXNamespacedName=E("jsxNamespacedName"),jG=c.JSXOpeningElement=E("jsxOpeningElement"),qG=c.JSXSpreadAttribute=E("jsxSpreadAttribute"),UG=c.JSXText=E("jsxText"),KG=c.JSXFragment=E("jsxFragment"),VG=c.JSXOpeningFragment=E("jsxOpeningFragment"),$G=c.JSXClosingFragment=E("jsxClosingFragment"),JG=c.Noop=E("noop"),XG=c.Placeholder=E("placeholder"),YG=c.V8IntrinsicIdentifier=E("v8IntrinsicIdentifier"),WG=c.ArgumentPlaceholder=E("argumentPlaceholder"),HG=c.BindExpression=E("bindExpression"),zG=c.Decorator=E("decorator"),GG=c.DoExpression=E("doExpression"),QG=c.ExportDefaultSpecifier=E("exportDefaultSpecifier"),ZG=c.RecordExpression=E("recordExpression"),eQ=c.TupleExpression=E("tupleExpression"),tQ=c.DecimalLiteral=E("decimalLiteral"),rQ=c.ModuleExpression=E("moduleExpression"),iQ=c.TopicReference=E("topicReference"),sQ=c.PipelineTopicExpression=E("pipelineTopicExpression"),nQ=c.PipelineBareFunction=E("pipelineBareFunction"),aQ=c.PipelinePrimaryTopicReference=E("pipelinePrimaryTopicReference"),oQ=c.VoidPattern=E("voidPattern"),lQ=c.TSParameterProperty=E("tsParameterProperty"),uQ=c.TSDeclareFunction=E("tsDeclareFunction"),cQ=c.TSDeclareMethod=E("tsDeclareMethod"),pQ=c.TSQualifiedName=E("tsQualifiedName"),fQ=c.TSCallSignatureDeclaration=E("tsCallSignatureDeclaration"),dQ=c.TSConstructSignatureDeclaration=E("tsConstructSignatureDeclaration"),hQ=c.TSPropertySignature=E("tsPropertySignature"),mQ=c.TSMethodSignature=E("tsMethodSignature"),yQ=c.TSIndexSignature=E("tsIndexSignature"),TQ=c.TSAnyKeyword=E("tsAnyKeyword"),gQ=c.TSBooleanKeyword=E("tsBooleanKeyword"),SQ=c.TSBigIntKeyword=E("tsBigIntKeyword"),xQ=c.TSIntrinsicKeyword=E("tsIntrinsicKeyword"),bQ=c.TSNeverKeyword=E("tsNeverKeyword"),EQ=c.TSNullKeyword=E("tsNullKeyword"),PQ=c.TSNumberKeyword=E("tsNumberKeyword"),AQ=c.TSObjectKeyword=E("tsObjectKeyword"),vQ=c.TSStringKeyword=E("tsStringKeyword"),CQ=c.TSSymbolKeyword=E("tsSymbolKeyword"),IQ=c.TSUndefinedKeyword=E("tsUndefinedKeyword"),wQ=c.TSUnknownKeyword=E("tsUnknownKeyword"),NQ=c.TSVoidKeyword=E("tsVoidKeyword"),OQ=c.TSThisType=E("tsThisType"),_Q=c.TSFunctionType=E("tsFunctionType"),kQ=c.TSConstructorType=E("tsConstructorType"),DQ=c.TSTypeReference=E("tsTypeReference"),LQ=c.TSTypePredicate=E("tsTypePredicate"),MQ=c.TSTypeQuery=E("tsTypeQuery"),BQ=c.TSTypeLiteral=E("tsTypeLiteral"),FQ=c.TSArrayType=E("tsArrayType"),RQ=c.TSTupleType=E("tsTupleType"),jQ=c.TSOptionalType=E("tsOptionalType"),qQ=c.TSRestType=E("tsRestType"),UQ=c.TSNamedTupleMember=E("tsNamedTupleMember"),KQ=c.TSUnionType=E("tsUnionType"),VQ=c.TSIntersectionType=E("tsIntersectionType"),$Q=c.TSConditionalType=E("tsConditionalType"),JQ=c.TSInferType=E("tsInferType"),XQ=c.TSParenthesizedType=E("tsParenthesizedType"),YQ=c.TSTypeOperator=E("tsTypeOperator"),WQ=c.TSIndexedAccessType=E("tsIndexedAccessType"),HQ=c.TSMappedType=E("tsMappedType"),zQ=c.TSTemplateLiteralType=E("tsTemplateLiteralType"),GQ=c.TSLiteralType=E("tsLiteralType"),QQ=c.TSExpressionWithTypeArguments=E("tsExpressionWithTypeArguments"),ZQ=c.TSInterfaceDeclaration=E("tsInterfaceDeclaration"),eZ=c.TSInterfaceBody=E("tsInterfaceBody"),tZ=c.TSTypeAliasDeclaration=E("tsTypeAliasDeclaration"),rZ=c.TSInstantiationExpression=E("tsInstantiationExpression"),iZ=c.TSAsExpression=E("tsAsExpression"),sZ=c.TSSatisfiesExpression=E("tsSatisfiesExpression"),nZ=c.TSTypeAssertion=E("tsTypeAssertion"),aZ=c.TSEnumBody=E("tsEnumBody"),oZ=c.TSEnumDeclaration=E("tsEnumDeclaration"),lZ=c.TSEnumMember=E("tsEnumMember"),uZ=c.TSModuleDeclaration=E("tsModuleDeclaration"),cZ=c.TSModuleBlock=E("tsModuleBlock"),pZ=c.TSImportType=E("tsImportType"),fZ=c.TSImportEqualsDeclaration=E("tsImportEqualsDeclaration"),dZ=c.TSExternalModuleReference=E("tsExternalModuleReference"),hZ=c.TSNonNullExpression=E("tsNonNullExpression"),mZ=c.TSExportAssignment=E("tsExportAssignment"),yZ=c.TSNamespaceExportDeclaration=E("tsNamespaceExportDeclaration"),TZ=c.TSTypeAnnotation=E("tsTypeAnnotation"),gZ=c.TSTypeParameterInstantiation=E("tsTypeParameterInstantiation"),SZ=c.TSTypeParameterDeclaration=E("tsTypeParameterDeclaration"),xZ=c.TSTypeParameter=E("tsTypeParameter"),bZ=c.NumberLiteral=ms.numberLiteral,EZ=c.RegexLiteral=ms.regexLiteral,PZ=c.RestProperty=ms.restProperty,AZ=c.SpreadProperty=ms.spreadProperty});var Rt=N(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});var Lo=Do();Object.keys(Lo).forEach(function(e){e==="default"||e==="__esModule"||e in jr&&jr[e]===Lo[e]||Object.defineProperty(jr,e,{enumerable:!0,get:function(){return Lo[e]}})});var Mo=ad();Object.keys(Mo).forEach(function(e){e==="default"||e==="__esModule"||e in jr&&jr[e]===Mo[e]||Object.defineProperty(jr,e,{enumerable:!0,get:function(){return Mo[e]}})})});var od=N(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.default=xN;var gN=Rt(),SN=ye();function xN(e,t){let r=e.value.split(/\r\n|\n|\r/),i=0;for(let n=0;n<r.length;n++)/[^ \t]/.exec(r[n])&&(i=n);let s="";for(let n=0;n<r.length;n++){let a=r[n],o=n===0,l=n===r.length-1,u=n===i,f=a.replace(/\t/g," ");o||(f=f.replace(/^ +/,"")),l||(f=f.replace(/ +$/,"")),f&&(u||(f+=" "),s+=f)}s&&t.push((0,SN.inherits)((0,gN.stringLiteral)(s),e))}});var ld=N(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.default=EN;var Fo=st(),bN=od();function EN(e){let t=[];for(let r=0;r<e.children.length;r++){let i=e.children[r];if((0,Fo.isJSXText)(i)){(0,bN.default)(i,t);continue}(0,Fo.isJSXExpressionContainer)(i)&&(i=i.expression),!(0,Fo.isJSXEmptyExpression)(i)&&t.push(i)}return t}});var qo=N(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.default=AN;var PN=Jt();function AN(e){return!!(e&&PN.VISITOR_KEYS[e.type])}});var ud=N(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.default=CN;var vN=qo();function CN(e){if(!(0,vN.default)(e)){var t;let r=(t=e?.type)!=null?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}}});var cd=N(y=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});y.assertAccessor=XL;y.assertAnyTypeAnnotation=u_;y.assertArgumentPlaceholder=Rk;y.assertArrayExpression=wN;y.assertArrayPattern=CO;y.assertArrayTypeAnnotation=c_;y.assertArrowFunctionExpression=IO;y.assertAssignmentExpression=NN;y.assertAssignmentPattern=vO;y.assertAwaitExpression=zO;y.assertBigIntLiteral=QO;y.assertBinary=dL;y.assertBinaryExpression=ON;y.assertBindExpression=jk;y.assertBlock=yL;y.assertBlockParent=mL;y.assertBlockStatement=LN;y.assertBooleanLiteral=tO;y.assertBooleanLiteralTypeAnnotation=f_;y.assertBooleanTypeAnnotation=p_;y.assertBreakStatement=MN;y.assertCallExpression=BN;y.assertCatchClause=FN;y.assertClass=KL;y.assertClassAccessorProperty=i_;y.assertClassBody=wO;y.assertClassDeclaration=OO;y.assertClassExpression=NO;y.assertClassImplements=h_;y.assertClassMethod=KO;y.assertClassPrivateMethod=n_;y.assertClassPrivateProperty=s_;y.assertClassProperty=r_;y.assertCompletionStatement=SL;y.assertConditional=xL;y.assertConditionalExpression=RN;y.assertContinueStatement=jN;y.assertDebuggerStatement=qN;y.assertDecimalLiteral=Jk;y.assertDeclaration=NL;y.assertDeclareClass=m_;y.assertDeclareExportAllDeclaration=A_;y.assertDeclareExportDeclaration=P_;y.assertDeclareFunction=y_;y.assertDeclareInterface=T_;y.assertDeclareModule=g_;y.assertDeclareModuleExports=S_;y.assertDeclareOpaqueType=b_;y.assertDeclareTypeAlias=x_;y.assertDeclareVariable=E_;y.assertDeclaredPredicate=v_;y.assertDecorator=qk;y.assertDirective=kN;y.assertDirectiveLiteral=DN;y.assertDoExpression=Uk;y.assertDoWhileStatement=UN;y.assertEmptyStatement=KN;y.assertEmptyTypeAnnotation=B_;y.assertEnumBody=ZL;y.assertEnumBooleanBody=ck;y.assertEnumBooleanMember=hk;y.assertEnumDeclaration=uk;y.assertEnumDefaultedMember=Tk;y.assertEnumMember=e2;y.assertEnumNumberBody=pk;y.assertEnumNumberMember=mk;y.assertEnumStringBody=fk;y.assertEnumStringMember=yk;y.assertEnumSymbolBody=dk;y.assertExistsTypeAnnotation=C_;y.assertExportAllDeclaration=_O;y.assertExportDeclaration=$L;y.assertExportDefaultDeclaration=kO;y.assertExportDefaultSpecifier=Kk;y.assertExportNamedDeclaration=DO;y.assertExportNamespaceSpecifier=ZO;y.assertExportSpecifier=LO;y.assertExpression=fL;y.assertExpressionStatement=VN;y.assertExpressionWrapper=PL;y.assertFile=$N;y.assertFlow=WL;y.assertFlowBaseAnnotation=zL;y.assertFlowDeclaration=GL;y.assertFlowPredicate=QL;y.assertFlowType=HL;y.assertFor=AL;y.assertForInStatement=JN;y.assertForOfStatement=MO;y.assertForStatement=XN;y.assertForXStatement=vL;y.assertFunction=CL;y.assertFunctionDeclaration=YN;y.assertFunctionExpression=WN;y.assertFunctionParameter=OL;y.assertFunctionParent=IL;y.assertFunctionTypeAnnotation=I_;y.assertFunctionTypeParam=w_;y.assertGenericTypeAnnotation=N_;y.assertIdentifier=HN;y.assertIfStatement=zN;y.assertImmutable=ML;y.assertImport=GO;y.assertImportAttribute=l_;y.assertImportDeclaration=BO;y.assertImportDefaultSpecifier=FO;y.assertImportExpression=qO;y.assertImportNamespaceSpecifier=RO;y.assertImportOrExportDeclaration=VL;y.assertImportSpecifier=jO;y.assertIndexedAccessType=gk;y.assertInferredPredicate=O_;y.assertInterfaceDeclaration=k_;y.assertInterfaceExtends=__;y.assertInterfaceTypeAnnotation=D_;y.assertInterpreterDirective=_N;y.assertIntersectionTypeAnnotation=L_;y.assertJSX=t2;y.assertJSXAttribute=xk;y.assertJSXClosingElement=bk;y.assertJSXClosingFragment=Lk;y.assertJSXElement=Ek;y.assertJSXEmptyExpression=Pk;y.assertJSXExpressionContainer=Ak;y.assertJSXFragment=kk;y.assertJSXIdentifier=Ck;y.assertJSXMemberExpression=Ik;y.assertJSXNamespacedName=wk;y.assertJSXOpeningElement=Nk;y.assertJSXOpeningFragment=Dk;y.assertJSXSpreadAttribute=Ok;y.assertJSXSpreadChild=vk;y.assertJSXText=_k;y.assertLVal=kL;y.assertLabeledStatement=GN;y.assertLiteral=LL;y.assertLogicalExpression=iO;y.assertLoop=bL;y.assertMemberExpression=sO;y.assertMetaProperty=UO;y.assertMethod=FL;y.assertMiscellaneous=r2;y.assertMixedTypeAnnotation=M_;y.assertModuleDeclaration=p2;y.assertModuleExpression=Xk;y.assertModuleSpecifier=JL;y.assertNewExpression=nO;y.assertNoop=Mk;y.assertNullLiteral=eO;y.assertNullLiteralTypeAnnotation=d_;y.assertNullableTypeAnnotation=F_;y.assertNumberLiteral=o2;y.assertNumberLiteralTypeAnnotation=R_;y.assertNumberTypeAnnotation=j_;y.assertNumericLiteral=ZN;y.assertObjectExpression=oO;y.assertObjectMember=RL;y.assertObjectMethod=lO;y.assertObjectPattern=VO;y.assertObjectProperty=uO;y.assertObjectTypeAnnotation=q_;y.assertObjectTypeCallProperty=K_;y.assertObjectTypeIndexer=V_;y.assertObjectTypeInternalSlot=U_;y.assertObjectTypeProperty=$_;y.assertObjectTypeSpreadProperty=J_;y.assertOpaqueType=X_;y.assertOptionalCallExpression=t_;y.assertOptionalIndexedAccessType=Sk;y.assertOptionalMemberExpression=e_;y.assertParenthesizedExpression=dO;y.assertPattern=UL;y.assertPatternLike=_L;y.assertPipelineBareFunction=Hk;y.assertPipelinePrimaryTopicReference=zk;y.assertPipelineTopicExpression=Wk;y.assertPlaceholder=Bk;y.assertPrivate=YL;y.assertPrivateName=a_;y.assertProgram=aO;y.assertProperty=jL;y.assertPureish=wL;y.assertQualifiedTypeIdentifier=Y_;y.assertRecordExpression=Vk;y.assertRegExpLiteral=rO;y.assertRegexLiteral=l2;y.assertRestElement=cO;y.assertRestProperty=u2;y.assertReturnStatement=pO;y.assertScopable=hL;y.assertSequenceExpression=fO;y.assertSpreadElement=$O;y.assertSpreadProperty=c2;y.assertStandardized=pL;y.assertStatement=TL;y.assertStaticBlock=o_;y.assertStringLiteral=QN;y.assertStringLiteralTypeAnnotation=W_;y.assertStringTypeAnnotation=H_;y.assertSuper=JO;y.assertSwitchCase=hO;y.assertSwitchStatement=mO;y.assertSymbolTypeAnnotation=z_;y.assertTSAnyKeyword=oD;y.assertTSArrayType=ID;y.assertTSAsExpression=YD;y.assertTSBaseType=a2;y.assertTSBigIntKeyword=uD;y.assertTSBooleanKeyword=lD;y.assertTSCallSignatureDeclaration=rD;y.assertTSConditionalType=LD;y.assertTSConstructSignatureDeclaration=iD;y.assertTSConstructorType=ED;y.assertTSDeclareFunction=Zk;y.assertTSDeclareMethod=eD;y.assertTSEntityName=DL;y.assertTSEnumBody=zD;y.assertTSEnumDeclaration=GD;y.assertTSEnumMember=QD;y.assertTSExportAssignment=nL;y.assertTSExpressionWithTypeArguments=KD;y.assertTSExternalModuleReference=iL;y.assertTSFunctionType=bD;y.assertTSImportEqualsDeclaration=rL;y.assertTSImportType=tL;y.assertTSIndexSignature=aD;y.assertTSIndexedAccessType=RD;y.assertTSInferType=MD;y.assertTSInstantiationExpression=XD;y.assertTSInterfaceBody=$D;y.assertTSInterfaceDeclaration=VD;y.assertTSIntersectionType=DD;y.assertTSIntrinsicKeyword=cD;y.assertTSLiteralType=UD;y.assertTSMappedType=jD;y.assertTSMethodSignature=nD;y.assertTSModuleBlock=eL;y.assertTSModuleDeclaration=ZD;y.assertTSNamedTupleMember=_D;y.assertTSNamespaceExportDeclaration=aL;y.assertTSNeverKeyword=pD;y.assertTSNonNullExpression=sL;y.assertTSNullKeyword=fD;y.assertTSNumberKeyword=dD;y.assertTSObjectKeyword=hD;y.assertTSOptionalType=ND;y.assertTSParameterProperty=Qk;y.assertTSParenthesizedType=BD;y.assertTSPropertySignature=sD;y.assertTSQualifiedName=tD;y.assertTSRestType=OD;y.assertTSSatisfiesExpression=WD;y.assertTSStringKeyword=mD;y.assertTSSymbolKeyword=yD;y.assertTSTemplateLiteralType=qD;y.assertTSThisType=xD;y.assertTSTupleType=wD;y.assertTSType=n2;y.assertTSTypeAliasDeclaration=JD;y.assertTSTypeAnnotation=oL;y.assertTSTypeAssertion=HD;y.assertTSTypeElement=s2;y.assertTSTypeLiteral=CD;y.assertTSTypeOperator=FD;y.assertTSTypeParameter=cL;y.assertTSTypeParameterDeclaration=uL;y.assertTSTypeParameterInstantiation=lL;y.assertTSTypePredicate=AD;y.assertTSTypeQuery=vD;y.assertTSTypeReference=PD;y.assertTSUndefinedKeyword=TD;y.assertTSUnionType=kD;y.assertTSUnknownKeyword=gD;y.assertTSVoidKeyword=SD;y.assertTaggedTemplateExpression=XO;y.assertTemplateElement=YO;y.assertTemplateLiteral=WO;y.assertTerminatorless=gL;y.assertThisExpression=yO;y.assertThisTypeAnnotation=G_;y.assertThrowStatement=TO;y.assertTopicReference=Yk;y.assertTryStatement=gO;y.assertTupleExpression=$k;y.assertTupleTypeAnnotation=Q_;y.assertTypeAlias=ek;y.assertTypeAnnotation=tk;y.assertTypeCastExpression=rk;y.assertTypeParameter=ik;y.assertTypeParameterDeclaration=sk;y.assertTypeParameterInstantiation=nk;y.assertTypeScript=i2;y.assertTypeofTypeAnnotation=Z_;y.assertUnaryExpression=SO;y.assertUnaryLike=qL;y.assertUnionTypeAnnotation=ak;y.assertUpdateExpression=xO;y.assertUserWhitespacable=BL;y.assertV8IntrinsicIdentifier=Fk;y.assertVariableDeclaration=bO;y.assertVariableDeclarator=EO;y.assertVariance=ok;y.assertVoidPattern=Gk;y.assertVoidTypeAnnotation=lk;y.assertWhile=EL;y.assertWhileStatement=PO;y.assertWithStatement=AO;y.assertYieldExpression=HO;var IN=Di(),ys=ki();function T(e,t,r){if(!(0,IN.default)(e,t,r))throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}function wN(e,t){T("ArrayExpression",e,t)}function NN(e,t){T("AssignmentExpression",e,t)}function ON(e,t){T("BinaryExpression",e,t)}function _N(e,t){T("InterpreterDirective",e,t)}function kN(e,t){T("Directive",e,t)}function DN(e,t){T("DirectiveLiteral",e,t)}function LN(e,t){T("BlockStatement",e,t)}function MN(e,t){T("BreakStatement",e,t)}function BN(e,t){T("CallExpression",e,t)}function FN(e,t){T("CatchClause",e,t)}function RN(e,t){T("ConditionalExpression",e,t)}function jN(e,t){T("ContinueStatement",e,t)}function qN(e,t){T("DebuggerStatement",e,t)}function UN(e,t){T("DoWhileStatement",e,t)}function KN(e,t){T("EmptyStatement",e,t)}function VN(e,t){T("ExpressionStatement",e,t)}function $N(e,t){T("File",e,t)}function JN(e,t){T("ForInStatement",e,t)}function XN(e,t){T("ForStatement",e,t)}function YN(e,t){T("FunctionDeclaration",e,t)}function WN(e,t){T("FunctionExpression",e,t)}function HN(e,t){T("Identifier",e,t)}function zN(e,t){T("IfStatement",e,t)}function GN(e,t){T("LabeledStatement",e,t)}function QN(e,t){T("StringLiteral",e,t)}function ZN(e,t){T("NumericLiteral",e,t)}function eO(e,t){T("NullLiteral",e,t)}function tO(e,t){T("BooleanLiteral",e,t)}function rO(e,t){T("RegExpLiteral",e,t)}function iO(e,t){T("LogicalExpression",e,t)}function sO(e,t){T("MemberExpression",e,t)}function nO(e,t){T("NewExpression",e,t)}function aO(e,t){T("Program",e,t)}function oO(e,t){T("ObjectExpression",e,t)}function lO(e,t){T("ObjectMethod",e,t)}function uO(e,t){T("ObjectProperty",e,t)}function cO(e,t){T("RestElement",e,t)}function pO(e,t){T("ReturnStatement",e,t)}function fO(e,t){T("SequenceExpression",e,t)}function dO(e,t){T("ParenthesizedExpression",e,t)}function hO(e,t){T("SwitchCase",e,t)}function mO(e,t){T("SwitchStatement",e,t)}function yO(e,t){T("ThisExpression",e,t)}function TO(e,t){T("ThrowStatement",e,t)}function gO(e,t){T("TryStatement",e,t)}function SO(e,t){T("UnaryExpression",e,t)}function xO(e,t){T("UpdateExpression",e,t)}function bO(e,t){T("VariableDeclaration",e,t)}function EO(e,t){T("VariableDeclarator",e,t)}function PO(e,t){T("WhileStatement",e,t)}function AO(e,t){T("WithStatement",e,t)}function vO(e,t){T("AssignmentPattern",e,t)}function CO(e,t){T("ArrayPattern",e,t)}function IO(e,t){T("ArrowFunctionExpression",e,t)}function wO(e,t){T("ClassBody",e,t)}function NO(e,t){T("ClassExpression",e,t)}function OO(e,t){T("ClassDeclaration",e,t)}function _O(e,t){T("ExportAllDeclaration",e,t)}function kO(e,t){T("ExportDefaultDeclaration",e,t)}function DO(e,t){T("ExportNamedDeclaration",e,t)}function LO(e,t){T("ExportSpecifier",e,t)}function MO(e,t){T("ForOfStatement",e,t)}function BO(e,t){T("ImportDeclaration",e,t)}function FO(e,t){T("ImportDefaultSpecifier",e,t)}function RO(e,t){T("ImportNamespaceSpecifier",e,t)}function jO(e,t){T("ImportSpecifier",e,t)}function qO(e,t){T("ImportExpression",e,t)}function UO(e,t){T("MetaProperty",e,t)}function KO(e,t){T("ClassMethod",e,t)}function VO(e,t){T("ObjectPattern",e,t)}function $O(e,t){T("SpreadElement",e,t)}function JO(e,t){T("Super",e,t)}function XO(e,t){T("TaggedTemplateExpression",e,t)}function YO(e,t){T("TemplateElement",e,t)}function WO(e,t){T("TemplateLiteral",e,t)}function HO(e,t){T("YieldExpression",e,t)}function zO(e,t){T("AwaitExpression",e,t)}function GO(e,t){T("Import",e,t)}function QO(e,t){T("BigIntLiteral",e,t)}function ZO(e,t){T("ExportNamespaceSpecifier",e,t)}function e_(e,t){T("OptionalMemberExpression",e,t)}function t_(e,t){T("OptionalCallExpression",e,t)}function r_(e,t){T("ClassProperty",e,t)}function i_(e,t){T("ClassAccessorProperty",e,t)}function s_(e,t){T("ClassPrivateProperty",e,t)}function n_(e,t){T("ClassPrivateMethod",e,t)}function a_(e,t){T("PrivateName",e,t)}function o_(e,t){T("StaticBlock",e,t)}function l_(e,t){T("ImportAttribute",e,t)}function u_(e,t){T("AnyTypeAnnotation",e,t)}function c_(e,t){T("ArrayTypeAnnotation",e,t)}function p_(e,t){T("BooleanTypeAnnotation",e,t)}function f_(e,t){T("BooleanLiteralTypeAnnotation",e,t)}function d_(e,t){T("NullLiteralTypeAnnotation",e,t)}function h_(e,t){T("ClassImplements",e,t)}function m_(e,t){T("DeclareClass",e,t)}function y_(e,t){T("DeclareFunction",e,t)}function T_(e,t){T("DeclareInterface",e,t)}function g_(e,t){T("DeclareModule",e,t)}function S_(e,t){T("DeclareModuleExports",e,t)}function x_(e,t){T("DeclareTypeAlias",e,t)}function b_(e,t){T("DeclareOpaqueType",e,t)}function E_(e,t){T("DeclareVariable",e,t)}function P_(e,t){T("DeclareExportDeclaration",e,t)}function A_(e,t){T("DeclareExportAllDeclaration",e,t)}function v_(e,t){T("DeclaredPredicate",e,t)}function C_(e,t){T("ExistsTypeAnnotation",e,t)}function I_(e,t){T("FunctionTypeAnnotation",e,t)}function w_(e,t){T("FunctionTypeParam",e,t)}function N_(e,t){T("GenericTypeAnnotation",e,t)}function O_(e,t){T("InferredPredicate",e,t)}function __(e,t){T("InterfaceExtends",e,t)}function k_(e,t){T("InterfaceDeclaration",e,t)}function D_(e,t){T("InterfaceTypeAnnotation",e,t)}function L_(e,t){T("IntersectionTypeAnnotation",e,t)}function M_(e,t){T("MixedTypeAnnotation",e,t)}function B_(e,t){T("EmptyTypeAnnotation",e,t)}function F_(e,t){T("NullableTypeAnnotation",e,t)}function R_(e,t){T("NumberLiteralTypeAnnotation",e,t)}function j_(e,t){T("NumberTypeAnnotation",e,t)}function q_(e,t){T("ObjectTypeAnnotation",e,t)}function U_(e,t){T("ObjectTypeInternalSlot",e,t)}function K_(e,t){T("ObjectTypeCallProperty",e,t)}function V_(e,t){T("ObjectTypeIndexer",e,t)}function $_(e,t){T("ObjectTypeProperty",e,t)}function J_(e,t){T("ObjectTypeSpreadProperty",e,t)}function X_(e,t){T("OpaqueType",e,t)}function Y_(e,t){T("QualifiedTypeIdentifier",e,t)}function W_(e,t){T("StringLiteralTypeAnnotation",e,t)}function H_(e,t){T("StringTypeAnnotation",e,t)}function z_(e,t){T("SymbolTypeAnnotation",e,t)}function G_(e,t){T("ThisTypeAnnotation",e,t)}function Q_(e,t){T("TupleTypeAnnotation",e,t)}function Z_(e,t){T("TypeofTypeAnnotation",e,t)}function ek(e,t){T("TypeAlias",e,t)}function tk(e,t){T("TypeAnnotation",e,t)}function rk(e,t){T("TypeCastExpression",e,t)}function ik(e,t){T("TypeParameter",e,t)}function sk(e,t){T("TypeParameterDeclaration",e,t)}function nk(e,t){T("TypeParameterInstantiation",e,t)}function ak(e,t){T("UnionTypeAnnotation",e,t)}function ok(e,t){T("Variance",e,t)}function lk(e,t){T("VoidTypeAnnotation",e,t)}function uk(e,t){T("EnumDeclaration",e,t)}function ck(e,t){T("EnumBooleanBody",e,t)}function pk(e,t){T("EnumNumberBody",e,t)}function fk(e,t){T("EnumStringBody",e,t)}function dk(e,t){T("EnumSymbolBody",e,t)}function hk(e,t){T("EnumBooleanMember",e,t)}function mk(e,t){T("EnumNumberMember",e,t)}function yk(e,t){T("EnumStringMember",e,t)}function Tk(e,t){T("EnumDefaultedMember",e,t)}function gk(e,t){T("IndexedAccessType",e,t)}function Sk(e,t){T("OptionalIndexedAccessType",e,t)}function xk(e,t){T("JSXAttribute",e,t)}function bk(e,t){T("JSXClosingElement",e,t)}function Ek(e,t){T("JSXElement",e,t)}function Pk(e,t){T("JSXEmptyExpression",e,t)}function Ak(e,t){T("JSXExpressionContainer",e,t)}function vk(e,t){T("JSXSpreadChild",e,t)}function Ck(e,t){T("JSXIdentifier",e,t)}function Ik(e,t){T("JSXMemberExpression",e,t)}function wk(e,t){T("JSXNamespacedName",e,t)}function Nk(e,t){T("JSXOpeningElement",e,t)}function Ok(e,t){T("JSXSpreadAttribute",e,t)}function _k(e,t){T("JSXText",e,t)}function kk(e,t){T("JSXFragment",e,t)}function Dk(e,t){T("JSXOpeningFragment",e,t)}function Lk(e,t){T("JSXClosingFragment",e,t)}function Mk(e,t){T("Noop",e,t)}function Bk(e,t){T("Placeholder",e,t)}function Fk(e,t){T("V8IntrinsicIdentifier",e,t)}function Rk(e,t){T("ArgumentPlaceholder",e,t)}function jk(e,t){T("BindExpression",e,t)}function qk(e,t){T("Decorator",e,t)}function Uk(e,t){T("DoExpression",e,t)}function Kk(e,t){T("ExportDefaultSpecifier",e,t)}function Vk(e,t){T("RecordExpression",e,t)}function $k(e,t){T("TupleExpression",e,t)}function Jk(e,t){T("DecimalLiteral",e,t)}function Xk(e,t){T("ModuleExpression",e,t)}function Yk(e,t){T("TopicReference",e,t)}function Wk(e,t){T("PipelineTopicExpression",e,t)}function Hk(e,t){T("PipelineBareFunction",e,t)}function zk(e,t){T("PipelinePrimaryTopicReference",e,t)}function Gk(e,t){T("VoidPattern",e,t)}function Qk(e,t){T("TSParameterProperty",e,t)}function Zk(e,t){T("TSDeclareFunction",e,t)}function eD(e,t){T("TSDeclareMethod",e,t)}function tD(e,t){T("TSQualifiedName",e,t)}function rD(e,t){T("TSCallSignatureDeclaration",e,t)}function iD(e,t){T("TSConstructSignatureDeclaration",e,t)}function sD(e,t){T("TSPropertySignature",e,t)}function nD(e,t){T("TSMethodSignature",e,t)}function aD(e,t){T("TSIndexSignature",e,t)}function oD(e,t){T("TSAnyKeyword",e,t)}function lD(e,t){T("TSBooleanKeyword",e,t)}function uD(e,t){T("TSBigIntKeyword",e,t)}function cD(e,t){T("TSIntrinsicKeyword",e,t)}function pD(e,t){T("TSNeverKeyword",e,t)}function fD(e,t){T("TSNullKeyword",e,t)}function dD(e,t){T("TSNumberKeyword",e,t)}function hD(e,t){T("TSObjectKeyword",e,t)}function mD(e,t){T("TSStringKeyword",e,t)}function yD(e,t){T("TSSymbolKeyword",e,t)}function TD(e,t){T("TSUndefinedKeyword",e,t)}function gD(e,t){T("TSUnknownKeyword",e,t)}function SD(e,t){T("TSVoidKeyword",e,t)}function xD(e,t){T("TSThisType",e,t)}function bD(e,t){T("TSFunctionType",e,t)}function ED(e,t){T("TSConstructorType",e,t)}function PD(e,t){T("TSTypeReference",e,t)}function AD(e,t){T("TSTypePredicate",e,t)}function vD(e,t){T("TSTypeQuery",e,t)}function CD(e,t){T("TSTypeLiteral",e,t)}function ID(e,t){T("TSArrayType",e,t)}function wD(e,t){T("TSTupleType",e,t)}function ND(e,t){T("TSOptionalType",e,t)}function OD(e,t){T("TSRestType",e,t)}function _D(e,t){T("TSNamedTupleMember",e,t)}function kD(e,t){T("TSUnionType",e,t)}function DD(e,t){T("TSIntersectionType",e,t)}function LD(e,t){T("TSConditionalType",e,t)}function MD(e,t){T("TSInferType",e,t)}function BD(e,t){T("TSParenthesizedType",e,t)}function FD(e,t){T("TSTypeOperator",e,t)}function RD(e,t){T("TSIndexedAccessType",e,t)}function jD(e,t){T("TSMappedType",e,t)}function qD(e,t){T("TSTemplateLiteralType",e,t)}function UD(e,t){T("TSLiteralType",e,t)}function KD(e,t){T("TSExpressionWithTypeArguments",e,t)}function VD(e,t){T("TSInterfaceDeclaration",e,t)}function $D(e,t){T("TSInterfaceBody",e,t)}function JD(e,t){T("TSTypeAliasDeclaration",e,t)}function XD(e,t){T("TSInstantiationExpression",e,t)}function YD(e,t){T("TSAsExpression",e,t)}function WD(e,t){T("TSSatisfiesExpression",e,t)}function HD(e,t){T("TSTypeAssertion",e,t)}function zD(e,t){T("TSEnumBody",e,t)}function GD(e,t){T("TSEnumDeclaration",e,t)}function QD(e,t){T("TSEnumMember",e,t)}function ZD(e,t){T("TSModuleDeclaration",e,t)}function eL(e,t){T("TSModuleBlock",e,t)}function tL(e,t){T("TSImportType",e,t)}function rL(e,t){T("TSImportEqualsDeclaration",e,t)}function iL(e,t){T("TSExternalModuleReference",e,t)}function sL(e,t){T("TSNonNullExpression",e,t)}function nL(e,t){T("TSExportAssignment",e,t)}function aL(e,t){T("TSNamespaceExportDeclaration",e,t)}function oL(e,t){T("TSTypeAnnotation",e,t)}function lL(e,t){T("TSTypeParameterInstantiation",e,t)}function uL(e,t){T("TSTypeParameterDeclaration",e,t)}function cL(e,t){T("TSTypeParameter",e,t)}function pL(e,t){T("Standardized",e,t)}function fL(e,t){T("Expression",e,t)}function dL(e,t){T("Binary",e,t)}function hL(e,t){T("Scopable",e,t)}function mL(e,t){T("BlockParent",e,t)}function yL(e,t){T("Block",e,t)}function TL(e,t){T("Statement",e,t)}function gL(e,t){T("Terminatorless",e,t)}function SL(e,t){T("CompletionStatement",e,t)}function xL(e,t){T("Conditional",e,t)}function bL(e,t){T("Loop",e,t)}function EL(e,t){T("While",e,t)}function PL(e,t){T("ExpressionWrapper",e,t)}function AL(e,t){T("For",e,t)}function vL(e,t){T("ForXStatement",e,t)}function CL(e,t){T("Function",e,t)}function IL(e,t){T("FunctionParent",e,t)}function wL(e,t){T("Pureish",e,t)}function NL(e,t){T("Declaration",e,t)}function OL(e,t){T("FunctionParameter",e,t)}function _L(e,t){T("PatternLike",e,t)}function kL(e,t){T("LVal",e,t)}function DL(e,t){T("TSEntityName",e,t)}function LL(e,t){T("Literal",e,t)}function ML(e,t){T("Immutable",e,t)}function BL(e,t){T("UserWhitespacable",e,t)}function FL(e,t){T("Method",e,t)}function RL(e,t){T("ObjectMember",e,t)}function jL(e,t){T("Property",e,t)}function qL(e,t){T("UnaryLike",e,t)}function UL(e,t){T("Pattern",e,t)}function KL(e,t){T("Class",e,t)}function VL(e,t){T("ImportOrExportDeclaration",e,t)}function $L(e,t){T("ExportDeclaration",e,t)}function JL(e,t){T("ModuleSpecifier",e,t)}function XL(e,t){T("Accessor",e,t)}function YL(e,t){T("Private",e,t)}function WL(e,t){T("Flow",e,t)}function HL(e,t){T("FlowType",e,t)}function zL(e,t){T("FlowBaseAnnotation",e,t)}function GL(e,t){T("FlowDeclaration",e,t)}function QL(e,t){T("FlowPredicate",e,t)}function ZL(e,t){T("EnumBody",e,t)}function e2(e,t){T("EnumMember",e,t)}function t2(e,t){T("JSX",e,t)}function r2(e,t){T("Miscellaneous",e,t)}function i2(e,t){T("TypeScript",e,t)}function s2(e,t){T("TSTypeElement",e,t)}function n2(e,t){T("TSType",e,t)}function a2(e,t){T("TSBaseType",e,t)}function o2(e,t){(0,ys.default)("assertNumberLiteral","assertNumericLiteral"),T("NumberLiteral",e,t)}function l2(e,t){(0,ys.default)("assertRegexLiteral","assertRegExpLiteral"),T("RegexLiteral",e,t)}function u2(e,t){(0,ys.default)("assertRestProperty","assertRestElement"),T("RestProperty",e,t)}function c2(e,t){(0,ys.default)("assertSpreadProperty","assertSpreadElement"),T("SpreadProperty",e,t)}function p2(e,t){(0,ys.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),T("ModuleDeclaration",e,t)}});var pd=N(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.default=void 0;var ir=Rt(),kZ=En.default=f2;function f2(e){switch(e){case"string":return(0,ir.stringTypeAnnotation)();case"number":return(0,ir.numberTypeAnnotation)();case"undefined":return(0,ir.voidTypeAnnotation)();case"boolean":return(0,ir.booleanTypeAnnotation)();case"function":return(0,ir.genericTypeAnnotation)((0,ir.identifier)("Function"));case"object":return(0,ir.genericTypeAnnotation)((0,ir.identifier)("Object"));case"symbol":return(0,ir.genericTypeAnnotation)((0,ir.identifier)("Symbol"));case"bigint":return(0,ir.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)}});var Vo=N(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.default=dd;var Ts=st();function fd(e){return(0,Ts.isIdentifier)(e)?e.name:`${e.id.name}.${fd(e.qualification)}`}function dd(e){let t=Array.from(e),r=new Map,i=new Map,s=new Set,n=[];for(let a=0;a<t.length;a++){let o=t[a];if(o&&!n.includes(o)){if((0,Ts.isAnyTypeAnnotation)(o))return[o];if((0,Ts.isFlowBaseAnnotation)(o)){i.set(o.type,o);continue}if((0,Ts.isUnionTypeAnnotation)(o)){s.has(o.types)||(t.push(...o.types),s.add(o.types));continue}if((0,Ts.isGenericTypeAnnotation)(o)){let l=fd(o.id);if(r.has(l)){let u=r.get(l);u.typeParameters?o.typeParameters&&(u.typeParameters.params.push(...o.typeParameters.params),u.typeParameters.params=dd(u.typeParameters.params)):u=o.typeParameters}else r.set(l,o);continue}n.push(o)}}for(let[,a]of i)n.push(a);for(let[,a]of r)n.push(a);return n}});var hd=N($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.default=m2;var d2=Rt(),h2=Vo();function m2(e){let t=(0,h2.default)(e);return t.length===1?t[0]:(0,d2.unionTypeAnnotation)(t)}});var Td=N(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.default=yd;var qi=st();function md(e){return(0,qi.isIdentifier)(e)?e.name:(0,qi.isThisExpression)(e)?"this":`${e.right.name}.${md(e.left)}`}function yd(e){let t=Array.from(e),r=new Map,i=new Map,s=new Set,n=[];for(let a=0;a<t.length;a++){let o=t[a];if(!o||n.includes(o))continue;if((0,qi.isTSAnyKeyword)(o))return[o];if((0,qi.isTSBaseType)(o)){i.set(o.type,o);continue}if((0,qi.isTSUnionType)(o)){s.has(o.types)||(t.push(...o.types),s.add(o.types));continue}let l="typeParameters";if((0,qi.isTSTypeReference)(o)&&o[l]){let u=o[l],f=md(o.typeName);if(r.has(f)){let h=r.get(f),x=h[l];x?(x.params.push(...u.params),x.params=yd(x.params)):h=u}else r.set(f,o);continue}n.push(o)}for(let[,a]of i)n.push(a);for(let[,a]of r)n.push(a);return n}});var gd=N(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.default=S2;var y2=Rt(),T2=Td(),g2=st();function S2(e){let t=e.map(i=>(0,g2.isTSTypeAnnotation)(i)?i.typeAnnotation:i),r=(0,T2.default)(t);return r.length===1?r[0]:(0,y2.tsUnionType)(r)}});var Wo=N(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.buildUndefinedNode=x2;var Sd=Rt();function x2(){return(0,Sd.unaryExpression)("void",(0,Sd.numericLiteral)(0),!0)}});var qr=N(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.default=b2;var xd=Jt(),bd=st(),{hasOwn:hr}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function Ed(e,t,r,i){return e&&typeof e.type=="string"?Pd(e,t,r,i):e}function Ho(e,t,r,i){return Array.isArray(e)?e.map(s=>Ed(s,t,r,i)):Ed(e,t,r,i)}function b2(e,t=!0,r=!1){return Pd(e,t,r,new Map)}function Pd(e,t=!0,r=!1,i){if(!e)return e;let{type:s}=e,n={type:e.type};if((0,bd.isIdentifier)(e))n.name=e.name,hr(e,"optional")&&typeof e.optional=="boolean"&&(n.optional=e.optional),hr(e,"typeAnnotation")&&(n.typeAnnotation=t?Ho(e.typeAnnotation,!0,r,i):e.typeAnnotation),hr(e,"decorators")&&(n.decorators=t?Ho(e.decorators,!0,r,i):e.decorators);else if(hr(xd.NODE_FIELDS,s))for(let a of Object.keys(xd.NODE_FIELDS[s]))hr(e,a)&&(t?n[a]=(0,bd.isFile)(e)&&a==="comments"?Pn(e.comments,t,r,i):Ho(e[a],!0,r,i):n[a]=e[a]);else throw new Error(`Unknown node type: "${s}"`);return hr(e,"loc")&&(r?n.loc=null:n.loc=e.loc),hr(e,"leadingComments")&&(n.leadingComments=Pn(e.leadingComments,t,r,i)),hr(e,"innerComments")&&(n.innerComments=Pn(e.innerComments,t,r,i)),hr(e,"trailingComments")&&(n.trailingComments=Pn(e.trailingComments,t,r,i)),hr(e,"extra")&&(n.extra=Object.assign({},e.extra)),n}function Pn(e,t,r,i){return!e||!t?e:e.map(s=>{let n=i.get(s);if(n)return n;let{type:a,value:o,loc:l}=s,u={type:a,value:o,loc:l};return r&&(u.loc=null),i.set(s,u),u})}});var Ad=N(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.default=P2;var E2=qr();function P2(e){return(0,E2.default)(e,!1)}});var vd=N(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.default=v2;var A2=qr();function v2(e){return(0,A2.default)(e)}});var Cd=N(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.default=I2;var C2=qr();function I2(e){return(0,C2.default)(e,!0,!0)}});var Id=N(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.default=N2;var w2=qr();function N2(e){return(0,w2.default)(e,!1,!0)}});var rl=N(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.default=O2;function O2(e,t,r){if(!r||!e)return e;let i=`${t}Comments`;return e[i]?t==="leading"?e[i]=r.concat(e[i]):e[i].push(...r):e[i]=r,e}});var wd=N(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.default=k2;var _2=rl();function k2(e,t,r,i){return(0,_2.default)(e,t,[{type:i?"CommentLine":"CommentBlock",value:r}])}});var An=N(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.default=D2;function D2(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))}});var al=N(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.default=M2;var L2=An();function M2(e,t){(0,L2.default)("innerComments",e,t)}});var ll=N(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.default=F2;var B2=An();function F2(e,t){(0,B2.default)("leadingComments",e,t)}});var cl=N(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.default=j2;var R2=An();function j2(e,t){(0,R2.default)("trailingComments",e,t)}});var fl=N(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.default=V2;var q2=cl(),U2=ll(),K2=al();function V2(e,t){return(0,q2.default)(e,t),(0,U2.default)(e,t),(0,K2.default)(e,t),e}});var Nd=N(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.default=J2;var $2=Mi();function J2(e){return $2.COMMENT_KEYS.forEach(t=>{e[t]=null}),e}});var Od=N(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.WHILE_TYPES=q.USERWHITESPACABLE_TYPES=q.UNARYLIKE_TYPES=q.TYPESCRIPT_TYPES=q.TSTYPE_TYPES=q.TSTYPEELEMENT_TYPES=q.TSENTITYNAME_TYPES=q.TSBASETYPE_TYPES=q.TERMINATORLESS_TYPES=q.STATEMENT_TYPES=q.STANDARDIZED_TYPES=q.SCOPABLE_TYPES=q.PUREISH_TYPES=q.PROPERTY_TYPES=q.PRIVATE_TYPES=q.PATTERN_TYPES=q.PATTERNLIKE_TYPES=q.OBJECTMEMBER_TYPES=q.MODULESPECIFIER_TYPES=q.MODULEDECLARATION_TYPES=q.MISCELLANEOUS_TYPES=q.METHOD_TYPES=q.LVAL_TYPES=q.LOOP_TYPES=q.LITERAL_TYPES=q.JSX_TYPES=q.IMPORTOREXPORTDECLARATION_TYPES=q.IMMUTABLE_TYPES=q.FUNCTION_TYPES=q.FUNCTIONPARENT_TYPES=q.FUNCTIONPARAMETER_TYPES=q.FOR_TYPES=q.FORXSTATEMENT_TYPES=q.FLOW_TYPES=q.FLOWTYPE_TYPES=q.FLOWPREDICATE_TYPES=q.FLOWDECLARATION_TYPES=q.FLOWBASEANNOTATION_TYPES=q.EXPRESSION_TYPES=q.EXPRESSIONWRAPPER_TYPES=q.EXPORTDECLARATION_TYPES=q.ENUMMEMBER_TYPES=q.ENUMBODY_TYPES=q.DECLARATION_TYPES=q.CONDITIONAL_TYPES=q.COMPLETIONSTATEMENT_TYPES=q.CLASS_TYPES=q.BLOCK_TYPES=q.BLOCKPARENT_TYPES=q.BINARY_TYPES=q.ACCESSOR_TYPES=void 0;var he=Jt(),QZ=q.STANDARDIZED_TYPES=he.FLIPPED_ALIAS_KEYS.Standardized,ZZ=q.EXPRESSION_TYPES=he.FLIPPED_ALIAS_KEYS.Expression,eee=q.BINARY_TYPES=he.FLIPPED_ALIAS_KEYS.Binary,tee=q.SCOPABLE_TYPES=he.FLIPPED_ALIAS_KEYS.Scopable,ree=q.BLOCKPARENT_TYPES=he.FLIPPED_ALIAS_KEYS.BlockParent,iee=q.BLOCK_TYPES=he.FLIPPED_ALIAS_KEYS.Block,see=q.STATEMENT_TYPES=he.FLIPPED_ALIAS_KEYS.Statement,nee=q.TERMINATORLESS_TYPES=he.FLIPPED_ALIAS_KEYS.Terminatorless,aee=q.COMPLETIONSTATEMENT_TYPES=he.FLIPPED_ALIAS_KEYS.CompletionStatement,oee=q.CONDITIONAL_TYPES=he.FLIPPED_ALIAS_KEYS.Conditional,lee=q.LOOP_TYPES=he.FLIPPED_ALIAS_KEYS.Loop,uee=q.WHILE_TYPES=he.FLIPPED_ALIAS_KEYS.While,cee=q.EXPRESSIONWRAPPER_TYPES=he.FLIPPED_ALIAS_KEYS.ExpressionWrapper,pee=q.FOR_TYPES=he.FLIPPED_ALIAS_KEYS.For,fee=q.FORXSTATEMENT_TYPES=he.FLIPPED_ALIAS_KEYS.ForXStatement,dee=q.FUNCTION_TYPES=he.FLIPPED_ALIAS_KEYS.Function,hee=q.FUNCTIONPARENT_TYPES=he.FLIPPED_ALIAS_KEYS.FunctionParent,mee=q.PUREISH_TYPES=he.FLIPPED_ALIAS_KEYS.Pureish,yee=q.DECLARATION_TYPES=he.FLIPPED_ALIAS_KEYS.Declaration,Tee=q.FUNCTIONPARAMETER_TYPES=he.FLIPPED_ALIAS_KEYS.FunctionParameter,gee=q.PATTERNLIKE_TYPES=he.FLIPPED_ALIAS_KEYS.PatternLike,See=q.LVAL_TYPES=he.FLIPPED_ALIAS_KEYS.LVal,xee=q.TSENTITYNAME_TYPES=he.FLIPPED_ALIAS_KEYS.TSEntityName,bee=q.LITERAL_TYPES=he.FLIPPED_ALIAS_KEYS.Literal,Eee=q.IMMUTABLE_TYPES=he.FLIPPED_ALIAS_KEYS.Immutable,Pee=q.USERWHITESPACABLE_TYPES=he.FLIPPED_ALIAS_KEYS.UserWhitespacable,Aee=q.METHOD_TYPES=he.FLIPPED_ALIAS_KEYS.Method,vee=q.OBJECTMEMBER_TYPES=he.FLIPPED_ALIAS_KEYS.ObjectMember,Cee=q.PROPERTY_TYPES=he.FLIPPED_ALIAS_KEYS.Property,Iee=q.UNARYLIKE_TYPES=he.FLIPPED_ALIAS_KEYS.UnaryLike,wee=q.PATTERN_TYPES=he.FLIPPED_ALIAS_KEYS.Pattern,Nee=q.CLASS_TYPES=he.FLIPPED_ALIAS_KEYS.Class,X2=q.IMPORTOREXPORTDECLARATION_TYPES=he.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,Oee=q.EXPORTDECLARATION_TYPES=he.FLIPPED_ALIAS_KEYS.ExportDeclaration,_ee=q.MODULESPECIFIER_TYPES=he.FLIPPED_ALIAS_KEYS.ModuleSpecifier,kee=q.ACCESSOR_TYPES=he.FLIPPED_ALIAS_KEYS.Accessor,Dee=q.PRIVATE_TYPES=he.FLIPPED_ALIAS_KEYS.Private,Lee=q.FLOW_TYPES=he.FLIPPED_ALIAS_KEYS.Flow,Mee=q.FLOWTYPE_TYPES=he.FLIPPED_ALIAS_KEYS.FlowType,Bee=q.FLOWBASEANNOTATION_TYPES=he.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,Fee=q.FLOWDECLARATION_TYPES=he.FLIPPED_ALIAS_KEYS.FlowDeclaration,Ree=q.FLOWPREDICATE_TYPES=he.FLIPPED_ALIAS_KEYS.FlowPredicate,jee=q.ENUMBODY_TYPES=he.FLIPPED_ALIAS_KEYS.EnumBody,qee=q.ENUMMEMBER_TYPES=he.FLIPPED_ALIAS_KEYS.EnumMember,Uee=q.JSX_TYPES=he.FLIPPED_ALIAS_KEYS.JSX,Kee=q.MISCELLANEOUS_TYPES=he.FLIPPED_ALIAS_KEYS.Miscellaneous,Vee=q.TYPESCRIPT_TYPES=he.FLIPPED_ALIAS_KEYS.TypeScript,$ee=q.TSTYPEELEMENT_TYPES=he.FLIPPED_ALIAS_KEYS.TSTypeElement,Jee=q.TSTYPE_TYPES=he.FLIPPED_ALIAS_KEYS.TSType,Xee=q.TSBASETYPE_TYPES=he.FLIPPED_ALIAS_KEYS.TSBaseType,Yee=q.MODULEDECLARATION_TYPES=X2});var yl=N(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.default=Y2;var vn=st(),hl=Rt();function Y2(e,t){if((0,vn.isBlockStatement)(e))return e;let r=[];return(0,vn.isEmptyStatement)(e)?r=[]:((0,vn.isStatement)(e)||((0,vn.isFunction)(t)?e=(0,hl.returnStatement)(e):e=(0,hl.expressionStatement)(e)),r=[e]),(0,hl.blockStatement)(r)}});var _d=N(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.default=H2;var W2=yl();function H2(e,t="body"){let r=(0,W2.default)(e[t],e);return e[t]=r,r}});var Sl=N(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.default=Q2;var z2=Li(),G2=us();function Q2(e){e=e+"";let t="";for(let r of e)t+=(0,G2.isIdentifierChar)(r.codePointAt(0))?r:"-";return t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,function(r,i){return i?i.toUpperCase():""}),(0,z2.default)(t)||(t=`_${t}`),t||"_"}});var kd=N(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.default=eM;var Z2=Sl();function eM(e){return e=(0,Z2.default)(e),(e==="eval"||e==="arguments")&&(e="_"+e),e}});var Dd=N(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.default=iM;var tM=st(),rM=Rt();function iM(e,t=e.key||e.property){return!e.computed&&(0,tM.isIdentifier)(t)&&(t=(0,rM.stringLiteral)(t.name)),t}});var Ld=N(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.default=void 0;var gs=st(),ete=Cn.default=sM;function sM(e){if((0,gs.isExpressionStatement)(e)&&(e=e.expression),(0,gs.isExpression)(e))return e;if((0,gs.isClass)(e)?(e.type="ClassExpression",e.abstract=!1):(0,gs.isFunction)(e)&&(e.type="FunctionExpression"),!(0,gs.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}});var Pl=N(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.default=Ss;var nM=Jt(),Md=Symbol(),Bd=Symbol();function Ss(e,t,r){if(!e)return!1;let i=nM.VISITOR_KEYS[e.type];if(!i)return!1;r=r||{};let s=t(e,r);if(s!==void 0)switch(s){case Md:return!1;case Bd:return!0}for(let n of i){let a=e[n];if(a){if(Array.isArray(a)){for(let o of a)if(Ss(o,t,r))return!0}else if(Ss(a,t,r))return!0}}return!1}Ss.skip=Md;Ss.stop=Bd});var vl=N(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.default=lM;var aM=Mi(),Fd=["tokens","start","end","loc","raw","rawValue"],oM=[...aM.COMMENT_KEYS,"comments",...Fd];function lM(e,t={}){let r=t.preserveComments?Fd:oM;for(let s of r)e[s]!=null&&(e[s]=void 0);for(let s of Object.keys(e))s.startsWith("_")&&e[s]!=null&&(e[s]=void 0);let i=Object.getOwnPropertySymbols(e);for(let s of i)e[s]=null}});var Il=N(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.default=pM;var uM=Pl(),cM=vl();function pM(e,t){return(0,uM.default)(e,cM.default,t),e}});var jd=N(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.default=li;var Rd=st(),fM=qr(),dM=Il();function li(e,t=e.key){let r;return e.kind==="method"?li.increment()+"":((0,Rd.isIdentifier)(t)?r=t.name:(0,Rd.isStringLiteral)(t)?r=JSON.stringify(t.value):r=JSON.stringify((0,dM.default)((0,fM.default)(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}li.uid=0;li.increment=function(){return li.uid>=Number.MAX_SAFE_INTEGER?li.uid=0:li.uid++}});var qd=N(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.default=void 0;var In=st(),hM=Rt(),ate=wn.default=mM;function mM(e,t){if((0,In.isStatement)(e))return e;let r=!1,i;if((0,In.isClass)(e))r=!0,i="ClassDeclaration";else if((0,In.isFunction)(e))r=!0,i="FunctionDeclaration";else if((0,In.isAssignmentExpression)(e))return(0,hM.expressionStatement)(e);if(r&&!e.id&&(i=!1),!i){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=i,e}});var Ud=N(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.default=void 0;var yM=Li(),ft=Rt(),lte=Nn.default=Nl,TM=Function.call.bind(Object.prototype.toString);function gM(e){return TM(e)==="[object RegExp]"}function SM(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Nl(e){if(e===void 0)return(0,ft.identifier)("undefined");if(e===!0||e===!1)return(0,ft.booleanLiteral)(e);if(e===null)return(0,ft.nullLiteral)();if(typeof e=="string")return(0,ft.stringLiteral)(e);if(typeof e=="number"){let t;if(Number.isFinite(e))t=(0,ft.numericLiteral)(Math.abs(e));else{let r;Number.isNaN(e)?r=(0,ft.numericLiteral)(0):r=(0,ft.numericLiteral)(1),t=(0,ft.binaryExpression)("/",r,(0,ft.numericLiteral)(0))}return(e<0||Object.is(e,-0))&&(t=(0,ft.unaryExpression)("-",t)),t}if(typeof e=="bigint")return e<0?(0,ft.unaryExpression)("-",(0,ft.bigIntLiteral)(-e)):(0,ft.bigIntLiteral)(e);if(gM(e)){let t=e.source,r=/\/([a-z]*)$/.exec(e.toString())[1];return(0,ft.regExpLiteral)(t,r)}if(Array.isArray(e))return(0,ft.arrayExpression)(e.map(Nl));if(SM(e)){let t=[];for(let r of Object.keys(e)){let i,s=!1;(0,yM.default)(r)?r==="__proto__"?(s=!0,i=(0,ft.stringLiteral)(r)):i=(0,ft.identifier)(r):i=(0,ft.stringLiteral)(r),t.push((0,ft.objectProperty)(i,Nl(e[r]),s))}return(0,ft.objectExpression)(t)}throw new Error("don't know how to turn this value into a node")}});var Kd=N(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.default=bM;var xM=Rt();function bM(e,t,r=!1){return e.object=(0,xM.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e}});var $d=N(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.default=PM;var Vd=Mi(),EM=fl();function PM(e,t){if(!e||!t)return e;for(let r of Vd.INHERIT_KEYS.optional)e[r]==null&&(e[r]=t[r]);for(let r of Object.keys(t))r.startsWith("_")&&r!=="__clone"&&(e[r]=t[r]);for(let r of Vd.INHERIT_KEYS.force)e[r]=t[r];return(0,EM.default)(e,t),e}});var Jd=N(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.default=CM;var AM=Rt(),vM=ye();function CM(e,t){if((0,vM.isSuper)(e.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,AM.memberExpression)(t,e.object),e}});var Xd=N(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.default=IM;function IM(e){let t=[].concat(e),r=Object.create(null);for(;t.length;){let i=t.pop();if(i)switch(i.type){case"ArrayPattern":t.push(...i.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(i.left);break;case"ObjectPattern":t.push(...i.properties);break;case"ObjectProperty":t.push(i.value);break;case"RestElement":case"UpdateExpression":t.push(i.argument);break;case"UnaryExpression":i.operator==="delete"&&t.push(i.argument);break;case"Identifier":r[i.name]=i;break;default:break}}return r}});var xs=N(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});Ml.default=Ll;var wr=st();function Ll(e,t,r,i){let s=[].concat(e),n=Object.create(null);for(;s.length;){let a=s.shift();if(!a||i&&((0,wr.isAssignmentExpression)(a)||(0,wr.isUnaryExpression)(a)||(0,wr.isUpdateExpression)(a)))continue;if((0,wr.isIdentifier)(a)){t?(n[a.name]=n[a.name]||[]).push(a):n[a.name]=a;continue}if((0,wr.isExportDeclaration)(a)&&!(0,wr.isExportAllDeclaration)(a)){(0,wr.isDeclaration)(a.declaration)&&s.push(a.declaration);continue}if(r){if((0,wr.isFunctionDeclaration)(a)){s.push(a.id);continue}if((0,wr.isFunctionExpression)(a))continue}let o=Ll.keys[a.type];if(o)for(let l=0;l<o.length;l++){let u=o[l],f=a[u];f&&(Array.isArray(f)?s.push(...f):s.push(f))}}return n}var wM={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};Ll.keys=wM});var Yd=N(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.default=void 0;var NM=xs(),mte=On.default=OM;function OM(e,t){return(0,NM.default)(e,t,!0)}});var Hd=N(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.default=kM;var Xt=st();function _M(e){return(0,Xt.isNullLiteral)(e)?"null":(0,Xt.isRegExpLiteral)(e)?`/${e.pattern}/${e.flags}`:(0,Xt.isTemplateLiteral)(e)?e.quasis.map(t=>t.value.raw).join(""):e.value!==void 0?String(e.value):null}function Wd(e){if(!e.computed||(0,Xt.isLiteral)(e.key))return e.key}function kM(e,t){if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let r="",i;if((0,Xt.isObjectProperty)(t,{value:e})?i=Wd(t):(0,Xt.isObjectMethod)(e)||(0,Xt.isClassMethod)(e)?(i=Wd(e),e.kind==="get"?r="get ":e.kind==="set"&&(r="set ")):(0,Xt.isVariableDeclarator)(t,{init:e})?i=t.id:(0,Xt.isAssignmentExpression)(t,{operator:"=",right:e})&&(i=t.left),!i)return null;let s=(0,Xt.isLiteral)(i)?_M(i):(0,Xt.isIdentifier)(i)?i.name:(0,Xt.isPrivateName)(i)?i.id.name:null;return s==null?null:{name:r+s,originalNode:i}}});var zd=N(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.default=LM;var DM=Jt();function LM(e,t,r){typeof t=="function"&&(t={enter:t});let{enter:i,exit:s}=t;Fl(e,i,s,r,[])}function Fl(e,t,r,i,s){let n=DM.VISITOR_KEYS[e.type];if(n){t&&t(e,s,i);for(let a of n){let o=e[a];if(Array.isArray(o))for(let l=0;l<o.length;l++){let u=o[l];u&&(s.push({node:e,key:a,index:l}),Fl(u,t,r,i,s),s.pop())}else o&&(s.push({node:e,key:a}),Fl(o,t,r,i,s),s.pop())}r&&r(e,s,i)}}});var Gd=N(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.default=BM;var MM=xs();function BM(e,t,r){if(r&&e.type==="Identifier"&&t.type==="ObjectProperty"&&r.type==="ObjectExpression")return!1;let i=MM.default.keys[t.type];if(i)for(let s=0;s<i.length;s++){let n=i[s],a=t[n];if(Array.isArray(a)){if(a.includes(e))return!0}else if(a===e)return!0}return!1}});var Ul=N(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.default=jM;var FM=st(),RM=Symbol.for("var used to be block scoped");function jM(e){return(0,FM.isVariableDeclaration)(e)&&(e.kind!=="var"||e[RM])}});var Zd=N(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.default=UM;var Qd=st(),qM=Ul();function UM(e){return(0,Qd.isFunctionDeclaration)(e)||(0,Qd.isClassDeclaration)(e)||(0,qM.default)(e)}});var eh=N(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.default=$M;var KM=pn(),VM=st();function $M(e){return(0,KM.default)(e.type,"Immutable")?!0:(0,VM.isIdentifier)(e)?e.name==="undefined":!1}});var rh=N(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.default=$l;var th=Jt();function $l(e,t){if(typeof e!="object"||typeof t!="object"||e==null||t==null)return e===t;if(e.type!==t.type)return!1;let r=Object.keys(th.NODE_FIELDS[e.type]||e.type),i=th.VISITOR_KEYS[e.type];for(let s of r){let n=e[s],a=t[s];if(typeof n!=typeof a)return!1;if(!(n==null&&a==null)){if(n==null||a==null)return!1;if(Array.isArray(n)){if(!Array.isArray(a)||n.length!==a.length)return!1;for(let o=0;o<n.length;o++)if(!$l(n[o],a[o]))return!1;continue}if(typeof n=="object"&&!(i!=null&&i.includes(s))){for(let o of Object.keys(n))if(n[o]!==a[o])return!1;continue}if(!$l(n,a))return!1}}return!0}});var ih=N(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.default=JM;function JM(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e?!!t.computed:!1;case"ObjectProperty":return t.key===e?!!t.computed:r?.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return t.key===e?!!t.computed:!0;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return r!=null&&r.source?!1:t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key===e?!!t.computed:!0}return!0}});var sh=N(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.default=XM;var ui=st();function XM(e,t){return(0,ui.isBlockStatement)(e)&&((0,ui.isFunction)(t)||(0,ui.isCatchClause)(t))?!1:(0,ui.isPattern)(e)&&((0,ui.isFunction)(t)||(0,ui.isCatchClause)(t))?!0:(0,ui.isScopable)(e)}});var ah=N(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.default=YM;var nh=st();function YM(e){return(0,nh.isImportDefaultSpecifier)(e)||(0,nh.isIdentifier)(e.imported||e.exported,{name:"default"})}});var oh=N(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.default=zM;var WM=Li(),HM=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function zM(e){return(0,WM.default)(e)&&!HM.has(e)}});var lh=N(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});zl.default=ZM;var GM=st(),QM=Symbol.for("var used to be block scoped");function ZM(e){return(0,GM.isVariableDeclaration)(e,{kind:"var"})&&!e[QM]}});var uh=N(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.default=_n;var eB=xs(),ci=st(),Gl=Rt(),Ql=Wo(),tB=qr();function _n(e,t){let r=[],i=!0;for(let s of e)if((0,ci.isEmptyStatement)(s)||(i=!1),(0,ci.isExpression)(s))r.push(s);else if((0,ci.isExpressionStatement)(s))r.push(s.expression);else if((0,ci.isVariableDeclaration)(s)){if(s.kind!=="var")return;for(let n of s.declarations){let a=(0,eB.default)(n);for(let o of Object.keys(a))t.push({kind:s.kind,id:(0,tB.default)(a[o])});n.init&&r.push((0,Gl.assignmentExpression)("=",n.id,n.init))}i=!0}else if((0,ci.isIfStatement)(s)){let n=s.consequent?_n([s.consequent],t):(0,Ql.buildUndefinedNode)(),a=s.alternate?_n([s.alternate],t):(0,Ql.buildUndefinedNode)();if(!n||!a)return;r.push((0,Gl.conditionalExpression)(s.test,n,a))}else if((0,ci.isBlockStatement)(s)){let n=_n(s.body,t);if(!n)return;r.push(n)}else if((0,ci.isEmptyStatement)(s))e.indexOf(s)===0&&(i=!0);else return;return i&&r.push((0,Ql.buildUndefinedNode)()),r.length===1?r[0]:(0,Gl.sequenceExpression)(r)}});var ch=N(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.default=iB;var rB=uh();function iB(e,t){if(!(e!=null&&e.length))return;let r=[],i=(0,rB.default)(e,r);if(i){for(let s of r)t.push(s);return i}}});var ye=N(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var Ur={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(W,"__internal__deprecationWarning",{enumerable:!0,get:function(){return oF.default}});Object.defineProperty(W,"addComment",{enumerable:!0,get:function(){return mB.default}});Object.defineProperty(W,"addComments",{enumerable:!0,get:function(){return yB.default}});Object.defineProperty(W,"appendToMemberExpression",{enumerable:!0,get:function(){return _B.default}});Object.defineProperty(W,"assertNode",{enumerable:!0,get:function(){return oB.default}});Object.defineProperty(W,"buildMatchMemberExpression",{enumerable:!0,get:function(){return aF.default}});Object.defineProperty(W,"clone",{enumerable:!0,get:function(){return pB.default}});Object.defineProperty(W,"cloneDeep",{enumerable:!0,get:function(){return fB.default}});Object.defineProperty(W,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return dB.default}});Object.defineProperty(W,"cloneNode",{enumerable:!0,get:function(){return cB.default}});Object.defineProperty(W,"cloneWithoutLoc",{enumerable:!0,get:function(){return hB.default}});Object.defineProperty(W,"createFlowUnionType",{enumerable:!0,get:function(){return ph.default}});Object.defineProperty(W,"createTSUnionType",{enumerable:!0,get:function(){return uB.default}});Object.defineProperty(W,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return lB.default}});Object.defineProperty(W,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return ph.default}});Object.defineProperty(W,"ensureBlock",{enumerable:!0,get:function(){return EB.default}});Object.defineProperty(W,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return FB.default}});Object.defineProperty(W,"getBindingIdentifiers",{enumerable:!0,get:function(){return RB.default}});Object.defineProperty(W,"getFunctionName",{enumerable:!0,get:function(){return qB.default}});Object.defineProperty(W,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return jB.default}});Object.defineProperty(W,"inheritInnerComments",{enumerable:!0,get:function(){return TB.default}});Object.defineProperty(W,"inheritLeadingComments",{enumerable:!0,get:function(){return gB.default}});Object.defineProperty(W,"inheritTrailingComments",{enumerable:!0,get:function(){return xB.default}});Object.defineProperty(W,"inherits",{enumerable:!0,get:function(){return kB.default}});Object.defineProperty(W,"inheritsComments",{enumerable:!0,get:function(){return SB.default}});Object.defineProperty(W,"is",{enumerable:!0,get:function(){return VB.default}});Object.defineProperty(W,"isBinding",{enumerable:!0,get:function(){return $B.default}});Object.defineProperty(W,"isBlockScoped",{enumerable:!0,get:function(){return JB.default}});Object.defineProperty(W,"isImmutable",{enumerable:!0,get:function(){return XB.default}});Object.defineProperty(W,"isLet",{enumerable:!0,get:function(){return YB.default}});Object.defineProperty(W,"isNode",{enumerable:!0,get:function(){return WB.default}});Object.defineProperty(W,"isNodesEquivalent",{enumerable:!0,get:function(){return HB.default}});Object.defineProperty(W,"isPlaceholderType",{enumerable:!0,get:function(){return zB.default}});Object.defineProperty(W,"isReferenced",{enumerable:!0,get:function(){return GB.default}});Object.defineProperty(W,"isScope",{enumerable:!0,get:function(){return QB.default}});Object.defineProperty(W,"isSpecifierDefault",{enumerable:!0,get:function(){return ZB.default}});Object.defineProperty(W,"isType",{enumerable:!0,get:function(){return eF.default}});Object.defineProperty(W,"isValidES3Identifier",{enumerable:!0,get:function(){return tF.default}});Object.defineProperty(W,"isValidIdentifier",{enumerable:!0,get:function(){return rF.default}});Object.defineProperty(W,"isVar",{enumerable:!0,get:function(){return iF.default}});Object.defineProperty(W,"matchesPattern",{enumerable:!0,get:function(){return sF.default}});Object.defineProperty(W,"prependToMemberExpression",{enumerable:!0,get:function(){return DB.default}});W.react=void 0;Object.defineProperty(W,"removeComments",{enumerable:!0,get:function(){return bB.default}});Object.defineProperty(W,"removeProperties",{enumerable:!0,get:function(){return LB.default}});Object.defineProperty(W,"removePropertiesDeep",{enumerable:!0,get:function(){return MB.default}});Object.defineProperty(W,"removeTypeDuplicates",{enumerable:!0,get:function(){return BB.default}});Object.defineProperty(W,"shallowEqual",{enumerable:!0,get:function(){return KB.default}});Object.defineProperty(W,"toBindingIdentifierName",{enumerable:!0,get:function(){return PB.default}});Object.defineProperty(W,"toBlock",{enumerable:!0,get:function(){return AB.default}});Object.defineProperty(W,"toComputedKey",{enumerable:!0,get:function(){return vB.default}});Object.defineProperty(W,"toExpression",{enumerable:!0,get:function(){return CB.default}});Object.defineProperty(W,"toIdentifier",{enumerable:!0,get:function(){return IB.default}});Object.defineProperty(W,"toKeyAlias",{enumerable:!0,get:function(){return wB.default}});Object.defineProperty(W,"toStatement",{enumerable:!0,get:function(){return NB.default}});Object.defineProperty(W,"traverse",{enumerable:!0,get:function(){return kn.default}});Object.defineProperty(W,"traverseFast",{enumerable:!0,get:function(){return UB.default}});Object.defineProperty(W,"validate",{enumerable:!0,get:function(){return nF.default}});Object.defineProperty(W,"valueToNode",{enumerable:!0,get:function(){return OB.default}});var sB=yf(),nB=Tf(),aB=ld(),oB=ud(),tu=cd();Object.keys(tu).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ur,e)||e in W&&W[e]===tu[e]||Object.defineProperty(W,e,{enumerable:!0,get:function(){return tu[e]}})});var lB=pd(),ph=hd(),uB=gd(),ru=Wo();Object.keys(ru).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ur,e)||e in W&&W[e]===ru[e]||Object.defineProperty(W,e,{enumerable:!0,get:function(){return ru[e]}})});var iu=Rt();Object.keys(iu).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ur,e)||e in W&&W[e]===iu[e]||Object.defineProperty(W,e,{enumerable:!0,get:function(){return iu[e]}})});var cB=qr(),pB=Ad(),fB=vd(),dB=Cd(),hB=Id(),mB=wd(),yB=rl(),TB=al(),gB=ll(),SB=fl(),xB=cl(),bB=Nd(),su=Od();Object.keys(su).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ur,e)||e in W&&W[e]===su[e]||Object.defineProperty(W,e,{enumerable:!0,get:function(){return su[e]}})});var nu=Mi();Object.keys(nu).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ur,e)||e in W&&W[e]===nu[e]||Object.defineProperty(W,e,{enumerable:!0,get:function(){return nu[e]}})});var EB=_d(),PB=kd(),AB=yl(),vB=Dd(),CB=Ld(),IB=Sl(),wB=jd(),NB=qd(),OB=Ud(),au=Jt();Object.keys(au).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ur,e)||e in W&&W[e]===au[e]||Object.defineProperty(W,e,{enumerable:!0,get:function(){return au[e]}})});var _B=Kd(),kB=$d(),DB=Jd(),LB=vl(),MB=Il(),BB=Vo(),FB=Xd(),RB=xs(),jB=Yd(),qB=Hd(),kn=zd();Object.keys(kn).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ur,e)||e in W&&W[e]===kn[e]||Object.defineProperty(W,e,{enumerable:!0,get:function(){return kn[e]}})});var UB=Pl(),KB=un(),VB=Di(),$B=Gd(),JB=Zd(),XB=eh(),YB=Ul(),WB=qo(),HB=rh(),zB=co(),GB=ih(),QB=sh(),ZB=ah(),eF=pn(),tF=oh(),rF=Li(),iF=lh(),sF=so(),nF=mn(),aF=ao(),ou=st();Object.keys(ou).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ur,e)||e in W&&W[e]===ou[e]||Object.defineProperty(W,e,{enumerable:!0,get:function(){return ou[e]}})});var oF=ki(),lF=ch(),_te=W.react={isReactComponent:sB.default,isCompatTag:nB.default,buildChildren:aB.default};W.toSequenceExpression=lF.default;process.env.BABEL_TYPES_8_BREAKING&&console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")});var lu=N(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.isBindingIdentifier=_F;dt.isBlockScoped=BF;dt.isExpression=DF;dt.isFlow=UF;dt.isForAwaitStatement=$F;dt.isGenerated=jF;dt.isPure=qF;dt.isReferenced=MF;dt.isReferencedIdentifier=NF;dt.isReferencedMemberExpression=OF;dt.isRestProperty=KF;dt.isScope=LF;dt.isSpreadProperty=VF;dt.isStatement=kF;dt.isUser=RF;dt.isVar=FF;var uF=ye(),{isBinding:cF,isBlockScoped:pF,isExportDeclaration:fF,isExpression:dF,isFlow:hF,isForStatement:mF,isForXStatement:yF,isIdentifier:fh,isImportDeclaration:TF,isImportSpecifier:gF,isJSXIdentifier:SF,isJSXMemberExpression:xF,isMemberExpression:bF,isRestElement:dh,isReferenced:Dn,isScope:EF,isStatement:PF,isVar:AF,isVariableDeclaration:vF,react:CF,isForOfStatement:IF}=uF,{isCompatTag:wF}=CF;function NF(e){let{node:t,parent:r}=this;return fh(t,e)?Dn(t,r,this.parentPath.parent):SF(t,e)?!xF(r)&&wF(t.name)?!1:Dn(t,r,this.parentPath.parent):!1}function OF(){let{node:e,parent:t}=this;return bF(e)&&Dn(e,t)}function _F(){let{node:e,parent:t}=this,r=this.parentPath.parent;return fh(e)&&cF(e,t,r)}function kF(){let{node:e,parent:t}=this;return PF(e)?!(vF(e)&&(yF(t,{left:e})||mF(t,{init:e}))):!1}function DF(){return this.isIdentifier()?this.isReferencedIdentifier():dF(this.node)}function LF(){return EF(this.node,this.parent)}function MF(){return Dn(this.node,this.parent)}function BF(){return pF(this.node)}function FF(){return AF(this.node)}function RF(){var e;return!!((e=this.node)!=null&&e.loc)}function jF(){return!this.isUser()}function qF(e){return this.scope.isPure(this.node,e)}function UF(){let{node:e}=this;return hF(e)?!0:TF(e)?e.importKind==="type"||e.importKind==="typeof":fF(e)?e.exportKind==="type":gF(e)?e.importKind==="type"||e.importKind==="typeof":!1}function KF(){var e;return dh(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function VF(){var e;return dh(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function $F(){return IF(this.node,{await:!0})}dt.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")};dt.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var Es=N(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.environmentVisitor=QF;fi.explode=Ah;fi.isExplodedVisitor=Ph;fi.merge=Ch;fi.verify=vh;var Eh=za(),JF=lu(),XF=ye(),hh=Yt(),{DEPRECATED_KEYS:mh,DEPRECATED_ALIASES:yh,FLIPPED_ALIAS_KEYS:Th,TYPES:YF,__internal__deprecationWarning:gh}=XF;function WF(e){return e in Eh}function Ph(e){return e?._exploded}function Ah(e){if(Ph(e))return e;e._exploded=!0;for(let r of Object.keys(e)){if(pi(r))continue;let i=r.split("|");if(i.length===1)continue;let s=e[r];delete e[r];for(let n of i)e[n]=s}vh(e),delete e.__esModule,HF(e),bh(e);for(let r of Object.keys(e)){if(pi(r)||!WF(r))continue;let i=e[r];for(let n of Object.keys(i))i[n]=zF(r,i[n]);delete e[r];let s=Eh[r];if(s!==null)for(let n of s){var t;(t=e[n])!=null||(e[n]={}),bs(e[n],i)}else bs(e,i)}for(let r of Object.keys(e)){if(pi(r))continue;let i=Th[r];if(r in mh){let n=mh[r];gh(r,n,"Visitor "),i=[n]}else if(r in yh){let n=yh[r];gh(r,n,"Visitor "),i=Th[n]}if(!i)continue;let s=e[r];delete e[r];for(let n of i){let a=e[n];a?bs(a,s):e[n]=Object.assign({},s)}}for(let r of Object.keys(e))pi(r)||bh(e[r]);return e}function vh(e){if(!e._verified){if(typeof e=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let t of Object.keys(e)){if((t==="enter"||t==="exit")&&Sh(t,e[t]),pi(t))continue;if(!YF.includes(t))throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.29.8`);let r=e[t];if(typeof r=="object")for(let i of Object.keys(r))if(i==="enter"||i==="exit")Sh(`${t}.${i}`,r[i]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${i}`)}e._verified=!0}}function Sh(e,t){let r=[].concat(t);for(let i of r)if(typeof i!="function")throw new TypeError(`Non-function found defined in ${e} with type ${typeof i}`)}function Ch(e,t=[],r){let i={_verified:!0,_exploded:!0};Object.defineProperty(i,"_exploded",{enumerable:!1}),Object.defineProperty(i,"_verified",{enumerable:!1});for(let s=0;s<e.length;s++){let n=Ah(e[s]),a=t[s],o=n;(a||r)&&(o=xh(o,a,r)),bs(i,o);for(let l of Object.keys(n)){if(pi(l))continue;let u=n[l];(a||r)&&(u=xh(u,a,r));let f=i[l]||(i[l]={});bs(f,u)}}return i}function xh(e,t,r){let i={};for(let s of["enter","exit"]){let n=e[s];Array.isArray(n)&&(n=n.map(function(a){let o=a;return t&&(o=function(l){a.call(t,l,t)}),r&&(o=r(t?.key,s,o)),o!==a&&(o.toString=()=>a.toString()),o}),i[s]=n)}return i}function HF(e){for(let t of Object.keys(e)){if(pi(t))continue;let r=e[t];typeof r=="function"&&(e[t]={enter:r})}}function bh(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function zF(e,t){let r=`is${e}`,i=JF[r],s=function(n){if(i.call(n))return t.apply(this,arguments)};return s.toString=()=>t.toString(),s}function pi(e){return!!(e.startsWith("_")||e==="enter"||e==="exit"||e==="shouldSkip"||e==="denylist"||e==="noScope"||e==="skipKeys"||e==="blacklist")}function bs(e,t){for(let r of["enter","exit"])t[r]&&(e[r]=[].concat(e[r]||[],t[r]))}var GF={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():hh.requeueComputedKeyAndDecorators.call(e)))},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():hh.requeueComputedKeyAndDecorators.call(e))}};function QF(e){return Ch([GF,e])}});var Ih=N(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.default=void 0;var Ln=ye(),ZF=Ln,e3=Bn(),t3=Es(),r3=Yt(),{getAssignmentIdentifiers:i3}=ZF,s3={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():r3.requeueComputedKeyAndDecorators.call(e)),e.isSwitchStatement()&&e.context.maybeQueue(e.get("discriminant")))},ObjectProperty({node:e,scope:t},r){let{name:i}=e.key;if(e.shorthand&&(i===r.oldName||i===r.newName)&&t.getBindingIdentifier(i)===r.binding.identifier){var s;e.shorthand=!1,(s=e.extra)!=null&&s.shorthand&&(e.extra.shorthand=!1)}},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;let r=e.isAssignmentExpression()?i3(e.node):e.getOuterBindingIdentifiers();for(let i in r)i===t.oldName&&(r[i].name=t.newName)}},uu=class{constructor(t,r,i){this.newName=i,this.oldName=r,this.binding=t}maybeConvertFromExportDeclaration(t){let r=t.parentPath;if(r.isExportDeclaration()){if(r.isExportDefaultDeclaration()){let{declaration:i}=r.node;if(Ln.isDeclaration(i)&&!i.id)return}r.isExportAllDeclaration()||r.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(t){return t}maybeConvertFromClassFunctionExpression(t){return t}rename(){let{binding:t,oldName:r,newName:i}=this,{scope:s,path:n}=t,a=n.find(u=>u.isDeclaration()||u.isFunctionExpression()||u.isClassExpression());a&&a.getOuterBindingIdentifiers()[r]===t.identifier&&this.maybeConvertFromExportDeclaration(a);let o=arguments[0]||s.block,l={discriminant:!0};Ln.isMethod(o)&&(o.computed&&(l.key=!0),Ln.isObjectMethod(o)||(l.decorators=!0)),(0,e3.traverseNode)(o,(0,t3.explode)(s3),s,this,s.path,l),arguments[0]||(s.removeOwnBinding(r),s.bindings[i]=t,this.binding.identifier.name=i),a&&(this.maybeConvertFromClassFunctionDeclaration(n),this.maybeConvertFromClassFunctionExpression(n))}};Mn.default=uu});var wh=N(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.default=c3;var n3=ye(),a3=mr(),o3=Es(),l3=Yt(),{VISITOR_KEYS:u3}=n3;function c3(e,t,r){let i=(0,o3.explode)(t);if(i.enter||i.exit)throw new Error("Should not be used with enter/exit visitors.");s(e.parentPath,e.parent,e.node,e.container,e.key,e.listKey,e.hub,e);function s(n,a,o,l,u,f,h,x){if(!o)return;let A=x||a3.NodePath.get({hub:h,parentPath:n,parent:a,container:l,listKey:f,key:u});l3._forceSetScope.call(A);let P=i[o.type];if(P!=null&&P.enter)for(let b of P.enter)b.call(r,A,r);if(A.shouldSkip)return;let w=u3[o.type];if(w!=null&&w.length){for(let b of w){let C=o[b];if(C)if(Array.isArray(C))for(let D=0;D<C.length;D++){let U=C[D];s(A,o,U,C,D,b)}else s(A,o,C,o,b,null)}if(P!=null&&P.exit)for(let b of P.exit)b.call(r,A,r)}}}});var Nh=N(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.default=void 0;var pu=class{constructor({identifier:t,scope:r,path:i,kind:s}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=t,this.scope=r,this.path=i,this.kind=s,(s==="var"||s==="hoisted")&&p3(i)&&this.reassign(i),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(t){this.hasDeoptedValue||(this.hasValue=!0,this.value=t)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(t){this.constant=!1,!this.constantViolations.includes(t)&&this.constantViolations.push(t)}reference(t){this.referencePaths.includes(t)||(this.referenced=!0,this.references++,this.referencePaths.push(t))}dereference(){this.references--,this.referenced=!!this.references}};Fn.default=pu;function p3(e){let t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:r,key:i}=e;r;{parentPath:r,key:i}=r){if(r.isFunctionParent())return!1;if(i==="left"&&r.isForXStatement()||t&&i==="body"&&r.isLoop())return!0}return!1}});var di=N(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.clear=d3;Ut.clearPath=Oh;Ut.clearScope=_h;Ut.getCachedPaths=h3;Ut.getOrCreateCachedPaths=m3;Ut.scope=Ut.path=void 0;var Rn=Ut.path=new WeakMap,f3=Ut.scope=new WeakMap;function d3(){Oh(),_h()}function Oh(){Ut.path=Rn=new WeakMap}function _h(){Ut.scope=f3=new WeakMap}function h3(e){let{parent:t,parentPath:r}=e;return Rn.get(t)}function m3(e,t){let r=Rn.get(e);return r||Rn.set(e,r=new Map),r}});var kh=N((jte,y3)=>{y3.exports=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]});var Dh=N((qte,T3)=>{T3.exports=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"]});var mu=N(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.default=void 0;var g3=Ih(),Vh=mr(),Ute=wh(),S3=Nh(),$h=ye(),Jh=$h,Lh=di(),x3=kh(),b3=Dh(),{assignmentExpression:E3,callExpression:Mh,cloneNode:Bh,getBindingIdentifiers:Xh,identifier:mi,isArrayExpression:Yh,isBinary:P3,isCallExpression:Fh,isClass:A3,isClassBody:v3,isClassDeclaration:C3,isExportAllDeclaration:Wh,isExportDefaultDeclaration:I3,isExportNamedDeclaration:fu,isFunctionDeclaration:w3,isIdentifier:hi,isImportDeclaration:du,isLiteral:N3,isMemberExpression:O3,isMethod:_3,isModuleSpecifier:k3,isNullLiteral:D3,isObjectExpression:L3,isProperty:M3,isPureish:B3,isRegExpLiteral:F3,isSuper:R3,isTaggedTemplateExpression:j3,isTemplateLiteral:Hh,isThisExpression:Rh,isUnaryExpression:q3,isVariableDeclaration:U3,expressionStatement:K3,matchesPattern:jh,memberExpression:hu,numericLiteral:V3,toIdentifier:$3,variableDeclaration:J3,variableDeclarator:X3,isObjectProperty:Y3,isTopicReference:qh,isMetaProperty:W3,isPrivateName:H3,isExportDeclaration:z3,buildUndefinedNode:G3,sequenceExpression:Q3}=$h;function Ze(e,t){switch(e?.type){default:if(du(e)||z3(e)){var r;if((Wh(e)||fu(e)||du(e))&&e.source)Ze(e.source,t);else if((fu(e)||du(e))&&(r=e.specifiers)!=null&&r.length)for(let i of e.specifiers)Ze(i,t);else(I3(e)||fu(e))&&e.declaration&&Ze(e.declaration,t)}else k3(e)?Ze(e.local,t):N3(e)&&!D3(e)&&!F3(e)&&!Hh(e)&&t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":Ze(e.object,t),Ze(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":Ze(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(let i of e.properties)Ze(i,t);break;case"SpreadElement":case"RestElement":Ze(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":Ze(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":case"ImportExpression":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),Ze(e.argument,t);break;case"AwaitExpression":t.push("await"),Ze(e.argument,t);break;case"AssignmentExpression":Ze(e.left,t);break;case"VariableDeclarator":Ze(e.id,t);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":Ze(e.id,t);break;case"PrivateName":Ze(e.id,t);break;case"ParenthesizedExpression":Ze(e.expression,t);break;case"UnaryExpression":case"UpdateExpression":Ze(e.argument,t);break;case"MetaProperty":Ze(e.meta,t),Ze(e.property,t);break;case"JSXElement":Ze(e.openingElement,t);break;case"JSXOpeningElement":Ze(e.name,t);break;case"JSXFragment":Ze(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":Ze(e.namespace,t),Ze(e.name,t);break}}function Uh(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null)}function Z3(e){return e.isFunctionExpression()&&!e.node.id||e.isArrowFunctionExpression()}var Kh=Symbol.for("should not be considered a local binding"),eR={ForStatement(e){let t=e.get("init");if(t.isVar()){let{scope:r}=e;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",t)}},Declaration(e){if(e.isBlockScoped()||e.isImportDeclaration()||e.isExportDeclaration())return;(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){Jh.isTSQualifiedName(e.parent)&&e.parent.right===e.node||e.parentPath.isTSImportEqualsDeclaration()||t.references.push(e)},ForXStatement(e,t){let r=e.get("left");if(r.isPattern()||r.isIdentifier())t.constantViolations.push(e);else if(r.isVar()){let{scope:i}=e;(i.getFunctionParent()||i.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit(e){let{node:t,scope:r}=e;if(Wh(t))return;let i=t.declaration;if(C3(i)||w3(i)){let s=i.id;if(!s)return;let n=r.getBinding(s.name);n?.reference(e)}else if(U3(i))for(let s of i.declarations)for(let n of Object.keys(Xh(s))){let a=r.getBinding(n);a?.reference(e)}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){e.node.operator==="delete"&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){let s=e.node.id.name;e.scope.bindings[s]=e.scope.parent.getBinding(s)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){let t=e.get("params");for(let r of t)e.scope.registerBinding("param",r);e.isFunctionExpression()&&e.node.id&&!e.node.id[Kh]&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&!e.node.id[Kh]&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}},jn,tR=0,sr=class e{constructor(t){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;let{node:r}=t,i=Lh.scope.get(r);if(i?.path===t)return i;Lh.scope.set(r,this),this.uid=tR++,this.block=r,this.path=t,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var t;let r,i=this.path;do{var s;let n=i.key==="key"||i.listKey==="decorators";i=i.parentPath,n&&i.isMethod()&&(i=i.parentPath),(s=i)!=null&&s.isScope()&&(r=i)}while(i&&!r);return(t=r)==null?void 0:t.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(t){let r=this.generateUidIdentifier(t);return this.push({id:r}),Bh(r)}generateUidIdentifier(t){return mi(this.generateUid(t))}generateUid(t="temp"){t=$3(t).replace(/^_+/,"").replace(/\d+$/g,"");let r,i=0;do r=`_${t}`,i>=11?r+=i-1:i>=9?r+=i-9:i>=1&&(r+=i+1),i++;while(this.hasLabel(r)||this.hasBinding(r)||this.hasGlobal(r)||this.hasReference(r));let s=this.getProgramParent();return s.references[r]=!0,s.uids[r]=!0,r}generateUidBasedOnNode(t,r){let i=[];Ze(t,i);let s=i.join("$");return s=s.replace(/^_/,"")||r||"ref",this.generateUid(s.slice(0,20))}generateUidIdentifierBasedOnNode(t,r){return mi(this.generateUidBasedOnNode(t,r))}isStatic(t){if(Rh(t)||R3(t)||qh(t))return!0;if(hi(t)){let r=this.getBinding(t.name);return r?r.constant:this.hasBinding(t.name)}return!1}maybeGenerateMemoised(t,r){if(this.isStatic(t))return null;{let i=this.generateUidIdentifierBasedOnNode(t);return r?i:(this.push({id:i}),Bh(i))}}checkBlockScopedCollisions(t,r,i,s){if(r==="param"||t.kind==="local")return;if(r==="let"||t.kind==="let"||t.kind==="const"||t.kind==="module"||t.kind==="param"&&r==="const")throw this.path.hub.buildError(s,`Duplicate declaration "${i}"`,TypeError)}rename(t,r){let i=this.getBinding(t);i&&(r||(r=this.generateUidIdentifier(t).name),new g3.default(i,t,r).rename(arguments[2]))}dump(){let t="-".repeat(60);console.log(t);let r=this;do{console.log("#",r.block.type);for(let i of Object.keys(r.bindings)){let s=r.bindings[i];console.log(" -",i,{constant:s.constant,references:s.references,violations:s.constantViolations.length,kind:s.kind})}}while(r=r.parent);console.log(t)}hasLabel(t){return!!this.getLabel(t)}getLabel(t){return this.labels.get(t)}registerLabel(t){this.labels.set(t.node.label.name,t)}registerDeclaration(t){if(t.isLabeledStatement())this.registerLabel(t);else if(t.isFunctionDeclaration())this.registerBinding("hoisted",t.get("id"),t);else if(t.isVariableDeclaration()){let r=t.get("declarations"),{kind:i}=t.node;for(let s of r)this.registerBinding(i==="using"||i==="await using"?"const":i,s)}else if(t.isClassDeclaration()){if(t.node.declare)return;this.registerBinding("let",t)}else if(t.isImportDeclaration()){let r=t.node.importKind==="type"||t.node.importKind==="typeof",i=t.get("specifiers");for(let s of i){let n=r||s.isImportSpecifier()&&(s.node.importKind==="type"||s.node.importKind==="typeof");this.registerBinding(n?"unknown":"module",s)}}else if(t.isExportDeclaration()){let r=t.get("declaration");(r.isClassDeclaration()||r.isFunctionDeclaration()||r.isVariableDeclaration())&&this.registerDeclaration(r)}else this.registerBinding("unknown",t)}buildUndefinedNode(){return G3()}registerConstantViolation(t){let r=t.getAssignmentIdentifiers();for(let s of Object.keys(r)){var i;(i=this.getBinding(s))==null||i.reassign(t)}}registerBinding(t,r,i=r){if(!t)throw new ReferenceError("no `kind`");if(r.isVariableDeclaration()){let a=r.get("declarations");for(let o of a)this.registerBinding(t,o);return}let s=this.getProgramParent(),n=r.getOuterBindingIdentifiers(!0);for(let a of Object.keys(n)){s.references[a]=!0;for(let o of n[a]){let l=this.getOwnBinding(a);if(l){if(l.identifier===o)continue;this.checkBlockScopedCollisions(l,t,a,o)}l?l.reassign(i):this.bindings[a]=new S3.default({identifier:o,scope:this,path:i,kind:t})}}}addGlobal(t){this.globals[t.name]=t}hasUid(t){let r=this;do if(r.uids[t])return!0;while(r=r.parent);return!1}hasGlobal(t){let r=this;do if(r.globals[t])return!0;while(r=r.parent);return!1}hasReference(t){return!!this.getProgramParent().references[t]}isPure(t,r){if(hi(t)){let a=this.getBinding(t.name);return a?r?a.constant:!0:!1}else{if(Rh(t)||W3(t)||qh(t)||H3(t))return!0;if(A3(t)){var i;return t.superClass&&!this.isPure(t.superClass,r)||((i=t.decorators)==null?void 0:i.length)>0?!1:this.isPure(t.body,r)}else if(v3(t)){for(let a of t.body)if(!this.isPure(a,r))return!1;return!0}else{if(P3(t))return this.isPure(t.left,r)&&this.isPure(t.right,r);if(Yh(t)||t?.type==="TupleExpression"){for(let a of t.elements)if(a!==null&&!this.isPure(a,r))return!1;return!0}else if(L3(t)||t?.type==="RecordExpression"){for(let a of t.properties)if(!this.isPure(a,r))return!1;return!0}else if(_3(t)){var s;return!(t.computed&&!this.isPure(t.key,r)||((s=t.decorators)==null?void 0:s.length)>0)}else if(M3(t)){var n;return!(t.computed&&!this.isPure(t.key,r)||((n=t.decorators)==null?void 0:n.length)>0||(Y3(t)||t.static)&&t.value!==null&&!this.isPure(t.value,r))}else{if(q3(t))return this.isPure(t.argument,r);if(Hh(t)){for(let a of t.expressions)if(!this.isPure(a,r))return!1;return!0}else return j3(t)?jh(t.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(t.quasi,r):O3(t)?!t.computed&&hi(t.object)&&t.object.name==="Symbol"&&hi(t.property)&&t.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):Fh(t)?jh(t.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&t.arguments.length===1&&Jh.isStringLiteral(t.arguments[0]):B3(t)}}}}setData(t,r){return this.data[t]=r}getData(t){let r=this;do{let i=r.data[t];if(i!=null)return i}while(r=r.parent)}removeData(t){let r=this;do r.data[t]!=null&&(r.data[t]=null);while(r=r.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){let t=this.path;Uh(this),this.data=Object.create(null);let r=this;do{if(r.crawling)return;if(r.path.isProgram())break}while(r=r.parent);let i=r,s={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,jn||(jn=Vh.default.visitors.merge([{Scope(n){Uh(n.scope)}},eR])),t.type!=="Program"){let n=jn[t.type];if(n)for(let a of n.enter)a.call(s,t,s)}t.traverse(jn,s),this.crawling=!1;for(let n of s.assignments){let a=n.getAssignmentIdentifiers();for(let o of Object.keys(a))n.scope.getBinding(o)||i.addGlobal(a[o]);n.scope.registerConstantViolation(n)}for(let n of s.references){let a=n.scope.getBinding(n.node.name);a?a.reference(n):i.addGlobal(n.node)}for(let n of s.constantViolations)n.scope.registerConstantViolation(n)}push(t){let r=this.path;r.isPattern()?r=this.getPatternParent().path:!r.isBlockStatement()&&!r.isProgram()&&(r=this.getBlockParent().path),r.isSwitchStatement()&&(r=(this.getFunctionParent()||this.getProgramParent()).path);let{init:i,unique:s,kind:n="var",id:a}=t;if(!i&&!s&&(n==="var"||n==="let")&&Z3(r)&&Fh(r.parent,{callee:r.node})&&r.parent.arguments.length<=r.node.params.length&&hi(a)){r.pushContainer("params",a),r.scope.registerBinding("param",r.get("params")[r.node.params.length-1]);return}(r.isLoop()||r.isCatchClause()||r.isFunction())&&(r.ensureBlock(),r=r.get("body"));let o=t._blockHoist==null?2:t._blockHoist,l=`declaration:${n}:${o}`,u=!s&&r.getData(l);if(!u){let x=J3(n,[]);x._blockHoist=o,[u]=r.unshiftContainer("body",[x]),s||r.setData(l,u)}let f=X3(a,i),h=u.node.declarations.push(f);r.scope.registerBinding(n,u.get("declarations")[h-1])}getProgramParent(){let t=this;do if(t.path.isProgram())return t;while(t=t.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let t=this;do if(t.path.isFunctionParent())return t;while(t=t.parent);return null}getBlockParent(){let t=this;do if(t.path.isBlockParent())return t;while(t=t.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let t=this;do if(!t.path.isPattern())return t.getBlockParent();while(t=t.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let t=Object.create(null),r=this;do{for(let i of Object.keys(r.bindings))i in t||(t[i]=r.bindings[i]);r=r.parent}while(r);return t}bindingIdentifierEquals(t,r){return this.getBindingIdentifier(t)===r}getBinding(t){let r=this,i;do{let n=r.getOwnBinding(t);if(n){var s;if(!((s=i)!=null&&s.isPattern()&&n.kind!=="param"&&n.kind!=="local"))return n}else if(!n&&t==="arguments"&&r.path.isFunction()&&!r.path.isArrowFunctionExpression())break;i=r.path}while(r=r.parent)}getOwnBinding(t){return this.bindings[t]}getBindingIdentifier(t){var r;return(r=this.getBinding(t))==null?void 0:r.identifier}getOwnBindingIdentifier(t){let r=this.bindings[t];return r?.identifier}hasOwnBinding(t){return!!this.getOwnBinding(t)}hasBinding(t,r){if(!t)return!1;let i,s,n;typeof r=="object"?(i=r.noGlobals,s=r.noUids,n=r.upToScope):typeof r=="boolean"&&(i=r);let a=this;do{if(n===a)break;if(a.hasOwnBinding(t))return!0}while(a=a.parent);return!!(!s&&this.hasUid(t)||!i&&e.globals.includes(t)||!i&&e.contextVariables.includes(t))}parentHasBinding(t,r){var i;return(i=this.parent)==null?void 0:i.hasBinding(t,r)}moveBindingTo(t,r){let i=this.getBinding(t);i&&(i.scope.removeOwnBinding(t),i.scope=r,r.bindings[t]=i)}removeOwnBinding(t){delete this.bindings[t]}removeBinding(t){var r;(r=this.getBinding(t))==null||r.scope.removeOwnBinding(t);let i=this;do i.uids[t]&&(i.uids[t]=!1);while(i=i.parent)}hoistVariables(t=r=>this.push({id:r})){this.crawl();let r=new Set;for(let i of Object.keys(this.bindings)){let s=this.bindings[i];if(!s)continue;let{path:n}=s;if(!n.isVariableDeclarator())continue;let{parent:a,parentPath:o}=n;if(a.kind!=="var"||r.has(a))continue;r.add(n.parent);let l,u=[];for(let f of a.declarations){l??(l=f.id),f.init&&u.push(E3("=",f.id,f.init));let h=Object.keys(Xh(f,!1,!0,!0));for(let x of h)t(mi(x),f.init!=null)}if(o.parentPath.isForXStatement({left:a}))o.replaceWith(l);else if(u.length===0)o.remove();else{let f=u.length===1?u[0]:Q3(u);o.parentPath.isForStatement({init:a})?o.replaceWith(f):o.replaceWith(K3(f))}}}};qn.default=sr;sr.globals=[...x3,...b3];sr.contextVariables=["arguments","undefined","Infinity","NaN"];sr.prototype._renameFromMap=function(t,r,i,s){t[r]&&(t[i]=s,t[r]=null)};sr.prototype.traverse=function(e,t,r){(0,Vh.default)(e,t,this,r,this.path)};sr.prototype._generateUid=function(t,r){let i=t;return r>1&&(i+=r),`_${i}`};sr.prototype.toArray=function(t,r,i){if(hi(t)){let a=this.getBinding(t.name);if(a!=null&&a.constant&&a.path.isGenericType("Array"))return t}if(Yh(t))return t;if(hi(t,{name:"arguments"}))return Mh(hu(hu(hu(mi("Array"),mi("prototype")),mi("slice")),mi("call")),[t]);let s,n=[t];return r===!0?s="toConsumableArray":typeof r=="number"?(n.push(V3(r)),s="slicedToArray"):s="toArray",i&&(n.unshift(this.path.hub.addHelper(s)),s="maybeArrayLike"),Mh(this.path.hub.addHelper(s),n)};sr.prototype.getAllBindingsOfKind=function(...t){let r=Object.create(null);for(let i of t){let s=this;do{for(let n of Object.keys(s.bindings)){let a=s.bindings[n];a.kind===i&&(r[n]=a)}s=s.parent}while(s)}return r};Object.defineProperties(sr.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var Tu=N((yu,Ps)=>{(function(e,t){if(typeof yu=="object"&&typeof Ps<"u")t(Ps),Ps.exports=r(Ps);else if(typeof define=="function"&&define.amd)define(["module"],function(i){t.apply(this,arguments),i.exports=r(i)});else{let i={exports:{}};t(i),e=typeof globalThis<"u"?globalThis:e||self,e.sourcemapCodec=r(i)}function r(i){return"default"in i.exports?i.exports.default:i.exports}})(yu,(function(e){"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,n=(J,$)=>{for(var M in $)t(J,M,{get:$[M],enumerable:!0})},a=(J,$,M,ee)=>{if($&&typeof $=="object"||typeof $=="function")for(let de of i($))!s.call(J,de)&&de!==M&&t(J,de,{get:()=>$[de],enumerable:!(ee=r($,de))||ee.enumerable});return J},o=J=>a(t({},"__esModule",{value:!0}),J),l={};n(l,{decode:()=>Mt,decodeGeneratedRanges:()=>ct,decodeOriginalScopes:()=>be,decodeRangeMappings:()=>je,encode:()=>Et,encodeGeneratedRanges:()=>B,encodeOriginalScopes:()=>X,encodeRangeMappings:()=>ht}),e.exports=o(l);var u=44,f=59,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",x=new Uint8Array(64),A=new Uint8Array(128);for(let J=0;J<h.length;J++){let $=h.charCodeAt(J);x[J]=$,A[$]=J}function P(J){let $=0,M=0,ee=0;do{let de=J.next();ee=A[de],$|=(ee&31)<<M,M+=5}while(ee&32);return $}function w(J){return J&1?-2147483648|-(J>>>1):J>>>1}function b(J,$){do{let M=$&31;$>>>=5,$>0&&(M|=32),J.write(x[M])}while($>0)}function C(J){return J<0?-J<<1|1:J<<1}function D(J,$){return J.pos>=$?!1:J.peek()!==u}var U=1024*16,k=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(J){return Buffer.from(J.buffer,J.byteOffset,J.byteLength).toString()}}:{decode(J){let $="";for(let M=0;M<J.length;M++)$+=String.fromCharCode(J[M]);return $}},L=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(U)}write(J){let{buffer:$}=this;$[this.pos++]=J,this.pos===U&&(this.out+=k.decode($),this.pos=0)}flush(){let{buffer:J,out:$,pos:M}=this;return M>0?$+k.decode(J.subarray(0,M)):$}},te=class{constructor(J){this.pos=0,this.buffer=J}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(J){let{buffer:$,pos:M}=this,ee=$.indexOf(J,M);return ee===-1?$.length:ee}},Te=[];function be(J){let{length:$}=J,M=new te(J),ee=[],de=[],ge=0;for(;M.pos<$;M.pos++){ge+=w(P(M));let Be=w(P(M));if(!D(M,$)){let $e=de.pop();$e[2]=ge,$e[3]=Be;continue}let Me=w(P(M)),we=w(P(M))&1?[ge,Be,0,0,Me,w(P(M))]:[ge,Be,0,0,Me],Ke=Te;if(D(M,$)){Ke=[];do{let $e=w(P(M));Ke.push($e)}while(D(M,$))}we.vars=Ke,ee.push(we),de.push(we)}return ee}function X(J){let $=new L;for(let M=0;M<J.length;)M=Ye(J,M,$,[0]);return $.flush()}function Ye(J,$,M,ee){let de=J[$],{0:ge,1:Be,2:Me,3:et,4:Ve,vars:we}=de;$>0&&M.write(u),b(M,C(ge-ee[0])),ee[0]=ge,b(M,C(Be)),b(M,C(Ve));let Ke=de.length===6?1:0;b(M,C(Ke)),de.length===6&&b(M,C(de[5]));for(let $e of we)b(M,C($e));for($++;$<J.length;){let $e=J[$],{0:Ee,1:Ge}=$e;if(Ee>Me||Ee===Me&&Ge>=et)break;$=Ye(J,$,M,ee)}return M.write(u),b(M,C(Me-ee[0])),ee[0]=Me,b(M,C(et)),$}function ct(J){let{length:$}=J,M=new te(J),ee=[],de=[],ge=0,Be=0,Me=0,et=0,Ve=0,we=0,Ke=0,$e=0;do{let Ee=M.indexOf(";"),Ge=0;for(;M.pos<Ee;M.pos++){if(Ge+=w(P(M)),!D(M,Ee)){let Je=de.pop();Je[2]=ge,Je[3]=Ge;continue}let V=w(P(M)),K=V&1,ie=V&2,ue=V&4,ve=null,Pe=Te,Ce;if(K){let Je=Be+w(P(M));Me=w(P(M))+(Be===Je?Me:0),Be=Je,Ce=[ge,Ge,0,0,Je,Me]}else Ce=[ge,Ge,0,0];if(Ce.isScope=!!ue,ie){let Je=et,mt=Ve;et+=w(P(M));let er=Je===et;Ve=(er?Ve:0)+w(P(M)),we=(er&&mt===Ve?we:0)+w(P(M)),ve=[et,Ve,we]}if(Ce.callsite=ve,D(M,Ee)){Pe=[];do{Ke=ge,$e=Ge;let Je=w(P(M)),mt;if(Je<-1){mt=[[w(P(M))]];for(let er=-1;er>Je;er--){let Pr=Ke;Ke+=w(P(M)),$e=(Ke===Pr?$e:0)+w(P(M));let Ar=w(P(M));mt.push([Ar,Ke,$e])}}else mt=[[Je]];Pe.push(mt)}while(D(M,Ee))}Ce.bindings=Pe,ee.push(Ce),de.push(Ce)}ge++,M.pos=Ee+1}while(M.pos<$);return ee}function B(J){if(J.length===0)return"";let $=new L;for(let M=0;M<J.length;)M=G(J,M,$,[0,0,0,0,0,0,0]);return $.flush()}function G(J,$,M,ee){let de=J[$],{0:ge,1:Be,2:Me,3:et,isScope:Ve,callsite:we,bindings:Ke}=de;ee[0]<ge?(me(M,ee[0],ge),ee[0]=ge,ee[1]=0):$>0&&M.write(u),b(M,C(de[1]-ee[1])),ee[1]=de[1];let $e=(de.length===6?1:0)|(we?2:0)|(Ve?4:0);if(b(M,C($e)),de.length===6){let{4:Ee,5:Ge}=de;Ee!==ee[2]&&(ee[3]=0),b(M,C(Ee-ee[2])),ee[2]=Ee,b(M,C(Ge-ee[3])),ee[3]=Ge}if(we){let{0:Ee,1:Ge,2:V}=de.callsite;Ee!==ee[4]?(ee[5]=0,ee[6]=0):Ge!==ee[5]&&(ee[6]=0),b(M,C(Ee-ee[4])),ee[4]=Ee,b(M,C(Ge-ee[5])),ee[5]=Ge,b(M,C(V-ee[6])),ee[6]=V}if(Ke)for(let Ee of Ke){Ee.length>1&&b(M,C(-Ee.length));let Ge=Ee[0][0];b(M,C(Ge));let V=ge,K=Be;for(let ie=1;ie<Ee.length;ie++){let ue=Ee[ie];b(M,C(ue[1]-V)),V=ue[1],b(M,C(ue[2]-K)),K=ue[2],b(M,C(ue[0]))}}for($++;$<J.length;){let Ee=J[$],{0:Ge,1:V}=Ee;if(Ge>Me||Ge===Me&&V>=et)break;$=G(J,$,M,ee)}return ee[0]<Me?(me(M,ee[0],Me),ee[0]=Me,ee[1]=0):M.write(u),b(M,C(et-ee[1])),ee[1]=et,$}function me(J,$,M){do J.write(f);while(++$<M)}function je(J){let{length:$}=J,M=new te(J),ee=[];do{let de=M.indexOf(";"),ge=[],Be=0;for(;M.pos<de;)Be+=P(M),ge.push(Be);ee.push(ge),M.pos=de+1}while(M.pos<=$);return ee}function ht(J){if(J.length===0)return"";let $=new L;for(let M=0;M<J.length;M++){let ee=J[M];M>0&&$.write(f);let de=0;for(let ge=0;ge<ee.length;ge++){let Be=ee[ge];b($,Be-de),de=Be}}return $.flush()}function Mt(J){let{length:$}=J,M=new te(J),ee=[],de=0,ge=0,Be=0,Me=0,et=0;do{let Ve=M.indexOf(";"),we=[],Ke=!0,$e=0;for(de=0;M.pos<Ve;){let Ee;de+=w(P(M)),de<$e&&(Ke=!1),$e=de,D(M,Ve)?(ge+=w(P(M)),Be+=w(P(M)),Me+=w(P(M)),D(M,Ve)?(et+=w(P(M)),Ee=[de,ge,Be,Me,et]):Ee=[de,ge,Be,Me]):Ee=[de],we.push(Ee),M.pos++}Ke||We(we),ee.push(we),M.pos=Ve+1}while(M.pos<=$);return ee}function We(J){J.sort(ot)}function ot(J,$){return J[0]-$[0]}function Et(J){let $=new L,M=0,ee=0,de=0,ge=0;for(let Be=0;Be<J.length;Be++){let Me=J[Be];if(Be>0&&$.write(f),Me.length===0)continue;let et=0;for(let Ve=0;Ve<Me.length;Ve++){let we=Me[Ve];Ve>0&&$.write(u),b($,C(we[0]-et)),et=we[0],we.length!==1&&(b($,C(we[1]-M)),b($,C(we[2]-ee)),b($,C(we[3]-de)),M=we[1],ee=we[2],de=we[3],we.length!==4&&(b($,C(we[4]-ge)),ge=we[4]))}}return $.flush()}}))});var zh=N((gu,Su)=>{(function(e,t){typeof gu=="object"&&typeof Su<"u"?Su.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.resolveURI=t())})(gu,(function(){"use strict";let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function i(b){return e.test(b)}function s(b){return b.startsWith("//")}function n(b){return b.startsWith("/")}function a(b){return b.startsWith("file:")}function o(b){return/^[.?#]/.test(b)}function l(b){let C=t.exec(b);return f(C[1],C[2]||"",C[3],C[4]||"",C[5]||"/",C[6]||"",C[7]||"")}function u(b){let C=r.exec(b),D=C[2];return f("file:","",C[1]||"","",n(D)?D:"/"+D,C[3]||"",C[4]||"")}function f(b,C,D,U,k,L,te){return{scheme:b,user:C,host:D,port:U,path:k,query:L,hash:te,type:7}}function h(b){if(s(b)){let D=l("http:"+b);return D.scheme="",D.type=6,D}if(n(b)){let D=l("http://foo.com"+b);return D.scheme="",D.host="",D.type=5,D}if(a(b))return u(b);if(i(b))return l(b);let C=l("http://foo.com/"+b);return C.scheme="",C.host="",C.type=b?b.startsWith("?")?3:b.startsWith("#")?2:4:1,C}function x(b){if(b.endsWith("/.."))return b;let C=b.lastIndexOf("/");return b.slice(0,C+1)}function A(b,C){P(C,C.type),b.path==="/"?b.path=C.path:b.path=x(C.path)+b.path}function P(b,C){let D=C<=4,U=b.path.split("/"),k=1,L=0,te=!1;for(let be=1;be<U.length;be++){let X=U[be];if(!X){te=!0;continue}if(te=!1,X!=="."){if(X===".."){L?(te=!0,L--,k--):D&&(U[k++]=X);continue}U[k++]=X,L++}}let Te="";for(let be=1;be<k;be++)Te+="/"+U[be];(!Te||te&&!Te.endsWith("/.."))&&(Te+="/"),b.path=Te}function w(b,C){if(!b&&!C)return"";let D=h(b),U=D.type;if(C&&U!==7){let L=h(C),te=L.type;switch(U){case 1:D.hash=L.hash;case 2:D.query=L.query;case 3:case 4:A(D,L);case 5:D.user=L.user,D.host=L.host,D.port=L.port;case 6:D.scheme=L.scheme}te>U&&(U=te)}P(D,U);let k=D.query+D.hash;switch(U){case 2:case 3:return k;case 4:{let L=D.path.slice(1);return L?o(C||b)&&!o(L)?"./"+L+k:L+k:k||"."}case 5:return D.path+k;default:return D.scheme+"//"+D.user+D.host+D.port+D.path+k}}return w}))});var bu=N((xu,As)=>{(function(e,t){if(typeof xu=="object"&&typeof As<"u")t(As,zh(),Tu()),As.exports=r(As);else if(typeof define=="function"&&define.amd)define(["module","@jridgewell/resolve-uri","@jridgewell/sourcemap-codec"],function(i){t.apply(this,arguments),i.exports=r(i)});else{let i={exports:{}};t(i,e.resolveURI,e.sourcemapCodec),e=typeof globalThis<"u"?globalThis:e||self,e.traceMapping=r(i)}function r(i){return"default"in i.exports?i.exports.default:i.exports}})(xu,(function(e,t,r){"use strict";var i=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(_,R)=>function(){return R||(0,_[a(_)[0]])((R={exports:{}}).exports,R),R.exports},f=(_,R)=>{for(var j in R)s(_,j,{get:R[j],enumerable:!0})},h=(_,R,j,Q)=>{if(R&&typeof R=="object"||typeof R=="function")for(let fe of a(R))!l.call(_,fe)&&fe!==j&&s(_,fe,{get:()=>R[fe],enumerable:!(Q=n(R,fe))||Q.enumerable});return _},x=(_,R,j)=>(j=_!=null?i(o(_)):{},h(R||!_||!_.__esModule?s(j,"default",{value:_,enumerable:!0}):j,_)),A=_=>h(s({},"__esModule",{value:!0}),_),P=u({"umd:@jridgewell/sourcemap-codec"(_,R){R.exports=r}}),w=u({"umd:@jridgewell/resolve-uri"(_,R){R.exports=t}}),b={};f(b,{AnyMap:()=>de,FlattenMap:()=>de,GREATEST_LOWER_BOUND:()=>$e,LEAST_UPPER_BOUND:()=>Ke,TraceMap:()=>Ee,allGeneratedPositionsFor:()=>Pe,decodedMap:()=>Ar,decodedMappings:()=>K,eachMapping:()=>Ce,encodedMap:()=>Ii,encodedMappings:()=>V,generatedPositionFor:()=>ve,isIgnored:()=>er,originalPositionFor:()=>ue,presortedDecodedMap:()=>Pr,sourceContentFor:()=>mt,traceSegment:()=>ie}),e.exports=A(b);var C=x(P()),D=x(w());function U(_){if(!_)return"";let R=_.lastIndexOf("/");return _.slice(0,R+1)}function k(_,R){let j=U(_),Q=R?R+"/":"";return fe=>(0,D.default)(Q+(fe||""),j)}var L=0,te=1,Te=2,be=3,X=4,Ye=1,ct=2;function B(_,R){let j=G(_,0);if(j===_.length)return _;R||(_=_.slice());for(let Q=j;Q<_.length;Q=G(_,Q+1))_[Q]=je(_[Q],R);return _}function G(_,R){for(let j=R;j<_.length;j++)if(!me(_[j]))return j;return _.length}function me(_){for(let R=1;R<_.length;R++)if(_[R][L]<_[R-1][L])return!1;return!0}function je(_,R){return R||(_=_.slice()),_.sort(ht)}function ht(_,R){return _[L]-R[L]}function Mt(_,R){let j=R.map(()=>[]);for(let Q=0;Q<_.length;Q++){let fe=_[Q];for(let oe=0;oe<fe.length;oe++){let _e=fe[oe];if(_e.length===1)continue;let He=_e[te],Ne=_e[Te],pt=_e[be],yt=j[He];(yt[Ne]||(yt[Ne]=[])).push([pt,Q,_e[L]])}}for(let Q=0;Q<j.length;Q++){let fe=j[Q];for(let oe=0;oe<fe.length;oe++){let _e=fe[oe];_e&&_e.sort(ht)}}return j}var We=!1;function ot(_,R,j,Q){for(;j<=Q;){let fe=j+(Q-j>>1),oe=_[fe][L]-R;if(oe===0)return We=!0,fe;oe<0?j=fe+1:Q=fe-1}return We=!1,j-1}function Et(_,R,j){for(let Q=j+1;Q<_.length&&_[Q][L]===R;j=Q++);return j}function J(_,R,j){for(let Q=j-1;Q>=0&&_[Q][L]===R;j=Q--);return j}function $(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function M(_,R,j,Q){let{lastKey:fe,lastNeedle:oe,lastIndex:_e}=j,He=0,Ne=_.length-1;if(Q===fe){if(R===oe)return We=_e!==-1&&_[_e][L]===R,_e;R>=oe?He=_e===-1?0:_e:Ne=_e}return j.lastKey=Q,j.lastNeedle=R,j.lastIndex=ot(_,R,He,Ne)}function ee(_){return typeof _=="string"?JSON.parse(_):_}var de=function(_,R){let j=ee(_);if(!("sections"in j))return new Ee(j,R);let Q=[],fe=[],oe=[],_e=[],He=[];ge(j,R,Q,fe,oe,_e,He,0,0,1/0,1/0);let Ne={version:3,file:j.file,names:_e,sources:fe,sourcesContent:oe,mappings:Q,ignoreList:He};return Pr(Ne)};function ge(_,R,j,Q,fe,oe,_e,He,Ne,pt,yt){let{sections:Tt}=_;for(let qt=0;qt<Tt.length;qt++){let{map:Kt,offset:cr}=Tt[qt],pr=pt,Ir=yt;if(qt+1<Tt.length){let wi=Tt[qt+1].offset;pr=Math.min(pt,He+wi.line),pr===pt?Ir=Math.min(yt,Ne+wi.column):pr<pt&&(Ir=Ne+wi.column)}Be(Kt,R,j,Q,fe,oe,_e,He+cr.line,Ne+cr.column,pr,Ir)}}function Be(_,R,j,Q,fe,oe,_e,He,Ne,pt,yt){let Tt=ee(_);if("sections"in Tt)return ge(...arguments);let qt=new Ee(Tt,R),Kt=Q.length,cr=oe.length,pr=K(qt),{resolvedSources:Ir,sourcesContent:wi,ignoreList:Ya}=qt;if(Me(Q,Ir),Me(oe,qt.names),wi)Me(fe,wi);else for(let Vt=0;Vt<Ir.length;Vt++)fe.push(null);if(Ya)for(let Vt=0;Vt<Ya.length;Vt++)_e.push(Ya[Vt]+Kt);for(let Vt=0;Vt<pr.length;Vt++){let Wa=He+Vt;if(Wa>pt)return;let Wp=et(j,Wa),oS=Vt===0?Ne:0,Hp=pr[Vt];for(let Ha=0;Ha<Hp.length;Ha++){let ii=Hp[Ha],rn=oS+ii[L];if(Wa===pt&&rn>=yt)return;if(ii.length===1){Wp.push([rn]);continue}let zp=Kt+ii[te],Gp=ii[Te],Qp=ii[be];Wp.push(ii.length===4?[rn,zp,Gp,Qp]:[rn,zp,Gp,Qp,cr+ii[X]])}}}function Me(_,R){for(let j=0;j<R.length;j++)_.push(R[j])}function et(_,R){for(let j=_.length;j<=R;j++)_[j]=[];return _[R]}var Ve="`line` must be greater than 0 (lines start at line 1)",we="`column` must be greater than or equal to 0 (columns start at column 0)",Ke=-1,$e=1,Ee=class{constructor(_,R){let j=typeof _=="string";if(!j&&_._decodedMemo)return _;let Q=ee(_),{version:fe,file:oe,names:_e,sourceRoot:He,sources:Ne,sourcesContent:pt}=Q;this.version=fe,this.file=oe,this.names=_e||[],this.sourceRoot=He,this.sources=Ne,this.sourcesContent=pt,this.ignoreList=Q.ignoreList||Q.x_google_ignoreList||void 0;let yt=k(R,He);this.resolvedSources=Ne.map(yt);let{mappings:Tt}=Q;if(typeof Tt=="string")this._encoded=Tt,this._decoded=void 0;else if(Array.isArray(Tt))this._encoded=void 0,this._decoded=B(Tt,j);else throw Q.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(Q)}`);this._decodedMemo=$(),this._bySources=void 0,this._bySourceMemos=void 0}};function Ge(_){return _}function V(_){var R,j;return(j=(R=_)._encoded)!=null?j:R._encoded=(0,C.encode)(_._decoded)}function K(_){var R;return(R=_)._decoded||(R._decoded=(0,C.decode)(_._encoded))}function ie(_,R,j){let Q=K(_);if(R>=Q.length)return null;let fe=Q[R],oe=ri(fe,_._decodedMemo,R,j,$e);return oe===-1?null:fe[oe]}function ue(_,R){let{line:j,column:Q,bias:fe}=R;if(j--,j<0)throw new Error(Ve);if(Q<0)throw new Error(we);let oe=K(_);if(j>=oe.length)return Cr(null,null,null,null);let _e=oe[j],He=ri(_e,_._decodedMemo,j,Q,fe||$e);if(He===-1)return Cr(null,null,null,null);let Ne=_e[He];if(Ne.length===1)return Cr(null,null,null,null);let{names:pt,resolvedSources:yt}=_;return Cr(yt[Ne[te]],Ne[Te]+1,Ne[be],Ne.length===5?pt[Ne[X]]:null)}function ve(_,R){let{source:j,line:Q,column:fe,bias:oe}=R;return Yp(_,j,Q,fe,oe||$e,!1)}function Pe(_,R){let{source:j,line:Q,column:fe,bias:oe}=R;return Yp(_,j,Q,fe,oe||Ke,!0)}function Ce(_,R){let j=K(_),{names:Q,resolvedSources:fe}=_;for(let oe=0;oe<j.length;oe++){let _e=j[oe];for(let He=0;He<_e.length;He++){let Ne=_e[He],pt=oe+1,yt=Ne[0],Tt=null,qt=null,Kt=null,cr=null;Ne.length!==1&&(Tt=fe[Ne[1]],qt=Ne[2]+1,Kt=Ne[3]),Ne.length===5&&(cr=Q[Ne[4]]),R({generatedLine:pt,generatedColumn:yt,source:Tt,originalLine:qt,originalColumn:Kt,name:cr})}}}function Je(_,R){let{sources:j,resolvedSources:Q}=_,fe=j.indexOf(R);return fe===-1&&(fe=Q.indexOf(R)),fe}function mt(_,R){let{sourcesContent:j}=_;if(j==null)return null;let Q=Je(_,R);return Q===-1?null:j[Q]}function er(_,R){let{ignoreList:j}=_;if(j==null)return!1;let Q=Je(_,R);return Q===-1?!1:j.includes(Q)}function Pr(_,R){let j=new Ee(vr(_,[]),R);return j._decoded=_.mappings,j}function Ar(_){return vr(_,K(_))}function Ii(_){return vr(_,V(_))}function vr(_,R){return{version:_.version,file:_.file,names:_.names,sourceRoot:_.sourceRoot,sources:_.sources,sourcesContent:_.sourcesContent,mappings:R,ignoreList:_.ignoreList||_.x_google_ignoreList}}function Cr(_,R,j,Q){return{source:_,line:R,column:j,name:Q}}function tr(_,R){return{line:_,column:R}}function ri(_,R,j,Q,fe){let oe=M(_,Q,R,j);return We?oe=(fe===Ke?Et:J)(_,Q,oe):fe===Ke&&oe++,oe===-1||oe===_.length?-1:oe}function aS(_,R,j,Q,fe){let oe=ri(_,R,j,Q,$e);if(!We&&fe===Ke&&oe++,oe===-1||oe===_.length)return[];let _e=We?Q:_[oe][L];We||(oe=J(_,_e,oe));let He=Et(_,_e,oe),Ne=[];for(;oe<=He;oe++){let pt=_[oe];Ne.push(tr(pt[Ye]+1,pt[ct]))}return Ne}function Yp(_,R,j,Q,fe,oe){var _e,He;if(j--,j<0)throw new Error(Ve);if(Q<0)throw new Error(we);let{sources:Ne,resolvedSources:pt}=_,yt=Ne.indexOf(R);if(yt===-1&&(yt=pt.indexOf(R)),yt===-1)return oe?[]:tr(null,null);let Tt=(_e=_)._bySourceMemos||(_e._bySourceMemos=Ne.map($)),Kt=((He=_)._bySources||(He._bySources=Mt(K(_),Tt)))[yt][j];if(Kt==null)return oe?[]:tr(null,null);let cr=Tt[yt];if(oe)return aS(Kt,cr,j,Q,fe);let pr=ri(Kt,cr,j,Q,fe);if(pr===-1)return tr(null,null);let Ir=Kt[pr];return tr(Ir[Ye]+1,Ir[ct])}}))});var Gh=N((Eu,vs)=>{(function(e,t){if(typeof Eu=="object"&&typeof vs<"u")t(vs,Tu(),bu()),vs.exports=r(vs);else if(typeof define=="function"&&define.amd)define(["module","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],function(i){t.apply(this,arguments),i.exports=r(i)});else{let i={exports:{}};t(i,e.sourcemapCodec,e.traceMapping),e=typeof globalThis<"u"?globalThis:e||self,e.genMapping=r(i)}function r(i){return"default"in i.exports?i.exports.default:i.exports}})(Eu,(function(e,t,r){"use strict";var i=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(V,K)=>function(){return K||(0,V[a(V)[0]])((K={exports:{}}).exports,K),K.exports},f=(V,K)=>{for(var ie in K)s(V,ie,{get:K[ie],enumerable:!0})},h=(V,K,ie,ue)=>{if(K&&typeof K=="object"||typeof K=="function")for(let ve of a(K))!l.call(V,ve)&&ve!==ie&&s(V,ve,{get:()=>K[ve],enumerable:!(ue=n(K,ve))||ue.enumerable});return V},x=(V,K,ie)=>(ie=V!=null?i(o(V)):{},h(K||!V||!V.__esModule?s(ie,"default",{value:V,enumerable:!0}):ie,V)),A=V=>h(s({},"__esModule",{value:!0}),V),P=u({"umd:@jridgewell/sourcemap-codec"(V,K){K.exports=t}}),w=u({"umd:@jridgewell/trace-mapping"(V,K){K.exports=r}}),b={};f(b,{GenMapping:()=>me,addMapping:()=>Mt,addSegment:()=>ht,allMappings:()=>de,fromMap:()=>ee,maybeAddMapping:()=>ot,maybeAddSegment:()=>We,setIgnore:()=>J,setSourceContent:()=>Et,toDecodedMap:()=>$,toEncodedMap:()=>M}),e.exports=A(b);var C=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function D(V){return V}function U(V,K){return V._indexes[K]}function k(V,K){let ie=U(V,K);if(ie!==void 0)return ie;let{array:ue,_indexes:ve}=V,Pe=ue.push(K);return ve[K]=Pe-1}function L(V,K){let ie=U(V,K);if(ie===void 0)return;let{array:ue,_indexes:ve}=V;for(let Pe=ie+1;Pe<ue.length;Pe++){let Ce=ue[Pe];ue[Pe-1]=Ce,ve[Ce]--}ve[K]=void 0,ue.pop()}var te=x(P()),Te=x(w()),be=0,X=1,Ye=2,ct=3,B=4,G=-1,me=class{constructor({file:V,sourceRoot:K}={}){this._names=new C,this._sources=new C,this._sourcesContent=[],this._mappings=[],this.file=V,this.sourceRoot=K,this._ignoreList=new C}};function je(V){return V}function ht(V,K,ie,ue,ve,Pe,Ce,Je){return ge(!1,V,K,ie,ue,ve,Pe,Ce,Je)}function Mt(V,K){return Ge(!1,V,K)}var We=(V,K,ie,ue,ve,Pe,Ce,Je)=>ge(!0,V,K,ie,ue,ve,Pe,Ce,Je),ot=(V,K)=>Ge(!0,V,K);function Et(V,K,ie){let{_sources:ue,_sourcesContent:ve}=V,Pe=k(ue,K);ve[Pe]=ie}function J(V,K,ie=!0){let{_sources:ue,_sourcesContent:ve,_ignoreList:Pe}=V,Ce=k(ue,K);Ce===ve.length&&(ve[Ce]=null),ie?k(Pe,Ce):L(Pe,Ce)}function $(V){let{_mappings:K,_sources:ie,_sourcesContent:ue,_names:ve,_ignoreList:Pe}=V;return we(K),{version:3,file:V.file||void 0,names:ve.array,sourceRoot:V.sourceRoot||void 0,sources:ie.array,sourcesContent:ue,mappings:K,ignoreList:Pe.array}}function M(V){let K=$(V);return Object.assign({},K,{mappings:(0,te.encode)(K.mappings)})}function ee(V){let K=new Te.TraceMap(V),ie=new me({file:K.file,sourceRoot:K.sourceRoot});return Ke(ie._names,K.names),Ke(ie._sources,K.sources),ie._sourcesContent=K.sourcesContent||K.sources.map(()=>null),ie._mappings=(0,Te.decodedMappings)(K),K.ignoreList&&Ke(ie._ignoreList,K.ignoreList),ie}function de(V){let K=[],{_mappings:ie,_sources:ue,_names:ve}=V;for(let Pe=0;Pe<ie.length;Pe++){let Ce=ie[Pe];for(let Je=0;Je<Ce.length;Je++){let mt=Ce[Je],er={line:Pe+1,column:mt[be]},Pr,Ar,Ii;mt.length!==1&&(Pr=ue.array[mt[X]],Ar={line:mt[Ye]+1,column:mt[ct]},mt.length===5&&(Ii=ve.array[mt[B]])),K.push({generated:er,source:Pr,original:Ar,name:Ii})}}return K}function ge(V,K,ie,ue,ve,Pe,Ce,Je,mt){let{_mappings:er,_sources:Pr,_sourcesContent:Ar,_names:Ii}=K,vr=Me(er,ie),Cr=et(vr,ue);if(!ve)return V&&$e(vr,Cr)?void 0:Ve(vr,Cr,[ue]);let tr=k(Pr,ve),ri=Je?k(Ii,Je):G;if(tr===Ar.length&&(Ar[tr]=mt??null),!(V&&Ee(vr,Cr,tr,Pe,Ce,ri)))return Ve(vr,Cr,Je?[ue,tr,Pe,Ce,ri]:[ue,tr,Pe,Ce])}function Be(V){}function Me(V,K){for(let ie=V.length;ie<=K;ie++)V[ie]=[];return V[K]}function et(V,K){let ie=V.length;for(let ue=ie-1;ue>=0;ie=ue--){let ve=V[ue];if(K>=ve[be])break}return ie}function Ve(V,K,ie){for(let ue=V.length;ue>K;ue--)V[ue]=V[ue-1];V[K]=ie}function we(V){let{length:K}=V,ie=K;for(let ue=ie-1;ue>=0&&!(V[ue].length>0);ie=ue,ue--);ie<K&&(V.length=ie)}function Ke(V,K){for(let ie=0;ie<K.length;ie++)k(V,K[ie])}function $e(V,K){return K===0?!0:V[K-1].length===1}function Ee(V,K,ie,ue,ve,Pe){if(K===0)return!1;let Ce=V[K-1];return Ce.length===1?!1:ie===Ce[X]&&ue===Ce[Ye]&&ve===Ce[ct]&&Pe===(Ce.length===5?Ce[B]:G)}function Ge(V,K,ie){let{generated:ue,source:ve,original:Pe,name:Ce,content:Je}=ie;return ve?ge(V,K,ue.line-1,ue.column,ve,Pe.line-1,Pe.column,Ce,Je):ge(V,K,ue.line-1,ue.column,null,null,null,null,null)}}))});var Qh=N(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.default=void 0;var Kr=Gh(),Pu=bu(),Au=class{constructor(t,r){var i;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;let s=this._map=new Kr.GenMapping({sourceRoot:t.sourceRoot});if(this._sourceFileName=(i=t.sourceFileName)==null?void 0:i.replace(/\\/g,"/"),this._rawMappings=void 0,t.inputSourceMap){this._inputMap=new Pu.TraceMap(t.inputSourceMap);let a=this._inputMap.resolvedSources;if(a.length)for(let o=0;o<a.length;o++){var n;(0,Kr.setSourceContent)(s,a[o],(n=this._inputMap.sourcesContent)==null?void 0:n[o])}}if(typeof r=="string"&&!t.inputSourceMap)(0,Kr.setSourceContent)(s,this._sourceFileName,r);else if(typeof r=="object")for(let a of Object.keys(r))(0,Kr.setSourceContent)(s,a.replace(/\\/g,"/"),r[a])}get(){return(0,Kr.toEncodedMap)(this._map)}getDecoded(){return(0,Kr.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,Kr.allMappings)(this._map))}mark(t,r,i,s,n,a){var o;this._rawMappings=void 0;let l;if(r!=null)if(this._inputMap){if(l=(0,Pu.originalPositionFor)(this._inputMap,{line:r,column:i}),l.name&&(n||s!=null&&l.column===i))s=l.name;else if(n){let u=(0,Pu.originalPositionFor)(this._inputMap,n);u.name&&(s=u.name)}}else l={name:null,source:a?.replace(/\\/g,"/")||this._sourceFileName,line:r,column:i};(0,Kr.maybeAddMapping)(this._map,{name:s,generated:t,source:(o=l)==null?void 0:o.source,original:l})}};Un.default=Au});var em=N(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.default=void 0;var Zh=[];for(let e=0;e<32;e++)Zh.push(" ".repeat(e*2));var vu=class{constructor(t,r){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._canMarkIdName=!0,this._indentChar="",this._queuedChar=0,this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=t,this._indentChar=r}get(){let{_map:t,_last:r}=this;this._queuedChar!==32&&this._flush();let i=r===10?(this._buf+this._str).trimRight():this._buf+this._str;if(t===null)return{code:i,decodedMap:void 0,map:null,rawMappings:void 0};let s={code:i,decodedMap:t.getDecoded(),get __mergedMap(){return this.map},get map(){let n=t.get();return s.map=n,n},set map(n){Object.defineProperty(s,"map",{value:n,writable:!0})},get rawMappings(){let n=t.getRawMappings();return s.rawMappings=n,n},set rawMappings(n){Object.defineProperty(s,"rawMappings",{value:n,writable:!0})}};return s}append(t,r,i=!1){this._flush(),this._append(t,r,i)}appendChar(t){this._flush(),this._appendChar(t,1,!0)}queue(t){this._flush(),this._queuedChar=t}_flush(){let t=this._queuedChar;t!==0&&(this._appendChar(t,1,!0),this._queuedChar=0)}_appendChar(t,r,i){if(this._last=t,t===-1){let a=r>=64?this._indentChar.repeat(r):Zh[r/2];this._str+=a}else this._str+=r>1?String.fromCharCode(t).repeat(r):String.fromCharCode(t);let s=t===32,n=this._position;if(t!==10){if(this._map){let a=this._sourcePosition;i&&a?(this._map.mark(n,a.line,a.column,s?void 0:a.identifierName,s?void 0:a.identifierNamePos,a.filename),!s&&this._canMarkIdName&&(a.identifierName=void 0,a.identifierNamePos=void 0)):this._map.mark(n)}n.column+=r}else n.line++,n.column=0}_append(t,r,i){let s=t.length,n=this._position,a=this._sourcePosition;this._last=-1,++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=t,this._appendCount=0):this._str+=t;let o=!i&&this._map!==null;if(!r&&!o){n.column+=s;return}let{column:l,identifierName:u,identifierNamePos:f,filename:h}=a,x=a.line;(u!=null||f!=null)&&this._canMarkIdName&&(a.identifierName=void 0,a.identifierNamePos=void 0);let A=t.indexOf(`
15
+ `),P=0;for(o&&A!==0&&this._map.mark(n,x,l,u,f,h);A!==-1;)n.line++,n.column=0,P=A+1,P<s&&x!==void 0&&(x++,o&&this._map.mark(n,x,0,void 0,void 0,h)),A=t.indexOf(`
16
+ `,P);n.column+=s-P}removeLastSemicolon(){this._queuedChar===59&&(this._queuedChar=0)}getLastChar(t){if(!t)return this._last;let r=this._queuedChar;return r!==0?r:this._last}getNewlineCount(){return this._queuedChar===0&&this._last===10?1:0}hasContent(){return this._last!==0}exactSource(t,r){if(!this._map){r();return}this.source("start",t);let i=t.identifierName,s=this._sourcePosition;i!=null&&(this._canMarkIdName=!1,s.identifierName=i),r(),i!=null&&(this._canMarkIdName=!0,s.identifierName=void 0,s.identifierNamePos=void 0),this.source("end",t)}source(t,r){this._map&&this._normalizePosition(t,r,0)}sourceWithOffset(t,r,i){this._map&&this._normalizePosition(t,r,i)}_normalizePosition(t,r,i){this._flush();let s=r[t];s&&(this.setSourcePosition(s.line,Math.max(s.column+i,0)),this._sourcePosition.filename=r.filename)}setSourcePosition(t,r){let i=this._sourcePosition;i.line=t,i.column=r}getCurrentColumn(){return this._position.column+(this._queuedChar?1:0)}getCurrentLine(){return this._position.line}};Kn.default=vu});var om=N(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.AssignmentExpression=IR;ke.BinaryExpression=xR;ke.ClassExpression=AR;ke.ArrowFunctionExpression=ke.ConditionalExpression=am;ke.DoExpression=pR;ke.FunctionExpression=vR;ke.FunctionTypeAnnotation=lR;ke.Identifier=wR;ke.LogicalExpression=bR;ke.NullableTypeAnnotation=oR;ke.ObjectExpression=cR;ke.OptionalIndexedAccessType=dR;ke.OptionalCallExpression=ke.OptionalMemberExpression=CR;ke.SequenceExpression=ER;ke.TSSatisfiesExpression=ke.TSAsExpression=hR;ke.TSConditionalType=mR;ke.TSConstructorType=ke.TSFunctionType=SR;ke.TSInferType=TR;ke.TSInstantiationExpression=gR;ke.TSIntersectionType=yR;ke.SpreadElement=ke.UnaryExpression=ke.TSTypeAssertion=nm;ke.TSTypeOperator=Iu;ke.TSUnionType=sm;ke.IntersectionTypeAnnotation=ke.UnionTypeAnnotation=fR;ke.UpdateExpression=uR;ke.AwaitExpression=ke.YieldExpression=PR;var rR=ye(),Pt=Vr(),{isMemberExpression:iR,isOptionalMemberExpression:sR,isYieldExpression:nR,isStatement:aR}=rR,tm=new Map([["||",0],["??",1],["&&",2],["|",3],["^",4],["&",5],["==",6],["===",6],["!=",6],["!==",6],["<",7],[">",7],["<=",7],[">=",7],["in",7],["instanceof",7],[">>",8],["<<",8],[">>>",8],["+",9],["-",9],["*",10],["/",10],["%",10],["**",11]]);function rm(e){return e===156||e===201||e===209}var Vn=(e,t,r)=>(r===21||r===22)&&t.superClass===e,$n=(e,t,r)=>{switch(r){case 108:case 132:return t.object===e;case 17:case 130:case 112:return t.callee===e;case 222:return t.tag===e;case 191:return!0}return!1};function oR(e,t,r){return r===4}function lR(e,t,r,i){return r===239||r===90||r===4||(i&Pt.TokenContext.arrowFlowReturnType)>0}function uR(e,t,r){return $n(e,t,r)||Vn(e,t,r)}function im(e){return(e&(Pt.TokenContext.expressionStatement|Pt.TokenContext.arrowBody))>0}function cR(e,t,r,i){return im(i)}function pR(e,t,r,i){return(i&Pt.TokenContext.expressionStatement)>0&&!e.async}function Cu(e,t,r,i){if(Vn(e,t,r)||$n(e,t,r)||r===238||r===145||r===8)return!0;let s;switch(r){case 10:case 107:s=tm.get(t.operator);break;case 156:case 201:s=7}if(s!==void 0){let n=i===2?7:tm.get(e.operator);if(s>n||s===n&&r===10&&(n===11?t.left===e:t.right===e)||i===1&&r===107&&(n===1&&s!==1||s===1&&n!==1))return!0}return!1}function fR(e,t,r){switch(r){case 4:case 115:case 90:case 239:return!0}return!1}function dR(e,t,r){return r===84&&t.objectType===e}function hR(e,t,r){return(r===6||r===7)&&t.left===e||r===10&&(t.operator==="|"||t.operator==="&")&&e===t.left?!0:Cu(e,t,r,2)}function mR(e,t,r){switch(r){case 155:case 195:case 211:case 212:return!0;case 175:return t.objectType===e;case 181:case 219:return t.types[0]===e;case 161:return t.checkType===e||t.extendsType===e}return!1}function sm(e,t,r){switch(r){case 181:case 211:case 155:case 195:return!0;case 175:return t.objectType===e}return!1}function yR(e,t,r){return r===211||Iu(e,t,r)}function TR(e,t,r){return!!(Iu(e,t,r)||(r===181||r===219)&&e.typeParameter.constraint&&t.types[0]===e)}function Iu(e,t,r){switch(r){case 155:case 195:return!0;case 175:if(t.objectType===e)return!0}return!1}function gR(e,t,r){switch(r){case 17:case 130:case 112:case 177:return t.typeParameters!=null}return!1}function SR(e,t,r){return sm(e,t,r)?!0:r===219||r===161&&(t.checkType===e||t.extendsType===e)}function xR(e,t,r,i){return Cu(e,t,r,0)?!0:(i&Pt.TokenContext.forInOrInitHeadAccumulate)>0&&e.operator==="in"}function bR(e,t,r){return Cu(e,t,r,1)}function ER(e,t,r){return r===144||r===133||r===108&&t.property===e||r===132&&t.property===e||r===224?!1:r===21?!0:r===68?t.right===e:r===60?!0:!aR(t)}function PR(e,t,r){return r===10||r===107||r===238||r===145||$n(e,t,r)||r===8&&nR(e)||r===28&&e===t.test||Vn(e,t,r)||rm(r)}function AR(e,t,r,i){return(i&(Pt.TokenContext.expressionStatement|Pt.TokenContext.exportDefault))>0}function nm(e,t,r){return $n(e,t,r)||r===10&&t.operator==="**"&&t.left===e||Vn(e,t,r)}function vR(e,t,r,i){return(i&(Pt.TokenContext.expressionStatement|Pt.TokenContext.exportDefault))>0}function am(e,t,r){switch(r){case 238:case 145:case 10:case 107:case 8:return!0;case 28:if(t.test===e)return!0}return rm(r)?!0:nm(e,t,r)}function CR(e,t,r){switch(r){case 17:return t.callee===e;case 108:return t.object===e}return!1}function IR(e,t,r,i){return im(i)&&e.left.type==="ObjectPattern"?!0:am(e,t,r)}function wR(e,t,r,i,s){var n;if(s&&s(e)!==e.name)return!1;if(r===6&&(n=e.extra)!=null&&n.parenthesized&&t.left===e){let a=t.right.type;if((a==="FunctionExpression"||a==="ClassExpression")&&t.right.id==null)return!0}return(i&Pt.TokenContext.forOfHead||(r===108||r===132)&&i&(Pt.TokenContext.expressionStatement|Pt.TokenContext.forInitHead|Pt.TokenContext.forInHead))&&e.name==="let"?(iR(t,{object:e,computed:!0})||sR(t,{object:e,computed:!0,optional:!1}))&&i&(Pt.TokenContext.expressionStatement|Pt.TokenContext.forInitHead|Pt.TokenContext.forInHead)?!0:(i&Pt.TokenContext.forOfHead)>0:r===68&&t.left===e&&e.name==="async"&&!t.await}});var wu=N(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.TaggedTemplateExpression=NR;Ui.TemplateElement=OR;Ui.TemplateLiteral=_R;Ui._printTemplate=lm;function NR(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)}function OR(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function lm(e,t){let r=e.quasis,i="`";for(let s=0;s<r.length-1;s++)if(i+=r[s].value.raw,this.token(i+"${",!0),this.print(t[s]),i="}",this.tokenMap){let n=this.tokenMap.findMatching(e,"}",s);n&&this._catchUpTo(n.loc.start)}i+=r[r.length-1].value.raw,this.token(i+"`",!0)}function _R(e){lm.call(this,e,e.expressions)}});var Jn=N(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.LogicalExpression=qe.AssignmentExpression=ij;qe.AssignmentPattern=rj;qe.AwaitExpression=QR;qe.BinaryExpression=sj;qe.BindExpression=nj;qe.CallExpression=zR;qe.ConditionalExpression=UR;qe.Decorator=YR;qe.DoExpression=RR;qe.EmptyStatement=ej;qe.ExpressionStatement=tj;qe.Import=GR;qe.MemberExpression=aj;qe.MetaProperty=oj;qe.ModuleExpression=cj;qe.NewExpression=KR;qe.OptionalCallExpression=HR;qe.OptionalMemberExpression=WR;qe.ParenthesizedExpression=jR;qe.PrivateName=lj;qe.SequenceExpression=VR;qe.Super=JR;qe.ThisExpression=$R;qe.UnaryExpression=FR;qe.UpdateExpression=qR;qe.V8IntrinsicIdentifier=uj;qe.YieldExpression=ZR;qe._shouldPrintDecoratorsBeforeExport=XR;var kR=ye(),DR=Vr(),{isCallExpression:LR,isLiteral:um,isMemberExpression:Nu,isNewExpression:MR,isPattern:BR}=kR;function FR(e){let{operator:t}=e,r=t.charCodeAt(0);r>=97&&r<=122?(this.word(t),this.space()):this.tokenChar(r),this.print(e.argument)}function RR(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)}function jR(e){this.tokenChar(40);let t=this.enterDelimited();this.print(e.expression,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function qR(e){e.prefix?(this.token(e.operator,!1,0,!0),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator,!1,0,!0))}function UR(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)}function KR(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&e.arguments.length===0&&!e.optional&&!LR(t,{callee:e})&&!Nu(t)&&!MR(t)||(this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?."),e.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(e,")")))return;this.tokenChar(40);let r=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=r,this.rightParens(e)}function VR(e){this.printList(e.expressions)}function $R(){this.word("this")}function JR(){this.word("super")}function XR(e){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof e.start=="number"&&e.start===e.declaration.start}function YR(e){this.tokenChar(64);let{expression:t}=e;this.print(t),this.newline()}function WR(e){let{computed:t}=e,{optional:r,property:i}=e;if(this.print(e.object),!t&&Nu(i))throw new TypeError("Got a MemberExpression for MemberExpression property");um(i)&&typeof i.value=="number"&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(i),this.tokenChar(93)):(r||this.tokenChar(46),this.print(i))}function HR(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?."),this.print(e.typeArguments),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,void 0,void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function zR(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function GR(){this.word("import")}function QR(e){this.word("await"),this.space(),this.print(e.argument)}function ZR(e){e.delegate?(this.word("yield",!0),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",!0),this.space(),this.print(e.argument)):this.word("yield")}function ej(){this.semicolon(!0)}function tj(e){this.tokenContext|=DR.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()}function rj(e){this.print(e.left),(e.left.type==="Identifier"||BR(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)}function ij(e){this.print(e.left),this.space(),this.token(e.operator,!1,0,!0),this.space(),this.print(e.right)}function sj(e){this.print(e.left),this.space();let{operator:t}=e;t.charCodeAt(0)===105?this.word(t):(this.token(t,!1,0,!0),this.setLastChar(t.charCodeAt(t.length-1))),this.space(),this.print(e.right)}function nj(e){this.print(e.object),this.token("::"),this.print(e.callee)}function aj(e){if(this.print(e.object),!e.computed&&Nu(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(um(e.property)&&typeof e.property.value=="number"&&(t=!0),t){let r=this.enterDelimited();this.tokenChar(91),this.print(e.property,void 0,!0),this.tokenChar(93),this._noLineTerminatorAfterNode=r}else this.tokenChar(46),this.print(e.property)}function oj(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)}function lj(e){this.tokenChar(35),this.print(e.id)}function uj(e){this.tokenChar(37),this.word(e.name)}function cj(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)}});var pm=N(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.BreakStatement=Ej;lt.CatchClause=wj;lt.ContinueStatement=Pj;lt.DebuggerStatement=_j;lt.DoWhileStatement=bj;lt.ForInStatement=Sj;lt.ForOfStatement=xj;lt.ForStatement=Tj;lt.IfStatement=yj;lt.LabeledStatement=Cj;lt.ReturnStatement=Aj;lt.SwitchCase=Oj;lt.SwitchStatement=Nj;lt.ThrowStatement=vj;lt.TryStatement=Ij;lt.VariableDeclaration=Dj;lt.VariableDeclarator=Lj;lt.WhileStatement=gj;lt.WithStatement=mj;var pj=ye(),yi=Vr(),{isFor:fj,isIfStatement:dj,isStatement:hj}=pj;function mj(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e.body)}function yj(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();let t=e.alternate&&dj(cm(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))}function cm(e){let{body:t}=e;return hj(t)===!1?e:cm(t)}function Tj(e){this.word("for"),this.space(),this.tokenChar(40),this.tokenContext|=yi.TokenContext.forInitHead|yi.TokenContext.forInOrInitHeadAccumulate,this.print(e.init),this.tokenContext=yi.TokenContext.normal,this.tokenChar(59),e.test&&(this.space(),this.print(e.test)),this.tokenChar(59,1),e.update&&(this.space(),this.print(e.update)),this.tokenChar(41),this.printBlock(e.body)}function gj(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e.body)}function Sj(e){this.word("for"),this.space(),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=yi.TokenContext.forInHead|yi.TokenContext.forInOrInitHeadAccumulate,this.print(e.left),this.tokenContext=yi.TokenContext.normal,this.space(),this.word("in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)}function xj(e){this.word("for"),this.space(),e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=yi.TokenContext.forOfHead,this.print(e.left),this.space(),this.word("of"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)}function bj(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()}function Xn(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}function Ej(e){this.word("break"),Xn(this,e.label)}function Pj(e){this.word("continue"),Xn(this,e.label)}function Aj(e){this.word("return"),Xn(this,e.argument)}function vj(e){this.word("throw"),Xn(this,e.argument)}function Cj(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)}function Ij(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))}function wj(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(e.body)}function Nj(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0),this.rightBrace(e)}function Oj(e){e.test?(this.word("case"),this.space(),this.print(e.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))}function _j(){this.word("debugger"),this.semicolon()}function kj(e){this.tokenChar(44,e),this.newline()}function Dj(e,t){e.declare&&(this.word("declare"),this.space());let{kind:r}=e;switch(r){case"await using":this.word("await"),this.space();case"using":this.word("using",!0);break;default:this.word(r)}this.space();let i=!1;if(!fj(t)){for(let s of e.declarations)if(s.init){i=!0;break}}if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,i?kj:void 0),t!=null)switch(t.type){case"ForStatement":if(t.init===e)return;break;case"ForInStatement":case"ForOfStatement":if(t.left===e)return}this.semicolon()}function Lj(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))}});var Cs=N(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.ArrowFunctionExpression=qj;Wt.FunctionDeclaration=Wt.FunctionExpression=jj;Wt._functionHead=hm;Wt._methodHead=Rj;Wt._param=dm;Wt._parameters=fm;Wt._params=Ki;Wt._predicate=Ou;Wt._shouldPrintArrowParamsParens=mm;var Mj=ye(),Bj=Vr(),{isIdentifier:Fj}=Mj;function Ki(e,t,r,i){if(this.print(e.typeParameters),r!==void 0||i!==void 0){let s=Uj.call(this,r,i);s&&this.sourceIdentifierName(s.name,s.pos)}this.tokenChar(40),fm.call(this,e.params,41),this.print(e.returnType,t),this._noLineTerminator=t}function fm(e,t){let r=this.enterDelimited(),i=this.shouldPrintTrailingComma(t),s=e.length;for(let n=0;n<s;n++)dm.call(this,e[n]),(i||n<s-1)&&(this.tokenChar(44,n),this.space());this.tokenChar(t),this._noLineTerminatorAfterNode=r}function dm(e){this.printJoin(e.decorators,void 0,void 0,void 0,void 0,!0),this.print(e,void 0,!0),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,void 0,!0)}function Rj(e){let t=e.kind,r=e.key;(t==="get"||t==="set")&&(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),(t==="method"||t==="init")&&e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(r),this.tokenChar(93)):this.print(r),e.optional&&this.tokenChar(63),this._buf._map?Ki.call(this,e,!1,e.computed&&e.key.type!=="StringLiteral"?void 0:e.key):Ki.call(this,e,!1)}function Ou(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t))}function hm(e,t,r){e.async&&(this.word("async"),this.format.preserveFormat||(this._innerCommentsState=0),this.space()),this.word("function"),e.generator&&(this.format.preserveFormat||(this._innerCommentsState=0),this.tokenChar(42)),this.space(),e.id&&this.print(e.id),this._buf._map?Ki.call(this,e,!1,e.id,t):Ki.call(this,e,!1),r&&Ou.call(this,e)}function jj(e,t){hm.call(this,e,t,!0),this.space(),this.print(e.body)}function qj(e,t){e.async&&(this.word("async",!0),this.space()),mm.call(this,e)?Ki.call(this,e,!0,void 0,this._buf._map?t:void 0):this.print(e.params[0],!0),Ou.call(this,e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=Bj.TokenContext.arrowBody,this.print(e.body)}function mm(e){var t,r;if(e.params.length!==1||e.typeParameters||e.returnType||e.predicate)return!0;let i=e.params[0];if(!Fj(i)||i.typeAnnotation||i.optional||(t=i.leadingComments)!=null&&t.length||(r=i.trailingComments)!=null&&r.length)return!0;if(this.tokenMap){if(e.loc==null||this.tokenMap.findMatching(e,"(")!==null)return!0;let s=this.tokenMap.findMatching(e,"=>");return s?.loc==null?!0:s.loc.start.line!==e.loc.start.line}return!!this.format.retainLines}function Uj(e,t){let r=e;if(!r&&t){let l=t.type;l==="VariableDeclarator"?r=t.id:l==="AssignmentExpression"||l==="AssignmentPattern"?r=t.left:l==="ObjectProperty"||l==="ClassProperty"?(!t.computed||t.key.type==="StringLiteral")&&(r=t.key):(l==="ClassPrivateProperty"||l==="ClassAccessorProperty")&&(r=t.key)}if(!r)return;let i;if(r.type==="Identifier"){var s,n;i={pos:(s=r.loc)==null?void 0:s.start,name:((n=r.loc)==null?void 0:n.identifierName)||r.name}}else if(r.type==="PrivateName"){var a;i={pos:(a=r.loc)==null?void 0:a.start,name:"#"+r.id.name}}else if(r.type==="StringLiteral"){var o;i={pos:(o=r.loc)==null?void 0:o.start,name:r.value}}return i}});var ku=N(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.TSAnyKeyword=r4;re.TSArrayType=E4;re.TSAsExpression=U4;re.TSBigIntKeyword=i4;re.TSBooleanKeyword=o4;re.TSCallSignatureDeclaration=Gj;re.TSInterfaceHeritage=re.TSClassImplements=F4;re.TSConditionalType=N4;re.TSConstructSignatureDeclaration=Qj;re.TSConstructorType=T4;re.TSDeclareFunction=Wj;re.TSDeclareMethod=Hj;re.TSEnumBody=bm;re.TSEnumDeclaration=J4;re.TSEnumMember=X4;re.TSExportAssignment=Z4;re.TSExternalModuleReference=G4;re.TSFunctionType=y4;re.TSImportEqualsDeclaration=z4;re.TSImportType=H4;re.TSIndexSignature=t4;re.TSIndexedAccessType=D4;re.TSInferType=O4;re.TSInstantiationExpression=$4;re.TSInterfaceBody=j4;re.TSInterfaceDeclaration=R4;re.TSIntersectionType=w4;re.TSIntrinsicKeyword=h4;re.TSLiteralType=B4;re.TSMappedType=L4;re.TSMethodSignature=e4;re.TSModuleBlock=W4;re.TSModuleDeclaration=Y4;re.TSNamedTupleMember=C4;re.TSNamespaceExportDeclaration=e8;re.TSNeverKeyword=d4;re.TSNonNullExpression=Q4;re.TSNullKeyword=f4;re.TSNumberKeyword=n4;re.TSObjectKeyword=a4;re.TSOptionalType=A4;re.TSParameterProperty=Yj;re.TSParenthesizedType=_4;re.TSPropertySignature=Zj;re.TSQualifiedName=zj;re.TSRestType=v4;re.TSSatisfiesExpression=K4;re.TSStringKeyword=l4;re.TSSymbolKeyword=u4;re.TSTemplateLiteralType=M4;re.TSThisType=m4;re.TSTupleType=P4;re.TSTypeAliasDeclaration=q4;re.TSTypeAnnotation=$j;re.TSTypeAssertion=V4;re.TSTypeLiteral=b4;re.TSTypeOperator=k4;re.TSTypeParameter=Xj;re.TSTypeParameterDeclaration=re.TSTypeParameterInstantiation=Jj;re.TSTypePredicate=S4;re.TSTypeQuery=x4;re.TSTypeReference=g4;re.TSUndefinedKeyword=p4;re.TSUnionType=I4;re.TSUnknownKeyword=s4;re.TSVoidKeyword=c4;re._tsPrintClassMemberModifiers=t8;var Is=Cs(),Kj=Du(),Vj=wu();function $j(e,t){this.token((t.type==="TSFunctionType"||t.type==="TSConstructorType")&&t.typeAnnotation===e?"=>":":"),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)}function Jj(e,t){this.tokenChar(60);let r=t.type==="ArrowFunctionExpression"&&e.params.length===1;this.tokenMap&&e.start!=null&&e.end!=null&&(r&&(r=!!this.tokenMap.find(e,i=>this.tokenMap.matchesOriginal(i,","))),r||(r=this.shouldPrintTrailingComma(">"))),this.printList(e.params,r),this.tokenChar(62)}function Xj(e){e.const&&(this.word("const"),this.space()),e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))}function Yj(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),Is._param.call(this,e.parameter)}function Wj(e,t){e.declare&&(this.word("declare"),this.space()),Is._functionHead.call(this,e,t,!1),this.semicolon()}function Hj(e){Kj._classMethodHead.call(this,e),this.semicolon()}function zj(e){this.print(e.left),this.tokenChar(46),this.print(e.right)}function Gj(e){_u.call(this,e),ws(this,e)}function ws(e,t){if(!e.tokenMap||!t.start||!t.end){e.semicolon();return}e.tokenMap.endMatches(t,",")?e.token(","):e.tokenMap.endMatches(t,";")&&e.semicolon()}function Qj(e){this.word("new"),this.space(),_u.call(this,e),ws(this,e)}function Zj(e){let{readonly:t}=e;t&&(this.word("readonly"),this.space()),gm.call(this,e),this.print(e.typeAnnotation),ws(this,e)}function gm(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)}function e4(e){let{kind:t}=e;(t==="set"||t==="get")&&(this.word(t),this.space()),gm.call(this,e),_u.call(this,e),ws(this,e)}function t4(e){let{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),Is._parameters.call(this,e.parameters,93),this.print(e.typeAnnotation),ws(this,e)}function r4(){this.word("any")}function i4(){this.word("bigint")}function s4(){this.word("unknown")}function n4(){this.word("number")}function a4(){this.word("object")}function o4(){this.word("boolean")}function l4(){this.word("string")}function u4(){this.word("symbol")}function c4(){this.word("void")}function p4(){this.word("undefined")}function f4(){this.word("null")}function d4(){this.word("never")}function h4(){this.word("intrinsic")}function m4(){this.word("this")}function y4(e){Sm.call(this,e)}function T4(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),Sm.call(this,e)}function Sm(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),Is._parameters.call(this,r,41),this.space();let i=e.typeAnnotation;this.print(i)}function g4(e){let t=e.typeParameters;this.print(e.typeName,!!t),this.print(t)}function S4(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))}function x4(e){this.word("typeof"),this.space(),this.print(e.exprName);let t=e.typeParameters;t&&this.print(t)}function b4(e){Yn(this,e,()=>this.printJoin(e.members,!0,!0,void 0,void 0,!0))}function E4(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function P4(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)}function A4(e){this.print(e.typeAnnotation),this.tokenChar(63)}function v4(e){this.token("..."),this.print(e.typeAnnotation)}function C4(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType)}function I4(e){xm(this,e,"|")}function w4(e){xm(this,e,"&")}function xm(e,t,r){var i;let s=0;(i=e.tokenMap)!=null&&i.startMatches(t,r)&&(s=1,e.token(r)),e.printJoin(t.types,void 0,void 0,function(n){this.space(),this.token(r,void 0,n+s),this.space()})}function N4(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)}function O4(e){this.word("infer"),this.print(e.typeParameter)}function _4(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)}function k4(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)}function D4(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}function L4(e){let{nameType:t,optional:r,readonly:i,typeAnnotation:s}=e;this.tokenChar(123);let n=this.enterDelimited();this.space(),i&&(ym(this,i),this.word("readonly"),this.space()),this.tokenChar(91),this.word(e.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(e.typeParameter.constraint,void 0,!0),t&&(this.space(),this.word("as"),this.space(),this.print(t,void 0,!0)),this.tokenChar(93),r&&(ym(this,r),this.tokenChar(63)),s&&(this.tokenChar(58),this.space(),this.print(s,void 0,!0)),this.space(),this._noLineTerminatorAfterNode=n,this.tokenChar(125)}function ym(e,t){t!==!0&&e.token(t)}function M4(e){Vj._printTemplate.call(this,e,e.types)}function B4(e){this.print(e.literal)}function F4(e){this.print(e.expression),this.print(e.typeArguments)}function R4(e){let{declare:t,id:r,typeParameters:i,extends:s,body:n}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(r),this.print(i),s!=null&&s.length&&(this.space(),this.word("extends"),this.space(),this.printList(s)),this.space(),this.print(n)}function j4(e){Yn(this,e,()=>this.printJoin(e.body,!0,!0,void 0,void 0,!0))}function q4(e){let{declare:t,id:r,typeParameters:i,typeAnnotation:s}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(r),this.print(i),this.space(),this.tokenChar(61),this.space(),this.print(s),this.semicolon()}function U4(e){let{expression:t,typeAnnotation:r}=e;this.print(t,!0),this.space(),this.word("as"),this.space(),this.print(r)}function K4(e){let{expression:t,typeAnnotation:r}=e;this.print(t,!0),this.space(),this.word("satisfies"),this.space(),this.print(r)}function V4(e){let{typeAnnotation:t,expression:r}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(r)}function $4(e){this.print(e.expression),this.print(e.typeParameters)}function J4(e){let{declare:t,const:r,id:i}=e;t&&(this.word("declare"),this.space()),r&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(i),this.space(),bm.call(this,e)}function bm(e){Yn(this,e,()=>{var t;return this.printList(e.members,(t=this.shouldPrintTrailingComma("}"))!=null?t:!0,!0,!0,void 0,!0)})}function X4(e){let{id:t,initializer:r}=e;this.print(t),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r))}function Y4(e){let{declare:t,id:r,kind:i}=e;if(t&&(this.word("declare"),this.space()),e.global||(this.word(i??(r.type==="Identifier"?"namespace":"module")),this.space()),this.print(r),!e.body){this.semicolon();return}let s=e.body;for(;s.type==="TSModuleDeclaration";)this.tokenChar(46),this.print(s.id),s=s.body;this.space(),this.print(s)}function W4(e){Yn(this,e,()=>this.printSequence(e.body,!0,!0))}function H4(e){let{qualifier:t,options:r}=e;this.word("import"),this.tokenChar(40),this.print(e.argument),r&&(this.tokenChar(44),this.print(r)),this.tokenChar(41),t&&(this.tokenChar(46),this.print(t));let i=e.typeParameters;i&&this.print(i)}function z4(e){let{id:t,moduleReference:r}=e;e.isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(t),this.space(),this.tokenChar(61),this.space(),this.print(r),this.semicolon()}function G4(e){this.token("require("),this.print(e.expression),this.tokenChar(41)}function Q4(e){this.print(e.expression),this.tokenChar(33),this.setLastChar(33)}function Z4(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()}function e8(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()}function _u(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),Is._parameters.call(this,r,41);let i=e.typeAnnotation;this.print(i)}function t8(e){let t=e.type==="ClassPrivateProperty",r=e.type==="ClassAccessorProperty"||e.type==="ClassProperty";Tm(this,e,[r&&e.declare&&"declare",!t&&e.accessibility]),e.static&&(this.word("static"),this.space()),Tm(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(r||t)&&e.readonly&&"readonly"])}function Yn(e,t,r){e.token("{");let i=e.enterDelimited();r(),e._noLineTerminatorAfterNode=i,e.rightBrace(t)}function Tm(e,t,r){var i;let s=new Set;for(let n of r)n&&s.add(n);(i=e.tokenMap)==null||i.find(t,n=>s.has(n.value)?(e.token(n.value),e.space(),s.delete(n.value),s.size===0):!1);for(let n of s)e.word(n),e.space()}});var Lu=N(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.ExportAllDeclaration=m8;Ot.ExportDefaultDeclaration=T8;Ot.ExportDefaultSpecifier=f8;Ot.ExportNamedDeclaration=y8;Ot.ExportNamespaceSpecifier=h8;Ot.ExportSpecifier=d8;Ot.ImportAttribute=S8;Ot.ImportDeclaration=g8;Ot.ImportDefaultSpecifier=p8;Ot.ImportExpression=b8;Ot.ImportNamespaceSpecifier=x8;Ot.ImportSpecifier=c8;Ot._printAttributes=Wn;var r8=ye(),i8=Vr(),s8=Jn(),{isClassDeclaration:n8,isExportDefaultSpecifier:a8,isExportNamespaceSpecifier:o8,isImportDefaultSpecifier:l8,isImportNamespaceSpecifier:u8,isStatement:Pm}=r8;function c8(e){(e.importKind==="type"||e.importKind==="typeof")&&(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))}function p8(e){this.print(e.local)}function f8(e){this.print(e.exported)}function d8(e){e.exportKind==="type"&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))}function h8(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)}var Em=!1;function Wn(e,t){var r;let{attributes:i}=e;var{assertions:s}=e;let{importAttributesKeyword:n}=this.format;i&&!n&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!Em&&(Em=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));let a=n==="assert"||!n&&s;if(this.word(a?"assert":"with"),this.space(),!a&&(n==="with-legacy"||!n&&(r=e.extra)!=null&&r.deprecatedWithLegacySyntax)){this.printList(i||s);return}let o=t?1:0;this.token("{",void 0,o),this.space(),this.printList(i||s,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,o)}function m8(e){var t,r;this.word("export"),this.space(),e.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),Wn.call(this,e,!1)):this.print(e.source),this.semicolon()}function Am(e,t){n8(t.declaration)&&s8._shouldPrintDecoratorsBeforeExport.call(e,t)&&e.printJoin(t.declaration.decorators)}function y8(e){if(Am(this,e),this.word("export"),this.space(),e.declaration){let i=e.declaration;this.print(i),Pm(i)||this.semicolon()}else{e.exportKind==="type"&&(this.word("type"),this.space());let i=e.specifiers.slice(0),s=!1;for(;;){let a=i[0];if(a8(a)||o8(a))s=!0,this.print(i.shift()),i.length&&(this.tokenChar(44),this.space());else break}let n=!1;if((i.length||!i.length&&!s)&&(n=!0,this.tokenChar(123),i.length&&(this.space(),this.printList(i,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source){var t,r;this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),Wn.call(this,e,n)):this.print(e.source)}this.semicolon()}}function T8(e){Am(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=i8.TokenContext.exportDefault;let t=e.declaration;this.print(t),Pm(t)||this.semicolon()}function g8(e){var t,r;this.word("import"),this.space();let i=e.importKind==="type"||e.importKind==="typeof";i?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());let s=e.specifiers.slice(0),n=!!s.length;for(;n;){let o=s[0];if(l8(o)||u8(o))this.print(s.shift()),s.length&&(this.tokenChar(44),this.space());else break}let a=!1;s.length?(a=!0,this.tokenChar(123),this.space(),this.printList(s,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):i&&!n&&(a=!0,this.tokenChar(123),this.tokenChar(125)),(n||i)&&(this.space(),this.word("from"),this.space()),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),Wn.call(this,e,a)):this.print(e.source),this.semicolon()}function S8(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function x8(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)}function b8(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40);let t=this.shouldPrintTrailingComma(")");this.print(e.source),e.options!=null&&(this.tokenChar(44),this.space(),this.print(e.options)),t&&this.tokenChar(44),this.rightParens(e)}});var wm=N((ire,Im)=>{"use strict";var vm={},E8=vm.hasOwnProperty,Cm=(e,t)=>{for(let r in e)E8.call(e,r)&&t(r,e[r])},P8=(e,t)=>(t&&Cm(t,(r,i)=>{e[r]=i}),e),A8=(e,t)=>{let r=e.length,i=-1;for(;++i<r;)t(e[i])},Hn=e=>"\\u"+("0000"+e).slice(-4),Ns=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},Os=vm.toString,v8=Array.isArray,C8=e=>typeof Buffer=="function"&&Buffer.isBuffer(e),I8=e=>Os.call(e)=="[object Object]",w8=e=>typeof e=="string"||Os.call(e)=="[object String]",N8=e=>typeof e=="number"||Os.call(e)=="[object Number]",Mu=e=>typeof e=="bigint",O8=e=>typeof e=="function",_8=e=>Os.call(e)=="[object Map]",k8=e=>Os.call(e)=="[object Set]",D8={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},L8=/[\\\b\f\n\r\t]/,M8=/[0-9]/,B8=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,F8=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,R8=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,$r=(e,t)=>{let r=()=>{u=l,++t.indentLevel,l=t.indent.repeat(t.indentLevel)},i={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},s=t&&t.json;s&&(i.quotes="double",i.wrap=!0),t=P8(i,t),t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"&&(t.quotes="single");let n=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'",a=t.compact,o=t.lowercaseHex,l=t.indent.repeat(t.indentLevel),u="",f=t.__inline1__,h=t.__inline2__,x=a?"":`
17
+ `,A,P=!0,w=t.numbers=="binary",b=t.numbers=="octal",C=t.numbers=="decimal",D=t.numbers=="hexadecimal";if(s&&e&&O8(e.toJSON)&&(e=e.toJSON()),!w8(e)){if(_8(e))return e.size==0?"new Map()":(a||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+$r(Array.from(e),t)+")");if(k8(e))return e.size==0?"new Set()":"new Set("+$r(Array.from(e),t)+")";if(C8(e))return e.length==0?"Buffer.from([])":"Buffer.from("+$r(Array.from(e),t)+")";if(v8(e))return A=[],t.wrap=!0,f&&(t.__inline1__=!1,t.__inline2__=!0),h||r(),A8(e,k=>{P=!1,h&&(t.__inline2__=!1),A.push((a||h?"":l)+$r(k,t))}),P?"[]":h?"["+A.join(", ")+"]":"["+x+A.join(","+x)+x+(a?"":u)+"]";if(N8(e)||Mu(e)){if(s)return JSON.stringify(Number(e));let k;if(C)k=String(e);else if(D){let L=e.toString(16);o||(L=L.toUpperCase()),k="0x"+L}else w?k="0b"+e.toString(2):b&&(k="0o"+e.toString(8));return Mu(e)?k+"n":k}else return Mu(e)?s?JSON.stringify(Number(e)):e+"n":I8(e)?(A=[],t.wrap=!0,r(),Cm(e,(k,L)=>{P=!1,A.push((a?"":l)+$r(k,t)+":"+(a?"":" ")+$r(L,t))}),P?"{}":"{"+x+A.join(","+x)+x+(a?"":u)+"}"):s?JSON.stringify(e)||"null":String(e)}let U=t.escapeEverything?F8:R8;return A=e.replace(U,(k,L,te,Te,be,X)=>{if(L){if(t.minimal)return L;let ct=L.charCodeAt(0),B=L.charCodeAt(1);if(t.es6){let G=(ct-55296)*1024+B-56320+65536;return"\\u{"+Ns(G,o)+"}"}return Hn(Ns(ct,o))+Hn(Ns(B,o))}if(te)return Hn(Ns(te.charCodeAt(0),o));if(k=="\0"&&!s&&!M8.test(X.charAt(be+1)))return"\\0";if(Te)return Te==n||t.escapeEverything?"\\"+Te:Te;if(L8.test(k))return D8[k];if(t.minimal&&!B8.test(k))return k;let Ye=Ns(k.charCodeAt(0),o);return s||Ye.length>2?Hn(Ye):"\\x"+("00"+Ye).slice(-2)}),n=="`"&&(A=A.replace(/\$\{/g,"\\${")),t.isScriptContext&&(A=A.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,s?"\\u003C!--":"\\x3C!--")),t.wrap&&(A=n+A+n),A};$r.version="3.0.2";Im.exports=$r});var Gn=N(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.ArgumentPlaceholder=$8;it.ArrayPattern=it.ArrayExpression=H8;it.BigIntLiteral=t6;it.BooleanLiteral=G8;it.Identifier=V8;it.NullLiteral=Q8;it.NumericLiteral=Z8;it.ObjectPattern=it.ObjectExpression=X8;it.ObjectMethod=Y8;it.ObjectProperty=W8;it.PipelineBareFunction=s6;it.PipelinePrimaryTopicReference=n6;it.PipelineTopicExpression=i6;it.RegExpLiteral=z8;it.SpreadElement=it.RestElement=J8;it.StringLiteral=e6;it.TopicReference=r6;it.VoidPattern=a6;it._getRawIdentifier=K8;var j8=ye(),Om=wm(),q8=Cs(),{isAssignmentPattern:U8,isIdentifier:Bu}=j8,zn="";function K8(e){let{name:t}=e,r=this.tokenMap.find(e,i=>i.value===t);return r?(zn=this._originalCode.slice(r.start,r.end),zn):zn=e.name}function V8(e){if(this._buf._map){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name)}this.word(this.tokenMap?zn:e.name)}function $8(){this.tokenChar(63)}function J8(e){this.token("..."),this.print(e.argument)}function X8(e){let t=e.properties;if(this.tokenChar(123),t.length){let r=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0,void 0,!0),this.space(),this._noLineTerminatorAfterNode=r}this.rightBrace(e)}function Y8(e){this.printJoin(e.decorators),q8._methodHead.call(this,e),this.space(),this.print(e.body)}function W8(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(U8(e.value)&&Bu(e.key)&&e.key.name===e.value.left.name){this.print(e.value);return}if(this.print(e.key),e.shorthand&&Bu(e.key)&&Bu(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)}function H8(e){let t=e.elements,r=t.length;this.tokenChar(91);let i=this.enterDelimited();for(let s=0;s<t.length;s++){let n=t[s];n?(s>0&&this.space(),this.print(n,void 0,!0),(s<r-1||this.shouldPrintTrailingComma("]"))&&this.tokenChar(44,s)):this.tokenChar(44,s)}this._noLineTerminatorAfterNode=i,this.tokenChar(93)}function z8(e){this.word(`/${e.pattern}/${e.flags}`,!1)}function G8(e){this.word(e.value?"true":"false")}function Q8(){this.word("null")}function Z8(e){let t=this.getPossibleRaw(e),r=this.format.jsescOption,i=e.value,s=i+"";r.numbers?this.number(Om(i,r),i):t==null?this.number(s,i):this.format.minified?this.number(t.length<s.length?t:s,i):this.number(t,i)}function e6(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let r=Om(e.value,this.format.jsescOption);this.token(r)}function t6(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"n")}var Nm=new Set(["^^","@@","^","%","#"]);function r6(){let{topicToken:e}=this.format;if(Nm.has(e))this.token(e);else{let t=JSON.stringify(e),r=Array.from(Nm,i=>JSON.stringify(i));throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`)}}function i6(e){this.print(e.expression)}function s6(e){this.print(e.callee)}function n6(){this.tokenChar(35)}function a6(){this.word("void")}});var ju=N(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.AnyTypeAnnotation=p6;se.ArrayTypeAnnotation=f6;se.BooleanLiteralTypeAnnotation=h6;se.BooleanTypeAnnotation=d6;se.DeclareClass=y6;se.DeclareExportAllDeclaration=I6;se.DeclareExportDeclaration=C6;se.DeclareFunction=T6;se.DeclareInterface=x6;se.DeclareModule=b6;se.DeclareModuleExports=E6;se.DeclareOpaqueType=A6;se.DeclareTypeAlias=P6;se.DeclareVariable=v6;se.DeclaredPredicate=S6;se.EmptyTypeAnnotation=X6;se.EnumBooleanBody=N6;se.EnumBooleanMember=L6;se.EnumDeclaration=w6;se.EnumDefaultedMember=D6;se.EnumNumberBody=O6;se.EnumNumberMember=M6;se.EnumStringBody=_6;se.EnumStringMember=B6;se.EnumSymbolBody=k6;se.ExistsTypeAnnotation=R6;se.FunctionTypeAnnotation=j6;se.FunctionTypeParam=q6;se.IndexedAccessType=m9;se.InferredPredicate=g6;se.InterfaceDeclaration=km;se.GenericTypeAnnotation=se.ClassImplements=se.InterfaceExtends=U6;se.InterfaceTypeAnnotation=V6;se.IntersectionTypeAnnotation=$6;se.MixedTypeAnnotation=J6;se.NullLiteralTypeAnnotation=m6;se.NullableTypeAnnotation=Y6;Object.defineProperty(se,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return _m.NumericLiteral}});se.NumberTypeAnnotation=W6;se.ObjectTypeAnnotation=r9;se.ObjectTypeCallProperty=s9;se.ObjectTypeIndexer=n9;se.ObjectTypeInternalSlot=i9;se.ObjectTypeProperty=a9;se.ObjectTypeSpreadProperty=o9;se.OpaqueType=Lm;se.OptionalIndexedAccessType=y9;se.QualifiedTypeIdentifier=l9;Object.defineProperty(se,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return _m.StringLiteral}});se.StringTypeAnnotation=H6;se.SymbolTypeAnnotation=u9;se.ThisTypeAnnotation=z6;se.TupleTypeAnnotation=G6;se.TypeAlias=Dm;se.TypeAnnotation=Z6;se.TypeCastExpression=f9;se.TypeParameter=t9;se.TypeParameterDeclaration=se.TypeParameterInstantiation=e9;se.TypeofTypeAnnotation=Q6;se.UnionTypeAnnotation=p9;se.Variance=d9;se.VoidTypeAnnotation=h9;se._interfaceish=Ru;se._variance=ta;var o6=ye(),l6=Lu(),u6=Vr(),_m=Gn(),{isDeclareExportDeclaration:Qn,isStatement:c6}=o6;function p6(){this.word("any")}function f6(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function d6(){this.word("boolean")}function h6(e){this.word(e.value?"true":"false")}function m6(){this.word("null")}function y6(e,t){Qn(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),Ru.call(this,e)}function T6(e,t){Qn(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate)),this.semicolon()}function g6(){this.tokenChar(37),this.word("checks")}function S6(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)}function x6(e){this.word("declare"),this.space(),km.call(this,e)}function b6(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)}function E6(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)}function P6(e){this.word("declare"),this.space(),Dm.call(this,e)}function A6(e,t){Qn(t)||(this.word("declare"),this.space()),Lm.call(this,e)}function v6(e,t){Qn(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()}function C6(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),F6.call(this,e)}function I6(e){this.word("declare"),this.space(),l6.ExportAllDeclaration.call(this,e)}function w6(e){let{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t),this.print(r)}function Zn(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function ea(e,t){let{members:r}=t;e.token("{"),e.indent(),e.newline();for(let i of r)e.print(i),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function N6(e){let{explicitType:t}=e;Zn(this,"boolean",t),ea(this,e)}function O6(e){let{explicitType:t}=e;Zn(this,"number",t),ea(this,e)}function _6(e){let{explicitType:t}=e;Zn(this,"string",t),ea(this,e)}function k6(e){Zn(this,"symbol",!0),ea(this,e)}function D6(e){let{id:t}=e;this.print(t),this.tokenChar(44)}function Fu(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function L6(e){Fu(this,e)}function M6(e){Fu(this,e)}function B6(e){Fu(this,e)}function F6(e){if(e.declaration){let t=e.declaration;this.print(t),c6(t)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source)),this.semicolon()}function R6(){this.tokenChar(42)}function j6(e,t){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest)),this.tokenChar(41);let r=t?.type;r!=null&&(r==="ObjectTypeCallProperty"||r==="ObjectTypeInternalSlot"||r==="DeclareFunction"||r==="ObjectTypeProperty"&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType)}function q6(e){this.print(e.name),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation)}function U6(e){this.print(e.id),this.print(e.typeParameters,!0)}function Ru(e){var t;if(this.print(e.id),this.print(e.typeParameters),(t=e.extends)!=null&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),e.type==="DeclareClass"){var r,i;(r=e.mixins)!=null&&r.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),(i=e.implements)!=null&&i.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements))}this.space(),this.print(e.body)}function ta(e){var t;let r=(t=e.variance)==null?void 0:t.kind;r!=null&&(r==="plus"?this.tokenChar(43):r==="minus"&&this.tokenChar(45))}function km(e){this.word("interface"),this.space(),Ru.call(this,e)}function K6(e){this.space(),this.token("&",!1,e),this.space()}function V6(e){var t;this.word("interface"),(t=e.extends)!=null&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),this.space(),this.print(e.body)}function $6(e){this.printJoin(e.types,void 0,void 0,K6)}function J6(){this.word("mixed")}function X6(){this.word("empty")}function Y6(e){this.tokenChar(63),this.print(e.typeAnnotation)}function W6(){this.word("number")}function H6(){this.word("string")}function z6(){this.word("this")}function G6(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)}function Q6(e){this.word("typeof"),this.space(),this.print(e.argument)}function Dm(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()}function Z6(e,t){this.tokenChar(58),this.space(),t.type==="ArrowFunctionExpression"?this.tokenContext|=u6.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)}function e9(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)}function t9(e){ta.call(this,e),this.word(e.name),e.bound&&this.print(e.bound),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))}function Lm(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype)),this.semicolon()}function r9(e){e.exact?this.token("{|"):this.tokenChar(123);let t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,!0,!0,()=>{(t.length!==1||e.inexact)&&(this.tokenChar(44),this.space())},!0),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125)}function i9(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)}function s9(e){e.static&&(this.word("static"),this.space()),this.print(e.value)}function n9(e){e.static&&(this.word("static"),this.space()),ta.call(this,e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space()),this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)}function a9(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),(e.kind==="get"||e.kind==="set")&&(this.word(e.kind),this.space()),ta.call(this,e),this.print(e.key),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)}function o9(e){this.token("..."),this.print(e.argument)}function l9(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)}function u9(){this.word("symbol")}function c9(e){this.space(),this.token("|",!1,e),this.space()}function p9(e){this.printJoin(e.types,void 0,void 0,c9)}function f9(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)}function d9(e){e.kind==="plus"?this.tokenChar(43):this.tokenChar(45)}function h9(){this.word("void")}function m9(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}function y9(e){this.print(e.objectType),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}});var Du=N(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.ClassAccessorProperty=C9;Ht.ClassBody=P9;Ht.ClassExpression=Ht.ClassDeclaration=E9;Ht.ClassMethod=w9;Ht.ClassPrivateMethod=N9;Ht.ClassPrivateProperty=I9;Ht.ClassProperty=v9;Ht.StaticBlock=O9;Ht._classMethodHead=qu;var T9=ye(),g9=Jn(),ra=ku(),Mm=ju(),S9=Cs(),{isExportDefaultDeclaration:x9,isExportNamedDeclaration:b9}=T9;function E9(e,t){(!(x9(t)||b9(t))||!g9._shouldPrintDecoratorsBeforeExport.call(this,t))&&this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)}function P9(e){if(this.tokenChar(123),e.body.length===0)this.tokenChar(125);else{let t=A9(this,e);t?.(-1);let r=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0,!0),this._noLineTerminatorAfterNode=r,this.endsWith(10)||this.newline(),this.rightBrace(e)}}function A9(e,t){if(!e.tokenMap||t.start==null||t.end==null)return null;let r=e.tokenMap.getIndexes(t);if(!r)return null;let i=1,s=0,n=0,a=()=>{for(;n<t.body.length&&t.body[n].start==null;)n++};return a(),o=>{n<=o&&(n=o+1,a());let l=n===t.body.length?t.end:t.body[n].start,u;for(;i<r.length&&e.tokenMap.matchesOriginal(u=e._tokens[r[i]],";")&&u.start<l;)e.tokenChar(59,s++),i++}}function v9(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){var t;let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r)}ra._tsPrintClassMemberModifiers.call(this,e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(Mm._variance.call(this,e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function C9(e){var t;this.printJoin(e.decorators);let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),ra._tsPrintClassMemberModifiers.call(this,e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(Mm._variance.call(this,e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function I9(e){this.printJoin(e.decorators),ra._tsPrintClassMemberModifiers.call(this,e),this.print(e.key),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function w9(e){qu.call(this,e),this.space(),this.print(e.body)}function N9(e){qu.call(this,e),this.space(),this.print(e.body)}function qu(e){if(this.printJoin(e.decorators),!this.format.preserveFormat){var t;let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r)}ra._tsPrintClassMemberModifiers.call(this,e),S9._methodHead.call(this,e)}function O9(e){this.word("static"),this.space(),this.tokenChar(123),e.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(e.body,!0),this.rightBrace(e))}});var Bm=N(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.BlockStatement=D9;Nr.Directive=L9;Nr.DirectiveLiteral=F9;Nr.File=_9;Nr.InterpreterDirective=R9;Nr.Placeholder=j9;Nr.Program=k9;function _9(e){e.program&&this.print(e.program.interpreter),this.print(e.program)}function k9(e){var t;this.printInnerComments(!1);let r=(t=e.directives)==null?void 0:t.length;if(r){var i;let s=e.body.length?2:1;this.printSequence(e.directives,void 0,void 0,s),(i=e.directives[r-1].trailingComments)!=null&&i.length||this.newline(s)}this.printSequence(e.body)}function D9(e){var t;this.tokenChar(123);let r=this.enterDelimited(),i=(t=e.directives)==null?void 0:t.length;if(i){var s;let n=e.body.length?2:1;this.printSequence(e.directives,!0,!0,n),(s=e.directives[i-1].trailingComments)!=null&&s.length||this.newline(n)}this.printSequence(e.body,!0,!0),this._noLineTerminatorAfterNode=r,this.rightBrace(e)}function L9(e){this.print(e.value),this.semicolon()}var M9=/(?:^|[^\\])(?:\\\\)*'/,B9=/(?:^|[^\\])(?:\\\\)*"/;function F9(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let{value:r}=e;if(!B9.test(r))this.token(`"${r}"`);else if(!M9.test(r))this.token(`'${r}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function R9(e){this.token(`#!${e.value}`),this._newline()}function j9(e){this.token("%%"),this.print(e.name),this.token("%%"),e.expectedNode==="Statement"&&this.semicolon()}});var Fm=N(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.JSXAttribute=q9;At.JSXClosingElement=G9;At.JSXClosingFragment=t5;At.JSXElement=W9;At.JSXEmptyExpression=Q9;At.JSXExpressionContainer=J9;At.JSXFragment=Z9;At.JSXIdentifier=U9;At.JSXMemberExpression=V9;At.JSXNamespacedName=K9;At.JSXOpeningElement=z9;At.JSXOpeningFragment=e5;At.JSXSpreadAttribute=$9;At.JSXSpreadChild=X9;At.JSXText=Y9;function q9(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))}function U9(e){this.word(e.name)}function K9(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)}function V9(e){this.print(e.object),this.tokenChar(46),this.print(e.property)}function $9(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)}function J9(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)}function X9(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)}function Y9(e){let t=this.getPossibleRaw(e);t!==void 0?this.token(t,!0):this.token(e.value,!0)}function W9(e){let t=e.openingElement;if(this.print(t),!t.selfClosing){this.indent();for(let r of e.children)this.print(r);this.dedent(),this.print(e.closingElement)}}function H9(){this.space()}function z9(e){this.tokenChar(60),this.print(e.name),e.typeArguments&&this.print(e.typeArguments),this.print(e.typeParameters),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,void 0,void 0,H9)),e.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)}function G9(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)}function Q9(){this.printInnerComments()}function Z9(e){this.print(e.openingFragment),this.indent();for(let t of e.children)this.print(t);this.dedent(),this.print(e.closingFragment)}function e5(){this.tokenChar(60),this.tokenChar(62)}function t5(){this.token("</"),this.tokenChar(62)}});var Rm=N(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});var Uu=wu();Object.keys(Uu).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===Uu[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return Uu[e]}})});var Ku=Jn();Object.keys(Ku).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===Ku[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return Ku[e]}})});var Vu=pm();Object.keys(Vu).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===Vu[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return Vu[e]}})});var $u=Du();Object.keys($u).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===$u[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return $u[e]}})});var Ju=Cs();Object.keys(Ju).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===Ju[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return Ju[e]}})});var Xu=Lu();Object.keys(Xu).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===Xu[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return Xu[e]}})});var Yu=Gn();Object.keys(Yu).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===Yu[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return Yu[e]}})});var Wu=ju();Object.keys(Wu).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===Wu[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return Wu[e]}})});var Hu=Bm();Object.keys(Hu).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===Hu[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return Hu[e]}})});var zu=Fm();Object.keys(zu).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===zu[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return zu[e]}})});var Gu=ku();Object.keys(Gu).forEach(function(e){e==="default"||e==="__esModule"||e in De&&De[e]===Gu[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return Gu[e]}})})});var jm=N(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.DecimalLiteral=s5;Ti.Noop=r5;Ti.RecordExpression=n5;Ti.TSExpressionWithTypeArguments=i5;Ti.TupleExpression=a5;function r5(){}function i5(e){this.print(e.expression),this.print(e.typeParameters)}function s5(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"m")}function n5(e){let t=e.properties,r,i;if(this.format.recordAndTupleSyntaxType==="bar")r="{|",i="|}";else{if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);r="#{",i="}"}this.token(r),t.length&&(this.space(),this.printList(t,this.shouldPrintTrailingComma(i),!0,!0),this.space()),this.token(i)}function a5(e){let t=e.elements,r=t.length,i,s;if(this.format.recordAndTupleSyntaxType==="bar")i="[|",s="|]";else if(this.format.recordAndTupleSyntaxType==="hash")i="#[",s="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(i);for(let n=0;n<t.length;n++){let a=t[n];a&&(n>0&&this.space(),this.print(a),(n<r-1||this.shouldPrintTrailingComma(s))&&this.token(",",!1,n))}this.token(s)}});var Qu=N(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.generatorInfosMap=void 0;var qm=Rm(),Um=jm(),Km=ia.generatorInfosMap=new Map,Vm=0;for(let e of Object.keys(qm).sort())e.startsWith("_")||Km.set(e,[qm[e],Vm++,void 0]);for(let e of Object.keys(Um))Km.set(e,[Um[e],Vm++,void 0])});var Vr=N(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.TokenContext=void 0;Vi.isLastChild=p5;Vi.parentNeedsParens=c5;var $m=om(),o5=ye(),Jm=Qu(),{VISITOR_KEYS:l5}=o5,fre=Vi.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};for(let e of Object.keys($m)){let t=$m[e];Jm.generatorInfosMap.has(e)&&(Jm.generatorInfosMap.get(e)[2]=t)}function u5(e){let t=e;for(;;)switch(t.type){case"CallExpression":case"ImportExpression":case"OptionalCallExpression":case"OptionalMemberExpression":return!0;case"MemberExpression":t=t.object;break;case"TaggedTemplateExpression":t=t.tag;break;case"TSNonNullExpression":t=t.expression;break;default:return!1}}function c5(e,t,r){switch(r){case 112:if(t.callee===e)return u5(e);break;case 42:return!Zu(e)&&!(e.type==="CallExpression"&&Zu(e.callee))&&e.type!=="ParenthesizedExpression"}return!1}function Zu(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&e.property.type==="Identifier"&&Zu(e.object);default:return!1}}function p5(e,t){let r=l5[e.type];for(let i=r.length-1;i>=0;i--){let s=e[r[i]];if(s===t)return!0;if(Array.isArray(s)){let n=s.length-1;for(;n>=0&&s[n]===null;)n--;return n>=0&&s[n]===t}else if(s)return!1}return!1}});var Xm=N(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.TokenMap=void 0;var f5=ye(),{traverseFast:d5,VISITOR_KEYS:h5}=f5,ec=class{constructor(t,r,i){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=r,this._source=i,d5(t,s=>{let n=this._getTokensIndexesOfNode(s);n.length>0&&this._nodesToTokenIndexes.set(s,n)}),this._tokensCache.clear()}has(t){return this._nodesToTokenIndexes.has(t)}getIndexes(t){return this._nodesToTokenIndexes.get(t)}find(t,r){let i=this._nodesToTokenIndexes.get(t);if(i)for(let s=0;s<i.length;s++){let n=i[s],a=this._tokens[n];if(r(a,n))return a}return null}findLastIndex(t,r){let i=this._nodesToTokenIndexes.get(t);if(i)for(let s=i.length-1;s>=0;s--){let n=i[s],a=this._tokens[n];if(r(a,n))return n}return-1}findMatching(t,r,i=0){let s=this._nodesToTokenIndexes.get(t);if(s){typeof r=="number"&&(r=String.fromCharCode(r));let n=0,a=i;if(a>1){let o=this._nodesOccurrencesCountCache.get(t);o?.test===r&&o.count<a&&(n=o.i+1,i-=o.count+1)}for(;n<s.length;n++){let o=this._tokens[s[n]];if(this.matchesOriginal(o,r)){if(i===0)return a>0&&this._nodesOccurrencesCountCache.set(t,{test:r,count:a,i:n}),o;i--}}}return null}matchesOriginal(t,r){return t.end-t.start!==r.length?!1:t.value!=null?t.value===r:this._source.startsWith(r,t.start)}startMatches(t,r){let i=this._nodesToTokenIndexes.get(t);if(!i)return!1;let s=this._tokens[i[0]];return s.start!==t.start?!1:this.matchesOriginal(s,r)}endMatches(t,r){let i=this._nodesToTokenIndexes.get(t);if(!i)return!1;let s=this._tokens[i[i.length-1]];return s.end!==t.end?!1:this.matchesOriginal(s,r)}_getTokensIndexesOfNode(t){var r;if(t.start==null||t.end==null)return[];let{first:i,last:s}=this._findTokensOfNode(t,0,this._tokens.length-1),n=i,a=m5(t);(t.type==="ExportNamedDeclaration"||t.type==="ExportDefaultDeclaration")&&((r=t.declaration)==null?void 0:r.type)==="ClassDeclaration"&&a.next();let o=[];for(let l of a){if(l==null||l.start==null||l.end==null)continue;let u=this._findTokensOfNode(l,n,s),f=u.first;for(let h=n;h<f;h++)o.push(h);n=u.last+1}for(let l=n;l<=s;l++)o.push(l);return o}_findTokensOfNode(t,r,i){let s=this._tokensCache.get(t);if(s)return s;let n=this._findFirstTokenOfNode(t.start,r,i),a=this._findLastTokenOfNode(t.end,n,i);return this._tokensCache.set(t,{first:n,last:a}),{first:n,last:a}}_findFirstTokenOfNode(t,r,i){for(;r<=i;){let s=i+r>>1;if(t<this._tokens[s].start)i=s-1;else if(t>this._tokens[s].start)r=s+1;else return s}return r}_findLastTokenOfNode(t,r,i){for(;r<=i;){let s=i+r>>1;if(t<this._tokens[s].end)i=s-1;else if(t>this._tokens[s].end)r=s+1;else return s}return i}};sa.TokenMap=ec;function*m5(e){if(e.type==="TemplateLiteral"){yield e.quasis[0];for(let r=1;r<e.quasis.length;r++)yield e.expressions[r-1],yield e.quasis[r];return}let t=h5[e.type];for(let r of t){let i=e[r];i&&(Array.isArray(i)?yield*i:yield i)}}});var Hm=N(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.default=void 0;var y5=em(),Jr=Vr(),T5=Qu(),g5=ye(),S5=Xm(),x5=Gn(),{isExpression:b5,isFunction:E5,isStatement:P5,isClassBody:A5,isTSInterfaceBody:v5,isTSEnumMember:C5}=g5,I5=/e/i,w5=/\.0+$/,Wm=/[\n\r\u2028\u2029]/,N5=/[\n\r\u2028\u2029]|\*\//;function Ym(e){return e.type==="CommentLine"||Wm.test(e.value)}var tc=class{constructor(t,r,i=null,s=null){this.tokenContext=Jr.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._currentTypeId=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._lastCommentLine=0,this._innerCommentsState=0,this._flags=0,this.tokenMap=null,this._boundGetRawIdentifier=null,this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=t,this._tokens=i,this._originalCode=s,this._indentRepeat=t.indent.style.length,this._inputMap=r?._inputMap||null,this._buf=new y5.default(r,t.indent.style[0]);let{preserveFormat:n,compact:a,concise:o,retainLines:l,retainFunctionParens:u}=t;n&&(this._flags|=1),a&&(this._flags|=2),o&&(this._flags|=4),l&&(this._flags|=8),u&&(this._flags|=16),(t.auxiliaryCommentBefore||t.auxiliaryCommentAfter)&&(this._flags|=32)}enterDelimited(){let t=this._noLineTerminatorAfterNode;return t!==null&&(this._noLineTerminatorAfterNode=null),t}generate(t){return this.format.preserveFormat&&(this.tokenMap=new S5.TokenMap(t,this._tokens,this._originalCode),this._boundGetRawIdentifier=x5._getRawIdentifier.bind(this)),this.print(t),this._maybeAddAuxComment(),this._buf.get()}indent(t=this._flags){t&7||(this._indent+=this._indentRepeat)}dedent(t=this._flags){t&7||(this._indent-=this._indentRepeat)}semicolon(t=!1){let r=this._flags;if(r&32&&this._maybeAddAuxComment(),r&1){let i=this._currentNode;if(i.start!=null&&i.end!=null){if(!this.tokenMap.endMatches(i,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}let s=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[s[s.length-1]].loc.start)}}t?this._appendChar(59):this._queue(59),this._noLineTerminator=!1}rightBrace(t){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",t.loc,-1),this.tokenChar(125)}rightParens(t){this.sourceWithOffset("end",t.loc,-1),this.tokenChar(41)}space(t=!1){if(!(this._flags&3))if(t)this._space();else{let r=this.getLastChar(!0);r!==0&&r!==32&&r!==10&&this._space()}}word(t,r=!1){this.tokenContext&=Jr.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(t);let i=this._flags;i&32&&this._maybeAddAuxComment(),i&1&&this._catchUpToCurrentToken(t);let s=this.getLastChar();(s===-2||s===-3||s===47&&t.charCodeAt(0)===47)&&this._space(),this._append(t,!1),this.setLastChar(-3),this._noLineTerminator=r}number(t,r){function i(s){if(s.length>2&&s.charCodeAt(0)===48){let n=s.charCodeAt(1);return n===98||n===111||n===120}return!1}this.word(t),Number.isInteger(r)&&!i(t)&&!I5.test(t)&&!w5.test(t)&&t.charCodeAt(t.length-1)!==46&&this.setLastChar(-2)}token(t,r=!1,i=0,s=!1){this.tokenContext&=Jr.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(t,i);let n=this._flags;if(n&32&&this._maybeAddAuxComment(),n&1&&this._catchUpToCurrentToken(t,i),s){let a=t.charCodeAt(0);((a===45&&t==="--"||a===61)&&this.getLastChar()===33||a===43&&this.getLastChar()===43||a===45&&this.getLastChar()===45||a===46&&this.getLastChar()===-2)&&this._space()}this._append(t,r),this._noLineTerminator=!1}tokenChar(t,r=0){this.tokenContext&=Jr.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(t,r);let i=this._flags;i&32&&this._maybeAddAuxComment(),i&1&&this._catchUpToCurrentToken(t,r),(t===43&&this.getLastChar()===43||t===45&&this.getLastChar()===45||t===46&&this.getLastChar()===-2)&&this._space(),this._appendChar(t),this._noLineTerminator=!1}newline(t=1,r=this._flags){if(!(t<=0)&&!(r&10)){if(r&4){this.space();return}t>2&&(t=2),t-=this._buf.getNewlineCount();for(let i=0;i<t;i++)this._newline()}}endsWith(t){return this.getLastChar(!0)===t}getLastChar(t){return this._buf.getLastChar(t)}setLastChar(t){this._buf._last=t}exactSource(t,r){if(!t){r();return}this._catchUp("start",t),this._buf.exactSource(t,r)}source(t,r){r&&(this._catchUp(t,r),this._buf.source(t,r))}sourceWithOffset(t,r,i){!r||this.format.preserveFormat||(this._catchUp(t,r),this._buf.sourceWithOffset(t,r,i))}sourceIdentifierName(t,r){if(!this._buf._canMarkIdName)return;let i=this._buf._sourcePosition;i.identifierNamePos=r,i.identifierName=t}_space(){this._queue(32)}_newline(){this._buf._queuedChar===32&&(this._buf._queuedChar=0),this._appendChar(10,!0)}_catchUpToCurrentToken(t,r=0){let i=this.tokenMap.findMatching(this._currentNode,t,r);i&&this._catchUpTo(i.loc.start),this._printSemicolonBeforeNextToken!==-1&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&this._appendChar(59,!0),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(t,r){this._maybeIndent(),this._buf.append(t,r)}_appendChar(t,r){r||this._maybeIndent(),this._buf.appendChar(t)}_queue(t){this._buf.queue(t),this.setLastChar(-1)}_maybeIndent(){let t=this._shouldIndent();t>0&&this._buf._appendChar(-1,t,!1)}_shouldIndent(){return this.endsWith(10)?this._indent:0}catchUp(t){if(!this.format.retainLines)return;let r=t-this._buf.getCurrentLine();for(let i=0;i<r;i++)this._newline()}_catchUp(t,r){let i=this._flags;if((i&1)===0){i&8&&r!=null&&r[t]&&this.catchUp(r[t].line);return}let s=r?.[t];s!=null&&this._catchUpTo(s)}_catchUpTo({line:t,column:r,index:i}){let s=t-this._buf.getCurrentLine();if(s>0&&this._noLineTerminator)return;for(let a=0;a<s;a++)this._newline();let n=s>0?r:r-this._buf.getCurrentColumn();if(n>0){let a=this._originalCode?this._originalCode.slice(i-n,i).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(n);this._buf.append(a,!1,!0),this._buf.setSourcePosition(t,r),this.setLastChar(32)}}printTerminatorless(t){this._noLineTerminator=!0,this.print(t)}print(t,r=!1,i=!1,s){var n,a;if(!t)return;this._innerCommentsState=0;let{type:o,loc:l,extra:u}=t,f=this._flags,h=!1;t._compact&&(this._flags|=4,h=!0);let x=T5.generatorInfosMap.get(o);if(x===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(o)} with constructor ${JSON.stringify(t.constructor.name)}`);let[A,P,w]=x,b=this._currentNode,C=this._currentTypeId;this._currentNode=t,this._currentTypeId=P,f&1&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);let D;f&32&&(D=this._insideAux,this._insideAux=l==null,this._maybeAddAuxComment(this._insideAux&&!D));let U=0;i&&(U=this.tokenContext,U&Jr.TokenContext.forInOrInitHeadAccumulate?this.tokenContext=0:U=0);let k=u!=null&&u.parenthesized,L=k&&f&1||k&&f&16&&P===71||b&&((0,Jr.parentNeedsParens)(t,b,C)||w!=null&&w(t,b,C,this.tokenContext,f&1?this._boundGetRawIdentifier:void 0));if(!L&&k&&(n=t.leadingComments)!=null&&n.length&&t.leadingComments[0].type==="CommentBlock")switch(C){case 65:case 243:case 6:case 143:break;case 17:case 130:case 112:if(b.callee!==t)break;default:L=!0}let te=!1;!L&&this._noLineTerminator&&((a=t.leadingComments)!=null&&a.some(Ym)||f&8&&l&&l.start.line>this._buf.getCurrentLine())&&(L=!0,te=!0);let Te;if(!L&&(r||(r=!!b&&this._noLineTerminatorAfterNode===b&&(0,Jr.isLastChild)(b,t)),r)){var be;(be=t.trailingComments)!=null&&be.some(Ym)?b5(t)&&(L=!0):(Te=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=t)}L&&(this.tokenChar(40),te&&this.indent(),this._innerCommentsState=0,i||(U=this.tokenContext),U&Jr.TokenContext.forInOrInitHeadAccumulate&&(this.tokenContext=0),Te=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._printLeadingComments(t,b),this.exactSource(P===139||P===66?null:l,A.bind(this,t,b)),L?(this._printTrailingComments(t,b),te&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=r):r&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(t,b)):this._printTrailingComments(t,b,s),U&&(this.tokenContext=U),this._currentNode=b,this._currentTypeId=C,h&&(this._flags=f),f&32&&(this._insideAux=D),Te!=null&&(this._noLineTerminatorAfterNode=Te),this._innerCommentsState=0}_maybeAddAuxComment(t){t&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let t=this.format.auxiliaryCommentBefore;t&&this._printComment({type:"CommentBlock",value:t},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let t=this.format.auxiliaryCommentAfter;t&&this._printComment({type:"CommentBlock",value:t},0)}getPossibleRaw(t){let r=t.extra;if(r?.raw!=null&&r.rawValue!=null&&t.value===r.rawValue)return r.raw}printJoin(t,r,i,s,n,a,o){if(!(t!=null&&t.length))return;let l=this._flags;if(i==null&&l&8){var u;let x=(u=t[0].loc)==null?void 0:u.start.line;x!=null&&x!==this._buf.getCurrentLine()&&(i=!0)}i&&this.indent(l);let f=t.length;for(let x=0;x<f;x++){let A=t[x];if(A&&(r&&x===0&&this._buf.hasContent()&&this.newline(1,l),this.print(A,!1,a,o||0),s!=null&&(x<f-1?s.call(this,x,!1):n&&s.call(this,x,!0)),r))if(x+1===f)this.newline(1,l);else{let P=this._lastCommentLine;if(P>0){var h;let w=(((h=t[x+1].loc)==null?void 0:h.start.line)||0)-P;if(w>=0){this.newline(w||1,l);continue}}this.newline(1,l)}}i&&this.dedent(l)}printAndIndentOnComments(t){let r=t.leadingComments&&t.leadingComments.length>0;r&&this.indent(),this.print(t),r&&this.dedent()}printBlock(t){t.type!=="EmptyStatement"&&this.space(),this.print(t)}_printTrailingComments(t,r,i){let{innerComments:s,trailingComments:n}=t;s!=null&&s.length&&this._printComments(2,s,t,r,i),n!=null&&n.length?this._printComments(2,n,t,r,i):this._lastCommentLine=0}_printLeadingComments(t,r){let i=t.leadingComments;i!=null&&i.length&&this._printComments(0,i,t,r)}_maybePrintInnerComments(t,r){var i;let s=this._innerCommentsState;switch(s&3){case 0:this._innerCommentsState=5;return;case 1:this.printInnerComments((s&4)>0,(i=this.tokenMap)==null?void 0:i.findMatching(this._currentNode,t,r))}}printInnerComments(t=!0,r){let i=this._currentNode,s=i.innerComments;if(!(s!=null&&s.length)){this._innerCommentsState=2;return}let n=this.endsWith(32);switch(t&&this.indent(),this._printComments(1,s,i,void 0,void 0,r)){case 2:this._innerCommentsState=2;case 1:n&&this.space()}t&&this.dedent()}noIndentInnerCommentsHere(){this._innerCommentsState&=-5}printSequence(t,r,i,s){this.printJoin(t,!0,r??!1,void 0,void 0,i,s)}printList(t,r,i,s,n,a){this.printJoin(t,i,s,n??O5,r,a)}shouldPrintTrailingComma(t){if(!this.tokenMap)return null;let r=this.tokenMap.findLastIndex(this._currentNode,i=>this.tokenMap.matchesOriginal(i,typeof t=="number"?String.fromCharCode(t):t));return r<=0?null:this.tokenMap.matchesOriginal(this._tokens[r-1],",")}_shouldPrintComment(t,r){if(t.ignore||this._printedComments.has(t))return 0;if(this._noLineTerminator&&N5.test(t.value))return 2;if(r&&this.tokenMap){let i=this.tokenMap.find(this._currentNode,s=>s.value===t.value);if(i&&i.start>r.start)return 2}return this._printedComments.add(t),this.format.shouldPrintComment(t.value)?1:0}_printComment(t,r){let i=this._noLineTerminator,s=t.type==="CommentBlock",n=s&&r!==1&&!i;switch(n&&this._buf.hasContent()&&r!==2&&this.newline(1),this.getLastChar(!0)){case 47:this._space();case 91:case 123:case 40:break;default:this.space()}let a;if(s){if(a=`/*${t.value}*/`,this.format.indent.adjustMultilineComment){var o;let l=(o=t.loc)==null?void 0:o.start.column;if(l){let u=new RegExp("\\n\\s{1,"+l+"}","g");a=a.replace(u,`
18
18
  `)}if(this._flags&4)a=a.replace(/\n(?!$)/g,`
19
19
  `);else{let u=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent()||this.format.retainLines)&&(u+=this._indent),a=a.replace(/\n(?!$)/g,`
20
- ${" ".repeat(u)}`)}}}else i?a=`/*${t.value}*/`:a=`//${t.value}`;this.source("start",t.loc),this._append(a,s),!s&&!i&&this._newline(),n&&r!==3&&this.newline(1)}_printComments(t,r,i,s,n=0,a){let o=i.loc,l=r.length,u=!!o,f=u?o.start.line:0,h=u?o.end.line:0,g=0,b=0,{_noLineTerminator:E,_flags:w}=this;for(let A=0;A<l;A++){let I=r[A],k=this._shouldPrintComment(I,a);if(k===2)return A===0?0:1;if(u&&I.loc&&k===1){let Y=I.loc.start.line,B=I.loc.end.line;if(t===0){let F=0;if(A===0?this._buf.hasContent()&&(I.type==="CommentLine"||Y!==B)&&(F=b=1):F=Y-g,g=B,F>0&&!E&&this.newline(F,w),this._printComment(I,1),A+1===l){let ae=Math.max(f-g,b);ae>0&&!E&&this.newline(ae,w),g=f}}else if(t===1){let F=Y-(A===0?f:g);if(g=B,F>0&&!E&&this.newline(F,w),this._printComment(I,1),A+1===l){let ae=Math.min(1,h-g);ae>0&&!E&&this.newline(ae,w),g=h}}else{let F=Y-(A===0?h-n:g);g=B,F>0&&!E&&this.newline(F,w),this._printComment(I,1)}}else{if(u=!1,k!==1)continue;if(l===1){let Y=I.loc?I.loc.start.line===I.loc.end.line:!Jm.test(I.value),B=Y&&!T5(i)&&!S5(s)&&!g5(s)&&!x5(i);t===0?this._printComment(I,B&&i.type!=="ObjectExpression"||Y&&y5(s)&&s.body===i?1:0):B&&t===2?this._printComment(I,1):this._printComment(I,0)}else t===1&&!(i.type==="ObjectExpression"&&i.properties.length>1)&&i.type!=="ClassBody"&&i.type!=="TSInterfaceBody"?this._printComment(I,A===0?2:A===l-1?3:0):this._printComment(I,0)}}return t===2&&u&&g&&(this._lastCommentLine=g),2}},ure=na.default=Zu;function A5(e,t){this.tokenChar(44,e),t||this.space()}});var Gm=N(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.default=void 0;Vi.generate=zm;var Ym=Hh(),Wm=Xm();function Hm(e,t,r){var i;if(t.experimental_preserveFormat){if(typeof e!="string")throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!t.retainLines)throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(t.compact&&t.compact!=="auto")throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(t.minified)throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(t.jsescOption)throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(r.tokens))throw new Error("`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.")}let s={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken};s.decoratorsBeforeExport=t.decoratorsBeforeExport,s.jsescOption.json=t.jsonCompatibleStrings,s.recordAndTupleSyntaxType=(i=t.recordAndTupleSyntaxType)!=null?i:"hash",s.importAttributesKeyword=t.importAttributesKeyword,s.minified?(s.compact=!0,s.shouldPrintComment=s.shouldPrintComment||(()=>s.comments)):s.shouldPrintComment=s.shouldPrintComment||(l=>s.comments||l.includes("@license")||l.includes("@preserve")),s.compact==="auto"&&(s.compact=typeof e=="string"&&e.length>5e5,s.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),(s.compact||s.preserveFormat)&&(s.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore:n,auxiliaryCommentAfter:a,shouldPrintComment:o}=s;return n&&!o(n)&&(s.auxiliaryCommentBefore=void 0),a&&!o(a)&&(s.auxiliaryCommentAfter=void 0),s}Vi.CodeGenerator=class{constructor(t,r={},i){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=t,this._format=Hm(i,r,t),this._map=r.sourceMaps?new Ym.default(r,i):null}generate(){return new Wm.default(this._format,this._map).generate(this._ast)}};function zm(e,t={},r){let i=Hm(r,t,e),s=t.sourceMaps?new Ym.default(t,r):null;return new Wm.default(i,s,e.tokens,typeof r=="string"?r:null).generate(e)}var fre=Vi.default=zm});var Qm=N(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.find=w5;zt.findParent=I5;zt.getAncestry=D5;zt.getDeepestCommonAncestorFrom=k5;zt.getEarliestCommonAncestorFrom=_5;zt.getFunctionParent=N5;zt.getStatementParent=O5;zt.inType=F5;zt.isAncestor=L5;zt.isDescendant=M5;var v5=ye(),{VISITOR_KEYS:C5}=v5;function I5(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null}function w5(e){let t=this;do if(e(t))return t;while(t=t.parentPath);return null}function N5(){return this.findParent(e=>e.isFunction())}function O5(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e}function _5(e){return this.getDeepestCommonAncestorFrom(e,function(t,r,i){let s,n=C5[t.type];for(let a of i){let o=a[r+1];if(!s){s=o;continue}if(o.listKey&&s.listKey===o.listKey&&o.key<s.key){s=o;continue}let l=n.indexOf(s.parentKey),u=n.indexOf(o.parentKey);l>u&&(s=o)}return s})}function k5(e,t){if(!e.length)return this;if(e.length===1)return e[0];let r=1/0,i,s,n=e.map(o=>{let l=[];do l.unshift(o);while((o=o.parentPath)&&o!==this);return l.length<r&&(r=l.length),l}),a=n[0];e:for(let o=0;o<r;o++){let l=a[o];for(let u of n)if(u[o]!==l)break e;i=o,s=l}if(s)return t?t(s,i,n):s;throw new Error("Couldn't find intersection")}function D5(){let e=this,t=[];do t.push(e);while(e=e.parentPath);return t}function L5(e){return e.isDescendant(this)}function M5(e){return!!this.findParent(t=>t===e)}function F5(...e){let t=this;for(;t;){if(e.includes(t.node.type))return!0;t=t.parentPath}return!1}});var tc=N(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.createUnionType=U5;var B5=ye(),{createFlowUnionType:Zm,createTSUnionType:ey,createUnionTypeAnnotation:R5,isFlowType:j5,isTSType:q5}=B5;function U5(e){if(e.every(t=>j5(t)))return Zm?Zm(e):R5(e);if(e.every(t=>q5(t))&&ey)return ey(e)}});var ny=N(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.default=X5;var K5=ye(),ry=tc(),{BOOLEAN_NUMBER_BINARY_OPERATORS:V5,createTypeAnnotationBasedOnTypeof:$5,numberTypeAnnotation:iy,voidTypeAnnotation:J5}=K5;function X5(e){if(!this.isReferenced())return;let t=this.scope.getBinding(e.name);if(t)return t.identifier.typeAnnotation?t.identifier.typeAnnotation:Y5(t,this,e.name);if(e.name==="undefined")return J5();if(e.name==="NaN"||e.name==="Infinity")return iy();e.name}function Y5(e,t,r){let i=[],s=[],n=ty(e,t,s),a=sy(e,t,r);if(a){let o=ty(e,a.ifStatement);n=n.filter(l=>!o.includes(l)),i.push(a.typeAnnotation)}if(n.length){n.push(...s);for(let o of n)i.push(o.getTypeAnnotation())}if(i.length)return(0,ry.createUnionType)(i)}function ty(e,t,r){let i=e.constantViolations.slice();return i.unshift(e.path),i.filter(s=>{s=s.resolve();let n=s._guessExecutionStatusRelativeTo(t);return r&&n==="unknown"&&r.push(s),n==="before"})}function W5(e,t){let r=t.node.operator,i=t.get("right").resolve(),s=t.get("left").resolve(),n;if(s.isIdentifier({name:e})?n=i:i.isIdentifier({name:e})&&(n=s),n)return r==="==="?n.getTypeAnnotation():V5.includes(r)?iy():void 0;if(r!=="==="&&r!=="==")return;let a,o;if(s.isUnaryExpression({operator:"typeof"})?(a=s,o=i):i.isUnaryExpression({operator:"typeof"})&&(a=i,o=s),!a||!a.get("argument").isIdentifier({name:e})||(o=o.resolve(),!o.isLiteral()))return;let l=o.node.value;if(typeof l=="string")return $5(l)}function H5(e,t,r){let i;for(;i=t.parentPath;){if(i.isIfStatement()||i.isConditionalExpression())return t.key==="test"?void 0:i;if(i.isFunction()&&(r==null||i.parentPath.scope.getBinding(r)!==e))return;t=i}}function sy(e,t,r){let i=H5(e,t,r);if(!i)return;let n=[i.get("test")],a=[];for(let o=0;o<n.length;o++){let l=n[o];if(l.isLogicalExpression())l.node.operator==="&&"&&(n.push(l.get("left")),n.push(l.get("right")));else if(l.isBinaryExpression()){let u=W5(r,l);u&&a.push(u)}}return a.length?{typeAnnotation:(0,ry.createUnionType)(a),ifStatement:i}:sy(e,i,r)}});var dy=N(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.ArrayExpression=cy;Be.AssignmentExpression=S7;Be.BinaryExpression=d7;Be.BooleanLiteral=E7;Be.CallExpression=_7;Be.ConditionalExpression=m7;Be.ClassDeclaration=Be.ClassExpression=Be.FunctionDeclaration=Be.ArrowFunctionExpression=Be.FunctionExpression=C7;Object.defineProperty(Be,"Identifier",{enumerable:!0,get:function(){return G5.default}});Be.LogicalExpression=h7;Be.NewExpression=c7;Be.NullLiteral=P7;Be.NumericLiteral=b7;Be.ObjectExpression=v7;Be.ParenthesizedExpression=T7;Be.RegExpLiteral=A7;Be.RestElement=py;Be.SequenceExpression=y7;Be.StringLiteral=x7;Be.TSAsExpression=uy;Be.TSNonNullExpression=u7;Be.TaggedTemplateExpression=k7;Be.TemplateLiteral=p7;Be.TypeCastExpression=ly;Be.UnaryExpression=f7;Be.UpdateExpression=g7;Be.VariableDeclarator=l7;var z5=ye(),G5=ny(),oy=tc(),{BOOLEAN_BINARY_OPERATORS:Q5,BOOLEAN_UNARY_OPERATORS:Z5,NUMBER_BINARY_OPERATORS:e7,NUMBER_UNARY_OPERATORS:t7,STRING_UNARY_OPERATORS:r7,anyTypeAnnotation:ay,arrayTypeAnnotation:ic,booleanTypeAnnotation:sc,buildMatchMemberExpression:aa,genericTypeAnnotation:Xr,identifier:Ti,nullLiteralTypeAnnotation:i7,numberTypeAnnotation:$i,stringTypeAnnotation:Si,tupleTypeAnnotation:s7,unionTypeAnnotation:n7,voidTypeAnnotation:a7,isIdentifier:o7}=z5;function l7(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}function ly(e){return e.typeAnnotation}ly.validParent=!0;function uy(e){return e.typeAnnotation}uy.validParent=!0;function u7(){return this.get("expression").getTypeAnnotation()}function c7(e){if(e.callee.type==="Identifier")return Xr(e.callee)}function p7(){return Si()}function f7(e){let t=e.operator;if(t==="void")return a7();if(t7.includes(t))return $i();if(r7.includes(t))return Si();if(Z5.includes(t))return sc()}function d7(e){let t=e.operator;if(e7.includes(t))return $i();if(Q5.includes(t))return sc();if(t==="+"){let r=this.get("right"),i=this.get("left");return i.isBaseType("number")&&r.isBaseType("number")?$i():i.isBaseType("string")||r.isBaseType("string")?Si():n7([Si(),$i()])}}function h7(){let e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,oy.createUnionType)(e)}function m7(){let e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,oy.createUnionType)(e)}function y7(){return this.get("expressions").pop().getTypeAnnotation()}function T7(){return this.get("expression").getTypeAnnotation()}function S7(){return this.get("right").getTypeAnnotation()}function g7(e){let t=e.operator;if(t==="++"||t==="--")return $i()}function x7(){return Si()}function b7(){return $i()}function E7(){return sc()}function P7(){return i7()}function A7(){return Xr(Ti("RegExp"))}function v7(){return Xr(Ti("Object"))}function cy(){return Xr(Ti("Array"))}function py(){return cy()}py.validParent=!0;function C7(){return Xr(Ti("Function"))}var I7=aa("Array.from"),w7=aa("Object.keys"),N7=aa("Object.values"),O7=aa("Object.entries");function _7(){let{callee:e}=this.node;return w7(e)?ic(Si()):I7(e)||N7(e)||o7(e,{name:"Array"})?ic(ay()):O7(e)?ic(s7([Si(),ay()])):fy(this.get("callee"))}function k7(){return fy(this.get("tag"))}function fy(e){if(e=e.resolve(),e.isFunction()){let{node:t}=e;if(t.async)return t.generator?Xr(Ti("AsyncIterator")):Xr(Ti("Promise"));if(t.generator)return Xr(Ti("Iterator"));if(e.node.returnType)return e.node.returnType}}});var Sy=N(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr._getTypeAnnotation=Ty;Yr.baseTypeStrictlyMatches=eq;Yr.couldBeBaseType=Z7;Yr.getTypeAnnotation=G7;Yr.isBaseType=Q7;Yr.isGenericType=tq;var hy=dy(),D7=ye(),{anyTypeAnnotation:yy,isAnyTypeAnnotation:oa,isArrayTypeAnnotation:L7,isBooleanTypeAnnotation:M7,isEmptyTypeAnnotation:F7,isFlowBaseAnnotation:B7,isGenericTypeAnnotation:R7,isIdentifier:my,isMixedTypeAnnotation:j7,isNumberTypeAnnotation:q7,isStringTypeAnnotation:U7,isTSArrayType:K7,isTSTypeAnnotation:V7,isTSTypeReference:$7,isTupleTypeAnnotation:J7,isTypeAnnotation:X7,isUnionTypeAnnotation:Y7,isVoidTypeAnnotation:W7,stringTypeAnnotation:H7,voidTypeAnnotation:z7}=D7;function G7(){let e=this.getData("typeAnnotation");return e!=null||(e=Ty.call(this)||yy(),(X7(e)||V7(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e}var nc=new WeakSet;function Ty(){let e=this.node;if(!e)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){let r=this.parentPath.parentPath,i=r.parentPath;return r.key==="left"&&i.isForInStatement()?H7():r.key==="left"&&i.isForOfStatement()?yy():z7()}else return;if(e.typeAnnotation)return e.typeAnnotation;if(!nc.has(e)){nc.add(e);try{var t;let r=hy[e.type];if(r)return r.call(this,e);if(r=hy[this.parentPath.type],(t=r)!=null&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{nc.delete(e)}}}function Q7(e,t){return ac(e,this.getTypeAnnotation(),t)}function ac(e,t,r){if(e==="string")return U7(t);if(e==="number")return q7(t);if(e==="boolean")return M7(t);if(e==="any")return oa(t);if(e==="mixed")return j7(t);if(e==="empty")return F7(t);if(e==="void")return W7(t);if(r)return!1;throw new Error(`Unknown base type ${e}`)}function Z7(e){let t=this.getTypeAnnotation();if(oa(t))return!0;if(Y7(t)){for(let r of t.types)if(oa(r)||ac(e,r,!0))return!0;return!1}else return ac(e,t,!0)}function eq(e){let t=this.getTypeAnnotation(),r=e.getTypeAnnotation();return!oa(t)&&B7(t)?r.type===t.type:!1}function tq(e){let t=this.getTypeAnnotation();return e==="Array"&&(K7(t)||L7(t)||J7(t))?!0:R7(t)&&my(t.id,{name:e})||$7(t)&&my(t.typeName,{name:e})}});var by=N((gre,oc)=>{var ua=process||{},gy=ua.argv||[],la=ua.env||{},rq=!(la.NO_COLOR||gy.includes("--no-color"))&&(!!la.FORCE_COLOR||gy.includes("--color")||ua.platform==="win32"||(ua.stdout||{}).isTTY&&la.TERM!=="dumb"||!!la.CI),iq=(e,t,r=e)=>i=>{let s=""+i,n=s.indexOf(t,e.length);return~n?e+sq(s,t,r,n)+t:e+s+t},sq=(e,t,r,i)=>{let s="",n=0;do s+=e.substring(n,i)+r,n=i+t.length,i=e.indexOf(t,n);while(~i);return s+e.substring(n)},xy=(e=rq)=>{let t=e?iq:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};oc.exports=xy();oc.exports.createColors=xy});var Ey=N(ca=>{Object.defineProperty(ca,"__esModule",{value:!0});ca.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;ca.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}});var uc=N(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});var lc=by(),Py=Ey(),Ay=ls();function nq(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:lc.isColorSupported}var pa=(e,t)=>r=>e(t(r));function Iy(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:pa(pa(e.white,e.bgRed),e.bold),gutter:e.gray,marker:pa(e.red,e.bold),message:pa(e.red,e.bold),reset:e.reset}}var aq=Iy(lc.createColors(!0)),oq=Iy(lc.createColors(!1));function wy(e){return e?aq:oq}var lq=new Set(["as","async","from","get","of","set"]),uq=/\r\n|[\n\r\u2028\u2029]/,cq=/^[()[\]{}]$/,Ny,pq=/^[a-z][\w-]*$/i,fq=function(e,t,r){if(e.type==="name"){let i=e.value;if(Ay.isKeyword(i)||Ay.isStrictReservedWord(i,!0)||lq.has(i))return"keyword";if(pq.test(i)&&(r[t-1]==="<"||r.slice(t-2,t)==="</"))return"jsxIdentifier";let s=String.fromCodePoint(i.codePointAt(0));if(s!==s.toLowerCase())return"capitalized"}return e.type==="punctuator"&&cq.test(e.value)?"bracket":e.type==="invalid"&&(e.value==="@"||e.value==="#")?"punctuator":e.type};Ny=function*(e){let t;for(;t=Py.default.exec(e);){let r=Py.matchToToken(t);yield{type:fq(r,t.index,e),value:r.value}}};function Oy(e){if(e==="")return"";let t=wy(!0),r="";for(let{type:i,value:s}of Ny(e))i in t?r+=s.split(uq).map(n=>t[i](n)).join(`
21
- `):r+=s;return r}var vy=!1,Cy=/\r\n|[\n\r\u2028\u2029]/;function dq(e,t,r,i){let s=Object.assign({column:0,line:-1},e.start),n=Object.assign({},s,e.end),{linesAbove:a=2,linesBelow:o=3}=r||{},l=s.line-i,u=s.column,f=n.line-i,h=n.column,g=Math.max(l-(a+1),0),b=Math.min(t.length,f+o);l===-1&&(g=0),f===-1&&(b=t.length);let E=f-l,w={};if(E)for(let A=0;A<=E;A++){let I=A+l;if(!u)w[I]=!0;else if(A===0){let k=t[I-1].length;w[I]=[u,k-u+1]}else if(A===E)w[I]=[0,h];else{let k=t[I-A].length;w[I]=[0,k]}}else u===h?u?w[l]=[u,0]:w[l]=!0:w[l]=[u,h-u];return{start:g,end:b,markerLines:w}}function _y(e,t,r={}){let i=r.forceColor||nq()&&r.highlightCode,s=(r.startLine||1)-1,n=wy(i),a=e.split(Cy),{start:o,end:l,markerLines:u}=dq(t,a,r,s),f=t.start&&typeof t.start.column=="number",h=String(l+s).length,b=(i?Oy(e):e).split(Cy,l).slice(o,l).map((E,w)=>{let A=o+1+w,k=` ${` ${A+s}`.slice(-h)} |`,Y=u[A],B=!u[A+1];if(Y){let F="";if(Array.isArray(Y)){let ae=E.slice(0,Math.max(Y[0]-1,0)).replace(/[^\t]/g," "),xe=Y[1]||1;F=[`
22
- `,n.gutter(k.replace(/\d/g," "))," ",ae,n.marker("^").repeat(xe)].join(""),B&&r.message&&(F+=" "+n.message(r.message))}return[n.marker(">"),n.gutter(k),E.length>0?` ${E}`:"",F].join("")}else return` ${n.gutter(k)}${E.length>0?` ${E}`:""}`}).join(`
23
- `);return r.message&&!f&&(b=`${" ".repeat(h+1)}${r.message}
24
- ${b}`),i?n.reset(b):b}function hq(e,t,r,i={}){if(!vy){vy=!0;let n="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(n,"DeprecationWarning");else{let a=new Error(n);a.name="DeprecationWarning",console.warn(new Error(n))}}return r=Math.max(r,0),_y(e,{start:{column:r,line:t}},i)}Os.codeFrameColumns=_y;Os.default=hq;Os.highlight=Oy});var ky=N(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.hooks=void 0;var Ere=fa.hooks=[function(e,t){if(e.key==="test"&&(t.isWhile()||t.isSwitchCase())||e.key==="declaration"&&t.isExportDeclaration()||e.key==="body"&&t.isLabeledStatement()||e.listKey==="declarations"&&t.isVariableDeclaration()&&t.node.declarations.length===1||e.key==="expression"&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&t.node.expressions.length===1)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return e.key==="left"?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&e.key==="consequent"||e.key==="body"&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",directives:[],body:[]}),!0}]});var da=N(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr._assertUnremoved=By;Wr._callRemovalHooks=My;Wr._markRemoved=cc;Wr._remove=Fy;Wr._removeFromScope=Ly;Wr.remove=bq;var mq=ky(),yq=fi(),Tq=pc(),Dy=Or(),Sq=ye(),gq=ha(),xq=Yt();function bq(){var e;if(By.call(this),xq.resync.call(this),My.call(this)){cc.call(this);return}(e=this.opts)!=null&&e.noScope||Ly.call(this),this.shareCommentsWithSiblings(),Fy.call(this),cc.call(this)}function Ly(){let e=Sq.getBindingIdentifiers(this.node,!1,!1,!0);Object.keys(e).forEach(t=>this.scope.removeBinding(t))}function My(){if(this.parentPath){for(let e of mq.hooks)if(e(this,this.parentPath))return!0}}function Fy(){Array.isArray(this.container)?(this.container.splice(this.key,1),gq.updateSiblingKeys.call(this,this.key,-1)):Tq._replaceWith.call(this,null)}function cc(){if(this._traverseFlags|=Dy.SHOULD_SKIP|Dy.REMOVED,this.parent){var e;(e=(0,yq.getCachedPaths)(this))==null||e.delete(this.node)}this.node=null}function By(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}});var jy=N(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.default=void 0;var Ry=ye(),Eq=Ry,{react:Pq}=Ry,{cloneNode:Aq,jsxExpressionContainer:vq,variableDeclaration:Cq,variableDeclarator:Iq}=Eq,wq={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&Pq.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if(e.node.name==="this"){let i=e.scope;do if(i.path.isFunction()&&!i.path.isArrowFunctionExpression())break;while(i=i.parent);i&&t.breakOnScopePaths.push(i.path)}let r=e.scope.getBinding(e.node.name);if(r){for(let i of r.constantViolations)if(i.scope!==r.path.scope){t.mutableBinding=!0,e.stop();return}r===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=r)}}},fc=class{constructor(t,r){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=r,this.path=t,this.attachAfter=!1}isCompatibleScope(t){for(let r of Object.keys(this.bindings)){let i=this.bindings[r];if(!t.bindingIdentifierEquals(r,i.identifier))return!1}return!0}getCompatibleScopes(){let t=this.path.scope;do{if(this.isCompatibleScope(t))this.scopes.push(t);else break;if(this.breakOnScopePaths.includes(t.path))break}while(t=t.parent)}getAttachmentPath(){let t=this._getAttachmentPath();if(!t)return;let r=t.scope;if(r.path===t&&(r=t.scope.parent),r.path.isProgram()||r.path.isFunction())for(let i of Object.keys(this.bindings)){if(!r.hasOwnBinding(i))continue;let s=this.bindings[i];if(s.kind==="param"||s.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(s.path).key>=t.key){this.attachAfter=!0,t=s.path;for(let a of s.constantViolations)this.getAttachmentParentForPath(a).key>t.key&&(t=a)}}return t}_getAttachmentPath(){let r=this.scopes.pop();if(r){if(r.path.isFunction())if(this.hasOwnParamBindings(r)){if(this.scope===r)return;let i=r.path.get("body").get("body");for(let s=0;s<i.length;s++)if(!i[s].node._blockHoist)return i[s]}else return this.getNextScopeAttachmentParent();else if(r.path.isProgram())return this.getNextScopeAttachmentParent()}}getNextScopeAttachmentParent(){let t=this.scopes.pop();if(t)return this.getAttachmentParentForPath(t.path)}getAttachmentParentForPath(t){do if(!t.parentPath||Array.isArray(t.container)&&t.isStatement())return t;while(t=t.parentPath);return t}hasOwnParamBindings(t){for(let r of Object.keys(this.bindings)){if(!t.hasOwnBinding(r))continue;let i=this.bindings[r];if(i.kind==="param"&&i.constant)return!0}return!1}run(){if(this.path.traverse(wq,this),this.mutableBinding)return;this.getCompatibleScopes();let t=this.getAttachmentPath();if(!t||t.getFunctionParent()===this.path.getFunctionParent())return;let r=t.scope.generateUidIdentifier("ref"),i=Iq(r,this.path.node),s=this.attachAfter?"insertAfter":"insertBefore",[n]=t[s]([t.isVariableDeclarator()?i:Cq("var",[i])]),a=this.path.parentPath;return a.isJSXElement()&&this.path.container===a.node.children&&(r=vq(r)),this.path.replaceWith(Aq(r)),n.isVariableDeclarator()?n.get("init"):n.get("declarations.0.init")}};ma.default=fc});var ha=N(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt._containerInsert=Tc;Gt._containerInsertAfter=Ky;Gt._containerInsertBefore=Sc;Gt._verifyNodeList=_s;Gt.insertAfter=Jq;Gt.insertBefore=Vq;Gt.pushContainer=Yq;Gt.unshiftContainer=Xq;Gt.updateSiblingKeys=Jy;var Nq=fi(),yc=Or(),dc=Yt(),ya=da(),Oq=ye(),_q=jy(),{arrowFunctionExpression:kq,assertExpression:Dq,assignmentExpression:Lq,blockStatement:qy,callExpression:Mq,cloneNode:hc,expressionStatement:mc,isAssignmentExpression:Fq,isCallExpression:Bq,isExportNamedDeclaration:Uy,isExpression:Rq,isIdentifier:jq,isSequenceExpression:qq,isSuper:Uq,thisExpression:Kq}=Oq;function Vq(e){ya._assertUnremoved.call(this);let t=_s.call(this,e),{parentPath:r,parent:i}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||Uy(i)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&this.key==="init")return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return Sc.call(this,t);if(this.isStatementOrBlock()){let s=this.node,n=s&&(!this.isExpressionStatement()||s.expression!=null),[a]=this.replaceWith(qy(n?[s]:[]));return a.unshiftContainer("body",t)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function Tc(e,t){Jy.call(this,e,t.length);let r=[];this.container.splice(e,0,...t);for(let n=0;n<t.length;n++){var i;let a=e+n,o=this.getSibling(a);r.push(o),(i=this.context)!=null&&i.queue&&dc.pushContext.call(o,this.context)}let s=dc._getQueueContexts.call(this);for(let n of r){dc.setScope.call(n),n.debug("Inserted.");for(let a of s)a.maybeQueue(n,!0)}return r}function Sc(e){return Tc.call(this,this.key,e)}function Ky(e){return Tc.call(this,this.key+1,e)}var Vy=e=>e[e.length-1];function $y(e){return qq(e.parent)&&(Vy(e.parent.expressions)!==e.node||$y(e.parentPath))}function $q(e,t){if(!Fq(e)||!jq(e.left))return!1;let r=t.getBlockParent();return r.hasOwnBinding(e.left.name)&&r.getOwnBinding(e.left.name).constantViolations.length<=1}function Jq(e){if(ya._assertUnremoved.call(this),this.isSequenceExpression())return Vy(this.get("expressions")).insertAfter(e);let t=_s.call(this,e),{parentPath:r,parent:i}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||Uy(i)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertAfter(t.map(s=>Rq(s)?mc(s):s));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&this.key==="init"){let s=this;if(s.node){let n=s.node,{scope:a}=this;if(a.path.isPattern())return Dq(n),s.replaceWith(Mq(kq([],n),[])),s.get("callee.body").insertAfter(t),[s];if($y(s))t.unshift(n);else if(Bq(n)&&Uq(n.callee))t.unshift(n),t.push(Kq());else if($q(n,a))t.unshift(n),t.push(hc(n.left));else if(a.isPure(n,!0))t.push(n);else{r.isMethod({computed:!0,key:n})&&(a=a.parent);let o=a.generateDeclaredUidIdentifier();t.unshift(mc(Lq("=",hc(o),n))),t.push(mc(hc(o)))}}return this.replaceExpressionWithStatements(t)}else{if(Array.isArray(this.container))return Ky.call(this,t);if(this.isStatementOrBlock()){let s=this.node,n=s&&(!this.isExpressionStatement()||s.expression!=null),[a]=this.replaceWith(qy(n?[s]:[]));return a.pushContainer("body",t)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}}function Jy(e,t){if(!this.parent)return;let r=(0,Nq.getCachedPaths)(this);if(r)for(let[,i]of r)typeof i.key=="number"&&i.container===this.container&&i.key>=e&&(i.key+=t)}function _s(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){let r=e[t],i;if(r?typeof r!="object"?i="contains a non-object node":r.type?r instanceof yc.default&&(i="has a NodePath when it expected a raw object"):i="without a type":i="has falsy node",i){let s=Array.isArray(r)?"array":typeof r;throw new Error(`Node list ${i} with the index of ${t} and type of ${s}`)}}return e}function Xq(e,t){ya._assertUnremoved.call(this);let r=_s.call(this,t),i=this.node[e],s=yc.default.get({parentPath:this,parent:this.node,container:i,listKey:e,key:0}).setContext(this.context);return Sc.call(s,r)}function Yq(e,t){ya._assertUnremoved.call(this);let r=_s.call(this,t),i=this.node[e];return yc.default.get({parentPath:this,parent:this.node,container:i,listKey:e,key:i.length}).setContext(this.context).replaceWithMultiple(r)}Gt.hoist=function(t=this.scope){return new _q.default(this,t).run()}});var Ca=N(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});function Wq(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}var Sr=class{constructor(t,r,i){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=r,this.index=i}},Wi=class{constructor(t,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r}};function kt(e,t){let{line:r,column:i,index:s}=e;return new Sr(r,i+t,s+t)}var Xy="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",Hq={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Xy},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Xy}},Yy={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},ga=e=>e.type==="UpdateExpression"?Yy.UpdateExpression[`${e.prefix}`]:Yy[e.type],zq={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
20
+ ${" ".repeat(u)}`)}}}else i?a=`/*${t.value}*/`:a=`//${t.value}`;this.source("start",t.loc),this._append(a,s),!s&&!i&&this._newline(),n&&r!==3&&this.newline(1)}_printComments(t,r,i,s,n=0,a){let o=i.loc,l=r.length,u=!!o,f=u?o.start.line:0,h=u?o.end.line:0,x=0,A=0,{_noLineTerminator:P,_flags:w}=this;for(let b=0;b<l;b++){let C=r[b],D=this._shouldPrintComment(C,a);if(D===2)return b===0?0:1;if(u&&C.loc&&D===1){let U=C.loc.start.line,k=C.loc.end.line;if(t===0){let L=0;if(b===0?this._buf.hasContent()&&(C.type==="CommentLine"||U!==k)&&(L=A=1):L=U-x,x=k,L>0&&!P&&this.newline(L,w),this._printComment(C,1),b+1===l){let te=Math.max(f-x,A);te>0&&!P&&this.newline(te,w),x=f}}else if(t===1){let L=U-(b===0?f:x);if(x=k,L>0&&!P&&this.newline(L,w),this._printComment(C,1),b+1===l){let te=Math.min(1,h-x);te>0&&!P&&this.newline(te,w),x=h}}else{let L=U-(b===0?h-n:x);x=k,L>0&&!P&&this.newline(L,w),this._printComment(C,1)}}else{if(u=!1,D!==1)continue;if(l===1){let U=C.loc?C.loc.start.line===C.loc.end.line:!Wm.test(C.value),k=U&&!P5(i)&&!A5(s)&&!v5(s)&&!C5(i);t===0?this._printComment(C,k&&i.type!=="ObjectExpression"||U&&E5(s)&&s.body===i?1:0):k&&t===2?this._printComment(C,1):this._printComment(C,0)}else t===1&&!(i.type==="ObjectExpression"&&i.properties.length>1)&&i.type!=="ClassBody"&&i.type!=="TSInterfaceBody"?this._printComment(C,b===0?2:b===l-1?3:0):this._printComment(C,0)}}return t===2&&u&&x&&(this._lastCommentLine=x),2}},mre=na.default=tc;function O5(e,t){this.tokenChar(44,e),t||this.space()}});var ey=N($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.default=void 0;$i.generate=Zm;var zm=Qh(),Gm=Hm();function Qm(e,t,r){var i;if(t.experimental_preserveFormat){if(typeof e!="string")throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!t.retainLines)throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(t.compact&&t.compact!=="auto")throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(t.minified)throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(t.jsescOption)throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(r.tokens))throw new Error("`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.")}let s={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken};s.decoratorsBeforeExport=t.decoratorsBeforeExport,s.jsescOption.json=t.jsonCompatibleStrings,s.recordAndTupleSyntaxType=(i=t.recordAndTupleSyntaxType)!=null?i:"hash",s.importAttributesKeyword=t.importAttributesKeyword,s.minified?(s.compact=!0,s.shouldPrintComment=s.shouldPrintComment||(()=>s.comments)):s.shouldPrintComment=s.shouldPrintComment||(l=>s.comments||l.includes("@license")||l.includes("@preserve")),s.compact==="auto"&&(s.compact=typeof e=="string"&&e.length>5e5,s.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),(s.compact||s.preserveFormat)&&(s.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore:n,auxiliaryCommentAfter:a,shouldPrintComment:o}=s;return n&&!o(n)&&(s.auxiliaryCommentBefore=void 0),a&&!o(a)&&(s.auxiliaryCommentAfter=void 0),s}$i.CodeGenerator=class{constructor(t,r={},i){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=t,this._format=Qm(i,r,t),this._map=r.sourceMaps?new zm.default(r,i):null}generate(){return new Gm.default(this._format,this._map).generate(this._ast)}};function Zm(e,t={},r){let i=Qm(r,t,e),s=t.sourceMaps?new zm.default(t,r):null;return new Gm.default(i,s,e.tokens,typeof r=="string"?r:null).generate(e)}var gre=$i.default=Zm});var ty=N(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.find=L5;zt.findParent=D5;zt.getAncestry=j5;zt.getDeepestCommonAncestorFrom=R5;zt.getEarliestCommonAncestorFrom=F5;zt.getFunctionParent=M5;zt.getStatementParent=B5;zt.inType=K5;zt.isAncestor=q5;zt.isDescendant=U5;var _5=ye(),{VISITOR_KEYS:k5}=_5;function D5(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null}function L5(e){let t=this;do if(e(t))return t;while(t=t.parentPath);return null}function M5(){return this.findParent(e=>e.isFunction())}function B5(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e}function F5(e){return this.getDeepestCommonAncestorFrom(e,function(t,r,i){let s,n=k5[t.type];for(let a of i){let o=a[r+1];if(!s){s=o;continue}if(o.listKey&&s.listKey===o.listKey&&o.key<s.key){s=o;continue}let l=n.indexOf(s.parentKey),u=n.indexOf(o.parentKey);l>u&&(s=o)}return s})}function R5(e,t){if(!e.length)return this;if(e.length===1)return e[0];let r=1/0,i,s,n=e.map(o=>{let l=[];do l.unshift(o);while((o=o.parentPath)&&o!==this);return l.length<r&&(r=l.length),l}),a=n[0];e:for(let o=0;o<r;o++){let l=a[o];for(let u of n)if(u[o]!==l)break e;i=o,s=l}if(s)return t?t(s,i,n):s;throw new Error("Couldn't find intersection")}function j5(){let e=this,t=[];do t.push(e);while(e=e.parentPath);return t}function q5(e){return e.isDescendant(this)}function U5(e){return!!this.findParent(t=>t===e)}function K5(...e){let t=this;for(;t;){if(e.includes(t.node.type))return!0;t=t.parentPath}return!1}});var ic=N(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.createUnionType=Y5;var V5=ye(),{createFlowUnionType:ry,createTSUnionType:iy,createUnionTypeAnnotation:$5,isFlowType:J5,isTSType:X5}=V5;function Y5(e){if(e.every(t=>J5(t)))return ry?ry(e):$5(e);if(e.every(t=>X5(t))&&iy)return iy(e)}});var ly=N(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.default=Q5;var W5=ye(),ny=ic(),{BOOLEAN_NUMBER_BINARY_OPERATORS:H5,createTypeAnnotationBasedOnTypeof:z5,numberTypeAnnotation:ay,voidTypeAnnotation:G5}=W5;function Q5(e){if(!this.isReferenced())return;let t=this.scope.getBinding(e.name);if(t)return t.identifier.typeAnnotation?t.identifier.typeAnnotation:Z5(t,this,e.name);if(e.name==="undefined")return G5();if(e.name==="NaN"||e.name==="Infinity")return ay();e.name}function Z5(e,t,r){let i=[],s=[],n=sy(e,t,s),a=oy(e,t,r);if(a){let o=sy(e,a.ifStatement);n=n.filter(l=>!o.includes(l)),i.push(a.typeAnnotation)}if(n.length){n.push(...s);for(let o of n)i.push(o.getTypeAnnotation())}if(i.length)return(0,ny.createUnionType)(i)}function sy(e,t,r){let i=e.constantViolations.slice();return i.unshift(e.path),i.filter(s=>{s=s.resolve();let n=s._guessExecutionStatusRelativeTo(t);return r&&n==="unknown"&&r.push(s),n==="before"})}function e7(e,t){let r=t.node.operator,i=t.get("right").resolve(),s=t.get("left").resolve(),n;if(s.isIdentifier({name:e})?n=i:i.isIdentifier({name:e})&&(n=s),n)return r==="==="?n.getTypeAnnotation():H5.includes(r)?ay():void 0;if(r!=="==="&&r!=="==")return;let a,o;if(s.isUnaryExpression({operator:"typeof"})?(a=s,o=i):i.isUnaryExpression({operator:"typeof"})&&(a=i,o=s),!a||!a.get("argument").isIdentifier({name:e})||(o=o.resolve(),!o.isLiteral()))return;let l=o.node.value;if(typeof l=="string")return z5(l)}function t7(e,t,r){let i;for(;i=t.parentPath;){if(i.isIfStatement()||i.isConditionalExpression())return t.key==="test"?void 0:i;if(i.isFunction()&&(r==null||i.parentPath.scope.getBinding(r)!==e))return;t=i}}function oy(e,t,r){let i=t7(e,t,r);if(!i)return;let n=[i.get("test")],a=[];for(let o=0;o<n.length;o++){let l=n[o];if(l.isLogicalExpression())l.node.operator==="&&"&&(n.push(l.get("left")),n.push(l.get("right")));else if(l.isBinaryExpression()){let u=e7(r,l);u&&a.push(u)}}return a.length?{typeAnnotation:(0,ny.createUnionType)(a),ifStatement:i}:oy(e,i,r)}});var yy=N(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.ArrayExpression=dy;Fe.AssignmentExpression=A7;Fe.BinaryExpression=S7;Fe.BooleanLiteral=w7;Fe.CallExpression=F7;Fe.ConditionalExpression=b7;Fe.ClassDeclaration=Fe.ClassExpression=Fe.FunctionDeclaration=Fe.ArrowFunctionExpression=Fe.FunctionExpression=k7;Object.defineProperty(Fe,"Identifier",{enumerable:!0,get:function(){return i7.default}});Fe.LogicalExpression=x7;Fe.NewExpression=y7;Fe.NullLiteral=N7;Fe.NumericLiteral=I7;Fe.ObjectExpression=_7;Fe.ParenthesizedExpression=P7;Fe.RegExpLiteral=O7;Fe.RestElement=hy;Fe.SequenceExpression=E7;Fe.StringLiteral=C7;Fe.TSAsExpression=fy;Fe.TSNonNullExpression=m7;Fe.TaggedTemplateExpression=R7;Fe.TemplateLiteral=T7;Fe.TypeCastExpression=py;Fe.UnaryExpression=g7;Fe.UpdateExpression=v7;Fe.VariableDeclarator=h7;var r7=ye(),i7=ly(),cy=ic(),{BOOLEAN_BINARY_OPERATORS:s7,BOOLEAN_UNARY_OPERATORS:n7,NUMBER_BINARY_OPERATORS:a7,NUMBER_UNARY_OPERATORS:o7,STRING_UNARY_OPERATORS:l7,anyTypeAnnotation:uy,arrayTypeAnnotation:nc,booleanTypeAnnotation:ac,buildMatchMemberExpression:aa,genericTypeAnnotation:Xr,identifier:gi,nullLiteralTypeAnnotation:u7,numberTypeAnnotation:Ji,stringTypeAnnotation:Si,tupleTypeAnnotation:c7,unionTypeAnnotation:p7,voidTypeAnnotation:f7,isIdentifier:d7}=r7;function h7(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}function py(e){return e.typeAnnotation}py.validParent=!0;function fy(e){return e.typeAnnotation}fy.validParent=!0;function m7(){return this.get("expression").getTypeAnnotation()}function y7(e){if(e.callee.type==="Identifier")return Xr(e.callee)}function T7(){return Si()}function g7(e){let t=e.operator;if(t==="void")return f7();if(o7.includes(t))return Ji();if(l7.includes(t))return Si();if(n7.includes(t))return ac()}function S7(e){let t=e.operator;if(a7.includes(t))return Ji();if(s7.includes(t))return ac();if(t==="+"){let r=this.get("right"),i=this.get("left");return i.isBaseType("number")&&r.isBaseType("number")?Ji():i.isBaseType("string")||r.isBaseType("string")?Si():p7([Si(),Ji()])}}function x7(){let e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,cy.createUnionType)(e)}function b7(){let e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,cy.createUnionType)(e)}function E7(){return this.get("expressions").pop().getTypeAnnotation()}function P7(){return this.get("expression").getTypeAnnotation()}function A7(){return this.get("right").getTypeAnnotation()}function v7(e){let t=e.operator;if(t==="++"||t==="--")return Ji()}function C7(){return Si()}function I7(){return Ji()}function w7(){return ac()}function N7(){return u7()}function O7(){return Xr(gi("RegExp"))}function _7(){return Xr(gi("Object"))}function dy(){return Xr(gi("Array"))}function hy(){return dy()}hy.validParent=!0;function k7(){return Xr(gi("Function"))}var D7=aa("Array.from"),L7=aa("Object.keys"),M7=aa("Object.values"),B7=aa("Object.entries");function F7(){let{callee:e}=this.node;return L7(e)?nc(Si()):D7(e)||M7(e)||d7(e,{name:"Array"})?nc(uy()):B7(e)?nc(c7([Si(),uy()])):my(this.get("callee"))}function R7(){return my(this.get("tag"))}function my(e){if(e=e.resolve(),e.isFunction()){let{node:t}=e;if(t.async)return t.generator?Xr(gi("AsyncIterator")):Xr(gi("Promise"));if(t.generator)return Xr(gi("Iterator"));if(e.node.returnType)return e.node.returnType}}});var by=N(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr._getTypeAnnotation=xy;Yr.baseTypeStrictlyMatches=aq;Yr.couldBeBaseType=nq;Yr.getTypeAnnotation=iq;Yr.isBaseType=sq;Yr.isGenericType=oq;var Ty=yy(),j7=ye(),{anyTypeAnnotation:Sy,isAnyTypeAnnotation:oa,isArrayTypeAnnotation:q7,isBooleanTypeAnnotation:U7,isEmptyTypeAnnotation:K7,isFlowBaseAnnotation:V7,isGenericTypeAnnotation:$7,isIdentifier:gy,isMixedTypeAnnotation:J7,isNumberTypeAnnotation:X7,isStringTypeAnnotation:Y7,isTSArrayType:W7,isTSTypeAnnotation:H7,isTSTypeReference:z7,isTupleTypeAnnotation:G7,isTypeAnnotation:Q7,isUnionTypeAnnotation:Z7,isVoidTypeAnnotation:eq,stringTypeAnnotation:tq,voidTypeAnnotation:rq}=j7;function iq(){let e=this.getData("typeAnnotation");return e!=null||(e=xy.call(this)||Sy(),(Q7(e)||H7(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e}var oc=new WeakSet;function xy(){let e=this.node;if(!e)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){let r=this.parentPath.parentPath,i=r.parentPath;return r.key==="left"&&i.isForInStatement()?tq():r.key==="left"&&i.isForOfStatement()?Sy():rq()}else return;if(e.typeAnnotation)return e.typeAnnotation;if(!oc.has(e)){oc.add(e);try{var t;let r=Ty[e.type];if(r)return r.call(this,e);if(r=Ty[this.parentPath.type],(t=r)!=null&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{oc.delete(e)}}}function sq(e,t){return lc(e,this.getTypeAnnotation(),t)}function lc(e,t,r){if(e==="string")return Y7(t);if(e==="number")return X7(t);if(e==="boolean")return U7(t);if(e==="any")return oa(t);if(e==="mixed")return J7(t);if(e==="empty")return K7(t);if(e==="void")return eq(t);if(r)return!1;throw new Error(`Unknown base type ${e}`)}function nq(e){let t=this.getTypeAnnotation();if(oa(t))return!0;if(Z7(t)){for(let r of t.types)if(oa(r)||lc(e,r,!0))return!0;return!1}else return lc(e,t,!0)}function aq(e){let t=this.getTypeAnnotation(),r=e.getTypeAnnotation();return!oa(t)&&V7(t)?r.type===t.type:!1}function oq(e){let t=this.getTypeAnnotation();return e==="Array"&&(W7(t)||q7(t)||G7(t))?!0:$7(t)&&gy(t.id,{name:e})||z7(t)&&gy(t.typeName,{name:e})}});var Ay=N((vre,uc)=>{var ua=process||{},Ey=ua.argv||[],la=ua.env||{},lq=!(la.NO_COLOR||Ey.includes("--no-color"))&&(!!la.FORCE_COLOR||Ey.includes("--color")||ua.platform==="win32"||(ua.stdout||{}).isTTY&&la.TERM!=="dumb"||!!la.CI),uq=(e,t,r=e)=>i=>{let s=""+i,n=s.indexOf(t,e.length);return~n?e+cq(s,t,r,n)+t:e+s+t},cq=(e,t,r,i)=>{let s="",n=0;do s+=e.substring(n,i)+r,n=i+t.length,i=e.indexOf(t,n);while(~i);return s+e.substring(n)},Py=(e=lq)=>{let t=e?uq:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};uc.exports=Py();uc.exports.createColors=Py});var vy=N(ca=>{Object.defineProperty(ca,"__esModule",{value:!0});ca.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;ca.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}});var pc=N(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});var cc=Ay(),Cy=vy(),Iy=us();function pq(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:cc.isColorSupported}var pa=(e,t)=>r=>e(t(r));function Oy(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:pa(pa(e.white,e.bgRed),e.bold),gutter:e.gray,marker:pa(e.red,e.bold),message:pa(e.red,e.bold),reset:e.reset}}var fq=Oy(cc.createColors(!0)),dq=Oy(cc.createColors(!1));function _y(e){return e?fq:dq}var hq=new Set(["as","async","from","get","of","set"]),mq=/\r\n|[\n\r\u2028\u2029]/,yq=/^[()[\]{}]$/,ky,Tq=/^[a-z][\w-]*$/i,gq=function(e,t,r){if(e.type==="name"){let i=e.value;if(Iy.isKeyword(i)||Iy.isStrictReservedWord(i,!0)||hq.has(i))return"keyword";if(Tq.test(i)&&(r[t-1]==="<"||r.slice(t-2,t)==="</"))return"jsxIdentifier";let s=String.fromCodePoint(i.codePointAt(0));if(s!==s.toLowerCase())return"capitalized"}return e.type==="punctuator"&&yq.test(e.value)?"bracket":e.type==="invalid"&&(e.value==="@"||e.value==="#")?"punctuator":e.type};ky=function*(e){let t;for(;t=Cy.default.exec(e);){let r=Cy.matchToToken(t);yield{type:gq(r,t.index,e),value:r.value}}};function Dy(e){if(e==="")return"";let t=_y(!0),r="";for(let{type:i,value:s}of ky(e))i in t?r+=s.split(mq).map(n=>t[i](n)).join(`
21
+ `):r+=s;return r}var wy=!1,Ny=/\r\n|[\n\r\u2028\u2029]/;function Sq(e,t,r,i){let s=Object.assign({column:0,line:-1},e.start),n=Object.assign({},s,e.end),{linesAbove:a=2,linesBelow:o=3}=r||{},l=s.line-i,u=s.column,f=n.line-i,h=n.column,x=Math.max(l-(a+1),0),A=Math.min(t.length,f+o);l===-1&&(x=0),f===-1&&(A=t.length);let P=f-l,w={};if(P)for(let b=0;b<=P;b++){let C=b+l;if(!u)w[C]=!0;else if(b===0){let D=t[C-1].length;w[C]=[u,D-u+1]}else if(b===P)w[C]=[0,h];else{let D=t[C-b].length;w[C]=[0,D]}}else u===h?u?w[l]=[u,0]:w[l]=!0:w[l]=[u,h-u];return{start:x,end:A,markerLines:w}}function Ly(e,t,r={}){let i=r.forceColor||pq()&&r.highlightCode,s=(r.startLine||1)-1,n=_y(i),a=e.split(Ny),{start:o,end:l,markerLines:u}=Sq(t,a,r,s),f=t.start&&typeof t.start.column=="number",h=String(l+s).length,A=(i?Dy(e):e).split(Ny,l).slice(o,l).map((P,w)=>{let b=o+1+w,D=` ${` ${b+s}`.slice(-h)} |`,U=u[b],k=!u[b+1];if(U){let L="";if(Array.isArray(U)){let te=P.slice(0,Math.max(U[0]-1,0)).replace(/[^\t]/g," "),Te=U[1]||1;L=[`
22
+ `,n.gutter(D.replace(/\d/g," "))," ",te,n.marker("^").repeat(Te)].join(""),k&&r.message&&(L+=" "+n.message(r.message))}return[n.marker(">"),n.gutter(D),P.length>0?` ${P}`:"",L].join("")}else return` ${n.gutter(D)}${P.length>0?` ${P}`:""}`}).join(`
23
+ `);return r.message&&!f&&(A=`${" ".repeat(h+1)}${r.message}
24
+ ${A}`),i?n.reset(A):A}function xq(e,t,r,i={}){if(!wy){wy=!0;let n="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(n,"DeprecationWarning");else{let a=new Error(n);a.name="DeprecationWarning",console.warn(new Error(n))}}return r=Math.max(r,0),Ly(e,{start:{column:r,line:t}},i)}_s.codeFrameColumns=Ly;_s.default=xq;_s.highlight=Dy});var My=N(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.hooks=void 0;var wre=fa.hooks=[function(e,t){if(e.key==="test"&&(t.isWhile()||t.isSwitchCase())||e.key==="declaration"&&t.isExportDeclaration()||e.key==="body"&&t.isLabeledStatement()||e.listKey==="declarations"&&t.isVariableDeclaration()&&t.node.declarations.length===1||e.key==="expression"&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&t.node.expressions.length===1)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return e.key==="left"?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&e.key==="consequent"||e.key==="body"&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",directives:[],body:[]}),!0}]});var da=N(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr._assertUnremoved=qy;Wr._callRemovalHooks=Ry;Wr._markRemoved=fc;Wr._remove=jy;Wr._removeFromScope=Fy;Wr.remove=Iq;var bq=My(),Eq=di(),Pq=dc(),By=Or(),Aq=ye(),vq=ha(),Cq=Yt();function Iq(){var e;if(qy.call(this),Cq.resync.call(this),Ry.call(this)){fc.call(this);return}(e=this.opts)!=null&&e.noScope||Fy.call(this),this.shareCommentsWithSiblings(),jy.call(this),fc.call(this)}function Fy(){let e=Aq.getBindingIdentifiers(this.node,!1,!1,!0);Object.keys(e).forEach(t=>this.scope.removeBinding(t))}function Ry(){if(this.parentPath){for(let e of bq.hooks)if(e(this,this.parentPath))return!0}}function jy(){Array.isArray(this.container)?(this.container.splice(this.key,1),vq.updateSiblingKeys.call(this,this.key,-1)):Pq._replaceWith.call(this,null)}function fc(){if(this._traverseFlags|=By.SHOULD_SKIP|By.REMOVED,this.parent){var e;(e=(0,Eq.getCachedPaths)(this))==null||e.delete(this.node)}this.node=null}function qy(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}});var Ky=N(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.default=void 0;var Uy=ye(),wq=Uy,{react:Nq}=Uy,{cloneNode:Oq,jsxExpressionContainer:_q,variableDeclaration:kq,variableDeclarator:Dq}=wq,Lq={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&Nq.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if(e.node.name==="this"){let i=e.scope;do if(i.path.isFunction()&&!i.path.isArrowFunctionExpression())break;while(i=i.parent);i&&t.breakOnScopePaths.push(i.path)}let r=e.scope.getBinding(e.node.name);if(r){for(let i of r.constantViolations)if(i.scope!==r.path.scope){t.mutableBinding=!0,e.stop();return}r===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=r)}}},hc=class{constructor(t,r){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=r,this.path=t,this.attachAfter=!1}isCompatibleScope(t){for(let r of Object.keys(this.bindings)){let i=this.bindings[r];if(!t.bindingIdentifierEquals(r,i.identifier))return!1}return!0}getCompatibleScopes(){let t=this.path.scope;do{if(this.isCompatibleScope(t))this.scopes.push(t);else break;if(this.breakOnScopePaths.includes(t.path))break}while(t=t.parent)}getAttachmentPath(){let t=this._getAttachmentPath();if(!t)return;let r=t.scope;if(r.path===t&&(r=t.scope.parent),r.path.isProgram()||r.path.isFunction())for(let i of Object.keys(this.bindings)){if(!r.hasOwnBinding(i))continue;let s=this.bindings[i];if(s.kind==="param"||s.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(s.path).key>=t.key){this.attachAfter=!0,t=s.path;for(let a of s.constantViolations)this.getAttachmentParentForPath(a).key>t.key&&(t=a)}}return t}_getAttachmentPath(){let r=this.scopes.pop();if(r){if(r.path.isFunction())if(this.hasOwnParamBindings(r)){if(this.scope===r)return;let i=r.path.get("body").get("body");for(let s=0;s<i.length;s++)if(!i[s].node._blockHoist)return i[s]}else return this.getNextScopeAttachmentParent();else if(r.path.isProgram())return this.getNextScopeAttachmentParent()}}getNextScopeAttachmentParent(){let t=this.scopes.pop();if(t)return this.getAttachmentParentForPath(t.path)}getAttachmentParentForPath(t){do if(!t.parentPath||Array.isArray(t.container)&&t.isStatement())return t;while(t=t.parentPath);return t}hasOwnParamBindings(t){for(let r of Object.keys(this.bindings)){if(!t.hasOwnBinding(r))continue;let i=this.bindings[r];if(i.kind==="param"&&i.constant)return!0}return!1}run(){if(this.path.traverse(Lq,this),this.mutableBinding)return;this.getCompatibleScopes();let t=this.getAttachmentPath();if(!t||t.getFunctionParent()===this.path.getFunctionParent())return;let r=t.scope.generateUidIdentifier("ref"),i=Dq(r,this.path.node),s=this.attachAfter?"insertAfter":"insertBefore",[n]=t[s]([t.isVariableDeclarator()?i:kq("var",[i])]),a=this.path.parentPath;return a.isJSXElement()&&this.path.container===a.node.children&&(r=_q(r)),this.path.replaceWith(Oq(r)),n.isVariableDeclarator()?n.get("init"):n.get("declarations.0.init")}};ma.default=hc});var ha=N(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt._containerInsert=Sc;Gt._containerInsertAfter=Jy;Gt._containerInsertBefore=xc;Gt._verifyNodeList=ks;Gt.insertAfter=Gq;Gt.insertBefore=Hq;Gt.pushContainer=Zq;Gt.unshiftContainer=Qq;Gt.updateSiblingKeys=Wy;var Mq=di(),gc=Or(),mc=Yt(),ya=da(),Bq=ye(),Fq=Ky(),{arrowFunctionExpression:Rq,assertExpression:jq,assignmentExpression:qq,blockStatement:Vy,callExpression:Uq,cloneNode:yc,expressionStatement:Tc,isAssignmentExpression:Kq,isCallExpression:Vq,isExportNamedDeclaration:$y,isExpression:$q,isIdentifier:Jq,isSequenceExpression:Xq,isSuper:Yq,thisExpression:Wq}=Bq;function Hq(e){ya._assertUnremoved.call(this);let t=ks.call(this,e),{parentPath:r,parent:i}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||$y(i)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&this.key==="init")return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return xc.call(this,t);if(this.isStatementOrBlock()){let s=this.node,n=s&&(!this.isExpressionStatement()||s.expression!=null),[a]=this.replaceWith(Vy(n?[s]:[]));return a.unshiftContainer("body",t)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function Sc(e,t){Wy.call(this,e,t.length);let r=[];this.container.splice(e,0,...t);for(let n=0;n<t.length;n++){var i;let a=e+n,o=this.getSibling(a);r.push(o),(i=this.context)!=null&&i.queue&&mc.pushContext.call(o,this.context)}let s=mc._getQueueContexts.call(this);for(let n of r){mc.setScope.call(n),n.debug("Inserted.");for(let a of s)a.maybeQueue(n,!0)}return r}function xc(e){return Sc.call(this,this.key,e)}function Jy(e){return Sc.call(this,this.key+1,e)}var Xy=e=>e[e.length-1];function Yy(e){return Xq(e.parent)&&(Xy(e.parent.expressions)!==e.node||Yy(e.parentPath))}function zq(e,t){if(!Kq(e)||!Jq(e.left))return!1;let r=t.getBlockParent();return r.hasOwnBinding(e.left.name)&&r.getOwnBinding(e.left.name).constantViolations.length<=1}function Gq(e){if(ya._assertUnremoved.call(this),this.isSequenceExpression())return Xy(this.get("expressions")).insertAfter(e);let t=ks.call(this,e),{parentPath:r,parent:i}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||$y(i)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertAfter(t.map(s=>$q(s)?Tc(s):s));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&this.key==="init"){let s=this;if(s.node){let n=s.node,{scope:a}=this;if(a.path.isPattern())return jq(n),s.replaceWith(Uq(Rq([],n),[])),s.get("callee.body").insertAfter(t),[s];if(Yy(s))t.unshift(n);else if(Vq(n)&&Yq(n.callee))t.unshift(n),t.push(Wq());else if(zq(n,a))t.unshift(n),t.push(yc(n.left));else if(a.isPure(n,!0))t.push(n);else{r.isMethod({computed:!0,key:n})&&(a=a.parent);let o=a.generateDeclaredUidIdentifier();t.unshift(Tc(qq("=",yc(o),n))),t.push(Tc(yc(o)))}}return this.replaceExpressionWithStatements(t)}else{if(Array.isArray(this.container))return Jy.call(this,t);if(this.isStatementOrBlock()){let s=this.node,n=s&&(!this.isExpressionStatement()||s.expression!=null),[a]=this.replaceWith(Vy(n?[s]:[]));return a.pushContainer("body",t)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}}function Wy(e,t){if(!this.parent)return;let r=(0,Mq.getCachedPaths)(this);if(r)for(let[,i]of r)typeof i.key=="number"&&i.container===this.container&&i.key>=e&&(i.key+=t)}function ks(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){let r=e[t],i;if(r?typeof r!="object"?i="contains a non-object node":r.type?r instanceof gc.default&&(i="has a NodePath when it expected a raw object"):i="without a type":i="has falsy node",i){let s=Array.isArray(r)?"array":typeof r;throw new Error(`Node list ${i} with the index of ${t} and type of ${s}`)}}return e}function Qq(e,t){ya._assertUnremoved.call(this);let r=ks.call(this,t),i=this.node[e],s=gc.default.get({parentPath:this,parent:this.node,container:i,listKey:e,key:0}).setContext(this.context);return xc.call(s,r)}function Zq(e,t){ya._assertUnremoved.call(this);let r=ks.call(this,t),i=this.node[e];return gc.default.get({parentPath:this,parent:this.node,container:i,listKey:e,key:i.length}).setContext(this.context).replaceWithMultiple(r)}Gt.hoist=function(t=this.scope){return new Fq.default(this,t).run()}});var Ca=N(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});function eU(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}var gr=class{constructor(t,r,i){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=r,this.index=i}},Hi=class{constructor(t,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r}};function kt(e,t){let{line:r,column:i,index:s}=e;return new gr(r,i+t,s+t)}var Hy="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",tU={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Hy},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Hy}},zy={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Sa=e=>e.type==="UpdateExpression"?zy.UpdateExpression[`${e.prefix}`]:zy[e.type],rU={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
25
25
  - Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${e==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.
26
- - Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${ga(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${ga(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${ga(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperCallNotNewExpression:"Cannot use new with super(...).",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},Gq={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},Qq={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`},Zq=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),eU=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${ga({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),tU={UnsupportedBind:"Binding should be performed on object property.",UnsupportedBindRHS:"The right-hand side of binding can not be super or import."},rU=["message"];function Wy(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function iU({toMessage:e,code:t,reasonCode:r,syntaxPlugin:i}){let s=r==="MissingPlugin"||r==="MissingOneOfPlugins",n={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};return n[r]&&(r=n[r]),function a(o,l){let u=new SyntaxError;return u.code=t,u.reasonCode=r,u.loc=o,u.pos=o.index,u.syntaxPlugin=i,s&&(u.missingPlugin=l.missingPlugin),Wy(u,"clone",function(h={}){var g;let{line:b,column:E,index:w}=(g=h.loc)!=null?g:o;return a(new Sr(b,E,w),Object.assign({},l,h.details))}),Wy(u,"details",l),Object.defineProperty(u,"message",{configurable:!0,get(){let f=`${e(l)} (${o.line}:${o.column})`;return this.message=f,f},set(f){Object.defineProperty(this,"message",{value:f,writable:!0})}}),u}}function ar(e,t){if(Array.isArray(e))return i=>ar(i,e[0]);let r={};for(let i of Object.keys(e)){let s=e[i],n=typeof s=="string"?{message:()=>s}:typeof s=="function"?{message:s}:s,{message:a}=n,o=Wq(n,rU),l=typeof a=="string"?()=>a:a;r[i]=iU(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:l},t?{syntaxPlugin:t}:{},o))}return r}var v=Object.assign({},ar(Hq),ar(zq),ar(Gq),ar(Qq),ar`pipelineOperator`(eU),ar`functionBind`(tU));function sU(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function nU(e){let t=sU();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(t))e[r]!=null&&(t[r]=e[r]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((e.startColumn==null||e.startIndex==null)&&e.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:aU}=Object,Hy=(e,t)=>{e&&aU(e,t,{enumerable:!1,value:e[t]})};function ks(e){return Hy(e.loc.start,"index"),Hy(e.loc.end,"index"),e}var oU=e=>class extends e{parse(){let r=ks(super.parse());return this.optionFlags&256&&(r.tokens=r.tokens.map(ks)),r}parseRegExpLiteral({pattern:r,flags:i}){let s=null;try{s=new RegExp(r,i)}catch{}let n=this.estreeParseLiteral(s);return n.regex={pattern:r,flags:i},n}parseBigIntLiteral(r){let i;try{i=BigInt(r)}catch{i=null}let s=this.estreeParseLiteral(i);return s.bigint=String(s.value||r),s}parseDecimalLiteral(r){let s=this.estreeParseLiteral(null);return s.decimal=String(s.value||r),s}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}estreeParseChainExpression(r,i){let s=this.startNodeAtNode(r);return s.expression=r,this.finishNodeAt(s,"ChainExpression",i)}directiveToStmt(r){let i=r.value;delete r.value,this.castNodeTo(i,"Literal"),i.raw=i.extra.raw,i.value=i.extra.expressionValue;let s=this.castNodeTo(r,"ExpressionStatement");return s.expression=i,s.directive=i.extra.rawValue,delete i.extra,s}fillOptionalPropertiesForTSESLint(r){}cloneEstreeStringLiteral(r){let{start:i,end:s,loc:n,range:a,raw:o,value:l}=r,u=Object.create(r.constructor.prototype);return u.type="Literal",u.start=i,u.end=s,u.loc=n,u.range=a,u.raw=o,u.value=l,u}initFunction(r,i){super.initFunction(r,i),r.expression=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var i;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((i=r.expression.extra)!=null&&i.parenthesized)}parseBlockBody(r,i,s,n,a){super.parseBlockBody(r,i,s,n,a);let o=r.directives.map(l=>this.directiveToStmt(l));r.body=o.concat(r.body),delete r.directives}parsePrivateName(){let r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){let i=super.getPrivateNameSV(r);return delete r.id,r.name=i,this.castNodeTo(r,"PrivateIdentifier")}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,i){let s=super.parseLiteral(r,i);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(r,i,s=!1){super.parseFunctionBody(r,i,s),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,i,s,n,a,o,l=!1){let u=this.startNode();u.kind=r.kind,u=super.parseMethod(u,i,s,n,a,o,l),delete u.kind;let{typeParameters:f}=r;f&&(delete r.typeParameters,u.typeParameters=f,this.resetStartLocationFromNode(u,f));let h=this.castNodeTo(u,"FunctionExpression");return r.value=h,o==="ClassPrivateMethod"&&(r.computed=!1),o==="ObjectMethod"?(r.kind==="method"&&(r.kind="init"),r.shorthand=!1,this.finishNode(r,"Property")):this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){let i=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(i,"PropertyDefinition"),i}parseClassPrivateProperty(...r){let i=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(i,"PropertyDefinition"),i.computed=!1),i}parseClassAccessorProperty(r){let i=super.parseClassAccessorProperty(r);return this.getPluginOption("estree","classFeatures")&&(i.abstract&&this.hasPlugin("typescript")?(delete i.abstract,this.castNodeTo(i,"TSAbstractAccessorProperty")):this.castNodeTo(i,"AccessorProperty")),i}parseObjectProperty(r,i,s,n){let a=super.parseObjectProperty(r,i,s,n);return a&&(a.kind="init",this.castNodeTo(a,"Property")),a}finishObjectProperty(r){return r.kind="init",this.finishNode(r,"Property")}isValidLVal(r,i,s,n){return r==="Property"?"value":super.isValidLVal(r,i,s,n)}isAssignable(r,i){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,i):super.isAssignable(r,i)}toAssignable(r,i=!1){if(r!=null&&this.isObjectProperty(r)){let{key:s,value:n}=r;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(n,i)}else super.toAssignable(r,i)}toAssignableObjectExpressionProp(r,i,s){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(v.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(v.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,i,s)}finishCallExpression(r,i){let s=super.finishCallExpression(r,i);if(s.callee.type==="Import"){var n,a;this.castNodeTo(s,"ImportExpression"),s.source=s.arguments[0],s.options=(n=s.arguments[1])!=null?n:null,s.attributes=(a=s.arguments[1])!=null?a:null,delete s.arguments,delete s.callee}else s.type==="OptionalCallExpression"?this.castNodeTo(s,"CallExpression"):s.optional=!1;return s}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,i){let s=this.state.lastTokStartLoc,n=super.parseExport(r,i);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":n.specifiers.length===1&&n.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(n,"ExportAllDeclaration"),n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var a;let{declaration:o}=n;o?.type==="ClassDeclaration"&&((a=o.decorators)==null?void 0:a.length)>0&&o.start===n.start&&this.resetStartLocation(n,s)}break}return n}stopParseSubscript(r,i){let s=super.stopParseSubscript(r,i);return i.optionalChainMember?this.estreeParseChainExpression(s,r.loc.end):s}parseMember(r,i,s,n,a){let o=super.parseMember(r,i,s,n,a);return o.type==="OptionalMemberExpression"?this.castNodeTo(o,"MemberExpression"):o.optional=!1,o}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}castNodeTo(r,i){let s=super.castNodeTo(r,i);return this.fillOptionalPropertiesForTSESLint(s),s}cloneIdentifier(r){let i=super.cloneIdentifier(r);return this.fillOptionalPropertiesForTSESLint(i),i}cloneStringLiteral(r){return r.type==="Literal"?this.cloneEstreeStringLiteral(r):super.cloneStringLiteral(r)}finishNodeAt(r,i,s){return ks(super.finishNodeAt(r,i,s))}finishNode(r,i){let s=super.finishNode(r,i);return this.fillOptionalPropertiesForTSESLint(s),s}resetStartLocation(r,i){super.resetStartLocation(r,i),ks(r)}resetEndLocation(r,i=this.state.lastTokEndLoc){super.resetEndLocation(r,i),ks(r)}},xi=class{constructor(t,r){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!r}},Re={brace:new xi("{"),j_oTag:new xi("<tag"),j_cTag:new xi("</tag"),j_expr:new xi("<tag>...</tag>",!0)};Re.template=new xi("`",!0);var ge=!0,Q=!0,gc=!0,Ds=!0,Hr=!0,lU=!0,Ea=class{constructor(t,r={}){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=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null,this.updateContext=null}},Xc=new Map;function Le(e,t={}){t.keyword=e;let r=le(e,t);return Xc.set(e,r),r}function _t(e,t){return le(e,{beforeExpr:ge,binop:t})}var Bs=-1,kr=[],Yc=[],Wc=[],Hc=[],zc=[],Gc=[];function le(e,t={}){var r,i,s,n;return++Bs,Yc.push(e),Wc.push((r=t.binop)!=null?r:-1),Hc.push((i=t.beforeExpr)!=null?i:!1),zc.push((s=t.startsExpr)!=null?s:!1),Gc.push((n=t.prefix)!=null?n:!1),kr.push(new Ea(e,t)),Bs}function Pe(e,t={}){var r,i,s,n;return++Bs,Xc.set(e,Bs),Yc.push(e),Wc.push((r=t.binop)!=null?r:-1),Hc.push((i=t.beforeExpr)!=null?i:!1),zc.push((s=t.startsExpr)!=null?s:!1),Gc.push((n=t.prefix)!=null?n:!1),kr.push(new Ea("name",t)),Bs}var uU={bracketL:le("[",{beforeExpr:ge,startsExpr:Q}),bracketHashL:le("#[",{beforeExpr:ge,startsExpr:Q}),bracketBarL:le("[|",{beforeExpr:ge,startsExpr:Q}),bracketR:le("]"),bracketBarR:le("|]"),braceL:le("{",{beforeExpr:ge,startsExpr:Q}),braceBarL:le("{|",{beforeExpr:ge,startsExpr:Q}),braceHashL:le("#{",{beforeExpr:ge,startsExpr:Q}),braceR:le("}"),braceBarR:le("|}"),parenL:le("(",{beforeExpr:ge,startsExpr:Q}),parenR:le(")"),comma:le(",",{beforeExpr:ge}),semi:le(";",{beforeExpr:ge}),colon:le(":",{beforeExpr:ge}),doubleColon:le("::",{beforeExpr:ge}),dot:le("."),question:le("?",{beforeExpr:ge}),questionDot:le("?."),arrow:le("=>",{beforeExpr:ge}),template:le("template"),ellipsis:le("...",{beforeExpr:ge}),backQuote:le("`",{startsExpr:Q}),dollarBraceL:le("${",{beforeExpr:ge,startsExpr:Q}),templateTail:le("...`",{startsExpr:Q}),templateNonTail:le("...${",{beforeExpr:ge,startsExpr:Q}),at:le("@"),hash:le("#",{startsExpr:Q}),interpreterDirective:le("#!..."),eq:le("=",{beforeExpr:ge,isAssign:Ds}),assign:le("_=",{beforeExpr:ge,isAssign:Ds}),slashAssign:le("_=",{beforeExpr:ge,isAssign:Ds}),xorAssign:le("_=",{beforeExpr:ge,isAssign:Ds}),moduloAssign:le("_=",{beforeExpr:ge,isAssign:Ds}),incDec:le("++/--",{prefix:Hr,postfix:lU,startsExpr:Q}),bang:le("!",{beforeExpr:ge,prefix:Hr,startsExpr:Q}),tilde:le("~",{beforeExpr:ge,prefix:Hr,startsExpr:Q}),doubleCaret:le("^^",{startsExpr:Q}),doubleAt:le("@@",{startsExpr:Q}),pipeline:_t("|>",0),nullishCoalescing:_t("??",1),logicalOR:_t("||",1),logicalAND:_t("&&",2),bitwiseOR:_t("|",3),bitwiseXOR:_t("^",4),bitwiseAND:_t("&",5),equality:_t("==/!=/===/!==",6),lt:_t("</>/<=/>=",7),gt:_t("</>/<=/>=",7),relational:_t("</>/<=/>=",7),bitShift:_t("<</>>/>>>",8),bitShiftL:_t("<</>>/>>>",8),bitShiftR:_t("<</>>/>>>",8),plusMin:le("+/-",{beforeExpr:ge,binop:9,prefix:Hr,startsExpr:Q}),modulo:le("%",{binop:10,startsExpr:Q}),star:le("*",{binop:10}),slash:_t("/",10),exponent:le("**",{beforeExpr:ge,binop:11,rightAssociative:!0}),_in:Le("in",{beforeExpr:ge,binop:7}),_instanceof:Le("instanceof",{beforeExpr:ge,binop:7}),_break:Le("break"),_case:Le("case",{beforeExpr:ge}),_catch:Le("catch"),_continue:Le("continue"),_debugger:Le("debugger"),_default:Le("default",{beforeExpr:ge}),_else:Le("else",{beforeExpr:ge}),_finally:Le("finally"),_function:Le("function",{startsExpr:Q}),_if:Le("if"),_return:Le("return",{beforeExpr:ge}),_switch:Le("switch"),_throw:Le("throw",{beforeExpr:ge,prefix:Hr,startsExpr:Q}),_try:Le("try"),_var:Le("var"),_const:Le("const"),_with:Le("with"),_new:Le("new",{beforeExpr:ge,startsExpr:Q}),_this:Le("this",{startsExpr:Q}),_super:Le("super",{startsExpr:Q}),_class:Le("class",{startsExpr:Q}),_extends:Le("extends",{beforeExpr:ge}),_export:Le("export"),_import:Le("import",{startsExpr:Q}),_null:Le("null",{startsExpr:Q}),_true:Le("true",{startsExpr:Q}),_false:Le("false",{startsExpr:Q}),_typeof:Le("typeof",{beforeExpr:ge,prefix:Hr,startsExpr:Q}),_void:Le("void",{beforeExpr:ge,prefix:Hr,startsExpr:Q}),_delete:Le("delete",{beforeExpr:ge,prefix:Hr,startsExpr:Q}),_do:Le("do",{isLoop:gc,beforeExpr:ge}),_for:Le("for",{isLoop:gc}),_while:Le("while",{isLoop:gc}),_as:Pe("as",{startsExpr:Q}),_assert:Pe("assert",{startsExpr:Q}),_async:Pe("async",{startsExpr:Q}),_await:Pe("await",{startsExpr:Q}),_defer:Pe("defer",{startsExpr:Q}),_from:Pe("from",{startsExpr:Q}),_get:Pe("get",{startsExpr:Q}),_let:Pe("let",{startsExpr:Q}),_meta:Pe("meta",{startsExpr:Q}),_of:Pe("of",{startsExpr:Q}),_sent:Pe("sent",{startsExpr:Q}),_set:Pe("set",{startsExpr:Q}),_source:Pe("source",{startsExpr:Q}),_static:Pe("static",{startsExpr:Q}),_using:Pe("using",{startsExpr:Q}),_yield:Pe("yield",{startsExpr:Q}),_asserts:Pe("asserts",{startsExpr:Q}),_checks:Pe("checks",{startsExpr:Q}),_exports:Pe("exports",{startsExpr:Q}),_global:Pe("global",{startsExpr:Q}),_implements:Pe("implements",{startsExpr:Q}),_intrinsic:Pe("intrinsic",{startsExpr:Q}),_infer:Pe("infer",{startsExpr:Q}),_is:Pe("is",{startsExpr:Q}),_mixins:Pe("mixins",{startsExpr:Q}),_proto:Pe("proto",{startsExpr:Q}),_require:Pe("require",{startsExpr:Q}),_satisfies:Pe("satisfies",{startsExpr:Q}),_keyof:Pe("keyof",{startsExpr:Q}),_readonly:Pe("readonly",{startsExpr:Q}),_unique:Pe("unique",{startsExpr:Q}),_abstract:Pe("abstract",{startsExpr:Q}),_declare:Pe("declare",{startsExpr:Q}),_enum:Pe("enum",{startsExpr:Q}),_module:Pe("module",{startsExpr:Q}),_namespace:Pe("namespace",{startsExpr:Q}),_interface:Pe("interface",{startsExpr:Q}),_type:Pe("type",{startsExpr:Q}),_opaque:Pe("opaque",{startsExpr:Q}),name:le("name",{startsExpr:Q}),placeholder:le("%%",{startsExpr:Q}),string:le("string",{startsExpr:Q}),num:le("num",{startsExpr:Q}),bigint:le("bigint",{startsExpr:Q}),decimal:le("decimal",{startsExpr:Q}),regexp:le("regexp",{startsExpr:Q}),privateName:le("#name",{startsExpr:Q}),eof:le("eof"),jsxName:le("jsxName"),jsxText:le("jsxText",{beforeExpr:ge}),jsxTagStart:le("jsxTagStart",{startsExpr:Q}),jsxTagEnd:le("jsxTagEnd")};function Ue(e){return e>=93&&e<=133}function cU(e){return e<=92}function or(e){return e>=58&&e<=133}function oT(e){return e>=58&&e<=137}function pU(e){return Hc[e]}function Ms(e){return zc[e]}function fU(e){return e>=29&&e<=33}function zy(e){return e>=129&&e<=131}function dU(e){return e>=90&&e<=92}function Qc(e){return e>=58&&e<=92}function hU(e){return e>=39&&e<=59}function mU(e){return e===34}function yU(e){return Gc[e]}function TU(e){return e>=121&&e<=123}function SU(e){return e>=124&&e<=130}function Gr(e){return Yc[e]}function xa(e){return Wc[e]}function gU(e){return e===57}function Pa(e){return e>=24&&e<=25}function _r(e){return kr[e]}kr[8].updateContext=e=>{e.pop()};kr[5].updateContext=kr[7].updateContext=kr[23].updateContext=e=>{e.push(Re.brace)};kr[22].updateContext=e=>{e[e.length-1]===Re.template?e.pop():e.push(Re.template)};kr[143].updateContext=e=>{e.push(Re.j_expr,Re.j_oTag)};var Zc="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",lT="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",xU=new RegExp("["+Zc+"]"),bU=new RegExp("["+Zc+lT+"]");Zc=lT=null;var uT=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],EU=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function vc(e,t){let r=65536;for(let i=0,s=t.length;i<s;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function Tr(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&xU.test(String.fromCharCode(e)):vc(e,uT)}function bi(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&bU.test(String.fromCharCode(e)):vc(e,uT)||vc(e,EU)}var ep={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},PU=new Set(ep.keyword),AU=new Set(ep.strict),vU=new Set(ep.strictBind);function cT(e,t){return t&&e==="await"||e==="enum"}function pT(e,t){return cT(e,t)||AU.has(e)}function fT(e){return vU.has(e)}function dT(e,t){return pT(e,t)||fT(e)}function CU(e){return PU.has(e)}function IU(e,t,r){return e===64&&t===64&&Tr(r)}var wU=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 NU(e){return wU.has(e)}var Rs=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}},js=class{constructor(t,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&128)return!0;if(r&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new Rs(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,r,i){let s=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(s,t,r,i);let n=s.names.get(t)||0;r&16?n=n|4:(s.firstLexicalName||(s.firstLexicalName=t),n=n|2),s.names.set(t,n),r&8&&this.maybeExportDefined(s,t)}else if(r&4)for(let n=this.scopeStack.length-1;n>=0&&(s=this.scopeStack[n],this.checkRedeclarationInScope(s,t,r,i),s.names.set(t,(s.names.get(t)||0)|1),this.maybeExportDefined(s,t),!(s.flags&1667));--n);this.parser.inModule&&s.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,r){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(t,r,i,s){this.isRedeclaredInScope(t,r,i)&&this.parser.raise(v.VarRedeclaration,s,{identifierName:r})}isRedeclaredInScope(t,r,i){if(!(i&1))return!1;if(i&8)return t.names.has(r);let s=t.names.get(r)||0;return i&16?(s&2)>0||!this.treatFunctionsAsVarInScope(t)&&(s&1)>0:(s&2)>0&&!(t.flags&8&&t.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(t)&&(s&4)>0}checkLocalExport(t){let{name:r}=t;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1667)return r}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1731&&!(r&4))return r}}},Cc=class extends Rs{constructor(...t){super(...t),this.declareFunctions=new Set}},Ic=class extends js{createScope(t){return new Cc(t)}declareName(t,r,i){let s=this.currentScope();if(r&2048){this.checkRedeclarationInScope(s,t,r,i),this.maybeExportDefined(s,t),s.declareFunctions.add(t);return}super.declareName(t,r,i)}isRedeclaredInScope(t,r,i){if(super.isRedeclaredInScope(t,r,i))return!0;if(i&2048&&!t.declareFunctions.has(r)){let s=t.names.get(r);return(s&4)>0||(s&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},OU=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),pe=ar`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function _U(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function Gy(e){return e.importKind==="type"||e.importKind==="typeof"}var kU={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function DU(e,t){let r=[],i=[];for(let s=0;s<e.length;s++)(t(e[s],s,e)?r:i).push(e[s]);return[r,i]}var LU=/\*?\s*@((?:no)?flow)\b/,MU=e=>class extends e{constructor(...r){super(...r),this.flowPragma=void 0}getScopeHandler(){return Ic}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(r,i){r!==134&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,i)}addComment(r){if(this.flowPragma===void 0){let i=LU.exec(r.value);if(i)if(i[1]==="flow")this.flowPragma="flow";else if(i[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let i=this.state.inType;this.state.inType=!0,this.expect(r||14);let s=this.flowParseType();return this.state.inType=i,s}flowParsePredicate(){let r=this.startNode(),i=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>i.index+1&&this.raise(pe.UnexpectedSpaceBetweenModuloChecks,i),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let i=null,s=null;return this.match(54)?(this.state.inType=r,s=this.flowParsePredicate()):(i=this.flowParseType(),this.state.inType=r,this.match(54)&&(s=this.flowParsePredicate())),[i,s]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let i=r.id=this.parseIdentifier(),s=this.startNode(),n=this.startNode();this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(10);let a=this.flowParseFunctionTypeParams();return s.params=a.params,s.rest=a.rest,s.this=a._this,this.expect(11),[s.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),i.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(i),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,i){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(i&&this.raise(pe.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,i);throw this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(134)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();let i=r.body=this.startNode(),s=i.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(pe.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),s.push(super.parseImport(o))):(this.expectContextual(125,pe.UnsupportedStatementInDeclareModule),s.push(this.flowParseDeclare(o,!0)))}this.scope.exit(),this.expect(8),this.finishNode(i,"BlockStatement");let n=null,a=!1;return s.forEach(o=>{_U(o)?(n==="CommonJS"&&this.raise(pe.AmbiguousDeclareModuleKind,o),n="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(pe.DuplicateDeclareModuleExports,o),n==="ES"&&this.raise(pe.AmbiguousDeclareModuleKind,o),n="CommonJS",a=!0)}),r.kind=n||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,i){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!i){let s=this.state.value;throw this.raise(pe.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:s,suggestion:kU[s]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"?(r.default=!1,delete r.exportKind,this.castNodeTo(r,"DeclareExportDeclaration")):this.castNodeTo(r,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let i=this.flowParseTypeAlias(r);return this.castNodeTo(i,"DeclareTypeAlias"),i}flowParseDeclareOpaqueType(r){this.next();let i=this.flowParseOpaqueType(r,!0);return this.castNodeTo(i,"DeclareOpaqueType"),i}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,i){if(r.id=this.flowParseRestrictedIdentifier(!i,!0),this.scope.declareName(r.id.name,i?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!i&&this.eat(12));if(i){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:i,allowExact:!1,allowSpread:!1,allowProto:i,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(pe.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,i,s){OU.has(r)&&this.raise(s?pe.AssignReservedType:pe.UnexpectedReservedType,i,{reservedType:r})}flowParseRestrictedIdentifierName(r,i){return this.checkReservedType(this.state.value,this.state.startLoc,i),this.parseIdentifierName(r)}flowParseRestrictedIdentifier(r,i){let s=this.startNode(),n=this.flowParseRestrictedIdentifierName(r,i);return this.createIdentifier(s,n)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,i){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,i||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameterBound(){if(this.match(14)||this.isContextual(81)){let r=this.startNode();return this.next(),r.typeAnnotation=this.flowParseType(),this.finishNode(r,"TypeAnnotation")}}flowParseTypeParameter(r=!1){let i=this.state.startLoc,s=this.startNode(),n=this.flowParseVariance();return s.name=this.flowParseRestrictedIdentifierName(),s.variance=n,s.bound=this.flowParseTypeParameterBound(),this.match(29)?(this.eat(29),s.default=this.flowParseType()):r&&this.raise(pe.MissingTypeParamDefault,i),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,i=this.startNode();i.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let s=!1;do{let n=this.flowParseTypeParameter(s);i.params.push(n),n.default&&(s=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(i,"TypeParameterDeclaration")}flowInTopLevelContext(r){if(this.curContext()!==Re.brace){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}else return r()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let r=this.startNode(),i=this.state.inType;return this.state.inType=!0,r.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=s}),this.state.inType=i,!this.state.inType&&this.curContext()===Re.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let r=this.startNode(),i=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=i,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,i,s){return r.static=i,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=s,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,i){return r.static=i,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,i){let s=this.startNode();return r.static=i,r.value=this.flowParseObjectTypeMethodish(s),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:i,allowSpread:s,allowProto:n,allowInexact:a}){let o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let u,f,h=!1;for(i&&this.match(6)?(this.expect(6),u=9,f=!0):(this.expect(5),u=8,f=!1),l.exact=f;!this.match(u);){let b=!1,E=null,w=null,A=this.startNode();if(n&&this.isContextual(118)){let k=this.lookahead();k.type!==14&&k.type!==17&&(this.next(),E=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){let k=this.lookahead();k.type!==14&&k.type!==17&&(this.next(),b=!0)}let I=this.flowParseVariance();if(this.eat(0))E!=null&&this.unexpected(E),this.eat(0)?(I&&this.unexpected(I.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(A,b))):l.indexers.push(this.flowParseObjectTypeIndexer(A,b,I));else if(this.match(10)||this.match(47))E!=null&&this.unexpected(E),I&&this.unexpected(I.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(A,b));else{let k="init";if(this.isContextual(99)||this.isContextual(104)){let B=this.lookahead();oT(B.type)&&(k=this.state.value,this.next())}let Y=this.flowParseObjectTypeProperty(A,b,E,I,k,s,a??!f);Y===null?(h=!0,w=this.state.lastTokStartLoc):l.properties.push(Y)}this.flowObjectTypeSemicolon(),w&&!this.match(8)&&!this.match(9)&&this.raise(pe.UnexpectedExplicitInexactInObject,w)}this.expect(u),s&&(l.inexact=h);let g=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,g}flowParseObjectTypeProperty(r,i,s,n,a,o,l){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?l||this.raise(pe.InexactInsideExact,this.state.lastTokStartLoc):this.raise(pe.InexactInsideNonObject,this.state.lastTokStartLoc),n&&this.raise(pe.InexactVariance,n),null):(o||this.raise(pe.UnexpectedSpreadType,this.state.lastTokStartLoc),s!=null&&this.unexpected(s),n&&this.raise(pe.SpreadVariance,n),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=i,r.proto=s!=null,r.kind=a;let u=!1;return this.match(47)||this.match(10)?(r.method=!0,s!=null&&this.unexpected(s),n&&this.unexpected(n.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(pe.ThisParamBannedInConstructor,r.value.this)):(a!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(u=!0),r.value=this.flowParseTypeInitialiser(),r.variance=n),r.optional=u,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let i=r.kind==="get"?0:1,s=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?pe.GetterMayNotHaveThisParam:pe.SetterMayNotHaveThisParam,r.value.this),s!==i&&this.raise(r.kind==="get"?v.BadGetterArity:v.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(v.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,i){r??(r=this.state.startLoc);let s=i||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let n=this.startNodeAt(r);n.qualification=s,n.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(n,"QualifiedTypeIdentifier")}return s}flowParseGenericType(r,i){let s=this.startNodeAt(r);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(r,i),this.match(47)&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(r.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(r,"TupleTypeAnnotation")}flowParseFunctionTypeParam(r){let i=null,s=!1,n=null,a=this.startNode(),o=this.lookahead(),l=this.state.type===78;return o.type===14||o.type===17?(l&&!r&&this.raise(pe.ThisParamMustBeFirst,a),i=this.parseIdentifier(l),this.eat(17)&&(s=!0,l&&this.raise(pe.ThisParamMayNotBeOptional,a)),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),a.name=i,a.optional=s,a.typeAnnotation=n,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(r){let i=this.startNodeAt(r.loc.start);return i.name=null,i.optional=!1,i.typeAnnotation=r,this.finishNode(i,"FunctionTypeParam")}flowParseFunctionTypeParams(r=[]){let i=null,s=null;for(this.match(78)&&(s=this.flowParseFunctionTypeParam(!0),s.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(i=this.flowParseFunctionTypeParam(!1)),{params:r,rest:i,_this:s}}flowIdentToTypeAnnotation(r,i,s){switch(s.name){case"any":return this.finishNode(i,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(i,"BooleanTypeAnnotation");case"mixed":return this.finishNode(i,"MixedTypeAnnotation");case"empty":return this.finishNode(i,"EmptyTypeAnnotation");case"number":return this.finishNode(i,"NumberTypeAnnotation");case"string":return this.finishNode(i,"StringTypeAnnotation");case"symbol":return this.finishNode(i,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(s.name),this.flowParseGenericType(r,s)}}flowParsePrimaryType(){let r=this.state.startLoc,i=this.startNode(),s,n,a=!1,o=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,n=this.flowParseTupleType(),this.state.noAnonFunctionType=o,n;case 47:{let l=this.startNode();return l.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),s=this.flowParseFunctionTypeParams(),l.params=s.params,l.rest=s.rest,l.this=s._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),this.finishNode(l,"FunctionTypeAnnotation")}case 10:{let l=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(Ue(this.state.type)||this.match(78)){let u=this.lookahead().type;a=u!==17&&u!==14}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),n;this.eat(12)}return n?s=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):s=this.flowParseFunctionTypeParams(),l.params=s.params,l.rest=s.rest,l.this=s._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),l.typeParameters=null,this.finishNode(l,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return i.value=this.match(85),this.next(),this.finishNode(i,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",i);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",i);throw this.raise(pe.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(i,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(i,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(i,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(i,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(Qc(this.state.type)){let l=Gr(this.state.type);return this.next(),super.createIdentifier(i,l)}else if(Ue(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,i,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let r=this.state.startLoc,i=this.flowParsePrimaryType(),s=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let n=this.startNodeAt(r),a=this.eat(18);s=s||a,this.expect(0),!a&&this.match(3)?(n.elementType=i,this.next(),i=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=i,n.indexType=this.flowParseType(),this.expect(3),s?(n.optional=a,i=this.finishNode(n,"OptionalIndexedAccessType")):i=this.finishNode(n,"IndexedAccessType"))}return i}flowParsePrefixType(){let r=this.startNode();return this.eat(17)?(r.typeAnnotation=this.flowParsePrefixType(),this.finishNode(r,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let r=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let i=this.startNodeAt(r.loc.start);return i.params=[this.reinterpretTypeAsFunctionTypeParam(r)],i.rest=null,i.this=null,i.returnType=this.flowParseType(),i.typeParameters=null,this.finishNode(i,"FunctionTypeAnnotation")}return r}flowParseIntersectionType(){let r=this.startNode();this.eat(45);let i=this.flowParseAnonFunctionWithoutParens();for(r.types=[i];this.eat(45);)r.types.push(this.flowParseAnonFunctionWithoutParens());return r.types.length===1?i:this.finishNode(r,"IntersectionTypeAnnotation")}flowParseUnionType(){let r=this.startNode();this.eat(43);let i=this.flowParseIntersectionType();for(r.types=[i];this.eat(43);)r.types.push(this.flowParseIntersectionType());return r.types.length===1?i:this.finishNode(r,"UnionTypeAnnotation")}flowParseType(){let r=this.state.inType;this.state.inType=!0;let i=this.flowParseUnionType();return this.state.inType=r,i}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let r=this.state.startLoc,i=this.parseIdentifier();return this.flowParseGenericType(r,i)}else return this.flowParseType()}flowParseTypeAnnotation(){let r=this.startNode();return r.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(r,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(){let r=this.startNode(),i=this.parseIdentifierName();return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),this.createIdentifier(r,i)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}flowParseVariance(){let r=null;return this.match(53)?(r=this.startNode(),this.state.value==="+"?r.kind="plus":r.kind="minus",this.next(),this.finishNode(r,"Variance")):r}parseFunctionBody(r,i,s=!1){if(i){this.forwardNoArrowParamsConversionAt(r,()=>super.parseFunctionBody(r,!0,s));return}super.parseFunctionBody(r,!1,s)}parseFunctionBodyAndFinish(r,i,s=!1){if(this.match(14)){let n=this.startNode();[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=n.typeAnnotation?this.finishNode(n,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,i,s)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let s=this.lookahead();if(or(s.type)){let n=this.startNode();return this.next(),this.flowParseInterface(n)}}else if(this.isContextual(126)){let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}let i=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(i)&&(this.flowPragma=null),i}parseExpressionStatement(r,i,s){if(i.type==="Identifier"){if(i.name==="declare"){if(this.match(80)||Ue(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(Ue(this.state.type)){if(i.name==="interface")return this.flowParseInterface(r);if(i.name==="type")return this.flowParseTypeAlias(r);if(i.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,i,s)}shouldParseExportDeclaration(){let{type:r}=this.state;return r===126||zy(r)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return r===126||zy(r)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,i,s){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let g=this.lookaheadCharCode();if(g===44||g===61||g===58||g===41)return this.setOptionalParametersError(s),r}this.expect(17);let n=this.state.clone(),a=this.state.noArrowAt,o=this.startNodeAt(i),{consequent:l,failed:u}=this.tryParseConditionalConsequent(),[f,h]=this.getArrowLikeExpressions(l);if(u||h.length>0){let g=[...a];if(h.length>0){this.state=n,this.state.noArrowAt=g;for(let b=0;b<h.length;b++)g.push(h[b].start);({consequent:l,failed:u}=this.tryParseConditionalConsequent()),[f,h]=this.getArrowLikeExpressions(l)}u&&f.length>1&&this.raise(pe.AmbiguousConditionalArrow,n.startLoc),u&&f.length===1&&(this.state=n,g.push(f[0].start),this.state.noArrowAt=g,{consequent:l,failed:u}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(l,!0),this.state.noArrowAt=a,this.expect(14),o.test=r,o.consequent=l,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),i=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:i}}getArrowLikeExpressions(r,i){let s=[r],n=[];for(;s.length!==0;){let a=s.pop();a.type==="ArrowFunctionExpression"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):n.push(a),a.body.type!=="BlockStatement"&&s.push(a.body)):a.type==="ConditionalExpression"&&(s.push(a.consequent),s.push(a.alternate))}return i?(n.forEach(a=>this.finishArrowValidation(a)),[n,[]]):DU(n,a=>a.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){var i;this.toAssignableList(r.params,(i=r.extra)==null?void 0:i.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,i){let s;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),s=i(),this.state.noArrowParamsConversionAt.pop()):s=i(),s}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let n=this.startNodeAt(i);return n.expression=s,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return s}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let i=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(i)}else if(this.isContextual(131)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseOpaqueType(i,!1)}else if(this.isContextual(129)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseInterface(i)}else if(this.isContextual(126)){r.exportKind="value";let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:i}=this.state,s=super.maybeParseExportNamespaceSpecifier(r);return s&&r.exportKind==="type"&&this.unexpected(i),s}parseClassId(r,i,s){super.parseClassId(r,i,s),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,i,s){let{startLoc:n}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,i))return;i.declare=!0}super.parseClassMember(r,i,s),i.declare&&(i.type!=="ClassProperty"&&i.type!=="ClassPrivateProperty"&&i.type!=="PropertyDefinition"?this.raise(pe.DeclareClassElement,n):i.value&&this.raise(pe.DeclareClassFieldInitializer,i.value))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),i="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(v.InvalidIdentifier,this.state.curPosition(),{identifierName:i}),this.finishToken(132,i)}getTokenFromCode(r){let i=this.input.charCodeAt(this.state.pos+1);r===123&&i===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?i===46?this.finishOp(18,2):this.finishOp(17,1):IU(r,i,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,i){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,i):super.isAssignable(r,i)}toAssignable(r,i=!1){!i&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,i)}toAssignableList(r,i,s){for(let n=0;n<r.length;n++){let a=r[n];a?.type==="TypeCastExpression"&&(r[n]=this.typeCastToParameter(a))}super.toAssignableList(r,i,s)}toReferencedList(r,i){for(let n=0;n<r.length;n++){var s;let a=r[n];a&&a.type==="TypeCastExpression"&&!((s=a.extra)!=null&&s.parenthesized)&&(r.length>1||!i)&&this.raise(pe.TypeCastInPattern,a.typeAnnotation)}return r}parseArrayLike(r,i,s){let n=super.parseArrayLike(r,i,s);return s!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}isValidLVal(r,i,s,n){return r==="TypeCastExpression"||super.isValidLVal(r,i,s,n)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,i,s,n,a,o){if(i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,i,s,n,a,o),i.params&&a){let l=i.params;l.length>0&&this.isThisParam(l[0])&&this.raise(pe.ThisParamBannedInConstructor,i)}else if(i.type==="MethodDefinition"&&a&&i.value.params){let l=i.value.params;l.length>0&&this.isThisParam(l[0])&&this.raise(pe.ThisParamBannedInConstructor,i)}}pushClassPrivateMethod(r,i,s,n){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,i,s,n)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let i=r.implements=[];do{let s=this.startNode();s.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?s.typeParameters=this.flowParseTypeParameterInstantiation():s.typeParameters=null,i.push(this.finishNode(s,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let i=this.getObjectOrClassMethodParams(r);if(i.length>0){let s=i[0];this.isThisParam(s)&&r.kind==="get"?this.raise(pe.GetterMayNotHaveThisParam,s):this.isThisParam(s)&&this.raise(pe.SetterMayNotHaveThisParam,s)}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,i,s,n,a,o,l){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let u;this.match(47)&&!o&&(u=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let f=super.parseObjPropValue(r,i,s,n,a,o,l);return u&&((f.value||f).typeParameters=u),f}parseFunctionParamType(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(pe.PatternIsOptional,r),this.isThisParam(r)&&this.raise(pe.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(pe.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(pe.ThisParamNoDefault,r),this.resetEndLocation(r),r}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(pe.TypeBeforeInitializer,s.typeAnnotation),s}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(pe.ImportReflectionHasImportType,r.specifiers[0].loc.start)}parseImportSpecifierLocal(r,i,s){i.local=Gy(r)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),r.specifiers.push(this.finishImportSpecifier(i,s))}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){if(!r)return!0;let i=this.lookaheadCharCode();return i===123||i===42}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,n){if(super.applyImportPhase(r,i,s,n),i){if(!s&&this.match(65))return;r.exportKind=s==="type"?s:"value"}else s==="type"&&this.match(55)&&this.unexpected(),r.importKind=s==="type"||s==="typeof"?s:"value"}parseImportSpecifier(r,i,s,n,a){let o=r.imported,l=null;o.type==="Identifier"&&(o.name==="type"?l="type":o.name==="typeof"&&(l="typeof"));let u=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let h=this.parseIdentifier(!0);l!==null&&!or(this.state.type)?(r.imported=h,r.importKind=l,r.local=this.cloneIdentifier(h)):(r.imported=o,r.importKind=null,r.local=this.parseIdentifier())}else{if(l!==null&&or(this.state.type))r.imported=this.parseIdentifier(!0),r.importKind=l;else{if(i)throw this.raise(v.ImportBindingIsString,r,{importName:o.value});r.imported=o,r.importKind=null}this.eatContextual(93)?r.local=this.parseIdentifier():(u=!0,r.local=this.cloneIdentifier(r.imported))}let f=Gy(r);return s&&f&&this.raise(pe.ImportTypeShorthandOnlyInPureImport,r),(s||f)&&this.checkReservedType(r.local.name,r.local.loc.start,!0),u&&!s&&!f&&this.checkReservedWord(r.local.name,r.loc.start,!0,!0),this.finishImportSpecifier(r,"ImportSpecifier")}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(r,i){let s=r.kind;s!=="get"&&s!=="set"&&this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),this.match(14)&&(r.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){if(this.match(14)){let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,r.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=s}return super.parseAsyncArrowFromCallExpression(r,i)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(r,i){var s;let n=null,a;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(r,i),n),!a.error)return a.node;let{context:u}=this.state,f=u[u.length-1];(f===Re.j_oTag||f===Re.j_expr)&&u.pop()}if((s=a)!=null&&s.error||this.match(47)){var o,l;n=n||this.state.clone();let u,f=this.tryParse(g=>{var b;u=this.flowParseTypeParameterDeclaration();let E=this.forwardNoArrowParamsConversionAt(u,()=>{let A=super.parseMaybeAssign(r,i);return this.resetStartLocationFromNode(A,u),A});(b=E.extra)!=null&&b.parenthesized&&g();let w=this.maybeUnwrapTypeCastExpression(E);return w.type!=="ArrowFunctionExpression"&&g(),w.typeParameters=u,this.resetStartLocationFromNode(w,u),E},n),h=null;if(f.node&&this.maybeUnwrapTypeCastExpression(f.node).type==="ArrowFunctionExpression"){if(!f.error&&!f.aborted)return f.node.async&&this.raise(pe.UnexpectedTypeParameterBeforeAsyncArrowFunction,u),f.node;h=f.node}if((o=a)!=null&&o.node)return this.state=a.failState,a.node;if(h)return this.state=f.failState,h;throw(l=a)!=null&&l.thrown?a.error:f.thrown?f.error:this.raise(pe.UnexpectedTokenAfterTypeParameter,u)}return super.parseMaybeAssign(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(()=>{let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let n=this.startNode();return[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=s,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});if(i.thrown)return null;i.error&&(this.state=i.failState),r.returnType=i.node.typeAnnotation?this.finishNode(i.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,i){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?r.params=i:super.setArrowFunctionParameters(r,i)}checkParams(r,i,s,n=!0){if(!(s&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))){for(let a=0;a<r.params.length;a++)this.isThisParam(r.params[a])&&a>0&&this.raise(pe.ThisParamMustBeFirst,r.params[a]);super.checkParams(r,i,s,n)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(r,i,s){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(i.index)){this.next();let n=this.startNodeAt(i);n.callee=r,n.arguments=super.parseCallExpressionArguments(),r=this.finishNode(n,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let n=this.state.clone(),a=this.tryParse(l=>this.parseAsyncArrowWithTypeParameters(i)||l(),n);if(!a.error&&!a.aborted)return a.node;let o=this.tryParse(()=>super.parseSubscripts(r,i,s),n);if(o.node&&!o.error)return o.node;if(a.node)return this.state=a.failState,a.node;if(o.node)return this.state=o.failState,o.node;throw a.error||o.error}return super.parseSubscripts(r,i,s)}parseSubscript(r,i,s,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,s)return n.stop=!0,r;this.next();let a=this.startNodeAt(i);return a.callee=r,a.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),a.arguments=this.parseCallExpressionArguments(),a.optional=!0,this.finishCallExpression(a,!0)}else if(!s&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let a=this.startNodeAt(i);a.callee=r;let o=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(),n.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,n.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,i,s,n)}parseNewCallee(r){super.parseNewCallee(r);let i=null;this.shouldParseTypes()&&this.match(47)&&(i=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=i}parseAsyncArrowWithTypeParameters(r){let i=this.startNodeAt(r);if(this.parseFunctionParams(i,!1),!!this.parseArrow(i))return super.parseArrowExpression(i,void 0,!0)}readToken_mult_modulo(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===42&&i===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===124&&i===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,i){let s=super.parseTopLevel(r,i);return this.state.hasFlowComment&&this.raise(pe.UnterminatedFlowComment,this.state.curPosition()),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(pe.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,i=2;for(;[32,9].includes(this.input.charCodeAt(r+i));)i++;let s=this.input.charCodeAt(i+r),n=this.input.charCodeAt(i+r+1);return s===58&&n===58?i+2:this.input.slice(i+r,i+r+12)==="flow-include"?i+12:s===58&&n!==58?i:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(v.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:i,memberName:s}){this.raise(pe.EnumBooleanMemberNotInitialized,r,{memberName:s,enumName:i})}flowEnumErrorInvalidMemberInitializer(r,i){return this.raise(i.explicitType?i.explicitType==="symbol"?pe.EnumInvalidMemberInitializerSymbolType:pe.EnumInvalidMemberInitializerPrimaryType:pe.EnumInvalidMemberInitializerUnknownType,r,i)}flowEnumErrorNumberMemberNotInitialized(r,i){this.raise(pe.EnumNumberMemberNotInitialized,r,i)}flowEnumErrorStringMemberInconsistentlyInitialized(r,i){this.raise(pe.EnumStringMemberInconsistentlyInitialized,r,i)}flowEnumMemberInit(){let r=this.state.startLoc,i=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let s=this.parseNumericLiteral(this.state.value);return i()?{type:"number",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 134:{let s=this.parseStringLiteral(this.state.value);return i()?{type:"string",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 85:case 86:{let s=this.parseBooleanLiteral(this.match(85));return i()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,i=this.parseIdentifier(!0),s=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:i,init:s}}flowEnumCheckExplicitTypeMismatch(r,i,s){let{explicitType:n}=i;n!==null&&n!==s&&this.flowEnumErrorInvalidMemberInitializer(r,i)}flowEnumMembers({enumName:r,explicitType:i}){let s=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let o=this.startNode(),{id:l,init:u}=this.flowEnumMemberRaw(),f=l.name;if(f==="")continue;/^[a-z]/.test(f)&&this.raise(pe.EnumInvalidMemberName,l,{memberName:f,suggestion:f[0].toUpperCase()+f.slice(1),enumName:r}),s.has(f)&&this.raise(pe.EnumDuplicateMemberName,l,{memberName:f,enumName:r}),s.add(f);let h={enumName:r,explicitType:i,memberName:f};switch(o.id=l,u.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(u.loc,h,"boolean"),o.init=u.value,n.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(u.loc,h,"number"),o.init=u.value,n.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(u.loc,h,"string"),o.init=u.value,n.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(u.loc,h);case"none":switch(i){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(u.loc,h);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(u.loc,h);break;default:n.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:n,hasUnknownMembers:a}}flowEnumStringMembers(r,i,{enumName:s}){if(r.length===0)return i;if(i.length===0)return r;if(i.length>r.length){for(let n of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:s});return i}else{for(let n of i)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:s});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!Ue(this.state.type))throw this.raise(pe.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:i}=this.state;return this.next(),i!=="boolean"&&i!=="number"&&i!=="string"&&i!=="symbol"&&this.raise(pe.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:i}),i}flowEnumBody(r,i){let s=i.name,n=i.loc.start,a=this.flowEnumParseExplicitType({enumName:s});this.expect(5);let{members:o,hasUnknownMembers:l}=this.flowEnumMembers({enumName:s,explicitType:a});switch(r.hasUnknownMembers=l,a){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let u=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let f=o.booleanMembers.length,h=o.numberMembers.length,g=o.stringMembers.length,b=o.defaultedMembers.length;if(!f&&!h&&!g&&!b)return u();if(!f&&!h)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!h&&!g&&f>=b){for(let E of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(E.loc.start,{enumName:s,memberName:E.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!f&&!g&&h>=b){for(let E of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(E.loc.start,{enumName:s,memberName:E.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(pe.EnumInconsistentMemberValues,n,{enumName:s}),u()}}}flowParseEnumDeclaration(r){let i=this.parseIdentifier();return r.id=i,r.body=this.flowEnumBody(this.startNode(),i),this.finishNode(r,"EnumDeclaration")}jsxParseOpeningElementAfterName(r){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(r.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(r)}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let i=this.input.charCodeAt(r+1);return i!==60&&i!==61}return!1}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},FU={__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"},BU=/\r\n|[\r\n\u2028\u2029]/,Ta=new RegExp(BU.source,"g");function Xi(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Qy(e,t,r){for(let i=t;i<r;i++)if(Xi(e.charCodeAt(i)))return!0;return!1}var xc=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,bc=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function RU(e){switch(e){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}}var gi=ar`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function zr(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function Ji(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return Ji(e.object)+"."+Ji(e.property);throw new Error("Node had unexpected type: "+e.type)}var jU=e=>class extends e{jsxReadToken(){let r="",i=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(gi.UnterminatedJsxContent,this.state.startLoc);let s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:if(this.state.pos===this.state.start){s===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(s);return}r+=this.input.slice(i,this.state.pos),this.finishToken(142,r);return;case 38:r+=this.input.slice(i,this.state.pos),r+=this.jsxReadEntity(),i=this.state.pos;break;default:Xi(s)?(r+=this.input.slice(i,this.state.pos),r+=this.jsxReadNewLine(!0),i=this.state.pos):++this.state.pos}}}jsxReadNewLine(r){let i=this.input.charCodeAt(this.state.pos),s;return++this.state.pos,i===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,s=r?`
26
+ - Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${Sa(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${Sa(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${Sa(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperCallNotNewExpression:"Cannot use new with super(...).",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},iU={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},sU={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`},nU=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),aU=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${Sa({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),oU={UnsupportedBind:"Binding should be performed on object property.",UnsupportedBindRHS:"The right-hand side of binding can not be super or import."},lU=["message"];function Gy(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function uU({toMessage:e,code:t,reasonCode:r,syntaxPlugin:i}){let s=r==="MissingPlugin"||r==="MissingOneOfPlugins",n={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};return n[r]&&(r=n[r]),function a(o,l){let u=new SyntaxError;return u.code=t,u.reasonCode=r,u.loc=o,u.pos=o.index,u.syntaxPlugin=i,s&&(u.missingPlugin=l.missingPlugin),Gy(u,"clone",function(h={}){var x;let{line:A,column:P,index:w}=(x=h.loc)!=null?x:o;return a(new gr(A,P,w),Object.assign({},l,h.details))}),Gy(u,"details",l),Object.defineProperty(u,"message",{configurable:!0,get(){let f=`${e(l)} (${o.line}:${o.column})`;return this.message=f,f},set(f){Object.defineProperty(this,"message",{value:f,writable:!0})}}),u}}function ar(e,t){if(Array.isArray(e))return i=>ar(i,e[0]);let r={};for(let i of Object.keys(e)){let s=e[i],n=typeof s=="string"?{message:()=>s}:typeof s=="function"?{message:s}:s,{message:a}=n,o=eU(n,lU),l=typeof a=="string"?()=>a:a;r[i]=uU(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:l},t?{syntaxPlugin:t}:{},o))}return r}var v=Object.assign({},ar(tU),ar(rU),ar(iU),ar(sU),ar`pipelineOperator`(aU),ar`functionBind`(oU));function cU(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function pU(e){let t=cU();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(t))e[r]!=null&&(t[r]=e[r]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((e.startColumn==null||e.startIndex==null)&&e.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:fU}=Object,Qy=(e,t)=>{e&&fU(e,t,{enumerable:!1,value:e[t]})};function Ds(e){return Qy(e.loc.start,"index"),Qy(e.loc.end,"index"),e}var dU=e=>class extends e{parse(){let r=Ds(super.parse());return this.optionFlags&256&&(r.tokens=r.tokens.map(Ds)),r}parseRegExpLiteral({pattern:r,flags:i}){let s=null;try{s=new RegExp(r,i)}catch{}let n=this.estreeParseLiteral(s);return n.regex={pattern:r,flags:i},n}parseBigIntLiteral(r){let i;try{i=BigInt(r)}catch{i=null}let s=this.estreeParseLiteral(i);return s.bigint=String(s.value||r),s}parseDecimalLiteral(r){let s=this.estreeParseLiteral(null);return s.decimal=String(s.value||r),s}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}estreeParseChainExpression(r,i){let s=this.startNodeAtNode(r);return s.expression=r,this.finishNodeAt(s,"ChainExpression",i)}directiveToStmt(r){let i=r.value;delete r.value,this.castNodeTo(i,"Literal"),i.raw=i.extra.raw,i.value=i.extra.expressionValue;let s=this.castNodeTo(r,"ExpressionStatement");return s.expression=i,s.directive=i.extra.rawValue,delete i.extra,s}fillOptionalPropertiesForTSESLint(r){}cloneEstreeStringLiteral(r){let{start:i,end:s,loc:n,range:a,raw:o,value:l}=r,u=Object.create(r.constructor.prototype);return u.type="Literal",u.start=i,u.end=s,u.loc=n,u.range=a,u.raw=o,u.value=l,u}initFunction(r,i){super.initFunction(r,i),r.expression=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var i;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((i=r.expression.extra)!=null&&i.parenthesized)}parseBlockBody(r,i,s,n,a){super.parseBlockBody(r,i,s,n,a);let o=r.directives.map(l=>this.directiveToStmt(l));r.body=o.concat(r.body),delete r.directives}parsePrivateName(){let r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){let i=super.getPrivateNameSV(r);return delete r.id,r.name=i,this.castNodeTo(r,"PrivateIdentifier")}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,i){let s=super.parseLiteral(r,i);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(r,i,s=!1){super.parseFunctionBody(r,i,s),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,i,s,n,a,o,l=!1){let u=this.startNode();u.kind=r.kind,u=super.parseMethod(u,i,s,n,a,o,l),delete u.kind;let{typeParameters:f}=r;f&&(delete r.typeParameters,u.typeParameters=f,this.resetStartLocationFromNode(u,f));let h=this.castNodeTo(u,"FunctionExpression");return r.value=h,o==="ClassPrivateMethod"&&(r.computed=!1),o==="ObjectMethod"?(r.kind==="method"&&(r.kind="init"),r.shorthand=!1,this.finishNode(r,"Property")):this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){let i=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(i,"PropertyDefinition"),i}parseClassPrivateProperty(...r){let i=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(i,"PropertyDefinition"),i.computed=!1),i}parseClassAccessorProperty(r){let i=super.parseClassAccessorProperty(r);return this.getPluginOption("estree","classFeatures")&&(i.abstract&&this.hasPlugin("typescript")?(delete i.abstract,this.castNodeTo(i,"TSAbstractAccessorProperty")):this.castNodeTo(i,"AccessorProperty")),i}parseObjectProperty(r,i,s,n){let a=super.parseObjectProperty(r,i,s,n);return a&&(a.kind="init",this.castNodeTo(a,"Property")),a}finishObjectProperty(r){return r.kind="init",this.finishNode(r,"Property")}isValidLVal(r,i,s,n){return r==="Property"?"value":super.isValidLVal(r,i,s,n)}isAssignable(r,i){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,i):super.isAssignable(r,i)}toAssignable(r,i=!1){if(r!=null&&this.isObjectProperty(r)){let{key:s,value:n}=r;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(n,i)}else super.toAssignable(r,i)}toAssignableObjectExpressionProp(r,i,s){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(v.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(v.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,i,s)}finishCallExpression(r,i){let s=super.finishCallExpression(r,i);if(s.callee.type==="Import"){var n,a;this.castNodeTo(s,"ImportExpression"),s.source=s.arguments[0],s.options=(n=s.arguments[1])!=null?n:null,s.attributes=(a=s.arguments[1])!=null?a:null,delete s.arguments,delete s.callee}else s.type==="OptionalCallExpression"?this.castNodeTo(s,"CallExpression"):s.optional=!1;return s}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,i){let s=this.state.lastTokStartLoc,n=super.parseExport(r,i);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":n.specifiers.length===1&&n.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(n,"ExportAllDeclaration"),n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var a;let{declaration:o}=n;o?.type==="ClassDeclaration"&&((a=o.decorators)==null?void 0:a.length)>0&&o.start===n.start&&this.resetStartLocation(n,s)}break}return n}stopParseSubscript(r,i){let s=super.stopParseSubscript(r,i);return i.optionalChainMember?this.estreeParseChainExpression(s,r.loc.end):s}parseMember(r,i,s,n,a){let o=super.parseMember(r,i,s,n,a);return o.type==="OptionalMemberExpression"?this.castNodeTo(o,"MemberExpression"):o.optional=!1,o}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}castNodeTo(r,i){let s=super.castNodeTo(r,i);return this.fillOptionalPropertiesForTSESLint(s),s}cloneIdentifier(r){let i=super.cloneIdentifier(r);return this.fillOptionalPropertiesForTSESLint(i),i}cloneStringLiteral(r){return r.type==="Literal"?this.cloneEstreeStringLiteral(r):super.cloneStringLiteral(r)}finishNodeAt(r,i,s){return Ds(super.finishNodeAt(r,i,s))}finishNode(r,i){let s=super.finishNode(r,i);return this.fillOptionalPropertiesForTSESLint(s),s}resetStartLocation(r,i){super.resetStartLocation(r,i),Ds(r)}resetEndLocation(r,i=this.state.lastTokEndLoc){super.resetEndLocation(r,i),Ds(r)}},bi=class{constructor(t,r){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!r}},Re={brace:new bi("{"),j_oTag:new bi("<tag"),j_cTag:new bi("</tag"),j_expr:new bi("<tag>...</tag>",!0)};Re.template=new bi("`",!0);var xe=!0,Z=!0,bc=!0,Ls=!0,Hr=!0,hU=!0,Ea=class{constructor(t,r={}){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=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null,this.updateContext=null}},Wc=new Map;function Le(e,t={}){t.keyword=e;let r=le(e,t);return Wc.set(e,r),r}function _t(e,t){return le(e,{beforeExpr:xe,binop:t})}var Rs=-1,kr=[],Hc=[],zc=[],Gc=[],Qc=[],Zc=[];function le(e,t={}){var r,i,s,n;return++Rs,Hc.push(e),zc.push((r=t.binop)!=null?r:-1),Gc.push((i=t.beforeExpr)!=null?i:!1),Qc.push((s=t.startsExpr)!=null?s:!1),Zc.push((n=t.prefix)!=null?n:!1),kr.push(new Ea(e,t)),Rs}function Ae(e,t={}){var r,i,s,n;return++Rs,Wc.set(e,Rs),Hc.push(e),zc.push((r=t.binop)!=null?r:-1),Gc.push((i=t.beforeExpr)!=null?i:!1),Qc.push((s=t.startsExpr)!=null?s:!1),Zc.push((n=t.prefix)!=null?n:!1),kr.push(new Ea("name",t)),Rs}var mU={bracketL:le("[",{beforeExpr:xe,startsExpr:Z}),bracketHashL:le("#[",{beforeExpr:xe,startsExpr:Z}),bracketBarL:le("[|",{beforeExpr:xe,startsExpr:Z}),bracketR:le("]"),bracketBarR:le("|]"),braceL:le("{",{beforeExpr:xe,startsExpr:Z}),braceBarL:le("{|",{beforeExpr:xe,startsExpr:Z}),braceHashL:le("#{",{beforeExpr:xe,startsExpr:Z}),braceR:le("}"),braceBarR:le("|}"),parenL:le("(",{beforeExpr:xe,startsExpr:Z}),parenR:le(")"),comma:le(",",{beforeExpr:xe}),semi:le(";",{beforeExpr:xe}),colon:le(":",{beforeExpr:xe}),doubleColon:le("::",{beforeExpr:xe}),dot:le("."),question:le("?",{beforeExpr:xe}),questionDot:le("?."),arrow:le("=>",{beforeExpr:xe}),template:le("template"),ellipsis:le("...",{beforeExpr:xe}),backQuote:le("`",{startsExpr:Z}),dollarBraceL:le("${",{beforeExpr:xe,startsExpr:Z}),templateTail:le("...`",{startsExpr:Z}),templateNonTail:le("...${",{beforeExpr:xe,startsExpr:Z}),at:le("@"),hash:le("#",{startsExpr:Z}),interpreterDirective:le("#!..."),eq:le("=",{beforeExpr:xe,isAssign:Ls}),assign:le("_=",{beforeExpr:xe,isAssign:Ls}),slashAssign:le("_=",{beforeExpr:xe,isAssign:Ls}),xorAssign:le("_=",{beforeExpr:xe,isAssign:Ls}),moduloAssign:le("_=",{beforeExpr:xe,isAssign:Ls}),incDec:le("++/--",{prefix:Hr,postfix:hU,startsExpr:Z}),bang:le("!",{beforeExpr:xe,prefix:Hr,startsExpr:Z}),tilde:le("~",{beforeExpr:xe,prefix:Hr,startsExpr:Z}),doubleCaret:le("^^",{startsExpr:Z}),doubleAt:le("@@",{startsExpr:Z}),pipeline:_t("|>",0),nullishCoalescing:_t("??",1),logicalOR:_t("||",1),logicalAND:_t("&&",2),bitwiseOR:_t("|",3),bitwiseXOR:_t("^",4),bitwiseAND:_t("&",5),equality:_t("==/!=/===/!==",6),lt:_t("</>/<=/>=",7),gt:_t("</>/<=/>=",7),relational:_t("</>/<=/>=",7),bitShift:_t("<</>>/>>>",8),bitShiftL:_t("<</>>/>>>",8),bitShiftR:_t("<</>>/>>>",8),plusMin:le("+/-",{beforeExpr:xe,binop:9,prefix:Hr,startsExpr:Z}),modulo:le("%",{binop:10,startsExpr:Z}),star:le("*",{binop:10}),slash:_t("/",10),exponent:le("**",{beforeExpr:xe,binop:11,rightAssociative:!0}),_in:Le("in",{beforeExpr:xe,binop:7}),_instanceof:Le("instanceof",{beforeExpr:xe,binop:7}),_break:Le("break"),_case:Le("case",{beforeExpr:xe}),_catch:Le("catch"),_continue:Le("continue"),_debugger:Le("debugger"),_default:Le("default",{beforeExpr:xe}),_else:Le("else",{beforeExpr:xe}),_finally:Le("finally"),_function:Le("function",{startsExpr:Z}),_if:Le("if"),_return:Le("return",{beforeExpr:xe}),_switch:Le("switch"),_throw:Le("throw",{beforeExpr:xe,prefix:Hr,startsExpr:Z}),_try:Le("try"),_var:Le("var"),_const:Le("const"),_with:Le("with"),_new:Le("new",{beforeExpr:xe,startsExpr:Z}),_this:Le("this",{startsExpr:Z}),_super:Le("super",{startsExpr:Z}),_class:Le("class",{startsExpr:Z}),_extends:Le("extends",{beforeExpr:xe}),_export:Le("export"),_import:Le("import",{startsExpr:Z}),_null:Le("null",{startsExpr:Z}),_true:Le("true",{startsExpr:Z}),_false:Le("false",{startsExpr:Z}),_typeof:Le("typeof",{beforeExpr:xe,prefix:Hr,startsExpr:Z}),_void:Le("void",{beforeExpr:xe,prefix:Hr,startsExpr:Z}),_delete:Le("delete",{beforeExpr:xe,prefix:Hr,startsExpr:Z}),_do:Le("do",{isLoop:bc,beforeExpr:xe}),_for:Le("for",{isLoop:bc}),_while:Le("while",{isLoop:bc}),_as:Ae("as",{startsExpr:Z}),_assert:Ae("assert",{startsExpr:Z}),_async:Ae("async",{startsExpr:Z}),_await:Ae("await",{startsExpr:Z}),_defer:Ae("defer",{startsExpr:Z}),_from:Ae("from",{startsExpr:Z}),_get:Ae("get",{startsExpr:Z}),_let:Ae("let",{startsExpr:Z}),_meta:Ae("meta",{startsExpr:Z}),_of:Ae("of",{startsExpr:Z}),_sent:Ae("sent",{startsExpr:Z}),_set:Ae("set",{startsExpr:Z}),_source:Ae("source",{startsExpr:Z}),_static:Ae("static",{startsExpr:Z}),_using:Ae("using",{startsExpr:Z}),_yield:Ae("yield",{startsExpr:Z}),_asserts:Ae("asserts",{startsExpr:Z}),_checks:Ae("checks",{startsExpr:Z}),_exports:Ae("exports",{startsExpr:Z}),_global:Ae("global",{startsExpr:Z}),_implements:Ae("implements",{startsExpr:Z}),_intrinsic:Ae("intrinsic",{startsExpr:Z}),_infer:Ae("infer",{startsExpr:Z}),_is:Ae("is",{startsExpr:Z}),_mixins:Ae("mixins",{startsExpr:Z}),_proto:Ae("proto",{startsExpr:Z}),_require:Ae("require",{startsExpr:Z}),_satisfies:Ae("satisfies",{startsExpr:Z}),_keyof:Ae("keyof",{startsExpr:Z}),_readonly:Ae("readonly",{startsExpr:Z}),_unique:Ae("unique",{startsExpr:Z}),_abstract:Ae("abstract",{startsExpr:Z}),_declare:Ae("declare",{startsExpr:Z}),_enum:Ae("enum",{startsExpr:Z}),_module:Ae("module",{startsExpr:Z}),_namespace:Ae("namespace",{startsExpr:Z}),_interface:Ae("interface",{startsExpr:Z}),_type:Ae("type",{startsExpr:Z}),_opaque:Ae("opaque",{startsExpr:Z}),name:le("name",{startsExpr:Z}),placeholder:le("%%",{startsExpr:Z}),string:le("string",{startsExpr:Z}),num:le("num",{startsExpr:Z}),bigint:le("bigint",{startsExpr:Z}),decimal:le("decimal",{startsExpr:Z}),regexp:le("regexp",{startsExpr:Z}),privateName:le("#name",{startsExpr:Z}),eof:le("eof"),jsxName:le("jsxName"),jsxText:le("jsxText",{beforeExpr:xe}),jsxTagStart:le("jsxTagStart",{startsExpr:Z}),jsxTagEnd:le("jsxTagEnd")};function Ue(e){return e>=93&&e<=133}function yU(e){return e<=92}function or(e){return e>=58&&e<=133}function cT(e){return e>=58&&e<=137}function TU(e){return Gc[e]}function Bs(e){return Qc[e]}function gU(e){return e>=29&&e<=33}function Zy(e){return e>=129&&e<=131}function SU(e){return e>=90&&e<=92}function ep(e){return e>=58&&e<=92}function xU(e){return e>=39&&e<=59}function bU(e){return e===34}function EU(e){return Zc[e]}function PU(e){return e>=121&&e<=123}function AU(e){return e>=124&&e<=130}function Gr(e){return Hc[e]}function xa(e){return zc[e]}function vU(e){return e===57}function Pa(e){return e>=24&&e<=25}function _r(e){return kr[e]}kr[8].updateContext=e=>{e.pop()};kr[5].updateContext=kr[7].updateContext=kr[23].updateContext=e=>{e.push(Re.brace)};kr[22].updateContext=e=>{e[e.length-1]===Re.template?e.pop():e.push(Re.template)};kr[143].updateContext=e=>{e.push(Re.j_expr,Re.j_oTag)};var tp="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",pT="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",CU=new RegExp("["+tp+"]"),IU=new RegExp("["+tp+pT+"]");tp=pT=null;var fT=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],wU=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function Ic(e,t){let r=65536;for(let i=0,s=t.length;i<s;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function Tr(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&CU.test(String.fromCharCode(e)):Ic(e,fT)}function Ei(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&IU.test(String.fromCharCode(e)):Ic(e,fT)||Ic(e,wU)}var rp={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},NU=new Set(rp.keyword),OU=new Set(rp.strict),_U=new Set(rp.strictBind);function dT(e,t){return t&&e==="await"||e==="enum"}function hT(e,t){return dT(e,t)||OU.has(e)}function mT(e){return _U.has(e)}function yT(e,t){return hT(e,t)||mT(e)}function kU(e){return NU.has(e)}function DU(e,t,r){return e===64&&t===64&&Tr(r)}var LU=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 MU(e){return LU.has(e)}var js=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}},qs=class{constructor(t,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&128)return!0;if(r&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new js(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,r,i){let s=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(s,t,r,i);let n=s.names.get(t)||0;r&16?n=n|4:(s.firstLexicalName||(s.firstLexicalName=t),n=n|2),s.names.set(t,n),r&8&&this.maybeExportDefined(s,t)}else if(r&4)for(let n=this.scopeStack.length-1;n>=0&&(s=this.scopeStack[n],this.checkRedeclarationInScope(s,t,r,i),s.names.set(t,(s.names.get(t)||0)|1),this.maybeExportDefined(s,t),!(s.flags&1667));--n);this.parser.inModule&&s.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,r){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(t,r,i,s){this.isRedeclaredInScope(t,r,i)&&this.parser.raise(v.VarRedeclaration,s,{identifierName:r})}isRedeclaredInScope(t,r,i){if(!(i&1))return!1;if(i&8)return t.names.has(r);let s=t.names.get(r)||0;return i&16?(s&2)>0||!this.treatFunctionsAsVarInScope(t)&&(s&1)>0:(s&2)>0&&!(t.flags&8&&t.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(t)&&(s&4)>0}checkLocalExport(t){let{name:r}=t;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1667)return r}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1731&&!(r&4))return r}}},wc=class extends js{constructor(...t){super(...t),this.declareFunctions=new Set}},Nc=class extends qs{createScope(t){return new wc(t)}declareName(t,r,i){let s=this.currentScope();if(r&2048){this.checkRedeclarationInScope(s,t,r,i),this.maybeExportDefined(s,t),s.declareFunctions.add(t);return}super.declareName(t,r,i)}isRedeclaredInScope(t,r,i){if(super.isRedeclaredInScope(t,r,i))return!0;if(i&2048&&!t.declareFunctions.has(r)){let s=t.names.get(r);return(s&4)>0||(s&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},BU=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),pe=ar`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function FU(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function eT(e){return e.importKind==="type"||e.importKind==="typeof"}var RU={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function jU(e,t){let r=[],i=[];for(let s=0;s<e.length;s++)(t(e[s],s,e)?r:i).push(e[s]);return[r,i]}var qU=/\*?\s*@((?:no)?flow)\b/,UU=e=>class extends e{constructor(...r){super(...r),this.flowPragma=void 0}getScopeHandler(){return Nc}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(r,i){r!==134&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,i)}addComment(r){if(this.flowPragma===void 0){let i=qU.exec(r.value);if(i)if(i[1]==="flow")this.flowPragma="flow";else if(i[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let i=this.state.inType;this.state.inType=!0,this.expect(r||14);let s=this.flowParseType();return this.state.inType=i,s}flowParsePredicate(){let r=this.startNode(),i=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>i.index+1&&this.raise(pe.UnexpectedSpaceBetweenModuloChecks,i),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let i=null,s=null;return this.match(54)?(this.state.inType=r,s=this.flowParsePredicate()):(i=this.flowParseType(),this.state.inType=r,this.match(54)&&(s=this.flowParsePredicate())),[i,s]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let i=r.id=this.parseIdentifier(),s=this.startNode(),n=this.startNode();this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(10);let a=this.flowParseFunctionTypeParams();return s.params=a.params,s.rest=a.rest,s.this=a._this,this.expect(11),[s.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),i.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(i),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,i){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(i&&this.raise(pe.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,i);throw this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(134)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();let i=r.body=this.startNode(),s=i.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(pe.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),s.push(super.parseImport(o))):(this.expectContextual(125,pe.UnsupportedStatementInDeclareModule),s.push(this.flowParseDeclare(o,!0)))}this.scope.exit(),this.expect(8),this.finishNode(i,"BlockStatement");let n=null,a=!1;return s.forEach(o=>{FU(o)?(n==="CommonJS"&&this.raise(pe.AmbiguousDeclareModuleKind,o),n="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(pe.DuplicateDeclareModuleExports,o),n==="ES"&&this.raise(pe.AmbiguousDeclareModuleKind,o),n="CommonJS",a=!0)}),r.kind=n||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,i){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!i){let s=this.state.value;throw this.raise(pe.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:s,suggestion:RU[s]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"?(r.default=!1,delete r.exportKind,this.castNodeTo(r,"DeclareExportDeclaration")):this.castNodeTo(r,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let i=this.flowParseTypeAlias(r);return this.castNodeTo(i,"DeclareTypeAlias"),i}flowParseDeclareOpaqueType(r){this.next();let i=this.flowParseOpaqueType(r,!0);return this.castNodeTo(i,"DeclareOpaqueType"),i}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,i){if(r.id=this.flowParseRestrictedIdentifier(!i,!0),this.scope.declareName(r.id.name,i?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!i&&this.eat(12));if(i){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:i,allowExact:!1,allowSpread:!1,allowProto:i,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(pe.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,i,s){BU.has(r)&&this.raise(s?pe.AssignReservedType:pe.UnexpectedReservedType,i,{reservedType:r})}flowParseRestrictedIdentifierName(r,i){return this.checkReservedType(this.state.value,this.state.startLoc,i),this.parseIdentifierName(r)}flowParseRestrictedIdentifier(r,i){let s=this.startNode(),n=this.flowParseRestrictedIdentifierName(r,i);return this.createIdentifier(s,n)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,i){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,i||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameterBound(){if(this.match(14)||this.isContextual(81)){let r=this.startNode();return this.next(),r.typeAnnotation=this.flowParseType(),this.finishNode(r,"TypeAnnotation")}}flowParseTypeParameter(r=!1){let i=this.state.startLoc,s=this.startNode(),n=this.flowParseVariance();return s.name=this.flowParseRestrictedIdentifierName(),s.variance=n,s.bound=this.flowParseTypeParameterBound(),this.match(29)?(this.eat(29),s.default=this.flowParseType()):r&&this.raise(pe.MissingTypeParamDefault,i),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,i=this.startNode();i.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let s=!1;do{let n=this.flowParseTypeParameter(s);i.params.push(n),n.default&&(s=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(i,"TypeParameterDeclaration")}flowInTopLevelContext(r){if(this.curContext()!==Re.brace){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}else return r()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let r=this.startNode(),i=this.state.inType;return this.state.inType=!0,r.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=s}),this.state.inType=i,!this.state.inType&&this.curContext()===Re.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let r=this.startNode(),i=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=i,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,i,s){return r.static=i,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=s,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,i){return r.static=i,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,i){let s=this.startNode();return r.static=i,r.value=this.flowParseObjectTypeMethodish(s),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:i,allowSpread:s,allowProto:n,allowInexact:a}){let o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let u,f,h=!1;for(i&&this.match(6)?(this.expect(6),u=9,f=!0):(this.expect(5),u=8,f=!1),l.exact=f;!this.match(u);){let A=!1,P=null,w=null,b=this.startNode();if(n&&this.isContextual(118)){let D=this.lookahead();D.type!==14&&D.type!==17&&(this.next(),P=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){let D=this.lookahead();D.type!==14&&D.type!==17&&(this.next(),A=!0)}let C=this.flowParseVariance();if(this.eat(0))P!=null&&this.unexpected(P),this.eat(0)?(C&&this.unexpected(C.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(b,A))):l.indexers.push(this.flowParseObjectTypeIndexer(b,A,C));else if(this.match(10)||this.match(47))P!=null&&this.unexpected(P),C&&this.unexpected(C.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(b,A));else{let D="init";if(this.isContextual(99)||this.isContextual(104)){let k=this.lookahead();cT(k.type)&&(D=this.state.value,this.next())}let U=this.flowParseObjectTypeProperty(b,A,P,C,D,s,a??!f);U===null?(h=!0,w=this.state.lastTokStartLoc):l.properties.push(U)}this.flowObjectTypeSemicolon(),w&&!this.match(8)&&!this.match(9)&&this.raise(pe.UnexpectedExplicitInexactInObject,w)}this.expect(u),s&&(l.inexact=h);let x=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,x}flowParseObjectTypeProperty(r,i,s,n,a,o,l){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?l||this.raise(pe.InexactInsideExact,this.state.lastTokStartLoc):this.raise(pe.InexactInsideNonObject,this.state.lastTokStartLoc),n&&this.raise(pe.InexactVariance,n),null):(o||this.raise(pe.UnexpectedSpreadType,this.state.lastTokStartLoc),s!=null&&this.unexpected(s),n&&this.raise(pe.SpreadVariance,n),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=i,r.proto=s!=null,r.kind=a;let u=!1;return this.match(47)||this.match(10)?(r.method=!0,s!=null&&this.unexpected(s),n&&this.unexpected(n.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(pe.ThisParamBannedInConstructor,r.value.this)):(a!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(u=!0),r.value=this.flowParseTypeInitialiser(),r.variance=n),r.optional=u,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let i=r.kind==="get"?0:1,s=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?pe.GetterMayNotHaveThisParam:pe.SetterMayNotHaveThisParam,r.value.this),s!==i&&this.raise(r.kind==="get"?v.BadGetterArity:v.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(v.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,i){r??(r=this.state.startLoc);let s=i||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let n=this.startNodeAt(r);n.qualification=s,n.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(n,"QualifiedTypeIdentifier")}return s}flowParseGenericType(r,i){let s=this.startNodeAt(r);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(r,i),this.match(47)&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(r.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(r,"TupleTypeAnnotation")}flowParseFunctionTypeParam(r){let i=null,s=!1,n=null,a=this.startNode(),o=this.lookahead(),l=this.state.type===78;return o.type===14||o.type===17?(l&&!r&&this.raise(pe.ThisParamMustBeFirst,a),i=this.parseIdentifier(l),this.eat(17)&&(s=!0,l&&this.raise(pe.ThisParamMayNotBeOptional,a)),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),a.name=i,a.optional=s,a.typeAnnotation=n,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(r){let i=this.startNodeAt(r.loc.start);return i.name=null,i.optional=!1,i.typeAnnotation=r,this.finishNode(i,"FunctionTypeParam")}flowParseFunctionTypeParams(r=[]){let i=null,s=null;for(this.match(78)&&(s=this.flowParseFunctionTypeParam(!0),s.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(i=this.flowParseFunctionTypeParam(!1)),{params:r,rest:i,_this:s}}flowIdentToTypeAnnotation(r,i,s){switch(s.name){case"any":return this.finishNode(i,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(i,"BooleanTypeAnnotation");case"mixed":return this.finishNode(i,"MixedTypeAnnotation");case"empty":return this.finishNode(i,"EmptyTypeAnnotation");case"number":return this.finishNode(i,"NumberTypeAnnotation");case"string":return this.finishNode(i,"StringTypeAnnotation");case"symbol":return this.finishNode(i,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(s.name),this.flowParseGenericType(r,s)}}flowParsePrimaryType(){let r=this.state.startLoc,i=this.startNode(),s,n,a=!1,o=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,n=this.flowParseTupleType(),this.state.noAnonFunctionType=o,n;case 47:{let l=this.startNode();return l.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),s=this.flowParseFunctionTypeParams(),l.params=s.params,l.rest=s.rest,l.this=s._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),this.finishNode(l,"FunctionTypeAnnotation")}case 10:{let l=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(Ue(this.state.type)||this.match(78)){let u=this.lookahead().type;a=u!==17&&u!==14}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),n;this.eat(12)}return n?s=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):s=this.flowParseFunctionTypeParams(),l.params=s.params,l.rest=s.rest,l.this=s._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),l.typeParameters=null,this.finishNode(l,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return i.value=this.match(85),this.next(),this.finishNode(i,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",i);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",i);throw this.raise(pe.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(i,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(i,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(i,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(i,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(ep(this.state.type)){let l=Gr(this.state.type);return this.next(),super.createIdentifier(i,l)}else if(Ue(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,i,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let r=this.state.startLoc,i=this.flowParsePrimaryType(),s=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let n=this.startNodeAt(r),a=this.eat(18);s=s||a,this.expect(0),!a&&this.match(3)?(n.elementType=i,this.next(),i=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=i,n.indexType=this.flowParseType(),this.expect(3),s?(n.optional=a,i=this.finishNode(n,"OptionalIndexedAccessType")):i=this.finishNode(n,"IndexedAccessType"))}return i}flowParsePrefixType(){let r=this.startNode();return this.eat(17)?(r.typeAnnotation=this.flowParsePrefixType(),this.finishNode(r,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let r=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let i=this.startNodeAt(r.loc.start);return i.params=[this.reinterpretTypeAsFunctionTypeParam(r)],i.rest=null,i.this=null,i.returnType=this.flowParseType(),i.typeParameters=null,this.finishNode(i,"FunctionTypeAnnotation")}return r}flowParseIntersectionType(){let r=this.startNode();this.eat(45);let i=this.flowParseAnonFunctionWithoutParens();for(r.types=[i];this.eat(45);)r.types.push(this.flowParseAnonFunctionWithoutParens());return r.types.length===1?i:this.finishNode(r,"IntersectionTypeAnnotation")}flowParseUnionType(){let r=this.startNode();this.eat(43);let i=this.flowParseIntersectionType();for(r.types=[i];this.eat(43);)r.types.push(this.flowParseIntersectionType());return r.types.length===1?i:this.finishNode(r,"UnionTypeAnnotation")}flowParseType(){let r=this.state.inType;this.state.inType=!0;let i=this.flowParseUnionType();return this.state.inType=r,i}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let r=this.state.startLoc,i=this.parseIdentifier();return this.flowParseGenericType(r,i)}else return this.flowParseType()}flowParseTypeAnnotation(){let r=this.startNode();return r.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(r,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(){let r=this.startNode(),i=this.parseIdentifierName();return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),this.createIdentifier(r,i)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}flowParseVariance(){let r=null;return this.match(53)?(r=this.startNode(),this.state.value==="+"?r.kind="plus":r.kind="minus",this.next(),this.finishNode(r,"Variance")):r}parseFunctionBody(r,i,s=!1){if(i){this.forwardNoArrowParamsConversionAt(r,()=>super.parseFunctionBody(r,!0,s));return}super.parseFunctionBody(r,!1,s)}parseFunctionBodyAndFinish(r,i,s=!1){if(this.match(14)){let n=this.startNode();[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=n.typeAnnotation?this.finishNode(n,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,i,s)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let s=this.lookahead();if(or(s.type)){let n=this.startNode();return this.next(),this.flowParseInterface(n)}}else if(this.isContextual(126)){let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}let i=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(i)&&(this.flowPragma=null),i}parseExpressionStatement(r,i,s){if(i.type==="Identifier"){if(i.name==="declare"){if(this.match(80)||Ue(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(Ue(this.state.type)){if(i.name==="interface")return this.flowParseInterface(r);if(i.name==="type")return this.flowParseTypeAlias(r);if(i.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,i,s)}shouldParseExportDeclaration(){let{type:r}=this.state;return r===126||Zy(r)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return r===126||Zy(r)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,i,s){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let x=this.lookaheadCharCode();if(x===44||x===61||x===58||x===41)return this.setOptionalParametersError(s),r}this.expect(17);let n=this.state.clone(),a=this.state.noArrowAt,o=this.startNodeAt(i),{consequent:l,failed:u}=this.tryParseConditionalConsequent(),[f,h]=this.getArrowLikeExpressions(l);if(u||h.length>0){let x=[...a];if(h.length>0){this.state=n,this.state.noArrowAt=x;for(let A=0;A<h.length;A++)x.push(h[A].start);({consequent:l,failed:u}=this.tryParseConditionalConsequent()),[f,h]=this.getArrowLikeExpressions(l)}u&&f.length>1&&this.raise(pe.AmbiguousConditionalArrow,n.startLoc),u&&f.length===1&&(this.state=n,x.push(f[0].start),this.state.noArrowAt=x,{consequent:l,failed:u}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(l,!0),this.state.noArrowAt=a,this.expect(14),o.test=r,o.consequent=l,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),i=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:i}}getArrowLikeExpressions(r,i){let s=[r],n=[];for(;s.length!==0;){let a=s.pop();a.type==="ArrowFunctionExpression"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):n.push(a),a.body.type!=="BlockStatement"&&s.push(a.body)):a.type==="ConditionalExpression"&&(s.push(a.consequent),s.push(a.alternate))}return i?(n.forEach(a=>this.finishArrowValidation(a)),[n,[]]):jU(n,a=>a.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){var i;this.toAssignableList(r.params,(i=r.extra)==null?void 0:i.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,i){let s;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),s=i(),this.state.noArrowParamsConversionAt.pop()):s=i(),s}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let n=this.startNodeAt(i);return n.expression=s,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return s}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let i=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(i)}else if(this.isContextual(131)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseOpaqueType(i,!1)}else if(this.isContextual(129)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseInterface(i)}else if(this.isContextual(126)){r.exportKind="value";let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:i}=this.state,s=super.maybeParseExportNamespaceSpecifier(r);return s&&r.exportKind==="type"&&this.unexpected(i),s}parseClassId(r,i,s){super.parseClassId(r,i,s),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,i,s){let{startLoc:n}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,i))return;i.declare=!0}super.parseClassMember(r,i,s),i.declare&&(i.type!=="ClassProperty"&&i.type!=="ClassPrivateProperty"&&i.type!=="PropertyDefinition"?this.raise(pe.DeclareClassElement,n):i.value&&this.raise(pe.DeclareClassFieldInitializer,i.value))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),i="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(v.InvalidIdentifier,this.state.curPosition(),{identifierName:i}),this.finishToken(132,i)}getTokenFromCode(r){let i=this.input.charCodeAt(this.state.pos+1);r===123&&i===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?i===46?this.finishOp(18,2):this.finishOp(17,1):DU(r,i,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,i){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,i):super.isAssignable(r,i)}toAssignable(r,i=!1){!i&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,i)}toAssignableList(r,i,s){for(let n=0;n<r.length;n++){let a=r[n];a?.type==="TypeCastExpression"&&(r[n]=this.typeCastToParameter(a))}super.toAssignableList(r,i,s)}toReferencedList(r,i){for(let n=0;n<r.length;n++){var s;let a=r[n];a&&a.type==="TypeCastExpression"&&!((s=a.extra)!=null&&s.parenthesized)&&(r.length>1||!i)&&this.raise(pe.TypeCastInPattern,a.typeAnnotation)}return r}parseArrayLike(r,i,s){let n=super.parseArrayLike(r,i,s);return s!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}isValidLVal(r,i,s,n){return r==="TypeCastExpression"||super.isValidLVal(r,i,s,n)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,i,s,n,a,o){if(i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,i,s,n,a,o),i.params&&a){let l=i.params;l.length>0&&this.isThisParam(l[0])&&this.raise(pe.ThisParamBannedInConstructor,i)}else if(i.type==="MethodDefinition"&&a&&i.value.params){let l=i.value.params;l.length>0&&this.isThisParam(l[0])&&this.raise(pe.ThisParamBannedInConstructor,i)}}pushClassPrivateMethod(r,i,s,n){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,i,s,n)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let i=r.implements=[];do{let s=this.startNode();s.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?s.typeParameters=this.flowParseTypeParameterInstantiation():s.typeParameters=null,i.push(this.finishNode(s,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let i=this.getObjectOrClassMethodParams(r);if(i.length>0){let s=i[0];this.isThisParam(s)&&r.kind==="get"?this.raise(pe.GetterMayNotHaveThisParam,s):this.isThisParam(s)&&this.raise(pe.SetterMayNotHaveThisParam,s)}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,i,s,n,a,o,l){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let u;this.match(47)&&!o&&(u=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let f=super.parseObjPropValue(r,i,s,n,a,o,l);return u&&((f.value||f).typeParameters=u),f}parseFunctionParamType(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(pe.PatternIsOptional,r),this.isThisParam(r)&&this.raise(pe.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(pe.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(pe.ThisParamNoDefault,r),this.resetEndLocation(r),r}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(pe.TypeBeforeInitializer,s.typeAnnotation),s}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(pe.ImportReflectionHasImportType,r.specifiers[0].loc.start)}parseImportSpecifierLocal(r,i,s){i.local=eT(r)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),r.specifiers.push(this.finishImportSpecifier(i,s))}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){if(!r)return!0;let i=this.lookaheadCharCode();return i===123||i===42}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,n){if(super.applyImportPhase(r,i,s,n),i){if(!s&&this.match(65))return;r.exportKind=s==="type"?s:"value"}else s==="type"&&this.match(55)&&this.unexpected(),r.importKind=s==="type"||s==="typeof"?s:"value"}parseImportSpecifier(r,i,s,n,a){let o=r.imported,l=null;o.type==="Identifier"&&(o.name==="type"?l="type":o.name==="typeof"&&(l="typeof"));let u=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let h=this.parseIdentifier(!0);l!==null&&!or(this.state.type)?(r.imported=h,r.importKind=l,r.local=this.cloneIdentifier(h)):(r.imported=o,r.importKind=null,r.local=this.parseIdentifier())}else{if(l!==null&&or(this.state.type))r.imported=this.parseIdentifier(!0),r.importKind=l;else{if(i)throw this.raise(v.ImportBindingIsString,r,{importName:o.value});r.imported=o,r.importKind=null}this.eatContextual(93)?r.local=this.parseIdentifier():(u=!0,r.local=this.cloneIdentifier(r.imported))}let f=eT(r);return s&&f&&this.raise(pe.ImportTypeShorthandOnlyInPureImport,r),(s||f)&&this.checkReservedType(r.local.name,r.local.loc.start,!0),u&&!s&&!f&&this.checkReservedWord(r.local.name,r.loc.start,!0,!0),this.finishImportSpecifier(r,"ImportSpecifier")}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(r,i){let s=r.kind;s!=="get"&&s!=="set"&&this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),this.match(14)&&(r.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){if(this.match(14)){let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,r.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=s}return super.parseAsyncArrowFromCallExpression(r,i)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(r,i){var s;let n=null,a;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(r,i),n),!a.error)return a.node;let{context:u}=this.state,f=u[u.length-1];(f===Re.j_oTag||f===Re.j_expr)&&u.pop()}if((s=a)!=null&&s.error||this.match(47)){var o,l;n=n||this.state.clone();let u,f=this.tryParse(x=>{var A;u=this.flowParseTypeParameterDeclaration();let P=this.forwardNoArrowParamsConversionAt(u,()=>{let b=super.parseMaybeAssign(r,i);return this.resetStartLocationFromNode(b,u),b});(A=P.extra)!=null&&A.parenthesized&&x();let w=this.maybeUnwrapTypeCastExpression(P);return w.type!=="ArrowFunctionExpression"&&x(),w.typeParameters=u,this.resetStartLocationFromNode(w,u),P},n),h=null;if(f.node&&this.maybeUnwrapTypeCastExpression(f.node).type==="ArrowFunctionExpression"){if(!f.error&&!f.aborted)return f.node.async&&this.raise(pe.UnexpectedTypeParameterBeforeAsyncArrowFunction,u),f.node;h=f.node}if((o=a)!=null&&o.node)return this.state=a.failState,a.node;if(h)return this.state=f.failState,h;throw(l=a)!=null&&l.thrown?a.error:f.thrown?f.error:this.raise(pe.UnexpectedTokenAfterTypeParameter,u)}return super.parseMaybeAssign(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(()=>{let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let n=this.startNode();return[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=s,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});if(i.thrown)return null;i.error&&(this.state=i.failState),r.returnType=i.node.typeAnnotation?this.finishNode(i.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,i){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?r.params=i:super.setArrowFunctionParameters(r,i)}checkParams(r,i,s,n=!0){if(!(s&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))){for(let a=0;a<r.params.length;a++)this.isThisParam(r.params[a])&&a>0&&this.raise(pe.ThisParamMustBeFirst,r.params[a]);super.checkParams(r,i,s,n)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(r,i,s){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(i.index)){this.next();let n=this.startNodeAt(i);n.callee=r,n.arguments=super.parseCallExpressionArguments(),r=this.finishNode(n,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let n=this.state.clone(),a=this.tryParse(l=>this.parseAsyncArrowWithTypeParameters(i)||l(),n);if(!a.error&&!a.aborted)return a.node;let o=this.tryParse(()=>super.parseSubscripts(r,i,s),n);if(o.node&&!o.error)return o.node;if(a.node)return this.state=a.failState,a.node;if(o.node)return this.state=o.failState,o.node;throw a.error||o.error}return super.parseSubscripts(r,i,s)}parseSubscript(r,i,s,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,s)return n.stop=!0,r;this.next();let a=this.startNodeAt(i);return a.callee=r,a.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),a.arguments=this.parseCallExpressionArguments(),a.optional=!0,this.finishCallExpression(a,!0)}else if(!s&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let a=this.startNodeAt(i);a.callee=r;let o=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(),n.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,n.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,i,s,n)}parseNewCallee(r){super.parseNewCallee(r);let i=null;this.shouldParseTypes()&&this.match(47)&&(i=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=i}parseAsyncArrowWithTypeParameters(r){let i=this.startNodeAt(r);if(this.parseFunctionParams(i,!1),!!this.parseArrow(i))return super.parseArrowExpression(i,void 0,!0)}readToken_mult_modulo(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===42&&i===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===124&&i===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,i){let s=super.parseTopLevel(r,i);return this.state.hasFlowComment&&this.raise(pe.UnterminatedFlowComment,this.state.curPosition()),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(pe.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,i=2;for(;[32,9].includes(this.input.charCodeAt(r+i));)i++;let s=this.input.charCodeAt(i+r),n=this.input.charCodeAt(i+r+1);return s===58&&n===58?i+2:this.input.slice(i+r,i+r+12)==="flow-include"?i+12:s===58&&n!==58?i:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(v.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:i,memberName:s}){this.raise(pe.EnumBooleanMemberNotInitialized,r,{memberName:s,enumName:i})}flowEnumErrorInvalidMemberInitializer(r,i){return this.raise(i.explicitType?i.explicitType==="symbol"?pe.EnumInvalidMemberInitializerSymbolType:pe.EnumInvalidMemberInitializerPrimaryType:pe.EnumInvalidMemberInitializerUnknownType,r,i)}flowEnumErrorNumberMemberNotInitialized(r,i){this.raise(pe.EnumNumberMemberNotInitialized,r,i)}flowEnumErrorStringMemberInconsistentlyInitialized(r,i){this.raise(pe.EnumStringMemberInconsistentlyInitialized,r,i)}flowEnumMemberInit(){let r=this.state.startLoc,i=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let s=this.parseNumericLiteral(this.state.value);return i()?{type:"number",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 134:{let s=this.parseStringLiteral(this.state.value);return i()?{type:"string",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 85:case 86:{let s=this.parseBooleanLiteral(this.match(85));return i()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,i=this.parseIdentifier(!0),s=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:i,init:s}}flowEnumCheckExplicitTypeMismatch(r,i,s){let{explicitType:n}=i;n!==null&&n!==s&&this.flowEnumErrorInvalidMemberInitializer(r,i)}flowEnumMembers({enumName:r,explicitType:i}){let s=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let o=this.startNode(),{id:l,init:u}=this.flowEnumMemberRaw(),f=l.name;if(f==="")continue;/^[a-z]/.test(f)&&this.raise(pe.EnumInvalidMemberName,l,{memberName:f,suggestion:f[0].toUpperCase()+f.slice(1),enumName:r}),s.has(f)&&this.raise(pe.EnumDuplicateMemberName,l,{memberName:f,enumName:r}),s.add(f);let h={enumName:r,explicitType:i,memberName:f};switch(o.id=l,u.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(u.loc,h,"boolean"),o.init=u.value,n.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(u.loc,h,"number"),o.init=u.value,n.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(u.loc,h,"string"),o.init=u.value,n.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(u.loc,h);case"none":switch(i){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(u.loc,h);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(u.loc,h);break;default:n.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:n,hasUnknownMembers:a}}flowEnumStringMembers(r,i,{enumName:s}){if(r.length===0)return i;if(i.length===0)return r;if(i.length>r.length){for(let n of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:s});return i}else{for(let n of i)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:s});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!Ue(this.state.type))throw this.raise(pe.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:i}=this.state;return this.next(),i!=="boolean"&&i!=="number"&&i!=="string"&&i!=="symbol"&&this.raise(pe.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:i}),i}flowEnumBody(r,i){let s=i.name,n=i.loc.start,a=this.flowEnumParseExplicitType({enumName:s});this.expect(5);let{members:o,hasUnknownMembers:l}=this.flowEnumMembers({enumName:s,explicitType:a});switch(r.hasUnknownMembers=l,a){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let u=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let f=o.booleanMembers.length,h=o.numberMembers.length,x=o.stringMembers.length,A=o.defaultedMembers.length;if(!f&&!h&&!x&&!A)return u();if(!f&&!h)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!h&&!x&&f>=A){for(let P of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(P.loc.start,{enumName:s,memberName:P.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!f&&!x&&h>=A){for(let P of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(P.loc.start,{enumName:s,memberName:P.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(pe.EnumInconsistentMemberValues,n,{enumName:s}),u()}}}flowParseEnumDeclaration(r){let i=this.parseIdentifier();return r.id=i,r.body=this.flowEnumBody(this.startNode(),i),this.finishNode(r,"EnumDeclaration")}jsxParseOpeningElementAfterName(r){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(r.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(r)}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let i=this.input.charCodeAt(r+1);return i!==60&&i!==61}return!1}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},KU={__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"},VU=/\r\n|[\r\n\u2028\u2029]/,Ta=new RegExp(VU.source,"g");function Yi(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function tT(e,t,r){for(let i=t;i<r;i++)if(Yi(e.charCodeAt(i)))return!0;return!1}var Ec=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Pc=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function $U(e){switch(e){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}}var xi=ar`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function zr(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function Xi(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return Xi(e.object)+"."+Xi(e.property);throw new Error("Node had unexpected type: "+e.type)}var JU=e=>class extends e{jsxReadToken(){let r="",i=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(xi.UnterminatedJsxContent,this.state.startLoc);let s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:if(this.state.pos===this.state.start){s===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(s);return}r+=this.input.slice(i,this.state.pos),this.finishToken(142,r);return;case 38:r+=this.input.slice(i,this.state.pos),r+=this.jsxReadEntity(),i=this.state.pos;break;default:Yi(s)?(r+=this.input.slice(i,this.state.pos),r+=this.jsxReadNewLine(!0),i=this.state.pos):++this.state.pos}}}jsxReadNewLine(r){let i=this.input.charCodeAt(this.state.pos),s;return++this.state.pos,i===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,s=r?`
27
27
  `:`\r
28
- `):s=String.fromCharCode(i),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(r){let i="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(v.UnterminatedString,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);if(n===r)break;n===38?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadEntity(),s=this.state.pos):Xi(n)?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}i+=this.input.slice(s,this.state.pos++),this.finishToken(134,i)}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let i=10;this.codePointAtPos(this.state.pos)===120&&(i=16,++this.state.pos);let s=this.readInt(i,void 0,!1,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(s)}else{let i=0,s=!1;for(;i++<10&&this.state.pos<this.length&&!(s=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(s){let n=this.input.slice(r,this.state.pos),a=FU[n];if(++this.state.pos,a)return a}}return this.state.pos=r,"&"}jsxReadWord(){let r,i=this.state.pos;do r=this.input.charCodeAt(++this.state.pos);while(bi(r)||r===45);this.finishToken(141,this.input.slice(i,this.state.pos))}jsxParseIdentifier(){let r=this.startNode();return this.match(141)?r.name=this.state.value:Qc(this.state.type)?r.name=Gr(this.state.type):this.unexpected(),this.next(),this.finishNode(r,"JSXIdentifier")}jsxParseNamespacedName(){let r=this.state.startLoc,i=this.jsxParseIdentifier();if(!this.eat(14))return i;let s=this.startNodeAt(r);return s.namespace=i,s.name=this.jsxParseIdentifier(),this.finishNode(s,"JSXNamespacedName")}jsxParseElementName(){let r=this.state.startLoc,i=this.jsxParseNamespacedName();if(i.type==="JSXNamespacedName")return i;for(;this.eat(16);){let s=this.startNodeAt(r);s.object=i,s.property=this.jsxParseIdentifier(),i=this.finishNode(s,"JSXMemberExpression")}return i}jsxParseAttributeValue(){let r;switch(this.state.type){case 5:return r=this.startNode(),this.setContext(Re.brace),this.next(),r=this.jsxParseExpressionContainer(r,Re.j_oTag),r.expression.type==="JSXEmptyExpression"&&this.raise(gi.AttributeIsEmpty,r),r;case 143:case 134:return this.parseExprAtom();default:throw this.raise(gi.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let r=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(r,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(r){return this.next(),r.expression=this.parseExpression(),this.setContext(Re.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadChild")}jsxParseExpressionContainer(r,i){if(this.match(8))r.expression=this.jsxParseEmptyExpression();else{let s=this.parseExpression();r.expression=s}return this.setContext(i),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){let r=this.startNode();return this.match(5)?(this.setContext(Re.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(Re.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadAttribute")):(r.name=this.jsxParseNamespacedName(),r.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(r,"JSXAttribute"))}jsxParseOpeningElementAt(r){let i=this.startNodeAt(r);return this.eat(144)?this.finishNode(i,"JSXOpeningFragment"):(i.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(i))}jsxParseOpeningElementAfterName(r){let i=[];for(;!this.match(56)&&!this.match(144);)i.push(this.jsxParseAttribute());return r.attributes=i,r.selfClosing=this.eat(56),this.expect(144),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){let i=this.startNodeAt(r);return this.eat(144)?this.finishNode(i,"JSXClosingFragment"):(i.name=this.jsxParseElementName(),this.expect(144),this.finishNode(i,"JSXClosingElement"))}jsxParseElementAt(r){let i=this.startNodeAt(r),s=[],n=this.jsxParseOpeningElementAt(r),a=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 143:if(r=this.state.startLoc,this.next(),this.eat(56)){a=this.jsxParseClosingElementAt(r);break e}s.push(this.jsxParseElementAt(r));break;case 142:s.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let o=this.startNode();this.setContext(Re.brace),this.next(),this.match(21)?s.push(this.jsxParseSpreadChild(o)):s.push(this.jsxParseExpressionContainer(o,Re.j_expr));break}default:this.unexpected()}zr(n)&&!zr(a)&&a!==null?this.raise(gi.MissingClosingTagFragment,a):!zr(n)&&zr(a)?this.raise(gi.MissingClosingTagElement,a,{openingTagName:Ji(n.name)}):!zr(n)&&!zr(a)&&Ji(a.name)!==Ji(n.name)&&this.raise(gi.MissingClosingTagElement,a,{openingTagName:Ji(n.name)})}if(zr(n)?(i.openingFragment=n,i.closingFragment=a):(i.openingElement=n,i.closingElement=a),i.children=s,this.match(47))throw this.raise(gi.UnwrappedAdjacentJSXElements,this.state.startLoc);return zr(n)?this.finishNode(i,"JSXFragment"):this.finishNode(i,"JSXElement")}jsxParseElement(){let r=this.state.startLoc;return this.next(),this.jsxParseElementAt(r)}setContext(r){let{context:i}=this.state;i[i.length-1]=r}parseExprAtom(r){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(r)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(r){let i=this.curContext();if(i===Re.j_expr){this.jsxReadToken();return}if(i===Re.j_oTag||i===Re.j_cTag){if(Tr(r)){this.jsxReadWord();return}if(r===62){++this.state.pos,this.finishToken(144);return}if((r===34||r===39)&&i===Re.j_oTag){this.jsxReadString(r);return}}if(r===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(r)}updateContext(r){let{context:i,type:s}=this.state;if(s===56&&r===143)i.splice(-2,2,Re.j_cTag),this.state.canStartJSXElement=!1;else if(s===143)i.push(Re.j_oTag);else if(s===144){let n=i[i.length-1];n===Re.j_oTag&&r===56||n===Re.j_cTag?(i.pop(),this.state.canStartJSXElement=i[i.length-1]===Re.j_expr):(this.setContext(Re.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=pU(s)}},wc=class extends Rs{constructor(...t){super(...t),this.tsNames=new Map}},Nc=class extends js{constructor(...t){super(...t),this.importsStack=[]}createScope(t){return this.importsStack.push(new Set),new wc(t)}enter(t){t===1024&&this.importsStack.push(new Set),super.enter(t)}exit(){let t=super.exit();return t===1024&&this.importsStack.pop(),t}hasImport(t,r){let i=this.importsStack.length;if(this.importsStack[i-1].has(t))return!0;if(!r&&i>1){for(let s=0;s<i-1;s++)if(this.importsStack[s].has(t))return!0}return!1}declareName(t,r,i){if(r&4096){this.hasImport(t,!0)&&this.parser.raise(v.VarRedeclaration,i,{identifierName:t}),this.importsStack[this.importsStack.length-1].add(t);return}let s=this.currentScope(),n=s.tsNames.get(t)||0;if(r&1024){this.maybeExportDefined(s,t),s.tsNames.set(t,n|16);return}super.declareName(t,r,i),r&2&&(r&1||(this.checkRedeclarationInScope(s,t,r,i),this.maybeExportDefined(s,t)),n=n|1),r&256&&(n=n|2),r&512&&(n=n|4),r&128&&(n=n|8),n&&s.tsNames.set(t,n)}isRedeclaredInScope(t,r,i){let s=t.tsNames.get(r);if((s&2)>0){if(i&256){let n=!!(i&512),a=(s&4)>0;return n!==a}return!0}return i&128&&(s&8)>0?t.names.get(r)&2?!!(i&1):!1:i&2&&(s&1)>0?!0:super.isRedeclaredInScope(t,r,i)}checkLocalExport(t){let{name:r}=t;if(this.hasImport(r))return;let i=this.scopeStack.length;for(let s=i-1;s>=0;s--){let a=this.scopeStack[s].tsNames.get(r);if((a&1)>0||(a&16)>0)return}super.checkLocalExport(t)}},Oc=class{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function ba(e,t){return(e?2:0)|(t?1:0)}var _c=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(t){return t+this.startIndex}offsetToSourcePos(t){return t-this.startIndex}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[r,i]=t;if(!this.hasPlugin(r))return!1;let s=this.plugins.get(r);for(let n of Object.keys(i))if(s?.[n]!==i[n])return!1;return!0}}getPluginOption(t,r){var i;return(i=this.plugins.get(t))==null?void 0:i[r]}};function hT(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function qU(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function qs(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function nr(e,t,r){let i=null,s=t.length;for(;i===null&&s>0;)i=t[--s];i===null||i.start>r.start?qs(e,r.comments):hT(i,r.comments)}var kc=class extends _c{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(t),this.state.commentsLen++}processComment(t){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let s=i-1,n=r[s];n.start===t.end&&(n.leadingNode=t,s--);let{start:a}=t;for(;s>=0;s--){let o=r[s],l=o.end;if(l>a)o.containingNode=t,this.finalizeComment(o),r.splice(s,1);else{l===a&&(o.trailingNode=t);break}}}finalizeComment(t){var r;let{comments:i}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&hT(t.leadingNode,i),t.trailingNode!==null&&qU(t.trailingNode,i);else{let s=t.containingNode,n=t.start;if(this.input.charCodeAt(this.offsetToSourcePos(n)-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":nr(s,s.properties,t);break;case"CallExpression":case"NewExpression":case"OptionalCallExpression":nr(s,s.arguments,t);break;case"ImportExpression":nr(s,[s.source,(r=s.options)!=null?r:null],t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":case"TSTypeParameterDeclaration":nr(s,s.params,t);break;case"ArrayExpression":case"ArrayPattern":nr(s,s.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":nr(s,s.specifiers,t);break;case"TSEnumDeclaration":nr(s,s.members,t);break;case"TSEnumBody":nr(s,s.members,t);break;case"TSInterfaceBody":nr(s,s.body,t);break;default:{if(s.type==="RecordExpression"){nr(s,s.properties,t);break}if(s.type==="TupleExpression"){nr(s,s.elements,t);break}qs(s,i)}}else qs(s,i)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let r=t.length-1;r>=0;r--)this.finalizeComment(t[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:r}=this.state,{length:i}=r;if(i===0)return;let s=r[i-1];s.leadingNode===t&&(s.leadingNode=null)}takeSurroundingComments(t,r,i){let{commentStack:s}=this.state,n=s.length;if(n===0)return;let a=n-1;for(;a>=0;a--){let o=s[a],l=o.end;if(o.start===i)o.leadingNode=t;else if(l===r)o.trailingNode=t;else if(l<r)break}}},Dc=class e{constructor(){this.flags=1024,this.startIndex=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.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[Re.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:r,startIndex:i,startLine:s,startColumn:n}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.startIndex=i,this.curLine=s,this.lineStart=-n,this.startLoc=this.endLoc=new Sr(s,n,i)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new Sr(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new e;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},UU=function(t){return t>=48&&t<=57},Zy={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Sa={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function eT(e,t,r,i,s,n){let a=r,o=i,l=s,u="",f=null,h=r,{length:g}=t;for(;;){if(r>=g){n.unterminated(a,o,l),u+=t.slice(h,r);break}let b=t.charCodeAt(r);if(KU(e,b,t,r)){u+=t.slice(h,r);break}if(b===92){u+=t.slice(h,r);let E=VU(t,r,i,s,e==="template",n);E.ch===null&&!f?f={pos:r,lineStart:i,curLine:s}:u+=E.ch,{pos:r,lineStart:i,curLine:s}=E,h=r}else b===8232||b===8233?(++r,++s,i=r):b===10||b===13?e==="template"?(u+=t.slice(h,r)+`
29
- `,++r,b===13&&t.charCodeAt(r)===10&&++r,++s,h=i=r):n.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:f,lineStart:i,curLine:s,containsInvalid:!!f}}function KU(e,t,r,i){return e==="template"?t===96||t===36&&r.charCodeAt(i+1)===123:t===(e==="double"?34:39)}function VU(e,t,r,i,s,n){let a=!s;t++;let o=u=>({pos:t,ch:u,lineStart:r,curLine:i}),l=e.charCodeAt(t++);switch(l){case 110:return o(`
30
- `);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=Lc(e,t,r,i,2,!1,a,n),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=yT(e,t,r,i,a,n),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++i;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);n.strictNumericEscape(t-1,r,i);default:if(l>=48&&l<=55){let u=t-1,h=/^[0-7]+/.exec(e.slice(u,t+2))[0],g=parseInt(h,8);g>255&&(h=h.slice(0,-1),g=parseInt(h,8)),t+=h.length-1;let b=e.charCodeAt(t);if(h!=="0"||b===56||b===57){if(s)return o(null);n.strictNumericEscape(u,r,i)}return o(String.fromCharCode(g))}return o(String.fromCharCode(l))}}function Lc(e,t,r,i,s,n,a,o){let l=t,u;return{n:u,pos:t}=mT(e,t,r,i,16,s,n,!1,o,!a),u===null&&(a?o.invalidEscapeSequence(l,r,i):t=l-1),{code:u,pos:t}}function mT(e,t,r,i,s,n,a,o,l,u){let f=t,h=s===16?Zy.hex:Zy.decBinOct,g=s===16?Sa.hex:s===10?Sa.dec:s===8?Sa.oct:Sa.bin,b=!1,E=0;for(let w=0,A=n??1/0;w<A;++w){let I=e.charCodeAt(t),k;if(I===95&&o!=="bail"){let Y=e.charCodeAt(t-1),B=e.charCodeAt(t+1);if(o){if(Number.isNaN(B)||!g(B)||h.has(Y)||h.has(B)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,i)}}else{if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,i)}++t;continue}if(I>=97?k=I-97+10:I>=65?k=I-65+10:UU(I)?k=I-48:k=1/0,k>=s){if(k<=9&&u)return{n:null,pos:t};if(k<=9&&l.invalidDigit(t,r,i,s))k=0;else if(a)k=0,b=!0;else break}++t,E=E*s+k}return t===f||n!=null&&t-f!==n||b?{n:null,pos:t}:{n:E,pos:t}}function yT(e,t,r,i,s,n){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=Lc(e,t,r,i,e.indexOf("}",t)-t,!0,s,n),++t,o!==null&&o>1114111)if(s)n.invalidCodePoint(t,r,i);else return{code:null,pos:t}}else({code:o,pos:t}=Lc(e,t,r,i,4,!1,s,n));return{code:o,pos:t}}function Ls(e,t,r){return new Sr(r,e-t,e)}var $U=new Set([103,109,115,105,121,117,100,118]),yr=class{constructor(t){let r=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=r+t.start,this.end=r+t.end,this.loc=new Wi(t.startLoc,t.endLoc)}},Mc=class extends kc{constructor(t,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(i,s,n,a)=>this.optionFlags&2048?(this.raise(v.InvalidDigit,Ls(i,s,n),{radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(v.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(v.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(v.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(v.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(i,s,n)=>{this.recordStrictModeErrors(v.StrictNumericEscape,Ls(i,s,n))},unterminated:(i,s,n)=>{throw this.raise(v.UnterminatedString,Ls(i-1,s,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(v.StrictNumericEscape),unterminated:(i,s,n)=>{throw this.raise(v.UnterminatedTemplate,Ls(i,s,n))}}),this.state=new Dc,this.state.init(t),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new yr(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=t,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return xc.lastIndex=t,xc.test(this.input)?xc.lastIndex:t}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(t){return this.input.charCodeAt(this.nextTokenStartSince(t))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return bc.lastIndex=t,bc.test(this.input)?bc.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let r=this.input.charCodeAt(t);if((r&64512)===55296&&++t<this.input.length){let i=this.input.charCodeAt(t);(i&64512)===56320&&(r=65536+((r&1023)<<10)+(i&1023))}return r}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach(([r,i])=>this.raise(r,i)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let r;this.isLookahead||(r=this.state.curPosition());let i=this.state.pos,s=this.input.indexOf(t,i+2);if(s===-1)throw this.raise(v.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+t.length,Ta.lastIndex=i+2;Ta.test(this.input)&&Ta.lastIndex<=s;)++this.state.curLine,this.state.lineStart=Ta.lastIndex;if(this.isLookahead)return;let n={type:"CommentBlock",value:this.input.slice(i+2,s),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(s+t.length),loc:new Wi(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(n),n}skipLineComment(t){let r=this.state.pos,i;this.isLookahead||(i=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!Xi(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let n=this.state.pos,o={type:"CommentLine",value:this.input.slice(r+t,n),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(n),loc:new Wi(i,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(o),o}skipSpace(){let t=this.state.pos,r=this.optionFlags&4096?[]:null;e:for(;this.state.pos<this.length;){let i=this.input.charCodeAt(this.state.pos);switch(i){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 s=this.skipBlockComment("*/");s!==void 0&&(this.addComment(s),r?.push(s));break}case 47:{let s=this.skipLineComment(2);s!==void 0&&(this.addComment(s),r?.push(s));break}default:break e}break;default:if(RU(i))++this.state.pos;else if(i===45&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===45&&this.input.charCodeAt(s+2)===62&&(t===0||this.state.lineStart>t)){let n=this.skipLineComment(3);n!==void 0&&(this.addComment(n),r?.push(n))}else break e}else if(i===60&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===33&&this.input.charCodeAt(s+2)===45&&this.input.charCodeAt(s+3)===45){let n=this.skipLineComment(4);n!==void 0&&(this.addComment(n),r?.push(n))}else break e}else break e}}if(r?.length>0){let i=this.state.pos,s={start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(i),comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(t,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let i=this.state.type;this.state.type=t,this.state.value=r,this.isLookahead||this.updateContext(i)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,r=this.codePointAtPos(t);if(r>=48&&r<=57)throw this.raise(v.UnexpectedDigitAfterHash,this.state.curPosition());if(r===123||r===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(r===123?v.RecordExpressionHashIncorrectStartSyntaxType:v.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,r===123?this.finishToken(7):this.finishToken(1)}else Tr(r)?(++this.state.pos,this.finishToken(139,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===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 t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;let r=this.state.pos;for(this.state.pos+=1;!Xi(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);let i=this.input.slice(r+2,this.state.pos);return this.finishToken(28,i),!0}readToken_mult_modulo(t){let r=t===42?55:54,i=1,s=this.input.charCodeAt(this.state.pos+1);t===42&&s===42&&(i++,s=this.input.charCodeAt(this.state.pos+2),r=57),s===61&&!this.state.inType&&(i++,r=t===37?33:30),this.finishOp(r,i)}readToken_pipe_amp(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(t===124?41:42,2);return}if(t===124){if(r===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&r===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(v.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&r===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(v.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(r===61){this.finishOp(30,2);return}this.finishOp(t===124?43:45,1)}readToken_caret(){let t=this.input.charCodeAt(this.state.pos+1);t===61&&!this.state.inType?this.finishOp(32,2):t===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}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(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.finishOp(34,2);return}r===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===60){if(this.input.charCodeAt(t+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(r===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===62){let i=this.input.charCodeAt(t+2)===62?3:2;if(this.input.charCodeAt(t+i)===61){this.finishOp(30,i+1);return}this.finishOp(52,i);return}if(r===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(t===61&&r===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(t===61?29:35,1)}readToken_question(){let t=this.input.charCodeAt(this.state.pos+1),r=this.input.charCodeAt(this.state.pos+2);t===63?r===61?this.finishOp(30,3):this.finishOp(40,2):t===46&&!(r>=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(v.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(v.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Tr(t)){this.readWord(t);return}}throw this.raise(v.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,r){let i=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(t,i)}readRegexp(){let t=this.state.startLoc,r=this.state.start+1,i,s,{pos:n}=this.state;for(;;++n){if(n>=this.length)throw this.raise(v.UnterminatedRegExp,kt(t,1));let u=this.input.charCodeAt(n);if(Xi(u))throw this.raise(v.UnterminatedRegExp,kt(t,1));if(i)i=!1;else{if(u===91)s=!0;else if(u===93&&s)s=!1;else if(u===47&&!s)break;i=u===92}}let a=this.input.slice(r,n);++n;let o="",l=()=>kt(t,n+2-r);for(;n<this.length;){let u=this.codePointAtPos(n),f=String.fromCharCode(u);if($U.has(u))u===118?o.includes("u")&&this.raise(v.IncompatibleRegExpUVFlags,l()):u===117&&o.includes("v")&&this.raise(v.IncompatibleRegExpUVFlags,l()),o.includes(f)&&this.raise(v.DuplicateRegExpFlags,l());else if(bi(u)||u===92)this.raise(v.MalformedRegExpFlags,l());else break;++n,o+=f}this.state.pos=n,this.finishToken(138,{pattern:a,flags:o})}readInt(t,r,i=!1,s=!0){let{n,pos:a}=mT(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,r,i,s,this.errorHandlers_readInt,!1);return this.state.pos=a,n}readRadixNumber(t){let r=this.state.pos,i=this.state.curPosition(),s=!1;this.state.pos+=2;let n=this.readInt(t);n==null&&this.raise(v.InvalidDigit,kt(i,2),{radix:t});let a=this.input.charCodeAt(this.state.pos);if(a===110)++this.state.pos,s=!0;else if(a===109)throw this.raise(v.InvalidDecimal,i);if(Tr(this.codePointAtPos(this.state.pos)))throw this.raise(v.NumberIdentifier,this.state.curPosition());if(s){let o=this.input.slice(r,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,o);return}this.finishToken(135,n)}readNumber(t){let r=this.state.pos,i=this.state.curPosition(),s=!1,n=!1,a=!1,o=!1;!t&&this.readInt(10)===null&&this.raise(v.InvalidNumber,this.state.curPosition());let l=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(l){let b=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(v.StrictOctalLiteral,i),!this.state.strict){let E=b.indexOf("_");E>0&&this.raise(v.ZeroDigitNumericSeparator,kt(i,E))}o=l&&!/[89]/.test(b)}let u=this.input.charCodeAt(this.state.pos);if(u===46&&!o&&(++this.state.pos,this.readInt(10),s=!0,u=this.input.charCodeAt(this.state.pos)),(u===69||u===101)&&!o&&(u=this.input.charCodeAt(++this.state.pos),(u===43||u===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(v.InvalidOrMissingExponent,i),s=!0,a=!0,u=this.input.charCodeAt(this.state.pos)),u===110&&((s||l)&&this.raise(v.InvalidBigIntLiteral,i),++this.state.pos,n=!0),u===109){this.expectPlugin("decimal",this.state.curPosition()),(a||l)&&this.raise(v.InvalidDecimal,i),++this.state.pos;var f=!0}if(Tr(this.codePointAtPos(this.state.pos)))throw this.raise(v.NumberIdentifier,this.state.curPosition());let h=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(n){this.finishToken(136,h);return}if(f){this.finishToken(137,h);return}let g=o?parseInt(h,8):parseFloat(h);this.finishToken(135,g)}readCodePoint(t){let{code:r,pos:i}=yT(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=i,r}readString(t){let{str:r,pos:i,curLine:s,lineStart:n}=eT(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=i+1,this.state.lineStart=n,this.state.curLine=s,this.finishToken(134,r)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:r,firstInvalidLoc:i,pos:s,curLine:n,lineStart:a}=eT("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=s+1,this.state.lineStart=a,this.state.curLine=n,i&&(this.state.firstInvalidTemplateEscapePos=new Sr(i.curLine,i.pos-i.lineStart,this.sourceToOffsetPos(i.pos))),this.input.codePointAt(s)===96?this.finishToken(24,i?null:t+r+"`"):(this.state.pos++,this.finishToken(25,i?null:t+r+"${"))}recordStrictModeErrors(t,r){let i=r.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(t,r):this.state.strictErrors.set(i,[t,r])}readWord1(t){this.state.containsEsc=!1;let r="",i=this.state.pos,s=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){let n=this.codePointAtPos(this.state.pos);if(bi(n))this.state.pos+=n<=65535?1:2;else if(n===92){this.state.containsEsc=!0,r+=this.input.slice(s,this.state.pos);let a=this.state.curPosition(),o=this.state.pos===i?Tr:bi;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(v.MissingUnicodeEscape,this.state.curPosition()),s=this.state.pos-1;continue}++this.state.pos;let l=this.readCodePoint(!0);l!==null&&(o(l)||this.raise(v.EscapedCharNotAnIdentifier,a),r+=String.fromCodePoint(l)),s=this.state.pos}else break}return r+this.input.slice(s,this.state.pos)}readWord(t){let r=this.readWord1(t),i=Xc.get(r);i!==void 0?this.finishToken(i,Gr(i)):this.finishToken(132,r)}checkKeywordEscapes(){let{type:t}=this.state;Qc(t)&&this.state.containsEsc&&this.raise(v.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Gr(t)})}raise(t,r,i={}){let s=r instanceof Sr?r:r.loc.start,n=t(s,i);if(!(this.optionFlags&2048))throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(t,r,i={}){let s=r instanceof Sr?r:r.loc.start,n=s.index,a=this.state.errors;for(let o=a.length-1;o>=0;o--){let l=a[o];if(l.loc.index===n)return a[o]=t(s,i);if(l.loc.index<n)break}return this.raise(t,r,i)}updateContext(t){}unexpected(t,r){throw this.raise(v.UnexpectedToken,t??this.state.startLoc,{expected:r?Gr(r):null})}expectPlugin(t,r){if(this.hasPlugin(t))return!0;throw this.raise(v.MissingPlugin,r??this.state.startLoc,{missingPlugin:[t]})}expectOnePlugin(t){if(!t.some(r=>this.hasPlugin(r)))throw this.raise(v.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(r,i,s)=>{this.raise(t,Ls(r,i,s))}}},Fc=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Bc=class{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Fc)}exit(){let t=this.stack.pop(),r=this.current();for(let[i,s]of Array.from(t.undefinedPrivateNames))r?r.undefinedPrivateNames.has(i)||r.undefinedPrivateNames.set(i,s):this.parser.raise(v.InvalidPrivateFieldResolution,s,{identifierName:i})}declarePrivateName(t,r,i){let{privateNames:s,loneAccessors:n,undefinedPrivateNames:a}=this.current(),o=s.has(t);if(r&3){let l=o&&n.get(t);if(l){let u=l&4,f=r&4,h=l&3,g=r&3;o=h===g||u!==f,o||n.delete(t)}else o||n.set(t,r)}o&&this.parser.raise(v.PrivateNameRedeclaration,i,{identifierName:t}),s.add(t),a.delete(t)}usePrivateName(t,r){let i;for(i of this.stack)if(i.privateNames.has(t))return;i?i.undefinedPrivateNames.set(t,r):this.parser.raise(v.InvalidPrivateFieldResolution,r,{identifierName:t})}},Hi=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Aa=class extends Hi{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,r){let i=r.index;this.declarationErrors.set(i,[t,r])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},Rc=class{constructor(t){this.parser=void 0,this.stack=[new Hi],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,r){let i=r.loc.start,{stack:s}=this,n=s.length-1,a=s[n];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(t,i);else return;a=s[--n]}this.parser.raise(t,i)}recordArrowParameterBindingError(t,r){let{stack:i}=this,s=i[i.length-1],n=r.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(t,n);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(t,n);else return}recordAsyncArrowParametersError(t){let{stack:r}=this,i=r.length-1,s=r[i];for(;s.canBeArrowParameterDeclaration();)s.type===2&&s.recordDeclarationError(v.AwaitBindingIdentifier,t),s=r[--i]}validateAsPattern(){let{stack:t}=this,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([i,s])=>{this.parser.raise(i,s);let n=t.length-2,a=t[n];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(s.index),a=t[--n]})}};function JU(){return new Hi(3)}function XU(){return new Aa(1)}function YU(){return new Aa(2)}function TT(){return new Hi}var jc=class extends Mc{addExtra(t,r,i,s=!0){if(!t)return;let{extra:n}=t;n==null&&(n={},t.extra=n),s?n[r]=i:Object.defineProperty(n,r,{enumerable:s,value:i})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,r){if(this.input.startsWith(r,t)){let i=this.input.charCodeAt(t+r.length);return!(bi(i)||(i&64512)===55296)}return!1}isLookaheadContextual(t){let r=this.nextTokenStart();return this.isUnparsedContextual(r,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,r){if(!this.eatContextual(t)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Qy(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Qy(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(v.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,r){this.eat(t)||this.unexpected(r,t)}tryParse(t,r=this.state.clone()){let i={node:null};try{let s=t((n=null)=>{throw i.node=n,i});if(this.state.errors.length>r.errors.length){let n=this.state;return this.state=r,this.state.tokensLength=n.tokensLength,{node:s,error:n.errors[r.errors.length],thrown:!1,aborted:!1,failState:n}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(s){let n=this.state;if(this.state=r,s instanceof SyntaxError)return{node:null,error:s,thrown:!0,aborted:!1,failState:n};if(s===i)return{node:i.node,error:null,thrown:!1,aborted:!0,failState:n};throw s}}checkExpressionErrors(t,r){if(!t)return!1;let{shorthandAssignLoc:i,doubleProtoLoc:s,privateKeyLoc:n,optionalParametersLoc:a,voidPatternLoc:o}=t,l=!!i||!!s||!!a||!!n||!!o;if(!r)return l;i!=null&&this.raise(v.InvalidCoverInitializedName,i),s!=null&&this.raise(v.DuplicateProto,s),n!=null&&this.raise(v.UnexpectedPrivateField,n),a!=null&&this.unexpected(a),o!=null&&this.raise(v.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return oT(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let i=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let s=this.inModule;this.inModule=t;let n=this.scope,a=this.getScopeHandler();this.scope=new a(this,t);let o=this.prodParam;this.prodParam=new Oc;let l=this.classScope;this.classScope=new Bc(this);let u=this.expressionScope;return this.expressionScope=new Rc(this),()=>{this.state.labels=r,this.exportedIdentifiers=i,this.inModule=s,this.scope=n,this.prodParam=o,this.classScope=l,this.expressionScope=u}}enterInitialScopes(){let t=0;(this.inModule||this.optionFlags&1)&&(t|=2),this.optionFlags&32&&(t|=1);let r=!this.inModule&&this.options.sourceType==="commonjs";(r||this.optionFlags&2)&&(t|=4),this.prodParam.enter(t);let i=r?514:1;this.optionFlags&4&&(i|=512),this.scope.enter(i)}checkDestructuringPrivate(t){let{privateKeyLoc:r}=t;r!==null&&this.expectPlugin("destructuringPrivate",r)}},Yi=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}},zi=class{constructor(t,r,i){this.type="",this.start=r,this.end=0,this.loc=new Wi(i),t?.optionFlags&128&&(this.range=[r,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},qc=zi.prototype;qc.__clone=function(){let e=new zi(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,i=t.length;r<i;r++){let s=t[r];s!=="leadingComments"&&s!=="trailingComments"&&s!=="innerComments"&&(e[s]=this[s])}return e};var Uc=class extends jc{startNode(){let t=this.state.startLoc;return new zi(this,t.index,t)}startNodeAt(t){return new zi(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,r){return this.finishNodeAt(t,r,this.state.lastTokEndLoc)}finishNodeAt(t,r,i){return t.type=r,t.end=i.index,t.loc.end=i,this.optionFlags&128&&(t.range[1]=i.index),this.optionFlags&4096&&this.processComment(t),t}resetStartLocation(t,r){t.start=r.index,t.loc.start=r,this.optionFlags&128&&(t.range[0]=r.index)}resetEndLocation(t,r=this.state.lastTokEndLoc){t.end=r.index,t.loc.end=r,this.optionFlags&128&&(t.range[1]=r.index)}resetStartLocationFromNode(t,r){this.resetStartLocation(t,r.loc.start)}castNodeTo(t,r){return t.type=r,t}cloneIdentifier(t){let{type:r,start:i,end:s,loc:n,range:a,name:o}=t,l=Object.create(qc);return l.type=r,l.start=i,l.end=s,l.loc=n,l.range=a,l.name=o,t.extra&&(l.extra=t.extra),l}cloneStringLiteral(t){let{type:r,start:i,end:s,loc:n,range:a,extra:o}=t,l=Object.create(qc);return l.type=r,l.start=i,l.end=s,l.loc=n,l.range=a,l.extra=o,l.value=t.value,l}},Kc=e=>e.type==="ParenthesizedExpression"?Kc(e.expression):e,Vc=class extends Uc{toAssignable(t,r=!1){var i,s;let n;switch((t.type==="ParenthesizedExpression"||(i=t.extra)!=null&&i.parenthesized)&&(n=Kc(t),r?n.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(v.InvalidParenthesizedAssignment,t):n.type!=="CallExpression"&&n.type!=="MemberExpression"&&!this.isOptionalMemberExpression(n)&&this.raise(v.InvalidParenthesizedAssignment,t):this.raise(v.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(t,"ObjectPattern");for(let o=0,l=t.properties.length,u=l-1;o<l;o++){var a;let f=t.properties[o],h=o===u;this.toAssignableObjectExpressionProp(f,h,r),h&&f.type==="RestElement"&&(a=t.extra)!=null&&a.trailingCommaLoc&&this.raise(v.RestTrailingComma,t.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:o,value:l}=t;this.isPrivateName(o)&&this.classScope.usePrivateName(this.getPrivateNameSV(o),o.loc.start),this.toAssignable(l,r);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":this.castNodeTo(t,"ArrayPattern"),this.toAssignableList(t.elements,(s=t.extra)==null?void 0:s.trailingCommaLoc,r);break;case"AssignmentExpression":t.operator!=="="&&this.raise(v.MissingEqInAssignment,t.left.loc.end),this.castNodeTo(t,"AssignmentPattern"),delete t.operator,t.left.type==="VoidPattern"&&this.raise(v.VoidPatternInitializer,t.left),this.toAssignable(t.left,r);break;case"ParenthesizedExpression":this.toAssignable(n,r);break}}toAssignableObjectExpressionProp(t,r,i){if(t.type==="ObjectMethod")this.raise(t.kind==="get"||t.kind==="set"?v.PatternHasAccessor:v.PatternHasMethod,t.key);else if(t.type==="SpreadElement"){this.castNodeTo(t,"RestElement");let s=t.argument;this.checkToRestConversion(s,!1),this.toAssignable(s,i),r||this.raise(v.RestTrailingComma,t)}else this.toAssignable(t,i)}toAssignableList(t,r,i){let s=t.length-1;for(let n=0;n<=s;n++){let a=t[n];a&&(this.toAssignableListItem(t,n,i),a.type==="RestElement"&&(n<s?this.raise(v.RestTrailingComma,a):r&&this.raise(v.RestTrailingComma,r)))}}toAssignableListItem(t,r,i){let s=t[r];if(s.type==="SpreadElement"){this.castNodeTo(s,"RestElement");let n=s.argument;this.checkToRestConversion(n,!0),this.toAssignable(n,i)}else this.toAssignable(s,i)}isAssignable(t,r){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let i=t.properties.length-1;return t.properties.every((s,n)=>s.type!=="ObjectMethod"&&(n===i||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(i=>i===null||this.isAssignable(i));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(t,r){return t}toReferencedListDeep(t,r){this.toReferencedList(t,r);for(let i of t)i?.type==="ArrayExpression"&&this.toReferencedListDeep(i.elements)}parseSpread(t){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let t=this.startNode();this.next();let r=this.parseBindingAtom();return r.type==="VoidPattern"&&this.raise(v.UnexpectedVoidPattern,r),t.argument=r,this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(t,r,i){let s=i&1,n=[],a=!0;for(;!this.eat(t);)if(a?a=!1:this.expect(12),s&&this.match(12))n.push(null);else{if(this.eat(t))break;if(this.match(21)){let o=this.parseRestBinding();if((this.hasPlugin("flow")||i&2)&&(o=this.parseFunctionParamType(o)),n.push(o),!this.checkCommaAfterRest(r)){this.expect(t);break}}else{let o=[];if(i&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(v.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());n.push(this.parseBindingElement(i,o))}}return n}parseBindingRestProperty(t){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(t.argument=this.parseVoidPattern(null),this.raise(v.UnexpectedVoidPattern,t.argument)):t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:r}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());let i=this.startNode();return t===139?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),i.key=this.parsePrivateName()):this.parsePropertyName(i),i.method=!1,this.parseObjPropValue(i,r,!1,!1,!0,!1)}parseBindingElement(t,r){let i=this.parseMaybeDefault();return(this.hasPlugin("flow")||t&2)&&this.parseFunctionParamType(i),r.length&&(i.decorators=r,this.resetStartLocationFromNode(i,r[0])),this.parseMaybeDefault(i.loc.start,i)}parseFunctionParamType(t){return t}parseMaybeDefault(t,r){if(t??(t=this.state.startLoc),r=r??this.parseBindingAtom(),!this.eat(29))return r;let i=this.startNodeAt(t);return r.type==="VoidPattern"&&this.raise(v.VoidPatternInitializer,r),i.left=r,i.right=this.parseMaybeAssignAllowIn(),this.finishNode(i,"AssignmentPattern")}isValidLVal(t,r,i,s){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!r&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,r,i=64,s=!1,n=!1,a=!1,o=!1){var l;let u=t.type;if(this.isObjectMethod(t))return;let f=this.isOptionalMemberExpression(t);if(f||u==="MemberExpression"){f&&(this.expectPlugin("optionalChainingAssign",t.loc.start),r.type!=="AssignmentExpression"&&this.raise(v.InvalidLhsOptionalChaining,t,{ancestor:r})),i!==64&&this.raise(v.InvalidPropertyBindingPattern,t);return}if(u==="Identifier"){this.checkIdentifier(t,i,n);let{name:I}=t;s&&(s.has(I)?this.raise(v.ParamDupe,t):s.add(I));return}else u==="VoidPattern"&&r.type==="CatchClause"&&this.raise(v.VoidPatternCatchClauseParam,t);let h=Kc(t);o||(o=h.type==="CallExpression"&&(h.callee.type==="Import"||h.callee.type==="Super"));let g=this.isValidLVal(u,o,!(a||(l=t.extra)!=null&&l.parenthesized)&&r.type==="AssignmentExpression",i);if(g===!0)return;if(g===!1){let I=i===64?v.InvalidLhs:v.InvalidLhsBinding;this.raise(I,t,{ancestor:r});return}let b,E;typeof g=="string"?(b=g,E=u==="ParenthesizedExpression"):[b,E]=g;let w=u==="ArrayPattern"||u==="ObjectPattern"?{type:u}:r,A=t[b];if(Array.isArray(A))for(let I of A)I&&this.checkLVal(I,w,i,s,n,E,!0);else A&&this.checkLVal(A,w,i,s,n,E,o)}checkIdentifier(t,r,i=!1){this.state.strict&&(i?dT(t.name,this.inModule):fT(t.name))&&(r===64?this.raise(v.StrictEvalArguments,t,{referenceName:t.name}):this.raise(v.StrictEvalArgumentsBinding,t,{bindingName:t.name})),r&8192&&t.name==="let"&&this.raise(v.LetInLexicalBinding,t),r&64||this.declareNameFromIdentifier(t,r)}declareNameFromIdentifier(t,r){this.scope.declareName(t.name,r,t.loc.start)}checkToRestConversion(t,r){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(v.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?v.RestTrailingComma:v.ElementAfterRest,this.state.startLoc),!0):!1}},Ec=/in(?:stanceof)?|as|satisfies/y;function WU(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function tT(e){if(!e)throw new Error("Assert fail")}var ie=ar`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function HU(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function rT(e){return e==="private"||e==="public"||e==="protected"}function zU(e){return e==="in"||e==="out"}var GU=e=>class extends e{constructor(...r){super(...r),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:ie.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:ie.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:ie.InvalidModifierOnTypeParameter})}getScopeHandler(){return Nc}tsIsIdentifier(){return Ue(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,i,s){if(!Ue(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let n=this.state.value;if(r.includes(n)){if(s&&this.match(106)||i&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:i,stopOnStartOfClassStaticBlock:s,errorTemplate:n=ie.InvalidModifierOnTypeMember},a){let o=(u,f,h,g)=>{f===h&&a[g]&&this.raise(ie.InvalidModifiersOrder,u,{orderedModifiers:[h,g]})},l=(u,f,h,g)=>{(a[h]&&f===g||a[g]&&f===h)&&this.raise(ie.IncompatibleModifiers,u,{modifiers:[h,g]})};for(;;){let{startLoc:u}=this.state,f=this.tsParseModifier(r.concat(i??[]),s,a.static);if(!f)break;rT(f)?a.accessibility?this.raise(ie.DuplicateAccessibilityModifier,u,{modifier:f}):(o(u,f,f,"override"),o(u,f,f,"static"),o(u,f,f,"readonly"),a.accessibility=f):zU(f)?(a[f]&&this.raise(ie.DuplicateModifier,u,{modifier:f}),a[f]=!0,o(u,f,"in","out")):(hasOwnProperty.call(a,f)?this.raise(ie.DuplicateModifier,u,{modifier:f}):(o(u,f,"static","readonly"),o(u,f,"static","override"),o(u,f,"override","readonly"),o(u,f,"abstract","override"),l(u,f,"declare","override"),l(u,f,"static","abstract")),a[f]=!0),i!=null&&i.includes(f)&&this.raise(n,u,{modifier:f})}}tsIsListTerminator(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(r,i){let s=[];for(;!this.tsIsListTerminator(r);)s.push(i());return s}tsParseDelimitedList(r,i,s){return WU(this.tsParseDelimitedListWorker(r,i,!0,s))}tsParseDelimitedListWorker(r,i,s,n){let a=[],o=-1;for(;!this.tsIsListTerminator(r);){o=-1;let l=i();if(l==null)return;if(a.push(l),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;s&&this.expect(12);return}return n&&(n.value=o),a}tsParseBracketedList(r,i,s,n,a){n||(s?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(r,i,a);return s?this.expect(3):this.expect(48),o}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(134)?r.argument=this.parseStringLiteral(this.state.value):(this.raise(ie.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=super.parseExprAtom()),this.eat(12)?r.options=this.tsParseImportTypeOptions():r.options=null,this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName(3)),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseImportTypeOptions(){let r=this.startNode();this.expect(5);let i=this.startNode();return this.isContextual(76)?(i.method=!1,i.key=this.parseIdentifier(!0),i.computed=!1,i.shorthand=!1):this.unexpected(null,76),this.expect(14),i.value=this.tsParseImportTypeWithPropertyValue(),r.properties=[this.finishObjectProperty(i)],this.eat(12),this.expect(8),this.finishNode(r,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let r=this.startNode(),i=[];for(this.expect(5);!this.match(8);){let s=this.state.type;Ue(s)||s===134?i.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return r.properties=i,this.next(),this.finishNode(r,"ObjectExpression")}tsParseEntityName(r){let i;if(r&1&&this.match(78))if(r&2)i=this.parseIdentifier(!0);else{let s=this.startNode();this.next(),i=this.finishNode(s,"ThisExpression")}else i=this.parseIdentifier(!!(r&1));for(;this.eat(16);){let s=this.startNodeAtNode(i);s.left=i,s.right=this.parseIdentifier(!!(r&1)),i=this.finishNode(s,"TSQualifiedName")}return i}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let i=this.startNodeAtNode(r);return i.parameterName=r,i.typeAnnotation=this.tsParseTypeAnnotation(!1),i.asserts=!1,this.finishNode(i,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let i=this.startNode();return r(i),i.name=this.tsParseTypeParameterName(),i.constraint=this.tsEatThenParseType(81),i.default=this.tsEatThenParseType(29),this.finishNode(i,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let i=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let s={value:-1};return i.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,s),i.params.length===0&&this.raise(ie.EmptyTypeParameters,i),s.value!==-1&&this.addExtra(i,"trailingComma",s.value),this.finishNode(i,"TSTypeParameterDeclaration")}tsFillSignature(r,i){let s=r===19,n="parameters",a="typeAnnotation";i.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),i[n]=this.tsParseBindingListForSignature(),s?i[a]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(i[a]=this.tsParseTypeOrTypePredicateAnnotation(r))}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let i of r){let{type:s}=i;(s==="AssignmentPattern"||s==="TSParameterProperty")&&this.raise(ie.UnsupportedSignatureParameterKind,i,{type:s})}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(r,i){return this.tsFillSignature(14,i),this.tsParseTypeMemberSemicolon(),this.finishNode(i,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),Ue(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let i=this.parseIdentifier();i.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(i),this.expect(3),r.parameters=[i];let s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,i){if(this.eat(17)&&(r.optional=!0),this.match(10)||this.match(47)){i&&this.raise(ie.ReadonlyForMethodSignature,r);let s=r;s.kind&&this.match(47)&&this.raise(ie.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon();let n="parameters",a="typeAnnotation";if(s.kind==="get")s[n].length>0&&(this.raise(v.BadGetterArity,this.state.curPosition()),this.isThisParam(s[n][0])&&this.raise(ie.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(s.kind==="set"){if(s[n].length!==1)this.raise(v.BadSetterArity,this.state.curPosition());else{let o=s[n][0];this.isThisParam(o)&&this.raise(ie.AccessorCannotDeclareThisParameter,this.state.curPosition()),o.type==="Identifier"&&o.optional&&this.raise(ie.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),o.type==="RestElement"&&this.raise(ie.SetAccessorCannotHaveRestParameter,this.state.curPosition())}s[a]&&this.raise(ie.SetAccessorCannotHaveReturnType,s[a])}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}else{let s=r;i&&(s.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(s.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let s=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(s,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);let i=this.tsTryParseIndexSignature(r);return i||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let r=this.startNode();this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0);let i=this.startNode();return i.name=this.tsParseTypeParameterName(),i.constraint=this.tsExpectThenParseType(58),r.typeParameter=this.finishNode(i,"TSTypeParameter"),r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let i=!1;return r.elementTypes.forEach(s=>{let{type:n}=s;i&&n!=="TSRestType"&&n!=="TSOptionalType"&&!(n==="TSNamedTupleMember"&&s.optional)&&this.raise(ie.OptionalTypeBeforeRequired,s),i||(i=n==="TSNamedTupleMember"&&s.optional||n==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let r=this.state.startLoc,i=this.eat(21),{startLoc:s}=this.state,n,a,o,l,f=or(this.state.type)?this.lookaheadCharCode():null;if(f===58)n=!0,o=!1,a=this.parseIdentifier(!0),this.expect(14),l=this.tsParseType();else if(f===63){o=!0;let h=this.state.value,g=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(n=!0,a=this.createIdentifier(this.startNodeAt(s),h),this.expect(17),this.expect(14),l=this.tsParseType()):(n=!1,l=g,this.expect(17))}else l=this.tsParseType(),o=this.eat(17),n=this.eat(14);if(n){let h;a?(h=this.startNodeAt(s),h.optional=o,h.label=a,h.elementType=l,this.eat(17)&&(h.optional=!0,this.raise(ie.TupleOptionalAfterType,this.state.lastTokStartLoc))):(h=this.startNodeAt(s),h.optional=o,this.raise(ie.InvalidTupleMemberLabel,l),h.label=l,h.elementType=this.tsParseType()),l=this.finishNode(h,"TSNamedTupleMember")}else if(o){let h=this.startNodeAt(s);h.typeAnnotation=l,l=this.finishNode(h,"TSOptionalType")}if(i){let h=this.startNodeAt(r);h.typeAnnotation=l,l=this.finishNode(h,"TSRestType")}return l}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,i){let s=this.startNode();return r==="TSConstructorType"&&(s.abstract=!!i,i&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,s)),this.finishNode(s,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){let r=this.startNode();return r.literal=super.parseTemplate(!1),this.finishNode(r,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),i=this.lookahead();return i.type!==135&&i.type!==136&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"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:r}=this.state;if(Ue(r)||r===88||r===84){let i=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":HU(this.state.value);if(i!==void 0&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,i)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:r}=this.state,i=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let s=this.startNodeAt(r);s.elementType=i,this.expect(3),i=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAt(r);s.objectType=i,s.indexType=this.tsParseType(),this.expect(3),i=this.finishNode(s,"TSIndexedAccessType")}return i}tsParseTypeOperator(){let r=this.startNode(),i=this.state.value;return this.next(),r.operator=i,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),i==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(ie.UnexpectedReadonly,r)}}tsParseInferType(){let r=this.startNode();this.expectContextual(115);let i=this.startNode();return i.name=this.tsParseTypeParameterName(),i.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(i,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return TU(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,i,s){let n=this.startNode(),a=this.eat(s),o=[];do o.push(i());while(this.eat(s));return o.length===1&&!a?o[0]:(n.types=o,this.finishNode(n,r))}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)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Ue(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,i=r.length;try{return this.parseObjectLike(8,!0),r.length===i}catch{return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,i=r.length;try{return super.parseBindingList(3,93,1),r.length===i}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(r){return this.tsInType(()=>{let i=this.startNode();this.expect(r);let s=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let l=this.tsParseThisTypeOrThisTypePredicate();return l.type==="TSThisType"?(s.parameterName=l,s.asserts=!0,s.typeAnnotation=null,l=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(l,s),l.asserts=!0),i.typeAnnotation=l,this.finishNode(i,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return n?(s.parameterName=this.parseIdentifier(),s.asserts=n,s.typeAnnotation=null,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,i);let o=this.tsParseTypeAnnotation(!1);return s.parameterName=a,s.typeAnnotation=o,s.asserts=n,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let r=this.state.containsEsc;return this.next(),!Ue(this.state.type)&&!this.match(78)?!1:(r&&this.raise(v.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,i=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),i.typeAnnotation=this.tsParseType()}),this.finishNode(i,"TSTypeAnnotation")}tsParseType(){tT(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let i=this.startNodeAtNode(r);return i.checkType=r,i.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),i.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),i.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(i,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}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(ie.ReservedTypeAssertion,this.state.startLoc);let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let i=this.state.startLoc,s=this.tsParseDelimitedList("HeritageClauseElement",()=>{let n=this.startNode();return n.expression=this.tsParseEntityName(3),this.match(47)&&(n.typeParameters=this.tsParseTypeArguments()),this.finishNode(n,"TSExpressionWithTypeArguments")});return s.length||this.raise(ie.EmptyHeritageClauseType,i,{token:r}),s}tsParseInterfaceDeclaration(r,i={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),i.declare&&(r.declare=!0),Ue(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(ie.MissingInterfaceName,this.state.startLoc)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));let s=this.startNode();return s.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(s,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInTopLevelContext(r){if(this.curContext()!==Re.brace){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}else return r()}tsInType(r){let i=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=i}}tsInDisallowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsInAllowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();return r.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,i={}){return i.const&&(r.const=!0),i.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumDeclaration")}tsParseEnumBody(){let r=this.startNode();return this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumBody")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,i=!1){if(r.id=this.parseIdentifier(),i||this.checkIdentifier(r.id,1024),this.eat(16)){let s=this.startNode();this.tsParseModuleOrNamespaceDeclaration(s,!0),r.body=s}else this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.kind="global",r.global=!0,r.id=this.parseIdentifier()):this.match(134)?(r.kind="module",r.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,i,s){r.isExport=s||!1,r.id=i||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let n=this.tsParseModuleReference();return r.importKind==="type"&&n.type!=="TSExternalModuleReference"&&this.raise(ie.ImportAliasHasImportType,n),r.moduleReference=n,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let i=this.state.clone(),s=r();return this.state=i,s}tsTryParseAndCatch(r){let i=this.tryParse(s=>r()||s());if(!(i.aborted||!i.node))return i.error&&(this.state=i.failState),i.node}tsTryParse(r){let i=this.state.clone(),s=r();if(s!==void 0&&s!==!1)return s;this.state=i}tsTryParseDeclare(r){if(this.isLineTerminator())return;let i=this.state.type;return this.tsInAmbientContext(()=>{switch(i){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(ie.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.parseVarStatement(r,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(ie.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.next(),this.parseVarStatement(r,"await using",!0);break;case 129:{let s=this.tsParseInterfaceDeclaration(r,{declare:!0});if(s)return s}default:if(Ue(i))return this.tsParseDeclaration(r,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(r,i,s,n){switch(i){case 124:if(this.tsCheckLineTerminator(s)&&(this.match(80)||Ue(this.state.type)))return this.tsParseAbstractDeclaration(r,n);break;case 127:if(this.tsCheckLineTerminator(s)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);if(Ue(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case 128:if(this.tsCheckLineTerminator(s)&&Ue(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case 130:if(this.tsCheckLineTerminator(s)&&Ue(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let i=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let s=this.tsTryParseAndCatch(()=>{let n=this.startNodeAt(r);return n.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(n),n.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),n});if(this.state.maybeInArrowParameters=i,!!s)return super.parseArrowExpression(s,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(ie.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===Re.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return SU(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(r,i){let s=i.length?i[0].loc.start:this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);let a=n.accessibility,o=n.override,l=n.readonly;!(r&4)&&(a||l||o)&&this.raise(ie.UnexpectedParameterModifier,s);let u=this.parseMaybeDefault();r&2&&this.parseFunctionParamType(u);let f=this.parseMaybeDefault(u.loc.start,u);if(a||l||o){let h=this.startNodeAt(s);return i.length&&(h.decorators=i),a&&(h.accessibility=a),l&&(h.readonly=l),o&&(h.override=o),f.type!=="Identifier"&&f.type!=="AssignmentPattern"&&this.raise(ie.UnsupportedParameterPropertyKind,h),h.parameter=f,this.finishNode(h,"TSParameterProperty")}return i.length&&(u.decorators=i),f}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let i of r.params)i.type!=="Identifier"&&i.optional&&!this.state.isAmbientContext&&this.raise(ie.PatternIsOptional,i)}setArrowFunctionParameters(r,i,s){super.setArrowFunctionParameters(r,i,s),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,i,s=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let n=i==="FunctionDeclaration"?"TSDeclareFunction":i==="ClassMethod"||i==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,n):n==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(ie.DeclareFunctionHasImplementation,r),r.declare)?super.parseFunctionBodyAndFinish(r,n,s):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,i,s))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,1024):super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach(i=>{i?.type==="TSTypeCastExpression"&&this.raise(ie.UnexpectedTypeAnnotation,i.typeAnnotation)})}toReferencedList(r,i){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,i,s){let n=super.parseArrayLike(r,i,s);return n.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(r,i,s,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(i);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(s)return n.stop=!0,r;n.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let o,l=this.tsTryParseAndCatch(()=>{if(!s&&this.atPossibleAsyncArrow(r)){let g=this.tsTryParseGenericAsyncArrowFunction(i);if(g)return n.stop=!0,g}let u=this.tsParseTypeArgumentsInExpression();if(!u)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if(Pa(this.state.type)){let g=super.parseTaggedTemplateExpression(r,i,n);return g.typeParameters=u,g}if(!s&&this.eat(10)){let g=this.startNodeAt(i);return g.callee=r,g.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(g.arguments),g.typeParameters=u,n.optionalChainMember&&(g.optional=a),this.finishCallExpression(g,n.optionalChainMember)}let f=this.state.type;if(f===48||f===52||f!==10&&f!==93&&f!==120&&Ms(f)&&!this.hasPrecedingLineBreak())return;let h=this.startNodeAt(i);return h.expression=r,h.typeParameters=u,this.finishNode(h,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),l)return l.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(ie.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(l.expression=super.stopParseSubscript(r,n))),l}return super.parseSubscript(r,i,s,n)}parseNewCallee(r){var i;super.parseNewCallee(r);let{callee:s}=r;s.type==="TSInstantiationExpression"&&!((i=s.extra)!=null&&i.parenthesized)&&(r.typeParameters=s.typeParameters,r.callee=s.expression)}parseExprOp(r,i,s){let n;if(xa(58)>s&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){let a=this.startNodeAt(i);return a.expression=r,a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(n&&this.raise(v.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(a,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,i,s)}return super.parseExprOp(r,i,s)}checkReservedWord(r,i,s,n){this.state.isAmbientContext||super.checkReservedWord(r,i,s,n)}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(ie.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){let i=this.lookaheadCharCode();return r?i===123||i===42:i!==61}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,n){super.applyImportPhase(r,i,s,n),i?r.exportKind=s==="type"?"type":"value":r.importKind=s==="type"||s==="typeof"?s:"value"}parseImport(r){if(this.match(134))return r.importKind="value",super.parseImport(r);let i;if(Ue(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let s=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,s);i=super.parseImportSpecifiersAndAfter(r,s)}else i=super.parseImport(r);return i.importKind==="type"&&i.specifiers.length>1&&i.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(ie.TypeImportCannotSpecifyDefaultAndNamed,i),i}parseExport(r,i){if(this.match(83)){let s=r;this.next();let n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(s,!1):s.importKind="value",this.tsParseImportEqualsDeclaration(s,n,!0)}else if(this.eat(29)){let s=r;return s.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}else if(this.eatContextual(93)){let s=r;return this.expectContextual(128),s.id=this.parseIdentifier(),this.semicolon(),this.finishNode(s,"TSNamespaceExportDeclaration")}else return super.parseExport(r,i)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,i,s=!1){let{isAmbientContext:n}=this.state,a=super.parseVarStatement(r,i,s||n);if(!n)return a;if(!r.declare&&(i==="using"||i==="await using"))return this.raiseOverwrite(ie.UsingDeclarationInAmbientContext,r,i),a;for(let{id:o,init:l}of a.declarations)l&&(i==="var"||i==="let"||o.typeAnnotation?this.raise(ie.InitializerNotAllowedInAmbientContext,l):ZU(l,this.hasPlugin("estree"))||this.raise(ie.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,l));return a}parseStatementContent(r,i){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let s=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(s,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let s=this.state.type,n=this.startNode();this.next();let a=s===125?this.tsTryParseDeclare(n):this.tsParseAbstractDeclaration(n,i);return a?(s===125&&(a.declare=!0),a):(n.expression=this.createIdentifier(this.startNodeAt(n.loc.start),s===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(n,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let n=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(n)}break}case 129:{let s=this.tsParseInterfaceDeclaration(this.startNode());if(s)return s;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let s=this.startNode();return this.next(),this.tsParseDeclaration(s,127,!1,i)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let s=this.startNode();return this.next(),this.tsParseDeclaration(s,128,!1,i)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let s=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(s)}break}}return super.parseStatementContent(r,i)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,i){return i.some(s=>rT(s)?r.accessibility===s:!!r[s])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,i,s){let n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:ie.InvalidModifierOnTypeParameterPositions},i);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(i,n)&&this.raise(ie.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(r,i)):this.parseClassMemberWithIsStatic(r,i,s,!!i.static)};i.declare?this.tsInAmbientContext(a):a()}parseClassMemberWithIsStatic(r,i,s,n){let a=this.tsTryParseIndexSignature(i);if(a){r.body.push(a),i.abstract&&this.raise(ie.IndexSignatureHasAbstract,i),i.accessibility&&this.raise(ie.IndexSignatureHasAccessibility,i,{modifier:i.accessibility}),i.declare&&this.raise(ie.IndexSignatureHasDeclare,i),i.override&&this.raise(ie.IndexSignatureHasOverride,i);return}!this.state.inAbstractClass&&i.abstract&&this.raise(ie.NonAbstractClassHasAbstractMethod,i),i.override&&(s.hadSuperClass||this.raise(ie.OverrideNotInSubClass,i)),super.parseClassMemberWithIsStatic(r,i,s,n)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(ie.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(ie.ClassMethodHasDeclare,r)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,i,s){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let n=this.lookaheadCharCode();if(n===44||n===61||n===58||n===41)return this.setOptionalParametersError(s),r}return super.parseConditional(r,i,s)}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let n=this.startNodeAt(i);return n.expression=r,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let i=this.state.startLoc,s=this.eatContextual(125);if(s&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(ie.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let a=Ue(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return a?((a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||s)&&(r.exportKind="type"),s&&a.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(a,i),a.declare=!0),a):null}parseClassId(r,i,s,n){if((!i||s)&&this.isContextual(113))return;super.parseClassId(r,i,s,r.declare?1024:8331);let a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(r.typeParameters=a)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let i=this.tsTryParseTypeAnnotation();i&&(r.typeAnnotation=i)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(ie.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:i}=r;this.raise(ie.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:i.type==="Identifier"&&!r.computed?i.name:`[${this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end))}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(ie.PrivateElementHasAbstract,r),r.accessibility&&this.raise(ie.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(ie.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,i,s,n,a,o){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);l&&a&&this.raise(ie.ConstructorHasTypeParameters,l);let{declare:u=!1,kind:f}=i;u&&(f==="get"||f==="set")&&this.raise(ie.DeclareAccessor,i,{kind:f}),l&&(i.typeParameters=l),super.pushClassMethod(r,i,s,n,a,o)}pushClassPrivateMethod(r,i,s,n){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(i.typeParameters=a),super.pushClassPrivateMethod(r,i,s,n)}declareClassPrivateMethodInScope(r,i){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&r.value.body==null||super.declareClassPrivateMethodInScope(r,i))}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass)if(r.superClass.type==="TSInstantiationExpression"){let i=r.superClass,s=i.expression;this.takeSurroundingComments(s,s.start,s.end);let n=i.typeParameters;this.takeSurroundingComments(n,n.start,n.end),r.superClass=s,r.superTypeParameters=n}else(this.match(47)||this.match(51))&&(r.superTypeParameters=this.tsParseTypeArgumentsInExpression());this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(r,i,s,n,a,o,l){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);return u&&(r.typeParameters=u),super.parseObjPropValue(r,i,s,n,a,o,l)}parseFunctionParams(r,i){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(r.typeParameters=s),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);let s=this.tsTryParseTypeAnnotation();s&&(r.id.typeAnnotation=s,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,i)}parseMaybeAssign(r,i){var s,n,a,o,l;let u,f,h;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(u=this.state.clone(),f=this.tryParse(()=>super.parseMaybeAssign(r,i),u),!f.error)return f.node;let{context:E}=this.state,w=E[E.length-1];(w===Re.j_oTag||w===Re.j_expr)&&E.pop()}if(!((s=f)!=null&&s.error)&&!this.match(47))return super.parseMaybeAssign(r,i);(!u||u===this.state)&&(u=this.state.clone());let g,b=this.tryParse(E=>{var w,A;g=this.tsParseTypeParameters(this.tsParseConstModifier);let I=super.parseMaybeAssign(r,i);return(I.type!=="ArrowFunctionExpression"||(w=I.extra)!=null&&w.parenthesized)&&E(),((A=g)==null?void 0:A.params.length)!==0&&this.resetStartLocationFromNode(I,g),I.typeParameters=g,I},u);if(!b.error&&!b.aborted)return g&&this.reportReservedArrowTypeParam(g),b.node;if(!f&&(tT(!this.hasPlugin("jsx")),h=this.tryParse(()=>super.parseMaybeAssign(r,i),u),!h.error))return h.node;if((n=f)!=null&&n.node)return this.state=f.failState,f.node;if(b.node)return this.state=b.failState,g&&this.reportReservedArrowTypeParam(g),b.node;if((a=h)!=null&&a.node)return this.state=h.failState,h.node;throw((o=f)==null?void 0:o.error)||b.error||((l=h)==null?void 0:l.error)}reportReservedArrowTypeParam(r){var i;r.params.length===1&&!r.params[0].constraint&&!((i=r.extra)!=null&&i.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(ie.ReservedArrowTypeParam,r)}parseMaybeUnary(r,i){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(s=>{let n=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&s(),n});if(i.aborted)return;i.thrown||(i.error&&(this.state=i.failState),r.returnType=i.node)}return super.parseArrow(r)}parseFunctionParamType(r){this.eat(17)&&(r.optional=!0);let i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i),this.resetEndLocation(r),r}isAssignable(r,i){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,i);case"TSParameterProperty":return!0;default:return super.isAssignable(r,i)}}toAssignable(r,i=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,i);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":i?this.expressionScope.recordArrowParameterBindingError(ie.UnexpectedTypeCastInParameter,r):this.raise(ie.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,i);break;case"AssignmentExpression":!i&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,i)}}toAssignableParenthesizedExpression(r,i){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,i);break;default:super.toAssignable(r,i)}}checkToRestConversion(r,i){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,i)}}isValidLVal(r,i,s,n){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(n!==64||!s)&&["expression",!0];default:return super.isValidLVal(r,i,s,n)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r,i){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let n=super.parseMaybeDecoratorArguments(r,i);return n.typeParameters=s,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r,i)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(ie.TypeAnnotationAfterAssign,s.typeAnnotation),s}getTokenFromCode(r){if(this.state.inType){if(r===62){this.finishOp(48,1);return}if(r===60){this.finishOp(47,1);return}}super.getTokenFromCode(r)}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}toAssignableListItem(r,i,s){let n=r[i];n.type==="TSTypeCastExpression"&&(r[i]=this.typeCastToParameter(n)),super.toAssignableListItem(r,i,s)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}shouldParseArrow(r){return this.match(14)?r.every(i=>this.isAssignable(i,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let i=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());i&&(r.typeParameters=i)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let i=super.getGetterSetterExpectedParamCount(r),n=this.getObjectOrClassMethodParams(r)[0];return n&&this.isThisParam(n)?i+1:i}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i,this.resetEndLocation(r)),r}tsInAmbientContext(r){let{isAmbientContext:i,strict:s}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=i,this.state.strict=s}}parseClass(r,i,s){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,i,s)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(r,i){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(i,this.parseClass(r,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(r.abstract=!0,this.raise(ie.NonClassMethodPropertyHasAbstractModifier,r),this.tsParseInterfaceDeclaration(r));throw this.unexpected(null,80)}parseMethod(r,i,s,n,a,o,l){let u=super.parseMethod(r,i,s,n,a,o,l);if((u.abstract||u.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?u.value:u).body){let{key:g}=u;this.raise(ie.AbstractMethodHasImplementation,u,{methodName:g.type==="Identifier"&&!u.computed?g.name:`[${this.input.slice(this.offsetToSourcePos(g.start),this.offsetToSourcePos(g.end))}]`})}return u}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(r,i,s,n){return!i&&n?(this.parseTypeOnlyImportExportSpecifier(r,!1,s),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,i,s,n))}parseImportSpecifier(r,i,s,n,a){return!i&&n?(this.parseTypeOnlyImportExportSpecifier(r,!0,s),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,i,s,n,s?4098:4096))}parseTypeOnlyImportExportSpecifier(r,i,s){let n=i?"imported":"local",a=i?"local":"exported",o=r[n],l,u=!1,f=!0,h=o.loc.start;if(this.isContextual(93)){let b=this.parseIdentifier();if(this.isContextual(93)){let E=this.parseIdentifier();or(this.state.type)?(u=!0,o=b,l=i?this.parseIdentifier():this.parseModuleExportName(),f=!1):(l=E,f=!1)}else or(this.state.type)?(f=!1,l=i?this.parseIdentifier():this.parseModuleExportName()):(u=!0,o=b)}else or(this.state.type)&&(u=!0,i?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());u&&s&&this.raise(i?ie.TypeModifierIsUsedInTypeImports:ie.TypeModifierIsUsedInTypeExports,h),r[n]=o,r[a]=l;let g=i?"importKind":"exportKind";r[g]=u?"type":"value",f&&this.eatContextual(93)&&(r[a]=i?this.parseIdentifier():this.parseModuleExportName()),r[a]||(r[a]=this.cloneIdentifier(r[n])),i&&this.checkIdentifier(r[a],u?4098:4096)}fillOptionalPropertiesForTSESLint(r){var i,s,n,a,o,l,u,f,h,g,b,E,w,A,I,k,Y,B,F,ae,xe,ke,G,Ye,ct,L,H,me,je,ht,Mt,We,ot,Et,$,V,D,Z,de,Te,Fe,Me,et,Ve,Ie,Ke,$e,be,Ge;switch(r.type){case"ImportDeclaration":(i=r.phase)!=null||(r.phase=null);return;case"ExpressionStatement":(s=r.directive)!=null||(r.directive=void 0);return;case"RestElement":r.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(n=r.decorators)!=null||(r.decorators=[]),(a=r.optional)!=null||(r.optional=!1),(o=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);return;case"TSParameterProperty":(l=r.accessibility)!=null||(r.accessibility=void 0),(u=r.decorators)!=null||(r.decorators=[]),(f=r.override)!=null||(r.override=!1),(h=r.readonly)!=null||(r.readonly=!1),(g=r.static)!=null||(r.static=!1);return;case"TSEmptyBodyFunctionExpression":r.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(b=r.declare)!=null||(r.declare=!1),(E=r.returnType)!=null||(r.returnType=void 0),(w=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"Property":(A=r.optional)!=null||(r.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(I=r.optional)!=null||(r.optional=!1);case"TSIndexSignature":(k=r.accessibility)!=null||(r.accessibility=void 0),(Y=r.readonly)!=null||(r.readonly=!1),(B=r.static)!=null||(r.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(F=r.declare)!=null||(r.declare=!1),(ae=r.definite)!=null||(r.definite=!1),(xe=r.readonly)!=null||(r.readonly=!1),(ke=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(G=r.accessibility)!=null||(r.accessibility=void 0),(Ye=r.decorators)!=null||(r.decorators=[]),(ct=r.override)!=null||(r.override=!1),(L=r.optional)!=null||(r.optional=!1);return;case"ClassExpression":(H=r.id)!=null||(r.id=null);case"ClassDeclaration":(me=r.abstract)!=null||(r.abstract=!1),(je=r.declare)!=null||(r.declare=!1),(ht=r.decorators)!=null||(r.decorators=[]),(Mt=r.implements)!=null||(r.implements=[]),(We=r.superTypeArguments)!=null||(r.superTypeArguments=void 0),(ot=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(Et=r.declare)!=null||(r.declare=!1);return;case"VariableDeclarator":($=r.definite)!=null||(r.definite=!1);return;case"TSEnumDeclaration":(V=r.const)!=null||(r.const=!1),(D=r.declare)!=null||(r.declare=!1);return;case"TSEnumMember":(Z=r.computed)!=null||(r.computed=!1);return;case"TSImportType":(de=r.qualifier)!=null||(r.qualifier=null),(Te=r.options)!=null||(r.options=null);return;case"TSInterfaceDeclaration":(Fe=r.declare)!=null||(r.declare=!1),(Me=r.extends)!=null||(r.extends=[]);return;case"TSMappedType":(et=r.optional)!=null||(r.optional=!1),(Ve=r.readonly)!=null||(r.readonly=void 0);return;case"TSModuleDeclaration":(Ie=r.declare)!=null||(r.declare=!1),(Ke=r.global)!=null||(r.global=r.kind==="global");return;case"TSTypeParameter":($e=r.const)!=null||(r.const=!1),(be=r.in)!=null||(r.in=!1),(Ge=r.out)!=null||(r.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(r,i){if(Tr(r)){if(Ec.lastIndex=i,Ec.test(this.input)){let s=this.codePointAtPos(Ec.lastIndex);if(!bi(s)&&s!==92)return!1}return!0}else return r===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let r=this.nextTokenInLineStart(),i=this.codePointAtPos(r);return this.chStartsBindingIdentifierAndNotRelationalOperator(i,r)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let r=this.nextTokenInLineStart(),i=this.codePointAtPos(r);return this.chStartsBindingIdentifier(i,r)||i===34||i===39}};function QU(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:gT(e.object)}function ZU(e,t){var r;let{type:i}=e;if((r=e.extra)!=null&&r.parenthesized)return!1;if(t){if(i==="Literal"){let{value:s}=e;if(typeof s=="string"||typeof s=="boolean")return!0}}else if(i==="StringLiteral"||i==="BooleanLiteral")return!0;return!!(ST(e,t)||eK(e,t)||i==="TemplateLiteral"&&e.expressions.length===0||QU(e))}function ST(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function eK(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:i}=e;if(r==="-"&&ST(i,t))return!0}return!1}function gT(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:gT(e.object)}var iT=ar`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),tK=e=>class extends e{parsePlaceholder(r){if(this.match(133)){let i=this.startNode();return this.next(),this.assertNoSpace(),i.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(i,r)}}finishPlaceholder(r,i){let s=r;return(!s.expectedNode||!s.type)&&(s=this.finishNode(s,"Placeholder")),s.expectedNode=i,s}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(r)}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,i,s,n){r!==void 0&&super.checkReservedWord(r,i,s,n)}cloneIdentifier(r){let i=super.cloneIdentifier(r);return i.type==="Placeholder"&&(i.expectedNode=r.expectedNode),i}cloneStringLiteral(r){return r.type==="Placeholder"?this.cloneIdentifier(r):super.cloneStringLiteral(r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,i,s,n){return r==="Placeholder"||super.isValidLVal(r,i,s,n)}toAssignable(r,i){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,i)}chStartsBindingIdentifier(r,i){if(super.chStartsBindingIdentifier(r,i))return!0;let s=this.nextTokenStart();return this.input.charCodeAt(s)===37&&this.input.charCodeAt(s+1)===37}verifyBreakContinue(r,i){var s;((s=r.label)==null?void 0:s.type)!=="Placeholder"&&super.verifyBreakContinue(r,i)}parseExpressionStatement(r,i){var s;if(i.type!=="Placeholder"||(s=i.extra)!=null&&s.parenthesized)return super.parseExpressionStatement(r,i);if(this.match(14)){let a=r;return a.label=this.finishPlaceholder(i,"Identifier"),this.next(),a.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(a,"LabeledStatement")}this.semicolon();let n=r;return n.name=i.name,this.finishPlaceholder(n,"Statement")}parseBlock(r,i,s){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,i,s)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,i,s){let n=i?"ClassDeclaration":"ClassExpression";this.next();let a=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(133)||this.match(5))r.id=o;else{if(s||!i)return r.id=null,r.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(r,n);throw this.raise(iT.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(r,i,s);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,a),this.finishNode(r,n)}parseExport(r,i){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseExport(r,i);let n=r;if(!this.isContextual(98)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(s,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let a=this.startNode();return a.exported=s,n.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],super.parseExport(n,i)}isExportDefaultSpecifier(){if(this.match(65)){let r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")&&this.input.startsWith(Gr(133),this.nextTokenStartSince(r+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,i){var s;return(s=r.specifiers)!=null&&s.length?!0:super.maybeParseExportDefaultSpecifier(r,i)}checkExport(r){let{specifiers:i}=r;i!=null&&i.length&&(r.specifiers=i.filter(s=>s.exported.type==="Placeholder")),super.checkExport(r),r.specifiers=i}parseImport(r){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(i,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");let s=this.startNodeAtNode(i);return s.local=i,r.specifiers.push(this.finishNode(s,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(r)||this.parseNamedImportSpecifiers(r)),this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(iT.UnexpectedSpace,this.state.lastTokEndLoc)}},rK=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,i=this.startNode();if(this.next(),Ue(this.state.type)){let s=this.parseIdentifierName(),n=this.createIdentifier(i,s);if(this.castNodeTo(n,"V8IntrinsicIdentifier"),this.match(10))return n}this.unexpected(r)}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}},sT=["minimal","fsharp","hack","smart"],nT=["^^","@@","^","%","#"];function iK(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let i=e.get("decorators").decoratorsBeforeExport;if(i!=null&&typeof i!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let s=e.get("decorators").allowCallParenthesized;if(s!=null&&typeof s!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var t;let i=e.get("pipelineOperator").proposal;if(!sT.includes(i)){let s=sT.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${s}.`)}if(i==="hack"){var r;if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let s=e.get("pipelineOperator").topicToken;if(!nT.includes(s)){let n=nT.map(a=>`"${a}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}if(s==="#"&&((r=e.get("recordAndTuple"))==null?void 0:r.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if(i==="smart"&&((t=e.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}if(e.has("moduleAttributes")){if(e.has("deprecatedImportAssert")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(e.get("moduleAttributes").version!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAssertions")&&e.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(e.has("deprecatedImportAssert")||e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax&&e.set("deprecatedImportAssert",{}),e.has("recordAndTuple")){let i=e.get("recordAndTuple").syntaxType;if(i!=null){let s=["hash","bar"];if(!s.includes(i))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+s.map(n=>`'${n}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let i=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw i.missingPlugins="doExpressions",i}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&e.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}var xT={estree:oU,jsx:jU,flow:MU,typescript:GU,v8intrinsic:rK,placeholders:tK},sK=Object.keys(xT),$c=class extends Vc{checkProto(t,r,i,s){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return i;let n=t.key;return(n.type==="Identifier"?n.name:n.value)==="__proto__"?r?(this.raise(v.RecordNoProto,n),!0):(i&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=n.loc.start):this.raise(v.DuplicateProto,n)),!0):i}shouldExitDescending(t,r){return t.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(t.start)===r}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(v.ParseExpressionEmptyInput,this.state.startLoc);let t=this.parseExpression();if(!this.match(140))throw this.raise(v.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.optionFlags&256&&(t.tokens=this.tokens),t}parseExpression(t,r){return t?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(t){let r=this.state.startLoc,i=this.parseMaybeAssign(t);if(this.match(12)){let s=this.startNodeAt(r);for(s.expressions=[i];this.eat(12);)s.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(t,r){return this.disallowInAnd(()=>this.parseMaybeAssign(t,r))}parseMaybeAssignAllowIn(t,r){return this.allowInAnd(()=>this.parseMaybeAssign(t,r))}setOptionalParametersError(t){t.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(t,r){let i=this.state.startLoc,s=this.isContextual(108);if(s&&this.prodParam.hasYield){this.next();let l=this.parseYield(i);return r&&(l=r.call(this,l,i)),l}let n;t?n=!1:(t=new Yi,n=!0);let{type:a}=this.state;(a===10||Ue(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(t);if(r&&(o=r.call(this,o,i)),fU(this.state.type)){let l=this.startNodeAt(i),u=this.state.value;if(l.operator=u,this.match(29)){this.toAssignable(o,!0),l.left=o;let f=i.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=f&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=f&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=f&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null),t.voidPatternLoc!=null&&t.voidPatternLoc.index>=f&&(t.voidPatternLoc=null)}else l.left=o;return this.next(),l.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(l,"AssignmentExpression"),void 0,void 0,void 0,void 0,u==="||="||u==="&&="||u==="??="),l}else n&&this.checkExpressionErrors(t,!0);if(s){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?Ms(l):Ms(l)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(v.YieldNotInGeneratorFunction,i),this.parseYield(i)}return o}parseMaybeConditional(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprOps(t);return this.shouldExitDescending(s,i)?s:this.parseConditional(s,r,t)}parseConditional(t,r,i){if(this.eat(17)){let s=this.startNodeAt(r);return s.test=t,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(s,i)?s:this.parseExprOp(s,r,-1)}parseExprOp(t,r,i){if(this.isPrivateName(t)){let n=this.getPrivateNameSV(t);(i>=xa(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(v.PrivateInExpectedIn,t,{identifierName:n}),this.classScope.usePrivateName(n,t.loc.start)}let s=this.state.type;if(hU(s)&&(this.prodParam.hasIn||!this.match(58))){let n=xa(s);if(n>i){if(s===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,r)}let a=this.startNodeAt(r);a.left=t,a.operator=this.state.value;let o=s===41||s===42,l=s===40;if(l&&(n=xa(42)),this.next(),s===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(v.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(s,n);let u=this.finishNode(a,o||l?"LogicalExpression":"BinaryExpression"),f=this.state.type;if(l&&(f===41||f===42)||o&&f===40)throw this.raise(v.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(u,r,i)}}return t}parseExprOpRightExpr(t,r){let i=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(v.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,r),i)});default:return this.parseExprOpBaseRightExpr(t,r)}}parseExprOpBaseRightExpr(t,r){let i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),i,gU(t)?r-1:r)}parseHackPipeBody(){var t;let{startLoc:r}=this.state,i=this.parseMaybeAssign();return Zq.has(i.type)&&!((t=i.extra)!=null&&t.parenthesized)&&this.raise(v.PipeUnparenthesizedBody,r,{type:i.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(v.PipeTopicUnused,r),i}checkExponentialAfterUnary(t){this.match(57)&&this.raise(v.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,r){let i=this.state.startLoc,s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();let l=this.parseAwait(i);return r||this.checkExponentialAfterUnary(l),l}let n=this.match(34),a=this.startNode();if(yU(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let l=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&l){let u=a.argument;u.type==="Identifier"?this.raise(v.StrictDelete,a):this.hasPropertyAsPrivateName(u)&&this.raise(v.DeletePrivateField,a)}if(!n)return r||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}let o=this.parseUpdate(a,n,t);if(s){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?Ms(l):Ms(l)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(v.AwaitNotInAsyncContext,i),this.parseAwait(i)}return o}parseUpdate(t,r,i){if(r){let a=t;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),t}let s=this.state.startLoc,n=this.parseExprSubscripts(i);if(this.checkExpressionErrors(i,!1))return n;for(;mU(this.state.type)&&!this.canInsertSemicolon();){let a=this.startNodeAt(s);a.operator=this.state.value,a.prefix=!1,a.argument=n,this.next(),this.checkLVal(n,n=this.finishNode(a,"UpdateExpression"))}return n}parseExprSubscripts(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprAtom(t);return this.shouldExitDescending(s,i)?s:this.parseSubscripts(s,r)}parseSubscripts(t,r,i){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,r,i,s),s.maybeAsyncArrow=!1;while(!s.stop);return t}parseSubscript(t,r,i,s){let{type:n}=this.state;if(!i&&n===15)return this.parseBind(t,r,s);if(Pa(n))return this.parseTaggedTemplateExpression(t,r,s);let a=!1;if(n===18){if(i&&(this.raise(v.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(t,s);s.optionalChainMember=a=!0,this.next()}if(!i&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,r,s,a);{let o=this.eat(0);return o||a||this.eat(16)?this.parseMember(t,r,s,o,a):this.stopParseSubscript(t,s)}}stopParseSubscript(t,r){return r.stop=!0,t}parseMember(t,r,i,s,n){let a=this.startNodeAt(r);return a.object=t,a.computed=s,s?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?(t.type==="Super"&&this.raise(v.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),i.optionalChainMember?(a.optional=n,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(t,r,i){let s=this.startNodeAt(r);s.object=t,this.next();let n=this.match(83),a=this.parseNoCallExpr();if(a.type==="Super"||n&&a.type==="ImportExpression"||a.type==="Import")throw this.raise(v.UnsupportedBindRHS,a);return s.callee=a,i.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),r,!1)}parseCoverCallAndAsyncArrowHead(t,r,i,s){let n=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(r);o.callee=t;let{maybeAsyncArrow:l,optionalChainMember:u}=i;l&&(this.expressionScope.enter(YU()),a=new Yi),u&&(o.optional=s),s?o.arguments=this.parseCallExpressionArguments():o.arguments=this.parseCallExpressionArguments(t.type!=="Super",o,a);let f=this.finishCallExpression(o,u);return l&&this.shouldParseAsyncArrow()&&!s?(i.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),f=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),f)):(l&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(f)),this.state.maybeInArrowParameters=n,f}toReferencedArguments(t,r){this.toReferencedListDeep(t.arguments,r)}parseTaggedTemplateExpression(t,r,i){let s=this.startNodeAt(r);return s.tag=t,s.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(v.OptionalChainingNoTemplate,r),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.offsetToSourcePos(t.start)===this.state.potentialArrowAt}finishCallExpression(t,r){if(t.callee.type==="Import")if(t.arguments.length===0||t.arguments.length>2)this.raise(v.ImportCallArity,t);else for(let i of t.arguments)i.type==="SpreadElement"&&this.raise(v.ImportCallSpreadArgument,i);return this.finishNode(t,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,r,i){let s=[],n=!0,a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(n)n=!1;else if(this.expect(12),this.match(11)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}s.push(this.parseExprListItem(11,!1,i,t))}return this.state.inFSharpPipelineDirectBody=a,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,r){var i;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(t,r.arguments,!0,(i=r.extra)==null?void 0:i.trailingCommaLoc),r.innerComments&&qs(t,r.innerComments),r.callee.trailingComments&&qs(t,r.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let r,i=null,{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(r):this.match(10)?this.optionFlags&512?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(v.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134: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 n=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(n)}case 0:return this.parseArrayLike(3,!1,t);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:i=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(i,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let n=r.callee=this.parseNoCallExpr();if(n.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(v.UnsupportedBind,n)}case 139:return this.raise(v.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.parseTopicReference(n);throw this.unexpected()}case 47:{let n=this.input.codePointAt(this.nextTokenStart());throw Tr(n)||n===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(s===137)return this.parseDecimalLiteral(this.state.value);if(s===2||s===1)return this.parseArrayLike(this.state.type===2?4:3,!0);if(s===6||s===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0);if(Ue(s)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let n=this.state.potentialArrowAt===this.state.start,a=this.state.containsEsc,o=this.parseIdentifier();if(!a&&o.name==="async"&&!this.canInsertSemicolon()){let{type:l}=this.state;if(l===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(Ue(l))return n&&this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(l===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return n&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(t,r){let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.state.type=t,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=kt(this.state.endLoc,-1),this.parseTopicReference(i);throw this.unexpected()}parseTopicReference(t){let r=this.startNode(),i=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(r,i,t,s)}finishTopicReference(t,r,i,s){if(this.testTopicReferenceConfiguration(i,r,s))return i==="hack"?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(v.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(t,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(v.PrimaryTopicNotAllowed,r),this.registerTopicReference(),this.finishNode(t,"PipelinePrimaryTopicReference"));throw this.raise(v.PipeTopicUnconfiguredToken,r,{token:Gr(s)})}testTopicReferenceConfiguration(t,r,i){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Gr(i)}]);case"smart":return i===27;default:throw this.raise(v.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(ba(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(v.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,r,!0)}parseDo(t,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),t.async=r,this.next();let i=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=i,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.optionFlags&16||this.raise(v.SuperNotAllowed,t):this.scope.allowSuper||this.optionFlags&16||this.raise(v.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(v.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),r=this.startNodeAt(kt(this.state.startLoc,1)),i=this.state.value;return this.next(),t.id=this.createIdentifier(r,i),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,r,"sent")}return this.parseFunction(t)}parseMetaProperty(t,r,i){t.meta=r;let s=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==i||s)&&this.raise(v.UnsupportedMetaProperty,t.property,{target:r.name,onlyValidPropertyName:i}),this.finishNode(t,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(t){if(this.next(),this.isContextual(105)||this.isContextual(97)){let r=this.isContextual(105);return this.expectPlugin(r?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),t.phase=r?"source":"defer",this.parseImportCall(t)}else{let r=this.createIdentifierAt(this.startNodeAtNode(t),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(v.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,r,"meta")}}parseLiteralAtNode(t,r,i){return this.addExtra(i,"rawValue",t),this.addExtra(i,"raw",this.input.slice(this.offsetToSourcePos(i.start),this.state.end)),i.value=t,this.next(),this.finishNode(i,r)}parseLiteral(t,r){let i=this.startNode();return this.parseLiteralAtNode(t,r,i)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let r=this.startNode();return this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.pattern=t.pattern,r.flags=t.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(t){let r=this.startNode();return r.value=t,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let r=this.state.startLoc,i;this.next(),this.expressionScope.enter(XU());let s=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],l=new Yi,u=!0,f,h;for(;!this.match(11);){if(u)u=!1;else if(this.expect(12,l.optionalParametersLoc===null?null:l.optionalParametersLoc),this.match(11)){h=this.state.startLoc;break}if(this.match(21)){let E=this.state.startLoc;if(f=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),E)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowInOrVoidPattern(11,l,this.parseParenItem))}let g=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=n;let b=this.startNodeAt(r);return t&&this.shouldParseArrow(o)&&(b=this.parseArrow(b))?(this.checkDestructuringPrivate(l),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(b,o,!1),b):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),h&&this.unexpected(h),f&&this.unexpected(f),this.checkExpressionErrors(l,!0),this.toReferencedListDeep(o,!0),o.length>1?(i=this.startNodeAt(a),i.expressions=o,this.finishNode(i,"SequenceExpression"),this.resetEndLocation(i,g)):i=o[0],this.wrapParenthesis(r,i))}wrapParenthesis(t,r){if(!(this.optionFlags&1024))return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),this.takeSurroundingComments(r,t.index,this.state.lastTokEndLoc.index),r;let i=this.startNodeAt(t);return i.expression=r,this.finishNode(i,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,r){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let i=this.parseMetaProperty(t,r,"target");return this.scope.allowNewTarget||this.raise(v.UnexpectedNewTarget,i),i}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),t.arguments=r}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let r=this.match(83),i=this.parseNoCallExpr();t.callee=i,(r&&i.type==="ImportExpression"||i.type==="Import")&&this.raise(v.ImportCallNotNewExpression,i),i.type==="Super"&&this.raise(v.SuperCallNotNewExpression,i)}parseTemplateElement(t){let{start:r,startLoc:i,end:s,value:n}=this.state,a=r+1,o=this.startNodeAt(kt(i,1));n===null&&(t||this.raise(v.InvalidEscapeSequenceTemplate,kt(this.state.firstInvalidTemplateEscapePos,1)));let l=this.match(24),u=l?-1:-2,f=s+u;o.value={raw:this.input.slice(a,f).replace(/\r\n?/g,`
31
- `),cooked:n===null?null:n.slice(1,u)},o.tail=l,this.next();let h=this.finishNode(o,"TemplateElement");return this.resetEndLocation(h,kt(this.state.lastTokEndLoc,u)),h}parseTemplate(t){let r=this.startNode(),i=this.parseTemplateElement(t),s=[i],n=[];for(;!i.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(i=this.parseTemplateElement(t));return r.expressions=n,r.quasis=s,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,r,i,s){i&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=!1,o=!0,l=this.startNode();for(l.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(l);break}let f;r?f=this.parseBindingProperty():(f=this.parsePropertyDefinition(s),a=this.checkProto(f,i,a,s)),i&&!this.isObjectProperty(f)&&f.type!=="SpreadElement"&&this.raise(v.InvalidRecordProperty,f),f.shorthand&&this.addExtra(f,"shorthand",!0),l.properties.push(f)}this.next(),this.state.inFSharpPipelineDirectBody=n;let u="ObjectExpression";return r?u="ObjectPattern":i&&(u="RecordExpression"),this.finishNode(l,u)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(v.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let i=this.startNode(),s=!1,n=!1,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(i.decorators=r,r=[]),i.method=!1,t&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(i);let l=this.state.containsEsc;if(this.parsePropertyName(i,t),!o&&!l&&this.maybeAsyncOrAccessorProp(i)){let{key:u}=i,f=u.name;f==="async"&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(u),o=this.eat(55),this.parsePropertyName(i)),(f==="get"||f==="set")&&(n=!0,this.resetPreviousNodeTrailingComments(u),i.kind=f,this.match(55)&&(o=!0,this.raise(v.AccessorIsGenerator,this.state.curPosition(),{kind:f}),this.next()),this.parsePropertyName(i))}return this.parseObjPropValue(i,a,o,s,!1,n,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var r;let i=this.getGetterSetterExpectedParamCount(t),s=this.getObjectOrClassMethodParams(t);s.length!==i&&this.raise(t.kind==="get"?v.BadGetterArity:v.BadSetterArity,t),t.kind==="set"&&((r=s[s.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(v.BadSetterRestParameter,t)}parseObjectMethod(t,r,i,s,n){if(n){let a=this.parseMethod(t,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(i||r||this.match(10))return s&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,r,i,!1,!1,"ObjectMethod")}parseObjectProperty(t,r,i,s){if(t.shorthand=!1,this.eat(14))return t.value=i?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,s),this.finishObjectProperty(t);if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),i)t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key));else if(this.match(29)){let n=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=n):this.raise(v.InvalidCoverInitializedName,n),t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key))}else t.value=this.cloneIdentifier(t.key);return t.shorthand=!0,this.finishObjectProperty(t)}}finishObjectProperty(t){return this.finishNode(t,"ObjectProperty")}parseObjPropValue(t,r,i,s,n,a,o){let l=this.parseObjectMethod(t,i,s,n,a)||this.parseObjectProperty(t,r,n,o);return l||this.unexpected(),l}parsePropertyName(t,r){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:i,value:s}=this.state,n;if(or(i))n=this.parseIdentifier(!0);else switch(i){case 135:n=this.parseNumericLiteral(s);break;case 134:n=this.parseStringLiteral(s);break;case 136:n=this.parseBigIntLiteral(s);break;case 139:{let a=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=a):this.raise(v.UnexpectedPrivateField,a),n=this.parsePrivateName();break}default:if(i===137){n=this.parseDecimalLiteral(s);break}this.unexpected()}t.key=n,i!==139&&(t.computed=!1)}}initFunction(t,r){t.id=null,t.generator=!1,t.async=r}parseMethod(t,r,i,s,n,a,o=!1){this.initFunction(t,i),t.generator=r,this.scope.enter(530|(o?576:0)|(n?32:0)),this.prodParam.enter(ba(i,t.generator)),this.parseFunctionParams(t,s);let l=this.parseFunctionBodyAndFinish(t,a,!0);return this.prodParam.exit(),this.scope.exit(),l}parseArrayLike(t,r,i){r&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=this.startNode();return this.next(),n.elements=this.parseExprList(t,!r,i,n),this.state.inFSharpPipelineDirectBody=s,this.finishNode(n,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,r,i,s){this.scope.enter(518);let n=ba(i,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(t,i);let a=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,r,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,r,i){this.toAssignableList(r,i,!1),t.params=r}parseFunctionBodyAndFinish(t,r,i=!1){return this.parseFunctionBody(t,!1,i),this.finishNode(t,r)}parseFunctionBody(t,r,i=!1){let s=r&&!this.match(5);if(this.expressionScope.enter(TT()),s)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,r,!1);else{let n=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,o=>{let l=!this.isSimpleParamList(t.params);o&&l&&this.raise(v.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);let u=!n&&this.state.strict;this.checkParams(t,!this.state.strict&&!r&&!i&&!l,r,u),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,u)}),this.prodParam.exit(),this.state.labels=a}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let r=0,i=t.length;r<i;r++)if(!this.isSimpleParameter(t[r]))return!1;return!0}checkParams(t,r,i,s=!0){let n=!r&&new Set,a={type:"FormalParameters"};for(let o of t.params)this.checkLVal(o,a,5,n,s)}parseExprList(t,r,i,s){let n=[],a=!0;for(;!this.eat(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}n.push(this.parseExprListItem(t,r,i))}return n}parseExprListItem(t,r,i,s){let n;if(this.match(12))r||this.raise(v.UnexpectedToken,this.state.curPosition(),{unexpected:","}),n=null;else if(this.match(21)){let a=this.state.startLoc;n=this.parseParenItem(this.parseSpread(i),a)}else if(this.match(17)){this.expectPlugin("partialApplication"),s||this.raise(v.UnexpectedArgumentPlaceholder,this.state.startLoc);let a=this.startNode();this.next(),n=this.finishNode(a,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowInOrVoidPattern(t,i,this.parseParenItem);return n}parseIdentifier(t){let r=this.startNode(),i=this.parseIdentifierName(t);return this.createIdentifier(r,i)}createIdentifier(t,r){return t.name=r,t.loc.identifierName=r,this.finishNode(t,"Identifier")}createIdentifierAt(t,r,i){return t.name=r,t.loc.identifierName=r,this.finishNodeAt(t,"Identifier",i)}parseIdentifierName(t){let r,{startLoc:i,type:s}=this.state;or(s)?r=this.state.value:this.unexpected();let n=cU(s);return t?n&&this.replaceToken(132):this.checkReservedWord(r,i,n,!1),this.next(),r}checkReservedWord(t,r,i,s){if(t.length>10||!NU(t))return;if(i&&CU(t)){this.raise(v.UnexpectedKeyword,r,{keyword:t});return}if((this.state.strict?s?dT:pT:cT)(t,this.inModule)){this.raise(v.UnexpectedReservedWord,r,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(v.YieldBindingIdentifier,r);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(v.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(v.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(v.ArgumentsInClass,r);return}}recordAwaitIfAllowed(){let t=this.prodParam.hasAwait;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){let r=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(v.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(v.ObsoleteAwaitStar,r),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||Pa(t)||t===102&&!this.state.containsEsc||t===138||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(t){let r=this.startNodeAt(t);this.expressionScope.recordParameterInitializerError(v.YieldInParameter,r);let i=!1,s=null;if(!this.hasPrecedingLineBreak())switch(i=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!i)break;default:s=this.parseMaybeAssign()}return r.delegate=i,r.argument=s,this.finishNode(r,"YieldExpression")}parseImportCall(t){if(this.next(),t.source=this.parseMaybeAssignAllowIn(),t.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(t.source);else if(t.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(t.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(v.ImportCallArity,t)}}return this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(v.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(t,r){if(this.isSimpleReference(t)){let i=this.startNodeAt(r);return i.callee=t,this.finishNode(i,"PipelineBareFunction")}else{let i=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),i.expression=t,this.finishNode(i,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(v.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(v.PipelineTopicUnused,t)}withTopicBindingContext(t){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}else return t()}withSoloAwaitPermittingContext(t){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=r}}allowInAnd(t){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return t()}finally{this.prodParam.exit()}}return t()}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(t){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,t);return this.state.inFSharpPipelineDirectBody=i,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let i=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(r,8,"module")}finally{i()}return this.finishNode(t,"ModuleExpression")}parseVoidPattern(t){this.expectPlugin("discardBinding");let r=this.startNode();return t!=null&&(t.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(r,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(t,r,i){if(r!=null&&this.match(88)){let s=this.lookaheadCharCode();if(s===44||s===(t===3?93:t===8?125:41)||s===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(r))}return this.parseMaybeAssignAllowIn(r,i)}parsePropertyNamePrefixOperator(t){}},Pc={kind:1},nK={kind:2},aK=/[\uD800-\uDFFF]/u,Ac=/in(?:stanceof)?/y;function oK(e,t,r){for(let i=0;i<e.length;i++){let s=e[i],{type:n}=s;if(typeof n=="number"){if(n===139){let{loc:a,start:o,value:l,end:u}=s,f=o+1,h=kt(a.start,1);e.splice(i,1,new yr({type:_r(27),value:"#",start:o,end:f,startLoc:a.start,endLoc:h}),new yr({type:_r(132),value:l,start:f,end:u,startLoc:h,endLoc:a.end})),i++;continue}if(Pa(n)){let{loc:a,start:o,value:l,end:u}=s,f=o+1,h=kt(a.start,1),g;t.charCodeAt(o-r)===96?g=new yr({type:_r(22),value:"`",start:o,end:f,startLoc:a.start,endLoc:h}):g=new yr({type:_r(8),value:"}",start:o,end:f,startLoc:a.start,endLoc:h});let b,E,w,A;n===24?(E=u-1,w=kt(a.end,-1),b=l===null?null:l.slice(1,-1),A=new yr({type:_r(22),value:"`",start:E,end:u,startLoc:w,endLoc:a.end})):(E=u-2,w=kt(a.end,-2),b=l===null?null:l.slice(1,-2),A=new yr({type:_r(23),value:"${",start:E,end:u,startLoc:w,endLoc:a.end})),e.splice(i,1,g,new yr({type:_r(20),value:b,start:f,end:E,startLoc:h,endLoc:w}),A),i+=2;continue}s.type=_r(n)}}return e}var Jc=class extends $c{parseTopLevel(t,r){return t.program=this.parseProgram(r,140,this.options.sourceType==="module"?"module":"script"),t.comments=this.comments,this.optionFlags&256&&(t.tokens=oK(this.tokens,this.input,this.startIndex)),this.finishNode(t,"File")}parseProgram(t,r,i){if(t.sourceType=i,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,r),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[n,a]of Array.from(this.scope.undefinedExports))this.raise(v.ModuleExportUndefined,a,{localName:n});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let s;return r===140?s=this.finishNode(t,"Program"):s=this.finishNodeAt(t,"Program",kt(this.state.startLoc,-1)),s}stmtToDirective(t){let r=this.castNodeTo(t,"Directive"),i=this.castNodeTo(t.expression,"DirectiveLiteral"),s=i.value,n=this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end)),a=i.value=n.slice(1,-1);return this.addExtra(i,"raw",n),this.addExtra(i,"rawValue",a),this.addExtra(i,"expressionValue",s),r.value=i,delete t.expression,r}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);if(this.isUnparsedContextual(t,"of")){let i=this.lookaheadCharCodeSince(t+2);if(i!==61&&i!==58&&i!==59)return!1}return!!(this.chStartsBindingIdentifier(r,t)||this.isUnparsedContextual(t,"void"))}nextTokenIsIdentifierOnSameLine(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifier(r,t)}isAwaitUsing(){if(!this.isContextual(96))return!1;let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let r=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(r,t))return!0}return!1}chStartsBindingIdentifier(t,r){if(Tr(t)){if(Ac.lastIndex=r,Ac.test(this.input)){let i=this.codePointAtPos(Ac.lastIndex);if(!bi(i)&&i!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),r=this.codePointAtPos(t);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,t)}hasInLineFollowingBindingIdentifierOrBrace(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return r===123||this.chStartsBindingIdentifier(r,t)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,t&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(t,r)}parseStatementContent(t,r){let i=this.state.type,s=this.startNode(),n=!!(t&2),a=!!(t&4),o=t&1;switch(i){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?v.StrictFunction:this.options.annexB?v.SloppyFunctionAnnexB:v.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(s,!1,!n&&a);case 80:return n||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,s),!0);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(this.isAwaitUsing())return this.allowsUsing()?n?this.recordAwaitIfAllowed()||this.raise(v.AwaitUsingNotInAsyncContext,s):this.raise(v.UnexpectedLexicalDeclaration,s):this.raise(v.UnexpectedUsingDeclaration,s),this.next(),this.parseVarStatement(s,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?n||this.raise(v.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(v.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;let f=this.nextTokenStart(),h=this.codePointAtPos(f);if(h!==91&&(!n&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(h,f)&&h!==123))break}case 75:n||this.raise(v.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let f=this.state.value;return this.parseVarStatement(s,f)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{let f=this.lookaheadCharCode();if(f===40||f===46)break}case 82:{!(this.optionFlags&8)&&!o&&this.raise(v.UnexpectedImportExport,this.state.startLoc),this.next();let f;return i===83?f=this.parseImport(s):f=this.parseExport(s,r),this.assertModuleNodeAllowed(f),f}default:if(this.isAsyncFunction())return n||this.raise(v.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(s,!0,!n&&a)}let l=this.state.value,u=this.parseExpression();return Ue(i)&&u.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(s,l,u,t):this.parseExpressionStatement(s,u,r)}assertModuleNodeAllowed(t){!(this.optionFlags&8)&&!this.inModule&&this.raise(v.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,r,i){if(t){var s;(s=r.decorators)!=null&&s.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(v.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...t)):r.decorators=t,this.resetStartLocationFromNode(r,t[0]),i&&this.resetStartLocationFromNode(i,r)}return r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(v.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(v.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,i;if(this.match(10)){let s=this.state.startLoc;this.next(),i=this.parseExpression(),this.expect(11),i=this.wrapParenthesis(s,i);let n=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(i,s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==i&&this.raise(v.DecoratorArgumentsOutsideParentheses,n)}else{for(i=this.parseIdentifier(!1);this.eat(16);){let s=this.startNodeAt(r);s.object=i,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,i=this.finishNode(s,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(i,r)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t,r){if(this.eat(10)){let i=this.startNodeAt(r);return i.callee=t,i.arguments=this.parseCallExpressionArguments(),this.toReferencedList(i.arguments),this.finishNode(i,"CallExpression")}return t}parseBreakContinueStatement(t,r){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,r),this.finishNode(t,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,r){let i;for(i=0;i<this.state.labels.length;++i){let s=this.state.labels[i];if((t.label==null||s.name===t.label.name)&&(s.kind!=null&&(r||s.kind===1)||t.label&&r))break}if(i===this.state.labels.length){let s=r?"BreakStatement":"ContinueStatement";this.raise(v.IllegalBreakContinue,t,{type:s})}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let t=this.parseExpression();return this.expect(11),t}parseDoWhileStatement(t){return this.next(),this.state.labels.push(Pc),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(Pc);let r=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(r=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(t,null);let i=this.isContextual(100);{let l=this.isAwaitUsing(),u=l||this.isForUsing(),f=i&&this.hasFollowingBindingAtom()||u;if(this.match(74)||this.match(75)||f){let h=this.startNode(),g;l?(g="await using",this.recordAwaitIfAllowed()||this.raise(v.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):g=this.state.value,this.next(),this.parseVar(h,!0,g);let b=this.finishNode(h,"VariableDeclaration"),E=this.match(58);return E&&u&&this.raise(v.ForInUsing,b),(E||this.isContextual(102))&&b.declarations.length===1?this.parseForIn(t,b,r):(r!==null&&this.unexpected(r),this.parseFor(t,b))}}let s=this.isContextual(95),n=new Yi,a=this.parseExpression(!0,n),o=this.isContextual(102);if(o&&(i&&this.raise(v.ForOfLet,a),r===null&&s&&a.type==="Identifier"&&this.raise(v.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(n),this.toAssignable(a,!0);let l=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{type:l}),this.parseForIn(t,a,r)}else this.checkExpressionErrors(n,!0);return r!==null&&this.unexpected(r),this.parseFor(t,a)}parseFunctionStatement(t,r,i){return this.next(),this.parseFunction(t,1|(i?2:0)|(r?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||this.raise(v.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let r=t.cases=[];this.expect(5),this.state.labels.push(nK),this.scope.enter(256);let i;for(let s;!this.match(8);)if(this.match(61)||this.match(65)){let n=this.match(61);i&&this.finishNode(i,"SwitchCase"),r.push(i=this.startNode()),i.consequent=[],this.next(),n?i.test=this.parseExpression():(s&&this.raise(v.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),s=!0,i.test=null),this.expect(14)}else i?i.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),i&&this.finishNode(i,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(v.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(r,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(v.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,r,i=!1){return this.next(),this.parseVar(t,!1,r,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(Pc),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(v.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,r,i,s){for(let a of this.state.labels)a.name===r&&this.raise(v.LabelRedeclaration,i,{labelName:r});let n=dU(this.state.type)?1:this.match(71)?2:null;for(let a=this.state.labels.length-1;a>=0;a--){let o=this.state.labels[a];if(o.statementStart===t.start)o.statementStart=this.sourceToOffsetPos(this.state.start),o.kind=n;else break}return this.state.labels.push({name:r,kind:n,statementStart:this.sourceToOffsetPos(this.state.start)}),t.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,r,i){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,r=!0,i){let s=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(s,t,!1,8,i),r&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,r,i,s,n){let a=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(a,r?o:void 0,i,s,n)}parseBlockOrModuleBlockBody(t,r,i,s,n){let a=this.state.strict,o=!1,l=!1;for(;!this.match(s);){let u=i?this.parseModuleItem():this.parseStatementListItem();if(r&&!l){if(this.isValidDirective(u)){let f=this.stmtToDirective(u);r.push(f),!o&&f.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}l=!0,this.state.strictErrors.clear()}t.push(u)}n?.call(this,o),a||this.setStrict(!1),this.next()}parseFor(t,r){return t.init=r,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,r,i){let s=this.match(58);return this.next(),s?i!==null&&this.unexpected(i):t.await=i!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!s||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(v.ForInOfLoopInitializer,r,{type:s?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(v.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),t.left=r,t.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,s?"ForInStatement":"ForOfStatement")}parseVar(t,r,i,s=!1){let n=t.declarations=[];for(t.kind=i;;){let a=this.startNode();if(this.parseVarId(a,i),a.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,a.init===null&&!s&&(a.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(v.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(i==="const"||i==="using"||i==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(v.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:i})),n.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,r){let i=this.parseBindingAtom();r==="using"||r==="await using"?(i.type==="ArrayPattern"||i.type==="ObjectPattern")&&this.raise(v.UsingDeclarationHasBindingPattern,i.loc.start):i.type==="VoidPattern"&&this.raise(v.UnexpectedVoidPattern,i.loc.start),this.checkLVal(i,{type:"VariableDeclarator"},r==="var"?5:8201),t.id=i}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,r=0){let i=r&2,s=!!(r&1),n=s&&!(r&4),a=!!(r&8);this.initFunction(t,a),this.match(55)&&(i&&this.raise(v.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),s&&(t.id=this.parseFunctionId(n));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(ba(a,t.generator)),s||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!i&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||Ue(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(JU()),t.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,r,i){this.next();let s=this.state.strict;return this.state.strict=!0,this.parseClassId(t,r,i),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,s),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,r){this.classScope.enter();let i={hadConstructor:!1,hadSuperClass:t},s=[],n=this.startNode();if(n.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(v.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){s.push(this.parseDecorator());continue}let a=this.startNode();s.length&&(a.decorators=s,this.resetStartLocationFromNode(a,s[0]),s=[]),this.parseClassMember(n,a,i),a.kind==="constructor"&&a.decorators&&a.decorators.length>0&&this.raise(v.DecoratorConstructor,a)}}),this.state.strict=r,this.next(),s.length)throw this.raise(v.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(t,r){let i=this.parseIdentifier(!0);if(this.isClassMethod()){let s=r;return s.kind="method",s.computed=!1,s.key=i,s.static=!1,this.pushClassMethod(t,s,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let s=r;return s.computed=!1,s.key=i,s.static=!1,t.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(i),!1}parseClassMember(t,r,i){let s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(t,r))return;if(this.eat(5)){this.parseClassStaticBlock(t,r);return}}this.parseClassMemberWithIsStatic(t,r,i,s)}parseClassMemberWithIsStatic(t,r,i,s){let n=r,a=r,o=r,l=r,u=r,f=n,h=n;if(r.static=s,this.parsePropertyNamePrefixOperator(r),this.eat(55)){f.kind="method";let I=this.match(139);if(this.parseClassElementName(f),this.parsePostMemberNameModifiers(f),I){this.pushClassPrivateMethod(t,a,!0,!1);return}this.isNonstaticConstructor(n)&&this.raise(v.ConstructorIsGenerator,n.key),this.pushClassMethod(t,n,!0,!1,!1,!1);return}let g=!this.state.containsEsc&&Ue(this.state.type),b=this.parseClassElementName(r),E=g?b.name:null,w=this.isPrivateName(b),A=this.state.startLoc;if(this.parsePostMemberNameModifiers(h),this.isClassMethod()){if(f.kind="method",w){this.pushClassPrivateMethod(t,a,!1,!1);return}let I=this.isNonstaticConstructor(n),k=!1;I&&(n.kind="constructor",i.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(v.DuplicateConstructor,b),I&&this.hasPlugin("typescript")&&r.override&&this.raise(v.OverrideOnConstructor,b),i.hadConstructor=!0,k=i.hadSuperClass),this.pushClassMethod(t,n,!1,!1,I,k)}else if(this.isClassProperty())w?this.pushClassPrivateProperty(t,l):this.pushClassProperty(t,o);else if(E==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(b);let I=this.eat(55);h.optional&&this.unexpected(A),f.kind="method";let k=this.match(139);this.parseClassElementName(f),this.parsePostMemberNameModifiers(h),k?this.pushClassPrivateMethod(t,a,I,!0):(this.isNonstaticConstructor(n)&&this.raise(v.ConstructorIsAsync,n.key),this.pushClassMethod(t,n,I,!0,!1,!1))}else if((E==="get"||E==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(b),f.kind=E;let I=this.match(139);this.parseClassElementName(n),I?this.pushClassPrivateMethod(t,a,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(v.ConstructorIsAccessor,n.key),this.pushClassMethod(t,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else if(E==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(b);let I=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(t,u,I)}else this.isLineTerminator()?w?this.pushClassPrivateProperty(t,l):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:r,value:i}=this.state;if((r===132||r===134)&&t.static&&i==="prototype"&&this.raise(v.StaticPrototype,this.state.startLoc),r===139){i==="constructor"&&this.raise(v.ConstructorClassPrivateField,this.state.startLoc);let s=this.parsePrivateName();return t.key=s,s}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,r){var i;this.scope.enter(720);let s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let n=r.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,t.body.push(this.finishNode(r,"StaticBlock")),(i=r.decorators)!=null&&i.length&&this.raise(v.DecoratorStaticBlock,r)}pushClassProperty(t,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(v.ConstructorClassField,r.key),t.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(t,r){let i=this.parseClassPrivateProperty(r);t.body.push(i),this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassAccessorProperty(t,r,i){!i&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(v.ConstructorClassField,r.key);let s=this.parseClassAccessorProperty(r);t.body.push(s),i&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(t,r,i,s,n,a){t.body.push(this.parseMethod(r,i,s,n,a,"ClassMethod",!0))}pushClassPrivateMethod(t,r,i,s){let n=this.parseMethod(r,i,s,!1,!1,"ClassPrivateMethod",!0);t.body.push(n);let a=n.kind==="get"?n.static?6:2:n.kind==="set"?n.static?5:1:0;this.declareClassPrivateMethodInScope(n,a)}declareClassPrivateMethodInScope(t,r){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),r,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(592),this.expressionScope.enter(TT()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,r,i,s=8331){if(Ue(this.state.type))t.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(t.id,s);else if(i||!r)t.id=null;else throw this.raise(v.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,r){let i=this.parseMaybeImportPhase(t,!0),s=this.maybeParseExportDefaultSpecifier(t,i),n=!s||this.eat(12),a=n&&this.eatExportStar(t),o=a&&this.maybeParseExportNamespaceSpecifier(t),l=n&&(!o||this.eat(12)),u=s||a;if(a&&!o){if(s&&this.unexpected(),r)throw this.raise(v.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.sawUnambiguousESM=!0,this.finishNode(t,"ExportAllDeclaration")}let f=this.maybeParseExportNamedSpecifiers(t);s&&n&&!a&&!f&&this.unexpected(null,5),o&&l&&this.unexpected(null,98);let h;if(u||f){if(h=!1,r)throw this.raise(v.UnsupportedDecoratorExport,t);this.parseExportFrom(t,u)}else h=this.maybeParseExportDeclaration(t);if(u||f||h){var g;let b=t;if(this.checkExport(b,!0,!1,!!b.source),((g=b.declaration)==null?void 0:g.type)==="ClassDeclaration")this.maybeTakeDecorators(r,b.declaration,b);else if(r)throw this.raise(v.UnsupportedDecoratorExport,t);return this.sawUnambiguousESM=!0,this.finishNode(b,"ExportNamedDeclaration")}if(this.eat(65)){let b=t,E=this.parseExportDefaultExpression();if(b.declaration=E,E.type==="ClassDeclaration")this.maybeTakeDecorators(r,E,b);else if(r)throw this.raise(v.UnsupportedDecoratorExport,t);return this.checkExport(b,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(b,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r?.loc.start);let i=r||this.parseIdentifier(!0),s=this.startNodeAtNode(i);return s.exported=i,t.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var r,i;(i=(r=t).specifiers)!=null||(r.specifiers=[]);let s=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),s.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(s,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){let r=t;r.specifiers||(r.specifiers=[]);let i=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(i)),r.source=null,this.hasPlugin("importAssertions")?r.assertions=[]:r.attributes=[],r.declaration=null,!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(v.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(v.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(Ue(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){let s=this.nextTokenStart(),n=this.input.charCodeAt(s);if(n===123||this.chStartsBindingIdentifier(n,s)&&!this.input.startsWith("from",s))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),i=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||Ue(this.state.type)&&i)return!0;if(this.match(65)&&i){let s=this.input.charCodeAt(this.nextTokenStartSince(r+4));return s===34||s===39}return!1}parseExportFrom(t,r){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(v.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(v.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(v.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,r,i,s){if(r){var n;if(i){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var a;let o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((a=o.extra)!=null&&a.parenthesized)&&this.raise(v.ExportDefaultFromAsIdentifier,o)}}else if((n=t.specifiers)!=null&&n.length)for(let o of t.specifiers){let{exported:l}=o,u=l.type==="Identifier"?l.name:l.value;if(this.checkDuplicateExports(o,u),!s&&o.local){let{local:f}=o;f.type!=="Identifier"?this.raise(v.ExportBindingIsString,o,{localName:f.value,exportName:u}):(this.checkReservedWord(f.name,f.loc.start,!0,!1),this.scope.checkLocalExport(f))}}else if(t.declaration){let o=t.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:l}=o;if(!l)throw new Error("Assertion failure");this.checkDuplicateExports(t,l.name)}else if(o.type==="VariableDeclaration")for(let l of o.declarations)this.checkDeclaration(l.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let r of t.properties)this.checkDeclaration(r);else if(t.type==="ArrayPattern")for(let r of t.elements)r&&this.checkDeclaration(r);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(v.DuplicateDefaultExport,t):this.raise(v.DuplicateExport,t,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(t){let r=[],i=!0;for(this.expect(5);!this.eat(8);){if(i)i=!1;else if(this.expect(12),this.eat(8))break;let s=this.isContextual(130),n=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(a,n,t,s))}return r}parseExportSpecifier(t,r,i,s){return this.eatContextual(93)?t.exported=this.parseModuleExportName():r?t.exported=this.cloneStringLiteral(t.local):t.exported||(t.exported=this.cloneIdentifier(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let t=this.parseStringLiteral(this.state.value),r=aK.exec(t.value);return r&&this.raise(v.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:r[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:r,value:i})=>i.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(t){let{specifiers:r}=t,i=r.length===1?r[0].type:null;if(t.phase==="source")i!=="ImportDefaultSpecifier"&&this.raise(v.SourcePhaseImportRequiresDefault,r[0].loc.start);else if(t.phase==="defer")i!=="ImportNamespaceSpecifier"&&this.raise(v.DeferImportRequiresNamespace,r[0].loc.start);else if(t.module){var s;i!=="ImportDefaultSpecifier"&&this.raise(v.ImportReflectionNotBinding,r[0].loc.start),((s=t.assertions)==null?void 0:s.length)>0&&this.raise(v.ImportReflectionHasAssertion,r[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:r}=t;if(r!=null){let i=r.find(s=>{let n;if(s.type==="ExportSpecifier"?n=s.local:s.type==="ImportSpecifier"&&(n=s.imported),n!==void 0)return n.type==="Identifier"?n.name!=="default":n.value!=="default"});i!==void 0&&this.raise(v.ImportJSONBindingNotDefault,i.loc.start)}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(t,r,i,s){r||(i==="module"?(this.expectPlugin("importReflection",s),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),i==="source"?(this.expectPlugin("sourcePhaseImports",s),t.phase="source"):i==="defer"?(this.expectPlugin("deferredImportEvaluation",s),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(t,r,null),null;let i=this.startNode(),s=this.parseIdentifierName(!0),{type:n}=this.state;return(or(n)?n!==98||this.lookaheadCharCode()===102:n!==12)?(this.applyImportPhase(t,r,s,i.loc.start),null):(this.applyImportPhase(t,r,null),this.createIdentifier(i,s))}isPrecedingIdImportPhase(t){let{type:r}=this.state;return Ue(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(t){return this.match(134)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,r){t.specifiers=[];let s=!this.maybeParseDefaultImportSpecifier(t,r)||this.eat(12),n=s&&this.maybeParseStarImportSpecifier(t);return s&&!n&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var r;return(r=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,r,i){r.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(r,i))}finishImportSpecifier(t,r,i=8201){return this.checkLVal(t.local,{type:r},i),this.finishNode(t,r)}parseImportAttributes(){this.expect(5);let t=[],r=new Set;do{if(this.match(8))break;let i=this.startNode(),s=this.state.value;if(r.has(s)&&this.raise(v.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s}),r.add(s),this.match(134)?i.key=this.parseStringLiteral(s):i.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(v.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],r=new Set;do{let i=this.startNode();if(i.key=this.parseIdentifier(!0),i.key.name!=="type"&&this.raise(v.ModuleAttributeDifferentFromType,i.key),r.has(i.key.name)&&this.raise(v.ModuleAttributesWithDuplicateKeys,i.key,{key:i.key.name}),r.add(i.key.name),this.expect(14),!this.match(134))throw this.raise(v.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let r;var i=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?(r=this.parseModuleAttributes(),this.addExtra(t,"deprecatedWithLegacySyntax",!0)):r=this.parseImportAttributes(),i=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")&&this.raise(v.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(t,"deprecatedAssertSyntax",!0),this.next(),r=this.parseImportAttributes()):r=[];!i&&this.hasPlugin("importAssertions")?t.assertions=r:t.attributes=r}maybeParseDefaultImportSpecifier(t,r){if(r){let i=this.startNodeAtNode(r);return i.local=r,t.specifiers.push(this.finishImportSpecifier(i,"ImportDefaultSpecifier")),!0}else if(or(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(v.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let i=this.startNode(),s=this.match(134),n=this.isContextual(130);i.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(i,s,t.importKind==="type"||t.importKind==="typeof",n,void 0);t.specifiers.push(a)}}parseImportSpecifier(t,r,i,s,n){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:a}=t;if(r)throw this.raise(v.ImportBindingIsString,t,{importName:a.value});this.checkReservedWord(a.name,t.loc.start,!0,!0),t.local||(t.local=this.cloneIdentifier(a))}return this.finishImportSpecifier(t,"ImportSpecifier",n)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},va=class extends Jc{constructor(t,r,i){let s=nU(t);super(s,r),this.options=s,this.initializeScopes(),this.plugins=i,this.filename=s.sourceFilename,this.startIndex=s.startIndex;let n=0;s.allowAwaitOutsideFunction&&(n|=1),s.allowReturnOutsideFunction&&(n|=2),s.allowImportExportEverywhere&&(n|=8),s.allowSuperOutsideMethod&&(n|=16),s.allowUndeclaredExports&&(n|=64),s.allowNewTargetOutsideFunction&&(n|=4),s.allowYieldOutsideFunction&&(n|=32),s.ranges&&(n|=128),s.tokens&&(n|=256),s.createImportExpressions&&(n|=512),s.createParenthesizedExpressions&&(n|=1024),s.errorRecovery&&(n|=2048),s.attachComment&&(n|=4096),s.annexB&&(n|=8192),this.optionFlags=n}getScopeHandler(){return js}parse(){this.enterInitialScopes();let t=this.startNode(),r=this.startNode();this.nextToken(),t.errors=null;let i=this.parseTopLevel(t,r);return i.errors=this.state.errors,i.comments.length=this.state.commentsLen,i}};function lK(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let i=Fs(t,e),s=i.parse();if(i.sawUnambiguousESM)return s;if(i.ambiguousScriptDifferentAst)try{return t.sourceType="script",Fs(t,e).parse()}catch{}else s.program.sourceType="script";return s}catch(i){try{return t.sourceType="script",Fs(t,e).parse()}catch{}throw i}}else return Fs(t,e).parse()}function uK(e,t){let r=Fs(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function cK(e){let t={};for(let r of Object.keys(e))t[r]=_r(e[r]);return t}var pK=cK(uU);function Fs(e,t){let r=va,i=new Map;if(e!=null&&e.plugins){for(let s of e.plugins){let n,a;typeof s=="string"?n=s:[n,a]=s,i.has(n)||i.set(n,a||{})}iK(i),r=fK(i)}return new r(e,t,i)}var aT=new Map;function fK(e){let t=[];for(let s of sK)e.has(s)&&t.push(s);let r=t.join("|"),i=aT.get(r);if(!i){i=va;for(let s of t)i=xT[s](i);aT.set(r,i)}return i}Us.parse=lK;Us.parseExpression=uK;Us.tokTypes=pK});var pc=N(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr._replaceWith=wT;Qr.replaceExpressionWithStatements=qK;Qr.replaceInline=UK;Qr.replaceWith=jK;Qr.replaceWithMultiple=BK;Qr.replaceWithSourceString=RK;var dK=uc(),rp=mr(),hK=Or(),vT=fi(),ip=ha(),mK=Ca(),yK=ye(),Gi=Yt(),{FUNCTION_TYPES:bT,arrowFunctionExpression:TK,assignmentExpression:CT,awaitExpression:SK,blockStatement:gK,buildUndefinedNode:tp,callExpression:xK,cloneNode:sp,conditionalExpression:bK,expressionStatement:EK,getBindingIdentifiers:PK,identifier:AK,inheritLeadingComments:vK,inheritTrailingComments:CK,inheritsComments:IK,isBlockStatement:wK,isEmptyStatement:ET,isExpression:IT,isExpressionStatement:NK,isIfStatement:OK,isProgram:_K,isStatement:kK,isVariableDeclaration:DK,removeComments:LK,returnStatement:PT,sequenceExpression:MK,validate:AT,yieldExpression:FK}=yK;function BK(e){var t;Gi.resync.call(this);let r=ip._verifyNodeList.call(this,e);vK(r[0],this.node),CK(r[r.length-1],this.node),(t=(0,vT.getCachedPaths)(this))==null||t.delete(this.node),this.node=this.container[this.key]=null;let i=this.insertAfter(e);return this.node?this.requeue():this.remove(),i}function RK(e){Gi.resync.call(this);let t;try{e=`(${e})`,t=(0,mK.parse)(e)}catch(i){let s=i.loc;throw s&&(i.message+=` - make sure this is an expression.
32
- `+(0,dK.codeFrameColumns)(e,{start:{line:s.line,column:s.column+1}}),i.code="BABEL_REPLACE_SOURCE_ERROR"),i}let r=t.program.body[0].expression;return rp.default.removeProperties(r),this.replaceWith(r)}function jK(e){if(Gi.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let t=e instanceof hK.default?e.node:e;if(!t)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return[this];if(this.isProgram()&&!_K(t))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof t=="string")throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let r="";if(this.isNodeType("Statement")&&IT(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration()&&(t=EK(t),r="expression"),this.isNodeType("Expression")&&kK(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);let i=this.node;return i&&(IK(t,i),LK(i)),wT.call(this,t),this.type=t.type,Gi.setScope.call(this),this.requeue(),[r?this.get(r):this]}function wT(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?AT(this.parent,this.key,[e]):AT(this.parent,this.key,e),this.debug(`Replace with ${e?.type}`),(t=(0,vT.getCachedPaths)(this))==null||t.set(e,this).delete(this.node),this.node=e,this.container[this.key]=e}function qK(e){Gi.resync.call(this);let t=[],r=Ia(e,t);if(r){for(let g of t)this.scope.push({id:g});return this.replaceWith(r)[0].get("expressions")}let i=this.getFunctionParent(),s=i?.node.async,n=i?.node.generator,a=TK([],gK(e));this.replaceWith(xK(a,[]));let o=this.get("callee");o.get("body").scope.hoistVariables(g=>this.scope.push({id:g}));let l=o.getCompletionRecords();for(let g of l){if(!g.isExpressionStatement())continue;let b=g.findParent(E=>E.isLoop());if(b){let E=b.getData("expressionReplacementReturnUid");E?E=AK(E.name):(E=o.scope.generateDeclaredUidIdentifier("ret"),o.get("body").pushContainer("body",PT(sp(E))),b.setData("expressionReplacementReturnUid",E)),g.get("expression").replaceWith(CT("=",sp(E),g.node.expression))}else g.replaceWith(PT(g.node.expression))}o.arrowFunctionToExpression();let u=o,f=s&&rp.default.hasType(u.node.body,"AwaitExpression",bT),h=n&&rp.default.hasType(u.node.body,"YieldExpression",bT);return f&&(u.set("async",!0),h||this.replaceWith(SK(this.node))),h&&(u.set("generator",!0),this.replaceWith(FK(this.node,!0))),u.get("body.body")}function Ia(e,t){let r=[],i=!0;for(let s of e)if(ET(s)||(i=!1),IT(s))r.push(s);else if(NK(s))r.push(s.expression);else if(DK(s)){if(s.kind!=="var")return;for(let n of s.declarations){let a=PK(n);for(let o of Object.keys(a))t.push(sp(a[o]));n.init&&r.push(CT("=",n.id,n.init))}i=!0}else if(OK(s)){let n=s.consequent?Ia([s.consequent],t):tp(),a=s.alternate?Ia([s.alternate],t):tp();if(!n||!a)return;r.push(bK(s.test,n,a))}else if(wK(s)){let n=Ia(s.body,t);if(!n)return;r.push(n)}else if(ET(s))e.indexOf(s)===0&&(i=!0);else return;return i&&r.push(tp()),r.length===1?r[0]:MK(r)}function UK(e){if(Gi.resync.call(this),Array.isArray(e))if(Array.isArray(this.container)){e=ip._verifyNodeList.call(this,e);let t=ip._containerInsertAfter.call(this,e);return this.remove(),t}else return this.replaceWithMultiple(e);else return this.replaceWith(e)}});var kT=N(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.evaluate=HK;wa.evaluateTruthy=YK;var KK=["Number","String","Math"],VK=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],$K=["random"];function NT(e){return KK.includes(e)}function JK(e){return VK.includes(e)}function XK(e){return $K.includes(e)}function YK(){let e=this.evaluate();if(e.confident)return!!e.value}function Qt(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}var OT=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function Dt(e,t){let{node:r}=e,{seen:i}=t;if(i.has(r)){let s=i.get(r);if(s.resolved)return s.value;Qt(e,t);return}else{let s={resolved:!1};i.set(r,s);let n=WK(e,t);return t.confident&&(s.resolved=!0,s.value=n),n}}function WK(e,t){if(t.confident){if(e.isSequenceExpression()){let i=e.get("expressions");return Dt(i[i.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return _T(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){let i=e.get("tag.object"),{node:{name:s}}=i,n=e.get("tag.property");if(i.isIdentifier()&&s==="String"&&!e.scope.getBinding(s)&&n.isIdentifier()&&n.node.name==="raw")return _T(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){let i=Dt(e.get("test"),t);return t.confident?Dt(i?e.get("consequent"):e.get("alternate"),t):void 0}if(e.isExpressionWrapper())return Dt(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){let i=e.get("property"),s=e.get("object");if(s.isLiteral()){let n=s.node.value,a=typeof n,o=null;if(e.node.computed){if(o=Dt(i,t),!t.confident)return}else i.isIdentifier()&&(o=i.node.name);if((a==="number"||a==="string")&&o!=null&&(typeof o=="number"||typeof o=="string"))return n[o]}}if(e.isReferencedIdentifier()){let i=e.scope.getBinding(e.node.name);if(i){if(i.constantViolations.length>0||e.node.start<i.path.node.end){Qt(i.path,t);return}let l=i.path.scope;if(i.kind==="var"&&l!==i.scope){let u=!l.path.parentPath.isBlockStatement();for(let f=l.parent;f;f=f.parent){var r;if(f===e.scope){if(u){Qt(i.path,t);return}break}(r=f.path.parentPath)!=null&&r.isBlockStatement()&&(u=!0)}}if(i.hasValue)return i.value}let s=e.node.name;if(OT.has(s)){if(!i)return OT.get(s);Qt(i.path,t);return}if(!i){Qt(e,t);return}let n=i.path;if(!n.isVariableDeclarator()){Qt(n,t);return}let a=n.get("init"),o=Dt(a,t);if(typeof o=="object"&&o!==null&&i.references>1){Qt(a,t);return}return o}if(e.isUnaryExpression({prefix:!0})){if(e.node.operator==="void")return;let i=e.get("argument");if(e.node.operator==="typeof"&&(i.isFunction()||i.isClass()))return"function";let s=Dt(i,t);if(!t.confident)return;switch(e.node.operator){case"!":return!s;case"+":return+s;case"-":return-s;case"~":return~s;case"typeof":return typeof s}}if(e.isArrayExpression()){let i=[],s=e.get("elements");for(let n of s){let a=n.evaluate();if(a.confident)i.push(a.value);else{Qt(a.deopt,t);return}}return i}if(e.isObjectExpression()){let i={},s=e.get("properties");for(let n of s){if(n.isObjectMethod()||n.isSpreadElement()){Qt(n,t);return}let a=n.get("key"),o;if(n.node.computed){if(o=a.evaluate(),!o.confident){Qt(o.deopt,t);return}o=o.value}else a.isIdentifier()?o=a.node.name:o=a.node.value;let u=n.get("value").evaluate();if(!u.confident){Qt(u.deopt,t);return}u=u.value,i[o]=u}return i}if(e.isLogicalExpression()){let i=t.confident,s=Dt(e.get("left"),t),n=t.confident;t.confident=i;let a=Dt(e.get("right"),t),o=t.confident;switch(e.node.operator){case"||":return t.confident=n&&(!!s||o),t.confident?s||a:void 0;case"&&":return t.confident=n&&(!s||o),t.confident?s&&a:void 0;case"??":return t.confident=n&&(s!=null||o),t.confident?s??a:void 0}}if(e.isBinaryExpression()){let i=Dt(e.get("left"),t);if(!t.confident)return;let s=Dt(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return i-s;case"+":return i+s;case"/":return i/s;case"*":return i*s;case"%":return i%s;case"**":return Math.pow(i,s);case"<":return i<s;case">":return i>s;case"<=":return i<=s;case">=":return i>=s;case"==":return i==s;case"!=":return i!=s;case"===":return i===s;case"!==":return i!==s;case"|":return i|s;case"&":return i&s;case"^":return i^s;case"<<":return i<<s;case">>":return i>>s;case">>>":return i>>>s}}if(e.isCallExpression()){let i=e.get("callee"),s,n;if(i.isIdentifier()&&!e.scope.getBinding(i.node.name)&&(NT(i.node.name)||JK(i.node.name))&&(n=global[i.node.name]),i.isMemberExpression()){let a=i.get("object"),o=i.get("property");if(a.isIdentifier()&&o.isIdentifier()&&NT(a.node.name)&&!XK(o.node.name)){s=global[a.node.name];let l=o.node.name;hasOwnProperty.call(s,l)&&(n=s[l])}if(a.isLiteral()&&o.isIdentifier()){let l=typeof a.node.value;(l==="string"||l==="number")&&(s=a.node.value,n=s[o.node.name])}}if(n){let a=e.get("arguments").map(o=>Dt(o,t));return t.confident?n.apply(s,a):void 0}}Qt(e,t)}}function _T(e,t,r,i=!1){let s="",n=0,a=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(let o of t){if(!r.confident)break;s+=i?o.value.raw:o.value.cooked;let l=a[n++];l&&(s+=String(Dt(l,r)))}if(r.confident)return s}function HK(){let e={confident:!0,deoptPath:null,seen:new Map},t=Dt(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}}});var DT=N(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.statements=Zt.statement=Zt.smart=Zt.program=Zt.expression=void 0;var zK=ye(),{assertExpressionStatement:GK}=zK;function np(e){return{code:t=>`/* @babel/template */;
33
- ${t}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}var Fre=Zt.smart=np(e=>e.length>1?e:e[0]),Bre=Zt.statements=np(e=>e),Rre=Zt.statement=np(e=>{if(e.length===0)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]}),QK=Zt.expression={code:e=>`(
28
+ `):s=String.fromCharCode(i),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(r){let i="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(v.UnterminatedString,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);if(n===r)break;n===38?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadEntity(),s=this.state.pos):Yi(n)?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}i+=this.input.slice(s,this.state.pos++),this.finishToken(134,i)}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let i=10;this.codePointAtPos(this.state.pos)===120&&(i=16,++this.state.pos);let s=this.readInt(i,void 0,!1,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(s)}else{let i=0,s=!1;for(;i++<10&&this.state.pos<this.length&&!(s=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(s){let n=this.input.slice(r,this.state.pos),a=KU[n];if(++this.state.pos,a)return a}}return this.state.pos=r,"&"}jsxReadWord(){let r,i=this.state.pos;do r=this.input.charCodeAt(++this.state.pos);while(Ei(r)||r===45);this.finishToken(141,this.input.slice(i,this.state.pos))}jsxParseIdentifier(){let r=this.startNode();return this.match(141)?r.name=this.state.value:ep(this.state.type)?r.name=Gr(this.state.type):this.unexpected(),this.next(),this.finishNode(r,"JSXIdentifier")}jsxParseNamespacedName(){let r=this.state.startLoc,i=this.jsxParseIdentifier();if(!this.eat(14))return i;let s=this.startNodeAt(r);return s.namespace=i,s.name=this.jsxParseIdentifier(),this.finishNode(s,"JSXNamespacedName")}jsxParseElementName(){let r=this.state.startLoc,i=this.jsxParseNamespacedName();if(i.type==="JSXNamespacedName")return i;for(;this.eat(16);){let s=this.startNodeAt(r);s.object=i,s.property=this.jsxParseIdentifier(),i=this.finishNode(s,"JSXMemberExpression")}return i}jsxParseAttributeValue(){let r;switch(this.state.type){case 5:return r=this.startNode(),this.setContext(Re.brace),this.next(),r=this.jsxParseExpressionContainer(r,Re.j_oTag),r.expression.type==="JSXEmptyExpression"&&this.raise(xi.AttributeIsEmpty,r),r;case 143:case 134:return this.parseExprAtom();default:throw this.raise(xi.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let r=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(r,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(r){return this.next(),r.expression=this.parseExpression(),this.setContext(Re.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadChild")}jsxParseExpressionContainer(r,i){if(this.match(8))r.expression=this.jsxParseEmptyExpression();else{let s=this.parseExpression();r.expression=s}return this.setContext(i),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){let r=this.startNode();return this.match(5)?(this.setContext(Re.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(Re.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadAttribute")):(r.name=this.jsxParseNamespacedName(),r.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(r,"JSXAttribute"))}jsxParseOpeningElementAt(r){let i=this.startNodeAt(r);return this.eat(144)?this.finishNode(i,"JSXOpeningFragment"):(i.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(i))}jsxParseOpeningElementAfterName(r){let i=[];for(;!this.match(56)&&!this.match(144);)i.push(this.jsxParseAttribute());return r.attributes=i,r.selfClosing=this.eat(56),this.expect(144),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){let i=this.startNodeAt(r);return this.eat(144)?this.finishNode(i,"JSXClosingFragment"):(i.name=this.jsxParseElementName(),this.expect(144),this.finishNode(i,"JSXClosingElement"))}jsxParseElementAt(r){let i=this.startNodeAt(r),s=[],n=this.jsxParseOpeningElementAt(r),a=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 143:if(r=this.state.startLoc,this.next(),this.eat(56)){a=this.jsxParseClosingElementAt(r);break e}s.push(this.jsxParseElementAt(r));break;case 142:s.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let o=this.startNode();this.setContext(Re.brace),this.next(),this.match(21)?s.push(this.jsxParseSpreadChild(o)):s.push(this.jsxParseExpressionContainer(o,Re.j_expr));break}default:this.unexpected()}zr(n)&&!zr(a)&&a!==null?this.raise(xi.MissingClosingTagFragment,a):!zr(n)&&zr(a)?this.raise(xi.MissingClosingTagElement,a,{openingTagName:Xi(n.name)}):!zr(n)&&!zr(a)&&Xi(a.name)!==Xi(n.name)&&this.raise(xi.MissingClosingTagElement,a,{openingTagName:Xi(n.name)})}if(zr(n)?(i.openingFragment=n,i.closingFragment=a):(i.openingElement=n,i.closingElement=a),i.children=s,this.match(47))throw this.raise(xi.UnwrappedAdjacentJSXElements,this.state.startLoc);return zr(n)?this.finishNode(i,"JSXFragment"):this.finishNode(i,"JSXElement")}jsxParseElement(){let r=this.state.startLoc;return this.next(),this.jsxParseElementAt(r)}setContext(r){let{context:i}=this.state;i[i.length-1]=r}parseExprAtom(r){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(r)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(r){let i=this.curContext();if(i===Re.j_expr){this.jsxReadToken();return}if(i===Re.j_oTag||i===Re.j_cTag){if(Tr(r)){this.jsxReadWord();return}if(r===62){++this.state.pos,this.finishToken(144);return}if((r===34||r===39)&&i===Re.j_oTag){this.jsxReadString(r);return}}if(r===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(r)}updateContext(r){let{context:i,type:s}=this.state;if(s===56&&r===143)i.splice(-2,2,Re.j_cTag),this.state.canStartJSXElement=!1;else if(s===143)i.push(Re.j_oTag);else if(s===144){let n=i[i.length-1];n===Re.j_oTag&&r===56||n===Re.j_cTag?(i.pop(),this.state.canStartJSXElement=i[i.length-1]===Re.j_expr):(this.setContext(Re.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=TU(s)}},Oc=class extends js{constructor(...t){super(...t),this.tsNames=new Map}},_c=class extends qs{constructor(...t){super(...t),this.importsStack=[]}createScope(t){return this.importsStack.push(new Set),new Oc(t)}enter(t){t===1024&&this.importsStack.push(new Set),super.enter(t)}exit(){let t=super.exit();return t===1024&&this.importsStack.pop(),t}hasImport(t,r){let i=this.importsStack.length;if(this.importsStack[i-1].has(t))return!0;if(!r&&i>1){for(let s=0;s<i-1;s++)if(this.importsStack[s].has(t))return!0}return!1}declareName(t,r,i){if(r&4096){this.hasImport(t,!0)&&this.parser.raise(v.VarRedeclaration,i,{identifierName:t}),this.importsStack[this.importsStack.length-1].add(t);return}let s=this.currentScope(),n=s.tsNames.get(t)||0;if(r&1024){this.maybeExportDefined(s,t),s.tsNames.set(t,n|16);return}super.declareName(t,r,i),r&2&&(r&1||(this.checkRedeclarationInScope(s,t,r,i),this.maybeExportDefined(s,t)),n=n|1),r&256&&(n=n|2),r&512&&(n=n|4),r&128&&(n=n|8),n&&s.tsNames.set(t,n)}isRedeclaredInScope(t,r,i){let s=t.tsNames.get(r);if((s&2)>0){if(i&256){let n=!!(i&512),a=(s&4)>0;return n!==a}return!0}return i&128&&(s&8)>0?t.names.get(r)&2?!!(i&1):!1:i&2&&(s&1)>0?!0:super.isRedeclaredInScope(t,r,i)}checkLocalExport(t){let{name:r}=t;if(this.hasImport(r))return;let i=this.scopeStack.length;for(let s=i-1;s>=0;s--){let a=this.scopeStack[s].tsNames.get(r);if((a&1)>0||(a&16)>0)return}super.checkLocalExport(t)}},kc=class{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function ba(e,t){return(e?2:0)|(t?1:0)}var Dc=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(t){return t+this.startIndex}offsetToSourcePos(t){return t-this.startIndex}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[r,i]=t;if(!this.hasPlugin(r))return!1;let s=this.plugins.get(r);for(let n of Object.keys(i))if(s?.[n]!==i[n])return!1;return!0}}getPluginOption(t,r){var i;return(i=this.plugins.get(t))==null?void 0:i[r]}};function TT(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function XU(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function Us(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function nr(e,t,r){let i=null,s=t.length;for(;i===null&&s>0;)i=t[--s];i===null||i.start>r.start?Us(e,r.comments):TT(i,r.comments)}var Lc=class extends Dc{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(t),this.state.commentsLen++}processComment(t){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let s=i-1,n=r[s];n.start===t.end&&(n.leadingNode=t,s--);let{start:a}=t;for(;s>=0;s--){let o=r[s],l=o.end;if(l>a)o.containingNode=t,this.finalizeComment(o),r.splice(s,1);else{l===a&&(o.trailingNode=t);break}}}finalizeComment(t){var r;let{comments:i}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&TT(t.leadingNode,i),t.trailingNode!==null&&XU(t.trailingNode,i);else{let s=t.containingNode,n=t.start;if(this.input.charCodeAt(this.offsetToSourcePos(n)-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":nr(s,s.properties,t);break;case"CallExpression":case"NewExpression":case"OptionalCallExpression":nr(s,s.arguments,t);break;case"ImportExpression":nr(s,[s.source,(r=s.options)!=null?r:null],t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":case"TSTypeParameterDeclaration":nr(s,s.params,t);break;case"ArrayExpression":case"ArrayPattern":nr(s,s.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":nr(s,s.specifiers,t);break;case"TSEnumDeclaration":nr(s,s.members,t);break;case"TSEnumBody":nr(s,s.members,t);break;case"TSInterfaceBody":nr(s,s.body,t);break;default:{if(s.type==="RecordExpression"){nr(s,s.properties,t);break}if(s.type==="TupleExpression"){nr(s,s.elements,t);break}Us(s,i)}}else Us(s,i)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let r=t.length-1;r>=0;r--)this.finalizeComment(t[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:r}=this.state,{length:i}=r;if(i===0)return;let s=r[i-1];s.leadingNode===t&&(s.leadingNode=null)}takeSurroundingComments(t,r,i){let{commentStack:s}=this.state,n=s.length;if(n===0)return;let a=n-1;for(;a>=0;a--){let o=s[a],l=o.end;if(o.start===i)o.leadingNode=t;else if(l===r)o.trailingNode=t;else if(l<r)break}}},Mc=class e{constructor(){this.flags=1024,this.startIndex=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.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[Re.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:r,startIndex:i,startLine:s,startColumn:n}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.startIndex=i,this.curLine=s,this.lineStart=-n,this.startLoc=this.endLoc=new gr(s,n,i)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new gr(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new e;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},YU=function(t){return t>=48&&t<=57},rT={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},ga={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function iT(e,t,r,i,s,n){let a=r,o=i,l=s,u="",f=null,h=r,{length:x}=t;for(;;){if(r>=x){n.unterminated(a,o,l),u+=t.slice(h,r);break}let A=t.charCodeAt(r);if(WU(e,A,t,r)){u+=t.slice(h,r);break}if(A===92){u+=t.slice(h,r);let P=HU(t,r,i,s,e==="template",n);P.ch===null&&!f?f={pos:r,lineStart:i,curLine:s}:u+=P.ch,{pos:r,lineStart:i,curLine:s}=P,h=r}else A===8232||A===8233?(++r,++s,i=r):A===10||A===13?e==="template"?(u+=t.slice(h,r)+`
29
+ `,++r,A===13&&t.charCodeAt(r)===10&&++r,++s,h=i=r):n.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:f,lineStart:i,curLine:s,containsInvalid:!!f}}function WU(e,t,r,i){return e==="template"?t===96||t===36&&r.charCodeAt(i+1)===123:t===(e==="double"?34:39)}function HU(e,t,r,i,s,n){let a=!s;t++;let o=u=>({pos:t,ch:u,lineStart:r,curLine:i}),l=e.charCodeAt(t++);switch(l){case 110:return o(`
30
+ `);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=Bc(e,t,r,i,2,!1,a,n),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=ST(e,t,r,i,a,n),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++i;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);n.strictNumericEscape(t-1,r,i);default:if(l>=48&&l<=55){let u=t-1,h=/^[0-7]+/.exec(e.slice(u,t+2))[0],x=parseInt(h,8);x>255&&(h=h.slice(0,-1),x=parseInt(h,8)),t+=h.length-1;let A=e.charCodeAt(t);if(h!=="0"||A===56||A===57){if(s)return o(null);n.strictNumericEscape(u,r,i)}return o(String.fromCharCode(x))}return o(String.fromCharCode(l))}}function Bc(e,t,r,i,s,n,a,o){let l=t,u;return{n:u,pos:t}=gT(e,t,r,i,16,s,n,!1,o,!a),u===null&&(a?o.invalidEscapeSequence(l,r,i):t=l-1),{code:u,pos:t}}function gT(e,t,r,i,s,n,a,o,l,u){let f=t,h=s===16?rT.hex:rT.decBinOct,x=s===16?ga.hex:s===10?ga.dec:s===8?ga.oct:ga.bin,A=!1,P=0;for(let w=0,b=n??1/0;w<b;++w){let C=e.charCodeAt(t),D;if(C===95&&o!=="bail"){let U=e.charCodeAt(t-1),k=e.charCodeAt(t+1);if(o){if(Number.isNaN(k)||!x(k)||h.has(U)||h.has(k)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,i)}}else{if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,i)}++t;continue}if(C>=97?D=C-97+10:C>=65?D=C-65+10:YU(C)?D=C-48:D=1/0,D>=s){if(D<=9&&u)return{n:null,pos:t};if(D<=9&&l.invalidDigit(t,r,i,s))D=0;else if(a)D=0,A=!0;else break}++t,P=P*s+D}return t===f||n!=null&&t-f!==n||A?{n:null,pos:t}:{n:P,pos:t}}function ST(e,t,r,i,s,n){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=Bc(e,t,r,i,e.indexOf("}",t)-t,!0,s,n),++t,o!==null&&o>1114111)if(s)n.invalidCodePoint(t,r,i);else return{code:null,pos:t}}else({code:o,pos:t}=Bc(e,t,r,i,4,!1,s,n));return{code:o,pos:t}}function Ms(e,t,r){return new gr(r,e-t,e)}var zU=new Set([103,109,115,105,121,117,100,118]),yr=class{constructor(t){let r=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=r+t.start,this.end=r+t.end,this.loc=new Hi(t.startLoc,t.endLoc)}},Fc=class extends Lc{constructor(t,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(i,s,n,a)=>this.optionFlags&2048?(this.raise(v.InvalidDigit,Ms(i,s,n),{radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(v.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(v.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(v.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(v.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(i,s,n)=>{this.recordStrictModeErrors(v.StrictNumericEscape,Ms(i,s,n))},unterminated:(i,s,n)=>{throw this.raise(v.UnterminatedString,Ms(i-1,s,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(v.StrictNumericEscape),unterminated:(i,s,n)=>{throw this.raise(v.UnterminatedTemplate,Ms(i,s,n))}}),this.state=new Mc,this.state.init(t),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new yr(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=t,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return Ec.lastIndex=t,Ec.test(this.input)?Ec.lastIndex:t}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(t){return this.input.charCodeAt(this.nextTokenStartSince(t))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return Pc.lastIndex=t,Pc.test(this.input)?Pc.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let r=this.input.charCodeAt(t);if((r&64512)===55296&&++t<this.input.length){let i=this.input.charCodeAt(t);(i&64512)===56320&&(r=65536+((r&1023)<<10)+(i&1023))}return r}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach(([r,i])=>this.raise(r,i)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let r;this.isLookahead||(r=this.state.curPosition());let i=this.state.pos,s=this.input.indexOf(t,i+2);if(s===-1)throw this.raise(v.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+t.length,Ta.lastIndex=i+2;Ta.test(this.input)&&Ta.lastIndex<=s;)++this.state.curLine,this.state.lineStart=Ta.lastIndex;if(this.isLookahead)return;let n={type:"CommentBlock",value:this.input.slice(i+2,s),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(s+t.length),loc:new Hi(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(n),n}skipLineComment(t){let r=this.state.pos,i;this.isLookahead||(i=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!Yi(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let n=this.state.pos,o={type:"CommentLine",value:this.input.slice(r+t,n),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(n),loc:new Hi(i,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(o),o}skipSpace(){let t=this.state.pos,r=this.optionFlags&4096?[]:null;e:for(;this.state.pos<this.length;){let i=this.input.charCodeAt(this.state.pos);switch(i){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 s=this.skipBlockComment("*/");s!==void 0&&(this.addComment(s),r?.push(s));break}case 47:{let s=this.skipLineComment(2);s!==void 0&&(this.addComment(s),r?.push(s));break}default:break e}break;default:if($U(i))++this.state.pos;else if(i===45&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===45&&this.input.charCodeAt(s+2)===62&&(t===0||this.state.lineStart>t)){let n=this.skipLineComment(3);n!==void 0&&(this.addComment(n),r?.push(n))}else break e}else if(i===60&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===33&&this.input.charCodeAt(s+2)===45&&this.input.charCodeAt(s+3)===45){let n=this.skipLineComment(4);n!==void 0&&(this.addComment(n),r?.push(n))}else break e}else break e}}if(r?.length>0){let i=this.state.pos,s={start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(i),comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(t,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let i=this.state.type;this.state.type=t,this.state.value=r,this.isLookahead||this.updateContext(i)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,r=this.codePointAtPos(t);if(r>=48&&r<=57)throw this.raise(v.UnexpectedDigitAfterHash,this.state.curPosition());if(r===123||r===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(r===123?v.RecordExpressionHashIncorrectStartSyntaxType:v.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,r===123?this.finishToken(7):this.finishToken(1)}else Tr(r)?(++this.state.pos,this.finishToken(139,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===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 t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;let r=this.state.pos;for(this.state.pos+=1;!Yi(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);let i=this.input.slice(r+2,this.state.pos);return this.finishToken(28,i),!0}readToken_mult_modulo(t){let r=t===42?55:54,i=1,s=this.input.charCodeAt(this.state.pos+1);t===42&&s===42&&(i++,s=this.input.charCodeAt(this.state.pos+2),r=57),s===61&&!this.state.inType&&(i++,r=t===37?33:30),this.finishOp(r,i)}readToken_pipe_amp(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(t===124?41:42,2);return}if(t===124){if(r===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&r===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(v.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&r===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(v.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(r===61){this.finishOp(30,2);return}this.finishOp(t===124?43:45,1)}readToken_caret(){let t=this.input.charCodeAt(this.state.pos+1);t===61&&!this.state.inType?this.finishOp(32,2):t===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}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(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.finishOp(34,2);return}r===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===60){if(this.input.charCodeAt(t+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(r===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===62){let i=this.input.charCodeAt(t+2)===62?3:2;if(this.input.charCodeAt(t+i)===61){this.finishOp(30,i+1);return}this.finishOp(52,i);return}if(r===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(t===61&&r===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(t===61?29:35,1)}readToken_question(){let t=this.input.charCodeAt(this.state.pos+1),r=this.input.charCodeAt(this.state.pos+2);t===63?r===61?this.finishOp(30,3):this.finishOp(40,2):t===46&&!(r>=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(v.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(v.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Tr(t)){this.readWord(t);return}}throw this.raise(v.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,r){let i=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(t,i)}readRegexp(){let t=this.state.startLoc,r=this.state.start+1,i,s,{pos:n}=this.state;for(;;++n){if(n>=this.length)throw this.raise(v.UnterminatedRegExp,kt(t,1));let u=this.input.charCodeAt(n);if(Yi(u))throw this.raise(v.UnterminatedRegExp,kt(t,1));if(i)i=!1;else{if(u===91)s=!0;else if(u===93&&s)s=!1;else if(u===47&&!s)break;i=u===92}}let a=this.input.slice(r,n);++n;let o="",l=()=>kt(t,n+2-r);for(;n<this.length;){let u=this.codePointAtPos(n),f=String.fromCharCode(u);if(zU.has(u))u===118?o.includes("u")&&this.raise(v.IncompatibleRegExpUVFlags,l()):u===117&&o.includes("v")&&this.raise(v.IncompatibleRegExpUVFlags,l()),o.includes(f)&&this.raise(v.DuplicateRegExpFlags,l());else if(Ei(u)||u===92)this.raise(v.MalformedRegExpFlags,l());else break;++n,o+=f}this.state.pos=n,this.finishToken(138,{pattern:a,flags:o})}readInt(t,r,i=!1,s=!0){let{n,pos:a}=gT(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,r,i,s,this.errorHandlers_readInt,!1);return this.state.pos=a,n}readRadixNumber(t){let r=this.state.pos,i=this.state.curPosition(),s=!1;this.state.pos+=2;let n=this.readInt(t);n==null&&this.raise(v.InvalidDigit,kt(i,2),{radix:t});let a=this.input.charCodeAt(this.state.pos);if(a===110)++this.state.pos,s=!0;else if(a===109)throw this.raise(v.InvalidDecimal,i);if(Tr(this.codePointAtPos(this.state.pos)))throw this.raise(v.NumberIdentifier,this.state.curPosition());if(s){let o=this.input.slice(r,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,o);return}this.finishToken(135,n)}readNumber(t){let r=this.state.pos,i=this.state.curPosition(),s=!1,n=!1,a=!1,o=!1;!t&&this.readInt(10)===null&&this.raise(v.InvalidNumber,this.state.curPosition());let l=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(l){let A=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(v.StrictOctalLiteral,i),!this.state.strict){let P=A.indexOf("_");P>0&&this.raise(v.ZeroDigitNumericSeparator,kt(i,P))}o=l&&!/[89]/.test(A)}let u=this.input.charCodeAt(this.state.pos);if(u===46&&!o&&(++this.state.pos,this.readInt(10),s=!0,u=this.input.charCodeAt(this.state.pos)),(u===69||u===101)&&!o&&(u=this.input.charCodeAt(++this.state.pos),(u===43||u===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(v.InvalidOrMissingExponent,i),s=!0,a=!0,u=this.input.charCodeAt(this.state.pos)),u===110&&((s||l)&&this.raise(v.InvalidBigIntLiteral,i),++this.state.pos,n=!0),u===109){this.expectPlugin("decimal",this.state.curPosition()),(a||l)&&this.raise(v.InvalidDecimal,i),++this.state.pos;var f=!0}if(Tr(this.codePointAtPos(this.state.pos)))throw this.raise(v.NumberIdentifier,this.state.curPosition());let h=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(n){this.finishToken(136,h);return}if(f){this.finishToken(137,h);return}let x=o?parseInt(h,8):parseFloat(h);this.finishToken(135,x)}readCodePoint(t){let{code:r,pos:i}=ST(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=i,r}readString(t){let{str:r,pos:i,curLine:s,lineStart:n}=iT(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=i+1,this.state.lineStart=n,this.state.curLine=s,this.finishToken(134,r)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:r,firstInvalidLoc:i,pos:s,curLine:n,lineStart:a}=iT("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=s+1,this.state.lineStart=a,this.state.curLine=n,i&&(this.state.firstInvalidTemplateEscapePos=new gr(i.curLine,i.pos-i.lineStart,this.sourceToOffsetPos(i.pos))),this.input.codePointAt(s)===96?this.finishToken(24,i?null:t+r+"`"):(this.state.pos++,this.finishToken(25,i?null:t+r+"${"))}recordStrictModeErrors(t,r){let i=r.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(t,r):this.state.strictErrors.set(i,[t,r])}readWord1(t){this.state.containsEsc=!1;let r="",i=this.state.pos,s=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){let n=this.codePointAtPos(this.state.pos);if(Ei(n))this.state.pos+=n<=65535?1:2;else if(n===92){this.state.containsEsc=!0,r+=this.input.slice(s,this.state.pos);let a=this.state.curPosition(),o=this.state.pos===i?Tr:Ei;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(v.MissingUnicodeEscape,this.state.curPosition()),s=this.state.pos-1;continue}++this.state.pos;let l=this.readCodePoint(!0);l!==null&&(o(l)||this.raise(v.EscapedCharNotAnIdentifier,a),r+=String.fromCodePoint(l)),s=this.state.pos}else break}return r+this.input.slice(s,this.state.pos)}readWord(t){let r=this.readWord1(t),i=Wc.get(r);i!==void 0?this.finishToken(i,Gr(i)):this.finishToken(132,r)}checkKeywordEscapes(){let{type:t}=this.state;ep(t)&&this.state.containsEsc&&this.raise(v.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Gr(t)})}raise(t,r,i={}){let s=r instanceof gr?r:r.loc.start,n=t(s,i);if(!(this.optionFlags&2048))throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(t,r,i={}){let s=r instanceof gr?r:r.loc.start,n=s.index,a=this.state.errors;for(let o=a.length-1;o>=0;o--){let l=a[o];if(l.loc.index===n)return a[o]=t(s,i);if(l.loc.index<n)break}return this.raise(t,r,i)}updateContext(t){}unexpected(t,r){throw this.raise(v.UnexpectedToken,t??this.state.startLoc,{expected:r?Gr(r):null})}expectPlugin(t,r){if(this.hasPlugin(t))return!0;throw this.raise(v.MissingPlugin,r??this.state.startLoc,{missingPlugin:[t]})}expectOnePlugin(t){if(!t.some(r=>this.hasPlugin(r)))throw this.raise(v.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(r,i,s)=>{this.raise(t,Ms(r,i,s))}}},Rc=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},jc=class{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Rc)}exit(){let t=this.stack.pop(),r=this.current();for(let[i,s]of Array.from(t.undefinedPrivateNames))r?r.undefinedPrivateNames.has(i)||r.undefinedPrivateNames.set(i,s):this.parser.raise(v.InvalidPrivateFieldResolution,s,{identifierName:i})}declarePrivateName(t,r,i){let{privateNames:s,loneAccessors:n,undefinedPrivateNames:a}=this.current(),o=s.has(t);if(r&3){let l=o&&n.get(t);if(l){let u=l&4,f=r&4,h=l&3,x=r&3;o=h===x||u!==f,o||n.delete(t)}else o||n.set(t,r)}o&&this.parser.raise(v.PrivateNameRedeclaration,i,{identifierName:t}),s.add(t),a.delete(t)}usePrivateName(t,r){let i;for(i of this.stack)if(i.privateNames.has(t))return;i?i.undefinedPrivateNames.set(t,r):this.parser.raise(v.InvalidPrivateFieldResolution,r,{identifierName:t})}},zi=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Aa=class extends zi{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,r){let i=r.index;this.declarationErrors.set(i,[t,r])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},qc=class{constructor(t){this.parser=void 0,this.stack=[new zi],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,r){let i=r.loc.start,{stack:s}=this,n=s.length-1,a=s[n];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(t,i);else return;a=s[--n]}this.parser.raise(t,i)}recordArrowParameterBindingError(t,r){let{stack:i}=this,s=i[i.length-1],n=r.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(t,n);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(t,n);else return}recordAsyncArrowParametersError(t){let{stack:r}=this,i=r.length-1,s=r[i];for(;s.canBeArrowParameterDeclaration();)s.type===2&&s.recordDeclarationError(v.AwaitBindingIdentifier,t),s=r[--i]}validateAsPattern(){let{stack:t}=this,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([i,s])=>{this.parser.raise(i,s);let n=t.length-2,a=t[n];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(s.index),a=t[--n]})}};function GU(){return new zi(3)}function QU(){return new Aa(1)}function ZU(){return new Aa(2)}function xT(){return new zi}var Uc=class extends Fc{addExtra(t,r,i,s=!0){if(!t)return;let{extra:n}=t;n==null&&(n={},t.extra=n),s?n[r]=i:Object.defineProperty(n,r,{enumerable:s,value:i})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,r){if(this.input.startsWith(r,t)){let i=this.input.charCodeAt(t+r.length);return!(Ei(i)||(i&64512)===55296)}return!1}isLookaheadContextual(t){let r=this.nextTokenStart();return this.isUnparsedContextual(r,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,r){if(!this.eatContextual(t)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return tT(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return tT(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(v.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,r){this.eat(t)||this.unexpected(r,t)}tryParse(t,r=this.state.clone()){let i={node:null};try{let s=t((n=null)=>{throw i.node=n,i});if(this.state.errors.length>r.errors.length){let n=this.state;return this.state=r,this.state.tokensLength=n.tokensLength,{node:s,error:n.errors[r.errors.length],thrown:!1,aborted:!1,failState:n}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(s){let n=this.state;if(this.state=r,s instanceof SyntaxError)return{node:null,error:s,thrown:!0,aborted:!1,failState:n};if(s===i)return{node:i.node,error:null,thrown:!1,aborted:!0,failState:n};throw s}}checkExpressionErrors(t,r){if(!t)return!1;let{shorthandAssignLoc:i,doubleProtoLoc:s,privateKeyLoc:n,optionalParametersLoc:a,voidPatternLoc:o}=t,l=!!i||!!s||!!a||!!n||!!o;if(!r)return l;i!=null&&this.raise(v.InvalidCoverInitializedName,i),s!=null&&this.raise(v.DuplicateProto,s),n!=null&&this.raise(v.UnexpectedPrivateField,n),a!=null&&this.unexpected(a),o!=null&&this.raise(v.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return cT(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let i=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let s=this.inModule;this.inModule=t;let n=this.scope,a=this.getScopeHandler();this.scope=new a(this,t);let o=this.prodParam;this.prodParam=new kc;let l=this.classScope;this.classScope=new jc(this);let u=this.expressionScope;return this.expressionScope=new qc(this),()=>{this.state.labels=r,this.exportedIdentifiers=i,this.inModule=s,this.scope=n,this.prodParam=o,this.classScope=l,this.expressionScope=u}}enterInitialScopes(){let t=0;(this.inModule||this.optionFlags&1)&&(t|=2),this.optionFlags&32&&(t|=1);let r=!this.inModule&&this.options.sourceType==="commonjs";(r||this.optionFlags&2)&&(t|=4),this.prodParam.enter(t);let i=r?514:1;this.optionFlags&4&&(i|=512),this.scope.enter(i)}checkDestructuringPrivate(t){let{privateKeyLoc:r}=t;r!==null&&this.expectPlugin("destructuringPrivate",r)}},Wi=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}},Gi=class{constructor(t,r,i){this.type="",this.start=r,this.end=0,this.loc=new Hi(i),t?.optionFlags&128&&(this.range=[r,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},Kc=Gi.prototype;Kc.__clone=function(){let e=new Gi(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,i=t.length;r<i;r++){let s=t[r];s!=="leadingComments"&&s!=="trailingComments"&&s!=="innerComments"&&(e[s]=this[s])}return e};var Vc=class extends Uc{startNode(){let t=this.state.startLoc;return new Gi(this,t.index,t)}startNodeAt(t){return new Gi(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,r){return this.finishNodeAt(t,r,this.state.lastTokEndLoc)}finishNodeAt(t,r,i){return t.type=r,t.end=i.index,t.loc.end=i,this.optionFlags&128&&(t.range[1]=i.index),this.optionFlags&4096&&this.processComment(t),t}resetStartLocation(t,r){t.start=r.index,t.loc.start=r,this.optionFlags&128&&(t.range[0]=r.index)}resetEndLocation(t,r=this.state.lastTokEndLoc){t.end=r.index,t.loc.end=r,this.optionFlags&128&&(t.range[1]=r.index)}resetStartLocationFromNode(t,r){this.resetStartLocation(t,r.loc.start)}castNodeTo(t,r){return t.type=r,t}cloneIdentifier(t){let{type:r,start:i,end:s,loc:n,range:a,name:o}=t,l=Object.create(Kc);return l.type=r,l.start=i,l.end=s,l.loc=n,l.range=a,l.name=o,t.extra&&(l.extra=t.extra),l}cloneStringLiteral(t){let{type:r,start:i,end:s,loc:n,range:a,extra:o}=t,l=Object.create(Kc);return l.type=r,l.start=i,l.end=s,l.loc=n,l.range=a,l.extra=o,l.value=t.value,l}},$c=e=>e.type==="ParenthesizedExpression"?$c(e.expression):e,Jc=class extends Vc{toAssignable(t,r=!1){var i,s;let n;switch((t.type==="ParenthesizedExpression"||(i=t.extra)!=null&&i.parenthesized)&&(n=$c(t),r?n.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(v.InvalidParenthesizedAssignment,t):n.type!=="CallExpression"&&n.type!=="MemberExpression"&&!this.isOptionalMemberExpression(n)&&this.raise(v.InvalidParenthesizedAssignment,t):this.raise(v.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(t,"ObjectPattern");for(let o=0,l=t.properties.length,u=l-1;o<l;o++){var a;let f=t.properties[o],h=o===u;this.toAssignableObjectExpressionProp(f,h,r),h&&f.type==="RestElement"&&(a=t.extra)!=null&&a.trailingCommaLoc&&this.raise(v.RestTrailingComma,t.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:o,value:l}=t;this.isPrivateName(o)&&this.classScope.usePrivateName(this.getPrivateNameSV(o),o.loc.start),this.toAssignable(l,r);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":this.castNodeTo(t,"ArrayPattern"),this.toAssignableList(t.elements,(s=t.extra)==null?void 0:s.trailingCommaLoc,r);break;case"AssignmentExpression":t.operator!=="="&&this.raise(v.MissingEqInAssignment,t.left.loc.end),this.castNodeTo(t,"AssignmentPattern"),delete t.operator,t.left.type==="VoidPattern"&&this.raise(v.VoidPatternInitializer,t.left),this.toAssignable(t.left,r);break;case"ParenthesizedExpression":this.toAssignable(n,r);break}}toAssignableObjectExpressionProp(t,r,i){if(t.type==="ObjectMethod")this.raise(t.kind==="get"||t.kind==="set"?v.PatternHasAccessor:v.PatternHasMethod,t.key);else if(t.type==="SpreadElement"){this.castNodeTo(t,"RestElement");let s=t.argument;this.checkToRestConversion(s,!1),this.toAssignable(s,i),r||this.raise(v.RestTrailingComma,t)}else this.toAssignable(t,i)}toAssignableList(t,r,i){let s=t.length-1;for(let n=0;n<=s;n++){let a=t[n];a&&(this.toAssignableListItem(t,n,i),a.type==="RestElement"&&(n<s?this.raise(v.RestTrailingComma,a):r&&this.raise(v.RestTrailingComma,r)))}}toAssignableListItem(t,r,i){let s=t[r];if(s.type==="SpreadElement"){this.castNodeTo(s,"RestElement");let n=s.argument;this.checkToRestConversion(n,!0),this.toAssignable(n,i)}else this.toAssignable(s,i)}isAssignable(t,r){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let i=t.properties.length-1;return t.properties.every((s,n)=>s.type!=="ObjectMethod"&&(n===i||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(i=>i===null||this.isAssignable(i));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(t,r){return t}toReferencedListDeep(t,r){this.toReferencedList(t,r);for(let i of t)i?.type==="ArrayExpression"&&this.toReferencedListDeep(i.elements)}parseSpread(t){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let t=this.startNode();this.next();let r=this.parseBindingAtom();return r.type==="VoidPattern"&&this.raise(v.UnexpectedVoidPattern,r),t.argument=r,this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(t,r,i){let s=i&1,n=[],a=!0;for(;!this.eat(t);)if(a?a=!1:this.expect(12),s&&this.match(12))n.push(null);else{if(this.eat(t))break;if(this.match(21)){let o=this.parseRestBinding();if((this.hasPlugin("flow")||i&2)&&(o=this.parseFunctionParamType(o)),n.push(o),!this.checkCommaAfterRest(r)){this.expect(t);break}}else{let o=[];if(i&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(v.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());n.push(this.parseBindingElement(i,o))}}return n}parseBindingRestProperty(t){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(t.argument=this.parseVoidPattern(null),this.raise(v.UnexpectedVoidPattern,t.argument)):t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:r}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());let i=this.startNode();return t===139?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),i.key=this.parsePrivateName()):this.parsePropertyName(i),i.method=!1,this.parseObjPropValue(i,r,!1,!1,!0,!1)}parseBindingElement(t,r){let i=this.parseMaybeDefault();return(this.hasPlugin("flow")||t&2)&&this.parseFunctionParamType(i),r.length&&(i.decorators=r,this.resetStartLocationFromNode(i,r[0])),this.parseMaybeDefault(i.loc.start,i)}parseFunctionParamType(t){return t}parseMaybeDefault(t,r){if(t??(t=this.state.startLoc),r=r??this.parseBindingAtom(),!this.eat(29))return r;let i=this.startNodeAt(t);return r.type==="VoidPattern"&&this.raise(v.VoidPatternInitializer,r),i.left=r,i.right=this.parseMaybeAssignAllowIn(),this.finishNode(i,"AssignmentPattern")}isValidLVal(t,r,i,s){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!r&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,r,i=64,s=!1,n=!1,a=!1,o=!1){var l;let u=t.type;if(this.isObjectMethod(t))return;let f=this.isOptionalMemberExpression(t);if(f||u==="MemberExpression"){f&&(this.expectPlugin("optionalChainingAssign",t.loc.start),r.type!=="AssignmentExpression"&&this.raise(v.InvalidLhsOptionalChaining,t,{ancestor:r})),i!==64&&this.raise(v.InvalidPropertyBindingPattern,t);return}if(u==="Identifier"){this.checkIdentifier(t,i,n);let{name:C}=t;s&&(s.has(C)?this.raise(v.ParamDupe,t):s.add(C));return}else u==="VoidPattern"&&r.type==="CatchClause"&&this.raise(v.VoidPatternCatchClauseParam,t);let h=$c(t);o||(o=h.type==="CallExpression"&&(h.callee.type==="Import"||h.callee.type==="Super"));let x=this.isValidLVal(u,o,!(a||(l=t.extra)!=null&&l.parenthesized)&&r.type==="AssignmentExpression",i);if(x===!0)return;if(x===!1){let C=i===64?v.InvalidLhs:v.InvalidLhsBinding;this.raise(C,t,{ancestor:r});return}let A,P;typeof x=="string"?(A=x,P=u==="ParenthesizedExpression"):[A,P]=x;let w=u==="ArrayPattern"||u==="ObjectPattern"?{type:u}:r,b=t[A];if(Array.isArray(b))for(let C of b)C&&this.checkLVal(C,w,i,s,n,P,!0);else b&&this.checkLVal(b,w,i,s,n,P,o)}checkIdentifier(t,r,i=!1){this.state.strict&&(i?yT(t.name,this.inModule):mT(t.name))&&(r===64?this.raise(v.StrictEvalArguments,t,{referenceName:t.name}):this.raise(v.StrictEvalArgumentsBinding,t,{bindingName:t.name})),r&8192&&t.name==="let"&&this.raise(v.LetInLexicalBinding,t),r&64||this.declareNameFromIdentifier(t,r)}declareNameFromIdentifier(t,r){this.scope.declareName(t.name,r,t.loc.start)}checkToRestConversion(t,r){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(v.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?v.RestTrailingComma:v.ElementAfterRest,this.state.startLoc),!0):!1}},Ac=/in(?:stanceof)?|as|satisfies/y;function eK(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function sT(e){if(!e)throw new Error("Assert fail")}var ne=ar`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function tK(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function nT(e){return e==="private"||e==="public"||e==="protected"}function rK(e){return e==="in"||e==="out"}var iK=e=>class extends e{constructor(...r){super(...r),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:ne.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:ne.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:ne.InvalidModifierOnTypeParameter})}getScopeHandler(){return _c}tsIsIdentifier(){return Ue(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,i,s){if(!Ue(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let n=this.state.value;if(r.includes(n)){if(s&&this.match(106)||i&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:i,stopOnStartOfClassStaticBlock:s,errorTemplate:n=ne.InvalidModifierOnTypeMember},a){let o=(u,f,h,x)=>{f===h&&a[x]&&this.raise(ne.InvalidModifiersOrder,u,{orderedModifiers:[h,x]})},l=(u,f,h,x)=>{(a[h]&&f===x||a[x]&&f===h)&&this.raise(ne.IncompatibleModifiers,u,{modifiers:[h,x]})};for(;;){let{startLoc:u}=this.state,f=this.tsParseModifier(r.concat(i??[]),s,a.static);if(!f)break;nT(f)?a.accessibility?this.raise(ne.DuplicateAccessibilityModifier,u,{modifier:f}):(o(u,f,f,"override"),o(u,f,f,"static"),o(u,f,f,"readonly"),a.accessibility=f):rK(f)?(a[f]&&this.raise(ne.DuplicateModifier,u,{modifier:f}),a[f]=!0,o(u,f,"in","out")):(hasOwnProperty.call(a,f)?this.raise(ne.DuplicateModifier,u,{modifier:f}):(o(u,f,"static","readonly"),o(u,f,"static","override"),o(u,f,"override","readonly"),o(u,f,"abstract","override"),l(u,f,"declare","override"),l(u,f,"static","abstract")),a[f]=!0),i!=null&&i.includes(f)&&this.raise(n,u,{modifier:f})}}tsIsListTerminator(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(r,i){let s=[];for(;!this.tsIsListTerminator(r);)s.push(i());return s}tsParseDelimitedList(r,i,s){return eK(this.tsParseDelimitedListWorker(r,i,!0,s))}tsParseDelimitedListWorker(r,i,s,n){let a=[],o=-1;for(;!this.tsIsListTerminator(r);){o=-1;let l=i();if(l==null)return;if(a.push(l),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;s&&this.expect(12);return}return n&&(n.value=o),a}tsParseBracketedList(r,i,s,n,a){n||(s?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(r,i,a);return s?this.expect(3):this.expect(48),o}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(134)?r.argument=this.parseStringLiteral(this.state.value):(this.raise(ne.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=super.parseExprAtom()),this.eat(12)?r.options=this.tsParseImportTypeOptions():r.options=null,this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName(3)),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseImportTypeOptions(){let r=this.startNode();this.expect(5);let i=this.startNode();return this.isContextual(76)?(i.method=!1,i.key=this.parseIdentifier(!0),i.computed=!1,i.shorthand=!1):this.unexpected(null,76),this.expect(14),i.value=this.tsParseImportTypeWithPropertyValue(),r.properties=[this.finishObjectProperty(i)],this.eat(12),this.expect(8),this.finishNode(r,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let r=this.startNode(),i=[];for(this.expect(5);!this.match(8);){let s=this.state.type;Ue(s)||s===134?i.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return r.properties=i,this.next(),this.finishNode(r,"ObjectExpression")}tsParseEntityName(r){let i;if(r&1&&this.match(78))if(r&2)i=this.parseIdentifier(!0);else{let s=this.startNode();this.next(),i=this.finishNode(s,"ThisExpression")}else i=this.parseIdentifier(!!(r&1));for(;this.eat(16);){let s=this.startNodeAtNode(i);s.left=i,s.right=this.parseIdentifier(!!(r&1)),i=this.finishNode(s,"TSQualifiedName")}return i}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let i=this.startNodeAtNode(r);return i.parameterName=r,i.typeAnnotation=this.tsParseTypeAnnotation(!1),i.asserts=!1,this.finishNode(i,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let i=this.startNode();return r(i),i.name=this.tsParseTypeParameterName(),i.constraint=this.tsEatThenParseType(81),i.default=this.tsEatThenParseType(29),this.finishNode(i,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let i=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let s={value:-1};return i.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,s),i.params.length===0&&this.raise(ne.EmptyTypeParameters,i),s.value!==-1&&this.addExtra(i,"trailingComma",s.value),this.finishNode(i,"TSTypeParameterDeclaration")}tsFillSignature(r,i){let s=r===19,n="parameters",a="typeAnnotation";i.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),i[n]=this.tsParseBindingListForSignature(),s?i[a]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(i[a]=this.tsParseTypeOrTypePredicateAnnotation(r))}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let i of r){let{type:s}=i;(s==="AssignmentPattern"||s==="TSParameterProperty")&&this.raise(ne.UnsupportedSignatureParameterKind,i,{type:s})}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(r,i){return this.tsFillSignature(14,i),this.tsParseTypeMemberSemicolon(),this.finishNode(i,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),Ue(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let i=this.parseIdentifier();i.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(i),this.expect(3),r.parameters=[i];let s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,i){if(this.eat(17)&&(r.optional=!0),this.match(10)||this.match(47)){i&&this.raise(ne.ReadonlyForMethodSignature,r);let s=r;s.kind&&this.match(47)&&this.raise(ne.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon();let n="parameters",a="typeAnnotation";if(s.kind==="get")s[n].length>0&&(this.raise(v.BadGetterArity,this.state.curPosition()),this.isThisParam(s[n][0])&&this.raise(ne.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(s.kind==="set"){if(s[n].length!==1)this.raise(v.BadSetterArity,this.state.curPosition());else{let o=s[n][0];this.isThisParam(o)&&this.raise(ne.AccessorCannotDeclareThisParameter,this.state.curPosition()),o.type==="Identifier"&&o.optional&&this.raise(ne.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),o.type==="RestElement"&&this.raise(ne.SetAccessorCannotHaveRestParameter,this.state.curPosition())}s[a]&&this.raise(ne.SetAccessorCannotHaveReturnType,s[a])}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}else{let s=r;i&&(s.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(s.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let s=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(s,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);let i=this.tsTryParseIndexSignature(r);return i||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let r=this.startNode();this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0);let i=this.startNode();return i.name=this.tsParseTypeParameterName(),i.constraint=this.tsExpectThenParseType(58),r.typeParameter=this.finishNode(i,"TSTypeParameter"),r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let i=!1;return r.elementTypes.forEach(s=>{let{type:n}=s;i&&n!=="TSRestType"&&n!=="TSOptionalType"&&!(n==="TSNamedTupleMember"&&s.optional)&&this.raise(ne.OptionalTypeBeforeRequired,s),i||(i=n==="TSNamedTupleMember"&&s.optional||n==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let r=this.state.startLoc,i=this.eat(21),{startLoc:s}=this.state,n,a,o,l,f=or(this.state.type)?this.lookaheadCharCode():null;if(f===58)n=!0,o=!1,a=this.parseIdentifier(!0),this.expect(14),l=this.tsParseType();else if(f===63){o=!0;let h=this.state.value,x=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(n=!0,a=this.createIdentifier(this.startNodeAt(s),h),this.expect(17),this.expect(14),l=this.tsParseType()):(n=!1,l=x,this.expect(17))}else l=this.tsParseType(),o=this.eat(17),n=this.eat(14);if(n){let h;a?(h=this.startNodeAt(s),h.optional=o,h.label=a,h.elementType=l,this.eat(17)&&(h.optional=!0,this.raise(ne.TupleOptionalAfterType,this.state.lastTokStartLoc))):(h=this.startNodeAt(s),h.optional=o,this.raise(ne.InvalidTupleMemberLabel,l),h.label=l,h.elementType=this.tsParseType()),l=this.finishNode(h,"TSNamedTupleMember")}else if(o){let h=this.startNodeAt(s);h.typeAnnotation=l,l=this.finishNode(h,"TSOptionalType")}if(i){let h=this.startNodeAt(r);h.typeAnnotation=l,l=this.finishNode(h,"TSRestType")}return l}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,i){let s=this.startNode();return r==="TSConstructorType"&&(s.abstract=!!i,i&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,s)),this.finishNode(s,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){let r=this.startNode();return r.literal=super.parseTemplate(!1),this.finishNode(r,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),i=this.lookahead();return i.type!==135&&i.type!==136&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"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:r}=this.state;if(Ue(r)||r===88||r===84){let i=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":tK(this.state.value);if(i!==void 0&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,i)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:r}=this.state,i=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let s=this.startNodeAt(r);s.elementType=i,this.expect(3),i=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAt(r);s.objectType=i,s.indexType=this.tsParseType(),this.expect(3),i=this.finishNode(s,"TSIndexedAccessType")}return i}tsParseTypeOperator(){let r=this.startNode(),i=this.state.value;return this.next(),r.operator=i,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),i==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(ne.UnexpectedReadonly,r)}}tsParseInferType(){let r=this.startNode();this.expectContextual(115);let i=this.startNode();return i.name=this.tsParseTypeParameterName(),i.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(i,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return PU(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,i,s){let n=this.startNode(),a=this.eat(s),o=[];do o.push(i());while(this.eat(s));return o.length===1&&!a?o[0]:(n.types=o,this.finishNode(n,r))}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)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Ue(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,i=r.length;try{return this.parseObjectLike(8,!0),r.length===i}catch{return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,i=r.length;try{return super.parseBindingList(3,93,1),r.length===i}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(r){return this.tsInType(()=>{let i=this.startNode();this.expect(r);let s=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let l=this.tsParseThisTypeOrThisTypePredicate();return l.type==="TSThisType"?(s.parameterName=l,s.asserts=!0,s.typeAnnotation=null,l=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(l,s),l.asserts=!0),i.typeAnnotation=l,this.finishNode(i,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return n?(s.parameterName=this.parseIdentifier(),s.asserts=n,s.typeAnnotation=null,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,i);let o=this.tsParseTypeAnnotation(!1);return s.parameterName=a,s.typeAnnotation=o,s.asserts=n,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let r=this.state.containsEsc;return this.next(),!Ue(this.state.type)&&!this.match(78)?!1:(r&&this.raise(v.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,i=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),i.typeAnnotation=this.tsParseType()}),this.finishNode(i,"TSTypeAnnotation")}tsParseType(){sT(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let i=this.startNodeAtNode(r);return i.checkType=r,i.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),i.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),i.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(i,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}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(ne.ReservedTypeAssertion,this.state.startLoc);let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let i=this.state.startLoc,s=this.tsParseDelimitedList("HeritageClauseElement",()=>{let n=this.startNode();return n.expression=this.tsParseEntityName(3),this.match(47)&&(n.typeParameters=this.tsParseTypeArguments()),this.finishNode(n,"TSExpressionWithTypeArguments")});return s.length||this.raise(ne.EmptyHeritageClauseType,i,{token:r}),s}tsParseInterfaceDeclaration(r,i={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),i.declare&&(r.declare=!0),Ue(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(ne.MissingInterfaceName,this.state.startLoc)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));let s=this.startNode();return s.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(s,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInTopLevelContext(r){if(this.curContext()!==Re.brace){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}else return r()}tsInType(r){let i=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=i}}tsInDisallowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsInAllowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();return r.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,i={}){return i.const&&(r.const=!0),i.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumDeclaration")}tsParseEnumBody(){let r=this.startNode();return this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumBody")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,i=!1){if(r.id=this.parseIdentifier(),i||this.checkIdentifier(r.id,1024),this.eat(16)){let s=this.startNode();this.tsParseModuleOrNamespaceDeclaration(s,!0),r.body=s}else this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.kind="global",r.global=!0,r.id=this.parseIdentifier()):this.match(134)?(r.kind="module",r.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,i,s){r.isExport=s||!1,r.id=i||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let n=this.tsParseModuleReference();return r.importKind==="type"&&n.type!=="TSExternalModuleReference"&&this.raise(ne.ImportAliasHasImportType,n),r.moduleReference=n,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let i=this.state.clone(),s=r();return this.state=i,s}tsTryParseAndCatch(r){let i=this.tryParse(s=>r()||s());if(!(i.aborted||!i.node))return i.error&&(this.state=i.failState),i.node}tsTryParse(r){let i=this.state.clone(),s=r();if(s!==void 0&&s!==!1)return s;this.state=i}tsTryParseDeclare(r){if(this.isLineTerminator())return;let i=this.state.type;return this.tsInAmbientContext(()=>{switch(i){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(ne.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.parseVarStatement(r,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(ne.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.next(),this.parseVarStatement(r,"await using",!0);break;case 129:{let s=this.tsParseInterfaceDeclaration(r,{declare:!0});if(s)return s}default:if(Ue(i))return this.tsParseDeclaration(r,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(r,i,s,n){switch(i){case 124:if(this.tsCheckLineTerminator(s)&&(this.match(80)||Ue(this.state.type)))return this.tsParseAbstractDeclaration(r,n);break;case 127:if(this.tsCheckLineTerminator(s)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);if(Ue(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case 128:if(this.tsCheckLineTerminator(s)&&Ue(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case 130:if(this.tsCheckLineTerminator(s)&&Ue(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let i=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let s=this.tsTryParseAndCatch(()=>{let n=this.startNodeAt(r);return n.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(n),n.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),n});if(this.state.maybeInArrowParameters=i,!!s)return super.parseArrowExpression(s,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(ne.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===Re.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return AU(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(r,i){let s=i.length?i[0].loc.start:this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);let a=n.accessibility,o=n.override,l=n.readonly;!(r&4)&&(a||l||o)&&this.raise(ne.UnexpectedParameterModifier,s);let u=this.parseMaybeDefault();r&2&&this.parseFunctionParamType(u);let f=this.parseMaybeDefault(u.loc.start,u);if(a||l||o){let h=this.startNodeAt(s);return i.length&&(h.decorators=i),a&&(h.accessibility=a),l&&(h.readonly=l),o&&(h.override=o),f.type!=="Identifier"&&f.type!=="AssignmentPattern"&&this.raise(ne.UnsupportedParameterPropertyKind,h),h.parameter=f,this.finishNode(h,"TSParameterProperty")}return i.length&&(u.decorators=i),f}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let i of r.params)i.type!=="Identifier"&&i.optional&&!this.state.isAmbientContext&&this.raise(ne.PatternIsOptional,i)}setArrowFunctionParameters(r,i,s){super.setArrowFunctionParameters(r,i,s),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,i,s=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let n=i==="FunctionDeclaration"?"TSDeclareFunction":i==="ClassMethod"||i==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,n):n==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(ne.DeclareFunctionHasImplementation,r),r.declare)?super.parseFunctionBodyAndFinish(r,n,s):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,i,s))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,1024):super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach(i=>{i?.type==="TSTypeCastExpression"&&this.raise(ne.UnexpectedTypeAnnotation,i.typeAnnotation)})}toReferencedList(r,i){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,i,s){let n=super.parseArrayLike(r,i,s);return n.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(r,i,s,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(i);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(s)return n.stop=!0,r;n.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let o,l=this.tsTryParseAndCatch(()=>{if(!s&&this.atPossibleAsyncArrow(r)){let x=this.tsTryParseGenericAsyncArrowFunction(i);if(x)return n.stop=!0,x}let u=this.tsParseTypeArgumentsInExpression();if(!u)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if(Pa(this.state.type)){let x=super.parseTaggedTemplateExpression(r,i,n);return x.typeParameters=u,x}if(!s&&this.eat(10)){let x=this.startNodeAt(i);return x.callee=r,x.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(x.arguments),x.typeParameters=u,n.optionalChainMember&&(x.optional=a),this.finishCallExpression(x,n.optionalChainMember)}let f=this.state.type;if(f===48||f===52||f!==10&&f!==93&&f!==120&&Bs(f)&&!this.hasPrecedingLineBreak())return;let h=this.startNodeAt(i);return h.expression=r,h.typeParameters=u,this.finishNode(h,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),l)return l.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(ne.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(l.expression=super.stopParseSubscript(r,n))),l}return super.parseSubscript(r,i,s,n)}parseNewCallee(r){var i;super.parseNewCallee(r);let{callee:s}=r;s.type==="TSInstantiationExpression"&&!((i=s.extra)!=null&&i.parenthesized)&&(r.typeParameters=s.typeParameters,r.callee=s.expression)}parseExprOp(r,i,s){let n;if(xa(58)>s&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){let a=this.startNodeAt(i);return a.expression=r,a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(n&&this.raise(v.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(a,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,i,s)}return super.parseExprOp(r,i,s)}checkReservedWord(r,i,s,n){this.state.isAmbientContext||super.checkReservedWord(r,i,s,n)}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(ne.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){let i=this.lookaheadCharCode();return r?i===123||i===42:i!==61}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,n){super.applyImportPhase(r,i,s,n),i?r.exportKind=s==="type"?"type":"value":r.importKind=s==="type"||s==="typeof"?s:"value"}parseImport(r){if(this.match(134))return r.importKind="value",super.parseImport(r);let i;if(Ue(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let s=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,s);i=super.parseImportSpecifiersAndAfter(r,s)}else i=super.parseImport(r);return i.importKind==="type"&&i.specifiers.length>1&&i.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(ne.TypeImportCannotSpecifyDefaultAndNamed,i),i}parseExport(r,i){if(this.match(83)){let s=r;this.next();let n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(s,!1):s.importKind="value",this.tsParseImportEqualsDeclaration(s,n,!0)}else if(this.eat(29)){let s=r;return s.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}else if(this.eatContextual(93)){let s=r;return this.expectContextual(128),s.id=this.parseIdentifier(),this.semicolon(),this.finishNode(s,"TSNamespaceExportDeclaration")}else return super.parseExport(r,i)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,i,s=!1){let{isAmbientContext:n}=this.state,a=super.parseVarStatement(r,i,s||n);if(!n)return a;if(!r.declare&&(i==="using"||i==="await using"))return this.raiseOverwrite(ne.UsingDeclarationInAmbientContext,r,i),a;for(let{id:o,init:l}of a.declarations)l&&(i==="var"||i==="let"||o.typeAnnotation?this.raise(ne.InitializerNotAllowedInAmbientContext,l):nK(l,this.hasPlugin("estree"))||this.raise(ne.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,l));return a}parseStatementContent(r,i){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let s=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(s,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let s=this.state.type,n=this.startNode();this.next();let a=s===125?this.tsTryParseDeclare(n):this.tsParseAbstractDeclaration(n,i);return a?(s===125&&(a.declare=!0),a):(n.expression=this.createIdentifier(this.startNodeAt(n.loc.start),s===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(n,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let n=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(n)}break}case 129:{let s=this.tsParseInterfaceDeclaration(this.startNode());if(s)return s;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let s=this.startNode();return this.next(),this.tsParseDeclaration(s,127,!1,i)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let s=this.startNode();return this.next(),this.tsParseDeclaration(s,128,!1,i)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let s=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(s)}break}}return super.parseStatementContent(r,i)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,i){return i.some(s=>nT(s)?r.accessibility===s:!!r[s])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,i,s){let n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:ne.InvalidModifierOnTypeParameterPositions},i);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(i,n)&&this.raise(ne.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(r,i)):this.parseClassMemberWithIsStatic(r,i,s,!!i.static)};i.declare?this.tsInAmbientContext(a):a()}parseClassMemberWithIsStatic(r,i,s,n){let a=this.tsTryParseIndexSignature(i);if(a){r.body.push(a),i.abstract&&this.raise(ne.IndexSignatureHasAbstract,i),i.accessibility&&this.raise(ne.IndexSignatureHasAccessibility,i,{modifier:i.accessibility}),i.declare&&this.raise(ne.IndexSignatureHasDeclare,i),i.override&&this.raise(ne.IndexSignatureHasOverride,i);return}!this.state.inAbstractClass&&i.abstract&&this.raise(ne.NonAbstractClassHasAbstractMethod,i),i.override&&(s.hadSuperClass||this.raise(ne.OverrideNotInSubClass,i)),super.parseClassMemberWithIsStatic(r,i,s,n)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(ne.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(ne.ClassMethodHasDeclare,r)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,i,s){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let n=this.lookaheadCharCode();if(n===44||n===61||n===58||n===41)return this.setOptionalParametersError(s),r}return super.parseConditional(r,i,s)}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let n=this.startNodeAt(i);return n.expression=r,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let i=this.state.startLoc,s=this.eatContextual(125);if(s&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(ne.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let a=Ue(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return a?((a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||s)&&(r.exportKind="type"),s&&a.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(a,i),a.declare=!0),a):null}parseClassId(r,i,s,n){if((!i||s)&&this.isContextual(113))return;super.parseClassId(r,i,s,r.declare?1024:8331);let a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(r.typeParameters=a)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let i=this.tsTryParseTypeAnnotation();i&&(r.typeAnnotation=i)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(ne.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:i}=r;this.raise(ne.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:i.type==="Identifier"&&!r.computed?i.name:`[${this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end))}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(ne.PrivateElementHasAbstract,r),r.accessibility&&this.raise(ne.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(ne.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,i,s,n,a,o){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);l&&a&&this.raise(ne.ConstructorHasTypeParameters,l);let{declare:u=!1,kind:f}=i;u&&(f==="get"||f==="set")&&this.raise(ne.DeclareAccessor,i,{kind:f}),l&&(i.typeParameters=l),super.pushClassMethod(r,i,s,n,a,o)}pushClassPrivateMethod(r,i,s,n){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(i.typeParameters=a),super.pushClassPrivateMethod(r,i,s,n)}declareClassPrivateMethodInScope(r,i){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&r.value.body==null||super.declareClassPrivateMethodInScope(r,i))}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass)if(r.superClass.type==="TSInstantiationExpression"){let i=r.superClass,s=i.expression;this.takeSurroundingComments(s,s.start,s.end);let n=i.typeParameters;this.takeSurroundingComments(n,n.start,n.end),r.superClass=s,r.superTypeParameters=n}else(this.match(47)||this.match(51))&&(r.superTypeParameters=this.tsParseTypeArgumentsInExpression());this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(r,i,s,n,a,o,l){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);return u&&(r.typeParameters=u),super.parseObjPropValue(r,i,s,n,a,o,l)}parseFunctionParams(r,i){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(r.typeParameters=s),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);let s=this.tsTryParseTypeAnnotation();s&&(r.id.typeAnnotation=s,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,i)}parseMaybeAssign(r,i){var s,n,a,o,l;let u,f,h;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(u=this.state.clone(),f=this.tryParse(()=>super.parseMaybeAssign(r,i),u),!f.error)return f.node;let{context:P}=this.state,w=P[P.length-1];(w===Re.j_oTag||w===Re.j_expr)&&P.pop()}if(!((s=f)!=null&&s.error)&&!this.match(47))return super.parseMaybeAssign(r,i);(!u||u===this.state)&&(u=this.state.clone());let x,A=this.tryParse(P=>{var w,b;x=this.tsParseTypeParameters(this.tsParseConstModifier);let C=super.parseMaybeAssign(r,i);return(C.type!=="ArrowFunctionExpression"||(w=C.extra)!=null&&w.parenthesized)&&P(),((b=x)==null?void 0:b.params.length)!==0&&this.resetStartLocationFromNode(C,x),C.typeParameters=x,C},u);if(!A.error&&!A.aborted)return x&&this.reportReservedArrowTypeParam(x),A.node;if(!f&&(sT(!this.hasPlugin("jsx")),h=this.tryParse(()=>super.parseMaybeAssign(r,i),u),!h.error))return h.node;if((n=f)!=null&&n.node)return this.state=f.failState,f.node;if(A.node)return this.state=A.failState,x&&this.reportReservedArrowTypeParam(x),A.node;if((a=h)!=null&&a.node)return this.state=h.failState,h.node;throw((o=f)==null?void 0:o.error)||A.error||((l=h)==null?void 0:l.error)}reportReservedArrowTypeParam(r){var i;r.params.length===1&&!r.params[0].constraint&&!((i=r.extra)!=null&&i.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(ne.ReservedArrowTypeParam,r)}parseMaybeUnary(r,i){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(s=>{let n=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&s(),n});if(i.aborted)return;i.thrown||(i.error&&(this.state=i.failState),r.returnType=i.node)}return super.parseArrow(r)}parseFunctionParamType(r){this.eat(17)&&(r.optional=!0);let i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i),this.resetEndLocation(r),r}isAssignable(r,i){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,i);case"TSParameterProperty":return!0;default:return super.isAssignable(r,i)}}toAssignable(r,i=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,i);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":i?this.expressionScope.recordArrowParameterBindingError(ne.UnexpectedTypeCastInParameter,r):this.raise(ne.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,i);break;case"AssignmentExpression":!i&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,i)}}toAssignableParenthesizedExpression(r,i){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,i);break;default:super.toAssignable(r,i)}}checkToRestConversion(r,i){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,i)}}isValidLVal(r,i,s,n){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(n!==64||!s)&&["expression",!0];default:return super.isValidLVal(r,i,s,n)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r,i){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let n=super.parseMaybeDecoratorArguments(r,i);return n.typeParameters=s,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r,i)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(ne.TypeAnnotationAfterAssign,s.typeAnnotation),s}getTokenFromCode(r){if(this.state.inType){if(r===62){this.finishOp(48,1);return}if(r===60){this.finishOp(47,1);return}}super.getTokenFromCode(r)}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}toAssignableListItem(r,i,s){let n=r[i];n.type==="TSTypeCastExpression"&&(r[i]=this.typeCastToParameter(n)),super.toAssignableListItem(r,i,s)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}shouldParseArrow(r){return this.match(14)?r.every(i=>this.isAssignable(i,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let i=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());i&&(r.typeParameters=i)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let i=super.getGetterSetterExpectedParamCount(r),n=this.getObjectOrClassMethodParams(r)[0];return n&&this.isThisParam(n)?i+1:i}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i,this.resetEndLocation(r)),r}tsInAmbientContext(r){let{isAmbientContext:i,strict:s}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=i,this.state.strict=s}}parseClass(r,i,s){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,i,s)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(r,i){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(i,this.parseClass(r,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(r.abstract=!0,this.raise(ne.NonClassMethodPropertyHasAbstractModifier,r),this.tsParseInterfaceDeclaration(r));throw this.unexpected(null,80)}parseMethod(r,i,s,n,a,o,l){let u=super.parseMethod(r,i,s,n,a,o,l);if((u.abstract||u.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?u.value:u).body){let{key:x}=u;this.raise(ne.AbstractMethodHasImplementation,u,{methodName:x.type==="Identifier"&&!u.computed?x.name:`[${this.input.slice(this.offsetToSourcePos(x.start),this.offsetToSourcePos(x.end))}]`})}return u}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(r,i,s,n){return!i&&n?(this.parseTypeOnlyImportExportSpecifier(r,!1,s),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,i,s,n))}parseImportSpecifier(r,i,s,n,a){return!i&&n?(this.parseTypeOnlyImportExportSpecifier(r,!0,s),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,i,s,n,s?4098:4096))}parseTypeOnlyImportExportSpecifier(r,i,s){let n=i?"imported":"local",a=i?"local":"exported",o=r[n],l,u=!1,f=!0,h=o.loc.start;if(this.isContextual(93)){let A=this.parseIdentifier();if(this.isContextual(93)){let P=this.parseIdentifier();or(this.state.type)?(u=!0,o=A,l=i?this.parseIdentifier():this.parseModuleExportName(),f=!1):(l=P,f=!1)}else or(this.state.type)?(f=!1,l=i?this.parseIdentifier():this.parseModuleExportName()):(u=!0,o=A)}else or(this.state.type)&&(u=!0,i?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());u&&s&&this.raise(i?ne.TypeModifierIsUsedInTypeImports:ne.TypeModifierIsUsedInTypeExports,h),r[n]=o,r[a]=l;let x=i?"importKind":"exportKind";r[x]=u?"type":"value",f&&this.eatContextual(93)&&(r[a]=i?this.parseIdentifier():this.parseModuleExportName()),r[a]||(r[a]=this.cloneIdentifier(r[n])),i&&this.checkIdentifier(r[a],u?4098:4096)}fillOptionalPropertiesForTSESLint(r){var i,s,n,a,o,l,u,f,h,x,A,P,w,b,C,D,U,k,L,te,Te,be,X,Ye,ct,B,G,me,je,ht,Mt,We,ot,Et,J,$,M,ee,de,ge,Be,Me,et,Ve,we,Ke,$e,Ee,Ge;switch(r.type){case"ImportDeclaration":(i=r.phase)!=null||(r.phase=null);return;case"ExpressionStatement":(s=r.directive)!=null||(r.directive=void 0);return;case"RestElement":r.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(n=r.decorators)!=null||(r.decorators=[]),(a=r.optional)!=null||(r.optional=!1),(o=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);return;case"TSParameterProperty":(l=r.accessibility)!=null||(r.accessibility=void 0),(u=r.decorators)!=null||(r.decorators=[]),(f=r.override)!=null||(r.override=!1),(h=r.readonly)!=null||(r.readonly=!1),(x=r.static)!=null||(r.static=!1);return;case"TSEmptyBodyFunctionExpression":r.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(A=r.declare)!=null||(r.declare=!1),(P=r.returnType)!=null||(r.returnType=void 0),(w=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"Property":(b=r.optional)!=null||(r.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(C=r.optional)!=null||(r.optional=!1);case"TSIndexSignature":(D=r.accessibility)!=null||(r.accessibility=void 0),(U=r.readonly)!=null||(r.readonly=!1),(k=r.static)!=null||(r.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(L=r.declare)!=null||(r.declare=!1),(te=r.definite)!=null||(r.definite=!1),(Te=r.readonly)!=null||(r.readonly=!1),(be=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(X=r.accessibility)!=null||(r.accessibility=void 0),(Ye=r.decorators)!=null||(r.decorators=[]),(ct=r.override)!=null||(r.override=!1),(B=r.optional)!=null||(r.optional=!1);return;case"ClassExpression":(G=r.id)!=null||(r.id=null);case"ClassDeclaration":(me=r.abstract)!=null||(r.abstract=!1),(je=r.declare)!=null||(r.declare=!1),(ht=r.decorators)!=null||(r.decorators=[]),(Mt=r.implements)!=null||(r.implements=[]),(We=r.superTypeArguments)!=null||(r.superTypeArguments=void 0),(ot=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(Et=r.declare)!=null||(r.declare=!1);return;case"VariableDeclarator":(J=r.definite)!=null||(r.definite=!1);return;case"TSEnumDeclaration":($=r.const)!=null||(r.const=!1),(M=r.declare)!=null||(r.declare=!1);return;case"TSEnumMember":(ee=r.computed)!=null||(r.computed=!1);return;case"TSImportType":(de=r.qualifier)!=null||(r.qualifier=null),(ge=r.options)!=null||(r.options=null);return;case"TSInterfaceDeclaration":(Be=r.declare)!=null||(r.declare=!1),(Me=r.extends)!=null||(r.extends=[]);return;case"TSMappedType":(et=r.optional)!=null||(r.optional=!1),(Ve=r.readonly)!=null||(r.readonly=void 0);return;case"TSModuleDeclaration":(we=r.declare)!=null||(r.declare=!1),(Ke=r.global)!=null||(r.global=r.kind==="global");return;case"TSTypeParameter":($e=r.const)!=null||(r.const=!1),(Ee=r.in)!=null||(r.in=!1),(Ge=r.out)!=null||(r.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(r,i){if(Tr(r)){if(Ac.lastIndex=i,Ac.test(this.input)){let s=this.codePointAtPos(Ac.lastIndex);if(!Ei(s)&&s!==92)return!1}return!0}else return r===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let r=this.nextTokenInLineStart(),i=this.codePointAtPos(r);return this.chStartsBindingIdentifierAndNotRelationalOperator(i,r)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let r=this.nextTokenInLineStart(),i=this.codePointAtPos(r);return this.chStartsBindingIdentifier(i,r)||i===34||i===39}};function sK(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:ET(e.object)}function nK(e,t){var r;let{type:i}=e;if((r=e.extra)!=null&&r.parenthesized)return!1;if(t){if(i==="Literal"){let{value:s}=e;if(typeof s=="string"||typeof s=="boolean")return!0}}else if(i==="StringLiteral"||i==="BooleanLiteral")return!0;return!!(bT(e,t)||aK(e,t)||i==="TemplateLiteral"&&e.expressions.length===0||sK(e))}function bT(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function aK(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:i}=e;if(r==="-"&&bT(i,t))return!0}return!1}function ET(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:ET(e.object)}var aT=ar`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),oK=e=>class extends e{parsePlaceholder(r){if(this.match(133)){let i=this.startNode();return this.next(),this.assertNoSpace(),i.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(i,r)}}finishPlaceholder(r,i){let s=r;return(!s.expectedNode||!s.type)&&(s=this.finishNode(s,"Placeholder")),s.expectedNode=i,s}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(r)}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,i,s,n){r!==void 0&&super.checkReservedWord(r,i,s,n)}cloneIdentifier(r){let i=super.cloneIdentifier(r);return i.type==="Placeholder"&&(i.expectedNode=r.expectedNode),i}cloneStringLiteral(r){return r.type==="Placeholder"?this.cloneIdentifier(r):super.cloneStringLiteral(r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,i,s,n){return r==="Placeholder"||super.isValidLVal(r,i,s,n)}toAssignable(r,i){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,i)}chStartsBindingIdentifier(r,i){if(super.chStartsBindingIdentifier(r,i))return!0;let s=this.nextTokenStart();return this.input.charCodeAt(s)===37&&this.input.charCodeAt(s+1)===37}verifyBreakContinue(r,i){var s;((s=r.label)==null?void 0:s.type)!=="Placeholder"&&super.verifyBreakContinue(r,i)}parseExpressionStatement(r,i){var s;if(i.type!=="Placeholder"||(s=i.extra)!=null&&s.parenthesized)return super.parseExpressionStatement(r,i);if(this.match(14)){let a=r;return a.label=this.finishPlaceholder(i,"Identifier"),this.next(),a.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(a,"LabeledStatement")}this.semicolon();let n=r;return n.name=i.name,this.finishPlaceholder(n,"Statement")}parseBlock(r,i,s){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,i,s)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,i,s){let n=i?"ClassDeclaration":"ClassExpression";this.next();let a=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(133)||this.match(5))r.id=o;else{if(s||!i)return r.id=null,r.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(r,n);throw this.raise(aT.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(r,i,s);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,a),this.finishNode(r,n)}parseExport(r,i){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseExport(r,i);let n=r;if(!this.isContextual(98)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(s,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let a=this.startNode();return a.exported=s,n.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],super.parseExport(n,i)}isExportDefaultSpecifier(){if(this.match(65)){let r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")&&this.input.startsWith(Gr(133),this.nextTokenStartSince(r+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,i){var s;return(s=r.specifiers)!=null&&s.length?!0:super.maybeParseExportDefaultSpecifier(r,i)}checkExport(r){let{specifiers:i}=r;i!=null&&i.length&&(r.specifiers=i.filter(s=>s.exported.type==="Placeholder")),super.checkExport(r),r.specifiers=i}parseImport(r){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(i,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");let s=this.startNodeAtNode(i);return s.local=i,r.specifiers.push(this.finishNode(s,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(r)||this.parseNamedImportSpecifiers(r)),this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(aT.UnexpectedSpace,this.state.lastTokEndLoc)}},lK=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,i=this.startNode();if(this.next(),Ue(this.state.type)){let s=this.parseIdentifierName(),n=this.createIdentifier(i,s);if(this.castNodeTo(n,"V8IntrinsicIdentifier"),this.match(10))return n}this.unexpected(r)}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}},oT=["minimal","fsharp","hack","smart"],lT=["^^","@@","^","%","#"];function uK(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let i=e.get("decorators").decoratorsBeforeExport;if(i!=null&&typeof i!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let s=e.get("decorators").allowCallParenthesized;if(s!=null&&typeof s!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var t;let i=e.get("pipelineOperator").proposal;if(!oT.includes(i)){let s=oT.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${s}.`)}if(i==="hack"){var r;if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let s=e.get("pipelineOperator").topicToken;if(!lT.includes(s)){let n=lT.map(a=>`"${a}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}if(s==="#"&&((r=e.get("recordAndTuple"))==null?void 0:r.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if(i==="smart"&&((t=e.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}if(e.has("moduleAttributes")){if(e.has("deprecatedImportAssert")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(e.get("moduleAttributes").version!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAssertions")&&e.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(e.has("deprecatedImportAssert")||e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax&&e.set("deprecatedImportAssert",{}),e.has("recordAndTuple")){let i=e.get("recordAndTuple").syntaxType;if(i!=null){let s=["hash","bar"];if(!s.includes(i))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+s.map(n=>`'${n}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let i=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw i.missingPlugins="doExpressions",i}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&e.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}var PT={estree:dU,jsx:JU,flow:UU,typescript:iK,v8intrinsic:lK,placeholders:oK},cK=Object.keys(PT),Xc=class extends Jc{checkProto(t,r,i,s){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return i;let n=t.key;return(n.type==="Identifier"?n.name:n.value)==="__proto__"?r?(this.raise(v.RecordNoProto,n),!0):(i&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=n.loc.start):this.raise(v.DuplicateProto,n)),!0):i}shouldExitDescending(t,r){return t.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(t.start)===r}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(v.ParseExpressionEmptyInput,this.state.startLoc);let t=this.parseExpression();if(!this.match(140))throw this.raise(v.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.optionFlags&256&&(t.tokens=this.tokens),t}parseExpression(t,r){return t?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(t){let r=this.state.startLoc,i=this.parseMaybeAssign(t);if(this.match(12)){let s=this.startNodeAt(r);for(s.expressions=[i];this.eat(12);)s.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(t,r){return this.disallowInAnd(()=>this.parseMaybeAssign(t,r))}parseMaybeAssignAllowIn(t,r){return this.allowInAnd(()=>this.parseMaybeAssign(t,r))}setOptionalParametersError(t){t.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(t,r){let i=this.state.startLoc,s=this.isContextual(108);if(s&&this.prodParam.hasYield){this.next();let l=this.parseYield(i);return r&&(l=r.call(this,l,i)),l}let n;t?n=!1:(t=new Wi,n=!0);let{type:a}=this.state;(a===10||Ue(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(t);if(r&&(o=r.call(this,o,i)),gU(this.state.type)){let l=this.startNodeAt(i),u=this.state.value;if(l.operator=u,this.match(29)){this.toAssignable(o,!0),l.left=o;let f=i.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=f&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=f&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=f&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null),t.voidPatternLoc!=null&&t.voidPatternLoc.index>=f&&(t.voidPatternLoc=null)}else l.left=o;return this.next(),l.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(l,"AssignmentExpression"),void 0,void 0,void 0,void 0,u==="||="||u==="&&="||u==="??="),l}else n&&this.checkExpressionErrors(t,!0);if(s){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?Bs(l):Bs(l)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(v.YieldNotInGeneratorFunction,i),this.parseYield(i)}return o}parseMaybeConditional(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprOps(t);return this.shouldExitDescending(s,i)?s:this.parseConditional(s,r,t)}parseConditional(t,r,i){if(this.eat(17)){let s=this.startNodeAt(r);return s.test=t,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(s,i)?s:this.parseExprOp(s,r,-1)}parseExprOp(t,r,i){if(this.isPrivateName(t)){let n=this.getPrivateNameSV(t);(i>=xa(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(v.PrivateInExpectedIn,t,{identifierName:n}),this.classScope.usePrivateName(n,t.loc.start)}let s=this.state.type;if(xU(s)&&(this.prodParam.hasIn||!this.match(58))){let n=xa(s);if(n>i){if(s===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,r)}let a=this.startNodeAt(r);a.left=t,a.operator=this.state.value;let o=s===41||s===42,l=s===40;if(l&&(n=xa(42)),this.next(),s===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(v.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(s,n);let u=this.finishNode(a,o||l?"LogicalExpression":"BinaryExpression"),f=this.state.type;if(l&&(f===41||f===42)||o&&f===40)throw this.raise(v.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(u,r,i)}}return t}parseExprOpRightExpr(t,r){let i=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(v.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,r),i)});default:return this.parseExprOpBaseRightExpr(t,r)}}parseExprOpBaseRightExpr(t,r){let i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),i,vU(t)?r-1:r)}parseHackPipeBody(){var t;let{startLoc:r}=this.state,i=this.parseMaybeAssign();return nU.has(i.type)&&!((t=i.extra)!=null&&t.parenthesized)&&this.raise(v.PipeUnparenthesizedBody,r,{type:i.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(v.PipeTopicUnused,r),i}checkExponentialAfterUnary(t){this.match(57)&&this.raise(v.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,r){let i=this.state.startLoc,s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();let l=this.parseAwait(i);return r||this.checkExponentialAfterUnary(l),l}let n=this.match(34),a=this.startNode();if(EU(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let l=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&l){let u=a.argument;u.type==="Identifier"?this.raise(v.StrictDelete,a):this.hasPropertyAsPrivateName(u)&&this.raise(v.DeletePrivateField,a)}if(!n)return r||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}let o=this.parseUpdate(a,n,t);if(s){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?Bs(l):Bs(l)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(v.AwaitNotInAsyncContext,i),this.parseAwait(i)}return o}parseUpdate(t,r,i){if(r){let a=t;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),t}let s=this.state.startLoc,n=this.parseExprSubscripts(i);if(this.checkExpressionErrors(i,!1))return n;for(;bU(this.state.type)&&!this.canInsertSemicolon();){let a=this.startNodeAt(s);a.operator=this.state.value,a.prefix=!1,a.argument=n,this.next(),this.checkLVal(n,n=this.finishNode(a,"UpdateExpression"))}return n}parseExprSubscripts(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprAtom(t);return this.shouldExitDescending(s,i)?s:this.parseSubscripts(s,r)}parseSubscripts(t,r,i){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,r,i,s),s.maybeAsyncArrow=!1;while(!s.stop);return t}parseSubscript(t,r,i,s){let{type:n}=this.state;if(!i&&n===15)return this.parseBind(t,r,s);if(Pa(n))return this.parseTaggedTemplateExpression(t,r,s);let a=!1;if(n===18){if(i&&(this.raise(v.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(t,s);s.optionalChainMember=a=!0,this.next()}if(!i&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,r,s,a);{let o=this.eat(0);return o||a||this.eat(16)?this.parseMember(t,r,s,o,a):this.stopParseSubscript(t,s)}}stopParseSubscript(t,r){return r.stop=!0,t}parseMember(t,r,i,s,n){let a=this.startNodeAt(r);return a.object=t,a.computed=s,s?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?(t.type==="Super"&&this.raise(v.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),i.optionalChainMember?(a.optional=n,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(t,r,i){let s=this.startNodeAt(r);s.object=t,this.next();let n=this.match(83),a=this.parseNoCallExpr();if(a.type==="Super"||n&&a.type==="ImportExpression"||a.type==="Import")throw this.raise(v.UnsupportedBindRHS,a);return s.callee=a,i.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),r,!1)}parseCoverCallAndAsyncArrowHead(t,r,i,s){let n=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(r);o.callee=t;let{maybeAsyncArrow:l,optionalChainMember:u}=i;l&&(this.expressionScope.enter(ZU()),a=new Wi),u&&(o.optional=s),s?o.arguments=this.parseCallExpressionArguments():o.arguments=this.parseCallExpressionArguments(t.type!=="Super",o,a);let f=this.finishCallExpression(o,u);return l&&this.shouldParseAsyncArrow()&&!s?(i.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),f=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),f)):(l&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(f)),this.state.maybeInArrowParameters=n,f}toReferencedArguments(t,r){this.toReferencedListDeep(t.arguments,r)}parseTaggedTemplateExpression(t,r,i){let s=this.startNodeAt(r);return s.tag=t,s.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(v.OptionalChainingNoTemplate,r),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.offsetToSourcePos(t.start)===this.state.potentialArrowAt}finishCallExpression(t,r){if(t.callee.type==="Import")if(t.arguments.length===0||t.arguments.length>2)this.raise(v.ImportCallArity,t);else for(let i of t.arguments)i.type==="SpreadElement"&&this.raise(v.ImportCallSpreadArgument,i);return this.finishNode(t,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,r,i){let s=[],n=!0,a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(n)n=!1;else if(this.expect(12),this.match(11)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}s.push(this.parseExprListItem(11,!1,i,t))}return this.state.inFSharpPipelineDirectBody=a,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,r){var i;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(t,r.arguments,!0,(i=r.extra)==null?void 0:i.trailingCommaLoc),r.innerComments&&Us(t,r.innerComments),r.callee.trailingComments&&Us(t,r.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let r,i=null,{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(r):this.match(10)?this.optionFlags&512?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(v.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134: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 n=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(n)}case 0:return this.parseArrayLike(3,!1,t);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:i=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(i,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let n=r.callee=this.parseNoCallExpr();if(n.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(v.UnsupportedBind,n)}case 139:return this.raise(v.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.parseTopicReference(n);throw this.unexpected()}case 47:{let n=this.input.codePointAt(this.nextTokenStart());throw Tr(n)||n===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(s===137)return this.parseDecimalLiteral(this.state.value);if(s===2||s===1)return this.parseArrayLike(this.state.type===2?4:3,!0);if(s===6||s===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0);if(Ue(s)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let n=this.state.potentialArrowAt===this.state.start,a=this.state.containsEsc,o=this.parseIdentifier();if(!a&&o.name==="async"&&!this.canInsertSemicolon()){let{type:l}=this.state;if(l===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(Ue(l))return n&&this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(l===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return n&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(t,r){let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.state.type=t,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=kt(this.state.endLoc,-1),this.parseTopicReference(i);throw this.unexpected()}parseTopicReference(t){let r=this.startNode(),i=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(r,i,t,s)}finishTopicReference(t,r,i,s){if(this.testTopicReferenceConfiguration(i,r,s))return i==="hack"?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(v.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(t,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(v.PrimaryTopicNotAllowed,r),this.registerTopicReference(),this.finishNode(t,"PipelinePrimaryTopicReference"));throw this.raise(v.PipeTopicUnconfiguredToken,r,{token:Gr(s)})}testTopicReferenceConfiguration(t,r,i){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Gr(i)}]);case"smart":return i===27;default:throw this.raise(v.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(ba(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(v.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,r,!0)}parseDo(t,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),t.async=r,this.next();let i=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=i,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.optionFlags&16||this.raise(v.SuperNotAllowed,t):this.scope.allowSuper||this.optionFlags&16||this.raise(v.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(v.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),r=this.startNodeAt(kt(this.state.startLoc,1)),i=this.state.value;return this.next(),t.id=this.createIdentifier(r,i),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,r,"sent")}return this.parseFunction(t)}parseMetaProperty(t,r,i){t.meta=r;let s=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==i||s)&&this.raise(v.UnsupportedMetaProperty,t.property,{target:r.name,onlyValidPropertyName:i}),this.finishNode(t,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(t){if(this.next(),this.isContextual(105)||this.isContextual(97)){let r=this.isContextual(105);return this.expectPlugin(r?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),t.phase=r?"source":"defer",this.parseImportCall(t)}else{let r=this.createIdentifierAt(this.startNodeAtNode(t),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(v.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,r,"meta")}}parseLiteralAtNode(t,r,i){return this.addExtra(i,"rawValue",t),this.addExtra(i,"raw",this.input.slice(this.offsetToSourcePos(i.start),this.state.end)),i.value=t,this.next(),this.finishNode(i,r)}parseLiteral(t,r){let i=this.startNode();return this.parseLiteralAtNode(t,r,i)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let r=this.startNode();return this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.pattern=t.pattern,r.flags=t.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(t){let r=this.startNode();return r.value=t,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let r=this.state.startLoc,i;this.next(),this.expressionScope.enter(QU());let s=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],l=new Wi,u=!0,f,h;for(;!this.match(11);){if(u)u=!1;else if(this.expect(12,l.optionalParametersLoc===null?null:l.optionalParametersLoc),this.match(11)){h=this.state.startLoc;break}if(this.match(21)){let P=this.state.startLoc;if(f=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),P)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowInOrVoidPattern(11,l,this.parseParenItem))}let x=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=n;let A=this.startNodeAt(r);return t&&this.shouldParseArrow(o)&&(A=this.parseArrow(A))?(this.checkDestructuringPrivate(l),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(A,o,!1),A):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),h&&this.unexpected(h),f&&this.unexpected(f),this.checkExpressionErrors(l,!0),this.toReferencedListDeep(o,!0),o.length>1?(i=this.startNodeAt(a),i.expressions=o,this.finishNode(i,"SequenceExpression"),this.resetEndLocation(i,x)):i=o[0],this.wrapParenthesis(r,i))}wrapParenthesis(t,r){if(!(this.optionFlags&1024))return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),this.takeSurroundingComments(r,t.index,this.state.lastTokEndLoc.index),r;let i=this.startNodeAt(t);return i.expression=r,this.finishNode(i,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,r){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let i=this.parseMetaProperty(t,r,"target");return this.scope.allowNewTarget||this.raise(v.UnexpectedNewTarget,i),i}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),t.arguments=r}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let r=this.match(83),i=this.parseNoCallExpr();t.callee=i,(r&&i.type==="ImportExpression"||i.type==="Import")&&this.raise(v.ImportCallNotNewExpression,i),i.type==="Super"&&this.raise(v.SuperCallNotNewExpression,i)}parseTemplateElement(t){let{start:r,startLoc:i,end:s,value:n}=this.state,a=r+1,o=this.startNodeAt(kt(i,1));n===null&&(t||this.raise(v.InvalidEscapeSequenceTemplate,kt(this.state.firstInvalidTemplateEscapePos,1)));let l=this.match(24),u=l?-1:-2,f=s+u;o.value={raw:this.input.slice(a,f).replace(/\r\n?/g,`
31
+ `),cooked:n===null?null:n.slice(1,u)},o.tail=l,this.next();let h=this.finishNode(o,"TemplateElement");return this.resetEndLocation(h,kt(this.state.lastTokEndLoc,u)),h}parseTemplate(t){let r=this.startNode(),i=this.parseTemplateElement(t),s=[i],n=[];for(;!i.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(i=this.parseTemplateElement(t));return r.expressions=n,r.quasis=s,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,r,i,s){i&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=!1,o=!0,l=this.startNode();for(l.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(l);break}let f;r?f=this.parseBindingProperty():(f=this.parsePropertyDefinition(s),a=this.checkProto(f,i,a,s)),i&&!this.isObjectProperty(f)&&f.type!=="SpreadElement"&&this.raise(v.InvalidRecordProperty,f),f.shorthand&&this.addExtra(f,"shorthand",!0),l.properties.push(f)}this.next(),this.state.inFSharpPipelineDirectBody=n;let u="ObjectExpression";return r?u="ObjectPattern":i&&(u="RecordExpression"),this.finishNode(l,u)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(v.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let i=this.startNode(),s=!1,n=!1,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(i.decorators=r,r=[]),i.method=!1,t&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(i);let l=this.state.containsEsc;if(this.parsePropertyName(i,t),!o&&!l&&this.maybeAsyncOrAccessorProp(i)){let{key:u}=i,f=u.name;f==="async"&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(u),o=this.eat(55),this.parsePropertyName(i)),(f==="get"||f==="set")&&(n=!0,this.resetPreviousNodeTrailingComments(u),i.kind=f,this.match(55)&&(o=!0,this.raise(v.AccessorIsGenerator,this.state.curPosition(),{kind:f}),this.next()),this.parsePropertyName(i))}return this.parseObjPropValue(i,a,o,s,!1,n,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var r;let i=this.getGetterSetterExpectedParamCount(t),s=this.getObjectOrClassMethodParams(t);s.length!==i&&this.raise(t.kind==="get"?v.BadGetterArity:v.BadSetterArity,t),t.kind==="set"&&((r=s[s.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(v.BadSetterRestParameter,t)}parseObjectMethod(t,r,i,s,n){if(n){let a=this.parseMethod(t,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(i||r||this.match(10))return s&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,r,i,!1,!1,"ObjectMethod")}parseObjectProperty(t,r,i,s){if(t.shorthand=!1,this.eat(14))return t.value=i?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,s),this.finishObjectProperty(t);if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),i)t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key));else if(this.match(29)){let n=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=n):this.raise(v.InvalidCoverInitializedName,n),t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key))}else t.value=this.cloneIdentifier(t.key);return t.shorthand=!0,this.finishObjectProperty(t)}}finishObjectProperty(t){return this.finishNode(t,"ObjectProperty")}parseObjPropValue(t,r,i,s,n,a,o){let l=this.parseObjectMethod(t,i,s,n,a)||this.parseObjectProperty(t,r,n,o);return l||this.unexpected(),l}parsePropertyName(t,r){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:i,value:s}=this.state,n;if(or(i))n=this.parseIdentifier(!0);else switch(i){case 135:n=this.parseNumericLiteral(s);break;case 134:n=this.parseStringLiteral(s);break;case 136:n=this.parseBigIntLiteral(s);break;case 139:{let a=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=a):this.raise(v.UnexpectedPrivateField,a),n=this.parsePrivateName();break}default:if(i===137){n=this.parseDecimalLiteral(s);break}this.unexpected()}t.key=n,i!==139&&(t.computed=!1)}}initFunction(t,r){t.id=null,t.generator=!1,t.async=r}parseMethod(t,r,i,s,n,a,o=!1){this.initFunction(t,i),t.generator=r,this.scope.enter(530|(o?576:0)|(n?32:0)),this.prodParam.enter(ba(i,t.generator)),this.parseFunctionParams(t,s);let l=this.parseFunctionBodyAndFinish(t,a,!0);return this.prodParam.exit(),this.scope.exit(),l}parseArrayLike(t,r,i){r&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=this.startNode();return this.next(),n.elements=this.parseExprList(t,!r,i,n),this.state.inFSharpPipelineDirectBody=s,this.finishNode(n,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,r,i,s){this.scope.enter(518);let n=ba(i,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(t,i);let a=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,r,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,r,i){this.toAssignableList(r,i,!1),t.params=r}parseFunctionBodyAndFinish(t,r,i=!1){return this.parseFunctionBody(t,!1,i),this.finishNode(t,r)}parseFunctionBody(t,r,i=!1){let s=r&&!this.match(5);if(this.expressionScope.enter(xT()),s)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,r,!1);else{let n=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,o=>{let l=!this.isSimpleParamList(t.params);o&&l&&this.raise(v.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);let u=!n&&this.state.strict;this.checkParams(t,!this.state.strict&&!r&&!i&&!l,r,u),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,u)}),this.prodParam.exit(),this.state.labels=a}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let r=0,i=t.length;r<i;r++)if(!this.isSimpleParameter(t[r]))return!1;return!0}checkParams(t,r,i,s=!0){let n=!r&&new Set,a={type:"FormalParameters"};for(let o of t.params)this.checkLVal(o,a,5,n,s)}parseExprList(t,r,i,s){let n=[],a=!0;for(;!this.eat(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}n.push(this.parseExprListItem(t,r,i))}return n}parseExprListItem(t,r,i,s){let n;if(this.match(12))r||this.raise(v.UnexpectedToken,this.state.curPosition(),{unexpected:","}),n=null;else if(this.match(21)){let a=this.state.startLoc;n=this.parseParenItem(this.parseSpread(i),a)}else if(this.match(17)){this.expectPlugin("partialApplication"),s||this.raise(v.UnexpectedArgumentPlaceholder,this.state.startLoc);let a=this.startNode();this.next(),n=this.finishNode(a,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowInOrVoidPattern(t,i,this.parseParenItem);return n}parseIdentifier(t){let r=this.startNode(),i=this.parseIdentifierName(t);return this.createIdentifier(r,i)}createIdentifier(t,r){return t.name=r,t.loc.identifierName=r,this.finishNode(t,"Identifier")}createIdentifierAt(t,r,i){return t.name=r,t.loc.identifierName=r,this.finishNodeAt(t,"Identifier",i)}parseIdentifierName(t){let r,{startLoc:i,type:s}=this.state;or(s)?r=this.state.value:this.unexpected();let n=yU(s);return t?n&&this.replaceToken(132):this.checkReservedWord(r,i,n,!1),this.next(),r}checkReservedWord(t,r,i,s){if(t.length>10||!MU(t))return;if(i&&kU(t)){this.raise(v.UnexpectedKeyword,r,{keyword:t});return}if((this.state.strict?s?yT:hT:dT)(t,this.inModule)){this.raise(v.UnexpectedReservedWord,r,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(v.YieldBindingIdentifier,r);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(v.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(v.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(v.ArgumentsInClass,r);return}}recordAwaitIfAllowed(){let t=this.prodParam.hasAwait;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){let r=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(v.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(v.ObsoleteAwaitStar,r),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||Pa(t)||t===102&&!this.state.containsEsc||t===138||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(t){let r=this.startNodeAt(t);this.expressionScope.recordParameterInitializerError(v.YieldInParameter,r);let i=!1,s=null;if(!this.hasPrecedingLineBreak())switch(i=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!i)break;default:s=this.parseMaybeAssign()}return r.delegate=i,r.argument=s,this.finishNode(r,"YieldExpression")}parseImportCall(t){if(this.next(),t.source=this.parseMaybeAssignAllowIn(),t.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(t.source);else if(t.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(t.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(v.ImportCallArity,t)}}return this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(v.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(t,r){if(this.isSimpleReference(t)){let i=this.startNodeAt(r);return i.callee=t,this.finishNode(i,"PipelineBareFunction")}else{let i=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),i.expression=t,this.finishNode(i,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(v.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(v.PipelineTopicUnused,t)}withTopicBindingContext(t){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}else return t()}withSoloAwaitPermittingContext(t){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=r}}allowInAnd(t){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return t()}finally{this.prodParam.exit()}}return t()}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(t){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,t);return this.state.inFSharpPipelineDirectBody=i,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let i=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(r,8,"module")}finally{i()}return this.finishNode(t,"ModuleExpression")}parseVoidPattern(t){this.expectPlugin("discardBinding");let r=this.startNode();return t!=null&&(t.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(r,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(t,r,i){if(r!=null&&this.match(88)){let s=this.lookaheadCharCode();if(s===44||s===(t===3?93:t===8?125:41)||s===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(r))}return this.parseMaybeAssignAllowIn(r,i)}parsePropertyNamePrefixOperator(t){}},vc={kind:1},pK={kind:2},fK=/[\uD800-\uDFFF]/u,Cc=/in(?:stanceof)?/y;function dK(e,t,r){for(let i=0;i<e.length;i++){let s=e[i],{type:n}=s;if(typeof n=="number"){if(n===139){let{loc:a,start:o,value:l,end:u}=s,f=o+1,h=kt(a.start,1);e.splice(i,1,new yr({type:_r(27),value:"#",start:o,end:f,startLoc:a.start,endLoc:h}),new yr({type:_r(132),value:l,start:f,end:u,startLoc:h,endLoc:a.end})),i++;continue}if(Pa(n)){let{loc:a,start:o,value:l,end:u}=s,f=o+1,h=kt(a.start,1),x;t.charCodeAt(o-r)===96?x=new yr({type:_r(22),value:"`",start:o,end:f,startLoc:a.start,endLoc:h}):x=new yr({type:_r(8),value:"}",start:o,end:f,startLoc:a.start,endLoc:h});let A,P,w,b;n===24?(P=u-1,w=kt(a.end,-1),A=l===null?null:l.slice(1,-1),b=new yr({type:_r(22),value:"`",start:P,end:u,startLoc:w,endLoc:a.end})):(P=u-2,w=kt(a.end,-2),A=l===null?null:l.slice(1,-2),b=new yr({type:_r(23),value:"${",start:P,end:u,startLoc:w,endLoc:a.end})),e.splice(i,1,x,new yr({type:_r(20),value:A,start:f,end:P,startLoc:h,endLoc:w}),b),i+=2;continue}s.type=_r(n)}}return e}var Yc=class extends Xc{parseTopLevel(t,r){return t.program=this.parseProgram(r,140,this.options.sourceType==="module"?"module":"script"),t.comments=this.comments,this.optionFlags&256&&(t.tokens=dK(this.tokens,this.input,this.startIndex)),this.finishNode(t,"File")}parseProgram(t,r,i){if(t.sourceType=i,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,r),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[n,a]of Array.from(this.scope.undefinedExports))this.raise(v.ModuleExportUndefined,a,{localName:n});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let s;return r===140?s=this.finishNode(t,"Program"):s=this.finishNodeAt(t,"Program",kt(this.state.startLoc,-1)),s}stmtToDirective(t){let r=this.castNodeTo(t,"Directive"),i=this.castNodeTo(t.expression,"DirectiveLiteral"),s=i.value,n=this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end)),a=i.value=n.slice(1,-1);return this.addExtra(i,"raw",n),this.addExtra(i,"rawValue",a),this.addExtra(i,"expressionValue",s),r.value=i,delete t.expression,r}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);if(this.isUnparsedContextual(t,"of")){let i=this.lookaheadCharCodeSince(t+2);if(i!==61&&i!==58&&i!==59)return!1}return!!(this.chStartsBindingIdentifier(r,t)||this.isUnparsedContextual(t,"void"))}nextTokenIsIdentifierOnSameLine(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifier(r,t)}isAwaitUsing(){if(!this.isContextual(96))return!1;let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let r=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(r,t))return!0}return!1}chStartsBindingIdentifier(t,r){if(Tr(t)){if(Cc.lastIndex=r,Cc.test(this.input)){let i=this.codePointAtPos(Cc.lastIndex);if(!Ei(i)&&i!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),r=this.codePointAtPos(t);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,t)}hasInLineFollowingBindingIdentifierOrBrace(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return r===123||this.chStartsBindingIdentifier(r,t)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,t&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(t,r)}parseStatementContent(t,r){let i=this.state.type,s=this.startNode(),n=!!(t&2),a=!!(t&4),o=t&1;switch(i){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?v.StrictFunction:this.options.annexB?v.SloppyFunctionAnnexB:v.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(s,!1,!n&&a);case 80:return n||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,s),!0);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(this.isAwaitUsing())return this.allowsUsing()?n?this.recordAwaitIfAllowed()||this.raise(v.AwaitUsingNotInAsyncContext,s):this.raise(v.UnexpectedLexicalDeclaration,s):this.raise(v.UnexpectedUsingDeclaration,s),this.next(),this.parseVarStatement(s,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?n||this.raise(v.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(v.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;let f=this.nextTokenStart(),h=this.codePointAtPos(f);if(h!==91&&(!n&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(h,f)&&h!==123))break}case 75:n||this.raise(v.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let f=this.state.value;return this.parseVarStatement(s,f)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{let f=this.lookaheadCharCode();if(f===40||f===46)break}case 82:{!(this.optionFlags&8)&&!o&&this.raise(v.UnexpectedImportExport,this.state.startLoc),this.next();let f;return i===83?f=this.parseImport(s):f=this.parseExport(s,r),this.assertModuleNodeAllowed(f),f}default:if(this.isAsyncFunction())return n||this.raise(v.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(s,!0,!n&&a)}let l=this.state.value,u=this.parseExpression();return Ue(i)&&u.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(s,l,u,t):this.parseExpressionStatement(s,u,r)}assertModuleNodeAllowed(t){!(this.optionFlags&8)&&!this.inModule&&this.raise(v.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,r,i){if(t){var s;(s=r.decorators)!=null&&s.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(v.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...t)):r.decorators=t,this.resetStartLocationFromNode(r,t[0]),i&&this.resetStartLocationFromNode(i,r)}return r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(v.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(v.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,i;if(this.match(10)){let s=this.state.startLoc;this.next(),i=this.parseExpression(),this.expect(11),i=this.wrapParenthesis(s,i);let n=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(i,s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==i&&this.raise(v.DecoratorArgumentsOutsideParentheses,n)}else{for(i=this.parseIdentifier(!1);this.eat(16);){let s=this.startNodeAt(r);s.object=i,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,i=this.finishNode(s,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(i,r)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t,r){if(this.eat(10)){let i=this.startNodeAt(r);return i.callee=t,i.arguments=this.parseCallExpressionArguments(),this.toReferencedList(i.arguments),this.finishNode(i,"CallExpression")}return t}parseBreakContinueStatement(t,r){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,r),this.finishNode(t,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,r){let i;for(i=0;i<this.state.labels.length;++i){let s=this.state.labels[i];if((t.label==null||s.name===t.label.name)&&(s.kind!=null&&(r||s.kind===1)||t.label&&r))break}if(i===this.state.labels.length){let s=r?"BreakStatement":"ContinueStatement";this.raise(v.IllegalBreakContinue,t,{type:s})}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let t=this.parseExpression();return this.expect(11),t}parseDoWhileStatement(t){return this.next(),this.state.labels.push(vc),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(vc);let r=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(r=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(t,null);let i=this.isContextual(100);{let l=this.isAwaitUsing(),u=l||this.isForUsing(),f=i&&this.hasFollowingBindingAtom()||u;if(this.match(74)||this.match(75)||f){let h=this.startNode(),x;l?(x="await using",this.recordAwaitIfAllowed()||this.raise(v.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):x=this.state.value,this.next(),this.parseVar(h,!0,x);let A=this.finishNode(h,"VariableDeclaration"),P=this.match(58);return P&&u&&this.raise(v.ForInUsing,A),(P||this.isContextual(102))&&A.declarations.length===1?this.parseForIn(t,A,r):(r!==null&&this.unexpected(r),this.parseFor(t,A))}}let s=this.isContextual(95),n=new Wi,a=this.parseExpression(!0,n),o=this.isContextual(102);if(o&&(i&&this.raise(v.ForOfLet,a),r===null&&s&&a.type==="Identifier"&&this.raise(v.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(n),this.toAssignable(a,!0);let l=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{type:l}),this.parseForIn(t,a,r)}else this.checkExpressionErrors(n,!0);return r!==null&&this.unexpected(r),this.parseFor(t,a)}parseFunctionStatement(t,r,i){return this.next(),this.parseFunction(t,1|(i?2:0)|(r?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||this.raise(v.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let r=t.cases=[];this.expect(5),this.state.labels.push(pK),this.scope.enter(256);let i;for(let s;!this.match(8);)if(this.match(61)||this.match(65)){let n=this.match(61);i&&this.finishNode(i,"SwitchCase"),r.push(i=this.startNode()),i.consequent=[],this.next(),n?i.test=this.parseExpression():(s&&this.raise(v.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),s=!0,i.test=null),this.expect(14)}else i?i.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),i&&this.finishNode(i,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(v.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(r,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(v.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,r,i=!1){return this.next(),this.parseVar(t,!1,r,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(vc),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(v.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,r,i,s){for(let a of this.state.labels)a.name===r&&this.raise(v.LabelRedeclaration,i,{labelName:r});let n=SU(this.state.type)?1:this.match(71)?2:null;for(let a=this.state.labels.length-1;a>=0;a--){let o=this.state.labels[a];if(o.statementStart===t.start)o.statementStart=this.sourceToOffsetPos(this.state.start),o.kind=n;else break}return this.state.labels.push({name:r,kind:n,statementStart:this.sourceToOffsetPos(this.state.start)}),t.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,r,i){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,r=!0,i){let s=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(s,t,!1,8,i),r&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,r,i,s,n){let a=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(a,r?o:void 0,i,s,n)}parseBlockOrModuleBlockBody(t,r,i,s,n){let a=this.state.strict,o=!1,l=!1;for(;!this.match(s);){let u=i?this.parseModuleItem():this.parseStatementListItem();if(r&&!l){if(this.isValidDirective(u)){let f=this.stmtToDirective(u);r.push(f),!o&&f.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}l=!0,this.state.strictErrors.clear()}t.push(u)}n?.call(this,o),a||this.setStrict(!1),this.next()}parseFor(t,r){return t.init=r,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,r,i){let s=this.match(58);return this.next(),s?i!==null&&this.unexpected(i):t.await=i!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!s||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(v.ForInOfLoopInitializer,r,{type:s?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(v.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),t.left=r,t.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,s?"ForInStatement":"ForOfStatement")}parseVar(t,r,i,s=!1){let n=t.declarations=[];for(t.kind=i;;){let a=this.startNode();if(this.parseVarId(a,i),a.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,a.init===null&&!s&&(a.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(v.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(i==="const"||i==="using"||i==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(v.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:i})),n.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,r){let i=this.parseBindingAtom();r==="using"||r==="await using"?(i.type==="ArrayPattern"||i.type==="ObjectPattern")&&this.raise(v.UsingDeclarationHasBindingPattern,i.loc.start):i.type==="VoidPattern"&&this.raise(v.UnexpectedVoidPattern,i.loc.start),this.checkLVal(i,{type:"VariableDeclarator"},r==="var"?5:8201),t.id=i}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,r=0){let i=r&2,s=!!(r&1),n=s&&!(r&4),a=!!(r&8);this.initFunction(t,a),this.match(55)&&(i&&this.raise(v.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),s&&(t.id=this.parseFunctionId(n));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(ba(a,t.generator)),s||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!i&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||Ue(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(GU()),t.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,r,i){this.next();let s=this.state.strict;return this.state.strict=!0,this.parseClassId(t,r,i),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,s),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,r){this.classScope.enter();let i={hadConstructor:!1,hadSuperClass:t},s=[],n=this.startNode();if(n.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(v.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){s.push(this.parseDecorator());continue}let a=this.startNode();s.length&&(a.decorators=s,this.resetStartLocationFromNode(a,s[0]),s=[]),this.parseClassMember(n,a,i),a.kind==="constructor"&&a.decorators&&a.decorators.length>0&&this.raise(v.DecoratorConstructor,a)}}),this.state.strict=r,this.next(),s.length)throw this.raise(v.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(t,r){let i=this.parseIdentifier(!0);if(this.isClassMethod()){let s=r;return s.kind="method",s.computed=!1,s.key=i,s.static=!1,this.pushClassMethod(t,s,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let s=r;return s.computed=!1,s.key=i,s.static=!1,t.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(i),!1}parseClassMember(t,r,i){let s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(t,r))return;if(this.eat(5)){this.parseClassStaticBlock(t,r);return}}this.parseClassMemberWithIsStatic(t,r,i,s)}parseClassMemberWithIsStatic(t,r,i,s){let n=r,a=r,o=r,l=r,u=r,f=n,h=n;if(r.static=s,this.parsePropertyNamePrefixOperator(r),this.eat(55)){f.kind="method";let C=this.match(139);if(this.parseClassElementName(f),this.parsePostMemberNameModifiers(f),C){this.pushClassPrivateMethod(t,a,!0,!1);return}this.isNonstaticConstructor(n)&&this.raise(v.ConstructorIsGenerator,n.key),this.pushClassMethod(t,n,!0,!1,!1,!1);return}let x=!this.state.containsEsc&&Ue(this.state.type),A=this.parseClassElementName(r),P=x?A.name:null,w=this.isPrivateName(A),b=this.state.startLoc;if(this.parsePostMemberNameModifiers(h),this.isClassMethod()){if(f.kind="method",w){this.pushClassPrivateMethod(t,a,!1,!1);return}let C=this.isNonstaticConstructor(n),D=!1;C&&(n.kind="constructor",i.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(v.DuplicateConstructor,A),C&&this.hasPlugin("typescript")&&r.override&&this.raise(v.OverrideOnConstructor,A),i.hadConstructor=!0,D=i.hadSuperClass),this.pushClassMethod(t,n,!1,!1,C,D)}else if(this.isClassProperty())w?this.pushClassPrivateProperty(t,l):this.pushClassProperty(t,o);else if(P==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(A);let C=this.eat(55);h.optional&&this.unexpected(b),f.kind="method";let D=this.match(139);this.parseClassElementName(f),this.parsePostMemberNameModifiers(h),D?this.pushClassPrivateMethod(t,a,C,!0):(this.isNonstaticConstructor(n)&&this.raise(v.ConstructorIsAsync,n.key),this.pushClassMethod(t,n,C,!0,!1,!1))}else if((P==="get"||P==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(A),f.kind=P;let C=this.match(139);this.parseClassElementName(n),C?this.pushClassPrivateMethod(t,a,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(v.ConstructorIsAccessor,n.key),this.pushClassMethod(t,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else if(P==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(A);let C=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(t,u,C)}else this.isLineTerminator()?w?this.pushClassPrivateProperty(t,l):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:r,value:i}=this.state;if((r===132||r===134)&&t.static&&i==="prototype"&&this.raise(v.StaticPrototype,this.state.startLoc),r===139){i==="constructor"&&this.raise(v.ConstructorClassPrivateField,this.state.startLoc);let s=this.parsePrivateName();return t.key=s,s}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,r){var i;this.scope.enter(720);let s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let n=r.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,t.body.push(this.finishNode(r,"StaticBlock")),(i=r.decorators)!=null&&i.length&&this.raise(v.DecoratorStaticBlock,r)}pushClassProperty(t,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(v.ConstructorClassField,r.key),t.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(t,r){let i=this.parseClassPrivateProperty(r);t.body.push(i),this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassAccessorProperty(t,r,i){!i&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(v.ConstructorClassField,r.key);let s=this.parseClassAccessorProperty(r);t.body.push(s),i&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(t,r,i,s,n,a){t.body.push(this.parseMethod(r,i,s,n,a,"ClassMethod",!0))}pushClassPrivateMethod(t,r,i,s){let n=this.parseMethod(r,i,s,!1,!1,"ClassPrivateMethod",!0);t.body.push(n);let a=n.kind==="get"?n.static?6:2:n.kind==="set"?n.static?5:1:0;this.declareClassPrivateMethodInScope(n,a)}declareClassPrivateMethodInScope(t,r){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),r,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(592),this.expressionScope.enter(xT()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,r,i,s=8331){if(Ue(this.state.type))t.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(t.id,s);else if(i||!r)t.id=null;else throw this.raise(v.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,r){let i=this.parseMaybeImportPhase(t,!0),s=this.maybeParseExportDefaultSpecifier(t,i),n=!s||this.eat(12),a=n&&this.eatExportStar(t),o=a&&this.maybeParseExportNamespaceSpecifier(t),l=n&&(!o||this.eat(12)),u=s||a;if(a&&!o){if(s&&this.unexpected(),r)throw this.raise(v.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.sawUnambiguousESM=!0,this.finishNode(t,"ExportAllDeclaration")}let f=this.maybeParseExportNamedSpecifiers(t);s&&n&&!a&&!f&&this.unexpected(null,5),o&&l&&this.unexpected(null,98);let h;if(u||f){if(h=!1,r)throw this.raise(v.UnsupportedDecoratorExport,t);this.parseExportFrom(t,u)}else h=this.maybeParseExportDeclaration(t);if(u||f||h){var x;let A=t;if(this.checkExport(A,!0,!1,!!A.source),((x=A.declaration)==null?void 0:x.type)==="ClassDeclaration")this.maybeTakeDecorators(r,A.declaration,A);else if(r)throw this.raise(v.UnsupportedDecoratorExport,t);return this.sawUnambiguousESM=!0,this.finishNode(A,"ExportNamedDeclaration")}if(this.eat(65)){let A=t,P=this.parseExportDefaultExpression();if(A.declaration=P,P.type==="ClassDeclaration")this.maybeTakeDecorators(r,P,A);else if(r)throw this.raise(v.UnsupportedDecoratorExport,t);return this.checkExport(A,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(A,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r?.loc.start);let i=r||this.parseIdentifier(!0),s=this.startNodeAtNode(i);return s.exported=i,t.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var r,i;(i=(r=t).specifiers)!=null||(r.specifiers=[]);let s=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),s.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(s,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){let r=t;r.specifiers||(r.specifiers=[]);let i=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(i)),r.source=null,this.hasPlugin("importAssertions")?r.assertions=[]:r.attributes=[],r.declaration=null,!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(v.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(v.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(Ue(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){let s=this.nextTokenStart(),n=this.input.charCodeAt(s);if(n===123||this.chStartsBindingIdentifier(n,s)&&!this.input.startsWith("from",s))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),i=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||Ue(this.state.type)&&i)return!0;if(this.match(65)&&i){let s=this.input.charCodeAt(this.nextTokenStartSince(r+4));return s===34||s===39}return!1}parseExportFrom(t,r){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(v.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(v.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(v.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,r,i,s){if(r){var n;if(i){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var a;let o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((a=o.extra)!=null&&a.parenthesized)&&this.raise(v.ExportDefaultFromAsIdentifier,o)}}else if((n=t.specifiers)!=null&&n.length)for(let o of t.specifiers){let{exported:l}=o,u=l.type==="Identifier"?l.name:l.value;if(this.checkDuplicateExports(o,u),!s&&o.local){let{local:f}=o;f.type!=="Identifier"?this.raise(v.ExportBindingIsString,o,{localName:f.value,exportName:u}):(this.checkReservedWord(f.name,f.loc.start,!0,!1),this.scope.checkLocalExport(f))}}else if(t.declaration){let o=t.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:l}=o;if(!l)throw new Error("Assertion failure");this.checkDuplicateExports(t,l.name)}else if(o.type==="VariableDeclaration")for(let l of o.declarations)this.checkDeclaration(l.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let r of t.properties)this.checkDeclaration(r);else if(t.type==="ArrayPattern")for(let r of t.elements)r&&this.checkDeclaration(r);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(v.DuplicateDefaultExport,t):this.raise(v.DuplicateExport,t,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(t){let r=[],i=!0;for(this.expect(5);!this.eat(8);){if(i)i=!1;else if(this.expect(12),this.eat(8))break;let s=this.isContextual(130),n=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(a,n,t,s))}return r}parseExportSpecifier(t,r,i,s){return this.eatContextual(93)?t.exported=this.parseModuleExportName():r?t.exported=this.cloneStringLiteral(t.local):t.exported||(t.exported=this.cloneIdentifier(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let t=this.parseStringLiteral(this.state.value),r=fK.exec(t.value);return r&&this.raise(v.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:r[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:r,value:i})=>i.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(t){let{specifiers:r}=t,i=r.length===1?r[0].type:null;if(t.phase==="source")i!=="ImportDefaultSpecifier"&&this.raise(v.SourcePhaseImportRequiresDefault,r[0].loc.start);else if(t.phase==="defer")i!=="ImportNamespaceSpecifier"&&this.raise(v.DeferImportRequiresNamespace,r[0].loc.start);else if(t.module){var s;i!=="ImportDefaultSpecifier"&&this.raise(v.ImportReflectionNotBinding,r[0].loc.start),((s=t.assertions)==null?void 0:s.length)>0&&this.raise(v.ImportReflectionHasAssertion,r[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:r}=t;if(r!=null){let i=r.find(s=>{let n;if(s.type==="ExportSpecifier"?n=s.local:s.type==="ImportSpecifier"&&(n=s.imported),n!==void 0)return n.type==="Identifier"?n.name!=="default":n.value!=="default"});i!==void 0&&this.raise(v.ImportJSONBindingNotDefault,i.loc.start)}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(t,r,i,s){r||(i==="module"?(this.expectPlugin("importReflection",s),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),i==="source"?(this.expectPlugin("sourcePhaseImports",s),t.phase="source"):i==="defer"?(this.expectPlugin("deferredImportEvaluation",s),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(t,r,null),null;let i=this.startNode(),s=this.parseIdentifierName(!0),{type:n}=this.state;return(or(n)?n!==98||this.lookaheadCharCode()===102:n!==12)?(this.applyImportPhase(t,r,s,i.loc.start),null):(this.applyImportPhase(t,r,null),this.createIdentifier(i,s))}isPrecedingIdImportPhase(t){let{type:r}=this.state;return Ue(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(t){return this.match(134)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,r){t.specifiers=[];let s=!this.maybeParseDefaultImportSpecifier(t,r)||this.eat(12),n=s&&this.maybeParseStarImportSpecifier(t);return s&&!n&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var r;return(r=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,r,i){r.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(r,i))}finishImportSpecifier(t,r,i=8201){return this.checkLVal(t.local,{type:r},i),this.finishNode(t,r)}parseImportAttributes(){this.expect(5);let t=[],r=new Set;do{if(this.match(8))break;let i=this.startNode(),s=this.state.value;if(r.has(s)&&this.raise(v.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s}),r.add(s),this.match(134)?i.key=this.parseStringLiteral(s):i.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(v.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],r=new Set;do{let i=this.startNode();if(i.key=this.parseIdentifier(!0),i.key.name!=="type"&&this.raise(v.ModuleAttributeDifferentFromType,i.key),r.has(i.key.name)&&this.raise(v.ModuleAttributesWithDuplicateKeys,i.key,{key:i.key.name}),r.add(i.key.name),this.expect(14),!this.match(134))throw this.raise(v.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let r;var i=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?(r=this.parseModuleAttributes(),this.addExtra(t,"deprecatedWithLegacySyntax",!0)):r=this.parseImportAttributes(),i=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")&&this.raise(v.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(t,"deprecatedAssertSyntax",!0),this.next(),r=this.parseImportAttributes()):r=[];!i&&this.hasPlugin("importAssertions")?t.assertions=r:t.attributes=r}maybeParseDefaultImportSpecifier(t,r){if(r){let i=this.startNodeAtNode(r);return i.local=r,t.specifiers.push(this.finishImportSpecifier(i,"ImportDefaultSpecifier")),!0}else if(or(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(v.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let i=this.startNode(),s=this.match(134),n=this.isContextual(130);i.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(i,s,t.importKind==="type"||t.importKind==="typeof",n,void 0);t.specifiers.push(a)}}parseImportSpecifier(t,r,i,s,n){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:a}=t;if(r)throw this.raise(v.ImportBindingIsString,t,{importName:a.value});this.checkReservedWord(a.name,t.loc.start,!0,!0),t.local||(t.local=this.cloneIdentifier(a))}return this.finishImportSpecifier(t,"ImportSpecifier",n)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},va=class extends Yc{constructor(t,r,i){let s=pU(t);super(s,r),this.options=s,this.initializeScopes(),this.plugins=i,this.filename=s.sourceFilename,this.startIndex=s.startIndex;let n=0;s.allowAwaitOutsideFunction&&(n|=1),s.allowReturnOutsideFunction&&(n|=2),s.allowImportExportEverywhere&&(n|=8),s.allowSuperOutsideMethod&&(n|=16),s.allowUndeclaredExports&&(n|=64),s.allowNewTargetOutsideFunction&&(n|=4),s.allowYieldOutsideFunction&&(n|=32),s.ranges&&(n|=128),s.tokens&&(n|=256),s.createImportExpressions&&(n|=512),s.createParenthesizedExpressions&&(n|=1024),s.errorRecovery&&(n|=2048),s.attachComment&&(n|=4096),s.annexB&&(n|=8192),this.optionFlags=n}getScopeHandler(){return qs}parse(){this.enterInitialScopes();let t=this.startNode(),r=this.startNode();this.nextToken(),t.errors=null;let i=this.parseTopLevel(t,r);return i.errors=this.state.errors,i.comments.length=this.state.commentsLen,i}};function hK(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let i=Fs(t,e),s=i.parse();if(i.sawUnambiguousESM)return s;if(i.ambiguousScriptDifferentAst)try{return t.sourceType="script",Fs(t,e).parse()}catch{}else s.program.sourceType="script";return s}catch(i){try{return t.sourceType="script",Fs(t,e).parse()}catch{}throw i}}else return Fs(t,e).parse()}function mK(e,t){let r=Fs(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function yK(e){let t={};for(let r of Object.keys(e))t[r]=_r(e[r]);return t}var TK=yK(mU);function Fs(e,t){let r=va,i=new Map;if(e!=null&&e.plugins){for(let s of e.plugins){let n,a;typeof s=="string"?n=s:[n,a]=s,i.has(n)||i.set(n,a||{})}uK(i),r=gK(i)}return new r(e,t,i)}var uT=new Map;function gK(e){let t=[];for(let s of cK)e.has(s)&&t.push(s);let r=t.join("|"),i=uT.get(r);if(!i){i=va;for(let s of t)i=PT[s](i);uT.set(r,i)}return i}Ks.parse=hK;Ks.parseExpression=mK;Ks.tokTypes=TK});var dc=N(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr._replaceWith=_T;Qr.replaceExpressionWithStatements=XK;Qr.replaceInline=YK;Qr.replaceWith=JK;Qr.replaceWithMultiple=VK;Qr.replaceWithSourceString=$K;var SK=pc(),sp=mr(),xK=Or(),wT=di(),np=ha(),bK=Ca(),EK=ye(),Qi=Yt(),{FUNCTION_TYPES:AT,arrowFunctionExpression:PK,assignmentExpression:NT,awaitExpression:AK,blockStatement:vK,buildUndefinedNode:ip,callExpression:CK,cloneNode:ap,conditionalExpression:IK,expressionStatement:wK,getBindingIdentifiers:NK,identifier:OK,inheritLeadingComments:_K,inheritTrailingComments:kK,inheritsComments:DK,isBlockStatement:LK,isEmptyStatement:vT,isExpression:OT,isExpressionStatement:MK,isIfStatement:BK,isProgram:FK,isStatement:RK,isVariableDeclaration:jK,removeComments:qK,returnStatement:CT,sequenceExpression:UK,validate:IT,yieldExpression:KK}=EK;function VK(e){var t;Qi.resync.call(this);let r=np._verifyNodeList.call(this,e);_K(r[0],this.node),kK(r[r.length-1],this.node),(t=(0,wT.getCachedPaths)(this))==null||t.delete(this.node),this.node=this.container[this.key]=null;let i=this.insertAfter(e);return this.node?this.requeue():this.remove(),i}function $K(e){Qi.resync.call(this);let t;try{e=`(${e})`,t=(0,bK.parse)(e)}catch(i){let s=i.loc;throw s&&(i.message+=` - make sure this is an expression.
32
+ `+(0,SK.codeFrameColumns)(e,{start:{line:s.line,column:s.column+1}}),i.code="BABEL_REPLACE_SOURCE_ERROR"),i}let r=t.program.body[0].expression;return sp.default.removeProperties(r),this.replaceWith(r)}function JK(e){if(Qi.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let t=e instanceof xK.default?e.node:e;if(!t)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return[this];if(this.isProgram()&&!FK(t))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof t=="string")throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let r="";if(this.isNodeType("Statement")&&OT(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration()&&(t=wK(t),r="expression"),this.isNodeType("Expression")&&RK(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);let i=this.node;return i&&(DK(t,i),qK(i)),_T.call(this,t),this.type=t.type,Qi.setScope.call(this),this.requeue(),[r?this.get(r):this]}function _T(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?IT(this.parent,this.key,[e]):IT(this.parent,this.key,e),this.debug(`Replace with ${e?.type}`),(t=(0,wT.getCachedPaths)(this))==null||t.set(e,this).delete(this.node),this.node=e,this.container[this.key]=e}function XK(e){Qi.resync.call(this);let t=[],r=Ia(e,t);if(r){for(let x of t)this.scope.push({id:x});return this.replaceWith(r)[0].get("expressions")}let i=this.getFunctionParent(),s=i?.node.async,n=i?.node.generator,a=PK([],vK(e));this.replaceWith(CK(a,[]));let o=this.get("callee");o.get("body").scope.hoistVariables(x=>this.scope.push({id:x}));let l=o.getCompletionRecords();for(let x of l){if(!x.isExpressionStatement())continue;let A=x.findParent(P=>P.isLoop());if(A){let P=A.getData("expressionReplacementReturnUid");P?P=OK(P.name):(P=o.scope.generateDeclaredUidIdentifier("ret"),o.get("body").pushContainer("body",CT(ap(P))),A.setData("expressionReplacementReturnUid",P)),x.get("expression").replaceWith(NT("=",ap(P),x.node.expression))}else x.replaceWith(CT(x.node.expression))}o.arrowFunctionToExpression();let u=o,f=s&&sp.default.hasType(u.node.body,"AwaitExpression",AT),h=n&&sp.default.hasType(u.node.body,"YieldExpression",AT);return f&&(u.set("async",!0),h||this.replaceWith(AK(this.node))),h&&(u.set("generator",!0),this.replaceWith(KK(this.node,!0))),u.get("body.body")}function Ia(e,t){let r=[],i=!0;for(let s of e)if(vT(s)||(i=!1),OT(s))r.push(s);else if(MK(s))r.push(s.expression);else if(jK(s)){if(s.kind!=="var")return;for(let n of s.declarations){let a=NK(n);for(let o of Object.keys(a))t.push(ap(a[o]));n.init&&r.push(NT("=",n.id,n.init))}i=!0}else if(BK(s)){let n=s.consequent?Ia([s.consequent],t):ip(),a=s.alternate?Ia([s.alternate],t):ip();if(!n||!a)return;r.push(IK(s.test,n,a))}else if(LK(s)){let n=Ia(s.body,t);if(!n)return;r.push(n)}else if(vT(s))e.indexOf(s)===0&&(i=!0);else return;return i&&r.push(ip()),r.length===1?r[0]:UK(r)}function YK(e){if(Qi.resync.call(this),Array.isArray(e))if(Array.isArray(this.container)){e=np._verifyNodeList.call(this,e);let t=np._containerInsertAfter.call(this,e);return this.remove(),t}else return this.replaceWithMultiple(e);else return this.replaceWith(e)}});var MT=N(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.evaluate=tV;wa.evaluateTruthy=ZK;var WK=["Number","String","Math"],HK=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],zK=["random"];function kT(e){return WK.includes(e)}function GK(e){return HK.includes(e)}function QK(e){return zK.includes(e)}function ZK(){let e=this.evaluate();if(e.confident)return!!e.value}function Qt(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}var DT=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function Dt(e,t){let{node:r}=e,{seen:i}=t;if(i.has(r)){let s=i.get(r);if(s.resolved)return s.value;Qt(e,t);return}else{let s={resolved:!1};i.set(r,s);let n=eV(e,t);return t.confident&&(s.resolved=!0,s.value=n),n}}function eV(e,t){if(t.confident){if(e.isSequenceExpression()){let i=e.get("expressions");return Dt(i[i.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return LT(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){let i=e.get("tag.object"),{node:{name:s}}=i,n=e.get("tag.property");if(i.isIdentifier()&&s==="String"&&!e.scope.getBinding(s)&&n.isIdentifier()&&n.node.name==="raw")return LT(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){let i=Dt(e.get("test"),t);return t.confident?Dt(i?e.get("consequent"):e.get("alternate"),t):void 0}if(e.isExpressionWrapper())return Dt(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){let i=e.get("property"),s=e.get("object");if(s.isLiteral()){let n=s.node.value,a=typeof n,o=null;if(e.node.computed){if(o=Dt(i,t),!t.confident)return}else i.isIdentifier()&&(o=i.node.name);if((a==="number"||a==="string")&&o!=null&&(typeof o=="number"||typeof o=="string"))return n[o]}}if(e.isReferencedIdentifier()){let i=e.scope.getBinding(e.node.name);if(i){if(i.constantViolations.length>0||e.node.start<i.path.node.end){Qt(i.path,t);return}let l=i.path.scope;if(i.kind==="var"&&l!==i.scope){let u=!l.path.parentPath.isBlockStatement();for(let f=l.parent;f;f=f.parent){var r;if(f===e.scope){if(u){Qt(i.path,t);return}break}(r=f.path.parentPath)!=null&&r.isBlockStatement()&&(u=!0)}}if(i.hasValue)return i.value}let s=e.node.name;if(DT.has(s)){if(!i)return DT.get(s);Qt(i.path,t);return}if(!i){Qt(e,t);return}let n=i.path;if(!n.isVariableDeclarator()){Qt(n,t);return}let a=n.get("init"),o=Dt(a,t);if(typeof o=="object"&&o!==null&&i.references>1){Qt(a,t);return}return o}if(e.isUnaryExpression({prefix:!0})){if(e.node.operator==="void")return;let i=e.get("argument");if(e.node.operator==="typeof"&&(i.isFunction()||i.isClass()))return"function";let s=Dt(i,t);if(!t.confident)return;switch(e.node.operator){case"!":return!s;case"+":return+s;case"-":return-s;case"~":return~s;case"typeof":return typeof s}}if(e.isArrayExpression()){let i=[],s=e.get("elements");for(let n of s){let a=n.evaluate();if(a.confident)i.push(a.value);else{Qt(a.deopt,t);return}}return i}if(e.isObjectExpression()){let i={},s=e.get("properties");for(let n of s){if(n.isObjectMethod()||n.isSpreadElement()){Qt(n,t);return}let a=n.get("key"),o;if(n.node.computed){if(o=a.evaluate(),!o.confident){Qt(o.deopt,t);return}o=o.value}else a.isIdentifier()?o=a.node.name:o=a.node.value;let u=n.get("value").evaluate();if(!u.confident){Qt(u.deopt,t);return}u=u.value,i[o]=u}return i}if(e.isLogicalExpression()){let i=t.confident,s=Dt(e.get("left"),t),n=t.confident;t.confident=i;let a=Dt(e.get("right"),t),o=t.confident;switch(e.node.operator){case"||":return t.confident=n&&(!!s||o),t.confident?s||a:void 0;case"&&":return t.confident=n&&(!s||o),t.confident?s&&a:void 0;case"??":return t.confident=n&&(s!=null||o),t.confident?s??a:void 0}}if(e.isBinaryExpression()){let i=Dt(e.get("left"),t);if(!t.confident)return;let s=Dt(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return i-s;case"+":return i+s;case"/":return i/s;case"*":return i*s;case"%":return i%s;case"**":return Math.pow(i,s);case"<":return i<s;case">":return i>s;case"<=":return i<=s;case">=":return i>=s;case"==":return i==s;case"!=":return i!=s;case"===":return i===s;case"!==":return i!==s;case"|":return i|s;case"&":return i&s;case"^":return i^s;case"<<":return i<<s;case">>":return i>>s;case">>>":return i>>>s}}if(e.isCallExpression()){let i=e.get("callee"),s,n;if(i.isIdentifier()&&!e.scope.getBinding(i.node.name)&&(kT(i.node.name)||GK(i.node.name))&&(n=global[i.node.name]),i.isMemberExpression()){let a=i.get("object"),o=i.get("property");if(a.isIdentifier()&&o.isIdentifier()&&kT(a.node.name)&&!QK(o.node.name)){s=global[a.node.name];let l=o.node.name;hasOwnProperty.call(s,l)&&(n=s[l])}if(a.isLiteral()&&o.isIdentifier()){let l=typeof a.node.value;(l==="string"||l==="number")&&(s=a.node.value,n=s[o.node.name])}}if(n){let a=e.get("arguments").map(o=>Dt(o,t));return t.confident?n.apply(s,a):void 0}}Qt(e,t)}}function LT(e,t,r,i=!1){let s="",n=0,a=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(let o of t){if(!r.confident)break;s+=i?o.value.raw:o.value.cooked;let l=a[n++];l&&(s+=String(Dt(l,r)))}if(r.confident)return s}function tV(){let e={confident:!0,deoptPath:null,seen:new Map},t=Dt(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}}});var BT=N(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.statements=Zt.statement=Zt.smart=Zt.program=Zt.expression=void 0;var rV=ye(),{assertExpressionStatement:iV}=rV;function op(e){return{code:t=>`/* @babel/template */;
33
+ ${t}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}var Kre=Zt.smart=op(e=>e.length>1?e:e[0]),Vre=Zt.statements=op(e=>e),$re=Zt.statement=op(e=>{if(e.length===0)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]}),sV=Zt.expression={code:e=>`(
34
34
  ${e}
35
- )`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(QK.unwrap(e).start===0)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{let[t]=e.body;return GK(t),t.expression}},jre=Zt.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}});var Na=N(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.merge=tV;Ks.normalizeReplacements=iV;Ks.validate=rV;var ZK=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function eV(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function tV(e,t){let{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:i=e.placeholderPattern,preserveComments:s=e.preserveComments,syntacticPlaceholders:n=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:i,preserveComments:s,syntacticPlaceholders:n}}function rV(e){if(e!=null&&typeof e!="object")throw new Error("Unknown template options.");let t=e||{},{placeholderWhitelist:r,placeholderPattern:i,preserveComments:s,syntacticPlaceholders:n}=t,a=eV(t,ZK);if(r!=null&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(i!=null&&!(i instanceof RegExp)&&i!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(s!=null&&typeof s!="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(n!=null&&typeof n!="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(n===!0&&(r!=null||i!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:a,placeholderWhitelist:r||void 0,placeholderPattern:i??void 0,preserveComments:s??void 0,syntacticPlaceholders:n??void 0}}function iV(e){if(Array.isArray(e))return e.reduce((t,r,i)=>(t["$"+i]=r,t),{});if(typeof e=="object"||e==null)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}});var op=N(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.default=TV;var sV=ye(),nV=Ca(),aV=uc(),{isCallExpression:oV,isExpressionStatement:lV,isFunction:uV,isIdentifier:cV,isJSXIdentifier:pV,isNewExpression:fV,isPlaceholder:Oa,isStatement:dV,isStringLiteral:LT,removePropertiesDeep:hV,traverse:mV}=sV,yV=/^[_$A-Z0-9]+$/;function TV(e,t,r){let{placeholderWhitelist:i,placeholderPattern:s,preserveComments:n,syntacticPlaceholders:a}=r,o=xV(t,r.parser,a);hV(o,{preserveComments:n}),e.validate(o);let l={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:i,placeholderPattern:s,syntacticPlaceholders:a};return mV(o,SV,l),Object.assign({ast:o},l.syntactic.placeholders.length?l.syntactic:l.legacy)}function SV(e,t,r){var i;let s,n=r.syntactic.placeholders.length>0;if(Oa(e)){if(r.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");s=e.name.name,n=!0}else{if(n||r.syntacticPlaceholders)return;if(cV(e)||pV(e))s=e.name;else if(LT(e))s=e.value;else return}if(n&&(r.placeholderPattern!=null||r.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!n&&(r.placeholderPattern===!1||!(r.placeholderPattern||yV).test(s))&&!((i=r.placeholderWhitelist)!=null&&i.has(s)))return;t=t.slice();let{node:a,key:o}=t[t.length-1],l;LT(e)||Oa(e,{expectedNode:"StringLiteral"})?l="string":fV(a)&&o==="arguments"||oV(a)&&o==="arguments"||uV(a)&&o==="params"?l="param":lV(a)&&!Oa(e)?(l="statement",t=t.slice(0,-1)):dV(e)&&Oa(e)?l="statement":l="other";let{placeholders:u,placeholderNames:f}=n?r.syntactic:r.legacy;u.push({name:s,type:l,resolve:h=>gV(h,t),isDuplicate:f.has(s)}),f.add(s)}function gV(e,t){let r=e;for(let n=0;n<t.length-1;n++){let{key:a,index:o}=t[n];o===void 0?r=r[a]:r=r[a][o]}let{key:i,index:s}=t[t.length-1];return{parent:r,key:i,index:s}}function xV(e,t,r){let i=(t.plugins||[]).slice();r!==!1&&i.push("placeholders"),t=Object.assign({allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module"},t,{plugins:i});try{return(0,nV.parse)(e,t)}catch(s){let n=s.loc;throw n&&(s.message+=`
36
- `+(0,aV.codeFrameColumns)(e,{start:n}),s.code="BABEL_TEMPLATE_PARSE_ERROR"),s}}});var pp=N(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.default=CV;var bV=ye(),{blockStatement:EV,cloneNode:up,emptyStatement:PV,expressionStatement:lp,identifier:_a,isStatement:MT,isStringLiteral:AV,stringLiteral:vV,validate:FT}=bV;function CV(e,t){let r=up(e.ast);return t&&(e.placeholders.forEach(i=>{if(!hasOwnProperty.call(t,i.name)){let s=i.name;throw new Error(`Error: No substitution given for "${s}". If this is not meant to be a
35
+ )`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(sV.unwrap(e).start===0)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{let[t]=e.body;return iV(t),t.expression}},Jre=Zt.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}});var Na=N(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.merge=oV;Vs.normalizeReplacements=uV;Vs.validate=lV;var nV=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function aV(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function oV(e,t){let{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:i=e.placeholderPattern,preserveComments:s=e.preserveComments,syntacticPlaceholders:n=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:i,preserveComments:s,syntacticPlaceholders:n}}function lV(e){if(e!=null&&typeof e!="object")throw new Error("Unknown template options.");let t=e||{},{placeholderWhitelist:r,placeholderPattern:i,preserveComments:s,syntacticPlaceholders:n}=t,a=aV(t,nV);if(r!=null&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(i!=null&&!(i instanceof RegExp)&&i!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(s!=null&&typeof s!="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(n!=null&&typeof n!="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(n===!0&&(r!=null||i!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:a,placeholderWhitelist:r||void 0,placeholderPattern:i??void 0,preserveComments:s??void 0,syntacticPlaceholders:n??void 0}}function uV(e){if(Array.isArray(e))return e.reduce((t,r,i)=>(t["$"+i]=r,t),{});if(typeof e=="object"||e==null)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}});var up=N(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});lp.default=PV;var cV=ye(),pV=Ca(),fV=pc(),{isCallExpression:dV,isExpressionStatement:hV,isFunction:mV,isIdentifier:yV,isJSXIdentifier:TV,isNewExpression:gV,isPlaceholder:Oa,isStatement:SV,isStringLiteral:FT,removePropertiesDeep:xV,traverse:bV}=cV,EV=/^[_$A-Z0-9]+$/;function PV(e,t,r){let{placeholderWhitelist:i,placeholderPattern:s,preserveComments:n,syntacticPlaceholders:a}=r,o=CV(t,r.parser,a);xV(o,{preserveComments:n}),e.validate(o);let l={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:i,placeholderPattern:s,syntacticPlaceholders:a};return bV(o,AV,l),Object.assign({ast:o},l.syntactic.placeholders.length?l.syntactic:l.legacy)}function AV(e,t,r){var i;let s,n=r.syntactic.placeholders.length>0;if(Oa(e)){if(r.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");s=e.name.name,n=!0}else{if(n||r.syntacticPlaceholders)return;if(yV(e)||TV(e))s=e.name;else if(FT(e))s=e.value;else return}if(n&&(r.placeholderPattern!=null||r.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!n&&(r.placeholderPattern===!1||!(r.placeholderPattern||EV).test(s))&&!((i=r.placeholderWhitelist)!=null&&i.has(s)))return;t=t.slice();let{node:a,key:o}=t[t.length-1],l;FT(e)||Oa(e,{expectedNode:"StringLiteral"})?l="string":gV(a)&&o==="arguments"||dV(a)&&o==="arguments"||mV(a)&&o==="params"?l="param":hV(a)&&!Oa(e)?(l="statement",t=t.slice(0,-1)):SV(e)&&Oa(e)?l="statement":l="other";let{placeholders:u,placeholderNames:f}=n?r.syntactic:r.legacy;u.push({name:s,type:l,resolve:h=>vV(h,t),isDuplicate:f.has(s)}),f.add(s)}function vV(e,t){let r=e;for(let n=0;n<t.length-1;n++){let{key:a,index:o}=t[n];o===void 0?r=r[a]:r=r[a][o]}let{key:i,index:s}=t[t.length-1];return{parent:r,key:i,index:s}}function CV(e,t,r){let i=(t.plugins||[]).slice();r!==!1&&i.push("placeholders"),t=Object.assign({allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module"},t,{plugins:i});try{return(0,pV.parse)(e,t)}catch(s){let n=s.loc;throw n&&(s.message+=`
36
+ `+(0,fV.codeFrameColumns)(e,{start:n}),s.code="BABEL_TEMPLATE_PARSE_ERROR"),s}}});var dp=N(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.default=kV;var IV=ye(),{blockStatement:wV,cloneNode:pp,emptyStatement:NV,expressionStatement:cp,identifier:_a,isStatement:RT,isStringLiteral:OV,stringLiteral:_V,validate:jT}=IV;function kV(e,t){let r=pp(e.ast);return t&&(e.placeholders.forEach(i=>{if(!hasOwnProperty.call(t,i.name)){let s=i.name;throw new Error(`Error: No substitution given for "${s}". If this is not meant to be a
37
37
  placeholder you may want to consider passing one of the following options to @babel/template:
38
38
  - { placeholderPattern: false, placeholderWhitelist: new Set(['${s}'])}
39
- - { placeholderPattern: /^${s}$/ }`)}}),Object.keys(t).forEach(i=>{if(!e.placeholderNames.has(i))throw new Error(`Unknown substitution "${i}" given`)})),e.placeholders.slice().reverse().forEach(i=>{try{var s;IV(i,r,(s=t&&t[i.name])!=null?s:null)}catch(n){throw n.message=`@babel/template placeholder "${i.name}": ${n.message}`,n}}),r}function IV(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map(o=>up(o)):typeof r=="object"&&(r=up(r)));let{parent:i,key:s,index:n}=e.resolve(t);if(e.type==="string"){if(typeof r=="string"&&(r=vV(r)),!r||!AV(r))throw new Error("Expected string substitution")}else if(e.type==="statement")n===void 0?r?Array.isArray(r)?r=EV(r):typeof r=="string"?r=lp(_a(r)):MT(r)||(r=lp(r)):r=PV():r&&!Array.isArray(r)&&(typeof r=="string"&&(r=_a(r)),MT(r)||(r=lp(r)));else if(e.type==="param"){if(typeof r=="string"&&(r=_a(r)),n===void 0)throw new Error("Assertion failure.")}else if(typeof r=="string"&&(r=_a(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");function a(o,l,u){let f=o[l];o[l]=u,(f.type==="Identifier"||f.type==="Placeholder")&&(f.typeAnnotation&&(u.typeAnnotation=f.typeAnnotation),f.optional&&(u.optional=f.optional),f.decorators&&(u.decorators=f.decorators))}if(n===void 0)FT(i,s,r),a(i,s,r);else{let o=i[s].slice();e.type==="statement"||e.type==="param"?r==null?o.splice(n,1):Array.isArray(r)?o.splice(n,1,...r):a(o,n,r):a(o,n,r),FT(i,s,o),i[s]=o}}});var BT=N(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.default=_V;var wV=Na(),NV=op(),OV=pp();function _V(e,t,r){t=e.code(t);let i;return s=>{let n=(0,wV.normalizeReplacements)(s);return i||(i=(0,NV.default)(e,t,r)),e.unwrap((0,OV.default)(i,n))}}});var RT=N(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.default=MV;var kV=Na(),DV=op(),LV=pp();function MV(e,t,r){let{metadata:i,names:s}=FV(e,t,r);return n=>{let a={};return n.forEach((o,l)=>{a[s[l]]=o}),o=>{let l=(0,kV.normalizeReplacements)(o);return l&&Object.keys(l).forEach(u=>{if(hasOwnProperty.call(a,u))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0,LV.default)(i,l?Object.assign(l,a):a))}}}function FV(e,t,r){let i="BABEL_TPL$",s=t.join("");do i="$$"+i;while(s.includes(i));let{names:n,code:a}=BV(t,i);return{metadata:(0,DV.default)(e,e.code(a),{parser:r.parser,placeholderWhitelist:new Set(n.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders}),names:n}}function BV(e,t){let r=[],i=e[0];for(let s=1;s<e.length;s++){let n=`${t}${s-1}`;r.push(n),i+=n+e[s]}return{names:r,code:i}}});var $T=N(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.default=VT;var gr=Na(),jT=BT(),qT=RT(),UT=(0,gr.validate)({placeholderPattern:!1});function VT(e,t){let r=new WeakMap,i=new WeakMap,s=t||(0,gr.validate)(null);return Object.assign((n,...a)=>{if(typeof n=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return KT((0,jT.default)(e,n,(0,gr.merge)(s,(0,gr.validate)(a[0]))))}else if(Array.isArray(n)){let o=r.get(n);return o||(o=(0,qT.default)(e,n,s),r.set(n,o)),KT(o(a))}else if(typeof n=="object"&&n){if(a.length>0)throw new Error("Unexpected extra params.");return VT(e,(0,gr.merge)(s,(0,gr.validate)(n)))}throw new Error(`Unexpected template param ${typeof n}`)},{ast:(n,...a)=>{if(typeof n=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return(0,jT.default)(e,n,(0,gr.merge)((0,gr.merge)(s,(0,gr.validate)(a[0])),UT))()}else if(Array.isArray(n)){let o=i.get(n);return o||(o=(0,qT.default)(e,n,(0,gr.merge)(s,UT)),i.set(n,o)),o(a)()}throw new Error(`Unexpected template param ${typeof n}`)}})}function KT(e){let t="";try{throw new Error}catch(r){r.stack&&(t=r.stack.split(`
39
+ - { placeholderPattern: /^${s}$/ }`)}}),Object.keys(t).forEach(i=>{if(!e.placeholderNames.has(i))throw new Error(`Unknown substitution "${i}" given`)})),e.placeholders.slice().reverse().forEach(i=>{try{var s;DV(i,r,(s=t&&t[i.name])!=null?s:null)}catch(n){throw n.message=`@babel/template placeholder "${i.name}": ${n.message}`,n}}),r}function DV(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map(o=>pp(o)):typeof r=="object"&&(r=pp(r)));let{parent:i,key:s,index:n}=e.resolve(t);if(e.type==="string"){if(typeof r=="string"&&(r=_V(r)),!r||!OV(r))throw new Error("Expected string substitution")}else if(e.type==="statement")n===void 0?r?Array.isArray(r)?r=wV(r):typeof r=="string"?r=cp(_a(r)):RT(r)||(r=cp(r)):r=NV():r&&!Array.isArray(r)&&(typeof r=="string"&&(r=_a(r)),RT(r)||(r=cp(r)));else if(e.type==="param"){if(typeof r=="string"&&(r=_a(r)),n===void 0)throw new Error("Assertion failure.")}else if(typeof r=="string"&&(r=_a(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");function a(o,l,u){let f=o[l];o[l]=u,(f.type==="Identifier"||f.type==="Placeholder")&&(f.typeAnnotation&&(u.typeAnnotation=f.typeAnnotation),f.optional&&(u.optional=f.optional),f.decorators&&(u.decorators=f.decorators))}if(n===void 0)jT(i,s,r),a(i,s,r);else{let o=i[s].slice();e.type==="statement"||e.type==="param"?r==null?o.splice(n,1):Array.isArray(r)?o.splice(n,1,...r):a(o,n,r):a(o,n,r),jT(i,s,o),i[s]=o}}});var qT=N(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.default=FV;var LV=Na(),MV=up(),BV=dp();function FV(e,t,r){t=e.code(t);let i;return s=>{let n=(0,LV.normalizeReplacements)(s);return i||(i=(0,MV.default)(e,t,r)),e.unwrap((0,BV.default)(i,n))}}});var UT=N(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.default=UV;var RV=Na(),jV=up(),qV=dp();function UV(e,t,r){let{metadata:i,names:s}=KV(e,t,r);return n=>{let a={};return n.forEach((o,l)=>{a[s[l]]=o}),o=>{let l=(0,RV.normalizeReplacements)(o);return l&&Object.keys(l).forEach(u=>{if(hasOwnProperty.call(a,u))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0,qV.default)(i,l?Object.assign(l,a):a))}}}function KV(e,t,r){let i="BABEL_TPL$",s=t.join("");do i="$$"+i;while(s.includes(i));let{names:n,code:a}=VV(t,i);return{metadata:(0,jV.default)(e,e.code(a),{parser:r.parser,placeholderWhitelist:new Set(n.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders}),names:n}}function VV(e,t){let r=[],i=e[0];for(let s=1;s<e.length;s++){let n=`${t}${s-1}`;r.push(n),i+=n+e[s]}return{names:r,code:i}}});var YT=N(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.default=XT;var Sr=Na(),KT=qT(),VT=UT(),$T=(0,Sr.validate)({placeholderPattern:!1});function XT(e,t){let r=new WeakMap,i=new WeakMap,s=t||(0,Sr.validate)(null);return Object.assign((n,...a)=>{if(typeof n=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return JT((0,KT.default)(e,n,(0,Sr.merge)(s,(0,Sr.validate)(a[0]))))}else if(Array.isArray(n)){let o=r.get(n);return o||(o=(0,VT.default)(e,n,s),r.set(n,o)),JT(o(a))}else if(typeof n=="object"&&n){if(a.length>0)throw new Error("Unexpected extra params.");return XT(e,(0,Sr.merge)(s,(0,Sr.validate)(n)))}throw new Error(`Unexpected template param ${typeof n}`)},{ast:(n,...a)=>{if(typeof n=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return(0,KT.default)(e,n,(0,Sr.merge)((0,Sr.merge)(s,(0,Sr.validate)(a[0])),$T))()}else if(Array.isArray(n)){let o=i.get(n);return o||(o=(0,VT.default)(e,n,(0,Sr.merge)(s,$T)),i.set(n,o)),o(a)()}throw new Error(`Unexpected template param ${typeof n}`)}})}function JT(e){let t="";try{throw new Error}catch(r){r.stack&&(t=r.stack.split(`
40
40
  `).slice(3).join(`
41
41
  `))}return r=>{try{return e(r)}catch(i){throw i.stack+=`
42
42
  =============
43
- ${t}`,i}}}});var JT=N(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.statements=jt.statement=jt.smart=jt.program=jt.expression=jt.default=void 0;var Vs=DT(),$s=$T(),mp=jt.smart=(0,$s.default)(Vs.smart),RV=jt.statement=(0,$s.default)(Vs.statement),jV=jt.statements=(0,$s.default)(Vs.statements),qV=jt.expression=(0,$s.default)(Vs.expression),UV=jt.program=(0,$s.default)(Vs.program),Yre=jt.default=Object.assign(mp.bind(void 0),{smart:mp,statement:RV,statements:jV,expression:qV,program:UV,ast:mp.ast})});var ZT=N(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.arrowFunctionToExpression=T$;Dr.ensureBlock=h$;Dr.ensureFunctionName=N$;Dr.splitExportDeclaration=I$;Dr.toComputedKey=d$;Dr.unwrapFunctionEnvironment=m$;var KV=ye(),VV=JT(),Sp=bs(),$V=Yt(),{arrowFunctionExpression:gp,assignmentExpression:Ei,binaryExpression:yp,blockStatement:JV,callExpression:Qi,conditionalExpression:XV,expressionStatement:WT,identifier:Xe,isIdentifier:YV,jsxIdentifier:WV,logicalExpression:HV,LOGICAL_OPERATORS:zV,memberExpression:lr,metaProperty:GV,numericLiteral:QV,objectExpression:ZV,restElement:e$,returnStatement:t$,sequenceExpression:r$,spreadElement:i$,stringLiteral:HT,super:Tp,thisExpression:Js,toExpression:zT,unaryExpression:s$,toBindingIdentifierName:n$,isFunction:a$,isAssignmentPattern:o$,isRestElement:l$,getFunctionName:u$,cloneNode:Pi,variableDeclaration:c$,variableDeclarator:p$,exportNamedDeclaration:XT,exportSpecifier:YT,inherits:f$}=KV;function d$(){let e;if(this.isMemberExpression())e=this.node.property;else if(this.isProperty()||this.isMethod())e=this.node.key;else throw new ReferenceError("todo");return this.node.computed||YV(e)&&(e=HT(e.name)),e}function h$(){let e=this.get("body"),t=e.node;if(Array.isArray(e))throw new Error("Can't convert array path to a block statement");if(!t)throw new Error("Can't convert node without a body");if(e.isBlockStatement())return t;let r=[],i="body",s,n;e.isStatement()?(n="body",s=0,r.push(e.node)):(i+=".body.0",this.isFunction()?(s="argument",r.push(t$(e.node))):(s="expression",r.push(WT(e.node)))),this.node.body=JV(r);let a=this.get(i);return $V.setup.call(e,a,n?a.node[n]:a.node,n,s),this.node}Dr.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};function m$(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");GT(this)}function y$(e,t){e.node.type=t}function T$({allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:r=!(i=>(i=arguments[0])==null?void 0:i.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let i=this;if(!r){var s;i=(s=i.ensureFunctionName(!1))!=null?s:i}let{thisBinding:n,fnPath:a}=GT(i,r,e,t);if(a.ensureBlock(),y$(a,"FunctionExpression"),!r){let o=n?null:a.scope.generateUidIdentifier("arrowCheckId");return o&&a.parentPath.scope.push({id:o,init:ZV([])}),a.get("body").unshiftContainer("body",WT(Qi(this.hub.addHelper("newArrowCheck"),[Js(),Xe(o?o.name:n)]))),a.replaceWith(Qi(lr(a.node,Xe("bind")),[o?Xe(o.name):Js()])),a.get("callee.object")}return a}var S$=(0,Sp.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}});function GT(e,t=!0,r=!0,i=!0){let s,n=e.findParent(b=>b.isArrowFunctionExpression()?(s??(s=b),!1):b.isFunction()||b.isProgram()||b.isClassProperty({static:!1})||b.isClassPrivateProperty({static:!1})),a=n.isClassMethod({kind:"constructor"});if(n.isClassProperty()||n.isClassPrivateProperty())if(s)n=s;else if(r)e.replaceWith(Qi(gp([],zT(e.node)),[])),n=e.get("callee"),e=n.get("body");else throw e.buildCodeFrameError("Unable to transform arrow inside class property");let{thisPaths:o,argumentsPaths:l,newTargetPaths:u,superProps:f,superCalls:h}=C$(e);if(a&&h.length>0){if(!r)throw h[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!i)throw h[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");let b=[];n.traverse(S$,{allSuperCalls:b});let E=P$(n);b.forEach(w=>{let A=Xe(E);A.loc=w.node.callee.loc,w.get("callee").replaceWith(A)})}if(l.length>0){let b=Xs(n,"arguments",()=>{let E=()=>Xe("arguments");return n.scope.path.isProgram()?XV(yp("===",s$("typeof",E()),HT("undefined")),n.scope.buildUndefinedNode(),E()):E()});l.forEach(E=>{let w=Xe(b);w.loc=E.node.loc,E.replaceWith(w)})}if(u.length>0){let b=Xs(n,"newtarget",()=>GV(Xe("new"),Xe("target")));u.forEach(E=>{let w=Xe(b);w.loc=E.node.loc,E.replaceWith(w)})}if(f.length>0){if(!r)throw f[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");f.reduce((E,w)=>E.concat(x$(w)),[]).forEach(E=>{let w=E.node.computed?"":E.get("property").node.name,A=E.parentPath,I=A.isAssignmentExpression({left:E.node}),k=A.isCallExpression({callee:E.node}),Y=A.isTaggedTemplateExpression({tag:E.node}),B=A$(n,I,w),F=[];if(E.node.computed&&F.push(E.get("property").node),I){let xe=A.node.right;F.push(xe)}let ae=Qi(Xe(B),F);k?(A.unshiftContainer("arguments",Js()),E.replaceWith(lr(ae,Xe("call"))),o.push(A.get("arguments.0"))):I?A.replaceWith(ae):Y?(E.replaceWith(Qi(lr(ae,Xe("bind"),!1),[Js()])),o.push(E.get("arguments.0"))):E.replaceWith(ae)})}let g;return(o.length>0||!t)&&(g=E$(n,a),(t||a&&QT(n))&&(o.forEach(b=>{let E=b.isJSX()?WV(g):Xe(g);E.loc=b.node.loc,b.replaceWith(E)}),t||(g=null))),{thisBinding:g,fnPath:e}}function g$(e){return zV.includes(e)}function x$(e){if(e.parentPath.isAssignmentExpression()&&e.parentPath.node.operator!=="="){let r=e.parentPath,i=r.node.operator.slice(0,-1),s=r.node.right,n=g$(i);if(e.node.computed){let a=e.scope.generateDeclaredUidIdentifier("tmp"),{object:o,property:l}=e.node;r.get("left").replaceWith(lr(o,Ei("=",a,l),!0)),r.get("right").replaceWith(t(n?"=":i,lr(o,Xe(a.name),!0),s))}else{let a=e.node.object,o=e.node.property;r.get("left").replaceWith(lr(a,o)),r.get("right").replaceWith(t(n?"=":i,lr(a,Xe(o.name)),s))}return n?r.replaceWith(HV(i,r.node.left,r.node.right)):r.node.operator="=",[r.get("left"),r.get("right").get("left")]}else if(e.parentPath.isUpdateExpression()){let r=e.parentPath,i=e.scope.generateDeclaredUidIdentifier("tmp"),s=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,n=[Ei("=",i,lr(e.node.object,s?Ei("=",s,e.node.property):e.node.property,e.node.computed)),Ei("=",lr(e.node.object,s?Xe(s.name):e.node.property,e.node.computed),yp(e.parentPath.node.operator[0],Xe(i.name),QV(1)))];e.parentPath.node.prefix||n.push(Xe(i.name)),r.replaceWith(r$(n));let a=r.get("expressions.0.right"),o=r.get("expressions.1.left");return[a,o]}return[e];function t(r,i,s){return r==="="?Ei("=",i,s):yp(r,i,s)}}function QT(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}var b$=(0,Sp.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:r}){e.get("callee").isSuper()&&(t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,Ei("=",Xe(r),Xe("this"))])))}});function E$(e,t){return Xs(e,"this",r=>{if(!t||!QT(e))return Js();e.traverse(b$,{supers:new WeakSet,thisBinding:r})})}function P$(e){return Xs(e,"supercall",()=>{let t=e.scope.generateUidIdentifier("args");return gp([e$(t)],Qi(Tp(),[i$(Xe(t.name))]))})}function A$(e,t,r){return Xs(e,`superprop_${t?"set":"get"}:${r||""}`,()=>{let s=[],n;if(r)n=lr(Tp(),Xe(r));else{let a=e.scope.generateUidIdentifier("prop");s.unshift(a),n=lr(Tp(),Xe(a.name),!0)}if(t){let a=e.scope.generateUidIdentifier("value");s.push(a),n=Ei("=",n,Xe(a.name))}return gp(s,n)})}function Xs(e,t,r){let i="binding:"+t,s=e.getData(i);if(!s){let n=e.scope.generateUidIdentifier(t);s=n.name,e.setData(i,s),e.scope.push({id:n,init:r(s)})}return s}var v$=(0,Sp.environmentVisitor)({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){e.node.name==="this"&&(!e.parentPath.isJSXMemberExpression({object:e.node})&&!e.parentPath.isJSXOpeningElement({name:e.node})||t.push(e))},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)},MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let r=e.scope;do{if(r.hasOwnBinding("arguments")){r.rename("arguments");return}if(r.path.isFunction()&&!r.path.isArrowFunctionExpression())break}while(r=r.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&t.push(e)}});function C$(e){let t=[],r=[],i=[],s=[],n=[];return e.traverse(v$,{thisPaths:t,argumentsPaths:r,newTargetPaths:i,superProps:s,superCalls:n}),{thisPaths:t,argumentsPaths:r,newTargetPaths:i,superProps:s,superCalls:n}}function I$(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let e=this.get("declaration");if(this.isExportDefaultDeclaration()){let s=e.isFunctionDeclaration()||e.isClassDeclaration(),n=e.isFunctionExpression()||e.isClassExpression(),a=e.isScope()?e.scope.parent:e.scope,o=e.node.id,l=!1;o?n&&a.hasBinding(o.name)&&(l=!0,o=a.generateUidIdentifier(o.name)):(l=!0,o=a.generateUidIdentifier("default"),(s||n)&&(e.node.id=Pi(o)));let u=s?e.node:c$("var",[p$(Pi(o),e.node)]),f=XT(null,[YT(Pi(o),Xe("default"))]);return this.insertAfter(f),this.replaceWith(u),l&&a.registerDeclaration(this),this}else if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let t=e.getOuterBindingIdentifiers(),r=Object.keys(t).map(s=>YT(Xe(s),Xe(s))),i=XT(null,r);return this.insertAfter(i),this.replaceWith(e.node),this}var w$={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&(t.needsRename=!0,e.stop())},Scope(e,t){e.scope.hasOwnBinding(t.name)&&e.skip()}};function N$(e){if(this.node.id)return this;let t=u$(this.node,this.parent);if(t==null)return this;let{name:r}=t;if(!e&&/[\uD800-\uDFFF]/.test(r)||r.startsWith("get ")||r.startsWith("set "))return null;r=n$(r.replace(/[/ ]/g,"_"));let i=Xe(r);f$(i,t.originalNode);let s={needsRename:!1,name:r},{scope:n}=this,a=n.getOwnBinding(r);if(a?a.kind==="param"&&(s.needsRename=!0):(n.parent.hasBinding(r)||n.hasGlobal(r))&&this.traverse(w$,s),!s.needsRename)return this.node.id=i,n.getProgramParent().references[i.name]=!0,this;if(n.hasBinding(i.name)&&!n.hasGlobal(i.name))return n.rename(i.name),this.node.id=i,n.getProgramParent().references[i.name]=!0,this;if(!a$(this.node))return null;let o=n.generateUidIdentifier(i.name),l=[];for(let f=0,h=O$(this.node);f<h;f++)l.push(n.generateUidIdentifier("x"));let u=VV.default.expression.ast`
43
+ ${t}`,i}}}});var WT=N(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.statements=jt.statement=jt.smart=jt.program=jt.expression=jt.default=void 0;var $s=BT(),Js=YT(),Tp=jt.smart=(0,Js.default)($s.smart),$V=jt.statement=(0,Js.default)($s.statement),JV=jt.statements=(0,Js.default)($s.statements),XV=jt.expression=(0,Js.default)($s.expression),YV=jt.program=(0,Js.default)($s.program),Zre=jt.default=Object.assign(Tp.bind(void 0),{smart:Tp,statement:$V,statements:JV,expression:XV,program:YV,ast:Tp.ast})});var rg=N(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.arrowFunctionToExpression=P$;Dr.ensureBlock=x$;Dr.ensureFunctionName=M$;Dr.splitExportDeclaration=D$;Dr.toComputedKey=S$;Dr.unwrapFunctionEnvironment=b$;var WV=ye(),HV=WT(),xp=Es(),zV=Yt(),{arrowFunctionExpression:bp,assignmentExpression:Pi,binaryExpression:gp,blockStatement:GV,callExpression:Zi,conditionalExpression:QV,expressionStatement:GT,identifier:Xe,isIdentifier:ZV,jsxIdentifier:e$,logicalExpression:t$,LOGICAL_OPERATORS:r$,memberExpression:lr,metaProperty:i$,numericLiteral:s$,objectExpression:n$,restElement:a$,returnStatement:o$,sequenceExpression:l$,spreadElement:u$,stringLiteral:QT,super:Sp,thisExpression:Xs,toExpression:ZT,unaryExpression:c$,toBindingIdentifierName:p$,isFunction:f$,isAssignmentPattern:d$,isRestElement:h$,getFunctionName:m$,cloneNode:Ai,variableDeclaration:y$,variableDeclarator:T$,exportNamedDeclaration:HT,exportSpecifier:zT,inherits:g$}=WV;function S$(){let e;if(this.isMemberExpression())e=this.node.property;else if(this.isProperty()||this.isMethod())e=this.node.key;else throw new ReferenceError("todo");return this.node.computed||ZV(e)&&(e=QT(e.name)),e}function x$(){let e=this.get("body"),t=e.node;if(Array.isArray(e))throw new Error("Can't convert array path to a block statement");if(!t)throw new Error("Can't convert node without a body");if(e.isBlockStatement())return t;let r=[],i="body",s,n;e.isStatement()?(n="body",s=0,r.push(e.node)):(i+=".body.0",this.isFunction()?(s="argument",r.push(o$(e.node))):(s="expression",r.push(GT(e.node)))),this.node.body=GV(r);let a=this.get(i);return zV.setup.call(e,a,n?a.node[n]:a.node,n,s),this.node}Dr.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};function b$(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");eg(this)}function E$(e,t){e.node.type=t}function P$({allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:r=!(i=>(i=arguments[0])==null?void 0:i.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let i=this;if(!r){var s;i=(s=i.ensureFunctionName(!1))!=null?s:i}let{thisBinding:n,fnPath:a}=eg(i,r,e,t);if(a.ensureBlock(),E$(a,"FunctionExpression"),!r){let o=n?null:a.scope.generateUidIdentifier("arrowCheckId");return o&&a.parentPath.scope.push({id:o,init:n$([])}),a.get("body").unshiftContainer("body",GT(Zi(this.hub.addHelper("newArrowCheck"),[Xs(),Xe(o?o.name:n)]))),a.replaceWith(Zi(lr(a.node,Xe("bind")),[o?Xe(o.name):Xs()])),a.get("callee.object")}return a}var A$=(0,xp.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}});function eg(e,t=!0,r=!0,i=!0){let s,n=e.findParent(A=>A.isArrowFunctionExpression()?(s??(s=A),!1):A.isFunction()||A.isProgram()||A.isClassProperty({static:!1})||A.isClassPrivateProperty({static:!1})),a=n.isClassMethod({kind:"constructor"});if(n.isClassProperty()||n.isClassPrivateProperty())if(s)n=s;else if(r)e.replaceWith(Zi(bp([],ZT(e.node)),[])),n=e.get("callee"),e=n.get("body");else throw e.buildCodeFrameError("Unable to transform arrow inside class property");let{thisPaths:o,argumentsPaths:l,newTargetPaths:u,superProps:f,superCalls:h}=k$(e);if(a&&h.length>0){if(!r)throw h[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!i)throw h[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");let A=[];n.traverse(A$,{allSuperCalls:A});let P=N$(n);A.forEach(w=>{let b=Xe(P);b.loc=w.node.callee.loc,w.get("callee").replaceWith(b)})}if(l.length>0){let A=Ys(n,"arguments",()=>{let P=()=>Xe("arguments");return n.scope.path.isProgram()?QV(gp("===",c$("typeof",P()),QT("undefined")),n.scope.buildUndefinedNode(),P()):P()});l.forEach(P=>{let w=Xe(A);w.loc=P.node.loc,P.replaceWith(w)})}if(u.length>0){let A=Ys(n,"newtarget",()=>i$(Xe("new"),Xe("target")));u.forEach(P=>{let w=Xe(A);w.loc=P.node.loc,P.replaceWith(w)})}if(f.length>0){if(!r)throw f[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");f.reduce((P,w)=>P.concat(C$(w)),[]).forEach(P=>{let w=P.node.computed?"":P.get("property").node.name,b=P.parentPath,C=b.isAssignmentExpression({left:P.node}),D=b.isCallExpression({callee:P.node}),U=b.isTaggedTemplateExpression({tag:P.node}),k=O$(n,C,w),L=[];if(P.node.computed&&L.push(P.get("property").node),C){let Te=b.node.right;L.push(Te)}let te=Zi(Xe(k),L);D?(b.unshiftContainer("arguments",Xs()),P.replaceWith(lr(te,Xe("call"))),o.push(b.get("arguments.0"))):C?b.replaceWith(te):U?(P.replaceWith(Zi(lr(te,Xe("bind"),!1),[Xs()])),o.push(P.get("arguments.0"))):P.replaceWith(te)})}let x;return(o.length>0||!t)&&(x=w$(n,a),(t||a&&tg(n))&&(o.forEach(A=>{let P=A.isJSX()?e$(x):Xe(x);P.loc=A.node.loc,A.replaceWith(P)}),t||(x=null))),{thisBinding:x,fnPath:e}}function v$(e){return r$.includes(e)}function C$(e){if(e.parentPath.isAssignmentExpression()&&e.parentPath.node.operator!=="="){let r=e.parentPath,i=r.node.operator.slice(0,-1),s=r.node.right,n=v$(i);if(e.node.computed){let a=e.scope.generateDeclaredUidIdentifier("tmp"),{object:o,property:l}=e.node;r.get("left").replaceWith(lr(o,Pi("=",a,l),!0)),r.get("right").replaceWith(t(n?"=":i,lr(o,Xe(a.name),!0),s))}else{let a=e.node.object,o=e.node.property;r.get("left").replaceWith(lr(a,o)),r.get("right").replaceWith(t(n?"=":i,lr(a,Xe(o.name)),s))}return n?r.replaceWith(t$(i,r.node.left,r.node.right)):r.node.operator="=",[r.get("left"),r.get("right").get("left")]}else if(e.parentPath.isUpdateExpression()){let r=e.parentPath,i=e.scope.generateDeclaredUidIdentifier("tmp"),s=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,n=[Pi("=",i,lr(e.node.object,s?Pi("=",s,e.node.property):e.node.property,e.node.computed)),Pi("=",lr(e.node.object,s?Xe(s.name):e.node.property,e.node.computed),gp(e.parentPath.node.operator[0],Xe(i.name),s$(1)))];e.parentPath.node.prefix||n.push(Xe(i.name)),r.replaceWith(l$(n));let a=r.get("expressions.0.right"),o=r.get("expressions.1.left");return[a,o]}return[e];function t(r,i,s){return r==="="?Pi("=",i,s):gp(r,i,s)}}function tg(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}var I$=(0,xp.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:r}){e.get("callee").isSuper()&&(t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,Pi("=",Xe(r),Xe("this"))])))}});function w$(e,t){return Ys(e,"this",r=>{if(!t||!tg(e))return Xs();e.traverse(I$,{supers:new WeakSet,thisBinding:r})})}function N$(e){return Ys(e,"supercall",()=>{let t=e.scope.generateUidIdentifier("args");return bp([a$(t)],Zi(Sp(),[u$(Xe(t.name))]))})}function O$(e,t,r){return Ys(e,`superprop_${t?"set":"get"}:${r||""}`,()=>{let s=[],n;if(r)n=lr(Sp(),Xe(r));else{let a=e.scope.generateUidIdentifier("prop");s.unshift(a),n=lr(Sp(),Xe(a.name),!0)}if(t){let a=e.scope.generateUidIdentifier("value");s.push(a),n=Pi("=",n,Xe(a.name))}return bp(s,n)})}function Ys(e,t,r){let i="binding:"+t,s=e.getData(i);if(!s){let n=e.scope.generateUidIdentifier(t);s=n.name,e.setData(i,s),e.scope.push({id:n,init:r(s)})}return s}var _$=(0,xp.environmentVisitor)({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){e.node.name==="this"&&(!e.parentPath.isJSXMemberExpression({object:e.node})&&!e.parentPath.isJSXOpeningElement({name:e.node})||t.push(e))},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)},MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let r=e.scope;do{if(r.hasOwnBinding("arguments")){r.rename("arguments");return}if(r.path.isFunction()&&!r.path.isArrowFunctionExpression())break}while(r=r.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&t.push(e)}});function k$(e){let t=[],r=[],i=[],s=[],n=[];return e.traverse(_$,{thisPaths:t,argumentsPaths:r,newTargetPaths:i,superProps:s,superCalls:n}),{thisPaths:t,argumentsPaths:r,newTargetPaths:i,superProps:s,superCalls:n}}function D$(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let e=this.get("declaration");if(this.isExportDefaultDeclaration()){let s=e.isFunctionDeclaration()||e.isClassDeclaration(),n=e.isFunctionExpression()||e.isClassExpression(),a=e.isScope()?e.scope.parent:e.scope,o=e.node.id,l=!1;o?n&&a.hasBinding(o.name)&&(l=!0,o=a.generateUidIdentifier(o.name)):(l=!0,o=a.generateUidIdentifier("default"),(s||n)&&(e.node.id=Ai(o)));let u=s?e.node:y$("var",[T$(Ai(o),e.node)]),f=HT(null,[zT(Ai(o),Xe("default"))]);return this.insertAfter(f),this.replaceWith(u),l&&a.registerDeclaration(this),this}else if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let t=e.getOuterBindingIdentifiers(),r=Object.keys(t).map(s=>zT(Xe(s),Xe(s))),i=HT(null,r);return this.insertAfter(i),this.replaceWith(e.node),this}var L$={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&(t.needsRename=!0,e.stop())},Scope(e,t){e.scope.hasOwnBinding(t.name)&&e.skip()}};function M$(e){if(this.node.id)return this;let t=m$(this.node,this.parent);if(t==null)return this;let{name:r}=t;if(!e&&/[\uD800-\uDFFF]/.test(r)||r.startsWith("get ")||r.startsWith("set "))return null;r=p$(r.replace(/[/ ]/g,"_"));let i=Xe(r);g$(i,t.originalNode);let s={needsRename:!1,name:r},{scope:n}=this,a=n.getOwnBinding(r);if(a?a.kind==="param"&&(s.needsRename=!0):(n.parent.hasBinding(r)||n.hasGlobal(r))&&this.traverse(L$,s),!s.needsRename)return this.node.id=i,n.getProgramParent().references[i.name]=!0,this;if(n.hasBinding(i.name)&&!n.hasGlobal(i.name))return n.rename(i.name),this.node.id=i,n.getProgramParent().references[i.name]=!0,this;if(!f$(this.node))return null;let o=n.generateUidIdentifier(i.name),l=[];for(let f=0,h=B$(this.node);f<h;f++)l.push(n.generateUidIdentifier("x"));let u=HV.default.expression.ast`
44
44
  (function (${o}) {
45
45
  function ${i}(${l}) {
46
- return ${Pi(o)}.apply(this, arguments);
46
+ return ${Ai(o)}.apply(this, arguments);
47
47
  }
48
48
 
49
- ${Pi(i)}.toString = function () {
50
- return ${Pi(o)}.toString();
49
+ ${Ai(i)}.toString = function () {
50
+ return ${Ai(o)}.toString();
51
51
  }
52
52
 
53
- return ${Pi(i)};
54
- })(${zT(this.node)})
55
- `;return this.replaceWith(u)[0].get("arguments.0")}function O$(e){let t=e.params.findIndex(r=>o$(r)||l$(r));return t===-1?e.params.length:t}});var nS=N(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt._guessExecutionStatusRelativeTo=G$;nt._resolve=sS;nt.canHaveVariableDeclarationOrExpression=V$;nt.canSwapBetweenExpressionAndStatement=$$;nt.getSource=W$;nt.isCompletionRecord=J$;nt.isConstantExpression=tJ;nt.isInStrictMode=rJ;nt.isNodeType=K$;nt.isStatementOrBlock=X$;nt.isStatic=U$;nt.matchesPattern=q$;nt.referencesImport=Y$;nt.resolve=eJ;nt.willIMaybeExecuteBefore=H$;var _$=ye(),{STATEMENT_OR_BLOCK_KEYS:k$,VISITOR_KEYS:D$,isBlockStatement:iS,isExpression:L$,isIdentifier:M$,isLiteral:F$,isStringLiteral:B$,isType:R$,matchesPattern:j$}=_$;function q$(e,t){return j$(this.node,e,t)}nt.has=function(t){var r;let i=(r=this.node)==null?void 0:r[t];return i&&Array.isArray(i)?!!i.length:!!i};function U$(){return this.scope.isStatic(this.node)}nt.is=nt.has;nt.isnt=function(t){return!this.has(t)};nt.equals=function(t,r){return this.node[t]===r};function K$(e){return R$(this.type,e)}function V$(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function $$(e){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?iS(e):this.isBlockStatement()?L$(e):!1}function J$(e){let t=this,r=!0;do{let{type:i,container:s}=t;if(!r&&(t.isFunction()||i==="StaticBlock"))return!!e;if(r=!1,Array.isArray(s)&&t.key!==s.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0}function X$(){return this.parentPath.isLabeledStatement()||iS(this.container)?!1:k$.includes(this.key)}function Y$(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?B$(this.node.property,{value:t}):this.node.property.name===t)){let n=this.get("object");return n.isReferencedIdentifier()&&n.referencesImport(e,"*")}return!1}let r=this.scope.getBinding(this.node.name);if(r?.kind!=="module")return!1;let i=r.path,s=i.parentPath;if(!s.isImportDeclaration())return!1;if(s.node.source.value===e){if(!t)return!0}else return!1;return!!(i.isImportDefaultSpecifier()&&t==="default"||i.isImportNamespaceSpecifier()&&t==="*"||i.isImportSpecifier()&&M$(i.node.imported,{name:t}))}function W$(){let e=this.node;if(e.end){let t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""}function H$(e){return this._guessExecutionStatusRelativeTo(e)!=="after"}function eS(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function z$(e,t){switch(e){case"LogicalExpression":return t==="right";case"ConditionalExpression":case"IfStatement":return t==="consequent"||t==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return t==="body";case"ForStatement":return t==="body"||t==="update";case"SwitchStatement":return t==="cases";case"TryStatement":return t==="handler";case"AssignmentPattern":return t==="right";case"OptionalMemberExpression":return t==="property";case"OptionalCallExpression":return t==="arguments";default:return!1}}function tS(e,t){for(let r=0;r<t;r++){let i=e[r];if(z$(i.parent.type,i.parentKey))return!0}return!1}var rS=Symbol();function G$(e){return xp(this,e,new Map)}function xp(e,t,r){let i={this:eS(e),target:eS(t)};if(i.target.node!==i.this.node)return Z$(e,i.target,r);let s={target:t.getAncestry(),this:e.getAncestry()};if(s.target.includes(e))return"after";if(s.this.includes(t))return"before";let n,a={target:0,this:0};for(;!n&&a.this<s.this.length;){let f=s.this[a.this];a.target=s.target.indexOf(f),a.target>=0?n=f:a.this++}if(!n)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(tS(s.this,a.this-1)||tS(s.target,a.target-1))return"unknown";let o={this:s.this[a.this-1],target:s.target[a.target-1]};if(o.target.listKey&&o.this.listKey&&o.target.container===o.this.container)return o.target.key>o.this.key?"before":"after";let l=D$[n.type],u={this:l.indexOf(o.this.parentKey),target:l.indexOf(o.target.parentKey)};return u.target>u.this?"before":"after"}function Q$(e,t,r){if(t.isFunctionDeclaration()){if(t.parentPath.isExportDeclaration())return"unknown"}else return xp(e,t,r)==="before"?"before":"unknown";let i=t.scope.getBinding(t.node.id.name);if(!i.references)return"before";let s=i.referencePaths,n;for(let a of s){if(!!a.find(u=>u.node===t.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return"unknown";let l=xp(e,a,r);if(n&&n!==l)return"unknown";n=l}return n}function Z$(e,t,r){let i=r.get(e.node),s;if(!i)r.set(e.node,i=new Map);else if(s=i.get(t.node))return s===rS?"unknown":s;i.set(t.node,rS);let n=Q$(e,t,r);return i.set(t.node,n),n}function eJ(e,t){return sS.call(this,e,t)||this}function sS(e,t){var r;if(!((r=t)!=null&&r.includes(this)))if(t=t||[],t.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){let i=this.scope.getBinding(this.node.name);if(!i||!i.constant||i.kind==="module")return;if(i.path!==this){let s=i.path.resolve(e,t);return this.find(n=>n.node===s.node)?void 0:s}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){let i=this.toComputedKey();if(!F$(i))return;let s=i.value,n=this.get("object").resolve(e,t);if(n.isObjectExpression()){let a=n.get("properties");for(let o of a){if(!o.isProperty())continue;let l=o.get("key"),u=o.isnt("computed")&&l.isIdentifier({name:s});if(u=u||l.isLiteral({value:s}),u)return o.get("value").resolve(e,t)}}else if(n.isArrayExpression()&&!isNaN(+s)){let o=n.get("elements")[s];if(o)return o.resolve(e,t)}}}}function tJ(){if(this.isIdentifier()){let e=this.scope.getBinding(this.node.name);return e?e.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(e=>e.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){let{operator:e}=this.node;return e!=="in"&&e!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral():!1}function rJ(){return!!(this.isProgram()?this:this.parentPath).find(r=>{if(r.isProgram({sourceType:"module"})||r.isClass())return!0;if(r.isArrowFunctionExpression()&&!r.get("body").isBlockStatement())return!1;let i;if(r.isFunction())i=r.node.body;else if(r.isProgram())i=r.node;else return!1;for(let s of i.directives)if(s.value.value==="use strict")return!0;return!1})}});var cS=N(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt._getKey=lS;vt._getPattern=uS;vt.get=gJ;vt.getAllNextSiblings=TJ;vt.getAllPrevSiblings=SJ;vt.getAssignmentIdentifiers=xJ;vt.getBindingIdentifierPaths=PJ;vt.getBindingIdentifiers=bJ;vt.getCompletionRecords=dJ;vt.getNextSibling=yJ;vt.getOpposite=cJ;vt.getOuterBindingIdentifierPaths=AJ;vt.getOuterBindingIdentifiers=EJ;vt.getPrevSibling=mJ;vt.getSibling=hJ;var Ep=Or(),iJ=ye(),{getAssignmentIdentifiers:sJ,getBindingIdentifiers:oS,getOuterBindingIdentifiers:nJ,numericLiteral:aJ,unaryExpression:oJ}=iJ,Pp=0,Ys=1;function lJ(e){return{type:Pp,path:e}}function uJ(e){return{type:Ys,path:e}}function cJ(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function Zi(e,t,r){return e&&t.push(...es(e,r)),t}function pJ(e,t,r){let i=[];for(let s=0;s<e.length;s++){let n=e[s],a=es(n,r),o=[],l=[];for(let u of a)u.type===Pp&&o.push(u),u.type===Ys&&l.push(u);o.length&&(i=o),t.push(...l)}return t.push(...i),t}function fJ(e){e.forEach(t=>{t.type=Ys})}function bp(e,t){e.forEach(r=>{r.path.isBreakStatement({label:null})&&(t?r.path.replaceWith(oJ("void",aJ(0))):r.path.remove())})}function aS(e,t){let r=[];if(t.canHaveBreak){let i=[];for(let s=0;s<e.length;s++){let n=e[s],a=Object.assign({},t,{inCaseClause:!1});n.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;let o=es(n,a);if(o.length>0&&o.every(l=>l.type===Ys)){i.length>0&&o.every(l=>l.path.isBreakStatement({label:null}))?(fJ(i),r.push(...i),i.some(l=>l.path.isDeclaration())&&(r.push(...o),t.shouldPreserveBreak||bp(o,!0)),t.shouldPreserveBreak||bp(o,!1)):(r.push(...o),!t.shouldPopulateBreak&&!t.shouldPreserveBreak&&bp(o,!0));break}if(s===e.length-1)r.push(...o);else{i=[];for(let l=0;l<o.length;l++){let u=o[l];u.type===Ys&&r.push(u),u.type===Pp&&i.push(u)}}}}else if(e.length)for(let i=e.length-1;i>=0;i--){let s=es(e[i],t);if(s.length>1||s.length===1&&!s[0].path.isVariableDeclaration()&&!s[0].path.isEmptyStatement()){r.push(...s);break}}return r}function es(e,t){let r=[];if(e.isIfStatement())r=Zi(e.get("consequent"),r,t),r=Zi(e.get("alternate"),r,t);else{if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return Zi(e.get("body"),r,t);if(e.isProgram()||e.isBlockStatement())return aS(e.get("body"),t);if(e.isFunction())return es(e.get("body"),t);if(e.isTryStatement())r=Zi(e.get("block"),r,t),r=Zi(e.get("handler"),r,t);else{if(e.isCatchClause())return Zi(e.get("body"),r,t);if(e.isSwitchStatement())return pJ(e.get("cases"),r,t);if(e.isSwitchCase())return aS(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:t.shouldPreserveBreak});e.isBreakStatement()?r.push(uJ(e)):r.push(lJ(e))}}return r}function dJ(e=!1){return es(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map(r=>r.path)}function hJ(e){return Ep.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)}function mJ(){return this.getSibling(this.key-1)}function yJ(){return this.getSibling(this.key+1)}function TJ(){let e=this.key,t=this.getSibling(++e),r=[];for(;t.node;)r.push(t),t=this.getSibling(++e);return r}function SJ(){let e=this.key,t=this.getSibling(--e),r=[];for(;t.node;)r.push(t),t=this.getSibling(--e);return r}function gJ(e,t=!0){t===!0&&(t=this.context);let r=e.split(".");return r.length===1?lS.call(this,e,t):uS.call(this,r,t)}function lS(e,t){let r=this.node,i=r[e];return Array.isArray(i)?i.map((s,n)=>Ep.default.get({listKey:e,parentPath:this,parent:r,container:i,key:n}).setContext(t)):Ep.default.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)}function uS(e,t){let r=this;for(let i of e)i==="."?r=r.parentPath:Array.isArray(r)?r=r[i]:r=r.get(i,t);return r}function xJ(){return sJ(this.node)}function bJ(e){return oS(this.node,e)}function EJ(e){return nJ(this.node,e)}function PJ(e=!1,t=!1){let i=[this],s=Object.create(null);for(;i.length;){let n=i.shift();if(!n||!n.node)continue;let a=oS.keys[n.node.type];if(n.isIdentifier()){e?(s[n.node.name]=s[n.node.name]||[]).push(n):s[n.node.name]=n;continue}if(n.isExportDeclaration()){let o=n.get("declaration");o.isDeclaration()&&i.push(o);continue}if(t){if(n.isFunctionDeclaration()){i.push(n.get("id"));continue}if(n.isFunctionExpression())continue}if(a)for(let o=0;o<a.length;o++){let l=a[o],u=n.get(l);Array.isArray(u)?i.push(...u):u.node&&i.push(u)}}return s}function AJ(e=!1){return this.getBindingIdentifierPaths(e,!0)}});var fS=N(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.addComment=NJ;Ws.addComments=OJ;Ws.shareCommentsWithSiblings=wJ;var vJ=ye(),{addComment:CJ,addComments:IJ}=vJ;function wJ(){if(typeof this.key=="string")return;let e=this.node;if(!e)return;let t=e.trailingComments,r=e.leadingComments;if(!t&&!r)return;let i=this.getSibling(this.key-1),s=this.getSibling(this.key+1),n=!!i.node,a=!!s.node;n&&(r&&i.addComments("trailing",pS(r,i.node.trailingComments)),t&&!a&&i.addComments("trailing",t)),a&&(t&&s.addComments("leading",pS(t,s.node.leadingComments)),r&&!n&&s.addComments("leading",r))}function pS(e,t){if(!(t!=null&&t.length))return e;let r=new Set(t);return e.filter(i=>!r.has(i))}function NJ(e,t,r){CJ(this.node,e,t,r)}function OJ(e,t){IJ(this.node,e,t)}});var Or=N(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.default=Er.SHOULD_STOP=Er.SHOULD_SKIP=Er.REMOVED=void 0;var _J=Wa(),kJ=uf(),DJ=mr(),LJ=du(),mS=ye(),ka=mS,MJ=fi(),FJ=Gm(),xr=Qm(),ts=Sy(),rs=pc(),dS=kT(),Ai=ZT(),ut=nS(),yS=Yt(),at=yS,is=da(),br=ha(),Lt=cS(),Ap=fS(),BJ=au(),{validate:RJ}=mS,hS=kJ("babel"),Zre=Er.REMOVED=1,eie=Er.SHOULD_STOP=2,tie=Er.SHOULD_SKIP=4,Lr=Er.default=class TS{constructor(t,r){this.contexts=[],this.state=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=r,this.hub=t,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(t){t?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(t){t?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(t){t?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:t,parentPath:r,parent:i,container:s,listKey:n,key:a}){if(!t&&r&&(t=r.hub),!i)throw new Error("To get a node path the parent needs to exist");let o=s[a],l=MJ.getOrCreateCachedPaths(i,r),u=l.get(o);return u||(u=new TS(t,i),o&&l.set(o,u)),yS.setup.call(u,r,s,n,a),u}getScope(t){return this.isScope()?new LJ.default(this):t}setData(t,r){return this.data==null&&(this.data=Object.create(null)),this.data[t]=r}getData(t,r){this.data==null&&(this.data=Object.create(null));let i=this.data[t];return i===void 0&&r!==void 0&&(i=this.data[t]=r),i}hasNode(){return this.node!=null}buildCodeFrameError(t,r=SyntaxError){return this.hub.buildError(this.node,t,r)}traverse(t,r){(0,DJ.default)(this.node,t,this.scope,r,this)}set(t,r){RJ(this.node,t,r),this.node[t]=r}getPathLocation(){let t=[],r=this;do{let i=r.key;r.inList&&(i=`${r.listKey}[${i}]`),t.unshift(i)}while(r=r.parentPath);return t.join(".")}debug(t){hS.enabled&&hS(`${this.getPathLocation()} ${this.type}: ${t}`)}toString(){return(0,FJ.default)(this.node).code}get inList(){return!!this.listKey}set inList(t){t||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},jJ={findParent:xr.findParent,find:xr.find,getFunctionParent:xr.getFunctionParent,getStatementParent:xr.getStatementParent,getEarliestCommonAncestorFrom:xr.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:xr.getDeepestCommonAncestorFrom,getAncestry:xr.getAncestry,isAncestor:xr.isAncestor,isDescendant:xr.isDescendant,inType:xr.inType,getTypeAnnotation:ts.getTypeAnnotation,isBaseType:ts.isBaseType,couldBeBaseType:ts.couldBeBaseType,baseTypeStrictlyMatches:ts.baseTypeStrictlyMatches,isGenericType:ts.isGenericType,replaceWithMultiple:rs.replaceWithMultiple,replaceWithSourceString:rs.replaceWithSourceString,replaceWith:rs.replaceWith,replaceExpressionWithStatements:rs.replaceExpressionWithStatements,replaceInline:rs.replaceInline,evaluateTruthy:dS.evaluateTruthy,evaluate:dS.evaluate,toComputedKey:Ai.toComputedKey,ensureBlock:Ai.ensureBlock,unwrapFunctionEnvironment:Ai.unwrapFunctionEnvironment,arrowFunctionToExpression:Ai.arrowFunctionToExpression,splitExportDeclaration:Ai.splitExportDeclaration,ensureFunctionName:Ai.ensureFunctionName,matchesPattern:ut.matchesPattern,isStatic:ut.isStatic,isNodeType:ut.isNodeType,canHaveVariableDeclarationOrExpression:ut.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:ut.canSwapBetweenExpressionAndStatement,isCompletionRecord:ut.isCompletionRecord,isStatementOrBlock:ut.isStatementOrBlock,referencesImport:ut.referencesImport,getSource:ut.getSource,willIMaybeExecuteBefore:ut.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:ut._guessExecutionStatusRelativeTo,resolve:ut.resolve,isConstantExpression:ut.isConstantExpression,isInStrictMode:ut.isInStrictMode,isDenylisted:at.isDenylisted,visit:at.visit,skip:at.skip,skipKey:at.skipKey,stop:at.stop,setContext:at.setContext,requeue:at.requeue,requeueComputedKeyAndDecorators:at.requeueComputedKeyAndDecorators,remove:is.remove,insertBefore:br.insertBefore,insertAfter:br.insertAfter,unshiftContainer:br.unshiftContainer,pushContainer:br.pushContainer,getOpposite:Lt.getOpposite,getCompletionRecords:Lt.getCompletionRecords,getSibling:Lt.getSibling,getPrevSibling:Lt.getPrevSibling,getNextSibling:Lt.getNextSibling,getAllNextSiblings:Lt.getAllNextSiblings,getAllPrevSiblings:Lt.getAllPrevSiblings,get:Lt.get,getAssignmentIdentifiers:Lt.getAssignmentIdentifiers,getBindingIdentifiers:Lt.getBindingIdentifiers,getOuterBindingIdentifiers:Lt.getOuterBindingIdentifiers,getBindingIdentifierPaths:Lt.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:Lt.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:Ap.shareCommentsWithSiblings,addComment:Ap.addComment,addComments:Ap.addComments};Object.assign(Lr.prototype,jJ);Lr.prototype.arrowFunctionToShadowed=Ai.arrowFunctionToShadowed;Object.assign(Lr.prototype,{has:ut.has,is:ut.is,isnt:ut.isnt,equals:ut.equals,hoist:br.hoist,updateSiblingKeys:br.updateSiblingKeys,call:at.call,isBlacklisted:at.isBlacklisted,setScope:at.setScope,resync:at.resync,popContext:at.popContext,pushContext:at.pushContext,setup:at.setup,setKey:at.setKey});Lr.prototype._guessExecutionStatusRelativeToDifferentFunctions=ut._guessExecutionStatusRelativeTo;Lr.prototype._guessExecutionStatusRelativeToDifferentFunctions=ut._guessExecutionStatusRelativeTo;Object.assign(Lr.prototype,{_getTypeAnnotation:ts._getTypeAnnotation,_replaceWith:rs._replaceWith,_resolve:ut._resolve,_call:at._call,_resyncParent:at._resyncParent,_resyncKey:at._resyncKey,_resyncList:at._resyncList,_resyncRemoved:at._resyncRemoved,_getQueueContexts:at._getQueueContexts,_removeFromScope:is._removeFromScope,_callRemovalHooks:is._callRemovalHooks,_remove:is._remove,_markRemoved:is._markRemoved,_assertUnremoved:is._assertUnremoved,_containerInsert:br._containerInsert,_containerInsertBefore:br._containerInsertBefore,_containerInsertAfter:br._containerInsertAfter,_verifyNodeList:br._verifyNodeList,_getKey:Lt._getKey,_getPattern:Lt._getPattern});for(let e of ka.TYPES){let t=`is${e}`,r=ka[t];Lr.prototype[t]=function(i){return r(this.node,i)},Lr.prototype[`assert${e}`]=function(i){if(!r(this.node,i))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(Lr.prototype,BJ);for(let e of Object.keys(_J))e.startsWith("_")||ka.TYPES.includes(e)||ka.TYPES.push(e)});var Cp=N(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.default=void 0;var vp=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(t,r,i=TypeError){return new i(r)}};Da.default=vp});var SS=N(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.default=void 0;var qJ=Or(),UJ=ye(),Ip=Yt(),KJ=Cp(),{VISITOR_KEYS:VJ}=UJ,wp=class{constructor(t,r,i,s){this.queue=null,this.priorityQueue=null,this.parentPath=s,this.scope=t,this.state=i,this.opts=r}shouldVisit(t){let r=this.opts;if(r.enter||r.exit||r[t.type])return!0;let i=VJ[t.type];if(!(i!=null&&i.length))return!1;for(let s of i)if(t[s])return!0;return!1}create(t,r,i,s){let{parentPath:n}=this,a=n==null?t.type==="Program"||t.type==="File"?new KJ.default:void 0:n.hub;return qJ.default.get({parentPath:n,parent:t,container:r,key:i,listKey:s,hub:a})}maybeQueue(t,r){this.queue&&(r?this.queue.push(t):this.priorityQueue.push(t))}visitMultiple(t,r,i){if(t.length===0)return!1;let s=[];for(let n=0;n<t.length;n++){let a=t[n];a&&this.shouldVisit(a)&&s.push(this.create(r,t,n,i))}return this.visitQueue(s)}visitSingle(t,r){return this.shouldVisit(t[r])?this.visitQueue([this.create(t,t,r)]):!1}visitQueue(t){this.queue=t,this.priorityQueue=[];let r=new WeakSet,i=!1,s=0;for(;s<t.length;){let n=t[s];if(s++,Ip.resync.call(n),(n.contexts.length===0||n.contexts[n.contexts.length-1]!==this)&&Ip.pushContext.call(n,this),n.key===null)continue;let{node:a}=n;if(!r.has(a)){if(a&&r.add(a),n.visit()){i=!0;break}if(this.priorityQueue.length&&(i=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=t,i))break}}for(let n=0;n<s;n++)Ip.popContext.call(t[n]);return this.queue=null,i}visit(t,r){let i=t[r];return i?Array.isArray(i)?this.visitMultiple(i,t,r):this.visitSingle(t,r):!1}};La.default=wp});var Fn=N(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.traverseNode=YJ;var $J=SS(),nie=Or(),JJ=ye(),aie=Yt(),{VISITOR_KEYS:XJ}=JJ;function YJ(e,t,r,i,s,n,a){let o=XJ[e.type];if(!o)return!1;let l=new $J.default(r,t,i,s);if(a)return n!=null&&n[s.parentKey]?!1:l.visitQueue([s]);for(let u of o)if(!(n!=null&&n[u])&&l.visit(e,u))return!0;return!1}});var Yt=N(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt._call=_p;tt._forceSetScope=tX;tt._getQueueContexts=cX;tt._resyncKey=AS;tt._resyncList=vS;tt._resyncParent=PS;tt._resyncRemoved=sX;tt.call=Op;tt.isDenylisted=bS;tt.popContext=nX;tt.pushContext=aX;tt.requeue=lX;tt.requeueComputedKeyAndDecorators=uX;tt.resync=iX;tt.setContext=rX;tt.setKey=Ma;tt.setScope=ES;tt.setup=oX;tt.skip=QJ;tt.skipKey=ZJ;tt.stop=eX;tt.visit=GJ;var WJ=Fn(),gS=Or(),HJ=da(),zJ=ye();function Op(e){let t=this.opts;if(this.debug(e),this.node&&_p.call(this,t[e]))return!0;if(this.node){var r;return _p.call(this,(r=t[this.node.type])==null?void 0:r[e])}return!1}function _p(e){if(!e)return!1;for(let t of e){if(!t)continue;let r=this.node;if(!r)return!0;let i=t.call(this.state,this,this.state);if(i&&typeof i=="object"&&typeof i.then=="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(i)throw new Error(`Unexpected return value from visitor method ${t}`);if(this.node!==r||this._traverseFlags>0)return!0}return!1}function bS(){var e;let t=(e=this.opts.denylist)!=null?e:this.opts.blacklist;return t?.includes(this.node.type)}tt.isBlacklisted=bS;function xS(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function GJ(){var e,t;if(!this.node||this.isDenylisted()||(e=(t=this.opts).shouldSkip)!=null&&e.call(t,this))return!1;let r=this.context;return this.shouldSkip||Op.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(xS(this,r),this.debug("Recursing into..."),this.shouldStop=(0,WJ.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),xS(this,r),Op.call(this,"exit"),this.shouldStop)}function QJ(){this.shouldSkip=!0}function ZJ(e){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[e]=!0}function eX(){this._traverseFlags|=gS.SHOULD_SKIP|gS.SHOULD_STOP}function tX(){var e;let t=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&t.isMethod()||this.key==="discriminant"&&t.isSwitchStatement())&&(t=t.parentPath);let r;for(;t&&!r;)r=t.scope,t=t.parentPath;this.scope=this.getScope(r),(e=this.scope)==null||e.init()}function ES(){var e,t;if((e=this.opts)!=null&&e.noScope)return;let r=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&r.isMethod()||this.key==="discriminant"&&r.isSwitchStatement())&&(r=r.parentPath);let i;for(;r&&!i;){var s;if((s=r.opts)!=null&&s.noScope)return;i=r.scope,r=r.parentPath}this.scope=this.getScope(i),(t=this.scope)==null||t.init()}function rX(e){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts),ES.call(this),this}function iX(){this.removed||(PS.call(this),vS.call(this),AS.call(this))}function PS(){this.parentPath&&(this.parent=this.parentPath.node)}function AS(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node){Ma.call(this,e);return}}else for(let e of Object.keys(this.container))if(this.container[e]===this.node){Ma.call(this,e);return}this.key=null}}function vS(){if(!this.parent||!this.inList)return;let e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function sX(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&HJ._markRemoved.call(this)}function nX(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function aX(e){this.contexts.push(e),this.setContext(e)}function oX(e,t,r,i){this.listKey=r,this.container=t,this.parentPath=e||this.parentPath,Ma.call(this,i)}function Ma(e){var t;this.key=e,this.node=this.container[this.key],this.type=(t=this.node)==null?void 0:t.type}function lX(e=this){if(e.removed)return;let t=this.contexts;for(let r of t)r.maybeQueue(e)}function uX(){let{context:e,node:t}=this;if(!zJ.isPrivate(t)&&t.computed&&e.maybeQueue(this.get("key")),t.decorators)for(let r of this.get("decorators"))e.maybeQueue(r)}function cX(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,!!e);)t=e.contexts;return t}});var mr=N(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Object.defineProperty(Mr,"Hub",{enumerable:!0,get:function(){return mX.default}});Object.defineProperty(Mr,"NodePath",{enumerable:!0,get:function(){return dX.default}});Object.defineProperty(Mr,"Scope",{enumerable:!0,get:function(){return hX.default}});Mr.visitors=Mr.default=void 0;Yt();var zs=bs();Mr.visitors=zs;var pX=ye(),fX=fi(),CS=Fn(),dX=Or(),hX=du(),mX=Cp(),{VISITOR_KEYS:yX,removeProperties:TX,traverseFast:Hs}=pX;function ur(e,t={},r,i,s,n){if(e){if(!t.noScope&&!r&&e.type!=="Program"&&e.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!s&&n)throw new Error("visitSelf can only be used when providing a NodePath.");yX[e.type]&&(zs.explode(t),(0,CS.traverseNode)(e,t,r,i,s,void 0,n))}}var uie=Mr.default=ur;ur.visitors=zs;ur.verify=zs.verify;ur.explode=zs.explode;ur.cheap=function(e,t){Hs(e,t)};ur.node=function(e,t,r,i,s,n){(0,CS.traverseNode)(e,t,r,i,s,n)};ur.clearNode=function(e,t){TX(e,t)};ur.removeProperties=function(e,t){return Hs(e,ur.clearNode,t),e};ur.hasType=function(e,t,r){return r!=null&&r.includes(e.type)?!1:e.type===t?!0:Hs(e,function(i){if(r!=null&&r.includes(i.type))return Hs.skip;if(i.type===t)return Hs.stop})};ur.cache=fX});var Vp=rr(mr(),1),St=rr(ye(),1);var Dp=rr(mr(),1),ss=rr(ye(),1);var IS=rr(Ca(),1),kp=rr(mr(),1),pie=kp.default.default??kp.default;function Fr(e){return(0,IS.parse)(e,{sourceType:"module",plugins:["typescript","jsx"],errorRecovery:!0})}function wS(e){return e.errors??[]}var SX=Dp.default.default??Dp.default,kS=/(^|\/)page\.tsx$/,gX=/(^|\/)layout\.tsx$/;function NS(e,t){return`/${e.slice(t.length+1).split("/").slice(0,-1).filter(s=>!(s.startsWith("(")&&s.endsWith(")"))).map(s=>s.startsWith("[")&&s.endsWith("]")?`:${s.slice(1,-1).replace(/^\.\.\./,"")}`:s).join("/")}`.replace(/\/{2,}/g,"/").replace(/(.)\/$/,"$1")}function OS(e){let t=Fr(e),r;return SX(t,{ExportDefaultDeclaration(i){let s=i.node.declaration;ss.isFunctionDeclaration(s)&&s.id?r=s.id.name:ss.isIdentifier(s)?r=s.name:ss.isClassDeclaration(s)&&s.id&&(r=s.id.name)}}),r}function _S(e){return`${e.split("/").filter(Boolean).map(r=>r.replace(/^:/,"")).map(r=>r.replace(/(^|[-_])(\w)/g,(i,s,n)=>n.toUpperCase())).join("")||"Root"}Page`}function DS(e){let t=new Set;for(let r of e){if(!kS.test(r.file))continue;let i=r.file.split("/"),s=i.lastIndexOf("app",i.length-2);s>=0&&t.add(i.slice(0,s+1).join("/"))}return[...t].sort((r,i)=>r.split("/").length-i.split("/").length||r.localeCompare(i))[0]}function LS(e){return e.some(t=>t.source.includes("<Routes"))?!1:DS(e)!==void 0}function MS(e,t){let r=t??DS(e);if(!r)throw new Error("appRouterRoutes: no app/ directory with a page.tsx found");let i=e.filter(a=>a.file===r||a.file.startsWith(`${r}/`)),s=[],n=[];for(let a of i)if(kS.test(a.file)){let o=NS(a.file,r);s.push({path:o,file:a.file,component:OS(a.source)??_S(o)})}else if(gX.test(a.file)){let o=NS(a.file,r);n.push({file:a.file,component:OS(a.source)??`${_S(o).replace(/Page$/,"")}Layout`,prefix:o})}return s.sort((a,o)=>a.path.localeCompare(o.path)),n.sort((a,o)=>a.prefix.localeCompare(o.prefix)),{appDir:r,routes:s,layouts:n}}function FS(e,t){return e==="/"||t===e||t.startsWith(`${e}/`)}var Mp=rr(mr(),1),ze=rr(ye(),1);var BS=Mp.default.default??Mp.default,xX=e=>e.split("/").slice(0,-1).join("/");function RS(e){let t=[];for(let r of e)r===""||r==="."||(r===".."?t.pop():t.push(r));return t.join("/")}function Fa(e,t,r,i={}){let s;if(e.startsWith("."))s=RS(`${xX(t)}/${e}`.split("/"));else for(let[n,a]of Object.entries(i))if(e.startsWith(n)){s=RS(`${a}/${e.slice(n.length)}`.split("/"));break}if(s!==void 0){for(let n of[`${s}.tsx`,`${s}.ts`,`${s}/index.tsx`,`${s}/index.ts`])if(r.has(n))return n}}function Lp(e,t){if(typeof t.start=="number"&&typeof t.end=="number")return e.slice(t.start,t.end).replace(/\s+/g," ").trim()}function bX(e,t){let r=!1,i=!1,s,n,a=e,o=e.parentPath;for(;o;){let l=o.node;if(r||(ze.isLogicalExpression(l)&&(l.operator==="&&"||l.operator==="||")&&l.right===a.node?(r=!0,s=Lp(t,l.left)):ze.isConditionalExpression(l)&&(l.consequent===a.node||l.alternate===a.node)&&(r=!0,s=l.alternate===a.node?`!(${Lp(t,l.test)??"?"})`:Lp(t,l.test))),ze.isArrowFunctionExpression(l)||ze.isFunctionExpression(l)){let u=o.parentPath?.node;if(!!u&&ze.isCallExpression(u)&&ze.isMemberExpression(u.callee)&&ze.isIdentifier(u.callee.property)&&(u.callee.property.name==="map"||u.callee.property.name==="flatMap")&&u.arguments.some(h=>h===l))i=!0;else{let h=o.parentPath?.node;ze.isVariableDeclarator(h)&&ze.isIdentifier(h.id)&&(n=h.id.name);break}}else if(ze.isFunctionDeclaration(l)){n=l.id?.name;break}a=o,o=o.parentPath}return{conditional:r,repeated:i,...s?{conditionSource:s}:{},...n?{renderedIn:n}:{}}}function jS(e,t,r,i={}){let s=Fr(t),n=new Map;BS(s,{ImportDeclaration(o){let l=o.node.source.value;for(let u of o.node.specifiers)(ze.isImportDefaultSpecifier(u)||ze.isImportNamespaceSpecifier(u)||ze.isImportSpecifier(u))&&n.set(u.local.name,l)}});let a=[];return BS(s,{JSXOpeningElement(o){let l=o.node.name;if(!ze.isJSXIdentifier(l)||!/^[A-Z]/.test(l.name))return;let u=n.get(l.name);if(!u)return;let f=Fa(u,e,r,i);if(!f||f===e)return;let h=bX(o,t),g=a.find(b=>b.componentName===l.name&&b.file===f&&b.renderedIn===h.renderedIn);if(g){h.conditional||(g.conditional=!1,delete g.conditionSource),g.repeated||=h.repeated;return}a.push({componentName:l.name,file:f,...h})}}),a}var qp=rr(mr(),1),W=rr(ye(),1);var se=rr(ye(),1),EX={select:{method:"SELECT",kind:"read"},insert:{method:"INSERT",kind:"create"},upsert:{method:"UPSERT",kind:"update"},update:{method:"UPDATE",kind:"update"},delete:{method:"DELETE",kind:"delete"},rpc:{method:"RPC",kind:"rpc"}},qS=new Set(["get","post","put","patch","delete","head"]),PX=new Set(["loc","start","end","range","leadingComments","trailingComments","innerComments","comments"]);function US(e){return typeof e=="object"&&e!==null&&typeof e.type=="string"}function Gs(e,t){if(typeof t.start=="number"&&typeof t.end=="number")return e.slice(t.start,t.end).replace(/\s+/g," ").trim()}function AX(e){switch(e){case"GET":case"HEAD":return"read";case"POST":return"create";case"PUT":case"PATCH":return"update";case"DELETE":return"delete";default:return"unknown"}}function vX(e){let r=(e.split(/[?#]/)[0]??e).split("/").filter(Boolean).filter(i=>!["api","v1","v2"].includes(i));for(let i of r)if(!i.startsWith(":"))return i}function Ra(e,t){if(!e)return{static:!1};if(se.isStringLiteral(e))return{value:e.value,static:!0};if(se.isTemplateLiteral(e)){let r="";e.quasis.forEach((s,n)=>{r+=s.value.cooked??s.value.raw;let a=e.expressions[n];if(a){let o=se.isIdentifier(a)?a.name:(se.isMemberExpression(a)||se.isOptionalMemberExpression(a))&&se.isIdentifier(a.property)?a.property.name:"param";r+=`:${o}`}});let i=e.expressions.length>0;return{value:r,static:!i,...i?{raw:Gs(t,e)}:{}}}return{static:!1,raw:Gs(t,e)}}function CX(e){let t=e;for(;t;)if(se.isCallExpression(t)||se.isOptionalCallExpression(t)){let r=t.callee;if((se.isMemberExpression(r)||se.isOptionalMemberExpression(r))&&se.isIdentifier(r.property)&&r.property.name==="from")return t;t=se.isMemberExpression(r)||se.isOptionalMemberExpression(r)?r.object:null}else se.isMemberExpression(t)||se.isOptionalMemberExpression(t)?t=t.object:t=null}function IX(e,t){let r=t.getBinding(e);if(!r||r.kind!=="module")return;let i=r.path.parent;if(i&&se.isImportDeclaration(i)&&se.isStringLiteral(i.source))return i.source.value}function wX(e){let t=e.arguments[1];if(!(!t||!se.isObjectExpression(t)))for(let r of t.properties){if(!se.isObjectProperty(r)||r.computed)continue;if((se.isIdentifier(r.key)?r.key.name:se.isStringLiteral(r.key)?r.key.value:"")==="method"&&se.isStringLiteral(r.value))return r.value.value.toUpperCase()}}function Ba(e,t,r,i,s,n){let a=Ra(e.arguments[0],i),o=r??wX(e)??"GET",l=a.value?vX(a.value):void 0;return{id:`${o} ${a.value??"?"}`,method:o,...a.value?{endpoint:a.value}:{},endpointStatic:a.static,...a.raw?{endpointRaw:a.raw}:{},client:t,...l?{resource:l}:{},resourceStatic:l!==void 0,effectKind:AX(o),...n?{guardSource:n}:{},file:s,line:e.loc?.start.line??0}}function NX(e,t,r,i,s){let n=s.length>0?s.join(" && "):void 0,a=e.loc?.start.line??0,o=e.callee;if((se.isMemberExpression(o)||se.isOptionalMemberExpression(o))&&se.isIdentifier(o.property)){let l=EX[o.property.name];if(l){if(o.property.name==="rpc"){let f=e.arguments[0],h=se.isStringLiteral(f)?f.value:void 0;return{id:`RPC ${h??"?"}`,method:"RPC",endpointStatic:!1,client:"supabase",...h?{resource:h}:{},resourceStatic:h!==void 0,effectKind:"rpc",...n?{guardSource:n}:{},file:i,line:a}}let u=CX(o.object);if(u){let f=u.arguments[0],h=se.isStringLiteral(f)?f.value:void 0;return{id:`${l.method} ${h??"?"}`,method:l.method,endpointStatic:!1,client:"supabase",...h?{resource:h}:{},resourceStatic:h!==void 0,effectKind:l.kind,...n?{guardSource:n}:{},file:i,line:a}}}}if(se.isIdentifier(o)&&o.name==="fetch")return Ba(e,"fetch",void 0,r,i,n);if(se.isIdentifier(o)&&o.name==="axios")return Ba(e,"axios",void 0,r,i,n);if(se.isMemberExpression(o)&&se.isIdentifier(o.object)&&o.object.name==="axios"&&se.isIdentifier(o.property)&&qS.has(o.property.name))return Ba(e,"axios",o.property.name.toUpperCase(),r,i,n);if(se.isMemberExpression(o)&&se.isIdentifier(o.property)&&qS.has(o.property.name)){let l=e.arguments[0];if(l&&(se.isStringLiteral(l)||se.isTemplateLiteral(l)))return Ba(e,"api-helper",o.property.name.toUpperCase(),r,i,n)}if(se.isIdentifier(o)&&o.name!=="fetch"){let l=IX(o.name,t);if(l)return{id:`external ${l}#${o.name}`,method:"unknown",endpointStatic:!1,client:"api-helper",external:l,resourceStatic:!1,effectKind:"unknown",...n?{guardSource:n}:{},file:i,line:a}}}function OX(e,t){if(e==="navigate")return!0;let i=t.getBinding(e)?.path.node;return!!(i&&se.isVariableDeclarator(i)&&i.init&&se.isCallExpression(i.init)&&se.isIdentifier(i.init.callee)&&i.init.callee.name==="useNavigate")}function ja(e,t,r,i,s,n=[]){let a=[],o=[],l=new Set,u=new Set,f=b=>{if(!b)return;let E=`${b.id}|${b.guardSource??""}|${b.via??""}`;l.has(E)||(l.add(E),a.push(b))},h=b=>{let E=`${b.to??b.raw??"?"}|${b.guardSource??""}|${b.via??""}`;u.has(E)||(u.add(E),o.push(b))},g=(b,E)=>{if(se.isCallExpression(b)){if(f(NX(b,t,r,i,E)),se.isIdentifier(b.callee)&&OX(b.callee.name,t)){let w=Ra(b.arguments[0],r);h({...w.value?{to:w.value}:{},toStatic:w.static,...w.raw?{raw:w.raw}:{},...E.length>0?{guardSource:E.join(" && ")}:{}})}if(s&&se.isIdentifier(b.callee)){let w=t.getBinding(b.callee.name);if(w&&["hoisted","const","let","var","local"].includes(w.kind)){let I=w.path.node,k;if(se.isFunctionDeclaration(I)?k=I.body:se.isVariableDeclarator(I)&&I.init&&(se.isArrowFunctionExpression(I.init)||se.isFunctionExpression(I.init))&&(k=I.init.body),k){let Y=ja(k,w.path.scope,r,i,!1,E);for(let B of Y.effects)f({...B,via:B.via??b.callee.name});for(let B of Y.navTargets)h({...B,via:B.via??b.callee.name})}}}}if(se.isIfStatement(b)){let w=Gs(r,b.test)??"?";g(b.test,E),g(b.consequent,[...E,w]),b.alternate&&g(b.alternate,[...E,`!(${w})`]);return}if(se.isConditionalExpression(b)){let w=Gs(r,b.test)??"?";g(b.test,E),g(b.consequent,[...E,w]),g(b.alternate,[...E,`!(${w})`]);return}if(se.isLogicalExpression(b)&&(b.operator==="&&"||b.operator==="||")){let w=Gs(r,b.left)??"?";g(b.left,E),g(b.right,[...E,b.operator==="&&"?w:`!(${w})`]);return}for(let w of Object.keys(b)){if(PX.has(w))continue;let A=b[w];if(Array.isArray(A))for(let I of A)US(I)&&g(I,E);else US(A)&&g(A,E)}};return g(e,n),{effects:a,navTargets:o}}var _X=qp.default.default??qp.default,kX=new Set(["button","input","select","textarea","a","form"]),$S=new Set(["Link","NavLink"]),DX=new Set(["input","select","textarea","button"]),LX=new Set(["button","link","checkbox","radio","switch","tab","menuitem","menuitemcheckbox","menuitemradio","textbox","combobox","searchbox","slider","spinbutton","option","treeitem"]);function Up(e){let t=e.name;if(W.isJSXIdentifier(t))return t.name;if(W.isJSXNamespacedName(t))return`${t.namespace.name}:${t.name.name}`}function JS(e,t){let r=Up(e);return!!r&&r.toLowerCase()===t}function Kp(e){if(W.isJSXIdentifier(e))return e.name;if(W.isJSXNamespacedName(e))return`${e.namespace.name}:${e.name.name}`}function vi(e,t){for(let r of e.attributes)if(W.isJSXAttribute(r)&&Kp(r.name)===t)return r}function Zs(e,t){if(typeof t.start=="number"&&typeof t.end=="number")return e.slice(t.start,t.end).trim()}function XS(e,t){let r="";return e.quasis.forEach((i,s)=>{r+=i.value.cooked??i.value.raw;let n=e.expressions[s];if(n){let a=(Zs(t,n)??"").trim();r+=`{${a||"\u2026"}}`}}),r.replace(/\s+/g," ").trim()}function Qs(e,t,r){let i=[],s=!0;for(let n of e.children)if(W.isJSXText(n)){let a=n.value.replace(/\s+/g," ").trim();a&&i.push(a)}else if(W.isJSXExpressionContainer(n)){let a=n.expression;W.isStringLiteral(a)?i.push(a.value):W.isTemplateLiteral(a)?(i.push(XS(a,t)),a.expressions.length>0&&(s=!1)):W.isJSXEmptyExpression(a)||(i.push(`{${(Zs(t,a)??"").trim()||"\u2026"}}`),s=!1)}else if(W.isJSXElement(n)){let a=Up(n.openingElement);if(r&&a&&DX.has(a.toLowerCase()))continue;let o=Qs(n,t,r);o.text&&i.push(o.text),o.static||(s=!1)}return{text:i.join(" ").replace(/\s+/g," ").trim(),static:s}}function qa(e,t){let r=e.value;if(r==null)return{text:"",static:!0};if(W.isStringLiteral(r))return{text:r.value,static:!0};if(W.isJSXExpressionContainer(r)){let i=r.expression;return W.isStringLiteral(i)?{text:i.value,static:!0}:W.isTemplateLiteral(i)?{text:XS(i,t),static:i.expressions.length===0}:W.isJSXEmptyExpression(i)?{text:"",static:!1}:{text:`{${(Zs(t,i)??"").trim()||"\u2026"}}`,static:!1}}return{text:"",static:!1}}function MX(e){let t={},r=!1;for(let i of e.attributes){if(W.isJSXSpreadAttribute(i)){r=!0;continue}if(!W.isJSXAttribute(i))continue;let s=Kp(i.name);if(!s)continue;let n=i.value;if(n==null){t[s]=!0;continue}if(W.isStringLiteral(n)){t[s]=n.value;continue}if(W.isJSXExpressionContainer(n)){let a=n.expression;W.isStringLiteral(a)||W.isNumericLiteral(a)||W.isBooleanLiteral(a)?t[s]=a.value:W.isTemplateLiteral(a)&&a.expressions.length===0&&(t[s]=a.quasis[0]?.value.cooked??"")}}return{attrs:t,spread:r}}function KS(e,t,r){let i=r.role;if(typeof i=="string")return i;let s=typeof r.type=="string"?r.type:void 0;switch(e){case"button":return"button";case"a":return"href"in r||t==="Link"||t==="NavLink"?"link":void 0;case"select":return"combobox";case"textarea":return"textbox";case"form":return"form";case"input":switch(s){case void 0:case"text":case"email":case"tel":case"url":return"textbox";case"search":return"searchbox";case"checkbox":return"checkbox";case"radio":return"radio";case"number":return"spinbutton";case"range":return"slider";case"submit":case"button":case"reset":case"image":return"button";default:return}default:return}}function FX(e,t,r){return kX.has(e)||t&&$S.has(t)?!0:typeof r.role=="string"&&LX.has(r.role)}function BX(e){let t=e.parentPath;if(W.isFunctionDeclaration(e.node)&&e.node.id)return e.node.id.name;if(t&&W.isVariableDeclarator(t.node)&&W.isIdentifier(t.node.id))return t.node.id.name}function RX(e,t){let r=!1,i=!1,s,n="<anonymous>",a=e,o=e.parentPath;for(;o;){let l=o.node;if(i||(W.isLogicalExpression(l)&&(l.operator==="&&"||l.operator==="||")&&l.right===a.node?(i=!0,s=Zs(t,l.left)):W.isConditionalExpression(l)&&(l.consequent===a.node||l.alternate===a.node)&&(i=!0,s=Zs(t,l.test))),W.isArrowFunctionExpression(l)||W.isFunctionExpression(l)){let u=o.parentPath?.node;if(!!u&&W.isCallExpression(u)&&W.isMemberExpression(u.callee)&&W.isIdentifier(u.callee.property)&&(u.callee.property.name==="map"||u.callee.property.name==="flatMap")&&u.arguments.some(h=>h===l))r=!0;else{n=BX(o)??n;break}}else if(W.isFunctionDeclaration(l)){n=l.id?.name??n;break}a=o,o=o.parentPath}return{repeated:r,conditional:i,conditionSource:s,ownerComponent:n}}function jX(e){let t=e.findParent(r=>r.isJSXElement()&&JS(r.node.openingElement,"label"));return t?t.node:void 0}function qX(e){let{tag:t,attrs:r,opening:i,jsxEl:s,wrapLabel:n,source:a,idIndex:o,labelForIndex:l}=e,u=vi(i,"aria-labelledby");if(u){let g=qa(u,a);if(g.static&&g.text){let b=[],E=!0,w=!0;for(let A of g.text.split(/\s+/).filter(Boolean)){let I=o.get(A);if(!I){E=!1;continue}let k=Qs(I,a,!0);b.push(k.text),k.static||(w=!1)}if(b.length>0)return{accessibleName:b.join(" ").trim(),nameStatic:E&&w,nameFrom:"aria-labelledby"}}return{accessibleName:`{${g.text||"\u2026"}}`,nameStatic:!1,nameFrom:"aria-labelledby"}}let f=vi(i,"aria-label");if(f){let g=qa(f,a);return{accessibleName:g.text,nameStatic:g.static,nameFrom:"aria-label"}}if(t==="input"||t==="select"||t==="textarea"){let g=typeof r.id=="string"?r.id:void 0;if(g){let b=l.get(g);if(b){let E=Qs(b,a,!0);return{accessibleName:E.text,nameStatic:E.static,nameFrom:"label-for"}}}if(n){let b=Qs(n,a,!0);return{accessibleName:b.text,nameStatic:b.static,nameFrom:"label-wrap"}}}if((t==="button"||t==="a")&&s){let g=Qs(s,a,!0);if(g.text)return{accessibleName:g.text,nameStatic:g.static,nameFrom:"text"}}for(let g of["alt","title"]){let b=vi(i,g);if(b){let E=qa(b,a);return{accessibleName:E.text,nameStatic:E.static,nameFrom:g}}}let h=vi(i,"placeholder");if(h){let g=qa(h,a);return{accessibleName:g.text,nameStatic:g.static,nameFrom:"placeholder"}}return{nameStatic:!1}}function VS(e){return typeof e=="object"&&e!==null&&typeof e.type=="string"}var UX=new Set(["loc","start","end","range","leadingComments","trailingComments","innerComments","comments"]);function Fp(e){let t=[],r=new Set,i=s=>{if(W.isCallExpression(s)||W.isOptionalCallExpression(s)){let n=s.callee,a;W.isIdentifier(n)?a=n.name:(W.isMemberExpression(n)||W.isOptionalMemberExpression(n))&&W.isIdentifier(n.property)&&!n.computed&&(a=W.isIdentifier(n.object)?`${n.object.name}.${n.property.name}`:n.property.name),a&&!r.has(a)&&(r.add(a),t.push(a))}for(let n of Object.keys(s)){if(UX.has(n))continue;let a=s[n];if(Array.isArray(a))for(let o of a)VS(o)&&i(o);else VS(a)&&i(a)}};return i(e),t}function KX(e){return e.slice(2).toLowerCase()}function VX(e){if(e==="a"||e==="button")return"click";if(e==="input"||e==="select"||e==="textarea")return"change"}function $X(e){return e==="form"?"submit":e==="input"||e==="select"||e==="textarea"?"change":"click"}function Bp(e){if(e&&W.isJSXExpressionContainer(e)&&!W.isJSXEmptyExpression(e.expression))return e.expression}function Rp(e,t,r,i){let s=n=>({ref:n,effects:[],navTargets:[]});if(W.isArrowFunctionExpression(e)||W.isFunctionExpression(e)){let n=ja(e.body,t,r,i,!0);return{ref:{kind:"inline",callees:Fp(e.body),file:i,...e.loc?{line:e.loc.start.line}:{}},effects:n.effects,navTargets:n.navTargets}}if(W.isIdentifier(e)){let n=t.getBinding(e.name);if(!n)return s({kind:"named",name:e.name,callees:[]});if(n.kind==="param")return s({kind:"prop",name:e.name,callees:[]});let a=n.path.node,o;if(W.isFunctionDeclaration(a)?o=a.body:W.isVariableDeclarator(a)&&a.init&&(W.isArrowFunctionExpression(a.init)||W.isFunctionExpression(a.init))&&(o=a.init.body),o){let l=ja(o,n.path.scope,r,i,!0);return{ref:{kind:"named",name:e.name,callees:Fp(o),file:i,...a.loc?{line:a.loc.start.line}:{}},effects:l.effects,navTargets:l.navTargets}}return n.kind==="module"?s({kind:"named",name:e.name,callees:[],...n.path.node.loc?{line:n.path.node.loc.start.line}:{}}):s({kind:"named",name:e.name,callees:[],file:i,...n.path.node.loc?{line:n.path.node.loc.start.line}:{}})}return W.isMemberExpression(e)&&W.isIdentifier(e.property)&&!e.computed?W.isIdentifier(e.object)&&(e.object.name==="props"||e.object.name==="this")?s({kind:"prop",name:e.property.name,callees:[]}):s({kind:"unknown",name:W.isIdentifier(e.object)?`${e.object.name}.${e.property.name}`:e.property.name,callees:[]}):W.isCallExpression(e)?s({kind:"unknown",callees:Fp(e)}):s({kind:"unknown",callees:[]})}function jp(e,t){return{event:e,handler:t?.ref,apiCalls:t?.effects??[],navTargets:t?.navTargets??[]}}function JX(e,t,r,i,s){let n=r.node,a=[];for(let h of n.attributes){if(!W.isJSXAttribute(h))continue;let g=Kp(h.name);g&&/^on[A-Z]/.test(g)&&a.push({event:KX(g),attr:h})}let o=$X(e),l=a.find(h=>h.event===o);if(l){let h=Bp(l.attr.value);return jp(o,h?Rp(h,r.scope,i,s):void 0)}let u=typeof t.type=="string"?t.type:void 0;if(e==="button"&&(u===void 0||u==="submit"||u==="image")&&a.length===0){let h=r.findParent(g=>g.isJSXElement()&&JS(g.node.openingElement,"form"));if(h){let g=h.node.openingElement,b=vi(g,"onSubmit"),E=b?Bp(b.value):void 0;return jp("submit",E?Rp(E,h.scope,i,s):void 0)}}let f=a[0];if(f){let h=Bp(f.attr.value);return jp(f.event,h?Rp(h,r.scope,i,s):void 0)}return{event:VX(e),handler:void 0,apiCalls:[],navTargets:[]}}function XX(e,t,r,i){let s=t==="Link"||t==="NavLink"||t==="Navigate",n=(s?vi(r,"to"):void 0)??(s||e==="a"?vi(r,"href"):void 0);if(!n)return;let a=n.value;if(W.isStringLiteral(a))return{to:a.value,static:!0};if(a&&W.isJSXExpressionContainer(a)&&!W.isJSXEmptyExpression(a.expression)){let o=Ra(a.expression,i);return{...o.value?{to:o.value}:{},static:o.static,...o.raw?{raw:o.raw}:{}}}}function Zr(e,t){let r=Fr(e),i=new Map,s=new Map,n=[];return _X(r,{JSXOpeningElement(a){let o=a.node,l=Up(o);if(!l)return;let{attrs:u,spread:f}=MX(o),h=a.parentPath&&a.parentPath.isJSXElement()?a.parentPath:void 0,g=h?h.node:void 0;if(typeof u.id=="string"&&g&&!i.has(u.id)&&i.set(u.id,g),l==="label"){let A=u.htmlFor??u.for;typeof A=="string"&&g&&!s.has(A)&&s.set(A,g)}let b=/^[A-Z]/.test(l),E=b?l:void 0,w=b?$S.has(l)?"a":l.toLowerCase():l;FX(w,E,u)&&n.push({opening:o,jsxEl:g,wrapLabel:h?jX(h):void 0,tag:w,component:E,attrs:u,spread:f,context:RX(a,e),eventHandler:JX(w,u,a,e,t),linkTarget:XX(w,E,o,e)})}}),n.map(a=>{let o=a.opening.loc?.start??{line:0,column:0},l=qX({tag:a.tag,attrs:a.attrs,opening:a.opening,jsxEl:a.jsxEl,wrapLabel:a.wrapLabel,source:e,idIndex:i,labelForIndex:s});return{id:`${t}:${o.line}:${o.column}:${a.tag}`,tag:a.tag,...a.component?{component:a.component}:{},...KS(a.tag,a.component,a.attrs)?{role:KS(a.tag,a.component,a.attrs)}:{},...typeof a.attrs.type=="string"?{type:a.attrs.type}:{},attrs:a.attrs,spread:a.spread,repeated:a.context.repeated,conditional:a.context.conditional,...a.context.conditionSource?{conditionSource:a.context.conditionSource}:{},...l.accessibleName!==void 0?{accessibleName:l.accessibleName}:{},nameStatic:l.nameStatic,...l.nameFrom?{nameFrom:l.nameFrom}:{},...a.eventHandler.event?{event:a.eventHandler.event}:{},...a.eventHandler.handler?{handler:a.eventHandler.handler}:{},apiCalls:a.eventHandler.apiCalls,...a.linkTarget?{linkTarget:a.linkTarget}:{},navTargets:a.eventHandler.navTargets,ownerComponent:a.context.ownerComponent,file:t,line:o.line,column:o.column}})}var YX=3;function WX(e,t){let r=e.conditionSource??t.conditionSource;return{conditional:e.conditional||t.conditional,repeated:e.repeated||t.repeated,...r?{conditionSource:r}:{}}}function Ua(e,t,r,i={}){let{aliases:s={},maxDepth:n=YX,filterEntry:a=!0}=i,o=new Map,l=(E,w)=>{let A=o.get(E);return A||(A=Zr(w,E),o.set(E,A)),A},u=new Map,f=(E,w)=>{let A=u.get(E);return A||(A=jS(E,w,r,s),u.set(E,A)),A},h=[],g=new Set,b=[{file:e,...t&&a?{component:t}:{},chain:t?[t]:[],depth:0,conditional:!1,repeated:!1}];for(;b.length>0;){let E=b.pop(),w=`${E.file}#${E.component??"*"}`;if(g.has(w))continue;g.add(w);let A=r.get(E.file);if(!A)continue;let I=l(E.file,A.source),k=f(E.file,A.source),Y=new Set([...I.map(F=>F.ownerComponent),...k.flatMap(F=>F.renderedIn?[F.renderedIn]:[])]),B=E.component;B!==void 0&&!Y.has(B)&&(B=Y.size===1?[...Y][0]:Y.size===0?void 0:B);for(let F of I){if(B!==void 0&&F.ownerComponent!==B)continue;let ae=F.conditionSource??E.conditionSource;h.push({...F,conditional:F.conditional||E.conditional,repeated:F.repeated||E.repeated,...ae?{conditionSource:ae}:{},fromFile:E.file,chain:E.chain,depth:E.depth})}if(!(E.depth>=n))for(let F of k)B!==void 0&&F.renderedIn!==void 0&&F.renderedIn!==B||b.push({file:F.file,component:F.componentName,chain:[...E.chain,F.componentName],depth:E.depth+1,...WX(E,F)})}return h}var HX=["data-testid","data-test-id","data-test","data-cy"],zX=new Set(["button","link","textbox","checkbox","radio","combobox","searchbox","switch","tab","menuitem","option"]);function Ka(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function GX(e){if(e.role)return e.role;switch(e.tag){case"button":return"button";case"a":return"link";case"select":return"combobox";case"textarea":return"textbox";case"input":switch(e.type){case"checkbox":return"checkbox";case"radio":return"radio";case"submit":case"button":return"button";case"search":return"searchbox";case void 0:case"text":case"email":case"password":case"tel":case"url":return e.type==="password"?void 0:"textbox";default:return}default:return}}function YS(e){for(let i of HX){let s=e.attrs[i];if(typeof s=="string"&&s!=="")return{selector:`[${i}="${Ka(s)}"]`,confidence:"high",strategy:"testid"}}let t=GX(e);if(t&&zX.has(t)&&e.accessibleName&&e.nameStatic)return{selector:`role=${t}[name="${Ka(e.accessibleName)}"i]`,confidence:e.repeated?"medium":"high",strategy:"role-name"};let r=e.attrs.placeholder;if(typeof r=="string"&&r!=="")return{selector:`[placeholder="${Ka(r)}"]`,confidence:"medium",strategy:"placeholder"};if(e.tag==="input"&&e.type)return{selector:`input[type="${Ka(e.type)}"]`,confidence:e.repeated?"low":"medium",strategy:"type"};if(t)return{selector:`role=${t}`,confidence:"low",strategy:"role"};if(["button","a","input","select","textarea","form"].includes(e.tag))return{selector:e.tag,confidence:"low",strategy:"tag"}}function WS(e){return e.tag==="select"?"select":e.tag==="input"&&(e.type==="checkbox"||e.type==="radio")?"check":e.tag==="textarea"||e.tag==="input"&&["text","email","password","search","tel","url","number",void 0].includes(e.type)?"fill":"click"}var HS=Vp.default.default??Vp.default;function zS(e,t){for(let r of e.attributes)if(!(!St.isJSXAttribute(r)||!St.isJSXIdentifier(r.name)||r.name.name!==t)&&St.isStringLiteral(r.value))return r.value.value}function GS(e){let t=St.isJSXElement(e)?e.openingElement:e;return St.isJSXIdentifier(t.name)?t.name.name:void 0}function QX(e){for(let t of e.attributes){if(!St.isJSXAttribute(t)||!St.isJSXIdentifier(t.name)||t.name.name!=="element")continue;let r=t.value;if(r&&St.isJSXExpressionContainer(r)&&St.isJSXElement(r.expression))return r.expression}}function ZX(e){let t=Fr(e),r=new Map,i=[],s=new Set;HS(t,{ImportDeclaration(o){let l=o.node.source.value;for(let u of o.node.specifiers)(St.isImportDefaultSpecifier(u)||St.isImportSpecifier(u))&&r.set(u.local.name,l)},JSXElement(o){if(GS(o.node)!=="Route")return;let u=zS(o.node.openingElement,"path");if(u===void 0)return;let f=QX(o.node.openingElement),h=f?GS(f)??"?":"?",g=o.node.loc?.start??{line:0,column:0};i.push({path:u,component:h,...h==="Navigate"?{redirectTo:zS(f.openingElement,"to")??"/"}:{},loc:{line:g.line,column:g.column}})}});let n=new Set(i.map(o=>o.component)),a=new Set;HS(t,{JSXOpeningElement(o){let l=St.isJSXIdentifier(o.node.name)?o.node.name.name:void 0;l&&/^[A-Z]/.test(l)&&a.add(l)}});for(let o of a)["Routes","Route","Navigate"].includes(o)||n.has(o)||r.has(o)&&s.add(o);return{routes:i,sharedComponents:[...s],imports:r}}function QS(e){return e.split("/").filter(t=>t.startsWith(":")).map(t=>t.slice(1))}function en(e){return`page:${e}`}function eY(e,t){if(e===t)return!0;let r=e.split("/"),i=t.split("/");return r.length!==i.length?!1:r.every((s,n)=>s.startsWith(":")||i[n]?.startsWith(":")||s===i[n])}var tY=["id","tag","component","role","accessibleName","nameStatic","nameFrom","attrs","type","spread","repeated","conditional","conditionSource","event","handler","file","line","column","ownerComponent"];function rY(e){let t={};for(let s of tY)e[s]!==void 0&&(t[s]=e[s]);let r=t,i=YS(r);return i&&(r.selector=i.selector,r.selectorConfidence=i.confidence),r.action=WS(r),r}function iY(e){let t=[];e.linkTarget&&t.push({target:e.linkTarget.to,static:e.linkTarget.static,raw:e.linkTarget.raw,guardSource:e.conditionSource});for(let r of e.navTargets)t.push({target:r.to,static:r.toStatic,raw:r.raw,guardSource:r.guardSource??e.conditionSource});return t}function Va(e){let t=new Set(e.filter(r=>r.tag==="button"&&r.attrs.type==="submit"&&r.handler?.line!==void 0).map(r=>r.handler.line));return e.filter(r=>!(r.tag==="form"&&r.handler?.line!==void 0&&t.has(r.handler.line)))}function tn(e,t={}){let r=new Map(e.map(L=>[L.file,L])),i=t.aliases??{},s=t.router==="app-router"||t.router!=="react-router"&&LS(e),n=s?void 0:t.appFile??e.find(L=>/(^|\/)App\.tsx$/.test(L.file))?.file??e.find(L=>L.source.includes("<Routes"))?.file;if(!s&&(!n||!r.has(n)))throw new Error("assembleTree: could not find the App file (pass opts.appFile)");let a={filesAnalyzed:e.map(L=>L.file).sort(),parseErrors:[],unresolvedTargets:[],dynamicNames:[],unresolvedHandlers:[],unresolvedEffects:[],orphanElements:[]};for(let L of e){let H=wS(Fr(L.source));for(let me of H)a.parseErrors.push({file:L.file,message:String(me)})}let o=[],l=[];if(s){let L=MS(e,t.appDir);for(let H of L.routes)o.push({path:H.path,component:H.component,file:H.file,loc:{line:0,column:0}});for(let H of L.layouts)l.push({name:H.component,file:H.file,wraps:me=>FS(H.prefix,me)})}else{let L=ZX(r.get(n).source);for(let H of L.routes){let me=L.imports.get(H.component),je=me?Fa(me,n,r,i):void 0;o.push({...H,...je?{file:je}:{}})}for(let H of L.sharedComponents){let me=L.imports.get(H),je=me?Fa(me,n,r,i):void 0;je&&l.push({name:H,file:je})}}let u=new Map;for(let L of o)u.set(en(L.path),{id:en(L.path),kind:"page",path:L.path,params:QS(L.path),component:L.component,...L.file?{file:L.file}:{},elements:[]});let f=o.map(L=>L.path),h=u.get("page:/")?.id??[...u.values()][0]?.id??"page:/",g=L=>{let H=en(L);return u.has(H)||u.set(H,{id:H,kind:"page",path:L,params:QS(L),component:"(inferred)",elements:[],inferred:!0}),H},b=L=>{let H=L.target??L.raw;if(!H)return{kind:"unresolved",raw:"(no target)"};if(/^https?:\/\//.test(H))return{kind:"external",href:H};if(!H.startsWith("/"))return{kind:"unresolved",raw:H};let me=f.find(je=>eY(je,H));return me?{kind:"page",id:en(me)}:{kind:"page",id:g(H)}},E=new Map,w=L=>{let H=`effect:${L.id}`;return E.has(H)||E.set(H,{id:H,kind:"leaf",effect:L}),H},A=[],I=new Set,k=L=>{I.has(L.id)||(I.add(L.id),A.push(L))},Y=L=>L.kind==="external"?`external:${L.href}`:L.kind==="unresolved"?`unresolved:${L.raw}`:L.id,B=L=>{let H=new Set,me=[];for(let je of L){let ht=`${je.id}|${je.guardSource??""}`;H.has(ht)||(H.add(ht),me.push(je))}return me},F=L=>{L.accessibleName!==void 0&&!L.nameStatic&&!a.dynamicNames.includes(L.id)&&a.dynamicNames.push(L.id),L.handler&&(L.handler.kind==="unknown"||L.handler.kind==="named"&&L.handler.line===void 0)&&a.unresolvedHandlers.push(L.id);for(let H of L.apiCalls)(!H.endpoint&&!H.resource||H.external)&&(a.unresolvedEffects.includes(H.id)||a.unresolvedEffects.push(H.id))},ae=(L,H,me)=>{F(L);let je=iY(L),ht=B(L.apiCalls),Mt=rY(L);if(je.length>0){for(let We of je){let ot=b(We),Et=`nav:${H}->${Y(ot)}:${L.file}:${L.line}${me?`:${me}`:""}`;ot.kind==="unresolved"&&a.unresolvedTargets.push({edgeId:Et,raw:ot.raw}),k({id:Et,kind:"nav",from:H,to:ot,trigger:Mt,apiCalls:ht,...We.guardSource?{guardSource:We.guardSource}:{},...me?{viaComponent:me}:{}})}return}if(ht.length>0){for(let We of ht){let ot=w(We),Et=`effect:${H}->${ot}:${L.file}:${L.line}${me?`:${me}`:""}`;k({id:Et,kind:"effect",from:H,to:{kind:"leaf",id:ot},trigger:Mt,apiCalls:[We],...We.guardSource??L.conditionSource?{guardSource:We.guardSource??L.conditionSource}:{},...me?{viaComponent:me}:{}})}return}u.get(H)?.elements.push(Mt)},{followChildren:xe=!0,maxDepth:ke}=t,G=new Map,Ye=(L,H)=>{let me=`${L}#${H??""}`,je=G.get(me);if(!je){let ht=r.get(L);if(!ht)je=[];else if(!xe)je=Va(Zr(ht.source,L));else{let Mt=Ua(L,H,r,{aliases:i,...ke!==void 0?{maxDepth:ke}:{},filterEntry:!1}),We=new Map;for(let ot of Mt){let Et=We.get(ot.fromFile);Et?Et.push(ot):We.set(ot.fromFile,[ot])}je=[...We.values()].flatMap(Va)}G.set(me,je)}return je};for(let L of u.values())if(L.file)for(let H of Ye(L.file,L.component))ae(H,L.id,void 0);for(let L of o){if(!L.redirectTo||!n)continue;let H=en(L.path),me=b({target:L.redirectTo,static:!0,raw:L.redirectTo,guardSource:void 0}),je={id:`${n}:${L.loc.line}:${L.loc.column}:navigate`,tag:"navigate",component:"Navigate",attrs:{to:L.redirectTo},spread:!1,nameStatic:!1,repeated:!1,conditional:!1,file:n,line:L.loc.line,column:L.loc.column,ownerComponent:"App"};k({id:`nav:${H}->${Y(me)}:redirect`,kind:"nav",from:H,to:me,trigger:je,apiCalls:[]})}for(let L of l)for(let H of Ye(L.file,L.name))for(let me of u.values())me.inferred||L.wraps&&!L.wraps(me.path)||ae(H,me.id,L.name);let ct=new Set;for(let L of A)ct.add(L.trigger.id);for(let L of u.values())for(let H of L.elements)ct.add(H.id);for(let[,L]of G)for(let H of L)!ct.has(H.id)&&!a.orphanElements.includes(H.id)&&a.orphanElements.push(H.id);return{schemaVersion:2,generatedAt:new Date().toISOString(),root:h,nodes:{pages:[...u.values()].sort((L,H)=>L.id.localeCompare(H.id)),leaves:[...E.values()].sort((L,H)=>L.id.localeCompare(H.id))},edges:A,diagnostics:a}}var $a=(e,t)=>t===0?0:Math.round(e/t*1e3)/10;function sY(e,t){let r=new Set;for(let i of e.nodes.pages)if(i.id===t)for(let s of i.elements)r.add(s.id);for(let i of e.edges)i.from===t&&r.add(i.trigger.id);return r}function nY(e,t={}){let r=new Map(e.map(g=>[g.file,g])),i=tn(e,{...t,followChildren:!0}),s=tn(e,{...t,followChildren:!1}),n=[],a=new Set,o=new Set,l=0,u=0;for(let g of i.nodes.pages){if(g.inferred||!g.file)continue;let b=Ua(g.file,g.component,r,{...t.aliases?{aliases:t.aliases}:{},...t.maxDepth!==void 0?{maxDepth:t.maxDepth}:{},filterEntry:!1}),E=new Map;for(let B of b){let F=E.get(B.fromFile);F?F.push(B):E.set(B.fromFile,[B])}let w=[...E.values()].flatMap(Va);for(let B of w)a.add(B.id),o.add(B.file);let A=new Set(w.map(B=>B.id)),I=B=>[...sY(B,g.id)].filter(F=>A.has(F)).length,k=I(s),Y=I(i);l+=k,u+=Y,n.push({path:g.path,file:g.file,own:w.filter(B=>B.file===g.file).length,viaChild:w.filter(B=>B.file!==g.file).length,placedBaseline:k,placedFollowing:Y})}let f=n.reduce((g,b)=>g+b.own+b.viaChild,0),h=e.filter(g=>/\.tsx$/.test(g.file)&&!o.has(g.file)).map(g=>({file:g.file,elements:Zr(g.source,g.file).length})).filter(g=>g.elements>0).sort((g,b)=>g.file.localeCompare(b.file));return{routes:n,totals:{reachable:f,own:n.reduce((g,b)=>g+b.own,0),viaChild:n.reduce((g,b)=>g+b.viaChild,0),placedBaseline:l,placedFollowing:u,missedBaseline:f-l,missedFollowing:f-u,missedBaselinePct:$a(f-l,f),missedFollowingPct:$a(f-u,f)},unreachedFiles:h}}function aY(e){let t=[];t.push("| route | own els | child els | reachable | attached (before) | attached (after) | missed before | missed after |"),t.push("|---|---|---|---|---|---|---|---|");for(let i of e.routes){let s=i.own+i.viaChild;t.push(`| \`${i.path}\` | ${i.own} | ${i.viaChild} | ${s} | ${i.placedBaseline} | ${i.placedFollowing} | ${$a(s-i.placedBaseline,s)}% | ${$a(s-i.placedFollowing,s)}% |`)}let r=e.totals;return t.push(`| **all** | **${r.own}** | **${r.viaChild}** | **${r.reachable}** | **${r.placedBaseline}** | **${r.placedFollowing}** | **${r.missedBaselinePct}%** | **${r.missedFollowingPct}%** |`),t.join(`
56
- `)}var ZS=["button","input","a","form","select","textarea"],ei=(e,t)=>t===0?0:Math.round(e/t*1e3)/10;function oY(e){return e.flatMap(t=>/\.tsx$/.test(t.file)?Zr(t.source,t.file):[])}function lY(e){return(!!e.linkTarget||e.navTargets.length>0)&&!e.handler&&e.event!=="submit"}function uY(e,t){let r=oY(e),i={};for(let G of ZS)i[G]=0;let s={};for(let G of r)i[G.tag]=(i[G.tag]??0)+1,G.component&&(s[G.component]=(s[G.component]??0)+1);let n=r.filter(G=>G.accessibleName!==void 0).length,a=r.filter(G=>G.accessibleName!==void 0&&G.nameStatic).length,o=r.filter(lY).length,l=r.length-o,u=r.filter(G=>G.handler!==void 0).length,f=r.filter(G=>G.handler!==void 0||!!G.linkTarget||G.navTargets.length>0||G.event==="submit").length,h=t.edges.filter(G=>G.kind==="nav"),g=t.edges.filter(G=>G.kind==="effect"),b=t.edges.filter(G=>G.viaComponent),E=t.edges.filter(G=>G.apiCalls.length>0).length,w=new Set(t.nodes.leaves.map(G=>G.effect.id)),A=new Set(w),I=new Set;for(let G of t.edges)for(let Ye of G.apiCalls)A.add(Ye.id),w.has(Ye.id)||I.add(Ye.id);let k=t.nodes.pages,Y=k.filter(G=>!G.inferred),B=new Map(k.map(G=>[G.id,G.file])),F=0,ae=0,xe=(G,Ye,ct)=>{if(F+=1,ct!==void 0){Ye.ownerComponent!==ct&&(ae+=1);return}let L=B.get(G);L!==void 0&&Ye.file!==L&&(ae+=1)};for(let G of k)for(let Ye of G.elements)xe(G.id,Ye);for(let G of t.edges)xe(G.from,G.trigger,G.viaComponent);let ke={files:{analyzed:e.length,withElements:new Set(r.map(G=>G.file)).size},elements:{total:r.length,byTag:i,byComponent:s,named:n,nameStatic:a,navOnly:o,expectingHandler:l,withHandler:u,handlerCoveragePct:ei(u,l),actionable:f,conditional:r.filter(G=>G.conditional).length,repeated:r.filter(G=>G.repeated).length,withSpread:r.filter(G=>G.spread).length},graph:{pages:k.length,pagesInferred:k.filter(G=>G.inferred).length,leaves:t.nodes.leaves.length,edges:t.edges.length,nav:h.length,effect:g.length,viaComponent:b.length,own:t.edges.length-b.length,viaComponentRatioPct:ei(b.length,t.edges.length),crossFile:ae,crossFilePlaced:F,crossFileRatioPct:ei(ae,F),edgesWithEffect:E},effects:{distinct:A.size,asLeaf:w.size,onEdgeOnly:I.size,represented:A.size},bar:[]};return ke.bar=[{check:"interactive elements found vs hand count (30)",target:"\u2265 90%",actual:`${r.length}/30 = ${ei(r.length,30)}%`,pass:r.length/30>=.9},{check:"elements with an accessible name",target:"\u2265 80%",actual:`${n}/${r.length} = ${ei(n,r.length)}%`,pass:ei(n,r.length)>=80},{check:"handler resolved (elements that expect one)",target:"\u2265 80%",actual:`${u}/${l} = ${ke.elements.handlerCoveragePct}%`,pass:ke.elements.handlerCoveragePct>=80},{check:"every declared route \u2192 a page node",target:"100%",actual:`${Y.length}/${Y.length}`,pass:Y.length>0},{check:"every distinct backend effect represented in the graph",target:"100%",actual:`${A.size} distinct \u2014 ${w.size} as leaf nodes, ${I.size} on nav-edge apiCalls`,pass:A.size>0}],ke}function cY(e,t){let r=[],i=(n="")=>{r.push(n)};i("# interaction-tree \u2014 fixture coverage (M7)"),i(),i(`Generated ${t.generatedAt}. Source: \`spike/interaction-tree/fixture/src\`.`),i(),i("## Bar"),i(),i("| check | target | actual | result |"),i("|---|---|---|---|");for(let n of e.bar)i(`| ${n.check} | ${n.target} | ${n.actual} | ${n.pass===null?"\u2014":n.pass?"\u2705":"\u274C"} |`);i(),i("## Elements"),i(),i(`- **${e.elements.total}** interactive elements across **${e.files.withElements}** files (of ${e.files.analyzed} analyzed).`),i(`- by tag: ${ZS.map(n=>`\`${n}\` ${e.elements.byTag[n]??0}`).join(" \xB7 ")}`),i(`- by wrapper component: ${Object.entries(e.elements.byComponent).map(([n,a])=>`\`${n}\` ${a}`).join(" \xB7 ")||"none"}`),i(`- accessible name: ${e.elements.named}/${e.elements.total} named (${ei(e.elements.named,e.elements.total)}%), ${e.elements.nameStatic} fully static, ${e.elements.named-e.elements.nameStatic} dynamic.`),i(`- handler: ${e.elements.withHandler}/${e.elements.total} overall (${ei(e.elements.withHandler,e.elements.total)}%); ${e.elements.navOnly} are pure-navigation \`<Link>\`/\`<a>\` (target resolved, no handler expected); **${e.elements.handlerCoveragePct}%** of the ${e.elements.expectingHandler} that expect one.`),i(`- actionable (handler or nav target or submit): ${e.elements.actionable}/${e.elements.total}.`),i(`- render context: ${e.elements.conditional} conditional, ${e.elements.repeated} repeated, ${e.elements.withSpread} with \`{...spread}\`.`),i(),i("## Graph"),i(),i(`- **${e.graph.pages}** page nodes (${e.graph.pagesInferred} inferred), **${e.graph.leaves}** leaf nodes.`),i(`- **${e.graph.edges}** edges \u2014 ${e.graph.nav} nav, ${e.graph.effect} effect.`),i(`- **${e.graph.viaComponent}** carry \`viaComponent\` (shared-component fan-out), ${e.graph.own} own. Ratio **${e.graph.viaComponentRatioPct}%**.`),i(`- ${e.graph.edgesWithEffect}/${e.graph.edges} edges carry \u22651 backend effect.`),i(`- **${e.graph.crossFile}**/${e.graph.crossFilePlaced} placed elements come from a child component in another file (**${e.graph.crossFileRatioPct}%**).`),i(),i("### Page nodes"),i();for(let n of t.nodes.pages)i(`- \`${n.id}\` \u2014 ${n.component}${n.inferred?" *(inferred)*":""}, params [${n.params.join(", ")}], ${n.elements.length} page element(s)`);i(),i("### Leaf nodes"),i();for(let n of t.nodes.leaves){let a=n.effect;i(`- \`${n.id}\` \u2014 ${a.method} ${a.client}/${a.effectKind}${a.resource?`, resource \`${a.resource}\``:""}`)}i(),i("## Diagnostics"),i();let s=t.diagnostics;return i(`- files analyzed: ${s.filesAnalyzed.length}, parse errors: ${s.parseErrors.length}`),i(`- dynamic accessible names: ${s.dynamicNames.length?s.dynamicNames.map(n=>`\`${n}\``).join(", "):"none"}`),i(`- unresolved handlers: ${s.unresolvedHandlers.length?s.unresolvedHandlers.join(", "):"none"}`),i(`- unresolved backend effects: ${s.unresolvedEffects.length?s.unresolvedEffects.map(n=>`\`${n}\``).join(", "):"none"}`),i(`- unresolved nav targets: ${s.unresolvedTargets.length?JSON.stringify(s.unresolvedTargets):"none"}`),i(`- orphan elements: ${s.orphanElements.length?s.orphanElements.join(", "):"none"}`),i(),r.join(`
57
- `)}function pY(e){switch(e.kind){case"external":return`external:${e.href}`;case"unresolved":return`unresolved:${e.raw}`;default:return e.id}}function fY(e,t){let r=new Set([...e.nodes.pages.map(s=>s.id),...e.nodes.leaves.map(s=>s.id)]);return r.has(t)?t:r.has(`page:${t}`)?`page:${t}`:e.nodes.pages.find(s=>s.component===t)?.id}function dY(e,t,r={}){let{depth:i=2,kinds:s,includeUnresolved:n=!0,skipShared:a=!1}=r,o=fY(e,t);if(!o)throw new Error(`bfs: no node matches ${JSON.stringify(t)}`);let l=new Map([...e.nodes.pages.map(A=>[A.id,A]),...e.nodes.leaves.map(A=>[A.id,A])]),u=new Map;for(let A of e.edges){if(s&&!s.includes(A.kind)||a&&A.viaComponent)continue;let I=u.get(A.from);I?I.push(A):u.set(A.from,[A])}let f=l.get(o),h=[{id:o,depth:0,target:{kind:f?.kind==="leaf"?"leaf":"page",id:o},...f?{node:f}:{}}],g=new Set([o]),b=[],E=[],w=[o];for(let A=1;A<=i&&w.length>0;A+=1){let I=[];for(let k of w)for(let Y of u.get(k)??[]){let B=Y.to.kind==="external"||Y.to.kind==="unresolved";if(B&&!n)continue;b.push(Y);let F=pY(Y.to);if(g.has(F))continue;g.add(F);let ae=l.get(F);h.push({id:F,depth:A,target:Y.to,...ae?{node:ae}:{},via:Y}),!B&&ae?.kind!=="leaf"&&I.push(F)}w=I}for(let A of w)(u.get(A)??[]).length>0&&E.push(A);return{from:o,maxDepth:i,order:h,edges:b,frontier:E}}function hY(e){let t=[];for(let r of e.order){let i=" ".repeat(r.depth);if(!r.via){t.push(`${r.id}`);continue}let s=r.via.trigger.accessibleName??r.via.trigger.tag,n=r.via.guardSource?` [if ${r.via.guardSource}]`:"",a=r.via.viaComponent?` (via ${r.via.viaComponent})`:"";t.push(`${i}\u2514\u2500 ${r.via.kind} "${s}"${n}${a} \u2192 ${r.id}`)}return e.frontier.length>0&&t.push(`# frontier at depth ${e.maxDepth}: ${e.frontier.join(", ")}`),t.join(`
58
- `)}export{tn as assembleTree,dY as bfs,uY as buildCoverage,nY as measureReach,hY as renderBfs,cY as renderMarkdown,aY as renderReachTable};
53
+ return ${Ai(i)};
54
+ })(${ZT(this.node)})
55
+ `;return this.replaceWith(u)[0].get("arguments.0")}function B$(e){let t=e.params.findIndex(r=>d$(r)||h$(r));return t===-1?e.params.length:t}});var lg=N(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt._guessExecutionStatusRelativeTo=iJ;nt._resolve=og;nt.canHaveVariableDeclarationOrExpression=H$;nt.canSwapBetweenExpressionAndStatement=z$;nt.getSource=eJ;nt.isCompletionRecord=G$;nt.isConstantExpression=oJ;nt.isInStrictMode=lJ;nt.isNodeType=W$;nt.isStatementOrBlock=Q$;nt.isStatic=Y$;nt.matchesPattern=X$;nt.referencesImport=Z$;nt.resolve=aJ;nt.willIMaybeExecuteBefore=tJ;var F$=ye(),{STATEMENT_OR_BLOCK_KEYS:R$,VISITOR_KEYS:j$,isBlockStatement:ag,isExpression:q$,isIdentifier:U$,isLiteral:K$,isStringLiteral:V$,isType:$$,matchesPattern:J$}=F$;function X$(e,t){return J$(this.node,e,t)}nt.has=function(t){var r;let i=(r=this.node)==null?void 0:r[t];return i&&Array.isArray(i)?!!i.length:!!i};function Y$(){return this.scope.isStatic(this.node)}nt.is=nt.has;nt.isnt=function(t){return!this.has(t)};nt.equals=function(t,r){return this.node[t]===r};function W$(e){return $$(this.type,e)}function H$(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function z$(e){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?ag(e):this.isBlockStatement()?q$(e):!1}function G$(e){let t=this,r=!0;do{let{type:i,container:s}=t;if(!r&&(t.isFunction()||i==="StaticBlock"))return!!e;if(r=!1,Array.isArray(s)&&t.key!==s.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0}function Q$(){return this.parentPath.isLabeledStatement()||ag(this.container)?!1:R$.includes(this.key)}function Z$(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?V$(this.node.property,{value:t}):this.node.property.name===t)){let n=this.get("object");return n.isReferencedIdentifier()&&n.referencesImport(e,"*")}return!1}let r=this.scope.getBinding(this.node.name);if(r?.kind!=="module")return!1;let i=r.path,s=i.parentPath;if(!s.isImportDeclaration())return!1;if(s.node.source.value===e){if(!t)return!0}else return!1;return!!(i.isImportDefaultSpecifier()&&t==="default"||i.isImportNamespaceSpecifier()&&t==="*"||i.isImportSpecifier()&&U$(i.node.imported,{name:t}))}function eJ(){let e=this.node;if(e.end){let t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""}function tJ(e){return this._guessExecutionStatusRelativeTo(e)!=="after"}function ig(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function rJ(e,t){switch(e){case"LogicalExpression":return t==="right";case"ConditionalExpression":case"IfStatement":return t==="consequent"||t==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return t==="body";case"ForStatement":return t==="body"||t==="update";case"SwitchStatement":return t==="cases";case"TryStatement":return t==="handler";case"AssignmentPattern":return t==="right";case"OptionalMemberExpression":return t==="property";case"OptionalCallExpression":return t==="arguments";default:return!1}}function sg(e,t){for(let r=0;r<t;r++){let i=e[r];if(rJ(i.parent.type,i.parentKey))return!0}return!1}var ng=Symbol();function iJ(e){return Ep(this,e,new Map)}function Ep(e,t,r){let i={this:ig(e),target:ig(t)};if(i.target.node!==i.this.node)return nJ(e,i.target,r);let s={target:t.getAncestry(),this:e.getAncestry()};if(s.target.includes(e))return"after";if(s.this.includes(t))return"before";let n,a={target:0,this:0};for(;!n&&a.this<s.this.length;){let f=s.this[a.this];a.target=s.target.indexOf(f),a.target>=0?n=f:a.this++}if(!n)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(sg(s.this,a.this-1)||sg(s.target,a.target-1))return"unknown";let o={this:s.this[a.this-1],target:s.target[a.target-1]};if(o.target.listKey&&o.this.listKey&&o.target.container===o.this.container)return o.target.key>o.this.key?"before":"after";let l=j$[n.type],u={this:l.indexOf(o.this.parentKey),target:l.indexOf(o.target.parentKey)};return u.target>u.this?"before":"after"}function sJ(e,t,r){if(t.isFunctionDeclaration()){if(t.parentPath.isExportDeclaration())return"unknown"}else return Ep(e,t,r)==="before"?"before":"unknown";let i=t.scope.getBinding(t.node.id.name);if(!i.references)return"before";let s=i.referencePaths,n;for(let a of s){if(!!a.find(u=>u.node===t.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return"unknown";let l=Ep(e,a,r);if(n&&n!==l)return"unknown";n=l}return n}function nJ(e,t,r){let i=r.get(e.node),s;if(!i)r.set(e.node,i=new Map);else if(s=i.get(t.node))return s===ng?"unknown":s;i.set(t.node,ng);let n=sJ(e,t,r);return i.set(t.node,n),n}function aJ(e,t){return og.call(this,e,t)||this}function og(e,t){var r;if(!((r=t)!=null&&r.includes(this)))if(t=t||[],t.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){let i=this.scope.getBinding(this.node.name);if(!i||!i.constant||i.kind==="module")return;if(i.path!==this){let s=i.path.resolve(e,t);return this.find(n=>n.node===s.node)?void 0:s}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){let i=this.toComputedKey();if(!K$(i))return;let s=i.value,n=this.get("object").resolve(e,t);if(n.isObjectExpression()){let a=n.get("properties");for(let o of a){if(!o.isProperty())continue;let l=o.get("key"),u=o.isnt("computed")&&l.isIdentifier({name:s});if(u=u||l.isLiteral({value:s}),u)return o.get("value").resolve(e,t)}}else if(n.isArrayExpression()&&!isNaN(+s)){let o=n.get("elements")[s];if(o)return o.resolve(e,t)}}}}function oJ(){if(this.isIdentifier()){let e=this.scope.getBinding(this.node.name);return e?e.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(e=>e.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){let{operator:e}=this.node;return e!=="in"&&e!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral():!1}function lJ(){return!!(this.isProgram()?this:this.parentPath).find(r=>{if(r.isProgram({sourceType:"module"})||r.isClass())return!0;if(r.isArrowFunctionExpression()&&!r.get("body").isBlockStatement())return!1;let i;if(r.isFunction())i=r.node.body;else if(r.isProgram())i=r.node;else return!1;for(let s of i.directives)if(s.value.value==="use strict")return!0;return!1})}});var dg=N(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt._getKey=pg;vt._getPattern=fg;vt.get=vJ;vt.getAllNextSiblings=PJ;vt.getAllPrevSiblings=AJ;vt.getAssignmentIdentifiers=CJ;vt.getBindingIdentifierPaths=NJ;vt.getBindingIdentifiers=IJ;vt.getCompletionRecords=SJ;vt.getNextSibling=EJ;vt.getOpposite=yJ;vt.getOuterBindingIdentifierPaths=OJ;vt.getOuterBindingIdentifiers=wJ;vt.getPrevSibling=bJ;vt.getSibling=xJ;var Ap=Or(),uJ=ye(),{getAssignmentIdentifiers:cJ,getBindingIdentifiers:cg,getOuterBindingIdentifiers:pJ,numericLiteral:fJ,unaryExpression:dJ}=uJ,vp=0,Ws=1;function hJ(e){return{type:vp,path:e}}function mJ(e){return{type:Ws,path:e}}function yJ(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function es(e,t,r){return e&&t.push(...ts(e,r)),t}function TJ(e,t,r){let i=[];for(let s=0;s<e.length;s++){let n=e[s],a=ts(n,r),o=[],l=[];for(let u of a)u.type===vp&&o.push(u),u.type===Ws&&l.push(u);o.length&&(i=o),t.push(...l)}return t.push(...i),t}function gJ(e){e.forEach(t=>{t.type=Ws})}function Pp(e,t){e.forEach(r=>{r.path.isBreakStatement({label:null})&&(t?r.path.replaceWith(dJ("void",fJ(0))):r.path.remove())})}function ug(e,t){let r=[];if(t.canHaveBreak){let i=[];for(let s=0;s<e.length;s++){let n=e[s],a=Object.assign({},t,{inCaseClause:!1});n.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;let o=ts(n,a);if(o.length>0&&o.every(l=>l.type===Ws)){i.length>0&&o.every(l=>l.path.isBreakStatement({label:null}))?(gJ(i),r.push(...i),i.some(l=>l.path.isDeclaration())&&(r.push(...o),t.shouldPreserveBreak||Pp(o,!0)),t.shouldPreserveBreak||Pp(o,!1)):(r.push(...o),!t.shouldPopulateBreak&&!t.shouldPreserveBreak&&Pp(o,!0));break}if(s===e.length-1)r.push(...o);else{i=[];for(let l=0;l<o.length;l++){let u=o[l];u.type===Ws&&r.push(u),u.type===vp&&i.push(u)}}}}else if(e.length)for(let i=e.length-1;i>=0;i--){let s=ts(e[i],t);if(s.length>1||s.length===1&&!s[0].path.isVariableDeclaration()&&!s[0].path.isEmptyStatement()){r.push(...s);break}}return r}function ts(e,t){let r=[];if(e.isIfStatement())r=es(e.get("consequent"),r,t),r=es(e.get("alternate"),r,t);else{if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return es(e.get("body"),r,t);if(e.isProgram()||e.isBlockStatement())return ug(e.get("body"),t);if(e.isFunction())return ts(e.get("body"),t);if(e.isTryStatement())r=es(e.get("block"),r,t),r=es(e.get("handler"),r,t);else{if(e.isCatchClause())return es(e.get("body"),r,t);if(e.isSwitchStatement())return TJ(e.get("cases"),r,t);if(e.isSwitchCase())return ug(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:t.shouldPreserveBreak});e.isBreakStatement()?r.push(mJ(e)):r.push(hJ(e))}}return r}function SJ(e=!1){return ts(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map(r=>r.path)}function xJ(e){return Ap.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)}function bJ(){return this.getSibling(this.key-1)}function EJ(){return this.getSibling(this.key+1)}function PJ(){let e=this.key,t=this.getSibling(++e),r=[];for(;t.node;)r.push(t),t=this.getSibling(++e);return r}function AJ(){let e=this.key,t=this.getSibling(--e),r=[];for(;t.node;)r.push(t),t=this.getSibling(--e);return r}function vJ(e,t=!0){t===!0&&(t=this.context);let r=e.split(".");return r.length===1?pg.call(this,e,t):fg.call(this,r,t)}function pg(e,t){let r=this.node,i=r[e];return Array.isArray(i)?i.map((s,n)=>Ap.default.get({listKey:e,parentPath:this,parent:r,container:i,key:n}).setContext(t)):Ap.default.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)}function fg(e,t){let r=this;for(let i of e)i==="."?r=r.parentPath:Array.isArray(r)?r=r[i]:r=r.get(i,t);return r}function CJ(){return cJ(this.node)}function IJ(e){return cg(this.node,e)}function wJ(e){return pJ(this.node,e)}function NJ(e=!1,t=!1){let i=[this],s=Object.create(null);for(;i.length;){let n=i.shift();if(!n||!n.node)continue;let a=cg.keys[n.node.type];if(n.isIdentifier()){e?(s[n.node.name]=s[n.node.name]||[]).push(n):s[n.node.name]=n;continue}if(n.isExportDeclaration()){let o=n.get("declaration");o.isDeclaration()&&i.push(o);continue}if(t){if(n.isFunctionDeclaration()){i.push(n.get("id"));continue}if(n.isFunctionExpression())continue}if(a)for(let o=0;o<a.length;o++){let l=a[o],u=n.get(l);Array.isArray(u)?i.push(...u):u.node&&i.push(u)}}return s}function OJ(e=!1){return this.getBindingIdentifierPaths(e,!0)}});var mg=N(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.addComment=MJ;Hs.addComments=BJ;Hs.shareCommentsWithSiblings=LJ;var _J=ye(),{addComment:kJ,addComments:DJ}=_J;function LJ(){if(typeof this.key=="string")return;let e=this.node;if(!e)return;let t=e.trailingComments,r=e.leadingComments;if(!t&&!r)return;let i=this.getSibling(this.key-1),s=this.getSibling(this.key+1),n=!!i.node,a=!!s.node;n&&(r&&i.addComments("trailing",hg(r,i.node.trailingComments)),t&&!a&&i.addComments("trailing",t)),a&&(t&&s.addComments("leading",hg(t,s.node.leadingComments)),r&&!n&&s.addComments("leading",r))}function hg(e,t){if(!(t!=null&&t.length))return e;let r=new Set(t);return e.filter(i=>!r.has(i))}function MJ(e,t,r){kJ(this.node,e,t,r)}function BJ(e,t){DJ(this.node,e,t)}});var Or=N(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.default=Er.SHOULD_STOP=Er.SHOULD_SKIP=Er.REMOVED=void 0;var FJ=za(),RJ=ff(),jJ=mr(),qJ=mu(),gg=ye(),ka=gg,UJ=di(),KJ=ey(),xr=ty(),rs=by(),is=dc(),yg=MT(),vi=rg(),ut=lg(),Sg=Yt(),at=Sg,ss=da(),br=ha(),Lt=dg(),Cp=mg(),VJ=lu(),{validate:$J}=gg,Tg=RJ("babel"),nie=Er.REMOVED=1,aie=Er.SHOULD_STOP=2,oie=Er.SHOULD_SKIP=4,Lr=Er.default=class xg{constructor(t,r){this.contexts=[],this.state=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=r,this.hub=t,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(t){t?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(t){t?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(t){t?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:t,parentPath:r,parent:i,container:s,listKey:n,key:a}){if(!t&&r&&(t=r.hub),!i)throw new Error("To get a node path the parent needs to exist");let o=s[a],l=UJ.getOrCreateCachedPaths(i,r),u=l.get(o);return u||(u=new xg(t,i),o&&l.set(o,u)),Sg.setup.call(u,r,s,n,a),u}getScope(t){return this.isScope()?new qJ.default(this):t}setData(t,r){return this.data==null&&(this.data=Object.create(null)),this.data[t]=r}getData(t,r){this.data==null&&(this.data=Object.create(null));let i=this.data[t];return i===void 0&&r!==void 0&&(i=this.data[t]=r),i}hasNode(){return this.node!=null}buildCodeFrameError(t,r=SyntaxError){return this.hub.buildError(this.node,t,r)}traverse(t,r){(0,jJ.default)(this.node,t,this.scope,r,this)}set(t,r){$J(this.node,t,r),this.node[t]=r}getPathLocation(){let t=[],r=this;do{let i=r.key;r.inList&&(i=`${r.listKey}[${i}]`),t.unshift(i)}while(r=r.parentPath);return t.join(".")}debug(t){Tg.enabled&&Tg(`${this.getPathLocation()} ${this.type}: ${t}`)}toString(){return(0,KJ.default)(this.node).code}get inList(){return!!this.listKey}set inList(t){t||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},JJ={findParent:xr.findParent,find:xr.find,getFunctionParent:xr.getFunctionParent,getStatementParent:xr.getStatementParent,getEarliestCommonAncestorFrom:xr.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:xr.getDeepestCommonAncestorFrom,getAncestry:xr.getAncestry,isAncestor:xr.isAncestor,isDescendant:xr.isDescendant,inType:xr.inType,getTypeAnnotation:rs.getTypeAnnotation,isBaseType:rs.isBaseType,couldBeBaseType:rs.couldBeBaseType,baseTypeStrictlyMatches:rs.baseTypeStrictlyMatches,isGenericType:rs.isGenericType,replaceWithMultiple:is.replaceWithMultiple,replaceWithSourceString:is.replaceWithSourceString,replaceWith:is.replaceWith,replaceExpressionWithStatements:is.replaceExpressionWithStatements,replaceInline:is.replaceInline,evaluateTruthy:yg.evaluateTruthy,evaluate:yg.evaluate,toComputedKey:vi.toComputedKey,ensureBlock:vi.ensureBlock,unwrapFunctionEnvironment:vi.unwrapFunctionEnvironment,arrowFunctionToExpression:vi.arrowFunctionToExpression,splitExportDeclaration:vi.splitExportDeclaration,ensureFunctionName:vi.ensureFunctionName,matchesPattern:ut.matchesPattern,isStatic:ut.isStatic,isNodeType:ut.isNodeType,canHaveVariableDeclarationOrExpression:ut.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:ut.canSwapBetweenExpressionAndStatement,isCompletionRecord:ut.isCompletionRecord,isStatementOrBlock:ut.isStatementOrBlock,referencesImport:ut.referencesImport,getSource:ut.getSource,willIMaybeExecuteBefore:ut.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:ut._guessExecutionStatusRelativeTo,resolve:ut.resolve,isConstantExpression:ut.isConstantExpression,isInStrictMode:ut.isInStrictMode,isDenylisted:at.isDenylisted,visit:at.visit,skip:at.skip,skipKey:at.skipKey,stop:at.stop,setContext:at.setContext,requeue:at.requeue,requeueComputedKeyAndDecorators:at.requeueComputedKeyAndDecorators,remove:ss.remove,insertBefore:br.insertBefore,insertAfter:br.insertAfter,unshiftContainer:br.unshiftContainer,pushContainer:br.pushContainer,getOpposite:Lt.getOpposite,getCompletionRecords:Lt.getCompletionRecords,getSibling:Lt.getSibling,getPrevSibling:Lt.getPrevSibling,getNextSibling:Lt.getNextSibling,getAllNextSiblings:Lt.getAllNextSiblings,getAllPrevSiblings:Lt.getAllPrevSiblings,get:Lt.get,getAssignmentIdentifiers:Lt.getAssignmentIdentifiers,getBindingIdentifiers:Lt.getBindingIdentifiers,getOuterBindingIdentifiers:Lt.getOuterBindingIdentifiers,getBindingIdentifierPaths:Lt.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:Lt.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:Cp.shareCommentsWithSiblings,addComment:Cp.addComment,addComments:Cp.addComments};Object.assign(Lr.prototype,JJ);Lr.prototype.arrowFunctionToShadowed=vi.arrowFunctionToShadowed;Object.assign(Lr.prototype,{has:ut.has,is:ut.is,isnt:ut.isnt,equals:ut.equals,hoist:br.hoist,updateSiblingKeys:br.updateSiblingKeys,call:at.call,isBlacklisted:at.isBlacklisted,setScope:at.setScope,resync:at.resync,popContext:at.popContext,pushContext:at.pushContext,setup:at.setup,setKey:at.setKey});Lr.prototype._guessExecutionStatusRelativeToDifferentFunctions=ut._guessExecutionStatusRelativeTo;Lr.prototype._guessExecutionStatusRelativeToDifferentFunctions=ut._guessExecutionStatusRelativeTo;Object.assign(Lr.prototype,{_getTypeAnnotation:rs._getTypeAnnotation,_replaceWith:is._replaceWith,_resolve:ut._resolve,_call:at._call,_resyncParent:at._resyncParent,_resyncKey:at._resyncKey,_resyncList:at._resyncList,_resyncRemoved:at._resyncRemoved,_getQueueContexts:at._getQueueContexts,_removeFromScope:ss._removeFromScope,_callRemovalHooks:ss._callRemovalHooks,_remove:ss._remove,_markRemoved:ss._markRemoved,_assertUnremoved:ss._assertUnremoved,_containerInsert:br._containerInsert,_containerInsertBefore:br._containerInsertBefore,_containerInsertAfter:br._containerInsertAfter,_verifyNodeList:br._verifyNodeList,_getKey:Lt._getKey,_getPattern:Lt._getPattern});for(let e of ka.TYPES){let t=`is${e}`,r=ka[t];Lr.prototype[t]=function(i){return r(this.node,i)},Lr.prototype[`assert${e}`]=function(i){if(!r(this.node,i))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(Lr.prototype,VJ);for(let e of Object.keys(FJ))e.startsWith("_")||ka.TYPES.includes(e)||ka.TYPES.push(e)});var wp=N(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.default=void 0;var Ip=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(t,r,i=TypeError){return new i(r)}};Da.default=Ip});var bg=N(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.default=void 0;var XJ=Or(),YJ=ye(),Np=Yt(),WJ=wp(),{VISITOR_KEYS:HJ}=YJ,Op=class{constructor(t,r,i,s){this.queue=null,this.priorityQueue=null,this.parentPath=s,this.scope=t,this.state=i,this.opts=r}shouldVisit(t){let r=this.opts;if(r.enter||r.exit||r[t.type])return!0;let i=HJ[t.type];if(!(i!=null&&i.length))return!1;for(let s of i)if(t[s])return!0;return!1}create(t,r,i,s){let{parentPath:n}=this,a=n==null?t.type==="Program"||t.type==="File"?new WJ.default:void 0:n.hub;return XJ.default.get({parentPath:n,parent:t,container:r,key:i,listKey:s,hub:a})}maybeQueue(t,r){this.queue&&(r?this.queue.push(t):this.priorityQueue.push(t))}visitMultiple(t,r,i){if(t.length===0)return!1;let s=[];for(let n=0;n<t.length;n++){let a=t[n];a&&this.shouldVisit(a)&&s.push(this.create(r,t,n,i))}return this.visitQueue(s)}visitSingle(t,r){return this.shouldVisit(t[r])?this.visitQueue([this.create(t,t,r)]):!1}visitQueue(t){this.queue=t,this.priorityQueue=[];let r=new WeakSet,i=!1,s=0;for(;s<t.length;){let n=t[s];if(s++,Np.resync.call(n),(n.contexts.length===0||n.contexts[n.contexts.length-1]!==this)&&Np.pushContext.call(n,this),n.key===null)continue;let{node:a}=n;if(!r.has(a)){if(a&&r.add(a),n.visit()){i=!0;break}if(this.priorityQueue.length&&(i=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=t,i))break}}for(let n=0;n<s;n++)Np.popContext.call(t[n]);return this.queue=null,i}visit(t,r){let i=t[r];return i?Array.isArray(i)?this.visitMultiple(i,t,r):this.visitSingle(t,r):!1}};La.default=Op});var Bn=N(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.traverseNode=ZJ;var zJ=bg(),pie=Or(),GJ=ye(),fie=Yt(),{VISITOR_KEYS:QJ}=GJ;function ZJ(e,t,r,i,s,n,a){let o=QJ[e.type];if(!o)return!1;let l=new zJ.default(r,t,i,s);if(a)return n!=null&&n[s.parentKey]?!1:l.visitQueue([s]);for(let u of o)if(!(n!=null&&n[u])&&l.visit(e,u))return!0;return!1}});var Yt=N(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt._call=Dp;tt._forceSetScope=oX;tt._getQueueContexts=yX;tt._resyncKey=Ig;tt._resyncList=wg;tt._resyncParent=Cg;tt._resyncRemoved=cX;tt.call=kp;tt.isDenylisted=Ag;tt.popContext=pX;tt.pushContext=fX;tt.requeue=hX;tt.requeueComputedKeyAndDecorators=mX;tt.resync=uX;tt.setContext=lX;tt.setKey=Ma;tt.setScope=vg;tt.setup=dX;tt.skip=sX;tt.skipKey=nX;tt.stop=aX;tt.visit=iX;var eX=Bn(),Eg=Or(),tX=da(),rX=ye();function kp(e){let t=this.opts;if(this.debug(e),this.node&&Dp.call(this,t[e]))return!0;if(this.node){var r;return Dp.call(this,(r=t[this.node.type])==null?void 0:r[e])}return!1}function Dp(e){if(!e)return!1;for(let t of e){if(!t)continue;let r=this.node;if(!r)return!0;let i=t.call(this.state,this,this.state);if(i&&typeof i=="object"&&typeof i.then=="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(i)throw new Error(`Unexpected return value from visitor method ${t}`);if(this.node!==r||this._traverseFlags>0)return!0}return!1}function Ag(){var e;let t=(e=this.opts.denylist)!=null?e:this.opts.blacklist;return t?.includes(this.node.type)}tt.isBlacklisted=Ag;function Pg(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function iX(){var e,t;if(!this.node||this.isDenylisted()||(e=(t=this.opts).shouldSkip)!=null&&e.call(t,this))return!1;let r=this.context;return this.shouldSkip||kp.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(Pg(this,r),this.debug("Recursing into..."),this.shouldStop=(0,eX.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),Pg(this,r),kp.call(this,"exit"),this.shouldStop)}function sX(){this.shouldSkip=!0}function nX(e){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[e]=!0}function aX(){this._traverseFlags|=Eg.SHOULD_SKIP|Eg.SHOULD_STOP}function oX(){var e;let t=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&t.isMethod()||this.key==="discriminant"&&t.isSwitchStatement())&&(t=t.parentPath);let r;for(;t&&!r;)r=t.scope,t=t.parentPath;this.scope=this.getScope(r),(e=this.scope)==null||e.init()}function vg(){var e,t;if((e=this.opts)!=null&&e.noScope)return;let r=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&r.isMethod()||this.key==="discriminant"&&r.isSwitchStatement())&&(r=r.parentPath);let i;for(;r&&!i;){var s;if((s=r.opts)!=null&&s.noScope)return;i=r.scope,r=r.parentPath}this.scope=this.getScope(i),(t=this.scope)==null||t.init()}function lX(e){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts),vg.call(this),this}function uX(){this.removed||(Cg.call(this),wg.call(this),Ig.call(this))}function Cg(){this.parentPath&&(this.parent=this.parentPath.node)}function Ig(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node){Ma.call(this,e);return}}else for(let e of Object.keys(this.container))if(this.container[e]===this.node){Ma.call(this,e);return}this.key=null}}function wg(){if(!this.parent||!this.inList)return;let e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function cX(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&tX._markRemoved.call(this)}function pX(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function fX(e){this.contexts.push(e),this.setContext(e)}function dX(e,t,r,i){this.listKey=r,this.container=t,this.parentPath=e||this.parentPath,Ma.call(this,i)}function Ma(e){var t;this.key=e,this.node=this.container[this.key],this.type=(t=this.node)==null?void 0:t.type}function hX(e=this){if(e.removed)return;let t=this.contexts;for(let r of t)r.maybeQueue(e)}function mX(){let{context:e,node:t}=this;if(!rX.isPrivate(t)&&t.computed&&e.maybeQueue(this.get("key")),t.decorators)for(let r of this.get("decorators"))e.maybeQueue(r)}function yX(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,!!e);)t=e.contexts;return t}});var mr=N(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Object.defineProperty(Mr,"Hub",{enumerable:!0,get:function(){return bX.default}});Object.defineProperty(Mr,"NodePath",{enumerable:!0,get:function(){return SX.default}});Object.defineProperty(Mr,"Scope",{enumerable:!0,get:function(){return xX.default}});Mr.visitors=Mr.default=void 0;Yt();var Gs=Es();Mr.visitors=Gs;var TX=ye(),gX=di(),Ng=Bn(),SX=Or(),xX=mu(),bX=wp(),{VISITOR_KEYS:EX,removeProperties:PX,traverseFast:zs}=TX;function ur(e,t={},r,i,s,n){if(e){if(!t.noScope&&!r&&e.type!=="Program"&&e.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!s&&n)throw new Error("visitSelf can only be used when providing a NodePath.");EX[e.type]&&(Gs.explode(t),(0,Ng.traverseNode)(e,t,r,i,s,void 0,n))}}var mie=Mr.default=ur;ur.visitors=Gs;ur.verify=Gs.verify;ur.explode=Gs.explode;ur.cheap=function(e,t){zs(e,t)};ur.node=function(e,t,r,i,s,n){(0,Ng.traverseNode)(e,t,r,i,s,n)};ur.clearNode=function(e,t){PX(e,t)};ur.removeProperties=function(e,t){return zs(e,ur.clearNode,t),e};ur.hasType=function(e,t,r){return r!=null&&r.includes(e.type)?!1:e.type===t?!0:zs(e,function(i){if(r!=null&&r.includes(i.type))return zs.skip;if(i.type===t)return zs.stop})};ur.cache=gX});var Xp=rr(mr(),1),gt=rr(ye(),1);var Mp=rr(mr(),1),ns=rr(ye(),1);var Og=rr(Ca(),1),Lp=rr(mr(),1),Tie=Lp.default.default??Lp.default;function Br(e){return(0,Og.parse)(e,{sourceType:"module",plugins:["typescript","jsx"],errorRecovery:!0})}function _g(e){return e.errors??[]}var AX=Mp.default.default??Mp.default,Mg=/(^|\/)page\.tsx$/,vX=/(^|\/)layout\.tsx$/;function kg(e,t){return`/${e.slice(t.length+1).split("/").slice(0,-1).filter(s=>!(s.startsWith("(")&&s.endsWith(")"))).map(s=>s.startsWith("[")&&s.endsWith("]")?`:${s.slice(1,-1).replace(/^\.\.\./,"")}`:s).join("/")}`.replace(/\/{2,}/g,"/").replace(/(.)\/$/,"$1")}function Dg(e){let t=Br(e),r;return AX(t,{ExportDefaultDeclaration(i){let s=i.node.declaration;ns.isFunctionDeclaration(s)&&s.id?r=s.id.name:ns.isIdentifier(s)?r=s.name:ns.isClassDeclaration(s)&&s.id&&(r=s.id.name)}}),r}function Lg(e){return`${e.split("/").filter(Boolean).map(r=>r.replace(/^:/,"")).map(r=>r.replace(/(^|[-_])(\w)/g,(i,s,n)=>n.toUpperCase())).join("")||"Root"}Page`}function Bg(e){let t=new Set;for(let r of e){if(!Mg.test(r.file))continue;let i=r.file.split("/"),s=i.lastIndexOf("app",i.length-2);s>=0&&t.add(i.slice(0,s+1).join("/"))}return[...t].sort((r,i)=>r.split("/").length-i.split("/").length||r.localeCompare(i))[0]}function Fg(e){return e.some(t=>t.source.includes("<Routes"))?!1:Bg(e)!==void 0}function Rg(e,t){let r=t??Bg(e);if(!r)throw new Error("appRouterRoutes: no app/ directory with a page.tsx found");let i=e.filter(a=>a.file===r||a.file.startsWith(`${r}/`)),s=[],n=[];for(let a of i)if(Mg.test(a.file)){let o=kg(a.file,r);s.push({path:o,file:a.file,component:Dg(a.source)??Lg(o)})}else if(vX.test(a.file)){let o=kg(a.file,r);n.push({file:a.file,component:Dg(a.source)??`${Lg(o).replace(/Page$/,"")}Layout`,prefix:o})}return s.sort((a,o)=>a.path.localeCompare(o.path)),n.sort((a,o)=>a.prefix.localeCompare(o.prefix)),{appDir:r,routes:s,layouts:n}}function jg(e,t){return e==="/"||t===e||t.startsWith(`${e}/`)}var Fp=rr(mr(),1),ze=rr(ye(),1);var qg=Fp.default.default??Fp.default,CX=e=>e.split("/").slice(0,-1).join("/");function Ug(e){let t=[];for(let r of e)r===""||r==="."||(r===".."?t.pop():t.push(r));return t.join("/")}function Ba(e,t,r,i={}){let s;if(e.startsWith("."))s=Ug(`${CX(t)}/${e}`.split("/"));else for(let[n,a]of Object.entries(i))if(e.startsWith(n)){s=Ug(`${a}/${e.slice(n.length)}`.split("/"));break}if(s!==void 0){for(let n of[`${s}.tsx`,`${s}.ts`,`${s}/index.tsx`,`${s}/index.ts`])if(r.has(n))return n}}function Bp(e,t){if(typeof t.start=="number"&&typeof t.end=="number")return e.slice(t.start,t.end).replace(/\s+/g," ").trim()}function IX(e,t){let r=!1,i=!1,s,n,a=e,o=e.parentPath;for(;o;){let l=o.node;if(r||(ze.isLogicalExpression(l)&&(l.operator==="&&"||l.operator==="||")&&l.right===a.node?(r=!0,s=Bp(t,l.left)):ze.isConditionalExpression(l)&&(l.consequent===a.node||l.alternate===a.node)&&(r=!0,s=l.alternate===a.node?`!(${Bp(t,l.test)??"?"})`:Bp(t,l.test))),ze.isArrowFunctionExpression(l)||ze.isFunctionExpression(l)){let u=o.parentPath?.node;if(!!u&&ze.isCallExpression(u)&&ze.isMemberExpression(u.callee)&&ze.isIdentifier(u.callee.property)&&(u.callee.property.name==="map"||u.callee.property.name==="flatMap")&&u.arguments.some(h=>h===l))i=!0;else{let h=o.parentPath?.node;ze.isVariableDeclarator(h)&&ze.isIdentifier(h.id)&&(n=h.id.name);break}}else if(ze.isFunctionDeclaration(l)){n=l.id?.name;break}a=o,o=o.parentPath}return{conditional:r,repeated:i,...s?{conditionSource:s}:{},...n?{renderedIn:n}:{}}}function Kg(e,t,r,i={}){let s=Br(t),n=new Map;qg(s,{ImportDeclaration(o){let l=o.node.source.value;for(let u of o.node.specifiers)(ze.isImportDefaultSpecifier(u)||ze.isImportNamespaceSpecifier(u)||ze.isImportSpecifier(u))&&n.set(u.local.name,l)}});let a=[];return qg(s,{JSXOpeningElement(o){let l=o.node.name;if(!ze.isJSXIdentifier(l)||!/^[A-Z]/.test(l.name))return;let u=n.get(l.name);if(!u)return;let f=Ba(u,e,r,i);if(!f||f===e)return;let h=IX(o,t),x=a.find(A=>A.componentName===l.name&&A.file===f&&A.renderedIn===h.renderedIn);if(x){h.conditional||(x.conditional=!1,delete x.conditionSource),x.repeated||=h.repeated;return}a.push({componentName:l.name,file:f,...h})}}),a}var Vp=rr(mr(),1),z=rr(ye(),1);var H=rr(ye(),1),wX={select:{method:"SELECT",kind:"read"},insert:{method:"INSERT",kind:"create"},upsert:{method:"UPSERT",kind:"update"},update:{method:"UPDATE",kind:"update"},delete:{method:"DELETE",kind:"delete"},rpc:{method:"RPC",kind:"rpc"}},Vg=new Set(["get","post","put","patch","delete","head"]),Jg=new Set(["loc","start","end","range","leadingComments","trailingComments","innerComments","comments"]);function Ra(e){return typeof e=="object"&&e!==null&&typeof e.type=="string"}function Zr(e,t){if(typeof t.start=="number"&&typeof t.end=="number")return e.slice(t.start,t.end).replace(/\s+/g," ").trim()}function NX(e){switch(e){case"GET":case"HEAD":return"read";case"POST":return"create";case"PUT":case"PATCH":return"update";case"DELETE":return"delete";default:return"unknown"}}function OX(e){let r=(e.split(/[?#]/)[0]??e).split("/").filter(Boolean).filter(i=>!["api","v1","v2"].includes(i));for(let i of r)if(!i.startsWith(":"))return i}function ja(e,t){if(!e)return{static:!1};if(H.isStringLiteral(e))return{value:e.value,static:!0};if(H.isTemplateLiteral(e)){let r="";e.quasis.forEach((s,n)=>{r+=s.value.cooked??s.value.raw;let a=e.expressions[n];if(a){let o=H.isIdentifier(a)?a.name:(H.isMemberExpression(a)||H.isOptionalMemberExpression(a))&&H.isIdentifier(a.property)?a.property.name:"param";r+=`:${o}`}});let i=e.expressions.length>0;return{value:r,static:!i,...i?{raw:Zr(t,e)}:{}}}return{static:!1,raw:Zr(t,e)}}function _X(e){let t=e;for(;t;)if(H.isCallExpression(t)||H.isOptionalCallExpression(t)){let r=t.callee;if((H.isMemberExpression(r)||H.isOptionalMemberExpression(r))&&H.isIdentifier(r.property)&&r.property.name==="from")return t;t=H.isMemberExpression(r)||H.isOptionalMemberExpression(r)?r.object:null}else H.isMemberExpression(t)||H.isOptionalMemberExpression(t)?t=t.object:t=null}function kX(e,t){let r=t.getBinding(e);if(!r||r.kind!=="module")return;let i=r.path.parent;if(i&&H.isImportDeclaration(i)&&H.isStringLiteral(i.source))return i.source.value}function DX(e){let t=e.arguments[1];if(!(!t||!H.isObjectExpression(t)))for(let r of t.properties){if(!H.isObjectProperty(r)||r.computed)continue;if((H.isIdentifier(r.key)?r.key.name:H.isStringLiteral(r.key)?r.key.value:"")==="method"&&H.isStringLiteral(r.value))return r.value.value.toUpperCase()}}function Fa(e,t,r,i,s,n){let a=ja(e.arguments[0],i),o=r??DX(e)??"GET",l=a.value?OX(a.value):void 0;return{id:`${o} ${a.value??"?"}`,method:o,...a.value?{endpoint:a.value}:{},endpointStatic:a.static,...a.raw?{endpointRaw:a.raw}:{},client:t,...l?{resource:l}:{},resourceStatic:l!==void 0,effectKind:NX(o),...n?{guardSource:n}:{},file:s,line:e.loc?.start.line??0}}function LX(e,t,r,i,s){let n=s.length>0?s.join(" && "):void 0,a=e.loc?.start.line??0,o=e.callee;if((H.isMemberExpression(o)||H.isOptionalMemberExpression(o))&&H.isIdentifier(o.property)){let l=wX[o.property.name];if(l){if(o.property.name==="rpc"){let f=e.arguments[0],h=H.isStringLiteral(f)?f.value:void 0;return{id:`RPC ${h??"?"}`,method:"RPC",endpointStatic:!1,client:"supabase",...h?{resource:h}:{},resourceStatic:h!==void 0,effectKind:"rpc",...n?{guardSource:n}:{},file:i,line:a}}let u=_X(o.object);if(u){let f=u.arguments[0],h=H.isStringLiteral(f)?f.value:void 0;return{id:`${l.method} ${h??"?"}`,method:l.method,endpointStatic:!1,client:"supabase",...h?{resource:h}:{},resourceStatic:h!==void 0,effectKind:l.kind,...n?{guardSource:n}:{},file:i,line:a}}}}if(H.isIdentifier(o)&&o.name==="fetch")return Fa(e,"fetch",void 0,r,i,n);if(H.isIdentifier(o)&&o.name==="axios")return Fa(e,"axios",void 0,r,i,n);if(H.isMemberExpression(o)&&H.isIdentifier(o.object)&&o.object.name==="axios"&&H.isIdentifier(o.property)&&Vg.has(o.property.name))return Fa(e,"axios",o.property.name.toUpperCase(),r,i,n);if(H.isMemberExpression(o)&&H.isIdentifier(o.property)&&Vg.has(o.property.name)){let l=e.arguments[0];if(l&&(H.isStringLiteral(l)||H.isTemplateLiteral(l)))return Fa(e,"api-helper",o.property.name.toUpperCase(),r,i,n)}if(H.isIdentifier(o)&&o.name!=="fetch"){let l=kX(o.name,t);if(l)return{id:`external ${l}#${o.name}`,method:"unknown",endpointStatic:!1,client:"api-helper",external:l,resourceStatic:!1,effectKind:"unknown",...n?{guardSource:n}:{},file:i,line:a}}}var $g=new Set(["alert","confirm","prompt"]),MX=new Set(["window","globalThis","self"]);function Xg(e,t){let r=e.callee;if(H.isIdentifier(r))return $g.has(r.name)&&!t.getBinding(r.name)?r.name:void 0;if((H.isMemberExpression(r)||H.isOptionalMemberExpression(r))&&!r.computed&&H.isIdentifier(r.object)&&MX.has(r.object.name)&&!t.getBinding(r.object.name)&&H.isIdentifier(r.property)&&$g.has(r.property.name))return r.property.name}function Rp(e,t){if(H.isCallExpression(e)&&Xg(e,t))return!0;for(let r of Object.keys(e)){if(Jg.has(r))continue;let i=e[r];if(Array.isArray(i)){if(i.some(s=>Ra(s)&&Rp(s,t)))return!0}else if(Ra(i)&&Rp(i,t))return!0}return!1}function Yg(e){if(H.isReturnStatement(e)||H.isThrowStatement(e))return!0;if(H.isBlockStatement(e)){let t=e.body[e.body.length-1];return!!t&&Yg(t)}return!1}function BX(e,t){if(e==="navigate")return!0;let i=t.getBinding(e)?.path.node;return!!(i&&H.isVariableDeclarator(i)&&i.init&&H.isCallExpression(i.init)&&H.isIdentifier(i.init.callee)&&i.init.callee.name==="useNavigate")}function qa(e,t,r,i,s,n=[]){let a=[],o=[],l=[],u=new Set,f=new Set,h=new Set,x=b=>{let C=`${b.file}:${b.line}|${b.type}|${b.via??""}`;h.has(C)||(h.add(C),l.push(b))},A=b=>{if(!b)return;let C=`${b.id}|${b.guardSource??""}|${b.via??""}`;u.has(C)||(u.add(C),a.push(b))},P=b=>{let C=`${b.to??b.raw??"?"}|${b.guardSource??""}|${b.via??""}`;f.has(C)||(f.add(C),o.push(b))},w=(b,C,D)=>{if(H.isCallExpression(b)){A(LX(b,t,r,i,C));let U=Xg(b,t);if(U){let k=b.arguments[0],L=H.isStringLiteral(k)?k.value:H.isTemplateLiteral(k)&&k.expressions.length===0?k.quasis[0]?.value.cooked??void 0:void 0;x({type:U,...L!==void 0?{message:L}:{},messageStatic:L!==void 0||!k,...L===void 0&&k?{messageRaw:Zr(r,k)}:{},gates:U!=="alert"&&!!D&&!H.isExpressionStatement(D),...C.length>0?{guardSource:C.join(" && ")}:{},file:i,line:b.loc?.start.line??0})}if(H.isIdentifier(b.callee)&&BX(b.callee.name,t)){let k=ja(b.arguments[0],r);P({...k.value?{to:k.value}:{},toStatic:k.static,...k.raw?{raw:k.raw}:{},...C.length>0?{guardSource:C.join(" && ")}:{}})}if(s&&H.isIdentifier(b.callee)){let k=t.getBinding(b.callee.name);if(k&&["hoisted","const","let","var","local"].includes(k.kind)){let te=k.path.node,Te;if(H.isFunctionDeclaration(te)?Te=te.body:H.isVariableDeclarator(te)&&te.init&&(H.isArrowFunctionExpression(te.init)||H.isFunctionExpression(te.init))&&(Te=te.init.body),Te){let be=qa(Te,k.path.scope,r,i,!1,C);for(let X of be.effects)A({...X,via:X.via??b.callee.name});for(let X of be.navTargets)P({...X,via:X.via??b.callee.name});for(let X of be.dialogs)x({...X,via:X.via??b.callee.name})}}}}if(H.isIfStatement(b)){let U=Zr(r,b.test)??"?";w(b.test,C,b),w(b.consequent,[...C,U],b),b.alternate&&w(b.alternate,[...C,`!(${U})`],b);return}if(H.isConditionalExpression(b)){let U=Zr(r,b.test)??"?";w(b.test,C,b),w(b.consequent,[...C,U],b),w(b.alternate,[...C,`!(${U})`],b);return}if(H.isLogicalExpression(b)&&(b.operator==="&&"||b.operator==="||")){let U=Zr(r,b.left)??"?";w(b.left,C,b),w(b.right,[...C,b.operator==="&&"?U:`!(${U})`],b);return}if(H.isBlockStatement(b)){let U=C;for(let k of b.body)if(w(k,U,b),H.isIfStatement(k)&&!k.alternate&&Yg(k.consequent)&&Rp(k.test,t)){let L=k.test,te=H.isUnaryExpression(L)&&L.operator==="!"?Zr(r,L.argument):`!(${Zr(r,L)??"?"})`;U=[...U,te??"?"]}return}for(let U of Object.keys(b)){if(Jg.has(U))continue;let k=b[U];if(Array.isArray(k))for(let L of k)Ra(L)&&w(L,C,b);else Ra(k)&&w(k,C,b)}};return w(e,n),{effects:a,navTargets:o,dialogs:l}}var FX=Vp.default.default??Vp.default,RX=new Set(["button","input","select","textarea","a","form"]),zg=new Set(["Link","NavLink"]),jX=new Set(["input","select","textarea","button"]),qX=new Set(["button","link","checkbox","radio","switch","tab","menuitem","menuitemcheckbox","menuitemradio","textbox","combobox","searchbox","slider","spinbutton","option","treeitem"]);function $p(e){let t=e.name;if(z.isJSXIdentifier(t))return t.name;if(z.isJSXNamespacedName(t))return`${t.namespace.name}:${t.name.name}`}function Gg(e,t){let r=$p(e);return!!r&&r.toLowerCase()===t}function Jp(e){if(z.isJSXIdentifier(e))return e.name;if(z.isJSXNamespacedName(e))return`${e.namespace.name}:${e.name.name}`}function Ci(e,t){for(let r of e.attributes)if(z.isJSXAttribute(r)&&Jp(r.name)===t)return r}function Zs(e,t){if(typeof t.start=="number"&&typeof t.end=="number")return e.slice(t.start,t.end).trim()}function Qg(e,t){let r="";return e.quasis.forEach((i,s)=>{r+=i.value.cooked??i.value.raw;let n=e.expressions[s];if(n){let a=(Zs(t,n)??"").trim();r+=`{${a||"\u2026"}}`}}),r.replace(/\s+/g," ").trim()}function Qs(e,t,r){let i=[],s=!0;for(let n of e.children)if(z.isJSXText(n)){let a=n.value.replace(/\s+/g," ").trim();a&&i.push(a)}else if(z.isJSXExpressionContainer(n)){let a=n.expression;z.isStringLiteral(a)?i.push(a.value):z.isTemplateLiteral(a)?(i.push(Qg(a,t)),a.expressions.length>0&&(s=!1)):z.isJSXEmptyExpression(a)||(i.push(`{${(Zs(t,a)??"").trim()||"\u2026"}}`),s=!1)}else if(z.isJSXElement(n)){let a=$p(n.openingElement);if(r&&a&&jX.has(a.toLowerCase()))continue;let o=Qs(n,t,r);o.text&&i.push(o.text),o.static||(s=!1)}return{text:i.join(" ").replace(/\s+/g," ").trim(),static:s}}function Ua(e,t){let r=e.value;if(r==null)return{text:"",static:!0};if(z.isStringLiteral(r))return{text:r.value,static:!0};if(z.isJSXExpressionContainer(r)){let i=r.expression;return z.isStringLiteral(i)?{text:i.value,static:!0}:z.isTemplateLiteral(i)?{text:Qg(i,t),static:i.expressions.length===0}:z.isJSXEmptyExpression(i)?{text:"",static:!1}:{text:`{${(Zs(t,i)??"").trim()||"\u2026"}}`,static:!1}}return{text:"",static:!1}}function UX(e){let t={},r=!1;for(let i of e.attributes){if(z.isJSXSpreadAttribute(i)){r=!0;continue}if(!z.isJSXAttribute(i))continue;let s=Jp(i.name);if(!s)continue;let n=i.value;if(n==null){t[s]=!0;continue}if(z.isStringLiteral(n)){t[s]=n.value;continue}if(z.isJSXExpressionContainer(n)){let a=n.expression;z.isStringLiteral(a)||z.isNumericLiteral(a)||z.isBooleanLiteral(a)?t[s]=a.value:z.isTemplateLiteral(a)&&a.expressions.length===0&&(t[s]=a.quasis[0]?.value.cooked??"")}}return{attrs:t,spread:r}}function Wg(e,t,r){let i=r.role;if(typeof i=="string")return i;let s=typeof r.type=="string"?r.type:void 0;switch(e){case"button":return"button";case"a":return"href"in r||t==="Link"||t==="NavLink"?"link":void 0;case"select":return"combobox";case"textarea":return"textbox";case"form":return"form";case"input":switch(s){case void 0:case"text":case"email":case"tel":case"url":return"textbox";case"search":return"searchbox";case"checkbox":return"checkbox";case"radio":return"radio";case"number":return"spinbutton";case"range":return"slider";case"submit":case"button":case"reset":case"image":return"button";default:return}default:return}}function KX(e,t,r){return RX.has(e)||t&&zg.has(t)?!0:typeof r.role=="string"&&qX.has(r.role)}function VX(e){let t=e.parentPath;if(z.isFunctionDeclaration(e.node)&&e.node.id)return e.node.id.name;if(t&&z.isVariableDeclarator(t.node)&&z.isIdentifier(t.node.id))return t.node.id.name}function $X(e,t){let r=!1,i=!1,s,n="<anonymous>",a=e,o=e.parentPath;for(;o;){let l=o.node;if(i||(z.isLogicalExpression(l)&&(l.operator==="&&"||l.operator==="||")&&l.right===a.node?(i=!0,s=Zs(t,l.left)):z.isConditionalExpression(l)&&(l.consequent===a.node||l.alternate===a.node)&&(i=!0,s=Zs(t,l.test))),z.isArrowFunctionExpression(l)||z.isFunctionExpression(l)){let u=o.parentPath?.node;if(!!u&&z.isCallExpression(u)&&z.isMemberExpression(u.callee)&&z.isIdentifier(u.callee.property)&&(u.callee.property.name==="map"||u.callee.property.name==="flatMap")&&u.arguments.some(h=>h===l))r=!0;else{n=VX(o)??n;break}}else if(z.isFunctionDeclaration(l)){n=l.id?.name??n;break}a=o,o=o.parentPath}return{repeated:r,conditional:i,conditionSource:s,ownerComponent:n}}function JX(e){let t=e.findParent(r=>r.isJSXElement()&&Gg(r.node.openingElement,"label"));return t?t.node:void 0}function XX(e){let{tag:t,attrs:r,opening:i,jsxEl:s,wrapLabel:n,source:a,idIndex:o,labelForIndex:l}=e,u=Ci(i,"aria-labelledby");if(u){let x=Ua(u,a);if(x.static&&x.text){let A=[],P=!0,w=!0;for(let b of x.text.split(/\s+/).filter(Boolean)){let C=o.get(b);if(!C){P=!1;continue}let D=Qs(C,a,!0);A.push(D.text),D.static||(w=!1)}if(A.length>0)return{accessibleName:A.join(" ").trim(),nameStatic:P&&w,nameFrom:"aria-labelledby"}}return{accessibleName:`{${x.text||"\u2026"}}`,nameStatic:!1,nameFrom:"aria-labelledby"}}let f=Ci(i,"aria-label");if(f){let x=Ua(f,a);return{accessibleName:x.text,nameStatic:x.static,nameFrom:"aria-label"}}if(t==="input"||t==="select"||t==="textarea"){let x=typeof r.id=="string"?r.id:void 0;if(x){let A=l.get(x);if(A){let P=Qs(A,a,!0);return{accessibleName:P.text,nameStatic:P.static,nameFrom:"label-for"}}}if(n){let A=Qs(n,a,!0);return{accessibleName:A.text,nameStatic:A.static,nameFrom:"label-wrap"}}}if((t==="button"||t==="a")&&s){let x=Qs(s,a,!0);if(x.text)return{accessibleName:x.text,nameStatic:x.static,nameFrom:"text"}}for(let x of["alt","title"]){let A=Ci(i,x);if(A){let P=Ua(A,a);return{accessibleName:P.text,nameStatic:P.static,nameFrom:x}}}let h=Ci(i,"placeholder");if(h){let x=Ua(h,a);return{accessibleName:x.text,nameStatic:x.static,nameFrom:"placeholder"}}return{nameStatic:!1}}function Hg(e){return typeof e=="object"&&e!==null&&typeof e.type=="string"}var YX=new Set(["loc","start","end","range","leadingComments","trailingComments","innerComments","comments"]);function jp(e){let t=[],r=new Set,i=s=>{if(z.isCallExpression(s)||z.isOptionalCallExpression(s)){let n=s.callee,a;z.isIdentifier(n)?a=n.name:(z.isMemberExpression(n)||z.isOptionalMemberExpression(n))&&z.isIdentifier(n.property)&&!n.computed&&(a=z.isIdentifier(n.object)?`${n.object.name}.${n.property.name}`:n.property.name),a&&!r.has(a)&&(r.add(a),t.push(a))}for(let n of Object.keys(s)){if(YX.has(n))continue;let a=s[n];if(Array.isArray(a))for(let o of a)Hg(o)&&i(o);else Hg(a)&&i(a)}};return i(e),t}function WX(e){return e.slice(2).toLowerCase()}function HX(e){if(e==="a"||e==="button")return"click";if(e==="input"||e==="select"||e==="textarea")return"change"}function zX(e){return e==="form"?"submit":e==="input"||e==="select"||e==="textarea"?"change":"click"}function qp(e){if(e&&z.isJSXExpressionContainer(e)&&!z.isJSXEmptyExpression(e.expression))return e.expression}function Up(e,t,r,i){let s=n=>({ref:n,effects:[],navTargets:[],dialogs:[]});if(z.isArrowFunctionExpression(e)||z.isFunctionExpression(e)){let n=qa(e.body,t,r,i,!0);return{ref:{kind:"inline",callees:jp(e.body),file:i,...e.loc?{line:e.loc.start.line}:{}},effects:n.effects,navTargets:n.navTargets,dialogs:n.dialogs}}if(z.isIdentifier(e)){let n=t.getBinding(e.name);if(!n)return s({kind:"named",name:e.name,callees:[]});if(n.kind==="param")return s({kind:"prop",name:e.name,callees:[]});let a=n.path.node,o;if(z.isFunctionDeclaration(a)?o=a.body:z.isVariableDeclarator(a)&&a.init&&(z.isArrowFunctionExpression(a.init)||z.isFunctionExpression(a.init))&&(o=a.init.body),o){let l=qa(o,n.path.scope,r,i,!0);return{ref:{kind:"named",name:e.name,callees:jp(o),file:i,...a.loc?{line:a.loc.start.line}:{}},effects:l.effects,navTargets:l.navTargets,dialogs:l.dialogs}}return n.kind==="module"?s({kind:"named",name:e.name,callees:[],...n.path.node.loc?{line:n.path.node.loc.start.line}:{}}):s({kind:"named",name:e.name,callees:[],file:i,...n.path.node.loc?{line:n.path.node.loc.start.line}:{}})}return z.isMemberExpression(e)&&z.isIdentifier(e.property)&&!e.computed?z.isIdentifier(e.object)&&(e.object.name==="props"||e.object.name==="this")?s({kind:"prop",name:e.property.name,callees:[]}):s({kind:"unknown",name:z.isIdentifier(e.object)?`${e.object.name}.${e.property.name}`:e.property.name,callees:[]}):z.isCallExpression(e)?s({kind:"unknown",callees:jp(e)}):s({kind:"unknown",callees:[]})}function Kp(e,t){return{event:e,handler:t?.ref,apiCalls:t?.effects??[],navTargets:t?.navTargets??[],dialogs:t?.dialogs??[]}}function GX(e,t,r,i,s){let n=r.node,a=[];for(let h of n.attributes){if(!z.isJSXAttribute(h))continue;let x=Jp(h.name);x&&/^on[A-Z]/.test(x)&&a.push({event:WX(x),attr:h})}let o=zX(e),l=a.find(h=>h.event===o);if(l){let h=qp(l.attr.value);return Kp(o,h?Up(h,r.scope,i,s):void 0)}let u=typeof t.type=="string"?t.type:void 0;if(e==="button"&&(u===void 0||u==="submit"||u==="image")&&a.length===0){let h=r.findParent(x=>x.isJSXElement()&&Gg(x.node.openingElement,"form"));if(h){let x=h.node.openingElement,A=Ci(x,"onSubmit"),P=A?qp(A.value):void 0;return Kp("submit",P?Up(P,h.scope,i,s):void 0)}}let f=a[0];if(f){let h=qp(f.attr.value);return Kp(f.event,h?Up(h,r.scope,i,s):void 0)}return{event:HX(e),handler:void 0,apiCalls:[],navTargets:[],dialogs:[]}}function QX(e,t,r,i){let s=t==="Link"||t==="NavLink"||t==="Navigate",n=(s?Ci(r,"to"):void 0)??(s||e==="a"?Ci(r,"href"):void 0);if(!n)return;let a=n.value;if(z.isStringLiteral(a))return{to:a.value,static:!0};if(a&&z.isJSXExpressionContainer(a)&&!z.isJSXEmptyExpression(a.expression)){let o=ja(a.expression,i);return{...o.value?{to:o.value}:{},static:o.static,...o.raw?{raw:o.raw}:{}}}}function ei(e,t){let r=Br(e),i=new Map,s=new Map,n=[];return FX(r,{JSXOpeningElement(a){let o=a.node,l=$p(o);if(!l)return;let{attrs:u,spread:f}=UX(o),h=a.parentPath&&a.parentPath.isJSXElement()?a.parentPath:void 0,x=h?h.node:void 0;if(typeof u.id=="string"&&x&&!i.has(u.id)&&i.set(u.id,x),l==="label"){let b=u.htmlFor??u.for;typeof b=="string"&&x&&!s.has(b)&&s.set(b,x)}let A=/^[A-Z]/.test(l),P=A?l:void 0,w=A?zg.has(l)?"a":l.toLowerCase():l;KX(w,P,u)&&n.push({opening:o,jsxEl:x,wrapLabel:h?JX(h):void 0,tag:w,component:P,attrs:u,spread:f,context:$X(a,e),eventHandler:GX(w,u,a,e,t),linkTarget:QX(w,P,o,e)})}}),n.map(a=>{let o=a.opening.loc?.start??{line:0,column:0},l=XX({tag:a.tag,attrs:a.attrs,opening:a.opening,jsxEl:a.jsxEl,wrapLabel:a.wrapLabel,source:e,idIndex:i,labelForIndex:s});return{id:`${t}:${o.line}:${o.column}:${a.tag}`,tag:a.tag,...a.component?{component:a.component}:{},...Wg(a.tag,a.component,a.attrs)?{role:Wg(a.tag,a.component,a.attrs)}:{},...typeof a.attrs.type=="string"?{type:a.attrs.type}:{},attrs:a.attrs,spread:a.spread,repeated:a.context.repeated,conditional:a.context.conditional,...a.context.conditionSource?{conditionSource:a.context.conditionSource}:{},...l.accessibleName!==void 0?{accessibleName:l.accessibleName}:{},nameStatic:l.nameStatic,...l.nameFrom?{nameFrom:l.nameFrom}:{},...a.eventHandler.event?{event:a.eventHandler.event}:{},...a.eventHandler.handler?{handler:a.eventHandler.handler}:{},apiCalls:a.eventHandler.apiCalls,...a.linkTarget?{linkTarget:a.linkTarget}:{},navTargets:a.eventHandler.navTargets,...a.eventHandler.dialogs.length>0?{dialogs:a.eventHandler.dialogs}:{},ownerComponent:a.context.ownerComponent,file:t,line:o.line,column:o.column}})}var ZX=3;function eY(e,t){let r=e.conditionSource??t.conditionSource;return{conditional:e.conditional||t.conditional,repeated:e.repeated||t.repeated,...r?{conditionSource:r}:{}}}function Ka(e,t,r,i={}){let{aliases:s={},maxDepth:n=ZX,filterEntry:a=!0}=i,o=new Map,l=(P,w)=>{let b=o.get(P);return b||(b=ei(w,P),o.set(P,b)),b},u=new Map,f=(P,w)=>{let b=u.get(P);return b||(b=Kg(P,w,r,s),u.set(P,b)),b},h=[],x=new Set,A=[{file:e,...t&&a?{component:t}:{},chain:t?[t]:[],depth:0,conditional:!1,repeated:!1}];for(;A.length>0;){let P=A.pop(),w=`${P.file}#${P.component??"*"}`;if(x.has(w))continue;x.add(w);let b=r.get(P.file);if(!b)continue;let C=l(P.file,b.source),D=f(P.file,b.source),U=new Set([...C.map(L=>L.ownerComponent),...D.flatMap(L=>L.renderedIn?[L.renderedIn]:[])]),k=P.component;k!==void 0&&!U.has(k)&&(k=U.size===1?[...U][0]:U.size===0?void 0:k);for(let L of C){if(k!==void 0&&L.ownerComponent!==k)continue;let te=L.conditionSource??P.conditionSource;h.push({...L,conditional:L.conditional||P.conditional,repeated:L.repeated||P.repeated,...te?{conditionSource:te}:{},fromFile:P.file,chain:P.chain,depth:P.depth})}if(!(P.depth>=n))for(let L of D)k!==void 0&&L.renderedIn!==void 0&&L.renderedIn!==k||A.push({file:L.file,component:L.componentName,chain:[...P.chain,L.componentName],depth:P.depth+1,...eY(P,L)})}return h}var tY=["data-testid","data-test-id","data-test","data-cy"],rY=new Set(["button","link","textbox","checkbox","radio","combobox","searchbox","switch","tab","menuitem","option"]);function Va(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function iY(e){if(e.role)return e.role;switch(e.tag){case"button":return"button";case"a":return"link";case"select":return"combobox";case"textarea":return"textbox";case"input":switch(e.type){case"checkbox":return"checkbox";case"radio":return"radio";case"submit":case"button":return"button";case"search":return"searchbox";case void 0:case"text":case"email":case"password":case"tel":case"url":return e.type==="password"?void 0:"textbox";default:return}default:return}}function Zg(e){for(let i of tY){let s=e.attrs[i];if(typeof s=="string"&&s!=="")return{selector:`[${i}="${Va(s)}"]`,confidence:"high",strategy:"testid"}}let t=iY(e);if(t&&rY.has(t)&&e.accessibleName&&e.nameStatic)return{selector:`role=${t}[name="${Va(e.accessibleName)}"i]`,confidence:e.repeated?"medium":"high",strategy:"role-name"};let r=e.attrs.placeholder;if(typeof r=="string"&&r!=="")return{selector:`[placeholder="${Va(r)}"]`,confidence:"medium",strategy:"placeholder"};if(e.tag==="input"&&e.type)return{selector:`input[type="${Va(e.type)}"]`,confidence:e.repeated?"low":"medium",strategy:"type"};if(t)return{selector:`role=${t}`,confidence:"low",strategy:"role"};if(["button","a","input","select","textarea","form"].includes(e.tag))return{selector:e.tag,confidence:"low",strategy:"tag"}}function eS(e){return e.tag==="select"?"select":e.tag==="input"&&(e.type==="checkbox"||e.type==="radio")?"check":e.tag==="textarea"||e.tag==="input"&&["text","email","password","search","tel","url","number",void 0].includes(e.type)?"fill":"click"}var tS=Xp.default.default??Xp.default;function rS(e,t){for(let r of e.attributes)if(!(!gt.isJSXAttribute(r)||!gt.isJSXIdentifier(r.name)||r.name.name!==t)&&gt.isStringLiteral(r.value))return r.value.value}function iS(e){let t=gt.isJSXElement(e)?e.openingElement:e;return gt.isJSXIdentifier(t.name)?t.name.name:void 0}function sY(e){for(let t of e.attributes){if(!gt.isJSXAttribute(t)||!gt.isJSXIdentifier(t.name)||t.name.name!=="element")continue;let r=t.value;if(r&&gt.isJSXExpressionContainer(r)&&gt.isJSXElement(r.expression))return r.expression}}function nY(e){let t=Br(e),r=new Map,i=[],s=new Set;tS(t,{ImportDeclaration(o){let l=o.node.source.value;for(let u of o.node.specifiers)(gt.isImportDefaultSpecifier(u)||gt.isImportSpecifier(u))&&r.set(u.local.name,l)},JSXElement(o){if(iS(o.node)!=="Route")return;let u=rS(o.node.openingElement,"path");if(u===void 0)return;let f=sY(o.node.openingElement),h=f?iS(f)??"?":"?",x=o.node.loc?.start??{line:0,column:0};i.push({path:u,component:h,...h==="Navigate"?{redirectTo:rS(f.openingElement,"to")??"/"}:{},loc:{line:x.line,column:x.column}})}});let n=new Set(i.map(o=>o.component)),a=new Set;tS(t,{JSXOpeningElement(o){let l=gt.isJSXIdentifier(o.node.name)?o.node.name.name:void 0;l&&/^[A-Z]/.test(l)&&a.add(l)}});for(let o of a)["Routes","Route","Navigate"].includes(o)||n.has(o)||r.has(o)&&s.add(o);return{routes:i,sharedComponents:[...s],imports:r}}function sS(e){return e.split("/").filter(t=>t.startsWith(":")).map(t=>t.slice(1))}function en(e){return`page:${e}`}function aY(e,t){if(e===t)return!0;let r=e.split("/"),i=t.split("/");return r.length!==i.length?!1:r.every((s,n)=>s.startsWith(":")||i[n]?.startsWith(":")||s===i[n])}var oY=["id","tag","component","role","accessibleName","nameStatic","nameFrom","attrs","type","spread","repeated","conditional","conditionSource","event","handler","dialogs","file","line","column","ownerComponent"];function lY(e){let t={};for(let s of oY)e[s]!==void 0&&(t[s]=e[s]);let r=t,i=Zg(r);return i&&(r.selector=i.selector,r.selectorConfidence=i.confidence),r.action=eS(r),r}function uY(e){let t=[];e.linkTarget&&t.push({target:e.linkTarget.to,static:e.linkTarget.static,raw:e.linkTarget.raw,guardSource:e.conditionSource});for(let r of e.navTargets)t.push({target:r.to,static:r.toStatic,raw:r.raw,guardSource:r.guardSource??e.conditionSource});return t}function $a(e){let t=new Set(e.filter(r=>r.tag==="button"&&r.attrs.type==="submit"&&r.handler?.line!==void 0).map(r=>r.handler.line));return e.filter(r=>!(r.tag==="form"&&r.handler?.line!==void 0&&t.has(r.handler.line)))}function tn(e,t={}){let r=new Map(e.map(B=>[B.file,B])),i=t.aliases??{},s=t.router==="app-router"||t.router!=="react-router"&&Fg(e),n=s?void 0:t.appFile??e.find(B=>/(^|\/)App\.tsx$/.test(B.file))?.file??e.find(B=>B.source.includes("<Routes"))?.file;if(!s&&(!n||!r.has(n)))throw new Error("assembleTree: could not find the App file (pass opts.appFile)");let a={filesAnalyzed:e.map(B=>B.file).sort(),parseErrors:[],unresolvedTargets:[],dynamicNames:[],unresolvedHandlers:[],unresolvedEffects:[],orphanElements:[]};for(let B of e){let G=_g(Br(B.source));for(let me of G)a.parseErrors.push({file:B.file,message:String(me)})}let o=[],l=[];if(s){let B=Rg(e,t.appDir);for(let G of B.routes)o.push({path:G.path,component:G.component,file:G.file,loc:{line:0,column:0}});for(let G of B.layouts)l.push({name:G.component,file:G.file,wraps:me=>jg(G.prefix,me)})}else{let B=nY(r.get(n).source);for(let G of B.routes){let me=B.imports.get(G.component),je=me?Ba(me,n,r,i):void 0;o.push({...G,...je?{file:je}:{}})}for(let G of B.sharedComponents){let me=B.imports.get(G),je=me?Ba(me,n,r,i):void 0;je&&l.push({name:G,file:je})}}let u=new Map;for(let B of o)u.set(en(B.path),{id:en(B.path),kind:"page",path:B.path,params:sS(B.path),component:B.component,...B.file?{file:B.file}:{},elements:[]});let f=o.map(B=>B.path),h=u.get("page:/")?.id??[...u.values()][0]?.id??"page:/",x=B=>{let G=en(B);return u.has(G)||u.set(G,{id:G,kind:"page",path:B,params:sS(B),component:"(inferred)",elements:[],inferred:!0}),G},A=B=>{let G=B.target??B.raw;if(!G)return{kind:"unresolved",raw:"(no target)"};if(/^https?:\/\//.test(G))return{kind:"external",href:G};if(!G.startsWith("/"))return{kind:"unresolved",raw:G};let me=f.find(je=>aY(je,G));return me?{kind:"page",id:en(me)}:{kind:"page",id:x(G)}},P=new Map,w=B=>{let G=`effect:${B.id}`;return P.has(G)||P.set(G,{id:G,kind:"leaf",effect:B}),G},b=[],C=new Set,D=B=>{C.has(B.id)||(C.add(B.id),b.push(B))},U=B=>B.kind==="external"?`external:${B.href}`:B.kind==="unresolved"?`unresolved:${B.raw}`:B.id,k=B=>{let G=new Set,me=[];for(let je of B){let ht=`${je.id}|${je.guardSource??""}`;G.has(ht)||(G.add(ht),me.push(je))}return me},L=B=>{B.accessibleName!==void 0&&!B.nameStatic&&!a.dynamicNames.includes(B.id)&&a.dynamicNames.push(B.id),B.handler&&(B.handler.kind==="unknown"||B.handler.kind==="named"&&B.handler.line===void 0)&&a.unresolvedHandlers.push(B.id);for(let G of B.apiCalls)(!G.endpoint&&!G.resource||G.external)&&(a.unresolvedEffects.includes(G.id)||a.unresolvedEffects.push(G.id))},te=(B,G,me)=>{L(B);let je=uY(B),ht=k(B.apiCalls),Mt=lY(B);if(je.length>0){for(let We of je){let ot=A(We),Et=`nav:${G}->${U(ot)}:${B.file}:${B.line}${me?`:${me}`:""}`;ot.kind==="unresolved"&&a.unresolvedTargets.push({edgeId:Et,raw:ot.raw}),D({id:Et,kind:"nav",from:G,to:ot,trigger:Mt,apiCalls:ht,...We.guardSource?{guardSource:We.guardSource}:{},...me?{viaComponent:me}:{}})}return}if(ht.length>0){for(let We of ht){let ot=w(We),Et=`effect:${G}->${ot}:${B.file}:${B.line}${me?`:${me}`:""}`;D({id:Et,kind:"effect",from:G,to:{kind:"leaf",id:ot},trigger:Mt,apiCalls:[We],...We.guardSource??B.conditionSource?{guardSource:We.guardSource??B.conditionSource}:{},...me?{viaComponent:me}:{}})}return}u.get(G)?.elements.push(Mt)},{followChildren:Te=!0,maxDepth:be}=t,X=new Map,Ye=(B,G)=>{let me=`${B}#${G??""}`,je=X.get(me);if(!je){let ht=r.get(B);if(!ht)je=[];else if(!Te)je=$a(ei(ht.source,B));else{let Mt=Ka(B,G,r,{aliases:i,...be!==void 0?{maxDepth:be}:{},filterEntry:!1}),We=new Map;for(let ot of Mt){let Et=We.get(ot.fromFile);Et?Et.push(ot):We.set(ot.fromFile,[ot])}je=[...We.values()].flatMap($a)}X.set(me,je)}return je};for(let B of u.values())if(B.file)for(let G of Ye(B.file,B.component))te(G,B.id,void 0);for(let B of o){if(!B.redirectTo||!n)continue;let G=en(B.path),me=A({target:B.redirectTo,static:!0,raw:B.redirectTo,guardSource:void 0}),je={id:`${n}:${B.loc.line}:${B.loc.column}:navigate`,tag:"navigate",component:"Navigate",attrs:{to:B.redirectTo},spread:!1,nameStatic:!1,repeated:!1,conditional:!1,file:n,line:B.loc.line,column:B.loc.column,ownerComponent:"App"};D({id:`nav:${G}->${U(me)}:redirect`,kind:"nav",from:G,to:me,trigger:je,apiCalls:[]})}for(let B of l)for(let G of Ye(B.file,B.name))for(let me of u.values())me.inferred||B.wraps&&!B.wraps(me.path)||te(G,me.id,B.name);let ct=new Set;for(let B of b)ct.add(B.trigger.id);for(let B of u.values())for(let G of B.elements)ct.add(G.id);for(let[,B]of X)for(let G of B)!ct.has(G.id)&&!a.orphanElements.includes(G.id)&&a.orphanElements.push(G.id);return{schemaVersion:2,generatedAt:new Date().toISOString(),root:h,nodes:{pages:[...u.values()].sort((B,G)=>B.id.localeCompare(G.id)),leaves:[...P.values()].sort((B,G)=>B.id.localeCompare(G.id))},edges:b,diagnostics:a}}var Ja=(e,t)=>t===0?0:Math.round(e/t*1e3)/10;function cY(e,t){let r=new Set;for(let i of e.nodes.pages)if(i.id===t)for(let s of i.elements)r.add(s.id);for(let i of e.edges)i.from===t&&r.add(i.trigger.id);return r}function pY(e,t={}){let r=new Map(e.map(x=>[x.file,x])),i=tn(e,{...t,followChildren:!0}),s=tn(e,{...t,followChildren:!1}),n=[],a=new Set,o=new Set,l=0,u=0;for(let x of i.nodes.pages){if(x.inferred||!x.file)continue;let A=Ka(x.file,x.component,r,{...t.aliases?{aliases:t.aliases}:{},...t.maxDepth!==void 0?{maxDepth:t.maxDepth}:{},filterEntry:!1}),P=new Map;for(let k of A){let L=P.get(k.fromFile);L?L.push(k):P.set(k.fromFile,[k])}let w=[...P.values()].flatMap($a);for(let k of w)a.add(k.id),o.add(k.file);let b=new Set(w.map(k=>k.id)),C=k=>[...cY(k,x.id)].filter(L=>b.has(L)).length,D=C(s),U=C(i);l+=D,u+=U,n.push({path:x.path,file:x.file,own:w.filter(k=>k.file===x.file).length,viaChild:w.filter(k=>k.file!==x.file).length,placedBaseline:D,placedFollowing:U})}let f=n.reduce((x,A)=>x+A.own+A.viaChild,0),h=e.filter(x=>/\.tsx$/.test(x.file)&&!o.has(x.file)).map(x=>({file:x.file,elements:ei(x.source,x.file).length})).filter(x=>x.elements>0).sort((x,A)=>x.file.localeCompare(A.file));return{routes:n,totals:{reachable:f,own:n.reduce((x,A)=>x+A.own,0),viaChild:n.reduce((x,A)=>x+A.viaChild,0),placedBaseline:l,placedFollowing:u,missedBaseline:f-l,missedFollowing:f-u,missedBaselinePct:Ja(f-l,f),missedFollowingPct:Ja(f-u,f)},unreachedFiles:h}}function fY(e){let t=[];t.push("| route | own els | child els | reachable | attached (before) | attached (after) | missed before | missed after |"),t.push("|---|---|---|---|---|---|---|---|");for(let i of e.routes){let s=i.own+i.viaChild;t.push(`| \`${i.path}\` | ${i.own} | ${i.viaChild} | ${s} | ${i.placedBaseline} | ${i.placedFollowing} | ${Ja(s-i.placedBaseline,s)}% | ${Ja(s-i.placedFollowing,s)}% |`)}let r=e.totals;return t.push(`| **all** | **${r.own}** | **${r.viaChild}** | **${r.reachable}** | **${r.placedBaseline}** | **${r.placedFollowing}** | **${r.missedBaselinePct}%** | **${r.missedFollowingPct}%** |`),t.join(`
56
+ `)}function dY(e){switch(e.kind){case"external":return`external:${e.href}`;case"unresolved":return`unresolved:${e.raw}`;default:return e.id}}function hY(e,t){let r=new Set([...e.nodes.pages.map(s=>s.id),...e.nodes.leaves.map(s=>s.id)]);return r.has(t)?t:r.has(`page:${t}`)?`page:${t}`:e.nodes.pages.find(s=>s.component===t)?.id}function mY(e,t,r={}){let{depth:i=2,kinds:s,includeUnresolved:n=!0,skipShared:a=!1}=r,o=hY(e,t);if(!o)throw new Error(`bfs: no node matches ${JSON.stringify(t)}`);let l=new Map([...e.nodes.pages.map(b=>[b.id,b]),...e.nodes.leaves.map(b=>[b.id,b])]),u=new Map;for(let b of e.edges){if(s&&!s.includes(b.kind)||a&&b.viaComponent)continue;let C=u.get(b.from);C?C.push(b):u.set(b.from,[b])}let f=l.get(o),h=[{id:o,depth:0,target:{kind:f?.kind==="leaf"?"leaf":"page",id:o},...f?{node:f}:{}}],x=new Set([o]),A=[],P=[],w=[o];for(let b=1;b<=i&&w.length>0;b+=1){let C=[];for(let D of w)for(let U of u.get(D)??[]){let k=U.to.kind==="external"||U.to.kind==="unresolved";if(k&&!n)continue;A.push(U);let L=dY(U.to);if(x.has(L))continue;x.add(L);let te=l.get(L);h.push({id:L,depth:b,target:U.to,...te?{node:te}:{},via:U}),!k&&te?.kind!=="leaf"&&C.push(L)}w=C}for(let b of w)(u.get(b)??[]).length>0&&P.push(b);return{from:o,maxDepth:i,order:h,edges:A,frontier:P}}function Xa(e){let t=e.message!==void 0?JSON.stringify(e.message):e.messageRaw??"",r=e.gates?" \u2014 the answer decides what the click does":"";return`${e.type} ${t}`.trimEnd()+r}function yY(e){let t=[];for(let r of e.order){let i=" ".repeat(r.depth);if(!r.via){t.push(`${r.id}`);continue}let s=r.via.trigger.accessibleName??r.via.trigger.tag,n=r.via.guardSource?` [if ${r.via.guardSource}]`:"",a=r.via.viaComponent?` (via ${r.via.viaComponent})`:"";t.push(`${i}\u2514\u2500 ${r.via.kind} "${s}"${n}${a} \u2192 ${r.id}`);for(let o of r.via.trigger.dialogs??[])t.push(`${i} opens ${Xa(o)}`)}return e.frontier.length>0&&t.push(`# frontier at depth ${e.maxDepth}: ${e.frontier.join(", ")}`),t.join(`
57
+ `)}var nS=["button","input","a","form","select","textarea"],ti=(e,t)=>t===0?0:Math.round(e/t*1e3)/10;function TY(e){return e.flatMap(t=>/\.tsx$/.test(t.file)?ei(t.source,t.file):[])}function gY(e){return(!!e.linkTarget||e.navTargets.length>0)&&!e.handler&&e.event!=="submit"}function SY(e,t){let r=TY(e),i={};for(let X of nS)i[X]=0;let s={};for(let X of r)i[X.tag]=(i[X.tag]??0)+1,X.component&&(s[X.component]=(s[X.component]??0)+1);let n=r.filter(X=>X.accessibleName!==void 0).length,a=r.filter(X=>X.accessibleName!==void 0&&X.nameStatic).length,o=r.filter(gY).length,l=r.length-o,u=r.filter(X=>X.handler!==void 0).length,f=r.filter(X=>X.handler!==void 0||!!X.linkTarget||X.navTargets.length>0||X.event==="submit").length,h=t.edges.filter(X=>X.kind==="nav"),x=t.edges.filter(X=>X.kind==="effect"),A=t.edges.filter(X=>X.viaComponent),P=t.edges.filter(X=>X.apiCalls.length>0).length,w=new Set(t.nodes.leaves.map(X=>X.effect.id)),b=new Set(w),C=new Set;for(let X of t.edges)for(let Ye of X.apiCalls)b.add(Ye.id),w.has(Ye.id)||C.add(Ye.id);let D=t.nodes.pages,U=D.filter(X=>!X.inferred),k=new Map(D.map(X=>[X.id,X.file])),L=0,te=0,Te=(X,Ye,ct)=>{if(L+=1,ct!==void 0){Ye.ownerComponent!==ct&&(te+=1);return}let B=k.get(X);B!==void 0&&Ye.file!==B&&(te+=1)};for(let X of D)for(let Ye of X.elements)Te(X.id,Ye);for(let X of t.edges)Te(X.from,X.trigger,X.viaComponent);let be={files:{analyzed:e.length,withElements:new Set(r.map(X=>X.file)).size},elements:{total:r.length,byTag:i,byComponent:s,named:n,nameStatic:a,navOnly:o,expectingHandler:l,withHandler:u,handlerCoveragePct:ti(u,l),actionable:f,conditional:r.filter(X=>X.conditional).length,repeated:r.filter(X=>X.repeated).length,withSpread:r.filter(X=>X.spread).length},graph:{pages:D.length,pagesInferred:D.filter(X=>X.inferred).length,leaves:t.nodes.leaves.length,edges:t.edges.length,nav:h.length,effect:x.length,viaComponent:A.length,own:t.edges.length-A.length,viaComponentRatioPct:ti(A.length,t.edges.length),crossFile:te,crossFilePlaced:L,crossFileRatioPct:ti(te,L),edgesWithEffect:P},effects:{distinct:b.size,asLeaf:w.size,onEdgeOnly:C.size,represented:b.size},bar:[]};return be.bar=[{check:"interactive elements found vs hand count (30)",target:"\u2265 90%",actual:`${r.length}/30 = ${ti(r.length,30)}%`,pass:r.length/30>=.9},{check:"elements with an accessible name",target:"\u2265 80%",actual:`${n}/${r.length} = ${ti(n,r.length)}%`,pass:ti(n,r.length)>=80},{check:"handler resolved (elements that expect one)",target:"\u2265 80%",actual:`${u}/${l} = ${be.elements.handlerCoveragePct}%`,pass:be.elements.handlerCoveragePct>=80},{check:"every declared route \u2192 a page node",target:"100%",actual:`${U.length}/${U.length}`,pass:U.length>0},{check:"every distinct backend effect represented in the graph",target:"100%",actual:`${b.size} distinct \u2014 ${w.size} as leaf nodes, ${C.size} on nav-edge apiCalls`,pass:b.size>0}],be}function xY(e,t){let r=[],i=(o="")=>{r.push(o)};i("# interaction-tree \u2014 fixture coverage (M7)"),i(),i(`Generated ${t.generatedAt}. Source: \`spike/interaction-tree/fixture/src\`.`),i(),i("## Bar"),i(),i("| check | target | actual | result |"),i("|---|---|---|---|");for(let o of e.bar)i(`| ${o.check} | ${o.target} | ${o.actual} | ${o.pass===null?"\u2014":o.pass?"\u2705":"\u274C"} |`);i(),i("## Elements"),i(),i(`- **${e.elements.total}** interactive elements across **${e.files.withElements}** files (of ${e.files.analyzed} analyzed).`),i(`- by tag: ${nS.map(o=>`\`${o}\` ${e.elements.byTag[o]??0}`).join(" \xB7 ")}`),i(`- by wrapper component: ${Object.entries(e.elements.byComponent).map(([o,l])=>`\`${o}\` ${l}`).join(" \xB7 ")||"none"}`),i(`- accessible name: ${e.elements.named}/${e.elements.total} named (${ti(e.elements.named,e.elements.total)}%), ${e.elements.nameStatic} fully static, ${e.elements.named-e.elements.nameStatic} dynamic.`),i(`- handler: ${e.elements.withHandler}/${e.elements.total} overall (${ti(e.elements.withHandler,e.elements.total)}%); ${e.elements.navOnly} are pure-navigation \`<Link>\`/\`<a>\` (target resolved, no handler expected); **${e.elements.handlerCoveragePct}%** of the ${e.elements.expectingHandler} that expect one.`),i(`- actionable (handler or nav target or submit): ${e.elements.actionable}/${e.elements.total}.`),i(`- render context: ${e.elements.conditional} conditional, ${e.elements.repeated} repeated, ${e.elements.withSpread} with \`{...spread}\`.`),i(),i("## Graph"),i(),i(`- **${e.graph.pages}** page nodes (${e.graph.pagesInferred} inferred), **${e.graph.leaves}** leaf nodes.`),i(`- **${e.graph.edges}** edges \u2014 ${e.graph.nav} nav, ${e.graph.effect} effect.`),i(`- **${e.graph.viaComponent}** carry \`viaComponent\` (shared-component fan-out), ${e.graph.own} own. Ratio **${e.graph.viaComponentRatioPct}%**.`),i(`- ${e.graph.edgesWithEffect}/${e.graph.edges} edges carry \u22651 backend effect.`),i(`- **${e.graph.crossFile}**/${e.graph.crossFilePlaced} placed elements come from a child component in another file (**${e.graph.crossFileRatioPct}%**).`),i(),i("### Page nodes"),i();for(let o of t.nodes.pages)i(`- \`${o.id}\` \u2014 ${o.component}${o.inferred?" *(inferred)*":""}, params [${o.params.join(", ")}], ${o.elements.length} page element(s)`);i(),i("### Leaf nodes"),i();for(let o of t.nodes.leaves){let l=o.effect;i(`- \`${o.id}\` \u2014 ${l.method} ${l.client}/${l.effectKind}${l.resource?`, resource \`${l.resource}\``:""}`)}i(),i("## Browser dialogs"),i(),i("Native `alert` / `confirm` / `prompt` an element opens. `verirun run` answers each with the step's `dialog` (default: accept)."),i();let s=new Set,n=(o,l)=>{for(let u of l.dialogs??[]){let f=l.accessibleName??l.tag;s.add(`- \`${o}\` "${f}" (${l.file}:${l.line}) opens ${Xa(u)}`)}};for(let o of t.nodes.pages)for(let l of o.elements)n(o.id,l);for(let o of t.edges)n(o.from,o.trigger);s.size===0&&i("none");for(let o of s)i(o);i(),i("## Diagnostics"),i();let a=t.diagnostics;return i(`- files analyzed: ${a.filesAnalyzed.length}, parse errors: ${a.parseErrors.length}`),i(`- dynamic accessible names: ${a.dynamicNames.length?a.dynamicNames.map(o=>`\`${o}\``).join(", "):"none"}`),i(`- unresolved handlers: ${a.unresolvedHandlers.length?a.unresolvedHandlers.join(", "):"none"}`),i(`- unresolved backend effects: ${a.unresolvedEffects.length?a.unresolvedEffects.map(o=>`\`${o}\``).join(", "):"none"}`),i(`- unresolved nav targets: ${a.unresolvedTargets.length?JSON.stringify(a.unresolvedTargets):"none"}`),i(`- orphan elements: ${a.orphanElements.length?a.orphanElements.join(", "):"none"}`),i(),r.join(`
58
+ `)}export{tn as assembleTree,mY as bfs,SY as buildCoverage,Xa as describeDialog,pY as measureReach,yY as renderBfs,xY as renderMarkdown,fY as renderReachTable};