sveast 0.9.2 → 0.9.4

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.
Files changed (54) hide show
  1. package/README.md +76 -3
  2. package/core.js +1 -1
  3. package/entities.js +1 -1
  4. package/index.d.ts +437 -7
  5. package/index.js +1 -1
  6. package/is-valid-type.js +1 -1
  7. package/lexer.js +3 -3
  8. package/module.js +1 -1
  9. package/package.json +6 -1
  10. package/parse-imports-exports.js +1 -1
  11. package/parse-module.js +1 -1
  12. package/parse-sections.js +1 -1
  13. package/parse.js +1 -1
  14. package/runes.js +1 -1
  15. package/scope.d.ts +1792 -0
  16. package/scope.js +1 -0
  17. package/shared-2by923ar.js +3 -0
  18. package/shared-3371ehgf.js +2 -0
  19. package/shared-4wqe6a27.js +5 -0
  20. package/shared-4zk9ntab.js +2 -0
  21. package/shared-artd3d80.js +2 -0
  22. package/shared-c9gzmr05.js +2 -0
  23. package/shared-h6c4cer7.js +2 -0
  24. package/shared-hjcsmz9f.js +2 -0
  25. package/shared-jxkrk6hx.js +10 -0
  26. package/{shared-k5pfyxpa.js → shared-n0fpkmn8.js} +2 -2
  27. package/shared-n1wnwhk8.js +3 -0
  28. package/shared-nbaaegmc.js +2 -0
  29. package/shared-rh41v5ez.js +3 -0
  30. package/shared-shxvsq2a.js +2 -0
  31. package/shared-stdj6se1.js +2 -0
  32. package/{shared-3yc3kmnb.js → shared-v0nj05q2.js} +2 -2
  33. package/shared-vjpq32kx.js +2 -0
  34. package/shared-xyqvjc3m.js +10 -0
  35. package/shared-znzncsf2.js +2 -0
  36. package/typescript.d.ts +3 -2
  37. package/typescript.js +1 -1
  38. package/walk.d.ts +248 -7
  39. package/walk.js +1 -1
  40. package/shared-00hyas4z.js +0 -2
  41. package/shared-40v3xx3k.js +0 -2
  42. package/shared-4y1phpr0.js +0 -3
  43. package/shared-5kdpxrm3.js +0 -5
  44. package/shared-a454y0yc.js +0 -2
  45. package/shared-fcgh2ks8.js +0 -2
  46. package/shared-ff56bedk.js +0 -2
  47. package/shared-np5jnnrw.js +0 -2
  48. package/shared-r6mb2ytj.js +0 -2
  49. package/shared-t30czg6b.js +0 -2
  50. package/shared-tgpdmrqm.js +0 -3
  51. package/shared-wkbh341y.js +0 -2
  52. package/shared-x7fez4k2.js +0 -3
  53. package/shared-yxr92tk5.js +0 -10
  54. package/shared-zd01zsyh.js +0 -10
