sveld 0.35.0 → 0.35.2

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 +46 -4
  2. package/cli.js +1 -1
  3. package/lib/ComponentParser.d.ts +164 -398
  4. package/lib/ast-guards.d.ts +2 -0
  5. package/lib/browser.d.ts +39 -0
  6. package/lib/browser.js +268 -0
  7. package/lib/bundle.d.ts +9 -4
  8. package/lib/chunk-1p4ka68s.js +2 -0
  9. package/lib/chunk-72hx9e9w.js +20 -0
  10. package/lib/chunk-7qz0hzgw.js +217 -0
  11. package/lib/chunk-8xw75w8t.js +10 -0
  12. package/lib/chunk-cxrw7gzr.js +2 -0
  13. package/lib/chunk-jdnsv86e.js +1 -0
  14. package/lib/chunk-pmj8c3yv.js +6 -0
  15. package/lib/chunk-s9mzxa4y.js +1 -0
  16. package/lib/chunk-v4q9vw0y.js +62 -0
  17. package/lib/chunk-xkrgedm4.js +4 -0
  18. package/lib/chunk-zva3xjwa.js +13 -0
  19. package/lib/cli-entry.d.ts +12 -0
  20. package/lib/cli-entry.js +1 -0
  21. package/lib/get-svelte-entry.d.ts +0 -1
  22. package/lib/index.js +1 -484
  23. package/lib/parse-cache.d.ts +1 -1
  24. package/lib/parse-entry-exports.d.ts +2 -2
  25. package/lib/parse-exports.d.ts +5 -1
  26. package/lib/parsed-component-metadata.d.ts +13 -0
  27. package/lib/parser/bindings.d.ts +0 -2
  28. package/lib/parser/context.d.ts +13 -51
  29. package/lib/parser/events.d.ts +0 -2
  30. package/lib/parser/jsdoc.d.ts +0 -4
  31. package/lib/parser/prop-shared.d.ts +84 -0
  32. package/lib/parser/props.d.ts +6 -2
  33. package/lib/parser/rest-props.d.ts +0 -2
  34. package/lib/parser/runes-detection.d.ts +13 -0
  35. package/lib/parser/scopes.d.ts +23 -7
  36. package/lib/parser/slots.d.ts +1 -6
  37. package/lib/parser/source-position.d.ts +0 -4
  38. package/lib/parser/type-resolution.d.ts +4 -14
  39. package/lib/parser/typescript-casts.d.ts +1 -0
  40. package/lib/parser/utils.d.ts +1 -0
  41. package/lib/parser/variable-jsdoc.d.ts +12 -0
  42. package/lib/parser-stack.d.ts +20 -0
  43. package/lib/path.d.ts +0 -1
  44. package/lib/resolve-types.d.ts +1 -1
  45. package/lib/svelte-parse.d.ts +4 -0
  46. package/lib/svelte-version.d.ts +1 -0
  47. package/lib/writer/Writer.d.ts +7 -29
  48. package/lib/writer/WriterMarkdown.d.ts +0 -2
  49. package/lib/writer/markdown-format-utils.d.ts +0 -84
  50. package/lib/writer/writer-json.d.ts +2 -12
  51. package/lib/writer/writer-markdown.d.ts +0 -2
  52. package/lib/writer/writer-ts-definitions-core.d.ts +1 -9
  53. package/lib/writer/writer-ts-definitions.d.ts +1 -28
  54. package/package.json +6 -1
package/lib/browser.js ADDED
@@ -0,0 +1,268 @@
1
+ var n4=Object.defineProperty;var s4=(q)=>q;function a4(q,Q){this[q]=s4.bind(null,Q)}var r4=(q,Q)=>{for(var Z in Q)n4(q,Z,{get:Q[Z],enumerable:!0,configurable:!0,set:a4.bind(Q,Z)})};function t4(q){return q}class o1{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(q)=>this.replacement=q}}replace(q,Q,Z,Y){if(q&&Q)if(Z!=null)q[Q][Z]=Y;else q[Q]=Y}remove(q,Q,Z){if(q&&Q)if(Z!==null&&Z!==void 0)q[Q].splice(Z,1);else delete q[Q]}}class s0 extends o1{constructor(q,Q){super();this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(Z)=>this.replacement=Z},this.enter=q,this.leave=Q}visit(q,Q,Z,Y){if(q){if(this.enter){let V=this.should_skip,K=this.should_remove,G=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,q,Q,Z,Y),this.replacement)q=this.replacement,this.replace(Q,Z,Y,q);if(this.should_remove)this.remove(Q,Z,Y);let W=this.should_skip,R=this.should_remove;if(this.should_skip=V,this.should_remove=K,this.replacement=G,W)return q;if(R)return null}let H;for(H in q){let V=q[H];if(V&&typeof V==="object"){if(Array.isArray(V)){let K=V;for(let G=0;G<K.length;G+=1){let W=K[G];if(y6(W)){if(!this.visit(W,q,H,G))G--}}}else if(y6(V))this.visit(V,q,H,null)}}if(this.leave){let V=this.replacement,K=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,q,Q,Z,Y),this.replacement)q=this.replacement,this.replace(Q,Z,Y,q);if(this.should_remove)this.remove(Q,Z,Y);let G=this.should_remove;if(this.replacement=V,this.should_remove=K,G)return null}}return q}}function y6(q){return q!==null&&typeof q==="object"&&"type"in q&&typeof q.type==="string"}function m8(q,{enter:Q,leave:Z}){return new s0(Q,Z).visit(q,null)}function v8(q){return typeof q==="object"&&q!==null}function g6(q){return v8(q)&&q.type==="VariableDeclaration"&&Array.isArray(q.declarations)}function Z1(q){return v8(q)&&q.type==="Literal"}function _8(q){return v8(q)&&q.type==="Identifier"&&typeof q.name==="string"}function _6(q){return v8(q)&&q.type==="MemberExpression"}function n1(q){return v8(q)&&q.type==="ObjectExpression"&&Array.isArray(q.properties)}function e4(q){return v8(q)&&q.type==="CallExpression"}function x8(q,Q){if(!e4(q))return!1;return!!q.callee&&v8(q.callee)&&q.callee.type==="Identifier"&&q.callee.name===Q}function s8(q){if(v8(q)&&(q.type==="TSAsExpression"||q.type==="TSSatisfiesExpression")&&"expression"in q)return s8(q.expression);return q}function x6(q){if(v8(q)&&(q.type==="TSAsExpression"||q.type==="TSSatisfiesExpression")&&"typeAnnotation"in q)return q.typeAnnotation;return}function q3(q){return v8(q)&&q.type==="NewExpression"}function a0(q,Q){if(!q3(q))return!1;return!!q.callee&&v8(q.callee)&&q.callee.type==="Identifier"&&q.callee.name===Q}var u6={a:"HTMLAnchorElement",abbr:"HTMLElement",address:"HTMLElement",applet:"HTMLUnknownElement",area:"HTMLAreaElement",article:"HTMLElement",aside:"HTMLElement",audio:"HTMLAudioElement",b:"HTMLElement",base:"HTMLBaseElement",basefont:"HTMLElement",bdi:"HTMLElement",bdo:"HTMLElement",blockquote:"HTMLQuoteElement",body:"HTMLBodyElement",br:"HTMLBRElement",button:"HTMLButtonElement",canvas:"HTMLCanvasElement",caption:"HTMLTableCaptionElement",cite:"HTMLElement",code:"HTMLElement",col:"HTMLTableColElement",colgroup:"HTMLTableColElement",data:"HTMLDataElement",datalist:"HTMLDataListElement",dd:"HTMLElement",del:"HTMLModElement",details:"HTMLDetailsElement",dfn:"HTMLElement",dialog:"HTMLDialogElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",dl:"HTMLDListElement",dt:"HTMLElement",em:"HTMLElement",embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement",figcaption:"HTMLElement",figure:"HTMLElement",font:"HTMLFontElement",footer:"HTMLElement",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"HTMLFrameSetElement",h1:"HTMLHeadingElement",h2:"HTMLHeadingElement",h3:"HTMLHeadingElement",h4:"HTMLHeadingElement",h5:"HTMLHeadingElement",h6:"HTMLHeadingElement",head:"HTMLHeadElement",header:"HTMLElement",hgroup:"HTMLElement",hr:"HTMLHRElement",html:"HTMLHtmlElement",i:"HTMLElement",iframe:"HTMLIFrameElement",img:"HTMLImageElement",input:"HTMLInputElement",ins:"HTMLModElement",kbd:"HTMLElement",label:"HTMLLabelElement",legend:"HTMLLegendElement",li:"HTMLLIElement",link:"HTMLLinkElement",main:"HTMLElement",map:"HTMLMapElement",mark:"HTMLElement",marquee:"HTMLMarqueeElement",menu:"HTMLMenuElement",meta:"HTMLMetaElement",meter:"HTMLMeterElement",nav:"HTMLElement",noscript:"HTMLElement",object:"HTMLObjectElement",ol:"HTMLOListElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output:"HTMLOutputElement",p:"HTMLParagraphElement",param:"HTMLParamElement",picture:"HTMLPictureElement",pre:"HTMLPreElement",progress:"HTMLProgressElement",q:"HTMLQuoteElement",rp:"HTMLElement",rt:"HTMLElement",ruby:"HTMLElement",s:"HTMLElement",samp:"HTMLElement",script:"HTMLScriptElement",search:"HTMLElement",section:"HTMLElement",select:"HTMLSelectElement",slot:"HTMLSlotElement",small:"HTMLElement",source:"HTMLSourceElement",span:"HTMLSpanElement",strong:"HTMLElement",style:"HTMLStyleElement",sub:"HTMLElement",summary:"HTMLElement",sup:"HTMLElement",table:"HTMLTableElement",tbody:"HTMLTableSectionElement",td:"HTMLTableCellElement",template:"HTMLTemplateElement",textarea:"HTMLTextAreaElement",tfoot:"HTMLTableSectionElement",th:"HTMLTableCellElement",thead:"HTMLTableSectionElement",time:"HTMLTimeElement",title:"HTMLTitleElement",tr:"HTMLTableRowElement",track:"HTMLTrackElement",u:"HTMLElement",ul:"HTMLUListElement",var:"HTMLElement",video:"HTMLVideoElement",wbr:"HTMLElement"};function Q3(q){return q in u6}function m6(q){if(Q3(q))return u6[q];return"HTMLElement"}var s1=Symbol("sveld.parsedComponentTypeScriptMetadata");function r0(q){return q[s1]}var Z3=/\w/;function Y3(q,Q){let Z=q.trim();if(!Z.startsWith("{")||!Z.endsWith("}"))return;let Y=Z.slice(1,-1),H=[],V=0,K="";for(let G of Y)if(G==="{"||G==="<"||G==="("||G==="[")V++,K+=G;else if(G==="}"||G===">"||G===")"||G==="]")V--,K+=G;else if((G===";"||G===",")&&V===0)H.push(K.trim()),K="";else K+=G;if(K.trim())H.push(K.trim());for(let G of H){if(!G.startsWith(Q))continue;let W=G.slice(Q.length);if(W.length>0&&Z3.test(W[0]))continue;let R=W.trimStart();if(R.startsWith("?"))R=R.slice(1).trimStart();if(R.startsWith(":"))return R.slice(1).trim()}return}function a1(q,Q,Z){let Y=Z;if(Y.computed||Y.object?.type!=="Identifier"||Y.property?.type!=="Identifier")return;let H=Y.object.name,V=Y.property.name;if(!H||!V)return;if(q.wholePropsLocals.has(H))return Q.getPropTypeByLocalOrPublic(V);let K=Q.getPropTypeByLocalOrPublic(H)??Q.findVariableTypeAndDescription(H)?.type;if(!K)return;return Y3(K,V)}function t0(){return{syntaxMode:"legacy",scriptLanguage:void 0,source:void 0,parsed:void 0,runesOptionOverride:void 0,sourceLineStartOffsetsCache:void 0,rest_props:void 0,extends:void 0,customElementTag:void 0,componentComment:void 0,componentCommentSource:void 0,generics:null,scriptGenericsAttribute:void 0,diagnosticRecords:[],componentFilePath:"",props:new Map,moduleExports:new Map,propLocalToPublicName:new Map,reactive_vars:new Set,funcDecls:new Map,vars:new Set,runesPropsDeclarationMetadataByDeclaratorStart:new Map,typedRunesPropsDeclarations:[],explicitPropTypesByName:new Map,explicitVariableTypesByName:new Map,typeImportBindingsByLocalName:new Map,localTypeDeclarationsByName:new Map,wholePropsLocals:new Set,restPropLocals:new Set,componentScope:new Map,scopeDeclarations:new WeakMap,activeScopes:[],slots:new Map,snippetPropLocals:new Set,deferredSlotBlockGenerics:[],events:new Map,eventDescriptions:new Map,forwardedEvents:new Map,jsDocEventNames:new Set,jsDocEventSources:new Map,bindings:new Map,contexts:new Map,typedefs:new Map,variableInfoCache:new Map,variableInfoCacheBuilt:!1}}function l8(q,Q,Z,Y,H){q.diagnosticRecords.push({component:q.componentFilePath,kind:Q,name:Z,message:Y,...H?{source:H}:{}})}var H3=/[\r\n]+/g;function J3(q){if(q.sourceLineStartOffsetsCache)return q.sourceLineStartOffsetsCache;let Q=[0];if(q.source){for(let Z=0;Z<q.source.length;Z++)if(q.source[Z]===`
2
+ `)Q.push(Z+1)}return q.sourceLineStartOffsetsCache=Q,Q}function l6(q,Q){if(!q.source||Q<0||Q>q.source.length)return;let Z=J3(q),Y=0,H=Z.length-1;while(Y<=H){let V=Math.floor((Y+H)/2),K=Z[V],G=Z[V+1]??Number.POSITIVE_INFINITY;if(Q<K)H=V-1;else if(Q>=G)Y=V+1;else return{line:V+1,column:Q-K}}return}function r1(q,Q,Z){if(Q===void 0||Z===void 0||Z<Q)return;let Y=l6(q,Q),H=l6(q,Z);if(!Y||!H)return;return{start:Y,end:H}}function V8(q,Q){if(!Q||typeof Q!=="object")return;let Z="start"in Q&&typeof Q.start==="number"?Q.start:void 0,Y="end"in Q&&typeof Q.end==="number"?Q.end:void 0;return r1(q,Z,Y)}function e0(q,Q,Z,Y){if(!Z||Z.length===0||Y===void 0)return;let H=[...Z];while(H.length>1){let M=H[H.length-1];if(M.tokens.tag||!M.source.trim().endsWith("*/"))break;H.pop()}let V=Y;for(let M=0;M<H[0].number-1;M++)V+=Q[M]?.source.length??0,V+=1;let K=H[0],G=K.source.indexOf(K.tokens.tag??""),W=V+Math.max(G,0),R=Y,j=H[H.length-1],$=j.number;for(let M=0;M<$-1;M++)R+=Q[M]?.source.length??0,R+=1;return R+=j.source.length,r1(q,W,R)}function J8(q,Q,Z){return q.source?.slice(Q,Z)}function c6(q,Q){if(!Q||typeof Q!=="object")return;let Z="start"in Q&&typeof Q.start==="number"?Q.start:void 0,Y="end"in Q&&typeof Q.end==="number"?Q.end:void 0;if(Z===void 0||Y===void 0)return;return J8(q,Z,Y)?.replace(H3," ")}function C8(q){return q===void 0||q===""?void 0:q}var K3=/[\r\n]+/g;function L1(q,Q,Z,Y){if(C8(Z)===void 0)return;if(q.trackPropLocalName(Z),Q.props.has(Z)){let H=Q.props.get(Z);Q.props.set(Z,{...H,...Y})}else Q.props.set(Z,Y)}function Y1(q,Q,Z,Y=0){let H,V,K=!1;if(!Z||typeof Z!=="object"||!("type"in Z))return{value:H,type:V,isFunction:K};let G=O3(q,Q,Z);if(Z.type==="ObjectExpression"||Z.type==="BinaryExpression"||Z.type==="ArrayExpression"||Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression"){let W=Z;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")H=J8(Q,W.start,W.end)?.replace(K3," ");if(V=H,K=Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression",Z.type==="BinaryExpression"){let R=Z;if(R.left&&typeof R.left==="object"&&"type"in R.left&&R.left.type==="Literal"&&"value"in R.left&&typeof R.left.value==="string")V="string"}if(Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression")V=i6(Z),H=void 0}else if(Z.type==="UnaryExpression"){let W=Z;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")H=J8(Q,W.start,W.end);if(W.argument){if(typeof W.argument==="object"&&"type"in W.argument&&W.argument.type==="UnaryExpression")V=Y1(q,Q,W.argument).type;else if(typeof W.argument==="object"&&"value"in W.argument)V=typeof W.argument.value}}else if(Z.type==="NewExpression"){let W=Z;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")H=J8(Q,W.start,W.end);if(W.callee&&typeof W.callee==="object"&&"type"in W.callee&&W.callee.type==="Identifier"){let R=W.callee.name;if(R==="Date")V="Date";else if(R==="Map")V="Map<any, any>";else if(R==="Set")V="Set<any>";else if(R==="WeakMap")V="WeakMap<object, any>";else if(R==="WeakSet")V="WeakSet<object>";else if(R==="Array")V="any[]";else if(R==="RegExp"||R==="Regexp")V="RegExp";else if(R==="Error")V="Error";else V=R}}else if(Z.type==="CallExpression"){let W=Z;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")H=J8(Q,W.start,W.end)}else if(Z.type==="Identifier"){let W=Z;if(Y<5){let R=V3(Q,W.name);if(R){let j=Y1(q,Q,R,Y+1),$=q.resolveLocalVarJSDoc(W.name);return{...j,resolvedType:$?.type??j.resolvedType,resolvedDescription:$?.description??j.resolvedDescription,resolvedParams:$?.params??j.resolvedParams,resolvedReturnType:$?.returnType??j.resolvedReturnType}}if(Q.funcDecls.has(W.name)){let j=q.resolveLocalVarJSDoc(W.name),$=Q.funcDecls.get(W.name);return{value:void 0,type:void 0,isFunction:!0,resolvedType:j?.type??X3(j,$),resolvedDescription:j?.description,resolvedParams:j?.params,resolvedReturnType:j?.returnType}}}if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")H=J8(Q,W.start,W.end)}else if(Z.type==="MemberExpression"){let W=Z;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")H=J8(Q,W.start,W.end);if(q.isNumericConstant(Z))V="number"}else if(Z.type==="TemplateLiteral"){let W=Z;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")H=J8(Q,W.start,W.end);V="string"}else if("raw"in Z&&typeof Z.raw==="string"){if(H=Z.raw,"value"in Z)V=Z.value==null?void 0:typeof Z.value}return{value:H,type:V,isFunction:K,defaultValue:G}}function V3(q,Q){for(let Z of q.vars)for(let Y of Z.declarations)if(Y.id&&typeof Y.id==="object"&&"type"in Y.id&&Y.id.type==="Identifier"&&"name"in Y.id&&Y.id.name===Q&&Y.init)return Y.init;return}function d6(q,Q){for(let Z of q.vars){if(Z.kind!=="const")continue;for(let Y of Z.declarations)if(Y.id&&typeof Y.id==="object"&&"type"in Y.id&&Y.id.type==="Identifier"&&"name"in Y.id&&Y.id.name===Q&&Y.init)return Y.init}return}function X3(q,Q){let Z=q?.returnType??"any",Y=q?.params;if(Y&&Y.length>0)return`(${Y.map((V)=>`${V.name}${V.optional?"?":""}: ${V.type}`).join(", ")}) => ${Z}`;if(q?.returnType)return`() => ${Z}`;if(Q)return i6(Q);return"(...args: any[]) => any"}function i6(q){return`(${W3(q)}) => ${G3(q)}`}function W3(q){let Q=q.params;if(!Array.isArray(Q)||Q.length===0)return"...args: any[]";let Z=[];for(let Y of Q)if(Y&&typeof Y==="object"&&"type"in Y&&Y.type==="Identifier"&&"name"in Y&&typeof Y.name==="string")Z.push(`${Y.name}: any`);else return"...args: any[]";return Z.join(", ")}function G3(q){if(q.async||q.generator)return"any";let Q=q.body,Z;if(Q&&typeof Q==="object"&&"type"in Q&&Q.type==="BlockStatement"){if(Z=z3(Q),Z.length===0)return"any"}else Z=[Q];let Y=null;for(let H of Z){let V=j3(H);if(!V)return"any";if(Y===null)Y=V;else if(Y!==V)return"any"}return Y??"any"}function z3(q){let Q=[];return m8(q,{enter(Z){if(Z.type==="FunctionDeclaration"||Z.type==="FunctionExpression"||Z.type==="ArrowFunctionExpression"){this.skip();return}if(Z.type==="ReturnStatement")Q.push(Z.argument??null)}}),Q}function j3(q){if(!q||typeof q!=="object"||!("type"in q))return null;switch(q.type){case"Literal":{let Q=q.value;if(typeof Q==="string")return"string";if(typeof Q==="number")return"number";if(typeof Q==="boolean")return"boolean";return null}case"TemplateLiteral":return"string";case"CallExpression":{let Q=q.callee;if(Q&&typeof Q==="object"&&"type"in Q&&Q.type==="Identifier"){let Z=Q.name;if(Z==="String")return"string";if(Z==="Number")return"number";if(Z==="Boolean")return"boolean"}return null}default:return null}}function p6(q){if(x8(q,"$bindable"))return{init:q.arguments[0],bindable:!0};return{init:q,bindable:!1}}function O3(q,Q,Z){let Y=c6(Q,Z);if(!Y||!Z||typeof Z!=="object"||!("type"in Z))return;let H="expression";if(Z.type==="Literal"||Z.type==="UnaryExpression")H="literal";else if(Z.type==="TemplateLiteral")H=Z.expressions.length===0?"literal":"expression";else if(Z.type==="ArrayExpression")H="array";else if(Z.type==="ObjectExpression")H="object";else if(Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression")H="function";let V={raw:Y,kind:H};if(H==="literal"||H==="array"||H==="object"){let K=q9(q,Z);if(K.ok)V.value=K.value}return V}function q9(q,Q){if(!Q||typeof Q!=="object"||!("type"in Q))return{ok:!1};if(Q.type==="Literal"){let Z=Q.value;return typeof Z==="bigint"?{ok:!1}:{ok:!0,value:Z}}if(Q.type==="UnaryExpression"){let Z=Q,Y=Z.argument;if(!Y||typeof Y!=="object"||!("type"in Y)||Y.type!=="Literal")return{ok:!1};let H=Y.value;if(typeof H==="number"){if(Z.operator==="-")return{ok:!0,value:-H};if(Z.operator==="+")return{ok:!0,value:H}}if(typeof H==="boolean"&&Z.operator==="!")return{ok:!0,value:!H};return{ok:!1}}if(Q.type==="TemplateLiteral"){let Z=Q;if(Z.expressions.length>0||Z.quasis.length!==1)return{ok:!1};return{ok:!0,value:Z.quasis[0].value.cooked??Z.quasis[0].value.raw}}if(Q.type==="ArrayExpression"){let Z=Q,Y=[];for(let H of Z.elements){if(!H)return{ok:!1};let V=q9(q,H);if(!V.ok)return{ok:!1};Y.push(V.value)}return{ok:!0,value:Y}}if(Q.type==="ObjectExpression"){let Z=Q,Y={};for(let H of Z.properties){if(H.type!=="Property"||H.computed)return{ok:!1};let V=q.getPropertyName(H.key);if(!V)return{ok:!1};let K=q9(q,H.value);if(!K.ok)return{ok:!1};Y[V]=K.value}return{ok:!0,value:Y}}return{ok:!1}}var U3=/[-_.:/\s]+/;function Q9(q){return`${q.split(U3).map((Y)=>Y.charAt(0).toUpperCase()+Y.slice(1)).join("")}Context`}function R3(q,Q,Z,Y){if(!Z||typeof Z!=="object"||!("type"in Z))return null;if(Z.type==="ObjectExpression"){let H=[];if(!n1(Z))return null;let V=Z;for(let K of V.properties){if(K.type!=="Property")continue;let G=Q.getPropertyName(K.key);if(!G)continue;let W="any",R;if(_8(K.value)){let j=K.value.name,$=Q.findVariableTypeAndDescription(j);if($)W=$.type,R=$.description;else l8(q,"context-any-type",G,`Context "${Y}" property "${G}" has no type annotation; defaulted to "any".`,V8(q,K))}else if(K.value&&typeof K.value==="object"&&"type"in K.value&&(K.value.type==="ArrowFunctionExpression"||K.value.type==="FunctionExpression"))W=`(${K.value.params?.map((M)=>{if(_8(M))return`${M.name||"arg"}: any`;return"arg: any"}).join(", ")||""}) => any`;else if(Z1(K.value))W=K.value.value==null?"null":typeof K.value.value;H.push({name:G,type:W,description:R,optional:!1})}return{key:Y,typeName:Q9(Y),properties:H,description:void 0}}else if(_8(Z)){let H=Z.name,V=Q.findVariableTypeAndDescription(H);if(V)return{key:Y,typeName:Q9(Y),properties:[{name:H,type:V.type,description:V.description,optional:!1}]};return l8(q,"context-any-type",H,`Context "${Y}" variable "${H}" has no type annotation; defaulted to "any".`,V8(q,Z)),{key:Y,typeName:Q9(Y),properties:[{name:H,type:"any",description:void 0,optional:!1}]}}return null}function o6(q){let Q=q.callee;if(!Q||typeof Q!=="object"||!("type"in Q))return null;let Z=Q.type==="Identifier"&&Q.name==="Symbol",Y=Q.type==="MemberExpression"&&!Q.computed&&Q.object.type==="Identifier"&&Q.object.name==="Symbol"&&Q.property.type==="Identifier"&&Q.property.name==="for";if(!Z&&!Y)return null;let H=q.arguments[0];if(!H||typeof H!=="object"||!("type"in H))return"";if(H.type==="Literal"&&typeof H.value==="string")return H.value;if(H.type==="TemplateLiteral"&&H.quasis?.length===1)return H.quasis[0].value.cooked??"";return""}function n6(q,Q,Z=0){if(!Q||typeof Q!=="object"||!("type"in Q))return null;let Y=Q;if(Y.type==="Literal")return typeof Y.value==="string"?Y.value:Y.value==null?null:String(Y.value);if(Y.type==="TemplateLiteral"){if(Y.quasis?.length===1){let H=Y.quasis[0].value.cooked;return H==null?null:H}return null}if(Y.type==="CallExpression"||Y.type==="NewExpression")return o6(Y);if(Y.type==="Identifier"){if(Z>=5)return null;let H=d6(q,Y.name);if(H&&typeof H==="object"&&"type"in H){let V=H;if((V.type==="CallExpression"||V.type==="NewExpression")&&o6(V)==="")return Y.name;return n6(q,V,Z+1)}return null}return null}function s6(q,Q,Z,Y){if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="CallExpression")return;let H=Z,V=H.arguments[0];if(!V)return;let K=n6(q,V);if(!K){let R=q.componentFilePath?` in ${q.componentFilePath}`:"";console.warn(`Warning: Could not resolve setContext key${R}. Use a string literal, const-bound string, or Symbol(). Skipping context type generation.`);return}let G=H.arguments[1];if(!G)return;let W=R3(q,Q,G,K);if(W&&!q.contexts.has(K))q.contexts.set(K,W)}function Z9(q){return typeof q==="string"?JSON.stringify(q):String(q)}function A1(q,{name:Q,detail:Z,has_argument:Y,description:H,deprecated:V,tags:K,source:G}){if(Q===void 0)return;let W=!Y&&!Z?"null":C8(Z),R=H,j=q.events.get(Q);if(j?.type==="forwarded")q.events.set(Q,{type:"dispatched",name:Q,detail:W,description:R||j.description,deprecated:V??j.deprecated,tags:K??j.tags,source:G||j.source});else if(j){let $=j.tags??K;q.events.set(Q,{...j,detail:j.detail===void 0?W:j.detail,description:j.description||R,deprecated:j.deprecated??V,tags:$,source:G||j.source})}else q.events.set(Q,{type:"dispatched",name:Q,detail:W,description:R,deprecated:V,tags:K,source:G})}function a6(q,Q){let Z=Q.arguments[0],Y=a0(Z,"CustomEvent");if(!Y&&!a0(Z,"Event"))return;let H=Z.arguments[0],V=Z1(H)?H.value:void 0;if(V==null)return;let K=Y?Z.arguments[1]:void 0,G=!1,W;if(n1(K)){let R=K.properties.find((j)=>j.type==="Property"&&_8(j.key)&&j.key.name==="detail");if(R?.type==="Property")G=!0,W=Z1(R.value)?R.value.value:void 0}return A1(q,{name:String(V),detail:W==null?"":Z9(W),has_argument:G,source:V8(q,Q)}),String(V)}function Y9(q,Q,Z=!1){if(q.length===0)return"null";let Y=q.map(({name:H,type:V,description:K,optional:G,default:W})=>{let R=G?"?":"",j=K||"";if(W&&j)j=`${j} @default ${W}`;else if(W)j=`@default ${W}`;if(j){if(Z)return`/** ${j} */
3
+ ${H}${R}: ${V};`;return`/** ${j} */ ${H}${R}: ${V};`}return`${H}${R}: ${V};`}).join(Z?`
4
+ `:" ");return Z?`{
5
+ ${Y}
6
+ }`:`{ ${Y} }`}var B3=/[A-Za-z_$][\w$]*/g;function F3(q,Q){if(!Q)return!1;let Z=new Set(Q[0].split(",").map((Y)=>Y.trim()));for(let[Y]of q.matchAll(B3))if(Z.has(Y))return!0;return!1}function H9(q,Q){if(Q===void 0)return;return q.runesPropsDeclarationMetadataByDeclaratorStart.get(Q)}function r6(q,Q,Z){return H9(q,Q)?.props.get(Z)}function t6(q){if(!q||typeof q!=="object"||!("type"in q))return;if(q.type==="Identifier"&&"name"in q&&typeof q.name==="string")return q.name;if(q.type==="TSQualifiedName"&&"right"in q&&q.right&&typeof q.right==="object"&&"name"in q.right&&typeof q.right.name==="string")return q.right.name;return}function e6(q){if(!q||typeof q!=="object"||!("type"in q))return;if(q.type==="Identifier"&&"name"in q&&typeof q.name==="string")return q.name;if(q.type==="TSQualifiedName"&&"left"in q&&q.left&&typeof q.left==="object")return e6(q.left);return}function t1(q,Q){let Z=Q?.start,Y=Q?.end;if(Z===void 0||Y===void 0)return;return J8(q,Z+1,Y)?.trim()}function q7(q,Q){let Z=Q?.start,Y=Q?.end;if(Z===void 0||Y===void 0)return;return J8(q,Z,Y)?.trim()}function w8(q,Q,Z,Y,H=new Set){if(!Q?.type)return;switch(Q.type){case"TSInterfaceDeclaration":w8(q,{type:"TSTypeLiteral",members:Q.body?.body},Z,Y,H);return;case"TSTypeAliasDeclaration":case"TSParenthesizedType":case"TSTypeAnnotation":w8(q,Q.typeAnnotation,Z,Y,H);return;case"TSIntersectionType":case"TSUnionType":for(let V of Q.types??[])w8(q,V,Z,Y,H);return;case"TSTypeLiteral":for(let V of Q.members??[]){if(V?.type!=="TSPropertySignature")continue;w8(q,V.typeAnnotation?.typeAnnotation,Z,Y,H)}return;case"TSTypeReference":{let V=e6(Q.typeName);if(V){if(q.typeImportBindingsByLocalName.has(V))Z.add(V);let K=q.localTypeDeclarationsByName.get(V);if(K&&!H.has(V))Y.add(V),H.add(V),w8(q,K.node,Z,Y,H),H.delete(V)}if("typeParameters"in Q&&Q.typeParameters&&typeof Q.typeParameters==="object"){let K=Q.typeParameters;for(let G of K.params??[])w8(q,G,Z,Y,H)}return}case"TSArrayType":case"TSRestType":case"TSOptionalType":case"TSIndexedAccessType":case"TSTypeOperator":case"TSExpressionWithTypeArguments":case"TSTupleType":case"TSConditionalType":case"TSInferType":case"TSMappedType":case"TSFunctionType":case"TSConstructorType":case"TSTypeQuery":case"TSImportType":case"TSLiteralType":case"TSTypePredicate":case"TSNamedTupleMember":break;default:break}for(let V of Object.values(Q)){if(!V||typeof V!=="object")continue;if(Array.isArray(V)){for(let K of V){if(!K||typeof K!=="object"||!("type"in K))continue;w8(q,K,Z,Y,H)}continue}if("type"in V)w8(q,V,Z,Y,H)}}function M3(q,Q){let Z=new Map;for(let Y of Array.from(Q).sort()){let H=q.typeImportBindingsByLocalName.get(Y);if(!H)continue;let V=Z.get(H.source)??{default:[],named:[],namespace:[]};if(H.specifierType==="default")V.default.push(H.localName);else if(H.specifierType==="namespace")V.namespace.push(H.localName);else V.named.push({imported:H.importedName,local:H.localName});Z.set(H.source,V)}return Array.from(Z.entries()).sort(([Y],[H])=>Y.localeCompare(H)).map(([Y,H])=>{if(H.namespace.length>0)return H.namespace.map((W)=>`import type * as ${W} from "${Y}";`).join(`
7
+ `);let V=H.named.map(({imported:W,local:R})=>{if(!W||W===R)return R;return`${W} as ${R}`}),K=H.default[0],G=V.length>0?`{ ${V.join(", ")} }`:"";if(K&&G)return`import type ${K}, ${G} from "${Y}";`;if(K)return`import type ${K} from "${Y}";`;return`import type ${G} from "${Y}";`})}function Q7(q){if(q.typedRunesPropsDeclarations.length!==1)return;let[Q]=q.typedRunesPropsDeclarations;if(!Q.canonicalType)return;let Z=Array.from(Q.referencedLocalTypes).map((Y)=>q.localTypeDeclarationsByName.get(Y)).filter((Y)=>Y!==void 0).sort((Y,H)=>Y.start-H.start).map((Y)=>Y.code);return{canonicalPropsType:Q.canonicalType,canonicalPropNames:Array.from(Q.props.keys()).sort(),localTypeDeclarations:Z,typeImportStatements:M3(q,Q.referencedImportedTypes),referencesComponentGenerics:F3(Q.canonicalType,q.generics)}}var $3=/^[A-Za-z_$][\w$]*/,L3=/[A-Za-z_$][\w$]*/g,Z7=/^(?:const|in|out)\s+/;function H1(q){let Q=[],Z=0,Y=0;for(let H=0;H<q.length;H++){let V=q[H];if(V==="<"||V==="("||V==="["||V==="{")Z++;else if(V===">"||V===")"||V==="]"||V==="}")Z=Math.max(Z-1,0);else if(V===","&&Z===0)Q.push(q.slice(Y,H)),Y=H+1}return Q.push(q.slice(Y)),Q}function Y7(q){let Q=H1(q).map((Y)=>Y.trim()).filter((Y)=>Y.length>0);if(Q.length===0)return null;return[Q.map((Y)=>{let H=Y;while(Z7.test(H))H=H.replace(Z7,"");return H.match($3)?.[0]??Y}).join(", "),Q.join(", ")]}function H7(q,Q,Z){let Y=q.scriptGenericsAttribute?.value;if(!Y)return;for(let[H]of Y.matchAll(L3)){if(q.typeImportBindingsByLocalName.has(H))Q.add(H);if(Z.has(H))continue;let V=q.localTypeDeclarationsByName.get(H);if(!V)continue;Z.add(H),w8(q,V.node,Q,Z)}}var I8;(function(q){q.start="/**",q.nostart="/***",q.delim="*",q.end="*/"})(I8=I8||(I8={}));function J9(q){return/^\s+$/.test(q)}function J7(q){let Q=q.match(/\r+$/);return Q==null?["",q]:[q.slice(-Q[0].length),q.slice(0,-Q[0].length)]}function c8(q){let Q=q.match(/^\s+/);return Q==null?["",q]:[q.slice(0,Q[0].length),q.slice(Q[0].length)]}function K7(q){return q.split(/\n/)}function V7(q={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},q)}function K9(q={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},q)}var A3=/^@\S+/;function V9({fence:q="```"}={}){let Q=C3(q),Z=(Y,H)=>Q(Y)?!H:H;return function(H){let V=[[]],K=!1;for(let G of H){if(A3.test(G.tokens.description)&&!K)V.push([G]);else V[V.length-1].push(G);K=Z(G.tokens.description,K)}return V}}function C3(q){if(typeof q==="string")return(Q)=>Q.split(q).length%2===0;return q}function X9({startLine:q=0,markers:Q=I8}={}){let Z=null,Y=q;return function(V){let K=V,G=K9();if([G.lineEnd,K]=J7(K),[G.start,K]=c8(K),Z===null&&K.startsWith(Q.start)&&!K.startsWith(Q.nostart))Z=[],G.delimiter=K.slice(0,Q.start.length),K=K.slice(Q.start.length),[G.postDelimiter,K]=c8(K);if(Z===null)return Y++,null;let W=K.trimRight().endsWith(Q.end);if(G.delimiter===""&&K.startsWith(Q.delim)&&!K.startsWith(Q.end))G.delimiter=Q.delim,K=K.slice(Q.delim.length),[G.postDelimiter,K]=c8(K);if(W){let R=K.trimRight();G.end=K.slice(R.length-Q.end.length),K=R.slice(0,-Q.end.length)}if(G.description=K,Z.push({number:Y,source:V,tokens:G}),Y++,W){let R=Z.slice();return Z=null,R}return null}}function W9({tokenizers:q}){return function(Z){var Y;let H=V7({source:Z});for(let V of q)if(H=V(H),(Y=H.problems[H.problems.length-1])===null||Y===void 0?void 0:Y.critical)break;return H}}function e1(){return(q)=>{let{tokens:Q}=q.source[0],Z=Q.description.match(/\s*(@(\S+))(\s*)/);if(Z===null)return q.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:q.source[0].number,critical:!0}),q;return Q.tag=Z[1],Q.postTag=Z[3],Q.description=Q.description.slice(Z[0].length),q.tag=Z[2],q}}function q0(q="compact"){let Q=I3(q);return(Z)=>{let Y=0,H=[];for(let[G,{tokens:W}]of Z.source.entries()){let R="";if(G===0&&W.description[0]!=="{")return Z;for(let j of W.description){if(j==="{")Y++;if(j==="}")Y--;if(R+=j,Y===0)break}if(H.push([W,R]),Y===0)break}if(Y!==0)return Z.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:Z.source[0].number,critical:!0}),Z;let V=[],K=H[0][0].postDelimiter.length;for(let[G,[W,R]]of H.entries()){if(W.type=R,G>0)W.type=W.postDelimiter.slice(K)+R,W.postDelimiter=W.postDelimiter.slice(0,K);[W.postType,W.description]=c8(W.description.slice(R.length)),V.push(W.type)}return V[0]=V[0].slice(1),V[V.length-1]=V[V.length-1].slice(0,-1),Z.type=Q(V),Z}}var w3=(q)=>q.trim();function I3(q){if(q==="compact")return(Q)=>Q.map(w3).join("");else if(q==="preserve")return(Q)=>Q.join(`
8
+ `);else return q}var P3=(q)=>q&&q.startsWith('"')&&q.endsWith('"');function Q0(){let q=(Q,{tokens:Z},Y)=>Z.type===""?Q:Y;return(Q)=>{let{tokens:Z}=Q.source[Q.source.reduce(q,0)],Y=Z.description.trimLeft(),H=Y.split('"');if(H.length>1&&H[0]===""&&H.length%2===1)return Q.name=H[1],Z.name=`"${H[1]}"`,[Z.postName,Z.description]=c8(Y.slice(Z.name.length)),Q;let V=0,K="",G=!1,W;for(let j of Y){if(V===0&&J9(j))break;if(j==="[")V++;if(j==="]")V--;K+=j}if(V!==0)return Q.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:Q.source[0].number,critical:!0}),Q;let R=K;if(K[0]==="["&&K[K.length-1]==="]"){G=!0,K=K.slice(1,-1);let j=K.split("=");if(K=j[0].trim(),j[1]!==void 0)W=j.slice(1).join("=").trim();if(K==="")return Q.problems.push({code:"spec:name:empty-name",message:"empty name",line:Q.source[0].number,critical:!0}),Q;if(W==="")return Q.problems.push({code:"spec:name:empty-default",message:"empty default value",line:Q.source[0].number,critical:!0}),Q;if(!P3(W)&&/=(?!>)/.test(W))return Q.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:Q.source[0].number,critical:!0}),Q}if(Q.optional=G,Q.name=K,Z.name=R,W!==void 0)Q.default=W;return[Z.postName,Z.description]=c8(Y.slice(Z.name.length)),Q}}function Z0(q="compact",Q=I8){let Z=G9(q);return(Y)=>{return Y.description=Z(Y.source,Q),Y}}function G9(q){if(q==="compact")return S3;if(q==="preserve")return T3;return q}function S3(q,Q=I8){return q.map(({tokens:{description:Z}})=>Z.trim()).filter((Z)=>Z!=="").join(" ")}var D3=(q,{tokens:Q},Z)=>Q.type===""?q:Z,N3=({tokens:q})=>(q.delimiter===""?q.start:q.postDelimiter.slice(1))+q.description;function T3(q,Q=I8){if(q.length===0)return"";if(q[0].tokens.description===""&&q[0].tokens.delimiter===Q.start)q=q.slice(1);let Z=q[q.length-1];if(Z!==void 0&&Z.tokens.description===""&&Z.tokens.end.endsWith(Q.end))q=q.slice(0,-1);return q=q.slice(q.reduce(D3,0)),q.map(N3).join(`
9
+ `)}function z9({startLine:q=0,fence:Q="```",spacing:Z="compact",markers:Y=I8,tokenizers:H=[e1(),q0(Z),Q0(),Z0(Z)]}={}){if(q<0||q%1>0)throw Error("Invalid startLine");let V=X9({startLine:q,markers:Y}),K=V9({fence:Q}),G=W9({tokenizers:H}),W=G9(Z);return function(R){let j=[];for(let $ of K7(R)){let M=V($);if(M===null)continue;let B=K(M),S=B.slice(1).map(G);j.push({description:W(B[0],Y),tags:S,source:M,problems:S.reduce((I,k)=>I.concat(k.problems),[])})}return j}}function b3(q){return q.start+q.delimiter+q.postDelimiter+q.tag+q.postTag+q.type+q.postType+q.name+q.postName+q.description+q.end+q.lineEnd}function j9(){return(q)=>q.source.map(({tokens:Q})=>b3(Q)).join(`
10
+ `)}var k3={line:0,start:0,delimiter:0,postDelimiter:0,tag:0,postTag:0,name:0,postName:0,type:0,postType:0,description:0,end:0,lineEnd:0};var zJ=Object.keys(k3);function C1(q,Q={}){return z9(Q)(q)}var kJ=j9();var E3=null;function v3(q,Q,Z){let Y={value:void 0,replace:!1};if(!Z||typeof Z!=="object"||!("type"in Z))return Y;if(Z.type==="Identifier")Y.value=Z.name,Y.replace=!0;else if(Z.type==="Literal")Y.value=String(Z.value);else if(Z.type==="MemberExpression")Y.value=a1(q,Q,Z);else if((Z.type==="ObjectExpression"||Z.type==="TemplateLiteral")&&"start"in Z&&"end"in Z&&typeof Z.start==="number"&&typeof Z.end==="number")Y.value=J8(q,Z.start,Z.end);return Y}function X7(q,Q,Z){let Y={};for(let H of Z.properties){if(H.type!=="Property"||H.computed)continue;let V=Q.getPropertyName(H.key);if(!V)continue;Y[V]=v3(q,Q,H.value)}return Y}function h3(q,Q){if(!Q||typeof Q!=="object"||!("type"in Q))return null;if(Q.type==="Identifier"){let V=Q,K=q.propLocalToPublicName.get(V.name);if(!K)return null;return{publicName:K,trackingName:V.name}}if(Q.type!=="MemberExpression")return null;let Z=Q,Y=Z.object&&typeof Z.object==="object"&&"type"in Z.object&&Z.object.type==="Identifier"?Z.object.name:void 0;if(!Y||!q.wholePropsLocals.has(Y))return null;let H;if(!Z.computed&&Z.property&&typeof Z.property==="object"&&"type"in Z.property){if(Z.property.type==="Identifier")H=Z.property.name;else if(Z.property.type==="Literal"&&Z.property.value!=null)H=String(Z.property.value)}else if(Z.computed&&Z.property&&typeof Z.property==="object"&&"type"in Z.property&&Z.property.type==="Literal"&&"value"in Z.property&&Z.property.value!=null)H=String(Z.property.value);if(!H)return null;return{publicName:H,trackingName:H}}function W7(q,Q){let Z=Q;if(Z&&typeof Z==="object"&&"type"in Z&&Z.type==="ChainExpression")Z=Z.expression;if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="CallExpression")return null;let Y=Z;if(!Y.callee||typeof Y.callee!=="object"||!("type"in Y.callee))return null;let H=h3(q,Y.callee);if(!H)return null;return{...H,arguments:Y.arguments}}function f3(q){return q===void 0||q===""?void 0:q}function w1(q,{slot_name:Q,slot_props:Z,slot_fallback:Y,slot_description:H,slot_deprecated:V,slot_tags:K,source:G}){let W=Q===void 0||Q==="",R=W?E3:Q??"",j=C8(Y),$=f3(Z),M=H?.trim()||void 0;if(q.slots.has(R)){let B=q.slots.get(R);if(B)q.slots.set(R,{...B,default:B.default??W,fallback:j,slot_props:B.slot_props===void 0?$:B.slot_props,description:B.description||M,deprecated:B.deprecated??V,tags:B.tags||K,source:G||B.source})}else q.slots.set(R,{name:R,default:W,fallback:j,slot_props:Z,description:M,deprecated:V,tags:K,source:G})}var y3=/\s*=\s*/;function G7(q){let Q=q.indexOf("<");if(Q===-1||!q.endsWith(">"))return q;let Z=q.slice(0,Q),Y=q.slice(Q+1,-1),H=H1(Y).map((V)=>V.trim().replace(y3," = ")).join(", ");return`${Z}<${H}>`}var g3=/^\s*$/,_3=/;$/,x3=/^-\s*/;function J1(q){if(q===void 0)return;let Q=q.replace(x3,"").trim();return Q===""?"":Q}function I1(q){if(!q||q.length===0)return;return q[0].tokens.description}var z7=new Set(["since","example"]);function j7(q){if(!q||q.length===0)return"";let Q=[];for(let Z of q){let Y=Z.tokens;if((Y.end??"").trim()==="*/")break;if(Y.tag){let H=`${Y.name??""}${Y.postName??""}${Y.description??""}`.trimEnd();if(H)Q.push(H)}else Q.push(`${Y.postDelimiter??""}${Y.description??""}`)}return Q.join(`
11
+ `)}function u3(q){let Q=q.trim();return Q===""?!0:Q}function O7(q,Q){return u3(`${q??""}${Q?` ${Q}`:""}`)}function m3(q){let Q=q.trim().replace(_3,"").trimEnd();if(!Q.startsWith("{")||!Q.endsWith("}"))return!1;let Z=0,Y=null;for(let H=0;H<Q.length;H++){let V=Q[H];if(Y!==null){if(V==="\\"){H++;continue}if(V===Y)Y=null;continue}if(V==='"'||V==="'"||V==="`"){Y=V;continue}if(V==="{"||V==="["||V==="(")Z++;else if(V==="}"||V==="]"||V===")"){if(Z--,Z===0&&H<Q.length-1)return!1}}return Z===0}function l3(q){let Q=q;if(!Q.startsWith("/*"))Q=`/*${Q}`;if(!Q.endsWith("*/"))Q+="*/";return Q}function U9(q){let Q=q[0]?.tags??[],Z=new Set(["type","param","returns","return","extends","extendProps","restProps","slot","snippet","event","typedef","callback","bindable","deprecated"]),Y,H=[],V,K,G,W=[],R=[];for(let j of Q)if(j.tag==="type")Y=j;else if(j.tag==="param")H.push(j);else if(j.tag==="returns"||j.tag==="return")V=j;else if(j.tag==="deprecated")G??=O7(j.name,j.description);else if(z7.has(j.tag))R.push(j);else if(j.tag==="bindable"){if(j.type)continue;let $=`${j.name}${j.description?` ${j.description}`:""}`.trim();if($==="readonly"||$==="writable")K??=$}else if(!Z.has(j.tag))W.push(j);return{type:Y,param:H,returns:V,binding:K,deprecated:G,additional:W,passthrough:R,description:q[0]?.description}}function c3(q){if(!q||q.length===0)return;let Q=q[q.length-1];return Q&&typeof Q==="object"&&"value"in Q?Q:void 0}function d3(q,Q,Z){if(!Q||Q.length===0||Z===void 0||!q.source)return;for(let Y=Q.length-1;Y>=0;Y--){let H=Q[Y];if(!H||typeof H!=="object"||!("value"in H)||!("end"in H))continue;if(typeof H.end!=="number")continue;let V=q.source.slice(H.end,Z);if(g3.test(V))return H}return}function a8(q,Q,Z){if(!Z?.leadingComments)return;let Y=d3(q,Z.leadingComments,Z.start);if(!Y)return;return i3(Q,[Y])}function U7(q,Q,Z){if(!Z?.leadingComments)return;return a8(q,Q,Z)}function i3(q,Q){if(!Q)return;let Z=c3(Q);if(!Z)return;let Y=C1(l3(Z.value),{spacing:"preserve"}),{type:H,param:V,returns:K,binding:G,deprecated:W,additional:R,passthrough:j,description:$}=U9(Y),M,B,S,I;if(H)M=q.aliasType(H.type);if(V.length>0)B=V.filter((x)=>!x.name.includes(".")).map((x)=>({name:x.name,type:q.aliasType(x.type),description:J1(x.description),optional:x.optional||!1}));if(K)S=q.aliasType(K.type);let k=C8($?.trim());if(k||R.length>0){let x=[];if(k)x.push(k);for(let F of R){let P=`@${F.tag}${F.name?` ${F.name}`:""}${F.description?` ${F.description}`:""}`;x.push(P)}I=x.join(`
12
+ `)}let E=j.length>0?j.map((x)=>({name:x.tag,body:j7(x.source)})):void 0;return{type:M,params:B,returnType:S,description:I,binding:G,deprecated:W,tags:E}}function R7(q,Q){if(!q.source)return;let Z=0;for(let{tags:Y,description:H,source:V}of C1(q.source,{spacing:"preserve"})){let K=V.map((y)=>y.source).join(`
13
+ `),G=q.source.indexOf(K,Z),W=G===-1?void 0:G;if(G!==-1)Z=G+K.length;let R,j,$,M,B,S,I=[],k=[],E,x,F,P=[],N,m,T=[],J,X=!1,z=!0,U=[],L,A=new Map,C=new Set,b=new Set;for(let y of Y)if(y.source&&y.source.length>0)C.add(y.source[0].number);for(let y of V)if(!y.tokens.tag&&y.tokens.description&&y.tokens.description.trim()!=="}")A.set(y.number,y.tokens.description);let D=(y)=>{if(!y||y.length===0)return;let a=y[0].number,c=[],r=[],d=!1;for(let p=a-1;p>=1;p--){if(C.has(p))break;let t=A.get(p);if(t)c.unshift(t),r.unshift(p),d=!0;else if(d){let Q8=V.find((e)=>e.number===p);if(!(!Q8||!Q8.tokens.tag&&(!Q8.tokens.description||Q8.tokens.description.trim()==="")))break}}if(c.length===0)return;for(let p of r)b.add(p);return c.join(`
14
+ `).trim()},w=()=>{if(R!==void 0){let y=j&&j!=="object"&&j!=="Object"?j:void 0,a;if(y)a=y;else if(k.length>0)a=Y9(k,R,!0);else a=j||"";if(S!==void 0){let c;for(let p of Y){let t=p.source?.[0]?.number;if(typeof t!=="number")continue;if(t<=S)continue;if(p.tag==="property"||p.tag==="type")continue;c=t;break}let r=[],d=Array.from(A.keys()).sort((p,t)=>p-t);for(let p of d){if(p<=S)continue;if(c!==void 0&&p>=c)continue;if(b.has(p))continue;let Q8=A.get(p)?.trim();if(Q8)r.push(Q8),b.add(p)}if(r.length>0){let p=r.join(`
15
+ `);$=$?`${$}
16
+ ${p}`:p}}A1(q,{name:R,detail:a,has_argument:!1,description:$,deprecated:M,tags:I.length>0?I:void 0,source:B}),q.eventDescriptions.set(R,$),q.jsDocEventNames.add(R),q.jsDocEventSources.set(R,B),k.length=0,R=void 0,j=void 0,$=void 0,M=void 0,B=void 0,S=void 0,I=[]}},g=()=>{if(E!==void 0){let y,a;if(P.length>0)y=Y9(P,void 0,!0),a=`type ${E} = ${y};`;else if(x)y=x,a=m3(y)?`interface ${E} ${y}`:`type ${E} = ${y};`;else y="{}",a=`type ${E} = ${y};`;q.typedefs.set(E,{type:y,name:E,description:C8(F),ts:a}),P.length=0,E=void 0,x=void 0,F=void 0}},l=()=>{if(N!==void 0){let c=`(${T.map(({name:d,type:p,optional:t})=>{return`${d}${t?"?":""}: ${p}`}).join(", ")}) => ${J||"void"}`,r=`type ${N} = ${c};`;q.typedefs.set(N,{type:c,name:N,description:C8(m),ts:r}),T.length=0,J=void 0,N=void 0,m=void 0}},i=Y.some((y)=>y.tag==="slot"||y.tag==="snippet"),Y8=Y.some((y)=>y.tag==="extends"||y.tag==="extendProps");for(let{tag:y,type:a,name:c,description:r,optional:d,default:p,source:t}of Y){let Q8=Q.aliasType(a),A8=D(t);switch(y){case"extends":case"extendProps":if(q.extends={interface:c,import:Q8},z)z=!1;break;case"restProps":{let e=c?r?`${c} ${r}`:c:r,n0=J1(e)||A8;if(!n0&&z&&!X&&H)n0=H,X=!0;if(q.rest_props={type:"Element",name:Q8,description:n0||void 0},z)z=!1;break}case"slot":case"snippet":{let j1=J1(I1(t));if(!j1&&z&&!X&&H)j1=H,X=!0;if(!j1&&U.length===0)j1=A8;if(z)z=!1;w1(q,{slot_name:c,slot_props:Q8,slot_description:j1||void 0,slot_deprecated:L,slot_tags:U.length>0?[...U]:void 0,source:e0(q,V,t,W)}),U.length=0,L=void 0;break}case"event":{if(w(),R=c,j=Q8,S=t&&t.length>0?t[0].number:void 0,$=J1(I1(t))||A8,!$&&z&&!X&&H)$=H,X=!0;if(B=e0(q,V,t,W),z)z=!1;break}case"type":if(R!==void 0)j=Q8;break;case"param":if(N!==void 0)T.push({name:c,type:Q8,optional:d||!1});break;case"returns":case"return":if(N!==void 0)J=Q8;break;case"property":{let e={name:c,type:Q8,description:J1(I1(t)),optional:d||!1,default:p};if(R!==void 0)k.push(e);else if(E!==void 0)P.push(e);break}case"typedef":{if(g(),E=G7(c),x=Q8,F=J1(I1(t))||A8,!F&&z&&!X&&H)F=H,X=!0;if(z)z=!1;break}case"callback":{if(l(),N=G7(c),m=J1(I1(t))||A8,!m&&z&&!X&&H)m=H,X=!0;if(z)z=!1;break}case"generics":if(q.generics=[c,Q8],z)z=!1;break;case"template":{let e=c;if(Q8)e=`${c} extends ${Q8}`;if(p)e+=` = ${p}`;if(i&&!Y8){q.deferredSlotBlockGenerics.push({name:c,constraint:e});break}if(Q.accumulateGeneric(c,e),z)z=!1;break}case"deprecated":{let e=O7(c,r);if(R===void 0)L??=e;else M??=e;break}case"enum":case"class":case"implements":case"this":case"namespace":case"memberof":case"module":case"file":case"overview":break;default:{let e={name:y,body:j7(t)};if(R!==void 0&&z7.has(y))I.push(e);else U.push(e)}break}}w(),g(),l()}}function p3({hasTypeScriptType:q,hasJSDocType:Q,inferredType:Z,finalType:Y}){if(q)return"typescript";if(Q)return"jsdoc";if(Z!==void 0)return"default";if(Y!==void 0)return"inferred";return"unknown"}function P1(q){let Q=q.explicitType??q.jsdocType??q.resolvedType??q.typeSeed,Z=q.jsdocParams??q.resolvedParams,Y=q.jsdocReturnType??q.resolvedReturnType;if(q.isFunctionDeclaration&&Q==="() => any"&&Y)Q=Z&&Z.length>0?`(${Z.map((G)=>`${G.name}${G.optional?"?":""}: ${G.type}`).join(", ")}) => ${Y}`:`() => ${Y}`;let H=q.jsdocDescription??q.resolvedDescription;if(H===void 0&&Q!==void 0)H=q.typedefs?.get(Q)?.description;let V=p3({hasTypeScriptType:q.explicitType!==void 0,hasJSDocType:q.jsdocType!==void 0||q.jsdocParams!==void 0||q.jsdocReturnType!==void 0||q.resolvedType!==void 0,inferredType:q.inferredTypeForSource,finalType:Q}),K=q.initializerIsFunction||q.isFunctionDeclaration||q.inferIsFunctionFromTypeSignature===!0&&(!!q.jsdocParams?.length||q.jsdocReturnType!==void 0||!!q.jsdocType?.includes("=>")||!!q.resolvedType?.includes("=>")||!!q.explicitType?.includes("=>"));return{type:Q,typeSource:V,description:H,params:Z,returnType:Y,isFunction:K}}function o3(q){if(!q||typeof q!=="object"||!("type"in q))return;let Q=String(q.type);if(Q!=="InlineComponent"&&Q!=="Element")return;let Z="name"in q&&typeof q.name==="string"?q.name:void 0;if(!Z)return;let Y=Q==="InlineComponent"?{type:"InlineComponent",name:Z}:{type:"Element",name:Z};if(Q==="Element"&&Z==="svelte:element"&&"tag"in q&&typeof q.tag==="string")Y.thisValue=q.tag;return Y}function B7(q,Q){if(q.rest_props!==void 0)return;let Z=o3(Q);if(Z)q.rest_props=Z}function U8(q,Q,Z){if(!Q||q.has(Q))return;q.set(Q,Z)}function Y0(q,Q){for(let Z=q.activeScopes.length-1;Z>=0;Z-=1){let Y=q.activeScopes[Z]?.get(Q);if(!Y)continue;return Y.kind==="prop"?Y.publicPropName:void 0}return}function X8(q,Q=new Set){if(!q||typeof q!=="object"||!("type"in q))return Q;switch(q.type){case"Identifier":Q.add(q.name);break;case"AssignmentPattern":X8(q.left,Q);break;case"ArrayPattern":for(let Z of q.elements)X8(Z??void 0,Q);break;case"ObjectPattern":for(let Z of q.properties)if(Z.type==="Property")X8(Z.value,Q);else if(Z.type==="RestElement")X8(Z.argument,Q);break;case"RestElement":X8(q.argument,Q);break}return Q}function B9(q,Q){let Z=X8(Q);if(!Z)return;for(let Y of Z){let H=Y0(q,Y);if(H)q.reactive_vars.add(H)}}function H0(q){if(!q||typeof q!=="object"||!("type"in q))return!1;switch(String(q.type)){case"BlockStatement":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"CatchClause":case"EachBlock":case"ThenBlock":case"CatchBlock":return!0;default:return!1}}function F7(q){if(!q||typeof q!=="object"||!("type"in q))return!1;let Q=String(q.type);return Q==="FunctionDeclaration"||Q==="FunctionExpression"||Q==="ArrowFunctionExpression"}function n3(q,Q){let Z=q.scopeDeclarations.get(Q);if(!Z)Z=new Map,q.scopeDeclarations.set(Q,Z);return Z}function s3(q,Q,Z){let Y=[];if(Z.id.type==="Identifier")return Y.push({kind:"local",name:Z.id.name}),Y;if(Z.id.type!=="ObjectPattern")return Y;for(let H of Z.id.properties){if(H.type==="RestElement"){if(H.argument.type==="Identifier")Y.push({kind:"local",name:H.argument.name});continue}if(H.computed)continue;let V=q.getPropertyName(H.key);if(!V)continue;let K;if(H.value.type==="Identifier")K=H.value.name;else if(H.value.type==="AssignmentPattern"&&H.value.left.type==="Identifier")K=H.value.left.name;if(!K)continue;Y.push({kind:"prop",name:K,publicPropName:V})}return Y}function R9(q,Q,Z,Y,H){if(!g6(Q))return;let V=H?.allowRunesProps??!1,K=H?.forceProp??!1,G=Q;for(let W of G.declarations){if(V&&x8(s8(W.init),"$props")){for(let $ of s3(q,G,W))U8($.kind==="prop"?Z:Y,$.name,$.kind==="prop"?{kind:"prop",publicPropName:$.publicPropName}:{kind:"local"});continue}let R=G.kind==="var"?Y:Z,j=K?"prop":"local";for(let $ of X8(W.id))U8(R,$,j==="prop"?{kind:"prop",publicPropName:$}:{kind:"local"})}}function a3(q,Q){if("id"in q&&q.id&&typeof q.id==="object"&&"name"in q.id&&typeof q.id.name==="string")U8(Q,q.id.name,{kind:"local"});for(let Z of q.params)for(let Y of X8(Z))U8(Q,Y,{kind:"local"})}function r3(q,Q,Z,Y){if(!Array.isArray(Q))return;for(let H of Q){if(!H||typeof H!=="object"||!("type"in H))continue;switch(H.type){case"VariableDeclaration":R9(q,H,Z,Y);break;case"FunctionDeclaration":if(H.id?.name)U8(Z,H.id.name,{kind:"local"});break;case"ClassDeclaration":if(H.id?.name)U8(Z,H.id.name,{kind:"local"});break}}}function t3(q,Q,Z){if(!Z||typeof Z!=="object")return;let Y="content"in Z&&Z.content&&typeof Z.content==="object"&&"body"in Z.content&&Array.isArray(Z.content.body)?Z.content:("body"in Z)&&Array.isArray(Z.body)?Z:void 0;if(!Y||!("body"in Y)||!Array.isArray(Y.body))return;for(let H of Y.body){if(!H||typeof H!=="object"||!("type"in H))continue;switch(H.type){case"ImportDeclaration":for(let V of H.specifiers??[])if(V.local?.name)U8(Q.componentScope,V.local.name,{kind:"local"});break;case"VariableDeclaration":R9(q,H,Q.componentScope,Q.componentScope,{allowRunesProps:!0});break;case"FunctionDeclaration":if(H.id?.name)U8(Q.componentScope,H.id.name,{kind:"local"});break;case"ClassDeclaration":if(H.id?.name)U8(Q.componentScope,H.id.name,{kind:"local"});break;case"ExportNamedDeclaration":if(!H.declaration||typeof H.declaration!=="object"||!("type"in H.declaration))break;if(H.declaration.type==="VariableDeclaration")R9(q,H.declaration,Q.componentScope,Q.componentScope,{forceProp:!0});else if(H.declaration.type==="FunctionDeclaration"&&H.declaration.id?.name)U8(Q.componentScope,H.declaration.id.name,{kind:"prop",publicPropName:H.declaration.id.name});break}}}function M7(q,Q){Q.componentScope.clear(),Q.scopeDeclarations=new WeakMap,Q.activeScopes.length=0,t3(q,Q,Q.parsed?.instance)}function $7(q){return{varScopeStack:[q.componentScope]}}function L7(q,Q,Z,Y){if(!H0(Y))return;let H=n3(Q,Y),V=Z.varScopeStack[Z.varScopeStack.length-1]??Q.componentScope;switch(String(Y.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":a3(Y,H);break;case"BlockStatement":r3(q,Y.body,H,V);break;case"CatchClause":if("param"in Y)for(let G of X8(Y.param))U8(H,G,{kind:"local"});break;case"EachBlock":{let G=Y;for(let W of X8(G.context))U8(H,W,{kind:"local"});if(typeof G.index==="string")U8(H,G.index,{kind:"local"});else if(G.index&&"name"in G.index)U8(H,G.index.name,{kind:"local"});break}case"ThenBlock":if("value"in Y)for(let G of X8(Y.value))U8(H,G,{kind:"local"});break;case"CatchBlock":if("error"in Y)for(let G of X8(Y.error))U8(H,G,{kind:"local"});break}if(F7(Y))Z.varScopeStack.push(H)}function A7(q,Q){if(F7(Q))q.varScopeStack.pop()}var e3=new Set(["$state","$derived","$effect","$props","$bindable","$inspect","$host"]);function qq(q,Q){switch(Q?.type){case"MemberExpression":return Q.computed||q===Q.object;case"MethodDefinition":return!!Q.computed;case"MetaProperty":return q===Q.meta;case"PropertyDefinition":return Q.computed||q===Q.value;case"Property":return Q.computed||q===Q.value;case"ExportSpecifier":case"ImportSpecifier":return q===Q.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}function Qq(q,Q){for(let Z=Q.length-1;Z>=0;Z-=1)if(Q[Z]?.has(q))return!0;return!1}function Zq(q){let Q=new Set;if(!q||typeof q!=="object"||!("type"in q))return Q;switch(String(q.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":{let Z=q;if(Z.id?.name)Q.add(Z.id.name);for(let Y of Z.params??[])X8(Y,Q);break}case"BlockStatement":J0(q.body,Q);break;case"CatchClause":X8(q.param,Q);break;case"EachBlock":{let Z=q;if(X8(Z.context,Q),typeof Z.index==="string")Q.add(Z.index);else if(Z.index?.name)Q.add(Z.index.name);break}case"ThenBlock":X8(q.value,Q);break;case"CatchBlock":X8(q.error,Q);break}return Q}function J0(q,Q){if(!Array.isArray(q))return;for(let Z of q){if(!Z||typeof Z!=="object"||!("type"in Z))continue;switch(String(Z.type)){case"ImportDeclaration":for(let Y of Z.specifiers??[])if(Y.local?.name)Q.add(Y.local.name);break;case"VariableDeclaration":for(let Y of Z.declarations??[])X8(Y.id,Q);break;case"FunctionDeclaration":case"ClassDeclaration":{let Y=Z.id?.name;if(Y)Q.add(Y);break}case"ExportNamedDeclaration":{let Y=Z.declaration;if(Y&&typeof Y==="object"&&"type"in Y)J0([Y],Q);break}}}}function F9(q,Q){if(!q||typeof q!=="object")return!1;let Z=[...Q],Y=!1;return m8(q,{enter(H,V){if(Y){this.skip();return}if(H0(H))Z.push(Zq(H));if(V&&H.type==="Identifier"&&e3.has(H.name)&&!V.type.startsWith("TS")&&qq(H,V)&&!Qq(H.name,Z))Y=!0,this.skip()},leave(H){if(H0(H))Z.pop()}}),Y}function C7(q){if(!q||typeof q!=="object")return;if("content"in q){let Q=q.content,Z=Q&&typeof Q==="object"&&"body"in Q?Q.body:void 0;if(Array.isArray(Z))return Z}if("body"in q&&Array.isArray(q.body))return q.body;return}function w7(q){if(q.runesOptionOverride!==void 0)return q.runesOptionOverride?"runes":"legacy";let Q=q.parsed;if(!Q)return"legacy";let Z=new Set;J0(C7(Q.module),Z);let Y=new Set;return J0(C7(Q.instance),Y),F9(Q.module,[Z])||F9(Q.instance,[Z,Y])||F9(Q.html,[Z,Y])?"runes":"legacy"}function d8(q,Q,Z){let Y=Z._,H=!1;function V(G,{next:W,state:R}){W(R)}function K(G,W,R){if(H)return;if(!G.type)return;let j,$={},M={path:W,state:R,next:(S=R)=>{W.push(G);for(let I in G){if(I==="type")continue;let k=G[I];if(k&&typeof k==="object")if(Array.isArray(k)){let E={},x=k.length,F=!1;for(let P=0;P<x;P++){let N=k[P];if(N&&typeof N==="object"){let m=K(N,W,S);if(m)E[P]=m,F=!0}}if(F)$[I]=k.map((P,N)=>E[N]??P)}else{let E=K(k,W,S);if(E)$[I]=E}}if(W.pop(),Object.keys($).length>0)return I7(G,$)},stop:()=>{H=!0},visit:(S,I=R)=>{W.push(G);let k=K(S,W,I)??S;return W.pop(),k}},B=Z[G.type]??V;if(Y){let S;if(j=Y(G,{...M,next:(I=R)=>{return R=I,S=B(G,{...M,state:I}),S}}),!j&&S)j=S}else j=B(G,M);if(!j){if(Object.keys($).length>0)j=I7(G,$)}if(j)return j}return K(q,[],Q)??q}function I7(q,Q){let Z={},Y=Object.getOwnPropertyDescriptors(q);for(let H in Y)Object.defineProperty(Z,H,Y[H]);for(let H in Q)Z[H]=Q[H];return Z}var P7=/^[ \t\r\n]+/;var S7=/[ \t\r\n]+$/,M9=/[^ \t\r\n]/;var K0=/[^\n]/g;var QK=Symbol("uninitialized"),ZK=Symbol("filename"),YK=Symbol("hmr");var D7="http://www.w3.org/2000/svg",N7="http://www.w3.org/1998/Math/MathML",T7=["await_waterfall","await_reactivity_loss","state_snapshot_uncloneable","binding_property_non_reactive","hydration_attribute_changed","hydration_html_changed","ownership_invalid_binding","ownership_invalid_mutation"];function A9(q,Q){if(Q.length===0)return null;let Y=new E7(Q).get(q);return Y&&Y[0][0]>0.7?Y[0][1]:null}var $9=2,L9=3;function Yq(q,Q){if(q===null&&Q===null)throw"Trying to compare two null values";if(q===null||Q===null)return 0;return q=String(q),Q=String(Q),1-Hq(q,Q)/Math.max(q.length,Q.length)}function Hq(q,Q){let Z=[],Y=0;for(let H=0;H<=Q.length;H++)for(let V=0;V<=q.length;V++){let K;if(H&&V)if(q.charAt(V-1)===Q.charAt(H-1))K=Y;else K=Math.min(Z[V],Z[V-1],Y)+1;else K=H+V;Y=Z[V],Z[V]=K}return Z.pop()}var Jq=/[^\w, ]+/;function Kq(q,Q=2){let Z="-"+q.toLowerCase().replace(Jq,"")+"-",Y=Q-Z.length,H=[];if(Y>0)for(let V=0;V<Y;++V)q+="-";for(let V=0;V<Z.length-Q+1;++V)H.push(Z.slice(V,V+Q));return H}function b7(q,Q=2){let Z={},Y=Kq(q,Q),H=0;for(H;H<Y.length;++H)if(Y[H]in Z)Z[Y[H]]+=1;else Z[Y[H]]=1;return Z}function k7(q,Q){return Q[0]-q[0]}class E7{exact_set={};match_dict={};items={};constructor(q){for(let Q=$9;Q<L9+1;++Q)this.items[Q]=[];for(let Q=0;Q<q.length;++Q)this.add(q[Q])}add(q){if(q.toLowerCase()in this.exact_set)return!1;let Z=$9;for(Z;Z<L9+1;++Z)this._add(q,Z)}_add(q,Q){let Z=q.toLowerCase(),Y=this.items[Q]||[],H=Y.length;Y.push(0);let V=b7(Z,Q),K=0,G,W;for(G in V)if(W=V[G],K+=Math.pow(W,2),G in this.match_dict)this.match_dict[G].push([H,W]);else this.match_dict[G]=[[H,W]];let R=Math.sqrt(K);Y[H]=[R,Z],this.items[Q]=Y,this.exact_set[Z]=q}get(q){let Q=q.toLowerCase(),Z=this.exact_set[Q];if(Z)return[[1,Z]];for(let Y=L9;Y>=$9;--Y){let H=this.__get(q,Y);if(H.length>0)return H}return null}__get(q,Q){let Z=q.toLowerCase(),Y={},H=b7(Z,Q),V=this.items[Q],K=0,G,W,R,j,$;for(G in H)if(W=H[G],K+=Math.pow(W,2),G in this.match_dict)for(R=0;R<this.match_dict[G].length;++R)if(j=this.match_dict[G][R][0],$=this.match_dict[G][R][1],j in Y)Y[j]+=W*$;else Y[j]=W*$;let M=Math.sqrt(K),B=[],S;for(let E in Y)S=Y[E],B.push([S/(M*V[E][0]),V[E][1]]);B.sort(k7);let I=[],k=Math.min(50,B.length);for(let E=0;E<k;++E)I.push([Yq(B[E][1],Z),B[E][1]]);B=I,B.sort(k7),I=[];for(let E=0;E<B.length;++E)if(B[E][0]===B[0][0])I.push([B[E][0],this.exact_set[B[E][1]]]);return I}}function Vq(q,Q){return q.start<=Q&&Q<q.end}function v7(q,Q={}){let{offsetLine:Z=0,offsetColumn:Y=0}=Q,H=0,V=q.split(`
17
+ `).map((W,R)=>{let j=H+W.length+1,$={start:H,end:j,line:R};return H=j,$}),K=0;function G(W,R){if(typeof W==="string")W=q.indexOf(W,R??0);if(W===-1)return;let j=V[K],$=W>=j.end?1:-1;while(j){if(Vq(j,W))return{line:Z+j.line,column:Y+W-j.start,character:W};K+=$,j=V[K]}}return G}var Xq=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function C9(q){return Xq.includes(q)||q.toLowerCase()==="!doctype"}var Wq=["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"];function h7(q){return Wq.includes(q)}var Gq=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var VK=[...Gq,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var zq=["$state","$state.raw","$derived","$derived.by"],XK=[...zq,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];var f7=/^[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;var w9=[],W0,X0="(unknown)",jq="<unknown>",V0,G0=[],Oq,Uq=!1,j8;function y7(q){V0=q,G0=V0.split(`
18
+ `);let Q=v7(V0,{offsetLine:1});j8=(Z)=>{let Y=Q(Z);if(!Y)throw Error("An impossible situation occurred");return Y}}var I9,P9=[],g7=new Map;function _7(q){Oq=!1,Uq=!1,jq=X0,V0="",G0=[],W0=(q.filename??X0).replace(/\\/g,"/"),I9=q.warning??(()=>!0),w9=[]}var Rq=/^\t+/;function S9(q){return q.replace(Rq,(Q)=>Q.split("\t").join(" "))}function Bq(q,Q){let Z=G0,Y=Math.max(0,q-2),H=Math.min(q+3,Z.length),V=String(H+1).length;return Z.slice(Y,H).map((K,G)=>{let W=Y+G===q,R=String(G+Y+1).padStart(V," ");if(W){let j=" ".repeat(V+2+S9(K.slice(0,Q)).length)+"^";return`${R}: ${S9(K)}
19
+ ${j}`}return`${R}: ${S9(K)}`}).join(`
20
+ `)}class S1{name="CompileDiagnostic";constructor(q,Q,Z){if(this.code=q,this.message=Q,W0!==X0)this.filename=W0;if(Z){if(this.position=Z,this.start=j8(Z[0]),this.end=j8(Z[1]),this.start&&this.end)this.frame=Bq(this.start.line-1,this.end.column)}}toString(){let q=`${this.code}: ${this.message}`;if(this.filename){if(q+=`
21
+ ${this.filename}`,this.start)q+=`:${this.start.line}:${this.start.column}`}if(this.frame)q+=`
22
+ ${this.frame}`;return q}toJSON(){return{code:this.code,message:this.message,filename:this.filename,start:this.start,end:this.end,position:this.position,frame:this.frame}}}class u7 extends S1{name="CompileWarning";constructor(q,Q,Z){super(q,Q,Z)}}function D1(q,Q,Z){let Y=P9;if(q)Y=g7.get(q)??P9;if(Y&&Y.at(-1)?.has(Q))return;let H=new u7(Q,Z,q&&q.start!==void 0?[q.start,q.end??q.start]:void 0);if(!I9(H))return;w9.push(H)}var m7=["a11y_accesskey","a11y_aria_activedescendant_has_tabindex","a11y_aria_attributes","a11y_autocomplete_valid","a11y_autofocus","a11y_click_events_have_key_events","a11y_consider_explicit_label","a11y_distracting_elements","a11y_figcaption_index","a11y_figcaption_parent","a11y_hidden","a11y_img_redundant_alt","a11y_incorrect_aria_attribute_type","a11y_incorrect_aria_attribute_type_boolean","a11y_incorrect_aria_attribute_type_id","a11y_incorrect_aria_attribute_type_idlist","a11y_incorrect_aria_attribute_type_integer","a11y_incorrect_aria_attribute_type_token","a11y_incorrect_aria_attribute_type_tokenlist","a11y_incorrect_aria_attribute_type_tristate","a11y_interactive_supports_focus","a11y_invalid_attribute","a11y_label_has_associated_control","a11y_media_has_caption","a11y_misplaced_role","a11y_misplaced_scope","a11y_missing_attribute","a11y_missing_content","a11y_mouse_events_have_key_events","a11y_no_abstract_role","a11y_no_interactive_element_to_noninteractive_role","a11y_no_noninteractive_element_interactions","a11y_no_noninteractive_element_to_interactive_role","a11y_no_noninteractive_tabindex","a11y_no_redundant_roles","a11y_no_static_element_interactions","a11y_positive_tabindex","a11y_role_has_required_aria_props","a11y_role_supports_aria_props","a11y_role_supports_aria_props_implicit","a11y_unknown_aria_attribute","a11y_unknown_role","bidirectional_control_characters","legacy_code","unknown_code","options_deprecated_accessors","options_deprecated_immutable","options_missing_custom_element","options_removed_enable_sourcemap","options_removed_hydratable","options_removed_loop_guard_timeout","options_renamed_ssr_dom","custom_element_props_identifier","export_let_unused","legacy_component_creation","non_reactive_update","perf_avoid_inline_class","perf_avoid_nested_class","reactive_declaration_invalid_placement","reactive_declaration_module_script_dependency","state_referenced_locally","store_rune_conflict","css_unused_selector","attribute_avoid_is","attribute_global_event_reference","attribute_illegal_colon","attribute_invalid_property_name","attribute_quoted","bind_invalid_each_rest","block_empty","component_name_lowercase","element_implicitly_closed","element_invalid_self_closing_tag","event_directive_deprecated","node_invalid_placement_ssr","script_context_deprecated","script_unknown_attribute","slot_element_deprecated","svelte_component_deprecated","svelte_element_invalid_this","svelte_self_deprecated"];function l7(q,Q,Z){D1(q,"legacy_code",`\`${Q}\` is no longer valid — please use \`${Z}\` instead
23
+ https://svelte.dev/e/legacy_code`)}function c7(q,Q,Z){D1(q,"unknown_code",`${Z?`\`${Q}\` is not a recognised code (did you mean \`${Z}\`?)`:`\`${Q}\` is not a recognised code`}
24
+ https://svelte.dev/e/unknown_code`)}function D9(q,Q,Z){D1(q,"element_implicitly_closed",`This element is implicitly closed by the following \`${Q}\`, which can cause an unexpected DOM structure. Add an explicit \`${Z}\` to avoid surprises.
25
+ https://svelte.dev/e/element_implicitly_closed`)}function d7(q){D1(q,"script_unknown_attribute","Unrecognised attribute — should be one of `generics`, `lang` or `module`. If this exists for a preprocessor, ensure that the preprocessor removes it\nhttps://svelte.dev/e/script_unknown_attribute")}function i7(q){D1(q,"svelte_element_invalid_this","`this` should be an `{expression}`. Using a string attribute value will cause an error in future versions of Svelte\nhttps://svelte.dev/e/svelte_element_invalid_this")}var Fq=/^\s*svelte-ignore\s/,p7={"non-top-level-reactive-declaration":"reactive_declaration_invalid_placement","module-script-reactive-declaration":"reactive_declaration_module_script","empty-block":"block_empty","avoid-is":"attribute_avoid_is","invalid-html-attribute":"attribute_invalid_property_name","a11y-structure":"a11y_figcaption_parent","illegal-attribute-character":"attribute_illegal_colon","invalid-rest-eachblock-binding":"bind_invalid_each_rest","unused-export-let":"export_let_unused"},N1=m7.concat(T7);function o7(q,Q,Z){let Y=Fq.exec(Q);if(!Y)return[];let H=Y[0].length;q+=H;let V=[];if(Z)for(let K of Q.slice(H).matchAll(/([\w$-]+)(,)?/gm)){let G=K[1];if(N1.includes(G))V.push(G);else{let W=p7[G]??G.replace(/-/g,"_"),R=q+K.index,j=R+G.length;if(N1.includes(W))l7({start:R,end:j},G,W);else{let $=A9(G,N1);c7({start:R,end:j},G,$)}}if(!K[2])break}else for(let K of Q.slice(H).matchAll(/[\w$-]+/gm)){let G=K[0];if(V.push(G),!N1.includes(G)){let W=p7[G]??G.replace(/-/g,"_");if(N1.includes(W))V.push(W)}}return V}function K1(q){let Q=q.at(0),Z=q.at(-1);if(Q?.type==="Text")if(!M9.test(Q.data))q.shift();else Q.data=Q.data.replace(P7,"");if(Z?.type==="Text")if(!M9.test(Z.data))q.pop();else Z.data=Z.data.replace(S7,"")}function n7(q,Q){return d8(Q,null,{_(Y,{next:H}){delete Y.metadata,H()},Root(Y,{visit:H}){let{instance:V,module:K,options:G}=Y;if(G?.__raw__){let j=Y.fragment.nodes.findIndex(($)=>G.end<=$.start);if(j===-1)j=Y.fragment.nodes.length;Y.fragment.nodes.splice(j,0,G.__raw__)}let W=null,R=null;if(Y.fragment.nodes.length>0){let j=Y.fragment.nodes.at(0),$=Y.fragment.nodes.at(-1);W=j.start,R=$.end;while(/\s/.test(q[W]))W+=1;while(/\s/.test(q[R-1]))R-=1}if(V)delete V.attributes;if(K)delete K.attributes;return{html:{type:"Fragment",start:W,end:R,children:Y.fragment.nodes.map((j)=>H(j))},instance:V,module:K,css:Q.css?H(Q.css):void 0,_comments:Q.comments?.length>0?Q.comments:void 0}},AnimateDirective(Y){return{...Y,type:"Animation"}},AwaitBlock(Y,{visit:H}){let V={type:"PendingBlock",start:null,end:null,children:Y.pending?.nodes.map((W)=>H(W))??[],skip:!0},K={type:"ThenBlock",start:null,end:null,children:Y.then?.nodes.map((W)=>H(W))??[],skip:!0},G={type:"CatchBlock",start:null,end:null,children:Y.catch?.nodes.map((W)=>H(W))??[],skip:!0};if(Y.pending){let W=Y.pending.nodes.at(0),R=Y.pending.nodes.at(-1);V.start=W?.start??q.indexOf("}",Y.expression.end)+1,V.end=R?.end??V.start,V.skip=!1}if(Y.then){let W=Y.then.nodes.at(0),R=Y.then.nodes.at(-1);K.start=V.end??W?.start??q.indexOf("}",Y.expression.end)+1,K.end=R?.end??q.lastIndexOf("}",V.end??Y.expression.end)+1,K.skip=!1}if(Y.catch){let W=Y.catch.nodes.at(0),R=Y.catch.nodes.at(-1);G.start=K.end??V.end??W?.start??q.indexOf("}",Y.expression.end)+1,G.end=R?.end??q.lastIndexOf("}",K.end??V.end??Y.expression.end)+1,G.skip=!1}return{type:"AwaitBlock",start:Y.start,end:Y.end,expression:Y.expression,value:Y.value,error:Y.error,pending:V,then:K,catch:G}},BindDirective(Y){return{...Y,type:"Binding"}},ClassDirective(Y){return{...Y,type:"Class"}},Comment(Y){return{...Y,ignores:o7(Y.start,Y.data,!1)}},ComplexSelector(Y,{next:H}){H();let V=[];for(let K of Y.children){if(K.combinator)V.push(K.combinator);V.push(...K.selectors)}return{type:"Selector",start:Y.start,end:Y.end,children:V}},Component(Y,{visit:H}){return{type:"InlineComponent",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},ConstTag(Y){if(Y.expression!==void 0)return Y;let H=Y,{id:V}={...H.declaration.declarations[0]};return delete V.typeAnnotation,{type:"ConstTag",start:H.start,end:Y.end,expression:{type:"AssignmentExpression",start:(H.declaration.start??0)+6,end:H.declaration.end??0,operator:"=",left:V,right:H.declaration.declarations[0].init}}},DeclarationTag(Y){return Y},KeyBlock(Y,{visit:H}){return K1(Y.fragment.nodes),{type:"KeyBlock",start:Y.start,end:Y.end,expression:Y.expression,children:Y.fragment.nodes.map((V)=>H(V))}},EachBlock(Y,{visit:H}){let V=void 0;if(Y.fallback){let K=Y.fallback.nodes.at(0),G=q.lastIndexOf("{",Y.end-1),W=K?.start??G;K1(Y.fallback.nodes),V={type:"ElseBlock",start:W,end:G,children:Y.fallback.nodes.map((R)=>H(R))}}return K1(Y.body.nodes),{type:"EachBlock",start:Y.start,end:Y.end,children:Y.body.nodes.map((K)=>H(K)),context:Y.context,expression:Y.expression,index:Y.index,key:Y.key,else:V}},ExpressionTag(Y,{path:H}){let V=H.at(-1);if(V?.type==="Attribute"){if(q[V.start]==="{")return{type:"AttributeShorthand",start:Y.start,end:Y.end,expression:Y.expression}}return{type:"MustacheTag",start:Y.start,end:Y.end,expression:Y.expression}},HtmlTag(Y){return{...Y,type:"RawMustacheTag"}},IfBlock(Y,{visit:H}){let V=void 0;if(Y.alternate){let G=Y.alternate.nodes;if(G.length===1&&G[0].type==="IfBlock"&&G[0].elseif)G=G[0].consequent.nodes;let W=q.lastIndexOf("{",Y.end-1),R=G.at(0)?.start??W;K1(Y.alternate.nodes),V={type:"ElseBlock",start:R,end:W,children:Y.alternate.nodes.map((j)=>H(j))}}let K=Y.elseif?Y.consequent.nodes[0]?.start??q.lastIndexOf("{",Y.end-1):Y.start;return K1(Y.consequent.nodes),{type:"IfBlock",start:K,end:Y.end,expression:Y.test,children:Y.consequent.nodes.map((G)=>H(G)),else:V,elseif:Y.elseif?!0:void 0}},OnDirective(Y){return{...Y,type:"EventHandler"}},SnippetBlock(Y,{visit:H}){return K1(Y.body.nodes),{type:"SnippetBlock",start:Y.start,end:Y.end,expression:Y.expression,parameters:Y.parameters,children:Y.body.nodes.map((V)=>H(V)),typeParams:Y.typeParams}},SvelteBoundary(Y,{visit:H}){return K1(Y.fragment.nodes),{type:"SvelteBoundary",name:"svelte:boundary",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},RegularElement(Y,{visit:H}){return{type:"Element",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SlotElement(Y,{visit:H}){return{type:"Slot",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},Attribute(Y,{visit:H,next:V,path:K}){if(Y.value!==!0&&!Array.isArray(Y.value)){K.push(Y);let G=[H(Y.value)];return K.pop(),{...Y,value:G}}else return V()},StyleDirective(Y,{visit:H,next:V,path:K}){if(Y.value!==!0&&!Array.isArray(Y.value)){K.push(Y);let G=[H(Y.value)];return K.pop(),{...Y,value:G}}else return V()},SpreadAttribute(Y){return{...Y,type:"Spread"}},StyleSheet(Y,H){return{...Y,...H.next(),type:"Style"}},SvelteBody(Y,{visit:H}){return{type:"Body",name:"svelte:body",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SvelteComponent(Y,{visit:H}){return{type:"InlineComponent",name:"svelte:component",start:Y.start,end:Y.end,expression:Y.expression,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SvelteDocument(Y,{visit:H}){return{type:"Document",name:"svelte:document",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SvelteElement(Y,{visit:H}){let V=Y.tag;if(V.type==="Literal"&&typeof V.value==="string"&&q[Y.tag.start-1]!=="{")V=V.value;return{type:"Element",name:"svelte:element",start:Y.start,end:Y.end,tag:V,attributes:Y.attributes.map((K)=>H(K)),children:Y.fragment.nodes.map((K)=>H(K))}},SvelteFragment(Y,{visit:H}){return{type:"SlotTemplate",name:"svelte:fragment",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SvelteHead(Y,{visit:H}){return{type:"Head",name:"svelte:head",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SvelteOptions(Y,{visit:H}){return{type:"Options",name:"svelte:options",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V))}},SvelteSelf(Y,{visit:H}){return{type:"InlineComponent",name:"svelte:self",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SvelteWindow(Y,{visit:H}){return{type:"Window",name:"svelte:window",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},Text(Y,{path:H}){let V=H.at(-1);if(V?.type==="RegularElement"&&V.name==="style")return{type:"Text",start:Y.start,end:Y.end,data:Y.data}},TitleElement(Y,{visit:H}){return{type:"Title",name:"title",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},TransitionDirective(Y){return{...Y,type:"Transition"}},UseDirective(Y){return{...Y,type:"Action"}},LetDirective(Y){return{...Y,type:"Let"}}})}var w0={};r4(w0,{version:()=>f2,tokenizer:()=>QQ,tokTypes:()=>O,tokContexts:()=>Z8,parseExpressionAt:()=>qQ,parse:()=>eq,nonASCIIwhitespace:()=>f9,lineBreakG:()=>Z2,lineBreak:()=>B8,keywordTypes:()=>F0,isNewLine:()=>X1,isIdentifierStart:()=>$8,isIdentifierChar:()=>h8,getLineInfo:()=>y9,defaultOptions:()=>j0,TokenType:()=>s,Token:()=>C0,TokContext:()=>D8,SourceLocation:()=>k1,Position:()=>O1,Parser:()=>H8,Node:()=>v1});var Mq=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],e7=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],$q="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",q2="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",T9={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"},b9="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",Lq={5:b9,"5module":b9+" export import",6:b9+" const class extends export import super"},Q2=/^in(stanceof)?$/,Aq=new RegExp("["+q2+"]"),Cq=new RegExp("["+q2+$q+"]");function k9(q,Q){var Z=65536;for(var Y=0;Y<Q.length;Y+=2){if(Z+=Q[Y],Z>q)return!1;if(Z+=Q[Y+1],Z>=q)return!0}return!1}function $8(q,Q){if(q<65)return q===36;if(q<91)return!0;if(q<97)return q===95;if(q<123)return!0;if(q<=65535)return q>=170&&Aq.test(String.fromCharCode(q));if(Q===!1)return!1;return k9(q,e7)}function h8(q,Q){if(q<48)return q===36;if(q<58)return!0;if(q<65)return!1;if(q<91)return!0;if(q<97)return q===95;if(q<123)return!0;if(q<=65535)return q>=170&&Cq.test(String.fromCharCode(q));if(Q===!1)return!1;return k9(q,e7)||k9(q,Mq)}var s=function(Q,Z){if(Z===void 0)Z={};this.label=Q,this.keyword=Z.keyword,this.beforeExpr=!!Z.beforeExpr,this.startsExpr=!!Z.startsExpr,this.isLoop=!!Z.isLoop,this.isAssign=!!Z.isAssign,this.prefix=!!Z.prefix,this.postfix=!!Z.postfix,this.binop=Z.binop||null,this.updateContext=null};function P8(q,Q){return new s(q,{beforeExpr:!0,binop:Q})}var S8={beforeExpr:!0},F8={startsExpr:!0},F0={};function n(q,Q){if(Q===void 0)Q={};return Q.keyword=q,F0[q]=new s(q,Q)}var O={num:new s("num",F8),regexp:new s("regexp",F8),string:new s("string",F8),name:new s("name",F8),privateId:new s("privateId",F8),eof:new s("eof"),bracketL:new s("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new s("]"),braceL:new s("{",{beforeExpr:!0,startsExpr:!0}),braceR:new s("}"),parenL:new s("(",{beforeExpr:!0,startsExpr:!0}),parenR:new s(")"),comma:new s(",",S8),semi:new s(";",S8),colon:new s(":",S8),dot:new s("."),question:new s("?",S8),questionDot:new s("?."),arrow:new s("=>",S8),template:new s("template"),invalidTemplate:new s("invalidTemplate"),ellipsis:new s("...",S8),backQuote:new s("`",F8),dollarBraceL:new s("${",{beforeExpr:!0,startsExpr:!0}),eq:new s("=",{beforeExpr:!0,isAssign:!0}),assign:new s("_=",{beforeExpr:!0,isAssign:!0}),incDec:new s("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new s("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:P8("||",1),logicalAND:P8("&&",2),bitwiseOR:P8("|",3),bitwiseXOR:P8("^",4),bitwiseAND:P8("&",5),equality:P8("==/!=/===/!==",6),relational:P8("</>/<=/>=",7),bitShift:P8("<</>>/>>>",8),plusMin:new s("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:P8("%",10),star:P8("*",10),slash:P8("/",10),starstar:new s("**",{beforeExpr:!0}),coalesce:P8("??",1),_break:n("break"),_case:n("case",S8),_catch:n("catch"),_continue:n("continue"),_debugger:n("debugger"),_default:n("default",S8),_do:n("do",{isLoop:!0,beforeExpr:!0}),_else:n("else",S8),_finally:n("finally"),_for:n("for",{isLoop:!0}),_function:n("function",F8),_if:n("if"),_return:n("return",S8),_switch:n("switch"),_throw:n("throw",S8),_try:n("try"),_var:n("var"),_const:n("const"),_while:n("while",{isLoop:!0}),_with:n("with"),_new:n("new",{beforeExpr:!0,startsExpr:!0}),_this:n("this",F8),_super:n("super",F8),_class:n("class",F8),_extends:n("extends",S8),_export:n("export"),_import:n("import",F8),_null:n("null",F8),_true:n("true",F8),_false:n("false",F8),_in:n("in",{beforeExpr:!0,binop:7}),_instanceof:n("instanceof",{beforeExpr:!0,binop:7}),_typeof:n("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:n("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:n("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},B8=/\r\n?|\n|\u2028|\u2029/,Z2=new RegExp(B8.source,"g");function X1(q){return q===10||q===13||q===8232||q===8233}function Y2(q,Q,Z){if(Z===void 0)Z=q.length;for(var Y=Q;Y<Z;Y++){var H=q.charCodeAt(Y);if(X1(H))return Y<Z-1&&H===13&&q.charCodeAt(Y+1)===10?Y+2:Y+1}return-1}var f9=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,W8=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,H2=Object.prototype,wq=H2.hasOwnProperty,Iq=H2.toString,U1=Object.hasOwn||function(q,Q){return wq.call(q,Q)},s7=Array.isArray||function(q){return Iq.call(q)==="[object Array]"},a7=Object.create(null);function r8(q){return a7[q]||(a7[q]=new RegExp("^(?:"+q.replace(/ /g,"|")+")$"))}function i8(q){if(q<=65535)return String.fromCharCode(q);return q-=65536,String.fromCharCode((q>>10)+55296,(q&1023)+56320)}var Pq=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,O1=function(Q,Z){this.line=Q,this.column=Z};O1.prototype.offset=function(Q){return new O1(this.line,this.column+Q)};var k1=function(Q,Z,Y){if(this.start=Z,this.end=Y,Q.sourceFile!==null)this.source=Q.sourceFile};function y9(q,Q){for(var Z=1,Y=0;;){var H=Y2(q,Y,Q);if(H<0)return new O1(Z,Q-Y);++Z,Y=H}}var j0={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,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},r7=!1;function Sq(q){var Q={};for(var Z in j0)Q[Z]=q&&U1(q,Z)?q[Z]:j0[Z];if(Q.ecmaVersion==="latest")Q.ecmaVersion=1e8;else if(Q.ecmaVersion==null){if(!r7&&typeof console==="object"&&console.warn)r7=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
26
+ Defaulting to 2020, but this will stop working in the future.`);Q.ecmaVersion=11}else if(Q.ecmaVersion>=2015)Q.ecmaVersion-=2009;if(Q.allowReserved==null)Q.allowReserved=Q.ecmaVersion<5;if(!q||q.allowHashBang==null)Q.allowHashBang=Q.ecmaVersion>=14;if(s7(Q.onToken)){var Y=Q.onToken;Q.onToken=function(H){return Y.push(H)}}if(s7(Q.onComment))Q.onComment=Dq(Q,Q.onComment);if(Q.sourceType==="commonjs"&&Q.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return Q}function Dq(q,Q){return function(Z,Y,H,V,K,G){var W={type:Z?"Block":"Line",value:Y,start:H,end:V};if(q.locations)W.loc=new k1(this,K,G);if(q.ranges)W.range=[H,V];Q.push(W)}}var V1=1,W1=2,g9=4,J2=8,_9=16,K2=32,M0=64,V2=128,G1=256,E1=512,X2=1024,$0=V1|W1|G1;function x9(q,Q){return W1|(q?g9:0)|(Q?J2:0)}var O0=0,u9=1,o8=2,W2=3,G2=4,z2=5,H8=function(Q,Z,Y){this.options=Q=Sq(Q),this.sourceFile=Q.sourceFile,this.keywords=r8(Lq[Q.ecmaVersion>=6?6:Q.sourceType==="module"?"5module":5]);var H="";if(Q.allowReserved!==!0){if(H=T9[Q.ecmaVersion>=6?6:Q.ecmaVersion===5?5:3],Q.sourceType==="module")H+=" await"}this.reservedWords=r8(H);var V=(H?H+" ":"")+T9.strict;if(this.reservedWordsStrict=r8(V),this.reservedWordsStrictBind=r8(V+" "+T9.strictBind),this.input=String(Z),this.containsEsc=!1,Y)this.pos=Y,this.lineStart=this.input.lastIndexOf(`
27
+ `,Y-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(B8).length;else this.pos=this.lineStart=0,this.curLine=1;if(this.type=O.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=Q.sourceType==="module",this.strict=this.inModule||Q.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&&Q.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2);this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?W1:V1),this.regexpState=null,this.privateNameStack=[]},T8={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}};H8.prototype.parse=function(){var Q=this,Z=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return Q.parseTopLevel(Z)})};T8.inFunction.get=function(){return(this.currentVarScope().flags&W1)>0};T8.inGenerator.get=function(){return(this.currentVarScope().flags&J2)>0};T8.inAsync.get=function(){return(this.currentVarScope().flags&g9)>0};T8.canAwait.get=function(){for(var q=this.scopeStack.length-1;q>=0;q--){var Q=this.scopeStack[q],Z=Q.flags;if(Z&(G1|E1))return!1;if(Z&W1)return(Z&g9)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};T8.allowReturn.get=function(){if(this.inFunction)return!0;if(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&V1)return!0;return!1};T8.allowSuper.get=function(){var q=this.currentThisScope(),Q=q.flags;return(Q&M0)>0||this.options.allowSuperOutsideMethod};T8.allowDirectSuper.get=function(){return(this.currentThisScope().flags&V2)>0};T8.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};T8.allowNewDotTarget.get=function(){for(var q=this.scopeStack.length-1;q>=0;q--){var Q=this.scopeStack[q],Z=Q.flags;if(Z&(G1|E1)||Z&W1&&!(Z&_9))return!0}return!1};T8.allowUsing.get=function(){var q=this.currentScope(),Q=q.flags;if(Q&X2)return!1;if(!this.inModule&&Q&V1)return!1;return!0};T8.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&G1)>0};H8.extend=function(){var Q=[],Z=arguments.length;while(Z--)Q[Z]=arguments[Z];var Y=this;for(var H=0;H<Q.length;H++)Y=Q[H](Y);return Y};H8.parse=function(Q,Z){return new this(Z,Q).parse()};H8.parseExpressionAt=function(Q,Z,Y){var H=new this(Y,Q,Z);return H.nextToken(),H.parseExpression()};H8.tokenizer=function(Q,Z){return new this(Z,Q)};Object.defineProperties(H8.prototype,T8);var R8=H8.prototype,Nq=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;R8.strictDirective=function(q){if(this.options.ecmaVersion<5)return!1;for(;;){W8.lastIndex=q,q+=W8.exec(this.input)[0].length;var Q=Nq.exec(this.input.slice(q));if(!Q)return!1;if((Q[1]||Q[2])==="use strict"){W8.lastIndex=q+Q[0].length;var Z=W8.exec(this.input),Y=Z.index+Z[0].length,H=this.input.charAt(Y);return H===";"||H==="}"||B8.test(Z[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(H)||H==="!"&&this.input.charAt(Y+1)==="=")}if(q+=Q[0].length,W8.lastIndex=q,q+=W8.exec(this.input)[0].length,this.input[q]===";")q++}};R8.eat=function(q){if(this.type===q)return this.next(),!0;else return!1};R8.isContextual=function(q){return this.type===O.name&&this.value===q&&!this.containsEsc};R8.eatContextual=function(q){if(!this.isContextual(q))return!1;return this.next(),!0};R8.catchStackOverflow=function(q){try{return q()}catch(Q){if(Q instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(Q.message)||/\btoo much recursion\b/i.test(Q.message)))this.raise(this.start,"Not enough stack space to parse input");else throw Q}};R8.expectContextual=function(q){if(!this.eatContextual(q))this.unexpected()};R8.canInsertSemicolon=function(){return this.type===O.eof||this.type===O.braceR||B8.test(this.input.slice(this.lastTokEnd,this.start))};R8.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};R8.semicolon=function(){if(!this.eat(O.semi)&&!this.insertSemicolon())this.unexpected()};R8.afterTrailingComma=function(q,Q){if(this.type===q){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!Q)this.next();return!0}};R8.expect=function(q){this.eat(q)||this.unexpected()};R8.unexpected=function(q){this.raise(q!=null?q:this.start,"Unexpected token")};var L0=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};R8.checkPatternErrors=function(q,Q){if(!q)return;if(q.trailingComma>-1)this.raiseRecoverable(q.trailingComma,"Comma is not permitted after the rest element");var Z=Q?q.parenthesizedAssign:q.parenthesizedBind;if(Z>-1)this.raiseRecoverable(Z,Q?"Assigning to rvalue":"Parenthesized pattern")};R8.checkExpressionErrors=function(q,Q){if(!q)return!1;var{shorthandAssign:Z,doubleProto:Y}=q;if(!Q)return Z>=0||Y>=0;if(Z>=0)this.raise(Z,"Shorthand property assignments are valid only in destructuring patterns");if(Y>=0)this.raiseRecoverable(Y,"Redefinition of __proto__ property")};R8.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")};R8.isSimpleAssignTarget=function(q){if(q.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(q.expression);return q.type==="Identifier"||q.type==="MemberExpression"};var h=H8.prototype;h.parseTopLevel=function(q){var Q=Object.create(null);if(!q.body)q.body=[];while(this.type!==O.eof){var Z=this.parseStatement(null,!0,Q);q.body.push(Z)}if(this.inModule)for(var Y=0,H=Object.keys(this.undefinedExports);Y<H.length;Y+=1){var V=H[Y];this.raiseRecoverable(this.undefinedExports[V].start,"Export '"+V+"' is not defined")}return this.adaptDirectivePrologue(q.body),this.next(),q.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(q,"Program")};var m9={kind:"loop"},Tq={kind:"switch"};h.isLet=function(q){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;W8.lastIndex=this.pos;var Q=W8.exec(this.input),Z=this.pos+Q[0].length,Y=this.fullCharCodeAt(Z);if(Y===91||Y===92)return!0;if(q)return!1;if(Y===123)return!0;if($8(Y)){var H=Z;do Z+=Y<=65535?1:2;while(h8(Y=this.fullCharCodeAt(Z)));if(Y===92)return!0;var V=this.input.slice(H,Z);if(!Q2.test(V))return!0}return!1};h.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;W8.lastIndex=this.pos;var q=W8.exec(this.input),Q=this.pos+q[0].length,Z;return!B8.test(this.input.slice(this.pos,Q))&&this.input.slice(Q,Q+8)==="function"&&(Q+8===this.input.length||!(h8(Z=this.fullCharCodeAt(Q+8))||Z===92))};h.isUsingKeyword=function(q,Q){if(this.options.ecmaVersion<17||!this.isContextual(q?"await":"using"))return!1;W8.lastIndex=this.pos;var Z=W8.exec(this.input),Y=this.pos+Z[0].length;if(B8.test(this.input.slice(this.pos,Y)))return!1;if(q){var H=Y+5,V;if(this.input.slice(Y,H)!=="using"||H===this.input.length||h8(V=this.fullCharCodeAt(H))||V===92)return!1;W8.lastIndex=H;var K=W8.exec(this.input);if(Y=H+K[0].length,K&&B8.test(this.input.slice(H,Y)))return!1}var G=this.fullCharCodeAt(Y);if(!$8(G)&&G!==92)return!1;var W=Y;do Y+=G<=65535?1:2;while(h8(G=this.fullCharCodeAt(Y)));if(G===92)return!0;var R=this.input.slice(W,Y);if(Q2.test(R))return!1;if(Q&&!q&&R==="of"){W8.lastIndex=Y;var j=W8.exec(this.input);if(Y=Y+j[0].length,this.input.charCodeAt(Y)!==61||(G=this.input.charCodeAt(Y+1))===61||G===62)return!1}return!0};h.isAwaitUsing=function(q){return this.isUsingKeyword(!0,q)};h.isUsing=function(q){return this.isUsingKeyword(!1,q)};h.parseStatement=function(q,Q,Z){var Y=this.type,H=this.startNode(),V;if(this.isLet(q))Y=O._var,V="let";switch(Y){case O._break:case O._continue:return this.parseBreakContinueStatement(H,Y.keyword);case O._debugger:return this.parseDebuggerStatement(H);case O._do:return this.parseDoStatement(H);case O._for:return this.parseForStatement(H);case O._function:if(q&&(this.strict||q!=="if"&&q!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(H,!1,!q);case O._class:if(q)this.unexpected();return this.parseClass(H,!0);case O._if:return this.parseIfStatement(H);case O._return:return this.parseReturnStatement(H);case O._switch:return this.parseSwitchStatement(H);case O._throw:return this.parseThrowStatement(H);case O._try:return this.parseTryStatement(H);case O._const:case O._var:if(V=V||this.value,q&&V!=="var")this.unexpected();return this.parseVarStatement(H,V);case O._while:return this.parseWhileStatement(H);case O._with:return this.parseWithStatement(H);case O.braceL:return this.parseBlock(!0,H);case O.semi:return this.parseEmptyStatement(H);case O._export:case O._import:if(this.options.ecmaVersion>10&&Y===O._import){W8.lastIndex=this.pos;var K=W8.exec(this.input),G=this.pos+K[0].length,W=this.input.charCodeAt(G);if(W===40||W===46)return this.parseExpressionStatement(H,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!Q)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 Y===O._import?this.parseImport(H):this.parseExport(H,Z);default:if(this.isAsyncFunction()){if(q)this.unexpected();return this.next(),this.parseFunctionStatement(H,!0,!q)}var R=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(R){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(q)this.raise(this.start,"Using declaration is not allowed in single-statement positions");if(R==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.next(),this.parseVar(H,!1,R),this.semicolon(),this.finishNode(H,"VariableDeclaration")}var j=this.value,$=this.parseExpression();if(Y===O.name&&$.type==="Identifier"&&this.eat(O.colon))return this.parseLabeledStatement(H,j,$,q);else return this.parseExpressionStatement(H,$)}};h.parseBreakContinueStatement=function(q,Q){var Z=Q==="break";if(this.next(),this.eat(O.semi)||this.insertSemicolon())q.label=null;else if(this.type!==O.name)this.unexpected();else q.label=this.parseIdent(),this.semicolon();var Y=0;for(;Y<this.labels.length;++Y){var H=this.labels[Y];if(q.label==null||H.name===q.label.name){if(H.kind!=null&&(Z||H.kind==="loop"))break;if(q.label&&Z)break}}if(Y===this.labels.length)this.raise(q.start,"Unsyntactic "+Q);return this.finishNode(q,Z?"BreakStatement":"ContinueStatement")};h.parseDebuggerStatement=function(q){return this.next(),this.semicolon(),this.finishNode(q,"DebuggerStatement")};h.parseDoStatement=function(q){if(this.next(),this.labels.push(m9),q.body=this.parseStatement("do"),this.labels.pop(),this.expect(O._while),q.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(O.semi);else this.semicolon();return this.finishNode(q,"DoWhileStatement")};h.parseForStatement=function(q){this.next();var Q=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(m9),this.enterScope(0),this.expect(O.parenL),this.type===O.semi){if(Q>-1)this.unexpected(Q);return this.parseFor(q,null)}var Z=this.isLet();if(this.type===O._var||this.type===O._const||Z){var Y=this.startNode(),H=Z?"let":this.value;return this.next(),this.parseVar(Y,!0,H),this.finishNode(Y,"VariableDeclaration"),this.parseForAfterInit(q,Y,Q)}var V=this.isContextual("let"),K=!1,G=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(G){var W=this.startNode();if(this.next(),G==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.parseVar(W,!0,G),this.finishNode(W,"VariableDeclaration"),this.parseForAfterInit(q,W,Q)}var R=this.containsEsc,j=new L0,$=this.start,M=Q>-1?this.parseExprSubscripts(j,"await"):this.parseExpression(!0,j);if(this.type===O._in||(K=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(Q>-1){if(this.type===O._in)this.unexpected(Q);q.await=!0}else if(K&&this.options.ecmaVersion>=8){if(M.start===$&&!R&&M.type==="Identifier"&&M.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)q.await=!1}if(V&&K)this.raise(M.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(M,!1,j),this.checkLValPattern(M),this.parseForIn(q,M)}else this.checkExpressionErrors(j,!0);if(Q>-1)this.unexpected(Q);return this.parseFor(q,M)};h.parseForAfterInit=function(q,Q,Z){if((this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&Q.declarations.length===1){if(this.type===O._in){if((Q.kind==="using"||Q.kind==="await using")&&!Q.declarations[0].init)this.raise(this.start,"Using declaration is not allowed in for-in loops");if(this.options.ecmaVersion>=9&&Z>-1)this.unexpected(Z)}else if(this.options.ecmaVersion>=9)q.await=Z>-1;return this.parseForIn(q,Q)}if(Z>-1)this.unexpected(Z);return this.parseFor(q,Q)};h.parseFunctionStatement=function(q,Q,Z){return this.next(),this.parseFunction(q,b1|(Z?0:E9),!1,Q)};h.parseIfStatement=function(q){return this.next(),q.test=this.parseParenExpression(),q.consequent=this.parseStatement("if"),q.alternate=this.eat(O._else)?this.parseStatement("if"):null,this.finishNode(q,"IfStatement")};h.parseReturnStatement=function(q){if(!this.allowReturn)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(O.semi)||this.insertSemicolon())q.argument=null;else q.argument=this.parseExpression(),this.semicolon();return this.finishNode(q,"ReturnStatement")};h.parseSwitchStatement=function(q){this.next(),q.discriminant=this.parseParenExpression(),q.cases=[],this.expect(O.braceL),this.labels.push(Tq),this.enterScope(X2);var Q;for(var Z=!1;this.type!==O.braceR;)if(this.type===O._case||this.type===O._default){var Y=this.type===O._case;if(Q)this.finishNode(Q,"SwitchCase");if(q.cases.push(Q=this.startNode()),Q.consequent=[],this.next(),Y)Q.test=this.parseExpression();else{if(Z)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");Z=!0,Q.test=null}this.expect(O.colon)}else{if(!Q)this.unexpected();Q.consequent.push(this.parseStatement(null))}if(this.exitScope(),Q)this.finishNode(Q,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(q,"SwitchStatement")};h.parseThrowStatement=function(q){if(this.next(),B8.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return q.argument=this.parseExpression(),this.semicolon(),this.finishNode(q,"ThrowStatement")};var bq=[];h.parseCatchClauseParam=function(){var q=this.parseBindingAtom(),Q=q.type==="Identifier";return this.enterScope(Q?K2:0),this.checkLValPattern(q,Q?G2:o8),this.expect(O.parenR),q};h.parseTryStatement=function(q){if(this.next(),q.block=this.parseBlock(),q.handler=null,this.type===O._catch){var Q=this.startNode();if(this.next(),this.eat(O.parenL))Q.param=this.parseCatchClauseParam();else{if(this.options.ecmaVersion<10)this.unexpected();Q.param=null,this.enterScope(0)}Q.body=this.parseBlock(!1),this.exitScope(),q.handler=this.finishNode(Q,"CatchClause")}if(q.finalizer=this.eat(O._finally)?this.parseBlock():null,!q.handler&&!q.finalizer)this.raise(q.start,"Missing catch or finally clause");return this.finishNode(q,"TryStatement")};h.parseVarStatement=function(q,Q,Z){return this.next(),this.parseVar(q,!1,Q,Z),this.semicolon(),this.finishNode(q,"VariableDeclaration")};h.parseWhileStatement=function(q){return this.next(),q.test=this.parseParenExpression(),this.labels.push(m9),q.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(q,"WhileStatement")};h.parseWithStatement=function(q){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),q.object=this.parseParenExpression(),q.body=this.parseStatement("with"),this.finishNode(q,"WithStatement")};h.parseEmptyStatement=function(q){return this.next(),this.finishNode(q,"EmptyStatement")};h.parseLabeledStatement=function(q,Q,Z,Y){for(var H=0,V=this.labels;H<V.length;H+=1){var K=V[H];if(K.name===Q)this.raise(Z.start,"Label '"+Q+"' is already declared")}var G=this.type.isLoop?"loop":this.type===O._switch?"switch":null;for(var W=this.labels.length-1;W>=0;W--){var R=this.labels[W];if(R.statementStart===q.start)R.statementStart=this.start,R.kind=G;else break}return this.labels.push({name:Q,kind:G,statementStart:this.start}),q.body=this.parseStatement(Y?Y.indexOf("label")===-1?Y+"label":Y:"label"),this.labels.pop(),q.label=Z,this.finishNode(q,"LabeledStatement")};h.parseExpressionStatement=function(q,Q){return q.expression=Q,this.semicolon(),this.finishNode(q,"ExpressionStatement")};h.parseBlock=function(q,Q,Z){if(q===void 0)q=!0;if(Q===void 0)Q=this.startNode();if(Q.body=[],this.expect(O.braceL),q)this.enterScope(0);while(this.type!==O.braceR){var Y=this.parseStatement(null);Q.body.push(Y)}if(Z)this.strict=!1;if(this.next(),q)this.exitScope();return this.finishNode(Q,"BlockStatement")};h.parseFor=function(q,Q){return q.init=Q,this.expect(O.semi),q.test=this.type===O.semi?null:this.parseExpression(),this.expect(O.semi),q.update=this.type===O.parenR?null:this.parseExpression(),this.expect(O.parenR),q.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(q,"ForStatement")};h.parseForIn=function(q,Q){var Z=this.type===O._in;if(this.next(),Q.type==="VariableDeclaration"&&Q.declarations[0].init!=null&&(!Z||this.options.ecmaVersion<8||this.strict||Q.kind!=="var"||Q.declarations[0].id.type!=="Identifier"))this.raise(Q.start,(Z?"for-in":"for-of")+" loop variable declaration may not have an initializer");return q.left=Q,q.right=Z?this.parseExpression():this.parseMaybeAssign(),this.expect(O.parenR),q.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(q,Z?"ForInStatement":"ForOfStatement")};h.parseVar=function(q,Q,Z,Y){q.declarations=[],q.kind=Z;for(;;){var H=this.startNode();if(this.parseVarId(H,Z),this.eat(O.eq))H.init=this.parseMaybeAssign(Q);else if(!Y&&Z==="const"&&!(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!Y&&(Z==="using"||Z==="await using")&&this.options.ecmaVersion>=17&&this.type!==O._in&&!this.isContextual("of"))this.raise(this.lastTokEnd,"Missing initializer in "+Z+" declaration");else if(!Y&&H.id.type!=="Identifier"&&!(Q&&(this.type===O._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else H.init=null;if(q.declarations.push(this.finishNode(H,"VariableDeclarator")),!this.eat(O.comma))break}return q};h.parseVarId=function(q,Q){q.id=Q==="using"||Q==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(q.id,Q==="var"?u9:o8,!1)};var b1=1,E9=2,j2=4;h.parseFunction=function(q,Q,Z,Y,H){if(this.initFunction(q),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!Y){if(this.type===O.star&&Q&E9)this.unexpected();q.generator=this.eat(O.star)}if(this.options.ecmaVersion>=8)q.async=!!Y;if(Q&b1){if(q.id=Q&j2&&this.type!==O.name?null:this.parseIdent(),q.id&&!(Q&E9))this.checkLValSimple(q.id,this.strict||q.generator||q.async?this.treatFunctionsAsVar?u9:o8:W2)}var V=this.yieldPos,K=this.awaitPos,G=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(x9(q.async,q.generator)),!(Q&b1))q.id=this.type===O.name?this.parseIdent():null;return this.parseFunctionParams(q),this.parseFunctionBody(q,Z,!1,H),this.yieldPos=V,this.awaitPos=K,this.awaitIdentPos=G,this.finishNode(q,Q&b1?"FunctionDeclaration":"FunctionExpression")};h.parseFunctionParams=function(q){this.expect(O.parenL),q.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};h.parseClass=function(q,Q){this.next();var Z=this.strict;this.strict=!0,this.parseClassId(q,Q),this.parseClassSuper(q);var Y=this.enterClassBody(),H=this.startNode(),V=!1;H.body=[],this.expect(O.braceL);while(this.type!==O.braceR){var K=this.parseClassElement(q.superClass!==null);if(K){if(H.body.push(K),K.type==="MethodDefinition"&&K.kind==="constructor"){if(V)this.raiseRecoverable(K.start,"Duplicate constructor in the same class");V=!0}else if(K.key&&K.key.type==="PrivateIdentifier"&&kq(Y,K))this.raiseRecoverable(K.key.start,"Identifier '#"+K.key.name+"' has already been declared")}}return this.strict=Z,this.next(),q.body=this.finishNode(H,"ClassBody"),this.exitClassBody(),this.finishNode(q,Q?"ClassDeclaration":"ClassExpression")};h.parseClassElement=function(q){if(this.eat(O.semi))return null;var Q=this.options.ecmaVersion,Z=this.startNode(),Y="",H=!1,V=!1,K="method",G=!1;if(this.eatContextual("static")){if(Q>=13&&this.eat(O.braceL))return this.parseClassStaticBlock(Z),Z;if(this.isClassElementNameStart()||this.type===O.star)G=!0;else Y="static"}if(Z.static=G,!Y&&Q>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===O.star)&&!this.canInsertSemicolon())V=!0;else Y="async";if(!Y&&(Q>=9||!V)&&this.eat(O.star))H=!0;if(!Y&&!V&&!H){var W=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())K=W;else Y=W}if(Y)Z.computed=!1,Z.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),Z.key.name=Y,this.finishNode(Z.key,"Identifier");else this.parseClassElementName(Z);if(Q<13||this.type===O.parenL||K!=="method"||H||V){var R=!Z.static&&U0(Z,"constructor"),j=R&&q;if(R&&K!=="method")this.raise(Z.key.start,"Constructor can't have get/set modifier");Z.kind=R?"constructor":K,this.parseClassMethod(Z,H,V,j)}else this.parseClassField(Z);return Z};h.isClassElementNameStart=function(){return this.type===O.name||this.type===O.privateId||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword};h.parseClassElementName=function(q){if(this.type===O.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");q.computed=!1,q.key=this.parsePrivateIdent()}else this.parsePropertyName(q)};h.parseClassMethod=function(q,Q,Z,Y){var H=q.key;if(q.kind==="constructor"){if(Q)this.raise(H.start,"Constructor can't be a generator");if(Z)this.raise(H.start,"Constructor can't be an async method")}else if(q.static&&U0(q,"prototype"))this.raise(H.start,"Classes may not have a static property named prototype");var V=q.value=this.parseMethod(Q,Z,Y);if(q.kind==="get"&&V.params.length!==0)this.raiseRecoverable(V.start,"getter should have no params");if(q.kind==="set"&&V.params.length!==1)this.raiseRecoverable(V.start,"setter should have exactly one param");if(q.kind==="set"&&V.params[0].type==="RestElement")this.raiseRecoverable(V.params[0].start,"Setter cannot use rest params");return this.finishNode(q,"MethodDefinition")};h.parseClassField=function(q){if(U0(q,"constructor"))this.raise(q.key.start,"Classes can't have a field named 'constructor'");else if(q.static&&U0(q,"prototype"))this.raise(q.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(O.eq))this.enterScope(E1|M0),q.value=this.parseMaybeAssign(),this.exitScope();else q.value=null;return this.semicolon(),this.finishNode(q,"PropertyDefinition")};h.parseClassStaticBlock=function(q){q.body=[];var Q=this.labels;this.labels=[],this.enterScope(G1|M0);while(this.type!==O.braceR){var Z=this.parseStatement(null);q.body.push(Z)}return this.next(),this.exitScope(),this.labels=Q,this.finishNode(q,"StaticBlock")};h.parseClassId=function(q,Q){if(this.type===O.name){if(q.id=this.parseIdent(),Q)this.checkLValSimple(q.id,o8,!1)}else{if(Q===!0)this.unexpected();q.id=null}};h.parseClassSuper=function(q){q.superClass=this.eat(O._extends)?this.parseExprSubscripts(null,!1):null};h.enterClassBody=function(){var q={declared:Object.create(null),used:[]};return this.privateNameStack.push(q),q.declared};h.exitClassBody=function(){var q=this.privateNameStack.pop(),Q=q.declared,Z=q.used;if(!this.options.checkPrivateFields)return;var Y=this.privateNameStack.length,H=Y===0?null:this.privateNameStack[Y-1];for(var V=0;V<Z.length;++V){var K=Z[V];if(!U1(Q,K.name))if(H)H.used.push(K);else this.raiseRecoverable(K.start,"Private field '#"+K.name+"' must be declared in an enclosing class")}};function kq(q,Q){var Z=Q.key.name,Y=q[Z],H="true";if(Q.type==="MethodDefinition"&&(Q.kind==="get"||Q.kind==="set"))H=(Q.static?"s":"i")+Q.kind;if(Y==="iget"&&H==="iset"||Y==="iset"&&H==="iget"||Y==="sget"&&H==="sset"||Y==="sset"&&H==="sget")return q[Z]="true",!1;else if(!Y)return q[Z]=H,!1;else return!0}function U0(q,Q){var{computed:Z,key:Y}=q;return!Z&&(Y.type==="Identifier"&&Y.name===Q||Y.type==="Literal"&&Y.value===Q)}h.parseExportAllDeclaration=function(q,Q){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))q.exported=this.parseModuleExportName(),this.checkExport(Q,q.exported,this.lastTokStart);else q.exported=null;if(this.expectContextual("from"),this.type!==O.string)this.unexpected();if(q.source=this.parseExprAtom(),this.options.ecmaVersion>=16)q.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(q,"ExportAllDeclaration")};h.parseExport=function(q,Q){if(this.next(),this.eat(O.star))return this.parseExportAllDeclaration(q,Q);if(this.eat(O._default))return this.checkExport(Q,"default",this.lastTokStart),q.declaration=this.parseExportDefaultDeclaration(),this.finishNode(q,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(q.declaration=this.parseExportDeclaration(q),q.declaration.type==="VariableDeclaration")this.checkVariableExport(Q,q.declaration.declarations);else this.checkExport(Q,q.declaration.id,q.declaration.id.start);if(q.specifiers=[],q.source=null,this.options.ecmaVersion>=16)q.attributes=[]}else{if(q.declaration=null,q.specifiers=this.parseExportSpecifiers(Q),this.eatContextual("from")){if(this.type!==O.string)this.unexpected();if(q.source=this.parseExprAtom(),this.options.ecmaVersion>=16)q.attributes=this.parseWithClause()}else{for(var Z=0,Y=q.specifiers;Z<Y.length;Z+=1){var H=Y[Z];if(this.checkUnreserved(H.local),this.checkLocalExport(H.local),H.local.type==="Literal")this.raise(H.local.start,"A string literal cannot be used as an exported binding without `from`.")}if(q.source=null,this.options.ecmaVersion>=16)q.attributes=[]}this.semicolon()}return this.finishNode(q,"ExportNamedDeclaration")};h.parseExportDeclaration=function(q){return this.parseStatement(null)};h.parseExportDefaultDeclaration=function(){var q;if(this.type===O._function||(q=this.isAsyncFunction())){var Q=this.startNode();if(this.next(),q)this.next();return this.parseFunction(Q,b1|j2,!1,q)}else if(this.type===O._class){var Z=this.startNode();return this.parseClass(Z,"nullableID")}else{var Y=this.parseMaybeAssign();return this.semicolon(),Y}};h.checkExport=function(q,Q,Z){if(!q)return;if(typeof Q!=="string")Q=Q.type==="Identifier"?Q.name:Q.value;if(U1(q,Q))this.raiseRecoverable(Z,"Duplicate export '"+Q+"'");q[Q]=!0};h.checkPatternExport=function(q,Q){var Z=Q.type;if(Z==="Identifier")this.checkExport(q,Q,Q.start);else if(Z==="ObjectPattern")for(var Y=0,H=Q.properties;Y<H.length;Y+=1){var V=H[Y];this.checkPatternExport(q,V)}else if(Z==="ArrayPattern")for(var K=0,G=Q.elements;K<G.length;K+=1){var W=G[K];if(W)this.checkPatternExport(q,W)}else if(Z==="Property")this.checkPatternExport(q,Q.value);else if(Z==="AssignmentPattern")this.checkPatternExport(q,Q.left);else if(Z==="RestElement")this.checkPatternExport(q,Q.argument)};h.checkVariableExport=function(q,Q){if(!q)return;for(var Z=0,Y=Q;Z<Y.length;Z+=1){var H=Y[Z];this.checkPatternExport(q,H.id)}};h.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};h.parseExportSpecifier=function(q){var Q=this.startNode();return Q.local=this.parseModuleExportName(),Q.exported=this.eatContextual("as")?this.parseModuleExportName():Q.local,this.checkExport(q,Q.exported,Q.exported.start),this.finishNode(Q,"ExportSpecifier")};h.parseExportSpecifiers=function(q){var Q=[],Z=!0;this.expect(O.braceL);while(!this.eat(O.braceR)){if(!Z){if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break}else Z=!1;Q.push(this.parseExportSpecifier(q))}return Q};h.parseImport=function(q){if(this.next(),this.type===O.string)q.specifiers=bq,q.source=this.parseExprAtom();else q.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),q.source=this.type===O.string?this.parseExprAtom():this.unexpected();if(this.options.ecmaVersion>=16)q.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(q,"ImportDeclaration")};h.parseImportSpecifier=function(){var q=this.startNode();if(q.imported=this.parseModuleExportName(),this.eatContextual("as"))q.local=this.parseIdent();else this.checkUnreserved(q.imported),q.local=q.imported;return this.checkLValSimple(q.local,o8),this.finishNode(q,"ImportSpecifier")};h.parseImportDefaultSpecifier=function(){var q=this.startNode();return q.local=this.parseIdent(),this.checkLValSimple(q.local,o8),this.finishNode(q,"ImportDefaultSpecifier")};h.parseImportNamespaceSpecifier=function(){var q=this.startNode();return this.next(),this.expectContextual("as"),q.local=this.parseIdent(),this.checkLValSimple(q.local,o8),this.finishNode(q,"ImportNamespaceSpecifier")};h.parseImportSpecifiers=function(){var q=[],Q=!0;if(this.type===O.name){if(q.push(this.parseImportDefaultSpecifier()),!this.eat(O.comma))return q}if(this.type===O.star)return q.push(this.parseImportNamespaceSpecifier()),q;this.expect(O.braceL);while(!this.eat(O.braceR)){if(!Q){if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break}else Q=!1;q.push(this.parseImportSpecifier())}return q};h.parseWithClause=function(){var q=[];if(!this.eat(O._with))return q;this.expect(O.braceL);var Q={},Z=!0;while(!this.eat(O.braceR)){if(!Z){if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break}else Z=!1;var Y=this.parseImportAttribute(),H=Y.key.type==="Identifier"?Y.key.name:Y.key.value;if(U1(Q,H))this.raiseRecoverable(Y.key.start,"Duplicate attribute key '"+H+"'");Q[H]=!0,q.push(Y)}return q};h.parseImportAttribute=function(){var q=this.startNode();if(q.key=this.type===O.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(O.colon),this.type!==O.string)this.unexpected();return q.value=this.parseExprAtom(),this.finishNode(q,"ImportAttribute")};h.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===O.string){var q=this.parseLiteral(this.value);if(Pq.test(q.value))this.raise(q.start,"An export name cannot include a lone surrogate.");return q}return this.parseIdent(!0)};h.adaptDirectivePrologue=function(q){for(var Q=0;Q<q.length&&this.isDirectiveCandidate(q[Q]);++Q)q[Q].directive=q[Q].expression.raw.slice(1,-1)};h.isDirectiveCandidate=function(q){return this.options.ecmaVersion>=5&&q.type==="ExpressionStatement"&&q.expression.type==="Literal"&&typeof q.expression.value==="string"&&(this.input[q.start]==='"'||this.input[q.start]==="'")};var b8=H8.prototype;b8.toAssignable=function(q,Q,Z){if(this.options.ecmaVersion>=6&&q)switch(q.type){case"Identifier":if(this.inAsync&&q.name==="await")this.raise(q.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(q.type="ObjectPattern",Z)this.checkPatternErrors(Z,!0);for(var Y=0,H=q.properties;Y<H.length;Y+=1){var V=H[Y];if(this.toAssignable(V,Q),V.type==="RestElement"&&(V.argument.type==="ArrayPattern"||V.argument.type==="ObjectPattern"))this.raise(V.argument.start,"Unexpected token")}break;case"Property":if(q.kind!=="init")this.raise(q.key.start,"Object pattern can't contain getter or setter");this.toAssignable(q.value,Q);break;case"ArrayExpression":if(q.type="ArrayPattern",Z)this.checkPatternErrors(Z,!0);this.toAssignableList(q.elements,Q);break;case"SpreadElement":if(q.type="RestElement",this.toAssignable(q.argument,Q),q.argument.type==="AssignmentPattern")this.raise(q.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(q.operator!=="=")this.raise(q.left.end,"Only '=' operator can be used for specifying default value.");q.type="AssignmentPattern",delete q.operator,this.toAssignable(q.left,Q);break;case"ParenthesizedExpression":this.toAssignable(q.expression,Q,Z);break;case"ChainExpression":this.raiseRecoverable(q.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!Q)break;default:this.raise(q.start,"Assigning to rvalue")}else if(Z)this.checkPatternErrors(Z,!0);return q};b8.toAssignableList=function(q,Q){var Z=q.length;for(var Y=0;Y<Z;Y++){var H=q[Y];if(H)this.toAssignable(H,Q)}if(Z){var V=q[Z-1];if(this.options.ecmaVersion===6&&Q&&V&&V.type==="RestElement"&&V.argument.type!=="Identifier")this.unexpected(V.argument.start)}return q};b8.parseSpread=function(q){var Q=this.startNode();return this.next(),Q.argument=this.parseMaybeAssign(!1,q),this.finishNode(Q,"SpreadElement")};b8.parseRestBinding=function(){var q=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==O.name)this.unexpected();return q.argument=this.parseBindingAtom(),this.finishNode(q,"RestElement")};b8.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case O.bracketL:var q=this.startNode();return this.next(),q.elements=this.parseBindingList(O.bracketR,!0,!0),this.finishNode(q,"ArrayPattern");case O.braceL:return this.parseObj(!0)}return this.parseIdent()};b8.parseBindingList=function(q,Q,Z,Y){var H=[],V=!0;while(!this.eat(q)){if(V)V=!1;else this.expect(O.comma);if(Q&&this.type===O.comma)H.push(null);else if(Z&&this.afterTrailingComma(q))break;else if(this.type===O.ellipsis){var K=this.parseRestBinding();if(this.parseBindingListItem(K),H.push(K),this.type===O.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");this.expect(q);break}else H.push(this.parseAssignableListItem(Y))}return H};b8.parseAssignableListItem=function(q){var Q=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(Q),Q};b8.parseBindingListItem=function(q){return q};b8.parseMaybeDefault=function(q,Q,Z){if(Z=Z||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(O.eq))return Z;var Y=this.startNodeAt(q,Q);return Y.left=Z,Y.right=this.parseMaybeAssign(),this.finishNode(Y,"AssignmentPattern")};b8.checkLValSimple=function(q,Q,Z){if(Q===void 0)Q=O0;var Y=Q!==O0;switch(q.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(q.name))this.raiseRecoverable(q.start,(Y?"Binding ":"Assigning to ")+q.name+" in strict mode");if(Y){if(Q===o8&&q.name==="let")this.raiseRecoverable(q.start,"let is disallowed as a lexically bound name");if(Z){if(U1(Z,q.name))this.raiseRecoverable(q.start,"Argument name clash");Z[q.name]=!0}if(Q!==z2)this.declareName(q.name,Q,q.start)}break;case"ChainExpression":this.raiseRecoverable(q.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(Y)this.raiseRecoverable(q.start,"Binding member expression");break;case"ParenthesizedExpression":if(Y)this.raiseRecoverable(q.start,"Binding parenthesized expression");return this.checkLValSimple(q.expression,Q,Z);default:this.raise(q.start,(Y?"Binding":"Assigning to")+" rvalue")}};b8.checkLValPattern=function(q,Q,Z){if(Q===void 0)Q=O0;switch(q.type){case"ObjectPattern":for(var Y=0,H=q.properties;Y<H.length;Y+=1){var V=H[Y];this.checkLValInnerPattern(V,Q,Z)}break;case"ArrayPattern":for(var K=0,G=q.elements;K<G.length;K+=1){var W=G[K];if(W)this.checkLValInnerPattern(W,Q,Z)}break;default:this.checkLValSimple(q,Q,Z)}};b8.checkLValInnerPattern=function(q,Q,Z){if(Q===void 0)Q=O0;switch(q.type){case"Property":this.checkLValInnerPattern(q.value,Q,Z);break;case"AssignmentPattern":this.checkLValPattern(q.left,Q,Z);break;case"RestElement":this.checkLValPattern(q.argument,Q,Z);break;default:this.checkLValPattern(q,Q,Z)}};var D8=function(Q,Z,Y,H,V){this.token=Q,this.isExpr=!!Z,this.preserveSpace=!!Y,this.override=H,this.generator=!!V},Z8={b_stat:new D8("{",!1),b_expr:new D8("{",!0),b_tmpl:new D8("${",!1),p_stat:new D8("(",!1),p_expr:new D8("(",!0),q_tmpl:new D8("`",!0,!0,function(q){return q.tryReadTemplateToken()}),f_stat:new D8("function",!1),f_expr:new D8("function",!0),f_expr_gen:new D8("function",!0,!1,null,!0),f_gen:new D8("function",!1,!1,null,!0)},R1=H8.prototype;R1.initialContext=function(){return[Z8.b_stat]};R1.curContext=function(){return this.context[this.context.length-1]};R1.braceIsBlock=function(q){var Q=this.curContext();if(Q===Z8.f_expr||Q===Z8.f_stat)return!0;if(q===O.colon&&(Q===Z8.b_stat||Q===Z8.b_expr))return!Q.isExpr;if(q===O._return||q===O.name&&this.exprAllowed)return B8.test(this.input.slice(this.lastTokEnd,this.start));if(q===O._else||q===O.semi||q===O.eof||q===O.parenR||q===O.arrow)return!0;if(q===O.braceL)return Q===Z8.b_stat;if(q===O._var||q===O._const||q===O.name)return!1;return!this.exprAllowed};R1.inGeneratorContext=function(){for(var q=this.context.length-1;q>=1;q--){var Q=this.context[q];if(Q.token==="function")return Q.generator}return!1};R1.updateContext=function(q){var Q,Z=this.type;if(Z.keyword&&q===O.dot)this.exprAllowed=!1;else if(Q=Z.updateContext)Q.call(this,q);else this.exprAllowed=Z.beforeExpr};R1.overrideContext=function(q){if(this.curContext()!==q)this.context[this.context.length-1]=q};O.parenR.updateContext=O.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var q=this.context.pop();if(q===Z8.b_stat&&this.curContext().token==="function")q=this.context.pop();this.exprAllowed=!q.isExpr};O.braceL.updateContext=function(q){this.context.push(this.braceIsBlock(q)?Z8.b_stat:Z8.b_expr),this.exprAllowed=!0};O.dollarBraceL.updateContext=function(){this.context.push(Z8.b_tmpl),this.exprAllowed=!0};O.parenL.updateContext=function(q){var Q=q===O._if||q===O._for||q===O._with||q===O._while;this.context.push(Q?Z8.p_stat:Z8.p_expr),this.exprAllowed=!0};O.incDec.updateContext=function(){};O._function.updateContext=O._class.updateContext=function(q){if(q.beforeExpr&&q!==O._else&&!(q===O.semi&&this.curContext()!==Z8.p_stat)&&!(q===O._return&&B8.test(this.input.slice(this.lastTokEnd,this.start)))&&!((q===O.colon||q===O.braceL)&&this.curContext()===Z8.b_stat))this.context.push(Z8.f_expr);else this.context.push(Z8.f_stat);this.exprAllowed=!1};O.colon.updateContext=function(){if(this.curContext().token==="function")this.context.pop();this.exprAllowed=!0};O.backQuote.updateContext=function(){if(this.curContext()===Z8.q_tmpl)this.context.pop();else this.context.push(Z8.q_tmpl);this.exprAllowed=!1};O.star.updateContext=function(q){if(q===O._function){var Q=this.context.length-1;if(this.context[Q]===Z8.f_expr)this.context[Q]=Z8.f_expr_gen;else this.context[Q]=Z8.f_gen}this.exprAllowed=!0};O.name.updateContext=function(q){var Q=!1;if(this.options.ecmaVersion>=6&&q!==O.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())Q=!0}this.exprAllowed=Q};var u=H8.prototype;u.checkPropClash=function(q,Q,Z){if(this.options.ecmaVersion>=9&&q.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(q.computed||q.method||q.shorthand))return;var Y=q.key,H;switch(Y.type){case"Identifier":H=Y.name;break;case"Literal":H=String(Y.value);break;default:return}var V=q.kind;if(this.options.ecmaVersion>=6){if(H==="__proto__"&&V==="init"){if(Q.proto)if(Z){if(Z.doubleProto<0)Z.doubleProto=Y.start}else this.raiseRecoverable(Y.start,"Redefinition of __proto__ property");Q.proto=!0}return}H="$"+H;var K=Q[H];if(K){var G;if(V==="init")G=this.strict&&K.init||K.get||K.set;else G=K.init||K[V];if(G)this.raiseRecoverable(Y.start,"Redefinition of property")}else K=Q[H]={init:!1,get:!1,set:!1};K[V]=!0};u.parseExpression=function(q,Q){var Z=this;return this.catchStackOverflow(function(){var{start:Y,startLoc:H}=Z,V=Z.parseMaybeAssign(q,Q);if(Z.type===O.comma){var K=Z.startNodeAt(Y,H);K.expressions=[V];while(Z.eat(O.comma))K.expressions.push(Z.parseMaybeAssign(q,Q));return Z.finishNode(K,"SequenceExpression")}return V})};u.parseMaybeAssign=function(q,Q,Z){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(q);else this.exprAllowed=!1;var Y=!1,H=-1,V=-1,K=-1;if(Q)H=Q.parenthesizedAssign,V=Q.trailingComma,K=Q.doubleProto,Q.parenthesizedAssign=Q.trailingComma=-1;else Q=new L0,Y=!0;var G=this.start,W=this.startLoc;if(this.type===O.parenL||this.type===O.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=q==="await";var R=this.parseMaybeConditional(q,Q);if(Z)R=Z.call(this,R,G,W);if(this.type.isAssign){var j=this.startNodeAt(G,W);if(j.operator=this.value,this.type===O.eq)R=this.toAssignable(R,!1,Q);if(!Y)Q.parenthesizedAssign=Q.trailingComma=Q.doubleProto=-1;if(Q.shorthandAssign>=R.start)Q.shorthandAssign=-1;if(this.type===O.eq)this.checkLValPattern(R);else this.checkLValSimple(R);if(j.left=R,this.next(),j.right=this.parseMaybeAssign(q),K>-1)Q.doubleProto=K;return this.finishNode(j,"AssignmentExpression")}else if(Y)this.checkExpressionErrors(Q,!0);if(H>-1)Q.parenthesizedAssign=H;if(V>-1)Q.trailingComma=V;return R};u.parseMaybeConditional=function(q,Q){var Z=this.start,Y=this.startLoc,H=this.parseExprOps(q,Q);if(this.checkExpressionErrors(Q))return H;if(!(H.type==="ArrowFunctionExpression"&&H.start===Z)&&this.eat(O.question)){var V=this.startNodeAt(Z,Y);return V.test=H,V.consequent=this.parseMaybeAssign(),this.expect(O.colon),V.alternate=this.parseMaybeAssign(q),this.finishNode(V,"ConditionalExpression")}return H};u.parseExprOps=function(q,Q){var Z=this.start,Y=this.startLoc,H=this.parseMaybeUnary(Q,!1,!1,q);if(this.checkExpressionErrors(Q))return H;return H.start===Z&&H.type==="ArrowFunctionExpression"?H:this.parseExprOp(H,Z,Y,-1,q)};u.parseExprOp=function(q,Q,Z,Y,H){var V=this.type.binop;if(V!=null&&(!H||this.type!==O._in)){if(V>Y){var K=this.type===O.logicalOR||this.type===O.logicalAND,G=this.type===O.coalesce;if(G)V=O.logicalAND.binop;var W=this.value;this.next();var R=this.start,j=this.startLoc,$=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,H),R,j,V,H),M=this.buildBinary(Q,Z,q,$,W,K||G);if(K&&this.type===O.coalesce||G&&(this.type===O.logicalOR||this.type===O.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(M,Q,Z,Y,H)}}return q};u.buildBinary=function(q,Q,Z,Y,H,V){if(Y.type==="PrivateIdentifier")this.raise(Y.start,"Private identifier can only be left side of binary expression");var K=this.startNodeAt(q,Q);return K.left=Z,K.operator=H,K.right=Y,this.finishNode(K,V?"LogicalExpression":"BinaryExpression")};u.parseMaybeUnary=function(q,Q,Z,Y){var H=this.start,V=this.startLoc,K;if(this.isContextual("await")&&this.canAwait)K=this.parseAwait(Y),Q=!0;else if(this.type.prefix){var G=this.startNode(),W=this.type===O.incDec;if(G.operator=this.value,G.prefix=!0,this.next(),G.argument=this.parseMaybeUnary(null,!0,W,Y),this.checkExpressionErrors(q,!0),W)this.checkLValSimple(G.argument);else if(this.strict&&G.operator==="delete"&&O2(G.argument))this.raiseRecoverable(G.start,"Deleting local variable in strict mode");else if(G.operator==="delete"&&v9(G.argument))this.raiseRecoverable(G.start,"Private fields can not be deleted");else Q=!0;K=this.finishNode(G,W?"UpdateExpression":"UnaryExpression")}else if(!Q&&this.type===O.privateId){if((Y||this.privateNameStack.length===0)&&this.options.checkPrivateFields)this.unexpected();if(K=this.parsePrivateIdent(),this.type!==O._in)this.unexpected()}else{if(K=this.parseExprSubscripts(q,Y),this.checkExpressionErrors(q))return K;while(this.type.postfix&&!this.canInsertSemicolon()){var R=this.startNodeAt(H,V);R.operator=this.value,R.prefix=!1,R.argument=K,this.checkLValSimple(K),this.next(),K=this.finishNode(R,"UpdateExpression")}}if(!Z&&this.eat(O.starstar))if(Q)this.unexpected(this.lastTokStart);else return this.buildBinary(H,V,K,this.parseMaybeUnary(null,!1,!1,Y),"**",!1);else return K};function O2(q){return q.type==="Identifier"||q.type==="ParenthesizedExpression"&&O2(q.expression)}function v9(q){return q.type==="MemberExpression"&&q.property.type==="PrivateIdentifier"||q.type==="ChainExpression"&&v9(q.expression)||q.type==="ParenthesizedExpression"&&v9(q.expression)}u.parseExprSubscripts=function(q,Q){var Z=this.start,Y=this.startLoc,H=this.parseExprAtom(q,Q);if(H.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return H;var V=this.parseSubscripts(H,Z,Y,!1,Q);if(q&&V.type==="MemberExpression"){if(q.parenthesizedAssign>=V.start)q.parenthesizedAssign=-1;if(q.parenthesizedBind>=V.start)q.parenthesizedBind=-1;if(q.trailingComma>=V.start)q.trailingComma=-1}return V};u.parseSubscripts=function(q,Q,Z,Y,H){var V=this.options.ecmaVersion>=8&&q.type==="Identifier"&&q.name==="async"&&this.lastTokEnd===q.end&&!this.canInsertSemicolon()&&q.end-q.start===5&&this.potentialArrowAt===q.start,K=!1;while(!0){var G=this.parseSubscript(q,Q,Z,Y,V,K,H);if(G.optional)K=!0;if(G===q||G.type==="ArrowFunctionExpression"){if(K){var W=this.startNodeAt(Q,Z);W.expression=G,G=this.finishNode(W,"ChainExpression")}return G}q=G}};u.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(O.arrow)};u.parseSubscriptAsyncArrow=function(q,Q,Z,Y){return this.parseArrowExpression(this.startNodeAt(q,Q),Z,!0,Y)};u.parseSubscript=function(q,Q,Z,Y,H,V,K){var G=this.options.ecmaVersion>=11,W=G&&this.eat(O.questionDot);if(Y&&W)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var R=this.eat(O.bracketL);if(R||W&&this.type!==O.parenL&&this.type!==O.backQuote||this.eat(O.dot)){var j=this.startNodeAt(Q,Z);if(j.object=q,R)j.property=this.parseExpression(),this.expect(O.bracketR);else if(this.type===O.privateId&&q.type!=="Super")j.property=this.parsePrivateIdent();else j.property=this.parseIdent(this.options.allowReserved!=="never");if(j.computed=!!R,G)j.optional=W;q=this.finishNode(j,"MemberExpression")}else if(!Y&&this.eat(O.parenL)){var $=new L0,M=this.yieldPos,B=this.awaitPos,S=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var I=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1,$);if(H&&!W&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors($,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=M,this.awaitPos=B,this.awaitIdentPos=S,this.parseSubscriptAsyncArrow(Q,Z,I,K)}this.checkExpressionErrors($,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=B||this.awaitPos,this.awaitIdentPos=S||this.awaitIdentPos;var k=this.startNodeAt(Q,Z);if(k.callee=q,k.arguments=I,G)k.optional=W;q=this.finishNode(k,"CallExpression")}else if(this.type===O.backQuote){if(W||V)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var E=this.startNodeAt(Q,Z);E.tag=q,E.quasi=this.parseTemplate({isTagged:!0}),q=this.finishNode(E,"TaggedTemplateExpression")}return q};u.parseExprAtom=function(q,Q,Z){if(this.type===O.slash)this.readRegexp();var Y,H=this.potentialArrowAt===this.start;switch(this.type){case O._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(Y=this.startNode(),this.next(),this.type===O.parenL&&!this.allowDirectSuper)this.raise(Y.start,"super() call outside constructor of a subclass");if(this.type!==O.dot&&this.type!==O.bracketL&&this.type!==O.parenL)this.unexpected();return this.finishNode(Y,"Super");case O._this:return Y=this.startNode(),this.next(),this.finishNode(Y,"ThisExpression");case O.name:var V=this.start,K=this.startLoc,G=this.containsEsc,W=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!G&&W.name==="async"&&!this.canInsertSemicolon()&&this.eat(O._function))return this.overrideContext(Z8.f_expr),this.parseFunction(this.startNodeAt(V,K),0,!1,!0,Q);if(H&&!this.canInsertSemicolon()){if(this.eat(O.arrow))return this.parseArrowExpression(this.startNodeAt(V,K),[W],!1,Q);if(this.options.ecmaVersion>=8&&W.name==="async"&&this.type===O.name&&!G&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(W=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(O.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(V,K),[W],!0,Q)}}return W;case O.regexp:var R=this.value;return Y=this.parseLiteral(R.value),Y.regex={pattern:R.pattern,flags:R.flags},Y;case O.num:case O.string:return this.parseLiteral(this.value);case O._null:case O._true:case O._false:return Y=this.startNode(),Y.value=this.type===O._null?null:this.type===O._true,Y.raw=this.type.keyword,this.next(),this.finishNode(Y,"Literal");case O.parenL:var j=this.start,$=this.parseParenAndDistinguishExpression(H,Q);if(q){if(q.parenthesizedAssign<0&&!this.isSimpleAssignTarget($))q.parenthesizedAssign=j;if(q.parenthesizedBind<0)q.parenthesizedBind=j}return $;case O.bracketL:return Y=this.startNode(),this.next(),Y.elements=this.parseExprList(O.bracketR,!0,!0,q),this.finishNode(Y,"ArrayExpression");case O.braceL:return this.overrideContext(Z8.b_expr),this.parseObj(!1,q);case O._function:return Y=this.startNode(),this.next(),this.parseFunction(Y,0);case O._class:return this.parseClass(this.startNode(),!1);case O._new:return this.parseNew();case O.backQuote:return this.parseTemplate();case O._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(Z);else return this.unexpected();default:return this.parseExprAtomDefault()}};u.parseExprAtomDefault=function(){this.unexpected()};u.parseExprImport=function(q){var Q=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");if(this.next(),this.type===O.parenL&&!q)return this.parseDynamicImport(Q);else if(this.type===O.dot){var Z=this.startNodeAt(Q.start,Q.loc&&Q.loc.start);return Z.name="import",Q.meta=this.finishNode(Z,"Identifier"),this.parseImportMeta(Q)}else this.unexpected()};u.parseDynamicImport=function(q){if(this.next(),q.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)if(!this.eat(O.parenR))if(this.expect(O.comma),!this.afterTrailingComma(O.parenR)){if(q.options=this.parseMaybeAssign(),!this.eat(O.parenR)){if(this.expect(O.comma),!this.afterTrailingComma(O.parenR))this.unexpected()}}else q.options=null;else q.options=null;else if(!this.eat(O.parenR)){var Q=this.start;if(this.eat(O.comma)&&this.eat(O.parenR))this.raiseRecoverable(Q,"Trailing comma is not allowed in import()");else this.unexpected(Q)}return this.finishNode(q,"ImportExpression")};u.parseImportMeta=function(q){this.next();var Q=this.containsEsc;if(q.property=this.parseIdent(!0),q.property.name!=="meta")this.raiseRecoverable(q.property.start,"The only valid meta property for import is 'import.meta'");if(Q)this.raiseRecoverable(q.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(q.start,"Cannot use 'import.meta' outside a module");return this.finishNode(q,"MetaProperty")};u.parseLiteral=function(q){var Q=this.startNode();if(Q.value=q,Q.raw=this.input.slice(this.start,this.end),Q.raw.charCodeAt(Q.raw.length-1)===110)Q.bigint=Q.value!=null?Q.value.toString():Q.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(Q,"Literal")};u.parseParenExpression=function(){this.expect(O.parenL);var q=this.parseExpression();return this.expect(O.parenR),q};u.shouldParseArrow=function(q){return!this.canInsertSemicolon()};u.parseParenAndDistinguishExpression=function(q,Q){var Z=this.start,Y=this.startLoc,H,V=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var K=this.start,G=this.startLoc,W=[],R=!0,j=!1,$=new L0,M=this.yieldPos,B=this.awaitPos,S;this.yieldPos=0,this.awaitPos=0;while(this.type!==O.parenR)if(R?R=!1:this.expect(O.comma),V&&this.afterTrailingComma(O.parenR,!0)){j=!0;break}else if(this.type===O.ellipsis){if(S=this.start,W.push(this.parseParenItem(this.parseRestBinding())),this.type===O.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else W.push(this.parseMaybeAssign(!1,$,this.parseParenItem));var I=this.lastTokEnd,k=this.lastTokEndLoc;if(this.expect(O.parenR),q&&this.shouldParseArrow(W)&&this.eat(O.arrow))return this.checkPatternErrors($,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=M,this.awaitPos=B,this.parseParenArrowList(Z,Y,W,Q);if(!W.length||j)this.unexpected(this.lastTokStart);if(S)this.unexpected(S);if(this.checkExpressionErrors($,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=B||this.awaitPos,W.length>1)H=this.startNodeAt(K,G),H.expressions=W,this.finishNodeAt(H,"SequenceExpression",I,k);else H=W[0]}else H=this.parseParenExpression();if(this.options.preserveParens){var E=this.startNodeAt(Z,Y);return E.expression=H,this.finishNode(E,"ParenthesizedExpression")}else return H};u.parseParenItem=function(q){return q};u.parseParenArrowList=function(q,Q,Z,Y){return this.parseArrowExpression(this.startNodeAt(q,Q),Z,!1,Y)};var Eq=[];u.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var q=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===O.dot){var Q=this.startNodeAt(q.start,q.loc&&q.loc.start);Q.name="new",q.meta=this.finishNode(Q,"Identifier"),this.next();var Z=this.containsEsc;if(q.property=this.parseIdent(!0),q.property.name!=="target")this.raiseRecoverable(q.property.start,"The only valid meta property for new is 'new.target'");if(Z)this.raiseRecoverable(q.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(q.start,"'new.target' can only be used in functions and class static block");return this.finishNode(q,"MetaProperty")}var Y=this.start,H=this.startLoc;if(q.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),Y,H,!0,!1),q.callee.type==="Super")this.raiseRecoverable(Y,"Invalid use of 'super'");if(this.eat(O.parenL))q.arguments=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1);else q.arguments=Eq;return this.finishNode(q,"NewExpression")};u.parseTemplateElement=function(q){var Q=q.isTagged,Z=this.startNode();if(this.type===O.invalidTemplate){if(!Q)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");Z.value={raw:this.value.replace(/\r\n?/g,`
28
+ `),cooked:null}}else Z.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
29
+ `),cooked:this.value};return this.next(),Z.tail=this.type===O.backQuote,this.finishNode(Z,"TemplateElement")};u.parseTemplate=function(q){if(q===void 0)q={};var Q=q.isTagged;if(Q===void 0)Q=!1;var Z=this.startNode();this.next(),Z.expressions=[];var Y=this.parseTemplateElement({isTagged:Q});Z.quasis=[Y];while(!Y.tail){if(this.type===O.eof)this.raise(this.pos,"Unterminated template literal");this.expect(O.dollarBraceL),Z.expressions.push(this.parseExpression()),this.expect(O.braceR),Z.quasis.push(Y=this.parseTemplateElement({isTagged:Q}))}return this.next(),this.finishNode(Z,"TemplateLiteral")};u.isAsyncProp=function(q){return!q.computed&&q.key.type==="Identifier"&&q.key.name==="async"&&(this.type===O.name||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===O.star)&&!B8.test(this.input.slice(this.lastTokEnd,this.start))};u.parseObj=function(q,Q){var Z=this.startNode(),Y=!0,H={};Z.properties=[],this.next();while(!this.eat(O.braceR)){if(!Y){if(this.expect(O.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(O.braceR))break}else Y=!1;var V=this.parseProperty(q,Q);if(!q)this.checkPropClash(V,H,Q);Z.properties.push(V)}return this.finishNode(Z,q?"ObjectPattern":"ObjectExpression")};u.parseProperty=function(q,Q){var Z=this.startNode(),Y,H,V,K;if(this.options.ecmaVersion>=9&&this.eat(O.ellipsis)){if(q){if(Z.argument=this.parseIdent(!1),this.type===O.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");return this.finishNode(Z,"RestElement")}if(Z.argument=this.parseMaybeAssign(!1,Q),this.type===O.comma&&Q&&Q.trailingComma<0)Q.trailingComma=this.start;return this.finishNode(Z,"SpreadElement")}if(this.options.ecmaVersion>=6){if(Z.method=!1,Z.shorthand=!1,q||Q)V=this.start,K=this.startLoc;if(!q)Y=this.eat(O.star)}var G=this.containsEsc;if(this.parsePropertyName(Z),!q&&!G&&this.options.ecmaVersion>=8&&!Y&&this.isAsyncProp(Z))H=!0,Y=this.options.ecmaVersion>=9&&this.eat(O.star),this.parsePropertyName(Z);else H=!1;return this.parsePropertyValue(Z,q,Y,H,V,K,Q,G),this.finishNode(Z,"Property")};u.parseGetterSetter=function(q){var Q=q.key.name;this.parsePropertyName(q),q.value=this.parseMethod(!1),q.kind=Q;var Z=q.kind==="get"?0:1;if(q.value.params.length!==Z){var Y=q.value.start;if(q.kind==="get")this.raiseRecoverable(Y,"getter should have no params");else this.raiseRecoverable(Y,"setter should have exactly one param")}else if(q.kind==="set"&&q.value.params[0].type==="RestElement")this.raiseRecoverable(q.value.params[0].start,"Setter cannot use rest params")};u.parsePropertyValue=function(q,Q,Z,Y,H,V,K,G){if((Z||Y)&&this.type===O.colon)this.unexpected();if(this.eat(O.colon))q.value=Q?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,K),q.kind="init";else if(this.options.ecmaVersion>=6&&this.type===O.parenL){if(Q)this.unexpected();q.method=!0,q.value=this.parseMethod(Z,Y),q.kind="init"}else if(!Q&&!G&&this.options.ecmaVersion>=5&&!q.computed&&q.key.type==="Identifier"&&(q.key.name==="get"||q.key.name==="set")&&(this.type!==O.comma&&this.type!==O.braceR&&this.type!==O.eq)){if(Z||Y)this.unexpected();this.parseGetterSetter(q)}else if(this.options.ecmaVersion>=6&&!q.computed&&q.key.type==="Identifier"){if(Z||Y)this.unexpected();if(this.checkUnreserved(q.key),q.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=H;if(Q)q.value=this.parseMaybeDefault(H,V,this.copyNode(q.key));else if(this.type===O.eq&&K){if(K.shorthandAssign<0)K.shorthandAssign=this.start;q.value=this.parseMaybeDefault(H,V,this.copyNode(q.key))}else q.value=this.copyNode(q.key);q.kind="init",q.shorthand=!0}else this.unexpected()};u.parsePropertyName=function(q){if(this.options.ecmaVersion>=6)if(this.eat(O.bracketL))return q.computed=!0,q.key=this.parseMaybeAssign(),this.expect(O.bracketR),q.key;else q.computed=!1;return q.key=this.type===O.num||this.type===O.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};u.initFunction=function(q){if(q.id=null,this.options.ecmaVersion>=6)q.generator=q.expression=!1;if(this.options.ecmaVersion>=8)q.async=!1};u.parseMethod=function(q,Q,Z){var Y=this.startNode(),H=this.yieldPos,V=this.awaitPos,K=this.awaitIdentPos;if(this.initFunction(Y),this.options.ecmaVersion>=6)Y.generator=q;if(this.options.ecmaVersion>=8)Y.async=!!Q;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(x9(Q,Y.generator)|M0|(Z?V2:0)),this.expect(O.parenL),Y.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(Y,!1,!0,!1),this.yieldPos=H,this.awaitPos=V,this.awaitIdentPos=K,this.finishNode(Y,"FunctionExpression")};u.parseArrowExpression=function(q,Q,Z,Y){var H=this.yieldPos,V=this.awaitPos,K=this.awaitIdentPos;if(this.enterScope(x9(Z,!1)|_9),this.initFunction(q),this.options.ecmaVersion>=8)q.async=!!Z;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,q.params=this.toAssignableList(Q,!0),this.parseFunctionBody(q,!0,!1,Y),this.yieldPos=H,this.awaitPos=V,this.awaitIdentPos=K,this.finishNode(q,"ArrowFunctionExpression")};u.parseFunctionBody=function(q,Q,Z,Y){var H=Q&&this.type!==O.braceL,V=this.strict,K=!1;if(H)q.body=this.parseMaybeAssign(Y),q.expression=!0,this.checkParams(q,!1);else{var G=this.options.ecmaVersion>=7&&!this.isSimpleParamList(q.params);if(!V||G){if(K=this.strictDirective(this.end),K&&G)this.raiseRecoverable(q.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var W=this.labels;if(this.labels=[],K)this.strict=!0;if(this.checkParams(q,!V&&!K&&!Q&&!Z&&this.isSimpleParamList(q.params)),this.strict&&q.id)this.checkLValSimple(q.id,z2);q.body=this.parseBlock(!1,void 0,K&&!V),q.expression=!1,this.adaptDirectivePrologue(q.body.body),this.labels=W}this.exitScope()};u.isSimpleParamList=function(q){for(var Q=0,Z=q;Q<Z.length;Q+=1){var Y=Z[Q];if(Y.type!=="Identifier")return!1}return!0};u.checkParams=function(q,Q){var Z=Object.create(null);for(var Y=0,H=q.params;Y<H.length;Y+=1){var V=H[Y];this.checkLValInnerPattern(V,u9,Q?null:Z)}};u.parseExprList=function(q,Q,Z,Y){var H=[],V=!0;while(!this.eat(q)){if(!V){if(this.expect(O.comma),Q&&this.afterTrailingComma(q))break}else V=!1;var K=void 0;if(Z&&this.type===O.comma)K=null;else if(this.type===O.ellipsis){if(K=this.parseSpread(Y),Y&&this.type===O.comma&&Y.trailingComma<0)Y.trailingComma=this.start}else K=this.parseMaybeAssign(!1,Y);H.push(K)}return H};u.checkUnreserved=function(q){var{start:Q,end:Z,name:Y}=q;if(this.inGenerator&&Y==="yield")this.raiseRecoverable(Q,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&Y==="await")this.raiseRecoverable(Q,"Cannot use 'await' as identifier inside an async function");if(!(this.currentThisScope().flags&$0)&&Y==="arguments")this.raiseRecoverable(Q,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(Y==="arguments"||Y==="await"))this.raise(Q,"Cannot use "+Y+" in class static initialization block");if(this.keywords.test(Y))this.raise(Q,"Unexpected keyword '"+Y+"'");if(this.options.ecmaVersion<6&&this.input.slice(Q,Z).indexOf("\\")!==-1)return;var H=this.strict?this.reservedWordsStrict:this.reservedWords;if(H.test(Y)){if(!this.inAsync&&Y==="await")this.raiseRecoverable(Q,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(Q,"The keyword '"+Y+"' is reserved")}};u.parseIdent=function(q){var Q=this.parseIdentNode();if(this.next(!!q),this.finishNode(Q,"Identifier"),!q){if(this.checkUnreserved(Q),Q.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=Q.start}return Q};u.parseIdentNode=function(){var q=this.startNode();if(this.type===O.name)q.name=this.value;else if(this.type.keyword){if(q.name=this.type.keyword,(q.name==="class"||q.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop();this.type=O.name}else this.unexpected();return q};u.parsePrivateIdent=function(){var q=this.startNode();if(this.type===O.privateId)q.name=this.value;else this.unexpected();if(this.next(),this.finishNode(q,"PrivateIdentifier"),this.options.checkPrivateFields)if(this.privateNameStack.length===0)this.raise(q.start,"Private field '#"+q.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(q);return q};u.parseYield=function(q){if(!this.yieldPos)this.yieldPos=this.start;var Q=this.startNode();if(this.next(),this.type===O.semi||this.canInsertSemicolon()||this.type!==O.star&&!this.type.startsExpr)Q.delegate=!1,Q.argument=null;else Q.delegate=this.eat(O.star),Q.argument=this.parseMaybeAssign(q);return this.finishNode(Q,"YieldExpression")};u.parseAwait=function(q){if(!this.awaitPos)this.awaitPos=this.start;var Q=this.startNode();return this.next(),Q.argument=this.parseMaybeUnary(null,!0,!1,q),this.finishNode(Q,"AwaitExpression")};var R0=H8.prototype;R0.raise=function(q,Q){var Z=y9(this.input,q);if(Q+=" ("+Z.line+":"+Z.column+")",this.sourceFile)Q+=" in "+this.sourceFile;var Y=SyntaxError(Q);throw Y.pos=q,Y.loc=Z,Y.raisedAt=this.pos,Y};R0.raiseRecoverable=R0.raise;R0.curPosition=function(){if(this.options.locations)return new O1(this.curLine,this.pos-this.lineStart)};var t8=H8.prototype,vq=function(Q){this.flags=Q,this.var=[],this.lexical=[],this.functions=[]};t8.enterScope=function(q){this.scopeStack.push(new vq(q))};t8.exitScope=function(){this.scopeStack.pop()};t8.treatFunctionsAsVarInScope=function(q){return q.flags&W1||!this.inModule&&q.flags&V1};t8.declareName=function(q,Q,Z){var Y=!1;if(Q===o8){var H=this.currentScope();if(Y=H.lexical.indexOf(q)>-1||H.functions.indexOf(q)>-1||H.var.indexOf(q)>-1,H.lexical.push(q),this.inModule&&H.flags&V1)delete this.undefinedExports[q]}else if(Q===G2){var V=this.currentScope();V.lexical.push(q)}else if(Q===W2){var K=this.currentScope();if(this.treatFunctionsAsVar)Y=K.lexical.indexOf(q)>-1;else Y=K.lexical.indexOf(q)>-1||K.var.indexOf(q)>-1;K.functions.push(q)}else for(var G=this.scopeStack.length-1;G>=0;--G){var W=this.scopeStack[G];if(W.lexical.indexOf(q)>-1&&!(W.flags&K2&&W.lexical[0]===q)||!this.treatFunctionsAsVarInScope(W)&&W.functions.indexOf(q)>-1){Y=!0;break}if(W.var.push(q),this.inModule&&W.flags&V1)delete this.undefinedExports[q];if(W.flags&$0)break}if(Y)this.raiseRecoverable(Z,"Identifier '"+q+"' has already been declared")};t8.checkLocalExport=function(q){if(this.scopeStack[0].lexical.indexOf(q.name)===-1&&this.scopeStack[0].var.indexOf(q.name)===-1)this.undefinedExports[q.name]=q};t8.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};t8.currentVarScope=function(){for(var q=this.scopeStack.length-1;;q--){var Q=this.scopeStack[q];if(Q.flags&($0|E1|G1))return Q}};t8.currentThisScope=function(){for(var q=this.scopeStack.length-1;;q--){var Q=this.scopeStack[q];if(Q.flags&($0|E1|G1)&&!(Q.flags&_9))return Q}};var v1=function(Q,Z,Y){if(this.type="",this.start=Z,this.end=0,Q.options.locations)this.loc=new k1(Q,Y);if(Q.options.directSourceFile)this.sourceFile=Q.options.directSourceFile;if(Q.options.ranges)this.range=[Z,0]},h1=H8.prototype;h1.startNode=function(){return new v1(this,this.start,this.startLoc)};h1.startNodeAt=function(q,Q){return new v1(this,q,Q)};function U2(q,Q,Z,Y){if(q.type=Q,q.end=Z,this.options.locations)q.loc.end=Y;if(this.options.ranges)q.range[1]=Z;return q}h1.finishNode=function(q,Q){return U2.call(this,q,Q,this.lastTokEnd,this.lastTokEndLoc)};h1.finishNodeAt=function(q,Q,Z,Y){return U2.call(this,q,Q,Z,Y)};h1.copyNode=function(q){var Q=new v1(this,q.start,this.startLoc);for(var Z in q)Q[Z]=q[Z];return Q};var hq="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",R2="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",B2=R2+" Extended_Pictographic",F2=B2,M2=F2+" EBase EComp EMod EPres ExtPict",$2=M2,fq=$2,yq={9:R2,10:B2,11:F2,12:M2,13:$2,14:fq},gq="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",_q={9:"",10:"",11:"",12:"",13:"",14:gq},t7="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",L2="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",A2=L2+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",C2=A2+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",w2=C2+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",I2=w2+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",xq=I2+" "+hq,uq={9:L2,10:A2,11:C2,12:w2,13:I2,14:xq},P2={};function mq(q){var Q=P2[q]={binary:r8(yq[q]+" "+t7),binaryOfStrings:r8(_q[q]),nonBinary:{General_Category:r8(t7),Script:r8(uq[q])}};Q.nonBinary.Script_Extensions=Q.nonBinary.Script,Q.nonBinary.gc=Q.nonBinary.General_Category,Q.nonBinary.sc=Q.nonBinary.Script,Q.nonBinary.scx=Q.nonBinary.Script_Extensions}for(T1=0,z0=[9,10,11,12,13,14];T1<z0.length;T1+=1)h9=z0[T1],mq(h9);var h9,T1,z0,v=H8.prototype,B0=function(Q,Z){this.parent=Q,this.base=Z||this};B0.prototype.separatedFrom=function(Q){for(var Z=this;Z;Z=Z.parent)for(var Y=Q;Y;Y=Y.parent)if(Z.base===Y.base&&Z!==Y)return!0;return!1};B0.prototype.sibling=function(){return new B0(this.parent,this.base)};var u8=function(Q){this.parser=Q,this.validFlags="gim"+(Q.options.ecmaVersion>=6?"uy":"")+(Q.options.ecmaVersion>=9?"s":"")+(Q.options.ecmaVersion>=13?"d":"")+(Q.options.ecmaVersion>=15?"v":""),this.unicodeProperties=P2[Q.options.ecmaVersion>=14?14:Q.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};u8.prototype.reset=function(Q,Z,Y){var H=Y.indexOf("v")!==-1,V=Y.indexOf("u")!==-1;if(this.start=Q|0,this.source=Z+"",this.flags=Y,H&&this.parser.options.ecmaVersion>=15)this.switchU=!0,this.switchV=!0,this.switchN=!0;else this.switchU=V&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=V&&this.parser.options.ecmaVersion>=9};u8.prototype.raise=function(Q){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+Q)};u8.prototype.at=function(Q,Z){if(Z===void 0)Z=!1;var Y=this.source,H=Y.length;if(Q>=H)return-1;var V=Y.charCodeAt(Q);if(!(Z||this.switchU)||V<=55295||V>=57344||Q+1>=H)return V;var K=Y.charCodeAt(Q+1);return K>=56320&&K<=57343?(V<<10)+K-56613888:V};u8.prototype.nextIndex=function(Q,Z){if(Z===void 0)Z=!1;var Y=this.source,H=Y.length;if(Q>=H)return H;var V=Y.charCodeAt(Q),K;if(!(Z||this.switchU)||V<=55295||V>=57344||Q+1>=H||(K=Y.charCodeAt(Q+1))<56320||K>57343)return Q+1;return Q+2};u8.prototype.current=function(Q){if(Q===void 0)Q=!1;return this.at(this.pos,Q)};u8.prototype.lookahead=function(Q){if(Q===void 0)Q=!1;return this.at(this.nextIndex(this.pos,Q),Q)};u8.prototype.advance=function(Q){if(Q===void 0)Q=!1;this.pos=this.nextIndex(this.pos,Q)};u8.prototype.eat=function(Q,Z){if(Z===void 0)Z=!1;if(this.current(Z)===Q)return this.advance(Z),!0;return!1};u8.prototype.eatChars=function(Q,Z){if(Z===void 0)Z=!1;var Y=this.pos;for(var H=0,V=Q;H<V.length;H+=1){var K=V[H],G=this.at(Y,Z);if(G===-1||G!==K)return!1;Y=this.nextIndex(Y,Z)}return this.pos=Y,!0};v.validateRegExpFlags=function(q){var{validFlags:Q,flags:Z}=q,Y=!1,H=!1;for(var V=0;V<Z.length;V++){var K=Z.charAt(V);if(Q.indexOf(K)===-1)this.raise(q.start,"Invalid regular expression flag");if(Z.indexOf(K,V+1)>-1)this.raise(q.start,"Duplicate regular expression flag");if(K==="u")Y=!0;if(K==="v")H=!0}if(this.options.ecmaVersion>=15&&Y&&H)this.raise(q.start,"Invalid regular expression flag")};function lq(q){for(var Q in q)return!0;return!1}v.validateRegExpPattern=function(q){if(this.regexp_pattern(q),!q.switchN&&this.options.ecmaVersion>=9&&lq(q.groupNames))q.switchN=!0,this.regexp_pattern(q)};v.regexp_pattern=function(q){if(q.pos=0,q.lastIntValue=0,q.lastStringValue="",q.lastAssertionIsQuantifiable=!1,q.numCapturingParens=0,q.maxBackReference=0,q.groupNames=Object.create(null),q.backReferenceNames.length=0,q.branchID=null,this.regexp_disjunction(q),q.pos!==q.source.length){if(q.eat(41))q.raise("Unmatched ')'");if(q.eat(93)||q.eat(125))q.raise("Lone quantifier brackets")}if(q.maxBackReference>q.numCapturingParens)q.raise("Invalid escape");for(var Q=0,Z=q.backReferenceNames;Q<Z.length;Q+=1){var Y=Z[Q];if(!q.groupNames[Y])q.raise("Invalid named capture referenced")}};v.regexp_disjunction=function(q){var Q=this.options.ecmaVersion>=16;if(Q)q.branchID=new B0(q.branchID,null);this.regexp_alternative(q);while(q.eat(124)){if(Q)q.branchID=q.branchID.sibling();this.regexp_alternative(q)}if(Q)q.branchID=q.branchID.parent;if(this.regexp_eatQuantifier(q,!0))q.raise("Nothing to repeat");if(q.eat(123))q.raise("Lone quantifier brackets")};v.regexp_alternative=function(q){while(q.pos<q.source.length&&this.regexp_eatTerm(q));};v.regexp_eatTerm=function(q){if(this.regexp_eatAssertion(q)){if(q.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(q)){if(q.switchU)q.raise("Invalid quantifier")}return!0}if(q.switchU?this.regexp_eatAtom(q):this.regexp_eatExtendedAtom(q))return this.regexp_eatQuantifier(q),!0;return!1};v.regexp_eatAssertion=function(q){var Q=q.pos;if(q.lastAssertionIsQuantifiable=!1,q.eat(94)||q.eat(36))return!0;if(q.eat(92)){if(q.eat(66)||q.eat(98))return!0;q.pos=Q}if(q.eat(40)&&q.eat(63)){var Z=!1;if(this.options.ecmaVersion>=9)Z=q.eat(60);if(q.eat(61)||q.eat(33)){if(this.regexp_disjunction(q),!q.eat(41))q.raise("Unterminated group");return q.lastAssertionIsQuantifiable=!Z,!0}}return q.pos=Q,!1};v.regexp_eatQuantifier=function(q,Q){if(Q===void 0)Q=!1;if(this.regexp_eatQuantifierPrefix(q,Q))return q.eat(63),!0;return!1};v.regexp_eatQuantifierPrefix=function(q,Q){return q.eat(42)||q.eat(43)||q.eat(63)||this.regexp_eatBracedQuantifier(q,Q)};v.regexp_eatBracedQuantifier=function(q,Q){var Z=q.pos;if(q.eat(123)){var Y=0,H=-1;if(this.regexp_eatDecimalDigits(q)){if(Y=q.lastIntValue,q.eat(44)&&this.regexp_eatDecimalDigits(q))H=q.lastIntValue;if(q.eat(125)){if(H!==-1&&H<Y&&!Q)q.raise("numbers out of order in {} quantifier");return!0}}if(q.switchU&&!Q)q.raise("Incomplete quantifier");q.pos=Z}return!1};v.regexp_eatAtom=function(q){return this.regexp_eatPatternCharacters(q)||q.eat(46)||this.regexp_eatReverseSolidusAtomEscape(q)||this.regexp_eatCharacterClass(q)||this.regexp_eatUncapturingGroup(q)||this.regexp_eatCapturingGroup(q)};v.regexp_eatReverseSolidusAtomEscape=function(q){var Q=q.pos;if(q.eat(92)){if(this.regexp_eatAtomEscape(q))return!0;q.pos=Q}return!1};v.regexp_eatUncapturingGroup=function(q){var Q=q.pos;if(q.eat(40)){if(q.eat(63)){if(this.options.ecmaVersion>=16){var Z=this.regexp_eatModifiers(q),Y=q.eat(45);if(Z||Y){for(var H=0;H<Z.length;H++){var V=Z.charAt(H);if(Z.indexOf(V,H+1)>-1)q.raise("Duplicate regular expression modifiers")}if(Y){var K=this.regexp_eatModifiers(q);if(!Z&&!K&&q.current()===58)q.raise("Invalid regular expression modifiers");for(var G=0;G<K.length;G++){var W=K.charAt(G);if(K.indexOf(W,G+1)>-1||Z.indexOf(W)>-1)q.raise("Duplicate regular expression modifiers")}}}}if(q.eat(58)){if(this.regexp_disjunction(q),q.eat(41))return!0;q.raise("Unterminated group")}}q.pos=Q}return!1};v.regexp_eatCapturingGroup=function(q){if(q.eat(40)){if(this.options.ecmaVersion>=9)this.regexp_groupSpecifier(q);else if(q.current()===63)q.raise("Invalid group");if(this.regexp_disjunction(q),q.eat(41))return q.numCapturingParens+=1,!0;q.raise("Unterminated group")}return!1};v.regexp_eatModifiers=function(q){var Q="",Z=0;while((Z=q.current())!==-1&&cq(Z))Q+=i8(Z),q.advance();return Q};function cq(q){return q===105||q===109||q===115}v.regexp_eatExtendedAtom=function(q){return q.eat(46)||this.regexp_eatReverseSolidusAtomEscape(q)||this.regexp_eatCharacterClass(q)||this.regexp_eatUncapturingGroup(q)||this.regexp_eatCapturingGroup(q)||this.regexp_eatInvalidBracedQuantifier(q)||this.regexp_eatExtendedPatternCharacter(q)};v.regexp_eatInvalidBracedQuantifier=function(q){if(this.regexp_eatBracedQuantifier(q,!0))q.raise("Nothing to repeat");return!1};v.regexp_eatSyntaxCharacter=function(q){var Q=q.current();if(S2(Q))return q.lastIntValue=Q,q.advance(),!0;return!1};function S2(q){return q===36||q>=40&&q<=43||q===46||q===63||q>=91&&q<=94||q>=123&&q<=125}v.regexp_eatPatternCharacters=function(q){var Q=q.pos,Z=0;while((Z=q.current())!==-1&&!S2(Z))q.advance();return q.pos!==Q};v.regexp_eatExtendedPatternCharacter=function(q){var Q=q.current();if(Q!==-1&&Q!==36&&!(Q>=40&&Q<=43)&&Q!==46&&Q!==63&&Q!==91&&Q!==94&&Q!==124)return q.advance(),!0;return!1};v.regexp_groupSpecifier=function(q){if(q.eat(63)){if(!this.regexp_eatGroupName(q))q.raise("Invalid group");var Q=this.options.ecmaVersion>=16,Z=q.groupNames[q.lastStringValue];if(Z)if(Q)for(var Y=0,H=Z;Y<H.length;Y+=1){var V=H[Y];if(!V.separatedFrom(q.branchID))q.raise("Duplicate capture group name")}else q.raise("Duplicate capture group name");if(Q)(Z||(q.groupNames[q.lastStringValue]=[])).push(q.branchID);else q.groupNames[q.lastStringValue]=!0}};v.regexp_eatGroupName=function(q){if(q.lastStringValue="",q.eat(60)){if(this.regexp_eatRegExpIdentifierName(q)&&q.eat(62))return!0;q.raise("Invalid capture group name")}return!1};v.regexp_eatRegExpIdentifierName=function(q){if(q.lastStringValue="",this.regexp_eatRegExpIdentifierStart(q)){q.lastStringValue+=i8(q.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(q))q.lastStringValue+=i8(q.lastIntValue);return!0}return!1};v.regexp_eatRegExpIdentifierStart=function(q){var Q=q.pos,Z=this.options.ecmaVersion>=11,Y=q.current(Z);if(q.advance(Z),Y===92&&this.regexp_eatRegExpUnicodeEscapeSequence(q,Z))Y=q.lastIntValue;if(dq(Y))return q.lastIntValue=Y,!0;return q.pos=Q,!1};function dq(q){return $8(q,!0)||q===36||q===95}v.regexp_eatRegExpIdentifierPart=function(q){var Q=q.pos,Z=this.options.ecmaVersion>=11,Y=q.current(Z);if(q.advance(Z),Y===92&&this.regexp_eatRegExpUnicodeEscapeSequence(q,Z))Y=q.lastIntValue;if(iq(Y))return q.lastIntValue=Y,!0;return q.pos=Q,!1};function iq(q){return h8(q,!0)||q===36||q===95||q===8204||q===8205}v.regexp_eatAtomEscape=function(q){if(this.regexp_eatBackReference(q)||this.regexp_eatCharacterClassEscape(q)||this.regexp_eatCharacterEscape(q)||q.switchN&&this.regexp_eatKGroupName(q))return!0;if(q.switchU){if(q.current()===99)q.raise("Invalid unicode escape");q.raise("Invalid escape")}return!1};v.regexp_eatBackReference=function(q){var Q=q.pos;if(this.regexp_eatDecimalEscape(q)){var Z=q.lastIntValue;if(q.switchU){if(Z>q.maxBackReference)q.maxBackReference=Z;return!0}if(Z<=q.numCapturingParens)return!0;q.pos=Q}return!1};v.regexp_eatKGroupName=function(q){if(q.eat(107)){if(this.regexp_eatGroupName(q))return q.backReferenceNames.push(q.lastStringValue),!0;q.raise("Invalid named reference")}return!1};v.regexp_eatCharacterEscape=function(q){return this.regexp_eatControlEscape(q)||this.regexp_eatCControlLetter(q)||this.regexp_eatZero(q)||this.regexp_eatHexEscapeSequence(q)||this.regexp_eatRegExpUnicodeEscapeSequence(q,!1)||!q.switchU&&this.regexp_eatLegacyOctalEscapeSequence(q)||this.regexp_eatIdentityEscape(q)};v.regexp_eatCControlLetter=function(q){var Q=q.pos;if(q.eat(99)){if(this.regexp_eatControlLetter(q))return!0;q.pos=Q}return!1};v.regexp_eatZero=function(q){if(q.current()===48&&!A0(q.lookahead()))return q.lastIntValue=0,q.advance(),!0;return!1};v.regexp_eatControlEscape=function(q){var Q=q.current();if(Q===116)return q.lastIntValue=9,q.advance(),!0;if(Q===110)return q.lastIntValue=10,q.advance(),!0;if(Q===118)return q.lastIntValue=11,q.advance(),!0;if(Q===102)return q.lastIntValue=12,q.advance(),!0;if(Q===114)return q.lastIntValue=13,q.advance(),!0;return!1};v.regexp_eatControlLetter=function(q){var Q=q.current();if(D2(Q))return q.lastIntValue=Q%32,q.advance(),!0;return!1};function D2(q){return q>=65&&q<=90||q>=97&&q<=122}v.regexp_eatRegExpUnicodeEscapeSequence=function(q,Q){if(Q===void 0)Q=!1;var Z=q.pos,Y=Q||q.switchU;if(q.eat(117)){if(this.regexp_eatFixedHexDigits(q,4)){var H=q.lastIntValue;if(Y&&H>=55296&&H<=56319){var V=q.pos;if(q.eat(92)&&q.eat(117)&&this.regexp_eatFixedHexDigits(q,4)){var K=q.lastIntValue;if(K>=56320&&K<=57343)return q.lastIntValue=(H-55296)*1024+(K-56320)+65536,!0}q.pos=V,q.lastIntValue=H}return!0}if(Y&&q.eat(123)&&this.regexp_eatHexDigits(q)&&q.eat(125)&&pq(q.lastIntValue))return!0;if(Y)q.raise("Invalid unicode escape");q.pos=Z}return!1};function pq(q){return q>=0&&q<=1114111}v.regexp_eatIdentityEscape=function(q){if(q.switchU){if(this.regexp_eatSyntaxCharacter(q))return!0;if(q.eat(47))return q.lastIntValue=47,!0;return!1}var Q=q.current();if(Q!==99&&(!q.switchN||Q!==107))return q.lastIntValue=Q,q.advance(),!0;return!1};v.regexp_eatDecimalEscape=function(q){q.lastIntValue=0;var Q=q.current();if(Q>=49&&Q<=57){do q.lastIntValue=10*q.lastIntValue+(Q-48),q.advance();while((Q=q.current())>=48&&Q<=57);return!0}return!1};var N2=0,p8=1,N8=2;v.regexp_eatCharacterClassEscape=function(q){var Q=q.current();if(oq(Q))return q.lastIntValue=-1,q.advance(),p8;var Z=!1;if(q.switchU&&this.options.ecmaVersion>=9&&((Z=Q===80)||Q===112)){q.lastIntValue=-1,q.advance();var Y;if(q.eat(123)&&(Y=this.regexp_eatUnicodePropertyValueExpression(q))&&q.eat(125)){if(Z&&Y===N8)q.raise("Invalid property name");return Y}q.raise("Invalid property name")}return N2};function oq(q){return q===100||q===68||q===115||q===83||q===119||q===87}v.regexp_eatUnicodePropertyValueExpression=function(q){var Q=q.pos;if(this.regexp_eatUnicodePropertyName(q)&&q.eat(61)){var Z=q.lastStringValue;if(this.regexp_eatUnicodePropertyValue(q)){var Y=q.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(q,Z,Y),p8}}if(q.pos=Q,this.regexp_eatLoneUnicodePropertyNameOrValue(q)){var H=q.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(q,H)}return N2};v.regexp_validateUnicodePropertyNameAndValue=function(q,Q,Z){if(!U1(q.unicodeProperties.nonBinary,Q))q.raise("Invalid property name");if(!q.unicodeProperties.nonBinary[Q].test(Z))q.raise("Invalid property value")};v.regexp_validateUnicodePropertyNameOrValue=function(q,Q){if(q.unicodeProperties.binary.test(Q))return p8;if(q.switchV&&q.unicodeProperties.binaryOfStrings.test(Q))return N8;q.raise("Invalid property name")};v.regexp_eatUnicodePropertyName=function(q){var Q=0;q.lastStringValue="";while(T2(Q=q.current()))q.lastStringValue+=i8(Q),q.advance();return q.lastStringValue!==""};function T2(q){return D2(q)||q===95}v.regexp_eatUnicodePropertyValue=function(q){var Q=0;q.lastStringValue="";while(nq(Q=q.current()))q.lastStringValue+=i8(Q),q.advance();return q.lastStringValue!==""};function nq(q){return T2(q)||A0(q)}v.regexp_eatLoneUnicodePropertyNameOrValue=function(q){return this.regexp_eatUnicodePropertyValue(q)};v.regexp_eatCharacterClass=function(q){if(q.eat(91)){var Q=q.eat(94),Z=this.regexp_classContents(q);if(!q.eat(93))q.raise("Unterminated character class");if(Q&&Z===N8)q.raise("Negated character class may contain strings");return!0}return!1};v.regexp_classContents=function(q){if(q.current()===93)return p8;if(q.switchV)return this.regexp_classSetExpression(q);return this.regexp_nonEmptyClassRanges(q),p8};v.regexp_nonEmptyClassRanges=function(q){while(this.regexp_eatClassAtom(q)){var Q=q.lastIntValue;if(q.eat(45)&&this.regexp_eatClassAtom(q)){var Z=q.lastIntValue;if(q.switchU&&(Q===-1||Z===-1))q.raise("Invalid character class");if(Q!==-1&&Z!==-1&&Q>Z)q.raise("Range out of order in character class")}}};v.regexp_eatClassAtom=function(q){var Q=q.pos;if(q.eat(92)){if(this.regexp_eatClassEscape(q))return!0;if(q.switchU){var Z=q.current();if(Z===99||E2(Z))q.raise("Invalid class escape");q.raise("Invalid escape")}q.pos=Q}var Y=q.current();if(Y!==93)return q.lastIntValue=Y,q.advance(),!0;return!1};v.regexp_eatClassEscape=function(q){var Q=q.pos;if(q.eat(98))return q.lastIntValue=8,!0;if(q.switchU&&q.eat(45))return q.lastIntValue=45,!0;if(!q.switchU&&q.eat(99)){if(this.regexp_eatClassControlLetter(q))return!0;q.pos=Q}return this.regexp_eatCharacterClassEscape(q)||this.regexp_eatCharacterEscape(q)};v.regexp_classSetExpression=function(q){var Q=p8,Z;if(this.regexp_eatClassSetRange(q));else if(Z=this.regexp_eatClassSetOperand(q)){if(Z===N8)Q=N8;var Y=q.pos;while(q.eatChars([38,38])){if(q.current()!==38&&(Z=this.regexp_eatClassSetOperand(q))){if(Z!==N8)Q=p8;continue}q.raise("Invalid character in character class")}if(Y!==q.pos)return Q;while(q.eatChars([45,45])){if(this.regexp_eatClassSetOperand(q))continue;q.raise("Invalid character in character class")}if(Y!==q.pos)return Q}else q.raise("Invalid character in character class");for(;;){if(this.regexp_eatClassSetRange(q))continue;if(Z=this.regexp_eatClassSetOperand(q),!Z)return Q;if(Z===N8)Q=N8}};v.regexp_eatClassSetRange=function(q){var Q=q.pos;if(this.regexp_eatClassSetCharacter(q)){var Z=q.lastIntValue;if(q.eat(45)&&this.regexp_eatClassSetCharacter(q)){var Y=q.lastIntValue;if(Z!==-1&&Y!==-1&&Z>Y)q.raise("Range out of order in character class");return!0}q.pos=Q}return!1};v.regexp_eatClassSetOperand=function(q){if(this.regexp_eatClassSetCharacter(q))return p8;return this.regexp_eatClassStringDisjunction(q)||this.regexp_eatNestedClass(q)};v.regexp_eatNestedClass=function(q){var Q=q.pos;if(q.eat(91)){var Z=q.eat(94),Y=this.regexp_classContents(q);if(q.eat(93)){if(Z&&Y===N8)q.raise("Negated character class may contain strings");return Y}q.pos=Q}if(q.eat(92)){var H=this.regexp_eatCharacterClassEscape(q);if(H)return H;q.pos=Q}return null};v.regexp_eatClassStringDisjunction=function(q){var Q=q.pos;if(q.eatChars([92,113])){if(q.eat(123)){var Z=this.regexp_classStringDisjunctionContents(q);if(q.eat(125))return Z}else q.raise("Invalid escape");q.pos=Q}return null};v.regexp_classStringDisjunctionContents=function(q){var Q=this.regexp_classString(q);while(q.eat(124))if(this.regexp_classString(q)===N8)Q=N8;return Q};v.regexp_classString=function(q){var Q=0;while(this.regexp_eatClassSetCharacter(q))Q++;return Q===1?p8:N8};v.regexp_eatClassSetCharacter=function(q){var Q=q.pos;if(q.eat(92)){if(this.regexp_eatCharacterEscape(q)||this.regexp_eatClassSetReservedPunctuator(q))return!0;if(q.eat(98))return q.lastIntValue=8,!0;return q.pos=Q,!1}var Z=q.current();if(Z<0||Z===q.lookahead()&&sq(Z))return!1;if(aq(Z))return!1;return q.advance(),q.lastIntValue=Z,!0};function sq(q){return q===33||q>=35&&q<=38||q>=42&&q<=44||q===46||q>=58&&q<=64||q===94||q===96||q===126}function aq(q){return q===40||q===41||q===45||q===47||q>=91&&q<=93||q>=123&&q<=125}v.regexp_eatClassSetReservedPunctuator=function(q){var Q=q.current();if(rq(Q))return q.lastIntValue=Q,q.advance(),!0;return!1};function rq(q){return q===33||q===35||q===37||q===38||q===44||q===45||q>=58&&q<=62||q===64||q===96||q===126}v.regexp_eatClassControlLetter=function(q){var Q=q.current();if(A0(Q)||Q===95)return q.lastIntValue=Q%32,q.advance(),!0;return!1};v.regexp_eatHexEscapeSequence=function(q){var Q=q.pos;if(q.eat(120)){if(this.regexp_eatFixedHexDigits(q,2))return!0;if(q.switchU)q.raise("Invalid escape");q.pos=Q}return!1};v.regexp_eatDecimalDigits=function(q){var Q=q.pos,Z=0;q.lastIntValue=0;while(A0(Z=q.current()))q.lastIntValue=10*q.lastIntValue+(Z-48),q.advance();return q.pos!==Q};function A0(q){return q>=48&&q<=57}v.regexp_eatHexDigits=function(q){var Q=q.pos,Z=0;q.lastIntValue=0;while(b2(Z=q.current()))q.lastIntValue=16*q.lastIntValue+k2(Z),q.advance();return q.pos!==Q};function b2(q){return q>=48&&q<=57||q>=65&&q<=70||q>=97&&q<=102}function k2(q){if(q>=65&&q<=70)return 10+(q-65);if(q>=97&&q<=102)return 10+(q-97);return q-48}v.regexp_eatLegacyOctalEscapeSequence=function(q){if(this.regexp_eatOctalDigit(q)){var Q=q.lastIntValue;if(this.regexp_eatOctalDigit(q)){var Z=q.lastIntValue;if(Q<=3&&this.regexp_eatOctalDigit(q))q.lastIntValue=Q*64+Z*8+q.lastIntValue;else q.lastIntValue=Q*8+Z}else q.lastIntValue=Q;return!0}return!1};v.regexp_eatOctalDigit=function(q){var Q=q.current();if(E2(Q))return q.lastIntValue=Q-48,q.advance(),!0;return q.lastIntValue=0,!1};function E2(q){return q>=48&&q<=55}v.regexp_eatFixedHexDigits=function(q,Q){var Z=q.pos;q.lastIntValue=0;for(var Y=0;Y<Q;++Y){var H=q.current();if(!b2(H))return q.pos=Z,!1;q.lastIntValue=16*q.lastIntValue+k2(H),q.advance()}return!0};var C0=function(Q){if(this.type=Q.type,this.value=Q.value,this.start=Q.start,this.end=Q.end,Q.options.locations)this.loc=new k1(Q,Q.startLoc,Q.endLoc);if(Q.options.ranges)this.range=[Q.start,Q.end]},o=H8.prototype;o.next=function(q){if(!q&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new C0(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};o.getToken=function(){return this.next(),new C0(this)};if(typeof Symbol<"u")o[Symbol.iterator]=function(){var q=this;return{next:function(){var Q=q.getToken();return{done:Q.type===O.eof,value:Q}}}};o.nextToken=function(){var q=this.curContext();if(!q||!q.preserveSpace)this.skipSpace();if(this.start=this.pos,this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(O.eof);if(q.override)return q.override(this);else this.readToken(this.fullCharCodeAtPos())};o.readToken=function(q){if($8(q,this.options.ecmaVersion>=6)||q===92)return this.readWord();return this.getTokenFromCode(q)};o.fullCharCodeAt=function(q){var Q=this.input.charCodeAt(q);if(Q<=55295||Q>=56320)return Q;var Z=this.input.charCodeAt(q+1);return Z<=56319||Z>=57344?Q:(Q<<10)+Z-56613888};o.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};o.skipBlockComment=function(){var q=this.options.onComment&&this.curPosition(),Q=this.pos,Z=this.input.indexOf("*/",this.pos+=2);if(Z===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=Z+2,this.options.locations)for(var Y=void 0,H=Q;(Y=Y2(this.input,H,this.pos))>-1;)++this.curLine,H=this.lineStart=Y;if(this.options.onComment)this.options.onComment(!0,this.input.slice(Q+2,Z),Q,this.pos,q,this.curPosition())};o.skipLineComment=function(q){var Q=this.pos,Z=this.options.onComment&&this.curPosition(),Y=this.input.charCodeAt(this.pos+=q);while(this.pos<this.input.length&&!X1(Y))Y=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(Q+q,this.pos),Q,this.pos,Z,this.curPosition())};o.skipSpace=function(){q:while(this.pos<this.input.length){var q=this.input.charCodeAt(this.pos);switch(q){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 q}break;default:if(q>8&&q<14||q>=5760&&f9.test(String.fromCharCode(q)))++this.pos;else break q}}};o.finishToken=function(q,Q){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var Z=this.type;this.type=q,this.value=Q,this.updateContext(Z)};o.readToken_dot=function(){var q=this.input.charCodeAt(this.pos+1);if(q>=48&&q<=57)return this.readNumber(!0);var Q=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&q===46&&Q===46)return this.pos+=3,this.finishToken(O.ellipsis);else return++this.pos,this.finishToken(O.dot)};o.readToken_slash=function(){var q=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(q===61)return this.finishOp(O.assign,2);return this.finishOp(O.slash,1)};o.readToken_mult_modulo_exp=function(q){var Q=this.input.charCodeAt(this.pos+1),Z=1,Y=q===42?O.star:O.modulo;if(this.options.ecmaVersion>=7&&q===42&&Q===42)++Z,Y=O.starstar,Q=this.input.charCodeAt(this.pos+2);if(Q===61)return this.finishOp(O.assign,Z+1);return this.finishOp(Y,Z)};o.readToken_pipe_amp=function(q){var Q=this.input.charCodeAt(this.pos+1);if(Q===q){if(this.options.ecmaVersion>=12){var Z=this.input.charCodeAt(this.pos+2);if(Z===61)return this.finishOp(O.assign,3)}return this.finishOp(q===124?O.logicalOR:O.logicalAND,2)}if(Q===61)return this.finishOp(O.assign,2);return this.finishOp(q===124?O.bitwiseOR:O.bitwiseAND,1)};o.readToken_caret=function(){var q=this.input.charCodeAt(this.pos+1);if(q===61)return this.finishOp(O.assign,2);return this.finishOp(O.bitwiseXOR,1)};o.readToken_plus_min=function(q){var Q=this.input.charCodeAt(this.pos+1);if(Q===q){if(Q===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||B8.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(O.incDec,2)}if(Q===61)return this.finishOp(O.assign,2);return this.finishOp(O.plusMin,1)};o.readToken_lt_gt=function(q){var Q=this.input.charCodeAt(this.pos+1),Z=1;if(Q===q){if(Z=q===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+Z)===61)return this.finishOp(O.assign,Z+1);return this.finishOp(O.bitShift,Z)}if(Q===33&&q===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(Q===61)Z=2;return this.finishOp(O.relational,Z)};o.readToken_eq_excl=function(q){var Q=this.input.charCodeAt(this.pos+1);if(Q===61)return this.finishOp(O.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(q===61&&Q===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(O.arrow);return this.finishOp(q===61?O.eq:O.prefix,1)};o.readToken_question=function(){var q=this.options.ecmaVersion;if(q>=11){var Q=this.input.charCodeAt(this.pos+1);if(Q===46){var Z=this.input.charCodeAt(this.pos+2);if(Z<48||Z>57)return this.finishOp(O.questionDot,2)}if(Q===63){if(q>=12){var Y=this.input.charCodeAt(this.pos+2);if(Y===61)return this.finishOp(O.assign,3)}return this.finishOp(O.coalesce,2)}}return this.finishOp(O.question,1)};o.readToken_numberSign=function(){var q=this.options.ecmaVersion,Q=35;if(q>=13){if(++this.pos,Q=this.fullCharCodeAtPos(),$8(Q,!0)||Q===92)return this.finishToken(O.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+i8(Q)+"'")};o.getTokenFromCode=function(q){switch(q){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(O.parenL);case 41:return++this.pos,this.finishToken(O.parenR);case 59:return++this.pos,this.finishToken(O.semi);case 44:return++this.pos,this.finishToken(O.comma);case 91:return++this.pos,this.finishToken(O.bracketL);case 93:return++this.pos,this.finishToken(O.bracketR);case 123:return++this.pos,this.finishToken(O.braceL);case 125:return++this.pos,this.finishToken(O.braceR);case 58:return++this.pos,this.finishToken(O.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(O.backQuote);case 48:var Q=this.input.charCodeAt(this.pos+1);if(Q===120||Q===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(Q===111||Q===79)return this.readRadixNumber(8);if(Q===98||Q===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(q);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(q);case 124:case 38:return this.readToken_pipe_amp(q);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(q);case 60:case 62:return this.readToken_lt_gt(q);case 61:case 33:return this.readToken_eq_excl(q);case 63:return this.readToken_question();case 126:return this.finishOp(O.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+i8(q)+"'")};o.finishOp=function(q,Q){var Z=this.input.slice(this.pos,this.pos+Q);return this.pos+=Q,this.finishToken(q,Z)};o.readRegexp=function(){var q,Q,Z=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(Z,"Unterminated regular expression");var Y=this.input.charAt(this.pos);if(B8.test(Y))this.raise(Z,"Unterminated regular expression");if(!q){if(Y==="[")Q=!0;else if(Y==="]"&&Q)Q=!1;else if(Y==="/"&&!Q)break;q=Y==="\\"}else q=!1;++this.pos}var H=this.input.slice(Z,this.pos);++this.pos;var V=this.pos,K=this.readWord1();if(this.containsEsc)this.unexpected(V);var G=this.regexpState||(this.regexpState=new u8(this));G.reset(Z,H,K),this.validateRegExpFlags(G),this.validateRegExpPattern(G);var W=null;try{W=new RegExp(H,K)}catch(R){}return this.finishToken(O.regexp,{pattern:H,flags:K,value:W})};o.readInt=function(q,Q,Z){var Y=this.options.ecmaVersion>=12&&Q===void 0,H=Z&&this.input.charCodeAt(this.pos)===48,V=this.pos,K=0,G=0;for(var W=0,R=Q==null?1/0:Q;W<R;++W,++this.pos){var j=this.input.charCodeAt(this.pos),$=void 0;if(Y&&j===95){if(H)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(G===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(W===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");G=j;continue}if(j>=97)$=j-97+10;else if(j>=65)$=j-65+10;else if(j>=48&&j<=57)$=j-48;else $=1/0;if($>=q)break;G=j,K=K*q+$}if(Y&&G===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===V||Q!=null&&this.pos-V!==Q)return null;return K};function tq(q,Q){if(Q)return parseInt(q,8);return parseFloat(q.replace(/_/g,""))}function v2(q){if(typeof BigInt!=="function")return null;return BigInt(q.replace(/_/g,""))}o.readRadixNumber=function(q){var Q=this.pos;this.pos+=2;var Z=this.readInt(q);if(Z==null)this.raise(this.start+2,"Expected number in radix "+q);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)Z=v2(this.input.slice(Q,this.pos)),++this.pos;else if($8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(O.num,Z)};o.readNumber=function(q){var Q=this.pos;if(!q&&this.readInt(10,void 0,!0)===null)this.raise(Q,"Invalid number");var Z=this.pos-Q>=2&&this.input.charCodeAt(Q)===48;if(Z&&this.strict)this.raise(Q,"Invalid number");var Y=this.input.charCodeAt(this.pos);if(!Z&&!q&&this.options.ecmaVersion>=11&&Y===110){var H=v2(this.input.slice(Q,this.pos));if(++this.pos,$8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(O.num,H)}if(Z&&/[89]/.test(this.input.slice(Q,this.pos)))Z=!1;if(Y===46&&!Z)++this.pos,this.readInt(10),Y=this.input.charCodeAt(this.pos);if((Y===69||Y===101)&&!Z){if(Y=this.input.charCodeAt(++this.pos),Y===43||Y===45)++this.pos;if(this.readInt(10)===null)this.raise(Q,"Invalid number")}if($8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var V=tq(this.input.slice(Q,this.pos),Z);return this.finishToken(O.num,V)};o.readCodePoint=function(){var q=this.input.charCodeAt(this.pos),Q;if(q===123){if(this.options.ecmaVersion<6)this.unexpected();var Z=++this.pos;if(Q=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,Q>1114111)this.invalidStringToken(Z,"Code point out of bounds")}else Q=this.readHexChar(4);return Q};o.readString=function(q){var Q="",Z=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var Y=this.input.charCodeAt(this.pos);if(Y===q)break;if(Y===92)Q+=this.input.slice(Z,this.pos),Q+=this.readEscapedChar(!1),Z=this.pos;else if(Y===8232||Y===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(X1(Y))this.raise(this.start,"Unterminated string constant");++this.pos}}return Q+=this.input.slice(Z,this.pos++),this.finishToken(O.string,Q)};var h2={};o.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(q){if(q===h2)this.readInvalidTemplateToken();else throw q}this.inTemplateElement=!1};o.invalidStringToken=function(q,Q){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw h2;else this.raise(q,Q)};o.readTmplToken=function(){var q="",Q=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var Z=this.input.charCodeAt(this.pos);if(Z===96||Z===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===O.template||this.type===O.invalidTemplate))if(Z===36)return this.pos+=2,this.finishToken(O.dollarBraceL);else return++this.pos,this.finishToken(O.backQuote);return q+=this.input.slice(Q,this.pos),this.finishToken(O.template,q)}if(Z===92)q+=this.input.slice(Q,this.pos),q+=this.readEscapedChar(!0),Q=this.pos;else if(X1(Z)){switch(q+=this.input.slice(Q,this.pos),++this.pos,Z){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:q+=`
30
+ `;break;default:q+=String.fromCharCode(Z);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;Q=this.pos}else++this.pos}};o.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(O.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":if(this.input[this.pos+1]===`
31
+ `)++this.pos;case`
32
+ `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};o.readEscapedChar=function(q){var Q=this.input.charCodeAt(++this.pos);switch(++this.pos,Q){case 110:return`
33
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return i8(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(q){var Z=this.pos-1;this.invalidStringToken(Z,"Invalid escape sequence in template string")}default:if(Q>=48&&Q<=55){var Y=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],H=parseInt(Y,8);if(H>255)Y=Y.slice(0,-1),H=parseInt(Y,8);if(this.pos+=Y.length-1,Q=this.input.charCodeAt(this.pos),(Y!=="0"||Q===56||Q===57)&&(this.strict||q))this.invalidStringToken(this.pos-1-Y.length,q?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(H)}if(X1(Q)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(Q)}};o.readHexChar=function(q){var Q=this.pos,Z=this.readInt(16,q);if(Z===null)this.invalidStringToken(Q,"Bad character escape sequence");return Z};o.readWord1=function(){this.containsEsc=!1;var q="",Q=!0,Z=this.pos,Y=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var H=this.fullCharCodeAtPos();if(h8(H,Y))this.pos+=H<=65535?1:2;else if(H===92){this.containsEsc=!0,q+=this.input.slice(Z,this.pos);var V=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var K=this.readCodePoint();if(!(Q?$8:h8)(K,Y))this.invalidStringToken(V,"Invalid Unicode escape");q+=i8(K),Z=this.pos}else break;Q=!1}return q+this.input.slice(Z,this.pos)};o.readWord=function(){var q=this.readWord1(),Q=O.name;if(this.keywords.test(q))Q=F0[q];return this.finishToken(Q,q)};var f2="8.17.0";H8.acorn={Parser:H8,version:f2,defaultOptions:j0,Position:O1,SourceLocation:k1,getLineInfo:y9,Node:v1,TokenType:s,tokTypes:O,keywordTypes:F0,TokContext:D8,tokContexts:Z8,isIdentifierChar:h8,isIdentifierStart:$8,Token:C0,isNewLine:X1,lineBreak:B8,lineBreakG:Z2,nonASCIIwhitespace:f9};function eq(q,Q){return H8.parse(q,Q)}function qQ(q,Q,Z){return H8.parseExpressionAt(q,Q,Z)}function QQ(q,Q){return H8.tokenizer(q,Q)}var L8=!0,ZQ=new WeakMap;function YQ(q){let Q=q.Parser.acorn||q,Z=ZQ.get(Q);if(!Z){let G=function(N){return N===B.name||N===B.string||N===B.num||I.includes(N)||E.includes(N)},W=function(N){return N===B.name||I.includes(N)||E.includes(N)},R=function(N){return N===B.name||E.includes(N)},j=function(N){return N===k.abstract||N===k.declare||N===k.enum||N===k.module||N===k.namespace||N===k.interface||N===k.type},$=function(N){return N===k.keyof||N===k.readonly||N===k.unique},M=function(N){return N===B.invalidTemplate},{tokTypes:B,keywordTypes:S}=Q,I=Object.values(S),k=K(),E=Object.values(k),x=V(),F=H(),P=new RegExp(`^(?:${Object.keys(k).join("|")})$`);x.jsxTagStart.updateContext=function(){this.context.push(F.tc_expr),this.context.push(F.tc_oTag),this.exprAllowed=!1},x.jsxTagEnd.updateContext=function(N){let m=this.context.pop();if(m===F.tc_oTag&&N===B.slash||m===F.tc_cTag)this.context.pop(),this.exprAllowed=this.curContext()===F.tc_expr;else this.exprAllowed=!0},Z={tokTypes:{...k,...x},tokContexts:{...F},keywordsRegExp:P,tokenIsLiteralPropertyName:G,tokenIsKeywordOrIdentifier:W,tokenIsIdentifier:R,tokenIsTSDeclarationStart:j,tokenIsTSTypeOperator:$,tokenIsTemplate:M}}return Z;function Y(G,W={}){return new Q.TokenType("name",W)}function H(){return{tc_oTag:new Q.TokContext("<tag",!1,!1),tc_cTag:new Q.TokContext("</tag",!1,!1),tc_expr:new Q.TokContext("<tag>...</tag>",!0,!0)}}function V(){return{at:new Q.TokenType("@"),jsxName:new Q.TokenType("jsxName"),jsxText:new Q.TokenType("jsxText",{beforeExpr:!0}),jsxTagStart:new Q.TokenType("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new Q.TokenType("jsxTagEnd")}}function K(){return{assert:Y("assert",{startsExpr:L8}),asserts:Y("asserts",{startsExpr:L8}),global:Y("global",{startsExpr:L8}),keyof:Y("keyof",{startsExpr:L8}),readonly:Y("readonly",{startsExpr:L8}),unique:Y("unique",{startsExpr:L8}),abstract:Y("abstract",{startsExpr:L8}),declare:Y("declare",{startsExpr:L8}),enum:Y("enum",{startsExpr:L8}),module:Y("module",{startsExpr:L8}),namespace:Y("namespace",{startsExpr:L8}),interface:Y("interface",{startsExpr:L8}),type:Y("type",{startsExpr:L8})}}}var HQ=512,f1=1024,B1=1,S0=2,JQ=4,d9=8,KQ=16,m2=64,l2=128,VQ=256,XQ=512,c2=1024,wK=B1|S0|d9|l2,IK=B1|0|d9|0,PK=B1|0|JQ|0,SK=B1|0|KQ|0,DK=0|S0|0|l2,NK=0|S0|0|0,WQ=B1|S0|d9|VQ,TK=0|c2,bK=0|m2,kK=B1|0|0|m2,EK=WQ|XQ,vK=0|c2,d2=4,i2=2,p2=1,hK=i2|p2,fK=i2|d2,yK=p2|d2,GQ=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y,y2=new RegExp("(?=("+GQ.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),y1=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function zQ(q,Q){let Z=Q.key.name,Y=q[Z],H="true";if(Q.type==="MethodDefinition"&&(Q.kind==="get"||Q.kind==="set"))H=(Q.static?"s":"i")+Q.kind;if(Y==="iget"&&H==="iset"||Y==="iset"&&H==="iget"||Y==="sget"&&H==="sset"||Y==="sset"&&H==="sget")return q[Z]="true",!1;else if(!Y)return q[Z]=H,!1;else return!0}function g2(q,Q){let{computed:Z,key:Y}=q;return!Z&&(Y.type==="Identifier"&&Y.name===Q||Y.type==="Literal"&&Y.value===Q)}var f={AbstractMethodHasImplementation:({methodName:q})=>`Method '${q}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:q})=>`Property '${q}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",CannotFindName:({name:q})=>`Cannot find name '${q}'.`,ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:q})=>`'declare' is not allowed in ${q}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:()=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:q})=>`Duplicate modifier: '${q}'.`,EmptyHeritageClauseType:({token:q})=>`'${q}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:({modifiers:q})=>`'${q[0]}' modifier cannot be used with '${q[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:q})=>`Index signatures cannot have an accessibility modifier ('${q}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:q})=>`'${q}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:q})=>`'${q}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:q})=>`'${q}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:q})=>`'${q[0]}' modifier must precede '${q[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:q})=>`Private elements cannot have an accessibility modifier ('${q}').`,PrivateMethodsHasAccessibility:({modifier:q})=>`Private methods cannot have an accessibility modifier ('${q}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:q})=>`Single type parameter ${q} should have a trailing comma. Example usage: <${q},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",GenericsEndWithComma:"Trailing comma is not allowed at the end of generics.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:q})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${q}.`,LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},P0={UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",TrailingDecorator:"Decorators must be attached to a class element.",SpreadElementDecorator:"Decorators can't be used with SpreadElement"};function jQ(q,Q,Z){let{tokTypes:Y}=Z,{tokTypes:H}=Q;return class extends q{takeDecorators(K){let G=this.decoratorStack[this.decoratorStack.length-1];if(G.length)K.decorators=G,this.resetStartLocationFromNode(K,G[0]),this.decoratorStack[this.decoratorStack.length-1]=[]}parseDecorators(K){let G=this.decoratorStack[this.decoratorStack.length-1];while(this.match(H.at)){let W=this.parseDecorator();G.push(W)}if(this.match(Y._export)){if(!K)this.unexpected()}else if(!this.canHaveLeadingDecorator())this.raise(this.start,P0.UnexpectedLeadingDecorator)}parseDecorator(){let K=this.startNode();this.next(),this.decoratorStack.push([]);let G=this.start,W=this.startLoc,R;if(this.match(Y.parenL)){let j=this.start,$=this.startLoc;if(this.next(),R=this.parseExpression(),this.expect(Y.parenR),this.options.preserveParens){let M=this.startNodeAt(j,$);M.expression=R,R=this.finishNode(M,"ParenthesizedExpression")}}else{R=this.parseIdent(!1);while(this.eat(Y.dot)){let j=this.startNodeAt(G,W);j.object=R,j.property=this.parseIdent(!0),j.computed=!1,R=this.finishNode(j,"MemberExpression")}}return K.expression=this.parseMaybeDecoratorArguments(R),this.decoratorStack.pop(),this.finishNode(K,"Decorator")}parseMaybeDecoratorArguments(K){if(this.eat(Y.parenL)){let G=this.startNodeAtNode(K);return G.callee=K,G.arguments=this.parseExprList(Y.parenR,!1),this.finishNode(G,"CallExpression")}return K}}}var OQ={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},UQ=/^[\da-fA-F]+$/,RQ=/^\d+$/;function g1(q){if(!q)return q;if(q.type==="JSXIdentifier")return q.name;if(q.type==="JSXNamespacedName")return q.namespace.name+":"+q.name.name;if(q.type==="JSXMemberExpression")return g1(q.object)+"."+g1(q.property)}function BQ(q,Q,Z,Y){let H=q.tokTypes,V=Q.tokTypes,K=q.isNewLine,G=q.isIdentifierChar,W=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},Y||{});return class extends Z{jsx_readToken(){let j="",$=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated JSX contents");let M=this.input.charCodeAt(this.pos);switch(M){case 60:case 123:if(this.pos===this.start){if(M===60&&this.exprAllowed)return++this.pos,this.finishToken(V.jsxTagStart);return this.getTokenFromCode(M)}return j+=this.input.slice($,this.pos),this.finishToken(V.jsxText,j);case 38:j+=this.input.slice($,this.pos),j+=this.jsx_readEntity(),$=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(M===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:if(K(M))j+=this.input.slice($,this.pos),j+=this.jsx_readNewLine(!0),$=this.pos;else++this.pos}}}jsx_readNewLine(j){let $=this.input.charCodeAt(this.pos),M;if(++this.pos,$===13&&this.input.charCodeAt(this.pos)===10)++this.pos,M=j?`
34
+ `:`\r
35
+ `;else M=String.fromCharCode($);if(this.options.locations)++this.curLine,this.lineStart=this.pos;return M}jsx_readString(j){let $="",M=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");let B=this.input.charCodeAt(this.pos);if(B===j)break;if(B===38)$+=this.input.slice(M,this.pos),$+=this.jsx_readEntity(),M=this.pos;else if(K(B))$+=this.input.slice(M,this.pos),$+=this.jsx_readNewLine(!1),M=this.pos;else++this.pos}return $+=this.input.slice(M,this.pos++),this.finishToken(H.string,$)}jsx_readEntity(){let j="",$=0,M,B=this.input[this.pos];if(B!=="&")this.raise(this.pos,"Entity must start with an ampersand");let S=++this.pos;while(this.pos<this.input.length&&$++<10){if(B=this.input[this.pos++],B===";"){if(j[0]==="#"){if(j[1]==="x"){if(j=j.substr(2),UQ.test(j))M=String.fromCharCode(parseInt(j,16))}else if(j=j.substr(1),RQ.test(j))M=String.fromCharCode(parseInt(j,10))}else M=OQ[j];break}j+=B}if(!M)return this.pos=S,"&";return M}jsx_readWord(){let j,$=this.pos;do j=this.input.charCodeAt(++this.pos);while(G(j)||j===45);return this.finishToken(V.jsxName,this.input.slice($,this.pos))}jsx_parseIdentifier(){let j=this.startNode();if(this.type===V.jsxName)j.name=this.value;else if(this.type.keyword)j.name=this.type.keyword;else this.unexpected();return this.next(),this.finishNode(j,"JSXIdentifier")}jsx_parseNamespacedName(){let j=this.start,$=this.startLoc,M=this.jsx_parseIdentifier();if(!W.allowNamespaces||!this.eat(H.colon))return M;var B=this.startNodeAt(j,$);return B.namespace=M,B.name=this.jsx_parseIdentifier(),this.finishNode(B,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===V.jsxTagEnd)return"";let j=this.start,$=this.startLoc,M=this.jsx_parseNamespacedName();if(this.type===H.dot&&M.type==="JSXNamespacedName"&&!W.allowNamespacedObjects)this.unexpected();while(this.eat(H.dot)){let B=this.startNodeAt(j,$);B.object=M,B.property=this.jsx_parseIdentifier(),M=this.finishNode(B,"JSXMemberExpression")}return M}jsx_parseAttributeValue(){switch(this.type){case H.braceL:let j=this.jsx_parseExpressionContainer();if(j.expression.type==="JSXEmptyExpression")this.raise(j.start,"JSX attributes must only be assigned a non-empty expression");return j;case V.jsxTagStart:case H.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let j=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(j,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let j=this.startNode();return this.next(),j.expression=this.type===H.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(H.braceR),this.finishNode(j,"JSXExpressionContainer")}jsx_parseAttribute(){let j=this.startNode();if(this.eat(H.braceL))return this.expect(H.ellipsis),j.argument=this.parseMaybeAssign(),this.expect(H.braceR),this.finishNode(j,"JSXSpreadAttribute");return j.name=this.jsx_parseNamespacedName(),j.value=this.eat(H.eq)?this.jsx_parseAttributeValue():null,this.finishNode(j,"JSXAttribute")}jsx_parseOpeningElementAt(j,$){let M=this.startNodeAt(j,$);M.attributes=[];let B=this.jsx_parseElementName();if(B)M.name=B;while(this.type!==H.slash&&this.type!==V.jsxTagEnd)M.attributes.push(this.jsx_parseAttribute());return M.selfClosing=this.eat(H.slash),this.expect(V.jsxTagEnd),this.finishNode(M,B?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(j,$){let M=this.startNodeAt(j,$),B=this.jsx_parseElementName();if(B)M.name=B;return this.expect(V.jsxTagEnd),this.finishNode(M,B?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(j,$){let M=this.startNodeAt(j,$),B=[],S=this.jsx_parseOpeningElementAt(j,$),I=null;if(!S.selfClosing){q:for(;;)switch(this.type){case V.jsxTagStart:if(j=this.start,$=this.startLoc,this.next(),this.eat(H.slash)){I=this.jsx_parseClosingElementAt(j,$);break q}B.push(this.jsx_parseElementAt(j,$));break;case V.jsxText:B.push(this.parseExprAtom());break;case H.braceL:B.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}if(g1(I.name)!==g1(S.name))this.raise(I.start,"Expected corresponding JSX closing tag for <"+g1(S.name)+">")}let k=S.name?"Element":"Fragment";if(M["opening"+k]=S,M["closing"+k]=I,M.children=B,this.type===H.relational&&this.value==="<")this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag");return this.finishNode(M,"JSX"+k)}jsx_parseText(){let j=this.parseLiteral(this.value);return j.type="JSXText",j}jsx_parseElement(){let j=this.start,$=this.startLoc;return this.next(),this.jsx_parseElementAt(j,$)}}}function FQ(q,Q,Z){let{tokTypes:Y}=Q,{tokTypes:H}=Z;return class extends q{parseMaybeImportAttributes(K){if(this.type===H._with||this.type===Y.assert){this.next();let G=this.parseImportAttributes();if(G)K.attributes=G}}parseImportAttributes(){this.expect(H.braceL);let K=this.parseWithEntries();return this.expect(H.braceR),K}parseWithEntries(){let K=[],G=new Set;do{if(this.type===H.braceR)break;let W=this.startNode(),R;if(this.type===H.string)R=this.parseLiteral(this.value);else R=this.parseIdent(!0);if(this.next(),W.key=R,G.has(W.key.name))this.raise(this.pos,"Duplicated key in attributes");if(G.add(W.key.name),this.type!==H.string)this.raise(this.pos,"Only string is supported as an attribute value");W.value=this.parseLiteral(this.value),K.push(this.finishNode(W,"ImportAttribute"))}while(this.eat(H.comma));return K}}}var l9=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function _2(q){if(!q)throw Error("Assert fail")}function MQ(q){return q==="accessor"}function $Q(q){return q==="in"||q==="out"}var I0=1,x2=2,LQ=4,q8={SCOPE_TOP:1,SCOPE_FUNCTION:2,SCOPE_ASYNC:4,SCOPE_GENERATOR:8,SCOPE_ARROW:16,SCOPE_SIMPLE_CATCH:32,SCOPE_SUPER:64,SCOPE_DIRECT_SUPER:128,SCOPE_CLASS_STATIC_BLOCK:256,SCOPE_VAR:256,BIND_NONE:0,BIND_VAR:1,BIND_LEXICAL:2,BIND_FUNCTION:3,BIND_SIMPLE_CATCH:4,BIND_OUTSIDE:5,BIND_TS_TYPE:6,BIND_TS_INTERFACE:7,BIND_TS_NAMESPACE:1032,BIND_FLAGS_TS_EXPORT_ONLY:1024,BIND_FLAGS_TS_IMPORT:4096,BIND_FLAGS_TS_ENUM:256,BIND_FLAGS_TS_CONST_ENUM:512,BIND_FLAGS_CLASS:128};function c9(q,Q){return q8.SCOPE_FUNCTION|(q?q8.SCOPE_ASYNC:0)|(Q?q8.SCOPE_GENERATOR:0)}function AQ(q){if(q.type!=="MemberExpression")return!1;let{computed:Q,property:Z}=q;if(Q&&(Z.type!=="TemplateLiteral"||Z.expressions.length>0))return!1;return o2(q.object)}function o2(q){if(q.type==="Identifier")return!0;if(q.type!=="MemberExpression")return!1;if(q.computed)return!1;return o2(q.object)}function u2(q){return q==="private"||q==="public"||q==="protected"}function CQ(q){return Boolean(q.startsExpr)}function wQ(q){if(q==null)throw Error(`Unexpected ${q} value.`);return q}function IQ(q){switch(q){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function n2(q){let{dts:Q=!1}=q||{},Z=!!q?.jsx;return function(Y){let H=Y.acorn||w0,V=YQ(H),K=H.tokTypes,G=H.keywordTypes,W=H.isIdentifierStart,R=H.lineBreak,j=H.isNewLine,$=H.tokContexts,M=H.isIdentifierChar,{tokTypes:B,tokContexts:S,keywordsRegExp:I,tokenIsLiteralPropertyName:k,tokenIsTemplate:E,tokenIsTSDeclarationStart:x,tokenIsIdentifier:F,tokenIsKeywordOrIdentifier:P,tokenIsTSTypeOperator:N}=V;function m(J,X,z=J.length){for(let U=X;U<z;U++){let L=J.charCodeAt(U);if(j(L))return U<z-1&&L===13&&J.charCodeAt(U+1)===10?U+2:U+1}return-1}if(Y=jQ(Y,V,H),q?.jsx)Y=BQ(H,V,Y,typeof q.jsx==="boolean"?{}:q.jsx);Y=FQ(Y,V,H);class T extends Y{constructor(J,X,z){super(J,X,z);this.preValue=null,this.preToken=null,this.isLookahead=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.inType=!1,this.inDisallowConditionalTypesContext=!1,this.maybeInArrowParameters=!1,this.shouldParseArrowReturnType=void 0,this.shouldParseAsyncArrowReturnType=void 0,this.decoratorStack=[[]],this.importsStack=[[]],this.importOrExportOuterKind=void 0,this.tsParseConstModifier=(U)=>{this.tsParseModifiers({modified:U,allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:f.InvalidModifierOnTypeParameterPositions})},this.ecmaVersion=this.options.ecmaVersion}static get acornTypeScript(){return V}get acornTypeScript(){return V}getTokenFromCodeInType(J){if(J===62)return this.finishOp(K.relational,1);if(J===60)return this.finishOp(K.relational,1);return super.getTokenFromCode(J)}readToken(J){if(!this.inType){let X=this.curContext();if(X===S.tc_expr)return this.jsx_readToken();if(X===S.tc_oTag||X===S.tc_cTag){if(W(J))return this.jsx_readWord();if(J==62)return++this.pos,this.finishToken(B.jsxTagEnd);if((J===34||J===39)&&X==S.tc_oTag)return this.jsx_readString(J)}if(J===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)if(++this.pos,q?.jsx)return this.finishToken(B.jsxTagStart);else return this.finishToken(K.relational,"<")}return super.readToken(J)}getTokenFromCode(J){if(this.inType)return this.getTokenFromCodeInType(J);if(J===64)return++this.pos,this.finishToken(B.at);return super.getTokenFromCode(J)}isAbstractClass(){return this.ts_isContextual(B.abstract)&&this.lookahead().type===K._class}finishNode(J,X){if(J.type!==""&&J.end!==0)return J;return super.finishNode(J,X)}tryParse(J,X=this.cloneCurLookaheadState()){let z={node:null};try{return{node:J((L=null)=>{throw z.node=L,z}),error:null,thrown:!1,aborted:!1,failState:null}}catch(U){let L=this.getCurLookaheadState();if(this.setLookaheadState(X),U instanceof SyntaxError)return{node:null,error:U,thrown:!0,aborted:!1,failState:L};if(U===z)return{node:z.node,error:null,thrown:!1,aborted:!0,failState:L};throw U}}setOptionalParametersError(J,X){J.optionalParametersLoc=X?.loc??this.startLoc}reScan_lt_gt(){if(this.type===K.relational)this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos())}reScan_lt(){let{type:J}=this;if(J===K.bitShift)return this.pos-=2,this.finishOp(K.relational,1),K.relational;return J}resetEndLocation(J,X=this.lastTokEnd,z=this.lastTokEndLoc){if(J.end=X,J.loc.end=z,this.options.ranges)J.range[1]=X}startNodeAtNode(J){return super.startNodeAt(J.start,J.loc.start)}nextTokenStart(){return this.nextTokenStartSince(this.pos)}tsHasSomeModifiers(J,X){return X.some((z)=>{if(u2(z))return J.accessibility===z;return!!J[z]})}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&this.lookaheadCharCode()===123}tsCheckForInvalidTypeCasts(J){J.forEach((X)=>{if(X?.type==="TSTypeCastExpression")this.raise(X.typeAnnotation.start,f.UnexpectedTypeAnnotation)})}atPossibleAsyncArrow(J){return J.type==="Identifier"&&J.name==="async"&&this.lastTokEnd===J.end&&!this.canInsertSemicolon()&&J.end-J.start===5&&J.start===this.potentialArrowAt}tsIsIdentifier(){return F(this.type)}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(K.colon)?this.tsParseTypeOrTypePredicateAnnotation(K.colon):void 0}tsTryParseGenericAsyncArrowFunction(J,X,z){if(!this.tsMatchLeftRelational())return;let U=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let L=this.tsTryParseAndCatch(()=>{let A=this.startNodeAt(J,X);return A.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(A),A.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(K.arrow),A});if(this.maybeInArrowParameters=U,!L)return;return super.parseArrowExpression(L,null,!0,z)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==K.relational)return;return this.tsParseTypeArguments()}tsInNoContext(J){let X=this.context;this.context=[X[0]];try{return J()}finally{this.context=X}}tsTryParseTypeAnnotation(){return this.match(K.colon)?this.tsParseTypeAnnotation():void 0}isUnparsedContextual(J,X){let z=J+X.length;if(this.input.slice(J,z)===X){let U=this.input.charCodeAt(z);return!(M(U)||(U&64512)===55296)}return!1}isAbstractConstructorSignature(){return this.ts_isContextual(B.abstract)&&this.lookahead().type===K._new}nextTokenStartSince(J){return l9.lastIndex=J,l9.test(this.input)?l9.lastIndex:J}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}compareLookaheadState(J,X){for(let z of Object.keys(J))if(J[z]!==X[z])return!1;return!0}createLookaheadState(){this.value=null,this.context=[this.curContext()]}getCurLookaheadState(){return{endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context,startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}}cloneCurLookaheadState(){return{pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context&&this.context.slice(),startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}}setLookaheadState(J){this.pos=J.pos,this.value=J.value,this.endLoc=J.endLoc,this.lastTokEnd=J.lastTokEnd,this.lastTokStart=J.lastTokStart,this.lastTokStartLoc=J.lastTokStartLoc,this.type=J.type,this.start=J.start,this.end=J.end,this.context=J.context,this.startLoc=J.startLoc,this.lastTokEndLoc=J.lastTokEndLoc,this.curLine=J.curLine,this.lineStart=J.lineStart,this.curPosition=J.curPosition,this.containsEsc=J.containsEsc}tsLookAhead(J){let X=this.getCurLookaheadState(),z=J();return this.setLookaheadState(X),z}lookahead(J){let X=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,J!==void 0)for(let U=0;U<J;U++)this.nextToken();else this.nextToken();this.isLookahead=!1;let z=this.getCurLookaheadState();return this.setLookaheadState(X),z}readWord(){let J=this.readWord1(),X=K.name;if(this.keywords.test(J))X=G[J];else if(new RegExp(I).test(J))X=B[J];return this.finishToken(X,J)}skipBlockComment(){let J;if(!this.isLookahead)J=this.options.onComment&&this.curPosition();let X=this.pos,z=this.input.indexOf("*/",this.pos+=2);if(z===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=z+2,this.options.locations)for(let U,L=X;(U=m(this.input,L,this.pos))>-1;)++this.curLine,L=this.lineStart=U;if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!0,this.input.slice(X+2,z),X,this.pos,J,this.curPosition())}skipLineComment(J){let X=this.pos,z;if(!this.isLookahead)z=this.options.onComment&&this.curPosition();let U=this.input.charCodeAt(this.pos+=J);while(this.pos<this.input.length&&!j(U))U=this.input.charCodeAt(++this.pos);if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!1,this.input.slice(X+J,this.pos),X,this.pos,z,this.curPosition())}finishToken(J,X){if(this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();let z=this.type;if(this.type=J,this.value=X,!this.isLookahead)this.updateContext(z)}resetStartLocation(J,X,z){if(J.start=X,J.loc.start=z,this.options.ranges)J.range[0]=X}isLineTerminator(){return this.eat(K.semi)||super.canInsertSemicolon()}hasFollowingLineBreak(){return y2.lastIndex=this.end,y2.test(this.input)}addExtra(J,X,z,U=!0){if(!J)return;let L=J.extra=J.extra||{};if(U)L[X]=z;else Object.defineProperty(L,X,{enumerable:U,value:z})}isLiteralPropertyName(){return k(this.type)}hasPrecedingLineBreak(){return R.test(this.input.slice(this.lastTokEnd,this.start))}createIdentifier(J,X){return J.name=X,this.finishNode(J,"Identifier")}resetStartLocationFromNode(J,X){this.resetStartLocation(J,X.start,X.loc.start)}isThisParam(J){return J.type==="Identifier"&&J.name==="this"}isLookaheadContextual(J){let X=this.nextTokenStart();return this.isUnparsedContextual(X,J)}ts_type_isContextual(J,X){return J===X&&!this.containsEsc}ts_isContextual(J){return this.type===J&&!this.containsEsc}ts_isContextualWithState(J,X){return J.type===X&&!J.containsEsc}isContextualWithState(J,X){return X.type===K.name&&X.value===J&&!X.containsEsc}tsIsStartOfMappedType(){if(this.next(),this.eat(K.plusMin))return this.ts_isContextual(B.readonly);if(this.ts_isContextual(B.readonly))this.next();if(!this.match(K.bracketL))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(K._in)}tsInDisallowConditionalTypesContext(J){let X=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return J()}finally{this.inDisallowConditionalTypesContext=X}}tsTryParseType(){return this.tsEatThenParseType(K.colon)}match(J){return this.type===J}matchJsx(J){return this.type===V.tokTypes[J]}ts_eatWithState(J,X,z){let U=z.type;if(J===U){for(let L=0;L<X;L++)this.next();return!0}else return!1}ts_eatContextualWithState(J,X,z){if(I.test(J)){if(this.ts_isContextualWithState(z,B[J])){for(let U=0;U<X;U++)this.next();return!0}return!1}else{if(!this.isContextualWithState(J,z))return!1;for(let U=0;U<X;U++)this.next();return!0}}canHaveLeadingDecorator(){return this.match(K._class)||this.isAbstractClass()}eatContextual(J){if(I.test(J)){if(this.ts_isContextual(B[J]))return this.next(),!0;return!1}else return super.eatContextual(J)}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookaheadCharCode()===40}tsParseExternalModuleReference(){let J=this.startNode();if(this.expectContextual("require"),this.expect(K.parenL),!this.match(K.string))this.unexpected();return J.expression=this.parseExprAtom(),this.expect(K.parenR),this.finishNode(J,"TSExternalModuleReference")}tsParseEntityName(J=!0){let X=this.parseIdent(J);while(this.eat(K.dot)){let z=this.startNodeAtNode(X);z.left=X,z.right=this.parseIdent(J),X=this.finishNode(z,"TSQualifiedName")}return X}tsParseEnumMember(){let J=this.startNode();if(J.id=this.match(K.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(K.eq))J.initializer=this.parseMaybeAssign();return this.finishNode(J,"TSEnumMember")}tsParseEnumDeclaration(J,X={}){if(X.const)J.const=!0;if(X.declare)J.declare=!0;return this.expectContextual("enum"),J.id=this.parseIdent(),this.checkLValSimple(J.id),this.expect(K.braceL),J.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(K.braceR),this.finishNode(J,"TSEnumDeclaration")}tsParseModuleBlock(){let J=this.startNode();this.enterScope(HQ),this.expect(K.braceL),J.body=[];while(this.type!==K.braceR){let X=this.parseStatement(null,!0);J.body.push(X)}return this.next(),super.exitScope(),this.finishNode(J,"TSModuleBlock")}tsParseAmbientExternalModuleDeclaration(J){if(this.ts_isContextual(B.global))J.global=!0,J.id=this.parseIdent();else if(this.match(K.string))J.id=this.parseLiteral(this.value);else this.unexpected();if(this.match(K.braceL))this.enterScope(f1),J.body=this.tsParseModuleBlock(),super.exitScope();else super.semicolon();return this.finishNode(J,"TSModuleDeclaration")}tsTryParseDeclare(J){if(this.isLineTerminator())return;let X=this.type,z;if(this.isContextual("let"))X=K._var,z="let";return this.tsInAmbientContext(()=>{if(X===K._function)return J.declare=!0,this.parseFunctionStatement(J,!1,!0);if(X===K._class)return J.declare=!0,this.parseClass(J,!0);if(X===B.enum)return this.tsParseEnumDeclaration(J,{declare:!0});if(X===B.global)return this.tsParseAmbientExternalModuleDeclaration(J);if(X===K._const||X===K._var){if(!this.match(K._const)||!this.isLookaheadContextual("enum"))return J.declare=!0,this.parseVarStatement(J,z||this.value,!0);return this.expect(K._const),this.tsParseEnumDeclaration(J,{const:!0,declare:!0})}if(X===B.interface){let U=this.tsParseInterfaceDeclaration(J,{declare:!0});if(U)return U}if(F(X))return this.tsParseDeclaration(J,this.value,!0)})}tsIsListTerminator(J){switch(J){case"EnumMembers":case"TypeMembers":return this.match(K.braceR);case"HeritageClauseElement":return this.match(K.braceL);case"TupleElementTypes":return this.match(K.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}}tsParseDelimitedListWorker(J,X,z,U){let L=[],A=-1;for(;;){if(this.tsIsListTerminator(J))break;A=-1;let C=X();if(C==null)return;if(L.push(C),this.eat(K.comma)){A=this.lastTokStart;continue}if(this.tsIsListTerminator(J))break;if(z)this.expect(K.comma);return}if(U)U.value=A;return L}tsParseDelimitedList(J,X,z){return wQ(this.tsParseDelimitedListWorker(J,X,!0,z))}tsParseBracketedList(J,X,z,U,L){if(!U)if(z)this.expect(K.bracketL);else this.expect(K.relational);let A=this.tsParseDelimitedList(J,X,L);if(z)this.expect(K.bracketR);else this.expect(K.relational);return A}tsParseTypeParameterName(){return this.parseIdent().name}tsEatThenParseType(J){return!this.match(J)?void 0:this.tsNextThenParseType()}tsExpectThenParseType(J){return this.tsDoThenParseType(()=>this.expect(J))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(J){return this.tsInType(()=>{return J(),this.tsParseType()})}tsSkipParameterStart(){if(F(this.type)||this.match(K._this))return this.next(),!0;if(this.match(K.braceL))try{return this.parseObj(!0),!0}catch{return!1}if(this.match(K.bracketL)){this.next();try{return this.parseBindingList(K.bracketR,!0,!0),!0}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(K.parenR)||this.match(K.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(K.colon)||this.match(K.comma)||this.match(K.question)||this.match(K.eq))return!0;if(this.match(K.parenR)){if(this.next(),this.match(K.arrow))return!0}}return!1}tsIsStartOfFunctionType(){if(this.tsMatchLeftRelational())return!0;return this.match(K.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsInAllowConditionalTypesContext(J){let X=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return J()}finally{this.inDisallowConditionalTypesContext=X}}tsParseBindingListForSignature(){return super.parseBindingList(K.parenR,!0,!0).map((J)=>{if(J.type!=="Identifier"&&J.type!=="RestElement"&&J.type!=="ObjectPattern"&&J.type!=="ArrayPattern")this.raise(J.start,f.UnsupportedSignatureParameterKind({type:J.type}));return J})}tsParseTypePredicateAsserts(){if(this.type!==B.asserts)return!1;let J=this.containsEsc;if(this.next(),!F(this.type)&&!this.match(K._this))return!1;if(J)this.raise(this.lastTokStart,"Escape sequence in keyword asserts");return!0}tsParseThisTypeNode(){let J=this.startNode();return this.next(),this.finishNode(J,"TSThisType")}tsParseTypeAnnotation(J=!0,X=this.startNode()){return this.tsInType(()=>{if(J)this.expect(K.colon);X.typeAnnotation=this.tsParseType()}),this.finishNode(X,"TSTypeAnnotation")}tsParseThisTypePredicate(J){this.next();let X=this.startNodeAtNode(J);return X.parameterName=J,X.typeAnnotation=this.tsParseTypeAnnotation(!1),X.asserts=!1,this.finishNode(X,"TSTypePredicate")}tsParseThisTypeOrThisTypePredicate(){let J=this.tsParseThisTypeNode();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(J);else return J}tsParseTypePredicatePrefix(){let J=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),J}tsParseTypeOrTypePredicateAnnotation(J){return this.tsInType(()=>{let X=this.startNode();this.expect(J);let z=this.startNode(),U=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(U&&this.match(K._this)){let C=this.tsParseThisTypeOrThisTypePredicate();if(C.type==="TSThisType")z.parameterName=C,z.asserts=!0,z.typeAnnotation=null,C=this.finishNode(z,"TSTypePredicate");else this.resetStartLocationFromNode(C,z),C.asserts=!0;return X.typeAnnotation=C,this.finishNode(X,"TSTypeAnnotation")}let L=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!L){if(!U)return this.tsParseTypeAnnotation(!1,X);return z.parameterName=this.parseIdent(),z.asserts=U,z.typeAnnotation=null,X.typeAnnotation=this.finishNode(z,"TSTypePredicate"),this.finishNode(X,"TSTypeAnnotation")}let A=this.tsParseTypeAnnotation(!1);return z.parameterName=L,z.typeAnnotation=A,z.asserts=U,X.typeAnnotation=this.finishNode(z,"TSTypePredicate"),this.finishNode(X,"TSTypeAnnotation")})}tsFillSignature(J,X){let z=J===K.arrow,U="parameters",L="typeAnnotation";if(X.typeParameters=this.tsTryParseTypeParameters(),this.expect(K.parenL),X.parameters=this.tsParseBindingListForSignature(),z)X.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(J);else if(this.match(J))X.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(J)}tsTryNextParseConstantContext(){if(this.lookahead().type!==K._const)return null;this.next();let J=this.tsParseTypeReference();if(J.typeParameters||J.typeArguments)this.raise(J.typeName.start,f.CannotFindName({name:"const"}));return J}tsParseFunctionOrConstructorType(J,X){let z=this.startNode();if(J==="TSConstructorType"){if(z.abstract=!!X,X)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(K.arrow,z)),this.finishNode(z,J)}tsParseUnionOrIntersectionType(J,X,z){let U=this.startNode(),L=this.eat(z),A=[];do A.push(X());while(this.eat(z));if(A.length===1&&!L)return A[0];return U.types=A,this.finishNode(U,J)}tsCheckTypeAnnotationForReadOnly(J){switch(J.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(J.start,f.UnexpectedReadonly)}}tsParseTypeOperator(){let J=this.startNode(),X=this.value;if(this.next(),J.operator=X,J.typeAnnotation=this.tsParseTypeOperatorOrHigher(),X==="readonly")this.tsCheckTypeAnnotationForReadOnly(J);return this.finishNode(J,"TSTypeOperator")}tsParseConstraintForInferType(){if(this.eat(K._extends)){let J=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.inDisallowConditionalTypesContext||!this.match(K.question))return J}}tsParseInferType(){let J=this.startNode();this.expectContextual("infer");let X=this.startNode();return X.name=this.tsParseTypeParameterName(),X.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),J.typeParameter=this.finishNode(X,"TSTypeParameter"),this.finishNode(J,"TSInferType")}tsParseLiteralTypeNode(){let J=this.startNode();return J.literal=(()=>{switch(this.type){case K.num:case K.string:case K._true:case K._false:return this.parseExprAtom();default:this.unexpected()}})(),this.finishNode(J,"TSLiteralType")}tsParseImportType(){let J=this.startNode();if(this.expect(K._import),this.expect(K.parenL),!this.match(K.string))this.raise(this.start,f.UnsupportedImportTypeArgument);if(J.argument=this.parseExprAtom(),this.expect(K.parenR),this.eat(K.dot))J.qualifier=this.tsParseEntityName();if(this.tsMatchLeftRelational())J.typeArguments=this.tsParseTypeArguments();return this.finishNode(J,"TSImportType")}tsParseTypeQuery(){let J=this.startNode();if(this.expect(K._typeof),this.match(K._import))J.exprName=this.tsParseImportType();else J.exprName=this.tsParseEntityName();if(!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())J.typeArguments=this.tsParseTypeArguments();return this.finishNode(J,"TSTypeQuery")}tsParseMappedTypeParameter(){let J=this.startNode();return J.name=this.tsParseTypeParameterName(),J.constraint=this.tsExpectThenParseType(K._in),this.finishNode(J,"TSTypeParameter")}tsParseMappedType(){let J=this.startNode();if(this.expect(K.braceL),this.match(K.plusMin))J.readonly=this.value,this.next(),this.expectContextual("readonly");else if(this.eatContextual("readonly"))J.readonly=!0;if(this.expect(K.bracketL),J.typeParameter=this.tsParseMappedTypeParameter(),J.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(K.bracketR),this.match(K.plusMin))J.optional=this.value,this.next(),this.expect(K.question);else if(this.eat(K.question))J.optional=!0;return J.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(K.braceR),this.finishNode(J,"TSMappedType")}tsParseTypeLiteral(){let J=this.startNode();return J.members=this.tsParseObjectTypeMembers(),this.finishNode(J,"TSTypeLiteral")}tsParseTupleElementType(){let J=this.startLoc,X=this.start,z=this.eat(K.ellipsis),U=this.tsParseType(),L=this.eat(K.question);if(this.eat(K.colon)){let C=this.startNodeAtNode(U);if(C.optional=L,U.type==="TSTypeReference"&&!U.typeArguments&&U.typeName.type==="Identifier")C.label=U.typeName;else this.raise(U.start,f.InvalidTupleMemberLabel),C.label=U;C.elementType=this.tsParseType(),U=this.finishNode(C,"TSNamedTupleMember")}else if(L){let C=this.startNodeAtNode(U);C.typeAnnotation=U,U=this.finishNode(C,"TSOptionalType")}if(z){let C=this.startNodeAt(X,J);C.typeAnnotation=U,U=this.finishNode(C,"TSRestType")}return U}tsParseTupleType(){let J=this.startNode();J.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let X=!1;return J.elementTypes.forEach((z)=>{let{type:U}=z;if(X&&U!=="TSRestType"&&U!=="TSOptionalType"&&!(U==="TSNamedTupleMember"&&z.optional))this.raise(z.start,f.OptionalTypeBeforeRequired);if(X||=U==="TSNamedTupleMember"&&z.optional||U==="TSOptionalType",U==="TSRestType")z=z.typeAnnotation}),this.finishNode(J,"TSTupleType")}tsParseTemplateLiteralType(){let J=this.startNode();return J.literal=this.parseTemplate({isTagged:!1}),this.finishNode(J,"TSLiteralType")}tsParseTypeReference(){let J=this.startNode();if(J.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())J.typeArguments=this.tsParseTypeArguments();return this.finishNode(J,"TSTypeReference")}tsMatchLeftRelational(){return this.match(K.relational)&&this.value==="<"}tsMatchRightRelational(){return this.match(K.relational)&&this.value===">"}tsParseParenthesizedType(){let J=this.startNode();return this.expect(K.parenL),J.typeAnnotation=this.tsParseType(),this.expect(K.parenR),this.finishNode(J,"TSParenthesizedType")}tsParseNonArrayType(){switch(this.type){case K.string:case K.num:case K._true:case K._false:return this.tsParseLiteralTypeNode();case K.plusMin:if(this.value==="-"){let J=this.startNode();if(this.lookahead().type!==K.num)this.unexpected();return J.literal=this.parseMaybeUnary(),this.finishNode(J,"TSLiteralType")}break;case K._this:return this.tsParseThisTypeOrThisTypePredicate();case K._typeof:return this.tsParseTypeQuery();case K._import:return this.tsParseImportType();case K.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case K.bracketL:return this.tsParseTupleType();case K.parenL:return this.tsParseParenthesizedType();case K.backQuote:case K.dollarBraceL:return this.tsParseTemplateLiteralType();default:{let{type:J}=this;if(F(J)||J===K._void||J===K._null){let X=J===K._void?"TSVoidKeyword":J===K._null?"TSNullKeyword":IQ(this.value);if(X!==void 0&&this.lookaheadCharCode()!==46){let z=this.startNode();return this.next(),this.finishNode(z,X)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let J=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(K.bracketL))if(this.match(K.bracketR)){let X=this.startNodeAtNode(J);X.elementType=J,this.expect(K.bracketR),J=this.finishNode(X,"TSArrayType")}else{let X=this.startNodeAtNode(J);X.objectType=J,X.indexType=this.tsParseType(),this.expect(K.bracketR),J=this.finishNode(X,"TSIndexedAccessType")}return J}tsParseTypeOperatorOrHigher(){return N(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),K.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),K.bitwiseOR)}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(K._new))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseType(){_2(this.inType);let J=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(K._extends))return J;let X=this.startNodeAtNode(J);return X.checkType=J,X.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(K.question),X.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(K.colon),X.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(X,"TSConditionalType")}tsIsUnambiguouslyIndexSignature(){if(this.next(),F(this.type))return this.next(),this.match(K.colon);return!1}tsInType(J){let X=this.inType;this.inType=!0;try{return J()}finally{this.inType=X}}tsTryParseIndexSignature(J){if(!(this.match(K.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(K.bracketL);let X=this.parseIdent();X.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(X),this.expect(K.bracketR),J.parameters=[X];let z=this.tsTryParseTypeAnnotation();if(z)J.typeAnnotation=z;return this.tsParseTypeMemberSemicolon(),this.finishNode(J,"TSIndexSignature")}tsParseNoneModifiers(J){this.tsParseModifiers({modified:J,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:f.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(J=this.tsParseNoneModifiers.bind(this)){let X=this.startNode();return J(X),X.name=this.tsParseTypeParameterName(),X.constraint=this.tsEatThenParseType(K._extends),X.default=this.tsEatThenParseType(K.eq),this.finishNode(X,"TSTypeParameter")}tsParseTypeParameters(J){let X=this.startNode();if(this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart"))this.next();else this.unexpected();let z={value:-1};if(X.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,J),!1,!0,z),X.params.length===0)this.raise(this.start,f.EmptyTypeParameters);if(z.value!==-1)this.addExtra(X,"trailingComma",z.value);return this.finishNode(X,"TSTypeParameterDeclaration")}tsTryParseTypeParameters(J){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(J)}tsTryParse(J){let X=this.getCurLookaheadState(),z=J();if(z!==void 0&&z!==!1)return z;else{this.setLookaheadState(X);return}}tsTokenCanFollowModifier(){return(this.match(K.bracketL)||this.match(K.braceL)||this.match(K.star)||this.match(K.ellipsis)||this.match(K.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(!0),this.tsTokenCanFollowModifier()}tsParseModifier(J,X){let z=this.value;if(J.indexOf(z)!==-1&&!this.containsEsc){if(X&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return z}return}tsParseModifiersByMap({modified:J,map:X}){for(let z of Object.keys(X))J[z]=X[z]}tsParseModifiers({modified:J,allowedModifiers:X,disallowedModifiers:z,stopOnStartOfClassStaticBlock:U,errorTemplate:L=f.InvalidModifierOnTypeMember}){let A={},C=(D,w,g,l)=>{if(w===g&&J[l])this.raise(D.column,f.InvalidModifiersOrder({orderedModifiers:[g,l]}))},b=(D,w,g,l)=>{if(J[g]&&w===l||J[l]&&w===g)this.raise(D.column,f.IncompatibleModifiers({modifiers:[g,l]}))};for(;;){let D=this.startLoc,w=this.tsParseModifier(X.concat(z??[]),U);if(!w)break;if(u2(w))if(J.accessibility)this.raise(this.start,f.DuplicateAccessibilityModifier());else C(D,w,w,"override"),C(D,w,w,"static"),C(D,w,w,"readonly"),C(D,w,w,"accessor"),A.accessibility=w,J.accessibility=w;else if($Q(w))if(J[w])this.raise(this.start,f.DuplicateModifier({modifier:w}));else C(D,w,"in","out"),A[w]=w,J[w]=!0;else if(MQ(w))if(J[w])this.raise(this.start,f.DuplicateModifier({modifier:w}));else b(D,w,"accessor","readonly"),b(D,w,"accessor","static"),b(D,w,"accessor","override"),A[w]=w,J[w]=!0;else if(w==="const")if(J[w])this.raise(this.start,f.DuplicateModifier({modifier:w}));else A[w]=w,J[w]=!0;else if(Object.hasOwnProperty.call(J,w))this.raise(this.start,f.DuplicateModifier({modifier:w}));else C(D,w,"static","readonly"),C(D,w,"static","override"),C(D,w,"override","readonly"),C(D,w,"abstract","override"),b(D,w,"declare","override"),b(D,w,"static","abstract"),A[w]=w,J[w]=!0;if(z?.includes(w))this.raise(this.start,L)}return A}tsParseInOutModifiers(J){this.tsParseModifiers({modified:J,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:f.InvalidModifierOnTypeParameter})}parseMaybeUnary(J,X,z,U){if(!q?.jsx&&this.tsMatchLeftRelational())return this.tsParseTypeAssertion();else return super.parseMaybeUnary(J,X,z,U)}tsParseTypeAssertion(){if(Z)this.raise(this.start,f.ReservedTypeAssertion);let J=this.tryParse(()=>{let X=this.startNode(),z=this.tsTryNextParseConstantContext();return X.typeAnnotation=z||this.tsNextThenParseType(),this.expect(K.relational),X.expression=this.parseMaybeUnary(),this.finishNode(X,"TSTypeAssertion")});if(J.error)return this.tsParseTypeParameters(this.tsParseConstModifier);else return J.node}tsParseTypeArguments(){let J=this.startNode();if(J.params=this.tsInType(()=>this.tsInNoContext(()=>{return this.expect(K.relational),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),J.params.length===0)this.raise(this.start,f.EmptyTypeArguments);return this.exprAllowed=!1,this.expect(K.relational),this.finishNode(J,"TSTypeParameterInstantiation")}tsParseHeritageClause(J){let X=this.start,z=this.tsParseDelimitedList("HeritageClauseElement",()=>{let U=this.startNode();if(U.expression=this.tsParseEntityName(),this.tsMatchLeftRelational())U.typeParameters=this.tsParseTypeArguments();return this.finishNode(U,"TSExpressionWithTypeArguments")});if(!z.length)this.raise(X,f.EmptyHeritageClauseType({token:J}));return z}tsParseTypeMemberSemicolon(){if(!this.eat(K.comma)&&!this.isLineTerminator())this.expect(K.semi)}tsTryParseAndCatch(J){let X=this.tryParse((z)=>J()||z());if(X.aborted||!X.node)return;if(X.error)this.setLookaheadState(X.failState);return X.node}tsParseSignatureMember(J,X){return this.tsFillSignature(K.colon,X),this.tsParseTypeMemberSemicolon(),this.finishNode(X,J)}tsParsePropertyOrMethodSignature(J,X){if(this.eat(K.question))J.optional=!0;let z=J;if(this.match(K.parenL)||this.tsMatchLeftRelational()){if(X)this.raise(J.start,f.ReadonlyForMethodSignature);let U=z;if(U.kind&&this.tsMatchLeftRelational())this.raise(this.start,f.AccesorCannotHaveTypeParameters);this.tsFillSignature(K.colon,U),this.tsParseTypeMemberSemicolon();let L="parameters",A="typeAnnotation";if(U.kind==="get"){if(U[L].length>0){if(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(U[L][0]))this.raise(this.start,f.AccesorCannotDeclareThisParameter)}}else if(U.kind==="set"){if(U[L].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{let C=U[L][0];if(this.isThisParam(C))this.raise(this.start,f.AccesorCannotDeclareThisParameter);if(C.type==="Identifier"&&C.optional)this.raise(this.start,f.SetAccesorCannotHaveOptionalParameter);if(C.type==="RestElement")this.raise(this.start,f.SetAccesorCannotHaveRestParameter)}if(U[A])this.raise(U[A].start,f.SetAccesorCannotHaveReturnType)}else U.kind="method";return this.finishNode(U,"TSMethodSignature")}else{let U=z;if(X)U.readonly=!0;let L=this.tsTryParseTypeAnnotation();if(L)U.typeAnnotation=L;return this.tsParseTypeMemberSemicolon(),this.finishNode(U,"TSPropertySignature")}}tsParseTypeMember(){let J=this.startNode();if(this.match(K.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",J);if(this.match(K._new)){let z=this.startNode();if(this.next(),this.match(K.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSConstructSignatureDeclaration",J);else return J.key=this.createIdentifier(z,"new"),this.tsParsePropertyOrMethodSignature(J,!1)}this.tsParseModifiers({modified:J,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]});let X=this.tsTryParseIndexSignature(J);if(X)return X;if(this.parsePropertyName(J),!J.computed&&J.key.type==="Identifier"&&(J.key.name==="get"||J.key.name==="set")&&this.tsTokenCanFollowModifier())J.kind=J.key.name,this.parsePropertyName(J);return this.tsParsePropertyOrMethodSignature(J,!!J.readonly)}tsParseList(J,X){let z=[];while(!this.tsIsListTerminator(J))z.push(X());return z}tsParseObjectTypeMembers(){this.expect(K.braceL);let J=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(K.braceR),J}tsParseInterfaceDeclaration(J,X={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual("interface"),X.declare)J.declare=!0;if(F(this.type))J.id=this.parseIdent(),this.checkLValSimple(J.id,q8.BIND_TS_INTERFACE);else J.id=null,this.raise(this.start,f.MissingInterfaceName);if(J.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(K._extends))J.extends=this.tsParseHeritageClause("extends");let z=this.startNode();return z.body=this.tsParseInterfaceBody(),J.body=this.finishNode(z,"TSInterfaceBody"),this.finishNode(J,"TSInterfaceDeclaration")}tsParseInterfaceBody(){this.expect(K.braceL);let J=this.inType;this.inType=!0;let X=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.inType=J,this.expect(K.braceR),X}tsParseAbstractDeclaration(J){if(this.match(K._class))return J.abstract=!0,this.parseClass(J,!0);else if(this.ts_isContextual(B.interface)){if(!this.hasFollowingLineBreak())return J.abstract=!0,this.tsParseInterfaceDeclaration(J)}else this.unexpected(J.start)}tsIsDeclarationStart(){return x(this.type)}tsParseExpressionStatement(J,X){switch(X.name){case"declare":{let z=this.tsTryParseDeclare(J);if(z)return z.declare=!0,z;break}case"global":if(this.match(K.braceL)){this.enterScope(f1);let z=J;return z.global=!0,z.id=X,z.body=this.tsParseModuleBlock(),super.exitScope(),this.finishNode(z,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(J,X.name,!1)}}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsIsExportDefaultSpecifier(){let{type:J}=this,X=this.isAsyncFunction(),z=this.isLet();if(F(J)){if(X&&!this.containsEsc||z)return!1;if((J===B.type||J===B.interface)&&!this.containsEsc){let A=this.lookahead();if(F(A.type)&&!this.isContextualWithState("from",A)||A.type===K.braceL)return!1}}else if(!this.match(K._default))return!1;let U=this.nextTokenStart(),L=this.isUnparsedContextual(U,"from");if(this.input.charCodeAt(U)===44||F(this.type)&&L)return!0;if(this.match(K._default)&&L){let A=this.input.charCodeAt(this.nextTokenStartSince(U+4));return A===34||A===39}return!1}tsInAmbientContext(J){let X=this.isAmbientContext;this.isAmbientContext=!0;try{return J()}finally{this.isAmbientContext=X}}tsCheckLineTerminator(J){if(J){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsParseModuleOrNamespaceDeclaration(J,X=!1){if(J.id=this.parseIdent(),!X)this.checkLValSimple(J.id,q8.BIND_TS_NAMESPACE);if(this.eat(K.dot)){let z=this.startNode();this.tsParseModuleOrNamespaceDeclaration(z,!0),J.body=z}else this.enterScope(f1),J.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(J,"TSModuleDeclaration")}checkLValSimple(J,X=q8.BIND_NONE,z){if(J.type==="TSNonNullExpression"||J.type==="TSAsExpression")J=J.expression;return super.checkLValSimple(J,X,z)}tsParseTypeAliasDeclaration(J){return J.id=this.parseIdent(),this.checkLValSimple(J.id,q8.BIND_TS_TYPE),J.typeAnnotation=this.tsInType(()=>{if(J.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(K.eq),this.ts_isContextual(B.interface)&&this.lookahead().type!==K.dot){let X=this.startNode();return this.next(),this.finishNode(X,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(J,"TSTypeAliasDeclaration")}tsParseDeclaration(J,X,z){switch(X){case"abstract":if(this.tsCheckLineTerminator(z)&&(this.match(K._class)||F(this.type)))return this.tsParseAbstractDeclaration(J);break;case"module":if(this.tsCheckLineTerminator(z)){if(this.match(K.string))return this.tsParseAmbientExternalModuleDeclaration(J);else if(F(this.type))return this.tsParseModuleOrNamespaceDeclaration(J)}break;case"namespace":if(this.tsCheckLineTerminator(z)&&F(this.type))return this.tsParseModuleOrNamespaceDeclaration(J);break;case"type":if(this.tsCheckLineTerminator(z)&&F(this.type))return this.tsParseTypeAliasDeclaration(J);break}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.value,!0)}tsParseImportEqualsDeclaration(J,X){J.isExport=X||!1,J.id=this.parseIdent(),this.checkLValSimple(J.id,q8.BIND_LEXICAL),super.expect(K.eq);let z=this.tsParseModuleReference();if(J.importKind==="type"&&z.type!=="TSExternalModuleReference")this.raise(z.start,f.ImportAliasHasImportType);return J.moduleReference=z,super.semicolon(),this.finishNode(J,"TSImportEqualsDeclaration")}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;let{type:J}=this;if(F(J)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((J===B.type||J===B.interface)&&!this.containsEsc){let U=this.lookahead();if(F(U.type)&&!this.isContextualWithState("from",U)||U.type===K.braceL)return!1}}else if(!this.match(K._default))return!1;let X=this.nextTokenStart(),z=this.isUnparsedContextual(X,"from");if(this.input.charCodeAt(X)===44||F(this.type)&&z)return!0;if(this.match(K._default)&&z){let U=this.input.charCodeAt(this.nextTokenStartSince(X+4));return U===34||U===39}return!1}parseTemplate({isTagged:J=!1}={}){let X=this.startNode();this.next(),X.expressions=[];let z=this.parseTemplateElement({isTagged:J});X.quasis=[z];while(!z.tail){if(this.type===K.eof)this.raise(this.pos,"Unterminated template literal");this.expect(K.dollarBraceL),X.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(K.braceR),X.quasis.push(z=this.parseTemplateElement({isTagged:J}))}return this.next(),this.finishNode(X,"TemplateLiteral")}parseFunction(J,X,z,U,L){if(this.initFunction(J),this.ecmaVersion>=9||this.ecmaVersion>=6&&!U){if(this.type===K.star&&X&x2)this.unexpected();J.generator=this.eat(K.star)}if(this.ecmaVersion>=8)J.async=!!U;if(X&I0)J.id=X&LQ&&this.type!==K.name?null:this.parseIdent();let A=this.yieldPos,C=this.awaitPos,b=this.awaitIdentPos,D=this.maybeInArrowParameters;if(this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(c9(J.async,J.generator)),!(X&I0))J.id=this.type===K.name?this.parseIdent():null;this.parseFunctionParams(J);let w=X&I0;if(this.parseFunctionBody(J,z,!1,L,{isFunctionDeclaration:w}),this.yieldPos=A,this.awaitPos=C,this.awaitIdentPos=b,X&I0&&J.id&&!(X&x2))if(J.body)this.checkLValSimple(J.id,this.strict||J.generator||J.async?this.treatFunctionsAsVar?q8.BIND_VAR:q8.BIND_LEXICAL:q8.BIND_FUNCTION);else this.checkLValSimple(J.id,q8.BIND_NONE);return this.maybeInArrowParameters=D,this.finishNode(J,w?"FunctionDeclaration":"FunctionExpression")}parseFunctionBody(J,X=!1,z=!1,U=!1,L){if(this.match(K.colon))J.returnType=this.tsParseTypeOrTypePredicateAnnotation(K.colon);let A=L?.isFunctionDeclaration?"TSDeclareFunction":L?.isClassMethod?"TSDeclareMethod":void 0;if(A&&!this.match(K.braceL)&&this.isLineTerminator())return this.exitScope(),this.finishNode(J,A);if(A==="TSDeclareFunction"&&this.isAmbientContext){if(this.raise(J.start,f.DeclareFunctionHasImplementation),J.declare)return super.parseFunctionBody(J,X,z,!1),this.finishNode(J,A)}return super.parseFunctionBody(J,X,z,U),J}parseNew(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");let J=this.startNode(),X=this.parseIdent(!0);if(this.ecmaVersion>=6&&this.eat(K.dot)){J.meta=X;let C=this.containsEsc;if(J.property=this.parseIdent(!0),J.property.name!=="target")this.raiseRecoverable(J.property.start,"The only valid meta property for new is 'new.target'");if(C)this.raiseRecoverable(J.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(J.start,"'new.target' can only be used in functions and class static block");return this.finishNode(J,"MetaProperty")}let z=this.start,U=this.startLoc,L=this.type===K._import;if(J.callee=this.parseSubscripts(this.parseExprAtom(),z,U,!0,!1),L&&J.callee.type==="ImportExpression")this.raise(z,"Cannot use new with import()");let{callee:A}=J;if(A.type==="TSInstantiationExpression"&&!A.extra?.parenthesized)J.typeArguments=A.typeArguments,J.callee=A.expression;if(this.eat(K.parenL))J.arguments=this.parseExprList(K.parenR,this.ecmaVersion>=8,!1);else J.arguments=[];return this.finishNode(J,"NewExpression")}parseExprOp(J,X,z,U,L){if(K._in.binop>U&&!this.hasPrecedingLineBreak()){let A;if(this.isContextual("as"))A="TSAsExpression";if(this.isContextual("satisfies"))A="TSSatisfiesExpression";if(A){let C=this.startNodeAt(X,z);C.expression=J;let b=this.tsTryNextParseConstantContext();if(b)C.typeAnnotation=b;else C.typeAnnotation=this.tsNextThenParseType();return this.finishNode(C,A),this.reScan_lt_gt(),this.parseExprOp(C,X,z,U,L)}}return super.parseExprOp(J,X,z,U,L)}parseImportSpecifiers(){let J=[],X=!0;if(V.tokenIsIdentifier(this.type)){if(J.push(this.parseImportDefaultSpecifier()),!this.eat(K.comma))return J}if(this.type===K.star)return J.push(this.parseImportNamespaceSpecifier()),J;this.expect(K.braceL);while(!this.eat(K.braceR)){if(!X){if(this.expect(K.comma),this.afterTrailingComma(K.braceR))break}else X=!1;J.push(this.parseImportSpecifier())}return J}parseImport(J){let X=this.lookahead();if(J.importKind="value",this.importOrExportOuterKind="value",F(X.type)||this.match(K.star)||this.match(K.braceL)){let z=this.lookahead(2);if(z.type!==K.comma&&!this.isContextualWithState("from",z)&&z.type!==K.eq&&this.ts_eatContextualWithState("type",1,X))this.importOrExportOuterKind="type",J.importKind="type",X=this.lookahead(),z=this.lookahead(2);if(F(X.type)&&z.type===K.eq){this.next();let U=this.tsParseImportEqualsDeclaration(J);return this.importOrExportOuterKind="value",U}}if(this.next(),this.type===K.string)J.specifiers=[],J.source=this.parseExprAtom();else J.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),J.source=this.type===K.string?this.parseExprAtom():this.unexpected();if(this.parseMaybeImportAttributes(J),this.semicolon(),this.finishNode(J,"ImportDeclaration"),this.importOrExportOuterKind="value",J.importKind==="type"&&J.specifiers.length>1&&J.specifiers[0].type==="ImportDefaultSpecifier")this.raise(J.start,f.TypeImportCannotSpecifyDefaultAndNamed);return J}parseExportDefaultDeclaration(){if(this.isAbstractClass()){let J=this.startNode();return this.next(),J.abstract=!0,this.parseClass(J,!0)}if(this.match(B.interface)){let J=this.tsParseInterfaceDeclaration(this.startNode());if(J)return J}return super.parseExportDefaultDeclaration()}parseExportAllDeclaration(J,X){if(this.ecmaVersion>=11)if(this.eatContextual("as"))J.exported=this.parseModuleExportName(),this.checkExport(X,J.exported,this.lastTokStart);else J.exported=null;if(this.expectContextual("from"),this.type!==K.string)this.unexpected();return J.source=this.parseExprAtom(),this.parseMaybeImportAttributes(J),this.semicolon(),this.finishNode(J,"ExportAllDeclaration")}parseDynamicImport(J){if(this.next(),J.source=this.parseMaybeAssign(),this.eat(K.comma)){let X=this.parseExpression();J.arguments=[X]}if(!this.eat(K.parenR)){let X=this.start;if(this.eat(K.comma)&&this.eat(K.parenR))this.raiseRecoverable(X,"Trailing comma is not allowed in import()");else this.unexpected(X)}return this.finishNode(J,"ImportExpression")}parseExport(J,X){let z=this.lookahead();if(this.ts_eatWithState(K._import,2,z)){if(this.ts_isContextual(B.type)&&this.lookaheadCharCode()!==61)J.importKind="type",this.importOrExportOuterKind="type",this.next();else J.importKind="value",this.importOrExportOuterKind="value";let U=this.tsParseImportEqualsDeclaration(J,!0);return this.importOrExportOuterKind=void 0,U}else if(this.ts_eatWithState(K.eq,2,z)){let U=J;return U.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(U,"TSExportAssignment")}else if(this.ts_eatContextualWithState("as",2,z)){let U=J;return this.expectContextual("namespace"),U.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(U,"TSNamespaceExportDeclaration")}else{let U=this.lookahead(2).type;if(this.ts_isContextualWithState(z,B.type)&&(U===K.braceL||U===K.star))this.next(),this.importOrExportOuterKind="type",J.exportKind="type";else this.importOrExportOuterKind="value",J.exportKind="value";if(this.next(),this.eat(K.star))return this.parseExportAllDeclaration(J,X);if(this.eat(K._default))return this.checkExport(X,"default",this.lastTokStart),J.declaration=this.parseExportDefaultDeclaration(),this.finishNode(J,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(J.declaration=this.parseExportDeclaration(J),J.declaration.type==="VariableDeclaration")this.checkVariableExport(X,J.declaration.declarations);else this.checkExport(X,J.declaration.id,J.declaration.id.start);J.specifiers=[],J.source=null}else{if(J.declaration=null,J.specifiers=this.parseExportSpecifiers(X),this.eatContextual("from")){if(this.type!==K.string)this.unexpected();J.source=this.parseExprAtom(),this.parseMaybeImportAttributes(J)}else{for(let L of J.specifiers)if(this.checkUnreserved(L.local),this.checkLocalExport(L.local),L.local.type==="Literal")this.raise(L.local.start,"A string literal cannot be used as an exported binding without `from`.");J.source=null}this.semicolon()}return this.finishNode(J,"ExportNamedDeclaration")}}checkExport(J,X,z){if(!J)return;if(typeof X!=="string")X=X.type==="Identifier"?X.name:X.value;J[X]=!0}parseMaybeDefault(J,X,z){let U=super.parseMaybeDefault(J,X,z);if(U.type==="AssignmentPattern"&&U.typeAnnotation&&U.right.start<U.typeAnnotation.start)this.raise(U.typeAnnotation.start,f.TypeAnnotationAfterAssign);return U}typeCastToParameter(J){return J.expression.typeAnnotation=J.typeAnnotation,this.resetEndLocation(J.expression,J.typeAnnotation.end,J.typeAnnotation.loc?.end),J.expression}toAssignableList(J,X){if(!J)J=[];for(let z=0;z<J.length;z++){let U=J[z];if(U?.type==="TSTypeCastExpression")J[z]=this.typeCastToParameter(U)}return super.toAssignableList(J,X)}reportReservedArrowTypeParam(J){if(J.params.length===1&&!J.extra?.trailingComma&&Z)this.raise(J.start,f.ReservedArrowTypeParam)}parseExprAtom(J,X,z){if(this.type===B.jsxText)return this.jsx_parseText();else if(this.type===B.jsxTagStart)return this.jsx_parseElement();else if(this.type===B.at)return this.parseDecorators(),this.parseExprAtom();else if(F(this.type)){let U=this.potentialArrowAt===this.start,L=this.start,A=this.startLoc,C=this.containsEsc,b=this.parseIdent(!1);if(this.ecmaVersion>=8&&!C&&b.name==="async"&&!this.canInsertSemicolon()&&this.eat(K._function))return this.overrideContext($.f_expr),this.parseFunction(this.startNodeAt(L,A),0,!1,!0,X);if(U&&!this.canInsertSemicolon()){if(this.eat(K.arrow))return this.parseArrowExpression(this.startNodeAt(L,A),[b],!1,X);if(this.ecmaVersion>=8&&b.name==="async"&&this.type===K.name&&!C&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(b=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(K.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(L,A),[b],!0,X)}}return b}else return super.parseExprAtom(J,X,z)}parseExprAtomDefault(){if(F(this.type)){let J=this.potentialArrowAt===this.start,X=this.containsEsc,z=this.parseIdent();if(!X&&z.name==="async"&&!this.canInsertSemicolon()){let{type:U}=this;if(U===K._function)return this.next(),this.parseFunction(this.startNodeAtNode(z),void 0,!0,!0);else if(F(U))if(this.lookaheadCharCode()===61){let L=this.parseIdent(!1);if(this.canInsertSemicolon()||!this.eat(K.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAtNode(z),[L],!0)}else return z}if(J&&this.match(K.arrow)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(z),[z],!1);return z}else this.unexpected()}parseIdentNode(){let J=this.startNode();if(P(this.type)&&!((this.type.keyword==="class"||this.type.keyword==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)))J.name=this.value;else return super.parseIdentNode();return J}parseVarStatement(J,X,z=!1){let{isAmbientContext:U}=this;this.next(),super.parseVar(J,!1,X,z||U),this.semicolon();let L=this.finishNode(J,"VariableDeclaration");if(!U)return L;for(let{id:A,init:C}of L.declarations){if(!C)continue;if(X!=="const"||!!A.typeAnnotation)this.raise(C.start,f.InitializerNotAllowedInAmbientContext);else if(C.type!=="StringLiteral"&&C.type!=="BooleanLiteral"&&C.type!=="NumericLiteral"&&C.type!=="BigIntLiteral"&&(C.type!=="TemplateLiteral"||C.expressions.length>0)&&!AQ(C))this.raise(C.start,f.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference)}return L}parseStatement(J,X,z){if(this.match(B.at))this.parseDecorators(!0);if(this.match(K._const)&&this.isLookaheadContextual("enum")){let U=this.startNode();return this.expect(K._const),this.tsParseEnumDeclaration(U,{const:!0})}if(this.ts_isContextual(B.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(B.interface)){let U=this.tsParseInterfaceDeclaration(this.startNode());if(U)return U}return super.parseStatement(J,X,z)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parsePostMemberNameModifiers(J){if(this.eat(K.question))J.optional=!0;if(J.readonly&&this.match(K.parenL))this.raise(J.start,f.ClassMethodHasReadonly);if(J.declare&&this.match(K.parenL))this.raise(J.start,f.ClassMethodHasDeclare)}parseExpressionStatement(J,X){return(X.type==="Identifier"?this.tsParseExpressionStatement(J,X):void 0)||super.parseExpressionStatement(J,X)}shouldParseExportStatement(){if(this.tsIsDeclarationStart())return!0;if(this.match(B.at))return!0;return super.shouldParseExportStatement()}parseConditional(J,X,z,U,L){if(this.eat(K.question)){let A=this.startNodeAt(X,z);return A.test=J,A.consequent=this.parseMaybeAssign(),this.expect(K.colon),A.alternate=this.parseMaybeAssign(U),this.finishNode(A,"ConditionalExpression")}return J}parseMaybeConditional(J,X){let z=this.start,U=this.startLoc,L=this.parseExprOps(J,X);if(this.checkExpressionErrors(X))return L;if(!this.maybeInArrowParameters||!this.match(K.question))return this.parseConditional(L,z,U,J,X);let A=this.tryParse(()=>this.parseConditional(L,z,U,J,X));if(!A.node){if(A.error)this.setOptionalParametersError(X,A.error);return L}if(A.error)this.setLookaheadState(A.failState);return A.node}parseParenItem(J){let X=this.start,z=this.startLoc;if(J=super.parseParenItem(J),this.eat(K.question))J.optional=!0,this.resetEndLocation(J);if(this.match(K.colon)){let U=this.startNodeAt(X,z);return U.expression=J,U.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(U,"TSTypeCastExpression")}return J}parseExportDeclaration(J){if(!this.isAmbientContext&&this.ts_isContextual(B.declare))return this.tsInAmbientContext(()=>this.parseExportDeclaration(J));let X=this.start,z=this.startLoc,U=this.eatContextual("declare");if(U&&(this.ts_isContextual(B.declare)||!this.shouldParseExportStatement()))this.raise(this.start,f.ExpectedAmbientAfterExportDeclare);let A=F(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);if(!A)return null;if(A.type==="TSInterfaceDeclaration"||A.type==="TSTypeAliasDeclaration"||U)J.exportKind="type";if(U)this.resetStartLocation(A,X,z),A.declare=!0;return A}parseClassId(J,X){if(!X&&this.isContextual("implements"))return;super.parseClassId(J,X);let z=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));if(z)J.typeParameters=z}parseClassPropertyAnnotation(J){if(!J.optional){if(this.value==="!"&&this.eat(K.prefix))J.definite=!0;else if(this.eat(K.question))J.optional=!0}let X=this.tsTryParseTypeAnnotation();if(X)J.typeAnnotation=X}parseClassField(J){if(J.key.type==="PrivateIdentifier"){if(J.abstract)this.raise(J.start,f.PrivateElementHasAbstract);if(J.accessibility)this.raise(J.start,f.PrivateElementHasAccessibility({modifier:J.accessibility}));this.parseClassPropertyAnnotation(J)}else{if(this.parseClassPropertyAnnotation(J),this.isAmbientContext&&!(J.readonly&&!J.typeAnnotation)&&this.match(K.eq))this.raise(this.start,f.DeclareClassFieldHasInitializer);if(J.abstract&&this.match(K.eq)){let{key:z}=J;this.raise(this.start,f.AbstractPropertyHasInitializer({propertyName:z.type==="Identifier"&&!J.computed?z.name:`[${this.input.slice(z.start,z.end)}]`}))}}return super.parseClassField(J)}parseClassMethod(J,X,z,U){let L=J.kind==="constructor",A=J.key.type==="PrivateIdentifier",C=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(A){if(C)J.typeParameters=C;if(J.accessibility)this.raise(J.start,f.PrivateMethodsHasAccessibility({modifier:J.accessibility}))}else if(C&&L)this.raise(C.start,f.ConstructorHasTypeParameters);let{declare:b=!1,kind:D}=J;if(b&&(D==="get"||D==="set"))this.raise(J.start,f.DeclareAccessor({kind:D}));if(C)J.typeParameters=C;let w=J.key;if(J.kind==="constructor"){if(X)this.raise(w.start,"Constructor can't be a generator");if(z)this.raise(w.start,"Constructor can't be an async method")}else if(J.static&&g2(J,"prototype"))this.raise(w.start,"Classes may not have a static property named prototype");let g=J.value=this.parseMethod(X,z,U,!0,J);if(J.kind==="get"&&g.params.length!==0)this.raiseRecoverable(g.start,"getter should have no params");if(J.kind==="set"&&g.params.length!==1)this.raiseRecoverable(g.start,"setter should have exactly one param");if(J.kind==="set"&&g.params[0].type==="RestElement")this.raiseRecoverable(g.params[0].start,"Setter cannot use rest params");return this.finishNode(J,"MethodDefinition")}isClassMethod(){return this.match(K.relational)}parseClassElement(J){if(this.eat(K.semi))return null;let X=this.startNode(),z="",U=!1,L=!1,A="method",C=!1,b=["declare","private","public","protected","accessor","override","abstract","readonly","static"],D=this.tsParseModifiers({modified:X,allowedModifiers:b,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:f.InvalidModifierOnTypeParameterPositions});C=Boolean(D.static);let w=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(X,b))this.raise(this.start,f.StaticBlockCannotHaveModifier);if(this.ecmaVersion>=13)return super.parseClassStaticBlock(X),X}else{let g=this.tsTryParseIndexSignature(X);if(g){if(X.abstract)this.raise(X.start,f.IndexSignatureHasAbstract);if(X.accessibility)this.raise(X.start,f.IndexSignatureHasAccessibility({modifier:X.accessibility}));if(X.declare)this.raise(X.start,f.IndexSignatureHasDeclare);if(X.override)this.raise(X.start,f.IndexSignatureHasOverride);return g}if(!this.inAbstractClass&&X.abstract)this.raise(X.start,f.NonAbstractClassHasAbstractMethod);if(X.override){if(!J)this.raise(X.start,f.OverrideNotInSubClass)}if(X.static=C,C){if(!(this.isClassElementNameStart()||this.type===K.star))z="static"}if(!z&&this.ecmaVersion>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===K.star)&&!this.canInsertSemicolon())L=!0;else z="async";if(!z&&(this.ecmaVersion>=9||!L)&&this.eat(K.star))U=!0;if(!z&&!L&&!U){let l=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())A=l;else z=l}if(z)X.computed=!1,X.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),X.key.name=z,this.finishNode(X.key,"Identifier");else this.parseClassElementName(X);if(this.parsePostMemberNameModifiers(X),this.isClassMethod()||this.ecmaVersion<13||this.type===K.parenL||A!=="method"||U||L){let l=!X.static&&g2(X,"constructor"),i=l&&J;if(l&&A!=="method")this.raise(X.key.start,"Constructor can't have get/set modifier");X.kind=l?"constructor":A,this.parseClassMethod(X,U,L,i)}else this.parseClassField(X);return X}};if(X.declare)this.tsInAmbientContext(w);else w();return X}isClassElementNameStart(){if(this.tsIsIdentifier())return!0;return super.isClassElementNameStart()}parseClassSuper(J){if(super.parseClassSuper(J),J.superClass&&(this.tsMatchLeftRelational()||this.match(K.bitShift)))J.superTypeParameters=this.tsParseTypeArgumentsInExpression();if(this.eatContextual("implements"))J.implements=this.tsParseHeritageClause("implements")}parseFunctionParams(J){let X=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(X)J.typeParameters=X;super.parseFunctionParams(J)}parseVarId(J,X){if(super.parseVarId(J,X),J.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(K.prefix))J.definite=!0;let z=this.tsTryParseTypeAnnotation();if(z)J.id.typeAnnotation=z,this.resetEndLocation(J.id)}parseArrowExpression(J,X,z,U){if(this.match(K.colon))J.returnType=this.tsParseTypeAnnotation();let L=this.yieldPos,A=this.awaitPos,C=this.awaitIdentPos;this.enterScope(c9(z,!1)|q8.SCOPE_ARROW),this.initFunction(J);let b=this.maybeInArrowParameters;if(this.ecmaVersion>=8)J.async=!!z;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,J.params=this.toAssignableList(X,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(J,!0,!1,U),this.yieldPos=L,this.awaitPos=A,this.awaitIdentPos=C,this.maybeInArrowParameters=b,this.finishNode(J,"ArrowFunctionExpression")}parseMaybeAssignOrigin(J,X,z){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(J);else this.exprAllowed=!1;let U=!1,L=-1,A=-1,C=-1;if(X)L=X.parenthesizedAssign,A=X.trailingComma,C=X.doubleProto,X.parenthesizedAssign=X.trailingComma=-1;else X=new y1,U=!0;let b=this.start,D=this.startLoc;if(this.type===K.parenL||F(this.type))this.potentialArrowAt=this.start,this.potentialArrowInForAwait=J==="await";let w=this.parseMaybeConditional(J,X);if(z)w=z.call(this,w,b,D);if(this.type.isAssign){let g=this.startNodeAt(b,D);if(g.operator=this.value,this.type===K.eq)w=this.toAssignable(w,!0,X);if(!U)X.parenthesizedAssign=X.trailingComma=X.doubleProto=-1;if(X.shorthandAssign>=w.start)X.shorthandAssign=-1;if(!this.maybeInArrowParameters)if(this.type===K.eq)this.checkLValPattern(w);else this.checkLValSimple(w);if(g.left=w,this.next(),g.right=this.parseMaybeAssign(J),C>-1)X.doubleProto=C;return this.finishNode(g,"AssignmentExpression")}else if(U)this.checkExpressionErrors(X,!0);if(L>-1)X.parenthesizedAssign=L;if(A>-1)X.trailingComma=A;return w}parseMaybeAssign(J,X,z){let U,L,A;if(q?.jsx&&(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational())){if(U=this.cloneCurLookaheadState(),L=this.tryParse(()=>this.parseMaybeAssignOrigin(J,X,z),U),!L.error)return L.node;let D=this.context,w=D[D.length-1],g=D[D.length-2];if(w===V.tokContexts.tc_oTag&&g===V.tokContexts.tc_expr)D.pop(),D.pop();else if(w===V.tokContexts.tc_oTag||w===V.tokContexts.tc_expr)D.pop()}if(!L?.error&&!this.tsMatchLeftRelational())return this.parseMaybeAssignOrigin(J,X,z);if(!U||this.compareLookaheadState(U,this.getCurLookaheadState()))U=this.cloneCurLookaheadState();let C,b=this.tryParse((D)=>{C=this.tsParseTypeParameters(this.tsParseConstModifier);let w=this.parseMaybeAssignOrigin(J,X,z);if(w.type!=="ArrowFunctionExpression"||w.extra?.parenthesized)D();if(C?.params.length!==0)this.resetStartLocationFromNode(w,C);return w.typeParameters=C,w},U);if(!b.error&&!b.aborted){if(C)this.reportReservedArrowTypeParam(C);return b.node}if(!L){if(_2(!0),A=this.tryParse(()=>this.parseMaybeAssignOrigin(J,X,z),U),!A.error)return A.node}if(L?.node)return this.setLookaheadState(L.failState),L.node;if(b.node){if(this.setLookaheadState(b.failState),C)this.reportReservedArrowTypeParam(C);return b.node}if(A?.node)return this.setLookaheadState(A.failState),A.node;if(L?.thrown)throw L.error;if(b.thrown)throw b.error;if(A?.thrown)throw A.error;throw L?.error||b.error||A?.error}parseAssignableListItem(J){let X=[];while(this.match(B.at))X.push(this.parseDecorator());let z=this.start,U=this.startLoc,L,A=!1,C=!1;if(J!==void 0){let w={};if(this.tsParseModifiers({modified:w,allowedModifiers:["public","private","protected","override","readonly"]}),L=w.accessibility,C=w.override,A=w.readonly,J===!1&&(L||A||C))this.raise(U.column,f.UnexpectedParameterModifier)}let b=this.parseMaybeDefault(z,U);this.parseBindingListItem(b);let D=this.parseMaybeDefault(b.start,b.loc.start,b);if(X.length)D.decorators=X;if(L||A||C){let w=this.startNodeAt(z,U);if(L)w.accessibility=L;if(A)w.readonly=A;if(C)w.override=C;if(D.type!=="Identifier"&&D.type!=="AssignmentPattern")this.raise(w.start,f.UnsupportedParameterPropertyKind);return w.parameter=D,this.finishNode(w,"TSParameterProperty")}return D}checkLValInnerPattern(J,X=q8.BIND_NONE,z){switch(J.type){case"TSParameterProperty":this.checkLValInnerPattern(J.parameter,X,z);break;default:{super.checkLValInnerPattern(J,X,z);break}}}parseBindingListItem(J){if(this.eat(K.question)){if(J.type!=="Identifier"&&!this.isAmbientContext&&!this.inType)this.raise(J.start,f.PatternIsOptional);J.optional=!0}let X=this.tsTryParseTypeAnnotation();if(X)J.typeAnnotation=X;return this.resetEndLocation(J),J}isAssignable(J,X){switch(J.type){case"TSTypeCastExpression":return this.isAssignable(J.expression,X);case"TSParameterProperty":return!0;case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let z=J.properties.length-1;return J.properties.every((U,L)=>{return U.type!=="ObjectMethod"&&(L===z||U.type!=="SpreadElement")&&this.isAssignable(U)})}case"Property":case"ObjectProperty":return this.isAssignable(J.value);case"SpreadElement":return this.isAssignable(J.argument);case"ArrayExpression":return J.elements.every((z)=>z===null||this.isAssignable(z));case"AssignmentExpression":return J.operator==="=";case"ParenthesizedExpression":return this.isAssignable(J.expression);case"MemberExpression":case"OptionalMemberExpression":return!X;default:return!1}}toAssignable(J,X=!1,z=new y1){switch(J.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(J,X,z);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(X);else this.raise(J.start,f.UnexpectedTypeCastInParameter);return this.toAssignable(J.expression,X,z);case"MemberExpression":break;case"AssignmentExpression":if(!X&&J.left.type==="TSTypeCastExpression")J.left=this.typeCastToParameter(J.left);return super.toAssignable(J,X,z);case"TSTypeCastExpression":return this.typeCastToParameter(J);default:return super.toAssignable(J,X,z)}return J}toAssignableParenthesizedExpression(J,X,z){switch(J.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(J.expression,X,z);default:return super.toAssignable(J,X,z)}}parseBindingAtom(){switch(this.type){case K._this:return this.parseIdent(!0);default:return super.parseBindingAtom()}}shouldParseArrow(J){let X;if(this.match(K.colon))X=J.every((z)=>this.isAssignable(z,!0));else X=!this.canInsertSemicolon();if(X){if(this.match(K.colon)){let z=this.tryParse((U)=>{let L=this.tsParseTypeOrTypePredicateAnnotation(K.colon);if(this.canInsertSemicolon()||!this.match(K.arrow))U();return L});if(z.aborted)return this.shouldParseArrowReturnType=void 0,!1;if(!z.thrown){if(z.error)this.setLookaheadState(z.failState);this.shouldParseArrowReturnType=z.node}}if(!this.match(K.arrow))return this.shouldParseArrowReturnType=void 0,!1;return!0}return this.shouldParseArrowReturnType=void 0,X}parseParenArrowList(J,X,z,U){let L=this.startNodeAt(J,X);return L.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(L,z,!1,U)}parseParenAndDistinguishExpression(J,X){let z=this.start,U=this.startLoc,L,A=this.ecmaVersion>=8;if(this.ecmaVersion>=6){let C=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();let b=this.start,D=this.startLoc,w=[],g=!0,l=!1,i=new y1,Y8=this.yieldPos,y=this.awaitPos,a;this.yieldPos=0,this.awaitPos=0;while(this.type!==K.parenR)if(g?g=!1:this.expect(K.comma),A&&this.afterTrailingComma(K.parenR,!0)){l=!0;break}else if(this.type===K.ellipsis){if(a=this.start,w.push(this.parseParenItem(this.parseRestBinding())),this.type===K.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else w.push(this.parseMaybeAssign(X,i,this.parseParenItem));let c=this.lastTokEnd,r=this.lastTokEndLoc;if(this.expect(K.parenR),this.maybeInArrowParameters=C,J&&this.shouldParseArrow(w)&&this.eat(K.arrow))return this.checkPatternErrors(i,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Y8,this.awaitPos=y,this.parseParenArrowList(z,U,w,X);if(!w.length||l)this.unexpected(this.lastTokStart);if(a)this.unexpected(a);if(this.checkExpressionErrors(i,!0),this.yieldPos=Y8||this.yieldPos,this.awaitPos=y||this.awaitPos,w.length>1)L=this.startNodeAt(b,D),L.expressions=w,this.finishNodeAt(L,"SequenceExpression",c,r);else L=w[0]}else L=this.parseParenExpression();if(this.options.preserveParens){let C=this.startNodeAt(z,U);return C.expression=L,this.finishNode(C,"ParenthesizedExpression")}else return L}parseTaggedTemplateExpression(J,X,z,U){let L=this.startNodeAt(X,z);if(L.tag=J,L.quasi=this.parseTemplate({isTagged:!0}),U)this.raise(X,"Tagged Template Literals are not allowed in optionalChain.");return this.finishNode(L,"TaggedTemplateExpression")}shouldParseAsyncArrow(){if(this.match(K.colon)){let J=this.tryParse((X)=>{let z=this.tsParseTypeOrTypePredicateAnnotation(K.colon);if(this.canInsertSemicolon()||!this.match(K.arrow))X();return z});if(J.aborted)return this.shouldParseAsyncArrowReturnType=void 0,!1;if(!J.thrown){if(J.error)this.setLookaheadState(J.failState);return this.shouldParseAsyncArrowReturnType=J.node,!this.canInsertSemicolon()&&this.eat(K.arrow)}}else return!this.canInsertSemicolon()&&this.eat(K.arrow)}parseSubscriptAsyncArrow(J,X,z,U){let L=this.startNodeAt(J,X);return L.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(L,z,!0,U)}parseExprList(J,X,z,U){let L=[],A=!0;while(!this.eat(J)){if(!A){if(this.expect(K.comma),X&&this.afterTrailingComma(J))break}else A=!1;let C;if(z&&this.type===K.comma)C=null;else if(this.type===K.ellipsis){if(C=this.parseSpread(U),this.maybeInArrowParameters&&this.match(K.colon))C.typeAnnotation=this.tsParseTypeAnnotation();if(U&&this.type===K.comma&&U.trailingComma<0)U.trailingComma=this.start}else C=this.parseMaybeAssign(!1,U,this.parseParenItem);L.push(C)}return L}parseSubscript(J,X,z,U,L,A,C){let b=A;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(K.prefix)){this.exprAllowed=!1,this.next();let i=this.startNodeAt(X,z);return i.expression=J,J=this.finishNode(i,"TSNonNullExpression"),J}let D=!1;if(this.match(K.questionDot)&&this.lookaheadCharCode()===60){if(U)return J;J.optional=!0,b=D=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(K.bitShift)){let i,Y8=this.tsTryParseAndCatch(()=>{if(!U&&this.atPossibleAsyncArrow(J)){let r=this.tsTryParseGenericAsyncArrowFunction(X,z,C);if(r)return J=r,J}let y=this.tsParseTypeArgumentsInExpression();if(!y)return J;if(D&&!this.match(K.parenL))return i=this.curPosition(),J;if(E(this.type)||this.type===K.backQuote){let r=this.parseTaggedTemplateExpression(J,X,z,b);return r.typeArguments=y,r}if(!U&&this.eat(K.parenL)){let r=new y1,d=this.startNodeAt(X,z);if(d.callee=J,d.arguments=this.parseExprList(K.parenR,this.ecmaVersion>=8,!1,r),this.tsCheckForInvalidTypeCasts(d.arguments),d.typeArguments=y,b)d.optional=D;return this.checkExpressionErrors(r,!0),J=this.finishNode(d,"CallExpression"),J}let a=this.type;if(this.tsMatchRightRelational()||a===K.bitShift||a!==K.parenL&&CQ(a)&&!this.hasPrecedingLineBreak())return;let c=this.startNodeAt(X,z);return c.expression=J,c.typeArguments=y,this.finishNode(c,"TSInstantiationExpression")});if(i)this.unexpected(i);if(Y8){if(Y8.type==="TSInstantiationExpression"&&(this.match(K.dot)||this.match(K.questionDot)&&this.lookaheadCharCode()!==40))this.raise(this.start,f.InvalidPropertyAccessAfterInstantiationExpression);return J=Y8,J}}let w=this.ecmaVersion>=11,g=w&&this.eat(K.questionDot);if(U&&g)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");let l=this.eat(K.bracketL);if(l||g&&this.type!==K.parenL&&this.type!==K.backQuote||this.eat(K.dot)){let i=this.startNodeAt(X,z);if(i.object=J,l)i.property=this.parseExpression(),this.expect(K.bracketR);else if(this.type===K.privateId&&J.type!=="Super")i.property=this.parsePrivateIdent();else i.property=this.parseIdent(this.options.allowReserved!=="never");if(i.computed=!!l,w)i.optional=g;J=this.finishNode(i,"MemberExpression")}else if(!U&&this.eat(K.parenL)){let i=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let Y8=new y1,y=this.yieldPos,a=this.awaitPos,c=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;let r=this.parseExprList(K.parenR,this.ecmaVersion>=8,!1,Y8);if(L&&!g&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(Y8,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");this.yieldPos=y,this.awaitPos=a,this.awaitIdentPos=c,J=this.parseSubscriptAsyncArrow(X,z,r,C)}else{this.checkExpressionErrors(Y8,!0),this.yieldPos=y||this.yieldPos,this.awaitPos=a||this.awaitPos,this.awaitIdentPos=c||this.awaitIdentPos;let d=this.startNodeAt(X,z);if(d.callee=J,d.arguments=r,w)d.optional=g;J=this.finishNode(d,"CallExpression")}this.maybeInArrowParameters=i}else if(this.type===K.backQuote){if(g||b)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");let i=this.startNodeAt(X,z);i.tag=J,i.quasi=this.parseTemplate({isTagged:!0}),J=this.finishNode(i,"TaggedTemplateExpression")}return J}parseGetterSetter(J){J.kind=J.key.name,this.parsePropertyName(J);let X=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(J.value=this.parseMethod(!1),X)J.value.typeParameters=X;let z=J.kind==="get"?0:1,U=J.value.params[0];if(z=U&&this.isThisParam(U)?z+1:z,J.value.params.length!==z){let A=J.value.start;if(J.kind==="get")this.raiseRecoverable(A,"getter should have no params");else this.raiseRecoverable(A,"setter should have exactly one param")}else if(J.kind==="set"&&J.value.params[0].type==="RestElement")this.raiseRecoverable(J.value.params[0].start,"Setter cannot use rest params")}parsePropertyValue(J,X,z,U,L,A,C,b){if(this.tsMatchLeftRelational()){if(X)this.unexpected();J.kind="init",J.method=!0;let D=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(J.value=this.parseMethod(z,U),D)J.value.typeParameters=D;return}return super.parsePropertyValue(J,X,z,U,L,A,C,b)}parseProperty(J,X){if(!J){let z=[];if(this.match(B.at))while(this.match(B.at))z.push(this.parseDecorator());let U=super.parseProperty(J,X);if(U.type==="SpreadElement"){if(z.length)this.raise(U.start,P0.SpreadElementDecorator)}if(z.length)U.decorators=z,z=[];return U}return super.parseProperty(J,X)}parseCatchClauseParam(){let J=this.parseBindingAtom(),X=J.type==="Identifier";this.enterScope(X?q8.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(J,X?q8.BIND_SIMPLE_CATCH:q8.BIND_LEXICAL);let z=this.tsTryParseTypeAnnotation();if(z)J.typeAnnotation=z,this.resetEndLocation(J);return this.expect(K.parenR),J}parseClass(J,X){let z=this.inAbstractClass;this.inAbstractClass=!!J.abstract;try{this.next(),this.takeDecorators(J);let U=this.strict;this.strict=!0,this.parseClassId(J,X),this.parseClassSuper(J);let L=this.enterClassBody(),A=this.startNode(),C=!1;A.body=[];let b=[];this.expect(K.braceL);while(this.type!==K.braceR){if(this.match(B.at)){b.push(this.parseDecorator());continue}let D=this.parseClassElement(J.superClass!==null);if(b.length)D.decorators=b,this.resetStartLocationFromNode(D,b[0]),b=[];if(D){if(A.body.push(D),D.type==="MethodDefinition"&&D.kind==="constructor"&&D.value.type==="FunctionExpression"){if(C)this.raiseRecoverable(D.start,"Duplicate constructor in the same class");if(C=!0,D.decorators&&D.decorators.length>0)this.raise(D.start,P0.DecoratorConstructor)}else if(D.key&&D.key.type==="PrivateIdentifier"&&D.value?.type!=="TSDeclareMethod"&&zQ(L,D))this.raiseRecoverable(D.key.start,`Identifier '#${D.key.name}' has already been declared`)}}if(this.strict=U,this.next(),b.length)this.raise(this.start,P0.TrailingDecorator);return J.body=this.finishNode(A,"ClassBody"),this.exitClassBody(),this.finishNode(J,X?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=z}}parseClassFunctionParams(){let J=this.tsTryParseTypeParameters(),X=this.parseBindingList(K.parenR,!1,this.ecmaVersion>=8,!0);if(J)X.typeParameters=J;return X}parseMethod(J,X,z,U,L){let A=this.startNode(),C=this.yieldPos,b=this.awaitPos,D=this.awaitIdentPos;if(this.initFunction(A),this.ecmaVersion>=6)A.generator=J;if(this.ecmaVersion>=8)A.async=!!X;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(c9(X,A.generator)|q8.SCOPE_SUPER|(z?q8.SCOPE_DIRECT_SUPER:0)),this.expect(K.parenL),A.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(A,!1,!0,!1,{isClassMethod:U}),this.yieldPos=C,this.awaitPos=b,this.awaitIdentPos=D,L&&L.abstract){if(!!A.body){let{key:g}=L;this.raise(L.start,f.AbstractMethodHasImplementation({methodName:g.type==="Identifier"&&!L.computed?g.name:`[${this.input.slice(g.start,g.end)}]`}))}}return this.finishNode(A,"FunctionExpression")}static parse(J,X){if(X.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else X.locations=!0;let z=new this(X,J);if(Q)z.isAmbientContext=!0;return z.parse()}static parseExpressionAt(J,X,z){if(z.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else z.locations=!0;let U=new this(z,J,X);if(Q)U.isAmbientContext=!0;return U.nextToken(),U.parseExpression()}parseImportSpecifier(){if(this.ts_isContextual(B.type)){let X=this.startNode();return X.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(X,!0,this.importOrExportOuterKind==="type"),this.finishNode(X,"ImportSpecifier")}else{let X=super.parseImportSpecifier();return X.importKind="value",X}}parseExportSpecifier(J){let X=this.ts_isContextual(B.type);if(!this.match(K.string)&&X){let U=this.startNode();return U.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(U,!1,this.importOrExportOuterKind==="type"),this.finishNode(U,"ExportSpecifier"),this.checkExport(J,U.exported,U.exported.start),U}else{let U=super.parseExportSpecifier(J);return U.exportKind="value",U}}parseTypeOnlyImportExportSpecifier(J,X,z){let U=X?"imported":"local",L=X?"local":"exported",A=J[U],C,b=!1,D=!0,w=A.start;if(this.isContextual("as")){let l=this.parseIdent();if(this.isContextual("as")){let i=this.parseIdent();if(P(this.type))b=!0,A=l,C=X?this.parseIdent():this.parseModuleExportName(),D=!1;else C=i,D=!1}else if(P(this.type))D=!1,C=X?this.parseIdent():this.parseModuleExportName();else b=!0,A=l}else if(P(this.type))if(b=!0,X){if(A=super.parseIdent(!0),!this.isContextual("as"))this.checkUnreserved(A)}else A=this.parseModuleExportName();if(b&&z)this.raise(w,X?f.TypeModifierIsUsedInTypeImports:f.TypeModifierIsUsedInTypeExports);J[U]=A,J[L]=C;let g=X?"importKind":"exportKind";if(J[g]=b?"type":"value",D&&this.eatContextual("as"))J[L]=X?this.parseIdent():this.parseModuleExportName();if(!J[L])J[L]=this.copyNode(J[U]);if(X)this.checkLValSimple(J[L],q8.BIND_LEXICAL)}raiseCommonCheck(J,X,z){switch(X){case"Comma is not permitted after the rest element":if(this.isAmbientContext&&this.match(K.comma)&&this.lookaheadCharCode()===41){this.next();return}else return super.raise(J,X)}return z?super.raiseRecoverable(J,X):super.raise(J,X)}raiseRecoverable(J,X){return this.raiseCommonCheck(J,X,!0)}raise(J,X){return this.raiseCommonCheck(J,X,!0)}updateContext(J){let{type:X}=this;if(X==K.braceL){var z=this.curContext();if(z==S.tc_oTag)this.context.push($.b_expr);else if(z==S.tc_expr)this.context.push($.b_tmpl);else super.updateContext(J);this.exprAllowed=!0}else if(X===K.slash&&J===B.jsxTagStart)this.context.length-=2,this.context.push(S.tc_cTag),this.exprAllowed=!1;else return super.updateContext(J)}jsx_parseOpeningElementAt(J,X){let z=this.startNodeAt(J,X),U=this.jsx_parseElementName();if(U)z.name=U;if(this.match(K.relational)||this.match(K.bitShift)){let L=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(L)z.typeArguments=L}z.attributes=[];while(this.type!==K.slash&&this.type!==B.jsxTagEnd)z.attributes.push(this.jsx_parseAttribute());return z.selfClosing=this.eat(K.slash),this.expect(B.jsxTagEnd),this.finishNode(z,U?"JSXOpeningElement":"JSXOpeningFragment")}enterScope(J){if(J===f1)this.importsStack.push([]);super.enterScope(J);let X=super.currentScope();X.types=[],X.enums=[],X.constEnums=[],X.classes=[],X.exportOnlyBindings=[]}exitScope(){if(super.currentScope().flags===f1)this.importsStack.pop();super.exitScope()}hasImport(J,X){let z=this.importsStack.length;if(this.importsStack[z-1].indexOf(J)>-1)return!0;if(!X&&z>1){for(let U=0;U<z-1;U++)if(this.importsStack[U].indexOf(J)>-1)return!0}return!1}maybeExportDefined(J,X){if(this.inModule&&J.flags&q8.SCOPE_TOP)delete this.undefinedExports[X]}declareName(J,X,z){if(X&q8.BIND_FLAGS_TS_IMPORT){if(this.hasImport(J,!0))this.raise(z,`Identifier '${J}' has already been declared.`);this.importsStack[this.importsStack.length-1].push(J);return}let U=this.currentScope();if(X&q8.BIND_FLAGS_TS_EXPORT_ONLY){this.maybeExportDefined(U,J),U.exportOnlyBindings.push(J);return}if(X===q8.BIND_TS_TYPE||X===q8.BIND_TS_INTERFACE){if(X===q8.BIND_TS_TYPE&&U.types.includes(J))this.raise(z,`type '${J}' has already been declared.`);U.types.push(J)}else super.declareName(J,X,z);if(X&q8.BIND_FLAGS_TS_ENUM)U.enums.push(J);if(X&q8.BIND_FLAGS_TS_CONST_ENUM)U.constEnums.push(J);if(X&q8.BIND_FLAGS_CLASS)U.classes.push(J)}checkLocalExport(J){let{name:X}=J;if(this.hasImport(X))return;let z=this.scopeStack.length;for(let U=z-1;U>=0;U--){let L=this.scopeStack[U];if(L.types.indexOf(X)>-1||L.exportOnlyBindings.indexOf(X)>-1)return}super.checkLocalExport(J)}}return T}}class s2 extends Error{message="";#q;constructor(q,Q,Z){super(Q);this.stack="",this.#q=new S1(q,Q,Z),Object.assign(this,this.#q),this.name="CompileError"}toString(){return this.#q.toString()}toJSON(){return this.#q.toJSON()}}function _(q,Q,Z){let Y=typeof q==="number"?q:q?.start,H=typeof q==="number"?q:q?.end;throw new s2(Q,Z,Y!==void 0?[Y,H??Y]:void 0)}function a2(q){_(q,"css_empty_declaration",`Declaration cannot be empty
36
+ https://svelte.dev/e/css_empty_declaration`)}function i9(q){_(q,"css_expected_identifier",`Expected a valid CSS identifier
37
+ https://svelte.dev/e/css_expected_identifier`)}function r2(q){_(q,"css_selector_invalid",`Invalid selector
38
+ https://svelte.dev/e/css_selector_invalid`)}function t2(q){_(q,"attribute_duplicate",`Attributes need to be unique
39
+ https://svelte.dev/e/attribute_duplicate`)}function e2(q){_(q,"attribute_empty_shorthand",`Attribute shorthand cannot be empty
40
+ https://svelte.dev/e/attribute_empty_shorthand`)}function p9(q,Q){_(q,"block_duplicate_clause",`${Q} cannot appear more than once within a block
41
+ https://svelte.dev/e/block_duplicate_clause`)}function q5(q){_(q,"block_invalid_continuation_placement",`{:...} block is invalid at this position (did you forget to close the preceding element or block?)
42
+ https://svelte.dev/e/block_invalid_continuation_placement`)}function Q5(q){_(q,"block_invalid_elseif",`'elseif' should be 'else if'
43
+ https://svelte.dev/e/block_invalid_elseif`)}function Z5(q,Q,Z){_(q,"block_invalid_placement",`{#${Q} ...} block cannot be ${Z}
44
+ https://svelte.dev/e/block_invalid_placement`)}function Y5(q){_(q,"block_unclosed",`Block was left open
45
+ https://svelte.dev/e/block_unclosed`)}function o9(q){_(q,"block_unexpected_close",`Unexpected block closing tag
46
+ https://svelte.dev/e/block_unexpected_close`)}function H5(q){_(q,"const_tag_invalid_expression",`{@const ...} must consist of a single variable declaration
47
+ https://svelte.dev/e/const_tag_invalid_expression`)}function J5(q){_(q,"debug_tag_invalid_arguments",`{@debug ...} arguments must be identifiers, not arbitrary expressions
48
+ https://svelte.dev/e/debug_tag_invalid_arguments`)}function D0(q){_(q,"declaration_tag_invalid_type","Declaration tags must be `let` or `const` declarations\nhttps://svelte.dev/e/declaration_tag_invalid_type")}function K5(q){_(q,"directive_invalid_value",`Directive value must be a JavaScript expression enclosed in curly braces
49
+ https://svelte.dev/e/directive_invalid_value`)}function V5(q,Q){_(q,"directive_missing_name",`\`${Q}\` name cannot be empty
50
+ https://svelte.dev/e/directive_missing_name`)}function X5(q,Q){_(q,"element_invalid_closing_tag",`\`</${Q}>\` attempted to close an element that was not open
51
+ https://svelte.dev/e/element_invalid_closing_tag`)}function W5(q,Q,Z){_(q,"element_invalid_closing_tag_autoclosed",`\`</${Q}>\` attempted to close element that was already automatically closed by \`<${Z}>\` (cannot nest \`<${Z}>\` inside \`<${Q}>\`)
52
+ https://svelte.dev/e/element_invalid_closing_tag_autoclosed`)}function N0(q,Q){_(q,"element_unclosed",`\`<${Q}>\` was left open
53
+ https://svelte.dev/e/element_unclosed`)}function n9(q){_(q,"expected_attribute_value",`Expected attribute value
54
+ https://svelte.dev/e/expected_attribute_value`)}function G5(q){_(q,"expected_block_type",`Expected 'if', 'each', 'await', 'key' or 'snippet'
55
+ https://svelte.dev/e/expected_block_type`)}function s9(q){_(q,"expected_identifier",`Expected an identifier
56
+ https://svelte.dev/e/expected_identifier`)}function z5(q){_(q,"expected_pattern",`Expected identifier or destructure pattern
57
+ https://svelte.dev/e/expected_pattern`)}function j5(q){_(q,"expected_tag",`Expected 'html', 'render', 'attach', 'const', or 'debug'
58
+ https://svelte.dev/e/expected_tag`)}function k8(q,Q){_(q,"expected_token",`Expected token ${Q}
59
+ https://svelte.dev/e/expected_token`)}function O5(q){_(q,"expected_whitespace",`Expected whitespace
60
+ https://svelte.dev/e/expected_whitespace`)}function U5(q,Q){_(q,"js_parse_error",`${Q}
61
+ https://svelte.dev/e/js_parse_error`)}function R5(q){_(q,"render_tag_invalid_expression","`{@render ...}` tags can only contain call expressions\nhttps://svelte.dev/e/render_tag_invalid_expression")}function a9(q){_(q,"script_duplicate","A component can have a single top-level `<script>` element and/or a single top-level `<script module>` element\nhttps://svelte.dev/e/script_duplicate")}function B5(q,Q){_(q,"script_invalid_attribute_value",`If the \`${Q}\` attribute is supplied, it must be a boolean attribute
62
+ https://svelte.dev/e/script_invalid_attribute_value`)}function r9(q){_(q,"script_invalid_context",`If the context attribute is supplied, its value must be "module"
63
+ https://svelte.dev/e/script_invalid_context`)}function F5(q,Q){_(q,"script_reserved_attribute",`The \`${Q}\` attribute is reserved and cannot be used
64
+ https://svelte.dev/e/script_reserved_attribute`)}function M5(q){_(q,"style_duplicate","A component can have a single top-level `<style>` element\nhttps://svelte.dev/e/style_duplicate")}function $5(q){_(q,"svelte_component_invalid_this","Invalid component definition — must be an `{expression}`\nhttps://svelte.dev/e/svelte_component_invalid_this")}function L5(q){_(q,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute\nhttps://svelte.dev/e/svelte_component_missing_this")}function t9(q){_(q,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value\nhttps://svelte.dev/e/svelte_element_missing_this")}function A5(q,Q){_(q,"svelte_meta_duplicate",`A component can only have one \`<${Q}>\` element
65
+ https://svelte.dev/e/svelte_meta_duplicate`)}function C5(q,Q){_(q,"svelte_meta_invalid_content",`<${Q}> cannot have children
66
+ https://svelte.dev/e/svelte_meta_invalid_content`)}function w5(q,Q){_(q,"svelte_meta_invalid_placement",`\`<${Q}>\` tags cannot be inside elements or blocks
67
+ https://svelte.dev/e/svelte_meta_invalid_placement`)}function I5(q,Q){_(q,"svelte_meta_invalid_tag",`Valid \`<svelte:...>\` tag names are ${Q}
68
+ https://svelte.dev/e/svelte_meta_invalid_tag`)}function P5(q){_(q,"svelte_options_deprecated_tag",`"tag" option is deprecated — use "customElement" instead
69
+ https://svelte.dev/e/svelte_options_deprecated_tag`)}function S5(q){_(q,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes\nhttps://svelte.dev/e/svelte_options_invalid_attribute")}function T0(q,Q){_(q,"svelte_options_invalid_attribute_value",`Value must be ${Q}, if specified
70
+ https://svelte.dev/e/svelte_options_invalid_attribute_value`)}function b0(q){_(q,"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: .. } } }\nhttps://svelte.dev/e/svelte_options_invalid_customelement')}function e8(q){_(q,"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" }"
71
+ https://svelte.dev/e/svelte_options_invalid_customelement_props`)}function D5(q){_(q,"svelte_options_invalid_customelement_shadow",'"shadow" must be either "open", "none" or `ShadowRootInit` object.\nhttps://svelte.dev/e/svelte_options_invalid_customelement_shadow')}function e9(q){_(q,"svelte_options_invalid_tagname",`Tag name must be lowercase and hyphenated
72
+ https://svelte.dev/e/svelte_options_invalid_tagname`)}function N5(q){_(q,"svelte_options_reserved_tagname",`Tag name is reserved
73
+ https://svelte.dev/e/svelte_options_reserved_tagname`)}function T5(q,Q){_(q,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${Q}'
74
+ https://svelte.dev/e/svelte_options_unknown_attribute`)}function b5(q){_(q,"tag_invalid_name",`Expected a valid element or component name. Components must have a valid variable name or dot notation expression
75
+ https://svelte.dev/e/tag_invalid_name`)}function k5(q,Q,Z){_(q,"tag_invalid_placement",`{@${Q} ...} tag cannot be ${Z}
76
+ https://svelte.dev/e/tag_invalid_placement`)}function M8(q){_(q,"unexpected_eof",`Unexpected end of input
77
+ https://svelte.dev/e/unexpected_eof`)}function E5(q,Q){_(q,"unexpected_reserved_word",`'${Q}' is a reserved word in JavaScript and cannot be used here
78
+ https://svelte.dev/e/unexpected_reserved_word`)}function v5(q){_(q,"unterminated_string_constant",`Unterminated string constant
79
+ https://svelte.dev/e/unterminated_string_constant`)}function h5(q){_(q,"void_element_invalid_content",`Void elements cannot have children or closing tags
80
+ https://svelte.dev/e/void_element_invalid_content`)}var k0=H8,q6=k0.extend(n2());function f5(q,Q,Z,Y){let H=Z?q6:k0,{onComment:V,add_comments:K}=Z6(q,Q),G=H.prototype.parseStatement;if(Y)H.prototype.parseStatement=function(...W){let R=G.call(this,...W);return this.undefinedExports={},R};try{let W=H.parse(q,{onComment:V,sourceType:"module",ecmaVersion:16,locations:!0});return K(W),W}catch(W){return Q6(W)}finally{if(Y)H.prototype.parseStatement=G}}function q1(q,Q,Z){let Y=q.ts?q6:k0,{onComment:H,add_comments:V}=Z6(Q,q.root.comments,Z);try{let K=Y.parseExpressionAt(Q,Z,{onComment:H,sourceType:"module",ecmaVersion:16,locations:!0,preserveParens:!0});return V(K),K}catch(K){Q6(K)}}function y5(q,Q,Z){let Y=q.ts?q6:k0,{onComment:H,add_comments:V}=Z6(Q,q.root.comments,Z);try{let K=new Y({onComment:H,sourceType:"module",ecmaVersion:16,locations:!0},Q,Z);K.nextToken();let G=K.parseStatement(null,!0,Object.create(null));return V(G),G}catch(K){if(K.pos===Q.length)M8(Q.length);Q6(K)}}var PQ=/ \(\d+:\d+\)$/;function Q6(q){U5(q.pos,q.message.replace(PQ,""))}function F1(q){return d8(q,null,{ParenthesizedExpression(Q,Z){return Z.visit(Q.expression)}})}function Z6(q,Q,Z=0){return{onComment:(Y,H,V,K,G,W)=>{if(Y&&/\n/.test(H)){let R=V;while(R>0&&q[R-1]!==`
81
+ `)R-=1;let j=R;while(/[ \t]/.test(q[j]))j+=1;let $=q.slice(R,j);H=H.replace(new RegExp(`^${$}`,"gm"),"")}Q.push({type:Y?"Block":"Line",value:H,start:V,end:K,loc:{start:G,end:W}})},add_comments(Y){if(Q.length===0)return;if(Q=Q.filter((H)=>H.start>=Z).map(({type:H,value:V,start:K,end:G})=>({type:H,value:V,start:K,end:G})),d8(Y,null,{_(H,{next:V,path:K}){let G;while(Q[0]&&Q[0].start<H.start)G=Q.shift(),(H.leadingComments||=[]).push(G);if(V(),Q[0]){let W=K.at(-1);if(W===void 0||H.end!==W.end){let R=q.slice(H.end,Q[0].start);if((W?.type==="BlockStatement"||W?.type==="Program")&&W.body.indexOf(H)===W.body.length-1||W?.type==="ArrayExpression"&&W.elements.indexOf(H)===W.elements.length-1||W?.type==="ObjectExpression"&&W.properties.indexOf(H)===W.properties.length-1){let $=H.end;while(Q.length){let M=Q[0];if(W&&M.start>=W.end)break;(H.trailingComments||=[]).push(M),Q.shift(),$=M.end}}else if(H.end<=Q[0].start&&/^[,) \t]*$/.test(R))H.trailingComments=[Q.shift()]}}}}),Q.length>0&&(Q[0].start>=Y.end||Y.type==="Program"))(Y.trailingComments||=[]).push(...Q.splice(0))}}}function Y6(q){if(q<0)return 1/0;return q}function DQ(q,Q,Z){let Y;if(Z==="`")Y=q;else Y=q.slice(0,Y6(q.indexOf(`
82
+ `,Q)));return H6(Y,Q,Z)}function NQ(q,Q){let Z=H6(q,Q,"/"),Y=H6(q,Q,`
83
+ `);return Z<Y?Z:1/0}function H6(q,Q,Z){let Y=Q;while(!0){let H=q.indexOf(Z,Y);if(H===-1)return 1/0;if(TQ(q,H-1)%2===0)return H;Y=H+1}}function TQ(q,Q){let Z=Q,Y=0;while(q[Z]==="\\")Y++,Z--;return Y}function v0(q,Q,Z){let Y=E0[Z],H=1,V=Q;while(H>0&&V<q.length){let K=q[V];switch(K){case"'":case'"':case"`":V=DQ(q,V+1,K)+1;continue;case"/":{let G=q[V+1];if(!G){V++;continue}if(G==="/"){V=Y6(q.indexOf(`
84
+ `,V+1))+1;continue}if(G==="*"){V=Y6(q.indexOf("*/",V+1))+2;continue}let W=NQ(q,V+1)+1;if(W===1/0)V++;else V=W;continue}default:{let G=q[V];if(G===Z)H++;else if(G===Y)H--;if(H===0)return V;V++}}}return}var E0={"{":"}","(":")","[":"]"},bQ=new Set(Object.values(E0));function _1(q,Q,Z=E0){let Y=Z===E0?bQ:new Set(Object.values(Z)),H=[],V=Q;while(V<q.template.length){let K=q.template[V++];if(K==="'"||K==='"'||K==="`"){V=kQ(q,V,K);continue}if(K in Z)H.push(K);else if(Y.has(K)){let G=H.pop(),W=Z[G];if(K!==W)k8(V-1,W);if(H.length===0)return V}}M8(q.template.length)}function kQ(q,Q,Z){let Y=!1,H=Q;while(H<q.template.length){let V=q.template[H++];if(Y){Y=!1;continue}if(V===Z)return H;if(V==="\\")Y=!0;if(Z==="`"&&V==="$"&&q.template[H]==="{")H=_1(q,H)}v5(Q)}function J6(q,Q){let Z=v0(q.template,q.index,Q??"{");if(Z){let Y=q.index;return q.index=Z,{type:"Identifier",start:Y,end:Z,name:""}}}function O8(q,Q,Z){try{let Y=q1(q,q.template,q.index),H=Y.end,V=q.root.comments.at(-1);if(V&&V.end>H)H=V.end;return q.index=H,F1(Y)}catch(Y){if(q.loose&&!Z){let H=J6(q,Q);if(H)return H}throw Y}}function K6(q=[]){return{type:"ArrayExpression",elements:q}}function EQ(q,Q){return{type:"UnaryExpression",argument:Q,operator:q,prefix:!0}}var QV=EQ("void",x1(0));function x1(q){return{type:"Literal",value:q}}var vQ=x1(!0),ZV=x1(!1),YV=x1(null);function g5(q){return Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="Text"}function X6(q){return q.value!==!0&&!Array.isArray(q.value)||Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="ExpressionTag"}function W6(q){return Array.isArray(q.value)?q.value[0].expression:q.value.expression}var hQ=/<\/script\s*>/,fQ=/<\/script\s*>/y,yQ=["server","client","worker","test","default"],gQ=["context","generics","lang","module"];function _5(q,Q,Z){let Y=q.index,H=q.read_until(hQ);if(q.index>=q.template.length)N0(q.template.length,"script");let V=q.template.slice(0,Y).replace(K0," ")+H;q.read(fQ);let K=f5(V,q.root.comments,q.ts,!0);if(K.start=Y,K.loc)({line:K.loc.start.line,column:K.loc.start.column}=j8(Q)),{line:K.loc.end.line,column:K.loc.end.column}=j8(q.index);let G="default";for(let W of Z){if(yQ.includes(W.name))F5(W,W.name);if(!gQ.includes(W.name))d7(W);if(W.name==="module"){if(W.value!==!0)B5(W,W.name);G="module"}if(W.name==="context"){if(W.value===!0||!g5(W))r9(W);if(W.value[0].data!=="module")r9(W);G="module"}}return{type:"Script",start:Q,end:q.index,context:G,content:K,attributes:Z}}var _Q=/[~^$*|]?=/y,xQ=/[\s\]]/,uQ=/[a-zA-Z]+/y,m5=/(\+|~|>|\|\|)/y,x5=/\d+(\.\d+)?%/y,u5=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/y,mQ=/[\s:]/,lQ=/-?\d/y,cQ=/[a-zA-Z0-9_-]/,dQ=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y,iQ=/\*\//,pQ=/-->/;function z6(q,Q,Z){let Y=q.index,H=oQ(q,(K)=>K.match("</style")||K.index>=K.template.length),V=q.index;return q.eat("</style",!0),q.read(/\s*>/y),{type:"StyleSheet",start:Q,end:q.index,attributes:Z,children:H,content:{start:Y,end:V,styles:q.template.slice(Y,V),comment:null}}}function oQ(q,Q){let Z=[];while(M1(q),!Q(q))if(q.match("@"))Z.push(l5(q));else Z.push(c5(q));return Z}function l5(q){let Q=q.index;q.eat("@",!0);let Z=n8(q),Y=j6(q),H=null;if(q.match("{"))H=d5(q);else q.eat(";",!0);return{type:"Atrule",start:Q,end:q.index,name:Z,prelude:Y,block:H}}function c5(q){let Q=q.index;return{type:"Rule",prelude:G6(q),block:d5(q),start:Q,end:q.index,metadata:{parent_rule:null,has_local_selectors:!1,has_global_selectors:!1,is_global_block:!1}}}function G6(q,Q=!1){let Z=[];M1(q);let Y=q.index;while(q.index<q.template.length){Z.push(nQ(q,Q));let H=q.index;if(M1(q),Q?q.match(")"):q.match("{"))return{type:"SelectorList",start:Y,end:H,children:Z};else q.eat(",",!0),M1(q)}M8(q.template.length)}function nQ(q,Q=!1){let Z=q.index,Y=[];function H(K,G){return{type:"RelativeSelector",combinator:K,selectors:[],start:G,end:-1,metadata:{is_global:!1,is_global_like:!1,scoped:!1}}}let V=H(null,q.index);while(q.index<q.template.length){let K=q.index;if(q.eat("&"))V.selectors.push({type:"NestingSelector",name:"&",start:K,end:q.index});else if(q.eat("*")){let R="*";if(q.eat("|"))R=n8(q);V.selectors.push({type:"TypeSelector",name:R,start:K,end:q.index})}else if(q.eat("#"))V.selectors.push({type:"IdSelector",name:n8(q),start:K,end:q.index});else if(q.eat("."))V.selectors.push({type:"ClassSelector",name:n8(q),start:K,end:q.index});else if(q.eat("::")){if(V.selectors.push({type:"PseudoElementSelector",name:n8(q),start:K,end:q.index}),q.eat("("))G6(q,!0),q.eat(")",!0)}else if(q.eat(":")){let R=n8(q),j=null;if(q.eat("("))j=G6(q,!0),q.eat(")",!0);V.selectors.push({type:"PseudoClassSelector",name:R,args:j,start:K,end:q.index})}else if(q.eat("[")){q.allow_whitespace();let R=n8(q);q.allow_whitespace();let j=null,$=q.read(_Q);if($)q.allow_whitespace(),j=tQ(q);q.allow_whitespace();let M=q.read(uQ);q.allow_whitespace(),q.eat("]",!0),V.selectors.push({type:"AttributeSelector",start:K,end:q.index,name:R,matcher:$,value:j,flags:M})}else if(Q&&q.match_regex(u5))V.selectors.push({type:"Nth",value:q.read(u5),start:K,end:q.index});else if(q.match_regex(x5))V.selectors.push({type:"Percentage",value:q.read(x5),start:K,end:q.index});else if(!q.match_regex(m5)){let R=n8(q);if(q.eat("|"))R=n8(q);V.selectors.push({type:"TypeSelector",name:R,start:K,end:q.index})}let G=q.index;if(M1(q),q.match(",")||(Q?q.match(")"):q.match("{")))return q.index=G,V.end=G,Y.push(V),{type:"ComplexSelector",start:Z,end:G,children:Y,metadata:{rule:null,is_global:!1,used:!1}};q.index=G;let W=sQ(q);if(W){if(V.selectors.length>0)V.end=G,Y.push(V);if(V=H(W,W.start),q.allow_whitespace(),q.match(",")||(Q?q.match(")"):q.match("{")))r2(q.index)}}M8(q.template.length)}function sQ(q){let Q=q.index;q.allow_whitespace();let Z=q.index,Y=q.read(m5);if(Y){let H=q.index;return q.allow_whitespace(),{type:"Combinator",name:Y,start:Z,end:H}}if(q.index!==Q)return{type:"Combinator",name:" ",start:Q,end:q.index};return null}function d5(q){let Q=q.index;q.eat("{",!0);let Z=[];while(q.index<q.template.length)if(M1(q),q.match("}"))break;else Z.push(aQ(q));return q.eat("}",!0),{type:"Block",start:Q,end:q.index,children:Z}}function aQ(q){if(q.match("@"))return l5(q);let Q=q.index;j6(q);let Z=q.template[q.index];return q.index=Q,Z==="{"?c5(q):rQ(q)}function rQ(q){let Q=q.index,Z=q.read_until(mQ);q.allow_whitespace(),q.eat(":");let Y=q.index;q.allow_whitespace();let H=j6(q);if(!H&&!Z.startsWith("--"))a2({start:Q,end:Y});let V=q.index;if(!q.match("}"))q.eat(";",!0);return{type:"Declaration",start:Q,end:V,property:Z,value:H}}function j6(q){let Q="",Z=!1,Y=!1,H=null;while(q.index<q.template.length){let V=q.template[q.index];if(Z){Q+="\\"+V,Z=!1,q.index++;continue}else if(V==="\\"){Z=!0,q.index++;continue}else if(V===H)H=null;else if(V===")")Y=!1;else if(H===null&&(V==='"'||V==="'"))H=V;else if(V==="("&&Q.slice(-3)==="url")Y=!0;else if((V===";"||V==="{"||V==="}")&&!Y&&!H)return Q.trim();else if(V==="/"&&!Y&&!H&&q.template[q.index+1]==="*"){q.index+=2;while(q.index<q.template.length){if(q.template[q.index]==="*"&&q.template[q.index+1]==="/"){q.index+=2;break}q.index++}continue}Q+=V,q.index++}M8(q.template.length)}function tQ(q){let Q="",Z=!1,Y=q.eat('"')?'"':q.eat("'")?"'":null;while(q.index<q.template.length){let H=q.template[q.index];if(Z)Q+="\\"+H,Z=!1;else if(H==="\\")Z=!0;else if(Y?H===Y:xQ.test(H)){if(Y)q.eat(Y,!0);return Q.trim()}else Q+=H;q.index++}M8(q.template.length)}function n8(q){let Q=q.index,Z="";if(q.match_regex(lQ))i9(Q);while(q.index<q.template.length){let Y=q.template[q.index];if(Y==="\\"){let H=q.match_regex(dQ);if(H)Z+=String.fromCodePoint(parseInt(H.slice(1),16)),q.index+=H.length;else Z+="\\"+q.template[q.index+1],q.index+=2}else if(Y.codePointAt(0)>=160||cQ.test(Y))Z+=Y,q.index++;else break}if(Z==="")i9(Q);return Z}function M1(q){q.allow_whitespace();while(q.match("/*")||q.match("<!--")){if(q.eat("/*"))q.read_until(iQ),q.eat("*/",!0);if(q.eat("<!--"))q.read_until(pQ),q.eat("-->",!0);q.allow_whitespace()}}var O6={"CounterClockwiseContourIntegral;":8755,"ClockwiseContourIntegral;":8754,"DoubleLongLeftRightArrow;":10234,"NotNestedGreaterGreater;":10914,"DiacriticalDoubleAcute;":733,"NotSquareSupersetEqual;":8931,"CloseCurlyDoubleQuote;":8221,"DoubleContourIntegral;":8751,"FilledVerySmallSquare;":9642,"NegativeVeryThinSpace;":8203,"NotPrecedesSlantEqual;":8928,"NotRightTriangleEqual;":8941,"NotSucceedsSlantEqual;":8929,"CapitalDifferentialD;":8517,"DoubleLeftRightArrow;":8660,"DoubleLongRightArrow;":10233,"EmptyVerySmallSquare;":9643,"NestedGreaterGreater;":8811,"NotDoubleVerticalBar;":8742,"NotGreaterSlantEqual;":10878,"NotLeftTriangleEqual;":8940,"NotSquareSubsetEqual;":8930,"OpenCurlyDoubleQuote;":8220,"ReverseUpEquilibrium;":10607,"DoubleLongLeftArrow;":10232,"DownLeftRightVector;":10576,"LeftArrowRightArrow;":8646,"NegativeMediumSpace;":8203,"NotGreaterFullEqual;":8807,"NotRightTriangleBar;":10704,"RightArrowLeftArrow;":8644,"SquareSupersetEqual;":8850,"leftrightsquigarrow;":8621,"DownRightTeeVector;":10591,"DownRightVectorBar;":10583,"LongLeftRightArrow;":10231,"Longleftrightarrow;":10234,"NegativeThickSpace;":8203,"NotLeftTriangleBar;":10703,"PrecedesSlantEqual;":8828,"ReverseEquilibrium;":8651,"RightDoubleBracket;":10215,"RightDownTeeVector;":10589,"RightDownVectorBar;":10581,"RightTriangleEqual;":8885,"SquareIntersection;":8851,"SucceedsSlantEqual;":8829,"blacktriangleright;":9656,"longleftrightarrow;":10231,"DoubleUpDownArrow;":8661,"DoubleVerticalBar;":8741,"DownLeftTeeVector;":10590,"DownLeftVectorBar;":10582,"FilledSmallSquare;":9724,"GreaterSlantEqual;":10878,"LeftDoubleBracket;":10214,"LeftDownTeeVector;":10593,"LeftDownVectorBar;":10585,"LeftTriangleEqual;":8884,"NegativeThinSpace;":8203,"NotGreaterGreater;":8811,"NotLessSlantEqual;":10877,"NotNestedLessLess;":10913,"NotReverseElement;":8716,"NotSquareSuperset;":8848,"NotTildeFullEqual;":8775,"RightAngleBracket;":10217,"RightUpDownVector;":10575,"SquareSubsetEqual;":8849,"VerticalSeparator;":10072,"blacktriangledown;":9662,"blacktriangleleft;":9666,"leftrightharpoons;":8651,"rightleftharpoons;":8652,"twoheadrightarrow;":8608,"DiacriticalAcute;":180,"DiacriticalGrave;":96,"DiacriticalTilde;":732,"DoubleRightArrow;":8658,"DownArrowUpArrow;":8693,"EmptySmallSquare;":9723,"GreaterEqualLess;":8923,"GreaterFullEqual;":8807,"LeftAngleBracket;":10216,"LeftUpDownVector;":10577,"LessEqualGreater;":8922,"NonBreakingSpace;":160,"NotPrecedesEqual;":10927,"NotRightTriangle;":8939,"NotSucceedsEqual;":10928,"NotSucceedsTilde;":8831,"NotSupersetEqual;":8841,"RightTriangleBar;":10704,"RightUpTeeVector;":10588,"RightUpVectorBar;":10580,"UnderParenthesis;":9181,"UpArrowDownArrow;":8645,"circlearrowright;":8635,"downharpoonright;":8642,"ntrianglerighteq;":8941,"rightharpoondown;":8641,"rightrightarrows;":8649,"twoheadleftarrow;":8606,"vartriangleright;":8883,"CloseCurlyQuote;":8217,"ContourIntegral;":8750,"DoubleDownArrow;":8659,"DoubleLeftArrow;":8656,"DownRightVector;":8641,"LeftRightVector;":10574,"LeftTriangleBar;":10703,"LeftUpTeeVector;":10592,"LeftUpVectorBar;":10584,"LowerRightArrow;":8600,"NotGreaterEqual;":8817,"NotGreaterTilde;":8821,"NotHumpDownHump;":8782,"NotLeftTriangle;":8938,"NotSquareSubset;":8847,"OverParenthesis;":9180,"RightDownVector;":8642,"ShortRightArrow;":8594,"UpperRightArrow;":8599,"bigtriangledown;":9661,"circlearrowleft;":8634,"curvearrowright;":8631,"downharpoonleft;":8643,"leftharpoondown;":8637,"leftrightarrows;":8646,"nLeftrightarrow;":8654,"nleftrightarrow;":8622,"ntrianglelefteq;":8940,"rightleftarrows;":8644,"rightsquigarrow;":8605,"rightthreetimes;":8908,"straightepsilon;":1013,"trianglerighteq;":8885,"vartriangleleft;":8882,"DiacriticalDot;":729,"DoubleRightTee;":8872,"DownLeftVector;":8637,"GreaterGreater;":10914,"HorizontalLine;":9472,"InvisibleComma;":8291,"InvisibleTimes;":8290,"LeftDownVector;":8643,"LeftRightArrow;":8596,"Leftrightarrow;":8660,"LessSlantEqual;":10877,"LongRightArrow;":10230,"Longrightarrow;":10233,"LowerLeftArrow;":8601,"NestedLessLess;":8810,"NotGreaterLess;":8825,"NotLessGreater;":8824,"NotSubsetEqual;":8840,"NotVerticalBar;":8740,"OpenCurlyQuote;":8216,"ReverseElement;":8715,"RightTeeVector;":10587,"RightVectorBar;":10579,"ShortDownArrow;":8595,"ShortLeftArrow;":8592,"SquareSuperset;":8848,"TildeFullEqual;":8773,"UpperLeftArrow;":8598,"ZeroWidthSpace;":8203,"curvearrowleft;":8630,"doublebarwedge;":8966,"downdownarrows;":8650,"hookrightarrow;":8618,"leftleftarrows;":8647,"leftrightarrow;":8596,"leftthreetimes;":8907,"longrightarrow;":10230,"looparrowright;":8620,"nshortparallel;":8742,"ntriangleright;":8939,"rightarrowtail;":8611,"rightharpoonup;":8640,"trianglelefteq;":8884,"upharpoonright;":8638,"ApplyFunction;":8289,"DifferentialD;":8518,"DoubleLeftTee;":10980,"DoubleUpArrow;":8657,"LeftTeeVector;":10586,"LeftVectorBar;":10578,"LessFullEqual;":8806,"LongLeftArrow;":10229,"Longleftarrow;":10232,"NotEqualTilde;":8770,"NotTildeEqual;":8772,"NotTildeTilde;":8777,"Poincareplane;":8460,"PrecedesEqual;":10927,"PrecedesTilde;":8830,"RightArrowBar;":8677,"RightTeeArrow;":8614,"RightTriangle;":8883,"RightUpVector;":8638,"SucceedsEqual;":10928,"SucceedsTilde;":8831,"SupersetEqual;":8839,"UpEquilibrium;":10606,"VerticalTilde;":8768,"VeryThinSpace;":8202,"bigtriangleup;":9651,"blacktriangle;":9652,"divideontimes;":8903,"fallingdotseq;":8786,"hookleftarrow;":8617,"leftarrowtail;":8610,"leftharpoonup;":8636,"longleftarrow;":10229,"looparrowleft;":8619,"measuredangle;":8737,"ntriangleleft;":8938,"shortparallel;":8741,"smallsetminus;":8726,"triangleright;":9657,"upharpoonleft;":8639,"varsubsetneqq;":10955,"varsupsetneqq;":10956,"DownArrowBar;":10515,"DownTeeArrow;":8615,"ExponentialE;":8519,"GreaterEqual;":8805,"GreaterTilde;":8819,"HilbertSpace;":8459,"HumpDownHump;":8782,"Intersection;":8898,"LeftArrowBar;":8676,"LeftTeeArrow;":8612,"LeftTriangle;":8882,"LeftUpVector;":8639,"NotCongruent;":8802,"NotHumpEqual;":8783,"NotLessEqual;":8816,"NotLessTilde;":8820,"Proportional;":8733,"RightCeiling;":8969,"RoundImplies;":10608,"ShortUpArrow;":8593,"SquareSubset;":8847,"UnderBracket;":9141,"VerticalLine;":124,"blacklozenge;":10731,"exponentiale;":8519,"risingdotseq;":8787,"triangledown;":9663,"triangleleft;":9667,"varsubsetneq;":8842,"varsupsetneq;":8843,"CircleMinus;":8854,"CircleTimes;":8855,"Equilibrium;":8652,"GreaterLess;":8823,"LeftCeiling;":8968,"LessGreater;":8822,"MediumSpace;":8287,"NotLessLess;":8810,"NotPrecedes;":8832,"NotSucceeds;":8833,"NotSuperset;":8835,"OverBracket;":9140,"RightVector;":8640,"Rrightarrow;":8667,"RuleDelayed;":10740,"SmallCircle;":8728,"SquareUnion;":8852,"SubsetEqual;":8838,"UpDownArrow;":8597,"Updownarrow;":8661,"VerticalBar;":8739,"backepsilon;":1014,"blacksquare;":9642,"circledcirc;":8858,"circleddash;":8861,"curlyeqprec;":8926,"curlyeqsucc;":8927,"diamondsuit;":9830,"eqslantless;":10901,"expectation;":8496,"nRightarrow;":8655,"nrightarrow;":8603,"preccurlyeq;":8828,"precnapprox;":10937,"quaternions;":8461,"straightphi;":981,"succcurlyeq;":8829,"succnapprox;":10938,"thickapprox;":8776,"updownarrow;":8597,"Bernoullis;":8492,"CirclePlus;":8853,"EqualTilde;":8770,"Fouriertrf;":8497,"ImaginaryI;":8520,"Laplacetrf;":8466,"LeftVector;":8636,"Lleftarrow;":8666,"NotElement;":8713,"NotGreater;":8815,"Proportion;":8759,"RightArrow;":8594,"RightFloor;":8971,"Rightarrow;":8658,"ThickSpace;":8287,"TildeEqual;":8771,"TildeTilde;":8776,"UnderBrace;":9183,"UpArrowBar;":10514,"UpTeeArrow;":8613,"circledast;":8859,"complement;":8705,"curlywedge;":8911,"eqslantgtr;":10902,"gtreqqless;":10892,"lessapprox;":10885,"lesseqqgtr;":10891,"lmoustache;":9136,"longmapsto;":10236,"mapstodown;":8615,"mapstoleft;":8612,"nLeftarrow;":8653,"nleftarrow;":8602,"nsubseteqq;":10949,"nsupseteqq;":10950,"precapprox;":10935,"rightarrow;":8594,"rmoustache;":9137,"sqsubseteq;":8849,"sqsupseteq;":8850,"subsetneqq;":10955,"succapprox;":10936,"supsetneqq;":10956,"upuparrows;":8648,"varepsilon;":1013,"varnothing;":8709,"Backslash;":8726,"CenterDot;":183,"CircleDot;":8857,"Congruent;":8801,"Coproduct;":8720,"DoubleDot;":168,"DownArrow;":8595,"DownBreve;":785,"Downarrow;":8659,"HumpEqual;":8783,"LeftArrow;":8592,"LeftFloor;":8970,"Leftarrow;":8656,"LessTilde;":8818,"Mellintrf;":8499,"MinusPlus;":8723,"NotCupCap;":8813,"NotExists;":8708,"NotSubset;":8834,"OverBrace;":9182,"PlusMinus;":177,"Therefore;":8756,"ThinSpace;":8201,"TripleDot;":8411,"UnionPlus;":8846,"backprime;":8245,"backsimeq;":8909,"bigotimes;":10754,"centerdot;":183,"checkmark;":10003,"complexes;":8450,"dotsquare;":8865,"downarrow;":8595,"gtrapprox;":10886,"gtreqless;":8923,"gvertneqq;":8809,"heartsuit;":9829,"leftarrow;":8592,"lesseqgtr;":8922,"lvertneqq;":8808,"ngeqslant;":10878,"nleqslant;":10877,"nparallel;":8742,"nshortmid;":8740,"nsubseteq;":8840,"nsupseteq;":8841,"pitchfork;":8916,"rationals;":8474,"spadesuit;":9824,"subseteqq;":10949,"subsetneq;":8842,"supseteqq;":10950,"supsetneq;":8843,"therefore;":8756,"triangleq;":8796,"varpropto;":8733,"DDotrahd;":10513,"DotEqual;":8784,"Integral;":8747,"LessLess;":10913,"NotEqual;":8800,"NotTilde;":8769,"PartialD;":8706,"Precedes;":8826,"RightTee;":8866,"Succeeds;":8827,"SuchThat;":8715,"Superset;":8835,"Uarrocir;":10569,"UnderBar;":95,"andslope;":10840,"angmsdaa;":10664,"angmsdab;":10665,"angmsdac;":10666,"angmsdad;":10667,"angmsdae;":10668,"angmsdaf;":10669,"angmsdag;":10670,"angmsdah;":10671,"angrtvbd;":10653,"approxeq;":8778,"awconint;":8755,"backcong;":8780,"barwedge;":8965,"bbrktbrk;":9142,"bigoplus;":10753,"bigsqcup;":10758,"biguplus;":10756,"bigwedge;":8896,"boxminus;":8863,"boxtimes;":8864,"bsolhsub;":10184,"capbrcup;":10825,"circledR;":174,"circledS;":9416,"cirfnint;":10768,"clubsuit;":9827,"cupbrcap;":10824,"curlyvee;":8910,"cwconint;":8754,"doteqdot;":8785,"dotminus;":8760,"drbkarow;":10512,"dzigrarr;":10239,"elinters;":9191,"emptyset;":8709,"eqvparsl;":10725,"fpartint;":10765,"geqslant;":10878,"gesdotol;":10884,"gnapprox;":10890,"hksearow;":10533,"hkswarow;":10534,"imagline;":8464,"imagpart;":8465,"infintie;":10717,"integers;":8484,"intercal;":8890,"intlarhk;":10775,"laemptyv;":10676,"ldrushar;":10571,"leqslant;":10877,"lesdotor;":10883,"llcorner;":8990,"lnapprox;":10889,"lrcorner;":8991,"lurdshar;":10570,"mapstoup;":8613,"multimap;":8888,"naturals;":8469,"ncongdot;":10861,"notindot;":8949,"otimesas;":10806,"parallel;":8741,"plusacir;":10787,"pointint;":10773,"precneqq;":10933,"precnsim;":8936,"profalar;":9006,"profline;":8978,"profsurf;":8979,"raemptyv;":10675,"realpart;":8476,"rppolint;":10770,"rtriltri;":10702,"scpolint;":10771,"setminus;":8726,"shortmid;":8739,"smeparsl;":10724,"sqsubset;":8847,"sqsupset;":8848,"subseteq;":8838,"succneqq;":10934,"succnsim;":8937,"supseteq;":8839,"thetasym;":977,"thicksim;":8764,"timesbar;":10801,"triangle;":9653,"triminus;":10810,"trpezium;":9186,"ulcorner;":8988,"urcorner;":8989,"varkappa;":1008,"varsigma;":962,"vartheta;":977,"Because;":8757,"Cayleys;":8493,"Cconint;":8752,"Cedilla;":184,"Diamond;":8900,"DownTee;":8868,"Element;":8712,"Epsilon;":917,"Implies;":8658,"LeftTee;":8867,"NewLine;":10,"NoBreak;":8288,"NotLess;":8814,"Omicron;":927,"OverBar;":8254,"Product;":8719,"UpArrow;":8593,"Uparrow;":8657,"Upsilon;":933,"alefsym;":8501,"angrtvb;":8894,"angzarr;":9084,"asympeq;":8781,"backsim;":8765,"because;":8757,"bemptyv;":10672,"between;":8812,"bigcirc;":9711,"bigodot;":10752,"bigstar;":9733,"bnequiv;":8801,"boxplus;":8862,"ccupssm;":10832,"cemptyv;":10674,"cirscir;":10690,"coloneq;":8788,"congdot;":10861,"cudarrl;":10552,"cudarrr;":10549,"cularrp;":10557,"curarrm;":10556,"dbkarow;":10511,"ddagger;":8225,"ddotseq;":10871,"demptyv;":10673,"diamond;":8900,"digamma;":989,"dotplus;":8724,"dwangle;":10662,"epsilon;":949,"eqcolon;":8789,"equivDD;":10872,"gesdoto;":10882,"gtquest;":10876,"gtrless;":8823,"harrcir;":10568,"intprod;":10812,"isindot;":8949,"larrbfs;":10527,"larrsim;":10611,"lbrksld;":10639,"lbrkslu;":10637,"ldrdhar;":10599,"lesdoto;":10881,"lessdot;":8918,"lessgtr;":8822,"lesssim;":8818,"lotimes;":10804,"lozenge;":9674,"ltquest;":10875,"luruhar;":10598,"maltese;":10016,"minusdu;":10794,"napprox;":8777,"natural;":9838,"nearrow;":8599,"nexists;":8708,"notinva;":8713,"notinvb;":8951,"notinvc;":8950,"notniva;":8716,"notnivb;":8958,"notnivc;":8957,"npolint;":10772,"npreceq;":10927,"nsqsube;":8930,"nsqsupe;":8931,"nsubset;":8834,"nsucceq;":10928,"nsupset;":8835,"nvinfin;":10718,"nvltrie;":8884,"nvrtrie;":8885,"nwarrow;":8598,"olcross;":10683,"omicron;":959,"orderof;":8500,"orslope;":10839,"pertenk;":8241,"planckh;":8462,"pluscir;":10786,"plussim;":10790,"plustwo;":10791,"precsim;":8830,"quatint;":10774,"questeq;":8799,"rarrbfs;":10528,"rarrsim;":10612,"rbrksld;":10638,"rbrkslu;":10640,"rdldhar;":10601,"realine;":8475,"rotimes;":10805,"ruluhar;":10600,"searrow;":8600,"simplus;":10788,"simrarr;":10610,"subedot;":10947,"submult;":10945,"subplus;":10943,"subrarr;":10617,"succsim;":8831,"supdsub;":10968,"supedot;":10948,"suphsol;":10185,"suphsub;":10967,"suplarr;":10619,"supmult;":10946,"supplus;":10944,"swarrow;":8601,"topfork;":10970,"triplus;":10809,"tritime;":10811,"uparrow;":8593,"upsilon;":965,"uwangle;":10663,"vzigzag;":10650,"zigrarr;":8669,"Aacute;":193,"Abreve;":258,"Agrave;":192,"Assign;":8788,"Atilde;":195,"Barwed;":8966,"Bumpeq;":8782,"Cacute;":262,"Ccaron;":268,"Ccedil;":199,"Colone;":10868,"Conint;":8751,"CupCap;":8781,"Dagger;":8225,"Dcaron;":270,"DotDot;":8412,"Dstrok;":272,"Eacute;":201,"Ecaron;":282,"Egrave;":200,"Exists;":8707,"ForAll;":8704,"Gammad;":988,"Gbreve;":286,"Gcedil;":290,"HARDcy;":1066,"Hstrok;":294,"Iacute;":205,"Igrave;":204,"Itilde;":296,"Jsercy;":1032,"Kcedil;":310,"Lacute;":313,"Lambda;":923,"Lcaron;":317,"Lcedil;":315,"Lmidot;":319,"Lstrok;":321,"Nacute;":323,"Ncaron;":327,"Ncedil;":325,"Ntilde;":209,"Oacute;":211,"Odblac;":336,"Ograve;":210,"Oslash;":216,"Otilde;":213,"Otimes;":10807,"Racute;":340,"Rarrtl;":10518,"Rcaron;":344,"Rcedil;":342,"SHCHcy;":1065,"SOFTcy;":1068,"Sacute;":346,"Scaron;":352,"Scedil;":350,"Square;":9633,"Subset;":8912,"Supset;":8913,"Tcaron;":356,"Tcedil;":354,"Tstrok;":358,"Uacute;":218,"Ubreve;":364,"Udblac;":368,"Ugrave;":217,"Utilde;":360,"Vdashl;":10982,"Verbar;":8214,"Vvdash;":8874,"Yacute;":221,"Zacute;":377,"Zcaron;":381,"aacute;":225,"abreve;":259,"agrave;":224,"andand;":10837,"angmsd;":8737,"angsph;":8738,"apacir;":10863,"approx;":8776,"atilde;":227,"barvee;":8893,"barwed;":8965,"becaus;":8757,"bernou;":8492,"bigcap;":8898,"bigcup;":8899,"bigvee;":8897,"bkarow;":10509,"bottom;":8869,"bowtie;":8904,"boxbox;":10697,"bprime;":8245,"brvbar;":166,"bullet;":8226,"bumpeq;":8783,"cacute;":263,"capand;":10820,"capcap;":10827,"capcup;":10823,"capdot;":10816,"ccaron;":269,"ccedil;":231,"circeq;":8791,"cirmid;":10991,"colone;":8788,"commat;":64,"compfn;":8728,"conint;":8750,"coprod;":8720,"copysr;":8471,"cularr;":8630,"cupcap;":10822,"cupcup;":10826,"cupdot;":8845,"curarr;":8631,"curren;":164,"cylcty;":9005,"dagger;":8224,"daleth;":8504,"dcaron;":271,"dfisht;":10623,"divide;":247,"divonx;":8903,"dlcorn;":8990,"dlcrop;":8973,"dollar;":36,"drcorn;":8991,"drcrop;":8972,"dstrok;":273,"eacute;":233,"easter;":10862,"ecaron;":283,"ecolon;":8789,"egrave;":232,"egsdot;":10904,"elsdot;":10903,"emptyv;":8709,"emsp13;":8196,"emsp14;":8197,"eparsl;":10723,"eqcirc;":8790,"equals;":61,"equest;":8799,"female;":9792,"ffilig;":64259,"ffllig;":64260,"forall;":8704,"frac12;":189,"frac13;":8531,"frac14;":188,"frac15;":8533,"frac16;":8537,"frac18;":8539,"frac23;":8532,"frac25;":8534,"frac34;":190,"frac35;":8535,"frac38;":8540,"frac45;":8536,"frac56;":8538,"frac58;":8541,"frac78;":8542,"gacute;":501,"gammad;":989,"gbreve;":287,"gesdot;":10880,"gesles;":10900,"gtlPar;":10645,"gtrarr;":10616,"gtrdot;":8919,"gtrsim;":8819,"hairsp;":8202,"hamilt;":8459,"hardcy;":1098,"hearts;":9829,"hellip;":8230,"hercon;":8889,"homtht;":8763,"horbar;":8213,"hslash;":8463,"hstrok;":295,"hybull;":8259,"hyphen;":8208,"iacute;":237,"igrave;":236,"iiiint;":10764,"iinfin;":10716,"incare;":8453,"inodot;":305,"intcal;":8890,"iquest;":191,"isinsv;":8947,"itilde;":297,"jsercy;":1112,"kappav;":1008,"kcedil;":311,"kgreen;":312,"lAtail;":10523,"lacute;":314,"lagran;":8466,"lambda;":955,"langle;":10216,"larrfs;":10525,"larrhk;":8617,"larrlp;":8619,"larrpl;":10553,"larrtl;":8610,"latail;":10521,"lbrace;":123,"lbrack;":91,"lcaron;":318,"lcedil;":316,"ldquor;":8222,"lesdot;":10879,"lesges;":10899,"lfisht;":10620,"lfloor;":8970,"lharul;":10602,"llhard;":10603,"lmidot;":320,"lmoust;":9136,"loplus;":10797,"lowast;":8727,"lowbar;":95,"lparlt;":10643,"lrhard;":10605,"lsaquo;":8249,"lsquor;":8218,"lstrok;":322,"lthree;":8907,"ltimes;":8905,"ltlarr;":10614,"ltrPar;":10646,"mapsto;":8614,"marker;":9646,"mcomma;":10793,"midast;":42,"midcir;":10992,"middot;":183,"minusb;":8863,"minusd;":8760,"mnplus;":8723,"models;":8871,"mstpos;":8766,"nVDash;":8879,"nVdash;":8878,"nacute;":324,"nbumpe;":8783,"ncaron;":328,"ncedil;":326,"nearhk;":10532,"nequiv;":8802,"nesear;":10536,"nexist;":8708,"nltrie;":8940,"notinE;":8953,"nparsl;":11005,"nprcue;":8928,"nrarrc;":10547,"nrarrw;":8605,"nrtrie;":8941,"nsccue;":8929,"nsimeq;":8772,"ntilde;":241,"numero;":8470,"nvDash;":8877,"nvHarr;":10500,"nvdash;":8876,"nvlArr;":10498,"nvrArr;":10499,"nwarhk;":10531,"nwnear;":10535,"oacute;":243,"odblac;":337,"odsold;":10684,"ograve;":242,"ominus;":8854,"origof;":8886,"oslash;":248,"otilde;":245,"otimes;":8855,"parsim;":10995,"percnt;":37,"period;":46,"permil;":8240,"phmmat;":8499,"planck;":8463,"plankv;":8463,"plusdo;":8724,"plusdu;":10789,"plusmn;":177,"preceq;":10927,"primes;":8473,"prnsim;":8936,"propto;":8733,"prurel;":8880,"puncsp;":8200,"qprime;":8279,"rAtail;":10524,"racute;":341,"rangle;":10217,"rarrap;":10613,"rarrfs;":10526,"rarrhk;":8618,"rarrlp;":8620,"rarrpl;":10565,"rarrtl;":8611,"ratail;":10522,"rbrace;":125,"rbrack;":93,"rcaron;":345,"rcedil;":343,"rdquor;":8221,"rfisht;":10621,"rfloor;":8971,"rharul;":10604,"rmoust;":9137,"roplus;":10798,"rpargt;":10644,"rsaquo;":8250,"rsquor;":8217,"rthree;":8908,"rtimes;":8906,"sacute;":347,"scaron;":353,"scedil;":351,"scnsim;":8937,"searhk;":10533,"seswar;":10537,"sfrown;":8994,"shchcy;":1097,"sigmaf;":962,"sigmav;":962,"simdot;":10858,"smashp;":10803,"softcy;":1100,"solbar;":9023,"spades;":9824,"sqcaps;":8851,"sqcups;":8852,"sqsube;":8849,"sqsupe;":8850,"square;":9633,"squarf;":9642,"ssetmn;":8726,"ssmile;":8995,"sstarf;":8902,"subdot;":10941,"subset;":8834,"subsim;":10951,"subsub;":10965,"subsup;":10963,"succeq;":10928,"supdot;":10942,"supset;":8835,"supsim;":10952,"supsub;":10964,"supsup;":10966,"swarhk;":10534,"swnwar;":10538,"target;":8982,"tcaron;":357,"tcedil;":355,"telrec;":8981,"there4;":8756,"thetav;":977,"thinsp;":8201,"thksim;":8764,"timesb;":8864,"timesd;":10800,"topbot;":9014,"topcir;":10993,"tprime;":8244,"tridot;":9708,"tstrok;":359,"uacute;":250,"ubreve;":365,"udblac;":369,"ufisht;":10622,"ugrave;":249,"ulcorn;":8988,"ulcrop;":8975,"urcorn;":8989,"urcrop;":8974,"utilde;":361,"vangrt;":10652,"varphi;":981,"varrho;":1009,"veebar;":8891,"vellip;":8942,"verbar;":124,"vsubnE;":10955,"vsubne;":8842,"vsupnE;":10956,"vsupne;":8843,"wedbar;":10847,"wedgeq;":8793,"weierp;":8472,"wreath;":8768,"xoplus;":10753,"xotime;":10754,"xsqcup;":10758,"xuplus;":10756,"xwedge;":8896,"yacute;":253,"zacute;":378,"zcaron;":382,"zeetrf;":8488,"AElig;":198,Aacute:193,"Acirc;":194,Agrave:192,"Alpha;":913,"Amacr;":256,"Aogon;":260,"Aring;":197,Atilde:195,"Breve;":728,Ccedil:199,"Ccirc;":264,"Colon;":8759,"Cross;":10799,"Dashv;":10980,"Delta;":916,Eacute:201,"Ecirc;":202,Egrave:200,"Emacr;":274,"Eogon;":280,"Equal;":10869,"Gamma;":915,"Gcirc;":284,"Hacek;":711,"Hcirc;":292,"IJlig;":306,Iacute:205,"Icirc;":206,Igrave:204,"Imacr;":298,"Iogon;":302,"Iukcy;":1030,"Jcirc;":308,"Jukcy;":1028,"Kappa;":922,Ntilde:209,"OElig;":338,Oacute:211,"Ocirc;":212,Ograve:210,"Omacr;":332,"Omega;":937,Oslash:216,Otilde:213,"Prime;":8243,"RBarr;":10512,"Scirc;":348,"Sigma;":931,"THORN;":222,"TRADE;":8482,"TSHcy;":1035,"Theta;":920,"Tilde;":8764,Uacute:218,"Ubrcy;":1038,"Ucirc;":219,Ugrave:217,"Umacr;":362,"Union;":8899,"Uogon;":370,"UpTee;":8869,"Uring;":366,"VDash;":8875,"Vdash;":8873,"Wcirc;":372,"Wedge;":8896,Yacute:221,"Ycirc;":374,aacute:225,"acirc;":226,"acute;":180,"aelig;":230,agrave:224,"aleph;":8501,"alpha;":945,"amacr;":257,"amalg;":10815,"angle;":8736,"angrt;":8735,"angst;":197,"aogon;":261,"aring;":229,"asymp;":8776,atilde:227,"awint;":10769,"bcong;":8780,"bdquo;":8222,"bepsi;":1014,"blank;":9251,"blk12;":9618,"blk14;":9617,"blk34;":9619,"block;":9608,"boxDL;":9559,"boxDR;":9556,"boxDl;":9558,"boxDr;":9555,"boxHD;":9574,"boxHU;":9577,"boxHd;":9572,"boxHu;":9575,"boxUL;":9565,"boxUR;":9562,"boxUl;":9564,"boxUr;":9561,"boxVH;":9580,"boxVL;":9571,"boxVR;":9568,"boxVh;":9579,"boxVl;":9570,"boxVr;":9567,"boxdL;":9557,"boxdR;":9554,"boxdl;":9488,"boxdr;":9484,"boxhD;":9573,"boxhU;":9576,"boxhd;":9516,"boxhu;":9524,"boxuL;":9563,"boxuR;":9560,"boxul;":9496,"boxur;":9492,"boxvH;":9578,"boxvL;":9569,"boxvR;":9566,"boxvh;":9532,"boxvl;":9508,"boxvr;":9500,"breve;":728,brvbar:166,"bsemi;":8271,"bsime;":8909,"bsolb;":10693,"bumpE;":10926,"bumpe;":8783,"caret;":8257,"caron;":711,"ccaps;":10829,ccedil:231,"ccirc;":265,"ccups;":10828,"cedil;":184,"check;":10003,"clubs;":9827,"colon;":58,"comma;":44,"crarr;":8629,"cross;":10007,"csube;":10961,"csupe;":10962,"ctdot;":8943,"cuepr;":8926,"cuesc;":8927,"cupor;":10821,curren:164,"cuvee;":8910,"cuwed;":8911,"cwint;":8753,"dashv;":8867,"dblac;":733,"ddarr;":8650,"delta;":948,"dharl;":8643,"dharr;":8642,"diams;":9830,"disin;":8946,divide:247,"doteq;":8784,"dtdot;":8945,"dtrif;":9662,"duarr;":8693,"duhar;":10607,"eDDot;":10871,eacute:233,"ecirc;":234,"efDot;":8786,egrave:232,"emacr;":275,"empty;":8709,"eogon;":281,"eplus;":10865,"epsiv;":1013,"eqsim;":8770,"equiv;":8801,"erDot;":8787,"erarr;":10609,"esdot;":8784,"exist;":8707,"fflig;":64256,"filig;":64257,"fjlig;":102,"fllig;":64258,"fltns;":9649,"forkv;":10969,frac12:189,frac14:188,frac34:190,"frasl;":8260,"frown;":8994,"gamma;":947,"gcirc;":285,"gescc;":10921,"gimel;":8503,"gneqq;":8809,"gnsim;":8935,"grave;":96,"gsime;":10894,"gsiml;":10896,"gtcir;":10874,"gtdot;":8919,"harrw;":8621,"hcirc;":293,"hoarr;":8703,iacute:237,"icirc;":238,"iexcl;":161,igrave:236,"iiint;":8749,"iiota;":8489,"ijlig;":307,"imacr;":299,"image;":8465,"imath;":305,"imped;":437,"infin;":8734,"iogon;":303,"iprod;":10812,iquest:191,"isinE;":8953,"isins;":8948,"isinv;":8712,"iukcy;":1110,"jcirc;":309,"jmath;":567,"jukcy;":1108,"kappa;":954,"lAarr;":8666,"lBarr;":10510,"langd;":10641,"laquo;":171,"larrb;":8676,"lates;":10925,"lbarr;":10508,"lbbrk;":10098,"lbrke;":10635,"lceil;":8968,"ldquo;":8220,"lescc;":10920,"lhard;":8637,"lharu;":8636,"lhblk;":9604,"llarr;":8647,"lltri;":9722,"lneqq;":8808,"lnsim;":8934,"loang;":10220,"loarr;":8701,"lobrk;":10214,"lopar;":10629,"lrarr;":8646,"lrhar;":8651,"lrtri;":8895,"lsime;":10893,"lsimg;":10895,"lsquo;":8216,"ltcir;":10873,"ltdot;":8918,"ltrie;":8884,"ltrif;":9666,"mDDot;":8762,"mdash;":8212,"micro;":181,middot:183,"minus;":8722,"mumap;":8888,"nabla;":8711,"napid;":8779,"napos;":329,"natur;":9838,"nbump;":8782,"ncong;":8775,"ndash;":8211,"neArr;":8663,"nearr;":8599,"nedot;":8784,"nesim;":8770,"ngeqq;":8807,"ngsim;":8821,"nhArr;":8654,"nharr;":8622,"nhpar;":10994,"nlArr;":8653,"nlarr;":8602,"nleqq;":8806,"nless;":8814,"nlsim;":8820,"nltri;":8938,"notin;":8713,"notni;":8716,"npart;":8706,"nprec;":8832,"nrArr;":8655,"nrarr;":8603,"nrtri;":8939,"nsime;":8772,"nsmid;":8740,"nspar;":8742,"nsubE;":10949,"nsube;":8840,"nsucc;":8833,"nsupE;":10950,"nsupe;":8841,ntilde:241,"numsp;":8199,"nvsim;":8764,"nwArr;":8662,"nwarr;":8598,oacute:243,"ocirc;":244,"odash;":8861,"oelig;":339,"ofcir;":10687,ograve:242,"ohbar;":10677,"olarr;":8634,"olcir;":10686,"oline;":8254,"omacr;":333,"omega;":969,"operp;":10681,"oplus;":8853,"orarr;":8635,"order;":8500,oslash:248,otilde:245,"ovbar;":9021,"parsl;":11005,"phone;":9742,"plusb;":8862,"pluse;":10866,plusmn:177,"pound;":163,"prcue;":8828,"prime;":8242,"prnap;":10937,"prsim;":8830,"quest;":63,"rAarr;":8667,"rBarr;":10511,"radic;":8730,"rangd;":10642,"range;":10661,"raquo;":187,"rarrb;":8677,"rarrc;":10547,"rarrw;":8605,"ratio;":8758,"rbarr;":10509,"rbbrk;":10099,"rbrke;":10636,"rceil;":8969,"rdquo;":8221,"reals;":8477,"rhard;":8641,"rharu;":8640,"rlarr;":8644,"rlhar;":8652,"rnmid;":10990,"roang;":10221,"roarr;":8702,"robrk;":10215,"ropar;":10630,"rrarr;":8649,"rsquo;":8217,"rtrie;":8885,"rtrif;":9656,"sbquo;":8218,"sccue;":8829,"scirc;":349,"scnap;":10938,"scsim;":8831,"sdotb;":8865,"sdote;":10854,"seArr;":8664,"searr;":8600,"setmn;":8726,"sharp;":9839,"sigma;":963,"simeq;":8771,"simgE;":10912,"simlE;":10911,"simne;":8774,"slarr;":8592,"smile;":8995,"smtes;":10924,"sqcap;":8851,"sqcup;":8852,"sqsub;":8847,"sqsup;":8848,"srarr;":8594,"starf;":9733,"strns;":175,"subnE;":10955,"subne;":8842,"supnE;":10956,"supne;":8843,"swArr;":8665,"swarr;":8601,"szlig;":223,"theta;":952,"thkap;":8776,"thorn;":254,"tilde;":732,"times;":215,"trade;":8482,"trisb;":10701,"tshcy;":1115,"twixt;":8812,uacute:250,"ubrcy;":1118,"ucirc;":251,"udarr;":8645,"udhar;":10606,ugrave:249,"uharl;":8639,"uharr;":8638,"uhblk;":9600,"ultri;":9720,"umacr;":363,"uogon;":371,"uplus;":8846,"upsih;":978,"uring;":367,"urtri;":9721,"utdot;":8944,"utrif;":9652,"uuarr;":8648,"vBarv;":10985,"vDash;":8872,"varpi;":982,"vdash;":8866,"veeeq;":8794,"vltri;":8882,"vnsub;":8834,"vnsup;":8835,"vprop;":8733,"vrtri;":8883,"wcirc;":373,"wedge;":8743,"xcirc;":9711,"xdtri;":9661,"xhArr;":10234,"xharr;":10231,"xlArr;":10232,"xlarr;":10229,"xodot;":10752,"xrArr;":10233,"xrarr;":10230,"xutri;":9651,yacute:253,"ycirc;":375,AElig:198,Acirc:194,"Aopf;":120120,Aring:197,"Ascr;":119964,"Auml;":196,"Barv;":10983,"Beta;":914,"Bopf;":120121,"Bscr;":8492,"CHcy;":1063,"COPY;":169,"Cdot;":266,"Copf;":8450,"Cscr;":119966,"DJcy;":1026,"DScy;":1029,"DZcy;":1039,"Darr;":8609,"Dopf;":120123,"Dscr;":119967,Ecirc:202,"Edot;":278,"Eopf;":120124,"Escr;":8496,"Esim;":10867,"Euml;":203,"Fopf;":120125,"Fscr;":8497,"GJcy;":1027,"Gdot;":288,"Gopf;":120126,"Gscr;":119970,"Hopf;":8461,"Hscr;":8459,"IEcy;":1045,"IOcy;":1025,Icirc:206,"Idot;":304,"Iopf;":120128,"Iota;":921,"Iscr;":8464,"Iuml;":207,"Jopf;":120129,"Jscr;":119973,"KHcy;":1061,"KJcy;":1036,"Kopf;":120130,"Kscr;":119974,"LJcy;":1033,"Lang;":10218,"Larr;":8606,"Lopf;":120131,"Lscr;":8466,"Mopf;":120132,"Mscr;":8499,"NJcy;":1034,"Nopf;":8469,"Nscr;":119977,Ocirc:212,"Oopf;":120134,"Oscr;":119978,"Ouml;":214,"Popf;":8473,"Pscr;":119979,"QUOT;":34,"Qopf;":8474,"Qscr;":119980,"Rang;":10219,"Rarr;":8608,"Ropf;":8477,"Rscr;":8475,"SHcy;":1064,"Sopf;":120138,"Sqrt;":8730,"Sscr;":119982,"Star;":8902,THORN:222,"TScy;":1062,"Topf;":120139,"Tscr;":119983,"Uarr;":8607,Ucirc:219,"Uopf;":120140,"Upsi;":978,"Uscr;":119984,"Uuml;":220,"Vbar;":10987,"Vert;":8214,"Vopf;":120141,"Vscr;":119985,"Wopf;":120142,"Wscr;":119986,"Xopf;":120143,"Xscr;":119987,"YAcy;":1071,"YIcy;":1031,"YUcy;":1070,"Yopf;":120144,"Yscr;":119988,"Yuml;":376,"ZHcy;":1046,"Zdot;":379,"Zeta;":918,"Zopf;":8484,"Zscr;":119989,acirc:226,acute:180,aelig:230,"andd;":10844,"andv;":10842,"ange;":10660,"aopf;":120146,"apid;":8779,"apos;":39,aring:229,"ascr;":119990,"auml;":228,"bNot;":10989,"bbrk;":9141,"beta;":946,"beth;":8502,"bnot;":8976,"bopf;":120147,"boxH;":9552,"boxV;":9553,"boxh;":9472,"boxv;":9474,"bscr;":119991,"bsim;":8765,"bsol;":92,"bull;":8226,"bump;":8782,"caps;":8745,"cdot;":267,cedil:184,"cent;":162,"chcy;":1095,"cirE;":10691,"circ;":710,"cire;":8791,"comp;":8705,"cong;":8773,"copf;":120148,"copy;":169,"cscr;":119992,"csub;":10959,"csup;":10960,"cups;":8746,"dArr;":8659,"dHar;":10597,"darr;":8595,"dash;":8208,"diam;":8900,"djcy;":1106,"dopf;":120149,"dscr;":119993,"dscy;":1109,"dsol;":10742,"dtri;":9663,"dzcy;":1119,"eDot;":8785,"ecir;":8790,ecirc:234,"edot;":279,"emsp;":8195,"ensp;":8194,"eopf;":120150,"epar;":8917,"epsi;":949,"escr;":8495,"esim;":8770,"euml;":235,"euro;":8364,"excl;":33,"flat;":9837,"fnof;":402,"fopf;":120151,"fork;":8916,"fscr;":119995,"gdot;":289,"geqq;":8807,"gesl;":8923,"gjcy;":1107,"gnap;":10890,"gneq;":10888,"gopf;":120152,"gscr;":8458,"gsim;":8819,"gtcc;":10919,"gvnE;":8809,"hArr;":8660,"half;":189,"harr;":8596,"hbar;":8463,"hopf;":120153,"hscr;":119997,icirc:238,"iecy;":1077,iexcl:161,"imof;":8887,"iocy;":1105,"iopf;":120154,"iota;":953,"iscr;":119998,"isin;":8712,"iuml;":239,"jopf;":120155,"jscr;":119999,"khcy;":1093,"kjcy;":1116,"kopf;":120156,"kscr;":120000,"lArr;":8656,"lHar;":10594,"lang;":10216,laquo:171,"larr;":8592,"late;":10925,"lcub;":123,"ldca;":10550,"ldsh;":8626,"leqq;":8806,"lesg;":8922,"ljcy;":1113,"lnap;":10889,"lneq;":10887,"lopf;":120157,"lozf;":10731,"lpar;":40,"lscr;":120001,"lsim;":8818,"lsqb;":91,"ltcc;":10918,"ltri;":9667,"lvnE;":8808,"macr;":175,"male;":9794,"malt;":10016,micro:181,"mlcp;":10971,"mldr;":8230,"mopf;":120158,"mscr;":120002,"nGtv;":8811,"nLtv;":8810,"nang;":8736,"napE;":10864,"nbsp;":160,"ncap;":10819,"ncup;":10818,"ngeq;":8817,"nges;":10878,"ngtr;":8815,"nisd;":8954,"njcy;":1114,"nldr;":8229,"nleq;":8816,"nles;":10877,"nmid;":8740,"nopf;":120159,"npar;":8742,"npre;":10927,"nsce;":10928,"nscr;":120003,"nsim;":8769,"nsub;":8836,"nsup;":8837,"ntgl;":8825,"ntlg;":8824,"nvap;":8781,"nvge;":8805,"nvgt;":62,"nvle;":8804,"nvlt;":60,"oast;":8859,"ocir;":8858,ocirc:244,"odiv;":10808,"odot;":8857,"ogon;":731,"oint;":8750,"omid;":10678,"oopf;":120160,"opar;":10679,"ordf;":170,"ordm;":186,"oror;":10838,"oscr;":8500,"osol;":8856,"ouml;":246,"para;":182,"part;":8706,"perp;":8869,"phiv;":981,"plus;":43,"popf;":120161,pound:163,"prap;":10935,"prec;":8826,"prnE;":10933,"prod;":8719,"prop;":8733,"pscr;":120005,"qint;":10764,"qopf;":120162,"qscr;":120006,"quot;":34,"rArr;":8658,"rHar;":10596,"race;":8765,"rang;":10217,raquo:187,"rarr;":8594,"rcub;":125,"rdca;":10551,"rdsh;":8627,"real;":8476,"rect;":9645,"rhov;":1009,"ring;":730,"ropf;":120163,"rpar;":41,"rscr;":120007,"rsqb;":93,"rtri;":9657,"scap;":10936,"scnE;":10934,"sdot;":8901,"sect;":167,"semi;":59,"sext;":10038,"shcy;":1096,"sime;":8771,"simg;":10910,"siml;":10909,"smid;":8739,"smte;":10924,"solb;":10692,"sopf;":120164,"spar;":8741,"squf;":9642,"sscr;":120008,"star;":9734,"subE;":10949,"sube;":8838,"succ;":8827,"sung;":9834,"sup1;":185,"sup2;":178,"sup3;":179,"supE;":10950,"supe;":8839,szlig:223,"tbrk;":9140,"tdot;":8411,thorn:254,times:215,"tint;":8749,"toea;":10536,"topf;":120165,"tosa;":10537,"trie;":8796,"tscr;":120009,"tscy;":1094,"uArr;":8657,"uHar;":10595,"uarr;":8593,ucirc:251,"uopf;":120166,"upsi;":965,"uscr;":120010,"utri;":9653,"uuml;":252,"vArr;":8661,"vBar;":10984,"varr;":8597,"vert;":124,"vopf;":120167,"vscr;":120011,"wopf;":120168,"wscr;":120012,"xcap;":8898,"xcup;":8899,"xmap;":10236,"xnis;":8955,"xopf;":120169,"xscr;":120013,"xvee;":8897,"yacy;":1103,"yicy;":1111,"yopf;":120170,"yscr;":120014,"yucy;":1102,"yuml;":255,"zdot;":380,"zeta;":950,"zhcy;":1078,"zopf;":120171,"zscr;":120015,"zwnj;":8204,"AMP;":38,"Acy;":1040,"Afr;":120068,"And;":10835,Auml:196,"Bcy;":1041,"Bfr;":120069,COPY:169,"Cap;":8914,"Cfr;":8493,"Chi;":935,"Cup;":8915,"Dcy;":1044,"Del;":8711,"Dfr;":120071,"Dot;":168,"ENG;":330,"ETH;":208,"Ecy;":1069,"Efr;":120072,"Eta;":919,Euml:203,"Fcy;":1060,"Ffr;":120073,"Gcy;":1043,"Gfr;":120074,"Hat;":94,"Hfr;":8460,"Icy;":1048,"Ifr;":8465,"Int;":8748,Iuml:207,"Jcy;":1049,"Jfr;":120077,"Kcy;":1050,"Kfr;":120078,"Lcy;":1051,"Lfr;":120079,"Lsh;":8624,"Map;":10501,"Mcy;":1052,"Mfr;":120080,"Ncy;":1053,"Nfr;":120081,"Not;":10988,"Ocy;":1054,"Ofr;":120082,Ouml:214,"Pcy;":1055,"Pfr;":120083,"Phi;":934,"Psi;":936,QUOT:34,"Qfr;":120084,"REG;":174,"Rcy;":1056,"Rfr;":8476,"Rho;":929,"Rsh;":8625,"Scy;":1057,"Sfr;":120086,"Sub;":8912,"Sum;":8721,"Sup;":8913,"Tab;":9,"Tau;":932,"Tcy;":1058,"Tfr;":120087,"Ucy;":1059,"Ufr;":120088,Uuml:220,"Vcy;":1042,"Vee;":8897,"Vfr;":120089,"Wfr;":120090,"Xfr;":120091,"Ycy;":1067,"Yfr;":120092,"Zcy;":1047,"Zfr;":8488,"acE;":8766,"acd;":8767,"acy;":1072,"afr;":120094,"amp;":38,"and;":8743,"ang;":8736,"apE;":10864,"ape;":8778,"ast;":42,auml:228,"bcy;":1073,"bfr;":120095,"bne;":61,"bot;":8869,"cap;":8745,cent:162,"cfr;":120096,"chi;":967,"cir;":9675,copy:169,"cup;":8746,"dcy;":1076,"deg;":176,"dfr;":120097,"die;":168,"div;":247,"dot;":729,"ecy;":1101,"efr;":120098,"egs;":10902,"ell;":8467,"els;":10901,"eng;":331,"eta;":951,"eth;":240,euml:235,"fcy;":1092,"ffr;":120099,"gEl;":10892,"gap;":10886,"gcy;":1075,"gel;":8923,"geq;":8805,"ges;":10878,"gfr;":120100,"ggg;":8921,"glE;":10898,"gla;":10917,"glj;":10916,"gnE;":8809,"gne;":10888,"hfr;":120101,"icy;":1080,"iff;":8660,"ifr;":120102,"int;":8747,iuml:239,"jcy;":1081,"jfr;":120103,"kcy;":1082,"kfr;":120104,"lEg;":10891,"lap;":10885,"lat;":10923,"lcy;":1083,"leg;":8922,"leq;":8804,"les;":10877,"lfr;":120105,"lgE;":10897,"lnE;":8808,"lne;":10887,"loz;":9674,"lrm;":8206,"lsh;":8624,macr:175,"map;":8614,"mcy;":1084,"mfr;":120106,"mho;":8487,"mid;":8739,"nGg;":8921,"nGt;":8811,"nLl;":8920,"nLt;":8810,"nap;":8777,nbsp:160,"ncy;":1085,"nfr;":120107,"ngE;":8807,"nge;":8817,"ngt;":8815,"nis;":8956,"niv;":8715,"nlE;":8806,"nle;":8816,"nlt;":8814,"not;":172,"npr;":8832,"nsc;":8833,"num;":35,"ocy;":1086,"ofr;":120108,"ogt;":10689,"ohm;":937,"olt;":10688,"ord;":10845,ordf:170,ordm:186,"orv;":10843,ouml:246,"par;":8741,para:182,"pcy;":1087,"pfr;":120109,"phi;":966,"piv;":982,"prE;":10931,"pre;":10927,"psi;":968,"qfr;":120110,quot:34,"rcy;":1088,"reg;":174,"rfr;":120111,"rho;":961,"rlm;":8207,"rsh;":8625,"scE;":10932,"sce;":10928,"scy;":1089,sect:167,"sfr;":120112,"shy;":173,"sim;":8764,"smt;":10922,"sol;":47,"squ;":9633,"sub;":8834,"sum;":8721,sup1:185,sup2:178,sup3:179,"sup;":8835,"tau;":964,"tcy;":1090,"tfr;":120113,"top;":8868,"ucy;":1091,"ufr;":120114,"uml;":168,uuml:252,"vcy;":1074,"vee;":8744,"vfr;":120115,"wfr;":120116,"xfr;":120117,"ycy;":1099,"yen;":165,"yfr;":120118,yuml:255,"zcy;":1079,"zfr;":120119,"zwj;":8205,AMP:38,"DD;":8517,ETH:208,"GT;":62,"Gg;":8921,"Gt;":8811,"Im;":8465,"LT;":60,"Ll;":8920,"Lt;":8810,"Mu;":924,"Nu;":925,"Or;":10836,"Pi;":928,"Pr;":10939,REG:174,"Re;":8476,"Sc;":10940,"Xi;":926,"ac;":8766,"af;":8289,amp:38,"ap;":8776,"dd;":8518,deg:176,"ee;":8519,"eg;":10906,"el;":10905,eth:240,"gE;":8807,"ge;":8805,"gg;":8811,"gl;":8823,"gt;":62,"ic;":8291,"ii;":8520,"in;":8712,"it;":8290,"lE;":8806,"le;":8804,"lg;":8822,"ll;":8810,"lt;":60,"mp;":8723,"mu;":956,"ne;":8800,"ni;":8715,not:172,"nu;":957,"oS;":9416,"or;":8744,"pi;":960,"pm;":177,"pr;":8826,reg:174,"rx;":8478,"sc;":8827,shy:173,uml:168,"wp;":8472,"wr;":8768,"xi;":958,yen:165,GT:62,LT:60,gt:62,lt:60};var eQ=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376];function qZ(q,Q){if(Q&&!q.endsWith(";"))return`${q}\\b(?!=)`;return q}function p5(q){let Z=Object.keys(O6).map((H)=>qZ(H,q));return new RegExp(`&(#(?:x[a-fA-F\\d]+|\\d+)(?:;)?|${Z.join("|")})`,"g")}var QZ=p5(!1),ZZ=p5(!0);function u1(q,Q){let Z=Q?ZZ:QZ;return q.replace(Z,(Y,H)=>{let V;if(H[0]!=="#")V=O6[H];else if(H[1]==="x")V=parseInt(H.substring(2),16);else V=parseInt(H.substring(1),10);if(!V)return Y;return String.fromCodePoint(YZ(V))})}var i5=0;function YZ(q){if(q===10)return 32;if(q<128)return q;if(q<=159)return eQ[q-128];if(q<55296)return q;if(q<=57343)return i5;if(q<=65535)return q;if(q>=65536&&q<=131071)return q;if(q>=131072&&q<=196607)return q;if(q>=917504&&q<=917631||q>=917760&&q<=917999)return q;return i5}function G8(q=!1){return{type:"Fragment",nodes:[],metadata:{transparent:q,dynamic:!1}}}var HZ=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function o5(q){return HZ.includes(q.type)}function h0(q,Q,Z,Y,H){return{type:"Attribute",start:Z,end:Y,name:q,name_loc:Q,value:H,metadata:{delegated:!1,needs_clsx:!1}}}class K8{has_state=!1;has_call=!1;has_await=!1;has_member_expression=!1;has_assignment=!1;dependencies=new Set;references=new Set;#q=null;#Q(){if(!this.#q){this.#q=new Set;for(let q of this.references)if(q.blocker)this.#q.add(q.blocker)}return this.#q}blockers(){return K6([...this.#Q()])}has_blockers(){return this.#Q().size>0}has_more_blockers_than(q){for(let Q of this.#Q())if(!q.#Q().has(Q))return!0;return!1}is_async(){return this.has_await||this.#Q().size>0}merge(q){this.has_state||=q.has_state,this.has_call||=q.has_call,this.has_await||=q.has_await,this.has_member_expression||=q.has_member_expression,this.has_assignment||=q.has_assignment,this.#q=null;for(let Q of q.references)this.references.add(Q);for(let Q of q.dependencies)this.dependencies.add(Q)}}var n5={li:{direct:["li"]},dt:{descendant:["dt","dd"],reset_by:["dl"]},dd:{descendant:["dt","dd"],reset_by:["dl"]},p:{descendant:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"]},rt:{descendant:["rt","rp"]},rp:{descendant:["rt","rp"]},optgroup:{descendant:["optgroup"]},option:{descendant:["option","optgroup"]},thead:{direct:["tbody","tfoot"]},tbody:{direct:["tbody","tfoot"]},tfoot:{direct:["tbody"]},tr:{direct:["tr","tbody"]},td:{direct:["td","th","tr"]},th:{direct:["td","th","tr"]}};function s5(q,Q){let Z=n5[q];if(Z){if(!Q||("direct"in Z?Z.direct:Z.descendant).includes(Q))return!0}return!1}var IV={...n5,form:{descendant:["form"]},a:{descendant:["a"]},button:{descendant:["button"]},h1:{descendant:["h1","h2","h3","h4","h5","h6"]},h2:{descendant:["h1","h2","h3","h4","h5","h6"]},h3:{descendant:["h1","h2","h3","h4","h5","h6"]},h4:{descendant:["h1","h2","h3","h4","h5","h6"]},h5:{descendant:["h1","h2","h3","h4","h5","h6"]},h6:{descendant:["h1","h2","h3","h4","h5","h6"]},tr:{only:["th","td","style","script","template"]},tbody:{only:["tr","style","script","template"]},thead:{only:["tr","style","script","template"]},tfoot:{only:["tr","style","script","template"]},colgroup:{only:["col","template"]},table:{only:["caption","colgroup","tbody","thead","tfoot","style","script","template"]},head:{only:["base","basefont","bgsound","link","meta","title","noscript","noframes","style","script","template"]},html:{only:["head","body","frameset"]},frameset:{only:["frame"]},"#document":{only:["html"]}};function a5(q,Q="or"){if(q.length===1)return q[0];if(q.length===2)return`${q[0]} ${Q} ${q[1]}`;return`${q.slice(0,-1).join(", ")} ${Q} ${q[q.length-1]}`}var JZ=/(\/>|[\s"'=<>`])/y,U6=/<\/textarea(\s[^>]*)?>/iy,KZ=/-->/,r5=/(\s|\/|>)/,e5=/[\s=/>"']/,q4=/["']/y,VZ=/(?:"([^"]*)"|'([^'])*'|([^>\s]+))/y,XZ=/^![a-zA-Z]+$/,WZ=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/;function GZ(q){if(XZ.test(q))return!0;if(WZ.test(q))return!0;return f7.test(q)}var t5=/^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u,Q4=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),f0=new Map([...Q4,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function R6(q){let Q=q.index++,Z=q.current();if(q.eat("!--")){let B=q.read_until(KZ);q.eat("-->",!0),q.append({type:"Comment",start:Q,end:q.index,data:B});return}if(q.eat("/")){let B=q.read_until(r5);if(q.allow_whitespace(),q.eat(">",!0),C9(B))h5(Q);while(Z.name!==B){if(q.loose){if(o5(Z)){let S=Z.attributes.at(-1);if(S?.type==="Attribute"&&S.name===`<${B}`){q.index=S.start,Z.attributes.pop();break}}}if(Z.type==="RegularElement"){if(!q.last_auto_closed_tag||q.last_auto_closed_tag.tag!==B){let S=Z.fragment.nodes[0]?.start??Q;D9({start:Z.start,end:S},`</${B}>`,`</${Z.name}>`)}}else if(!q.loose)if(q.last_auto_closed_tag&&q.last_auto_closed_tag.tag===B)W5(Q,B,q.last_auto_closed_tag.reason);else X5(Q,B);Z.end=Q,q.pop(),Z=q.current()}if(Z.end=q.index,q.pop(),q.last_auto_closed_tag&&q.stack.length<q.last_auto_closed_tag.depth)q.last_auto_closed_tag=void 0;return}let Y=B6(q,r5);if(Y.name.startsWith("svelte:")&&!f0.has(Y.name)){let B={start:Q+1,end:Q+1+Y.name.length};I5(B,a5(Array.from(f0.keys())))}if(!GZ(Y.name)&&!t5.test(Y.name)){if(!q.loose||!Y.name.endsWith(".")){let B={start:Q+1,end:Q+1+Y.name.length};b5(B)}}if(Q4.has(Y.name)){if(Y.name in q.meta_tags)A5(Q,Y.name);if(Z.type!=="Root")w5(Q,Y.name);q.meta_tags[Y.name]=!0}let H=f0.has(Y.name)?f0.get(Y.name):t5.test(Y.name)||q.loose&&Y.name.endsWith(".")?"Component":Y.name==="title"&&zZ(q.stack)?"TitleElement":Y.name==="slot"&&!jZ(q.stack)?"SlotElement":"RegularElement",V=H==="RegularElement"?{type:H,start:Q,end:-1,name:Y.name,name_loc:Y.loc,attributes:[],fragment:G8(!0),metadata:{svg:!1,mathml:!1,scoped:!1,has_spread:!1,path:[],synthetic_value_node:null}}:{type:H,start:Q,end:-1,name:Y.name,name_loc:Y.loc,attributes:[],fragment:G8(!0),metadata:{}};if(q.allow_whitespace(),Z.type==="RegularElement"&&s5(Z.name,Y.name)){let B=Z.fragment.nodes[0]?.start??Q;D9({start:Z.start,end:B},`<${Y.name}>`,`</${Z.name}>`),Z.end=Q,q.pop(),q.last_auto_closed_tag={tag:Z.name,reason:Y.name,depth:q.stack.length}}let K=[],G=q.current(),W=(Y.name==="script"||Y.name==="style")&&G.type==="Root",R=W?OZ:UZ,j;while(j=R(q)){if(j.type==="Attribute"||j.type==="BindDirective"||j.type==="StyleDirective"||j.type==="ClassDirective"){let B=j.type==="BindDirective"?"Attribute":j.type;if(K.includes(B+j.name))t2(j);else if(j.name!=="this")K.push(B+j.name)}V.attributes.push(j),q.allow_whitespace()}if(V.type==="Component")V.metadata.expression=new K8;if(V.type==="SvelteComponent"){let B=V.attributes.findIndex((I)=>I.type==="Attribute"&&I.name==="this");if(B===-1)L5(Q);let S=V.attributes.splice(B,1)[0];if(!X6(S))$5(S.start);V.expression=W6(S),V.metadata.expression=new K8}if(V.type==="SvelteElement"){let B=V.attributes.findIndex((I)=>I.type==="Attribute"&&I.name==="this");if(B===-1)t9(Q);let S=V.attributes.splice(B,1)[0];if(S.value===!0)t9(S);if(!X6(S)){i7(S);let I=S.value[0];V.tag=I.type==="Text"?{type:"Literal",value:I.data,raw:`'${I.raw}'`,start:I.start,end:I.end}:I.expression}else V.tag=W6(S);V.metadata.expression=new K8}if(W){q.eat(">",!0);let B=null;for(let S=G.fragment.nodes.length-1;S>=0;S--){let I=G.fragment.nodes[S];if(S===G.fragment.nodes.length-1&&I.end!==Q)break;if(I.type==="Comment"){B=I;break}else if(I.type!=="Text"||I.data.trim())break}if(Y.name==="script"){let S=_5(q,Q,V.attributes);if(B)S.content.leadingComments=[{type:"Line",value:B.data}];if(S.context==="module"){if(G.module)a9(Q);G.module=S}else{if(G.instance)a9(Q);G.instance=S}}else{let S=z6(q,Q,V.attributes);if(S.content.comment=B,G.css)M5(Q);G.css=S}return}q.append(V);let $=q.eat("/")||C9(Y.name),M=q.eat(">",!0,!1);if(!M){let B=V.attributes.at(-1);if(B?.type==="Attribute"&&B.name==="<")q.index=B.start,V.attributes.pop();else{let S=q.template[q.index-1],I=q.template[q.index-2],k=q.template[q.index];if(I==="{"&&S==="/")q.index-=2;else if(S==="{"&&(k==="#"||k==="@"||k===":"))q.index-=1;else q.allow_whitespace()}}if($||!M)V.end=q.index;else if(Y.name==="textarea")V.fragment.nodes=Z4(q,()=>{return U6.lastIndex=q.index,U6.test(q.template)},"inside <textarea>"),q.read(U6),V.end=q.index;else if(Y.name==="script"||Y.name==="style"){let B=q.index,S=`</${Y.name}>`,I=q.template.indexOf(S,q.index),k=q.template.slice(q.index,I===-1?q.template.length:I);q.index=I===-1?q.template.length:I;let E=q.index,x={start:B,end:E,type:"Text",data:k,raw:k};V.fragment.nodes.push(x),q.eat(`</${Y.name}>`,!0),V.end=q.index}else q.stack.push(V),q.fragments.push(V.fragment)}function zZ(q){let Q=q.length;while(Q--){let{type:Z}=q[Q];if(Z==="SvelteHead")return!0;if(Z==="RegularElement"||Z==="Component")return!1}return!1}function jZ(q){let Q=q.length;while(Q--)if(q[Q].type==="RegularElement"&&q[Q].attributes.some((Z)=>Z.type==="Attribute"&&Z.name==="shadowrootmode"))return!0;return!1}function OZ(q){let Q=q.index,Z=B6(q,e5);if(!Z.name)return null;let Y=!0;if(q.eat("=")){q.allow_whitespace();let H=q.match_regex(VZ);if(!H)n9(q.index);q.index+=H.length;let V=H[0]==='"'||H[0]==="'";if(V)H=H.slice(1,-1);Y=[{start:q.index-H.length-(V?1:0),end:V?q.index-1:q.index,type:"Text",raw:H,data:u1(H,!0)}]}if(q.match_regex(q4))k8(q.index,"=");return h0(Z.name,Z.loc,Q,q.index,Y)}function UZ(q){let Q=null;while(Q=RZ(q))q.root.comments.push(Q),q.allow_whitespace();let Z=q.index;if(q.eat("{")){if(q.allow_whitespace(),q.eat("@attach")){q.require_whitespace();let W=O8(q);return q.allow_whitespace(),q.eat("}",!0),{type:"AttachTag",start:Z,end:q.index,expression:W,metadata:{expression:new K8}}}if(q.eat("...")){let W=O8(q);return q.allow_whitespace(),q.eat("}",!0),{type:"SpreadAttribute",start:Z,end:q.index,expression:W,metadata:{expression:new K8}}}else{let W=q.read_identifier();if(W.name==="")if(q.loose&&(q.match("#")||q.match("/")||q.match("@")||q.match(":")))return null;else if(q.loose&&q.match("}"));else e2(Z);q.allow_whitespace(),q.eat("}",!0);let R={type:"ExpressionTag",start:W.start,end:W.end,expression:W,metadata:{expression:new K8}};return h0(W.name,W.loc,Z,q.index,R)}}let Y=B6(q,e5);if(!Y.name)return null;let H=q.index;q.allow_whitespace();let V=Y.name.indexOf(":"),K=V!==-1&&BZ(Y.name.slice(0,V)),G=!0;if(q.eat("="))if(q.allow_whitespace(),q.template[q.index]==="/"&&q.template[q.index+1]===">"){let W=q.index;q.index++,G=[{start:W,end:W+1,type:"Text",raw:"/",data:"/"}],H=q.index}else G=FZ(q),H=q.index;else if(q.match_regex(q4))k8(q.index,"=");if(K){let[W,...R]=Y.name.slice(V+1).split("|");if(W==="")V5({start:Z,end:Z+V+1},Y.name);if(K==="StyleDirective")return{start:Z,end:H,type:K,name:W,name_loc:Y.loc,modifiers:R,value:G,metadata:{expression:new K8}};let j=G===!0?void 0:Array.isArray(G)?G[0]:G,$=null;if(j)if(G.length>1||j.type==="Text")K5(j.start);else $=j.expression;let M={start:Z,end:H,type:K,name:W,name_loc:Y.loc,expression:$,metadata:{expression:new K8}};if(M.modifiers=R,M.type==="TransitionDirective"){let B=Y.name.slice(0,V);M.intro=B==="in"||B==="transition",M.outro=B==="out"||B==="transition"}if((M.type==="BindDirective"||M.type==="ClassDirective")&&!M.expression)M.expression={start:Z+V+1,end:H,type:"Identifier",name:M.name};return M}return h0(Y.name,Y.loc,Z,H,G)}function RZ(q){let Q=q.index;if(q.eat("//")){let Z=q.read_until(/\n/),Y=q.index;return{type:"Line",start:Q,end:Y,value:Z,loc:{start:j8(Q),end:j8(Y)}}}if(q.eat("/*")){let Z=q.read_until(/\*\//);q.eat("*/");let Y=q.index;return{type:"Block",start:Q,end:Y,value:Z,loc:{start:j8(Q),end:j8(Y)}}}return null}function BZ(q){if(q==="use")return"UseDirective";if(q==="animate")return"AnimateDirective";if(q==="bind")return"BindDirective";if(q==="class")return"ClassDirective";if(q==="style")return"StyleDirective";if(q==="on")return"OnDirective";if(q==="let")return"LetDirective";if(q==="in"||q==="out"||q==="transition")return"TransitionDirective";return!1}function FZ(q){let Q=q.eat("'")?"'":q.eat('"')?'"':null;if(Q&&q.eat(Q))return[{start:q.index-1,end:q.index-1,type:"Text",raw:"",data:""}];let Z;try{Z=Z4(q,()=>{if(Q)return q.match(Q);return!!q.match_regex(JZ)},"in attribute value")}catch(Y){if(Y.code==="js_parse_error"){let H=Y.position?.[0];if(H!==void 0&&q.template.slice(H-1,H+1)==="/>")q.index=H,k8(H,Q||"}")}throw Y}if(Z.length===0&&!Q)n9(q.index);if(Q)q.index+=1;if(Q||Z.length>1||Z[0].type==="Text")return Z;else return Z[0]}function Z4(q,Q,Z){let Y={start:q.index,end:-1,type:"Text",raw:"",data:""},H=[];function V(K){if(K>Y.start)Y.raw=q.template.slice(Y.start,K),Y.data=u1(Y.raw,!0),Y.end=K,H.push(Y)}while(q.index<q.template.length){let K=q.index;if(Q())return V(q.index),H;else if(q.eat("{")){if(q.match("#")){let R=q.index-1;q.eat("#");let j=q.read_until(/[^a-z]/);Z5(R,j,Z)}else if(q.match("@")){let R=q.index-1;q.eat("@");let j=q.read_until(/[^a-z]/);k5(R,j,Z)}V(q.index-1),q.allow_whitespace();let G=O8(q);q.allow_whitespace(),q.eat("}",!0);let W={type:"ExpressionTag",start:K,end:q.index,expression:G,metadata:{expression:new K8}};H.push(W),Y={start:q.index,end:-1,type:"Text",raw:"",data:""}}else q.index++}if(q.loose)return H;else M8(q.template.length)}function B6(q,Q){let Z=q.index,Y=q.read_until(Q),H=q.index;return{type:"Identifier",name:Y,start:Z,end:H,loc:{start:j8(Z),end:j8(H)}}}function y8(q){let{index:Q,index:Z}=q,Y=q.read_identifier();if(Y.name!==""){let R=Y4(q);return{...Y,typeAnnotation:R}}let H=q.template[Z];if(H!=="{"&&H!=="[")z5(Z);Z=_1(q,Q),q.index=Z;let V=q.template.slice(Q,Z),K=q.template.slice(0,Q).replace(K0," "),G=K.indexOf(" ");K=K.slice(0,G)+K.slice(G+1);let W=F1(q1(q,`${K}(${V} = 1)`,Q-1));if(W=W.left,W.typeAnnotation=Y4(q),W.typeAnnotation)W.end=W.typeAnnotation.end;return W}function Y4(q){let Q=q.index;if(q.allow_whitespace(),!q.eat(":")){q.index=Q;return}let Z="_ as ",Y=q.index-Z.length,H=q.template.slice(0,Y).replace(/[^\n]/g," ")+Z+q.template.slice(q.index).replace(/\?\s*:/g,":"),V=F1(q1(q,H,Y));if(V.type==="AssignmentExpression"){let K=V.right.start;while(H[K]!=="=")K-=1;V=F1(q1(q,H.slice(0,K),Y))}if(V.type==="SequenceExpression")V=V.expressions[0];return q.index=V.end,{type:"TSTypeAnnotation",start:Q,end:q.index,typeAnnotation:V.typeAnnotation}}var F6=/\s*}/y,MZ=/(?:let|const)\b/y,$Z=/(?:var|interface|enum)\b/y,LZ=/type\b/y,AZ={"<":">"};function $6(q){let Q=q.index;if(q.index+=1,q.allow_whitespace(),q.eat("#"))return wZ(q);if(q.eat(":"))return IZ(q);if(q.eat("@"))return PZ(q);if(q.match("/")){if(!q.match("/*")&&!q.match("//"))return q.eat("/"),M6(q)}let Z=CZ(q);if(Z){q.append({type:"DeclarationTag",start:Q,end:q.index,declaration:Z,metadata:{expression:new K8}});return}let Y=O8(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ExpressionTag",start:Q,end:q.index,expression:Y,metadata:{expression:new K8}})}function CZ(q){let Q=q.index,Z=q.match_regex($Z);if(Z)D0({start:Q,end:Q+Z.length});if(!q.match_regex(MZ)&&!q.match_regex(LZ))return null;let Y=q.root.comments.length,H;try{H=y5(q,q.template,Q)}catch(V){if(!q.loose)throw V;let K=v0(q.template,Q,"{");if(K===void 0)throw V;q.index=K,H={type:"VariableDeclaration",kind:q.template.startsWith("const",Q)?"const":"let",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"",start:q.index,end:q.index},init:null,start:q.index,end:q.index}],start:Q,end:K}}if(H.type!=="VariableDeclaration")if(H.type==="ExpressionStatement")return q.root.comments.length=Y,null;else D0({start:H.start??Q,end:H.end??q.index});if(H.kind!=="let"&&H.kind!=="const")D0(H);return q.index=H.end,q.allow_whitespace(),q.eat("}",!0),H}function wZ(q){let Q=q.index-2;while(q.template[Q]!=="{")Q-=1;if(q.eat("if")){q.require_whitespace();let Z=q.append({type:"IfBlock",elseif:!1,start:Q,end:-1,test:O8(q),consequent:G8(),alternate:null,metadata:{expression:new K8}});q.allow_whitespace(),q.eat("}",!0),q.stack.push(Z),q.fragments.push(Z.consequent);return}if(q.eat("each")){q.require_whitespace();let Z=q.template,Y=q.template.length,H;while(!H)try{H=O8(q,void 0,!0)}catch(j){Y=j.position[0]-2;while(Y>Q&&q.template.slice(Y,Y+2)!=="as")Y-=1;if(Y<=Q){if(q.loose){if(H=J6(q),H)break}throw j}q.template=Z.slice(0,Y)}if(q.template=Z,q.allow_whitespace(),!q.match("as")){if(H.type==="SequenceExpression")H=H.expressions[0];let j=null,$=H.end;if(H=d8(H,null,{TSAsExpression(M,B){if(M.end===H.end)return j=M,$=M.expression.end,M.expression;B.next()}}),H.end=$,j){let M=j.typeAnnotation.start-2;while(q.template.slice(M,M+2)!=="as")M-=1;q.index=M}}let V=null,K,G;if(q.eat("as"))q.require_whitespace(),V=y8(q);else q.index=H.end;if(q.allow_whitespace(),q.eat(",")){if(q.allow_whitespace(),K=q.read_identifier().name,!K)s9(q.index);q.allow_whitespace()}if(q.eat("("))q.allow_whitespace(),G=O8(q,"("),q.allow_whitespace(),q.eat(")",!0),q.allow_whitespace();if(!q.eat("}",!0,!1))if(q.template.slice(q.index-4,q.index)===" as "){let j=q.index;V=y8(q),q.eat("}",!0),H={type:"Identifier",name:"",start:H.start,end:j-4}}else q.eat("}",!0);let R=q.append({type:"EachBlock",start:Q,end:-1,expression:H,body:G8(),context:V,index:K,key:G,metadata:null});q.stack.push(R),q.fragments.push(R.body);return}if(q.eat("await")){q.require_whitespace();let Z=O8(q);q.allow_whitespace();let Y=q.append({type:"AwaitBlock",start:Q,end:-1,expression:Z,value:null,error:null,pending:null,then:null,catch:null,metadata:{expression:new K8}});if(q.eat("then")){if(q.match_regex(F6))q.allow_whitespace();else q.require_whitespace(),Y.value=y8(q),q.allow_whitespace();Y.then=G8(),q.fragments.push(Y.then)}else if(q.eat("catch")){if(q.match_regex(F6))q.allow_whitespace();else q.require_whitespace(),Y.error=y8(q),q.allow_whitespace();Y.catch=G8(),q.fragments.push(Y.catch)}else Y.pending=G8(),q.fragments.push(Y.pending);if(!q.eat("}",!0,!1))if(q.template.slice(q.index-6,q.index)===" then "){let V=q.index;Y.value=y8(q),q.eat("}",!0),Y.expression={type:"Identifier",name:"",start:Z.start,end:V-6},Y.then=Y.pending,Y.pending=null}else if(q.template.slice(q.index-7,q.index)===" catch "){let V=q.index;Y.error=y8(q),q.eat("}",!0),Y.expression={type:"Identifier",name:"",start:Z.start,end:V-7},Y.catch=Y.pending,Y.pending=null}else q.eat("}",!0);q.stack.push(Y);return}if(q.eat("key")){q.require_whitespace();let Z=O8(q);q.allow_whitespace(),q.eat("}",!0);let Y=q.append({type:"KeyBlock",start:Q,end:-1,expression:Z,fragment:G8(),metadata:{expression:new K8}});q.stack.push(Y),q.fragments.push(Y.fragment);return}if(q.eat("snippet")){q.require_whitespace();let Z=q.read_identifier();if(Z.name===""&&!q.loose)s9(q.index);q.allow_whitespace();let Y=q.index,H;if(q.ts&&q.match("<")){let j=q.index,$=_1(q,j,AZ);H=q.template.slice(j+1,$-1),q.index=$}q.allow_whitespace();let V=q.eat("(",!0,!1);if(V){let j=1;while(q.index<q.template.length&&(!q.match(")")||j!==1)){if(q.match("("))j++;if(q.match(")"))j--;q.index+=1}q.eat(")",!0)}let K=q.template.slice(0,Y).replace(/\S/g," "),G=q.template.slice(Y,q.index),W=V?q1(q,K+`${G} => {}`,Y):{params:[]};q.allow_whitespace(),q.eat("}",!0);let R=q.append({type:"SnippetBlock",start:Q,end:-1,expression:Z,typeParams:H,parameters:W.params,body:G8(),metadata:{can_hoist:!1,sites:new Set}});q.stack.push(R),q.fragments.push(R.body);return}G5(q.index)}function IZ(q){let Q=q.index-1,Z=q.current();if(Z.type==="IfBlock"){if(!q.eat("else"))k8(Q,"{:else} or {:else if}");if(q.eat("if"))Q5(Q);if(q.allow_whitespace(),q.fragments.pop(),Z.alternate=G8(),q.fragments.push(Z.alternate),q.eat("if")){q.require_whitespace();let Y=O8(q);q.allow_whitespace(),q.eat("}",!0);let H=Q-1;while(q.template[H]!=="{")H-=1;let V=q.append({start:H,end:-1,type:"IfBlock",elseif:!0,test:Y,consequent:G8(),alternate:null,metadata:{expression:new K8}});q.stack.push(V),q.fragments.pop(),q.fragments.push(V.consequent)}else q.allow_whitespace(),q.eat("}",!0);return}if(Z.type==="EachBlock"){if(!q.eat("else"))k8(Q,"{:else}");q.allow_whitespace(),q.eat("}",!0),Z.fallback=G8(),q.fragments.pop(),q.fragments.push(Z.fallback);return}if(Z.type==="AwaitBlock"){if(q.eat("then")){if(Z.then)p9(Q,"{:then}");if(!q.eat("}"))q.require_whitespace(),Z.value=y8(q),q.allow_whitespace(),q.eat("}",!0);Z.then=G8(),q.fragments.pop(),q.fragments.push(Z.then);return}if(q.eat("catch")){if(Z.catch)p9(Q,"{:catch}");if(!q.eat("}"))q.require_whitespace(),Z.error=y8(q),q.allow_whitespace(),q.eat("}",!0);Z.catch=G8(),q.fragments.pop(),q.fragments.push(Z.catch);return}k8(Q,"{:then ...} or {:catch ...}")}q5(Q)}function M6(q){let Q=q.index-1,Z=q.current(),Y;switch(Z.type){case"IfBlock":if(Y=q.eat("if",!0,!1),!Y){Z.end=Q-1,q.pop(),M6(q);return}q.allow_whitespace(),q.eat("}",!0);while(Z.elseif)Z.end=q.index,q.stack.pop(),Z=q.current();Z.end=q.index,q.pop();return;case"EachBlock":Y=q.eat("each",!0,!1);break;case"KeyBlock":Y=q.eat("key",!0,!1);break;case"AwaitBlock":Y=q.eat("await",!0,!1);break;case"SnippetBlock":Y=q.eat("snippet",!0,!1);break;case"RegularElement":if(q.loose)Y=!1;else o9(Q);break;default:o9(Q)}if(!Y){Z.end=Q-1,q.pop(),M6(q);return}q.allow_whitespace(),q.eat("}",!0),Z.end=q.index,q.pop()}function PZ(q){let Q=q.index;while(q.template[Q]!=="{")Q-=1;if(q.eat("html")){q.require_whitespace();let Z=O8(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"HtmlTag",start:Q,end:q.index,expression:Z,metadata:{expression:new K8}});return}if(q.eat("debug")){let Z;if(q.read(F6))Z=[];else{let Y=O8(q);Z=Y.type==="SequenceExpression"?Y.expressions:[Y],Z.forEach((H)=>{if(H.type!=="Identifier")J5(H.start)}),q.allow_whitespace(),q.eat("}",!0)}q.append({type:"DebugTag",start:Q,end:q.index,identifiers:Z});return}if(q.eat("const")){q.require_whitespace();let Z=y8(q);q.allow_whitespace(),q.eat("=",!0),q.allow_whitespace();let Y=q.index,H=O8(q);if(H.type==="SequenceExpression"&&!q.template.substring(Y,H.start).includes("("))H5(H);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ConstTag",start:Q,end:q.index,declaration:{type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:Z,init:H,start:Z.start,end:H.end}],start:Q+2,end:q.index-1},metadata:{expression:new K8}});return}if(q.eat("render")){q.require_whitespace();let Z=O8(q);if(Z.type!=="CallExpression"&&(Z.type!=="ChainExpression"||Z.expression.type!=="CallExpression"))R5(Z);q.allow_whitespace(),q.eat("}",!0),q.append({type:"RenderTag",start:Q,end:q.index,expression:Z,metadata:{expression:new K8,dynamic:!1,arguments:[],path:[],snippets:new Set}});return}j5(q.index)}function L6(q){let Q=q.index;while(q.index<q.template.length&&!q.match("<")&&!q.match("{"))q.index++;let Z=q.template.slice(Q,q.index);q.append({type:"Text",start:Q,end:q.index,raw:Z,data:u1(Z,!1)})}function m1(q){if(q.match("<"))return R6;if(q.match("{"))return $6;return L6}function A6(q){let Q={start:q.start,end:q.end,attributes:q.attributes};if(!q)return Q;for(let Z of q.attributes){if(Z.type!=="Attribute")S5(Z);let{name:Y}=Z;switch(Y){case"runes":{Q.runes=y0(Z);break}case"tag":{P5(Z);break}case"customElement":{let H={},{value:V}=Z,K=V===!0||Array.isArray(V)?V:[V];if(K===!0)b0(Z);else if(K[0].type==="Text"){let M=g0(Z);J4(Z,M),H.tag=M,Q.customElement=H;break}else if(K[0].expression.type!=="ObjectExpression"){if(K[0].expression.type==="Literal"&&K[0].expression.value===null)break;b0(Z)}let G=[];for(let M of K[0].expression.properties){if(M.type!=="Property"||M.computed||M.key.type!=="Identifier")b0(Z);G.push([M.key.name,M.value])}let W=G.find(([M])=>M==="tag");if(W){let M=W[1]?.value;J4(W,M),H.tag=M}let R=G.find(([M])=>M==="props")?.[1];if(R){if(R.type!=="ObjectExpression")e8(Z);H.props={};for(let M of R.properties){if(M.type!=="Property"||M.computed||M.key.type!=="Identifier"||M.value.type!=="ObjectExpression")e8(Z);H.props[M.key.name]={};for(let B of M.value.properties){if(B.type!=="Property"||B.computed||B.key.type!=="Identifier"||B.value.type!=="Literal")e8(Z);if(B.key.name==="type"){if(["String","Number","Boolean","Array","Object"].indexOf(B.value.value)===-1)e8(Z);H.props[M.key.name].type=B.value.value}else if(B.key.name==="reflect"){if(typeof B.value.value!=="boolean")e8(Z);H.props[M.key.name].reflect=B.value.value}else if(B.key.name==="attribute"){if(typeof B.value.value!=="string")e8(Z);H.props[M.key.name].attribute=B.value.value}else e8(Z)}}}let j=G.find(([M])=>M==="shadow")?.[1];if(j)if(j.type==="Literal"&&(j.value==="open"||j.value==="none"))H.shadow=j.value;else if(j.type==="ObjectExpression")H.shadow=j;else D5(Z);let $=G.find(([M])=>M==="extend")?.[1];if($)H.extend=$;Q.customElement=H;break}case"namespace":{let H=g0(Z);if(H===D7)Q.namespace="svg";else if(H===N7)Q.namespace="mathml";else if(H==="html"||H==="mathml"||H==="svg")Q.namespace=H;else T0(Z,'"html", "mathml" or "svg"');break}case"css":{let H=g0(Z);if(H==="injected")Q.css=H;else T0(Z,'"injected"');break}case"immutable":{Q.immutable=y0(Z);break}case"preserveWhitespace":{Q.preserveWhitespace=y0(Z);break}case"accessors":{Q.accessors=y0(Z);break}default:T5(Z,Y)}}return Q}function g0(q){let{value:Q}=q;if(Q===!0)return!0;let Z=Array.isArray(Q)?Q[0]:Q;if(!Z)return!0;if(Q.length>1)return null;if(Z.type==="Text")return Z.data;if(Z.expression.type!=="Literal")return null;return Z.expression.value}function y0(q){let Q=g0(q);if(typeof Q!=="boolean")T0(q,"true or false");return Q}var H4="[a-z0-9_.·À-ÖØ-öø-ͽͿ-῿‌-‍‿-⁀⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF-]",SZ=new RegExp(`^[a-z]${H4}*-${H4}*$`,"u"),DZ=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function J4(q,Q){if(typeof Q!=="string")e9(q);if(Q){if(!SZ.test(Q))e9(q);else if(DZ.includes(Q))N5(q)}}function K4(q){let{nodes:Q}=q.fragment;if(Q.length>0){let Z=Q[0],Y=Q[Q.length-1];C5({start:Z.start,end:Y.end},q.name)}}function V4(q){if(q===32||q<=13&&q>=9)return!0;if(q<160)return!1;return q===160||q===5760||q>=8192&&q<=8202||q===8232||q===8233||q===8239||q===8287||q===12288||q===65279}var X4=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g;class C6{template;loose;index=0;static forCss(q){let Q=Object.create(C6.prototype);return Q.template=q,Q.index=0,Q.loose=!1,Q}ts=!1;stack=[];fragments=[];root;meta_tags={};last_auto_closed_tag;constructor(q,Q){if(typeof q!=="string")throw TypeError("Template must be a string");this.loose=Q,this.template=q.trimEnd();let Z;do Z=X4.exec(q);while(Z&&Z[0][1]!=="s");X4.lastIndex=0,this.ts=Z?.[2]==="ts",this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:G8(),options:null,comments:[],metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let Y=m1;while(this.index<this.template.length)Y=Y(this)||m1;if(this.stack.length>1){let V=this.current();if(this.loose)V.end=this.template.length;else if(V.type==="RegularElement")V.end=V.start+1,N0(V,V.name);else V.end=V.start+1,Y5(V)}if(Y!==m1)M8(this.index);this.root.start=0,this.root.end=q.length;let H=this.root.fragment.nodes.findIndex((V)=>V.type==="SvelteOptions");if(H!==-1){let V=this.root.fragment.nodes[H];this.root.fragment.nodes.splice(H,1),this.root.options=A6(V),K4(V),Object.defineProperty(this.root.options,"__raw__",{value:V,enumerable:!1})}}current(){return this.stack[this.stack.length-1]}eat(q,Q=!1,Z=!0){if(this.match(q))return this.index+=q.length,!0;if(Q&&(!this.loose||Z))k8(this.index,q);return!1}match(q){if(q.length===1)return this.template[this.index]===q;return this.template.startsWith(q,this.index)}match_regex(q){q.lastIndex=this.index;let Q=q.exec(this.template);if(!Q||Q.index!==this.index)return null;return Q[0]}allow_whitespace(){while(this.index<this.template.length&&V4(this.template.charCodeAt(this.index)))this.index++}read(q){let Q=this.match_regex(q);if(Q)this.index+=Q.length;return Q}read_identifier(){let q=this.index,Q=q,Z="",Y=this.template.codePointAt(this.index);if($8(Y,!0)){let H=this.index;Q+=Y<=65535?1:2;while(Q<this.template.length){let V=this.template.codePointAt(Q);if(!h8(V,!0))break;Q+=V<=65535?1:2}if(Z=this.template.slice(q,Q),this.index=Q,h7(Z))E5(q,Z)}return{type:"Identifier",name:Z,start:q,end:Q,loc:{start:j8(q),end:j8(Q)}}}read_until(q){if(this.index>=this.template.length){if(this.loose)return"";M8(this.template.length)}let Q=this.index,Z=q.exec(this.template.slice(Q));if(Z)return this.index=Q+Z.index,this.template.slice(Q,this.index);return this.index=this.template.length,this.template.slice(Q)}require_whitespace(){if(!V4(this.template.charCodeAt(this.index)))O5(this.index);this.allow_whitespace()}pop(){let q=this.fragments.pop();if(q?.metadata.transparent&&q.nodes.some((Q)=>Q.type==="DeclarationTag"))q.metadata.transparent=!1;return this.stack.pop()}append(q){return this.fragments.at(-1)?.nodes.push(q),q}}function W4(q,Q=!1){return y7(q),new C6(q,Q).root}function NZ(q){return q.charCodeAt(0)===65279?q.slice(1):q}function w6(q){delete q.metadata}function I6(q){if(!q||typeof q!=="object"||typeof q.type!=="string")return;w6(q);for(let Q in q){if(Q==="type")continue;let Z=q[Q];if(!Z||typeof Z!=="object")continue;if(Array.isArray(Z))for(let Y of Z)I6(Y);else I6(Z)}}function TZ(q,Q,Z){if(Z){for(let Y of Q.options?.attributes??[])if(w6(Y),Y.value)for(let H of Array.isArray(Y.value)?Y.value:[Y.value])w6(H);return I6(Q),Q}return n7(q,Q)}function _0(q,{modern:Q,loose:Z}={}){let Y=NZ(q);_7({warning:()=>!1,filename:void 0});let H=W4(Y,Z);return TZ(Y,H,Q)}var bZ=/[A-Za-z_$][\w$]*/g;function kZ(q,Q,Z){let Y=new Map,H=Q.typeParameters?.params,V=Z.typeArguments?.params;if(!H?.length||!V?.length)return Y;for(let K=0;K<H.length;K++){let G=H[K]?.name,W=V[K];if(!G||W?.start===void 0||W?.end===void 0)continue;let R=J8(q,W.start,W.end)?.trim();if(R)Y.set(G,R)}return Y}function EZ(q,Q){if(Q.size===0)return q;return q.replace(bZ,(Z)=>Q.get(Z)??Z)}function l1(q,Q,Z,Y,H=new Set){let V=new Map;if(!Z?.type)return V;let K=(G)=>{for(let W of G){if(W?.type!=="TSPropertySignature"||W.computed)continue;if(!W.key)continue;let R=q.getPropertyName(W.key);if(!R)continue;let j=W.typeAnnotation?.start,$=W.typeAnnotation?.end;if(j===void 0||$===void 0)continue;let M=J8(Q,j+1,$)?.trim();if(!M)continue;V.set(R,{type:M,optional:W.optional===!0,source:V8(Q,W)})}};switch(Z.type){case"TSTypeLiteral":K(Z.members??[]);break;case"TSInterfaceDeclaration":K(Z.body?.body??[]);break;case"TSTypeAliasDeclaration":{let G=l1(q,Q,Z.typeAnnotation,Y,H);for(let[W,R]of G)V.set(W,R);break}case"TSTypeReference":{let G=t6(Z.typeName);if(!G||H.has(G))break;let W=Y.get(G);if(!W)break;H.add(G);let R=l1(q,Q,W,Y,H);H.delete(G);let j=kZ(Q,W,Z);for(let[$,M]of R)V.set($,j.size===0?M:{...M,type:EZ(M.type,j)});break}case"TSIntersectionType":for(let G of Z.types??[]){let W=l1(q,Q,G,Y,H);for(let[R,j]of W)V.set(R,j)}break;case"TSParenthesizedType":{let G=l1(q,Q,Z.typeAnnotation,Y,H);for(let[W,R]of G)V.set(W,R);break}}return V}function G4(q,Q){if(Q.runesPropsDeclarationMetadataByDeclaratorStart.clear(),Q.explicitPropTypesByName.clear(),Q.explicitVariableTypesByName.clear(),Q.typeImportBindingsByLocalName.clear(),Q.localTypeDeclarationsByName.clear(),Q.typedRunesPropsDeclarations.length=0,!Q.source)return;let Z=_0(Q.source,{modern:!0});Q.scriptLanguage=q.resolveScriptLanguage(Z),Q.customElementTag=Z.options?.customElement?.tag,Q.runesOptionOverride=Z.options?.runes,Q.scriptGenericsAttribute=q.resolveScriptGenericsAttribute(Z);let Y=Z.instance?.content?.body??[];for(let H of Y){if(!H?.type)continue;if(H.type==="ImportDeclaration"&&H.source?.value)for(let V of H.specifiers??[]){let K=V.local?.name;if(!K)continue;if(!(H.importKind==="type"||V.importKind==="type"))continue;let W,R;if(V.type==="ImportSpecifier")W="named",R=V.imported?.type==="Identifier"?V.imported.name:typeof V.imported?.value==="string"?V.imported.value:void 0;else if(V.type==="ImportDefaultSpecifier")W="default";else if(V.type==="ImportNamespaceSpecifier")W="namespace";if(!W)continue;Q.typeImportBindingsByLocalName.set(K,{importedName:R,localName:K,source:String(H.source.value),specifierType:W})}if((H.type==="TSInterfaceDeclaration"||H.type==="TSTypeAliasDeclaration")&&H.id?.name&&H.start!==void 0&&H.end!==void 0)Q.localTypeDeclarationsByName.set(H.id.name,{code:J8(Q,H.start,H.end)?.trim()??"",node:H,start:H.start});if(H.type==="ExportNamedDeclaration"&&H.declaration?.type==="VariableDeclaration")for(let V of H.declaration.declarations??[]){if(V.id?.type!=="Identifier"||!V.id.name)continue;let K=t1(Q,V.id.typeAnnotation);if(K)Q.explicitPropTypesByName.set(V.id.name,K)}else if(H.type==="VariableDeclaration")for(let V of H.declarations??[]){if(V.id?.type!=="Identifier"||!V.id.name)continue;let K=t1(Q,V.id.typeAnnotation);if(K)Q.explicitVariableTypesByName.set(V.id.name,K)}}for(let H of Y){if(!H||typeof H!=="object"||!("declarations"in H))continue;for(let V of H.declarations??[]){if(!x8(s8(V.init),"$props"))continue;let K=V.id?.typeAnnotation?void 0:x6(V.init),G=V.id?.typeAnnotation?.typeAnnotation??K,W=V.id?.typeAnnotation?t1(Q,V.id.typeAnnotation):q7(Q,K),R=l1(q,Q,G,new Map(Array.from(Q.localTypeDeclarationsByName.entries(),([M,B])=>[M,B.node]))),j=new Set,$=new Set;if(w8(Q,G,j,$),H7(Q,j,$),V.start!==void 0){let M={canonicalType:W,props:R,referencedImportedTypes:j,referencedLocalTypes:$};if(Q.runesPropsDeclarationMetadataByDeclaratorStart.set(V.start,M),W)Q.typedRunesPropsDeclarations.push(M)}}}}function z4(q,Q,Z){for(let Y of Z.declarations){if(!x8(s8(Y.init),"$props"))continue;if(Y.id.type==="Identifier"){Q.wholePropsLocals.add(Y.id.name),Q.restPropLocals.add(Y.id.name);let K=H9(Q,Y.start);if(K)for(let[G,W]of K.props)L1(q,Q,G,{name:G,kind:"let",type:W.type,typeSource:"typescript",isFunction:!1,isFunctionDeclaration:!1,isRequired:!W.optional,constant:!1,reactive:!1,source:W.source});continue}if(Y.id.type!=="ObjectPattern")continue;let H=a8(Q,q,Z),V=Y.id.properties.filter((K)=>{if(K.type!=="Property"||K.computed)return!1;if(!q.getPropertyName(K.key))return!1;if(K.value.type==="Identifier")return!0;return K.value.type==="AssignmentPattern"&&K.value.left.type==="Identifier"}).length;for(let K of Y.id.properties){if(K.type==="RestElement"){if(K.argument.type==="Identifier")Q.restPropLocals.add(K.argument.name);continue}let G=q.getPropertyName(K.key);if(!G)continue;let W,R;if(K.value.type==="Identifier")W=K.value.name;else{let z=K.value;W=z.left.name,R=z.right}if(!W)continue;if(q.trackPropLocalName(G,W),G==="children")Q.snippetPropLocals.add(W);let j=U7(Q,q,K)??(V===1?H:void 0),$=r6(Q,Y.start,G),{init:M,bindable:B}=p6(R),S=M==null?{isFunction:!1}:Y1(q,Q,M),{value:I,type:k,isFunction:E,defaultValue:x}=S,F=$?.type===void 0&&j?.type===void 0?S.resolvedType:void 0,{type:P,typeSource:N,description:m,params:T,returnType:J,isFunction:X}=P1({explicitType:$?.type,typeSeed:k,inferredTypeForSource:k,jsdocType:j?.type,jsdocDescription:j?.description,jsdocParams:j?.params,jsdocReturnType:j?.returnType,resolvedType:F,resolvedDescription:S.resolvedDescription,resolvedParams:S.resolvedParams,resolvedReturnType:S.resolvedReturnType,initializerIsFunction:E,isFunctionDeclaration:!1,inferIsFunctionFromTypeSignature:!0});if(B)Q.reactive_vars.add(G);L1(q,Q,G,{name:G,...W===G?{}:{localName:W},kind:"let",description:m,binding:j?.binding,deprecated:j?.deprecated,tags:j?.tags,...B?{bindable:!0}:{},type:P,typeSource:N,value:I,defaultValue:x,params:T,returnType:J,isFunction:X,isFunctionDeclaration:!1,isRequired:M==null&&$?.optional!==!0,constant:!1,reactive:B,source:V8(Q,K)})}}}function j4(q,Q){if(q.syntaxMode!=="runes")return;for(let[Z,Y]of Array.from(q.events.entries())){if(Y.type!=="dispatched")continue;if(Q.has(Z)||q.forwardedEvents.has(Z))continue;let H=`on${Z}`,V=q.props.get(H);if(!V)continue;let K=V.type!==void 0||V.params!==void 0||V.returnType!==void 0,G=Y.detail===void 0||Y.detail==="undefined"||Y.detail==="null"?"() => void":`(detail: ${Y.detail}) => void`;q.props.set(H,{...V,description:V.description??Y.description,type:K?V.type:G,typeSource:K?V.typeSource:"inferred",isFunction:!0}),q.events.delete(Z)}}var O4=new Set(["TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion","TSInstantiationExpression"]);function x0(q){if(!q||typeof q!=="object")return;m8(q,{enter(Q){if(!O4.has(Q.type))return;let Z=Q.expression;while(Z&&O4.has(Z.type))Z=Z.expression;if(Z)this.replace(Z)}})}var vZ=/^\s*$/;function R4(q,Q,Z){let Y=Q+1;while(Y<q.length){if(q[Y]==="\\"){Y+=2;continue}if(q[Y]===Z)return Y+1;Y++}return Y}function B4(q,Q){let Z=Q+1,Y=0;while(Z<q.length){let H=q[Z];if(H==="\\"){Z+=2;continue}if(Y===0){if(H==="`")return Z+1;if(H==="$"&&q[Z+1]==="{"){Y=1,Z+=2;continue}Z++;continue}if(H==="{")Y++;else if(H==="}")Y--;else if(H==='"'||H==="'"){Z=R4(q,Z,H);continue}else if(H==="`"){Z=B4(q,Z);continue}Z++}return Z}function hZ(q,Q){let Z=[],Y=q.length,H=0;while(H<Y){let V=q[H];if(V==='"'||V==="'"){H=R4(q,H,V);continue}if(V==="`"){H=B4(q,H);continue}if(V==="/"&&q[H+1]==="/"){let K=H+2;while(K<Y&&q[K]!==`
85
+ `)K++;H=K;continue}if(V==="/"&&q[H+1]==="*"){let K=H,G=H+2;while(G<Y&&!(q[G]==="*"&&q[G+1]==="/"))G++;let W=Math.min(G+2,Y),R=q.slice(K,W);Z.push({end:W+Q,isJsDoc:R.startsWith("/**")&&R.length>4,text:R}),H=W;continue}H++}return Z}function U4(q,Q,Z){if(!q||typeof q!=="object"||!("type"in q))return;let Y=q;if(Y.type==="FunctionDeclaration"){if(Y.id?.type==="Identifier"&&Y.id.name)Z.push({name:Y.id.name,start:Q});return}if(Y.type==="VariableDeclaration"){for(let H of Y.declarations??[])if(H?.id?.type==="Identifier"&&H.id.name)Z.push({name:H.id.name,start:Q})}}function fZ(q){let Q=[];for(let Z of q){if(!Z||typeof Z!=="object"||!("type"in Z))continue;let Y=Z;if(Y.start===void 0)continue;if(Y.type==="ExportNamedDeclaration"&&Y.declaration)U4(Y.declaration,Y.start,Q);else U4(Y,Y.start,Q)}return Q}function yZ(q,Q,Z){let Y;for(let H of q){if(H.end>Q)break;if(!H.isJsDoc)continue;if(!vZ.test(Z.slice(H.end,Q)))continue;Y=H}return Y}function F4(q,Q){let Z=new Map;if(!q.source)return Z;let Y=[q.parsed?.module,q.parsed?.instance],H=[],V=[];for(let K of Y){let G=K?.content;if(!G?.body||G.start===void 0||G.end===void 0)continue;H.push(...hZ(q.source.slice(G.start,G.end),G.start)),V.push(...fZ(G.body))}H.sort((K,G)=>K.end-G.end);for(let K of V){let G=yZ(H,K.start,q.source);if(!G)continue;let W=C1(G.text,{spacing:"preserve"}),{type:R,description:j}=U9(W);if(!R)continue;Z.set(K.name,{type:Q.aliasType(R.type),description:j||R.description})}return Z}function M4(q){if(q==="var")return"let";if(q==="using"||q==="await using")return"const";return q}var gZ=null,$4=/^@component/,_Z=/\r/g,xZ=/^\{\s*\}$/;class z8{ctx=t0();static mapToArray(q){return Array.from(q,([Q,Z])=>Z)}static getStaticAttributeValue(q){if(!Array.isArray(q.value))return;return q.value.map((Q)=>Q.data??Q.raw??"").join("").trim()}resolveScriptLanguage(q){let Q=[q.instance,q.module].filter((Y)=>Y!==void 0),Z=!1;for(let Y of Q){let H=Y.attributes?.find((K)=>K.name==="lang");if(!H){Z=!0;continue}if(z8.getStaticAttributeValue(H)?.toLowerCase()==="ts")return"ts"}return Z?"js":void 0}resolveScriptGenericsAttribute(q){let Q=q.instance?.attributes?.find((K)=>K.name==="generics");if(!Q)return;let Z=V8(this.ctx,Q),Y=q.instance?.attributes?.find((K)=>K.name==="lang");if((Y?z8.getStaticAttributeValue(Y)?.toLowerCase():void 0)!=="ts"){l8(this.ctx,"syntax-skipped","generics",'<script generics="..."> requires lang="ts"; the generics attribute was ignored because the script is not TypeScript.',Z);return}let V=z8.getStaticAttributeValue(Q);if(!V)return;return{value:V,source:Z}}static assignValue(q){return C8(q)}resolvePublicPropName(q){return this.ctx.propLocalToPublicName.get(q)??q}trackPropLocalName(q,Q=q){this.ctx.propLocalToPublicName.set(Q,q)}getPropByLocalOrPublic(q){return this.ctx.props.get(this.resolvePublicPropName(q))}getPropTypeByLocalOrPublic(q){return this.getPropByLocalOrPublic(q)?.type}getExplicitPropType(q){return this.ctx.explicitPropTypesByName.get(q)}getPropertyName(q){if(!q||typeof q!=="object"||!("type"in q))return;if(_8(q))return q.name;if(Z1(q))return q.value==null?void 0:String(q.value);return}isNumericConstant(q){if(!q||typeof q!=="object"||!("type"in q))return!1;if(q.type!=="MemberExpression")return!1;let Q=q,Z=Q.object&&"name"in Q.object?Q.object.name:void 0,Y=Q.property&&"name"in Q.property?Q.property.name:void 0;if(!Z||!Y)return!1;if(Z==="Number")return["POSITIVE_INFINITY","NEGATIVE_INFINITY","MAX_VALUE","MIN_VALUE","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","EPSILON","NaN"].includes(Y);if(Z==="Math")return["PI","E","LN2","LN10","LOG2E","LOG10E","SQRT2","SQRT1_2"].includes(Y);return!1}resolveLocalVarJSDoc(q){for(let Z of this.ctx.vars)if(Z.declarations.some((H)=>H.id&&typeof H.id==="object"&&("type"in H.id)&&H.id.type==="Identifier"&&("name"in H.id)&&H.id.name===q))return a8(this.ctx,this,Z);let Q=this.ctx.funcDecls.get(q);if(Q)return a8(this.ctx,this,Q);return}addModuleExport(q,Q){if(z8.assignValue(q)===void 0)return;if(this.ctx.moduleExports.has(q)){let Z=this.ctx.moduleExports.get(q);this.ctx.moduleExports.set(q,{...Z,...Q})}else this.ctx.moduleExports.set(q,Q)}aliasType(q){if(q==="*")return"any";return q.trim()}findVariableTypeAndDescription(q){let Q=this.getPropByLocalOrPublic(q);if(Q?.type)return{type:Q.type,description:Q.description};if(!this.ctx.variableInfoCacheBuilt)this.ctx.variableInfoCache=F4(this.ctx,this),this.ctx.variableInfoCacheBuilt=!0;let Z=this.ctx.variableInfoCache.get(q),Y=this.ctx.explicitVariableTypesByName.get(q);if(Y)return{type:Y,description:Z?.description};return Z??null}accumulateGeneric(q,Q){if(this.ctx.generics)this.ctx.generics=[`${this.ctx.generics[0]}, ${q}`,`${this.ctx.generics[1]}, ${Q}`];else this.ctx.generics=[q,Q]}cleanup(){this.ctx=t0()}static SCRIPT_BLOCK_REGEX=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi;static TS_DIRECTIVE_REGEX=/\/\/\s*@ts-[^\n\r]*/g;static stripTypeScriptDirectivesFromScripts(q){return z8.SCRIPT_BLOCK_REGEX.lastIndex=0,q.replace(z8.SCRIPT_BLOCK_REGEX,(Q,Z,Y,H)=>{z8.TS_DIRECTIVE_REGEX.lastIndex=0;let V=Y.replace(z8.TS_DIRECTIVE_REGEX,"");return Z+V+H})}parseSvelteComponent(q,Q){this.cleanup(),this.ctx.componentFilePath=Q.filePath;let Z=z8.stripTypeScriptDirectivesFromScripts(q);if(this.ctx.source=Z,G4(this,this.ctx),this.ctx.parsed=_0(Z,{modern:!1}),this.ctx.scriptLanguage==="ts")x0(this.ctx.parsed.module),x0(this.ctx.parsed.instance),x0(this.ctx.parsed.html);if(this.ctx.syntaxMode=w7(this.ctx),R7(this.ctx,this),this.ctx.parsed?.module)m8(this.ctx.parsed?.module,{enter:(F)=>{if(F.type==="ExportNamedDeclaration"){if(F.declaration==null)return;if(!F.declaration||typeof F.declaration!=="object"||!("type"in F.declaration))return;let P,N,m=!1,T,J,X,z=!1,U,L,A;if(F.declaration.type==="FunctionDeclaration"){let Y8=F.declaration;if(!Y8.id?.name)return;P=Y8.id.name,N="function",T=void 0,J="() => any",z=!0,m=!0}else if(F.declaration.type==="VariableDeclaration"){let Y8=F.declaration,y=Y8.declarations[0];if(!y||typeof y!=="object"||!("id"in y))return;let{id:a,init:c}=y;if(!a||typeof a!=="object"||!("name"in a))return;let r=a.name;P=r,N=M4(Y8.kind);let d=c==null?{isFunction:!1}:Y1(this,this.ctx,c);({value:T,type:J,isFunction:z,defaultValue:U}=d),L=J,A=d,X=this.getExplicitPropType(r)}else return;let C=a8(this.ctx,this,F),{type:b,typeSource:D,description:w,params:g,returnType:l,isFunction:i}=P1({explicitType:X,typeSeed:J,inferredTypeForSource:L,jsdocType:C?.type,jsdocDescription:C?.description,jsdocParams:C?.params,jsdocReturnType:C?.returnType,resolvedType:A?.resolvedType,resolvedDescription:A?.resolvedDescription,resolvedParams:A?.resolvedParams,resolvedReturnType:A?.resolvedReturnType,initializerIsFunction:z,isFunctionDeclaration:m,typedefs:this.ctx.typedefs});this.addModuleExport(P,{name:P,kind:N,description:w,deprecated:C?.deprecated,tags:C?.tags,type:b,typeSource:D,value:T,defaultValue:U,params:g,returnType:l,isFunction:i,isFunctionDeclaration:m,isRequired:!1,constant:N==="const",reactive:!1,source:V8(this.ctx,F)})}}});let Y,H=new Set,V=new Set,K=[],G={type:"ComponentRoot",instance:this.ctx.parsed.instance,html:this.ctx.parsed.html};M7(this,this.ctx),this.ctx.activeScopes.push(this.ctx.componentScope);let W=$7(this.ctx);if(m8(G,{enter:(F,P,N)=>{L7(this,this.ctx,W,F);let m=this.ctx.scopeDeclarations.get(F);if(m)this.ctx.activeScopes.push(m);if(F.type==="AssignmentExpression")B9(this.ctx,F.left);if(F.type==="UpdateExpression")B9(this.ctx,F.argument);if(F.type==="CallExpression"){let T=F,J=T.callee&&typeof T.callee==="object"&&"name"in T.callee?T.callee.name:void 0;if(J==="createEventDispatcher"){if(P&&typeof P==="object"&&"id"in P&&P.id&&typeof P.id==="object"&&"name"in P.id)Y=P.id.name}if(J==="$host"){if(P&&typeof P==="object"&&"id"in P&&P.id&&typeof P.id==="object"&&"name"in P.id)H.add(P.id.name)}if(J==="setContext")s6(this.ctx,this,F,P??void 0);if(J)K.push({name:J,arguments:T.arguments,source:V8(this.ctx,T)});if(_6(T.callee)&&_8(T.callee.property)&&T.callee.property.name==="dispatchEvent"&&(x8(T.callee.object,"$host")||_8(T.callee.object)&&H.has(T.callee.object.name))){let X=a6(this.ctx,T);if(X)V.add(X)}}if(F&&typeof F==="object"&&"type"in F&&String(F.type)==="Spread"){let T=F;if(T.expression?.name==="$$restProps"||this.ctx.restPropLocals.has(T.expression?.name??""))B7(this.ctx,P)}if(F.type==="FunctionDeclaration"){let T=F;if(T.id?.name)this.ctx.funcDecls.set(T.id.name,T)}if(F.type==="VariableDeclaration"){if(this.ctx.vars.add(F),P&&typeof P==="object"&&"type"in P&&P.type==="Program"&&F.declarations.some((T)=>x8(s8(T.init),"$props")))z4(this,this.ctx,F)}if(F.type==="ExportNamedDeclaration"){if(F.declaration==null&&F.specifiers.length===0)return;let T;if(F.declaration==null&&F.specifiers[0]?.type==="ExportSpecifier"){let d=F.specifiers[0],p=d.local&&typeof d.local==="object"&&"name"in d.local?d.local.name:void 0,t=d.exported&&typeof d.exported==="object"&&"name"in d.exported?d.exported.name:void 0;if(!p||!t)return;let Q8;for(let A8 of Array.from(this.ctx.vars))if(A8.declarations.some((e)=>e.id&&typeof e.id==="object"&&("type"in e.id)&&e.id.type==="Identifier"&&e.id.name===p)){Q8=A8;break}F.declaration=Q8,T=t}if(F.declaration==null)return;if(!F.declaration||typeof F.declaration!=="object"||!("type"in F.declaration))return;let J,X=!1,z,U,L,A=!1,C=!1,b,D,w,g;if(F.declaration.type==="FunctionDeclaration"){let d=F.declaration;if(!d.id?.name)return;T??=d.id.name,b=d.id.name,J="function",z=void 0,U="() => any",A=!0,X=!0,C=!1}else if(F.declaration.type==="VariableDeclaration"){let d=F.declaration,p=d.declarations[0];if(!p||typeof p!=="object"||!("id"in p))return;let{id:t,init:Q8}=p;if(t&&typeof t==="object"&&"name"in t){let e=t.name;b=e,T??=e,L=this.getExplicitPropType(e)}else return;J=M4(d.kind),C=J==="let"&&Q8==null;let A8=Q8==null?{isFunction:!1}:Y1(this,this.ctx,Q8);({value:z,type:U,isFunction:A,defaultValue:D}=A8),w=U,g=A8}else return;let l=a8(this.ctx,this,F),{type:i,typeSource:Y8,description:y,params:a,returnType:c,isFunction:r}=P1({explicitType:L,typeSeed:U,inferredTypeForSource:w,jsdocType:l?.type,jsdocDescription:l?.description,jsdocParams:l?.params,jsdocReturnType:l?.returnType,resolvedType:g?.resolvedType,resolvedDescription:g?.resolvedDescription,resolvedParams:g?.resolvedParams,resolvedReturnType:g?.resolvedReturnType,initializerIsFunction:A,isFunctionDeclaration:X,typedefs:this.ctx.typedefs});L1(this,this.ctx,T,{name:T,...b!==void 0&&b!==T?{localName:b}:{},kind:J,description:y,binding:l?.binding,deprecated:l?.deprecated,tags:l?.tags,type:i,typeSource:Y8,value:z,defaultValue:D,params:a,returnType:c,isFunction:r,isFunctionDeclaration:X,isRequired:C,constant:J==="const",reactive:this.ctx.reactive_vars.has(T),source:V8(this.ctx,F)})}if(F&&typeof F==="object"&&"type"in F&&String(F.type)==="Comment"){let J=F?.data?.trim()??"";if($4.test(J))this.ctx.componentComment=J.replace($4,"").replace(_Z,""),this.ctx.componentCommentSource=V8(this.ctx,F)}if(F&&typeof F==="object"&&"type"in F&&String(F.type)==="Slot"){let T=F,J=T.attributes?.find((U)=>U.name==="name")?.value?.[0]?.data,X=(T.attributes||[]).filter((U)=>U.name!=="name").reduce((U,L)=>{let A={value:void 0,replace:!1},C=L.value;if(C===void 0)return U;if(C[0]){let b=C[0],{type:D,expression:w,raw:g,start:l,end:i}=b;if(D==="Text"&&g!==void 0)A.value=JSON.stringify(g);else if(D==="AttributeShorthand"&&w&&typeof w==="object"&&"name"in w)A.value=w.name,A.replace=!0;if(w&&typeof w==="object"&&"type"in w){if(w.type==="Literal"&&"value"in w){let Y8=w.value;A.value=typeof Y8==="string"?JSON.stringify(Y8):String(Y8)}else if(w.type==="MemberExpression")A.value=a1(this.ctx,this,w);else if(w.type!=="Identifier"){if(l!==void 0&&i!==void 0){if(w.type==="ObjectExpression"||w.type==="TemplateLiteral")A.value=J8(this.ctx,l+1,i-1)}}}}if(L.name)U[L.name]=A;return U},{}),z=T.children?.map(({start:U,end:L})=>{if(U===void 0||L===void 0)return"";return J8(this.ctx,U,L)??""}).join("").trim();w1(this.ctx,{slot_name:J,slot_props:X,slot_fallback:z,source:V8(this.ctx,F)})}if(F&&typeof F==="object"&&"type"in F&&String(F.type)==="RenderTag"){let T=F,J=W7(this.ctx,T.expression);if(J){let X;if(J.arguments.length===0)X={};else if(J.arguments.length===1&&typeof J.arguments[0]==="object"&&J.arguments[0]&&"type"in J.arguments[0]&&J.arguments[0].type==="ObjectExpression")X=X7(this.ctx,this,J.arguments[0]);else if(J.arguments.length===1)l8(this.ctx,"syntax-skipped",J.publicName,`{@render ${J.publicName}(...)} argument is not a plain object literal; the render call was not mapped to slot metadata.`,V8(this.ctx,F));let z=J.publicName==="children"?void 0:J.publicName,U=z===void 0?gZ:z;if(X!==void 0)w1(this.ctx,{slot_name:z,slot_props:X,source:V8(this.ctx,F)});if(X!==void 0||this.ctx.slots.has(U))this.ctx.snippetPropLocals.add(J.trackingName)}}if(F&&typeof F==="object"&&"type"in F&&String(F.type)==="EventHandler"){let T=F;if(T.expression==null&&T.name){if(P!=null&&typeof P==="object"&&"name"in P){let J=typeof P.name==="string"?P.name:void 0,X="type"in P?String(P.type):void 0;if(J&&X){let z=X==="InlineComponent"?{type:"InlineComponent",name:J}:{type:"Element",name:J};this.ctx.forwardedEvents.set(T.name,z);let U=this.ctx.events.get(T.name),L=this.ctx.eventDescriptions.get(T.name),A=U?.deprecated;if(!U)this.ctx.events.set(T.name,{type:"forwarded",name:T.name,element:z,description:L,deprecated:A,source:V8(this.ctx,F)});else if(U.type==="forwarded"&&L&&!U.description)this.ctx.events.set(T.name,{...U,description:L,deprecated:U.deprecated??A,source:U.source||V8(this.ctx,F)})}}}}if(P&&typeof P==="object"&&"type"in P&&(String(P.type)==="Element"||String(P.type)==="InlineComponent")&&F&&typeof F==="object"&&"type"in F&&String(F.type)==="Binding"){let T=F;if(T.expression?.name){let J=Y0(this.ctx,T.expression.name);if(J)this.ctx.reactive_vars.add(J)}if(String(P.type)==="Element"&&T.name==="this"&&T.expression?.name&&"name"in P&&typeof P.name==="string"){let J=Y0(this.ctx,T.expression.name);if(!J)return;let X=P.name;if(this.ctx.bindings.has(J)){let z=this.ctx.bindings.get(J);if(z&&!z.elements.includes(X))this.ctx.bindings.set(J,{...z,elements:[...z.elements,X]})}else this.ctx.bindings.set(J,{elements:[X]})}}},leave:(F)=>{if(this.ctx.scopeDeclarations.has(F))this.ctx.activeScopes.pop();A7(W,F)}}),Y!==void 0){for(let F of K)if(F.name===Y){let P=F.arguments[0],N=P&&typeof P==="object"&&"value"in P?P.value:void 0,m=F.arguments[1],T=m&&typeof m==="object"&&"value"in m?m.value:void 0;if(N!=null)A1(this.ctx,{name:String(N),detail:T==null?"":Z9(T),has_argument:Boolean(m),source:F.source})}}let R=new Set(V);if(Y!==void 0){for(let F of K)if(F.name===Y){let P=F.arguments[0],N=P&&typeof P==="object"&&"value"in P?P.value:void 0;if(N!=null)R.add(String(N))}}this.ctx.forwardedEvents.forEach((F,P)=>{let N=this.ctx.events.get(P);if(N&&N.type==="dispatched"&&!R.has(P)){let m=this.ctx.eventDescriptions.get(P),T={type:"forwarded",name:P,element:F,description:m,deprecated:N.deprecated,tags:N.tags,source:N.source};if(N.detail!==void 0&&N.detail!=="undefined")T.detail=N.detail;this.ctx.events.set(P,T)}}),j4(this.ctx,R);let j=this.ctx.syntaxMode==="runes"?new Set(Array.from(this.ctx.snippetPropLocals,(F)=>this.resolvePublicPropName(F))):new Set,$=z8.mapToArray(this.ctx.props).filter((F)=>!j.has(F.name)).map((F)=>{if(this.ctx.bindings.has(F.name)){let P=this.ctx.bindings.get(F.name)?.elements.sort().map((N)=>m6(N)).join(" | ");return{...F,type:`null | ${P}`,typeSource:"inferred",reactive:F.reactive||this.ctx.reactive_vars.has(F.name)}}return{...F,reactive:F.reactive||this.ctx.reactive_vars.has(F.name)}});this.ctx.activeScopes.length=0;let M=z8.mapToArray(this.ctx.slots).map((F)=>{if(!F.slot_props)return F;if(typeof F.slot_props==="string")return xZ.test(F.slot_props)?{...F,slot_props:"Record<string, never>"}:F;let P=F.slot_props,N=[];for(let T of Object.keys(P)){if(P[T].replace&&P[T].value!==void 0)P[T].value=this.getPropTypeByLocalOrPublic(P[T].value);if(P[T].value===void 0)P[T].value="any";N.push(`${T}: ${P[T].value}`)}let m=N.length===0?"Record<string, never>":N.length===1?`{ ${N[0]} }`:`{
86
+ ${N.join(`;
87
+ `)};
88
+ }`;return{...F,slot_props:m}}).sort((F,P)=>{let N=F.name??"",m=P.name??"";if(N<m)return-1;if(N>m)return 1;return 0});if(this.ctx.deferredSlotBlockGenerics.length>0){let F=[...$.map((P)=>P.type??""),...M.map((P)=>P.slot_props??"")].join(`
89
+ `);for(let{name:P,constraint:N}of this.ctx.deferredSlotBlockGenerics){let m=P.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!new RegExp(`\\b${m}\\b`).test(F))continue;this.accumulateGeneric(P,N)}}if(this.ctx.scriptGenericsAttribute){if(this.ctx.generics)l8(this.ctx,"syntax-skipped","generics",'Both the "generics" script attribute and @generics/@template JSDoc tags declare component generics; the script attribute takes precedence and the JSDoc declaration was ignored.',this.ctx.scriptGenericsAttribute.source);this.ctx.generics=Y7(this.ctx.scriptGenericsAttribute.value)}let B=z8.mapToArray(this.ctx.moduleExports),S=z8.mapToArray(this.ctx.events).map((F)=>{switch(F.type){case"forwarded":return{...F,element:F.element.name};case"dispatched":return F;default:return F}}).sort((F,P)=>{let N=F.name.localeCompare(P.name);if(N!==0)return N;let m=F.type.localeCompare(P.type);if(m!==0)return m;if(F.type==="forwarded"&&P.type==="forwarded"){let T=F.element.localeCompare(P.element);if(T!==0)return T}return(F.detail??"").localeCompare(P.detail??"")}),I=z8.mapToArray(this.ctx.typedefs),k=z8.mapToArray(this.ctx.contexts);for(let F of $)if(F.typeSource==="unknown")l8(this.ctx,"prop-unknown-type",F.name,`Prop "${F.name}" type could not be inferred; falling back to "${F.type??"any"}".`,F.source);for(let F of this.ctx.jsDocEventNames){if(R.has(F))continue;if(this.ctx.forwardedEvents.has(F))continue;if(this.ctx.props.has(`on${F}`))continue;l8(this.ctx,"event-no-source",F,`@event "${F}" has no matching dispatch or callback prop.`,this.ctx.jsDocEventSources.get(F))}let E={source:r1(this.ctx,0,this.ctx.source?.length),syntaxMode:this.ctx.syntaxMode,...this.ctx.scriptLanguage?{scriptLanguage:this.ctx.scriptLanguage}:{},props:$,moduleExports:B,slots:M,events:S,typedefs:I,generics:this.ctx.generics,rest_props:this.ctx.rest_props,extends:this.ctx.extends,componentComment:this.ctx.componentComment,componentCommentSource:this.ctx.componentCommentSource,contexts:k,customElementTag:this.ctx.customElementTag,diagnostics:this.ctx.diagnosticRecords.slice()},x=Q7(this.ctx);if(x)E[s1]=x;return E}}var A4="sveld",C4="0.35.2";var w4="5.56.3";var I4=w4;var S4=1,P4=new WeakMap;function c1(q,Q={}){let Z=P4.get(q),Y=Z?.get(Q.entryExports);if(Y)return Y;let H=Array.from(q,([,K])=>{let{diagnostics:G,...W}=K;return W}).sort((K,G)=>K.moduleName.localeCompare(G.moduleName)),V={schemaVersion:S4,generator:{name:A4,version:C4,svelteVersion:I4},total:H.length,components:H};if(Q.entryExports&&Q.entryExports.length>0)V.totalExports=Q.entryExports.length,V.exports=Q.entryExports;if(!Z)Z=new Map,P4.set(q,Z);return Z.set(Q.entryExports,V),V}var D4=/^[}\])>]/,uZ=new Set(["{","(","["]),mZ=new Set(["}",")","]"]);var lZ=/\binterface\s+[A-Za-z_$][\w$]*(\s*<[^{};]*>)?\s*$/,N4=/[ \t]+$/,cZ=/\s+$/,dZ=/[{([]$/,iZ=/\s/;function pZ(q){return lZ.test(q.slice(-200))}function oZ(q){let Q="",Z=null,Y=!1;for(let H=0;H<q.length;H++){let V=q[H],K=q[H-1];if(Z){if(Q+=V,Z==="double"&&V==='"'&&K!=="\\"||Z==="single"&&V==="'"&&K!=="\\"||Z==="template"&&V==="`"&&K!=="\\")Z=null;Y=!1;continue}if(V==='"'||V==="'"||V==="`"){Z=V==='"'?"double":V==="'"?"single":"template",Q+=V,Y=!1;continue}if(iZ.test(V)){if(!Y&&Q.length>0)Q+=" ",Y=!0;continue}Q+=V,Y=!1}return Q.trimEnd()}function nZ(q,Q){let Z=0,Y="normal";for(let H=Q;H<q.length;H++){let V=q[H],K=q[H-1];if(Y==="blockComment"){if(K==="*"&&V==="/")Y="normal";continue}if(Y==="double"||Y==="single"){if(V===(Y==="double"?'"':"'")&&K!=="\\")Y="normal";continue}if(Y==="template"){if(V==="`"&&K!=="\\")Y="normal";continue}if(V==="/"&&q[H+1]==="*")Y="blockComment";else if(V==='"')Y="double";else if(V==="'")Y="single";else if(V==="`")Y="template";else if(V==="{")Z++;else if(V==="}"){if(Z--,Z===0)return H}}return-1}function T4(q){let Q="",Z="normal";for(let Y=0;Y<q.length;Y++){let H=q[Y],V=q[Y-1];if(Z==="blockComment"){if(Q+=H,V==="*"&&H==="/")Z="normal";continue}if(Z==="double"||Z==="single"){if(Q+=H,H===(Z==="double"?'"':"'")&&V!=="\\")Z="normal";continue}if(Z==="template"){if(Q+=H,H==="`"&&V!=="\\")Z="normal";continue}if(H==="/"&&q[Y+1]==="*"){Z="blockComment",Q+=H;continue}if(H==='"'){Z="double",Q+=H;continue}if(H==="'"){Z="single",Q+=H;continue}if(H==="`"){Z="template",Q+=H;continue}if(H==="{"){let K=nZ(q,Y);if(K===-1){Q+=H;continue}let G=q.slice(Y+1,K);if(G.trim()===""){Q+="{}",Y=K;continue}if(!G.includes("/*")&&q[Y+1]!==`
90
+ `&&!pZ(Q)){let W=T4(G).trim();if(!W.includes(`
91
+ `)){let R=W.endsWith(";")?W.slice(0,-1):W,j=`{ ${oZ(R)} }`;if(j.length<=120){Q+=j,Y=K;continue}}}if(Q+=H,q[Y+1]!==`
92
+ `)Q+=`
93
+ `;continue}if(H==="}"){if(Q=Q.replace(N4,""),!Q.endsWith(`
94
+ `))Q+=`
95
+ `;Q+=H;continue}if(H===";"){if(Q=Q.replace(cZ,""),Q+=";",q[Y+1]!==`
96
+ `)Q+=`
97
+ `;continue}Q+=H}return Q}function sZ(q){let Q="",Z=null;for(let Y=0;Y<q.length;Y++){let H=q[Y],V=q[Y-1];if(Z){if(Q+=H,Z==="double"&&H==='"'&&V!=="\\"||Z==="single"&&H==="'"&&V!=="\\"||Z==="template"&&H==="`"&&V!=="\\")Z=null;continue}if(H==='"'||H==="'"||H==="`"){Z=H==='"'?"double":H==="'"?"single":"template",Q+=H;continue}if(H===" "&&Q.endsWith(" "))continue;Q+=H}return Q}function aZ(q){let Q=q.split(`
98
+ `),Z=[],Y=0,H=!1,V=0;for(let K of Q){let G=K.trim();if(G===""){Z.push("");continue}if(H){if(Z.push(`${" ".repeat(V)} ${G}`),G.includes("*/"))H=!1;continue}if(G.startsWith("/**")&&!G.includes("*/")){Z.push(" ".repeat(Y)+G),H=!0,V=Y;continue}let W=sZ(G),R=D4.test(W),j=Math.max(0,Y-(R?1:0));if(Z.push(" ".repeat(j)+W),W.startsWith("/**")&&W.includes("*/"))continue;let $=null;for(let M=0;M<W.length;M++){let B=W[M],S=W[M-1];if($){if($==="double"&&B==='"'&&S!=="\\"||$==="single"&&B==="'"&&S!=="\\"||$==="template"&&B==="`"&&S!=="\\")$=null;continue}if(B==='"')$="double";else if(B==="'")$="single";else if(B==="`")$="template";else if(uZ.has(B))Y++;else if(mZ.has(B))Y=Math.max(0,Y-1);else if(B==="<")Y++;else if(B===">"&&S!=="=")Y=Math.max(0,Y-1)}}return Z.join(`
99
+ `)}function rZ(q){let Q=q.split(`
100
+ `).map((Y)=>Y.replace(N4,"")),Z=[];for(let Y of Q){let H=Y==="",V=Z.length>0&&Z[Z.length-1]==="",K=Z.length>0&&dZ.test(Z[Z.length-1]);if(H){if(Z.length===0||V||K)continue;Z.push(Y);continue}if(D4.test(Y)&&V)Z.pop();Z.push(Y)}while(Z.length>0&&Z[Z.length-1]==="")Z.pop();return Z.join(`
101
+ `)}function b4(q){let Q=T4(q),Z=aZ(Q);return`${rZ(Z)}
102
+ `}var Q1="any",E8="",tZ="Record<string, any>",S6="Record<string, never>",eZ=/(-|\s+|:)/,qY=/("|')/,QY=/CustomEvent/,ZY=/^[A-Z]/,YY=/\n/,k4=/=>/,HY=/(?:^|\n)@default\b/,D6=/\n/g,JY=/\s+/g,KY=/(^|[^.\w])Snippet(?:\s*<|\b)/,VY=/import\s+type\s+[^;]*\bSnippet\b[^;]*from\s+"svelte";/,XY=/[.*+?^${}()|[\]\\]/g,WY=/^const\s+/;function N6(q){return q.replace(WY,"")}function GY(q){if(!q)return;return q.replace(D6,`
103
+ * `)}function u0(q){if(!q)return"";return`/** ${q} */`}function m0(q){if(!q)return"";return`/**
104
+ * ${q.replace(D6,`
105
+ * `)}
106
+ */`}function E4(q){if(q===void 0)return;return q===!0?"@deprecated":`@deprecated ${q}`}function zY(q){let Q=E4(q);if(Q===void 0)return;return`* ${Q.replace(D6,`
107
+ * `)}
108
+ `}function jY(q,Q){if(!Q)return[`@${q}`];if(!Q.includes(`
109
+ `))return[`@${q} ${Q}`];return[`@${q}`,...Q.split(`
110
+ `)]}function v4(q){let Q=[];for(let{name:Z,body:Y}of q??[])Q.push(...jY(Z,Y));return Q}function d1(q,Q,Z){let Y=E4(Z),H=v4(Q),V=H.length>0;if(!q&&!V&&!Y)return"";if(!V&&!Y)return q?.includes(`
111
+ `)?m0(q):u0(q);let K=[];if(q)K.push(...q.split(`
112
+ `));if(K.push(...H),Y)K.push(...Y.split(`
113
+ `));return`/**
114
+ * ${K.join(`
115
+ * `)}
116
+ */`}function OY(q){let Q=v4(q);if(Q.length===0)return"";return Q.map((Z)=>`* ${Z}
117
+ `).join("")}function l0(q){if(q===void 0)return Q1;return`${q}
118
+ `}function c0(q){if(q.typedefs.length===0)return E8;return q.typedefs.map((Q)=>{return`${Q.description?`${m0(Q.description)}
119
+ `:""}export ${Q.ts}`}).join(`
120
+
121
+ `)}function h4(q,Q){let Z=Q.replace(XY,"\\$&");return new RegExp(`\\b${Z}\\b`).test(q)}function UY(q){if(q===null)return[];return q[0].split(",").map((Q,Z)=>({name:Q.trim(),constraint:(H1(q[1]??"")[Z]??Q).trim()}))}function RY(q,Q){let Z=UY(q).filter(({name:Y})=>h4(Q,Y));if(Z.length===0)return{declSuffix:E8,refSuffix:E8};return{declSuffix:`<${Z.map(({constraint:Y})=>N6(Y)).join(", ")}>`,refSuffix:`<${Z.map(({name:Y})=>Y).join(", ")}>`}}function f4(q){if(!q.contexts||q.contexts.length===0)return E8;let Q=q.generics===null?[]:q.generics[0].split(",").map((Z,Y)=>({name:Z.trim(),constraint:(H1(q.generics?.[1]??"")[Y]??Z).trim()}));return q.contexts.map((Z)=>{let Y=Z.properties.map((G)=>{let W=G.description?`${u0(G.description)}
122
+ `:"",R=G.optional?"?":"";return`${W}${G.name}${R}: ${G.type};`}).join(`
123
+ `),H=Z.description?`${m0(Z.description)}
124
+ `:"",V=Q.filter(({name:G})=>Z.properties.some((W)=>h4(W.type,G))).map(({constraint:G})=>G),K=V.length>0?`<${V.map(N6).join(", ")}>`:"";if(Z.properties.length===0)return`${H}export type ${Z.typeName} = Record<string, never>;`;return`${H}export type ${Z.typeName}${K} = {
125
+ ${Y}
126
+ };`}).join(`
127
+
128
+ `)}function i1(q){if(eZ.test(q))return qY.test(q)?q:`"${q}"`;return q}function y4(q,Q){if(!q)return;return`* ${Q||q}
129
+ `}function T6(q,Q,Z){return[y4(GY(q)),zY(Q),OY(Z)].filter(Boolean).join("")}function b6(q){return q.length>0?`/**
130
+ ${q}*/`:E8}function BY(q){let Q=new Set([...q.props.filter((I)=>!I.isFunctionDeclaration&&I.kind!=="const").map((I)=>I.name),...Array.from(q.canonicalPropNames??[])]),Z=q.props.filter((I)=>!I.isFunctionDeclaration&&I.kind!=="const").map((I)=>{let k=I.value;if(typeof I.value==="string")k=I.value.replace(JY," ");if(I.value===void 0)k="undefined";let E=HY.test(I.description??""),x=[T6(I.description,I.deprecated,I.tags),y4(I.constant,"@constant"),I.isFunction||E?null:`* @default ${k}
131
+ `].filter(Boolean).join(""),F=I.constant&&!I.isFunction?I.value:I.type;return`
132
+ ${b6(x)}
133
+ ${I.name}${I.isRequired?"":"?"}: ${F};`}),Y=q.canonicalPropsType?Z.filter((I,k)=>{let E=q.props.filter((x)=>!x.isFunctionDeclaration&&x.kind!=="const")[k];return E?!(q.canonicalPropNames?.has(E.name)??!1):!0}):Z,H=(q.slots||[]).filter((I)=>!I.default&&I.name!=null&&!Q.has(I.name)).map((I)=>{let k=I.name,E=i1(k),x=d1(I.description,I.tags,I.deprecated),F=x?`${x}
134
+ `:"",N=I.slot_props&&I.slot_props!=="Record<string, never>"?`(this: void, ...args: [${I.slot_props}]) => void`:"(this: void) => void";return`
135
+ ${F}${E}?: ${N};`}),V=(q.slots||[]).find((I)=>I.default||I.name===null),K=V&&!Q.has("children")?(()=>{let I=d1(V.description,V.tags,V.deprecated),k=I?`${I}
136
+ `:"",x=V.slot_props&&V.slot_props!=="Record<string, never>"?`(this: void, ...args: [${V.slot_props}]) => void`:"(this: void) => void";return`
137
+ ${k}children?: ${x};`})():"",G=q.events?CY({events:q.events},Q):[],W=[...H,K,...G].filter(Boolean),R=[...Y,...W].join(`
138
+ `),j=`${q.moduleName}Props`,$=E8,M=q.generics?`<${H1(q.generics[1]).map((I)=>N6(I.trim())).join(", ")}>`:"",B=q.generics?`<${q.generics[0]}>`:"",S=q.canonicalPropsType?`
139
+ type $Props${M} = ${q.canonicalPropsType}${R.trim()===""?"":` & {${R}
140
+ }`};
141
+ `:`
142
+ type $Props${M} = {
143
+ ${R}
144
+ };
145
+ `;if(q.rest_props?.type==="Element"){let I;if(q.rest_props.name==="svelte:element")if(q.rest_props.thisValue)I=`SvelteHTMLElements["${q.rest_props.thisValue}"]`;else I="HTMLAttributes<HTMLElement>";else I=q.rest_props.name.split("|").map((x)=>{return`SvelteHTMLElements["${x.trim()}"]`}).join(" & ");let k="[key: `data-${string}`]: unknown;",E=q.rest_props.description?q.rest_props.description.includes(`
146
+ `)?`${m0(q.rest_props.description)}
147
+ `:`${u0(q.rest_props.description)}
148
+ `:"";if(q.extends===void 0)$=`
149
+ ${E}${I?`type $RestProps = ${I};
150
+ `:""}
151
+ ${q.canonicalPropsType?`type $Props${M} = (${q.canonicalPropsType}) & {${R}
152
+
153
+ ${k}
154
+ };`:`type $Props${M} = {
155
+ ${R}
156
+
157
+ ${k}
158
+ };`}
159
+
160
+ export type ${j}${M} = Omit<$RestProps, keyof $Props${B}> & $Props${B};
161
+ `;else $=`
162
+ ${E}${I?`type $RestProps = ${I};
163
+ `:""}
164
+ ${q.canonicalPropsType?`type $Props${M} = (${q.canonicalPropsType}) & {${R}
165
+
166
+ ${k}
167
+ };`:`type $Props${M} = {
168
+ ${R}
169
+
170
+ ${k}
171
+ };`}
172
+
173
+ export type ${j}${M} = Omit<$RestProps, keyof ($Props${B} & ${q.extends.interface})> & $Props${B} & ${q.extends.interface};
174
+ `}else if(R.trim()===""&&q.extends===void 0&&!q.canonicalPropsType)$=`
175
+ export type ${j}${M} = ${S6};
176
+ `;else if(q.canonicalPropsType)$=`
177
+ ${S}
178
+ export type ${j}${M} = ${q.extends===void 0?"":`${q.extends.interface} & `}$Props${B};
179
+ `;else $=`
180
+ export type ${j}${M} = ${q.extends===void 0?"":`${q.extends.interface} & `} {
181
+ ${R}
182
+ };
183
+ `;return{props_name:j,prop_def:$}}function FY(q){if(q.slots.length===0)return S6;let Q=q.slots.map(({name:Z,slot_props:Y,...H})=>{let V=H.default||Z===null?"default":i1(Z??""),K=d1(H.description,H.tags,H.deprecated);return`${K?`${K}
184
+ `:""}${i1(V)}: ${l0(Y)};`}).join(`
185
+ `);return q.slots.length===1?`{${Q}}`:`{
186
+ ${Q}
187
+ }`}var MY=()=>"WindowEventMap",$Y=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseover","mouseout","mouseenter","mouseleave","contextmenu","wheel","keydown","keyup","keypress","submit","change","input","focus","blur","focusin","focusout","reset","select","touchstart","touchend","touchmove","touchcancel","drag","dragstart","dragend","dragover","dragenter","dragleave","drop","pointerdown","pointerup","pointermove","pointerover","pointerout","pointerenter","pointerleave","pointercancel","gotpointercapture","lostpointercapture","play","pause","ended","volumechange","timeupdate","loadeddata","loadedmetadata","canplay","canplaythrough","seeking","seeked","playing","waiting","stalled","suspend","abort","error","emptied","ratechange","durationchange","loadstart","progress","loadend","animationstart","animationend","animationiteration","animationcancel","transitionstart","transitionend","transitionrun","transitioncancel","scroll","resize","load","unload","beforeunload","cut","copy","paste","compositionstart","compositionupdate","compositionend"]);function P6(q=Q1){if(QY.test(q))return q;return`CustomEvent<${q}>`}function LY(q){return $Y.has(q)}function g4(q){switch(q.type){case"dispatched":return P6(q.detail);case"forwarded":{let Q=q.element,Y=!(Q&&ZY.test(Q))||LY(q.name),H=q.detail!==void 0&&q.detail!=="undefined"&&!(q.detail==="null"&&Y),V=q.detail==="null"&&!Y;if(H||V)return P6(q.detail);else if(Y)return`${MY()}["${q.name}"]`;else return P6()}default:return q}}function AY(q){if(q.events.length===0)return tZ;let Q=q.events.map((Z)=>{let Y="",H=d1(Z.description,Z.tags,Z.deprecated);if(H)Y=`${H}
188
+ `;return`${Y}${i1(Z.name)}: ${g4(Z)};
189
+ `}).join("");return q.events.length===1?`{${Q}}`:`{
190
+ ${Q}}`}function CY(q,Q){return q.events.map((Z)=>{let Y=`on${Z.name}`;if(Q.has(Y))return;let H="",V=d1(Z.description,Z.tags,Z.deprecated);if(V)H=`${V}
191
+ `;return`
192
+ ${H}${i1(Y)}?: (event: ${g4(Z)}) => void;`}).filter((Z)=>Z!==void 0)}function wY(q){let Q=q.type==="() => any";if(q.type&&k4.test(q.type)&&!Q)return q.type;else if(q.params&&q.params.length>0){let Y=q.params.map((V)=>{let K=V.optional?"?":"";return`${V.name}${K}: ${V.type}`}).join(", "),H=q.returnType||Q1;return`(${Y}) => ${H}`}else if(q.returnType)return`() => ${q.returnType}`;else return q.type||Q1}function _4(q){return q.props.filter((Q)=>Q.isFunctionDeclaration||Q.kind==="const").map((Q)=>{let Z=T6(Q.description,Q.deprecated,Q.tags),Y=wY(Q);return`
193
+ ${b6(Z)}
194
+ ${Q.name}: ${Y};`}).join(`
195
+ `)}function IY(q){let Q=`${q.moduleName}Exports`,Z=_4({props:q.props});if(Z.trim()==="")return{exports_name:Q,exports_ref:Q,exports_def:`export type ${Q} = ${S6};`};let{declSuffix:Y,refSuffix:H}=RY(q.generics,Z);return{exports_name:Q,exports_ref:`${Q}${H}`,exports_def:`export type ${Q}${Y} = {${Z}
196
+ };`}}function PY(q){let Q=q.props.filter((Z)=>Z.bindable===!0||Z.binding==="writable").map((Z)=>`"${Z.name}"`);return Q.length===0?E8:Q.join(" | ")}function SY(q){let Q=q.moduleName==="default"?"$$Component":q.moduleName,Z=q.bindings===E8?'""':q.bindings;return`declare const ${Q}: Component<
197
+ ${q.propsRef},
198
+ ${q.exportsRef},
199
+ ${Z}
200
+ >;
201
+ export default ${Q};`}function DY(q){let Q=q.moduleName==="default"?"$$Component":q.moduleName,Z=`${Q}Component`,Y=q.bindings===E8?'""':q.bindings;return`interface ${Z} {
202
+ new ${q.generic}(
203
+ options: ComponentConstructorOptions<${q.propsRef}>
204
+ ): SvelteComponent<${q.propsRef}> & ${q.exportsRef};
205
+ ${q.generic}(
206
+ this: void,
207
+ internals: ComponentInternals,
208
+ props: ${q.propsRef}
209
+ ): {
210
+ $on?(type: string, callback: (e: any) => void): () => void;
211
+ $set?(props: Partial<${q.propsRef}>): void;
212
+ } & ${q.exportsRef};
213
+ element?: typeof HTMLElement;
214
+ z_$$bindings?: ${Y};
215
+ }
216
+ declare const ${Q}: ${Z};
217
+ export default ${Q};`}function NY(q){if(q.extends===void 0)return"";return`import type { ${q.extends.interface} } from ${q.extends.import};`}function TY(q){if(!q.componentComment)return"";if(!YY.test(q.componentComment))return u0(q.componentComment.trim());return`/*${q.componentComment.split(`
218
+ `).map((Q)=>`* ${Q}`).join(`
219
+ `)}
220
+ */`}function bY(q){return q.moduleExports.map((Q)=>{let Z=T6(Q.description,Q.deprecated,Q.tags),Y,H=Q.type&&k4.test(Q.type),V=Q.type==="() => any";if(Q.kind==="const"&&!H)Y=`export declare const ${Q.name}: ${Q.type||Q1};
221
+ `;else if(Q.params&&Q.params.length>0){let G=Q.params.map((R)=>{let j=R.optional?"?":"";return`${R.name}${j}: ${R.type}`}).join(", "),W=Q.returnType||Q1;Y=`export declare function ${Q.name}(${G}): ${W};`}else if(Q.returnType)Y=`export declare function ${Q.name}(): ${Q.returnType};`;else if(H&&Q.type&&!V){let[K,G,...W]=Q.type.split("=>"),R=W.map((j)=>` => ${j.trim()}`).join("");Y=`export declare function ${Q.name}${K.trimEnd()}: ${G.trim()}${R};`}else if(H&&Q.type){let[K,G,...W]=Q.type.split("=>"),R=W.map((j)=>` => ${j.trim()}`).join("");Y=`export declare function ${Q.name}${K.trimEnd()}: ${G.trim()}${R};`}else if(Q.kind==="const")Y=`export declare const ${Q.name}: ${Q.type||Q1};
222
+ `;else Y=`export type ${Q.name} = ${Q.type||Q1};`;return`
223
+ ${b6(Z)}
224
+ ${Y}`}).join(`
225
+ `)}var kY=120;function EY(q){let Z=`export default class ${q.moduleName==="default"?"":q.moduleName}${q.generic} extends SvelteComponentTyped<`,Y=[q.genericProps,q.events,q.slots];if(q.accessors.trim()===""&&Y.every((H)=>!H.includes(`
226
+ `))){let H=`${Z}${Y.join(", ")}> {}`;if(H.length<=kY)return H}return`${Z}
227
+ ${q.genericProps},
228
+ ${q.events},
229
+ ${q.slots}
230
+ > {
231
+ ${q.accessors}
232
+ }`}function vY(q,Q){let Z=r0(q),{moduleName:Y,typedefs:H,generics:V,props:K,moduleExports:G,slots:W,events:R,rest_props:j,extends:$,componentComment:M,contexts:B,syntaxMode:S}=q,I=Q?.format==="component",k=V!==null,{props_name:E,prop_def:x}=BY({moduleName:Y,props:K,rest_props:j,extends:$,generics:V,slots:W,canonicalPropNames:new Set(Z?.canonicalPropNames??[]),canonicalPropsType:Z?.canonicalPropsType,events:I&&S==="legacy"?R:void 0}),F=V?`<${V[1]}>`:"",P=V?`${E}<${V[0]}>`:E,N=bY({moduleExports:G}),m=c0({typedefs:H}),T=f4({contexts:B,generics:V}),J=(Z?.typeImportStatements??[]).join(`
233
+ `),X=(Z?.localTypeDeclarations??[]).join(`
234
+
235
+ `),{exports_ref:z,exports_def:U}=I?IY({props:K,moduleName:Y,generics:V}):{exports_ref:E8,exports_def:E8},L=I?PY({props:K}):E8,A=!VY.test(J)&&KY.test(`${x}
236
+ ${N}
237
+ ${m}
238
+ ${T}
239
+ ${X}
240
+ ${U}`),C=j?.type==="Element"&&(j.name!=="svelte:element"||j.name==="svelte:element"&&j.thisValue),b=j?.type==="Element"&&j.name==="svelte:element"&&!j.thisValue,w=[I?k?`import type { SvelteComponent, ComponentConstructorOptions, ComponentInternals${A?", Snippet":""} } from "svelte";`:`import type { Component${A?", Snippet":""} } from "svelte";`:`import { SvelteComponentTyped${A?", type Snippet":""} } from "svelte";`,C?'import type { SvelteHTMLElements } from "svelte/elements";':"",b?'import type { HTMLAttributes } from "svelte/elements";':"",J,NY({extends:$})].filter(Boolean).join(`
241
+ `),g=I?k?DY({moduleName:Y,generic:F,propsRef:P,exportsRef:z,bindings:L}):SY({moduleName:Y,propsRef:P,exportsRef:z,bindings:L}):EY({moduleName:Y,generic:F,genericProps:P,events:AY({events:R}),slots:FY({slots:W}),accessors:_4({props:K})}),l=[N,m,X,T,x,U,[TY({componentComment:M}),g].filter(Boolean).join(`
242
+ `)].map((i)=>i.trim()).filter(Boolean).join(`
243
+
244
+ `);return b4([w,l].filter(Boolean).join(`
245
+
246
+ `))}var k6=/`/g,d0=/\s+/g,g8="--",x4=`| Prop name | Required | Kind | Reactive | Binding | Type | Default value | Description |
247
+ | :- | :- | :- | :- | :- | :- | :- | :- |
248
+ `,u4=`| Slot name | Default | Props | Fallback | Description |
249
+ | :- | :- | :- | :- | :- |
250
+ `,m4=`| Event name | Type | Detail | Description |
251
+ | :- | :- | :- | :- |
252
+ `,l4=`| Name | Kind | Type | Description |
253
+ | :- | :- | :- | :- |
254
+ `,i0=/\|/g,hY=/</g,fY=/>/g,$1=/\n/g;function z1(q){if(q===void 0)return g8;return`<code>${q.replace(i0,"&#124;")}</code>`}function p1(q){return q.replace(hY,"&lt;").replace(fY,"&gt;")}function c4(q){if(q===void 0)return g8;return`<code>${q.replace(k6,"\\`").replace(i0,"&#124;")}</code>`}function p0(q,Q){if(Q===void 0)return q;let Z=typeof Q==="string"&&Q.trim().length>0?`: ${p1(Q).replace($1," ").replace(i0,"&#124;")}`:"";return`<s>${q}</s><br />**Deprecated**${Z}`}function o0(q){if(q===void 0||q.trim().length===0)return g8;return p1(q).replace($1,"<br />")}function d4(q){if(q===void 0||q==="{}")return g8;return z1(l0(q).replace($1," "))}function i4(q){if(q===void 0)return g8;return z1(p1(q).replace($1,"<br />"))}function p4(q,Q){let Z=[];if(q!==void 0&&q.trim().length>0)Z.push(p1(q));for(let{name:Y,body:H}of Q??[]){let V=H?.trim();Z.push(V?`@${Y} ${p1(V)}`:`@${Y}`)}if(Z.length===0)return g8;return Z.join(`
255
+ `).replace(i0,"&#124;").replace($1,"<br />")}function o4(q){if(q===void 0)return g8;return z1(q.replace($1," "))}function v6(q,Q,Z){if(q.append("h1","Component Index"),q.append("h2","Components").tableOfContents(),q.append("divider"),Z&&Z.length>0)yY(q,Z);let Y=c1(Q);for(let H of Y.components)gY(q,H)}function yY(q,Q){q.append("h2","Exports"),q.append("raw",l4);for(let Z of Q){let Y=(Z.type??Z.value)?.replace(d0," ").trim();q.append("raw",`| ${Z.name} | ${`<code>${Z.kind}</code>`} | ${z1(Y)} | ${o0(Z.description)} |
256
+ `)}q.append("raw",`
257
+ `),q.append("divider")}function E6(q,Q,Z,Y){if(Q.length>0)Z(),q.append("raw",`
258
+ `);else q.append("p",Y??"None.")}function gY(q,Q){if(q.append("h2",`\`${Q.moduleName}\``),Q.generics)q.append("p",`**Type parameters:** ${z1(`<${Q.generics[1]}>`)}`);if(Q.typedefs.length>0)q.append("h3","Types").append("raw",`\`\`\`ts
259
+ ${c0({typedefs:Q.typedefs})}
260
+ \`\`\`
261
+
262
+ `);q.append("h3","Props"),E6(q,Q.props,()=>{q.append("raw",x4);let Z=[...Q.props].sort((Y)=>{if(Y.reactive)return-1;if(Y.constant)return 1;return 0});for(let Y of Z)q.append("raw",`| ${p0(Y.name,Y.deprecated)} | ${Y.isRequired?"Yes":"No"} | ${`<code>${Y.kind}</code>`} | ${Y.reactive?"Yes":"No"} | ${Y.binding??"--"} | ${z1(Y.type)} | ${c4(Y.value)} | ${o0(Y.description)} |
263
+ `)}),q.append("h3","Slots"),E6(q,Q.slots,()=>{q.append("raw",u4);for(let Z of Q.slots)q.append("raw",`| ${p0(Z.default?g8:Z.name??g8,Z.deprecated)} | ${Z.default?"Yes":"No"} | ${d4(Z.slot_props)} | ${i4(Z.fallback)} | ${p4(Z.description,Z.tags)} |
264
+ `)}),q.append("h3","Events"),E6(q,Q.events,()=>{q.append("raw",m4);for(let Z of Q.events)q.append("raw",`| ${p0(Z.name,Z.deprecated)} | ${Z.type} | ${Z.type==="dispatched"?o4(Z.detail):g8} | ${o0(Z.description)} |
265
+ `)})}var _Y=new Set(["string","number","boolean"]);function xY(q){return q.map((Q)=>({kind:"field",name:Q.name,...Q.type?{type:{text:Q.type}}:{},...Q.value===void 0?{}:{default:Q.value},...Q.description?{description:Q.description}:{},...Q.deprecated===void 0?{}:{deprecated:Q.deprecated}}))}function uY(q){let Q=new Map;for(let Y of q){if(!Y.type||!_Y.has(Y.type.trim()))continue;let H=Y.name.toLowerCase(),V=Q.get(H);if(V)V.push(Y);else Q.set(H,[Y])}let Z=[];for(let[Y,H]of Q){if(H.length!==1)continue;let V=H[0];Z.push({name:Y,fieldName:V.name,type:{text:V.type},...V.value===void 0?{}:{default:V.value},...V.description?{description:V.description}:{}})}return Z}function mY(q){return q.filter((Q)=>Q.type==="dispatched").map((Q)=>({name:Q.name,type:{text:`CustomEvent<${Q.detail??"unknown"}>`},...Q.description?{description:Q.description}:{},...Q.deprecated===void 0?{}:{deprecated:Q.deprecated}}))}function lY(q){return q.map((Q)=>({name:Q.default?"":Q.name??"",...Q.description?{description:Q.description}:{},...Q.deprecated===void 0?{}:{deprecated:Q.deprecated}}))}function cY(q){let Q={kind:"class",name:q.moduleName,...q.componentComment?{description:q.componentComment}:{},members:xY(q.props),attributes:uY(q.props),events:mY(q.events),slots:lY(q.slots)};if(q.customElementTag)Q.tagName=q.customElementTag,Q.customElement=!0;return Q}function dY(q,Q){let Z=[{kind:"js",name:q.moduleName,declaration:{name:q.moduleName,module:Q}}];if(q.customElementTag)Z.push({kind:"custom-element-definition",name:q.customElementTag,declaration:{name:q.moduleName,module:Q}});return Z}function iY(q,Q={}){let Z=c1(q),Y=Q.resolveModulePath??((V)=>V.filePath);return{schemaVersion:"1.0.0",modules:Z.components.map((V)=>{let K=Y(V);return{kind:"javascript-module",path:K,declarations:[cY(V)],exports:dY(V,K)}})}}class h6{sourceParts=[];hasToC=!1;toc=[];get source(){return this.sourceParts.join("")}appendLineBreaks(){return this.sourceParts.push(`
266
+
267
+ `),this}append(q,Q){switch(q){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":{let Z=Number(q.slice(-1));if(this.sourceParts.push(`${"#".repeat(Z)} ${Q}`),this.hasToC&&q==="h2")this.toc.push({indent:0,raw:Q??""});break}case"quote":this.sourceParts.push(`> ${Q}`);break;case"p":this.sourceParts.push(Q??"");break;case"divider":this.sourceParts.push("---");break;case"raw":this.sourceParts.push(Q??"");break}if(q!=="raw")this.appendLineBreaks();return this}tableOfContents(){return this.sourceParts.push("<!-- __TOC__ -->"),this.hasToC=!0,this.appendLineBreaks(),this}end(){return this.sourceParts.join("").replace("<!-- __TOC__ -->",this.toc.map(({indent:Q,raw:Z})=>{return`${" ".repeat(Q)}- [${Z}](#${Z.toLowerCase().replace(k6,"").replace(d0,"-")})`}).join(`
268
+ `))}}class f6 extends h6{onAppend;constructor(q){super();this.onAppend=q.onAppend}append(q,Q){return super.append(q,Q),this.onAppend?.call(this,q,this),this}}function pY(q,Q){let Z=new f6({onAppend:(Y,H)=>{Q?.onAppend?.call(null,Y,H,q)}});return v6(Z,q),Z.end()}export{vY as writeTsDefinition,pY as writeMarkdownCore,v6 as renderComponentsToMarkdown,c0 as getTypeDefs,f4 as getContextDefs,l0 as formatTsProps,iY as buildCustomElementsManifest,c1 as buildComponentApiDocument,t4 as asNormalizedPath,z8 as ComponentParser,S4 as COMPONENT_API_SCHEMA_VERSION,f6 as BrowserWriterMarkdown};