sveld 0.36.4 → 0.36.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/browser.js CHANGED
@@ -1,204 +1,204 @@
1
- var X3=Object.defineProperty;var W3=(q)=>q;function V3(q,Q){this[q]=W3.bind(null,Q)}var G3=(q,Q)=>{for(var Z in Q)X3(q,Z,{get:Q[Z],enumerable:!0,configurable:!0,set:V3.bind(Q,Z)})};function z3(q){return q}class r1{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,j){if(q&&Q)if(Z!=null)q[Q][Z]=j;else q[Q]=j}remove(q,Q,Z){if(q&&Q)if(Z!==null&&Z!==void 0)q[Q].splice(Z,1);else delete q[Q]}}class t0 extends r1{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,j){if(q){if(this.enter){let J=this.should_skip,K=this.should_remove,W=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,q,Q,Z,j),this.replacement)q=this.replacement,this.replace(Q,Z,j,q);if(this.should_remove)this.remove(Q,Z,j);let V=this.should_skip,R=this.should_remove;if(this.should_skip=J,this.should_remove=K,this.replacement=W,V)return q;if(R)return null}let Y;for(Y in q){let J=q[Y];if(J&&typeof J==="object"){if(Array.isArray(J)){let K=J;for(let W=0;W<K.length;W+=1){let V=K[W];if(i6(V)){if(!this.visit(V,q,Y,W))W--}}}else if(i6(J))this.visit(J,q,Y,null)}}if(this.leave){let J=this.replacement,K=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,q,Q,Z,j),this.replacement)q=this.replacement,this.replace(Q,Z,j,q);if(this.should_remove)this.remove(Q,Z,j);let W=this.should_remove;if(this.replacement=J,this.should_remove=K,W)return null}}return q}}function i6(q){return q!==null&&typeof q==="object"&&"type"in q&&typeof q.type==="string"}function d8(q,{enter:Q,leave:Z}){return new t0(Q,Z).visit(q,null)}function h8(q){return typeof q==="object"&&q!==null}function d6(q){return h8(q)&&q.type==="VariableDeclaration"&&Array.isArray(q.declarations)}function J1(q){return h8(q)&&q.type==="Literal"}function m8(q){return h8(q)&&q.type==="Identifier"&&typeof q.name==="string"}function p6(q){return h8(q)&&q.type==="MemberExpression"}function t1(q){return h8(q)&&q.type==="ObjectExpression"&&Array.isArray(q.properties)}function O3(q){return h8(q)&&q.type==="CallExpression"}function l8(q,Q){if(!O3(q))return!1;return!!q.callee&&h8(q.callee)&&q.callee.type==="Identifier"&&q.callee.name===Q}function e8(q){if(h8(q)&&(q.type==="TSAsExpression"||q.type==="TSSatisfiesExpression")&&"expression"in q)return e8(q.expression);return q}function o6(q){if(h8(q)&&(q.type==="TSAsExpression"||q.type==="TSSatisfiesExpression")&&"typeAnnotation"in q)return q.typeAnnotation;return}function U3(q){return h8(q)&&q.type==="NewExpression"}function e0(q,Q){if(!U3(q))return!1;return!!q.callee&&h8(q.callee)&&q.callee.type==="Identifier"&&q.callee.name===Q}var s6={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 R3(q){return q in s6}function n6(q){if(R3(q))return s6[q];return"HTMLElement"}var e1=Symbol("sveld.parsedComponentTypeScriptMetadata");function q9(q){return q[e1]}var B3=/\w/;function F3(q,Q){let Z=q.trim();if(!Z.startsWith("{")||!Z.endsWith("}"))return;let j=Z.slice(1,-1),Y=[],J=0,K="";for(let W of j)if(W==="{"||W==="<"||W==="("||W==="[")J++,K+=W;else if(W==="}"||W===">"||W===")"||W==="]")J--,K+=W;else if((W===";"||W===",")&&J===0)Y.push(K.trim()),K="";else K+=W;if(K.trim())Y.push(K.trim());for(let W of Y){if(!W.startsWith(Q))continue;let V=W.slice(Q.length);if(V.length>0&&B3.test(V[0]))continue;let R=V.trimStart();if(R.startsWith("?"))R=R.slice(1).trimStart();if(R.startsWith(":"))return R.slice(1).trim()}return}function q0(q,Q,Z){let j=Z;if(j.computed||j.object?.type!=="Identifier"||j.property?.type!=="Identifier")return;let Y=j.object.name,J=j.property.name;if(!Y||!J)return;if(q.wholePropsLocals.has(Y))return Q.getPropTypeByLocalOrPublic(J);let K=Q.getPropTypeByLocalOrPublic(Y)??Q.findVariableTypeAndDescription(Y)?.type;if(!K)return;return F3(K,J)}function Q9(){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,valueImportBindingsByLocalName:new Map,pendingCallDefaultCandidates:[],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 p8(q,Q,Z,j,Y){q.diagnosticRecords.push({component:q.componentFilePath,kind:Q,name:Z,message:j,...Y?{source:Y}:{}})}var Z9=/[\r\n]+/g;function M3(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 a6(q,Q){if(!q.source||Q<0||Q>q.source.length)return;let Z=M3(q),j=0,Y=Z.length-1;while(j<=Y){let J=Math.floor((j+Y)/2),K=Z[J],W=Z[J+1]??Number.POSITIVE_INFINITY;if(Q<K)Y=J-1;else if(Q>=W)j=J+1;else return{line:J+1,column:Q-K}}return}function Q0(q,Q,Z){if(Q===void 0||Z===void 0||Z<Q)return;let j=a6(q,Q),Y=a6(q,Z);if(!j||!Y)return;return{start:j,end:Y}}function J8(q,Q){if(!Q||typeof Q!=="object")return;let Z="start"in Q&&typeof Q.start==="number"?Q.start:void 0,j="end"in Q&&typeof Q.end==="number"?Q.end:void 0;return Q0(q,Z,j)}function j9(q,Q,Z,j){if(!Z||Z.length===0||j===void 0)return;let Y=[...Z];while(Y.length>1){let $=Y[Y.length-1];if($.tokens.tag||!$.source.trim().endsWith("*/"))break;Y.pop()}let J=j;for(let $=0;$<Y[0].number-1;$++)J+=Q[$]?.source.length??0,J+=1;let K=Y[0],W=K.source.indexOf(K.tokens.tag??""),V=J+Math.max(W,0),R=j,z=Y[Y.length-1],M=z.number;for(let $=0;$<M-1;$++)R+=Q[$]?.source.length??0,R+=1;return R+=z.source.length,Q0(q,V,R)}function Q8(q,Q,Z){return q.source?.slice(Q,Z)}function Z0(q,Q){if(!Q||typeof Q!=="object")return;let Z="start"in Q&&typeof Q.start==="number"?Q.start:void 0,j="end"in Q&&typeof Q.end==="number"?Q.end:void 0;if(Z===void 0||j===void 0)return;return Q8(q,Z,j)?.replace(Z9," ")}function I8(q){return q===void 0||q===""?void 0:q}function I1(q,Q,Z,j){if(I8(Z)===void 0)return;if(q.trackPropLocalName(Z),Q.props.has(Z)){let Y=Q.props.get(Z);Q.props.set(Z,{...Y,...j})}else Q.props.set(Z,j)}function q1(q,Q,Z,j=0){let Y,J,K=!1;if(!Z||typeof Z!=="object"||!("type"in Z))return{value:Y,type:J,isFunction:K};let W=t6(q,Q,Z);if(Z.type==="ObjectExpression"||Z.type==="BinaryExpression"||Z.type==="ArrayExpression"||Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression"){let V=Z;if("start"in V&&"end"in V&&typeof V.start==="number"&&typeof V.end==="number")Y=Q8(Q,V.start,V.end)?.replace(Z9," ");if(J=Y,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")J="string"}if(Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression")J=Z7(Z),Y=r6(Q,Z)}else if(Z.type==="UnaryExpression"){let V=Z;if("start"in V&&"end"in V&&typeof V.start==="number"&&typeof V.end==="number")Y=Q8(Q,V.start,V.end);if(V.argument){if(typeof V.argument==="object"&&"type"in V.argument&&V.argument.type==="UnaryExpression")J=q1(q,Q,V.argument).type;else if(typeof V.argument==="object"&&"value"in V.argument)J=typeof V.argument.value}}else if(Z.type==="NewExpression"){let V=Z;if("start"in V&&"end"in V&&typeof V.start==="number"&&typeof V.end==="number")Y=Q8(Q,V.start,V.end);if(V.callee&&typeof V.callee==="object"&&"type"in V.callee&&V.callee.type==="Identifier"){let R=V.callee.name;if(R==="Date")J="Date";else if(R==="Map")J="Map<any, any>";else if(R==="Set")J="Set<any>";else if(R==="WeakMap")J="WeakMap<object, any>";else if(R==="WeakSet")J="WeakSet<object>";else if(R==="Array")J="any[]";else if(R==="RegExp"||R==="Regexp")J="RegExp";else if(R==="Error")J="Error";else J=R}}else if(Z.type==="CallExpression"){let V=Z;if("start"in V&&"end"in V&&typeof V.start==="number"&&typeof V.end==="number")Y=Q8(Q,V.start,V.end);let R=V.callee,z=R&&typeof R==="object"&&"type"in R&&R.type==="Identifier"?R.name:void 0;if((z==="$derived"||z==="$state")&&V.arguments.length===1&&j<5)return{...q1(q,Q,V.arguments[0],j+1),value:Y,defaultValue:W};if(z){let M=L3(q,Q,z);if(M)return{value:Y,type:void 0,isFunction:!1,defaultValue:W,resolvedType:M};if(Q.funcDecls.has(z)||w3(Q,z))return{value:Y,type:void 0,isFunction:!1,defaultValue:W,pendingCallDefault:{calleeName:z}};let $=Q.valueImportBindingsByLocalName.get(z);if($)return{value:Y,type:void 0,isFunction:!1,defaultValue:W,pendingCallDefault:{calleeName:z,importSource:$.source,importedName:$.importedName}}}return{value:Y,type:void 0,isFunction:!1,defaultValue:W,pendingCallDefault:{calleeName:z??$3(Q,R)}}}else if(Z.type==="Identifier"){let V=Z;if(j<5){let R=e6(Q,V.name);if(R){let z=q1(q,Q,R,j+1),M=q.resolveLocalVarJSDoc(V.name);return{...z,resolvedType:M?.type??z.resolvedType,resolvedDescription:M?.description??z.resolvedDescription,resolvedParams:M?.params??z.resolvedParams,resolvedReturnType:M?.returnType??z.resolvedReturnType}}if(Q.funcDecls.has(V.name)){let z=q.resolveLocalVarJSDoc(V.name),M=Q.funcDecls.get(V.name);return{value:M?r6(Q,M):void 0,type:void 0,isFunction:!0,defaultValue:M?t6(q,Q,M):void 0,resolvedType:z?.type??P3(z,M),resolvedDescription:z?.description,resolvedParams:z?.params,resolvedReturnType:z?.returnType}}}if("start"in V&&"end"in V&&typeof V.start==="number"&&typeof V.end==="number")Y=Q8(Q,V.start,V.end)}else if(Z.type==="MemberExpression"){let V=Z;if("start"in V&&"end"in V&&typeof V.start==="number"&&typeof V.end==="number")Y=Q8(Q,V.start,V.end);if(q.isNumericConstant(Z))J="number"}else if(Z.type==="TemplateLiteral"){let V=Z;if("start"in V&&"end"in V&&typeof V.start==="number"&&typeof V.end==="number")Y=Q8(Q,V.start,V.end);J="string"}else if("raw"in Z&&typeof Z.raw==="string"){if(Y=Z.raw,"value"in Z)J=Z.value==null?void 0:typeof Z.value}return{value:Y,type:J,isFunction:K,defaultValue:W}}function e6(q,Q){for(let Z of q.vars)for(let j of Z.declarations)if(j.id&&typeof j.id==="object"&&"type"in j.id&&j.id.type==="Identifier"&&"name"in j.id&&j.id.name===Q&&j.init)return j.init;return}function q7(q,Q){for(let Z of q.vars){if(Z.kind!=="const")continue;for(let j of Z.declarations)if(j.id&&typeof j.id==="object"&&"type"in j.id&&j.id.type==="Identifier"&&"name"in j.id&&j.id.name===Q&&j.init)return j.init}return}function $3(q,Q){if(Q&&typeof Q==="object"&&"start"in Q&&"end"in Q&&typeof Q.start==="number"&&typeof Q.end==="number")return Q8(q,Q.start,Q.end)??"call";return"call"}function L3(q,Q,Z){let j=q.resolveLocalVarJSDoc(Z);if(j?.returnType)return j.returnType;let Y=Q.funcDecls.get(Z)??Q7(Q,Z);if(!Y)return;let J=I3(Q,Y);if(J)return J;let K=A3(Q,Z);if(K)return K;let W=j7(Y);return W==="any"?void 0:W}function w3(q,Q){return Q7(q,Q)!==void 0}function Q7(q,Q){let Z=e6(q,Q);if(!Z||typeof Z!=="object"||!("type"in Z))return;if(Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression")return Z;return}function A3(q,Q){for(let Z of q.vars)for(let j of Z.declarations){let Y=j.id;if(!Y||typeof Y!=="object"||!("type"in Y)||Y.type!=="Identifier"||!("name"in Y)||Y.name!==Q)continue;let J=Y.typeAnnotation;if(J?.type!=="TSTypeAnnotation")return;let K=J.typeAnnotation;if(!K||typeof K.start!=="number"||typeof K.end!=="number")return;return C3(Q8(q,K.start,K.end))}return}function C3(q){if(!q)return;let Q=q.lastIndexOf("=>");if(Q===-1)return;return q.slice(Q+2).trim()||void 0}function I3(q,Q){let Z=Q.returnType;if(Z?.type!=="TSTypeAnnotation")return;let j=Z.typeAnnotation;if(!j||typeof j.start!=="number"||typeof j.end!=="number")return;return Q8(q,j.start,j.end)}function P3(q,Q){let Z=q?.returnType??"any",j=q?.params;if(j&&j.length>0)return`(${j.map((J)=>`${J.name}${J.optional?"?":""}: ${J.type}`).join(", ")}) => ${Z}`;if(q?.returnType)return`() => ${Z}`;if(Q)return Z7(Q);return"(...args: any[]) => any"}function Z7(q){return`(${S3(q)}) => ${j7(q)}`}function S3(q){let Q=q.params;if(!Array.isArray(Q)||Q.length===0)return"...args: any[]";let Z=[];for(let j of Q)if(j&&typeof j==="object"&&"type"in j&&j.type==="Identifier"&&"name"in j&&typeof j.name==="string")Z.push(`${j.name}: any`);else return"...args: any[]";return Z.join(", ")}function j7(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=D3(Q),Z.length===0)return"any"}else Z=[Q];let j=null;for(let Y of Z){let J=N3(Y);if(!J)return"any";if(j===null)j=J;else if(j!==J)return"any"}return j??"any"}function D3(q){let Q=[];return d8(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 N3(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 Y7(q){if(l8(q,"$bindable"))return{init:q.arguments[0],bindable:!0};return{init:q,bindable:!1}}function b3(q,Q){let Z=Q.params;if(!Array.isArray(Z)||Z.length===0)return"";let j=Z[0],Y=Z[Z.length-1];if(typeof j.start!=="number"||typeof Y.end!=="number")return"";return Q8(q,j.start,Y.end)??""}function r6(q,Q){if(Q.generator)return;let Z=Q.body;if(!Z||typeof Z!=="object"||!("type"in Z))return;let j=b3(q,Q),Y=Q.async?"async ":"",J=(W,V)=>W&&typeof W==="object"&&("type"in W)&&W.type==="ObjectExpression"?`(${V})`:V;if(Z.type!=="BlockStatement"){let W=Z0(q,Z);return W===void 0?void 0:`${Y}(${j}) => ${J(Z,W)}`}let K=Z.body;if(K.length===0)return`${Y}(${j}) => {}`;if(K.length===1){let W=K[0];if(W&&typeof W==="object"&&"type"in W&&W.type==="ReturnStatement"){let V=W.argument;if(V){let R=Z0(q,V);if(R!==void 0)return`${Y}(${j}) => ${J(V,R)}`}}}return}function t6(q,Q,Z){let j=Z0(Q,Z);if(!j||!Z||typeof Z!=="object"||!("type"in Z))return;let Y="expression";if(Z.type==="Literal"||Z.type==="UnaryExpression")Y="literal";else if(Z.type==="TemplateLiteral")Y=Z.expressions.length===0?"literal":"expression";else if(Z.type==="ArrayExpression")Y="array";else if(Z.type==="ObjectExpression")Y="object";else if(Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression"||Z.type==="FunctionDeclaration")Y="function";let J={raw:j,kind:Y};if(Y==="literal"||Y==="array"||Y==="object"){let K=Y9(q,Z);if(K.ok)J.value=K.value}return J}function Y9(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,j=Z.argument;if(!j||typeof j!=="object"||!("type"in j)||j.type!=="Literal")return{ok:!1};let Y=j.value;if(typeof Y==="number"){if(Z.operator==="-")return{ok:!0,value:-Y};if(Z.operator==="+")return{ok:!0,value:Y}}if(typeof Y==="boolean"&&Z.operator==="!")return{ok:!0,value:!Y};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,j=[];for(let Y of Z.elements){if(!Y)return{ok:!1};let J=Y9(q,Y);if(!J.ok)return{ok:!1};j.push(J.value)}return{ok:!0,value:j}}if(Q.type==="ObjectExpression"){let Z=Q,j={};for(let Y of Z.properties){if(Y.type!=="Property"||Y.computed)return{ok:!1};let J=q.getPropertyName(Y.key);if(!J)return{ok:!1};let K=Y9(q,Y.value);if(!K.ok)return{ok:!1};j[J]=K.value}return{ok:!0,value:j}}return{ok:!1}}var k3=/[-_.:/\s]+/;function H9(q){return`${q.split(k3).map((j)=>j.charAt(0).toUpperCase()+j.slice(1)).join("")}Context`}function T3(q,Q,Z,j){if(!Z||typeof Z!=="object"||!("type"in Z))return null;if(Z.type==="ObjectExpression"){let Y=[];if(!t1(Z))return null;let J=Z;for(let K of J.properties){if(K.type!=="Property")continue;let W=Q.getPropertyName(K.key);if(!W)continue;let V="any",R;if(m8(K.value)){let z=K.value.name,M=Q.findVariableTypeAndDescription(z);if(M)V=M.type,R=M.description;else p8(q,"context-any-type",W,`Context "${j}" property "${W}" has no type annotation; defaulted to "any".`,J8(q,K))}else if(K.value&&typeof K.value==="object"&&"type"in K.value&&(K.value.type==="ArrowFunctionExpression"||K.value.type==="FunctionExpression"))V=`(${K.value.params?.map(($)=>{if(m8($))return`${$.name||"arg"}: any`;return"arg: any"}).join(", ")||""}) => any`;else if(J1(K.value))V=K.value.value==null?"null":typeof K.value.value;Y.push({name:W,type:V,description:R,optional:!1})}return{key:j,typeName:H9(j),properties:Y,description:void 0}}else if(m8(Z)){let Y=Z.name,J=Q.findVariableTypeAndDescription(Y);if(J)return{key:j,typeName:H9(j),properties:[{name:Y,type:J.type,description:J.description,optional:!1}]};return p8(q,"context-any-type",Y,`Context "${j}" variable "${Y}" has no type annotation; defaulted to "any".`,J8(q,Z)),{key:j,typeName:H9(j),properties:[{name:Y,type:"any",description:void 0,optional:!1}]}}return null}function H7(q){let Q=q.callee;if(!Q||typeof Q!=="object"||!("type"in Q))return null;let Z=Q.type==="Identifier"&&Q.name==="Symbol",j=Q.type==="MemberExpression"&&!Q.computed&&Q.object.type==="Identifier"&&Q.object.name==="Symbol"&&Q.property.type==="Identifier"&&Q.property.name==="for";if(!Z&&!j)return null;let Y=q.arguments[0];if(!Y||typeof Y!=="object"||!("type"in Y))return"";if(Y.type==="Literal"&&typeof Y.value==="string")return Y.value;if(Y.type==="TemplateLiteral"&&Y.quasis?.length===1)return Y.quasis[0].value.cooked??"";return""}function K7(q,Q,Z=0){if(!Q||typeof Q!=="object"||!("type"in Q))return null;let j=Q;if(j.type==="Literal")return typeof j.value==="string"?j.value:j.value==null?null:String(j.value);if(j.type==="TemplateLiteral"){if(j.quasis?.length===1){let Y=j.quasis[0].value.cooked;return Y==null?null:Y}return null}if(j.type==="CallExpression"||j.type==="NewExpression")return H7(j);if(j.type==="Identifier"){if(Z>=5)return null;let Y=q7(q,j.name);if(Y&&typeof Y==="object"&&"type"in Y){let J=Y;if((J.type==="CallExpression"||J.type==="NewExpression")&&H7(J)==="")return j.name;return K7(q,J,Z+1)}return null}return null}function J7(q,Q,Z,j){if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="CallExpression")return;let Y=Z,J=Y.arguments[0];if(!J)return;let K=K7(q,J);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 W=Y.arguments[1];if(!W)return;let V=T3(q,Q,W,K);if(V&&!q.contexts.has(K))q.contexts.set(K,V)}function K9(q){return typeof q==="string"?JSON.stringify(q):String(q)}function P1(q,{name:Q,detail:Z,has_argument:j,description:Y,deprecated:J,tags:K,source:W}){if(Q===void 0)return;let V=!j&&!Z?"null":I8(Z),R=Y,z=q.events.get(Q);if(z?.type==="forwarded")q.events.set(Q,{type:"dispatched",name:Q,detail:V,description:R||z.description,deprecated:J??z.deprecated,tags:K??z.tags,source:W||z.source});else if(z){let M=z.tags??K;q.events.set(Q,{...z,detail:z.detail===void 0?V:z.detail,description:z.description||R,deprecated:z.deprecated??J,tags:M,source:W||z.source})}else q.events.set(Q,{type:"dispatched",name:Q,detail:V,description:R,deprecated:J,tags:K,source:W})}function X7(q,Q){let Z=Q.arguments[0],j=e0(Z,"CustomEvent");if(!j&&!e0(Z,"Event"))return;let Y=Z.arguments[0],J=J1(Y)?Y.value:void 0;if(J==null)return;let K=j?Z.arguments[1]:void 0,W=!1,V;if(t1(K)){let R=K.properties.find((z)=>z.type==="Property"&&m8(z.key)&&z.key.name==="detail");if(R?.type==="Property")W=!0,V=J1(R.value)?R.value.value:void 0}return P1(q,{name:String(J),detail:V==null?"":K9(V),has_argument:W,source:J8(q,Q)}),String(J)}function J9(q,Q,Z=!1){if(q.length===0)return"null";let j=q.map(({name:Y,type:J,description:K,optional:W,default:V})=>{let R=W?"?":"",z=K||"";if(V&&z)z=`${z} @default ${V}`;else if(V)z=`@default ${V}`;if(z){if(Z)return`/** ${z} */
1
+ var z3=Object.defineProperty;var O3=(q)=>q;function U3(q,Q){this[q]=O3.bind(null,Q)}var R3=(q,Q)=>{for(var Z in Q)z3(q,Z,{get:Q[Z],enumerable:!0,configurable:!0,set:U3.bind(Q,Z)})};function B3(q){return q}class t1{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,j){if(q&&Q)if(Z!=null)q[Q][Z]=j;else q[Q]=j}remove(q,Q,Z){if(q&&Q)if(Z!==null&&Z!==void 0)q[Q].splice(Z,1);else delete q[Q]}}class q9 extends t1{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,j){if(q){if(this.enter){let J=this.should_skip,K=this.should_remove,W=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,q,Q,Z,j),this.replacement)q=this.replacement,this.replace(Q,Z,j,q);if(this.should_remove)this.remove(Q,Z,j);let V=this.should_skip,R=this.should_remove;if(this.should_skip=J,this.should_remove=K,this.replacement=W,V)return q;if(R)return null}let Y;for(Y in q){let J=q[Y];if(J&&typeof J==="object"){if(Array.isArray(J)){let K=J;for(let W=0;W<K.length;W+=1){let V=K[W];if(p6(V)){if(!this.visit(V,q,Y,W))W--}}}else if(p6(J))this.visit(J,q,Y,null)}}if(this.leave){let J=this.replacement,K=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,q,Q,Z,j),this.replacement)q=this.replacement,this.replace(Q,Z,j,q);if(this.should_remove)this.remove(Q,Z,j);let W=this.should_remove;if(this.replacement=J,this.should_remove=K,W)return null}}return q}}function p6(q){return q!==null&&typeof q==="object"&&"type"in q&&typeof q.type==="string"}function h8(q,{enter:Q,leave:Z}){return new q9(Q,Z).visit(q,null)}function f8(q){return typeof q==="object"&&q!==null}function o6(q){return f8(q)&&q.type==="VariableDeclaration"&&Array.isArray(q.declarations)}function J1(q){return f8(q)&&q.type==="Literal"}function l8(q){return f8(q)&&q.type==="Identifier"&&typeof q.name==="string"}function s6(q){return f8(q)&&q.type==="MemberExpression"}function e1(q){return f8(q)&&q.type==="ObjectExpression"&&Array.isArray(q.properties)}function F3(q){return f8(q)&&q.type==="CallExpression"}function c8(q,Q){if(!F3(q))return!1;return!!q.callee&&f8(q.callee)&&q.callee.type==="Identifier"&&q.callee.name===Q}function e8(q){if(f8(q)&&(q.type==="TSAsExpression"||q.type==="TSSatisfiesExpression")&&"expression"in q)return e8(q.expression);return q}function n6(q){if(f8(q)&&(q.type==="TSAsExpression"||q.type==="TSSatisfiesExpression")&&"typeAnnotation"in q)return q.typeAnnotation;return}function M3(q){return f8(q)&&q.type==="NewExpression"}function Q9(q,Q){if(!M3(q))return!1;return!!q.callee&&f8(q.callee)&&q.callee.type==="Identifier"&&q.callee.name===Q}var a6={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 $3(q){return q in a6}function r6(q){if($3(q))return a6[q];return"HTMLElement"}var q0=Symbol("sveld.parsedComponentTypeScriptMetadata");function Z9(q){return q[q0]}var L3=/\w/;function w3(q,Q){let Z=q.trim();if(!Z.startsWith("{")||!Z.endsWith("}"))return;let j=Z.slice(1,-1),Y=[],J=0,K="";for(let W of j)if(W==="{"||W==="<"||W==="("||W==="[")J++,K+=W;else if(W==="}"||W===">"||W===")"||W==="]")J--,K+=W;else if((W===";"||W===",")&&J===0)Y.push(K.trim()),K="";else K+=W;if(K.trim())Y.push(K.trim());for(let W of Y){if(!W.startsWith(Q))continue;let V=W.slice(Q.length);if(V.length>0&&L3.test(V[0]))continue;let R=V.trimStart();if(R.startsWith("?"))R=R.slice(1).trimStart();if(R.startsWith(":"))return R.slice(1).trim()}return}function Q0(q,Q,Z){let j=Z;if(j.computed||j.object?.type!=="Identifier"||j.property?.type!=="Identifier")return;let Y=j.object.name,J=j.property.name;if(!Y||!J)return;if(q.wholePropsLocals.has(Y))return Q.getPropTypeByLocalOrPublic(J);let K=Q.getPropTypeByLocalOrPublic(Y)??Q.findVariableTypeAndDescription(Y)?.type;if(!K)return;return w3(K,J)}function j9(){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,valueImportBindingsByLocalName:new Map,pendingCallDefaultCandidates:[],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 p8(q,Q,Z,j,Y){q.diagnosticRecords.push({component:q.componentFilePath,kind:Q,name:Z,message:j,...Y?{source:Y}:{}})}var Y9=/[\r\n]+/g;function A3(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 t6(q,Q){if(!q.source||Q<0||Q>q.source.length)return;let Z=A3(q),j=0,Y=Z.length-1;while(j<=Y){let J=Math.floor((j+Y)/2),K=Z[J],W=Z[J+1]??Number.POSITIVE_INFINITY;if(Q<K)Y=J-1;else if(Q>=W)j=J+1;else return{line:J+1,column:Q-K}}return}function Z0(q,Q,Z){if(Q===void 0||Z===void 0||Z<Q)return;let j=t6(q,Q),Y=t6(q,Z);if(!j||!Y)return;return{start:j,end:Y}}function J8(q,Q){if(!Q||typeof Q!=="object")return;let Z="start"in Q&&typeof Q.start==="number"?Q.start:void 0,j="end"in Q&&typeof Q.end==="number"?Q.end:void 0;return Z0(q,Z,j)}function H9(q,Q,Z,j){if(!Z||Z.length===0||j===void 0)return;let Y=[...Z];while(Y.length>1){let $=Y[Y.length-1];if($.tokens.tag||!$.source.trim().endsWith("*/"))break;Y.pop()}let J=j;for(let $=0;$<Y[0].number-1;$++)J+=Q[$]?.source.length??0,J+=1;let K=Y[0],W=K.source.indexOf(K.tokens.tag??""),V=J+Math.max(W,0),R=j,z=Y[Y.length-1],M=z.number;for(let $=0;$<M-1;$++)R+=Q[$]?.source.length??0,R+=1;return R+=z.source.length,Z0(q,V,R)}function Z8(q,Q,Z){return q.source?.slice(Q,Z)}function j0(q,Q){if(!Q||typeof Q!=="object")return;let Z="start"in Q&&typeof Q.start==="number"?Q.start:void 0,j="end"in Q&&typeof Q.end==="number"?Q.end:void 0;if(Z===void 0||j===void 0)return;return Z8(q,Z,j)?.replace(Y9," ")}function I8(q){return q===void 0||q===""?void 0:q}function I1(q,Q,Z,j){if(I8(Z)===void 0)return;if(q.trackPropLocalName(Z),Q.props.has(Z)){let Y=Q.props.get(Z);Q.props.set(Z,{...Y,...j})}else Q.props.set(Z,j)}function q1(q,Q,Z,j=0){let Y,J,K=!1;if(!Z||typeof Z!=="object"||!("type"in Z))return{value:Y,type:J,isFunction:K};let W=q7(q,Q,Z);if(Z.type==="ObjectExpression"||Z.type==="BinaryExpression"||Z.type==="ArrayExpression"||Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression"){let V=Z;if("start"in V&&"end"in V&&typeof V.start==="number"&&typeof V.end==="number")Y=Z8(Q,V.start,V.end)?.replace(Y9," ");if(J=Y,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")J="string"}if(Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression")J=Y7(Z),Y=e6(Q,Z)}else if(Z.type==="UnaryExpression"){let V=Z;if("start"in V&&"end"in V&&typeof V.start==="number"&&typeof V.end==="number")Y=Z8(Q,V.start,V.end);if(V.argument){if(typeof V.argument==="object"&&"type"in V.argument&&V.argument.type==="UnaryExpression")J=q1(q,Q,V.argument).type;else if(typeof V.argument==="object"&&"value"in V.argument)J=typeof V.argument.value}}else if(Z.type==="NewExpression"){let V=Z;if("start"in V&&"end"in V&&typeof V.start==="number"&&typeof V.end==="number")Y=Z8(Q,V.start,V.end);if(V.callee&&typeof V.callee==="object"&&"type"in V.callee&&V.callee.type==="Identifier"){let R=V.callee.name;if(R==="Date")J="Date";else if(R==="Map")J="Map<any, any>";else if(R==="Set")J="Set<any>";else if(R==="WeakMap")J="WeakMap<object, any>";else if(R==="WeakSet")J="WeakSet<object>";else if(R==="Array")J="any[]";else if(R==="RegExp"||R==="Regexp")J="RegExp";else if(R==="Error")J="Error";else J=R}}else if(Z.type==="CallExpression"){let V=Z;if("start"in V&&"end"in V&&typeof V.start==="number"&&typeof V.end==="number")Y=Z8(Q,V.start,V.end);let R=V.callee,z=R&&typeof R==="object"&&"type"in R&&R.type==="Identifier"?R.name:void 0;if((z==="$derived"||z==="$state")&&V.arguments.length===1&&j<5)return{...q1(q,Q,V.arguments[0],j+1),value:Y,defaultValue:W};if(z){let M=I3(q,Q,z);if(M)return{value:Y,type:void 0,isFunction:!1,defaultValue:W,resolvedType:M};if(Q.funcDecls.has(z)||P3(Q,z))return{value:Y,type:void 0,isFunction:!1,defaultValue:W,pendingCallDefault:{calleeName:z}};let $=Q.valueImportBindingsByLocalName.get(z);if($)return{value:Y,type:void 0,isFunction:!1,defaultValue:W,pendingCallDefault:{calleeName:z,importSource:$.source,importedName:$.importedName}}}return{value:Y,type:void 0,isFunction:!1,defaultValue:W,pendingCallDefault:{calleeName:z??C3(Q,R)}}}else if(Z.type==="Identifier"){let V=Z;if(j<5){let R=Q7(Q,V.name);if(R){let z=q1(q,Q,R,j+1),M=q.resolveLocalVarJSDoc(V.name);return{...z,resolvedType:M?.type??z.resolvedType,resolvedDescription:M?.description??z.resolvedDescription,resolvedParams:M?.params??z.resolvedParams,resolvedReturnType:M?.returnType??z.resolvedReturnType}}if(Q.funcDecls.has(V.name)){let z=q.resolveLocalVarJSDoc(V.name),M=Q.funcDecls.get(V.name);return{value:M?e6(Q,M):void 0,type:void 0,isFunction:!0,defaultValue:M?q7(q,Q,M):void 0,resolvedType:z?.type??b3(z,M),resolvedDescription:z?.description,resolvedParams:z?.params,resolvedReturnType:z?.returnType}}}if("start"in V&&"end"in V&&typeof V.start==="number"&&typeof V.end==="number")Y=Z8(Q,V.start,V.end)}else if(Z.type==="MemberExpression"){let V=Z;if("start"in V&&"end"in V&&typeof V.start==="number"&&typeof V.end==="number")Y=Z8(Q,V.start,V.end);if(q.isNumericConstant(Z))J="number"}else if(Z.type==="TemplateLiteral"){let V=Z;if("start"in V&&"end"in V&&typeof V.start==="number"&&typeof V.end==="number")Y=Z8(Q,V.start,V.end);J="string"}else if("raw"in Z&&typeof Z.raw==="string"){if(Y=Z.raw,"value"in Z)J=Z.value==null?void 0:typeof Z.value}return{value:Y,type:J,isFunction:K,defaultValue:W}}function Q7(q,Q){for(let Z of q.vars)for(let j of Z.declarations)if(j.id&&typeof j.id==="object"&&"type"in j.id&&j.id.type==="Identifier"&&"name"in j.id&&j.id.name===Q&&j.init)return j.init;return}function Z7(q,Q){for(let Z of q.vars){if(Z.kind!=="const")continue;for(let j of Z.declarations)if(j.id&&typeof j.id==="object"&&"type"in j.id&&j.id.type==="Identifier"&&"name"in j.id&&j.id.name===Q&&j.init)return j.init}return}function C3(q,Q){if(Q&&typeof Q==="object"&&"start"in Q&&"end"in Q&&typeof Q.start==="number"&&typeof Q.end==="number")return Z8(q,Q.start,Q.end)??"call";return"call"}function I3(q,Q,Z){let j=q.resolveLocalVarJSDoc(Z);if(j?.returnType)return j.returnType;let Y=Q.funcDecls.get(Z)??j7(Q,Z);if(!Y)return;let J=N3(Q,Y);if(J)return J;let K=S3(Q,Z);if(K)return K;let W=H7(Y);return W==="any"?void 0:W}function P3(q,Q){return j7(q,Q)!==void 0}function j7(q,Q){let Z=Q7(q,Q);if(!Z||typeof Z!=="object"||!("type"in Z))return;if(Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression")return Z;return}function S3(q,Q){for(let Z of q.vars)for(let j of Z.declarations){let Y=j.id;if(!Y||typeof Y!=="object"||!("type"in Y)||Y.type!=="Identifier"||!("name"in Y)||Y.name!==Q)continue;let J=Y.typeAnnotation;if(J?.type!=="TSTypeAnnotation")return;let K=J.typeAnnotation;if(!K||typeof K.start!=="number"||typeof K.end!=="number")return;return D3(Z8(q,K.start,K.end))}return}function D3(q){if(!q)return;let Q=q.lastIndexOf("=>");if(Q===-1)return;return q.slice(Q+2).trim()||void 0}function N3(q,Q){let Z=Q.returnType;if(Z?.type!=="TSTypeAnnotation")return;let j=Z.typeAnnotation;if(!j||typeof j.start!=="number"||typeof j.end!=="number")return;return Z8(q,j.start,j.end)}function b3(q,Q){let Z=q?.returnType??"any",j=q?.params;if(j&&j.length>0)return`(${j.map((J)=>`${J.name}${J.optional?"?":""}: ${J.type}`).join(", ")}) => ${Z}`;if(q?.returnType)return`() => ${Z}`;if(Q)return Y7(Q);return"(...args: any[]) => any"}function Y7(q){return`(${k3(q)}) => ${H7(q)}`}function k3(q){let Q=q.params;if(!Array.isArray(Q)||Q.length===0)return"...args: any[]";let Z=[];for(let j of Q)if(j&&typeof j==="object"&&"type"in j&&j.type==="Identifier"&&"name"in j&&typeof j.name==="string")Z.push(`${j.name}: any`);else return"...args: any[]";return Z.join(", ")}function H7(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=T3(Q),Z.length===0)return"any"}else Z=[Q];let j=null;for(let Y of Z){let J=E3(Y);if(!J)return"any";if(j===null)j=J;else if(j!==J)return"any"}return j??"any"}function T3(q){let Q=[];return h8(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 E3(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 K7(q){if(c8(q,"$bindable"))return{init:q.arguments[0],bindable:!0};return{init:q,bindable:!1}}function v3(q,Q){let Z=Q.params;if(!Array.isArray(Z)||Z.length===0)return"";let j=Z[0],Y=Z[Z.length-1];if(typeof j.start!=="number"||typeof Y.end!=="number")return"";return Z8(q,j.start,Y.end)??""}function e6(q,Q){if(Q.generator)return;let Z=Q.body;if(!Z||typeof Z!=="object"||!("type"in Z))return;let j=v3(q,Q),Y=Q.async?"async ":"",J=(W,V)=>W&&typeof W==="object"&&("type"in W)&&W.type==="ObjectExpression"?`(${V})`:V;if(Z.type!=="BlockStatement"){let W=j0(q,Z);return W===void 0?void 0:`${Y}(${j}) => ${J(Z,W)}`}let K=Z.body;if(K.length===0)return`${Y}(${j}) => {}`;if(K.length===1){let W=K[0];if(W&&typeof W==="object"&&"type"in W&&W.type==="ReturnStatement"){let V=W.argument;if(V){let R=j0(q,V);if(R!==void 0)return`${Y}(${j}) => ${J(V,R)}`}}}return}function q7(q,Q,Z){let j=j0(Q,Z);if(!j||!Z||typeof Z!=="object"||!("type"in Z))return;let Y="expression";if(Z.type==="Literal"||Z.type==="UnaryExpression")Y="literal";else if(Z.type==="TemplateLiteral")Y=Z.expressions.length===0?"literal":"expression";else if(Z.type==="ArrayExpression")Y="array";else if(Z.type==="ObjectExpression")Y="object";else if(Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression"||Z.type==="FunctionDeclaration")Y="function";let J={raw:j,kind:Y};if(Y==="literal"||Y==="array"||Y==="object"){let K=K9(q,Z);if(K.ok)J.value=K.value}return J}function K9(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,j=Z.argument;if(!j||typeof j!=="object"||!("type"in j)||j.type!=="Literal")return{ok:!1};let Y=j.value;if(typeof Y==="number"){if(Z.operator==="-")return{ok:!0,value:-Y};if(Z.operator==="+")return{ok:!0,value:Y}}if(typeof Y==="boolean"&&Z.operator==="!")return{ok:!0,value:!Y};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,j=[];for(let Y of Z.elements){if(!Y)return{ok:!1};let J=K9(q,Y);if(!J.ok)return{ok:!1};j.push(J.value)}return{ok:!0,value:j}}if(Q.type==="ObjectExpression"){let Z=Q,j={};for(let Y of Z.properties){if(Y.type!=="Property"||Y.computed)return{ok:!1};let J=q.getPropertyName(Y.key);if(!J)return{ok:!1};let K=K9(q,Y.value);if(!K.ok)return{ok:!1};j[J]=K.value}return{ok:!0,value:j}}return{ok:!1}}var h3=/[-_.:/\s]+/;function J9(q){return`${q.split(h3).map((j)=>j.charAt(0).toUpperCase()+j.slice(1)).join("")}Context`}function f3(q,Q,Z,j){if(!Z||typeof Z!=="object"||!("type"in Z))return null;if(Z.type==="ObjectExpression"){let Y=[];if(!e1(Z))return null;let J=Z;for(let K of J.properties){if(K.type!=="Property")continue;let W=Q.getPropertyName(K.key);if(!W)continue;let V="any",R;if(l8(K.value)){let z=K.value.name,M=Q.findVariableTypeAndDescription(z);if(M)V=M.type,R=M.description;else p8(q,"context-any-type",W,`Context "${j}" property "${W}" has no type annotation; defaulted to "any".`,J8(q,K))}else if(K.value&&typeof K.value==="object"&&"type"in K.value&&(K.value.type==="ArrowFunctionExpression"||K.value.type==="FunctionExpression"))V=`(${K.value.params?.map(($)=>{if(l8($))return`${$.name||"arg"}: any`;return"arg: any"}).join(", ")||""}) => any`;else if(J1(K.value))V=K.value.value==null?"null":typeof K.value.value;Y.push({name:W,type:V,description:R,optional:!1})}return{key:j,typeName:J9(j),properties:Y,description:void 0}}else if(l8(Z)){let Y=Z.name,J=Q.findVariableTypeAndDescription(Y);if(J)return{key:j,typeName:J9(j),properties:[{name:Y,type:J.type,description:J.description,optional:!1}]};return p8(q,"context-any-type",Y,`Context "${j}" variable "${Y}" has no type annotation; defaulted to "any".`,J8(q,Z)),{key:j,typeName:J9(j),properties:[{name:Y,type:"any",description:void 0,optional:!1}]}}return null}function J7(q){let Q=q.callee;if(!Q||typeof Q!=="object"||!("type"in Q))return null;let Z=Q.type==="Identifier"&&Q.name==="Symbol",j=Q.type==="MemberExpression"&&!Q.computed&&Q.object.type==="Identifier"&&Q.object.name==="Symbol"&&Q.property.type==="Identifier"&&Q.property.name==="for";if(!Z&&!j)return null;let Y=q.arguments[0];if(!Y||typeof Y!=="object"||!("type"in Y))return"";if(Y.type==="Literal"&&typeof Y.value==="string")return Y.value;if(Y.type==="TemplateLiteral"&&Y.quasis?.length===1)return Y.quasis[0].value.cooked??"";return""}function X7(q,Q,Z=0){if(!Q||typeof Q!=="object"||!("type"in Q))return null;let j=Q;if(j.type==="Literal")return typeof j.value==="string"?j.value:j.value==null?null:String(j.value);if(j.type==="TemplateLiteral"){if(j.quasis?.length===1){let Y=j.quasis[0].value.cooked;return Y==null?null:Y}return null}if(j.type==="CallExpression"||j.type==="NewExpression")return J7(j);if(j.type==="Identifier"){if(Z>=5)return null;let Y=Z7(q,j.name);if(Y&&typeof Y==="object"&&"type"in Y){let J=Y;if((J.type==="CallExpression"||J.type==="NewExpression")&&J7(J)==="")return j.name;return X7(q,J,Z+1)}return null}return null}function W7(q,Q,Z,j){if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="CallExpression")return;let Y=Z,J=Y.arguments[0];if(!J)return;let K=X7(q,J);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 W=Y.arguments[1];if(!W)return;let V=f3(q,Q,W,K);if(V&&!q.contexts.has(K))q.contexts.set(K,V)}function X9(q){return typeof q==="string"?JSON.stringify(q):String(q)}function P1(q,{name:Q,detail:Z,has_argument:j,description:Y,deprecated:J,tags:K,source:W}){if(Q===void 0)return;let V=!j&&!Z?"null":I8(Z),R=Y,z=q.events.get(Q);if(z?.type==="forwarded")q.events.set(Q,{type:"dispatched",name:Q,detail:V,description:R||z.description,deprecated:J??z.deprecated,tags:K??z.tags,source:W||z.source});else if(z){let M=z.tags??K;q.events.set(Q,{...z,detail:z.detail===void 0?V:z.detail,description:z.description||R,deprecated:z.deprecated??J,tags:M,source:W||z.source})}else q.events.set(Q,{type:"dispatched",name:Q,detail:V,description:R,deprecated:J,tags:K,source:W})}function V7(q,Q){let Z=Q.arguments[0],j=Q9(Z,"CustomEvent");if(!j&&!Q9(Z,"Event"))return;let Y=Z.arguments[0],J=J1(Y)?Y.value:void 0;if(J==null)return;let K=j?Z.arguments[1]:void 0,W=!1,V;if(e1(K)){let R=K.properties.find((z)=>z.type==="Property"&&l8(z.key)&&z.key.name==="detail");if(R?.type==="Property")W=!0,V=J1(R.value)?R.value.value:void 0}return P1(q,{name:String(J),detail:V==null?"":X9(V),has_argument:W,source:J8(q,Q)}),String(J)}function W9(q,Q,Z=!1){if(q.length===0)return"null";let j=q.map(({name:Y,type:J,description:K,optional:W,default:V})=>{let R=W?"?":"",z=K||"";if(V&&z)z=`${z} @default ${V}`;else if(V)z=`@default ${V}`;if(z){if(Z)return`/** ${z} */
3
3
  ${Y}${R}: ${J};`;return`/** ${z} */ ${Y}${R}: ${J};`}return`${Y}${R}: ${J};`}).join(Z?`
4
4
  `:" ");return Z?`{
5
5
  ${j}
6
- }`:`{ ${j} }`}var E3=/[A-Za-z_$][\w$]*/g;function v3(q,Q){if(!Q)return!1;let Z=new Set(Q[0].split(",").map((j)=>j.trim()));for(let[j]of q.matchAll(E3))if(Z.has(j))return!0;return!1}function X9(q,Q){if(Q===void 0)return;return q.runesPropsDeclarationMetadataByDeclaratorStart.get(Q)}function W7(q,Q,Z){return X9(q,Q)?.props.get(Z)}function V7(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 G7(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 G7(q.left);return}function j0(q,Q){let Z=Q?.start,j=Q?.end;if(Z===void 0||j===void 0)return;return Q8(q,Z+1,j)?.trim()}function z7(q,Q){let Z=Q?.start,j=Q?.end;if(Z===void 0||j===void 0)return;return Q8(q,Z,j)?.trim()}function P8(q,Q,Z,j,Y=new Set){if(!Q?.type)return;switch(Q.type){case"TSInterfaceDeclaration":P8(q,{type:"TSTypeLiteral",members:Q.body?.body},Z,j,Y);return;case"TSTypeAliasDeclaration":case"TSParenthesizedType":case"TSTypeAnnotation":P8(q,Q.typeAnnotation,Z,j,Y);return;case"TSIntersectionType":case"TSUnionType":for(let J of Q.types??[])P8(q,J,Z,j,Y);return;case"TSTypeLiteral":for(let J of Q.members??[]){if(J?.type!=="TSPropertySignature")continue;P8(q,J.typeAnnotation?.typeAnnotation,Z,j,Y)}return;case"TSTypeReference":{let J=G7(Q.typeName);if(J){if(q.typeImportBindingsByLocalName.has(J))Z.add(J);let K=q.localTypeDeclarationsByName.get(J);if(K&&!Y.has(J))j.add(J),Y.add(J),P8(q,K.node,Z,j,Y),Y.delete(J)}if("typeParameters"in Q&&Q.typeParameters&&typeof Q.typeParameters==="object"){let K=Q.typeParameters;for(let W of K.params??[])P8(q,W,Z,j,Y)}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 J of Object.values(Q)){if(!J||typeof J!=="object")continue;if(Array.isArray(J)){for(let K of J){if(!K||typeof K!=="object"||!("type"in K))continue;P8(q,K,Z,j,Y)}continue}if("type"in J)P8(q,J,Z,j,Y)}}function h3(q,Q){let Z=new Map;for(let j of Array.from(Q).sort()){let Y=q.typeImportBindingsByLocalName.get(j);if(!Y)continue;let J=Z.get(Y.source)??{default:[],named:[],namespace:[]};if(Y.specifierType==="default")J.default.push(Y.localName);else if(Y.specifierType==="namespace")J.namespace.push(Y.localName);else J.named.push({imported:Y.importedName,local:Y.localName});Z.set(Y.source,J)}return Array.from(Z.entries()).sort(([j],[Y])=>j.localeCompare(Y)).map(([j,Y])=>{if(Y.namespace.length>0)return Y.namespace.map((V)=>`import type * as ${V} from "${j}";`).join(`
7
- `);let J=Y.named.map(({imported:V,local:R})=>{if(!V||V===R)return R;return`${V} as ${R}`}),K=Y.default[0],W=J.length>0?`{ ${J.join(", ")} }`:"";if(K&&W)return`import type ${K}, ${W} from "${j}";`;if(K)return`import type ${K} from "${j}";`;return`import type ${W} from "${j}";`})}function O7(q){let Q=q.pendingCallDefaultCandidates.length>0?q.pendingCallDefaultCandidates.slice():void 0;if(q.typedRunesPropsDeclarations.length!==1)return Q?{canonicalPropNames:[],localTypeDeclarations:[],typeImportStatements:[],pendingCallDefaultCandidates:Q}:void 0;let[Z]=q.typedRunesPropsDeclarations;if(!Z.canonicalType)return Q?{canonicalPropNames:[],localTypeDeclarations:[],typeImportStatements:[],pendingCallDefaultCandidates:Q}:void 0;let j=Array.from(Z.referencedLocalTypes).map((Y)=>q.localTypeDeclarationsByName.get(Y)).filter((Y)=>Y!==void 0).sort((Y,J)=>Y.start-J.start).map((Y)=>Y.code);return{canonicalPropsType:Z.canonicalType,canonicalPropNames:Array.from(Z.props.keys()).sort(),localTypeDeclarations:j,typeImportStatements:h3(q,Z.referencedImportedTypes),referencesComponentGenerics:v3(Z.canonicalType,q.generics),...Q?{pendingCallDefaultCandidates:Q}:{}}}var f3=/^[A-Za-z_$][\w$]*/,y3=/[A-Za-z_$][\w$]*/g,U7=/^(?:const|in|out)\s+/;function X1(q){let Q=[],Z=0,j=0;for(let Y=0;Y<q.length;Y++){let J=q[Y];if(J==="<"||J==="("||J==="["||J==="{")Z++;else if(J===">"||J===")"||J==="]"||J==="}")Z=Math.max(Z-1,0);else if(J===","&&Z===0)Q.push(q.slice(j,Y)),j=Y+1}return Q.push(q.slice(j)),Q}function R7(q){let Q=X1(q).map((j)=>j.trim()).filter((j)=>j.length>0);if(Q.length===0)return null;return[Q.map((j)=>{let Y=j;while(U7.test(Y))Y=Y.replace(U7,"");return Y.match(f3)?.[0]??j}).join(", "),Q.join(", ")]}function B7(q,Q,Z){let j=q.scriptGenericsAttribute?.value;if(!j)return;for(let[Y]of j.matchAll(y3)){if(q.typeImportBindingsByLocalName.has(Y))Q.add(Y);if(Z.has(Y))continue;let J=q.localTypeDeclarationsByName.get(Y);if(!J)continue;Z.add(Y),P8(q,J.node,Q,Z)}}var f8;(function(q){q.start="/**",q.nostart="/***",q.delim="*",q.end="*/"})(f8||(f8={}));function W9(q){return/^\s+$/.test(q)}function F7(q){let Q=q.match(/\r+$/);return Q==null?["",q]:[q.slice(-Q[0].length),q.slice(0,-Q[0].length)]}function o8(q){let Q=q.match(/^\s+/);return Q==null?["",q]:[q.slice(0,Q[0].length),q.slice(Q[0].length)]}function M7(q){return q.split(/\n/)}function $7(q={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},q)}function V9(q={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},q)}var g3=/^@[^\s/]+(?=\s|$)/;function G9({fence:q="```"}={}){let Q=_3(q),Z=(j,Y)=>Q(j)?!Y:Y;return function(Y){let J=[[]],K=!1;for(let W of Y){if(g3.test(W.tokens.description)&&!K)J.push([W]);else J[J.length-1].push(W);K=Z(W.tokens.description,K)}return J}}function _3(q){if(typeof q==="string")return(Q)=>Q.split(q).length%2===0;return q}function z9({startLine:q=0,markers:Q=f8}={}){let Z=null,j=q;return function(J){let K=J,W=V9();if([W.lineEnd,K]=F7(K),[W.start,K]=o8(K),Z===null&&K.startsWith(Q.start)&&!K.startsWith(Q.nostart))Z=[],W.delimiter=K.slice(0,Q.start.length),K=K.slice(Q.start.length),[W.postDelimiter,K]=o8(K);if(Z===null)return j++,null;let V=K.trimRight().endsWith(Q.end);if(W.delimiter===""&&K.startsWith(Q.delim)&&!K.startsWith(Q.end))W.delimiter=Q.delim,K=K.slice(Q.delim.length),[W.postDelimiter,K]=o8(K);if(V){let R=K.trimRight();W.end=K.slice(R.length-Q.end.length),K=R.slice(0,-Q.end.length)}if(W.description=K,Z.push({number:j,source:J,tokens:W}),j++,V){let R=Z.slice();return Z=null,R}return null}}function O9({tokenizers:q}){return function(Z){var j;let Y=$7({source:Z});for(let J of q)if(Y=J(Y),(j=Y.problems[Y.problems.length-1])===null||j===void 0?void 0:j.critical)break;return Y}}function Y0(){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;if(Z[1].includes("/"))return q;return Q.tag=Z[1],Q.postTag=Z[3],Q.description=Q.description.slice(Z[0].length),q.tag=Z[2],q}}function H0(q="compact"){let Q=u3(q);return(Z)=>{let j=0,Y=[],J=!1,K=!0;for(let{tokens:R}of Z.source.values()){let z="";if(!J&&R.description.trim())J=!0;else if(!J)continue;if(K&&R.description[0]!=="{")return Z;K=!1;for(let M of R.description){if(M==="{")j++;if(M==="}")j--;if(z+=M,j===0)break}if(Y.push([R,z]),j===0)break}if(!J)return Z;if(j!==0)return Z.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:Z.source[0].number,critical:!0}),Z;let W=[],V=Y[0][0].postDelimiter.length;for(let[R,[z,M]]of Y.entries()){if(z.type=M,R>0)z.type=z.postDelimiter.slice(V)+M,z.postDelimiter=z.postDelimiter.slice(0,V);[z.postType,z.description]=o8(z.description.slice(M.length)),W.push(z.type)}return W[0]=W[0].slice(1),W[W.length-1]=W[W.length-1].slice(0,-1),Z.type=Q(W),Z}}var x3=(q)=>q.trim();function u3(q){if(q==="compact")return(Q)=>Q.map(x3).join("");else if(q==="preserve")return(Q)=>Q.join(`
8
- `);else return q}var L7=(q)=>q&&q.startsWith('"')&&q.endsWith('"');function K0(){let q=(Q,{tokens:Z},j)=>Z.type===""?Q:j;return(Q)=>{let Z=Q.source.reduce(q,0),j;if(Q.type)do{if({tokens:j}=Q.source[Z],j.description.trim())break;Z++}while(Q.source[Z]);else({tokens:j}=Q.source[Z]);let Y=j.description.trimStart(),J=Y.split('"');if(J.length>1&&J[0]===""&&J.length%2===1)return Q.name=J[1],j.name=`"${J[1]}"`,[j.postName,j.description]=o8(Y.slice(j.name.length)),Q;let K=0,W="",V=!1,R;for(let M of Y){if(K===0&&W9(M))break;if(M==="[")K++;if(M==="]")K--;W+=M}if(K!==0)return Q.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:Q.source[0].number,critical:!0}),Q;let z=W;if(W[0]==="["&&W[W.length-1]==="]"){V=!0,W=W.slice(1,-1);let M=W.split("=");if(W=M[0].trim(),M[1]!==void 0)R=M.slice(1).join("=").trim();if(W==="")return Q.problems.push({code:"spec:name:empty-name",message:"empty name",line:Q.source[0].number,critical:!0}),Q;if(R==="")return Q.problems.push({code:"spec:name:empty-default",message:"empty default value",line:Q.source[0].number,critical:!0}),Q;if(!L7(R)&&/=(?!>)/.test(R))return Q.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:Q.source[0].number,critical:!0}),Q}if(!V){let M=W.search(/=(?!>)/);if(M!==-1){let $=W.slice(0,M).trim(),F=W.slice(M+1).trim();if($==="")return Q.problems.push({code:"spec:name:empty-name",message:"empty name",line:Q.source[0].number,critical:!0}),Q;if(F==="")return Q.problems.push({code:"spec:name:empty-default",message:"empty default value",line:Q.source[0].number,critical:!0}),Q;if(/^[\p{ID_Start}$_\.][\p{ID_Continue}$_\u200c\u200d\.]*=/u.test(W)){if(!L7(F)&&/=(?!>)/.test(F))return Q.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:Q.source[0].number,critical:!0}),Q;W=$,R=F}}}if(Q.optional=V,Q.name=W,j.name=z,R!==void 0)Q.default=R;return[j.postName,j.description]=o8(Y.slice(j.name.length)),Q}}function J0(q="compact",Q=f8){let Z=U9(q);return(j)=>{return j.description=Z(j.source,Q),j}}function U9(q){if(q==="compact")return m3;if(q==="preserve")return i3;return q}function m3(q,Q=f8){return q.map(({tokens:{description:Z}})=>Z.trim()).filter((Z)=>Z!=="").join(" ")}var l3=(q,{tokens:Q},Z)=>Q.type===""?q:Z,c3=({tokens:q})=>(q.delimiter===""?q.start:q.postDelimiter.slice(1))+q.description;function i3(q,Q=f8){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(l3,0)),q.map(c3).join(`
9
- `)}function R9({startLine:q=0,fence:Q="```",spacing:Z="compact",markers:j=f8,tokenizers:Y=[Y0(),H0(Z),K0(),J0(Z)]}={}){if(q<0||q%1>0)throw Error("Invalid startLine");let J=z9({startLine:q,markers:j}),K=G9({fence:Q}),W=O9({tokenizers:Y}),V=U9(Z);return function(R){let z=[];for(let M of M7(R)){let $=J(M);if($===null)continue;let F=K($),P=F.slice(1).map(W);z.push({description:V(F[0],j),tags:P,source:$,problems:P.reduce((A,D)=>A.concat(D.problems),[])})}return z}}function d3(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 B9(){return(q)=>q.source.map(({tokens:Q})=>d3(Q)).join(`
10
- `)}var p3={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 PH=Object.keys(p3);function S1(q,Q={}){return R9(Q)(q)}var dH=B9();var o3=null;function s3(q,Q,Z){let j={value:void 0,replace:!1};if(!Z||typeof Z!=="object"||!("type"in Z))return j;if(Z.type==="Identifier")j.value=Z.name,j.replace=!0;else if(Z.type==="Literal")j.value=String(Z.value);else if(Z.type==="MemberExpression")j.value=q0(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")j.value=Q8(q,Z.start,Z.end);return j}function w7(q,Q,Z){let j={};for(let Y of Z.properties){if(Y.type!=="Property"||Y.computed)continue;let J=Q.getPropertyName(Y.key);if(!J)continue;j[J]=s3(q,Q,Y.value)}return j}function n3(q,Q){if(!Q||typeof Q!=="object"||!("type"in Q))return null;if(Q.type==="Identifier"){let J=Q,K=q.propLocalToPublicName.get(J.name);if(!K)return null;return{publicName:K,trackingName:J.name}}if(Q.type!=="MemberExpression")return null;let Z=Q,j=Z.object&&typeof Z.object==="object"&&"type"in Z.object&&Z.object.type==="Identifier"?Z.object.name:void 0;if(!j||!q.wholePropsLocals.has(j))return null;let Y;if(!Z.computed&&Z.property&&typeof Z.property==="object"&&"type"in Z.property){if(Z.property.type==="Identifier")Y=Z.property.name;else if(Z.property.type==="Literal"&&Z.property.value!=null)Y=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)Y=String(Z.property.value);if(!Y)return null;return{publicName:Y,trackingName:Y}}function A7(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 j=Z;if(!j.callee||typeof j.callee!=="object"||!("type"in j.callee))return null;let Y=n3(q,j.callee);if(!Y)return null;return{...Y,arguments:j.arguments}}function D1(q,{slot_name:Q,slot_props:Z,slot_fallback:j,slot_description:Y,slot_deprecated:J,slot_tags:K,source:W}){let V=Q===void 0||Q==="",R=V?o3:Q??"",z=I8(j),M=Z===void 0||Z===""?void 0:Z,$=Y?.trim()||void 0;if(q.slots.has(R)){let F=q.slots.get(R);if(F)q.slots.set(R,{...F,default:F.default??V,fallback:z,slot_props:F.slot_props===void 0?M:F.slot_props,description:F.description||$,deprecated:F.deprecated??J,tags:F.tags||K,source:W||F.source})}else q.slots.set(R,{name:R,default:V,fallback:z,slot_props:Z,description:$,deprecated:J,tags:K,source:W})}var a3=/\s*=\s*/;function C7(q){let Q=q.indexOf("<");if(Q===-1||!q.endsWith(">"))return q;let Z=q.slice(0,Q),j=q.slice(Q+1,-1),Y=X1(j).map((J)=>J.trim().replace(a3," = ")).join(", ");return`${Z}<${Y}>`}var M9=/^\s*$/,r3=/;$/,t3=/^-\s*/;function W1(q){if(q===void 0)return;let Q=q.replace(t3,"").trim();return Q===""?"":Q}function N1(q){if(!q||q.length===0)return;return q[0].tokens.description}var I7=new Set(["since","example"]);function P7(q){if(!q||q.length===0)return"";let Q=[];for(let Z of q){let j=Z.tokens;if((j.end??"").trim()==="*/")break;if(j.tag){let Y=`${j.name??""}${j.postName??""}${j.description??""}`.trimEnd();if(Y)Q.push(Y)}else Q.push(`${j.postDelimiter??""}${j.description??""}`)}return Q.join(`
11
- `)}function e3(q){let Q=q.trim();return Q===""?!0:Q}function S7(q,Q){return e3(`${q??""}${Q?` ${Q}`:""}`)}function qq(q){let Q=q.trim().replace(r3,"").trimEnd();if(!Q.startsWith("{")||!Q.endsWith("}"))return!1;let Z=0,j=null;for(let Y=0;Y<Q.length;Y++){let J=Q[Y];if(j!==null){if(J==="\\"){Y++;continue}if(J===j)j=null;continue}if(J==='"'||J==="'"||J==="`"){j=J;continue}if(J==="{"||J==="["||J==="(")Z++;else if(J==="}"||J==="]"||J===")"){if(Z--,Z===0&&Y<Q.length-1)return!1}}return Z===0}function Qq(q){let Q=q;if(!Q.startsWith("/*"))Q=`/*${Q}`;if(!Q.endsWith("*/"))Q+="*/";return Q}function $9(q){let Q=q[0]?.tags??[],Z=new Set(["type","param","returns","return","extends","extendProps","restProps","slot","snippet","event","typedef","callback","bindable","deprecated"]),j,Y=[],J,K,W,V=[],R=[];for(let z of Q)if(z.tag==="type")j=z;else if(z.tag==="param")Y.push(z);else if(z.tag==="returns"||z.tag==="return")J=z;else if(z.tag==="deprecated")W??=S7(z.name,z.description);else if(I7.has(z.tag))R.push(z);else if(z.tag==="bindable"){if(z.type)continue;let M=`${z.name}${z.description?` ${z.description}`:""}`.trim();if(M==="readonly"||M==="writable")K??=M}else if(!Z.has(z.tag))V.push(z);return{type:j,param:Y,returns:J,binding:K,deprecated:W,additional:V,passthrough:R,description:q[0]?.description}}function Zq(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 jq(q,Q,Z){if(!Q||Q.length===0||Z===void 0||!q.source)return;for(let j=Q.length-1;j>=0;j--){let Y=Q[j];if(!Y||typeof Y!=="object"||!("value"in Y)||!("end"in Y))continue;if(typeof Y.end!=="number")continue;let J=q.source.slice(Y.end,Z);if(M9.test(J))return Y}return}function Q1(q,Q,Z){if(!Z?.leadingComments)return;let j=jq(q,Z.leadingComments,Z.start);if(!j)return;return Yq(Q,[j])}function D7(q,Q,Z){if(!Z?.leadingComments)return;return Q1(q,Q,Z)}function Yq(q,Q){if(!Q)return;let Z=Zq(Q);if(!Z)return;let j=S1(Qq(Z.value),{spacing:"preserve"}),{type:Y,param:J,returns:K,binding:W,deprecated:V,additional:R,passthrough:z,description:M}=$9(j),$,F,P,A;if(Y)$=q.aliasType(Y.type);if(J.length>0)F=J.filter((y)=>!y.name.includes(".")).map((y)=>({name:y.name,type:q.aliasType(y.type),description:W1(y.description),optional:y.optional||!1}));if(K)P=q.aliasType(K.type);let D=I8(M?.trim());if(D||R.length>0){let y=[];if(D)y.push(D);for(let h of R){let n=`@${h.tag}${h.name?` ${h.name}`:""}${h.description?` ${h.description}`:""}`;y.push(n)}A=y.join(`
12
- `)}let v=z.length>0?z.map((y)=>({name:y.tag,body:P7(y.source)})):void 0;return{type:$,params:F,returnType:P,description:A,binding:W,deprecated:V,tags:v}}function N7(q,Q,Z=q.source){if(!Z)return;let j=0;for(let{tags:Y,description:J,source:K}of S1(Z,{spacing:"preserve"})){let W=K.map((k)=>k.source).join(`
13
- `),V=Z.indexOf(W,j),R=V===-1?void 0:V;if(V!==-1)j=V+W.length;let z,M,$,F,P,A,D=[],v=[],y,h,n,g=[],j8,U8,H=[],X,G=!1,U=!0,B=[],L,w=new Map,S=new Set,I=new Set;for(let k of Y)if(k.source&&k.source.length>0)S.add(k.source[0].number);for(let k of K)if(!k.tokens.tag&&k.tokens.description&&k.tokens.description.trim()!=="}")w.set(k.number,k.tokens.description);let C=(k)=>{if(!k||k.length===0)return;let i=k[0].number,_=[],l=[],R8=!1;for(let d=i-1;d>=1;d--){if(S.has(d))break;let a=w.get(d);if(a)_.unshift(a),l.unshift(d),R8=!0;else if(R8){let e=K.find((r)=>r.number===d);if(!(!e||!e.tokens.tag&&(!e.tokens.description||e.tokens.description.trim()==="")))break}}if(_.length===0)return;for(let d of l)I.add(d);return _.join(`
14
- `).trim()},N=()=>{if(z!==void 0){let k=M&&M!=="object"&&M!=="Object"?M:void 0,i;if(k)i=k;else if(v.length>0)i=J9(v,z,!0);else i=M||"";if(A!==void 0){let _;for(let d of Y){let a=d.source?.[0]?.number;if(typeof a!=="number")continue;if(a<=A)continue;if(d.tag==="property"||d.tag==="type")continue;_=a;break}let l=[],R8=Array.from(w.keys()).sort((d,a)=>d-a);for(let d of R8){if(d<=A)continue;if(_!==void 0&&d>=_)continue;if(I.has(d))continue;let e=w.get(d)?.trim();if(e)l.push(e),I.add(d)}if(l.length>0){let d=l.join(`
6
+ }`:`{ ${j} }`}var y3=/[A-Za-z_$][\w$]*/g;function g3(q,Q){if(!Q)return!1;let Z=new Set(Q[0].split(",").map((j)=>j.trim()));for(let[j]of q.matchAll(y3))if(Z.has(j))return!0;return!1}function V9(q,Q){if(Q===void 0)return;return q.runesPropsDeclarationMetadataByDeclaratorStart.get(Q)}function G7(q,Q,Z){return V9(q,Q)?.props.get(Z)}function z7(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 O7(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 O7(q.left);return}function Y0(q,Q){let Z=Q?.start,j=Q?.end;if(Z===void 0||j===void 0)return;return Z8(q,Z+1,j)?.trim()}function U7(q,Q){let Z=Q?.start,j=Q?.end;if(Z===void 0||j===void 0)return;return Z8(q,Z,j)?.trim()}function P8(q,Q,Z,j,Y=new Set){if(!Q?.type)return;switch(Q.type){case"TSInterfaceDeclaration":P8(q,{type:"TSTypeLiteral",members:Q.body?.body},Z,j,Y);return;case"TSTypeAliasDeclaration":case"TSParenthesizedType":case"TSTypeAnnotation":P8(q,Q.typeAnnotation,Z,j,Y);return;case"TSIntersectionType":case"TSUnionType":for(let J of Q.types??[])P8(q,J,Z,j,Y);return;case"TSTypeLiteral":for(let J of Q.members??[]){if(J?.type!=="TSPropertySignature")continue;P8(q,J.typeAnnotation?.typeAnnotation,Z,j,Y)}return;case"TSTypeReference":{let J=O7(Q.typeName);if(J){if(q.typeImportBindingsByLocalName.has(J))Z.add(J);let K=q.localTypeDeclarationsByName.get(J);if(K&&!Y.has(J))j.add(J),Y.add(J),P8(q,K.node,Z,j,Y),Y.delete(J)}if("typeParameters"in Q&&Q.typeParameters&&typeof Q.typeParameters==="object"){let K=Q.typeParameters;for(let W of K.params??[])P8(q,W,Z,j,Y)}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 J of Object.values(Q)){if(!J||typeof J!=="object")continue;if(Array.isArray(J)){for(let K of J){if(!K||typeof K!=="object"||!("type"in K))continue;P8(q,K,Z,j,Y)}continue}if("type"in J)P8(q,J,Z,j,Y)}}function _3(q,Q){let Z=new Map;for(let j of Array.from(Q).sort()){let Y=q.typeImportBindingsByLocalName.get(j);if(!Y)continue;let J=Z.get(Y.source)??{default:[],named:[],namespace:[]};if(Y.specifierType==="default")J.default.push(Y.localName);else if(Y.specifierType==="namespace")J.namespace.push(Y.localName);else J.named.push({imported:Y.importedName,local:Y.localName});Z.set(Y.source,J)}return Array.from(Z.entries()).sort(([j],[Y])=>j.localeCompare(Y)).map(([j,Y])=>{if(Y.namespace.length>0)return Y.namespace.map((V)=>`import type * as ${V} from "${j}";`).join(`
7
+ `);let J=Y.named.map(({imported:V,local:R})=>{if(!V||V===R)return R;return`${V} as ${R}`}),K=Y.default[0],W=J.length>0?`{ ${J.join(", ")} }`:"";if(K&&W)return`import type ${K}, ${W} from "${j}";`;if(K)return`import type ${K} from "${j}";`;return`import type ${W} from "${j}";`})}function R7(q){let Q=q.pendingCallDefaultCandidates.length>0?q.pendingCallDefaultCandidates.slice():void 0;if(q.typedRunesPropsDeclarations.length!==1)return Q?{canonicalPropNames:[],localTypeDeclarations:[],typeImportStatements:[],pendingCallDefaultCandidates:Q}:void 0;let[Z]=q.typedRunesPropsDeclarations;if(!Z.canonicalType)return Q?{canonicalPropNames:[],localTypeDeclarations:[],typeImportStatements:[],pendingCallDefaultCandidates:Q}:void 0;let j=Array.from(Z.referencedLocalTypes).map((Y)=>q.localTypeDeclarationsByName.get(Y)).filter((Y)=>Y!==void 0).sort((Y,J)=>Y.start-J.start).map((Y)=>Y.code);return{canonicalPropsType:Z.canonicalType,canonicalPropNames:Array.from(Z.props.keys()).sort(),localTypeDeclarations:j,typeImportStatements:_3(q,Z.referencedImportedTypes),referencesComponentGenerics:g3(Z.canonicalType,q.generics),...Q?{pendingCallDefaultCandidates:Q}:{}}}var x3=/^[A-Za-z_$][\w$]*/,u3=/[A-Za-z_$][\w$]*/g,B7=/^(?:const|in|out)\s+/;function S1(q){let Q=[],Z=0,j=0;for(let Y=0;Y<q.length;Y++){let J=q[Y];if(J==="<"||J==="("||J==="["||J==="{")Z++;else if(J===">"||J===")"||J==="]"||J==="}")Z=Math.max(Z-1,0);else if(J===","&&Z===0)Q.push(q.slice(j,Y)),j=Y+1}return Q.push(q.slice(j)),Q}function F7(q){let Q=S1(q).map((j)=>j.trim()).filter((j)=>j.length>0);if(Q.length===0)return null;return[Q.map((j)=>{let Y=j;while(B7.test(Y))Y=Y.replace(B7,"");return Y.match(x3)?.[0]??j}).join(", "),Q.join(", ")]}function M7(q,Q,Z){let j=q.scriptGenericsAttribute?.value;if(!j)return;for(let[Y]of j.matchAll(u3)){if(q.typeImportBindingsByLocalName.has(Y))Q.add(Y);if(Z.has(Y))continue;let J=q.localTypeDeclarationsByName.get(Y);if(!J)continue;Z.add(Y),P8(q,J.node,Q,Z)}}var y8;(function(q){q.start="/**",q.nostart="/***",q.delim="*",q.end="*/"})(y8||(y8={}));function G9(q){return/^\s+$/.test(q)}function $7(q){let Q=q.match(/\r+$/);return Q==null?["",q]:[q.slice(-Q[0].length),q.slice(0,-Q[0].length)]}function o8(q){let Q=q.match(/^\s+/);return Q==null?["",q]:[q.slice(0,Q[0].length),q.slice(Q[0].length)]}function L7(q){return q.split(/\n/)}function w7(q={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},q)}function z9(q={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},q)}var m3=/^@[^\s/]+(?=\s|$)/;function O9({fence:q="```"}={}){let Q=l3(q),Z=(j,Y)=>Q(j)?!Y:Y;return function(Y){let J=[[]],K=!1;for(let W of Y){if(m3.test(W.tokens.description)&&!K)J.push([W]);else J[J.length-1].push(W);K=Z(W.tokens.description,K)}return J}}function l3(q){if(typeof q==="string")return(Q)=>Q.split(q).length%2===0;return q}function U9({startLine:q=0,markers:Q=y8}={}){let Z=null,j=q;return function(J){let K=J,W=z9();if([W.lineEnd,K]=$7(K),[W.start,K]=o8(K),Z===null&&K.startsWith(Q.start)&&!K.startsWith(Q.nostart))Z=[],W.delimiter=K.slice(0,Q.start.length),K=K.slice(Q.start.length),[W.postDelimiter,K]=o8(K);if(Z===null)return j++,null;let V=K.trimRight().endsWith(Q.end);if(W.delimiter===""&&K.startsWith(Q.delim)&&!K.startsWith(Q.end))W.delimiter=Q.delim,K=K.slice(Q.delim.length),[W.postDelimiter,K]=o8(K);if(V){let R=K.trimRight();W.end=K.slice(R.length-Q.end.length),K=R.slice(0,-Q.end.length)}if(W.description=K,Z.push({number:j,source:J,tokens:W}),j++,V){let R=Z.slice();return Z=null,R}return null}}function R9({tokenizers:q}){return function(Z){var j;let Y=w7({source:Z});for(let J of q)if(Y=J(Y),(j=Y.problems[Y.problems.length-1])===null||j===void 0?void 0:j.critical)break;return Y}}function H0(){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;if(Z[1].includes("/"))return q;return Q.tag=Z[1],Q.postTag=Z[3],Q.description=Q.description.slice(Z[0].length),q.tag=Z[2],q}}function K0(q="compact"){let Q=i3(q);return(Z)=>{let j=0,Y=[],J=!1,K=!0;for(let{tokens:R}of Z.source.values()){let z="";if(!J&&R.description.trim())J=!0;else if(!J)continue;if(K&&R.description[0]!=="{")return Z;K=!1;for(let M of R.description){if(M==="{")j++;if(M==="}")j--;if(z+=M,j===0)break}if(Y.push([R,z]),j===0)break}if(!J)return Z;if(j!==0)return Z.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:Z.source[0].number,critical:!0}),Z;let W=[],V=Y[0][0].postDelimiter.length;for(let[R,[z,M]]of Y.entries()){if(z.type=M,R>0)z.type=z.postDelimiter.slice(V)+M,z.postDelimiter=z.postDelimiter.slice(0,V);[z.postType,z.description]=o8(z.description.slice(M.length)),W.push(z.type)}return W[0]=W[0].slice(1),W[W.length-1]=W[W.length-1].slice(0,-1),Z.type=Q(W),Z}}var c3=(q)=>q.trim();function i3(q){if(q==="compact")return(Q)=>Q.map(c3).join("");else if(q==="preserve")return(Q)=>Q.join(`
8
+ `);else return q}var A7=(q)=>q&&q.startsWith('"')&&q.endsWith('"');function J0(){let q=(Q,{tokens:Z},j)=>Z.type===""?Q:j;return(Q)=>{let Z=Q.source.reduce(q,0),j;if(Q.type)do{if({tokens:j}=Q.source[Z],j.description.trim())break;Z++}while(Q.source[Z]);else({tokens:j}=Q.source[Z]);let Y=j.description.trimStart(),J=Y.split('"');if(J.length>1&&J[0]===""&&J.length%2===1)return Q.name=J[1],j.name=`"${J[1]}"`,[j.postName,j.description]=o8(Y.slice(j.name.length)),Q;let K=0,W="",V=!1,R;for(let M of Y){if(K===0&&G9(M))break;if(M==="[")K++;if(M==="]")K--;W+=M}if(K!==0)return Q.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:Q.source[0].number,critical:!0}),Q;let z=W;if(W[0]==="["&&W[W.length-1]==="]"){V=!0,W=W.slice(1,-1);let M=W.split("=");if(W=M[0].trim(),M[1]!==void 0)R=M.slice(1).join("=").trim();if(W==="")return Q.problems.push({code:"spec:name:empty-name",message:"empty name",line:Q.source[0].number,critical:!0}),Q;if(R==="")return Q.problems.push({code:"spec:name:empty-default",message:"empty default value",line:Q.source[0].number,critical:!0}),Q;if(!A7(R)&&/=(?!>)/.test(R))return Q.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:Q.source[0].number,critical:!0}),Q}if(!V){let M=W.search(/=(?!>)/);if(M!==-1){let $=W.slice(0,M).trim(),F=W.slice(M+1).trim();if($==="")return Q.problems.push({code:"spec:name:empty-name",message:"empty name",line:Q.source[0].number,critical:!0}),Q;if(F==="")return Q.problems.push({code:"spec:name:empty-default",message:"empty default value",line:Q.source[0].number,critical:!0}),Q;if(/^[\p{ID_Start}$_\.][\p{ID_Continue}$_\u200c\u200d\.]*=/u.test(W)){if(!A7(F)&&/=(?!>)/.test(F))return Q.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:Q.source[0].number,critical:!0}),Q;W=$,R=F}}}if(Q.optional=V,Q.name=W,j.name=z,R!==void 0)Q.default=R;return[j.postName,j.description]=o8(Y.slice(j.name.length)),Q}}function X0(q="compact",Q=y8){let Z=B9(q);return(j)=>{return j.description=Z(j.source,Q),j}}function B9(q){if(q==="compact")return d3;if(q==="preserve")return s3;return q}function d3(q,Q=y8){return q.map(({tokens:{description:Z}})=>Z.trim()).filter((Z)=>Z!=="").join(" ")}var p3=(q,{tokens:Q},Z)=>Q.type===""?q:Z,o3=({tokens:q})=>(q.delimiter===""?q.start:q.postDelimiter.slice(1))+q.description;function s3(q,Q=y8){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(p3,0)),q.map(o3).join(`
9
+ `)}function F9({startLine:q=0,fence:Q="```",spacing:Z="compact",markers:j=y8,tokenizers:Y=[H0(),K0(Z),J0(),X0(Z)]}={}){if(q<0||q%1>0)throw Error("Invalid startLine");let J=U9({startLine:q,markers:j}),K=O9({fence:Q}),W=R9({tokenizers:Y}),V=B9(Z);return function(R){let z=[];for(let M of L7(R)){let $=J(M);if($===null)continue;let F=K($),P=F.slice(1).map(W);z.push({description:V(F[0],j),tags:P,source:$,problems:P.reduce((D,C)=>D.concat(C.problems),[])})}return z}}function n3(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 M9(){return(q)=>q.source.map(({tokens:Q})=>n3(Q)).join(`
10
+ `)}var a3={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 bH=Object.keys(a3);function D1(q,Q={}){return F9(Q)(q)}var nH=M9();var r3=null;function t3(q,Q,Z){let j={value:void 0,replace:!1};if(!Z||typeof Z!=="object"||!("type"in Z))return j;if(Z.type==="Identifier")j.value=Z.name,j.replace=!0;else if(Z.type==="Literal")j.value=String(Z.value);else if(Z.type==="MemberExpression")j.value=Q0(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")j.value=Z8(q,Z.start,Z.end);return j}function C7(q,Q,Z){let j={};for(let Y of Z.properties){if(Y.type!=="Property"||Y.computed)continue;let J=Q.getPropertyName(Y.key);if(!J)continue;j[J]=t3(q,Q,Y.value)}return j}function e3(q,Q){if(!Q||typeof Q!=="object"||!("type"in Q))return null;if(Q.type==="Identifier"){let J=Q,K=q.propLocalToPublicName.get(J.name);if(!K)return null;return{publicName:K,trackingName:J.name}}if(Q.type!=="MemberExpression")return null;let Z=Q,j=Z.object&&typeof Z.object==="object"&&"type"in Z.object&&Z.object.type==="Identifier"?Z.object.name:void 0;if(!j||!q.wholePropsLocals.has(j))return null;let Y;if(!Z.computed&&Z.property&&typeof Z.property==="object"&&"type"in Z.property){if(Z.property.type==="Identifier")Y=Z.property.name;else if(Z.property.type==="Literal"&&Z.property.value!=null)Y=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)Y=String(Z.property.value);if(!Y)return null;return{publicName:Y,trackingName:Y}}function I7(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 j=Z;if(!j.callee||typeof j.callee!=="object"||!("type"in j.callee))return null;let Y=e3(q,j.callee);if(!Y)return null;return{...Y,arguments:j.arguments}}function N1(q,{slot_name:Q,slot_props:Z,slot_fallback:j,slot_description:Y,slot_deprecated:J,slot_tags:K,source:W}){let V=Q===void 0||Q==="",R=V?r3:Q??"",z=I8(j),M=Z===void 0||Z===""?void 0:Z,$=Y?.trim()||void 0;if(q.slots.has(R)){let F=q.slots.get(R);if(F)q.slots.set(R,{...F,default:F.default??V,fallback:z,slot_props:F.slot_props===void 0?M:F.slot_props,description:F.description||$,deprecated:F.deprecated??J,tags:F.tags||K,source:W||F.source})}else q.slots.set(R,{name:R,default:V,fallback:z,slot_props:Z,description:$,deprecated:J,tags:K,source:W})}var qq=/\s*=\s*/;function P7(q){let Q=q.indexOf("<");if(Q===-1||!q.endsWith(">"))return q;let Z=q.slice(0,Q),j=q.slice(Q+1,-1),Y=S1(j).map((J)=>J.trim().replace(qq," = ")).join(", ");return`${Z}<${Y}>`}var L9=/^\s*$/,Qq=/;$/,Zq=/^-\s*/;function X1(q){if(q===void 0)return;let Q=q.replace(Zq,"").trim();return Q===""?"":Q}function b1(q){if(!q||q.length===0)return;return q[0].tokens.description}var S7=new Set(["since","example"]);function D7(q){if(!q||q.length===0)return"";let Q=[];for(let Z of q){let j=Z.tokens;if((j.end??"").trim()==="*/")break;if(j.tag){let Y=`${j.name??""}${j.postName??""}${j.description??""}`.trimEnd();if(Y)Q.push(Y)}else Q.push(`${j.postDelimiter??""}${j.description??""}`)}return Q.join(`
11
+ `)}function jq(q){let Q=q.trim();return Q===""?!0:Q}function N7(q,Q){return jq(`${q??""}${Q?` ${Q}`:""}`)}function Yq(q){let Q=q.trim().replace(Qq,"").trimEnd();if(!Q.startsWith("{")||!Q.endsWith("}"))return!1;let Z=0,j=null;for(let Y=0;Y<Q.length;Y++){let J=Q[Y];if(j!==null){if(J==="\\"){Y++;continue}if(J===j)j=null;continue}if(J==='"'||J==="'"||J==="`"){j=J;continue}if(J==="{"||J==="["||J==="(")Z++;else if(J==="}"||J==="]"||J===")"){if(Z--,Z===0&&Y<Q.length-1)return!1}}return Z===0}function Hq(q){let Q=q;if(!Q.startsWith("/*"))Q=`/*${Q}`;if(!Q.endsWith("*/"))Q+="*/";return Q}function w9(q){let Q=q[0]?.tags??[],Z=new Set(["type","param","returns","return","extends","extendProps","restProps","slot","snippet","event","typedef","callback","bindable","deprecated"]),j,Y=[],J,K,W,V=[],R=[];for(let z of Q)if(z.tag==="type")j=z;else if(z.tag==="param")Y.push(z);else if(z.tag==="returns"||z.tag==="return")J=z;else if(z.tag==="deprecated")W??=N7(z.name,z.description);else if(S7.has(z.tag))R.push(z);else if(z.tag==="bindable"){if(z.type)continue;let M=`${z.name}${z.description?` ${z.description}`:""}`.trim();if(M==="readonly"||M==="writable")K??=M}else if(!Z.has(z.tag))V.push(z);return{type:j,param:Y,returns:J,binding:K,deprecated:W,additional:V,passthrough:R,description:q[0]?.description}}function Kq(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 Jq(q,Q,Z){if(!Q||Q.length===0||Z===void 0||!q.source)return;for(let j=Q.length-1;j>=0;j--){let Y=Q[j];if(!Y||typeof Y!=="object"||!("value"in Y)||!("end"in Y))continue;if(typeof Y.end!=="number")continue;let J=q.source.slice(Y.end,Z);if(L9.test(J))return Y}return}function Q1(q,Q,Z){if(!Z?.leadingComments)return;let j=Jq(q,Z.leadingComments,Z.start);if(!j)return;return Xq(Q,[j])}function b7(q,Q,Z){if(!Z?.leadingComments)return;return Q1(q,Q,Z)}function Xq(q,Q){if(!Q)return;let Z=Kq(Q);if(!Z)return;let j=D1(Hq(Z.value),{spacing:"preserve"}),{type:Y,param:J,returns:K,binding:W,deprecated:V,additional:R,passthrough:z,description:M}=w9(j),$,F,P,D;if(Y)$=q.aliasType(Y.type);if(J.length>0)F=J.filter((g)=>!g.name.includes(".")).map((g)=>({name:g.name,type:q.aliasType(g.type),description:X1(g.description),optional:g.optional||!1}));if(K)P=q.aliasType(K.type);let C=I8(M?.trim());if(C||R.length>0){let g=[];if(C)g.push(C);for(let h of R){let o=`@${h.tag}${h.name?` ${h.name}`:""}${h.description?` ${h.description}`:""}`;g.push(o)}D=g.join(`
12
+ `)}let b=z.length>0?z.map((g)=>({name:g.tag,body:D7(g.source)})):void 0;return{type:$,params:F,returnType:P,description:D,binding:W,deprecated:V,tags:b}}function k7(q,Q,Z=q.source){if(!Z)return;let j=0;for(let{tags:Y,description:J,source:K}of D1(Z,{spacing:"preserve"})){let W=K.map((T)=>T.source).join(`
13
+ `),V=Z.indexOf(W,j),R=V===-1?void 0:V;if(V!==-1)j=V+W.length;let z,M,$,F,P,D,C=[],b=[],g,h,o,y=[],q8,U8,H=[],X,G=!1,U=!0,B=[],L,w=new Map,S=new Set,I=new Set;for(let T of Y)if(T.source&&T.source.length>0)S.add(T.source[0].number);for(let T of K)if(!T.tokens.tag&&T.tokens.description&&T.tokens.description.trim()!=="}")w.set(T.number,T.tokens.description);let A=(T)=>{if(!T||T.length===0)return;let i=T[0].number,_=[],l=[],R8=!1;for(let d=i-1;d>=1;d--){if(S.has(d))break;let a=w.get(d);if(a)_.unshift(a),l.unshift(d),R8=!0;else if(R8){let e=K.find((r)=>r.number===d);if(!(!e||!e.tokens.tag&&(!e.tokens.description||e.tokens.description.trim()==="")))break}}if(_.length===0)return;for(let d of l)I.add(d);return _.join(`
14
+ `).trim()},N=()=>{if(z!==void 0){let T=M&&M!=="object"&&M!=="Object"?M:void 0,i;if(T)i=T;else if(b.length>0)i=W9(b,z,!0);else i=M||"";if(D!==void 0){let _;for(let d of Y){let a=d.source?.[0]?.number;if(typeof a!=="number")continue;if(a<=D)continue;if(d.tag==="property"||d.tag==="type")continue;_=a;break}let l=[],R8=Array.from(w.keys()).sort((d,a)=>d-a);for(let d of R8){if(d<=D)continue;if(_!==void 0&&d>=_)continue;if(I.has(d))continue;let e=w.get(d)?.trim();if(e)l.push(e),I.add(d)}if(l.length>0){let d=l.join(`
15
15
  `);$=$?`${$}
16
- ${d}`:d}}P1(q,{name:z,detail:i,has_argument:!1,description:$,deprecated:F,tags:D.length>0?D:void 0,source:P}),q.eventDescriptions.set(z,$),q.jsDocEventNames.add(z),q.jsDocEventSources.set(z,P),v.length=0,z=void 0,M=void 0,$=void 0,F=void 0,P=void 0,A=void 0,D=[]}},u=()=>{if(y!==void 0){let k,i;if(g.length>0)k=J9(g,void 0,!0),i=`type ${y} = ${k};`;else if(h)k=h,i=qq(k)?`interface ${y} ${k}`:`type ${y} = ${k};`;else k="{}",i=`type ${y} = ${k};`;q.typedefs.set(y,{type:k,name:y,description:I8(n),ts:i}),g.length=0,y=void 0,h=void 0,n=void 0}},m=()=>{if(j8!==void 0){let _=`(${H.map(({name:R8,type:d,optional:a})=>{return`${R8}${a?"?":""}: ${d}`}).join(", ")}) => ${X||"void"}`,l=`type ${j8} = ${_};`;q.typedefs.set(j8,{type:_,name:j8,description:I8(U8),ts:l}),H.length=0,X=void 0,j8=void 0,U8=void 0}},K8=Y.some((k)=>k.tag==="slot"||k.tag==="snippet"),s=Y.some((k)=>k.tag==="extends"||k.tag==="extendProps");for(let{tag:k,type:i,name:_,description:l,optional:R8,default:d,source:a}of Y){let e=Q.aliasType(i),q8=C(a);switch(k){case"extends":case"extendProps":if(q.extends={interface:_,import:e},U)U=!1;break;case"restProps":{let r=_?l?`${_} ${l}`:_:l,u8=W1(r)||q8;if(!u8&&U&&!G&&J)u8=J,G=!0;if(q.rest_props={type:"Element",name:e,description:u8||void 0},U)U=!1;break}case"slot":case"snippet":{let $8=W1(N1(a));if(!$8&&U&&!G&&J)$8=J,G=!0;if(!$8&&B.length===0)$8=q8;if(U)U=!1;D1(q,{slot_name:_,slot_props:e,slot_description:$8||void 0,slot_deprecated:L,slot_tags:B.length>0?[...B]:void 0,source:j9(q,K,a,R)}),B.length=0,L=void 0;break}case"event":{if(N(),z=_,M=e,A=a&&a.length>0?a[0].number:void 0,$=W1(N1(a))||q8,!$&&U&&!G&&J)$=J,G=!0;if(P=j9(q,K,a,R),U)U=!1;break}case"type":if(z!==void 0)M=e;break;case"param":if(j8!==void 0)H.push({name:_,type:e,optional:R8||!1});break;case"returns":case"return":if(j8!==void 0)X=e;break;case"property":{let r={name:_,type:e,description:W1(N1(a)),optional:R8||!1,default:d};if(z!==void 0)v.push(r);else if(y!==void 0)g.push(r);break}case"typedef":{if(u(),y=C7(_),h=e,n=W1(N1(a))||q8,!n&&U&&!G&&J)n=J,G=!0;if(U)U=!1;break}case"callback":{if(m(),j8=C7(_),U8=W1(N1(a))||q8,!U8&&U&&!G&&J)U8=J,G=!0;if(U)U=!1;break}case"generics":if(q.generics=[_,e],U)U=!1;break;case"template":{let r=_;if(e)r=`${_} extends ${e}`;if(d)r+=` = ${d}`;if(K8&&!s){q.deferredSlotBlockGenerics.push({name:_,constraint:r});break}if(Q.accumulateGeneric(_,r),U)U=!1;break}case"deprecated":{let r=S7(_,l);if(z===void 0)L??=r;else F??=r;break}case"enum":case"class":case"implements":case"this":case"namespace":case"memberof":case"module":case"file":case"overview":break;default:{let r={name:k,body:P7(a)};if(z!==void 0&&I7.has(k))D.push(r);else B.push(r)}break}}N(),u(),m()}}function Hq({hasTypeScriptType:q,hasJSDocType:Q,inferredType:Z,finalType:j}){if(q)return"typescript";if(Q)return"jsdoc";if(Z!==void 0)return"default";if(j!==void 0)return"inferred";return"unknown"}function b1(q){let Q=q.explicitType??q.jsdocType??q.resolvedType??q.typeSeed,Z=q.jsdocParams??q.resolvedParams,j=q.jsdocReturnType??q.resolvedReturnType;if(q.isFunctionDeclaration&&Q==="() => any"&&j)Q=Z&&Z.length>0?`(${Z.map((W)=>`${W.name}${W.optional?"?":""}: ${W.type}`).join(", ")}) => ${j}`:`() => ${j}`;let Y=q.jsdocDescription??q.resolvedDescription;if(Y===void 0&&Q!==void 0)Y=q.typedefs?.get(Q)?.description;let J=Hq({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:J,description:Y,params:Z,returnType:j,isFunction:K}}function Kq(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 j=Q==="InlineComponent"?{type:"InlineComponent",name:Z}:{type:"Element",name:Z};if(Q==="Element"&&Z==="svelte:element"&&"tag"in q&&typeof q.tag==="string")j.thisValue=q.tag;return j}function b7(q,Q){if(q.rest_props!==void 0)return;let Z=Kq(Q);if(Z)q.rest_props=Z}function B8(q,Q,Z){if(!Q||q.has(Q))return;q.set(Q,Z)}function X0(q,Q){for(let Z=q.activeScopes.length-1;Z>=0;Z-=1){let j=q.activeScopes[Z]?.get(Q);if(!j)continue;return j.kind==="prop"?j.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 w9(q,Q){let Z=X8(Q);if(!Z)return;for(let j of Z){let Y=X0(q,j);if(Y)q.reactive_vars.add(Y)}}function W0(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 k7(q){if(!q||typeof q!=="object"||!("type"in q))return!1;let Q=String(q.type);return Q==="FunctionDeclaration"||Q==="FunctionExpression"||Q==="ArrowFunctionExpression"}function Jq(q,Q){let Z=q.scopeDeclarations.get(Q);if(!Z)Z=new Map,q.scopeDeclarations.set(Q,Z);return Z}function Xq(q,Q,Z){let j=[];if(Z.id.type==="Identifier")return j.push({kind:"local",name:Z.id.name}),j;if(Z.id.type!=="ObjectPattern")return j;for(let Y of Z.id.properties){if(Y.type==="RestElement"){if(Y.argument.type==="Identifier")j.push({kind:"local",name:Y.argument.name});continue}if(Y.computed)continue;let J=q.getPropertyName(Y.key);if(!J)continue;let K;if(Y.value.type==="Identifier")K=Y.value.name;else if(Y.value.type==="AssignmentPattern"&&Y.value.left.type==="Identifier")K=Y.value.left.name;if(!K)continue;j.push({kind:"prop",name:K,publicPropName:J})}return j}function L9(q,Q,Z,j,Y){if(!d6(Q))return;let J=Y?.allowRunesProps??!1,K=Y?.forceProp??!1,W=Q;for(let V of W.declarations){if(J&&l8(e8(V.init),"$props")){for(let M of Xq(q,W,V))B8(M.kind==="prop"?Z:j,M.name,M.kind==="prop"?{kind:"prop",publicPropName:M.publicPropName}:{kind:"local"});continue}let R=W.kind==="var"?j:Z,z=K?"prop":"local";for(let M of X8(V.id))B8(R,M,z==="prop"?{kind:"prop",publicPropName:M}:{kind:"local"})}}function Wq(q,Q){if("id"in q&&q.id&&typeof q.id==="object"&&"name"in q.id&&typeof q.id.name==="string")B8(Q,q.id.name,{kind:"local"});for(let Z of q.params)for(let j of X8(Z))B8(Q,j,{kind:"local"})}function Vq(q,Q,Z,j){if(!Array.isArray(Q))return;for(let Y of Q){if(!Y||typeof Y!=="object"||!("type"in Y))continue;switch(Y.type){case"VariableDeclaration":L9(q,Y,Z,j);break;case"FunctionDeclaration":if(Y.id?.name)B8(Z,Y.id.name,{kind:"local"});break;case"ClassDeclaration":if(Y.id?.name)B8(Z,Y.id.name,{kind:"local"});break}}}function Gq(q,Q,Z){if(!Z||typeof Z!=="object")return;let j="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(!j||!("body"in j)||!Array.isArray(j.body))return;for(let Y of j.body){if(!Y||typeof Y!=="object"||!("type"in Y))continue;switch(Y.type){case"ImportDeclaration":for(let J of Y.specifiers??[])if(J.local?.name)B8(Q.componentScope,J.local.name,{kind:"local"});break;case"VariableDeclaration":L9(q,Y,Q.componentScope,Q.componentScope,{allowRunesProps:!0});break;case"FunctionDeclaration":if(Y.id?.name)B8(Q.componentScope,Y.id.name,{kind:"local"});break;case"ClassDeclaration":if(Y.id?.name)B8(Q.componentScope,Y.id.name,{kind:"local"});break;case"ExportNamedDeclaration":if(!Y.declaration||typeof Y.declaration!=="object"||!("type"in Y.declaration))break;if(Y.declaration.type==="VariableDeclaration")L9(q,Y.declaration,Q.componentScope,Q.componentScope,{forceProp:!0});else if(Y.declaration.type==="FunctionDeclaration"&&Y.declaration.id?.name)B8(Q.componentScope,Y.declaration.id.name,{kind:"prop",publicPropName:Y.declaration.id.name});break}}}function T7(q,Q){Q.componentScope.clear(),Q.scopeDeclarations=new WeakMap,Q.activeScopes.length=0,Gq(q,Q,Q.parsed?.instance)}function E7(q){return{varScopeStack:[q.componentScope]}}function v7(q,Q,Z,j){if(!W0(j))return;let Y=Jq(Q,j),J=Z.varScopeStack[Z.varScopeStack.length-1]??Q.componentScope;switch(String(j.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":Wq(j,Y);break;case"BlockStatement":Vq(q,j.body,Y,J);break;case"CatchClause":if("param"in j)for(let W of X8(j.param))B8(Y,W,{kind:"local"});break;case"EachBlock":{let W=j;for(let V of X8(W.context))B8(Y,V,{kind:"local"});if(typeof W.index==="string")B8(Y,W.index,{kind:"local"});else if(W.index&&"name"in W.index)B8(Y,W.index.name,{kind:"local"});break}case"ThenBlock":if("value"in j)for(let W of X8(j.value))B8(Y,W,{kind:"local"});break;case"CatchBlock":if("error"in j)for(let W of X8(j.error))B8(Y,W,{kind:"local"});break}if(k7(j))Z.varScopeStack.push(Y)}function h7(q,Q){if(k7(Q))q.varScopeStack.pop()}var zq=new Set(["$state","$derived","$effect","$props","$bindable","$inspect","$host"]);function Oq(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 Uq(q,Q){for(let Z=Q.length-1;Z>=0;Z-=1)if(Q[Z]?.has(q))return!0;return!1}function Rq(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 j of Z.params??[])X8(j,Q);break}case"BlockStatement":V0(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 V0(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 j of Z.specifiers??[])if(j.local?.name)Q.add(j.local.name);break;case"VariableDeclaration":for(let j of Z.declarations??[])X8(j.id,Q);break;case"FunctionDeclaration":case"ClassDeclaration":{let j=Z.id?.name;if(j)Q.add(j);break}case"ExportNamedDeclaration":{let j=Z.declaration;if(j&&typeof j==="object"&&"type"in j)V0([j],Q);break}}}}function A9(q,Q){if(!q||typeof q!=="object")return!1;let Z=[...Q],j=!1;return d8(q,{enter(Y,J){if(j){this.skip();return}if(W0(Y))Z.push(Rq(Y));if(J&&Y.type==="Identifier"&&zq.has(Y.name)&&!J.type.startsWith("TS")&&Oq(Y,J)&&!Uq(Y.name,Z))j=!0,this.skip()},leave(Y){if(W0(Y))Z.pop()}}),j}function f7(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 y7(q){if(q.runesOptionOverride!==void 0)return q.runesOptionOverride?"runes":"legacy";let Q=q.parsed;if(!Q)return"legacy";let Z=new Set;V0(f7(Q.module),Z);let j=new Set;return V0(f7(Q.instance),j),A9(Q.module,[Z])||A9(Q.instance,[Z,j])||A9(Q.html,[Z,j])?"runes":"legacy"}var Bq=/[A-Za-z_$][\w$]*/g;function Fq(q,Q,Z){let j=new Map,Y=Q.typeParameters?.params,J=Z.typeArguments?.params;if(!Y?.length||!J?.length)return j;for(let K=0;K<Y.length;K++){let W=Y[K]?.name,V=J[K];if(!W||V?.start===void 0||V?.end===void 0)continue;let R=Q8(q,V.start,V.end)?.trim();if(R)j.set(W,R)}return j}function Mq(q,Q){if(Q.size===0)return q;return q.replace(Bq,(Z)=>Q.get(Z)??Z)}function k1(q,Q,Z,j,Y=new Set){let J=new Map;if(!Z?.type)return J;let K=(W)=>{for(let V of W){if(V?.type!=="TSPropertySignature"||V.computed)continue;if(!V.key)continue;let R=q.getPropertyName(V.key);if(!R)continue;let z=V.typeAnnotation?.start,M=V.typeAnnotation?.end;if(z===void 0||M===void 0)continue;let $=Q8(Q,z+1,M)?.trim();if(!$)continue;J.set(R,{type:$,optional:V.optional===!0,source:J8(Q,V)})}};switch(Z.type){case"TSTypeLiteral":K(Z.members??[]);break;case"TSInterfaceDeclaration":K(Z.body?.body??[]);break;case"TSTypeAliasDeclaration":{let W=k1(q,Q,Z.typeAnnotation,j,Y);for(let[V,R]of W)J.set(V,R);break}case"TSTypeReference":{let W=V7(Z.typeName);if(!W||Y.has(W))break;let V=j.get(W);if(!V)break;Y.add(W);let R=k1(q,Q,V,j,Y);Y.delete(W);let z=Fq(Q,V,Z);for(let[M,$]of R)J.set(M,z.size===0?$:{...$,type:Mq($.type,z)});break}case"TSIntersectionType":for(let W of Z.types??[]){let V=k1(q,Q,W,j,Y);for(let[R,z]of V)J.set(R,z)}break;case"TSParenthesizedType":{let W=k1(q,Q,Z.typeAnnotation,j,Y);for(let[V,R]of W)J.set(V,R);break}}return J}function g7(q,Q,Z){if(Q.runesPropsDeclarationMetadataByDeclaratorStart.clear(),Q.explicitPropTypesByName.clear(),Q.explicitVariableTypesByName.clear(),Q.typeImportBindingsByLocalName.clear(),Q.localTypeDeclarationsByName.clear(),Q.typedRunesPropsDeclarations.length=0,!Q.source)return;let j=Z;Q.scriptLanguage=q.resolveScriptLanguage(j),Q.customElementTag=j.options?.customElement?.tag,Q.runesOptionOverride=j.options?.runes,Q.scriptGenericsAttribute=q.resolveScriptGenericsAttribute(j);let Y=j.instance?.content?.body??[];for(let J of Y){if(!J?.type)continue;if(J.type==="ImportDeclaration"&&J.source?.value)for(let K of J.specifiers??[]){let W=K.local?.name;if(!W)continue;if(!(J.importKind==="type"||K.importKind==="type"))continue;let R,z;if(K.type==="ImportSpecifier")R="named",z=K.imported?.type==="Identifier"?K.imported.name:typeof K.imported?.value==="string"?K.imported.value:void 0;else if(K.type==="ImportDefaultSpecifier")R="default";else if(K.type==="ImportNamespaceSpecifier")R="namespace";if(!R)continue;Q.typeImportBindingsByLocalName.set(W,{importedName:z,localName:W,source:String(J.source.value),specifierType:R})}if((J.type==="TSInterfaceDeclaration"||J.type==="TSTypeAliasDeclaration")&&J.id?.name&&J.start!==void 0&&J.end!==void 0)Q.localTypeDeclarationsByName.set(J.id.name,{code:Q8(Q,J.start,J.end)?.trim()??"",node:J,start:J.start});if(J.type==="ExportNamedDeclaration"&&J.declaration?.type==="VariableDeclaration")for(let K of J.declaration.declarations??[]){if(K.id?.type!=="Identifier"||!K.id.name)continue;let W=j0(Q,K.id.typeAnnotation);if(W)Q.explicitPropTypesByName.set(K.id.name,W)}else if(J.type==="VariableDeclaration")for(let K of J.declarations??[]){if(K.id?.type!=="Identifier"||!K.id.name)continue;let W=j0(Q,K.id.typeAnnotation);if(W)Q.explicitVariableTypesByName.set(K.id.name,W)}}for(let J of Y){if(!J||typeof J!=="object"||!("declarations"in J))continue;for(let K of J.declarations??[]){if(!l8(e8(K.init),"$props"))continue;let W=K.id?.typeAnnotation?void 0:o6(K.init),V=K.id?.typeAnnotation?.typeAnnotation??W,R=K.id?.typeAnnotation?j0(Q,K.id.typeAnnotation):z7(Q,W),z=k1(q,Q,V,new Map(Array.from(Q.localTypeDeclarationsByName.entries(),([F,P])=>[F,P.node]))),M=new Set,$=new Set;if(P8(Q,V,M,$),B7(Q,M,$),K.start!==void 0){let F={canonicalType:R,props:z,referencedImportedTypes:M,referencedLocalTypes:$};if(Q.runesPropsDeclarationMetadataByDeclaratorStart.set(K.start,F),R)Q.typedRunesPropsDeclarations.push(F)}}}}function _7(q,Q,Z){for(let j of Z.declarations){if(!l8(e8(j.init),"$props"))continue;if(j.id.type==="Identifier"){Q.wholePropsLocals.add(j.id.name),Q.restPropLocals.add(j.id.name);let K=X9(Q,j.start);if(K)for(let[W,V]of K.props)I1(q,Q,W,{name:W,kind:"let",type:V.type,typeSource:"typescript",isFunction:!1,isFunctionDeclaration:!1,isRequired:!V.optional,constant:!1,reactive:!1,source:V.source});continue}if(j.id.type!=="ObjectPattern")continue;let Y=Q1(Q,q,Z),J=j.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 j.id.properties){if(K.type==="RestElement"){if(K.argument.type==="Identifier")Q.restPropLocals.add(K.argument.name);continue}let W=q.getPropertyName(K.key);if(!W)continue;let V,R;if(K.value.type==="Identifier")V=K.value.name;else{let G=K.value;V=G.left.name,R=G.right}if(!V)continue;if(q.trackPropLocalName(W,V),W==="children")Q.snippetPropLocals.add(V);let z=D7(Q,q,K)??(J===1?Y:void 0),M=W7(Q,j.start,W),{init:$,bindable:F}=Y7(R),P=$==null?{isFunction:!1}:q1(q,Q,$),{value:A,type:D,isFunction:v,defaultValue:y}=P,h=M?.type===void 0&&z?.type===void 0?P.resolvedType:void 0;if(P.pendingCallDefault)Q.pendingCallDefaultCandidates.push({propName:W,location:"props",...P.pendingCallDefault});let{type:n,typeSource:g,description:j8,params:U8,returnType:H,isFunction:X}=b1({explicitType:M?.type,typeSeed:D,inferredTypeForSource:D,jsdocType:z?.type,jsdocDescription:z?.description,jsdocParams:z?.params,jsdocReturnType:z?.returnType,resolvedType:h,resolvedDescription:P.resolvedDescription,resolvedParams:P.resolvedParams,resolvedReturnType:P.resolvedReturnType,initializerIsFunction:v,isFunctionDeclaration:!1,inferIsFunctionFromTypeSignature:!0});if(F)Q.reactive_vars.add(W);I1(q,Q,W,{name:W,...V===W?{}:{localName:V},kind:"let",description:j8,binding:z?.binding,deprecated:z?.deprecated,tags:z?.tags,...F?{bindable:!0}:{},type:n,typeSource:g,value:A,defaultValue:y,params:U8,returnType:H,isFunction:X,isFunctionDeclaration:!1,isRequired:$==null&&M?.optional!==!0,constant:!1,reactive:F,source:J8(Q,K)})}}}function x7(q,Q){if(q.syntaxMode!=="runes")return;for(let[Z,j]of Array.from(q.events.entries())){if(j.type!=="dispatched")continue;if(Q.has(Z)||q.forwardedEvents.has(Z))continue;let Y=`on${Z}`,J=q.props.get(Y);if(!J)continue;let K=J.type!==void 0||J.params!==void 0||J.returnType!==void 0,W=j.detail===void 0||j.detail==="undefined"||j.detail==="null"?"() => void":`(detail: ${j.detail}) => void`;q.props.set(Y,{...J,description:J.description??j.description,type:K?J.type:W,typeSource:K?J.typeSource:"inferred",isFunction:!0}),q.events.delete(Z)}}var u7=new Set(["TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion","TSInstantiationExpression"]);function G0(q){if(!q||typeof q!=="object")return;d8(q,{enter(Q){if(!u7.has(Q.type))return;let Z=Q.expression;while(Z&&u7.has(Z.type))Z=Z.expression;if(Z)this.replace(Z)}})}function C9(q,Q){let Z=Q.source?.value;if(typeof Z!=="string"||Q.importKind==="type")return;for(let j of Q.specifiers??[]){if(j.type!=="ImportSpecifier"||j.importKind==="type")continue;let Y=j.local?.name;if(!Y)continue;let J=j.imported?.name??(typeof j.imported?.value==="string"?j.imported.value:Y);q.valueImportBindingsByLocalName.set(Y,{localName:Y,importedName:J,source:Z})}}function l7(q,Q,Z){let j=Q+1;while(j<q.length){if(q[j]==="\\"){j+=2;continue}if(q[j]===Z)return j+1;j++}return j}function c7(q,Q){let Z=Q+1,j=0;while(Z<q.length){let Y=q[Z];if(Y==="\\"){Z+=2;continue}if(j===0){if(Y==="`")return Z+1;if(Y==="$"&&q[Z+1]==="{"){j=1,Z+=2;continue}Z++;continue}if(Y==="{")j++;else if(Y==="}")j--;else if(Y==='"'||Y==="'"){Z=l7(q,Z,Y);continue}else if(Y==="`"){Z=c7(q,Z);continue}Z++}return Z}function $q(q,Q){let Z=[],j=q.length,Y=0;while(Y<j){let J=q[Y];if(J==='"'||J==="'"){Y=l7(q,Y,J);continue}if(J==="`"){Y=c7(q,Y);continue}if(J==="/"&&q[Y+1]==="/"){let K=Y+2;while(K<j&&q[K]!==`
17
- `)K++;Y=K;continue}if(J==="/"&&q[Y+1]==="*"){let K=Y,W=Y+2;while(W<j&&!(q[W]==="*"&&q[W+1]==="/"))W++;let V=Math.min(W+2,j),R=q.slice(K,V);Z.push({end:V+Q,isJsDoc:R.startsWith("/**")&&R.length>4,text:R}),Y=V;continue}Y++}return Z}function m7(q,Q,Z){if(!q||typeof q!=="object"||!("type"in q))return;let j=q;if(j.type==="FunctionDeclaration"){if(j.id?.type==="Identifier"&&j.id.name)Z.push({name:j.id.name,start:Q});return}if(j.type==="VariableDeclaration"){for(let Y of j.declarations??[])if(Y?.id?.type==="Identifier"&&Y.id.name)Z.push({name:Y.id.name,start:Q})}}function Lq(q){let Q=[];for(let Z of q){if(!Z||typeof Z!=="object"||!("type"in Z))continue;let j=Z;if(j.start===void 0)continue;if(j.type==="ExportNamedDeclaration"&&j.declaration)m7(j.declaration,j.start,Q);else m7(j,j.start,Q)}return Q}function wq(q,Q,Z){let j;for(let Y of q){if(Y.end>Q)break;if(!Y.isJsDoc)continue;if(!M9.test(Z.slice(Y.end,Q)))continue;j=Y}return j}function i7(q,Q){let Z=new Map;if(!q.source)return Z;let j=[q.parsed?.module,q.parsed?.instance],Y=[],J=[];for(let K of j){let W=K?.content;if(!W?.body||W.start===void 0||W.end===void 0)continue;Y.push(...$q(q.source.slice(W.start,W.end),W.start)),J.push(...Lq(W.body))}Y.sort((K,W)=>K.end-W.end);for(let K of J){let W=wq(Y,K.start,q.source);if(!W)continue;let V=S1(W.text,{spacing:"preserve"}),{type:R,description:z}=$9(V);if(!R)continue;Z.set(K.name,{type:Q.aliasType(R.type),description:z||R.description})}return Z}function s8(q,Q,Z){let j=Z._,Y=!1;function J(W,{next:V,state:R}){V(R)}function K(W,V,R){if(Y)return;if(!W.type)return;let z,M={},$={path:V,state:R,next:(P=R)=>{V.push(W);for(let A in W){if(A==="type")continue;let D=W[A];if(D&&typeof D==="object")if(Array.isArray(D)){let v={},y=D.length,h=!1;for(let n=0;n<y;n++){let g=D[n];if(g&&typeof g==="object"){let j8=K(g,V,P);if(j8)v[n]=j8,h=!0}}if(h)M[A]=D.map((n,g)=>v[g]??n)}else{let v=K(D,V,P);if(v)M[A]=v}}if(V.pop(),Object.keys(M).length>0)return d7(W,M)},stop:()=>{Y=!0},visit:(P,A=R)=>{V.push(W);let D=K(P,V,A)??P;return V.pop(),D}},F=Z[W.type]??J;if(j){let P;if(z=j(W,{...$,next:(A=R)=>{return R=A,P=F(W,{...$,state:A}),P}}),!z&&P)z=P}else z=F(W,$);if(!z){if(Object.keys(M).length>0)z=d7(W,M)}if(z)return z}return K(q,[],Q)??q}function d7(q,Q){let Z={},j=Object.getOwnPropertyDescriptors(q);for(let Y in j)Object.defineProperty(Z,Y,j[Y]);for(let Y in Q)Z[Y]=Q[Y];return Z}var p7=/^[ \t\r\n]+/;var o7=/[ \t\r\n]+$/,I9=/[^ \t\r\n]/;var z0=/[^\n]/g;var bK=Symbol("uninitialized"),kK=Symbol("filename"),TK=Symbol("hmr");var s7="http://www.w3.org/2000/svg",n7="http://www.w3.org/1998/Math/MathML",a7=["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 D9(q,Q){if(Q.length===0)return null;let j=new e7(Q).get(q);return j&&j[0][0]>0.7?j[0][1]:null}var P9=2,S9=3;function Aq(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-Cq(q,Q)/Math.max(q.length,Q.length)}function Cq(q,Q){let Z=[],j=0;for(let Y=0;Y<=Q.length;Y++)for(let J=0;J<=q.length;J++){let K;if(Y&&J)if(q.charAt(J-1)===Q.charAt(Y-1))K=j;else K=Math.min(Z[J],Z[J-1],j)+1;else K=Y+J;j=Z[J],Z[J]=K}return Z.pop()}var Iq=/[^\w, ]+/;function Pq(q,Q=2){let Z="-"+q.toLowerCase().replace(Iq,"")+"-",j=Q-Z.length,Y=[];if(j>0)for(let J=0;J<j;++J)q+="-";for(let J=0;J<Z.length-Q+1;++J)Y.push(Z.slice(J,J+Q));return Y}function r7(q,Q=2){let Z={},j=Pq(q,Q),Y=0;for(Y;Y<j.length;++Y)if(j[Y]in Z)Z[j[Y]]+=1;else Z[j[Y]]=1;return Z}function t7(q,Q){return Q[0]-q[0]}class e7{exact_set={};match_dict={};items={};constructor(q){for(let Q=P9;Q<S9+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=P9;for(Z;Z<S9+1;++Z)this._add(q,Z)}_add(q,Q){let Z=q.toLowerCase(),j=this.items[Q]||[],Y=j.length;j.push(0);let J=r7(Z,Q),K=0,W,V;for(W in J)if(V=J[W],K+=Math.pow(V,2),W in this.match_dict)this.match_dict[W].push([Y,V]);else this.match_dict[W]=[[Y,V]];let R=Math.sqrt(K);j[Y]=[R,Z],this.items[Q]=j,this.exact_set[Z]=q}get(q){let Q=q.toLowerCase(),Z=this.exact_set[Q];if(Z)return[[1,Z]];for(let j=S9;j>=P9;--j){let Y=this.__get(q,j);if(Y.length>0)return Y}return null}__get(q,Q){let Z=q.toLowerCase(),j={},Y=r7(Z,Q),J=this.items[Q],K=0,W,V,R,z,M;for(W in Y)if(V=Y[W],K+=Math.pow(V,2),W in this.match_dict)for(R=0;R<this.match_dict[W].length;++R)if(z=this.match_dict[W][R][0],M=this.match_dict[W][R][1],z in j)j[z]+=V*M;else j[z]=V*M;let $=Math.sqrt(K),F=[],P;for(let v in j)P=j[v],F.push([P/($*J[v][0]),J[v][1]]);F.sort(t7);let A=[],D=Math.min(50,F.length);for(let v=0;v<D;++v)A.push([Aq(F[v][1],Z),F[v][1]]);F=A,F.sort(t7),A=[];for(let v=0;v<F.length;++v)if(F[v][0]===F[0][0])A.push([F[v][0],this.exact_set[F[v][1]]]);return A}}function Sq(q,Q){return q.start<=Q&&Q<q.end}function q2(q,Q={}){let{offsetLine:Z=0,offsetColumn:j=0}=Q,Y=0,J=q.split(`
18
- `).map((V,R)=>{let z=Y+V.length+1,M={start:Y,end:z,line:R};return Y=z,M}),K=0;function W(V,R){if(typeof V==="string")V=q.indexOf(V,R??0);if(V===-1)return;let z=J[K],M=V>=z.end?1:-1;while(z){if(Sq(z,V))return{line:Z+z.line,column:j+V-z.start,character:V};K+=M,z=J[K]}}return W}var Dq=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function N9(q){return Dq.includes(q)||q.toLowerCase()==="!doctype"}var Nq=["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 Q2(q){return Nq.includes(q)}var bq=["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 fK=[...bq,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var kq=["$state","$state.raw","$derived","$derived.by"],yK=[...kq,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];var Z2=/^[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 b9=[],R0,U0="(unknown)",Tq="<unknown>",O0,B0=[],Eq,vq=!1,G8;function j2(q){O0=q,B0=O0.split(`
19
- `);let Q=q2(O0,{offsetLine:1});G8=(Z)=>{let j=Q(Z);if(!j)throw Error("An impossible situation occurred");return j}}var k9,T9=[],Y2=new Map;function H2(q){Eq=!1,vq=!1,Tq=U0,O0="",B0=[],R0=(q.filename??U0).replace(/\\/g,"/"),k9=q.warning??(()=>!0),b9=[]}var hq=/^\t+/;function E9(q){return q.replace(hq,(Q)=>Q.split("\t").join(" "))}function fq(q,Q){let Z=B0,j=Math.max(0,q-2),Y=Math.min(q+3,Z.length),J=String(Y+1).length;return Z.slice(j,Y).map((K,W)=>{let V=j+W===q,R=String(W+j+1).padStart(J," ");if(V){let z=" ".repeat(J+2+E9(K.slice(0,Q)).length)+"^";return`${R}: ${E9(K)}
20
- ${z}`}return`${R}: ${E9(K)}`}).join(`
21
- `)}class T1{name="CompileDiagnostic";constructor(q,Q,Z){if(this.code=q,this.message=Q,R0!==U0)this.filename=R0;if(Z){if(this.position=Z,this.start=G8(Z[0]),this.end=G8(Z[1]),this.start&&this.end)this.frame=fq(this.start.line-1,this.end.column)}}toString(){let q=`${this.code}: ${this.message}`;if(this.filename){if(q+=`
16
+ ${d}`:d}}P1(q,{name:z,detail:i,has_argument:!1,description:$,deprecated:F,tags:C.length>0?C:void 0,source:P}),q.eventDescriptions.set(z,$),q.jsDocEventNames.add(z),q.jsDocEventSources.set(z,P),b.length=0,z=void 0,M=void 0,$=void 0,F=void 0,P=void 0,D=void 0,C=[]}},u=()=>{if(g!==void 0){let T,i;if(y.length>0)T=W9(y,void 0,!0),i=`type ${g} = ${T};`;else if(h)T=h,i=Yq(T)?`interface ${g} ${T}`:`type ${g} = ${T};`;else T="{}",i=`type ${g} = ${T};`;q.typedefs.set(g,{type:T,name:g,description:I8(o),ts:i}),y.length=0,g=void 0,h=void 0,o=void 0}},m=()=>{if(q8!==void 0){let _=`(${H.map(({name:R8,type:d,optional:a})=>{return`${R8}${a?"?":""}: ${d}`}).join(", ")}) => ${X||"void"}`,l=`type ${q8} = ${_};`;q.typedefs.set(q8,{type:_,name:q8,description:I8(U8),ts:l}),H.length=0,X=void 0,q8=void 0,U8=void 0}},K8=Y.some((T)=>T.tag==="slot"||T.tag==="snippet"),n=Y.some((T)=>T.tag==="extends"||T.tag==="extendProps");for(let{tag:T,type:i,name:_,description:l,optional:R8,default:d,source:a}of Y){let e=Q.aliasType(i),Q8=A(a);switch(T){case"extends":case"extendProps":if(q.extends={interface:_,import:e},U)U=!1;break;case"restProps":{let r=_?l?`${_} ${l}`:_:l,m8=X1(r)||Q8;if(!m8&&U&&!G&&J)m8=J,G=!0;if(q.rest_props={type:"Element",name:e,description:m8||void 0},U)U=!1;break}case"slot":case"snippet":{let $8=X1(b1(a));if(!$8&&U&&!G&&J)$8=J,G=!0;if(!$8&&B.length===0)$8=Q8;if(U)U=!1;N1(q,{slot_name:_,slot_props:e,slot_description:$8||void 0,slot_deprecated:L,slot_tags:B.length>0?[...B]:void 0,source:H9(q,K,a,R)}),B.length=0,L=void 0;break}case"event":{if(N(),z=_,M=e,D=a&&a.length>0?a[0].number:void 0,$=X1(b1(a))||Q8,!$&&U&&!G&&J)$=J,G=!0;if(P=H9(q,K,a,R),U)U=!1;break}case"type":if(z!==void 0)M=e;break;case"param":if(q8!==void 0)H.push({name:_,type:e,optional:R8||!1});break;case"returns":case"return":if(q8!==void 0)X=e;break;case"property":{let r={name:_,type:e,description:X1(b1(a)),optional:R8||!1,default:d};if(z!==void 0)b.push(r);else if(g!==void 0)y.push(r);break}case"typedef":{if(u(),g=P7(_),h=e,o=X1(b1(a))||Q8,!o&&U&&!G&&J)o=J,G=!0;if(U)U=!1;break}case"callback":{if(m(),q8=P7(_),U8=X1(b1(a))||Q8,!U8&&U&&!G&&J)U8=J,G=!0;if(U)U=!1;break}case"generics":if(q.generics=[_,e],U)U=!1;break;case"template":{let r=_;if(e)r=`${_} extends ${e}`;if(d)r+=` = ${d}`;if(K8&&!n){q.deferredSlotBlockGenerics.push({name:_,constraint:r});break}if(Q.accumulateGeneric(_,r),U)U=!1;break}case"deprecated":{let r=N7(_,l);if(z===void 0)L??=r;else F??=r;break}case"enum":case"class":case"implements":case"this":case"namespace":case"memberof":case"module":case"file":case"overview":break;default:{let r={name:T,body:D7(a)};if(z!==void 0&&S7.has(T))C.push(r);else B.push(r)}break}}N(),u(),m()}}function Wq({hasTypeScriptType:q,hasJSDocType:Q,inferredType:Z,finalType:j}){if(q)return"typescript";if(Q)return"jsdoc";if(Z!==void 0)return"default";if(j!==void 0)return"inferred";return"unknown"}function k1(q){let Q=q.explicitType??q.jsdocType??q.resolvedType??q.typeSeed,Z=q.jsdocParams??q.resolvedParams,j=q.jsdocReturnType??q.resolvedReturnType;if(q.isFunctionDeclaration&&Q==="() => any"&&j)Q=Z&&Z.length>0?`(${Z.map((W)=>`${W.name}${W.optional?"?":""}: ${W.type}`).join(", ")}) => ${j}`:`() => ${j}`;let Y=q.jsdocDescription??q.resolvedDescription;if(Y===void 0&&Q!==void 0)Y=q.typedefs?.get(Q)?.description;let J=Wq({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:J,description:Y,params:Z,returnType:j,isFunction:K}}function Vq(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 j=Q==="InlineComponent"?{type:"InlineComponent",name:Z}:{type:"Element",name:Z};if(Q==="Element"&&Z==="svelte:element"&&"tag"in q&&typeof q.tag==="string")j.thisValue=q.tag;return j}function T7(q,Q){if(q.rest_props!==void 0)return;let Z=Vq(Q);if(Z)q.rest_props=Z}function B8(q,Q,Z){if(!Q||q.has(Q))return;q.set(Q,Z)}function W0(q,Q){for(let Z=q.activeScopes.length-1;Z>=0;Z-=1){let j=q.activeScopes[Z]?.get(Q);if(!j)continue;return j.kind==="prop"?j.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 C9(q,Q){let Z=X8(Q);if(!Z)return;for(let j of Z){let Y=W0(q,j);if(Y)q.reactive_vars.add(Y)}}function V0(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 E7(q){if(!q||typeof q!=="object"||!("type"in q))return!1;let Q=String(q.type);return Q==="FunctionDeclaration"||Q==="FunctionExpression"||Q==="ArrowFunctionExpression"}function Gq(q,Q){let Z=q.scopeDeclarations.get(Q);if(!Z)Z=new Map,q.scopeDeclarations.set(Q,Z);return Z}function zq(q,Q,Z){let j=[];if(Z.id.type==="Identifier")return j.push({kind:"local",name:Z.id.name}),j;if(Z.id.type!=="ObjectPattern")return j;for(let Y of Z.id.properties){if(Y.type==="RestElement"){if(Y.argument.type==="Identifier")j.push({kind:"local",name:Y.argument.name});continue}if(Y.computed)continue;let J=q.getPropertyName(Y.key);if(!J)continue;let K;if(Y.value.type==="Identifier")K=Y.value.name;else if(Y.value.type==="AssignmentPattern"&&Y.value.left.type==="Identifier")K=Y.value.left.name;if(!K)continue;j.push({kind:"prop",name:K,publicPropName:J})}return j}function A9(q,Q,Z,j,Y){if(!o6(Q))return;let J=Y?.allowRunesProps??!1,K=Y?.forceProp??!1,W=Q;for(let V of W.declarations){if(J&&c8(e8(V.init),"$props")){for(let M of zq(q,W,V))B8(M.kind==="prop"?Z:j,M.name,M.kind==="prop"?{kind:"prop",publicPropName:M.publicPropName}:{kind:"local"});continue}let R=W.kind==="var"?j:Z,z=K?"prop":"local";for(let M of X8(V.id))B8(R,M,z==="prop"?{kind:"prop",publicPropName:M}:{kind:"local"})}}function Oq(q,Q){if("id"in q&&q.id&&typeof q.id==="object"&&"name"in q.id&&typeof q.id.name==="string")B8(Q,q.id.name,{kind:"local"});for(let Z of q.params)for(let j of X8(Z))B8(Q,j,{kind:"local"})}function Uq(q,Q,Z,j){if(!Array.isArray(Q))return;for(let Y of Q){if(!Y||typeof Y!=="object"||!("type"in Y))continue;switch(Y.type){case"VariableDeclaration":A9(q,Y,Z,j);break;case"FunctionDeclaration":if(Y.id?.name)B8(Z,Y.id.name,{kind:"local"});break;case"ClassDeclaration":if(Y.id?.name)B8(Z,Y.id.name,{kind:"local"});break}}}function Rq(q,Q,Z){if(!Z||typeof Z!=="object")return;let j="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(!j||!("body"in j)||!Array.isArray(j.body))return;for(let Y of j.body){if(!Y||typeof Y!=="object"||!("type"in Y))continue;switch(Y.type){case"ImportDeclaration":for(let J of Y.specifiers??[])if(J.local?.name)B8(Q.componentScope,J.local.name,{kind:"local"});break;case"VariableDeclaration":A9(q,Y,Q.componentScope,Q.componentScope,{allowRunesProps:!0});break;case"FunctionDeclaration":if(Y.id?.name)B8(Q.componentScope,Y.id.name,{kind:"local"});break;case"ClassDeclaration":if(Y.id?.name)B8(Q.componentScope,Y.id.name,{kind:"local"});break;case"ExportNamedDeclaration":if(!Y.declaration||typeof Y.declaration!=="object"||!("type"in Y.declaration))break;if(Y.declaration.type==="VariableDeclaration")A9(q,Y.declaration,Q.componentScope,Q.componentScope,{forceProp:!0});else if(Y.declaration.type==="FunctionDeclaration"&&Y.declaration.id?.name)B8(Q.componentScope,Y.declaration.id.name,{kind:"prop",publicPropName:Y.declaration.id.name});break}}}function v7(q,Q){Q.componentScope.clear(),Q.scopeDeclarations=new WeakMap,Q.activeScopes.length=0,Rq(q,Q,Q.parsed?.instance)}function h7(q){return{varScopeStack:[q.componentScope]}}function f7(q,Q,Z,j){if(!V0(j))return;let Y=Gq(Q,j),J=Z.varScopeStack[Z.varScopeStack.length-1]??Q.componentScope;switch(String(j.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":Oq(j,Y);break;case"BlockStatement":Uq(q,j.body,Y,J);break;case"CatchClause":if("param"in j)for(let W of X8(j.param))B8(Y,W,{kind:"local"});break;case"EachBlock":{let W=j;for(let V of X8(W.context))B8(Y,V,{kind:"local"});if(typeof W.index==="string")B8(Y,W.index,{kind:"local"});else if(W.index&&"name"in W.index)B8(Y,W.index.name,{kind:"local"});break}case"ThenBlock":if("value"in j)for(let W of X8(j.value))B8(Y,W,{kind:"local"});break;case"CatchBlock":if("error"in j)for(let W of X8(j.error))B8(Y,W,{kind:"local"});break}if(E7(j))Z.varScopeStack.push(Y)}function y7(q,Q){if(E7(Q))q.varScopeStack.pop()}var Bq=new Set(["$state","$derived","$effect","$props","$bindable","$inspect","$host"]);function Fq(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 Mq(q,Q){for(let Z=Q.length-1;Z>=0;Z-=1)if(Q[Z]?.has(q))return!0;return!1}function $q(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 j of Z.params??[])X8(j,Q);break}case"BlockStatement":G0(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 G0(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 j of Z.specifiers??[])if(j.local?.name)Q.add(j.local.name);break;case"VariableDeclaration":for(let j of Z.declarations??[])X8(j.id,Q);break;case"FunctionDeclaration":case"ClassDeclaration":{let j=Z.id?.name;if(j)Q.add(j);break}case"ExportNamedDeclaration":{let j=Z.declaration;if(j&&typeof j==="object"&&"type"in j)G0([j],Q);break}}}}function I9(q,Q){if(!q||typeof q!=="object")return!1;let Z=[...Q],j=!1;return h8(q,{enter(Y,J){if(j){this.skip();return}if(V0(Y))Z.push($q(Y));if(J&&Y.type==="Identifier"&&Bq.has(Y.name)&&!J.type.startsWith("TS")&&Fq(Y,J)&&!Mq(Y.name,Z))j=!0,this.skip()},leave(Y){if(V0(Y))Z.pop()}}),j}function g7(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 _7(q){if(q.runesOptionOverride!==void 0)return q.runesOptionOverride?"runes":"legacy";let Q=q.parsed;if(!Q)return"legacy";let Z=new Set;G0(g7(Q.module),Z);let j=new Set;return G0(g7(Q.instance),j),I9(Q.module,[Z])||I9(Q.instance,[Z,j])||I9(Q.html,[Z,j])?"runes":"legacy"}var Lq=/[A-Za-z_$][\w$]*/g;function wq(q,Q,Z){let j=new Map,Y=Q.typeParameters?.params,J=Z.typeArguments?.params;if(!Y?.length||!J?.length)return j;for(let K=0;K<Y.length;K++){let W=Y[K]?.name,V=J[K];if(!W||V?.start===void 0||V?.end===void 0)continue;let R=Z8(q,V.start,V.end)?.trim();if(R)j.set(W,R)}return j}function Aq(q,Q){if(Q.size===0)return q;return q.replace(Lq,(Z)=>Q.get(Z)??Z)}function T1(q,Q,Z,j,Y=new Set){let J=new Map;if(!Z?.type)return J;let K=(W)=>{for(let V of W){if(V?.type!=="TSPropertySignature"||V.computed)continue;if(!V.key)continue;let R=q.getPropertyName(V.key);if(!R)continue;let z=V.typeAnnotation?.start,M=V.typeAnnotation?.end;if(z===void 0||M===void 0)continue;let $=Z8(Q,z+1,M)?.trim();if(!$)continue;J.set(R,{type:$,optional:V.optional===!0,source:J8(Q,V)})}};switch(Z.type){case"TSTypeLiteral":K(Z.members??[]);break;case"TSInterfaceDeclaration":K(Z.body?.body??[]);break;case"TSTypeAliasDeclaration":{let W=T1(q,Q,Z.typeAnnotation,j,Y);for(let[V,R]of W)J.set(V,R);break}case"TSTypeReference":{let W=z7(Z.typeName);if(!W||Y.has(W))break;let V=j.get(W);if(!V)break;Y.add(W);let R=T1(q,Q,V,j,Y);Y.delete(W);let z=wq(Q,V,Z);for(let[M,$]of R)J.set(M,z.size===0?$:{...$,type:Aq($.type,z)});break}case"TSIntersectionType":for(let W of Z.types??[]){let V=T1(q,Q,W,j,Y);for(let[R,z]of V)J.set(R,z)}break;case"TSParenthesizedType":{let W=T1(q,Q,Z.typeAnnotation,j,Y);for(let[V,R]of W)J.set(V,R);break}}return J}function x7(q,Q,Z){if(Q.runesPropsDeclarationMetadataByDeclaratorStart.clear(),Q.explicitPropTypesByName.clear(),Q.explicitVariableTypesByName.clear(),Q.typeImportBindingsByLocalName.clear(),Q.localTypeDeclarationsByName.clear(),Q.typedRunesPropsDeclarations.length=0,!Q.source)return;let j=Z;Q.scriptLanguage=q.resolveScriptLanguage(j),Q.customElementTag=j.options?.customElement?.tag,Q.runesOptionOverride=j.options?.runes,Q.scriptGenericsAttribute=q.resolveScriptGenericsAttribute(j);let Y=j.instance?.content?.body??[];for(let J of Y){if(!J?.type)continue;if(J.type==="ImportDeclaration"&&J.source?.value)for(let K of J.specifiers??[]){let W=K.local?.name;if(!W)continue;if(!(J.importKind==="type"||K.importKind==="type"))continue;let R,z;if(K.type==="ImportSpecifier")R="named",z=K.imported?.type==="Identifier"?K.imported.name:typeof K.imported?.value==="string"?K.imported.value:void 0;else if(K.type==="ImportDefaultSpecifier")R="default";else if(K.type==="ImportNamespaceSpecifier")R="namespace";if(!R)continue;Q.typeImportBindingsByLocalName.set(W,{importedName:z,localName:W,source:String(J.source.value),specifierType:R})}if((J.type==="TSInterfaceDeclaration"||J.type==="TSTypeAliasDeclaration")&&J.id?.name&&J.start!==void 0&&J.end!==void 0)Q.localTypeDeclarationsByName.set(J.id.name,{code:Z8(Q,J.start,J.end)?.trim()??"",node:J,start:J.start});if(J.type==="ExportNamedDeclaration"&&J.declaration?.type==="VariableDeclaration")for(let K of J.declaration.declarations??[]){if(K.id?.type!=="Identifier"||!K.id.name)continue;let W=Y0(Q,K.id.typeAnnotation);if(W)Q.explicitPropTypesByName.set(K.id.name,W)}else if(J.type==="VariableDeclaration")for(let K of J.declarations??[]){if(K.id?.type!=="Identifier"||!K.id.name)continue;let W=Y0(Q,K.id.typeAnnotation);if(W)Q.explicitVariableTypesByName.set(K.id.name,W)}}for(let J of Y){if(!J||typeof J!=="object"||!("declarations"in J))continue;for(let K of J.declarations??[]){if(!c8(e8(K.init),"$props"))continue;let W=K.id?.typeAnnotation?void 0:n6(K.init),V=K.id?.typeAnnotation?.typeAnnotation??W,R=K.id?.typeAnnotation?Y0(Q,K.id.typeAnnotation):U7(Q,W),z=T1(q,Q,V,new Map(Array.from(Q.localTypeDeclarationsByName.entries(),([F,P])=>[F,P.node]))),M=new Set,$=new Set;if(P8(Q,V,M,$),M7(Q,M,$),K.start!==void 0){let F={canonicalType:R,props:z,referencedImportedTypes:M,referencedLocalTypes:$};if(Q.runesPropsDeclarationMetadataByDeclaratorStart.set(K.start,F),R)Q.typedRunesPropsDeclarations.push(F)}}}}function u7(q,Q,Z){for(let j of Z.declarations){if(!c8(e8(j.init),"$props"))continue;if(j.id.type==="Identifier"){Q.wholePropsLocals.add(j.id.name),Q.restPropLocals.add(j.id.name);let K=V9(Q,j.start);if(K)for(let[W,V]of K.props)I1(q,Q,W,{name:W,kind:"let",type:V.type,typeSource:"typescript",isFunction:!1,isFunctionDeclaration:!1,isRequired:!V.optional,constant:!1,reactive:!1,source:V.source});continue}if(j.id.type!=="ObjectPattern")continue;let Y=Q1(Q,q,Z),J=j.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 j.id.properties){if(K.type==="RestElement"){if(K.argument.type==="Identifier")Q.restPropLocals.add(K.argument.name);continue}let W=q.getPropertyName(K.key);if(!W)continue;let V,R;if(K.value.type==="Identifier")V=K.value.name;else{let G=K.value;V=G.left.name,R=G.right}if(!V)continue;if(q.trackPropLocalName(W,V),W==="children")Q.snippetPropLocals.add(V);let z=b7(Q,q,K)??(J===1?Y:void 0),M=G7(Q,j.start,W),{init:$,bindable:F}=K7(R),P=$==null?{isFunction:!1}:q1(q,Q,$),{value:D,type:C,isFunction:b,defaultValue:g}=P,h=M?.type===void 0&&z?.type===void 0?P.resolvedType:void 0;if(P.pendingCallDefault)Q.pendingCallDefaultCandidates.push({propName:W,location:"props",...P.pendingCallDefault});let{type:o,typeSource:y,description:q8,params:U8,returnType:H,isFunction:X}=k1({explicitType:M?.type,typeSeed:C,inferredTypeForSource:C,jsdocType:z?.type,jsdocDescription:z?.description,jsdocParams:z?.params,jsdocReturnType:z?.returnType,resolvedType:h,resolvedDescription:P.resolvedDescription,resolvedParams:P.resolvedParams,resolvedReturnType:P.resolvedReturnType,initializerIsFunction:b,isFunctionDeclaration:!1,inferIsFunctionFromTypeSignature:!0});if(F)Q.reactive_vars.add(W);I1(q,Q,W,{name:W,...V===W?{}:{localName:V},kind:"let",description:q8,binding:z?.binding,deprecated:z?.deprecated,tags:z?.tags,...F?{bindable:!0}:{},type:o,typeSource:y,value:D,defaultValue:g,params:U8,returnType:H,isFunction:X,isFunctionDeclaration:!1,isRequired:$==null&&M?.optional!==!0,constant:!1,reactive:F,source:J8(Q,K)})}}}function m7(q,Q){if(q.syntaxMode!=="runes")return;for(let[Z,j]of Array.from(q.events.entries())){if(j.type!=="dispatched")continue;if(Q.has(Z)||q.forwardedEvents.has(Z))continue;let Y=`on${Z}`,J=q.props.get(Y);if(!J)continue;let K=J.type!==void 0||J.params!==void 0||J.returnType!==void 0,W=j.detail===void 0||j.detail==="undefined"||j.detail==="null"?"() => void":`(detail: ${j.detail}) => void`;q.props.set(Y,{...J,description:J.description??j.description,type:K?J.type:W,typeSource:K?J.typeSource:"inferred",isFunction:!0}),q.events.delete(Z)}}var l7=new Set(["TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion","TSInstantiationExpression"]);function z0(q){if(!q||typeof q!=="object")return;h8(q,{enter(Q){if(!l7.has(Q.type))return;let Z=Q.expression;while(Z&&l7.has(Z.type))Z=Z.expression;if(Z)this.replace(Z)}})}function O0(q,Q){let Z=Q.source?.value;if(typeof Z!=="string"||Q.importKind==="type")return;for(let j of Q.specifiers??[]){if(j.type!=="ImportSpecifier"||j.importKind==="type")continue;let Y=j.local?.name;if(!Y)continue;let J=j.imported?.name??(typeof j.imported?.value==="string"?j.imported.value:Y);q.valueImportBindingsByLocalName.set(Y,{localName:Y,importedName:J,source:Z})}}function P9(q,Q){if(!Q)return;h8(Q,{enter(Z){if(Z.type==="ImportDeclaration")O0(q,Z);if(Z.type==="FunctionDeclaration"){let j=Z;if(j.id?.name)q.funcDecls.set(j.id.name,j)}}})}function i7(q,Q,Z){let j=Q+1;while(j<q.length){if(q[j]==="\\"){j+=2;continue}if(q[j]===Z)return j+1;j++}return j}function d7(q,Q){let Z=Q+1,j=0;while(Z<q.length){let Y=q[Z];if(Y==="\\"){Z+=2;continue}if(j===0){if(Y==="`")return Z+1;if(Y==="$"&&q[Z+1]==="{"){j=1,Z+=2;continue}Z++;continue}if(Y==="{")j++;else if(Y==="}")j--;else if(Y==='"'||Y==="'"){Z=i7(q,Z,Y);continue}else if(Y==="`"){Z=d7(q,Z);continue}Z++}return Z}function Cq(q,Q){let Z=[],j=q.length,Y=0;while(Y<j){let J=q[Y];if(J==='"'||J==="'"){Y=i7(q,Y,J);continue}if(J==="`"){Y=d7(q,Y);continue}if(J==="/"&&q[Y+1]==="/"){let K=Y+2;while(K<j&&q[K]!==`
17
+ `)K++;Y=K;continue}if(J==="/"&&q[Y+1]==="*"){let K=Y,W=Y+2;while(W<j&&!(q[W]==="*"&&q[W+1]==="/"))W++;let V=Math.min(W+2,j),R=q.slice(K,V);Z.push({end:V+Q,isJsDoc:R.startsWith("/**")&&R.length>4,text:R}),Y=V;continue}Y++}return Z}function c7(q,Q,Z){if(!q||typeof q!=="object"||!("type"in q))return;let j=q;if(j.type==="FunctionDeclaration"){if(j.id?.type==="Identifier"&&j.id.name)Z.push({name:j.id.name,start:Q});return}if(j.type==="VariableDeclaration"){for(let Y of j.declarations??[])if(Y?.id?.type==="Identifier"&&Y.id.name)Z.push({name:Y.id.name,start:Q})}}function Iq(q){let Q=[];for(let Z of q){if(!Z||typeof Z!=="object"||!("type"in Z))continue;let j=Z;if(j.start===void 0)continue;if(j.type==="ExportNamedDeclaration"&&j.declaration)c7(j.declaration,j.start,Q);else c7(j,j.start,Q)}return Q}function Pq(q,Q,Z){let j;for(let Y of q){if(Y.end>Q)break;if(!Y.isJsDoc)continue;if(!L9.test(Z.slice(Y.end,Q)))continue;j=Y}return j}function p7(q,Q){let Z=new Map;if(!q.source)return Z;let j=[q.parsed?.module,q.parsed?.instance],Y=[],J=[];for(let K of j){let W=K?.content;if(!W?.body||W.start===void 0||W.end===void 0)continue;Y.push(...Cq(q.source.slice(W.start,W.end),W.start)),J.push(...Iq(W.body))}Y.sort((K,W)=>K.end-W.end);for(let K of J){let W=Pq(Y,K.start,q.source);if(!W)continue;let V=D1(W.text,{spacing:"preserve"}),{type:R,description:z}=w9(V);if(!R)continue;Z.set(K.name,{type:Q.aliasType(R.type),description:z||R.description})}return Z}function s8(q,Q,Z){let j=Z._,Y=!1;function J(W,{next:V,state:R}){V(R)}function K(W,V,R){if(Y)return;if(!W.type)return;let z,M={},$={path:V,state:R,next:(P=R)=>{V.push(W);for(let D in W){if(D==="type")continue;let C=W[D];if(C&&typeof C==="object")if(Array.isArray(C)){let b={},g=C.length,h=!1;for(let o=0;o<g;o++){let y=C[o];if(y&&typeof y==="object"){let q8=K(y,V,P);if(q8)b[o]=q8,h=!0}}if(h)M[D]=C.map((o,y)=>b[y]??o)}else{let b=K(C,V,P);if(b)M[D]=b}}if(V.pop(),Object.keys(M).length>0)return o7(W,M)},stop:()=>{Y=!0},visit:(P,D=R)=>{V.push(W);let C=K(P,V,D)??P;return V.pop(),C}},F=Z[W.type]??J;if(j){let P;if(z=j(W,{...$,next:(D=R)=>{return R=D,P=F(W,{...$,state:D}),P}}),!z&&P)z=P}else z=F(W,$);if(!z){if(Object.keys(M).length>0)z=o7(W,M)}if(z)return z}return K(q,[],Q)??q}function o7(q,Q){let Z={},j=Object.getOwnPropertyDescriptors(q);for(let Y in j)Object.defineProperty(Z,Y,j[Y]);for(let Y in Q)Z[Y]=Q[Y];return Z}var s7=/^[ \t\r\n]+/;var n7=/[ \t\r\n]+$/,S9=/[^ \t\r\n]/;var U0=/[^\n]/g;var hK=Symbol("uninitialized"),fK=Symbol("filename"),yK=Symbol("hmr");var a7="http://www.w3.org/2000/svg",r7="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 b9(q,Q){if(Q.length===0)return null;let j=new Q2(Q).get(q);return j&&j[0][0]>0.7?j[0][1]:null}var D9=2,N9=3;function Sq(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-Dq(q,Q)/Math.max(q.length,Q.length)}function Dq(q,Q){let Z=[],j=0;for(let Y=0;Y<=Q.length;Y++)for(let J=0;J<=q.length;J++){let K;if(Y&&J)if(q.charAt(J-1)===Q.charAt(Y-1))K=j;else K=Math.min(Z[J],Z[J-1],j)+1;else K=Y+J;j=Z[J],Z[J]=K}return Z.pop()}var Nq=/[^\w, ]+/;function bq(q,Q=2){let Z="-"+q.toLowerCase().replace(Nq,"")+"-",j=Q-Z.length,Y=[];if(j>0)for(let J=0;J<j;++J)q+="-";for(let J=0;J<Z.length-Q+1;++J)Y.push(Z.slice(J,J+Q));return Y}function e7(q,Q=2){let Z={},j=bq(q,Q),Y=0;for(Y;Y<j.length;++Y)if(j[Y]in Z)Z[j[Y]]+=1;else Z[j[Y]]=1;return Z}function q2(q,Q){return Q[0]-q[0]}class Q2{exact_set={};match_dict={};items={};constructor(q){for(let Q=D9;Q<N9+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=D9;for(Z;Z<N9+1;++Z)this._add(q,Z)}_add(q,Q){let Z=q.toLowerCase(),j=this.items[Q]||[],Y=j.length;j.push(0);let J=e7(Z,Q),K=0,W,V;for(W in J)if(V=J[W],K+=Math.pow(V,2),W in this.match_dict)this.match_dict[W].push([Y,V]);else this.match_dict[W]=[[Y,V]];let R=Math.sqrt(K);j[Y]=[R,Z],this.items[Q]=j,this.exact_set[Z]=q}get(q){let Q=q.toLowerCase(),Z=this.exact_set[Q];if(Z)return[[1,Z]];for(let j=N9;j>=D9;--j){let Y=this.__get(q,j);if(Y.length>0)return Y}return null}__get(q,Q){let Z=q.toLowerCase(),j={},Y=e7(Z,Q),J=this.items[Q],K=0,W,V,R,z,M;for(W in Y)if(V=Y[W],K+=Math.pow(V,2),W in this.match_dict)for(R=0;R<this.match_dict[W].length;++R)if(z=this.match_dict[W][R][0],M=this.match_dict[W][R][1],z in j)j[z]+=V*M;else j[z]=V*M;let $=Math.sqrt(K),F=[],P;for(let b in j)P=j[b],F.push([P/($*J[b][0]),J[b][1]]);F.sort(q2);let D=[],C=Math.min(50,F.length);for(let b=0;b<C;++b)D.push([Sq(F[b][1],Z),F[b][1]]);F=D,F.sort(q2),D=[];for(let b=0;b<F.length;++b)if(F[b][0]===F[0][0])D.push([F[b][0],this.exact_set[F[b][1]]]);return D}}function kq(q,Q){return q.start<=Q&&Q<q.end}function Z2(q,Q={}){let{offsetLine:Z=0,offsetColumn:j=0}=Q,Y=0,J=q.split(`
18
+ `).map((V,R)=>{let z=Y+V.length+1,M={start:Y,end:z,line:R};return Y=z,M}),K=0;function W(V,R){if(typeof V==="string")V=q.indexOf(V,R??0);if(V===-1)return;let z=J[K],M=V>=z.end?1:-1;while(z){if(kq(z,V))return{line:Z+z.line,column:j+V-z.start,character:V};K+=M,z=J[K]}}return W}var Tq=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function k9(q){return Tq.includes(q)||q.toLowerCase()==="!doctype"}var Eq=["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 j2(q){return Eq.includes(q)}var vq=["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 uK=[...vq,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var hq=["$state","$state.raw","$derived","$derived.by"],mK=[...hq,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];var Y2=/^[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 T9=[],F0,B0="(unknown)",fq="<unknown>",R0,M0=[],yq,gq=!1,G8;function H2(q){R0=q,M0=R0.split(`
19
+ `);let Q=Z2(R0,{offsetLine:1});G8=(Z)=>{let j=Q(Z);if(!j)throw Error("An impossible situation occurred");return j}}var E9,v9=[],K2=new Map;function J2(q){yq=!1,gq=!1,fq=B0,R0="",M0=[],F0=(q.filename??B0).replace(/\\/g,"/"),E9=q.warning??(()=>!0),T9=[]}var _q=/^\t+/;function h9(q){return q.replace(_q,(Q)=>Q.split("\t").join(" "))}function xq(q,Q){let Z=M0,j=Math.max(0,q-2),Y=Math.min(q+3,Z.length),J=String(Y+1).length;return Z.slice(j,Y).map((K,W)=>{let V=j+W===q,R=String(W+j+1).padStart(J," ");if(V){let z=" ".repeat(J+2+h9(K.slice(0,Q)).length)+"^";return`${R}: ${h9(K)}
20
+ ${z}`}return`${R}: ${h9(K)}`}).join(`
21
+ `)}class E1{name="CompileDiagnostic";constructor(q,Q,Z){if(this.code=q,this.message=Q,F0!==B0)this.filename=F0;if(Z){if(this.position=Z,this.start=G8(Z[0]),this.end=G8(Z[1]),this.start&&this.end)this.frame=xq(this.start.line-1,this.end.column)}}toString(){let q=`${this.code}: ${this.message}`;if(this.filename){if(q+=`
22
22
  ${this.filename}`,this.start)q+=`:${this.start.line}:${this.start.column}`}if(this.frame)q+=`
23
- ${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 J2 extends T1{name="CompileWarning";constructor(q,Q,Z){super(q,Q,Z)}}function E1(q,Q,Z){let j=T9;if(q)j=Y2.get(q)??T9;if(j&&j.at(-1)?.has(Q))return;let Y=new J2(Q,Z,q&&q.start!==void 0?[q.start,q.end??q.start]:void 0);if(!k9(Y))return;b9.push(Y)}var X2=["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 W2(q,Q,Z){E1(q,"legacy_code",`\`${Q}\` is no longer valid — please use \`${Z}\` instead
24
- https://svelte.dev/e/legacy_code`)}function V2(q,Q,Z){E1(q,"unknown_code",`${Z?`\`${Q}\` is not a recognised code (did you mean \`${Z}\`?)`:`\`${Q}\` is not a recognised code`}
25
- https://svelte.dev/e/unknown_code`)}function v9(q,Q,Z){E1(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.
26
- https://svelte.dev/e/element_implicitly_closed`)}function G2(q){E1(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 z2(q){E1(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 yq=/^\s*svelte-ignore\s/,O2={"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"},v1=X2.concat(a7);function U2(q,Q,Z){let j=yq.exec(Q);if(!j)return[];let Y=j[0].length;q+=Y;let J=[];if(Z)for(let K of Q.slice(Y).matchAll(/([\w$-]+)(,)?/gm)){let W=K[1];if(v1.includes(W))J.push(W);else{let V=O2[W]??W.replace(/-/g,"_"),R=q+K.index,z=R+W.length;if(v1.includes(V))W2({start:R,end:z},W,V);else{let M=D9(W,v1);V2({start:R,end:z},W,M)}}if(!K[2])break}else for(let K of Q.slice(Y).matchAll(/[\w$-]+/gm)){let W=K[0];if(J.push(W),!v1.includes(W)){let V=O2[W]??W.replace(/-/g,"_");if(v1.includes(V))J.push(V)}}return J}function V1(q){let Q=q.at(0),Z=q.at(-1);if(Q?.type==="Text")if(!I9.test(Q.data))q.shift();else Q.data=Q.data.replace(p7,"");if(Z?.type==="Text")if(!I9.test(Z.data))q.pop();else Z.data=Z.data.replace(o7,"")}function R2(q,Q){return s8(Q,null,{_(j,{next:Y}){delete j.metadata,Y()},Root(j,{visit:Y}){let{instance:J,module:K,options:W}=j;if(W?.__raw__){let z=j.fragment.nodes.findIndex((M)=>W.end<=M.start);if(z===-1)z=j.fragment.nodes.length;j.fragment.nodes.splice(z,0,W.__raw__)}let V=null,R=null;if(j.fragment.nodes.length>0){let z=j.fragment.nodes.at(0),M=j.fragment.nodes.at(-1);V=z.start,R=M.end;while(/\s/.test(q[V]))V+=1;while(/\s/.test(q[R-1]))R-=1}if(J)delete J.attributes;if(K)delete K.attributes;return{html:{type:"Fragment",start:V,end:R,children:j.fragment.nodes.map((z)=>Y(z))},instance:J,module:K,css:Q.css?Y(Q.css):void 0,_comments:Q.comments?.length>0?Q.comments:void 0}},AnimateDirective(j){return{...j,type:"Animation"}},AwaitBlock(j,{visit:Y}){let J={type:"PendingBlock",start:null,end:null,children:j.pending?.nodes.map((V)=>Y(V))??[],skip:!0},K={type:"ThenBlock",start:null,end:null,children:j.then?.nodes.map((V)=>Y(V))??[],skip:!0},W={type:"CatchBlock",start:null,end:null,children:j.catch?.nodes.map((V)=>Y(V))??[],skip:!0};if(j.pending){let V=j.pending.nodes.at(0),R=j.pending.nodes.at(-1);J.start=V?.start??q.indexOf("}",j.expression.end)+1,J.end=R?.end??J.start,J.skip=!1}if(j.then){let V=j.then.nodes.at(0),R=j.then.nodes.at(-1);K.start=J.end??V?.start??q.indexOf("}",j.expression.end)+1,K.end=R?.end??q.lastIndexOf("}",J.end??j.expression.end)+1,K.skip=!1}if(j.catch){let V=j.catch.nodes.at(0),R=j.catch.nodes.at(-1);W.start=K.end??J.end??V?.start??q.indexOf("}",j.expression.end)+1,W.end=R?.end??q.lastIndexOf("}",K.end??J.end??j.expression.end)+1,W.skip=!1}return{type:"AwaitBlock",start:j.start,end:j.end,expression:j.expression,value:j.value,error:j.error,pending:J,then:K,catch:W}},BindDirective(j){return{...j,type:"Binding"}},ClassDirective(j){return{...j,type:"Class"}},Comment(j){return{...j,ignores:U2(j.start,j.data,!1)}},ComplexSelector(j,{next:Y}){Y();let J=[];for(let K of j.children){if(K.combinator)J.push(K.combinator);J.push(...K.selectors)}return{type:"Selector",start:j.start,end:j.end,children:J}},Component(j,{visit:Y}){return{type:"InlineComponent",start:j.start,end:j.end,name:j.name,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},ConstTag(j){if(j.expression!==void 0)return j;let Y=j,{id:J}={...Y.declaration.declarations[0]};return delete J.typeAnnotation,{type:"ConstTag",start:Y.start,end:j.end,expression:{type:"AssignmentExpression",start:(Y.declaration.start??0)+6,end:Y.declaration.end??0,operator:"=",left:J,right:Y.declaration.declarations[0].init}}},DeclarationTag(j){return j},KeyBlock(j,{visit:Y}){return V1(j.fragment.nodes),{type:"KeyBlock",start:j.start,end:j.end,expression:j.expression,children:j.fragment.nodes.map((J)=>Y(J))}},EachBlock(j,{visit:Y}){let J=void 0;if(j.fallback){let K=j.fallback.nodes.at(0),W=q.lastIndexOf("{",j.end-1),V=K?.start??W;V1(j.fallback.nodes),J={type:"ElseBlock",start:V,end:W,children:j.fallback.nodes.map((R)=>Y(R))}}return V1(j.body.nodes),{type:"EachBlock",start:j.start,end:j.end,children:j.body.nodes.map((K)=>Y(K)),context:j.context,expression:j.expression,index:j.index,key:j.key,else:J}},ExpressionTag(j,{path:Y}){let J=Y.at(-1);if(J?.type==="Attribute"){if(q[J.start]==="{")return{type:"AttributeShorthand",start:j.start,end:j.end,expression:j.expression}}return{type:"MustacheTag",start:j.start,end:j.end,expression:j.expression}},HtmlTag(j){return{...j,type:"RawMustacheTag"}},IfBlock(j,{visit:Y}){let J=void 0;if(j.alternate){let W=j.alternate.nodes;if(W.length===1&&W[0].type==="IfBlock"&&W[0].elseif)W=W[0].consequent.nodes;let V=q.lastIndexOf("{",j.end-1),R=W.at(0)?.start??V;V1(j.alternate.nodes),J={type:"ElseBlock",start:R,end:V,children:j.alternate.nodes.map((z)=>Y(z))}}let K=j.elseif?j.consequent.nodes[0]?.start??q.lastIndexOf("{",j.end-1):j.start;return V1(j.consequent.nodes),{type:"IfBlock",start:K,end:j.end,expression:j.test,children:j.consequent.nodes.map((W)=>Y(W)),else:J,elseif:j.elseif?!0:void 0}},OnDirective(j){return{...j,type:"EventHandler"}},SnippetBlock(j,{visit:Y}){return V1(j.body.nodes),{type:"SnippetBlock",start:j.start,end:j.end,expression:j.expression,parameters:j.parameters,children:j.body.nodes.map((J)=>Y(J)),typeParams:j.typeParams}},SvelteBoundary(j,{visit:Y}){return V1(j.fragment.nodes),{type:"SvelteBoundary",name:"svelte:boundary",start:j.start,end:j.end,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},RegularElement(j,{visit:Y}){return{type:"Element",start:j.start,end:j.end,name:j.name,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},SlotElement(j,{visit:Y}){return{type:"Slot",start:j.start,end:j.end,name:j.name,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},Attribute(j,{visit:Y,next:J,path:K}){if(j.value!==!0&&!Array.isArray(j.value)){K.push(j);let W=[Y(j.value)];return K.pop(),{...j,value:W}}else return J()},StyleDirective(j,{visit:Y,next:J,path:K}){if(j.value!==!0&&!Array.isArray(j.value)){K.push(j);let W=[Y(j.value)];return K.pop(),{...j,value:W}}else return J()},SpreadAttribute(j){return{...j,type:"Spread"}},StyleSheet(j,Y){return{...j,...Y.next(),type:"Style"}},SvelteBody(j,{visit:Y}){return{type:"Body",name:"svelte:body",start:j.start,end:j.end,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},SvelteComponent(j,{visit:Y}){return{type:"InlineComponent",name:"svelte:component",start:j.start,end:j.end,expression:j.expression,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},SvelteDocument(j,{visit:Y}){return{type:"Document",name:"svelte:document",start:j.start,end:j.end,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},SvelteElement(j,{visit:Y}){let J=j.tag;if(J.type==="Literal"&&typeof J.value==="string"&&q[j.tag.start-1]!=="{")J=J.value;return{type:"Element",name:"svelte:element",start:j.start,end:j.end,tag:J,attributes:j.attributes.map((K)=>Y(K)),children:j.fragment.nodes.map((K)=>Y(K))}},SvelteFragment(j,{visit:Y}){return{type:"SlotTemplate",name:"svelte:fragment",start:j.start,end:j.end,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},SvelteHead(j,{visit:Y}){return{type:"Head",name:"svelte:head",start:j.start,end:j.end,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},SvelteOptions(j,{visit:Y}){return{type:"Options",name:"svelte:options",start:j.start,end:j.end,attributes:j.attributes.map((J)=>Y(J))}},SvelteSelf(j,{visit:Y}){return{type:"InlineComponent",name:"svelte:self",start:j.start,end:j.end,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},SvelteWindow(j,{visit:Y}){return{type:"Window",name:"svelte:window",start:j.start,end:j.end,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},Text(j,{path:Y}){let J=Y.at(-1);if(J?.type==="RegularElement"&&J.name==="style")return{type:"Text",start:j.start,end:j.end,data:j.data}},TitleElement(j,{visit:Y}){return{type:"Title",name:"title",start:j.start,end:j.end,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},TransitionDirective(j){return{...j,type:"Transition"}},UseDirective(j){return{...j,type:"Action"}},LetDirective(j){return{...j,type:"Let"}}})}var b0={};G3(b0,{version:()=>Z5,tokenizer:()=>LQ,tokTypes:()=>O,tokContexts:()=>Z8,parseExpressionAt:()=>$Q,parse:()=>MQ,nonASCIIwhitespace:()=>m9,lineBreakG:()=>C2,lineBreak:()=>M8,keywordTypes:()=>C0,isNewLine:()=>z1,isIdentifierStart:()=>A8,isIdentifierChar:()=>y8,getLineInfo:()=>l9,defaultOptions:()=>M0,TokenType:()=>o,Token:()=>N0,TokContext:()=>N8,SourceLocation:()=>y1,Position:()=>B1,Parser:()=>Y8,Node:()=>_1});var gq=[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],L2=[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_・",w2="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",f9={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"},y9="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",xq={5:y9,"5module":y9+" export import",6:y9+" const class extends export import super"},A2=/^in(stanceof)?$/,uq=new RegExp("["+w2+"]"),mq=new RegExp("["+w2+_q+"]");function g9(q,Q){var Z=65536;for(var j=0;j<Q.length;j+=2){if(Z+=Q[j],Z>q)return!1;if(Z+=Q[j+1],Z>=q)return!0}return!1}function A8(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&&uq.test(String.fromCharCode(q));if(Q===!1)return!1;return g9(q,L2)}function y8(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&&mq.test(String.fromCharCode(q));if(Q===!1)return!1;return g9(q,L2)||g9(q,gq)}var o=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 S8(q,Q){return new o(q,{beforeExpr:!0,binop:Q})}var D8={beforeExpr:!0},L8={startsExpr:!0},C0={};function p(q,Q){if(Q===void 0)Q={};return Q.keyword=q,C0[q]=new o(q,Q)}var O={num:new o("num",L8),regexp:new o("regexp",L8),string:new o("string",L8),name:new o("name",L8),privateId:new o("privateId",L8),eof:new o("eof"),bracketL:new o("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new o("]"),braceL:new o("{",{beforeExpr:!0,startsExpr:!0}),braceR:new o("}"),parenL:new o("(",{beforeExpr:!0,startsExpr:!0}),parenR:new o(")"),comma:new o(",",D8),semi:new o(";",D8),colon:new o(":",D8),dot:new o("."),question:new o("?",D8),questionDot:new o("?."),arrow:new o("=>",D8),template:new o("template"),invalidTemplate:new o("invalidTemplate"),ellipsis:new o("...",D8),backQuote:new o("`",L8),dollarBraceL:new o("${",{beforeExpr:!0,startsExpr:!0}),eq:new o("=",{beforeExpr:!0,isAssign:!0}),assign:new o("_=",{beforeExpr:!0,isAssign:!0}),incDec:new o("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new o("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:S8("||",1),logicalAND:S8("&&",2),bitwiseOR:S8("|",3),bitwiseXOR:S8("^",4),bitwiseAND:S8("&",5),equality:S8("==/!=/===/!==",6),relational:S8("</>/<=/>=",7),bitShift:S8("<</>>/>>>",8),plusMin:new o("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:S8("%",10),star:S8("*",10),slash:S8("/",10),starstar:new o("**",{beforeExpr:!0}),coalesce:S8("??",1),_break:p("break"),_case:p("case",D8),_catch:p("catch"),_continue:p("continue"),_debugger:p("debugger"),_default:p("default",D8),_do:p("do",{isLoop:!0,beforeExpr:!0}),_else:p("else",D8),_finally:p("finally"),_for:p("for",{isLoop:!0}),_function:p("function",L8),_if:p("if"),_return:p("return",D8),_switch:p("switch"),_throw:p("throw",D8),_try:p("try"),_var:p("var"),_const:p("const"),_while:p("while",{isLoop:!0}),_with:p("with"),_new:p("new",{beforeExpr:!0,startsExpr:!0}),_this:p("this",L8),_super:p("super",L8),_class:p("class",L8),_extends:p("extends",D8),_export:p("export"),_import:p("import",L8),_null:p("null",L8),_true:p("true",L8),_false:p("false",L8),_in:p("in",{beforeExpr:!0,binop:7}),_instanceof:p("instanceof",{beforeExpr:!0,binop:7}),_typeof:p("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:p("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:p("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},M8=/\r\n?|\n|\u2028|\u2029/,C2=new RegExp(M8.source,"g");function z1(q){return q===10||q===13||q===8232||q===8233}function I2(q,Q,Z){if(Z===void 0)Z=q.length;for(var j=Q;j<Z;j++){var Y=q.charCodeAt(j);if(z1(Y))return j<Z-1&&Y===13&&q.charCodeAt(j+1)===10?j+2:j+1}return-1}var m9=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,W8=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,P2=Object.prototype,lq=P2.hasOwnProperty,cq=P2.toString,F1=Object.hasOwn||function(q,Q){return lq.call(q,Q)},B2=Array.isArray||function(q){return cq.call(q)==="[object Array]"},F2=Object.create(null);function Z1(q){return F2[q]||(F2[q]=new RegExp("^(?:"+q.replace(/ /g,"|")+")$"))}function n8(q){if(q<=65535)return String.fromCharCode(q);return q-=65536,String.fromCharCode((q>>10)+55296,(q&1023)+56320)}var iq=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,B1=function(Q,Z){this.line=Q,this.column=Z};B1.prototype.offset=function(Q){return new B1(this.line,this.column+Q)};var y1=function(Q,Z,j){if(this.start=Z,this.end=j,Q.sourceFile!==null)this.source=Q.sourceFile};function l9(q,Q){for(var Z=1,j=0;;){var Y=I2(q,j,Q);if(Y<0)return new B1(Z,Q-j);++Z,j=Y}}var M0={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},M2=!1;function dq(q){var Q={};for(var Z in M0)Q[Z]=q&&F1(q,Z)?q[Z]:M0[Z];if(Q.ecmaVersion==="latest")Q.ecmaVersion=1e8;else if(Q.ecmaVersion==null){if(!M2&&typeof console==="object"&&console.warn)M2=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
27
- 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(B2(Q.onToken)){var j=Q.onToken;Q.onToken=function(Y){return j.push(Y)}}if(B2(Q.onComment))Q.onComment=pq(Q,Q.onComment);if(Q.sourceType==="commonjs"&&Q.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return Q}function pq(q,Q){return function(Z,j,Y,J,K,W){var V={type:Z?"Block":"Line",value:j,start:Y,end:J};if(q.locations)V.loc=new y1(this,K,W);if(q.ranges)V.range=[Y,J];Q.push(V)}}var G1=1,O1=2,c9=4,S2=8,i9=16,D2=32,I0=64,N2=128,U1=256,g1=512,b2=1024,P0=G1|O1|U1;function d9(q,Q){return O1|(q?c9:0)|(Q?S2:0)}var $0=0,p9=1,r8=2,k2=3,T2=4,E2=5,Y8=function(Q,Z,j){this.options=Q=dq(Q),this.sourceFile=Q.sourceFile,this.keywords=Z1(xq[Q.ecmaVersion>=6?6:Q.sourceType==="module"?"5module":5]);var Y="";if(Q.allowReserved!==!0){if(Y=f9[Q.ecmaVersion>=6?6:Q.ecmaVersion===5?5:3],Q.sourceType==="module")Y+=" await"}this.reservedWords=Z1(Y);var J=(Y?Y+" ":"")+f9.strict;if(this.reservedWordsStrict=Z1(J),this.reservedWordsStrictBind=Z1(J+" "+f9.strictBind),this.input=String(Z),this.containsEsc=!1,this.pos=j||0,this.curLine=1,Q.startLocation)this.lineStart=this.pos-Q.startLocation.column,this.curLine=Q.startLocation.line;else if(j){if(this.lineStart=this.input.lastIndexOf(`
28
- `,j-1)+1,this.options.locations)this.curLine=this.input.slice(0,this.lineStart).split(M8).length}else this.lineStart=0;if(this.type=O.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=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"?O1:G1),this.regexpState=null,this.privateNameStack=[]},k8={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}};Y8.prototype.parse=function(){var Q=this,Z=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return Q.parseTopLevel(Z)})};k8.inFunction.get=function(){return(this.currentVarScope().flags&O1)>0};k8.inGenerator.get=function(){return(this.currentVarScope().flags&S2)>0};k8.inAsync.get=function(){return(this.currentVarScope().flags&c9)>0};k8.canAwait.get=function(){for(var q=this.scopeStack.length-1;q>=0;q--){var Q=this.scopeStack[q],Z=Q.flags;if(Z&(U1|g1))return!1;if(Z&O1)return(Z&c9)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};k8.allowReturn.get=function(){if(this.inFunction)return!0;if(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&G1)return!0;return!1};k8.allowSuper.get=function(){var q=this.currentThisScope(),Q=q.flags;return(Q&I0)>0||this.options.allowSuperOutsideMethod};k8.allowDirectSuper.get=function(){return(this.currentThisScope().flags&N2)>0};k8.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};k8.allowNewDotTarget.get=function(){for(var q=this.scopeStack.length-1;q>=0;q--){var Q=this.scopeStack[q],Z=Q.flags;if(Z&(U1|g1)||Z&O1&&!(Z&i9))return!0}return!1};k8.allowUsing.get=function(){var q=this.currentScope(),Q=q.flags;if(Q&b2)return!1;if(!this.inModule&&Q&G1)return!1;return!0};k8.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&U1)>0};Y8.extend=function(){var Q=[],Z=arguments.length;while(Z--)Q[Z]=arguments[Z];var j=this;for(var Y=0;Y<Q.length;Y++)j=Q[Y](j);return j};Y8.parse=function(Q,Z){return new this(Z,Q).parse()};Y8.parseExpressionAt=function(Q,Z,j){var Y=new this(j,Q,Z);return Y.nextToken(),Y.parseExpression()};Y8.tokenizer=function(Q,Z){return new this(Z,Q)};Object.defineProperties(Y8.prototype,k8);var F8=Y8.prototype,oq=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;F8.strictDirective=function(q){if(this.options.ecmaVersion<5)return!1;for(;;){W8.lastIndex=q,q+=W8.exec(this.input)[0].length;var Q=oq.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),j=Z.index+Z[0].length,Y=this.input.charAt(j);return Y===";"||Y==="}"||M8.test(Z[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(Y)||Y==="!"&&this.input.charAt(j+1)==="=")}if(q+=Q[0].length,W8.lastIndex=q,q+=W8.exec(this.input)[0].length,this.input[q]===";")q++}};F8.eat=function(q){if(this.type===q)return this.next(),!0;else return!1};F8.isContextual=function(q){return this.type===O.name&&this.value===q&&!this.containsEsc};F8.eatContextual=function(q){if(!this.isContextual(q))return!1;return this.next(),!0};F8.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}};F8.expectContextual=function(q){if(!this.eatContextual(q))this.unexpected()};F8.canInsertSemicolon=function(){return this.type===O.eof||this.type===O.braceR||M8.test(this.input.slice(this.lastTokEnd,this.start))};F8.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};F8.semicolon=function(){if(!this.eat(O.semi)&&!this.insertSemicolon())this.unexpected()};F8.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}};F8.expect=function(q){this.eat(q)||this.unexpected()};F8.unexpected=function(q){this.raise(q!=null?q:this.start,"Unexpected token")};var S0=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};F8.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")};F8.checkExpressionErrors=function(q,Q){if(!q)return!1;var{shorthandAssign:Z,doubleProto:j}=q;if(!Q)return Z>=0||j>=0;if(Z>=0)this.raise(Z,"Shorthand property assignments are valid only in destructuring patterns");if(j>=0)this.raiseRecoverable(j,"Redefinition of __proto__ property")};F8.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")};F8.isSimpleAssignTarget=function(q){if(q.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(q.expression);return q.type==="Identifier"||q.type==="MemberExpression"};var T=Y8.prototype;T.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 j=0,Y=Object.keys(this.undefinedExports);j<Y.length;j+=1){var J=Y[j];this.raiseRecoverable(this.undefinedExports[J].start,"Export '"+J+"' 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 o9={kind:"loop"},sq={kind:"switch"};T.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,j=this.fullCharCodeAt(Z);if(j===91||j===92)return!0;if(q)return!1;if(j===123)return!0;if(A8(j)){var Y=Z;do Z+=j<=65535?1:2;while(y8(j=this.fullCharCodeAt(Z)));if(j===92)return!0;var J=this.input.slice(Y,Z);if(!A2.test(J))return!0}return!1};T.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!M8.test(this.input.slice(this.pos,Q))&&this.input.slice(Q,Q+8)==="function"&&(Q+8===this.input.length||!(y8(Z=this.fullCharCodeAt(Q+8))||Z===92))};T.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),j=this.pos+Z[0].length;if(M8.test(this.input.slice(this.pos,j)))return!1;if(q){var Y=j+5,J;if(this.input.slice(j,Y)!=="using"||Y===this.input.length||y8(J=this.fullCharCodeAt(Y))||J===92)return!1;W8.lastIndex=Y;var K=W8.exec(this.input);if(j=Y+K[0].length,K&&M8.test(this.input.slice(Y,j)))return!1}var W=this.fullCharCodeAt(j);if(!A8(W)&&W!==92)return!1;var V=j;do j+=W<=65535?1:2;while(y8(W=this.fullCharCodeAt(j)));if(W===92)return!0;var R=this.input.slice(V,j);if(A2.test(R))return!1;if(Q&&!q&&R==="of"){W8.lastIndex=j;var z=W8.exec(this.input);if(j=j+z[0].length,this.input.charCodeAt(j)!==61||(W=this.input.charCodeAt(j+1))===61||W===62)return!1}return!0};T.isAwaitUsing=function(q){return this.isUsingKeyword(!0,q)};T.isUsing=function(q){return this.isUsingKeyword(!1,q)};T.parseStatement=function(q,Q,Z){var j=this.type,Y=this.startNode(),J;if(this.isLet(q))j=O._var,J="let";switch(j){case O._break:case O._continue:return this.parseBreakContinueStatement(Y,j.keyword);case O._debugger:return this.parseDebuggerStatement(Y);case O._do:return this.parseDoStatement(Y);case O._for:return this.parseForStatement(Y);case O._function:if(q&&(this.strict||q!=="if"&&q!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(Y,!1,!q);case O._class:if(q)this.unexpected();return this.parseClass(Y,!0);case O._if:return this.parseIfStatement(Y);case O._return:return this.parseReturnStatement(Y);case O._switch:return this.parseSwitchStatement(Y);case O._throw:return this.parseThrowStatement(Y);case O._try:return this.parseTryStatement(Y);case O._const:case O._var:if(J=J||this.value,q&&J!=="var")this.unexpected();return this.parseVarStatement(Y,J);case O._while:return this.parseWhileStatement(Y);case O._with:return this.parseWithStatement(Y);case O.braceL:return this.parseBlock(!0,Y);case O.semi:return this.parseEmptyStatement(Y);case O._export:case O._import:if(this.options.ecmaVersion>10&&j===O._import){W8.lastIndex=this.pos;var K=W8.exec(this.input),W=this.pos+K[0].length,V=this.input.charCodeAt(W);if(V===40||V===46)return this.parseExpressionStatement(Y,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 j===O._import?this.parseImport(Y):this.parseExport(Y,Z);default:if(this.isAsyncFunction()){if(q)this.unexpected();return this.next(),this.parseFunctionStatement(Y,!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(Y,!1,R),this.semicolon(),this.finishNode(Y,"VariableDeclaration")}var z=this.value,M=this.parseExpression();if(j===O.name&&M.type==="Identifier"&&this.eat(O.colon))return this.parseLabeledStatement(Y,z,M,q);else return this.parseExpressionStatement(Y,M)}};T.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 j=0;for(;j<this.labels.length;++j){var Y=this.labels[j];if(q.label==null||Y.name===q.label.name){if(Y.kind!=null&&(Z||Y.kind==="loop"))break;if(q.label&&Z)break}}if(j===this.labels.length)this.raise(q.start,"Unsyntactic "+Q);return this.finishNode(q,Z?"BreakStatement":"ContinueStatement")};T.parseDebuggerStatement=function(q){return this.next(),this.semicolon(),this.finishNode(q,"DebuggerStatement")};T.parseDoStatement=function(q){if(this.next(),this.labels.push(o9),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")};T.parseForStatement=function(q){this.next();var Q=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(o9),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 j=this.startNode(),Y=Z?"let":this.value;return this.next(),this.parseVar(j,!0,Y),this.finishNode(j,"VariableDeclaration"),this.parseForAfterInit(q,j,Q)}var J=this.isContextual("let"),K=!1,W=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(W){var V=this.startNode();if(this.next(),W==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.parseVar(V,!0,W),this.finishNode(V,"VariableDeclaration"),this.parseForAfterInit(q,V,Q)}var R=this.containsEsc,z=new S0,M=this.start,$=Q>-1?this.parseExprSubscripts(z,"await"):this.parseExpression(!0,z);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($.start===M&&!R&&$.type==="Identifier"&&$.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)q.await=!1}if(J&&K)this.raise($.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable($,!1,z),this.checkLValPattern($),this.parseForIn(q,$)}else this.checkExpressionErrors(z,!0);if(Q>-1)this.unexpected(Q);return this.parseFor(q,$)};T.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)};T.parseFunctionStatement=function(q,Q,Z){return this.next(),this.parseFunction(q,f1|(Z?0:_9),!1,Q)};T.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")};T.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")};T.parseSwitchStatement=function(q){this.next(),q.discriminant=this.parseParenExpression(),q.cases=[],this.expect(O.braceL),this.labels.push(sq),this.enterScope(b2);var Q;for(var Z=!1;this.type!==O.braceR;)if(this.type===O._case||this.type===O._default){var j=this.type===O._case;if(Q)this.finishNode(Q,"SwitchCase");if(q.cases.push(Q=this.startNode()),Q.consequent=[],this.next(),j)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")};T.parseThrowStatement=function(q){if(this.next(),M8.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 nq=[];T.parseCatchClauseParam=function(){var q=this.parseBindingAtom(),Q=q.type==="Identifier";return this.enterScope(Q?D2:0),this.checkLValPattern(q,Q?T2:r8),this.expect(O.parenR),q};T.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")};T.parseVarStatement=function(q,Q,Z){return this.next(),this.parseVar(q,!1,Q,Z),this.semicolon(),this.finishNode(q,"VariableDeclaration")};T.parseWhileStatement=function(q){return this.next(),q.test=this.parseParenExpression(),this.labels.push(o9),q.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(q,"WhileStatement")};T.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")};T.parseEmptyStatement=function(q){return this.next(),this.finishNode(q,"EmptyStatement")};T.parseLabeledStatement=function(q,Q,Z,j){for(var Y=0,J=this.labels;Y<J.length;Y+=1){var K=J[Y];if(K.name===Q)this.raise(Z.start,"Label '"+Q+"' is already declared")}var W=this.type.isLoop?"loop":this.type===O._switch?"switch":null;for(var V=this.labels.length-1;V>=0;V--){var R=this.labels[V];if(R.statementStart===q.start)R.statementStart=this.start,R.kind=W;else break}return this.labels.push({name:Q,kind:W,statementStart:this.start}),q.body=this.parseStatement(j?j.indexOf("label")===-1?j+"label":j:"label"),this.labels.pop(),q.label=Z,this.finishNode(q,"LabeledStatement")};T.parseExpressionStatement=function(q,Q){return q.expression=Q,this.semicolon(),this.finishNode(q,"ExpressionStatement")};T.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 j=this.parseStatement(null);Q.body.push(j)}if(Z)this.strict=!1;if(this.next(),q)this.exitScope();return this.finishNode(Q,"BlockStatement")};T.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")};T.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")};T.parseVar=function(q,Q,Z,j){q.declarations=[],q.kind=Z;for(;;){var Y=this.startNode();if(this.parseVarId(Y,Z),this.eat(O.eq))Y.init=this.parseMaybeAssign(Q);else if(!j&&Z==="const"&&!(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!j&&(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(!j&&Y.id.type!=="Identifier"&&!(Q&&(this.type===O._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else Y.init=null;if(q.declarations.push(this.finishNode(Y,"VariableDeclarator")),!this.eat(O.comma))break}return q};T.parseVarId=function(q,Q){q.id=Q==="using"||Q==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(q.id,Q==="var"?p9:r8,!1)};var f1=1,_9=2,v2=4;T.parseFunction=function(q,Q,Z,j,Y){if(this.initFunction(q),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!j){if(this.type===O.star&&Q&_9)this.unexpected();q.generator=this.eat(O.star)}if(this.options.ecmaVersion>=8)q.async=!!j;if(Q&f1){if(q.id=Q&v2&&this.type!==O.name?null:this.parseIdent(),q.id&&!(Q&_9))this.checkLValSimple(q.id,this.strict||q.generator||q.async?this.treatFunctionsAsVar?p9:r8:k2)}var J=this.yieldPos,K=this.awaitPos,W=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(d9(q.async,q.generator)),!(Q&f1))q.id=this.type===O.name?this.parseIdent():null;return this.parseFunctionParams(q),this.parseFunctionBody(q,Z,!1,Y),this.yieldPos=J,this.awaitPos=K,this.awaitIdentPos=W,this.finishNode(q,Q&f1?"FunctionDeclaration":"FunctionExpression")};T.parseFunctionParams=function(q){this.expect(O.parenL),q.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};T.parseClass=function(q,Q){this.next();var Z=this.strict;this.strict=!0,this.parseClassId(q,Q),this.parseClassSuper(q);var j=this.enterClassBody(),Y=this.startNode(),J=!1;Y.body=[],this.expect(O.braceL);while(this.type!==O.braceR){var K=this.parseClassElement(q.superClass!==null);if(K){if(Y.body.push(K),K.type==="MethodDefinition"&&K.kind==="constructor"){if(J)this.raiseRecoverable(K.start,"Duplicate constructor in the same class");J=!0}else if(K.key&&K.key.type==="PrivateIdentifier"&&aq(j,K))this.raiseRecoverable(K.key.start,"Identifier '#"+K.key.name+"' has already been declared")}}return this.strict=Z,this.next(),q.body=this.finishNode(Y,"ClassBody"),this.exitClassBody(),this.finishNode(q,Q?"ClassDeclaration":"ClassExpression")};T.parseClassElement=function(q){if(this.eat(O.semi))return null;var Q=this.options.ecmaVersion,Z=this.startNode(),j="",Y=!1,J=!1,K="method",W=!1;if(this.eatContextual("static")){if(Q>=13&&this.eat(O.braceL))return this.parseClassStaticBlock(Z),Z;if(this.isClassElementNameStart()||this.type===O.star)W=!0;else j="static"}if(Z.static=W,!j&&Q>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===O.star)&&!this.canInsertSemicolon())J=!0;else j="async";if(!j&&(Q>=9||!J)&&this.eat(O.star))Y=!0;if(!j&&!J&&!Y){var V=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())K=V;else j=V}if(j)Z.computed=!1,Z.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),Z.key.name=j,this.finishNode(Z.key,"Identifier");else this.parseClassElementName(Z);if(Q<13||this.type===O.parenL||K!=="method"||Y||J){var R=!Z.static&&L0(Z,"constructor"),z=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,Y,J,z)}else this.parseClassField(Z);return Z};T.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};T.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)};T.parseClassMethod=function(q,Q,Z,j){var Y=q.key;if(q.kind==="constructor"){if(Q)this.raise(Y.start,"Constructor can't be a generator");if(Z)this.raise(Y.start,"Constructor can't be an async method")}else if(q.static&&L0(q,"prototype"))this.raise(Y.start,"Classes may not have a static property named prototype");var J=q.value=this.parseMethod(Q,Z,j);if(q.kind==="get"&&J.params.length!==0)this.raiseRecoverable(J.start,"getter should have no params");if(q.kind==="set"&&J.params.length!==1)this.raiseRecoverable(J.start,"setter should have exactly one param");if(q.kind==="set"&&J.params[0].type==="RestElement")this.raiseRecoverable(J.params[0].start,"Setter cannot use rest params");return this.finishNode(q,"MethodDefinition")};T.parseClassField=function(q){if(L0(q,"constructor"))this.raise(q.key.start,"Classes can't have a field named 'constructor'");else if(q.static&&L0(q,"prototype"))this.raise(q.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(O.eq))this.enterScope(g1|I0),q.value=this.parseMaybeAssign(),this.exitScope();else q.value=null;return this.semicolon(),this.finishNode(q,"PropertyDefinition")};T.parseClassStaticBlock=function(q){q.body=[];var Q=this.labels;this.labels=[],this.enterScope(U1|I0);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")};T.parseClassId=function(q,Q){if(this.type===O.name){if(q.id=this.parseIdent(),Q)this.checkLValSimple(q.id,r8,!1)}else{if(Q===!0)this.unexpected();q.id=null}};T.parseClassSuper=function(q){q.superClass=this.eat(O._extends)?this.parseExprSubscripts(null,!1):null};T.enterClassBody=function(){var q={declared:Object.create(null),used:[]};return this.privateNameStack.push(q),q.declared};T.exitClassBody=function(){var q=this.privateNameStack.pop(),Q=q.declared,Z=q.used;if(!this.options.checkPrivateFields)return;var j=this.privateNameStack.length,Y=j===0?null:this.privateNameStack[j-1];for(var J=0;J<Z.length;++J){var K=Z[J];if(!F1(Q,K.name))if(Y)Y.used.push(K);else this.raiseRecoverable(K.start,"Private field '#"+K.name+"' must be declared in an enclosing class")}};function aq(q,Q){var Z=Q.key.name,j=q[Z],Y="true";if(Q.type==="MethodDefinition"&&(Q.kind==="get"||Q.kind==="set"))Y=(Q.static?"s":"i")+Q.kind;if(j==="iget"&&Y==="iset"||j==="iset"&&Y==="iget"||j==="sget"&&Y==="sset"||j==="sset"&&Y==="sget")return q[Z]="true",!1;else if(!j)return q[Z]=Y,!1;else return!0}function L0(q,Q){var{computed:Z,key:j}=q;return!Z&&(j.type==="Identifier"&&j.name===Q||j.type==="Literal"&&j.value===Q)}T.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")};T.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,j=q.specifiers;Z<j.length;Z+=1){var Y=j[Z];if(this.checkUnreserved(Y.local),this.checkLocalExport(Y.local),Y.local.type==="Literal")this.raise(Y.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")};T.parseExportDeclaration=function(q){return this.parseStatement(null)};T.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,f1|v2,!1,q)}else if(this.type===O._class){var Z=this.startNode();return this.parseClass(Z,"nullableID")}else{var j=this.parseMaybeAssign();return this.semicolon(),j}};T.checkExport=function(q,Q,Z){if(!q)return;if(typeof Q!=="string")Q=Q.type==="Identifier"?Q.name:Q.value;if(F1(q,Q))this.raiseRecoverable(Z,"Duplicate export '"+Q+"'");q[Q]=!0};T.checkPatternExport=function(q,Q){var Z=Q.type;if(Z==="Identifier")this.checkExport(q,Q,Q.start);else if(Z==="ObjectPattern")for(var j=0,Y=Q.properties;j<Y.length;j+=1){var J=Y[j];this.checkPatternExport(q,J)}else if(Z==="ArrayPattern")for(var K=0,W=Q.elements;K<W.length;K+=1){var V=W[K];if(V)this.checkPatternExport(q,V)}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)};T.checkVariableExport=function(q,Q){if(!q)return;for(var Z=0,j=Q;Z<j.length;Z+=1){var Y=j[Z];this.checkPatternExport(q,Y.id)}};T.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};T.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")};T.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};T.parseImport=function(q){if(this.next(),this.type===O.string)q.specifiers=nq,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")};T.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,r8),this.finishNode(q,"ImportSpecifier")};T.parseImportDefaultSpecifier=function(){var q=this.startNode();return q.local=this.parseIdent(),this.checkLValSimple(q.local,r8),this.finishNode(q,"ImportDefaultSpecifier")};T.parseImportNamespaceSpecifier=function(){var q=this.startNode();return this.next(),this.expectContextual("as"),q.local=this.parseIdent(),this.checkLValSimple(q.local,r8),this.finishNode(q,"ImportNamespaceSpecifier")};T.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};T.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 j=this.parseImportAttribute(),Y=j.key.type==="Identifier"?j.key.name:j.key.value;if(F1(Q,Y))this.raiseRecoverable(j.key.start,"Duplicate attribute key '"+Y+"'");Q[Y]=!0,q.push(j)}return q};T.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")};T.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===O.string){var q=this.parseLiteral(this.value);if(iq.test(q.value))this.raise(q.start,"An export name cannot include a lone surrogate.");return q}return this.parseIdent(!0)};T.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)};T.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 T8=Y8.prototype;T8.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 j=0,Y=q.properties;j<Y.length;j+=1){var J=Y[j];if(this.toAssignable(J,Q),J.type==="RestElement"&&(J.argument.type==="ArrayPattern"||J.argument.type==="ObjectPattern"))this.raise(J.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};T8.toAssignableList=function(q,Q){var Z=q.length;for(var j=0;j<Z;j++){var Y=q[j];if(Y)this.toAssignable(Y,Q)}if(Z){var J=q[Z-1];if(this.options.ecmaVersion===6&&Q&&J&&J.type==="RestElement"&&J.argument.type!=="Identifier")this.unexpected(J.argument.start)}return q};T8.parseSpread=function(q){var Q=this.startNode();return this.next(),Q.argument=this.parseMaybeAssign(!1,q),this.finishNode(Q,"SpreadElement")};T8.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")};T8.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()};T8.parseBindingList=function(q,Q,Z,j){var Y=[],J=!0;while(!this.eat(q)){if(J)J=!1;else this.expect(O.comma);if(Q&&this.type===O.comma)Y.push(null);else if(Z&&this.afterTrailingComma(q))break;else if(this.type===O.ellipsis){var K=this.parseRestBinding();if(this.parseBindingListItem(K),Y.push(K),this.type===O.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");this.expect(q);break}else Y.push(this.parseAssignableListItem(j))}return Y};T8.parseAssignableListItem=function(q){var Q=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(Q),Q};T8.parseBindingListItem=function(q){return q};T8.parseMaybeDefault=function(q,Q,Z){if(Z=Z||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(O.eq))return Z;var j=this.startNodeAt(q,Q);return j.left=Z,j.right=this.parseMaybeAssign(),this.finishNode(j,"AssignmentPattern")};T8.checkLValSimple=function(q,Q,Z){if(Q===void 0)Q=$0;var j=Q!==$0;switch(q.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(q.name))this.raiseRecoverable(q.start,(j?"Binding ":"Assigning to ")+q.name+" in strict mode");if(j){if(Q===r8&&q.name==="let")this.raiseRecoverable(q.start,"let is disallowed as a lexically bound name");if(Z){if(F1(Z,q.name))this.raiseRecoverable(q.start,"Argument name clash");Z[q.name]=!0}if(Q!==E2)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(j)this.raiseRecoverable(q.start,"Binding member expression");break;case"ParenthesizedExpression":if(j)this.raiseRecoverable(q.start,"Binding parenthesized expression");return this.checkLValSimple(q.expression,Q,Z);default:this.raise(q.start,(j?"Binding":"Assigning to")+" rvalue")}};T8.checkLValPattern=function(q,Q,Z){if(Q===void 0)Q=$0;switch(q.type){case"ObjectPattern":for(var j=0,Y=q.properties;j<Y.length;j+=1){var J=Y[j];this.checkLValInnerPattern(J,Q,Z)}break;case"ArrayPattern":for(var K=0,W=q.elements;K<W.length;K+=1){var V=W[K];if(V)this.checkLValInnerPattern(V,Q,Z)}break;default:this.checkLValSimple(q,Q,Z)}};T8.checkLValInnerPattern=function(q,Q,Z){if(Q===void 0)Q=$0;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 N8=function(Q,Z,j,Y,J){this.token=Q,this.isExpr=!!Z,this.preserveSpace=!!j,this.override=Y,this.generator=!!J},Z8={b_stat:new N8("{",!1),b_expr:new N8("{",!0),b_tmpl:new N8("${",!1),p_stat:new N8("(",!1),p_expr:new N8("(",!0),q_tmpl:new N8("`",!0,!0,function(q){return q.tryReadTemplateToken()}),f_stat:new N8("function",!1),f_expr:new N8("function",!0),f_expr_gen:new N8("function",!0,!1,null,!0),f_gen:new N8("function",!1,!1,null,!0)},M1=Y8.prototype;M1.initialContext=function(){return[Z8.b_stat]};M1.curContext=function(){return this.context[this.context.length-1]};M1.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 M8.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};M1.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};M1.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};M1.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&&M8.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 x=Y8.prototype;x.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 j=q.key,Y;switch(j.type){case"Identifier":Y=j.name;break;case"Literal":Y=String(j.value);break;default:return}var J=q.kind;if(this.options.ecmaVersion>=6){if(Y==="__proto__"&&J==="init"){if(Q.proto)if(Z){if(Z.doubleProto<0)Z.doubleProto=j.start}else this.raiseRecoverable(j.start,"Redefinition of __proto__ property");Q.proto=!0}return}Y="$"+Y;var K=Q[Y];if(K){var W;if(J==="init")W=this.strict&&K.init||K.get||K.set;else W=K.init||K[J];if(W)this.raiseRecoverable(j.start,"Redefinition of property")}else K=Q[Y]={init:!1,get:!1,set:!1};K[J]=!0};x.parseExpression=function(q,Q){var Z=this;return this.catchStackOverflow(function(){var{start:j,startLoc:Y}=Z,J=Z.parseMaybeAssign(q,Q);if(Z.type===O.comma){var K=Z.startNodeAt(j,Y);K.expressions=[J];while(Z.eat(O.comma))K.expressions.push(Z.parseMaybeAssign(q,Q));return Z.finishNode(K,"SequenceExpression")}return J})};x.parseMaybeAssign=function(q,Q,Z){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(q);else this.exprAllowed=!1;var j=!1,Y=-1,J=-1,K=-1;if(Q)Y=Q.parenthesizedAssign,J=Q.trailingComma,K=Q.doubleProto,Q.parenthesizedAssign=Q.trailingComma=-1;else Q=new S0,j=!0;var W=this.start,V=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,W,V);if(this.type.isAssign){var z=this.startNodeAt(W,V);if(z.operator=this.value,this.type===O.eq)R=this.toAssignable(R,!1,Q);if(!j)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(z.left=R,this.next(),z.right=this.parseMaybeAssign(q),K>-1)Q.doubleProto=K;return this.finishNode(z,"AssignmentExpression")}else if(j)this.checkExpressionErrors(Q,!0);if(Y>-1)Q.parenthesizedAssign=Y;if(J>-1)Q.trailingComma=J;return R};x.parseMaybeConditional=function(q,Q){var Z=this.start,j=this.startLoc,Y=this.parseExprOps(q,Q);if(this.checkExpressionErrors(Q))return Y;if(!(Y.type==="ArrowFunctionExpression"&&Y.start===Z)&&this.eat(O.question)){var J=this.startNodeAt(Z,j);return J.test=Y,J.consequent=this.parseMaybeAssign(),this.expect(O.colon),J.alternate=this.parseMaybeAssign(q),this.finishNode(J,"ConditionalExpression")}return Y};x.parseExprOps=function(q,Q){var Z=this.start,j=this.startLoc,Y=this.parseMaybeUnary(Q,!1,!1,q);if(this.checkExpressionErrors(Q))return Y;return Y.start===Z&&Y.type==="ArrowFunctionExpression"?Y:this.parseExprOp(Y,Z,j,-1,q)};x.parseExprOp=function(q,Q,Z,j,Y){var J=this.type.binop;if(J!=null&&(!Y||this.type!==O._in)){if(J>j){var K=this.type===O.logicalOR||this.type===O.logicalAND,W=this.type===O.coalesce;if(W)J=O.logicalAND.binop;var V=this.value;this.next();var R=this.start,z=this.startLoc,M=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,Y),R,z,J,Y),$=this.buildBinary(Q,Z,q,M,V,K||W);if(K&&this.type===O.coalesce||W&&(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($,Q,Z,j,Y)}}return q};x.buildBinary=function(q,Q,Z,j,Y,J){if(j.type==="PrivateIdentifier")this.raise(j.start,"Private identifier can only be left side of binary expression");var K=this.startNodeAt(q,Q);return K.left=Z,K.operator=Y,K.right=j,this.finishNode(K,J?"LogicalExpression":"BinaryExpression")};x.parseMaybeUnary=function(q,Q,Z,j){var Y=this.start,J=this.startLoc,K;if(this.isContextual("await")&&this.canAwait)K=this.parseAwait(j),Q=!0;else if(this.type.prefix){var W=this.startNode(),V=this.type===O.incDec;if(W.operator=this.value,W.prefix=!0,this.next(),W.argument=this.parseMaybeUnary(null,!0,V,j),this.checkExpressionErrors(q,!0),V)this.checkLValSimple(W.argument);else if(this.strict&&W.operator==="delete"&&h2(W.argument))this.raiseRecoverable(W.start,"Deleting local variable in strict mode");else if(W.operator==="delete"&&x9(W.argument))this.raiseRecoverable(W.start,"Private fields can not be deleted");else Q=!0;K=this.finishNode(W,V?"UpdateExpression":"UnaryExpression")}else if(!Q&&this.type===O.privateId){if((j||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,j),this.checkExpressionErrors(q))return K;while(this.type.postfix&&!this.canInsertSemicolon()){var R=this.startNodeAt(Y,J);R.operator=this.value,R.prefix=!1,R.argument=K,this.checkLValSimple(K),this.next(),K=this.finishNode(R,"UpdateExpression")}}if(!Z&&!(K.type==="ArrowFunctionExpression"&&K.start===Y)&&this.eat(O.starstar))if(Q)this.unexpected(this.lastTokStart);else return this.buildBinary(Y,J,K,this.parseMaybeUnary(null,!1,!1,j),"**",!1);else return K};function h2(q){return q.type==="Identifier"||q.type==="ParenthesizedExpression"&&h2(q.expression)}function x9(q){return q.type==="MemberExpression"&&q.property.type==="PrivateIdentifier"||q.type==="ChainExpression"&&x9(q.expression)||q.type==="ParenthesizedExpression"&&x9(q.expression)}x.parseExprSubscripts=function(q,Q){var Z=this.start,j=this.startLoc,Y=this.parseExprAtom(q,Q);if(Y.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return Y;var J=this.parseSubscripts(Y,Z,j,!1,Q);if(q&&J.type==="MemberExpression"){if(q.parenthesizedAssign>=J.start)q.parenthesizedAssign=-1;if(q.parenthesizedBind>=J.start)q.parenthesizedBind=-1;if(q.trailingComma>=J.start)q.trailingComma=-1}return J};x.parseSubscripts=function(q,Q,Z,j,Y){var J=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 W=this.parseSubscript(q,Q,Z,j,J,K,Y);if(W.optional)K=!0;if(W===q||W.type==="ArrowFunctionExpression"){if(K){var V=this.startNodeAt(Q,Z);V.expression=W,W=this.finishNode(V,"ChainExpression")}return W}q=W}};x.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(O.arrow)};x.parseSubscriptAsyncArrow=function(q,Q,Z,j){return this.parseArrowExpression(this.startNodeAt(q,Q),Z,!0,j)};x.parseSubscript=function(q,Q,Z,j,Y,J,K){var W=this.options.ecmaVersion>=11,V=W&&this.eat(O.questionDot);if(j&&V)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var R=this.eat(O.bracketL);if(R||V&&this.type!==O.parenL&&this.type!==O.backQuote||this.eat(O.dot)){var z=this.startNodeAt(Q,Z);if(z.object=q,R)z.property=this.parseExpression(),this.expect(O.bracketR);else if(this.type===O.privateId&&q.type!=="Super")z.property=this.parsePrivateIdent();else z.property=this.parseIdent(this.options.allowReserved!=="never");if(z.computed=!!R,W)z.optional=V;q=this.finishNode(z,"MemberExpression")}else if(!j&&this.eat(O.parenL)){var M=new S0,$=this.yieldPos,F=this.awaitPos,P=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var A=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1,M);if(Y&&!V&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(M,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=$,this.awaitPos=F,this.awaitIdentPos=P,this.parseSubscriptAsyncArrow(Q,Z,A,K)}this.checkExpressionErrors(M,!0),this.yieldPos=$||this.yieldPos,this.awaitPos=F||this.awaitPos,this.awaitIdentPos=P||this.awaitIdentPos;var D=this.startNodeAt(Q,Z);if(D.callee=q,D.arguments=A,W)D.optional=V;q=this.finishNode(D,"CallExpression")}else if(this.type===O.backQuote){if(V||J)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var v=this.startNodeAt(Q,Z);v.tag=q,v.quasi=this.parseTemplate({isTagged:!0}),q=this.finishNode(v,"TaggedTemplateExpression")}return q};x.parseExprAtom=function(q,Q,Z){if(this.type===O.slash)this.readRegexp();var j,Y=this.potentialArrowAt===this.start;switch(this.type){case O._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(j=this.startNode(),this.next(),this.type===O.parenL&&!this.allowDirectSuper)this.raise(j.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(j,"Super");case O._this:return j=this.startNode(),this.next(),this.finishNode(j,"ThisExpression");case O.name:var J=this.start,K=this.startLoc,W=this.containsEsc,V=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!W&&V.name==="async"&&!this.canInsertSemicolon()&&this.eat(O._function))return this.overrideContext(Z8.f_expr),this.parseFunction(this.startNodeAt(J,K),0,!1,!0,Q);if(Y&&!this.canInsertSemicolon()){if(this.eat(O.arrow))return this.parseArrowExpression(this.startNodeAt(J,K),[V],!1,Q);if(this.options.ecmaVersion>=8&&V.name==="async"&&this.type===O.name&&!W&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(V=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(O.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(J,K),[V],!0,Q)}}return V;case O.regexp:var R=this.value;return j=this.parseLiteral(R.value),j.regex={pattern:R.pattern,flags:R.flags},j;case O.num:case O.string:return this.parseLiteral(this.value);case O._null:case O._true:case O._false:return j=this.startNode(),j.value=this.type===O._null?null:this.type===O._true,j.raw=this.type.keyword,this.next(),this.finishNode(j,"Literal");case O.parenL:var z=this.start,M=this.parseParenAndDistinguishExpression(Y,Q);if(q){if(q.parenthesizedAssign<0&&!this.isSimpleAssignTarget(M))q.parenthesizedAssign=z;if(q.parenthesizedBind<0)q.parenthesizedBind=z}return M;case O.bracketL:return j=this.startNode(),this.next(),j.elements=this.parseExprList(O.bracketR,!0,!0,q),this.finishNode(j,"ArrayExpression");case O.braceL:return this.overrideContext(Z8.b_expr),this.parseObj(!1,q);case O._function:return j=this.startNode(),this.next(),this.parseFunction(j,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()}};x.parseExprAtomDefault=function(){this.unexpected()};x.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()};x.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")};x.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")};x.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")};x.parseParenExpression=function(){this.expect(O.parenL);var q=this.parseExpression();return this.expect(O.parenR),q};x.shouldParseArrow=function(q){return!this.canInsertSemicolon()};x.parseParenAndDistinguishExpression=function(q,Q){var Z=this.start,j=this.startLoc,Y,J=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var K=this.start,W=this.startLoc,V=[],R=!0,z=!1,M=new S0,$=this.yieldPos,F=this.awaitPos,P;this.yieldPos=0,this.awaitPos=0;while(this.type!==O.parenR)if(R?R=!1:this.expect(O.comma),J&&this.afterTrailingComma(O.parenR,!0)){z=!0;break}else if(this.type===O.ellipsis){if(P=this.start,V.push(this.parseParenItem(this.parseRestBinding())),this.type===O.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else V.push(this.parseMaybeAssign(!1,M,this.parseParenItem));var A=this.lastTokEnd,D=this.lastTokEndLoc;if(this.expect(O.parenR),q&&this.shouldParseArrow(V)&&this.eat(O.arrow))return this.checkPatternErrors(M,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=$,this.awaitPos=F,this.parseParenArrowList(Z,j,V,Q);if(!V.length||z)this.unexpected(this.lastTokStart);if(P)this.unexpected(P);if(this.checkExpressionErrors(M,!0),this.yieldPos=$||this.yieldPos,this.awaitPos=F||this.awaitPos,V.length>1)Y=this.startNodeAt(K,W),Y.expressions=V,this.finishNodeAt(Y,"SequenceExpression",A,D);else Y=V[0]}else Y=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(Z,j);return v.expression=Y,this.finishNode(v,"ParenthesizedExpression")}else return Y};x.parseParenItem=function(q){return q};x.parseParenArrowList=function(q,Q,Z,j){return this.parseArrowExpression(this.startNodeAt(q,Q),Z,!1,j)};var rq=[];x.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 j=this.start,Y=this.startLoc;if(q.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),j,Y,!0,!1),q.callee.type==="Super")this.raiseRecoverable(j,"Invalid use of 'super'");if(this.eat(O.parenL))q.arguments=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1);else q.arguments=rq;return this.finishNode(q,"NewExpression")};x.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,`
23
+ ${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 W2 extends E1{name="CompileWarning";constructor(q,Q,Z){super(q,Q,Z)}}function v1(q,Q,Z){let j=v9;if(q)j=K2.get(q)??v9;if(j&&j.at(-1)?.has(Q))return;let Y=new W2(Q,Z,q&&q.start!==void 0?[q.start,q.end??q.start]:void 0);if(!E9(Y))return;T9.push(Y)}var V2=["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 G2(q,Q,Z){v1(q,"legacy_code",`\`${Q}\` is no longer valid — please use \`${Z}\` instead
24
+ https://svelte.dev/e/legacy_code`)}function z2(q,Q,Z){v1(q,"unknown_code",`${Z?`\`${Q}\` is not a recognised code (did you mean \`${Z}\`?)`:`\`${Q}\` is not a recognised code`}
25
+ https://svelte.dev/e/unknown_code`)}function f9(q,Q,Z){v1(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.
26
+ https://svelte.dev/e/element_implicitly_closed`)}function O2(q){v1(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 U2(q){v1(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 uq=/^\s*svelte-ignore\s/,R2={"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"},h1=V2.concat(t7);function B2(q,Q,Z){let j=uq.exec(Q);if(!j)return[];let Y=j[0].length;q+=Y;let J=[];if(Z)for(let K of Q.slice(Y).matchAll(/([\w$-]+)(,)?/gm)){let W=K[1];if(h1.includes(W))J.push(W);else{let V=R2[W]??W.replace(/-/g,"_"),R=q+K.index,z=R+W.length;if(h1.includes(V))G2({start:R,end:z},W,V);else{let M=b9(W,h1);z2({start:R,end:z},W,M)}}if(!K[2])break}else for(let K of Q.slice(Y).matchAll(/[\w$-]+/gm)){let W=K[0];if(J.push(W),!h1.includes(W)){let V=R2[W]??W.replace(/-/g,"_");if(h1.includes(V))J.push(V)}}return J}function W1(q){let Q=q.at(0),Z=q.at(-1);if(Q?.type==="Text")if(!S9.test(Q.data))q.shift();else Q.data=Q.data.replace(s7,"");if(Z?.type==="Text")if(!S9.test(Z.data))q.pop();else Z.data=Z.data.replace(n7,"")}function F2(q,Q){return s8(Q,null,{_(j,{next:Y}){delete j.metadata,Y()},Root(j,{visit:Y}){let{instance:J,module:K,options:W}=j;if(W?.__raw__){let z=j.fragment.nodes.findIndex((M)=>W.end<=M.start);if(z===-1)z=j.fragment.nodes.length;j.fragment.nodes.splice(z,0,W.__raw__)}let V=null,R=null;if(j.fragment.nodes.length>0){let z=j.fragment.nodes.at(0),M=j.fragment.nodes.at(-1);V=z.start,R=M.end;while(/\s/.test(q[V]))V+=1;while(/\s/.test(q[R-1]))R-=1}if(J)delete J.attributes;if(K)delete K.attributes;return{html:{type:"Fragment",start:V,end:R,children:j.fragment.nodes.map((z)=>Y(z))},instance:J,module:K,css:Q.css?Y(Q.css):void 0,_comments:Q.comments?.length>0?Q.comments:void 0}},AnimateDirective(j){return{...j,type:"Animation"}},AwaitBlock(j,{visit:Y}){let J={type:"PendingBlock",start:null,end:null,children:j.pending?.nodes.map((V)=>Y(V))??[],skip:!0},K={type:"ThenBlock",start:null,end:null,children:j.then?.nodes.map((V)=>Y(V))??[],skip:!0},W={type:"CatchBlock",start:null,end:null,children:j.catch?.nodes.map((V)=>Y(V))??[],skip:!0};if(j.pending){let V=j.pending.nodes.at(0),R=j.pending.nodes.at(-1);J.start=V?.start??q.indexOf("}",j.expression.end)+1,J.end=R?.end??J.start,J.skip=!1}if(j.then){let V=j.then.nodes.at(0),R=j.then.nodes.at(-1);K.start=J.end??V?.start??q.indexOf("}",j.expression.end)+1,K.end=R?.end??q.lastIndexOf("}",J.end??j.expression.end)+1,K.skip=!1}if(j.catch){let V=j.catch.nodes.at(0),R=j.catch.nodes.at(-1);W.start=K.end??J.end??V?.start??q.indexOf("}",j.expression.end)+1,W.end=R?.end??q.lastIndexOf("}",K.end??J.end??j.expression.end)+1,W.skip=!1}return{type:"AwaitBlock",start:j.start,end:j.end,expression:j.expression,value:j.value,error:j.error,pending:J,then:K,catch:W}},BindDirective(j){return{...j,type:"Binding"}},ClassDirective(j){return{...j,type:"Class"}},Comment(j){return{...j,ignores:B2(j.start,j.data,!1)}},ComplexSelector(j,{next:Y}){Y();let J=[];for(let K of j.children){if(K.combinator)J.push(K.combinator);J.push(...K.selectors)}return{type:"Selector",start:j.start,end:j.end,children:J}},Component(j,{visit:Y}){return{type:"InlineComponent",start:j.start,end:j.end,name:j.name,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},ConstTag(j){if(j.expression!==void 0)return j;let Y=j,{id:J}={...Y.declaration.declarations[0]};return delete J.typeAnnotation,{type:"ConstTag",start:Y.start,end:j.end,expression:{type:"AssignmentExpression",start:(Y.declaration.start??0)+6,end:Y.declaration.end??0,operator:"=",left:J,right:Y.declaration.declarations[0].init}}},DeclarationTag(j){return j},KeyBlock(j,{visit:Y}){return W1(j.fragment.nodes),{type:"KeyBlock",start:j.start,end:j.end,expression:j.expression,children:j.fragment.nodes.map((J)=>Y(J))}},EachBlock(j,{visit:Y}){let J=void 0;if(j.fallback){let K=j.fallback.nodes.at(0),W=q.lastIndexOf("{",j.end-1),V=K?.start??W;W1(j.fallback.nodes),J={type:"ElseBlock",start:V,end:W,children:j.fallback.nodes.map((R)=>Y(R))}}return W1(j.body.nodes),{type:"EachBlock",start:j.start,end:j.end,children:j.body.nodes.map((K)=>Y(K)),context:j.context,expression:j.expression,index:j.index,key:j.key,else:J}},ExpressionTag(j,{path:Y}){let J=Y.at(-1);if(J?.type==="Attribute"){if(q[J.start]==="{")return{type:"AttributeShorthand",start:j.start,end:j.end,expression:j.expression}}return{type:"MustacheTag",start:j.start,end:j.end,expression:j.expression}},HtmlTag(j){return{...j,type:"RawMustacheTag"}},IfBlock(j,{visit:Y}){let J=void 0;if(j.alternate){let W=j.alternate.nodes;if(W.length===1&&W[0].type==="IfBlock"&&W[0].elseif)W=W[0].consequent.nodes;let V=q.lastIndexOf("{",j.end-1),R=W.at(0)?.start??V;W1(j.alternate.nodes),J={type:"ElseBlock",start:R,end:V,children:j.alternate.nodes.map((z)=>Y(z))}}let K=j.elseif?j.consequent.nodes[0]?.start??q.lastIndexOf("{",j.end-1):j.start;return W1(j.consequent.nodes),{type:"IfBlock",start:K,end:j.end,expression:j.test,children:j.consequent.nodes.map((W)=>Y(W)),else:J,elseif:j.elseif?!0:void 0}},OnDirective(j){return{...j,type:"EventHandler"}},SnippetBlock(j,{visit:Y}){return W1(j.body.nodes),{type:"SnippetBlock",start:j.start,end:j.end,expression:j.expression,parameters:j.parameters,children:j.body.nodes.map((J)=>Y(J)),typeParams:j.typeParams}},SvelteBoundary(j,{visit:Y}){return W1(j.fragment.nodes),{type:"SvelteBoundary",name:"svelte:boundary",start:j.start,end:j.end,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},RegularElement(j,{visit:Y}){return{type:"Element",start:j.start,end:j.end,name:j.name,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},SlotElement(j,{visit:Y}){return{type:"Slot",start:j.start,end:j.end,name:j.name,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},Attribute(j,{visit:Y,next:J,path:K}){if(j.value!==!0&&!Array.isArray(j.value)){K.push(j);let W=[Y(j.value)];return K.pop(),{...j,value:W}}else return J()},StyleDirective(j,{visit:Y,next:J,path:K}){if(j.value!==!0&&!Array.isArray(j.value)){K.push(j);let W=[Y(j.value)];return K.pop(),{...j,value:W}}else return J()},SpreadAttribute(j){return{...j,type:"Spread"}},StyleSheet(j,Y){return{...j,...Y.next(),type:"Style"}},SvelteBody(j,{visit:Y}){return{type:"Body",name:"svelte:body",start:j.start,end:j.end,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},SvelteComponent(j,{visit:Y}){return{type:"InlineComponent",name:"svelte:component",start:j.start,end:j.end,expression:j.expression,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},SvelteDocument(j,{visit:Y}){return{type:"Document",name:"svelte:document",start:j.start,end:j.end,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},SvelteElement(j,{visit:Y}){let J=j.tag;if(J.type==="Literal"&&typeof J.value==="string"&&q[j.tag.start-1]!=="{")J=J.value;return{type:"Element",name:"svelte:element",start:j.start,end:j.end,tag:J,attributes:j.attributes.map((K)=>Y(K)),children:j.fragment.nodes.map((K)=>Y(K))}},SvelteFragment(j,{visit:Y}){return{type:"SlotTemplate",name:"svelte:fragment",start:j.start,end:j.end,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},SvelteHead(j,{visit:Y}){return{type:"Head",name:"svelte:head",start:j.start,end:j.end,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},SvelteOptions(j,{visit:Y}){return{type:"Options",name:"svelte:options",start:j.start,end:j.end,attributes:j.attributes.map((J)=>Y(J))}},SvelteSelf(j,{visit:Y}){return{type:"InlineComponent",name:"svelte:self",start:j.start,end:j.end,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},SvelteWindow(j,{visit:Y}){return{type:"Window",name:"svelte:window",start:j.start,end:j.end,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},Text(j,{path:Y}){let J=Y.at(-1);if(J?.type==="RegularElement"&&J.name==="style")return{type:"Text",start:j.start,end:j.end,data:j.data}},TitleElement(j,{visit:Y}){return{type:"Title",name:"title",start:j.start,end:j.end,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},TransitionDirective(j){return{...j,type:"Transition"}},UseDirective(j){return{...j,type:"Action"}},LetDirective(j){return{...j,type:"Let"}}})}var T0={};R3(T0,{version:()=>Y5,tokenizer:()=>IQ,tokTypes:()=>O,tokContexts:()=>j8,parseExpressionAt:()=>CQ,parse:()=>AQ,nonASCIIwhitespace:()=>c9,lineBreakG:()=>P2,lineBreak:()=>M8,keywordTypes:()=>P0,isNewLine:()=>G1,isIdentifierStart:()=>A8,isIdentifierChar:()=>g8,getLineInfo:()=>i9,defaultOptions:()=>L0,TokenType:()=>s,Token:()=>k0,TokContext:()=>N8,SourceLocation:()=>g1,Position:()=>R1,Parser:()=>Y8,Node:()=>x1});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],A2=[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],lq="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",C2="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",g9={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"},_9="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",cq={5:_9,"5module":_9+" export import",6:_9+" const class extends export import super"},I2=/^in(stanceof)?$/,iq=new RegExp("["+C2+"]"),dq=new RegExp("["+C2+lq+"]");function x9(q,Q){var Z=65536;for(var j=0;j<Q.length;j+=2){if(Z+=Q[j],Z>q)return!1;if(Z+=Q[j+1],Z>=q)return!0}return!1}function A8(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&&iq.test(String.fromCharCode(q));if(Q===!1)return!1;return x9(q,A2)}function g8(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&&dq.test(String.fromCharCode(q));if(Q===!1)return!1;return x9(q,A2)||x9(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 S8(q,Q){return new s(q,{beforeExpr:!0,binop:Q})}var D8={beforeExpr:!0},L8={startsExpr:!0},P0={};function p(q,Q){if(Q===void 0)Q={};return Q.keyword=q,P0[q]=new s(q,Q)}var O={num:new s("num",L8),regexp:new s("regexp",L8),string:new s("string",L8),name:new s("name",L8),privateId:new s("privateId",L8),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(",",D8),semi:new s(";",D8),colon:new s(":",D8),dot:new s("."),question:new s("?",D8),questionDot:new s("?."),arrow:new s("=>",D8),template:new s("template"),invalidTemplate:new s("invalidTemplate"),ellipsis:new s("...",D8),backQuote:new s("`",L8),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:S8("||",1),logicalAND:S8("&&",2),bitwiseOR:S8("|",3),bitwiseXOR:S8("^",4),bitwiseAND:S8("&",5),equality:S8("==/!=/===/!==",6),relational:S8("</>/<=/>=",7),bitShift:S8("<</>>/>>>",8),plusMin:new s("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:S8("%",10),star:S8("*",10),slash:S8("/",10),starstar:new s("**",{beforeExpr:!0}),coalesce:S8("??",1),_break:p("break"),_case:p("case",D8),_catch:p("catch"),_continue:p("continue"),_debugger:p("debugger"),_default:p("default",D8),_do:p("do",{isLoop:!0,beforeExpr:!0}),_else:p("else",D8),_finally:p("finally"),_for:p("for",{isLoop:!0}),_function:p("function",L8),_if:p("if"),_return:p("return",D8),_switch:p("switch"),_throw:p("throw",D8),_try:p("try"),_var:p("var"),_const:p("const"),_while:p("while",{isLoop:!0}),_with:p("with"),_new:p("new",{beforeExpr:!0,startsExpr:!0}),_this:p("this",L8),_super:p("super",L8),_class:p("class",L8),_extends:p("extends",D8),_export:p("export"),_import:p("import",L8),_null:p("null",L8),_true:p("true",L8),_false:p("false",L8),_in:p("in",{beforeExpr:!0,binop:7}),_instanceof:p("instanceof",{beforeExpr:!0,binop:7}),_typeof:p("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:p("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:p("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},M8=/\r\n?|\n|\u2028|\u2029/,P2=new RegExp(M8.source,"g");function G1(q){return q===10||q===13||q===8232||q===8233}function S2(q,Q,Z){if(Z===void 0)Z=q.length;for(var j=Q;j<Z;j++){var Y=q.charCodeAt(j);if(G1(Y))return j<Z-1&&Y===13&&q.charCodeAt(j+1)===10?j+2:j+1}return-1}var c9=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,W8=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,D2=Object.prototype,pq=D2.hasOwnProperty,oq=D2.toString,B1=Object.hasOwn||function(q,Q){return pq.call(q,Q)},M2=Array.isArray||function(q){return oq.call(q)==="[object Array]"},$2=Object.create(null);function Z1(q){return $2[q]||($2[q]=new RegExp("^(?:"+q.replace(/ /g,"|")+")$"))}function n8(q){if(q<=65535)return String.fromCharCode(q);return q-=65536,String.fromCharCode((q>>10)+55296,(q&1023)+56320)}var sq=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,R1=function(Q,Z){this.line=Q,this.column=Z};R1.prototype.offset=function(Q){return new R1(this.line,this.column+Q)};var g1=function(Q,Z,j){if(this.start=Z,this.end=j,Q.sourceFile!==null)this.source=Q.sourceFile};function i9(q,Q){for(var Z=1,j=0;;){var Y=S2(q,j,Q);if(Y<0)return new R1(Z,Q-j);++Z,j=Y}}var L0={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},L2=!1;function nq(q){var Q={};for(var Z in L0)Q[Z]=q&&B1(q,Z)?q[Z]:L0[Z];if(Q.ecmaVersion==="latest")Q.ecmaVersion=1e8;else if(Q.ecmaVersion==null){if(!L2&&typeof console==="object"&&console.warn)L2=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
27
+ 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(M2(Q.onToken)){var j=Q.onToken;Q.onToken=function(Y){return j.push(Y)}}if(M2(Q.onComment))Q.onComment=aq(Q,Q.onComment);if(Q.sourceType==="commonjs"&&Q.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return Q}function aq(q,Q){return function(Z,j,Y,J,K,W){var V={type:Z?"Block":"Line",value:j,start:Y,end:J};if(q.locations)V.loc=new g1(this,K,W);if(q.ranges)V.range=[Y,J];Q.push(V)}}var V1=1,z1=2,d9=4,N2=8,p9=16,b2=32,S0=64,k2=128,O1=256,_1=512,T2=1024,D0=V1|z1|O1;function o9(q,Q){return z1|(q?d9:0)|(Q?N2:0)}var w0=0,s9=1,r8=2,E2=3,v2=4,h2=5,Y8=function(Q,Z,j){this.options=Q=nq(Q),this.sourceFile=Q.sourceFile,this.keywords=Z1(cq[Q.ecmaVersion>=6?6:Q.sourceType==="module"?"5module":5]);var Y="";if(Q.allowReserved!==!0){if(Y=g9[Q.ecmaVersion>=6?6:Q.ecmaVersion===5?5:3],Q.sourceType==="module")Y+=" await"}this.reservedWords=Z1(Y);var J=(Y?Y+" ":"")+g9.strict;if(this.reservedWordsStrict=Z1(J),this.reservedWordsStrictBind=Z1(J+" "+g9.strictBind),this.input=String(Z),this.containsEsc=!1,this.pos=j||0,this.curLine=1,Q.startLocation)this.lineStart=this.pos-Q.startLocation.column,this.curLine=Q.startLocation.line;else if(j){if(this.lineStart=this.input.lastIndexOf(`
28
+ `,j-1)+1,this.options.locations)this.curLine=this.input.slice(0,this.lineStart).split(M8).length}else this.lineStart=0;if(this.type=O.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=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"?z1:V1),this.regexpState=null,this.privateNameStack=[]},k8={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}};Y8.prototype.parse=function(){var Q=this,Z=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return Q.parseTopLevel(Z)})};k8.inFunction.get=function(){return(this.currentVarScope().flags&z1)>0};k8.inGenerator.get=function(){return(this.currentVarScope().flags&N2)>0};k8.inAsync.get=function(){return(this.currentVarScope().flags&d9)>0};k8.canAwait.get=function(){for(var q=this.scopeStack.length-1;q>=0;q--){var Q=this.scopeStack[q],Z=Q.flags;if(Z&(O1|_1))return!1;if(Z&z1)return(Z&d9)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};k8.allowReturn.get=function(){if(this.inFunction)return!0;if(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&V1)return!0;return!1};k8.allowSuper.get=function(){var q=this.currentThisScope(),Q=q.flags;return(Q&S0)>0||this.options.allowSuperOutsideMethod};k8.allowDirectSuper.get=function(){return(this.currentThisScope().flags&k2)>0};k8.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};k8.allowNewDotTarget.get=function(){for(var q=this.scopeStack.length-1;q>=0;q--){var Q=this.scopeStack[q],Z=Q.flags;if(Z&(O1|_1)||Z&z1&&!(Z&p9))return!0}return!1};k8.allowUsing.get=function(){var q=this.currentScope(),Q=q.flags;if(Q&T2)return!1;if(!this.inModule&&Q&V1)return!1;return!0};k8.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&O1)>0};Y8.extend=function(){var Q=[],Z=arguments.length;while(Z--)Q[Z]=arguments[Z];var j=this;for(var Y=0;Y<Q.length;Y++)j=Q[Y](j);return j};Y8.parse=function(Q,Z){return new this(Z,Q).parse()};Y8.parseExpressionAt=function(Q,Z,j){var Y=new this(j,Q,Z);return Y.nextToken(),Y.parseExpression()};Y8.tokenizer=function(Q,Z){return new this(Z,Q)};Object.defineProperties(Y8.prototype,k8);var F8=Y8.prototype,rq=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;F8.strictDirective=function(q){if(this.options.ecmaVersion<5)return!1;for(;;){W8.lastIndex=q,q+=W8.exec(this.input)[0].length;var Q=rq.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),j=Z.index+Z[0].length,Y=this.input.charAt(j);return Y===";"||Y==="}"||M8.test(Z[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(Y)||Y==="!"&&this.input.charAt(j+1)==="=")}if(q+=Q[0].length,W8.lastIndex=q,q+=W8.exec(this.input)[0].length,this.input[q]===";")q++}};F8.eat=function(q){if(this.type===q)return this.next(),!0;else return!1};F8.isContextual=function(q){return this.type===O.name&&this.value===q&&!this.containsEsc};F8.eatContextual=function(q){if(!this.isContextual(q))return!1;return this.next(),!0};F8.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}};F8.expectContextual=function(q){if(!this.eatContextual(q))this.unexpected()};F8.canInsertSemicolon=function(){return this.type===O.eof||this.type===O.braceR||M8.test(this.input.slice(this.lastTokEnd,this.start))};F8.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};F8.semicolon=function(){if(!this.eat(O.semi)&&!this.insertSemicolon())this.unexpected()};F8.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}};F8.expect=function(q){this.eat(q)||this.unexpected()};F8.unexpected=function(q){this.raise(q!=null?q:this.start,"Unexpected token")};var N0=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};F8.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")};F8.checkExpressionErrors=function(q,Q){if(!q)return!1;var{shorthandAssign:Z,doubleProto:j}=q;if(!Q)return Z>=0||j>=0;if(Z>=0)this.raise(Z,"Shorthand property assignments are valid only in destructuring patterns");if(j>=0)this.raiseRecoverable(j,"Redefinition of __proto__ property")};F8.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")};F8.isSimpleAssignTarget=function(q){if(q.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(q.expression);return q.type==="Identifier"||q.type==="MemberExpression"};var E=Y8.prototype;E.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 j=0,Y=Object.keys(this.undefinedExports);j<Y.length;j+=1){var J=Y[j];this.raiseRecoverable(this.undefinedExports[J].start,"Export '"+J+"' 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 n9={kind:"loop"},tq={kind:"switch"};E.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,j=this.fullCharCodeAt(Z);if(j===91||j===92)return!0;if(q)return!1;if(j===123)return!0;if(A8(j)){var Y=Z;do Z+=j<=65535?1:2;while(g8(j=this.fullCharCodeAt(Z)));if(j===92)return!0;var J=this.input.slice(Y,Z);if(!I2.test(J))return!0}return!1};E.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!M8.test(this.input.slice(this.pos,Q))&&this.input.slice(Q,Q+8)==="function"&&(Q+8===this.input.length||!(g8(Z=this.fullCharCodeAt(Q+8))||Z===92))};E.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),j=this.pos+Z[0].length;if(M8.test(this.input.slice(this.pos,j)))return!1;if(q){var Y=j+5,J;if(this.input.slice(j,Y)!=="using"||Y===this.input.length||g8(J=this.fullCharCodeAt(Y))||J===92)return!1;W8.lastIndex=Y;var K=W8.exec(this.input);if(j=Y+K[0].length,K&&M8.test(this.input.slice(Y,j)))return!1}var W=this.fullCharCodeAt(j);if(!A8(W)&&W!==92)return!1;var V=j;do j+=W<=65535?1:2;while(g8(W=this.fullCharCodeAt(j)));if(W===92)return!0;var R=this.input.slice(V,j);if(I2.test(R))return!1;if(Q&&!q&&R==="of"){W8.lastIndex=j;var z=W8.exec(this.input);if(j=j+z[0].length,this.input.charCodeAt(j)!==61||(W=this.input.charCodeAt(j+1))===61||W===62)return!1}return!0};E.isAwaitUsing=function(q){return this.isUsingKeyword(!0,q)};E.isUsing=function(q){return this.isUsingKeyword(!1,q)};E.parseStatement=function(q,Q,Z){var j=this.type,Y=this.startNode(),J;if(this.isLet(q))j=O._var,J="let";switch(j){case O._break:case O._continue:return this.parseBreakContinueStatement(Y,j.keyword);case O._debugger:return this.parseDebuggerStatement(Y);case O._do:return this.parseDoStatement(Y);case O._for:return this.parseForStatement(Y);case O._function:if(q&&(this.strict||q!=="if"&&q!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(Y,!1,!q);case O._class:if(q)this.unexpected();return this.parseClass(Y,!0);case O._if:return this.parseIfStatement(Y);case O._return:return this.parseReturnStatement(Y);case O._switch:return this.parseSwitchStatement(Y);case O._throw:return this.parseThrowStatement(Y);case O._try:return this.parseTryStatement(Y);case O._const:case O._var:if(J=J||this.value,q&&J!=="var")this.unexpected();return this.parseVarStatement(Y,J);case O._while:return this.parseWhileStatement(Y);case O._with:return this.parseWithStatement(Y);case O.braceL:return this.parseBlock(!0,Y);case O.semi:return this.parseEmptyStatement(Y);case O._export:case O._import:if(this.options.ecmaVersion>10&&j===O._import){W8.lastIndex=this.pos;var K=W8.exec(this.input),W=this.pos+K[0].length,V=this.input.charCodeAt(W);if(V===40||V===46)return this.parseExpressionStatement(Y,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 j===O._import?this.parseImport(Y):this.parseExport(Y,Z);default:if(this.isAsyncFunction()){if(q)this.unexpected();return this.next(),this.parseFunctionStatement(Y,!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(Y,!1,R),this.semicolon(),this.finishNode(Y,"VariableDeclaration")}var z=this.value,M=this.parseExpression();if(j===O.name&&M.type==="Identifier"&&this.eat(O.colon))return this.parseLabeledStatement(Y,z,M,q);else return this.parseExpressionStatement(Y,M)}};E.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 j=0;for(;j<this.labels.length;++j){var Y=this.labels[j];if(q.label==null||Y.name===q.label.name){if(Y.kind!=null&&(Z||Y.kind==="loop"))break;if(q.label&&Z)break}}if(j===this.labels.length)this.raise(q.start,"Unsyntactic "+Q);return this.finishNode(q,Z?"BreakStatement":"ContinueStatement")};E.parseDebuggerStatement=function(q){return this.next(),this.semicolon(),this.finishNode(q,"DebuggerStatement")};E.parseDoStatement=function(q){if(this.next(),this.labels.push(n9),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")};E.parseForStatement=function(q){this.next();var Q=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(n9),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 j=this.startNode(),Y=Z?"let":this.value;return this.next(),this.parseVar(j,!0,Y),this.finishNode(j,"VariableDeclaration"),this.parseForAfterInit(q,j,Q)}var J=this.isContextual("let"),K=!1,W=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(W){var V=this.startNode();if(this.next(),W==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.parseVar(V,!0,W),this.finishNode(V,"VariableDeclaration"),this.parseForAfterInit(q,V,Q)}var R=this.containsEsc,z=new N0,M=this.start,$=Q>-1?this.parseExprSubscripts(z,"await"):this.parseExpression(!0,z);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($.start===M&&!R&&$.type==="Identifier"&&$.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)q.await=!1}if(J&&K)this.raise($.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable($,!1,z),this.checkLValPattern($),this.parseForIn(q,$)}else this.checkExpressionErrors(z,!0);if(Q>-1)this.unexpected(Q);return this.parseFor(q,$)};E.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)};E.parseFunctionStatement=function(q,Q,Z){return this.next(),this.parseFunction(q,y1|(Z?0:u9),!1,Q)};E.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")};E.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")};E.parseSwitchStatement=function(q){this.next(),q.discriminant=this.parseParenExpression(),q.cases=[],this.expect(O.braceL),this.labels.push(tq),this.enterScope(T2);var Q;for(var Z=!1;this.type!==O.braceR;)if(this.type===O._case||this.type===O._default){var j=this.type===O._case;if(Q)this.finishNode(Q,"SwitchCase");if(q.cases.push(Q=this.startNode()),Q.consequent=[],this.next(),j)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")};E.parseThrowStatement=function(q){if(this.next(),M8.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 eq=[];E.parseCatchClauseParam=function(){var q=this.parseBindingAtom(),Q=q.type==="Identifier";return this.enterScope(Q?b2:0),this.checkLValPattern(q,Q?v2:r8),this.expect(O.parenR),q};E.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")};E.parseVarStatement=function(q,Q,Z){return this.next(),this.parseVar(q,!1,Q,Z),this.semicolon(),this.finishNode(q,"VariableDeclaration")};E.parseWhileStatement=function(q){return this.next(),q.test=this.parseParenExpression(),this.labels.push(n9),q.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(q,"WhileStatement")};E.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")};E.parseEmptyStatement=function(q){return this.next(),this.finishNode(q,"EmptyStatement")};E.parseLabeledStatement=function(q,Q,Z,j){for(var Y=0,J=this.labels;Y<J.length;Y+=1){var K=J[Y];if(K.name===Q)this.raise(Z.start,"Label '"+Q+"' is already declared")}var W=this.type.isLoop?"loop":this.type===O._switch?"switch":null;for(var V=this.labels.length-1;V>=0;V--){var R=this.labels[V];if(R.statementStart===q.start)R.statementStart=this.start,R.kind=W;else break}return this.labels.push({name:Q,kind:W,statementStart:this.start}),q.body=this.parseStatement(j?j.indexOf("label")===-1?j+"label":j:"label"),this.labels.pop(),q.label=Z,this.finishNode(q,"LabeledStatement")};E.parseExpressionStatement=function(q,Q){return q.expression=Q,this.semicolon(),this.finishNode(q,"ExpressionStatement")};E.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 j=this.parseStatement(null);Q.body.push(j)}if(Z)this.strict=!1;if(this.next(),q)this.exitScope();return this.finishNode(Q,"BlockStatement")};E.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")};E.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")};E.parseVar=function(q,Q,Z,j){q.declarations=[],q.kind=Z;for(;;){var Y=this.startNode();if(this.parseVarId(Y,Z),this.eat(O.eq))Y.init=this.parseMaybeAssign(Q);else if(!j&&Z==="const"&&!(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!j&&(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(!j&&Y.id.type!=="Identifier"&&!(Q&&(this.type===O._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else Y.init=null;if(q.declarations.push(this.finishNode(Y,"VariableDeclarator")),!this.eat(O.comma))break}return q};E.parseVarId=function(q,Q){q.id=Q==="using"||Q==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(q.id,Q==="var"?s9:r8,!1)};var y1=1,u9=2,f2=4;E.parseFunction=function(q,Q,Z,j,Y){if(this.initFunction(q),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!j){if(this.type===O.star&&Q&u9)this.unexpected();q.generator=this.eat(O.star)}if(this.options.ecmaVersion>=8)q.async=!!j;if(Q&y1){if(q.id=Q&f2&&this.type!==O.name?null:this.parseIdent(),q.id&&!(Q&u9))this.checkLValSimple(q.id,this.strict||q.generator||q.async?this.treatFunctionsAsVar?s9:r8:E2)}var J=this.yieldPos,K=this.awaitPos,W=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(o9(q.async,q.generator)),!(Q&y1))q.id=this.type===O.name?this.parseIdent():null;return this.parseFunctionParams(q),this.parseFunctionBody(q,Z,!1,Y),this.yieldPos=J,this.awaitPos=K,this.awaitIdentPos=W,this.finishNode(q,Q&y1?"FunctionDeclaration":"FunctionExpression")};E.parseFunctionParams=function(q){this.expect(O.parenL),q.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};E.parseClass=function(q,Q){this.next();var Z=this.strict;this.strict=!0,this.parseClassId(q,Q),this.parseClassSuper(q);var j=this.enterClassBody(),Y=this.startNode(),J=!1;Y.body=[],this.expect(O.braceL);while(this.type!==O.braceR){var K=this.parseClassElement(q.superClass!==null);if(K){if(Y.body.push(K),K.type==="MethodDefinition"&&K.kind==="constructor"){if(J)this.raiseRecoverable(K.start,"Duplicate constructor in the same class");J=!0}else if(K.key&&K.key.type==="PrivateIdentifier"&&qQ(j,K))this.raiseRecoverable(K.key.start,"Identifier '#"+K.key.name+"' has already been declared")}}return this.strict=Z,this.next(),q.body=this.finishNode(Y,"ClassBody"),this.exitClassBody(),this.finishNode(q,Q?"ClassDeclaration":"ClassExpression")};E.parseClassElement=function(q){if(this.eat(O.semi))return null;var Q=this.options.ecmaVersion,Z=this.startNode(),j="",Y=!1,J=!1,K="method",W=!1;if(this.eatContextual("static")){if(Q>=13&&this.eat(O.braceL))return this.parseClassStaticBlock(Z),Z;if(this.isClassElementNameStart()||this.type===O.star)W=!0;else j="static"}if(Z.static=W,!j&&Q>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===O.star)&&!this.canInsertSemicolon())J=!0;else j="async";if(!j&&(Q>=9||!J)&&this.eat(O.star))Y=!0;if(!j&&!J&&!Y){var V=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())K=V;else j=V}if(j)Z.computed=!1,Z.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),Z.key.name=j,this.finishNode(Z.key,"Identifier");else this.parseClassElementName(Z);if(Q<13||this.type===O.parenL||K!=="method"||Y||J){var R=!Z.static&&A0(Z,"constructor"),z=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,Y,J,z)}else this.parseClassField(Z);return Z};E.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};E.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)};E.parseClassMethod=function(q,Q,Z,j){var Y=q.key;if(q.kind==="constructor"){if(Q)this.raise(Y.start,"Constructor can't be a generator");if(Z)this.raise(Y.start,"Constructor can't be an async method")}else if(q.static&&A0(q,"prototype"))this.raise(Y.start,"Classes may not have a static property named prototype");var J=q.value=this.parseMethod(Q,Z,j);if(q.kind==="get"&&J.params.length!==0)this.raiseRecoverable(J.start,"getter should have no params");if(q.kind==="set"&&J.params.length!==1)this.raiseRecoverable(J.start,"setter should have exactly one param");if(q.kind==="set"&&J.params[0].type==="RestElement")this.raiseRecoverable(J.params[0].start,"Setter cannot use rest params");return this.finishNode(q,"MethodDefinition")};E.parseClassField=function(q){if(A0(q,"constructor"))this.raise(q.key.start,"Classes can't have a field named 'constructor'");else if(q.static&&A0(q,"prototype"))this.raise(q.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(O.eq))this.enterScope(_1|S0),q.value=this.parseMaybeAssign(),this.exitScope();else q.value=null;return this.semicolon(),this.finishNode(q,"PropertyDefinition")};E.parseClassStaticBlock=function(q){q.body=[];var Q=this.labels;this.labels=[],this.enterScope(O1|S0);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")};E.parseClassId=function(q,Q){if(this.type===O.name){if(q.id=this.parseIdent(),Q)this.checkLValSimple(q.id,r8,!1)}else{if(Q===!0)this.unexpected();q.id=null}};E.parseClassSuper=function(q){q.superClass=this.eat(O._extends)?this.parseExprSubscripts(null,!1):null};E.enterClassBody=function(){var q={declared:Object.create(null),used:[]};return this.privateNameStack.push(q),q.declared};E.exitClassBody=function(){var q=this.privateNameStack.pop(),Q=q.declared,Z=q.used;if(!this.options.checkPrivateFields)return;var j=this.privateNameStack.length,Y=j===0?null:this.privateNameStack[j-1];for(var J=0;J<Z.length;++J){var K=Z[J];if(!B1(Q,K.name))if(Y)Y.used.push(K);else this.raiseRecoverable(K.start,"Private field '#"+K.name+"' must be declared in an enclosing class")}};function qQ(q,Q){var Z=Q.key.name,j=q[Z],Y="true";if(Q.type==="MethodDefinition"&&(Q.kind==="get"||Q.kind==="set"))Y=(Q.static?"s":"i")+Q.kind;if(j==="iget"&&Y==="iset"||j==="iset"&&Y==="iget"||j==="sget"&&Y==="sset"||j==="sset"&&Y==="sget")return q[Z]="true",!1;else if(!j)return q[Z]=Y,!1;else return!0}function A0(q,Q){var{computed:Z,key:j}=q;return!Z&&(j.type==="Identifier"&&j.name===Q||j.type==="Literal"&&j.value===Q)}E.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")};E.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,j=q.specifiers;Z<j.length;Z+=1){var Y=j[Z];if(this.checkUnreserved(Y.local),this.checkLocalExport(Y.local),Y.local.type==="Literal")this.raise(Y.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")};E.parseExportDeclaration=function(q){return this.parseStatement(null)};E.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,y1|f2,!1,q)}else if(this.type===O._class){var Z=this.startNode();return this.parseClass(Z,"nullableID")}else{var j=this.parseMaybeAssign();return this.semicolon(),j}};E.checkExport=function(q,Q,Z){if(!q)return;if(typeof Q!=="string")Q=Q.type==="Identifier"?Q.name:Q.value;if(B1(q,Q))this.raiseRecoverable(Z,"Duplicate export '"+Q+"'");q[Q]=!0};E.checkPatternExport=function(q,Q){var Z=Q.type;if(Z==="Identifier")this.checkExport(q,Q,Q.start);else if(Z==="ObjectPattern")for(var j=0,Y=Q.properties;j<Y.length;j+=1){var J=Y[j];this.checkPatternExport(q,J)}else if(Z==="ArrayPattern")for(var K=0,W=Q.elements;K<W.length;K+=1){var V=W[K];if(V)this.checkPatternExport(q,V)}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)};E.checkVariableExport=function(q,Q){if(!q)return;for(var Z=0,j=Q;Z<j.length;Z+=1){var Y=j[Z];this.checkPatternExport(q,Y.id)}};E.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};E.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")};E.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};E.parseImport=function(q){if(this.next(),this.type===O.string)q.specifiers=eq,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")};E.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,r8),this.finishNode(q,"ImportSpecifier")};E.parseImportDefaultSpecifier=function(){var q=this.startNode();return q.local=this.parseIdent(),this.checkLValSimple(q.local,r8),this.finishNode(q,"ImportDefaultSpecifier")};E.parseImportNamespaceSpecifier=function(){var q=this.startNode();return this.next(),this.expectContextual("as"),q.local=this.parseIdent(),this.checkLValSimple(q.local,r8),this.finishNode(q,"ImportNamespaceSpecifier")};E.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};E.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 j=this.parseImportAttribute(),Y=j.key.type==="Identifier"?j.key.name:j.key.value;if(B1(Q,Y))this.raiseRecoverable(j.key.start,"Duplicate attribute key '"+Y+"'");Q[Y]=!0,q.push(j)}return q};E.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")};E.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===O.string){var q=this.parseLiteral(this.value);if(sq.test(q.value))this.raise(q.start,"An export name cannot include a lone surrogate.");return q}return this.parseIdent(!0)};E.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)};E.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 T8=Y8.prototype;T8.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 j=0,Y=q.properties;j<Y.length;j+=1){var J=Y[j];if(this.toAssignable(J,Q),J.type==="RestElement"&&(J.argument.type==="ArrayPattern"||J.argument.type==="ObjectPattern"))this.raise(J.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};T8.toAssignableList=function(q,Q){var Z=q.length;for(var j=0;j<Z;j++){var Y=q[j];if(Y)this.toAssignable(Y,Q)}if(Z){var J=q[Z-1];if(this.options.ecmaVersion===6&&Q&&J&&J.type==="RestElement"&&J.argument.type!=="Identifier")this.unexpected(J.argument.start)}return q};T8.parseSpread=function(q){var Q=this.startNode();return this.next(),Q.argument=this.parseMaybeAssign(!1,q),this.finishNode(Q,"SpreadElement")};T8.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")};T8.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()};T8.parseBindingList=function(q,Q,Z,j){var Y=[],J=!0;while(!this.eat(q)){if(J)J=!1;else this.expect(O.comma);if(Q&&this.type===O.comma)Y.push(null);else if(Z&&this.afterTrailingComma(q))break;else if(this.type===O.ellipsis){var K=this.parseRestBinding();if(this.parseBindingListItem(K),Y.push(K),this.type===O.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");this.expect(q);break}else Y.push(this.parseAssignableListItem(j))}return Y};T8.parseAssignableListItem=function(q){var Q=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(Q),Q};T8.parseBindingListItem=function(q){return q};T8.parseMaybeDefault=function(q,Q,Z){if(Z=Z||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(O.eq))return Z;var j=this.startNodeAt(q,Q);return j.left=Z,j.right=this.parseMaybeAssign(),this.finishNode(j,"AssignmentPattern")};T8.checkLValSimple=function(q,Q,Z){if(Q===void 0)Q=w0;var j=Q!==w0;switch(q.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(q.name))this.raiseRecoverable(q.start,(j?"Binding ":"Assigning to ")+q.name+" in strict mode");if(j){if(Q===r8&&q.name==="let")this.raiseRecoverable(q.start,"let is disallowed as a lexically bound name");if(Z){if(B1(Z,q.name))this.raiseRecoverable(q.start,"Argument name clash");Z[q.name]=!0}if(Q!==h2)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(j)this.raiseRecoverable(q.start,"Binding member expression");break;case"ParenthesizedExpression":if(j)this.raiseRecoverable(q.start,"Binding parenthesized expression");return this.checkLValSimple(q.expression,Q,Z);default:this.raise(q.start,(j?"Binding":"Assigning to")+" rvalue")}};T8.checkLValPattern=function(q,Q,Z){if(Q===void 0)Q=w0;switch(q.type){case"ObjectPattern":for(var j=0,Y=q.properties;j<Y.length;j+=1){var J=Y[j];this.checkLValInnerPattern(J,Q,Z)}break;case"ArrayPattern":for(var K=0,W=q.elements;K<W.length;K+=1){var V=W[K];if(V)this.checkLValInnerPattern(V,Q,Z)}break;default:this.checkLValSimple(q,Q,Z)}};T8.checkLValInnerPattern=function(q,Q,Z){if(Q===void 0)Q=w0;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 N8=function(Q,Z,j,Y,J){this.token=Q,this.isExpr=!!Z,this.preserveSpace=!!j,this.override=Y,this.generator=!!J},j8={b_stat:new N8("{",!1),b_expr:new N8("{",!0),b_tmpl:new N8("${",!1),p_stat:new N8("(",!1),p_expr:new N8("(",!0),q_tmpl:new N8("`",!0,!0,function(q){return q.tryReadTemplateToken()}),f_stat:new N8("function",!1),f_expr:new N8("function",!0),f_expr_gen:new N8("function",!0,!1,null,!0),f_gen:new N8("function",!1,!1,null,!0)},F1=Y8.prototype;F1.initialContext=function(){return[j8.b_stat]};F1.curContext=function(){return this.context[this.context.length-1]};F1.braceIsBlock=function(q){var Q=this.curContext();if(Q===j8.f_expr||Q===j8.f_stat)return!0;if(q===O.colon&&(Q===j8.b_stat||Q===j8.b_expr))return!Q.isExpr;if(q===O._return||q===O.name&&this.exprAllowed)return M8.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===j8.b_stat;if(q===O._var||q===O._const||q===O.name)return!1;return!this.exprAllowed};F1.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};F1.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};F1.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===j8.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)?j8.b_stat:j8.b_expr),this.exprAllowed=!0};O.dollarBraceL.updateContext=function(){this.context.push(j8.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?j8.p_stat:j8.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()!==j8.p_stat)&&!(q===O._return&&M8.test(this.input.slice(this.lastTokEnd,this.start)))&&!((q===O.colon||q===O.braceL)&&this.curContext()===j8.b_stat))this.context.push(j8.f_expr);else this.context.push(j8.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()===j8.q_tmpl)this.context.pop();else this.context.push(j8.q_tmpl);this.exprAllowed=!1};O.star.updateContext=function(q){if(q===O._function){var Q=this.context.length-1;if(this.context[Q]===j8.f_expr)this.context[Q]=j8.f_expr_gen;else this.context[Q]=j8.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 x=Y8.prototype;x.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 j=q.key,Y;switch(j.type){case"Identifier":Y=j.name;break;case"Literal":Y=String(j.value);break;default:return}var J=q.kind;if(this.options.ecmaVersion>=6){if(Y==="__proto__"&&J==="init"){if(Q.proto)if(Z){if(Z.doubleProto<0)Z.doubleProto=j.start}else this.raiseRecoverable(j.start,"Redefinition of __proto__ property");Q.proto=!0}return}Y="$"+Y;var K=Q[Y];if(K){var W;if(J==="init")W=this.strict&&K.init||K.get||K.set;else W=K.init||K[J];if(W)this.raiseRecoverable(j.start,"Redefinition of property")}else K=Q[Y]={init:!1,get:!1,set:!1};K[J]=!0};x.parseExpression=function(q,Q){var Z=this;return this.catchStackOverflow(function(){var{start:j,startLoc:Y}=Z,J=Z.parseMaybeAssign(q,Q);if(Z.type===O.comma){var K=Z.startNodeAt(j,Y);K.expressions=[J];while(Z.eat(O.comma))K.expressions.push(Z.parseMaybeAssign(q,Q));return Z.finishNode(K,"SequenceExpression")}return J})};x.parseMaybeAssign=function(q,Q,Z){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(q);else this.exprAllowed=!1;var j=!1,Y=-1,J=-1,K=-1;if(Q)Y=Q.parenthesizedAssign,J=Q.trailingComma,K=Q.doubleProto,Q.parenthesizedAssign=Q.trailingComma=-1;else Q=new N0,j=!0;var W=this.start,V=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,W,V);if(this.type.isAssign){var z=this.startNodeAt(W,V);if(z.operator=this.value,this.type===O.eq)R=this.toAssignable(R,!1,Q);if(!j)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(z.left=R,this.next(),z.right=this.parseMaybeAssign(q),K>-1)Q.doubleProto=K;return this.finishNode(z,"AssignmentExpression")}else if(j)this.checkExpressionErrors(Q,!0);if(Y>-1)Q.parenthesizedAssign=Y;if(J>-1)Q.trailingComma=J;return R};x.parseMaybeConditional=function(q,Q){var Z=this.start,j=this.startLoc,Y=this.parseExprOps(q,Q);if(this.checkExpressionErrors(Q))return Y;if(!(Y.type==="ArrowFunctionExpression"&&Y.start===Z)&&this.eat(O.question)){var J=this.startNodeAt(Z,j);return J.test=Y,J.consequent=this.parseMaybeAssign(),this.expect(O.colon),J.alternate=this.parseMaybeAssign(q),this.finishNode(J,"ConditionalExpression")}return Y};x.parseExprOps=function(q,Q){var Z=this.start,j=this.startLoc,Y=this.parseMaybeUnary(Q,!1,!1,q);if(this.checkExpressionErrors(Q))return Y;return Y.start===Z&&Y.type==="ArrowFunctionExpression"?Y:this.parseExprOp(Y,Z,j,-1,q)};x.parseExprOp=function(q,Q,Z,j,Y){var J=this.type.binop;if(J!=null&&(!Y||this.type!==O._in)){if(J>j){var K=this.type===O.logicalOR||this.type===O.logicalAND,W=this.type===O.coalesce;if(W)J=O.logicalAND.binop;var V=this.value;this.next();var R=this.start,z=this.startLoc,M=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,Y),R,z,J,Y),$=this.buildBinary(Q,Z,q,M,V,K||W);if(K&&this.type===O.coalesce||W&&(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($,Q,Z,j,Y)}}return q};x.buildBinary=function(q,Q,Z,j,Y,J){if(j.type==="PrivateIdentifier")this.raise(j.start,"Private identifier can only be left side of binary expression");var K=this.startNodeAt(q,Q);return K.left=Z,K.operator=Y,K.right=j,this.finishNode(K,J?"LogicalExpression":"BinaryExpression")};x.parseMaybeUnary=function(q,Q,Z,j){var Y=this.start,J=this.startLoc,K;if(this.isContextual("await")&&this.canAwait)K=this.parseAwait(j),Q=!0;else if(this.type.prefix){var W=this.startNode(),V=this.type===O.incDec;if(W.operator=this.value,W.prefix=!0,this.next(),W.argument=this.parseMaybeUnary(null,!0,V,j),this.checkExpressionErrors(q,!0),V)this.checkLValSimple(W.argument);else if(this.strict&&W.operator==="delete"&&y2(W.argument))this.raiseRecoverable(W.start,"Deleting local variable in strict mode");else if(W.operator==="delete"&&m9(W.argument))this.raiseRecoverable(W.start,"Private fields can not be deleted");else Q=!0;K=this.finishNode(W,V?"UpdateExpression":"UnaryExpression")}else if(!Q&&this.type===O.privateId){if((j||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,j),this.checkExpressionErrors(q))return K;while(this.type.postfix&&!this.canInsertSemicolon()){var R=this.startNodeAt(Y,J);R.operator=this.value,R.prefix=!1,R.argument=K,this.checkLValSimple(K),this.next(),K=this.finishNode(R,"UpdateExpression")}}if(!Z&&!(K.type==="ArrowFunctionExpression"&&K.start===Y)&&this.eat(O.starstar))if(Q)this.unexpected(this.lastTokStart);else return this.buildBinary(Y,J,K,this.parseMaybeUnary(null,!1,!1,j),"**",!1);else return K};function y2(q){return q.type==="Identifier"||q.type==="ParenthesizedExpression"&&y2(q.expression)}function m9(q){return q.type==="MemberExpression"&&q.property.type==="PrivateIdentifier"||q.type==="ChainExpression"&&m9(q.expression)||q.type==="ParenthesizedExpression"&&m9(q.expression)}x.parseExprSubscripts=function(q,Q){var Z=this.start,j=this.startLoc,Y=this.parseExprAtom(q,Q);if(Y.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return Y;var J=this.parseSubscripts(Y,Z,j,!1,Q);if(q&&J.type==="MemberExpression"){if(q.parenthesizedAssign>=J.start)q.parenthesizedAssign=-1;if(q.parenthesizedBind>=J.start)q.parenthesizedBind=-1;if(q.trailingComma>=J.start)q.trailingComma=-1}return J};x.parseSubscripts=function(q,Q,Z,j,Y){var J=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 W=this.parseSubscript(q,Q,Z,j,J,K,Y);if(W.optional)K=!0;if(W===q||W.type==="ArrowFunctionExpression"){if(K){var V=this.startNodeAt(Q,Z);V.expression=W,W=this.finishNode(V,"ChainExpression")}return W}q=W}};x.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(O.arrow)};x.parseSubscriptAsyncArrow=function(q,Q,Z,j){return this.parseArrowExpression(this.startNodeAt(q,Q),Z,!0,j)};x.parseSubscript=function(q,Q,Z,j,Y,J,K){var W=this.options.ecmaVersion>=11,V=W&&this.eat(O.questionDot);if(j&&V)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var R=this.eat(O.bracketL);if(R||V&&this.type!==O.parenL&&this.type!==O.backQuote||this.eat(O.dot)){var z=this.startNodeAt(Q,Z);if(z.object=q,R)z.property=this.parseExpression(),this.expect(O.bracketR);else if(this.type===O.privateId&&q.type!=="Super")z.property=this.parsePrivateIdent();else z.property=this.parseIdent(this.options.allowReserved!=="never");if(z.computed=!!R,W)z.optional=V;q=this.finishNode(z,"MemberExpression")}else if(!j&&this.eat(O.parenL)){var M=new N0,$=this.yieldPos,F=this.awaitPos,P=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var D=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1,M);if(Y&&!V&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(M,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=$,this.awaitPos=F,this.awaitIdentPos=P,this.parseSubscriptAsyncArrow(Q,Z,D,K)}this.checkExpressionErrors(M,!0),this.yieldPos=$||this.yieldPos,this.awaitPos=F||this.awaitPos,this.awaitIdentPos=P||this.awaitIdentPos;var C=this.startNodeAt(Q,Z);if(C.callee=q,C.arguments=D,W)C.optional=V;q=this.finishNode(C,"CallExpression")}else if(this.type===O.backQuote){if(V||J)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var b=this.startNodeAt(Q,Z);b.tag=q,b.quasi=this.parseTemplate({isTagged:!0}),q=this.finishNode(b,"TaggedTemplateExpression")}return q};x.parseExprAtom=function(q,Q,Z){if(this.type===O.slash)this.readRegexp();var j,Y=this.potentialArrowAt===this.start;switch(this.type){case O._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(j=this.startNode(),this.next(),this.type===O.parenL&&!this.allowDirectSuper)this.raise(j.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(j,"Super");case O._this:return j=this.startNode(),this.next(),this.finishNode(j,"ThisExpression");case O.name:var J=this.start,K=this.startLoc,W=this.containsEsc,V=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!W&&V.name==="async"&&!this.canInsertSemicolon()&&this.eat(O._function))return this.overrideContext(j8.f_expr),this.parseFunction(this.startNodeAt(J,K),0,!1,!0,Q);if(Y&&!this.canInsertSemicolon()){if(this.eat(O.arrow))return this.parseArrowExpression(this.startNodeAt(J,K),[V],!1,Q);if(this.options.ecmaVersion>=8&&V.name==="async"&&this.type===O.name&&!W&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(V=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(O.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(J,K),[V],!0,Q)}}return V;case O.regexp:var R=this.value;return j=this.parseLiteral(R.value),j.regex={pattern:R.pattern,flags:R.flags},j;case O.num:case O.string:return this.parseLiteral(this.value);case O._null:case O._true:case O._false:return j=this.startNode(),j.value=this.type===O._null?null:this.type===O._true,j.raw=this.type.keyword,this.next(),this.finishNode(j,"Literal");case O.parenL:var z=this.start,M=this.parseParenAndDistinguishExpression(Y,Q);if(q){if(q.parenthesizedAssign<0&&!this.isSimpleAssignTarget(M))q.parenthesizedAssign=z;if(q.parenthesizedBind<0)q.parenthesizedBind=z}return M;case O.bracketL:return j=this.startNode(),this.next(),j.elements=this.parseExprList(O.bracketR,!0,!0,q),this.finishNode(j,"ArrayExpression");case O.braceL:return this.overrideContext(j8.b_expr),this.parseObj(!1,q);case O._function:return j=this.startNode(),this.next(),this.parseFunction(j,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()}};x.parseExprAtomDefault=function(){this.unexpected()};x.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()};x.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")};x.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")};x.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")};x.parseParenExpression=function(){this.expect(O.parenL);var q=this.parseExpression();return this.expect(O.parenR),q};x.shouldParseArrow=function(q){return!this.canInsertSemicolon()};x.parseParenAndDistinguishExpression=function(q,Q){var Z=this.start,j=this.startLoc,Y,J=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var K=this.start,W=this.startLoc,V=[],R=!0,z=!1,M=new N0,$=this.yieldPos,F=this.awaitPos,P;this.yieldPos=0,this.awaitPos=0;while(this.type!==O.parenR)if(R?R=!1:this.expect(O.comma),J&&this.afterTrailingComma(O.parenR,!0)){z=!0;break}else if(this.type===O.ellipsis){if(P=this.start,V.push(this.parseParenItem(this.parseRestBinding())),this.type===O.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else V.push(this.parseMaybeAssign(!1,M,this.parseParenItem));var D=this.lastTokEnd,C=this.lastTokEndLoc;if(this.expect(O.parenR),q&&this.shouldParseArrow(V)&&this.eat(O.arrow))return this.checkPatternErrors(M,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=$,this.awaitPos=F,this.parseParenArrowList(Z,j,V,Q);if(!V.length||z)this.unexpected(this.lastTokStart);if(P)this.unexpected(P);if(this.checkExpressionErrors(M,!0),this.yieldPos=$||this.yieldPos,this.awaitPos=F||this.awaitPos,V.length>1)Y=this.startNodeAt(K,W),Y.expressions=V,this.finishNodeAt(Y,"SequenceExpression",D,C);else Y=V[0]}else Y=this.parseParenExpression();if(this.options.preserveParens){var b=this.startNodeAt(Z,j);return b.expression=Y,this.finishNode(b,"ParenthesizedExpression")}else return Y};x.parseParenItem=function(q){return q};x.parseParenArrowList=function(q,Q,Z,j){return this.parseArrowExpression(this.startNodeAt(q,Q),Z,!1,j)};var QQ=[];x.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 j=this.start,Y=this.startLoc;if(q.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),j,Y,!0,!1),q.callee.type==="Super")this.raiseRecoverable(j,"Invalid use of 'super'");if(this.eat(O.parenL))q.arguments=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1);else q.arguments=QQ;return this.finishNode(q,"NewExpression")};x.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,`
29
29
  `),cooked:null}}else Z.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
30
- `),cooked:this.value};return this.next(),Z.tail=this.type===O.backQuote,this.finishNode(Z,"TemplateElement")};x.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 j=this.parseTemplateElement({isTagged:Q});Z.quasis=[j];while(!j.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(j=this.parseTemplateElement({isTagged:Q}))}return this.next(),this.finishNode(Z,"TemplateLiteral")};x.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)&&!M8.test(this.input.slice(this.lastTokEnd,this.start))};x.parseObj=function(q,Q){var Z=this.startNode(),j=!0,Y={};Z.properties=[],this.next();while(!this.eat(O.braceR)){if(!j){if(this.expect(O.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(O.braceR))break}else j=!1;var J=this.parseProperty(q,Q);if(!q)this.checkPropClash(J,Y,Q);Z.properties.push(J)}return this.finishNode(Z,q?"ObjectPattern":"ObjectExpression")};x.parseProperty=function(q,Q){var Z=this.startNode(),j,Y,J,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)J=this.start,K=this.startLoc;if(!q)j=this.eat(O.star)}var W=this.containsEsc;if(this.parsePropertyName(Z),!q&&!W&&this.options.ecmaVersion>=8&&!j&&this.isAsyncProp(Z))Y=!0,j=this.options.ecmaVersion>=9&&this.eat(O.star),this.parsePropertyName(Z);else Y=!1;return this.parsePropertyValue(Z,q,j,Y,J,K,Q,W),this.finishNode(Z,"Property")};x.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 j=q.value.start;if(q.kind==="get")this.raiseRecoverable(j,"getter should have no params");else this.raiseRecoverable(j,"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")};x.parsePropertyValue=function(q,Q,Z,j,Y,J,K,W){if((Z||j)&&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,j),q.kind="init"}else if(!Q&&!W&&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||j)this.unexpected();this.parseGetterSetter(q)}else if(this.options.ecmaVersion>=6&&!q.computed&&q.key.type==="Identifier"){if(Z||j)this.unexpected();if(this.checkUnreserved(q.key),q.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=Y;if(Q)q.value=this.parseMaybeDefault(Y,J,this.copyNode(q.key));else if(this.type===O.eq&&K){if(K.shorthandAssign<0)K.shorthandAssign=this.start;q.value=this.parseMaybeDefault(Y,J,this.copyNode(q.key))}else q.value=this.copyNode(q.key);q.kind="init",q.shorthand=!0}else this.unexpected()};x.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")};x.initFunction=function(q){if(q.id=null,this.options.ecmaVersion>=6)q.generator=q.expression=!1;if(this.options.ecmaVersion>=8)q.async=!1};x.parseMethod=function(q,Q,Z){var j=this.startNode(),Y=this.yieldPos,J=this.awaitPos,K=this.awaitIdentPos;if(this.initFunction(j),this.options.ecmaVersion>=6)j.generator=q;if(this.options.ecmaVersion>=8)j.async=!!Q;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(d9(Q,j.generator)|I0|(Z?N2:0)),this.expect(O.parenL),j.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(j,!1,!0,!1),this.yieldPos=Y,this.awaitPos=J,this.awaitIdentPos=K,this.finishNode(j,"FunctionExpression")};x.parseArrowExpression=function(q,Q,Z,j){var Y=this.yieldPos,J=this.awaitPos,K=this.awaitIdentPos;if(this.enterScope(d9(Z,!1)|i9),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,j),this.yieldPos=Y,this.awaitPos=J,this.awaitIdentPos=K,this.finishNode(q,"ArrowFunctionExpression")};x.parseFunctionBody=function(q,Q,Z,j){var Y=Q&&this.type!==O.braceL,J=this.strict,K=!1;if(Y)q.body=this.parseMaybeAssign(j),q.expression=!0,this.checkParams(q,!1);else{var W=this.options.ecmaVersion>=7&&!this.isSimpleParamList(q.params);if(!J||W){if(K=this.strictDirective(this.end),K&&W)this.raiseRecoverable(q.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var V=this.labels;if(this.labels=[],K)this.strict=!0;if(this.checkParams(q,!J&&!K&&!Q&&!Z&&this.isSimpleParamList(q.params)),this.strict&&q.id)this.checkLValSimple(q.id,E2);q.body=this.parseBlock(!1,void 0,K&&!J),q.expression=!1,this.adaptDirectivePrologue(q.body.body),this.labels=V}this.exitScope()};x.isSimpleParamList=function(q){for(var Q=0,Z=q;Q<Z.length;Q+=1){var j=Z[Q];if(j.type!=="Identifier")return!1}return!0};x.checkParams=function(q,Q){var Z=Object.create(null);for(var j=0,Y=q.params;j<Y.length;j+=1){var J=Y[j];this.checkLValInnerPattern(J,p9,Q?null:Z)}};x.parseExprList=function(q,Q,Z,j){var Y=[],J=!0;while(!this.eat(q)){if(!J){if(this.expect(O.comma),Q&&this.afterTrailingComma(q))break}else J=!1;var K=void 0;if(Z&&this.type===O.comma)K=null;else if(this.type===O.ellipsis){if(K=this.parseSpread(j),j&&this.type===O.comma&&j.trailingComma<0)j.trailingComma=this.start}else K=this.parseMaybeAssign(!1,j);Y.push(K)}return Y};x.checkUnreserved=function(q){var{start:Q,end:Z,name:j}=q;if(this.inGenerator&&j==="yield")this.raiseRecoverable(Q,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&j==="await")this.raiseRecoverable(Q,"Cannot use 'await' as identifier inside an async function");if(!(this.currentThisScope().flags&P0)&&j==="arguments")this.raiseRecoverable(Q,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(j==="arguments"||j==="await"))this.raise(Q,"Cannot use "+j+" in class static initialization block");if(this.keywords.test(j))this.raise(Q,"Unexpected keyword '"+j+"'");if(this.options.ecmaVersion<6&&this.input.slice(Q,Z).indexOf("\\")!==-1)return;var Y=this.strict?this.reservedWordsStrict:this.reservedWords;if(Y.test(j)){if(!this.inAsync&&j==="await")this.raiseRecoverable(Q,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(Q,"The keyword '"+j+"' is reserved")}};x.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};x.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};x.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};x.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")};x.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 w0=Y8.prototype;w0.raise=function(q,Q){var Z=l9(this.input,q);if(Q+=" ("+Z.line+":"+Z.column+")",this.sourceFile)Q+=" in "+this.sourceFile;var j=SyntaxError(Q);throw j.pos=q,j.loc=Z,j.raisedAt=this.pos,j};w0.raiseRecoverable=w0.raise;w0.curPosition=function(){if(this.options.locations)return new B1(this.curLine,this.pos-this.lineStart)};var j1=Y8.prototype,tq=function(Q){this.flags=Q,this.var=[],this.lexical=[],this.functions=[]};j1.enterScope=function(q){this.scopeStack.push(new tq(q))};j1.exitScope=function(){this.scopeStack.pop()};j1.treatFunctionsAsVarInScope=function(q){return q.flags&O1||!this.inModule&&q.flags&G1};j1.declareName=function(q,Q,Z){var j=!1;if(Q===r8){var Y=this.currentScope();if(j=Y.lexical.indexOf(q)>-1||Y.functions.indexOf(q)>-1||Y.var.indexOf(q)>-1,Y.lexical.push(q),this.inModule&&Y.flags&G1)delete this.undefinedExports[q]}else if(Q===T2){var J=this.currentScope();J.lexical.push(q)}else if(Q===k2){var K=this.currentScope();if(this.treatFunctionsAsVar)j=K.lexical.indexOf(q)>-1;else j=K.lexical.indexOf(q)>-1||K.var.indexOf(q)>-1;K.functions.push(q)}else for(var W=this.scopeStack.length-1;W>=0;--W){var V=this.scopeStack[W];if(V.lexical.indexOf(q)>-1&&!(V.flags&D2&&V.lexical[0]===q)||!this.treatFunctionsAsVarInScope(V)&&V.functions.indexOf(q)>-1){j=!0;break}if(V.var.push(q),this.inModule&&V.flags&G1)delete this.undefinedExports[q];if(V.flags&P0)break}if(j)this.raiseRecoverable(Z,"Identifier '"+q+"' has already been declared")};j1.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};j1.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};j1.currentVarScope=function(){for(var q=this.scopeStack.length-1;;q--){var Q=this.scopeStack[q];if(Q.flags&(P0|g1|U1))return Q}};j1.currentThisScope=function(){for(var q=this.scopeStack.length-1;;q--){var Q=this.scopeStack[q];if(Q.flags&(P0|g1|U1)&&!(Q.flags&i9))return Q}};var _1=function(Q,Z,j){if(this.type="",this.start=Z,this.end=0,Q.options.locations)this.loc=new y1(Q,j);if(Q.options.directSourceFile)this.sourceFile=Q.options.directSourceFile;if(Q.options.ranges)this.range=[Z,0]},x1=Y8.prototype;x1.startNode=function(){return new _1(this,this.start,this.startLoc)};x1.startNodeAt=function(q,Q){return new _1(this,q,Q)};function f2(q,Q,Z,j){if(q.type=Q,q.end=Z,this.options.locations)q.loc.end=j;if(this.options.ranges)q.range[1]=Z;return q}x1.finishNode=function(q,Q){return f2.call(this,q,Q,this.lastTokEnd,this.lastTokEndLoc)};x1.finishNodeAt=function(q,Q,Z,j){return f2.call(this,q,Q,Z,j)};x1.copyNode=function(q){var Q=new _1(this,q.start,this.startLoc);for(var Z in q)Q[Z]=q[Z];return Q};var eq="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",y2="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",g2=y2+" Extended_Pictographic",_2=g2,x2=_2+" EBase EComp EMod EPres ExtPict",u2=x2,qQ=u2,QQ={9:y2,10:g2,11:_2,12:x2,13:u2,14:qQ},ZQ="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",jQ={9:"",10:"",11:"",12:"",13:"",14:ZQ},$2="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",m2="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",l2=m2+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",c2=l2+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",i2=c2+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",d2=i2+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",YQ=d2+" "+eq,HQ={9:m2,10:l2,11:c2,12:i2,13:d2,14:YQ},p2={};function KQ(q){var Q=p2[q]={binary:Z1(QQ[q]+" "+$2),binaryOfStrings:Z1(jQ[q]),nonBinary:{General_Category:Z1($2),Script:Z1(HQ[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(h1=0,F0=[9,10,11,12,13,14];h1<F0.length;h1+=1)u9=F0[h1],KQ(u9);var u9,h1,F0,b=Y8.prototype,A0=function(Q,Z){this.parent=Q,this.base=Z||this};A0.prototype.separatedFrom=function(Q){for(var Z=this;Z;Z=Z.parent)for(var j=Q;j;j=j.parent)if(Z.base===j.base&&Z!==j)return!0;return!1};A0.prototype.sibling=function(){return new A0(this.parent,this.base)};var c8=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};c8.prototype.reset=function(Q,Z,j){var Y=j.indexOf("v")!==-1,J=j.indexOf("u")!==-1;if(this.start=Q|0,this.source=Z+"",this.flags=j,Y&&this.parser.options.ecmaVersion>=15)this.switchU=!0,this.switchV=!0,this.switchN=!0;else this.switchU=J&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=J&&this.parser.options.ecmaVersion>=9};c8.prototype.raise=function(Q){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+Q)};c8.prototype.at=function(Q,Z){if(Z===void 0)Z=!1;var j=this.source,Y=j.length;if(Q>=Y)return-1;var J=j.charCodeAt(Q);if(!(Z||this.switchU)||J<=55295||J>=57344||Q+1>=Y)return J;var K=j.charCodeAt(Q+1);return K>=56320&&K<=57343?(J<<10)+K-56613888:J};c8.prototype.nextIndex=function(Q,Z){if(Z===void 0)Z=!1;var j=this.source,Y=j.length;if(Q>=Y)return Y;var J=j.charCodeAt(Q),K;if(!(Z||this.switchU)||J<=55295||J>=57344||Q+1>=Y||(K=j.charCodeAt(Q+1))<56320||K>57343)return Q+1;return Q+2};c8.prototype.current=function(Q){if(Q===void 0)Q=!1;return this.at(this.pos,Q)};c8.prototype.lookahead=function(Q){if(Q===void 0)Q=!1;return this.at(this.nextIndex(this.pos,Q),Q)};c8.prototype.advance=function(Q){if(Q===void 0)Q=!1;this.pos=this.nextIndex(this.pos,Q)};c8.prototype.eat=function(Q,Z){if(Z===void 0)Z=!1;if(this.current(Z)===Q)return this.advance(Z),!0;return!1};c8.prototype.eatChars=function(Q,Z){if(Z===void 0)Z=!1;var j=this.pos;for(var Y=0,J=Q;Y<J.length;Y+=1){var K=J[Y],W=this.at(j,Z);if(W===-1||W!==K)return!1;j=this.nextIndex(j,Z)}return this.pos=j,!0};b.validateRegExpFlags=function(q){var{validFlags:Q,flags:Z}=q,j=!1,Y=!1;for(var J=0;J<Z.length;J++){var K=Z.charAt(J);if(Q.indexOf(K)===-1)this.raise(q.start,"Invalid regular expression flag");if(Z.indexOf(K,J+1)>-1)this.raise(q.start,"Duplicate regular expression flag");if(K==="u")j=!0;if(K==="v")Y=!0}if(this.options.ecmaVersion>=15&&j&&Y)this.raise(q.start,"Invalid regular expression flag")};function JQ(q){for(var Q in q)return!0;return!1}b.validateRegExpPattern=function(q){if(this.regexp_pattern(q),!q.switchN&&this.options.ecmaVersion>=9&&JQ(q.groupNames))q.switchN=!0,this.regexp_pattern(q)};b.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 j=Z[Q];if(!q.groupNames[j])q.raise("Invalid named capture referenced")}};b.regexp_disjunction=function(q){var Q=this.options.ecmaVersion>=16;if(Q)q.branchID=new A0(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")};b.regexp_alternative=function(q){while(q.pos<q.source.length&&this.regexp_eatTerm(q));};b.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};b.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};b.regexp_eatQuantifier=function(q,Q){if(Q===void 0)Q=!1;if(this.regexp_eatQuantifierPrefix(q,Q))return q.eat(63),!0;return!1};b.regexp_eatQuantifierPrefix=function(q,Q){return q.eat(42)||q.eat(43)||q.eat(63)||this.regexp_eatBracedQuantifier(q,Q)};b.regexp_eatBracedQuantifier=function(q,Q){var Z=q.pos;if(q.eat(123)){var j=0,Y=-1;if(this.regexp_eatDecimalDigits(q)){if(j=q.lastIntValue,q.eat(44)&&this.regexp_eatDecimalDigits(q))Y=q.lastIntValue;if(q.eat(125)){if(Y!==-1&&Y<j&&!Q)q.raise("numbers out of order in {} quantifier");return!0}}if(q.switchU&&!Q)q.raise("Incomplete quantifier");q.pos=Z}return!1};b.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)};b.regexp_eatReverseSolidusAtomEscape=function(q){var Q=q.pos;if(q.eat(92)){if(this.regexp_eatAtomEscape(q))return!0;q.pos=Q}return!1};b.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),j=q.eat(45);if(Z||j){for(var Y=0;Y<Z.length;Y++){var J=Z.charAt(Y);if(Z.indexOf(J,Y+1)>-1)q.raise("Duplicate regular expression modifiers")}if(j){var K=this.regexp_eatModifiers(q);if(!Z&&!K&&q.current()===58)q.raise("Invalid regular expression modifiers");for(var W=0;W<K.length;W++){var V=K.charAt(W);if(K.indexOf(V,W+1)>-1||Z.indexOf(V)>-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};b.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};b.regexp_eatModifiers=function(q){var Q="",Z=0;while((Z=q.current())!==-1&&XQ(Z))Q+=n8(Z),q.advance();return Q};function XQ(q){return q===105||q===109||q===115}b.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)};b.regexp_eatInvalidBracedQuantifier=function(q){if(this.regexp_eatBracedQuantifier(q,!0))q.raise("Nothing to repeat");return!1};b.regexp_eatSyntaxCharacter=function(q){var Q=q.current();if(o2(Q))return q.lastIntValue=Q,q.advance(),!0;return!1};function o2(q){return q===36||q>=40&&q<=43||q===46||q===63||q>=91&&q<=94||q>=123&&q<=125}b.regexp_eatPatternCharacters=function(q){var Q=q.pos,Z=0;while((Z=q.current())!==-1&&!o2(Z))q.advance();return q.pos!==Q};b.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};b.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 j=0,Y=Z;j<Y.length;j+=1){var J=Y[j];if(!J.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}};b.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};b.regexp_eatRegExpIdentifierName=function(q){if(q.lastStringValue="",this.regexp_eatRegExpIdentifierStart(q)){q.lastStringValue+=n8(q.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(q))q.lastStringValue+=n8(q.lastIntValue);return!0}return!1};b.regexp_eatRegExpIdentifierStart=function(q){var Q=q.pos,Z=this.options.ecmaVersion>=11,j=q.current(Z);if(q.advance(Z),j===92&&this.regexp_eatRegExpUnicodeEscapeSequence(q,Z))j=q.lastIntValue;if(WQ(j))return q.lastIntValue=j,!0;return q.pos=Q,!1};function WQ(q){return A8(q,!0)||q===36||q===95}b.regexp_eatRegExpIdentifierPart=function(q){var Q=q.pos,Z=this.options.ecmaVersion>=11,j=q.current(Z);if(q.advance(Z),j===92&&this.regexp_eatRegExpUnicodeEscapeSequence(q,Z))j=q.lastIntValue;if(VQ(j))return q.lastIntValue=j,!0;return q.pos=Q,!1};function VQ(q){return y8(q,!0)||q===36||q===95||q===8204||q===8205}b.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};b.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};b.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};b.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)};b.regexp_eatCControlLetter=function(q){var Q=q.pos;if(q.eat(99)){if(this.regexp_eatControlLetter(q))return!0;q.pos=Q}return!1};b.regexp_eatZero=function(q){if(q.current()===48&&!D0(q.lookahead()))return q.lastIntValue=0,q.advance(),!0;return!1};b.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};b.regexp_eatControlLetter=function(q){var Q=q.current();if(s2(Q))return q.lastIntValue=Q%32,q.advance(),!0;return!1};function s2(q){return q>=65&&q<=90||q>=97&&q<=122}b.regexp_eatRegExpUnicodeEscapeSequence=function(q,Q){if(Q===void 0)Q=!1;var Z=q.pos,j=Q||q.switchU;if(q.eat(117)){if(this.regexp_eatFixedHexDigits(q,4)){var Y=q.lastIntValue;if(j&&Y>=55296&&Y<=56319){var J=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=(Y-55296)*1024+(K-56320)+65536,!0}q.pos=J,q.lastIntValue=Y}return!0}if(j&&q.eat(123)&&this.regexp_eatHexDigits(q)&&q.eat(125)&&GQ(q.lastIntValue))return!0;if(j)q.raise("Invalid unicode escape");q.pos=Z}return!1};function GQ(q){return q>=0&&q<=1114111}b.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};b.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,a8=1,b8=2;b.regexp_eatCharacterClassEscape=function(q){var Q=q.current();if(zQ(Q))return q.lastIntValue=-1,q.advance(),a8;var Z=!1;if(q.switchU&&this.options.ecmaVersion>=9&&((Z=Q===80)||Q===112)){q.lastIntValue=-1,q.advance();var j;if(q.eat(123)&&(j=this.regexp_eatUnicodePropertyValueExpression(q))&&q.eat(125)){if(Z&&j===b8)q.raise("Invalid property name");return j}q.raise("Invalid property name")}return n2};function zQ(q){return q===100||q===68||q===115||q===83||q===119||q===87}b.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 j=q.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(q,Z,j),a8}}if(q.pos=Q,this.regexp_eatLoneUnicodePropertyNameOrValue(q)){var Y=q.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(q,Y)}return n2};b.regexp_validateUnicodePropertyNameAndValue=function(q,Q,Z){if(!F1(q.unicodeProperties.nonBinary,Q))q.raise("Invalid property name");if(!q.unicodeProperties.nonBinary[Q].test(Z))q.raise("Invalid property value")};b.regexp_validateUnicodePropertyNameOrValue=function(q,Q){if(q.unicodeProperties.binary.test(Q))return a8;if(q.switchV&&q.unicodeProperties.binaryOfStrings.test(Q))return b8;q.raise("Invalid property name")};b.regexp_eatUnicodePropertyName=function(q){var Q=0;q.lastStringValue="";while(a2(Q=q.current()))q.lastStringValue+=n8(Q),q.advance();return q.lastStringValue!==""};function a2(q){return s2(q)||q===95}b.regexp_eatUnicodePropertyValue=function(q){var Q=0;q.lastStringValue="";while(OQ(Q=q.current()))q.lastStringValue+=n8(Q),q.advance();return q.lastStringValue!==""};function OQ(q){return a2(q)||D0(q)}b.regexp_eatLoneUnicodePropertyNameOrValue=function(q){return this.regexp_eatUnicodePropertyValue(q)};b.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===b8)q.raise("Negated character class may contain strings");return!0}return!1};b.regexp_classContents=function(q){if(q.current()===93)return a8;if(q.switchV)return this.regexp_classSetExpression(q);return this.regexp_nonEmptyClassRanges(q),a8};b.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")}}};b.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 j=q.current();if(j!==93)return q.lastIntValue=j,q.advance(),!0;return!1};b.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)};b.regexp_classSetExpression=function(q){var Q=a8,Z;if(this.regexp_eatClassSetRange(q));else if(Z=this.regexp_eatClassSetOperand(q)){if(Z===b8)Q=b8;var j=q.pos;while(q.eatChars([38,38])){if(q.current()!==38&&(Z=this.regexp_eatClassSetOperand(q))){if(Z!==b8)Q=a8;continue}q.raise("Invalid character in character class")}if(j!==q.pos)return Q;while(q.eatChars([45,45])){if(this.regexp_eatClassSetOperand(q))continue;q.raise("Invalid character in character class")}if(j!==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===b8)Q=b8}};b.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 j=q.lastIntValue;if(Z!==-1&&j!==-1&&Z>j)q.raise("Range out of order in character class");return!0}q.pos=Q}return!1};b.regexp_eatClassSetOperand=function(q){if(this.regexp_eatClassSetCharacter(q))return a8;return this.regexp_eatClassStringDisjunction(q)||this.regexp_eatNestedClass(q)};b.regexp_eatNestedClass=function(q){var Q=q.pos;if(q.eat(91)){var Z=q.eat(94),j=this.regexp_classContents(q);if(q.eat(93)){if(Z&&j===b8)q.raise("Negated character class may contain strings");return j}q.pos=Q}if(q.eat(92)){var Y=this.regexp_eatCharacterClassEscape(q);if(Y)return Y;q.pos=Q}return null};b.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};b.regexp_classStringDisjunctionContents=function(q){var Q=this.regexp_classString(q);while(q.eat(124))if(this.regexp_classString(q)===b8)Q=b8;return Q};b.regexp_classString=function(q){var Q=0;while(this.regexp_eatClassSetCharacter(q))Q++;return Q===1?a8:b8};b.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()&&UQ(Z))return!1;if(RQ(Z))return!1;return q.advance(),q.lastIntValue=Z,!0};function UQ(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 RQ(q){return q===40||q===41||q===45||q===47||q>=91&&q<=93||q>=123&&q<=125}b.regexp_eatClassSetReservedPunctuator=function(q){var Q=q.current();if(BQ(Q))return q.lastIntValue=Q,q.advance(),!0;return!1};function BQ(q){return q===33||q===35||q===37||q===38||q===44||q===45||q>=58&&q<=62||q===64||q===96||q===126}b.regexp_eatClassControlLetter=function(q){var Q=q.current();if(D0(Q)||Q===95)return q.lastIntValue=Q%32,q.advance(),!0;return!1};b.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};b.regexp_eatDecimalDigits=function(q){var Q=q.pos,Z=0;q.lastIntValue=0;while(D0(Z=q.current()))q.lastIntValue=10*q.lastIntValue+(Z-48),q.advance();return q.pos!==Q};function D0(q){return q>=48&&q<=57}b.regexp_eatHexDigits=function(q){var Q=q.pos,Z=0;q.lastIntValue=0;while(r2(Z=q.current()))q.lastIntValue=16*q.lastIntValue+t2(Z),q.advance();return q.pos!==Q};function r2(q){return q>=48&&q<=57||q>=65&&q<=70||q>=97&&q<=102}function t2(q){if(q>=65&&q<=70)return 10+(q-65);if(q>=97&&q<=102)return 10+(q-97);return q-48}b.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};b.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}b.regexp_eatFixedHexDigits=function(q,Q){var Z=q.pos;q.lastIntValue=0;for(var j=0;j<Q;++j){var Y=q.current();if(!r2(Y))return q.pos=Z,!1;q.lastIntValue=16*q.lastIntValue+t2(Y),q.advance()}return!0};var N0=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 y1(Q,Q.startLoc,Q.endLoc);if(Q.options.ranges)this.range=[Q.start,Q.end]},c=Y8.prototype;c.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 N0(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};c.getToken=function(){return this.next(),new N0(this)};if(typeof Symbol<"u")c[Symbol.iterator]=function(){var q=this;return{next:function(){var Q=q.getToken();return{done:Q.type===O.eof,value:Q}}}};c.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())};c.readToken=function(q){if(A8(q,this.options.ecmaVersion>=6)||q===92)return this.readWord();return this.getTokenFromCode(q)};c.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};c.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};c.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 j=void 0,Y=Q;(j=I2(this.input,Y,this.pos))>-1;)++this.curLine,Y=this.lineStart=j;if(this.options.onComment)this.options.onComment(!0,this.input.slice(Q+2,Z),Q,this.pos,q,this.curPosition())};c.skipLineComment=function(q){var Q=this.pos,Z=this.options.onComment&&this.curPosition(),j=this.input.charCodeAt(this.pos+=q);while(this.pos<this.input.length&&!z1(j))j=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())};c.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&&m9.test(String.fromCharCode(q)))++this.pos;else break q}}};c.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)};c.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)};c.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)};c.readToken_mult_modulo_exp=function(q){var Q=this.input.charCodeAt(this.pos+1),Z=1,j=q===42?O.star:O.modulo;if(this.options.ecmaVersion>=7&&q===42&&Q===42)++Z,j=O.starstar,Q=this.input.charCodeAt(this.pos+2);if(Q===61)return this.finishOp(O.assign,Z+1);return this.finishOp(j,Z)};c.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)};c.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)};c.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||M8.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)};c.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)};c.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)};c.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 j=this.input.charCodeAt(this.pos+2);if(j===61)return this.finishOp(O.assign,3)}return this.finishOp(O.coalesce,2)}}return this.finishOp(O.question,1)};c.readToken_numberSign=function(){var q=this.options.ecmaVersion,Q=35;if(q>=13){if(++this.pos,Q=this.fullCharCodeAtPos(),A8(Q,!0)||Q===92)return this.finishToken(O.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+n8(Q)+"'")};c.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 '"+n8(q)+"'")};c.finishOp=function(q,Q){var Z=this.input.slice(this.pos,this.pos+Q);return this.pos+=Q,this.finishToken(q,Z)};c.readRegexp=function(){var q,Q,Z=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(Z,"Unterminated regular expression");var j=this.input.charAt(this.pos);if(M8.test(j))this.raise(Z,"Unterminated regular expression");if(!q){if(j==="[")Q=!0;else if(j==="]"&&Q)Q=!1;else if(j==="/"&&!Q)break;q=j==="\\"}else q=!1;++this.pos}var Y=this.input.slice(Z,this.pos);++this.pos;var J=this.pos,K=this.readWord1();if(this.containsEsc)this.unexpected(J);var W=this.regexpState||(this.regexpState=new c8(this));W.reset(Z,Y,K),this.validateRegExpFlags(W),this.validateRegExpPattern(W);var V=null;try{V=new RegExp(Y,K)}catch(R){}return this.finishToken(O.regexp,{pattern:Y,flags:K,value:V})};c.readInt=function(q,Q,Z){var j=this.options.ecmaVersion>=12&&Q===void 0,Y=Z&&this.input.charCodeAt(this.pos)===48,J=this.pos,K=0,W=0;for(var V=0,R=Q==null?1/0:Q;V<R;++V,++this.pos){var z=this.input.charCodeAt(this.pos),M=void 0;if(j&&z===95){if(Y)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(W===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(V===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");W=z;continue}if(z>=97)M=z-97+10;else if(z>=65)M=z-65+10;else if(z>=48&&z<=57)M=z-48;else M=1/0;if(M>=q)break;W=z,K=K*q+M}if(j&&W===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===J||Q!=null&&this.pos-J!==Q)return null;return K};function FQ(q,Q){if(Q)return parseInt(q,8);return parseFloat(q.replace(/_/g,""))}function q5(q){if(typeof BigInt!=="function")return null;return BigInt(q.replace(/_/g,""))}c.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=q5(this.input.slice(Q,this.pos)),++this.pos;else if(A8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(O.num,Z)};c.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 j=this.input.charCodeAt(this.pos);if(!Z&&!q&&this.options.ecmaVersion>=11&&j===110){var Y=q5(this.input.slice(Q,this.pos));if(++this.pos,A8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(O.num,Y)}if(Z&&/[89]/.test(this.input.slice(Q,this.pos)))Z=!1;if(j===46&&!Z)++this.pos,this.readInt(10),j=this.input.charCodeAt(this.pos);if((j===69||j===101)&&!Z){if(j=this.input.charCodeAt(++this.pos),j===43||j===45)++this.pos;if(this.readInt(10)===null)this.raise(Q,"Invalid number")}if(A8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var J=FQ(this.input.slice(Q,this.pos),Z);return this.finishToken(O.num,J)};c.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};c.readString=function(q){var Q="",Z=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var j=this.input.charCodeAt(this.pos);if(j===q)break;if(j===92)Q+=this.input.slice(Z,this.pos),Q+=this.readEscapedChar(!1),Z=this.pos;else if(j===8232||j===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(z1(j))this.raise(this.start,"Unterminated string constant");++this.pos}}return Q+=this.input.slice(Z,this.pos++),this.finishToken(O.string,Q)};var Q5={};c.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(q){if(q===Q5)this.readInvalidTemplateToken();else throw q}this.inTemplateElement=!1};c.invalidStringToken=function(q,Q){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Q5;else this.raise(q,Q)};c.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(z1(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
+ `),cooked:this.value};return this.next(),Z.tail=this.type===O.backQuote,this.finishNode(Z,"TemplateElement")};x.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 j=this.parseTemplateElement({isTagged:Q});Z.quasis=[j];while(!j.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(j=this.parseTemplateElement({isTagged:Q}))}return this.next(),this.finishNode(Z,"TemplateLiteral")};x.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)&&!M8.test(this.input.slice(this.lastTokEnd,this.start))};x.parseObj=function(q,Q){var Z=this.startNode(),j=!0,Y={};Z.properties=[],this.next();while(!this.eat(O.braceR)){if(!j){if(this.expect(O.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(O.braceR))break}else j=!1;var J=this.parseProperty(q,Q);if(!q)this.checkPropClash(J,Y,Q);Z.properties.push(J)}return this.finishNode(Z,q?"ObjectPattern":"ObjectExpression")};x.parseProperty=function(q,Q){var Z=this.startNode(),j,Y,J,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)J=this.start,K=this.startLoc;if(!q)j=this.eat(O.star)}var W=this.containsEsc;if(this.parsePropertyName(Z),!q&&!W&&this.options.ecmaVersion>=8&&!j&&this.isAsyncProp(Z))Y=!0,j=this.options.ecmaVersion>=9&&this.eat(O.star),this.parsePropertyName(Z);else Y=!1;return this.parsePropertyValue(Z,q,j,Y,J,K,Q,W),this.finishNode(Z,"Property")};x.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 j=q.value.start;if(q.kind==="get")this.raiseRecoverable(j,"getter should have no params");else this.raiseRecoverable(j,"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")};x.parsePropertyValue=function(q,Q,Z,j,Y,J,K,W){if((Z||j)&&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,j),q.kind="init"}else if(!Q&&!W&&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||j)this.unexpected();this.parseGetterSetter(q)}else if(this.options.ecmaVersion>=6&&!q.computed&&q.key.type==="Identifier"){if(Z||j)this.unexpected();if(this.checkUnreserved(q.key),q.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=Y;if(Q)q.value=this.parseMaybeDefault(Y,J,this.copyNode(q.key));else if(this.type===O.eq&&K){if(K.shorthandAssign<0)K.shorthandAssign=this.start;q.value=this.parseMaybeDefault(Y,J,this.copyNode(q.key))}else q.value=this.copyNode(q.key);q.kind="init",q.shorthand=!0}else this.unexpected()};x.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")};x.initFunction=function(q){if(q.id=null,this.options.ecmaVersion>=6)q.generator=q.expression=!1;if(this.options.ecmaVersion>=8)q.async=!1};x.parseMethod=function(q,Q,Z){var j=this.startNode(),Y=this.yieldPos,J=this.awaitPos,K=this.awaitIdentPos;if(this.initFunction(j),this.options.ecmaVersion>=6)j.generator=q;if(this.options.ecmaVersion>=8)j.async=!!Q;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(o9(Q,j.generator)|S0|(Z?k2:0)),this.expect(O.parenL),j.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(j,!1,!0,!1),this.yieldPos=Y,this.awaitPos=J,this.awaitIdentPos=K,this.finishNode(j,"FunctionExpression")};x.parseArrowExpression=function(q,Q,Z,j){var Y=this.yieldPos,J=this.awaitPos,K=this.awaitIdentPos;if(this.enterScope(o9(Z,!1)|p9),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,j),this.yieldPos=Y,this.awaitPos=J,this.awaitIdentPos=K,this.finishNode(q,"ArrowFunctionExpression")};x.parseFunctionBody=function(q,Q,Z,j){var Y=Q&&this.type!==O.braceL,J=this.strict,K=!1;if(Y)q.body=this.parseMaybeAssign(j),q.expression=!0,this.checkParams(q,!1);else{var W=this.options.ecmaVersion>=7&&!this.isSimpleParamList(q.params);if(!J||W){if(K=this.strictDirective(this.end),K&&W)this.raiseRecoverable(q.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var V=this.labels;if(this.labels=[],K)this.strict=!0;if(this.checkParams(q,!J&&!K&&!Q&&!Z&&this.isSimpleParamList(q.params)),this.strict&&q.id)this.checkLValSimple(q.id,h2);q.body=this.parseBlock(!1,void 0,K&&!J),q.expression=!1,this.adaptDirectivePrologue(q.body.body),this.labels=V}this.exitScope()};x.isSimpleParamList=function(q){for(var Q=0,Z=q;Q<Z.length;Q+=1){var j=Z[Q];if(j.type!=="Identifier")return!1}return!0};x.checkParams=function(q,Q){var Z=Object.create(null);for(var j=0,Y=q.params;j<Y.length;j+=1){var J=Y[j];this.checkLValInnerPattern(J,s9,Q?null:Z)}};x.parseExprList=function(q,Q,Z,j){var Y=[],J=!0;while(!this.eat(q)){if(!J){if(this.expect(O.comma),Q&&this.afterTrailingComma(q))break}else J=!1;var K=void 0;if(Z&&this.type===O.comma)K=null;else if(this.type===O.ellipsis){if(K=this.parseSpread(j),j&&this.type===O.comma&&j.trailingComma<0)j.trailingComma=this.start}else K=this.parseMaybeAssign(!1,j);Y.push(K)}return Y};x.checkUnreserved=function(q){var{start:Q,end:Z,name:j}=q;if(this.inGenerator&&j==="yield")this.raiseRecoverable(Q,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&j==="await")this.raiseRecoverable(Q,"Cannot use 'await' as identifier inside an async function");if(!(this.currentThisScope().flags&D0)&&j==="arguments")this.raiseRecoverable(Q,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(j==="arguments"||j==="await"))this.raise(Q,"Cannot use "+j+" in class static initialization block");if(this.keywords.test(j))this.raise(Q,"Unexpected keyword '"+j+"'");if(this.options.ecmaVersion<6&&this.input.slice(Q,Z).indexOf("\\")!==-1)return;var Y=this.strict?this.reservedWordsStrict:this.reservedWords;if(Y.test(j)){if(!this.inAsync&&j==="await")this.raiseRecoverable(Q,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(Q,"The keyword '"+j+"' is reserved")}};x.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};x.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};x.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};x.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")};x.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 C0=Y8.prototype;C0.raise=function(q,Q){var Z=i9(this.input,q);if(Q+=" ("+Z.line+":"+Z.column+")",this.sourceFile)Q+=" in "+this.sourceFile;var j=SyntaxError(Q);throw j.pos=q,j.loc=Z,j.raisedAt=this.pos,j};C0.raiseRecoverable=C0.raise;C0.curPosition=function(){if(this.options.locations)return new R1(this.curLine,this.pos-this.lineStart)};var j1=Y8.prototype,ZQ=function(Q){this.flags=Q,this.var=[],this.lexical=[],this.functions=[]};j1.enterScope=function(q){this.scopeStack.push(new ZQ(q))};j1.exitScope=function(){this.scopeStack.pop()};j1.treatFunctionsAsVarInScope=function(q){return q.flags&z1||!this.inModule&&q.flags&V1};j1.declareName=function(q,Q,Z){var j=!1;if(Q===r8){var Y=this.currentScope();if(j=Y.lexical.indexOf(q)>-1||Y.functions.indexOf(q)>-1||Y.var.indexOf(q)>-1,Y.lexical.push(q),this.inModule&&Y.flags&V1)delete this.undefinedExports[q]}else if(Q===v2){var J=this.currentScope();J.lexical.push(q)}else if(Q===E2){var K=this.currentScope();if(this.treatFunctionsAsVar)j=K.lexical.indexOf(q)>-1;else j=K.lexical.indexOf(q)>-1||K.var.indexOf(q)>-1;K.functions.push(q)}else for(var W=this.scopeStack.length-1;W>=0;--W){var V=this.scopeStack[W];if(V.lexical.indexOf(q)>-1&&!(V.flags&b2&&V.lexical[0]===q)||!this.treatFunctionsAsVarInScope(V)&&V.functions.indexOf(q)>-1){j=!0;break}if(V.var.push(q),this.inModule&&V.flags&V1)delete this.undefinedExports[q];if(V.flags&D0)break}if(j)this.raiseRecoverable(Z,"Identifier '"+q+"' has already been declared")};j1.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};j1.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};j1.currentVarScope=function(){for(var q=this.scopeStack.length-1;;q--){var Q=this.scopeStack[q];if(Q.flags&(D0|_1|O1))return Q}};j1.currentThisScope=function(){for(var q=this.scopeStack.length-1;;q--){var Q=this.scopeStack[q];if(Q.flags&(D0|_1|O1)&&!(Q.flags&p9))return Q}};var x1=function(Q,Z,j){if(this.type="",this.start=Z,this.end=0,Q.options.locations)this.loc=new g1(Q,j);if(Q.options.directSourceFile)this.sourceFile=Q.options.directSourceFile;if(Q.options.ranges)this.range=[Z,0]},u1=Y8.prototype;u1.startNode=function(){return new x1(this,this.start,this.startLoc)};u1.startNodeAt=function(q,Q){return new x1(this,q,Q)};function g2(q,Q,Z,j){if(q.type=Q,q.end=Z,this.options.locations)q.loc.end=j;if(this.options.ranges)q.range[1]=Z;return q}u1.finishNode=function(q,Q){return g2.call(this,q,Q,this.lastTokEnd,this.lastTokEndLoc)};u1.finishNodeAt=function(q,Q,Z,j){return g2.call(this,q,Q,Z,j)};u1.copyNode=function(q){var Q=new x1(this,q.start,this.startLoc);for(var Z in q)Q[Z]=q[Z];return Q};var jQ="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",_2="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",x2=_2+" Extended_Pictographic",u2=x2,m2=u2+" EBase EComp EMod EPres ExtPict",l2=m2,YQ=l2,HQ={9:_2,10:x2,11:u2,12:m2,13:l2,14:YQ},KQ="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",JQ={9:"",10:"",11:"",12:"",13:"",14:KQ},w2="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",c2="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",i2=c2+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",d2=i2+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",p2=d2+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",o2=p2+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",XQ=o2+" "+jQ,WQ={9:c2,10:i2,11:d2,12:p2,13:o2,14:XQ},s2={};function VQ(q){var Q=s2[q]={binary:Z1(HQ[q]+" "+w2),binaryOfStrings:Z1(JQ[q]),nonBinary:{General_Category:Z1(w2),Script:Z1(WQ[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(f1=0,$0=[9,10,11,12,13,14];f1<$0.length;f1+=1)l9=$0[f1],VQ(l9);var l9,f1,$0,k=Y8.prototype,I0=function(Q,Z){this.parent=Q,this.base=Z||this};I0.prototype.separatedFrom=function(Q){for(var Z=this;Z;Z=Z.parent)for(var j=Q;j;j=j.parent)if(Z.base===j.base&&Z!==j)return!0;return!1};I0.prototype.sibling=function(){return new I0(this.parent,this.base)};var i8=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=s2[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};i8.prototype.reset=function(Q,Z,j){var Y=j.indexOf("v")!==-1,J=j.indexOf("u")!==-1;if(this.start=Q|0,this.source=Z+"",this.flags=j,Y&&this.parser.options.ecmaVersion>=15)this.switchU=!0,this.switchV=!0,this.switchN=!0;else this.switchU=J&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=J&&this.parser.options.ecmaVersion>=9};i8.prototype.raise=function(Q){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+Q)};i8.prototype.at=function(Q,Z){if(Z===void 0)Z=!1;var j=this.source,Y=j.length;if(Q>=Y)return-1;var J=j.charCodeAt(Q);if(!(Z||this.switchU)||J<=55295||J>=57344||Q+1>=Y)return J;var K=j.charCodeAt(Q+1);return K>=56320&&K<=57343?(J<<10)+K-56613888:J};i8.prototype.nextIndex=function(Q,Z){if(Z===void 0)Z=!1;var j=this.source,Y=j.length;if(Q>=Y)return Y;var J=j.charCodeAt(Q),K;if(!(Z||this.switchU)||J<=55295||J>=57344||Q+1>=Y||(K=j.charCodeAt(Q+1))<56320||K>57343)return Q+1;return Q+2};i8.prototype.current=function(Q){if(Q===void 0)Q=!1;return this.at(this.pos,Q)};i8.prototype.lookahead=function(Q){if(Q===void 0)Q=!1;return this.at(this.nextIndex(this.pos,Q),Q)};i8.prototype.advance=function(Q){if(Q===void 0)Q=!1;this.pos=this.nextIndex(this.pos,Q)};i8.prototype.eat=function(Q,Z){if(Z===void 0)Z=!1;if(this.current(Z)===Q)return this.advance(Z),!0;return!1};i8.prototype.eatChars=function(Q,Z){if(Z===void 0)Z=!1;var j=this.pos;for(var Y=0,J=Q;Y<J.length;Y+=1){var K=J[Y],W=this.at(j,Z);if(W===-1||W!==K)return!1;j=this.nextIndex(j,Z)}return this.pos=j,!0};k.validateRegExpFlags=function(q){var{validFlags:Q,flags:Z}=q,j=!1,Y=!1;for(var J=0;J<Z.length;J++){var K=Z.charAt(J);if(Q.indexOf(K)===-1)this.raise(q.start,"Invalid regular expression flag");if(Z.indexOf(K,J+1)>-1)this.raise(q.start,"Duplicate regular expression flag");if(K==="u")j=!0;if(K==="v")Y=!0}if(this.options.ecmaVersion>=15&&j&&Y)this.raise(q.start,"Invalid regular expression flag")};function GQ(q){for(var Q in q)return!0;return!1}k.validateRegExpPattern=function(q){if(this.regexp_pattern(q),!q.switchN&&this.options.ecmaVersion>=9&&GQ(q.groupNames))q.switchN=!0,this.regexp_pattern(q)};k.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 j=Z[Q];if(!q.groupNames[j])q.raise("Invalid named capture referenced")}};k.regexp_disjunction=function(q){var Q=this.options.ecmaVersion>=16;if(Q)q.branchID=new I0(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")};k.regexp_alternative=function(q){while(q.pos<q.source.length&&this.regexp_eatTerm(q));};k.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};k.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};k.regexp_eatQuantifier=function(q,Q){if(Q===void 0)Q=!1;if(this.regexp_eatQuantifierPrefix(q,Q))return q.eat(63),!0;return!1};k.regexp_eatQuantifierPrefix=function(q,Q){return q.eat(42)||q.eat(43)||q.eat(63)||this.regexp_eatBracedQuantifier(q,Q)};k.regexp_eatBracedQuantifier=function(q,Q){var Z=q.pos;if(q.eat(123)){var j=0,Y=-1;if(this.regexp_eatDecimalDigits(q)){if(j=q.lastIntValue,q.eat(44)&&this.regexp_eatDecimalDigits(q))Y=q.lastIntValue;if(q.eat(125)){if(Y!==-1&&Y<j&&!Q)q.raise("numbers out of order in {} quantifier");return!0}}if(q.switchU&&!Q)q.raise("Incomplete quantifier");q.pos=Z}return!1};k.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)};k.regexp_eatReverseSolidusAtomEscape=function(q){var Q=q.pos;if(q.eat(92)){if(this.regexp_eatAtomEscape(q))return!0;q.pos=Q}return!1};k.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),j=q.eat(45);if(Z||j){for(var Y=0;Y<Z.length;Y++){var J=Z.charAt(Y);if(Z.indexOf(J,Y+1)>-1)q.raise("Duplicate regular expression modifiers")}if(j){var K=this.regexp_eatModifiers(q);if(!Z&&!K&&q.current()===58)q.raise("Invalid regular expression modifiers");for(var W=0;W<K.length;W++){var V=K.charAt(W);if(K.indexOf(V,W+1)>-1||Z.indexOf(V)>-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};k.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};k.regexp_eatModifiers=function(q){var Q="",Z=0;while((Z=q.current())!==-1&&zQ(Z))Q+=n8(Z),q.advance();return Q};function zQ(q){return q===105||q===109||q===115}k.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)};k.regexp_eatInvalidBracedQuantifier=function(q){if(this.regexp_eatBracedQuantifier(q,!0))q.raise("Nothing to repeat");return!1};k.regexp_eatSyntaxCharacter=function(q){var Q=q.current();if(n2(Q))return q.lastIntValue=Q,q.advance(),!0;return!1};function n2(q){return q===36||q>=40&&q<=43||q===46||q===63||q>=91&&q<=94||q>=123&&q<=125}k.regexp_eatPatternCharacters=function(q){var Q=q.pos,Z=0;while((Z=q.current())!==-1&&!n2(Z))q.advance();return q.pos!==Q};k.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};k.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 j=0,Y=Z;j<Y.length;j+=1){var J=Y[j];if(!J.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}};k.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};k.regexp_eatRegExpIdentifierName=function(q){if(q.lastStringValue="",this.regexp_eatRegExpIdentifierStart(q)){q.lastStringValue+=n8(q.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(q))q.lastStringValue+=n8(q.lastIntValue);return!0}return!1};k.regexp_eatRegExpIdentifierStart=function(q){var Q=q.pos,Z=this.options.ecmaVersion>=11,j=q.current(Z);if(q.advance(Z),j===92&&this.regexp_eatRegExpUnicodeEscapeSequence(q,Z))j=q.lastIntValue;if(OQ(j))return q.lastIntValue=j,!0;return q.pos=Q,!1};function OQ(q){return A8(q,!0)||q===36||q===95}k.regexp_eatRegExpIdentifierPart=function(q){var Q=q.pos,Z=this.options.ecmaVersion>=11,j=q.current(Z);if(q.advance(Z),j===92&&this.regexp_eatRegExpUnicodeEscapeSequence(q,Z))j=q.lastIntValue;if(UQ(j))return q.lastIntValue=j,!0;return q.pos=Q,!1};function UQ(q){return g8(q,!0)||q===36||q===95||q===8204||q===8205}k.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};k.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};k.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};k.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)};k.regexp_eatCControlLetter=function(q){var Q=q.pos;if(q.eat(99)){if(this.regexp_eatControlLetter(q))return!0;q.pos=Q}return!1};k.regexp_eatZero=function(q){if(q.current()===48&&!b0(q.lookahead()))return q.lastIntValue=0,q.advance(),!0;return!1};k.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};k.regexp_eatControlLetter=function(q){var Q=q.current();if(a2(Q))return q.lastIntValue=Q%32,q.advance(),!0;return!1};function a2(q){return q>=65&&q<=90||q>=97&&q<=122}k.regexp_eatRegExpUnicodeEscapeSequence=function(q,Q){if(Q===void 0)Q=!1;var Z=q.pos,j=Q||q.switchU;if(q.eat(117)){if(this.regexp_eatFixedHexDigits(q,4)){var Y=q.lastIntValue;if(j&&Y>=55296&&Y<=56319){var J=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=(Y-55296)*1024+(K-56320)+65536,!0}q.pos=J,q.lastIntValue=Y}return!0}if(j&&q.eat(123)&&this.regexp_eatHexDigits(q)&&q.eat(125)&&RQ(q.lastIntValue))return!0;if(j)q.raise("Invalid unicode escape");q.pos=Z}return!1};function RQ(q){return q>=0&&q<=1114111}k.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};k.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 r2=0,a8=1,b8=2;k.regexp_eatCharacterClassEscape=function(q){var Q=q.current();if(BQ(Q))return q.lastIntValue=-1,q.advance(),a8;var Z=!1;if(q.switchU&&this.options.ecmaVersion>=9&&((Z=Q===80)||Q===112)){q.lastIntValue=-1,q.advance();var j;if(q.eat(123)&&(j=this.regexp_eatUnicodePropertyValueExpression(q))&&q.eat(125)){if(Z&&j===b8)q.raise("Invalid property name");return j}q.raise("Invalid property name")}return r2};function BQ(q){return q===100||q===68||q===115||q===83||q===119||q===87}k.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 j=q.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(q,Z,j),a8}}if(q.pos=Q,this.regexp_eatLoneUnicodePropertyNameOrValue(q)){var Y=q.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(q,Y)}return r2};k.regexp_validateUnicodePropertyNameAndValue=function(q,Q,Z){if(!B1(q.unicodeProperties.nonBinary,Q))q.raise("Invalid property name");if(!q.unicodeProperties.nonBinary[Q].test(Z))q.raise("Invalid property value")};k.regexp_validateUnicodePropertyNameOrValue=function(q,Q){if(q.unicodeProperties.binary.test(Q))return a8;if(q.switchV&&q.unicodeProperties.binaryOfStrings.test(Q))return b8;q.raise("Invalid property name")};k.regexp_eatUnicodePropertyName=function(q){var Q=0;q.lastStringValue="";while(t2(Q=q.current()))q.lastStringValue+=n8(Q),q.advance();return q.lastStringValue!==""};function t2(q){return a2(q)||q===95}k.regexp_eatUnicodePropertyValue=function(q){var Q=0;q.lastStringValue="";while(FQ(Q=q.current()))q.lastStringValue+=n8(Q),q.advance();return q.lastStringValue!==""};function FQ(q){return t2(q)||b0(q)}k.regexp_eatLoneUnicodePropertyNameOrValue=function(q){return this.regexp_eatUnicodePropertyValue(q)};k.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===b8)q.raise("Negated character class may contain strings");return!0}return!1};k.regexp_classContents=function(q){if(q.current()===93)return a8;if(q.switchV)return this.regexp_classSetExpression(q);return this.regexp_nonEmptyClassRanges(q),a8};k.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")}}};k.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||Q5(Z))q.raise("Invalid class escape");q.raise("Invalid escape")}q.pos=Q}var j=q.current();if(j!==93)return q.lastIntValue=j,q.advance(),!0;return!1};k.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)};k.regexp_classSetExpression=function(q){var Q=a8,Z;if(this.regexp_eatClassSetRange(q));else if(Z=this.regexp_eatClassSetOperand(q)){if(Z===b8)Q=b8;var j=q.pos;while(q.eatChars([38,38])){if(q.current()!==38&&(Z=this.regexp_eatClassSetOperand(q))){if(Z!==b8)Q=a8;continue}q.raise("Invalid character in character class")}if(j!==q.pos)return Q;while(q.eatChars([45,45])){if(this.regexp_eatClassSetOperand(q))continue;q.raise("Invalid character in character class")}if(j!==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===b8)Q=b8}};k.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 j=q.lastIntValue;if(Z!==-1&&j!==-1&&Z>j)q.raise("Range out of order in character class");return!0}q.pos=Q}return!1};k.regexp_eatClassSetOperand=function(q){if(this.regexp_eatClassSetCharacter(q))return a8;return this.regexp_eatClassStringDisjunction(q)||this.regexp_eatNestedClass(q)};k.regexp_eatNestedClass=function(q){var Q=q.pos;if(q.eat(91)){var Z=q.eat(94),j=this.regexp_classContents(q);if(q.eat(93)){if(Z&&j===b8)q.raise("Negated character class may contain strings");return j}q.pos=Q}if(q.eat(92)){var Y=this.regexp_eatCharacterClassEscape(q);if(Y)return Y;q.pos=Q}return null};k.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};k.regexp_classStringDisjunctionContents=function(q){var Q=this.regexp_classString(q);while(q.eat(124))if(this.regexp_classString(q)===b8)Q=b8;return Q};k.regexp_classString=function(q){var Q=0;while(this.regexp_eatClassSetCharacter(q))Q++;return Q===1?a8:b8};k.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()&&MQ(Z))return!1;if($Q(Z))return!1;return q.advance(),q.lastIntValue=Z,!0};function MQ(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 $Q(q){return q===40||q===41||q===45||q===47||q>=91&&q<=93||q>=123&&q<=125}k.regexp_eatClassSetReservedPunctuator=function(q){var Q=q.current();if(LQ(Q))return q.lastIntValue=Q,q.advance(),!0;return!1};function LQ(q){return q===33||q===35||q===37||q===38||q===44||q===45||q>=58&&q<=62||q===64||q===96||q===126}k.regexp_eatClassControlLetter=function(q){var Q=q.current();if(b0(Q)||Q===95)return q.lastIntValue=Q%32,q.advance(),!0;return!1};k.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};k.regexp_eatDecimalDigits=function(q){var Q=q.pos,Z=0;q.lastIntValue=0;while(b0(Z=q.current()))q.lastIntValue=10*q.lastIntValue+(Z-48),q.advance();return q.pos!==Q};function b0(q){return q>=48&&q<=57}k.regexp_eatHexDigits=function(q){var Q=q.pos,Z=0;q.lastIntValue=0;while(e2(Z=q.current()))q.lastIntValue=16*q.lastIntValue+q5(Z),q.advance();return q.pos!==Q};function e2(q){return q>=48&&q<=57||q>=65&&q<=70||q>=97&&q<=102}function q5(q){if(q>=65&&q<=70)return 10+(q-65);if(q>=97&&q<=102)return 10+(q-97);return q-48}k.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};k.regexp_eatOctalDigit=function(q){var Q=q.current();if(Q5(Q))return q.lastIntValue=Q-48,q.advance(),!0;return q.lastIntValue=0,!1};function Q5(q){return q>=48&&q<=55}k.regexp_eatFixedHexDigits=function(q,Q){var Z=q.pos;q.lastIntValue=0;for(var j=0;j<Q;++j){var Y=q.current();if(!e2(Y))return q.pos=Z,!1;q.lastIntValue=16*q.lastIntValue+q5(Y),q.advance()}return!0};var k0=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 g1(Q,Q.startLoc,Q.endLoc);if(Q.options.ranges)this.range=[Q.start,Q.end]},c=Y8.prototype;c.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 k0(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};c.getToken=function(){return this.next(),new k0(this)};if(typeof Symbol<"u")c[Symbol.iterator]=function(){var q=this;return{next:function(){var Q=q.getToken();return{done:Q.type===O.eof,value:Q}}}};c.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())};c.readToken=function(q){if(A8(q,this.options.ecmaVersion>=6)||q===92)return this.readWord();return this.getTokenFromCode(q)};c.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};c.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};c.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 j=void 0,Y=Q;(j=S2(this.input,Y,this.pos))>-1;)++this.curLine,Y=this.lineStart=j;if(this.options.onComment)this.options.onComment(!0,this.input.slice(Q+2,Z),Q,this.pos,q,this.curPosition())};c.skipLineComment=function(q){var Q=this.pos,Z=this.options.onComment&&this.curPosition(),j=this.input.charCodeAt(this.pos+=q);while(this.pos<this.input.length&&!G1(j))j=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())};c.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&&c9.test(String.fromCharCode(q)))++this.pos;else break q}}};c.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)};c.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)};c.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)};c.readToken_mult_modulo_exp=function(q){var Q=this.input.charCodeAt(this.pos+1),Z=1,j=q===42?O.star:O.modulo;if(this.options.ecmaVersion>=7&&q===42&&Q===42)++Z,j=O.starstar,Q=this.input.charCodeAt(this.pos+2);if(Q===61)return this.finishOp(O.assign,Z+1);return this.finishOp(j,Z)};c.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)};c.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)};c.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||M8.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)};c.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)};c.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)};c.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 j=this.input.charCodeAt(this.pos+2);if(j===61)return this.finishOp(O.assign,3)}return this.finishOp(O.coalesce,2)}}return this.finishOp(O.question,1)};c.readToken_numberSign=function(){var q=this.options.ecmaVersion,Q=35;if(q>=13){if(++this.pos,Q=this.fullCharCodeAtPos(),A8(Q,!0)||Q===92)return this.finishToken(O.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+n8(Q)+"'")};c.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 '"+n8(q)+"'")};c.finishOp=function(q,Q){var Z=this.input.slice(this.pos,this.pos+Q);return this.pos+=Q,this.finishToken(q,Z)};c.readRegexp=function(){var q,Q,Z=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(Z,"Unterminated regular expression");var j=this.input.charAt(this.pos);if(M8.test(j))this.raise(Z,"Unterminated regular expression");if(!q){if(j==="[")Q=!0;else if(j==="]"&&Q)Q=!1;else if(j==="/"&&!Q)break;q=j==="\\"}else q=!1;++this.pos}var Y=this.input.slice(Z,this.pos);++this.pos;var J=this.pos,K=this.readWord1();if(this.containsEsc)this.unexpected(J);var W=this.regexpState||(this.regexpState=new i8(this));W.reset(Z,Y,K),this.validateRegExpFlags(W),this.validateRegExpPattern(W);var V=null;try{V=new RegExp(Y,K)}catch(R){}return this.finishToken(O.regexp,{pattern:Y,flags:K,value:V})};c.readInt=function(q,Q,Z){var j=this.options.ecmaVersion>=12&&Q===void 0,Y=Z&&this.input.charCodeAt(this.pos)===48,J=this.pos,K=0,W=0;for(var V=0,R=Q==null?1/0:Q;V<R;++V,++this.pos){var z=this.input.charCodeAt(this.pos),M=void 0;if(j&&z===95){if(Y)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(W===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(V===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");W=z;continue}if(z>=97)M=z-97+10;else if(z>=65)M=z-65+10;else if(z>=48&&z<=57)M=z-48;else M=1/0;if(M>=q)break;W=z,K=K*q+M}if(j&&W===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===J||Q!=null&&this.pos-J!==Q)return null;return K};function wQ(q,Q){if(Q)return parseInt(q,8);return parseFloat(q.replace(/_/g,""))}function Z5(q){if(typeof BigInt!=="function")return null;return BigInt(q.replace(/_/g,""))}c.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=Z5(this.input.slice(Q,this.pos)),++this.pos;else if(A8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(O.num,Z)};c.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 j=this.input.charCodeAt(this.pos);if(!Z&&!q&&this.options.ecmaVersion>=11&&j===110){var Y=Z5(this.input.slice(Q,this.pos));if(++this.pos,A8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(O.num,Y)}if(Z&&/[89]/.test(this.input.slice(Q,this.pos)))Z=!1;if(j===46&&!Z)++this.pos,this.readInt(10),j=this.input.charCodeAt(this.pos);if((j===69||j===101)&&!Z){if(j=this.input.charCodeAt(++this.pos),j===43||j===45)++this.pos;if(this.readInt(10)===null)this.raise(Q,"Invalid number")}if(A8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var J=wQ(this.input.slice(Q,this.pos),Z);return this.finishToken(O.num,J)};c.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};c.readString=function(q){var Q="",Z=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var j=this.input.charCodeAt(this.pos);if(j===q)break;if(j===92)Q+=this.input.slice(Z,this.pos),Q+=this.readEscapedChar(!1),Z=this.pos;else if(j===8232||j===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(G1(j))this.raise(this.start,"Unterminated string constant");++this.pos}}return Q+=this.input.slice(Z,this.pos++),this.finishToken(O.string,Q)};var j5={};c.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(q){if(q===j5)this.readInvalidTemplateToken();else throw q}this.inTemplateElement=!1};c.invalidStringToken=function(q,Q){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw j5;else this.raise(q,Q)};c.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(G1(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+=`
31
31
  `;break;default:q+=String.fromCharCode(Z);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;Q=this.pos}else++this.pos}};c.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]===`
32
32
  `)++this.pos;case`
33
33
  `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};c.readEscapedChar=function(q){var Q=this.input.charCodeAt(++this.pos);switch(++this.pos,Q){case 110:return`
34
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return n8(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 j=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],Y=parseInt(j,8);if(Y>255)j=j.slice(0,-1),Y=parseInt(j,8);if(this.pos+=j.length-1,Q=this.input.charCodeAt(this.pos),(j!=="0"||Q===56||Q===57)&&(this.strict||q))this.invalidStringToken(this.pos-1-j.length,q?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(Y)}if(z1(Q)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(Q)}};c.readHexChar=function(q){var Q=this.pos,Z=this.readInt(16,q);if(Z===null)this.invalidStringToken(Q,"Bad character escape sequence");return Z};c.readWord1=function(){this.containsEsc=!1;var q="",Q=!0,Z=this.pos,j=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var Y=this.fullCharCodeAtPos();if(y8(Y,j))this.pos+=Y<=65535?1:2;else if(Y===92){this.containsEsc=!0,q+=this.input.slice(Z,this.pos);var J=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?A8:y8)(K,j))this.invalidStringToken(J,"Invalid Unicode escape");q+=n8(K),Z=this.pos}else break;Q=!1}return q+this.input.slice(Z,this.pos)};c.readWord=function(){var q=this.readWord1(),Q=O.name;if(this.keywords.test(q))Q=C0[q];return this.finishToken(Q,q)};var Z5="8.18.0";Y8.acorn={Parser:Y8,version:Z5,defaultOptions:M0,Position:B1,SourceLocation:y1,getLineInfo:l9,Node:_1,TokenType:o,tokTypes:O,keywordTypes:C0,TokContext:N8,tokContexts:Z8,isIdentifierChar:y8,isIdentifierStart:A8,Token:N0,isNewLine:z1,lineBreak:M8,lineBreakG:C2,nonASCIIwhitespace:m9};function MQ(q,Q){return Y8.parse(q,Q)}function $Q(q,Q,Z){return Y8.parseExpressionAt(q,Q,Z)}function LQ(q,Q){return Y8.tokenizer(q,Q)}var C8=!0,wQ=new WeakMap;function AQ(q){let Q=q.Parser.acorn||q,Z=wQ.get(Q);if(!Z){let W=function(g){return g===F.name||g===F.string||g===F.num||A.includes(g)||v.includes(g)},V=function(g){return g===F.name||A.includes(g)||v.includes(g)},R=function(g){return g===F.name||v.includes(g)},z=function(g){return g===D.abstract||g===D.declare||g===D.enum||g===D.module||g===D.namespace||g===D.interface||g===D.type},M=function(g){return g===D.keyof||g===D.readonly||g===D.unique},$=function(g){return g===F.invalidTemplate},{tokTypes:F,keywordTypes:P}=Q,A=Object.values(P),D=K(),v=Object.values(D),y=J(),h=Y(),n=new RegExp(`^(?:${Object.keys(D).join("|")})$`);y.jsxTagStart.updateContext=function(){this.context.push(h.tc_expr),this.context.push(h.tc_oTag),this.exprAllowed=!1},y.jsxTagEnd.updateContext=function(g){let j8=this.context.pop();if(j8===h.tc_oTag&&g===F.slash||j8===h.tc_cTag)this.context.pop(),this.exprAllowed=this.curContext()===h.tc_expr;else this.exprAllowed=!0},Z={tokTypes:{...D,...y},tokContexts:{...h},keywordsRegExp:n,tokenIsLiteralPropertyName:W,tokenIsKeywordOrIdentifier:V,tokenIsIdentifier:R,tokenIsTSDeclarationStart:z,tokenIsTSTypeOperator:M,tokenIsTemplate:$}}return Z;function j(W,V={}){return new Q.TokenType("name",V)}function Y(){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 J(){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:j("assert",{startsExpr:C8}),asserts:j("asserts",{startsExpr:C8}),global:j("global",{startsExpr:C8}),keyof:j("keyof",{startsExpr:C8}),readonly:j("readonly",{startsExpr:C8}),unique:j("unique",{startsExpr:C8}),abstract:j("abstract",{startsExpr:C8}),declare:j("declare",{startsExpr:C8}),enum:j("enum",{startsExpr:C8}),module:j("module",{startsExpr:C8}),namespace:j("namespace",{startsExpr:C8}),interface:j("interface",{startsExpr:C8}),type:j("type",{startsExpr:C8})}}}var CQ=512,u1=1024,$1=1,E0=2,IQ=4,a9=8,PQ=16,X5=64,W5=128,SQ=256,DQ=512,V5=1024,rK=$1|E0|a9|W5,tK=$1|0|a9|0,eK=$1|0|IQ|0,qJ=$1|0|PQ|0,QJ=0|E0|0|W5,ZJ=0|E0|0|0,NQ=$1|E0|a9|SQ,jJ=0|V5,YJ=0|X5,HJ=$1|0|0|X5,KJ=NQ|DQ,JJ=0|V5,G5=4,z5=2,O5=1,XJ=z5|O5,WJ=z5|G5,VJ=O5|G5,bQ=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y,j5=new RegExp("(?=("+bQ.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),m1=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function kQ(q,Q){let Z=Q.key.name,j=q[Z],Y="true";if(Q.type==="MethodDefinition"&&(Q.kind==="get"||Q.kind==="set"))Y=(Q.static?"s":"i")+Q.kind;if(j==="iget"&&Y==="iset"||j==="iset"&&Y==="iget"||j==="sget"&&Y==="sset"||j==="sset"&&Y==="sget")return q[Z]="true",!1;else if(!j)return q[Z]=Y,!1;else return!0}function Y5(q,Q){let{computed:Z,key:j}=q;return!Z&&(j.type==="Identifier"&&j.name===Q||j.type==="Literal"&&j.value===Q)}var E={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."},T0={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 TQ(q,Q,Z){let{tokTypes:j}=Z,{tokTypes:Y}=Q;return class extends q{takeDecorators(K){let W=this.decoratorStack[this.decoratorStack.length-1];if(W.length)K.decorators=W,this.resetStartLocationFromNode(K,W[0]),this.decoratorStack[this.decoratorStack.length-1]=[]}parseDecorators(K){let W=this.decoratorStack[this.decoratorStack.length-1];while(this.match(Y.at)){let V=this.parseDecorator();W.push(V)}if(this.match(j._export)){if(!K)this.unexpected()}else if(!this.canHaveLeadingDecorator())this.raise(this.start,T0.UnexpectedLeadingDecorator)}parseDecorator(){let K=this.startNode();this.next(),this.decoratorStack.push([]);let W=this.start,V=this.startLoc,R;if(this.match(j.parenL)){let z=this.start,M=this.startLoc;if(this.next(),R=this.parseExpression(),this.expect(j.parenR),this.options.preserveParens){let $=this.startNodeAt(z,M);$.expression=R,R=this.finishNode($,"ParenthesizedExpression")}}else{R=this.parseIdent(!1);while(this.eat(j.dot)){let z=this.startNodeAt(W,V);z.object=R,z.property=this.parseIdent(!0),z.computed=!1,R=this.finishNode(z,"MemberExpression")}}return K.expression=this.parseMaybeDecoratorArguments(R),this.decoratorStack.pop(),this.finishNode(K,"Decorator")}parseMaybeDecoratorArguments(K){if(this.eat(j.parenL)){let W=this.startNodeAtNode(K);return W.callee=K,W.arguments=this.parseExprList(j.parenR,!1),this.finishNode(W,"CallExpression")}return K}}}var EQ={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:"♦"},vQ=/^[\da-fA-F]+$/,hQ=/^\d+$/;function l1(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 l1(q.object)+"."+l1(q.property)}function fQ(q,Q,Z,j){let Y=q.tokTypes,J=Q.tokTypes,K=q.isNewLine,W=q.isIdentifierChar,V=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},j||{});return class extends Z{jsx_readToken(){let z="",M=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated JSX contents");let $=this.input.charCodeAt(this.pos);switch($){case 60:case 123:if(this.pos===this.start){if($===60&&this.exprAllowed)return++this.pos,this.finishToken(J.jsxTagStart);return this.getTokenFromCode($)}return z+=this.input.slice(M,this.pos),this.finishToken(J.jsxText,z);case 38:z+=this.input.slice(M,this.pos),z+=this.jsx_readEntity(),M=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+($===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:if(K($))z+=this.input.slice(M,this.pos),z+=this.jsx_readNewLine(!0),M=this.pos;else++this.pos}}}jsx_readNewLine(z){let M=this.input.charCodeAt(this.pos),$;if(++this.pos,M===13&&this.input.charCodeAt(this.pos)===10)++this.pos,$=z?`
34
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return n8(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 j=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],Y=parseInt(j,8);if(Y>255)j=j.slice(0,-1),Y=parseInt(j,8);if(this.pos+=j.length-1,Q=this.input.charCodeAt(this.pos),(j!=="0"||Q===56||Q===57)&&(this.strict||q))this.invalidStringToken(this.pos-1-j.length,q?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(Y)}if(G1(Q)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(Q)}};c.readHexChar=function(q){var Q=this.pos,Z=this.readInt(16,q);if(Z===null)this.invalidStringToken(Q,"Bad character escape sequence");return Z};c.readWord1=function(){this.containsEsc=!1;var q="",Q=!0,Z=this.pos,j=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var Y=this.fullCharCodeAtPos();if(g8(Y,j))this.pos+=Y<=65535?1:2;else if(Y===92){this.containsEsc=!0,q+=this.input.slice(Z,this.pos);var J=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?A8:g8)(K,j))this.invalidStringToken(J,"Invalid Unicode escape");q+=n8(K),Z=this.pos}else break;Q=!1}return q+this.input.slice(Z,this.pos)};c.readWord=function(){var q=this.readWord1(),Q=O.name;if(this.keywords.test(q))Q=P0[q];return this.finishToken(Q,q)};var Y5="8.18.0";Y8.acorn={Parser:Y8,version:Y5,defaultOptions:L0,Position:R1,SourceLocation:g1,getLineInfo:i9,Node:x1,TokenType:s,tokTypes:O,keywordTypes:P0,TokContext:N8,tokContexts:j8,isIdentifierChar:g8,isIdentifierStart:A8,Token:k0,isNewLine:G1,lineBreak:M8,lineBreakG:P2,nonASCIIwhitespace:c9};function AQ(q,Q){return Y8.parse(q,Q)}function CQ(q,Q,Z){return Y8.parseExpressionAt(q,Q,Z)}function IQ(q,Q){return Y8.tokenizer(q,Q)}var C8=!0,PQ=new WeakMap;function SQ(q){let Q=q.Parser.acorn||q,Z=PQ.get(Q);if(!Z){let W=function(y){return y===F.name||y===F.string||y===F.num||D.includes(y)||b.includes(y)},V=function(y){return y===F.name||D.includes(y)||b.includes(y)},R=function(y){return y===F.name||b.includes(y)},z=function(y){return y===C.abstract||y===C.declare||y===C.enum||y===C.module||y===C.namespace||y===C.interface||y===C.type},M=function(y){return y===C.keyof||y===C.readonly||y===C.unique},$=function(y){return y===F.invalidTemplate},{tokTypes:F,keywordTypes:P}=Q,D=Object.values(P),C=K(),b=Object.values(C),g=J(),h=Y(),o=new RegExp(`^(?:${Object.keys(C).join("|")})$`);g.jsxTagStart.updateContext=function(){this.context.push(h.tc_expr),this.context.push(h.tc_oTag),this.exprAllowed=!1},g.jsxTagEnd.updateContext=function(y){let q8=this.context.pop();if(q8===h.tc_oTag&&y===F.slash||q8===h.tc_cTag)this.context.pop(),this.exprAllowed=this.curContext()===h.tc_expr;else this.exprAllowed=!0},Z={tokTypes:{...C,...g},tokContexts:{...h},keywordsRegExp:o,tokenIsLiteralPropertyName:W,tokenIsKeywordOrIdentifier:V,tokenIsIdentifier:R,tokenIsTSDeclarationStart:z,tokenIsTSTypeOperator:M,tokenIsTemplate:$}}return Z;function j(W,V={}){return new Q.TokenType("name",V)}function Y(){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 J(){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:j("assert",{startsExpr:C8}),asserts:j("asserts",{startsExpr:C8}),global:j("global",{startsExpr:C8}),keyof:j("keyof",{startsExpr:C8}),readonly:j("readonly",{startsExpr:C8}),unique:j("unique",{startsExpr:C8}),abstract:j("abstract",{startsExpr:C8}),declare:j("declare",{startsExpr:C8}),enum:j("enum",{startsExpr:C8}),module:j("module",{startsExpr:C8}),namespace:j("namespace",{startsExpr:C8}),interface:j("interface",{startsExpr:C8}),type:j("type",{startsExpr:C8})}}}var DQ=512,m1=1024,M1=1,h0=2,NQ=4,t9=8,bQ=16,V5=64,G5=128,kQ=256,TQ=512,z5=1024,ZJ=M1|h0|t9|G5,jJ=M1|0|t9|0,YJ=M1|0|NQ|0,HJ=M1|0|bQ|0,KJ=0|h0|0|G5,JJ=0|h0|0|0,EQ=M1|h0|t9|kQ,XJ=0|z5,WJ=0|V5,VJ=M1|0|0|V5,GJ=EQ|TQ,zJ=0|z5,O5=4,U5=2,R5=1,OJ=U5|R5,UJ=U5|O5,RJ=R5|O5,vQ=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y,H5=new RegExp("(?=("+vQ.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),l1=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function hQ(q,Q){let Z=Q.key.name,j=q[Z],Y="true";if(Q.type==="MethodDefinition"&&(Q.kind==="get"||Q.kind==="set"))Y=(Q.static?"s":"i")+Q.kind;if(j==="iget"&&Y==="iset"||j==="iset"&&Y==="iget"||j==="sget"&&Y==="sset"||j==="sset"&&Y==="sget")return q[Z]="true",!1;else if(!j)return q[Z]=Y,!1;else return!0}function K5(q,Q){let{computed:Z,key:j}=q;return!Z&&(j.type==="Identifier"&&j.name===Q||j.type==="Literal"&&j.value===Q)}var v={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."},v0={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 fQ(q,Q,Z){let{tokTypes:j}=Z,{tokTypes:Y}=Q;return class extends q{takeDecorators(K){let W=this.decoratorStack[this.decoratorStack.length-1];if(W.length)K.decorators=W,this.resetStartLocationFromNode(K,W[0]),this.decoratorStack[this.decoratorStack.length-1]=[]}parseDecorators(K){let W=this.decoratorStack[this.decoratorStack.length-1];while(this.match(Y.at)){let V=this.parseDecorator();W.push(V)}if(this.match(j._export)){if(!K)this.unexpected()}else if(!this.canHaveLeadingDecorator())this.raise(this.start,v0.UnexpectedLeadingDecorator)}parseDecorator(){let K=this.startNode();this.next(),this.decoratorStack.push([]);let W=this.start,V=this.startLoc,R;if(this.match(j.parenL)){let z=this.start,M=this.startLoc;if(this.next(),R=this.parseExpression(),this.expect(j.parenR),this.options.preserveParens){let $=this.startNodeAt(z,M);$.expression=R,R=this.finishNode($,"ParenthesizedExpression")}}else{R=this.parseIdent(!1);while(this.eat(j.dot)){let z=this.startNodeAt(W,V);z.object=R,z.property=this.parseIdent(!0),z.computed=!1,R=this.finishNode(z,"MemberExpression")}}return K.expression=this.parseMaybeDecoratorArguments(R),this.decoratorStack.pop(),this.finishNode(K,"Decorator")}parseMaybeDecoratorArguments(K){if(this.eat(j.parenL)){let W=this.startNodeAtNode(K);return W.callee=K,W.arguments=this.parseExprList(j.parenR,!1),this.finishNode(W,"CallExpression")}return K}}}var yQ={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:"♦"},gQ=/^[\da-fA-F]+$/,_Q=/^\d+$/;function c1(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 c1(q.object)+"."+c1(q.property)}function xQ(q,Q,Z,j){let Y=q.tokTypes,J=Q.tokTypes,K=q.isNewLine,W=q.isIdentifierChar,V=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},j||{});return class extends Z{jsx_readToken(){let z="",M=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated JSX contents");let $=this.input.charCodeAt(this.pos);switch($){case 60:case 123:if(this.pos===this.start){if($===60&&this.exprAllowed)return++this.pos,this.finishToken(J.jsxTagStart);return this.getTokenFromCode($)}return z+=this.input.slice(M,this.pos),this.finishToken(J.jsxText,z);case 38:z+=this.input.slice(M,this.pos),z+=this.jsx_readEntity(),M=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+($===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:if(K($))z+=this.input.slice(M,this.pos),z+=this.jsx_readNewLine(!0),M=this.pos;else++this.pos}}}jsx_readNewLine(z){let M=this.input.charCodeAt(this.pos),$;if(++this.pos,M===13&&this.input.charCodeAt(this.pos)===10)++this.pos,$=z?`
35
35
  `:`\r
36
- `;else $=String.fromCharCode(M);if(this.options.locations)++this.curLine,this.lineStart=this.pos;return $}jsx_readString(z){let M="",$=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");let F=this.input.charCodeAt(this.pos);if(F===z)break;if(F===38)M+=this.input.slice($,this.pos),M+=this.jsx_readEntity(),$=this.pos;else if(K(F))M+=this.input.slice($,this.pos),M+=this.jsx_readNewLine(!1),$=this.pos;else++this.pos}return M+=this.input.slice($,this.pos++),this.finishToken(Y.string,M)}jsx_readEntity(){let z="",M=0,$,F=this.input[this.pos];if(F!=="&")this.raise(this.pos,"Entity must start with an ampersand");let P=++this.pos;while(this.pos<this.input.length&&M++<10){if(F=this.input[this.pos++],F===";"){if(z[0]==="#"){if(z[1]==="x"){if(z=z.substr(2),vQ.test(z))$=String.fromCharCode(parseInt(z,16))}else if(z=z.substr(1),hQ.test(z))$=String.fromCharCode(parseInt(z,10))}else $=EQ[z];break}z+=F}if(!$)return this.pos=P,"&";return $}jsx_readWord(){let z,M=this.pos;do z=this.input.charCodeAt(++this.pos);while(W(z)||z===45);return this.finishToken(J.jsxName,this.input.slice(M,this.pos))}jsx_parseIdentifier(){let z=this.startNode();if(this.type===J.jsxName)z.name=this.value;else if(this.type.keyword)z.name=this.type.keyword;else this.unexpected();return this.next(),this.finishNode(z,"JSXIdentifier")}jsx_parseNamespacedName(){let z=this.start,M=this.startLoc,$=this.jsx_parseIdentifier();if(!V.allowNamespaces||!this.eat(Y.colon))return $;var F=this.startNodeAt(z,M);return F.namespace=$,F.name=this.jsx_parseIdentifier(),this.finishNode(F,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===J.jsxTagEnd)return"";let z=this.start,M=this.startLoc,$=this.jsx_parseNamespacedName();if(this.type===Y.dot&&$.type==="JSXNamespacedName"&&!V.allowNamespacedObjects)this.unexpected();while(this.eat(Y.dot)){let F=this.startNodeAt(z,M);F.object=$,F.property=this.jsx_parseIdentifier(),$=this.finishNode(F,"JSXMemberExpression")}return $}jsx_parseAttributeValue(){switch(this.type){case Y.braceL:let z=this.jsx_parseExpressionContainer();if(z.expression.type==="JSXEmptyExpression")this.raise(z.start,"JSX attributes must only be assigned a non-empty expression");return z;case J.jsxTagStart:case Y.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let z=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(z,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let z=this.startNode();return this.next(),z.expression=this.type===Y.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(Y.braceR),this.finishNode(z,"JSXExpressionContainer")}jsx_parseAttribute(){let z=this.startNode();if(this.eat(Y.braceL))return this.expect(Y.ellipsis),z.argument=this.parseMaybeAssign(),this.expect(Y.braceR),this.finishNode(z,"JSXSpreadAttribute");return z.name=this.jsx_parseNamespacedName(),z.value=this.eat(Y.eq)?this.jsx_parseAttributeValue():null,this.finishNode(z,"JSXAttribute")}jsx_parseOpeningElementAt(z,M){let $=this.startNodeAt(z,M);$.attributes=[];let F=this.jsx_parseElementName();if(F)$.name=F;while(this.type!==Y.slash&&this.type!==J.jsxTagEnd)$.attributes.push(this.jsx_parseAttribute());return $.selfClosing=this.eat(Y.slash),this.expect(J.jsxTagEnd),this.finishNode($,F?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(z,M){let $=this.startNodeAt(z,M),F=this.jsx_parseElementName();if(F)$.name=F;return this.expect(J.jsxTagEnd),this.finishNode($,F?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(z,M){let $=this.startNodeAt(z,M),F=[],P=this.jsx_parseOpeningElementAt(z,M),A=null;if(!P.selfClosing){q:for(;;)switch(this.type){case J.jsxTagStart:if(z=this.start,M=this.startLoc,this.next(),this.eat(Y.slash)){A=this.jsx_parseClosingElementAt(z,M);break q}F.push(this.jsx_parseElementAt(z,M));break;case J.jsxText:F.push(this.parseExprAtom());break;case Y.braceL:F.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}if(l1(A.name)!==l1(P.name))this.raise(A.start,"Expected corresponding JSX closing tag for <"+l1(P.name)+">")}let D=P.name?"Element":"Fragment";if($["opening"+D]=P,$["closing"+D]=A,$.children=F,this.type===Y.relational&&this.value==="<")this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag");return this.finishNode($,"JSX"+D)}jsx_parseText(){let z=this.parseLiteral(this.value);return z.type="JSXText",z}jsx_parseElement(){let z=this.start,M=this.startLoc;return this.next(),this.jsx_parseElementAt(z,M)}}}function yQ(q,Q,Z){let{tokTypes:j}=Q,{tokTypes:Y}=Z;return class extends q{parseMaybeImportAttributes(K){if(this.type===Y._with||this.type===j.assert){this.next();let W=this.parseImportAttributes();if(W)K.attributes=W}}parseImportAttributes(){this.expect(Y.braceL);let K=this.parseWithEntries();return this.expect(Y.braceR),K}parseWithEntries(){let K=[],W=new Set;do{if(this.type===Y.braceR)break;let V=this.startNode(),R;if(this.type===Y.string)R=this.parseLiteral(this.value);else R=this.parseIdent(!0);if(this.next(),V.key=R,W.has(V.key.name))this.raise(this.pos,"Duplicated key in attributes");if(W.add(V.key.name),this.type!==Y.string)this.raise(this.pos,"Only string is supported as an attribute value");V.value=this.parseLiteral(this.value),K.push(this.finishNode(V,"ImportAttribute"))}while(this.eat(Y.comma));return K}}}var s9=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function H5(q){if(!q)throw Error("Assert fail")}function gQ(q){return q==="accessor"}function _Q(q){return q==="in"||q==="out"}var k0=1,K5=2,xQ=4,t={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 n9(q,Q){return t.SCOPE_FUNCTION|(q?t.SCOPE_ASYNC:0)|(Q?t.SCOPE_GENERATOR:0)}function uQ(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 U5(q.object)}function U5(q){if(q.type==="Identifier")return!0;if(q.type!=="MemberExpression")return!1;if(q.computed)return!1;return U5(q.object)}function J5(q){return q==="private"||q==="public"||q==="protected"}function mQ(q){return Boolean(q.startsExpr)}function lQ(q){if(q==null)throw Error(`Unexpected ${q} value.`);return q}function cQ(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 R5(q){let{dts:Q=!1}=q||{},Z=!!q?.jsx;return function(j){let Y=j.acorn||b0,J=AQ(Y),K=Y.tokTypes,W=Y.keywordTypes,V=Y.isIdentifierStart,R=Y.lineBreak,z=Y.isNewLine,M=Y.tokContexts,$=Y.isIdentifierChar,{tokTypes:F,tokContexts:P,keywordsRegExp:A,tokenIsLiteralPropertyName:D,tokenIsTemplate:v,tokenIsTSDeclarationStart:y,tokenIsIdentifier:h,tokenIsKeywordOrIdentifier:n,tokenIsTSTypeOperator:g}=J;function j8(H,X,G=H.length){for(let U=X;U<G;U++){let B=H.charCodeAt(U);if(z(B))return U<G-1&&B===13&&H.charCodeAt(U+1)===10?U+2:U+1}return-1}if(j=TQ(j,J,Y),q?.jsx)j=fQ(Y,J,j,typeof q.jsx==="boolean"?{}:q.jsx);j=yQ(j,J,Y);class U8 extends j{constructor(H,X,G){super(H,X,G);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:E.InvalidModifierOnTypeParameterPositions})},this.ecmaVersion=this.options.ecmaVersion}static get acornTypeScript(){return J}get acornTypeScript(){return J}getTokenFromCodeInType(H){if(H===62)return this.finishOp(K.relational,1);if(H===60)return this.finishOp(K.relational,1);return super.getTokenFromCode(H)}readToken(H){if(!this.inType){let X=this.curContext();if(X===P.tc_expr)return this.jsx_readToken();if(X===P.tc_oTag||X===P.tc_cTag){if(V(H))return this.jsx_readWord();if(H==62)return++this.pos,this.finishToken(F.jsxTagEnd);if((H===34||H===39)&&X==P.tc_oTag)return this.jsx_readString(H)}if(H===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)if(++this.pos,q?.jsx)return this.finishToken(F.jsxTagStart);else return this.finishToken(K.relational,"<")}return super.readToken(H)}getTokenFromCode(H){if(this.inType)return this.getTokenFromCodeInType(H);if(H===64)return++this.pos,this.finishToken(F.at);return super.getTokenFromCode(H)}isAbstractClass(){return this.ts_isContextual(F.abstract)&&this.lookahead().type===K._class}finishNode(H,X){if(H.type!==""&&H.end!==0)return H;return super.finishNode(H,X)}tryParse(H,X=this.cloneCurLookaheadState()){let G={node:null};try{return{node:H((B=null)=>{throw G.node=B,G}),error:null,thrown:!1,aborted:!1,failState:null}}catch(U){let B=this.getCurLookaheadState();if(this.setLookaheadState(X),U instanceof SyntaxError)return{node:null,error:U,thrown:!0,aborted:!1,failState:B};if(U===G)return{node:G.node,error:null,thrown:!1,aborted:!0,failState:B};throw U}}setOptionalParametersError(H,X){H.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:H}=this;if(H===K.bitShift)return this.pos-=2,this.finishOp(K.relational,1),K.relational;return H}resetEndLocation(H,X=this.lastTokEnd,G=this.lastTokEndLoc){if(H.end=X,H.loc.end=G,this.options.ranges)H.range[1]=X}startNodeAtNode(H){return super.startNodeAt(H.start,H.loc.start)}nextTokenStart(){return this.nextTokenStartSince(this.pos)}tsHasSomeModifiers(H,X){return X.some((G)=>{if(J5(G))return H.accessibility===G;return!!H[G]})}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&this.lookaheadCharCode()===123}tsCheckForInvalidTypeCasts(H){H.forEach((X)=>{if(X?.type==="TSTypeCastExpression")this.raise(X.typeAnnotation.start,E.UnexpectedTypeAnnotation)})}atPossibleAsyncArrow(H){return H.type==="Identifier"&&H.name==="async"&&this.lastTokEnd===H.end&&!this.canInsertSemicolon()&&H.end-H.start===5&&H.start===this.potentialArrowAt}tsIsIdentifier(){return h(this.type)}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(K.colon)?this.tsParseTypeOrTypePredicateAnnotation(K.colon):void 0}tsTryParseGenericAsyncArrowFunction(H,X,G){if(!this.tsMatchLeftRelational())return;let U=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let B=this.tsTryParseAndCatch(()=>{let L=this.startNodeAt(H,X);return L.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(L),L.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(K.arrow),L});if(this.maybeInArrowParameters=U,!B)return;return super.parseArrowExpression(B,null,!0,G)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==K.relational)return;return this.tsParseTypeArguments()}tsInNoContext(H){let X=this.context;this.context=[X[0]];try{return H()}finally{this.context=X}}tsTryParseTypeAnnotation(){return this.match(K.colon)?this.tsParseTypeAnnotation():void 0}isUnparsedContextual(H,X){let G=H+X.length;if(this.input.slice(H,G)===X){let U=this.input.charCodeAt(G);return!($(U)||(U&64512)===55296)}return!1}isAbstractConstructorSignature(){return this.ts_isContextual(F.abstract)&&this.lookahead().type===K._new}nextTokenStartSince(H){return s9.lastIndex=H,s9.test(this.input)?s9.lastIndex:H}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}compareLookaheadState(H,X){for(let G of Object.keys(H))if(H[G]!==X[G])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(H){this.pos=H.pos,this.value=H.value,this.endLoc=H.endLoc,this.lastTokEnd=H.lastTokEnd,this.lastTokStart=H.lastTokStart,this.lastTokStartLoc=H.lastTokStartLoc,this.type=H.type,this.start=H.start,this.end=H.end,this.context=H.context,this.startLoc=H.startLoc,this.lastTokEndLoc=H.lastTokEndLoc,this.curLine=H.curLine,this.lineStart=H.lineStart,this.curPosition=H.curPosition,this.containsEsc=H.containsEsc}tsLookAhead(H){let X=this.getCurLookaheadState(),G=H();return this.setLookaheadState(X),G}lookahead(H){let X=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,H!==void 0)for(let U=0;U<H;U++)this.nextToken();else this.nextToken();this.isLookahead=!1;let G=this.getCurLookaheadState();return this.setLookaheadState(X),G}readWord(){let H=this.readWord1(),X=K.name;if(this.keywords.test(H))X=W[H];else if(new RegExp(A).test(H))X=F[H];return this.finishToken(X,H)}skipBlockComment(){let H;if(!this.isLookahead)H=this.options.onComment&&this.curPosition();let X=this.pos,G=this.input.indexOf("*/",this.pos+=2);if(G===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=G+2,this.options.locations)for(let U,B=X;(U=j8(this.input,B,this.pos))>-1;)++this.curLine,B=this.lineStart=U;if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!0,this.input.slice(X+2,G),X,this.pos,H,this.curPosition())}skipLineComment(H){let X=this.pos,G;if(!this.isLookahead)G=this.options.onComment&&this.curPosition();let U=this.input.charCodeAt(this.pos+=H);while(this.pos<this.input.length&&!z(U))U=this.input.charCodeAt(++this.pos);if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!1,this.input.slice(X+H,this.pos),X,this.pos,G,this.curPosition())}finishToken(H,X){if(this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();let G=this.type;if(this.type=H,this.value=X,!this.isLookahead)this.updateContext(G)}resetStartLocation(H,X,G){if(H.start=X,H.loc.start=G,this.options.ranges)H.range[0]=X}isLineTerminator(){return this.eat(K.semi)||super.canInsertSemicolon()}hasFollowingLineBreak(){return j5.lastIndex=this.end,j5.test(this.input)}addExtra(H,X,G,U=!0){if(!H)return;let B=H.extra=H.extra||{};if(U)B[X]=G;else Object.defineProperty(B,X,{enumerable:U,value:G})}isLiteralPropertyName(){return D(this.type)}hasPrecedingLineBreak(){return R.test(this.input.slice(this.lastTokEnd,this.start))}createIdentifier(H,X){return H.name=X,this.finishNode(H,"Identifier")}resetStartLocationFromNode(H,X){this.resetStartLocation(H,X.start,X.loc.start)}isThisParam(H){return H.type==="Identifier"&&H.name==="this"}isLookaheadContextual(H){let X=this.nextTokenStart();return this.isUnparsedContextual(X,H)}ts_type_isContextual(H,X){return H===X&&!this.containsEsc}ts_isContextual(H){return this.type===H&&!this.containsEsc}ts_isContextualWithState(H,X){return H.type===X&&!H.containsEsc}isContextualWithState(H,X){return X.type===K.name&&X.value===H&&!X.containsEsc}tsIsStartOfMappedType(){if(this.next(),this.eat(K.plusMin))return this.ts_isContextual(F.readonly);if(this.ts_isContextual(F.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(H){let X=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return H()}finally{this.inDisallowConditionalTypesContext=X}}tsTryParseType(){return this.tsEatThenParseType(K.colon)}match(H){return this.type===H}matchJsx(H){return this.type===J.tokTypes[H]}ts_eatWithState(H,X,G){let U=G.type;if(H===U){for(let B=0;B<X;B++)this.next();return!0}else return!1}ts_eatContextualWithState(H,X,G){if(A.test(H)){if(this.ts_isContextualWithState(G,F[H])){for(let U=0;U<X;U++)this.next();return!0}return!1}else{if(!this.isContextualWithState(H,G))return!1;for(let U=0;U<X;U++)this.next();return!0}}canHaveLeadingDecorator(){return this.match(K._class)||this.isAbstractClass()}eatContextual(H){if(A.test(H)){if(this.ts_isContextual(F[H]))return this.next(),!0;return!1}else return super.eatContextual(H)}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookaheadCharCode()===40}tsParseExternalModuleReference(){let H=this.startNode();if(this.expectContextual("require"),this.expect(K.parenL),!this.match(K.string))this.unexpected();return H.expression=this.parseExprAtom(),this.expect(K.parenR),this.finishNode(H,"TSExternalModuleReference")}tsParseEntityName(H=!0){let X=this.parseIdent(H);while(this.eat(K.dot)){let G=this.startNodeAtNode(X);G.left=X,G.right=this.parseIdent(H),X=this.finishNode(G,"TSQualifiedName")}return X}tsParseEnumMember(){let H=this.startNode();if(H.id=this.match(K.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(K.eq))H.initializer=this.parseMaybeAssign();return this.finishNode(H,"TSEnumMember")}tsParseEnumDeclaration(H,X={}){if(X.const)H.const=!0;if(X.declare)H.declare=!0;return this.expectContextual("enum"),H.id=this.parseIdent(),this.checkLValSimple(H.id),this.expect(K.braceL),H.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(K.braceR),this.finishNode(H,"TSEnumDeclaration")}tsParseModuleBlock(){let H=this.startNode();this.enterScope(CQ),this.expect(K.braceL),H.body=[];while(this.type!==K.braceR){let X=this.parseStatement(null,!0);H.body.push(X)}return this.next(),super.exitScope(),this.finishNode(H,"TSModuleBlock")}tsParseAmbientExternalModuleDeclaration(H){if(this.ts_isContextual(F.global))H.global=!0,H.id=this.parseIdent();else if(this.match(K.string))H.id=this.parseLiteral(this.value);else this.unexpected();if(this.match(K.braceL))this.enterScope(u1),H.body=this.tsParseModuleBlock(),super.exitScope();else super.semicolon();return this.finishNode(H,"TSModuleDeclaration")}tsTryParseDeclare(H){if(this.isLineTerminator())return;let X=this.type,G;if(this.isContextual("let"))X=K._var,G="let";return this.tsInAmbientContext(()=>{if(X===K._function)return H.declare=!0,this.parseFunctionStatement(H,!1,!0);if(X===K._class)return H.declare=!0,this.parseClass(H,!0);if(X===F.enum)return this.tsParseEnumDeclaration(H,{declare:!0});if(X===F.global)return this.tsParseAmbientExternalModuleDeclaration(H);if(X===K._const||X===K._var){if(!this.match(K._const)||!this.isLookaheadContextual("enum"))return H.declare=!0,this.parseVarStatement(H,G||this.value,!0);return this.expect(K._const),this.tsParseEnumDeclaration(H,{const:!0,declare:!0})}if(X===F.interface){let U=this.tsParseInterfaceDeclaration(H,{declare:!0});if(U)return U}if(h(X))return this.tsParseDeclaration(H,this.value,!0)})}tsIsListTerminator(H){switch(H){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(H,X,G,U){let B=[],L=-1;for(;;){if(this.tsIsListTerminator(H))break;L=-1;let w=X();if(w==null)return;if(B.push(w),this.eat(K.comma)){L=this.lastTokStart;continue}if(this.tsIsListTerminator(H))break;if(G)this.expect(K.comma);return}if(U)U.value=L;return B}tsParseDelimitedList(H,X,G){return lQ(this.tsParseDelimitedListWorker(H,X,!0,G))}tsParseBracketedList(H,X,G,U,B){if(!U)if(G)this.expect(K.bracketL);else this.expect(K.relational);let L=this.tsParseDelimitedList(H,X,B);if(G)this.expect(K.bracketR);else this.expect(K.relational);return L}tsParseTypeParameterName(){return this.parseIdent().name}tsEatThenParseType(H){return!this.match(H)?void 0:this.tsNextThenParseType()}tsExpectThenParseType(H){return this.tsDoThenParseType(()=>this.expect(H))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(H){return this.tsInType(()=>{return H(),this.tsParseType()})}tsSkipParameterStart(){if(h(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(H){let X=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return H()}finally{this.inDisallowConditionalTypesContext=X}}tsParseBindingListForSignature(){return super.parseBindingList(K.parenR,!0,!0).map((H)=>{if(H.type!=="Identifier"&&H.type!=="RestElement"&&H.type!=="ObjectPattern"&&H.type!=="ArrayPattern")this.raise(H.start,E.UnsupportedSignatureParameterKind({type:H.type}));return H})}tsParseTypePredicateAsserts(){if(this.type!==F.asserts)return!1;let H=this.containsEsc;if(this.next(),!h(this.type)&&!this.match(K._this))return!1;if(H)this.raise(this.lastTokStart,"Escape sequence in keyword asserts");return!0}tsParseThisTypeNode(){let H=this.startNode();return this.next(),this.finishNode(H,"TSThisType")}tsParseTypeAnnotation(H=!0,X=this.startNode()){return this.tsInType(()=>{if(H)this.expect(K.colon);X.typeAnnotation=this.tsParseType()}),this.finishNode(X,"TSTypeAnnotation")}tsParseThisTypePredicate(H){this.next();let X=this.startNodeAtNode(H);return X.parameterName=H,X.typeAnnotation=this.tsParseTypeAnnotation(!1),X.asserts=!1,this.finishNode(X,"TSTypePredicate")}tsParseThisTypeOrThisTypePredicate(){let H=this.tsParseThisTypeNode();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(H);else return H}tsParseTypePredicatePrefix(){let H=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),H}tsParseTypeOrTypePredicateAnnotation(H){return this.tsInType(()=>{let X=this.startNode();this.expect(H);let G=this.startNode(),U=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(U&&this.match(K._this)){let w=this.tsParseThisTypeOrThisTypePredicate();if(w.type==="TSThisType")G.parameterName=w,G.asserts=!0,G.typeAnnotation=null,w=this.finishNode(G,"TSTypePredicate");else this.resetStartLocationFromNode(w,G),w.asserts=!0;return X.typeAnnotation=w,this.finishNode(X,"TSTypeAnnotation")}let B=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!B){if(!U)return this.tsParseTypeAnnotation(!1,X);return G.parameterName=this.parseIdent(),G.asserts=U,G.typeAnnotation=null,X.typeAnnotation=this.finishNode(G,"TSTypePredicate"),this.finishNode(X,"TSTypeAnnotation")}let L=this.tsParseTypeAnnotation(!1);return G.parameterName=B,G.typeAnnotation=L,G.asserts=U,X.typeAnnotation=this.finishNode(G,"TSTypePredicate"),this.finishNode(X,"TSTypeAnnotation")})}tsFillSignature(H,X){let G=H===K.arrow,U="parameters",B="typeAnnotation";if(X.typeParameters=this.tsTryParseTypeParameters(),this.expect(K.parenL),X.parameters=this.tsParseBindingListForSignature(),G)X.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(H);else if(this.match(H))X.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(H)}tsTryNextParseConstantContext(){if(this.lookahead().type!==K._const)return null;this.next();let H=this.tsParseTypeReference();if(H.typeParameters||H.typeArguments)this.raise(H.typeName.start,E.CannotFindName({name:"const"}));return H}tsParseFunctionOrConstructorType(H,X){let G=this.startNode();if(H==="TSConstructorType"){if(G.abstract=!!X,X)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(K.arrow,G)),this.finishNode(G,H)}tsParseUnionOrIntersectionType(H,X,G){let U=this.startNode(),B=this.eat(G),L=[];do L.push(X());while(this.eat(G));if(L.length===1&&!B)return L[0];return U.types=L,this.finishNode(U,H)}tsCheckTypeAnnotationForReadOnly(H){switch(H.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(H.start,E.UnexpectedReadonly)}}tsParseTypeOperator(){let H=this.startNode(),X=this.value;if(this.next(),H.operator=X,H.typeAnnotation=this.tsParseTypeOperatorOrHigher(),X==="readonly")this.tsCheckTypeAnnotationForReadOnly(H);return this.finishNode(H,"TSTypeOperator")}tsParseConstraintForInferType(){if(this.eat(K._extends)){let H=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.inDisallowConditionalTypesContext||!this.match(K.question))return H}}tsParseInferType(){let H=this.startNode();this.expectContextual("infer");let X=this.startNode();return X.name=this.tsParseTypeParameterName(),X.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),H.typeParameter=this.finishNode(X,"TSTypeParameter"),this.finishNode(H,"TSInferType")}tsParseLiteralTypeNode(){let H=this.startNode();return H.literal=(()=>{switch(this.type){case K.num:case K.string:case K._true:case K._false:return this.parseExprAtom();default:this.unexpected()}})(),this.finishNode(H,"TSLiteralType")}tsParseImportType(){let H=this.startNode();if(this.expect(K._import),this.expect(K.parenL),!this.match(K.string))this.raise(this.start,E.UnsupportedImportTypeArgument);if(H.argument=this.parseExprAtom(),this.expect(K.parenR),this.eat(K.dot))H.qualifier=this.tsParseEntityName();if(this.tsMatchLeftRelational())H.typeArguments=this.tsParseTypeArguments();return this.finishNode(H,"TSImportType")}tsParseTypeQuery(){let H=this.startNode();if(this.expect(K._typeof),this.match(K._import))H.exprName=this.tsParseImportType();else H.exprName=this.tsParseEntityName();if(!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())H.typeArguments=this.tsParseTypeArguments();return this.finishNode(H,"TSTypeQuery")}tsParseMappedTypeParameter(){let H=this.startNode();return H.name=this.tsParseTypeParameterName(),H.constraint=this.tsExpectThenParseType(K._in),this.finishNode(H,"TSTypeParameter")}tsParseMappedType(){let H=this.startNode();if(this.expect(K.braceL),this.match(K.plusMin))H.readonly=this.value,this.next(),this.expectContextual("readonly");else if(this.eatContextual("readonly"))H.readonly=!0;if(this.expect(K.bracketL),H.typeParameter=this.tsParseMappedTypeParameter(),H.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(K.bracketR),this.match(K.plusMin))H.optional=this.value,this.next(),this.expect(K.question);else if(this.eat(K.question))H.optional=!0;return H.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(K.braceR),this.finishNode(H,"TSMappedType")}tsParseTypeLiteral(){let H=this.startNode();return H.members=this.tsParseObjectTypeMembers(),this.finishNode(H,"TSTypeLiteral")}tsParseTupleElementType(){let H=this.startLoc,X=this.start,G=this.eat(K.ellipsis),U=this.tsParseType(),B=this.eat(K.question);if(this.eat(K.colon)){let w=this.startNodeAtNode(U);if(w.optional=B,U.type==="TSTypeReference"&&!U.typeArguments&&U.typeName.type==="Identifier")w.label=U.typeName;else this.raise(U.start,E.InvalidTupleMemberLabel),w.label=U;w.elementType=this.tsParseType(),U=this.finishNode(w,"TSNamedTupleMember")}else if(B){let w=this.startNodeAtNode(U);w.typeAnnotation=U,U=this.finishNode(w,"TSOptionalType")}if(G){let w=this.startNodeAt(X,H);w.typeAnnotation=U,U=this.finishNode(w,"TSRestType")}return U}tsParseTupleType(){let H=this.startNode();H.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let X=!1;return H.elementTypes.forEach((G)=>{let{type:U}=G;if(X&&U!=="TSRestType"&&U!=="TSOptionalType"&&!(U==="TSNamedTupleMember"&&G.optional))this.raise(G.start,E.OptionalTypeBeforeRequired);if(X||=U==="TSNamedTupleMember"&&G.optional||U==="TSOptionalType",U==="TSRestType")G=G.typeAnnotation}),this.finishNode(H,"TSTupleType")}tsParseTemplateLiteralType(){let H=this.startNode();return H.literal=this.parseTemplate({isTagged:!1}),this.finishNode(H,"TSLiteralType")}tsParseTypeReference(){let H=this.startNode();if(H.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())H.typeArguments=this.tsParseTypeArguments();return this.finishNode(H,"TSTypeReference")}tsMatchLeftRelational(){return this.match(K.relational)&&this.value==="<"}tsMatchRightRelational(){return this.match(K.relational)&&this.value===">"}tsParseParenthesizedType(){let H=this.startNode();return this.expect(K.parenL),H.typeAnnotation=this.tsParseType(),this.expect(K.parenR),this.finishNode(H,"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 H=this.startNode();if(this.lookahead().type!==K.num)this.unexpected();return H.literal=this.parseMaybeUnary(),this.finishNode(H,"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:H}=this;if(h(H)||H===K._void||H===K._null){let X=H===K._void?"TSVoidKeyword":H===K._null?"TSNullKeyword":cQ(this.value);if(X!==void 0&&this.lookaheadCharCode()!==46){let G=this.startNode();return this.next(),this.finishNode(G,X)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let H=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(K.bracketL))if(this.match(K.bracketR)){let X=this.startNodeAtNode(H);X.elementType=H,this.expect(K.bracketR),H=this.finishNode(X,"TSArrayType")}else{let X=this.startNodeAtNode(H);X.objectType=H,X.indexType=this.tsParseType(),this.expect(K.bracketR),H=this.finishNode(X,"TSIndexedAccessType")}return H}tsParseTypeOperatorOrHigher(){return g(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(){H5(this.inType);let H=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(K._extends))return H;let X=this.startNodeAtNode(H);return X.checkType=H,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(),h(this.type))return this.next(),this.match(K.colon);return!1}tsInType(H){let X=this.inType;this.inType=!0;try{return H()}finally{this.inType=X}}tsTryParseIndexSignature(H){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),H.parameters=[X];let G=this.tsTryParseTypeAnnotation();if(G)H.typeAnnotation=G;return this.tsParseTypeMemberSemicolon(),this.finishNode(H,"TSIndexSignature")}tsParseNoneModifiers(H){this.tsParseModifiers({modified:H,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:E.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(H=this.tsParseNoneModifiers.bind(this)){let X=this.startNode();return H(X),X.name=this.tsParseTypeParameterName(),X.constraint=this.tsEatThenParseType(K._extends),X.default=this.tsEatThenParseType(K.eq),this.finishNode(X,"TSTypeParameter")}tsParseTypeParameters(H){let X=this.startNode();if(this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart"))this.next();else this.unexpected();let G={value:-1};if(X.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,H),!1,!0,G),X.params.length===0)this.raise(this.start,E.EmptyTypeParameters);if(G.value!==-1)this.addExtra(X,"trailingComma",G.value);return this.finishNode(X,"TSTypeParameterDeclaration")}tsTryParseTypeParameters(H){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(H)}tsTryParse(H){let X=this.getCurLookaheadState(),G=H();if(G!==void 0&&G!==!1)return G;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(H,X){let G=this.value;if(H.indexOf(G)!==-1&&!this.containsEsc){if(X&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return G}return}tsParseModifiersByMap({modified:H,map:X}){for(let G of Object.keys(X))H[G]=X[G]}tsParseModifiers({modified:H,allowedModifiers:X,disallowedModifiers:G,stopOnStartOfClassStaticBlock:U,errorTemplate:B=E.InvalidModifierOnTypeMember}){let L={},w=(I,C,N,u)=>{if(C===N&&H[u])this.raise(I.column,E.InvalidModifiersOrder({orderedModifiers:[N,u]}))},S=(I,C,N,u)=>{if(H[N]&&C===u||H[u]&&C===N)this.raise(I.column,E.IncompatibleModifiers({modifiers:[N,u]}))};for(;;){let I=this.startLoc,C=this.tsParseModifier(X.concat(G??[]),U);if(!C)break;if(J5(C))if(H.accessibility)this.raise(this.start,E.DuplicateAccessibilityModifier());else w(I,C,C,"override"),w(I,C,C,"static"),w(I,C,C,"readonly"),w(I,C,C,"accessor"),L.accessibility=C,H.accessibility=C;else if(_Q(C))if(H[C])this.raise(this.start,E.DuplicateModifier({modifier:C}));else w(I,C,"in","out"),L[C]=C,H[C]=!0;else if(gQ(C))if(H[C])this.raise(this.start,E.DuplicateModifier({modifier:C}));else S(I,C,"accessor","readonly"),S(I,C,"accessor","static"),S(I,C,"accessor","override"),L[C]=C,H[C]=!0;else if(C==="const")if(H[C])this.raise(this.start,E.DuplicateModifier({modifier:C}));else L[C]=C,H[C]=!0;else if(Object.hasOwnProperty.call(H,C))this.raise(this.start,E.DuplicateModifier({modifier:C}));else w(I,C,"static","readonly"),w(I,C,"static","override"),w(I,C,"override","readonly"),w(I,C,"abstract","override"),S(I,C,"declare","override"),S(I,C,"static","abstract"),L[C]=C,H[C]=!0;if(G?.includes(C))this.raise(this.start,B)}return L}tsParseInOutModifiers(H){this.tsParseModifiers({modified:H,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:E.InvalidModifierOnTypeParameter})}parseMaybeUnary(H,X,G,U){if(!q?.jsx&&this.tsMatchLeftRelational())return this.tsParseTypeAssertion();else return super.parseMaybeUnary(H,X,G,U)}tsParseTypeAssertion(){if(Z)this.raise(this.start,E.ReservedTypeAssertion);let H=this.tryParse(()=>{let X=this.startNode(),G=this.tsTryNextParseConstantContext();return X.typeAnnotation=G||this.tsNextThenParseType(),this.expect(K.relational),X.expression=this.parseMaybeUnary(),this.finishNode(X,"TSTypeAssertion")});if(H.error)return this.tsParseTypeParameters(this.tsParseConstModifier);else return H.node}tsParseTypeArguments(){let H=this.startNode();if(H.params=this.tsInType(()=>this.tsInNoContext(()=>{return this.expect(K.relational),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),H.params.length===0)this.raise(this.start,E.EmptyTypeArguments);return this.exprAllowed=!1,this.expect(K.relational),this.finishNode(H,"TSTypeParameterInstantiation")}tsParseHeritageClause(H){let X=this.start,G=this.tsParseDelimitedList("HeritageClauseElement",()=>{let U=this.startNode();if(U.expression=this.tsParseEntityName(),this.tsMatchLeftRelational())U.typeParameters=this.tsParseTypeArguments();return this.finishNode(U,"TSExpressionWithTypeArguments")});if(!G.length)this.raise(X,E.EmptyHeritageClauseType({token:H}));return G}tsParseTypeMemberSemicolon(){if(!this.eat(K.comma)&&!this.isLineTerminator())this.expect(K.semi)}tsTryParseAndCatch(H){let X=this.tryParse((G)=>H()||G());if(X.aborted||!X.node)return;if(X.error)this.setLookaheadState(X.failState);return X.node}tsParseSignatureMember(H,X){return this.tsFillSignature(K.colon,X),this.tsParseTypeMemberSemicolon(),this.finishNode(X,H)}tsParsePropertyOrMethodSignature(H,X){if(this.eat(K.question))H.optional=!0;let G=H;if(this.match(K.parenL)||this.tsMatchLeftRelational()){if(X)this.raise(H.start,E.ReadonlyForMethodSignature);let U=G;if(U.kind&&this.tsMatchLeftRelational())this.raise(this.start,E.AccesorCannotHaveTypeParameters);this.tsFillSignature(K.colon,U),this.tsParseTypeMemberSemicolon();let B="parameters",L="typeAnnotation";if(U.kind==="get"){if(U[B].length>0){if(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(U[B][0]))this.raise(this.start,E.AccesorCannotDeclareThisParameter)}}else if(U.kind==="set"){if(U[B].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{let w=U[B][0];if(this.isThisParam(w))this.raise(this.start,E.AccesorCannotDeclareThisParameter);if(w.type==="Identifier"&&w.optional)this.raise(this.start,E.SetAccesorCannotHaveOptionalParameter);if(w.type==="RestElement")this.raise(this.start,E.SetAccesorCannotHaveRestParameter)}if(U[L])this.raise(U[L].start,E.SetAccesorCannotHaveReturnType)}else U.kind="method";return this.finishNode(U,"TSMethodSignature")}else{let U=G;if(X)U.readonly=!0;let B=this.tsTryParseTypeAnnotation();if(B)U.typeAnnotation=B;return this.tsParseTypeMemberSemicolon(),this.finishNode(U,"TSPropertySignature")}}tsParseTypeMember(){let H=this.startNode();if(this.match(K.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",H);if(this.match(K._new)){let G=this.startNode();if(this.next(),this.match(K.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSConstructSignatureDeclaration",H);else return H.key=this.createIdentifier(G,"new"),this.tsParsePropertyOrMethodSignature(H,!1)}this.tsParseModifiers({modified:H,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]});let X=this.tsTryParseIndexSignature(H);if(X)return X;if(this.parsePropertyName(H),!H.computed&&H.key.type==="Identifier"&&(H.key.name==="get"||H.key.name==="set")&&this.tsTokenCanFollowModifier())H.kind=H.key.name,this.parsePropertyName(H);return this.tsParsePropertyOrMethodSignature(H,!!H.readonly)}tsParseList(H,X){let G=[];while(!this.tsIsListTerminator(H))G.push(X());return G}tsParseObjectTypeMembers(){this.expect(K.braceL);let H=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(K.braceR),H}tsParseInterfaceDeclaration(H,X={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual("interface"),X.declare)H.declare=!0;if(h(this.type))H.id=this.parseIdent(),this.checkLValSimple(H.id,t.BIND_TS_INTERFACE);else H.id=null,this.raise(this.start,E.MissingInterfaceName);if(H.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(K._extends))H.extends=this.tsParseHeritageClause("extends");let G=this.startNode();return G.body=this.tsParseInterfaceBody(),H.body=this.finishNode(G,"TSInterfaceBody"),this.finishNode(H,"TSInterfaceDeclaration")}tsParseInterfaceBody(){this.expect(K.braceL);let H=this.inType;this.inType=!0;let X=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.inType=H,this.expect(K.braceR),X}tsParseAbstractDeclaration(H){if(this.match(K._class))return H.abstract=!0,this.parseClass(H,!0);else if(this.ts_isContextual(F.interface)){if(!this.hasFollowingLineBreak())return H.abstract=!0,this.tsParseInterfaceDeclaration(H)}else this.unexpected(H.start)}tsIsDeclarationStart(){return y(this.type)}tsParseExpressionStatement(H,X){switch(X.name){case"declare":{let G=this.tsTryParseDeclare(H);if(G)return G.declare=!0,G;break}case"global":if(this.match(K.braceL)){this.enterScope(u1);let G=H;return G.global=!0,G.id=X,G.body=this.tsParseModuleBlock(),super.exitScope(),this.finishNode(G,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(H,X.name,!1)}}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsIsExportDefaultSpecifier(){let{type:H}=this,X=this.isAsyncFunction(),G=this.isLet();if(h(H)){if(X&&!this.containsEsc||G)return!1;if((H===F.type||H===F.interface)&&!this.containsEsc){let L=this.lookahead();if(h(L.type)&&!this.isContextualWithState("from",L)||L.type===K.braceL)return!1}}else if(!this.match(K._default))return!1;let U=this.nextTokenStart(),B=this.isUnparsedContextual(U,"from");if(this.input.charCodeAt(U)===44||h(this.type)&&B)return!0;if(this.match(K._default)&&B){let L=this.input.charCodeAt(this.nextTokenStartSince(U+4));return L===34||L===39}return!1}tsInAmbientContext(H){let X=this.isAmbientContext;this.isAmbientContext=!0;try{return H()}finally{this.isAmbientContext=X}}tsCheckLineTerminator(H){if(H){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsParseModuleOrNamespaceDeclaration(H,X=!1){if(H.id=this.parseIdent(),!X)this.checkLValSimple(H.id,t.BIND_TS_NAMESPACE);if(this.eat(K.dot)){let G=this.startNode();this.tsParseModuleOrNamespaceDeclaration(G,!0),H.body=G}else this.enterScope(u1),H.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(H,"TSModuleDeclaration")}checkLValSimple(H,X=t.BIND_NONE,G){if(H.type==="TSNonNullExpression"||H.type==="TSAsExpression")H=H.expression;return super.checkLValSimple(H,X,G)}tsParseTypeAliasDeclaration(H){return H.id=this.parseIdent(),this.checkLValSimple(H.id,t.BIND_TS_TYPE),H.typeAnnotation=this.tsInType(()=>{if(H.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(K.eq),this.ts_isContextual(F.interface)&&this.lookahead().type!==K.dot){let X=this.startNode();return this.next(),this.finishNode(X,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(H,"TSTypeAliasDeclaration")}tsParseDeclaration(H,X,G){switch(X){case"abstract":if(this.tsCheckLineTerminator(G)&&(this.match(K._class)||h(this.type)))return this.tsParseAbstractDeclaration(H);break;case"module":if(this.tsCheckLineTerminator(G)){if(this.match(K.string))return this.tsParseAmbientExternalModuleDeclaration(H);else if(h(this.type))return this.tsParseModuleOrNamespaceDeclaration(H)}break;case"namespace":if(this.tsCheckLineTerminator(G)&&h(this.type))return this.tsParseModuleOrNamespaceDeclaration(H);break;case"type":if(this.tsCheckLineTerminator(G)&&h(this.type))return this.tsParseTypeAliasDeclaration(H);break}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.value,!0)}tsParseImportEqualsDeclaration(H,X){H.isExport=X||!1,H.id=this.parseIdent(),this.checkLValSimple(H.id,t.BIND_LEXICAL),super.expect(K.eq);let G=this.tsParseModuleReference();if(H.importKind==="type"&&G.type!=="TSExternalModuleReference")this.raise(G.start,E.ImportAliasHasImportType);return H.moduleReference=G,super.semicolon(),this.finishNode(H,"TSImportEqualsDeclaration")}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;let{type:H}=this;if(h(H)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((H===F.type||H===F.interface)&&!this.containsEsc){let U=this.lookahead();if(h(U.type)&&!this.isContextualWithState("from",U)||U.type===K.braceL)return!1}}else if(!this.match(K._default))return!1;let X=this.nextTokenStart(),G=this.isUnparsedContextual(X,"from");if(this.input.charCodeAt(X)===44||h(this.type)&&G)return!0;if(this.match(K._default)&&G){let U=this.input.charCodeAt(this.nextTokenStartSince(X+4));return U===34||U===39}return!1}parseTemplate({isTagged:H=!1}={}){let X=this.startNode();this.next(),X.expressions=[];let G=this.parseTemplateElement({isTagged:H});X.quasis=[G];while(!G.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(G=this.parseTemplateElement({isTagged:H}))}return this.next(),this.finishNode(X,"TemplateLiteral")}parseFunction(H,X,G,U,B){if(this.initFunction(H),this.ecmaVersion>=9||this.ecmaVersion>=6&&!U){if(this.type===K.star&&X&K5)this.unexpected();H.generator=this.eat(K.star)}if(this.ecmaVersion>=8)H.async=!!U;if(X&k0)H.id=X&xQ&&this.type!==K.name?null:this.parseIdent();let L=this.yieldPos,w=this.awaitPos,S=this.awaitIdentPos,I=this.maybeInArrowParameters;if(this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(n9(H.async,H.generator)),!(X&k0))H.id=this.type===K.name?this.parseIdent():null;this.parseFunctionParams(H);let C=X&k0;if(this.parseFunctionBody(H,G,!1,B,{isFunctionDeclaration:C}),this.yieldPos=L,this.awaitPos=w,this.awaitIdentPos=S,X&k0&&H.id&&!(X&K5))if(H.body)this.checkLValSimple(H.id,this.strict||H.generator||H.async?this.treatFunctionsAsVar?t.BIND_VAR:t.BIND_LEXICAL:t.BIND_FUNCTION);else this.checkLValSimple(H.id,t.BIND_NONE);return this.maybeInArrowParameters=I,this.finishNode(H,C?"FunctionDeclaration":"FunctionExpression")}parseFunctionBody(H,X=!1,G=!1,U=!1,B){if(this.match(K.colon))H.returnType=this.tsParseTypeOrTypePredicateAnnotation(K.colon);let L=B?.isFunctionDeclaration?"TSDeclareFunction":B?.isClassMethod?"TSDeclareMethod":void 0;if(L&&!this.match(K.braceL)&&this.isLineTerminator())return this.exitScope(),this.finishNode(H,L);if(L==="TSDeclareFunction"&&this.isAmbientContext){if(this.raise(H.start,E.DeclareFunctionHasImplementation),H.declare)return super.parseFunctionBody(H,X,G,!1),this.finishNode(H,L)}return super.parseFunctionBody(H,X,G,U),H}parseNew(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");let H=this.startNode(),X=this.parseIdent(!0);if(this.ecmaVersion>=6&&this.eat(K.dot)){H.meta=X;let w=this.containsEsc;if(H.property=this.parseIdent(!0),H.property.name!=="target")this.raiseRecoverable(H.property.start,"The only valid meta property for new is 'new.target'");if(w)this.raiseRecoverable(H.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(H.start,"'new.target' can only be used in functions and class static block");return this.finishNode(H,"MetaProperty")}let G=this.start,U=this.startLoc,B=this.type===K._import;if(H.callee=this.parseSubscripts(this.parseExprAtom(),G,U,!0,!1),B&&H.callee.type==="ImportExpression")this.raise(G,"Cannot use new with import()");let{callee:L}=H;if(L.type==="TSInstantiationExpression"&&!L.extra?.parenthesized)H.typeArguments=L.typeArguments,H.callee=L.expression;if(this.eat(K.parenL))H.arguments=this.parseExprList(K.parenR,this.ecmaVersion>=8,!1);else H.arguments=[];return this.finishNode(H,"NewExpression")}parseExprOp(H,X,G,U,B){if(K._in.binop>U&&!this.hasPrecedingLineBreak()){let L;if(this.isContextual("as"))L="TSAsExpression";if(this.isContextual("satisfies"))L="TSSatisfiesExpression";if(L){let w=this.startNodeAt(X,G);w.expression=H;let S=this.tsTryNextParseConstantContext();if(S)w.typeAnnotation=S;else w.typeAnnotation=this.tsNextThenParseType();return this.finishNode(w,L),this.reScan_lt_gt(),this.parseExprOp(w,X,G,U,B)}}return super.parseExprOp(H,X,G,U,B)}parseImportSpecifiers(){let H=[],X=!0;if(J.tokenIsIdentifier(this.type)){if(H.push(this.parseImportDefaultSpecifier()),!this.eat(K.comma))return H}if(this.type===K.star)return H.push(this.parseImportNamespaceSpecifier()),H;this.expect(K.braceL);while(!this.eat(K.braceR)){if(!X){if(this.expect(K.comma),this.afterTrailingComma(K.braceR))break}else X=!1;H.push(this.parseImportSpecifier())}return H}parseImport(H){let X=this.lookahead();if(H.importKind="value",this.importOrExportOuterKind="value",h(X.type)||this.match(K.star)||this.match(K.braceL)){let G=this.lookahead(2);if(G.type!==K.comma&&!this.isContextualWithState("from",G)&&G.type!==K.eq&&this.ts_eatContextualWithState("type",1,X))this.importOrExportOuterKind="type",H.importKind="type",X=this.lookahead(),G=this.lookahead(2);if(h(X.type)&&G.type===K.eq){this.next();let U=this.tsParseImportEqualsDeclaration(H);return this.importOrExportOuterKind="value",U}}if(this.next(),this.type===K.string)H.specifiers=[],H.source=this.parseExprAtom();else H.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),H.source=this.type===K.string?this.parseExprAtom():this.unexpected();if(this.parseMaybeImportAttributes(H),this.semicolon(),this.finishNode(H,"ImportDeclaration"),this.importOrExportOuterKind="value",H.importKind==="type"&&H.specifiers.length>1&&H.specifiers[0].type==="ImportDefaultSpecifier")this.raise(H.start,E.TypeImportCannotSpecifyDefaultAndNamed);return H}parseExportDefaultDeclaration(){if(this.isAbstractClass()){let H=this.startNode();return this.next(),H.abstract=!0,this.parseClass(H,!0)}if(this.match(F.interface)){let H=this.tsParseInterfaceDeclaration(this.startNode());if(H)return H}return super.parseExportDefaultDeclaration()}parseExportAllDeclaration(H,X){if(this.ecmaVersion>=11)if(this.eatContextual("as"))H.exported=this.parseModuleExportName(),this.checkExport(X,H.exported,this.lastTokStart);else H.exported=null;if(this.expectContextual("from"),this.type!==K.string)this.unexpected();return H.source=this.parseExprAtom(),this.parseMaybeImportAttributes(H),this.semicolon(),this.finishNode(H,"ExportAllDeclaration")}parseDynamicImport(H){if(this.next(),H.source=this.parseMaybeAssign(),this.eat(K.comma)){let X=this.parseExpression();H.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(H,"ImportExpression")}parseExport(H,X){let G=this.lookahead();if(this.ts_eatWithState(K._import,2,G)){if(this.ts_isContextual(F.type)&&this.lookaheadCharCode()!==61)H.importKind="type",this.importOrExportOuterKind="type",this.next();else H.importKind="value",this.importOrExportOuterKind="value";let U=this.tsParseImportEqualsDeclaration(H,!0);return this.importOrExportOuterKind=void 0,U}else if(this.ts_eatWithState(K.eq,2,G)){let U=H;return U.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(U,"TSExportAssignment")}else if(this.ts_eatContextualWithState("as",2,G)){let U=H;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(G,F.type)&&(U===K.braceL||U===K.star))this.next(),this.importOrExportOuterKind="type",H.exportKind="type";else this.importOrExportOuterKind="value",H.exportKind="value";if(this.next(),this.eat(K.star))return this.parseExportAllDeclaration(H,X);if(this.eat(K._default))return this.checkExport(X,"default",this.lastTokStart),H.declaration=this.parseExportDefaultDeclaration(),this.finishNode(H,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(H.declaration=this.parseExportDeclaration(H),H.declaration.type==="VariableDeclaration")this.checkVariableExport(X,H.declaration.declarations);else this.checkExport(X,H.declaration.id,H.declaration.id.start);H.specifiers=[],H.source=null}else{if(H.declaration=null,H.specifiers=this.parseExportSpecifiers(X),this.eatContextual("from")){if(this.type!==K.string)this.unexpected();H.source=this.parseExprAtom(),this.parseMaybeImportAttributes(H)}else{for(let B of H.specifiers)if(this.checkUnreserved(B.local),this.checkLocalExport(B.local),B.local.type==="Literal")this.raise(B.local.start,"A string literal cannot be used as an exported binding without `from`.");H.source=null}this.semicolon()}return this.finishNode(H,"ExportNamedDeclaration")}}checkExport(H,X,G){if(!H)return;if(typeof X!=="string")X=X.type==="Identifier"?X.name:X.value;H[X]=!0}parseMaybeDefault(H,X,G){let U=super.parseMaybeDefault(H,X,G);if(U.type==="AssignmentPattern"&&U.typeAnnotation&&U.right.start<U.typeAnnotation.start)this.raise(U.typeAnnotation.start,E.TypeAnnotationAfterAssign);return U}typeCastToParameter(H){return H.expression.typeAnnotation=H.typeAnnotation,this.resetEndLocation(H.expression,H.typeAnnotation.end,H.typeAnnotation.loc?.end),H.expression}toAssignableList(H,X){if(!H)H=[];for(let G=0;G<H.length;G++){let U=H[G];if(U?.type==="TSTypeCastExpression")H[G]=this.typeCastToParameter(U)}return super.toAssignableList(H,X)}reportReservedArrowTypeParam(H){if(H.params.length===1&&!H.extra?.trailingComma&&Z)this.raise(H.start,E.ReservedArrowTypeParam)}parseExprAtom(H,X,G){if(this.type===F.jsxText)return this.jsx_parseText();else if(this.type===F.jsxTagStart)return this.jsx_parseElement();else if(this.type===F.at)return this.parseDecorators(),this.parseExprAtom();else if(h(this.type)){let U=this.potentialArrowAt===this.start,B=this.start,L=this.startLoc,w=this.containsEsc,S=this.parseIdent(!1);if(this.ecmaVersion>=8&&!w&&S.name==="async"&&!this.canInsertSemicolon()&&this.eat(K._function))return this.overrideContext(M.f_expr),this.parseFunction(this.startNodeAt(B,L),0,!1,!0,X);if(U&&!this.canInsertSemicolon()){if(this.eat(K.arrow))return this.parseArrowExpression(this.startNodeAt(B,L),[S],!1,X);if(this.ecmaVersion>=8&&S.name==="async"&&this.type===K.name&&!w&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(S=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(K.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(B,L),[S],!0,X)}}return S}else return super.parseExprAtom(H,X,G)}parseExprAtomDefault(){if(h(this.type)){let H=this.potentialArrowAt===this.start,X=this.containsEsc,G=this.parseIdent();if(!X&&G.name==="async"&&!this.canInsertSemicolon()){let{type:U}=this;if(U===K._function)return this.next(),this.parseFunction(this.startNodeAtNode(G),void 0,!0,!0);else if(h(U))if(this.lookaheadCharCode()===61){let B=this.parseIdent(!1);if(this.canInsertSemicolon()||!this.eat(K.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAtNode(G),[B],!0)}else return G}if(H&&this.match(K.arrow)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(G),[G],!1);return G}else this.unexpected()}parseIdentNode(){let H=this.startNode();if(n(this.type)&&!((this.type.keyword==="class"||this.type.keyword==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)))H.name=this.value;else return super.parseIdentNode();return H}parseVarStatement(H,X,G=!1){let{isAmbientContext:U}=this;this.next(),super.parseVar(H,!1,X,G||U),this.semicolon();let B=this.finishNode(H,"VariableDeclaration");if(!U)return B;for(let{id:L,init:w}of B.declarations){if(!w)continue;if(X!=="const"||!!L.typeAnnotation)this.raise(w.start,E.InitializerNotAllowedInAmbientContext);else if(w.type!=="StringLiteral"&&w.type!=="BooleanLiteral"&&w.type!=="NumericLiteral"&&w.type!=="BigIntLiteral"&&(w.type!=="TemplateLiteral"||w.expressions.length>0)&&!uQ(w))this.raise(w.start,E.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference)}return B}parseStatement(H,X,G){if(this.match(F.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(F.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(F.interface)){let U=this.tsParseInterfaceDeclaration(this.startNode());if(U)return U}return super.parseStatement(H,X,G)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parsePostMemberNameModifiers(H){if(this.eat(K.question))H.optional=!0;if(H.readonly&&this.match(K.parenL))this.raise(H.start,E.ClassMethodHasReadonly);if(H.declare&&this.match(K.parenL))this.raise(H.start,E.ClassMethodHasDeclare)}parseExpressionStatement(H,X){return(X.type==="Identifier"?this.tsParseExpressionStatement(H,X):void 0)||super.parseExpressionStatement(H,X)}shouldParseExportStatement(){if(this.tsIsDeclarationStart())return!0;if(this.match(F.at))return!0;return super.shouldParseExportStatement()}parseConditional(H,X,G,U,B){if(this.eat(K.question)){let L=this.startNodeAt(X,G);return L.test=H,L.consequent=this.parseMaybeAssign(),this.expect(K.colon),L.alternate=this.parseMaybeAssign(U),this.finishNode(L,"ConditionalExpression")}return H}parseMaybeConditional(H,X){let G=this.start,U=this.startLoc,B=this.parseExprOps(H,X);if(this.checkExpressionErrors(X))return B;if(!this.maybeInArrowParameters||!this.match(K.question))return this.parseConditional(B,G,U,H,X);let L=this.tryParse(()=>this.parseConditional(B,G,U,H,X));if(!L.node){if(L.error)this.setOptionalParametersError(X,L.error);return B}if(L.error)this.setLookaheadState(L.failState);return L.node}parseParenItem(H){let X=this.start,G=this.startLoc;if(H=super.parseParenItem(H),this.eat(K.question))H.optional=!0,this.resetEndLocation(H);if(this.match(K.colon)){let U=this.startNodeAt(X,G);return U.expression=H,U.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(U,"TSTypeCastExpression")}return H}parseExportDeclaration(H){if(!this.isAmbientContext&&this.ts_isContextual(F.declare))return this.tsInAmbientContext(()=>this.parseExportDeclaration(H));let X=this.start,G=this.startLoc,U=this.eatContextual("declare");if(U&&(this.ts_isContextual(F.declare)||!this.shouldParseExportStatement()))this.raise(this.start,E.ExpectedAmbientAfterExportDeclare);let L=h(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);if(!L)return null;if(L.type==="TSInterfaceDeclaration"||L.type==="TSTypeAliasDeclaration"||U)H.exportKind="type";if(U)this.resetStartLocation(L,X,G),L.declare=!0;return L}parseClassId(H,X){if(!X&&this.isContextual("implements"))return;super.parseClassId(H,X);let G=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));if(G)H.typeParameters=G}parseClassPropertyAnnotation(H){if(!H.optional){if(this.value==="!"&&this.eat(K.prefix))H.definite=!0;else if(this.eat(K.question))H.optional=!0}let X=this.tsTryParseTypeAnnotation();if(X)H.typeAnnotation=X}parseClassField(H){if(H.key.type==="PrivateIdentifier"){if(H.abstract)this.raise(H.start,E.PrivateElementHasAbstract);if(H.accessibility)this.raise(H.start,E.PrivateElementHasAccessibility({modifier:H.accessibility}));this.parseClassPropertyAnnotation(H)}else{if(this.parseClassPropertyAnnotation(H),this.isAmbientContext&&!(H.readonly&&!H.typeAnnotation)&&this.match(K.eq))this.raise(this.start,E.DeclareClassFieldHasInitializer);if(H.abstract&&this.match(K.eq)){let{key:G}=H;this.raise(this.start,E.AbstractPropertyHasInitializer({propertyName:G.type==="Identifier"&&!H.computed?G.name:`[${this.input.slice(G.start,G.end)}]`}))}}return super.parseClassField(H)}parseClassMethod(H,X,G,U){let B=H.kind==="constructor",L=H.key.type==="PrivateIdentifier",w=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(L){if(w)H.typeParameters=w;if(H.accessibility)this.raise(H.start,E.PrivateMethodsHasAccessibility({modifier:H.accessibility}))}else if(w&&B)this.raise(w.start,E.ConstructorHasTypeParameters);let{declare:S=!1,kind:I}=H;if(S&&(I==="get"||I==="set"))this.raise(H.start,E.DeclareAccessor({kind:I}));if(w)H.typeParameters=w;let C=H.key;if(H.kind==="constructor"){if(X)this.raise(C.start,"Constructor can't be a generator");if(G)this.raise(C.start,"Constructor can't be an async method")}else if(H.static&&Y5(H,"prototype"))this.raise(C.start,"Classes may not have a static property named prototype");let N=H.value=this.parseMethod(X,G,U,!0,H);if(H.kind==="get"&&N.params.length!==0)this.raiseRecoverable(N.start,"getter should have no params");if(H.kind==="set"&&N.params.length!==1)this.raiseRecoverable(N.start,"setter should have exactly one param");if(H.kind==="set"&&N.params[0].type==="RestElement")this.raiseRecoverable(N.params[0].start,"Setter cannot use rest params");return this.finishNode(H,"MethodDefinition")}isClassMethod(){return this.match(K.relational)}parseClassElement(H){if(this.eat(K.semi))return null;let X=this.startNode(),G="",U=!1,B=!1,L="method",w=!1,S=["declare","private","public","protected","accessor","override","abstract","readonly","static"],I=this.tsParseModifiers({modified:X,allowedModifiers:S,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:E.InvalidModifierOnTypeParameterPositions});w=Boolean(I.static);let C=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(X,S))this.raise(this.start,E.StaticBlockCannotHaveModifier);if(this.ecmaVersion>=13)return super.parseClassStaticBlock(X),X}else{let N=this.tsTryParseIndexSignature(X);if(N){if(X.abstract)this.raise(X.start,E.IndexSignatureHasAbstract);if(X.accessibility)this.raise(X.start,E.IndexSignatureHasAccessibility({modifier:X.accessibility}));if(X.declare)this.raise(X.start,E.IndexSignatureHasDeclare);if(X.override)this.raise(X.start,E.IndexSignatureHasOverride);return N}if(!this.inAbstractClass&&X.abstract)this.raise(X.start,E.NonAbstractClassHasAbstractMethod);if(X.override){if(!H)this.raise(X.start,E.OverrideNotInSubClass)}if(X.static=w,w){if(!(this.isClassElementNameStart()||this.type===K.star))G="static"}if(!G&&this.ecmaVersion>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===K.star)&&!this.canInsertSemicolon())B=!0;else G="async";if(!G&&(this.ecmaVersion>=9||!B)&&this.eat(K.star))U=!0;if(!G&&!B&&!U){let u=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())L=u;else G=u}if(G)X.computed=!1,X.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),X.key.name=G,this.finishNode(X.key,"Identifier");else this.parseClassElementName(X);if(this.parsePostMemberNameModifiers(X),this.isClassMethod()||this.ecmaVersion<13||this.type===K.parenL||L!=="method"||U||B){let u=!X.static&&Y5(X,"constructor"),m=u&&H;if(u&&L!=="method")this.raise(X.key.start,"Constructor can't have get/set modifier");X.kind=u?"constructor":L,this.parseClassMethod(X,U,B,m)}else this.parseClassField(X);return X}};if(X.declare)this.tsInAmbientContext(C);else C();return X}isClassElementNameStart(){if(this.tsIsIdentifier())return!0;return super.isClassElementNameStart()}parseClassSuper(H){if(super.parseClassSuper(H),H.superClass&&(this.tsMatchLeftRelational()||this.match(K.bitShift)))H.superTypeParameters=this.tsParseTypeArgumentsInExpression();if(this.eatContextual("implements"))H.implements=this.tsParseHeritageClause("implements")}parseFunctionParams(H){let X=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(X)H.typeParameters=X;super.parseFunctionParams(H)}parseVarId(H,X){if(super.parseVarId(H,X),H.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(K.prefix))H.definite=!0;let G=this.tsTryParseTypeAnnotation();if(G)H.id.typeAnnotation=G,this.resetEndLocation(H.id)}parseArrowExpression(H,X,G,U){if(this.match(K.colon))H.returnType=this.tsParseTypeAnnotation();let B=this.yieldPos,L=this.awaitPos,w=this.awaitIdentPos;this.enterScope(n9(G,!1)|t.SCOPE_ARROW),this.initFunction(H);let S=this.maybeInArrowParameters;if(this.ecmaVersion>=8)H.async=!!G;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,H.params=this.toAssignableList(X,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(H,!0,!1,U),this.yieldPos=B,this.awaitPos=L,this.awaitIdentPos=w,this.maybeInArrowParameters=S,this.finishNode(H,"ArrowFunctionExpression")}parseMaybeAssignOrigin(H,X,G){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(H);else this.exprAllowed=!1;let U=!1,B=-1,L=-1,w=-1;if(X)B=X.parenthesizedAssign,L=X.trailingComma,w=X.doubleProto,X.parenthesizedAssign=X.trailingComma=-1;else X=new m1,U=!0;let S=this.start,I=this.startLoc;if(this.type===K.parenL||h(this.type))this.potentialArrowAt=this.start,this.potentialArrowInForAwait=H==="await";let C=this.parseMaybeConditional(H,X);if(G)C=G.call(this,C,S,I);if(this.type.isAssign){let N=this.startNodeAt(S,I);if(N.operator=this.value,this.type===K.eq)C=this.toAssignable(C,!0,X);if(!U)X.parenthesizedAssign=X.trailingComma=X.doubleProto=-1;if(X.shorthandAssign>=C.start)X.shorthandAssign=-1;if(!this.maybeInArrowParameters)if(this.type===K.eq)this.checkLValPattern(C);else this.checkLValSimple(C);if(N.left=C,this.next(),N.right=this.parseMaybeAssign(H),w>-1)X.doubleProto=w;return this.finishNode(N,"AssignmentExpression")}else if(U)this.checkExpressionErrors(X,!0);if(B>-1)X.parenthesizedAssign=B;if(L>-1)X.trailingComma=L;return C}parseMaybeAssign(H,X,G){let U,B,L;if(q?.jsx&&(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational())){if(U=this.cloneCurLookaheadState(),B=this.tryParse(()=>this.parseMaybeAssignOrigin(H,X,G),U),!B.error)return B.node;let I=this.context,C=I[I.length-1],N=I[I.length-2];if(C===J.tokContexts.tc_oTag&&N===J.tokContexts.tc_expr)I.pop(),I.pop();else if(C===J.tokContexts.tc_oTag||C===J.tokContexts.tc_expr)I.pop()}if(!B?.error&&!this.tsMatchLeftRelational())return this.parseMaybeAssignOrigin(H,X,G);if(!U||this.compareLookaheadState(U,this.getCurLookaheadState()))U=this.cloneCurLookaheadState();let w,S=this.tryParse((I)=>{w=this.tsParseTypeParameters(this.tsParseConstModifier);let C=this.parseMaybeAssignOrigin(H,X,G);if(C.type!=="ArrowFunctionExpression"||C.extra?.parenthesized)I();if(w?.params.length!==0)this.resetStartLocationFromNode(C,w);return C.typeParameters=w,C},U);if(!S.error&&!S.aborted){if(w)this.reportReservedArrowTypeParam(w);return S.node}if(!B){if(H5(!0),L=this.tryParse(()=>this.parseMaybeAssignOrigin(H,X,G),U),!L.error)return L.node}if(B?.node)return this.setLookaheadState(B.failState),B.node;if(S.node){if(this.setLookaheadState(S.failState),w)this.reportReservedArrowTypeParam(w);return S.node}if(L?.node)return this.setLookaheadState(L.failState),L.node;if(B?.thrown)throw B.error;if(S.thrown)throw S.error;if(L?.thrown)throw L.error;throw B?.error||S.error||L?.error}parseAssignableListItem(H){let X=[];while(this.match(F.at))X.push(this.parseDecorator());let G=this.start,U=this.startLoc,B,L=!1,w=!1;if(H!==void 0){let C={};if(this.tsParseModifiers({modified:C,allowedModifiers:["public","private","protected","override","readonly"]}),B=C.accessibility,w=C.override,L=C.readonly,H===!1&&(B||L||w))this.raise(U.column,E.UnexpectedParameterModifier)}let S=this.parseMaybeDefault(G,U);this.parseBindingListItem(S);let I=this.parseMaybeDefault(S.start,S.loc.start,S);if(X.length)I.decorators=X;if(B||L||w){let C=this.startNodeAt(G,U);if(B)C.accessibility=B;if(L)C.readonly=L;if(w)C.override=w;if(I.type!=="Identifier"&&I.type!=="AssignmentPattern")this.raise(C.start,E.UnsupportedParameterPropertyKind);return C.parameter=I,this.finishNode(C,"TSParameterProperty")}return I}checkLValInnerPattern(H,X=t.BIND_NONE,G){switch(H.type){case"TSParameterProperty":this.checkLValInnerPattern(H.parameter,X,G);break;default:{super.checkLValInnerPattern(H,X,G);break}}}parseBindingListItem(H){if(this.eat(K.question)){if(H.type!=="Identifier"&&!this.isAmbientContext&&!this.inType)this.raise(H.start,E.PatternIsOptional);H.optional=!0}let X=this.tsTryParseTypeAnnotation();if(X)H.typeAnnotation=X;return this.resetEndLocation(H),H}isAssignable(H,X){switch(H.type){case"TSTypeCastExpression":return this.isAssignable(H.expression,X);case"TSParameterProperty":return!0;case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let G=H.properties.length-1;return H.properties.every((U,B)=>{return U.type!=="ObjectMethod"&&(B===G||U.type!=="SpreadElement")&&this.isAssignable(U)})}case"Property":case"ObjectProperty":return this.isAssignable(H.value);case"SpreadElement":return this.isAssignable(H.argument);case"ArrayExpression":return H.elements.every((G)=>G===null||this.isAssignable(G));case"AssignmentExpression":return H.operator==="=";case"ParenthesizedExpression":return this.isAssignable(H.expression);case"MemberExpression":case"OptionalMemberExpression":return!X;default:return!1}}toAssignable(H,X=!1,G=new m1){switch(H.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(H,X,G);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(X);else this.raise(H.start,E.UnexpectedTypeCastInParameter);return this.toAssignable(H.expression,X,G);case"MemberExpression":break;case"AssignmentExpression":if(!X&&H.left.type==="TSTypeCastExpression")H.left=this.typeCastToParameter(H.left);return super.toAssignable(H,X,G);case"TSTypeCastExpression":return this.typeCastToParameter(H);default:return super.toAssignable(H,X,G)}return H}toAssignableParenthesizedExpression(H,X,G){switch(H.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(H.expression,X,G);default:return super.toAssignable(H,X,G)}}parseBindingAtom(){switch(this.type){case K._this:return this.parseIdent(!0);default:return super.parseBindingAtom()}}shouldParseArrow(H){let X;if(this.match(K.colon))X=H.every((G)=>this.isAssignable(G,!0));else X=!this.canInsertSemicolon();if(X){if(this.match(K.colon)){let G=this.tryParse((U)=>{let B=this.tsParseTypeOrTypePredicateAnnotation(K.colon);if(this.canInsertSemicolon()||!this.match(K.arrow))U();return B});if(G.aborted)return this.shouldParseArrowReturnType=void 0,!1;if(!G.thrown){if(G.error)this.setLookaheadState(G.failState);this.shouldParseArrowReturnType=G.node}}if(!this.match(K.arrow))return this.shouldParseArrowReturnType=void 0,!1;return!0}return this.shouldParseArrowReturnType=void 0,X}parseParenArrowList(H,X,G,U){let B=this.startNodeAt(H,X);return B.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(B,G,!1,U)}parseParenAndDistinguishExpression(H,X){let G=this.start,U=this.startLoc,B,L=this.ecmaVersion>=8;if(this.ecmaVersion>=6){let w=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();let S=this.start,I=this.startLoc,C=[],N=!0,u=!1,m=new m1,K8=this.yieldPos,s=this.awaitPos,k;this.yieldPos=0,this.awaitPos=0;while(this.type!==K.parenR)if(N?N=!1:this.expect(K.comma),L&&this.afterTrailingComma(K.parenR,!0)){u=!0;break}else if(this.type===K.ellipsis){if(k=this.start,C.push(this.parseParenItem(this.parseRestBinding())),this.type===K.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else C.push(this.parseMaybeAssign(X,m,this.parseParenItem));let i=this.lastTokEnd,_=this.lastTokEndLoc;if(this.expect(K.parenR),this.maybeInArrowParameters=w,H&&this.shouldParseArrow(C)&&this.eat(K.arrow))return this.checkPatternErrors(m,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=K8,this.awaitPos=s,this.parseParenArrowList(G,U,C,X);if(!C.length||u)this.unexpected(this.lastTokStart);if(k)this.unexpected(k);if(this.checkExpressionErrors(m,!0),this.yieldPos=K8||this.yieldPos,this.awaitPos=s||this.awaitPos,C.length>1)B=this.startNodeAt(S,I),B.expressions=C,this.finishNodeAt(B,"SequenceExpression",i,_);else B=C[0]}else B=this.parseParenExpression();if(this.options.preserveParens){let w=this.startNodeAt(G,U);return w.expression=B,this.finishNode(w,"ParenthesizedExpression")}else return B}parseTaggedTemplateExpression(H,X,G,U){let B=this.startNodeAt(X,G);if(B.tag=H,B.quasi=this.parseTemplate({isTagged:!0}),U)this.raise(X,"Tagged Template Literals are not allowed in optionalChain.");return this.finishNode(B,"TaggedTemplateExpression")}shouldParseAsyncArrow(){if(this.match(K.colon)){let H=this.tryParse((X)=>{let G=this.tsParseTypeOrTypePredicateAnnotation(K.colon);if(this.canInsertSemicolon()||!this.match(K.arrow))X();return G});if(H.aborted)return this.shouldParseAsyncArrowReturnType=void 0,!1;if(!H.thrown){if(H.error)this.setLookaheadState(H.failState);return this.shouldParseAsyncArrowReturnType=H.node,!this.canInsertSemicolon()&&this.eat(K.arrow)}}else return!this.canInsertSemicolon()&&this.eat(K.arrow)}parseSubscriptAsyncArrow(H,X,G,U){let B=this.startNodeAt(H,X);return B.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(B,G,!0,U)}parseExprList(H,X,G,U){let B=[],L=!0;while(!this.eat(H)){if(!L){if(this.expect(K.comma),X&&this.afterTrailingComma(H))break}else L=!1;let w;if(G&&this.type===K.comma)w=null;else if(this.type===K.ellipsis){if(w=this.parseSpread(U),this.maybeInArrowParameters&&this.match(K.colon))w.typeAnnotation=this.tsParseTypeAnnotation();if(U&&this.type===K.comma&&U.trailingComma<0)U.trailingComma=this.start}else w=this.parseMaybeAssign(!1,U,this.parseParenItem);B.push(w)}return B}parseSubscript(H,X,G,U,B,L,w){let S=L;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(K.prefix)){this.exprAllowed=!1,this.next();let m=this.startNodeAt(X,G);return m.expression=H,H=this.finishNode(m,"TSNonNullExpression"),H}let I=!1;if(this.match(K.questionDot)&&this.lookaheadCharCode()===60){if(U)return H;H.optional=!0,S=I=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(K.bitShift)){let m,K8=this.tsTryParseAndCatch(()=>{if(!U&&this.atPossibleAsyncArrow(H)){let _=this.tsTryParseGenericAsyncArrowFunction(X,G,w);if(_)return H=_,H}let s=this.tsParseTypeArgumentsInExpression();if(!s)return H;if(I&&!this.match(K.parenL))return m=this.curPosition(),H;if(v(this.type)||this.type===K.backQuote){let _=this.parseTaggedTemplateExpression(H,X,G,S);return _.typeArguments=s,_}if(!U&&this.eat(K.parenL)){let _=new m1,l=this.startNodeAt(X,G);if(l.callee=H,l.arguments=this.parseExprList(K.parenR,this.ecmaVersion>=8,!1,_),this.tsCheckForInvalidTypeCasts(l.arguments),l.typeArguments=s,S)l.optional=I;return this.checkExpressionErrors(_,!0),H=this.finishNode(l,"CallExpression"),H}let k=this.type;if(this.tsMatchRightRelational()||k===K.bitShift||k!==K.parenL&&mQ(k)&&!this.hasPrecedingLineBreak())return;let i=this.startNodeAt(X,G);return i.expression=H,i.typeArguments=s,this.finishNode(i,"TSInstantiationExpression")});if(m)this.unexpected(m);if(K8){if(K8.type==="TSInstantiationExpression"&&(this.match(K.dot)||this.match(K.questionDot)&&this.lookaheadCharCode()!==40))this.raise(this.start,E.InvalidPropertyAccessAfterInstantiationExpression);return H=K8,H}}let C=this.ecmaVersion>=11,N=C&&this.eat(K.questionDot);if(U&&N)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");let u=this.eat(K.bracketL);if(u||N&&this.type!==K.parenL&&this.type!==K.backQuote||this.eat(K.dot)){let m=this.startNodeAt(X,G);if(m.object=H,u)m.property=this.parseExpression(),this.expect(K.bracketR);else if(this.type===K.privateId&&H.type!=="Super")m.property=this.parsePrivateIdent();else m.property=this.parseIdent(this.options.allowReserved!=="never");if(m.computed=!!u,C)m.optional=N;H=this.finishNode(m,"MemberExpression")}else if(!U&&this.eat(K.parenL)){let m=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let K8=new m1,s=this.yieldPos,k=this.awaitPos,i=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;let _=this.parseExprList(K.parenR,this.ecmaVersion>=8,!1,K8);if(B&&!N&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(K8,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");this.yieldPos=s,this.awaitPos=k,this.awaitIdentPos=i,H=this.parseSubscriptAsyncArrow(X,G,_,w)}else{this.checkExpressionErrors(K8,!0),this.yieldPos=s||this.yieldPos,this.awaitPos=k||this.awaitPos,this.awaitIdentPos=i||this.awaitIdentPos;let l=this.startNodeAt(X,G);if(l.callee=H,l.arguments=_,C)l.optional=N;H=this.finishNode(l,"CallExpression")}this.maybeInArrowParameters=m}else if(this.type===K.backQuote){if(N||S)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");let m=this.startNodeAt(X,G);m.tag=H,m.quasi=this.parseTemplate({isTagged:!0}),H=this.finishNode(m,"TaggedTemplateExpression")}return H}parseGetterSetter(H){H.kind=H.key.name,this.parsePropertyName(H);let X=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(H.value=this.parseMethod(!1),X)H.value.typeParameters=X;let G=H.kind==="get"?0:1,U=H.value.params[0];if(G=U&&this.isThisParam(U)?G+1:G,H.value.params.length!==G){let L=H.value.start;if(H.kind==="get")this.raiseRecoverable(L,"getter should have no params");else this.raiseRecoverable(L,"setter should have exactly one param")}else if(H.kind==="set"&&H.value.params[0].type==="RestElement")this.raiseRecoverable(H.value.params[0].start,"Setter cannot use rest params")}parsePropertyValue(H,X,G,U,B,L,w,S){if(this.tsMatchLeftRelational()){if(X)this.unexpected();H.kind="init",H.method=!0;let I=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(H.value=this.parseMethod(G,U),I)H.value.typeParameters=I;return}return super.parsePropertyValue(H,X,G,U,B,L,w,S)}parseProperty(H,X){if(!H){let G=[];if(this.match(F.at))while(this.match(F.at))G.push(this.parseDecorator());let U=super.parseProperty(H,X);if(U.type==="SpreadElement"){if(G.length)this.raise(U.start,T0.SpreadElementDecorator)}if(G.length)U.decorators=G,G=[];return U}return super.parseProperty(H,X)}parseCatchClauseParam(){let H=this.parseBindingAtom(),X=H.type==="Identifier";this.enterScope(X?t.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(H,X?t.BIND_SIMPLE_CATCH:t.BIND_LEXICAL);let G=this.tsTryParseTypeAnnotation();if(G)H.typeAnnotation=G,this.resetEndLocation(H);return this.expect(K.parenR),H}parseClass(H,X){let G=this.inAbstractClass;this.inAbstractClass=!!H.abstract;try{this.next(),this.takeDecorators(H);let U=this.strict;this.strict=!0,this.parseClassId(H,X),this.parseClassSuper(H);let B=this.enterClassBody(),L=this.startNode(),w=!1;L.body=[];let S=[];this.expect(K.braceL);while(this.type!==K.braceR){if(this.match(F.at)){S.push(this.parseDecorator());continue}let I=this.parseClassElement(H.superClass!==null);if(S.length)I.decorators=S,this.resetStartLocationFromNode(I,S[0]),S=[];if(I){if(L.body.push(I),I.type==="MethodDefinition"&&I.kind==="constructor"&&I.value.type==="FunctionExpression"){if(w)this.raiseRecoverable(I.start,"Duplicate constructor in the same class");if(w=!0,I.decorators&&I.decorators.length>0)this.raise(I.start,T0.DecoratorConstructor)}else if(I.key&&I.key.type==="PrivateIdentifier"&&I.value?.type!=="TSDeclareMethod"&&kQ(B,I))this.raiseRecoverable(I.key.start,`Identifier '#${I.key.name}' has already been declared`)}}if(this.strict=U,this.next(),S.length)this.raise(this.start,T0.TrailingDecorator);return H.body=this.finishNode(L,"ClassBody"),this.exitClassBody(),this.finishNode(H,X?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=G}}parseClassFunctionParams(){let H=this.tsTryParseTypeParameters(),X=this.parseBindingList(K.parenR,!1,this.ecmaVersion>=8,!0);if(H)X.typeParameters=H;return X}parseMethod(H,X,G,U,B){let L=this.startNode(),w=this.yieldPos,S=this.awaitPos,I=this.awaitIdentPos;if(this.initFunction(L),this.ecmaVersion>=6)L.generator=H;if(this.ecmaVersion>=8)L.async=!!X;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(n9(X,L.generator)|t.SCOPE_SUPER|(G?t.SCOPE_DIRECT_SUPER:0)),this.expect(K.parenL),L.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(L,!1,!0,!1,{isClassMethod:U}),this.yieldPos=w,this.awaitPos=S,this.awaitIdentPos=I,B&&B.abstract){if(!!L.body){let{key:N}=B;this.raise(B.start,E.AbstractMethodHasImplementation({methodName:N.type==="Identifier"&&!B.computed?N.name:`[${this.input.slice(N.start,N.end)}]`}))}}return this.finishNode(L,"FunctionExpression")}static parse(H,X){if(X.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else X.locations=!0;let G=new this(X,H);if(Q)G.isAmbientContext=!0;return G.parse()}static parseExpressionAt(H,X,G){if(G.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else G.locations=!0;let U=new this(G,H,X);if(Q)U.isAmbientContext=!0;return U.nextToken(),U.parseExpression()}parseImportSpecifier(){if(this.ts_isContextual(F.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(H){let X=this.ts_isContextual(F.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(H,U.exported,U.exported.start),U}else{let U=super.parseExportSpecifier(H);return U.exportKind="value",U}}parseTypeOnlyImportExportSpecifier(H,X,G){let U=X?"imported":"local",B=X?"local":"exported",L=H[U],w,S=!1,I=!0,C=L.start;if(this.isContextual("as")){let u=this.parseIdent();if(this.isContextual("as")){let m=this.parseIdent();if(n(this.type))S=!0,L=u,w=X?this.parseIdent():this.parseModuleExportName(),I=!1;else w=m,I=!1}else if(n(this.type))I=!1,w=X?this.parseIdent():this.parseModuleExportName();else S=!0,L=u}else if(n(this.type))if(S=!0,X){if(L=super.parseIdent(!0),!this.isContextual("as"))this.checkUnreserved(L)}else L=this.parseModuleExportName();if(S&&G)this.raise(C,X?E.TypeModifierIsUsedInTypeImports:E.TypeModifierIsUsedInTypeExports);H[U]=L,H[B]=w;let N=X?"importKind":"exportKind";if(H[N]=S?"type":"value",I&&this.eatContextual("as"))H[B]=X?this.parseIdent():this.parseModuleExportName();if(!H[B])H[B]=this.copyNode(H[U]);if(X)this.checkLValSimple(H[B],t.BIND_LEXICAL)}raiseCommonCheck(H,X,G){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(H,X)}return G?super.raiseRecoverable(H,X):super.raise(H,X)}raiseRecoverable(H,X){return this.raiseCommonCheck(H,X,!0)}raise(H,X){return this.raiseCommonCheck(H,X,!0)}updateContext(H){let{type:X}=this;if(X==K.braceL){var G=this.curContext();if(G==P.tc_oTag)this.context.push(M.b_expr);else if(G==P.tc_expr)this.context.push(M.b_tmpl);else super.updateContext(H);this.exprAllowed=!0}else if(X===K.slash&&H===F.jsxTagStart)this.context.length-=2,this.context.push(P.tc_cTag),this.exprAllowed=!1;else return super.updateContext(H)}jsx_parseOpeningElementAt(H,X){let G=this.startNodeAt(H,X),U=this.jsx_parseElementName();if(U)G.name=U;if(this.match(K.relational)||this.match(K.bitShift)){let B=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(B)G.typeArguments=B}G.attributes=[];while(this.type!==K.slash&&this.type!==F.jsxTagEnd)G.attributes.push(this.jsx_parseAttribute());return G.selfClosing=this.eat(K.slash),this.expect(F.jsxTagEnd),this.finishNode(G,U?"JSXOpeningElement":"JSXOpeningFragment")}enterScope(H){if(H===u1)this.importsStack.push([]);super.enterScope(H);let X=super.currentScope();X.types=[],X.enums=[],X.constEnums=[],X.classes=[],X.exportOnlyBindings=[]}exitScope(){if(super.currentScope().flags===u1)this.importsStack.pop();super.exitScope()}hasImport(H,X){let G=this.importsStack.length;if(this.importsStack[G-1].indexOf(H)>-1)return!0;if(!X&&G>1){for(let U=0;U<G-1;U++)if(this.importsStack[U].indexOf(H)>-1)return!0}return!1}maybeExportDefined(H,X){if(this.inModule&&H.flags&t.SCOPE_TOP)delete this.undefinedExports[X]}declareName(H,X,G){if(X&t.BIND_FLAGS_TS_IMPORT){if(this.hasImport(H,!0))this.raise(G,`Identifier '${H}' has already been declared.`);this.importsStack[this.importsStack.length-1].push(H);return}let U=this.currentScope();if(X&t.BIND_FLAGS_TS_EXPORT_ONLY){this.maybeExportDefined(U,H),U.exportOnlyBindings.push(H);return}if(X===t.BIND_TS_TYPE||X===t.BIND_TS_INTERFACE){if(X===t.BIND_TS_TYPE&&U.types.includes(H))this.raise(G,`type '${H}' has already been declared.`);U.types.push(H)}else super.declareName(H,X,G);if(X&t.BIND_FLAGS_TS_ENUM)U.enums.push(H);if(X&t.BIND_FLAGS_TS_CONST_ENUM)U.constEnums.push(H);if(X&t.BIND_FLAGS_CLASS)U.classes.push(H)}checkLocalExport(H){let{name:X}=H;if(this.hasImport(X))return;let G=this.scopeStack.length;for(let U=G-1;U>=0;U--){let B=this.scopeStack[U];if(B.types.indexOf(X)>-1||B.exportOnlyBindings.indexOf(X)>-1)return}super.checkLocalExport(H)}}return U8}}class B5 extends Error{message="";#q;constructor(q,Q,Z){super(Q);this.stack="",this.#q=new T1(q,Q,Z),Object.assign(this,this.#q),this.name="CompileError"}toString(){return this.#q.toString()}toJSON(){return this.#q.toJSON()}}function f(q,Q,Z){let j=typeof q==="number"?q:q?.start,Y=typeof q==="number"?q:q?.end;throw new B5(Q,Z,j!==void 0?[j,Y??j]:void 0)}function F5(q){f(q,"css_empty_declaration",`Declaration cannot be empty
37
- https://svelte.dev/e/css_empty_declaration`)}function r9(q){f(q,"css_expected_identifier",`Expected a valid CSS identifier
38
- https://svelte.dev/e/css_expected_identifier`)}function M5(q){f(q,"css_selector_invalid",`Invalid selector
39
- https://svelte.dev/e/css_selector_invalid`)}function $5(q){f(q,"attribute_duplicate",`Attributes need to be unique
40
- https://svelte.dev/e/attribute_duplicate`)}function L5(q){f(q,"attribute_empty_shorthand",`Attribute shorthand cannot be empty
41
- https://svelte.dev/e/attribute_empty_shorthand`)}function t9(q,Q){f(q,"block_duplicate_clause",`${Q} cannot appear more than once within a block
42
- https://svelte.dev/e/block_duplicate_clause`)}function w5(q){f(q,"block_invalid_continuation_placement",`{:...} block is invalid at this position (did you forget to close the preceding element or block?)
43
- https://svelte.dev/e/block_invalid_continuation_placement`)}function A5(q){f(q,"block_invalid_elseif",`'elseif' should be 'else if'
44
- https://svelte.dev/e/block_invalid_elseif`)}function C5(q,Q,Z){f(q,"block_invalid_placement",`{#${Q} ...} block cannot be ${Z}
45
- https://svelte.dev/e/block_invalid_placement`)}function I5(q){f(q,"block_unclosed",`Block was left open
46
- https://svelte.dev/e/block_unclosed`)}function e9(q){f(q,"block_unexpected_close",`Unexpected block closing tag
47
- https://svelte.dev/e/block_unexpected_close`)}function P5(q){f(q,"const_tag_invalid_expression",`{@const ...} must consist of a single variable declaration
48
- https://svelte.dev/e/const_tag_invalid_expression`)}function S5(q){f(q,"debug_tag_invalid_arguments",`{@debug ...} arguments must be identifiers, not arbitrary expressions
49
- https://svelte.dev/e/debug_tag_invalid_arguments`)}function v0(q){f(q,"declaration_tag_invalid_type","Declaration tags must be `let` or `const` declarations\nhttps://svelte.dev/e/declaration_tag_invalid_type")}function D5(q){f(q,"directive_invalid_value",`Directive value must be a JavaScript expression enclosed in curly braces
50
- https://svelte.dev/e/directive_invalid_value`)}function N5(q,Q){f(q,"directive_missing_name",`\`${Q}\` name cannot be empty
51
- https://svelte.dev/e/directive_missing_name`)}function b5(q,Q){f(q,"element_invalid_closing_tag",`\`</${Q}>\` attempted to close an element that was not open
52
- https://svelte.dev/e/element_invalid_closing_tag`)}function k5(q,Q,Z){f(q,"element_invalid_closing_tag_autoclosed",`\`</${Q}>\` attempted to close element that was already automatically closed by \`<${Z}>\` (cannot nest \`<${Z}>\` inside \`<${Q}>\`)
53
- https://svelte.dev/e/element_invalid_closing_tag_autoclosed`)}function h0(q,Q){f(q,"element_unclosed",`\`<${Q}>\` was left open
54
- https://svelte.dev/e/element_unclosed`)}function q6(q){f(q,"expected_attribute_value",`Expected attribute value
55
- https://svelte.dev/e/expected_attribute_value`)}function T5(q){f(q,"expected_block_type",`Expected 'if', 'each', 'await', 'key' or 'snippet'
56
- https://svelte.dev/e/expected_block_type`)}function Q6(q){f(q,"expected_identifier",`Expected an identifier
57
- https://svelte.dev/e/expected_identifier`)}function E5(q){f(q,"expected_pattern",`Expected identifier or destructure pattern
58
- https://svelte.dev/e/expected_pattern`)}function v5(q){f(q,"expected_tag",`Expected 'html', 'render', 'attach', 'const', or 'debug'
36
+ `;else $=String.fromCharCode(M);if(this.options.locations)++this.curLine,this.lineStart=this.pos;return $}jsx_readString(z){let M="",$=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");let F=this.input.charCodeAt(this.pos);if(F===z)break;if(F===38)M+=this.input.slice($,this.pos),M+=this.jsx_readEntity(),$=this.pos;else if(K(F))M+=this.input.slice($,this.pos),M+=this.jsx_readNewLine(!1),$=this.pos;else++this.pos}return M+=this.input.slice($,this.pos++),this.finishToken(Y.string,M)}jsx_readEntity(){let z="",M=0,$,F=this.input[this.pos];if(F!=="&")this.raise(this.pos,"Entity must start with an ampersand");let P=++this.pos;while(this.pos<this.input.length&&M++<10){if(F=this.input[this.pos++],F===";"){if(z[0]==="#"){if(z[1]==="x"){if(z=z.substr(2),gQ.test(z))$=String.fromCharCode(parseInt(z,16))}else if(z=z.substr(1),_Q.test(z))$=String.fromCharCode(parseInt(z,10))}else $=yQ[z];break}z+=F}if(!$)return this.pos=P,"&";return $}jsx_readWord(){let z,M=this.pos;do z=this.input.charCodeAt(++this.pos);while(W(z)||z===45);return this.finishToken(J.jsxName,this.input.slice(M,this.pos))}jsx_parseIdentifier(){let z=this.startNode();if(this.type===J.jsxName)z.name=this.value;else if(this.type.keyword)z.name=this.type.keyword;else this.unexpected();return this.next(),this.finishNode(z,"JSXIdentifier")}jsx_parseNamespacedName(){let z=this.start,M=this.startLoc,$=this.jsx_parseIdentifier();if(!V.allowNamespaces||!this.eat(Y.colon))return $;var F=this.startNodeAt(z,M);return F.namespace=$,F.name=this.jsx_parseIdentifier(),this.finishNode(F,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===J.jsxTagEnd)return"";let z=this.start,M=this.startLoc,$=this.jsx_parseNamespacedName();if(this.type===Y.dot&&$.type==="JSXNamespacedName"&&!V.allowNamespacedObjects)this.unexpected();while(this.eat(Y.dot)){let F=this.startNodeAt(z,M);F.object=$,F.property=this.jsx_parseIdentifier(),$=this.finishNode(F,"JSXMemberExpression")}return $}jsx_parseAttributeValue(){switch(this.type){case Y.braceL:let z=this.jsx_parseExpressionContainer();if(z.expression.type==="JSXEmptyExpression")this.raise(z.start,"JSX attributes must only be assigned a non-empty expression");return z;case J.jsxTagStart:case Y.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let z=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(z,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let z=this.startNode();return this.next(),z.expression=this.type===Y.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(Y.braceR),this.finishNode(z,"JSXExpressionContainer")}jsx_parseAttribute(){let z=this.startNode();if(this.eat(Y.braceL))return this.expect(Y.ellipsis),z.argument=this.parseMaybeAssign(),this.expect(Y.braceR),this.finishNode(z,"JSXSpreadAttribute");return z.name=this.jsx_parseNamespacedName(),z.value=this.eat(Y.eq)?this.jsx_parseAttributeValue():null,this.finishNode(z,"JSXAttribute")}jsx_parseOpeningElementAt(z,M){let $=this.startNodeAt(z,M);$.attributes=[];let F=this.jsx_parseElementName();if(F)$.name=F;while(this.type!==Y.slash&&this.type!==J.jsxTagEnd)$.attributes.push(this.jsx_parseAttribute());return $.selfClosing=this.eat(Y.slash),this.expect(J.jsxTagEnd),this.finishNode($,F?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(z,M){let $=this.startNodeAt(z,M),F=this.jsx_parseElementName();if(F)$.name=F;return this.expect(J.jsxTagEnd),this.finishNode($,F?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(z,M){let $=this.startNodeAt(z,M),F=[],P=this.jsx_parseOpeningElementAt(z,M),D=null;if(!P.selfClosing){q:for(;;)switch(this.type){case J.jsxTagStart:if(z=this.start,M=this.startLoc,this.next(),this.eat(Y.slash)){D=this.jsx_parseClosingElementAt(z,M);break q}F.push(this.jsx_parseElementAt(z,M));break;case J.jsxText:F.push(this.parseExprAtom());break;case Y.braceL:F.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}if(c1(D.name)!==c1(P.name))this.raise(D.start,"Expected corresponding JSX closing tag for <"+c1(P.name)+">")}let C=P.name?"Element":"Fragment";if($["opening"+C]=P,$["closing"+C]=D,$.children=F,this.type===Y.relational&&this.value==="<")this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag");return this.finishNode($,"JSX"+C)}jsx_parseText(){let z=this.parseLiteral(this.value);return z.type="JSXText",z}jsx_parseElement(){let z=this.start,M=this.startLoc;return this.next(),this.jsx_parseElementAt(z,M)}}}function uQ(q,Q,Z){let{tokTypes:j}=Q,{tokTypes:Y}=Z;return class extends q{parseMaybeImportAttributes(K){if(this.type===Y._with||this.type===j.assert){this.next();let W=this.parseImportAttributes();if(W)K.attributes=W}}parseImportAttributes(){this.expect(Y.braceL);let K=this.parseWithEntries();return this.expect(Y.braceR),K}parseWithEntries(){let K=[],W=new Set;do{if(this.type===Y.braceR)break;let V=this.startNode(),R;if(this.type===Y.string)R=this.parseLiteral(this.value);else R=this.parseIdent(!0);if(this.next(),V.key=R,W.has(V.key.name))this.raise(this.pos,"Duplicated key in attributes");if(W.add(V.key.name),this.type!==Y.string)this.raise(this.pos,"Only string is supported as an attribute value");V.value=this.parseLiteral(this.value),K.push(this.finishNode(V,"ImportAttribute"))}while(this.eat(Y.comma));return K}}}var a9=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function J5(q){if(!q)throw Error("Assert fail")}function mQ(q){return q==="accessor"}function lQ(q){return q==="in"||q==="out"}var E0=1,X5=2,cQ=4,t={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 r9(q,Q){return t.SCOPE_FUNCTION|(q?t.SCOPE_ASYNC:0)|(Q?t.SCOPE_GENERATOR:0)}function iQ(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 B5(q.object)}function B5(q){if(q.type==="Identifier")return!0;if(q.type!=="MemberExpression")return!1;if(q.computed)return!1;return B5(q.object)}function W5(q){return q==="private"||q==="public"||q==="protected"}function dQ(q){return Boolean(q.startsExpr)}function pQ(q){if(q==null)throw Error(`Unexpected ${q} value.`);return q}function oQ(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 F5(q){let{dts:Q=!1}=q||{},Z=!!q?.jsx;return function(j){let Y=j.acorn||T0,J=SQ(Y),K=Y.tokTypes,W=Y.keywordTypes,V=Y.isIdentifierStart,R=Y.lineBreak,z=Y.isNewLine,M=Y.tokContexts,$=Y.isIdentifierChar,{tokTypes:F,tokContexts:P,keywordsRegExp:D,tokenIsLiteralPropertyName:C,tokenIsTemplate:b,tokenIsTSDeclarationStart:g,tokenIsIdentifier:h,tokenIsKeywordOrIdentifier:o,tokenIsTSTypeOperator:y}=J;function q8(H,X,G=H.length){for(let U=X;U<G;U++){let B=H.charCodeAt(U);if(z(B))return U<G-1&&B===13&&H.charCodeAt(U+1)===10?U+2:U+1}return-1}if(j=fQ(j,J,Y),q?.jsx)j=xQ(Y,J,j,typeof q.jsx==="boolean"?{}:q.jsx);j=uQ(j,J,Y);class U8 extends j{constructor(H,X,G){super(H,X,G);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:v.InvalidModifierOnTypeParameterPositions})},this.ecmaVersion=this.options.ecmaVersion}static get acornTypeScript(){return J}get acornTypeScript(){return J}getTokenFromCodeInType(H){if(H===62)return this.finishOp(K.relational,1);if(H===60)return this.finishOp(K.relational,1);return super.getTokenFromCode(H)}readToken(H){if(!this.inType){let X=this.curContext();if(X===P.tc_expr)return this.jsx_readToken();if(X===P.tc_oTag||X===P.tc_cTag){if(V(H))return this.jsx_readWord();if(H==62)return++this.pos,this.finishToken(F.jsxTagEnd);if((H===34||H===39)&&X==P.tc_oTag)return this.jsx_readString(H)}if(H===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)if(++this.pos,q?.jsx)return this.finishToken(F.jsxTagStart);else return this.finishToken(K.relational,"<")}return super.readToken(H)}getTokenFromCode(H){if(this.inType)return this.getTokenFromCodeInType(H);if(H===64)return++this.pos,this.finishToken(F.at);return super.getTokenFromCode(H)}isAbstractClass(){return this.ts_isContextual(F.abstract)&&this.lookahead().type===K._class}finishNode(H,X){if(H.type!==""&&H.end!==0)return H;return super.finishNode(H,X)}tryParse(H,X=this.cloneCurLookaheadState()){let G={node:null};try{return{node:H((B=null)=>{throw G.node=B,G}),error:null,thrown:!1,aborted:!1,failState:null}}catch(U){let B=this.getCurLookaheadState();if(this.setLookaheadState(X),U instanceof SyntaxError)return{node:null,error:U,thrown:!0,aborted:!1,failState:B};if(U===G)return{node:G.node,error:null,thrown:!1,aborted:!0,failState:B};throw U}}setOptionalParametersError(H,X){H.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:H}=this;if(H===K.bitShift)return this.pos-=2,this.finishOp(K.relational,1),K.relational;return H}resetEndLocation(H,X=this.lastTokEnd,G=this.lastTokEndLoc){if(H.end=X,H.loc.end=G,this.options.ranges)H.range[1]=X}startNodeAtNode(H){return super.startNodeAt(H.start,H.loc.start)}nextTokenStart(){return this.nextTokenStartSince(this.pos)}tsHasSomeModifiers(H,X){return X.some((G)=>{if(W5(G))return H.accessibility===G;return!!H[G]})}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&this.lookaheadCharCode()===123}tsCheckForInvalidTypeCasts(H){H.forEach((X)=>{if(X?.type==="TSTypeCastExpression")this.raise(X.typeAnnotation.start,v.UnexpectedTypeAnnotation)})}atPossibleAsyncArrow(H){return H.type==="Identifier"&&H.name==="async"&&this.lastTokEnd===H.end&&!this.canInsertSemicolon()&&H.end-H.start===5&&H.start===this.potentialArrowAt}tsIsIdentifier(){return h(this.type)}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(K.colon)?this.tsParseTypeOrTypePredicateAnnotation(K.colon):void 0}tsTryParseGenericAsyncArrowFunction(H,X,G){if(!this.tsMatchLeftRelational())return;let U=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let B=this.tsTryParseAndCatch(()=>{let L=this.startNodeAt(H,X);return L.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(L),L.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(K.arrow),L});if(this.maybeInArrowParameters=U,!B)return;return super.parseArrowExpression(B,null,!0,G)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==K.relational)return;return this.tsParseTypeArguments()}tsInNoContext(H){let X=this.context;this.context=[X[0]];try{return H()}finally{this.context=X}}tsTryParseTypeAnnotation(){return this.match(K.colon)?this.tsParseTypeAnnotation():void 0}isUnparsedContextual(H,X){let G=H+X.length;if(this.input.slice(H,G)===X){let U=this.input.charCodeAt(G);return!($(U)||(U&64512)===55296)}return!1}isAbstractConstructorSignature(){return this.ts_isContextual(F.abstract)&&this.lookahead().type===K._new}nextTokenStartSince(H){return a9.lastIndex=H,a9.test(this.input)?a9.lastIndex:H}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}compareLookaheadState(H,X){for(let G of Object.keys(H))if(H[G]!==X[G])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(H){this.pos=H.pos,this.value=H.value,this.endLoc=H.endLoc,this.lastTokEnd=H.lastTokEnd,this.lastTokStart=H.lastTokStart,this.lastTokStartLoc=H.lastTokStartLoc,this.type=H.type,this.start=H.start,this.end=H.end,this.context=H.context,this.startLoc=H.startLoc,this.lastTokEndLoc=H.lastTokEndLoc,this.curLine=H.curLine,this.lineStart=H.lineStart,this.curPosition=H.curPosition,this.containsEsc=H.containsEsc}tsLookAhead(H){let X=this.getCurLookaheadState(),G=H();return this.setLookaheadState(X),G}lookahead(H){let X=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,H!==void 0)for(let U=0;U<H;U++)this.nextToken();else this.nextToken();this.isLookahead=!1;let G=this.getCurLookaheadState();return this.setLookaheadState(X),G}readWord(){let H=this.readWord1(),X=K.name;if(this.keywords.test(H))X=W[H];else if(new RegExp(D).test(H))X=F[H];return this.finishToken(X,H)}skipBlockComment(){let H;if(!this.isLookahead)H=this.options.onComment&&this.curPosition();let X=this.pos,G=this.input.indexOf("*/",this.pos+=2);if(G===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=G+2,this.options.locations)for(let U,B=X;(U=q8(this.input,B,this.pos))>-1;)++this.curLine,B=this.lineStart=U;if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!0,this.input.slice(X+2,G),X,this.pos,H,this.curPosition())}skipLineComment(H){let X=this.pos,G;if(!this.isLookahead)G=this.options.onComment&&this.curPosition();let U=this.input.charCodeAt(this.pos+=H);while(this.pos<this.input.length&&!z(U))U=this.input.charCodeAt(++this.pos);if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!1,this.input.slice(X+H,this.pos),X,this.pos,G,this.curPosition())}finishToken(H,X){if(this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();let G=this.type;if(this.type=H,this.value=X,!this.isLookahead)this.updateContext(G)}resetStartLocation(H,X,G){if(H.start=X,H.loc.start=G,this.options.ranges)H.range[0]=X}isLineTerminator(){return this.eat(K.semi)||super.canInsertSemicolon()}hasFollowingLineBreak(){return H5.lastIndex=this.end,H5.test(this.input)}addExtra(H,X,G,U=!0){if(!H)return;let B=H.extra=H.extra||{};if(U)B[X]=G;else Object.defineProperty(B,X,{enumerable:U,value:G})}isLiteralPropertyName(){return C(this.type)}hasPrecedingLineBreak(){return R.test(this.input.slice(this.lastTokEnd,this.start))}createIdentifier(H,X){return H.name=X,this.finishNode(H,"Identifier")}resetStartLocationFromNode(H,X){this.resetStartLocation(H,X.start,X.loc.start)}isThisParam(H){return H.type==="Identifier"&&H.name==="this"}isLookaheadContextual(H){let X=this.nextTokenStart();return this.isUnparsedContextual(X,H)}ts_type_isContextual(H,X){return H===X&&!this.containsEsc}ts_isContextual(H){return this.type===H&&!this.containsEsc}ts_isContextualWithState(H,X){return H.type===X&&!H.containsEsc}isContextualWithState(H,X){return X.type===K.name&&X.value===H&&!X.containsEsc}tsIsStartOfMappedType(){if(this.next(),this.eat(K.plusMin))return this.ts_isContextual(F.readonly);if(this.ts_isContextual(F.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(H){let X=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return H()}finally{this.inDisallowConditionalTypesContext=X}}tsTryParseType(){return this.tsEatThenParseType(K.colon)}match(H){return this.type===H}matchJsx(H){return this.type===J.tokTypes[H]}ts_eatWithState(H,X,G){let U=G.type;if(H===U){for(let B=0;B<X;B++)this.next();return!0}else return!1}ts_eatContextualWithState(H,X,G){if(D.test(H)){if(this.ts_isContextualWithState(G,F[H])){for(let U=0;U<X;U++)this.next();return!0}return!1}else{if(!this.isContextualWithState(H,G))return!1;for(let U=0;U<X;U++)this.next();return!0}}canHaveLeadingDecorator(){return this.match(K._class)||this.isAbstractClass()}eatContextual(H){if(D.test(H)){if(this.ts_isContextual(F[H]))return this.next(),!0;return!1}else return super.eatContextual(H)}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookaheadCharCode()===40}tsParseExternalModuleReference(){let H=this.startNode();if(this.expectContextual("require"),this.expect(K.parenL),!this.match(K.string))this.unexpected();return H.expression=this.parseExprAtom(),this.expect(K.parenR),this.finishNode(H,"TSExternalModuleReference")}tsParseEntityName(H=!0){let X=this.parseIdent(H);while(this.eat(K.dot)){let G=this.startNodeAtNode(X);G.left=X,G.right=this.parseIdent(H),X=this.finishNode(G,"TSQualifiedName")}return X}tsParseEnumMember(){let H=this.startNode();if(H.id=this.match(K.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(K.eq))H.initializer=this.parseMaybeAssign();return this.finishNode(H,"TSEnumMember")}tsParseEnumDeclaration(H,X={}){if(X.const)H.const=!0;if(X.declare)H.declare=!0;return this.expectContextual("enum"),H.id=this.parseIdent(),this.checkLValSimple(H.id),this.expect(K.braceL),H.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(K.braceR),this.finishNode(H,"TSEnumDeclaration")}tsParseModuleBlock(){let H=this.startNode();this.enterScope(DQ),this.expect(K.braceL),H.body=[];while(this.type!==K.braceR){let X=this.parseStatement(null,!0);H.body.push(X)}return this.next(),super.exitScope(),this.finishNode(H,"TSModuleBlock")}tsParseAmbientExternalModuleDeclaration(H){if(this.ts_isContextual(F.global))H.global=!0,H.id=this.parseIdent();else if(this.match(K.string))H.id=this.parseLiteral(this.value);else this.unexpected();if(this.match(K.braceL))this.enterScope(m1),H.body=this.tsParseModuleBlock(),super.exitScope();else super.semicolon();return this.finishNode(H,"TSModuleDeclaration")}tsTryParseDeclare(H){if(this.isLineTerminator())return;let X=this.type,G;if(this.isContextual("let"))X=K._var,G="let";return this.tsInAmbientContext(()=>{if(X===K._function)return H.declare=!0,this.parseFunctionStatement(H,!1,!0);if(X===K._class)return H.declare=!0,this.parseClass(H,!0);if(X===F.enum)return this.tsParseEnumDeclaration(H,{declare:!0});if(X===F.global)return this.tsParseAmbientExternalModuleDeclaration(H);if(X===K._const||X===K._var){if(!this.match(K._const)||!this.isLookaheadContextual("enum"))return H.declare=!0,this.parseVarStatement(H,G||this.value,!0);return this.expect(K._const),this.tsParseEnumDeclaration(H,{const:!0,declare:!0})}if(X===F.interface){let U=this.tsParseInterfaceDeclaration(H,{declare:!0});if(U)return U}if(h(X))return this.tsParseDeclaration(H,this.value,!0)})}tsIsListTerminator(H){switch(H){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(H,X,G,U){let B=[],L=-1;for(;;){if(this.tsIsListTerminator(H))break;L=-1;let w=X();if(w==null)return;if(B.push(w),this.eat(K.comma)){L=this.lastTokStart;continue}if(this.tsIsListTerminator(H))break;if(G)this.expect(K.comma);return}if(U)U.value=L;return B}tsParseDelimitedList(H,X,G){return pQ(this.tsParseDelimitedListWorker(H,X,!0,G))}tsParseBracketedList(H,X,G,U,B){if(!U)if(G)this.expect(K.bracketL);else this.expect(K.relational);let L=this.tsParseDelimitedList(H,X,B);if(G)this.expect(K.bracketR);else this.expect(K.relational);return L}tsParseTypeParameterName(){return this.parseIdent().name}tsEatThenParseType(H){return!this.match(H)?void 0:this.tsNextThenParseType()}tsExpectThenParseType(H){return this.tsDoThenParseType(()=>this.expect(H))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(H){return this.tsInType(()=>{return H(),this.tsParseType()})}tsSkipParameterStart(){if(h(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(H){let X=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return H()}finally{this.inDisallowConditionalTypesContext=X}}tsParseBindingListForSignature(){return super.parseBindingList(K.parenR,!0,!0).map((H)=>{if(H.type!=="Identifier"&&H.type!=="RestElement"&&H.type!=="ObjectPattern"&&H.type!=="ArrayPattern")this.raise(H.start,v.UnsupportedSignatureParameterKind({type:H.type}));return H})}tsParseTypePredicateAsserts(){if(this.type!==F.asserts)return!1;let H=this.containsEsc;if(this.next(),!h(this.type)&&!this.match(K._this))return!1;if(H)this.raise(this.lastTokStart,"Escape sequence in keyword asserts");return!0}tsParseThisTypeNode(){let H=this.startNode();return this.next(),this.finishNode(H,"TSThisType")}tsParseTypeAnnotation(H=!0,X=this.startNode()){return this.tsInType(()=>{if(H)this.expect(K.colon);X.typeAnnotation=this.tsParseType()}),this.finishNode(X,"TSTypeAnnotation")}tsParseThisTypePredicate(H){this.next();let X=this.startNodeAtNode(H);return X.parameterName=H,X.typeAnnotation=this.tsParseTypeAnnotation(!1),X.asserts=!1,this.finishNode(X,"TSTypePredicate")}tsParseThisTypeOrThisTypePredicate(){let H=this.tsParseThisTypeNode();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(H);else return H}tsParseTypePredicatePrefix(){let H=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),H}tsParseTypeOrTypePredicateAnnotation(H){return this.tsInType(()=>{let X=this.startNode();this.expect(H);let G=this.startNode(),U=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(U&&this.match(K._this)){let w=this.tsParseThisTypeOrThisTypePredicate();if(w.type==="TSThisType")G.parameterName=w,G.asserts=!0,G.typeAnnotation=null,w=this.finishNode(G,"TSTypePredicate");else this.resetStartLocationFromNode(w,G),w.asserts=!0;return X.typeAnnotation=w,this.finishNode(X,"TSTypeAnnotation")}let B=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!B){if(!U)return this.tsParseTypeAnnotation(!1,X);return G.parameterName=this.parseIdent(),G.asserts=U,G.typeAnnotation=null,X.typeAnnotation=this.finishNode(G,"TSTypePredicate"),this.finishNode(X,"TSTypeAnnotation")}let L=this.tsParseTypeAnnotation(!1);return G.parameterName=B,G.typeAnnotation=L,G.asserts=U,X.typeAnnotation=this.finishNode(G,"TSTypePredicate"),this.finishNode(X,"TSTypeAnnotation")})}tsFillSignature(H,X){let G=H===K.arrow,U="parameters",B="typeAnnotation";if(X.typeParameters=this.tsTryParseTypeParameters(),this.expect(K.parenL),X.parameters=this.tsParseBindingListForSignature(),G)X.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(H);else if(this.match(H))X.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(H)}tsTryNextParseConstantContext(){if(this.lookahead().type!==K._const)return null;this.next();let H=this.tsParseTypeReference();if(H.typeParameters||H.typeArguments)this.raise(H.typeName.start,v.CannotFindName({name:"const"}));return H}tsParseFunctionOrConstructorType(H,X){let G=this.startNode();if(H==="TSConstructorType"){if(G.abstract=!!X,X)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(K.arrow,G)),this.finishNode(G,H)}tsParseUnionOrIntersectionType(H,X,G){let U=this.startNode(),B=this.eat(G),L=[];do L.push(X());while(this.eat(G));if(L.length===1&&!B)return L[0];return U.types=L,this.finishNode(U,H)}tsCheckTypeAnnotationForReadOnly(H){switch(H.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(H.start,v.UnexpectedReadonly)}}tsParseTypeOperator(){let H=this.startNode(),X=this.value;if(this.next(),H.operator=X,H.typeAnnotation=this.tsParseTypeOperatorOrHigher(),X==="readonly")this.tsCheckTypeAnnotationForReadOnly(H);return this.finishNode(H,"TSTypeOperator")}tsParseConstraintForInferType(){if(this.eat(K._extends)){let H=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.inDisallowConditionalTypesContext||!this.match(K.question))return H}}tsParseInferType(){let H=this.startNode();this.expectContextual("infer");let X=this.startNode();return X.name=this.tsParseTypeParameterName(),X.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),H.typeParameter=this.finishNode(X,"TSTypeParameter"),this.finishNode(H,"TSInferType")}tsParseLiteralTypeNode(){let H=this.startNode();return H.literal=(()=>{switch(this.type){case K.num:case K.string:case K._true:case K._false:return this.parseExprAtom();default:this.unexpected()}})(),this.finishNode(H,"TSLiteralType")}tsParseImportType(){let H=this.startNode();if(this.expect(K._import),this.expect(K.parenL),!this.match(K.string))this.raise(this.start,v.UnsupportedImportTypeArgument);if(H.argument=this.parseExprAtom(),this.expect(K.parenR),this.eat(K.dot))H.qualifier=this.tsParseEntityName();if(this.tsMatchLeftRelational())H.typeArguments=this.tsParseTypeArguments();return this.finishNode(H,"TSImportType")}tsParseTypeQuery(){let H=this.startNode();if(this.expect(K._typeof),this.match(K._import))H.exprName=this.tsParseImportType();else H.exprName=this.tsParseEntityName();if(!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())H.typeArguments=this.tsParseTypeArguments();return this.finishNode(H,"TSTypeQuery")}tsParseMappedTypeParameter(){let H=this.startNode();return H.name=this.tsParseTypeParameterName(),H.constraint=this.tsExpectThenParseType(K._in),this.finishNode(H,"TSTypeParameter")}tsParseMappedType(){let H=this.startNode();if(this.expect(K.braceL),this.match(K.plusMin))H.readonly=this.value,this.next(),this.expectContextual("readonly");else if(this.eatContextual("readonly"))H.readonly=!0;if(this.expect(K.bracketL),H.typeParameter=this.tsParseMappedTypeParameter(),H.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(K.bracketR),this.match(K.plusMin))H.optional=this.value,this.next(),this.expect(K.question);else if(this.eat(K.question))H.optional=!0;return H.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(K.braceR),this.finishNode(H,"TSMappedType")}tsParseTypeLiteral(){let H=this.startNode();return H.members=this.tsParseObjectTypeMembers(),this.finishNode(H,"TSTypeLiteral")}tsParseTupleElementType(){let H=this.startLoc,X=this.start,G=this.eat(K.ellipsis),U=this.tsParseType(),B=this.eat(K.question);if(this.eat(K.colon)){let w=this.startNodeAtNode(U);if(w.optional=B,U.type==="TSTypeReference"&&!U.typeArguments&&U.typeName.type==="Identifier")w.label=U.typeName;else this.raise(U.start,v.InvalidTupleMemberLabel),w.label=U;w.elementType=this.tsParseType(),U=this.finishNode(w,"TSNamedTupleMember")}else if(B){let w=this.startNodeAtNode(U);w.typeAnnotation=U,U=this.finishNode(w,"TSOptionalType")}if(G){let w=this.startNodeAt(X,H);w.typeAnnotation=U,U=this.finishNode(w,"TSRestType")}return U}tsParseTupleType(){let H=this.startNode();H.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let X=!1;return H.elementTypes.forEach((G)=>{let{type:U}=G;if(X&&U!=="TSRestType"&&U!=="TSOptionalType"&&!(U==="TSNamedTupleMember"&&G.optional))this.raise(G.start,v.OptionalTypeBeforeRequired);if(X||=U==="TSNamedTupleMember"&&G.optional||U==="TSOptionalType",U==="TSRestType")G=G.typeAnnotation}),this.finishNode(H,"TSTupleType")}tsParseTemplateLiteralType(){let H=this.startNode();return H.literal=this.parseTemplate({isTagged:!1}),this.finishNode(H,"TSLiteralType")}tsParseTypeReference(){let H=this.startNode();if(H.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())H.typeArguments=this.tsParseTypeArguments();return this.finishNode(H,"TSTypeReference")}tsMatchLeftRelational(){return this.match(K.relational)&&this.value==="<"}tsMatchRightRelational(){return this.match(K.relational)&&this.value===">"}tsParseParenthesizedType(){let H=this.startNode();return this.expect(K.parenL),H.typeAnnotation=this.tsParseType(),this.expect(K.parenR),this.finishNode(H,"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 H=this.startNode();if(this.lookahead().type!==K.num)this.unexpected();return H.literal=this.parseMaybeUnary(),this.finishNode(H,"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:H}=this;if(h(H)||H===K._void||H===K._null){let X=H===K._void?"TSVoidKeyword":H===K._null?"TSNullKeyword":oQ(this.value);if(X!==void 0&&this.lookaheadCharCode()!==46){let G=this.startNode();return this.next(),this.finishNode(G,X)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let H=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(K.bracketL))if(this.match(K.bracketR)){let X=this.startNodeAtNode(H);X.elementType=H,this.expect(K.bracketR),H=this.finishNode(X,"TSArrayType")}else{let X=this.startNodeAtNode(H);X.objectType=H,X.indexType=this.tsParseType(),this.expect(K.bracketR),H=this.finishNode(X,"TSIndexedAccessType")}return H}tsParseTypeOperatorOrHigher(){return y(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(){J5(this.inType);let H=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(K._extends))return H;let X=this.startNodeAtNode(H);return X.checkType=H,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(),h(this.type))return this.next(),this.match(K.colon);return!1}tsInType(H){let X=this.inType;this.inType=!0;try{return H()}finally{this.inType=X}}tsTryParseIndexSignature(H){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),H.parameters=[X];let G=this.tsTryParseTypeAnnotation();if(G)H.typeAnnotation=G;return this.tsParseTypeMemberSemicolon(),this.finishNode(H,"TSIndexSignature")}tsParseNoneModifiers(H){this.tsParseModifiers({modified:H,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:v.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(H=this.tsParseNoneModifiers.bind(this)){let X=this.startNode();return H(X),X.name=this.tsParseTypeParameterName(),X.constraint=this.tsEatThenParseType(K._extends),X.default=this.tsEatThenParseType(K.eq),this.finishNode(X,"TSTypeParameter")}tsParseTypeParameters(H){let X=this.startNode();if(this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart"))this.next();else this.unexpected();let G={value:-1};if(X.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,H),!1,!0,G),X.params.length===0)this.raise(this.start,v.EmptyTypeParameters);if(G.value!==-1)this.addExtra(X,"trailingComma",G.value);return this.finishNode(X,"TSTypeParameterDeclaration")}tsTryParseTypeParameters(H){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(H)}tsTryParse(H){let X=this.getCurLookaheadState(),G=H();if(G!==void 0&&G!==!1)return G;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(H,X){let G=this.value;if(H.indexOf(G)!==-1&&!this.containsEsc){if(X&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return G}return}tsParseModifiersByMap({modified:H,map:X}){for(let G of Object.keys(X))H[G]=X[G]}tsParseModifiers({modified:H,allowedModifiers:X,disallowedModifiers:G,stopOnStartOfClassStaticBlock:U,errorTemplate:B=v.InvalidModifierOnTypeMember}){let L={},w=(I,A,N,u)=>{if(A===N&&H[u])this.raise(I.column,v.InvalidModifiersOrder({orderedModifiers:[N,u]}))},S=(I,A,N,u)=>{if(H[N]&&A===u||H[u]&&A===N)this.raise(I.column,v.IncompatibleModifiers({modifiers:[N,u]}))};for(;;){let I=this.startLoc,A=this.tsParseModifier(X.concat(G??[]),U);if(!A)break;if(W5(A))if(H.accessibility)this.raise(this.start,v.DuplicateAccessibilityModifier());else w(I,A,A,"override"),w(I,A,A,"static"),w(I,A,A,"readonly"),w(I,A,A,"accessor"),L.accessibility=A,H.accessibility=A;else if(lQ(A))if(H[A])this.raise(this.start,v.DuplicateModifier({modifier:A}));else w(I,A,"in","out"),L[A]=A,H[A]=!0;else if(mQ(A))if(H[A])this.raise(this.start,v.DuplicateModifier({modifier:A}));else S(I,A,"accessor","readonly"),S(I,A,"accessor","static"),S(I,A,"accessor","override"),L[A]=A,H[A]=!0;else if(A==="const")if(H[A])this.raise(this.start,v.DuplicateModifier({modifier:A}));else L[A]=A,H[A]=!0;else if(Object.hasOwnProperty.call(H,A))this.raise(this.start,v.DuplicateModifier({modifier:A}));else w(I,A,"static","readonly"),w(I,A,"static","override"),w(I,A,"override","readonly"),w(I,A,"abstract","override"),S(I,A,"declare","override"),S(I,A,"static","abstract"),L[A]=A,H[A]=!0;if(G?.includes(A))this.raise(this.start,B)}return L}tsParseInOutModifiers(H){this.tsParseModifiers({modified:H,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:v.InvalidModifierOnTypeParameter})}parseMaybeUnary(H,X,G,U){if(!q?.jsx&&this.tsMatchLeftRelational())return this.tsParseTypeAssertion();else return super.parseMaybeUnary(H,X,G,U)}tsParseTypeAssertion(){if(Z)this.raise(this.start,v.ReservedTypeAssertion);let H=this.tryParse(()=>{let X=this.startNode(),G=this.tsTryNextParseConstantContext();return X.typeAnnotation=G||this.tsNextThenParseType(),this.expect(K.relational),X.expression=this.parseMaybeUnary(),this.finishNode(X,"TSTypeAssertion")});if(H.error)return this.tsParseTypeParameters(this.tsParseConstModifier);else return H.node}tsParseTypeArguments(){let H=this.startNode();if(H.params=this.tsInType(()=>this.tsInNoContext(()=>{return this.expect(K.relational),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),H.params.length===0)this.raise(this.start,v.EmptyTypeArguments);return this.exprAllowed=!1,this.expect(K.relational),this.finishNode(H,"TSTypeParameterInstantiation")}tsParseHeritageClause(H){let X=this.start,G=this.tsParseDelimitedList("HeritageClauseElement",()=>{let U=this.startNode();if(U.expression=this.tsParseEntityName(),this.tsMatchLeftRelational())U.typeParameters=this.tsParseTypeArguments();return this.finishNode(U,"TSExpressionWithTypeArguments")});if(!G.length)this.raise(X,v.EmptyHeritageClauseType({token:H}));return G}tsParseTypeMemberSemicolon(){if(!this.eat(K.comma)&&!this.isLineTerminator())this.expect(K.semi)}tsTryParseAndCatch(H){let X=this.tryParse((G)=>H()||G());if(X.aborted||!X.node)return;if(X.error)this.setLookaheadState(X.failState);return X.node}tsParseSignatureMember(H,X){return this.tsFillSignature(K.colon,X),this.tsParseTypeMemberSemicolon(),this.finishNode(X,H)}tsParsePropertyOrMethodSignature(H,X){if(this.eat(K.question))H.optional=!0;let G=H;if(this.match(K.parenL)||this.tsMatchLeftRelational()){if(X)this.raise(H.start,v.ReadonlyForMethodSignature);let U=G;if(U.kind&&this.tsMatchLeftRelational())this.raise(this.start,v.AccesorCannotHaveTypeParameters);this.tsFillSignature(K.colon,U),this.tsParseTypeMemberSemicolon();let B="parameters",L="typeAnnotation";if(U.kind==="get"){if(U[B].length>0){if(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(U[B][0]))this.raise(this.start,v.AccesorCannotDeclareThisParameter)}}else if(U.kind==="set"){if(U[B].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{let w=U[B][0];if(this.isThisParam(w))this.raise(this.start,v.AccesorCannotDeclareThisParameter);if(w.type==="Identifier"&&w.optional)this.raise(this.start,v.SetAccesorCannotHaveOptionalParameter);if(w.type==="RestElement")this.raise(this.start,v.SetAccesorCannotHaveRestParameter)}if(U[L])this.raise(U[L].start,v.SetAccesorCannotHaveReturnType)}else U.kind="method";return this.finishNode(U,"TSMethodSignature")}else{let U=G;if(X)U.readonly=!0;let B=this.tsTryParseTypeAnnotation();if(B)U.typeAnnotation=B;return this.tsParseTypeMemberSemicolon(),this.finishNode(U,"TSPropertySignature")}}tsParseTypeMember(){let H=this.startNode();if(this.match(K.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",H);if(this.match(K._new)){let G=this.startNode();if(this.next(),this.match(K.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSConstructSignatureDeclaration",H);else return H.key=this.createIdentifier(G,"new"),this.tsParsePropertyOrMethodSignature(H,!1)}this.tsParseModifiers({modified:H,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]});let X=this.tsTryParseIndexSignature(H);if(X)return X;if(this.parsePropertyName(H),!H.computed&&H.key.type==="Identifier"&&(H.key.name==="get"||H.key.name==="set")&&this.tsTokenCanFollowModifier())H.kind=H.key.name,this.parsePropertyName(H);return this.tsParsePropertyOrMethodSignature(H,!!H.readonly)}tsParseList(H,X){let G=[];while(!this.tsIsListTerminator(H))G.push(X());return G}tsParseObjectTypeMembers(){this.expect(K.braceL);let H=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(K.braceR),H}tsParseInterfaceDeclaration(H,X={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual("interface"),X.declare)H.declare=!0;if(h(this.type))H.id=this.parseIdent(),this.checkLValSimple(H.id,t.BIND_TS_INTERFACE);else H.id=null,this.raise(this.start,v.MissingInterfaceName);if(H.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(K._extends))H.extends=this.tsParseHeritageClause("extends");let G=this.startNode();return G.body=this.tsParseInterfaceBody(),H.body=this.finishNode(G,"TSInterfaceBody"),this.finishNode(H,"TSInterfaceDeclaration")}tsParseInterfaceBody(){this.expect(K.braceL);let H=this.inType;this.inType=!0;let X=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.inType=H,this.expect(K.braceR),X}tsParseAbstractDeclaration(H){if(this.match(K._class))return H.abstract=!0,this.parseClass(H,!0);else if(this.ts_isContextual(F.interface)){if(!this.hasFollowingLineBreak())return H.abstract=!0,this.tsParseInterfaceDeclaration(H)}else this.unexpected(H.start)}tsIsDeclarationStart(){return g(this.type)}tsParseExpressionStatement(H,X){switch(X.name){case"declare":{let G=this.tsTryParseDeclare(H);if(G)return G.declare=!0,G;break}case"global":if(this.match(K.braceL)){this.enterScope(m1);let G=H;return G.global=!0,G.id=X,G.body=this.tsParseModuleBlock(),super.exitScope(),this.finishNode(G,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(H,X.name,!1)}}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsIsExportDefaultSpecifier(){let{type:H}=this,X=this.isAsyncFunction(),G=this.isLet();if(h(H)){if(X&&!this.containsEsc||G)return!1;if((H===F.type||H===F.interface)&&!this.containsEsc){let L=this.lookahead();if(h(L.type)&&!this.isContextualWithState("from",L)||L.type===K.braceL)return!1}}else if(!this.match(K._default))return!1;let U=this.nextTokenStart(),B=this.isUnparsedContextual(U,"from");if(this.input.charCodeAt(U)===44||h(this.type)&&B)return!0;if(this.match(K._default)&&B){let L=this.input.charCodeAt(this.nextTokenStartSince(U+4));return L===34||L===39}return!1}tsInAmbientContext(H){let X=this.isAmbientContext;this.isAmbientContext=!0;try{return H()}finally{this.isAmbientContext=X}}tsCheckLineTerminator(H){if(H){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsParseModuleOrNamespaceDeclaration(H,X=!1){if(H.id=this.parseIdent(),!X)this.checkLValSimple(H.id,t.BIND_TS_NAMESPACE);if(this.eat(K.dot)){let G=this.startNode();this.tsParseModuleOrNamespaceDeclaration(G,!0),H.body=G}else this.enterScope(m1),H.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(H,"TSModuleDeclaration")}checkLValSimple(H,X=t.BIND_NONE,G){if(H.type==="TSNonNullExpression"||H.type==="TSAsExpression")H=H.expression;return super.checkLValSimple(H,X,G)}tsParseTypeAliasDeclaration(H){return H.id=this.parseIdent(),this.checkLValSimple(H.id,t.BIND_TS_TYPE),H.typeAnnotation=this.tsInType(()=>{if(H.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(K.eq),this.ts_isContextual(F.interface)&&this.lookahead().type!==K.dot){let X=this.startNode();return this.next(),this.finishNode(X,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(H,"TSTypeAliasDeclaration")}tsParseDeclaration(H,X,G){switch(X){case"abstract":if(this.tsCheckLineTerminator(G)&&(this.match(K._class)||h(this.type)))return this.tsParseAbstractDeclaration(H);break;case"module":if(this.tsCheckLineTerminator(G)){if(this.match(K.string))return this.tsParseAmbientExternalModuleDeclaration(H);else if(h(this.type))return this.tsParseModuleOrNamespaceDeclaration(H)}break;case"namespace":if(this.tsCheckLineTerminator(G)&&h(this.type))return this.tsParseModuleOrNamespaceDeclaration(H);break;case"type":if(this.tsCheckLineTerminator(G)&&h(this.type))return this.tsParseTypeAliasDeclaration(H);break}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.value,!0)}tsParseImportEqualsDeclaration(H,X){H.isExport=X||!1,H.id=this.parseIdent(),this.checkLValSimple(H.id,t.BIND_LEXICAL),super.expect(K.eq);let G=this.tsParseModuleReference();if(H.importKind==="type"&&G.type!=="TSExternalModuleReference")this.raise(G.start,v.ImportAliasHasImportType);return H.moduleReference=G,super.semicolon(),this.finishNode(H,"TSImportEqualsDeclaration")}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;let{type:H}=this;if(h(H)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((H===F.type||H===F.interface)&&!this.containsEsc){let U=this.lookahead();if(h(U.type)&&!this.isContextualWithState("from",U)||U.type===K.braceL)return!1}}else if(!this.match(K._default))return!1;let X=this.nextTokenStart(),G=this.isUnparsedContextual(X,"from");if(this.input.charCodeAt(X)===44||h(this.type)&&G)return!0;if(this.match(K._default)&&G){let U=this.input.charCodeAt(this.nextTokenStartSince(X+4));return U===34||U===39}return!1}parseTemplate({isTagged:H=!1}={}){let X=this.startNode();this.next(),X.expressions=[];let G=this.parseTemplateElement({isTagged:H});X.quasis=[G];while(!G.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(G=this.parseTemplateElement({isTagged:H}))}return this.next(),this.finishNode(X,"TemplateLiteral")}parseFunction(H,X,G,U,B){if(this.initFunction(H),this.ecmaVersion>=9||this.ecmaVersion>=6&&!U){if(this.type===K.star&&X&X5)this.unexpected();H.generator=this.eat(K.star)}if(this.ecmaVersion>=8)H.async=!!U;if(X&E0)H.id=X&cQ&&this.type!==K.name?null:this.parseIdent();let L=this.yieldPos,w=this.awaitPos,S=this.awaitIdentPos,I=this.maybeInArrowParameters;if(this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(r9(H.async,H.generator)),!(X&E0))H.id=this.type===K.name?this.parseIdent():null;this.parseFunctionParams(H);let A=X&E0;if(this.parseFunctionBody(H,G,!1,B,{isFunctionDeclaration:A}),this.yieldPos=L,this.awaitPos=w,this.awaitIdentPos=S,X&E0&&H.id&&!(X&X5))if(H.body)this.checkLValSimple(H.id,this.strict||H.generator||H.async?this.treatFunctionsAsVar?t.BIND_VAR:t.BIND_LEXICAL:t.BIND_FUNCTION);else this.checkLValSimple(H.id,t.BIND_NONE);return this.maybeInArrowParameters=I,this.finishNode(H,A?"FunctionDeclaration":"FunctionExpression")}parseFunctionBody(H,X=!1,G=!1,U=!1,B){if(this.match(K.colon))H.returnType=this.tsParseTypeOrTypePredicateAnnotation(K.colon);let L=B?.isFunctionDeclaration?"TSDeclareFunction":B?.isClassMethod?"TSDeclareMethod":void 0;if(L&&!this.match(K.braceL)&&this.isLineTerminator())return this.exitScope(),this.finishNode(H,L);if(L==="TSDeclareFunction"&&this.isAmbientContext){if(this.raise(H.start,v.DeclareFunctionHasImplementation),H.declare)return super.parseFunctionBody(H,X,G,!1),this.finishNode(H,L)}return super.parseFunctionBody(H,X,G,U),H}parseNew(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");let H=this.startNode(),X=this.parseIdent(!0);if(this.ecmaVersion>=6&&this.eat(K.dot)){H.meta=X;let w=this.containsEsc;if(H.property=this.parseIdent(!0),H.property.name!=="target")this.raiseRecoverable(H.property.start,"The only valid meta property for new is 'new.target'");if(w)this.raiseRecoverable(H.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(H.start,"'new.target' can only be used in functions and class static block");return this.finishNode(H,"MetaProperty")}let G=this.start,U=this.startLoc,B=this.type===K._import;if(H.callee=this.parseSubscripts(this.parseExprAtom(),G,U,!0,!1),B&&H.callee.type==="ImportExpression")this.raise(G,"Cannot use new with import()");let{callee:L}=H;if(L.type==="TSInstantiationExpression"&&!L.extra?.parenthesized)H.typeArguments=L.typeArguments,H.callee=L.expression;if(this.eat(K.parenL))H.arguments=this.parseExprList(K.parenR,this.ecmaVersion>=8,!1);else H.arguments=[];return this.finishNode(H,"NewExpression")}parseExprOp(H,X,G,U,B){if(K._in.binop>U&&!this.hasPrecedingLineBreak()){let L;if(this.isContextual("as"))L="TSAsExpression";if(this.isContextual("satisfies"))L="TSSatisfiesExpression";if(L){let w=this.startNodeAt(X,G);w.expression=H;let S=this.tsTryNextParseConstantContext();if(S)w.typeAnnotation=S;else w.typeAnnotation=this.tsNextThenParseType();return this.finishNode(w,L),this.reScan_lt_gt(),this.parseExprOp(w,X,G,U,B)}}return super.parseExprOp(H,X,G,U,B)}parseImportSpecifiers(){let H=[],X=!0;if(J.tokenIsIdentifier(this.type)){if(H.push(this.parseImportDefaultSpecifier()),!this.eat(K.comma))return H}if(this.type===K.star)return H.push(this.parseImportNamespaceSpecifier()),H;this.expect(K.braceL);while(!this.eat(K.braceR)){if(!X){if(this.expect(K.comma),this.afterTrailingComma(K.braceR))break}else X=!1;H.push(this.parseImportSpecifier())}return H}parseImport(H){let X=this.lookahead();if(H.importKind="value",this.importOrExportOuterKind="value",h(X.type)||this.match(K.star)||this.match(K.braceL)){let G=this.lookahead(2);if(G.type!==K.comma&&!this.isContextualWithState("from",G)&&G.type!==K.eq&&this.ts_eatContextualWithState("type",1,X))this.importOrExportOuterKind="type",H.importKind="type",X=this.lookahead(),G=this.lookahead(2);if(h(X.type)&&G.type===K.eq){this.next();let U=this.tsParseImportEqualsDeclaration(H);return this.importOrExportOuterKind="value",U}}if(this.next(),this.type===K.string)H.specifiers=[],H.source=this.parseExprAtom();else H.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),H.source=this.type===K.string?this.parseExprAtom():this.unexpected();if(this.parseMaybeImportAttributes(H),this.semicolon(),this.finishNode(H,"ImportDeclaration"),this.importOrExportOuterKind="value",H.importKind==="type"&&H.specifiers.length>1&&H.specifiers[0].type==="ImportDefaultSpecifier")this.raise(H.start,v.TypeImportCannotSpecifyDefaultAndNamed);return H}parseExportDefaultDeclaration(){if(this.isAbstractClass()){let H=this.startNode();return this.next(),H.abstract=!0,this.parseClass(H,!0)}if(this.match(F.interface)){let H=this.tsParseInterfaceDeclaration(this.startNode());if(H)return H}return super.parseExportDefaultDeclaration()}parseExportAllDeclaration(H,X){if(this.ecmaVersion>=11)if(this.eatContextual("as"))H.exported=this.parseModuleExportName(),this.checkExport(X,H.exported,this.lastTokStart);else H.exported=null;if(this.expectContextual("from"),this.type!==K.string)this.unexpected();return H.source=this.parseExprAtom(),this.parseMaybeImportAttributes(H),this.semicolon(),this.finishNode(H,"ExportAllDeclaration")}parseDynamicImport(H){if(this.next(),H.source=this.parseMaybeAssign(),this.eat(K.comma)){let X=this.parseExpression();H.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(H,"ImportExpression")}parseExport(H,X){let G=this.lookahead();if(this.ts_eatWithState(K._import,2,G)){if(this.ts_isContextual(F.type)&&this.lookaheadCharCode()!==61)H.importKind="type",this.importOrExportOuterKind="type",this.next();else H.importKind="value",this.importOrExportOuterKind="value";let U=this.tsParseImportEqualsDeclaration(H,!0);return this.importOrExportOuterKind=void 0,U}else if(this.ts_eatWithState(K.eq,2,G)){let U=H;return U.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(U,"TSExportAssignment")}else if(this.ts_eatContextualWithState("as",2,G)){let U=H;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(G,F.type)&&(U===K.braceL||U===K.star))this.next(),this.importOrExportOuterKind="type",H.exportKind="type";else this.importOrExportOuterKind="value",H.exportKind="value";if(this.next(),this.eat(K.star))return this.parseExportAllDeclaration(H,X);if(this.eat(K._default))return this.checkExport(X,"default",this.lastTokStart),H.declaration=this.parseExportDefaultDeclaration(),this.finishNode(H,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(H.declaration=this.parseExportDeclaration(H),H.declaration.type==="VariableDeclaration")this.checkVariableExport(X,H.declaration.declarations);else this.checkExport(X,H.declaration.id,H.declaration.id.start);H.specifiers=[],H.source=null}else{if(H.declaration=null,H.specifiers=this.parseExportSpecifiers(X),this.eatContextual("from")){if(this.type!==K.string)this.unexpected();H.source=this.parseExprAtom(),this.parseMaybeImportAttributes(H)}else{for(let B of H.specifiers)if(this.checkUnreserved(B.local),this.checkLocalExport(B.local),B.local.type==="Literal")this.raise(B.local.start,"A string literal cannot be used as an exported binding without `from`.");H.source=null}this.semicolon()}return this.finishNode(H,"ExportNamedDeclaration")}}checkExport(H,X,G){if(!H)return;if(typeof X!=="string")X=X.type==="Identifier"?X.name:X.value;H[X]=!0}parseMaybeDefault(H,X,G){let U=super.parseMaybeDefault(H,X,G);if(U.type==="AssignmentPattern"&&U.typeAnnotation&&U.right.start<U.typeAnnotation.start)this.raise(U.typeAnnotation.start,v.TypeAnnotationAfterAssign);return U}typeCastToParameter(H){return H.expression.typeAnnotation=H.typeAnnotation,this.resetEndLocation(H.expression,H.typeAnnotation.end,H.typeAnnotation.loc?.end),H.expression}toAssignableList(H,X){if(!H)H=[];for(let G=0;G<H.length;G++){let U=H[G];if(U?.type==="TSTypeCastExpression")H[G]=this.typeCastToParameter(U)}return super.toAssignableList(H,X)}reportReservedArrowTypeParam(H){if(H.params.length===1&&!H.extra?.trailingComma&&Z)this.raise(H.start,v.ReservedArrowTypeParam)}parseExprAtom(H,X,G){if(this.type===F.jsxText)return this.jsx_parseText();else if(this.type===F.jsxTagStart)return this.jsx_parseElement();else if(this.type===F.at)return this.parseDecorators(),this.parseExprAtom();else if(h(this.type)){let U=this.potentialArrowAt===this.start,B=this.start,L=this.startLoc,w=this.containsEsc,S=this.parseIdent(!1);if(this.ecmaVersion>=8&&!w&&S.name==="async"&&!this.canInsertSemicolon()&&this.eat(K._function))return this.overrideContext(M.f_expr),this.parseFunction(this.startNodeAt(B,L),0,!1,!0,X);if(U&&!this.canInsertSemicolon()){if(this.eat(K.arrow))return this.parseArrowExpression(this.startNodeAt(B,L),[S],!1,X);if(this.ecmaVersion>=8&&S.name==="async"&&this.type===K.name&&!w&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(S=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(K.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(B,L),[S],!0,X)}}return S}else return super.parseExprAtom(H,X,G)}parseExprAtomDefault(){if(h(this.type)){let H=this.potentialArrowAt===this.start,X=this.containsEsc,G=this.parseIdent();if(!X&&G.name==="async"&&!this.canInsertSemicolon()){let{type:U}=this;if(U===K._function)return this.next(),this.parseFunction(this.startNodeAtNode(G),void 0,!0,!0);else if(h(U))if(this.lookaheadCharCode()===61){let B=this.parseIdent(!1);if(this.canInsertSemicolon()||!this.eat(K.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAtNode(G),[B],!0)}else return G}if(H&&this.match(K.arrow)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(G),[G],!1);return G}else this.unexpected()}parseIdentNode(){let H=this.startNode();if(o(this.type)&&!((this.type.keyword==="class"||this.type.keyword==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)))H.name=this.value;else return super.parseIdentNode();return H}parseVarStatement(H,X,G=!1){let{isAmbientContext:U}=this;this.next(),super.parseVar(H,!1,X,G||U),this.semicolon();let B=this.finishNode(H,"VariableDeclaration");if(!U)return B;for(let{id:L,init:w}of B.declarations){if(!w)continue;if(X!=="const"||!!L.typeAnnotation)this.raise(w.start,v.InitializerNotAllowedInAmbientContext);else if(w.type!=="StringLiteral"&&w.type!=="BooleanLiteral"&&w.type!=="NumericLiteral"&&w.type!=="BigIntLiteral"&&(w.type!=="TemplateLiteral"||w.expressions.length>0)&&!iQ(w))this.raise(w.start,v.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference)}return B}parseStatement(H,X,G){if(this.match(F.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(F.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(F.interface)){let U=this.tsParseInterfaceDeclaration(this.startNode());if(U)return U}return super.parseStatement(H,X,G)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parsePostMemberNameModifiers(H){if(this.eat(K.question))H.optional=!0;if(H.readonly&&this.match(K.parenL))this.raise(H.start,v.ClassMethodHasReadonly);if(H.declare&&this.match(K.parenL))this.raise(H.start,v.ClassMethodHasDeclare)}parseExpressionStatement(H,X){return(X.type==="Identifier"?this.tsParseExpressionStatement(H,X):void 0)||super.parseExpressionStatement(H,X)}shouldParseExportStatement(){if(this.tsIsDeclarationStart())return!0;if(this.match(F.at))return!0;return super.shouldParseExportStatement()}parseConditional(H,X,G,U,B){if(this.eat(K.question)){let L=this.startNodeAt(X,G);return L.test=H,L.consequent=this.parseMaybeAssign(),this.expect(K.colon),L.alternate=this.parseMaybeAssign(U),this.finishNode(L,"ConditionalExpression")}return H}parseMaybeConditional(H,X){let G=this.start,U=this.startLoc,B=this.parseExprOps(H,X);if(this.checkExpressionErrors(X))return B;if(!this.maybeInArrowParameters||!this.match(K.question))return this.parseConditional(B,G,U,H,X);let L=this.tryParse(()=>this.parseConditional(B,G,U,H,X));if(!L.node){if(L.error)this.setOptionalParametersError(X,L.error);return B}if(L.error)this.setLookaheadState(L.failState);return L.node}parseParenItem(H){let X=this.start,G=this.startLoc;if(H=super.parseParenItem(H),this.eat(K.question))H.optional=!0,this.resetEndLocation(H);if(this.match(K.colon)){let U=this.startNodeAt(X,G);return U.expression=H,U.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(U,"TSTypeCastExpression")}return H}parseExportDeclaration(H){if(!this.isAmbientContext&&this.ts_isContextual(F.declare))return this.tsInAmbientContext(()=>this.parseExportDeclaration(H));let X=this.start,G=this.startLoc,U=this.eatContextual("declare");if(U&&(this.ts_isContextual(F.declare)||!this.shouldParseExportStatement()))this.raise(this.start,v.ExpectedAmbientAfterExportDeclare);let L=h(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);if(!L)return null;if(L.type==="TSInterfaceDeclaration"||L.type==="TSTypeAliasDeclaration"||U)H.exportKind="type";if(U)this.resetStartLocation(L,X,G),L.declare=!0;return L}parseClassId(H,X){if(!X&&this.isContextual("implements"))return;super.parseClassId(H,X);let G=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));if(G)H.typeParameters=G}parseClassPropertyAnnotation(H){if(!H.optional){if(this.value==="!"&&this.eat(K.prefix))H.definite=!0;else if(this.eat(K.question))H.optional=!0}let X=this.tsTryParseTypeAnnotation();if(X)H.typeAnnotation=X}parseClassField(H){if(H.key.type==="PrivateIdentifier"){if(H.abstract)this.raise(H.start,v.PrivateElementHasAbstract);if(H.accessibility)this.raise(H.start,v.PrivateElementHasAccessibility({modifier:H.accessibility}));this.parseClassPropertyAnnotation(H)}else{if(this.parseClassPropertyAnnotation(H),this.isAmbientContext&&!(H.readonly&&!H.typeAnnotation)&&this.match(K.eq))this.raise(this.start,v.DeclareClassFieldHasInitializer);if(H.abstract&&this.match(K.eq)){let{key:G}=H;this.raise(this.start,v.AbstractPropertyHasInitializer({propertyName:G.type==="Identifier"&&!H.computed?G.name:`[${this.input.slice(G.start,G.end)}]`}))}}return super.parseClassField(H)}parseClassMethod(H,X,G,U){let B=H.kind==="constructor",L=H.key.type==="PrivateIdentifier",w=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(L){if(w)H.typeParameters=w;if(H.accessibility)this.raise(H.start,v.PrivateMethodsHasAccessibility({modifier:H.accessibility}))}else if(w&&B)this.raise(w.start,v.ConstructorHasTypeParameters);let{declare:S=!1,kind:I}=H;if(S&&(I==="get"||I==="set"))this.raise(H.start,v.DeclareAccessor({kind:I}));if(w)H.typeParameters=w;let A=H.key;if(H.kind==="constructor"){if(X)this.raise(A.start,"Constructor can't be a generator");if(G)this.raise(A.start,"Constructor can't be an async method")}else if(H.static&&K5(H,"prototype"))this.raise(A.start,"Classes may not have a static property named prototype");let N=H.value=this.parseMethod(X,G,U,!0,H);if(H.kind==="get"&&N.params.length!==0)this.raiseRecoverable(N.start,"getter should have no params");if(H.kind==="set"&&N.params.length!==1)this.raiseRecoverable(N.start,"setter should have exactly one param");if(H.kind==="set"&&N.params[0].type==="RestElement")this.raiseRecoverable(N.params[0].start,"Setter cannot use rest params");return this.finishNode(H,"MethodDefinition")}isClassMethod(){return this.match(K.relational)}parseClassElement(H){if(this.eat(K.semi))return null;let X=this.startNode(),G="",U=!1,B=!1,L="method",w=!1,S=["declare","private","public","protected","accessor","override","abstract","readonly","static"],I=this.tsParseModifiers({modified:X,allowedModifiers:S,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:v.InvalidModifierOnTypeParameterPositions});w=Boolean(I.static);let A=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(X,S))this.raise(this.start,v.StaticBlockCannotHaveModifier);if(this.ecmaVersion>=13)return super.parseClassStaticBlock(X),X}else{let N=this.tsTryParseIndexSignature(X);if(N){if(X.abstract)this.raise(X.start,v.IndexSignatureHasAbstract);if(X.accessibility)this.raise(X.start,v.IndexSignatureHasAccessibility({modifier:X.accessibility}));if(X.declare)this.raise(X.start,v.IndexSignatureHasDeclare);if(X.override)this.raise(X.start,v.IndexSignatureHasOverride);return N}if(!this.inAbstractClass&&X.abstract)this.raise(X.start,v.NonAbstractClassHasAbstractMethod);if(X.override){if(!H)this.raise(X.start,v.OverrideNotInSubClass)}if(X.static=w,w){if(!(this.isClassElementNameStart()||this.type===K.star))G="static"}if(!G&&this.ecmaVersion>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===K.star)&&!this.canInsertSemicolon())B=!0;else G="async";if(!G&&(this.ecmaVersion>=9||!B)&&this.eat(K.star))U=!0;if(!G&&!B&&!U){let u=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())L=u;else G=u}if(G)X.computed=!1,X.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),X.key.name=G,this.finishNode(X.key,"Identifier");else this.parseClassElementName(X);if(this.parsePostMemberNameModifiers(X),this.isClassMethod()||this.ecmaVersion<13||this.type===K.parenL||L!=="method"||U||B){let u=!X.static&&K5(X,"constructor"),m=u&&H;if(u&&L!=="method")this.raise(X.key.start,"Constructor can't have get/set modifier");X.kind=u?"constructor":L,this.parseClassMethod(X,U,B,m)}else this.parseClassField(X);return X}};if(X.declare)this.tsInAmbientContext(A);else A();return X}isClassElementNameStart(){if(this.tsIsIdentifier())return!0;return super.isClassElementNameStart()}parseClassSuper(H){if(super.parseClassSuper(H),H.superClass&&(this.tsMatchLeftRelational()||this.match(K.bitShift)))H.superTypeParameters=this.tsParseTypeArgumentsInExpression();if(this.eatContextual("implements"))H.implements=this.tsParseHeritageClause("implements")}parseFunctionParams(H){let X=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(X)H.typeParameters=X;super.parseFunctionParams(H)}parseVarId(H,X){if(super.parseVarId(H,X),H.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(K.prefix))H.definite=!0;let G=this.tsTryParseTypeAnnotation();if(G)H.id.typeAnnotation=G,this.resetEndLocation(H.id)}parseArrowExpression(H,X,G,U){if(this.match(K.colon))H.returnType=this.tsParseTypeAnnotation();let B=this.yieldPos,L=this.awaitPos,w=this.awaitIdentPos;this.enterScope(r9(G,!1)|t.SCOPE_ARROW),this.initFunction(H);let S=this.maybeInArrowParameters;if(this.ecmaVersion>=8)H.async=!!G;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,H.params=this.toAssignableList(X,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(H,!0,!1,U),this.yieldPos=B,this.awaitPos=L,this.awaitIdentPos=w,this.maybeInArrowParameters=S,this.finishNode(H,"ArrowFunctionExpression")}parseMaybeAssignOrigin(H,X,G){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(H);else this.exprAllowed=!1;let U=!1,B=-1,L=-1,w=-1;if(X)B=X.parenthesizedAssign,L=X.trailingComma,w=X.doubleProto,X.parenthesizedAssign=X.trailingComma=-1;else X=new l1,U=!0;let S=this.start,I=this.startLoc;if(this.type===K.parenL||h(this.type))this.potentialArrowAt=this.start,this.potentialArrowInForAwait=H==="await";let A=this.parseMaybeConditional(H,X);if(G)A=G.call(this,A,S,I);if(this.type.isAssign){let N=this.startNodeAt(S,I);if(N.operator=this.value,this.type===K.eq)A=this.toAssignable(A,!0,X);if(!U)X.parenthesizedAssign=X.trailingComma=X.doubleProto=-1;if(X.shorthandAssign>=A.start)X.shorthandAssign=-1;if(!this.maybeInArrowParameters)if(this.type===K.eq)this.checkLValPattern(A);else this.checkLValSimple(A);if(N.left=A,this.next(),N.right=this.parseMaybeAssign(H),w>-1)X.doubleProto=w;return this.finishNode(N,"AssignmentExpression")}else if(U)this.checkExpressionErrors(X,!0);if(B>-1)X.parenthesizedAssign=B;if(L>-1)X.trailingComma=L;return A}parseMaybeAssign(H,X,G){let U,B,L;if(q?.jsx&&(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational())){if(U=this.cloneCurLookaheadState(),B=this.tryParse(()=>this.parseMaybeAssignOrigin(H,X,G),U),!B.error)return B.node;let I=this.context,A=I[I.length-1],N=I[I.length-2];if(A===J.tokContexts.tc_oTag&&N===J.tokContexts.tc_expr)I.pop(),I.pop();else if(A===J.tokContexts.tc_oTag||A===J.tokContexts.tc_expr)I.pop()}if(!B?.error&&!this.tsMatchLeftRelational())return this.parseMaybeAssignOrigin(H,X,G);if(!U||this.compareLookaheadState(U,this.getCurLookaheadState()))U=this.cloneCurLookaheadState();let w,S=this.tryParse((I)=>{w=this.tsParseTypeParameters(this.tsParseConstModifier);let A=this.parseMaybeAssignOrigin(H,X,G);if(A.type!=="ArrowFunctionExpression"||A.extra?.parenthesized)I();if(w?.params.length!==0)this.resetStartLocationFromNode(A,w);return A.typeParameters=w,A},U);if(!S.error&&!S.aborted){if(w)this.reportReservedArrowTypeParam(w);return S.node}if(!B){if(J5(!0),L=this.tryParse(()=>this.parseMaybeAssignOrigin(H,X,G),U),!L.error)return L.node}if(B?.node)return this.setLookaheadState(B.failState),B.node;if(S.node){if(this.setLookaheadState(S.failState),w)this.reportReservedArrowTypeParam(w);return S.node}if(L?.node)return this.setLookaheadState(L.failState),L.node;if(B?.thrown)throw B.error;if(S.thrown)throw S.error;if(L?.thrown)throw L.error;throw B?.error||S.error||L?.error}parseAssignableListItem(H){let X=[];while(this.match(F.at))X.push(this.parseDecorator());let G=this.start,U=this.startLoc,B,L=!1,w=!1;if(H!==void 0){let A={};if(this.tsParseModifiers({modified:A,allowedModifiers:["public","private","protected","override","readonly"]}),B=A.accessibility,w=A.override,L=A.readonly,H===!1&&(B||L||w))this.raise(U.column,v.UnexpectedParameterModifier)}let S=this.parseMaybeDefault(G,U);this.parseBindingListItem(S);let I=this.parseMaybeDefault(S.start,S.loc.start,S);if(X.length)I.decorators=X;if(B||L||w){let A=this.startNodeAt(G,U);if(B)A.accessibility=B;if(L)A.readonly=L;if(w)A.override=w;if(I.type!=="Identifier"&&I.type!=="AssignmentPattern")this.raise(A.start,v.UnsupportedParameterPropertyKind);return A.parameter=I,this.finishNode(A,"TSParameterProperty")}return I}checkLValInnerPattern(H,X=t.BIND_NONE,G){switch(H.type){case"TSParameterProperty":this.checkLValInnerPattern(H.parameter,X,G);break;default:{super.checkLValInnerPattern(H,X,G);break}}}parseBindingListItem(H){if(this.eat(K.question)){if(H.type!=="Identifier"&&!this.isAmbientContext&&!this.inType)this.raise(H.start,v.PatternIsOptional);H.optional=!0}let X=this.tsTryParseTypeAnnotation();if(X)H.typeAnnotation=X;return this.resetEndLocation(H),H}isAssignable(H,X){switch(H.type){case"TSTypeCastExpression":return this.isAssignable(H.expression,X);case"TSParameterProperty":return!0;case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let G=H.properties.length-1;return H.properties.every((U,B)=>{return U.type!=="ObjectMethod"&&(B===G||U.type!=="SpreadElement")&&this.isAssignable(U)})}case"Property":case"ObjectProperty":return this.isAssignable(H.value);case"SpreadElement":return this.isAssignable(H.argument);case"ArrayExpression":return H.elements.every((G)=>G===null||this.isAssignable(G));case"AssignmentExpression":return H.operator==="=";case"ParenthesizedExpression":return this.isAssignable(H.expression);case"MemberExpression":case"OptionalMemberExpression":return!X;default:return!1}}toAssignable(H,X=!1,G=new l1){switch(H.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(H,X,G);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(X);else this.raise(H.start,v.UnexpectedTypeCastInParameter);return this.toAssignable(H.expression,X,G);case"MemberExpression":break;case"AssignmentExpression":if(!X&&H.left.type==="TSTypeCastExpression")H.left=this.typeCastToParameter(H.left);return super.toAssignable(H,X,G);case"TSTypeCastExpression":return this.typeCastToParameter(H);default:return super.toAssignable(H,X,G)}return H}toAssignableParenthesizedExpression(H,X,G){switch(H.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(H.expression,X,G);default:return super.toAssignable(H,X,G)}}parseBindingAtom(){switch(this.type){case K._this:return this.parseIdent(!0);default:return super.parseBindingAtom()}}shouldParseArrow(H){let X;if(this.match(K.colon))X=H.every((G)=>this.isAssignable(G,!0));else X=!this.canInsertSemicolon();if(X){if(this.match(K.colon)){let G=this.tryParse((U)=>{let B=this.tsParseTypeOrTypePredicateAnnotation(K.colon);if(this.canInsertSemicolon()||!this.match(K.arrow))U();return B});if(G.aborted)return this.shouldParseArrowReturnType=void 0,!1;if(!G.thrown){if(G.error)this.setLookaheadState(G.failState);this.shouldParseArrowReturnType=G.node}}if(!this.match(K.arrow))return this.shouldParseArrowReturnType=void 0,!1;return!0}return this.shouldParseArrowReturnType=void 0,X}parseParenArrowList(H,X,G,U){let B=this.startNodeAt(H,X);return B.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(B,G,!1,U)}parseParenAndDistinguishExpression(H,X){let G=this.start,U=this.startLoc,B,L=this.ecmaVersion>=8;if(this.ecmaVersion>=6){let w=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();let S=this.start,I=this.startLoc,A=[],N=!0,u=!1,m=new l1,K8=this.yieldPos,n=this.awaitPos,T;this.yieldPos=0,this.awaitPos=0;while(this.type!==K.parenR)if(N?N=!1:this.expect(K.comma),L&&this.afterTrailingComma(K.parenR,!0)){u=!0;break}else if(this.type===K.ellipsis){if(T=this.start,A.push(this.parseParenItem(this.parseRestBinding())),this.type===K.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else A.push(this.parseMaybeAssign(X,m,this.parseParenItem));let i=this.lastTokEnd,_=this.lastTokEndLoc;if(this.expect(K.parenR),this.maybeInArrowParameters=w,H&&this.shouldParseArrow(A)&&this.eat(K.arrow))return this.checkPatternErrors(m,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=K8,this.awaitPos=n,this.parseParenArrowList(G,U,A,X);if(!A.length||u)this.unexpected(this.lastTokStart);if(T)this.unexpected(T);if(this.checkExpressionErrors(m,!0),this.yieldPos=K8||this.yieldPos,this.awaitPos=n||this.awaitPos,A.length>1)B=this.startNodeAt(S,I),B.expressions=A,this.finishNodeAt(B,"SequenceExpression",i,_);else B=A[0]}else B=this.parseParenExpression();if(this.options.preserveParens){let w=this.startNodeAt(G,U);return w.expression=B,this.finishNode(w,"ParenthesizedExpression")}else return B}parseTaggedTemplateExpression(H,X,G,U){let B=this.startNodeAt(X,G);if(B.tag=H,B.quasi=this.parseTemplate({isTagged:!0}),U)this.raise(X,"Tagged Template Literals are not allowed in optionalChain.");return this.finishNode(B,"TaggedTemplateExpression")}shouldParseAsyncArrow(){if(this.match(K.colon)){let H=this.tryParse((X)=>{let G=this.tsParseTypeOrTypePredicateAnnotation(K.colon);if(this.canInsertSemicolon()||!this.match(K.arrow))X();return G});if(H.aborted)return this.shouldParseAsyncArrowReturnType=void 0,!1;if(!H.thrown){if(H.error)this.setLookaheadState(H.failState);return this.shouldParseAsyncArrowReturnType=H.node,!this.canInsertSemicolon()&&this.eat(K.arrow)}}else return!this.canInsertSemicolon()&&this.eat(K.arrow)}parseSubscriptAsyncArrow(H,X,G,U){let B=this.startNodeAt(H,X);return B.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(B,G,!0,U)}parseExprList(H,X,G,U){let B=[],L=!0;while(!this.eat(H)){if(!L){if(this.expect(K.comma),X&&this.afterTrailingComma(H))break}else L=!1;let w;if(G&&this.type===K.comma)w=null;else if(this.type===K.ellipsis){if(w=this.parseSpread(U),this.maybeInArrowParameters&&this.match(K.colon))w.typeAnnotation=this.tsParseTypeAnnotation();if(U&&this.type===K.comma&&U.trailingComma<0)U.trailingComma=this.start}else w=this.parseMaybeAssign(!1,U,this.parseParenItem);B.push(w)}return B}parseSubscript(H,X,G,U,B,L,w){let S=L;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(K.prefix)){this.exprAllowed=!1,this.next();let m=this.startNodeAt(X,G);return m.expression=H,H=this.finishNode(m,"TSNonNullExpression"),H}let I=!1;if(this.match(K.questionDot)&&this.lookaheadCharCode()===60){if(U)return H;H.optional=!0,S=I=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(K.bitShift)){let m,K8=this.tsTryParseAndCatch(()=>{if(!U&&this.atPossibleAsyncArrow(H)){let _=this.tsTryParseGenericAsyncArrowFunction(X,G,w);if(_)return H=_,H}let n=this.tsParseTypeArgumentsInExpression();if(!n)return H;if(I&&!this.match(K.parenL))return m=this.curPosition(),H;if(b(this.type)||this.type===K.backQuote){let _=this.parseTaggedTemplateExpression(H,X,G,S);return _.typeArguments=n,_}if(!U&&this.eat(K.parenL)){let _=new l1,l=this.startNodeAt(X,G);if(l.callee=H,l.arguments=this.parseExprList(K.parenR,this.ecmaVersion>=8,!1,_),this.tsCheckForInvalidTypeCasts(l.arguments),l.typeArguments=n,S)l.optional=I;return this.checkExpressionErrors(_,!0),H=this.finishNode(l,"CallExpression"),H}let T=this.type;if(this.tsMatchRightRelational()||T===K.bitShift||T!==K.parenL&&dQ(T)&&!this.hasPrecedingLineBreak())return;let i=this.startNodeAt(X,G);return i.expression=H,i.typeArguments=n,this.finishNode(i,"TSInstantiationExpression")});if(m)this.unexpected(m);if(K8){if(K8.type==="TSInstantiationExpression"&&(this.match(K.dot)||this.match(K.questionDot)&&this.lookaheadCharCode()!==40))this.raise(this.start,v.InvalidPropertyAccessAfterInstantiationExpression);return H=K8,H}}let A=this.ecmaVersion>=11,N=A&&this.eat(K.questionDot);if(U&&N)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");let u=this.eat(K.bracketL);if(u||N&&this.type!==K.parenL&&this.type!==K.backQuote||this.eat(K.dot)){let m=this.startNodeAt(X,G);if(m.object=H,u)m.property=this.parseExpression(),this.expect(K.bracketR);else if(this.type===K.privateId&&H.type!=="Super")m.property=this.parsePrivateIdent();else m.property=this.parseIdent(this.options.allowReserved!=="never");if(m.computed=!!u,A)m.optional=N;H=this.finishNode(m,"MemberExpression")}else if(!U&&this.eat(K.parenL)){let m=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let K8=new l1,n=this.yieldPos,T=this.awaitPos,i=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;let _=this.parseExprList(K.parenR,this.ecmaVersion>=8,!1,K8);if(B&&!N&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(K8,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");this.yieldPos=n,this.awaitPos=T,this.awaitIdentPos=i,H=this.parseSubscriptAsyncArrow(X,G,_,w)}else{this.checkExpressionErrors(K8,!0),this.yieldPos=n||this.yieldPos,this.awaitPos=T||this.awaitPos,this.awaitIdentPos=i||this.awaitIdentPos;let l=this.startNodeAt(X,G);if(l.callee=H,l.arguments=_,A)l.optional=N;H=this.finishNode(l,"CallExpression")}this.maybeInArrowParameters=m}else if(this.type===K.backQuote){if(N||S)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");let m=this.startNodeAt(X,G);m.tag=H,m.quasi=this.parseTemplate({isTagged:!0}),H=this.finishNode(m,"TaggedTemplateExpression")}return H}parseGetterSetter(H){H.kind=H.key.name,this.parsePropertyName(H);let X=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(H.value=this.parseMethod(!1),X)H.value.typeParameters=X;let G=H.kind==="get"?0:1,U=H.value.params[0];if(G=U&&this.isThisParam(U)?G+1:G,H.value.params.length!==G){let L=H.value.start;if(H.kind==="get")this.raiseRecoverable(L,"getter should have no params");else this.raiseRecoverable(L,"setter should have exactly one param")}else if(H.kind==="set"&&H.value.params[0].type==="RestElement")this.raiseRecoverable(H.value.params[0].start,"Setter cannot use rest params")}parsePropertyValue(H,X,G,U,B,L,w,S){if(this.tsMatchLeftRelational()){if(X)this.unexpected();H.kind="init",H.method=!0;let I=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(H.value=this.parseMethod(G,U),I)H.value.typeParameters=I;return}return super.parsePropertyValue(H,X,G,U,B,L,w,S)}parseProperty(H,X){if(!H){let G=[];if(this.match(F.at))while(this.match(F.at))G.push(this.parseDecorator());let U=super.parseProperty(H,X);if(U.type==="SpreadElement"){if(G.length)this.raise(U.start,v0.SpreadElementDecorator)}if(G.length)U.decorators=G,G=[];return U}return super.parseProperty(H,X)}parseCatchClauseParam(){let H=this.parseBindingAtom(),X=H.type==="Identifier";this.enterScope(X?t.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(H,X?t.BIND_SIMPLE_CATCH:t.BIND_LEXICAL);let G=this.tsTryParseTypeAnnotation();if(G)H.typeAnnotation=G,this.resetEndLocation(H);return this.expect(K.parenR),H}parseClass(H,X){let G=this.inAbstractClass;this.inAbstractClass=!!H.abstract;try{this.next(),this.takeDecorators(H);let U=this.strict;this.strict=!0,this.parseClassId(H,X),this.parseClassSuper(H);let B=this.enterClassBody(),L=this.startNode(),w=!1;L.body=[];let S=[];this.expect(K.braceL);while(this.type!==K.braceR){if(this.match(F.at)){S.push(this.parseDecorator());continue}let I=this.parseClassElement(H.superClass!==null);if(S.length)I.decorators=S,this.resetStartLocationFromNode(I,S[0]),S=[];if(I){if(L.body.push(I),I.type==="MethodDefinition"&&I.kind==="constructor"&&I.value.type==="FunctionExpression"){if(w)this.raiseRecoverable(I.start,"Duplicate constructor in the same class");if(w=!0,I.decorators&&I.decorators.length>0)this.raise(I.start,v0.DecoratorConstructor)}else if(I.key&&I.key.type==="PrivateIdentifier"&&I.value?.type!=="TSDeclareMethod"&&hQ(B,I))this.raiseRecoverable(I.key.start,`Identifier '#${I.key.name}' has already been declared`)}}if(this.strict=U,this.next(),S.length)this.raise(this.start,v0.TrailingDecorator);return H.body=this.finishNode(L,"ClassBody"),this.exitClassBody(),this.finishNode(H,X?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=G}}parseClassFunctionParams(){let H=this.tsTryParseTypeParameters(),X=this.parseBindingList(K.parenR,!1,this.ecmaVersion>=8,!0);if(H)X.typeParameters=H;return X}parseMethod(H,X,G,U,B){let L=this.startNode(),w=this.yieldPos,S=this.awaitPos,I=this.awaitIdentPos;if(this.initFunction(L),this.ecmaVersion>=6)L.generator=H;if(this.ecmaVersion>=8)L.async=!!X;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(r9(X,L.generator)|t.SCOPE_SUPER|(G?t.SCOPE_DIRECT_SUPER:0)),this.expect(K.parenL),L.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(L,!1,!0,!1,{isClassMethod:U}),this.yieldPos=w,this.awaitPos=S,this.awaitIdentPos=I,B&&B.abstract){if(!!L.body){let{key:N}=B;this.raise(B.start,v.AbstractMethodHasImplementation({methodName:N.type==="Identifier"&&!B.computed?N.name:`[${this.input.slice(N.start,N.end)}]`}))}}return this.finishNode(L,"FunctionExpression")}static parse(H,X){if(X.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else X.locations=!0;let G=new this(X,H);if(Q)G.isAmbientContext=!0;return G.parse()}static parseExpressionAt(H,X,G){if(G.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else G.locations=!0;let U=new this(G,H,X);if(Q)U.isAmbientContext=!0;return U.nextToken(),U.parseExpression()}parseImportSpecifier(){if(this.ts_isContextual(F.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(H){let X=this.ts_isContextual(F.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(H,U.exported,U.exported.start),U}else{let U=super.parseExportSpecifier(H);return U.exportKind="value",U}}parseTypeOnlyImportExportSpecifier(H,X,G){let U=X?"imported":"local",B=X?"local":"exported",L=H[U],w,S=!1,I=!0,A=L.start;if(this.isContextual("as")){let u=this.parseIdent();if(this.isContextual("as")){let m=this.parseIdent();if(o(this.type))S=!0,L=u,w=X?this.parseIdent():this.parseModuleExportName(),I=!1;else w=m,I=!1}else if(o(this.type))I=!1,w=X?this.parseIdent():this.parseModuleExportName();else S=!0,L=u}else if(o(this.type))if(S=!0,X){if(L=super.parseIdent(!0),!this.isContextual("as"))this.checkUnreserved(L)}else L=this.parseModuleExportName();if(S&&G)this.raise(A,X?v.TypeModifierIsUsedInTypeImports:v.TypeModifierIsUsedInTypeExports);H[U]=L,H[B]=w;let N=X?"importKind":"exportKind";if(H[N]=S?"type":"value",I&&this.eatContextual("as"))H[B]=X?this.parseIdent():this.parseModuleExportName();if(!H[B])H[B]=this.copyNode(H[U]);if(X)this.checkLValSimple(H[B],t.BIND_LEXICAL)}raiseCommonCheck(H,X,G){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(H,X)}return G?super.raiseRecoverable(H,X):super.raise(H,X)}raiseRecoverable(H,X){return this.raiseCommonCheck(H,X,!0)}raise(H,X){return this.raiseCommonCheck(H,X,!0)}updateContext(H){let{type:X}=this;if(X==K.braceL){var G=this.curContext();if(G==P.tc_oTag)this.context.push(M.b_expr);else if(G==P.tc_expr)this.context.push(M.b_tmpl);else super.updateContext(H);this.exprAllowed=!0}else if(X===K.slash&&H===F.jsxTagStart)this.context.length-=2,this.context.push(P.tc_cTag),this.exprAllowed=!1;else return super.updateContext(H)}jsx_parseOpeningElementAt(H,X){let G=this.startNodeAt(H,X),U=this.jsx_parseElementName();if(U)G.name=U;if(this.match(K.relational)||this.match(K.bitShift)){let B=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(B)G.typeArguments=B}G.attributes=[];while(this.type!==K.slash&&this.type!==F.jsxTagEnd)G.attributes.push(this.jsx_parseAttribute());return G.selfClosing=this.eat(K.slash),this.expect(F.jsxTagEnd),this.finishNode(G,U?"JSXOpeningElement":"JSXOpeningFragment")}enterScope(H){if(H===m1)this.importsStack.push([]);super.enterScope(H);let X=super.currentScope();X.types=[],X.enums=[],X.constEnums=[],X.classes=[],X.exportOnlyBindings=[]}exitScope(){if(super.currentScope().flags===m1)this.importsStack.pop();super.exitScope()}hasImport(H,X){let G=this.importsStack.length;if(this.importsStack[G-1].indexOf(H)>-1)return!0;if(!X&&G>1){for(let U=0;U<G-1;U++)if(this.importsStack[U].indexOf(H)>-1)return!0}return!1}maybeExportDefined(H,X){if(this.inModule&&H.flags&t.SCOPE_TOP)delete this.undefinedExports[X]}declareName(H,X,G){if(X&t.BIND_FLAGS_TS_IMPORT){if(this.hasImport(H,!0))this.raise(G,`Identifier '${H}' has already been declared.`);this.importsStack[this.importsStack.length-1].push(H);return}let U=this.currentScope();if(X&t.BIND_FLAGS_TS_EXPORT_ONLY){this.maybeExportDefined(U,H),U.exportOnlyBindings.push(H);return}if(X===t.BIND_TS_TYPE||X===t.BIND_TS_INTERFACE){if(X===t.BIND_TS_TYPE&&U.types.includes(H))this.raise(G,`type '${H}' has already been declared.`);U.types.push(H)}else super.declareName(H,X,G);if(X&t.BIND_FLAGS_TS_ENUM)U.enums.push(H);if(X&t.BIND_FLAGS_TS_CONST_ENUM)U.constEnums.push(H);if(X&t.BIND_FLAGS_CLASS)U.classes.push(H)}checkLocalExport(H){let{name:X}=H;if(this.hasImport(X))return;let G=this.scopeStack.length;for(let U=G-1;U>=0;U--){let B=this.scopeStack[U];if(B.types.indexOf(X)>-1||B.exportOnlyBindings.indexOf(X)>-1)return}super.checkLocalExport(H)}}return U8}}class M5 extends Error{message="";#q;constructor(q,Q,Z){super(Q);this.stack="",this.#q=new E1(q,Q,Z),Object.assign(this,this.#q),this.name="CompileError"}toString(){return this.#q.toString()}toJSON(){return this.#q.toJSON()}}function f(q,Q,Z){let j=typeof q==="number"?q:q?.start,Y=typeof q==="number"?q:q?.end;throw new M5(Q,Z,j!==void 0?[j,Y??j]:void 0)}function $5(q){f(q,"css_empty_declaration",`Declaration cannot be empty
37
+ https://svelte.dev/e/css_empty_declaration`)}function e9(q){f(q,"css_expected_identifier",`Expected a valid CSS identifier
38
+ https://svelte.dev/e/css_expected_identifier`)}function L5(q){f(q,"css_selector_invalid",`Invalid selector
39
+ https://svelte.dev/e/css_selector_invalid`)}function w5(q){f(q,"attribute_duplicate",`Attributes need to be unique
40
+ https://svelte.dev/e/attribute_duplicate`)}function A5(q){f(q,"attribute_empty_shorthand",`Attribute shorthand cannot be empty
41
+ https://svelte.dev/e/attribute_empty_shorthand`)}function q6(q,Q){f(q,"block_duplicate_clause",`${Q} cannot appear more than once within a block
42
+ https://svelte.dev/e/block_duplicate_clause`)}function C5(q){f(q,"block_invalid_continuation_placement",`{:...} block is invalid at this position (did you forget to close the preceding element or block?)
43
+ https://svelte.dev/e/block_invalid_continuation_placement`)}function I5(q){f(q,"block_invalid_elseif",`'elseif' should be 'else if'
44
+ https://svelte.dev/e/block_invalid_elseif`)}function P5(q,Q,Z){f(q,"block_invalid_placement",`{#${Q} ...} block cannot be ${Z}
45
+ https://svelte.dev/e/block_invalid_placement`)}function S5(q){f(q,"block_unclosed",`Block was left open
46
+ https://svelte.dev/e/block_unclosed`)}function Q6(q){f(q,"block_unexpected_close",`Unexpected block closing tag
47
+ https://svelte.dev/e/block_unexpected_close`)}function D5(q){f(q,"const_tag_invalid_expression",`{@const ...} must consist of a single variable declaration
48
+ https://svelte.dev/e/const_tag_invalid_expression`)}function N5(q){f(q,"debug_tag_invalid_arguments",`{@debug ...} arguments must be identifiers, not arbitrary expressions
49
+ https://svelte.dev/e/debug_tag_invalid_arguments`)}function f0(q){f(q,"declaration_tag_invalid_type","Declaration tags must be `let` or `const` declarations\nhttps://svelte.dev/e/declaration_tag_invalid_type")}function b5(q){f(q,"directive_invalid_value",`Directive value must be a JavaScript expression enclosed in curly braces
50
+ https://svelte.dev/e/directive_invalid_value`)}function k5(q,Q){f(q,"directive_missing_name",`\`${Q}\` name cannot be empty
51
+ https://svelte.dev/e/directive_missing_name`)}function T5(q,Q){f(q,"element_invalid_closing_tag",`\`</${Q}>\` attempted to close an element that was not open
52
+ https://svelte.dev/e/element_invalid_closing_tag`)}function E5(q,Q,Z){f(q,"element_invalid_closing_tag_autoclosed",`\`</${Q}>\` attempted to close element that was already automatically closed by \`<${Z}>\` (cannot nest \`<${Z}>\` inside \`<${Q}>\`)
53
+ https://svelte.dev/e/element_invalid_closing_tag_autoclosed`)}function y0(q,Q){f(q,"element_unclosed",`\`<${Q}>\` was left open
54
+ https://svelte.dev/e/element_unclosed`)}function Z6(q){f(q,"expected_attribute_value",`Expected attribute value
55
+ https://svelte.dev/e/expected_attribute_value`)}function v5(q){f(q,"expected_block_type",`Expected 'if', 'each', 'await', 'key' or 'snippet'
56
+ https://svelte.dev/e/expected_block_type`)}function j6(q){f(q,"expected_identifier",`Expected an identifier
57
+ https://svelte.dev/e/expected_identifier`)}function h5(q){f(q,"expected_pattern",`Expected identifier or destructure pattern
58
+ https://svelte.dev/e/expected_pattern`)}function f5(q){f(q,"expected_tag",`Expected 'html', 'render', 'attach', 'const', or 'debug'
59
59
  https://svelte.dev/e/expected_tag`)}function E8(q,Q){f(q,"expected_token",`Expected token ${Q}
60
- https://svelte.dev/e/expected_token`)}function h5(q){f(q,"expected_whitespace",`Expected whitespace
61
- https://svelte.dev/e/expected_whitespace`)}function f5(q,Q){f(q,"js_parse_error",`${Q}
62
- https://svelte.dev/e/js_parse_error`)}function y5(q){f(q,"render_tag_invalid_expression","`{@render ...}` tags can only contain call expressions\nhttps://svelte.dev/e/render_tag_invalid_expression")}function Z6(q){f(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 g5(q,Q){f(q,"script_invalid_attribute_value",`If the \`${Q}\` attribute is supplied, it must be a boolean attribute
63
- https://svelte.dev/e/script_invalid_attribute_value`)}function j6(q){f(q,"script_invalid_context",`If the context attribute is supplied, its value must be "module"
64
- https://svelte.dev/e/script_invalid_context`)}function _5(q,Q){f(q,"script_reserved_attribute",`The \`${Q}\` attribute is reserved and cannot be used
65
- https://svelte.dev/e/script_reserved_attribute`)}function x5(q){f(q,"style_duplicate","A component can have a single top-level `<style>` element\nhttps://svelte.dev/e/style_duplicate")}function u5(q){f(q,"svelte_component_invalid_this","Invalid component definition — must be an `{expression}`\nhttps://svelte.dev/e/svelte_component_invalid_this")}function m5(q){f(q,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute\nhttps://svelte.dev/e/svelte_component_missing_this")}function Y6(q){f(q,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value\nhttps://svelte.dev/e/svelte_element_missing_this")}function l5(q,Q){f(q,"svelte_meta_duplicate",`A component can only have one \`<${Q}>\` element
66
- https://svelte.dev/e/svelte_meta_duplicate`)}function c5(q,Q){f(q,"svelte_meta_invalid_content",`<${Q}> cannot have children
67
- https://svelte.dev/e/svelte_meta_invalid_content`)}function i5(q,Q){f(q,"svelte_meta_invalid_placement",`\`<${Q}>\` tags cannot be inside elements or blocks
68
- https://svelte.dev/e/svelte_meta_invalid_placement`)}function d5(q,Q){f(q,"svelte_meta_invalid_tag",`Valid \`<svelte:...>\` tag names are ${Q}
69
- https://svelte.dev/e/svelte_meta_invalid_tag`)}function p5(q){f(q,"svelte_options_deprecated_tag",`"tag" option is deprecated — use "customElement" instead
70
- https://svelte.dev/e/svelte_options_deprecated_tag`)}function o5(q){f(q,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes\nhttps://svelte.dev/e/svelte_options_invalid_attribute")}function f0(q,Q){f(q,"svelte_options_invalid_attribute_value",`Value must be ${Q}, if specified
71
- https://svelte.dev/e/svelte_options_invalid_attribute_value`)}function y0(q){f(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 Y1(q){f(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" }"
72
- https://svelte.dev/e/svelte_options_invalid_customelement_props`)}function s5(q){f(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 H6(q){f(q,"svelte_options_invalid_tagname",`Tag name must be lowercase and hyphenated
73
- https://svelte.dev/e/svelte_options_invalid_tagname`)}function n5(q){f(q,"svelte_options_reserved_tagname",`Tag name is reserved
74
- https://svelte.dev/e/svelte_options_reserved_tagname`)}function a5(q,Q){f(q,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${Q}'
75
- https://svelte.dev/e/svelte_options_unknown_attribute`)}function r5(q){f(q,"tag_invalid_name",`Expected a valid element or component name. Components must have a valid variable name or dot notation expression
76
- https://svelte.dev/e/tag_invalid_name`)}function t5(q,Q,Z){f(q,"tag_invalid_placement",`{@${Q} ...} tag cannot be ${Z}
60
+ https://svelte.dev/e/expected_token`)}function y5(q){f(q,"expected_whitespace",`Expected whitespace
61
+ https://svelte.dev/e/expected_whitespace`)}function g5(q,Q){f(q,"js_parse_error",`${Q}
62
+ https://svelte.dev/e/js_parse_error`)}function _5(q){f(q,"render_tag_invalid_expression","`{@render ...}` tags can only contain call expressions\nhttps://svelte.dev/e/render_tag_invalid_expression")}function Y6(q){f(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 x5(q,Q){f(q,"script_invalid_attribute_value",`If the \`${Q}\` attribute is supplied, it must be a boolean attribute
63
+ https://svelte.dev/e/script_invalid_attribute_value`)}function H6(q){f(q,"script_invalid_context",`If the context attribute is supplied, its value must be "module"
64
+ https://svelte.dev/e/script_invalid_context`)}function u5(q,Q){f(q,"script_reserved_attribute",`The \`${Q}\` attribute is reserved and cannot be used
65
+ https://svelte.dev/e/script_reserved_attribute`)}function m5(q){f(q,"style_duplicate","A component can have a single top-level `<style>` element\nhttps://svelte.dev/e/style_duplicate")}function l5(q){f(q,"svelte_component_invalid_this","Invalid component definition — must be an `{expression}`\nhttps://svelte.dev/e/svelte_component_invalid_this")}function c5(q){f(q,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute\nhttps://svelte.dev/e/svelte_component_missing_this")}function K6(q){f(q,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value\nhttps://svelte.dev/e/svelte_element_missing_this")}function i5(q,Q){f(q,"svelte_meta_duplicate",`A component can only have one \`<${Q}>\` element
66
+ https://svelte.dev/e/svelte_meta_duplicate`)}function d5(q,Q){f(q,"svelte_meta_invalid_content",`<${Q}> cannot have children
67
+ https://svelte.dev/e/svelte_meta_invalid_content`)}function p5(q,Q){f(q,"svelte_meta_invalid_placement",`\`<${Q}>\` tags cannot be inside elements or blocks
68
+ https://svelte.dev/e/svelte_meta_invalid_placement`)}function o5(q,Q){f(q,"svelte_meta_invalid_tag",`Valid \`<svelte:...>\` tag names are ${Q}
69
+ https://svelte.dev/e/svelte_meta_invalid_tag`)}function s5(q){f(q,"svelte_options_deprecated_tag",`"tag" option is deprecated — use "customElement" instead
70
+ https://svelte.dev/e/svelte_options_deprecated_tag`)}function n5(q){f(q,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes\nhttps://svelte.dev/e/svelte_options_invalid_attribute")}function g0(q,Q){f(q,"svelte_options_invalid_attribute_value",`Value must be ${Q}, if specified
71
+ https://svelte.dev/e/svelte_options_invalid_attribute_value`)}function _0(q){f(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 Y1(q){f(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" }"
72
+ https://svelte.dev/e/svelte_options_invalid_customelement_props`)}function a5(q){f(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 J6(q){f(q,"svelte_options_invalid_tagname",`Tag name must be lowercase and hyphenated
73
+ https://svelte.dev/e/svelte_options_invalid_tagname`)}function r5(q){f(q,"svelte_options_reserved_tagname",`Tag name is reserved
74
+ https://svelte.dev/e/svelte_options_reserved_tagname`)}function t5(q,Q){f(q,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${Q}'
75
+ https://svelte.dev/e/svelte_options_unknown_attribute`)}function e5(q){f(q,"tag_invalid_name",`Expected a valid element or component name. Components must have a valid variable name or dot notation expression
76
+ https://svelte.dev/e/tag_invalid_name`)}function q4(q,Q,Z){f(q,"tag_invalid_placement",`{@${Q} ...} tag cannot be ${Z}
77
77
  https://svelte.dev/e/tag_invalid_placement`)}function w8(q){f(q,"unexpected_eof",`Unexpected end of input
78
- https://svelte.dev/e/unexpected_eof`)}function e5(q,Q){f(q,"unexpected_reserved_word",`'${Q}' is a reserved word in JavaScript and cannot be used here
79
- https://svelte.dev/e/unexpected_reserved_word`)}function q4(q){f(q,"unterminated_string_constant",`Unterminated string constant
80
- https://svelte.dev/e/unterminated_string_constant`)}function Q4(q){f(q,"void_element_invalid_content",`Void elements cannot have children or closing tags
81
- https://svelte.dev/e/void_element_invalid_content`)}var g0=Y8,K6=g0.extend(R5());function Z4(q,Q,Z,j){let Y=Z?K6:g0,{onComment:J,add_comments:K}=X6(q,Q),W=Y.prototype.parseStatement;if(j)Y.prototype.parseStatement=function(...V){let R=W.call(this,...V);return this.undefinedExports={},R};try{let V=Y.parse(q,{onComment:J,sourceType:"module",ecmaVersion:16,locations:!0});return K(V),V}catch(V){return J6(V)}finally{if(j)Y.prototype.parseStatement=W}}function H1(q,Q,Z){let j=q.ts?K6:g0,{onComment:Y,add_comments:J}=X6(Q,q.root.comments,Z);try{let K=j.parseExpressionAt(Q,Z,{onComment:Y,sourceType:"module",ecmaVersion:16,locations:!0,preserveParens:!0});return J(K),K}catch(K){J6(K)}}function j4(q,Q,Z){let j=q.ts?K6:g0,{onComment:Y,add_comments:J}=X6(Q,q.root.comments,Z);try{let K=new j({onComment:Y,sourceType:"module",ecmaVersion:16,locations:!0},Q,Z);K.nextToken();let W=K.parseStatement(null,!0,Object.create(null));return J(W),W}catch(K){if(K.pos===Q.length)w8(Q.length);J6(K)}}var iQ=/ \(\d+:\d+\)$/;function J6(q){f5(q.pos,q.message.replace(iQ,""))}function L1(q){return s8(q,null,{ParenthesizedExpression(Q,Z){return Z.visit(Q.expression)}})}function X6(q,Q,Z=0){return{onComment:(j,Y,J,K,W,V)=>{if(j&&/\n/.test(Y)){let R=J;while(R>0&&q[R-1]!==`
82
- `)R-=1;let z=R;while(/[ \t]/.test(q[z]))z+=1;let M=q.slice(R,z);Y=Y.replace(new RegExp(`^${M}`,"gm"),"")}Q.push({type:j?"Block":"Line",value:Y,start:J,end:K,loc:{start:W,end:V}})},add_comments(j){if(Q.length===0)return;if(Q=Q.filter((Y)=>Y.start>=Z).map(({type:Y,value:J,start:K,end:W})=>({type:Y,value:J,start:K,end:W})),s8(j,null,{_(Y,{next:J,path:K}){let W;while(Q[0]&&Q[0].start<Y.start)W=Q.shift(),(Y.leadingComments||=[]).push(W);if(J(),Q[0]){let V=K.at(-1);if(V===void 0||Y.end!==V.end){let R=q.slice(Y.end,Q[0].start);if((V?.type==="BlockStatement"||V?.type==="Program")&&V.body.indexOf(Y)===V.body.length-1||V?.type==="ArrayExpression"&&V.elements.indexOf(Y)===V.elements.length-1||V?.type==="ObjectExpression"&&V.properties.indexOf(Y)===V.properties.length-1){let M=Y.end;while(Q.length){let $=Q[0];if(V&&$.start>=V.end)break;(Y.trailingComments||=[]).push($),Q.shift(),M=$.end}}else if(Y.end<=Q[0].start&&/^[,) \t]*$/.test(R))Y.trailingComments=[Q.shift()]}}}}),Q.length>0&&(Q[0].start>=j.end||j.type==="Program"))(j.trailingComments||=[]).push(...Q.splice(0))}}}function W6(q){if(q<0)return 1/0;return q}function pQ(q,Q,Z){let j;if(Z==="`")j=q;else j=q.slice(0,W6(q.indexOf(`
83
- `,Q)));return V6(j,Q,Z)}function oQ(q,Q){let Z=V6(q,Q,"/"),j=V6(q,Q,`
84
- `);return Z<j?Z:1/0}function V6(q,Q,Z){let j=Q;while(!0){let Y=q.indexOf(Z,j);if(Y===-1)return 1/0;if(sQ(q,Y-1)%2===0)return Y;j=Y+1}}function sQ(q,Q){let Z=Q,j=0;while(q[Z]==="\\")j++,Z--;return j}function x0(q,Q,Z){let j=_0[Z],Y=1,J=Q;while(Y>0&&J<q.length){let K=q[J];switch(K){case"'":case'"':case"`":J=pQ(q,J+1,K)+1;continue;case"/":{let W=q[J+1];if(!W){J++;continue}if(W==="/"){J=W6(q.indexOf(`
85
- `,J+1))+1;continue}if(W==="*"){J=W6(q.indexOf("*/",J+1))+2;continue}let V=oQ(q,J+1)+1;if(V===1/0)J++;else J=V;continue}default:{let W=q[J];if(W===Z)Y++;else if(W===j)Y--;if(Y===0)return J;J++}}}return}var _0={"{":"}","(":")","[":"]"},nQ=new Set(Object.values(_0));function c1(q,Q,Z=_0){let j=Z===_0?nQ:new Set(Object.values(Z)),Y=[],J=Q;while(J<q.template.length){let K=q.template[J++];if(K==="'"||K==='"'||K==="`"){J=aQ(q,J,K);continue}if(K in Z)Y.push(K);else if(j.has(K)){let W=Y.pop(),V=Z[W];if(K!==V)E8(J-1,V);if(Y.length===0)return J}}w8(q.template.length)}function aQ(q,Q,Z){let j=!1,Y=Q;while(Y<q.template.length){let J=q.template[Y++];if(j){j=!1;continue}if(J===Z)return Y;if(J==="\\")j=!0;if(Z==="`"&&J==="$"&&q.template[Y]==="{")Y=c1(q,Y)}q4(Q)}function G6(q,Q){let Z=x0(q.template,q.index,Q??"{");if(Z){let j=q.index;return q.index=Z,{type:"Identifier",start:j,end:Z,name:""}}}function z8(q,Q,Z){try{let j=H1(q,q.template,q.index),Y=j.end,J=q.root.comments.at(-1);if(J&&J.end>Y)Y=J.end;return q.index=Y,L1(j)}catch(j){if(q.loose&&!Z){let Y=G6(q,Q);if(Y)return Y}throw j}}function z6(q=[]){return{type:"ArrayExpression",elements:q}}function rQ(q,Q){return{type:"UnaryExpression",argument:Q,operator:q,prefix:!0}}var bJ=rQ("void",i1(0));function i1(q){return{type:"Literal",value:q}}var tQ=i1(!0),kJ=i1(!1),TJ=i1(null);function Y4(q){return Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="Text"}function U6(q){return q.value!==!0&&!Array.isArray(q.value)||Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="ExpressionTag"}function R6(q){return Array.isArray(q.value)?q.value[0].expression:q.value.expression}var eQ=/<\/script\s*>/,qZ=/<\/script\s*>/y,QZ=["server","client","worker","test","default"],ZZ=["context","generics","lang","module"];function H4(q,Q,Z){let j=q.index,Y=q.read_until(eQ);if(q.index>=q.template.length)h0(q.template.length,"script");let J=q.template.slice(0,j).replace(z0," ")+Y;q.read(qZ);let K=Z4(J,q.root.comments,q.ts,!0);if(K.start=j,K.loc)({line:K.loc.start.line,column:K.loc.start.column}=G8(Q)),{line:K.loc.end.line,column:K.loc.end.column}=G8(q.index);let W="default";for(let V of Z){if(QZ.includes(V.name))_5(V,V.name);if(!ZZ.includes(V.name))G2(V);if(V.name==="module"){if(V.value!==!0)g5(V,V.name);W="module"}if(V.name==="context"){if(V.value===!0||!Y4(V))j6(V);if(V.value[0].data!=="module")j6(V);W="module"}}return{type:"Script",start:Q,end:q.index,context:W,content:K,attributes:Z}}var jZ=/[~^$*|]?=/y,YZ=/[\s\]]/,HZ=/[a-zA-Z]+/y,X4=/(\+|~|>|\|\|)/y,K4=/\d+(\.\d+)?%/y,J4=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/y,KZ=/[\s:]/,JZ=/-?\d/y,XZ=/[a-zA-Z0-9_-]/,WZ=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y,VZ=/\*\//,GZ=/-->/;function F6(q,Q,Z){let j=q.index,Y=zZ(q,(K)=>K.match("</style")||K.index>=K.template.length),J=q.index;return q.eat("</style",!0),q.read(/\s*>/y),{type:"StyleSheet",start:Q,end:q.index,attributes:Z,children:Y,content:{start:j,end:J,styles:q.template.slice(j,J),comment:null}}}function zZ(q,Q){let Z=[];while(w1(q),!Q(q))if(q.match("@"))Z.push(W4(q));else Z.push(V4(q));return Z}function W4(q){let Q=q.index;q.eat("@",!0);let Z=t8(q),j=M6(q),Y=null;if(q.match("{"))Y=G4(q);else q.eat(";",!0);return{type:"Atrule",start:Q,end:q.index,name:Z,prelude:j,block:Y}}function V4(q){let Q=q.index;return{type:"Rule",prelude:B6(q),block:G4(q),start:Q,end:q.index,metadata:{parent_rule:null,has_local_selectors:!1,has_global_selectors:!1,is_global_block:!1}}}function B6(q,Q=!1){let Z=[];w1(q);let j=q.index;while(q.index<q.template.length){Z.push(OZ(q,Q));let Y=q.index;if(w1(q),Q?q.match(")"):q.match("{"))return{type:"SelectorList",start:j,end:Y,children:Z};else q.eat(",",!0),w1(q)}w8(q.template.length)}function OZ(q,Q=!1){let Z=q.index,j=[];function Y(K,W){return{type:"RelativeSelector",combinator:K,selectors:[],start:W,end:-1,metadata:{is_global:!1,is_global_like:!1,scoped:!1}}}let J=Y(null,q.index);while(q.index<q.template.length){let K=q.index;if(q.eat("&"))J.selectors.push({type:"NestingSelector",name:"&",start:K,end:q.index});else if(q.eat("*")){let R="*";if(q.eat("|"))R=t8(q);J.selectors.push({type:"TypeSelector",name:R,start:K,end:q.index})}else if(q.eat("#"))J.selectors.push({type:"IdSelector",name:t8(q),start:K,end:q.index});else if(q.eat("."))J.selectors.push({type:"ClassSelector",name:t8(q),start:K,end:q.index});else if(q.eat("::")){if(J.selectors.push({type:"PseudoElementSelector",name:t8(q),start:K,end:q.index}),q.eat("("))B6(q,!0),q.eat(")",!0)}else if(q.eat(":")){let R=t8(q),z=null;if(q.eat("("))z=B6(q,!0),q.eat(")",!0);J.selectors.push({type:"PseudoClassSelector",name:R,args:z,start:K,end:q.index})}else if(q.eat("[")){q.allow_whitespace();let R=t8(q);q.allow_whitespace();let z=null,M=q.read(jZ);if(M)q.allow_whitespace(),z=FZ(q);q.allow_whitespace();let $=q.read(HZ);q.allow_whitespace(),q.eat("]",!0),J.selectors.push({type:"AttributeSelector",start:K,end:q.index,name:R,matcher:M,value:z,flags:$})}else if(Q&&q.match_regex(J4))J.selectors.push({type:"Nth",value:q.read(J4),start:K,end:q.index});else if(q.match_regex(K4))J.selectors.push({type:"Percentage",value:q.read(K4),start:K,end:q.index});else if(!q.match_regex(X4)){let R=t8(q);if(q.eat("|"))R=t8(q);J.selectors.push({type:"TypeSelector",name:R,start:K,end:q.index})}let W=q.index;if(w1(q),q.match(",")||(Q?q.match(")"):q.match("{")))return q.index=W,J.end=W,j.push(J),{type:"ComplexSelector",start:Z,end:W,children:j,metadata:{rule:null,is_global:!1,used:!1}};q.index=W;let V=UZ(q);if(V){if(J.selectors.length>0)J.end=W,j.push(J);if(J=Y(V,V.start),q.allow_whitespace(),q.match(",")||(Q?q.match(")"):q.match("{")))M5(q.index)}}w8(q.template.length)}function UZ(q){let Q=q.index;q.allow_whitespace();let Z=q.index,j=q.read(X4);if(j){let Y=q.index;return q.allow_whitespace(),{type:"Combinator",name:j,start:Z,end:Y}}if(q.index!==Q)return{type:"Combinator",name:" ",start:Q,end:q.index};return null}function G4(q){let Q=q.index;q.eat("{",!0);let Z=[];while(q.index<q.template.length)if(w1(q),q.match("}"))break;else Z.push(RZ(q));return q.eat("}",!0),{type:"Block",start:Q,end:q.index,children:Z}}function RZ(q){if(q.match("@"))return W4(q);let Q=q.index;M6(q);let Z=q.template[q.index];return q.index=Q,Z==="{"?V4(q):BZ(q)}function BZ(q){let Q=q.index,Z=q.read_until(KZ);q.allow_whitespace(),q.eat(":");let j=q.index;q.allow_whitespace();let Y=M6(q);if(!Y&&!Z.startsWith("--"))F5({start:Q,end:j});let J=q.index;if(!q.match("}"))q.eat(";",!0);return{type:"Declaration",start:Q,end:J,property:Z,value:Y}}function M6(q){let Q="",Z=!1,j=!1,Y=null;while(q.index<q.template.length){let J=q.template[q.index];if(Z){Q+="\\"+J,Z=!1,q.index++;continue}else if(J==="\\"){Z=!0,q.index++;continue}else if(J===Y)Y=null;else if(J===")")j=!1;else if(Y===null&&(J==='"'||J==="'"))Y=J;else if(J==="("&&Q.slice(-3)==="url")j=!0;else if((J===";"||J==="{"||J==="}")&&!j&&!Y)return Q.trim();else if(J==="/"&&!j&&!Y&&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+=J,q.index++}w8(q.template.length)}function FZ(q){let Q="",Z=!1,j=q.eat('"')?'"':q.eat("'")?"'":null;while(q.index<q.template.length){let Y=q.template[q.index];if(Z)Q+="\\"+Y,Z=!1;else if(Y==="\\")Z=!0;else if(j?Y===j:YZ.test(Y)){if(j)q.eat(j,!0);return Q.trim()}else Q+=Y;q.index++}w8(q.template.length)}function t8(q){let Q=q.index,Z="";if(q.match_regex(JZ))r9(Q);while(q.index<q.template.length){let j=q.template[q.index];if(j==="\\"){let Y=q.match_regex(WZ);if(Y)Z+=String.fromCodePoint(parseInt(Y.slice(1),16)),q.index+=Y.length;else Z+="\\"+q.template[q.index+1],q.index+=2}else if(j.codePointAt(0)>=160||XZ.test(j))Z+=j,q.index++;else break}if(Z==="")r9(Q);return Z}function w1(q){q.allow_whitespace();while(q.match("/*")||q.match("<!--")){if(q.eat("/*"))q.read_until(VZ),q.eat("*/",!0);if(q.eat("<!--"))q.read_until(GZ),q.eat("-->",!0);q.allow_whitespace()}}var $6={"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 MZ=[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 $Z(q,Q){if(Q&&!q.endsWith(";"))return`${q}\\b(?!=)`;return q}function O4(q){let Z=Object.keys($6).map((Y)=>$Z(Y,q));return new RegExp(`&(#(?:x[a-fA-F\\d]+|\\d+)(?:;)?|${Z.join("|")})`,"g")}var LZ=O4(!1),wZ=O4(!0);function d1(q,Q){let Z=Q?wZ:LZ;return q.replace(Z,(j,Y)=>{let J;if(Y[0]!=="#")J=$6[Y];else if(Y[1]==="x")J=parseInt(Y.substring(2),16);else J=parseInt(Y.substring(1),10);if(!J)return j;return String.fromCodePoint(AZ(J))})}var z4=0;function AZ(q){if(q===10)return 32;if(q<128)return q;if(q<=159)return MZ[q-128];if(q<55296)return q;if(q<=57343)return z4;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 z4}function V8(q=!1){return{type:"Fragment",nodes:[],metadata:{transparent:q,dynamic:!1}}}var CZ=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function U4(q){return CZ.includes(q.type)}function u0(q,Q,Z,j,Y){return{type:"Attribute",start:Z,end:j,name:q,name_loc:Q,value:Y,metadata:{delegated:!1,needs_clsx:!1}}}class H8{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 z6([...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 R4={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 B4(q,Q){let Z=R4[q];if(Z){if(!Q||("direct"in Z?Z.direct:Z.descendant).includes(Q))return!0}return!1}var tJ={...R4,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 F4(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 IZ=/(\/>|[\s"'=<>`])/y,L6=/<\/textarea(\s[^>]*)?>/iy,PZ=/-->/,M4=/(\s|\/|>)/,L4=/[\s=/>"']/,w4=/["']/y,SZ=/(?:"([^"]*)"|'([^'])*'|([^>\s]+))/y,DZ=/^![a-zA-Z]+$/,NZ=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/;function bZ(q){if(DZ.test(q))return!0;if(NZ.test(q))return!0;return Z2.test(q)}var $4=/^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u,A4=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),m0=new Map([...A4,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function w6(q){let Q=q.index++,Z=q.current();if(q.eat("!--")){let F=q.read_until(PZ);q.eat("-->",!0),q.append({type:"Comment",start:Q,end:q.index,data:F});return}if(q.eat("/")){let F=q.read_until(M4);if(q.allow_whitespace(),q.eat(">",!0),N9(F))Q4(Q);while(Z.name!==F){if(q.loose){if(U4(Z)){let P=Z.attributes.at(-1);if(P?.type==="Attribute"&&P.name===`<${F}`){q.index=P.start,Z.attributes.pop();break}}}if(Z.type==="RegularElement"){if(!q.last_auto_closed_tag||q.last_auto_closed_tag.tag!==F){let P=Z.fragment.nodes[0]?.start??Q;v9({start:Z.start,end:P},`</${F}>`,`</${Z.name}>`)}}else if(!q.loose)if(q.last_auto_closed_tag&&q.last_auto_closed_tag.tag===F)k5(Q,F,q.last_auto_closed_tag.reason);else b5(Q,F);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 j=A6(q,M4);if(j.name.startsWith("svelte:")&&!m0.has(j.name)){let F={start:Q+1,end:Q+1+j.name.length};d5(F,F4(Array.from(m0.keys())))}if(!bZ(j.name)&&!$4.test(j.name)){if(!q.loose||!j.name.endsWith(".")){let F={start:Q+1,end:Q+1+j.name.length};r5(F)}}if(A4.has(j.name)){if(j.name in q.meta_tags)l5(Q,j.name);if(Z.type!=="Root")i5(Q,j.name);q.meta_tags[j.name]=!0}let Y=m0.has(j.name)?m0.get(j.name):$4.test(j.name)||q.loose&&j.name.endsWith(".")?"Component":j.name==="title"&&kZ(q.stack)?"TitleElement":j.name==="slot"&&!TZ(q.stack)?"SlotElement":"RegularElement",J=Y==="RegularElement"?{type:Y,start:Q,end:-1,name:j.name,name_loc:j.loc,attributes:[],fragment:V8(!0),metadata:{svg:!1,mathml:!1,scoped:!1,has_spread:!1,path:[],synthetic_value_node:null}}:{type:Y,start:Q,end:-1,name:j.name,name_loc:j.loc,attributes:[],fragment:V8(!0),metadata:{}};if(q.allow_whitespace(),Z.type==="RegularElement"&&B4(Z.name,j.name)){let F=Z.fragment.nodes[0]?.start??Q;v9({start:Z.start,end:F},`<${j.name}>`,`</${Z.name}>`),Z.end=Q,q.pop(),q.last_auto_closed_tag={tag:Z.name,reason:j.name,depth:q.stack.length}}let K=[],W=q.current(),V=(j.name==="script"||j.name==="style")&&W.type==="Root",R=V?EZ:vZ,z;while(z=R(q)){if(z.type==="Attribute"||z.type==="BindDirective"||z.type==="StyleDirective"||z.type==="ClassDirective"){let F=z.type==="BindDirective"?"Attribute":z.type;if(K.includes(F+z.name))$5(z);else if(z.name!=="this")K.push(F+z.name)}J.attributes.push(z),q.allow_whitespace()}if(J.type==="Component")J.metadata.expression=new H8;if(J.type==="SvelteComponent"){let F=J.attributes.findIndex((A)=>A.type==="Attribute"&&A.name==="this");if(F===-1)m5(Q);let P=J.attributes.splice(F,1)[0];if(!U6(P))u5(P.start);J.expression=R6(P),J.metadata.expression=new H8}if(J.type==="SvelteElement"){let F=J.attributes.findIndex((A)=>A.type==="Attribute"&&A.name==="this");if(F===-1)Y6(Q);let P=J.attributes.splice(F,1)[0];if(P.value===!0)Y6(P);if(!U6(P)){z2(P);let A=P.value[0];J.tag=A.type==="Text"?{type:"Literal",value:A.data,raw:`'${A.raw}'`,start:A.start,end:A.end}:A.expression}else J.tag=R6(P);J.metadata.expression=new H8}if(V){q.eat(">",!0);let F=null;for(let P=W.fragment.nodes.length-1;P>=0;P--){let A=W.fragment.nodes[P];if(P===W.fragment.nodes.length-1&&A.end!==Q)break;if(A.type==="Comment"){F=A;break}else if(A.type!=="Text"||A.data.trim())break}if(j.name==="script"){let P=H4(q,Q,J.attributes);if(F)P.content.leadingComments=[{type:"Line",value:F.data}];if(P.context==="module"){if(W.module)Z6(Q);W.module=P}else{if(W.instance)Z6(Q);W.instance=P}}else{let P=F6(q,Q,J.attributes);if(P.content.comment=F,W.css)x5(Q);W.css=P}return}q.append(J);let M=q.eat("/")||N9(j.name),$=q.eat(">",!0,!1);if(!$){let F=J.attributes.at(-1);if(F?.type==="Attribute"&&F.name==="<")q.index=F.start,J.attributes.pop();else{let P=q.template[q.index-1],A=q.template[q.index-2],D=q.template[q.index];if(A==="{"&&P==="/")q.index-=2;else if(P==="{"&&(D==="#"||D==="@"||D===":"))q.index-=1;else q.allow_whitespace()}}if(M||!$)J.end=q.index;else if(j.name==="textarea")J.fragment.nodes=C4(q,()=>{return L6.lastIndex=q.index,L6.test(q.template)},"inside <textarea>"),q.read(L6),J.end=q.index;else if(j.name==="script"||j.name==="style"){let F=q.index,P=`</${j.name}>`,A=q.template.indexOf(P,q.index),D=q.template.slice(q.index,A===-1?q.template.length:A);q.index=A===-1?q.template.length:A;let v=q.index,y={start:F,end:v,type:"Text",data:D,raw:D};J.fragment.nodes.push(y),q.eat(`</${j.name}>`,!0),J.end=q.index}else q.stack.push(J),q.fragments.push(J.fragment)}function kZ(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 TZ(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 EZ(q){let Q=q.index,Z=A6(q,L4);if(!Z.name)return null;let j=!0;if(q.eat("=")){q.allow_whitespace();let Y=q.match_regex(SZ);if(!Y)q6(q.index);q.index+=Y.length;let J=Y[0]==='"'||Y[0]==="'";if(J)Y=Y.slice(1,-1);j=[{start:q.index-Y.length-(J?1:0),end:J?q.index-1:q.index,type:"Text",raw:Y,data:d1(Y,!0)}]}if(q.match_regex(w4))E8(q.index,"=");return u0(Z.name,Z.loc,Q,q.index,j)}function vZ(q){let Q=null;while(Q=hZ(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 V=z8(q);return q.allow_whitespace(),q.eat("}",!0),{type:"AttachTag",start:Z,end:q.index,expression:V,metadata:{expression:new H8}}}if(q.eat("...")){let V=z8(q);return q.allow_whitespace(),q.eat("}",!0),{type:"SpreadAttribute",start:Z,end:q.index,expression:V,metadata:{expression:new H8}}}else{let V=q.read_identifier();if(V.name==="")if(q.loose&&(q.match("#")||q.match("/")||q.match("@")||q.match(":")))return null;else if(q.loose&&q.match("}"));else L5(Z);q.allow_whitespace(),q.eat("}",!0);let R={type:"ExpressionTag",start:V.start,end:V.end,expression:V,metadata:{expression:new H8}};return u0(V.name,V.loc,Z,q.index,R)}}let j=A6(q,L4);if(!j.name)return null;let Y=q.index;q.allow_whitespace();let J=j.name.indexOf(":"),K=J!==-1&&fZ(j.name.slice(0,J)),W=!0;if(q.eat("="))if(q.allow_whitespace(),q.template[q.index]==="/"&&q.template[q.index+1]===">"){let V=q.index;q.index++,W=[{start:V,end:V+1,type:"Text",raw:"/",data:"/"}],Y=q.index}else W=yZ(q),Y=q.index;else if(q.match_regex(w4))E8(q.index,"=");if(K){let[V,...R]=j.name.slice(J+1).split("|");if(V==="")N5({start:Z,end:Z+J+1},j.name);if(K==="StyleDirective")return{start:Z,end:Y,type:K,name:V,name_loc:j.loc,modifiers:R,value:W,metadata:{expression:new H8}};let z=W===!0?void 0:Array.isArray(W)?W[0]:W,M=null;if(z)if(W.length>1||z.type==="Text")D5(z.start);else M=z.expression;let $={start:Z,end:Y,type:K,name:V,name_loc:j.loc,expression:M,metadata:{expression:new H8}};if($.modifiers=R,$.type==="TransitionDirective"){let F=j.name.slice(0,J);$.intro=F==="in"||F==="transition",$.outro=F==="out"||F==="transition"}if(($.type==="BindDirective"||$.type==="ClassDirective")&&!$.expression)$.expression={start:Z+J+1,end:Y,type:"Identifier",name:$.name};return $}return u0(j.name,j.loc,Z,Y,W)}function hZ(q){let Q=q.index;if(q.eat("//")){let Z=q.read_until(/\n/),j=q.index;return{type:"Line",start:Q,end:j,value:Z,loc:{start:G8(Q),end:G8(j)}}}if(q.eat("/*")){let Z=q.read_until(/\*\//);q.eat("*/");let j=q.index;return{type:"Block",start:Q,end:j,value:Z,loc:{start:G8(Q),end:G8(j)}}}return null}function fZ(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 yZ(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=C4(q,()=>{if(Q)return q.match(Q);return!!q.match_regex(IZ)},"in attribute value")}catch(j){if(j.code==="js_parse_error"){let Y=j.position?.[0];if(Y!==void 0&&q.template.slice(Y-1,Y+1)==="/>")q.index=Y,E8(Y,Q||"}")}throw j}if(Z.length===0&&!Q)q6(q.index);if(Q)q.index+=1;if(Q||Z.length>1||Z[0].type==="Text")return Z;else return Z[0]}function C4(q,Q,Z){let j={start:q.index,end:-1,type:"Text",raw:"",data:""},Y=[];function J(K){if(K>j.start)j.raw=q.template.slice(j.start,K),j.data=d1(j.raw,!0),j.end=K,Y.push(j)}while(q.index<q.template.length){let K=q.index;if(Q())return J(q.index),Y;else if(q.eat("{")){if(q.match("#")){let R=q.index-1;q.eat("#");let z=q.read_until(/[^a-z]/);C5(R,z,Z)}else if(q.match("@")){let R=q.index-1;q.eat("@");let z=q.read_until(/[^a-z]/);t5(R,z,Z)}J(q.index-1),q.allow_whitespace();let W=z8(q);q.allow_whitespace(),q.eat("}",!0);let V={type:"ExpressionTag",start:K,end:q.index,expression:W,metadata:{expression:new H8}};Y.push(V),j={start:q.index,end:-1,type:"Text",raw:"",data:""}}else q.index++}if(q.loose)return Y;else w8(q.template.length)}function A6(q,Q){let Z=q.index,j=q.read_until(Q),Y=q.index;return{type:"Identifier",name:j,start:Z,end:Y,loc:{start:G8(Z),end:G8(Y)}}}function _8(q){let{index:Q,index:Z}=q,j=q.read_identifier();if(j.name!==""){let R=I4(q);return{...j,typeAnnotation:R}}let Y=q.template[Z];if(Y!=="{"&&Y!=="[")E5(Z);Z=c1(q,Q),q.index=Z;let J=q.template.slice(Q,Z),K=q.template.slice(0,Q).replace(z0," "),W=K.indexOf(" ");K=K.slice(0,W)+K.slice(W+1);let V=L1(H1(q,`${K}(${J} = 1)`,Q-1));if(V=V.left,V.typeAnnotation=I4(q),V.typeAnnotation)V.end=V.typeAnnotation.end;return V}function I4(q){let Q=q.index;if(q.allow_whitespace(),!q.eat(":")){q.index=Q;return}let Z="_ as ",j=q.index-Z.length,Y=q.template.slice(0,j).replace(/[^\n]/g," ")+Z+q.template.slice(q.index).replace(/\?\s*:/g,":"),J=L1(H1(q,Y,j));if(J.type==="AssignmentExpression"){let K=J.right.start;while(Y[K]!=="=")K-=1;J=L1(H1(q,Y.slice(0,K),j))}if(J.type==="SequenceExpression")J=J.expressions[0];return q.index=J.end,{type:"TSTypeAnnotation",start:Q,end:q.index,typeAnnotation:J.typeAnnotation}}var C6=/\s*}/y,gZ=/(?:let|const)\b/y,_Z=/(?:var|interface|enum)\b/y,xZ=/type\b/y,uZ={"<":">"};function P6(q){let Q=q.index;if(q.index+=1,q.allow_whitespace(),q.eat("#"))return lZ(q);if(q.eat(":"))return cZ(q);if(q.eat("@"))return iZ(q);if(q.match("/")){if(!q.match("/*")&&!q.match("//"))return q.eat("/"),I6(q)}let Z=mZ(q);if(Z){q.append({type:"DeclarationTag",start:Q,end:q.index,declaration:Z,metadata:{expression:new H8}});return}let j=z8(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ExpressionTag",start:Q,end:q.index,expression:j,metadata:{expression:new H8}})}function mZ(q){let Q=q.index,Z=q.match_regex(_Z);if(Z)v0({start:Q,end:Q+Z.length});if(!q.match_regex(gZ)&&!q.match_regex(xZ))return null;let j=q.root.comments.length,Y;try{Y=j4(q,q.template,Q)}catch(J){if(!q.loose)throw J;let K=x0(q.template,Q,"{");if(K===void 0)throw J;q.index=K,Y={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(Y.type!=="VariableDeclaration")if(Y.type==="ExpressionStatement")return q.root.comments.length=j,null;else v0({start:Y.start??Q,end:Y.end??q.index});if(Y.kind!=="let"&&Y.kind!=="const")v0(Y);return q.index=Y.end,q.allow_whitespace(),q.eat("}",!0),Y}function lZ(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:z8(q),consequent:V8(),alternate:null,metadata:{expression:new H8}});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,j=q.template.length,Y;while(!Y)try{Y=z8(q,void 0,!0)}catch(z){j=z.position[0]-2;while(j>Q&&q.template.slice(j,j+2)!=="as")j-=1;if(j<=Q){if(q.loose){if(Y=G6(q),Y)break}throw z}q.template=Z.slice(0,j)}if(q.template=Z,q.allow_whitespace(),!q.match("as")){if(Y.type==="SequenceExpression")Y=Y.expressions[0];let z=null,M=Y.end;if(Y=s8(Y,null,{TSAsExpression($,F){if($.end===Y.end)return z=$,M=$.expression.end,$.expression;F.next()}}),Y.end=M,z){let $=z.typeAnnotation.start-2;while(q.template.slice($,$+2)!=="as")$-=1;q.index=$}}let J=null,K,W;if(q.eat("as"))q.require_whitespace(),J=_8(q);else q.index=Y.end;if(q.allow_whitespace(),q.eat(",")){if(q.allow_whitespace(),K=q.read_identifier().name,!K)Q6(q.index);q.allow_whitespace()}if(q.eat("("))q.allow_whitespace(),W=z8(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 z=q.index;J=_8(q),q.eat("}",!0),Y={type:"Identifier",name:"",start:Y.start,end:z-4}}else q.eat("}",!0);let R=q.append({type:"EachBlock",start:Q,end:-1,expression:Y,body:V8(),context:J,index:K,key:W,metadata:null});q.stack.push(R),q.fragments.push(R.body);return}if(q.eat("await")){q.require_whitespace();let Z=z8(q);q.allow_whitespace();let j=q.append({type:"AwaitBlock",start:Q,end:-1,expression:Z,value:null,error:null,pending:null,then:null,catch:null,metadata:{expression:new H8}});if(q.eat("then")){if(q.match_regex(C6))q.allow_whitespace();else q.require_whitespace(),j.value=_8(q),q.allow_whitespace();j.then=V8(),q.fragments.push(j.then)}else if(q.eat("catch")){if(q.match_regex(C6))q.allow_whitespace();else q.require_whitespace(),j.error=_8(q),q.allow_whitespace();j.catch=V8(),q.fragments.push(j.catch)}else j.pending=V8(),q.fragments.push(j.pending);if(!q.eat("}",!0,!1))if(q.template.slice(q.index-6,q.index)===" then "){let J=q.index;j.value=_8(q),q.eat("}",!0),j.expression={type:"Identifier",name:"",start:Z.start,end:J-6},j.then=j.pending,j.pending=null}else if(q.template.slice(q.index-7,q.index)===" catch "){let J=q.index;j.error=_8(q),q.eat("}",!0),j.expression={type:"Identifier",name:"",start:Z.start,end:J-7},j.catch=j.pending,j.pending=null}else q.eat("}",!0);q.stack.push(j);return}if(q.eat("key")){q.require_whitespace();let Z=z8(q);q.allow_whitespace(),q.eat("}",!0);let j=q.append({type:"KeyBlock",start:Q,end:-1,expression:Z,fragment:V8(),metadata:{expression:new H8}});q.stack.push(j),q.fragments.push(j.fragment);return}if(q.eat("snippet")){q.require_whitespace();let Z=q.read_identifier();if(Z.name===""&&!q.loose)Q6(q.index);q.allow_whitespace();let j=q.index,Y;if(q.ts&&q.match("<")){let z=q.index,M=c1(q,z,uZ);Y=q.template.slice(z+1,M-1),q.index=M}q.allow_whitespace();let J=q.eat("(",!0,!1);if(J){let z=1;while(q.index<q.template.length&&(!q.match(")")||z!==1)){if(q.match("("))z++;if(q.match(")"))z--;q.index+=1}q.eat(")",!0)}let K=q.template.slice(0,j).replace(/\S/g," "),W=q.template.slice(j,q.index),V=J?H1(q,K+`${W} => {}`,j):{params:[]};q.allow_whitespace(),q.eat("}",!0);let R=q.append({type:"SnippetBlock",start:Q,end:-1,expression:Z,typeParams:Y,parameters:V.params,body:V8(),metadata:{can_hoist:!1,sites:new Set}});q.stack.push(R),q.fragments.push(R.body);return}T5(q.index)}function cZ(q){let Q=q.index-1,Z=q.current();if(Z.type==="IfBlock"){if(!q.eat("else"))E8(Q,"{:else} or {:else if}");if(q.eat("if"))A5(Q);if(q.allow_whitespace(),q.fragments.pop(),Z.alternate=V8(),q.fragments.push(Z.alternate),q.eat("if")){q.require_whitespace();let j=z8(q);q.allow_whitespace(),q.eat("}",!0);let Y=Q-1;while(q.template[Y]!=="{")Y-=1;let J=q.append({start:Y,end:-1,type:"IfBlock",elseif:!0,test:j,consequent:V8(),alternate:null,metadata:{expression:new H8}});q.stack.push(J),q.fragments.pop(),q.fragments.push(J.consequent)}else q.allow_whitespace(),q.eat("}",!0);return}if(Z.type==="EachBlock"){if(!q.eat("else"))E8(Q,"{:else}");q.allow_whitespace(),q.eat("}",!0),Z.fallback=V8(),q.fragments.pop(),q.fragments.push(Z.fallback);return}if(Z.type==="AwaitBlock"){if(q.eat("then")){if(Z.then)t9(Q,"{:then}");if(!q.eat("}"))q.require_whitespace(),Z.value=_8(q),q.allow_whitespace(),q.eat("}",!0);Z.then=V8(),q.fragments.pop(),q.fragments.push(Z.then);return}if(q.eat("catch")){if(Z.catch)t9(Q,"{:catch}");if(!q.eat("}"))q.require_whitespace(),Z.error=_8(q),q.allow_whitespace(),q.eat("}",!0);Z.catch=V8(),q.fragments.pop(),q.fragments.push(Z.catch);return}E8(Q,"{:then ...} or {:catch ...}")}w5(Q)}function I6(q){let Q=q.index-1,Z=q.current(),j;switch(Z.type){case"IfBlock":if(j=q.eat("if",!0,!1),!j){Z.end=Q-1,q.pop(),I6(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":j=q.eat("each",!0,!1);break;case"KeyBlock":j=q.eat("key",!0,!1);break;case"AwaitBlock":j=q.eat("await",!0,!1);break;case"SnippetBlock":j=q.eat("snippet",!0,!1);break;case"RegularElement":if(q.loose)j=!1;else e9(Q);break;default:e9(Q)}if(!j){Z.end=Q-1,q.pop(),I6(q);return}q.allow_whitespace(),q.eat("}",!0),Z.end=q.index,q.pop()}function iZ(q){let Q=q.index;while(q.template[Q]!=="{")Q-=1;if(q.eat("html")){q.require_whitespace();let Z=z8(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"HtmlTag",start:Q,end:q.index,expression:Z,metadata:{expression:new H8}});return}if(q.eat("debug")){let Z;if(q.read(C6))Z=[];else{let j=z8(q);Z=j.type==="SequenceExpression"?j.expressions:[j],Z.forEach((Y)=>{if(Y.type!=="Identifier")S5(Y.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=_8(q);q.allow_whitespace(),q.eat("=",!0),q.allow_whitespace();let j=q.index,Y=z8(q),J=q.index;if(Y.type==="SequenceExpression"&&!q.template.substring(j,Y.start).includes("("))P5(Y);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:Y,start:Z.start,end:J}],start:Q+2,end:q.index-1},metadata:{expression:new H8}});return}if(q.eat("render")){q.require_whitespace();let Z=z8(q);if(Z.type!=="CallExpression"&&(Z.type!=="ChainExpression"||Z.expression.type!=="CallExpression"))y5(Z);q.allow_whitespace(),q.eat("}",!0),q.append({type:"RenderTag",start:Q,end:q.index,expression:Z,metadata:{expression:new H8,dynamic:!1,arguments:[],path:[],snippets:new Set}});return}v5(q.index)}function S6(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:d1(Z,!1)})}function p1(q){if(q.match("<"))return w6;if(q.match("{"))return P6;return S6}function D6(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")o5(Z);let{name:j}=Z;switch(j){case"runes":{Q.runes=l0(Z);break}case"tag":{p5(Z);break}case"customElement":{let Y={},{value:J}=Z,K=J===!0||Array.isArray(J)?J:[J];if(K===!0)y0(Z);else if(K[0].type==="Text"){let $=c0(Z);S4(Z,$),Y.tag=$,Q.customElement=Y;break}else if(K[0].expression.type!=="ObjectExpression"){if(K[0].expression.type==="Literal"&&K[0].expression.value===null)break;y0(Z)}let W=[];for(let $ of K[0].expression.properties){if($.type!=="Property"||$.computed||$.key.type!=="Identifier")y0(Z);W.push([$.key.name,$.value])}let V=W.find(([$])=>$==="tag");if(V){let $=V[1]?.value;S4(V,$),Y.tag=$}let R=W.find(([$])=>$==="props")?.[1];if(R){if(R.type!=="ObjectExpression")Y1(Z);Y.props={};for(let $ of R.properties){if($.type!=="Property"||$.computed||$.key.type!=="Identifier"||$.value.type!=="ObjectExpression")Y1(Z);Y.props[$.key.name]={};for(let F of $.value.properties){if(F.type!=="Property"||F.computed||F.key.type!=="Identifier"||F.value.type!=="Literal")Y1(Z);if(F.key.name==="type"){if(["String","Number","Boolean","Array","Object"].indexOf(F.value.value)===-1)Y1(Z);Y.props[$.key.name].type=F.value.value}else if(F.key.name==="reflect"){if(typeof F.value.value!=="boolean")Y1(Z);Y.props[$.key.name].reflect=F.value.value}else if(F.key.name==="attribute"){if(typeof F.value.value!=="string")Y1(Z);Y.props[$.key.name].attribute=F.value.value}else Y1(Z)}}}let z=W.find(([$])=>$==="shadow")?.[1];if(z)if(z.type==="Literal"&&(z.value==="open"||z.value==="none"))Y.shadow=z.value;else if(z.type==="ObjectExpression")Y.shadow=z;else s5(Z);let M=W.find(([$])=>$==="extend")?.[1];if(M)Y.extend=M;Q.customElement=Y;break}case"namespace":{let Y=c0(Z);if(Y===s7)Q.namespace="svg";else if(Y===n7)Q.namespace="mathml";else if(Y==="html"||Y==="mathml"||Y==="svg")Q.namespace=Y;else f0(Z,'"html", "mathml" or "svg"');break}case"css":{let Y=c0(Z);if(Y==="injected")Q.css=Y;else f0(Z,'"injected"');break}case"immutable":{Q.immutable=l0(Z);break}case"preserveWhitespace":{Q.preserveWhitespace=l0(Z);break}case"accessors":{Q.accessors=l0(Z);break}default:a5(Z,j)}}return Q}function c0(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 l0(q){let Q=c0(q);if(typeof Q!=="boolean")f0(q,"true or false");return Q}var P4="[a-z0-9_.·À-ÖØ-öø-ͽͿ-῿‌-‍‿-⁀⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF-]",dZ=new RegExp(`^[a-z]${P4}*-${P4}*$`,"u"),pZ=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function S4(q,Q){if(typeof Q!=="string")H6(q);if(Q){if(!dZ.test(Q))H6(q);else if(pZ.includes(Q))n5(q)}}function D4(q){let{nodes:Q}=q.fragment;if(Q.length>0){let Z=Q[0],j=Q[Q.length-1];c5({start:Z.start,end:j.end},q.name)}}function N4(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 b4=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g;class N6{template;loose;index=0;static forCss(q){let Q=Object.create(N6.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=b4.exec(q);while(Z&&Z[0][1]!=="s");b4.lastIndex=0,this.ts=Z?.[2]==="ts",this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:V8(),options:null,comments:[],metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let j=p1;while(this.index<this.template.length)j=j(this)||p1;if(this.stack.length>1){let J=this.current();if(this.loose)J.end=this.template.length;else if(J.type==="RegularElement")J.end=J.start+1,h0(J,J.name);else J.end=J.start+1,I5(J)}if(j!==p1)w8(this.index);this.root.start=0,this.root.end=q.length;let Y=this.root.fragment.nodes.findIndex((J)=>J.type==="SvelteOptions");if(Y!==-1){let J=this.root.fragment.nodes[Y];this.root.fragment.nodes.splice(Y,1),this.root.options=D6(J),D4(J),Object.defineProperty(this.root.options,"__raw__",{value:J,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))E8(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&&N4(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="",j=this.template.codePointAt(this.index);if(A8(j,!0)){let Y=this.index;Q+=j<=65535?1:2;while(Q<this.template.length){let J=this.template.codePointAt(Q);if(!y8(J,!0))break;Q+=J<=65535?1:2}if(Z=this.template.slice(q,Q),this.index=Q,Q2(Z))e5(q,Z)}return{type:"Identifier",name:Z,start:q,end:Q,loc:{start:G8(q),end:G8(Q)}}}read_until(q){if(this.index>=this.template.length){if(this.loose)return"";w8(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(!N4(this.template.charCodeAt(this.index)))h5(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 k4(q,Q=!1){return j2(q),new N6(q,Q).root}function oZ(q){return q.charCodeAt(0)===65279?q.slice(1):q}function b6(q){delete q.metadata}function k6(q){if(!q||typeof q!=="object"||typeof q.type!=="string")return;b6(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 j of Z)k6(j);else k6(Z)}}function T4(q,Q,Z){if(Z){for(let j of Q.options?.attributes??[])if(b6(j),j.value)for(let Y of Array.isArray(j.value)?j.value:[j.value])b6(Y);return k6(Q),Q}return R2(q,Q)}function T6(q){if(q===null||typeof q!=="object")return q;if(Array.isArray(q))return q.map(T6);let Q={};for(let Z in q)Q[Z]=T6(q[Z]);return Q}function E4(q,{loose:Q}={}){let Z=oZ(q);H2({warning:()=>!1,filename:void 0});let j=k4(Z,Q),Y=T4(Z,j,!0),J=T6(Y),K=T4(Z,J,!1);return{modern:Y,legacy:K}}function v4(q){if(q==="var")return"let";if(q==="using"||q==="await using")return"const";return q}var sZ=null,h4=/^@component/,nZ=/\r/g,aZ=/^\{\s*\}$/;class O8{ctx=Q9();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((j)=>j!==void 0),Z=!1;for(let j of Q){let Y=j.attributes?.find((K)=>K.name==="lang");if(!Y){Z=!0;continue}if(O8.getStaticAttributeValue(Y)?.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=J8(this.ctx,Q),j=q.instance?.attributes?.find((K)=>K.name==="lang");if((j?O8.getStaticAttributeValue(j)?.toLowerCase():void 0)!=="ts"){p8(this.ctx,"syntax-skipped","generics",'<script generics="..."> requires lang="ts"; the generics attribute was ignored because the script is not TypeScript.',Z);return}let J=O8.getStaticAttributeValue(Q);if(!J)return;return{value:J,source:Z}}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(m8(q))return q.name;if(J1(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,j=Q.property&&"name"in Q.property?Q.property.name:void 0;if(!Z||!j)return!1;if(Z==="Number")return["POSITIVE_INFINITY","NEGATIVE_INFINITY","MAX_VALUE","MIN_VALUE","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","EPSILON","NaN"].includes(j);if(Z==="Math")return["PI","E","LN2","LN10","LOG2E","LOG10E","SQRT2","SQRT1_2"].includes(j);return!1}resolveLocalVarJSDoc(q){for(let Z of this.ctx.vars)if(Z.declarations.some((Y)=>Y.id&&typeof Y.id==="object"&&("type"in Y.id)&&Y.id.type==="Identifier"&&("name"in Y.id)&&Y.id.name===q))return Q1(this.ctx,this,Z);let Q=this.ctx.funcDecls.get(q);if(Q)return Q1(this.ctx,this,Q);return}addModuleExport(q,Q){if(I8(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=i7(this.ctx,this),this.ctx.variableInfoCacheBuilt=!0;let Z=this.ctx.variableInfoCache.get(q),j=this.ctx.explicitVariableTypesByName.get(q);if(j)return{type:j,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=Q9()}static SCRIPT_BLOCK_REGEX=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi;static TS_DIRECTIVE_REGEX=/\/\/\s*@ts-[^\n\r]*/g;static stripTypeScriptDirectivesFromScripts(q){return O8.SCRIPT_BLOCK_REGEX.lastIndex=0,q.replace(O8.SCRIPT_BLOCK_REGEX,(Q,Z,j,Y)=>{O8.TS_DIRECTIVE_REGEX.lastIndex=0;let J=j.replace(O8.TS_DIRECTIVE_REGEX,"");return Z+J+Y})}parseSvelteComponent(q,Q){this.cleanup(),this.ctx.componentFilePath=Q.filePath;let Z=O8.stripTypeScriptDirectivesFromScripts(q);this.ctx.source=Z;let{modern:j,legacy:Y}=E4(Z);if(g7(this,this.ctx,j),this.ctx.parsed=Y,this.ctx.scriptLanguage==="ts")G0(this.ctx.parsed.module),G0(this.ctx.parsed.instance),G0(this.ctx.parsed.html);this.ctx.syntaxMode=y7(this.ctx);let J=this.ctx.parsed.css,K=J?.start!==void 0&&J?.end!==void 0?Z.slice(0,J.start)+" ".repeat(J.end-J.start)+Z.slice(J.end):Z;if(N7(this.ctx,this,K),this.ctx.parsed?.module)d8(this.ctx.parsed?.module,{enter:(H)=>{if(H.type==="ImportDeclaration")C9(this.ctx,H);if(H.type==="FunctionDeclaration"){let X=H;if(X.id?.name)this.ctx.funcDecls.set(X.id.name,X)}if(H.type==="VariableDeclaration")this.ctx.vars.add(H);if(H.type==="ExportNamedDeclaration"){if(H.declaration==null)return;if(!H.declaration||typeof H.declaration!=="object"||!("type"in H.declaration))return;let X,G,U=!1,B,L,w,S=!1,I,C,N;if(H.declaration.type==="FunctionDeclaration"){let l=H.declaration;if(!l.id?.name)return;X=l.id.name,G="function",B=void 0,L="() => any",S=!0,U=!0}else if(H.declaration.type==="VariableDeclaration"){let l=H.declaration,R8=l.declarations[0];if(!R8||typeof R8!=="object"||!("id"in R8))return;let{id:d,init:a}=R8;if(!d||typeof d!=="object"||!("name"in d))return;let e=d.name;X=e,G=v4(l.kind);let q8=a==null?{isFunction:!1}:q1(this,this.ctx,a);if({value:B,type:L,isFunction:S,defaultValue:I}=q8,C=L,N=q8,w=this.getExplicitPropType(e),N.pendingCallDefault)this.ctx.pendingCallDefaultCandidates.push({propName:e,location:"moduleExports",...N.pendingCallDefault})}else return;let u=Q1(this.ctx,this,H),{type:m,typeSource:K8,description:s,params:k,returnType:i,isFunction:_}=b1({explicitType:w,typeSeed:L,inferredTypeForSource:C,jsdocType:u?.type,jsdocDescription:u?.description,jsdocParams:u?.params,jsdocReturnType:u?.returnType,resolvedType:N?.resolvedType,resolvedDescription:N?.resolvedDescription,resolvedParams:N?.resolvedParams,resolvedReturnType:N?.resolvedReturnType,initializerIsFunction:S,isFunctionDeclaration:U,typedefs:this.ctx.typedefs});this.addModuleExport(X,{name:X,kind:G,description:s,deprecated:u?.deprecated,tags:u?.tags,type:m,typeSource:K8,value:B,defaultValue:I,params:k,returnType:i,isFunction:_,isFunctionDeclaration:U,isRequired:!1,constant:G==="const",reactive:!1,source:J8(this.ctx,H)})}}});let W,V=new Set,R=new Set,z=[],M={type:"ComponentRoot",instance:this.ctx.parsed.instance,html:this.ctx.parsed.html};T7(this,this.ctx),this.ctx.activeScopes.push(this.ctx.componentScope);let $=E7(this.ctx);if(d8(M,{enter:(H,X,G)=>{v7(this,this.ctx,$,H);let U=this.ctx.scopeDeclarations.get(H);if(U)this.ctx.activeScopes.push(U);if(H.type==="AssignmentExpression")w9(this.ctx,H.left);if(H.type==="UpdateExpression")w9(this.ctx,H.argument);if(H.type==="CallExpression"){let B=H,L=B.callee&&typeof B.callee==="object"&&"name"in B.callee?B.callee.name:void 0;if(L==="createEventDispatcher"){if(X&&typeof X==="object"&&"id"in X&&X.id&&typeof X.id==="object"&&"name"in X.id)W=X.id.name}if(L==="$host"){if(X&&typeof X==="object"&&"id"in X&&X.id&&typeof X.id==="object"&&"name"in X.id)V.add(X.id.name)}if(L==="setContext")J7(this.ctx,this,H,X??void 0);if(L)z.push({name:L,arguments:B.arguments,source:J8(this.ctx,B)});if(p6(B.callee)&&m8(B.callee.property)&&B.callee.property.name==="dispatchEvent"&&(l8(B.callee.object,"$host")||m8(B.callee.object)&&V.has(B.callee.object.name))){let w=X7(this.ctx,B);if(w)R.add(w)}}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="Spread"){let B=H;if(B.expression?.name==="$$restProps"||this.ctx.restPropLocals.has(B.expression?.name??""))b7(this.ctx,X)}if(H.type==="FunctionDeclaration"){let B=H;if(B.id?.name)this.ctx.funcDecls.set(B.id.name,B)}if(H.type==="ImportDeclaration")C9(this.ctx,H);if(H.type==="VariableDeclaration"){if(this.ctx.vars.add(H),X&&typeof X==="object"&&"type"in X&&X.type==="Program"&&H.declarations.some((B)=>l8(e8(B.init),"$props")))_7(this,this.ctx,H)}if(H.type==="ExportNamedDeclaration"){if(H.declaration==null&&H.specifiers.length===0)return;let B;if(H.declaration==null&&H.specifiers[0]?.type==="ExportSpecifier"){let q8=H.specifiers[0],r=q8.local&&typeof q8.local==="object"&&"name"in q8.local?q8.local.name:void 0,$8=q8.exported&&typeof q8.exported==="object"&&"name"in q8.exported?q8.exported.name:void 0;if(!r||!$8)return;let u8;for(let C1 of Array.from(this.ctx.vars))if(C1.declarations.some((i8)=>i8.id&&typeof i8.id==="object"&&("type"in i8.id)&&i8.id.type==="Identifier"&&i8.id.name===r)){u8=C1;break}H.declaration=u8,B=$8}if(H.declaration==null)return;if(!H.declaration||typeof H.declaration!=="object"||!("type"in H.declaration))return;let L,w=!1,S,I,C,N=!1,u=!1,m,K8,s,k;if(H.declaration.type==="FunctionDeclaration"){let q8=H.declaration;if(!q8.id?.name)return;B??=q8.id.name,m=q8.id.name,L="function",S=void 0,I="() => any",N=!0,w=!0,u=!1}else if(H.declaration.type==="VariableDeclaration"){let q8=H.declaration,r=q8.declarations[0];if(!r||typeof r!=="object"||!("id"in r))return;let{id:$8,init:u8}=r;if($8&&typeof $8==="object"&&"name"in $8){let i8=$8.name;m=i8,B??=i8,C=this.getExplicitPropType(i8)}else return;L=v4(q8.kind),u=L==="let"&&u8==null;let C1=u8==null?{isFunction:!1}:q1(this,this.ctx,u8);if({value:S,type:I,isFunction:N,defaultValue:K8}=C1,s=I,k=C1,k.pendingCallDefault)this.ctx.pendingCallDefaultCandidates.push({propName:B,location:"props",...k.pendingCallDefault})}else return;let i=Q1(this.ctx,this,H),{type:_,typeSource:l,description:R8,params:d,returnType:a,isFunction:e}=b1({explicitType:C,typeSeed:I,inferredTypeForSource:s,jsdocType:i?.type,jsdocDescription:i?.description,jsdocParams:i?.params,jsdocReturnType:i?.returnType,resolvedType:k?.resolvedType,resolvedDescription:k?.resolvedDescription,resolvedParams:k?.resolvedParams,resolvedReturnType:k?.resolvedReturnType,initializerIsFunction:N,isFunctionDeclaration:w,typedefs:this.ctx.typedefs});I1(this,this.ctx,B,{name:B,...m!==void 0&&m!==B?{localName:m}:{},kind:L,description:R8,binding:i?.binding,deprecated:i?.deprecated,tags:i?.tags,type:_,typeSource:l,value:S,defaultValue:K8,params:d,returnType:a,isFunction:e,isFunctionDeclaration:w,isRequired:u,constant:L==="const",reactive:this.ctx.reactive_vars.has(B),source:J8(this.ctx,H)})}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="Comment"){let L=H?.data?.trim()??"";if(h4.test(L))this.ctx.componentComment=L.replace(h4,"").replace(nZ,""),this.ctx.componentCommentSource=J8(this.ctx,H)}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="Slot"){let B=H,L=B.attributes?.find((I)=>I.name==="name")?.value?.[0]?.data,w=(B.attributes||[]).filter((I)=>I.name!=="name").reduce((I,C)=>{let N={value:void 0,replace:!1},u=C.value;if(u===void 0)return I;if(u[0]){let m=u[0],{type:K8,expression:s,raw:k,start:i,end:_}=m;if(K8==="Text"&&k!==void 0)N.value=JSON.stringify(k);else if(K8==="AttributeShorthand"&&s&&typeof s==="object"&&"name"in s)N.value=s.name,N.replace=!0;if(s&&typeof s==="object"&&"type"in s){if(s.type==="Literal"&&"value"in s){let l=s.value;N.value=typeof l==="string"?JSON.stringify(l):String(l)}else if(s.type==="MemberExpression")N.value=q0(this.ctx,this,s);else if(s.type!=="Identifier"){if(i!==void 0&&_!==void 0){if(s.type==="ObjectExpression"||s.type==="TemplateLiteral")N.value=Q8(this.ctx,i+1,_-1)}}}}if(C.name)I[C.name]=N;return I},{}),S=B.children?.map(({start:I,end:C})=>{if(I===void 0||C===void 0)return"";return Q8(this.ctx,I,C)??""}).join("").trim();D1(this.ctx,{slot_name:L,slot_props:w,slot_fallback:S,source:J8(this.ctx,H)})}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="RenderTag"){let B=H,L=A7(this.ctx,B.expression);if(L){let w;if(L.arguments.length===0)w={};else if(L.arguments.length===1&&typeof L.arguments[0]==="object"&&L.arguments[0]&&"type"in L.arguments[0]&&L.arguments[0].type==="ObjectExpression")w=w7(this.ctx,this,L.arguments[0]);else if(L.arguments.length===1)p8(this.ctx,"syntax-skipped",L.publicName,`{@render ${L.publicName}(...)} argument is not a plain object literal; the render call was not mapped to slot metadata.`,J8(this.ctx,H));let S=L.publicName==="children"?void 0:L.publicName,I=S===void 0?sZ:S;if(w!==void 0)D1(this.ctx,{slot_name:S,slot_props:w,source:J8(this.ctx,H)});if(w!==void 0||this.ctx.slots.has(I))this.ctx.snippetPropLocals.add(L.trackingName)}}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="EventHandler"){let B=H;if(B.expression==null&&B.name){if(X!=null&&typeof X==="object"&&"name"in X){let L=typeof X.name==="string"?X.name:void 0,w="type"in X?String(X.type):void 0;if(L&&w){let S=w==="InlineComponent"?{type:"InlineComponent",name:L}:{type:"Element",name:L};this.ctx.forwardedEvents.set(B.name,S);let I=this.ctx.events.get(B.name),C=this.ctx.eventDescriptions.get(B.name),N=I?.deprecated;if(!I)this.ctx.events.set(B.name,{type:"forwarded",name:B.name,element:S,description:C,deprecated:N,source:J8(this.ctx,H)});else if(I.type==="forwarded"&&C&&!I.description)this.ctx.events.set(B.name,{...I,description:C,deprecated:I.deprecated??N,source:I.source||J8(this.ctx,H)})}}}}if(X&&typeof X==="object"&&"type"in X&&(String(X.type)==="Element"||String(X.type)==="InlineComponent")&&H&&typeof H==="object"&&"type"in H&&String(H.type)==="Binding"){let B=H;if(B.expression?.name){let L=X0(this.ctx,B.expression.name);if(L)this.ctx.reactive_vars.add(L)}if(String(X.type)==="Element"&&B.name==="this"&&B.expression?.name&&"name"in X&&typeof X.name==="string"){let L=X0(this.ctx,B.expression.name);if(!L)return;let w=X.name;if(this.ctx.bindings.has(L)){let S=this.ctx.bindings.get(L);if(S&&!S.elements.includes(w))this.ctx.bindings.set(L,{...S,elements:[...S.elements,w]})}else this.ctx.bindings.set(L,{elements:[w]})}}},leave:(H)=>{if(this.ctx.scopeDeclarations.has(H))this.ctx.activeScopes.pop();h7($,H)}}),W!==void 0){for(let H of z)if(H.name===W){let X=H.arguments[0],G=X&&typeof X==="object"&&"value"in X?X.value:void 0,U=H.arguments[1],B=U&&typeof U==="object"&&"value"in U?U.value:void 0;if(G!=null)P1(this.ctx,{name:String(G),detail:B==null?"":K9(B),has_argument:Boolean(U),source:H.source})}}let F=new Set(R);if(W!==void 0){for(let H of z)if(H.name===W){let X=H.arguments[0],G=X&&typeof X==="object"&&"value"in X?X.value:void 0;if(G!=null)F.add(String(G))}}this.ctx.forwardedEvents.forEach((H,X)=>{let G=this.ctx.events.get(X);if(G&&G.type==="dispatched"&&!F.has(X)){let U=this.ctx.eventDescriptions.get(X),B={type:"forwarded",name:X,element:H,description:U,deprecated:G.deprecated,tags:G.tags,source:G.source};if(G.detail!==void 0&&G.detail!=="undefined")B.detail=G.detail;this.ctx.events.set(X,B)}}),x7(this.ctx,F);let P=this.ctx.syntaxMode==="runes"?new Set(Array.from(this.ctx.snippetPropLocals,(H)=>this.resolvePublicPropName(H))):new Set,A=O8.mapToArray(this.ctx.props).filter((H)=>!P.has(H.name)).map((H)=>{if(this.ctx.bindings.has(H.name)){let X=this.ctx.bindings.get(H.name)?.elements.sort().map((G)=>n6(G)).join(" | ");return{...H,type:`null | ${X}`,typeSource:"inferred",reactive:H.reactive||this.ctx.reactive_vars.has(H.name)}}return{...H,reactive:H.reactive||this.ctx.reactive_vars.has(H.name)}});this.ctx.activeScopes.length=0;let D=O8.mapToArray(this.ctx.slots).map((H)=>{if(!H.slot_props)return H;if(typeof H.slot_props==="string")return aZ.test(H.slot_props)?{...H,slot_props:"Record<string, never>"}:H;let X=H.slot_props,G=[];for(let B of Object.keys(X)){if(X[B].replace&&X[B].value!==void 0)X[B].value=this.getPropTypeByLocalOrPublic(X[B].value);if(X[B].value===void 0)X[B].value="any";G.push(`${B}: ${X[B].value}`)}let U=G.length===0?"Record<string, never>":G.length===1?`{ ${G[0]} }`:`{
78
+ https://svelte.dev/e/unexpected_eof`)}function Q4(q,Q){f(q,"unexpected_reserved_word",`'${Q}' is a reserved word in JavaScript and cannot be used here
79
+ https://svelte.dev/e/unexpected_reserved_word`)}function Z4(q){f(q,"unterminated_string_constant",`Unterminated string constant
80
+ https://svelte.dev/e/unterminated_string_constant`)}function j4(q){f(q,"void_element_invalid_content",`Void elements cannot have children or closing tags
81
+ https://svelte.dev/e/void_element_invalid_content`)}var x0=Y8,X6=x0.extend(F5());function Y4(q,Q,Z,j){let Y=Z?X6:x0,{onComment:J,add_comments:K}=V6(q,Q),W=Y.prototype.parseStatement;if(j)Y.prototype.parseStatement=function(...V){let R=W.call(this,...V);return this.undefinedExports={},R};try{let V=Y.parse(q,{onComment:J,sourceType:"module",ecmaVersion:16,locations:!0});return K(V),V}catch(V){return W6(V)}finally{if(j)Y.prototype.parseStatement=W}}function H1(q,Q,Z){let j=q.ts?X6:x0,{onComment:Y,add_comments:J}=V6(Q,q.root.comments,Z);try{let K=j.parseExpressionAt(Q,Z,{onComment:Y,sourceType:"module",ecmaVersion:16,locations:!0,preserveParens:!0});return J(K),K}catch(K){W6(K)}}function H4(q,Q,Z){let j=q.ts?X6:x0,{onComment:Y,add_comments:J}=V6(Q,q.root.comments,Z);try{let K=new j({onComment:Y,sourceType:"module",ecmaVersion:16,locations:!0},Q,Z);K.nextToken();let W=K.parseStatement(null,!0,Object.create(null));return J(W),W}catch(K){if(K.pos===Q.length)w8(Q.length);W6(K)}}var sQ=/ \(\d+:\d+\)$/;function W6(q){g5(q.pos,q.message.replace(sQ,""))}function $1(q){return s8(q,null,{ParenthesizedExpression(Q,Z){return Z.visit(Q.expression)}})}function V6(q,Q,Z=0){return{onComment:(j,Y,J,K,W,V)=>{if(j&&/\n/.test(Y)){let R=J;while(R>0&&q[R-1]!==`
82
+ `)R-=1;let z=R;while(/[ \t]/.test(q[z]))z+=1;let M=q.slice(R,z);Y=Y.replace(new RegExp(`^${M}`,"gm"),"")}Q.push({type:j?"Block":"Line",value:Y,start:J,end:K,loc:{start:W,end:V}})},add_comments(j){if(Q.length===0)return;if(Q=Q.filter((Y)=>Y.start>=Z).map(({type:Y,value:J,start:K,end:W})=>({type:Y,value:J,start:K,end:W})),s8(j,null,{_(Y,{next:J,path:K}){let W;while(Q[0]&&Q[0].start<Y.start)W=Q.shift(),(Y.leadingComments||=[]).push(W);if(J(),Q[0]){let V=K.at(-1);if(V===void 0||Y.end!==V.end){let R=q.slice(Y.end,Q[0].start);if((V?.type==="BlockStatement"||V?.type==="Program")&&V.body.indexOf(Y)===V.body.length-1||V?.type==="ArrayExpression"&&V.elements.indexOf(Y)===V.elements.length-1||V?.type==="ObjectExpression"&&V.properties.indexOf(Y)===V.properties.length-1){let M=Y.end;while(Q.length){let $=Q[0];if(V&&$.start>=V.end)break;(Y.trailingComments||=[]).push($),Q.shift(),M=$.end}}else if(Y.end<=Q[0].start&&/^[,) \t]*$/.test(R))Y.trailingComments=[Q.shift()]}}}}),Q.length>0&&(Q[0].start>=j.end||j.type==="Program"))(j.trailingComments||=[]).push(...Q.splice(0))}}}function G6(q){if(q<0)return 1/0;return q}function aQ(q,Q,Z){let j;if(Z==="`")j=q;else j=q.slice(0,G6(q.indexOf(`
83
+ `,Q)));return z6(j,Q,Z)}function rQ(q,Q){let Z=z6(q,Q,"/"),j=z6(q,Q,`
84
+ `);return Z<j?Z:1/0}function z6(q,Q,Z){let j=Q;while(!0){let Y=q.indexOf(Z,j);if(Y===-1)return 1/0;if(tQ(q,Y-1)%2===0)return Y;j=Y+1}}function tQ(q,Q){let Z=Q,j=0;while(q[Z]==="\\")j++,Z--;return j}function m0(q,Q,Z){let j=u0[Z],Y=1,J=Q;while(Y>0&&J<q.length){let K=q[J];switch(K){case"'":case'"':case"`":J=aQ(q,J+1,K)+1;continue;case"/":{let W=q[J+1];if(!W){J++;continue}if(W==="/"){J=G6(q.indexOf(`
85
+ `,J+1))+1;continue}if(W==="*"){J=G6(q.indexOf("*/",J+1))+2;continue}let V=rQ(q,J+1)+1;if(V===1/0)J++;else J=V;continue}default:{let W=q[J];if(W===Z)Y++;else if(W===j)Y--;if(Y===0)return J;J++}}}return}var u0={"{":"}","(":")","[":"]"},eQ=new Set(Object.values(u0));function i1(q,Q,Z=u0){let j=Z===u0?eQ:new Set(Object.values(Z)),Y=[],J=Q;while(J<q.template.length){let K=q.template[J++];if(K==="'"||K==='"'||K==="`"){J=qZ(q,J,K);continue}if(K in Z)Y.push(K);else if(j.has(K)){let W=Y.pop(),V=Z[W];if(K!==V)E8(J-1,V);if(Y.length===0)return J}}w8(q.template.length)}function qZ(q,Q,Z){let j=!1,Y=Q;while(Y<q.template.length){let J=q.template[Y++];if(j){j=!1;continue}if(J===Z)return Y;if(J==="\\")j=!0;if(Z==="`"&&J==="$"&&q.template[Y]==="{")Y=i1(q,Y)}Z4(Q)}function O6(q,Q){let Z=m0(q.template,q.index,Q??"{");if(Z){let j=q.index;return q.index=Z,{type:"Identifier",start:j,end:Z,name:""}}}function z8(q,Q,Z){try{let j=H1(q,q.template,q.index),Y=j.end,J=q.root.comments.at(-1);if(J&&J.end>Y)Y=J.end;return q.index=Y,$1(j)}catch(j){if(q.loose&&!Z){let Y=O6(q,Q);if(Y)return Y}throw j}}function U6(q=[]){return{type:"ArrayExpression",elements:q}}function QZ(q,Q){return{type:"UnaryExpression",argument:Q,operator:q,prefix:!0}}var hJ=QZ("void",d1(0));function d1(q){return{type:"Literal",value:q}}var ZZ=d1(!0),fJ=d1(!1),yJ=d1(null);function K4(q){return Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="Text"}function B6(q){return q.value!==!0&&!Array.isArray(q.value)||Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="ExpressionTag"}function F6(q){return Array.isArray(q.value)?q.value[0].expression:q.value.expression}var jZ=/<\/script\s*>/,YZ=/<\/script\s*>/y,HZ=["server","client","worker","test","default"],KZ=["context","generics","lang","module"];function J4(q,Q,Z){let j=q.index,Y=q.read_until(jZ);if(q.index>=q.template.length)y0(q.template.length,"script");let J=q.template.slice(0,j).replace(U0," ")+Y;q.read(YZ);let K=Y4(J,q.root.comments,q.ts,!0);if(K.start=j,K.loc)({line:K.loc.start.line,column:K.loc.start.column}=G8(Q)),{line:K.loc.end.line,column:K.loc.end.column}=G8(q.index);let W="default";for(let V of Z){if(HZ.includes(V.name))u5(V,V.name);if(!KZ.includes(V.name))O2(V);if(V.name==="module"){if(V.value!==!0)x5(V,V.name);W="module"}if(V.name==="context"){if(V.value===!0||!K4(V))H6(V);if(V.value[0].data!=="module")H6(V);W="module"}}return{type:"Script",start:Q,end:q.index,context:W,content:K,attributes:Z}}var JZ=/[~^$*|]?=/y,XZ=/[\s\]]/,WZ=/[a-zA-Z]+/y,V4=/(\+|~|>|\|\|)/y,X4=/\d+(\.\d+)?%/y,W4=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/y,VZ=/[\s:]/,GZ=/-?\d/y,zZ=/[a-zA-Z0-9_-]/,OZ=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y,UZ=/\*\//,RZ=/-->/;function $6(q,Q,Z){let j=q.index,Y=BZ(q,(K)=>K.match("</style")||K.index>=K.template.length),J=q.index;return q.eat("</style",!0),q.read(/\s*>/y),{type:"StyleSheet",start:Q,end:q.index,attributes:Z,children:Y,content:{start:j,end:J,styles:q.template.slice(j,J),comment:null}}}function BZ(q,Q){let Z=[];while(L1(q),!Q(q))if(q.match("@"))Z.push(G4(q));else Z.push(z4(q));return Z}function G4(q){let Q=q.index;q.eat("@",!0);let Z=t8(q),j=L6(q),Y=null;if(q.match("{"))Y=O4(q);else q.eat(";",!0);return{type:"Atrule",start:Q,end:q.index,name:Z,prelude:j,block:Y}}function z4(q){let Q=q.index;return{type:"Rule",prelude:M6(q),block:O4(q),start:Q,end:q.index,metadata:{parent_rule:null,has_local_selectors:!1,has_global_selectors:!1,is_global_block:!1}}}function M6(q,Q=!1){let Z=[];L1(q);let j=q.index;while(q.index<q.template.length){Z.push(FZ(q,Q));let Y=q.index;if(L1(q),Q?q.match(")"):q.match("{"))return{type:"SelectorList",start:j,end:Y,children:Z};else q.eat(",",!0),L1(q)}w8(q.template.length)}function FZ(q,Q=!1){let Z=q.index,j=[];function Y(K,W){return{type:"RelativeSelector",combinator:K,selectors:[],start:W,end:-1,metadata:{is_global:!1,is_global_like:!1,scoped:!1}}}let J=Y(null,q.index);while(q.index<q.template.length){let K=q.index;if(q.eat("&"))J.selectors.push({type:"NestingSelector",name:"&",start:K,end:q.index});else if(q.eat("*")){let R="*";if(q.eat("|"))R=t8(q);J.selectors.push({type:"TypeSelector",name:R,start:K,end:q.index})}else if(q.eat("#"))J.selectors.push({type:"IdSelector",name:t8(q),start:K,end:q.index});else if(q.eat("."))J.selectors.push({type:"ClassSelector",name:t8(q),start:K,end:q.index});else if(q.eat("::")){if(J.selectors.push({type:"PseudoElementSelector",name:t8(q),start:K,end:q.index}),q.eat("("))M6(q,!0),q.eat(")",!0)}else if(q.eat(":")){let R=t8(q),z=null;if(q.eat("("))z=M6(q,!0),q.eat(")",!0);J.selectors.push({type:"PseudoClassSelector",name:R,args:z,start:K,end:q.index})}else if(q.eat("[")){q.allow_whitespace();let R=t8(q);q.allow_whitespace();let z=null,M=q.read(JZ);if(M)q.allow_whitespace(),z=wZ(q);q.allow_whitespace();let $=q.read(WZ);q.allow_whitespace(),q.eat("]",!0),J.selectors.push({type:"AttributeSelector",start:K,end:q.index,name:R,matcher:M,value:z,flags:$})}else if(Q&&q.match_regex(W4))J.selectors.push({type:"Nth",value:q.read(W4),start:K,end:q.index});else if(q.match_regex(X4))J.selectors.push({type:"Percentage",value:q.read(X4),start:K,end:q.index});else if(!q.match_regex(V4)){let R=t8(q);if(q.eat("|"))R=t8(q);J.selectors.push({type:"TypeSelector",name:R,start:K,end:q.index})}let W=q.index;if(L1(q),q.match(",")||(Q?q.match(")"):q.match("{")))return q.index=W,J.end=W,j.push(J),{type:"ComplexSelector",start:Z,end:W,children:j,metadata:{rule:null,is_global:!1,used:!1}};q.index=W;let V=MZ(q);if(V){if(J.selectors.length>0)J.end=W,j.push(J);if(J=Y(V,V.start),q.allow_whitespace(),q.match(",")||(Q?q.match(")"):q.match("{")))L5(q.index)}}w8(q.template.length)}function MZ(q){let Q=q.index;q.allow_whitespace();let Z=q.index,j=q.read(V4);if(j){let Y=q.index;return q.allow_whitespace(),{type:"Combinator",name:j,start:Z,end:Y}}if(q.index!==Q)return{type:"Combinator",name:" ",start:Q,end:q.index};return null}function O4(q){let Q=q.index;q.eat("{",!0);let Z=[];while(q.index<q.template.length)if(L1(q),q.match("}"))break;else Z.push($Z(q));return q.eat("}",!0),{type:"Block",start:Q,end:q.index,children:Z}}function $Z(q){if(q.match("@"))return G4(q);let Q=q.index;L6(q);let Z=q.template[q.index];return q.index=Q,Z==="{"?z4(q):LZ(q)}function LZ(q){let Q=q.index,Z=q.read_until(VZ);q.allow_whitespace(),q.eat(":");let j=q.index;q.allow_whitespace();let Y=L6(q);if(!Y&&!Z.startsWith("--"))$5({start:Q,end:j});let J=q.index;if(!q.match("}"))q.eat(";",!0);return{type:"Declaration",start:Q,end:J,property:Z,value:Y}}function L6(q){let Q="",Z=!1,j=!1,Y=null;while(q.index<q.template.length){let J=q.template[q.index];if(Z){Q+="\\"+J,Z=!1,q.index++;continue}else if(J==="\\"){Z=!0,q.index++;continue}else if(J===Y)Y=null;else if(J===")")j=!1;else if(Y===null&&(J==='"'||J==="'"))Y=J;else if(J==="("&&Q.slice(-3)==="url")j=!0;else if((J===";"||J==="{"||J==="}")&&!j&&!Y)return Q.trim();else if(J==="/"&&!j&&!Y&&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+=J,q.index++}w8(q.template.length)}function wZ(q){let Q="",Z=!1,j=q.eat('"')?'"':q.eat("'")?"'":null;while(q.index<q.template.length){let Y=q.template[q.index];if(Z)Q+="\\"+Y,Z=!1;else if(Y==="\\")Z=!0;else if(j?Y===j:XZ.test(Y)){if(j)q.eat(j,!0);return Q.trim()}else Q+=Y;q.index++}w8(q.template.length)}function t8(q){let Q=q.index,Z="";if(q.match_regex(GZ))e9(Q);while(q.index<q.template.length){let j=q.template[q.index];if(j==="\\"){let Y=q.match_regex(OZ);if(Y)Z+=String.fromCodePoint(parseInt(Y.slice(1),16)),q.index+=Y.length;else Z+="\\"+q.template[q.index+1],q.index+=2}else if(j.codePointAt(0)>=160||zZ.test(j))Z+=j,q.index++;else break}if(Z==="")e9(Q);return Z}function L1(q){q.allow_whitespace();while(q.match("/*")||q.match("<!--")){if(q.eat("/*"))q.read_until(UZ),q.eat("*/",!0);if(q.eat("<!--"))q.read_until(RZ),q.eat("-->",!0);q.allow_whitespace()}}var w6={"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 AZ=[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 CZ(q,Q){if(Q&&!q.endsWith(";"))return`${q}\\b(?!=)`;return q}function R4(q){let Z=Object.keys(w6).map((Y)=>CZ(Y,q));return new RegExp(`&(#(?:x[a-fA-F\\d]+|\\d+)(?:;)?|${Z.join("|")})`,"g")}var IZ=R4(!1),PZ=R4(!0);function p1(q,Q){let Z=Q?PZ:IZ;return q.replace(Z,(j,Y)=>{let J;if(Y[0]!=="#")J=w6[Y];else if(Y[1]==="x")J=parseInt(Y.substring(2),16);else J=parseInt(Y.substring(1),10);if(!J)return j;return String.fromCodePoint(SZ(J))})}var U4=0;function SZ(q){if(q===10)return 32;if(q<128)return q;if(q<=159)return AZ[q-128];if(q<55296)return q;if(q<=57343)return U4;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 U4}function V8(q=!1){return{type:"Fragment",nodes:[],metadata:{transparent:q,dynamic:!1}}}var DZ=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function B4(q){return DZ.includes(q.type)}function l0(q,Q,Z,j,Y){return{type:"Attribute",start:Z,end:j,name:q,name_loc:Q,value:Y,metadata:{delegated:!1,needs_clsx:!1}}}class H8{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 U6([...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 F4={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 M4(q,Q){let Z=F4[q];if(Z){if(!Q||("direct"in Z?Z.direct:Z.descendant).includes(Q))return!0}return!1}var jX={...F4,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 $4(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 NZ=/(\/>|[\s"'=<>`])/y,A6=/<\/textarea(\s[^>]*)?>/iy,bZ=/-->/,L4=/(\s|\/|>)/,A4=/[\s=/>"']/,C4=/["']/y,kZ=/(?:"([^"]*)"|'([^'])*'|([^>\s]+))/y,TZ=/^![a-zA-Z]+$/,EZ=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/;function vZ(q){if(TZ.test(q))return!0;if(EZ.test(q))return!0;return Y2.test(q)}var w4=/^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u,I4=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),c0=new Map([...I4,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function C6(q){let Q=q.index++,Z=q.current();if(q.eat("!--")){let F=q.read_until(bZ);q.eat("-->",!0),q.append({type:"Comment",start:Q,end:q.index,data:F});return}if(q.eat("/")){let F=q.read_until(L4);if(q.allow_whitespace(),q.eat(">",!0),k9(F))j4(Q);while(Z.name!==F){if(q.loose){if(B4(Z)){let P=Z.attributes.at(-1);if(P?.type==="Attribute"&&P.name===`<${F}`){q.index=P.start,Z.attributes.pop();break}}}if(Z.type==="RegularElement"){if(!q.last_auto_closed_tag||q.last_auto_closed_tag.tag!==F){let P=Z.fragment.nodes[0]?.start??Q;f9({start:Z.start,end:P},`</${F}>`,`</${Z.name}>`)}}else if(!q.loose)if(q.last_auto_closed_tag&&q.last_auto_closed_tag.tag===F)E5(Q,F,q.last_auto_closed_tag.reason);else T5(Q,F);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 j=I6(q,L4);if(j.name.startsWith("svelte:")&&!c0.has(j.name)){let F={start:Q+1,end:Q+1+j.name.length};o5(F,$4(Array.from(c0.keys())))}if(!vZ(j.name)&&!w4.test(j.name)){if(!q.loose||!j.name.endsWith(".")){let F={start:Q+1,end:Q+1+j.name.length};e5(F)}}if(I4.has(j.name)){if(j.name in q.meta_tags)i5(Q,j.name);if(Z.type!=="Root")p5(Q,j.name);q.meta_tags[j.name]=!0}let Y=c0.has(j.name)?c0.get(j.name):w4.test(j.name)||q.loose&&j.name.endsWith(".")?"Component":j.name==="title"&&hZ(q.stack)?"TitleElement":j.name==="slot"&&!fZ(q.stack)?"SlotElement":"RegularElement",J=Y==="RegularElement"?{type:Y,start:Q,end:-1,name:j.name,name_loc:j.loc,attributes:[],fragment:V8(!0),metadata:{svg:!1,mathml:!1,scoped:!1,has_spread:!1,path:[],synthetic_value_node:null}}:{type:Y,start:Q,end:-1,name:j.name,name_loc:j.loc,attributes:[],fragment:V8(!0),metadata:{}};if(q.allow_whitespace(),Z.type==="RegularElement"&&M4(Z.name,j.name)){let F=Z.fragment.nodes[0]?.start??Q;f9({start:Z.start,end:F},`<${j.name}>`,`</${Z.name}>`),Z.end=Q,q.pop(),q.last_auto_closed_tag={tag:Z.name,reason:j.name,depth:q.stack.length}}let K=[],W=q.current(),V=(j.name==="script"||j.name==="style")&&W.type==="Root",R=V?yZ:gZ,z;while(z=R(q)){if(z.type==="Attribute"||z.type==="BindDirective"||z.type==="StyleDirective"||z.type==="ClassDirective"){let F=z.type==="BindDirective"?"Attribute":z.type;if(K.includes(F+z.name))w5(z);else if(z.name!=="this")K.push(F+z.name)}J.attributes.push(z),q.allow_whitespace()}if(J.type==="Component")J.metadata.expression=new H8;if(J.type==="SvelteComponent"){let F=J.attributes.findIndex((D)=>D.type==="Attribute"&&D.name==="this");if(F===-1)c5(Q);let P=J.attributes.splice(F,1)[0];if(!B6(P))l5(P.start);J.expression=F6(P),J.metadata.expression=new H8}if(J.type==="SvelteElement"){let F=J.attributes.findIndex((D)=>D.type==="Attribute"&&D.name==="this");if(F===-1)K6(Q);let P=J.attributes.splice(F,1)[0];if(P.value===!0)K6(P);if(!B6(P)){U2(P);let D=P.value[0];J.tag=D.type==="Text"?{type:"Literal",value:D.data,raw:`'${D.raw}'`,start:D.start,end:D.end}:D.expression}else J.tag=F6(P);J.metadata.expression=new H8}if(V){q.eat(">",!0);let F=null;for(let P=W.fragment.nodes.length-1;P>=0;P--){let D=W.fragment.nodes[P];if(P===W.fragment.nodes.length-1&&D.end!==Q)break;if(D.type==="Comment"){F=D;break}else if(D.type!=="Text"||D.data.trim())break}if(j.name==="script"){let P=J4(q,Q,J.attributes);if(F)P.content.leadingComments=[{type:"Line",value:F.data}];if(P.context==="module"){if(W.module)Y6(Q);W.module=P}else{if(W.instance)Y6(Q);W.instance=P}}else{let P=$6(q,Q,J.attributes);if(P.content.comment=F,W.css)m5(Q);W.css=P}return}q.append(J);let M=q.eat("/")||k9(j.name),$=q.eat(">",!0,!1);if(!$){let F=J.attributes.at(-1);if(F?.type==="Attribute"&&F.name==="<")q.index=F.start,J.attributes.pop();else{let P=q.template[q.index-1],D=q.template[q.index-2],C=q.template[q.index];if(D==="{"&&P==="/")q.index-=2;else if(P==="{"&&(C==="#"||C==="@"||C===":"))q.index-=1;else q.allow_whitespace()}}if(M||!$)J.end=q.index;else if(j.name==="textarea")J.fragment.nodes=P4(q,()=>{return A6.lastIndex=q.index,A6.test(q.template)},"inside <textarea>"),q.read(A6),J.end=q.index;else if(j.name==="script"||j.name==="style"){let F=q.index,P=`</${j.name}>`,D=q.template.indexOf(P,q.index),C=q.template.slice(q.index,D===-1?q.template.length:D);q.index=D===-1?q.template.length:D;let b=q.index,g={start:F,end:b,type:"Text",data:C,raw:C};J.fragment.nodes.push(g),q.eat(`</${j.name}>`,!0),J.end=q.index}else q.stack.push(J),q.fragments.push(J.fragment)}function hZ(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 fZ(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 yZ(q){let Q=q.index,Z=I6(q,A4);if(!Z.name)return null;let j=!0;if(q.eat("=")){q.allow_whitespace();let Y=q.match_regex(kZ);if(!Y)Z6(q.index);q.index+=Y.length;let J=Y[0]==='"'||Y[0]==="'";if(J)Y=Y.slice(1,-1);j=[{start:q.index-Y.length-(J?1:0),end:J?q.index-1:q.index,type:"Text",raw:Y,data:p1(Y,!0)}]}if(q.match_regex(C4))E8(q.index,"=");return l0(Z.name,Z.loc,Q,q.index,j)}function gZ(q){let Q=null;while(Q=_Z(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 V=z8(q);return q.allow_whitespace(),q.eat("}",!0),{type:"AttachTag",start:Z,end:q.index,expression:V,metadata:{expression:new H8}}}if(q.eat("...")){let V=z8(q);return q.allow_whitespace(),q.eat("}",!0),{type:"SpreadAttribute",start:Z,end:q.index,expression:V,metadata:{expression:new H8}}}else{let V=q.read_identifier();if(V.name==="")if(q.loose&&(q.match("#")||q.match("/")||q.match("@")||q.match(":")))return null;else if(q.loose&&q.match("}"));else A5(Z);q.allow_whitespace(),q.eat("}",!0);let R={type:"ExpressionTag",start:V.start,end:V.end,expression:V,metadata:{expression:new H8}};return l0(V.name,V.loc,Z,q.index,R)}}let j=I6(q,A4);if(!j.name)return null;let Y=q.index;q.allow_whitespace();let J=j.name.indexOf(":"),K=J!==-1&&xZ(j.name.slice(0,J)),W=!0;if(q.eat("="))if(q.allow_whitespace(),q.template[q.index]==="/"&&q.template[q.index+1]===">"){let V=q.index;q.index++,W=[{start:V,end:V+1,type:"Text",raw:"/",data:"/"}],Y=q.index}else W=uZ(q),Y=q.index;else if(q.match_regex(C4))E8(q.index,"=");if(K){let[V,...R]=j.name.slice(J+1).split("|");if(V==="")k5({start:Z,end:Z+J+1},j.name);if(K==="StyleDirective")return{start:Z,end:Y,type:K,name:V,name_loc:j.loc,modifiers:R,value:W,metadata:{expression:new H8}};let z=W===!0?void 0:Array.isArray(W)?W[0]:W,M=null;if(z)if(W.length>1||z.type==="Text")b5(z.start);else M=z.expression;let $={start:Z,end:Y,type:K,name:V,name_loc:j.loc,expression:M,metadata:{expression:new H8}};if($.modifiers=R,$.type==="TransitionDirective"){let F=j.name.slice(0,J);$.intro=F==="in"||F==="transition",$.outro=F==="out"||F==="transition"}if(($.type==="BindDirective"||$.type==="ClassDirective")&&!$.expression)$.expression={start:Z+J+1,end:Y,type:"Identifier",name:$.name};return $}return l0(j.name,j.loc,Z,Y,W)}function _Z(q){let Q=q.index;if(q.eat("//")){let Z=q.read_until(/\n/),j=q.index;return{type:"Line",start:Q,end:j,value:Z,loc:{start:G8(Q),end:G8(j)}}}if(q.eat("/*")){let Z=q.read_until(/\*\//);q.eat("*/");let j=q.index;return{type:"Block",start:Q,end:j,value:Z,loc:{start:G8(Q),end:G8(j)}}}return null}function xZ(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 uZ(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=P4(q,()=>{if(Q)return q.match(Q);return!!q.match_regex(NZ)},"in attribute value")}catch(j){if(j.code==="js_parse_error"){let Y=j.position?.[0];if(Y!==void 0&&q.template.slice(Y-1,Y+1)==="/>")q.index=Y,E8(Y,Q||"}")}throw j}if(Z.length===0&&!Q)Z6(q.index);if(Q)q.index+=1;if(Q||Z.length>1||Z[0].type==="Text")return Z;else return Z[0]}function P4(q,Q,Z){let j={start:q.index,end:-1,type:"Text",raw:"",data:""},Y=[];function J(K){if(K>j.start)j.raw=q.template.slice(j.start,K),j.data=p1(j.raw,!0),j.end=K,Y.push(j)}while(q.index<q.template.length){let K=q.index;if(Q())return J(q.index),Y;else if(q.eat("{")){if(q.match("#")){let R=q.index-1;q.eat("#");let z=q.read_until(/[^a-z]/);P5(R,z,Z)}else if(q.match("@")){let R=q.index-1;q.eat("@");let z=q.read_until(/[^a-z]/);q4(R,z,Z)}J(q.index-1),q.allow_whitespace();let W=z8(q);q.allow_whitespace(),q.eat("}",!0);let V={type:"ExpressionTag",start:K,end:q.index,expression:W,metadata:{expression:new H8}};Y.push(V),j={start:q.index,end:-1,type:"Text",raw:"",data:""}}else q.index++}if(q.loose)return Y;else w8(q.template.length)}function I6(q,Q){let Z=q.index,j=q.read_until(Q),Y=q.index;return{type:"Identifier",name:j,start:Z,end:Y,loc:{start:G8(Z),end:G8(Y)}}}function x8(q){let{index:Q,index:Z}=q,j=q.read_identifier();if(j.name!==""){let R=S4(q);return{...j,typeAnnotation:R}}let Y=q.template[Z];if(Y!=="{"&&Y!=="[")h5(Z);Z=i1(q,Q),q.index=Z;let J=q.template.slice(Q,Z),K=q.template.slice(0,Q).replace(U0," "),W=K.indexOf(" ");K=K.slice(0,W)+K.slice(W+1);let V=$1(H1(q,`${K}(${J} = 1)`,Q-1));if(V=V.left,V.typeAnnotation=S4(q),V.typeAnnotation)V.end=V.typeAnnotation.end;return V}function S4(q){let Q=q.index;if(q.allow_whitespace(),!q.eat(":")){q.index=Q;return}let Z="_ as ",j=q.index-Z.length,Y=q.template.slice(0,j).replace(/[^\n]/g," ")+Z+q.template.slice(q.index).replace(/\?\s*:/g,":"),J=$1(H1(q,Y,j));if(J.type==="AssignmentExpression"){let K=J.right.start;while(Y[K]!=="=")K-=1;J=$1(H1(q,Y.slice(0,K),j))}if(J.type==="SequenceExpression")J=J.expressions[0];return q.index=J.end,{type:"TSTypeAnnotation",start:Q,end:q.index,typeAnnotation:J.typeAnnotation}}var P6=/\s*}/y,mZ=/(?:let|const)\b/y,lZ=/(?:var|interface|enum)\b/y,cZ=/type\b/y,iZ={"<":">"};function D6(q){let Q=q.index;if(q.index+=1,q.allow_whitespace(),q.eat("#"))return pZ(q);if(q.eat(":"))return oZ(q);if(q.eat("@"))return sZ(q);if(q.match("/")){if(!q.match("/*")&&!q.match("//"))return q.eat("/"),S6(q)}let Z=dZ(q);if(Z){q.append({type:"DeclarationTag",start:Q,end:q.index,declaration:Z,metadata:{expression:new H8}});return}let j=z8(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ExpressionTag",start:Q,end:q.index,expression:j,metadata:{expression:new H8}})}function dZ(q){let Q=q.index,Z=q.match_regex(lZ);if(Z)f0({start:Q,end:Q+Z.length});if(!q.match_regex(mZ)&&!q.match_regex(cZ))return null;let j=q.root.comments.length,Y;try{Y=H4(q,q.template,Q)}catch(J){if(!q.loose)throw J;let K=m0(q.template,Q,"{");if(K===void 0)throw J;q.index=K,Y={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(Y.type!=="VariableDeclaration")if(Y.type==="ExpressionStatement")return q.root.comments.length=j,null;else f0({start:Y.start??Q,end:Y.end??q.index});if(Y.kind!=="let"&&Y.kind!=="const")f0(Y);return q.index=Y.end,q.allow_whitespace(),q.eat("}",!0),Y}function pZ(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:z8(q),consequent:V8(),alternate:null,metadata:{expression:new H8}});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,j=q.template.length,Y;while(!Y)try{Y=z8(q,void 0,!0)}catch(z){j=z.position[0]-2;while(j>Q&&q.template.slice(j,j+2)!=="as")j-=1;if(j<=Q){if(q.loose){if(Y=O6(q),Y)break}throw z}q.template=Z.slice(0,j)}if(q.template=Z,q.allow_whitespace(),!q.match("as")){if(Y.type==="SequenceExpression")Y=Y.expressions[0];let z=null,M=Y.end;if(Y=s8(Y,null,{TSAsExpression($,F){if($.end===Y.end)return z=$,M=$.expression.end,$.expression;F.next()}}),Y.end=M,z){let $=z.typeAnnotation.start-2;while(q.template.slice($,$+2)!=="as")$-=1;q.index=$}}let J=null,K,W;if(q.eat("as"))q.require_whitespace(),J=x8(q);else q.index=Y.end;if(q.allow_whitespace(),q.eat(",")){if(q.allow_whitespace(),K=q.read_identifier().name,!K)j6(q.index);q.allow_whitespace()}if(q.eat("("))q.allow_whitespace(),W=z8(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 z=q.index;J=x8(q),q.eat("}",!0),Y={type:"Identifier",name:"",start:Y.start,end:z-4}}else q.eat("}",!0);let R=q.append({type:"EachBlock",start:Q,end:-1,expression:Y,body:V8(),context:J,index:K,key:W,metadata:null});q.stack.push(R),q.fragments.push(R.body);return}if(q.eat("await")){q.require_whitespace();let Z=z8(q);q.allow_whitespace();let j=q.append({type:"AwaitBlock",start:Q,end:-1,expression:Z,value:null,error:null,pending:null,then:null,catch:null,metadata:{expression:new H8}});if(q.eat("then")){if(q.match_regex(P6))q.allow_whitespace();else q.require_whitespace(),j.value=x8(q),q.allow_whitespace();j.then=V8(),q.fragments.push(j.then)}else if(q.eat("catch")){if(q.match_regex(P6))q.allow_whitespace();else q.require_whitespace(),j.error=x8(q),q.allow_whitespace();j.catch=V8(),q.fragments.push(j.catch)}else j.pending=V8(),q.fragments.push(j.pending);if(!q.eat("}",!0,!1))if(q.template.slice(q.index-6,q.index)===" then "){let J=q.index;j.value=x8(q),q.eat("}",!0),j.expression={type:"Identifier",name:"",start:Z.start,end:J-6},j.then=j.pending,j.pending=null}else if(q.template.slice(q.index-7,q.index)===" catch "){let J=q.index;j.error=x8(q),q.eat("}",!0),j.expression={type:"Identifier",name:"",start:Z.start,end:J-7},j.catch=j.pending,j.pending=null}else q.eat("}",!0);q.stack.push(j);return}if(q.eat("key")){q.require_whitespace();let Z=z8(q);q.allow_whitespace(),q.eat("}",!0);let j=q.append({type:"KeyBlock",start:Q,end:-1,expression:Z,fragment:V8(),metadata:{expression:new H8}});q.stack.push(j),q.fragments.push(j.fragment);return}if(q.eat("snippet")){q.require_whitespace();let Z=q.read_identifier();if(Z.name===""&&!q.loose)j6(q.index);q.allow_whitespace();let j=q.index,Y;if(q.ts&&q.match("<")){let z=q.index,M=i1(q,z,iZ);Y=q.template.slice(z+1,M-1),q.index=M}q.allow_whitespace();let J=q.eat("(",!0,!1);if(J){let z=1;while(q.index<q.template.length&&(!q.match(")")||z!==1)){if(q.match("("))z++;if(q.match(")"))z--;q.index+=1}q.eat(")",!0)}let K=q.template.slice(0,j).replace(/\S/g," "),W=q.template.slice(j,q.index),V=J?H1(q,K+`${W} => {}`,j):{params:[]};q.allow_whitespace(),q.eat("}",!0);let R=q.append({type:"SnippetBlock",start:Q,end:-1,expression:Z,typeParams:Y,parameters:V.params,body:V8(),metadata:{can_hoist:!1,sites:new Set}});q.stack.push(R),q.fragments.push(R.body);return}v5(q.index)}function oZ(q){let Q=q.index-1,Z=q.current();if(Z.type==="IfBlock"){if(!q.eat("else"))E8(Q,"{:else} or {:else if}");if(q.eat("if"))I5(Q);if(q.allow_whitespace(),q.fragments.pop(),Z.alternate=V8(),q.fragments.push(Z.alternate),q.eat("if")){q.require_whitespace();let j=z8(q);q.allow_whitespace(),q.eat("}",!0);let Y=Q-1;while(q.template[Y]!=="{")Y-=1;let J=q.append({start:Y,end:-1,type:"IfBlock",elseif:!0,test:j,consequent:V8(),alternate:null,metadata:{expression:new H8}});q.stack.push(J),q.fragments.pop(),q.fragments.push(J.consequent)}else q.allow_whitespace(),q.eat("}",!0);return}if(Z.type==="EachBlock"){if(!q.eat("else"))E8(Q,"{:else}");q.allow_whitespace(),q.eat("}",!0),Z.fallback=V8(),q.fragments.pop(),q.fragments.push(Z.fallback);return}if(Z.type==="AwaitBlock"){if(q.eat("then")){if(Z.then)q6(Q,"{:then}");if(!q.eat("}"))q.require_whitespace(),Z.value=x8(q),q.allow_whitespace(),q.eat("}",!0);Z.then=V8(),q.fragments.pop(),q.fragments.push(Z.then);return}if(q.eat("catch")){if(Z.catch)q6(Q,"{:catch}");if(!q.eat("}"))q.require_whitespace(),Z.error=x8(q),q.allow_whitespace(),q.eat("}",!0);Z.catch=V8(),q.fragments.pop(),q.fragments.push(Z.catch);return}E8(Q,"{:then ...} or {:catch ...}")}C5(Q)}function S6(q){let Q=q.index-1,Z=q.current(),j;switch(Z.type){case"IfBlock":if(j=q.eat("if",!0,!1),!j){Z.end=Q-1,q.pop(),S6(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":j=q.eat("each",!0,!1);break;case"KeyBlock":j=q.eat("key",!0,!1);break;case"AwaitBlock":j=q.eat("await",!0,!1);break;case"SnippetBlock":j=q.eat("snippet",!0,!1);break;case"RegularElement":if(q.loose)j=!1;else Q6(Q);break;default:Q6(Q)}if(!j){Z.end=Q-1,q.pop(),S6(q);return}q.allow_whitespace(),q.eat("}",!0),Z.end=q.index,q.pop()}function sZ(q){let Q=q.index;while(q.template[Q]!=="{")Q-=1;if(q.eat("html")){q.require_whitespace();let Z=z8(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"HtmlTag",start:Q,end:q.index,expression:Z,metadata:{expression:new H8}});return}if(q.eat("debug")){let Z;if(q.read(P6))Z=[];else{let j=z8(q);Z=j.type==="SequenceExpression"?j.expressions:[j],Z.forEach((Y)=>{if(Y.type!=="Identifier")N5(Y.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=x8(q);q.allow_whitespace(),q.eat("=",!0),q.allow_whitespace();let j=q.index,Y=z8(q),J=q.index;if(Y.type==="SequenceExpression"&&!q.template.substring(j,Y.start).includes("("))D5(Y);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:Y,start:Z.start,end:J}],start:Q+2,end:q.index-1},metadata:{expression:new H8}});return}if(q.eat("render")){q.require_whitespace();let Z=z8(q);if(Z.type!=="CallExpression"&&(Z.type!=="ChainExpression"||Z.expression.type!=="CallExpression"))_5(Z);q.allow_whitespace(),q.eat("}",!0),q.append({type:"RenderTag",start:Q,end:q.index,expression:Z,metadata:{expression:new H8,dynamic:!1,arguments:[],path:[],snippets:new Set}});return}f5(q.index)}function N6(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:p1(Z,!1)})}function o1(q){if(q.match("<"))return C6;if(q.match("{"))return D6;return N6}function b6(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")n5(Z);let{name:j}=Z;switch(j){case"runes":{Q.runes=i0(Z);break}case"tag":{s5(Z);break}case"customElement":{let Y={},{value:J}=Z,K=J===!0||Array.isArray(J)?J:[J];if(K===!0)_0(Z);else if(K[0].type==="Text"){let $=d0(Z);N4(Z,$),Y.tag=$,Q.customElement=Y;break}else if(K[0].expression.type!=="ObjectExpression"){if(K[0].expression.type==="Literal"&&K[0].expression.value===null)break;_0(Z)}let W=[];for(let $ of K[0].expression.properties){if($.type!=="Property"||$.computed||$.key.type!=="Identifier")_0(Z);W.push([$.key.name,$.value])}let V=W.find(([$])=>$==="tag");if(V){let $=V[1]?.value;N4(V,$),Y.tag=$}let R=W.find(([$])=>$==="props")?.[1];if(R){if(R.type!=="ObjectExpression")Y1(Z);Y.props={};for(let $ of R.properties){if($.type!=="Property"||$.computed||$.key.type!=="Identifier"||$.value.type!=="ObjectExpression")Y1(Z);Y.props[$.key.name]={};for(let F of $.value.properties){if(F.type!=="Property"||F.computed||F.key.type!=="Identifier"||F.value.type!=="Literal")Y1(Z);if(F.key.name==="type"){if(["String","Number","Boolean","Array","Object"].indexOf(F.value.value)===-1)Y1(Z);Y.props[$.key.name].type=F.value.value}else if(F.key.name==="reflect"){if(typeof F.value.value!=="boolean")Y1(Z);Y.props[$.key.name].reflect=F.value.value}else if(F.key.name==="attribute"){if(typeof F.value.value!=="string")Y1(Z);Y.props[$.key.name].attribute=F.value.value}else Y1(Z)}}}let z=W.find(([$])=>$==="shadow")?.[1];if(z)if(z.type==="Literal"&&(z.value==="open"||z.value==="none"))Y.shadow=z.value;else if(z.type==="ObjectExpression")Y.shadow=z;else a5(Z);let M=W.find(([$])=>$==="extend")?.[1];if(M)Y.extend=M;Q.customElement=Y;break}case"namespace":{let Y=d0(Z);if(Y===a7)Q.namespace="svg";else if(Y===r7)Q.namespace="mathml";else if(Y==="html"||Y==="mathml"||Y==="svg")Q.namespace=Y;else g0(Z,'"html", "mathml" or "svg"');break}case"css":{let Y=d0(Z);if(Y==="injected")Q.css=Y;else g0(Z,'"injected"');break}case"immutable":{Q.immutable=i0(Z);break}case"preserveWhitespace":{Q.preserveWhitespace=i0(Z);break}case"accessors":{Q.accessors=i0(Z);break}default:t5(Z,j)}}return Q}function d0(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 i0(q){let Q=d0(q);if(typeof Q!=="boolean")g0(q,"true or false");return Q}var D4="[a-z0-9_.·À-ÖØ-öø-ͽͿ-῿‌-‍‿-⁀⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF-]",nZ=new RegExp(`^[a-z]${D4}*-${D4}*$`,"u"),aZ=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function N4(q,Q){if(typeof Q!=="string")J6(q);if(Q){if(!nZ.test(Q))J6(q);else if(aZ.includes(Q))r5(q)}}function b4(q){let{nodes:Q}=q.fragment;if(Q.length>0){let Z=Q[0],j=Q[Q.length-1];d5({start:Z.start,end:j.end},q.name)}}function k4(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 T4=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g;class k6{template;loose;index=0;static forCss(q){let Q=Object.create(k6.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=T4.exec(q);while(Z&&Z[0][1]!=="s");T4.lastIndex=0,this.ts=Z?.[2]==="ts",this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:V8(),options:null,comments:[],metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let j=o1;while(this.index<this.template.length)j=j(this)||o1;if(this.stack.length>1){let J=this.current();if(this.loose)J.end=this.template.length;else if(J.type==="RegularElement")J.end=J.start+1,y0(J,J.name);else J.end=J.start+1,S5(J)}if(j!==o1)w8(this.index);this.root.start=0,this.root.end=q.length;let Y=this.root.fragment.nodes.findIndex((J)=>J.type==="SvelteOptions");if(Y!==-1){let J=this.root.fragment.nodes[Y];this.root.fragment.nodes.splice(Y,1),this.root.options=b6(J),b4(J),Object.defineProperty(this.root.options,"__raw__",{value:J,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))E8(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&&k4(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="",j=this.template.codePointAt(this.index);if(A8(j,!0)){let Y=this.index;Q+=j<=65535?1:2;while(Q<this.template.length){let J=this.template.codePointAt(Q);if(!g8(J,!0))break;Q+=J<=65535?1:2}if(Z=this.template.slice(q,Q),this.index=Q,j2(Z))Q4(q,Z)}return{type:"Identifier",name:Z,start:q,end:Q,loc:{start:G8(q),end:G8(Q)}}}read_until(q){if(this.index>=this.template.length){if(this.loose)return"";w8(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(!k4(this.template.charCodeAt(this.index)))y5(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 E4(q,Q=!1){return H2(q),new k6(q,Q).root}function rZ(q){return q.charCodeAt(0)===65279?q.slice(1):q}function T6(q){delete q.metadata}function E6(q){if(!q||typeof q!=="object"||typeof q.type!=="string")return;T6(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 j of Z)E6(j);else E6(Z)}}function tZ(q,Q,Z){if(Z){for(let j of Q.options?.attributes??[])if(T6(j),j.value)for(let Y of Array.isArray(j.value)?j.value:[j.value])T6(Y);return E6(Q),Q}return F2(q,Q)}function v4(q,{loose:Q}={}){let Z=rZ(q);J2({warning:()=>!1,filename:void 0});let j=E4(Z,Q);return{modern:j,intoLegacy:()=>tZ(Z,j,!1)}}function h4(q){if(q==="var")return"let";if(q==="using"||q==="await using")return"const";return q}var eZ=null,f4=/^@component/,qj=/\r/g,Qj=/^\{\s*\}$/;class O8{ctx=j9();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((j)=>j!==void 0),Z=!1;for(let j of Q){let Y=j.attributes?.find((K)=>K.name==="lang");if(!Y){Z=!0;continue}if(O8.getStaticAttributeValue(Y)?.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=J8(this.ctx,Q),j=q.instance?.attributes?.find((K)=>K.name==="lang");if((j?O8.getStaticAttributeValue(j)?.toLowerCase():void 0)!=="ts"){p8(this.ctx,"syntax-skipped","generics",'<script generics="..."> requires lang="ts"; the generics attribute was ignored because the script is not TypeScript.',Z);return}let J=O8.getStaticAttributeValue(Q);if(!J)return;return{value:J,source:Z}}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(l8(q))return q.name;if(J1(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,j=Q.property&&"name"in Q.property?Q.property.name:void 0;if(!Z||!j)return!1;if(Z==="Number")return["POSITIVE_INFINITY","NEGATIVE_INFINITY","MAX_VALUE","MIN_VALUE","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","EPSILON","NaN"].includes(j);if(Z==="Math")return["PI","E","LN2","LN10","LOG2E","LOG10E","SQRT2","SQRT1_2"].includes(j);return!1}resolveLocalVarJSDoc(q){for(let Z of this.ctx.vars)if(Z.declarations.some((Y)=>Y.id&&typeof Y.id==="object"&&("type"in Y.id)&&Y.id.type==="Identifier"&&("name"in Y.id)&&Y.id.name===q))return Q1(this.ctx,this,Z);let Q=this.ctx.funcDecls.get(q);if(Q)return Q1(this.ctx,this,Q);return}addModuleExport(q,Q){if(I8(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=p7(this.ctx,this),this.ctx.variableInfoCacheBuilt=!0;let Z=this.ctx.variableInfoCache.get(q),j=this.ctx.explicitVariableTypesByName.get(q);if(j)return{type:j,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=j9()}static SCRIPT_BLOCK_REGEX=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi;static TS_DIRECTIVE_REGEX=/\/\/\s*@ts-[^\n\r]*/g;static stripTypeScriptDirectivesFromScripts(q){return O8.SCRIPT_BLOCK_REGEX.lastIndex=0,q.replace(O8.SCRIPT_BLOCK_REGEX,(Q,Z,j,Y)=>{O8.TS_DIRECTIVE_REGEX.lastIndex=0;let J=j.replace(O8.TS_DIRECTIVE_REGEX,"");return Z+J+Y})}parseSvelteComponent(q,Q){this.cleanup(),this.ctx.componentFilePath=Q.filePath;let Z=O8.stripTypeScriptDirectivesFromScripts(q);this.ctx.source=Z;let{modern:j,intoLegacy:Y}=v4(Z);if(x7(this,this.ctx,j),this.ctx.parsed=Y(),this.ctx.scriptLanguage==="ts")z0(this.ctx.parsed.module),z0(this.ctx.parsed.instance),z0(this.ctx.parsed.html);this.ctx.syntaxMode=_7(this.ctx);let J=this.ctx.parsed.css,K=J?.start!==void 0&&J?.end!==void 0?Z.slice(0,J.start)+" ".repeat(J.end-J.start)+Z.slice(J.end):Z;k7(this.ctx,this,K);let W={type:"ComponentRoot",instance:this.ctx.parsed.instance,html:this.ctx.parsed.html};if(P9(this.ctx,this.ctx.parsed?.module),P9(this.ctx,this.ctx.parsed?.instance),this.ctx.parsed?.module)h8(this.ctx.parsed?.module,{enter:(H)=>{if(H.type==="ImportDeclaration")O0(this.ctx,H);if(H.type==="FunctionDeclaration"){let X=H;if(X.id?.name)this.ctx.funcDecls.set(X.id.name,X)}if(H.type==="VariableDeclaration")this.ctx.vars.add(H);if(H.type==="ExportNamedDeclaration"){if(H.declaration==null)return;if(!H.declaration||typeof H.declaration!=="object"||!("type"in H.declaration))return;let X,G,U=!1,B,L,w,S=!1,I,A,N;if(H.declaration.type==="FunctionDeclaration"){let l=H.declaration;if(!l.id?.name)return;X=l.id.name,G="function",B=void 0,L="() => any",S=!0,U=!0}else if(H.declaration.type==="VariableDeclaration"){let l=H.declaration,R8=l.declarations[0];if(!R8||typeof R8!=="object"||!("id"in R8))return;let{id:d,init:a}=R8;if(!d||typeof d!=="object"||!("name"in d))return;let e=d.name;X=e,G=h4(l.kind);let Q8=a==null?{isFunction:!1}:q1(this,this.ctx,a);if({value:B,type:L,isFunction:S,defaultValue:I}=Q8,A=L,N=Q8,w=this.getExplicitPropType(e),N.pendingCallDefault)this.ctx.pendingCallDefaultCandidates.push({propName:e,location:"moduleExports",...N.pendingCallDefault})}else return;let u=Q1(this.ctx,this,H),{type:m,typeSource:K8,description:n,params:T,returnType:i,isFunction:_}=k1({explicitType:w,typeSeed:L,inferredTypeForSource:A,jsdocType:u?.type,jsdocDescription:u?.description,jsdocParams:u?.params,jsdocReturnType:u?.returnType,resolvedType:N?.resolvedType,resolvedDescription:N?.resolvedDescription,resolvedParams:N?.resolvedParams,resolvedReturnType:N?.resolvedReturnType,initializerIsFunction:S,isFunctionDeclaration:U,typedefs:this.ctx.typedefs});this.addModuleExport(X,{name:X,kind:G,description:n,deprecated:u?.deprecated,tags:u?.tags,type:m,typeSource:K8,value:B,defaultValue:I,params:T,returnType:i,isFunction:_,isFunctionDeclaration:U,isRequired:!1,constant:G==="const",reactive:!1,source:J8(this.ctx,H)})}}});let V,R=new Set,z=new Set,M=[];v7(this,this.ctx),this.ctx.activeScopes.push(this.ctx.componentScope);let $=h7(this.ctx);if(h8(W,{enter:(H,X,G)=>{f7(this,this.ctx,$,H);let U=this.ctx.scopeDeclarations.get(H);if(U)this.ctx.activeScopes.push(U);if(H.type==="AssignmentExpression")C9(this.ctx,H.left);if(H.type==="UpdateExpression")C9(this.ctx,H.argument);if(H.type==="CallExpression"){let B=H,L=B.callee&&typeof B.callee==="object"&&"name"in B.callee?B.callee.name:void 0;if(L==="createEventDispatcher"){if(X&&typeof X==="object"&&"id"in X&&X.id&&typeof X.id==="object"&&"name"in X.id)V=X.id.name}if(L==="$host"){if(X&&typeof X==="object"&&"id"in X&&X.id&&typeof X.id==="object"&&"name"in X.id)R.add(X.id.name)}if(L==="setContext")W7(this.ctx,this,H,X??void 0);if(L)M.push({name:L,arguments:B.arguments,source:J8(this.ctx,B)});if(s6(B.callee)&&l8(B.callee.property)&&B.callee.property.name==="dispatchEvent"&&(c8(B.callee.object,"$host")||l8(B.callee.object)&&R.has(B.callee.object.name))){let w=V7(this.ctx,B);if(w)z.add(w)}}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="Spread"){let B=H;if(B.expression?.name==="$$restProps"||this.ctx.restPropLocals.has(B.expression?.name??""))T7(this.ctx,X)}if(H.type==="FunctionDeclaration"){let B=H;if(B.id?.name)this.ctx.funcDecls.set(B.id.name,B)}if(H.type==="ImportDeclaration")O0(this.ctx,H);if(H.type==="VariableDeclaration"){if(this.ctx.vars.add(H),X&&typeof X==="object"&&"type"in X&&X.type==="Program"&&H.declarations.some((B)=>c8(e8(B.init),"$props")))u7(this,this.ctx,H)}if(H.type==="ExportNamedDeclaration"){if(H.declaration==null&&H.specifiers.length===0)return;let B;if(H.declaration==null&&H.specifiers[0]?.type==="ExportSpecifier"){let Q8=H.specifiers[0],r=Q8.local&&typeof Q8.local==="object"&&"name"in Q8.local?Q8.local.name:void 0,$8=Q8.exported&&typeof Q8.exported==="object"&&"name"in Q8.exported?Q8.exported.name:void 0;if(!r||!$8)return;let m8;for(let C1 of Array.from(this.ctx.vars))if(C1.declarations.some((d8)=>d8.id&&typeof d8.id==="object"&&("type"in d8.id)&&d8.id.type==="Identifier"&&d8.id.name===r)){m8=C1;break}H.declaration=m8,B=$8}if(H.declaration==null)return;if(!H.declaration||typeof H.declaration!=="object"||!("type"in H.declaration))return;let L,w=!1,S,I,A,N=!1,u=!1,m,K8,n,T;if(H.declaration.type==="FunctionDeclaration"){let Q8=H.declaration;if(!Q8.id?.name)return;B??=Q8.id.name,m=Q8.id.name,L="function",S=void 0,I="() => any",N=!0,w=!0,u=!1}else if(H.declaration.type==="VariableDeclaration"){let Q8=H.declaration,r=Q8.declarations[0];if(!r||typeof r!=="object"||!("id"in r))return;let{id:$8,init:m8}=r;if($8&&typeof $8==="object"&&"name"in $8){let d8=$8.name;m=d8,B??=d8,A=this.getExplicitPropType(d8)}else return;L=h4(Q8.kind),u=L==="let"&&m8==null;let C1=m8==null?{isFunction:!1}:q1(this,this.ctx,m8);if({value:S,type:I,isFunction:N,defaultValue:K8}=C1,n=I,T=C1,T.pendingCallDefault)this.ctx.pendingCallDefaultCandidates.push({propName:B,location:"props",...T.pendingCallDefault})}else return;let i=Q1(this.ctx,this,H),{type:_,typeSource:l,description:R8,params:d,returnType:a,isFunction:e}=k1({explicitType:A,typeSeed:I,inferredTypeForSource:n,jsdocType:i?.type,jsdocDescription:i?.description,jsdocParams:i?.params,jsdocReturnType:i?.returnType,resolvedType:T?.resolvedType,resolvedDescription:T?.resolvedDescription,resolvedParams:T?.resolvedParams,resolvedReturnType:T?.resolvedReturnType,initializerIsFunction:N,isFunctionDeclaration:w,typedefs:this.ctx.typedefs});I1(this,this.ctx,B,{name:B,...m!==void 0&&m!==B?{localName:m}:{},kind:L,description:R8,binding:i?.binding,deprecated:i?.deprecated,tags:i?.tags,type:_,typeSource:l,value:S,defaultValue:K8,params:d,returnType:a,isFunction:e,isFunctionDeclaration:w,isRequired:u,constant:L==="const",reactive:this.ctx.reactive_vars.has(B),source:J8(this.ctx,H)})}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="Comment"){let L=H?.data?.trim()??"";if(f4.test(L))this.ctx.componentComment=L.replace(f4,"").replace(qj,""),this.ctx.componentCommentSource=J8(this.ctx,H)}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="Slot"){let B=H,L=B.attributes?.find((I)=>I.name==="name")?.value?.[0]?.data,w=(B.attributes||[]).filter((I)=>I.name!=="name").reduce((I,A)=>{let N={value:void 0,replace:!1},u=A.value;if(u===void 0)return I;if(u[0]){let m=u[0],{type:K8,expression:n,raw:T,start:i,end:_}=m;if(K8==="Text"&&T!==void 0)N.value=JSON.stringify(T);else if(K8==="AttributeShorthand"&&n&&typeof n==="object"&&"name"in n)N.value=n.name,N.replace=!0;if(n&&typeof n==="object"&&"type"in n){if(n.type==="Literal"&&"value"in n){let l=n.value;N.value=typeof l==="string"?JSON.stringify(l):String(l)}else if(n.type==="MemberExpression")N.value=Q0(this.ctx,this,n);else if(n.type!=="Identifier"){if(i!==void 0&&_!==void 0){if(n.type==="ObjectExpression"||n.type==="TemplateLiteral")N.value=Z8(this.ctx,i+1,_-1)}}}}if(A.name)I[A.name]=N;return I},{}),S=B.children?.map(({start:I,end:A})=>{if(I===void 0||A===void 0)return"";return Z8(this.ctx,I,A)??""}).join("").trim();N1(this.ctx,{slot_name:L,slot_props:w,slot_fallback:S,source:J8(this.ctx,H)})}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="RenderTag"){let B=H,L=I7(this.ctx,B.expression);if(L){let w;if(L.arguments.length===0)w={};else if(L.arguments.length===1&&typeof L.arguments[0]==="object"&&L.arguments[0]&&"type"in L.arguments[0]&&L.arguments[0].type==="ObjectExpression")w=C7(this.ctx,this,L.arguments[0]);else if(L.arguments.length===1)p8(this.ctx,"syntax-skipped",L.publicName,`{@render ${L.publicName}(...)} argument is not a plain object literal; the render call was not mapped to slot metadata.`,J8(this.ctx,H));let S=L.publicName==="children"?void 0:L.publicName,I=S===void 0?eZ:S;if(w!==void 0)N1(this.ctx,{slot_name:S,slot_props:w,source:J8(this.ctx,H)});if(w!==void 0||this.ctx.slots.has(I))this.ctx.snippetPropLocals.add(L.trackingName)}}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="EventHandler"){let B=H;if(B.expression==null&&B.name){if(X!=null&&typeof X==="object"&&"name"in X){let L=typeof X.name==="string"?X.name:void 0,w="type"in X?String(X.type):void 0;if(L&&w){let S=w==="InlineComponent"?{type:"InlineComponent",name:L}:{type:"Element",name:L};this.ctx.forwardedEvents.set(B.name,S);let I=this.ctx.events.get(B.name),A=this.ctx.eventDescriptions.get(B.name),N=I?.deprecated;if(!I)this.ctx.events.set(B.name,{type:"forwarded",name:B.name,element:S,description:A,deprecated:N,source:J8(this.ctx,H)});else if(I.type==="forwarded"&&A&&!I.description)this.ctx.events.set(B.name,{...I,description:A,deprecated:I.deprecated??N,source:I.source||J8(this.ctx,H)})}}}}if(X&&typeof X==="object"&&"type"in X&&(String(X.type)==="Element"||String(X.type)==="InlineComponent")&&H&&typeof H==="object"&&"type"in H&&String(H.type)==="Binding"){let B=H;if(B.expression?.name){let L=W0(this.ctx,B.expression.name);if(L)this.ctx.reactive_vars.add(L)}if(String(X.type)==="Element"&&B.name==="this"&&B.expression?.name&&"name"in X&&typeof X.name==="string"){let L=W0(this.ctx,B.expression.name);if(!L)return;let w=X.name;if(this.ctx.bindings.has(L)){let S=this.ctx.bindings.get(L);if(S&&!S.elements.includes(w))this.ctx.bindings.set(L,{...S,elements:[...S.elements,w]})}else this.ctx.bindings.set(L,{elements:[w]})}}},leave:(H)=>{if(this.ctx.scopeDeclarations.has(H))this.ctx.activeScopes.pop();y7($,H)}}),V!==void 0){for(let H of M)if(H.name===V){let X=H.arguments[0],G=X&&typeof X==="object"&&"value"in X?X.value:void 0,U=H.arguments[1],B=U&&typeof U==="object"&&"value"in U?U.value:void 0;if(G!=null)P1(this.ctx,{name:String(G),detail:B==null?"":X9(B),has_argument:Boolean(U),source:H.source})}}let F=new Set(z);if(V!==void 0){for(let H of M)if(H.name===V){let X=H.arguments[0],G=X&&typeof X==="object"&&"value"in X?X.value:void 0;if(G!=null)F.add(String(G))}}this.ctx.forwardedEvents.forEach((H,X)=>{let G=this.ctx.events.get(X);if(G&&G.type==="dispatched"&&!F.has(X)){let U=this.ctx.eventDescriptions.get(X),B={type:"forwarded",name:X,element:H,description:U,deprecated:G.deprecated,tags:G.tags,source:G.source};if(G.detail!==void 0&&G.detail!=="undefined")B.detail=G.detail;this.ctx.events.set(X,B)}}),m7(this.ctx,F);let P=this.ctx.syntaxMode==="runes"?new Set(Array.from(this.ctx.snippetPropLocals,(H)=>this.resolvePublicPropName(H))):new Set,D=O8.mapToArray(this.ctx.props).filter((H)=>!P.has(H.name)).map((H)=>{if(this.ctx.bindings.has(H.name)){let X=this.ctx.bindings.get(H.name)?.elements.sort().map((G)=>r6(G)).join(" | ");return{...H,type:`null | ${X}`,typeSource:"inferred",reactive:H.reactive||this.ctx.reactive_vars.has(H.name)}}return{...H,reactive:H.reactive||this.ctx.reactive_vars.has(H.name)}});this.ctx.activeScopes.length=0;let C=O8.mapToArray(this.ctx.slots).map((H)=>{if(!H.slot_props)return H;if(typeof H.slot_props==="string")return Qj.test(H.slot_props)?{...H,slot_props:"Record<string, never>"}:H;let X=H.slot_props,G=[];for(let B of Object.keys(X)){if(X[B].replace&&X[B].value!==void 0)X[B].value=this.getPropTypeByLocalOrPublic(X[B].value);if(X[B].value===void 0)X[B].value="any";G.push(`${B}: ${X[B].value}`)}let U=G.length===0?"Record<string, never>":G.length===1?`{ ${G[0]} }`:`{
86
86
  ${G.join(`;
87
87
  `)};
88
- }`;return{...H,slot_props:U}}).sort((H,X)=>{let G=H.name??"",U=X.name??"";if(G<U)return-1;if(G>U)return 1;return 0});if(this.ctx.deferredSlotBlockGenerics.length>0){let H=[...A.map((X)=>X.type??""),...D.map((X)=>X.slot_props??"")].join(`
89
- `);for(let{name:X,constraint:G}of this.ctx.deferredSlotBlockGenerics){let U=X.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!new RegExp(`\\b${U}\\b`).test(H))continue;this.accumulateGeneric(X,G)}}if(this.ctx.scriptGenericsAttribute){if(this.ctx.generics)p8(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=R7(this.ctx.scriptGenericsAttribute.value)}let v=O8.mapToArray(this.ctx.moduleExports),y=O8.mapToArray(this.ctx.events).map((H)=>{switch(H.type){case"forwarded":return{...H,element:H.element.name};case"dispatched":return H;default:return H}}).sort((H,X)=>{let G=H.name.localeCompare(X.name);if(G!==0)return G;let U=H.type.localeCompare(X.type);if(U!==0)return U;if(H.type==="forwarded"&&X.type==="forwarded"){let B=H.element.localeCompare(X.element);if(B!==0)return B}return(H.detail??"").localeCompare(X.detail??"")}),h=O8.mapToArray(this.ctx.typedefs),n=O8.mapToArray(this.ctx.contexts),g={props:new Map(this.ctx.pendingCallDefaultCandidates.filter((H)=>H.location==="props").map((H)=>[H.propName,H])),moduleExports:new Map(this.ctx.pendingCallDefaultCandidates.filter((H)=>H.location==="moduleExports").map((H)=>[H.propName,H]))};for(let H of A)if(H.typeSource==="unknown"){let X=g.props.get(H.name);if(X)H.type="any";let G=X?X.importSource?`Prop "${H.name}" default calls "${X.calleeName}()" imported from "${X.importSource}"; falling back to "any" pending cross-file resolution.`:`Prop "${H.name}" default calls "${X.calleeName}()", but its return type could not be inferred; falling back to "any".`:`Prop "${H.name}" type could not be inferred; falling back to "${H.type??"any"}".`;p8(this.ctx,"prop-unknown-type",H.name,G,H.source)}for(let H of v)if(H.typeSource==="unknown"&&g.moduleExports.has(H.name))H.type="any";for(let H of this.ctx.jsDocEventNames){if(F.has(H))continue;if(this.ctx.forwardedEvents.has(H))continue;if(this.ctx.props.has(`on${H}`))continue;p8(this.ctx,"event-no-source",H,`@event "${H}" has no matching dispatch or callback prop.`,this.ctx.jsDocEventSources.get(H))}let j8={source:Q0(this.ctx,0,this.ctx.source?.length),syntaxMode:this.ctx.syntaxMode,...this.ctx.scriptLanguage?{scriptLanguage:this.ctx.scriptLanguage}:{},props:A,moduleExports:v,slots:D,events:y,typedefs:h,generics:this.ctx.generics,rest_props:this.ctx.rest_props,extends:this.ctx.extends,componentComment:this.ctx.componentComment,componentCommentSource:this.ctx.componentCommentSource,contexts:n,customElementTag:this.ctx.customElementTag,diagnostics:this.ctx.diagnosticRecords.slice()},U8=O7(this.ctx);if(U8)j8[e1]=U8;return j8}}var y4="sveld",g4="0.36.4";var E6="5.56.8";var x4=1,_4=new WeakMap;function o1(q,Q={}){let Z=_4.get(q),j=Z?.get(Q.entryExports);if(j)return j;let Y=Array.from(q,([,K])=>{let{diagnostics:W,...V}=K;return V}).sort((K,W)=>K.moduleName.localeCompare(W.moduleName)),J={schemaVersion:x4,generator:{name:y4,version:g4,svelteVersion:E6},total:Y.length,components:Y};if(Q.entryExports&&Q.entryExports.length>0)J.totalExports=Q.entryExports.length,J.exports=Q.entryExports;if(!Z)Z=new Map,_4.set(q,Z);return Z.set(Q.entryExports,J),J}var m4=/^[}\])>]/,tZ=new Set(["{","(","["]),eZ=new Set(["}",")","]"]);var qj=/\binterface\s+[A-Za-z_$][\w$]*(\s*<[^{};]*>)?\s*$/,l4=/[ \t]+$/,Qj=/\s+$/,Zj=/[{([]$/,jj=/\s/;function Yj(q){return qj.test(q.slice(-200))}var Hj=200;function Kj(q,Q){let Z="";for(let j=q.length-1;j>=0&&Z.length<Q;j--)Z=q[j]+Z;return Z.length>Q?Z.slice(-Q):Z}function u4(q,Q){while(q.length>0&&Q.test(q[q.length-1]))q.pop()}function Jj(q){let Q="",Z=null,j=!1;for(let Y=0;Y<q.length;Y++){let J=q[Y],K=q[Y-1];if(Z){if(Q+=J,Z==="double"&&J==='"'&&K!=="\\"||Z==="single"&&J==="'"&&K!=="\\"||Z==="template"&&J==="`"&&K!=="\\")Z=null;j=!1;continue}if(J==='"'||J==="'"||J==="`"){Z=J==='"'?"double":J==="'"?"single":"template",Q+=J,j=!1;continue}if(jj.test(J)){if(!j&&Q.length>0)Q+=" ",j=!0;continue}Q+=J,j=!1}return Q.trimEnd()}function Xj(q,Q){let Z=0,j="normal";for(let Y=Q;Y<q.length;Y++){let J=q[Y],K=q[Y-1];if(j==="blockComment"){if(K==="*"&&J==="/")j="normal";continue}if(j==="double"||j==="single"){if(J===(j==="double"?'"':"'")&&K!=="\\")j="normal";continue}if(j==="template"){if(J==="`"&&K!=="\\")j="normal";continue}if(J==="/"&&q[Y+1]==="*")j="blockComment";else if(J==='"')j="double";else if(J==="'")j="single";else if(J==="`")j="template";else if(J==="{")Z++;else if(J==="}"){if(Z--,Z===0)return Y}}return-1}function c4(q){let Q=[],Z="normal";for(let j=0;j<q.length;j++){let Y=q[j],J=q[j-1];if(Z==="blockComment"){if(Q.push(Y),J==="*"&&Y==="/")Z="normal";continue}if(Z==="double"||Z==="single"){if(Q.push(Y),Y===(Z==="double"?'"':"'")&&J!=="\\")Z="normal";continue}if(Z==="template"){if(Q.push(Y),Y==="`"&&J!=="\\")Z="normal";continue}if(Y==="/"&&q[j+1]==="*"){Z="blockComment",Q.push(Y);continue}if(Y==='"'){Z="double",Q.push(Y);continue}if(Y==="'"){Z="single",Q.push(Y);continue}if(Y==="`"){Z="template",Q.push(Y);continue}if(Y==="{"){let K=Xj(q,j);if(K===-1){Q.push(Y);continue}let W=q.slice(j+1,K);if(W.trim()===""){Q.push("{}"),j=K;continue}if(!W.includes("/*")&&q[j+1]!==`
90
- `&&!Yj(Kj(Q,Hj))){let V=c4(W).trim();if(!V.includes(`
91
- `)){let R=V.endsWith(";")?V.slice(0,-1):V,z=`{ ${Jj(R)} }`;if(z.length<=120){Q.push(z),j=K;continue}}}if(Q.push(Y),q[j+1]!==`
88
+ }`;return{...H,slot_props:U}}).sort((H,X)=>{let G=H.name??"",U=X.name??"";if(G<U)return-1;if(G>U)return 1;return 0});if(this.ctx.deferredSlotBlockGenerics.length>0){let H=[...D.map((X)=>X.type??""),...C.map((X)=>X.slot_props??"")].join(`
89
+ `);for(let{name:X,constraint:G}of this.ctx.deferredSlotBlockGenerics){let U=X.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!new RegExp(`\\b${U}\\b`).test(H))continue;this.accumulateGeneric(X,G)}}if(this.ctx.scriptGenericsAttribute){if(this.ctx.generics)p8(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=F7(this.ctx.scriptGenericsAttribute.value)}let b=O8.mapToArray(this.ctx.moduleExports),g=O8.mapToArray(this.ctx.events).map((H)=>{switch(H.type){case"forwarded":return{...H,element:H.element.name};case"dispatched":return H;default:return H}}).sort((H,X)=>{let G=H.name.localeCompare(X.name);if(G!==0)return G;let U=H.type.localeCompare(X.type);if(U!==0)return U;if(H.type==="forwarded"&&X.type==="forwarded"){let B=H.element.localeCompare(X.element);if(B!==0)return B}return(H.detail??"").localeCompare(X.detail??"")}),h=O8.mapToArray(this.ctx.typedefs),o=O8.mapToArray(this.ctx.contexts),y={props:new Map(this.ctx.pendingCallDefaultCandidates.filter((H)=>H.location==="props").map((H)=>[H.propName,H])),moduleExports:new Map(this.ctx.pendingCallDefaultCandidates.filter((H)=>H.location==="moduleExports").map((H)=>[H.propName,H]))};for(let H of D)if(H.typeSource==="unknown"){let X=y.props.get(H.name);if(X)H.type="any";let G=X?X.importSource?`Prop "${H.name}" default calls "${X.calleeName}()" imported from "${X.importSource}"; falling back to "any" pending cross-file resolution.`:`Prop "${H.name}" default calls "${X.calleeName}()", but its return type could not be inferred; falling back to "any".`:`Prop "${H.name}" type could not be inferred; falling back to "${H.type??"any"}".`;p8(this.ctx,"prop-unknown-type",H.name,G,H.source)}for(let H of b)if(H.typeSource==="unknown"&&y.moduleExports.has(H.name))H.type="any";for(let H of this.ctx.jsDocEventNames){if(F.has(H))continue;if(this.ctx.forwardedEvents.has(H))continue;if(this.ctx.props.has(`on${H}`))continue;p8(this.ctx,"event-no-source",H,`@event "${H}" has no matching dispatch or callback prop.`,this.ctx.jsDocEventSources.get(H))}let q8={source:Z0(this.ctx,0,this.ctx.source?.length),syntaxMode:this.ctx.syntaxMode,...this.ctx.scriptLanguage?{scriptLanguage:this.ctx.scriptLanguage}:{},props:D,moduleExports:b,slots:C,events:g,typedefs:h,generics:this.ctx.generics,rest_props:this.ctx.rest_props,extends:this.ctx.extends,componentComment:this.ctx.componentComment,componentCommentSource:this.ctx.componentCommentSource,contexts:o,customElementTag:this.ctx.customElementTag,diagnostics:this.ctx.diagnosticRecords.slice()},U8=R7(this.ctx);if(U8)q8[q0]=U8;return q8}}var g4="sveld",_4="0.36.5";var v6="5.56.8";var u4=1,x4=new WeakMap;function s1(q,Q={}){let Z=x4.get(q),j=Z?.get(Q.entryExports);if(j)return j;let Y=Array.from(q,([,K])=>{let{diagnostics:W,...V}=K;return V}).sort((K,W)=>K.moduleName.localeCompare(W.moduleName)),J={schemaVersion:u4,generator:{name:g4,version:_4,svelteVersion:v6},total:Y.length,components:Y};if(Q.entryExports&&Q.entryExports.length>0)J.totalExports=Q.entryExports.length,J.exports=Q.entryExports;if(!Z)Z=new Map,x4.set(q,Z);return Z.set(Q.entryExports,J),J}var l4=/^[}\])>]/,jj=new Set(["{","(","["]),Yj=new Set(["}",")","]"]);var Hj=/\binterface\s+[A-Za-z_$][\w$]*(\s*<[^{};]*>)?\s*$/,c4=/[ \t]+$/,Kj=/\s+$/,Jj=/[{([]$/,Xj=/\s/;function Wj(q){return Hj.test(q.slice(-200))}var Vj=200;function Gj(q,Q){let Z="";for(let j=q.length-1;j>=0&&Z.length<Q;j--)Z=q[j]+Z;return Z.length>Q?Z.slice(-Q):Z}function m4(q,Q){while(q.length>0&&Q.test(q[q.length-1]))q.pop()}function zj(q){let Q="",Z=null,j=!1;for(let Y=0;Y<q.length;Y++){let J=q[Y],K=q[Y-1];if(Z){if(Q+=J,Z==="double"&&J==='"'&&K!=="\\"||Z==="single"&&J==="'"&&K!=="\\"||Z==="template"&&J==="`"&&K!=="\\")Z=null;j=!1;continue}if(J==='"'||J==="'"||J==="`"){Z=J==='"'?"double":J==="'"?"single":"template",Q+=J,j=!1;continue}if(Xj.test(J)){if(!j&&Q.length>0)Q+=" ",j=!0;continue}Q+=J,j=!1}return Q.trimEnd()}function Oj(q,Q){let Z=0,j="normal";for(let Y=Q;Y<q.length;Y++){let J=q[Y],K=q[Y-1];if(j==="blockComment"){if(K==="*"&&J==="/")j="normal";continue}if(j==="double"||j==="single"){if(J===(j==="double"?'"':"'")&&K!=="\\")j="normal";continue}if(j==="template"){if(J==="`"&&K!=="\\")j="normal";continue}if(J==="/"&&q[Y+1]==="*")j="blockComment";else if(J==='"')j="double";else if(J==="'")j="single";else if(J==="`")j="template";else if(J==="{")Z++;else if(J==="}"){if(Z--,Z===0)return Y}}return-1}function i4(q){let Q=[],Z="normal";for(let j=0;j<q.length;j++){let Y=q[j],J=q[j-1];if(Z==="blockComment"){if(Q.push(Y),J==="*"&&Y==="/")Z="normal";continue}if(Z==="double"||Z==="single"){if(Q.push(Y),Y===(Z==="double"?'"':"'")&&J!=="\\")Z="normal";continue}if(Z==="template"){if(Q.push(Y),Y==="`"&&J!=="\\")Z="normal";continue}if(Y==="/"&&q[j+1]==="*"){Z="blockComment",Q.push(Y);continue}if(Y==='"'){Z="double",Q.push(Y);continue}if(Y==="'"){Z="single",Q.push(Y);continue}if(Y==="`"){Z="template",Q.push(Y);continue}if(Y==="{"){let K=Oj(q,j);if(K===-1){Q.push(Y);continue}let W=q.slice(j+1,K);if(W.trim()===""){Q.push("{}"),j=K;continue}if(!W.includes("/*")&&q[j+1]!==`
90
+ `&&!Wj(Gj(Q,Vj))){let V=i4(W).trim();if(!V.includes(`
91
+ `)){let R=V.endsWith(";")?V.slice(0,-1):V,z=`{ ${zj(R)} }`;if(z.length<=120){Q.push(z),j=K;continue}}}if(Q.push(Y),q[j+1]!==`
92
92
  `)Q.push(`
93
- `);continue}if(Y==="}"){if(u4(Q,l4),Q[Q.length-1]!==`
93
+ `);continue}if(Y==="}"){if(m4(Q,c4),Q[Q.length-1]!==`
94
94
  `)Q.push(`
95
- `);Q.push(Y);continue}if(Y===";"){if(u4(Q,Qj),Q.push(";"),q[j+1]!==`
95
+ `);Q.push(Y);continue}if(Y===";"){if(m4(Q,Kj),Q.push(";"),q[j+1]!==`
96
96
  `)Q.push(`
97
- `);continue}Q.push(Y)}return Q.join("")}function Wj(q){let Q="",Z=null;for(let j=0;j<q.length;j++){let Y=q[j],J=q[j-1];if(Z){if(Q+=Y,Z==="double"&&Y==='"'&&J!=="\\"||Z==="single"&&Y==="'"&&J!=="\\"||Z==="template"&&Y==="`"&&J!=="\\")Z=null;continue}if(Y==='"'||Y==="'"||Y==="`"){Z=Y==='"'?"double":Y==="'"?"single":"template",Q+=Y;continue}if(Y===" "&&Q.endsWith(" "))continue;Q+=Y}return Q}function Vj(q){let Q=q.split(`
98
- `),Z=[],j=0,Y=!1,J=0;for(let K of Q){let W=K.trim();if(W===""){Z.push("");continue}if(Y){if(Z.push(`${" ".repeat(J)} ${W}`),W.includes("*/"))Y=!1;continue}if(W.startsWith("/**")&&!W.includes("*/")){Z.push(" ".repeat(j)+W),Y=!0,J=j;continue}let V=Wj(W),R=m4.test(V),z=Math.max(0,j-(R?1:0));if(Z.push(" ".repeat(z)+V),V.startsWith("/**")&&V.includes("*/"))continue;let M=null;for(let $=0;$<V.length;$++){let F=V[$],P=V[$-1];if(M){if(M==="double"&&F==='"'&&P!=="\\"||M==="single"&&F==="'"&&P!=="\\"||M==="template"&&F==="`"&&P!=="\\")M=null;continue}if(F==='"')M="double";else if(F==="'")M="single";else if(F==="`")M="template";else if(tZ.has(F))j++;else if(eZ.has(F))j=Math.max(0,j-1);else if(F==="<")j++;else if(F===">"&&P!=="=")j=Math.max(0,j-1)}}return Z.join(`
99
- `)}function Gj(q){let Q=q.split(`
100
- `).map((j)=>j.replace(l4,"")),Z=[];for(let j of Q){let Y=j==="",J=Z.length>0&&Z[Z.length-1]==="",K=Z.length>0&&Zj.test(Z[Z.length-1]);if(Y){if(Z.length===0||J||K)continue;Z.push(j);continue}if(m4.test(j)&&J)Z.pop();Z.push(j)}while(Z.length>0&&Z[Z.length-1]==="")Z.pop();return Z.join(`
101
- `)}function i4(q){let Q=c4(q),Z=Vj(Q);return`${Gj(Z)}
102
- `}var K1="any",v8="",zj="Record<string, any>",h6="Record<string, never>",Oj=/(-|\s+|:)/,Uj=/("|')/,Rj=/CustomEvent/,Bj=/^[A-Z]/,Fj=/\n/,d4=/=>/,Mj=/(?:^|\n)@default\b/,f6=/\n/g,$j=/\s+/g,Lj=/(^|[^.\w])Snippet(?:\s*<|\b)/,wj=/import\s+type\s+[^;]*\bSnippet\b[^;]*from\s+"svelte";/,Aj=/[.*+?^${}()|[\]\\]/g,Cj=/^const\s+/;function y6(q){return q.replace(Cj,"")}function Ij(q){if(!q)return;return q.replace(f6,`
103
- * `)}function i0(q){if(!q)return"";return`/** ${q} */`}function d0(q){if(!q)return"";return`/**
104
- * ${q.replace(f6,`
97
+ `);continue}Q.push(Y)}return Q.join("")}function Uj(q){let Q="",Z=null;for(let j=0;j<q.length;j++){let Y=q[j],J=q[j-1];if(Z){if(Q+=Y,Z==="double"&&Y==='"'&&J!=="\\"||Z==="single"&&Y==="'"&&J!=="\\"||Z==="template"&&Y==="`"&&J!=="\\")Z=null;continue}if(Y==='"'||Y==="'"||Y==="`"){Z=Y==='"'?"double":Y==="'"?"single":"template",Q+=Y;continue}if(Y===" "&&Q.endsWith(" "))continue;Q+=Y}return Q}function Rj(q){let Q=q.split(`
98
+ `),Z=[],j=0,Y=!1,J=0;for(let K of Q){let W=K.trim();if(W===""){Z.push("");continue}if(Y){if(Z.push(`${" ".repeat(J)} ${W}`),W.includes("*/"))Y=!1;continue}if(W.startsWith("/**")&&!W.includes("*/")){Z.push(" ".repeat(j)+W),Y=!0,J=j;continue}let V=Uj(W),R=l4.test(V),z=Math.max(0,j-(R?1:0));if(Z.push(" ".repeat(z)+V),V.startsWith("/**")&&V.includes("*/"))continue;let M=null;for(let $=0;$<V.length;$++){let F=V[$],P=V[$-1];if(M){if(M==="double"&&F==='"'&&P!=="\\"||M==="single"&&F==="'"&&P!=="\\"||M==="template"&&F==="`"&&P!=="\\")M=null;continue}if(F==='"')M="double";else if(F==="'")M="single";else if(F==="`")M="template";else if(jj.has(F))j++;else if(Yj.has(F))j=Math.max(0,j-1);else if(F==="<")j++;else if(F===">"&&P!=="=")j=Math.max(0,j-1)}}return Z.join(`
99
+ `)}function Bj(q){let Q=q.split(`
100
+ `).map((j)=>j.replace(c4,"")),Z=[];for(let j of Q){let Y=j==="",J=Z.length>0&&Z[Z.length-1]==="",K=Z.length>0&&Jj.test(Z[Z.length-1]);if(Y){if(Z.length===0||J||K)continue;Z.push(j);continue}if(l4.test(j)&&J)Z.pop();Z.push(j)}while(Z.length>0&&Z[Z.length-1]==="")Z.pop();return Z.join(`
101
+ `)}function d4(q){let Q=i4(q),Z=Rj(Q);return`${Bj(Z)}
102
+ `}var K1="any",v8="",Fj="Record<string, any>",f6="Record<string, never>",Mj=/(-|\s+|:)/,$j=/("|')/,Lj=/CustomEvent/,wj=/^[A-Z]/,Aj=/\n/,n4=/=>/,Cj=/(?:^|\n)@default\b/,y6=/\n/g,Ij=/\s+/g,w1=/(^|[^.\w])Snippet(?:\s*<|\b)/,Pj=/import\s+type\s+[^;]*\bSnippet\b[^;]*from\s+"svelte";/,Sj=/[.*+?^${}()|[\]\\]/g,Dj=/^const\s+/;function g6(q){return q.replace(Dj,"")}function Nj(q){if(!q)return;return q.replace(y6,`
103
+ * `)}function p0(q){if(!q)return"";return`/** ${q} */`}function o0(q){if(!q)return"";return`/**
104
+ * ${q.replace(y6,`
105
105
  * `)}
106
- */`}function p4(q){if(q===void 0)return;return q===!0?"@deprecated":`@deprecated ${q}`}function Pj(q){let Q=p4(q);if(Q===void 0)return;return`* ${Q.replace(f6,`
106
+ */`}function a4(q){if(q===void 0)return;return q===!0?"@deprecated":`@deprecated ${q}`}function bj(q){let Q=a4(q);if(Q===void 0)return;return`* ${Q.replace(y6,`
107
107
  * `)}
108
- `}function Sj(q,Q){if(!Q)return[`@${q}`];if(!Q.includes(`
108
+ `}function kj(q,Q){if(!Q)return[`@${q}`];if(!Q.includes(`
109
109
  `))return[`@${q} ${Q}`];return[`@${q}`,...Q.split(`
110
- `)]}function o4(q){let Q=[];for(let{name:Z,body:j}of q??[])Q.push(...Sj(Z,j));return Q}function s1(q,Q,Z){let j=p4(Z),Y=o4(Q),J=Y.length>0;if(!q&&!J&&!j)return"";if(!J&&!j)return q?.includes(`
111
- `)?d0(q):i0(q);let K=[];if(q)K.push(...q.split(`
110
+ `)]}function r4(q){let Q=[];for(let{name:Z,body:j}of q??[])Q.push(...kj(Z,j));return Q}function n1(q,Q,Z){let j=a4(Z),Y=r4(Q),J=Y.length>0;if(!q&&!J&&!j)return"";if(!J&&!j)return q?.includes(`
111
+ `)?o0(q):p0(q);let K=[];if(q)K.push(...q.split(`
112
112
  `));if(K.push(...Y),j)K.push(...j.split(`
113
113
  `));return`/**
114
114
  * ${K.join(`
115
115
  * `)}
116
- */`}function Dj(q){let Q=o4(q);if(Q.length===0)return"";return Q.map((Z)=>`* ${Z}
117
- `).join("")}function p0(q){if(q===void 0)return K1;return`${q}
118
- `}function o0(q){if(q.typedefs.length===0)return v8;return q.typedefs.map((Q)=>{return`${Q.description?`${d0(Q.description)}
116
+ */`}function Tj(q){let Q=r4(q);if(Q.length===0)return"";return Q.map((Z)=>`* ${Z}
117
+ `).join("")}function s0(q){if(q===void 0)return K1;return`${q}
118
+ `}function n0(q){if(q.typedefs.length===0)return v8;return q.typedefs.map((Q)=>{return`${Q.description?`${o0(Q.description)}
119
119
  `:""}export ${Q.ts}`}).join(`
120
120
 
121
- `)}function s4(q,Q){let Z=Q.replace(Aj,"\\$&");return new RegExp(`\\b${Z}\\b`).test(q)}function Nj(q){if(q===null)return[];return q[0].split(",").map((Q,Z)=>({name:Q.trim(),constraint:(X1(q[1]??"")[Z]??Q).trim()}))}function bj(q,Q){let Z=Nj(q).filter(({name:j})=>s4(Q,j));if(Z.length===0)return{declSuffix:v8,refSuffix:v8};return{declSuffix:`<${Z.map(({constraint:j})=>y6(j)).join(", ")}>`,refSuffix:`<${Z.map(({name:j})=>j).join(", ")}>`}}function n4(q){if(!q.contexts||q.contexts.length===0)return v8;let Q=q.generics===null?[]:q.generics[0].split(",").map((Z,j)=>({name:Z.trim(),constraint:(X1(q.generics?.[1]??"")[j]??Z).trim()}));return q.contexts.map((Z)=>{let j=Z.properties.map((W)=>{let V=W.description?`${i0(W.description)}
121
+ `)}var p4=new Map;function t4(q,Q){let Z=p4.get(Q);if(Z===void 0){let j=Q.replace(Sj,"\\$&");Z=new RegExp(`\\b${j}\\b`),p4.set(Q,Z)}return Z.test(q)}var o4,s4=[];function _6(q){if(q!==o4)o4=q,s4=S1(q);return s4}function Ej(q){if(q===null)return[];return q[0].split(",").map((Q,Z)=>({name:Q.trim(),constraint:(_6(q[1]??"")[Z]??Q).trim()}))}function vj(q,Q){let Z=Ej(q).filter(({name:j})=>t4(Q,j));if(Z.length===0)return{declSuffix:v8,refSuffix:v8};return{declSuffix:`<${Z.map(({constraint:j})=>g6(j)).join(", ")}>`,refSuffix:`<${Z.map(({name:j})=>j).join(", ")}>`}}function e4(q){if(!q.contexts||q.contexts.length===0)return v8;let Q=q.generics===null?[]:q.generics[0].split(",").map((Z,j)=>({name:Z.trim(),constraint:(_6(q.generics?.[1]??"")[j]??Z).trim()}));return q.contexts.map((Z)=>{let j=Z.properties.map((W)=>{let V=W.description?`${p0(W.description)}
122
122
  `:"",R=W.optional?"?":"";return`${V}${W.name}${R}: ${W.type};`}).join(`
123
- `),Y=Z.description?`${d0(Z.description)}
124
- `:"",J=Q.filter(({name:W})=>Z.properties.some((V)=>s4(V.type,W))).map(({constraint:W})=>W),K=J.length>0?`<${J.map(y6).join(", ")}>`:"";if(Z.properties.length===0)return`${Y}export type ${Z.typeName} = Record<string, never>;`;return`${Y}export type ${Z.typeName}${K} = {
123
+ `),Y=Z.description?`${o0(Z.description)}
124
+ `:"",J=Q.filter(({name:W})=>Z.properties.some((V)=>t4(V.type,W))).map(({constraint:W})=>W),K=J.length>0?`<${J.map(g6).join(", ")}>`:"";if(Z.properties.length===0)return`${Y}export type ${Z.typeName} = Record<string, never>;`;return`${Y}export type ${Z.typeName}${K} = {
125
125
  ${j}
126
126
  };`}).join(`
127
127
 
128
- `)}function n1(q){if(Oj.test(q))return Uj.test(q)?q:`"${q}"`;return q}function a4(q,Q){if(!q)return;return`* ${Q||q}
129
- `}function g6(q,Q,Z){return[a4(Ij(q)),Pj(Q),Dj(Z)].filter(Boolean).join("")}function _6(q){return q.length>0?`/**
130
- ${q}*/`:v8}function kj(q){let Q=new Set([...q.props.filter((A)=>!A.isFunctionDeclaration&&A.kind!=="const").map((A)=>A.name),...Array.from(q.canonicalPropNames??[])]),Z=q.props.filter((A)=>!A.isFunctionDeclaration&&A.kind!=="const").map((A)=>{let D=A.value;if(typeof A.value==="string")D=A.value.replace($j," ");if(A.value===void 0)D="undefined";let y=Mj.test(A.description??"")||A.isFunction&&A.value===void 0,h=[g6(A.description,A.deprecated,A.tags),a4(A.constant,"@constant"),y?null:`* @default ${D}
131
- `].filter(Boolean).join(""),n=A.constant&&!A.isFunction?A.value:A.type;return`
132
- ${_6(h)}
133
- ${A.name}${A.isRequired?"":"?"}: ${n};`}),j=q.canonicalPropsType?Z.filter((A,D)=>{let v=q.props.filter((y)=>!y.isFunctionDeclaration&&y.kind!=="const")[D];return v?!(q.canonicalPropNames?.has(v.name)??!1):!0}):Z,Y=(q.slots||[]).filter((A)=>!A.default&&A.name!=null&&!Q.has(A.name)).map((A)=>{let D=A.name,v=n1(D),y=s1(A.description,A.tags,A.deprecated),h=y?`${y}
134
- `:"",g=A.slot_props&&A.slot_props!=="Record<string, never>"?`(this: void, ...args: [${A.slot_props}]) => void`:"(this: void) => void";return`
135
- ${h}${v}?: ${g};`}),J=(q.slots||[]).find((A)=>A.default||A.name===null),K=J&&!Q.has("children")?(()=>{let A=s1(J.description,J.tags,J.deprecated),D=A?`${A}
136
- `:"",y=J.slot_props&&J.slot_props!=="Record<string, never>"?`(this: void, ...args: [${J.slot_props}]) => void`:"(this: void) => void";return`
137
- ${D}children?: ${y};`})():"",W=q.events?yj({events:q.events},Q):[],V=[...Y,K,...W].filter(Boolean),R=[...j,...V].join(`
138
- `),z=`${q.moduleName}Props`,M=v8,$=q.generics?`<${X1(q.generics[1]).map((A)=>y6(A.trim())).join(", ")}>`:"",F=q.generics?`<${q.generics[0]}>`:"",P=q.canonicalPropsType?`
139
- type $Props${$} = ${q.canonicalPropsType}${R.trim()===""?"":` & {${R}
128
+ `)}function a1(q){if(Mj.test(q))return $j.test(q)?q:`"${q}"`;return q}function q3(q,Q){if(!q)return;return`* ${Q||q}
129
+ `}function x6(q,Q,Z){return[q3(Nj(q)),bj(Q),Tj(Z)].filter(Boolean).join("")}function u6(q){return q.length>0?`/**
130
+ ${q}*/`:v8}function hj(q){let Q=q.props.filter((C)=>!C.isFunctionDeclaration&&C.kind!=="const"),Z=new Set([...Q.map((C)=>C.name),...Array.from(q.canonicalPropNames??[])]),j=Q.map((C)=>{let b=C.value;if(typeof C.value==="string")b=C.value.replace(Ij," ");if(C.value===void 0)b="undefined";let h=Cj.test(C.description??"")||C.isFunction&&C.value===void 0,o=[x6(C.description,C.deprecated,C.tags),q3(C.constant,"@constant"),h?null:`* @default ${b}
131
+ `].filter(Boolean).join(""),y=C.constant&&!C.isFunction?C.value:C.type;return`
132
+ ${u6(o)}
133
+ ${C.name}${C.isRequired?"":"?"}: ${y};`}),Y=q.canonicalPropsType?j.filter((C,b)=>{let g=Q[b];return g?!(q.canonicalPropNames?.has(g.name)??!1):!0}):j,J=(q.slots||[]).filter((C)=>!C.default&&C.name!=null&&!Z.has(C.name)).map((C)=>{let b=C.name,g=a1(b),h=n1(C.description,C.tags,C.deprecated),o=h?`${h}
134
+ `:"",q8=C.slot_props&&C.slot_props!=="Record<string, never>"?`(this: void, ...args: [${C.slot_props}]) => void`:"(this: void) => void";return`
135
+ ${o}${g}?: ${q8};`}),K=(q.slots||[]).find((C)=>C.default||C.name===null),W=K&&!Z.has("children")?(()=>{let C=n1(K.description,K.tags,K.deprecated),b=C?`${C}
136
+ `:"",h=K.slot_props&&K.slot_props!=="Record<string, never>"?`(this: void, ...args: [${K.slot_props}]) => void`:"(this: void) => void";return`
137
+ ${b}children?: ${h};`})():"",V=q.events?uj({events:q.events},Z):[],R=[...J,W,...V].filter(Boolean),z=[...Y,...R].join(`
138
+ `),M=`${q.moduleName}Props`,$=v8,F=q.generics?`<${_6(q.generics[1]).map((C)=>g6(C.trim())).join(", ")}>`:"",P=q.generics?`<${q.generics[0]}>`:"",D=q.canonicalPropsType?`
139
+ type $Props${F} = ${q.canonicalPropsType}${z.trim()===""?"":` & {${z}
140
140
  }`};
141
141
  `:`
142
- type $Props${$} = {
143
- ${R}
142
+ type $Props${F} = {
143
+ ${z}
144
144
  };
145
- `;if(q.rest_props?.type==="Element"){let A;if(q.rest_props.name==="svelte:element")if(q.rest_props.thisValue)A=`SvelteHTMLElements["${q.rest_props.thisValue}"]`;else A="HTMLAttributes<HTMLElement>";else A=q.rest_props.name.split("|").map((y)=>{return`SvelteHTMLElements["${y.trim()}"]`}).join(" & ");let D="[key: `data-${string}`]: unknown;",v=q.rest_props.description?q.rest_props.description.includes(`
146
- `)?`${d0(q.rest_props.description)}
147
- `:`${i0(q.rest_props.description)}
148
- `:"";if(q.extends===void 0)M=`
149
- ${v}${A?`type $RestProps = ${A};
145
+ `;if(q.rest_props?.type==="Element"){let C;if(q.rest_props.name==="svelte:element")if(q.rest_props.thisValue)C=`SvelteHTMLElements["${q.rest_props.thisValue}"]`;else C="HTMLAttributes<HTMLElement>";else C=q.rest_props.name.split("|").map((h)=>{return`SvelteHTMLElements["${h.trim()}"]`}).join(" & ");let b="[key: `data-${string}`]: unknown;",g=q.rest_props.description?q.rest_props.description.includes(`
146
+ `)?`${o0(q.rest_props.description)}
147
+ `:`${p0(q.rest_props.description)}
148
+ `:"";if(q.extends===void 0)$=`
149
+ ${g}${C?`type $RestProps = ${C};
150
150
  `:""}
151
- ${q.canonicalPropsType?`type $Props${$} = (${q.canonicalPropsType}) & {${R}
151
+ ${q.canonicalPropsType?`type $Props${F} = (${q.canonicalPropsType}) & {${z}
152
152
 
153
- ${D}
154
- };`:`type $Props${$} = {
155
- ${R}
153
+ ${b}
154
+ };`:`type $Props${F} = {
155
+ ${z}
156
156
 
157
- ${D}
157
+ ${b}
158
158
  };`}
159
159
 
160
- export type ${z}${$} = Omit<$RestProps, keyof $Props${F}> & $Props${F};
161
- `;else M=`
162
- ${v}${A?`type $RestProps = ${A};
160
+ export type ${M}${F} = Omit<$RestProps, keyof $Props${P}> & $Props${P};
161
+ `;else $=`
162
+ ${g}${C?`type $RestProps = ${C};
163
163
  `:""}
164
- ${q.canonicalPropsType?`type $Props${$} = (${q.canonicalPropsType}) & {${R}
164
+ ${q.canonicalPropsType?`type $Props${F} = (${q.canonicalPropsType}) & {${z}
165
165
 
166
- ${D}
167
- };`:`type $Props${$} = {
168
- ${R}
166
+ ${b}
167
+ };`:`type $Props${F} = {
168
+ ${z}
169
169
 
170
- ${D}
170
+ ${b}
171
171
  };`}
172
172
 
173
- export type ${z}${$} = Omit<$RestProps, keyof ($Props${F} & ${q.extends.interface})> & $Props${F} & ${q.extends.interface};
174
- `}else if(R.trim()===""&&q.extends===void 0&&!q.canonicalPropsType)M=`
175
- export type ${z}${$} = ${h6};
176
- `;else if(q.canonicalPropsType)M=`
177
- ${P}
178
- export type ${z}${$} = ${q.extends===void 0?"":`${q.extends.interface} & `}$Props${F};
179
- `;else M=`
180
- export type ${z}${$} = ${q.extends===void 0?"":`${q.extends.interface} & `} {
181
- ${R}
173
+ export type ${M}${F} = Omit<$RestProps, keyof ($Props${P} & ${q.extends.interface})> & $Props${P} & ${q.extends.interface};
174
+ `}else if(z.trim()===""&&q.extends===void 0&&!q.canonicalPropsType)$=`
175
+ export type ${M}${F} = ${f6};
176
+ `;else if(q.canonicalPropsType)$=`
177
+ ${D}
178
+ export type ${M}${F} = ${q.extends===void 0?"":`${q.extends.interface} & `}$Props${P};
179
+ `;else $=`
180
+ export type ${M}${F} = ${q.extends===void 0?"":`${q.extends.interface} & `} {
181
+ ${z}
182
182
  };
183
- `;return{props_name:z,prop_def:M}}function Tj(q){if(q.slots.length===0)return h6;let Q=q.slots.map(({name:Z,slot_props:j,...Y})=>{let J=Y.default||Z===null?"default":n1(Z??""),K=s1(Y.description,Y.tags,Y.deprecated);return`${K?`${K}
184
- `:""}${n1(J)}: ${p0(j)};`}).join(`
183
+ `;return{props_name:M,prop_def:$}}function fj(q){if(q.slots.length===0)return f6;let Q=q.slots.map(({name:Z,slot_props:j,...Y})=>{let J=Y.default||Z===null?"default":a1(Z??""),K=n1(Y.description,Y.tags,Y.deprecated);return`${K?`${K}
184
+ `:""}${a1(J)}: ${s0(j)};`}).join(`
185
185
  `);return q.slots.length===1?`{${Q}}`:`{
186
186
  ${Q}
187
- }`}var Ej=()=>"WindowEventMap",vj=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 v6(q=K1){if(Rj.test(q))return q;return`CustomEvent<${q}>`}function hj(q){return vj.has(q)}function r4(q){switch(q.type){case"dispatched":return v6(q.detail);case"forwarded":{let Q=q.element,j=!(Q&&Bj.test(Q))||hj(q.name),Y=q.detail!==void 0&&q.detail!=="undefined"&&!(q.detail==="null"&&j),J=q.detail==="null"&&!j;if(Y||J)return v6(q.detail);else if(j)return`${Ej()}["${q.name}"]`;else return v6()}default:return q}}function fj(q){if(q.events.length===0)return zj;let Q=q.events.map((Z)=>{let j="",Y=s1(Z.description,Z.tags,Z.deprecated);if(Y)j=`${Y}
188
- `;return`${j}${n1(Z.name)}: ${r4(Z)};
187
+ }`}var yj=()=>"WindowEventMap",gj=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 h6(q=K1){if(Lj.test(q))return q;return`CustomEvent<${q}>`}function _j(q){return gj.has(q)}function Q3(q){switch(q.type){case"dispatched":return h6(q.detail);case"forwarded":{let Q=q.element,j=!(Q&&wj.test(Q))||_j(q.name),Y=q.detail!==void 0&&q.detail!=="undefined"&&!(q.detail==="null"&&j),J=q.detail==="null"&&!j;if(Y||J)return h6(q.detail);else if(j)return`${yj()}["${q.name}"]`;else return h6()}default:return q}}function xj(q){if(q.events.length===0)return Fj;let Q=q.events.map((Z)=>{let j="",Y=n1(Z.description,Z.tags,Z.deprecated);if(Y)j=`${Y}
188
+ `;return`${j}${a1(Z.name)}: ${Q3(Z)};
189
189
  `}).join("");return q.events.length===1?`{${Q}}`:`{
190
- ${Q}}`}function yj(q,Q){return q.events.map((Z)=>{let j=`on${Z.name}`;if(Q.has(j))return;let Y="",J=s1(Z.description,Z.tags,Z.deprecated);if(J)Y=`${J}
190
+ ${Q}}`}function uj(q,Q){return q.events.map((Z)=>{let j=`on${Z.name}`;if(Q.has(j))return;let Y="",J=n1(Z.description,Z.tags,Z.deprecated);if(J)Y=`${J}
191
191
  `;return`
192
- ${Y}${n1(j)}?: (event: ${r4(Z)}) => void;`}).filter((Z)=>Z!==void 0)}function gj(q){let Q=q.type==="() => any";if(q.type&&d4.test(q.type)&&!Q)return q.type;else if(q.params&&q.params.length>0){let j=q.params.map((J)=>{let K=J.optional?"?":"";return`${J.name}${K}: ${J.type}`}).join(", "),Y=q.returnType||K1;return`(${j}) => ${Y}`}else if(q.returnType)return`() => ${q.returnType}`;else return q.type||K1}function t4(q){return q.props.filter((Q)=>Q.isFunctionDeclaration||Q.kind==="const").map((Q)=>{let Z=g6(Q.description,Q.deprecated,Q.tags),j=gj(Q);return`
193
- ${_6(Z)}
192
+ ${Y}${a1(j)}?: (event: ${Q3(Z)}) => void;`}).filter((Z)=>Z!==void 0)}function mj(q){let Q=q.type==="() => any";if(q.type&&n4.test(q.type)&&!Q)return q.type;else if(q.params&&q.params.length>0){let j=q.params.map((J)=>{let K=J.optional?"?":"";return`${J.name}${K}: ${J.type}`}).join(", "),Y=q.returnType||K1;return`(${j}) => ${Y}`}else if(q.returnType)return`() => ${q.returnType}`;else return q.type||K1}function Z3(q){return q.props.filter((Q)=>Q.isFunctionDeclaration||Q.kind==="const").map((Q)=>{let Z=x6(Q.description,Q.deprecated,Q.tags),j=mj(Q);return`
193
+ ${u6(Z)}
194
194
  ${Q.name}: ${j};`}).join(`
195
- `)}function _j(q){let Q=`${q.moduleName}Exports`,Z=t4({props:q.props});if(Z.trim()==="")return{exports_name:Q,exports_ref:Q,exports_def:`export type ${Q} = ${h6};`};let{declSuffix:j,refSuffix:Y}=bj(q.generics,Z);return{exports_name:Q,exports_ref:`${Q}${Y}`,exports_def:`export type ${Q}${j} = {${Z}
196
- };`}}function xj(q){let Q=q.props.filter((Z)=>Z.bindable===!0||Z.binding==="writable").map((Z)=>`"${Z.name}"`);return Q.length===0?v8:Q.join(" | ")}function uj(q){let Q=q.moduleName==="default"?"$$Component":q.moduleName,Z=q.bindings===v8?'""':q.bindings;return`declare const ${Q}: Component<
195
+ `)}function lj(q){let Q=`${q.moduleName}Exports`,Z=Z3({props:q.props});if(Z.trim()==="")return{exports_name:Q,exports_ref:Q,exports_def:`export type ${Q} = ${f6};`};let{declSuffix:j,refSuffix:Y}=vj(q.generics,Z);return{exports_name:Q,exports_ref:`${Q}${Y}`,exports_def:`export type ${Q}${j} = {${Z}
196
+ };`}}function cj(q){let Q=q.props.filter((Z)=>Z.bindable===!0||Z.binding==="writable").map((Z)=>`"${Z.name}"`);return Q.length===0?v8:Q.join(" | ")}function ij(q){let Q=q.moduleName==="default"?"$$Component":q.moduleName,Z=q.bindings===v8?'""':q.bindings;return`declare const ${Q}: Component<
197
197
  ${q.propsRef},
198
198
  ${q.exportsRef},
199
199
  ${Z}
200
200
  >;
201
- export default ${Q};`}function mj(q){let Q=q.moduleName==="default"?"$$Component":q.moduleName,Z=`${Q}Component`,j=q.bindings===v8?'""':q.bindings;return`interface ${Z} {
201
+ export default ${Q};`}function dj(q){let Q=q.moduleName==="default"?"$$Component":q.moduleName,Z=`${Q}Component`,j=q.bindings===v8?'""':q.bindings;return`interface ${Z} {
202
202
  new ${q.generic}(
203
203
  options: ComponentConstructorOptions<${q.propsRef}>
204
204
  ): SvelteComponent<${q.propsRef}> & ${q.exportsRef};
@@ -214,55 +214,50 @@ ${Q}}`}function yj(q,Q){return q.events.map((Z)=>{let j=`on${Z.name}`;if(Q.has(j
214
214
  z_$$bindings?: ${j};
215
215
  }
216
216
  declare const ${Q}: ${Z};
217
- export default ${Q};`}function lj(q){if(q.extends===void 0)return"";return`import type { ${q.extends.interface} } from ${q.extends.import};`}function cj(q){if(!q.componentComment)return"";if(!Fj.test(q.componentComment))return i0(q.componentComment.trim());return`/*${q.componentComment.split(`
217
+ export default ${Q};`}function pj(q){if(q.extends===void 0)return"";return`import type { ${q.extends.interface} } from ${q.extends.import};`}function oj(q){if(!q.componentComment)return"";if(!Aj.test(q.componentComment))return p0(q.componentComment.trim());return`/*${q.componentComment.split(`
218
218
  `).map((Q)=>`* ${Q}`).join(`
219
219
  `)}
220
- */`}function ij(q){return q.moduleExports.map((Q)=>{let Z=g6(Q.description,Q.deprecated,Q.tags),j,Y=Q.type&&d4.test(Q.type),J=Q.type==="() => any";if(Q.kind==="const"&&!Y)j=`export declare const ${Q.name}: ${Q.type||K1};
220
+ */`}function sj(q){return q.moduleExports.map((Q)=>{let Z=x6(Q.description,Q.deprecated,Q.tags),j,Y=Q.type&&n4.test(Q.type),J=Q.type==="() => any";if(Q.kind==="const"&&!Y)j=`export declare const ${Q.name}: ${Q.type||K1};
221
221
  `;else if(Q.params&&Q.params.length>0){let W=Q.params.map((R)=>{let z=R.optional?"?":"";return`${R.name}${z}: ${R.type}`}).join(", "),V=Q.returnType||K1;j=`export declare function ${Q.name}(${W}): ${V};`}else if(Q.returnType)j=`export declare function ${Q.name}(): ${Q.returnType};`;else if(Y&&Q.type&&!J){let[K,W,...V]=Q.type.split("=>"),R=V.map((z)=>` => ${z.trim()}`).join("");j=`export declare function ${Q.name}${K.trimEnd()}: ${W.trim()}${R};`}else if(Y&&Q.type){let[K,W,...V]=Q.type.split("=>"),R=V.map((z)=>` => ${z.trim()}`).join("");j=`export declare function ${Q.name}${K.trimEnd()}: ${W.trim()}${R};`}else if(Q.kind==="const")j=`export declare const ${Q.name}: ${Q.type||K1};
222
222
  `;else j=`export type ${Q.name} = ${Q.type||K1};`;return`
223
- ${_6(Z)}
223
+ ${u6(Z)}
224
224
  ${j}`}).join(`
225
- `)}var dj=120;function pj(q){let Z=`export default class ${q.moduleName==="default"?"":q.moduleName}${q.generic} extends SvelteComponentTyped<`,j=[q.genericProps,q.events,q.slots];if(q.accessors.trim()===""&&j.every((Y)=>!Y.includes(`
226
- `))){let Y=`${Z}${j.join(", ")}> {}`;if(Y.length<=dj)return Y}return`${Z}
225
+ `)}var nj=120;function aj(q){let Z=`export default class ${q.moduleName==="default"?"":q.moduleName}${q.generic} extends SvelteComponentTyped<`,j=[q.genericProps,q.events,q.slots];if(q.accessors.trim()===""&&j.every((Y)=>!Y.includes(`
226
+ `))){let Y=`${Z}${j.join(", ")}> {}`;if(Y.length<=nj)return Y}return`${Z}
227
227
  ${q.genericProps},
228
228
  ${q.events},
229
229
  ${q.slots}
230
230
  > {
231
231
  ${q.accessors}
232
- }`}function oj(q,Q){let Z=q9(q),{moduleName:j,typedefs:Y,generics:J,props:K,moduleExports:W,slots:V,events:R,rest_props:z,extends:M,componentComment:$,contexts:F,syntaxMode:P}=q,A=Q?.format==="component",D=J!==null,{props_name:v,prop_def:y}=kj({moduleName:j,props:K,rest_props:z,extends:M,generics:J,slots:V,canonicalPropNames:new Set(Z?.canonicalPropNames??[]),canonicalPropsType:Z?.canonicalPropsType,events:A&&P==="legacy"?R:void 0}),h=J?`<${J[1]}>`:"",n=J?`${v}<${J[0]}>`:v,g=ij({moduleExports:W}),j8=o0({typedefs:Y}),U8=n4({contexts:F,generics:J}),H=(Z?.typeImportStatements??[]).join(`
232
+ }`}function rj(q,Q){let Z=Z9(q),{moduleName:j,typedefs:Y,generics:J,props:K,moduleExports:W,slots:V,events:R,rest_props:z,extends:M,componentComment:$,contexts:F,syntaxMode:P}=q,D=Q?.format==="component",C=J!==null,{props_name:b,prop_def:g}=hj({moduleName:j,props:K,rest_props:z,extends:M,generics:J,slots:V,canonicalPropNames:new Set(Z?.canonicalPropNames??[]),canonicalPropsType:Z?.canonicalPropsType,events:D&&P==="legacy"?R:void 0}),h=J?`<${J[1]}>`:"",o=J?`${b}<${J[0]}>`:b,y=sj({moduleExports:W}),q8=n0({typedefs:Y}),U8=e4({contexts:F,generics:J}),H=(Z?.typeImportStatements??[]).join(`
233
233
  `),X=(Z?.localTypeDeclarations??[]).join(`
234
234
 
235
- `),{exports_ref:G,exports_def:U}=A?_j({props:K,moduleName:j,generics:J}):{exports_ref:v8,exports_def:v8},B=A?xj({props:K}):v8,L=!wj.test(H)&&Lj.test(`${y}
236
- ${g}
237
- ${j8}
238
- ${U8}
239
- ${X}
240
- ${U}`),w=z?.type==="Element"&&(z.name!=="svelte:element"||z.name==="svelte:element"&&z.thisValue),S=z?.type==="Element"&&z.name==="svelte:element"&&!z.thisValue,C=[A?D?`import type { SvelteComponent, ComponentConstructorOptions, ComponentInternals${L?", Snippet":""} } from "svelte";`:`import type { Component${L?", Snippet":""} } from "svelte";`:`import { SvelteComponentTyped${L?", type Snippet":""} } from "svelte";`,w?'import type { SvelteHTMLElements } from "svelte/elements";':"",S?'import type { HTMLAttributes } from "svelte/elements";':"",H,lj({extends:M})].filter(Boolean).join(`
241
- `),N=A?D?mj({moduleName:j,generic:h,propsRef:n,exportsRef:G,bindings:B}):uj({moduleName:j,propsRef:n,exportsRef:G,bindings:B}):pj({moduleName:j,generic:h,genericProps:n,events:fj({events:R}),slots:Tj({slots:V}),accessors:t4({props:K})}),u=[g,j8,X,U8,y,U,[cj({componentComment:$}),N].filter(Boolean).join(`
235
+ `),{exports_ref:G,exports_def:U}=D?lj({props:K,moduleName:j,generics:J}):{exports_ref:v8,exports_def:v8},B=D?cj({props:K}):v8,L=!Pj.test(H)&&(w1.test(g)||w1.test(y)||w1.test(q8)||w1.test(U8)||w1.test(X)||w1.test(U)),w=z?.type==="Element"&&(z.name!=="svelte:element"||z.name==="svelte:element"&&z.thisValue),S=z?.type==="Element"&&z.name==="svelte:element"&&!z.thisValue,A=[D?C?`import type { SvelteComponent, ComponentConstructorOptions, ComponentInternals${L?", Snippet":""} } from "svelte";`:`import type { Component${L?", Snippet":""} } from "svelte";`:`import { SvelteComponentTyped${L?", type Snippet":""} } from "svelte";`,w?'import type { SvelteHTMLElements } from "svelte/elements";':"",S?'import type { HTMLAttributes } from "svelte/elements";':"",H,pj({extends:M})].filter(Boolean).join(`
236
+ `),N=D?C?dj({moduleName:j,generic:h,propsRef:o,exportsRef:G,bindings:B}):ij({moduleName:j,propsRef:o,exportsRef:G,bindings:B}):aj({moduleName:j,generic:h,genericProps:o,events:xj({events:R}),slots:fj({slots:V}),accessors:Z3({props:K})}),u=[y,q8,X,U8,g,U,[oj({componentComment:$}),N].filter(Boolean).join(`
242
237
  `)].map((m)=>m.trim()).filter(Boolean).join(`
243
238
 
244
- `);return i4([C,u].filter(Boolean).join(`
239
+ `);return d4([A,u].filter(Boolean).join(`
245
240
 
246
- `))}var x6=/`/g,s0=/\s+/g,x8="--",e4=`| Prop name | Required | Kind | Reactive | Binding | Type | Default value | Description |
241
+ `))}var m6=/`/g,a0=/\s+/g,u8="--",j3=`| Prop name | Required | Kind | Reactive | Binding | Type | Default value | Description |
247
242
  | :- | :- | :- | :- | :- | :- | :- | :- |
248
- `,q3=`| Slot name | Default | Props | Fallback | Description |
243
+ `,Y3=`| Slot name | Default | Props | Fallback | Description |
249
244
  | :- | :- | :- | :- | :- |
250
- `,Q3=`| Event name | Type | Detail | Description |
245
+ `,H3=`| Event name | Type | Detail | Description |
251
246
  | :- | :- | :- | :- |
252
- `,Z3=`| Name | Kind | Type | Description |
247
+ `,K3=`| Name | Kind | Type | Description |
253
248
  | :- | :- | :- | :- |
254
- `,n0=/\|/g,sj=/</g,nj=/>/g,A1=/\n/g;function R1(q){if(q===void 0)return x8;return`<code>${q.replace(n0,"&#124;")}</code>`}function a1(q){return q.replace(sj,"&lt;").replace(nj,"&gt;")}function j3(q){if(q===void 0)return x8;return`<code>${q.replace(x6,"\\`").replace(n0,"&#124;")}</code>`}function a0(q,Q){if(Q===void 0)return q;let Z=typeof Q==="string"&&Q.trim().length>0?`: ${a1(Q).replace(A1," ").replace(n0,"&#124;")}`:"";return`<s>${q}</s><br />**Deprecated**${Z}`}function r0(q){if(q===void 0||q.trim().length===0)return x8;return a1(q).replace(A1,"<br />")}function Y3(q){if(q===void 0||q==="{}")return x8;return R1(p0(q).replace(A1," "))}function H3(q){if(q===void 0)return x8;return R1(a1(q).replace(A1,"<br />"))}function K3(q,Q){let Z=[];if(q!==void 0&&q.trim().length>0)Z.push(a1(q));for(let{name:j,body:Y}of Q??[]){let J=Y?.trim();Z.push(J?`@${j} ${a1(J)}`:`@${j}`)}if(Z.length===0)return x8;return Z.join(`
255
- `).replace(n0,"&#124;").replace(A1,"<br />")}function J3(q){if(q===void 0)return x8;return R1(q.replace(A1," "))}function m6(q,Q,Z){if(q.append("h1","Component Index"),q.append("h2","Components").tableOfContents(),q.append("divider"),Z&&Z.length>0)aj(q,Z);let j=o1(Q);for(let Y of j.components)rj(q,Y)}function aj(q,Q){q.append("h2","Exports"),q.append("raw",Z3);for(let Z of Q){let j=(Z.type??Z.value)?.replace(s0," ").trim();q.append("raw",`| ${Z.name} | ${`<code>${Z.kind}</code>`} | ${R1(j)} | ${r0(Z.description)} |
249
+ `,r0=/\|/g,tj=/</g,ej=/>/g,A1=/\n/g;function U1(q){if(q===void 0)return u8;return`<code>${q.replace(r0,"&#124;")}</code>`}function r1(q){return q.replace(tj,"&lt;").replace(ej,"&gt;")}function J3(q){if(q===void 0)return u8;return`<code>${q.replace(m6,"\\`").replace(r0,"&#124;")}</code>`}function t0(q,Q){if(Q===void 0)return q;let Z=typeof Q==="string"&&Q.trim().length>0?`: ${r1(Q).replace(A1," ").replace(r0,"&#124;")}`:"";return`<s>${q}</s><br />**Deprecated**${Z}`}function e0(q){if(q===void 0||q.trim().length===0)return u8;return r1(q).replace(A1,"<br />")}function X3(q){if(q===void 0||q==="{}")return u8;return U1(s0(q).replace(A1," "))}function W3(q){if(q===void 0)return u8;return U1(r1(q).replace(A1,"<br />"))}function V3(q,Q){let Z=[];if(q!==void 0&&q.trim().length>0)Z.push(r1(q));for(let{name:j,body:Y}of Q??[]){let J=Y?.trim();Z.push(J?`@${j} ${r1(J)}`:`@${j}`)}if(Z.length===0)return u8;return Z.join(`
250
+ `).replace(r0,"&#124;").replace(A1,"<br />")}function G3(q){if(q===void 0)return u8;return U1(q.replace(A1," "))}function c6(q,Q,Z){if(q.append("h1","Component Index"),q.append("h2","Components").tableOfContents(),q.append("divider"),Z&&Z.length>0)qY(q,Z);let j=s1(Q);for(let Y of j.components)QY(q,Y)}function qY(q,Q){q.append("h2","Exports"),q.append("raw",K3);for(let Z of Q){let j=(Z.type??Z.value)?.replace(a0," ").trim();q.append("raw",`| ${Z.name} | ${`<code>${Z.kind}</code>`} | ${U1(j)} | ${e0(Z.description)} |
256
251
  `)}q.append("raw",`
257
- `),q.append("divider")}function u6(q,Q,Z,j){if(Q.length>0)Z(),q.append("raw",`
258
- `);else q.append("p",j??"None.")}function rj(q,Q){if(q.append("h2",`\`${Q.moduleName}\``),Q.generics)q.append("p",`**Type parameters:** ${R1(`<${Q.generics[1]}>`)}`);if(Q.typedefs.length>0)q.append("h3","Types").append("raw",`\`\`\`ts
259
- ${o0({typedefs:Q.typedefs})}
252
+ `),q.append("divider")}function l6(q,Q,Z,j){if(Q.length>0)Z(),q.append("raw",`
253
+ `);else q.append("p",j??"None.")}function QY(q,Q){if(q.append("h2",`\`${Q.moduleName}\``),Q.generics)q.append("p",`**Type parameters:** ${U1(`<${Q.generics[1]}>`)}`);if(Q.typedefs.length>0)q.append("h3","Types").append("raw",`\`\`\`ts
254
+ ${n0({typedefs:Q.typedefs})}
260
255
  \`\`\`
261
256
 
262
- `);q.append("h3","Props"),u6(q,Q.props,()=>{q.append("raw",e4);let Z=[...Q.props].sort((j)=>{if(j.reactive)return-1;if(j.constant)return 1;return 0});for(let j of Z)q.append("raw",`| ${a0(j.name,j.deprecated)} | ${j.isRequired?"Yes":"No"} | ${`<code>${j.kind}</code>`} | ${j.reactive?"Yes":"No"} | ${j.binding??"--"} | ${R1(j.type)} | ${j3(j.value)} | ${r0(j.description)} |
263
- `)}),q.append("h3","Slots"),u6(q,Q.slots,()=>{q.append("raw",q3);for(let Z of Q.slots)q.append("raw",`| ${a0(Z.default?x8:Z.name??x8,Z.deprecated)} | ${Z.default?"Yes":"No"} | ${Y3(Z.slot_props)} | ${H3(Z.fallback)} | ${K3(Z.description,Z.tags)} |
264
- `)}),q.append("h3","Events"),u6(q,Q.events,()=>{q.append("raw",Q3);for(let Z of Q.events)q.append("raw",`| ${a0(Z.name,Z.deprecated)} | ${Z.type} | ${Z.type==="dispatched"?J3(Z.detail):x8} | ${r0(Z.description)} |
265
- `)})}var tj=new Set(["string","number","boolean"]);function ej(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 qY(q){let Q=new Map;for(let j of q){if(!j.type||!tj.has(j.type.trim()))continue;let Y=j.name.toLowerCase(),J=Q.get(Y);if(J)J.push(j);else Q.set(Y,[j])}let Z=[];for(let[j,Y]of Q){if(Y.length!==1)continue;let J=Y[0];Z.push({name:j,fieldName:J.name,type:{text:J.type},...J.value===void 0?{}:{default:J.value},...J.description?{description:J.description}:{}})}return Z}function QY(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 ZY(q){return q.map((Q)=>({name:Q.default?"":Q.name??"",...Q.description?{description:Q.description}:{},...Q.deprecated===void 0?{}:{deprecated:Q.deprecated}}))}function jY(q){let Q={kind:"class",name:q.moduleName,...q.componentComment?{description:q.componentComment}:{},members:ej(q.props),attributes:qY(q.props),events:QY(q.events),slots:ZY(q.slots)};if(q.customElementTag)Q.tagName=q.customElementTag,Q.customElement=!0;return Q}function YY(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 HY(q,Q={}){let Z=o1(q),j=Q.resolveModulePath??((J)=>J.filePath);return{schemaVersion:"1.0.0",modules:Z.components.map((J)=>{let K=j(J);return{kind:"javascript-module",path:K,declarations:[jY(J)],exports:YY(J,K)}})}}class l6{sourceParts=[];hasToC=!1;toc=[];get source(){return this.sourceParts.join("")}appendLineBreaks(){return this.sourceParts.push(`
257
+ `);q.append("h3","Props"),l6(q,Q.props,()=>{q.append("raw",j3);let Z=[...Q.props].sort((j)=>{if(j.reactive)return-1;if(j.constant)return 1;return 0});for(let j of Z)q.append("raw",`| ${t0(j.name,j.deprecated)} | ${j.isRequired?"Yes":"No"} | ${`<code>${j.kind}</code>`} | ${j.reactive?"Yes":"No"} | ${j.binding??"--"} | ${U1(j.type)} | ${J3(j.value)} | ${e0(j.description)} |
258
+ `)}),q.append("h3","Slots"),l6(q,Q.slots,()=>{q.append("raw",Y3);for(let Z of Q.slots)q.append("raw",`| ${t0(Z.default?u8:Z.name??u8,Z.deprecated)} | ${Z.default?"Yes":"No"} | ${X3(Z.slot_props)} | ${W3(Z.fallback)} | ${V3(Z.description,Z.tags)} |
259
+ `)}),q.append("h3","Events"),l6(q,Q.events,()=>{q.append("raw",H3);for(let Z of Q.events)q.append("raw",`| ${t0(Z.name,Z.deprecated)} | ${Z.type} | ${Z.type==="dispatched"?G3(Z.detail):u8} | ${e0(Z.description)} |
260
+ `)})}var ZY=new Set(["string","number","boolean"]);function jY(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 YY(q){let Q=new Map;for(let j of q){if(!j.type||!ZY.has(j.type.trim()))continue;let Y=j.name.toLowerCase(),J=Q.get(Y);if(J)J.push(j);else Q.set(Y,[j])}let Z=[];for(let[j,Y]of Q){if(Y.length!==1)continue;let J=Y[0];Z.push({name:j,fieldName:J.name,type:{text:J.type},...J.value===void 0?{}:{default:J.value},...J.description?{description:J.description}:{}})}return Z}function HY(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 KY(q){return q.map((Q)=>({name:Q.default?"":Q.name??"",...Q.description?{description:Q.description}:{},...Q.deprecated===void 0?{}:{deprecated:Q.deprecated}}))}function JY(q){let Q={kind:"class",name:q.moduleName,...q.componentComment?{description:q.componentComment}:{},members:jY(q.props),attributes:YY(q.props),events:HY(q.events),slots:KY(q.slots)};if(q.customElementTag)Q.tagName=q.customElementTag,Q.customElement=!0;return Q}function XY(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 WY(q,Q={}){let Z=s1(q),j=Q.resolveModulePath??((J)=>J.filePath);return{schemaVersion:"1.0.0",modules:Z.components.map((J)=>{let K=j(J);return{kind:"javascript-module",path:K,declarations:[JY(J)],exports:XY(J,K)}})}}class i6{sourceParts=[];hasToC=!1;toc=[];get source(){return this.sourceParts.join("")}appendLineBreaks(){return this.sourceParts.push(`
266
261
 
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(x6,"").replace(s0,"-")})`}).join(`
268
- `))}}class c6 extends l6{onAppend;constructor(q){super();this.onAppend=q.onAppend}append(q,Q){return super.append(q,Q),this.onAppend?.call(this,q,this),this}}function KY(q,Q){let Z=new c6({onAppend:(j,Y)=>{Q?.onAppend?.call(null,j,Y,q)}});return m6(Z,q),Z.end()}export{oj as writeTsDefinition,KY as writeMarkdownCore,m6 as renderComponentsToMarkdown,o0 as getTypeDefs,n4 as getContextDefs,p0 as formatTsProps,HY as buildCustomElementsManifest,o1 as buildComponentApiDocument,z3 as asNormalizedPath,O8 as ComponentParser,x4 as COMPONENT_API_SCHEMA_VERSION,c6 as BrowserWriterMarkdown};
262
+ `),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(m6,"").replace(a0,"-")})`}).join(`
263
+ `))}}class d6 extends i6{onAppend;constructor(q){super();this.onAppend=q.onAppend}append(q,Q){return super.append(q,Q),this.onAppend?.call(this,q,this),this}}function VY(q,Q){let Z=new d6({onAppend:(j,Y)=>{Q?.onAppend?.call(null,j,Y,q)}});return c6(Z,q),Z.end()}export{rj as writeTsDefinition,VY as writeMarkdownCore,c6 as renderComponentsToMarkdown,n0 as getTypeDefs,e4 as getContextDefs,s0 as formatTsProps,WY as buildCustomElementsManifest,s1 as buildComponentApiDocument,B3 as asNormalizedPath,O8 as ComponentParser,u4 as COMPONENT_API_SCHEMA_VERSION,d6 as BrowserWriterMarkdown};