@@ -1,2 +0,0 @@
1
- import{f,E}from"./shared-5kdpxrm3.js";function w(t){let e=[];return i(t,e),e}function i(t,e){switch(t.type){case"Identifier":e.push(t);return;case"ObjectPattern":for(let r of t.properties)i(r.type==="RestElement"?r.argument:r.value,e);return;case"ArrayPattern":for(let r of t.elements)if(r!==null)i(r,e);return;case"RestElement":i(t.argument,e);return;case"AssignmentPattern":i(t.left,e);return;case"TSParameterProperty":i(t.parameter,e);return;case"TSAsExpression":case"TSNonNullExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":i(t.expression,e)}}function G(t,e){if(t.type!=="Identifier")return!1;if(e===null)return!0;switch(e.type){case"MemberExpression":return e.computed||t===e.object;case"MethodDefinition":return e.computed;case"Property":case"PropertyDefinition":return e.computed||t===e.value;case"ExportSpecifier":case"ImportSpecifier":return t===e.local;case"MetaProperty":case"ImportAttribute":case"ExportAllDeclaration":case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":case"TSInstantiationExpression":case"TSExportAssignment":return t===e.expression;case"TSEnumMember":return t===e.initializer;case"TSParameterProperty":case"TSEnumDeclaration":case"TSImportEqualsDeclaration":return!0;default:return!e.type.startsWith("TS")}}var R={Root:["module","instance","fragment","css"],Script:["attributes","content"],Fragment:["nodes"],Text:[],Comment:[],ExpressionTag:["expression"],HtmlTag:["expression"],ConstTag:["declaration"],DeclarationTag:["declaration"],DebugTag:["identifiers"],RenderTag:["expression"],AttachTag:["expression"],Attribute:["value"],SpreadAttribute:["expression"],AnimateDirective:["expression"],BindDirective:["expression"],ClassDirective:["expression"],LetDirective:["expression"],OnDirective:["expression"],StyleDirective:["value"],TransitionDirective:["expression"],UseDirective:["expression"],Component:["attributes","fragment"],TitleElement:["attributes","fragment"],SlotElement:["attributes","fragment"],RegularElement:["attributes","fragment"],SvelteBody:["attributes","fragment"],SvelteBoundary:["attributes","fragment"],SvelteComponent:["expression","attributes","fragment"],SvelteDocument:["attributes","fragment"],SvelteElement:["tag","attributes","fragment"],SvelteFragment:["attributes","fragment"],SvelteHead:["attributes","fragment"],SvelteOptions:["attributes","fragment"],SvelteSelf:["attributes","fragment"],SvelteWindow:["attributes","fragment"],IfBlock:["test","consequent","alternate"],EachBlock:["expression","context","key","body","fallback"],AwaitBlock:["expression","pending","value","then","error","catch"],KeyBlock:["expression","fragment"],SnippetBlock:["expression","parameters","body"],StyleSheet:["attributes","children"],Rule:["prelude","block"],Atrule:["block"],SelectorList:["children"],ComplexSelector:["children"],RelativeSelector:["combinator","selectors"],Combinator:[],TypeSelector:[],IdSelector:[],ClassSelector:[],AttributeSelector:[],PseudoElementSelector:["args"],PseudoClassSelector:["args"],Percentage:[],Nth:[],NestingSelector:[],Block:["children"],Declaration:[],Program:["body"],ExpressionStatement:["expression"],BlockStatement:["body"],StaticBlock:["body"],EmptyStatement:[],DebuggerStatement:[],WithStatement:["object","body"],ReturnStatement:["argument"],LabeledStatement:["label","body"],BreakStatement:["label"],ContinueStatement:["label"],IfStatement:["test","consequent","alternate"],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],CatchClause:["param","body"],WhileStatement:["test","body"],DoWhileStatement:["body","test"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","typeParameters","params","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],ArrowFunctionExpression:["typeParameters","params","returnType","body"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","implements","body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","implements","body"],ClassBody:["body"],MethodDefinition:["decorators","key","typeParameters","value"],PropertyDefinition:["decorators","key","typeAnnotation","value"],Property:["decorators","key","value"],ThisExpression:[],Super:[],Literal:[],Identifier:["decorators","typeAnnotation"],PrivateIdentifier:[],ArrayExpression:["elements"],ObjectExpression:["properties"],UnaryExpression:["argument"],UpdateExpression:["argument"],BinaryExpression:["left","right"],LogicalExpression:["left","right"],AssignmentExpression:["left","right"],MemberExpression:["object","property"],ConditionalExpression:["test","consequent","alternate"],CallExpression:["callee","typeArguments","arguments"],NewExpression:["callee","typeArguments","arguments"],SequenceExpression:["expressions"],TemplateLiteral:["quasis","expressions"],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:[],SpreadElement:["argument"],RestElement:["decorators","argument","typeAnnotation"],YieldExpression:["argument"],AwaitExpression:["argument"],ImportExpression:["source","options","arguments"],ChainExpression:["expression"],MetaProperty:["meta","property"],ObjectPattern:["decorators","properties","typeAnnotation"],ArrayPattern:["decorators","elements","typeAnnotation"],AssignmentPattern:["decorators","left","right"],ImportDeclaration:["specifiers","source","attributes"],ImportSpecifier:["imported","local"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportAttribute:["key","value"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ExportDefaultDeclaration:["declaration"],ExportAllDeclaration:["exported","source","attributes"],Decorator:["expression"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterDeclaration:["params"],TSTypeParameterInstantiation:["params"],TSTypeParameter:["constraint","default"],TSAnyKeyword:[],TSBigIntKeyword:[],TSBooleanKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSNamedTupleMember:["label","elementType"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSLiteralType:["literal"],TSTypeReference:["typeName","typeArguments"],TSQualifiedName:["left","right"],TSTypeQuery:["exprName","typeArguments"],TSImportType:["argument","qualifier","typeArguments"],TSTypeLiteral:["members"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation"],TSFunctionType:["typeParameters","parameters","typeAnnotation"],TSConstructorType:["typeParameters","parameters","typeAnnotation"],TSIndexSignature:["decorators","parameters","typeAnnotation"],TSTypePredicate:["parameterName","typeAnnotation"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSDeclareFunction:["id","typeParameters","params","returnType"],TSDeclareMethod:["typeParameters","params","returnType"],TSParameterProperty:["parameter"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSNonNullExpression:["expression"],TSInstantiationExpression:["expression","typeArguments"]},n=["attributes","fragment"],yt={Root:["fragment"],Fragment:["nodes"],Text:[],Comment:[],ExpressionTag:[],HtmlTag:[],ConstTag:[],DeclarationTag:[],DebugTag:[],RenderTag:[],AttachTag:[],Attribute:["value"],SpreadAttribute:[],AnimateDirective:[],BindDirective:[],ClassDirective:[],LetDirective:[],OnDirective:[],StyleDirective:["value"],TransitionDirective:[],UseDirective:[],Component:n,TitleElement:n,SlotElement:n,RegularElement:n,SvelteBody:n,SvelteBoundary:n,SvelteComponent:n,SvelteDocument:n,SvelteElement:n,SvelteFragment:n,SvelteHead:n,SvelteOptions:n,SvelteSelf:n,SvelteWindow:n,IfBlock:["consequent","alternate"],EachBlock:["body","fallback"],AwaitBlock:["pending","then","catch"],KeyBlock:["fragment"],SnippetBlock:["body"]},g=Object.assign(Object.create(null),R),b=[],fe=Symbol("sveast.walk.stop"),d=Symbol("sveast.walk.skip");function O(t,e,r){m(t,null,null,null,e,r===void 0||r===R?A:(a)=>Object.hasOwn(r,a.type)?r[a.type]:void 0)}function m(t,e,r,a,s,l){let p=l(t);if(p===void 0)throw Error(`unknown node type: ${t.type}`);let o=s.enter?.(t,e,r,a);if(o===fe)return!0;if(o!==d){if(o!==t&&f(o))return v(o,e,r,a,s,l);let x=E(t);for(let u=0;u<p.length;u++){let S=p[u],c=x[S];if(Array.isArray(c))for(let y=0;y<c.length;y++){let T=c[y];if(f(T)&&m(T,t,S,y,s,l))return!0}else if(f(c)&&m(c,t,S,null,s,l))return!0}}return s.leave?.(t,e,r,a)===fe}function A(t){let e=t.type;if(e==="Identifier")return t.typeAnnotation===void 0&&t.decorators===void 0?b:R.Identifier;if(e==="Literal")return R.Literal;if(e==="Text")return R.Text;return g[e]}function v(t,e,r,a,s,l){if(e===null||r===null)throw Error("walk can't replace the node it was called with");let p=E(e),o=p[r];if(a===null)p[r]=t;else if(Array.isArray(o))o[a]=t;return m(t,e,r,a,s,l)}
2
- export{w,G,R,yt,fe,d,O};
@@ -1,2 +0,0 @@
1
- import{I,o}from"./shared-zd01zsyh.js";var N=/(?:\s|\/\/.*|\/\*[\s\S]*?\*\/)*/g,F=new Map([["any","TSAnyKeyword"],["bigint","TSBigIntKeyword"],["boolean","TSBooleanKeyword"],["never","TSNeverKeyword"],["null","TSNullKeyword"],["number","TSNumberKeyword"],["object","TSObjectKeyword"],["string","TSStringKeyword"],["symbol","TSSymbolKeyword"],["undefined","TSUndefinedKeyword"],["unknown","TSUnknownKeyword"],["void","TSVoidKeyword"]]),O=new Set("public private protected readonly declare abstract override static accessor".split(" ")),K=new Set("public private protected readonly override".split(" ")),V=new Set("var let const function class abstract enum interface type namespace module global".split(" ")),H=new Set("var let const function class interface enum".split(" ")),k=new Set(["TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"]),L=1,U=32,j=256,z=0,G=1,f=2,Q=3,W=4,T=6,C=7,D=256,E=1024,Y=8|E,X=f|D,w=1,J=2,P=40,Z=41,tt=44,_=46,v=58,y=61,R=60,m=123,et=91,S=42,st=35,b=34,A=39,it=SyntaxError("speculative parse failed"),q=I((x)=>{let{tokTypes:s,keywordTypes:M,isIdentifierChar:B,isIdentifierStart:u}=x.acorn,d=new x.acorn.TokenType("@");class g extends x{inType=!1;$4=!1;$5=!1;$7=null;$l=null;$m=!1;$n=!1;$f=null;$9=[[]];$o=0;$t=0;$j=-1;constructor(t,e,r){super(t,e,r);let i=this.options.onComment;if(typeof i==="function")this.options.onComment=(n,a,h,p,c,l)=>{if(h<this.$t)return;this.$t=p,i.call(this,n,a,h,p,c,l)}}reset(){this.inType=!1,this.$4=!1,this.$5=!1,this.$7=null,this.$l=null,this.$m=!1,this.$n=!1,this.$f=null,this.$9=[[]],this.$o=0,this.$t=0,this.$j=-1}getTokenFromCode(t){if(t===64)return++this.pos,this.finishToken(d);return super.getTokenFromCode(t)}readToken_lt_gt(t){if(this.inType)return this.finishOp(s.relational,1);return super.readToken_lt_gt(t)}$a(t){let e=this.inType;this.inType=!0;let r=t();if(this.inType=e,!e&&this.type===s.relational)this.pos=this.start,this.nextToken();return r}$1(){return this.type===s.relational&&this.value==="<"}$p(){if(this.type===s.bitShift&&this.value==="<<")this.pos=this.start+1,this.finishToken(s.relational,"<");return this.$1()}$c(){return this.type===s.relational&&this.value===">"}$u(){return this.type===s.prefix&&this.value==="!"}hasPrecedingLineBreak(){return this.$14(this.lastTokEnd,this.start)}$14(t,e){for(let r=t;r<e;r++){let i=this.input.charCodeAt(r);if(i===10||i===13||i===8232||i===8233)return!0}return!1}$d(t=this.pos){return N.lastIndex=t,N.exec(this.input),N.lastIndex}$2(){return this.input.charCodeAt(this.$d())}$3(){let t=this.$d(),e=t;while(e<this.input.length&&B(this.input.charCodeAt(e)))e++;return this.input.slice(t,e)}$b(){return!this.$14(this.pos,this.$d())}$15(){return this.$b()&&u(this.$2())&&!Object.hasOwn(M,this.$3())}$16(){return{pos:this.pos,type:this.type,value:this.value,start:this.start,end:this.end,startLoc:this.startLoc,endLoc:this.endLoc,lastTokStart:this.lastTokStart,lastTokEnd:this.lastTokEnd,lastTokStartLoc:this.lastTokStartLoc,lastTokEndLoc:this.lastTokEndLoc,curLine:this.curLine,lineStart:this.lineStart,context:this.context.slice(),exprAllowed:this.exprAllowed,containsEsc:this.containsEsc,inType:this.inType,$4:this.$4,$5:this.$5,$7:this.$7,scopes:this.scopeStack.length,privateNames:this.privateNameStack.length,labels:this.labels,labelCount:this.labels.length,strict:this.strict,yieldPos:this.yieldPos,awaitPos:this.awaitPos,awaitIdentPos:this.awaitIdentPos,potentialArrowAt:this.potentialArrowAt,potentialArrowInForAwait:this.potentialArrowInForAwait}}$17(t){this.pos=t.pos,this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.startLoc=t.startLoc,this.endLoc=t.endLoc,this.lastTokStart=t.lastTokStart,this.lastTokEnd=t.lastTokEnd,this.lastTokStartLoc=t.lastTokStartLoc,this.lastTokEndLoc=t.lastTokEndLoc,this.curLine=t.curLine,this.lineStart=t.lineStart,this.context=t.context,this.exprAllowed=t.exprAllowed,this.containsEsc=t.containsEsc,this.inType=t.inType,this.$4=t.$4,this.$5=t.$5,this.$7=t.$7,this.scopeStack.length=t.scopes,this.privateNameStack.length=t.privateNames,this.labels=t.labels,this.labels.length=t.labelCount,this.strict=t.strict,this.yieldPos=t.yieldPos,this.awaitPos=t.awaitPos,this.awaitIdentPos=t.awaitIdentPos,this.potentialArrowAt=t.potentialArrowAt,this.potentialArrowInForAwait=t.potentialArrowInForAwait}raise(t,e){if(this.$o>0)throw it;return super.raise(t,e)}$1z(t,e){try{super.raise(t,e)}catch(r){if(r instanceof SyntaxError)r.$20=!0;throw r}throw Error("unreachable")}$g(t,e=!1){let r=this.$16();this.$o++;try{let i=t();if(e||i===void 0)this.$17(r);return i}catch(i){if(!(i instanceof SyntaxError)||!e&&i.$20)throw i;this.$17(r);return}finally{this.$o--}}$v(t){return this.$g(t,!0)===!0}$18(t){if(t.end=this.lastTokEnd,this.options.locations)t.loc.end=this.lastTokEndLoc}$q(t,e){if(t.start=e.start,this.options.locations)t.loc.start=e.loc.start}$6(t=!1){let e=this.startNode();return e.typeAnnotation=this.$a(()=>(this.next(),t?this.$21():this.$0())),this.finishNode(e,"TSTypeAnnotation")}$h(t,e){if(e&&this.eat(s.question))t.optional=!0,this.$18(t);if(this.type===s.colon)t.typeAnnotation=this.$6(),this.$18(t);return t}$21(){if(this.type!==s.name&&this.type!==s._this)return this.$0();if(this.isContextual("asserts")&&this.$b()&&u(this.$2())){let t=this.startNode();if(this.next(),t.parameterName=this.type===s._this?this.$w():this.parseIdent(),this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.$x(t,!0);return t.asserts=!0,t.typeAnnotation=null,this.finishNode(t,"TSTypePredicate")}if(this.$3()==="is"&&this.$b()){let t=this.startNode();return t.parameterName=this.type===s._this?this.$w():this.parseIdent(!0),this.$x(t,!1)}return this.$0()}$x(t,e){this.next();let r=this.startNode();return r.typeAnnotation=this.$0(),t.typeAnnotation=this.finishNode(r,"TSTypeAnnotation"),t.asserts=e,this.finishNode(t,"TSTypePredicate")}$w(){let t=this.startNode();return this.next(),this.finishNode(t,"TSThisType")}parseWholeType(){this.inType=!0,this.nextToken();let t=this.$0();if(this.type!==s.eof)this.unexpected();return t}$0(){let t=this.$19();if(this.$4||this.type!==s._extends||this.hasPrecedingLineBreak())return t;let e=this.startNodeAt(t.start,t.loc?.start);return this.next(),e.checkType=t,e.extendsType=this.$i(!0,()=>this.$19()),this.expect(s.question),e.trueType=this.$i(!1,()=>this.$0()),this.expect(s.colon),e.falseType=this.$i(!1,()=>this.$0()),this.finishNode(e,"TSConditionalType")}$i(t,e){let r=this.$4;this.$4=t;let i=e();return this.$4=r,i}$19(){if(this.$22())return this.$1a("TSFunctionType");if(this.type===s._new||this.isContextual("abstract")&&this.$3()==="new")return this.$1a("TSConstructorType");return this.$1b("TSUnionType",s.bitwiseOR,()=>this.$1b("TSIntersectionType",s.bitwiseAND,()=>this.$1c()))}$1a(t){let e=this.startNode();if(t==="TSConstructorType"){if(e.abstract=this.isContextual("abstract"),e.abstract)this.next();this.next()}return this.$i(!1,()=>this.$r(e,s.arrow)),this.finishNode(e,t)}$r(t,e){if(this.$1())t.typeParameters=this.$8();if(this.expect(s.parenL),t.parameters=this.parseBindingList(s.parenR,!1,!0),this.type===e)t.typeAnnotation=this.$6(!0);else if(e===s.arrow)this.unexpected()}$22(){if(this.$1())return!0;if(this.type!==s.parenL)return!1;return this.$v(()=>{if(this.next(),this.type===s.parenR||this.type===s.ellipsis)return!0;if(this.type===s.name||this.type===s._this)this.next();else if(this.type===s.braceL||this.type===s.bracketL)this.parseBindingAtom();else return!1;let t=this.type;if(t===s.colon||t===s.comma||t===s.question||t===s.eq)return!0;if(t!==s.parenR)return!1;return this.next(),this.type===s.arrow})}$1b(t,e,r){let i=this.startNode(),n=this.eat(e),a=[];do a.push(r());while(this.eat(e));if(a.length===1&&!n)return a[0];return i.types=a,this.finishNode(i,t)}$1c(){if(this.type===s.name&&!this.containsEsc){let t=this.value;if(t==="keyof"||t==="unique"||t==="readonly"){let e=this.startNode();return this.next(),e.operator=t,e.typeAnnotation=this.$1c(),this.finishNode(e,"TSTypeOperator")}if(t==="infer"){let e=this.startNode();this.next();let r=this.startNode();r.name=this.$y();let i=this.$g(()=>this.$23());if(i)r.constraint=i;return e.typeParameter=this.finishNode(r,"TSTypeParameter"),this.finishNode(e,"TSInferType")}}return this.$i(!1,()=>this.$24())}$23(){if(!this.eat(s._extends))return;let t=this.$i(!0,()=>this.$0());if(this.$4||this.type!==s.question)return t;return}$y(){if(this.type!==s.name&&!this.type.keyword)this.unexpected();let t=this.type===s.name?this.value:this.type.keyword;return this.next(),t}$24(){let t=this.$25();while(!this.hasPrecedingLineBreak()&&this.eat(s.bracketL)){let e=this.startNodeAt(t.start,t.loc?.start);if(this.eat(s.bracketR))e.elementType=t,t=this.finishNode(e,"TSArrayType");else e.objectType=t,e.indexType=this.$0(),this.expect(s.bracketR),t=this.finishNode(e,"TSIndexedAccessType")}return t}$25(){switch(this.type){case s.name:case s._void:case s._null:{let t=F.get(this.value);if(t&&(this.type!==s.name||!this.containsEsc&&this.$2()!==_)){let e=this.startNode();return this.next(),this.finishNode(e,t)}return this.$1d()}case s.string:case s.num:case s._true:case s._false:{let t=this.startNode();return t.literal=this.parseExprAtom(),this.finishNode(t,"TSLiteralType")}case s.plusMin:{if(this.value!=="-")break;let t=this.startNode(),e=this.startNode();if(this.next(),this.type!==s.num)this.unexpected();return e.operator="-",e.prefix=!0,e.argument=this.parseExprAtom(),t.literal=this.finishNode(e,"UnaryExpression"),this.finishNode(t,"TSLiteralType")}case s.backQuote:return this.$26();case s._this:{let t=this.$w();if(this.isContextual("is")&&!this.hasPrecedingLineBreak()){let e=this.startNodeAt(t.start,t.loc?.start);return e.parameterName=t,this.$x(e,!1)}return t}case s._typeof:return this.$27();case s._import:return this.$1e();case s.braceL:return this.$28()?this.$29():this.$2a();case s.bracketL:return this.$2b();case s.parenL:{let t=this.startNode();return this.next(),t.typeAnnotation=this.$0(),this.expect(s.parenR),this.finishNode(t,"TSParenthesizedType")}default:if(this.type.keyword)return this.$1d()}return this.unexpected()}$1d(){let t=this.startNode();if(t.typeName=this.$k(),!this.hasPrecedingLineBreak()&&this.$1())t.typeArguments=this.$e();return this.finishNode(t,"TSTypeReference")}$k(){let t=this.parseIdent(!0);while(this.eat(s.dot)){let e=this.startNodeAt(t.start,t.loc?.start);e.left=t,e.right=this.parseIdent(!0),t=this.finishNode(e,"TSQualifiedName")}return t}$27(){let t=this.startNode();if(this.next(),t.exprName=this.type===s._import?this.$1e():this.$k(),!this.hasPrecedingLineBreak()&&this.$1())t.typeArguments=this.$e();return this.finishNode(t,"TSTypeQuery")}$1e(){let t=this.startNode();if(this.next(),t.argument=this.$1f(),this.eat(s.dot))t.qualifier=this.$k();if(this.$1())t.typeArguments=this.$e();return this.finishNode(t,"TSImportType")}$z(){if(this.type!==s.string)this.unexpected();return this.parseExprAtom()}$1f(){this.expect(s.parenL);let t=this.$z();return this.expect(s.parenR),t}$26(){let t=this.startNode(),e=this.startNode();this.next(),e.expressions=[];let r=this.parseTemplateElement({isTagged:!1});e.quasis=[r];while(!r.tail){if(this.type===s.eof)this.raise(this.pos,"Unterminated template literal");this.expect(s.dollarBraceL),e.expressions.push(this.$0()),this.expect(s.braceR),r=this.parseTemplateElement({isTagged:!1}),e.quasis.push(r)}return this.next(),t.literal=this.finishNode(e,"TemplateLiteral"),this.finishNode(t,"TSLiteralType")}$28(){return this.$v(()=>{if(this.next(),this.type===s.plusMin)return this.next(),this.isContextual("readonly");if(this.isContextual("readonly"))this.next();if(this.type!==s.bracketL)return!1;if(this.next(),this.type!==s.name)return!1;return this.next(),this.type===s._in})}$29(){let t=this.startNode();if(this.expect(s.braceL),this.type===s.plusMin)t.readonly=this.value,this.next(),this.expectContextual("readonly");else if(this.eatContextual("readonly"))t.readonly=!0;this.expect(s.bracketL);let e=this.startNode();if(e.name=this.$y(),this.expect(s._in),e.constraint=this.$0(),t.typeParameter=this.finishNode(e,"TSTypeParameter"),t.nameType=this.eatContextual("as")?this.$0():null,this.expect(s.bracketR),this.type===s.plusMin)t.optional=this.value,this.next(),this.expect(s.question);else if(this.eat(s.question))t.optional=!0;if(this.eat(s.colon))t.typeAnnotation=this.$0();return this.semicolon(),this.expect(s.braceR),this.finishNode(t,"TSMappedType")}$2a(){let t=this.startNode();return t.members=this.$1g(),this.finishNode(t,"TSTypeLiteral")}$1g(){this.expect(s.braceL);let t=[];while(!this.eat(s.braceR))t.push(this.$2c());return t}$2c(){let t=this.startNode(),e="TSPropertySignature",r=this.type===s._new?this.$2():-1;if(this.type===s.parenL||this.$1())e="TSCallSignatureDeclaration",this.$r(t,s.colon);else if(r===P||r===R)e="TSConstructSignatureDeclaration",this.next(),this.$r(t,s.colon);else{let i=this.type===s._new?this.parseIdent(!0):null;if(this.isContextual("readonly")&&this.$s(!0))this.next(),t.readonly=!0;if(this.type===s.bracketL&&this.$1h())return this.$1i(t);let n="method";if(i)t.key=i;else{if((this.isContextual("get")||this.isContextual("set"))&&this.$s(!1))n=this.value,this.next();this.parsePropertyName(t)}if(this.eat(s.question))t.optional=!0;if(this.type===s.parenL||this.$1()){if(e="TSMethodSignature",n!=="method")t.kind=n;this.$r(t,s.colon),t.kind=n}else if(this.type===s.colon)t.typeAnnotation=this.$6()}return this.$1j(),this.finishNode(t,e)}$1j(){if(!this.eat(s.comma))this.semicolon()}$1h(){return this.$v(()=>{if(this.next(),this.type!==s.name)return!1;return this.next(),this.type===s.colon})}$1i(t){if(this.expect(s.bracketL),t.parameters=[this.$h(this.parseIdent(),!1)],this.expect(s.bracketR),this.type===s.colon)t.typeAnnotation=this.$6();return this.$1j(),this.finishNode(t,"TSIndexSignature")}$2b(){let t=this.startNode();this.expect(s.bracketL),t.elementTypes=[];while(!this.eat(s.bracketR))if(t.elementTypes.push(this.$2d()),this.type!==s.bracketR)this.expect(s.comma);return this.finishNode(t,"TSTupleType")}$2d(){let t=this.start,e=this.startLoc,r=this.eat(s.ellipsis),i;if((this.type===s.name||this.type.keyword)&&this.$2e()){let n=this.startNode();n.label=this.parseIdent(!0),n.optional=this.eat(s.question),this.expect(s.colon),n.elementType=this.$0(),i=this.finishNode(n,"TSNamedTupleMember")}else if(i=this.$0(),this.eat(s.question)){let n=this.startNodeAt(i.start,i.loc?.start);n.typeAnnotation=i,i=this.finishNode(n,"TSOptionalType")}if(r){let n=this.startNodeAt(t,e);n.typeAnnotation=i,i=this.finishNode(n,"TSRestType")}return i}$2e(){let t=this.$d();if(this.input.charCodeAt(t)===63)t=this.$d(t+1);return this.input.charCodeAt(t)===v}$8(){return this.$a(()=>{let t=this.startNode();this.next(),t.params=[];while(!this.$c()){let e=this.startNode();while((this.type===s._const||this.type===s._in||this.isContextual("out"))&&u(this.$2()))e[this.value]=!0,this.next();if(e.name=this.$y(),this.eat(s._extends))e.constraint=this.$0();if(this.eat(s.eq))e.default=this.$0();if(t.params.push(this.finishNode(e,"TSTypeParameter")),!this.$c()){if(this.expect(s.comma),this.$c())t.extra={trailingComma:this.lastTokStart}}}if(this.next(),t.params.length===0)this.$1z(this.start,"Type parameter list cannot be empty.");return this.finishNode(t,"TSTypeParameterDeclaration")})}$e(){return this.$a(()=>{let t=this.startNode();this.next(),t.params=[];while(!this.$c())if(t.params.push(this.$0()),!this.$c())this.expect(s.comma);if(t.params.length===0)this.unexpected();return this.next(),this.finishNode(t,"TSTypeParameterInstantiation")})}$1k(){let t=[];do{let e=this.startNode();if(e.expression=this.$k(),this.$1())e.typeParameters=this.$e();t.push(this.finishNode(e,"TSExpressionWithTypeArguments"))}while(this.eat(s.comma));return t}$1l(t=!1){if(this.type!==s.name||this.containsEsc){if(this.type===s._const&&this.$3()==="enum")return this.$10(this.startNode());return}if(!this.$2f(this.value))return;if(this.value==="declare")return this.$2g(t);return this.$1m(this.startNode(),this.value)}$2f(t){switch(t){case"interface":case"type":case"namespace":return this.$15();case"enum":return u(this.$2());case"abstract":return this.$b()&&this.$3()==="class";case"module":{let e=this.$2();return this.$b()&&(e===b||e===A||u(e))}case"declare":return this.$b()&&V.has(this.$3());case"global":return this.$b()&&this.$2()===m}return!1}$1m(t,e){switch(e){case"interface":return this.$1n(t);case"type":return this.$2h(t);case"enum":return this.$10(t);case"abstract":return this.$1o(t,!0);case"global":return t.global=!0,t.id=this.parseIdent(),t.body=this.$11(),this.finishNode(t,"TSModuleDeclaration")}return this.$2i(t)}$2g(t){let e=this.$5;this.$5=!0;let r=this.startNode();this.next();let i=this.value;if(i==="const"&&this.$3()==="enum")r.const=!0;if(!t&&H.has(i))r.declare=!0;let n;if(r.const)n=this.$10(r);else if(i==="var"||i==="let"||i==="const")n=this.parseVarStatement(r,i,!0);else if(i==="function")this.next(),n=this.parseFunction(r,w,!1,!1);else if(i==="class")n=this.parseClass(r,!0);else n=this.$1m(r,i);return n.declare=!0,this.$5=e,n}$1o(t,e){return this.next(),t.abstract=!0,this.parseClass(t,e)}$1n(t){if(this.next(),t.id=this.parseIdent(),this.checkLValSimple(t.id,C),this.$1())t.typeParameters=this.$8();return this.$a(()=>{if(this.eat(s._extends))t.extends=this.$1k();let e=this.startNode();e.body=this.$1g(),t.body=this.finishNode(e,"TSInterfaceBody")}),this.finishNode(t,"TSInterfaceDeclaration")}$2h(t){if(this.next(),t.id=this.parseIdent(),this.checkLValSimple(t.id,T),this.$1())t.typeParameters=this.$8();return t.typeAnnotation=this.$a(()=>(this.expect(s.eq),this.$0())),this.semicolon(),this.finishNode(t,"TSTypeAliasDeclaration")}$10(t){if(this.type===s._const)t.const=!0,this.next();this.next(),t.id=this.parseIdent(),this.checkLValSimple(t.id,X),this.expect(s.braceL),t.members=[];while(!this.eat(s.braceR)){let e=this.startNode();if(e.id=this.type===s.string?this.parseExprAtom():this.parseIdent(!0),this.eat(s.eq))e.initializer=this.parseMaybeAssign();if(t.members.push(this.finishNode(e,"TSEnumMember")),this.type!==s.braceR)this.expect(s.comma)}return this.finishNode(t,"TSEnumDeclaration")}$2i(t){if(this.next(),this.type===s.string){if(t.id=this.parseExprAtom(),this.type===s.braceL)t.body=this.$11();else this.semicolon();return this.finishNode(t,"TSModuleDeclaration")}return t.id=this.parseIdent(),this.checkLValSimple(t.id,Y),this.$1p(t)}$1p(t){if(this.eat(s.dot)){let e=this.startNode();e.id=this.parseIdent(),t.body=this.$1p(e)}else t.body=this.$11();return this.finishNode(t,"TSModuleDeclaration")}$11(){this.enterScope(j);let t=this.startNode();this.enterScope(0),this.expect(s.braceL),t.body=[];while(!this.eat(s.braceR))t.body.push(this.parseStatement(null,!0));return this.exitScope(),this.exitScope(),this.finishNode(t,"TSModuleBlock")}$1q(t,e){if(t.isExport=e,t.id=this.parseIdent(),this.checkLValSimple(t.id,f),this.expect(s.eq),this.isContextual("require")&&this.$2()===P){let r=this.startNode();this.next(),r.expression=this.$1f(),t.moduleReference=this.finishNode(r,"TSExternalModuleReference")}else t.moduleReference=this.$k();return this.semicolon(),this.finishNode(t,"TSImportEqualsDeclaration")}$2j(){let t=this.$d();if(this.input.charCodeAt(t)!==y)return!1;let e=this.input.charCodeAt(t+1);return e!==y&&e!==62}parseStatement(t,e,r){if(this.type===d)this.$1r(!0);let i=this.$1l();if(i)return i;return super.parseStatement(t,e,r)}parseVarStatement(t,e,r){return super.parseVarStatement(t,e,r||this.$5)}parseVarId(t,e){if(super.parseVarId(t,e),t.id.type==="Identifier"&&this.$u()&&!this.hasPrecedingLineBreak())this.next(),t.definite=!0;this.$h(t.id,!1)}parseCatchClauseParam(){let t=this.$h(this.parseBindingAtom(),!1),e=t.type==="Identifier";return this.enterScope(e?U:0),this.checkLValPattern(t,e?W:f),this.expect(s.parenR),t}parseImport(t){if(this.next(),t.importKind="value",this.type===s.string)t.specifiers=[],t.source=this.parseExprAtom();else{if(this.isContextual("type")){let e=this.$2();if(e===m||e===S||u(e)&&this.$3()!=="from")t.importKind="type",this.next()}if(this.type===s.name&&this.$2j())return this.$1q(t,!1);t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.$z()}return this.$1s(t),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseWithClause(){if(this.isContextual("assert")&&!this.hasPrecedingLineBreak())this.type=s._with;return this.type===s._with?super.parseWithClause():void 0}$1s(t){let e=this.parseWithClause();if(e)t.attributes=e}parseImportSpecifier(){return this.$1t("importKind",()=>super.parseImportSpecifier())}parseExportSpecifier(t){return this.$1t("exportKind",()=>super.parseExportSpecifier(t))}$1t(t,e){let r=this.isContextual("type")?this.$2():-1;if(r===b||r===A||u(r)&&this.$3()!=="as"){let n=this.startNode();this.next();let a=e();return this.$q(a,n),a[t]="type",a}let i=e();return i[t]="value",i}parseExport(t,e){if(this.next(),this.eat(s._import)){if(t.importKind="value",this.isContextual("type")&&u(this.$2())&&this.$3()!=="from")t.importKind="type",this.next();return this.$1q(t,!0)}if(this.eat(s.eq))return t.expression=this.parseExpression(),this.semicolon(),this.finishNode(t,"TSExportAssignment");if(this.eatContextual("as"))return this.expectContextual("namespace"),t.id=this.parseIdent(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration");if(t.exportKind="value",this.isContextual("type")){let n=this.$2();if(n===m||n===S)t.exportKind="type",this.next()}if(this.eat(s.star))return this.parseExportAllDeclaration(t,e);if(this.eat(s._default)){if(this.isContextual("interface")&&this.$15())t.declaration=this.$1n(this.startNode());else if(this.isContextual("abstract")&&this.$3()==="class")t.declaration=this.$1o(this.startNode(),"nullableID");else t.declaration=this.parseExportDefaultDeclaration();return this.finishNode(t,"ExportDefaultDeclaration")}let r=this.isContextual("declare"),i=this.$1l(!0);if(i||this.shouldParseExportStatement()){if(t.declaration=i??this.parseStatement(null),r||t.declaration.type==="TSInterfaceDeclaration"||t.declaration.type==="TSTypeAliasDeclaration")t.exportKind="type";return t.specifiers=[],t.source=null,this.finishNode(t,"ExportNamedDeclaration")}if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))t.source=this.$z(),this.$1s(t);else{for(let n of t.specifiers)if(this.checkUnreserved(n.local),this.checkLocalExport(n.local),n.local.type==="Literal")this.raise(n.local.start,"A string literal cannot be used as an exported binding without `from`.");t.source=null}return this.semicolon(),this.finishNode(t,"ExportNamedDeclaration")}parseFunction(t,e,r,i,n){let a=e&w;if(a)this.$f=t,this.$j=t.start;super.parseFunction(t,e,r,i,n),this.$f=null;let h=!t.body;if(h)t.type="TSDeclareFunction";if(a&&t.id){if(h){if(this.$5&&this.currentScope().flags&L)this.declareName(t.id.name,E,t.id.start);this.checkLValSimple(t.id,z)}else if(!(e&J)){let p=Q;if(this.strict||t.generator||t.async)p=this.treatFunctionsAsVar?G:f;this.checkLValSimple(t.id,p)}}return t}parseFunctionParams(t){if(this.$1())t.typeParameters=this.$8();if(super.parseFunctionParams(t),this.type===s.colon)t.returnType=this.$6(!0)}parseFunctionBody(t,e,r,i){if(r&&this.type===s.colon)t.returnType=this.$6(!0);if(e||this.type===s.braceL||t.start!==this.$j){super.parseFunctionBody(t,e,r,i);return}this.semicolon(),this.exitScope()}parseMethod(t,e,r){let i=this.$l;this.$l=null;let n=super.parseMethod(t,e,r);if(!n.body)n.type="TSDeclareMethod";if(i)n.typeParameters=i;return n}parseBindingList(t,e,r,i){let n=i===!0||this.$m;return this.$m=!1,super.parseBindingList(t,e,r,n)}$s(t){if(!t&&!this.$b())return!1;let e=this.$2();return e===et||e===m||e===S||e===_||e===st||e===b||e===A||e>=48&&e<=57||u(e)}parseAssignableListItem(t){let e=this.$12(),r=this.start,i=this.startLoc,n,a=!1,h=!1;if(t)while(this.type===s.name&&K.has(this.value)&&!this.containsEsc&&this.$s(!1)){if(this.value==="readonly")a=!0;else if(this.value==="override")h=!0;else n=this.value;this.next()}let p;if(this.type===s._this)p=this.startNode(),p.name="this",this.next(),this.finishNode(p,"Identifier");else p=this.parseBindingAtom();let c=this.type===s.eq?this.parseMaybeDefault(r,i,p):this.parseMaybeDefault(p.start,p.loc?.start,this.$h(p,!0));if(e.length>0)c.decorators=e;if(!n&&!a&&!h)return c;let l=this.startNodeAt(r,i);if(n)l.accessibility=n;if(a)l.readonly=!0;if(h)l.override=!0;return l.parameter=c,this.finishNode(l,"TSParameterProperty")}parseBindingListItem(t){if(t.type==="RestElement")this.$h(t,!0);return t}checkLValSimple(t,e,r){if(this.$f&&t===this.$f.id){this.$f=null;return}if(!e&&k.has(t.type)){this.checkLValSimple(t.expression,e,r);return}switch(t.type){case"TSParameterProperty":this.checkLValInnerPattern(t.parameter,e,r);return;case"Identifier":if(t.name==="this")return}super.checkLValSimple(t,e,r)}toAssignable(t,e,r){if(t&&!e&&k.has(t.type))return t;return super.toAssignable(t,e,r)}declareName(t,e,r){let i=this.currentScope();if(e&E){this.$1u(i,t),i.$1v??=[],i.$1v.push(t);return}if(e===T||e===C){if(i.$13??=[],e===T&&o(i.$13,t))this.raise(r,`type '${t}' has already been declared.`);i.$13.push(t),this.$1u(i,t);return}if(e&D){if(i.$1w??=[],o(i.$1w,t))return;super.declareName(t,f,r),i.$1w.push(t);return}super.declareName(t,e,r)}$1u(t,e){if(this.inModule&&t.flags&L)delete this.undefinedExports[e]}checkLocalExport(t){for(let e=this.scopeStack.length-1;e>=0;e--){let r=this.scopeStack[e];if(o(r.$13,t.name)||o(r.$1v,t.name))return}super.checkLocalExport(t)}checkExport(){}raiseRecoverable(t,e){if(e==="Duplicate constructor in the same class")return;super.raiseRecoverable(t,e)}$12(){let t=[];while(this.type===d)t.push(this.$1x());return t}$1r(t){let e=this.$9[this.$9.length-1];while(this.type===d)e.push(this.$1x());if(this.type===s._export){if(!t)this.unexpected()}else if(this.type!==s._class&&!((this.isContextual("abstract")||this.isContextual("declare"))&&this.$3()==="class"))this.raise(this.start,"Leading decorators must be attached to a class declaration.")}$1x(){let t=this.startNode();this.next(),this.$9.push([]);let e=this.start,r=this.startLoc,i;if(this.type===s.parenL){if(this.next(),i=this.parseExpression(),this.expect(s.parenR),this.options.preserveParens){let a=this.startNodeAt(e,r);a.expression=i,i=this.finishNode(a,"ParenthesizedExpression")}}else{i=this.parseIdent(!1);while(this.eat(s.dot)){let a=this.startNodeAt(e,r);a.object=i,a.property=this.parseIdent(!0),a.computed=!1,i=this.finishNode(a,"MemberExpression")}}let n=this.$p()?this.$e():void 0;if(this.eat(s.parenL)){let a=this.startNodeAt(i.start,i.loc?.start);if(a.callee=i,a.arguments=this.parseExprList(s.parenR,!1,!1),n)a.typeArguments=n;i=this.finishNode(a,"CallExpression")}else if(n){let a=this.startNodeAt(i.start,i.loc?.start);a.expression=i,a.typeArguments=n,i=this.finishNode(a,"TSInstantiationExpression")}return t.expression=i,this.$9.pop(),this.finishNode(t,"Decorator")}shouldParseExportStatement(){return this.type===d||super.shouldParseExportStatement()}parseExprAtom(t,e,r){if(this.type===d)this.$1r(!1);return super.parseExprAtom(t,e,r)}parseProperty(t,e){if(t||this.type!==d)return super.parseProperty(t,e);let r=this.$12(),i=super.parseProperty(t,e);if(i.type==="SpreadElement")this.raise(i.start,"Decorators can't be used with SpreadElement");return i.decorators=r,i}parseClassId(t,e){let r=this.$9.length-1,i=this.$9[r];if(i.length>0)t.decorators=i,this.$q(t,i[0]),this.$9[r]=[];if(!this.isContextual("implements")||e===!0)super.parseClassId(t,e);if(this.$1())t.typeParameters=this.$8()}parseClassSuper(t){if(super.parseClassSuper(t),t.superClass&&this.$1())t.superTypeParameters=this.$e();if(this.eatContextual("implements"))t.implements=this.$a(()=>this.$1k())}parseClassElement(t){if(this.type===d){let h=this.$12();if(this.type===s.braceR)this.raise(this.start,"Decorators must be attached to a class element.");let p=this.parseClassElement(t);return p.decorators=h,this.$q(p,h[0]),p}if(this.eat(s.semi))return null;let e=this.startNode();while(this.type===s.name&&O.has(this.value)&&!this.containsEsc&&this.$s(this.value==="static")){let h=this.value;if(this.next(),h==="static"&&this.type===s.braceL)return this.next(),this.parseClassStaticBlock(e),e;if(h==="public"||h==="private"||h==="protected")e.accessibility=h;else e[h]=!0}if(this.type===s.bracketL&&this.$1h())return this.$1i(e);e.static??=!1;let r="",i=!1,n=!1,a="method";if(this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===s.star)&&!this.canInsertSemicolon())n=!0;else r="async";if(!r&&this.eat(s.star))i=!0;if(!r&&!n&&!i){let h=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())a=h;else r=h}if(r)e.computed=!1,e.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),e.key.name=r,this.finishNode(e.key,"Identifier");else this.parseClassElementName(e);if(this.eat(s.question))e.optional=!0;if(this.type===s.parenL||this.$1()||a!=="method"||i||n){let h=e.key,p=!e.static&&!e.computed&&(h.type==="Identifier"&&h.name==="constructor"||h.type==="Literal"&&h.value==="constructor");if(e.kind=p?"constructor":a,this.$1())e.typeParameters=this.$8();this.$m=p,this.$j=this.start,this.parseClassMethod(e,i,n,p&&t)}else{if(!e.optional&&this.$u())this.next(),e.definite=!0;if(this.type===s.colon)e.typeAnnotation=this.$6();this.parseClassField(e)}return e}parseMaybeAssign(t,e,r){if(this.$p()){let i=this.$g(()=>{let n=this.$8(),a=super.parseMaybeAssign(t,e,r);if(a.type!=="ArrowFunctionExpression")return;return a.typeParameters=n,this.$q(a,n),a});if(i)return i}return super.parseMaybeAssign(t,e,r)}parseMaybeUnary(t,e,r,i){if(this.$p()){let n=this.startNode();return n.typeAnnotation=this.$a(()=>{this.next();let a=this.$0();if(!this.$c())this.unexpected();return this.next(),a}),n.expression=this.parseMaybeUnary(null,!1,!1,i),this.finishNode(n,"TSTypeAssertion")}return super.parseMaybeUnary(t,e,r,i)}parseMaybeConditional(t,e){let r=this.start,i=this.startLoc,n=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return n;if(this.type===s.question&&!(n.type==="ArrowFunctionExpression"&&n.start===r)&&!this.$2k()){this.next();let a=this.startNodeAt(r,i);return a.test=n,a.consequent=this.parseMaybeAssign(),this.expect(s.colon),a.alternate=this.parseMaybeAssign(t),this.finishNode(a,"ConditionalExpression")}return n}$2k(){let t=this.$d(),e=this.input.charCodeAt(t);if(e===v||e===tt||e===Z)return!0;return e===y&&this.input.charCodeAt(t+1)!==y}parseParenItem(t){return this.$h(t,!0)}$1y(){if(this.type!==s.colon)return!0;let t=this.$g(()=>{let e=this.$6(!0);return this.type===s.arrow&&!this.canInsertSemicolon()?e:void 0});if(!t)return!1;return this.$7=t,!0}shouldParseArrow(t){return this.$1y()&&super.shouldParseArrow(t)}shouldParseAsyncArrow(){return this.$1y()&&super.shouldParseAsyncArrow()}parseArrowExpression(t,e,r,i){if(this.$7)t.returnType=this.$7,this.$7=null;return super.parseArrowExpression(t,e,r,i)}parseExprList(t,e,r,i){if(!this.$n)return super.parseExprList(t,e,r,i);this.$n=!1;let n=[],a=!0;while(!this.eat(t)){if(a)a=!1;else if(this.expect(s.comma),e&&this.afterTrailingComma(t))break;if(this.type===s.ellipsis){let h=this.parseSpread(i);if(this.eat(s.question))h.optional=!0;if(this.type===s.colon)h.typeAnnotation=this.$6();n.push(h)}else n.push(this.parseMaybeAssign(!1,i,this.parseParenItem))}return n}parseSubscript(t,e,r,i,n,a,h){if(this.$u()&&!this.hasPrecedingLineBreak()){let c=this.startNodeAt(e,r);return this.exprAllowed=!1,this.next(),c.expression=t,this.finishNode(c,"TSNonNullExpression")}if(n&&this.$1()){let c=this.$g(()=>this.$2l(e,r,h));if(c)return c}let p=this.type===s.questionDot&&this.$2()===R;if(this.$1()||p||this.type===s.bitShift&&this.value==="<<"){let c=this.$g(()=>{if(p)this.next();this.$p();let l=this.$e();if(this.type===s.parenL&&!i)return l;if(this.type===s.backQuote)return p?void 0:l;if(p)return;if(this.$c()||this.type===s.bitShift||this.type.startsExpr&&this.type!==s.parenL&&!this.hasPrecedingLineBreak())return;return l});if(c){let l=this.startNodeAt(e,r);if(this.type===s.parenL&&!i){if(this.next(),l.callee=t,l.arguments=this.parseExprList(s.parenR,!0,!1),l.typeArguments=c,p)t.optional=!0;if(p||a)l.optional=p;return this.finishNode(l,"CallExpression")}if(this.type===s.backQuote)return l.tag=t,l.quasi=this.parseTemplate({isTagged:!0}),l.typeArguments=c,this.finishNode(l,"TaggedTemplateExpression");return l.expression=t,l.typeArguments=c,this.finishNode(l,"TSInstantiationExpression")}}if(n&&this.type===s.parenL)this.$n=!0;return super.parseSubscript(t,e,r,i,n,a,h)}$2l(t,e,r){let i=this.startNodeAt(t,e);if(i.typeParameters=this.$8(),this.expect(s.parenL),i.params=this.parseBindingList(s.parenR,!1,!0),this.type===s.colon)i.returnType=this.$6(!0);if(this.type!==s.arrow||this.canInsertSemicolon())return;return this.next(),this.parseArrowExpression(i,i.params,!0,r)}parseDynamicImport(t){if(this.next(),t.source=this.parseMaybeAssign(),this.eat(s.comma)&&this.type!==s.parenR)t.arguments=[this.parseExpression()];return this.expect(s.parenR),this.finishNode(t,"ImportExpression")}parseNew(){let t=super.parseNew();if(t.callee?.type!=="TSInstantiationExpression")return t;let e=this.startNodeAt(t.start,t.loc?.start);return e.callee=t.callee.expression,e.typeArguments=t.callee.typeArguments,e.arguments=t.arguments,this.finishNodeAt(e,"NewExpression",t.end,t.loc?.end)}parseExprOp(t,e,r,i,n){if(s._in.binop>i&&this.type===s.name&&(this.value==="as"||this.value==="satisfies")&&!this.containsEsc&&!this.hasPrecedingLineBreak()){let a=this.value==="satisfies",h=this.startNodeAt(e,r);return h.expression=t,h.typeAnnotation=this.$a(()=>{if(this.next(),!a&&this.type===s._const){let p=this.startNode();return p.typeName=this.parseIdent(!0),this.finishNode(p,"TSTypeReference")}return this.$0()}),this.finishNode(h,a?"TSSatisfiesExpression":"TSAsExpression"),this.parseExprOp(h,e,r,i,n)}return super.parseExprOp(t,e,r,i,n)}parseGetterSetter(t){t.kind=t.key.name,super.parseGetterSetter(t)}parsePropertyValue(t,e,r,i,n,a,h,p){if(!e&&this.$1()){if(this.$l=this.$8(),this.type!==s.parenL)this.unexpected();t.kind="init"}return super.parsePropertyValue(t,e,r,i,n,a,h,p)}}return g});
2
- export{q};
@@ -1,2 +0,0 @@
1
- import{S}from"./shared-k5pfyxpa.js";import{X,te,ie,re}from"./shared-x7fez4k2.js";import{de}from"./shared-tgpdmrqm.js";import{x}from"./shared-3yc3kmnb.js";import{a}from"./shared-00hyas4z.js";function u(t,n,c){let p=te(t,n,c);return y(p),ie(p)}function y(t){let{source:n}=t,{tags:c,comments:p}=de(n),i=t.root.fragment.nodes,f=(e,r)=>{if(r<=e)return;let o=n.slice(e,r),d=o.includes("<")||o.includes("{")?o:S(o,!1,t.entityNames);i.push({type:"Text",start:e,end:r,raw:o,data:d})},s=0,m=0;for(let e of c){for(;m<p.length&&p[m]<e;m+=2){let r=p[m];if(r<s)continue;let o=p[m+1];f(s,r),i.push({type:"Comment",start:r,end:o,data:n.slice(r+4,o-3)}),s=o}if(e<s)continue;f(s,e),t.index=e,X(t);while(t.stack.length>1&&t.index<n.length)re(t);s=t.index}let l=i.filter((e)=>e.type==="SvelteOptions");i.length=0,i.push(...l)}var T={typescript:a,entityNames:x};function ee(t,n){return u(t,n,T)}
2
- export{ee};
@@ -1,2 +0,0 @@
1
- import{T}from"./shared-5kdpxrm3.js";import{j}from"./shared-yxr92tk5.js";function g(e,r,o){return T(e),j({isTypeScript:r.typescript??!1,typescript:o,loc:r.loc??!1,comments:r.comments??!0,root:{comments:[]}},e)}
2
- export{g};
@@ -1,3 +0,0 @@
1
- import{B,s,t,V,C,M,l,v,F}from"./shared-40v3xx3k.js";import{N}from"./shared-4y1phpr0.js";var E="{",G=60,I=62,g=47,_=61,b=123,A=/<(?:script|style|svelte:options)(?![^\s/>])/g,S=/<\/script\s*>/g,O=/\s*>/y,T=/<\/textarea(\s[^>]*)?>/iy,y="</svelte:options";function H(e){let o=(e.charCodeAt(0)===65279?e.slice(1):e).trimEnd(),n={typescript:V(o),instance:null,module:null,css:null,options:null};return W(o,n,null),n}function de(e){let d={tags:[],comments:[]};return W(e,{typescript:!1,instance:null,module:null,css:null,options:null},d),d}function W(e,d,o){let n=R(e),a=[],i=0;while(i<=n){let r=e.charCodeAt(i);if(r===G)i=X(e,i,a,d,o);else if(r===b)i=w(e,i,a);else i++}}function R(e){let d=-1;A.lastIndex=0;for(let o=A.exec(e);o!==null;o=A.exec(e))d=o.index;return d}function L(e,d){return Math.min(N(e,d)+1,e.length)}function w(e,d,o){let n=t(e,d+1),a=e.charCodeAt(n),i=e.charCodeAt(n+1);if(a===35||a===58||a===64||a===g&&i!==g&&i!==42){n++;while(n<e.length){let r=e.charCodeAt(n);if(r<97||r>122)break;n++}if(a===35)o.push(E);else if(a===g){let r=o.lastIndexOf(E);if(r!==-1)o.length=r}}return L(e,n)}function X(e,d,o,n,a){if(e.startsWith("!--",d+1)){let c=e.indexOf("-->",d+4),x=c===-1?e.length:c+3;if(a&&o.length===0)a.comments.push(d,x);return x}if(e.charCodeAt(d+1)===g){let c=d+2,x=e.slice(c,v(e,c,!1)),p=o.lastIndexOf(x);if(p!==-1)o.length=p;return u(e,t(e,c+x.length))}let i=e.slice(d+1,v(e,d+1,!1)),r=t(e,d+1+i.length),m=o[o.length-1];if(m!==void 0&&B(m,i))o.pop();let f=o.length===0;if(a&&f&&(i==="script"||i==="style"||i==="svelte:options"))a.tags.push(d);if(f&&(i==="script"||i==="style")){let c=[];if(r=u(e,Q(e,r,c)),i==="script"){let p=q(e,d,r,c);if(p.context==="module")n.module??=p;else n.instance??=p;return p.end}let x=P(e,d,r,c);return n.css??=x,x.end}let h=f&&i==="svelte:options"?[]:null;if(r=U(e,r,h),e.charCodeAt(r)===g||C(i)){if(e.charCodeAt(r)===g)r++;r=u(e,r)}else{if(r=u(e,r),i==="textarea")return K(e,r);if(i==="script"||i==="style"){let c=`</${i}>`,x=e.indexOf(c,r);return x===-1?e.length:x+c.length}if(h&&e.startsWith(y,r))r=u(e,t(e,r+y.length));else return o.push(i),r}if(h)n.options??={start:d,end:r,attributes:h};return r}function u(e,d){return e.charCodeAt(d)===I?d+1:d}function q(e,d,o,n){S.lastIndex=o;let a=S.exec(e),i=a?a.index:e.length,r=n.some((m)=>m.name==="module"||m.name==="context");return{start:d,end:a?a.index+a[0].length:e.length,context:r?"module":"default",attributes:n,content:{start:o,end:i}}}function P(e,d,o,n){let a=M(e,o),i=a;if(e.startsWith("</style",i)){i+=7,O.lastIndex=i;let r=O.exec(e);if(r)i+=r[0].length}return{start:d,end:i,attributes:n,content:{start:o,end:a}}}function Q(e,d,o){let n=d;for(;;){let a=n,i=v(e,n,!0);if(i===a)return n;n=i;let r=!0;if(e.charCodeAt(n)===_){let m=t(e,n+1),f=e.charCodeAt(m),h=-1;if(l(f)){let x=e.indexOf(e[m],m+1);if(x!==-1)h=x+1}if(h===-1){h=m;while(h<e.length&&e.charCodeAt(h)!==I&&!s(e.charCodeAt(h)))h++}let c=l(f)?1:0;r=e.slice(m+c,h-c),n=h}o.push({name:e.slice(a,i),value:r,start:a,end:n}),n=t(e,n)}}function U(e,d,o){let n=d;for(;;){for(;;){if(e.startsWith("/*",n)){let f=e.indexOf("*/",n+2);n=f===-1?e.length:f+2}else if(e.startsWith("//",n)){let f=e.indexOf(`
2
- `,n+2);n=f===-1?e.length:f}else break;n=t(e,n)}let a=n;if(e.charCodeAt(n)===b){n=t(e,L(e,n+1));continue}let i=v(e,n,!0);if(i===a)return n;let r=i,m=!0;if(n=t(e,i),e.charCodeAt(n)===_){let f=t(e,n+1);r=e.startsWith("/>",f)?f+1:D(e,f),m=l(e.charCodeAt(f))?e.slice(f+1,Math.max(f+1,r-1)):e.slice(f,r),n=t(e,r)}o?.push({name:e.slice(a,i),value:m,start:a,end:r})}}function D(e,d){let o=e.charCodeAt(d);if(l(o)){let a=d+1;while(a<e.length){let i=e.charCodeAt(a);if(i===o)return a+1;a=i===b?L(e,a+1):a+1}return e.length}let n=d;while(n<e.length&&!F(e,n))n=e.charCodeAt(n)===b?L(e,n+1):n+1;return n}function K(e,d){let o=d;while(o<e.length){let n=e.charCodeAt(o);if(n===G){if(T.lastIndex=o,T.test(e))return T.lastIndex}o=n===b?L(e,o+1):o+1}return e.length}
3
- export{H,de};
@@ -1,2 +0,0 @@
1
- import{D}from"./shared-x7fez4k2.js";import{x}from"./shared-3yc3kmnb.js";import{a}from"./shared-00hyas4z.js";var o={typescript:a,entityNames:x};function Z(t,r){return D(t,r,o)}
2
- export{Z};
@@ -1,3 +0,0 @@
1
- import{B,s,t,V,C,M,l,v,F}from"./shared-40v3xx3k.js";import{T,p,k,L,J}from"./shared-5kdpxrm3.js";import{h,y}from"./shared-zd01zsyh.js";import{e,xe,ge,be,Se,ve,Ae,Te,ke,Ee,we,ne,Ce,Ne,oe,_e,Pe,Le,Ie,Q,ae,Re,le,Oe,$e,c,qe,De,Be,Ve,Me,Fe,We,je,Ue,pe,ze,Ke,Ge,He,Xe,Qe,Y,Ye,Je,Ze,ce,et,tt,it,rt,n,st,nt,ot,P,j,A,at,lt}from"./shared-yxr92tk5.js";import{S}from"./shared-k5pfyxpa.js";import{z}from"./shared-fcgh2ks8.js";var ct=/\r(?!\n)|[\u2028\u2029]/;function K(r,i){let a=r.codePointAt(i);if(a===void 0||!h(a,!0))return i;let o=i+(a<=65535?1:2),u=r.codePointAt(o);while(u!==void 0&&y(u,!0))o+=u<=65535?1:2,u=r.codePointAt(o);return o}class ye{source;index=0;loc;lfOnly;isTypeScript;typescript;entityNames;css;script;comments;root;stack;fragments;metaTags=new Set;lastAutoClosedTag;nextAngle=-1;nextBrace=-1;constructor(r,i,a,o={}){if(this.source=r,this.loc=o.loc??!1,this.lfOnly=this.loc&&!ct.test(r),this.isTypeScript=V(r),this.typescript=a.typescript,this.isTypeScript&&!this.typescript)z();this.entityNames=a.entityNames,this.css=o.css??!0,this.script=o.script??!0,this.comments=o.comments??!0,this.root={type:"Root",start:0,end:i,css:null,js:[],options:null,fragment:{type:"Fragment",nodes:[]},comments:[]},this.stack=[this.root],this.fragments=[this.root.fragment]}match(r){if(r.length===1)return this.source.charCodeAt(this.index)===r.charCodeAt(0);return this.source.startsWith(r,this.index)}matchRegex(r){return r.lastIndex=this.index,r.exec(this.source)?.[0]??null}eat(r,i=!1){if(this.match(r))return this.index+=r.length,!0;if(i)c(this.index,r);return!1}read(r){let i=this.matchRegex(r);if(i)this.index+=i.length;return i}readUntil(r){if(this.index>=this.source.length)n(this.source.length);let i=this.source.indexOf(r,this.index),a=i===-1?this.source.length:i,o=this.source.slice(this.index,a);return this.index=a,o}allowWhitespace(){this.index=t(this.source,this.index)}requireWhitespace(){if(!s(this.source.charCodeAt(this.index)))qe(this.index);this.allowWhitespace()}eatClosingBrace(){this.allowWhitespace(),this.eat("}",!0)}sourceLocation(r,i){return this.loc?{start:p(r),end:p(i)}:void 0}readIdentifierName(){let r=this.index,i=K(this.source,r),a=this.source.slice(r,i);if(this.index=i,P.has(a))st(r,a);let o={type:"Identifier",name:a,start:r,end:i};if(this.loc)o.loc=this.sourceLocation(r,i);return o}current(){return this.stack[this.stack.length-1]}append(r){this.fragments[this.fragments.length-1].nodes.push(r)}open(r,i){this.append(r),this.stack.push(r),this.fragments.push(i)}setFragment(r){this.fragments[this.fragments.length-1]=r}close(){this.stack.pop(),this.fragments.pop()}}var ut={"||":1,"??":1,"&&":2,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"+":9,"-":9,"*":10,"/":10,"%":10};function en(r,i,a,o){return{type:"Literal",start:i,end:a,value:o,raw:r.slice(i,a)}}function dn(r,i){let a=r.charCodeAt(i);if(a===34||a===39){for(let u=i+1;u<r.length;u++){let d=r.charCodeAt(u);if(d===a)return en(r,i,u+1,r.slice(i+1,u));if(d===92||d===10||d===13)return null}return null}let o=i;for(;o<r.length;o++){let u=r.charCodeAt(o);if(u<48||u>57)break}if(o===i||a===48&&o-i>1)return null;return en(r,i,o,Number(r.slice(i,o)))}function pt(r,i,a){let o=K(r,i);if(o===i)return dn(r,i);let u=r.slice(i,o);if(u==="true"||u==="false"||u==="null")return en(r,i,o,u==="null"?null:u==="true");if(P.has(u))return null;let d={type:"Identifier",start:i,end:o,name:u};for(let f=o;;){let g=r.charCodeAt(f);if(g===40){let E=dt(r,f+1,a);if(!E)return null;d={type:"CallExpression",start:i,end:E.end,callee:d,arguments:E.arguments,optional:!1},f=E.end;continue}let m,x;if(g===46){if(x=K(r,f+1),x===f+1)return null;m={type:"Identifier",start:f+1,end:x,name:r.slice(f+1,x)}}else if(g===91){if(m=dn(r,f+1),!m||r.charCodeAt(m.end)!==93)return null;x=m.end+1}else return d;d={type:"MemberExpression",start:i,end:x,object:d,property:m,computed:g===91,optional:!1},f=x}}function dt(r,i,a){let o=[],u=t(r,i);if(r.charCodeAt(u)===41)return{arguments:o,end:u+1};for(;;){let d=ee(r,u,a);if(!d)return null;o.push(d),u=t(r,d.end);let f=r.charCodeAt(u);if(f===41)return{arguments:o,end:u+1};if(f!==44)return null;if(u=t(r,u+1),r.charCodeAt(u)===41)return null}}function tn(r,i,a){let o=r.charCodeAt(i),u=r.charCodeAt(i+1);if(!(o===33&&u!==61)&&!(o===45&&u!==45&&u!==61))return pt(r,i,a);let d=tn(r,t(r,i+1),a);if(!d)return null;return{type:"UnaryExpression",start:i,end:d.end,operator:o===33?"!":"-",prefix:!0,argument:d}}function fn(r,i,a){let o=r.charCodeAt(i),u=r.charCodeAt(i+1);switch(o){case 124:return u===124&&r.charCodeAt(i+2)!==61?"||":null;case 38:return u===38&&r.charCodeAt(i+2)!==61?"&&":null;case 63:return u===63&&r.charCodeAt(i+2)!==61?"??":null;case 61:if(u!==61)return null;return r.charCodeAt(i+2)===61?"===":"==";case 33:if(u!==61)return null;return r.charCodeAt(i+2)===61?"!==":"!=";case 60:case 62:if(a||u===o)return null;if(u===61)return o===60?"<=":">=";return o===60?"<":">";case 43:return u===43||u===61?null:"+";case 45:return u===45||u===61?null:"-";case 42:return u===42||u===61?null:"*";case 47:return u===47||u===42||u===61?null:"/";case 37:return u===61?null:"%";default:return null}}function nn(r,i,a,o){if(mn(r.charCodeAt(i.end)))return i;let u=t(r,i.end),d=fn(r,u,o);if(d===null)return i;let f=ut[d];if(f<=a)return i;let g=d==="||"||d==="&&",m=d==="??",x=tn(r,t(r,u+d.length),o);if(!x)return null;let E=nn(r,x,m?2:f,o);if(!E)return null;let b=g||m?{type:"LogicalExpression",start:i.start,end:E.end,left:i,operator:d,right:E}:{type:"BinaryExpression",start:i.start,end:E.end,left:i,operator:d,right:E};if(g||m){let _=fn(r,t(r,b.end),o);if(m?_==="||"||_==="&&":_==="??")return null}return nn(r,b,a,o)}function ee(r,i,a){let o=tn(r,i,a);if(!o)return null;let u=nn(r,o,-1,a);if(!u||mn(r.charCodeAt(u.end)))return u;let d=t(r,u.end);if(r.charCodeAt(d)!==63)return u;let f=r.charCodeAt(d+1);if(f===46||f===63)return null;let g=ee(r,t(r,d+1),a);if(!g)return null;let m=t(r,g.end);if(r.charCodeAt(m)!==58)return null;let x=ee(r,t(r,m+1),a);if(!x)return null;return{type:"ConditionalExpression",start:u.start,end:x.end,test:u,consequent:g,alternate:x}}function mn(r){return r===125||r===41||r===44||r===58}function ft(r,i){let a=t(r,i);if(a>=r.length)return!1;let o=r.charCodeAt(a);return o===125||o===41}function mt(r,i,a){let o=ee(r,i,a);return o&&ft(r,o.end)?o:null}function N(r){switch(r.loc={start:k(r.start),end:k(r.end)},r.type){case"MemberExpression":N(r.object),N(r.property);break;case"CallExpression":N(r.callee);for(let i of r.arguments)N(i);break;case"UnaryExpression":N(r.argument);break;case"BinaryExpression":case"LogicalExpression":N(r.left),N(r.right);break;case"ConditionalExpression":N(r.test),N(r.consequent),N(r.alternate);break}}function w(r){let i=!r.loc||r.lfOnly?mt(r.source,r.index,r.isTypeScript):null;if(i){if(r.index=i.end,r.loc)N(i);return i}let{node:a,end:o}=A(r,r.source,r.index);return r.index=o,a}var hn=/<\/script\s*>/g,ht=new Set(["server","client","worker","test","default"]);function xn(r,i,a){let{source:o,index:u}=r;if(u>=o.length)n(o.length);hn.lastIndex=u;let d=hn.exec(o);if(!d)Q(o.length,"script");r.index=d.index+d[0].length;let f=r.script?j(r,o.slice(0,d.index),u):xt(u,d.index);if(f.start=u,f.loc)Object.assign(f.loc.start,k(i)),Object.assign(f.loc.end,k(r.index));else if(r.loc)f.loc={start:k(i),end:k(r.index)};let g="default";for(let m of a){if(ht.has(m.name))Fe(m,m.name);if(m.name==="module"){if(m.value!==!0)Ve(m,m.name);g="module"}if(m.name==="context"){let x=m.value;if(x===!0||!Array.isArray(x)||x.length!==1||x[0].type!=="Text"||x[0].data!=="module")Me(m);g="module"}}return{type:"Script",start:i,end:r.index,context:g,content:f,attributes:a}}function xt(r,i){return{type:"Program",start:r,end:i,body:[],sourceType:"module"}}var St=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of(\s+|(?=[.#[*:&])))/y,gt=/\d+(\.\d+)?%/y,At=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y,yt=/\s*>/y,W=-1,yn=34,Tt=35,Et=36,Ct=38,Tn=39,bt=40,_t=41,de=42,vt=43,Pt=45,kt=46,En=47,rn=58,wt=59,Rt=60,Sn=61,Nt=62,Bt=91,ln=92,Lt=93,Ot=94,Cn=123,on=124,Dt=125,bn=126,se=[];function _n(r,i,a){let o=r.index;se=[];let u=r.css?Ft(r):Wt(r),d=r.index;return r.eat("</style",!0),r.read(yt),{type:"StyleSheet",start:i,end:r.index,attributes:a,children:u,comments:se,content:{start:o,end:d,styles:r.source.slice(o,d),comment:null}}}function Wt(r){return r.index=M(r.source,r.index),[]}function Ft(r){let i=[];for(;;){if(q(r,!0),r.match("</style")||r.index>=r.source.length)break;i.push(r.match("@")?vn(r):Pn(r))}return i}function vn(r){let i=r.index;r.eat("@",!0);let a=I(r),o=sn(r,!0),u=null;if(r.match("{"))u=Rn(r);else r.eat(";",!0);return{type:"Atrule",start:i,end:r.index,name:a,prelude:o,block:u}}function Pn(r){let i=r.index;return{type:"Rule",prelude:kn(r,!1),block:Rn(r),start:i,end:r.index}}function kn(r,i){let a=[];q(r,!0);let o=r.index;while(r.index<r.source.length){a.push(It(r,i));let u=r.index;if(q(r,!0),r.match(i?")":"{"))return{type:"SelectorList",start:o,end:u,children:a};r.eat(",",!0),q(r,!0)}return n(r.source.length)}function gn(r,i){return{type:"RelativeSelector",combinator:r,selectors:[],start:i,end:-1}}function It(r,i){let{source:a,index:o}=r,u=[],d=gn(null,r.index);while(r.index<a.length){let f=r.index,g=a.charCodeAt(f),m=d.selectors;if(g===Ct)r.index++,m.push({type:"NestingSelector",name:"&",start:f,end:r.index});else if(g===de)r.index++,m.push(An(r,f,"*"));else if(g===Tt)r.index++,m.push({type:"IdSelector",name:I(r),start:f,end:r.index});else if(g===kt)r.index++,m.push({type:"ClassSelector",name:I(r),start:f,end:r.index});else if(g===rn){let _=a.charCodeAt(f+1)===rn;r.index+=_?2:1;let R=I(r),G=null;if(r.eat("("))G=kn(r,!0),r.eat(")",!0);if(_)m.push({type:"PseudoElementSelector",name:R,start:f,end:r.index,...G&&{args:G}});else m.push({type:"PseudoClassSelector",name:R,args:G,start:f,end:r.index})}else if(g===Bt)r.index++,m.push(Mt(r,f));else{let _=i?r.read(St):null,R=!_&&ue(g)?r.read(gt):null;if(_)m.push({type:"Nth",value:_,start:f,end:r.index});else if(R)m.push({type:"Percentage",value:R,start:f,end:r.index});else if(wn(a,f)===0){let G=I(r);m.push(An(r,f,G))}}let x=r.index;q(r,!1);let E=r.match(",")||r.match(i?")":"{");if(r.index=x,E)return d.end=x,u.push(d),{type:"ComplexSelector",start:o,end:x,children:u};let b=Gt(r);if(b){if(d.selectors.length>0)d.end=x,u.push(d);if(d=gn(b,b.start),r.allowWhitespace(),r.match(",")||r.match(i?")":"{"))Ce(r.index)}}return n(a.length)}function An(r,i,a){let o=a,u;if(r.eat("|"))u=o,o=r.eat("*")?"*":I(r);return{type:"TypeSelector",name:o,...u!==void 0&&{namespace:u},start:i,end:r.index}}function Mt(r,i){let a=r.source;r.allowWhitespace();let o=I(r);r.allowWhitespace();let u=null,d=null,f=a.charCodeAt(r.index);if(f===Sn)d="=";else if((f===bn||f===Ot||f===Et||f===de||f===on)&&a.charCodeAt(r.index+1)===Sn)d=a.slice(r.index,r.index+2);if(d)r.index+=d.length,r.allowWhitespace(),u=Vt(r);r.allowWhitespace();let g=r.index;while(Bn(a.charCodeAt(r.index)))r.index++;let m=r.index>g?a.slice(g,r.index):null;return r.allowWhitespace(),r.eat("]",!0),{type:"AttributeSelector",start:i,end:r.index,name:o,matcher:d,value:u,flags:m}}function wn(r,i){let a=r.charCodeAt(i);if(a===vt||a===bn||a===Nt)return 1;if(a===on&&r.charCodeAt(i+1)===on)return 2;return 0}function Gt(r){let i=r.index;r.allowWhitespace();let a=r.index,o=wn(r.source,a);if(o>0){r.index+=o;let u=r.index;return r.allowWhitespace(),{type:"Combinator",name:r.source.slice(a,u),start:a,end:u}}if(r.index!==i)return{type:"Combinator",name:" ",start:i,end:r.index};return null}function Rn(r){let i=r.index;r.eat("{",!0);let a=[];while(r.index<r.source.length){if(q(r,!0),r.match("}"))break;a.push(qt(r))}return r.eat("}",!0),{type:"Block",start:i,end:r.index,children:a}}function qt(r){if(r.match("@"))return vn(r);let i=r.index;sn(r,!1);let a=r.source.charCodeAt(r.index);return r.index=i,a===Cn?Pn(r):Ut(r)}function Ut(r){let{source:i,index:a}=r;if(a>=i.length)n(i.length);let o=a;while(o<i.length){let m=i.charCodeAt(o);if(m===rn||s(m))break;o++}let u=i.slice(a,o);r.index=o,r.allowWhitespace(),r.eat(":");let d=r.index;r.allowWhitespace();let f=sn(r,!0);if(!f&&!u.startsWith("--"))we({start:a,end:d});let g=r.index;if(!r.match("}"))r.eat(";",!0);return{type:"Declaration",start:a,end:g,property:u,value:f}}function sn(r,i){let a=r.source,o=a.length,u="",d=r.index,f=null,g=!1,m=!1,x=W,E=r.index;while(E<o){let b=a.charCodeAt(E);if(g){g=!1,E++;continue}if(b===ln){g=!0,E++;continue}if(b===x)x=W;else if(b===_t)m=!1;else if(x===W&&(b===yn||b===Tn))x=b;else if(b===bt){if($t(a,u,d,E))m=!0}else if((b===wt||b===Cn||b===Dt)&&!m&&x===W){if(r.index=E,!i)return"";if(u+=a.slice(d,E),f){let _=u.length-u.trimStart().length;for(let R of f)R.position=Math.max(0,(R.position??0)-_)}return u.trim()}else if(b===En&&!m&&x===W&&a.charCodeAt(E+1)===de){u+=a.slice(d,E),r.index=E;let _=Nn(r);if(i)_.position=u.length,se.push(_),f??=[],f.push(_);E=r.index,d=E;continue}E++}return r.index=o,n(o)}function $t(r,i,a,o){if(o-a>=3)return r.charCodeAt(o-3)===117&&r.charCodeAt(o-2)===114&&r.charCodeAt(o-1)===108;return(i+r.slice(a,o)).endsWith("url")}function Vt(r){let i=r.source,a=W;if(r.eat('"'))a=yn;else if(r.eat("'"))a=Tn;let o=r.index,u=!1,d=o;while(d<i.length){let f=i.charCodeAt(d);if(u)u=!1;else if(f===ln)u=!0;else if(a===W?f===Lt||s(f):f===a)return r.index=a===W?d:d+1,i.slice(o,d).trim();d++}return r.index=d,n(i.length)}function I(r){let{source:i,index:a}=r,o=i.charCodeAt(a);if(ue(o)||o===Pt&&ue(i.charCodeAt(a+1)))ne(a);let u="",d=a,f=a;while(f<i.length){let g=i.charCodeAt(f);if(g===ln){u+=i.slice(d,f),r.index=f;let m=r.matchRegex(At);if(m){let x=String.fromCodePoint(Number.parseInt(m.slice(1),16));u+=x==="\\"?"\\\\":x,f+=m.length}else u+=`\\${i[f+1]}`,f+=2;d=f}else if(g>=160||jt(g))f++;else break}if(u+=i.slice(d,f),r.index=f,u==="")ne(a);return u}function q(r,i){let a=r.source;r.allowWhitespace();for(;;){let o=a.charCodeAt(r.index);if(o===En&&a.charCodeAt(r.index+1)===de){let u=Nn(r);if(i)se.push(u)}else if(o===Rt&&r.eat("<!--"))r.readUntil("-->"),r.eat("-->",!0);else break;r.allowWhitespace()}}function Nn(r){let i=r.index;r.eat("/*",!0);let a=r.readUntil("*/");return r.eat("*/",!0),{type:"CSSComment",value:a,start:i,end:r.index}}function ue(r){return r>=48&&r<=57}function Bn(r){return r>=65&&r<=90||r>=97&&r<=122}function jt(r){return Bn(r)||ue(r)||r===95||r===45}var cn=/<\/textarea(\s[^>]*)?>/iy,Ht=/^![a-zA-Z]+$/,Xt=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/,zt=/^[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,an="\\u200C\\u200D",Zt=new RegExp(`^(?:\\p{Lu}[$${an}\\p{ID_Continue}.]*|\\p{ID_Start}[$${an}\\p{ID_Continue}]*(?:\\.[$${an}\\p{ID_Continue}]+)+)$`,"u"),Kt=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()],Qt=`${Ln.slice(0,-1).join(", ")} or ${Ln.at(-1)}`,Yt=62,On=123;function fe(r,i){let a=r.index;if(a>=r.source.length)n(r.source.length);let o=v(r.source,a,i);return r.index=o,{name:r.source.slice(a,o),start:a,end:o,loc:r.sourceLocation(a,o)}}var H=(r,i,a,o=a)=>({start:r,end:i,type:"Text",raw:a,data:o});function Jt(r){let i=r.charCodeAt(0);if(i>=97&&i<=122&&!r.includes("."))return!1;return Zt.test(r)}function er(r){let i=!0;for(let a=0;a<r.length&&i;a++){let o=r.charCodeAt(a);i=o>=97&&o<=122||a>0&&o>=48&&o<=57}return i&&r.length>0||Ht.test(r)||Xt.test(r)||zt.test(r)}function Dn(r,i){for(let a=r.length-1;a>=0;a--){let o=i(r[a]);if(o!==void 0)return o}return!1}function nr(r,i,a){let o=un.get(i);if(o)return o[0];if(a)return"Component";if(i==="title"){if(Dn(r.stack,({type:d})=>{if(d==="SvelteHead")return!0;return d==="RegularElement"||d==="Component"?!1:void 0}))return"TitleElement"}if(i==="slot"){if(!Dn(r.stack,(d)=>d.type==="RegularElement"&&d.attributes.some((f)=>f.type==="Attribute"&&f.name==="shadowrootmode")?!0:void 0))return"SlotElement"}return"RegularElement"}function X(r){let i=r.index++;if(r.eat("!--")){let a=r.readUntil("-->");r.eat("-->",!0),r.append({type:"Comment",start:i,end:r.index,data:a})}else if(r.eat("/"))tr(r,i);else ir(r,i)}function tr(r,i){let{name:a}=fe(r,!1);if(r.allowWhitespace(),r.eat(">",!0),C(a))ot(i);let o=r.current();while(!("name"in o)||o.name!==a){if(o.type!=="RegularElement"){let u=r.lastAutoClosedTag;if(u?.tag===a)Ie(i,a,u.reason);Le(i,a)}o.end=i,r.close(),o=r.current()}if(o.end=r.index,r.close(),r.stack.length<(r.lastAutoClosedTag?.depth??0))r.lastAutoClosedTag=void 0}function rr(r,i,a){return{type:r,start:i,end:-1,name:a}}function ir(r,i){let a=fe(r,!1),{name:o}=a,u=un.get(o);if(!u&&o.startsWith("svelte:"))He(a,Qt);let d=Jt(o);if(!d&&!er(o))it(a);if(u?.[1]){if(r.metaTags.has(o))ze(i,o);if(r.current().type!=="Root")Ge(i,o);r.metaTags.add(o)}let f=rr(nr(r,o,d),i,o);if(r.loc)f.name_loc=a.loc;f.attributes=[],f.fragment={type:"Fragment",nodes:[]},r.allowWhitespace();let g=r.current();if(g.type==="RegularElement"&&B(g.name,o))g.end=i,r.close(),r.lastAutoClosedTag={tag:g.name,reason:o,depth:r.stack.length};if((o==="script"||o==="style")&&r.current().type==="Root"){let x=[];f.attributes=x,Mn(r,x,ur),lr(r,f,i,x);return}if(Mn(r,f.attributes,dr),f.type==="SvelteComponent"){let x=Wn(f);if(!x)Ue(i);if(!Fn(x.value))je(x.start);f.expression=In(x.value)}else if(f.type==="SvelteElement"){let x=Wn(f);if(!x)pe(i);if(x.value===!0)pe(x);f.tag=Fn(x.value)?In(x.value):ar(x.value[0])}if(!r.eat("/")&&!C(o))if(r.eat(">",!0),o==="textarea")f.fragment.nodes=qn(r,(x,E)=>(cn.lastIndex=E,cn.test(x)),"inside <textarea>"),r.read(cn);else if(o==="script"||o==="style")f.fragment.nodes.push(or(r,`</${o}>`));else{r.open(f,f.fragment);return}else r.eat(">",!0);f.end=r.index,r.append(f)}function or(r,i){let a=r.index,o=r.source.indexOf(i,a);r.index=o===-1?r.source.length:o;let u=H(a,r.index,r.source.slice(a,r.index));return r.eat(i,!0),u}function lr(r,i,a,o){r.eat(">",!0);let u=sr(r.root.fragment.nodes,a);if(i.name==="style"){let g=_n(r,a,o);if(g.content.comment=u,r.root.css)We(a);r.root.css=g;return}let d=xn(r,a,o);if(u&&r.comments)d.content.leadingComments=[{type:"Line",value:u.data}];let f=d.context==="module"?"module":"instance";if(r.root[f])Be(a);r.root[f]=d}function sr(r,i){let a=r.length-1;if(a<0||r[a].end!==i)return null;for(let o=a;o>=0;o--){let u=r[o];if(u.type==="Comment")return u;if(u.type!=="Text"||u.data.trim())return null}return null}var cr=(r)=>r.type==="Attribute"&&r.name==="this";function Wn(r){let i=r.attributes.find(cr);if(i)r.attributes.splice(r.attributes.indexOf(i),1);return i}function Fn(r){if(r===!0)return!1;if(!Array.isArray(r))return!0;return r.length===1&&r[0].type==="ExpressionTag"}function In(r){return(Array.isArray(r)?r[0]:r).expression}function ar(r){if(r.type!=="Text")return r.expression;return{type:"Literal",value:r.data,raw:`'${r.raw}'`,start:r.start,end:r.end}}function Mn(r,i,a){let o=new Set;for(;;){let u=a(r);if(!u)return;let{type:d}=u;if(d==="Attribute"||d==="BindDirective"||d==="StyleDirective"||d==="ClassDirective"){let f=`${d==="BindDirective"?"Attribute":d}${u.name}`;if(o.has(f))xe(u);if(u.name!=="this")o.add(f)}i.push(u),r.allowWhitespace()}}function pn(r,i,a,o,u){return r.loc?{type:"Attribute",start:a,end:o,name:i.name,name_loc:i.loc,value:u}:{type:"Attribute",start:a,end:o,name:i.name,value:u}}function Gn(r){if(l(r.source.charCodeAt(r.index)))c(r.index,"=")}function ur(r){let i=r.index,a=fe(r,!0);if(!a.name)return null;let o=!0;if(r.eat("=")){r.allowWhitespace();let{source:u}=r,d=r.index,f=-1;if(l(u.charCodeAt(d))){let x=u.indexOf(u[d],d+1);if(x!==-1)f=x+1}if(f===-1){f=d;while(f<u.length&&u.charCodeAt(f)!==Yt&&!s(u.charCodeAt(f)))f++;if(f===d)ae(d)}r.index=f;let g=l(u.charCodeAt(d))?1:0,m=u.slice(d+g,f-g);o=[H(f-m.length-g,f-g,m,S(m,!0,r.entityNames))]}return Gn(r),pn(r,a,i,r.index,o)}function pr(r){let i=r.index,a=r.match("/*");if(!a&&!r.match("//"))return!1;r.index+=2;let o=r.readUntil(a?"*/":`
2
- `);if(a)r.eat("*/");let u={type:a?"Block":"Line",start:i,end:r.index,value:o},d=r.sourceLocation(i,r.index);if(d)u.loc=d;if(r.comments)r.root.comments.push(u);return!0}function dr(r){while(pr(r))r.allowWhitespace();let i=r.index;if(r.eat("{"))return fr(r,i);let a=fe(r,!0);if(!a.name)return null;let o=r.index;r.allowWhitespace();let u=!0;if(r.eat("=")){if(r.allowWhitespace(),r.match("/>"))u=[H(r.index,r.index+1,"/")],r.index++;else u=xr(r);o=r.index}else Gn(r);let d=a.name.indexOf(":"),f=d>0?Kt.get(a.name.slice(0,d)):void 0;return f?hr(r,f,a,d,i,o,u):pn(r,a,i,o,u)}function fr(r,i){if(r.allowWhitespace(),r.eat("@attach")){r.requireWhitespace();let u=w(r);return r.eatClosingBrace(),{type:"AttachTag",start:i,end:r.index,expression:u}}if(r.eat("...")){let u=w(r);return r.eatClosingBrace(),{type:"SpreadAttribute",start:i,end:r.index,expression:u}}let a=r.readIdentifierName();if(a.name==="")ge(i);r.eatClosingBrace();let o={type:"ExpressionTag",start:a.start,end:a.end,expression:a};return pn(r,a,i,r.index,o)}function mr(r){if(r===!0)return;return Array.isArray(r)?r[0]:r}function hr(r,i,a,o,u,d,f){let[g,...m]=a.name.slice(o+1).split("|");if(g==="")Pe({start:u,end:u+o+1},a.name);let x={start:u,end:d,type:i,name:g};if(r.loc)x.name_loc=a.loc;if(i==="StyleDirective")return x.modifiers=m,x.value=f,x;let E=mr(f);if(E&&(Array.isArray(f)&&f.length>1||E.type==="Text"))_e(E.start);if(x.expression=E?.expression??null,x.modifiers=m,i==="TransitionDirective"){let b=a.name.slice(0,o);x.intro=b!=="out",x.outro=b!=="in"}if((i==="BindDirective"||i==="ClassDirective")&&!x.expression)x.expression={start:u+o+1,end:d,type:"Identifier",name:g};return x}function xr(r){let i=r.source.charCodeAt(r.index),a=l(i);if(a){if(r.index++,r.source.charCodeAt(r.index)===i)return r.index++,[H(r.index-1,r.index-1,"")]}let o;try{o=qn(r,a?(u,d)=>u.charCodeAt(d)===i:F,"in attribute value",a?i:void 0)}catch(u){let d=u instanceof e?u.position?.[0]:void 0;if(u instanceof e&&u.code==="js_parse_error"&&d!==void 0&&r.source.startsWith("/>",d-1))r.index=d,c(d,a?String.fromCharCode(i):"}");throw u}if(a)r.index++;else if(o.length===0)ae(r.index);return a||o.length>1||o[0].type==="Text"?o:o[0]}function qn(r,i,a,o){let{source:u}=r,d=[],f=r.index,g=(m)=>{if(m<=f)return;let x=u.slice(f,m);d.push(H(f,m,x,S(x,!0,r.entityNames)))};while(r.index<u.length){let m=r.index;if(i(u,m))return g(m),d;if(u.charCodeAt(m)!==On){if(r.index++,o!==void 0)while(r.index<u.length&&u.charCodeAt(r.index)!==On&&u.charCodeAt(r.index)!==o)r.index++;continue}r.index++;let x=u.charCodeAt(r.index);if(x===35||x===64){r.index++;let b=r.index;while(r.index<u.length&&u.charCodeAt(r.index)>=97&&u.charCodeAt(r.index)<=122)r.index++;let _=u.slice(b,r.index);(x===35?Ae:rt)(m,_,a)}g(m),r.allowWhitespace();let E=w(r);r.eatClosingBrace(),d.push({type:"ExpressionTag",start:m,end:r.index,expression:E}),f=r.index}n(u.length)}var Sr=new Map([["html","html"],["svg","svg"],["mathml","mathml"],["http://www.w3.org/2000/svg","svg"],["http://www.w3.org/1998/Math/MathML","mathml"]]),gr=new Map([["type",(r,i)=>{if(i!=="String"&&i!=="Number"&&i!=="Boolean"&&i!=="Array"&&i!=="Object")return!1;return r.type=i,!0}],["reflect",(r,i)=>{if(typeof i!=="boolean")return!1;return r.reflect=i,!0}],["attribute",(r,i)=>{if(typeof i!=="string")return!1;return r.attribute=i,!0}]]),Un="[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}-]",Ar=new RegExp(`^[a-z]${Un}*-${Un}*$`,"u"),yr=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ")),me=(r)=>(i,a)=>{let o=he(a);if(typeof o!=="boolean")Y(a,"true or false");i[r]=o},Tr=new Map([["runes",me("runes")],["immutable",me("immutable")],["preserveWhitespace",me("preserveWhitespace")],["accessors",me("accessors")],["namespace",(r,i)=>{let a=Sr.get(he(i));if(!a)Y(i,'"html", "mathml" or "svg"');r.namespace=a}],["css",(r,i)=>{if(he(i)!=="injected")Y(i,'"injected"');r.css="injected"}],["tag",(r,i)=>Xe(i)],["customElement",(r,i)=>{let a=Cr(i);if(a)r.customElement=a}]]);function Vn(r){let i=[],a={start:r.start,end:r.end,attributes:i};for(let o of r.attributes){if(o.type!=="Attribute")Qe(o);i.push(o);let u=Tr.get(o.name);if(!u)tt(o,o.name);u(a,o)}return a}function he({value:r}){if(r===!0)return!0;let i=Array.isArray(r)?r:[r];if(i.length===0)return!0;if(i.length>1)return null;let[a]=i;if(a.type==="Text")return a.data;return a.expression.type==="Literal"?a.expression.value:null}function $n(r,i){if(typeof i!=="string")ce(r);if(!i)return;if(!Ar.test(i))ce(r);if(yr.has(i))et(r)}function Er(r,i){let a=new Map;for(let o of r.properties){if(o.type!=="Property"||o.computed||o.key.type!=="Identifier")i();if(!a.has(o.key.name))a.set(o.key.name,o.value)}return a}function Cr(r){let i=()=>Ye(r);if(r.value===!0)i();let a=Array.isArray(r.value)?r.value[0]:r.value;if(a.type==="Text"){let E=he(r);return $n(r,E),{tag:E}}let{expression:o}=a;if(o.type!=="ObjectExpression"){if(o.type==="Literal"&&o.value===null)return;i()}let u=Er(o,i),d={},f=u.get("tag");if(f){let E=f.type==="Literal"?f.value:void 0;$n(null,E),d.tag=E}let g=u.get("props");if(g){let E=()=>Je(r);if(g.type!=="ObjectExpression")E();d.props={};for(let b of g.properties){if(b.type!=="Property"||b.computed||b.key.type!=="Identifier"||b.value.type!=="ObjectExpression")E();let _={};d.props[b.key.name]=_;for(let R of b.value.properties){if(R.type!=="Property"||R.computed||R.key.type!=="Identifier"||R.value.type!=="Literal")E();if(!gr.get(R.key.name)?.(_,R.value.value))E()}}}let m=u.get("shadow");if(m)if(m.type==="ObjectExpression")d.shadow=m;else if(m.type==="Literal"&&(m.value==="open"||m.value==="none"))d.shadow=m.value;else Ze(r);let x=u.get("extend");if(x)d.extend=x;return d}var br={"{":"}","(":")","[":"]"};function Z(r,i,a=br){let o=Object.values(a),u=[],d=i;while(d<r.length){let f=r[d++];if(f==="'"||f==='"'||f==="`")d=_r(r,d,f);else if(Object.hasOwn(a,f))u.push(f);else if(o.includes(f)){let g=a[u.pop()??""];if(f!==g)c(d-1,g);if(u.length===0)return d}}n(r.length)}function _r(r,i,a){let o=i;while(o<r.length){let u=r[o++];if(u===a)return o;if(u==="\\")o++;else if(a==="`"&&u==="$"&&r[o]==="{")o=Z(r,o)}nt(i)}var vr=/\?\s*:/g;function U(r){let i=r.index,a=r.readIdentifierName();if(a.name!==""){let f=jn(r);return{...a,typeAnnotation:f}}let o=r.source[r.index];if(o!=="{"&&o!=="[")Oe(r.index);r.index=Z(r.source,i);let u=at(r,r.source.slice(0,r.index),i)??Pr(r,i);J(u,"ObjectPattern","ArrayPattern");let d=jn(r);if(u.typeAnnotation=d,d)u.end=d.end;return u}function Pr(r,i){let{node:a}=A(r,`${r.source.slice(0,r.index)} = 1`,i);return J(a,"AssignmentExpression"),a.left}function jn(r){let i=r.index;if(r.allowWhitespace(),!r.eat(":")){r.index=i;return}let a="_ as ",o=r.index-a.length,u=r.source.slice(0,o)+a+r.source.slice(r.index).replace(vr,":"),d=A(r,u,o).node;if(d.type==="AssignmentExpression"){let f=d.right.start;while(u[f]!=="=")f-=1;d=A(r,u.slice(0,f),o).node}if(d.type==="SequenceExpression")d=d.expressions[0];return J(d,"TSAsExpression"),r.index=d.end,{type:"TSTypeAnnotation",start:i,end:r.index,typeAnnotation:d.typeAnnotation}}var kr=/\s*}/y,wr={IfBlock:"if",EachBlock:"each",KeyBlock:"key",AwaitBlock:"await",SnippetBlock:"snippet"},O=()=>({type:"Fragment",nodes:[]});function Xn(r,i){if(r.eat("if")){r.requireWhitespace();let a=w(r);r.eatClosingBrace();let o=O();r.open({type:"IfBlock",elseif:!1,start:i,end:-1,test:a,consequent:o,alternate:null},o)}else if(r.eat("each"))Nr(r,i);else if(r.eat("await")){r.requireWhitespace();let a=w(r);r.allowWhitespace();let o={type:"AwaitBlock",start:i,end:-1,expression:a,value:null,error:null,pending:null,then:null,catch:null},u=O();if(r.eat("then"))o.value=Hn(r),o.then=u;else if(r.eat("catch"))o.error=Hn(r),o.catch=u;else o.pending=u;r.eat("}",!0),r.open(o,u)}else if(r.eat("key")){r.requireWhitespace();let a=w(r);r.eatClosingBrace();let o=O();r.open({type:"KeyBlock",start:i,end:-1,expression:a,fragment:o},o)}else if(r.eat("snippet"))Br(r,i);else Re(r.index)}function Hn(r){if(r.matchRegex(kr))return r.allowWhitespace(),null;r.requireWhitespace();let i=U(r);return r.allowWhitespace(),i}function Rr(r){let i={assertion:null},a=r.end,o=(d)=>{if(d.type==="TSAsExpression"&&d.end===r.end)return i.assertion=d,a=d.expression.end,d.expression;return L(d,o),d},u=r;if(r.type==="TSAsExpression")i.assertion=r,u=r.expression,a=u.end;else L(r,o);return u.end=a,{expression:u,assertion:i.assertion}}function Nr(r,i){r.requireWhitespace();let a=r.source,o;while(!o)try{o=w(r)}catch(m){let E=((m instanceof e?m.position:void 0)?.[0]??i)-2;while(E>i&&r.source.slice(E,E+2)!=="as")E-=1;if(E<=i)throw r.source=a,m;r.source=a.slice(0,E)}if(r.source=a,r.allowWhitespace(),!r.match("as")){if(o.type==="SequenceExpression")o=o.expressions[0];let m=Rr(o);if(o=m.expression,m.assertion){let x=m.assertion.typeAnnotation.start-2;while(r.source.slice(x,x+2)!=="as")x-=1;r.index=x}}let u=null,d,f;if(r.eat("as"))r.requireWhitespace(),u=U(r);else r.index=o.end;if(r.allowWhitespace(),r.eat(",")){if(r.allowWhitespace(),d=r.readIdentifierName().name,!d)le(r.index);r.allowWhitespace()}if(r.eat("("))r.allowWhitespace(),f=w(r),r.allowWhitespace(),r.eat(")",!0),r.allowWhitespace();r.eat("}",!0);let g=O();r.open({type:"EachBlock",start:i,end:-1,expression:o,body:g,context:u,index:d,key:f},g)}function Br(r,i){r.requireWhitespace();let a=r.readIdentifierName();if(a.name==="")le(r.index);r.allowWhitespace();let o=r.index,u;if(r.isTypeScript&&r.match("<")){let m=Z(r.source,o,{"<":">"});u=r.source.slice(o+1,m-1),r.index=m}r.allowWhitespace(),r.eat("(",!0);let d=1;while(r.index<r.source.length&&(!r.match(")")||d!==1)){if(r.match("("))d++;if(r.match(")"))d--;r.index+=1}r.eat(")",!0);let{node:f}=A(r,`${r.source.slice(0,r.index)} => {}`,o,!0);r.eatClosingBrace();let g=O();r.open({type:"SnippetBlock",start:i,end:-1,expression:a,typeParams:u,parameters:f.type==="ArrowFunctionExpression"?f.params:void 0,body:g},g)}function zn(r,i){let a=r.index-1,o=r.current();if(o.type==="IfBlock"){if(!r.eat("else"))c(a,"{:else} or {:else if}");if(r.eat("if"))ve(a);if(r.allowWhitespace(),o.alternate=O(),r.setFragment(o.alternate),r.eat("if")){r.requireWhitespace();let u=w(r);r.eatClosingBrace();let d=O();r.open({start:i,end:-1,type:"IfBlock",elseif:!0,test:u,consequent:d,alternate:null},d)}else r.eatClosingBrace()}else if(o.type==="EachBlock"){if(!r.eat("else"))c(a,"{:else}");r.eatClosingBrace(),o.fallback=O(),r.setFragment(o.fallback)}else if(o.type==="AwaitBlock"){let u;if(r.eat("then"))u="then";else if(r.eat("catch"))u="catch";else c(a,"{:then ...} or {:catch ...}");if(o[u])be(a,`{:${u}}`);if(!r.eat("}")){r.requireWhitespace();let f=U(r);if(u==="then")o.value=f;else o.error=f;r.eatClosingBrace()}let d=O();o[u]=d,r.setFragment(d)}else Se(a)}function Zn(r){let i=r.current(),a=wr[i.type];if(!a)ke(r.index-1);r.eat(a,!0),r.eatClosingBrace();while(i.type==="IfBlock"&&i.elseif)i.end=r.index,r.close(),i=r.current();i.end=r.index,r.close()}var Lr=/\s*}/y;function Or(r){return r.type==="CallExpression"||r.type==="ChainExpression"&&r.expression.type==="CallExpression"}function Kn(r,i){if(r.eat("html")){r.requireWhitespace();let a=w(r);r.eatClosingBrace(),r.append({type:"HtmlTag",start:i,end:r.index,expression:a})}else if(r.eat("debug")){let a=[];if(!r.read(Lr)){let o=w(r),u=o.type==="SequenceExpression"?o.expressions:[o];for(let d of u){if(d.type!=="Identifier")Ne(d.start);a.push(d)}r.eatClosingBrace()}r.append({type:"DebugTag",start:i,end:r.index,identifiers:a})}else if(r.eat("const")){r.requireWhitespace();let a=U(r);r.allowWhitespace(),r.eat("=",!0),r.allowWhitespace();let o=r.index,u=w(r),d=r.index;if(u.type==="SequenceExpression"&&!r.source.slice(o,u.start).includes("("))Ee(u);r.eatClosingBrace();let f={type:"VariableDeclarator",id:a,init:u,start:a.start,end:d};r.append({type:"ConstTag",start:i,end:r.index,declaration:{type:"VariableDeclaration",kind:"const",declarations:[f],start:i+2,end:r.index-1}})}else if(r.eat("render")){r.requireWhitespace();let a=w(r);if(!Or(a))De(a);r.eatClosingBrace(),r.append({type:"RenderTag",start:i,end:r.index,expression:a})}else $e(r.index)}var Dr=/(?:var|interface|enum)\b/y,Wr=/(?:let|const|type)\b/y;function Qn(r){let i=r.index;if(r.index+=1,r.allowWhitespace(),r.eat("#"))Xn(r,i);else if(r.eat(":"))zn(r,i);else if(r.eat("@"))Kn(r,i);else if(r.match("/")&&!r.match("/*")&&!r.match("//"))r.index+=1,Zn(r);else if(!Fr(r,i)){let a=w(r);r.eatClosingBrace(),r.append({type:"ExpressionTag",start:i,end:r.index,expression:a})}}function Fr(r,i){let a=r.index,o=r.matchRegex(Dr);if(o)oe({start:a,end:a+o.length});if(!r.matchRegex(Wr))return!1;let u=r.root.comments.length,d=lt(r,r.source,a);if(d.type==="ExpressionStatement")return r.root.comments.length=u,!1;if(d.type!=="VariableDeclaration"||d.kind!=="let"&&d.kind!=="const")oe(d);return r.index=d.end,r.eatClosingBrace(),r.append({type:"DeclarationTag",start:i,end:r.index,declaration:d}),!0}function Jn(r){let{source:i,index:a}=r;if(r.nextAngle<a)r.nextAngle=Yn(i,"<",a);if(r.nextBrace<a)r.nextBrace=Yn(i,"{",a);let o=Math.min(r.nextAngle,r.nextBrace);r.index=o;let u=i.slice(a,o);r.append({type:"Text",start:a,end:o,raw:u,data:S(u,!1,r.entityNames)})}function Yn(r,i,a){let o=r.indexOf(i,a);return o===-1?r.length:o}function D(r,i,a){let o=te(r,i,a);while(o.index<o.source.length)re(o);return ie(o)}function te(r,i,a){let o=r.charCodeAt(0)===65279?r.slice(1):r;return T(o),new ye(o.trimEnd(),o.length,a,i)}function ie(r){if(r.stack.length>1){let u=r.current();if(u.end=u.start+1,u.type==="RegularElement")Q(u,u.name);Te(u)}let{nodes:i}=r.root.fragment,a=i.findIndex((u)=>u.type==="SvelteOptions"),o=i[a];if(o?.type==="SvelteOptions"){i.splice(a,1),r.root.options=Vn(o);let{nodes:u}=o.fragment;if(u.length>0)Ke({start:u[0].start,end:u[u.length-1].end},o.name)}return r.root}function re(r){if(r.match("<"))X(r);else if(r.match("{"))Qn(r);else Jn(r)}
3
- export{X,D,te,ie,re};
@@ -1,10 +0,0 @@
1
- import{ft,p,dt,mt,f,E,L}from"./shared-5kdpxrm3.js";import{I,K,o}from"./shared-zd01zsyh.js";import{z}from"./shared-fcgh2ks8.js";var te=/^\t+/;class e extends Error{name="ParseError";code;reason;position;start;end;frame;constructor(t,r,s){super(`${s}
2
- https://svelte.dev/e/${r}`);this.code=r,this.reason=s;let l=typeof t==="number"?t:t?.start,m=typeof t==="number"?t:t?.end;if(l!==void 0)this.position=[l,m??l],this.start=p(this.position[0]),this.end=p(this.position[1]),this.frame=re(this.start.line-1,this.end.column)}}var T=(t)=>t.replace(te,(r)=>" ".repeat(r.length));function re(t,r){let s=Math.max(0,t-2),l=[];for(let a=s;a<t+3;a++){let d=mt(a);if(d===void 0)break;l.push(d)}let m=s+l.length,i=String(m+1).length;return l.map((a,d)=>{let u=String(d+s+1).padStart(i," ");if(s+d!==t)return`${u}: ${T(a)}`;let h=`${" ".repeat(i+2+T(a.slice(0,r)).length)}^`;return`${u}: ${T(a)}
3
- ${h}`}).join(`
4
- `)}function xe(t){throw new e(t,"attribute_duplicate","Attributes need to be unique")}function ge(t){throw new e(t,"attribute_empty_shorthand","Attribute shorthand cannot be empty")}function be(t,r){throw new e(t,"block_duplicate_clause",`${r} cannot appear more than once within a block`)}function Se(t){throw new e(t,"block_invalid_continuation_placement","{:...} block is invalid at this position (did you forget to close the preceding element or block?)")}function ve(t){throw new e(t,"block_invalid_elseif","'elseif' should be 'else if'")}function Ae(t,r,s){throw new e(t,"block_invalid_placement",`{#${r} ...} block cannot be ${s}`)}function Te(t){throw new e(t,"block_unclosed","Block was left open")}function ke(t){throw new e(t,"block_unexpected_close","Unexpected block closing tag")}function Ee(t){throw new e(t,"const_tag_invalid_expression","{@const ...} must consist of a single variable declaration")}function we(t){throw new e(t,"css_empty_declaration","Declaration cannot be empty")}function ne(t){throw new e(t,"css_expected_identifier","Expected a valid CSS identifier")}function Ce(t){throw new e(t,"css_selector_invalid","Invalid selector")}function Ne(t){throw new e(t,"debug_tag_invalid_arguments","{@debug ...} arguments must be identifiers, not arbitrary expressions")}function oe(t){throw new e(t,"declaration_tag_invalid_type","Declaration tags must be `let` or `const` declarations")}function _e(t){throw new e(t,"directive_invalid_value","Directive value must be a JavaScript expression enclosed in curly braces")}function Pe(t,r){throw new e(t,"directive_missing_name",`\`${r}\` name cannot be empty`)}function Le(t,r){throw new e(t,"element_invalid_closing_tag",`\`</${r}>\` attempted to close an element that was not open`)}function Ie(t,r,s){throw new e(t,"element_invalid_closing_tag_autoclosed",`\`</${r}>\` attempted to close element that was already automatically closed by \`<${s}>\` (cannot nest \`<${s}>\` inside \`<${r}>\`)`)}function Q(t,r){throw new e(t,"element_unclosed",`\`<${r}>\` was left open`)}function ae(t){throw new e(t,"expected_attribute_value","Expected attribute value")}function Re(t){throw new e(t,"expected_block_type","Expected 'if', 'each', 'await', 'key' or 'snippet'")}function le(t){throw new e(t,"expected_identifier","Expected an identifier")}function Oe(t){throw new e(t,"expected_pattern","Expected identifier or destructure pattern")}function $e(t){throw new e(t,"expected_tag","Expected 'html', 'render', 'attach', 'const', or 'debug'")}function c(t,r){throw new e(t,"expected_token",`Expected token ${r}`)}function qe(t){throw new e(t,"expected_whitespace","Expected whitespace")}function B(t,r){throw new e(t,"js_parse_error",`${r}`)}function De(t){throw new e(t,"render_tag_invalid_expression","`{@render ...}` tags can only contain call expressions")}function Be(t){throw new e(t,"script_duplicate","A component can have a single top-level `<script>` element and/or a single top-level `<script module>` element")}function Ve(t,r){throw new e(t,"script_invalid_attribute_value",`If the \`${r}\` attribute is supplied, it must be a boolean attribute`)}function Me(t){throw new e(t,"script_invalid_context",'If the context attribute is supplied, its value must be "module"')}function Fe(t,r){throw new e(t,"script_reserved_attribute",`The \`${r}\` attribute is reserved and cannot be used`)}function We(t){throw new e(t,"style_duplicate","A component can have a single top-level `<style>` element")}function je(t){throw new e(t,"svelte_component_invalid_this","Invalid component definition — must be an `{expression}`")}function Ue(t){throw new e(t,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute")}function pe(t){throw new e(t,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value")}function ze(t,r){throw new e(t,"svelte_meta_duplicate",`A component can only have one \`<${r}>\` element`)}function Ke(t,r){throw new e(t,"svelte_meta_invalid_content",`<${r}> cannot have children`)}function Ge(t,r){throw new e(t,"svelte_meta_invalid_placement",`\`<${r}>\` tags cannot be inside elements or blocks`)}function He(t,r){throw new e(t,"svelte_meta_invalid_tag",`Valid \`<svelte:...>\` tag names are ${r}`)}function Xe(t){throw new e(t,"svelte_options_deprecated_tag",'"tag" option is deprecated — use "customElement" instead')}function Qe(t){throw new e(t,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes")}function Y(t,r){throw new e(t,"svelte_options_invalid_attribute_value",`Value must be ${r}, if specified`)}function Ye(t){throw new e(t,"svelte_options_invalid_customelement",'"customElement" must be a string literal defining a valid custom element name or an object of the form { tag?: string; shadow?: "open" | "none" | `ShadowRootInit`; props?: { [key: string]: { attribute?: string; reflect?: boolean; type: .. } } }')}function Je(t){throw new e(t,"svelte_options_invalid_customelement_props",'"props" must be a statically analyzable object literal of the form "{ [key: string]: { attribute?: string; reflect?: boolean; type?: "String" | "Boolean" | "Number" | "Array" | "Object" }"')}function Ze(t){throw new e(t,"svelte_options_invalid_customelement_shadow",'"shadow" must be either "open", "none" or `ShadowRootInit` object.')}function ce(t){throw new e(t,"svelte_options_invalid_tagname","Tag name must be lowercase and hyphenated")}function et(t){throw new e(t,"svelte_options_reserved_tagname","Tag name is reserved")}function tt(t,r){throw new e(t,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${r}'`)}function it(t){throw new e(t,"tag_invalid_name","Expected a valid element or component name. Components must have a valid variable name or dot notation expression")}function rt(t,r,s){throw new e(t,"tag_invalid_placement",`{@${r} ...} tag cannot be ${s}`)}function n(t){throw new e(t,"unexpected_eof","Unexpected end of input")}function st(t,r){throw new e(t,"unexpected_reserved_word",`'${r}' is a reserved word in JavaScript and cannot be used here`)}function nt(t){throw new e(t,"unterminated_string_constant","Unterminated string constant")}function ot(t){throw new e(t,"void_element_invalid_content","Void elements cannot have children or closing tags")}var w="",F=[],y=0;function V(t,r){w=t,F=r,y=0}function U(){return y}function X(t,r,s,l){y=l}function G(t,r,s,l,m,i){y=l;let a=r;if(t&&a.includes(`
5
- `)){let u=w.lastIndexOf(`
6
- `,s-1)+1,h=u,_=w.charCodeAt(h);while(_===32||_===9)_=w.charCodeAt(++h);if(h>u)a=ie(a,w.slice(u,h))}let d={type:t?"Block":"Line",value:a,start:s,end:l};if(m&&i)d.loc={start:m,end:i};F.push(d)}function ie(t,r){let s=t.startsWith(r)?r.length:0,l="",m=t.indexOf(`
7
- `,s);while(m!==-1){if(l+=t.slice(s,m+1),s=m+1,t.startsWith(r,s))s+=r.length;m=t.indexOf(`
8
- `,s)}return l+t.slice(s)}function J(t,r,s){let l=0,m=r.length;while(l<m){let i=l+m>>>1;if(r[i].start<s)l=i+1;else m=i}if(l>=r.length)return;if(v=r.slice(l).map(({type:i,value:a,start:d,end:u})=>({type:i,value:a,start:d,end:u})),g=0,O(t,void 0,!1),g<v.length&&(v[g].start>=t.end||t.type==="Program")){t.trailingComments??=[];while(g<v.length)t.trailingComments.push(v[g++])}}var v=[],g=0,se=new Map([["BlockStatement","body"],["Program","body"],["ArrayExpression","elements"],["ObjectExpression","properties"]]);function M(t,r){for(let s=t;s<r;s++){let l=w.charCodeAt(s);if(l!==44&&l!==41&&l!==32&&l!==9)return!0}return!1}function O(t,r,s){while(g<v.length&&v[g].start<t.start)t.leadingComments??=[],t.leadingComments.push(v[g++]);if(g>=v.length)return;let l=v[g].start;if(l<t.end||!M(t.end,l)){let m=E(t),i=se.get(t.type),a=i===void 0?void 0:m[i],d=Array.isArray(a)&&a.length===0;for(let u in m){if(g>=v.length)return;if(u==="type")continue;let h=m[u];if(Array.isArray(h)){let _=u===i;for(let x=0;x<h.length;x++){let W=h[x];if(f(W))O(W,t,_?x===h.length-1:d)}}else if(f(h))O(h,t,d)}if(g>=v.length)return}if(r!==void 0&&t.end===r.end)return;if(s)while(g<v.length){if(r&&v[g].start>=r.end)break;t.trailingComments??=[],t.trailingComments.push(v[g++])}else if(t.end<=v[g].start&&!M(t.end,v[g].start))t.trailingComments=[v[g++]]}var P=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(" "));var S=!1,k=1,de=2,me=32,fe=256,ye=k|de|fe,ct=2,ut=3,ht=4,_t=/\r\n?|\n|\u2028|\u2029/,q=new Map;function N(t){if(!(t instanceof RegExp))return t;let r=q.get(t);if(!r){let s=new Set(t.source.slice(4,-2).split("|"));r={test:(l)=>s.has(l)},q.set(t,r)}return r}var he=I((t)=>class extends t{declareName(r,s,l){let m=!1;if(s===ct){let i=this.currentScope();if(m=o(i.lexical,r)||o(i.functions,r)||o(i.var,r),i.lexical.push(r),this.inModule&&i.flags&k)delete this.undefinedExports[r]}else if(s===ht)this.currentScope().lexical.push(r);else if(s===ut){let i=this.currentScope();m=this.treatFunctionsAsVar?o(i.lexical,r):o(i.lexical,r)||o(i.var,r),i.functions.push(r)}else for(let i=this.scopeStack.length-1;i>=0;--i){let a=this.scopeStack[i];if(o(a.lexical,r)&&!(a.flags&me&&a.lexical[0]===r)||!this.treatFunctionsAsVarInScope(a)&&o(a.functions,r)){m=!0;break}if(a.var.push(r),this.inModule&&a.flags&k)delete this.undefinedExports[r];if(a.flags&ye)break}if(m)this.raiseRecoverable(l,`Identifier '${r}' has already been declared`)}}),ue=I((t)=>{let{keywordTypes:r,tokTypes:s}=t.acorn,l=new Map("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 const class extends export import super".split(" ").map((i)=>[i,r[i]])),m;return class extends t{constructor(i,a,d){super(i,a,d);this.keywords=N(this.keywords),this.reservedWords=N(this.reservedWords),this.reservedWordsStrict=N(this.reservedWordsStrict),this.reservedWordsStrictBind=N(this.reservedWordsStrictBind),m??=this.context[0]}reset(i,a,d){if(super.reset?.(i,a,d),this.input=i,this.containsEsc=!1,this.pos=a,d)this.lineStart=a-d.column,this.curLine=d.line;else this.lineStart=i.lastIndexOf(`
9
- `,a-1)+1,this.curLine=this.options.locations?i.slice(0,this.lineStart).split(_t).length:1;this.type=s.eof,this.value=null,this.start=this.end=a,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=a;let u=this.context;if(u.length!==1||u[0]!==m)this.context=this.initialContext();if(this.exprAllowed=!0,this.strict=!0,this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels.length>0)this.labels=[];for(let x in this.undefinedExports){this.undefinedExports=Object.create(null);break}let h=this.scopeStack,_=h[0];if(h.length!==1||_.flags!==k||_.var.length>0||_.lexical.length>0||_.functions.length>0||_.tsTypes!==void 0||_.tsExportOnly!==void 0||_.tsEnums!==void 0)this.scopeStack=[],this.enterScope(k);if(this.regexpState=null,this.privateNameStack.length>0)this.privateNameStack=[];this.inTemplateElement=!1}parseParenAndDistinguishExpression(i,a){let d=super.parseParenAndDistinguishExpression(i,a);if(d.type==="ParenthesizedExpression")S=!0;return d}checkUnreserved(i){if(P.has(i.name))super.checkUnreserved(i)}canInsertSemicolon(){let i=this.type;if(i===s.eof||i===s.braceR)return!0;let a=this.input;for(let d=this.lastTokEnd;d<this.start;d++){let u=a.charCodeAt(d);if(u===10||u===13||u===8232||u===8233)return!0}return!1}checkLocalExport(){}skipSpace(){let i=this.input,a=this.options.locations,d=this.pos,u=i.charCodeAt(d);for(;;)if(u===32||u===9)u=i.charCodeAt(++d);else if(u===10){if(u=i.charCodeAt(++d),a)this.curLine++,this.lineStart=d}else break;if(this.pos=d,u===47||u<33||u>=128)super.skipSpace()}readWord1(){let i=this.input,a=this.pos,d=a,u=i.charCodeAt(d),h=0;while(u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57||u===95||u===36)h=Math.imul(h,31)+u|0,u=i.charCodeAt(++d);if(u>=128||u===92)return super.readWord1();return this.containsEsc=!1,this.pos=d,ft(i,a,d,h)}readWord(){let i=this.readWord1();return this.finishToken(l.get(i)??s.name,i)}}}),H=K(he,ue),vt=/ \(\d+:\d+\)$/;function b(t){return t}function Z(t){return t instanceof SyntaxError&&"pos"in t&&typeof t.pos==="number"}function C(t,r,s,l,m,i=t.root.comments.length){let a=t.root.comments;V(r,a);let d={onComment:t.comments?G:X,sourceType:"module",ecmaVersion:16,locations:t.loc,preserveParens:l};if(t.lfOnly)d.startLocation=p(s);let u=t.isTypeScript?t.typescript:H;if(!u)z();let h;try{h=m(u,d)}catch(_){if(!Z(_))throw _;B(_.pos,_.message.replace(vt,""))}if(a.length>i)J(b(h),a,s);return h}function j(t,r,s=0){return b(C(t,r,0,!1,(l,m)=>{if(s>0&&m.locations)m.startLocation=p(s);let i=new l(m,r,s).parse();return i.start=0,i},0))}function gt(t,r){let{column:s}=p(t);return{line:r?dt(t-s)+1:1,column:s}}var xt={count:0},R,wt=(t)=>t.parseExpression();function bt(t,r,s,l,m){let i=R;if(R=void 0,i?.ParserClass===t&&i.onComment===r.onComment&&i.locations===r.locations&&i.parser.reset)i.parser.reset(s,l,r.startLocation);else i={ParserClass:t,onComment:r.onComment,locations:r.locations,parser:new t(r,s,l)};let a=i.parser;a.nextToken();let d=m(a);return a.input="",R=i,d}function ee(t,r,s,l){return xt.count+=1,S=!1,C(t,r,s,!0,(m,i)=>(i.startLocation??=gt(s,i.locations),bt(m,i,r,s,l)))}function A(t,r,s,l=!1){let m=b(ee(t,r,s,wt)),i=Math.max(m.end,U());return{node:S&&!l?D(m):m,end:i}}function at(t,r,s){let l=t.root.comments.length,m=!0,i=ee(t,r,s,(d)=>{let u={shorthandAssign:-1,trailingComma:-1,parenthesizedAssign:-1,parenthesizedBind:-1,doubleProto:-1},h=d.parseMaybeConditional(void 0,u);if(d.type!==H.acorn.tokTypes.eof)return m=!1,h;let _=d.toAssignable(h,!1,u);return d.checkLValPattern(_),_});if(!m){t.root.comments.length=l;return}let a=b(i);return S?D(a):a}function lt(t,r,s){return b(C(t,r,s,!1,(l,m)=>{let i=new l(m,r,s);try{return i.nextToken(),i.parseStatement(null,!0,Object.create(null))}catch(a){if(Z(a)&&a.pos===r.length)n(r.length);throw a}}))}function pt(t,r,s){let l=C(t,r,0,!1,(m,i)=>{let a=new m(i,r,0),d=a.startNode(),u=[],h=Object.create(null);return s((_)=>{a.pos=_,a.context=a.initialContext(),a.exprAllowed=!0,a.nextToken();let x=a.parseStatement(null,!0,h);return u.push(x),x.end}),d.body=u,a.finishNode(d,"Program")});return b(l).body}function D(t){let r=t;while(r.type==="ParenthesizedExpression")r=r.expression;return L(r,D),r}
10
- export{e,xe,ge,be,Se,ve,Ae,Te,ke,Ee,we,ne,Ce,Ne,oe,_e,Pe,Le,Ie,Q,ae,Re,le,Oe,$e,c,qe,De,Be,Ve,Me,Fe,We,je,Ue,pe,ze,Ke,Ge,He,Xe,Qe,Y,Ye,Je,Ze,ce,et,tt,it,rt,n,st,nt,ot,P,he,ue,j,A,at,lt,pt};
@@ -1,10 +0,0 @@
1
- var pt={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"},lt="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",zt={5:lt,"5module":lt+" export import",6:lt+" const class extends export import super"},Ct=/^in(stanceof)?$/,jt=/\p{ID_Start}/u,Gt=/[\p{ID_Continue}\u200c\u200d]/u;function h(t,e){if(t<65)return t===36;if(t<91)return!0;if(t<97)return t===95;if(t<123)return!0;if(t>65535&&e===!1)return!1;return t>=170&&jt.test(String.fromCodePoint(t))}function y(t,e){if(t<48)return t===36;if(t<58)return!0;if(t<65)return!1;if(t<91)return!0;if(t<97)return t===95;if(t<123)return!0;if(t>65535&&e===!1)return!1;return t>=170&&Gt.test(String.fromCodePoint(t))}var g=function(e,s){if(s===void 0)s={};this.label=e,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 T(t,e){return new g(t,{beforeExpr:!0,binop:e})}var P={beforeExpr:!0},N={startsExpr:!0},dt={};function b(t,e){if(e===void 0)e={};return e.keyword=t,dt[t]=new g(t,e)}var a={num:new g("num",N),regexp:new g("regexp",N),string:new g("string",N),name:new g("name",N),privateId:new g("privateId",N),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(",",P),semi:new g(";",P),colon:new g(":",P),dot:new g("."),question:new g("?",P),questionDot:new g("?."),arrow:new g("=>",P),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",P),backQuote:new g("`",N),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:T("||",1),logicalAND:T("&&",2),bitwiseOR:T("|",3),bitwiseXOR:T("^",4),bitwiseAND:T("&",5),equality:T("==/!=/===/!==",6),relational:T("</>/<=/>=",7),bitShift:T("<</>>/>>>",8),plusMin:new g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:T("%",10),star:T("*",10),slash:T("/",10),starstar:new g("**",{beforeExpr:!0}),coalesce:T("??",1),_break:b("break"),_case:b("case",P),_catch:b("catch"),_continue:b("continue"),_debugger:b("debugger"),_default:b("default",P),_do:b("do",{isLoop:!0,beforeExpr:!0}),_else:b("else",P),_finally:b("finally"),_for:b("for",{isLoop:!0}),_function:b("function",N),_if:b("if"),_return:b("return",P),_switch:b("switch"),_throw:b("throw",P),_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",N),_super:b("super",N),_class:b("class",N),_extends:b("extends",P),_export:b("export"),_import:b("import",N),_null:b("null",N),_true:b("true",N),_false:b("false",N),_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})},E=/\r\n?|\n|\u2028|\u2029/,Ht=new RegExp(E.source,"g");function W(t){return t===10||t===13||t===8232||t===8233}function At(t,e,s){if(s===void 0)s=t.length;for(var r=e;r<s;r++){var n=t.charCodeAt(r);if(W(n))return r<s-1&&n===13&&t.charCodeAt(r+1)===10?r+2:r+1}return-1}var Nt=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,S=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Et=Object.prototype,{hasOwnProperty:Yt,toString:Qt}=Et,Y=Object.hasOwn||function(t,e){return Yt.call(t,e)},kt=Array.isArray||function(t){return Qt.call(t)==="[object Array]"},wt=Object.create(null);function Z(t){return wt[t]||(wt[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function st(t){if(t<=65535)return String.fromCharCode(t);return t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320)}var Kt=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,H=function(e,s){this.line=e,this.column=s};H.prototype.offset=function(e){return new H(this.line,this.column+e)};var rt=function(e,s,r){if(this.start=s,this.end=r,e.sourceFile!==null)this.source=e.sourceFile};function Tt(t,e){for(var s=1,r=0;;){var n=At(t,r,e);if(n<0)return new H(s,e-r);++s,r=n}}var ct={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},St=!1;function Xt(t){var e={};for(var s in ct)e[s]=t&&Y(t,s)?t[s]:ct[s];if(e.ecmaVersion==="latest")e.ecmaVersion=1e8;else if(e.ecmaVersion==null){if(!St&&typeof console==="object"&&console.warn)St=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
2
- Defaulting to 2020, but this will stop working in the future.`);e.ecmaVersion=11}else if(e.ecmaVersion>=2015)e.ecmaVersion-=2009;if(e.allowReserved==null)e.allowReserved=e.ecmaVersion<5;if(!t||t.allowHashBang==null)e.allowHashBang=e.ecmaVersion>=14;if(kt(e.onToken)){var r=e.onToken;e.onToken=function(n){return r.push(n)}}if(kt(e.onComment))e.onComment=Jt(e,e.onComment);if(e.sourceType==="commonjs"&&e.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return e}function Jt(t,e){return function(s,r,n,p,l,c){var u={type:s?"Block":"Line",value:r,start:n,end:p};if(t.locations)u.loc=new rt(this,l,c);if(t.ranges)u.range=[n,p];e.push(u)}}var O=1,B=2,mt=4,Pt=8,vt=16,It=32,at=64,_t=128,M=256,Q=512,Lt=1024,nt=O|B|M;function xt(t,e){return B|(t?mt:0)|(e?Pt:0)}var tt=0,yt=1,V=2,Rt=3,Vt=4,Ft=5,i=function(e,s,r){this.options=e=Xt(e),this.sourceFile=e.sourceFile,this.keywords=Z(zt[e.ecmaVersion>=6?6:e.sourceType==="module"?"5module":5]);var n="";if(e.allowReserved!==!0){if(n=pt[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType==="module")n+=" await"}this.reservedWords=Z(n);var p=(n?n+" ":"")+pt.strict;if(this.reservedWordsStrict=Z(p),this.reservedWordsStrictBind=Z(p+" "+pt.strictBind),this.input=String(s),this.containsEsc=!1,this.pos=r||0,this.curLine=1,e.startLocation)this.lineStart=this.pos-e.startLocation.column,this.curLine=e.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(E).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=e.sourceType==="module",this.strict=this.inModule||e.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&&e.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}};i.prototype.parse=function(){var e=this,s=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return e.parseTopLevel(s)})};_.inFunction.get=function(){return(this.currentVarScope().flags&B)>0};_.inGenerator.get=function(){return(this.currentVarScope().flags&Pt)>0};_.inAsync.get=function(){return(this.currentVarScope().flags&mt)>0};_.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t],s=e.flags;if(s&(M|Q))return!1;if(s&B)return(s&mt)>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 t=this.currentThisScope(),e=t.flags;return(e&at)>0||this.options.allowSuperOutsideMethod};_.allowDirectSuper.get=function(){return(this.currentThisScope().flags&_t)>0};_.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};_.allowNewDotTarget.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t],s=e.flags;if(s&(M|Q)||s&B&&!(s&vt))return!0}return!1};_.allowUsing.get=function(){var t=this.currentScope(),e=t.flags;if(e&Lt)return!1;if(!this.inModule&&e&O)return!1;return!0};_.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&M)>0};i.extend=function(){var e=[],s=arguments.length;while(s--)e[s]=arguments[s];var r=this;for(var n=0;n<e.length;n++)r=e[n](r);return r};i.parse=function(e,s){return new this(s,e).parse()};i.parseExpressionAt=function(e,s,r){var n=new this(r,e,s);return n.nextToken(),n.parseExpression()};i.tokenizer=function(e,s){return new this(s,e)};Object.defineProperties(i.prototype,_);var A=i.prototype,Zt=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;A.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){S.lastIndex=t,t+=S.exec(this.input)[0].length;var e=Zt.exec(this.input.slice(t));if(!e)return!1;if((e[1]||e[2])==="use strict"){S.lastIndex=t+e[0].length;var s=S.exec(this.input),r=s.index+s[0].length,n=this.input.charAt(r);return n===";"||n==="}"||E.test(s[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(n)||n==="!"&&this.input.charAt(r+1)==="=")}if(t+=e[0].length,S.lastIndex=t,t+=S.exec(this.input)[0].length,this.input[t]===";")t++}};A.eat=function(t){if(this.type===t)return this.next(),!0;else return!1};A.isContextual=function(t){return this.type===a.name&&this.value===t&&!this.containsEsc};A.eatContextual=function(t){if(!this.isContextual(t))return!1;return this.next(),!0};A.catchStackOverflow=function(t){try{return t()}catch(e){if(e instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(e.message)||/\btoo much recursion\b/i.test(e.message)))this.raise(this.start,"Not enough stack space to parse input");else throw e}};A.expectContextual=function(t){if(!this.eatContextual(t))this.unexpected()};A.canInsertSemicolon=function(){return this.type===a.eof||this.type===a.braceR||E.test(this.input.slice(this.lastTokEnd,this.start))};A.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};A.semicolon=function(){if(!this.eat(a.semi)&&!this.insertSemicolon())this.unexpected()};A.afterTrailingComma=function(t,e){if(this.type===t){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!e)this.next();return!0}};A.expect=function(t){this.eat(t)||this.unexpected()};A.unexpected=function(t){this.raise(t!=null?t:this.start,"Unexpected token")};var ot=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};A.checkPatternErrors=function(t,e){if(!t)return;if(t.trailingComma>-1)this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var s=e?t.parenthesizedAssign:t.parenthesizedBind;if(s>-1)this.raiseRecoverable(s,e?"Assigning to rvalue":"Parenthesized pattern")};A.checkExpressionErrors=function(t,e){if(!t)return!1;var{shorthandAssign:s,doubleProto:r}=t;if(!e)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")};A.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")};A.isSimpleAssignTarget=function(t){if(t.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(t.expression);return t.type==="Identifier"||t.type==="MemberExpression"};var f=i.prototype;f.parseTopLevel=function(t){var e=Object.create(null);if(!t.body)t.body=[];while(this.type!==a.eof){var s=this.parseStatement(null,!0,e);t.body.push(s)}if(this.inModule)for(var r=0,n=Object.keys(this.undefinedExports);r<n.length;r+=1){var p=n[r];this.raiseRecoverable(this.undefinedExports[p].start,"Export '"+p+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(t,"Program")};var bt={kind:"loop"},$t={kind:"switch"};f.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;S.lastIndex=this.pos;var e=S.exec(this.input),s=this.pos+e[0].length,r=this.fullCharCodeAt(s);if(r===91||r===92)return!0;if(t)return!1;if(r===123)return!0;if(h(r)){var n=s;do s+=r<=65535?1:2;while(y(r=this.fullCharCodeAt(s)));if(r===92)return!0;var p=this.input.slice(n,s);if(!Ct.test(p))return!0}return!1};f.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;S.lastIndex=this.pos;var t=S.exec(this.input),e=this.pos+t[0].length,s;return!E.test(this.input.slice(this.pos,e))&&this.input.slice(e,e+8)==="function"&&(e+8===this.input.length||!(y(s=this.fullCharCodeAt(e+8))||s===92))};f.isUsingKeyword=function(t,e){if(this.options.ecmaVersion<17||!this.isContextual(t?"await":"using"))return!1;S.lastIndex=this.pos;var s=S.exec(this.input),r=this.pos+s[0].length;if(E.test(this.input.slice(this.pos,r)))return!1;if(t){var n=r+5,p;if(this.input.slice(r,n)!=="using"||n===this.input.length||y(p=this.fullCharCodeAt(n))||p===92)return!1;S.lastIndex=n;var l=S.exec(this.input);if(r=n+l[0].length,l&&E.test(this.input.slice(n,r)))return!1}var c=this.fullCharCodeAt(r);if(!h(c)&&c!==92)return!1;var u=r;do r+=c<=65535?1:2;while(y(c=this.fullCharCodeAt(r)));if(c===92)return!0;var d=this.input.slice(u,r);if(Ct.test(d))return!1;if(e&&!t&&d==="of"){S.lastIndex=r;var v=S.exec(this.input);if(r=r+v[0].length,this.input.charCodeAt(r)!==61||(c=this.input.charCodeAt(r+1))===61||c===62)return!1}return!0};f.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)};f.isUsing=function(t){return this.isUsingKeyword(!1,t)};f.parseStatement=function(t,e,s){var r=this.type,n=this.startNode(),p;if(this.isLet(t))r=a._var,p="let";switch(r){case a._break:case a._continue:return this.parseBreakContinueStatement(n,r.keyword);case a._debugger:return this.parseDebuggerStatement(n);case a._do:return this.parseDoStatement(n);case a._for:return this.parseForStatement(n);case a._function:if(t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(n,!1,!t);case a._class:if(t)this.unexpected();return this.parseClass(n,!0);case a._if:return this.parseIfStatement(n);case a._return:return this.parseReturnStatement(n);case a._switch:return this.parseSwitchStatement(n);case a._throw:return this.parseThrowStatement(n);case a._try:return this.parseTryStatement(n);case a._const:case a._var:if(p=p||this.value,t&&p!=="var")this.unexpected();return this.parseVarStatement(n,p);case a._while:return this.parseWhileStatement(n);case a._with:return this.parseWithStatement(n);case a.braceL:return this.parseBlock(!0,n);case a.semi:return this.parseEmptyStatement(n);case a._export:case a._import:if(this.options.ecmaVersion>10&&r===a._import){S.lastIndex=this.pos;var l=S.exec(this.input),c=this.pos+l[0].length,u=this.input.charCodeAt(c);if(u===40||u===46)return this.parseExpressionStatement(n,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!e)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(n):this.parseExport(n,s);default:if(this.isAsyncFunction()){if(t)this.unexpected();return this.next(),this.parseFunctionStatement(n,!0,!t)}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(t)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(n,!1,d),this.semicolon(),this.finishNode(n,"VariableDeclaration")}var v=this.value,k=this.parseExpression();if(r===a.name&&k.type==="Identifier"&&this.eat(a.colon))return this.parseLabeledStatement(n,v,k,t);else return this.parseExpressionStatement(n,k)}};f.parseBreakContinueStatement=function(t,e){var s=e==="break";if(this.next(),this.eat(a.semi)||this.insertSemicolon())t.label=null;else if(this.type!==a.name)this.unexpected();else t.label=this.parseIdent(),this.semicolon();var r=0;for(;r<this.labels.length;++r){var n=this.labels[r];if(t.label==null||n.name===t.label.name){if(n.kind!=null&&(s||n.kind==="loop"))break;if(t.label&&s)break}}if(r===this.labels.length)this.raise(t.start,"Unsyntactic "+e);return this.finishNode(t,s?"BreakStatement":"ContinueStatement")};f.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")};f.parseDoStatement=function(t){if(this.next(),this.labels.push(bt),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(a._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(a.semi);else this.semicolon();return this.finishNode(t,"DoWhileStatement")};f.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(bt),this.enterScope(0),this.expect(a.parenL),this.type===a.semi){if(e>-1)this.unexpected(e);return this.parseFor(t,null)}var s=this.isLet();if(this.type===a._var||this.type===a._const||s){var r=this.startNode(),n=s?"let":this.value;return this.next(),this.parseVar(r,!0,n),this.finishNode(r,"VariableDeclaration"),this.parseForAfterInit(t,r,e)}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(t,u,e)}var d=this.containsEsc,v=new ot,k=this.start,C=e>-1?this.parseExprSubscripts(v,"await"):this.parseExpression(!0,v);if(this.type===a._in||(l=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(e>-1){if(this.type===a._in)this.unexpected(e);t.await=!0}else if(l&&this.options.ecmaVersion>=8){if(C.start===k&&!d&&C.type==="Identifier"&&C.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)t.await=!1}if(p&&l)this.raise(C.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(C,!1,v),this.checkLValPattern(C),this.parseForIn(t,C)}else this.checkExpressionErrors(v,!0);if(e>-1)this.unexpected(e);return this.parseFor(t,C)};f.parseForAfterInit=function(t,e,s){if((this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&e.declarations.length===1){if(this.type===a._in){if((e.kind==="using"||e.kind==="await using")&&!e.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)t.await=s>-1;return this.parseForIn(t,e)}if(s>-1)this.unexpected(s);return this.parseFor(t,e)};f.parseFunctionStatement=function(t,e,s){return this.next(),this.parseFunction(t,G|(s?0:ut),!1,e)};f.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(a._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")};f.parseReturnStatement=function(t){if(!this.allowReturn)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(a.semi)||this.insertSemicolon())t.argument=null;else t.argument=this.parseExpression(),this.semicolon();return this.finishNode(t,"ReturnStatement")};f.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(a.braceL),this.labels.push($t),this.enterScope(Lt);var e;for(var s=!1;this.type!==a.braceR;)if(this.type===a._case||this.type===a._default){var r=this.type===a._case;if(e)this.finishNode(e,"SwitchCase");if(t.cases.push(e=this.startNode()),e.consequent=[],this.next(),r)e.test=this.parseExpression();else{if(s)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");s=!0,e.test=null}this.expect(a.colon)}else{if(!e)this.unexpected();e.consequent.push(this.parseStatement(null))}if(this.exitScope(),e)this.finishNode(e,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")};f.parseThrowStatement=function(t){if(this.next(),E.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var te=[];f.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e=t.type==="Identifier";return this.enterScope(e?It:0),this.checkLValPattern(t,e?Vt:V),this.expect(a.parenR),t};f.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===a._catch){var e=this.startNode();if(this.next(),this.eat(a.parenL))e.param=this.parseCatchClauseParam();else{if(this.options.ecmaVersion<10)this.unexpected();e.param=null,this.enterScope(0)}e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}if(t.finalizer=this.eat(a._finally)?this.parseBlock():null,!t.handler&&!t.finalizer)this.raise(t.start,"Missing catch or finally clause");return this.finishNode(t,"TryStatement")};f.parseVarStatement=function(t,e,s){return this.next(),this.parseVar(t,!1,e,s),this.semicolon(),this.finishNode(t,"VariableDeclaration")};f.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(bt),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")};f.parseWithStatement=function(t){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")};f.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")};f.parseLabeledStatement=function(t,e,s,r){for(var n=0,p=this.labels;n<p.length;n+=1){var l=p[n];if(l.name===e)this.raise(s.start,"Label '"+e+"' 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===t.start)d.statementStart=this.start,d.kind=c;else break}return this.labels.push({name:e,kind:c,statementStart:this.start}),t.body=this.parseStatement(r?r.indexOf("label")===-1?r+"label":r:"label"),this.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")};f.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")};f.parseBlock=function(t,e,s){if(t===void 0)t=!0;if(e===void 0)e=this.startNode();if(e.body=[],this.expect(a.braceL),t)this.enterScope(0);while(this.type!==a.braceR){var r=this.parseStatement(null);e.body.push(r)}if(s)this.strict=!1;if(this.next(),t)this.exitScope();return this.finishNode(e,"BlockStatement")};f.parseFor=function(t,e){return t.init=e,this.expect(a.semi),t.test=this.type===a.semi?null:this.parseExpression(),this.expect(a.semi),t.update=this.type===a.parenR?null:this.parseExpression(),this.expect(a.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")};f.parseForIn=function(t,e){var s=this.type===a._in;if(this.next(),e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!s||this.options.ecmaVersion<8||this.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier"))this.raise(e.start,(s?"for-in":"for-of")+" loop variable declaration may not have an initializer");return t.left=e,t.right=s?this.parseExpression():this.parseMaybeAssign(),this.expect(a.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,s?"ForInStatement":"ForOfStatement")};f.parseVar=function(t,e,s,r){t.declarations=[],t.kind=s;for(;;){var n=this.startNode();if(this.parseVarId(n,s),this.eat(a.eq))n.init=this.parseMaybeAssign(e);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&&n.id.type!=="Identifier"&&!(e&&(this.type===a._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else n.init=null;if(t.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(a.comma))break}return t};f.parseVarId=function(t,e){t.id=e==="using"||e==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(t.id,e==="var"?yt:V,!1)};var G=1,ut=2,Ot=4;f.parseFunction=function(t,e,s,r,n){if(this.initFunction(t),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r){if(this.type===a.star&&e&ut)this.unexpected();t.generator=this.eat(a.star)}if(this.options.ecmaVersion>=8)t.async=!!r;if(e&G){if(t.id=e&Ot&&this.type!==a.name?null:this.parseIdent(),t.id&&!(e&ut))this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?yt:V:Rt)}var p=this.yieldPos,l=this.awaitPos,c=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(xt(t.async,t.generator)),!(e&G))t.id=this.type===a.name?this.parseIdent():null;return this.parseFunctionParams(t),this.parseFunctionBody(t,s,!1,n),this.yieldPos=p,this.awaitPos=l,this.awaitIdentPos=c,this.finishNode(t,e&G?"FunctionDeclaration":"FunctionExpression")};f.parseFunctionParams=function(t){this.expect(a.parenL),t.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};f.parseClass=function(t,e){this.next();var s=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var r=this.enterClassBody(),n=this.startNode(),p=!1;n.body=[],this.expect(a.braceL);while(this.type!==a.braceR){var l=this.parseClassElement(t.superClass!==null);if(l){if(n.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"&&ee(r,l))this.raiseRecoverable(l.key.start,"Identifier '#"+l.key.name+"' has already been declared")}}return this.strict=s,this.next(),t.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")};f.parseClassElement=function(t){if(this.eat(a.semi))return null;var e=this.options.ecmaVersion,s=this.startNode(),r="",n=!1,p=!1,l="method",c=!1;if(this.eatContextual("static")){if(e>=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&&e>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===a.star)&&!this.canInsertSemicolon())p=!0;else r="async";if(!r&&(e>=9||!p)&&this.eat(a.star))n=!0;if(!r&&!p&&!n){var u=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())l=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(e<13||this.type===a.parenL||l!=="method"||n||p){var d=!s.static&&et(s,"constructor"),v=d&&t;if(d&&l!=="method")this.raise(s.key.start,"Constructor can't have get/set modifier");s.kind=d?"constructor":l,this.parseClassMethod(s,n,p,v)}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(t){if(this.type===a.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");t.computed=!1,t.key=this.parsePrivateIdent()}else this.parsePropertyName(t)};f.parseClassMethod=function(t,e,s,r){var n=t.key;if(t.kind==="constructor"){if(e)this.raise(n.start,"Constructor can't be a generator");if(s)this.raise(n.start,"Constructor can't be an async method")}else if(t.static&&et(t,"prototype"))this.raise(n.start,"Classes may not have a static property named prototype");var p=t.value=this.parseMethod(e,s,r);if(t.kind==="get"&&p.params.length!==0)this.raiseRecoverable(p.start,"getter should have no params");if(t.kind==="set"&&p.params.length!==1)this.raiseRecoverable(p.start,"setter should have exactly one param");if(t.kind==="set"&&p.params[0].type==="RestElement")this.raiseRecoverable(p.params[0].start,"Setter cannot use rest params");return this.finishNode(t,"MethodDefinition")};f.parseClassField=function(t){if(et(t,"constructor"))this.raise(t.key.start,"Classes can't have a field named 'constructor'");else if(t.static&&et(t,"prototype"))this.raise(t.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(a.eq))this.enterScope(Q|at),t.value=this.parseMaybeAssign(),this.exitScope();else t.value=null;return this.semicolon(),this.finishNode(t,"PropertyDefinition")};f.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;this.labels=[],this.enterScope(M|at);while(this.type!==a.braceR){var s=this.parseStatement(null);t.body.push(s)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")};f.parseClassId=function(t,e){if(this.type===a.name){if(t.id=this.parseIdent(),e)this.checkLValSimple(t.id,V,!1)}else{if(e===!0)this.unexpected();t.id=null}};f.parseClassSuper=function(t){t.superClass=this.eat(a._extends)?this.parseExprSubscripts(null,!1):null};f.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared};f.exitClassBody=function(){var t=this.privateNameStack.pop(),{declared:e,used:s}=t;if(!this.options.checkPrivateFields)return;var r=this.privateNameStack.length,n=r===0?null:this.privateNameStack[r-1];for(var p=0;p<s.length;++p){var l=s[p];if(!Y(e,l.name))if(n)n.used.push(l);else this.raiseRecoverable(l.start,"Private field '#"+l.name+"' must be declared in an enclosing class")}};function ee(t,e){var s=e.key.name,r=t[s],n="true";if(e.type==="MethodDefinition"&&(e.kind==="get"||e.kind==="set"))n=(e.static?"s":"i")+e.kind;if(r==="iget"&&n==="iset"||r==="iset"&&n==="iget"||r==="sget"&&n==="sset"||r==="sset"&&n==="sget")return t[s]="true",!1;else if(!r)return t[s]=n,!1;else return!0}function et(t,e){var{computed:s,key:r}=t;return!s&&(r.type==="Identifier"&&r.name===e||r.type==="Literal"&&r.value===e)}f.parseExportAllDeclaration=function(t,e){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart);else t.exported=null;if(this.expectContextual("from"),this.type!==a.string)this.unexpected();if(t.source=this.parseExprAtom(),this.options.ecmaVersion>=16)t.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(t,"ExportAllDeclaration")};f.parseExport=function(t,e){if(this.next(),this.eat(a.star))return this.parseExportAllDeclaration(t,e);if(this.eat(a._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(t.declaration=this.parseExportDeclaration(t),t.declaration.type==="VariableDeclaration")this.checkVariableExport(e,t.declaration.declarations);else this.checkExport(e,t.declaration.id,t.declaration.id.start);if(t.specifiers=[],t.source=null,this.options.ecmaVersion>=16)t.attributes=[]}else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from")){if(this.type!==a.string)this.unexpected();if(t.source=this.parseExprAtom(),this.options.ecmaVersion>=16)t.attributes=this.parseWithClause()}else{for(var s=0,r=t.specifiers;s<r.length;s+=1){var n=r[s];if(this.checkUnreserved(n.local),this.checkLocalExport(n.local),n.local.type==="Literal")this.raise(n.local.start,"A string literal cannot be used as an exported binding without `from`.")}if(t.source=null,this.options.ecmaVersion>=16)t.attributes=[]}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")};f.parseExportDeclaration=function(t){return this.parseStatement(null)};f.parseExportDefaultDeclaration=function(){var t;if(this.type===a._function||(t=this.isAsyncFunction())){var e=this.startNode();if(this.next(),t)this.next();return this.parseFunction(e,G|Ot,!1,t)}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(t,e,s){if(!t)return;if(typeof e!=="string")e=e.type==="Identifier"?e.name:e.value;if(Y(t,e))this.raiseRecoverable(s,"Duplicate export '"+e+"'");t[e]=!0};f.checkPatternExport=function(t,e){var s=e.type;if(s==="Identifier")this.checkExport(t,e,e.start);else if(s==="ObjectPattern")for(var r=0,n=e.properties;r<n.length;r+=1){var p=n[r];this.checkPatternExport(t,p)}else if(s==="ArrayPattern")for(var l=0,c=e.elements;l<c.length;l+=1){var u=c[l];if(u)this.checkPatternExport(t,u)}else if(s==="Property")this.checkPatternExport(t,e.value);else if(s==="AssignmentPattern")this.checkPatternExport(t,e.left);else if(s==="RestElement")this.checkPatternExport(t,e.argument)};f.checkVariableExport=function(t,e){if(!t)return;for(var s=0,r=e;s<r.length;s+=1){var n=r[s];this.checkPatternExport(t,n.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(t){var e=this.startNode();return e.local=this.parseModuleExportName(),e.exported=this.eatContextual("as")?this.parseModuleExportName():e.local,this.checkExport(t,e.exported,e.exported.start),this.finishNode(e,"ExportSpecifier")};f.parseExportSpecifiers=function(t){var e=[],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;e.push(this.parseExportSpecifier(t))}return e};f.parseImport=function(t){if(this.next(),this.type===a.string)t.specifiers=te,t.source=this.parseExprAtom();else t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===a.string?this.parseExprAtom():this.unexpected();if(this.options.ecmaVersion>=16)t.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(t,"ImportDeclaration")};f.parseImportSpecifier=function(){var t=this.startNode();if(t.imported=this.parseModuleExportName(),this.eatContextual("as"))t.local=this.parseIdent();else this.checkUnreserved(t.imported),t.local=t.imported;return this.checkLValSimple(t.local,V),this.finishNode(t,"ImportSpecifier")};f.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,V),this.finishNode(t,"ImportDefaultSpecifier")};f.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,V),this.finishNode(t,"ImportNamespaceSpecifier")};f.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===a.name){if(t.push(this.parseImportDefaultSpecifier()),!this.eat(a.comma))return t}if(this.type===a.star)return t.push(this.parseImportNamespaceSpecifier()),t;this.expect(a.braceL);while(!this.eat(a.braceR)){if(!e){if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break}else e=!1;t.push(this.parseImportSpecifier())}return t};f.parseWithClause=function(){var t=[];if(!this.eat(a._with))return t;this.expect(a.braceL);var e={},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(),n=r.key.type==="Identifier"?r.key.name:r.key.value;if(Y(e,n))this.raiseRecoverable(r.key.start,"Duplicate attribute key '"+n+"'");e[n]=!0,t.push(r)}return t};f.parseImportAttribute=function(){var t=this.startNode();if(t.key=this.type===a.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(a.colon),this.type!==a.string)this.unexpected();return t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")};f.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===a.string){var t=this.parseLiteral(this.value);if(Kt.test(t.value))this.raise(t.start,"An export name cannot include a lone surrogate.");return t}return this.parseIdent(!0)};f.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)};f.isDirectiveCandidate=function(t){return this.options.ecmaVersion>=5&&t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value==="string"&&(this.input[t.start]==='"'||this.input[t.start]==="'")};var L=i.prototype;L.toAssignable=function(t,e,s){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":if(this.inAsync&&t.name==="await")this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(t.type="ObjectPattern",s)this.checkPatternErrors(s,!0);for(var r=0,n=t.properties;r<n.length;r+=1){var p=n[r];if(this.toAssignable(p,e),p.type==="RestElement"&&(p.argument.type==="ArrayPattern"||p.argument.type==="ObjectPattern"))this.raise(p.argument.start,"Unexpected token")}break;case"Property":if(t.kind!=="init")this.raise(t.key.start,"Object pattern can't contain getter or setter");this.toAssignable(t.value,e);break;case"ArrayExpression":if(t.type="ArrayPattern",s)this.checkPatternErrors(s,!0);this.toAssignableList(t.elements,e);break;case"SpreadElement":if(t.type="RestElement",this.toAssignable(t.argument,e),t.argument.type==="AssignmentPattern")this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(t.operator!=="=")this.raise(t.left.end,"Only '=' operator can be used for specifying default value.");t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,s);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else if(s)this.checkPatternErrors(s,!0);return t};L.toAssignableList=function(t,e){var s=t.length;for(var r=0;r<s;r++){var n=t[r];if(n)this.toAssignable(n,e)}if(s){var p=t[s-1];if(this.options.ecmaVersion===6&&e&&p&&p.type==="RestElement"&&p.argument.type!=="Identifier")this.unexpected(p.argument.start)}return t};L.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")};L.parseRestBinding=function(){var t=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==a.name)this.unexpected();return t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")};L.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case a.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(a.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case a.braceL:return this.parseObj(!0)}return this.parseIdent()};L.parseBindingList=function(t,e,s,r){var n=[],p=!0;while(!this.eat(t)){if(p)p=!1;else this.expect(a.comma);if(e&&this.type===a.comma)n.push(null);else if(s&&this.afterTrailingComma(t))break;else if(this.type===a.ellipsis){var l=this.parseRestBinding();if(this.parseBindingListItem(l),n.push(l),this.type===a.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");this.expect(t);break}else n.push(this.parseAssignableListItem(r))}return n};L.parseAssignableListItem=function(t){var e=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(e),e};L.parseBindingListItem=function(t){return t};L.parseMaybeDefault=function(t,e,s){if(s=s||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(a.eq))return s;var r=this.startNodeAt(t,e);return r.left=s,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")};L.checkLValSimple=function(t,e,s){if(e===void 0)e=tt;var r=e!==tt;switch(t.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(t.name))this.raiseRecoverable(t.start,(r?"Binding ":"Assigning to ")+t.name+" in strict mode");if(r){if(e===V&&t.name==="let")this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name");if(s){if(Y(s,t.name))this.raiseRecoverable(t.start,"Argument name clash");s[t.name]=!0}if(e!==Ft)this.declareName(t.name,e,t.start)}break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(r)this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":if(r)this.raiseRecoverable(t.start,"Binding parenthesized expression");return this.checkLValSimple(t.expression,e,s);default:this.raise(t.start,(r?"Binding":"Assigning to")+" rvalue")}};L.checkLValPattern=function(t,e,s){if(e===void 0)e=tt;switch(t.type){case"ObjectPattern":for(var r=0,n=t.properties;r<n.length;r+=1){var p=n[r];this.checkLValInnerPattern(p,e,s)}break;case"ArrayPattern":for(var l=0,c=t.elements;l<c.length;l+=1){var u=c[l];if(u)this.checkLValInnerPattern(u,e,s)}break;default:this.checkLValSimple(t,e,s)}};L.checkLValInnerPattern=function(t,e,s){if(e===void 0)e=tt;switch(t.type){case"Property":this.checkLValInnerPattern(t.value,e,s);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,s);break;case"RestElement":this.checkLValPattern(t.argument,e,s);break;default:this.checkLValPattern(t,e,s)}};var R=function(e,s,r,n,p){this.token=e,this.isExpr=!!s,this.preserveSpace=!!r,this.override=n,this.generator=!!p},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(t){return t.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)},z=i.prototype;z.initialContext=function(){return[w.b_stat]};z.curContext=function(){return this.context[this.context.length-1]};z.braceIsBlock=function(t){var e=this.curContext();if(e===w.f_expr||e===w.f_stat)return!0;if(t===a.colon&&(e===w.b_stat||e===w.b_expr))return!e.isExpr;if(t===a._return||t===a.name&&this.exprAllowed)return E.test(this.input.slice(this.lastTokEnd,this.start));if(t===a._else||t===a.semi||t===a.eof||t===a.parenR||t===a.arrow)return!0;if(t===a.braceL)return e===w.b_stat;if(t===a._var||t===a._const||t===a.name)return!1;return!this.exprAllowed};z.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if(e.token==="function")return e.generator}return!1};z.updateContext=function(t){var e,s=this.type;if(s.keyword&&t===a.dot)this.exprAllowed=!1;else if(e=s.updateContext)e.call(this,t);else this.exprAllowed=s.beforeExpr};z.overrideContext=function(t){if(this.curContext()!==t)this.context[this.context.length-1]=t};a.parenR.updateContext=a.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var t=this.context.pop();if(t===w.b_stat&&this.curContext().token==="function")t=this.context.pop();this.exprAllowed=!t.isExpr};a.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?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(t){var e=t===a._if||t===a._for||t===a._with||t===a._while;this.context.push(e?w.p_stat:w.p_expr),this.exprAllowed=!0};a.incDec.updateContext=function(){};a._function.updateContext=a._class.updateContext=function(t){if(t.beforeExpr&&t!==a._else&&!(t===a.semi&&this.curContext()!==w.p_stat)&&!(t===a._return&&E.test(this.input.slice(this.lastTokEnd,this.start)))&&!((t===a.colon||t===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(t){if(t===a._function){var e=this.context.length-1;if(this.context[e]===w.f_expr)this.context[e]=w.f_expr_gen;else this.context[e]=w.f_gen}this.exprAllowed=!0};a.name.updateContext=function(t){var e=!1;if(this.options.ecmaVersion>=6&&t!==a.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())e=!0}this.exprAllowed=e};var m=i.prototype;m.checkPropClash=function(t,e,s){if(this.options.ecmaVersion>=9&&t.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))return;var r=t.key,n;switch(r.type){case"Identifier":n=r.name;break;case"Literal":n=String(r.value);break;default:return}var p=t.kind;if(this.options.ecmaVersion>=6){if(n==="__proto__"&&p==="init"){if(e.proto)if(s){if(s.doubleProto<0)s.doubleProto=r.start}else this.raiseRecoverable(r.start,"Redefinition of __proto__ property");e.proto=!0}return}n="$"+n;var l=e[n];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(r.start,"Redefinition of property")}else l=e[n]={init:!1,get:!1,set:!1};l[p]=!0};m.parseExpression=function(t,e){var s=this;return this.catchStackOverflow(function(){var{start:r,startLoc:n}=s,p=s.parseMaybeAssign(t,e);if(s.type===a.comma){var l=s.startNodeAt(r,n);l.expressions=[p];while(s.eat(a.comma))l.expressions.push(s.parseMaybeAssign(t,e));return s.finishNode(l,"SequenceExpression")}return p})};m.parseMaybeAssign=function(t,e,s){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(t);else this.exprAllowed=!1;var r=!1,n=-1,p=-1,l=-1;if(e)n=e.parenthesizedAssign,p=e.trailingComma,l=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1;else e=new ot,r=!0;var c=this.start,u=this.startLoc;if(this.type===a.parenL||this.type===a.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=t==="await";var d=this.parseMaybeConditional(t,e);if(s)d=s.call(this,d,c,u);if(this.type.isAssign){var v=this.startNodeAt(c,u);if(v.operator=this.value,this.type===a.eq)d=this.toAssignable(d,!1,e);if(!r)e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1;if(e.shorthandAssign>=d.start)e.shorthandAssign=-1;if(this.type===a.eq)this.checkLValPattern(d);else this.checkLValSimple(d);if(v.left=d,this.next(),v.right=this.parseMaybeAssign(t),l>-1)e.doubleProto=l;return this.finishNode(v,"AssignmentExpression")}else if(r)this.checkExpressionErrors(e,!0);if(n>-1)e.parenthesizedAssign=n;if(p>-1)e.trailingComma=p;return d};m.parseMaybeConditional=function(t,e){var s=this.start,r=this.startLoc,n=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return n;if(!(n.type==="ArrowFunctionExpression"&&n.start===s)&&this.eat(a.question)){var p=this.startNodeAt(s,r);return p.test=n,p.consequent=this.parseMaybeAssign(),this.expect(a.colon),p.alternate=this.parseMaybeAssign(t),this.finishNode(p,"ConditionalExpression")}return n};m.parseExprOps=function(t,e){var s=this.start,r=this.startLoc,n=this.parseMaybeUnary(e,!1,!1,t);if(this.checkExpressionErrors(e))return n;return n.start===s&&n.type==="ArrowFunctionExpression"?n:this.parseExprOp(n,s,r,-1,t)};m.parseExprOp=function(t,e,s,r,n){var p=this.type.binop;if(p!=null&&(!n||this.type!==a._in)){if(p>r){var l=this.type===a.logicalOR||this.type===a.logicalAND,c=this.type===a.coalesce;if(c)p=a.logicalAND.binop;var u=this.value;this.next();var d=this.start,v=this.startLoc,k=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,n),d,v,p,n),C=this.buildBinary(e,s,t,k,u,l||c);if(l&&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(C,e,s,r,n)}}return t};m.buildBinary=function(t,e,s,r,n,p){if(r.type==="PrivateIdentifier")this.raise(r.start,"Private identifier can only be left side of binary expression");var l=this.startNodeAt(t,e);return l.left=s,l.operator=n,l.right=r,this.finishNode(l,p?"LogicalExpression":"BinaryExpression")};m.parseMaybeUnary=function(t,e,s,r){var n=this.start,p=this.startLoc,l;if(this.isContextual("await")&&this.canAwait)l=this.parseAwait(r),e=!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(t,!0),u)this.checkLValSimple(c.argument);else if(this.strict&&c.operator==="delete"&&Bt(c.argument))this.raiseRecoverable(c.start,"Deleting local variable in strict mode");else if(c.operator==="delete"&&ft(c.argument))this.raiseRecoverable(c.start,"Private fields can not be deleted");else e=!0;l=this.finishNode(c,u?"UpdateExpression":"UnaryExpression")}else if(!e&&this.type===a.privateId){if((r||this.privateNameStack.length===0)&&this.options.checkPrivateFields)this.unexpected();if(l=this.parsePrivateIdent(),this.type!==a._in)this.unexpected()}else{if(l=this.parseExprSubscripts(t,r),this.checkExpressionErrors(t))return l;while(this.type.postfix&&!this.canInsertSemicolon()){var d=this.startNodeAt(n,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===n)&&this.eat(a.starstar))if(e)this.unexpected(this.lastTokStart);else return this.buildBinary(n,p,l,this.parseMaybeUnary(null,!1,!1,r),"**",!1);else return l};function Bt(t){return t.type==="Identifier"||t.type==="ParenthesizedExpression"&&Bt(t.expression)}function ft(t){return t.type==="MemberExpression"&&t.property.type==="PrivateIdentifier"||t.type==="ChainExpression"&&ft(t.expression)||t.type==="ParenthesizedExpression"&&ft(t.expression)}m.parseExprSubscripts=function(t,e){var s=this.start,r=this.startLoc,n=this.parseExprAtom(t,e);if(n.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return n;var p=this.parseSubscripts(n,s,r,!1,e);if(t&&p.type==="MemberExpression"){if(t.parenthesizedAssign>=p.start)t.parenthesizedAssign=-1;if(t.parenthesizedBind>=p.start)t.parenthesizedBind=-1;if(t.trailingComma>=p.start)t.trailingComma=-1}return p};m.parseSubscripts=function(t,e,s,r,n){var p=this.options.ecmaVersion>=8&&t.type==="Identifier"&&t.name==="async"&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,l=!1;while(!0){var c=this.parseSubscript(t,e,s,r,p,l,n);if(c.optional)l=!0;if(c===t||c.type==="ArrowFunctionExpression"){if(l){var u=this.startNodeAt(e,s);u.expression=c,c=this.finishNode(u,"ChainExpression")}return c}t=c}};m.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(a.arrow)};m.parseSubscriptAsyncArrow=function(t,e,s,r){return this.parseArrowExpression(this.startNodeAt(t,e),s,!0,r)};m.parseSubscript=function(t,e,s,r,n,p,l){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 v=this.startNodeAt(e,s);if(v.object=t,d)v.property=this.parseExpression(),this.expect(a.bracketR);else if(this.type===a.privateId&&t.type!=="Super")v.property=this.parsePrivateIdent();else v.property=this.parseIdent(this.options.allowReserved!=="never");if(v.computed=!!d,c)v.optional=u;t=this.finishNode(v,"MemberExpression")}else if(!r&&this.eat(a.parenL)){var k=new ot,C=this.yieldPos,j=this.awaitPos,D=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var J=this.parseExprList(a.parenR,this.options.ecmaVersion>=8,!1,k);if(n&&!u&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(k,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=C,this.awaitPos=j,this.awaitIdentPos=D,this.parseSubscriptAsyncArrow(e,s,J,l)}this.checkExpressionErrors(k,!0),this.yieldPos=C||this.yieldPos,this.awaitPos=j||this.awaitPos,this.awaitIdentPos=D||this.awaitIdentPos;var U=this.startNodeAt(e,s);if(U.callee=t,U.arguments=J,c)U.optional=u;t=this.finishNode(U,"CallExpression")}else if(this.type===a.backQuote){if(u||p)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var q=this.startNodeAt(e,s);q.tag=t,q.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(q,"TaggedTemplateExpression")}return t};m.parseExprAtom=function(t,e,s){if(this.type===a.slash)this.readRegexp();var r,n=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 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(a._function))return this.overrideContext(w.f_expr),this.parseFunction(this.startNodeAt(p,l),0,!1,!0,e);if(n&&!this.canInsertSemicolon()){if(this.eat(a.arrow))return this.parseArrowExpression(this.startNodeAt(p,l),[u],!1,e);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(p,l),[u],!0,e)}}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 v=this.start,k=this.parseParenAndDistinguishExpression(n,e);if(t){if(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(k))t.parenthesizedAssign=v;if(t.parenthesizedBind<0)t.parenthesizedBind=v}return k;case a.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(a.bracketR,!0,!0,t),this.finishNode(r,"ArrayExpression");case a.braceL:return this.overrideContext(w.b_expr),this.parseObj(!1,t);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(t){var e=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");if(this.next(),this.type===a.parenL&&!t)return this.parseDynamicImport(e);else if(this.type===a.dot){var s=this.startNodeAt(e.start,e.loc&&e.loc.start);return s.name="import",e.meta=this.finishNode(s,"Identifier"),this.parseImportMeta(e)}else this.unexpected()};m.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)if(!this.eat(a.parenR))if(this.expect(a.comma),!this.afterTrailingComma(a.parenR)){if(t.options=this.parseMaybeAssign(),!this.eat(a.parenR)){if(this.expect(a.comma),!this.afterTrailingComma(a.parenR))this.unexpected()}}else t.options=null;else t.options=null;else if(!this.eat(a.parenR)){var e=this.start;if(this.eat(a.comma)&&this.eat(a.parenR))this.raiseRecoverable(e,"Trailing comma is not allowed in import()");else this.unexpected(e)}return this.finishNode(t,"ImportExpression")};m.parseImportMeta=function(t){this.next();var e=this.containsEsc;if(t.property=this.parseIdent(!0),t.property.name!=="meta")this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'");if(e)this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module");return this.finishNode(t,"MetaProperty")};m.parseLiteral=function(t){var e=this.startNode();if(e.value=t,e.raw=this.input.slice(this.start,this.end),e.raw.charCodeAt(e.raw.length-1)===110)e.bigint=e.value!=null?e.value.toString():e.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(e,"Literal")};m.parseParenExpression=function(){this.expect(a.parenL);var t=this.parseExpression();return this.expect(a.parenR),t};m.shouldParseArrow=function(t){return!this.canInsertSemicolon()};m.parseParenAndDistinguishExpression=function(t,e){var s=this.start,r=this.startLoc,n,p=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var l=this.start,c=this.startLoc,u=[],d=!0,v=!1,k=new ot,C=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),p&&this.afterTrailingComma(a.parenR,!0)){v=!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,k,this.parseParenItem));var J=this.lastTokEnd,U=this.lastTokEndLoc;if(this.expect(a.parenR),t&&this.shouldParseArrow(u)&&this.eat(a.arrow))return this.checkPatternErrors(k,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=C,this.awaitPos=j,this.parseParenArrowList(s,r,u,e);if(!u.length||v)this.unexpected(this.lastTokStart);if(D)this.unexpected(D);if(this.checkExpressionErrors(k,!0),this.yieldPos=C||this.yieldPos,this.awaitPos=j||this.awaitPos,u.length>1)n=this.startNodeAt(l,c),n.expressions=u,this.finishNodeAt(n,"SequenceExpression",J,U);else n=u[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var q=this.startNodeAt(s,r);return q.expression=n,this.finishNode(q,"ParenthesizedExpression")}else return n};m.parseParenItem=function(t){return t};m.parseParenArrowList=function(t,e,s,r){return this.parseArrowExpression(this.startNodeAt(t,e),s,!1,r)};var ie=[];m.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===a.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var s=this.containsEsc;if(t.property=this.parseIdent(!0),t.property.name!=="target")this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'");if(s)this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block");return this.finishNode(t,"MetaProperty")}var r=this.start,n=this.startLoc;if(t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,n,!0,!1),t.callee.type==="Super")this.raiseRecoverable(r,"Invalid use of 'super'");if(this.eat(a.parenL))t.arguments=this.parseExprList(a.parenR,this.options.ecmaVersion>=8,!1);else t.arguments=ie;return this.finishNode(t,"NewExpression")};m.parseTemplateElement=function(t){var e=t.isTagged,s=this.startNode();if(this.type===a.invalidTemplate){if(!e)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");s.value={raw:this.value.replace(/\r\n?/g,`
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===a.backQuote,this.finishNode(s,"TemplateElement")};m.parseTemplate=function(t){if(t===void 0)t={};var e=t.isTagged;if(e===void 0)e=!1;var s=this.startNode();this.next(),s.expressions=[];var r=this.parseTemplateElement({isTagged:e});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:e}))}return this.next(),this.finishNode(s,"TemplateLiteral")};m.isAsyncProp=function(t){return!t.computed&&t.key.type==="Identifier"&&t.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)&&!E.test(this.input.slice(this.lastTokEnd,this.start))};m.parseObj=function(t,e){var s=this.startNode(),r=!0,n={};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 p=this.parseProperty(t,e);if(!t)this.checkPropClash(p,n,e);s.properties.push(p)}return this.finishNode(s,t?"ObjectPattern":"ObjectExpression")};m.parseProperty=function(t,e){var s=this.startNode(),r,n,p,l;if(this.options.ecmaVersion>=9&&this.eat(a.ellipsis)){if(t){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,e),this.type===a.comma&&e&&e.trailingComma<0)e.trailingComma=this.start;return this.finishNode(s,"SpreadElement")}if(this.options.ecmaVersion>=6){if(s.method=!1,s.shorthand=!1,t||e)p=this.start,l=this.startLoc;if(!t)r=this.eat(a.star)}var c=this.containsEsc;if(this.parsePropertyName(s),!t&&!c&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(s))n=!0,r=this.options.ecmaVersion>=9&&this.eat(a.star),this.parsePropertyName(s);else n=!1;return this.parsePropertyValue(s,t,r,n,p,l,e,c),this.finishNode(s,"Property")};m.parseGetterSetter=function(t){var e=t.key.name;this.parsePropertyName(t),t.value=this.parseMethod(!1),t.kind=e;var s=t.kind==="get"?0:1;if(t.value.params.length!==s){var r=t.value.start;if(t.kind==="get")this.raiseRecoverable(r,"getter should have no params");else this.raiseRecoverable(r,"setter should have exactly one param")}else if(t.kind==="set"&&t.value.params[0].type==="RestElement")this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")};m.parsePropertyValue=function(t,e,s,r,n,p,l,c){if((s||r)&&this.type===a.colon)this.unexpected();if(this.eat(a.colon))t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,l),t.kind="init";else if(this.options.ecmaVersion>=6&&this.type===a.parenL){if(e)this.unexpected();t.method=!0,t.value=this.parseMethod(s,r),t.kind="init"}else if(!e&&!c&&this.options.ecmaVersion>=5&&!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&(this.type!==a.comma&&this.type!==a.braceR&&this.type!==a.eq)){if(s||r)this.unexpected();this.parseGetterSetter(t)}else if(this.options.ecmaVersion>=6&&!t.computed&&t.key.type==="Identifier"){if(s||r)this.unexpected();if(this.checkUnreserved(t.key),t.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=n;if(e)t.value=this.parseMaybeDefault(n,p,this.copyNode(t.key));else if(this.type===a.eq&&l){if(l.shorthandAssign<0)l.shorthandAssign=this.start;t.value=this.parseMaybeDefault(n,p,this.copyNode(t.key))}else t.value=this.copyNode(t.key);t.kind="init",t.shorthand=!0}else this.unexpected()};m.parsePropertyName=function(t){if(this.options.ecmaVersion>=6)if(this.eat(a.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(a.bracketR),t.key;else t.computed=!1;return t.key=this.type===a.num||this.type===a.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};m.initFunction=function(t){if(t.id=null,this.options.ecmaVersion>=6)t.generator=t.expression=!1;if(this.options.ecmaVersion>=8)t.async=!1};m.parseMethod=function(t,e,s){var r=this.startNode(),n=this.yieldPos,p=this.awaitPos,l=this.awaitIdentPos;if(this.initFunction(r),this.options.ecmaVersion>=6)r.generator=t;if(this.options.ecmaVersion>=8)r.async=!!e;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(xt(e,r.generator)|at|(s?_t: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=n,this.awaitPos=p,this.awaitIdentPos=l,this.finishNode(r,"FunctionExpression")};m.parseArrowExpression=function(t,e,s,r){var n=this.yieldPos,p=this.awaitPos,l=this.awaitIdentPos;if(this.enterScope(xt(s,!1)|vt),this.initFunction(t),this.options.ecmaVersion>=8)t.async=!!s;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,r),this.yieldPos=n,this.awaitPos=p,this.awaitIdentPos=l,this.finishNode(t,"ArrowFunctionExpression")};m.parseFunctionBody=function(t,e,s,r){var n=e&&this.type!==a.braceL,p=this.strict,l=!1;if(n)t.body=this.parseMaybeAssign(r),t.expression=!0,this.checkParams(t,!1);else{var c=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);if(!p||c){if(l=this.strictDirective(this.end),l&&c)this.raiseRecoverable(t.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(t,!p&&!l&&!e&&!s&&this.isSimpleParamList(t.params)),this.strict&&t.id)this.checkLValSimple(t.id,Ft);t.body=this.parseBlock(!1,void 0,l&&!p),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=u}this.exitScope()};m.isSimpleParamList=function(t){for(var e=0,s=t;e<s.length;e+=1){var r=s[e];if(r.type!=="Identifier")return!1}return!0};m.checkParams=function(t,e){var s=Object.create(null);for(var r=0,n=t.params;r<n.length;r+=1){var p=n[r];this.checkLValInnerPattern(p,yt,e?null:s)}};m.parseExprList=function(t,e,s,r){var n=[],p=!0;while(!this.eat(t)){if(!p){if(this.expect(a.comma),e&&this.afterTrailingComma(t))break}else p=!1;var l=void 0;if(s&&this.type===a.comma)l=null;else if(this.type===a.ellipsis){if(l=this.parseSpread(r),r&&this.type===a.comma&&r.trailingComma<0)r.trailingComma=this.start}else l=this.parseMaybeAssign(!1,r);n.push(l)}return n};m.checkUnreserved=function(t){var{start:e,end:s,name:r}=t;if(this.inGenerator&&r==="yield")this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&r==="await")this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function");if(!(this.currentThisScope().flags&nt)&&r==="arguments")this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(r==="arguments"||r==="await"))this.raise(e,"Cannot use "+r+" in class static initialization block");if(this.keywords.test(r))this.raise(e,"Unexpected keyword '"+r+"'");if(this.options.ecmaVersion<6&&this.input.slice(e,s).indexOf("\\")!==-1)return;var n=this.strict?this.reservedWordsStrict:this.reservedWords;if(n.test(r)){if(!this.inAsync&&r==="await")this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(e,"The keyword '"+r+"' is reserved")}};m.parseIdent=function(t){var e=this.parseIdentNode();if(this.next(!!t),this.finishNode(e,"Identifier"),!t){if(this.checkUnreserved(e),e.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=e.start}return e};m.parseIdentNode=function(){var t=this.startNode();if(this.type===a.name)t.name=this.value;else if(this.type.keyword){if(t.name=this.type.keyword,(t.name==="class"||t.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop();this.type=a.name}else this.unexpected();return t};m.parsePrivateIdent=function(){var t=this.startNode();if(this.type===a.privateId)t.name=this.value;else this.unexpected();if(this.next(),this.finishNode(t,"PrivateIdentifier"),this.options.checkPrivateFields)if(this.privateNameStack.length===0)this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(t);return t};m.parseYield=function(t){if(!this.yieldPos)this.yieldPos=this.start;var e=this.startNode();if(this.next(),this.type===a.semi||this.canInsertSemicolon()||this.type!==a.star&&!this.type.startsExpr)e.delegate=!1,e.argument=null;else e.delegate=this.eat(a.star),e.argument=this.parseMaybeAssign(t);return this.finishNode(e,"YieldExpression")};m.parseAwait=function(t){if(!this.awaitPos)this.awaitPos=this.start;var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(e,"AwaitExpression")};var it=i.prototype;it.raise=function(t,e){var s=Tt(this.input,t);if(e+=" ("+s.line+":"+s.column+")",this.sourceFile)e+=" in "+this.sourceFile;var r=SyntaxError(e);throw r.pos=t,r.loc=s,r.raisedAt=this.pos,r};it.raiseRecoverable=it.raise;it.curPosition=function(){if(this.options.locations)return new H(this.curLine,this.pos-this.lineStart)};var F=i.prototype,se=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};F.enterScope=function(t){this.scopeStack.push(new se(t))};F.exitScope=function(){this.scopeStack.pop()};F.treatFunctionsAsVarInScope=function(t){return t.flags&B||!this.inModule&&t.flags&O};F.declareName=function(t,e,s){var r=!1;if(e===V){var n=this.currentScope();if(r=n.lexical.indexOf(t)>-1||n.functions.indexOf(t)>-1||n.var.indexOf(t)>-1,n.lexical.push(t),this.inModule&&n.flags&O)delete this.undefinedExports[t]}else if(e===Vt){var p=this.currentScope();p.lexical.push(t)}else if(e===Rt){var l=this.currentScope();if(this.treatFunctionsAsVar)r=l.lexical.indexOf(t)>-1;else r=l.lexical.indexOf(t)>-1||l.var.indexOf(t)>-1;l.functions.push(t)}else for(var c=this.scopeStack.length-1;c>=0;--c){var u=this.scopeStack[c];if(u.lexical.indexOf(t)>-1&&!(u.flags&It&&u.lexical[0]===t)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(t)>-1){r=!0;break}if(u.var.push(t),this.inModule&&u.flags&O)delete this.undefinedExports[t];if(u.flags&nt)break}if(r)this.raiseRecoverable(s,"Identifier '"+t+"' has already been declared")};F.checkLocalExport=function(t){if(this.scopeStack[0].lexical.indexOf(t.name)===-1&&this.scopeStack[0].var.indexOf(t.name)===-1)this.undefinedExports[t.name]=t};F.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};F.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&(nt|Q|M))return e}};F.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&(nt|Q|M)&&!(e.flags&vt))return e}};var ht=function(e,s,r){if(this.type="",this.start=s,this.end=0,e.options.locations)this.loc=new rt(e,r);if(e.options.directSourceFile)this.sourceFile=e.options.directSourceFile;if(e.options.ranges)this.range=[s,0]},X=i.prototype;X.startNode=function(){return new ht(this,this.start,this.startLoc)};X.startNodeAt=function(t,e){return new ht(this,t,e)};function Mt(t,e,s,r){if(t.type=e,t.end=s,this.options.locations)t.loc.end=r;if(this.options.ranges)t.range[1]=s;return t}X.finishNode=function(t,e){return Mt.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)};X.finishNodeAt=function(t,e,s,r){return Mt.call(this,t,e,s,r)};X.copyNode=function(t){var e=new ht(this,t.start,this.startLoc);for(var s in t)e[s]=t[s];return e};var Dt=function(){};Dt.prototype.reset=function(){};i.prototype.validateRegExpFlags=function(){};i.prototype.validateRegExpPattern=function(){};var gt=function(e){if(this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations)this.loc=new rt(e,e.startLoc,e.endLoc);if(e.options.ranges)this.range=[e.start,e.end]},x=i.prototype;x.next=function(t){if(!t&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new gt(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};x.getToken=function(){return this.next(),new gt(this)};if(typeof Symbol<"u")x[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===a.eof,value:e}}}};x.nextToken=function(){var t=this.curContext();if(!t||!t.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(t.override)return t.override(this);else this.readToken(this.fullCharCodeAtPos())};x.readToken=function(t){if(h(t,this.options.ecmaVersion>=6)||t===92)return this.readWord();return this.getTokenFromCode(t)};x.fullCharCodeAt=function(t){var e=this.input.charCodeAt(t);if(e<=55295||e>=56320)return e;var s=this.input.charCodeAt(t+1);return s<=56319||s>=57344?e:(e<<10)+s-56613888};x.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};x.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=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,n=e;(r=At(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=r;if(this.options.onComment)this.options.onComment(!0,this.input.slice(e+2,s),e,this.pos,t,this.curPosition())};x.skipLineComment=function(t){var e=this.pos,s=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=t);while(this.pos<this.input.length&&!W(r))r=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,s,this.curPosition())};x.skipSpace=function(){t:while(this.pos<this.input.length){var t=this.input.charCodeAt(this.pos);switch(t){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(t>8&&t<14||t>=5760&&Nt.test(String.fromCharCode(t)))++this.pos;else break t}}};x.finishToken=function(t,e){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var s=this.type;this.type=t,this.value=e,this.updateContext(s)};x.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&t===46&&e===46)return this.pos+=3,this.finishToken(a.ellipsis);else return++this.pos,this.finishToken(a.dot)};x.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(t===61)return this.finishOp(a.assign,2);return this.finishOp(a.slash,1)};x.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),s=1,r=t===42?a.star:a.modulo;if(this.options.ecmaVersion>=7&&t===42&&e===42)++s,r=a.starstar,e=this.input.charCodeAt(this.pos+2);if(e===61)return this.finishOp(a.assign,s+1);return this.finishOp(r,s)};x.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);if(e===t){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(t===124?a.logicalOR:a.logicalAND,2)}if(e===61)return this.finishOp(a.assign,2);return this.finishOp(t===124?a.bitwiseOR:a.bitwiseAND,1)};x.readToken_caret=function(){var t=this.input.charCodeAt(this.pos+1);if(t===61)return this.finishOp(a.assign,2);return this.finishOp(a.bitwiseXOR,1)};x.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);if(e===t){if(e===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||E.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(a.incDec,2)}if(e===61)return this.finishOp(a.assign,2);return this.finishOp(a.plusMin,1)};x.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),s=1;if(e===t){if(s=t===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(e===33&&t===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(e===61)s=2;return this.finishOp(a.relational,s)};x.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);if(e===61)return this.finishOp(a.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(t===61&&e===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(a.arrow);return this.finishOp(t===61?a.eq:a.prefix,1)};x.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(e===46){var s=this.input.charCodeAt(this.pos+2);if(s<48||s>57)return this.finishOp(a.questionDot,2)}if(e===63){if(t>=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)};x.readToken_numberSign=function(){var t=this.options.ecmaVersion,e=35;if(t>=13){if(++this.pos,e=this.fullCharCodeAtPos(),h(e,!0)||e===92)return this.finishToken(a.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+st(e)+"'")};x.getTokenFromCode=function(t){switch(t){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 e=this.input.charCodeAt(this.pos+1);if(e===120||e===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(e===111||e===79)return this.readRadixNumber(8);if(e===98||e===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(a.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+st(t)+"'")};x.finishOp=function(t,e){var s=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,s)};x.readRegexp=function(){var t,e,s=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(s,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(E.test(r))this.raise(s,"Unterminated regular expression");if(!t){if(r==="[")e=!0;else if(r==="]"&&e)e=!1;else if(r==="/"&&!e)break;t=r==="\\"}else t=!1;++this.pos}var n=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 Dt(this));c.reset(s,n,l),this.validateRegExpFlags(c),this.validateRegExpPattern(c);var u=null;try{u=new RegExp(n,l)}catch(d){}return this.finishToken(a.regexp,{pattern:n,flags:l,value:u})};x.readInt=function(t,e,s){var r=this.options.ecmaVersion>=12&&e===void 0,n=s&&this.input.charCodeAt(this.pos)===48,p=this.pos,l=0,c=0;for(var u=0,d=e==null?1/0:e;u<d;++u,++this.pos){var v=this.input.charCodeAt(this.pos),k=void 0;if(r&&v===95){if(n)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=v;continue}if(v>=97)k=v-97+10;else if(v>=65)k=v-65+10;else if(v>=48&&v<=57)k=v-48;else k=1/0;if(k>=t)break;c=v,l=l*t+k}if(r&&c===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===p||e!=null&&this.pos-p!==e)return null;return l};function re(t,e){if(e)return parseInt(t,8);return parseFloat(t.replace(/_/g,""))}function Ut(t){if(typeof BigInt!=="function")return null;return BigInt(t.replace(/_/g,""))}x.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var s=this.readInt(t);if(s==null)this.raise(this.start+2,"Expected number in radix "+t);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)s=Ut(this.input.slice(e,this.pos)),++this.pos;else if(h(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(a.num,s)};x.readNumber=function(t){var e=this.pos;if(!t&&this.readInt(10,void 0,!0)===null)this.raise(e,"Invalid number");var s=this.pos-e>=2&&this.input.charCodeAt(e)===48;if(s&&this.strict)this.raise(e,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!s&&!t&&this.options.ecmaVersion>=11&&r===110){var n=Ut(this.input.slice(e,this.pos));if(++this.pos,h(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(a.num,n)}if(s&&/[89]/.test(this.input.slice(e,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(e,"Invalid number")}if(h(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var p=re(this.input.slice(e,this.pos),s);return this.finishToken(a.num,p)};x.readCodePoint=function(){var t=this.input.charCodeAt(this.pos),e;if(t===123){if(this.options.ecmaVersion<6)this.unexpected();var s=++this.pos;if(e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111)this.invalidStringToken(s,"Code point out of bounds")}else e=this.readHexChar(4);return e};x.readString=function(t){var e="",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===t)break;if(r===92)e+=this.input.slice(s,this.pos),e+=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(W(r))this.raise(this.start,"Unterminated string constant");++this.pos}}return e+=this.input.slice(s,this.pos++),this.finishToken(a.string,e)};var qt={};x.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===qt)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1};x.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw qt;else this.raise(t,e)};x.readTmplToken=function(){var t="",e=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 t+=this.input.slice(e,this.pos),this.finishToken(a.template,t)}if(s===92)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(W(s)){switch(t+=this.input.slice(e,this.pos),++this.pos,s){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:t+=`
6
- `;break;default:t+=String.fromCharCode(s);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;e=this.pos}else++this.pos}};x.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
- `)++this.pos;case`
8
- `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};x.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return`
9
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return st(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(t){var s=this.pos-1;this.invalidStringToken(s,"Invalid escape sequence in template string")}default:if(e>=48&&e<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(r,8);if(n>255)r=r.slice(0,-1),n=parseInt(r,8);if(this.pos+=r.length-1,e=this.input.charCodeAt(this.pos),(r!=="0"||e===56||e===57)&&(this.strict||t))this.invalidStringToken(this.pos-1-r.length,t?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(n)}if(W(e)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(e)}};x.readHexChar=function(t){var e=this.pos,s=this.readInt(16,t);if(s===null)this.invalidStringToken(e,"Bad character escape sequence");return s};x.readWord1=function(){this.containsEsc=!1;var t="",e=!0,s=this.pos,r=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var n=this.fullCharCodeAtPos();if(y(n,r))this.pos+=n<=65535?1:2;else if(n===92){this.containsEsc=!0,t+=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(!(e?h:y)(l,r))this.invalidStringToken(p,"Invalid Unicode escape");t+=st(l),s=this.pos}else break;e=!1}return t+this.input.slice(s,this.pos)};x.readWord=function(){var t=this.readWord1(),e=a.name;if(this.keywords.test(t))e=dt[t];return this.finishToken(e,t)};var ae="8.18.0";i.acorn={Parser:i,version:ae,defaultOptions:ct,Position:H,SourceLocation:rt,getLineInfo:Tt,Node:ht,TokenType:g,tokTypes:a,keywordTypes:dt,TokContext:R,tokContexts:w,isIdentifierChar:y,isIdentifierStart:h,Token:gt,isNewLine:W,lineBreak:E,lineBreakG:Ht,nonASCIIwhitespace:Nt};function I(t){return(e)=>t(e)}function K(...t){return i.extend(...t)}var Wt=new WeakMap;function o(t,e){if(t===void 0)return!1;if(t.length<16)return t.includes(e);let s=Wt.get(t);if(s===void 0||s.length>t.length)s={names:new Set,length:0},Wt.set(t,s);while(s.length<t.length)s.names.add(t[s.length++]);return s.names.has(e)}
10
- export{h,y,i,I,K,o};