TOPVERSE_Official/.output/public/_nuxt/parser-babel.96f1b09f.js

28 lines
302 KiB
JavaScript
Raw Normal View History

2023-05-30 00:33:57 +08:00
import{bo as ro,bn as ii}from"./model.vue.e27142d7.js";import"./entry.c3abd651.js";function io(ot,ks){return ks.forEach(function(E){E&&typeof E!="string"&&!Array.isArray(E)&&Object.keys(E).forEach(function(he){if(he!=="default"&&!(he in ot)){var we=Object.getOwnPropertyDescriptor(E,he);Object.defineProperty(ot,he,we.get?we:{enumerable:!0,get:function(){return E[he]}})}})}),Object.freeze(Object.defineProperty(ot,Symbol.toStringTag,{value:"Module"}))}var Is={exports:{}};(function(ot,ks){(function(E){ot.exports=E()})(function(){var E=(C,c)=>()=>(c||C((c={exports:{}}).exports,c),c.exports),he=E((C,c)=>{var u=function(d){return d&&d.Math==Math&&d};c.exports=u(typeof globalThis=="object"&&globalThis)||u(typeof window=="object"&&window)||u(typeof self=="object"&&self)||u(typeof ii=="object"&&ii)||function(){return this}()||Function("return this")()}),we=E((C,c)=>{c.exports=function(u){try{return!!u()}catch{return!0}}}),Qe=E((C,c)=>{var u=we();c.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),Rt=E((C,c)=>{var u=we();c.exports=!u(function(){var d=function(){}.bind();return typeof d!="function"||d.hasOwnProperty("prototype")})}),Ut=E((C,c)=>{var u=Rt(),d=Function.prototype.call;c.exports=u?d.bind(d):function(){return d.apply(d,arguments)}}),ai=E(C=>{var c={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,d=u&&!c.call({1:2},1);C.f=d?function(m){var f=u(this,m);return!!f&&f.enumerable}:c}),Ds=E((C,c)=>{c.exports=function(u,d){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:d}}}),Se=E((C,c)=>{var u=Rt(),d=Function.prototype,m=d.bind,f=d.call,b=u&&m.bind(f,f);c.exports=u?function(T){return T&&b(T)}:function(T){return T&&function(){return f.apply(T,arguments)}}}),_t=E((C,c)=>{var u=Se(),d=u({}.toString),m=u("".slice);c.exports=function(f){return m(d(f),8,-1)}}),ni=E((C,c)=>{var u=he(),d=Se(),m=we(),f=_t(),b=u.Object,T=d("".split);c.exports=m(function(){return!b("z").propertyIsEnumerable(0)})?function(S){return f(S)=="String"?T(S,""):b(S)}:b}),Fs=E((C,c)=>{var u=he(),d=u.TypeError;c.exports=function(m){if(m==null)throw d("Can't call method on "+m);return m}}),zt=E((C,c)=>{var u=ni(),d=Fs();c.exports=function(m){return u(d(m))}}),ve=E((C,c)=>{c.exports=function(u){return typeof u=="function"}}),Ze=E((C,c)=>{var u=ve();c.exports=function(d){return typeof d=="object"?d!==null:u(d)}}),Pt=E((C,c)=>{var u=he(),d=ve(),m=function(f){return d(f)?f:void 0};c.exports=function(f,b){return arguments.length<2?m(u[f]):u[f]&&u[f][b]}}),oi=E((C,c)=>{var u=Se();c.exports=u({}.isPrototypeOf)}),hi=E((C,c)=>{var u=Pt();c.exports=u("navigator","userAgent")||""}),li=E((C,c)=>{var u=he(),d=hi(),m=u.process,f=u.Deno,b=m&&m.versions||f&&f.version,T=b&&b.v8,S,I;T&&(S=T.split("."),I=S[0]>0&&S[0]<4?1:+(S[0]+S[1])),!I&&d&&(S=d.match(/Edge\/(\d+)/),(!S||S[1]>=74)&&(S=d.match(/Chrome\/(\d+)/),S&&(I=+S[1]))),c.exports=I}),Ls=E((C,c)=>{var u=li(),d=we();c.exports=!!Object.getOwnPropertySymbols&&!d(function(){var m=Symbol();return!String(m)||!(Object(m)instanceof Symbol)||!Symbol.sham&&u&&u<41})}),Bs=E((C,c)=>{var u=Ls();c.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),Ms=E((C,c)=>{var u=he(),d=Pt(),m=ve(),f=oi(),b=Bs(),T=u.Object;c.exports=b?function(S){return typeof S=="symbol"}:function(S){var I=d("Symbol");return m(I)&&f(I.prototype,T(S))}}),pi=E((C,c)=>{var u=he(),d=u.String;c.exports=function(m){try{return d(m)}catch{return"Object"}}}),Ht=E((C,c)=>{var u=he(),d=ve(),m=pi(),f=u.TypeError;c.exports=function(b){if(d(b))return b;throw f(m(b)+" is not a function")}}),ui=E((C,c)=>{var u=Ht();c.exports=function(d,m){var f=d[m];return f==null?void 0:u(f)}}),ci=E((C,c)=>{var u=he(),d=Ut(),m=ve(),f=Ze(),b=u.TypeError;c.exports=function(T,S){var I,k;if(S==="string"&&m(I=T.toString)&&!f(k=d(I,T))||m(I=T.valueOf)&&!f(k=d(I,T))||S!=="string"&&m(I=T.toString)&&!f(k=d(I,T)))return k;throw b("Can't convert object to primitive value")}}),di=E((C,c)=>{c.exports=!1}),Vt=E((C,c)=>{var u=he(),d=Object.defineProperty;c.exports=function(m,f){try{d(u,m,{value:f,configurable:!0,writable:!0})}catch{u[m]=f}
2023-05-28 15:00:40 +08:00
`);return x===-1?y:y.slice(0,x)}A.exports=g}}),Pe=w({"src/utils/text/skip-inline-comment.js"(D,A){X();function g(y,x){if(x===!1)return!1;if(y.charAt(x)==="/"&&y.charAt(x+1)==="*"){for(let M=x+2;M<y.length;++M)if(y.charAt(M)==="*"&&y.charAt(M+1)==="/")return M+2}return x}A.exports=g}}),Fe=w({"src/utils/text/skip-newline.js"(D,A){X();function g(y,x,M){let O=M&&M.backwards;if(x===!1)return!1;let j=y.charAt(x);if(O){if(y.charAt(x-1)==="\r"&&j===`
`)return x-2;if(j===`
`||j==="\r"||j==="\u2028"||j==="\u2029")return x-1}else{if(j==="\r"&&y.charAt(x+1)===`
`)return x+2;if(j===`
`||j==="\r"||j==="\u2028"||j==="\u2029")return x+1}return x}A.exports=g}}),ht=w({"src/utils/text/skip.js"(D,A){X();function g(j){return(R,Q,W)=>{let F=W&&W.backwards;if(Q===!1)return!1;let{length:$}=R,N=Q;for(;N>=0&&N<$;){let ie=R.charAt(N);if(j instanceof RegExp){if(!j.test(ie))return N}else if(!j.includes(ie))return N;F?N--:N++}return N===-1||N===$?N:!1}}var y=g(/\s/),x=g(" "),M=g(",; "),O=g(/[^\n\r]/);A.exports={skipWhitespace:y,skipSpaces:x,skipToLineEnd:M,skipEverythingButNewLine:O}}}),Le=w({"src/utils/text/skip-trailing-comment.js"(D,A){X();var{skipEverythingButNewLine:g}=ht();function y(x,M){return M===!1?!1:x.charAt(M)==="/"&&x.charAt(M+1)==="/"?g(x,M):M}A.exports=y}}),le=w({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(D,A){X();var g=Pe(),y=Fe(),x=Le(),{skipSpaces:M}=ht();function O(j,R){let Q=null,W=R;for(;W!==Q;)Q=W,W=M(j,W),W=g(j,W),W=x(j,W),W=y(j,W);return W}A.exports=O}}),Te={};G(Te,{EOL:()=>Yt,arch:()=>Vi,cpus:()=>Zs,default:()=>ir,endianness:()=>lt,freemem:()=>$s,getNetworkInterfaces:()=>rr,hostname:()=>Xs,loadavg:()=>Gs,networkInterfaces:()=>sr,platform:()=>qi,release:()=>tr,tmpDir:()=>Xt,tmpdir:()=>Gt,totalmem:()=>Qs,type:()=>er,uptime:()=>Ys});function lt(){if(typeof Et>"u"){var D=new ArrayBuffer(2),A=new Uint8Array(D),g=new Uint16Array(D);if(A[0]=1,A[1]=2,g[0]===258)Et="BE";else if(g[0]===513)Et="LE";else throw new Error("unable to figure out endianess")}return Et}function Xs(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function Gs(){return[]}function Ys(){return 0}function $s(){return Number.MAX_VALUE}function Qs(){return Number.MAX_VALUE}function Zs(){return[]}function er(){return"Browser"}function tr(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function sr(){}function rr(){}function Vi(){return"javascript"}function qi(){return"browser"}function Xt(){return"/tmp"}var Et,Gt,Yt,ir,Ki=B({"node-modules-polyfills:os"(){X(),Gt=Xt,Yt=`
`,ir={EOL:Yt,tmpdir:Gt,tmpDir:Xt,networkInterfaces:sr,getNetworkInterfaces:rr,release:tr,type:er,cpus:Zs,totalmem:Qs,freemem:$s,uptime:Ys,loadavg:Gs,hostname:Xs,endianness:lt}}}),Wi=w({"node-modules-polyfills-commonjs:os"(D,A){X();var g=(Ki(),Y(Te));if(g&&g.default){A.exports=g.default;for(let y in g)A.exports[y]=g[y]}else g&&(A.exports=g)}}),Ji=w({"node_modules/detect-newline/index.js"(D,A){X();var g=y=>{if(typeof y!="string")throw new TypeError("Expected a string");let x=y.match(/(?:\r?\n)/g)||[];if(x.length===0)return;let M=x.filter(j=>j===`\r
`).length,O=x.length-M;return M>O?`\r
`:`
`};A.exports=g,A.exports.graceful=y=>typeof y=="string"&&g(y)||`
`}}),Xi=w({"node_modules/jest-docblock/build/index.js"(D){X(),Object.defineProperty(D,"__esModule",{value:!0}),D.extract=N,D.parse=me,D.parseWithComments=ee,D.print=ne,D.strip=ie;function A(){let h=Wi();return A=function(){return h},h}function g(){let h=y(Ji());return g=function(){return h},h}function y(h){return h&&h.__esModule?h:{default:h}}var x=/\*\/$/,M=/^\/\*\*/,O=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,j=/(^|\s+)\/\/([^\r\n]*)/g,R=/^(\r?\n)+/,Q=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,W=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,F=/(\r?\n|^) *\* ?/g,$=[];function N(h){let ce=h.match(O);return ce?ce[0].trimLeft():""}function ie(h){let ce=h.match(O);return ce&&ce[0]?h.substring(ce[0].length):h}function me(h){return ee(h).pragmas}function ee(h){let ce=(0,g().default)(h)||A().EOL;h=h.replace(M,"").replace(x,"").replace(F,"$1");let Ce="";for(;Ce!==h;)Ce=h,h=h.replace(Q,"".concat(ce,"$1 $2").concat(ce));h=h.replace(R,"").trimRight();let de=Object.create(null),et=h.replace(W,"").replace(R,"").trimRight(),fe;for(;fe=W.exec(h);){let ae=fe[2].replace(j,"");typeof de[fe[1]]=="string"||Array.isArray(de[fe[1]])?de[fe[1]]=$.concat(de[fe[1]],ae):de[fe[1]]=ae}return{comments:et,pragmas:de}}function ne(h){let{comments:ce="",pragmas:Ce={}}=h,de=(0,g().default)(ce)||A().EOL,et="/**",fe=" *",ae=" */",J=Object.keys(Ce),v=J.map(ge=>ue(ge,Ce[ge])).reduce((ge,ke)=>ge.concat(ke),[]).map(ge=>fe+" "+ge+de).join("");if(!ce){if(J.length===0)return"";if(J.length===1&&!Array.isArray(Ce[J[0]])){let ge=Ce[J[0]];return"".concat(et," ").concat(ue(J[0],ge)[0]).concat(ae)}}let ct=ce.split(de).map(ge=>"".concat(fe," ").concat(ge)).join(de)+de;return et+de+(ce?ct:"")+(ce&&J.length?fe+de:"")+v+ae}function ue(h,ce){return $.concat(ce).map(Ce=>"@".concat(h," ").concat(Ce).trim())}}}),Gi=w({"src/common/end-of-line.js"(D,A){X();function g(O){let j=O.indexOf("\r");return j>=0?O.charAt(j+1)===`
`?"crlf":"cr":"lf"}function y(O){switch(O){case"cr":return"\r";case"crlf":return`\r
`;default:return`
`}}function x(O,j){let R;switch(j){case`
`:R=/\n/g;break;case"\r":R=/\r/g;break;case`\r
`:R=/\r\n/g;break;default:throw new Error('Unexpected "eol" '.concat(JSON.stringify(j),"."))}let Q=O.match(R);return Q?Q.length:0}function M(O){return O.replace(/\r\n?/g,`
`)}A.exports={guessEndOfLine:g,convertEndOfLineToChars:y,countEndOfLineChars:x,normalizeEndOfLine:M}}}),Yi=w({"src/language-js/pragma.js"(D,A){X();var{parseWithComments:g,strip:y,extract:x,print:M}=Xi(),{normalizeEndOfLine:O}=Gi(),j=pe();function R(F){let $=j(F);$&&(F=F.slice($.length+1));let N=x(F),{pragmas:ie,comments:me}=g(N);return{shebang:$,text:F,pragmas:ie,comments:me}}function Q(F){let $=Object.keys(R(F).pragmas);return $.includes("prettier")||$.includes("format")}function W(F){let{shebang:$,text:N,pragmas:ie,comments:me}=R(F),ee=y(N),ne=M({pragmas:Object.assign({format:""},ie),comments:me.trimStart()});return($?"".concat($,`
`):"")+O(ne)+(ee.startsWith(`
`)?`
`:`
`)+ee}A.exports={hasPragma:Q,insertPragma:W}}}),ar=w({"src/utils/is-non-empty-array.js"(D,A){X();function g(y){return Array.isArray(y)&&y.length>0}A.exports=g}}),nr=w({"src/language-js/loc.js"(D,A){X();var g=ar();function y(R,Q){let{ignoreDecorators:W}=Q||{};if(!W){let F=R.declaration&&R.declaration.decorators||R.decorators;if(g(F))return y(F[0])}return R.range?R.range[0]:R.start}function x(R){return R.range?R.range[1]:R.end}function M(R,Q){let W=y(R);return Number.isInteger(W)&&W===y(Q)}function O(R,Q){let W=x(R);return Number.isInteger(W)&&W===x(Q)}function j(R,Q){return M(R,Q)&&O(R,Q)}A.exports={locStart:y,locEnd:x,hasSameLocStart:M,hasSameLoc:j}}}),or=w({"src/language-js/parse/utils/create-parser.js"(D,A){X();var{hasPragma:g}=Yi(),{locStart:y,locEnd:x}=nr();function M(O){return O=typeof O=="function"?{parse:O}:O,Object.assign({astFormat:"estree",hasPragma:g,locStart:y,locEnd:x},O)}A.exports=M}}),$t=w({"src/common/parser-create-error.js"(D,A){X();function g(y,x){let M=new SyntaxError(y+" ("+x.start.line+":"+x.start.column+")");return M.loc=x,M}A.exports=g}}),hr=w({"src/language-js/parse/utils/create-babel-parse-error.js"(D,A){X();var g=$t();function y(x){let{message:M,loc:O}=x;return g(M.replace(/ \(.*\)/,""),{start:{line:O?O.line:0,column:O?O.column+1:0}})}A.exports=y}}),$i=w({"src/language-js/utils/is-ts-keyword-type.js"(D,A){X();function g(y){let{type:x}=y;return x.startsWith("TS")&&x.endsWith("Keyword")}A.exports=g}}),Qi=w({"src/language-js/utils/is-block-comment.js"(D,A){X();function g(y){return y.type==="Block"||y.type==="CommentBlock"||y.type==="MultiLine"}A.exports=g}}),Zi=w({"src/language-js/utils/is-type-cast-comment.js"(D,A){X();var g=Qi();function y(x){return g(x)&&x.value[0]==="*"&&/@type\b/.test(x.value)}A.exports=y}}),ea=w({"src/utils/get-last.js"(D,A){X();var g=y=>y[y.length-1];A.exports=g}}),lr=w({"src/language-js/parse/postprocess/visit-node.js"(D,A){X();function g(y,x){if(Array.isArray(y)){for(let M=0;M<y.length;M++)y[M]=g(y[M],x);return y}if(y&&typeof y=="object"&&typeof y.type=="string"){let M=Object.keys(y);for(let O=0;O<M.length;O++)y[M[O]]=g(y[M[O]],x);return x(y)||y}return y}A.exports=g}}),ta=w({"src/language-js/parse/postprocess/typescript.js"(D,A){X();var g=$t(),y=lr();function x(R,Q){let{start:W,end:F}=R.loc;throw g(Q,{start:{line:W.line,column:W.column+1},end:{line:F.line,column:F.column+1}})}function M(R,Q,W){let F=R.decorators;if(!Array.isArray(F))return;let $=Q.decorators;(!Array.isArray($)||$.length!==F.length||F.some(N=>{let ie=W.get(N);return!ie||!$.includes(ie)}))&&x(Q,"Leading decorators must be attached to a class declaration")}function O(R,Q){R.kind!==166||R.modifiers&&!R.modifiers.some(W=>W.kind===126)||R.initializer&&Q.value===null&&x(Q,"Abstract property cannot have an initializer")}function j(R,Q){let{esTreeNodeToTSNodeMap:W,tsNodeToESTreeNodeMap:F}=Q.tsParseResult;y(R,$=>{let N=W.get($);if(!N)return;let ie=F.get(N);ie===$&&(M(N,ie,F),O(N,ie))})}A.exports={throwErrorForInvalidNodes:j}}}),sa=w({"src/language-js/parse/postprocess/index.js"(D,A){X();var{locStart:g,locEnd:y}=nr(),x=$i(),M=Zi(),O=ea(),j=lr(),{throwErrorForInvalidNodes:R}=ta();function Q(N,ie){if(ie.parser==="typescript"&&/@|abstract/.test(ie.originalText)&&R(N,ie),ie.parser!=="typescript"&&ie.parser!=="flow"&&ie.parser!=="acorn"&&ie.parser!=="espree"&&ie.parser!=="meriyah"){let ee=new Set;N=j(N,ne=>{ne.leadingComments&&ne.leadingComments.some(M)&&ee.add(g(ne))}),N=j(N,ne=>{if(ne.type==="ParenthesizedExpression"){let{expression:ue}=ne;if(ue.type==="TypeCastExpression")return ue.range=ne.range,ue;let h=g(ne);if(!ee.has(h))return ue.extra=Object.assign(Object.assign({},ue.extra),{},{parenthesized:!0}),ue}})}return N=j(N,ee=>{switch(ee.type){case"ChainExpression":return W(ee.expression);case"LogicalExpression":{if(F(ee))return $(ee);break}case"VariableDeclaration":{let ne=O(ee.declarations);ne&&ne.init&&me(ee,ne);break}case"TSParenthesizedType":return x(ee.typeAnnotation)||ee.typeAnnotation.type==="TSThisType"||(ee.typeAnnotation.range=[g(ee),y(ee)]),ee.typeAnnotation;case"TSTypeParameter":if(typeof ee.name=="string"
`;break;default:t+=String.fromCharCode(r);break}++this.state.curLine,this.state.lineStart=this.state.pos,e=this.state.pos}else++this.state.pos}}recordStrictModeErrors(t,e){let{at:s}=e,r=s.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(t,{at:s}):this.state.strictErrors.set(r,[t,s])}readEscapedChar(t){let e=!t,s=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,s){case 110:return`
`;case 114:return"\r";case 120:{let r=this.readHexChar(2,!1,e);return r===null?null:String.fromCharCode(r)}case 117:{let r=this.readCodePoint(e);return r===null?null:String.fromCodePoint(r)}case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.state.pos)===10&&++this.state.pos;case 10:this.state.lineStart=this.state.pos,++this.state.curLine;case 8232:case 8233:return"";case 56:case 57:if(t)return null;this.recordStrictModeErrors(h.StrictNumericEscape,{at:x(this.state.curPosition(),-1)});default:if(s>=48&&s<=55){let r=x(this.state.curPosition(),-1),i=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],a=parseInt(i,8);a>255&&(i=i.slice(0,-1),a=parseInt(i,8)),this.state.pos+=i.length-1;let n=this.input.charCodeAt(this.state.pos);if(i!=="0"||n===56||n===57){if(t)return null;this.recordStrictModeErrors(h.StrictNumericEscape,{at:r})}return String.fromCharCode(a)}return String.fromCharCode(s)}}readHexChar(t,e,s){let r=this.state.curPosition(),i=this.readInt(16,t,e,!1);return i===null&&(s?this.raise(h.InvalidEscapeSequence,{at:r}):this.state.pos=r.index-1),i}readWord1(t){this.state.containsEsc=!1;let e="",s=this.state.pos,r=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){let i=this.codePointAtPos(this.state.pos);if(tt(i))this.state.pos+=i<=65535?1:2;else if(i===92){this.state.containsEsc=!0,e+=this.input.slice(r,this.state.pos);let a=this.state.curPosition(),n=this.state.pos===s?Re:tt;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(h.MissingUnicodeEscape,{at:this.state.curPosition()}),r=this.state.pos-1;continue}++this.state.pos;let o=this.readCodePoint(!0);o!==null&&(n(o)||this.raise(h.EscapedCharNotAnIdentifier,{at:a}),e+=String.fromCodePoint(o)),r=this.state.pos}else break}return e+this.input.slice(r,this.state.pos)}readWord(t){let e=this.readWord1(t),s=Qt.get(e);s!==void 0?this.finishToken(s,Ve(s)):this.finishToken(128,e)}checkKeywordEscapes(){let{type:t}=this.state;is(t)&&this.state.containsEsc&&this.raise(h.InvalidEscapedReservedWord,{at:this.state.startLoc,reservedWord:Ve(t)})}raise(t,e){let{at:s}=e,r=A(e,rn),i=s instanceof g?s:s.loc.start,a=t({loc:i,details:r});if(!this.options.errorRecovery)throw a;return this.isLookahead||this.state.errors.push(a),a}raiseOverwrite(t,e){let{at:s}=e,r=A(e,an),i=s instanceof g?s:s.loc.start,a=i.index,n=this.state.errors;for(let o=n.length-1;o>=0;o--){let l=n[o];if(l.loc.index===a)return n[o]=t({loc:i,details:r});if(l.loc.index<a)break}return this.raise(t,e)}updateContext(t){}unexpected(t,e){throw this.raise(h.UnexpectedToken,{expected:e?Ve(e):null,at:t??this.state.startLoc})}expectPlugin(t,e){if(this.hasPlugin(t))return!0;throw this.raise(h.MissingPlugin,{at:e??this.state.startLoc,missingPlugin:[t]})}expectOnePlugin(t){if(!t.some(e=>this.hasPlugin(e)))throw this.raise(h.MissingOneOfPlugins,{at:this.state.startLoc,missingPlugin:t})}},Ps=class{constructor(t){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=t}},bs=class{constructor(t,e){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=e}get inFunction(){return(this.currentVarScopeFlags()&Ue)>0}get allowSuper(){return(this.currentThisScopeFlags()&wt)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&vr)>0}get inClass(){return(this.currentThisScopeFlags()&Xe)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&Xe)>0&&(t&Ue)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:e}=this.scopeStack[t];if(e&ls)return!0;if(e&(vt|Xe))return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&Ue)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new Ps(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){this.scopeStack.pop()}treatFunctionsAsVarInScope(t){return!!(t.flags&(Ue|ls)||!this.parser.inModule&&t.flags&mt)}declareName(t,e,s){let r=this.currentScope();if(e&qe||e&Nt)this.checkRedeclarationInSc
`:`\r
`):r=String.fromCharCode(s),++this.state.curLine,this.state.lineStart=this.state.pos,r}jsxReadString(e){let s="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(h.UnterminatedString,{at:this.state.startLoc});let i=this.input.charCodeAt(this.state.pos);if(i===e)break;i===38?(s+=this.input.slice(r,this.state.pos),s+=this.jsxReadEntity(),r=this.state.pos):Ye(i)?(s+=this.input.slice(r,this.state.pos),s+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}return s+=this.input.slice(r,this.state.pos++),this.finishToken(129,s)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let s=10;this.codePointAtPos(this.state.pos)===120&&(s=16,++this.state.pos);let r=this.readInt(s,void 0,!1,"bail");if(r!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(r)}else{let s=0,r=!1;for(;s++<10&&this.state.pos<this.length&&!(r=this.codePointAtPos(this.state.pos)==59);)++this.state.pos;if(r){let i=this.input.slice(e,this.state.pos),a=In[i];if(++this.state.pos,a)return a}}return this.state.pos=e,"&"}jsxReadWord(){let e,s=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(tt(e)||e===45);return this.finishToken(136,this.input.slice(s,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(136)?e.name=this.state.value:is(this.state.type)?e.name=Ve(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){let e=this.state.start,s=this.state.startLoc,r=this.jsxParseIdentifier();if(!this.eat(14))return r;let i=this.startNodeAt(e,s);return i.namespace=r,i.name=this.jsxParseIdentifier(),this.finishNode(i,"JSXNamespacedName")}jsxParseElementName(){let e=this.state.start,s=this.state.startLoc,r=this.jsxParseNamespacedName();if(r.type==="JSXNamespacedName")return r;for(;this.eat(16);){let i=this.startNodeAt(e,s);i.object=r,i.property=this.jsxParseIdentifier(),r=this.finishNode(i,"JSXMemberExpression")}return r}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(ae.brace),this.next(),e=this.jsxParseExpressionContainer(e,ae.j_oTag),e.expression.type==="JSXEmptyExpression"&&this.raise($e.AttributeIsEmpty,{at:e}),e;case 138:case 129:return this.parseExprAtom();default:throw this.raise($e.UnsupportedJsxValue,{at:this.state.startLoc})}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc.index,this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(ae.j_oTag),this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,s){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{let r=this.parseExpression();e.expression=r}return this.setContext(s),this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){let e=this.startNode();return this.match(5)?(this.setContext(ae.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(ae.j_oTag),this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e,s){let r=this.startNodeAt(e,s);return this.match(139)?(this.expect(139),this.finishNode(r,"JSXOpeningFragment")):(r.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(r))}jsxParseOpeningElementAfterName(e){let s=[];for(;!this.match(56)&&!this.match(139);)s.push(this.jsxParseAttribute());return e.attributes=s,e.selfClosing=this.eat(56),this.expect(139),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e,s){let r=this.startNodeAt(e,s);return this.match(139)?(this.expect(139),this.finishNode(r,"JSXClosingFragment")):(r.name=this.jsxParseElementName(),this.expect(139),this.finishNode(r,"JSXClosingElement"))}jsxParseElementAt(e,s){let r=this.startNodeAt(e,s),i=[],a=this.jsxParseOpeningElementAt(e,s),n=nul
`),cooked:i===null?null:i.slice(1,l)},n.tail=o,this.next(),this.finishNode(n,"TemplateElement"),this.resetEndLocation(n,x(this.state.lastTokEndLoc,l)),n}parseTemplate(t){let e=this.startNode();e.expressions=[];let s=this.parseTemplateElement(t);for(e.quasis=[s];!s.tail;)e.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),e.quasis.push(s=this.parseTemplateElement(t));return this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,s,r){s&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=Object.create(null),n=!0,o=this.startNode();for(o.properties=[],this.next();!this.match(t);){if(n)n=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(o);break}let p;e?p=this.parseBindingProperty():(p=this.parsePropertyDefinition(r),this.checkProto(p,s,a,r)),s&&!this.isObjectProperty(p)&&p.type!=="SpreadElement"&&this.raise(h.InvalidRecordProperty,{at:p}),p.shorthand&&this.addExtra(p,"shorthand",!0),o.properties.push(p)}this.next(),this.state.inFSharpPipelineDirectBody=i;let l="ObjectExpression";return e?l="ObjectPattern":s&&(l="RecordExpression"),this.finishNode(o,l)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStart),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 e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(h.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)e.push(this.parseDecorator());let s=this.startNode(),r=!1,i=!1,a,n;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(s.decorators=e,e=[]),s.method=!1,t&&(a=this.state.start,n=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(s);let l=this.state.containsEsc,p=this.parsePropertyName(s,t);if(!o&&!l&&this.maybeAsyncOrAccessorProp(s)){let P=p.name;P==="async"&&!this.hasPrecedingLineBreak()&&(r=!0,this.resetPreviousNodeTrailingComments(p),o=this.eat(55),this.parsePropertyName(s)),(P==="get"||P==="set")&&(i=!0,this.resetPreviousNodeTrailingComments(p),s.kind=P,this.match(55)&&(o=!0,this.raise(h.AccessorIsGenerator,{at:this.state.curPosition(),kind:P}),this.next()),this.parsePropertyName(s))}return this.parseObjPropValue(s,a,n,o,r,!1,i,t),s}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;let s=this.getGetterSetterExpectedParamCount(t),r=this.getObjectOrClassMethodParams(t);r.length!==s&&this.raise(t.kind==="get"?h.BadGetterArity:h.BadSetterArity,{at:t}),t.kind==="set"&&((e=r[r.length-1])==null?void 0:e.type)==="RestElement"&&this.raise(h.BadSetterRestParameter,{at:t})}parseObjectMethod(t,e,s,r,i){if(i)return this.parseMethod(t,e,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(t),t;if(s||e||this.match(10))return r&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,s,r,i){if(t.shorthand=!1,this.eat(14))return t.value=r?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),r)t.value=this.parseMaybeDefault(e,s,He(t.key));else if(this.match(29)){let a=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=a):this.raise(h.InvalidCoverInitializedName,{at:a}),t.value=this.parseMaybeDefault(e,s,He(t.key))}else t.value=He(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,e,s,r,i,a,n,o){let l=this.parseObjectMethod(t,r,i,a,n)||this.parseObjectProperty(t,e,s,a,o);return l||this.unexpected(),l}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);el