sveld 0.36.7 → 0.36.9

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.
@@ -0,0 +1,62 @@
1
+ import{pa as Os,qa as Rs,ra as as,ta as Ze}from"./chunk-nrz6c5ew.js";function Q(e,a,r){let i=r._,o=!1;function c(u,{next:h,state:v}){h(v)}function n(u,h,v){if(o)return;if(!u.type)return;let d,b={},x={path:h,state:v,next:(w=v)=>{h.push(u);for(let k in u){if(k==="type")continue;let C=u[k];if(C&&typeof C==="object")if(Array.isArray(C)){let D={},Z=C.length,N=!1;for(let j=0;j<Z;j++){let I=C[j];if(I&&typeof I==="object"){let ne=n(I,h,w);if(ne)D[j]=ne,N=!0}}if(N)b[k]=C.map((j,I)=>D[I]??j)}else{let D=n(C,h,w);if(D)b[k]=D}}if(h.pop(),Object.keys(b).length>0)return Rt(u,b)},stop:()=>{o=!0},visit:(w,k=v)=>{h.push(u);let C=n(w,h,k)??w;return h.pop(),C}},m=r[u.type]??c;if(i){let w;if(d=i(u,{...x,next:(k=v)=>(v=k,w=m(u,{...x,state:k}),w)}),!d&&w)d=w}else d=m(u,x);if(!d){if(Object.keys(b).length>0)d=Rt(u,b)}if(d)return d}return n(e,[],a)??e}function Rt(e,a){let r={},i=Object.getOwnPropertyDescriptors(e);for(let o in i)Object.defineProperty(r,o,i[o]);for(let o in a)r[o]=a[o];return r}var qt=/^[ \t\r\n]+/;var $t=/[ \t\r\n]+$/,$e=/[^ \t\r\n]/;var ve=/[^\n]/g;var Ca=Symbol("uninitialized"),Ia=Symbol("filename"),Na=Symbol("hmr");var Bt="http://www.w3.org/2000/svg",Ft="http://www.w3.org/1998/Math/MathML",Ut=["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 Ue(e,a){if(a.length===0)return null;let i=new Ht(a).get(e);return i&&i[0][0]>0.7?i[0][1]:null}var Be=2,Fe=3;function Bs(e,a){if(e===null&&a===null)throw"Trying to compare two null values";if(e===null||a===null)return 0;return e=String(e),a=String(a),1-Fs(e,a)/Math.max(e.length,a.length)}function Fs(e,a){let r=[],i=0;for(let o=0;o<=a.length;o++)for(let c=0;c<=e.length;c++){let n;if(o&&c)if(e.charAt(c-1)===a.charAt(o-1))n=i;else n=Math.min(r[c],r[c-1],i)+1;else n=o+c;i=r[c],r[c]=n}return r.pop()}var Us=/[^\w, ]+/;function js(e,a=2){let r="-"+e.toLowerCase().replace(Us,"")+"-",i=a-r.length,o=[];if(i>0)for(let c=0;c<i;++c)e+="-";for(let c=0;c<r.length-a+1;++c)o.push(r.slice(c,c+a));return o}function jt(e,a=2){let r={},i=js(e,a),o=0;for(o;o<i.length;++o)if(i[o]in r)r[i[o]]+=1;else r[i[o]]=1;return r}function Vt(e,a){return a[0]-e[0]}class Ht{exact_set={};match_dict={};items={};constructor(e){for(let a=Be;a<Fe+1;++a)this.items[a]=[];for(let a=0;a<e.length;++a)this.add(e[a])}add(e){if(e.toLowerCase()in this.exact_set)return!1;let r=Be;for(r;r<Fe+1;++r)this._add(e,r)}_add(e,a){let r=e.toLowerCase(),i=this.items[a]||[],o=i.length;i.push(0);let c=jt(r,a),n=0,u,h;for(u in c)if(h=c[u],n+=Math.pow(h,2),u in this.match_dict)this.match_dict[u].push([o,h]);else this.match_dict[u]=[[o,h]];let v=Math.sqrt(n);i[o]=[v,r],this.items[a]=i,this.exact_set[r]=e}get(e){let a=e.toLowerCase(),r=this.exact_set[a];if(r)return[[1,r]];for(let i=Fe;i>=Be;--i){let o=this.__get(e,i);if(o.length>0)return o}return null}__get(e,a){let r=e.toLowerCase(),i={},o=jt(r,a),c=this.items[a],n=0,u,h,v,d,b;for(u in o)if(h=o[u],n+=Math.pow(h,2),u in this.match_dict)for(v=0;v<this.match_dict[u].length;++v)if(d=this.match_dict[u][v][0],b=this.match_dict[u][v][1],d in i)i[d]+=h*b;else i[d]=h*b;let x=Math.sqrt(n),m=[],w;for(let D in i)w=i[D],m.push([w/(x*c[D][0]),c[D][1]]);m.sort(Vt);let k=[],C=Math.min(50,m.length);for(let D=0;D<C;++D)k.push([Bs(m[D][1],r),m[D][1]]);m=k,m.sort(Vt),k=[];for(let D=0;D<m.length;++D)if(m[D][0]===m[0][0])k.push([m[D][0],this.exact_set[m[D][1]]]);return k}}function Vs(e,a){return e.start<=a&&a<e.end}function Gt(e,a={}){let{offsetLine:r=0,offsetColumn:i=0}=a,o=0,c=e.split(`
2
+ `).map((h,v)=>{let d=o+h.length+1,b={start:o,end:d,line:v};return o=d,b}),n=0;function u(h,v){if(typeof h==="string")h=e.indexOf(h,v??0);if(h===-1)return;let d=c[n],b=h>=d.end?1:-1;while(d){if(Vs(d,h))return{line:r+d.line,column:i+h-d.start,character:h};n+=b,d=c[n]}}return u}var Hs=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function je(e){return Hs.includes(e)||e.toLowerCase()==="!doctype"}var Gs=["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 zt(e){return Gs.includes(e)}var zs=["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 Oa=[...zs,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var Ks=["$state","$state.raw","$derived","$derived.by"],Ra=[...Ks,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];var Kt=/^[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 Ve=[],Te,be="(unknown)",Ws="<unknown>",ge,we=[],Xs,Js=!1,B;function Wt(e){ge=e,we=ge.split(`
3
+ `);let a=Gt(ge,{offsetLine:1});B=(r)=>{let i=a(r);if(!i)throw Error("An impossible situation occurred");return i}}var He,Ge=[],Xt=new Map;function ze(e){Xs=!1,Js=!1,Ws=be,ge="",we=[],Te=(e.filename??be).replace(/\\/g,"/"),He=e.warning??(()=>!0),Ve=[]}var Ys=/^\t+/;function Ke(e){return e.replace(Ys,(a)=>a.split("\t").join(" "))}function Zs(e,a){let r=we,i=Math.max(0,e-2),o=Math.min(e+3,r.length),c=String(o+1).length;return r.slice(i,o).map((n,u)=>{let h=i+u===e,v=String(u+i+1).padStart(c," ");if(h){let d=" ".repeat(c+2+Ke(n.slice(0,a)).length)+"^";return`${v}: ${Ke(n)}
4
+ ${d}`}return`${v}: ${Ke(n)}`}).join(`
5
+ `)}class ce{name="CompileDiagnostic";constructor(e,a,r){if(this.code=e,this.message=a,Te!==be)this.filename=Te;if(r){if(this.position=r,this.start=B(r[0]),this.end=B(r[1]),this.start&&this.end)this.frame=Zs(this.start.line-1,this.end.column)}}toString(){let e=`${this.code}: ${this.message}`;if(this.filename){if(e+=`
6
+ ${this.filename}`,this.start)e+=`:${this.start.line}:${this.start.column}`}if(this.frame)e+=`
7
+ ${this.frame}`;return e}toJSON(){return{code:this.code,message:this.message,filename:this.filename,start:this.start,end:this.end,position:this.position,frame:this.frame}}}class Yt extends ce{name="CompileWarning";constructor(e,a,r){super(e,a,r)}}function pe(e,a,r){let i=Ge;if(e)i=Xt.get(e)??Ge;if(i&&i.at(-1)?.has(a))return;let o=new Yt(a,r,e&&e.start!==void 0?[e.start,e.end??e.start]:void 0);if(!He(o))return;Ve.push(o)}var Zt=["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 Qt(e,a,r){pe(e,"legacy_code",`\`${a}\` is no longer valid — please use \`${r}\` instead
8
+ https://svelte.dev/e/legacy_code`)}function ei(e,a,r){pe(e,"unknown_code",`${r?`\`${a}\` is not a recognised code (did you mean \`${r}\`?)`:`\`${a}\` is not a recognised code`}
9
+ https://svelte.dev/e/unknown_code`)}function We(e,a,r){pe(e,"element_implicitly_closed",`This element is implicitly closed by the following \`${a}\`, which can cause an unexpected DOM structure. Add an explicit \`${r}\` to avoid surprises.
10
+ https://svelte.dev/e/element_implicitly_closed`)}function ti(e){pe(e,"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 ii(e){pe(e,"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 Qs=/^\s*svelte-ignore\s/,si={"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"},ue=Zt.concat(Ut);function ni(e,a,r){let i=Qs.exec(a);if(!i)return[];let o=i[0].length;e+=o;let c=[];if(r)for(let n of a.slice(o).matchAll(/([\w$-]+)(,)?/gm)){let u=n[1];if(ue.includes(u))c.push(u);else{let h=si[u]??u.replace(/-/g,"_"),v=e+n.index,d=v+u.length;if(ue.includes(h))Qt({start:v,end:d},u,h);else{let b=Ue(u,ue);ei({start:v,end:d},u,b)}}if(!n[2])break}else for(let n of a.slice(o).matchAll(/[\w$-]+/gm)){let u=n[0];if(c.push(u),!ue.includes(u)){let h=si[u]??u.replace(/-/g,"_");if(ue.includes(h))c.push(h)}}return c}function ae(e){let a=e.at(0),r=e.at(-1);if(a?.type==="Text")if(!$e.test(a.data))e.shift();else a.data=a.data.replace(qt,"");if(r?.type==="Text")if(!$e.test(r.data))e.pop();else r.data=r.data.replace($t,"")}function ai(e,a){return Q(a,null,{_(i,{next:o}){delete i.metadata,o()},Root(i,{visit:o}){let{instance:c,module:n,options:u}=i;if(u?.__raw__){let d=i.fragment.nodes.findIndex((b)=>u.end<=b.start);if(d===-1)d=i.fragment.nodes.length;i.fragment.nodes.splice(d,0,u.__raw__)}let h=null,v=null;if(i.fragment.nodes.length>0){let d=i.fragment.nodes.at(0),b=i.fragment.nodes.at(-1);h=d.start,v=b.end;while(/\s/.test(e[h]))h+=1;while(/\s/.test(e[v-1]))v-=1}if(c)delete c.attributes;if(n)delete n.attributes;return{html:{type:"Fragment",start:h,end:v,children:i.fragment.nodes.map((d)=>o(d))},instance:c,module:n,css:a.css?o(a.css):void 0,_comments:a.comments?.length>0?a.comments:void 0}},AnimateDirective(i){return{...i,type:"Animation"}},AwaitBlock(i,{visit:o}){let c={type:"PendingBlock",start:null,end:null,children:i.pending?.nodes.map((h)=>o(h))??[],skip:!0},n={type:"ThenBlock",start:null,end:null,children:i.then?.nodes.map((h)=>o(h))??[],skip:!0},u={type:"CatchBlock",start:null,end:null,children:i.catch?.nodes.map((h)=>o(h))??[],skip:!0};if(i.pending){let h=i.pending.nodes.at(0),v=i.pending.nodes.at(-1);c.start=h?.start??e.indexOf("}",i.expression.end)+1,c.end=v?.end??c.start,c.skip=!1}if(i.then){let h=i.then.nodes.at(0),v=i.then.nodes.at(-1);n.start=c.end??h?.start??e.indexOf("}",i.expression.end)+1,n.end=v?.end??e.lastIndexOf("}",c.end??i.expression.end)+1,n.skip=!1}if(i.catch){let h=i.catch.nodes.at(0),v=i.catch.nodes.at(-1);u.start=n.end??c.end??h?.start??e.indexOf("}",i.expression.end)+1,u.end=v?.end??e.lastIndexOf("}",n.end??c.end??i.expression.end)+1,u.skip=!1}return{type:"AwaitBlock",start:i.start,end:i.end,expression:i.expression,value:i.value,error:i.error,pending:c,then:n,catch:u}},BindDirective(i){return{...i,type:"Binding"}},ClassDirective(i){return{...i,type:"Class"}},Comment(i){return{...i,ignores:ni(i.start,i.data,!1)}},ComplexSelector(i,{next:o}){o();let c=[];for(let n of i.children){if(n.combinator)c.push(n.combinator);c.push(...n.selectors)}return{type:"Selector",start:i.start,end:i.end,children:c}},Component(i,{visit:o}){return{type:"InlineComponent",start:i.start,end:i.end,name:i.name,attributes:i.attributes.map((c)=>o(c)),children:i.fragment.nodes.map((c)=>o(c))}},ConstTag(i){if(i.expression!==void 0)return i;let o=i,{id:c}={...o.declaration.declarations[0]};return delete c.typeAnnotation,{type:"ConstTag",start:o.start,end:i.end,expression:{type:"AssignmentExpression",start:(o.declaration.start??0)+6,end:o.declaration.end??0,operator:"=",left:c,right:o.declaration.declarations[0].init}}},DeclarationTag(i){return i},KeyBlock(i,{visit:o}){return ae(i.fragment.nodes),{type:"KeyBlock",start:i.start,end:i.end,expression:i.expression,children:i.fragment.nodes.map((c)=>o(c))}},EachBlock(i,{visit:o}){let c=void 0;if(i.fallback){let n=i.fallback.nodes.at(0),u=e.lastIndexOf("{",i.end-1),h=n?.start??u;ae(i.fallback.nodes),c={type:"ElseBlock",start:h,end:u,children:i.fallback.nodes.map((v)=>o(v))}}return ae(i.body.nodes),{type:"EachBlock",start:i.start,end:i.end,children:i.body.nodes.map((n)=>o(n)),context:i.context,expression:i.expression,index:i.index,key:i.key,else:c}},ExpressionTag(i,{path:o}){let c=o.at(-1);if(c?.type==="Attribute"){if(e[c.start]==="{")return{type:"AttributeShorthand",start:i.start,end:i.end,expression:i.expression}}return{type:"MustacheTag",start:i.start,end:i.end,expression:i.expression}},HtmlTag(i){return{...i,type:"RawMustacheTag"}},IfBlock(i,{visit:o}){let c=void 0;if(i.alternate){let u=i.alternate.nodes;if(u.length===1&&u[0].type==="IfBlock"&&u[0].elseif)u=u[0].consequent.nodes;let h=e.lastIndexOf("{",i.end-1),v=u.at(0)?.start??h;ae(i.alternate.nodes),c={type:"ElseBlock",start:v,end:h,children:i.alternate.nodes.map((d)=>o(d))}}let n=i.elseif?i.consequent.nodes[0]?.start??e.lastIndexOf("{",i.end-1):i.start;return ae(i.consequent.nodes),{type:"IfBlock",start:n,end:i.end,expression:i.test,children:i.consequent.nodes.map((u)=>o(u)),else:c,elseif:i.elseif?!0:void 0}},OnDirective(i){return{...i,type:"EventHandler"}},SnippetBlock(i,{visit:o}){return ae(i.body.nodes),{type:"SnippetBlock",start:i.start,end:i.end,expression:i.expression,parameters:i.parameters,children:i.body.nodes.map((c)=>o(c)),typeParams:i.typeParams}},SvelteBoundary(i,{visit:o}){return ae(i.fragment.nodes),{type:"SvelteBoundary",name:"svelte:boundary",start:i.start,end:i.end,attributes:i.attributes.map((c)=>o(c)),children:i.fragment.nodes.map((c)=>o(c))}},RegularElement(i,{visit:o}){return{type:"Element",start:i.start,end:i.end,name:i.name,attributes:i.attributes.map((c)=>o(c)),children:i.fragment.nodes.map((c)=>o(c))}},SlotElement(i,{visit:o}){return{type:"Slot",start:i.start,end:i.end,name:i.name,attributes:i.attributes.map((c)=>o(c)),children:i.fragment.nodes.map((c)=>o(c))}},Attribute(i,{visit:o,next:c,path:n}){if(i.value!==!0&&!Array.isArray(i.value)){n.push(i);let u=[o(i.value)];return n.pop(),{...i,value:u}}else return c()},StyleDirective(i,{visit:o,next:c,path:n}){if(i.value!==!0&&!Array.isArray(i.value)){n.push(i);let u=[o(i.value)];return n.pop(),{...i,value:u}}else return c()},SpreadAttribute(i){return{...i,type:"Spread"}},StyleSheet(i,o){return{...i,...o.next(),type:"Style"}},SvelteBody(i,{visit:o}){return{type:"Body",name:"svelte:body",start:i.start,end:i.end,attributes:i.attributes.map((c)=>o(c)),children:i.fragment.nodes.map((c)=>o(c))}},SvelteComponent(i,{visit:o}){return{type:"InlineComponent",name:"svelte:component",start:i.start,end:i.end,expression:i.expression,attributes:i.attributes.map((c)=>o(c)),children:i.fragment.nodes.map((c)=>o(c))}},SvelteDocument(i,{visit:o}){return{type:"Document",name:"svelte:document",start:i.start,end:i.end,attributes:i.attributes.map((c)=>o(c)),children:i.fragment.nodes.map((c)=>o(c))}},SvelteElement(i,{visit:o}){let c=i.tag;if(c.type==="Literal"&&typeof c.value==="string"&&e[i.tag.start-1]!=="{")c=c.value;return{type:"Element",name:"svelte:element",start:i.start,end:i.end,tag:c,attributes:i.attributes.map((n)=>o(n)),children:i.fragment.nodes.map((n)=>o(n))}},SvelteFragment(i,{visit:o}){return{type:"SlotTemplate",name:"svelte:fragment",start:i.start,end:i.end,attributes:i.attributes.map((c)=>o(c)),children:i.fragment.nodes.map((c)=>o(c))}},SvelteHead(i,{visit:o}){return{type:"Head",name:"svelte:head",start:i.start,end:i.end,attributes:i.attributes.map((c)=>o(c)),children:i.fragment.nodes.map((c)=>o(c))}},SvelteOptions(i,{visit:o}){return{type:"Options",name:"svelte:options",start:i.start,end:i.end,attributes:i.attributes.map((c)=>o(c))}},SvelteSelf(i,{visit:o}){return{type:"InlineComponent",name:"svelte:self",start:i.start,end:i.end,attributes:i.attributes.map((c)=>o(c)),children:i.fragment.nodes.map((c)=>o(c))}},SvelteWindow(i,{visit:o}){return{type:"Window",name:"svelte:window",start:i.start,end:i.end,attributes:i.attributes.map((c)=>o(c)),children:i.fragment.nodes.map((c)=>o(c))}},Text(i,{path:o}){let c=o.at(-1);if(c?.type==="RegularElement"&&c.name==="style")return{type:"Text",start:i.start,end:i.end,data:i.data}},TitleElement(i,{visit:o}){return{type:"Title",name:"title",start:i.start,end:i.end,attributes:i.attributes.map((c)=>o(c)),children:i.fragment.nodes.map((c)=>o(c))}},TransitionDirective(i){return{...i,type:"Transition"}},UseDirective(i){return{...i,type:"Action"}},LetDirective(i){return{...i,type:"Let"}}})}var H=!0,en=new WeakMap;function tn(e){let a=e.Parser.acorn||e,r=en.get(a);if(!r){let u=function(I){return I===m.name||I===m.string||I===m.num||k.includes(I)||D.includes(I)},h=function(I){return I===m.name||k.includes(I)||D.includes(I)},v=function(I){return I===m.name||D.includes(I)},d=function(I){return I===C.abstract||I===C.declare||I===C.enum||I===C.module||I===C.namespace||I===C.interface||I===C.type},b=function(I){return I===C.keyof||I===C.readonly||I===C.unique},x=function(I){return I===m.invalidTemplate},{tokTypes:m,keywordTypes:w}=a,k=Object.values(w),C=n(),D=Object.values(C),Z=c(),N=o(),j=new RegExp(`^(?:${Object.keys(C).join("|")})$`);Z.jsxTagStart.updateContext=function(){this.context.push(N.tc_expr),this.context.push(N.tc_oTag),this.exprAllowed=!1},Z.jsxTagEnd.updateContext=function(I){let ne=this.context.pop();if(ne===N.tc_oTag&&I===m.slash||ne===N.tc_cTag)this.context.pop(),this.exprAllowed=this.curContext()===N.tc_expr;else this.exprAllowed=!0},r={tokTypes:{...C,...Z},tokContexts:{...N},keywordsRegExp:j,tokenIsLiteralPropertyName:u,tokenIsKeywordOrIdentifier:h,tokenIsIdentifier:v,tokenIsTSDeclarationStart:d,tokenIsTSTypeOperator:b,tokenIsTemplate:x}}return r;function i(u,h={}){return new a.TokenType("name",h)}function o(){return{tc_oTag:new a.TokContext("<tag",!1,!1),tc_cTag:new a.TokContext("</tag",!1,!1),tc_expr:new a.TokContext("<tag>...</tag>",!0,!0)}}function c(){return{at:new a.TokenType("@"),jsxName:new a.TokenType("jsxName"),jsxText:new a.TokenType("jsxText",{beforeExpr:!0}),jsxTagStart:new a.TokenType("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new a.TokenType("jsxTagEnd")}}function n(){return{assert:i("assert",{startsExpr:H}),asserts:i("asserts",{startsExpr:H}),global:i("global",{startsExpr:H}),keyof:i("keyof",{startsExpr:H}),readonly:i("readonly",{startsExpr:H}),unique:i("unique",{startsExpr:H}),abstract:i("abstract",{startsExpr:H}),declare:i("declare",{startsExpr:H}),enum:i("enum",{startsExpr:H}),module:i("module",{startsExpr:H}),namespace:i("namespace",{startsExpr:H}),interface:i("interface",{startsExpr:H}),type:i("type",{startsExpr:H})}}}var sn=512,de=1024,re=1,Se=2,nn=4,Qe=8,an=16,ui=64,di=128,rn=256,on=512,hi=1024,Ya=re|Se|Qe|di,Za=re|0|Qe|0,Qa=re|0|nn|0,er=re|0|an|0,tr=0|Se|0|di,ir=0|Se|0|0,ln=re|Se|Qe|rn,sr=0|hi,nr=0|ui,ar=re|0|0|ui,rr=ln|on,or=0|hi,_i=4,mi=2,fi=1,lr=mi|fi,cr=mi|_i,pr=fi|_i,cn=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y,ri=new RegExp("(?=("+cn.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),he=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function pn(e,a){let r=a.key.name,i=e[r],o="true";if(a.type==="MethodDefinition"&&(a.kind==="get"||a.kind==="set"))o=(a.static?"s":"i")+a.kind;if(i==="iget"&&o==="iset"||i==="iset"&&o==="iget"||i==="sget"&&o==="sset"||i==="sset"&&o==="sget")return e[r]="true",!1;else if(!i)return e[r]=o,!1;else return!0}function oi(e,a){let{computed:r,key:i}=e;return!r&&(i.type==="Identifier"&&i.name===a||i.type==="Literal"&&i.value===a)}var E={AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' 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:e})=>`Cannot find name '${e}'.`,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:e})=>`'declare' is not allowed in ${e}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:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' 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:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,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:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[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:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,PrivateMethodsHasAccessibility:({modifier:e})=>`Private methods cannot have an accessibility modifier ('${e}').`,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:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,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:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},Ee={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 un(e,a,r){let{tokTypes:i}=r,{tokTypes:o}=a;return class extends e{takeDecorators(n){let u=this.decoratorStack[this.decoratorStack.length-1];if(u.length)n.decorators=u,this.resetStartLocationFromNode(n,u[0]),this.decoratorStack[this.decoratorStack.length-1]=[]}parseDecorators(n){let u=this.decoratorStack[this.decoratorStack.length-1];while(this.match(o.at)){let h=this.parseDecorator();u.push(h)}if(this.match(i._export)){if(!n)this.unexpected()}else if(!this.canHaveLeadingDecorator())this.raise(this.start,Ee.UnexpectedLeadingDecorator)}parseDecorator(){let n=this.startNode();this.next(),this.decoratorStack.push([]);let u=this.start,h=this.startLoc,v;if(this.match(i.parenL)){let d=this.start,b=this.startLoc;if(this.next(),v=this.parseExpression(),this.expect(i.parenR),this.options.preserveParens){let x=this.startNodeAt(d,b);x.expression=v,v=this.finishNode(x,"ParenthesizedExpression")}}else{v=this.parseIdent(!1);while(this.eat(i.dot)){let d=this.startNodeAt(u,h);d.object=v,d.property=this.parseIdent(!0),d.computed=!1,v=this.finishNode(d,"MemberExpression")}}return n.expression=this.parseMaybeDecoratorArguments(v),this.decoratorStack.pop(),this.finishNode(n,"Decorator")}parseMaybeDecoratorArguments(n){if(this.eat(i.parenL)){let u=this.startNodeAtNode(n);return u.callee=n,u.arguments=this.parseExprList(i.parenR,!1),this.finishNode(u,"CallExpression")}return n}}}var dn={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:"♦"},hn=/^[\da-fA-F]+$/,_n=/^\d+$/;function _e(e){if(!e)return e;if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return _e(e.object)+"."+_e(e.property)}function mn(e,a,r,i){let o=e.tokTypes,c=a.tokTypes,n=e.isNewLine,u=e.isIdentifierChar,h=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},i||{});return class extends r{jsx_readToken(){let d="",b=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated JSX contents");let x=this.input.charCodeAt(this.pos);switch(x){case 60:case 123:if(this.pos===this.start){if(x===60&&this.exprAllowed)return++this.pos,this.finishToken(c.jsxTagStart);return this.getTokenFromCode(x)}return d+=this.input.slice(b,this.pos),this.finishToken(c.jsxText,d);case 38:d+=this.input.slice(b,this.pos),d+=this.jsx_readEntity(),b=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(x===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:if(n(x))d+=this.input.slice(b,this.pos),d+=this.jsx_readNewLine(!0),b=this.pos;else++this.pos}}}jsx_readNewLine(d){let b=this.input.charCodeAt(this.pos),x;if(++this.pos,b===13&&this.input.charCodeAt(this.pos)===10)++this.pos,x=d?`
11
+ `:`\r
12
+ `;else x=String.fromCharCode(b);if(this.options.locations)++this.curLine,this.lineStart=this.pos;return x}jsx_readString(d){let b="",x=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");let m=this.input.charCodeAt(this.pos);if(m===d)break;if(m===38)b+=this.input.slice(x,this.pos),b+=this.jsx_readEntity(),x=this.pos;else if(n(m))b+=this.input.slice(x,this.pos),b+=this.jsx_readNewLine(!1),x=this.pos;else++this.pos}return b+=this.input.slice(x,this.pos++),this.finishToken(o.string,b)}jsx_readEntity(){let d="",b=0,x,m=this.input[this.pos];if(m!=="&")this.raise(this.pos,"Entity must start with an ampersand");let w=++this.pos;while(this.pos<this.input.length&&b++<10){if(m=this.input[this.pos++],m===";"){if(d[0]==="#"){if(d[1]==="x"){if(d=d.substr(2),hn.test(d))x=String.fromCharCode(parseInt(d,16))}else if(d=d.substr(1),_n.test(d))x=String.fromCharCode(parseInt(d,10))}else x=dn[d];break}d+=m}if(!x)return this.pos=w,"&";return x}jsx_readWord(){let d,b=this.pos;do d=this.input.charCodeAt(++this.pos);while(u(d)||d===45);return this.finishToken(c.jsxName,this.input.slice(b,this.pos))}jsx_parseIdentifier(){let d=this.startNode();if(this.type===c.jsxName)d.name=this.value;else if(this.type.keyword)d.name=this.type.keyword;else this.unexpected();return this.next(),this.finishNode(d,"JSXIdentifier")}jsx_parseNamespacedName(){let d=this.start,b=this.startLoc,x=this.jsx_parseIdentifier();if(!h.allowNamespaces||!this.eat(o.colon))return x;var m=this.startNodeAt(d,b);return m.namespace=x,m.name=this.jsx_parseIdentifier(),this.finishNode(m,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===c.jsxTagEnd)return"";let d=this.start,b=this.startLoc,x=this.jsx_parseNamespacedName();if(this.type===o.dot&&x.type==="JSXNamespacedName"&&!h.allowNamespacedObjects)this.unexpected();while(this.eat(o.dot)){let m=this.startNodeAt(d,b);m.object=x,m.property=this.jsx_parseIdentifier(),x=this.finishNode(m,"JSXMemberExpression")}return x}jsx_parseAttributeValue(){switch(this.type){case o.braceL:let d=this.jsx_parseExpressionContainer();if(d.expression.type==="JSXEmptyExpression")this.raise(d.start,"JSX attributes must only be assigned a non-empty expression");return d;case c.jsxTagStart:case o.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let d=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(d,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let d=this.startNode();return this.next(),d.expression=this.type===o.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(o.braceR),this.finishNode(d,"JSXExpressionContainer")}jsx_parseAttribute(){let d=this.startNode();if(this.eat(o.braceL))return this.expect(o.ellipsis),d.argument=this.parseMaybeAssign(),this.expect(o.braceR),this.finishNode(d,"JSXSpreadAttribute");return d.name=this.jsx_parseNamespacedName(),d.value=this.eat(o.eq)?this.jsx_parseAttributeValue():null,this.finishNode(d,"JSXAttribute")}jsx_parseOpeningElementAt(d,b){let x=this.startNodeAt(d,b);x.attributes=[];let m=this.jsx_parseElementName();if(m)x.name=m;while(this.type!==o.slash&&this.type!==c.jsxTagEnd)x.attributes.push(this.jsx_parseAttribute());return x.selfClosing=this.eat(o.slash),this.expect(c.jsxTagEnd),this.finishNode(x,m?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(d,b){let x=this.startNodeAt(d,b),m=this.jsx_parseElementName();if(m)x.name=m;return this.expect(c.jsxTagEnd),this.finishNode(x,m?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(d,b){let x=this.startNodeAt(d,b),m=[],w=this.jsx_parseOpeningElementAt(d,b),k=null;if(!w.selfClosing){e:for(;;)switch(this.type){case c.jsxTagStart:if(d=this.start,b=this.startLoc,this.next(),this.eat(o.slash)){k=this.jsx_parseClosingElementAt(d,b);break e}m.push(this.jsx_parseElementAt(d,b));break;case c.jsxText:m.push(this.parseExprAtom());break;case o.braceL:m.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}if(_e(k.name)!==_e(w.name))this.raise(k.start,"Expected corresponding JSX closing tag for <"+_e(w.name)+">")}let C=w.name?"Element":"Fragment";if(x["opening"+C]=w,x["closing"+C]=k,x.children=m,this.type===o.relational&&this.value==="<")this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag");return this.finishNode(x,"JSX"+C)}jsx_parseText(){let d=this.parseLiteral(this.value);return d.type="JSXText",d}jsx_parseElement(){let d=this.start,b=this.startLoc;return this.next(),this.jsx_parseElementAt(d,b)}}}function fn(e,a,r){let{tokTypes:i}=a,{tokTypes:o}=r;return class extends e{parseMaybeImportAttributes(n){if(this.type===o._with||this.type===i.assert){this.next();let u=this.parseImportAttributes();if(u)n.attributes=u}}parseImportAttributes(){this.expect(o.braceL);let n=this.parseWithEntries();return this.expect(o.braceR),n}parseWithEntries(){let n=[],u=new Set;do{if(this.type===o.braceR)break;let h=this.startNode(),v;if(this.type===o.string)v=this.parseLiteral(this.value);else v=this.parseIdent(!0);if(this.next(),h.key=v,u.has(h.key.name))this.raise(this.pos,"Duplicated key in attributes");if(u.add(h.key.name),this.type!==o.string)this.raise(this.pos,"Only string is supported as an attribute value");h.value=this.parseLiteral(this.value),n.push(this.finishNode(h,"ImportAttribute"))}while(this.eat(o.comma));return n}}}var Je=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function li(e){if(!e)throw Error("Assert fail")}function yn(e){return e==="accessor"}function xn(e){return e==="in"||e==="out"}var Ae=1,ci=2,vn=4,L={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 Ye(e,a){return L.SCOPE_FUNCTION|(e?L.SCOPE_ASYNC:0)|(a?L.SCOPE_GENERATOR:0)}function gn(e){if(e.type!=="MemberExpression")return!1;let{computed:a,property:r}=e;if(a&&(r.type!=="TemplateLiteral"||r.expressions.length>0))return!1;return yi(e.object)}function yi(e){if(e.type==="Identifier")return!0;if(e.type!=="MemberExpression")return!1;if(e.computed)return!1;return yi(e.object)}function pi(e){return e==="private"||e==="public"||e==="protected"}function bn(e){return Boolean(e.startsExpr)}function Tn(e){if(e==null)throw Error(`Unexpected ${e} value.`);return e}function wn(e){switch(e){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 xi(e){let{dts:a=!1}=e||{},r=!!e?.jsx;return function(i){let o=i.acorn||Ze,c=tn(o),n=o.tokTypes,u=o.keywordTypes,h=o.isIdentifierStart,v=o.lineBreak,d=o.isNewLine,b=o.tokContexts,x=o.isIdentifierChar,{tokTypes:m,tokContexts:w,keywordsRegExp:k,tokenIsLiteralPropertyName:C,tokenIsTemplate:D,tokenIsTSDeclarationStart:Z,tokenIsIdentifier:N,tokenIsKeywordOrIdentifier:j,tokenIsTSTypeOperator:I}=c;function ne(t,s,l=t.length){for(let p=s;p<l;p++){let _=t.charCodeAt(p);if(d(_))return p<l-1&&_===13&&t.charCodeAt(p+1)===10?p+2:p+1}return-1}if(i=un(i,c,o),e?.jsx)i=mn(o,c,i,typeof e.jsx==="boolean"?{}:e.jsx);i=fn(i,c,o);class Ot extends i{constructor(t,s,l){super(t,s,l);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=(p)=>{this.tsParseModifiers({modified:p,allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:E.InvalidModifierOnTypeParameterPositions})},this.ecmaVersion=this.options.ecmaVersion}static get acornTypeScript(){return c}get acornTypeScript(){return c}getTokenFromCodeInType(t){if(t===62)return this.finishOp(n.relational,1);if(t===60)return this.finishOp(n.relational,1);return super.getTokenFromCode(t)}readToken(t){if(!this.inType){let s=this.curContext();if(s===w.tc_expr)return this.jsx_readToken();if(s===w.tc_oTag||s===w.tc_cTag){if(h(t))return this.jsx_readWord();if(t==62)return++this.pos,this.finishToken(m.jsxTagEnd);if((t===34||t===39)&&s==w.tc_oTag)return this.jsx_readString(t)}if(t===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)if(++this.pos,e?.jsx)return this.finishToken(m.jsxTagStart);else return this.finishToken(n.relational,"<")}return super.readToken(t)}getTokenFromCode(t){if(this.inType)return this.getTokenFromCodeInType(t);if(t===64)return++this.pos,this.finishToken(m.at);return super.getTokenFromCode(t)}isAbstractClass(){return this.ts_isContextual(m.abstract)&&this.lookahead().type===n._class}finishNode(t,s){if(t.type!==""&&t.end!==0)return t;return super.finishNode(t,s)}tryParse(t,s=this.cloneCurLookaheadState()){let l={node:null};try{return{node:t((_=null)=>{throw l.node=_,l}),error:null,thrown:!1,aborted:!1,failState:null}}catch(p){let _=this.getCurLookaheadState();if(this.setLookaheadState(s),p instanceof SyntaxError)return{node:null,error:p,thrown:!0,aborted:!1,failState:_};if(p===l)return{node:l.node,error:null,thrown:!1,aborted:!0,failState:_};throw p}}setOptionalParametersError(t,s){t.optionalParametersLoc=s?.loc??this.startLoc}reScan_lt_gt(){if(this.type===n.relational)this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos())}reScan_lt(){let{type:t}=this;if(t===n.bitShift)return this.pos-=2,this.finishOp(n.relational,1),n.relational;return t}resetEndLocation(t,s=this.lastTokEnd,l=this.lastTokEndLoc){if(t.end=s,t.loc.end=l,this.options.ranges)t.range[1]=s}startNodeAtNode(t){return super.startNodeAt(t.start,t.loc.start)}nextTokenStart(){return this.nextTokenStartSince(this.pos)}tsHasSomeModifiers(t,s){return s.some((l)=>{if(pi(l))return t.accessibility===l;return!!t[l]})}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&this.lookaheadCharCode()===123}tsCheckForInvalidTypeCasts(t){t.forEach((s)=>{if(s?.type==="TSTypeCastExpression")this.raise(s.typeAnnotation.start,E.UnexpectedTypeAnnotation)})}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&t.start===this.potentialArrowAt}tsIsIdentifier(){return N(this.type)}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(n.colon)?this.tsParseTypeOrTypePredicateAnnotation(n.colon):void 0}tsTryParseGenericAsyncArrowFunction(t,s,l){if(!this.tsMatchLeftRelational())return;let p=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let _=this.tsTryParseAndCatch(()=>{let f=this.startNodeAt(t,s);return f.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(f),f.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(n.arrow),f});if(this.maybeInArrowParameters=p,!_)return;return super.parseArrowExpression(_,null,!0,l)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==n.relational)return;return this.tsParseTypeArguments()}tsInNoContext(t){let s=this.context;this.context=[s[0]];try{return t()}finally{this.context=s}}tsTryParseTypeAnnotation(){return this.match(n.colon)?this.tsParseTypeAnnotation():void 0}isUnparsedContextual(t,s){let l=t+s.length;if(this.input.slice(t,l)===s){let p=this.input.charCodeAt(l);return!(x(p)||(p&64512)===55296)}return!1}isAbstractConstructorSignature(){return this.ts_isContextual(m.abstract)&&this.lookahead().type===n._new}nextTokenStartSince(t){return Je.lastIndex=t,Je.test(this.input)?Je.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}compareLookaheadState(t,s){for(let l of Object.keys(t))if(t[l]!==s[l])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(t){this.pos=t.pos,this.value=t.value,this.endLoc=t.endLoc,this.lastTokEnd=t.lastTokEnd,this.lastTokStart=t.lastTokStart,this.lastTokStartLoc=t.lastTokStartLoc,this.type=t.type,this.start=t.start,this.end=t.end,this.context=t.context,this.startLoc=t.startLoc,this.lastTokEndLoc=t.lastTokEndLoc,this.curLine=t.curLine,this.lineStart=t.lineStart,this.curPosition=t.curPosition,this.containsEsc=t.containsEsc}tsLookAhead(t){let s=this.getCurLookaheadState(),l=t();return this.setLookaheadState(s),l}lookahead(t){let s=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,t!==void 0)for(let p=0;p<t;p++)this.nextToken();else this.nextToken();this.isLookahead=!1;let l=this.getCurLookaheadState();return this.setLookaheadState(s),l}readWord(){let t=this.readWord1(),s=n.name;if(this.keywords.test(t))s=u[t];else if(new RegExp(k).test(t))s=m[t];return this.finishToken(s,t)}skipBlockComment(){let t;if(!this.isLookahead)t=this.options.onComment&&this.curPosition();let s=this.pos,l=this.input.indexOf("*/",this.pos+=2);if(l===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=l+2,this.options.locations)for(let p,_=s;(p=ne(this.input,_,this.pos))>-1;)++this.curLine,_=this.lineStart=p;if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!0,this.input.slice(s+2,l),s,this.pos,t,this.curPosition())}skipLineComment(t){let s=this.pos,l;if(!this.isLookahead)l=this.options.onComment&&this.curPosition();let p=this.input.charCodeAt(this.pos+=t);while(this.pos<this.input.length&&!d(p))p=this.input.charCodeAt(++this.pos);if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!1,this.input.slice(s+t,this.pos),s,this.pos,l,this.curPosition())}finishToken(t,s){if(this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();let l=this.type;if(this.type=t,this.value=s,!this.isLookahead)this.updateContext(l)}resetStartLocation(t,s,l){if(t.start=s,t.loc.start=l,this.options.ranges)t.range[0]=s}isLineTerminator(){return this.eat(n.semi)||super.canInsertSemicolon()}hasFollowingLineBreak(){return ri.lastIndex=this.end,ri.test(this.input)}addExtra(t,s,l,p=!0){if(!t)return;let _=t.extra=t.extra||{};if(p)_[s]=l;else Object.defineProperty(_,s,{enumerable:p,value:l})}isLiteralPropertyName(){return C(this.type)}hasPrecedingLineBreak(){return v.test(this.input.slice(this.lastTokEnd,this.start))}createIdentifier(t,s){return t.name=s,this.finishNode(t,"Identifier")}resetStartLocationFromNode(t,s){this.resetStartLocation(t,s.start,s.loc.start)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}isLookaheadContextual(t){let s=this.nextTokenStart();return this.isUnparsedContextual(s,t)}ts_type_isContextual(t,s){return t===s&&!this.containsEsc}ts_isContextual(t){return this.type===t&&!this.containsEsc}ts_isContextualWithState(t,s){return t.type===s&&!t.containsEsc}isContextualWithState(t,s){return s.type===n.name&&s.value===t&&!s.containsEsc}tsIsStartOfMappedType(){if(this.next(),this.eat(n.plusMin))return this.ts_isContextual(m.readonly);if(this.ts_isContextual(m.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(t){let s=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return t()}finally{this.inDisallowConditionalTypesContext=s}}tsTryParseType(){return this.tsEatThenParseType(n.colon)}match(t){return this.type===t}matchJsx(t){return this.type===c.tokTypes[t]}ts_eatWithState(t,s,l){let p=l.type;if(t===p){for(let _=0;_<s;_++)this.next();return!0}else return!1}ts_eatContextualWithState(t,s,l){if(k.test(t)){if(this.ts_isContextualWithState(l,m[t])){for(let p=0;p<s;p++)this.next();return!0}return!1}else{if(!this.isContextualWithState(t,l))return!1;for(let p=0;p<s;p++)this.next();return!0}}canHaveLeadingDecorator(){return this.match(n._class)||this.isAbstractClass()}eatContextual(t){if(k.test(t)){if(this.ts_isContextual(m[t]))return this.next(),!0;return!1}else return super.eatContextual(t)}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookaheadCharCode()===40}tsParseExternalModuleReference(){let t=this.startNode();if(this.expectContextual("require"),this.expect(n.parenL),!this.match(n.string))this.unexpected();return t.expression=this.parseExprAtom(),this.expect(n.parenR),this.finishNode(t,"TSExternalModuleReference")}tsParseEntityName(t=!0){let s=this.parseIdent(t);while(this.eat(n.dot)){let l=this.startNodeAtNode(s);l.left=s,l.right=this.parseIdent(t),s=this.finishNode(l,"TSQualifiedName")}return s}tsParseEnumMember(){let t=this.startNode();if(t.id=this.match(n.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(n.eq))t.initializer=this.parseMaybeAssign();return this.finishNode(t,"TSEnumMember")}tsParseEnumDeclaration(t,s={}){if(s.const)t.const=!0;if(s.declare)t.declare=!0;return this.expectContextual("enum"),t.id=this.parseIdent(),this.checkLValSimple(t.id),this.expect(n.braceL),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(n.braceR),this.finishNode(t,"TSEnumDeclaration")}tsParseModuleBlock(){let t=this.startNode();this.enterScope(sn),this.expect(n.braceL),t.body=[];while(this.type!==n.braceR){let s=this.parseStatement(null,!0);t.body.push(s)}return this.next(),super.exitScope(),this.finishNode(t,"TSModuleBlock")}tsParseAmbientExternalModuleDeclaration(t){if(this.ts_isContextual(m.global))t.global=!0,t.id=this.parseIdent();else if(this.match(n.string))t.id=this.parseLiteral(this.value);else this.unexpected();if(this.match(n.braceL))this.enterScope(de),t.body=this.tsParseModuleBlock(),super.exitScope();else super.semicolon();return this.finishNode(t,"TSModuleDeclaration")}tsTryParseDeclare(t){if(this.isLineTerminator())return;let s=this.type,l;if(this.isContextual("let"))s=n._var,l="let";return this.tsInAmbientContext(()=>{if(s===n._function)return t.declare=!0,this.parseFunctionStatement(t,!1,!0);if(s===n._class)return t.declare=!0,this.parseClass(t,!0);if(s===m.enum)return this.tsParseEnumDeclaration(t,{declare:!0});if(s===m.global)return this.tsParseAmbientExternalModuleDeclaration(t);if(s===n._const||s===n._var){if(!this.match(n._const)||!this.isLookaheadContextual("enum"))return t.declare=!0,this.parseVarStatement(t,l||this.value,!0);return this.expect(n._const),this.tsParseEnumDeclaration(t,{const:!0,declare:!0})}if(s===m.interface){let p=this.tsParseInterfaceDeclaration(t,{declare:!0});if(p)return p}if(N(s))return this.tsParseDeclaration(t,this.value,!0)})}tsIsListTerminator(t){switch(t){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(t,s,l,p){let _=[],f=-1;for(;;){if(this.tsIsListTerminator(t))break;f=-1;let y=s();if(y==null)return;if(_.push(y),this.eat(n.comma)){f=this.lastTokStart;continue}if(this.tsIsListTerminator(t))break;if(l)this.expect(n.comma);return}if(p)p.value=f;return _}tsParseDelimitedList(t,s,l){return Tn(this.tsParseDelimitedListWorker(t,s,!0,l))}tsParseBracketedList(t,s,l,p,_){if(!p)if(l)this.expect(n.bracketL);else this.expect(n.relational);let f=this.tsParseDelimitedList(t,s,_);if(l)this.expect(n.bracketR);else this.expect(n.relational);return f}tsParseTypeParameterName(){return this.parseIdent().name}tsEatThenParseType(t){return!this.match(t)?void 0:this.tsNextThenParseType()}tsExpectThenParseType(t){return this.tsDoThenParseType(()=>this.expect(t))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(t){return this.tsInType(()=>(t(),this.tsParseType()))}tsSkipParameterStart(){if(N(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(t){let s=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return t()}finally{this.inDisallowConditionalTypesContext=s}}tsParseBindingListForSignature(){return super.parseBindingList(n.parenR,!0,!0).map((t)=>{if(t.type!=="Identifier"&&t.type!=="RestElement"&&t.type!=="ObjectPattern"&&t.type!=="ArrayPattern")this.raise(t.start,E.UnsupportedSignatureParameterKind({type:t.type}));return t})}tsParseTypePredicateAsserts(){if(this.type!==m.asserts)return!1;let t=this.containsEsc;if(this.next(),!N(this.type)&&!this.match(n._this))return!1;if(t)this.raise(this.lastTokStart,"Escape sequence in keyword asserts");return!0}tsParseThisTypeNode(){let t=this.startNode();return this.next(),this.finishNode(t,"TSThisType")}tsParseTypeAnnotation(t=!0,s=this.startNode()){return this.tsInType(()=>{if(t)this.expect(n.colon);s.typeAnnotation=this.tsParseType()}),this.finishNode(s,"TSTypeAnnotation")}tsParseThisTypePredicate(t){this.next();let s=this.startNodeAtNode(t);return s.parameterName=t,s.typeAnnotation=this.tsParseTypeAnnotation(!1),s.asserts=!1,this.finishNode(s,"TSTypePredicate")}tsParseThisTypeOrThisTypePredicate(){let t=this.tsParseThisTypeNode();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(t);else return t}tsParseTypePredicatePrefix(){let t=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),t}tsParseTypeOrTypePredicateAnnotation(t){return this.tsInType(()=>{let s=this.startNode();this.expect(t);let l=this.startNode(),p=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(p&&this.match(n._this)){let y=this.tsParseThisTypeOrThisTypePredicate();if(y.type==="TSThisType")l.parameterName=y,l.asserts=!0,l.typeAnnotation=null,y=this.finishNode(l,"TSTypePredicate");else this.resetStartLocationFromNode(y,l),y.asserts=!0;return s.typeAnnotation=y,this.finishNode(s,"TSTypeAnnotation")}let _=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!_){if(!p)return this.tsParseTypeAnnotation(!1,s);return l.parameterName=this.parseIdent(),l.asserts=p,l.typeAnnotation=null,s.typeAnnotation=this.finishNode(l,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")}let f=this.tsParseTypeAnnotation(!1);return l.parameterName=_,l.typeAnnotation=f,l.asserts=p,s.typeAnnotation=this.finishNode(l,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")})}tsFillSignature(t,s){let l=t===n.arrow,p="parameters",_="typeAnnotation";if(s.typeParameters=this.tsTryParseTypeParameters(),this.expect(n.parenL),s.parameters=this.tsParseBindingListForSignature(),l)s.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(t);else if(this.match(t))s.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(t)}tsTryNextParseConstantContext(){if(this.lookahead().type!==n._const)return null;this.next();let t=this.tsParseTypeReference();if(t.typeParameters||t.typeArguments)this.raise(t.typeName.start,E.CannotFindName({name:"const"}));return t}tsParseFunctionOrConstructorType(t,s){let l=this.startNode();if(t==="TSConstructorType"){if(l.abstract=!!s,s)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(n.arrow,l)),this.finishNode(l,t)}tsParseUnionOrIntersectionType(t,s,l){let p=this.startNode(),_=this.eat(l),f=[];do f.push(s());while(this.eat(l));if(f.length===1&&!_)return f[0];return p.types=f,this.finishNode(p,t)}tsCheckTypeAnnotationForReadOnly(t){switch(t.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(t.start,E.UnexpectedReadonly)}}tsParseTypeOperator(){let t=this.startNode(),s=this.value;if(this.next(),t.operator=s,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),s==="readonly")this.tsCheckTypeAnnotationForReadOnly(t);return this.finishNode(t,"TSTypeOperator")}tsParseConstraintForInferType(){if(this.eat(n._extends)){let t=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.inDisallowConditionalTypesContext||!this.match(n.question))return t}}tsParseInferType(){let t=this.startNode();this.expectContextual("infer");let s=this.startNode();return s.name=this.tsParseTypeParameterName(),s.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),t.typeParameter=this.finishNode(s,"TSTypeParameter"),this.finishNode(t,"TSInferType")}tsParseLiteralTypeNode(){let t=this.startNode();return t.literal=(()=>{switch(this.type){case n.num:case n.string:case n._true:case n._false:return this.parseExprAtom();default:this.unexpected()}})(),this.finishNode(t,"TSLiteralType")}tsParseImportType(){let t=this.startNode();if(this.expect(n._import),this.expect(n.parenL),!this.match(n.string))this.raise(this.start,E.UnsupportedImportTypeArgument);if(t.argument=this.parseExprAtom(),this.expect(n.parenR),this.eat(n.dot))t.qualifier=this.tsParseEntityName();if(this.tsMatchLeftRelational())t.typeArguments=this.tsParseTypeArguments();return this.finishNode(t,"TSImportType")}tsParseTypeQuery(){let t=this.startNode();if(this.expect(n._typeof),this.match(n._import))t.exprName=this.tsParseImportType();else t.exprName=this.tsParseEntityName();if(!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())t.typeArguments=this.tsParseTypeArguments();return this.finishNode(t,"TSTypeQuery")}tsParseMappedTypeParameter(){let t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(n._in),this.finishNode(t,"TSTypeParameter")}tsParseMappedType(){let t=this.startNode();if(this.expect(n.braceL),this.match(n.plusMin))t.readonly=this.value,this.next(),this.expectContextual("readonly");else if(this.eatContextual("readonly"))t.readonly=!0;if(this.expect(n.bracketL),t.typeParameter=this.tsParseMappedTypeParameter(),t.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(n.bracketR),this.match(n.plusMin))t.optional=this.value,this.next(),this.expect(n.question);else if(this.eat(n.question))t.optional=!0;return t.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(n.braceR),this.finishNode(t,"TSMappedType")}tsParseTypeLiteral(){let t=this.startNode();return t.members=this.tsParseObjectTypeMembers(),this.finishNode(t,"TSTypeLiteral")}tsParseTupleElementType(){let t=this.startLoc,s=this.start,l=this.eat(n.ellipsis),p=this.tsParseType(),_=this.eat(n.question);if(this.eat(n.colon)){let y=this.startNodeAtNode(p);if(y.optional=_,p.type==="TSTypeReference"&&!p.typeArguments&&p.typeName.type==="Identifier")y.label=p.typeName;else this.raise(p.start,E.InvalidTupleMemberLabel),y.label=p;y.elementType=this.tsParseType(),p=this.finishNode(y,"TSNamedTupleMember")}else if(_){let y=this.startNodeAtNode(p);y.typeAnnotation=p,p=this.finishNode(y,"TSOptionalType")}if(l){let y=this.startNodeAt(s,t);y.typeAnnotation=p,p=this.finishNode(y,"TSRestType")}return p}tsParseTupleType(){let t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let s=!1;return t.elementTypes.forEach((l)=>{let{type:p}=l;if(s&&p!=="TSRestType"&&p!=="TSOptionalType"&&!(p==="TSNamedTupleMember"&&l.optional))this.raise(l.start,E.OptionalTypeBeforeRequired);if(s||=p==="TSNamedTupleMember"&&l.optional||p==="TSOptionalType",p==="TSRestType")l=l.typeAnnotation}),this.finishNode(t,"TSTupleType")}tsParseTemplateLiteralType(){let t=this.startNode();return t.literal=this.parseTemplate({isTagged:!1}),this.finishNode(t,"TSLiteralType")}tsParseTypeReference(){let t=this.startNode();if(t.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())t.typeArguments=this.tsParseTypeArguments();return this.finishNode(t,"TSTypeReference")}tsMatchLeftRelational(){return this.match(n.relational)&&this.value==="<"}tsMatchRightRelational(){return this.match(n.relational)&&this.value===">"}tsParseParenthesizedType(){let t=this.startNode();return this.expect(n.parenL),t.typeAnnotation=this.tsParseType(),this.expect(n.parenR),this.finishNode(t,"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 t=this.startNode();if(this.lookahead().type!==n.num)this.unexpected();return t.literal=this.parseMaybeUnary(),this.finishNode(t,"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:t}=this;if(N(t)||t===n._void||t===n._null){let s=t===n._void?"TSVoidKeyword":t===n._null?"TSNullKeyword":wn(this.value);if(s!==void 0&&this.lookaheadCharCode()!==46){let l=this.startNode();return this.next(),this.finishNode(l,s)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let t=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(n.bracketL))if(this.match(n.bracketR)){let s=this.startNodeAtNode(t);s.elementType=t,this.expect(n.bracketR),t=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAtNode(t);s.objectType=t,s.indexType=this.tsParseType(),this.expect(n.bracketR),t=this.finishNode(s,"TSIndexedAccessType")}return t}tsParseTypeOperatorOrHigher(){return I(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(){li(this.inType);let t=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(n._extends))return t;let s=this.startNodeAtNode(t);return s.checkType=t,s.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(n.question),s.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(n.colon),s.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(s,"TSConditionalType")}tsIsUnambiguouslyIndexSignature(){if(this.next(),N(this.type))return this.next(),this.match(n.colon);return!1}tsInType(t){let s=this.inType;this.inType=!0;try{return t()}finally{this.inType=s}}tsTryParseIndexSignature(t){if(!(this.match(n.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(n.bracketL);let s=this.parseIdent();s.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(s),this.expect(n.bracketR),t.parameters=[s];let l=this.tsTryParseTypeAnnotation();if(l)t.typeAnnotation=l;return this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSIndexSignature")}tsParseNoneModifiers(t){this.tsParseModifiers({modified:t,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:E.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(t=this.tsParseNoneModifiers.bind(this)){let s=this.startNode();return t(s),s.name=this.tsParseTypeParameterName(),s.constraint=this.tsEatThenParseType(n._extends),s.default=this.tsEatThenParseType(n.eq),this.finishNode(s,"TSTypeParameter")}tsParseTypeParameters(t){let s=this.startNode();if(this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart"))this.next();else this.unexpected();let l={value:-1};if(s.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,t),!1,!0,l),s.params.length===0)this.raise(this.start,E.EmptyTypeParameters);if(l.value!==-1)this.addExtra(s,"trailingComma",l.value);return this.finishNode(s,"TSTypeParameterDeclaration")}tsTryParseTypeParameters(t){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(t)}tsTryParse(t){let s=this.getCurLookaheadState(),l=t();if(l!==void 0&&l!==!1)return l;else{this.setLookaheadState(s);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(t,s){let l=this.value;if(t.indexOf(l)!==-1&&!this.containsEsc){if(s&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return l}return}tsParseModifiersByMap({modified:t,map:s}){for(let l of Object.keys(s))t[l]=s[l]}tsParseModifiers({modified:t,allowedModifiers:s,disallowedModifiers:l,stopOnStartOfClassStaticBlock:p,errorTemplate:_=E.InvalidModifierOnTypeMember}){let f={},y=(T,g,P,O)=>{if(g===P&&t[O])this.raise(T.column,E.InvalidModifiersOrder({orderedModifiers:[P,O]}))},A=(T,g,P,O)=>{if(t[P]&&g===O||t[O]&&g===P)this.raise(T.column,E.IncompatibleModifiers({modifiers:[P,O]}))};for(;;){let T=this.startLoc,g=this.tsParseModifier(s.concat(l??[]),p);if(!g)break;if(pi(g))if(t.accessibility)this.raise(this.start,E.DuplicateAccessibilityModifier());else y(T,g,g,"override"),y(T,g,g,"static"),y(T,g,g,"readonly"),y(T,g,g,"accessor"),f.accessibility=g,t.accessibility=g;else if(xn(g))if(t[g])this.raise(this.start,E.DuplicateModifier({modifier:g}));else y(T,g,"in","out"),f[g]=g,t[g]=!0;else if(yn(g))if(t[g])this.raise(this.start,E.DuplicateModifier({modifier:g}));else A(T,g,"accessor","readonly"),A(T,g,"accessor","static"),A(T,g,"accessor","override"),f[g]=g,t[g]=!0;else if(g==="const")if(t[g])this.raise(this.start,E.DuplicateModifier({modifier:g}));else f[g]=g,t[g]=!0;else if(Object.hasOwnProperty.call(t,g))this.raise(this.start,E.DuplicateModifier({modifier:g}));else y(T,g,"static","readonly"),y(T,g,"static","override"),y(T,g,"override","readonly"),y(T,g,"abstract","override"),A(T,g,"declare","override"),A(T,g,"static","abstract"),f[g]=g,t[g]=!0;if(l?.includes(g))this.raise(this.start,_)}return f}tsParseInOutModifiers(t){this.tsParseModifiers({modified:t,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:E.InvalidModifierOnTypeParameter})}parseMaybeUnary(t,s,l,p){if(!e?.jsx&&this.tsMatchLeftRelational())return this.tsParseTypeAssertion();else return super.parseMaybeUnary(t,s,l,p)}tsParseTypeAssertion(){if(r)this.raise(this.start,E.ReservedTypeAssertion);let t=this.tryParse(()=>{let s=this.startNode(),l=this.tsTryNextParseConstantContext();return s.typeAnnotation=l||this.tsNextThenParseType(),this.expect(n.relational),s.expression=this.parseMaybeUnary(),this.finishNode(s,"TSTypeAssertion")});if(t.error)return this.tsParseTypeParameters(this.tsParseConstModifier);else return t.node}tsParseTypeArguments(){let t=this.startNode();if(t.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(n.relational),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),t.params.length===0)this.raise(this.start,E.EmptyTypeArguments);return this.exprAllowed=!1,this.expect(n.relational),this.finishNode(t,"TSTypeParameterInstantiation")}tsParseHeritageClause(t){let s=this.start,l=this.tsParseDelimitedList("HeritageClauseElement",()=>{let p=this.startNode();if(p.expression=this.tsParseEntityName(),this.tsMatchLeftRelational())p.typeParameters=this.tsParseTypeArguments();return this.finishNode(p,"TSExpressionWithTypeArguments")});if(!l.length)this.raise(s,E.EmptyHeritageClauseType({token:t}));return l}tsParseTypeMemberSemicolon(){if(!this.eat(n.comma)&&!this.isLineTerminator())this.expect(n.semi)}tsTryParseAndCatch(t){let s=this.tryParse((l)=>t()||l());if(s.aborted||!s.node)return;if(s.error)this.setLookaheadState(s.failState);return s.node}tsParseSignatureMember(t,s){return this.tsFillSignature(n.colon,s),this.tsParseTypeMemberSemicolon(),this.finishNode(s,t)}tsParsePropertyOrMethodSignature(t,s){if(this.eat(n.question))t.optional=!0;let l=t;if(this.match(n.parenL)||this.tsMatchLeftRelational()){if(s)this.raise(t.start,E.ReadonlyForMethodSignature);let p=l;if(p.kind&&this.tsMatchLeftRelational())this.raise(this.start,E.AccesorCannotHaveTypeParameters);this.tsFillSignature(n.colon,p),this.tsParseTypeMemberSemicolon();let _="parameters",f="typeAnnotation";if(p.kind==="get"){if(p[_].length>0){if(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(p[_][0]))this.raise(this.start,E.AccesorCannotDeclareThisParameter)}}else if(p.kind==="set"){if(p[_].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{let y=p[_][0];if(this.isThisParam(y))this.raise(this.start,E.AccesorCannotDeclareThisParameter);if(y.type==="Identifier"&&y.optional)this.raise(this.start,E.SetAccesorCannotHaveOptionalParameter);if(y.type==="RestElement")this.raise(this.start,E.SetAccesorCannotHaveRestParameter)}if(p[f])this.raise(p[f].start,E.SetAccesorCannotHaveReturnType)}else p.kind="method";return this.finishNode(p,"TSMethodSignature")}else{let p=l;if(s)p.readonly=!0;let _=this.tsTryParseTypeAnnotation();if(_)p.typeAnnotation=_;return this.tsParseTypeMemberSemicolon(),this.finishNode(p,"TSPropertySignature")}}tsParseTypeMember(){let t=this.startNode();if(this.match(n.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",t);if(this.match(n._new)){let l=this.startNode();if(this.next(),this.match(n.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSConstructSignatureDeclaration",t);else return t.key=this.createIdentifier(l,"new"),this.tsParsePropertyOrMethodSignature(t,!1)}this.tsParseModifiers({modified:t,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]});let s=this.tsTryParseIndexSignature(t);if(s)return s;if(this.parsePropertyName(t),!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&this.tsTokenCanFollowModifier())t.kind=t.key.name,this.parsePropertyName(t);return this.tsParsePropertyOrMethodSignature(t,!!t.readonly)}tsParseList(t,s){let l=[];while(!this.tsIsListTerminator(t))l.push(s());return l}tsParseObjectTypeMembers(){this.expect(n.braceL);let t=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(n.braceR),t}tsParseInterfaceDeclaration(t,s={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual("interface"),s.declare)t.declare=!0;if(N(this.type))t.id=this.parseIdent(),this.checkLValSimple(t.id,L.BIND_TS_INTERFACE);else t.id=null,this.raise(this.start,E.MissingInterfaceName);if(t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(n._extends))t.extends=this.tsParseHeritageClause("extends");let l=this.startNode();return l.body=this.tsParseInterfaceBody(),t.body=this.finishNode(l,"TSInterfaceBody"),this.finishNode(t,"TSInterfaceDeclaration")}tsParseInterfaceBody(){this.expect(n.braceL);let t=this.inType;this.inType=!0;let s=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.inType=t,this.expect(n.braceR),s}tsParseAbstractDeclaration(t){if(this.match(n._class))return t.abstract=!0,this.parseClass(t,!0);else if(this.ts_isContextual(m.interface)){if(!this.hasFollowingLineBreak())return t.abstract=!0,this.tsParseInterfaceDeclaration(t)}else this.unexpected(t.start)}tsIsDeclarationStart(){return Z(this.type)}tsParseExpressionStatement(t,s){switch(s.name){case"declare":{let l=this.tsTryParseDeclare(t);if(l)return l.declare=!0,l;break}case"global":if(this.match(n.braceL)){this.enterScope(de);let l=t;return l.global=!0,l.id=s,l.body=this.tsParseModuleBlock(),super.exitScope(),this.finishNode(l,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(t,s.name,!1)}}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsIsExportDefaultSpecifier(){let{type:t}=this,s=this.isAsyncFunction(),l=this.isLet();if(N(t)){if(s&&!this.containsEsc||l)return!1;if((t===m.type||t===m.interface)&&!this.containsEsc){let f=this.lookahead();if(N(f.type)&&!this.isContextualWithState("from",f)||f.type===n.braceL)return!1}}else if(!this.match(n._default))return!1;let p=this.nextTokenStart(),_=this.isUnparsedContextual(p,"from");if(this.input.charCodeAt(p)===44||N(this.type)&&_)return!0;if(this.match(n._default)&&_){let f=this.input.charCodeAt(this.nextTokenStartSince(p+4));return f===34||f===39}return!1}tsInAmbientContext(t){let s=this.isAmbientContext;this.isAmbientContext=!0;try{return t()}finally{this.isAmbientContext=s}}tsCheckLineTerminator(t){if(t){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsParseModuleOrNamespaceDeclaration(t,s=!1){if(t.id=this.parseIdent(),!s)this.checkLValSimple(t.id,L.BIND_TS_NAMESPACE);if(this.eat(n.dot)){let l=this.startNode();this.tsParseModuleOrNamespaceDeclaration(l,!0),t.body=l}else this.enterScope(de),t.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(t,"TSModuleDeclaration")}checkLValSimple(t,s=L.BIND_NONE,l){if(t.type==="TSNonNullExpression"||t.type==="TSAsExpression")t=t.expression;return super.checkLValSimple(t,s,l)}tsParseTypeAliasDeclaration(t){return t.id=this.parseIdent(),this.checkLValSimple(t.id,L.BIND_TS_TYPE),t.typeAnnotation=this.tsInType(()=>{if(t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(n.eq),this.ts_isContextual(m.interface)&&this.lookahead().type!==n.dot){let s=this.startNode();return this.next(),this.finishNode(s,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(t,"TSTypeAliasDeclaration")}tsParseDeclaration(t,s,l){switch(s){case"abstract":if(this.tsCheckLineTerminator(l)&&(this.match(n._class)||N(this.type)))return this.tsParseAbstractDeclaration(t);break;case"module":if(this.tsCheckLineTerminator(l)){if(this.match(n.string))return this.tsParseAmbientExternalModuleDeclaration(t);else if(N(this.type))return this.tsParseModuleOrNamespaceDeclaration(t)}break;case"namespace":if(this.tsCheckLineTerminator(l)&&N(this.type))return this.tsParseModuleOrNamespaceDeclaration(t);break;case"type":if(this.tsCheckLineTerminator(l)&&N(this.type))return this.tsParseTypeAliasDeclaration(t);break}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.value,!0)}tsParseImportEqualsDeclaration(t,s){t.isExport=s||!1,t.id=this.parseIdent(),this.checkLValSimple(t.id,L.BIND_LEXICAL),super.expect(n.eq);let l=this.tsParseModuleReference();if(t.importKind==="type"&&l.type!=="TSExternalModuleReference")this.raise(l.start,E.ImportAliasHasImportType);return t.moduleReference=l,super.semicolon(),this.finishNode(t,"TSImportEqualsDeclaration")}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;let{type:t}=this;if(N(t)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((t===m.type||t===m.interface)&&!this.containsEsc){let p=this.lookahead();if(N(p.type)&&!this.isContextualWithState("from",p)||p.type===n.braceL)return!1}}else if(!this.match(n._default))return!1;let s=this.nextTokenStart(),l=this.isUnparsedContextual(s,"from");if(this.input.charCodeAt(s)===44||N(this.type)&&l)return!0;if(this.match(n._default)&&l){let p=this.input.charCodeAt(this.nextTokenStartSince(s+4));return p===34||p===39}return!1}parseTemplate({isTagged:t=!1}={}){let s=this.startNode();this.next(),s.expressions=[];let l=this.parseTemplateElement({isTagged:t});s.quasis=[l];while(!l.tail){if(this.type===n.eof)this.raise(this.pos,"Unterminated template literal");this.expect(n.dollarBraceL),s.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(n.braceR),s.quasis.push(l=this.parseTemplateElement({isTagged:t}))}return this.next(),this.finishNode(s,"TemplateLiteral")}parseFunction(t,s,l,p,_){if(this.initFunction(t),this.ecmaVersion>=9||this.ecmaVersion>=6&&!p){if(this.type===n.star&&s&ci)this.unexpected();t.generator=this.eat(n.star)}if(this.ecmaVersion>=8)t.async=!!p;if(s&Ae)t.id=s&vn&&this.type!==n.name?null:this.parseIdent();let f=this.yieldPos,y=this.awaitPos,A=this.awaitIdentPos,T=this.maybeInArrowParameters;if(this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ye(t.async,t.generator)),!(s&Ae))t.id=this.type===n.name?this.parseIdent():null;this.parseFunctionParams(t);let g=s&Ae;if(this.parseFunctionBody(t,l,!1,_,{isFunctionDeclaration:g}),this.yieldPos=f,this.awaitPos=y,this.awaitIdentPos=A,s&Ae&&t.id&&!(s&ci))if(t.body)this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?L.BIND_VAR:L.BIND_LEXICAL:L.BIND_FUNCTION);else this.checkLValSimple(t.id,L.BIND_NONE);return this.maybeInArrowParameters=T,this.finishNode(t,g?"FunctionDeclaration":"FunctionExpression")}parseFunctionBody(t,s=!1,l=!1,p=!1,_){if(this.match(n.colon))t.returnType=this.tsParseTypeOrTypePredicateAnnotation(n.colon);let f=_?.isFunctionDeclaration?"TSDeclareFunction":_?.isClassMethod?"TSDeclareMethod":void 0;if(f&&!this.match(n.braceL)&&this.isLineTerminator())return this.exitScope(),this.finishNode(t,f);if(f==="TSDeclareFunction"&&this.isAmbientContext){if(this.raise(t.start,E.DeclareFunctionHasImplementation),t.declare)return super.parseFunctionBody(t,s,l,!1),this.finishNode(t,f)}return super.parseFunctionBody(t,s,l,p),t}parseNew(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");let t=this.startNode(),s=this.parseIdent(!0);if(this.ecmaVersion>=6&&this.eat(n.dot)){t.meta=s;let y=this.containsEsc;if(t.property=this.parseIdent(!0),t.property.name!=="target")this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'");if(y)this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block");return this.finishNode(t,"MetaProperty")}let l=this.start,p=this.startLoc,_=this.type===n._import;if(t.callee=this.parseSubscripts(this.parseExprAtom(),l,p,!0,!1),_&&t.callee.type==="ImportExpression")this.raise(l,"Cannot use new with import()");let{callee:f}=t;if(f.type==="TSInstantiationExpression"&&!f.extra?.parenthesized)t.typeArguments=f.typeArguments,t.callee=f.expression;if(this.eat(n.parenL))t.arguments=this.parseExprList(n.parenR,this.ecmaVersion>=8,!1);else t.arguments=[];return this.finishNode(t,"NewExpression")}parseExprOp(t,s,l,p,_){if(n._in.binop>p&&!this.hasPrecedingLineBreak()){let f;if(this.isContextual("as"))f="TSAsExpression";if(this.isContextual("satisfies"))f="TSSatisfiesExpression";if(f){let y=this.startNodeAt(s,l);y.expression=t;let A=this.tsTryNextParseConstantContext();if(A)y.typeAnnotation=A;else y.typeAnnotation=this.tsNextThenParseType();return this.finishNode(y,f),this.reScan_lt_gt(),this.parseExprOp(y,s,l,p,_)}}return super.parseExprOp(t,s,l,p,_)}parseImportSpecifiers(){let t=[],s=!0;if(c.tokenIsIdentifier(this.type)){if(t.push(this.parseImportDefaultSpecifier()),!this.eat(n.comma))return t}if(this.type===n.star)return t.push(this.parseImportNamespaceSpecifier()),t;this.expect(n.braceL);while(!this.eat(n.braceR)){if(!s){if(this.expect(n.comma),this.afterTrailingComma(n.braceR))break}else s=!1;t.push(this.parseImportSpecifier())}return t}parseImport(t){let s=this.lookahead();if(t.importKind="value",this.importOrExportOuterKind="value",N(s.type)||this.match(n.star)||this.match(n.braceL)){let l=this.lookahead(2);if(l.type!==n.comma&&!this.isContextualWithState("from",l)&&l.type!==n.eq&&this.ts_eatContextualWithState("type",1,s))this.importOrExportOuterKind="type",t.importKind="type",s=this.lookahead(),l=this.lookahead(2);if(N(s.type)&&l.type===n.eq){this.next();let p=this.tsParseImportEqualsDeclaration(t);return this.importOrExportOuterKind="value",p}}if(this.next(),this.type===n.string)t.specifiers=[],t.source=this.parseExprAtom();else t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===n.string?this.parseExprAtom():this.unexpected();if(this.parseMaybeImportAttributes(t),this.semicolon(),this.finishNode(t,"ImportDeclaration"),this.importOrExportOuterKind="value",t.importKind==="type"&&t.specifiers.length>1&&t.specifiers[0].type==="ImportDefaultSpecifier")this.raise(t.start,E.TypeImportCannotSpecifyDefaultAndNamed);return t}parseExportDefaultDeclaration(){if(this.isAbstractClass()){let t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0)}if(this.match(m.interface)){let t=this.tsParseInterfaceDeclaration(this.startNode());if(t)return t}return super.parseExportDefaultDeclaration()}parseExportAllDeclaration(t,s){if(this.ecmaVersion>=11)if(this.eatContextual("as"))t.exported=this.parseModuleExportName(),this.checkExport(s,t.exported,this.lastTokStart);else t.exported=null;if(this.expectContextual("from"),this.type!==n.string)this.unexpected();return t.source=this.parseExprAtom(),this.parseMaybeImportAttributes(t),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")}parseDynamicImport(t){if(this.next(),t.source=this.parseMaybeAssign(),this.eat(n.comma)){let s=this.parseExpression();t.arguments=[s]}if(!this.eat(n.parenR)){let s=this.start;if(this.eat(n.comma)&&this.eat(n.parenR))this.raiseRecoverable(s,"Trailing comma is not allowed in import()");else this.unexpected(s)}return this.finishNode(t,"ImportExpression")}parseExport(t,s){let l=this.lookahead();if(this.ts_eatWithState(n._import,2,l)){if(this.ts_isContextual(m.type)&&this.lookaheadCharCode()!==61)t.importKind="type",this.importOrExportOuterKind="type",this.next();else t.importKind="value",this.importOrExportOuterKind="value";let p=this.tsParseImportEqualsDeclaration(t,!0);return this.importOrExportOuterKind=void 0,p}else if(this.ts_eatWithState(n.eq,2,l)){let p=t;return p.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(p,"TSExportAssignment")}else if(this.ts_eatContextualWithState("as",2,l)){let p=t;return this.expectContextual("namespace"),p.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(p,"TSNamespaceExportDeclaration")}else{let p=this.lookahead(2).type;if(this.ts_isContextualWithState(l,m.type)&&(p===n.braceL||p===n.star))this.next(),this.importOrExportOuterKind="type",t.exportKind="type";else this.importOrExportOuterKind="value",t.exportKind="value";if(this.next(),this.eat(n.star))return this.parseExportAllDeclaration(t,s);if(this.eat(n._default))return this.checkExport(s,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(t.declaration=this.parseExportDeclaration(t),t.declaration.type==="VariableDeclaration")this.checkVariableExport(s,t.declaration.declarations);else this.checkExport(s,t.declaration.id,t.declaration.id.start);t.specifiers=[],t.source=null}else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(s),this.eatContextual("from")){if(this.type!==n.string)this.unexpected();t.source=this.parseExprAtom(),this.parseMaybeImportAttributes(t)}else{for(let _ of t.specifiers)if(this.checkUnreserved(_.local),this.checkLocalExport(_.local),_.local.type==="Literal")this.raise(_.local.start,"A string literal cannot be used as an exported binding without `from`.");t.source=null}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")}}checkExport(t,s,l){if(!t)return;if(typeof s!=="string")s=s.type==="Identifier"?s.name:s.value;t[s]=!0}parseMaybeDefault(t,s,l){let p=super.parseMaybeDefault(t,s,l);if(p.type==="AssignmentPattern"&&p.typeAnnotation&&p.right.start<p.typeAnnotation.start)this.raise(p.typeAnnotation.start,E.TypeAnnotationAfterAssign);return p}typeCastToParameter(t){return t.expression.typeAnnotation=t.typeAnnotation,this.resetEndLocation(t.expression,t.typeAnnotation.end,t.typeAnnotation.loc?.end),t.expression}toAssignableList(t,s){if(!t)t=[];for(let l=0;l<t.length;l++){let p=t[l];if(p?.type==="TSTypeCastExpression")t[l]=this.typeCastToParameter(p)}return super.toAssignableList(t,s)}reportReservedArrowTypeParam(t){if(t.params.length===1&&!t.extra?.trailingComma&&r)this.raise(t.start,E.ReservedArrowTypeParam)}parseExprAtom(t,s,l){if(this.type===m.jsxText)return this.jsx_parseText();else if(this.type===m.jsxTagStart)return this.jsx_parseElement();else if(this.type===m.at)return this.parseDecorators(),this.parseExprAtom();else if(N(this.type)){let p=this.potentialArrowAt===this.start,_=this.start,f=this.startLoc,y=this.containsEsc,A=this.parseIdent(!1);if(this.ecmaVersion>=8&&!y&&A.name==="async"&&!this.canInsertSemicolon()&&this.eat(n._function))return this.overrideContext(b.f_expr),this.parseFunction(this.startNodeAt(_,f),0,!1,!0,s);if(p&&!this.canInsertSemicolon()){if(this.eat(n.arrow))return this.parseArrowExpression(this.startNodeAt(_,f),[A],!1,s);if(this.ecmaVersion>=8&&A.name==="async"&&this.type===n.name&&!y&&(!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(_,f),[A],!0,s)}}return A}else return super.parseExprAtom(t,s,l)}parseExprAtomDefault(){if(N(this.type)){let t=this.potentialArrowAt===this.start,s=this.containsEsc,l=this.parseIdent();if(!s&&l.name==="async"&&!this.canInsertSemicolon()){let{type:p}=this;if(p===n._function)return this.next(),this.parseFunction(this.startNodeAtNode(l),void 0,!0,!0);else if(N(p))if(this.lookaheadCharCode()===61){let _=this.parseIdent(!1);if(this.canInsertSemicolon()||!this.eat(n.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAtNode(l),[_],!0)}else return l}if(t&&this.match(n.arrow)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(l),[l],!1);return l}else this.unexpected()}parseIdentNode(){let t=this.startNode();if(j(this.type)&&!((this.type.keyword==="class"||this.type.keyword==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)))t.name=this.value;else return super.parseIdentNode();return t}parseVarStatement(t,s,l=!1){let{isAmbientContext:p}=this;this.next(),super.parseVar(t,!1,s,l||p),this.semicolon();let _=this.finishNode(t,"VariableDeclaration");if(!p)return _;for(let{id:f,init:y}of _.declarations){if(!y)continue;if(s!=="const"||!!f.typeAnnotation)this.raise(y.start,E.InitializerNotAllowedInAmbientContext);else if(y.type!=="StringLiteral"&&y.type!=="BooleanLiteral"&&y.type!=="NumericLiteral"&&y.type!=="BigIntLiteral"&&(y.type!=="TemplateLiteral"||y.expressions.length>0)&&!gn(y))this.raise(y.start,E.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference)}return _}parseStatement(t,s,l){if(this.match(m.at))this.parseDecorators(!0);if(this.match(n._const)&&this.isLookaheadContextual("enum")){let p=this.startNode();return this.expect(n._const),this.tsParseEnumDeclaration(p,{const:!0})}if(this.ts_isContextual(m.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(m.interface)){let p=this.tsParseInterfaceDeclaration(this.startNode());if(p)return p}return super.parseStatement(t,s,l)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parsePostMemberNameModifiers(t){if(this.eat(n.question))t.optional=!0;if(t.readonly&&this.match(n.parenL))this.raise(t.start,E.ClassMethodHasReadonly);if(t.declare&&this.match(n.parenL))this.raise(t.start,E.ClassMethodHasDeclare)}parseExpressionStatement(t,s){return(s.type==="Identifier"?this.tsParseExpressionStatement(t,s):void 0)||super.parseExpressionStatement(t,s)}shouldParseExportStatement(){if(this.tsIsDeclarationStart())return!0;if(this.match(m.at))return!0;return super.shouldParseExportStatement()}parseConditional(t,s,l,p,_){if(this.eat(n.question)){let f=this.startNodeAt(s,l);return f.test=t,f.consequent=this.parseMaybeAssign(),this.expect(n.colon),f.alternate=this.parseMaybeAssign(p),this.finishNode(f,"ConditionalExpression")}return t}parseMaybeConditional(t,s){let l=this.start,p=this.startLoc,_=this.parseExprOps(t,s);if(this.checkExpressionErrors(s))return _;if(!this.maybeInArrowParameters||!this.match(n.question))return this.parseConditional(_,l,p,t,s);let f=this.tryParse(()=>this.parseConditional(_,l,p,t,s));if(!f.node){if(f.error)this.setOptionalParametersError(s,f.error);return _}if(f.error)this.setLookaheadState(f.failState);return f.node}parseParenItem(t){let s=this.start,l=this.startLoc;if(t=super.parseParenItem(t),this.eat(n.question))t.optional=!0,this.resetEndLocation(t);if(this.match(n.colon)){let p=this.startNodeAt(s,l);return p.expression=t,p.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(p,"TSTypeCastExpression")}return t}parseExportDeclaration(t){if(!this.isAmbientContext&&this.ts_isContextual(m.declare))return this.tsInAmbientContext(()=>this.parseExportDeclaration(t));let s=this.start,l=this.startLoc,p=this.eatContextual("declare");if(p&&(this.ts_isContextual(m.declare)||!this.shouldParseExportStatement()))this.raise(this.start,E.ExpectedAmbientAfterExportDeclare);let f=N(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);if(!f)return null;if(f.type==="TSInterfaceDeclaration"||f.type==="TSTypeAliasDeclaration"||p)t.exportKind="type";if(p)this.resetStartLocation(f,s,l),f.declare=!0;return f}parseClassId(t,s){if(!s&&this.isContextual("implements"))return;super.parseClassId(t,s);let l=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));if(l)t.typeParameters=l}parseClassPropertyAnnotation(t){if(!t.optional){if(this.value==="!"&&this.eat(n.prefix))t.definite=!0;else if(this.eat(n.question))t.optional=!0}let s=this.tsTryParseTypeAnnotation();if(s)t.typeAnnotation=s}parseClassField(t){if(t.key.type==="PrivateIdentifier"){if(t.abstract)this.raise(t.start,E.PrivateElementHasAbstract);if(t.accessibility)this.raise(t.start,E.PrivateElementHasAccessibility({modifier:t.accessibility}));this.parseClassPropertyAnnotation(t)}else{if(this.parseClassPropertyAnnotation(t),this.isAmbientContext&&!(t.readonly&&!t.typeAnnotation)&&this.match(n.eq))this.raise(this.start,E.DeclareClassFieldHasInitializer);if(t.abstract&&this.match(n.eq)){let{key:l}=t;this.raise(this.start,E.AbstractPropertyHasInitializer({propertyName:l.type==="Identifier"&&!t.computed?l.name:`[${this.input.slice(l.start,l.end)}]`}))}}return super.parseClassField(t)}parseClassMethod(t,s,l,p){let _=t.kind==="constructor",f=t.key.type==="PrivateIdentifier",y=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(f){if(y)t.typeParameters=y;if(t.accessibility)this.raise(t.start,E.PrivateMethodsHasAccessibility({modifier:t.accessibility}))}else if(y&&_)this.raise(y.start,E.ConstructorHasTypeParameters);let{declare:A=!1,kind:T}=t;if(A&&(T==="get"||T==="set"))this.raise(t.start,E.DeclareAccessor({kind:T}));if(y)t.typeParameters=y;let g=t.key;if(t.kind==="constructor"){if(s)this.raise(g.start,"Constructor can't be a generator");if(l)this.raise(g.start,"Constructor can't be an async method")}else if(t.static&&oi(t,"prototype"))this.raise(g.start,"Classes may not have a static property named prototype");let P=t.value=this.parseMethod(s,l,p,!0,t);if(t.kind==="get"&&P.params.length!==0)this.raiseRecoverable(P.start,"getter should have no params");if(t.kind==="set"&&P.params.length!==1)this.raiseRecoverable(P.start,"setter should have exactly one param");if(t.kind==="set"&&P.params[0].type==="RestElement")this.raiseRecoverable(P.params[0].start,"Setter cannot use rest params");return this.finishNode(t,"MethodDefinition")}isClassMethod(){return this.match(n.relational)}parseClassElement(t){if(this.eat(n.semi))return null;let s=this.startNode(),l="",p=!1,_=!1,f="method",y=!1,A=["declare","private","public","protected","accessor","override","abstract","readonly","static"],T=this.tsParseModifiers({modified:s,allowedModifiers:A,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:E.InvalidModifierOnTypeParameterPositions});y=Boolean(T.static);let g=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(s,A))this.raise(this.start,E.StaticBlockCannotHaveModifier);if(this.ecmaVersion>=13)return super.parseClassStaticBlock(s),s}else{let P=this.tsTryParseIndexSignature(s);if(P){if(s.abstract)this.raise(s.start,E.IndexSignatureHasAbstract);if(s.accessibility)this.raise(s.start,E.IndexSignatureHasAccessibility({modifier:s.accessibility}));if(s.declare)this.raise(s.start,E.IndexSignatureHasDeclare);if(s.override)this.raise(s.start,E.IndexSignatureHasOverride);return P}if(!this.inAbstractClass&&s.abstract)this.raise(s.start,E.NonAbstractClassHasAbstractMethod);if(s.override){if(!t)this.raise(s.start,E.OverrideNotInSubClass)}if(s.static=y,y){if(!(this.isClassElementNameStart()||this.type===n.star))l="static"}if(!l&&this.ecmaVersion>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===n.star)&&!this.canInsertSemicolon())_=!0;else l="async";if(!l&&(this.ecmaVersion>=9||!_)&&this.eat(n.star))p=!0;if(!l&&!_&&!p){let O=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())f=O;else l=O}if(l)s.computed=!1,s.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),s.key.name=l,this.finishNode(s.key,"Identifier");else this.parseClassElementName(s);if(this.parsePostMemberNameModifiers(s),this.isClassMethod()||this.ecmaVersion<13||this.type===n.parenL||f!=="method"||p||_){let O=!s.static&&oi(s,"constructor"),M=O&&t;if(O&&f!=="method")this.raise(s.key.start,"Constructor can't have get/set modifier");s.kind=O?"constructor":f,this.parseClassMethod(s,p,_,M)}else this.parseClassField(s);return s}};if(s.declare)this.tsInAmbientContext(g);else g();return s}isClassElementNameStart(){if(this.tsIsIdentifier())return!0;return super.isClassElementNameStart()}parseClassSuper(t){if(super.parseClassSuper(t),t.superClass&&(this.tsMatchLeftRelational()||this.match(n.bitShift)))t.superTypeParameters=this.tsParseTypeArgumentsInExpression();if(this.eatContextual("implements"))t.implements=this.tsParseHeritageClause("implements")}parseFunctionParams(t){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(s)t.typeParameters=s;super.parseFunctionParams(t)}parseVarId(t,s){if(super.parseVarId(t,s),t.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(n.prefix))t.definite=!0;let l=this.tsTryParseTypeAnnotation();if(l)t.id.typeAnnotation=l,this.resetEndLocation(t.id)}parseArrowExpression(t,s,l,p){if(this.match(n.colon))t.returnType=this.tsParseTypeAnnotation();let _=this.yieldPos,f=this.awaitPos,y=this.awaitIdentPos;this.enterScope(Ye(l,!1)|L.SCOPE_ARROW),this.initFunction(t);let A=this.maybeInArrowParameters;if(this.ecmaVersion>=8)t.async=!!l;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,t.params=this.toAssignableList(s,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0,!1,p),this.yieldPos=_,this.awaitPos=f,this.awaitIdentPos=y,this.maybeInArrowParameters=A,this.finishNode(t,"ArrowFunctionExpression")}parseMaybeAssignOrigin(t,s,l){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(t);else this.exprAllowed=!1;let p=!1,_=-1,f=-1,y=-1;if(s)_=s.parenthesizedAssign,f=s.trailingComma,y=s.doubleProto,s.parenthesizedAssign=s.trailingComma=-1;else s=new he,p=!0;let A=this.start,T=this.startLoc;if(this.type===n.parenL||N(this.type))this.potentialArrowAt=this.start,this.potentialArrowInForAwait=t==="await";let g=this.parseMaybeConditional(t,s);if(l)g=l.call(this,g,A,T);if(this.type.isAssign){let P=this.startNodeAt(A,T);if(P.operator=this.value,this.type===n.eq)g=this.toAssignable(g,!0,s);if(!p)s.parenthesizedAssign=s.trailingComma=s.doubleProto=-1;if(s.shorthandAssign>=g.start)s.shorthandAssign=-1;if(!this.maybeInArrowParameters)if(this.type===n.eq)this.checkLValPattern(g);else this.checkLValSimple(g);if(P.left=g,this.next(),P.right=this.parseMaybeAssign(t),y>-1)s.doubleProto=y;return this.finishNode(P,"AssignmentExpression")}else if(p)this.checkExpressionErrors(s,!0);if(_>-1)s.parenthesizedAssign=_;if(f>-1)s.trailingComma=f;return g}parseMaybeAssign(t,s,l){let p,_,f;if(e?.jsx&&(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational())){if(p=this.cloneCurLookaheadState(),_=this.tryParse(()=>this.parseMaybeAssignOrigin(t,s,l),p),!_.error)return _.node;let T=this.context,g=T[T.length-1],P=T[T.length-2];if(g===c.tokContexts.tc_oTag&&P===c.tokContexts.tc_expr)T.pop(),T.pop();else if(g===c.tokContexts.tc_oTag||g===c.tokContexts.tc_expr)T.pop()}if(!_?.error&&!this.tsMatchLeftRelational())return this.parseMaybeAssignOrigin(t,s,l);if(!p||this.compareLookaheadState(p,this.getCurLookaheadState()))p=this.cloneCurLookaheadState();let y,A=this.tryParse((T)=>{y=this.tsParseTypeParameters(this.tsParseConstModifier);let g=this.parseMaybeAssignOrigin(t,s,l);if(g.type!=="ArrowFunctionExpression"||g.extra?.parenthesized)T();if(y?.params.length!==0)this.resetStartLocationFromNode(g,y);return g.typeParameters=y,g},p);if(!A.error&&!A.aborted){if(y)this.reportReservedArrowTypeParam(y);return A.node}if(!_){if(li(!0),f=this.tryParse(()=>this.parseMaybeAssignOrigin(t,s,l),p),!f.error)return f.node}if(_?.node)return this.setLookaheadState(_.failState),_.node;if(A.node){if(this.setLookaheadState(A.failState),y)this.reportReservedArrowTypeParam(y);return A.node}if(f?.node)return this.setLookaheadState(f.failState),f.node;if(_?.thrown)throw _.error;if(A.thrown)throw A.error;if(f?.thrown)throw f.error;throw _?.error||A.error||f?.error}parseAssignableListItem(t){let s=[];while(this.match(m.at))s.push(this.parseDecorator());let l=this.start,p=this.startLoc,_,f=!1,y=!1;if(t!==void 0){let g={};if(this.tsParseModifiers({modified:g,allowedModifiers:["public","private","protected","override","readonly"]}),_=g.accessibility,y=g.override,f=g.readonly,t===!1&&(_||f||y))this.raise(p.column,E.UnexpectedParameterModifier)}let A=this.parseMaybeDefault(l,p);this.parseBindingListItem(A);let T=this.parseMaybeDefault(A.start,A.loc.start,A);if(s.length)T.decorators=s;if(_||f||y){let g=this.startNodeAt(l,p);if(_)g.accessibility=_;if(f)g.readonly=f;if(y)g.override=y;if(T.type!=="Identifier"&&T.type!=="AssignmentPattern")this.raise(g.start,E.UnsupportedParameterPropertyKind);return g.parameter=T,this.finishNode(g,"TSParameterProperty")}return T}checkLValInnerPattern(t,s=L.BIND_NONE,l){switch(t.type){case"TSParameterProperty":this.checkLValInnerPattern(t.parameter,s,l);break;default:{super.checkLValInnerPattern(t,s,l);break}}}parseBindingListItem(t){if(this.eat(n.question)){if(t.type!=="Identifier"&&!this.isAmbientContext&&!this.inType)this.raise(t.start,E.PatternIsOptional);t.optional=!0}let s=this.tsTryParseTypeAnnotation();if(s)t.typeAnnotation=s;return this.resetEndLocation(t),t}isAssignable(t,s){switch(t.type){case"TSTypeCastExpression":return this.isAssignable(t.expression,s);case"TSParameterProperty":return!0;case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let l=t.properties.length-1;return t.properties.every((p,_)=>p.type!=="ObjectMethod"&&(_===l||p.type!=="SpreadElement")&&this.isAssignable(p))}case"Property":case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every((l)=>l===null||this.isAssignable(l));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!s;default:return!1}}toAssignable(t,s=!1,l=new he){switch(t.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(t,s,l);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(s);else this.raise(t.start,E.UnexpectedTypeCastInParameter);return this.toAssignable(t.expression,s,l);case"MemberExpression":break;case"AssignmentExpression":if(!s&&t.left.type==="TSTypeCastExpression")t.left=this.typeCastToParameter(t.left);return super.toAssignable(t,s,l);case"TSTypeCastExpression":return this.typeCastToParameter(t);default:return super.toAssignable(t,s,l)}return t}toAssignableParenthesizedExpression(t,s,l){switch(t.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(t.expression,s,l);default:return super.toAssignable(t,s,l)}}parseBindingAtom(){switch(this.type){case n._this:return this.parseIdent(!0);default:return super.parseBindingAtom()}}shouldParseArrow(t){let s;if(this.match(n.colon))s=t.every((l)=>this.isAssignable(l,!0));else s=!this.canInsertSemicolon();if(s){if(this.match(n.colon)){let l=this.tryParse((p)=>{let _=this.tsParseTypeOrTypePredicateAnnotation(n.colon);if(this.canInsertSemicolon()||!this.match(n.arrow))p();return _});if(l.aborted)return this.shouldParseArrowReturnType=void 0,!1;if(!l.thrown){if(l.error)this.setLookaheadState(l.failState);this.shouldParseArrowReturnType=l.node}}if(!this.match(n.arrow))return this.shouldParseArrowReturnType=void 0,!1;return!0}return this.shouldParseArrowReturnType=void 0,s}parseParenArrowList(t,s,l,p){let _=this.startNodeAt(t,s);return _.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(_,l,!1,p)}parseParenAndDistinguishExpression(t,s){let l=this.start,p=this.startLoc,_,f=this.ecmaVersion>=8;if(this.ecmaVersion>=6){let y=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();let A=this.start,T=this.startLoc,g=[],P=!0,O=!1,M=new he,X=this.yieldPos,J=this.awaitPos,Y;this.yieldPos=0,this.awaitPos=0;while(this.type!==n.parenR)if(P?P=!1:this.expect(n.comma),f&&this.afterTrailingComma(n.parenR,!0)){O=!0;break}else if(this.type===n.ellipsis){if(Y=this.start,g.push(this.parseParenItem(this.parseRestBinding())),this.type===n.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else g.push(this.parseMaybeAssign(s,M,this.parseParenItem));let te=this.lastTokEnd,V=this.lastTokEndLoc;if(this.expect(n.parenR),this.maybeInArrowParameters=y,t&&this.shouldParseArrow(g)&&this.eat(n.arrow))return this.checkPatternErrors(M,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=X,this.awaitPos=J,this.parseParenArrowList(l,p,g,s);if(!g.length||O)this.unexpected(this.lastTokStart);if(Y)this.unexpected(Y);if(this.checkExpressionErrors(M,!0),this.yieldPos=X||this.yieldPos,this.awaitPos=J||this.awaitPos,g.length>1)_=this.startNodeAt(A,T),_.expressions=g,this.finishNodeAt(_,"SequenceExpression",te,V);else _=g[0]}else _=this.parseParenExpression();if(this.options.preserveParens){let y=this.startNodeAt(l,p);return y.expression=_,this.finishNode(y,"ParenthesizedExpression")}else return _}parseTaggedTemplateExpression(t,s,l,p){let _=this.startNodeAt(s,l);if(_.tag=t,_.quasi=this.parseTemplate({isTagged:!0}),p)this.raise(s,"Tagged Template Literals are not allowed in optionalChain.");return this.finishNode(_,"TaggedTemplateExpression")}shouldParseAsyncArrow(){if(this.match(n.colon)){let t=this.tryParse((s)=>{let l=this.tsParseTypeOrTypePredicateAnnotation(n.colon);if(this.canInsertSemicolon()||!this.match(n.arrow))s();return l});if(t.aborted)return this.shouldParseAsyncArrowReturnType=void 0,!1;if(!t.thrown){if(t.error)this.setLookaheadState(t.failState);return this.shouldParseAsyncArrowReturnType=t.node,!this.canInsertSemicolon()&&this.eat(n.arrow)}}else return!this.canInsertSemicolon()&&this.eat(n.arrow)}parseSubscriptAsyncArrow(t,s,l,p){let _=this.startNodeAt(t,s);return _.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(_,l,!0,p)}parseExprList(t,s,l,p){let _=[],f=!0;while(!this.eat(t)){if(!f){if(this.expect(n.comma),s&&this.afterTrailingComma(t))break}else f=!1;let y;if(l&&this.type===n.comma)y=null;else if(this.type===n.ellipsis){if(y=this.parseSpread(p),this.maybeInArrowParameters&&this.match(n.colon))y.typeAnnotation=this.tsParseTypeAnnotation();if(p&&this.type===n.comma&&p.trailingComma<0)p.trailingComma=this.start}else y=this.parseMaybeAssign(!1,p,this.parseParenItem);_.push(y)}return _}parseSubscript(t,s,l,p,_,f,y){let A=f;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(n.prefix)){this.exprAllowed=!1,this.next();let M=this.startNodeAt(s,l);return M.expression=t,t=this.finishNode(M,"TSNonNullExpression"),t}let T=!1;if(this.match(n.questionDot)&&this.lookaheadCharCode()===60){if(p)return t;t.optional=!0,A=T=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(n.bitShift)){let M,X=this.tsTryParseAndCatch(()=>{if(!p&&this.atPossibleAsyncArrow(t)){let V=this.tsTryParseGenericAsyncArrowFunction(s,l,y);if(V)return t=V,t}let J=this.tsParseTypeArgumentsInExpression();if(!J)return t;if(T&&!this.match(n.parenL))return M=this.curPosition(),t;if(D(this.type)||this.type===n.backQuote){let V=this.parseTaggedTemplateExpression(t,s,l,A);return V.typeArguments=J,V}if(!p&&this.eat(n.parenL)){let V=new he,z=this.startNodeAt(s,l);if(z.callee=t,z.arguments=this.parseExprList(n.parenR,this.ecmaVersion>=8,!1,V),this.tsCheckForInvalidTypeCasts(z.arguments),z.typeArguments=J,A)z.optional=T;return this.checkExpressionErrors(V,!0),t=this.finishNode(z,"CallExpression"),t}let Y=this.type;if(this.tsMatchRightRelational()||Y===n.bitShift||Y!==n.parenL&&bn(Y)&&!this.hasPrecedingLineBreak())return;let te=this.startNodeAt(s,l);return te.expression=t,te.typeArguments=J,this.finishNode(te,"TSInstantiationExpression")});if(M)this.unexpected(M);if(X){if(X.type==="TSInstantiationExpression"&&(this.match(n.dot)||this.match(n.questionDot)&&this.lookaheadCharCode()!==40))this.raise(this.start,E.InvalidPropertyAccessAfterInstantiationExpression);return t=X,t}}let g=this.ecmaVersion>=11,P=g&&this.eat(n.questionDot);if(p&&P)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");let O=this.eat(n.bracketL);if(O||P&&this.type!==n.parenL&&this.type!==n.backQuote||this.eat(n.dot)){let M=this.startNodeAt(s,l);if(M.object=t,O)M.property=this.parseExpression(),this.expect(n.bracketR);else if(this.type===n.privateId&&t.type!=="Super")M.property=this.parsePrivateIdent();else M.property=this.parseIdent(this.options.allowReserved!=="never");if(M.computed=!!O,g)M.optional=P;t=this.finishNode(M,"MemberExpression")}else if(!p&&this.eat(n.parenL)){let M=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let X=new he,J=this.yieldPos,Y=this.awaitPos,te=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;let V=this.parseExprList(n.parenR,this.ecmaVersion>=8,!1,X);if(_&&!P&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(X,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");this.yieldPos=J,this.awaitPos=Y,this.awaitIdentPos=te,t=this.parseSubscriptAsyncArrow(s,l,V,y)}else{this.checkExpressionErrors(X,!0),this.yieldPos=J||this.yieldPos,this.awaitPos=Y||this.awaitPos,this.awaitIdentPos=te||this.awaitIdentPos;let z=this.startNodeAt(s,l);if(z.callee=t,z.arguments=V,g)z.optional=P;t=this.finishNode(z,"CallExpression")}this.maybeInArrowParameters=M}else if(this.type===n.backQuote){if(P||A)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");let M=this.startNodeAt(s,l);M.tag=t,M.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(M,"TaggedTemplateExpression")}return t}parseGetterSetter(t){t.kind=t.key.name,this.parsePropertyName(t);let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(t.value=this.parseMethod(!1),s)t.value.typeParameters=s;let l=t.kind==="get"?0:1,p=t.value.params[0];if(l=p&&this.isThisParam(p)?l+1:l,t.value.params.length!==l){let f=t.value.start;if(t.kind==="get")this.raiseRecoverable(f,"getter should have no params");else this.raiseRecoverable(f,"setter should have exactly one param")}else if(t.kind==="set"&&t.value.params[0].type==="RestElement")this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")}parsePropertyValue(t,s,l,p,_,f,y,A){if(this.tsMatchLeftRelational()){if(s)this.unexpected();t.kind="init",t.method=!0;let T=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(t.value=this.parseMethod(l,p),T)t.value.typeParameters=T;return}return super.parsePropertyValue(t,s,l,p,_,f,y,A)}parseProperty(t,s){if(!t){let l=[];if(this.match(m.at))while(this.match(m.at))l.push(this.parseDecorator());let p=super.parseProperty(t,s);if(p.type==="SpreadElement"){if(l.length)this.raise(p.start,Ee.SpreadElementDecorator)}if(l.length)p.decorators=l,l=[];return p}return super.parseProperty(t,s)}parseCatchClauseParam(){let t=this.parseBindingAtom(),s=t.type==="Identifier";this.enterScope(s?L.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(t,s?L.BIND_SIMPLE_CATCH:L.BIND_LEXICAL);let l=this.tsTryParseTypeAnnotation();if(l)t.typeAnnotation=l,this.resetEndLocation(t);return this.expect(n.parenR),t}parseClass(t,s){let l=this.inAbstractClass;this.inAbstractClass=!!t.abstract;try{this.next(),this.takeDecorators(t);let p=this.strict;this.strict=!0,this.parseClassId(t,s),this.parseClassSuper(t);let _=this.enterClassBody(),f=this.startNode(),y=!1;f.body=[];let A=[];this.expect(n.braceL);while(this.type!==n.braceR){if(this.match(m.at)){A.push(this.parseDecorator());continue}let T=this.parseClassElement(t.superClass!==null);if(A.length)T.decorators=A,this.resetStartLocationFromNode(T,A[0]),A=[];if(T){if(f.body.push(T),T.type==="MethodDefinition"&&T.kind==="constructor"&&T.value.type==="FunctionExpression"){if(y)this.raiseRecoverable(T.start,"Duplicate constructor in the same class");if(y=!0,T.decorators&&T.decorators.length>0)this.raise(T.start,Ee.DecoratorConstructor)}else if(T.key&&T.key.type==="PrivateIdentifier"&&T.value?.type!=="TSDeclareMethod"&&pn(_,T))this.raiseRecoverable(T.key.start,`Identifier '#${T.key.name}' has already been declared`)}}if(this.strict=p,this.next(),A.length)this.raise(this.start,Ee.TrailingDecorator);return t.body=this.finishNode(f,"ClassBody"),this.exitClassBody(),this.finishNode(t,s?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=l}}parseClassFunctionParams(){let t=this.tsTryParseTypeParameters(),s=this.parseBindingList(n.parenR,!1,this.ecmaVersion>=8,!0);if(t)s.typeParameters=t;return s}parseMethod(t,s,l,p,_){let f=this.startNode(),y=this.yieldPos,A=this.awaitPos,T=this.awaitIdentPos;if(this.initFunction(f),this.ecmaVersion>=6)f.generator=t;if(this.ecmaVersion>=8)f.async=!!s;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ye(s,f.generator)|L.SCOPE_SUPER|(l?L.SCOPE_DIRECT_SUPER:0)),this.expect(n.parenL),f.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(f,!1,!0,!1,{isClassMethod:p}),this.yieldPos=y,this.awaitPos=A,this.awaitIdentPos=T,_&&_.abstract){if(!!f.body){let{key:P}=_;this.raise(_.start,E.AbstractMethodHasImplementation({methodName:P.type==="Identifier"&&!_.computed?P.name:`[${this.input.slice(P.start,P.end)}]`}))}}return this.finishNode(f,"FunctionExpression")}static parse(t,s){if(s.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else s.locations=!0;let l=new this(s,t);if(a)l.isAmbientContext=!0;return l.parse()}static parseExpressionAt(t,s,l){if(l.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else l.locations=!0;let p=new this(l,t,s);if(a)p.isAmbientContext=!0;return p.nextToken(),p.parseExpression()}parseImportSpecifier(){if(this.ts_isContextual(m.type)){let s=this.startNode();return s.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(s,!0,this.importOrExportOuterKind==="type"),this.finishNode(s,"ImportSpecifier")}else{let s=super.parseImportSpecifier();return s.importKind="value",s}}parseExportSpecifier(t){let s=this.ts_isContextual(m.type);if(!this.match(n.string)&&s){let p=this.startNode();return p.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(p,!1,this.importOrExportOuterKind==="type"),this.finishNode(p,"ExportSpecifier"),this.checkExport(t,p.exported,p.exported.start),p}else{let p=super.parseExportSpecifier(t);return p.exportKind="value",p}}parseTypeOnlyImportExportSpecifier(t,s,l){let p=s?"imported":"local",_=s?"local":"exported",f=t[p],y,A=!1,T=!0,g=f.start;if(this.isContextual("as")){let O=this.parseIdent();if(this.isContextual("as")){let M=this.parseIdent();if(j(this.type))A=!0,f=O,y=s?this.parseIdent():this.parseModuleExportName(),T=!1;else y=M,T=!1}else if(j(this.type))T=!1,y=s?this.parseIdent():this.parseModuleExportName();else A=!0,f=O}else if(j(this.type))if(A=!0,s){if(f=super.parseIdent(!0),!this.isContextual("as"))this.checkUnreserved(f)}else f=this.parseModuleExportName();if(A&&l)this.raise(g,s?E.TypeModifierIsUsedInTypeImports:E.TypeModifierIsUsedInTypeExports);t[p]=f,t[_]=y;let P=s?"importKind":"exportKind";if(t[P]=A?"type":"value",T&&this.eatContextual("as"))t[_]=s?this.parseIdent():this.parseModuleExportName();if(!t[_])t[_]=this.copyNode(t[p]);if(s)this.checkLValSimple(t[_],L.BIND_LEXICAL)}raiseCommonCheck(t,s,l){switch(s){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(t,s)}return l?super.raiseRecoverable(t,s):super.raise(t,s)}raiseRecoverable(t,s){return this.raiseCommonCheck(t,s,!0)}raise(t,s){return this.raiseCommonCheck(t,s,!0)}updateContext(t){let{type:s}=this;if(s==n.braceL){var l=this.curContext();if(l==w.tc_oTag)this.context.push(b.b_expr);else if(l==w.tc_expr)this.context.push(b.b_tmpl);else super.updateContext(t);this.exprAllowed=!0}else if(s===n.slash&&t===m.jsxTagStart)this.context.length-=2,this.context.push(w.tc_cTag),this.exprAllowed=!1;else return super.updateContext(t)}jsx_parseOpeningElementAt(t,s){let l=this.startNodeAt(t,s),p=this.jsx_parseElementName();if(p)l.name=p;if(this.match(n.relational)||this.match(n.bitShift)){let _=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(_)l.typeArguments=_}l.attributes=[];while(this.type!==n.slash&&this.type!==m.jsxTagEnd)l.attributes.push(this.jsx_parseAttribute());return l.selfClosing=this.eat(n.slash),this.expect(m.jsxTagEnd),this.finishNode(l,p?"JSXOpeningElement":"JSXOpeningFragment")}enterScope(t){if(t===de)this.importsStack.push([]);super.enterScope(t);let s=super.currentScope();s.types=[],s.enums=[],s.constEnums=[],s.classes=[],s.exportOnlyBindings=[]}exitScope(){if(super.currentScope().flags===de)this.importsStack.pop();super.exitScope()}hasImport(t,s){let l=this.importsStack.length;if(this.importsStack[l-1].indexOf(t)>-1)return!0;if(!s&&l>1){for(let p=0;p<l-1;p++)if(this.importsStack[p].indexOf(t)>-1)return!0}return!1}maybeExportDefined(t,s){if(this.inModule&&t.flags&L.SCOPE_TOP)delete this.undefinedExports[s]}declareName(t,s,l){if(s&L.BIND_FLAGS_TS_IMPORT){if(this.hasImport(t,!0))this.raise(l,`Identifier '${t}' has already been declared.`);this.importsStack[this.importsStack.length-1].push(t);return}let p=this.currentScope();if(s&L.BIND_FLAGS_TS_EXPORT_ONLY){this.maybeExportDefined(p,t),p.exportOnlyBindings.push(t);return}if(s===L.BIND_TS_TYPE||s===L.BIND_TS_INTERFACE){if(s===L.BIND_TS_TYPE&&p.types.includes(t))this.raise(l,`type '${t}' has already been declared.`);p.types.push(t)}else super.declareName(t,s,l);if(s&L.BIND_FLAGS_TS_ENUM)p.enums.push(t);if(s&L.BIND_FLAGS_TS_CONST_ENUM)p.constEnums.push(t);if(s&L.BIND_FLAGS_CLASS)p.classes.push(t)}checkLocalExport(t){let{name:s}=t;if(this.hasImport(s))return;let l=this.scopeStack.length;for(let p=l-1;p>=0;p--){let _=this.scopeStack[p];if(_.types.indexOf(s)>-1||_.exportOnlyBindings.indexOf(s)>-1)return}super.checkLocalExport(t)}}return Ot}}class vi extends Error{message="";#e;constructor(e,a,r){super(a);this.stack="",this.#e=new ce(e,a,r),Object.assign(this,this.#e),this.name="CompileError"}toString(){return this.#e.toString()}toJSON(){return this.#e.toJSON()}}function S(e,a,r){let i=typeof e==="number"?e:e?.start,o=typeof e==="number"?e:e?.end;throw new vi(a,r,i!==void 0?[i,o??i]:void 0)}function gi(e){S(e,"css_empty_declaration",`Declaration cannot be empty
13
+ https://svelte.dev/e/css_empty_declaration`)}function et(e){S(e,"css_expected_identifier",`Expected a valid CSS identifier
14
+ https://svelte.dev/e/css_expected_identifier`)}function bi(e){S(e,"css_selector_invalid",`Invalid selector
15
+ https://svelte.dev/e/css_selector_invalid`)}function Ti(e){S(e,"attribute_duplicate",`Attributes need to be unique
16
+ https://svelte.dev/e/attribute_duplicate`)}function wi(e){S(e,"attribute_empty_shorthand",`Attribute shorthand cannot be empty
17
+ https://svelte.dev/e/attribute_empty_shorthand`)}function tt(e,a){S(e,"block_duplicate_clause",`${a} cannot appear more than once within a block
18
+ https://svelte.dev/e/block_duplicate_clause`)}function Ai(e){S(e,"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 Ei(e){S(e,"block_invalid_elseif",`'elseif' should be 'else if'
20
+ https://svelte.dev/e/block_invalid_elseif`)}function Si(e,a,r){S(e,"block_invalid_placement",`{#${a} ...} block cannot be ${r}
21
+ https://svelte.dev/e/block_invalid_placement`)}function ki(e){S(e,"block_unclosed",`Block was left open
22
+ https://svelte.dev/e/block_unclosed`)}function it(e){S(e,"block_unexpected_close",`Unexpected block closing tag
23
+ https://svelte.dev/e/block_unexpected_close`)}function Pi(e){S(e,"const_tag_invalid_expression",`{@const ...} must consist of a single variable declaration
24
+ https://svelte.dev/e/const_tag_invalid_expression`)}function Ci(e){S(e,"debug_tag_invalid_arguments",`{@debug ...} arguments must be identifiers, not arbitrary expressions
25
+ https://svelte.dev/e/debug_tag_invalid_arguments`)}function ke(e){S(e,"declaration_tag_invalid_type","Declaration tags must be `let` or `const` declarations\nhttps://svelte.dev/e/declaration_tag_invalid_type")}function Ii(e){S(e,"directive_invalid_value",`Directive value must be a JavaScript expression enclosed in curly braces
26
+ https://svelte.dev/e/directive_invalid_value`)}function Ni(e,a){S(e,"directive_missing_name",`\`${a}\` name cannot be empty
27
+ https://svelte.dev/e/directive_missing_name`)}function Li(e,a){S(e,"element_invalid_closing_tag",`\`</${a}>\` attempted to close an element that was not open
28
+ https://svelte.dev/e/element_invalid_closing_tag`)}function Di(e,a,r){S(e,"element_invalid_closing_tag_autoclosed",`\`</${a}>\` attempted to close element that was already automatically closed by \`<${r}>\` (cannot nest \`<${r}>\` inside \`<${a}>\`)
29
+ https://svelte.dev/e/element_invalid_closing_tag_autoclosed`)}function Pe(e,a){S(e,"element_unclosed",`\`<${a}>\` was left open
30
+ https://svelte.dev/e/element_unclosed`)}function st(e){S(e,"expected_attribute_value",`Expected attribute value
31
+ https://svelte.dev/e/expected_attribute_value`)}function Mi(e){S(e,"expected_block_type",`Expected 'if', 'each', 'await', 'key' or 'snippet'
32
+ https://svelte.dev/e/expected_block_type`)}function nt(e){S(e,"expected_identifier",`Expected an identifier
33
+ https://svelte.dev/e/expected_identifier`)}function Oi(e){S(e,"expected_pattern",`Expected identifier or destructure pattern
34
+ https://svelte.dev/e/expected_pattern`)}function Ri(e){S(e,"expected_tag",`Expected 'html', 'render', 'attach', 'const', or 'debug'
35
+ https://svelte.dev/e/expected_tag`)}function G(e,a){S(e,"expected_token",`Expected token ${a}
36
+ https://svelte.dev/e/expected_token`)}function qi(e){S(e,"expected_whitespace",`Expected whitespace
37
+ https://svelte.dev/e/expected_whitespace`)}function $i(e,a){S(e,"js_parse_error",`${a}
38
+ https://svelte.dev/e/js_parse_error`)}function Bi(e){S(e,"render_tag_invalid_expression","`{@render ...}` tags can only contain call expressions\nhttps://svelte.dev/e/render_tag_invalid_expression")}function at(e){S(e,"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 Fi(e,a){S(e,"script_invalid_attribute_value",`If the \`${a}\` attribute is supplied, it must be a boolean attribute
39
+ https://svelte.dev/e/script_invalid_attribute_value`)}function rt(e){S(e,"script_invalid_context",`If the context attribute is supplied, its value must be "module"
40
+ https://svelte.dev/e/script_invalid_context`)}function Ui(e,a){S(e,"script_reserved_attribute",`The \`${a}\` attribute is reserved and cannot be used
41
+ https://svelte.dev/e/script_reserved_attribute`)}function ji(e){S(e,"style_duplicate","A component can have a single top-level `<style>` element\nhttps://svelte.dev/e/style_duplicate")}function Vi(e){S(e,"svelte_component_invalid_this","Invalid component definition — must be an `{expression}`\nhttps://svelte.dev/e/svelte_component_invalid_this")}function Hi(e){S(e,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute\nhttps://svelte.dev/e/svelte_component_missing_this")}function ot(e){S(e,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value\nhttps://svelte.dev/e/svelte_element_missing_this")}function Gi(e,a){S(e,"svelte_meta_duplicate",`A component can only have one \`<${a}>\` element
42
+ https://svelte.dev/e/svelte_meta_duplicate`)}function zi(e,a){S(e,"svelte_meta_invalid_content",`<${a}> cannot have children
43
+ https://svelte.dev/e/svelte_meta_invalid_content`)}function Ki(e,a){S(e,"svelte_meta_invalid_placement",`\`<${a}>\` tags cannot be inside elements or blocks
44
+ https://svelte.dev/e/svelte_meta_invalid_placement`)}function Wi(e,a){S(e,"svelte_meta_invalid_tag",`Valid \`<svelte:...>\` tag names are ${a}
45
+ https://svelte.dev/e/svelte_meta_invalid_tag`)}function Xi(e){S(e,"svelte_options_deprecated_tag",`"tag" option is deprecated — use "customElement" instead
46
+ https://svelte.dev/e/svelte_options_deprecated_tag`)}function Ji(e){S(e,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes\nhttps://svelte.dev/e/svelte_options_invalid_attribute")}function Ce(e,a){S(e,"svelte_options_invalid_attribute_value",`Value must be ${a}, if specified
47
+ https://svelte.dev/e/svelte_options_invalid_attribute_value`)}function Ie(e){S(e,"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 ie(e){S(e,"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 Yi(e){S(e,"svelte_options_invalid_customelement_shadow",'"shadow" must be either "open", "none" or `ShadowRootInit` object.\nhttps://svelte.dev/e/svelte_options_invalid_customelement_shadow')}function lt(e){S(e,"svelte_options_invalid_tagname",`Tag name must be lowercase and hyphenated
49
+ https://svelte.dev/e/svelte_options_invalid_tagname`)}function Zi(e){S(e,"svelte_options_reserved_tagname",`Tag name is reserved
50
+ https://svelte.dev/e/svelte_options_reserved_tagname`)}function Qi(e,a){S(e,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${a}'
51
+ https://svelte.dev/e/svelte_options_unknown_attribute`)}function es(e){S(e,"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 ts(e,a,r){S(e,"tag_invalid_placement",`{@${a} ...} tag cannot be ${r}
53
+ https://svelte.dev/e/tag_invalid_placement`)}function U(e){S(e,"unexpected_eof",`Unexpected end of input
54
+ https://svelte.dev/e/unexpected_eof`)}function is(e,a){S(e,"unexpected_reserved_word",`'${a}' is a reserved word in JavaScript and cannot be used here
55
+ https://svelte.dev/e/unexpected_reserved_word`)}function ss(e){S(e,"unterminated_string_constant",`Unterminated string constant
56
+ https://svelte.dev/e/unterminated_string_constant`)}function ns(e){S(e,"void_element_invalid_content",`Void elements cannot have children or closing tags
57
+ https://svelte.dev/e/void_element_invalid_content`)}var Ne=as,ct=Ne.extend(xi());function rs(e,a,r,i){let o=r?ct:Ne,{onComment:c,add_comments:n}=ut(e,a),u=o.prototype.parseStatement;if(i)o.prototype.parseStatement=function(...h){let v=u.call(this,...h);return this.undefinedExports={},v};try{let h=o.parse(e,{onComment:c,sourceType:"module",ecmaVersion:16,locations:!0});return n(h),h}catch(h){return pt(h)}finally{if(i)o.prototype.parseStatement=u}}function se(e,a,r){let i=e.ts?ct:Ne,{onComment:o,add_comments:c}=ut(a,e.root.comments,r);try{let n=i.parseExpressionAt(a,r,{onComment:o,sourceType:"module",ecmaVersion:16,locations:!0,preserveParens:!0});return c(n),n}catch(n){pt(n)}}function os(e,a,r){let i=e.ts?ct:Ne,{onComment:o,add_comments:c}=ut(a,e.root.comments,r);try{let n=new i({onComment:o,sourceType:"module",ecmaVersion:16,locations:!0},a,r);n.nextToken();let u=n.parseStatement(null,!0,Object.create(null));return c(u),u}catch(n){if(n.pos===a.length)U(a.length);pt(n)}}var An=/ \(\d+:\d+\)$/;function pt(e){$i(e.pos,e.message.replace(An,""))}function oe(e){return Q(e,null,{ParenthesizedExpression(a,r){return r.visit(a.expression)}})}function ut(e,a,r=0){return{onComment:(i,o,c,n,u,h)=>{if(i&&/\n/.test(o)){let v=c;while(v>0&&e[v-1]!==`
58
+ `)v-=1;let d=v;while(/[ \t]/.test(e[d]))d+=1;let b=e.slice(v,d);o=o.replace(new RegExp(`^${b}`,"gm"),"")}a.push({type:i?"Block":"Line",value:o,start:c,end:n,loc:{start:u,end:h}})},add_comments(i){if(a.length===0)return;if(a=a.filter((o)=>o.start>=r).map(({type:o,value:c,start:n,end:u})=>({type:o,value:c,start:n,end:u})),Q(i,null,{_(o,{next:c,path:n}){let u;while(a[0]&&a[0].start<o.start)u=a.shift(),(o.leadingComments||=[]).push(u);if(c(),a[0]){let h=n.at(-1);if(h===void 0||o.end!==h.end){let v=e.slice(o.end,a[0].start);if((h?.type==="BlockStatement"||h?.type==="Program")&&h.body.indexOf(o)===h.body.length-1||h?.type==="ArrayExpression"&&h.elements.indexOf(o)===h.elements.length-1||h?.type==="ObjectExpression"&&h.properties.indexOf(o)===h.properties.length-1){let b=o.end;while(a.length){let x=a[0];if(h&&x.start>=h.end)break;(o.trailingComments||=[]).push(x),a.shift(),b=x.end}}else if(o.end<=a[0].start&&/^[,) \t]*$/.test(v))o.trailingComments=[a.shift()]}}}}),a.length>0&&(a[0].start>=i.end||i.type==="Program"))(i.trailingComments||=[]).push(...a.splice(0))}}}function dt(e){if(e<0)return 1/0;return e}function Sn(e,a,r){let i;if(r==="`")i=e;else i=e.slice(0,dt(e.indexOf(`
59
+ `,a)));return ht(i,a,r)}function kn(e,a){let r=ht(e,a,"/"),i=ht(e,a,`
60
+ `);return r<i?r:1/0}function ht(e,a,r){let i=a;while(!0){let o=e.indexOf(r,i);if(o===-1)return 1/0;if(Pn(e,o-1)%2===0)return o;i=o+1}}function Pn(e,a){let r=a,i=0;while(e[r]==="\\")i++,r--;return i}function De(e,a,r){let i=Le[r],o=1,c=a;while(o>0&&c<e.length){let n=e[c];switch(n){case"'":case'"':case"`":c=Sn(e,c+1,n)+1;continue;case"/":{let u=e[c+1];if(!u){c++;continue}if(u==="/"){c=dt(e.indexOf(`
61
+ `,c+1))+1;continue}if(u==="*"){c=dt(e.indexOf("*/",c+1))+2;continue}let h=kn(e,c+1)+1;if(h===1/0)c++;else c=h;continue}default:{let u=e[c];if(u===r)o++;else if(u===i)o--;if(o===0)return c;c++}}}return}var Le={"{":"}","(":")","[":"]"},Cn=new Set(Object.values(Le));function me(e,a,r=Le){let i=r===Le?Cn:new Set(Object.values(r)),o=[],c=a;while(c<e.template.length){let n=e.template[c++];if(n==="'"||n==='"'||n==="`"){c=In(e,c,n);continue}if(n in r)o.push(n);else if(i.has(n)){let u=o.pop(),h=r[u];if(n!==h)G(c-1,h);if(o.length===0)return c}}U(e.template.length)}function In(e,a,r){let i=!1,o=a;while(o<e.template.length){let c=e.template[o++];if(i){i=!1;continue}if(c===r)return o;if(c==="\\")i=!0;if(r==="`"&&c==="$"&&e.template[o]==="{")o=me(e,o)}ss(a)}function _t(e,a){let r=De(e.template,e.index,a??"{");if(r){let i=e.index;return e.index=r,{type:"Identifier",start:i,end:r,name:""}}}function F(e,a,r){try{let i=se(e,e.template,e.index),o=i.end,c=e.root.comments.at(-1);if(c&&c.end>o)o=c.end;return e.index=o,oe(i)}catch(i){if(e.loose&&!r){let o=_t(e,a);if(o)return o}throw i}}function mt(e=[]){return{type:"ArrayExpression",elements:e}}function Nn(e,a){return{type:"UnaryExpression",argument:a,operator:e,prefix:!0}}var Cr=Nn("void",fe(0));function fe(e){return{type:"Literal",value:e}}var Ln=fe(!0),Ir=fe(!1),Nr=fe(null);function ls(e){return Array.isArray(e.value)&&e.value.length===1&&e.value[0].type==="Text"}function yt(e){return e.value!==!0&&!Array.isArray(e.value)||Array.isArray(e.value)&&e.value.length===1&&e.value[0].type==="ExpressionTag"}function xt(e){return Array.isArray(e.value)?e.value[0].expression:e.value.expression}var Dn=/<\/script\s*>/,Mn=/<\/script\s*>/y,On=["server","client","worker","test","default"],Rn=["context","generics","lang","module"];function cs(e,a,r){let i=e.index,o=e.read_until(Dn);if(e.index>=e.template.length)Pe(e.template.length,"script");let c=e.template.slice(0,i).replace(ve," ")+o;e.read(Mn);let n=rs(c,e.root.comments,e.ts,!0);if(n.start=i,n.loc)({line:n.loc.start.line,column:n.loc.start.column}=B(a)),{line:n.loc.end.line,column:n.loc.end.column}=B(e.index);let u="default";for(let h of r){if(On.includes(h.name))Ui(h,h.name);if(!Rn.includes(h.name))ti(h);if(h.name==="module"){if(h.value!==!0)Fi(h,h.name);u="module"}if(h.name==="context"){if(h.value===!0||!ls(h))rt(h);if(h.value[0].data!=="module")rt(h);u="module"}}return{type:"Script",start:a,end:e.index,context:u,content:n,attributes:r}}var qn=/[~^$*|]?=/y,$n=/[\s\]]/,Bn=/[a-zA-Z]+/y,ds=/(\+|~|>|\|\|)/y,ps=/\d+(\.\d+)?%/y,us=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/y,Fn=/[\s:]/,Un=/-?\d/y,jn=/[a-zA-Z0-9_-]/,Vn=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y,Hn=/\*\//,Gn=/-->/;function gt(e,a,r){let i=e.index;e.css_comments=[];let o=zn(e,(n)=>n.match("</style")||n.index>=n.template.length),c=e.index;return e.eat("</style",!0),e.read(/\s*>/y),{type:"StyleSheet",start:a,end:e.index,attributes:r,children:o,comments:e.css_comments,content:{start:i,end:c,styles:e.template.slice(i,c),comment:null}}}function zn(e,a){let r=[];while(le(e),!a(e))if(e.match("@"))r.push(hs(e));else r.push(_s(e));return r}function hs(e){let a=e.index;e.eat("@",!0);let r=ee(e),i=bt(e),o=null;if(e.match("{"))o=ms(e);else e.eat(";",!0);return{type:"Atrule",start:a,end:e.index,name:r,prelude:i,block:o}}function _s(e){let a=e.index;return{type:"Rule",prelude:vt(e),block:ms(e),start:a,end:e.index,metadata:{parent_rule:null,has_local_selectors:!1,has_global_selectors:!1,is_global_block:!1}}}function vt(e,a=!1){let r=[];le(e);let i=e.index;while(e.index<e.template.length){r.push(Kn(e,a));let o=e.index;if(le(e),a?e.match(")"):e.match("{"))return{type:"SelectorList",start:i,end:o,children:r};else e.eat(",",!0),le(e)}U(e.template.length)}function Kn(e,a=!1){let r=e.index,i=[];function o(n,u){return{type:"RelativeSelector",combinator:n,selectors:[],start:u,end:-1,metadata:{is_global:!1,is_global_like:!1,scoped:!1}}}let c=o(null,e.index);while(e.index<e.template.length){let n=e.index;if(e.eat("&"))c.selectors.push({type:"NestingSelector",name:"&",start:n,end:e.index});else if(e.eat("*")){let v="*";if(e.eat("|"))v=ee(e);c.selectors.push({type:"TypeSelector",name:v,start:n,end:e.index})}else if(e.eat("#"))c.selectors.push({type:"IdSelector",name:ee(e),start:n,end:e.index});else if(e.eat("."))c.selectors.push({type:"ClassSelector",name:ee(e),start:n,end:e.index});else if(e.eat("::")){let v=ee(e),d=null;if(e.eat("("))d=vt(e,!0),e.eat(")",!0);c.selectors.push({type:"PseudoElementSelector",name:v,start:n,end:e.index,...d&&{args:d}})}else if(e.eat(":")){let v=ee(e),d=null;if(e.eat("("))d=vt(e,!0),e.eat(")",!0);c.selectors.push({type:"PseudoClassSelector",name:v,args:d,start:n,end:e.index})}else if(e.eat("[")){e.allow_whitespace();let v=ee(e);e.allow_whitespace();let d=null,b=e.read(qn);if(b)e.allow_whitespace(),d=Yn(e);e.allow_whitespace();let x=e.read(Bn);e.allow_whitespace(),e.eat("]",!0),c.selectors.push({type:"AttributeSelector",start:n,end:e.index,name:v,matcher:b,value:d,flags:x})}else if(a&&e.match_regex(us))c.selectors.push({type:"Nth",value:e.read(us),start:n,end:e.index});else if(e.match_regex(ps))c.selectors.push({type:"Percentage",value:e.read(ps),start:n,end:e.index});else if(!e.match_regex(ds)){let v=ee(e);if(e.eat("|"))v=ee(e);c.selectors.push({type:"TypeSelector",name:v,start:n,end:e.index})}let u=e.index;if(le(e,!1),e.match(",")||(a?e.match(")"):e.match("{")))return e.index=u,c.end=u,i.push(c),{type:"ComplexSelector",start:r,end:u,children:i,metadata:{rule:null,is_global:!1,used:!1}};e.index=u;let h=Wn(e);if(h){if(c.selectors.length>0)c.end=u,i.push(c);if(c=o(h,h.start),e.allow_whitespace(),e.match(",")||(a?e.match(")"):e.match("{")))bi(e.index)}}U(e.template.length)}function Wn(e){let a=e.index;e.allow_whitespace();let r=e.index,i=e.read(ds);if(i){let o=e.index;return e.allow_whitespace(),{type:"Combinator",name:i,start:r,end:o}}if(e.index!==a)return{type:"Combinator",name:" ",start:a,end:e.index};return null}function ms(e){let a=e.index;e.eat("{",!0);let r=[];while(e.index<e.template.length)if(le(e),e.match("}"))break;else r.push(Xn(e));return e.eat("}",!0),{type:"Block",start:a,end:e.index,children:r}}function Xn(e){if(e.match("@"))return hs(e);let a=e.index;bt(e,!1);let r=e.template[e.index];return e.index=a,r==="{"?_s(e):Jn(e)}function Jn(e){let a=e.index,r=e.read_until(Fn);e.allow_whitespace(),e.eat(":");let i=e.index;e.allow_whitespace();let o=bt(e);if(!o&&!r.startsWith("--"))gi({start:a,end:i});let c=e.index;if(!e.match("}"))e.eat(";",!0);return{type:"Declaration",start:a,end:c,property:r,value:o}}function bt(e,a=!0){let r="",i=[],o=!1,c=!1,n=null;while(e.index<e.template.length){let u=e.template[e.index];if(o){r+="\\"+u,o=!1,e.index++;continue}else if(u==="\\"){o=!0,e.index++;continue}else if(u===n)n=null;else if(u===")")c=!1;else if(n===null&&(u==='"'||u==="'"))n=u;else if(u==="("&&r.slice(-3)==="url")c=!0;else if((u===";"||u==="{"||u==="}")&&!c&&!n){let h=r.length-r.trimStart().length;for(let v of i)v.position=Math.max(0,v.position-h);return r.trim()}else if(u==="/"&&!c&&!n&&e.template[e.index+1]==="*"){let h=fs(e);if(a)h.position=r.length,e.css_comments.push(h),i.push(h);continue}r+=u,e.index++}U(e.template.length)}function Yn(e){let a="",r=!1,i=e.eat('"')?'"':e.eat("'")?"'":null;while(e.index<e.template.length){let o=e.template[e.index];if(r)a+="\\"+o,r=!1;else if(o==="\\")r=!0;else if(i?o===i:$n.test(o)){if(i)e.eat(i,!0);return a.trim()}else a+=o;e.index++}U(e.template.length)}function ee(e){let a=e.index,r="";if(e.match_regex(Un))et(a);while(e.index<e.template.length){let i=e.template[e.index];if(i==="\\"){let o=e.match_regex(Vn);if(o)r+=String.fromCodePoint(parseInt(o.slice(1),16)),e.index+=o.length;else r+="\\"+e.template[e.index+1],e.index+=2}else if(i.codePointAt(0)>=160||jn.test(i))r+=i,e.index++;else break}if(r==="")et(a);return r}function le(e,a=!0){e.allow_whitespace();while(e.match("/*")||e.match("<!--")){if(e.match("/*")){let r=fs(e);if(a)e.css_comments.push(r)}if(e.eat("<!--"))e.read_until(Gn),e.eat("-->",!0);e.allow_whitespace()}}function fs(e){let a=e.index;e.eat("/*",!0);let r=e.read_until(Hn);e.eat("*/",!0);let i=e.index;return{type:"CSSComment",value:r,start:a,end:i}}var Tt={"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 Zn=[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 Qn(e,a){if(a&&!e.endsWith(";"))return`${e}\\b(?!=)`;return e}function xs(e){let r=Object.keys(Tt).map((o)=>Qn(o,e));return new RegExp(`&(#(?:x[a-fA-F\\d]+|\\d+)(?:;)?|${r.join("|")})`,"g")}var ea=xs(!1),ta=xs(!0);function ye(e,a){let r=a?ta:ea;return e.replace(r,(i,o)=>{let c;if(o[0]!=="#")c=Tt[o];else if(o[1]==="x")c=parseInt(o.substring(2),16);else c=parseInt(o.substring(1),10);if(!c)return i;return String.fromCodePoint(ia(c))})}var ys=0;function ia(e){if(e===10)return 32;if(e<128)return e;if(e<=159)return Zn[e-128];if(e<55296)return e;if(e<=57343)return ys;if(e<=65535)return e;if(e>=65536&&e<=131071)return e;if(e>=131072&&e<=196607)return e;if(e>=917504&&e<=917631||e>=917760&&e<=917999)return e;return ys}function q(e=!1){return{type:"Fragment",nodes:[],metadata:{transparent:e,dynamic:!1}}}var sa=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function vs(e){return sa.includes(e.type)}function Me(e,a,r,i,o){return{type:"Attribute",start:r,end:i,name:e,name_loc:a,value:o,metadata:{delegated:!1,needs_clsx:!1}}}class R{has_state=!1;has_call=!1;has_await=!1;has_member_expression=!1;has_assignment=!1;dependencies=new Set;references=new Set;#e=null;#t(){if(!this.#e){this.#e=new Set;for(let e of this.references)if(e.blocker)this.#e.add(e.blocker)}return this.#e}blockers(){return mt([...this.#t()])}has_blockers(){return this.#t().size>0}has_more_blockers_than(e){for(let a of this.#t())if(!e.#t().has(a))return!0;return!1}is_async(){return this.has_await||this.#t().size>0}merge(e){this.has_state||=e.has_state,this.has_call||=e.has_call,this.has_await||=e.has_await,this.has_member_expression||=e.has_member_expression,this.has_assignment||=e.has_assignment,this.#e=null;for(let a of e.references)this.references.add(a);for(let a of e.dependencies)this.dependencies.add(a)}}var gs={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 bs(e,a){let r=gs[e];if(r){if(!a||("direct"in r?r.direct:r.descendant).includes(a))return!0}return!1}var Zr={...gs,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 Ts(e,a="or"){if(e.length===1)return e[0];if(e.length===2)return`${e[0]} ${a} ${e[1]}`;return`${e.slice(0,-1).join(", ")} ${a} ${e[e.length-1]}`}var na=/(\/>|[\s"'=<>`])/y,wt=/<\/textarea(\s[^>]*)?>/iy,aa=/-->/,ws=/(\s|\/|>)/,Es=/[\s=/>"']/,Ss=/["']/y,ra=/(?:"([^"]*)"|'([^'])*'|([^>\s]+))/y,oa=/^![a-zA-Z]+$/,la=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/;function ca(e){if(oa.test(e))return!0;if(la.test(e))return!0;return Kt.test(e)}var As=/^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u,ks=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),Oe=new Map([...ks,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function At(e){let a=e.index++,r=e.current();if(e.eat("!--")){let m=e.read_until(aa);e.eat("-->",!0),e.append({type:"Comment",start:a,end:e.index,data:m});return}if(e.eat("/")){let m=e.read_until(ws);if(e.allow_whitespace(),e.eat(">",!0),je(m))ns(a);while(r.name!==m){if(e.loose){if(vs(r)){let w=r.attributes.at(-1);if(w?.type==="Attribute"&&w.name===`<${m}`){e.index=w.start,r.attributes.pop();break}}}if(r.type==="RegularElement"){if(!e.last_auto_closed_tag||e.last_auto_closed_tag.tag!==m){let w=r.fragment.nodes[0]?.start??a;We({start:r.start,end:w},`</${m}>`,`</${r.name}>`)}}else if(!e.loose)if(e.last_auto_closed_tag&&e.last_auto_closed_tag.tag===m)Di(a,m,e.last_auto_closed_tag.reason);else Li(a,m);r.end=a,e.pop(),r=e.current()}if(r.end=e.index,e.pop(),e.last_auto_closed_tag&&e.stack.length<e.last_auto_closed_tag.depth)e.last_auto_closed_tag=void 0;return}let i=Et(e,ws);if(i.name.startsWith("svelte:")&&!Oe.has(i.name)){let m={start:a+1,end:a+1+i.name.length};Wi(m,Ts(Array.from(Oe.keys())))}if(!ca(i.name)&&!As.test(i.name)){if(!e.loose||!i.name.endsWith(".")){let m={start:a+1,end:a+1+i.name.length};es(m)}}if(ks.has(i.name)){if(i.name in e.meta_tags)Gi(a,i.name);if(r.type!=="Root")Ki(a,i.name);e.meta_tags[i.name]=!0}let o=Oe.has(i.name)?Oe.get(i.name):As.test(i.name)||e.loose&&i.name.endsWith(".")?"Component":i.name==="title"&&pa(e.stack)?"TitleElement":i.name==="slot"&&!ua(e.stack)?"SlotElement":"RegularElement",c=o==="RegularElement"?{type:o,start:a,end:-1,name:i.name,name_loc:i.loc,attributes:[],fragment:q(!0),metadata:{svg:!1,mathml:!1,scoped:!1,has_spread:!1,path:[],synthetic_value_node:null}}:{type:o,start:a,end:-1,name:i.name,name_loc:i.loc,attributes:[],fragment:q(!0),metadata:{}};if(e.allow_whitespace(),r.type==="RegularElement"&&bs(r.name,i.name)){let m=r.fragment.nodes[0]?.start??a;We({start:r.start,end:m},`<${i.name}>`,`</${r.name}>`),r.end=a,e.pop(),e.last_auto_closed_tag={tag:r.name,reason:i.name,depth:e.stack.length}}let n=[],u=e.current(),h=(i.name==="script"||i.name==="style")&&u.type==="Root",v=h?da:ha,d;while(d=v(e)){if(d.type==="Attribute"||d.type==="BindDirective"||d.type==="StyleDirective"||d.type==="ClassDirective"){let m=d.type==="BindDirective"?"Attribute":d.type;if(n.includes(m+d.name))Ti(d);else if(d.name!=="this")n.push(m+d.name)}c.attributes.push(d),e.allow_whitespace()}if(c.type==="Component")c.metadata.expression=new R;if(c.type==="SvelteComponent"){let m=c.attributes.findIndex((k)=>k.type==="Attribute"&&k.name==="this");if(m===-1)Hi(a);let w=c.attributes.splice(m,1)[0];if(!yt(w))Vi(w.start);c.expression=xt(w),c.metadata.expression=new R}if(c.type==="SvelteElement"){let m=c.attributes.findIndex((k)=>k.type==="Attribute"&&k.name==="this");if(m===-1)ot(a);let w=c.attributes.splice(m,1)[0];if(w.value===!0)ot(w);if(!yt(w)){ii(w);let k=w.value[0];c.tag=k.type==="Text"?{type:"Literal",value:k.data,raw:`'${k.raw}'`,start:k.start,end:k.end}:k.expression}else c.tag=xt(w);c.metadata.expression=new R}if(h){e.eat(">",!0);let m=null;for(let w=u.fragment.nodes.length-1;w>=0;w--){let k=u.fragment.nodes[w];if(w===u.fragment.nodes.length-1&&k.end!==a)break;if(k.type==="Comment"){m=k;break}else if(k.type!=="Text"||k.data.trim())break}if(i.name==="script"){let w=cs(e,a,c.attributes);if(m)w.content.leadingComments=[{type:"Line",value:m.data}];if(w.context==="module"){if(u.module)at(a);u.module=w}else{if(u.instance)at(a);u.instance=w}}else{let w=gt(e,a,c.attributes);if(w.content.comment=m,u.css)ji(a);u.css=w}return}e.append(c);let b=e.eat("/")||je(i.name),x=e.eat(">",!0,!1);if(!x){let m=c.attributes.at(-1);if(m?.type==="Attribute"&&m.name==="<")e.index=m.start,c.attributes.pop();else{let w=e.template[e.index-1],k=e.template[e.index-2],C=e.template[e.index];if(k==="{"&&w==="/")e.index-=2;else if(w==="{"&&(C==="#"||C==="@"||C===":"))e.index-=1;else e.allow_whitespace()}}if(b||!x)c.end=e.index;else if(i.name==="textarea")c.fragment.nodes=Ps(e,()=>(wt.lastIndex=e.index,wt.test(e.template)),"inside <textarea>"),e.read(wt),c.end=e.index;else if(i.name==="script"||i.name==="style"){let m=e.index,w=`</${i.name}>`,k=e.template.indexOf(w,e.index),C=e.template.slice(e.index,k===-1?e.template.length:k);e.index=k===-1?e.template.length:k;let D=e.index,Z={start:m,end:D,type:"Text",data:C,raw:C};c.fragment.nodes.push(Z),e.eat(`</${i.name}>`,!0),c.end=e.index}else e.stack.push(c),e.fragments.push(c.fragment)}function pa(e){let a=e.length;while(a--){let{type:r}=e[a];if(r==="SvelteHead")return!0;if(r==="RegularElement"||r==="Component")return!1}return!1}function ua(e){let a=e.length;while(a--)if(e[a].type==="RegularElement"&&e[a].attributes.some((r)=>r.type==="Attribute"&&r.name==="shadowrootmode"))return!0;return!1}function da(e){let a=e.index,r=Et(e,Es);if(!r.name)return null;let i=!0;if(e.eat("=")){e.allow_whitespace();let o=e.match_regex(ra);if(!o)st(e.index);e.index+=o.length;let c=o[0]==='"'||o[0]==="'";if(c)o=o.slice(1,-1);i=[{start:e.index-o.length-(c?1:0),end:c?e.index-1:e.index,type:"Text",raw:o,data:ye(o,!0)}]}if(e.match_regex(Ss))G(e.index,"=");return Me(r.name,r.loc,a,e.index,i)}function ha(e){let a=null;while(a=_a(e))e.root.comments.push(a),e.allow_whitespace();let r=e.index;if(e.eat("{")){if(e.allow_whitespace(),e.eat("@attach")){e.require_whitespace();let h=F(e);return e.allow_whitespace(),e.eat("}",!0),{type:"AttachTag",start:r,end:e.index,expression:h,metadata:{expression:new R}}}if(e.eat("...")){let h=F(e);return e.allow_whitespace(),e.eat("}",!0),{type:"SpreadAttribute",start:r,end:e.index,expression:h,metadata:{expression:new R}}}else{let h=e.read_identifier();if(h.name==="")if(e.loose&&(e.match("#")||e.match("/")||e.match("@")||e.match(":")))return null;else if(e.loose&&e.match("}"));else wi(r);e.allow_whitespace(),e.eat("}",!0);let v={type:"ExpressionTag",start:h.start,end:h.end,expression:h,metadata:{expression:new R}};return Me(h.name,h.loc,r,e.index,v)}}let i=Et(e,Es);if(!i.name)return null;let o=e.index;e.allow_whitespace();let c=i.name.indexOf(":"),n=c!==-1&&ma(i.name.slice(0,c)),u=!0;if(e.eat("="))if(e.allow_whitespace(),e.template[e.index]==="/"&&e.template[e.index+1]===">"){let h=e.index;e.index++,u=[{start:h,end:h+1,type:"Text",raw:"/",data:"/"}],o=e.index}else u=fa(e),o=e.index;else if(e.match_regex(Ss))G(e.index,"=");if(n){let[h,...v]=i.name.slice(c+1).split("|");if(h==="")Ni({start:r,end:r+c+1},i.name);if(n==="StyleDirective")return{start:r,end:o,type:n,name:h,name_loc:i.loc,modifiers:v,value:u,metadata:{expression:new R}};let d=u===!0?void 0:Array.isArray(u)?u[0]:u,b=null;if(d)if(u.length>1||d.type==="Text")Ii(d.start);else b=d.expression;let x={start:r,end:o,type:n,name:h,name_loc:i.loc,expression:b,metadata:{expression:new R}};if(x.modifiers=v,x.type==="TransitionDirective"){let m=i.name.slice(0,c);x.intro=m==="in"||m==="transition",x.outro=m==="out"||m==="transition"}if((x.type==="BindDirective"||x.type==="ClassDirective")&&!x.expression)x.expression={start:r+c+1,end:o,type:"Identifier",name:x.name};return x}return Me(i.name,i.loc,r,o,u)}function _a(e){let a=e.index;if(e.eat("//")){let r=e.read_until(/\n/),i=e.index;return{type:"Line",start:a,end:i,value:r,loc:{start:B(a),end:B(i)}}}if(e.eat("/*")){let r=e.read_until(/\*\//);e.eat("*/");let i=e.index;return{type:"Block",start:a,end:i,value:r,loc:{start:B(a),end:B(i)}}}return null}function ma(e){if(e==="use")return"UseDirective";if(e==="animate")return"AnimateDirective";if(e==="bind")return"BindDirective";if(e==="class")return"ClassDirective";if(e==="style")return"StyleDirective";if(e==="on")return"OnDirective";if(e==="let")return"LetDirective";if(e==="in"||e==="out"||e==="transition")return"TransitionDirective";return!1}function fa(e){let a=e.eat("'")?"'":e.eat('"')?'"':null;if(a&&e.eat(a))return[{start:e.index-1,end:e.index-1,type:"Text",raw:"",data:""}];let r;try{r=Ps(e,()=>{if(a)return e.match(a);return!!e.match_regex(na)},"in attribute value")}catch(i){if(i.code==="js_parse_error"){let o=i.position?.[0];if(o!==void 0&&e.template.slice(o-1,o+1)==="/>")e.index=o,G(o,a||"}")}throw i}if(r.length===0&&!a)st(e.index);if(a)e.index+=1;if(a||r.length>1||r[0].type==="Text")return r;else return r[0]}function Ps(e,a,r){let i={start:e.index,end:-1,type:"Text",raw:"",data:""},o=[];function c(n){if(n>i.start)i.raw=e.template.slice(i.start,n),i.data=ye(i.raw,!0),i.end=n,o.push(i)}while(e.index<e.template.length){let n=e.index;if(a())return c(e.index),o;else if(e.eat("{")){if(e.match("#")){let v=e.index-1;e.eat("#");let d=e.read_until(/[^a-z]/);Si(v,d,r)}else if(e.match("@")){let v=e.index-1;e.eat("@");let d=e.read_until(/[^a-z]/);ts(v,d,r)}c(e.index-1),e.allow_whitespace();let u=F(e);e.allow_whitespace(),e.eat("}",!0);let h={type:"ExpressionTag",start:n,end:e.index,expression:u,metadata:{expression:new R}};o.push(h),i={start:e.index,end:-1,type:"Text",raw:"",data:""}}else e.index++}if(e.loose)return o;else U(e.template.length)}function Et(e,a){let r=e.index,i=e.read_until(a),o=e.index;return{type:"Identifier",name:i,start:r,end:o,loc:{start:B(r),end:B(o)}}}function W(e){let{index:a,index:r}=e,i=e.read_identifier();if(i.name!==""){let v=Cs(e);return{...i,typeAnnotation:v}}let o=e.template[r];if(o!=="{"&&o!=="[")Oi(r);r=me(e,a),e.index=r;let c=e.template.slice(a,r),n=e.template.slice(0,a).replace(ve," "),u=n.indexOf(" ");n=n.slice(0,u)+n.slice(u+1);let h=oe(se(e,`${n}(${c} = 1)`,a-1));if(h=h.left,h.typeAnnotation=Cs(e),h.typeAnnotation)h.end=h.typeAnnotation.end;return h}function Cs(e){let a=e.index;if(e.allow_whitespace(),!e.eat(":")){e.index=a;return}let r="_ as ",i=e.index-r.length,o=e.template.slice(0,i).replace(/[^\n]/g," ")+r+e.template.slice(e.index).replace(/\?\s*:/g,":"),c=oe(se(e,o,i));if(c.type==="AssignmentExpression"){let n=c.right.start;while(o[n]!=="=")n-=1;c=oe(se(e,o.slice(0,n),i))}if(c.type==="SequenceExpression")c=c.expressions[0];return e.index=c.end,{type:"TSTypeAnnotation",start:a,end:e.index,typeAnnotation:c.typeAnnotation}}var St=/\s*}/y,ya=/(?:let|const)\b/y,xa=/(?:var|interface|enum)\b/y,va=/type\b/y,ga={"<":">"};function Pt(e){let a=e.index;if(e.index+=1,e.allow_whitespace(),e.eat("#"))return Ta(e);if(e.eat(":"))return wa(e);if(e.eat("@"))return Aa(e);if(e.match("/")){if(!e.match("/*")&&!e.match("//"))return e.eat("/"),kt(e)}let r=ba(e);if(r){e.append({type:"DeclarationTag",start:a,end:e.index,declaration:r,metadata:{expression:new R}});return}let i=F(e);e.allow_whitespace(),e.eat("}",!0),e.append({type:"ExpressionTag",start:a,end:e.index,expression:i,metadata:{expression:new R}})}function ba(e){let a=e.index,r=e.match_regex(xa);if(r)ke({start:a,end:a+r.length});if(!e.match_regex(ya)&&!e.match_regex(va))return null;let i=e.root.comments.length,o;try{o=os(e,e.template,a)}catch(c){if(!e.loose)throw c;let n=De(e.template,a,"{");if(n===void 0)throw c;e.index=n,o={type:"VariableDeclaration",kind:e.template.startsWith("const",a)?"const":"let",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"",start:e.index,end:e.index},init:null,start:e.index,end:e.index}],start:a,end:n}}if(o.type!=="VariableDeclaration")if(o.type==="ExpressionStatement")return e.root.comments.length=i,null;else ke({start:o.start??a,end:o.end??e.index});if(o.kind!=="let"&&o.kind!=="const")ke(o);return e.index=o.end,e.allow_whitespace(),e.eat("}",!0),o}function Ta(e){let a=e.index-2;while(e.template[a]!=="{")a-=1;if(e.eat("if")){e.require_whitespace();let r=e.append({type:"IfBlock",elseif:!1,start:a,end:-1,test:F(e),consequent:q(),alternate:null,metadata:{expression:new R}});e.allow_whitespace(),e.eat("}",!0),e.stack.push(r),e.fragments.push(r.consequent);return}if(e.eat("each")){e.require_whitespace();let r=e.template,i=e.template.length,o;while(!o)try{o=F(e,void 0,!0)}catch(d){i=d.position[0]-2;while(i>a&&e.template.slice(i,i+2)!=="as")i-=1;if(i<=a){if(e.loose){if(o=_t(e),o)break}throw d}e.template=r.slice(0,i)}if(e.template=r,e.allow_whitespace(),!e.match("as")){if(o.type==="SequenceExpression")o=o.expressions[0];let d=null,b=o.end;if(o=Q(o,null,{TSAsExpression(x,m){if(x.end===o.end)return d=x,b=x.expression.end,x.expression;m.next()}}),o.end=b,d){let x=d.typeAnnotation.start-2;while(e.template.slice(x,x+2)!=="as")x-=1;e.index=x}}let c=null,n,u;if(e.eat("as"))e.require_whitespace(),c=W(e);else e.index=o.end;if(e.allow_whitespace(),e.eat(",")){if(e.allow_whitespace(),n=e.read_identifier().name,!n)nt(e.index);e.allow_whitespace()}if(e.eat("("))e.allow_whitespace(),u=F(e,"("),e.allow_whitespace(),e.eat(")",!0),e.allow_whitespace();if(!e.eat("}",!0,!1))if(e.template.slice(e.index-4,e.index)===" as "){let d=e.index;c=W(e),e.eat("}",!0),o={type:"Identifier",name:"",start:o.start,end:d-4}}else e.eat("}",!0);let v=e.append({type:"EachBlock",start:a,end:-1,expression:o,body:q(),context:c,index:n,key:u,metadata:null});e.stack.push(v),e.fragments.push(v.body);return}if(e.eat("await")){e.require_whitespace();let r=F(e);e.allow_whitespace();let i=e.append({type:"AwaitBlock",start:a,end:-1,expression:r,value:null,error:null,pending:null,then:null,catch:null,metadata:{expression:new R}});if(e.eat("then")){if(e.match_regex(St))e.allow_whitespace();else e.require_whitespace(),i.value=W(e),e.allow_whitespace();i.then=q(),e.fragments.push(i.then)}else if(e.eat("catch")){if(e.match_regex(St))e.allow_whitespace();else e.require_whitespace(),i.error=W(e),e.allow_whitespace();i.catch=q(),e.fragments.push(i.catch)}else i.pending=q(),e.fragments.push(i.pending);if(!e.eat("}",!0,!1))if(e.template.slice(e.index-6,e.index)===" then "){let c=e.index;i.value=W(e),e.eat("}",!0),i.expression={type:"Identifier",name:"",start:r.start,end:c-6},i.then=i.pending,i.pending=null}else if(e.template.slice(e.index-7,e.index)===" catch "){let c=e.index;i.error=W(e),e.eat("}",!0),i.expression={type:"Identifier",name:"",start:r.start,end:c-7},i.catch=i.pending,i.pending=null}else e.eat("}",!0);e.stack.push(i);return}if(e.eat("key")){e.require_whitespace();let r=F(e);e.allow_whitespace(),e.eat("}",!0);let i=e.append({type:"KeyBlock",start:a,end:-1,expression:r,fragment:q(),metadata:{expression:new R}});e.stack.push(i),e.fragments.push(i.fragment);return}if(e.eat("snippet")){e.require_whitespace();let r=e.read_identifier();if(r.name===""&&!e.loose)nt(e.index);e.allow_whitespace();let i=e.index,o;if(e.ts&&e.match("<")){let d=e.index,b=me(e,d,ga);o=e.template.slice(d+1,b-1),e.index=b}e.allow_whitespace();let c=e.eat("(",!0,!1);if(c){let d=1;while(e.index<e.template.length&&(!e.match(")")||d!==1)){if(e.match("("))d++;if(e.match(")"))d--;e.index+=1}e.eat(")",!0)}let n=e.template.slice(0,i).replace(/\S/g," "),u=e.template.slice(i,e.index),h=c?se(e,n+`${u} => {}`,i):{params:[]};e.allow_whitespace(),e.eat("}",!0);let v=e.append({type:"SnippetBlock",start:a,end:-1,expression:r,typeParams:o,parameters:h.params,body:q(),metadata:{can_hoist:!1,sites:new Set}});e.stack.push(v),e.fragments.push(v.body);return}Mi(e.index)}function wa(e){let a=e.index-1,r=e.current();if(r.type==="IfBlock"){if(!e.eat("else"))G(a,"{:else} or {:else if}");if(e.eat("if"))Ei(a);if(e.allow_whitespace(),e.fragments.pop(),r.alternate=q(),e.fragments.push(r.alternate),e.eat("if")){e.require_whitespace();let i=F(e);e.allow_whitespace(),e.eat("}",!0);let o=a-1;while(e.template[o]!=="{")o-=1;let c=e.append({start:o,end:-1,type:"IfBlock",elseif:!0,test:i,consequent:q(),alternate:null,metadata:{expression:new R}});e.stack.push(c),e.fragments.pop(),e.fragments.push(c.consequent)}else e.allow_whitespace(),e.eat("}",!0);return}if(r.type==="EachBlock"){if(!e.eat("else"))G(a,"{:else}");e.allow_whitespace(),e.eat("}",!0),r.fallback=q(),e.fragments.pop(),e.fragments.push(r.fallback);return}if(r.type==="AwaitBlock"){if(e.eat("then")){if(r.then)tt(a,"{:then}");if(!e.eat("}"))e.require_whitespace(),r.value=W(e),e.allow_whitespace(),e.eat("}",!0);r.then=q(),e.fragments.pop(),e.fragments.push(r.then);return}if(e.eat("catch")){if(r.catch)tt(a,"{:catch}");if(!e.eat("}"))e.require_whitespace(),r.error=W(e),e.allow_whitespace(),e.eat("}",!0);r.catch=q(),e.fragments.pop(),e.fragments.push(r.catch);return}G(a,"{:then ...} or {:catch ...}")}Ai(a)}function kt(e){let a=e.index-1,r=e.current(),i;switch(r.type){case"IfBlock":if(i=e.eat("if",!0,!1),!i){r.end=a-1,e.pop(),kt(e);return}e.allow_whitespace(),e.eat("}",!0);while(r.elseif)r.end=e.index,e.stack.pop(),r=e.current();r.end=e.index,e.pop();return;case"EachBlock":i=e.eat("each",!0,!1);break;case"KeyBlock":i=e.eat("key",!0,!1);break;case"AwaitBlock":i=e.eat("await",!0,!1);break;case"SnippetBlock":i=e.eat("snippet",!0,!1);break;case"RegularElement":if(e.loose)i=!1;else it(a);break;default:it(a)}if(!i){r.end=a-1,e.pop(),kt(e);return}e.allow_whitespace(),e.eat("}",!0),r.end=e.index,e.pop()}function Aa(e){let a=e.index;while(e.template[a]!=="{")a-=1;if(e.eat("html")){e.require_whitespace();let r=F(e);e.allow_whitespace(),e.eat("}",!0),e.append({type:"HtmlTag",start:a,end:e.index,expression:r,metadata:{expression:new R}});return}if(e.eat("debug")){let r;if(e.read(St))r=[];else{let i=F(e);r=i.type==="SequenceExpression"?i.expressions:[i],r.forEach((o)=>{if(o.type!=="Identifier")Ci(o.start)}),e.allow_whitespace(),e.eat("}",!0)}e.append({type:"DebugTag",start:a,end:e.index,identifiers:r});return}if(e.eat("const")){e.require_whitespace();let r=W(e);e.allow_whitespace(),e.eat("=",!0),e.allow_whitespace();let i=e.index,o=F(e),c=e.index;if(o.type==="SequenceExpression"&&!e.template.substring(i,o.start).includes("("))Pi(o);e.allow_whitespace(),e.eat("}",!0),e.append({type:"ConstTag",start:a,end:e.index,declaration:{type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:r,init:o,start:r.start,end:c}],start:a+2,end:e.index-1},metadata:{expression:new R}});return}if(e.eat("render")){e.require_whitespace();let r=F(e);if(r.type!=="CallExpression"&&(r.type!=="ChainExpression"||r.expression.type!=="CallExpression"))Bi(r);e.allow_whitespace(),e.eat("}",!0),e.append({type:"RenderTag",start:a,end:e.index,expression:r,metadata:{expression:new R,dynamic:!1,arguments:[],path:[],snippets:new Set}});return}Ri(e.index)}function Ct(e){let a=e.index;while(e.index<e.template.length&&!e.match("<")&&!e.match("{"))e.index++;let r=e.template.slice(a,e.index);e.append({type:"Text",start:a,end:e.index,raw:r,data:ye(r,!1)})}function xe(e){if(e.match("<"))return At;if(e.match("{"))return Pt;return Ct}function It(e){let a={start:e.start,end:e.end,attributes:e.attributes};if(!e)return a;for(let r of e.attributes){if(r.type!=="Attribute")Ji(r);let{name:i}=r;switch(i){case"runes":{a.runes=Re(r);break}case"tag":{Xi(r);break}case"customElement":{let o={},{value:c}=r,n=c===!0||Array.isArray(c)?c:[c];if(n===!0)Ie(r);else if(n[0].type==="Text"){let x=qe(r);Ns(r,x),o.tag=x,a.customElement=o;break}else if(n[0].expression.type!=="ObjectExpression"){if(n[0].expression.type==="Literal"&&n[0].expression.value===null)break;Ie(r)}let u=[];for(let x of n[0].expression.properties){if(x.type!=="Property"||x.computed||x.key.type!=="Identifier")Ie(r);u.push([x.key.name,x.value])}let h=u.find(([x])=>x==="tag");if(h){let x=h[1]?.value;Ns(h,x),o.tag=x}let v=u.find(([x])=>x==="props")?.[1];if(v){if(v.type!=="ObjectExpression")ie(r);o.props={};for(let x of v.properties){if(x.type!=="Property"||x.computed||x.key.type!=="Identifier"||x.value.type!=="ObjectExpression")ie(r);o.props[x.key.name]={};for(let m of x.value.properties){if(m.type!=="Property"||m.computed||m.key.type!=="Identifier"||m.value.type!=="Literal")ie(r);if(m.key.name==="type"){if(["String","Number","Boolean","Array","Object"].indexOf(m.value.value)===-1)ie(r);o.props[x.key.name].type=m.value.value}else if(m.key.name==="reflect"){if(typeof m.value.value!=="boolean")ie(r);o.props[x.key.name].reflect=m.value.value}else if(m.key.name==="attribute"){if(typeof m.value.value!=="string")ie(r);o.props[x.key.name].attribute=m.value.value}else ie(r)}}}let d=u.find(([x])=>x==="shadow")?.[1];if(d)if(d.type==="Literal"&&(d.value==="open"||d.value==="none"))o.shadow=d.value;else if(d.type==="ObjectExpression")o.shadow=d;else Yi(r);let b=u.find(([x])=>x==="extend")?.[1];if(b)o.extend=b;a.customElement=o;break}case"namespace":{let o=qe(r);if(o===Bt)a.namespace="svg";else if(o===Ft)a.namespace="mathml";else if(o==="html"||o==="mathml"||o==="svg")a.namespace=o;else Ce(r,'"html", "mathml" or "svg"');break}case"css":{let o=qe(r);if(o==="injected")a.css=o;else Ce(r,'"injected"');break}case"immutable":{a.immutable=Re(r);break}case"preserveWhitespace":{a.preserveWhitespace=Re(r);break}case"accessors":{a.accessors=Re(r);break}default:Qi(r,i)}}return a}function qe(e){let{value:a}=e;if(a===!0)return!0;let r=Array.isArray(a)?a[0]:a;if(!r)return!0;if(a.length>1)return null;if(r.type==="Text")return r.data;if(r.expression.type!=="Literal")return null;return r.expression.value}function Re(e){let a=qe(e);if(typeof a!=="boolean")Ce(e,"true or false");return a}var Is="[a-z0-9_.·À-ÖØ-öø-ͽͿ-῿‌-‍‿-⁀⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF-]",Ea=new RegExp(`^[a-z]${Is}*-${Is}*$`,"u"),Sa=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function Ns(e,a){if(typeof a!=="string")lt(e);if(a){if(!Ea.test(a))lt(e);else if(Sa.includes(a))Zi(e)}}function Ls(e){let{nodes:a}=e.fragment;if(a.length>0){let r=a[0],i=a[a.length-1];zi({start:r.start,end:i.end},e.name)}}function Ds(e){if(e===32||e<=13&&e>=9)return!0;if(e<160)return!1;return e===160||e===5760||e>=8192&&e<=8202||e===8232||e===8233||e===8239||e===8287||e===12288||e===65279}var Ms=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g;class Nt{template;loose;index=0;css_comments=[];static forCss(e){let a=Object.create(Nt.prototype);return a.template=e,a.index=0,a.loose=!1,a.css_comments=[],a}ts=!1;stack=[];fragments=[];root;meta_tags={};last_auto_closed_tag;constructor(e,a){if(typeof e!=="string")throw TypeError("Template must be a string");this.loose=a,this.template=e.trimEnd();let r;do r=Ms.exec(e);while(r&&r[0][1]!=="s");Ms.lastIndex=0,this.ts=r?.[2]==="ts",this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:q(),options:null,comments:[],metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let i=xe;while(this.index<this.template.length)i=i(this)||xe;if(this.stack.length>1){let c=this.current();if(this.loose)c.end=this.template.length;else if(c.type==="RegularElement")c.end=c.start+1,Pe(c,c.name);else c.end=c.start+1,ki(c)}if(i!==xe)U(this.index);this.root.start=0,this.root.end=e.length;let o=this.root.fragment.nodes.findIndex((c)=>c.type==="SvelteOptions");if(o!==-1){let c=this.root.fragment.nodes[o];this.root.fragment.nodes.splice(o,1),this.root.options=It(c),Ls(c),Object.defineProperty(this.root.options,"__raw__",{value:c,enumerable:!1})}}current(){return this.stack[this.stack.length-1]}eat(e,a=!1,r=!0){if(this.match(e))return this.index+=e.length,!0;if(a&&(!this.loose||r))G(this.index,e);return!1}match(e){if(e.length===1)return this.template[this.index]===e;return this.template.startsWith(e,this.index)}match_regex(e){e.lastIndex=this.index;let a=e.exec(this.template);if(!a||a.index!==this.index)return null;return a[0]}allow_whitespace(){while(this.index<this.template.length&&Ds(this.template.charCodeAt(this.index)))this.index++}read(e){let a=this.match_regex(e);if(a)this.index+=a.length;return a}read_identifier(){let e=this.index,a=e,r="",i=this.template.codePointAt(this.index);if(Os(i,!0)){let o=this.index;a+=i<=65535?1:2;while(a<this.template.length){let c=this.template.codePointAt(a);if(!Rs(c,!0))break;a+=c<=65535?1:2}if(r=this.template.slice(e,a),this.index=a,zt(r))is(e,r)}return{type:"Identifier",name:r,start:e,end:a,loc:{start:B(e),end:B(a)}}}read_until(e){if(this.index>=this.template.length){if(this.loose)return"";U(this.template.length)}let a=this.index,r=e.exec(this.template.slice(a));if(r)return this.index=a+r.index,this.template.slice(a,this.index);return this.index=this.template.length,this.template.slice(a)}require_whitespace(){if(!Ds(this.template.charCodeAt(this.index)))qi(this.index);this.allow_whitespace()}pop(){let e=this.fragments.pop();if(e?.metadata.transparent&&e.nodes.some((a)=>a.type==="DeclarationTag"))e.metadata.transparent=!1;return this.stack.pop()}append(e){return this.fragments.at(-1)?.nodes.push(e),e}}function Lt(e,a=!1){return Wt(e),new Nt(e,a).root}function qs(e){return e.charCodeAt(0)===65279?e.slice(1):e}function Dt(e){delete e.metadata}function Mt(e){if(!e||typeof e!=="object"||typeof e.type!=="string")return;Dt(e);for(let a in e){if(a==="type")continue;let r=e[a];if(!r||typeof r!=="object")continue;if(Array.isArray(r))for(let i of r)Mt(i);else Mt(r)}}function $s(e,a,r){if(r){for(let i of a.options?.attributes??[])if(Dt(i),i.value)for(let o of Array.isArray(i.value)?i.value:[i.value])Dt(o);return Mt(a),a}return ai(e,a)}function Go(e,{modern:a,loose:r}={}){let i=qs(e);ze({warning:()=>!1,filename:void 0});let o=Lt(i,r);return $s(i,o,a)}function zo(e,{loose:a}={}){let r=qs(e);ze({warning:()=>!1,filename:void 0});let i=Lt(r,a);return{modern:i,intoLegacy:()=>$s(r,i,!1)}}
62
+ export{Go as na,zo as oa};