sveld 0.35.2 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -6
- package/lib/browser.d.ts +660 -39
- package/lib/browser.js +172 -172
- package/lib/chunk-0fqdg2xa.js +20 -0
- package/lib/chunk-2vwf7nck.js +1 -0
- package/lib/chunk-8myyzjb1.js +4 -0
- package/lib/{chunk-v4q9vw0y.js → chunk-as5hgj7e.js} +57 -57
- package/lib/{chunk-zva3xjwa.js → chunk-denfbw92.js} +1 -1
- package/lib/chunk-h1r040pg.js +6 -0
- package/lib/chunk-m538qnhp.js +230 -0
- package/lib/chunk-r4rrncmd.js +1 -0
- package/lib/{chunk-1p4ka68s.js → chunk-t9d5k3p7.js} +1 -1
- package/lib/{chunk-8xw75w8t.js → chunk-tmj7vnjr.js} +2 -2
- package/lib/chunk-xryt7ad2.js +3 -0
- package/lib/cli-entry.js +1 -1
- package/lib/index.d.ts +767 -10
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/lib/ComponentParser.d.ts +0 -560
- package/lib/ast-guards.d.ts +0 -16
- package/lib/brands.d.ts +0 -11
- package/lib/bundle.d.ts +0 -174
- package/lib/check.d.ts +0 -43
- package/lib/chunk-72hx9e9w.js +0 -20
- package/lib/chunk-7qz0hzgw.js +0 -217
- package/lib/chunk-cxrw7gzr.js +0 -2
- package/lib/chunk-jdnsv86e.js +0 -1
- package/lib/chunk-pmj8c3yv.js +0 -6
- package/lib/chunk-s9mzxa4y.js +0 -1
- package/lib/chunk-xkrgedm4.js +0 -4
- package/lib/cli-entry.d.ts +0 -12
- package/lib/cli.d.ts +0 -28
- package/lib/create-exports.d.ts +0 -32
- package/lib/dependency-graph.d.ts +0 -20
- package/lib/diagnostics.d.ts +0 -34
- package/lib/element-tag-map.d.ts +0 -146
- package/lib/example-check.d.ts +0 -24
- package/lib/get-svelte-entry.d.ts +0 -3
- package/lib/load-config.d.ts +0 -62
- package/lib/parse-cache.d.ts +0 -28
- package/lib/parse-entry-exports.d.ts +0 -30
- package/lib/parse-exports.d.ts +0 -25
- package/lib/parsed-component-metadata.d.ts +0 -13
- package/lib/parser/bindings.d.ts +0 -4
- package/lib/parser/context.d.ts +0 -72
- package/lib/parser/contexts.d.ts +0 -19
- package/lib/parser/diagnostics.d.ts +0 -8
- package/lib/parser/events.d.ts +0 -21
- package/lib/parser/generics.d.ts +0 -24
- package/lib/parser/jsdoc.d.ts +0 -55
- package/lib/parser/prop-shared.d.ts +0 -84
- package/lib/parser/props.d.ts +0 -71
- package/lib/parser/rest-props.d.ts +0 -4
- package/lib/parser/runes-detection.d.ts +0 -13
- package/lib/parser/runes-props.d.ts +0 -18
- package/lib/parser/scopes.d.ts +0 -56
- package/lib/parser/slots.d.ts +0 -24
- package/lib/parser/source-position.d.ts +0 -26
- package/lib/parser/type-resolution.d.ts +0 -17
- package/lib/parser/typescript-casts.d.ts +0 -1
- package/lib/parser/utils.d.ts +0 -1
- package/lib/parser/variable-jsdoc.d.ts +0 -12
- package/lib/parser-stack.d.ts +0 -20
- package/lib/path.d.ts +0 -2
- package/lib/plugin.d.ts +0 -85
- package/lib/resolve-alias.d.ts +0 -30
- package/lib/resolve-types.d.ts +0 -52
- package/lib/sveld.d.ts +0 -29
- package/lib/svelte-parse.d.ts +0 -4
- package/lib/svelte-version.d.ts +0 -1
- package/lib/validate.d.ts +0 -13
- package/lib/watch.d.ts +0 -34
- package/lib/writer/MarkdownWriterBase.d.ts +0 -26
- package/lib/writer/Writer.d.ts +0 -31
- package/lib/writer/WriterMarkdown.d.ts +0 -31
- package/lib/writer/built-in-writers.d.ts +0 -1
- package/lib/writer/document-model.d.ts +0 -34
- package/lib/writer/format-generated-ts.d.ts +0 -8
- package/lib/writer/markdown-format-utils.d.ts +0 -20
- package/lib/writer/markdown-render-utils.d.ts +0 -10
- package/lib/writer/registry.d.ts +0 -17
- package/lib/writer/writer-custom-elements-core.d.ts +0 -86
- package/lib/writer/writer-custom-elements.d.ts +0 -15
- package/lib/writer/writer-json.d.ts +0 -27
- package/lib/writer/writer-markdown-core.d.ts +0 -32
- package/lib/writer/writer-markdown.d.ts +0 -23
- package/lib/writer/writer-ts-definitions-core.d.ts +0 -30
- package/lib/writer/writer-ts-definitions.d.ts +0 -43
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import{
|
|
2
|
-
`).map((Z,z)=>{let
|
|
3
|
-
`);let
|
|
4
|
-
${
|
|
5
|
-
`)}class Q8{name="CompileDiagnostic";constructor(q,
|
|
1
|
+
import{Y as v9,Z as g9,_ as J9,aa as s8}from"./chunk-tmj7vnjr.js";function r(q,B,R){let U=R._,J=!1;function $(G,{next:Z,state:z}){Z(z)}function N(G,Z,z){if(J)return;if(!G.type)return;let F,T={},W={path:Z,state:z,next:(O=z)=>{Z.push(G);for(let w in G){if(w==="type")continue;let P=G[w];if(P&&typeof P==="object")if(Array.isArray(P)){let b={},s=P.length,f=!1;for(let m=0;m<s;m++){let E=P[m];if(E&&typeof E==="object"){let H8=N(E,Z,O);if(H8)b[m]=H8,f=!0}}if(f)T[w]=P.map((m,E)=>b[E]??m)}else{let b=N(P,Z,O);if(b)T[w]=b}}if(Z.pop(),Object.keys(T).length>0)return h1(G,T)},stop:()=>{J=!0},visit:(O,w=z)=>{Z.push(G);let P=N(O,Z,w)??O;return Z.pop(),P}},D=R[G.type]??$;if(U){let O;if(F=U(G,{...W,next:(w=z)=>{return z=w,O=D(G,{...W,state:w}),O}}),!F&&O)F=O}else F=D(G,W);if(!F){if(Object.keys(T).length>0)F=h1(G,T)}if(F)return F}return N(q,[],B)??q}function h1(q,B){let R={},U=Object.getOwnPropertyDescriptors(q);for(let J in U)Object.defineProperty(R,J,U[J]);for(let J in B)R[J]=B[J];return R}var x1=/^[ \t\r\n]+/;var u1=/[ \t\r\n]+$/,h8=/[^ \t\r\n]/;var W8=/[^\n]/g;var w6=Symbol("uninitialized"),I6=Symbol("filename"),P6=Symbol("hmr");var l1="http://www.w3.org/2000/svg",m1="http://www.w3.org/1998/Math/MathML",c1=["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 l8(q,B){if(B.length===0)return null;let U=new d1(B).get(q);return U&&U[0][0]>0.7?U[0][1]:null}var x8=2,u8=3;function x9(q,B){if(q===null&&B===null)throw"Trying to compare two null values";if(q===null||B===null)return 0;return q=String(q),B=String(B),1-u9(q,B)/Math.max(q.length,B.length)}function u9(q,B){let R=[],U=0;for(let J=0;J<=B.length;J++)for(let $=0;$<=q.length;$++){let N;if(J&&$)if(q.charAt($-1)===B.charAt(J-1))N=U;else N=Math.min(R[$],R[$-1],U)+1;else N=J+$;U=R[$],R[$]=N}return R.pop()}var l9=/[^\w, ]+/;function m9(q,B=2){let R="-"+q.toLowerCase().replace(l9,"")+"-",U=B-R.length,J=[];if(U>0)for(let $=0;$<U;++$)q+="-";for(let $=0;$<R.length-B+1;++$)J.push(R.slice($,$+B));return J}function _1(q,B=2){let R={},U=m9(q,B),J=0;for(J;J<U.length;++J)if(U[J]in R)R[U[J]]+=1;else R[U[J]]=1;return R}function i1(q,B){return B[0]-q[0]}class d1{exact_set={};match_dict={};items={};constructor(q){for(let B=x8;B<u8+1;++B)this.items[B]=[];for(let B=0;B<q.length;++B)this.add(q[B])}add(q){if(q.toLowerCase()in this.exact_set)return!1;let R=x8;for(R;R<u8+1;++R)this._add(q,R)}_add(q,B){let R=q.toLowerCase(),U=this.items[B]||[],J=U.length;U.push(0);let $=_1(R,B),N=0,G,Z;for(G in $)if(Z=$[G],N+=Math.pow(Z,2),G in this.match_dict)this.match_dict[G].push([J,Z]);else this.match_dict[G]=[[J,Z]];let z=Math.sqrt(N);U[J]=[z,R],this.items[B]=U,this.exact_set[R]=q}get(q){let B=q.toLowerCase(),R=this.exact_set[B];if(R)return[[1,R]];for(let U=u8;U>=x8;--U){let J=this.__get(q,U);if(J.length>0)return J}return null}__get(q,B){let R=q.toLowerCase(),U={},J=_1(R,B),$=this.items[B],N=0,G,Z,z,F,T;for(G in J)if(Z=J[G],N+=Math.pow(Z,2),G in this.match_dict)for(z=0;z<this.match_dict[G].length;++z)if(F=this.match_dict[G][z][0],T=this.match_dict[G][z][1],F in U)U[F]+=Z*T;else U[F]=Z*T;let W=Math.sqrt(N),D=[],O;for(let b in U)O=U[b],D.push([O/(W*$[b][0]),$[b][1]]);D.sort(i1);let w=[],P=Math.min(50,D.length);for(let b=0;b<P;++b)w.push([x9(D[b][1],R),D[b][1]]);D=w,D.sort(i1),w=[];for(let b=0;b<D.length;++b)if(D[b][0]===D[0][0])w.push([D[b][0],this.exact_set[D[b][1]]]);return w}}function c9(q,B){return q.start<=B&&B<q.end}function p1(q,B={}){let{offsetLine:R=0,offsetColumn:U=0}=B,J=0,$=q.split(`
|
|
2
|
+
`).map((Z,z)=>{let F=J+Z.length+1,T={start:J,end:F,line:z};return J=F,T}),N=0;function G(Z,z){if(typeof Z==="string")Z=q.indexOf(Z,z??0);if(Z===-1)return;let F=$[N],T=Z>=F.end?1:-1;while(F){if(c9(F,Z))return{line:R+F.line,column:U+Z-F.start,character:Z};N+=T,F=$[N]}}return G}var _9=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function m8(q){return _9.includes(q)||q.toLowerCase()==="!doctype"}var i9=["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 o1(q){return i9.includes(q)}var d9=["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 b6=[...d9,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var p9=["$state","$state.raw","$derived","$derived.by"],y6=[...p9,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];var t1=/^[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 c8=[],T8,z8="(unknown)",o9="<unknown>",X8,j8=[],t9,n9=!1,x;function n1(q){X8=q,j8=X8.split(`
|
|
3
|
+
`);let B=p1(X8,{offsetLine:1});x=(R)=>{let U=B(R);if(!U)throw Error("An impossible situation occurred");return U}}var _8,i8=[],a1=new Map;function d8(q){t9=!1,n9=!1,o9=z8,X8="",j8=[],T8=(q.filename??z8).replace(/\\/g,"/"),_8=q.warning??(()=>!0),c8=[]}var a9=/^\t+/;function p8(q){return q.replace(a9,(B)=>B.split("\t").join(" "))}function s9(q,B){let R=j8,U=Math.max(0,q-2),J=Math.min(q+3,R.length),$=String(J+1).length;return R.slice(U,J).map((N,G)=>{let Z=U+G===q,z=String(G+U+1).padStart($," ");if(Z){let F=" ".repeat($+2+p8(N.slice(0,B)).length)+"^";return`${z}: ${p8(N)}
|
|
4
|
+
${F}`}return`${z}: ${p8(N)}`}).join(`
|
|
5
|
+
`)}class Q8{name="CompileDiagnostic";constructor(q,B,R){if(this.code=q,this.message=B,T8!==z8)this.filename=T8;if(R){if(this.position=R,this.start=x(R[0]),this.end=x(R[1]),this.start&&this.end)this.frame=s9(this.start.line-1,this.end.column)}}toString(){let q=`${this.code}: ${this.message}`;if(this.filename){if(q+=`
|
|
6
6
|
${this.filename}`,this.start)q+=`:${this.start.line}:${this.start.column}`}if(this.frame)q+=`
|
|
7
|
-
${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
|
|
8
|
-
https://svelte.dev/e/legacy_code`)}function
|
|
9
|
-
https://svelte.dev/e/unknown_code`)}function
|
|
10
|
-
https://svelte.dev/e/element_implicitly_closed`)}function e1(q){$8(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 q0(q){$8(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 n9=/^\s*svelte-ignore\s/,V0={"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"},F8=a1.concat(x1);function U0(q,N,R){let U=n9.exec(N);if(!U)return[];let J=U[0].length;q+=J;let $=[];if(R)for(let B of N.slice(J).matchAll(/([\w$-]+)(,)?/gm)){let G=B[1];if(F8.includes(G))$.push(G);else{let Z=V0[G]??G.replace(/-/g,"_"),z=q+B.index,Y=z+G.length;if(F8.includes(Z))s1({start:z,end:Y},G,Z);else{let T=l8(G,F8);r1({start:z,end:Y},G,T)}}if(!B[2])break}else for(let B of N.slice(J).matchAll(/[\w$-]+/gm)){let G=B[0];if($.push(G),!F8.includes(G)){let Z=V0[G]??G.replace(/-/g,"_");if(F8.includes(Z))$.push(Z)}}return $}function B8(q){let N=q.at(0),R=q.at(-1);if(N?.type==="Text")if(!h8.test(N.data))q.shift();else N.data=N.data.replace(b1,"");if(R?.type==="Text")if(!h8.test(R.data))q.pop();else R.data=R.data.replace(v1,"")}function H0(q,N){return r(N,null,{_(U,{next:J}){delete U.metadata,J()},Root(U,{visit:J}){let{instance:$,module:B,options:G}=U;if(G?.__raw__){let Y=U.fragment.nodes.findIndex((T)=>G.end<=T.start);if(Y===-1)Y=U.fragment.nodes.length;U.fragment.nodes.splice(Y,0,G.__raw__)}let Z=null,z=null;if(U.fragment.nodes.length>0){let Y=U.fragment.nodes.at(0),T=U.fragment.nodes.at(-1);Z=Y.start,z=T.end;while(/\s/.test(q[Z]))Z+=1;while(/\s/.test(q[z-1]))z-=1}if($)delete $.attributes;if(B)delete B.attributes;return{html:{type:"Fragment",start:Z,end:z,children:U.fragment.nodes.map((Y)=>J(Y))},instance:$,module:B,css:N.css?J(N.css):void 0,_comments:N.comments?.length>0?N.comments:void 0}},AnimateDirective(U){return{...U,type:"Animation"}},AwaitBlock(U,{visit:J}){let $={type:"PendingBlock",start:null,end:null,children:U.pending?.nodes.map((Z)=>J(Z))??[],skip:!0},B={type:"ThenBlock",start:null,end:null,children:U.then?.nodes.map((Z)=>J(Z))??[],skip:!0},G={type:"CatchBlock",start:null,end:null,children:U.catch?.nodes.map((Z)=>J(Z))??[],skip:!0};if(U.pending){let Z=U.pending.nodes.at(0),z=U.pending.nodes.at(-1);$.start=Z?.start??q.indexOf("}",U.expression.end)+1,$.end=z?.end??$.start,$.skip=!1}if(U.then){let Z=U.then.nodes.at(0),z=U.then.nodes.at(-1);B.start=$.end??Z?.start??q.indexOf("}",U.expression.end)+1,B.end=z?.end??q.lastIndexOf("}",$.end??U.expression.end)+1,B.skip=!1}if(U.catch){let Z=U.catch.nodes.at(0),z=U.catch.nodes.at(-1);G.start=B.end??$.end??Z?.start??q.indexOf("}",U.expression.end)+1,G.end=z?.end??q.lastIndexOf("}",B.end??$.end??U.expression.end)+1,G.skip=!1}return{type:"AwaitBlock",start:U.start,end:U.end,expression:U.expression,value:U.value,error:U.error,pending:$,then:B,catch:G}},BindDirective(U){return{...U,type:"Binding"}},ClassDirective(U){return{...U,type:"Class"}},Comment(U){return{...U,ignores:U0(U.start,U.data,!1)}},ComplexSelector(U,{next:J}){J();let $=[];for(let B of U.children){if(B.combinator)$.push(B.combinator);$.push(...B.selectors)}return{type:"Selector",start:U.start,end:U.end,children:$}},Component(U,{visit:J}){return{type:"InlineComponent",start:U.start,end:U.end,name:U.name,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},ConstTag(U){if(U.expression!==void 0)return U;let J=U,{id:$}={...J.declaration.declarations[0]};return delete $.typeAnnotation,{type:"ConstTag",start:J.start,end:U.end,expression:{type:"AssignmentExpression",start:(J.declaration.start??0)+6,end:J.declaration.end??0,operator:"=",left:$,right:J.declaration.declarations[0].init}}},DeclarationTag(U){return U},KeyBlock(U,{visit:J}){return B8(U.fragment.nodes),{type:"KeyBlock",start:U.start,end:U.end,expression:U.expression,children:U.fragment.nodes.map(($)=>J($))}},EachBlock(U,{visit:J}){let $=void 0;if(U.fallback){let B=U.fallback.nodes.at(0),G=q.lastIndexOf("{",U.end-1),Z=B?.start??G;B8(U.fallback.nodes),$={type:"ElseBlock",start:Z,end:G,children:U.fallback.nodes.map((z)=>J(z))}}return B8(U.body.nodes),{type:"EachBlock",start:U.start,end:U.end,children:U.body.nodes.map((B)=>J(B)),context:U.context,expression:U.expression,index:U.index,key:U.key,else:$}},ExpressionTag(U,{path:J}){let $=J.at(-1);if($?.type==="Attribute"){if(q[$.start]==="{")return{type:"AttributeShorthand",start:U.start,end:U.end,expression:U.expression}}return{type:"MustacheTag",start:U.start,end:U.end,expression:U.expression}},HtmlTag(U){return{...U,type:"RawMustacheTag"}},IfBlock(U,{visit:J}){let $=void 0;if(U.alternate){let G=U.alternate.nodes;if(G.length===1&&G[0].type==="IfBlock"&&G[0].elseif)G=G[0].consequent.nodes;let Z=q.lastIndexOf("{",U.end-1),z=G.at(0)?.start??Z;B8(U.alternate.nodes),$={type:"ElseBlock",start:z,end:Z,children:U.alternate.nodes.map((Y)=>J(Y))}}let B=U.elseif?U.consequent.nodes[0]?.start??q.lastIndexOf("{",U.end-1):U.start;return B8(U.consequent.nodes),{type:"IfBlock",start:B,end:U.end,expression:U.test,children:U.consequent.nodes.map((G)=>J(G)),else:$,elseif:U.elseif?!0:void 0}},OnDirective(U){return{...U,type:"EventHandler"}},SnippetBlock(U,{visit:J}){return B8(U.body.nodes),{type:"SnippetBlock",start:U.start,end:U.end,expression:U.expression,parameters:U.parameters,children:U.body.nodes.map(($)=>J($)),typeParams:U.typeParams}},SvelteBoundary(U,{visit:J}){return B8(U.fragment.nodes),{type:"SvelteBoundary",name:"svelte:boundary",start:U.start,end:U.end,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},RegularElement(U,{visit:J}){return{type:"Element",start:U.start,end:U.end,name:U.name,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},SlotElement(U,{visit:J}){return{type:"Slot",start:U.start,end:U.end,name:U.name,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},Attribute(U,{visit:J,next:$,path:B}){if(U.value!==!0&&!Array.isArray(U.value)){B.push(U);let G=[J(U.value)];return B.pop(),{...U,value:G}}else return $()},StyleDirective(U,{visit:J,next:$,path:B}){if(U.value!==!0&&!Array.isArray(U.value)){B.push(U);let G=[J(U.value)];return B.pop(),{...U,value:G}}else return $()},SpreadAttribute(U){return{...U,type:"Spread"}},StyleSheet(U,J){return{...U,...J.next(),type:"Style"}},SvelteBody(U,{visit:J}){return{type:"Body",name:"svelte:body",start:U.start,end:U.end,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},SvelteComponent(U,{visit:J}){return{type:"InlineComponent",name:"svelte:component",start:U.start,end:U.end,expression:U.expression,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},SvelteDocument(U,{visit:J}){return{type:"Document",name:"svelte:document",start:U.start,end:U.end,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},SvelteElement(U,{visit:J}){let $=U.tag;if($.type==="Literal"&&typeof $.value==="string"&&q[U.tag.start-1]!=="{")$=$.value;return{type:"Element",name:"svelte:element",start:U.start,end:U.end,tag:$,attributes:U.attributes.map((B)=>J(B)),children:U.fragment.nodes.map((B)=>J(B))}},SvelteFragment(U,{visit:J}){return{type:"SlotTemplate",name:"svelte:fragment",start:U.start,end:U.end,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},SvelteHead(U,{visit:J}){return{type:"Head",name:"svelte:head",start:U.start,end:U.end,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},SvelteOptions(U,{visit:J}){return{type:"Options",name:"svelte:options",start:U.start,end:U.end,attributes:U.attributes.map(($)=>J($))}},SvelteSelf(U,{visit:J}){return{type:"InlineComponent",name:"svelte:self",start:U.start,end:U.end,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},SvelteWindow(U,{visit:J}){return{type:"Window",name:"svelte:window",start:U.start,end:U.end,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},Text(U,{path:J}){let $=J.at(-1);if($?.type==="RegularElement"&&$.name==="style")return{type:"Text",start:U.start,end:U.end,data:U.data}},TitleElement(U,{visit:J}){return{type:"Title",name:"title",start:U.start,end:U.end,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},TransitionDirective(U){return{...U,type:"Transition"}},UseDirective(U){return{...U,type:"Action"}},LetDirective(U){return{...U,type:"Let"}}})}var _=!0,a9=new WeakMap;function s9(q){let N=q.Parser.acorn||q,R=a9.get(N);if(!R){let G=function(E){return E===D.name||E===D.string||E===D.num||w.includes(E)||y.includes(E)},Z=function(E){return E===D.name||w.includes(E)||y.includes(E)},z=function(E){return E===D.name||y.includes(E)},Y=function(E){return E===P.abstract||E===P.declare||E===P.enum||E===P.module||E===P.namespace||E===P.interface||E===P.type},T=function(E){return E===P.keyof||E===P.readonly||E===P.unique},W=function(E){return E===D.invalidTemplate},{tokTypes:D,keywordTypes:O}=N,w=Object.values(O),P=B(),y=Object.values(P),s=$(),f=J(),m=new RegExp(`^(?:${Object.keys(P).join("|")})$`);s.jsxTagStart.updateContext=function(){this.context.push(f.tc_expr),this.context.push(f.tc_oTag),this.exprAllowed=!1},s.jsxTagEnd.updateContext=function(E){let H8=this.context.pop();if(H8===f.tc_oTag&&E===D.slash||H8===f.tc_cTag)this.context.pop(),this.exprAllowed=this.curContext()===f.tc_expr;else this.exprAllowed=!0},R={tokTypes:{...P,...s},tokContexts:{...f},keywordsRegExp:m,tokenIsLiteralPropertyName:G,tokenIsKeywordOrIdentifier:Z,tokenIsIdentifier:z,tokenIsTSDeclarationStart:Y,tokenIsTSTypeOperator:T,tokenIsTemplate:W}}return R;function U(G,Z={}){return new N.TokenType("name",Z)}function J(){return{tc_oTag:new N.TokContext("<tag",!1,!1),tc_cTag:new N.TokContext("</tag",!1,!1),tc_expr:new N.TokContext("<tag>...</tag>",!0,!0)}}function $(){return{at:new N.TokenType("@"),jsxName:new N.TokenType("jsxName"),jsxText:new N.TokenType("jsxText",{beforeExpr:!0}),jsxTagStart:new N.TokenType("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new N.TokenType("jsxTagEnd")}}function B(){return{assert:U("assert",{startsExpr:_}),asserts:U("asserts",{startsExpr:_}),global:U("global",{startsExpr:_}),keyof:U("keyof",{startsExpr:_}),readonly:U("readonly",{startsExpr:_}),unique:U("unique",{startsExpr:_}),abstract:U("abstract",{startsExpr:_}),declare:U("declare",{startsExpr:_}),enum:U("enum",{startsExpr:_}),module:U("module",{startsExpr:_}),namespace:U("namespace",{startsExpr:_}),interface:U("interface",{startsExpr:_}),type:U("type",{startsExpr:_})}}}var r9=512,Y8=1024,N8=1,M8=2,e9=4,s8=8,q2=16,$0=64,F0=128,V2=256,U2=512,Y0=1024,t6=N8|M8|s8|F0,n6=N8|0|s8|0,a6=N8|0|e9|0,s6=N8|0|q2|0,r6=0|M8|0|F0,e6=0|M8|0|0,H2=N8|M8|s8|V2,q7=0|Y0,V7=0|$0,U7=N8|0|0|$0,H7=H2|U2,B7=0|Y0,Z0=4,G0=2,L0=1,N7=G0|L0,J7=G0|Z0,R7=L0|Z0,B2=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y,B0=new RegExp("(?=("+B2.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),Z8=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function N2(q,N){let R=N.key.name,U=q[R],J="true";if(N.type==="MethodDefinition"&&(N.kind==="get"||N.kind==="set"))J=(N.static?"s":"i")+N.kind;if(U==="iget"&&J==="iset"||U==="iset"&&J==="iget"||U==="sget"&&J==="sset"||U==="sset"&&J==="sget")return q[R]="true",!1;else if(!U)return q[R]=J,!1;else return!0}function N0(q,N){let{computed:R,key:U}=q;return!R&&(U.type==="Identifier"&&U.name===N||U.type==="Literal"&&U.value===N)}var M={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."},A8={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 J2(q,N,R){let{tokTypes:U}=R,{tokTypes:J}=N;return class extends q{takeDecorators(B){let G=this.decoratorStack[this.decoratorStack.length-1];if(G.length)B.decorators=G,this.resetStartLocationFromNode(B,G[0]),this.decoratorStack[this.decoratorStack.length-1]=[]}parseDecorators(B){let G=this.decoratorStack[this.decoratorStack.length-1];while(this.match(J.at)){let Z=this.parseDecorator();G.push(Z)}if(this.match(U._export)){if(!B)this.unexpected()}else if(!this.canHaveLeadingDecorator())this.raise(this.start,A8.UnexpectedLeadingDecorator)}parseDecorator(){let B=this.startNode();this.next(),this.decoratorStack.push([]);let G=this.start,Z=this.startLoc,z;if(this.match(U.parenL)){let Y=this.start,T=this.startLoc;if(this.next(),z=this.parseExpression(),this.expect(U.parenR),this.options.preserveParens){let W=this.startNodeAt(Y,T);W.expression=z,z=this.finishNode(W,"ParenthesizedExpression")}}else{z=this.parseIdent(!1);while(this.eat(U.dot)){let Y=this.startNodeAt(G,Z);Y.object=z,Y.property=this.parseIdent(!0),Y.computed=!1,z=this.finishNode(Y,"MemberExpression")}}return B.expression=this.parseMaybeDecoratorArguments(z),this.decoratorStack.pop(),this.finishNode(B,"Decorator")}parseMaybeDecoratorArguments(B){if(this.eat(U.parenL)){let G=this.startNodeAtNode(B);return G.callee=B,G.arguments=this.parseExprList(U.parenR,!1),this.finishNode(G,"CallExpression")}return B}}}var R2={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:"♦"},Q2=/^[\da-fA-F]+$/,$2=/^\d+$/;function G8(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 G8(q.object)+"."+G8(q.property)}function F2(q,N,R,U){let J=q.tokTypes,$=N.tokTypes,B=q.isNewLine,G=q.isIdentifierChar,Z=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},U||{});return class extends R{jsx_readToken(){let Y="",T=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated JSX contents");let W=this.input.charCodeAt(this.pos);switch(W){case 60:case 123:if(this.pos===this.start){if(W===60&&this.exprAllowed)return++this.pos,this.finishToken($.jsxTagStart);return this.getTokenFromCode(W)}return Y+=this.input.slice(T,this.pos),this.finishToken($.jsxText,Y);case 38:Y+=this.input.slice(T,this.pos),Y+=this.jsx_readEntity(),T=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(W===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:if(B(W))Y+=this.input.slice(T,this.pos),Y+=this.jsx_readNewLine(!0),T=this.pos;else++this.pos}}}jsx_readNewLine(Y){let T=this.input.charCodeAt(this.pos),W;if(++this.pos,T===13&&this.input.charCodeAt(this.pos)===10)++this.pos,W=Y?`
|
|
7
|
+
${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 r1 extends Q8{name="CompileWarning";constructor(q,B,R){super(q,B,R)}}function $8(q,B,R){let U=i8;if(q)U=a1.get(q)??i8;if(U&&U.at(-1)?.has(B))return;let J=new r1(B,R,q&&q.start!==void 0?[q.start,q.end??q.start]:void 0);if(!_8(J))return;c8.push(J)}var e1=["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 q0(q,B,R){$8(q,"legacy_code",`\`${B}\` is no longer valid — please use \`${R}\` instead
|
|
8
|
+
https://svelte.dev/e/legacy_code`)}function V0(q,B,R){$8(q,"unknown_code",`${R?`\`${B}\` is not a recognised code (did you mean \`${R}\`?)`:`\`${B}\` is not a recognised code`}
|
|
9
|
+
https://svelte.dev/e/unknown_code`)}function o8(q,B,R){$8(q,"element_implicitly_closed",`This element is implicitly closed by the following \`${B}\`, which can cause an unexpected DOM structure. Add an explicit \`${R}\` to avoid surprises.
|
|
10
|
+
https://svelte.dev/e/element_implicitly_closed`)}function U0(q){$8(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 H0(q){$8(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 r9=/^\s*svelte-ignore\s/,N0={"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"},Y8=e1.concat(c1);function B0(q,B,R){let U=r9.exec(B);if(!U)return[];let J=U[0].length;q+=J;let $=[];if(R)for(let N of B.slice(J).matchAll(/([\w$-]+)(,)?/gm)){let G=N[1];if(Y8.includes(G))$.push(G);else{let Z=N0[G]??G.replace(/-/g,"_"),z=q+N.index,F=z+G.length;if(Y8.includes(Z))q0({start:z,end:F},G,Z);else{let T=l8(G,Y8);V0({start:z,end:F},G,T)}}if(!N[2])break}else for(let N of B.slice(J).matchAll(/[\w$-]+/gm)){let G=N[0];if($.push(G),!Y8.includes(G)){let Z=N0[G]??G.replace(/-/g,"_");if(Y8.includes(Z))$.push(Z)}}return $}function N8(q){let B=q.at(0),R=q.at(-1);if(B?.type==="Text")if(!h8.test(B.data))q.shift();else B.data=B.data.replace(x1,"");if(R?.type==="Text")if(!h8.test(R.data))q.pop();else R.data=R.data.replace(u1,"")}function J0(q,B){return r(B,null,{_(U,{next:J}){delete U.metadata,J()},Root(U,{visit:J}){let{instance:$,module:N,options:G}=U;if(G?.__raw__){let F=U.fragment.nodes.findIndex((T)=>G.end<=T.start);if(F===-1)F=U.fragment.nodes.length;U.fragment.nodes.splice(F,0,G.__raw__)}let Z=null,z=null;if(U.fragment.nodes.length>0){let F=U.fragment.nodes.at(0),T=U.fragment.nodes.at(-1);Z=F.start,z=T.end;while(/\s/.test(q[Z]))Z+=1;while(/\s/.test(q[z-1]))z-=1}if($)delete $.attributes;if(N)delete N.attributes;return{html:{type:"Fragment",start:Z,end:z,children:U.fragment.nodes.map((F)=>J(F))},instance:$,module:N,css:B.css?J(B.css):void 0,_comments:B.comments?.length>0?B.comments:void 0}},AnimateDirective(U){return{...U,type:"Animation"}},AwaitBlock(U,{visit:J}){let $={type:"PendingBlock",start:null,end:null,children:U.pending?.nodes.map((Z)=>J(Z))??[],skip:!0},N={type:"ThenBlock",start:null,end:null,children:U.then?.nodes.map((Z)=>J(Z))??[],skip:!0},G={type:"CatchBlock",start:null,end:null,children:U.catch?.nodes.map((Z)=>J(Z))??[],skip:!0};if(U.pending){let Z=U.pending.nodes.at(0),z=U.pending.nodes.at(-1);$.start=Z?.start??q.indexOf("}",U.expression.end)+1,$.end=z?.end??$.start,$.skip=!1}if(U.then){let Z=U.then.nodes.at(0),z=U.then.nodes.at(-1);N.start=$.end??Z?.start??q.indexOf("}",U.expression.end)+1,N.end=z?.end??q.lastIndexOf("}",$.end??U.expression.end)+1,N.skip=!1}if(U.catch){let Z=U.catch.nodes.at(0),z=U.catch.nodes.at(-1);G.start=N.end??$.end??Z?.start??q.indexOf("}",U.expression.end)+1,G.end=z?.end??q.lastIndexOf("}",N.end??$.end??U.expression.end)+1,G.skip=!1}return{type:"AwaitBlock",start:U.start,end:U.end,expression:U.expression,value:U.value,error:U.error,pending:$,then:N,catch:G}},BindDirective(U){return{...U,type:"Binding"}},ClassDirective(U){return{...U,type:"Class"}},Comment(U){return{...U,ignores:B0(U.start,U.data,!1)}},ComplexSelector(U,{next:J}){J();let $=[];for(let N of U.children){if(N.combinator)$.push(N.combinator);$.push(...N.selectors)}return{type:"Selector",start:U.start,end:U.end,children:$}},Component(U,{visit:J}){return{type:"InlineComponent",start:U.start,end:U.end,name:U.name,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},ConstTag(U){if(U.expression!==void 0)return U;let J=U,{id:$}={...J.declaration.declarations[0]};return delete $.typeAnnotation,{type:"ConstTag",start:J.start,end:U.end,expression:{type:"AssignmentExpression",start:(J.declaration.start??0)+6,end:J.declaration.end??0,operator:"=",left:$,right:J.declaration.declarations[0].init}}},DeclarationTag(U){return U},KeyBlock(U,{visit:J}){return N8(U.fragment.nodes),{type:"KeyBlock",start:U.start,end:U.end,expression:U.expression,children:U.fragment.nodes.map(($)=>J($))}},EachBlock(U,{visit:J}){let $=void 0;if(U.fallback){let N=U.fallback.nodes.at(0),G=q.lastIndexOf("{",U.end-1),Z=N?.start??G;N8(U.fallback.nodes),$={type:"ElseBlock",start:Z,end:G,children:U.fallback.nodes.map((z)=>J(z))}}return N8(U.body.nodes),{type:"EachBlock",start:U.start,end:U.end,children:U.body.nodes.map((N)=>J(N)),context:U.context,expression:U.expression,index:U.index,key:U.key,else:$}},ExpressionTag(U,{path:J}){let $=J.at(-1);if($?.type==="Attribute"){if(q[$.start]==="{")return{type:"AttributeShorthand",start:U.start,end:U.end,expression:U.expression}}return{type:"MustacheTag",start:U.start,end:U.end,expression:U.expression}},HtmlTag(U){return{...U,type:"RawMustacheTag"}},IfBlock(U,{visit:J}){let $=void 0;if(U.alternate){let G=U.alternate.nodes;if(G.length===1&&G[0].type==="IfBlock"&&G[0].elseif)G=G[0].consequent.nodes;let Z=q.lastIndexOf("{",U.end-1),z=G.at(0)?.start??Z;N8(U.alternate.nodes),$={type:"ElseBlock",start:z,end:Z,children:U.alternate.nodes.map((F)=>J(F))}}let N=U.elseif?U.consequent.nodes[0]?.start??q.lastIndexOf("{",U.end-1):U.start;return N8(U.consequent.nodes),{type:"IfBlock",start:N,end:U.end,expression:U.test,children:U.consequent.nodes.map((G)=>J(G)),else:$,elseif:U.elseif?!0:void 0}},OnDirective(U){return{...U,type:"EventHandler"}},SnippetBlock(U,{visit:J}){return N8(U.body.nodes),{type:"SnippetBlock",start:U.start,end:U.end,expression:U.expression,parameters:U.parameters,children:U.body.nodes.map(($)=>J($)),typeParams:U.typeParams}},SvelteBoundary(U,{visit:J}){return N8(U.fragment.nodes),{type:"SvelteBoundary",name:"svelte:boundary",start:U.start,end:U.end,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},RegularElement(U,{visit:J}){return{type:"Element",start:U.start,end:U.end,name:U.name,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},SlotElement(U,{visit:J}){return{type:"Slot",start:U.start,end:U.end,name:U.name,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},Attribute(U,{visit:J,next:$,path:N}){if(U.value!==!0&&!Array.isArray(U.value)){N.push(U);let G=[J(U.value)];return N.pop(),{...U,value:G}}else return $()},StyleDirective(U,{visit:J,next:$,path:N}){if(U.value!==!0&&!Array.isArray(U.value)){N.push(U);let G=[J(U.value)];return N.pop(),{...U,value:G}}else return $()},SpreadAttribute(U){return{...U,type:"Spread"}},StyleSheet(U,J){return{...U,...J.next(),type:"Style"}},SvelteBody(U,{visit:J}){return{type:"Body",name:"svelte:body",start:U.start,end:U.end,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},SvelteComponent(U,{visit:J}){return{type:"InlineComponent",name:"svelte:component",start:U.start,end:U.end,expression:U.expression,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},SvelteDocument(U,{visit:J}){return{type:"Document",name:"svelte:document",start:U.start,end:U.end,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},SvelteElement(U,{visit:J}){let $=U.tag;if($.type==="Literal"&&typeof $.value==="string"&&q[U.tag.start-1]!=="{")$=$.value;return{type:"Element",name:"svelte:element",start:U.start,end:U.end,tag:$,attributes:U.attributes.map((N)=>J(N)),children:U.fragment.nodes.map((N)=>J(N))}},SvelteFragment(U,{visit:J}){return{type:"SlotTemplate",name:"svelte:fragment",start:U.start,end:U.end,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},SvelteHead(U,{visit:J}){return{type:"Head",name:"svelte:head",start:U.start,end:U.end,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},SvelteOptions(U,{visit:J}){return{type:"Options",name:"svelte:options",start:U.start,end:U.end,attributes:U.attributes.map(($)=>J($))}},SvelteSelf(U,{visit:J}){return{type:"InlineComponent",name:"svelte:self",start:U.start,end:U.end,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},SvelteWindow(U,{visit:J}){return{type:"Window",name:"svelte:window",start:U.start,end:U.end,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},Text(U,{path:J}){let $=J.at(-1);if($?.type==="RegularElement"&&$.name==="style")return{type:"Text",start:U.start,end:U.end,data:U.data}},TitleElement(U,{visit:J}){return{type:"Title",name:"title",start:U.start,end:U.end,attributes:U.attributes.map(($)=>J($)),children:U.fragment.nodes.map(($)=>J($))}},TransitionDirective(U){return{...U,type:"Transition"}},UseDirective(U){return{...U,type:"Action"}},LetDirective(U){return{...U,type:"Let"}}})}var _=!0,e9=new WeakMap;function q2(q){let B=q.Parser.acorn||q,R=e9.get(B);if(!R){let G=function(E){return E===D.name||E===D.string||E===D.num||w.includes(E)||b.includes(E)},Z=function(E){return E===D.name||w.includes(E)||b.includes(E)},z=function(E){return E===D.name||b.includes(E)},F=function(E){return E===P.abstract||E===P.declare||E===P.enum||E===P.module||E===P.namespace||E===P.interface||E===P.type},T=function(E){return E===P.keyof||E===P.readonly||E===P.unique},W=function(E){return E===D.invalidTemplate},{tokTypes:D,keywordTypes:O}=B,w=Object.values(O),P=N(),b=Object.values(P),s=$(),f=J(),m=new RegExp(`^(?:${Object.keys(P).join("|")})$`);s.jsxTagStart.updateContext=function(){this.context.push(f.tc_expr),this.context.push(f.tc_oTag),this.exprAllowed=!1},s.jsxTagEnd.updateContext=function(E){let H8=this.context.pop();if(H8===f.tc_oTag&&E===D.slash||H8===f.tc_cTag)this.context.pop(),this.exprAllowed=this.curContext()===f.tc_expr;else this.exprAllowed=!0},R={tokTypes:{...P,...s},tokContexts:{...f},keywordsRegExp:m,tokenIsLiteralPropertyName:G,tokenIsKeywordOrIdentifier:Z,tokenIsIdentifier:z,tokenIsTSDeclarationStart:F,tokenIsTSTypeOperator:T,tokenIsTemplate:W}}return R;function U(G,Z={}){return new B.TokenType("name",Z)}function J(){return{tc_oTag:new B.TokContext("<tag",!1,!1),tc_cTag:new B.TokContext("</tag",!1,!1),tc_expr:new B.TokContext("<tag>...</tag>",!0,!0)}}function $(){return{at:new B.TokenType("@"),jsxName:new B.TokenType("jsxName"),jsxText:new B.TokenType("jsxText",{beforeExpr:!0}),jsxTagStart:new B.TokenType("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new B.TokenType("jsxTagEnd")}}function N(){return{assert:U("assert",{startsExpr:_}),asserts:U("asserts",{startsExpr:_}),global:U("global",{startsExpr:_}),keyof:U("keyof",{startsExpr:_}),readonly:U("readonly",{startsExpr:_}),unique:U("unique",{startsExpr:_}),abstract:U("abstract",{startsExpr:_}),declare:U("declare",{startsExpr:_}),enum:U("enum",{startsExpr:_}),module:U("module",{startsExpr:_}),namespace:U("namespace",{startsExpr:_}),interface:U("interface",{startsExpr:_}),type:U("type",{startsExpr:_})}}}var V2=512,F8=1024,B8=1,M8=2,U2=4,r8=8,H2=16,Z0=64,G0=128,N2=256,B2=512,L0=1024,n6=B8|M8|r8|G0,a6=B8|0|r8|0,s6=B8|0|U2|0,r6=B8|0|H2|0,e6=0|M8|0|G0,q7=0|M8|0|0,J2=B8|M8|r8|N2,V7=0|L0,U7=0|Z0,H7=B8|0|0|Z0,N7=J2|B2,B7=0|L0,D0=4,S0=2,K0=1,J7=S0|K0,R7=S0|D0,Q7=K0|D0,R2=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y,R0=new RegExp("(?=("+R2.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),Z8=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function Q2(q,B){let R=B.key.name,U=q[R],J="true";if(B.type==="MethodDefinition"&&(B.kind==="get"||B.kind==="set"))J=(B.static?"s":"i")+B.kind;if(U==="iget"&&J==="iset"||U==="iset"&&J==="iget"||U==="sget"&&J==="sset"||U==="sset"&&J==="sget")return q[R]="true",!1;else if(!U)return q[R]=J,!1;else return!0}function Q0(q,B){let{computed:R,key:U}=q;return!R&&(U.type==="Identifier"&&U.name===B||U.type==="Literal"&&U.value===B)}var M={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."},A8={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 $2(q,B,R){let{tokTypes:U}=R,{tokTypes:J}=B;return class extends q{takeDecorators(N){let G=this.decoratorStack[this.decoratorStack.length-1];if(G.length)N.decorators=G,this.resetStartLocationFromNode(N,G[0]),this.decoratorStack[this.decoratorStack.length-1]=[]}parseDecorators(N){let G=this.decoratorStack[this.decoratorStack.length-1];while(this.match(J.at)){let Z=this.parseDecorator();G.push(Z)}if(this.match(U._export)){if(!N)this.unexpected()}else if(!this.canHaveLeadingDecorator())this.raise(this.start,A8.UnexpectedLeadingDecorator)}parseDecorator(){let N=this.startNode();this.next(),this.decoratorStack.push([]);let G=this.start,Z=this.startLoc,z;if(this.match(U.parenL)){let F=this.start,T=this.startLoc;if(this.next(),z=this.parseExpression(),this.expect(U.parenR),this.options.preserveParens){let W=this.startNodeAt(F,T);W.expression=z,z=this.finishNode(W,"ParenthesizedExpression")}}else{z=this.parseIdent(!1);while(this.eat(U.dot)){let F=this.startNodeAt(G,Z);F.object=z,F.property=this.parseIdent(!0),F.computed=!1,z=this.finishNode(F,"MemberExpression")}}return N.expression=this.parseMaybeDecoratorArguments(z),this.decoratorStack.pop(),this.finishNode(N,"Decorator")}parseMaybeDecoratorArguments(N){if(this.eat(U.parenL)){let G=this.startNodeAtNode(N);return G.callee=N,G.arguments=this.parseExprList(U.parenR,!1),this.finishNode(G,"CallExpression")}return N}}}var Y2={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:"♦"},F2=/^[\da-fA-F]+$/,Z2=/^\d+$/;function G8(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 G8(q.object)+"."+G8(q.property)}function G2(q,B,R,U){let J=q.tokTypes,$=B.tokTypes,N=q.isNewLine,G=q.isIdentifierChar,Z=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},U||{});return class extends R{jsx_readToken(){let F="",T=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated JSX contents");let W=this.input.charCodeAt(this.pos);switch(W){case 60:case 123:if(this.pos===this.start){if(W===60&&this.exprAllowed)return++this.pos,this.finishToken($.jsxTagStart);return this.getTokenFromCode(W)}return F+=this.input.slice(T,this.pos),this.finishToken($.jsxText,F);case 38:F+=this.input.slice(T,this.pos),F+=this.jsx_readEntity(),T=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(W===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:if(N(W))F+=this.input.slice(T,this.pos),F+=this.jsx_readNewLine(!0),T=this.pos;else++this.pos}}}jsx_readNewLine(F){let T=this.input.charCodeAt(this.pos),W;if(++this.pos,T===13&&this.input.charCodeAt(this.pos)===10)++this.pos,W=F?`
|
|
11
11
|
`:`\r
|
|
12
|
-
`;else W=String.fromCharCode(T);if(this.options.locations)++this.curLine,this.lineStart=this.pos;return W}jsx_readString(Y){let T="",W=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");let D=this.input.charCodeAt(this.pos);if(D===Y)break;if(D===38)T+=this.input.slice(W,this.pos),T+=this.jsx_readEntity(),W=this.pos;else if(B(D))T+=this.input.slice(W,this.pos),T+=this.jsx_readNewLine(!1),W=this.pos;else++this.pos}return T+=this.input.slice(W,this.pos++),this.finishToken(J.string,T)}jsx_readEntity(){let Y="",T=0,W,D=this.input[this.pos];if(D!=="&")this.raise(this.pos,"Entity must start with an ampersand");let O=++this.pos;while(this.pos<this.input.length&&T++<10){if(D=this.input[this.pos++],D===";"){if(Y[0]==="#"){if(Y[1]==="x"){if(Y=Y.substr(2),Q2.test(Y))W=String.fromCharCode(parseInt(Y,16))}else if(Y=Y.substr(1),$2.test(Y))W=String.fromCharCode(parseInt(Y,10))}else W=R2[Y];break}Y+=D}if(!W)return this.pos=O,"&";return W}jsx_readWord(){let Y,T=this.pos;do Y=this.input.charCodeAt(++this.pos);while(G(Y)||Y===45);return this.finishToken($.jsxName,this.input.slice(T,this.pos))}jsx_parseIdentifier(){let Y=this.startNode();if(this.type===$.jsxName)Y.name=this.value;else if(this.type.keyword)Y.name=this.type.keyword;else this.unexpected();return this.next(),this.finishNode(Y,"JSXIdentifier")}jsx_parseNamespacedName(){let Y=this.start,T=this.startLoc,W=this.jsx_parseIdentifier();if(!Z.allowNamespaces||!this.eat(J.colon))return W;var D=this.startNodeAt(Y,T);return D.namespace=W,D.name=this.jsx_parseIdentifier(),this.finishNode(D,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===$.jsxTagEnd)return"";let Y=this.start,T=this.startLoc,W=this.jsx_parseNamespacedName();if(this.type===J.dot&&W.type==="JSXNamespacedName"&&!Z.allowNamespacedObjects)this.unexpected();while(this.eat(J.dot)){let D=this.startNodeAt(Y,T);D.object=W,D.property=this.jsx_parseIdentifier(),W=this.finishNode(D,"JSXMemberExpression")}return W}jsx_parseAttributeValue(){switch(this.type){case J.braceL:let Y=this.jsx_parseExpressionContainer();if(Y.expression.type==="JSXEmptyExpression")this.raise(Y.start,"JSX attributes must only be assigned a non-empty expression");return Y;case $.jsxTagStart:case J.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let Y=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(Y,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let Y=this.startNode();return this.next(),Y.expression=this.type===J.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(J.braceR),this.finishNode(Y,"JSXExpressionContainer")}jsx_parseAttribute(){let Y=this.startNode();if(this.eat(J.braceL))return this.expect(J.ellipsis),Y.argument=this.parseMaybeAssign(),this.expect(J.braceR),this.finishNode(Y,"JSXSpreadAttribute");return Y.name=this.jsx_parseNamespacedName(),Y.value=this.eat(J.eq)?this.jsx_parseAttributeValue():null,this.finishNode(Y,"JSXAttribute")}jsx_parseOpeningElementAt(Y,T){let W=this.startNodeAt(Y,T);W.attributes=[];let D=this.jsx_parseElementName();if(D)W.name=D;while(this.type!==J.slash&&this.type!==$.jsxTagEnd)W.attributes.push(this.jsx_parseAttribute());return W.selfClosing=this.eat(J.slash),this.expect($.jsxTagEnd),this.finishNode(W,D?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(Y,T){let W=this.startNodeAt(Y,T),D=this.jsx_parseElementName();if(D)W.name=D;return this.expect($.jsxTagEnd),this.finishNode(W,D?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(Y,T){let W=this.startNodeAt(Y,T),D=[],O=this.jsx_parseOpeningElementAt(Y,T),w=null;if(!O.selfClosing){q:for(;;)switch(this.type){case $.jsxTagStart:if(Y=this.start,T=this.startLoc,this.next(),this.eat(J.slash)){w=this.jsx_parseClosingElementAt(Y,T);break q}D.push(this.jsx_parseElementAt(Y,T));break;case $.jsxText:D.push(this.parseExprAtom());break;case J.braceL:D.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}if(G8(w.name)!==G8(O.name))this.raise(w.start,"Expected corresponding JSX closing tag for <"+G8(O.name)+">")}let P=O.name?"Element":"Fragment";if(W["opening"+P]=O,W["closing"+P]=w,W.children=D,this.type===J.relational&&this.value==="<")this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag");return this.finishNode(W,"JSX"+P)}jsx_parseText(){let Y=this.parseLiteral(this.value);return Y.type="JSXText",Y}jsx_parseElement(){let Y=this.start,T=this.startLoc;return this.next(),this.jsx_parseElementAt(Y,T)}}}function Y2(q,N,R){let{tokTypes:U}=N,{tokTypes:J}=R;return class extends q{parseMaybeImportAttributes(B){if(this.type===J._with||this.type===U.assert){this.next();let G=this.parseImportAttributes();if(G)B.attributes=G}}parseImportAttributes(){this.expect(J.braceL);let B=this.parseWithEntries();return this.expect(J.braceR),B}parseWithEntries(){let B=[],G=new Set;do{if(this.type===J.braceR)break;let Z=this.startNode(),z;if(this.type===J.string)z=this.parseLiteral(this.value);else z=this.parseIdent(!0);if(this.next(),Z.key=z,G.has(Z.key.name))this.raise(this.pos,"Duplicated key in attributes");if(G.add(Z.key.name),this.type!==J.string)this.raise(this.pos,"Only string is supported as an attribute value");Z.value=this.parseLiteral(this.value),B.push(this.finishNode(Z,"ImportAttribute"))}while(this.eat(J.comma));return B}}}var t8=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function J0(q){if(!q)throw Error("Assert fail")}function Z2(q){return q==="accessor"}function G2(q){return q==="in"||q==="out"}var O8=1,R0=2,L2=4,k={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 n8(q,N){return k.SCOPE_FUNCTION|(q?k.SCOPE_ASYNC:0)|(N?k.SCOPE_GENERATOR:0)}function D2(q){if(q.type!=="MemberExpression")return!1;let{computed:N,property:R}=q;if(N&&(R.type!=="TemplateLiteral"||R.expressions.length>0))return!1;return D0(q.object)}function D0(q){if(q.type==="Identifier")return!0;if(q.type!=="MemberExpression")return!1;if(q.computed)return!1;return D0(q.object)}function Q0(q){return q==="private"||q==="public"||q==="protected"}function S2(q){return Boolean(q.startsExpr)}function K2(q){if(q==null)throw Error(`Unexpected ${q} value.`);return q}function W2(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 S0(q){let{dts:N=!1}=q||{},R=!!q?.jsx;return function(U){let J=U.acorn||a8,$=s9(J),B=J.tokTypes,G=J.keywordTypes,Z=J.isIdentifierStart,z=J.lineBreak,Y=J.isNewLine,T=J.tokContexts,W=J.isIdentifierChar,{tokTypes:D,tokContexts:O,keywordsRegExp:w,tokenIsLiteralPropertyName:P,tokenIsTemplate:y,tokenIsTSDeclarationStart:s,tokenIsIdentifier:f,tokenIsKeywordOrIdentifier:m,tokenIsTSTypeOperator:E}=$;function H8(V,H,Q=V.length){for(let F=H;F<Q;F++){let L=V.charCodeAt(F);if(Y(L))return F<Q-1&&L===13&&V.charCodeAt(F+1)===10?F+2:F+1}return-1}if(U=J2(U,$,J),q?.jsx)U=F2(J,$,U,typeof q.jsx==="boolean"?{}:q.jsx);U=Y2(U,$,J);class k1 extends U{constructor(V,H,Q){super(V,H,Q);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=(F)=>{this.tsParseModifiers({modified:F,allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:M.InvalidModifierOnTypeParameterPositions})},this.ecmaVersion=this.options.ecmaVersion}static get acornTypeScript(){return $}get acornTypeScript(){return $}getTokenFromCodeInType(V){if(V===62)return this.finishOp(B.relational,1);if(V===60)return this.finishOp(B.relational,1);return super.getTokenFromCode(V)}readToken(V){if(!this.inType){let H=this.curContext();if(H===O.tc_expr)return this.jsx_readToken();if(H===O.tc_oTag||H===O.tc_cTag){if(Z(V))return this.jsx_readWord();if(V==62)return++this.pos,this.finishToken(D.jsxTagEnd);if((V===34||V===39)&&H==O.tc_oTag)return this.jsx_readString(V)}if(V===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)if(++this.pos,q?.jsx)return this.finishToken(D.jsxTagStart);else return this.finishToken(B.relational,"<")}return super.readToken(V)}getTokenFromCode(V){if(this.inType)return this.getTokenFromCodeInType(V);if(V===64)return++this.pos,this.finishToken(D.at);return super.getTokenFromCode(V)}isAbstractClass(){return this.ts_isContextual(D.abstract)&&this.lookahead().type===B._class}finishNode(V,H){if(V.type!==""&&V.end!==0)return V;return super.finishNode(V,H)}tryParse(V,H=this.cloneCurLookaheadState()){let Q={node:null};try{return{node:V((L=null)=>{throw Q.node=L,Q}),error:null,thrown:!1,aborted:!1,failState:null}}catch(F){let L=this.getCurLookaheadState();if(this.setLookaheadState(H),F instanceof SyntaxError)return{node:null,error:F,thrown:!0,aborted:!1,failState:L};if(F===Q)return{node:Q.node,error:null,thrown:!1,aborted:!0,failState:L};throw F}}setOptionalParametersError(V,H){V.optionalParametersLoc=H?.loc??this.startLoc}reScan_lt_gt(){if(this.type===B.relational)this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos())}reScan_lt(){let{type:V}=this;if(V===B.bitShift)return this.pos-=2,this.finishOp(B.relational,1),B.relational;return V}resetEndLocation(V,H=this.lastTokEnd,Q=this.lastTokEndLoc){if(V.end=H,V.loc.end=Q,this.options.ranges)V.range[1]=H}startNodeAtNode(V){return super.startNodeAt(V.start,V.loc.start)}nextTokenStart(){return this.nextTokenStartSince(this.pos)}tsHasSomeModifiers(V,H){return H.some((Q)=>{if(Q0(Q))return V.accessibility===Q;return!!V[Q]})}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&this.lookaheadCharCode()===123}tsCheckForInvalidTypeCasts(V){V.forEach((H)=>{if(H?.type==="TSTypeCastExpression")this.raise(H.typeAnnotation.start,M.UnexpectedTypeAnnotation)})}atPossibleAsyncArrow(V){return V.type==="Identifier"&&V.name==="async"&&this.lastTokEnd===V.end&&!this.canInsertSemicolon()&&V.end-V.start===5&&V.start===this.potentialArrowAt}tsIsIdentifier(){return f(this.type)}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(B.colon)?this.tsParseTypeOrTypePredicateAnnotation(B.colon):void 0}tsTryParseGenericAsyncArrowFunction(V,H,Q){if(!this.tsMatchLeftRelational())return;let F=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let L=this.tsTryParseAndCatch(()=>{let S=this.startNodeAt(V,H);return S.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(S),S.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(B.arrow),S});if(this.maybeInArrowParameters=F,!L)return;return super.parseArrowExpression(L,null,!0,Q)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==B.relational)return;return this.tsParseTypeArguments()}tsInNoContext(V){let H=this.context;this.context=[H[0]];try{return V()}finally{this.context=H}}tsTryParseTypeAnnotation(){return this.match(B.colon)?this.tsParseTypeAnnotation():void 0}isUnparsedContextual(V,H){let Q=V+H.length;if(this.input.slice(V,Q)===H){let F=this.input.charCodeAt(Q);return!(W(F)||(F&64512)===55296)}return!1}isAbstractConstructorSignature(){return this.ts_isContextual(D.abstract)&&this.lookahead().type===B._new}nextTokenStartSince(V){return t8.lastIndex=V,t8.test(this.input)?t8.lastIndex:V}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}compareLookaheadState(V,H){for(let Q of Object.keys(V))if(V[Q]!==H[Q])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(V){this.pos=V.pos,this.value=V.value,this.endLoc=V.endLoc,this.lastTokEnd=V.lastTokEnd,this.lastTokStart=V.lastTokStart,this.lastTokStartLoc=V.lastTokStartLoc,this.type=V.type,this.start=V.start,this.end=V.end,this.context=V.context,this.startLoc=V.startLoc,this.lastTokEndLoc=V.lastTokEndLoc,this.curLine=V.curLine,this.lineStart=V.lineStart,this.curPosition=V.curPosition,this.containsEsc=V.containsEsc}tsLookAhead(V){let H=this.getCurLookaheadState(),Q=V();return this.setLookaheadState(H),Q}lookahead(V){let H=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,V!==void 0)for(let F=0;F<V;F++)this.nextToken();else this.nextToken();this.isLookahead=!1;let Q=this.getCurLookaheadState();return this.setLookaheadState(H),Q}readWord(){let V=this.readWord1(),H=B.name;if(this.keywords.test(V))H=G[V];else if(new RegExp(w).test(V))H=D[V];return this.finishToken(H,V)}skipBlockComment(){let V;if(!this.isLookahead)V=this.options.onComment&&this.curPosition();let H=this.pos,Q=this.input.indexOf("*/",this.pos+=2);if(Q===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=Q+2,this.options.locations)for(let F,L=H;(F=H8(this.input,L,this.pos))>-1;)++this.curLine,L=this.lineStart=F;if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!0,this.input.slice(H+2,Q),H,this.pos,V,this.curPosition())}skipLineComment(V){let H=this.pos,Q;if(!this.isLookahead)Q=this.options.onComment&&this.curPosition();let F=this.input.charCodeAt(this.pos+=V);while(this.pos<this.input.length&&!Y(F))F=this.input.charCodeAt(++this.pos);if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!1,this.input.slice(H+V,this.pos),H,this.pos,Q,this.curPosition())}finishToken(V,H){if(this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();let Q=this.type;if(this.type=V,this.value=H,!this.isLookahead)this.updateContext(Q)}resetStartLocation(V,H,Q){if(V.start=H,V.loc.start=Q,this.options.ranges)V.range[0]=H}isLineTerminator(){return this.eat(B.semi)||super.canInsertSemicolon()}hasFollowingLineBreak(){return B0.lastIndex=this.end,B0.test(this.input)}addExtra(V,H,Q,F=!0){if(!V)return;let L=V.extra=V.extra||{};if(F)L[H]=Q;else Object.defineProperty(L,H,{enumerable:F,value:Q})}isLiteralPropertyName(){return P(this.type)}hasPrecedingLineBreak(){return z.test(this.input.slice(this.lastTokEnd,this.start))}createIdentifier(V,H){return V.name=H,this.finishNode(V,"Identifier")}resetStartLocationFromNode(V,H){this.resetStartLocation(V,H.start,H.loc.start)}isThisParam(V){return V.type==="Identifier"&&V.name==="this"}isLookaheadContextual(V){let H=this.nextTokenStart();return this.isUnparsedContextual(H,V)}ts_type_isContextual(V,H){return V===H&&!this.containsEsc}ts_isContextual(V){return this.type===V&&!this.containsEsc}ts_isContextualWithState(V,H){return V.type===H&&!V.containsEsc}isContextualWithState(V,H){return H.type===B.name&&H.value===V&&!H.containsEsc}tsIsStartOfMappedType(){if(this.next(),this.eat(B.plusMin))return this.ts_isContextual(D.readonly);if(this.ts_isContextual(D.readonly))this.next();if(!this.match(B.bracketL))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(B._in)}tsInDisallowConditionalTypesContext(V){let H=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return V()}finally{this.inDisallowConditionalTypesContext=H}}tsTryParseType(){return this.tsEatThenParseType(B.colon)}match(V){return this.type===V}matchJsx(V){return this.type===$.tokTypes[V]}ts_eatWithState(V,H,Q){let F=Q.type;if(V===F){for(let L=0;L<H;L++)this.next();return!0}else return!1}ts_eatContextualWithState(V,H,Q){if(w.test(V)){if(this.ts_isContextualWithState(Q,D[V])){for(let F=0;F<H;F++)this.next();return!0}return!1}else{if(!this.isContextualWithState(V,Q))return!1;for(let F=0;F<H;F++)this.next();return!0}}canHaveLeadingDecorator(){return this.match(B._class)||this.isAbstractClass()}eatContextual(V){if(w.test(V)){if(this.ts_isContextual(D[V]))return this.next(),!0;return!1}else return super.eatContextual(V)}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookaheadCharCode()===40}tsParseExternalModuleReference(){let V=this.startNode();if(this.expectContextual("require"),this.expect(B.parenL),!this.match(B.string))this.unexpected();return V.expression=this.parseExprAtom(),this.expect(B.parenR),this.finishNode(V,"TSExternalModuleReference")}tsParseEntityName(V=!0){let H=this.parseIdent(V);while(this.eat(B.dot)){let Q=this.startNodeAtNode(H);Q.left=H,Q.right=this.parseIdent(V),H=this.finishNode(Q,"TSQualifiedName")}return H}tsParseEnumMember(){let V=this.startNode();if(V.id=this.match(B.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(B.eq))V.initializer=this.parseMaybeAssign();return this.finishNode(V,"TSEnumMember")}tsParseEnumDeclaration(V,H={}){if(H.const)V.const=!0;if(H.declare)V.declare=!0;return this.expectContextual("enum"),V.id=this.parseIdent(),this.checkLValSimple(V.id),this.expect(B.braceL),V.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(B.braceR),this.finishNode(V,"TSEnumDeclaration")}tsParseModuleBlock(){let V=this.startNode();this.enterScope(r9),this.expect(B.braceL),V.body=[];while(this.type!==B.braceR){let H=this.parseStatement(null,!0);V.body.push(H)}return this.next(),super.exitScope(),this.finishNode(V,"TSModuleBlock")}tsParseAmbientExternalModuleDeclaration(V){if(this.ts_isContextual(D.global))V.global=!0,V.id=this.parseIdent();else if(this.match(B.string))V.id=this.parseLiteral(this.value);else this.unexpected();if(this.match(B.braceL))this.enterScope(Y8),V.body=this.tsParseModuleBlock(),super.exitScope();else super.semicolon();return this.finishNode(V,"TSModuleDeclaration")}tsTryParseDeclare(V){if(this.isLineTerminator())return;let H=this.type,Q;if(this.isContextual("let"))H=B._var,Q="let";return this.tsInAmbientContext(()=>{if(H===B._function)return V.declare=!0,this.parseFunctionStatement(V,!1,!0);if(H===B._class)return V.declare=!0,this.parseClass(V,!0);if(H===D.enum)return this.tsParseEnumDeclaration(V,{declare:!0});if(H===D.global)return this.tsParseAmbientExternalModuleDeclaration(V);if(H===B._const||H===B._var){if(!this.match(B._const)||!this.isLookaheadContextual("enum"))return V.declare=!0,this.parseVarStatement(V,Q||this.value,!0);return this.expect(B._const),this.tsParseEnumDeclaration(V,{const:!0,declare:!0})}if(H===D.interface){let F=this.tsParseInterfaceDeclaration(V,{declare:!0});if(F)return F}if(f(H))return this.tsParseDeclaration(V,this.value,!0)})}tsIsListTerminator(V){switch(V){case"EnumMembers":case"TypeMembers":return this.match(B.braceR);case"HeritageClauseElement":return this.match(B.braceL);case"TupleElementTypes":return this.match(B.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}}tsParseDelimitedListWorker(V,H,Q,F){let L=[],S=-1;for(;;){if(this.tsIsListTerminator(V))break;S=-1;let K=H();if(K==null)return;if(L.push(K),this.eat(B.comma)){S=this.lastTokStart;continue}if(this.tsIsListTerminator(V))break;if(Q)this.expect(B.comma);return}if(F)F.value=S;return L}tsParseDelimitedList(V,H,Q){return K2(this.tsParseDelimitedListWorker(V,H,!0,Q))}tsParseBracketedList(V,H,Q,F,L){if(!F)if(Q)this.expect(B.bracketL);else this.expect(B.relational);let S=this.tsParseDelimitedList(V,H,L);if(Q)this.expect(B.bracketR);else this.expect(B.relational);return S}tsParseTypeParameterName(){return this.parseIdent().name}tsEatThenParseType(V){return!this.match(V)?void 0:this.tsNextThenParseType()}tsExpectThenParseType(V){return this.tsDoThenParseType(()=>this.expect(V))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(V){return this.tsInType(()=>{return V(),this.tsParseType()})}tsSkipParameterStart(){if(f(this.type)||this.match(B._this))return this.next(),!0;if(this.match(B.braceL))try{return this.parseObj(!0),!0}catch{return!1}if(this.match(B.bracketL)){this.next();try{return this.parseBindingList(B.bracketR,!0,!0),!0}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(B.parenR)||this.match(B.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(B.colon)||this.match(B.comma)||this.match(B.question)||this.match(B.eq))return!0;if(this.match(B.parenR)){if(this.next(),this.match(B.arrow))return!0}}return!1}tsIsStartOfFunctionType(){if(this.tsMatchLeftRelational())return!0;return this.match(B.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsInAllowConditionalTypesContext(V){let H=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return V()}finally{this.inDisallowConditionalTypesContext=H}}tsParseBindingListForSignature(){return super.parseBindingList(B.parenR,!0,!0).map((V)=>{if(V.type!=="Identifier"&&V.type!=="RestElement"&&V.type!=="ObjectPattern"&&V.type!=="ArrayPattern")this.raise(V.start,M.UnsupportedSignatureParameterKind({type:V.type}));return V})}tsParseTypePredicateAsserts(){if(this.type!==D.asserts)return!1;let V=this.containsEsc;if(this.next(),!f(this.type)&&!this.match(B._this))return!1;if(V)this.raise(this.lastTokStart,"Escape sequence in keyword asserts");return!0}tsParseThisTypeNode(){let V=this.startNode();return this.next(),this.finishNode(V,"TSThisType")}tsParseTypeAnnotation(V=!0,H=this.startNode()){return this.tsInType(()=>{if(V)this.expect(B.colon);H.typeAnnotation=this.tsParseType()}),this.finishNode(H,"TSTypeAnnotation")}tsParseThisTypePredicate(V){this.next();let H=this.startNodeAtNode(V);return H.parameterName=V,H.typeAnnotation=this.tsParseTypeAnnotation(!1),H.asserts=!1,this.finishNode(H,"TSTypePredicate")}tsParseThisTypeOrThisTypePredicate(){let V=this.tsParseThisTypeNode();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(V);else return V}tsParseTypePredicatePrefix(){let V=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),V}tsParseTypeOrTypePredicateAnnotation(V){return this.tsInType(()=>{let H=this.startNode();this.expect(V);let Q=this.startNode(),F=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(F&&this.match(B._this)){let K=this.tsParseThisTypeOrThisTypePredicate();if(K.type==="TSThisType")Q.parameterName=K,Q.asserts=!0,Q.typeAnnotation=null,K=this.finishNode(Q,"TSTypePredicate");else this.resetStartLocationFromNode(K,Q),K.asserts=!0;return H.typeAnnotation=K,this.finishNode(H,"TSTypeAnnotation")}let L=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!L){if(!F)return this.tsParseTypeAnnotation(!1,H);return Q.parameterName=this.parseIdent(),Q.asserts=F,Q.typeAnnotation=null,H.typeAnnotation=this.finishNode(Q,"TSTypePredicate"),this.finishNode(H,"TSTypeAnnotation")}let S=this.tsParseTypeAnnotation(!1);return Q.parameterName=L,Q.typeAnnotation=S,Q.asserts=F,H.typeAnnotation=this.finishNode(Q,"TSTypePredicate"),this.finishNode(H,"TSTypeAnnotation")})}tsFillSignature(V,H){let Q=V===B.arrow,F="parameters",L="typeAnnotation";if(H.typeParameters=this.tsTryParseTypeParameters(),this.expect(B.parenL),H.parameters=this.tsParseBindingListForSignature(),Q)H.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(V);else if(this.match(V))H.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(V)}tsTryNextParseConstantContext(){if(this.lookahead().type!==B._const)return null;this.next();let V=this.tsParseTypeReference();if(V.typeParameters||V.typeArguments)this.raise(V.typeName.start,M.CannotFindName({name:"const"}));return V}tsParseFunctionOrConstructorType(V,H){let Q=this.startNode();if(V==="TSConstructorType"){if(Q.abstract=!!H,H)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(B.arrow,Q)),this.finishNode(Q,V)}tsParseUnionOrIntersectionType(V,H,Q){let F=this.startNode(),L=this.eat(Q),S=[];do S.push(H());while(this.eat(Q));if(S.length===1&&!L)return S[0];return F.types=S,this.finishNode(F,V)}tsCheckTypeAnnotationForReadOnly(V){switch(V.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(V.start,M.UnexpectedReadonly)}}tsParseTypeOperator(){let V=this.startNode(),H=this.value;if(this.next(),V.operator=H,V.typeAnnotation=this.tsParseTypeOperatorOrHigher(),H==="readonly")this.tsCheckTypeAnnotationForReadOnly(V);return this.finishNode(V,"TSTypeOperator")}tsParseConstraintForInferType(){if(this.eat(B._extends)){let V=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.inDisallowConditionalTypesContext||!this.match(B.question))return V}}tsParseInferType(){let V=this.startNode();this.expectContextual("infer");let H=this.startNode();return H.name=this.tsParseTypeParameterName(),H.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),V.typeParameter=this.finishNode(H,"TSTypeParameter"),this.finishNode(V,"TSInferType")}tsParseLiteralTypeNode(){let V=this.startNode();return V.literal=(()=>{switch(this.type){case B.num:case B.string:case B._true:case B._false:return this.parseExprAtom();default:this.unexpected()}})(),this.finishNode(V,"TSLiteralType")}tsParseImportType(){let V=this.startNode();if(this.expect(B._import),this.expect(B.parenL),!this.match(B.string))this.raise(this.start,M.UnsupportedImportTypeArgument);if(V.argument=this.parseExprAtom(),this.expect(B.parenR),this.eat(B.dot))V.qualifier=this.tsParseEntityName();if(this.tsMatchLeftRelational())V.typeArguments=this.tsParseTypeArguments();return this.finishNode(V,"TSImportType")}tsParseTypeQuery(){let V=this.startNode();if(this.expect(B._typeof),this.match(B._import))V.exprName=this.tsParseImportType();else V.exprName=this.tsParseEntityName();if(!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())V.typeArguments=this.tsParseTypeArguments();return this.finishNode(V,"TSTypeQuery")}tsParseMappedTypeParameter(){let V=this.startNode();return V.name=this.tsParseTypeParameterName(),V.constraint=this.tsExpectThenParseType(B._in),this.finishNode(V,"TSTypeParameter")}tsParseMappedType(){let V=this.startNode();if(this.expect(B.braceL),this.match(B.plusMin))V.readonly=this.value,this.next(),this.expectContextual("readonly");else if(this.eatContextual("readonly"))V.readonly=!0;if(this.expect(B.bracketL),V.typeParameter=this.tsParseMappedTypeParameter(),V.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(B.bracketR),this.match(B.plusMin))V.optional=this.value,this.next(),this.expect(B.question);else if(this.eat(B.question))V.optional=!0;return V.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(B.braceR),this.finishNode(V,"TSMappedType")}tsParseTypeLiteral(){let V=this.startNode();return V.members=this.tsParseObjectTypeMembers(),this.finishNode(V,"TSTypeLiteral")}tsParseTupleElementType(){let V=this.startLoc,H=this.start,Q=this.eat(B.ellipsis),F=this.tsParseType(),L=this.eat(B.question);if(this.eat(B.colon)){let K=this.startNodeAtNode(F);if(K.optional=L,F.type==="TSTypeReference"&&!F.typeArguments&&F.typeName.type==="Identifier")K.label=F.typeName;else this.raise(F.start,M.InvalidTupleMemberLabel),K.label=F;K.elementType=this.tsParseType(),F=this.finishNode(K,"TSNamedTupleMember")}else if(L){let K=this.startNodeAtNode(F);K.typeAnnotation=F,F=this.finishNode(K,"TSOptionalType")}if(Q){let K=this.startNodeAt(H,V);K.typeAnnotation=F,F=this.finishNode(K,"TSRestType")}return F}tsParseTupleType(){let V=this.startNode();V.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let H=!1;return V.elementTypes.forEach((Q)=>{let{type:F}=Q;if(H&&F!=="TSRestType"&&F!=="TSOptionalType"&&!(F==="TSNamedTupleMember"&&Q.optional))this.raise(Q.start,M.OptionalTypeBeforeRequired);if(H||=F==="TSNamedTupleMember"&&Q.optional||F==="TSOptionalType",F==="TSRestType")Q=Q.typeAnnotation}),this.finishNode(V,"TSTupleType")}tsParseTemplateLiteralType(){let V=this.startNode();return V.literal=this.parseTemplate({isTagged:!1}),this.finishNode(V,"TSLiteralType")}tsParseTypeReference(){let V=this.startNode();if(V.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())V.typeArguments=this.tsParseTypeArguments();return this.finishNode(V,"TSTypeReference")}tsMatchLeftRelational(){return this.match(B.relational)&&this.value==="<"}tsMatchRightRelational(){return this.match(B.relational)&&this.value===">"}tsParseParenthesizedType(){let V=this.startNode();return this.expect(B.parenL),V.typeAnnotation=this.tsParseType(),this.expect(B.parenR),this.finishNode(V,"TSParenthesizedType")}tsParseNonArrayType(){switch(this.type){case B.string:case B.num:case B._true:case B._false:return this.tsParseLiteralTypeNode();case B.plusMin:if(this.value==="-"){let V=this.startNode();if(this.lookahead().type!==B.num)this.unexpected();return V.literal=this.parseMaybeUnary(),this.finishNode(V,"TSLiteralType")}break;case B._this:return this.tsParseThisTypeOrThisTypePredicate();case B._typeof:return this.tsParseTypeQuery();case B._import:return this.tsParseImportType();case B.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case B.bracketL:return this.tsParseTupleType();case B.parenL:return this.tsParseParenthesizedType();case B.backQuote:case B.dollarBraceL:return this.tsParseTemplateLiteralType();default:{let{type:V}=this;if(f(V)||V===B._void||V===B._null){let H=V===B._void?"TSVoidKeyword":V===B._null?"TSNullKeyword":W2(this.value);if(H!==void 0&&this.lookaheadCharCode()!==46){let Q=this.startNode();return this.next(),this.finishNode(Q,H)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let V=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(B.bracketL))if(this.match(B.bracketR)){let H=this.startNodeAtNode(V);H.elementType=V,this.expect(B.bracketR),V=this.finishNode(H,"TSArrayType")}else{let H=this.startNodeAtNode(V);H.objectType=V,H.indexType=this.tsParseType(),this.expect(B.bracketR),V=this.finishNode(H,"TSIndexedAccessType")}return V}tsParseTypeOperatorOrHigher(){return E(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),B.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),B.bitwiseOR)}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(B._new))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseType(){J0(this.inType);let V=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(B._extends))return V;let H=this.startNodeAtNode(V);return H.checkType=V,H.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(B.question),H.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(B.colon),H.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(H,"TSConditionalType")}tsIsUnambiguouslyIndexSignature(){if(this.next(),f(this.type))return this.next(),this.match(B.colon);return!1}tsInType(V){let H=this.inType;this.inType=!0;try{return V()}finally{this.inType=H}}tsTryParseIndexSignature(V){if(!(this.match(B.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(B.bracketL);let H=this.parseIdent();H.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(H),this.expect(B.bracketR),V.parameters=[H];let Q=this.tsTryParseTypeAnnotation();if(Q)V.typeAnnotation=Q;return this.tsParseTypeMemberSemicolon(),this.finishNode(V,"TSIndexSignature")}tsParseNoneModifiers(V){this.tsParseModifiers({modified:V,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:M.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(V=this.tsParseNoneModifiers.bind(this)){let H=this.startNode();return V(H),H.name=this.tsParseTypeParameterName(),H.constraint=this.tsEatThenParseType(B._extends),H.default=this.tsEatThenParseType(B.eq),this.finishNode(H,"TSTypeParameter")}tsParseTypeParameters(V){let H=this.startNode();if(this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart"))this.next();else this.unexpected();let Q={value:-1};if(H.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,V),!1,!0,Q),H.params.length===0)this.raise(this.start,M.EmptyTypeParameters);if(Q.value!==-1)this.addExtra(H,"trailingComma",Q.value);return this.finishNode(H,"TSTypeParameterDeclaration")}tsTryParseTypeParameters(V){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(V)}tsTryParse(V){let H=this.getCurLookaheadState(),Q=V();if(Q!==void 0&&Q!==!1)return Q;else{this.setLookaheadState(H);return}}tsTokenCanFollowModifier(){return(this.match(B.bracketL)||this.match(B.braceL)||this.match(B.star)||this.match(B.ellipsis)||this.match(B.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(!0),this.tsTokenCanFollowModifier()}tsParseModifier(V,H){let Q=this.value;if(V.indexOf(Q)!==-1&&!this.containsEsc){if(H&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return Q}return}tsParseModifiersByMap({modified:V,map:H}){for(let Q of Object.keys(H))V[Q]=H[Q]}tsParseModifiers({modified:V,allowedModifiers:H,disallowedModifiers:Q,stopOnStartOfClassStaticBlock:F,errorTemplate:L=M.InvalidModifierOnTypeMember}){let S={},K=(j,X,I,v)=>{if(X===I&&V[v])this.raise(j.column,M.InvalidModifiersOrder({orderedModifiers:[I,v]}))},A=(j,X,I,v)=>{if(V[I]&&X===v||V[v]&&X===I)this.raise(j.column,M.IncompatibleModifiers({modifiers:[I,v]}))};for(;;){let j=this.startLoc,X=this.tsParseModifier(H.concat(Q??[]),F);if(!X)break;if(Q0(X))if(V.accessibility)this.raise(this.start,M.DuplicateAccessibilityModifier());else K(j,X,X,"override"),K(j,X,X,"static"),K(j,X,X,"readonly"),K(j,X,X,"accessor"),S.accessibility=X,V.accessibility=X;else if(G2(X))if(V[X])this.raise(this.start,M.DuplicateModifier({modifier:X}));else K(j,X,"in","out"),S[X]=X,V[X]=!0;else if(Z2(X))if(V[X])this.raise(this.start,M.DuplicateModifier({modifier:X}));else A(j,X,"accessor","readonly"),A(j,X,"accessor","static"),A(j,X,"accessor","override"),S[X]=X,V[X]=!0;else if(X==="const")if(V[X])this.raise(this.start,M.DuplicateModifier({modifier:X}));else S[X]=X,V[X]=!0;else if(Object.hasOwnProperty.call(V,X))this.raise(this.start,M.DuplicateModifier({modifier:X}));else K(j,X,"static","readonly"),K(j,X,"static","override"),K(j,X,"override","readonly"),K(j,X,"abstract","override"),A(j,X,"declare","override"),A(j,X,"static","abstract"),S[X]=X,V[X]=!0;if(Q?.includes(X))this.raise(this.start,L)}return S}tsParseInOutModifiers(V){this.tsParseModifiers({modified:V,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:M.InvalidModifierOnTypeParameter})}parseMaybeUnary(V,H,Q,F){if(!q?.jsx&&this.tsMatchLeftRelational())return this.tsParseTypeAssertion();else return super.parseMaybeUnary(V,H,Q,F)}tsParseTypeAssertion(){if(R)this.raise(this.start,M.ReservedTypeAssertion);let V=this.tryParse(()=>{let H=this.startNode(),Q=this.tsTryNextParseConstantContext();return H.typeAnnotation=Q||this.tsNextThenParseType(),this.expect(B.relational),H.expression=this.parseMaybeUnary(),this.finishNode(H,"TSTypeAssertion")});if(V.error)return this.tsParseTypeParameters(this.tsParseConstModifier);else return V.node}tsParseTypeArguments(){let V=this.startNode();if(V.params=this.tsInType(()=>this.tsInNoContext(()=>{return this.expect(B.relational),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),V.params.length===0)this.raise(this.start,M.EmptyTypeArguments);return this.exprAllowed=!1,this.expect(B.relational),this.finishNode(V,"TSTypeParameterInstantiation")}tsParseHeritageClause(V){let H=this.start,Q=this.tsParseDelimitedList("HeritageClauseElement",()=>{let F=this.startNode();if(F.expression=this.tsParseEntityName(),this.tsMatchLeftRelational())F.typeParameters=this.tsParseTypeArguments();return this.finishNode(F,"TSExpressionWithTypeArguments")});if(!Q.length)this.raise(H,M.EmptyHeritageClauseType({token:V}));return Q}tsParseTypeMemberSemicolon(){if(!this.eat(B.comma)&&!this.isLineTerminator())this.expect(B.semi)}tsTryParseAndCatch(V){let H=this.tryParse((Q)=>V()||Q());if(H.aborted||!H.node)return;if(H.error)this.setLookaheadState(H.failState);return H.node}tsParseSignatureMember(V,H){return this.tsFillSignature(B.colon,H),this.tsParseTypeMemberSemicolon(),this.finishNode(H,V)}tsParsePropertyOrMethodSignature(V,H){if(this.eat(B.question))V.optional=!0;let Q=V;if(this.match(B.parenL)||this.tsMatchLeftRelational()){if(H)this.raise(V.start,M.ReadonlyForMethodSignature);let F=Q;if(F.kind&&this.tsMatchLeftRelational())this.raise(this.start,M.AccesorCannotHaveTypeParameters);this.tsFillSignature(B.colon,F),this.tsParseTypeMemberSemicolon();let L="parameters",S="typeAnnotation";if(F.kind==="get"){if(F[L].length>0){if(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(F[L][0]))this.raise(this.start,M.AccesorCannotDeclareThisParameter)}}else if(F.kind==="set"){if(F[L].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{let K=F[L][0];if(this.isThisParam(K))this.raise(this.start,M.AccesorCannotDeclareThisParameter);if(K.type==="Identifier"&&K.optional)this.raise(this.start,M.SetAccesorCannotHaveOptionalParameter);if(K.type==="RestElement")this.raise(this.start,M.SetAccesorCannotHaveRestParameter)}if(F[S])this.raise(F[S].start,M.SetAccesorCannotHaveReturnType)}else F.kind="method";return this.finishNode(F,"TSMethodSignature")}else{let F=Q;if(H)F.readonly=!0;let L=this.tsTryParseTypeAnnotation();if(L)F.typeAnnotation=L;return this.tsParseTypeMemberSemicolon(),this.finishNode(F,"TSPropertySignature")}}tsParseTypeMember(){let V=this.startNode();if(this.match(B.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",V);if(this.match(B._new)){let Q=this.startNode();if(this.next(),this.match(B.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSConstructSignatureDeclaration",V);else return V.key=this.createIdentifier(Q,"new"),this.tsParsePropertyOrMethodSignature(V,!1)}this.tsParseModifiers({modified:V,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]});let H=this.tsTryParseIndexSignature(V);if(H)return H;if(this.parsePropertyName(V),!V.computed&&V.key.type==="Identifier"&&(V.key.name==="get"||V.key.name==="set")&&this.tsTokenCanFollowModifier())V.kind=V.key.name,this.parsePropertyName(V);return this.tsParsePropertyOrMethodSignature(V,!!V.readonly)}tsParseList(V,H){let Q=[];while(!this.tsIsListTerminator(V))Q.push(H());return Q}tsParseObjectTypeMembers(){this.expect(B.braceL);let V=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(B.braceR),V}tsParseInterfaceDeclaration(V,H={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual("interface"),H.declare)V.declare=!0;if(f(this.type))V.id=this.parseIdent(),this.checkLValSimple(V.id,k.BIND_TS_INTERFACE);else V.id=null,this.raise(this.start,M.MissingInterfaceName);if(V.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(B._extends))V.extends=this.tsParseHeritageClause("extends");let Q=this.startNode();return Q.body=this.tsParseInterfaceBody(),V.body=this.finishNode(Q,"TSInterfaceBody"),this.finishNode(V,"TSInterfaceDeclaration")}tsParseInterfaceBody(){this.expect(B.braceL);let V=this.inType;this.inType=!0;let H=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.inType=V,this.expect(B.braceR),H}tsParseAbstractDeclaration(V){if(this.match(B._class))return V.abstract=!0,this.parseClass(V,!0);else if(this.ts_isContextual(D.interface)){if(!this.hasFollowingLineBreak())return V.abstract=!0,this.tsParseInterfaceDeclaration(V)}else this.unexpected(V.start)}tsIsDeclarationStart(){return s(this.type)}tsParseExpressionStatement(V,H){switch(H.name){case"declare":{let Q=this.tsTryParseDeclare(V);if(Q)return Q.declare=!0,Q;break}case"global":if(this.match(B.braceL)){this.enterScope(Y8);let Q=V;return Q.global=!0,Q.id=H,Q.body=this.tsParseModuleBlock(),super.exitScope(),this.finishNode(Q,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(V,H.name,!1)}}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsIsExportDefaultSpecifier(){let{type:V}=this,H=this.isAsyncFunction(),Q=this.isLet();if(f(V)){if(H&&!this.containsEsc||Q)return!1;if((V===D.type||V===D.interface)&&!this.containsEsc){let S=this.lookahead();if(f(S.type)&&!this.isContextualWithState("from",S)||S.type===B.braceL)return!1}}else if(!this.match(B._default))return!1;let F=this.nextTokenStart(),L=this.isUnparsedContextual(F,"from");if(this.input.charCodeAt(F)===44||f(this.type)&&L)return!0;if(this.match(B._default)&&L){let S=this.input.charCodeAt(this.nextTokenStartSince(F+4));return S===34||S===39}return!1}tsInAmbientContext(V){let H=this.isAmbientContext;this.isAmbientContext=!0;try{return V()}finally{this.isAmbientContext=H}}tsCheckLineTerminator(V){if(V){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsParseModuleOrNamespaceDeclaration(V,H=!1){if(V.id=this.parseIdent(),!H)this.checkLValSimple(V.id,k.BIND_TS_NAMESPACE);if(this.eat(B.dot)){let Q=this.startNode();this.tsParseModuleOrNamespaceDeclaration(Q,!0),V.body=Q}else this.enterScope(Y8),V.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(V,"TSModuleDeclaration")}checkLValSimple(V,H=k.BIND_NONE,Q){if(V.type==="TSNonNullExpression"||V.type==="TSAsExpression")V=V.expression;return super.checkLValSimple(V,H,Q)}tsParseTypeAliasDeclaration(V){return V.id=this.parseIdent(),this.checkLValSimple(V.id,k.BIND_TS_TYPE),V.typeAnnotation=this.tsInType(()=>{if(V.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(B.eq),this.ts_isContextual(D.interface)&&this.lookahead().type!==B.dot){let H=this.startNode();return this.next(),this.finishNode(H,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(V,"TSTypeAliasDeclaration")}tsParseDeclaration(V,H,Q){switch(H){case"abstract":if(this.tsCheckLineTerminator(Q)&&(this.match(B._class)||f(this.type)))return this.tsParseAbstractDeclaration(V);break;case"module":if(this.tsCheckLineTerminator(Q)){if(this.match(B.string))return this.tsParseAmbientExternalModuleDeclaration(V);else if(f(this.type))return this.tsParseModuleOrNamespaceDeclaration(V)}break;case"namespace":if(this.tsCheckLineTerminator(Q)&&f(this.type))return this.tsParseModuleOrNamespaceDeclaration(V);break;case"type":if(this.tsCheckLineTerminator(Q)&&f(this.type))return this.tsParseTypeAliasDeclaration(V);break}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.value,!0)}tsParseImportEqualsDeclaration(V,H){V.isExport=H||!1,V.id=this.parseIdent(),this.checkLValSimple(V.id,k.BIND_LEXICAL),super.expect(B.eq);let Q=this.tsParseModuleReference();if(V.importKind==="type"&&Q.type!=="TSExternalModuleReference")this.raise(Q.start,M.ImportAliasHasImportType);return V.moduleReference=Q,super.semicolon(),this.finishNode(V,"TSImportEqualsDeclaration")}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;let{type:V}=this;if(f(V)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((V===D.type||V===D.interface)&&!this.containsEsc){let F=this.lookahead();if(f(F.type)&&!this.isContextualWithState("from",F)||F.type===B.braceL)return!1}}else if(!this.match(B._default))return!1;let H=this.nextTokenStart(),Q=this.isUnparsedContextual(H,"from");if(this.input.charCodeAt(H)===44||f(this.type)&&Q)return!0;if(this.match(B._default)&&Q){let F=this.input.charCodeAt(this.nextTokenStartSince(H+4));return F===34||F===39}return!1}parseTemplate({isTagged:V=!1}={}){let H=this.startNode();this.next(),H.expressions=[];let Q=this.parseTemplateElement({isTagged:V});H.quasis=[Q];while(!Q.tail){if(this.type===B.eof)this.raise(this.pos,"Unterminated template literal");this.expect(B.dollarBraceL),H.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(B.braceR),H.quasis.push(Q=this.parseTemplateElement({isTagged:V}))}return this.next(),this.finishNode(H,"TemplateLiteral")}parseFunction(V,H,Q,F,L){if(this.initFunction(V),this.ecmaVersion>=9||this.ecmaVersion>=6&&!F){if(this.type===B.star&&H&R0)this.unexpected();V.generator=this.eat(B.star)}if(this.ecmaVersion>=8)V.async=!!F;if(H&O8)V.id=H&L2&&this.type!==B.name?null:this.parseIdent();let S=this.yieldPos,K=this.awaitPos,A=this.awaitIdentPos,j=this.maybeInArrowParameters;if(this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(n8(V.async,V.generator)),!(H&O8))V.id=this.type===B.name?this.parseIdent():null;this.parseFunctionParams(V);let X=H&O8;if(this.parseFunctionBody(V,Q,!1,L,{isFunctionDeclaration:X}),this.yieldPos=S,this.awaitPos=K,this.awaitIdentPos=A,H&O8&&V.id&&!(H&R0))if(V.body)this.checkLValSimple(V.id,this.strict||V.generator||V.async?this.treatFunctionsAsVar?k.BIND_VAR:k.BIND_LEXICAL:k.BIND_FUNCTION);else this.checkLValSimple(V.id,k.BIND_NONE);return this.maybeInArrowParameters=j,this.finishNode(V,X?"FunctionDeclaration":"FunctionExpression")}parseFunctionBody(V,H=!1,Q=!1,F=!1,L){if(this.match(B.colon))V.returnType=this.tsParseTypeOrTypePredicateAnnotation(B.colon);let S=L?.isFunctionDeclaration?"TSDeclareFunction":L?.isClassMethod?"TSDeclareMethod":void 0;if(S&&!this.match(B.braceL)&&this.isLineTerminator())return this.exitScope(),this.finishNode(V,S);if(S==="TSDeclareFunction"&&this.isAmbientContext){if(this.raise(V.start,M.DeclareFunctionHasImplementation),V.declare)return super.parseFunctionBody(V,H,Q,!1),this.finishNode(V,S)}return super.parseFunctionBody(V,H,Q,F),V}parseNew(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");let V=this.startNode(),H=this.parseIdent(!0);if(this.ecmaVersion>=6&&this.eat(B.dot)){V.meta=H;let K=this.containsEsc;if(V.property=this.parseIdent(!0),V.property.name!=="target")this.raiseRecoverable(V.property.start,"The only valid meta property for new is 'new.target'");if(K)this.raiseRecoverable(V.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(V.start,"'new.target' can only be used in functions and class static block");return this.finishNode(V,"MetaProperty")}let Q=this.start,F=this.startLoc,L=this.type===B._import;if(V.callee=this.parseSubscripts(this.parseExprAtom(),Q,F,!0,!1),L&&V.callee.type==="ImportExpression")this.raise(Q,"Cannot use new with import()");let{callee:S}=V;if(S.type==="TSInstantiationExpression"&&!S.extra?.parenthesized)V.typeArguments=S.typeArguments,V.callee=S.expression;if(this.eat(B.parenL))V.arguments=this.parseExprList(B.parenR,this.ecmaVersion>=8,!1);else V.arguments=[];return this.finishNode(V,"NewExpression")}parseExprOp(V,H,Q,F,L){if(B._in.binop>F&&!this.hasPrecedingLineBreak()){let S;if(this.isContextual("as"))S="TSAsExpression";if(this.isContextual("satisfies"))S="TSSatisfiesExpression";if(S){let K=this.startNodeAt(H,Q);K.expression=V;let A=this.tsTryNextParseConstantContext();if(A)K.typeAnnotation=A;else K.typeAnnotation=this.tsNextThenParseType();return this.finishNode(K,S),this.reScan_lt_gt(),this.parseExprOp(K,H,Q,F,L)}}return super.parseExprOp(V,H,Q,F,L)}parseImportSpecifiers(){let V=[],H=!0;if($.tokenIsIdentifier(this.type)){if(V.push(this.parseImportDefaultSpecifier()),!this.eat(B.comma))return V}if(this.type===B.star)return V.push(this.parseImportNamespaceSpecifier()),V;this.expect(B.braceL);while(!this.eat(B.braceR)){if(!H){if(this.expect(B.comma),this.afterTrailingComma(B.braceR))break}else H=!1;V.push(this.parseImportSpecifier())}return V}parseImport(V){let H=this.lookahead();if(V.importKind="value",this.importOrExportOuterKind="value",f(H.type)||this.match(B.star)||this.match(B.braceL)){let Q=this.lookahead(2);if(Q.type!==B.comma&&!this.isContextualWithState("from",Q)&&Q.type!==B.eq&&this.ts_eatContextualWithState("type",1,H))this.importOrExportOuterKind="type",V.importKind="type",H=this.lookahead(),Q=this.lookahead(2);if(f(H.type)&&Q.type===B.eq){this.next();let F=this.tsParseImportEqualsDeclaration(V);return this.importOrExportOuterKind="value",F}}if(this.next(),this.type===B.string)V.specifiers=[],V.source=this.parseExprAtom();else V.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),V.source=this.type===B.string?this.parseExprAtom():this.unexpected();if(this.parseMaybeImportAttributes(V),this.semicolon(),this.finishNode(V,"ImportDeclaration"),this.importOrExportOuterKind="value",V.importKind==="type"&&V.specifiers.length>1&&V.specifiers[0].type==="ImportDefaultSpecifier")this.raise(V.start,M.TypeImportCannotSpecifyDefaultAndNamed);return V}parseExportDefaultDeclaration(){if(this.isAbstractClass()){let V=this.startNode();return this.next(),V.abstract=!0,this.parseClass(V,!0)}if(this.match(D.interface)){let V=this.tsParseInterfaceDeclaration(this.startNode());if(V)return V}return super.parseExportDefaultDeclaration()}parseExportAllDeclaration(V,H){if(this.ecmaVersion>=11)if(this.eatContextual("as"))V.exported=this.parseModuleExportName(),this.checkExport(H,V.exported,this.lastTokStart);else V.exported=null;if(this.expectContextual("from"),this.type!==B.string)this.unexpected();return V.source=this.parseExprAtom(),this.parseMaybeImportAttributes(V),this.semicolon(),this.finishNode(V,"ExportAllDeclaration")}parseDynamicImport(V){if(this.next(),V.source=this.parseMaybeAssign(),this.eat(B.comma)){let H=this.parseExpression();V.arguments=[H]}if(!this.eat(B.parenR)){let H=this.start;if(this.eat(B.comma)&&this.eat(B.parenR))this.raiseRecoverable(H,"Trailing comma is not allowed in import()");else this.unexpected(H)}return this.finishNode(V,"ImportExpression")}parseExport(V,H){let Q=this.lookahead();if(this.ts_eatWithState(B._import,2,Q)){if(this.ts_isContextual(D.type)&&this.lookaheadCharCode()!==61)V.importKind="type",this.importOrExportOuterKind="type",this.next();else V.importKind="value",this.importOrExportOuterKind="value";let F=this.tsParseImportEqualsDeclaration(V,!0);return this.importOrExportOuterKind=void 0,F}else if(this.ts_eatWithState(B.eq,2,Q)){let F=V;return F.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(F,"TSExportAssignment")}else if(this.ts_eatContextualWithState("as",2,Q)){let F=V;return this.expectContextual("namespace"),F.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(F,"TSNamespaceExportDeclaration")}else{let F=this.lookahead(2).type;if(this.ts_isContextualWithState(Q,D.type)&&(F===B.braceL||F===B.star))this.next(),this.importOrExportOuterKind="type",V.exportKind="type";else this.importOrExportOuterKind="value",V.exportKind="value";if(this.next(),this.eat(B.star))return this.parseExportAllDeclaration(V,H);if(this.eat(B._default))return this.checkExport(H,"default",this.lastTokStart),V.declaration=this.parseExportDefaultDeclaration(),this.finishNode(V,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(V.declaration=this.parseExportDeclaration(V),V.declaration.type==="VariableDeclaration")this.checkVariableExport(H,V.declaration.declarations);else this.checkExport(H,V.declaration.id,V.declaration.id.start);V.specifiers=[],V.source=null}else{if(V.declaration=null,V.specifiers=this.parseExportSpecifiers(H),this.eatContextual("from")){if(this.type!==B.string)this.unexpected();V.source=this.parseExprAtom(),this.parseMaybeImportAttributes(V)}else{for(let L of V.specifiers)if(this.checkUnreserved(L.local),this.checkLocalExport(L.local),L.local.type==="Literal")this.raise(L.local.start,"A string literal cannot be used as an exported binding without `from`.");V.source=null}this.semicolon()}return this.finishNode(V,"ExportNamedDeclaration")}}checkExport(V,H,Q){if(!V)return;if(typeof H!=="string")H=H.type==="Identifier"?H.name:H.value;V[H]=!0}parseMaybeDefault(V,H,Q){let F=super.parseMaybeDefault(V,H,Q);if(F.type==="AssignmentPattern"&&F.typeAnnotation&&F.right.start<F.typeAnnotation.start)this.raise(F.typeAnnotation.start,M.TypeAnnotationAfterAssign);return F}typeCastToParameter(V){return V.expression.typeAnnotation=V.typeAnnotation,this.resetEndLocation(V.expression,V.typeAnnotation.end,V.typeAnnotation.loc?.end),V.expression}toAssignableList(V,H){if(!V)V=[];for(let Q=0;Q<V.length;Q++){let F=V[Q];if(F?.type==="TSTypeCastExpression")V[Q]=this.typeCastToParameter(F)}return super.toAssignableList(V,H)}reportReservedArrowTypeParam(V){if(V.params.length===1&&!V.extra?.trailingComma&&R)this.raise(V.start,M.ReservedArrowTypeParam)}parseExprAtom(V,H,Q){if(this.type===D.jsxText)return this.jsx_parseText();else if(this.type===D.jsxTagStart)return this.jsx_parseElement();else if(this.type===D.at)return this.parseDecorators(),this.parseExprAtom();else if(f(this.type)){let F=this.potentialArrowAt===this.start,L=this.start,S=this.startLoc,K=this.containsEsc,A=this.parseIdent(!1);if(this.ecmaVersion>=8&&!K&&A.name==="async"&&!this.canInsertSemicolon()&&this.eat(B._function))return this.overrideContext(T.f_expr),this.parseFunction(this.startNodeAt(L,S),0,!1,!0,H);if(F&&!this.canInsertSemicolon()){if(this.eat(B.arrow))return this.parseArrowExpression(this.startNodeAt(L,S),[A],!1,H);if(this.ecmaVersion>=8&&A.name==="async"&&this.type===B.name&&!K&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(A=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(B.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(L,S),[A],!0,H)}}return A}else return super.parseExprAtom(V,H,Q)}parseExprAtomDefault(){if(f(this.type)){let V=this.potentialArrowAt===this.start,H=this.containsEsc,Q=this.parseIdent();if(!H&&Q.name==="async"&&!this.canInsertSemicolon()){let{type:F}=this;if(F===B._function)return this.next(),this.parseFunction(this.startNodeAtNode(Q),void 0,!0,!0);else if(f(F))if(this.lookaheadCharCode()===61){let L=this.parseIdent(!1);if(this.canInsertSemicolon()||!this.eat(B.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAtNode(Q),[L],!0)}else return Q}if(V&&this.match(B.arrow)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(Q),[Q],!1);return Q}else this.unexpected()}parseIdentNode(){let V=this.startNode();if(m(this.type)&&!((this.type.keyword==="class"||this.type.keyword==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)))V.name=this.value;else return super.parseIdentNode();return V}parseVarStatement(V,H,Q=!1){let{isAmbientContext:F}=this;this.next(),super.parseVar(V,!1,H,Q||F),this.semicolon();let L=this.finishNode(V,"VariableDeclaration");if(!F)return L;for(let{id:S,init:K}of L.declarations){if(!K)continue;if(H!=="const"||!!S.typeAnnotation)this.raise(K.start,M.InitializerNotAllowedInAmbientContext);else if(K.type!=="StringLiteral"&&K.type!=="BooleanLiteral"&&K.type!=="NumericLiteral"&&K.type!=="BigIntLiteral"&&(K.type!=="TemplateLiteral"||K.expressions.length>0)&&!D2(K))this.raise(K.start,M.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference)}return L}parseStatement(V,H,Q){if(this.match(D.at))this.parseDecorators(!0);if(this.match(B._const)&&this.isLookaheadContextual("enum")){let F=this.startNode();return this.expect(B._const),this.tsParseEnumDeclaration(F,{const:!0})}if(this.ts_isContextual(D.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(D.interface)){let F=this.tsParseInterfaceDeclaration(this.startNode());if(F)return F}return super.parseStatement(V,H,Q)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parsePostMemberNameModifiers(V){if(this.eat(B.question))V.optional=!0;if(V.readonly&&this.match(B.parenL))this.raise(V.start,M.ClassMethodHasReadonly);if(V.declare&&this.match(B.parenL))this.raise(V.start,M.ClassMethodHasDeclare)}parseExpressionStatement(V,H){return(H.type==="Identifier"?this.tsParseExpressionStatement(V,H):void 0)||super.parseExpressionStatement(V,H)}shouldParseExportStatement(){if(this.tsIsDeclarationStart())return!0;if(this.match(D.at))return!0;return super.shouldParseExportStatement()}parseConditional(V,H,Q,F,L){if(this.eat(B.question)){let S=this.startNodeAt(H,Q);return S.test=V,S.consequent=this.parseMaybeAssign(),this.expect(B.colon),S.alternate=this.parseMaybeAssign(F),this.finishNode(S,"ConditionalExpression")}return V}parseMaybeConditional(V,H){let Q=this.start,F=this.startLoc,L=this.parseExprOps(V,H);if(this.checkExpressionErrors(H))return L;if(!this.maybeInArrowParameters||!this.match(B.question))return this.parseConditional(L,Q,F,V,H);let S=this.tryParse(()=>this.parseConditional(L,Q,F,V,H));if(!S.node){if(S.error)this.setOptionalParametersError(H,S.error);return L}if(S.error)this.setLookaheadState(S.failState);return S.node}parseParenItem(V){let H=this.start,Q=this.startLoc;if(V=super.parseParenItem(V),this.eat(B.question))V.optional=!0,this.resetEndLocation(V);if(this.match(B.colon)){let F=this.startNodeAt(H,Q);return F.expression=V,F.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(F,"TSTypeCastExpression")}return V}parseExportDeclaration(V){if(!this.isAmbientContext&&this.ts_isContextual(D.declare))return this.tsInAmbientContext(()=>this.parseExportDeclaration(V));let H=this.start,Q=this.startLoc,F=this.eatContextual("declare");if(F&&(this.ts_isContextual(D.declare)||!this.shouldParseExportStatement()))this.raise(this.start,M.ExpectedAmbientAfterExportDeclare);let S=f(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);if(!S)return null;if(S.type==="TSInterfaceDeclaration"||S.type==="TSTypeAliasDeclaration"||F)V.exportKind="type";if(F)this.resetStartLocation(S,H,Q),S.declare=!0;return S}parseClassId(V,H){if(!H&&this.isContextual("implements"))return;super.parseClassId(V,H);let Q=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));if(Q)V.typeParameters=Q}parseClassPropertyAnnotation(V){if(!V.optional){if(this.value==="!"&&this.eat(B.prefix))V.definite=!0;else if(this.eat(B.question))V.optional=!0}let H=this.tsTryParseTypeAnnotation();if(H)V.typeAnnotation=H}parseClassField(V){if(V.key.type==="PrivateIdentifier"){if(V.abstract)this.raise(V.start,M.PrivateElementHasAbstract);if(V.accessibility)this.raise(V.start,M.PrivateElementHasAccessibility({modifier:V.accessibility}));this.parseClassPropertyAnnotation(V)}else{if(this.parseClassPropertyAnnotation(V),this.isAmbientContext&&!(V.readonly&&!V.typeAnnotation)&&this.match(B.eq))this.raise(this.start,M.DeclareClassFieldHasInitializer);if(V.abstract&&this.match(B.eq)){let{key:Q}=V;this.raise(this.start,M.AbstractPropertyHasInitializer({propertyName:Q.type==="Identifier"&&!V.computed?Q.name:`[${this.input.slice(Q.start,Q.end)}]`}))}}return super.parseClassField(V)}parseClassMethod(V,H,Q,F){let L=V.kind==="constructor",S=V.key.type==="PrivateIdentifier",K=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(S){if(K)V.typeParameters=K;if(V.accessibility)this.raise(V.start,M.PrivateMethodsHasAccessibility({modifier:V.accessibility}))}else if(K&&L)this.raise(K.start,M.ConstructorHasTypeParameters);let{declare:A=!1,kind:j}=V;if(A&&(j==="get"||j==="set"))this.raise(V.start,M.DeclareAccessor({kind:j}));if(K)V.typeParameters=K;let X=V.key;if(V.kind==="constructor"){if(H)this.raise(X.start,"Constructor can't be a generator");if(Q)this.raise(X.start,"Constructor can't be an async method")}else if(V.static&&N0(V,"prototype"))this.raise(X.start,"Classes may not have a static property named prototype");let I=V.value=this.parseMethod(H,Q,F,!0,V);if(V.kind==="get"&&I.params.length!==0)this.raiseRecoverable(I.start,"getter should have no params");if(V.kind==="set"&&I.params.length!==1)this.raiseRecoverable(I.start,"setter should have exactly one param");if(V.kind==="set"&&I.params[0].type==="RestElement")this.raiseRecoverable(I.params[0].start,"Setter cannot use rest params");return this.finishNode(V,"MethodDefinition")}isClassMethod(){return this.match(B.relational)}parseClassElement(V){if(this.eat(B.semi))return null;let H=this.startNode(),Q="",F=!1,L=!1,S="method",K=!1,A=["declare","private","public","protected","accessor","override","abstract","readonly","static"],j=this.tsParseModifiers({modified:H,allowedModifiers:A,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:M.InvalidModifierOnTypeParameterPositions});K=Boolean(j.static);let X=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(H,A))this.raise(this.start,M.StaticBlockCannotHaveModifier);if(this.ecmaVersion>=13)return super.parseClassStaticBlock(H),H}else{let I=this.tsTryParseIndexSignature(H);if(I){if(H.abstract)this.raise(H.start,M.IndexSignatureHasAbstract);if(H.accessibility)this.raise(H.start,M.IndexSignatureHasAccessibility({modifier:H.accessibility}));if(H.declare)this.raise(H.start,M.IndexSignatureHasDeclare);if(H.override)this.raise(H.start,M.IndexSignatureHasOverride);return I}if(!this.inAbstractClass&&H.abstract)this.raise(H.start,M.NonAbstractClassHasAbstractMethod);if(H.override){if(!V)this.raise(H.start,M.OverrideNotInSubClass)}if(H.static=K,K){if(!(this.isClassElementNameStart()||this.type===B.star))Q="static"}if(!Q&&this.ecmaVersion>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===B.star)&&!this.canInsertSemicolon())L=!0;else Q="async";if(!Q&&(this.ecmaVersion>=9||!L)&&this.eat(B.star))F=!0;if(!Q&&!L&&!F){let v=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())S=v;else Q=v}if(Q)H.computed=!1,H.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),H.key.name=Q,this.finishNode(H.key,"Identifier");else this.parseClassElementName(H);if(this.parsePostMemberNameModifiers(H),this.isClassMethod()||this.ecmaVersion<13||this.type===B.parenL||S!=="method"||F||L){let v=!H.static&&N0(H,"constructor"),b=v&&V;if(v&&S!=="method")this.raise(H.key.start,"Constructor can't have get/set modifier");H.kind=v?"constructor":S,this.parseClassMethod(H,F,L,b)}else this.parseClassField(H);return H}};if(H.declare)this.tsInAmbientContext(X);else X();return H}isClassElementNameStart(){if(this.tsIsIdentifier())return!0;return super.isClassElementNameStart()}parseClassSuper(V){if(super.parseClassSuper(V),V.superClass&&(this.tsMatchLeftRelational()||this.match(B.bitShift)))V.superTypeParameters=this.tsParseTypeArgumentsInExpression();if(this.eatContextual("implements"))V.implements=this.tsParseHeritageClause("implements")}parseFunctionParams(V){let H=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(H)V.typeParameters=H;super.parseFunctionParams(V)}parseVarId(V,H){if(super.parseVarId(V,H),V.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(B.prefix))V.definite=!0;let Q=this.tsTryParseTypeAnnotation();if(Q)V.id.typeAnnotation=Q,this.resetEndLocation(V.id)}parseArrowExpression(V,H,Q,F){if(this.match(B.colon))V.returnType=this.tsParseTypeAnnotation();let L=this.yieldPos,S=this.awaitPos,K=this.awaitIdentPos;this.enterScope(n8(Q,!1)|k.SCOPE_ARROW),this.initFunction(V);let A=this.maybeInArrowParameters;if(this.ecmaVersion>=8)V.async=!!Q;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,V.params=this.toAssignableList(H,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(V,!0,!1,F),this.yieldPos=L,this.awaitPos=S,this.awaitIdentPos=K,this.maybeInArrowParameters=A,this.finishNode(V,"ArrowFunctionExpression")}parseMaybeAssignOrigin(V,H,Q){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(V);else this.exprAllowed=!1;let F=!1,L=-1,S=-1,K=-1;if(H)L=H.parenthesizedAssign,S=H.trailingComma,K=H.doubleProto,H.parenthesizedAssign=H.trailingComma=-1;else H=new Z8,F=!0;let A=this.start,j=this.startLoc;if(this.type===B.parenL||f(this.type))this.potentialArrowAt=this.start,this.potentialArrowInForAwait=V==="await";let X=this.parseMaybeConditional(V,H);if(Q)X=Q.call(this,X,A,j);if(this.type.isAssign){let I=this.startNodeAt(A,j);if(I.operator=this.value,this.type===B.eq)X=this.toAssignable(X,!0,H);if(!F)H.parenthesizedAssign=H.trailingComma=H.doubleProto=-1;if(H.shorthandAssign>=X.start)H.shorthandAssign=-1;if(!this.maybeInArrowParameters)if(this.type===B.eq)this.checkLValPattern(X);else this.checkLValSimple(X);if(I.left=X,this.next(),I.right=this.parseMaybeAssign(V),K>-1)H.doubleProto=K;return this.finishNode(I,"AssignmentExpression")}else if(F)this.checkExpressionErrors(H,!0);if(L>-1)H.parenthesizedAssign=L;if(S>-1)H.trailingComma=S;return X}parseMaybeAssign(V,H,Q){let F,L,S;if(q?.jsx&&(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational())){if(F=this.cloneCurLookaheadState(),L=this.tryParse(()=>this.parseMaybeAssignOrigin(V,H,Q),F),!L.error)return L.node;let j=this.context,X=j[j.length-1],I=j[j.length-2];if(X===$.tokContexts.tc_oTag&&I===$.tokContexts.tc_expr)j.pop(),j.pop();else if(X===$.tokContexts.tc_oTag||X===$.tokContexts.tc_expr)j.pop()}if(!L?.error&&!this.tsMatchLeftRelational())return this.parseMaybeAssignOrigin(V,H,Q);if(!F||this.compareLookaheadState(F,this.getCurLookaheadState()))F=this.cloneCurLookaheadState();let K,A=this.tryParse((j)=>{K=this.tsParseTypeParameters(this.tsParseConstModifier);let X=this.parseMaybeAssignOrigin(V,H,Q);if(X.type!=="ArrowFunctionExpression"||X.extra?.parenthesized)j();if(K?.params.length!==0)this.resetStartLocationFromNode(X,K);return X.typeParameters=K,X},F);if(!A.error&&!A.aborted){if(K)this.reportReservedArrowTypeParam(K);return A.node}if(!L){if(J0(!0),S=this.tryParse(()=>this.parseMaybeAssignOrigin(V,H,Q),F),!S.error)return S.node}if(L?.node)return this.setLookaheadState(L.failState),L.node;if(A.node){if(this.setLookaheadState(A.failState),K)this.reportReservedArrowTypeParam(K);return A.node}if(S?.node)return this.setLookaheadState(S.failState),S.node;if(L?.thrown)throw L.error;if(A.thrown)throw A.error;if(S?.thrown)throw S.error;throw L?.error||A.error||S?.error}parseAssignableListItem(V){let H=[];while(this.match(D.at))H.push(this.parseDecorator());let Q=this.start,F=this.startLoc,L,S=!1,K=!1;if(V!==void 0){let X={};if(this.tsParseModifiers({modified:X,allowedModifiers:["public","private","protected","override","readonly"]}),L=X.accessibility,K=X.override,S=X.readonly,V===!1&&(L||S||K))this.raise(F.column,M.UnexpectedParameterModifier)}let A=this.parseMaybeDefault(Q,F);this.parseBindingListItem(A);let j=this.parseMaybeDefault(A.start,A.loc.start,A);if(H.length)j.decorators=H;if(L||S||K){let X=this.startNodeAt(Q,F);if(L)X.accessibility=L;if(S)X.readonly=S;if(K)X.override=K;if(j.type!=="Identifier"&&j.type!=="AssignmentPattern")this.raise(X.start,M.UnsupportedParameterPropertyKind);return X.parameter=j,this.finishNode(X,"TSParameterProperty")}return j}checkLValInnerPattern(V,H=k.BIND_NONE,Q){switch(V.type){case"TSParameterProperty":this.checkLValInnerPattern(V.parameter,H,Q);break;default:{super.checkLValInnerPattern(V,H,Q);break}}}parseBindingListItem(V){if(this.eat(B.question)){if(V.type!=="Identifier"&&!this.isAmbientContext&&!this.inType)this.raise(V.start,M.PatternIsOptional);V.optional=!0}let H=this.tsTryParseTypeAnnotation();if(H)V.typeAnnotation=H;return this.resetEndLocation(V),V}isAssignable(V,H){switch(V.type){case"TSTypeCastExpression":return this.isAssignable(V.expression,H);case"TSParameterProperty":return!0;case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let Q=V.properties.length-1;return V.properties.every((F,L)=>{return F.type!=="ObjectMethod"&&(L===Q||F.type!=="SpreadElement")&&this.isAssignable(F)})}case"Property":case"ObjectProperty":return this.isAssignable(V.value);case"SpreadElement":return this.isAssignable(V.argument);case"ArrayExpression":return V.elements.every((Q)=>Q===null||this.isAssignable(Q));case"AssignmentExpression":return V.operator==="=";case"ParenthesizedExpression":return this.isAssignable(V.expression);case"MemberExpression":case"OptionalMemberExpression":return!H;default:return!1}}toAssignable(V,H=!1,Q=new Z8){switch(V.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(V,H,Q);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(H);else this.raise(V.start,M.UnexpectedTypeCastInParameter);return this.toAssignable(V.expression,H,Q);case"MemberExpression":break;case"AssignmentExpression":if(!H&&V.left.type==="TSTypeCastExpression")V.left=this.typeCastToParameter(V.left);return super.toAssignable(V,H,Q);case"TSTypeCastExpression":return this.typeCastToParameter(V);default:return super.toAssignable(V,H,Q)}return V}toAssignableParenthesizedExpression(V,H,Q){switch(V.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(V.expression,H,Q);default:return super.toAssignable(V,H,Q)}}parseBindingAtom(){switch(this.type){case B._this:return this.parseIdent(!0);default:return super.parseBindingAtom()}}shouldParseArrow(V){let H;if(this.match(B.colon))H=V.every((Q)=>this.isAssignable(Q,!0));else H=!this.canInsertSemicolon();if(H){if(this.match(B.colon)){let Q=this.tryParse((F)=>{let L=this.tsParseTypeOrTypePredicateAnnotation(B.colon);if(this.canInsertSemicolon()||!this.match(B.arrow))F();return L});if(Q.aborted)return this.shouldParseArrowReturnType=void 0,!1;if(!Q.thrown){if(Q.error)this.setLookaheadState(Q.failState);this.shouldParseArrowReturnType=Q.node}}if(!this.match(B.arrow))return this.shouldParseArrowReturnType=void 0,!1;return!0}return this.shouldParseArrowReturnType=void 0,H}parseParenArrowList(V,H,Q,F){let L=this.startNodeAt(V,H);return L.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(L,Q,!1,F)}parseParenAndDistinguishExpression(V,H){let Q=this.start,F=this.startLoc,L,S=this.ecmaVersion>=8;if(this.ecmaVersion>=6){let K=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();let A=this.start,j=this.startLoc,X=[],I=!0,v=!1,b=new Z8,t=this.yieldPos,n=this.awaitPos,a;this.yieldPos=0,this.awaitPos=0;while(this.type!==B.parenR)if(I?I=!1:this.expect(B.comma),S&&this.afterTrailingComma(B.parenR,!0)){v=!0;break}else if(this.type===B.ellipsis){if(a=this.start,X.push(this.parseParenItem(this.parseRestBinding())),this.type===B.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else X.push(this.parseMaybeAssign(H,b,this.parseParenItem));let q8=this.lastTokEnd,c=this.lastTokEndLoc;if(this.expect(B.parenR),this.maybeInArrowParameters=K,V&&this.shouldParseArrow(X)&&this.eat(B.arrow))return this.checkPatternErrors(b,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=t,this.awaitPos=n,this.parseParenArrowList(Q,F,X,H);if(!X.length||v)this.unexpected(this.lastTokStart);if(a)this.unexpected(a);if(this.checkExpressionErrors(b,!0),this.yieldPos=t||this.yieldPos,this.awaitPos=n||this.awaitPos,X.length>1)L=this.startNodeAt(A,j),L.expressions=X,this.finishNodeAt(L,"SequenceExpression",q8,c);else L=X[0]}else L=this.parseParenExpression();if(this.options.preserveParens){let K=this.startNodeAt(Q,F);return K.expression=L,this.finishNode(K,"ParenthesizedExpression")}else return L}parseTaggedTemplateExpression(V,H,Q,F){let L=this.startNodeAt(H,Q);if(L.tag=V,L.quasi=this.parseTemplate({isTagged:!0}),F)this.raise(H,"Tagged Template Literals are not allowed in optionalChain.");return this.finishNode(L,"TaggedTemplateExpression")}shouldParseAsyncArrow(){if(this.match(B.colon)){let V=this.tryParse((H)=>{let Q=this.tsParseTypeOrTypePredicateAnnotation(B.colon);if(this.canInsertSemicolon()||!this.match(B.arrow))H();return Q});if(V.aborted)return this.shouldParseAsyncArrowReturnType=void 0,!1;if(!V.thrown){if(V.error)this.setLookaheadState(V.failState);return this.shouldParseAsyncArrowReturnType=V.node,!this.canInsertSemicolon()&&this.eat(B.arrow)}}else return!this.canInsertSemicolon()&&this.eat(B.arrow)}parseSubscriptAsyncArrow(V,H,Q,F){let L=this.startNodeAt(V,H);return L.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(L,Q,!0,F)}parseExprList(V,H,Q,F){let L=[],S=!0;while(!this.eat(V)){if(!S){if(this.expect(B.comma),H&&this.afterTrailingComma(V))break}else S=!1;let K;if(Q&&this.type===B.comma)K=null;else if(this.type===B.ellipsis){if(K=this.parseSpread(F),this.maybeInArrowParameters&&this.match(B.colon))K.typeAnnotation=this.tsParseTypeAnnotation();if(F&&this.type===B.comma&&F.trailingComma<0)F.trailingComma=this.start}else K=this.parseMaybeAssign(!1,F,this.parseParenItem);L.push(K)}return L}parseSubscript(V,H,Q,F,L,S,K){let A=S;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(B.prefix)){this.exprAllowed=!1,this.next();let b=this.startNodeAt(H,Q);return b.expression=V,V=this.finishNode(b,"TSNonNullExpression"),V}let j=!1;if(this.match(B.questionDot)&&this.lookaheadCharCode()===60){if(F)return V;V.optional=!0,A=j=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(B.bitShift)){let b,t=this.tsTryParseAndCatch(()=>{if(!F&&this.atPossibleAsyncArrow(V)){let c=this.tsTryParseGenericAsyncArrowFunction(H,Q,K);if(c)return V=c,V}let n=this.tsParseTypeArgumentsInExpression();if(!n)return V;if(j&&!this.match(B.parenL))return b=this.curPosition(),V;if(y(this.type)||this.type===B.backQuote){let c=this.parseTaggedTemplateExpression(V,H,Q,A);return c.typeArguments=n,c}if(!F&&this.eat(B.parenL)){let c=new Z8,d=this.startNodeAt(H,Q);if(d.callee=V,d.arguments=this.parseExprList(B.parenR,this.ecmaVersion>=8,!1,c),this.tsCheckForInvalidTypeCasts(d.arguments),d.typeArguments=n,A)d.optional=j;return this.checkExpressionErrors(c,!0),V=this.finishNode(d,"CallExpression"),V}let a=this.type;if(this.tsMatchRightRelational()||a===B.bitShift||a!==B.parenL&&S2(a)&&!this.hasPrecedingLineBreak())return;let q8=this.startNodeAt(H,Q);return q8.expression=V,q8.typeArguments=n,this.finishNode(q8,"TSInstantiationExpression")});if(b)this.unexpected(b);if(t){if(t.type==="TSInstantiationExpression"&&(this.match(B.dot)||this.match(B.questionDot)&&this.lookaheadCharCode()!==40))this.raise(this.start,M.InvalidPropertyAccessAfterInstantiationExpression);return V=t,V}}let X=this.ecmaVersion>=11,I=X&&this.eat(B.questionDot);if(F&&I)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");let v=this.eat(B.bracketL);if(v||I&&this.type!==B.parenL&&this.type!==B.backQuote||this.eat(B.dot)){let b=this.startNodeAt(H,Q);if(b.object=V,v)b.property=this.parseExpression(),this.expect(B.bracketR);else if(this.type===B.privateId&&V.type!=="Super")b.property=this.parsePrivateIdent();else b.property=this.parseIdent(this.options.allowReserved!=="never");if(b.computed=!!v,X)b.optional=I;V=this.finishNode(b,"MemberExpression")}else if(!F&&this.eat(B.parenL)){let b=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let t=new Z8,n=this.yieldPos,a=this.awaitPos,q8=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;let c=this.parseExprList(B.parenR,this.ecmaVersion>=8,!1,t);if(L&&!I&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(t,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=q8,V=this.parseSubscriptAsyncArrow(H,Q,c,K)}else{this.checkExpressionErrors(t,!0),this.yieldPos=n||this.yieldPos,this.awaitPos=a||this.awaitPos,this.awaitIdentPos=q8||this.awaitIdentPos;let d=this.startNodeAt(H,Q);if(d.callee=V,d.arguments=c,X)d.optional=I;V=this.finishNode(d,"CallExpression")}this.maybeInArrowParameters=b}else if(this.type===B.backQuote){if(I||A)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");let b=this.startNodeAt(H,Q);b.tag=V,b.quasi=this.parseTemplate({isTagged:!0}),V=this.finishNode(b,"TaggedTemplateExpression")}return V}parseGetterSetter(V){V.kind=V.key.name,this.parsePropertyName(V);let H=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(V.value=this.parseMethod(!1),H)V.value.typeParameters=H;let Q=V.kind==="get"?0:1,F=V.value.params[0];if(Q=F&&this.isThisParam(F)?Q+1:Q,V.value.params.length!==Q){let S=V.value.start;if(V.kind==="get")this.raiseRecoverable(S,"getter should have no params");else this.raiseRecoverable(S,"setter should have exactly one param")}else if(V.kind==="set"&&V.value.params[0].type==="RestElement")this.raiseRecoverable(V.value.params[0].start,"Setter cannot use rest params")}parsePropertyValue(V,H,Q,F,L,S,K,A){if(this.tsMatchLeftRelational()){if(H)this.unexpected();V.kind="init",V.method=!0;let j=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(V.value=this.parseMethod(Q,F),j)V.value.typeParameters=j;return}return super.parsePropertyValue(V,H,Q,F,L,S,K,A)}parseProperty(V,H){if(!V){let Q=[];if(this.match(D.at))while(this.match(D.at))Q.push(this.parseDecorator());let F=super.parseProperty(V,H);if(F.type==="SpreadElement"){if(Q.length)this.raise(F.start,A8.SpreadElementDecorator)}if(Q.length)F.decorators=Q,Q=[];return F}return super.parseProperty(V,H)}parseCatchClauseParam(){let V=this.parseBindingAtom(),H=V.type==="Identifier";this.enterScope(H?k.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(V,H?k.BIND_SIMPLE_CATCH:k.BIND_LEXICAL);let Q=this.tsTryParseTypeAnnotation();if(Q)V.typeAnnotation=Q,this.resetEndLocation(V);return this.expect(B.parenR),V}parseClass(V,H){let Q=this.inAbstractClass;this.inAbstractClass=!!V.abstract;try{this.next(),this.takeDecorators(V);let F=this.strict;this.strict=!0,this.parseClassId(V,H),this.parseClassSuper(V);let L=this.enterClassBody(),S=this.startNode(),K=!1;S.body=[];let A=[];this.expect(B.braceL);while(this.type!==B.braceR){if(this.match(D.at)){A.push(this.parseDecorator());continue}let j=this.parseClassElement(V.superClass!==null);if(A.length)j.decorators=A,this.resetStartLocationFromNode(j,A[0]),A=[];if(j){if(S.body.push(j),j.type==="MethodDefinition"&&j.kind==="constructor"&&j.value.type==="FunctionExpression"){if(K)this.raiseRecoverable(j.start,"Duplicate constructor in the same class");if(K=!0,j.decorators&&j.decorators.length>0)this.raise(j.start,A8.DecoratorConstructor)}else if(j.key&&j.key.type==="PrivateIdentifier"&&j.value?.type!=="TSDeclareMethod"&&N2(L,j))this.raiseRecoverable(j.key.start,`Identifier '#${j.key.name}' has already been declared`)}}if(this.strict=F,this.next(),A.length)this.raise(this.start,A8.TrailingDecorator);return V.body=this.finishNode(S,"ClassBody"),this.exitClassBody(),this.finishNode(V,H?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=Q}}parseClassFunctionParams(){let V=this.tsTryParseTypeParameters(),H=this.parseBindingList(B.parenR,!1,this.ecmaVersion>=8,!0);if(V)H.typeParameters=V;return H}parseMethod(V,H,Q,F,L){let S=this.startNode(),K=this.yieldPos,A=this.awaitPos,j=this.awaitIdentPos;if(this.initFunction(S),this.ecmaVersion>=6)S.generator=V;if(this.ecmaVersion>=8)S.async=!!H;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(n8(H,S.generator)|k.SCOPE_SUPER|(Q?k.SCOPE_DIRECT_SUPER:0)),this.expect(B.parenL),S.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(S,!1,!0,!1,{isClassMethod:F}),this.yieldPos=K,this.awaitPos=A,this.awaitIdentPos=j,L&&L.abstract){if(!!S.body){let{key:I}=L;this.raise(L.start,M.AbstractMethodHasImplementation({methodName:I.type==="Identifier"&&!L.computed?I.name:`[${this.input.slice(I.start,I.end)}]`}))}}return this.finishNode(S,"FunctionExpression")}static parse(V,H){if(H.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else H.locations=!0;let Q=new this(H,V);if(N)Q.isAmbientContext=!0;return Q.parse()}static parseExpressionAt(V,H,Q){if(Q.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else Q.locations=!0;let F=new this(Q,V,H);if(N)F.isAmbientContext=!0;return F.nextToken(),F.parseExpression()}parseImportSpecifier(){if(this.ts_isContextual(D.type)){let H=this.startNode();return H.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(H,!0,this.importOrExportOuterKind==="type"),this.finishNode(H,"ImportSpecifier")}else{let H=super.parseImportSpecifier();return H.importKind="value",H}}parseExportSpecifier(V){let H=this.ts_isContextual(D.type);if(!this.match(B.string)&&H){let F=this.startNode();return F.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(F,!1,this.importOrExportOuterKind==="type"),this.finishNode(F,"ExportSpecifier"),this.checkExport(V,F.exported,F.exported.start),F}else{let F=super.parseExportSpecifier(V);return F.exportKind="value",F}}parseTypeOnlyImportExportSpecifier(V,H,Q){let F=H?"imported":"local",L=H?"local":"exported",S=V[F],K,A=!1,j=!0,X=S.start;if(this.isContextual("as")){let v=this.parseIdent();if(this.isContextual("as")){let b=this.parseIdent();if(m(this.type))A=!0,S=v,K=H?this.parseIdent():this.parseModuleExportName(),j=!1;else K=b,j=!1}else if(m(this.type))j=!1,K=H?this.parseIdent():this.parseModuleExportName();else A=!0,S=v}else if(m(this.type))if(A=!0,H){if(S=super.parseIdent(!0),!this.isContextual("as"))this.checkUnreserved(S)}else S=this.parseModuleExportName();if(A&&Q)this.raise(X,H?M.TypeModifierIsUsedInTypeImports:M.TypeModifierIsUsedInTypeExports);V[F]=S,V[L]=K;let I=H?"importKind":"exportKind";if(V[I]=A?"type":"value",j&&this.eatContextual("as"))V[L]=H?this.parseIdent():this.parseModuleExportName();if(!V[L])V[L]=this.copyNode(V[F]);if(H)this.checkLValSimple(V[L],k.BIND_LEXICAL)}raiseCommonCheck(V,H,Q){switch(H){case"Comma is not permitted after the rest element":if(this.isAmbientContext&&this.match(B.comma)&&this.lookaheadCharCode()===41){this.next();return}else return super.raise(V,H)}return Q?super.raiseRecoverable(V,H):super.raise(V,H)}raiseRecoverable(V,H){return this.raiseCommonCheck(V,H,!0)}raise(V,H){return this.raiseCommonCheck(V,H,!0)}updateContext(V){let{type:H}=this;if(H==B.braceL){var Q=this.curContext();if(Q==O.tc_oTag)this.context.push(T.b_expr);else if(Q==O.tc_expr)this.context.push(T.b_tmpl);else super.updateContext(V);this.exprAllowed=!0}else if(H===B.slash&&V===D.jsxTagStart)this.context.length-=2,this.context.push(O.tc_cTag),this.exprAllowed=!1;else return super.updateContext(V)}jsx_parseOpeningElementAt(V,H){let Q=this.startNodeAt(V,H),F=this.jsx_parseElementName();if(F)Q.name=F;if(this.match(B.relational)||this.match(B.bitShift)){let L=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(L)Q.typeArguments=L}Q.attributes=[];while(this.type!==B.slash&&this.type!==D.jsxTagEnd)Q.attributes.push(this.jsx_parseAttribute());return Q.selfClosing=this.eat(B.slash),this.expect(D.jsxTagEnd),this.finishNode(Q,F?"JSXOpeningElement":"JSXOpeningFragment")}enterScope(V){if(V===Y8)this.importsStack.push([]);super.enterScope(V);let H=super.currentScope();H.types=[],H.enums=[],H.constEnums=[],H.classes=[],H.exportOnlyBindings=[]}exitScope(){if(super.currentScope().flags===Y8)this.importsStack.pop();super.exitScope()}hasImport(V,H){let Q=this.importsStack.length;if(this.importsStack[Q-1].indexOf(V)>-1)return!0;if(!H&&Q>1){for(let F=0;F<Q-1;F++)if(this.importsStack[F].indexOf(V)>-1)return!0}return!1}maybeExportDefined(V,H){if(this.inModule&&V.flags&k.SCOPE_TOP)delete this.undefinedExports[H]}declareName(V,H,Q){if(H&k.BIND_FLAGS_TS_IMPORT){if(this.hasImport(V,!0))this.raise(Q,`Identifier '${V}' has already been declared.`);this.importsStack[this.importsStack.length-1].push(V);return}let F=this.currentScope();if(H&k.BIND_FLAGS_TS_EXPORT_ONLY){this.maybeExportDefined(F,V),F.exportOnlyBindings.push(V);return}if(H===k.BIND_TS_TYPE||H===k.BIND_TS_INTERFACE){if(H===k.BIND_TS_TYPE&&F.types.includes(V))this.raise(Q,`type '${V}' has already been declared.`);F.types.push(V)}else super.declareName(V,H,Q);if(H&k.BIND_FLAGS_TS_ENUM)F.enums.push(V);if(H&k.BIND_FLAGS_TS_CONST_ENUM)F.constEnums.push(V);if(H&k.BIND_FLAGS_CLASS)F.classes.push(V)}checkLocalExport(V){let{name:H}=V;if(this.hasImport(H))return;let Q=this.scopeStack.length;for(let F=Q-1;F>=0;F--){let L=this.scopeStack[F];if(L.types.indexOf(H)>-1||L.exportOnlyBindings.indexOf(H)>-1)return}super.checkLocalExport(V)}}return k1}}class K0 extends Error{message="";#q;constructor(q,N,R){super(N);this.stack="",this.#q=new Q8(q,N,R),Object.assign(this,this.#q),this.name="CompileError"}toString(){return this.#q.toString()}toJSON(){return this.#q.toJSON()}}function C(q,N,R){let U=typeof q==="number"?q:q?.start,J=typeof q==="number"?q:q?.end;throw new K0(N,R,U!==void 0?[U,J??U]:void 0)}function W0(q){C(q,"css_empty_declaration",`Declaration cannot be empty
|
|
13
|
-
https://svelte.dev/e/css_empty_declaration`)}function
|
|
14
|
-
https://svelte.dev/e/css_expected_identifier`)}function
|
|
15
|
-
https://svelte.dev/e/css_selector_invalid`)}function
|
|
16
|
-
https://svelte.dev/e/attribute_duplicate`)}function
|
|
17
|
-
https://svelte.dev/e/attribute_empty_shorthand`)}function
|
|
18
|
-
https://svelte.dev/e/block_duplicate_clause`)}function
|
|
19
|
-
https://svelte.dev/e/block_invalid_continuation_placement`)}function
|
|
20
|
-
https://svelte.dev/e/block_invalid_elseif`)}function
|
|
21
|
-
https://svelte.dev/e/block_invalid_placement`)}function
|
|
22
|
-
https://svelte.dev/e/block_unclosed`)}function
|
|
23
|
-
https://svelte.dev/e/block_unexpected_close`)}function
|
|
24
|
-
https://svelte.dev/e/const_tag_invalid_expression`)}function
|
|
25
|
-
https://svelte.dev/e/debug_tag_invalid_arguments`)}function C8(q){C(q,"declaration_tag_invalid_type","Declaration tags must be `let` or `const` declarations\nhttps://svelte.dev/e/declaration_tag_invalid_type")}function
|
|
26
|
-
https://svelte.dev/e/directive_invalid_value`)}function
|
|
27
|
-
https://svelte.dev/e/directive_missing_name`)}function
|
|
28
|
-
https://svelte.dev/e/element_invalid_closing_tag`)}function
|
|
29
|
-
https://svelte.dev/e/element_invalid_closing_tag_autoclosed`)}function w8(q,
|
|
30
|
-
https://svelte.dev/e/element_unclosed`)}function
|
|
31
|
-
https://svelte.dev/e/expected_attribute_value`)}function
|
|
32
|
-
https://svelte.dev/e/expected_block_type`)}function
|
|
33
|
-
https://svelte.dev/e/expected_identifier`)}function
|
|
34
|
-
https://svelte.dev/e/expected_pattern`)}function
|
|
35
|
-
https://svelte.dev/e/expected_tag`)}function i(q,
|
|
36
|
-
https://svelte.dev/e/expected_token`)}function
|
|
37
|
-
https://svelte.dev/e/expected_whitespace`)}function
|
|
38
|
-
https://svelte.dev/e/js_parse_error`)}function
|
|
12
|
+
`;else W=String.fromCharCode(T);if(this.options.locations)++this.curLine,this.lineStart=this.pos;return W}jsx_readString(F){let T="",W=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");let D=this.input.charCodeAt(this.pos);if(D===F)break;if(D===38)T+=this.input.slice(W,this.pos),T+=this.jsx_readEntity(),W=this.pos;else if(N(D))T+=this.input.slice(W,this.pos),T+=this.jsx_readNewLine(!1),W=this.pos;else++this.pos}return T+=this.input.slice(W,this.pos++),this.finishToken(J.string,T)}jsx_readEntity(){let F="",T=0,W,D=this.input[this.pos];if(D!=="&")this.raise(this.pos,"Entity must start with an ampersand");let O=++this.pos;while(this.pos<this.input.length&&T++<10){if(D=this.input[this.pos++],D===";"){if(F[0]==="#"){if(F[1]==="x"){if(F=F.substr(2),F2.test(F))W=String.fromCharCode(parseInt(F,16))}else if(F=F.substr(1),Z2.test(F))W=String.fromCharCode(parseInt(F,10))}else W=Y2[F];break}F+=D}if(!W)return this.pos=O,"&";return W}jsx_readWord(){let F,T=this.pos;do F=this.input.charCodeAt(++this.pos);while(G(F)||F===45);return this.finishToken($.jsxName,this.input.slice(T,this.pos))}jsx_parseIdentifier(){let F=this.startNode();if(this.type===$.jsxName)F.name=this.value;else if(this.type.keyword)F.name=this.type.keyword;else this.unexpected();return this.next(),this.finishNode(F,"JSXIdentifier")}jsx_parseNamespacedName(){let F=this.start,T=this.startLoc,W=this.jsx_parseIdentifier();if(!Z.allowNamespaces||!this.eat(J.colon))return W;var D=this.startNodeAt(F,T);return D.namespace=W,D.name=this.jsx_parseIdentifier(),this.finishNode(D,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===$.jsxTagEnd)return"";let F=this.start,T=this.startLoc,W=this.jsx_parseNamespacedName();if(this.type===J.dot&&W.type==="JSXNamespacedName"&&!Z.allowNamespacedObjects)this.unexpected();while(this.eat(J.dot)){let D=this.startNodeAt(F,T);D.object=W,D.property=this.jsx_parseIdentifier(),W=this.finishNode(D,"JSXMemberExpression")}return W}jsx_parseAttributeValue(){switch(this.type){case J.braceL:let F=this.jsx_parseExpressionContainer();if(F.expression.type==="JSXEmptyExpression")this.raise(F.start,"JSX attributes must only be assigned a non-empty expression");return F;case $.jsxTagStart:case J.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let F=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(F,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let F=this.startNode();return this.next(),F.expression=this.type===J.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(J.braceR),this.finishNode(F,"JSXExpressionContainer")}jsx_parseAttribute(){let F=this.startNode();if(this.eat(J.braceL))return this.expect(J.ellipsis),F.argument=this.parseMaybeAssign(),this.expect(J.braceR),this.finishNode(F,"JSXSpreadAttribute");return F.name=this.jsx_parseNamespacedName(),F.value=this.eat(J.eq)?this.jsx_parseAttributeValue():null,this.finishNode(F,"JSXAttribute")}jsx_parseOpeningElementAt(F,T){let W=this.startNodeAt(F,T);W.attributes=[];let D=this.jsx_parseElementName();if(D)W.name=D;while(this.type!==J.slash&&this.type!==$.jsxTagEnd)W.attributes.push(this.jsx_parseAttribute());return W.selfClosing=this.eat(J.slash),this.expect($.jsxTagEnd),this.finishNode(W,D?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(F,T){let W=this.startNodeAt(F,T),D=this.jsx_parseElementName();if(D)W.name=D;return this.expect($.jsxTagEnd),this.finishNode(W,D?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(F,T){let W=this.startNodeAt(F,T),D=[],O=this.jsx_parseOpeningElementAt(F,T),w=null;if(!O.selfClosing){q:for(;;)switch(this.type){case $.jsxTagStart:if(F=this.start,T=this.startLoc,this.next(),this.eat(J.slash)){w=this.jsx_parseClosingElementAt(F,T);break q}D.push(this.jsx_parseElementAt(F,T));break;case $.jsxText:D.push(this.parseExprAtom());break;case J.braceL:D.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}if(G8(w.name)!==G8(O.name))this.raise(w.start,"Expected corresponding JSX closing tag for <"+G8(O.name)+">")}let P=O.name?"Element":"Fragment";if(W["opening"+P]=O,W["closing"+P]=w,W.children=D,this.type===J.relational&&this.value==="<")this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag");return this.finishNode(W,"JSX"+P)}jsx_parseText(){let F=this.parseLiteral(this.value);return F.type="JSXText",F}jsx_parseElement(){let F=this.start,T=this.startLoc;return this.next(),this.jsx_parseElementAt(F,T)}}}function L2(q,B,R){let{tokTypes:U}=B,{tokTypes:J}=R;return class extends q{parseMaybeImportAttributes(N){if(this.type===J._with||this.type===U.assert){this.next();let G=this.parseImportAttributes();if(G)N.attributes=G}}parseImportAttributes(){this.expect(J.braceL);let N=this.parseWithEntries();return this.expect(J.braceR),N}parseWithEntries(){let N=[],G=new Set;do{if(this.type===J.braceR)break;let Z=this.startNode(),z;if(this.type===J.string)z=this.parseLiteral(this.value);else z=this.parseIdent(!0);if(this.next(),Z.key=z,G.has(Z.key.name))this.raise(this.pos,"Duplicated key in attributes");if(G.add(Z.key.name),this.type!==J.string)this.raise(this.pos,"Only string is supported as an attribute value");Z.value=this.parseLiteral(this.value),N.push(this.finishNode(Z,"ImportAttribute"))}while(this.eat(J.comma));return N}}}var n8=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function $0(q){if(!q)throw Error("Assert fail")}function D2(q){return q==="accessor"}function S2(q){return q==="in"||q==="out"}var O8=1,Y0=2,K2=4,k={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 a8(q,B){return k.SCOPE_FUNCTION|(q?k.SCOPE_ASYNC:0)|(B?k.SCOPE_GENERATOR:0)}function W2(q){if(q.type!=="MemberExpression")return!1;let{computed:B,property:R}=q;if(B&&(R.type!=="TemplateLiteral"||R.expressions.length>0))return!1;return W0(q.object)}function W0(q){if(q.type==="Identifier")return!0;if(q.type!=="MemberExpression")return!1;if(q.computed)return!1;return W0(q.object)}function F0(q){return q==="private"||q==="public"||q==="protected"}function X2(q){return Boolean(q.startsExpr)}function z2(q){if(q==null)throw Error(`Unexpected ${q} value.`);return q}function T2(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 X0(q){let{dts:B=!1}=q||{},R=!!q?.jsx;return function(U){let J=U.acorn||s8,$=q2(J),N=J.tokTypes,G=J.keywordTypes,Z=J.isIdentifierStart,z=J.lineBreak,F=J.isNewLine,T=J.tokContexts,W=J.isIdentifierChar,{tokTypes:D,tokContexts:O,keywordsRegExp:w,tokenIsLiteralPropertyName:P,tokenIsTemplate:b,tokenIsTSDeclarationStart:s,tokenIsIdentifier:f,tokenIsKeywordOrIdentifier:m,tokenIsTSTypeOperator:E}=$;function H8(V,H,Q=V.length){for(let Y=H;Y<Q;Y++){let L=V.charCodeAt(Y);if(F(L))return Y<Q-1&&L===13&&V.charCodeAt(Y+1)===10?Y+2:Y+1}return-1}if(U=$2(U,$,J),q?.jsx)U=G2(J,$,U,typeof q.jsx==="boolean"?{}:q.jsx);U=L2(U,$,J);class g1 extends U{constructor(V,H,Q){super(V,H,Q);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=(Y)=>{this.tsParseModifiers({modified:Y,allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:M.InvalidModifierOnTypeParameterPositions})},this.ecmaVersion=this.options.ecmaVersion}static get acornTypeScript(){return $}get acornTypeScript(){return $}getTokenFromCodeInType(V){if(V===62)return this.finishOp(N.relational,1);if(V===60)return this.finishOp(N.relational,1);return super.getTokenFromCode(V)}readToken(V){if(!this.inType){let H=this.curContext();if(H===O.tc_expr)return this.jsx_readToken();if(H===O.tc_oTag||H===O.tc_cTag){if(Z(V))return this.jsx_readWord();if(V==62)return++this.pos,this.finishToken(D.jsxTagEnd);if((V===34||V===39)&&H==O.tc_oTag)return this.jsx_readString(V)}if(V===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)if(++this.pos,q?.jsx)return this.finishToken(D.jsxTagStart);else return this.finishToken(N.relational,"<")}return super.readToken(V)}getTokenFromCode(V){if(this.inType)return this.getTokenFromCodeInType(V);if(V===64)return++this.pos,this.finishToken(D.at);return super.getTokenFromCode(V)}isAbstractClass(){return this.ts_isContextual(D.abstract)&&this.lookahead().type===N._class}finishNode(V,H){if(V.type!==""&&V.end!==0)return V;return super.finishNode(V,H)}tryParse(V,H=this.cloneCurLookaheadState()){let Q={node:null};try{return{node:V((L=null)=>{throw Q.node=L,Q}),error:null,thrown:!1,aborted:!1,failState:null}}catch(Y){let L=this.getCurLookaheadState();if(this.setLookaheadState(H),Y instanceof SyntaxError)return{node:null,error:Y,thrown:!0,aborted:!1,failState:L};if(Y===Q)return{node:Q.node,error:null,thrown:!1,aborted:!0,failState:L};throw Y}}setOptionalParametersError(V,H){V.optionalParametersLoc=H?.loc??this.startLoc}reScan_lt_gt(){if(this.type===N.relational)this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos())}reScan_lt(){let{type:V}=this;if(V===N.bitShift)return this.pos-=2,this.finishOp(N.relational,1),N.relational;return V}resetEndLocation(V,H=this.lastTokEnd,Q=this.lastTokEndLoc){if(V.end=H,V.loc.end=Q,this.options.ranges)V.range[1]=H}startNodeAtNode(V){return super.startNodeAt(V.start,V.loc.start)}nextTokenStart(){return this.nextTokenStartSince(this.pos)}tsHasSomeModifiers(V,H){return H.some((Q)=>{if(F0(Q))return V.accessibility===Q;return!!V[Q]})}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&this.lookaheadCharCode()===123}tsCheckForInvalidTypeCasts(V){V.forEach((H)=>{if(H?.type==="TSTypeCastExpression")this.raise(H.typeAnnotation.start,M.UnexpectedTypeAnnotation)})}atPossibleAsyncArrow(V){return V.type==="Identifier"&&V.name==="async"&&this.lastTokEnd===V.end&&!this.canInsertSemicolon()&&V.end-V.start===5&&V.start===this.potentialArrowAt}tsIsIdentifier(){return f(this.type)}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(N.colon)?this.tsParseTypeOrTypePredicateAnnotation(N.colon):void 0}tsTryParseGenericAsyncArrowFunction(V,H,Q){if(!this.tsMatchLeftRelational())return;let Y=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let L=this.tsTryParseAndCatch(()=>{let S=this.startNodeAt(V,H);return S.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(S),S.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(N.arrow),S});if(this.maybeInArrowParameters=Y,!L)return;return super.parseArrowExpression(L,null,!0,Q)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==N.relational)return;return this.tsParseTypeArguments()}tsInNoContext(V){let H=this.context;this.context=[H[0]];try{return V()}finally{this.context=H}}tsTryParseTypeAnnotation(){return this.match(N.colon)?this.tsParseTypeAnnotation():void 0}isUnparsedContextual(V,H){let Q=V+H.length;if(this.input.slice(V,Q)===H){let Y=this.input.charCodeAt(Q);return!(W(Y)||(Y&64512)===55296)}return!1}isAbstractConstructorSignature(){return this.ts_isContextual(D.abstract)&&this.lookahead().type===N._new}nextTokenStartSince(V){return n8.lastIndex=V,n8.test(this.input)?n8.lastIndex:V}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}compareLookaheadState(V,H){for(let Q of Object.keys(V))if(V[Q]!==H[Q])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(V){this.pos=V.pos,this.value=V.value,this.endLoc=V.endLoc,this.lastTokEnd=V.lastTokEnd,this.lastTokStart=V.lastTokStart,this.lastTokStartLoc=V.lastTokStartLoc,this.type=V.type,this.start=V.start,this.end=V.end,this.context=V.context,this.startLoc=V.startLoc,this.lastTokEndLoc=V.lastTokEndLoc,this.curLine=V.curLine,this.lineStart=V.lineStart,this.curPosition=V.curPosition,this.containsEsc=V.containsEsc}tsLookAhead(V){let H=this.getCurLookaheadState(),Q=V();return this.setLookaheadState(H),Q}lookahead(V){let H=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,V!==void 0)for(let Y=0;Y<V;Y++)this.nextToken();else this.nextToken();this.isLookahead=!1;let Q=this.getCurLookaheadState();return this.setLookaheadState(H),Q}readWord(){let V=this.readWord1(),H=N.name;if(this.keywords.test(V))H=G[V];else if(new RegExp(w).test(V))H=D[V];return this.finishToken(H,V)}skipBlockComment(){let V;if(!this.isLookahead)V=this.options.onComment&&this.curPosition();let H=this.pos,Q=this.input.indexOf("*/",this.pos+=2);if(Q===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=Q+2,this.options.locations)for(let Y,L=H;(Y=H8(this.input,L,this.pos))>-1;)++this.curLine,L=this.lineStart=Y;if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!0,this.input.slice(H+2,Q),H,this.pos,V,this.curPosition())}skipLineComment(V){let H=this.pos,Q;if(!this.isLookahead)Q=this.options.onComment&&this.curPosition();let Y=this.input.charCodeAt(this.pos+=V);while(this.pos<this.input.length&&!F(Y))Y=this.input.charCodeAt(++this.pos);if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!1,this.input.slice(H+V,this.pos),H,this.pos,Q,this.curPosition())}finishToken(V,H){if(this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();let Q=this.type;if(this.type=V,this.value=H,!this.isLookahead)this.updateContext(Q)}resetStartLocation(V,H,Q){if(V.start=H,V.loc.start=Q,this.options.ranges)V.range[0]=H}isLineTerminator(){return this.eat(N.semi)||super.canInsertSemicolon()}hasFollowingLineBreak(){return R0.lastIndex=this.end,R0.test(this.input)}addExtra(V,H,Q,Y=!0){if(!V)return;let L=V.extra=V.extra||{};if(Y)L[H]=Q;else Object.defineProperty(L,H,{enumerable:Y,value:Q})}isLiteralPropertyName(){return P(this.type)}hasPrecedingLineBreak(){return z.test(this.input.slice(this.lastTokEnd,this.start))}createIdentifier(V,H){return V.name=H,this.finishNode(V,"Identifier")}resetStartLocationFromNode(V,H){this.resetStartLocation(V,H.start,H.loc.start)}isThisParam(V){return V.type==="Identifier"&&V.name==="this"}isLookaheadContextual(V){let H=this.nextTokenStart();return this.isUnparsedContextual(H,V)}ts_type_isContextual(V,H){return V===H&&!this.containsEsc}ts_isContextual(V){return this.type===V&&!this.containsEsc}ts_isContextualWithState(V,H){return V.type===H&&!V.containsEsc}isContextualWithState(V,H){return H.type===N.name&&H.value===V&&!H.containsEsc}tsIsStartOfMappedType(){if(this.next(),this.eat(N.plusMin))return this.ts_isContextual(D.readonly);if(this.ts_isContextual(D.readonly))this.next();if(!this.match(N.bracketL))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(N._in)}tsInDisallowConditionalTypesContext(V){let H=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return V()}finally{this.inDisallowConditionalTypesContext=H}}tsTryParseType(){return this.tsEatThenParseType(N.colon)}match(V){return this.type===V}matchJsx(V){return this.type===$.tokTypes[V]}ts_eatWithState(V,H,Q){let Y=Q.type;if(V===Y){for(let L=0;L<H;L++)this.next();return!0}else return!1}ts_eatContextualWithState(V,H,Q){if(w.test(V)){if(this.ts_isContextualWithState(Q,D[V])){for(let Y=0;Y<H;Y++)this.next();return!0}return!1}else{if(!this.isContextualWithState(V,Q))return!1;for(let Y=0;Y<H;Y++)this.next();return!0}}canHaveLeadingDecorator(){return this.match(N._class)||this.isAbstractClass()}eatContextual(V){if(w.test(V)){if(this.ts_isContextual(D[V]))return this.next(),!0;return!1}else return super.eatContextual(V)}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookaheadCharCode()===40}tsParseExternalModuleReference(){let V=this.startNode();if(this.expectContextual("require"),this.expect(N.parenL),!this.match(N.string))this.unexpected();return V.expression=this.parseExprAtom(),this.expect(N.parenR),this.finishNode(V,"TSExternalModuleReference")}tsParseEntityName(V=!0){let H=this.parseIdent(V);while(this.eat(N.dot)){let Q=this.startNodeAtNode(H);Q.left=H,Q.right=this.parseIdent(V),H=this.finishNode(Q,"TSQualifiedName")}return H}tsParseEnumMember(){let V=this.startNode();if(V.id=this.match(N.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(N.eq))V.initializer=this.parseMaybeAssign();return this.finishNode(V,"TSEnumMember")}tsParseEnumDeclaration(V,H={}){if(H.const)V.const=!0;if(H.declare)V.declare=!0;return this.expectContextual("enum"),V.id=this.parseIdent(),this.checkLValSimple(V.id),this.expect(N.braceL),V.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(N.braceR),this.finishNode(V,"TSEnumDeclaration")}tsParseModuleBlock(){let V=this.startNode();this.enterScope(V2),this.expect(N.braceL),V.body=[];while(this.type!==N.braceR){let H=this.parseStatement(null,!0);V.body.push(H)}return this.next(),super.exitScope(),this.finishNode(V,"TSModuleBlock")}tsParseAmbientExternalModuleDeclaration(V){if(this.ts_isContextual(D.global))V.global=!0,V.id=this.parseIdent();else if(this.match(N.string))V.id=this.parseLiteral(this.value);else this.unexpected();if(this.match(N.braceL))this.enterScope(F8),V.body=this.tsParseModuleBlock(),super.exitScope();else super.semicolon();return this.finishNode(V,"TSModuleDeclaration")}tsTryParseDeclare(V){if(this.isLineTerminator())return;let H=this.type,Q;if(this.isContextual("let"))H=N._var,Q="let";return this.tsInAmbientContext(()=>{if(H===N._function)return V.declare=!0,this.parseFunctionStatement(V,!1,!0);if(H===N._class)return V.declare=!0,this.parseClass(V,!0);if(H===D.enum)return this.tsParseEnumDeclaration(V,{declare:!0});if(H===D.global)return this.tsParseAmbientExternalModuleDeclaration(V);if(H===N._const||H===N._var){if(!this.match(N._const)||!this.isLookaheadContextual("enum"))return V.declare=!0,this.parseVarStatement(V,Q||this.value,!0);return this.expect(N._const),this.tsParseEnumDeclaration(V,{const:!0,declare:!0})}if(H===D.interface){let Y=this.tsParseInterfaceDeclaration(V,{declare:!0});if(Y)return Y}if(f(H))return this.tsParseDeclaration(V,this.value,!0)})}tsIsListTerminator(V){switch(V){case"EnumMembers":case"TypeMembers":return this.match(N.braceR);case"HeritageClauseElement":return this.match(N.braceL);case"TupleElementTypes":return this.match(N.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}}tsParseDelimitedListWorker(V,H,Q,Y){let L=[],S=-1;for(;;){if(this.tsIsListTerminator(V))break;S=-1;let K=H();if(K==null)return;if(L.push(K),this.eat(N.comma)){S=this.lastTokStart;continue}if(this.tsIsListTerminator(V))break;if(Q)this.expect(N.comma);return}if(Y)Y.value=S;return L}tsParseDelimitedList(V,H,Q){return z2(this.tsParseDelimitedListWorker(V,H,!0,Q))}tsParseBracketedList(V,H,Q,Y,L){if(!Y)if(Q)this.expect(N.bracketL);else this.expect(N.relational);let S=this.tsParseDelimitedList(V,H,L);if(Q)this.expect(N.bracketR);else this.expect(N.relational);return S}tsParseTypeParameterName(){return this.parseIdent().name}tsEatThenParseType(V){return!this.match(V)?void 0:this.tsNextThenParseType()}tsExpectThenParseType(V){return this.tsDoThenParseType(()=>this.expect(V))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(V){return this.tsInType(()=>{return V(),this.tsParseType()})}tsSkipParameterStart(){if(f(this.type)||this.match(N._this))return this.next(),!0;if(this.match(N.braceL))try{return this.parseObj(!0),!0}catch{return!1}if(this.match(N.bracketL)){this.next();try{return this.parseBindingList(N.bracketR,!0,!0),!0}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(N.parenR)||this.match(N.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(N.colon)||this.match(N.comma)||this.match(N.question)||this.match(N.eq))return!0;if(this.match(N.parenR)){if(this.next(),this.match(N.arrow))return!0}}return!1}tsIsStartOfFunctionType(){if(this.tsMatchLeftRelational())return!0;return this.match(N.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsInAllowConditionalTypesContext(V){let H=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return V()}finally{this.inDisallowConditionalTypesContext=H}}tsParseBindingListForSignature(){return super.parseBindingList(N.parenR,!0,!0).map((V)=>{if(V.type!=="Identifier"&&V.type!=="RestElement"&&V.type!=="ObjectPattern"&&V.type!=="ArrayPattern")this.raise(V.start,M.UnsupportedSignatureParameterKind({type:V.type}));return V})}tsParseTypePredicateAsserts(){if(this.type!==D.asserts)return!1;let V=this.containsEsc;if(this.next(),!f(this.type)&&!this.match(N._this))return!1;if(V)this.raise(this.lastTokStart,"Escape sequence in keyword asserts");return!0}tsParseThisTypeNode(){let V=this.startNode();return this.next(),this.finishNode(V,"TSThisType")}tsParseTypeAnnotation(V=!0,H=this.startNode()){return this.tsInType(()=>{if(V)this.expect(N.colon);H.typeAnnotation=this.tsParseType()}),this.finishNode(H,"TSTypeAnnotation")}tsParseThisTypePredicate(V){this.next();let H=this.startNodeAtNode(V);return H.parameterName=V,H.typeAnnotation=this.tsParseTypeAnnotation(!1),H.asserts=!1,this.finishNode(H,"TSTypePredicate")}tsParseThisTypeOrThisTypePredicate(){let V=this.tsParseThisTypeNode();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(V);else return V}tsParseTypePredicatePrefix(){let V=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),V}tsParseTypeOrTypePredicateAnnotation(V){return this.tsInType(()=>{let H=this.startNode();this.expect(V);let Q=this.startNode(),Y=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(Y&&this.match(N._this)){let K=this.tsParseThisTypeOrThisTypePredicate();if(K.type==="TSThisType")Q.parameterName=K,Q.asserts=!0,Q.typeAnnotation=null,K=this.finishNode(Q,"TSTypePredicate");else this.resetStartLocationFromNode(K,Q),K.asserts=!0;return H.typeAnnotation=K,this.finishNode(H,"TSTypeAnnotation")}let L=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!L){if(!Y)return this.tsParseTypeAnnotation(!1,H);return Q.parameterName=this.parseIdent(),Q.asserts=Y,Q.typeAnnotation=null,H.typeAnnotation=this.finishNode(Q,"TSTypePredicate"),this.finishNode(H,"TSTypeAnnotation")}let S=this.tsParseTypeAnnotation(!1);return Q.parameterName=L,Q.typeAnnotation=S,Q.asserts=Y,H.typeAnnotation=this.finishNode(Q,"TSTypePredicate"),this.finishNode(H,"TSTypeAnnotation")})}tsFillSignature(V,H){let Q=V===N.arrow,Y="parameters",L="typeAnnotation";if(H.typeParameters=this.tsTryParseTypeParameters(),this.expect(N.parenL),H.parameters=this.tsParseBindingListForSignature(),Q)H.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(V);else if(this.match(V))H.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(V)}tsTryNextParseConstantContext(){if(this.lookahead().type!==N._const)return null;this.next();let V=this.tsParseTypeReference();if(V.typeParameters||V.typeArguments)this.raise(V.typeName.start,M.CannotFindName({name:"const"}));return V}tsParseFunctionOrConstructorType(V,H){let Q=this.startNode();if(V==="TSConstructorType"){if(Q.abstract=!!H,H)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(N.arrow,Q)),this.finishNode(Q,V)}tsParseUnionOrIntersectionType(V,H,Q){let Y=this.startNode(),L=this.eat(Q),S=[];do S.push(H());while(this.eat(Q));if(S.length===1&&!L)return S[0];return Y.types=S,this.finishNode(Y,V)}tsCheckTypeAnnotationForReadOnly(V){switch(V.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(V.start,M.UnexpectedReadonly)}}tsParseTypeOperator(){let V=this.startNode(),H=this.value;if(this.next(),V.operator=H,V.typeAnnotation=this.tsParseTypeOperatorOrHigher(),H==="readonly")this.tsCheckTypeAnnotationForReadOnly(V);return this.finishNode(V,"TSTypeOperator")}tsParseConstraintForInferType(){if(this.eat(N._extends)){let V=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.inDisallowConditionalTypesContext||!this.match(N.question))return V}}tsParseInferType(){let V=this.startNode();this.expectContextual("infer");let H=this.startNode();return H.name=this.tsParseTypeParameterName(),H.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),V.typeParameter=this.finishNode(H,"TSTypeParameter"),this.finishNode(V,"TSInferType")}tsParseLiteralTypeNode(){let V=this.startNode();return V.literal=(()=>{switch(this.type){case N.num:case N.string:case N._true:case N._false:return this.parseExprAtom();default:this.unexpected()}})(),this.finishNode(V,"TSLiteralType")}tsParseImportType(){let V=this.startNode();if(this.expect(N._import),this.expect(N.parenL),!this.match(N.string))this.raise(this.start,M.UnsupportedImportTypeArgument);if(V.argument=this.parseExprAtom(),this.expect(N.parenR),this.eat(N.dot))V.qualifier=this.tsParseEntityName();if(this.tsMatchLeftRelational())V.typeArguments=this.tsParseTypeArguments();return this.finishNode(V,"TSImportType")}tsParseTypeQuery(){let V=this.startNode();if(this.expect(N._typeof),this.match(N._import))V.exprName=this.tsParseImportType();else V.exprName=this.tsParseEntityName();if(!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())V.typeArguments=this.tsParseTypeArguments();return this.finishNode(V,"TSTypeQuery")}tsParseMappedTypeParameter(){let V=this.startNode();return V.name=this.tsParseTypeParameterName(),V.constraint=this.tsExpectThenParseType(N._in),this.finishNode(V,"TSTypeParameter")}tsParseMappedType(){let V=this.startNode();if(this.expect(N.braceL),this.match(N.plusMin))V.readonly=this.value,this.next(),this.expectContextual("readonly");else if(this.eatContextual("readonly"))V.readonly=!0;if(this.expect(N.bracketL),V.typeParameter=this.tsParseMappedTypeParameter(),V.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(N.bracketR),this.match(N.plusMin))V.optional=this.value,this.next(),this.expect(N.question);else if(this.eat(N.question))V.optional=!0;return V.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(N.braceR),this.finishNode(V,"TSMappedType")}tsParseTypeLiteral(){let V=this.startNode();return V.members=this.tsParseObjectTypeMembers(),this.finishNode(V,"TSTypeLiteral")}tsParseTupleElementType(){let V=this.startLoc,H=this.start,Q=this.eat(N.ellipsis),Y=this.tsParseType(),L=this.eat(N.question);if(this.eat(N.colon)){let K=this.startNodeAtNode(Y);if(K.optional=L,Y.type==="TSTypeReference"&&!Y.typeArguments&&Y.typeName.type==="Identifier")K.label=Y.typeName;else this.raise(Y.start,M.InvalidTupleMemberLabel),K.label=Y;K.elementType=this.tsParseType(),Y=this.finishNode(K,"TSNamedTupleMember")}else if(L){let K=this.startNodeAtNode(Y);K.typeAnnotation=Y,Y=this.finishNode(K,"TSOptionalType")}if(Q){let K=this.startNodeAt(H,V);K.typeAnnotation=Y,Y=this.finishNode(K,"TSRestType")}return Y}tsParseTupleType(){let V=this.startNode();V.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let H=!1;return V.elementTypes.forEach((Q)=>{let{type:Y}=Q;if(H&&Y!=="TSRestType"&&Y!=="TSOptionalType"&&!(Y==="TSNamedTupleMember"&&Q.optional))this.raise(Q.start,M.OptionalTypeBeforeRequired);if(H||=Y==="TSNamedTupleMember"&&Q.optional||Y==="TSOptionalType",Y==="TSRestType")Q=Q.typeAnnotation}),this.finishNode(V,"TSTupleType")}tsParseTemplateLiteralType(){let V=this.startNode();return V.literal=this.parseTemplate({isTagged:!1}),this.finishNode(V,"TSLiteralType")}tsParseTypeReference(){let V=this.startNode();if(V.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())V.typeArguments=this.tsParseTypeArguments();return this.finishNode(V,"TSTypeReference")}tsMatchLeftRelational(){return this.match(N.relational)&&this.value==="<"}tsMatchRightRelational(){return this.match(N.relational)&&this.value===">"}tsParseParenthesizedType(){let V=this.startNode();return this.expect(N.parenL),V.typeAnnotation=this.tsParseType(),this.expect(N.parenR),this.finishNode(V,"TSParenthesizedType")}tsParseNonArrayType(){switch(this.type){case N.string:case N.num:case N._true:case N._false:return this.tsParseLiteralTypeNode();case N.plusMin:if(this.value==="-"){let V=this.startNode();if(this.lookahead().type!==N.num)this.unexpected();return V.literal=this.parseMaybeUnary(),this.finishNode(V,"TSLiteralType")}break;case N._this:return this.tsParseThisTypeOrThisTypePredicate();case N._typeof:return this.tsParseTypeQuery();case N._import:return this.tsParseImportType();case N.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case N.bracketL:return this.tsParseTupleType();case N.parenL:return this.tsParseParenthesizedType();case N.backQuote:case N.dollarBraceL:return this.tsParseTemplateLiteralType();default:{let{type:V}=this;if(f(V)||V===N._void||V===N._null){let H=V===N._void?"TSVoidKeyword":V===N._null?"TSNullKeyword":T2(this.value);if(H!==void 0&&this.lookaheadCharCode()!==46){let Q=this.startNode();return this.next(),this.finishNode(Q,H)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let V=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(N.bracketL))if(this.match(N.bracketR)){let H=this.startNodeAtNode(V);H.elementType=V,this.expect(N.bracketR),V=this.finishNode(H,"TSArrayType")}else{let H=this.startNodeAtNode(V);H.objectType=V,H.indexType=this.tsParseType(),this.expect(N.bracketR),V=this.finishNode(H,"TSIndexedAccessType")}return V}tsParseTypeOperatorOrHigher(){return E(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),N.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),N.bitwiseOR)}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(N._new))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseType(){$0(this.inType);let V=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(N._extends))return V;let H=this.startNodeAtNode(V);return H.checkType=V,H.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(N.question),H.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(N.colon),H.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(H,"TSConditionalType")}tsIsUnambiguouslyIndexSignature(){if(this.next(),f(this.type))return this.next(),this.match(N.colon);return!1}tsInType(V){let H=this.inType;this.inType=!0;try{return V()}finally{this.inType=H}}tsTryParseIndexSignature(V){if(!(this.match(N.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(N.bracketL);let H=this.parseIdent();H.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(H),this.expect(N.bracketR),V.parameters=[H];let Q=this.tsTryParseTypeAnnotation();if(Q)V.typeAnnotation=Q;return this.tsParseTypeMemberSemicolon(),this.finishNode(V,"TSIndexSignature")}tsParseNoneModifiers(V){this.tsParseModifiers({modified:V,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:M.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(V=this.tsParseNoneModifiers.bind(this)){let H=this.startNode();return V(H),H.name=this.tsParseTypeParameterName(),H.constraint=this.tsEatThenParseType(N._extends),H.default=this.tsEatThenParseType(N.eq),this.finishNode(H,"TSTypeParameter")}tsParseTypeParameters(V){let H=this.startNode();if(this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart"))this.next();else this.unexpected();let Q={value:-1};if(H.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,V),!1,!0,Q),H.params.length===0)this.raise(this.start,M.EmptyTypeParameters);if(Q.value!==-1)this.addExtra(H,"trailingComma",Q.value);return this.finishNode(H,"TSTypeParameterDeclaration")}tsTryParseTypeParameters(V){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(V)}tsTryParse(V){let H=this.getCurLookaheadState(),Q=V();if(Q!==void 0&&Q!==!1)return Q;else{this.setLookaheadState(H);return}}tsTokenCanFollowModifier(){return(this.match(N.bracketL)||this.match(N.braceL)||this.match(N.star)||this.match(N.ellipsis)||this.match(N.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(!0),this.tsTokenCanFollowModifier()}tsParseModifier(V,H){let Q=this.value;if(V.indexOf(Q)!==-1&&!this.containsEsc){if(H&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return Q}return}tsParseModifiersByMap({modified:V,map:H}){for(let Q of Object.keys(H))V[Q]=H[Q]}tsParseModifiers({modified:V,allowedModifiers:H,disallowedModifiers:Q,stopOnStartOfClassStaticBlock:Y,errorTemplate:L=M.InvalidModifierOnTypeMember}){let S={},K=(j,X,I,v)=>{if(X===I&&V[v])this.raise(j.column,M.InvalidModifiersOrder({orderedModifiers:[I,v]}))},A=(j,X,I,v)=>{if(V[I]&&X===v||V[v]&&X===I)this.raise(j.column,M.IncompatibleModifiers({modifiers:[I,v]}))};for(;;){let j=this.startLoc,X=this.tsParseModifier(H.concat(Q??[]),Y);if(!X)break;if(F0(X))if(V.accessibility)this.raise(this.start,M.DuplicateAccessibilityModifier());else K(j,X,X,"override"),K(j,X,X,"static"),K(j,X,X,"readonly"),K(j,X,X,"accessor"),S.accessibility=X,V.accessibility=X;else if(S2(X))if(V[X])this.raise(this.start,M.DuplicateModifier({modifier:X}));else K(j,X,"in","out"),S[X]=X,V[X]=!0;else if(D2(X))if(V[X])this.raise(this.start,M.DuplicateModifier({modifier:X}));else A(j,X,"accessor","readonly"),A(j,X,"accessor","static"),A(j,X,"accessor","override"),S[X]=X,V[X]=!0;else if(X==="const")if(V[X])this.raise(this.start,M.DuplicateModifier({modifier:X}));else S[X]=X,V[X]=!0;else if(Object.hasOwnProperty.call(V,X))this.raise(this.start,M.DuplicateModifier({modifier:X}));else K(j,X,"static","readonly"),K(j,X,"static","override"),K(j,X,"override","readonly"),K(j,X,"abstract","override"),A(j,X,"declare","override"),A(j,X,"static","abstract"),S[X]=X,V[X]=!0;if(Q?.includes(X))this.raise(this.start,L)}return S}tsParseInOutModifiers(V){this.tsParseModifiers({modified:V,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:M.InvalidModifierOnTypeParameter})}parseMaybeUnary(V,H,Q,Y){if(!q?.jsx&&this.tsMatchLeftRelational())return this.tsParseTypeAssertion();else return super.parseMaybeUnary(V,H,Q,Y)}tsParseTypeAssertion(){if(R)this.raise(this.start,M.ReservedTypeAssertion);let V=this.tryParse(()=>{let H=this.startNode(),Q=this.tsTryNextParseConstantContext();return H.typeAnnotation=Q||this.tsNextThenParseType(),this.expect(N.relational),H.expression=this.parseMaybeUnary(),this.finishNode(H,"TSTypeAssertion")});if(V.error)return this.tsParseTypeParameters(this.tsParseConstModifier);else return V.node}tsParseTypeArguments(){let V=this.startNode();if(V.params=this.tsInType(()=>this.tsInNoContext(()=>{return this.expect(N.relational),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),V.params.length===0)this.raise(this.start,M.EmptyTypeArguments);return this.exprAllowed=!1,this.expect(N.relational),this.finishNode(V,"TSTypeParameterInstantiation")}tsParseHeritageClause(V){let H=this.start,Q=this.tsParseDelimitedList("HeritageClauseElement",()=>{let Y=this.startNode();if(Y.expression=this.tsParseEntityName(),this.tsMatchLeftRelational())Y.typeParameters=this.tsParseTypeArguments();return this.finishNode(Y,"TSExpressionWithTypeArguments")});if(!Q.length)this.raise(H,M.EmptyHeritageClauseType({token:V}));return Q}tsParseTypeMemberSemicolon(){if(!this.eat(N.comma)&&!this.isLineTerminator())this.expect(N.semi)}tsTryParseAndCatch(V){let H=this.tryParse((Q)=>V()||Q());if(H.aborted||!H.node)return;if(H.error)this.setLookaheadState(H.failState);return H.node}tsParseSignatureMember(V,H){return this.tsFillSignature(N.colon,H),this.tsParseTypeMemberSemicolon(),this.finishNode(H,V)}tsParsePropertyOrMethodSignature(V,H){if(this.eat(N.question))V.optional=!0;let Q=V;if(this.match(N.parenL)||this.tsMatchLeftRelational()){if(H)this.raise(V.start,M.ReadonlyForMethodSignature);let Y=Q;if(Y.kind&&this.tsMatchLeftRelational())this.raise(this.start,M.AccesorCannotHaveTypeParameters);this.tsFillSignature(N.colon,Y),this.tsParseTypeMemberSemicolon();let L="parameters",S="typeAnnotation";if(Y.kind==="get"){if(Y[L].length>0){if(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(Y[L][0]))this.raise(this.start,M.AccesorCannotDeclareThisParameter)}}else if(Y.kind==="set"){if(Y[L].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{let K=Y[L][0];if(this.isThisParam(K))this.raise(this.start,M.AccesorCannotDeclareThisParameter);if(K.type==="Identifier"&&K.optional)this.raise(this.start,M.SetAccesorCannotHaveOptionalParameter);if(K.type==="RestElement")this.raise(this.start,M.SetAccesorCannotHaveRestParameter)}if(Y[S])this.raise(Y[S].start,M.SetAccesorCannotHaveReturnType)}else Y.kind="method";return this.finishNode(Y,"TSMethodSignature")}else{let Y=Q;if(H)Y.readonly=!0;let L=this.tsTryParseTypeAnnotation();if(L)Y.typeAnnotation=L;return this.tsParseTypeMemberSemicolon(),this.finishNode(Y,"TSPropertySignature")}}tsParseTypeMember(){let V=this.startNode();if(this.match(N.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",V);if(this.match(N._new)){let Q=this.startNode();if(this.next(),this.match(N.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSConstructSignatureDeclaration",V);else return V.key=this.createIdentifier(Q,"new"),this.tsParsePropertyOrMethodSignature(V,!1)}this.tsParseModifiers({modified:V,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]});let H=this.tsTryParseIndexSignature(V);if(H)return H;if(this.parsePropertyName(V),!V.computed&&V.key.type==="Identifier"&&(V.key.name==="get"||V.key.name==="set")&&this.tsTokenCanFollowModifier())V.kind=V.key.name,this.parsePropertyName(V);return this.tsParsePropertyOrMethodSignature(V,!!V.readonly)}tsParseList(V,H){let Q=[];while(!this.tsIsListTerminator(V))Q.push(H());return Q}tsParseObjectTypeMembers(){this.expect(N.braceL);let V=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(N.braceR),V}tsParseInterfaceDeclaration(V,H={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual("interface"),H.declare)V.declare=!0;if(f(this.type))V.id=this.parseIdent(),this.checkLValSimple(V.id,k.BIND_TS_INTERFACE);else V.id=null,this.raise(this.start,M.MissingInterfaceName);if(V.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(N._extends))V.extends=this.tsParseHeritageClause("extends");let Q=this.startNode();return Q.body=this.tsParseInterfaceBody(),V.body=this.finishNode(Q,"TSInterfaceBody"),this.finishNode(V,"TSInterfaceDeclaration")}tsParseInterfaceBody(){this.expect(N.braceL);let V=this.inType;this.inType=!0;let H=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.inType=V,this.expect(N.braceR),H}tsParseAbstractDeclaration(V){if(this.match(N._class))return V.abstract=!0,this.parseClass(V,!0);else if(this.ts_isContextual(D.interface)){if(!this.hasFollowingLineBreak())return V.abstract=!0,this.tsParseInterfaceDeclaration(V)}else this.unexpected(V.start)}tsIsDeclarationStart(){return s(this.type)}tsParseExpressionStatement(V,H){switch(H.name){case"declare":{let Q=this.tsTryParseDeclare(V);if(Q)return Q.declare=!0,Q;break}case"global":if(this.match(N.braceL)){this.enterScope(F8);let Q=V;return Q.global=!0,Q.id=H,Q.body=this.tsParseModuleBlock(),super.exitScope(),this.finishNode(Q,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(V,H.name,!1)}}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsIsExportDefaultSpecifier(){let{type:V}=this,H=this.isAsyncFunction(),Q=this.isLet();if(f(V)){if(H&&!this.containsEsc||Q)return!1;if((V===D.type||V===D.interface)&&!this.containsEsc){let S=this.lookahead();if(f(S.type)&&!this.isContextualWithState("from",S)||S.type===N.braceL)return!1}}else if(!this.match(N._default))return!1;let Y=this.nextTokenStart(),L=this.isUnparsedContextual(Y,"from");if(this.input.charCodeAt(Y)===44||f(this.type)&&L)return!0;if(this.match(N._default)&&L){let S=this.input.charCodeAt(this.nextTokenStartSince(Y+4));return S===34||S===39}return!1}tsInAmbientContext(V){let H=this.isAmbientContext;this.isAmbientContext=!0;try{return V()}finally{this.isAmbientContext=H}}tsCheckLineTerminator(V){if(V){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsParseModuleOrNamespaceDeclaration(V,H=!1){if(V.id=this.parseIdent(),!H)this.checkLValSimple(V.id,k.BIND_TS_NAMESPACE);if(this.eat(N.dot)){let Q=this.startNode();this.tsParseModuleOrNamespaceDeclaration(Q,!0),V.body=Q}else this.enterScope(F8),V.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(V,"TSModuleDeclaration")}checkLValSimple(V,H=k.BIND_NONE,Q){if(V.type==="TSNonNullExpression"||V.type==="TSAsExpression")V=V.expression;return super.checkLValSimple(V,H,Q)}tsParseTypeAliasDeclaration(V){return V.id=this.parseIdent(),this.checkLValSimple(V.id,k.BIND_TS_TYPE),V.typeAnnotation=this.tsInType(()=>{if(V.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(N.eq),this.ts_isContextual(D.interface)&&this.lookahead().type!==N.dot){let H=this.startNode();return this.next(),this.finishNode(H,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(V,"TSTypeAliasDeclaration")}tsParseDeclaration(V,H,Q){switch(H){case"abstract":if(this.tsCheckLineTerminator(Q)&&(this.match(N._class)||f(this.type)))return this.tsParseAbstractDeclaration(V);break;case"module":if(this.tsCheckLineTerminator(Q)){if(this.match(N.string))return this.tsParseAmbientExternalModuleDeclaration(V);else if(f(this.type))return this.tsParseModuleOrNamespaceDeclaration(V)}break;case"namespace":if(this.tsCheckLineTerminator(Q)&&f(this.type))return this.tsParseModuleOrNamespaceDeclaration(V);break;case"type":if(this.tsCheckLineTerminator(Q)&&f(this.type))return this.tsParseTypeAliasDeclaration(V);break}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.value,!0)}tsParseImportEqualsDeclaration(V,H){V.isExport=H||!1,V.id=this.parseIdent(),this.checkLValSimple(V.id,k.BIND_LEXICAL),super.expect(N.eq);let Q=this.tsParseModuleReference();if(V.importKind==="type"&&Q.type!=="TSExternalModuleReference")this.raise(Q.start,M.ImportAliasHasImportType);return V.moduleReference=Q,super.semicolon(),this.finishNode(V,"TSImportEqualsDeclaration")}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;let{type:V}=this;if(f(V)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((V===D.type||V===D.interface)&&!this.containsEsc){let Y=this.lookahead();if(f(Y.type)&&!this.isContextualWithState("from",Y)||Y.type===N.braceL)return!1}}else if(!this.match(N._default))return!1;let H=this.nextTokenStart(),Q=this.isUnparsedContextual(H,"from");if(this.input.charCodeAt(H)===44||f(this.type)&&Q)return!0;if(this.match(N._default)&&Q){let Y=this.input.charCodeAt(this.nextTokenStartSince(H+4));return Y===34||Y===39}return!1}parseTemplate({isTagged:V=!1}={}){let H=this.startNode();this.next(),H.expressions=[];let Q=this.parseTemplateElement({isTagged:V});H.quasis=[Q];while(!Q.tail){if(this.type===N.eof)this.raise(this.pos,"Unterminated template literal");this.expect(N.dollarBraceL),H.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(N.braceR),H.quasis.push(Q=this.parseTemplateElement({isTagged:V}))}return this.next(),this.finishNode(H,"TemplateLiteral")}parseFunction(V,H,Q,Y,L){if(this.initFunction(V),this.ecmaVersion>=9||this.ecmaVersion>=6&&!Y){if(this.type===N.star&&H&Y0)this.unexpected();V.generator=this.eat(N.star)}if(this.ecmaVersion>=8)V.async=!!Y;if(H&O8)V.id=H&K2&&this.type!==N.name?null:this.parseIdent();let S=this.yieldPos,K=this.awaitPos,A=this.awaitIdentPos,j=this.maybeInArrowParameters;if(this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(a8(V.async,V.generator)),!(H&O8))V.id=this.type===N.name?this.parseIdent():null;this.parseFunctionParams(V);let X=H&O8;if(this.parseFunctionBody(V,Q,!1,L,{isFunctionDeclaration:X}),this.yieldPos=S,this.awaitPos=K,this.awaitIdentPos=A,H&O8&&V.id&&!(H&Y0))if(V.body)this.checkLValSimple(V.id,this.strict||V.generator||V.async?this.treatFunctionsAsVar?k.BIND_VAR:k.BIND_LEXICAL:k.BIND_FUNCTION);else this.checkLValSimple(V.id,k.BIND_NONE);return this.maybeInArrowParameters=j,this.finishNode(V,X?"FunctionDeclaration":"FunctionExpression")}parseFunctionBody(V,H=!1,Q=!1,Y=!1,L){if(this.match(N.colon))V.returnType=this.tsParseTypeOrTypePredicateAnnotation(N.colon);let S=L?.isFunctionDeclaration?"TSDeclareFunction":L?.isClassMethod?"TSDeclareMethod":void 0;if(S&&!this.match(N.braceL)&&this.isLineTerminator())return this.exitScope(),this.finishNode(V,S);if(S==="TSDeclareFunction"&&this.isAmbientContext){if(this.raise(V.start,M.DeclareFunctionHasImplementation),V.declare)return super.parseFunctionBody(V,H,Q,!1),this.finishNode(V,S)}return super.parseFunctionBody(V,H,Q,Y),V}parseNew(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");let V=this.startNode(),H=this.parseIdent(!0);if(this.ecmaVersion>=6&&this.eat(N.dot)){V.meta=H;let K=this.containsEsc;if(V.property=this.parseIdent(!0),V.property.name!=="target")this.raiseRecoverable(V.property.start,"The only valid meta property for new is 'new.target'");if(K)this.raiseRecoverable(V.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(V.start,"'new.target' can only be used in functions and class static block");return this.finishNode(V,"MetaProperty")}let Q=this.start,Y=this.startLoc,L=this.type===N._import;if(V.callee=this.parseSubscripts(this.parseExprAtom(),Q,Y,!0,!1),L&&V.callee.type==="ImportExpression")this.raise(Q,"Cannot use new with import()");let{callee:S}=V;if(S.type==="TSInstantiationExpression"&&!S.extra?.parenthesized)V.typeArguments=S.typeArguments,V.callee=S.expression;if(this.eat(N.parenL))V.arguments=this.parseExprList(N.parenR,this.ecmaVersion>=8,!1);else V.arguments=[];return this.finishNode(V,"NewExpression")}parseExprOp(V,H,Q,Y,L){if(N._in.binop>Y&&!this.hasPrecedingLineBreak()){let S;if(this.isContextual("as"))S="TSAsExpression";if(this.isContextual("satisfies"))S="TSSatisfiesExpression";if(S){let K=this.startNodeAt(H,Q);K.expression=V;let A=this.tsTryNextParseConstantContext();if(A)K.typeAnnotation=A;else K.typeAnnotation=this.tsNextThenParseType();return this.finishNode(K,S),this.reScan_lt_gt(),this.parseExprOp(K,H,Q,Y,L)}}return super.parseExprOp(V,H,Q,Y,L)}parseImportSpecifiers(){let V=[],H=!0;if($.tokenIsIdentifier(this.type)){if(V.push(this.parseImportDefaultSpecifier()),!this.eat(N.comma))return V}if(this.type===N.star)return V.push(this.parseImportNamespaceSpecifier()),V;this.expect(N.braceL);while(!this.eat(N.braceR)){if(!H){if(this.expect(N.comma),this.afterTrailingComma(N.braceR))break}else H=!1;V.push(this.parseImportSpecifier())}return V}parseImport(V){let H=this.lookahead();if(V.importKind="value",this.importOrExportOuterKind="value",f(H.type)||this.match(N.star)||this.match(N.braceL)){let Q=this.lookahead(2);if(Q.type!==N.comma&&!this.isContextualWithState("from",Q)&&Q.type!==N.eq&&this.ts_eatContextualWithState("type",1,H))this.importOrExportOuterKind="type",V.importKind="type",H=this.lookahead(),Q=this.lookahead(2);if(f(H.type)&&Q.type===N.eq){this.next();let Y=this.tsParseImportEqualsDeclaration(V);return this.importOrExportOuterKind="value",Y}}if(this.next(),this.type===N.string)V.specifiers=[],V.source=this.parseExprAtom();else V.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),V.source=this.type===N.string?this.parseExprAtom():this.unexpected();if(this.parseMaybeImportAttributes(V),this.semicolon(),this.finishNode(V,"ImportDeclaration"),this.importOrExportOuterKind="value",V.importKind==="type"&&V.specifiers.length>1&&V.specifiers[0].type==="ImportDefaultSpecifier")this.raise(V.start,M.TypeImportCannotSpecifyDefaultAndNamed);return V}parseExportDefaultDeclaration(){if(this.isAbstractClass()){let V=this.startNode();return this.next(),V.abstract=!0,this.parseClass(V,!0)}if(this.match(D.interface)){let V=this.tsParseInterfaceDeclaration(this.startNode());if(V)return V}return super.parseExportDefaultDeclaration()}parseExportAllDeclaration(V,H){if(this.ecmaVersion>=11)if(this.eatContextual("as"))V.exported=this.parseModuleExportName(),this.checkExport(H,V.exported,this.lastTokStart);else V.exported=null;if(this.expectContextual("from"),this.type!==N.string)this.unexpected();return V.source=this.parseExprAtom(),this.parseMaybeImportAttributes(V),this.semicolon(),this.finishNode(V,"ExportAllDeclaration")}parseDynamicImport(V){if(this.next(),V.source=this.parseMaybeAssign(),this.eat(N.comma)){let H=this.parseExpression();V.arguments=[H]}if(!this.eat(N.parenR)){let H=this.start;if(this.eat(N.comma)&&this.eat(N.parenR))this.raiseRecoverable(H,"Trailing comma is not allowed in import()");else this.unexpected(H)}return this.finishNode(V,"ImportExpression")}parseExport(V,H){let Q=this.lookahead();if(this.ts_eatWithState(N._import,2,Q)){if(this.ts_isContextual(D.type)&&this.lookaheadCharCode()!==61)V.importKind="type",this.importOrExportOuterKind="type",this.next();else V.importKind="value",this.importOrExportOuterKind="value";let Y=this.tsParseImportEqualsDeclaration(V,!0);return this.importOrExportOuterKind=void 0,Y}else if(this.ts_eatWithState(N.eq,2,Q)){let Y=V;return Y.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(Y,"TSExportAssignment")}else if(this.ts_eatContextualWithState("as",2,Q)){let Y=V;return this.expectContextual("namespace"),Y.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(Y,"TSNamespaceExportDeclaration")}else{let Y=this.lookahead(2).type;if(this.ts_isContextualWithState(Q,D.type)&&(Y===N.braceL||Y===N.star))this.next(),this.importOrExportOuterKind="type",V.exportKind="type";else this.importOrExportOuterKind="value",V.exportKind="value";if(this.next(),this.eat(N.star))return this.parseExportAllDeclaration(V,H);if(this.eat(N._default))return this.checkExport(H,"default",this.lastTokStart),V.declaration=this.parseExportDefaultDeclaration(),this.finishNode(V,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(V.declaration=this.parseExportDeclaration(V),V.declaration.type==="VariableDeclaration")this.checkVariableExport(H,V.declaration.declarations);else this.checkExport(H,V.declaration.id,V.declaration.id.start);V.specifiers=[],V.source=null}else{if(V.declaration=null,V.specifiers=this.parseExportSpecifiers(H),this.eatContextual("from")){if(this.type!==N.string)this.unexpected();V.source=this.parseExprAtom(),this.parseMaybeImportAttributes(V)}else{for(let L of V.specifiers)if(this.checkUnreserved(L.local),this.checkLocalExport(L.local),L.local.type==="Literal")this.raise(L.local.start,"A string literal cannot be used as an exported binding without `from`.");V.source=null}this.semicolon()}return this.finishNode(V,"ExportNamedDeclaration")}}checkExport(V,H,Q){if(!V)return;if(typeof H!=="string")H=H.type==="Identifier"?H.name:H.value;V[H]=!0}parseMaybeDefault(V,H,Q){let Y=super.parseMaybeDefault(V,H,Q);if(Y.type==="AssignmentPattern"&&Y.typeAnnotation&&Y.right.start<Y.typeAnnotation.start)this.raise(Y.typeAnnotation.start,M.TypeAnnotationAfterAssign);return Y}typeCastToParameter(V){return V.expression.typeAnnotation=V.typeAnnotation,this.resetEndLocation(V.expression,V.typeAnnotation.end,V.typeAnnotation.loc?.end),V.expression}toAssignableList(V,H){if(!V)V=[];for(let Q=0;Q<V.length;Q++){let Y=V[Q];if(Y?.type==="TSTypeCastExpression")V[Q]=this.typeCastToParameter(Y)}return super.toAssignableList(V,H)}reportReservedArrowTypeParam(V){if(V.params.length===1&&!V.extra?.trailingComma&&R)this.raise(V.start,M.ReservedArrowTypeParam)}parseExprAtom(V,H,Q){if(this.type===D.jsxText)return this.jsx_parseText();else if(this.type===D.jsxTagStart)return this.jsx_parseElement();else if(this.type===D.at)return this.parseDecorators(),this.parseExprAtom();else if(f(this.type)){let Y=this.potentialArrowAt===this.start,L=this.start,S=this.startLoc,K=this.containsEsc,A=this.parseIdent(!1);if(this.ecmaVersion>=8&&!K&&A.name==="async"&&!this.canInsertSemicolon()&&this.eat(N._function))return this.overrideContext(T.f_expr),this.parseFunction(this.startNodeAt(L,S),0,!1,!0,H);if(Y&&!this.canInsertSemicolon()){if(this.eat(N.arrow))return this.parseArrowExpression(this.startNodeAt(L,S),[A],!1,H);if(this.ecmaVersion>=8&&A.name==="async"&&this.type===N.name&&!K&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(A=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(N.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(L,S),[A],!0,H)}}return A}else return super.parseExprAtom(V,H,Q)}parseExprAtomDefault(){if(f(this.type)){let V=this.potentialArrowAt===this.start,H=this.containsEsc,Q=this.parseIdent();if(!H&&Q.name==="async"&&!this.canInsertSemicolon()){let{type:Y}=this;if(Y===N._function)return this.next(),this.parseFunction(this.startNodeAtNode(Q),void 0,!0,!0);else if(f(Y))if(this.lookaheadCharCode()===61){let L=this.parseIdent(!1);if(this.canInsertSemicolon()||!this.eat(N.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAtNode(Q),[L],!0)}else return Q}if(V&&this.match(N.arrow)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(Q),[Q],!1);return Q}else this.unexpected()}parseIdentNode(){let V=this.startNode();if(m(this.type)&&!((this.type.keyword==="class"||this.type.keyword==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)))V.name=this.value;else return super.parseIdentNode();return V}parseVarStatement(V,H,Q=!1){let{isAmbientContext:Y}=this;this.next(),super.parseVar(V,!1,H,Q||Y),this.semicolon();let L=this.finishNode(V,"VariableDeclaration");if(!Y)return L;for(let{id:S,init:K}of L.declarations){if(!K)continue;if(H!=="const"||!!S.typeAnnotation)this.raise(K.start,M.InitializerNotAllowedInAmbientContext);else if(K.type!=="StringLiteral"&&K.type!=="BooleanLiteral"&&K.type!=="NumericLiteral"&&K.type!=="BigIntLiteral"&&(K.type!=="TemplateLiteral"||K.expressions.length>0)&&!W2(K))this.raise(K.start,M.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference)}return L}parseStatement(V,H,Q){if(this.match(D.at))this.parseDecorators(!0);if(this.match(N._const)&&this.isLookaheadContextual("enum")){let Y=this.startNode();return this.expect(N._const),this.tsParseEnumDeclaration(Y,{const:!0})}if(this.ts_isContextual(D.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(D.interface)){let Y=this.tsParseInterfaceDeclaration(this.startNode());if(Y)return Y}return super.parseStatement(V,H,Q)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parsePostMemberNameModifiers(V){if(this.eat(N.question))V.optional=!0;if(V.readonly&&this.match(N.parenL))this.raise(V.start,M.ClassMethodHasReadonly);if(V.declare&&this.match(N.parenL))this.raise(V.start,M.ClassMethodHasDeclare)}parseExpressionStatement(V,H){return(H.type==="Identifier"?this.tsParseExpressionStatement(V,H):void 0)||super.parseExpressionStatement(V,H)}shouldParseExportStatement(){if(this.tsIsDeclarationStart())return!0;if(this.match(D.at))return!0;return super.shouldParseExportStatement()}parseConditional(V,H,Q,Y,L){if(this.eat(N.question)){let S=this.startNodeAt(H,Q);return S.test=V,S.consequent=this.parseMaybeAssign(),this.expect(N.colon),S.alternate=this.parseMaybeAssign(Y),this.finishNode(S,"ConditionalExpression")}return V}parseMaybeConditional(V,H){let Q=this.start,Y=this.startLoc,L=this.parseExprOps(V,H);if(this.checkExpressionErrors(H))return L;if(!this.maybeInArrowParameters||!this.match(N.question))return this.parseConditional(L,Q,Y,V,H);let S=this.tryParse(()=>this.parseConditional(L,Q,Y,V,H));if(!S.node){if(S.error)this.setOptionalParametersError(H,S.error);return L}if(S.error)this.setLookaheadState(S.failState);return S.node}parseParenItem(V){let H=this.start,Q=this.startLoc;if(V=super.parseParenItem(V),this.eat(N.question))V.optional=!0,this.resetEndLocation(V);if(this.match(N.colon)){let Y=this.startNodeAt(H,Q);return Y.expression=V,Y.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(Y,"TSTypeCastExpression")}return V}parseExportDeclaration(V){if(!this.isAmbientContext&&this.ts_isContextual(D.declare))return this.tsInAmbientContext(()=>this.parseExportDeclaration(V));let H=this.start,Q=this.startLoc,Y=this.eatContextual("declare");if(Y&&(this.ts_isContextual(D.declare)||!this.shouldParseExportStatement()))this.raise(this.start,M.ExpectedAmbientAfterExportDeclare);let S=f(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);if(!S)return null;if(S.type==="TSInterfaceDeclaration"||S.type==="TSTypeAliasDeclaration"||Y)V.exportKind="type";if(Y)this.resetStartLocation(S,H,Q),S.declare=!0;return S}parseClassId(V,H){if(!H&&this.isContextual("implements"))return;super.parseClassId(V,H);let Q=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));if(Q)V.typeParameters=Q}parseClassPropertyAnnotation(V){if(!V.optional){if(this.value==="!"&&this.eat(N.prefix))V.definite=!0;else if(this.eat(N.question))V.optional=!0}let H=this.tsTryParseTypeAnnotation();if(H)V.typeAnnotation=H}parseClassField(V){if(V.key.type==="PrivateIdentifier"){if(V.abstract)this.raise(V.start,M.PrivateElementHasAbstract);if(V.accessibility)this.raise(V.start,M.PrivateElementHasAccessibility({modifier:V.accessibility}));this.parseClassPropertyAnnotation(V)}else{if(this.parseClassPropertyAnnotation(V),this.isAmbientContext&&!(V.readonly&&!V.typeAnnotation)&&this.match(N.eq))this.raise(this.start,M.DeclareClassFieldHasInitializer);if(V.abstract&&this.match(N.eq)){let{key:Q}=V;this.raise(this.start,M.AbstractPropertyHasInitializer({propertyName:Q.type==="Identifier"&&!V.computed?Q.name:`[${this.input.slice(Q.start,Q.end)}]`}))}}return super.parseClassField(V)}parseClassMethod(V,H,Q,Y){let L=V.kind==="constructor",S=V.key.type==="PrivateIdentifier",K=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(S){if(K)V.typeParameters=K;if(V.accessibility)this.raise(V.start,M.PrivateMethodsHasAccessibility({modifier:V.accessibility}))}else if(K&&L)this.raise(K.start,M.ConstructorHasTypeParameters);let{declare:A=!1,kind:j}=V;if(A&&(j==="get"||j==="set"))this.raise(V.start,M.DeclareAccessor({kind:j}));if(K)V.typeParameters=K;let X=V.key;if(V.kind==="constructor"){if(H)this.raise(X.start,"Constructor can't be a generator");if(Q)this.raise(X.start,"Constructor can't be an async method")}else if(V.static&&Q0(V,"prototype"))this.raise(X.start,"Classes may not have a static property named prototype");let I=V.value=this.parseMethod(H,Q,Y,!0,V);if(V.kind==="get"&&I.params.length!==0)this.raiseRecoverable(I.start,"getter should have no params");if(V.kind==="set"&&I.params.length!==1)this.raiseRecoverable(I.start,"setter should have exactly one param");if(V.kind==="set"&&I.params[0].type==="RestElement")this.raiseRecoverable(I.params[0].start,"Setter cannot use rest params");return this.finishNode(V,"MethodDefinition")}isClassMethod(){return this.match(N.relational)}parseClassElement(V){if(this.eat(N.semi))return null;let H=this.startNode(),Q="",Y=!1,L=!1,S="method",K=!1,A=["declare","private","public","protected","accessor","override","abstract","readonly","static"],j=this.tsParseModifiers({modified:H,allowedModifiers:A,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:M.InvalidModifierOnTypeParameterPositions});K=Boolean(j.static);let X=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(H,A))this.raise(this.start,M.StaticBlockCannotHaveModifier);if(this.ecmaVersion>=13)return super.parseClassStaticBlock(H),H}else{let I=this.tsTryParseIndexSignature(H);if(I){if(H.abstract)this.raise(H.start,M.IndexSignatureHasAbstract);if(H.accessibility)this.raise(H.start,M.IndexSignatureHasAccessibility({modifier:H.accessibility}));if(H.declare)this.raise(H.start,M.IndexSignatureHasDeclare);if(H.override)this.raise(H.start,M.IndexSignatureHasOverride);return I}if(!this.inAbstractClass&&H.abstract)this.raise(H.start,M.NonAbstractClassHasAbstractMethod);if(H.override){if(!V)this.raise(H.start,M.OverrideNotInSubClass)}if(H.static=K,K){if(!(this.isClassElementNameStart()||this.type===N.star))Q="static"}if(!Q&&this.ecmaVersion>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===N.star)&&!this.canInsertSemicolon())L=!0;else Q="async";if(!Q&&(this.ecmaVersion>=9||!L)&&this.eat(N.star))Y=!0;if(!Q&&!L&&!Y){let v=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())S=v;else Q=v}if(Q)H.computed=!1,H.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),H.key.name=Q,this.finishNode(H.key,"Identifier");else this.parseClassElementName(H);if(this.parsePostMemberNameModifiers(H),this.isClassMethod()||this.ecmaVersion<13||this.type===N.parenL||S!=="method"||Y||L){let v=!H.static&&Q0(H,"constructor"),y=v&&V;if(v&&S!=="method")this.raise(H.key.start,"Constructor can't have get/set modifier");H.kind=v?"constructor":S,this.parseClassMethod(H,Y,L,y)}else this.parseClassField(H);return H}};if(H.declare)this.tsInAmbientContext(X);else X();return H}isClassElementNameStart(){if(this.tsIsIdentifier())return!0;return super.isClassElementNameStart()}parseClassSuper(V){if(super.parseClassSuper(V),V.superClass&&(this.tsMatchLeftRelational()||this.match(N.bitShift)))V.superTypeParameters=this.tsParseTypeArgumentsInExpression();if(this.eatContextual("implements"))V.implements=this.tsParseHeritageClause("implements")}parseFunctionParams(V){let H=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(H)V.typeParameters=H;super.parseFunctionParams(V)}parseVarId(V,H){if(super.parseVarId(V,H),V.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(N.prefix))V.definite=!0;let Q=this.tsTryParseTypeAnnotation();if(Q)V.id.typeAnnotation=Q,this.resetEndLocation(V.id)}parseArrowExpression(V,H,Q,Y){if(this.match(N.colon))V.returnType=this.tsParseTypeAnnotation();let L=this.yieldPos,S=this.awaitPos,K=this.awaitIdentPos;this.enterScope(a8(Q,!1)|k.SCOPE_ARROW),this.initFunction(V);let A=this.maybeInArrowParameters;if(this.ecmaVersion>=8)V.async=!!Q;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,V.params=this.toAssignableList(H,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(V,!0,!1,Y),this.yieldPos=L,this.awaitPos=S,this.awaitIdentPos=K,this.maybeInArrowParameters=A,this.finishNode(V,"ArrowFunctionExpression")}parseMaybeAssignOrigin(V,H,Q){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(V);else this.exprAllowed=!1;let Y=!1,L=-1,S=-1,K=-1;if(H)L=H.parenthesizedAssign,S=H.trailingComma,K=H.doubleProto,H.parenthesizedAssign=H.trailingComma=-1;else H=new Z8,Y=!0;let A=this.start,j=this.startLoc;if(this.type===N.parenL||f(this.type))this.potentialArrowAt=this.start,this.potentialArrowInForAwait=V==="await";let X=this.parseMaybeConditional(V,H);if(Q)X=Q.call(this,X,A,j);if(this.type.isAssign){let I=this.startNodeAt(A,j);if(I.operator=this.value,this.type===N.eq)X=this.toAssignable(X,!0,H);if(!Y)H.parenthesizedAssign=H.trailingComma=H.doubleProto=-1;if(H.shorthandAssign>=X.start)H.shorthandAssign=-1;if(!this.maybeInArrowParameters)if(this.type===N.eq)this.checkLValPattern(X);else this.checkLValSimple(X);if(I.left=X,this.next(),I.right=this.parseMaybeAssign(V),K>-1)H.doubleProto=K;return this.finishNode(I,"AssignmentExpression")}else if(Y)this.checkExpressionErrors(H,!0);if(L>-1)H.parenthesizedAssign=L;if(S>-1)H.trailingComma=S;return X}parseMaybeAssign(V,H,Q){let Y,L,S;if(q?.jsx&&(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational())){if(Y=this.cloneCurLookaheadState(),L=this.tryParse(()=>this.parseMaybeAssignOrigin(V,H,Q),Y),!L.error)return L.node;let j=this.context,X=j[j.length-1],I=j[j.length-2];if(X===$.tokContexts.tc_oTag&&I===$.tokContexts.tc_expr)j.pop(),j.pop();else if(X===$.tokContexts.tc_oTag||X===$.tokContexts.tc_expr)j.pop()}if(!L?.error&&!this.tsMatchLeftRelational())return this.parseMaybeAssignOrigin(V,H,Q);if(!Y||this.compareLookaheadState(Y,this.getCurLookaheadState()))Y=this.cloneCurLookaheadState();let K,A=this.tryParse((j)=>{K=this.tsParseTypeParameters(this.tsParseConstModifier);let X=this.parseMaybeAssignOrigin(V,H,Q);if(X.type!=="ArrowFunctionExpression"||X.extra?.parenthesized)j();if(K?.params.length!==0)this.resetStartLocationFromNode(X,K);return X.typeParameters=K,X},Y);if(!A.error&&!A.aborted){if(K)this.reportReservedArrowTypeParam(K);return A.node}if(!L){if($0(!0),S=this.tryParse(()=>this.parseMaybeAssignOrigin(V,H,Q),Y),!S.error)return S.node}if(L?.node)return this.setLookaheadState(L.failState),L.node;if(A.node){if(this.setLookaheadState(A.failState),K)this.reportReservedArrowTypeParam(K);return A.node}if(S?.node)return this.setLookaheadState(S.failState),S.node;if(L?.thrown)throw L.error;if(A.thrown)throw A.error;if(S?.thrown)throw S.error;throw L?.error||A.error||S?.error}parseAssignableListItem(V){let H=[];while(this.match(D.at))H.push(this.parseDecorator());let Q=this.start,Y=this.startLoc,L,S=!1,K=!1;if(V!==void 0){let X={};if(this.tsParseModifiers({modified:X,allowedModifiers:["public","private","protected","override","readonly"]}),L=X.accessibility,K=X.override,S=X.readonly,V===!1&&(L||S||K))this.raise(Y.column,M.UnexpectedParameterModifier)}let A=this.parseMaybeDefault(Q,Y);this.parseBindingListItem(A);let j=this.parseMaybeDefault(A.start,A.loc.start,A);if(H.length)j.decorators=H;if(L||S||K){let X=this.startNodeAt(Q,Y);if(L)X.accessibility=L;if(S)X.readonly=S;if(K)X.override=K;if(j.type!=="Identifier"&&j.type!=="AssignmentPattern")this.raise(X.start,M.UnsupportedParameterPropertyKind);return X.parameter=j,this.finishNode(X,"TSParameterProperty")}return j}checkLValInnerPattern(V,H=k.BIND_NONE,Q){switch(V.type){case"TSParameterProperty":this.checkLValInnerPattern(V.parameter,H,Q);break;default:{super.checkLValInnerPattern(V,H,Q);break}}}parseBindingListItem(V){if(this.eat(N.question)){if(V.type!=="Identifier"&&!this.isAmbientContext&&!this.inType)this.raise(V.start,M.PatternIsOptional);V.optional=!0}let H=this.tsTryParseTypeAnnotation();if(H)V.typeAnnotation=H;return this.resetEndLocation(V),V}isAssignable(V,H){switch(V.type){case"TSTypeCastExpression":return this.isAssignable(V.expression,H);case"TSParameterProperty":return!0;case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let Q=V.properties.length-1;return V.properties.every((Y,L)=>{return Y.type!=="ObjectMethod"&&(L===Q||Y.type!=="SpreadElement")&&this.isAssignable(Y)})}case"Property":case"ObjectProperty":return this.isAssignable(V.value);case"SpreadElement":return this.isAssignable(V.argument);case"ArrayExpression":return V.elements.every((Q)=>Q===null||this.isAssignable(Q));case"AssignmentExpression":return V.operator==="=";case"ParenthesizedExpression":return this.isAssignable(V.expression);case"MemberExpression":case"OptionalMemberExpression":return!H;default:return!1}}toAssignable(V,H=!1,Q=new Z8){switch(V.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(V,H,Q);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(H);else this.raise(V.start,M.UnexpectedTypeCastInParameter);return this.toAssignable(V.expression,H,Q);case"MemberExpression":break;case"AssignmentExpression":if(!H&&V.left.type==="TSTypeCastExpression")V.left=this.typeCastToParameter(V.left);return super.toAssignable(V,H,Q);case"TSTypeCastExpression":return this.typeCastToParameter(V);default:return super.toAssignable(V,H,Q)}return V}toAssignableParenthesizedExpression(V,H,Q){switch(V.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(V.expression,H,Q);default:return super.toAssignable(V,H,Q)}}parseBindingAtom(){switch(this.type){case N._this:return this.parseIdent(!0);default:return super.parseBindingAtom()}}shouldParseArrow(V){let H;if(this.match(N.colon))H=V.every((Q)=>this.isAssignable(Q,!0));else H=!this.canInsertSemicolon();if(H){if(this.match(N.colon)){let Q=this.tryParse((Y)=>{let L=this.tsParseTypeOrTypePredicateAnnotation(N.colon);if(this.canInsertSemicolon()||!this.match(N.arrow))Y();return L});if(Q.aborted)return this.shouldParseArrowReturnType=void 0,!1;if(!Q.thrown){if(Q.error)this.setLookaheadState(Q.failState);this.shouldParseArrowReturnType=Q.node}}if(!this.match(N.arrow))return this.shouldParseArrowReturnType=void 0,!1;return!0}return this.shouldParseArrowReturnType=void 0,H}parseParenArrowList(V,H,Q,Y){let L=this.startNodeAt(V,H);return L.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(L,Q,!1,Y)}parseParenAndDistinguishExpression(V,H){let Q=this.start,Y=this.startLoc,L,S=this.ecmaVersion>=8;if(this.ecmaVersion>=6){let K=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();let A=this.start,j=this.startLoc,X=[],I=!0,v=!1,y=new Z8,t=this.yieldPos,n=this.awaitPos,a;this.yieldPos=0,this.awaitPos=0;while(this.type!==N.parenR)if(I?I=!1:this.expect(N.comma),S&&this.afterTrailingComma(N.parenR,!0)){v=!0;break}else if(this.type===N.ellipsis){if(a=this.start,X.push(this.parseParenItem(this.parseRestBinding())),this.type===N.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else X.push(this.parseMaybeAssign(H,y,this.parseParenItem));let q8=this.lastTokEnd,c=this.lastTokEndLoc;if(this.expect(N.parenR),this.maybeInArrowParameters=K,V&&this.shouldParseArrow(X)&&this.eat(N.arrow))return this.checkPatternErrors(y,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=t,this.awaitPos=n,this.parseParenArrowList(Q,Y,X,H);if(!X.length||v)this.unexpected(this.lastTokStart);if(a)this.unexpected(a);if(this.checkExpressionErrors(y,!0),this.yieldPos=t||this.yieldPos,this.awaitPos=n||this.awaitPos,X.length>1)L=this.startNodeAt(A,j),L.expressions=X,this.finishNodeAt(L,"SequenceExpression",q8,c);else L=X[0]}else L=this.parseParenExpression();if(this.options.preserveParens){let K=this.startNodeAt(Q,Y);return K.expression=L,this.finishNode(K,"ParenthesizedExpression")}else return L}parseTaggedTemplateExpression(V,H,Q,Y){let L=this.startNodeAt(H,Q);if(L.tag=V,L.quasi=this.parseTemplate({isTagged:!0}),Y)this.raise(H,"Tagged Template Literals are not allowed in optionalChain.");return this.finishNode(L,"TaggedTemplateExpression")}shouldParseAsyncArrow(){if(this.match(N.colon)){let V=this.tryParse((H)=>{let Q=this.tsParseTypeOrTypePredicateAnnotation(N.colon);if(this.canInsertSemicolon()||!this.match(N.arrow))H();return Q});if(V.aborted)return this.shouldParseAsyncArrowReturnType=void 0,!1;if(!V.thrown){if(V.error)this.setLookaheadState(V.failState);return this.shouldParseAsyncArrowReturnType=V.node,!this.canInsertSemicolon()&&this.eat(N.arrow)}}else return!this.canInsertSemicolon()&&this.eat(N.arrow)}parseSubscriptAsyncArrow(V,H,Q,Y){let L=this.startNodeAt(V,H);return L.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(L,Q,!0,Y)}parseExprList(V,H,Q,Y){let L=[],S=!0;while(!this.eat(V)){if(!S){if(this.expect(N.comma),H&&this.afterTrailingComma(V))break}else S=!1;let K;if(Q&&this.type===N.comma)K=null;else if(this.type===N.ellipsis){if(K=this.parseSpread(Y),this.maybeInArrowParameters&&this.match(N.colon))K.typeAnnotation=this.tsParseTypeAnnotation();if(Y&&this.type===N.comma&&Y.trailingComma<0)Y.trailingComma=this.start}else K=this.parseMaybeAssign(!1,Y,this.parseParenItem);L.push(K)}return L}parseSubscript(V,H,Q,Y,L,S,K){let A=S;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(N.prefix)){this.exprAllowed=!1,this.next();let y=this.startNodeAt(H,Q);return y.expression=V,V=this.finishNode(y,"TSNonNullExpression"),V}let j=!1;if(this.match(N.questionDot)&&this.lookaheadCharCode()===60){if(Y)return V;V.optional=!0,A=j=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(N.bitShift)){let y,t=this.tsTryParseAndCatch(()=>{if(!Y&&this.atPossibleAsyncArrow(V)){let c=this.tsTryParseGenericAsyncArrowFunction(H,Q,K);if(c)return V=c,V}let n=this.tsParseTypeArgumentsInExpression();if(!n)return V;if(j&&!this.match(N.parenL))return y=this.curPosition(),V;if(b(this.type)||this.type===N.backQuote){let c=this.parseTaggedTemplateExpression(V,H,Q,A);return c.typeArguments=n,c}if(!Y&&this.eat(N.parenL)){let c=new Z8,d=this.startNodeAt(H,Q);if(d.callee=V,d.arguments=this.parseExprList(N.parenR,this.ecmaVersion>=8,!1,c),this.tsCheckForInvalidTypeCasts(d.arguments),d.typeArguments=n,A)d.optional=j;return this.checkExpressionErrors(c,!0),V=this.finishNode(d,"CallExpression"),V}let a=this.type;if(this.tsMatchRightRelational()||a===N.bitShift||a!==N.parenL&&X2(a)&&!this.hasPrecedingLineBreak())return;let q8=this.startNodeAt(H,Q);return q8.expression=V,q8.typeArguments=n,this.finishNode(q8,"TSInstantiationExpression")});if(y)this.unexpected(y);if(t){if(t.type==="TSInstantiationExpression"&&(this.match(N.dot)||this.match(N.questionDot)&&this.lookaheadCharCode()!==40))this.raise(this.start,M.InvalidPropertyAccessAfterInstantiationExpression);return V=t,V}}let X=this.ecmaVersion>=11,I=X&&this.eat(N.questionDot);if(Y&&I)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");let v=this.eat(N.bracketL);if(v||I&&this.type!==N.parenL&&this.type!==N.backQuote||this.eat(N.dot)){let y=this.startNodeAt(H,Q);if(y.object=V,v)y.property=this.parseExpression(),this.expect(N.bracketR);else if(this.type===N.privateId&&V.type!=="Super")y.property=this.parsePrivateIdent();else y.property=this.parseIdent(this.options.allowReserved!=="never");if(y.computed=!!v,X)y.optional=I;V=this.finishNode(y,"MemberExpression")}else if(!Y&&this.eat(N.parenL)){let y=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let t=new Z8,n=this.yieldPos,a=this.awaitPos,q8=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;let c=this.parseExprList(N.parenR,this.ecmaVersion>=8,!1,t);if(L&&!I&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(t,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=q8,V=this.parseSubscriptAsyncArrow(H,Q,c,K)}else{this.checkExpressionErrors(t,!0),this.yieldPos=n||this.yieldPos,this.awaitPos=a||this.awaitPos,this.awaitIdentPos=q8||this.awaitIdentPos;let d=this.startNodeAt(H,Q);if(d.callee=V,d.arguments=c,X)d.optional=I;V=this.finishNode(d,"CallExpression")}this.maybeInArrowParameters=y}else if(this.type===N.backQuote){if(I||A)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");let y=this.startNodeAt(H,Q);y.tag=V,y.quasi=this.parseTemplate({isTagged:!0}),V=this.finishNode(y,"TaggedTemplateExpression")}return V}parseGetterSetter(V){V.kind=V.key.name,this.parsePropertyName(V);let H=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(V.value=this.parseMethod(!1),H)V.value.typeParameters=H;let Q=V.kind==="get"?0:1,Y=V.value.params[0];if(Q=Y&&this.isThisParam(Y)?Q+1:Q,V.value.params.length!==Q){let S=V.value.start;if(V.kind==="get")this.raiseRecoverable(S,"getter should have no params");else this.raiseRecoverable(S,"setter should have exactly one param")}else if(V.kind==="set"&&V.value.params[0].type==="RestElement")this.raiseRecoverable(V.value.params[0].start,"Setter cannot use rest params")}parsePropertyValue(V,H,Q,Y,L,S,K,A){if(this.tsMatchLeftRelational()){if(H)this.unexpected();V.kind="init",V.method=!0;let j=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(V.value=this.parseMethod(Q,Y),j)V.value.typeParameters=j;return}return super.parsePropertyValue(V,H,Q,Y,L,S,K,A)}parseProperty(V,H){if(!V){let Q=[];if(this.match(D.at))while(this.match(D.at))Q.push(this.parseDecorator());let Y=super.parseProperty(V,H);if(Y.type==="SpreadElement"){if(Q.length)this.raise(Y.start,A8.SpreadElementDecorator)}if(Q.length)Y.decorators=Q,Q=[];return Y}return super.parseProperty(V,H)}parseCatchClauseParam(){let V=this.parseBindingAtom(),H=V.type==="Identifier";this.enterScope(H?k.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(V,H?k.BIND_SIMPLE_CATCH:k.BIND_LEXICAL);let Q=this.tsTryParseTypeAnnotation();if(Q)V.typeAnnotation=Q,this.resetEndLocation(V);return this.expect(N.parenR),V}parseClass(V,H){let Q=this.inAbstractClass;this.inAbstractClass=!!V.abstract;try{this.next(),this.takeDecorators(V);let Y=this.strict;this.strict=!0,this.parseClassId(V,H),this.parseClassSuper(V);let L=this.enterClassBody(),S=this.startNode(),K=!1;S.body=[];let A=[];this.expect(N.braceL);while(this.type!==N.braceR){if(this.match(D.at)){A.push(this.parseDecorator());continue}let j=this.parseClassElement(V.superClass!==null);if(A.length)j.decorators=A,this.resetStartLocationFromNode(j,A[0]),A=[];if(j){if(S.body.push(j),j.type==="MethodDefinition"&&j.kind==="constructor"&&j.value.type==="FunctionExpression"){if(K)this.raiseRecoverable(j.start,"Duplicate constructor in the same class");if(K=!0,j.decorators&&j.decorators.length>0)this.raise(j.start,A8.DecoratorConstructor)}else if(j.key&&j.key.type==="PrivateIdentifier"&&j.value?.type!=="TSDeclareMethod"&&Q2(L,j))this.raiseRecoverable(j.key.start,`Identifier '#${j.key.name}' has already been declared`)}}if(this.strict=Y,this.next(),A.length)this.raise(this.start,A8.TrailingDecorator);return V.body=this.finishNode(S,"ClassBody"),this.exitClassBody(),this.finishNode(V,H?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=Q}}parseClassFunctionParams(){let V=this.tsTryParseTypeParameters(),H=this.parseBindingList(N.parenR,!1,this.ecmaVersion>=8,!0);if(V)H.typeParameters=V;return H}parseMethod(V,H,Q,Y,L){let S=this.startNode(),K=this.yieldPos,A=this.awaitPos,j=this.awaitIdentPos;if(this.initFunction(S),this.ecmaVersion>=6)S.generator=V;if(this.ecmaVersion>=8)S.async=!!H;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(a8(H,S.generator)|k.SCOPE_SUPER|(Q?k.SCOPE_DIRECT_SUPER:0)),this.expect(N.parenL),S.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(S,!1,!0,!1,{isClassMethod:Y}),this.yieldPos=K,this.awaitPos=A,this.awaitIdentPos=j,L&&L.abstract){if(!!S.body){let{key:I}=L;this.raise(L.start,M.AbstractMethodHasImplementation({methodName:I.type==="Identifier"&&!L.computed?I.name:`[${this.input.slice(I.start,I.end)}]`}))}}return this.finishNode(S,"FunctionExpression")}static parse(V,H){if(H.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else H.locations=!0;let Q=new this(H,V);if(B)Q.isAmbientContext=!0;return Q.parse()}static parseExpressionAt(V,H,Q){if(Q.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else Q.locations=!0;let Y=new this(Q,V,H);if(B)Y.isAmbientContext=!0;return Y.nextToken(),Y.parseExpression()}parseImportSpecifier(){if(this.ts_isContextual(D.type)){let H=this.startNode();return H.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(H,!0,this.importOrExportOuterKind==="type"),this.finishNode(H,"ImportSpecifier")}else{let H=super.parseImportSpecifier();return H.importKind="value",H}}parseExportSpecifier(V){let H=this.ts_isContextual(D.type);if(!this.match(N.string)&&H){let Y=this.startNode();return Y.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(Y,!1,this.importOrExportOuterKind==="type"),this.finishNode(Y,"ExportSpecifier"),this.checkExport(V,Y.exported,Y.exported.start),Y}else{let Y=super.parseExportSpecifier(V);return Y.exportKind="value",Y}}parseTypeOnlyImportExportSpecifier(V,H,Q){let Y=H?"imported":"local",L=H?"local":"exported",S=V[Y],K,A=!1,j=!0,X=S.start;if(this.isContextual("as")){let v=this.parseIdent();if(this.isContextual("as")){let y=this.parseIdent();if(m(this.type))A=!0,S=v,K=H?this.parseIdent():this.parseModuleExportName(),j=!1;else K=y,j=!1}else if(m(this.type))j=!1,K=H?this.parseIdent():this.parseModuleExportName();else A=!0,S=v}else if(m(this.type))if(A=!0,H){if(S=super.parseIdent(!0),!this.isContextual("as"))this.checkUnreserved(S)}else S=this.parseModuleExportName();if(A&&Q)this.raise(X,H?M.TypeModifierIsUsedInTypeImports:M.TypeModifierIsUsedInTypeExports);V[Y]=S,V[L]=K;let I=H?"importKind":"exportKind";if(V[I]=A?"type":"value",j&&this.eatContextual("as"))V[L]=H?this.parseIdent():this.parseModuleExportName();if(!V[L])V[L]=this.copyNode(V[Y]);if(H)this.checkLValSimple(V[L],k.BIND_LEXICAL)}raiseCommonCheck(V,H,Q){switch(H){case"Comma is not permitted after the rest element":if(this.isAmbientContext&&this.match(N.comma)&&this.lookaheadCharCode()===41){this.next();return}else return super.raise(V,H)}return Q?super.raiseRecoverable(V,H):super.raise(V,H)}raiseRecoverable(V,H){return this.raiseCommonCheck(V,H,!0)}raise(V,H){return this.raiseCommonCheck(V,H,!0)}updateContext(V){let{type:H}=this;if(H==N.braceL){var Q=this.curContext();if(Q==O.tc_oTag)this.context.push(T.b_expr);else if(Q==O.tc_expr)this.context.push(T.b_tmpl);else super.updateContext(V);this.exprAllowed=!0}else if(H===N.slash&&V===D.jsxTagStart)this.context.length-=2,this.context.push(O.tc_cTag),this.exprAllowed=!1;else return super.updateContext(V)}jsx_parseOpeningElementAt(V,H){let Q=this.startNodeAt(V,H),Y=this.jsx_parseElementName();if(Y)Q.name=Y;if(this.match(N.relational)||this.match(N.bitShift)){let L=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(L)Q.typeArguments=L}Q.attributes=[];while(this.type!==N.slash&&this.type!==D.jsxTagEnd)Q.attributes.push(this.jsx_parseAttribute());return Q.selfClosing=this.eat(N.slash),this.expect(D.jsxTagEnd),this.finishNode(Q,Y?"JSXOpeningElement":"JSXOpeningFragment")}enterScope(V){if(V===F8)this.importsStack.push([]);super.enterScope(V);let H=super.currentScope();H.types=[],H.enums=[],H.constEnums=[],H.classes=[],H.exportOnlyBindings=[]}exitScope(){if(super.currentScope().flags===F8)this.importsStack.pop();super.exitScope()}hasImport(V,H){let Q=this.importsStack.length;if(this.importsStack[Q-1].indexOf(V)>-1)return!0;if(!H&&Q>1){for(let Y=0;Y<Q-1;Y++)if(this.importsStack[Y].indexOf(V)>-1)return!0}return!1}maybeExportDefined(V,H){if(this.inModule&&V.flags&k.SCOPE_TOP)delete this.undefinedExports[H]}declareName(V,H,Q){if(H&k.BIND_FLAGS_TS_IMPORT){if(this.hasImport(V,!0))this.raise(Q,`Identifier '${V}' has already been declared.`);this.importsStack[this.importsStack.length-1].push(V);return}let Y=this.currentScope();if(H&k.BIND_FLAGS_TS_EXPORT_ONLY){this.maybeExportDefined(Y,V),Y.exportOnlyBindings.push(V);return}if(H===k.BIND_TS_TYPE||H===k.BIND_TS_INTERFACE){if(H===k.BIND_TS_TYPE&&Y.types.includes(V))this.raise(Q,`type '${V}' has already been declared.`);Y.types.push(V)}else super.declareName(V,H,Q);if(H&k.BIND_FLAGS_TS_ENUM)Y.enums.push(V);if(H&k.BIND_FLAGS_TS_CONST_ENUM)Y.constEnums.push(V);if(H&k.BIND_FLAGS_CLASS)Y.classes.push(V)}checkLocalExport(V){let{name:H}=V;if(this.hasImport(H))return;let Q=this.scopeStack.length;for(let Y=Q-1;Y>=0;Y--){let L=this.scopeStack[Y];if(L.types.indexOf(H)>-1||L.exportOnlyBindings.indexOf(H)>-1)return}super.checkLocalExport(V)}}return g1}}class z0 extends Error{message="";#q;constructor(q,B,R){super(B);this.stack="",this.#q=new Q8(q,B,R),Object.assign(this,this.#q),this.name="CompileError"}toString(){return this.#q.toString()}toJSON(){return this.#q.toJSON()}}function C(q,B,R){let U=typeof q==="number"?q:q?.start,J=typeof q==="number"?q:q?.end;throw new z0(B,R,U!==void 0?[U,J??U]:void 0)}function T0(q){C(q,"css_empty_declaration",`Declaration cannot be empty
|
|
13
|
+
https://svelte.dev/e/css_empty_declaration`)}function e8(q){C(q,"css_expected_identifier",`Expected a valid CSS identifier
|
|
14
|
+
https://svelte.dev/e/css_expected_identifier`)}function j0(q){C(q,"css_selector_invalid",`Invalid selector
|
|
15
|
+
https://svelte.dev/e/css_selector_invalid`)}function O0(q){C(q,"attribute_duplicate",`Attributes need to be unique
|
|
16
|
+
https://svelte.dev/e/attribute_duplicate`)}function A0(q){C(q,"attribute_empty_shorthand",`Attribute shorthand cannot be empty
|
|
17
|
+
https://svelte.dev/e/attribute_empty_shorthand`)}function q1(q,B){C(q,"block_duplicate_clause",`${B} cannot appear more than once within a block
|
|
18
|
+
https://svelte.dev/e/block_duplicate_clause`)}function M0(q){C(q,"block_invalid_continuation_placement",`{:...} block is invalid at this position (did you forget to close the preceding element or block?)
|
|
19
|
+
https://svelte.dev/e/block_invalid_continuation_placement`)}function C0(q){C(q,"block_invalid_elseif",`'elseif' should be 'else if'
|
|
20
|
+
https://svelte.dev/e/block_invalid_elseif`)}function w0(q,B,R){C(q,"block_invalid_placement",`{#${B} ...} block cannot be ${R}
|
|
21
|
+
https://svelte.dev/e/block_invalid_placement`)}function I0(q){C(q,"block_unclosed",`Block was left open
|
|
22
|
+
https://svelte.dev/e/block_unclosed`)}function V1(q){C(q,"block_unexpected_close",`Unexpected block closing tag
|
|
23
|
+
https://svelte.dev/e/block_unexpected_close`)}function P0(q){C(q,"const_tag_invalid_expression",`{@const ...} must consist of a single variable declaration
|
|
24
|
+
https://svelte.dev/e/const_tag_invalid_expression`)}function E0(q){C(q,"debug_tag_invalid_arguments",`{@debug ...} arguments must be identifiers, not arbitrary expressions
|
|
25
|
+
https://svelte.dev/e/debug_tag_invalid_arguments`)}function C8(q){C(q,"declaration_tag_invalid_type","Declaration tags must be `let` or `const` declarations\nhttps://svelte.dev/e/declaration_tag_invalid_type")}function f0(q){C(q,"directive_invalid_value",`Directive value must be a JavaScript expression enclosed in curly braces
|
|
26
|
+
https://svelte.dev/e/directive_invalid_value`)}function k0(q,B){C(q,"directive_missing_name",`\`${B}\` name cannot be empty
|
|
27
|
+
https://svelte.dev/e/directive_missing_name`)}function b0(q,B){C(q,"element_invalid_closing_tag",`\`</${B}>\` attempted to close an element that was not open
|
|
28
|
+
https://svelte.dev/e/element_invalid_closing_tag`)}function y0(q,B,R){C(q,"element_invalid_closing_tag_autoclosed",`\`</${B}>\` attempted to close element that was already automatically closed by \`<${R}>\` (cannot nest \`<${R}>\` inside \`<${B}>\`)
|
|
29
|
+
https://svelte.dev/e/element_invalid_closing_tag_autoclosed`)}function w8(q,B){C(q,"element_unclosed",`\`<${B}>\` was left open
|
|
30
|
+
https://svelte.dev/e/element_unclosed`)}function U1(q){C(q,"expected_attribute_value",`Expected attribute value
|
|
31
|
+
https://svelte.dev/e/expected_attribute_value`)}function v0(q){C(q,"expected_block_type",`Expected 'if', 'each', 'await', 'key' or 'snippet'
|
|
32
|
+
https://svelte.dev/e/expected_block_type`)}function H1(q){C(q,"expected_identifier",`Expected an identifier
|
|
33
|
+
https://svelte.dev/e/expected_identifier`)}function g0(q){C(q,"expected_pattern",`Expected identifier or destructure pattern
|
|
34
|
+
https://svelte.dev/e/expected_pattern`)}function h0(q){C(q,"expected_tag",`Expected 'html', 'render', 'attach', 'const', or 'debug'
|
|
35
|
+
https://svelte.dev/e/expected_tag`)}function i(q,B){C(q,"expected_token",`Expected token ${B}
|
|
36
|
+
https://svelte.dev/e/expected_token`)}function x0(q){C(q,"expected_whitespace",`Expected whitespace
|
|
37
|
+
https://svelte.dev/e/expected_whitespace`)}function u0(q,B){C(q,"js_parse_error",`${B}
|
|
38
|
+
https://svelte.dev/e/js_parse_error`)}function l0(q){C(q,"render_tag_invalid_expression","`{@render ...}` tags can only contain call expressions\nhttps://svelte.dev/e/render_tag_invalid_expression")}function N1(q){C(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 m0(q,B){C(q,"script_invalid_attribute_value",`If the \`${B}\` attribute is supplied, it must be a boolean attribute
|
|
39
39
|
https://svelte.dev/e/script_invalid_attribute_value`)}function B1(q){C(q,"script_invalid_context",`If the context attribute is supplied, its value must be "module"
|
|
40
|
-
https://svelte.dev/e/script_invalid_context`)}function
|
|
41
|
-
https://svelte.dev/e/script_reserved_attribute`)}function
|
|
42
|
-
https://svelte.dev/e/svelte_meta_duplicate`)}function
|
|
43
|
-
https://svelte.dev/e/svelte_meta_invalid_content`)}function
|
|
44
|
-
https://svelte.dev/e/svelte_meta_invalid_placement`)}function
|
|
45
|
-
https://svelte.dev/e/svelte_meta_invalid_tag`)}function
|
|
46
|
-
https://svelte.dev/e/svelte_options_deprecated_tag`)}function
|
|
40
|
+
https://svelte.dev/e/script_invalid_context`)}function c0(q,B){C(q,"script_reserved_attribute",`The \`${B}\` attribute is reserved and cannot be used
|
|
41
|
+
https://svelte.dev/e/script_reserved_attribute`)}function _0(q){C(q,"style_duplicate","A component can have a single top-level `<style>` element\nhttps://svelte.dev/e/style_duplicate")}function i0(q){C(q,"svelte_component_invalid_this","Invalid component definition — must be an `{expression}`\nhttps://svelte.dev/e/svelte_component_invalid_this")}function d0(q){C(q,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute\nhttps://svelte.dev/e/svelte_component_missing_this")}function J1(q){C(q,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value\nhttps://svelte.dev/e/svelte_element_missing_this")}function p0(q,B){C(q,"svelte_meta_duplicate",`A component can only have one \`<${B}>\` element
|
|
42
|
+
https://svelte.dev/e/svelte_meta_duplicate`)}function o0(q,B){C(q,"svelte_meta_invalid_content",`<${B}> cannot have children
|
|
43
|
+
https://svelte.dev/e/svelte_meta_invalid_content`)}function t0(q,B){C(q,"svelte_meta_invalid_placement",`\`<${B}>\` tags cannot be inside elements or blocks
|
|
44
|
+
https://svelte.dev/e/svelte_meta_invalid_placement`)}function n0(q,B){C(q,"svelte_meta_invalid_tag",`Valid \`<svelte:...>\` tag names are ${B}
|
|
45
|
+
https://svelte.dev/e/svelte_meta_invalid_tag`)}function a0(q){C(q,"svelte_options_deprecated_tag",`"tag" option is deprecated — use "customElement" instead
|
|
46
|
+
https://svelte.dev/e/svelte_options_deprecated_tag`)}function s0(q){C(q,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes\nhttps://svelte.dev/e/svelte_options_invalid_attribute")}function I8(q,B){C(q,"svelte_options_invalid_attribute_value",`Value must be ${B}, if specified
|
|
47
47
|
https://svelte.dev/e/svelte_options_invalid_attribute_value`)}function P8(q){C(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 V8(q){C(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" }"
|
|
48
|
-
https://svelte.dev/e/svelte_options_invalid_customelement_props`)}function
|
|
49
|
-
https://svelte.dev/e/svelte_options_invalid_tagname`)}function
|
|
50
|
-
https://svelte.dev/e/svelte_options_reserved_tagname`)}function
|
|
51
|
-
https://svelte.dev/e/svelte_options_unknown_attribute`)}function
|
|
52
|
-
https://svelte.dev/e/tag_invalid_name`)}function
|
|
48
|
+
https://svelte.dev/e/svelte_options_invalid_customelement_props`)}function r0(q){C(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 R1(q){C(q,"svelte_options_invalid_tagname",`Tag name must be lowercase and hyphenated
|
|
49
|
+
https://svelte.dev/e/svelte_options_invalid_tagname`)}function e0(q){C(q,"svelte_options_reserved_tagname",`Tag name is reserved
|
|
50
|
+
https://svelte.dev/e/svelte_options_reserved_tagname`)}function q9(q,B){C(q,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${B}'
|
|
51
|
+
https://svelte.dev/e/svelte_options_unknown_attribute`)}function V9(q){C(q,"tag_invalid_name",`Expected a valid element or component name. Components must have a valid variable name or dot notation expression
|
|
52
|
+
https://svelte.dev/e/tag_invalid_name`)}function U9(q,B,R){C(q,"tag_invalid_placement",`{@${B} ...} tag cannot be ${R}
|
|
53
53
|
https://svelte.dev/e/tag_invalid_placement`)}function l(q){C(q,"unexpected_eof",`Unexpected end of input
|
|
54
|
-
https://svelte.dev/e/unexpected_eof`)}function
|
|
55
|
-
https://svelte.dev/e/unexpected_reserved_word`)}function
|
|
56
|
-
https://svelte.dev/e/unterminated_string_constant`)}function
|
|
57
|
-
https://svelte.dev/e/void_element_invalid_content`)}var E8=
|
|
58
|
-
`)z-=1;let
|
|
59
|
-
`,
|
|
60
|
-
`);return R<U?R:1/0}function
|
|
61
|
-
`,$+1))+1;continue}if(G==="*"){$=F1(q.indexOf("*/",$+1))+2;continue}let Z=j2(q,$+1)+1;if(Z===1/0)$++;else $=Z;continue}default:{let G=q[$];if(G===R)J++;else if(G===U)J--;if(J===0)return $;$++}}}return}var f8={"{":"}","(":")","[":"]"},A2=new Set(Object.values(f8));function L8(q,N,R=f8){let U=R===f8?A2:new Set(Object.values(R)),J=[],$=N;while($<q.template.length){let B=q.template[$++];if(B==="'"||B==='"'||B==="`"){$=M2(q,$,B);continue}if(B in R)J.push(B);else if(U.has(B)){let G=J.pop(),Z=R[G];if(B!==Z)i($-1,Z);if(J.length===0)return $}}l(q.template.length)}function M2(q,N,R){let U=!1,J=N;while(J<q.template.length){let $=q.template[J++];if(U){U=!1;continue}if($===R)return J;if($==="\\")U=!0;if(R==="`"&&$==="$"&&q.template[J]==="{")J=L8(q,J)}V9(N)}function Z1(q,N){let R=k8(q.template,q.index,N??"{");if(R){let U=q.index;return q.index=R,{type:"Identifier",start:U,end:R,name:""}}}function u(q,N,R){try{let U=U8(q,q.template,q.index),J=U.end,$=q.root.comments.at(-1);if($&&$.end>J)J=$.end;return q.index=J,J8(U)}catch(U){if(q.loose&&!R){let J=Z1(q,N);if(J)return J}throw U}}function G1(q=[]){return{type:"ArrayExpression",elements:q}}function C2(q,N){return{type:"UnaryExpression",argument:N,operator:q,prefix:!0}}var C7=C2("void",D8(0));function D8(q){return{type:"Literal",value:q}}var w2=D8(!0),w7=D8(!1),I7=D8(null);function J9(q){return Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="Text"}function D1(q){return q.value!==!0&&!Array.isArray(q.value)||Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="ExpressionTag"}function S1(q){return Array.isArray(q.value)?q.value[0].expression:q.value.expression}var I2=/<\/script\s*>/,P2=/<\/script\s*>/y,E2=["server","client","worker","test","default"],f2=["context","generics","lang","module"];function R9(q,N,R){let U=q.index,J=q.read_until(I2);if(q.index>=q.template.length)w8(q.template.length,"script");let $=q.template.slice(0,U).replace(W8," ")+J;q.read(P2);let B=B9($,q.root.comments,q.ts,!0);if(B.start=U,B.loc)({line:B.loc.start.line,column:B.loc.start.column}=x(N)),{line:B.loc.end.line,column:B.loc.end.column}=x(q.index);let G="default";for(let Z of R){if(E2.includes(Z.name))u0(Z,Z.name);if(!f2.includes(Z.name))e1(Z);if(Z.name==="module"){if(Z.value!==!0)x0(Z,Z.name);G="module"}if(Z.name==="context"){if(Z.value===!0||!J9(Z))B1(Z);if(Z.value[0].data!=="module")B1(Z);G="module"}}return{type:"Script",start:N,end:q.index,context:G,content:B,attributes:R}}var k2=/[~^$*|]?=/y,y2=/[\s\]]/,b2=/[a-zA-Z]+/y,F9=/(\+|~|>|\|\|)/y,Q9=/\d+(\.\d+)?%/y,$9=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/y,v2=/[\s:]/,g2=/-?\d/y,h2=/[a-zA-Z0-9_-]/,x2=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y,u2=/\*\//,l2=/-->/;function W1(q,N,R){let U=q.index,J=m2(q,(B)=>B.match("</style")||B.index>=B.template.length),$=q.index;return q.eat("</style",!0),q.read(/\s*>/y),{type:"StyleSheet",start:N,end:q.index,attributes:R,children:J,content:{start:U,end:$,styles:q.template.slice(U,$),comment:null}}}function m2(q,N){let R=[];while(R8(q),!N(q))if(q.match("@"))R.push(Y9(q));else R.push(Z9(q));return R}function Y9(q){let N=q.index;q.eat("@",!0);let R=e(q),U=X1(q),J=null;if(q.match("{"))J=G9(q);else q.eat(";",!0);return{type:"Atrule",start:N,end:q.index,name:R,prelude:U,block:J}}function Z9(q){let N=q.index;return{type:"Rule",prelude:K1(q),block:G9(q),start:N,end:q.index,metadata:{parent_rule:null,has_local_selectors:!1,has_global_selectors:!1,is_global_block:!1}}}function K1(q,N=!1){let R=[];R8(q);let U=q.index;while(q.index<q.template.length){R.push(c2(q,N));let J=q.index;if(R8(q),N?q.match(")"):q.match("{"))return{type:"SelectorList",start:U,end:J,children:R};else q.eat(",",!0),R8(q)}l(q.template.length)}function c2(q,N=!1){let R=q.index,U=[];function J(B,G){return{type:"RelativeSelector",combinator:B,selectors:[],start:G,end:-1,metadata:{is_global:!1,is_global_like:!1,scoped:!1}}}let $=J(null,q.index);while(q.index<q.template.length){let B=q.index;if(q.eat("&"))$.selectors.push({type:"NestingSelector",name:"&",start:B,end:q.index});else if(q.eat("*")){let z="*";if(q.eat("|"))z=e(q);$.selectors.push({type:"TypeSelector",name:z,start:B,end:q.index})}else if(q.eat("#"))$.selectors.push({type:"IdSelector",name:e(q),start:B,end:q.index});else if(q.eat("."))$.selectors.push({type:"ClassSelector",name:e(q),start:B,end:q.index});else if(q.eat("::")){if($.selectors.push({type:"PseudoElementSelector",name:e(q),start:B,end:q.index}),q.eat("("))K1(q,!0),q.eat(")",!0)}else if(q.eat(":")){let z=e(q),Y=null;if(q.eat("("))Y=K1(q,!0),q.eat(")",!0);$.selectors.push({type:"PseudoClassSelector",name:z,args:Y,start:B,end:q.index})}else if(q.eat("[")){q.allow_whitespace();let z=e(q);q.allow_whitespace();let Y=null,T=q.read(k2);if(T)q.allow_whitespace(),Y=p2(q);q.allow_whitespace();let W=q.read(b2);q.allow_whitespace(),q.eat("]",!0),$.selectors.push({type:"AttributeSelector",start:B,end:q.index,name:z,matcher:T,value:Y,flags:W})}else if(N&&q.match_regex($9))$.selectors.push({type:"Nth",value:q.read($9),start:B,end:q.index});else if(q.match_regex(Q9))$.selectors.push({type:"Percentage",value:q.read(Q9),start:B,end:q.index});else if(!q.match_regex(F9)){let z=e(q);if(q.eat("|"))z=e(q);$.selectors.push({type:"TypeSelector",name:z,start:B,end:q.index})}let G=q.index;if(R8(q),q.match(",")||(N?q.match(")"):q.match("{")))return q.index=G,$.end=G,U.push($),{type:"ComplexSelector",start:R,end:G,children:U,metadata:{rule:null,is_global:!1,used:!1}};q.index=G;let Z=_2(q);if(Z){if($.selectors.length>0)$.end=G,U.push($);if($=J(Z,Z.start),q.allow_whitespace(),q.match(",")||(N?q.match(")"):q.match("{")))X0(q.index)}}l(q.template.length)}function _2(q){let N=q.index;q.allow_whitespace();let R=q.index,U=q.read(F9);if(U){let J=q.index;return q.allow_whitespace(),{type:"Combinator",name:U,start:R,end:J}}if(q.index!==N)return{type:"Combinator",name:" ",start:N,end:q.index};return null}function G9(q){let N=q.index;q.eat("{",!0);let R=[];while(q.index<q.template.length)if(R8(q),q.match("}"))break;else R.push(i2(q));return q.eat("}",!0),{type:"Block",start:N,end:q.index,children:R}}function i2(q){if(q.match("@"))return Y9(q);let N=q.index;X1(q);let R=q.template[q.index];return q.index=N,R==="{"?Z9(q):d2(q)}function d2(q){let N=q.index,R=q.read_until(v2);q.allow_whitespace(),q.eat(":");let U=q.index;q.allow_whitespace();let J=X1(q);if(!J&&!R.startsWith("--"))W0({start:N,end:U});let $=q.index;if(!q.match("}"))q.eat(";",!0);return{type:"Declaration",start:N,end:$,property:R,value:J}}function X1(q){let N="",R=!1,U=!1,J=null;while(q.index<q.template.length){let $=q.template[q.index];if(R){N+="\\"+$,R=!1,q.index++;continue}else if($==="\\"){R=!0,q.index++;continue}else if($===J)J=null;else if($===")")U=!1;else if(J===null&&($==='"'||$==="'"))J=$;else if($==="("&&N.slice(-3)==="url")U=!0;else if(($===";"||$==="{"||$==="}")&&!U&&!J)return N.trim();else if($==="/"&&!U&&!J&&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}N+=$,q.index++}l(q.template.length)}function p2(q){let N="",R=!1,U=q.eat('"')?'"':q.eat("'")?"'":null;while(q.index<q.template.length){let J=q.template[q.index];if(R)N+="\\"+J,R=!1;else if(J==="\\")R=!0;else if(U?J===U:y2.test(J)){if(U)q.eat(U,!0);return N.trim()}else N+=J;q.index++}l(q.template.length)}function e(q){let N=q.index,R="";if(q.match_regex(g2))r8(N);while(q.index<q.template.length){let U=q.template[q.index];if(U==="\\"){let J=q.match_regex(x2);if(J)R+=String.fromCodePoint(parseInt(J.slice(1),16)),q.index+=J.length;else R+="\\"+q.template[q.index+1],q.index+=2}else if(U.codePointAt(0)>=160||h2.test(U))R+=U,q.index++;else break}if(R==="")r8(N);return R}function R8(q){q.allow_whitespace();while(q.match("/*")||q.match("<!--")){if(q.eat("/*"))q.read_until(u2),q.eat("*/",!0);if(q.eat("<!--"))q.read_until(l2),q.eat("-->",!0);q.allow_whitespace()}}var z1={"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 o2=[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 t2(q,N){if(N&&!q.endsWith(";"))return`${q}\\b(?!=)`;return q}function D9(q){let R=Object.keys(z1).map((J)=>t2(J,q));return new RegExp(`&(#(?:x[a-fA-F\\d]+|\\d+)(?:;)?|${R.join("|")})`,"g")}var n2=D9(!1),a2=D9(!0);function S8(q,N){let R=N?a2:n2;return q.replace(R,(U,J)=>{let $;if(J[0]!=="#")$=z1[J];else if(J[1]==="x")$=parseInt(J.substring(2),16);else $=parseInt(J.substring(1),10);if(!$)return U;return String.fromCodePoint(s2($))})}var L9=0;function s2(q){if(q===10)return 32;if(q<128)return q;if(q<=159)return o2[q-128];if(q<55296)return q;if(q<=57343)return L9;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 L9}function h(q=!1){return{type:"Fragment",nodes:[],metadata:{transparent:q,dynamic:!1}}}var r2=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function S9(q){return r2.includes(q.type)}function y8(q,N,R,U,J){return{type:"Attribute",start:R,end:U,name:q,name_loc:N,value:J,metadata:{delegated:!1,needs_clsx:!1}}}class g{has_state=!1;has_call=!1;has_await=!1;has_member_expression=!1;has_assignment=!1;dependencies=new Set;references=new Set;#q=null;#V(){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 G1([...this.#V()])}has_blockers(){return this.#V().size>0}has_more_blockers_than(q){for(let N of this.#V())if(!q.#V().has(N))return!0;return!1}is_async(){return this.has_await||this.#V().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 N of q.references)this.references.add(N);for(let N of q.dependencies)this.dependencies.add(N)}}var K9={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 W9(q,N){let R=K9[q];if(R){if(!N||("direct"in R?R.direct:R.descendant).includes(N))return!0}return!1}var n7={...K9,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 X9(q,N="or"){if(q.length===1)return q[0];if(q.length===2)return`${q[0]} ${N} ${q[1]}`;return`${q.slice(0,-1).join(", ")} ${N} ${q[q.length-1]}`}var e2=/(\/>|[\s"'=<>`])/y,T1=/<\/textarea(\s[^>]*)?>/iy,q6=/-->/,z9=/(\s|\/|>)/,j9=/[\s=/>"']/,O9=/["']/y,V6=/(?:"([^"]*)"|'([^'])*'|([^>\s]+))/y,U6=/^![a-zA-Z]+$/,H6=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/;function B6(q){if(U6.test(q))return!0;if(H6.test(q))return!0;return i1.test(q)}var T9=/^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u,A9=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),b8=new Map([...A9,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function j1(q){let N=q.index++,R=q.current();if(q.eat("!--")){let D=q.read_until(q6);q.eat("-->",!0),q.append({type:"Comment",start:N,end:q.index,data:D});return}if(q.eat("/")){let D=q.read_until(z9);if(q.allow_whitespace(),q.eat(">",!0),m8(D))U9(N);while(R.name!==D){if(q.loose){if(S9(R)){let O=R.attributes.at(-1);if(O?.type==="Attribute"&&O.name===`<${D}`){q.index=O.start,R.attributes.pop();break}}}if(R.type==="RegularElement"){if(!q.last_auto_closed_tag||q.last_auto_closed_tag.tag!==D){let O=R.fragment.nodes[0]?.start??N;p8({start:R.start,end:O},`</${D}>`,`</${R.name}>`)}}else if(!q.loose)if(q.last_auto_closed_tag&&q.last_auto_closed_tag.tag===D)f0(N,D,q.last_auto_closed_tag.reason);else E0(N,D);R.end=N,q.pop(),R=q.current()}if(R.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 U=O1(q,z9);if(U.name.startsWith("svelte:")&&!b8.has(U.name)){let D={start:N+1,end:N+1+U.name.length};p0(D,X9(Array.from(b8.keys())))}if(!B6(U.name)&&!T9.test(U.name)){if(!q.loose||!U.name.endsWith(".")){let D={start:N+1,end:N+1+U.name.length};r0(D)}}if(A9.has(U.name)){if(U.name in q.meta_tags)_0(N,U.name);if(R.type!=="Root")d0(N,U.name);q.meta_tags[U.name]=!0}let J=b8.has(U.name)?b8.get(U.name):T9.test(U.name)||q.loose&&U.name.endsWith(".")?"Component":U.name==="title"&&N6(q.stack)?"TitleElement":U.name==="slot"&&!J6(q.stack)?"SlotElement":"RegularElement",$=J==="RegularElement"?{type:J,start:N,end:-1,name:U.name,name_loc:U.loc,attributes:[],fragment:h(!0),metadata:{svg:!1,mathml:!1,scoped:!1,has_spread:!1,path:[],synthetic_value_node:null}}:{type:J,start:N,end:-1,name:U.name,name_loc:U.loc,attributes:[],fragment:h(!0),metadata:{}};if(q.allow_whitespace(),R.type==="RegularElement"&&W9(R.name,U.name)){let D=R.fragment.nodes[0]?.start??N;p8({start:R.start,end:D},`<${U.name}>`,`</${R.name}>`),R.end=N,q.pop(),q.last_auto_closed_tag={tag:R.name,reason:U.name,depth:q.stack.length}}let B=[],G=q.current(),Z=(U.name==="script"||U.name==="style")&&G.type==="Root",z=Z?R6:Q6,Y;while(Y=z(q)){if(Y.type==="Attribute"||Y.type==="BindDirective"||Y.type==="StyleDirective"||Y.type==="ClassDirective"){let D=Y.type==="BindDirective"?"Attribute":Y.type;if(B.includes(D+Y.name))z0(Y);else if(Y.name!=="this")B.push(D+Y.name)}$.attributes.push(Y),q.allow_whitespace()}if($.type==="Component")$.metadata.expression=new g;if($.type==="SvelteComponent"){let D=$.attributes.findIndex((w)=>w.type==="Attribute"&&w.name==="this");if(D===-1)c0(N);let O=$.attributes.splice(D,1)[0];if(!D1(O))m0(O.start);$.expression=S1(O),$.metadata.expression=new g}if($.type==="SvelteElement"){let D=$.attributes.findIndex((w)=>w.type==="Attribute"&&w.name==="this");if(D===-1)N1(N);let O=$.attributes.splice(D,1)[0];if(O.value===!0)N1(O);if(!D1(O)){q0(O);let w=O.value[0];$.tag=w.type==="Text"?{type:"Literal",value:w.data,raw:`'${w.raw}'`,start:w.start,end:w.end}:w.expression}else $.tag=S1(O);$.metadata.expression=new g}if(Z){q.eat(">",!0);let D=null;for(let O=G.fragment.nodes.length-1;O>=0;O--){let w=G.fragment.nodes[O];if(O===G.fragment.nodes.length-1&&w.end!==N)break;if(w.type==="Comment"){D=w;break}else if(w.type!=="Text"||w.data.trim())break}if(U.name==="script"){let O=R9(q,N,$.attributes);if(D)O.content.leadingComments=[{type:"Line",value:D.data}];if(O.context==="module"){if(G.module)H1(N);G.module=O}else{if(G.instance)H1(N);G.instance=O}}else{let O=W1(q,N,$.attributes);if(O.content.comment=D,G.css)l0(N);G.css=O}return}q.append($);let T=q.eat("/")||m8(U.name),W=q.eat(">",!0,!1);if(!W){let D=$.attributes.at(-1);if(D?.type==="Attribute"&&D.name==="<")q.index=D.start,$.attributes.pop();else{let O=q.template[q.index-1],w=q.template[q.index-2],P=q.template[q.index];if(w==="{"&&O==="/")q.index-=2;else if(O==="{"&&(P==="#"||P==="@"||P===":"))q.index-=1;else q.allow_whitespace()}}if(T||!W)$.end=q.index;else if(U.name==="textarea")$.fragment.nodes=M9(q,()=>{return T1.lastIndex=q.index,T1.test(q.template)},"inside <textarea>"),q.read(T1),$.end=q.index;else if(U.name==="script"||U.name==="style"){let D=q.index,O=`</${U.name}>`,w=q.template.indexOf(O,q.index),P=q.template.slice(q.index,w===-1?q.template.length:w);q.index=w===-1?q.template.length:w;let y=q.index,s={start:D,end:y,type:"Text",data:P,raw:P};$.fragment.nodes.push(s),q.eat(`</${U.name}>`,!0),$.end=q.index}else q.stack.push($),q.fragments.push($.fragment)}function N6(q){let N=q.length;while(N--){let{type:R}=q[N];if(R==="SvelteHead")return!0;if(R==="RegularElement"||R==="Component")return!1}return!1}function J6(q){let N=q.length;while(N--)if(q[N].type==="RegularElement"&&q[N].attributes.some((R)=>R.type==="Attribute"&&R.name==="shadowrootmode"))return!0;return!1}function R6(q){let N=q.index,R=O1(q,j9);if(!R.name)return null;let U=!0;if(q.eat("=")){q.allow_whitespace();let J=q.match_regex(V6);if(!J)V1(q.index);q.index+=J.length;let $=J[0]==='"'||J[0]==="'";if($)J=J.slice(1,-1);U=[{start:q.index-J.length-($?1:0),end:$?q.index-1:q.index,type:"Text",raw:J,data:S8(J,!0)}]}if(q.match_regex(O9))i(q.index,"=");return y8(R.name,R.loc,N,q.index,U)}function Q6(q){let N=null;while(N=$6(q))q.root.comments.push(N),q.allow_whitespace();let R=q.index;if(q.eat("{")){if(q.allow_whitespace(),q.eat("@attach")){q.require_whitespace();let Z=u(q);return q.allow_whitespace(),q.eat("}",!0),{type:"AttachTag",start:R,end:q.index,expression:Z,metadata:{expression:new g}}}if(q.eat("...")){let Z=u(q);return q.allow_whitespace(),q.eat("}",!0),{type:"SpreadAttribute",start:R,end:q.index,expression:Z,metadata:{expression:new g}}}else{let Z=q.read_identifier();if(Z.name==="")if(q.loose&&(q.match("#")||q.match("/")||q.match("@")||q.match(":")))return null;else if(q.loose&&q.match("}"));else T0(R);q.allow_whitespace(),q.eat("}",!0);let z={type:"ExpressionTag",start:Z.start,end:Z.end,expression:Z,metadata:{expression:new g}};return y8(Z.name,Z.loc,R,q.index,z)}}let U=O1(q,j9);if(!U.name)return null;let J=q.index;q.allow_whitespace();let $=U.name.indexOf(":"),B=$!==-1&&F6(U.name.slice(0,$)),G=!0;if(q.eat("="))if(q.allow_whitespace(),q.template[q.index]==="/"&&q.template[q.index+1]===">"){let Z=q.index;q.index++,G=[{start:Z,end:Z+1,type:"Text",raw:"/",data:"/"}],J=q.index}else G=Y6(q),J=q.index;else if(q.match_regex(O9))i(q.index,"=");if(B){let[Z,...z]=U.name.slice($+1).split("|");if(Z==="")P0({start:R,end:R+$+1},U.name);if(B==="StyleDirective")return{start:R,end:J,type:B,name:Z,name_loc:U.loc,modifiers:z,value:G,metadata:{expression:new g}};let Y=G===!0?void 0:Array.isArray(G)?G[0]:G,T=null;if(Y)if(G.length>1||Y.type==="Text")I0(Y.start);else T=Y.expression;let W={start:R,end:J,type:B,name:Z,name_loc:U.loc,expression:T,metadata:{expression:new g}};if(W.modifiers=z,W.type==="TransitionDirective"){let D=U.name.slice(0,$);W.intro=D==="in"||D==="transition",W.outro=D==="out"||D==="transition"}if((W.type==="BindDirective"||W.type==="ClassDirective")&&!W.expression)W.expression={start:R+$+1,end:J,type:"Identifier",name:W.name};return W}return y8(U.name,U.loc,R,J,G)}function $6(q){let N=q.index;if(q.eat("//")){let R=q.read_until(/\n/),U=q.index;return{type:"Line",start:N,end:U,value:R,loc:{start:x(N),end:x(U)}}}if(q.eat("/*")){let R=q.read_until(/\*\//);q.eat("*/");let U=q.index;return{type:"Block",start:N,end:U,value:R,loc:{start:x(N),end:x(U)}}}return null}function F6(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 Y6(q){let N=q.eat("'")?"'":q.eat('"')?'"':null;if(N&&q.eat(N))return[{start:q.index-1,end:q.index-1,type:"Text",raw:"",data:""}];let R;try{R=M9(q,()=>{if(N)return q.match(N);return!!q.match_regex(e2)},"in attribute value")}catch(U){if(U.code==="js_parse_error"){let J=U.position?.[0];if(J!==void 0&&q.template.slice(J-1,J+1)==="/>")q.index=J,i(J,N||"}")}throw U}if(R.length===0&&!N)V1(q.index);if(N)q.index+=1;if(N||R.length>1||R[0].type==="Text")return R;else return R[0]}function M9(q,N,R){let U={start:q.index,end:-1,type:"Text",raw:"",data:""},J=[];function $(B){if(B>U.start)U.raw=q.template.slice(U.start,B),U.data=S8(U.raw,!0),U.end=B,J.push(U)}while(q.index<q.template.length){let B=q.index;if(N())return $(q.index),J;else if(q.eat("{")){if(q.match("#")){let z=q.index-1;q.eat("#");let Y=q.read_until(/[^a-z]/);A0(z,Y,R)}else if(q.match("@")){let z=q.index-1;q.eat("@");let Y=q.read_until(/[^a-z]/);e0(z,Y,R)}$(q.index-1),q.allow_whitespace();let G=u(q);q.allow_whitespace(),q.eat("}",!0);let Z={type:"ExpressionTag",start:B,end:q.index,expression:G,metadata:{expression:new g}};J.push(Z),U={start:q.index,end:-1,type:"Text",raw:"",data:""}}else q.index++}if(q.loose)return J;else l(q.template.length)}function O1(q,N){let R=q.index,U=q.read_until(N),J=q.index;return{type:"Identifier",name:U,start:R,end:J,loc:{start:x(R),end:x(J)}}}function o(q){let{index:N,index:R}=q,U=q.read_identifier();if(U.name!==""){let z=C9(q);return{...U,typeAnnotation:z}}let J=q.template[R];if(J!=="{"&&J!=="[")y0(R);R=L8(q,N),q.index=R;let $=q.template.slice(N,R),B=q.template.slice(0,N).replace(W8," "),G=B.indexOf(" ");B=B.slice(0,G)+B.slice(G+1);let Z=J8(U8(q,`${B}(${$} = 1)`,N-1));if(Z=Z.left,Z.typeAnnotation=C9(q),Z.typeAnnotation)Z.end=Z.typeAnnotation.end;return Z}function C9(q){let N=q.index;if(q.allow_whitespace(),!q.eat(":")){q.index=N;return}let R="_ as ",U=q.index-R.length,J=q.template.slice(0,U).replace(/[^\n]/g," ")+R+q.template.slice(q.index).replace(/\?\s*:/g,":"),$=J8(U8(q,J,U));if($.type==="AssignmentExpression"){let B=$.right.start;while(J[B]!=="=")B-=1;$=J8(U8(q,J.slice(0,B),U))}if($.type==="SequenceExpression")$=$.expressions[0];return q.index=$.end,{type:"TSTypeAnnotation",start:N,end:q.index,typeAnnotation:$.typeAnnotation}}var A1=/\s*}/y,Z6=/(?:let|const)\b/y,G6=/(?:var|interface|enum)\b/y,L6=/type\b/y,D6={"<":">"};function C1(q){let N=q.index;if(q.index+=1,q.allow_whitespace(),q.eat("#"))return K6(q);if(q.eat(":"))return W6(q);if(q.eat("@"))return X6(q);if(q.match("/")){if(!q.match("/*")&&!q.match("//"))return q.eat("/"),M1(q)}let R=S6(q);if(R){q.append({type:"DeclarationTag",start:N,end:q.index,declaration:R,metadata:{expression:new g}});return}let U=u(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ExpressionTag",start:N,end:q.index,expression:U,metadata:{expression:new g}})}function S6(q){let N=q.index,R=q.match_regex(G6);if(R)C8({start:N,end:N+R.length});if(!q.match_regex(Z6)&&!q.match_regex(L6))return null;let U=q.root.comments.length,J;try{J=N9(q,q.template,N)}catch($){if(!q.loose)throw $;let B=k8(q.template,N,"{");if(B===void 0)throw $;q.index=B,J={type:"VariableDeclaration",kind:q.template.startsWith("const",N)?"const":"let",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"",start:q.index,end:q.index},init:null,start:q.index,end:q.index}],start:N,end:B}}if(J.type!=="VariableDeclaration")if(J.type==="ExpressionStatement")return q.root.comments.length=U,null;else C8({start:J.start??N,end:J.end??q.index});if(J.kind!=="let"&&J.kind!=="const")C8(J);return q.index=J.end,q.allow_whitespace(),q.eat("}",!0),J}function K6(q){let N=q.index-2;while(q.template[N]!=="{")N-=1;if(q.eat("if")){q.require_whitespace();let R=q.append({type:"IfBlock",elseif:!1,start:N,end:-1,test:u(q),consequent:h(),alternate:null,metadata:{expression:new g}});q.allow_whitespace(),q.eat("}",!0),q.stack.push(R),q.fragments.push(R.consequent);return}if(q.eat("each")){q.require_whitespace();let R=q.template,U=q.template.length,J;while(!J)try{J=u(q,void 0,!0)}catch(Y){U=Y.position[0]-2;while(U>N&&q.template.slice(U,U+2)!=="as")U-=1;if(U<=N){if(q.loose){if(J=Z1(q),J)break}throw Y}q.template=R.slice(0,U)}if(q.template=R,q.allow_whitespace(),!q.match("as")){if(J.type==="SequenceExpression")J=J.expressions[0];let Y=null,T=J.end;if(J=r(J,null,{TSAsExpression(W,D){if(W.end===J.end)return Y=W,T=W.expression.end,W.expression;D.next()}}),J.end=T,Y){let W=Y.typeAnnotation.start-2;while(q.template.slice(W,W+2)!=="as")W-=1;q.index=W}}let $=null,B,G;if(q.eat("as"))q.require_whitespace(),$=o(q);else q.index=J.end;if(q.allow_whitespace(),q.eat(",")){if(q.allow_whitespace(),B=q.read_identifier().name,!B)U1(q.index);q.allow_whitespace()}if(q.eat("("))q.allow_whitespace(),G=u(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 Y=q.index;$=o(q),q.eat("}",!0),J={type:"Identifier",name:"",start:J.start,end:Y-4}}else q.eat("}",!0);let z=q.append({type:"EachBlock",start:N,end:-1,expression:J,body:h(),context:$,index:B,key:G,metadata:null});q.stack.push(z),q.fragments.push(z.body);return}if(q.eat("await")){q.require_whitespace();let R=u(q);q.allow_whitespace();let U=q.append({type:"AwaitBlock",start:N,end:-1,expression:R,value:null,error:null,pending:null,then:null,catch:null,metadata:{expression:new g}});if(q.eat("then")){if(q.match_regex(A1))q.allow_whitespace();else q.require_whitespace(),U.value=o(q),q.allow_whitespace();U.then=h(),q.fragments.push(U.then)}else if(q.eat("catch")){if(q.match_regex(A1))q.allow_whitespace();else q.require_whitespace(),U.error=o(q),q.allow_whitespace();U.catch=h(),q.fragments.push(U.catch)}else U.pending=h(),q.fragments.push(U.pending);if(!q.eat("}",!0,!1))if(q.template.slice(q.index-6,q.index)===" then "){let $=q.index;U.value=o(q),q.eat("}",!0),U.expression={type:"Identifier",name:"",start:R.start,end:$-6},U.then=U.pending,U.pending=null}else if(q.template.slice(q.index-7,q.index)===" catch "){let $=q.index;U.error=o(q),q.eat("}",!0),U.expression={type:"Identifier",name:"",start:R.start,end:$-7},U.catch=U.pending,U.pending=null}else q.eat("}",!0);q.stack.push(U);return}if(q.eat("key")){q.require_whitespace();let R=u(q);q.allow_whitespace(),q.eat("}",!0);let U=q.append({type:"KeyBlock",start:N,end:-1,expression:R,fragment:h(),metadata:{expression:new g}});q.stack.push(U),q.fragments.push(U.fragment);return}if(q.eat("snippet")){q.require_whitespace();let R=q.read_identifier();if(R.name===""&&!q.loose)U1(q.index);q.allow_whitespace();let U=q.index,J;if(q.ts&&q.match("<")){let Y=q.index,T=L8(q,Y,D6);J=q.template.slice(Y+1,T-1),q.index=T}q.allow_whitespace();let $=q.eat("(",!0,!1);if($){let Y=1;while(q.index<q.template.length&&(!q.match(")")||Y!==1)){if(q.match("("))Y++;if(q.match(")"))Y--;q.index+=1}q.eat(")",!0)}let B=q.template.slice(0,U).replace(/\S/g," "),G=q.template.slice(U,q.index),Z=$?U8(q,B+`${G} => {}`,U):{params:[]};q.allow_whitespace(),q.eat("}",!0);let z=q.append({type:"SnippetBlock",start:N,end:-1,expression:R,typeParams:J,parameters:Z.params,body:h(),metadata:{can_hoist:!1,sites:new Set}});q.stack.push(z),q.fragments.push(z.body);return}k0(q.index)}function W6(q){let N=q.index-1,R=q.current();if(R.type==="IfBlock"){if(!q.eat("else"))i(N,"{:else} or {:else if}");if(q.eat("if"))O0(N);if(q.allow_whitespace(),q.fragments.pop(),R.alternate=h(),q.fragments.push(R.alternate),q.eat("if")){q.require_whitespace();let U=u(q);q.allow_whitespace(),q.eat("}",!0);let J=N-1;while(q.template[J]!=="{")J-=1;let $=q.append({start:J,end:-1,type:"IfBlock",elseif:!0,test:U,consequent:h(),alternate:null,metadata:{expression:new g}});q.stack.push($),q.fragments.pop(),q.fragments.push($.consequent)}else q.allow_whitespace(),q.eat("}",!0);return}if(R.type==="EachBlock"){if(!q.eat("else"))i(N,"{:else}");q.allow_whitespace(),q.eat("}",!0),R.fallback=h(),q.fragments.pop(),q.fragments.push(R.fallback);return}if(R.type==="AwaitBlock"){if(q.eat("then")){if(R.then)e8(N,"{:then}");if(!q.eat("}"))q.require_whitespace(),R.value=o(q),q.allow_whitespace(),q.eat("}",!0);R.then=h(),q.fragments.pop(),q.fragments.push(R.then);return}if(q.eat("catch")){if(R.catch)e8(N,"{:catch}");if(!q.eat("}"))q.require_whitespace(),R.error=o(q),q.allow_whitespace(),q.eat("}",!0);R.catch=h(),q.fragments.pop(),q.fragments.push(R.catch);return}i(N,"{:then ...} or {:catch ...}")}j0(N)}function M1(q){let N=q.index-1,R=q.current(),U;switch(R.type){case"IfBlock":if(U=q.eat("if",!0,!1),!U){R.end=N-1,q.pop(),M1(q);return}q.allow_whitespace(),q.eat("}",!0);while(R.elseif)R.end=q.index,q.stack.pop(),R=q.current();R.end=q.index,q.pop();return;case"EachBlock":U=q.eat("each",!0,!1);break;case"KeyBlock":U=q.eat("key",!0,!1);break;case"AwaitBlock":U=q.eat("await",!0,!1);break;case"SnippetBlock":U=q.eat("snippet",!0,!1);break;case"RegularElement":if(q.loose)U=!1;else q1(N);break;default:q1(N)}if(!U){R.end=N-1,q.pop(),M1(q);return}q.allow_whitespace(),q.eat("}",!0),R.end=q.index,q.pop()}function X6(q){let N=q.index;while(q.template[N]!=="{")N-=1;if(q.eat("html")){q.require_whitespace();let R=u(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"HtmlTag",start:N,end:q.index,expression:R,metadata:{expression:new g}});return}if(q.eat("debug")){let R;if(q.read(A1))R=[];else{let U=u(q);R=U.type==="SequenceExpression"?U.expressions:[U],R.forEach((J)=>{if(J.type!=="Identifier")w0(J.start)}),q.allow_whitespace(),q.eat("}",!0)}q.append({type:"DebugTag",start:N,end:q.index,identifiers:R});return}if(q.eat("const")){q.require_whitespace();let R=o(q);q.allow_whitespace(),q.eat("=",!0),q.allow_whitespace();let U=q.index,J=u(q);if(J.type==="SequenceExpression"&&!q.template.substring(U,J.start).includes("("))C0(J);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ConstTag",start:N,end:q.index,declaration:{type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:R,init:J,start:R.start,end:J.end}],start:N+2,end:q.index-1},metadata:{expression:new g}});return}if(q.eat("render")){q.require_whitespace();let R=u(q);if(R.type!=="CallExpression"&&(R.type!=="ChainExpression"||R.expression.type!=="CallExpression"))h0(R);q.allow_whitespace(),q.eat("}",!0),q.append({type:"RenderTag",start:N,end:q.index,expression:R,metadata:{expression:new g,dynamic:!1,arguments:[],path:[],snippets:new Set}});return}b0(q.index)}function w1(q){let N=q.index;while(q.index<q.template.length&&!q.match("<")&&!q.match("{"))q.index++;let R=q.template.slice(N,q.index);q.append({type:"Text",start:N,end:q.index,raw:R,data:S8(R,!1)})}function K8(q){if(q.match("<"))return j1;if(q.match("{"))return C1;return w1}function I1(q){let N={start:q.start,end:q.end,attributes:q.attributes};if(!q)return N;for(let R of q.attributes){if(R.type!=="Attribute")t0(R);let{name:U}=R;switch(U){case"runes":{N.runes=v8(R);break}case"tag":{o0(R);break}case"customElement":{let J={},{value:$}=R,B=$===!0||Array.isArray($)?$:[$];if(B===!0)P8(R);else if(B[0].type==="Text"){let W=g8(R);I9(R,W),J.tag=W,N.customElement=J;break}else if(B[0].expression.type!=="ObjectExpression"){if(B[0].expression.type==="Literal"&&B[0].expression.value===null)break;P8(R)}let G=[];for(let W of B[0].expression.properties){if(W.type!=="Property"||W.computed||W.key.type!=="Identifier")P8(R);G.push([W.key.name,W.value])}let Z=G.find(([W])=>W==="tag");if(Z){let W=Z[1]?.value;I9(Z,W),J.tag=W}let z=G.find(([W])=>W==="props")?.[1];if(z){if(z.type!=="ObjectExpression")V8(R);J.props={};for(let W of z.properties){if(W.type!=="Property"||W.computed||W.key.type!=="Identifier"||W.value.type!=="ObjectExpression")V8(R);J.props[W.key.name]={};for(let D of W.value.properties){if(D.type!=="Property"||D.computed||D.key.type!=="Identifier"||D.value.type!=="Literal")V8(R);if(D.key.name==="type"){if(["String","Number","Boolean","Array","Object"].indexOf(D.value.value)===-1)V8(R);J.props[W.key.name].type=D.value.value}else if(D.key.name==="reflect"){if(typeof D.value.value!=="boolean")V8(R);J.props[W.key.name].reflect=D.value.value}else if(D.key.name==="attribute"){if(typeof D.value.value!=="string")V8(R);J.props[W.key.name].attribute=D.value.value}else V8(R)}}}let Y=G.find(([W])=>W==="shadow")?.[1];if(Y)if(Y.type==="Literal"&&(Y.value==="open"||Y.value==="none"))J.shadow=Y.value;else if(Y.type==="ObjectExpression")J.shadow=Y;else n0(R);let T=G.find(([W])=>W==="extend")?.[1];if(T)J.extend=T;N.customElement=J;break}case"namespace":{let J=g8(R);if(J===g1)N.namespace="svg";else if(J===h1)N.namespace="mathml";else if(J==="html"||J==="mathml"||J==="svg")N.namespace=J;else I8(R,'"html", "mathml" or "svg"');break}case"css":{let J=g8(R);if(J==="injected")N.css=J;else I8(R,'"injected"');break}case"immutable":{N.immutable=v8(R);break}case"preserveWhitespace":{N.preserveWhitespace=v8(R);break}case"accessors":{N.accessors=v8(R);break}default:s0(R,U)}}return N}function g8(q){let{value:N}=q;if(N===!0)return!0;let R=Array.isArray(N)?N[0]:N;if(!R)return!0;if(N.length>1)return null;if(R.type==="Text")return R.data;if(R.expression.type!=="Literal")return null;return R.expression.value}function v8(q){let N=g8(q);if(typeof N!=="boolean")I8(q,"true or false");return N}var w9="[a-z0-9_.·À-ÖØ-öø-ͽͿ--‿-⁀⁰-Ⰰ-、-豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF-]",z6=new RegExp(`^[a-z]${w9}*-${w9}*$`,"u"),T6=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function I9(q,N){if(typeof N!=="string")J1(q);if(N){if(!z6.test(N))J1(q);else if(T6.includes(N))a0(q)}}function P9(q){let{nodes:N}=q.fragment;if(N.length>0){let R=N[0],U=N[N.length-1];i0({start:R.start,end:U.end},q.name)}}function E9(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 f9=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g;class P1{template;loose;index=0;static forCss(q){let N=Object.create(P1.prototype);return N.template=q,N.index=0,N.loose=!1,N}ts=!1;stack=[];fragments=[];root;meta_tags={};last_auto_closed_tag;constructor(q,N){if(typeof q!=="string")throw TypeError("Template must be a string");this.loose=N,this.template=q.trimEnd();let R;do R=f9.exec(q);while(R&&R[0][1]!=="s");f9.lastIndex=0,this.ts=R?.[2]==="ts",this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:h(),options:null,comments:[],metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let U=K8;while(this.index<this.template.length)U=U(this)||K8;if(this.stack.length>1){let $=this.current();if(this.loose)$.end=this.template.length;else if($.type==="RegularElement")$.end=$.start+1,w8($,$.name);else $.end=$.start+1,M0($)}if(U!==K8)l(this.index);this.root.start=0,this.root.end=q.length;let J=this.root.fragment.nodes.findIndex(($)=>$.type==="SvelteOptions");if(J!==-1){let $=this.root.fragment.nodes[J];this.root.fragment.nodes.splice(J,1),this.root.options=I1($),P9($),Object.defineProperty(this.root.options,"__raw__",{value:$,enumerable:!1})}}current(){return this.stack[this.stack.length-1]}eat(q,N=!1,R=!0){if(this.match(q))return this.index+=q.length,!0;if(N&&(!this.loose||R))i(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 N=q.exec(this.template);if(!N||N.index!==this.index)return null;return N[0]}allow_whitespace(){while(this.index<this.template.length&&E9(this.template.charCodeAt(this.index)))this.index++}read(q){let N=this.match_regex(q);if(N)this.index+=N.length;return N}read_identifier(){let q=this.index,N=q,R="",U=this.template.codePointAt(this.index);if(k9(U,!0)){let J=this.index;N+=U<=65535?1:2;while(N<this.template.length){let $=this.template.codePointAt(N);if(!y9($,!0))break;N+=$<=65535?1:2}if(R=this.template.slice(q,N),this.index=N,_1(R))q9(q,R)}return{type:"Identifier",name:R,start:q,end:N,loc:{start:x(q),end:x(N)}}}read_until(q){if(this.index>=this.template.length){if(this.loose)return"";l(this.template.length)}let N=this.index,R=q.exec(this.template.slice(N));if(R)return this.index=N+R.index,this.template.slice(N,this.index);return this.index=this.template.length,this.template.slice(N)}require_whitespace(){if(!E9(this.template.charCodeAt(this.index)))v0(this.index);this.allow_whitespace()}pop(){let q=this.fragments.pop();if(q?.metadata.transparent&&q.nodes.some((N)=>N.type==="DeclarationTag"))q.metadata.transparent=!1;return this.stack.pop()}append(q){return this.fragments.at(-1)?.nodes.push(q),q}}function b9(q,N=!1){return d1(q),new P1(q,N).root}function j6(q){return q.charCodeAt(0)===65279?q.slice(1):q}function E1(q){delete q.metadata}function f1(q){if(!q||typeof q!=="object"||typeof q.type!=="string")return;E1(q);for(let N in q){if(N==="type")continue;let R=q[N];if(!R||typeof R!=="object")continue;if(Array.isArray(R))for(let U of R)f1(U);else f1(R)}}function O6(q,N,R){if(R){for(let U of N.options?.attributes??[])if(E1(U),U.value)for(let J of Array.isArray(U.value)?U.value:[U.value])E1(J);return f1(N),N}return H0(q,N)}function m5(q,{modern:N,loose:R}={}){let U=j6(q);o1({warning:()=>!1,filename:void 0});let J=b9(U,R);return O6(U,J,N)}
|
|
62
|
-
export{
|
|
54
|
+
https://svelte.dev/e/unexpected_eof`)}function H9(q,B){C(q,"unexpected_reserved_word",`'${B}' is a reserved word in JavaScript and cannot be used here
|
|
55
|
+
https://svelte.dev/e/unexpected_reserved_word`)}function N9(q){C(q,"unterminated_string_constant",`Unterminated string constant
|
|
56
|
+
https://svelte.dev/e/unterminated_string_constant`)}function B9(q){C(q,"void_element_invalid_content",`Void elements cannot have children or closing tags
|
|
57
|
+
https://svelte.dev/e/void_element_invalid_content`)}var E8=J9,Q1=E8.extend(X0());function R9(q,B,R,U){let J=R?Q1:E8,{onComment:$,add_comments:N}=Y1(q,B),G=J.prototype.parseStatement;if(U)J.prototype.parseStatement=function(...Z){let z=G.call(this,...Z);return this.undefinedExports={},z};try{let Z=J.parse(q,{onComment:$,sourceType:"module",ecmaVersion:16,locations:!0});return N(Z),Z}catch(Z){return $1(Z)}finally{if(U)J.prototype.parseStatement=G}}function U8(q,B,R){let U=q.ts?Q1:E8,{onComment:J,add_comments:$}=Y1(B,q.root.comments,R);try{let N=U.parseExpressionAt(B,R,{onComment:J,sourceType:"module",ecmaVersion:16,locations:!0,preserveParens:!0});return $(N),N}catch(N){$1(N)}}function Q9(q,B,R){let U=q.ts?Q1:E8,{onComment:J,add_comments:$}=Y1(B,q.root.comments,R);try{let N=new U({onComment:J,sourceType:"module",ecmaVersion:16,locations:!0},B,R);N.nextToken();let G=N.parseStatement(null,!0,Object.create(null));return $(G),G}catch(N){if(N.pos===B.length)l(B.length);$1(N)}}var j2=/ \(\d+:\d+\)$/;function $1(q){u0(q.pos,q.message.replace(j2,""))}function J8(q){return r(q,null,{ParenthesizedExpression(B,R){return R.visit(B.expression)}})}function Y1(q,B,R=0){return{onComment:(U,J,$,N,G,Z)=>{if(U&&/\n/.test(J)){let z=$;while(z>0&&q[z-1]!==`
|
|
58
|
+
`)z-=1;let F=z;while(/[ \t]/.test(q[F]))F+=1;let T=q.slice(z,F);J=J.replace(new RegExp(`^${T}`,"gm"),"")}B.push({type:U?"Block":"Line",value:J,start:$,end:N,loc:{start:G,end:Z}})},add_comments(U){if(B.length===0)return;if(B=B.filter((J)=>J.start>=R).map(({type:J,value:$,start:N,end:G})=>({type:J,value:$,start:N,end:G})),r(U,null,{_(J,{next:$,path:N}){let G;while(B[0]&&B[0].start<J.start)G=B.shift(),(J.leadingComments||=[]).push(G);if($(),B[0]){let Z=N.at(-1);if(Z===void 0||J.end!==Z.end){let z=q.slice(J.end,B[0].start);if((Z?.type==="BlockStatement"||Z?.type==="Program")&&Z.body.indexOf(J)===Z.body.length-1||Z?.type==="ArrayExpression"&&Z.elements.indexOf(J)===Z.elements.length-1||Z?.type==="ObjectExpression"&&Z.properties.indexOf(J)===Z.properties.length-1){let T=J.end;while(B.length){let W=B[0];if(Z&&W.start>=Z.end)break;(J.trailingComments||=[]).push(W),B.shift(),T=W.end}}else if(J.end<=B[0].start&&/^[,) \t]*$/.test(z))J.trailingComments=[B.shift()]}}}}),B.length>0&&(B[0].start>=U.end||U.type==="Program"))(U.trailingComments||=[]).push(...B.splice(0))}}}function F1(q){if(q<0)return 1/0;return q}function A2(q,B,R){let U;if(R==="`")U=q;else U=q.slice(0,F1(q.indexOf(`
|
|
59
|
+
`,B)));return Z1(U,B,R)}function M2(q,B){let R=Z1(q,B,"/"),U=Z1(q,B,`
|
|
60
|
+
`);return R<U?R:1/0}function Z1(q,B,R){let U=B;while(!0){let J=q.indexOf(R,U);if(J===-1)return 1/0;if(C2(q,J-1)%2===0)return J;U=J+1}}function C2(q,B){let R=B,U=0;while(q[R]==="\\")U++,R--;return U}function k8(q,B,R){let U=f8[R],J=1,$=B;while(J>0&&$<q.length){let N=q[$];switch(N){case"'":case'"':case"`":$=A2(q,$+1,N)+1;continue;case"/":{let G=q[$+1];if(!G){$++;continue}if(G==="/"){$=F1(q.indexOf(`
|
|
61
|
+
`,$+1))+1;continue}if(G==="*"){$=F1(q.indexOf("*/",$+1))+2;continue}let Z=M2(q,$+1)+1;if(Z===1/0)$++;else $=Z;continue}default:{let G=q[$];if(G===R)J++;else if(G===U)J--;if(J===0)return $;$++}}}return}var f8={"{":"}","(":")","[":"]"},w2=new Set(Object.values(f8));function L8(q,B,R=f8){let U=R===f8?w2:new Set(Object.values(R)),J=[],$=B;while($<q.template.length){let N=q.template[$++];if(N==="'"||N==='"'||N==="`"){$=I2(q,$,N);continue}if(N in R)J.push(N);else if(U.has(N)){let G=J.pop(),Z=R[G];if(N!==Z)i($-1,Z);if(J.length===0)return $}}l(q.template.length)}function I2(q,B,R){let U=!1,J=B;while(J<q.template.length){let $=q.template[J++];if(U){U=!1;continue}if($===R)return J;if($==="\\")U=!0;if(R==="`"&&$==="$"&&q.template[J]==="{")J=L8(q,J)}N9(B)}function G1(q,B){let R=k8(q.template,q.index,B??"{");if(R){let U=q.index;return q.index=R,{type:"Identifier",start:U,end:R,name:""}}}function u(q,B,R){try{let U=U8(q,q.template,q.index),J=U.end,$=q.root.comments.at(-1);if($&&$.end>J)J=$.end;return q.index=J,J8(U)}catch(U){if(q.loose&&!R){let J=G1(q,B);if(J)return J}throw U}}function L1(q=[]){return{type:"ArrayExpression",elements:q}}function P2(q,B){return{type:"UnaryExpression",argument:B,operator:q,prefix:!0}}var w7=P2("void",D8(0));function D8(q){return{type:"Literal",value:q}}var E2=D8(!0),I7=D8(!1),P7=D8(null);function $9(q){return Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="Text"}function S1(q){return q.value!==!0&&!Array.isArray(q.value)||Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="ExpressionTag"}function K1(q){return Array.isArray(q.value)?q.value[0].expression:q.value.expression}var f2=/<\/script\s*>/,k2=/<\/script\s*>/y,b2=["server","client","worker","test","default"],y2=["context","generics","lang","module"];function Y9(q,B,R){let U=q.index,J=q.read_until(f2);if(q.index>=q.template.length)w8(q.template.length,"script");let $=q.template.slice(0,U).replace(W8," ")+J;q.read(k2);let N=R9($,q.root.comments,q.ts,!0);if(N.start=U,N.loc)({line:N.loc.start.line,column:N.loc.start.column}=x(B)),{line:N.loc.end.line,column:N.loc.end.column}=x(q.index);let G="default";for(let Z of R){if(b2.includes(Z.name))c0(Z,Z.name);if(!y2.includes(Z.name))U0(Z);if(Z.name==="module"){if(Z.value!==!0)m0(Z,Z.name);G="module"}if(Z.name==="context"){if(Z.value===!0||!$9(Z))B1(Z);if(Z.value[0].data!=="module")B1(Z);G="module"}}return{type:"Script",start:B,end:q.index,context:G,content:N,attributes:R}}var v2=/[~^$*|]?=/y,g2=/[\s\]]/,h2=/[a-zA-Z]+/y,G9=/(\+|~|>|\|\|)/y,F9=/\d+(\.\d+)?%/y,Z9=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/y,x2=/[\s:]/,u2=/-?\d/y,l2=/[a-zA-Z0-9_-]/,m2=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y,c2=/\*\//,_2=/-->/;function X1(q,B,R){let U=q.index,J=i2(q,(N)=>N.match("</style")||N.index>=N.template.length),$=q.index;return q.eat("</style",!0),q.read(/\s*>/y),{type:"StyleSheet",start:B,end:q.index,attributes:R,children:J,content:{start:U,end:$,styles:q.template.slice(U,$),comment:null}}}function i2(q,B){let R=[];while(R8(q),!B(q))if(q.match("@"))R.push(L9(q));else R.push(D9(q));return R}function L9(q){let B=q.index;q.eat("@",!0);let R=e(q),U=z1(q),J=null;if(q.match("{"))J=S9(q);else q.eat(";",!0);return{type:"Atrule",start:B,end:q.index,name:R,prelude:U,block:J}}function D9(q){let B=q.index;return{type:"Rule",prelude:W1(q),block:S9(q),start:B,end:q.index,metadata:{parent_rule:null,has_local_selectors:!1,has_global_selectors:!1,is_global_block:!1}}}function W1(q,B=!1){let R=[];R8(q);let U=q.index;while(q.index<q.template.length){R.push(d2(q,B));let J=q.index;if(R8(q),B?q.match(")"):q.match("{"))return{type:"SelectorList",start:U,end:J,children:R};else q.eat(",",!0),R8(q)}l(q.template.length)}function d2(q,B=!1){let R=q.index,U=[];function J(N,G){return{type:"RelativeSelector",combinator:N,selectors:[],start:G,end:-1,metadata:{is_global:!1,is_global_like:!1,scoped:!1}}}let $=J(null,q.index);while(q.index<q.template.length){let N=q.index;if(q.eat("&"))$.selectors.push({type:"NestingSelector",name:"&",start:N,end:q.index});else if(q.eat("*")){let z="*";if(q.eat("|"))z=e(q);$.selectors.push({type:"TypeSelector",name:z,start:N,end:q.index})}else if(q.eat("#"))$.selectors.push({type:"IdSelector",name:e(q),start:N,end:q.index});else if(q.eat("."))$.selectors.push({type:"ClassSelector",name:e(q),start:N,end:q.index});else if(q.eat("::")){if($.selectors.push({type:"PseudoElementSelector",name:e(q),start:N,end:q.index}),q.eat("("))W1(q,!0),q.eat(")",!0)}else if(q.eat(":")){let z=e(q),F=null;if(q.eat("("))F=W1(q,!0),q.eat(")",!0);$.selectors.push({type:"PseudoClassSelector",name:z,args:F,start:N,end:q.index})}else if(q.eat("[")){q.allow_whitespace();let z=e(q);q.allow_whitespace();let F=null,T=q.read(v2);if(T)q.allow_whitespace(),F=n2(q);q.allow_whitespace();let W=q.read(h2);q.allow_whitespace(),q.eat("]",!0),$.selectors.push({type:"AttributeSelector",start:N,end:q.index,name:z,matcher:T,value:F,flags:W})}else if(B&&q.match_regex(Z9))$.selectors.push({type:"Nth",value:q.read(Z9),start:N,end:q.index});else if(q.match_regex(F9))$.selectors.push({type:"Percentage",value:q.read(F9),start:N,end:q.index});else if(!q.match_regex(G9)){let z=e(q);if(q.eat("|"))z=e(q);$.selectors.push({type:"TypeSelector",name:z,start:N,end:q.index})}let G=q.index;if(R8(q),q.match(",")||(B?q.match(")"):q.match("{")))return q.index=G,$.end=G,U.push($),{type:"ComplexSelector",start:R,end:G,children:U,metadata:{rule:null,is_global:!1,used:!1}};q.index=G;let Z=p2(q);if(Z){if($.selectors.length>0)$.end=G,U.push($);if($=J(Z,Z.start),q.allow_whitespace(),q.match(",")||(B?q.match(")"):q.match("{")))j0(q.index)}}l(q.template.length)}function p2(q){let B=q.index;q.allow_whitespace();let R=q.index,U=q.read(G9);if(U){let J=q.index;return q.allow_whitespace(),{type:"Combinator",name:U,start:R,end:J}}if(q.index!==B)return{type:"Combinator",name:" ",start:B,end:q.index};return null}function S9(q){let B=q.index;q.eat("{",!0);let R=[];while(q.index<q.template.length)if(R8(q),q.match("}"))break;else R.push(o2(q));return q.eat("}",!0),{type:"Block",start:B,end:q.index,children:R}}function o2(q){if(q.match("@"))return L9(q);let B=q.index;z1(q);let R=q.template[q.index];return q.index=B,R==="{"?D9(q):t2(q)}function t2(q){let B=q.index,R=q.read_until(x2);q.allow_whitespace(),q.eat(":");let U=q.index;q.allow_whitespace();let J=z1(q);if(!J&&!R.startsWith("--"))T0({start:B,end:U});let $=q.index;if(!q.match("}"))q.eat(";",!0);return{type:"Declaration",start:B,end:$,property:R,value:J}}function z1(q){let B="",R=!1,U=!1,J=null;while(q.index<q.template.length){let $=q.template[q.index];if(R){B+="\\"+$,R=!1,q.index++;continue}else if($==="\\"){R=!0,q.index++;continue}else if($===J)J=null;else if($===")")U=!1;else if(J===null&&($==='"'||$==="'"))J=$;else if($==="("&&B.slice(-3)==="url")U=!0;else if(($===";"||$==="{"||$==="}")&&!U&&!J)return B.trim();else if($==="/"&&!U&&!J&&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}B+=$,q.index++}l(q.template.length)}function n2(q){let B="",R=!1,U=q.eat('"')?'"':q.eat("'")?"'":null;while(q.index<q.template.length){let J=q.template[q.index];if(R)B+="\\"+J,R=!1;else if(J==="\\")R=!0;else if(U?J===U:g2.test(J)){if(U)q.eat(U,!0);return B.trim()}else B+=J;q.index++}l(q.template.length)}function e(q){let B=q.index,R="";if(q.match_regex(u2))e8(B);while(q.index<q.template.length){let U=q.template[q.index];if(U==="\\"){let J=q.match_regex(m2);if(J)R+=String.fromCodePoint(parseInt(J.slice(1),16)),q.index+=J.length;else R+="\\"+q.template[q.index+1],q.index+=2}else if(U.codePointAt(0)>=160||l2.test(U))R+=U,q.index++;else break}if(R==="")e8(B);return R}function R8(q){q.allow_whitespace();while(q.match("/*")||q.match("<!--")){if(q.eat("/*"))q.read_until(c2),q.eat("*/",!0);if(q.eat("<!--"))q.read_until(_2),q.eat("-->",!0);q.allow_whitespace()}}var T1={"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 a2=[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 s2(q,B){if(B&&!q.endsWith(";"))return`${q}\\b(?!=)`;return q}function W9(q){let R=Object.keys(T1).map((J)=>s2(J,q));return new RegExp(`&(#(?:x[a-fA-F\\d]+|\\d+)(?:;)?|${R.join("|")})`,"g")}var r2=W9(!1),e2=W9(!0);function S8(q,B){let R=B?e2:r2;return q.replace(R,(U,J)=>{let $;if(J[0]!=="#")$=T1[J];else if(J[1]==="x")$=parseInt(J.substring(2),16);else $=parseInt(J.substring(1),10);if(!$)return U;return String.fromCodePoint(q6($))})}var K9=0;function q6(q){if(q===10)return 32;if(q<128)return q;if(q<=159)return a2[q-128];if(q<55296)return q;if(q<=57343)return K9;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 K9}function h(q=!1){return{type:"Fragment",nodes:[],metadata:{transparent:q,dynamic:!1}}}var V6=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function X9(q){return V6.includes(q.type)}function b8(q,B,R,U,J){return{type:"Attribute",start:R,end:U,name:q,name_loc:B,value:J,metadata:{delegated:!1,needs_clsx:!1}}}class g{has_state=!1;has_call=!1;has_await=!1;has_member_expression=!1;has_assignment=!1;dependencies=new Set;references=new Set;#q=null;#V(){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 L1([...this.#V()])}has_blockers(){return this.#V().size>0}has_more_blockers_than(q){for(let B of this.#V())if(!q.#V().has(B))return!0;return!1}is_async(){return this.has_await||this.#V().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 B of q.references)this.references.add(B);for(let B of q.dependencies)this.dependencies.add(B)}}var z9={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 T9(q,B){let R=z9[q];if(R){if(!B||("direct"in R?R.direct:R.descendant).includes(B))return!0}return!1}var a7={...z9,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 j9(q,B="or"){if(q.length===1)return q[0];if(q.length===2)return`${q[0]} ${B} ${q[1]}`;return`${q.slice(0,-1).join(", ")} ${B} ${q[q.length-1]}`}var U6=/(\/>|[\s"'=<>`])/y,j1=/<\/textarea(\s[^>]*)?>/iy,H6=/-->/,O9=/(\s|\/|>)/,M9=/[\s=/>"']/,C9=/["']/y,N6=/(?:"([^"]*)"|'([^'])*'|([^>\s]+))/y,B6=/^![a-zA-Z]+$/,J6=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/;function R6(q){if(B6.test(q))return!0;if(J6.test(q))return!0;return t1.test(q)}var A9=/^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u,w9=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),y8=new Map([...w9,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function O1(q){let B=q.index++,R=q.current();if(q.eat("!--")){let D=q.read_until(H6);q.eat("-->",!0),q.append({type:"Comment",start:B,end:q.index,data:D});return}if(q.eat("/")){let D=q.read_until(O9);if(q.allow_whitespace(),q.eat(">",!0),m8(D))B9(B);while(R.name!==D){if(q.loose){if(X9(R)){let O=R.attributes.at(-1);if(O?.type==="Attribute"&&O.name===`<${D}`){q.index=O.start,R.attributes.pop();break}}}if(R.type==="RegularElement"){if(!q.last_auto_closed_tag||q.last_auto_closed_tag.tag!==D){let O=R.fragment.nodes[0]?.start??B;o8({start:R.start,end:O},`</${D}>`,`</${R.name}>`)}}else if(!q.loose)if(q.last_auto_closed_tag&&q.last_auto_closed_tag.tag===D)y0(B,D,q.last_auto_closed_tag.reason);else b0(B,D);R.end=B,q.pop(),R=q.current()}if(R.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 U=A1(q,O9);if(U.name.startsWith("svelte:")&&!y8.has(U.name)){let D={start:B+1,end:B+1+U.name.length};n0(D,j9(Array.from(y8.keys())))}if(!R6(U.name)&&!A9.test(U.name)){if(!q.loose||!U.name.endsWith(".")){let D={start:B+1,end:B+1+U.name.length};V9(D)}}if(w9.has(U.name)){if(U.name in q.meta_tags)p0(B,U.name);if(R.type!=="Root")t0(B,U.name);q.meta_tags[U.name]=!0}let J=y8.has(U.name)?y8.get(U.name):A9.test(U.name)||q.loose&&U.name.endsWith(".")?"Component":U.name==="title"&&Q6(q.stack)?"TitleElement":U.name==="slot"&&!$6(q.stack)?"SlotElement":"RegularElement",$=J==="RegularElement"?{type:J,start:B,end:-1,name:U.name,name_loc:U.loc,attributes:[],fragment:h(!0),metadata:{svg:!1,mathml:!1,scoped:!1,has_spread:!1,path:[],synthetic_value_node:null}}:{type:J,start:B,end:-1,name:U.name,name_loc:U.loc,attributes:[],fragment:h(!0),metadata:{}};if(q.allow_whitespace(),R.type==="RegularElement"&&T9(R.name,U.name)){let D=R.fragment.nodes[0]?.start??B;o8({start:R.start,end:D},`<${U.name}>`,`</${R.name}>`),R.end=B,q.pop(),q.last_auto_closed_tag={tag:R.name,reason:U.name,depth:q.stack.length}}let N=[],G=q.current(),Z=(U.name==="script"||U.name==="style")&&G.type==="Root",z=Z?Y6:F6,F;while(F=z(q)){if(F.type==="Attribute"||F.type==="BindDirective"||F.type==="StyleDirective"||F.type==="ClassDirective"){let D=F.type==="BindDirective"?"Attribute":F.type;if(N.includes(D+F.name))O0(F);else if(F.name!=="this")N.push(D+F.name)}$.attributes.push(F),q.allow_whitespace()}if($.type==="Component")$.metadata.expression=new g;if($.type==="SvelteComponent"){let D=$.attributes.findIndex((w)=>w.type==="Attribute"&&w.name==="this");if(D===-1)d0(B);let O=$.attributes.splice(D,1)[0];if(!S1(O))i0(O.start);$.expression=K1(O),$.metadata.expression=new g}if($.type==="SvelteElement"){let D=$.attributes.findIndex((w)=>w.type==="Attribute"&&w.name==="this");if(D===-1)J1(B);let O=$.attributes.splice(D,1)[0];if(O.value===!0)J1(O);if(!S1(O)){H0(O);let w=O.value[0];$.tag=w.type==="Text"?{type:"Literal",value:w.data,raw:`'${w.raw}'`,start:w.start,end:w.end}:w.expression}else $.tag=K1(O);$.metadata.expression=new g}if(Z){q.eat(">",!0);let D=null;for(let O=G.fragment.nodes.length-1;O>=0;O--){let w=G.fragment.nodes[O];if(O===G.fragment.nodes.length-1&&w.end!==B)break;if(w.type==="Comment"){D=w;break}else if(w.type!=="Text"||w.data.trim())break}if(U.name==="script"){let O=Y9(q,B,$.attributes);if(D)O.content.leadingComments=[{type:"Line",value:D.data}];if(O.context==="module"){if(G.module)N1(B);G.module=O}else{if(G.instance)N1(B);G.instance=O}}else{let O=X1(q,B,$.attributes);if(O.content.comment=D,G.css)_0(B);G.css=O}return}q.append($);let T=q.eat("/")||m8(U.name),W=q.eat(">",!0,!1);if(!W){let D=$.attributes.at(-1);if(D?.type==="Attribute"&&D.name==="<")q.index=D.start,$.attributes.pop();else{let O=q.template[q.index-1],w=q.template[q.index-2],P=q.template[q.index];if(w==="{"&&O==="/")q.index-=2;else if(O==="{"&&(P==="#"||P==="@"||P===":"))q.index-=1;else q.allow_whitespace()}}if(T||!W)$.end=q.index;else if(U.name==="textarea")$.fragment.nodes=I9(q,()=>{return j1.lastIndex=q.index,j1.test(q.template)},"inside <textarea>"),q.read(j1),$.end=q.index;else if(U.name==="script"||U.name==="style"){let D=q.index,O=`</${U.name}>`,w=q.template.indexOf(O,q.index),P=q.template.slice(q.index,w===-1?q.template.length:w);q.index=w===-1?q.template.length:w;let b=q.index,s={start:D,end:b,type:"Text",data:P,raw:P};$.fragment.nodes.push(s),q.eat(`</${U.name}>`,!0),$.end=q.index}else q.stack.push($),q.fragments.push($.fragment)}function Q6(q){let B=q.length;while(B--){let{type:R}=q[B];if(R==="SvelteHead")return!0;if(R==="RegularElement"||R==="Component")return!1}return!1}function $6(q){let B=q.length;while(B--)if(q[B].type==="RegularElement"&&q[B].attributes.some((R)=>R.type==="Attribute"&&R.name==="shadowrootmode"))return!0;return!1}function Y6(q){let B=q.index,R=A1(q,M9);if(!R.name)return null;let U=!0;if(q.eat("=")){q.allow_whitespace();let J=q.match_regex(N6);if(!J)U1(q.index);q.index+=J.length;let $=J[0]==='"'||J[0]==="'";if($)J=J.slice(1,-1);U=[{start:q.index-J.length-($?1:0),end:$?q.index-1:q.index,type:"Text",raw:J,data:S8(J,!0)}]}if(q.match_regex(C9))i(q.index,"=");return b8(R.name,R.loc,B,q.index,U)}function F6(q){let B=null;while(B=Z6(q))q.root.comments.push(B),q.allow_whitespace();let R=q.index;if(q.eat("{")){if(q.allow_whitespace(),q.eat("@attach")){q.require_whitespace();let Z=u(q);return q.allow_whitespace(),q.eat("}",!0),{type:"AttachTag",start:R,end:q.index,expression:Z,metadata:{expression:new g}}}if(q.eat("...")){let Z=u(q);return q.allow_whitespace(),q.eat("}",!0),{type:"SpreadAttribute",start:R,end:q.index,expression:Z,metadata:{expression:new g}}}else{let Z=q.read_identifier();if(Z.name==="")if(q.loose&&(q.match("#")||q.match("/")||q.match("@")||q.match(":")))return null;else if(q.loose&&q.match("}"));else A0(R);q.allow_whitespace(),q.eat("}",!0);let z={type:"ExpressionTag",start:Z.start,end:Z.end,expression:Z,metadata:{expression:new g}};return b8(Z.name,Z.loc,R,q.index,z)}}let U=A1(q,M9);if(!U.name)return null;let J=q.index;q.allow_whitespace();let $=U.name.indexOf(":"),N=$!==-1&&G6(U.name.slice(0,$)),G=!0;if(q.eat("="))if(q.allow_whitespace(),q.template[q.index]==="/"&&q.template[q.index+1]===">"){let Z=q.index;q.index++,G=[{start:Z,end:Z+1,type:"Text",raw:"/",data:"/"}],J=q.index}else G=L6(q),J=q.index;else if(q.match_regex(C9))i(q.index,"=");if(N){let[Z,...z]=U.name.slice($+1).split("|");if(Z==="")k0({start:R,end:R+$+1},U.name);if(N==="StyleDirective")return{start:R,end:J,type:N,name:Z,name_loc:U.loc,modifiers:z,value:G,metadata:{expression:new g}};let F=G===!0?void 0:Array.isArray(G)?G[0]:G,T=null;if(F)if(G.length>1||F.type==="Text")f0(F.start);else T=F.expression;let W={start:R,end:J,type:N,name:Z,name_loc:U.loc,expression:T,metadata:{expression:new g}};if(W.modifiers=z,W.type==="TransitionDirective"){let D=U.name.slice(0,$);W.intro=D==="in"||D==="transition",W.outro=D==="out"||D==="transition"}if((W.type==="BindDirective"||W.type==="ClassDirective")&&!W.expression)W.expression={start:R+$+1,end:J,type:"Identifier",name:W.name};return W}return b8(U.name,U.loc,R,J,G)}function Z6(q){let B=q.index;if(q.eat("//")){let R=q.read_until(/\n/),U=q.index;return{type:"Line",start:B,end:U,value:R,loc:{start:x(B),end:x(U)}}}if(q.eat("/*")){let R=q.read_until(/\*\//);q.eat("*/");let U=q.index;return{type:"Block",start:B,end:U,value:R,loc:{start:x(B),end:x(U)}}}return null}function G6(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 L6(q){let B=q.eat("'")?"'":q.eat('"')?'"':null;if(B&&q.eat(B))return[{start:q.index-1,end:q.index-1,type:"Text",raw:"",data:""}];let R;try{R=I9(q,()=>{if(B)return q.match(B);return!!q.match_regex(U6)},"in attribute value")}catch(U){if(U.code==="js_parse_error"){let J=U.position?.[0];if(J!==void 0&&q.template.slice(J-1,J+1)==="/>")q.index=J,i(J,B||"}")}throw U}if(R.length===0&&!B)U1(q.index);if(B)q.index+=1;if(B||R.length>1||R[0].type==="Text")return R;else return R[0]}function I9(q,B,R){let U={start:q.index,end:-1,type:"Text",raw:"",data:""},J=[];function $(N){if(N>U.start)U.raw=q.template.slice(U.start,N),U.data=S8(U.raw,!0),U.end=N,J.push(U)}while(q.index<q.template.length){let N=q.index;if(B())return $(q.index),J;else if(q.eat("{")){if(q.match("#")){let z=q.index-1;q.eat("#");let F=q.read_until(/[^a-z]/);w0(z,F,R)}else if(q.match("@")){let z=q.index-1;q.eat("@");let F=q.read_until(/[^a-z]/);U9(z,F,R)}$(q.index-1),q.allow_whitespace();let G=u(q);q.allow_whitespace(),q.eat("}",!0);let Z={type:"ExpressionTag",start:N,end:q.index,expression:G,metadata:{expression:new g}};J.push(Z),U={start:q.index,end:-1,type:"Text",raw:"",data:""}}else q.index++}if(q.loose)return J;else l(q.template.length)}function A1(q,B){let R=q.index,U=q.read_until(B),J=q.index;return{type:"Identifier",name:U,start:R,end:J,loc:{start:x(R),end:x(J)}}}function o(q){let{index:B,index:R}=q,U=q.read_identifier();if(U.name!==""){let z=P9(q);return{...U,typeAnnotation:z}}let J=q.template[R];if(J!=="{"&&J!=="[")g0(R);R=L8(q,B),q.index=R;let $=q.template.slice(B,R),N=q.template.slice(0,B).replace(W8," "),G=N.indexOf(" ");N=N.slice(0,G)+N.slice(G+1);let Z=J8(U8(q,`${N}(${$} = 1)`,B-1));if(Z=Z.left,Z.typeAnnotation=P9(q),Z.typeAnnotation)Z.end=Z.typeAnnotation.end;return Z}function P9(q){let B=q.index;if(q.allow_whitespace(),!q.eat(":")){q.index=B;return}let R="_ as ",U=q.index-R.length,J=q.template.slice(0,U).replace(/[^\n]/g," ")+R+q.template.slice(q.index).replace(/\?\s*:/g,":"),$=J8(U8(q,J,U));if($.type==="AssignmentExpression"){let N=$.right.start;while(J[N]!=="=")N-=1;$=J8(U8(q,J.slice(0,N),U))}if($.type==="SequenceExpression")$=$.expressions[0];return q.index=$.end,{type:"TSTypeAnnotation",start:B,end:q.index,typeAnnotation:$.typeAnnotation}}var M1=/\s*}/y,D6=/(?:let|const)\b/y,S6=/(?:var|interface|enum)\b/y,K6=/type\b/y,W6={"<":">"};function w1(q){let B=q.index;if(q.index+=1,q.allow_whitespace(),q.eat("#"))return z6(q);if(q.eat(":"))return T6(q);if(q.eat("@"))return j6(q);if(q.match("/")){if(!q.match("/*")&&!q.match("//"))return q.eat("/"),C1(q)}let R=X6(q);if(R){q.append({type:"DeclarationTag",start:B,end:q.index,declaration:R,metadata:{expression:new g}});return}let U=u(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ExpressionTag",start:B,end:q.index,expression:U,metadata:{expression:new g}})}function X6(q){let B=q.index,R=q.match_regex(S6);if(R)C8({start:B,end:B+R.length});if(!q.match_regex(D6)&&!q.match_regex(K6))return null;let U=q.root.comments.length,J;try{J=Q9(q,q.template,B)}catch($){if(!q.loose)throw $;let N=k8(q.template,B,"{");if(N===void 0)throw $;q.index=N,J={type:"VariableDeclaration",kind:q.template.startsWith("const",B)?"const":"let",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"",start:q.index,end:q.index},init:null,start:q.index,end:q.index}],start:B,end:N}}if(J.type!=="VariableDeclaration")if(J.type==="ExpressionStatement")return q.root.comments.length=U,null;else C8({start:J.start??B,end:J.end??q.index});if(J.kind!=="let"&&J.kind!=="const")C8(J);return q.index=J.end,q.allow_whitespace(),q.eat("}",!0),J}function z6(q){let B=q.index-2;while(q.template[B]!=="{")B-=1;if(q.eat("if")){q.require_whitespace();let R=q.append({type:"IfBlock",elseif:!1,start:B,end:-1,test:u(q),consequent:h(),alternate:null,metadata:{expression:new g}});q.allow_whitespace(),q.eat("}",!0),q.stack.push(R),q.fragments.push(R.consequent);return}if(q.eat("each")){q.require_whitespace();let R=q.template,U=q.template.length,J;while(!J)try{J=u(q,void 0,!0)}catch(F){U=F.position[0]-2;while(U>B&&q.template.slice(U,U+2)!=="as")U-=1;if(U<=B){if(q.loose){if(J=G1(q),J)break}throw F}q.template=R.slice(0,U)}if(q.template=R,q.allow_whitespace(),!q.match("as")){if(J.type==="SequenceExpression")J=J.expressions[0];let F=null,T=J.end;if(J=r(J,null,{TSAsExpression(W,D){if(W.end===J.end)return F=W,T=W.expression.end,W.expression;D.next()}}),J.end=T,F){let W=F.typeAnnotation.start-2;while(q.template.slice(W,W+2)!=="as")W-=1;q.index=W}}let $=null,N,G;if(q.eat("as"))q.require_whitespace(),$=o(q);else q.index=J.end;if(q.allow_whitespace(),q.eat(",")){if(q.allow_whitespace(),N=q.read_identifier().name,!N)H1(q.index);q.allow_whitespace()}if(q.eat("("))q.allow_whitespace(),G=u(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 F=q.index;$=o(q),q.eat("}",!0),J={type:"Identifier",name:"",start:J.start,end:F-4}}else q.eat("}",!0);let z=q.append({type:"EachBlock",start:B,end:-1,expression:J,body:h(),context:$,index:N,key:G,metadata:null});q.stack.push(z),q.fragments.push(z.body);return}if(q.eat("await")){q.require_whitespace();let R=u(q);q.allow_whitespace();let U=q.append({type:"AwaitBlock",start:B,end:-1,expression:R,value:null,error:null,pending:null,then:null,catch:null,metadata:{expression:new g}});if(q.eat("then")){if(q.match_regex(M1))q.allow_whitespace();else q.require_whitespace(),U.value=o(q),q.allow_whitespace();U.then=h(),q.fragments.push(U.then)}else if(q.eat("catch")){if(q.match_regex(M1))q.allow_whitespace();else q.require_whitespace(),U.error=o(q),q.allow_whitespace();U.catch=h(),q.fragments.push(U.catch)}else U.pending=h(),q.fragments.push(U.pending);if(!q.eat("}",!0,!1))if(q.template.slice(q.index-6,q.index)===" then "){let $=q.index;U.value=o(q),q.eat("}",!0),U.expression={type:"Identifier",name:"",start:R.start,end:$-6},U.then=U.pending,U.pending=null}else if(q.template.slice(q.index-7,q.index)===" catch "){let $=q.index;U.error=o(q),q.eat("}",!0),U.expression={type:"Identifier",name:"",start:R.start,end:$-7},U.catch=U.pending,U.pending=null}else q.eat("}",!0);q.stack.push(U);return}if(q.eat("key")){q.require_whitespace();let R=u(q);q.allow_whitespace(),q.eat("}",!0);let U=q.append({type:"KeyBlock",start:B,end:-1,expression:R,fragment:h(),metadata:{expression:new g}});q.stack.push(U),q.fragments.push(U.fragment);return}if(q.eat("snippet")){q.require_whitespace();let R=q.read_identifier();if(R.name===""&&!q.loose)H1(q.index);q.allow_whitespace();let U=q.index,J;if(q.ts&&q.match("<")){let F=q.index,T=L8(q,F,W6);J=q.template.slice(F+1,T-1),q.index=T}q.allow_whitespace();let $=q.eat("(",!0,!1);if($){let F=1;while(q.index<q.template.length&&(!q.match(")")||F!==1)){if(q.match("("))F++;if(q.match(")"))F--;q.index+=1}q.eat(")",!0)}let N=q.template.slice(0,U).replace(/\S/g," "),G=q.template.slice(U,q.index),Z=$?U8(q,N+`${G} => {}`,U):{params:[]};q.allow_whitespace(),q.eat("}",!0);let z=q.append({type:"SnippetBlock",start:B,end:-1,expression:R,typeParams:J,parameters:Z.params,body:h(),metadata:{can_hoist:!1,sites:new Set}});q.stack.push(z),q.fragments.push(z.body);return}v0(q.index)}function T6(q){let B=q.index-1,R=q.current();if(R.type==="IfBlock"){if(!q.eat("else"))i(B,"{:else} or {:else if}");if(q.eat("if"))C0(B);if(q.allow_whitespace(),q.fragments.pop(),R.alternate=h(),q.fragments.push(R.alternate),q.eat("if")){q.require_whitespace();let U=u(q);q.allow_whitespace(),q.eat("}",!0);let J=B-1;while(q.template[J]!=="{")J-=1;let $=q.append({start:J,end:-1,type:"IfBlock",elseif:!0,test:U,consequent:h(),alternate:null,metadata:{expression:new g}});q.stack.push($),q.fragments.pop(),q.fragments.push($.consequent)}else q.allow_whitespace(),q.eat("}",!0);return}if(R.type==="EachBlock"){if(!q.eat("else"))i(B,"{:else}");q.allow_whitespace(),q.eat("}",!0),R.fallback=h(),q.fragments.pop(),q.fragments.push(R.fallback);return}if(R.type==="AwaitBlock"){if(q.eat("then")){if(R.then)q1(B,"{:then}");if(!q.eat("}"))q.require_whitespace(),R.value=o(q),q.allow_whitespace(),q.eat("}",!0);R.then=h(),q.fragments.pop(),q.fragments.push(R.then);return}if(q.eat("catch")){if(R.catch)q1(B,"{:catch}");if(!q.eat("}"))q.require_whitespace(),R.error=o(q),q.allow_whitespace(),q.eat("}",!0);R.catch=h(),q.fragments.pop(),q.fragments.push(R.catch);return}i(B,"{:then ...} or {:catch ...}")}M0(B)}function C1(q){let B=q.index-1,R=q.current(),U;switch(R.type){case"IfBlock":if(U=q.eat("if",!0,!1),!U){R.end=B-1,q.pop(),C1(q);return}q.allow_whitespace(),q.eat("}",!0);while(R.elseif)R.end=q.index,q.stack.pop(),R=q.current();R.end=q.index,q.pop();return;case"EachBlock":U=q.eat("each",!0,!1);break;case"KeyBlock":U=q.eat("key",!0,!1);break;case"AwaitBlock":U=q.eat("await",!0,!1);break;case"SnippetBlock":U=q.eat("snippet",!0,!1);break;case"RegularElement":if(q.loose)U=!1;else V1(B);break;default:V1(B)}if(!U){R.end=B-1,q.pop(),C1(q);return}q.allow_whitespace(),q.eat("}",!0),R.end=q.index,q.pop()}function j6(q){let B=q.index;while(q.template[B]!=="{")B-=1;if(q.eat("html")){q.require_whitespace();let R=u(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"HtmlTag",start:B,end:q.index,expression:R,metadata:{expression:new g}});return}if(q.eat("debug")){let R;if(q.read(M1))R=[];else{let U=u(q);R=U.type==="SequenceExpression"?U.expressions:[U],R.forEach((J)=>{if(J.type!=="Identifier")E0(J.start)}),q.allow_whitespace(),q.eat("}",!0)}q.append({type:"DebugTag",start:B,end:q.index,identifiers:R});return}if(q.eat("const")){q.require_whitespace();let R=o(q);q.allow_whitespace(),q.eat("=",!0),q.allow_whitespace();let U=q.index,J=u(q);if(J.type==="SequenceExpression"&&!q.template.substring(U,J.start).includes("("))P0(J);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ConstTag",start:B,end:q.index,declaration:{type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:R,init:J,start:R.start,end:J.end}],start:B+2,end:q.index-1},metadata:{expression:new g}});return}if(q.eat("render")){q.require_whitespace();let R=u(q);if(R.type!=="CallExpression"&&(R.type!=="ChainExpression"||R.expression.type!=="CallExpression"))l0(R);q.allow_whitespace(),q.eat("}",!0),q.append({type:"RenderTag",start:B,end:q.index,expression:R,metadata:{expression:new g,dynamic:!1,arguments:[],path:[],snippets:new Set}});return}h0(q.index)}function I1(q){let B=q.index;while(q.index<q.template.length&&!q.match("<")&&!q.match("{"))q.index++;let R=q.template.slice(B,q.index);q.append({type:"Text",start:B,end:q.index,raw:R,data:S8(R,!1)})}function K8(q){if(q.match("<"))return O1;if(q.match("{"))return w1;return I1}function P1(q){let B={start:q.start,end:q.end,attributes:q.attributes};if(!q)return B;for(let R of q.attributes){if(R.type!=="Attribute")s0(R);let{name:U}=R;switch(U){case"runes":{B.runes=v8(R);break}case"tag":{a0(R);break}case"customElement":{let J={},{value:$}=R,N=$===!0||Array.isArray($)?$:[$];if(N===!0)P8(R);else if(N[0].type==="Text"){let W=g8(R);f9(R,W),J.tag=W,B.customElement=J;break}else if(N[0].expression.type!=="ObjectExpression"){if(N[0].expression.type==="Literal"&&N[0].expression.value===null)break;P8(R)}let G=[];for(let W of N[0].expression.properties){if(W.type!=="Property"||W.computed||W.key.type!=="Identifier")P8(R);G.push([W.key.name,W.value])}let Z=G.find(([W])=>W==="tag");if(Z){let W=Z[1]?.value;f9(Z,W),J.tag=W}let z=G.find(([W])=>W==="props")?.[1];if(z){if(z.type!=="ObjectExpression")V8(R);J.props={};for(let W of z.properties){if(W.type!=="Property"||W.computed||W.key.type!=="Identifier"||W.value.type!=="ObjectExpression")V8(R);J.props[W.key.name]={};for(let D of W.value.properties){if(D.type!=="Property"||D.computed||D.key.type!=="Identifier"||D.value.type!=="Literal")V8(R);if(D.key.name==="type"){if(["String","Number","Boolean","Array","Object"].indexOf(D.value.value)===-1)V8(R);J.props[W.key.name].type=D.value.value}else if(D.key.name==="reflect"){if(typeof D.value.value!=="boolean")V8(R);J.props[W.key.name].reflect=D.value.value}else if(D.key.name==="attribute"){if(typeof D.value.value!=="string")V8(R);J.props[W.key.name].attribute=D.value.value}else V8(R)}}}let F=G.find(([W])=>W==="shadow")?.[1];if(F)if(F.type==="Literal"&&(F.value==="open"||F.value==="none"))J.shadow=F.value;else if(F.type==="ObjectExpression")J.shadow=F;else r0(R);let T=G.find(([W])=>W==="extend")?.[1];if(T)J.extend=T;B.customElement=J;break}case"namespace":{let J=g8(R);if(J===l1)B.namespace="svg";else if(J===m1)B.namespace="mathml";else if(J==="html"||J==="mathml"||J==="svg")B.namespace=J;else I8(R,'"html", "mathml" or "svg"');break}case"css":{let J=g8(R);if(J==="injected")B.css=J;else I8(R,'"injected"');break}case"immutable":{B.immutable=v8(R);break}case"preserveWhitespace":{B.preserveWhitespace=v8(R);break}case"accessors":{B.accessors=v8(R);break}default:q9(R,U)}}return B}function g8(q){let{value:B}=q;if(B===!0)return!0;let R=Array.isArray(B)?B[0]:B;if(!R)return!0;if(B.length>1)return null;if(R.type==="Text")return R.data;if(R.expression.type!=="Literal")return null;return R.expression.value}function v8(q){let B=g8(q);if(typeof B!=="boolean")I8(q,"true or false");return B}var E9="[a-z0-9_.·À-ÖØ-öø-ͽͿ--‿-⁀⁰-Ⰰ-、-豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF-]",O6=new RegExp(`^[a-z]${E9}*-${E9}*$`,"u"),A6=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function f9(q,B){if(typeof B!=="string")R1(q);if(B){if(!O6.test(B))R1(q);else if(A6.includes(B))e0(q)}}function k9(q){let{nodes:B}=q.fragment;if(B.length>0){let R=B[0],U=B[B.length-1];o0({start:R.start,end:U.end},q.name)}}function b9(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 y9=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g;class E1{template;loose;index=0;static forCss(q){let B=Object.create(E1.prototype);return B.template=q,B.index=0,B.loose=!1,B}ts=!1;stack=[];fragments=[];root;meta_tags={};last_auto_closed_tag;constructor(q,B){if(typeof q!=="string")throw TypeError("Template must be a string");this.loose=B,this.template=q.trimEnd();let R;do R=y9.exec(q);while(R&&R[0][1]!=="s");y9.lastIndex=0,this.ts=R?.[2]==="ts",this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:h(),options:null,comments:[],metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let U=K8;while(this.index<this.template.length)U=U(this)||K8;if(this.stack.length>1){let $=this.current();if(this.loose)$.end=this.template.length;else if($.type==="RegularElement")$.end=$.start+1,w8($,$.name);else $.end=$.start+1,I0($)}if(U!==K8)l(this.index);this.root.start=0,this.root.end=q.length;let J=this.root.fragment.nodes.findIndex(($)=>$.type==="SvelteOptions");if(J!==-1){let $=this.root.fragment.nodes[J];this.root.fragment.nodes.splice(J,1),this.root.options=P1($),k9($),Object.defineProperty(this.root.options,"__raw__",{value:$,enumerable:!1})}}current(){return this.stack[this.stack.length-1]}eat(q,B=!1,R=!0){if(this.match(q))return this.index+=q.length,!0;if(B&&(!this.loose||R))i(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 B=q.exec(this.template);if(!B||B.index!==this.index)return null;return B[0]}allow_whitespace(){while(this.index<this.template.length&&b9(this.template.charCodeAt(this.index)))this.index++}read(q){let B=this.match_regex(q);if(B)this.index+=B.length;return B}read_identifier(){let q=this.index,B=q,R="",U=this.template.codePointAt(this.index);if(v9(U,!0)){let J=this.index;B+=U<=65535?1:2;while(B<this.template.length){let $=this.template.codePointAt(B);if(!g9($,!0))break;B+=$<=65535?1:2}if(R=this.template.slice(q,B),this.index=B,o1(R))H9(q,R)}return{type:"Identifier",name:R,start:q,end:B,loc:{start:x(q),end:x(B)}}}read_until(q){if(this.index>=this.template.length){if(this.loose)return"";l(this.template.length)}let B=this.index,R=q.exec(this.template.slice(B));if(R)return this.index=B+R.index,this.template.slice(B,this.index);return this.index=this.template.length,this.template.slice(B)}require_whitespace(){if(!b9(this.template.charCodeAt(this.index)))x0(this.index);this.allow_whitespace()}pop(){let q=this.fragments.pop();if(q?.metadata.transparent&&q.nodes.some((B)=>B.type==="DeclarationTag"))q.metadata.transparent=!1;return this.stack.pop()}append(q){return this.fragments.at(-1)?.nodes.push(q),q}}function f1(q,B=!1){return n1(q),new E1(q,B).root}function h9(q){return q.charCodeAt(0)===65279?q.slice(1):q}function k1(q){delete q.metadata}function b1(q){if(!q||typeof q!=="object"||typeof q.type!=="string")return;k1(q);for(let B in q){if(B==="type")continue;let R=q[B];if(!R||typeof R!=="object")continue;if(Array.isArray(R))for(let U of R)b1(U);else b1(R)}}function y1(q,B,R){if(R){for(let U of B.options?.attributes??[])if(k1(U),U.value)for(let J of Array.isArray(U.value)?U.value:[U.value])k1(J);return b1(B),B}return J0(q,B)}function c5(q,{modern:B,loose:R}={}){let U=h9(q);d8({warning:()=>!1,filename:void 0});let J=f1(U,R);return y1(U,J,B)}function v1(q){if(q===null||typeof q!=="object")return q;if(Array.isArray(q))return q.map(v1);let B={};for(let R in q)B[R]=v1(q[R]);return B}function _5(q,{loose:B}={}){let R=h9(q);d8({warning:()=>!1,filename:void 0});let U=f1(R,B),J=y1(R,U,!0),$=v1(J),N=y1(R,$,!1);return{modern:J,legacy:N}}
|
|
62
|
+
export{c5 as W,_5 as X};
|