sveast 0.5.0 → 0.6.0

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.
@@ -1,10 +1,10 @@
1
- var ht={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},pt="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",qt={5:pt,"5module":pt+" export import",6:pt+" const class extends export import super"},St=/^in(stanceof)?$/,zt=/\p{ID_Start}/u,Wt=/[\p{ID_Continue}\u200c\u200d]/u;function r(e,i){if(e<65)return e===36;if(e<91)return!0;if(e<97)return e===95;if(e<123)return!0;if(e>65535&&i===!1)return!1;return e>=170&&zt.test(String.fromCodePoint(e))}function a(e,i){if(e<48)return e===36;if(e<58)return!0;if(e<65)return!1;if(e<91)return!0;if(e<97)return e===95;if(e<123)return!0;if(e>65535&&i===!1)return!1;return e>=170&&Wt.test(String.fromCodePoint(e))}var g=function(i,s){if(s===void 0)s={};this.label=i,this.keyword=s.keyword,this.beforeExpr=!!s.beforeExpr,this.startsExpr=!!s.startsExpr,this.isLoop=!!s.isLoop,this.isAssign=!!s.isAssign,this.prefix=!!s.prefix,this.postfix=!!s.postfix,this.binop=s.binop||null,this.updateContext=null};function P(e,i){return new g(e,{beforeExpr:!0,binop:i})}var I={beforeExpr:!0},E={startsExpr:!0},ft={};function k(e,i){if(i===void 0)i={};return i.keyword=e,ft[e]=new g(e,i)}var o={num:new g("num",E),regexp:new g("regexp",E),string:new g("string",E),name:new g("name",E),privateId:new g("privateId",E),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",I),semi:new g(";",I),colon:new g(":",I),dot:new g("."),question:new g("?",I),questionDot:new g("?."),arrow:new g("=>",I),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",I),backQuote:new g("`",E),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:P("||",1),logicalAND:P("&&",2),bitwiseOR:P("|",3),bitwiseXOR:P("^",4),bitwiseAND:P("&",5),equality:P("==/!=/===/!==",6),relational:P("</>/<=/>=",7),bitShift:P("<</>>/>>>",8),plusMin:new g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:P("%",10),star:P("*",10),slash:P("/",10),starstar:new g("**",{beforeExpr:!0}),coalesce:P("??",1),_break:k("break"),_case:k("case",I),_catch:k("catch"),_continue:k("continue"),_debugger:k("debugger"),_default:k("default",I),_do:k("do",{isLoop:!0,beforeExpr:!0}),_else:k("else",I),_finally:k("finally"),_for:k("for",{isLoop:!0}),_function:k("function",E),_if:k("if"),_return:k("return",I),_switch:k("switch"),_throw:k("throw",I),_try:k("try"),_var:k("var"),_const:k("const"),_while:k("while",{isLoop:!0}),_with:k("with"),_new:k("new",{beforeExpr:!0,startsExpr:!0}),_this:k("this",E),_super:k("super",E),_class:k("class",E),_extends:k("extends",I),_export:k("export"),_import:k("import",E),_null:k("null",E),_true:k("true",E),_false:k("false",E),_in:k("in",{beforeExpr:!0,binop:7}),_instanceof:k("instanceof",{beforeExpr:!0,binop:7}),_typeof:k("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:k("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:k("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},T=/\r\n?|\n|\u2028|\u2029/,jt=new RegExp(T.source,"g");function z(e){return e===10||e===13||e===8232||e===8233}function Ct(e,i,s){if(s===void 0)s=e.length;for(var n=i;n<s;n++){var h=e.charCodeAt(n);if(z(h))return n<s-1&&h===13&&e.charCodeAt(n+1)===10?n+2:n+1}return-1}var At=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,C=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Nt=Object.prototype,{hasOwnProperty:Gt,toString:Ht}=Nt,Y=Object.hasOwn||function(e,i){return Gt.call(e,i)},kt=Array.isArray||function(e){return Ht.call(e)==="[object Array]"},gt=Object.create(null);function J(e){return gt[e]||(gt[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function it(e){if(e<=65535)return String.fromCharCode(e);return e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320)}var Yt=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,H=function(i,s){this.line=i,this.column=s};H.prototype.offset=function(i){return new H(this.line,this.column+i)};var st=function(i,s,n){if(this.start=s,this.end=n,i.sourceFile!==null)this.source=i.sourceFile};function Et(e,i){for(var s=1,n=0;;){var h=Ct(e,n,i);if(h<0)return new H(s,i-n);++s,n=h}}var lt={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},wt=!1;function Qt(e){var i={};for(var s in lt)i[s]=e&&Y(e,s)?e[s]:lt[s];if(i.ecmaVersion==="latest")i.ecmaVersion=1e8;else if(i.ecmaVersion==null){if(!wt&&typeof console==="object"&&console.warn)wt=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
2
- Defaulting to 2020, but this will stop working in the future.`);i.ecmaVersion=11}else if(i.ecmaVersion>=2015)i.ecmaVersion-=2009;if(i.allowReserved==null)i.allowReserved=i.ecmaVersion<5;if(!e||e.allowHashBang==null)i.allowHashBang=i.ecmaVersion>=14;if(kt(i.onToken)){var n=i.onToken;i.onToken=function(h){return n.push(h)}}if(kt(i.onComment))i.onComment=Kt(i,i.onComment);if(i.sourceType==="commonjs"&&i.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return i}function Kt(e,i){return function(s,n,h,p,l,c){var u={type:s?"Block":"Line",value:n,start:h,end:p};if(e.locations)u.loc=new st(this,l,c);if(e.ranges)u.range=[h,p];i.push(u)}}var O=1,B=2,dt=4,Tt=8,mt=16,Pt=32,rt=64,It=128,M=256,Q=512,_t=1024,at=O|B|M;function vt(e,i){return B|(e?dt:0)|(i?Tt:0)}var Z=0,xt=1,V=2,Lt=3,Rt=4,Vt=5,t=function(i,s,n){this.options=i=Qt(i),this.sourceFile=i.sourceFile,this.keywords=J(qt[i.ecmaVersion>=6?6:i.sourceType==="module"?"5module":5]);var h="";if(i.allowReserved!==!0){if(h=ht[i.ecmaVersion>=6?6:i.ecmaVersion===5?5:3],i.sourceType==="module")h+=" await"}this.reservedWords=J(h);var p=(h?h+" ":"")+ht.strict;if(this.reservedWordsStrict=J(p),this.reservedWordsStrictBind=J(p+" "+ht.strictBind),this.input=String(s),this.containsEsc=!1,this.pos=n||0,this.curLine=1,i.startLocation)this.lineStart=this.pos-i.startLocation.column,this.curLine=i.startLocation.line;else if(n){if(this.lineStart=this.input.lastIndexOf(`
3
- `,n-1)+1,this.options.locations)this.curLine=this.input.slice(0,this.lineStart).split(T).length}else this.lineStart=0;if(this.type=o.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=i.sourceType==="module",this.strict=this.inModule||i.strict===!0||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&i.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2);this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?B:O),this.regexpState=null,this.privateNameStack=[]},_={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};t.prototype.parse=function(){var i=this,s=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return i.parseTopLevel(s)})};_.inFunction.get=function(){return(this.currentVarScope().flags&B)>0};_.inGenerator.get=function(){return(this.currentVarScope().flags&Tt)>0};_.inAsync.get=function(){return(this.currentVarScope().flags&dt)>0};_.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var i=this.scopeStack[e],s=i.flags;if(s&(M|Q))return!1;if(s&B)return(s&dt)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};_.allowReturn.get=function(){if(this.inFunction)return!0;if(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&O)return!0;return!1};_.allowSuper.get=function(){var e=this.currentThisScope(),i=e.flags;return(i&rt)>0||this.options.allowSuperOutsideMethod};_.allowDirectSuper.get=function(){return(this.currentThisScope().flags&It)>0};_.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};_.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var i=this.scopeStack[e],s=i.flags;if(s&(M|Q)||s&B&&!(s&mt))return!0}return!1};_.allowUsing.get=function(){var e=this.currentScope(),i=e.flags;if(i&_t)return!1;if(!this.inModule&&i&O)return!1;return!0};_.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&M)>0};t.extend=function(){var i=[],s=arguments.length;while(s--)i[s]=arguments[s];var n=this;for(var h=0;h<i.length;h++)n=i[h](n);return n};t.parse=function(i,s){return new this(s,i).parse()};t.parseExpressionAt=function(i,s,n){var h=new this(n,i,s);return h.nextToken(),h.parseExpression()};t.tokenizer=function(i,s){return new this(s,i)};Object.defineProperties(t.prototype,_);var N=t.prototype,Xt=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;N.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){C.lastIndex=e,e+=C.exec(this.input)[0].length;var i=Xt.exec(this.input.slice(e));if(!i)return!1;if((i[1]||i[2])==="use strict"){C.lastIndex=e+i[0].length;var s=C.exec(this.input),n=s.index+s[0].length,h=this.input.charAt(n);return h===";"||h==="}"||T.test(s[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(h)||h==="!"&&this.input.charAt(n+1)==="=")}if(e+=i[0].length,C.lastIndex=e,e+=C.exec(this.input)[0].length,this.input[e]===";")e++}};N.eat=function(e){if(this.type===e)return this.next(),!0;else return!1};N.isContextual=function(e){return this.type===o.name&&this.value===e&&!this.containsEsc};N.eatContextual=function(e){if(!this.isContextual(e))return!1;return this.next(),!0};N.catchStackOverflow=function(e){try{return e()}catch(i){if(i instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(i.message)||/\btoo much recursion\b/i.test(i.message)))this.raise(this.start,"Not enough stack space to parse input");else throw i}};N.expectContextual=function(e){if(!this.eatContextual(e))this.unexpected()};N.canInsertSemicolon=function(){return this.type===o.eof||this.type===o.braceR||T.test(this.input.slice(this.lastTokEnd,this.start))};N.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};N.semicolon=function(){if(!this.eat(o.semi)&&!this.insertSemicolon())this.unexpected()};N.afterTrailingComma=function(e,i){if(this.type===e){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!i)this.next();return!0}};N.expect=function(e){this.eat(e)||this.unexpected()};N.unexpected=function(e){this.raise(e!=null?e:this.start,"Unexpected token")};var nt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};N.checkPatternErrors=function(e,i){if(!e)return;if(e.trailingComma>-1)this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var s=i?e.parenthesizedAssign:e.parenthesizedBind;if(s>-1)this.raiseRecoverable(s,i?"Assigning to rvalue":"Parenthesized pattern")};N.checkExpressionErrors=function(e,i){if(!e)return!1;var{shorthandAssign:s,doubleProto:n}=e;if(!i)return s>=0||n>=0;if(s>=0)this.raise(s,"Shorthand property assignments are valid only in destructuring patterns");if(n>=0)this.raiseRecoverable(n,"Redefinition of __proto__ property")};N.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos))this.raise(this.yieldPos,"Yield expression cannot be a default value");if(this.awaitPos)this.raise(this.awaitPos,"Await expression cannot be a default value")};N.isSimpleAssignTarget=function(e){if(e.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(e.expression);return e.type==="Identifier"||e.type==="MemberExpression"};var f=t.prototype;f.parseTopLevel=function(e){var i=Object.create(null);if(!e.body)e.body=[];while(this.type!==o.eof){var s=this.parseStatement(null,!0,i);e.body.push(s)}if(this.inModule)for(var n=0,h=Object.keys(this.undefinedExports);n<h.length;n+=1){var p=h[n];this.raiseRecoverable(this.undefinedExports[p].start,"Export '"+p+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var yt={kind:"loop"},Jt={kind:"switch"};f.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;C.lastIndex=this.pos;var i=C.exec(this.input),s=this.pos+i[0].length,n=this.fullCharCodeAt(s);if(n===91||n===92)return!0;if(e)return!1;if(n===123)return!0;if(r(n)){var h=s;do s+=n<=65535?1:2;while(a(n=this.fullCharCodeAt(s)));if(n===92)return!0;var p=this.input.slice(h,s);if(!St.test(p))return!0}return!1};f.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;C.lastIndex=this.pos;var e=C.exec(this.input),i=this.pos+e[0].length,s;return!T.test(this.input.slice(this.pos,i))&&this.input.slice(i,i+8)==="function"&&(i+8===this.input.length||!(a(s=this.fullCharCodeAt(i+8))||s===92))};f.isUsingKeyword=function(e,i){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;C.lastIndex=this.pos;var s=C.exec(this.input),n=this.pos+s[0].length;if(T.test(this.input.slice(this.pos,n)))return!1;if(e){var h=n+5,p;if(this.input.slice(n,h)!=="using"||h===this.input.length||a(p=this.fullCharCodeAt(h))||p===92)return!1;C.lastIndex=h;var l=C.exec(this.input);if(n=h+l[0].length,l&&T.test(this.input.slice(h,n)))return!1}var c=this.fullCharCodeAt(n);if(!r(c)&&c!==92)return!1;var u=n;do n+=c<=65535?1:2;while(a(c=this.fullCharCodeAt(n)));if(c===92)return!0;var d=this.input.slice(u,n);if(St.test(d))return!1;if(i&&!e&&d==="of"){C.lastIndex=n;var x=C.exec(this.input);if(n=n+x[0].length,this.input.charCodeAt(n)!==61||(c=this.input.charCodeAt(n+1))===61||c===62)return!1}return!0};f.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};f.isUsing=function(e){return this.isUsingKeyword(!1,e)};f.parseStatement=function(e,i,s){var n=this.type,h=this.startNode(),p;if(this.isLet(e))n=o._var,p="let";switch(n){case o._break:case o._continue:return this.parseBreakContinueStatement(h,n.keyword);case o._debugger:return this.parseDebuggerStatement(h);case o._do:return this.parseDoStatement(h);case o._for:return this.parseForStatement(h);case o._function:if(e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(h,!1,!e);case o._class:if(e)this.unexpected();return this.parseClass(h,!0);case o._if:return this.parseIfStatement(h);case o._return:return this.parseReturnStatement(h);case o._switch:return this.parseSwitchStatement(h);case o._throw:return this.parseThrowStatement(h);case o._try:return this.parseTryStatement(h);case o._const:case o._var:if(p=p||this.value,e&&p!=="var")this.unexpected();return this.parseVarStatement(h,p);case o._while:return this.parseWhileStatement(h);case o._with:return this.parseWithStatement(h);case o.braceL:return this.parseBlock(!0,h);case o.semi:return this.parseEmptyStatement(h);case o._export:case o._import:if(this.options.ecmaVersion>10&&n===o._import){C.lastIndex=this.pos;var l=C.exec(this.input),c=this.pos+l[0].length,u=this.input.charCodeAt(c);if(u===40||u===46)return this.parseExpressionStatement(h,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!i)this.raise(this.start,"'import' and 'export' may only appear at the top level");if(!this.inModule)this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}return n===o._import?this.parseImport(h):this.parseExport(h,s);default:if(this.isAsyncFunction()){if(e)this.unexpected();return this.next(),this.parseFunctionStatement(h,!0,!e)}var d=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(d){if(!this.allowUsing)this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement");if(e)this.raise(this.start,"Using declaration is not allowed in single-statement positions");if(d==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.next(),this.parseVar(h,!1,d),this.semicolon(),this.finishNode(h,"VariableDeclaration")}var x=this.value,w=this.parseExpression();if(n===o.name&&w.type==="Identifier"&&this.eat(o.colon))return this.parseLabeledStatement(h,x,w,e);else return this.parseExpressionStatement(h,w)}};f.parseBreakContinueStatement=function(e,i){var s=i==="break";if(this.next(),this.eat(o.semi)||this.insertSemicolon())e.label=null;else if(this.type!==o.name)this.unexpected();else e.label=this.parseIdent(),this.semicolon();var n=0;for(;n<this.labels.length;++n){var h=this.labels[n];if(e.label==null||h.name===e.label.name){if(h.kind!=null&&(s||h.kind==="loop"))break;if(e.label&&s)break}}if(n===this.labels.length)this.raise(e.start,"Unsyntactic "+i);return this.finishNode(e,s?"BreakStatement":"ContinueStatement")};f.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};f.parseDoStatement=function(e){if(this.next(),this.labels.push(yt),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(o._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(o.semi);else this.semicolon();return this.finishNode(e,"DoWhileStatement")};f.parseForStatement=function(e){this.next();var i=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(yt),this.enterScope(0),this.expect(o.parenL),this.type===o.semi){if(i>-1)this.unexpected(i);return this.parseFor(e,null)}var s=this.isLet();if(this.type===o._var||this.type===o._const||s){var n=this.startNode(),h=s?"let":this.value;return this.next(),this.parseVar(n,!0,h),this.finishNode(n,"VariableDeclaration"),this.parseForAfterInit(e,n,i)}var p=this.isContextual("let"),l=!1,c=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(c){var u=this.startNode();if(this.next(),c==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.parseVar(u,!0,c),this.finishNode(u,"VariableDeclaration"),this.parseForAfterInit(e,u,i)}var d=this.containsEsc,x=new nt,w=this.start,A=i>-1?this.parseExprSubscripts(x,"await"):this.parseExpression(!0,x);if(this.type===o._in||(l=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(i>-1){if(this.type===o._in)this.unexpected(i);e.await=!0}else if(l&&this.options.ecmaVersion>=8){if(A.start===w&&!d&&A.type==="Identifier"&&A.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)e.await=!1}if(p&&l)this.raise(A.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(A,!1,x),this.checkLValPattern(A),this.parseForIn(e,A)}else this.checkExpressionErrors(x,!0);if(i>-1)this.unexpected(i);return this.parseFor(e,A)};f.parseForAfterInit=function(e,i,s){if((this.type===o._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&i.declarations.length===1){if(this.type===o._in){if((i.kind==="using"||i.kind==="await using")&&!i.declarations[0].init)this.raise(this.start,"Using declaration is not allowed in for-in loops");if(this.options.ecmaVersion>=9&&s>-1)this.unexpected(s)}else if(this.options.ecmaVersion>=9)e.await=s>-1;return this.parseForIn(e,i)}if(s>-1)this.unexpected(s);return this.parseFor(e,i)};f.parseFunctionStatement=function(e,i,s){return this.next(),this.parseFunction(e,G|(s?0:ct),!1,i)};f.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(o._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};f.parseReturnStatement=function(e){if(!this.allowReturn)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(o.semi)||this.insertSemicolon())e.argument=null;else e.argument=this.parseExpression(),this.semicolon();return this.finishNode(e,"ReturnStatement")};f.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(o.braceL),this.labels.push(Jt),this.enterScope(_t);var i;for(var s=!1;this.type!==o.braceR;)if(this.type===o._case||this.type===o._default){var n=this.type===o._case;if(i)this.finishNode(i,"SwitchCase");if(e.cases.push(i=this.startNode()),i.consequent=[],this.next(),n)i.test=this.parseExpression();else{if(s)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");s=!0,i.test=null}this.expect(o.colon)}else{if(!i)this.unexpected();i.consequent.push(this.parseStatement(null))}if(this.exitScope(),i)this.finishNode(i,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};f.parseThrowStatement=function(e){if(this.next(),T.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Zt=[];f.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),i=e.type==="Identifier";return this.enterScope(i?Pt:0),this.checkLValPattern(e,i?Rt:V),this.expect(o.parenR),e};f.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===o._catch){var i=this.startNode();if(this.next(),this.eat(o.parenL))i.param=this.parseCatchClauseParam();else{if(this.options.ecmaVersion<10)this.unexpected();i.param=null,this.enterScope(0)}i.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(i,"CatchClause")}if(e.finalizer=this.eat(o._finally)?this.parseBlock():null,!e.handler&&!e.finalizer)this.raise(e.start,"Missing catch or finally clause");return this.finishNode(e,"TryStatement")};f.parseVarStatement=function(e,i,s){return this.next(),this.parseVar(e,!1,i,s),this.semicolon(),this.finishNode(e,"VariableDeclaration")};f.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(yt),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};f.parseWithStatement=function(e){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};f.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};f.parseLabeledStatement=function(e,i,s,n){for(var h=0,p=this.labels;h<p.length;h+=1){var l=p[h];if(l.name===i)this.raise(s.start,"Label '"+i+"' is already declared")}var c=this.type.isLoop?"loop":this.type===o._switch?"switch":null;for(var u=this.labels.length-1;u>=0;u--){var d=this.labels[u];if(d.statementStart===e.start)d.statementStart=this.start,d.kind=c;else break}return this.labels.push({name:i,kind:c,statementStart:this.start}),e.body=this.parseStatement(n?n.indexOf("label")===-1?n+"label":n:"label"),this.labels.pop(),e.label=s,this.finishNode(e,"LabeledStatement")};f.parseExpressionStatement=function(e,i){return e.expression=i,this.semicolon(),this.finishNode(e,"ExpressionStatement")};f.parseBlock=function(e,i,s){if(e===void 0)e=!0;if(i===void 0)i=this.startNode();if(i.body=[],this.expect(o.braceL),e)this.enterScope(0);while(this.type!==o.braceR){var n=this.parseStatement(null);i.body.push(n)}if(s)this.strict=!1;if(this.next(),e)this.exitScope();return this.finishNode(i,"BlockStatement")};f.parseFor=function(e,i){return e.init=i,this.expect(o.semi),e.test=this.type===o.semi?null:this.parseExpression(),this.expect(o.semi),e.update=this.type===o.parenR?null:this.parseExpression(),this.expect(o.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};f.parseForIn=function(e,i){var s=this.type===o._in;if(this.next(),i.type==="VariableDeclaration"&&i.declarations[0].init!=null&&(!s||this.options.ecmaVersion<8||this.strict||i.kind!=="var"||i.declarations[0].id.type!=="Identifier"))this.raise(i.start,(s?"for-in":"for-of")+" loop variable declaration may not have an initializer");return e.left=i,e.right=s?this.parseExpression():this.parseMaybeAssign(),this.expect(o.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")};f.parseVar=function(e,i,s,n){e.declarations=[],e.kind=s;for(;;){var h=this.startNode();if(this.parseVarId(h,s),this.eat(o.eq))h.init=this.parseMaybeAssign(i);else if(!n&&s==="const"&&!(this.type===o._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!n&&(s==="using"||s==="await using")&&this.options.ecmaVersion>=17&&this.type!==o._in&&!this.isContextual("of"))this.raise(this.lastTokEnd,"Missing initializer in "+s+" declaration");else if(!n&&h.id.type!=="Identifier"&&!(i&&(this.type===o._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else h.init=null;if(e.declarations.push(this.finishNode(h,"VariableDeclarator")),!this.eat(o.comma))break}return e};f.parseVarId=function(e,i){e.id=i==="using"||i==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,i==="var"?xt:V,!1)};var G=1,ct=2,Ft=4;f.parseFunction=function(e,i,s,n,h){if(this.initFunction(e),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n){if(this.type===o.star&&i&ct)this.unexpected();e.generator=this.eat(o.star)}if(this.options.ecmaVersion>=8)e.async=!!n;if(i&G){if(e.id=i&Ft&&this.type!==o.name?null:this.parseIdent(),e.id&&!(i&ct))this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?xt:V:Lt)}var p=this.yieldPos,l=this.awaitPos,c=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(vt(e.async,e.generator)),!(i&G))e.id=this.type===o.name?this.parseIdent():null;return this.parseFunctionParams(e),this.parseFunctionBody(e,s,!1,h),this.yieldPos=p,this.awaitPos=l,this.awaitIdentPos=c,this.finishNode(e,i&G?"FunctionDeclaration":"FunctionExpression")};f.parseFunctionParams=function(e){this.expect(o.parenL),e.params=this.parseBindingList(o.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};f.parseClass=function(e,i){this.next();var s=this.strict;this.strict=!0,this.parseClassId(e,i),this.parseClassSuper(e);var n=this.enterClassBody(),h=this.startNode(),p=!1;h.body=[],this.expect(o.braceL);while(this.type!==o.braceR){var l=this.parseClassElement(e.superClass!==null);if(l){if(h.body.push(l),l.type==="MethodDefinition"&&l.kind==="constructor"){if(p)this.raiseRecoverable(l.start,"Duplicate constructor in the same class");p=!0}else if(l.key&&l.key.type==="PrivateIdentifier"&&$t(n,l))this.raiseRecoverable(l.key.start,"Identifier '#"+l.key.name+"' has already been declared")}}return this.strict=s,this.next(),e.body=this.finishNode(h,"ClassBody"),this.exitClassBody(),this.finishNode(e,i?"ClassDeclaration":"ClassExpression")};f.parseClassElement=function(e){if(this.eat(o.semi))return null;var i=this.options.ecmaVersion,s=this.startNode(),n="",h=!1,p=!1,l="method",c=!1;if(this.eatContextual("static")){if(i>=13&&this.eat(o.braceL))return this.parseClassStaticBlock(s),s;if(this.isClassElementNameStart()||this.type===o.star)c=!0;else n="static"}if(s.static=c,!n&&i>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===o.star)&&!this.canInsertSemicolon())p=!0;else n="async";if(!n&&(i>=9||!p)&&this.eat(o.star))h=!0;if(!n&&!p&&!h){var u=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())l=u;else n=u}if(n)s.computed=!1,s.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),s.key.name=n,this.finishNode(s.key,"Identifier");else this.parseClassElementName(s);if(i<13||this.type===o.parenL||l!=="method"||h||p){var d=!s.static&&tt(s,"constructor"),x=d&&e;if(d&&l!=="method")this.raise(s.key.start,"Constructor can't have get/set modifier");s.kind=d?"constructor":l,this.parseClassMethod(s,h,p,x)}else this.parseClassField(s);return s};f.isClassElementNameStart=function(){return this.type===o.name||this.type===o.privateId||this.type===o.num||this.type===o.string||this.type===o.bracketL||this.type.keyword};f.parseClassElementName=function(e){if(this.type===o.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");e.computed=!1,e.key=this.parsePrivateIdent()}else this.parsePropertyName(e)};f.parseClassMethod=function(e,i,s,n){var h=e.key;if(e.kind==="constructor"){if(i)this.raise(h.start,"Constructor can't be a generator");if(s)this.raise(h.start,"Constructor can't be an async method")}else if(e.static&&tt(e,"prototype"))this.raise(h.start,"Classes may not have a static property named prototype");var p=e.value=this.parseMethod(i,s,n);if(e.kind==="get"&&p.params.length!==0)this.raiseRecoverable(p.start,"getter should have no params");if(e.kind==="set"&&p.params.length!==1)this.raiseRecoverable(p.start,"setter should have exactly one param");if(e.kind==="set"&&p.params[0].type==="RestElement")this.raiseRecoverable(p.params[0].start,"Setter cannot use rest params");return this.finishNode(e,"MethodDefinition")};f.parseClassField=function(e){if(tt(e,"constructor"))this.raise(e.key.start,"Classes can't have a field named 'constructor'");else if(e.static&&tt(e,"prototype"))this.raise(e.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(o.eq))this.enterScope(Q|rt),e.value=this.parseMaybeAssign(),this.exitScope();else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")};f.parseClassStaticBlock=function(e){e.body=[];var i=this.labels;this.labels=[],this.enterScope(M|rt);while(this.type!==o.braceR){var s=this.parseStatement(null);e.body.push(s)}return this.next(),this.exitScope(),this.labels=i,this.finishNode(e,"StaticBlock")};f.parseClassId=function(e,i){if(this.type===o.name){if(e.id=this.parseIdent(),i)this.checkLValSimple(e.id,V,!1)}else{if(i===!0)this.unexpected();e.id=null}};f.parseClassSuper=function(e){e.superClass=this.eat(o._extends)?this.parseExprSubscripts(null,!1):null};f.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};f.exitClassBody=function(){var e=this.privateNameStack.pop(),{declared:i,used:s}=e;if(!this.options.checkPrivateFields)return;var n=this.privateNameStack.length,h=n===0?null:this.privateNameStack[n-1];for(var p=0;p<s.length;++p){var l=s[p];if(!Y(i,l.name))if(h)h.used.push(l);else this.raiseRecoverable(l.start,"Private field '#"+l.name+"' must be declared in an enclosing class")}};function $t(e,i){var s=i.key.name,n=e[s],h="true";if(i.type==="MethodDefinition"&&(i.kind==="get"||i.kind==="set"))h=(i.static?"s":"i")+i.kind;if(n==="iget"&&h==="iset"||n==="iset"&&h==="iget"||n==="sget"&&h==="sset"||n==="sset"&&h==="sget")return e[s]="true",!1;else if(!n)return e[s]=h,!1;else return!0}function tt(e,i){var{computed:s,key:n}=e;return!s&&(n.type==="Identifier"&&n.name===i||n.type==="Literal"&&n.value===i)}f.parseExportAllDeclaration=function(e,i){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))e.exported=this.parseModuleExportName(),this.checkExport(i,e.exported,this.lastTokStart);else e.exported=null;if(this.expectContextual("from"),this.type!==o.string)this.unexpected();if(e.source=this.parseExprAtom(),this.options.ecmaVersion>=16)e.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};f.parseExport=function(e,i){if(this.next(),this.eat(o.star))return this.parseExportAllDeclaration(e,i);if(this.eat(o._default))return this.checkExport(i,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration")this.checkVariableExport(i,e.declaration.declarations);else this.checkExport(i,e.declaration.id,e.declaration.id.start);if(e.specifiers=[],e.source=null,this.options.ecmaVersion>=16)e.attributes=[]}else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(i),this.eatContextual("from")){if(this.type!==o.string)this.unexpected();if(e.source=this.parseExprAtom(),this.options.ecmaVersion>=16)e.attributes=this.parseWithClause()}else{for(var s=0,n=e.specifiers;s<n.length;s+=1){var h=n[s];if(this.checkUnreserved(h.local),this.checkLocalExport(h.local),h.local.type==="Literal")this.raise(h.local.start,"A string literal cannot be used as an exported binding without `from`.")}if(e.source=null,this.options.ecmaVersion>=16)e.attributes=[]}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};f.parseExportDeclaration=function(e){return this.parseStatement(null)};f.parseExportDefaultDeclaration=function(){var e;if(this.type===o._function||(e=this.isAsyncFunction())){var i=this.startNode();if(this.next(),e)this.next();return this.parseFunction(i,G|Ft,!1,e)}else if(this.type===o._class){var s=this.startNode();return this.parseClass(s,"nullableID")}else{var n=this.parseMaybeAssign();return this.semicolon(),n}};f.checkExport=function(e,i,s){if(!e)return;if(typeof i!=="string")i=i.type==="Identifier"?i.name:i.value;if(Y(e,i))this.raiseRecoverable(s,"Duplicate export '"+i+"'");e[i]=!0};f.checkPatternExport=function(e,i){var s=i.type;if(s==="Identifier")this.checkExport(e,i,i.start);else if(s==="ObjectPattern")for(var n=0,h=i.properties;n<h.length;n+=1){var p=h[n];this.checkPatternExport(e,p)}else if(s==="ArrayPattern")for(var l=0,c=i.elements;l<c.length;l+=1){var u=c[l];if(u)this.checkPatternExport(e,u)}else if(s==="Property")this.checkPatternExport(e,i.value);else if(s==="AssignmentPattern")this.checkPatternExport(e,i.left);else if(s==="RestElement")this.checkPatternExport(e,i.argument)};f.checkVariableExport=function(e,i){if(!e)return;for(var s=0,n=i;s<n.length;s+=1){var h=n[s];this.checkPatternExport(e,h.id)}};f.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};f.parseExportSpecifier=function(e){var i=this.startNode();return i.local=this.parseModuleExportName(),i.exported=this.eatContextual("as")?this.parseModuleExportName():i.local,this.checkExport(e,i.exported,i.exported.start),this.finishNode(i,"ExportSpecifier")};f.parseExportSpecifiers=function(e){var i=[],s=!0;this.expect(o.braceL);while(!this.eat(o.braceR)){if(!s){if(this.expect(o.comma),this.afterTrailingComma(o.braceR))break}else s=!1;i.push(this.parseExportSpecifier(e))}return i};f.parseImport=function(e){if(this.next(),this.type===o.string)e.specifiers=Zt,e.source=this.parseExprAtom();else e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===o.string?this.parseExprAtom():this.unexpected();if(this.options.ecmaVersion>=16)e.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(e,"ImportDeclaration")};f.parseImportSpecifier=function(){var e=this.startNode();if(e.imported=this.parseModuleExportName(),this.eatContextual("as"))e.local=this.parseIdent();else this.checkUnreserved(e.imported),e.local=e.imported;return this.checkLValSimple(e.local,V),this.finishNode(e,"ImportSpecifier")};f.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,V),this.finishNode(e,"ImportDefaultSpecifier")};f.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,V),this.finishNode(e,"ImportNamespaceSpecifier")};f.parseImportSpecifiers=function(){var e=[],i=!0;if(this.type===o.name){if(e.push(this.parseImportDefaultSpecifier()),!this.eat(o.comma))return e}if(this.type===o.star)return e.push(this.parseImportNamespaceSpecifier()),e;this.expect(o.braceL);while(!this.eat(o.braceR)){if(!i){if(this.expect(o.comma),this.afterTrailingComma(o.braceR))break}else i=!1;e.push(this.parseImportSpecifier())}return e};f.parseWithClause=function(){var e=[];if(!this.eat(o._with))return e;this.expect(o.braceL);var i={},s=!0;while(!this.eat(o.braceR)){if(!s){if(this.expect(o.comma),this.afterTrailingComma(o.braceR))break}else s=!1;var n=this.parseImportAttribute(),h=n.key.type==="Identifier"?n.key.name:n.key.value;if(Y(i,h))this.raiseRecoverable(n.key.start,"Duplicate attribute key '"+h+"'");i[h]=!0,e.push(n)}return e};f.parseImportAttribute=function(){var e=this.startNode();if(e.key=this.type===o.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(o.colon),this.type!==o.string)this.unexpected();return e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};f.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===o.string){var e=this.parseLiteral(this.value);if(Yt.test(e.value))this.raise(e.start,"An export name cannot include a lone surrogate.");return e}return this.parseIdent(!0)};f.adaptDirectivePrologue=function(e){for(var i=0;i<e.length&&this.isDirectiveCandidate(e[i]);++i)e[i].directive=e[i].expression.raw.slice(1,-1)};f.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value==="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var L=t.prototype;L.toAssignable=function(e,i,s){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":if(this.inAsync&&e.name==="await")this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(e.type="ObjectPattern",s)this.checkPatternErrors(s,!0);for(var n=0,h=e.properties;n<h.length;n+=1){var p=h[n];if(this.toAssignable(p,i),p.type==="RestElement"&&(p.argument.type==="ArrayPattern"||p.argument.type==="ObjectPattern"))this.raise(p.argument.start,"Unexpected token")}break;case"Property":if(e.kind!=="init")this.raise(e.key.start,"Object pattern can't contain getter or setter");this.toAssignable(e.value,i);break;case"ArrayExpression":if(e.type="ArrayPattern",s)this.checkPatternErrors(s,!0);this.toAssignableList(e.elements,i);break;case"SpreadElement":if(e.type="RestElement",this.toAssignable(e.argument,i),e.argument.type==="AssignmentPattern")this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(e.operator!=="=")this.raise(e.left.end,"Only '=' operator can be used for specifying default value.");e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,i);break;case"ParenthesizedExpression":this.toAssignable(e.expression,i,s);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!i)break;default:this.raise(e.start,"Assigning to rvalue")}else if(s)this.checkPatternErrors(s,!0);return e};L.toAssignableList=function(e,i){var s=e.length;for(var n=0;n<s;n++){var h=e[n];if(h)this.toAssignable(h,i)}if(s){var p=e[s-1];if(this.options.ecmaVersion===6&&i&&p&&p.type==="RestElement"&&p.argument.type!=="Identifier")this.unexpected(p.argument.start)}return e};L.parseSpread=function(e){var i=this.startNode();return this.next(),i.argument=this.parseMaybeAssign(!1,e),this.finishNode(i,"SpreadElement")};L.parseRestBinding=function(){var e=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==o.name)this.unexpected();return e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};L.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case o.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(o.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case o.braceL:return this.parseObj(!0)}return this.parseIdent()};L.parseBindingList=function(e,i,s,n){var h=[],p=!0;while(!this.eat(e)){if(p)p=!1;else this.expect(o.comma);if(i&&this.type===o.comma)h.push(null);else if(s&&this.afterTrailingComma(e))break;else if(this.type===o.ellipsis){var l=this.parseRestBinding();if(this.parseBindingListItem(l),h.push(l),this.type===o.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");this.expect(e);break}else h.push(this.parseAssignableListItem(n))}return h};L.parseAssignableListItem=function(e){var i=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(i),i};L.parseBindingListItem=function(e){return e};L.parseMaybeDefault=function(e,i,s){if(s=s||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(o.eq))return s;var n=this.startNodeAt(e,i);return n.left=s,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")};L.checkLValSimple=function(e,i,s){if(i===void 0)i=Z;var n=i!==Z;switch(e.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(e.name))this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode");if(n){if(i===V&&e.name==="let")this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name");if(s){if(Y(s,e.name))this.raiseRecoverable(e.start,"Argument name clash");s[e.name]=!0}if(i!==Vt)this.declareName(e.name,i,e.start)}break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(n)this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":if(n)this.raiseRecoverable(e.start,"Binding parenthesized expression");return this.checkLValSimple(e.expression,i,s);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}};L.checkLValPattern=function(e,i,s){if(i===void 0)i=Z;switch(e.type){case"ObjectPattern":for(var n=0,h=e.properties;n<h.length;n+=1){var p=h[n];this.checkLValInnerPattern(p,i,s)}break;case"ArrayPattern":for(var l=0,c=e.elements;l<c.length;l+=1){var u=c[l];if(u)this.checkLValInnerPattern(u,i,s)}break;default:this.checkLValSimple(e,i,s)}};L.checkLValInnerPattern=function(e,i,s){if(i===void 0)i=Z;switch(e.type){case"Property":this.checkLValInnerPattern(e.value,i,s);break;case"AssignmentPattern":this.checkLValPattern(e.left,i,s);break;case"RestElement":this.checkLValPattern(e.argument,i,s);break;default:this.checkLValPattern(e,i,s)}};var R=function(i,s,n,h,p){this.token=i,this.isExpr=!!s,this.preserveSpace=!!n,this.override=h,this.generator=!!p},S={b_stat:new R("{",!1),b_expr:new R("{",!0),b_tmpl:new R("${",!1),p_stat:new R("(",!1),p_expr:new R("(",!0),q_tmpl:new R("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new R("function",!1),f_expr:new R("function",!0),f_expr_gen:new R("function",!0,!1,null,!0),f_gen:new R("function",!1,!1,null,!0)},W=t.prototype;W.initialContext=function(){return[S.b_stat]};W.curContext=function(){return this.context[this.context.length-1]};W.braceIsBlock=function(e){var i=this.curContext();if(i===S.f_expr||i===S.f_stat)return!0;if(e===o.colon&&(i===S.b_stat||i===S.b_expr))return!i.isExpr;if(e===o._return||e===o.name&&this.exprAllowed)return T.test(this.input.slice(this.lastTokEnd,this.start));if(e===o._else||e===o.semi||e===o.eof||e===o.parenR||e===o.arrow)return!0;if(e===o.braceL)return i===S.b_stat;if(e===o._var||e===o._const||e===o.name)return!1;return!this.exprAllowed};W.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var i=this.context[e];if(i.token==="function")return i.generator}return!1};W.updateContext=function(e){var i,s=this.type;if(s.keyword&&e===o.dot)this.exprAllowed=!1;else if(i=s.updateContext)i.call(this,e);else this.exprAllowed=s.beforeExpr};W.overrideContext=function(e){if(this.curContext()!==e)this.context[this.context.length-1]=e};o.parenR.updateContext=o.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();if(e===S.b_stat&&this.curContext().token==="function")e=this.context.pop();this.exprAllowed=!e.isExpr};o.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?S.b_stat:S.b_expr),this.exprAllowed=!0};o.dollarBraceL.updateContext=function(){this.context.push(S.b_tmpl),this.exprAllowed=!0};o.parenL.updateContext=function(e){var i=e===o._if||e===o._for||e===o._with||e===o._while;this.context.push(i?S.p_stat:S.p_expr),this.exprAllowed=!0};o.incDec.updateContext=function(){};o._function.updateContext=o._class.updateContext=function(e){if(e.beforeExpr&&e!==o._else&&!(e===o.semi&&this.curContext()!==S.p_stat)&&!(e===o._return&&T.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===o.colon||e===o.braceL)&&this.curContext()===S.b_stat))this.context.push(S.f_expr);else this.context.push(S.f_stat);this.exprAllowed=!1};o.colon.updateContext=function(){if(this.curContext().token==="function")this.context.pop();this.exprAllowed=!0};o.backQuote.updateContext=function(){if(this.curContext()===S.q_tmpl)this.context.pop();else this.context.push(S.q_tmpl);this.exprAllowed=!1};o.star.updateContext=function(e){if(e===o._function){var i=this.context.length-1;if(this.context[i]===S.f_expr)this.context[i]=S.f_expr_gen;else this.context[i]=S.f_gen}this.exprAllowed=!0};o.name.updateContext=function(e){var i=!1;if(this.options.ecmaVersion>=6&&e!==o.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())i=!0}this.exprAllowed=i};var m=t.prototype;m.checkPropClash=function(e,i,s){if(this.options.ecmaVersion>=9&&e.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))return;var n=e.key,h;switch(n.type){case"Identifier":h=n.name;break;case"Literal":h=String(n.value);break;default:return}var p=e.kind;if(this.options.ecmaVersion>=6){if(h==="__proto__"&&p==="init"){if(i.proto)if(s){if(s.doubleProto<0)s.doubleProto=n.start}else this.raiseRecoverable(n.start,"Redefinition of __proto__ property");i.proto=!0}return}h="$"+h;var l=i[h];if(l){var c;if(p==="init")c=this.strict&&l.init||l.get||l.set;else c=l.init||l[p];if(c)this.raiseRecoverable(n.start,"Redefinition of property")}else l=i[h]={init:!1,get:!1,set:!1};l[p]=!0};m.parseExpression=function(e,i){var s=this;return this.catchStackOverflow(function(){var{start:n,startLoc:h}=s,p=s.parseMaybeAssign(e,i);if(s.type===o.comma){var l=s.startNodeAt(n,h);l.expressions=[p];while(s.eat(o.comma))l.expressions.push(s.parseMaybeAssign(e,i));return s.finishNode(l,"SequenceExpression")}return p})};m.parseMaybeAssign=function(e,i,s){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(e);else this.exprAllowed=!1;var n=!1,h=-1,p=-1,l=-1;if(i)h=i.parenthesizedAssign,p=i.trailingComma,l=i.doubleProto,i.parenthesizedAssign=i.trailingComma=-1;else i=new nt,n=!0;var c=this.start,u=this.startLoc;if(this.type===o.parenL||this.type===o.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await";var d=this.parseMaybeConditional(e,i);if(s)d=s.call(this,d,c,u);if(this.type.isAssign){var x=this.startNodeAt(c,u);if(x.operator=this.value,this.type===o.eq)d=this.toAssignable(d,!1,i);if(!n)i.parenthesizedAssign=i.trailingComma=i.doubleProto=-1;if(i.shorthandAssign>=d.start)i.shorthandAssign=-1;if(this.type===o.eq)this.checkLValPattern(d);else this.checkLValSimple(d);if(x.left=d,this.next(),x.right=this.parseMaybeAssign(e),l>-1)i.doubleProto=l;return this.finishNode(x,"AssignmentExpression")}else if(n)this.checkExpressionErrors(i,!0);if(h>-1)i.parenthesizedAssign=h;if(p>-1)i.trailingComma=p;return d};m.parseMaybeConditional=function(e,i){var s=this.start,n=this.startLoc,h=this.parseExprOps(e,i);if(this.checkExpressionErrors(i))return h;if(!(h.type==="ArrowFunctionExpression"&&h.start===s)&&this.eat(o.question)){var p=this.startNodeAt(s,n);return p.test=h,p.consequent=this.parseMaybeAssign(),this.expect(o.colon),p.alternate=this.parseMaybeAssign(e),this.finishNode(p,"ConditionalExpression")}return h};m.parseExprOps=function(e,i){var s=this.start,n=this.startLoc,h=this.parseMaybeUnary(i,!1,!1,e);if(this.checkExpressionErrors(i))return h;return h.start===s&&h.type==="ArrowFunctionExpression"?h:this.parseExprOp(h,s,n,-1,e)};m.parseExprOp=function(e,i,s,n,h){var p=this.type.binop;if(p!=null&&(!h||this.type!==o._in)){if(p>n){var l=this.type===o.logicalOR||this.type===o.logicalAND,c=this.type===o.coalesce;if(c)p=o.logicalAND.binop;var u=this.value;this.next();var d=this.start,x=this.startLoc,w=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,h),d,x,p,h),A=this.buildBinary(i,s,e,w,u,l||c);if(l&&this.type===o.coalesce||c&&(this.type===o.logicalOR||this.type===o.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(A,i,s,n,h)}}return e};m.buildBinary=function(e,i,s,n,h,p){if(n.type==="PrivateIdentifier")this.raise(n.start,"Private identifier can only be left side of binary expression");var l=this.startNodeAt(e,i);return l.left=s,l.operator=h,l.right=n,this.finishNode(l,p?"LogicalExpression":"BinaryExpression")};m.parseMaybeUnary=function(e,i,s,n){var h=this.start,p=this.startLoc,l;if(this.isContextual("await")&&this.canAwait)l=this.parseAwait(n),i=!0;else if(this.type.prefix){var c=this.startNode(),u=this.type===o.incDec;if(c.operator=this.value,c.prefix=!0,this.next(),c.argument=this.parseMaybeUnary(null,!0,u,n),this.checkExpressionErrors(e,!0),u)this.checkLValSimple(c.argument);else if(this.strict&&c.operator==="delete"&&Ot(c.argument))this.raiseRecoverable(c.start,"Deleting local variable in strict mode");else if(c.operator==="delete"&&ut(c.argument))this.raiseRecoverable(c.start,"Private fields can not be deleted");else i=!0;l=this.finishNode(c,u?"UpdateExpression":"UnaryExpression")}else if(!i&&this.type===o.privateId){if((n||this.privateNameStack.length===0)&&this.options.checkPrivateFields)this.unexpected();if(l=this.parsePrivateIdent(),this.type!==o._in)this.unexpected()}else{if(l=this.parseExprSubscripts(e,n),this.checkExpressionErrors(e))return l;while(this.type.postfix&&!this.canInsertSemicolon()){var d=this.startNodeAt(h,p);d.operator=this.value,d.prefix=!1,d.argument=l,this.checkLValSimple(l),this.next(),l=this.finishNode(d,"UpdateExpression")}}if(!s&&!(l.type==="ArrowFunctionExpression"&&l.start===h)&&this.eat(o.starstar))if(i)this.unexpected(this.lastTokStart);else return this.buildBinary(h,p,l,this.parseMaybeUnary(null,!1,!1,n),"**",!1);else return l};function Ot(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Ot(e.expression)}function ut(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&ut(e.expression)||e.type==="ParenthesizedExpression"&&ut(e.expression)}m.parseExprSubscripts=function(e,i){var s=this.start,n=this.startLoc,h=this.parseExprAtom(e,i);if(h.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return h;var p=this.parseSubscripts(h,s,n,!1,i);if(e&&p.type==="MemberExpression"){if(e.parenthesizedAssign>=p.start)e.parenthesizedAssign=-1;if(e.parenthesizedBind>=p.start)e.parenthesizedBind=-1;if(e.trailingComma>=p.start)e.trailingComma=-1}return p};m.parseSubscripts=function(e,i,s,n,h){var p=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,l=!1;while(!0){var c=this.parseSubscript(e,i,s,n,p,l,h);if(c.optional)l=!0;if(c===e||c.type==="ArrowFunctionExpression"){if(l){var u=this.startNodeAt(i,s);u.expression=c,c=this.finishNode(u,"ChainExpression")}return c}e=c}};m.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(o.arrow)};m.parseSubscriptAsyncArrow=function(e,i,s,n){return this.parseArrowExpression(this.startNodeAt(e,i),s,!0,n)};m.parseSubscript=function(e,i,s,n,h,p,l){var c=this.options.ecmaVersion>=11,u=c&&this.eat(o.questionDot);if(n&&u)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var d=this.eat(o.bracketL);if(d||u&&this.type!==o.parenL&&this.type!==o.backQuote||this.eat(o.dot)){var x=this.startNodeAt(i,s);if(x.object=e,d)x.property=this.parseExpression(),this.expect(o.bracketR);else if(this.type===o.privateId&&e.type!=="Super")x.property=this.parsePrivateIdent();else x.property=this.parseIdent(this.options.allowReserved!=="never");if(x.computed=!!d,c)x.optional=u;e=this.finishNode(x,"MemberExpression")}else if(!n&&this.eat(o.parenL)){var w=new nt,A=this.yieldPos,j=this.awaitPos,D=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var X=this.parseExprList(o.parenR,this.options.ecmaVersion>=8,!1,w);if(h&&!u&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(w,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=A,this.awaitPos=j,this.awaitIdentPos=D,this.parseSubscriptAsyncArrow(i,s,X,l)}this.checkExpressionErrors(w,!0),this.yieldPos=A||this.yieldPos,this.awaitPos=j||this.awaitPos,this.awaitIdentPos=D||this.awaitIdentPos;var U=this.startNodeAt(i,s);if(U.callee=e,U.arguments=X,c)U.optional=u;e=this.finishNode(U,"CallExpression")}else if(this.type===o.backQuote){if(u||p)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var q=this.startNodeAt(i,s);q.tag=e,q.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(q,"TaggedTemplateExpression")}return e};m.parseExprAtom=function(e,i,s){if(this.type===o.slash)this.readRegexp();var n,h=this.potentialArrowAt===this.start;switch(this.type){case o._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(n=this.startNode(),this.next(),this.type===o.parenL&&!this.allowDirectSuper)this.raise(n.start,"super() call outside constructor of a subclass");if(this.type!==o.dot&&this.type!==o.bracketL&&this.type!==o.parenL)this.unexpected();return this.finishNode(n,"Super");case o._this:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case o.name:var p=this.start,l=this.startLoc,c=this.containsEsc,u=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!c&&u.name==="async"&&!this.canInsertSemicolon()&&this.eat(o._function))return this.overrideContext(S.f_expr),this.parseFunction(this.startNodeAt(p,l),0,!1,!0,i);if(h&&!this.canInsertSemicolon()){if(this.eat(o.arrow))return this.parseArrowExpression(this.startNodeAt(p,l),[u],!1,i);if(this.options.ecmaVersion>=8&&u.name==="async"&&this.type===o.name&&!c&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(u=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(o.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(p,l),[u],!0,i)}}return u;case o.regexp:var d=this.value;return n=this.parseLiteral(d.value),n.regex={pattern:d.pattern,flags:d.flags},n;case o.num:case o.string:return this.parseLiteral(this.value);case o._null:case o._true:case o._false:return n=this.startNode(),n.value=this.type===o._null?null:this.type===o._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case o.parenL:var x=this.start,w=this.parseParenAndDistinguishExpression(h,i);if(e){if(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(w))e.parenthesizedAssign=x;if(e.parenthesizedBind<0)e.parenthesizedBind=x}return w;case o.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(o.bracketR,!0,!0,e),this.finishNode(n,"ArrayExpression");case o.braceL:return this.overrideContext(S.b_expr),this.parseObj(!1,e);case o._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case o._class:return this.parseClass(this.startNode(),!1);case o._new:return this.parseNew();case o.backQuote:return this.parseTemplate();case o._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(s);else return this.unexpected();default:return this.parseExprAtomDefault()}};m.parseExprAtomDefault=function(){this.unexpected()};m.parseExprImport=function(e){var i=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");if(this.next(),this.type===o.parenL&&!e)return this.parseDynamicImport(i);else if(this.type===o.dot){var s=this.startNodeAt(i.start,i.loc&&i.loc.start);return s.name="import",i.meta=this.finishNode(s,"Identifier"),this.parseImportMeta(i)}else this.unexpected()};m.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)if(!this.eat(o.parenR))if(this.expect(o.comma),!this.afterTrailingComma(o.parenR)){if(e.options=this.parseMaybeAssign(),!this.eat(o.parenR)){if(this.expect(o.comma),!this.afterTrailingComma(o.parenR))this.unexpected()}}else e.options=null;else e.options=null;else if(!this.eat(o.parenR)){var i=this.start;if(this.eat(o.comma)&&this.eat(o.parenR))this.raiseRecoverable(i,"Trailing comma is not allowed in import()");else this.unexpected(i)}return this.finishNode(e,"ImportExpression")};m.parseImportMeta=function(e){this.next();var i=this.containsEsc;if(e.property=this.parseIdent(!0),e.property.name!=="meta")this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'");if(i)this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module");return this.finishNode(e,"MetaProperty")};m.parseLiteral=function(e){var i=this.startNode();if(i.value=e,i.raw=this.input.slice(this.start,this.end),i.raw.charCodeAt(i.raw.length-1)===110)i.bigint=i.value!=null?i.value.toString():i.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(i,"Literal")};m.parseParenExpression=function(){this.expect(o.parenL);var e=this.parseExpression();return this.expect(o.parenR),e};m.shouldParseArrow=function(e){return!this.canInsertSemicolon()};m.parseParenAndDistinguishExpression=function(e,i){var s=this.start,n=this.startLoc,h,p=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var l=this.start,c=this.startLoc,u=[],d=!0,x=!1,w=new nt,A=this.yieldPos,j=this.awaitPos,D;this.yieldPos=0,this.awaitPos=0;while(this.type!==o.parenR)if(d?d=!1:this.expect(o.comma),p&&this.afterTrailingComma(o.parenR,!0)){x=!0;break}else if(this.type===o.ellipsis){if(D=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===o.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else u.push(this.parseMaybeAssign(!1,w,this.parseParenItem));var X=this.lastTokEnd,U=this.lastTokEndLoc;if(this.expect(o.parenR),e&&this.shouldParseArrow(u)&&this.eat(o.arrow))return this.checkPatternErrors(w,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=A,this.awaitPos=j,this.parseParenArrowList(s,n,u,i);if(!u.length||x)this.unexpected(this.lastTokStart);if(D)this.unexpected(D);if(this.checkExpressionErrors(w,!0),this.yieldPos=A||this.yieldPos,this.awaitPos=j||this.awaitPos,u.length>1)h=this.startNodeAt(l,c),h.expressions=u,this.finishNodeAt(h,"SequenceExpression",X,U);else h=u[0]}else h=this.parseParenExpression();if(this.options.preserveParens){var q=this.startNodeAt(s,n);return q.expression=h,this.finishNode(q,"ParenthesizedExpression")}else return h};m.parseParenItem=function(e){return e};m.parseParenArrowList=function(e,i,s,n){return this.parseArrowExpression(this.startNodeAt(e,i),s,!1,n)};var te=[];m.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===o.dot){var i=this.startNodeAt(e.start,e.loc&&e.loc.start);i.name="new",e.meta=this.finishNode(i,"Identifier"),this.next();var s=this.containsEsc;if(e.property=this.parseIdent(!0),e.property.name!=="target")this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'");if(s)this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block");return this.finishNode(e,"MetaProperty")}var n=this.start,h=this.startLoc;if(e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),n,h,!0,!1),e.callee.type==="Super")this.raiseRecoverable(n,"Invalid use of 'super'");if(this.eat(o.parenL))e.arguments=this.parseExprList(o.parenR,this.options.ecmaVersion>=8,!1);else e.arguments=te;return this.finishNode(e,"NewExpression")};m.parseTemplateElement=function(e){var i=e.isTagged,s=this.startNode();if(this.type===o.invalidTemplate){if(!i)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");s.value={raw:this.value.replace(/\r\n?/g,`
1
+ var ht={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},pt="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",qt={5:pt,"5module":pt+" export import",6:pt+" const class extends export import super"},St=/^in(stanceof)?$/,zt=/\p{ID_Start}/u,Wt=/[\p{ID_Continue}\u200c\u200d]/u;function n(e,i){if(e<65)return e===36;if(e<91)return!0;if(e<97)return e===95;if(e<123)return!0;if(e>65535&&i===!1)return!1;return e>=170&&zt.test(String.fromCodePoint(e))}function l(e,i){if(e<48)return e===36;if(e<58)return!0;if(e<65)return!1;if(e<91)return!0;if(e<97)return e===95;if(e<123)return!0;if(e>65535&&i===!1)return!1;return e>=170&&Wt.test(String.fromCodePoint(e))}var k=function(i,s){if(s===void 0)s={};this.label=i,this.keyword=s.keyword,this.beforeExpr=!!s.beforeExpr,this.startsExpr=!!s.startsExpr,this.isLoop=!!s.isLoop,this.isAssign=!!s.isAssign,this.prefix=!!s.prefix,this.postfix=!!s.postfix,this.binop=s.binop||null,this.updateContext=null};function P(e,i){return new k(e,{beforeExpr:!0,binop:i})}var I={beforeExpr:!0},E={startsExpr:!0},ft={};function b(e,i){if(i===void 0)i={};return i.keyword=e,ft[e]=new k(e,i)}var a={num:new k("num",E),regexp:new k("regexp",E),string:new k("string",E),name:new k("name",E),privateId:new k("privateId",E),eof:new k("eof"),bracketL:new k("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new k("]"),braceL:new k("{",{beforeExpr:!0,startsExpr:!0}),braceR:new k("}"),parenL:new k("(",{beforeExpr:!0,startsExpr:!0}),parenR:new k(")"),comma:new k(",",I),semi:new k(";",I),colon:new k(":",I),dot:new k("."),question:new k("?",I),questionDot:new k("?."),arrow:new k("=>",I),template:new k("template"),invalidTemplate:new k("invalidTemplate"),ellipsis:new k("...",I),backQuote:new k("`",E),dollarBraceL:new k("${",{beforeExpr:!0,startsExpr:!0}),eq:new k("=",{beforeExpr:!0,isAssign:!0}),assign:new k("_=",{beforeExpr:!0,isAssign:!0}),incDec:new k("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new k("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:P("||",1),logicalAND:P("&&",2),bitwiseOR:P("|",3),bitwiseXOR:P("^",4),bitwiseAND:P("&",5),equality:P("==/!=/===/!==",6),relational:P("</>/<=/>=",7),bitShift:P("<</>>/>>>",8),plusMin:new k("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:P("%",10),star:P("*",10),slash:P("/",10),starstar:new k("**",{beforeExpr:!0}),coalesce:P("??",1),_break:b("break"),_case:b("case",I),_catch:b("catch"),_continue:b("continue"),_debugger:b("debugger"),_default:b("default",I),_do:b("do",{isLoop:!0,beforeExpr:!0}),_else:b("else",I),_finally:b("finally"),_for:b("for",{isLoop:!0}),_function:b("function",E),_if:b("if"),_return:b("return",I),_switch:b("switch"),_throw:b("throw",I),_try:b("try"),_var:b("var"),_const:b("const"),_while:b("while",{isLoop:!0}),_with:b("with"),_new:b("new",{beforeExpr:!0,startsExpr:!0}),_this:b("this",E),_super:b("super",E),_class:b("class",E),_extends:b("extends",I),_export:b("export"),_import:b("import",E),_null:b("null",E),_true:b("true",E),_false:b("false",E),_in:b("in",{beforeExpr:!0,binop:7}),_instanceof:b("instanceof",{beforeExpr:!0,binop:7}),_typeof:b("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:b("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:b("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},T=/\r\n?|\n|\u2028|\u2029/,jt=new RegExp(T.source,"g");function z(e){return e===10||e===13||e===8232||e===8233}function Ct(e,i,s){if(s===void 0)s=e.length;for(var r=i;r<s;r++){var o=e.charCodeAt(r);if(z(o))return r<s-1&&o===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var At=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,C=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Nt=Object.prototype,{hasOwnProperty:Gt,toString:Ht}=Nt,Y=Object.hasOwn||function(e,i){return Gt.call(e,i)},kt=Array.isArray||function(e){return Ht.call(e)==="[object Array]"},gt=Object.create(null);function J(e){return gt[e]||(gt[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function it(e){if(e<=65535)return String.fromCharCode(e);return e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320)}var Yt=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,H=function(i,s){this.line=i,this.column=s};H.prototype.offset=function(i){return new H(this.line,this.column+i)};var st=function(i,s,r){if(this.start=s,this.end=r,i.sourceFile!==null)this.source=i.sourceFile};function Et(e,i){for(var s=1,r=0;;){var o=Ct(e,r,i);if(o<0)return new H(s,i-r);++s,r=o}}var lt={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},wt=!1;function Qt(e){var i={};for(var s in lt)i[s]=e&&Y(e,s)?e[s]:lt[s];if(i.ecmaVersion==="latest")i.ecmaVersion=1e8;else if(i.ecmaVersion==null){if(!wt&&typeof console==="object"&&console.warn)wt=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
2
+ Defaulting to 2020, but this will stop working in the future.`);i.ecmaVersion=11}else if(i.ecmaVersion>=2015)i.ecmaVersion-=2009;if(i.allowReserved==null)i.allowReserved=i.ecmaVersion<5;if(!e||e.allowHashBang==null)i.allowHashBang=i.ecmaVersion>=14;if(kt(i.onToken)){var r=i.onToken;i.onToken=function(o){return r.push(o)}}if(kt(i.onComment))i.onComment=Kt(i,i.onComment);if(i.sourceType==="commonjs"&&i.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return i}function Kt(e,i){return function(s,r,o,h,p,c){var u={type:s?"Block":"Line",value:r,start:o,end:h};if(e.locations)u.loc=new st(this,p,c);if(e.ranges)u.range=[o,h];i.push(u)}}var O=1,B=2,dt=4,Tt=8,mt=16,Pt=32,rt=64,It=128,M=256,Q=512,_t=1024,at=O|B|M;function vt(e,i){return B|(e?dt:0)|(i?Tt:0)}var Z=0,xt=1,V=2,Lt=3,Rt=4,Vt=5,t=function(i,s,r){this.options=i=Qt(i),this.sourceFile=i.sourceFile,this.keywords=J(qt[i.ecmaVersion>=6?6:i.sourceType==="module"?"5module":5]);var o="";if(i.allowReserved!==!0){if(o=ht[i.ecmaVersion>=6?6:i.ecmaVersion===5?5:3],i.sourceType==="module")o+=" await"}this.reservedWords=J(o);var h=(o?o+" ":"")+ht.strict;if(this.reservedWordsStrict=J(h),this.reservedWordsStrictBind=J(h+" "+ht.strictBind),this.input=String(s),this.containsEsc=!1,this.pos=r||0,this.curLine=1,i.startLocation)this.lineStart=this.pos-i.startLocation.column,this.curLine=i.startLocation.line;else if(r){if(this.lineStart=this.input.lastIndexOf(`
3
+ `,r-1)+1,this.options.locations)this.curLine=this.input.slice(0,this.lineStart).split(T).length}else this.lineStart=0;if(this.type=a.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=i.sourceType==="module",this.strict=this.inModule||i.strict===!0||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&i.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2);this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?B:O),this.regexpState=null,this.privateNameStack=[]},_={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};t.prototype.parse=function(){var i=this,s=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return i.parseTopLevel(s)})};_.inFunction.get=function(){return(this.currentVarScope().flags&B)>0};_.inGenerator.get=function(){return(this.currentVarScope().flags&Tt)>0};_.inAsync.get=function(){return(this.currentVarScope().flags&dt)>0};_.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var i=this.scopeStack[e],s=i.flags;if(s&(M|Q))return!1;if(s&B)return(s&dt)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};_.allowReturn.get=function(){if(this.inFunction)return!0;if(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&O)return!0;return!1};_.allowSuper.get=function(){var e=this.currentThisScope(),i=e.flags;return(i&rt)>0||this.options.allowSuperOutsideMethod};_.allowDirectSuper.get=function(){return(this.currentThisScope().flags&It)>0};_.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};_.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var i=this.scopeStack[e],s=i.flags;if(s&(M|Q)||s&B&&!(s&mt))return!0}return!1};_.allowUsing.get=function(){var e=this.currentScope(),i=e.flags;if(i&_t)return!1;if(!this.inModule&&i&O)return!1;return!0};_.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&M)>0};t.extend=function(){var i=[],s=arguments.length;while(s--)i[s]=arguments[s];var r=this;for(var o=0;o<i.length;o++)r=i[o](r);return r};t.parse=function(i,s){return new this(s,i).parse()};t.parseExpressionAt=function(i,s,r){var o=new this(r,i,s);return o.nextToken(),o.parseExpression()};t.tokenizer=function(i,s){return new this(s,i)};Object.defineProperties(t.prototype,_);var N=t.prototype,Xt=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;N.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){C.lastIndex=e,e+=C.exec(this.input)[0].length;var i=Xt.exec(this.input.slice(e));if(!i)return!1;if((i[1]||i[2])==="use strict"){C.lastIndex=e+i[0].length;var s=C.exec(this.input),r=s.index+s[0].length,o=this.input.charAt(r);return o===";"||o==="}"||T.test(s[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(o)||o==="!"&&this.input.charAt(r+1)==="=")}if(e+=i[0].length,C.lastIndex=e,e+=C.exec(this.input)[0].length,this.input[e]===";")e++}};N.eat=function(e){if(this.type===e)return this.next(),!0;else return!1};N.isContextual=function(e){return this.type===a.name&&this.value===e&&!this.containsEsc};N.eatContextual=function(e){if(!this.isContextual(e))return!1;return this.next(),!0};N.catchStackOverflow=function(e){try{return e()}catch(i){if(i instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(i.message)||/\btoo much recursion\b/i.test(i.message)))this.raise(this.start,"Not enough stack space to parse input");else throw i}};N.expectContextual=function(e){if(!this.eatContextual(e))this.unexpected()};N.canInsertSemicolon=function(){return this.type===a.eof||this.type===a.braceR||T.test(this.input.slice(this.lastTokEnd,this.start))};N.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};N.semicolon=function(){if(!this.eat(a.semi)&&!this.insertSemicolon())this.unexpected()};N.afterTrailingComma=function(e,i){if(this.type===e){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!i)this.next();return!0}};N.expect=function(e){this.eat(e)||this.unexpected()};N.unexpected=function(e){this.raise(e!=null?e:this.start,"Unexpected token")};var nt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};N.checkPatternErrors=function(e,i){if(!e)return;if(e.trailingComma>-1)this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var s=i?e.parenthesizedAssign:e.parenthesizedBind;if(s>-1)this.raiseRecoverable(s,i?"Assigning to rvalue":"Parenthesized pattern")};N.checkExpressionErrors=function(e,i){if(!e)return!1;var{shorthandAssign:s,doubleProto:r}=e;if(!i)return s>=0||r>=0;if(s>=0)this.raise(s,"Shorthand property assignments are valid only in destructuring patterns");if(r>=0)this.raiseRecoverable(r,"Redefinition of __proto__ property")};N.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos))this.raise(this.yieldPos,"Yield expression cannot be a default value");if(this.awaitPos)this.raise(this.awaitPos,"Await expression cannot be a default value")};N.isSimpleAssignTarget=function(e){if(e.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(e.expression);return e.type==="Identifier"||e.type==="MemberExpression"};var f=t.prototype;f.parseTopLevel=function(e){var i=Object.create(null);if(!e.body)e.body=[];while(this.type!==a.eof){var s=this.parseStatement(null,!0,i);e.body.push(s)}if(this.inModule)for(var r=0,o=Object.keys(this.undefinedExports);r<o.length;r+=1){var h=o[r];this.raiseRecoverable(this.undefinedExports[h].start,"Export '"+h+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var yt={kind:"loop"},Jt={kind:"switch"};f.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;C.lastIndex=this.pos;var i=C.exec(this.input),s=this.pos+i[0].length,r=this.fullCharCodeAt(s);if(r===91||r===92)return!0;if(e)return!1;if(r===123)return!0;if(n(r)){var o=s;do s+=r<=65535?1:2;while(l(r=this.fullCharCodeAt(s)));if(r===92)return!0;var h=this.input.slice(o,s);if(!St.test(h))return!0}return!1};f.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;C.lastIndex=this.pos;var e=C.exec(this.input),i=this.pos+e[0].length,s;return!T.test(this.input.slice(this.pos,i))&&this.input.slice(i,i+8)==="function"&&(i+8===this.input.length||!(l(s=this.fullCharCodeAt(i+8))||s===92))};f.isUsingKeyword=function(e,i){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;C.lastIndex=this.pos;var s=C.exec(this.input),r=this.pos+s[0].length;if(T.test(this.input.slice(this.pos,r)))return!1;if(e){var o=r+5,h;if(this.input.slice(r,o)!=="using"||o===this.input.length||l(h=this.fullCharCodeAt(o))||h===92)return!1;C.lastIndex=o;var p=C.exec(this.input);if(r=o+p[0].length,p&&T.test(this.input.slice(o,r)))return!1}var c=this.fullCharCodeAt(r);if(!n(c)&&c!==92)return!1;var u=r;do r+=c<=65535?1:2;while(l(c=this.fullCharCodeAt(r)));if(c===92)return!0;var d=this.input.slice(u,r);if(St.test(d))return!1;if(i&&!e&&d==="of"){C.lastIndex=r;var x=C.exec(this.input);if(r=r+x[0].length,this.input.charCodeAt(r)!==61||(c=this.input.charCodeAt(r+1))===61||c===62)return!1}return!0};f.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};f.isUsing=function(e){return this.isUsingKeyword(!1,e)};f.parseStatement=function(e,i,s){var r=this.type,o=this.startNode(),h;if(this.isLet(e))r=a._var,h="let";switch(r){case a._break:case a._continue:return this.parseBreakContinueStatement(o,r.keyword);case a._debugger:return this.parseDebuggerStatement(o);case a._do:return this.parseDoStatement(o);case a._for:return this.parseForStatement(o);case a._function:if(e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(o,!1,!e);case a._class:if(e)this.unexpected();return this.parseClass(o,!0);case a._if:return this.parseIfStatement(o);case a._return:return this.parseReturnStatement(o);case a._switch:return this.parseSwitchStatement(o);case a._throw:return this.parseThrowStatement(o);case a._try:return this.parseTryStatement(o);case a._const:case a._var:if(h=h||this.value,e&&h!=="var")this.unexpected();return this.parseVarStatement(o,h);case a._while:return this.parseWhileStatement(o);case a._with:return this.parseWithStatement(o);case a.braceL:return this.parseBlock(!0,o);case a.semi:return this.parseEmptyStatement(o);case a._export:case a._import:if(this.options.ecmaVersion>10&&r===a._import){C.lastIndex=this.pos;var p=C.exec(this.input),c=this.pos+p[0].length,u=this.input.charCodeAt(c);if(u===40||u===46)return this.parseExpressionStatement(o,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!i)this.raise(this.start,"'import' and 'export' may only appear at the top level");if(!this.inModule)this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}return r===a._import?this.parseImport(o):this.parseExport(o,s);default:if(this.isAsyncFunction()){if(e)this.unexpected();return this.next(),this.parseFunctionStatement(o,!0,!e)}var d=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(d){if(!this.allowUsing)this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement");if(e)this.raise(this.start,"Using declaration is not allowed in single-statement positions");if(d==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.next(),this.parseVar(o,!1,d),this.semicolon(),this.finishNode(o,"VariableDeclaration")}var x=this.value,g=this.parseExpression();if(r===a.name&&g.type==="Identifier"&&this.eat(a.colon))return this.parseLabeledStatement(o,x,g,e);else return this.parseExpressionStatement(o,g)}};f.parseBreakContinueStatement=function(e,i){var s=i==="break";if(this.next(),this.eat(a.semi)||this.insertSemicolon())e.label=null;else if(this.type!==a.name)this.unexpected();else e.label=this.parseIdent(),this.semicolon();var r=0;for(;r<this.labels.length;++r){var o=this.labels[r];if(e.label==null||o.name===e.label.name){if(o.kind!=null&&(s||o.kind==="loop"))break;if(e.label&&s)break}}if(r===this.labels.length)this.raise(e.start,"Unsyntactic "+i);return this.finishNode(e,s?"BreakStatement":"ContinueStatement")};f.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};f.parseDoStatement=function(e){if(this.next(),this.labels.push(yt),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(a._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(a.semi);else this.semicolon();return this.finishNode(e,"DoWhileStatement")};f.parseForStatement=function(e){this.next();var i=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(yt),this.enterScope(0),this.expect(a.parenL),this.type===a.semi){if(i>-1)this.unexpected(i);return this.parseFor(e,null)}var s=this.isLet();if(this.type===a._var||this.type===a._const||s){var r=this.startNode(),o=s?"let":this.value;return this.next(),this.parseVar(r,!0,o),this.finishNode(r,"VariableDeclaration"),this.parseForAfterInit(e,r,i)}var h=this.isContextual("let"),p=!1,c=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(c){var u=this.startNode();if(this.next(),c==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.parseVar(u,!0,c),this.finishNode(u,"VariableDeclaration"),this.parseForAfterInit(e,u,i)}var d=this.containsEsc,x=new nt,g=this.start,A=i>-1?this.parseExprSubscripts(x,"await"):this.parseExpression(!0,x);if(this.type===a._in||(p=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(i>-1){if(this.type===a._in)this.unexpected(i);e.await=!0}else if(p&&this.options.ecmaVersion>=8){if(A.start===g&&!d&&A.type==="Identifier"&&A.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)e.await=!1}if(h&&p)this.raise(A.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(A,!1,x),this.checkLValPattern(A),this.parseForIn(e,A)}else this.checkExpressionErrors(x,!0);if(i>-1)this.unexpected(i);return this.parseFor(e,A)};f.parseForAfterInit=function(e,i,s){if((this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&i.declarations.length===1){if(this.type===a._in){if((i.kind==="using"||i.kind==="await using")&&!i.declarations[0].init)this.raise(this.start,"Using declaration is not allowed in for-in loops");if(this.options.ecmaVersion>=9&&s>-1)this.unexpected(s)}else if(this.options.ecmaVersion>=9)e.await=s>-1;return this.parseForIn(e,i)}if(s>-1)this.unexpected(s);return this.parseFor(e,i)};f.parseFunctionStatement=function(e,i,s){return this.next(),this.parseFunction(e,G|(s?0:ct),!1,i)};f.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(a._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};f.parseReturnStatement=function(e){if(!this.allowReturn)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(a.semi)||this.insertSemicolon())e.argument=null;else e.argument=this.parseExpression(),this.semicolon();return this.finishNode(e,"ReturnStatement")};f.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(a.braceL),this.labels.push(Jt),this.enterScope(_t);var i;for(var s=!1;this.type!==a.braceR;)if(this.type===a._case||this.type===a._default){var r=this.type===a._case;if(i)this.finishNode(i,"SwitchCase");if(e.cases.push(i=this.startNode()),i.consequent=[],this.next(),r)i.test=this.parseExpression();else{if(s)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");s=!0,i.test=null}this.expect(a.colon)}else{if(!i)this.unexpected();i.consequent.push(this.parseStatement(null))}if(this.exitScope(),i)this.finishNode(i,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};f.parseThrowStatement=function(e){if(this.next(),T.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Zt=[];f.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),i=e.type==="Identifier";return this.enterScope(i?Pt:0),this.checkLValPattern(e,i?Rt:V),this.expect(a.parenR),e};f.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===a._catch){var i=this.startNode();if(this.next(),this.eat(a.parenL))i.param=this.parseCatchClauseParam();else{if(this.options.ecmaVersion<10)this.unexpected();i.param=null,this.enterScope(0)}i.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(i,"CatchClause")}if(e.finalizer=this.eat(a._finally)?this.parseBlock():null,!e.handler&&!e.finalizer)this.raise(e.start,"Missing catch or finally clause");return this.finishNode(e,"TryStatement")};f.parseVarStatement=function(e,i,s){return this.next(),this.parseVar(e,!1,i,s),this.semicolon(),this.finishNode(e,"VariableDeclaration")};f.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(yt),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};f.parseWithStatement=function(e){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};f.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};f.parseLabeledStatement=function(e,i,s,r){for(var o=0,h=this.labels;o<h.length;o+=1){var p=h[o];if(p.name===i)this.raise(s.start,"Label '"+i+"' is already declared")}var c=this.type.isLoop?"loop":this.type===a._switch?"switch":null;for(var u=this.labels.length-1;u>=0;u--){var d=this.labels[u];if(d.statementStart===e.start)d.statementStart=this.start,d.kind=c;else break}return this.labels.push({name:i,kind:c,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf("label")===-1?r+"label":r:"label"),this.labels.pop(),e.label=s,this.finishNode(e,"LabeledStatement")};f.parseExpressionStatement=function(e,i){return e.expression=i,this.semicolon(),this.finishNode(e,"ExpressionStatement")};f.parseBlock=function(e,i,s){if(e===void 0)e=!0;if(i===void 0)i=this.startNode();if(i.body=[],this.expect(a.braceL),e)this.enterScope(0);while(this.type!==a.braceR){var r=this.parseStatement(null);i.body.push(r)}if(s)this.strict=!1;if(this.next(),e)this.exitScope();return this.finishNode(i,"BlockStatement")};f.parseFor=function(e,i){return e.init=i,this.expect(a.semi),e.test=this.type===a.semi?null:this.parseExpression(),this.expect(a.semi),e.update=this.type===a.parenR?null:this.parseExpression(),this.expect(a.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};f.parseForIn=function(e,i){var s=this.type===a._in;if(this.next(),i.type==="VariableDeclaration"&&i.declarations[0].init!=null&&(!s||this.options.ecmaVersion<8||this.strict||i.kind!=="var"||i.declarations[0].id.type!=="Identifier"))this.raise(i.start,(s?"for-in":"for-of")+" loop variable declaration may not have an initializer");return e.left=i,e.right=s?this.parseExpression():this.parseMaybeAssign(),this.expect(a.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")};f.parseVar=function(e,i,s,r){e.declarations=[],e.kind=s;for(;;){var o=this.startNode();if(this.parseVarId(o,s),this.eat(a.eq))o.init=this.parseMaybeAssign(i);else if(!r&&s==="const"&&!(this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!r&&(s==="using"||s==="await using")&&this.options.ecmaVersion>=17&&this.type!==a._in&&!this.isContextual("of"))this.raise(this.lastTokEnd,"Missing initializer in "+s+" declaration");else if(!r&&o.id.type!=="Identifier"&&!(i&&(this.type===a._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else o.init=null;if(e.declarations.push(this.finishNode(o,"VariableDeclarator")),!this.eat(a.comma))break}return e};f.parseVarId=function(e,i){e.id=i==="using"||i==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,i==="var"?xt:V,!1)};var G=1,ct=2,Ft=4;f.parseFunction=function(e,i,s,r,o){if(this.initFunction(e),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r){if(this.type===a.star&&i&ct)this.unexpected();e.generator=this.eat(a.star)}if(this.options.ecmaVersion>=8)e.async=!!r;if(i&G){if(e.id=i&Ft&&this.type!==a.name?null:this.parseIdent(),e.id&&!(i&ct))this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?xt:V:Lt)}var h=this.yieldPos,p=this.awaitPos,c=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(vt(e.async,e.generator)),!(i&G))e.id=this.type===a.name?this.parseIdent():null;return this.parseFunctionParams(e),this.parseFunctionBody(e,s,!1,o),this.yieldPos=h,this.awaitPos=p,this.awaitIdentPos=c,this.finishNode(e,i&G?"FunctionDeclaration":"FunctionExpression")};f.parseFunctionParams=function(e){this.expect(a.parenL),e.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};f.parseClass=function(e,i){this.next();var s=this.strict;this.strict=!0,this.parseClassId(e,i),this.parseClassSuper(e);var r=this.enterClassBody(),o=this.startNode(),h=!1;o.body=[],this.expect(a.braceL);while(this.type!==a.braceR){var p=this.parseClassElement(e.superClass!==null);if(p){if(o.body.push(p),p.type==="MethodDefinition"&&p.kind==="constructor"){if(h)this.raiseRecoverable(p.start,"Duplicate constructor in the same class");h=!0}else if(p.key&&p.key.type==="PrivateIdentifier"&&$t(r,p))this.raiseRecoverable(p.key.start,"Identifier '#"+p.key.name+"' has already been declared")}}return this.strict=s,this.next(),e.body=this.finishNode(o,"ClassBody"),this.exitClassBody(),this.finishNode(e,i?"ClassDeclaration":"ClassExpression")};f.parseClassElement=function(e){if(this.eat(a.semi))return null;var i=this.options.ecmaVersion,s=this.startNode(),r="",o=!1,h=!1,p="method",c=!1;if(this.eatContextual("static")){if(i>=13&&this.eat(a.braceL))return this.parseClassStaticBlock(s),s;if(this.isClassElementNameStart()||this.type===a.star)c=!0;else r="static"}if(s.static=c,!r&&i>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===a.star)&&!this.canInsertSemicolon())h=!0;else r="async";if(!r&&(i>=9||!h)&&this.eat(a.star))o=!0;if(!r&&!h&&!o){var u=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())p=u;else r=u}if(r)s.computed=!1,s.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),s.key.name=r,this.finishNode(s.key,"Identifier");else this.parseClassElementName(s);if(i<13||this.type===a.parenL||p!=="method"||o||h){var d=!s.static&&tt(s,"constructor"),x=d&&e;if(d&&p!=="method")this.raise(s.key.start,"Constructor can't have get/set modifier");s.kind=d?"constructor":p,this.parseClassMethod(s,o,h,x)}else this.parseClassField(s);return s};f.isClassElementNameStart=function(){return this.type===a.name||this.type===a.privateId||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword};f.parseClassElementName=function(e){if(this.type===a.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");e.computed=!1,e.key=this.parsePrivateIdent()}else this.parsePropertyName(e)};f.parseClassMethod=function(e,i,s,r){var o=e.key;if(e.kind==="constructor"){if(i)this.raise(o.start,"Constructor can't be a generator");if(s)this.raise(o.start,"Constructor can't be an async method")}else if(e.static&&tt(e,"prototype"))this.raise(o.start,"Classes may not have a static property named prototype");var h=e.value=this.parseMethod(i,s,r);if(e.kind==="get"&&h.params.length!==0)this.raiseRecoverable(h.start,"getter should have no params");if(e.kind==="set"&&h.params.length!==1)this.raiseRecoverable(h.start,"setter should have exactly one param");if(e.kind==="set"&&h.params[0].type==="RestElement")this.raiseRecoverable(h.params[0].start,"Setter cannot use rest params");return this.finishNode(e,"MethodDefinition")};f.parseClassField=function(e){if(tt(e,"constructor"))this.raise(e.key.start,"Classes can't have a field named 'constructor'");else if(e.static&&tt(e,"prototype"))this.raise(e.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(a.eq))this.enterScope(Q|rt),e.value=this.parseMaybeAssign(),this.exitScope();else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")};f.parseClassStaticBlock=function(e){e.body=[];var i=this.labels;this.labels=[],this.enterScope(M|rt);while(this.type!==a.braceR){var s=this.parseStatement(null);e.body.push(s)}return this.next(),this.exitScope(),this.labels=i,this.finishNode(e,"StaticBlock")};f.parseClassId=function(e,i){if(this.type===a.name){if(e.id=this.parseIdent(),i)this.checkLValSimple(e.id,V,!1)}else{if(i===!0)this.unexpected();e.id=null}};f.parseClassSuper=function(e){e.superClass=this.eat(a._extends)?this.parseExprSubscripts(null,!1):null};f.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};f.exitClassBody=function(){var e=this.privateNameStack.pop(),{declared:i,used:s}=e;if(!this.options.checkPrivateFields)return;var r=this.privateNameStack.length,o=r===0?null:this.privateNameStack[r-1];for(var h=0;h<s.length;++h){var p=s[h];if(!Y(i,p.name))if(o)o.used.push(p);else this.raiseRecoverable(p.start,"Private field '#"+p.name+"' must be declared in an enclosing class")}};function $t(e,i){var s=i.key.name,r=e[s],o="true";if(i.type==="MethodDefinition"&&(i.kind==="get"||i.kind==="set"))o=(i.static?"s":"i")+i.kind;if(r==="iget"&&o==="iset"||r==="iset"&&o==="iget"||r==="sget"&&o==="sset"||r==="sset"&&o==="sget")return e[s]="true",!1;else if(!r)return e[s]=o,!1;else return!0}function tt(e,i){var{computed:s,key:r}=e;return!s&&(r.type==="Identifier"&&r.name===i||r.type==="Literal"&&r.value===i)}f.parseExportAllDeclaration=function(e,i){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))e.exported=this.parseModuleExportName(),this.checkExport(i,e.exported,this.lastTokStart);else e.exported=null;if(this.expectContextual("from"),this.type!==a.string)this.unexpected();if(e.source=this.parseExprAtom(),this.options.ecmaVersion>=16)e.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};f.parseExport=function(e,i){if(this.next(),this.eat(a.star))return this.parseExportAllDeclaration(e,i);if(this.eat(a._default))return this.checkExport(i,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration")this.checkVariableExport(i,e.declaration.declarations);else this.checkExport(i,e.declaration.id,e.declaration.id.start);if(e.specifiers=[],e.source=null,this.options.ecmaVersion>=16)e.attributes=[]}else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(i),this.eatContextual("from")){if(this.type!==a.string)this.unexpected();if(e.source=this.parseExprAtom(),this.options.ecmaVersion>=16)e.attributes=this.parseWithClause()}else{for(var s=0,r=e.specifiers;s<r.length;s+=1){var o=r[s];if(this.checkUnreserved(o.local),this.checkLocalExport(o.local),o.local.type==="Literal")this.raise(o.local.start,"A string literal cannot be used as an exported binding without `from`.")}if(e.source=null,this.options.ecmaVersion>=16)e.attributes=[]}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};f.parseExportDeclaration=function(e){return this.parseStatement(null)};f.parseExportDefaultDeclaration=function(){var e;if(this.type===a._function||(e=this.isAsyncFunction())){var i=this.startNode();if(this.next(),e)this.next();return this.parseFunction(i,G|Ft,!1,e)}else if(this.type===a._class){var s=this.startNode();return this.parseClass(s,"nullableID")}else{var r=this.parseMaybeAssign();return this.semicolon(),r}};f.checkExport=function(e,i,s){if(!e)return;if(typeof i!=="string")i=i.type==="Identifier"?i.name:i.value;if(Y(e,i))this.raiseRecoverable(s,"Duplicate export '"+i+"'");e[i]=!0};f.checkPatternExport=function(e,i){var s=i.type;if(s==="Identifier")this.checkExport(e,i,i.start);else if(s==="ObjectPattern")for(var r=0,o=i.properties;r<o.length;r+=1){var h=o[r];this.checkPatternExport(e,h)}else if(s==="ArrayPattern")for(var p=0,c=i.elements;p<c.length;p+=1){var u=c[p];if(u)this.checkPatternExport(e,u)}else if(s==="Property")this.checkPatternExport(e,i.value);else if(s==="AssignmentPattern")this.checkPatternExport(e,i.left);else if(s==="RestElement")this.checkPatternExport(e,i.argument)};f.checkVariableExport=function(e,i){if(!e)return;for(var s=0,r=i;s<r.length;s+=1){var o=r[s];this.checkPatternExport(e,o.id)}};f.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};f.parseExportSpecifier=function(e){var i=this.startNode();return i.local=this.parseModuleExportName(),i.exported=this.eatContextual("as")?this.parseModuleExportName():i.local,this.checkExport(e,i.exported,i.exported.start),this.finishNode(i,"ExportSpecifier")};f.parseExportSpecifiers=function(e){var i=[],s=!0;this.expect(a.braceL);while(!this.eat(a.braceR)){if(!s){if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break}else s=!1;i.push(this.parseExportSpecifier(e))}return i};f.parseImport=function(e){if(this.next(),this.type===a.string)e.specifiers=Zt,e.source=this.parseExprAtom();else e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===a.string?this.parseExprAtom():this.unexpected();if(this.options.ecmaVersion>=16)e.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(e,"ImportDeclaration")};f.parseImportSpecifier=function(){var e=this.startNode();if(e.imported=this.parseModuleExportName(),this.eatContextual("as"))e.local=this.parseIdent();else this.checkUnreserved(e.imported),e.local=e.imported;return this.checkLValSimple(e.local,V),this.finishNode(e,"ImportSpecifier")};f.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,V),this.finishNode(e,"ImportDefaultSpecifier")};f.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,V),this.finishNode(e,"ImportNamespaceSpecifier")};f.parseImportSpecifiers=function(){var e=[],i=!0;if(this.type===a.name){if(e.push(this.parseImportDefaultSpecifier()),!this.eat(a.comma))return e}if(this.type===a.star)return e.push(this.parseImportNamespaceSpecifier()),e;this.expect(a.braceL);while(!this.eat(a.braceR)){if(!i){if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break}else i=!1;e.push(this.parseImportSpecifier())}return e};f.parseWithClause=function(){var e=[];if(!this.eat(a._with))return e;this.expect(a.braceL);var i={},s=!0;while(!this.eat(a.braceR)){if(!s){if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break}else s=!1;var r=this.parseImportAttribute(),o=r.key.type==="Identifier"?r.key.name:r.key.value;if(Y(i,o))this.raiseRecoverable(r.key.start,"Duplicate attribute key '"+o+"'");i[o]=!0,e.push(r)}return e};f.parseImportAttribute=function(){var e=this.startNode();if(e.key=this.type===a.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(a.colon),this.type!==a.string)this.unexpected();return e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};f.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===a.string){var e=this.parseLiteral(this.value);if(Yt.test(e.value))this.raise(e.start,"An export name cannot include a lone surrogate.");return e}return this.parseIdent(!0)};f.adaptDirectivePrologue=function(e){for(var i=0;i<e.length&&this.isDirectiveCandidate(e[i]);++i)e[i].directive=e[i].expression.raw.slice(1,-1)};f.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value==="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var L=t.prototype;L.toAssignable=function(e,i,s){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":if(this.inAsync&&e.name==="await")this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(e.type="ObjectPattern",s)this.checkPatternErrors(s,!0);for(var r=0,o=e.properties;r<o.length;r+=1){var h=o[r];if(this.toAssignable(h,i),h.type==="RestElement"&&(h.argument.type==="ArrayPattern"||h.argument.type==="ObjectPattern"))this.raise(h.argument.start,"Unexpected token")}break;case"Property":if(e.kind!=="init")this.raise(e.key.start,"Object pattern can't contain getter or setter");this.toAssignable(e.value,i);break;case"ArrayExpression":if(e.type="ArrayPattern",s)this.checkPatternErrors(s,!0);this.toAssignableList(e.elements,i);break;case"SpreadElement":if(e.type="RestElement",this.toAssignable(e.argument,i),e.argument.type==="AssignmentPattern")this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(e.operator!=="=")this.raise(e.left.end,"Only '=' operator can be used for specifying default value.");e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,i);break;case"ParenthesizedExpression":this.toAssignable(e.expression,i,s);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!i)break;default:this.raise(e.start,"Assigning to rvalue")}else if(s)this.checkPatternErrors(s,!0);return e};L.toAssignableList=function(e,i){var s=e.length;for(var r=0;r<s;r++){var o=e[r];if(o)this.toAssignable(o,i)}if(s){var h=e[s-1];if(this.options.ecmaVersion===6&&i&&h&&h.type==="RestElement"&&h.argument.type!=="Identifier")this.unexpected(h.argument.start)}return e};L.parseSpread=function(e){var i=this.startNode();return this.next(),i.argument=this.parseMaybeAssign(!1,e),this.finishNode(i,"SpreadElement")};L.parseRestBinding=function(){var e=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==a.name)this.unexpected();return e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};L.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case a.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(a.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case a.braceL:return this.parseObj(!0)}return this.parseIdent()};L.parseBindingList=function(e,i,s,r){var o=[],h=!0;while(!this.eat(e)){if(h)h=!1;else this.expect(a.comma);if(i&&this.type===a.comma)o.push(null);else if(s&&this.afterTrailingComma(e))break;else if(this.type===a.ellipsis){var p=this.parseRestBinding();if(this.parseBindingListItem(p),o.push(p),this.type===a.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");this.expect(e);break}else o.push(this.parseAssignableListItem(r))}return o};L.parseAssignableListItem=function(e){var i=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(i),i};L.parseBindingListItem=function(e){return e};L.parseMaybeDefault=function(e,i,s){if(s=s||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(a.eq))return s;var r=this.startNodeAt(e,i);return r.left=s,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")};L.checkLValSimple=function(e,i,s){if(i===void 0)i=Z;var r=i!==Z;switch(e.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(e.name))this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode");if(r){if(i===V&&e.name==="let")this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name");if(s){if(Y(s,e.name))this.raiseRecoverable(e.start,"Argument name clash");s[e.name]=!0}if(i!==Vt)this.declareName(e.name,i,e.start)}break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(r)this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":if(r)this.raiseRecoverable(e.start,"Binding parenthesized expression");return this.checkLValSimple(e.expression,i,s);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}};L.checkLValPattern=function(e,i,s){if(i===void 0)i=Z;switch(e.type){case"ObjectPattern":for(var r=0,o=e.properties;r<o.length;r+=1){var h=o[r];this.checkLValInnerPattern(h,i,s)}break;case"ArrayPattern":for(var p=0,c=e.elements;p<c.length;p+=1){var u=c[p];if(u)this.checkLValInnerPattern(u,i,s)}break;default:this.checkLValSimple(e,i,s)}};L.checkLValInnerPattern=function(e,i,s){if(i===void 0)i=Z;switch(e.type){case"Property":this.checkLValInnerPattern(e.value,i,s);break;case"AssignmentPattern":this.checkLValPattern(e.left,i,s);break;case"RestElement":this.checkLValPattern(e.argument,i,s);break;default:this.checkLValPattern(e,i,s)}};var R=function(i,s,r,o,h){this.token=i,this.isExpr=!!s,this.preserveSpace=!!r,this.override=o,this.generator=!!h},w={b_stat:new R("{",!1),b_expr:new R("{",!0),b_tmpl:new R("${",!1),p_stat:new R("(",!1),p_expr:new R("(",!0),q_tmpl:new R("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new R("function",!1),f_expr:new R("function",!0),f_expr_gen:new R("function",!0,!1,null,!0),f_gen:new R("function",!1,!1,null,!0)},W=t.prototype;W.initialContext=function(){return[w.b_stat]};W.curContext=function(){return this.context[this.context.length-1]};W.braceIsBlock=function(e){var i=this.curContext();if(i===w.f_expr||i===w.f_stat)return!0;if(e===a.colon&&(i===w.b_stat||i===w.b_expr))return!i.isExpr;if(e===a._return||e===a.name&&this.exprAllowed)return T.test(this.input.slice(this.lastTokEnd,this.start));if(e===a._else||e===a.semi||e===a.eof||e===a.parenR||e===a.arrow)return!0;if(e===a.braceL)return i===w.b_stat;if(e===a._var||e===a._const||e===a.name)return!1;return!this.exprAllowed};W.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var i=this.context[e];if(i.token==="function")return i.generator}return!1};W.updateContext=function(e){var i,s=this.type;if(s.keyword&&e===a.dot)this.exprAllowed=!1;else if(i=s.updateContext)i.call(this,e);else this.exprAllowed=s.beforeExpr};W.overrideContext=function(e){if(this.curContext()!==e)this.context[this.context.length-1]=e};a.parenR.updateContext=a.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();if(e===w.b_stat&&this.curContext().token==="function")e=this.context.pop();this.exprAllowed=!e.isExpr};a.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?w.b_stat:w.b_expr),this.exprAllowed=!0};a.dollarBraceL.updateContext=function(){this.context.push(w.b_tmpl),this.exprAllowed=!0};a.parenL.updateContext=function(e){var i=e===a._if||e===a._for||e===a._with||e===a._while;this.context.push(i?w.p_stat:w.p_expr),this.exprAllowed=!0};a.incDec.updateContext=function(){};a._function.updateContext=a._class.updateContext=function(e){if(e.beforeExpr&&e!==a._else&&!(e===a.semi&&this.curContext()!==w.p_stat)&&!(e===a._return&&T.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===a.colon||e===a.braceL)&&this.curContext()===w.b_stat))this.context.push(w.f_expr);else this.context.push(w.f_stat);this.exprAllowed=!1};a.colon.updateContext=function(){if(this.curContext().token==="function")this.context.pop();this.exprAllowed=!0};a.backQuote.updateContext=function(){if(this.curContext()===w.q_tmpl)this.context.pop();else this.context.push(w.q_tmpl);this.exprAllowed=!1};a.star.updateContext=function(e){if(e===a._function){var i=this.context.length-1;if(this.context[i]===w.f_expr)this.context[i]=w.f_expr_gen;else this.context[i]=w.f_gen}this.exprAllowed=!0};a.name.updateContext=function(e){var i=!1;if(this.options.ecmaVersion>=6&&e!==a.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())i=!0}this.exprAllowed=i};var m=t.prototype;m.checkPropClash=function(e,i,s){if(this.options.ecmaVersion>=9&&e.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))return;var r=e.key,o;switch(r.type){case"Identifier":o=r.name;break;case"Literal":o=String(r.value);break;default:return}var h=e.kind;if(this.options.ecmaVersion>=6){if(o==="__proto__"&&h==="init"){if(i.proto)if(s){if(s.doubleProto<0)s.doubleProto=r.start}else this.raiseRecoverable(r.start,"Redefinition of __proto__ property");i.proto=!0}return}o="$"+o;var p=i[o];if(p){var c;if(h==="init")c=this.strict&&p.init||p.get||p.set;else c=p.init||p[h];if(c)this.raiseRecoverable(r.start,"Redefinition of property")}else p=i[o]={init:!1,get:!1,set:!1};p[h]=!0};m.parseExpression=function(e,i){var s=this;return this.catchStackOverflow(function(){var{start:r,startLoc:o}=s,h=s.parseMaybeAssign(e,i);if(s.type===a.comma){var p=s.startNodeAt(r,o);p.expressions=[h];while(s.eat(a.comma))p.expressions.push(s.parseMaybeAssign(e,i));return s.finishNode(p,"SequenceExpression")}return h})};m.parseMaybeAssign=function(e,i,s){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(e);else this.exprAllowed=!1;var r=!1,o=-1,h=-1,p=-1;if(i)o=i.parenthesizedAssign,h=i.trailingComma,p=i.doubleProto,i.parenthesizedAssign=i.trailingComma=-1;else i=new nt,r=!0;var c=this.start,u=this.startLoc;if(this.type===a.parenL||this.type===a.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await";var d=this.parseMaybeConditional(e,i);if(s)d=s.call(this,d,c,u);if(this.type.isAssign){var x=this.startNodeAt(c,u);if(x.operator=this.value,this.type===a.eq)d=this.toAssignable(d,!1,i);if(!r)i.parenthesizedAssign=i.trailingComma=i.doubleProto=-1;if(i.shorthandAssign>=d.start)i.shorthandAssign=-1;if(this.type===a.eq)this.checkLValPattern(d);else this.checkLValSimple(d);if(x.left=d,this.next(),x.right=this.parseMaybeAssign(e),p>-1)i.doubleProto=p;return this.finishNode(x,"AssignmentExpression")}else if(r)this.checkExpressionErrors(i,!0);if(o>-1)i.parenthesizedAssign=o;if(h>-1)i.trailingComma=h;return d};m.parseMaybeConditional=function(e,i){var s=this.start,r=this.startLoc,o=this.parseExprOps(e,i);if(this.checkExpressionErrors(i))return o;if(!(o.type==="ArrowFunctionExpression"&&o.start===s)&&this.eat(a.question)){var h=this.startNodeAt(s,r);return h.test=o,h.consequent=this.parseMaybeAssign(),this.expect(a.colon),h.alternate=this.parseMaybeAssign(e),this.finishNode(h,"ConditionalExpression")}return o};m.parseExprOps=function(e,i){var s=this.start,r=this.startLoc,o=this.parseMaybeUnary(i,!1,!1,e);if(this.checkExpressionErrors(i))return o;return o.start===s&&o.type==="ArrowFunctionExpression"?o:this.parseExprOp(o,s,r,-1,e)};m.parseExprOp=function(e,i,s,r,o){var h=this.type.binop;if(h!=null&&(!o||this.type!==a._in)){if(h>r){var p=this.type===a.logicalOR||this.type===a.logicalAND,c=this.type===a.coalesce;if(c)h=a.logicalAND.binop;var u=this.value;this.next();var d=this.start,x=this.startLoc,g=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,o),d,x,h,o),A=this.buildBinary(i,s,e,g,u,p||c);if(p&&this.type===a.coalesce||c&&(this.type===a.logicalOR||this.type===a.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(A,i,s,r,o)}}return e};m.buildBinary=function(e,i,s,r,o,h){if(r.type==="PrivateIdentifier")this.raise(r.start,"Private identifier can only be left side of binary expression");var p=this.startNodeAt(e,i);return p.left=s,p.operator=o,p.right=r,this.finishNode(p,h?"LogicalExpression":"BinaryExpression")};m.parseMaybeUnary=function(e,i,s,r){var o=this.start,h=this.startLoc,p;if(this.isContextual("await")&&this.canAwait)p=this.parseAwait(r),i=!0;else if(this.type.prefix){var c=this.startNode(),u=this.type===a.incDec;if(c.operator=this.value,c.prefix=!0,this.next(),c.argument=this.parseMaybeUnary(null,!0,u,r),this.checkExpressionErrors(e,!0),u)this.checkLValSimple(c.argument);else if(this.strict&&c.operator==="delete"&&Ot(c.argument))this.raiseRecoverable(c.start,"Deleting local variable in strict mode");else if(c.operator==="delete"&&ut(c.argument))this.raiseRecoverable(c.start,"Private fields can not be deleted");else i=!0;p=this.finishNode(c,u?"UpdateExpression":"UnaryExpression")}else if(!i&&this.type===a.privateId){if((r||this.privateNameStack.length===0)&&this.options.checkPrivateFields)this.unexpected();if(p=this.parsePrivateIdent(),this.type!==a._in)this.unexpected()}else{if(p=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return p;while(this.type.postfix&&!this.canInsertSemicolon()){var d=this.startNodeAt(o,h);d.operator=this.value,d.prefix=!1,d.argument=p,this.checkLValSimple(p),this.next(),p=this.finishNode(d,"UpdateExpression")}}if(!s&&!(p.type==="ArrowFunctionExpression"&&p.start===o)&&this.eat(a.starstar))if(i)this.unexpected(this.lastTokStart);else return this.buildBinary(o,h,p,this.parseMaybeUnary(null,!1,!1,r),"**",!1);else return p};function Ot(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Ot(e.expression)}function ut(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&ut(e.expression)||e.type==="ParenthesizedExpression"&&ut(e.expression)}m.parseExprSubscripts=function(e,i){var s=this.start,r=this.startLoc,o=this.parseExprAtom(e,i);if(o.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return o;var h=this.parseSubscripts(o,s,r,!1,i);if(e&&h.type==="MemberExpression"){if(e.parenthesizedAssign>=h.start)e.parenthesizedAssign=-1;if(e.parenthesizedBind>=h.start)e.parenthesizedBind=-1;if(e.trailingComma>=h.start)e.trailingComma=-1}return h};m.parseSubscripts=function(e,i,s,r,o){var h=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,p=!1;while(!0){var c=this.parseSubscript(e,i,s,r,h,p,o);if(c.optional)p=!0;if(c===e||c.type==="ArrowFunctionExpression"){if(p){var u=this.startNodeAt(i,s);u.expression=c,c=this.finishNode(u,"ChainExpression")}return c}e=c}};m.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(a.arrow)};m.parseSubscriptAsyncArrow=function(e,i,s,r){return this.parseArrowExpression(this.startNodeAt(e,i),s,!0,r)};m.parseSubscript=function(e,i,s,r,o,h,p){var c=this.options.ecmaVersion>=11,u=c&&this.eat(a.questionDot);if(r&&u)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var d=this.eat(a.bracketL);if(d||u&&this.type!==a.parenL&&this.type!==a.backQuote||this.eat(a.dot)){var x=this.startNodeAt(i,s);if(x.object=e,d)x.property=this.parseExpression(),this.expect(a.bracketR);else if(this.type===a.privateId&&e.type!=="Super")x.property=this.parsePrivateIdent();else x.property=this.parseIdent(this.options.allowReserved!=="never");if(x.computed=!!d,c)x.optional=u;e=this.finishNode(x,"MemberExpression")}else if(!r&&this.eat(a.parenL)){var g=new nt,A=this.yieldPos,j=this.awaitPos,D=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var X=this.parseExprList(a.parenR,this.options.ecmaVersion>=8,!1,g);if(o&&!u&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(g,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=A,this.awaitPos=j,this.awaitIdentPos=D,this.parseSubscriptAsyncArrow(i,s,X,p)}this.checkExpressionErrors(g,!0),this.yieldPos=A||this.yieldPos,this.awaitPos=j||this.awaitPos,this.awaitIdentPos=D||this.awaitIdentPos;var U=this.startNodeAt(i,s);if(U.callee=e,U.arguments=X,c)U.optional=u;e=this.finishNode(U,"CallExpression")}else if(this.type===a.backQuote){if(u||h)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var q=this.startNodeAt(i,s);q.tag=e,q.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(q,"TaggedTemplateExpression")}return e};m.parseExprAtom=function(e,i,s){if(this.type===a.slash)this.readRegexp();var r,o=this.potentialArrowAt===this.start;switch(this.type){case a._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(r=this.startNode(),this.next(),this.type===a.parenL&&!this.allowDirectSuper)this.raise(r.start,"super() call outside constructor of a subclass");if(this.type!==a.dot&&this.type!==a.bracketL&&this.type!==a.parenL)this.unexpected();return this.finishNode(r,"Super");case a._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case a.name:var h=this.start,p=this.startLoc,c=this.containsEsc,u=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!c&&u.name==="async"&&!this.canInsertSemicolon()&&this.eat(a._function))return this.overrideContext(w.f_expr),this.parseFunction(this.startNodeAt(h,p),0,!1,!0,i);if(o&&!this.canInsertSemicolon()){if(this.eat(a.arrow))return this.parseArrowExpression(this.startNodeAt(h,p),[u],!1,i);if(this.options.ecmaVersion>=8&&u.name==="async"&&this.type===a.name&&!c&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(u=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(a.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(h,p),[u],!0,i)}}return u;case a.regexp:var d=this.value;return r=this.parseLiteral(d.value),r.regex={pattern:d.pattern,flags:d.flags},r;case a.num:case a.string:return this.parseLiteral(this.value);case a._null:case a._true:case a._false:return r=this.startNode(),r.value=this.type===a._null?null:this.type===a._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case a.parenL:var x=this.start,g=this.parseParenAndDistinguishExpression(o,i);if(e){if(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(g))e.parenthesizedAssign=x;if(e.parenthesizedBind<0)e.parenthesizedBind=x}return g;case a.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(a.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case a.braceL:return this.overrideContext(w.b_expr),this.parseObj(!1,e);case a._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case a._class:return this.parseClass(this.startNode(),!1);case a._new:return this.parseNew();case a.backQuote:return this.parseTemplate();case a._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(s);else return this.unexpected();default:return this.parseExprAtomDefault()}};m.parseExprAtomDefault=function(){this.unexpected()};m.parseExprImport=function(e){var i=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");if(this.next(),this.type===a.parenL&&!e)return this.parseDynamicImport(i);else if(this.type===a.dot){var s=this.startNodeAt(i.start,i.loc&&i.loc.start);return s.name="import",i.meta=this.finishNode(s,"Identifier"),this.parseImportMeta(i)}else this.unexpected()};m.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)if(!this.eat(a.parenR))if(this.expect(a.comma),!this.afterTrailingComma(a.parenR)){if(e.options=this.parseMaybeAssign(),!this.eat(a.parenR)){if(this.expect(a.comma),!this.afterTrailingComma(a.parenR))this.unexpected()}}else e.options=null;else e.options=null;else if(!this.eat(a.parenR)){var i=this.start;if(this.eat(a.comma)&&this.eat(a.parenR))this.raiseRecoverable(i,"Trailing comma is not allowed in import()");else this.unexpected(i)}return this.finishNode(e,"ImportExpression")};m.parseImportMeta=function(e){this.next();var i=this.containsEsc;if(e.property=this.parseIdent(!0),e.property.name!=="meta")this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'");if(i)this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module");return this.finishNode(e,"MetaProperty")};m.parseLiteral=function(e){var i=this.startNode();if(i.value=e,i.raw=this.input.slice(this.start,this.end),i.raw.charCodeAt(i.raw.length-1)===110)i.bigint=i.value!=null?i.value.toString():i.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(i,"Literal")};m.parseParenExpression=function(){this.expect(a.parenL);var e=this.parseExpression();return this.expect(a.parenR),e};m.shouldParseArrow=function(e){return!this.canInsertSemicolon()};m.parseParenAndDistinguishExpression=function(e,i){var s=this.start,r=this.startLoc,o,h=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var p=this.start,c=this.startLoc,u=[],d=!0,x=!1,g=new nt,A=this.yieldPos,j=this.awaitPos,D;this.yieldPos=0,this.awaitPos=0;while(this.type!==a.parenR)if(d?d=!1:this.expect(a.comma),h&&this.afterTrailingComma(a.parenR,!0)){x=!0;break}else if(this.type===a.ellipsis){if(D=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===a.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else u.push(this.parseMaybeAssign(!1,g,this.parseParenItem));var X=this.lastTokEnd,U=this.lastTokEndLoc;if(this.expect(a.parenR),e&&this.shouldParseArrow(u)&&this.eat(a.arrow))return this.checkPatternErrors(g,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=A,this.awaitPos=j,this.parseParenArrowList(s,r,u,i);if(!u.length||x)this.unexpected(this.lastTokStart);if(D)this.unexpected(D);if(this.checkExpressionErrors(g,!0),this.yieldPos=A||this.yieldPos,this.awaitPos=j||this.awaitPos,u.length>1)o=this.startNodeAt(p,c),o.expressions=u,this.finishNodeAt(o,"SequenceExpression",X,U);else o=u[0]}else o=this.parseParenExpression();if(this.options.preserveParens){var q=this.startNodeAt(s,r);return q.expression=o,this.finishNode(q,"ParenthesizedExpression")}else return o};m.parseParenItem=function(e){return e};m.parseParenArrowList=function(e,i,s,r){return this.parseArrowExpression(this.startNodeAt(e,i),s,!1,r)};var te=[];m.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===a.dot){var i=this.startNodeAt(e.start,e.loc&&e.loc.start);i.name="new",e.meta=this.finishNode(i,"Identifier"),this.next();var s=this.containsEsc;if(e.property=this.parseIdent(!0),e.property.name!=="target")this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'");if(s)this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block");return this.finishNode(e,"MetaProperty")}var r=this.start,o=this.startLoc;if(e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,o,!0,!1),e.callee.type==="Super")this.raiseRecoverable(r,"Invalid use of 'super'");if(this.eat(a.parenL))e.arguments=this.parseExprList(a.parenR,this.options.ecmaVersion>=8,!1);else e.arguments=te;return this.finishNode(e,"NewExpression")};m.parseTemplateElement=function(e){var i=e.isTagged,s=this.startNode();if(this.type===a.invalidTemplate){if(!i)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");s.value={raw:this.value.replace(/\r\n?/g,`
4
4
  `),cooked:null}}else s.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
5
- `),cooked:this.value};return this.next(),s.tail=this.type===o.backQuote,this.finishNode(s,"TemplateElement")};m.parseTemplate=function(e){if(e===void 0)e={};var i=e.isTagged;if(i===void 0)i=!1;var s=this.startNode();this.next(),s.expressions=[];var n=this.parseTemplateElement({isTagged:i});s.quasis=[n];while(!n.tail){if(this.type===o.eof)this.raise(this.pos,"Unterminated template literal");this.expect(o.dollarBraceL),s.expressions.push(this.parseExpression()),this.expect(o.braceR),s.quasis.push(n=this.parseTemplateElement({isTagged:i}))}return this.next(),this.finishNode(s,"TemplateLiteral")};m.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===o.name||this.type===o.num||this.type===o.string||this.type===o.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===o.star)&&!T.test(this.input.slice(this.lastTokEnd,this.start))};m.parseObj=function(e,i){var s=this.startNode(),n=!0,h={};s.properties=[],this.next();while(!this.eat(o.braceR)){if(!n){if(this.expect(o.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(o.braceR))break}else n=!1;var p=this.parseProperty(e,i);if(!e)this.checkPropClash(p,h,i);s.properties.push(p)}return this.finishNode(s,e?"ObjectPattern":"ObjectExpression")};m.parseProperty=function(e,i){var s=this.startNode(),n,h,p,l;if(this.options.ecmaVersion>=9&&this.eat(o.ellipsis)){if(e){if(s.argument=this.parseIdent(!1),this.type===o.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");return this.finishNode(s,"RestElement")}if(s.argument=this.parseMaybeAssign(!1,i),this.type===o.comma&&i&&i.trailingComma<0)i.trailingComma=this.start;return this.finishNode(s,"SpreadElement")}if(this.options.ecmaVersion>=6){if(s.method=!1,s.shorthand=!1,e||i)p=this.start,l=this.startLoc;if(!e)n=this.eat(o.star)}var c=this.containsEsc;if(this.parsePropertyName(s),!e&&!c&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(s))h=!0,n=this.options.ecmaVersion>=9&&this.eat(o.star),this.parsePropertyName(s);else h=!1;return this.parsePropertyValue(s,e,n,h,p,l,i,c),this.finishNode(s,"Property")};m.parseGetterSetter=function(e){var i=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=i;var s=e.kind==="get"?0:1;if(e.value.params.length!==s){var n=e.value.start;if(e.kind==="get")this.raiseRecoverable(n,"getter should have no params");else this.raiseRecoverable(n,"setter should have exactly one param")}else if(e.kind==="set"&&e.value.params[0].type==="RestElement")this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};m.parsePropertyValue=function(e,i,s,n,h,p,l,c){if((s||n)&&this.type===o.colon)this.unexpected();if(this.eat(o.colon))e.value=i?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,l),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===o.parenL){if(i)this.unexpected();e.method=!0,e.value=this.parseMethod(s,n),e.kind="init"}else if(!i&&!c&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&(this.type!==o.comma&&this.type!==o.braceR&&this.type!==o.eq)){if(s||n)this.unexpected();this.parseGetterSetter(e)}else if(this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"){if(s||n)this.unexpected();if(this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=h;if(i)e.value=this.parseMaybeDefault(h,p,this.copyNode(e.key));else if(this.type===o.eq&&l){if(l.shorthandAssign<0)l.shorthandAssign=this.start;e.value=this.parseMaybeDefault(h,p,this.copyNode(e.key))}else e.value=this.copyNode(e.key);e.kind="init",e.shorthand=!0}else this.unexpected()};m.parsePropertyName=function(e){if(this.options.ecmaVersion>=6)if(this.eat(o.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(o.bracketR),e.key;else e.computed=!1;return e.key=this.type===o.num||this.type===o.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};m.initFunction=function(e){if(e.id=null,this.options.ecmaVersion>=6)e.generator=e.expression=!1;if(this.options.ecmaVersion>=8)e.async=!1};m.parseMethod=function(e,i,s){var n=this.startNode(),h=this.yieldPos,p=this.awaitPos,l=this.awaitIdentPos;if(this.initFunction(n),this.options.ecmaVersion>=6)n.generator=e;if(this.options.ecmaVersion>=8)n.async=!!i;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(vt(i,n.generator)|rt|(s?It:0)),this.expect(o.parenL),n.params=this.parseBindingList(o.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=h,this.awaitPos=p,this.awaitIdentPos=l,this.finishNode(n,"FunctionExpression")};m.parseArrowExpression=function(e,i,s,n){var h=this.yieldPos,p=this.awaitPos,l=this.awaitIdentPos;if(this.enterScope(vt(s,!1)|mt),this.initFunction(e),this.options.ecmaVersion>=8)e.async=!!s;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(i,!0),this.parseFunctionBody(e,!0,!1,n),this.yieldPos=h,this.awaitPos=p,this.awaitIdentPos=l,this.finishNode(e,"ArrowFunctionExpression")};m.parseFunctionBody=function(e,i,s,n){var h=i&&this.type!==o.braceL,p=this.strict,l=!1;if(h)e.body=this.parseMaybeAssign(n),e.expression=!0,this.checkParams(e,!1);else{var c=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);if(!p||c){if(l=this.strictDirective(this.end),l&&c)this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var u=this.labels;if(this.labels=[],l)this.strict=!0;if(this.checkParams(e,!p&&!l&&!i&&!s&&this.isSimpleParamList(e.params)),this.strict&&e.id)this.checkLValSimple(e.id,Vt);e.body=this.parseBlock(!1,void 0,l&&!p),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()};m.isSimpleParamList=function(e){for(var i=0,s=e;i<s.length;i+=1){var n=s[i];if(n.type!=="Identifier")return!1}return!0};m.checkParams=function(e,i){var s=Object.create(null);for(var n=0,h=e.params;n<h.length;n+=1){var p=h[n];this.checkLValInnerPattern(p,xt,i?null:s)}};m.parseExprList=function(e,i,s,n){var h=[],p=!0;while(!this.eat(e)){if(!p){if(this.expect(o.comma),i&&this.afterTrailingComma(e))break}else p=!1;var l=void 0;if(s&&this.type===o.comma)l=null;else if(this.type===o.ellipsis){if(l=this.parseSpread(n),n&&this.type===o.comma&&n.trailingComma<0)n.trailingComma=this.start}else l=this.parseMaybeAssign(!1,n);h.push(l)}return h};m.checkUnreserved=function(e){var{start:i,end:s,name:n}=e;if(this.inGenerator&&n==="yield")this.raiseRecoverable(i,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&n==="await")this.raiseRecoverable(i,"Cannot use 'await' as identifier inside an async function");if(!(this.currentThisScope().flags&at)&&n==="arguments")this.raiseRecoverable(i,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(n==="arguments"||n==="await"))this.raise(i,"Cannot use "+n+" in class static initialization block");if(this.keywords.test(n))this.raise(i,"Unexpected keyword '"+n+"'");if(this.options.ecmaVersion<6&&this.input.slice(i,s).indexOf("\\")!==-1)return;var h=this.strict?this.reservedWordsStrict:this.reservedWords;if(h.test(n)){if(!this.inAsync&&n==="await")this.raiseRecoverable(i,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(i,"The keyword '"+n+"' is reserved")}};m.parseIdent=function(e){var i=this.parseIdentNode();if(this.next(!!e),this.finishNode(i,"Identifier"),!e){if(this.checkUnreserved(i),i.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=i.start}return i};m.parseIdentNode=function(){var e=this.startNode();if(this.type===o.name)e.name=this.value;else if(this.type.keyword){if(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop();this.type=o.name}else this.unexpected();return e};m.parsePrivateIdent=function(){var e=this.startNode();if(this.type===o.privateId)e.name=this.value;else this.unexpected();if(this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields)if(this.privateNameStack.length===0)this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(e);return e};m.parseYield=function(e){if(!this.yieldPos)this.yieldPos=this.start;var i=this.startNode();if(this.next(),this.type===o.semi||this.canInsertSemicolon()||this.type!==o.star&&!this.type.startsExpr)i.delegate=!1,i.argument=null;else i.delegate=this.eat(o.star),i.argument=this.parseMaybeAssign(e);return this.finishNode(i,"YieldExpression")};m.parseAwait=function(e){if(!this.awaitPos)this.awaitPos=this.start;var i=this.startNode();return this.next(),i.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(i,"AwaitExpression")};var et=t.prototype;et.raise=function(e,i){var s=Et(this.input,e);if(i+=" ("+s.line+":"+s.column+")",this.sourceFile)i+=" in "+this.sourceFile;var n=SyntaxError(i);throw n.pos=e,n.loc=s,n.raisedAt=this.pos,n};et.raiseRecoverable=et.raise;et.curPosition=function(){if(this.options.locations)return new H(this.curLine,this.pos-this.lineStart)};var F=t.prototype,ee=function(i){this.flags=i,this.var=[],this.lexical=[],this.functions=[]};F.enterScope=function(e){this.scopeStack.push(new ee(e))};F.exitScope=function(){this.scopeStack.pop()};F.treatFunctionsAsVarInScope=function(e){return e.flags&B||!this.inModule&&e.flags&O};F.declareName=function(e,i,s){var n=!1;if(i===V){var h=this.currentScope();if(n=h.lexical.indexOf(e)>-1||h.functions.indexOf(e)>-1||h.var.indexOf(e)>-1,h.lexical.push(e),this.inModule&&h.flags&O)delete this.undefinedExports[e]}else if(i===Rt){var p=this.currentScope();p.lexical.push(e)}else if(i===Lt){var l=this.currentScope();if(this.treatFunctionsAsVar)n=l.lexical.indexOf(e)>-1;else n=l.lexical.indexOf(e)>-1||l.var.indexOf(e)>-1;l.functions.push(e)}else for(var c=this.scopeStack.length-1;c>=0;--c){var u=this.scopeStack[c];if(u.lexical.indexOf(e)>-1&&!(u.flags&Pt&&u.lexical[0]===e)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(e)>-1){n=!0;break}if(u.var.push(e),this.inModule&&u.flags&O)delete this.undefinedExports[e];if(u.flags&at)break}if(n)this.raiseRecoverable(s,"Identifier '"+e+"' has already been declared")};F.checkLocalExport=function(e){if(this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1)this.undefinedExports[e.name]=e};F.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};F.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var i=this.scopeStack[e];if(i.flags&(at|Q|M))return i}};F.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var i=this.scopeStack[e];if(i.flags&(at|Q|M)&&!(i.flags&mt))return i}};var ot=function(i,s,n){if(this.type="",this.start=s,this.end=0,i.options.locations)this.loc=new st(i,n);if(i.options.directSourceFile)this.sourceFile=i.options.directSourceFile;if(i.options.ranges)this.range=[s,0]},K=t.prototype;K.startNode=function(){return new ot(this,this.start,this.startLoc)};K.startNodeAt=function(e,i){return new ot(this,e,i)};function Bt(e,i,s,n){if(e.type=i,e.end=s,this.options.locations)e.loc.end=n;if(this.options.ranges)e.range[1]=s;return e}K.finishNode=function(e,i){return Bt.call(this,e,i,this.lastTokEnd,this.lastTokEndLoc)};K.finishNodeAt=function(e,i,s,n){return Bt.call(this,e,i,s,n)};K.copyNode=function(e){var i=new ot(this,e.start,this.startLoc);for(var s in e)i[s]=e[s];return i};var Mt=function(){};Mt.prototype.reset=function(){};t.prototype.validateRegExpFlags=function(){};t.prototype.validateRegExpPattern=function(){};var bt=function(i){if(this.type=i.type,this.value=i.value,this.start=i.start,this.end=i.end,i.options.locations)this.loc=new st(i,i.startLoc,i.endLoc);if(i.options.ranges)this.range=[i.start,i.end]},y=t.prototype;y.next=function(e){if(!e&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new bt(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};y.getToken=function(){return this.next(),new bt(this)};if(typeof Symbol<"u")y[Symbol.iterator]=function(){var e=this;return{next:function(){var i=e.getToken();return{done:i.type===o.eof,value:i}}}};y.nextToken=function(){var e=this.curContext();if(!e||!e.preserveSpace)this.skipSpace();if(this.start=this.pos,this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(o.eof);if(e.override)return e.override(this);else this.readToken(this.fullCharCodeAtPos())};y.readToken=function(e){if(r(e,this.options.ecmaVersion>=6)||e===92)return this.readWord();return this.getTokenFromCode(e)};y.fullCharCodeAt=function(e){var i=this.input.charCodeAt(e);if(i<=55295||i>=56320)return i;var s=this.input.charCodeAt(e+1);return s<=56319||s>=57344?i:(i<<10)+s-56613888};y.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};y.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),i=this.pos,s=this.input.indexOf("*/",this.pos+=2);if(s===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=s+2,this.options.locations)for(var n=void 0,h=i;(n=Ct(this.input,h,this.pos))>-1;)++this.curLine,h=this.lineStart=n;if(this.options.onComment)this.options.onComment(!0,this.input.slice(i+2,s),i,this.pos,e,this.curPosition())};y.skipLineComment=function(e){var i=this.pos,s=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);while(this.pos<this.input.length&&!z(n))n=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(i+e,this.pos),i,this.pos,s,this.curPosition())};y.skipSpace=function(){t:while(this.pos<this.input.length){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10)++this.pos;case 10:case 8232:case 8233:if(++this.pos,this.options.locations)++this.curLine,this.lineStart=this.pos;break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(e>8&&e<14||e>=5760&&At.test(String.fromCharCode(e)))++this.pos;else break t}}};y.finishToken=function(e,i){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var s=this.type;this.type=e,this.value=i,this.updateContext(s)};y.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var i=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&e===46&&i===46)return this.pos+=3,this.finishToken(o.ellipsis);else return++this.pos,this.finishToken(o.dot)};y.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(e===61)return this.finishOp(o.assign,2);return this.finishOp(o.slash,1)};y.readToken_mult_modulo_exp=function(e){var i=this.input.charCodeAt(this.pos+1),s=1,n=e===42?o.star:o.modulo;if(this.options.ecmaVersion>=7&&e===42&&i===42)++s,n=o.starstar,i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(o.assign,s+1);return this.finishOp(n,s)};y.readToken_pipe_amp=function(e){var i=this.input.charCodeAt(this.pos+1);if(i===e){if(this.options.ecmaVersion>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(o.assign,3)}return this.finishOp(e===124?o.logicalOR:o.logicalAND,2)}if(i===61)return this.finishOp(o.assign,2);return this.finishOp(e===124?o.bitwiseOR:o.bitwiseAND,1)};y.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);if(e===61)return this.finishOp(o.assign,2);return this.finishOp(o.bitwiseXOR,1)};y.readToken_plus_min=function(e){var i=this.input.charCodeAt(this.pos+1);if(i===e){if(i===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||T.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(o.incDec,2)}if(i===61)return this.finishOp(o.assign,2);return this.finishOp(o.plusMin,1)};y.readToken_lt_gt=function(e){var i=this.input.charCodeAt(this.pos+1),s=1;if(i===e){if(s=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+s)===61)return this.finishOp(o.assign,s+1);return this.finishOp(o.bitShift,s)}if(i===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45)return this.skipLineComment(4),this.skipSpace(),this.nextToken();if(i===61)s=2;return this.finishOp(o.relational,s)};y.readToken_eq_excl=function(e){var i=this.input.charCodeAt(this.pos+1);if(i===61)return this.finishOp(o.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(e===61&&i===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(o.arrow);return this.finishOp(e===61?o.eq:o.prefix,1)};y.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var i=this.input.charCodeAt(this.pos+1);if(i===46){var s=this.input.charCodeAt(this.pos+2);if(s<48||s>57)return this.finishOp(o.questionDot,2)}if(i===63){if(e>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(o.assign,3)}return this.finishOp(o.coalesce,2)}}return this.finishOp(o.question,1)};y.readToken_numberSign=function(){var e=this.options.ecmaVersion,i=35;if(e>=13){if(++this.pos,i=this.fullCharCodeAtPos(),r(i,!0)||i===92)return this.finishToken(o.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+it(i)+"'")};y.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(o.parenL);case 41:return++this.pos,this.finishToken(o.parenR);case 59:return++this.pos,this.finishToken(o.semi);case 44:return++this.pos,this.finishToken(o.comma);case 91:return++this.pos,this.finishToken(o.bracketL);case 93:return++this.pos,this.finishToken(o.bracketR);case 123:return++this.pos,this.finishToken(o.braceL);case 125:return++this.pos,this.finishToken(o.braceR);case 58:return++this.pos,this.finishToken(o.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(o.backQuote);case 48:var i=this.input.charCodeAt(this.pos+1);if(i===120||i===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(i===111||i===79)return this.readRadixNumber(8);if(i===98||i===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(o.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+it(e)+"'")};y.finishOp=function(e,i){var s=this.input.slice(this.pos,this.pos+i);return this.pos+=i,this.finishToken(e,s)};y.readRegexp=function(){var e,i,s=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(s,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(T.test(n))this.raise(s,"Unterminated regular expression");if(!e){if(n==="[")i=!0;else if(n==="]"&&i)i=!1;else if(n==="/"&&!i)break;e=n==="\\"}else e=!1;++this.pos}var h=this.input.slice(s,this.pos);++this.pos;var p=this.pos,l=this.readWord1();if(this.containsEsc)this.unexpected(p);var c=this.regexpState||(this.regexpState=new Mt(this));c.reset(s,h,l),this.validateRegExpFlags(c),this.validateRegExpPattern(c);var u=null;try{u=new RegExp(h,l)}catch(d){}return this.finishToken(o.regexp,{pattern:h,flags:l,value:u})};y.readInt=function(e,i,s){var n=this.options.ecmaVersion>=12&&i===void 0,h=s&&this.input.charCodeAt(this.pos)===48,p=this.pos,l=0,c=0;for(var u=0,d=i==null?1/0:i;u<d;++u,++this.pos){var x=this.input.charCodeAt(this.pos),w=void 0;if(n&&x===95){if(h)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(c===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(u===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");c=x;continue}if(x>=97)w=x-97+10;else if(x>=65)w=x-65+10;else if(x>=48&&x<=57)w=x-48;else w=1/0;if(w>=e)break;c=x,l=l*e+w}if(n&&c===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===p||i!=null&&this.pos-p!==i)return null;return l};function ie(e,i){if(i)return parseInt(e,8);return parseFloat(e.replace(/_/g,""))}function Dt(e){if(typeof BigInt!=="function")return null;return BigInt(e.replace(/_/g,""))}y.readRadixNumber=function(e){var i=this.pos;this.pos+=2;var s=this.readInt(e);if(s==null)this.raise(this.start+2,"Expected number in radix "+e);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)s=Dt(this.input.slice(i,this.pos)),++this.pos;else if(r(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(o.num,s)};y.readNumber=function(e){var i=this.pos;if(!e&&this.readInt(10,void 0,!0)===null)this.raise(i,"Invalid number");var s=this.pos-i>=2&&this.input.charCodeAt(i)===48;if(s&&this.strict)this.raise(i,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!s&&!e&&this.options.ecmaVersion>=11&&n===110){var h=Dt(this.input.slice(i,this.pos));if(++this.pos,r(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(o.num,h)}if(s&&/[89]/.test(this.input.slice(i,this.pos)))s=!1;if(n===46&&!s)++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos);if((n===69||n===101)&&!s){if(n=this.input.charCodeAt(++this.pos),n===43||n===45)++this.pos;if(this.readInt(10)===null)this.raise(i,"Invalid number")}if(r(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var p=ie(this.input.slice(i,this.pos),s);return this.finishToken(o.num,p)};y.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),i;if(e===123){if(this.options.ecmaVersion<6)this.unexpected();var s=++this.pos;if(i=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,i>1114111)this.invalidStringToken(s,"Code point out of bounds")}else i=this.readHexChar(4);return i};y.readString=function(e){var i="",s=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;if(n===92)i+=this.input.slice(s,this.pos),i+=this.readEscapedChar(!1),s=this.pos;else if(n===8232||n===8233){if(this.options.ecmaVersion<10)this.raise(this.start,"Unterminated string constant");if(++this.pos,this.options.locations)this.curLine++,this.lineStart=this.pos}else{if(z(n))this.raise(this.start,"Unterminated string constant");++this.pos}}return i+=this.input.slice(s,this.pos++),this.finishToken(o.string,i)};var Ut={};y.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Ut)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};y.invalidStringToken=function(e,i){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ut;else this.raise(e,i)};y.readTmplToken=function(){var e="",i=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var s=this.input.charCodeAt(this.pos);if(s===96||s===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===o.template||this.type===o.invalidTemplate))if(s===36)return this.pos+=2,this.finishToken(o.dollarBraceL);else return++this.pos,this.finishToken(o.backQuote);return e+=this.input.slice(i,this.pos),this.finishToken(o.template,e)}if(s===92)e+=this.input.slice(i,this.pos),e+=this.readEscapedChar(!0),i=this.pos;else if(z(s)){switch(e+=this.input.slice(i,this.pos),++this.pos,s){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:e+=`
6
- `;break;default:e+=String.fromCharCode(s);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;i=this.pos}else++this.pos}};y.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(o.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":if(this.input[this.pos+1]===`
5
+ `),cooked:this.value};return this.next(),s.tail=this.type===a.backQuote,this.finishNode(s,"TemplateElement")};m.parseTemplate=function(e){if(e===void 0)e={};var i=e.isTagged;if(i===void 0)i=!1;var s=this.startNode();this.next(),s.expressions=[];var r=this.parseTemplateElement({isTagged:i});s.quasis=[r];while(!r.tail){if(this.type===a.eof)this.raise(this.pos,"Unterminated template literal");this.expect(a.dollarBraceL),s.expressions.push(this.parseExpression()),this.expect(a.braceR),s.quasis.push(r=this.parseTemplateElement({isTagged:i}))}return this.next(),this.finishNode(s,"TemplateLiteral")};m.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===a.name||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===a.star)&&!T.test(this.input.slice(this.lastTokEnd,this.start))};m.parseObj=function(e,i){var s=this.startNode(),r=!0,o={};s.properties=[],this.next();while(!this.eat(a.braceR)){if(!r){if(this.expect(a.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(a.braceR))break}else r=!1;var h=this.parseProperty(e,i);if(!e)this.checkPropClash(h,o,i);s.properties.push(h)}return this.finishNode(s,e?"ObjectPattern":"ObjectExpression")};m.parseProperty=function(e,i){var s=this.startNode(),r,o,h,p;if(this.options.ecmaVersion>=9&&this.eat(a.ellipsis)){if(e){if(s.argument=this.parseIdent(!1),this.type===a.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");return this.finishNode(s,"RestElement")}if(s.argument=this.parseMaybeAssign(!1,i),this.type===a.comma&&i&&i.trailingComma<0)i.trailingComma=this.start;return this.finishNode(s,"SpreadElement")}if(this.options.ecmaVersion>=6){if(s.method=!1,s.shorthand=!1,e||i)h=this.start,p=this.startLoc;if(!e)r=this.eat(a.star)}var c=this.containsEsc;if(this.parsePropertyName(s),!e&&!c&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(s))o=!0,r=this.options.ecmaVersion>=9&&this.eat(a.star),this.parsePropertyName(s);else o=!1;return this.parsePropertyValue(s,e,r,o,h,p,i,c),this.finishNode(s,"Property")};m.parseGetterSetter=function(e){var i=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=i;var s=e.kind==="get"?0:1;if(e.value.params.length!==s){var r=e.value.start;if(e.kind==="get")this.raiseRecoverable(r,"getter should have no params");else this.raiseRecoverable(r,"setter should have exactly one param")}else if(e.kind==="set"&&e.value.params[0].type==="RestElement")this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};m.parsePropertyValue=function(e,i,s,r,o,h,p,c){if((s||r)&&this.type===a.colon)this.unexpected();if(this.eat(a.colon))e.value=i?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,p),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===a.parenL){if(i)this.unexpected();e.method=!0,e.value=this.parseMethod(s,r),e.kind="init"}else if(!i&&!c&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&(this.type!==a.comma&&this.type!==a.braceR&&this.type!==a.eq)){if(s||r)this.unexpected();this.parseGetterSetter(e)}else if(this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"){if(s||r)this.unexpected();if(this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=o;if(i)e.value=this.parseMaybeDefault(o,h,this.copyNode(e.key));else if(this.type===a.eq&&p){if(p.shorthandAssign<0)p.shorthandAssign=this.start;e.value=this.parseMaybeDefault(o,h,this.copyNode(e.key))}else e.value=this.copyNode(e.key);e.kind="init",e.shorthand=!0}else this.unexpected()};m.parsePropertyName=function(e){if(this.options.ecmaVersion>=6)if(this.eat(a.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(a.bracketR),e.key;else e.computed=!1;return e.key=this.type===a.num||this.type===a.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};m.initFunction=function(e){if(e.id=null,this.options.ecmaVersion>=6)e.generator=e.expression=!1;if(this.options.ecmaVersion>=8)e.async=!1};m.parseMethod=function(e,i,s){var r=this.startNode(),o=this.yieldPos,h=this.awaitPos,p=this.awaitIdentPos;if(this.initFunction(r),this.options.ecmaVersion>=6)r.generator=e;if(this.options.ecmaVersion>=8)r.async=!!i;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(vt(i,r.generator)|rt|(s?It:0)),this.expect(a.parenL),r.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=o,this.awaitPos=h,this.awaitIdentPos=p,this.finishNode(r,"FunctionExpression")};m.parseArrowExpression=function(e,i,s,r){var o=this.yieldPos,h=this.awaitPos,p=this.awaitIdentPos;if(this.enterScope(vt(s,!1)|mt),this.initFunction(e),this.options.ecmaVersion>=8)e.async=!!s;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(i,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=o,this.awaitPos=h,this.awaitIdentPos=p,this.finishNode(e,"ArrowFunctionExpression")};m.parseFunctionBody=function(e,i,s,r){var o=i&&this.type!==a.braceL,h=this.strict,p=!1;if(o)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var c=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);if(!h||c){if(p=this.strictDirective(this.end),p&&c)this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var u=this.labels;if(this.labels=[],p)this.strict=!0;if(this.checkParams(e,!h&&!p&&!i&&!s&&this.isSimpleParamList(e.params)),this.strict&&e.id)this.checkLValSimple(e.id,Vt);e.body=this.parseBlock(!1,void 0,p&&!h),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()};m.isSimpleParamList=function(e){for(var i=0,s=e;i<s.length;i+=1){var r=s[i];if(r.type!=="Identifier")return!1}return!0};m.checkParams=function(e,i){var s=Object.create(null);for(var r=0,o=e.params;r<o.length;r+=1){var h=o[r];this.checkLValInnerPattern(h,xt,i?null:s)}};m.parseExprList=function(e,i,s,r){var o=[],h=!0;while(!this.eat(e)){if(!h){if(this.expect(a.comma),i&&this.afterTrailingComma(e))break}else h=!1;var p=void 0;if(s&&this.type===a.comma)p=null;else if(this.type===a.ellipsis){if(p=this.parseSpread(r),r&&this.type===a.comma&&r.trailingComma<0)r.trailingComma=this.start}else p=this.parseMaybeAssign(!1,r);o.push(p)}return o};m.checkUnreserved=function(e){var{start:i,end:s,name:r}=e;if(this.inGenerator&&r==="yield")this.raiseRecoverable(i,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&r==="await")this.raiseRecoverable(i,"Cannot use 'await' as identifier inside an async function");if(!(this.currentThisScope().flags&at)&&r==="arguments")this.raiseRecoverable(i,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(r==="arguments"||r==="await"))this.raise(i,"Cannot use "+r+" in class static initialization block");if(this.keywords.test(r))this.raise(i,"Unexpected keyword '"+r+"'");if(this.options.ecmaVersion<6&&this.input.slice(i,s).indexOf("\\")!==-1)return;var o=this.strict?this.reservedWordsStrict:this.reservedWords;if(o.test(r)){if(!this.inAsync&&r==="await")this.raiseRecoverable(i,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(i,"The keyword '"+r+"' is reserved")}};m.parseIdent=function(e){var i=this.parseIdentNode();if(this.next(!!e),this.finishNode(i,"Identifier"),!e){if(this.checkUnreserved(i),i.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=i.start}return i};m.parseIdentNode=function(){var e=this.startNode();if(this.type===a.name)e.name=this.value;else if(this.type.keyword){if(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop();this.type=a.name}else this.unexpected();return e};m.parsePrivateIdent=function(){var e=this.startNode();if(this.type===a.privateId)e.name=this.value;else this.unexpected();if(this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields)if(this.privateNameStack.length===0)this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(e);return e};m.parseYield=function(e){if(!this.yieldPos)this.yieldPos=this.start;var i=this.startNode();if(this.next(),this.type===a.semi||this.canInsertSemicolon()||this.type!==a.star&&!this.type.startsExpr)i.delegate=!1,i.argument=null;else i.delegate=this.eat(a.star),i.argument=this.parseMaybeAssign(e);return this.finishNode(i,"YieldExpression")};m.parseAwait=function(e){if(!this.awaitPos)this.awaitPos=this.start;var i=this.startNode();return this.next(),i.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(i,"AwaitExpression")};var et=t.prototype;et.raise=function(e,i){var s=Et(this.input,e);if(i+=" ("+s.line+":"+s.column+")",this.sourceFile)i+=" in "+this.sourceFile;var r=SyntaxError(i);throw r.pos=e,r.loc=s,r.raisedAt=this.pos,r};et.raiseRecoverable=et.raise;et.curPosition=function(){if(this.options.locations)return new H(this.curLine,this.pos-this.lineStart)};var F=t.prototype,ee=function(i){this.flags=i,this.var=[],this.lexical=[],this.functions=[]};F.enterScope=function(e){this.scopeStack.push(new ee(e))};F.exitScope=function(){this.scopeStack.pop()};F.treatFunctionsAsVarInScope=function(e){return e.flags&B||!this.inModule&&e.flags&O};F.declareName=function(e,i,s){var r=!1;if(i===V){var o=this.currentScope();if(r=o.lexical.indexOf(e)>-1||o.functions.indexOf(e)>-1||o.var.indexOf(e)>-1,o.lexical.push(e),this.inModule&&o.flags&O)delete this.undefinedExports[e]}else if(i===Rt){var h=this.currentScope();h.lexical.push(e)}else if(i===Lt){var p=this.currentScope();if(this.treatFunctionsAsVar)r=p.lexical.indexOf(e)>-1;else r=p.lexical.indexOf(e)>-1||p.var.indexOf(e)>-1;p.functions.push(e)}else for(var c=this.scopeStack.length-1;c>=0;--c){var u=this.scopeStack[c];if(u.lexical.indexOf(e)>-1&&!(u.flags&Pt&&u.lexical[0]===e)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(e)>-1){r=!0;break}if(u.var.push(e),this.inModule&&u.flags&O)delete this.undefinedExports[e];if(u.flags&at)break}if(r)this.raiseRecoverable(s,"Identifier '"+e+"' has already been declared")};F.checkLocalExport=function(e){if(this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1)this.undefinedExports[e.name]=e};F.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};F.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var i=this.scopeStack[e];if(i.flags&(at|Q|M))return i}};F.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var i=this.scopeStack[e];if(i.flags&(at|Q|M)&&!(i.flags&mt))return i}};var ot=function(i,s,r){if(this.type="",this.start=s,this.end=0,i.options.locations)this.loc=new st(i,r);if(i.options.directSourceFile)this.sourceFile=i.options.directSourceFile;if(i.options.ranges)this.range=[s,0]},K=t.prototype;K.startNode=function(){return new ot(this,this.start,this.startLoc)};K.startNodeAt=function(e,i){return new ot(this,e,i)};function Bt(e,i,s,r){if(e.type=i,e.end=s,this.options.locations)e.loc.end=r;if(this.options.ranges)e.range[1]=s;return e}K.finishNode=function(e,i){return Bt.call(this,e,i,this.lastTokEnd,this.lastTokEndLoc)};K.finishNodeAt=function(e,i,s,r){return Bt.call(this,e,i,s,r)};K.copyNode=function(e){var i=new ot(this,e.start,this.startLoc);for(var s in e)i[s]=e[s];return i};var Mt=function(){};Mt.prototype.reset=function(){};t.prototype.validateRegExpFlags=function(){};t.prototype.validateRegExpPattern=function(){};var bt=function(i){if(this.type=i.type,this.value=i.value,this.start=i.start,this.end=i.end,i.options.locations)this.loc=new st(i,i.startLoc,i.endLoc);if(i.options.ranges)this.range=[i.start,i.end]},y=t.prototype;y.next=function(e){if(!e&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new bt(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};y.getToken=function(){return this.next(),new bt(this)};if(typeof Symbol<"u")y[Symbol.iterator]=function(){var e=this;return{next:function(){var i=e.getToken();return{done:i.type===a.eof,value:i}}}};y.nextToken=function(){var e=this.curContext();if(!e||!e.preserveSpace)this.skipSpace();if(this.start=this.pos,this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(a.eof);if(e.override)return e.override(this);else this.readToken(this.fullCharCodeAtPos())};y.readToken=function(e){if(n(e,this.options.ecmaVersion>=6)||e===92)return this.readWord();return this.getTokenFromCode(e)};y.fullCharCodeAt=function(e){var i=this.input.charCodeAt(e);if(i<=55295||i>=56320)return i;var s=this.input.charCodeAt(e+1);return s<=56319||s>=57344?i:(i<<10)+s-56613888};y.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};y.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),i=this.pos,s=this.input.indexOf("*/",this.pos+=2);if(s===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=s+2,this.options.locations)for(var r=void 0,o=i;(r=Ct(this.input,o,this.pos))>-1;)++this.curLine,o=this.lineStart=r;if(this.options.onComment)this.options.onComment(!0,this.input.slice(i+2,s),i,this.pos,e,this.curPosition())};y.skipLineComment=function(e){var i=this.pos,s=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);while(this.pos<this.input.length&&!z(r))r=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(i+e,this.pos),i,this.pos,s,this.curPosition())};y.skipSpace=function(){t:while(this.pos<this.input.length){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10)++this.pos;case 10:case 8232:case 8233:if(++this.pos,this.options.locations)++this.curLine,this.lineStart=this.pos;break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(e>8&&e<14||e>=5760&&At.test(String.fromCharCode(e)))++this.pos;else break t}}};y.finishToken=function(e,i){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var s=this.type;this.type=e,this.value=i,this.updateContext(s)};y.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var i=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&e===46&&i===46)return this.pos+=3,this.finishToken(a.ellipsis);else return++this.pos,this.finishToken(a.dot)};y.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(e===61)return this.finishOp(a.assign,2);return this.finishOp(a.slash,1)};y.readToken_mult_modulo_exp=function(e){var i=this.input.charCodeAt(this.pos+1),s=1,r=e===42?a.star:a.modulo;if(this.options.ecmaVersion>=7&&e===42&&i===42)++s,r=a.starstar,i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(a.assign,s+1);return this.finishOp(r,s)};y.readToken_pipe_amp=function(e){var i=this.input.charCodeAt(this.pos+1);if(i===e){if(this.options.ecmaVersion>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(a.assign,3)}return this.finishOp(e===124?a.logicalOR:a.logicalAND,2)}if(i===61)return this.finishOp(a.assign,2);return this.finishOp(e===124?a.bitwiseOR:a.bitwiseAND,1)};y.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);if(e===61)return this.finishOp(a.assign,2);return this.finishOp(a.bitwiseXOR,1)};y.readToken_plus_min=function(e){var i=this.input.charCodeAt(this.pos+1);if(i===e){if(i===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||T.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(a.incDec,2)}if(i===61)return this.finishOp(a.assign,2);return this.finishOp(a.plusMin,1)};y.readToken_lt_gt=function(e){var i=this.input.charCodeAt(this.pos+1),s=1;if(i===e){if(s=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+s)===61)return this.finishOp(a.assign,s+1);return this.finishOp(a.bitShift,s)}if(i===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45)return this.skipLineComment(4),this.skipSpace(),this.nextToken();if(i===61)s=2;return this.finishOp(a.relational,s)};y.readToken_eq_excl=function(e){var i=this.input.charCodeAt(this.pos+1);if(i===61)return this.finishOp(a.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(e===61&&i===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(a.arrow);return this.finishOp(e===61?a.eq:a.prefix,1)};y.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var i=this.input.charCodeAt(this.pos+1);if(i===46){var s=this.input.charCodeAt(this.pos+2);if(s<48||s>57)return this.finishOp(a.questionDot,2)}if(i===63){if(e>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(a.assign,3)}return this.finishOp(a.coalesce,2)}}return this.finishOp(a.question,1)};y.readToken_numberSign=function(){var e=this.options.ecmaVersion,i=35;if(e>=13){if(++this.pos,i=this.fullCharCodeAtPos(),n(i,!0)||i===92)return this.finishToken(a.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+it(i)+"'")};y.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(a.parenL);case 41:return++this.pos,this.finishToken(a.parenR);case 59:return++this.pos,this.finishToken(a.semi);case 44:return++this.pos,this.finishToken(a.comma);case 91:return++this.pos,this.finishToken(a.bracketL);case 93:return++this.pos,this.finishToken(a.bracketR);case 123:return++this.pos,this.finishToken(a.braceL);case 125:return++this.pos,this.finishToken(a.braceR);case 58:return++this.pos,this.finishToken(a.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(a.backQuote);case 48:var i=this.input.charCodeAt(this.pos+1);if(i===120||i===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(i===111||i===79)return this.readRadixNumber(8);if(i===98||i===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(a.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+it(e)+"'")};y.finishOp=function(e,i){var s=this.input.slice(this.pos,this.pos+i);return this.pos+=i,this.finishToken(e,s)};y.readRegexp=function(){var e,i,s=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(s,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(T.test(r))this.raise(s,"Unterminated regular expression");if(!e){if(r==="[")i=!0;else if(r==="]"&&i)i=!1;else if(r==="/"&&!i)break;e=r==="\\"}else e=!1;++this.pos}var o=this.input.slice(s,this.pos);++this.pos;var h=this.pos,p=this.readWord1();if(this.containsEsc)this.unexpected(h);var c=this.regexpState||(this.regexpState=new Mt(this));c.reset(s,o,p),this.validateRegExpFlags(c),this.validateRegExpPattern(c);var u=null;try{u=new RegExp(o,p)}catch(d){}return this.finishToken(a.regexp,{pattern:o,flags:p,value:u})};y.readInt=function(e,i,s){var r=this.options.ecmaVersion>=12&&i===void 0,o=s&&this.input.charCodeAt(this.pos)===48,h=this.pos,p=0,c=0;for(var u=0,d=i==null?1/0:i;u<d;++u,++this.pos){var x=this.input.charCodeAt(this.pos),g=void 0;if(r&&x===95){if(o)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(c===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(u===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");c=x;continue}if(x>=97)g=x-97+10;else if(x>=65)g=x-65+10;else if(x>=48&&x<=57)g=x-48;else g=1/0;if(g>=e)break;c=x,p=p*e+g}if(r&&c===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===h||i!=null&&this.pos-h!==i)return null;return p};function ie(e,i){if(i)return parseInt(e,8);return parseFloat(e.replace(/_/g,""))}function Dt(e){if(typeof BigInt!=="function")return null;return BigInt(e.replace(/_/g,""))}y.readRadixNumber=function(e){var i=this.pos;this.pos+=2;var s=this.readInt(e);if(s==null)this.raise(this.start+2,"Expected number in radix "+e);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)s=Dt(this.input.slice(i,this.pos)),++this.pos;else if(n(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(a.num,s)};y.readNumber=function(e){var i=this.pos;if(!e&&this.readInt(10,void 0,!0)===null)this.raise(i,"Invalid number");var s=this.pos-i>=2&&this.input.charCodeAt(i)===48;if(s&&this.strict)this.raise(i,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!s&&!e&&this.options.ecmaVersion>=11&&r===110){var o=Dt(this.input.slice(i,this.pos));if(++this.pos,n(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(a.num,o)}if(s&&/[89]/.test(this.input.slice(i,this.pos)))s=!1;if(r===46&&!s)++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos);if((r===69||r===101)&&!s){if(r=this.input.charCodeAt(++this.pos),r===43||r===45)++this.pos;if(this.readInt(10)===null)this.raise(i,"Invalid number")}if(n(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var h=ie(this.input.slice(i,this.pos),s);return this.finishToken(a.num,h)};y.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),i;if(e===123){if(this.options.ecmaVersion<6)this.unexpected();var s=++this.pos;if(i=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,i>1114111)this.invalidStringToken(s,"Code point out of bounds")}else i=this.readHexChar(4);return i};y.readString=function(e){var i="",s=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;if(r===92)i+=this.input.slice(s,this.pos),i+=this.readEscapedChar(!1),s=this.pos;else if(r===8232||r===8233){if(this.options.ecmaVersion<10)this.raise(this.start,"Unterminated string constant");if(++this.pos,this.options.locations)this.curLine++,this.lineStart=this.pos}else{if(z(r))this.raise(this.start,"Unterminated string constant");++this.pos}}return i+=this.input.slice(s,this.pos++),this.finishToken(a.string,i)};var Ut={};y.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Ut)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};y.invalidStringToken=function(e,i){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ut;else this.raise(e,i)};y.readTmplToken=function(){var e="",i=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var s=this.input.charCodeAt(this.pos);if(s===96||s===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===a.template||this.type===a.invalidTemplate))if(s===36)return this.pos+=2,this.finishToken(a.dollarBraceL);else return++this.pos,this.finishToken(a.backQuote);return e+=this.input.slice(i,this.pos),this.finishToken(a.template,e)}if(s===92)e+=this.input.slice(i,this.pos),e+=this.readEscapedChar(!0),i=this.pos;else if(z(s)){switch(e+=this.input.slice(i,this.pos),++this.pos,s){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:e+=`
6
+ `;break;default:e+=String.fromCharCode(s);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;i=this.pos}else++this.pos}};y.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(a.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":if(this.input[this.pos+1]===`
7
7
  `)++this.pos;case`
8
8
  `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};y.readEscapedChar=function(e){var i=this.input.charCodeAt(++this.pos);switch(++this.pos,i){case 110:return`
9
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return it(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:if(this.options.locations)this.lineStart=this.pos,++this.curLine;return"";case 56:case 57:if(this.strict)this.invalidStringToken(this.pos-1,"Invalid escape sequence");if(e){var s=this.pos-1;this.invalidStringToken(s,"Invalid escape sequence in template string")}default:if(i>=48&&i<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],h=parseInt(n,8);if(h>255)n=n.slice(0,-1),h=parseInt(n,8);if(this.pos+=n.length-1,i=this.input.charCodeAt(this.pos),(n!=="0"||i===56||i===57)&&(this.strict||e))this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(h)}if(z(i)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(i)}};y.readHexChar=function(e){var i=this.pos,s=this.readInt(16,e);if(s===null)this.invalidStringToken(i,"Bad character escape sequence");return s};y.readWord1=function(){this.containsEsc=!1;var e="",i=!0,s=this.pos,n=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var h=this.fullCharCodeAtPos();if(a(h,n))this.pos+=h<=65535?1:2;else if(h===92){this.containsEsc=!0,e+=this.input.slice(s,this.pos);var p=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var l=this.readCodePoint();if(!(i?r:a)(l,n))this.invalidStringToken(p,"Invalid Unicode escape");e+=it(l),s=this.pos}else break;i=!1}return e+this.input.slice(s,this.pos)};y.readWord=function(){var e=this.readWord1(),i=o.name;if(this.keywords.test(e))i=ft[e];return this.finishToken(i,e)};var se="8.18.0";t.acorn={Parser:t,version:se,defaultOptions:lt,Position:H,SourceLocation:st,getLineInfo:Et,Node:ot,TokenType:g,tokTypes:o,keywordTypes:ft,TokContext:R,tokContexts:S,isIdentifierChar:a,isIdentifierStart:r,Token:bt,isNewLine:z,lineBreak:T,lineBreakG:jt,nonASCIIwhitespace:At};function b(e){return(i)=>e(i)}function v(...e){return t.extend(...e)}
10
- export{r,a,t,b,v};
9
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return it(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:if(this.options.locations)this.lineStart=this.pos,++this.curLine;return"";case 56:case 57:if(this.strict)this.invalidStringToken(this.pos-1,"Invalid escape sequence");if(e){var s=this.pos-1;this.invalidStringToken(s,"Invalid escape sequence in template string")}default:if(i>=48&&i<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],o=parseInt(r,8);if(o>255)r=r.slice(0,-1),o=parseInt(r,8);if(this.pos+=r.length-1,i=this.input.charCodeAt(this.pos),(r!=="0"||i===56||i===57)&&(this.strict||e))this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(o)}if(z(i)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(i)}};y.readHexChar=function(e){var i=this.pos,s=this.readInt(16,e);if(s===null)this.invalidStringToken(i,"Bad character escape sequence");return s};y.readWord1=function(){this.containsEsc=!1;var e="",i=!0,s=this.pos,r=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var o=this.fullCharCodeAtPos();if(l(o,r))this.pos+=o<=65535?1:2;else if(o===92){this.containsEsc=!0,e+=this.input.slice(s,this.pos);var h=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var p=this.readCodePoint();if(!(i?n:l)(p,r))this.invalidStringToken(h,"Invalid Unicode escape");e+=it(p),s=this.pos}else break;i=!1}return e+this.input.slice(s,this.pos)};y.readWord=function(){var e=this.readWord1(),i=a.name;if(this.keywords.test(e))i=ft[e];return this.finishToken(i,e)};var se="8.18.0";t.acorn={Parser:t,version:se,defaultOptions:lt,Position:H,SourceLocation:st,getLineInfo:Et,Node:ot,TokenType:k,tokTypes:a,keywordTypes:ft,TokContext:R,tokContexts:w,isIdentifierChar:l,isIdentifierStart:n,Token:bt,isNewLine:z,lineBreak:T,lineBreakG:jt,nonASCIIwhitespace:At};function v(e){return(i)=>e(i)}function S(...e){return t.extend(...e)}
10
+ export{n,l,t,v,S};
@@ -0,0 +1,2 @@
1
+ import{S}from"./shared-f8ty80r9.js";import{q}from"./shared-3xek95jd.js";import{g}from"./shared-c4vs4cam.js";var r=S(g,q);
2
+ export{r};
@@ -0,0 +1,3 @@
1
+ import{n,l}from"./shared-f8ty80r9.js";import{p,o,c,e,O,D,B,F,V,M,j,W,z,U,N,H,G,C,K,Q,X,Y,A,_,J,P,Z,ee,s,te,ie,re,se,ne,oe,ae,le,pe,L,ce,he,ue,fe,de,me,E,ye,xe,ge,I,be,ve,Se,ke,i,we,Te,Ae,b,h,Ee}from"./shared-3xek95jd.js";import{w}from"./shared-9f69x2q9.js";import{f,d}from"./shared-c1jf0gfc.js";import{T}from"./shared-0ehch67h.js";var fn={li:["li"],dt:["dt","dd"],dd:["dt","dd"],p:"address article aside blockquote div dl fieldset footer form h1 h2 h3 h4 h5 h6 header hgroup hr main menu nav ol p pre section table ul".split(" "),rt:["rt","rp"],rp:["rt","rp"],optgroup:["optgroup"],option:["option","optgroup"],thead:["tbody","tfoot"],tbody:["tbody","tfoot"],tfoot:["tbody"],tr:["tr","tbody"],td:["td","th","tr"],th:["td","th","tr"]};function mn(t,r){return Object.hasOwn(fn,t)&&fn[t].includes(r)}var Ye=new Set("arguments await break case catch class const continue debugger default delete do else enum eval export extends false finally for function if implements import in instanceof interface let new null package private protected public return static super switch this throw true try typeof var void while with yield".split(" ")),Ke=/<!--[\s\S]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/y,it=/\r(?!\n)|[\u2028\u2029]/;function Re(t){if(t===32||t<=13&&t>=9)return!0;if(t<160)return!1;return t===160||t===5760||t>=8192&&t<=8202||t===8232||t===8233||t===8239||t===8287||t===12288||t===65279}function De(t,r){let a=r;while(a<t.length&&Re(t.charCodeAt(a)))a++;return a}function Ve(t,r){let a=t.codePointAt(r);if(a===void 0||!n(a,!0))return r;let u=r+(a<=65535?1:2),x=t.codePointAt(u);while(x!==void 0&&l(x,!0))u+=x<=65535?1:2,x=t.codePointAt(u);return u}function ot(t){let r=t.indexOf("<");while(r!==-1){let a=t.charCodeAt(r+1);if(a===33||a===115){Ke.lastIndex=r;let u=Ke.exec(t);if(u){if(a===115)return u[2]==="ts";r=t.indexOf("<",Ke.lastIndex);continue}}r=t.indexOf("<",r+1)}return!1}class Je{source;index=0;loc;lfOnly;isTypeScript;typescript;entityNames;css;script;comments;root;stack;fragments;metaTags=new Set;lastAutoClosedTag;nextAngle=-1;nextBrace=-1;constructor(t,r,a,u={}){if(this.source=t,this.loc=u.loc??!1,this.lfOnly=this.loc&&!it.test(t),this.isTypeScript=ot(t),this.typescript=a.typescript,this.isTypeScript&&!this.typescript)T();this.entityNames=a.entityNames,this.css=u.css??!0,this.script=u.script??!0,this.comments=u.comments??!0,this.root={type:"Root",start:0,end:r,css:null,js:[],options:null,fragment:{type:"Fragment",nodes:[]},comments:[]},this.stack=[this.root],this.fragments=[this.root.fragment]}match(t){if(t.length===1)return this.source.charCodeAt(this.index)===t.charCodeAt(0);return this.source.startsWith(t,this.index)}matchRegex(t){return t.lastIndex=this.index,t.exec(this.source)?.[0]??null}eat(t,r=!1){if(this.match(t))return this.index+=t.length,!0;if(r)s(this.index,t);return!1}read(t){let r=this.matchRegex(t);if(r)this.index+=r.length;return r}readUntil(t){if(this.index>=this.source.length)i(this.source.length);let r=this.source.indexOf(t,this.index),a=r===-1?this.source.length:r,u=this.source.slice(this.index,a);return this.index=a,u}allowWhitespace(){this.index=De(this.source,this.index)}requireWhitespace(){if(!Re(this.source.charCodeAt(this.index)))te(this.index);this.allowWhitespace()}eatClosingBrace(){this.allowWhitespace(),this.eat("}",!0)}sourceLocation(t,r){return this.loc?{start:o(t),end:o(r)}:void 0}readIdentifierName(){let t=this.index,r=Ve(this.source,t),a=this.source.slice(t,r);if(this.index=r,Ye.has(a))we(t,a);let u={type:"Identifier",name:a,start:t,end:r};if(this.loc)u.loc=this.sourceLocation(t,r);return u}current(){return this.stack[this.stack.length-1]}append(t){this.fragments[this.fragments.length-1].nodes.push(t)}open(t,r){this.append(t),this.stack.push(t),this.fragments.push(r)}setFragment(t){this.fragments[this.fragments.length-1]=t}close(){this.stack.pop(),this.fragments.pop()}}var lt=["===","!==","==","!=","&&","||","??"];function en(t,r,a,u){return{type:"Literal",start:r,end:a,value:u,raw:t.slice(r,a)}}function hn(t,r){let a=t.charCodeAt(r);if(a===34||a===39){for(let x=r+1;x<t.length;x++){let S=t.charCodeAt(x);if(S===a)return en(t,r,x+1,t.slice(r+1,x));if(S===92||S===10||S===13)return null}return null}let u=r;for(;u<t.length;u++){let x=t.charCodeAt(u);if(x<48||x>57)break}if(u===r||a===48&&u-r>1)return null;return en(t,r,u,Number(t.slice(r,u)))}function st(t,r){let a=Ve(t,r);if(a===r)return hn(t,r);let u=t.slice(r,a);if(u==="true"||u==="false"||u==="null")return en(t,r,a,u==="null"?null:u==="true");if(Ye.has(u))return null;let x={type:"Identifier",start:r,end:a,name:u};for(let S=a;;){let g=t.charCodeAt(S),v,y;if(g===46){if(y=Ve(t,S+1),y===S+1)return null;v={type:"Identifier",start:S+1,end:y,name:t.slice(S+1,y)}}else if(g===91){if(v=hn(t,S+1),!v||t.charCodeAt(v.end)!==93)return null;y=v.end+1}else return x;x={type:"MemberExpression",start:r,end:y,object:x,property:v,computed:g===91,optional:!1},S=y}}function nn(t,r){if(t.charCodeAt(r)!==33||t.charCodeAt(r+1)===61)return st(t,r);let a=nn(t,De(t,r+1));if(!a)return null;return{type:"UnaryExpression",start:r,end:a.end,operator:"!",prefix:!0,argument:a}}function xn(t,r){let a=De(t,r);if(a>=t.length)return!1;let u=t.charCodeAt(a);return u===125||u===41}function ct(t,r){let a=nn(t,r);if(!a||xn(t,a.end))return a;let u=De(t,a.end),x=lt.find((v)=>t.startsWith(v,u));if(!x)return null;let S=nn(t,De(t,u+x.length));if(!S||!xn(t,S.end))return null;let{end:g}=S;if(x==="&&"||x==="||"||x==="??")return{type:"LogicalExpression",start:a.start,end:g,left:a,operator:x,right:S};return{type:"BinaryExpression",start:a.start,end:g,left:a,operator:x,right:S}}function We(t){if(t.loc={start:c(t.start),end:c(t.end)},t.type==="MemberExpression")We(t.object),We(t.property);else if(t.type==="UnaryExpression")We(t.argument);else if(t.type==="BinaryExpression"||t.type==="LogicalExpression")We(t.left),We(t.right)}function Ce(t){let r=!t.loc||t.lfOnly?ct(t.source,t.index):null;if(r){if(t.index=r.end,t.loc)We(r);return r}let{node:a,end:u}=h(t,t.source,t.index);return t.index=u,a}var Sn=/<\/script\s*>/g,at=new Set(["server","client","worker","test","default"]);function gn(t,r,a){let{source:u,index:x}=t;if(x>=u.length)i(u.length);Sn.lastIndex=x;let S=Sn.exec(u);if(!S)A(u.length,"script");t.index=S.index+S[0].length;let g=t.script?b(t,u.slice(0,S.index),x):pt(x,S.index);if(g.start=x,g.loc)Object.assign(g.loc.start,c(r)),Object.assign(g.loc.end,c(t.index));else if(t.loc)g.loc={start:c(r),end:c(t.index)};let v="default";for(let y of a){if(at.has(y.name))oe(y,y.name);if(y.name==="module"){if(y.value!==!0)se(y,y.name);v="module"}if(y.name==="context"){let k=y.value;if(k===!0||!Array.isArray(k)||k.length!==1||k[0].type!=="Text"||k[0].data!=="module")ne(y);v="module"}}return{type:"Script",start:r,end:t.index,context:v,content:g,attributes:a}}function pt(t,r){return{type:"Program",start:t,end:r,body:[],sourceType:"module"}}var ut=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of(\s+|(?=[.#[*:&])))/y,dt=/\d+(\.\d+)?%/y,ft=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y,mt=/\s*>/y,Ne=-1,on=34,ht=35,xt=36,St=38,ln=39,gt=40,yt=41,Ge=42,At=43,Tt=45,Et=46,sn=47,tn=58,bt=59,En=60,yn=61,Ct=62,_t=91,He=92,vt=93,wt=94,bn=123,rn=124,kt=125,Cn=126,$e=[];function _n(t,r,a){let u=t.index;$e=[];let x=t.css?Rt(t):Pt(t),S=t.index;return t.eat("</style",!0),t.read(mt),{type:"StyleSheet",start:r,end:t.index,attributes:a,children:x,comments:$e,content:{start:u,end:S,styles:t.source.slice(u,S),comment:null}}}function Pt(t){let{source:r,index:a}=t;while(a<r.length){let u=r.charCodeAt(a);if(u===sn&&r.charCodeAt(a+1)===Ge){let x=r.indexOf("*/",a+2);a=x===-1?r.length:x+2}else if(u===on||u===ln){a++;while(a<r.length){let x=r.charCodeAt(a);if(x===u||x===10)break;a+=x===He?2:1}a++}else if(u===En&&r.startsWith("</style",a))break;else a++}return t.index=Math.min(a,r.length),[]}function Rt(t){let r=[];for(;;){if(Ie(t,!0),t.match("</style")||t.index>=t.source.length)break;r.push(t.match("@")?vn(t):wn(t))}return r}function vn(t){let r=t.index;t.eat("@",!0);let a=Le(t),u=cn(t,!0),x=null;if(t.match("{"))x=Rn(t);else t.eat(";",!0);return{type:"Atrule",start:r,end:t.index,name:a,prelude:u,block:x}}function wn(t){let r=t.index;return{type:"Rule",prelude:kn(t,!1),block:Rn(t),start:r,end:t.index}}function kn(t,r){let a=[];Ie(t,!0);let u=t.index;while(t.index<t.source.length){a.push(Ot(t,r));let x=t.index;if(Ie(t,!0),t.match(r?")":"{"))return{type:"SelectorList",start:u,end:x,children:a};t.eat(",",!0),Ie(t,!0)}return i(t.source.length)}function An(t,r){return{type:"RelativeSelector",combinator:t,selectors:[],start:r,end:-1}}function Ot(t,r){let{source:a,index:u}=t,x=[],S=An(null,t.index);while(t.index<a.length){let g=t.index,v=a.charCodeAt(g),y=S.selectors;if(v===St)t.index++,y.push({type:"NestingSelector",name:"&",start:g,end:t.index});else if(v===Ge)t.index++,y.push(Tn(t,g,"*"));else if(v===ht)t.index++,y.push({type:"IdSelector",name:Le(t),start:g,end:t.index});else if(v===Et)t.index++,y.push({type:"ClassSelector",name:Le(t),start:g,end:t.index});else if(v===tn){let _e=a.charCodeAt(g+1)===tn;t.index+=_e?2:1;let Pe=Le(t),Be=null;if(t.eat("("))Be=kn(t,!0),t.eat(")",!0);if(_e)y.push({type:"PseudoElementSelector",name:Pe,start:g,end:t.index,...Be&&{args:Be}});else y.push({type:"PseudoClassSelector",name:Pe,args:Be,start:g,end:t.index})}else if(v===_t)t.index++,y.push(Nt(t,g));else{let _e=r?t.read(ut):null,Pe=!_e&&je(v)?t.read(dt):null;if(_e)y.push({type:"Nth",value:_e,start:g,end:t.index});else if(Pe)y.push({type:"Percentage",value:Pe,start:g,end:t.index});else if(Pn(a,g)===0){let Be=Le(t);y.push(Tn(t,g,Be))}}let k=t.index;Ie(t,!1);let R=t.match(",")||t.match(r?")":"{");if(t.index=k,R)return S.end=k,x.push(S),{type:"ComplexSelector",start:u,end:k,children:x};let q=Lt(t);if(q){if(S.selectors.length>0)S.end=k,x.push(S);if(S=An(q,q.start),t.allowWhitespace(),t.match(",")||t.match(r?")":"{"))H(t.index)}}return i(a.length)}function Tn(t,r,a){let u=a,x;if(t.eat("|"))x=u,u=t.eat("*")?"*":Le(t);return{type:"TypeSelector",name:u,...x!==void 0&&{namespace:x},start:r,end:t.index}}function Nt(t,r){let a=t.source;t.allowWhitespace();let u=Le(t);t.allowWhitespace();let x=null,S=null,g=a.charCodeAt(t.index);if(g===yn)S="=";else if((g===Cn||g===wt||g===xt||g===Ge||g===rn)&&a.charCodeAt(t.index+1)===yn)S=a.slice(t.index,t.index+2);if(S)t.index+=S.length,t.allowWhitespace(),x=It(t);t.allowWhitespace();let v=t.index;while(Nn(a.charCodeAt(t.index)))t.index++;let y=t.index>v?a.slice(v,t.index):null;return t.allowWhitespace(),t.eat("]",!0),{type:"AttributeSelector",start:r,end:t.index,name:u,matcher:S,value:x,flags:y}}function Pn(t,r){let a=t.charCodeAt(r);if(a===At||a===Cn||a===Ct)return 1;if(a===rn&&t.charCodeAt(r+1)===rn)return 2;return 0}function Lt(t){let r=t.index;t.allowWhitespace();let a=t.index,u=Pn(t.source,a);if(u>0){t.index+=u;let x=t.index;return t.allowWhitespace(),{type:"Combinator",name:t.source.slice(a,x),start:a,end:x}}if(t.index!==r)return{type:"Combinator",name:" ",start:r,end:t.index};return null}function Rn(t){let r=t.index;t.eat("{",!0);let a=[];while(t.index<t.source.length){if(Ie(t,!0),t.match("}"))break;a.push(Bt(t))}return t.eat("}",!0),{type:"Block",start:r,end:t.index,children:a}}function Bt(t){if(t.match("@"))return vn(t);let r=t.index;cn(t,!1);let a=t.source.charCodeAt(t.index);return t.index=r,a===bn?wn(t):Dt(t)}function Dt(t){let{source:r,index:a}=t;if(a>=r.length)i(r.length);let u=a;while(u<r.length){let y=r.charCodeAt(u);if(y===tn||Re(y))break;u++}let x=r.slice(a,u);t.index=u,t.allowWhitespace(),t.eat(":");let S=t.index;t.allowWhitespace();let g=cn(t,!0);if(!g&&!x.startsWith("--"))U({start:a,end:S});let v=t.index;if(!t.match("}"))t.eat(";",!0);return{type:"Declaration",start:a,end:v,property:x,value:g}}function cn(t,r){let a=t.source,u=a.length,x="",S=t.index,g=null,v=!1,y=!1,k=Ne,R=t.index;while(R<u){let q=a.charCodeAt(R);if(v){v=!1,R++;continue}if(q===He){v=!0,R++;continue}if(q===k)k=Ne;else if(q===yt)y=!1;else if(k===Ne&&(q===on||q===ln))k=q;else if(q===gt){if(Wt(a,x,S,R))y=!0}else if((q===bt||q===bn||q===kt)&&!y&&k===Ne){if(t.index=R,!r)return"";if(x+=a.slice(S,R),g){let _e=x.length-x.trimStart().length;for(let Pe of g)Pe.position=Math.max(0,(Pe.position??0)-_e)}return x.trim()}else if(q===sn&&!y&&k===Ne&&a.charCodeAt(R+1)===Ge){x+=a.slice(S,R),t.index=R;let _e=On(t);if(r)_e.position=x.length,$e.push(_e),g??=[],g.push(_e);R=t.index,S=R;continue}R++}return t.index=u,i(u)}function Wt(t,r,a,u){if(u-a>=3)return t.charCodeAt(u-3)===117&&t.charCodeAt(u-2)===114&&t.charCodeAt(u-1)===108;return(r+t.slice(a,u)).endsWith("url")}function It(t){let r=t.source,a=Ne;if(t.eat('"'))a=on;else if(t.eat("'"))a=ln;let u=t.index,x=!1,S=u;while(S<r.length){let g=r.charCodeAt(S);if(x)x=!1;else if(g===He)x=!0;else if(a===Ne?g===vt||Re(g):g===a)return t.index=a===Ne?S:S+1,r.slice(u,S).trim();S++}return t.index=S,i(r.length)}function Le(t){let{source:r,index:a}=t,u=r.charCodeAt(a);if(je(u)||u===Tt&&je(r.charCodeAt(a+1)))N(a);let x="",S=a,g=a;while(g<r.length){let v=r.charCodeAt(g);if(v===He){x+=r.slice(S,g),t.index=g;let y=t.matchRegex(ft);if(y){let k=String.fromCodePoint(Number.parseInt(y.slice(1),16));x+=k==="\\"?"\\\\":k,g+=y.length}else x+=`\\${r[g+1]}`,g+=2;S=g}else if(v>=160||Ft(v))g++;else break}if(x+=r.slice(S,g),t.index=g,x==="")N(a);return x}function Ie(t,r){let a=t.source;t.allowWhitespace();for(;;){let u=a.charCodeAt(t.index);if(u===sn&&a.charCodeAt(t.index+1)===Ge){let x=On(t);if(r)$e.push(x)}else if(u===En&&t.eat("<!--"))t.readUntil("-->"),t.eat("-->",!0);else break;t.allowWhitespace()}}function On(t){let r=t.index;t.eat("/*",!0);let a=t.readUntil("*/");return t.eat("*/",!0),{type:"CSSComment",value:a,start:r,end:t.index}}function je(t){return t>=48&&t<=57}function Nn(t){return t>=65&&t<=90||t>=97&&t<=122}function Ft(t){return Nn(t)||je(t)||t===95||t===45}var an=/<\/textarea(\s[^>]*)?>/iy,Mt=/^![a-zA-Z]+$/,Gt=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/,Ut=/^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9.\-_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}]*)?$/u,pn="\\u200C\\u200D",qt=new RegExp(`^(?:\\p{Lu}[$${pn}\\p{ID_Continue}.]*|\\p{ID_Start}[$${pn}\\p{ID_Continue}]*(?:\\.[$${pn}\\p{ID_Continue}]+)+)$`,"u"),Vt=new Set("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),$t=new Map([["use","UseDirective"],["animate","AnimateDirective"],["bind","BindDirective"],["class","ClassDirective"],["style","StyleDirective"],["on","OnDirective"],["let","LetDirective"],["in","TransitionDirective"],["out","TransitionDirective"],["transition","TransitionDirective"]]),un=new Map([["svelte:head",["SvelteHead",!0]],["svelte:options",["SvelteOptions",!0]],["svelte:window",["SvelteWindow",!0]],["svelte:document",["SvelteDocument",!0]],["svelte:body",["SvelteBody",!0]],["svelte:element",["SvelteElement",!1]],["svelte:component",["SvelteComponent",!1]],["svelte:self",["SvelteSelf",!1]],["svelte:fragment",["SvelteFragment",!1]],["svelte:boundary",["SvelteBoundary",!1]]]),Ln=[...un.keys()],jt=`${Ln.slice(0,-1).join(", ")} or ${Ln.at(-1)}`,Gn=47,Xe=62,Un=61,Ht=34,Xt=39,Bn=123,Fe=(t)=>t===Ht||t===Xt;function zt(t,r,a){let u=r;for(;u<t.length;u++){let x=t.charCodeAt(u);if(Re(x)||x===Gn||x===Xe)break;if(a&&(Fe(x)||x===Un))break}return u}function ze(t,r){let a=t.index;if(a>=t.source.length)i(t.source.length);let u=zt(t.source,a,r);return t.index=u,{name:t.source.slice(a,u),start:a,end:u,loc:t.sourceLocation(a,u)}}var Ue=(t,r,a,u=a)=>({start:t,end:r,type:"Text",raw:a,data:u});function qn(t){return Vt.has(t)||t.charCodeAt(0)===33&&t.toLowerCase()==="!doctype"}function Qt(t){let r=t.charCodeAt(0);if(r>=97&&r<=122&&!t.includes("."))return!1;return qt.test(t)}function Zt(t){let r=!0;for(let a=0;a<t.length&&r;a++){let u=t.charCodeAt(a);r=u>=97&&u<=122||a>0&&u>=48&&u<=57}return r&&t.length>0||Mt.test(t)||Gt.test(t)||Ut.test(t)}function Dn(t,r){for(let a=t.length-1;a>=0;a--){let u=r(t[a]);if(u!==void 0)return u}return!1}function Kt(t,r,a){let u=un.get(r);if(u)return u[0];if(a)return"Component";if(r==="title"){if(Dn(t.stack,({type:S})=>{if(S==="SvelteHead")return!0;return S==="RegularElement"||S==="Component"?!1:void 0}))return"TitleElement"}if(r==="slot"){if(!Dn(t.stack,(S)=>S.type==="RegularElement"&&S.attributes.some((g)=>g.type==="Attribute"&&g.name==="shadowrootmode")?!0:void 0))return"SlotElement"}return"RegularElement"}function Vn(t){let r=t.index++;if(t.eat("!--")){let a=t.readUntil("-->");t.eat("-->",!0),t.append({type:"Comment",start:r,end:t.index,data:a})}else if(t.eat("/"))Yt(t,r);else er(t,r)}function Yt(t,r){let{name:a}=ze(t,!1);if(t.allowWhitespace(),t.eat(">",!0),qn(a))Ae(r);let u=t.current();while(!("name"in u)||u.name!==a){if(u.type!=="RegularElement"){let x=t.lastAutoClosedTag;if(x?.tag===a)Y(r,a,x.reason);X(r,a)}u.end=r,t.close(),u=t.current()}if(u.end=t.index,t.close(),t.stack.length<(t.lastAutoClosedTag?.depth??0))t.lastAutoClosedTag=void 0}function Jt(t,r,a){return{type:t,start:r,end:-1,name:a}}function er(t,r){let a=ze(t,!1),{name:u}=a,x=un.get(u);if(!x&&u.startsWith("svelte:"))fe(a,jt);let S=Qt(u);if(!S&&!Zt(u))Se(a);if(x?.[1]){if(t.metaTags.has(u))ce(r,u);if(t.current().type!=="Root")ue(r,u);t.metaTags.add(u)}let g=Jt(Kt(t,u,S),r,u);if(t.loc)g.name_loc=a.loc;g.attributes=[],g.fragment={type:"Fragment",nodes:[]},t.allowWhitespace();let v=t.current();if(v.type==="RegularElement"&&mn(v.name,u))v.end=r,t.close(),t.lastAutoClosedTag={tag:v.name,reason:u,depth:t.stack.length};if((u==="script"||u==="style")&&t.current().type==="Root"){let k=[];g.attributes=k,Mn(t,k,lr),tr(t,g,r,k);return}if(Mn(t,g.attributes,cr),g.type==="SvelteComponent"){let k=Wn(g);if(!k)pe(r);if(!In(k.value))le(k.start);g.expression=Fn(k.value)}else if(g.type==="SvelteElement"){let k=Wn(g);if(!k)L(r);if(k.value===!0)L(k);g.tag=In(k.value)?Fn(k.value):or(k.value[0])}if(!t.eat("/")&&!qn(u))if(t.eat(">",!0),u==="textarea")g.fragment.nodes=jn(t,(k,R)=>(an.lastIndex=R,an.test(k)),"inside <textarea>"),t.read(an);else if(u==="script"||u==="style")g.fragment.nodes.push(nr(t,`</${u}>`));else{t.open(g,g.fragment);return}else t.eat(">",!0);g.end=t.index,t.append(g)}function nr(t,r){let a=t.index,u=t.source.indexOf(r,a);t.index=u===-1?t.source.length:u;let x=Ue(a,t.index,t.source.slice(a,t.index));return t.eat(r,!0),x}function tr(t,r,a,u){t.eat(">",!0);let x=rr(t.root.fragment.nodes,a);if(r.name==="style"){let v=_n(t,a,u);if(v.content.comment=x,t.root.css)ae(a);t.root.css=v;return}let S=gn(t,a,u);if(x&&t.comments)S.content.leadingComments=[{type:"Line",value:x.data}];let g=S.context==="module"?"module":"instance";if(t.root[g])re(a);t.root[g]=S}function rr(t,r){let a=t.length-1;if(a<0||t[a].end!==r)return null;for(let u=a;u>=0;u--){let x=t[u];if(x.type==="Comment")return x;if(x.type!=="Text"||x.data.trim())return null}return null}var ir=(t)=>t.type==="Attribute"&&t.name==="this";function Wn(t){let r=t.attributes.find(ir);if(r)t.attributes.splice(t.attributes.indexOf(r),1);return r}function In(t){if(t===!0)return!1;if(!Array.isArray(t))return!0;return t.length===1&&t[0].type==="ExpressionTag"}function Fn(t){return(Array.isArray(t)?t[0]:t).expression}function or(t){if(t.type!=="Text")return t.expression;return{type:"Literal",value:t.data,raw:`'${t.raw}'`,start:t.start,end:t.end}}function Mn(t,r,a){let u=new Set;for(;;){let x=a(t);if(!x)return;let{type:S}=x;if(S==="Attribute"||S==="BindDirective"||S==="StyleDirective"||S==="ClassDirective"){let g=`${S==="BindDirective"?"Attribute":S}${x.name}`;if(u.has(g))O(x);if(x.name!=="this")u.add(g)}r.push(x),t.allowWhitespace()}}function dn(t,r,a,u,x){return t.loc?{type:"Attribute",start:a,end:u,name:r.name,name_loc:r.loc,value:x}:{type:"Attribute",start:a,end:u,name:r.name,value:x}}function $n(t){if(Fe(t.source.charCodeAt(t.index)))s(t.index,"=")}function lr(t){let r=t.index,a=ze(t,!0);if(!a.name)return null;let u=!0;if(t.eat("=")){t.allowWhitespace();let{source:x}=t,S=t.index,g=-1;if(Fe(x.charCodeAt(S))){let k=x.indexOf(x[S],S+1);if(k!==-1)g=k+1}if(g===-1){g=S;while(g<x.length&&x.charCodeAt(g)!==Xe&&!Re(x.charCodeAt(g)))g++;if(g===S)_(S)}t.index=g;let v=Fe(x.charCodeAt(S))?1:0,y=x.slice(S+v,g-v);u=[Ue(g-y.length-v,g-v,y,w(y,!0,t.entityNames))]}return $n(t),dn(t,a,r,t.index,u)}function sr(t){let r=t.index,a=t.match("/*");if(!a&&!t.match("//"))return!1;t.index+=2;let u=t.readUntil(a?"*/":`
2
+ `);if(a)t.eat("*/");let x={type:a?"Block":"Line",start:r,end:t.index,value:u},S=t.sourceLocation(r,t.index);if(S)x.loc=S;if(t.comments)t.root.comments.push(x);return!0}function cr(t){while(sr(t))t.allowWhitespace();let r=t.index;if(t.eat("{"))return ar(t,r);let a=ze(t,!0);if(!a.name)return null;let u=t.index;t.allowWhitespace();let x=!0;if(t.eat("=")){if(t.allowWhitespace(),t.match("/>"))x=[Ue(t.index,t.index+1,"/")],t.index++;else x=dr(t);u=t.index}else $n(t);let S=a.name.indexOf(":"),g=S>0?$t.get(a.name.slice(0,S)):void 0;return g?ur(t,g,a,S,r,u,x):dn(t,a,r,u,x)}function ar(t,r){if(t.allowWhitespace(),t.eat("@attach")){t.requireWhitespace();let x=Ce(t);return t.eatClosingBrace(),{type:"AttachTag",start:r,end:t.index,expression:x}}if(t.eat("...")){let x=Ce(t);return t.eatClosingBrace(),{type:"SpreadAttribute",start:r,end:t.index,expression:x}}let a=t.readIdentifierName();if(a.name==="")D(r);t.eatClosingBrace();let u={type:"ExpressionTag",start:a.start,end:a.end,expression:a};return dn(t,a,r,t.index,u)}function pr(t){if(t===!0)return;return Array.isArray(t)?t[0]:t}function ur(t,r,a,u,x,S,g){let[v,...y]=a.name.slice(u+1).split("|");if(v==="")Q({start:x,end:x+u+1},a.name);let k={start:x,end:S,type:r,name:v};if(t.loc)k.name_loc=a.loc;if(r==="StyleDirective")return k.modifiers=y,k.value=g,k;let R=pr(g);if(R&&(Array.isArray(g)&&g.length>1||R.type==="Text"))K(R.start);if(k.expression=R?.expression??null,k.modifiers=y,r==="TransitionDirective"){let q=a.name.slice(0,u);k.intro=q!=="out",k.outro=q!=="in"}if((r==="BindDirective"||r==="ClassDirective")&&!k.expression)k.expression={start:x+u+1,end:S,type:"Identifier",name:v};return k}function dr(t){let r=t.source.charCodeAt(t.index),a=Fe(r);if(a){if(t.index++,t.source.charCodeAt(t.index)===r)return t.index++,[Ue(t.index-1,t.index-1,"")]}let u;try{u=jn(t,a?(x,S)=>x.charCodeAt(S)===r:fr,"in attribute value",a?r:void 0)}catch(x){let S=x instanceof e?x.position?.[0]:void 0;if(x instanceof e&&x.code==="js_parse_error"&&S!==void 0&&t.source.startsWith("/>",S-1))t.index=S,s(S,a?String.fromCharCode(r):"}");throw x}if(a)t.index++;else if(u.length===0)_(t.index);return a||u.length>1||u[0].type==="Text"?u:u[0]}function fr(t,r){let a=t.charCodeAt(r);return Re(a)||Fe(a)||a===Un||a===60||a===Xe||a===96||a===Gn&&t.charCodeAt(r+1)===Xe}function jn(t,r,a,u){let{source:x}=t,S=[],g=t.index,v=(y)=>{if(y<=g)return;let k=x.slice(g,y);S.push(Ue(g,y,k,w(k,!0,t.entityNames)))};while(t.index<x.length){let y=t.index;if(r(x,y))return v(y),S;if(x.charCodeAt(y)!==Bn){if(t.index++,u!==void 0)while(t.index<x.length&&x.charCodeAt(t.index)!==Bn&&x.charCodeAt(t.index)!==u)t.index++;continue}t.index++;let k=x.charCodeAt(t.index);if(k===35||k===64){t.index++;let q=t.index;while(t.index<x.length&&x.charCodeAt(t.index)>=97&&x.charCodeAt(t.index)<=122)t.index++;let _e=x.slice(q,t.index);(k===35?M:ke)(y,_e,a)}v(y),t.allowWhitespace();let R=Ce(t);t.eatClosingBrace(),S.push({type:"ExpressionTag",start:y,end:t.index,expression:R}),g=t.index}i(x.length)}var mr=new Map([["html","html"],["svg","svg"],["mathml","mathml"],["http://www.w3.org/2000/svg","svg"],["http://www.w3.org/1998/Math/MathML","mathml"]]),hr=new Map([["type",(t,r)=>{if(r!=="String"&&r!=="Number"&&r!=="Boolean"&&r!=="Array"&&r!=="Object")return!1;return t.type=r,!0}],["reflect",(t,r)=>{if(typeof r!=="boolean")return!1;return t.reflect=r,!0}],["attribute",(t,r)=>{if(typeof r!=="string")return!1;return t.attribute=r,!0}]]),Hn="[a-z0-9_.\\xB7\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u203F-\\u2040\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\u{10000}-\\u{EFFFF}-]",xr=new RegExp(`^[a-z]${Hn}*-${Hn}*$`,"u"),Sr=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ")),Qe=(t)=>(r,a)=>{let u=Ze(a);if(typeof u!=="boolean")E(a,"true or false");r[t]=u},gr=new Map([["runes",Qe("runes")],["immutable",Qe("immutable")],["preserveWhitespace",Qe("preserveWhitespace")],["accessors",Qe("accessors")],["namespace",(t,r)=>{let a=mr.get(Ze(r));if(!a)E(r,'"html", "mathml" or "svg"');t.namespace=a}],["css",(t,r)=>{if(Ze(r)!=="injected")E(r,'"injected"');t.css="injected"}],["tag",(t,r)=>de(r)],["customElement",(t,r)=>{let a=Ar(r);if(a)t.customElement=a}]]);function zn(t){let r=[],a={start:t.start,end:t.end,attributes:r};for(let u of t.attributes){if(u.type!=="Attribute")me(u);r.push(u);let x=gr.get(u.name);if(!x)ve(u,u.name);x(a,u)}return a}function Ze({value:t}){if(t===!0)return!0;let r=Array.isArray(t)?t:[t];if(r.length===0)return!0;if(r.length>1)return null;let[a]=r;if(a.type==="Text")return a.data;return a.expression.type==="Literal"?a.expression.value:null}function Xn(t,r){if(typeof r!=="string")I(t);if(!r)return;if(!xr.test(r))I(t);if(Sr.has(r))be(t)}function yr(t,r){let a=new Map;for(let u of t.properties){if(u.type!=="Property"||u.computed||u.key.type!=="Identifier")r();if(!a.has(u.key.name))a.set(u.key.name,u.value)}return a}function Ar(t){let r=()=>ye(t);if(t.value===!0)r();let a=Array.isArray(t.value)?t.value[0]:t.value;if(a.type==="Text"){let R=Ze(t);return Xn(t,R),{tag:R}}let{expression:u}=a;if(u.type!=="ObjectExpression"){if(u.type==="Literal"&&u.value===null)return;r()}let x=yr(u,r),S={},g=x.get("tag");if(g){let R=g.type==="Literal"?g.value:void 0;Xn(null,R),S.tag=R}let v=x.get("props");if(v){let R=()=>xe(t);if(v.type!=="ObjectExpression")R();S.props={};for(let q of v.properties){if(q.type!=="Property"||q.computed||q.key.type!=="Identifier"||q.value.type!=="ObjectExpression")R();let _e={};S.props[q.key.name]=_e;for(let Pe of q.value.properties){if(Pe.type!=="Property"||Pe.computed||Pe.key.type!=="Identifier"||Pe.value.type!=="Literal")R();if(!hr.get(Pe.key.name)?.(_e,Pe.value.value))R()}}}let y=x.get("shadow");if(y)if(y.type==="ObjectExpression")S.shadow=y;else if(y.type==="Literal"&&(y.value==="open"||y.value==="none"))S.shadow=y.value;else ge(t);let k=x.get("extend");if(k)S.extend=k;return S}var Tr={"{":"}","(":")","[":"]"};function qe(t,r,a=Tr){let u=Object.values(a),x=[],S=r;while(S<t.length){let g=t[S++];if(g==="'"||g==='"'||g==="`")S=Er(t,S,g);else if(Object.hasOwn(a,g))x.push(g);else if(u.includes(g)){let v=a[x.pop()??""];if(g!==v)s(S-1,v);if(x.length===0)return S}}i(t.length)}function Er(t,r,a){let u=r;while(u<t.length){let x=t[u++];if(x===a)return u;if(x==="\\")u++;else if(a==="`"&&x==="$"&&t[u]==="{")u=qe(t,u)}Te(r)}var br=/\?\s*:/g;function Me(t){let r=t.index,a=t.readIdentifierName();if(a.name!==""){let v=Qn(t);return{...a,typeAnnotation:v}}let u=t.source[t.index];if(u!=="{"&&u!=="[")Z(t.index);t.index=qe(t.source,r);let{node:x}=h(t,`${t.source.slice(0,t.index)} = 1`,r);d(x,"AssignmentExpression");let S=x.left;d(S,"ObjectPattern","ArrayPattern");let g=Qn(t);if(S.typeAnnotation=g,g)S.end=g.end;return S}function Qn(t){let r=t.index;if(t.allowWhitespace(),!t.eat(":")){t.index=r;return}let a="_ as ",u=t.index-a.length,x=t.source.slice(0,u)+a+t.source.slice(t.index).replace(br,":"),S=h(t,x,u).node;if(S.type==="AssignmentExpression"){let g=S.right.start;while(x[g]!=="=")g-=1;S=h(t,x.slice(0,g),u).node}if(S.type==="SequenceExpression")S=S.expressions[0];return d(S,"TSAsExpression"),t.index=S.end,{type:"TSTypeAnnotation",start:r,end:t.index,typeAnnotation:S.typeAnnotation}}var Cr=/\s*}/y,_r={IfBlock:"if",EachBlock:"each",KeyBlock:"key",AwaitBlock:"await",SnippetBlock:"snippet"},Oe=()=>({type:"Fragment",nodes:[]});function Kn(t,r){if(t.eat("if")){t.requireWhitespace();let a=Ce(t);t.eatClosingBrace();let u=Oe();t.open({type:"IfBlock",elseif:!1,start:r,end:-1,test:a,consequent:u,alternate:null},u)}else if(t.eat("each"))wr(t,r);else if(t.eat("await")){t.requireWhitespace();let a=Ce(t);t.allowWhitespace();let u={type:"AwaitBlock",start:r,end:-1,expression:a,value:null,error:null,pending:null,then:null,catch:null},x=Oe();if(t.eat("then"))u.value=Zn(t),u.then=x;else if(t.eat("catch"))u.error=Zn(t),u.catch=x;else u.pending=x;t.eat("}",!0),t.open(u,x)}else if(t.eat("key")){t.requireWhitespace();let a=Ce(t);t.eatClosingBrace();let u=Oe();t.open({type:"KeyBlock",start:r,end:-1,expression:a,fragment:u},u)}else if(t.eat("snippet"))kr(t,r);else J(t.index)}function Zn(t){if(t.matchRegex(Cr))return t.allowWhitespace(),null;t.requireWhitespace();let r=Me(t);return t.allowWhitespace(),r}function vr(t){let r={assertion:null},a=t.end,u=(S)=>{if(S.type==="TSAsExpression"&&S.end===t.end)return r.assertion=S,a=S.expression.end,S.expression;return f(S,u),S},x=t;if(t.type==="TSAsExpression")r.assertion=t,x=t.expression,a=x.end;else f(t,u);return x.end=a,{expression:x,assertion:r.assertion}}function wr(t,r){t.requireWhitespace();let a=t.source,u;while(!u)try{u=Ce(t)}catch(y){let R=((y instanceof e?y.position:void 0)?.[0]??r)-2;while(R>r&&t.source.slice(R,R+2)!=="as")R-=1;if(R<=r)throw t.source=a,y;t.source=a.slice(0,R)}if(t.source=a,t.allowWhitespace(),!t.match("as")){if(u.type==="SequenceExpression")u=u.expressions[0];let y=vr(u);if(u=y.expression,y.assertion){let k=y.assertion.typeAnnotation.start-2;while(t.source.slice(k,k+2)!=="as")k-=1;t.index=k}}let x=null,S,g;if(t.eat("as"))t.requireWhitespace(),x=Me(t);else t.index=u.end;if(t.allowWhitespace(),t.eat(",")){if(t.allowWhitespace(),S=t.readIdentifierName().name,!S)P(t.index);t.allowWhitespace()}if(t.eat("("))t.allowWhitespace(),g=Ce(t),t.allowWhitespace(),t.eat(")",!0),t.allowWhitespace();t.eat("}",!0);let v=Oe();t.open({type:"EachBlock",start:r,end:-1,expression:u,body:v,context:x,index:S,key:g},v)}function kr(t,r){t.requireWhitespace();let a=t.readIdentifierName();if(a.name==="")P(t.index);t.allowWhitespace();let u=t.index,x;if(t.isTypeScript&&t.match("<")){let y=qe(t.source,u,{"<":">"});x=t.source.slice(u+1,y-1),t.index=y}t.allowWhitespace(),t.eat("(",!0);let S=1;while(t.index<t.source.length&&(!t.match(")")||S!==1)){if(t.match("("))S++;if(t.match(")"))S--;t.index+=1}t.eat(")",!0);let{node:g}=h(t,`${t.source.slice(0,t.index)} => {}`,u,!0);d(g,"ArrowFunctionExpression"),t.eatClosingBrace();let v=Oe();t.open({type:"SnippetBlock",start:r,end:-1,expression:a,typeParams:x,parameters:g.params,body:v},v)}function Yn(t,r){let a=t.index-1,u=t.current();if(u.type==="IfBlock"){if(!t.eat("else"))s(a,"{:else} or {:else if}");if(t.eat("if"))V(a);if(t.allowWhitespace(),u.alternate=Oe(),t.setFragment(u.alternate),t.eat("if")){t.requireWhitespace();let x=Ce(t);t.eatClosingBrace();let S=Oe();t.open({start:r,end:-1,type:"IfBlock",elseif:!0,test:x,consequent:S,alternate:null},S)}else t.eatClosingBrace()}else if(u.type==="EachBlock"){if(!t.eat("else"))s(a,"{:else}");t.eatClosingBrace(),u.fallback=Oe(),t.setFragment(u.fallback)}else if(u.type==="AwaitBlock"){let x;if(t.eat("then"))x="then";else if(t.eat("catch"))x="catch";else s(a,"{:then ...} or {:catch ...}");if(u[x])B(a,`{:${x}}`);if(!t.eat("}")){t.requireWhitespace();let g=Me(t);if(x==="then")u.value=g;else u.error=g;t.eatClosingBrace()}let S=Oe();u[x]=S,t.setFragment(S)}else F(a)}function Jn(t){let r=t.current(),a=_r[r.type];if(!a)W(t.index-1);t.eat(a,!0),t.eatClosingBrace();while(r.type==="IfBlock"&&r.elseif)r.end=t.index,t.close(),r=t.current();r.end=t.index,t.close()}var Pr=/\s*}/y;function Rr(t){return t.type==="CallExpression"||t.type==="ChainExpression"&&t.expression.type==="CallExpression"}function et(t,r){if(t.eat("html")){t.requireWhitespace();let a=Ce(t);t.eatClosingBrace(),t.append({type:"HtmlTag",start:r,end:t.index,expression:a})}else if(t.eat("debug")){let a=[];if(!t.read(Pr)){let u=Ce(t),x=u.type==="SequenceExpression"?u.expressions:[u];for(let S of x){if(S.type!=="Identifier")G(S.start);a.push(S)}t.eatClosingBrace()}t.append({type:"DebugTag",start:r,end:t.index,identifiers:a})}else if(t.eat("const")){t.requireWhitespace();let a=Me(t);t.allowWhitespace(),t.eat("=",!0),t.allowWhitespace();let u=t.index,x=Ce(t),S=t.index;if(x.type==="SequenceExpression"&&!t.source.slice(u,x.start).includes("("))z(x);t.eatClosingBrace();let g={type:"VariableDeclarator",id:a,init:x,start:a.start,end:S};t.append({type:"ConstTag",start:r,end:t.index,declaration:{type:"VariableDeclaration",kind:"const",declarations:[g],start:r+2,end:t.index-1}})}else if(t.eat("render")){t.requireWhitespace();let a=Ce(t);if(!Rr(a))ie(a);t.eatClosingBrace(),t.append({type:"RenderTag",start:r,end:t.index,expression:a})}else ee(t.index)}var Or=/(?:var|interface|enum)\b/y,Nr=/(?:let|const|type)\b/y;function nt(t){let r=t.index;if(t.index+=1,t.allowWhitespace(),t.eat("#"))Kn(t,r);else if(t.eat(":"))Yn(t,r);else if(t.eat("@"))et(t,r);else if(t.match("/")&&!t.match("/*")&&!t.match("//"))t.index+=1,Jn(t);else if(!Lr(t,r)){let a=Ce(t);t.eatClosingBrace(),t.append({type:"ExpressionTag",start:r,end:t.index,expression:a})}}function Lr(t,r){let a=t.index,u=t.matchRegex(Or);if(u)C({start:a,end:a+u.length});if(!t.matchRegex(Nr))return!1;let x=t.root.comments.length,S=Ee(t,t.source,a);if(S.type==="ExpressionStatement")return t.root.comments.length=x,!1;if(S.type!=="VariableDeclaration"||S.kind!=="let"&&S.kind!=="const")C(S);return t.index=S.end,t.eatClosingBrace(),t.append({type:"DeclarationTag",start:r,end:t.index,declaration:S}),!0}function rt(t){let{source:r,index:a}=t;if(t.nextAngle<a)t.nextAngle=tt(r,"<",a);if(t.nextBrace<a)t.nextBrace=tt(r,"{",a);let u=Math.min(t.nextAngle,t.nextBrace);t.index=u;let x=r.slice(a,u);t.append({type:"Text",start:a,end:u,raw:x,data:w(x,!1,t.entityNames)})}function tt(t,r,a){let u=t.indexOf(r,a);return u===-1?t.length:u}function m(t,r,a){let u=t.charCodeAt(0)===65279?t.slice(1):t;p(u);let x=new Je(u.trimEnd(),u.length,a,r);while(x.index<x.source.length)if(x.match("<"))Vn(x);else if(x.match("{"))nt(x);else rt(x);if(x.stack.length>1){let y=x.current();if(y.end=y.start+1,y.type==="RegularElement")A(y,y.name);j(y)}let{nodes:S}=x.root.fragment,g=S.findIndex((y)=>y.type==="SvelteOptions"),v=S[g];if(v?.type==="SvelteOptions"){S.splice(g,1),x.root.options=zn(v);let{nodes:y}=v.fragment;if(y.length>0)he({start:y[0].start,end:y[y.length-1].end},v.name)}return x.root}
3
+ export{m};