2025-03-25 22:06:48 +01:00

2 lines
748 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).svelte={})}(this,(function(e){"use strict";function t(e,t,s){const r=s._;let a=!1;function i(e,{next:t,state:n}){t(n)}return function e(t,o,l){if(a)return;if(!t.type)return;let c;const p={},u={path:o,state:l,next:(s=l)=>{o.push(t);for(const n in t){if("type"===n)continue;const r=t[n];if(r&&"object"==typeof r)if(Array.isArray(r)){const t={};r.forEach(((n,r)=>{if(n&&"object"==typeof n){const a=e(n,o,s);a&&(t[r]=a)}})),Object.keys(t).length>0&&(p[n]=r.map(((e,n)=>t[n]??e)))}else{const t=e(r,o,s);t&&(p[n]=t)}}if(o.pop(),Object.keys(p).length>0)return n(t,p)},stop:()=>{a=!0},visit:(n,s=l)=>{o.push(t);const r=e(n,o,s)??n;return o.pop(),r}};let d=s[t.type]??i;if(r){let e;c=r(t,{...u,next:(n=l)=>(l=n,e=d(t,{...u,state:n}),e)}),!c&&e&&(c=e)}else c=d(t,u);return c||Object.keys(p).length>0&&(c=n(t,p)),c||void 0}(e,[],t)??e}function n(e,t){const n={},s=Object.getOwnPropertyDescriptors(e);for(const e in s)Object.defineProperty(n,e,s[e]);for(const e in t)n[e]=t[e];return n}const s=/\s/,r=/\s+/,a=/^\r?\n/,i=/^\s/,o=/^[ \t\r\n]+/,l=/\s$/,c=/[ \t\r\n]+$/,p=/[^ \t\r\n]/,u=/[ \t\n\r\f]+/g,d=/^[ \t\n\r\f]+$/,h=/[^\n]/g,m=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/,f=/(^[^a-zA-Z_$]|[^a-zA-Z0-9_$])/g,y=/^[aeiou]/,v=/^h[1-6]$/,g=/(^[0-9-.])|[\^$@%&#?!|()[\]{}^*+~;]/,b=1,_=2,x=4,C=8,w=16,k=1,S=2,P="http://www.w3.org/2000/svg",E="http://www.w3.org/1998/Math/MathML";function T(e,t){if(0===t.length)return null;const n=new q(t).get(e);return n&&n[0][0]>.7?n[0][1]:null}function A(e,t){if(null===e&&null===t)throw"Trying to compare two null values";if(null===e||null===t)return 0;const n=function(e,t){const n=[];let s=0,r=0;for(let a=0;a<=t.length;a++)for(let i=0;i<=e.length;i++)r=a&&i?e.charAt(i-1)===t.charAt(a-1)?s:Math.min(n[i],n[i-1],s)+1:a+i,s=n[i],n[i]=r;return n.pop()}(e=String(e),t=String(t));return 1-n/Math.max(e.length,t.length)}const $=/[^\w, ]+/;function I(e,t=2){const n={},s=function(e,t=2){const n="-"+e.toLowerCase().replace($,"")+"-",s=t-n.length,r=[];if(s>0)for(let t=0;t<s;++t)e+="-";for(let e=0;e<n.length-t+1;++e)r.push(n.slice(e,e+t));return r}(e,t);let r=0;for(;r<s.length;++r)s[r]in n?n[s[r]]+=1:n[s[r]]=1;return n}function R(e,t){return t[0]-e[0]}class q{exact_set={};match_dict={};items={};constructor(e){for(let e=2;e<4;++e)this.items[e]=[];for(let t=0;t<e.length;++t)this.add(e[t])}add(e){if(e.toLowerCase()in this.exact_set)return!1;let t=2;for(;t<4;++t)this._add(e,t)}_add(e,t){const n=e.toLowerCase(),s=this.items[t]||[],r=s.length;s.push(0);const a=I(n,t);let i,o,l=0;for(i in a)o=a[i],l+=Math.pow(o,2),i in this.match_dict?this.match_dict[i].push([r,o]):this.match_dict[i]=[[r,o]];const c=Math.sqrt(l);s[r]=[c,n],this.items[t]=s,this.exact_set[n]=e}get(e){const t=e.toLowerCase(),n=this.exact_set[t];if(n)return[[1,n]];for(let t=3;t>=2;--t){const n=this.__get(e,t);if(n.length>0)return n}return null}__get(e,t){const n=e.toLowerCase(),s={},r=I(n,t),a=this.items[t];let i,o,l,c,p,u=0;for(i in r)if(o=r[i],u+=Math.pow(o,2),i in this.match_dict)for(l=0;l<this.match_dict[i].length;++l)c=this.match_dict[i][l][0],p=this.match_dict[i][l][1],c in s?s[c]+=o*p:s[c]=o*p;const d=Math.sqrt(u);let h,m=[];for(const e in s)h=s[e],m.push([h/(d*a[e][0]),a[e][1]]);m.sort(R);let f=[];const y=Math.min(50,m.length);for(let e=0;e<y;++e)f.push([A(m[e][1],n),m[e][1]]);m=f,m.sort(R),f=[];for(let e=0;e<m.length;++e)m[e][0]===m[0][0]&&f.push([m[e][0],this.exact_set[m[e][1]]]);return f}}function L(e,t){return e.start<=t&&t<e.end}function M(e,t={}){const{offsetLine:n=0,offsetColumn:s=0}=t;let r=0;const a=e.split("\n").map(((e,t)=>{const n=r+e.length+1,s={start:r,end:n,line:t};return r=n,s}));let i=0;return function(t,r){if("string"==typeof t&&(t=e.indexOf(t,r??0)),-1===t)return;let o=a[i];const l=t>=o.end?1:-1;for(;o;){if(L(o,t))return{line:n+o.line,column:s+t-o.start,character:t};i+=l,o=a[i]}}}const O=/\r/g;function N(e){let t=5381,n=(e=e.replace(O,"")).length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return(t>>>0).toString(36)}const D=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function j(e){return D.includes(e)||"!doctype"===e.toLowerCase()}const B=["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 F(e){return B.includes(e)}function V(e){return e.endsWith("capture")&&"gotpointercapture"!==e&&"lostpointercapture"!==e}const H=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function U(e){return H.includes(e)}const z=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];function W(e){return z.includes(e)}const G={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};const K=[...z,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];const X=["autofocus","muted","defaultValue","defaultChecked"];function Q(e){return X.includes(e)}const Y=["touchstart","touchmove"];const J=["textContent","innerHTML","innerText"];function Z(e){return J.includes(e)}const ee=["body","embed","iframe","img","link","object","script","style","track"];function te(e){return ee.includes(e)}const ne=["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","discard","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hatch","hatchpath","hkern","image","line","linearGradient","marker","mask","mesh","meshgradient","meshpatch","meshrow","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tref","tspan","unknown","use","view","vkern"];function se(e){return ne.includes(e)}const re=["annotation","annotation-xml","maction","math","merror","mfrac","mi","mmultiscripts","mn","mo","mover","mpadded","mphantom","mprescripts","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msubsup","msup","mtable","mtd","mtext","mtr","munder","munderover","semantics"];const ae=["$state","$state.raw","$state.snapshot","$props","$props.id","$bindable","$derived","$derived.by","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];function ie(e){return ae.includes(e)}let oe,le,ce,pe,ue=[],de=M("",{offsetLine:1});function he(e){const t=de(e.start);return`${n=oe,n?.replace(/\//g,"/")}:${t?.line}:${t.column}`;var n}let me=[],fe=new Map;function ye(e=(()=>!0)){pe=e}function ve(e,t){return ce&&!!fe.get(e)?.some((e=>e.has(t)))}function ge(e,t){le=e;const n=t.rootDir?.replace(/\\/g,"/");oe=t.filename.replace(/\\/g,"/"),ce=!!t.dev,"string"==typeof n&&oe.startsWith(n)&&(oe=oe.replace(n,"").replace(/^[/\\]/,"")),de=M(le,{offsetLine:1}),ue=[],me=[],fe.clear()}const be=/^\t+/;function _e(e){return e.replace(be,(e=>e.split("\t").join(" ")))}class xe{name="CompileDiagnostic";constructor(e,t,n){this.code=e,this.message=t,oe&&(this.filename=oe),n&&(this.position=n,this.start=de(n[0]),this.end=de(n[1]),this.start&&this.end&&(this.frame=function(e,t,n){const s=e.split("\n"),r=Math.max(0,t-2),a=Math.min(t+3,s.length),i=String(a+1).length;return s.slice(r,a).map(((e,s)=>{const a=r+s===t,o=String(s+r+1).padStart(i," ");if(a){const t=" ".repeat(i+2+_e(e.slice(0,n)).length)+"^";return`${o}: ${_e(e)}\n${t}`}return`${o}: ${_e(e)}`})).join("\n")}(le,this.start.line-1,this.end.column)))}toString(){let e=`${this.code}: ${this.message}`;return this.filename&&(e+=`\n${this.filename}`,this.start&&(e+=`:${this.start.line}:${this.start.column}`)),this.frame&&(e+=`\n${this.frame}`),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 Ce extends xe{name="CompileWarning";constructor(e,t,n){super(e,t,n)}}function we(e,t,n){let s=me;if(e&&(s=fe.get(e)??me),s&&s.at(-1)?.has(t))return;const r=new Ce(t,n,e&&void 0!==e.start?[e.start,e.end??e.start]:void 0);pe(r)&&ue.push(r)}function ke(e){we(e,"a11y_accesskey","Avoid using accesskey\nhttps://svelte.dev/e/a11y_accesskey")}function Se(e){we(e,"a11y_aria_activedescendant_has_tabindex","An element with an aria-activedescendant attribute should have a tabindex value\nhttps://svelte.dev/e/a11y_aria_activedescendant_has_tabindex")}function Pe(e,t){we(e,"a11y_aria_attributes",`\`<${t}>\` should not have aria-* attributes\nhttps://svelte.dev/e/a11y_aria_attributes`)}function Ee(e){we(e,"a11y_autofocus","Avoid using autofocus\nhttps://svelte.dev/e/a11y_autofocus")}function Te(e,t){we(e,"a11y_hidden",`\`<${t}>\` element should not be hidden\nhttps://svelte.dev/e/a11y_hidden`)}function Ae(e,t,n){we(e,"a11y_incorrect_aria_attribute_type",`The value of '${t}' must be a ${n}\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type`)}function $e(e,t){we(e,"a11y_interactive_supports_focus",`Elements with the '${t}' interactive role must have a tabindex value\nhttps://svelte.dev/e/a11y_interactive_supports_focus`)}function Ie(e,t){we(e,"a11y_misplaced_role",`\`<${t}>\` should not have role attribute\nhttps://svelte.dev/e/a11y_misplaced_role`)}function Re(e){we(e,"a11y_misplaced_scope","The scope attribute should only be used with `<th>` elements\nhttps://svelte.dev/e/a11y_misplaced_scope")}function qe(e,t,n){we(e,"a11y_mouse_events_have_key_events",`'${t}' event must be accompanied by '${n}' event\nhttps://svelte.dev/e/a11y_mouse_events_have_key_events`)}function Le(e,t){we(e,"a11y_no_abstract_role",`Abstract role '${t}' is forbidden\nhttps://svelte.dev/e/a11y_no_abstract_role`)}function Me(e,t,n){we(e,"a11y_no_interactive_element_to_noninteractive_role",`\`<${t}>\` cannot have role '${n}'\nhttps://svelte.dev/e/a11y_no_interactive_element_to_noninteractive_role`)}function Oe(e,t,n){we(e,"a11y_no_noninteractive_element_to_interactive_role",`Non-interactive element \`<${t}>\` cannot have interactive role '${n}'\nhttps://svelte.dev/e/a11y_no_noninteractive_element_to_interactive_role`)}function Ne(e,t){we(e,"a11y_no_redundant_roles",`Redundant role '${t}'\nhttps://svelte.dev/e/a11y_no_redundant_roles`)}function De(e){we(e,"a11y_positive_tabindex","Avoid tabindex values above zero\nhttps://svelte.dev/e/a11y_positive_tabindex")}function je(e,t,n){we(e,"a11y_role_has_required_aria_props",`Elements with the ARIA role "${t}" must have the following attributes defined: ${n}\nhttps://svelte.dev/e/a11y_role_has_required_aria_props`)}function Be(e,t,n){we(e,"a11y_role_supports_aria_props",`The attribute '${t}' is not supported by the role '${n}'\nhttps://svelte.dev/e/a11y_role_supports_aria_props`)}function Fe(e,t,n,s){we(e,"a11y_role_supports_aria_props_implicit",`The attribute '${t}' is not supported by the role '${n}'. This role is implicit on the element \`<${s}>\`\nhttps://svelte.dev/e/a11y_role_supports_aria_props_implicit`)}function Ve(e,t,n){we(e,"a11y_unknown_aria_attribute",(n?`Unknown aria attribute 'aria-${t}'. Did you mean '${n}'?`:`Unknown aria attribute 'aria-${t}'`)+"\nhttps://svelte.dev/e/a11y_unknown_aria_attribute")}function He(e,t,n){we(e,"a11y_unknown_role",(n?`Unknown role '${t}'. Did you mean '${n}'?`:`Unknown role '${t}'`)+"\nhttps://svelte.dev/e/a11y_unknown_role")}function Ue(e,t,n){we(e,"legacy_code",`\`${t}\` is no longer valid — please use \`${n}\` instead\nhttps://svelte.dev/e/legacy_code`)}function ze(e,t,n){we(e,"unknown_code",(n?`\`${t}\` is not a recognised code (did you mean \`${n}\`?)`:`\`${t}\` is not a recognised code`)+"\nhttps://svelte.dev/e/unknown_code")}function We(e){we(e,"options_deprecated_accessors","The `accessors` option has been deprecated. It will have no effect in runes mode\nhttps://svelte.dev/e/options_deprecated_accessors")}function Ge(e){we(e,"options_deprecated_immutable","The `immutable` option has been deprecated. It will have no effect in runes mode\nhttps://svelte.dev/e/options_deprecated_immutable")}function Ke(e){we(e,"options_missing_custom_element","The `customElement` option is used when generating a custom element. Did you forget the `customElement: true` compile option?\nhttps://svelte.dev/e/options_missing_custom_element")}function Xe(e){we(e,"options_renamed_ssr_dom",'`generate: "dom"` and `generate: "ssr"` options have been renamed to "client" and "server" respectively\nhttps://svelte.dev/e/options_renamed_ssr_dom')}function Qe(e,t){we(e,"export_let_unused",`Component has unused export property '${t}'. If it is for external reference only, please consider using \`export const ${t}\`\nhttps://svelte.dev/e/export_let_unused`)}function Ye(e,t){we(e,"non_reactive_update",`\`${t}\` is updated, but is not declared with \`$state(...)\`. Changing its value will not correctly trigger updates\nhttps://svelte.dev/e/non_reactive_update`)}function Je(e,t){we(e,"store_rune_conflict",`It looks like you're using the \`$${t}\` rune, but there is a local binding called \`${t}\`. Referencing a local variable with a \`$\` prefix will create a store subscription. Please rename \`${t}\` to avoid the ambiguity\nhttps://svelte.dev/e/store_rune_conflict`)}function Ze(e){we(e,"attribute_avoid_is",'The "is" attribute is not supported cross-browser and should be avoided\nhttps://svelte.dev/e/attribute_avoid_is')}function et(e,t){we(e,"attribute_global_event_reference",`You are referencing \`globalThis.${t}\`. Did you forget to declare a variable with that name?\nhttps://svelte.dev/e/attribute_global_event_reference`)}function tt(e,t,n){we(e,"attribute_invalid_property_name",`'${t}' is not a valid HTML attribute. Did you mean '${n}'?\nhttps://svelte.dev/e/attribute_invalid_property_name`)}function nt(e,t){we(e,"node_invalid_placement_ssr",`${t}. When rendering this component on the server, the resulting HTML will be modified by the browser (by moving, removing, or inserting elements), likely resulting in a \`hydration_mismatch\` warning\nhttps://svelte.dev/e/node_invalid_placement_ssr`)}function st(e){we(e,"script_unknown_attribute","Unrecognized 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")}const rt=/^\s*svelte-ignore\s/,at={"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"},it=["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","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","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_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"].concat(["state_snapshot_uncloneable","binding_property_non_reactive","hydration_attribute_changed","hydration_html_changed","ownership_invalid_binding","ownership_invalid_mutation"]);function ot(e,t,n){const s=rt.exec(t);if(!s)return[];let r=s[0].length;e+=r;const a=[];if(n)for(const n of t.slice(r).matchAll(/([\w$-]+)(,)?/gm)){const t=n[1];if(it.includes(t))a.push(t);else{const s=at[t]??t.replace(/-/g,"_"),r=e+n.index,a=r+t.length;if(it.includes(s))Ue({start:r,end:a},t,s);else{ze({start:r,end:a},t,T(t,it))}}if(!n[2])break}else for(const e of t.slice(r).matchAll(/[\w$-]+/gm)){const t=e[0];if(a.push(t),!it.includes(t)){const e=at[t]??t.replace(/-/g,"_");it.includes(e)&&a.push(e)}}return a}function lt(e){const t=rt.exec(e);if(!t)return e;const n=t[0].length;return e.substring(0,n)+e.substring(n).replace(/\w+-\w+(-\w+)*/g,((t,s,r)=>{let a=at[t]??t.replace(/-/g,"_");return/\w+-\w+/.test(e.substring(n+r+t.length))&&(a+=","),a}))}function ct(e){const t=e.at(0),n=e.at(-1);"Text"===t?.type&&(p.test(t.data)?t.data=t.data.replace(o,""):e.shift()),"Text"===n?.type&&(p.test(n.data)?n.data=n.data.replace(c,""):e.pop())}var pt=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],ut=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],dt="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA--zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ht={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},mt="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",ft={5:mt,"5module":mt+" export import",6:mt+" const class extends export import super"},yt=/^in(stanceof)?$/,vt=new RegExp("["+dt+"]"),gt=new RegExp("["+dt+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍--9_・]");function bt(e,t){for(var n=65536,s=0;s<t.length;s+=2){if((n+=t[s])>e)return!1;if((n+=t[s+1])>=e)return!0}return!1}function _t(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&vt.test(String.fromCharCode(e)):!1!==t&&bt(e,ut)))}function xt(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&gt.test(String.fromCharCode(e)):!1!==t&&(bt(e,ut)||bt(e,pt)))))}var Ct=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function wt(e,t){return new Ct(e,{beforeExpr:!0,binop:t})}var kt={beforeExpr:!0},St={startsExpr:!0},Pt={};function Et(e,t){return void 0===t&&(t={}),t.keyword=e,Pt[e]=new Ct(e,t)}var Tt={num:new Ct("num",St),regexp:new Ct("regexp",St),string:new Ct("string",St),name:new Ct("name",St),privateId:new Ct("privateId",St),eof:new Ct("eof"),bracketL:new Ct("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Ct("]"),braceL:new Ct("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Ct("}"),parenL:new Ct("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Ct(")"),comma:new Ct(",",kt),semi:new Ct(";",kt),colon:new Ct(":",kt),dot:new Ct("."),question:new Ct("?",kt),questionDot:new Ct("?."),arrow:new Ct("=>",kt),template:new Ct("template"),invalidTemplate:new Ct("invalidTemplate"),ellipsis:new Ct("...",kt),backQuote:new Ct("`",St),dollarBraceL:new Ct("${",{beforeExpr:!0,startsExpr:!0}),eq:new Ct("=",{beforeExpr:!0,isAssign:!0}),assign:new Ct("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Ct("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Ct("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:wt("||",1),logicalAND:wt("&&",2),bitwiseOR:wt("|",3),bitwiseXOR:wt("^",4),bitwiseAND:wt("&",5),equality:wt("==/!=/===/!==",6),relational:wt("</>/<=/>=",7),bitShift:wt("<</>>/>>>",8),plusMin:new Ct("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:wt("%",10),star:wt("*",10),slash:wt("/",10),starstar:new Ct("**",{beforeExpr:!0}),coalesce:wt("??",1),_break:Et("break"),_case:Et("case",kt),_catch:Et("catch"),_continue:Et("continue"),_debugger:Et("debugger"),_default:Et("default",kt),_do:Et("do",{isLoop:!0,beforeExpr:!0}),_else:Et("else",kt),_finally:Et("finally"),_for:Et("for",{isLoop:!0}),_function:Et("function",St),_if:Et("if"),_return:Et("return",kt),_switch:Et("switch"),_throw:Et("throw",kt),_try:Et("try"),_var:Et("var"),_const:Et("const"),_while:Et("while",{isLoop:!0}),_with:Et("with"),_new:Et("new",{beforeExpr:!0,startsExpr:!0}),_this:Et("this",St),_super:Et("super",St),_class:Et("class",St),_extends:Et("extends",kt),_export:Et("export"),_import:Et("import",St),_null:Et("null",St),_true:Et("true",St),_false:Et("false",St),_in:Et("in",{beforeExpr:!0,binop:7}),_instanceof:Et("instanceof",{beforeExpr:!0,binop:7}),_typeof:Et("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Et("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Et("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},At=/\r\n?|\n|\u2028|\u2029/,$t=new RegExp(At.source,"g");function It(e){return 10===e||13===e||8232===e||8233===e}function Rt(e,t,n){void 0===n&&(n=e.length);for(var s=t;s<n;s++){var r=e.charCodeAt(s);if(It(r))return s<n-1&&13===r&&10===e.charCodeAt(s+1)?s+2:s+1}return-1}var qt=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Lt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Mt=Object.prototype,Ot=Mt.hasOwnProperty,Nt=Mt.toString,Dt=Object.hasOwn||function(e,t){return Ot.call(e,t)},jt=Array.isArray||function(e){return"[object Array]"===Nt.call(e)},Bt=Object.create(null);function Ft(e){return Bt[e]||(Bt[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function Vt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var Ht=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ut=function(e,t){this.line=e,this.column=t};Ut.prototype.offset=function(e){return new Ut(this.line,this.column+e)};var zt=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function Wt(e,t){for(var n=1,s=0;;){var r=Rt(e,s,t);if(r<0)return new Ut(n,t-s);++n,s=r}}var Gt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Kt=!1;function Xt(e){var t={};for(var n in Gt)t[n]=e&&Dt(e,n)?e[n]:Gt[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!Kt&&"object"==typeof console&&console.warn&&(Kt=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),jt(t.onToken)){var s=t.onToken;t.onToken=function(e){return s.push(e)}}return jt(t.onComment)&&(t.onComment=function(e,t){return function(n,s,r,a,i,o){var l={type:n?"Block":"Line",value:s,start:r,end:a};e.locations&&(l.loc=new zt(this,i,o)),e.ranges&&(l.range=[r,a]),t.push(l)}}(t,t.onComment)),t}var Qt=256;function Yt(e,t){return 2|(e?4:0)|(t?8:0)}var Jt=function(e,t,n){this.options=e=Xt(e),this.sourceFile=e.sourceFile,this.keywords=Ft(ft[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var s="";!0!==e.allowReserved&&(s=ht[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(s+=" await")),this.reservedWords=Ft(s);var r=(s?s+" ":"")+ht.strict;this.reservedWordsStrict=Ft(r),this.reservedWordsStrictBind=Ft(r+" "+ht.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(At).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=Tt.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},Zt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Jt.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Zt.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Zt.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Zt.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Zt.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Qt)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Zt.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(64&t)>0||n||this.options.allowSuperOutsideMethod},Zt.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Zt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Zt.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(258&t)>0||n},Zt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Qt)>0},Jt.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,s=0;s<e.length;s++)n=e[s](n);return n},Jt.parse=function(e,t){return new this(t,e).parse()},Jt.parseExpressionAt=function(e,t,n){var s=new this(n,e,t);return s.nextToken(),s.parseExpression()},Jt.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(Jt.prototype,Zt);var en=Jt.prototype,tn=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;en.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Lt.lastIndex=e,e+=Lt.exec(this.input)[0].length;var t=tn.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){Lt.lastIndex=e+t[0].length;var n=Lt.exec(this.input),s=n.index+n[0].length,r=this.input.charAt(s);return";"===r||"}"===r||At.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(s+1))}e+=t[0].length,Lt.lastIndex=e,e+=Lt.exec(this.input)[0].length,";"===this.input[e]&&e++}},en.eat=function(e){return this.type===e&&(this.next(),!0)},en.isContextual=function(e){return this.type===Tt.name&&this.value===e&&!this.containsEsc},en.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},en.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},en.canInsertSemicolon=function(){return this.type===Tt.eof||this.type===Tt.braceR||At.test(this.input.slice(this.lastTokEnd,this.start))},en.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},en.semicolon=function(){this.eat(Tt.semi)||this.insertSemicolon()||this.unexpected()},en.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},en.expect=function(e){this.eat(e)||this.unexpected()},en.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var nn=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};en.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}},en.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,s=e.doubleProto;if(!t)return n>=0||s>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},en.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},en.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var sn=Jt.prototype;sn.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==Tt.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var s=0,r=Object.keys(this.undefinedExports);s<r.length;s+=1){var a=r[s];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var rn={kind:"loop"},an={kind:"switch"};sn.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Lt.lastIndex=this.pos;var t=Lt.exec(this.input),n=this.pos+t[0].length,s=this.input.charCodeAt(n);if(91===s||92===s)return!0;if(e)return!1;if(123===s||s>55295&&s<56320)return!0;if(_t(s,!0)){for(var r=n+1;xt(s=this.input.charCodeAt(r),!0);)++r;if(92===s||s>55295&&s<56320)return!0;var a=this.input.slice(n,r);if(!yt.test(a))return!0}return!1},sn.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Lt.lastIndex=this.pos;var e,t=Lt.exec(this.input),n=this.pos+t[0].length;return!(At.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(xt(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},sn.parseStatement=function(e,t,n){var s,r=this.type,a=this.startNode();switch(this.isLet(e)&&(r=Tt._var,s="let"),r){case Tt._break:case Tt._continue:return this.parseBreakContinueStatement(a,r.keyword);case Tt._debugger:return this.parseDebuggerStatement(a);case Tt._do:return this.parseDoStatement(a);case Tt._for:return this.parseForStatement(a);case Tt._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!e);case Tt._class:return e&&this.unexpected(),this.parseClass(a,!0);case Tt._if:return this.parseIfStatement(a);case Tt._return:return this.parseReturnStatement(a);case Tt._switch:return this.parseSwitchStatement(a);case Tt._throw:return this.parseThrowStatement(a);case Tt._try:return this.parseTryStatement(a);case Tt._const:case Tt._var:return s=s||this.value,e&&"var"!==s&&this.unexpected(),this.parseVarStatement(a,s);case Tt._while:return this.parseWhileStatement(a);case Tt._with:return this.parseWithStatement(a);case Tt.braceL:return this.parseBlock(!0,a);case Tt.semi:return this.parseEmptyStatement(a);case Tt._export:case Tt._import:if(this.options.ecmaVersion>10&&r===Tt._import){Lt.lastIndex=this.pos;var i=Lt.exec(this.input),o=this.pos+i[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(a,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===Tt._import?this.parseImport(a):this.parseExport(a,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(a,!0,!e);var c=this.value,p=this.parseExpression();return r===Tt.name&&"Identifier"===p.type&&this.eat(Tt.colon)?this.parseLabeledStatement(a,c,p,e):this.parseExpressionStatement(a,p)}},sn.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(Tt.semi)||this.insertSemicolon()?e.label=null:this.type!==Tt.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var r=this.labels[s];if(null==e.label||r.name===e.label.name){if(null!=r.kind&&(n||"loop"===r.kind))break;if(e.label&&n)break}}return s===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")},sn.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},sn.parseDoStatement=function(e){return this.next(),this.labels.push(rn),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(Tt._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(Tt.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},sn.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(rn),this.enterScope(0),this.expect(Tt.parenL),this.type===Tt.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===Tt._var||this.type===Tt._const||n){var s=this.startNode(),r=n?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),(this.type===Tt._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===s.declarations.length?(this.options.ecmaVersion>=9&&(this.type===Tt._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,s)):(t>-1&&this.unexpected(t),this.parseFor(e,s))}var a=this.isContextual("let"),i=!1,o=this.containsEsc,l=new nn,c=this.start,p=t>-1?this.parseExprSubscripts(l,"await"):this.parseExpression(!0,l);return this.type===Tt._in||(i=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===Tt._in&&this.unexpected(t),e.await=!0):i&&this.options.ecmaVersion>=8&&(p.start!==c||o||"Identifier"!==p.type||"async"!==p.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),a&&i&&this.raise(p.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(p,!1,l),this.checkLValPattern(p),this.parseForIn(e,p)):(this.checkExpressionErrors(l,!0),t>-1&&this.unexpected(t),this.parseFor(e,p))},sn.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,ln|(n?0:cn),!1,t)},sn.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(Tt._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},sn.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(Tt.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},sn.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(Tt.braceL),this.labels.push(an),this.enterScope(0);for(var n=!1;this.type!==Tt.braceR;)if(this.type===Tt._case||this.type===Tt._default){var s=this.type===Tt._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(Tt.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},sn.parseThrowStatement=function(e){return this.next(),At.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var on=[];sn.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(Tt.parenR),e},sn.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===Tt._catch){var t=this.startNode();this.next(),this.eat(Tt.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(Tt._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},sn.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")},sn.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(rn),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},sn.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},sn.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},sn.parseLabeledStatement=function(e,t,n,s){for(var r=0,a=this.labels;r<a.length;r+=1){a[r].name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var i=this.type.isLoop?"loop":this.type===Tt._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var l=this.labels[o];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=i}return this.labels.push({name:t,kind:i,statementStart:this.start}),e.body=this.parseStatement(s?-1===s.indexOf("label")?s+"label":s:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},sn.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},sn.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(Tt.braceL),e&&this.enterScope(0);this.type!==Tt.braceR;){var s=this.parseStatement(null);t.body.push(s)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},sn.parseFor=function(e,t){return e.init=t,this.expect(Tt.semi),e.test=this.type===Tt.semi?null:this.parseExpression(),this.expect(Tt.semi),e.update=this.type===Tt.parenR?null:this.parseExpression(),this.expect(Tt.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},sn.parseForIn=function(e,t){var n=this.type===Tt._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(Tt.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},sn.parseVar=function(e,t,n,s){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(Tt.eq)?r.init=this.parseMaybeAssign(t):s||"const"!==n||this.type===Tt._in||this.options.ecmaVersion>=6&&this.isContextual("of")?s||"Identifier"===r.id.type||t&&(this.type===Tt._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(Tt.comma))break}return e},sn.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var ln=1,cn=2;function pn(e,t){var n=t.key.name,s=e[n],r="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(r=(t.static?"s":"i")+t.kind),"iget"===s&&"iset"===r||"iset"===s&&"iget"===r||"sget"===s&&"sset"===r||"sset"===s&&"sget"===r?(e[n]="true",!1):!!s||(e[n]=r,!1)}function un(e,t){var n=e.computed,s=e.key;return!n&&("Identifier"===s.type&&s.name===t||"Literal"===s.type&&s.value===t)}sn.parseFunction=function(e,t,n,s,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===Tt.star&&t&cn&&this.unexpected(),e.generator=this.eat(Tt.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&ln&&(e.id=4&t&&this.type!==Tt.name?null:this.parseIdent(),!e.id||t&cn||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var a=this.yieldPos,i=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Yt(e.async,e.generator)),t&ln||(e.id=this.type===Tt.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,r),this.yieldPos=a,this.awaitPos=i,this.awaitIdentPos=o,this.finishNode(e,t&ln?"FunctionDeclaration":"FunctionExpression")},sn.parseFunctionParams=function(e){this.expect(Tt.parenL),e.params=this.parseBindingList(Tt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},sn.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),r=this.startNode(),a=!1;for(r.body=[],this.expect(Tt.braceL);this.type!==Tt.braceR;){var i=this.parseClassElement(null!==e.superClass);i&&(r.body.push(i),"MethodDefinition"===i.type&&"constructor"===i.kind?(a&&this.raiseRecoverable(i.start,"Duplicate constructor in the same class"),a=!0):i.key&&"PrivateIdentifier"===i.key.type&&pn(s,i)&&this.raiseRecoverable(i.key.start,"Identifier '#"+i.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},sn.parseClassElement=function(e){if(this.eat(Tt.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),s="",r=!1,a=!1,i="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(Tt.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===Tt.star?o=!0:s="static"}if(n.static=o,!s&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==Tt.star||this.canInsertSemicolon()?s="async":a=!0),!s&&(t>=9||!a)&&this.eat(Tt.star)&&(r=!0),!s&&!a&&!r){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?i=l:s=l)}if(s?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=s,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===Tt.parenL||"method"!==i||r||a){var c=!n.static&&un(n,"constructor"),p=c&&e;c&&"method"!==i&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=c?"constructor":i,this.parseClassMethod(n,r,a,p)}else this.parseClassField(n);return n},sn.isClassElementNameStart=function(){return this.type===Tt.name||this.type===Tt.privateId||this.type===Tt.num||this.type===Tt.string||this.type===Tt.bracketL||this.type.keyword},sn.parseClassElementName=function(e){this.type===Tt.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},sn.parseClassMethod=function(e,t,n,s){var r=e.key;"constructor"===e.kind?(t&&this.raise(r.start,"Constructor can't be a generator"),n&&this.raise(r.start,"Constructor can't be an async method")):e.static&&un(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var a=e.value=this.parseMethod(t,n,s);return"get"===e.kind&&0!==a.params.length&&this.raiseRecoverable(a.start,"getter should have no params"),"set"===e.kind&&1!==a.params.length&&this.raiseRecoverable(a.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===a.params[0].type&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},sn.parseClassField=function(e){if(un(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&un(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(Tt.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},sn.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==Tt.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},sn.parseClassId=function(e,t){this.type===Tt.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},sn.parseClassSuper=function(e){e.superClass=this.eat(Tt._extends)?this.parseExprSubscripts(null,!1):null},sn.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},sn.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,r=0===s?null:this.privateNameStack[s-1],a=0;a<n.length;++a){var i=n[a];Dt(t,i.name)||(r?r.used.push(i):this.raiseRecoverable(i.start,"Private field '#"+i.name+"' must be declared in an enclosing class"))}},sn.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==Tt.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},sn.parseExport=function(e,t){if(this.next(),this.eat(Tt.star))return this.parseExportAllDeclaration(e,t);if(this.eat(Tt._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==Tt.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,s=e.specifiers;n<s.length;n+=1){var r=s[n];this.checkUnreserved(r.local),this.checkLocalExport(r.local),"Literal"===r.local.type&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},sn.parseExportDeclaration=function(e){return this.parseStatement(null)},sn.parseExportDefaultDeclaration=function(){var e;if(this.type===Tt._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|ln,!1,e)}if(this.type===Tt._class){var n=this.startNode();return this.parseClass(n,"nullableID")}var s=this.parseMaybeAssign();return this.semicolon(),s},sn.checkExport=function(e,t,n){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),Dt(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},sn.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t,t.start);else if("ObjectPattern"===n)for(var s=0,r=t.properties;s<r.length;s+=1){var a=r[s];this.checkPatternExport(e,a)}else if("ArrayPattern"===n)for(var i=0,o=t.elements;i<o.length;i+=1){var l=o[i];l&&this.checkPatternExport(e,l)}else"Property"===n?this.checkPatternExport(e,t.value):"AssignmentPattern"===n?this.checkPatternExport(e,t.left):"RestElement"===n&&this.checkPatternExport(e,t.argument)},sn.checkVariableExport=function(e,t){if(e)for(var n=0,s=t;n<s.length;n+=1){var r=s[n];this.checkPatternExport(e,r.id)}},sn.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},sn.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},sn.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(Tt.braceL);!this.eat(Tt.braceR);){if(n)n=!1;else if(this.expect(Tt.comma),this.afterTrailingComma(Tt.braceR))break;t.push(this.parseExportSpecifier(e))}return t},sn.parseImport=function(e){return this.next(),this.type===Tt.string?(e.specifiers=on,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===Tt.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},sn.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportSpecifier")},sn.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},sn.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportNamespaceSpecifier")},sn.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===Tt.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(Tt.comma)))return e;if(this.type===Tt.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(Tt.braceL);!this.eat(Tt.braceR);){if(t)t=!1;else if(this.expect(Tt.comma),this.afterTrailingComma(Tt.braceR))break;e.push(this.parseImportSpecifier())}return e},sn.parseWithClause=function(){var e=[];if(!this.eat(Tt._with))return e;this.expect(Tt.braceL);for(var t={},n=!0;!this.eat(Tt.braceR);){if(n)n=!1;else if(this.expect(Tt.comma),this.afterTrailingComma(Tt.braceR))break;var s=this.parseImportAttribute(),r="Identifier"===s.key.type?s.key.name:s.key.value;Dt(t,r)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(s)}return e},sn.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===Tt.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(Tt.colon),this.type!==Tt.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},sn.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===Tt.string){var e=this.parseLiteral(this.value);return Ht.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},sn.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},sn.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var dn=Jt.prototype;dn.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var s=0,r=e.properties;s<r.length;s+=1){var a=r[s];this.toAssignable(a,t),"RestElement"!==a.type||"ArrayPattern"!==a.argument.type&&"ObjectPattern"!==a.argument.type||this.raise(a.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e},dn.toAssignableList=function(e,t){for(var n=e.length,s=0;s<n;s++){var r=e[s];r&&this.toAssignable(r,t)}if(n){var a=e[n-1];6===this.options.ecmaVersion&&t&&a&&"RestElement"===a.type&&"Identifier"!==a.argument.type&&this.unexpected(a.argument.start)}return e},dn.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},dn.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==Tt.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},dn.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case Tt.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(Tt.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case Tt.braceL:return this.parseObj(!0)}return this.parseIdent()},dn.parseBindingList=function(e,t,n,s){for(var r=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(Tt.comma),t&&this.type===Tt.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===Tt.ellipsis){var i=this.parseRestBinding();this.parseBindingListItem(i),r.push(i),this.type===Tt.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}r.push(this.parseAssignableListItem(s))}return r},dn.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},dn.parseBindingListItem=function(e){return e},dn.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(Tt.eq))return n;var s=this.startNodeAt(e,t);return s.left=n,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},dn.checkLValSimple=function(e,t,n){void 0===t&&(t=0);var s=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(s?"Binding ":"Assigning to ")+e.name+" in strict mode"),s&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(Dt(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(s?"Binding":"Assigning to")+" rvalue")}},dn.checkLValPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var s=0,r=e.properties;s<r.length;s+=1){var a=r[s];this.checkLValInnerPattern(a,t,n)}break;case"ArrayPattern":for(var i=0,o=e.elements;i<o.length;i+=1){var l=o[i];l&&this.checkLValInnerPattern(l,t,n)}break;default:this.checkLValSimple(e,t,n)}},dn.checkLValInnerPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var hn=function(e,t,n,s,r){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=s,this.generator=!!r},mn={b_stat:new hn("{",!1),b_expr:new hn("{",!0),b_tmpl:new hn("${",!1),p_stat:new hn("(",!1),p_expr:new hn("(",!0),q_tmpl:new hn("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new hn("function",!1),f_expr:new hn("function",!0),f_expr_gen:new hn("function",!0,!1,null,!0),f_gen:new hn("function",!1,!1,null,!0)},fn=Jt.prototype;fn.initialContext=function(){return[mn.b_stat]},fn.curContext=function(){return this.context[this.context.length-1]},fn.braceIsBlock=function(e){var t=this.curContext();return t===mn.f_expr||t===mn.f_stat||(e!==Tt.colon||t!==mn.b_stat&&t!==mn.b_expr?e===Tt._return||e===Tt.name&&this.exprAllowed?At.test(this.input.slice(this.lastTokEnd,this.start)):e===Tt._else||e===Tt.semi||e===Tt.eof||e===Tt.parenR||e===Tt.arrow||(e===Tt.braceL?t===mn.b_stat:e!==Tt._var&&e!==Tt._const&&e!==Tt.name&&!this.exprAllowed):!t.isExpr)},fn.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},fn.updateContext=function(e){var t,n=this.type;n.keyword&&e===Tt.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},fn.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},Tt.parenR.updateContext=Tt.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===mn.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},Tt.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?mn.b_stat:mn.b_expr),this.exprAllowed=!0},Tt.dollarBraceL.updateContext=function(){this.context.push(mn.b_tmpl),this.exprAllowed=!0},Tt.parenL.updateContext=function(e){var t=e===Tt._if||e===Tt._for||e===Tt._with||e===Tt._while;this.context.push(t?mn.p_stat:mn.p_expr),this.exprAllowed=!0},Tt.incDec.updateContext=function(){},Tt._function.updateContext=Tt._class.updateContext=function(e){!e.beforeExpr||e===Tt._else||e===Tt.semi&&this.curContext()!==mn.p_stat||e===Tt._return&&At.test(this.input.slice(this.lastTokEnd,this.start))||(e===Tt.colon||e===Tt.braceL)&&this.curContext()===mn.b_stat?this.context.push(mn.f_stat):this.context.push(mn.f_expr),this.exprAllowed=!1},Tt.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},Tt.backQuote.updateContext=function(){this.curContext()===mn.q_tmpl?this.context.pop():this.context.push(mn.q_tmpl),this.exprAllowed=!1},Tt.star.updateContext=function(e){if(e===Tt._function){var t=this.context.length-1;this.context[t]===mn.f_expr?this.context[t]=mn.f_expr_gen:this.context[t]=mn.f_gen}this.exprAllowed=!0},Tt.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==Tt.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var yn=Jt.prototype;function vn(e){return"Identifier"===e.type||"ParenthesizedExpression"===e.type&&vn(e.expression)}function gn(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&gn(e.expression)||"ParenthesizedExpression"===e.type&&gn(e.expression)}yn.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var s,r=e.key;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===s&&"init"===a&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),t.proto=!0);else{var i=t[s="$"+s];if(i)("init"===a?this.strict&&i.init||i.get||i.set:i.init||i[a])&&this.raiseRecoverable(r.start,"Redefinition of property");else i=t[s]={init:!1,get:!1,set:!1};i[a]=!0}}},yn.parseExpression=function(e,t){var n=this.start,s=this.startLoc,r=this.parseMaybeAssign(e,t);if(this.type===Tt.comma){var a=this.startNodeAt(n,s);for(a.expressions=[r];this.eat(Tt.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return r},yn.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var s=!1,r=-1,a=-1,i=-1;t?(r=t.parenthesizedAssign,a=t.trailingComma,i=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new nn,s=!0);var o=this.start,l=this.startLoc;this.type!==Tt.parenL&&this.type!==Tt.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var c=this.parseMaybeConditional(e,t);if(n&&(c=n.call(this,c,o,l)),this.type.isAssign){var p=this.startNodeAt(o,l);return p.operator=this.value,this.type===Tt.eq&&(c=this.toAssignable(c,!1,t)),s||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===Tt.eq?this.checkLValPattern(c):this.checkLValSimple(c),p.left=c,this.next(),p.right=this.parseMaybeAssign(e),i>-1&&(t.doubleProto=i),this.finishNode(p,"AssignmentExpression")}return s&&this.checkExpressionErrors(t,!0),r>-1&&(t.parenthesizedAssign=r),a>-1&&(t.trailingComma=a),c},yn.parseMaybeConditional=function(e,t){var n=this.start,s=this.startLoc,r=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return r;if(this.eat(Tt.question)){var a=this.startNodeAt(n,s);return a.test=r,a.consequent=this.parseMaybeAssign(),this.expect(Tt.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return r},yn.parseExprOps=function(e,t){var n=this.start,s=this.startLoc,r=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||r.start===n&&"ArrowFunctionExpression"===r.type?r:this.parseExprOp(r,n,s,-1,e)},yn.parseExprOp=function(e,t,n,s,r){var a=this.type.binop;if(null!=a&&(!r||this.type!==Tt._in)&&a>s){var i=this.type===Tt.logicalOR||this.type===Tt.logicalAND,o=this.type===Tt.coalesce;o&&(a=Tt.logicalAND.binop);var l=this.value;this.next();var c=this.start,p=this.startLoc,u=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),c,p,a,r),d=this.buildBinary(t,n,e,u,l,i||o);return(i&&this.type===Tt.coalesce||o&&(this.type===Tt.logicalOR||this.type===Tt.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,n,s,r)}return e},yn.buildBinary=function(e,t,n,s,r,a){"PrivateIdentifier"===s.type&&this.raise(s.start,"Private identifier can only be left side of binary expression");var i=this.startNodeAt(e,t);return i.left=n,i.operator=r,i.right=s,this.finishNode(i,a?"LogicalExpression":"BinaryExpression")},yn.parseMaybeUnary=function(e,t,n,s){var r,a=this.start,i=this.startLoc;if(this.isContextual("await")&&this.canAwait)r=this.parseAwait(s),t=!0;else if(this.type.prefix){var o=this.startNode(),l=this.type===Tt.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,l,s),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&vn(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&gn(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,r=this.finishNode(o,l?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==Tt.privateId){if(r=this.parseExprSubscripts(e,s),this.checkExpressionErrors(e))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(a,i);c.operator=this.value,c.prefix=!1,c.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(c,"UpdateExpression")}}else(s||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),r=this.parsePrivateIdent(),this.type!==Tt._in&&this.unexpected();return n||!this.eat(Tt.starstar)?r:t?void this.unexpected(this.lastTokStart):this.buildBinary(a,i,r,this.parseMaybeUnary(null,!1,!1,s),"**",!1)},yn.parseExprSubscripts=function(e,t){var n=this.start,s=this.startLoc,r=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return r;var a=this.parseSubscripts(r,n,s,!1,t);return e&&"MemberExpression"===a.type&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a},yn.parseSubscripts=function(e,t,n,s,r){for(var a=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,i=!1;;){var o=this.parseSubscript(e,t,n,s,a,i,r);if(o.optional&&(i=!0),o===e||"ArrowFunctionExpression"===o.type){if(i){var l=this.startNodeAt(t,n);l.expression=o,o=this.finishNode(l,"ChainExpression")}return o}e=o}},yn.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(Tt.arrow)},yn.parseSubscriptAsyncArrow=function(e,t,n,s){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,s)},yn.parseSubscript=function(e,t,n,s,r,a,i){var o=this.options.ecmaVersion>=11,l=o&&this.eat(Tt.questionDot);s&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(Tt.bracketL);if(c||l&&this.type!==Tt.parenL&&this.type!==Tt.backQuote||this.eat(Tt.dot)){var p=this.startNodeAt(t,n);p.object=e,c?(p.property=this.parseExpression(),this.expect(Tt.bracketR)):this.type===Tt.privateId&&"Super"!==e.type?p.property=this.parsePrivateIdent():p.property=this.parseIdent("never"!==this.options.allowReserved),p.computed=!!c,o&&(p.optional=l),e=this.finishNode(p,"MemberExpression")}else if(!s&&this.eat(Tt.parenL)){var u=new nn,d=this.yieldPos,h=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(Tt.parenR,this.options.ecmaVersion>=8,!1,u);if(r&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=h,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(t,n,f,i);this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=h||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var y=this.startNodeAt(t,n);y.callee=e,y.arguments=f,o&&(y.optional=l),e=this.finishNode(y,"CallExpression")}else if(this.type===Tt.backQuote){(l||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var v=this.startNodeAt(t,n);v.tag=e,v.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(v,"TaggedTemplateExpression")}return e},yn.parseExprAtom=function(e,t,n){this.type===Tt.slash&&this.readRegexp();var s,r=this.potentialArrowAt===this.start;switch(this.type){case Tt._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type!==Tt.parenL||this.allowDirectSuper||this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==Tt.dot&&this.type!==Tt.bracketL&&this.type!==Tt.parenL&&this.unexpected(),this.finishNode(s,"Super");case Tt._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case Tt.name:var a=this.start,i=this.startLoc,o=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(Tt._function))return this.overrideContext(mn.f_expr),this.parseFunction(this.startNodeAt(a,i),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(Tt.arrow))return this.parseArrowExpression(this.startNodeAt(a,i),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===Tt.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(Tt.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,i),[l],!0,t)}return l;case Tt.regexp:var c=this.value;return(s=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},s;case Tt.num:case Tt.string:return this.parseLiteral(this.value);case Tt._null:case Tt._true:case Tt._false:return(s=this.startNode()).value=this.type===Tt._null?null:this.type===Tt._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case Tt.parenL:var p=this.start,u=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),u;case Tt.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(Tt.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case Tt.braceL:return this.overrideContext(mn.b_expr),this.parseObj(!1,e);case Tt._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case Tt._class:return this.parseClass(this.startNode(),!1);case Tt._new:return this.parseNew();case Tt.backQuote:return this.parseTemplate();case Tt._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},yn.parseExprAtomDefault=function(){this.unexpected()},yn.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===Tt.parenL&&!e)return this.parseDynamicImport(t);if(this.type===Tt.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name="import",t.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(t)}this.unexpected()},yn.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(Tt.parenR)?e.options=null:(this.expect(Tt.comma),this.afterTrailingComma(Tt.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(Tt.parenR)||(this.expect(Tt.comma),this.afterTrailingComma(Tt.parenR)||this.unexpected())));else if(!this.eat(Tt.parenR)){var t=this.start;this.eat(Tt.comma)&&this.eat(Tt.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},yn.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},yn.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},yn.parseParenExpression=function(){this.expect(Tt.parenL);var e=this.parseExpression();return this.expect(Tt.parenR),e},yn.shouldParseArrow=function(e){return!this.canInsertSemicolon()},yn.parseParenAndDistinguishExpression=function(e,t){var n,s=this.start,r=this.startLoc,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var i,o=this.start,l=this.startLoc,c=[],p=!0,u=!1,d=new nn,h=this.yieldPos,m=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==Tt.parenR;){if(p?p=!1:this.expect(Tt.comma),a&&this.afterTrailingComma(Tt.parenR,!0)){u=!0;break}if(this.type===Tt.ellipsis){i=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===Tt.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var f=this.lastTokEnd,y=this.lastTokEndLoc;if(this.expect(Tt.parenR),e&&this.shouldParseArrow(c)&&this.eat(Tt.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=m,this.parseParenArrowList(s,r,c,t);c.length&&!u||this.unexpected(this.lastTokStart),i&&this.unexpected(i),this.checkExpressionErrors(d,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=m||this.awaitPos,c.length>1?((n=this.startNodeAt(o,l)).expressions=c,this.finishNodeAt(n,"SequenceExpression",f,y)):n=c[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(s,r);return v.expression=n,this.finishNode(v,"ParenthesizedExpression")}return n},yn.parseParenItem=function(e){return e},yn.parseParenArrowList=function(e,t,n,s){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,s)};var bn=[];yn.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===Tt.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var s=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,r,!0,!1),this.eat(Tt.parenL)?e.arguments=this.parseExprList(Tt.parenR,this.options.ecmaVersion>=8,!1):e.arguments=bn,this.finishNode(e,"NewExpression")},yn.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===Tt.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===Tt.backQuote,this.finishNode(n,"TemplateElement")},yn.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(n.quasis=[s];!s.tail;)this.type===Tt.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(Tt.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(Tt.braceR),n.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},yn.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===Tt.name||this.type===Tt.num||this.type===Tt.string||this.type===Tt.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===Tt.star)&&!At.test(this.input.slice(this.lastTokEnd,this.start))},yn.parseObj=function(e,t){var n=this.startNode(),s=!0,r={};for(n.properties=[],this.next();!this.eat(Tt.braceR);){if(s)s=!1;else if(this.expect(Tt.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(Tt.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,r,t),n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},yn.parseProperty=function(e,t){var n,s,r,a,i=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(Tt.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===Tt.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===Tt.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(r=this.start,a=this.startLoc),e||(n=this.eat(Tt.star)));var o=this.containsEsc;return this.parsePropertyName(i),!e&&!o&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(i)?(s=!0,n=this.options.ecmaVersion>=9&&this.eat(Tt.star),this.parsePropertyName(i)):s=!1,this.parsePropertyValue(i,e,n,s,r,a,t,o),this.finishNode(i,"Property")},yn.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t="get"===e.kind?0:1;if(e.value.params.length!==t){var n=e.value.start;"get"===e.kind?this.raiseRecoverable(n,"getter should have no params"):this.raiseRecoverable(n,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},yn.parsePropertyValue=function(e,t,n,s,r,a,i,o){(n||s)&&this.type===Tt.colon&&this.unexpected(),this.eat(Tt.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,i),e.kind="init"):this.options.ecmaVersion>=6&&this.type===Tt.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,s)):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===Tt.comma||this.type===Tt.braceR||this.type===Tt.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||s)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),e.kind="init",t?e.value=this.parseMaybeDefault(r,a,this.copyNode(e.key)):this.type===Tt.eq&&i?(i.shorthandAssign<0&&(i.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected():((n||s)&&this.unexpected(),this.parseGetterSetter(e))},yn.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(Tt.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(Tt.bracketR),e.key;e.computed=!1}return e.key=this.type===Tt.num||this.type===Tt.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},yn.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},yn.parseMethod=function(e,t,n){var s=this.startNode(),r=this.yieldPos,a=this.awaitPos,i=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|Yt(t,s.generator)|(n?128:0)),this.expect(Tt.parenL),s.params=this.parseBindingList(Tt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=i,this.finishNode(s,"FunctionExpression")},yn.parseArrowExpression=function(e,t,n,s){var r=this.yieldPos,a=this.awaitPos,i=this.awaitIdentPos;return this.enterScope(16|Yt(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=i,this.finishNode(e,"ArrowFunctionExpression")},yn.parseFunctionBody=function(e,t,n,s){var r=t&&this.type!==Tt.braceL,a=this.strict,i=!1;if(r)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);a&&!o||(i=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],i&&(this.strict=!0),this.checkParams(e,!a&&!i&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,i&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},yn.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){if("Identifier"!==n[t].type)return!1}return!0},yn.checkParams=function(e,t){for(var n=Object.create(null),s=0,r=e.params;s<r.length;s+=1){var a=r[s];this.checkLValInnerPattern(a,1,t?null:n)}},yn.parseExprList=function(e,t,n,s){for(var r=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(Tt.comma),t&&this.afterTrailingComma(e))break;var i=void 0;n&&this.type===Tt.comma?i=null:this.type===Tt.ellipsis?(i=this.parseSpread(s),s&&this.type===Tt.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):i=this.parseMaybeAssign(!1,s),r.push(i)}return r},yn.checkUnreserved=function(e){var t=e.start,n=e.end,s=e.name;(this.inGenerator&&"yield"===s&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===s&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===s&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==s&&"await"!==s||this.raise(t,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(t,"Unexpected keyword '"+s+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,n).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(s)&&(this.inAsync||"await"!==s||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+s+"' is reserved"))},yn.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},yn.parseIdentNode=function(){var e=this.startNode();return this.type===Tt.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,"class"!==e.name&&"function"!==e.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop(),this.type=Tt.name):this.unexpected(),e},yn.parsePrivateIdent=function(){var e=this.startNode();return this.type===Tt.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},yn.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===Tt.semi||this.canInsertSemicolon()||this.type!==Tt.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(Tt.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},yn.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var _n=Jt.prototype;_n.raise=function(e,t){var n=Wt(this.input,e);t+=" ("+n.line+":"+n.column+")";var s=new SyntaxError(t);throw s.pos=e,s.loc=n,s.raisedAt=this.pos,s},_n.raiseRecoverable=_n.raise,_n.curPosition=function(){if(this.options.locations)return new Ut(this.curLine,this.pos-this.lineStart)};var xn=Jt.prototype,Cn=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};xn.enterScope=function(e){this.scopeStack.push(new Cn(e))},xn.exitScope=function(){this.scopeStack.pop()},xn.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},xn.declareName=function(e,t,n){var s=!1;if(2===t){var r=this.currentScope();s=r.lexical.indexOf(e)>-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&1&r.flags&&delete this.undefinedExports[e]}else if(4===t){this.currentScope().lexical.push(e)}else if(3===t){var a=this.currentScope();s=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var i=this.scopeStack.length-1;i>=0;--i){var o=this.scopeStack[i];if(o.lexical.indexOf(e)>-1&&!(32&o.flags&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){s=!0;break}if(o.var.push(e),this.inModule&&1&o.flags&&delete this.undefinedExports[e],259&o.flags)break}s&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},xn.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},xn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},xn.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},xn.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags&&!(16&t.flags))return t}};var wn=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new zt(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},kn=Jt.prototype;function Sn(e,t,n,s){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=s),this.options.ranges&&(e.range[1]=n),e}kn.startNode=function(){return new wn(this,this.start,this.startLoc)},kn.startNodeAt=function(e,t){return new wn(this,e,t)},kn.finishNode=function(e,t){return Sn.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},kn.finishNodeAt=function(e,t,n,s){return Sn.call(this,e,t,n,s)},kn.copyNode=function(e){var t=new wn(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var Pn="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",En=Pn+" Extended_Pictographic",Tn=En+" EBase EComp EMod EPres ExtPict",An={9:Pn,10:En,11:En,12:Tn,13:Tn,14:Tn},$n={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},In="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Rn="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",qn=Rn+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ln=qn+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Mn=Ln+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",On=Mn+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Nn={9:Rn,10:qn,11:Ln,12:Mn,13:On,14:On+" Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz"},Dn={};function jn(e){var t=Dn[e]={binary:Ft(An[e]+" "+In),binaryOfStrings:Ft($n[e]),nonBinary:{General_Category:Ft(In),Script:Ft(Nn[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var Bn=0,Fn=[9,10,11,12,13,14];Bn<Fn.length;Bn+=1){jn(Fn[Bn])}var Vn=Jt.prototype,Hn=function(e,t){this.parent=e,this.base=t||this};Hn.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var n=e;n;n=n.parent)if(t.base===n.base&&t!==n)return!0;return!1},Hn.prototype.sibling=function(){return new Hn(this.parent,this.base)};var Un=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Dn[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function zn(e){return 105===e||109===e||115===e}function Wn(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Gn(e){return e>=65&&e<=90||e>=97&&e<=122}Un.prototype.reset=function(e,t,n){var s=-1!==n.indexOf("v"),r=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,s&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=r&&this.parser.options.ecmaVersion>=9)},Un.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Un.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,s=n.length;if(e>=s)return-1;var r=n.charCodeAt(e);if(!t&&!this.switchU||r<=55295||r>=57344||e+1>=s)return r;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(r<<10)+a-56613888:r},Un.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,s=n.length;if(e>=s)return s;var r,a=n.charCodeAt(e);return!t&&!this.switchU||a<=55295||a>=57344||e+1>=s||(r=n.charCodeAt(e+1))<56320||r>57343?e+1:e+2},Un.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},Un.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Un.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Un.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Un.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var n=this.pos,s=0,r=e;s<r.length;s+=1){var a=r[s],i=this.at(n,t);if(-1===i||i!==a)return!1;n=this.nextIndex(n,t)}return this.pos=n,!0},Vn.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,s=!1,r=!1,a=0;a<n.length;a++){var i=n.charAt(a);-1===t.indexOf(i)&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(i,a+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===i&&(s=!0),"v"===i&&(r=!0)}this.options.ecmaVersion>=15&&s&&r&&this.raise(e.start,"Invalid regular expression flag")},Vn.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&function(e){for(var t in e)return!0;return!1}(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},Vn.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var s=n[t];e.groupNames[s]||e.raise("Invalid named capture referenced")}},Vn.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Hn(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},Vn.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Vn.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},Vn.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},Vn.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Vn.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Vn.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return-1!==r&&r<s&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1},Vn.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Vn.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Vn.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),s=e.eat(45);if(n||s){for(var r=0;r<n.length;r++){var a=n.charAt(r);n.indexOf(a,r+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(s){var i=this.regexp_eatModifiers(e);n||i||58!==e.current()||e.raise("Invalid regular expression modifiers");for(var o=0;o<i.length;o++){var l=i.charAt(o);(i.indexOf(l,o+1)>-1||n.indexOf(l)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1},Vn.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Vn.regexp_eatModifiers=function(e){for(var t="",n=0;-1!==(n=e.current())&&zn(n);)t+=Vt(n),e.advance();return t},Vn.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Vn.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Vn.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Wn(t)&&(e.lastIntValue=t,e.advance(),!0)},Vn.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!Wn(n);)e.advance();return e.pos!==t},Vn.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},Vn.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n)if(t)for(var s=0,r=n;s<r.length;s+=1){r[s].separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},Vn.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},Vn.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Vt(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Vt(e.lastIntValue);return!0}return!1},Vn.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,s=e.current(n);return e.advance(n),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(s=e.lastIntValue),function(e){return _t(e,!0)||36===e||95===e}(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)},Vn.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,s=e.current(n);return e.advance(n),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(s=e.lastIntValue),function(e){return xt(e,!0)||36===e||95===e||8204===e||8205===e}(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)},Vn.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Vn.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},Vn.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Vn.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Vn.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Vn.regexp_eatZero=function(e){return 48===e.current()&&!Qn(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Vn.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Vn.regexp_eatControlLetter=function(e){var t=e.current();return!!Gn(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Vn.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,s=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(r&&a>=55296&&a<=56319){var i=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=1024*(a-55296)+(o-56320)+65536,!0}e.pos=i,e.lastIntValue=a}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((n=e.lastIntValue)>=0&&n<=1114111))return!0;r&&e.raise("Invalid unicode escape"),e.pos=s}return!1},Vn.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},Vn.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1};function Kn(e){return Gn(e)||95===e}function Xn(e){return Kn(e)||Qn(e)}function Qn(e){return e>=48&&e<=57}function Yn(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Jn(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Zn(e){return e>=48&&e<=55}Vn.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),1;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=80===t)||112===t)){var s;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&2===s&&e.raise("Invalid property name"),s;e.raise("Invalid property name")}return 0},Vn.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,s),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return 0},Vn.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){Dt(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},Vn.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},Vn.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Kn(t=e.current());)e.lastStringValue+=Vt(t),e.advance();return""!==e.lastStringValue},Vn.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Xn(t=e.current());)e.lastStringValue+=Vt(t),e.advance();return""!==e.lastStringValue},Vn.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Vn.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===n&&e.raise("Negated character class may contain strings"),!0}return!1},Vn.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},Vn.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},Vn.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||Zn(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return 93!==s&&(e.lastIntValue=s,e.advance(),!0)},Vn.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Vn.regexp_classSetExpression=function(e){var t,n=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(n=2);for(var s=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?2!==t&&(n=1):e.raise("Invalid character in character class");if(s!==e.pos)return n;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(s!==e.pos)return n}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return n;2===t&&(n=2)}},Vn.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;return-1!==n&&-1!==s&&n>s&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},Vn.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},Vn.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),s=this.regexp_classContents(e);if(e.eat(93))return n&&2===s&&e.raise("Negated character class may contain strings"),s;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null},Vn.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise("Invalid escape");e.pos=t}return null},Vn.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},Vn.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},Vn.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1));var n=e.current();return!(n<0||n===e.lookahead()&&function(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}(n))&&(!function(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}(n)&&(e.advance(),e.lastIntValue=n,!0))},Vn.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!function(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}(t)&&(e.lastIntValue=t,e.advance(),!0)},Vn.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Qn(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},Vn.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Vn.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Qn(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},Vn.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Yn(n=e.current());)e.lastIntValue=16*e.lastIntValue+Jn(n),e.advance();return e.pos!==t},Vn.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},Vn.regexp_eatOctalDigit=function(e){var t=e.current();return Zn(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Vn.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var s=0;s<t;++s){var r=e.current();if(!Yn(r))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Jn(r),e.advance()}return!0};var es=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new zt(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},ts=Jt.prototype;function ns(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}ts.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new es(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ts.getToken=function(){return this.next(),new es(this)},"undefined"!=typeof Symbol&&(ts[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===Tt.eof,value:t}}}}),ts.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(Tt.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},ts.readToken=function(e){return _t(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},ts.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},ts.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var s=void 0,r=t;(s=Rt(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},ts.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!It(s);)s=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},ts.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&qt.test(String.fromCharCode(e))))break e;++this.pos}}},ts.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},ts.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(Tt.ellipsis)):(++this.pos,this.finishToken(Tt.dot))},ts.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(Tt.assign,2):this.finishOp(Tt.slash,1)},ts.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,s=42===e?Tt.star:Tt.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,s=Tt.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(Tt.assign,n+1):this.finishOp(s,n)},ts.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(Tt.assign,3);return this.finishOp(124===e?Tt.logicalOR:Tt.logicalAND,2)}return 61===t?this.finishOp(Tt.assign,2):this.finishOp(124===e?Tt.bitwiseOR:Tt.bitwiseAND,1)},ts.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(Tt.assign,2):this.finishOp(Tt.bitwiseXOR,1)},ts.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!At.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(Tt.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(Tt.assign,2):this.finishOp(Tt.plusMin,1)},ts.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(Tt.assign,n+1):this.finishOp(Tt.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(Tt.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},ts.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(Tt.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(Tt.arrow)):this.finishOp(61===e?Tt.eq:Tt.prefix,1)},ts.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(Tt.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(Tt.assign,3);return this.finishOp(Tt.coalesce,2)}}return this.finishOp(Tt.question,1)},ts.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,_t(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(Tt.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Vt(e)+"'")},ts.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(Tt.parenL);case 41:return++this.pos,this.finishToken(Tt.parenR);case 59:return++this.pos,this.finishToken(Tt.semi);case 44:return++this.pos,this.finishToken(Tt.comma);case 91:return++this.pos,this.finishToken(Tt.bracketL);case 93:return++this.pos,this.finishToken(Tt.bracketR);case 123:return++this.pos,this.finishToken(Tt.braceL);case 125:return++this.pos,this.finishToken(Tt.braceR);case 58:return++this.pos,this.finishToken(Tt.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(Tt.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(Tt.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Vt(e)+"'")},ts.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},ts.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(At.test(s)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===s)t=!0;else if("]"===s&&t)t=!1;else if("/"===s&&!t)break;e="\\"===s}++this.pos}var r=this.input.slice(n,this.pos);++this.pos;var a=this.pos,i=this.readWord1();this.containsEsc&&this.unexpected(a);var o=this.regexpState||(this.regexpState=new Un(this));o.reset(n,r,i),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(r,i)}catch(e){}return this.finishToken(Tt.regexp,{pattern:r,flags:i,value:l})},ts.readInt=function(e,t,n){for(var s=this.options.ecmaVersion>=12&&void 0===t,r=n&&48===this.input.charCodeAt(this.pos),a=this.pos,i=0,o=0,l=0,c=null==t?1/0:t;l<c;++l,++this.pos){var p=this.input.charCodeAt(this.pos),u=void 0;if(s&&95===p)r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=p;else{if((u=p>=97?p-97+10:p>=65?p-65+10:p>=48&&p<=57?p-48:1/0)>=e)break;o=p,i=i*e+u}}return s&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||null!=t&&this.pos-a!==t?null:i},ts.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=ns(this.input.slice(t,this.pos)),++this.pos):_t(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Tt.num,n)},ts.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===s){var r=ns(this.input.slice(t,this.pos));return++this.pos,_t(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Tt.num,r)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==s||n||(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),69!==s&&101!==s||n||(43!==(s=this.input.charCodeAt(++this.pos))&&45!==s||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),_t(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a,i=(a=this.input.slice(t,this.pos),n?parseInt(a,8):parseFloat(a.replace(/_/g,"")));return this.finishToken(Tt.num,i)},ts.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},ts.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===e)break;92===s?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):8232===s||8233===s?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(It(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(Tt.string,t)};var ss={};ts.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==ss)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},ts.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ss;this.raise(e,t)},ts.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==Tt.template&&this.type!==Tt.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(Tt.template,e)):36===n?(this.pos+=2,this.finishToken(Tt.dollarBraceL)):(++this.pos,this.finishToken(Tt.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(It(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},ts.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(Tt.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},ts.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Vt(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),"0"===s&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return It(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},ts.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},ts.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(xt(r,s))this.pos+=r<=65535?1:2;else{if(92!==r)break;this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var i=this.readCodePoint();(t?_t:xt)(i,s)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=Vt(i),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},ts.readWord=function(){var e=this.readWord1(),t=Tt.name;return this.keywords.test(e)&&(t=Pt[e]),this.finishToken(t,e)};var rs="8.14.0";Jt.acorn={Parser:Jt,version:rs,defaultOptions:Gt,Position:Ut,SourceLocation:zt,getLineInfo:Wt,Node:wn,TokenType:Ct,tokTypes:Tt,keywordTypes:Pt,TokContext:hn,tokContexts:mn,isIdentifierChar:xt,isIdentifierStart:_t,Token:es,isNewLine:It,lineBreak:At,lineBreakG:$t,nonASCIIwhitespace:qt};var as=Object.freeze({__proto__:null,Node:wn,Parser:Jt,Position:Ut,SourceLocation:zt,TokContext:hn,Token:es,TokenType:Ct,defaultOptions:Gt,getLineInfo:Wt,isIdentifierChar:xt,isIdentifierStart:_t,isNewLine:It,keywordTypes:Pt,lineBreak:At,lineBreakG:$t,nonASCIIwhitespace:qt,parse:function(e,t){return Jt.parse(e,t)},parseExpressionAt:function(e,t,n){return Jt.parseExpressionAt(e,t,n)},tokContexts:mn,tokTypes:Tt,tokenizer:function(e,t){return Jt.tokenizer(e,t)},version:rs}),is=!0;function os(e,t={}){return new Ct("name",t)}var ls=new WeakMap;function cs(e){const t=e.Parser.acorn||e;let n=ls.get(t);if(!n){let e=function(e){return[Tt.name,Tt.string,Tt.num,...Object.values(Pt),...Object.values(o)].includes(e)},t=function(e){return[Tt.name,...Object.values(Pt),...Object.values(o)].includes(e)},s=function(e){return[...Object.values(o),Tt.name].includes(e)},r=function(e){return[o.abstract,o.declare,o.enum,o.module,o.namespace,o.interface,o.type].includes(e)},a=function(e){return[o.keyof,o.readonly,o.unique].includes(e)},i=function(e){return e===Tt.invalidTemplate};const o={assert:os(0,{startsExpr:is}),asserts:os(0,{startsExpr:is}),global:os(0,{startsExpr:is}),keyof:os(0,{startsExpr:is}),readonly:os(0,{startsExpr:is}),unique:os(0,{startsExpr:is}),abstract:os(0,{startsExpr:is}),declare:os(0,{startsExpr:is}),enum:os(0,{startsExpr:is}),module:os(0,{startsExpr:is}),namespace:os(0,{startsExpr:is}),interface:os(0,{startsExpr:is}),type:os(0,{startsExpr:is})},l={at:new Ct("@"),jsxName:new Ct("jsxName"),jsxText:new Ct("jsxText",{beforeExpr:!0}),jsxTagStart:new Ct("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new Ct("jsxTagEnd")},c={tc_oTag:new hn("<tag",!1,!1),tc_cTag:new hn("</tag",!1,!1),tc_expr:new hn("<tag>...</tag>",!0,!0)},p=new RegExp(`^(?:${Object.keys(o).join("|")})$`);l.jsxTagStart.updateContext=function(){this.context.push(c.tc_expr),this.context.push(c.tc_oTag),this.exprAllowed=!1},l.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===c.tc_oTag&&e===Tt.slash||t===c.tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===c.tc_expr):this.exprAllowed=!0},n={tokTypes:{...o,...l},tokContexts:{...c},keywordsRegExp:p,tokenIsLiteralPropertyName:e,tokenIsKeywordOrIdentifier:t,tokenIsIdentifier:s,tokenIsTSDeclarationStart:r,tokenIsTSTypeOperator:a,tokenIsTemplate:i}}return n}var ps=1024,us=new RegExp("(?=("+/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),ds=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function hs(e,t){const n=t.key.name,s=e[n];let r="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(r=(t.static?"s":"i")+t.kind),"iget"===s&&"iset"===r||"iset"===s&&"iget"===r||"sget"===s&&"sset"===r||"sset"===s&&"sget"===r?(e[n]="true",!1):!!s||(e[n]=r,!1)}function ms(e,t){const{computed:n,key:s}=e;return!n&&("Identifier"===s.type&&s.name===t||"Literal"===s.type&&s.value===t)}var fs={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.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",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."},ys={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"};var vs=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function gs(e){if(!e)throw new Error("Assert fail")}function bs(e){return"accessor"===e}function _s(e){return"in"===e||"out"===e}var xs={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:8,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 Cs(e,t){return xs.SCOPE_FUNCTION|(e?xs.SCOPE_ASYNC:0)|(t?xs.SCOPE_GENERATOR:0)}function ws(e){if("MemberExpression"!==e.type)return!1;const{computed:t,property:n}=e;return(!t||!("TemplateLiteral"!==n.type||n.expressions.length>0))&&ks(e.object)}function ks(e){return"Identifier"===e.type||"MemberExpression"===e.type&&(!e.computed&&ks(e.object))}function Ss(e){return"private"===e||"public"===e||"protected"===e}const Ps=Jt.extend(function(e){const{dts:t=!1}={},n=!!e?.jsx;return function(e){const s=e.acorn||as,r=cs(s),a=s.tokTypes,i=s.keywordTypes,o=s.isIdentifierStart,l=s.lineBreak,c=s.isNewLine,p=s.tokContexts,u=s.isIdentifierChar,{tokTypes:d,tokContexts:h,keywordsRegExp:m,tokenIsLiteralPropertyName:f,tokenIsTemplate:y,tokenIsTSDeclarationStart:v,tokenIsIdentifier:g,tokenIsKeywordOrIdentifier:b,tokenIsTSTypeOperator:_}=r;function x(e,t,n=e.length){for(let s=t;s<n;s++){let t=e.charCodeAt(s);if(c(t))return s<n-1&&13===t&&10===e.charCodeAt(s+1)?s+2:s+1}return-1}e=function(e,t,n){const{tokTypes:s}=n,{tokTypes:r}=t;return class extends e{takeDecorators(e){const t=this.decoratorStack[this.decoratorStack.length-1];t.length&&(e.decorators=t,this.resetStartLocationFromNode(e,t[0]),this.decoratorStack[this.decoratorStack.length-1]=[])}parseDecorators(e){const t=this.decoratorStack[this.decoratorStack.length-1];for(;this.match(r.at);){const e=this.parseDecorator();t.push(e)}this.match(s._export)?e||this.unexpected():this.canHaveLeadingDecorator()||this.raise(this.start,ys.UnexpectedLeadingDecorator)}parseDecorator(){const e=this.startNode();this.next(),this.decoratorStack.push([]);const t=this.start,n=this.startLoc;let r;if(this.match(s.parenL)){const e=this.start,t=this.startLoc;if(this.next(),r=this.parseExpression(),this.expect(s.parenR),this.options.preserveParens){let n=this.startNodeAt(e,t);n.expression=r,r=this.finishNode(n,"ParenthesizedExpression")}}else for(r=this.parseIdent(!1);this.eat(s.dot);){const e=this.startNodeAt(t,n);e.object=r,e.property=this.parseIdent(!0),e.computed=!1,r=this.finishNode(e,"MemberExpression")}return e.expression=this.parseMaybeDecoratorArguments(r),this.decoratorStack.pop(),this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(s.parenL)){const t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseExprList(s.parenR,!1),this.finishNode(t,"CallExpression")}return e}}}(e,r,s),e=function(e,t,n){const{tokTypes:s}=t,{tokTypes:r}=n;return class extends e{parseMaybeImportAttributes(e){if(this.type===r._with||this.type===s.assert){this.next();const t=this.parseImportAttributes();t&&(e.attributes=t)}}parseImportAttributes(){this.expect(r.braceL);const e=this.parseWithEntries();return this.expect(r.braceR),e}parseWithEntries(){const e=[],t=new Set;do{if(this.type===r.braceR)break;const n=this.startNode();let s;s=this.type===r.string?this.parseLiteral(this.value):this.parseIdent(!0),this.next(),n.key=s,t.has(n.key.name)&&this.raise(this.pos,"Duplicated key in attributes"),t.add(n.key.name),this.type!==r.string&&this.raise(this.pos,"Only string is supported as an attribute value"),n.value=this.parseLiteral(this.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(r.comma));return e}}}(e,r,s);return class extends e{constructor(e,t,n){super(e,t,n),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=e=>{this.tsParseModifiers({modified:e,allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:fs.InvalidModifierOnTypeParameterPositions})},this.ecmaVersion=this.options.ecmaVersion}static get acornTypeScript(){return r}get acornTypeScript(){return r}getTokenFromCodeInType(e){return 62===e||60===e?this.finishOp(a.relational,1):super.getTokenFromCode(e)}readToken(e){if(!this.inType){let t=this.curContext();if(t===h.tc_expr)return this.jsx_readToken();if(t===h.tc_oTag||t===h.tc_cTag){if(o(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(d.jsxTagEnd);if((34===e||39===e)&&t==h.tc_oTag)return this.jsx_readString(e)}if(60===e&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1))return++this.pos,this.finishToken(a.relational,"<")}return super.readToken(e)}getTokenFromCode(e){return this.inType?this.getTokenFromCodeInType(e):64===e?(++this.pos,this.finishToken(d.at)):super.getTokenFromCode(e)}isAbstractClass(){return this.ts_isContextual(d.abstract)&&this.lookahead().type===a._class}finishNode(e,t){return""!==e.type&&0!==e.end?e:super.finishNode(e,t)}tryParse(e,t=this.cloneCurLookaheadState()){const n={node:null};try{return{node:e(((e=null)=>{throw n.node=e,n})),error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const s=this.getCurLookaheadState();if(this.setLookaheadState(t),e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:s};if(e===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:s};throw e}}setOptionalParametersError(e,t){e.optionalParametersLoc=t?.loc??this.startLoc}reScan_lt_gt(){this.type===a.relational&&(this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos()))}reScan_lt(){const{type:e}=this;return e===a.bitShift?(this.pos-=2,this.finishOp(a.relational,1),a.relational):e}resetEndLocation(e,t=this.lastTokEnd,n=this.lastTokEndLoc){e.end=t,e.loc.end=n,this.options.ranges&&(e.range[1]=t)}startNodeAtNode(e){return super.startNodeAt(e.start,e.loc.start)}nextTokenStart(){return this.nextTokenStartSince(this.pos)}tsHasSomeModifiers(e,t){return t.some((t=>Ss(t)?e.accessibility===t:!!e[t]))}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&123===this.lookaheadCharCode()}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{"TSTypeCastExpression"===e?.type&&this.raise(e.typeAnnotation.start,fs.UnexpectedTypeAnnotation)}))}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.lastTokEndLoc.column===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.potentialArrowAt}tsIsIdentifier(){return g(this.type)}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(a.colon)?this.tsParseTypeOrTypePredicateAnnotation(a.colon):void 0}tsTryParseGenericAsyncArrowFunction(e,t,n){if(!this.tsMatchLeftRelational())return;const s=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;const r=this.tsTryParseAndCatch((()=>{const n=this.startNodeAt(e,t);return n.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(n),n.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(a.arrow),n}));return this.maybeInArrowParameters=s,r?super.parseArrowExpression(r,null,!0,n):void 0}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===a.relational)return this.tsParseTypeArguments()}tsInNoContext(e){const t=this.context;this.context=[t[0]];try{return e()}finally{this.context=t}}tsTryParseTypeAnnotation(){return this.match(a.colon)?this.tsParseTypeAnnotation():void 0}isUnparsedContextual(e,t){const n=e+t.length;if(this.input.slice(e,n)===t){const e=this.input.charCodeAt(n);return!(u(e)||55296==(64512&e))}return!1}isAbstractConstructorSignature(){return this.ts_isContextual(d.abstract)&&this.lookahead().type===a._new}nextTokenStartSince(e){return vs.lastIndex=e,vs.test(this.input)?vs.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}compareLookaheadState(e,t){for(const n of Object.keys(e))if(e[n]!==t[n])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(e){this.pos=e.pos,this.value=e.value,this.endLoc=e.endLoc,this.lastTokEnd=e.lastTokEnd,this.lastTokStart=e.lastTokStart,this.lastTokStartLoc=e.lastTokStartLoc,this.type=e.type,this.start=e.start,this.end=e.end,this.context=e.context,this.startLoc=e.startLoc,this.lastTokEndLoc=e.lastTokEndLoc,this.curLine=e.curLine,this.lineStart=e.lineStart,this.curPosition=e.curPosition,this.containsEsc=e.containsEsc}tsLookAhead(e){const t=this.getCurLookaheadState(),n=e();return this.setLookaheadState(t),n}lookahead(e){const t=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,void 0!==e)for(let t=0;t<e;t++)this.nextToken();else this.nextToken();this.isLookahead=!1;const n=this.getCurLookaheadState();return this.setLookaheadState(t),n}readWord(){let e=this.readWord1(),t=a.name;return this.keywords.test(e)?t=i[e]:new RegExp(m).test(e)&&(t=d[e]),this.finishToken(t,e)}skipBlockComment(){let e;this.isLookahead||(e=this.options.onComment&&this.curPosition());let t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(let e,n=t;(e=x(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=e;this.isLookahead||this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())}skipLineComment(e){let t,n=this.pos;this.isLookahead||(t=this.options.onComment&&this.curPosition());let s=this.input.charCodeAt(this.pos+=e);for(;this.pos<this.input.length&&!c(s);)s=this.input.charCodeAt(++this.pos);this.isLookahead||this.options.onComment&&this.options.onComment(!1,this.input.slice(n+e,this.pos),n,this.pos,t,this.curPosition())}finishToken(e,t){this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());let n=this.type;this.type=e,this.value=t,this.isLookahead||this.updateContext(n)}resetStartLocation(e,t,n){e.start=t,e.loc.start=n,this.options.ranges&&(e.range[0]=t)}isLineTerminator(){return this.eat(a.semi)||super.canInsertSemicolon()}hasFollowingLineBreak(){return us.lastIndex=this.end,us.test(this.input)}addExtra(e,t,n,s=!0){if(!e)return;const r=e.extra=e.extra||{};s?r[t]=n:Object.defineProperty(r,t,{enumerable:s,value:n})}isLiteralPropertyName(){return f(this.type)}hasPrecedingLineBreak(){return l.test(this.input.slice(this.lastTokEnd,this.start))}createIdentifier(e,t){return e.name=t,this.finishNode(e,"Identifier")}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.start,t.loc.start)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}ts_type_isContextual(e,t){return e===t&&!this.containsEsc}ts_isContextual(e){return this.type===e&&!this.containsEsc}ts_isContextualWithState(e,t){return e.type===t&&!e.containsEsc}isContextualWithState(e,t){return t.type===a.name&&t.value===e&&!t.containsEsc}tsIsStartOfMappedType(){return this.next(),this.eat(a.plusMin)?this.ts_isContextual(d.readonly):(this.ts_isContextual(d.readonly)&&this.next(),!!this.match(a.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(a._in))))}tsInDisallowConditionalTypesContext(e){const t=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.inDisallowConditionalTypesContext=t}}tsTryParseType(){return this.tsEatThenParseType(a.colon)}match(e){return this.type===e}matchJsx(e){return this.type===r.tokTypes[e]}ts_eatWithState(e,t,n){if(e===n.type){for(let e=0;e<t;e++)this.next();return!0}return!1}ts_eatContextualWithState(e,t,n){if(m.test(e)){if(this.ts_isContextualWithState(n,d[e])){for(let e=0;e<t;e++)this.next();return!0}return!1}if(!this.isContextualWithState(e,n))return!1;for(let e=0;e<t;e++)this.next();return!0}canHaveLeadingDecorator(){return this.match(a._class)}eatContextual(e){return m.test(e)?!!this.ts_isContextual(d[e])&&(this.next(),!0):super.eatContextual(e)}tsIsExternalModuleReference(){return this.isContextual("require")&&40===this.lookaheadCharCode()}tsParseExternalModuleReference(){const e=this.startNode();return this.expectContextual("require"),this.expect(a.parenL),this.match(a.string)||this.unexpected(),e.expression=this.parseExprAtom(),this.expect(a.parenR),this.finishNode(e,"TSExternalModuleReference")}tsParseEntityName(e=!0){let t=this.parseIdent(e);for(;this.eat(a.dot);){const n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdent(e),t=this.finishNode(n,"TSQualifiedName")}return t}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(a.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(a.eq)&&(e.initializer=this.parseMaybeAssign()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t={}){return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual("enum"),e.id=this.parseIdent(),this.checkLValSimple(e.id),this.expect(a.braceL),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(a.braceR),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){const e=this.startNode();for(this.enterScope(512),this.expect(a.braceL),e.body=[];this.type!==a.braceR;){let t=this.parseStatement(null,!0);e.body.push(t)}return this.next(),super.exitScope(),this.finishNode(e,"TSModuleBlock")}tsParseAmbientExternalModuleDeclaration(e){return this.ts_isContextual(d.global)?(e.global=!0,e.id=this.parseIdent()):this.match(a.string)?e.id=this.parseLiteral(this.value):this.unexpected(),this.match(a.braceL)?(this.enterScope(ps),e.body=this.tsParseModuleBlock(),super.exitScope()):super.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,n=this.type;return this.isContextual("let")&&(n=a._var,t="let"),this.tsInAmbientContext((()=>{if(n===a._function)return e.declare=!0,this.parseFunctionStatement(e,!1,!0);if(n===a._class)return e.declare=!0,this.parseClass(e,!0);if(n===d.enum)return this.tsParseEnumDeclaration(e,{declare:!0});if(n===d.global)return this.tsParseAmbientExternalModuleDeclaration(e);if(n===a._const||n===a._var)return this.match(a._const)&&this.isLookaheadContextual("enum")?(this.expect(a._const),this.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,this.parseVarStatement(e,t||this.value,!0));if(n===d.interface){const t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}return g(n)?this.tsParseDeclaration(e,this.value,!0):void 0}))}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(a.braceR);case"HeritageClauseElement":return this.match(a.braceL);case"TupleElementTypes":return this.match(a.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}}tsParseDelimitedListWorker(e,t,n,s){const r=[];let i=-1;for(;!this.tsIsListTerminator(e);){i=-1;const s=t();if(null==s)return;if(r.push(s),!this.eat(a.comma)){if(this.tsIsListTerminator(e))break;return void(n&&this.expect(a.comma))}i=this.lastTokStart}return s&&(s.value=i),r}tsParseDelimitedList(e,t,n){return function(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,t,!0,n))}tsParseBracketedList(e,t,n,s,r){s||(n?this.expect(a.bracketL):this.expect(a.relational));const i=this.tsParseDelimitedList(e,t,r);return n?this.expect(a.bracketR):this.expect(a.relational),i}tsParseTypeParameterName(){return this.parseIdent().name}tsEatThenParseType(e){return this.match(e)?this.tsNextThenParseType():void 0}tsExpectThenParseType(e){return this.tsDoThenParseType((()=>this.expect(e)))}tsNextThenParseType(){return this.tsDoThenParseType((()=>this.next()))}tsDoThenParseType(e){return this.tsInType((()=>(e(),this.tsParseType())))}tsSkipParameterStart(){if(g(this.type)||this.match(a._this))return this.next(),!0;if(this.match(a.braceL))try{return this.parseObj(!0),!0}catch{return!1}if(this.match(a.bracketL)){this.next();try{return this.parseBindingList(a.bracketR,!0,!0),!0}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(a.parenR)||this.match(a.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(a.colon)||this.match(a.comma)||this.match(a.question)||this.match(a.eq))return!0;if(this.match(a.parenR)&&(this.next(),this.match(a.arrow)))return!0}return!1}tsIsStartOfFunctionType(){return!!this.tsMatchLeftRelational()||this.match(a.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsInAllowConditionalTypesContext(e){const t=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.inDisallowConditionalTypesContext=t}}tsParseBindingListForSignature(){return super.parseBindingList(a.parenR,!0,!0).map((e=>("Identifier"!==e.type&&"RestElement"!==e.type&&"ObjectPattern"!==e.type&&"ArrayPattern"!==e.type&&this.raise(e.start,fs.UnsupportedSignatureParameterKind(e.type)),e)))}tsParseTypePredicateAsserts(){if(this.type!==d.asserts)return!1;const e=this.containsEsc;return this.next(),!(!g(this.type)&&!this.match(a._this))&&(e&&this.raise(this.lastTokStart,"Escape sequence in keyword asserts"),!0)}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType((()=>{e&&this.expect(a.colon),t.typeAnnotation=this.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")}tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseTypePredicatePrefix(){const e=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{const t=this.startNode();this.expect(e);const n=this.startNode(),s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(a._this)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(n.parameterName=e,n.asserts=!0,n.typeAnnotation=null,e=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(e,n),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const r=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!r)return s?(n.parameterName=this.parseIdent(),n.asserts=s,n.typeAnnotation=null,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const i=this.tsParseTypeAnnotation(!1);return n.parameterName=r,n.typeAnnotation=i,n.asserts=s,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsFillSignature(e,t){const n=e===a.arrow,s="typeAnnotation";t.typeParameters=this.tsTryParseTypeParameters(),this.expect(a.parenL),t.parameters=this.tsParseBindingListForSignature(),(n||this.match(e))&&(t[s]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsTryNextParseConstantContext(){if(this.lookahead().type!==a._const)return null;this.next();const e=this.tsParseTypeReference();return(e.typeParameters||e.typeArguments)&&this.raise(e.typeName.start,fs.CannotFindName({name:"const"})),e}tsParseFunctionOrConstructorType(e,t){const n=this.startNode();return"TSConstructorType"===e&&(n.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(a.arrow,n))),this.finishNode(n,e)}tsParseUnionOrIntersectionType(e,t,n){const s=this.startNode(),r=this.eat(n),a=[];do{a.push(t())}while(this.eat(n));return 1!==a.length||r?(s.types=a,this.finishNode(s,e)):a[0]}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(e.start,fs.UnexpectedReadonly)}}tsParseTypeOperator(){const e=this.startNode(),t=this.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsParseConstraintForInferType(){if(this.eat(a._extends)){const e=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.inDisallowConditionalTypesContext||!this.match(a.question))return e}}tsParseInferType(){const e=this.startNode();this.expectContextual("infer");const t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType())),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseLiteralTypeNode(){const e=this.startNode();return e.literal=(()=>{switch(this.type){case a.num:case a.string:case a._true:case a._false:return this.parseExprAtom();default:this.unexpected()}})(),this.finishNode(e,"TSLiteralType")}tsParseImportType(){const e=this.startNode();return this.expect(a._import),this.expect(a.parenL),this.match(a.string)||this.raise(this.start,fs.UnsupportedImportTypeArgument),e.argument=this.parseExprAtom(),this.expect(a.parenR),this.eat(a.dot)&&(e.qualifier=this.tsParseEntityName()),this.tsMatchLeftRelational()&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(a._typeof),this.match(a._import)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseMappedTypeParameter(){const e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(a._in),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){const e=this.startNode();return this.expect(a.braceL),this.match(a.plusMin)?(e.readonly=this.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(e.readonly=!0),this.expect(a.bracketL),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(a.bracketR),this.match(a.plusMin)?(e.optional=this.value,this.next(),this.expect(a.question)):this.eat(a.question)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(a.braceR),this.finishNode(e,"TSMappedType")}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseTupleElementType(){const e=this.startLoc,t=this.start,n=this.eat(a.ellipsis);let s=this.tsParseType();const r=this.eat(a.question);if(this.eat(a.colon)){const e=this.startNodeAtNode(s);e.optional=r,"TSTypeReference"!==s.type||s.typeArguments||"Identifier"!==s.typeName.type?(this.raise(s.start,fs.InvalidTupleMemberLabel),e.label=s):e.label=s.typeName,e.elementType=this.tsParseType(),s=this.finishNode(e,"TSNamedTupleMember")}else if(r){const e=this.startNodeAtNode(s);e.typeAnnotation=s,s=this.finishNode(e,"TSOptionalType")}if(n){const n=this.startNodeAt(t,e);n.typeAnnotation=s,s=this.finishNode(n,"TSRestType")}return s}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1,n=null;return e.elementTypes.forEach((e=>{const{type:s}=e;!t||"TSRestType"===s||"TSOptionalType"===s||"TSNamedTupleMember"===s&&e.optional||this.raise(e.start,fs.OptionalTypeBeforeRequired),t||="TSNamedTupleMember"===s&&e.optional||"TSOptionalType"===s;let r=s;"TSRestType"===s&&(r=(e=e.typeAnnotation).type);const a="TSNamedTupleMember"===r;n??=a,n!==a&&this.raise(e.start,fs.MixedLabeledAndUnlabeledElements)})),this.finishNode(e,"TSTupleType")}tsParseTemplateLiteralType(){const e=this.startNode();return e.literal=this.parseTemplate({isTagged:!1}),this.finishNode(e,"TSLiteralType")}tsParseTypeReference(){const e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsMatchLeftRelational(){return this.match(a.relational)&&"<"===this.value}tsMatchRightRelational(){return this.match(a.relational)&&">"===this.value}tsParseParenthesizedType(){const e=this.startNode();return this.expect(a.parenL),e.typeAnnotation=this.tsParseType(),this.expect(a.parenR),this.finishNode(e,"TSParenthesizedType")}tsParseNonArrayType(){switch(this.type){case a.string:case a.num:case a._true:case a._false:return this.tsParseLiteralTypeNode();case a.plusMin:if("-"===this.value){const e=this.startNode();return this.lookahead().type!==a.num&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case a._this:return this.tsParseThisTypeOrThisTypePredicate();case a._typeof:return this.tsParseTypeQuery();case a._import:return this.tsParseImportType();case a.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case a.bracketL:return this.tsParseTupleType();case a.parenL:return this.tsParseParenthesizedType();case a.backQuote:case a.dollarBraceL:return this.tsParseTemplateLiteralType();default:{const{type:e}=this;if(g(e)||e===a._void||e===a._null){const t=e===a._void?"TSVoidKeyword":e===a._null?"TSNullKeyword":function(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}}(this.value);if(void 0!==t&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(a.bracketL);)if(this.match(a.bracketR)){const t=this.startNodeAtNode(e);t.elementType=e,this.expect(a.bracketR),e=this.finishNode(t,"TSArrayType")}else{const t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(a.bracketR),e=this.finishNode(t,"TSIndexedAccessType")}return e}tsParseTypeOperatorOrHigher(){return _(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),a.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),a.bitwiseOR)}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(a._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseType(){gs(this.inType);const e=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(a._extends))return e;const t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType())),this.expect(a.question),t.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.expect(a.colon),t.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.finishNode(t,"TSConditionalType")}tsIsUnambiguouslyIndexSignature(){return this.next(),!!g(this.type)&&(this.next(),this.match(a.colon))}tsInType(e){const t=this.inType;this.inType=!0;try{return e()}finally{this.inType=t}}tsTryParseIndexSignature(e){if(!this.match(a.bracketL)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(a.bracketL);const t=this.parseIdent();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(a.bracketR),e.parameters=[t];const n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParseNoneModifiers(e){this.tsParseModifiers({modified:e,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:fs.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(e=this.tsParseNoneModifiers.bind(this)){const t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(a._extends),t.default=this.tsEatThenParseType(a.eq),this.finishNode(t,"TSTypeParameter")}tsParseTypeParameters(e){const t=this.startNode();this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart")?this.next():this.unexpected();const n={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,n),0===t.params.length&&this.raise(this.start,fs.EmptyTypeParameters),-1!==n.value&&this.addExtra(t,"trailingComma",n.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsTryParseTypeParameters(e){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(e)}tsTryParse(e){const t=this.getCurLookaheadState(),n=e();return void 0!==n&&!1!==n?n:void this.setLookaheadState(t)}tsTokenCanFollowModifier(){return(this.match(a.bracketL)||this.match(a.braceL)||this.match(a.star)||this.match(a.ellipsis)||this.match(a.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(!0),this.tsTokenCanFollowModifier()}tsParseModifier(e,t){const n=this.value;if(-1!==e.indexOf(n)&&!this.containsEsc){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiersByMap({modified:e,map:t}){for(const n of Object.keys(t))e[n]=t[n]}tsParseModifiers({modified:e,allowedModifiers:t,disallowedModifiers:n,stopOnStartOfClassStaticBlock:s,errorTemplate:r=fs.InvalidModifierOnTypeMember}){const a={},i=(t,n,s,r)=>{n===s&&e[r]&&this.raise(t.column,fs.InvalidModifiersOrder({orderedModifiers:[s,r]}))},o=(t,n,s,r)=>{(e[s]&&n===r||e[r]&&n===s)&&this.raise(t.column,fs.IncompatibleModifiers({modifiers:[s,r]}))};for(;;){const l=this.startLoc,c=this.tsParseModifier(t.concat(n??[]),s);if(!c)break;Ss(c)?e.accessibility?this.raise(this.start,fs.DuplicateAccessibilityModifier()):(i(l,c,c,"override"),i(l,c,c,"static"),i(l,c,c,"readonly"),i(l,c,c,"accessor"),a.accessibility=c,e.accessibility=c):_s(c)?e[c]?this.raise(this.start,fs.DuplicateModifier({modifier:c})):(i(l,c,"in","out"),a[c]=c,e[c]=!0):bs(c)?e[c]?this.raise(this.start,fs.DuplicateModifier({modifier:c})):(o(l,c,"accessor","readonly"),o(l,c,"accessor","static"),o(l,c,"accessor","override"),a[c]=c,e[c]=!0):"const"===c?e[c]?this.raise(this.start,fs.DuplicateModifier({modifier:c})):(a[c]=c,e[c]=!0):Object.hasOwnProperty.call(e,c)?this.raise(this.start,fs.DuplicateModifier({modifier:c})):(i(l,c,"static","readonly"),i(l,c,"static","override"),i(l,c,"override","readonly"),i(l,c,"abstract","override"),o(l,c,"declare","override"),o(l,c,"static","abstract"),a[c]=c,e[c]=!0),n?.includes(c)&&this.raise(this.start,r)}return a}tsParseInOutModifiers(e){this.tsParseModifiers({modified:e,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:fs.InvalidModifierOnTypeParameter})}parseMaybeUnary(e,t,n,s){return this.tsMatchLeftRelational()?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t,n,s)}tsParseTypeAssertion(){const e=this.tryParse((()=>{const e=this.startNode(),t=this.tsTryNextParseConstantContext();return e.typeAnnotation=t||this.tsNextThenParseType(),this.expect(a.relational),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}));return e.error?this.tsParseTypeParameters(this.tsParseConstModifier):e.node}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expect(a.relational),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===e.params.length&&this.raise(this.start,fs.EmptyTypeArguments),this.exprAllowed=!1,this.expect(a.relational),this.finishNode(e,"TSTypeParameterInstantiation")}tsParseHeritageClause(e){const t=this.start,n=this.tsParseDelimitedList("HeritageClauseElement",(()=>{const e=this.startNode();return e.expression=this.tsParseEntityName(),this.tsMatchLeftRelational()&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}));return n.length||this.raise(t,fs.EmptyHeritageClauseType({token:e})),n}tsParseTypeMemberSemicolon(){this.eat(a.comma)||this.isLineTerminator()||this.expect(a.semi)}tsTryParseAndCatch(e){const t=this.tryParse((t=>e()||t()));if(!t.aborted&&t.node)return t.error&&this.setLookaheadState(t.failState),t.node}tsParseSignatureMember(e,t){return this.tsFillSignature(a.colon,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsParsePropertyOrMethodSignature(e,t){this.eat(a.question)&&(e.optional=!0);const n=e;if(this.match(a.parenL)||this.tsMatchLeftRelational()){t&&this.raise(e.start,fs.ReadonlyForMethodSignature);const s=n;s.kind&&this.tsMatchLeftRelational()&&this.raise(this.start,fs.AccesorCannotHaveTypeParameters),this.tsFillSignature(a.colon,s),this.tsParseTypeMemberSemicolon();const r="parameters",i="typeAnnotation";if("get"===s.kind)s[r].length>0&&(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(s[r][0])&&this.raise(this.start,fs.AccesorCannotDeclareThisParameter));else if("set"===s.kind){if(1!==s[r].length)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{const e=s[r][0];this.isThisParam(e)&&this.raise(this.start,fs.AccesorCannotDeclareThisParameter),"Identifier"===e.type&&e.optional&&this.raise(this.start,fs.SetAccesorCannotHaveOptionalParameter),"RestElement"===e.type&&this.raise(this.start,fs.SetAccesorCannotHaveRestParameter)}s[i]&&this.raise(s[i].start,fs.SetAccesorCannotHaveReturnType)}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}{const e=n;t&&(e.readonly=!0);const s=this.tsTryParseTypeAnnotation();return s&&(e.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(a.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(a._new)){const t=this.startNode();return this.next(),this.match(a.parenL)||this.tsMatchLeftRelational()?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({modified:e,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]});const t=this.tsTryParseIndexSignature(e);return t||(this.parsePropertyName(e),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,this.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseList(e,t){const n=[];for(;!this.tsIsListTerminator(e);)n.push(t());return n}tsParseObjectTypeMembers(){this.expect(a.braceL);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(a.braceR),e}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual("interface"),t.declare&&(e.declare=!0),g(this.type)?(e.id=this.parseIdent(),this.checkLValSimple(e.id,xs.BIND_TS_INTERFACE)):(e.id=null,this.raise(this.start,fs.MissingInterfaceName)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(a._extends)&&(e.extends=this.tsParseHeritageClause("extends"));const n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseAbstractDeclaration(e){if(this.match(a._class))return e.abstract=!0,this.parseClass(e,!0);if(this.ts_isContextual(d.interface)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.tsParseInterfaceDeclaration(e)}else this.unexpected(e.start)}tsIsDeclarationStart(){return v(this.type)}tsParseExpressionStatement(e,t){switch(t.name){case"declare":{const t=this.tsTryParseDeclare(e);if(t)return t.declare=!0,t;break}case"global":if(this.match(a.braceL)){this.enterScope(ps);const n=e;return n.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),super.exitScope(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1)}}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsIsExportDefaultSpecifier(){const{type:e}=this,t=this.isAsyncFunction(),n=this.isLet();if(g(e)){if(t&&!this.containsEsc||n)return!1;if((e===d.type||e===d.interface)&&!this.containsEsc){const e=this.lookahead();if(g(e.type)&&!this.isContextualWithState("from",e)||e.type===a.braceL)return!1}}else if(!this.match(a._default))return!1;const s=this.nextTokenStart(),r=this.isUnparsedContextual(s,"from");if(44===this.input.charCodeAt(s)||g(this.type)&&r)return!0;if(this.match(a._default)&&r){const e=this.input.charCodeAt(this.nextTokenStartSince(s+4));return 34===e||39===e}return!1}tsInAmbientContext(e){const t=this.isAmbientContext;this.isAmbientContext=!0;try{return e()}finally{this.isAmbientContext=t}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdent(),t||this.checkLValSimple(e.id,xs.BIND_TS_NAMESPACE),this.eat(a.dot)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.enterScope(ps),e.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(e,"TSModuleDeclaration")}checkLValSimple(e,t=xs.BIND_NONE,n){return"TSNonNullExpression"!==e.type&&"TSAsExpression"!==e.type||(e=e.expression),super.checkLValSimple(e,t,n)}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdent(),this.checkLValSimple(e.id,xs.BIND_TS_TYPE),e.typeAnnotation=this.tsInType((()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(a.eq),this.ts_isContextual(d.interface)&&this.lookahead().type!==a.dot){const e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsParseDeclaration(e,t,n){switch(t){case"abstract":if(this.tsCheckLineTerminator(n)&&(this.match(a._class)||g(this.type)))return this.tsParseAbstractDeclaration(e);break;case"module":if(this.tsCheckLineTerminator(n)){if(this.match(a.string))return this.tsParseAmbientExternalModuleDeclaration(e);if(g(this.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(n)&&g(this.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(n)&&g(this.type))return this.tsParseTypeAliasDeclaration(e)}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.value,!0)}tsParseImportEqualsDeclaration(e,t){e.isExport=t||!1,e.id=this.parseIdent(),this.checkLValSimple(e.id,xs.BIND_LEXICAL),super.expect(a.eq);const n=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==n.type&&this.raise(n.start,fs.ImportAliasHasImportType),e.moduleReference=n,super.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;const{type:e}=this;if(g(e)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((e===d.type||e===d.interface)&&!this.containsEsc){const e=this.lookahead();if(g(e.type)&&!this.isContextualWithState("from",e)||e.type===a.braceL)return!1}}else if(!this.match(a._default))return!1;const t=this.nextTokenStart(),n=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||g(this.type)&&n)return!0;if(this.match(a._default)&&n){const e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseTemplate({isTagged:e=!1}={}){let t=this.startNode();this.next(),t.expressions=[];let n=this.parseTemplateElement({isTagged:e});for(t.quasis=[n];!n.tail;)this.type===a.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(a.dollarBraceL),t.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(a.braceR),t.quasis.push(n=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(t,"TemplateLiteral")}parseFunction(e,t,n,s,r){this.initFunction(e),(this.ecmaVersion>=9||this.ecmaVersion>=6&&!s)&&(this.type===a.star&&2&t&&this.unexpected(),e.generator=this.eat(a.star)),this.ecmaVersion>=8&&(e.async=!!s),1&t&&(e.id=4&t&&this.type!==a.name?null:this.parseIdent());let i=this.yieldPos,o=this.awaitPos,l=this.awaitIdentPos;const c=this.maybeInArrowParameters;this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Cs(e.async,e.generator)),1&t||(e.id=this.type===a.name?this.parseIdent():null),this.parseFunctionParams(e);const p=1&t;return this.parseFunctionBody(e,n,!1,r,{isFunctionDeclaration:p}),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=l,1&t&&e.id&&!(2&t)&&(e.body?this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?xs.BIND_VAR:xs.BIND_LEXICAL:xs.BIND_FUNCTION):this.checkLValSimple(e.id,xs.BIND_NONE)),this.maybeInArrowParameters=c,this.finishNode(e,p?"FunctionDeclaration":"FunctionExpression")}parseFunctionBody(e,t=!1,n=!1,s=!1,r){this.match(a.colon)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(a.colon));const i=r?.isFunctionDeclaration?"TSDeclareFunction":r?.isClassMethod?"TSDeclareMethod":void 0;return i&&!this.match(a.braceL)&&this.isLineTerminator()?this.finishNode(e,i):"TSDeclareFunction"===i&&this.isAmbientContext&&(this.raise(e.start,fs.DeclareFunctionHasImplementation),e.declare)?(super.parseFunctionBody(e,t,n,!1),this.finishNode(e,i)):(super.parseFunctionBody(e,t,n,s),e)}parseNew(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");let e=this.startNode(),t=this.parseIdent(!0);if(this.ecmaVersion>=6&&this.eat(a.dot)){e.meta=t;let n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}let n=this.start,s=this.startLoc,r=this.type===a._import;e.callee=this.parseSubscripts(this.parseExprAtom(),n,s,!0,!1),r&&"ImportExpression"===e.callee.type&&this.raise(n,"Cannot use new with import()");const{callee:i}=e;return"TSInstantiationExpression"!==i.type||i.extra?.parenthesized||(e.typeArguments=i.typeArguments,e.callee=i.expression),this.eat(a.parenL)?e.arguments=this.parseExprList(a.parenR,this.ecmaVersion>=8,!1):e.arguments=[],this.finishNode(e,"NewExpression")}parseExprOp(e,t,n,s,r){if(a._in.binop>s&&!this.hasPrecedingLineBreak()){let a;if(this.isContextual("as")&&(a="TSAsExpression"),this.isContextual("satisfies")&&(a="TSSatisfiesExpression"),a){const i=this.startNodeAt(t,n);i.expression=e;const o=this.tsTryNextParseConstantContext();return i.typeAnnotation=o||this.tsNextThenParseType(),this.finishNode(i,a),this.reScan_lt_gt(),this.parseExprOp(i,t,n,s,r)}}return super.parseExprOp(e,t,n,s,r)}parseImportSpecifiers(){let e=[],t=!0;if(r.tokenIsIdentifier(this.type)&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(a.comma)))return e;if(this.type===a.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(a.braceL);!this.eat(a.braceR);){if(t)t=!1;else if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break;e.push(this.parseImportSpecifier())}return e}parseImport(e){let t=this.lookahead();if(e.importKind="value",this.importOrExportOuterKind="value",g(t.type)||this.match(a.star)||this.match(a.braceL)){let n=this.lookahead(2);if(n.type!==a.comma&&!this.isContextualWithState("from",n)&&n.type!==a.eq&&this.ts_eatContextualWithState("type",1,t)&&(this.importOrExportOuterKind="type",e.importKind="type",t=this.lookahead(),n=this.lookahead(2)),g(t.type)&&n.type===a.eq){this.next();const t=this.tsParseImportEqualsDeclaration(e);return this.importOrExportOuterKind="value",t}}return this.next(),this.type===a.string?(e.specifiers=[],e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===a.string?this.parseExprAtom():this.unexpected()),this.parseMaybeImportAttributes(e),this.semicolon(),this.finishNode(e,"ImportDeclaration"),this.importOrExportOuterKind="value","type"===e.importKind&&e.specifiers.length>1&&"ImportDefaultSpecifier"===e.specifiers[0].type&&this.raise(e.start,fs.TypeImportCannotSpecifyDefaultAndNamed),e}parseExportDefaultDeclaration(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0)}if(this.match(d.interface)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultDeclaration()}parseExportAllDeclaration(e,t){return this.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==a.string&&this.unexpected(),e.source=this.parseExprAtom(),this.parseMaybeImportAttributes(e),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")}parseDynamicImport(e){if(this.next(),e.source=this.parseMaybeAssign(),this.eat(a.comma)){const t=this.parseExpression();e.arguments=[t]}if(!this.eat(a.parenR)){const e=this.start;this.eat(a.comma)&&this.eat(a.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(e,"ImportExpression")}parseExport(e,t){let n=this.lookahead();if(this.ts_eatWithState(a._import,2,n)){this.ts_isContextual(d.type)&&61!==this.lookaheadCharCode()?(e.importKind="type",this.importOrExportOuterKind="type",this.next()):(e.importKind="value",this.importOrExportOuterKind="value");const t=this.tsParseImportEqualsDeclaration(e,!0);return this.importOrExportOuterKind=void 0,t}if(this.ts_eatWithState(a.eq,2,n)){const t=e;return t.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(t,"TSExportAssignment")}if(this.ts_eatContextualWithState("as",2,n)){const t=e;return this.expectContextual("namespace"),t.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(t,"TSNamespaceExportDeclaration")}if(this.ts_isContextualWithState(n,d.type)&&this.lookahead(2).type===a.braceL?(this.next(),this.importOrExportOuterKind="type",e.exportKind="type"):(this.importOrExportOuterKind="value",e.exportKind="value"),this.next(),this.eat(a.star))return this.parseExportAllDeclaration(e,t);if(this.eat(a._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==a.string&&this.unexpected(),e.source=this.parseExprAtom(),this.parseMaybeImportAttributes(e);else{for(let t of e.specifiers)this.checkUnreserved(t.local),this.checkLocalExport(t.local),"Literal"===t.local.type&&this.raise(t.local.start,"A string literal cannot be used as an exported binding without `from`.");e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")}checkExport(e,t,n){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),e[t]=!0)}parseMaybeDefault(e,t,n){const s=super.parseMaybeDefault(e,t,n);return"AssignmentPattern"===s.type&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(s.typeAnnotation.start,fs.TypeAnnotationAfterAssign),s}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end,e.typeAnnotation.loc?.end),e.expression}toAssignableList(e,t){for(let t=0;t<e.length;t++){const n=e[t];"TSTypeCastExpression"===n?.type&&(e[t]=this.typeCastToParameter(n))}return super.toAssignableList(e,t)}reportReservedArrowTypeParam(e){1===e.params.length&&!e.extra?.trailingComma&&n&&this.raise(e.start,fs.ReservedArrowTypeParam)}parseExprAtom(e,t,n){if(this.type===d.jsxText)return this.jsx_parseText();if(this.type===d.jsxTagStart)return this.jsx_parseElement();if(this.type===d.at)return this.parseDecorators(),this.parseExprAtom();if(g(this.type)){let e=this.potentialArrowAt===this.start,n=this.start,s=this.startLoc,r=this.containsEsc,i=this.parseIdent(!1);if(this.ecmaVersion>=8&&!r&&"async"===i.name&&!this.canInsertSemicolon()&&this.eat(a._function))return this.overrideContext(p.f_expr),this.parseFunction(this.startNodeAt(n,s),0,!1,!0,t);if(e&&!this.canInsertSemicolon()){if(this.eat(a.arrow))return this.parseArrowExpression(this.startNodeAt(n,s),[i],!1,t);if(this.ecmaVersion>=8&&"async"===i.name&&this.type===a.name&&!r&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return i=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(a.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,s),[i],!0,t)}return i}return super.parseExprAtom(e,t,n)}parseExprAtomDefault(){if(g(this.type)){const e=this.potentialArrowAt===this.start,t=this.containsEsc,n=this.parseIdent();if(!t&&"async"===n.name&&!this.canInsertSemicolon()){const{type:e}=this;if(e===a._function)return this.next(),this.parseFunction(this.startNodeAtNode(n),void 0,!0,!0);if(g(e)){if(61===this.lookaheadCharCode()){const e=this.parseIdent(!1);return!this.canInsertSemicolon()&&this.eat(a.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAtNode(n),[e],!0)}return n}}return e&&this.match(a.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(n),[n],!1)):n}this.unexpected()}parseIdentNode(){let e=this.startNode();return b(this.type)&&("class"!==this.type.keyword&&"function"!==this.type.keyword||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart))?(e.name=this.value,e):super.parseIdentNode()}parseVarStatement(e,t,n=!1){const{isAmbientContext:s}=this;this.next(),super.parseVar(e,!1,t,n||s),this.semicolon();const r=this.finishNode(e,"VariableDeclaration");if(!s)return r;for(const{id:e,init:n}of r.declarations)n&&("const"!==t||e.typeAnnotation?this.raise(n.start,fs.InitializerNotAllowedInAmbientContext):"StringLiteral"!==n.type&&"BooleanLiteral"!==n.type&&"NumericLiteral"!==n.type&&"BigIntLiteral"!==n.type&&("TemplateLiteral"!==n.type||n.expressions.length>0)&&!ws(n)&&this.raise(n.start,fs.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference));return r}parseStatement(e,t,n){if(this.match(d.at)&&this.parseDecorators(!0),this.match(a._const)&&this.isLookaheadContextual("enum")){const e=this.startNode();return this.expect(a._const),this.tsParseEnumDeclaration(e,{const:!0})}if(this.ts_isContextual(d.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(d.interface)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatement(e,t,n)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parsePostMemberNameModifiers(e){this.eat(a.question)&&(e.optional=!0),e.readonly&&this.match(a.parenL)&&this.raise(e.start,fs.ClassMethodHasReadonly),e.declare&&this.match(a.parenL)&&this.raise(e.start,fs.ClassMethodHasDeclare)}parseExpressionStatement(e,t){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t):void 0)||super.parseExpressionStatement(e,t)}shouldParseExportStatement(){return!!this.tsIsDeclarationStart()||(!!this.match(d.at)||super.shouldParseExportStatement())}parseConditional(e,t,n,s,r){if(this.eat(a.question)){let r=this.startNodeAt(t,n);return r.test=e,r.consequent=this.parseMaybeAssign(),this.expect(a.colon),r.alternate=this.parseMaybeAssign(s),this.finishNode(r,"ConditionalExpression")}return e}parseMaybeConditional(e,t){let n=this.start,s=this.startLoc,r=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return r;if(!this.maybeInArrowParameters||!this.match(a.question))return this.parseConditional(r,n,s,e,t);const i=this.tryParse((()=>this.parseConditional(r,n,s,e,t)));return i.node?(i.error&&this.setLookaheadState(i.failState),i.node):(i.error&&this.setOptionalParametersError(t,i.error),r)}parseParenItem(e){const t=this.start,n=this.startLoc;if(e=super.parseParenItem(e),this.eat(a.question)&&(e.optional=!0,this.resetEndLocation(e)),this.match(a.colon)){const s=this.startNodeAt(t,n);return s.expression=e,s.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(s,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.isAmbientContext&&this.ts_isContextual(d.declare))return this.tsInAmbientContext((()=>this.parseExportDeclaration(e)));const t=this.start,n=this.startLoc,s=this.eatContextual("declare");!s||!this.ts_isContextual(d.declare)&&this.shouldParseExportStatement()||this.raise(this.start,fs.ExpectedAmbientAfterExportDeclare);const r=g(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);return r?(("TSInterfaceDeclaration"===r.type||"TSTypeAliasDeclaration"===r.type||s)&&(e.exportKind="type"),s&&(this.resetStartLocation(r,t,n),r.declare=!0),r):null}parseClassId(e,t){if(!t&&this.isContextual("implements"))return;super.parseClassId(e,t);const n=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));n&&(e.typeParameters=n)}parseClassPropertyAnnotation(e){e.optional||("!"===this.value&&this.eat(a.prefix)?e.definite=!0:this.eat(a.question)&&(e.optional=!0));const t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassField(e){if("PrivateIdentifier"===e.key.type)e.abstract&&this.raise(e.start,fs.PrivateElementHasAbstract),e.accessibility&&this.raise(e.start,fs.PrivateElementHasAccessibility({modifier:e.accessibility})),this.parseClassPropertyAnnotation(e);else if(this.parseClassPropertyAnnotation(e),this.isAmbientContext&&(!e.readonly||e.typeAnnotation)&&this.match(a.eq)&&this.raise(this.start,fs.DeclareClassFieldHasInitializer),e.abstract&&this.match(a.eq)){const{key:t}=e;this.raise(this.start,fs.AbstractPropertyHasInitializer({propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(t.start,t.end)}]`:t.name}))}return super.parseClassField(e)}parseClassMethod(e,t,n,s){const r="constructor"===e.kind,a="PrivateIdentifier"===e.key.type,i=this.tsTryParseTypeParameters(this.tsParseConstModifier);a?(i&&(e.typeParameters=i),e.accessibility&&this.raise(e.start,fs.PrivateMethodsHasAccessibility({modifier:e.accessibility}))):i&&r&&this.raise(i.start,fs.ConstructorHasTypeParameters);const{declare:o=!1,kind:l}=e;!o||"get"!==l&&"set"!==l||this.raise(e.start,fs.DeclareAccessor({kind:l})),i&&(e.typeParameters=i);const c=e.key;"constructor"===e.kind?(t&&this.raise(c.start,"Constructor can't be a generator"),n&&this.raise(c.start,"Constructor can't be an async method")):e.static&&ms(e,"prototype")&&this.raise(c.start,"Classes may not have a static property named prototype");const p=e.value=this.parseMethod(t,n,s,!0,e);return"get"===e.kind&&0!==p.params.length&&this.raiseRecoverable(p.start,"getter should have no params"),"set"===e.kind&&1!==p.params.length&&this.raiseRecoverable(p.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===p.params[0].type&&this.raiseRecoverable(p.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")}isClassMethod(){return this.match(a.relational)}parseClassElement(e){if(this.eat(a.semi))return null;let t=this.startNode(),n="",s=!1,r=!1,i="method",o=!1;const l=["declare","private","public","protected","accessor","override","abstract","readonly","static"],c=this.tsParseModifiers({modified:t,allowedModifiers:l,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:fs.InvalidModifierOnTypeParameterPositions});o=Boolean(c.static);const p=()=>{if(!this.tsIsStartOfStaticBlocks()){const l=this.tsTryParseIndexSignature(t);if(l)return t.abstract&&this.raise(t.start,fs.IndexSignatureHasAbstract),t.accessibility&&this.raise(t.start,fs.IndexSignatureHasAccessibility({modifier:t.accessibility})),t.declare&&this.raise(t.start,fs.IndexSignatureHasDeclare),t.override&&this.raise(t.start,fs.IndexSignatureHasOverride),l;if(!this.inAbstractClass&&t.abstract&&this.raise(t.start,fs.NonAbstractClassHasAbstractMethod),t.override&&(e||this.raise(t.start,fs.OverrideNotInSubClass)),t.static=o,o&&(this.isClassElementNameStart()||this.type===a.star||(n="static")),!n&&this.ecmaVersion>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==a.star||this.canInsertSemicolon()?n="async":r=!0),!n&&(this.ecmaVersion>=9||!r)&&this.eat(a.star)&&(s=!0),!n&&!r&&!s){const e=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?i=e:n=e)}if(n?(t.computed=!1,t.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),t.key.name=n,this.finishNode(t.key,"Identifier")):this.parseClassElementName(t),this.parsePostMemberNameModifiers(t),this.isClassMethod()||this.ecmaVersion<13||this.type===a.parenL||"method"!==i||s||r){const n=!t.static&&ms(t,"constructor"),a=n&&e;n&&"method"!==i&&this.raise(t.key.start,"Constructor can't have get/set modifier"),t.kind=n?"constructor":i,this.parseClassMethod(t,s,r,a)}else this.parseClassField(t);return t}if(this.next(),this.next(),this.tsHasSomeModifiers(t,l)&&this.raise(this.start,fs.StaticBlockCannotHaveModifier),this.ecmaVersion>=13)return super.parseClassStaticBlock(t),t};return t.declare?this.tsInAmbientContext(p):p(),t}isClassElementNameStart(){return!!this.tsIsIdentifier()||super.isClassElementNameStart()}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.tsMatchLeftRelational()||this.match(a.bitShift))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual("implements")&&(e.implements=this.tsParseHeritageClause("implements"))}parseFunctionParams(e){const t=this.tsTryParseTypeParameters(this.tsParseConstModifier);t&&(e.typeParameters=t),super.parseFunctionParams(e)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&"!"===this.value&&this.eat(a.prefix)&&(e.definite=!0);const n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseArrowExpression(e,t,n,s){this.match(a.colon)&&(e.returnType=this.tsParseTypeAnnotation());let r=this.yieldPos,i=this.awaitPos,o=this.awaitIdentPos;this.enterScope(Cs(n,!1)|xs.SCOPE_ARROW),this.initFunction(e);const l=this.maybeInArrowParameters;return this.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,e.params=this.toAssignableList(t,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0,!1,s),this.yieldPos=r,this.awaitPos=i,this.awaitIdentPos=o,this.maybeInArrowParameters=l,this.finishNode(e,"ArrowFunctionExpression")}parseMaybeAssignOrigin(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}let s=!1,r=-1,i=-1,o=-1;t?(r=t.parenthesizedAssign,i=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new ds,s=!0);let l=this.start,c=this.startLoc;(this.type===a.parenL||g(this.type))&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);let p=this.parseMaybeConditional(e,t);if(n&&(p=n.call(this,p,l,c)),this.type.isAssign){let n=this.startNodeAt(l,c);return n.operator=this.value,this.type===a.eq&&(p=this.toAssignable(p,!0,t)),s||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=p.start&&(t.shorthandAssign=-1),this.maybeInArrowParameters||(this.type===a.eq?this.checkLValPattern(p):this.checkLValSimple(p)),n.left=p,this.next(),n.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(n,"AssignmentExpression")}return s&&this.checkExpressionErrors(t,!0),r>-1&&(t.parenthesizedAssign=r),i>-1&&(t.trailingComma=i),p}parseMaybeAssign(e,t,n){let s,r,a;if(!this.tsMatchLeftRelational())return this.parseMaybeAssignOrigin(e,t,n);s&&!this.compareLookaheadState(s,this.getCurLookaheadState())||(s=this.cloneCurLookaheadState());const i=this.tryParse((s=>{a=this.tsParseTypeParameters(this.tsParseConstModifier);const r=this.parseMaybeAssignOrigin(e,t,n);return("ArrowFunctionExpression"!==r.type||r.extra?.parenthesized)&&s(),0!==a?.params.length&&this.resetStartLocationFromNode(r,a),r.typeParameters=a,r}),s);if(!i.error&&!i.aborted)return a&&this.reportReservedArrowTypeParam(a),i.node;if(gs(!0),r=this.tryParse((()=>this.parseMaybeAssignOrigin(e,t,n)),s),!r.error)return r.node;if(i.node)return this.setLookaheadState(i.failState),a&&this.reportReservedArrowTypeParam(a),i.node;if(r?.node)return this.setLookaheadState(r.failState),r.node;if(i.thrown)throw i.error;if(r?.thrown)throw r.error;throw i.error||r?.error}parseAssignableListItem(e){const t=[];for(;this.match(d.at);)t.push(this.parseDecorator());const n=this.start,s=this.startLoc;let r,a=!1,i=!1;if(void 0!==e){const t={};this.tsParseModifiers({modified:t,allowedModifiers:["public","private","protected","override","readonly"]}),r=t.accessibility,i=t.override,a=t.readonly,!1===e&&(r||a||i)&&this.raise(s.start,fs.UnexpectedParameterModifier)}const o=this.parseMaybeDefault(n,s);this.parseBindingListItem(o);const l=this.parseMaybeDefault(o.start,o.loc,o);if(t.length&&(l.decorators=t),r||a||i){const e=this.startNodeAt(n,s);return r&&(e.accessibility=r),a&&(e.readonly=a),i&&(e.override=i),"Identifier"!==l.type&&"AssignmentPattern"!==l.type&&this.raise(e.start,fs.UnsupportedParameterPropertyKind),e.parameter=l,this.finishNode(e,"TSParameterProperty")}return l}checkLValInnerPattern(e,t=xs.BIND_NONE,n){if("TSParameterProperty"===e.type)this.checkLValInnerPattern(e.parameter,t,n);else super.checkLValInnerPattern(e,t,n)}parseBindingListItem(e){this.eat(a.question)&&("Identifier"===e.type||this.isAmbientContext||this.inType||this.raise(e.start,fs.PatternIsOptional),e.optional=!0);const t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{const t=e.properties.length-1;return e.properties.every(((e,n)=>"ObjectMethod"!==e.type&&(n===t||"SpreadElement"!==e.type)&&this.isAssignable(e)))}case"Property":case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((e=>null===e||this.isAssignable(e)));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toAssignable(e,t=!1,n=new ds){switch(e.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(e,t,n);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":return t||this.raise(e.start,fs.UnexpectedTypeCastInParameter),this.toAssignable(e.expression,t,n);case"MemberExpression":break;case"AssignmentExpression":return t||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t,n);case"TSTypeCastExpression":return this.typeCastToParameter(e);default:return super.toAssignable(e,t,n)}return e}toAssignableParenthesizedExpression(e,t,n){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(e.expression,t,n);default:return super.toAssignable(e,t,n)}}parseBindingAtom(){return this.type===a._this?this.parseIdent(!0):super.parseBindingAtom()}shouldParseArrow(e){let t;if(t=this.match(a.colon)?e.every((e=>this.isAssignable(e,!0))):!this.canInsertSemicolon(),t){if(this.match(a.colon)){const e=this.tryParse((e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(a.colon);return!this.canInsertSemicolon()&&this.match(a.arrow)||e(),t}));if(e.aborted)return this.shouldParseArrowReturnType=void 0,!1;e.thrown||(e.error&&this.setLookaheadState(e.failState),this.shouldParseArrowReturnType=e.node)}return!!this.match(a.arrow)||(this.shouldParseArrowReturnType=void 0,!1)}return this.shouldParseArrowReturnType=void 0,t}parseParenArrowList(e,t,n,s){const r=this.startNodeAt(e,t);return r.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(r,n,!1,s)}parseParenAndDistinguishExpression(e,t){let n,s=this.start,r=this.startLoc,i=this.ecmaVersion>=8;if(this.ecmaVersion>=6){const o=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();let l,c=this.start,p=this.startLoc,u=[],d=!0,h=!1,m=new ds,f=this.yieldPos,y=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==a.parenR;){if(d?d=!1:this.expect(a.comma),i&&this.afterTrailingComma(a.parenR,!0)){h=!0;break}if(this.type===a.ellipsis){l=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===a.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}u.push(this.parseMaybeAssign(t,m,this.parseParenItem))}let v=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(a.parenR),this.maybeInArrowParameters=o,e&&this.shouldParseArrow(u)&&this.eat(a.arrow))return this.checkPatternErrors(m,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=y,this.parseParenArrowList(s,r,u,t);u.length&&!h||this.unexpected(this.lastTokStart),l&&this.unexpected(l),this.checkExpressionErrors(m,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=y||this.awaitPos,u.length>1?(n=this.startNodeAt(c,p),n.expressions=u,this.finishNodeAt(n,"SequenceExpression",v,g)):n=u[0]}else n=this.parseParenExpression();if(this.options.preserveParens){let e=this.startNodeAt(s,r);return e.expression=n,this.finishNode(e,"ParenthesizedExpression")}return n}parseTaggedTemplateExpression(e,t,n,s){const r=this.startNodeAt(t,n);return r.tag=e,r.quasi=this.parseTemplate({isTagged:!0}),s&&this.raise(t,"Tagged Template Literals are not allowed in optionalChain."),this.finishNode(r,"TaggedTemplateExpression")}shouldParseAsyncArrow(){if(!this.match(a.colon))return!this.canInsertSemicolon()&&this.eat(a.arrow);{const e=this.tryParse((e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(a.colon);return!this.canInsertSemicolon()&&this.match(a.arrow)||e(),t}));if(e.aborted)return this.shouldParseAsyncArrowReturnType=void 0,!1;if(!e.thrown)return e.error&&this.setLookaheadState(e.failState),this.shouldParseAsyncArrowReturnType=e.node,!this.canInsertSemicolon()&&this.eat(a.arrow)}}parseSubscriptAsyncArrow(e,t,n,s){const r=this.startNodeAt(e,t);return r.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(r,n,!0,s)}parseExprList(e,t,n,s){let r=[],i=!0;for(;!this.eat(e);){if(i)i=!1;else if(this.expect(a.comma),t&&this.afterTrailingComma(e))break;let o;n&&this.type===a.comma?o=null:this.type===a.ellipsis?(o=this.parseSpread(s),this.maybeInArrowParameters&&this.match(a.colon)&&(o.typeAnnotation=this.tsParseTypeAnnotation()),s&&this.type===a.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):o=this.parseMaybeAssign(!1,s,this.parseParenItem),r.push(o)}return r}parseSubscript(e,t,n,s,r,i,o){let l=i;if(!this.hasPrecedingLineBreak()&&"!"===this.value&&this.match(a.prefix)){this.exprAllowed=!1,this.next();const s=this.startNodeAt(t,n);return s.expression=e,e=this.finishNode(s,"TSNonNullExpression")}let c=!1;if(this.match(a.questionDot)&&60===this.lookaheadCharCode()){if(s)return e;e.optional=!0,l=c=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(a.bitShift)){let r;const i=this.tsTryParseAndCatch((()=>{if(!s&&this.atPossibleAsyncArrow(e)){const s=this.tsTryParseGenericAsyncArrowFunction(t,n,o);if(s)return e=s}const i=this.tsParseTypeArgumentsInExpression();if(!i)return e;if(c&&!this.match(a.parenL))return r=this.curPosition(),e;if(y(this.type)||this.type===a.backQuote){const s=this.parseTaggedTemplateExpression(e,t,n,l);return s.typeArguments=i,s}if(!s&&this.eat(a.parenL)){let s=new ds;const r=this.startNodeAt(t,n);return r.callee=e,r.arguments=this.parseExprList(a.parenR,this.ecmaVersion>=8,!1,s),this.tsCheckForInvalidTypeCasts(r.arguments),r.typeArguments=i,l&&(r.optional=c),this.checkExpressionErrors(s,!0),e=this.finishNode(r,"CallExpression")}const p=this.type;if(this.tsMatchRightRelational()||p===a.bitShift||p!==a.parenL&&Boolean(p.startsExpr)&&!this.hasPrecedingLineBreak())return;const u=this.startNodeAt(t,n);return u.expression=e,u.typeArguments=i,this.finishNode(u,"TSInstantiationExpression")}));if(r&&this.unexpected(r),i)return"TSInstantiationExpression"===i.type&&(this.match(a.dot)||this.match(a.questionDot)&&40!==this.lookaheadCharCode())&&this.raise(this.start,fs.InvalidPropertyAccessAfterInstantiationExpression),e=i}let p=this.ecmaVersion>=11,u=p&&this.eat(a.questionDot);s&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");let d=this.eat(a.bracketL);if(d||u&&this.type!==a.parenL&&this.type!==a.backQuote||this.eat(a.dot)){let s=this.startNodeAt(t,n);s.object=e,d?(s.property=this.parseExpression(),this.expect(a.bracketR)):this.type===a.privateId&&"Super"!==e.type?s.property=this.parsePrivateIdent():s.property=this.parseIdent("never"!==this.options.allowReserved),s.computed=!!d,p&&(s.optional=u),e=this.finishNode(s,"MemberExpression")}else if(!s&&this.eat(a.parenL)){const s=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let i=new ds,l=this.yieldPos,c=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;let h=this.parseExprList(a.parenR,this.ecmaVersion>=8,!1,i);if(r&&!u&&this.shouldParseAsyncArrow())this.checkPatternErrors(i,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=l,this.awaitPos=c,this.awaitIdentPos=d,e=this.parseSubscriptAsyncArrow(t,n,h,o);else{this.checkExpressionErrors(i,!0),this.yieldPos=l||this.yieldPos,this.awaitPos=c||this.awaitPos,this.awaitIdentPos=d||this.awaitIdentPos;let s=this.startNodeAt(t,n);s.callee=e,s.arguments=h,p&&(s.optional=u),e=this.finishNode(s,"CallExpression")}this.maybeInArrowParameters=s}else if(this.type===a.backQuote){(u||l)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");let s=this.startNodeAt(t,n);s.tag=e,s.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(s,"TaggedTemplateExpression")}return e}parseGetterSetter(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);let t="get"===e.kind?0:1;const n=e.value.params[0];if(t=n&&this.isThisParam(n)?t+1:t,e.value.params.length!==t){let t=e.value.start;"get"===e.kind?this.raiseRecoverable(t,"getter should have no params"):this.raiseRecoverable(t,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}parseProperty(e,t){if(!e){let n=[];if(this.match(d.at))for(;this.match(d.at);)n.push(this.parseDecorator());const s=super.parseProperty(e,t);return"SpreadElement"===s.type&&n.length&&this.raise(s.start,ys.SpreadElementDecorator),n.length&&(s.decorators=n,n=[]),s}return super.parseProperty(e,t)}parseCatchClauseParam(){const e=this.parseBindingAtom();let t="Identifier"===e.type;this.enterScope(t?xs.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(e,t?xs.BIND_SIMPLE_CATCH:xs.BIND_LEXICAL);const n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n,this.resetEndLocation(e)),this.expect(a.parenR),e}parseClass(e,t){const n=this.inAbstractClass;this.inAbstractClass=!!e.abstract;try{this.next(),this.takeDecorators(e);const n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);const s=this.enterClassBody(),r=this.startNode();let i=!1;r.body=[];let o=[];for(this.expect(a.braceL);this.type!==a.braceR;){if(this.match(d.at)){o.push(this.parseDecorator());continue}const t=this.parseClassElement(null!==e.superClass);o.length&&(t.decorators=o,this.resetStartLocationFromNode(t,o[0]),o=[]),t&&(r.body.push(t),"MethodDefinition"===t.type&&"constructor"===t.kind&&"FunctionExpression"===t.value.type?(i&&this.raiseRecoverable(t.start,"Duplicate constructor in the same class"),i=!0,t.decorators&&t.decorators.length>0&&this.raise(t.start,ys.DecoratorConstructor)):t.key&&"PrivateIdentifier"===t.key.type&&hs(s,t)&&this.raiseRecoverable(t.key.start,`Identifier '#${t.key.name}' has already been declared`))}return this.strict=n,this.next(),o.length&&this.raise(this.start,ys.TrailingDecorator),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=n}}parseClassFunctionParams(){const e=this.tsTryParseTypeParameters();let t=this.parseBindingList(a.parenR,!1,this.ecmaVersion>=8,!0);return e&&(t.typeParameters=e),t}parseMethod(e,t,n,s,r){let i=this.startNode(),o=this.yieldPos,l=this.awaitPos,c=this.awaitIdentPos;if(this.initFunction(i),this.ecmaVersion>=6&&(i.generator=e),this.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Cs(t,i.generator)|xs.SCOPE_SUPER|(n?xs.SCOPE_DIRECT_SUPER:0)),this.expect(a.parenL),i.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0,!1,{isClassMethod:s}),this.yieldPos=o,this.awaitPos=l,this.awaitIdentPos=c,r&&r.abstract){if(!!i.body){const{key:e}=r;this.raise(r.start,fs.AbstractMethodHasImplementation({methodName:"Identifier"!==e.type||r.computed?`[${this.input.slice(e.start,e.end)}]`:e.name}))}}return this.finishNode(i,"FunctionExpression")}static parse(e,n){if(!1===n.locations)throw new Error("You have to enable options.locations while using acorn-typescript");n.locations=!0;const s=new this(n,e);return t&&(s.isAmbientContext=!0),s.parse()}static parseExpressionAt(e,n,s){if(!1===s.locations)throw new Error("You have to enable options.locations while using acorn-typescript");s.locations=!0;const r=new this(s,e,n);return t&&(r.isAmbientContext=!0),r.nextToken(),r.parseExpression()}parseImportSpecifier(){if(this.ts_isContextual(d.type)){let e=this.startNode();return e.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(e,!0,"type"===this.importOrExportOuterKind),this.finishNode(e,"ImportSpecifier")}{const e=super.parseImportSpecifier();return e.importKind="value",e}}parseExportSpecifier(e){const t=this.ts_isContextual(d.type);if(!this.match(a.string)&&t){let t=this.startNode();return t.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(t,!1,"type"===this.importOrExportOuterKind),this.finishNode(t,"ExportSpecifier"),this.checkExport(e,t.exported,t.exported.start),t}{const t=super.parseExportSpecifier(e);return t.exportKind="value",t}}parseTypeOnlyImportExportSpecifier(e,t,n){const s=t?"imported":"local",r=t?"local":"exported";let a,i=e[s],o=!1,l=!0;const c=i.start;if(this.isContextual("as")){const e=this.parseIdent();if(this.isContextual("as")){const n=this.parseIdent();b(this.type)?(o=!0,i=e,a=t?this.parseIdent():this.parseModuleExportName(),l=!1):(a=n,l=!1)}else b(this.type)?(l=!1,a=t?this.parseIdent():this.parseModuleExportName()):(o=!0,i=e)}else b(this.type)&&(o=!0,t?(i=super.parseIdent(!0),this.isContextual("as")||this.checkUnreserved(i)):i=this.parseModuleExportName());o&&n&&this.raise(c,t?fs.TypeModifierIsUsedInTypeImports:fs.TypeModifierIsUsedInTypeExports),e[s]=i,e[r]=a;e[t?"importKind":"exportKind"]=o?"type":"value",l&&this.eatContextual("as")&&(e[r]=t?this.parseIdent():this.parseModuleExportName()),e[r]||(e[r]=this.copyNode(e[s])),t&&this.checkLValSimple(e[r],xs.BIND_LEXICAL)}raiseCommonCheck(e,t,n){return"Comma is not permitted after the rest element"===t?this.isAmbientContext&&this.match(a.comma)&&41===this.lookaheadCharCode()?void this.next():super.raise(e,t):n?super.raiseRecoverable(e,t):super.raise(e,t)}raiseRecoverable(e,t){return this.raiseCommonCheck(e,t,!0)}raise(e,t){return this.raiseCommonCheck(e,t,!0)}updateContext(e){const{type:t}=this;if(t==a.braceL){var n=this.curContext();n==h.tc_oTag?this.context.push(p.b_expr):n==h.tc_expr?this.context.push(p.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(t!==a.slash||e!==d.jsxTagStart)return super.updateContext(e);this.context.length-=2,this.context.push(h.tc_cTag),this.exprAllowed=!1}}jsx_parseOpeningElementAt(e,t){let n=this.startNodeAt(e,t),s=this.jsx_parseElementName();if(s&&(n.name=s),this.match(a.relational)||this.match(a.bitShift)){const e=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));e&&(n.typeArguments=e)}for(n.attributes=[];this.type!==a.slash&&this.type!==d.jsxTagEnd;)n.attributes.push(this.jsx_parseAttribute());return n.selfClosing=this.eat(a.slash),this.expect(d.jsxTagEnd),this.finishNode(n,s?"JSXOpeningElement":"JSXOpeningFragment")}enterScope(e){e===ps&&this.importsStack.push([]),super.enterScope(e);const t=super.currentScope();t.types=[],t.enums=[],t.constEnums=[],t.classes=[],t.exportOnlyBindings=[]}exitScope(){super.currentScope().flags===ps&&this.importsStack.pop(),super.exitScope()}hasImport(e,t){const n=this.importsStack.length;if(this.importsStack[n-1].indexOf(e)>-1)return!0;if(!t&&n>1)for(let t=0;t<n-1;t++)if(this.importsStack[t].indexOf(e)>-1)return!0;return!1}maybeExportDefined(e,t){this.inModule&&e.flags&xs.SCOPE_TOP&&this.undefinedExports.delete(t)}declareName(e,t,n){if(t&xs.BIND_FLAGS_TS_IMPORT)return this.hasImport(e,!0)&&this.raise(n,`Identifier '${e}' has already been declared.`),void this.importsStack[this.importsStack.length-1].push(e);const s=this.currentScope();if(t&xs.BIND_FLAGS_TS_EXPORT_ONLY)return this.maybeExportDefined(s,e),void s.exportOnlyBindings.push(e);t===xs.BIND_TS_TYPE||t===xs.BIND_TS_INTERFACE?(t===xs.BIND_TS_TYPE&&s.types.includes(e)&&this.raise(n,`type '${e}' has already been declared.`),s.types.push(e)):super.declareName(e,t,n),t&xs.BIND_FLAGS_TS_ENUM&&s.enums.push(e),t&xs.BIND_FLAGS_TS_CONST_ENUM&&s.constEnums.push(e),t&xs.BIND_FLAGS_CLASS&&s.classes.push(e)}checkLocalExport(e){const{name:t}=e;if(this.hasImport(t))return;for(let e=this.scopeStack.length-1;e>=0;e--){const n=this.scopeStack[e];if(n.types.indexOf(t)>-1||n.exportOnlyBindings.indexOf(t)>-1)return}super.checkLocalExport(e)}}}}());function Es(e,t,n){const s=t?Ps:Jt,{onComment:r,add_comments:a}=As(e),i=s.prototype.parseStatement;let o;n&&(s.prototype.parseStatement=function(...e){const t=i.call(this,...e);return this.undefinedExports={},t});try{o=s.parse(e,{onComment:r,sourceType:"module",ecmaVersion:13,locations:!0})}finally{n&&(s.prototype.parseStatement=i)}return a(o),o}function Ts(e,t,n){const s=t?Ps:Jt,{onComment:r,add_comments:a}=As(e),i=s.parseExpressionAt(e,n,{onComment:r,sourceType:"module",ecmaVersion:13,locations:!0});return a(i),i}function As(e){const n=[];return{onComment:(t,s,r,a)=>{if(t&&/\n/.test(s)){let t=r;for(;t>0&&"\n"!==e[t-1];)t-=1;let n=t;for(;/[ \t]/.test(e[n]);)n+=1;const a=e.slice(t,n);s=s.replace(new RegExp(`^${a}`,"gm"),"")}n.push({type:t?"Block":"Line",value:s,start:r,end:a})},add_comments(s){0!==n.length&&(t(s,null,{_(t,{next:s,path:r}){let a;for(;n[0]&&n[0].start<t.start;)a=n.shift(),(t.leadingComments||=[]).push(a);if(s(),n[0]){const s=r.at(-1);if(void 0===s||t.end!==s.end){const r=e.slice(t.end,n[0].start);if(("BlockStatement"===s?.type||"Program"===s?.type)&&s.body.indexOf(t)===s.body.length-1||"ArrayExpression"===s?.type&&s.elements.indexOf(t)===s.elements.length-1||"ObjectExpression"===s?.type&&s.properties.indexOf(t)===s.properties.length-1)for(t.end;n.length;){const e=n[0];if(s&&e.start>=s.end)break;(t.trailingComments||=[]).push(e),n.shift(),e.end}else t.end<=n[0].start&&/^[,) \t]*$/.test(r)&&(t.trailingComments=[n.shift()])}}}}),n.length>0&&(n[0].start>=s.end||"Program"===s.type)&&(s.trailingComments||=[]).push(...n.splice(0)))}}}class $s extends Error{message="";#e;constructor(e,t,n){super(t),this.stack="",this.#e=new xe(e,t,n),Object.assign(this,this.#e),this.name="CompileError"}toString(){return this.#e.toString()}toJSON(){return this.#e.toJSON()}}function Is(e,t,n){const s="number"==typeof e?e:e?.start;throw new $s(t,n,void 0!==s?[s,("number"==typeof e?e:e?.end)??s]:void 0)}function Rs(e,t){Is(e,"options_unrecognised",`Unrecognised compiler option ${t}\nhttps://svelte.dev/e/options_unrecognised`)}function qs(e,t){Is(e,"constant_assignment",`Cannot assign to ${t}\nhttps://svelte.dev/e/constant_assignment`)}function Ls(e){Is(e,"declaration_duplicate_module_import","Cannot declare a variable with the same name as an import inside `<script module>`\nhttps://svelte.dev/e/declaration_duplicate_module_import")}function Ms(e){Is(e,"derived_invalid_export","Cannot export derived state from a module. To expose the current derived value, export a function returning its value\nhttps://svelte.dev/e/derived_invalid_export")}function Os(e,t){Is(e,"export_undefined",`\`${t}\` is not defined\nhttps://svelte.dev/e/export_undefined`)}function Ns(e,t){Is(e,"global_reference_invalid",`\`${t}\` is an illegal variable name. To reference a global variable called \`${t}\`, use \`globalThis.${t}\`\nhttps://svelte.dev/e/global_reference_invalid`)}function Ds(e,t){Is(e,"props_duplicate",`Cannot use \`${t}()\` more than once\nhttps://svelte.dev/e/props_duplicate`)}function js(e){Is(e,"props_illegal_name","Declaring or accessing a prop starting with `$$` is illegal (they are reserved for Svelte internals)\nhttps://svelte.dev/e/props_illegal_name")}function Bs(e){Is(e,"props_invalid_pattern","`$props()` assignment must not contain nested properties or computed keys\nhttps://svelte.dev/e/props_invalid_pattern")}function Fs(e,t){Is(e,"rune_invalid_arguments",`\`${t}\` cannot be called with arguments\nhttps://svelte.dev/e/rune_invalid_arguments`)}function Vs(e,t,n){Is(e,"rune_invalid_arguments_length",`\`${t}\` must be called with ${n}\nhttps://svelte.dev/e/rune_invalid_arguments_length`)}function Hs(e){Is(e,"rune_invalid_computed_property","Cannot access a computed property of a rune\nhttps://svelte.dev/e/rune_invalid_computed_property")}function Us(e,t){Is(e,"rune_invalid_name",`\`${t}\` is not a valid rune\nhttps://svelte.dev/e/rune_invalid_name`)}function zs(e,t){Is(e,"rune_invalid_spread",`\`${t}\` cannot be called with a spread argument\nhttps://svelte.dev/e/rune_invalid_spread`)}function Ws(e,t){Is(e,"rune_removed",`The \`${t}\` rune has been removed\nhttps://svelte.dev/e/rune_removed`)}function Gs(e,t,n){Is(e,"rune_renamed",`\`${t}\` is now \`${n}\`\nhttps://svelte.dev/e/rune_renamed`)}function Ks(e,t){Is(e,"runes_mode_invalid_import",`${t} cannot be used in runes mode\nhttps://svelte.dev/e/runes_mode_invalid_import`)}function Xs(e){Is(e,"state_invalid_export","Cannot export state from a module if it is reassigned. Either export a function returning the state value or only mutate the state value's properties\nhttps://svelte.dev/e/state_invalid_export")}function Qs(e,t){Is(e,"state_invalid_placement",`\`${t}(...)\` can only be used as a variable declaration initializer or a class field\nhttps://svelte.dev/e/state_invalid_placement`)}function Ys(e){Is(e,"store_invalid_subscription","Cannot reference store value inside `<script module>`\nhttps://svelte.dev/e/store_invalid_subscription")}function Js(e,t){Is(e,"typescript_invalid_feature",`TypeScript language features like ${t} are not natively supported, and their use is generally discouraged. Outside of \`<script>\` tags, these features are not supported. For use within \`<script>\` tags, you will need to use a preprocessor to convert it to JavaScript before it gets passed to the Svelte compiler. If you are using \`vitePreprocess\`, make sure to specifically enable preprocessing script tags (\`vitePreprocess({ script: true })\`)\nhttps://svelte.dev/e/typescript_invalid_feature`)}function Zs(e){Is(e,"css_expected_identifier","Expected a valid CSS identifier\nhttps://svelte.dev/e/css_expected_identifier")}function er(e){Is(e,"css_global_block_invalid_modifier_start","A `:global` selector can only be modified if it is a descendant of other selectors\nhttps://svelte.dev/e/css_global_block_invalid_modifier_start")}function tr(e){Is(e,"css_global_invalid_placement","`:global(...)` can be at the start or end of a selector sequence, but not in the middle\nhttps://svelte.dev/e/css_global_invalid_placement")}function nr(e){Is(e,"css_global_invalid_selector","`:global(...)` must contain exactly one selector\nhttps://svelte.dev/e/css_global_invalid_selector")}function sr(e){Is(e,"css_global_invalid_selector_list","`:global(...)` must not contain type or universal selectors when used in a compound selector\nhttps://svelte.dev/e/css_global_invalid_selector_list")}function rr(e){Is(e,"css_selector_invalid","Invalid selector\nhttps://svelte.dev/e/css_selector_invalid")}function ar(e){Is(e,"css_type_selector_invalid_placement","`:global(...)` must not be followed by a type selector\nhttps://svelte.dev/e/css_type_selector_invalid_placement")}function ir(e){Is(e,"animation_duplicate","An element can only have one 'animate' directive\nhttps://svelte.dev/e/animation_duplicate")}function or(e){Is(e,"animation_invalid_placement","An element that uses the `animate:` directive must be the only child of a keyed `{#each ...}` block\nhttps://svelte.dev/e/animation_invalid_placement")}function lr(e){Is(e,"animation_missing_key","An element that uses the `animate:` directive must be the only child of a keyed `{#each ...}` block. Did you forget to add a key to your each block?\nhttps://svelte.dev/e/animation_missing_key")}function cr(e){Is(e,"attribute_duplicate","Attributes need to be unique\nhttps://svelte.dev/e/attribute_duplicate")}function pr(e){Is(e,"attribute_invalid_event_handler","Event attribute must be a JavaScript expression, not a string\nhttps://svelte.dev/e/attribute_invalid_event_handler")}function ur(e,t){Is(e,"attribute_invalid_name",`'${t}' is not a valid attribute name\nhttps://svelte.dev/e/attribute_invalid_name`)}function dr(e){Is(e,"attribute_invalid_sequence_expression","Sequence expressions are not allowed as attribute/directive values in runes mode, unless wrapped in parentheses\nhttps://svelte.dev/e/attribute_invalid_sequence_expression")}function hr(e){Is(e,"bind_invalid_expression","Can only bind to an Identifier or MemberExpression or a `{get, set}` pair\nhttps://svelte.dev/e/bind_invalid_expression")}function mr(e,t,n){Is(e,"bind_invalid_name",(n?`\`bind:${t}\` is not a valid binding. ${n}`:`\`bind:${t}\` is not a valid binding`)+"\nhttps://svelte.dev/e/bind_invalid_name")}function fr(e,t){Is(e,"bind_invalid_parens",`\`bind:${t}={get, set}\` must not have surrounding parentheses\nhttps://svelte.dev/e/bind_invalid_parens`)}function yr(e,t,n){Is(e,"bind_invalid_target",`\`bind:${t}\` can only be used with ${n}\nhttps://svelte.dev/e/bind_invalid_target`)}function vr(e,t){Is(e,"block_duplicate_clause",`${t} cannot appear more than once within a block\nhttps://svelte.dev/e/block_duplicate_clause`)}function gr(e,t,n){Is(e,"block_invalid_placement",`{#${t} ...} block cannot be ${n}\nhttps://svelte.dev/e/block_invalid_placement`)}function br(e,t){Is(e,"block_unexpected_character",`Expected a \`${t}\` character immediately following the opening bracket\nhttps://svelte.dev/e/block_unexpected_character`)}function _r(e){Is(e,"block_unexpected_close","Unexpected block closing tag\nhttps://svelte.dev/e/block_unexpected_close")}function xr(e){Is(e,"component_invalid_directive","This type of directive is not valid on components\nhttps://svelte.dev/e/component_invalid_directive")}function Cr(e,t){Is(e,"element_invalid_closing_tag",`\`</${t}>\` attempted to close an element that was not open\nhttps://svelte.dev/e/element_invalid_closing_tag`)}function wr(e,t,n){Is(e,"element_invalid_closing_tag_autoclosed",`\`</${t}>\` attempted to close element that was already automatically closed by \`<${n}>\` (cannot nest \`<${n}>\` inside \`<${t}>\`)\nhttps://svelte.dev/e/element_invalid_closing_tag_autoclosed`)}function kr(e,t){Is(e,"element_unclosed",`\`<${t}>\` was left open\nhttps://svelte.dev/e/element_unclosed`)}function Sr(e){Is(e,"event_handler_invalid_component_modifier","Event modifiers other than 'once' can only be used on DOM elements\nhttps://svelte.dev/e/event_handler_invalid_component_modifier")}function Pr(e,t){Is(e,"event_handler_invalid_modifier",`Valid event modifiers are ${t}\nhttps://svelte.dev/e/event_handler_invalid_modifier`)}function Er(e,t,n){Is(e,"event_handler_invalid_modifier_combination",`The '${t}' and '${n}' modifiers cannot be used together\nhttps://svelte.dev/e/event_handler_invalid_modifier_combination`)}function Tr(e){Is(e,"expected_attribute_value","Expected attribute value\nhttps://svelte.dev/e/expected_attribute_value")}function Ar(e){Is(e,"expected_identifier","Expected an identifier\nhttps://svelte.dev/e/expected_identifier")}function $r(e,t){Is(e,"expected_token",`Expected token ${t}\nhttps://svelte.dev/e/expected_token`)}function Ir(e,t){Is(e,"illegal_element_attribute",`\`<${t}>\` does not support non-event attributes or spread attributes\nhttps://svelte.dev/e/illegal_element_attribute`)}function Rr(e,t){Is(e,"node_invalid_placement",`${t}. The browser will 'repair' the HTML (by moving, removing, or inserting elements) which breaks Svelte's assumptions about the structure of your components.\nhttps://svelte.dev/e/node_invalid_placement`)}function qr(e){Is(e,"render_tag_invalid_spread_argument","cannot use spread arguments in `{@render ...}` tags\nhttps://svelte.dev/e/render_tag_invalid_spread_argument")}function Lr(e){Is(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 Mr(e,t){Is(e,"script_invalid_attribute_value",`If the \`${t}\` attribute is supplied, it must be a boolean attribute\nhttps://svelte.dev/e/script_invalid_attribute_value`)}function Or(e){Is(e,"script_invalid_context",'If the context attribute is supplied, its value must be "module"\nhttps://svelte.dev/e/script_invalid_context')}function Nr(e){Is(e,"slot_attribute_invalid","slot attribute must be a static value\nhttps://svelte.dev/e/slot_attribute_invalid")}function Dr(e){Is(e,"slot_attribute_invalid_placement","Element with a slot='...' attribute must be a child of a component or a descendant of a custom element\nhttps://svelte.dev/e/slot_attribute_invalid_placement")}function jr(e){Is(e,"slot_default_duplicate",'Found default slot content alongside an explicit slot="default"\nhttps://svelte.dev/e/slot_default_duplicate')}function Br(e){Is(e,"slot_element_invalid_attribute","`<slot>` can only receive attributes and (optionally) let directives\nhttps://svelte.dev/e/slot_element_invalid_attribute")}function Fr(e){Is(e,"slot_element_invalid_name","slot attribute must be a static value\nhttps://svelte.dev/e/slot_element_invalid_name")}function Vr(e){Is(e,"slot_element_invalid_name_default","`default` is a reserved word — it cannot be used as a slot name\nhttps://svelte.dev/e/slot_element_invalid_name_default")}function Hr(e){Is(e,"snippet_invalid_rest_parameter","Snippets do not support rest parameters; use an array instead\nhttps://svelte.dev/e/snippet_invalid_rest_parameter")}function Ur(e){Is(e,"svelte_body_illegal_attribute","`<svelte:body>` does not support non-event attributes or spread attributes\nhttps://svelte.dev/e/svelte_body_illegal_attribute")}function zr(e){Is(e,"svelte_boundary_invalid_attribute","Valid attributes on `<svelte:boundary>` are `onerror` and `failed`\nhttps://svelte.dev/e/svelte_boundary_invalid_attribute")}function Wr(e){Is(e,"svelte_boundary_invalid_attribute_value","Attribute value must be a non-string expression\nhttps://svelte.dev/e/svelte_boundary_invalid_attribute_value")}function Gr(e){Is(e,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value\nhttps://svelte.dev/e/svelte_element_missing_this")}function Kr(e){Is(e,"svelte_fragment_invalid_attribute","`<svelte:fragment>` can only have a slot attribute and (optionally) a let: directive\nhttps://svelte.dev/e/svelte_fragment_invalid_attribute")}function Xr(e){Is(e,"svelte_head_illegal_attribute","`<svelte:head>` cannot have attributes nor directives\nhttps://svelte.dev/e/svelte_head_illegal_attribute")}function Qr(e){Is(e,"svelte_options_deprecated_tag",'"tag" option is deprecated — use "customElement" instead\nhttps://svelte.dev/e/svelte_options_deprecated_tag')}function Yr(e){Is(e,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes\nhttps://svelte.dev/e/svelte_options_invalid_attribute")}function Jr(e,t){Is(e,"svelte_options_invalid_attribute_value",`Value must be ${t}, if specified\nhttps://svelte.dev/e/svelte_options_invalid_attribute_value`)}function Zr(e){Is(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"; props?: { [key: string]: { attribute?: string; reflect?: boolean; type: .. } } }\nhttps://svelte.dev/e/svelte_options_invalid_customelement')}function ea(e){Is(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" }"\nhttps://svelte.dev/e/svelte_options_invalid_customelement_props')}function ta(e){Is(e,"svelte_options_invalid_customelement_shadow",'"shadow" must be either "open" or "none"\nhttps://svelte.dev/e/svelte_options_invalid_customelement_shadow')}function na(e){Is(e,"svelte_options_invalid_tagname","Tag name must be lowercase and hyphenated\nhttps://svelte.dev/e/svelte_options_invalid_tagname")}function sa(e,t){Is(e,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${t}'\nhttps://svelte.dev/e/svelte_options_unknown_attribute`)}function ra(e,t,n){Is(e,"tag_invalid_placement",`{@${t} ...} tag cannot be ${n}\nhttps://svelte.dev/e/tag_invalid_placement`)}function aa(e){Is(e,"textarea_invalid_content","A `<textarea>` can have either a value attribute or (equivalently) child content, but not both\nhttps://svelte.dev/e/textarea_invalid_content")}function ia(e){Is(e,"title_illegal_attribute","`<title>` cannot have attributes nor directives\nhttps://svelte.dev/e/title_illegal_attribute")}function oa(e){Is(e,"title_invalid_content","`<title>` can only contain text and {tags}\nhttps://svelte.dev/e/title_invalid_content")}function la(e,t,n){Is(e,"transition_conflict",`Cannot use \`${t}:\` alongside existing \`${n}:\` directive\nhttps://svelte.dev/e/transition_conflict`)}function ca(e,t){Is(e,"transition_duplicate",`Cannot use multiple \`${t}:\` directives on a single element\nhttps://svelte.dev/e/transition_duplicate`)}function pa(e){Is(e,"unexpected_eof","Unexpected end of input\nhttps://svelte.dev/e/unexpected_eof")}const ua="[",da="]",ha="{",ma="}",fa="(",ya=")";function va(e){return e===ua||e===ha}function ga(e){return e===da||e===ma}function ba(e){return e===ua?da:e===ha?ma:e===fa?ya:void 0}function _a(e){return e<0?1/0:e}function xa(e,t,n){let s;return s="`"===n?e:e.slice(0,_a(e.indexOf("\n",t))),wa(s,t,n)}function Ca(e,t){return wa(e,t,"/")}function wa(e,t,n){let s=t;for(;;){const t=e.indexOf(n,s);if(-1===t)return 1/0;if(ka(e,t-1)%2==0)return t;s=t+1}}function ka(e,t){let n=t,s=0;for(;"\\"===e[n];)s++,n--;return s}function Sa(e,t){const n=function(e,t,n){const s=ba(n);let r=1,a=t;for(;r>0&&a<e.length;){const t=e[a];switch(t){case"'":case'"':case"`":a=xa(e,a+1,t)+1;continue;case"/":{const t=e[a+1];if(!t)continue;if("/"===t){a=_a(e.indexOf("\n",a+1))+1;continue}if("*"===t){a=_a(e.indexOf("*/",a+1))+2;continue}a=Ca(e,a+1)+1;continue}default:{const t=e[a];if(t===n?r++:t===s&&r--,0===r)return a;a++}}}}(e.template,e.index,t??"{");if(n){const t=e.index;return e.index=n,{type:"Identifier",start:t,end:n,name:""}}}function Pa(e,t,n){try{const t=Ts(e.template,e.ts,e.index);let n=0;void 0!==t.leadingComments&&t.leadingComments.length>0&&(e.index=t.leadingComments.at(-1).end);for(let s=e.index;s<t.start;s+=1)"("===e.template[s]&&(n+=1);let r=t.end;for(void 0!==t.trailingComments&&t.trailingComments.length>0&&(r=t.trailingComments.at(-1).end);n>0;){const t=e.template[r];")"===t?n-=1:s.test(t)||$r(r,")"),r+=1}return e.index=r,t}catch(s){if(e.loose&&!n){const n=Sa(e,t);if(n)return n}e.acorn_error(s)}}function Ea(e){return e.replace(/(`|\${|\\)/g,"\\$1")}function Ta(e=[]){return{type:"ArrayExpression",elements:e}}function Aa(e){return{type:"ArrayPattern",elements:e}}function $a(e,t){return{type:"AssignmentPattern",left:e,right:t}}function Ia(e,t){return{type:"ArrowFunctionExpression",params:e,body:t,expression:"BlockStatement"!==t.type,generator:!1,async:!1,metadata:null}}function Ra(e,t,n){return{type:"AssignmentExpression",operator:e,left:t,right:n}}function qa(e){return{type:"AwaitExpression",argument:e}}function La(e,t,n){return{type:"BinaryExpression",operator:e,left:t,right:n}}function Ma(e){return{type:"BlockStatement",body:e}}function Oa(e,...t){"string"==typeof e&&(e=Ga(e));let n=(t=t.slice()).length,s=!0;for(;n--;)t[n]?s=!1:s?t.pop():t[n]=Ga("undefined");return{type:"CallExpression",callee:e,arguments:t,optional:!1}}function Na(e,...t){const n=Oa(e,...t);return n.optional=!0,{type:"ChainExpression",expression:n}}function Da(e,t){return{type:"UnaryExpression",argument:t,operator:e,prefix:!0}}const ja=Da("void",Qa(0));function Ba(e,t,n){return{type:"LogicalExpression",operator:e,left:t,right:n}}function Fa(e,t){return{type:"VariableDeclaration",kind:e,declarations:t}}function Va(e,t){return"string"==typeof e&&(e=Ga(e)),{type:"VariableDeclarator",id:e,init:t}}const Ha={type:"EmptyStatement"};function Ua(e){return{type:"ExportDefaultDeclaration",declaration:e}}function za(e,t,n){return{type:"FunctionDeclaration",id:e,params:t,body:n,generator:!1,async:!1,metadata:null}}function Wa(e,t){return ti("get",$i(e),ki(null,[],Ma(t)))}function Ga(e){return{type:"Identifier",name:e}}function Ka(e){return{type:"PrivateIdentifier",name:e}}function Xa(e,t){return ti("init",$i(e),t)}function Qa(e){return{type:"Literal",value:e}}function Ya(e,t,n=!1,s=!1){return"string"==typeof t&&(t=Ga(t)),{type:"MemberExpression",object:e,property:t,computed:n,optional:s}}function Ja(e){const t=e.split(".");let n=Ga(t[0]);for(let e=1;e<t.length;e+=1)n=Ya(n,Ga(t[e]));return n}function Za(e){return{type:"ObjectExpression",properties:e}}function ei(e){return{type:"ObjectPattern",properties:e}}function ti(e,t,n,s=!1){return{type:"Property",kind:e,key:t,value:n,method:!1,shorthand:!1,computed:s}}function ni(e,t,n=!1,s=!1){return{type:"PropertyDefinition",key:e,value:t,computed:n,static:s}}function si(e,t=!1){return{type:"TemplateElement",value:{raw:Ea(e),cooked:e},tail:t}}function ri(e){return{type:"RestElement",argument:e}}function ai(e){return{type:"SequenceExpression",expressions:e}}function ii(e,t){return ti("set",$i(e),ki(null,[Ga("$$value")],Ma(t)))}function oi(e){return{type:"SpreadElement",argument:e}}function li(e){return{type:"ExpressionStatement",expression:e}}function ci(e,t){return{type:"TemplateLiteral",quasis:e,expressions:t}}function pi(e,t=!1){const n=Ia([],e);return t&&(n.async=!0),ui(n)}function ui(e){return"ArrowFunctionExpression"===e.type&&!1===e.async&&"CallExpression"===e.body.type&&"Identifier"===e.body.callee.type&&e.params.length===e.body.arguments.length&&e.params.every(((t,n)=>{const s=e.body.arguments[n];return"Identifier"===t.type&&"Identifier"===s.type&&t.name===s.name}))?e.body.callee:e}function di(e,...t){return"string"==typeof e&&(e=Ga(e)),{callee:e,arguments:t,type:"NewExpression"}}function hi(e,t,n=!1){return{type:"UpdateExpression",operator:e,argument:t,prefix:n}}function mi(e,t){return{type:"DoWhileStatement",test:e,body:t}}const fi=Qa(!0),yi=Qa(!1),vi=Qa(null),gi={type:"DebuggerStatement"},bi={type:"ThisExpression"};function _i(e,t){return Fa("let",[Va(e,t)])}function xi(e,t){return Fa("const",[Va(e,t)])}function Ci(e,t){return Fa("var",[Va(e,t)])}function wi(e,t,n,s,r=!1,a=!1){return{type:"MethodDefinition",key:t,kind:e,value:ki(null,n,Ma(s)),computed:r,static:a}}function ki(e,t,n){return{type:"FunctionExpression",id:e,params:t,body:n,generator:!1,async:!1,metadata:null}}function Si(e,t,n){return{type:"IfStatement",test:e,consequent:t,alternate:n}}function Pi(e,t){return{type:"ImportDeclaration",source:Qa(t),specifiers:[(n=e,{type:"ImportNamespaceSpecifier",local:Ga(n)})]};var n}function Ei(e,t){return{type:"ImportDeclaration",source:Qa(t),specifiers:e.map((e=>({type:"ImportSpecifier",imported:Ga(e[0]),local:Ga(e[1])})))}}function Ti(e=null){return{type:"ReturnStatement",argument:e}}function Ai(e){return{type:"ThrowStatement",argument:di("Error",Qa(e))}}function $i(e){return m.test(e)?Ga(e):Qa(e)}function Ii(e){for(;"MemberExpression"===e.type;)e=e.object;return"Identifier"!==e.type?null:e}function Ri(e){return Array.isArray(e.value)&&1===e.value.length&&"Text"===e.value[0].type}function qi(e){return!0!==e.value&&!Array.isArray(e.value)||Array.isArray(e.value)&&1===e.value.length&&"ExpressionTag"===e.value[0].type}function Li(e){return Array.isArray(e.value)?e.value[0].expression:e.value.expression}function Mi(e){return Array.isArray(e)?e:"boolean"==typeof e?[]:[e]}function Oi(e){return qi(e)&&e.name.startsWith("on")}function Ni(e,t=[]){switch(e.type){case"Identifier":case"MemberExpression":t.push(e);break;case"ObjectPattern":for(const n of e.properties)"RestElement"===n.type?Ni(n.argument,t):Ni(n.value,t);break;case"ArrayPattern":for(const n of e.elements)n&&Ni(n,t);break;case"RestElement":Ni(e.argument,t);break;case"AssignmentPattern":Ni(e.left,t)}return t}function Di(e){return Ni(e,[]).filter((e=>"Identifier"===e.type))}function ji(e){let n=[],s=[];return t(e,{},{Identifier(e,{path:t}){const r=t.at(-1);("MemberExpression"!==r?.type||r.property!==e||r.computed)&&n.push(e),"MemberExpression"===r?.type&&r.computed&&r.property===e?s.push(`[${e.name}]`):s.push(e.name)},Literal(e,{path:t}){const n="string"==typeof e.value?`"${e.value}"`:String(e.value),r=t.at(-1);"MemberExpression"===r?.type&&r.computed&&r.property===e?s.push(`[${n}]`):s.push(n)},ThisExpression(e,{next:t}){s.push("this"),t()}}),[s.join("."),n]}function Bi(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"ObjectExpression":for(const n of e.properties)"Property"===n.type?Bi(n.value,t):Bi(n.argument,t);break;case"ArrayExpression":for(const n of e.elements)n&&Bi(n,t)}return t}function Fi(e){return Vi([],e,(e=>e),(e=>e),!1)}function Vi(e=[],t,n,s,r){switch(t.type){case"Identifier":case"MemberExpression":e.push({node:t,is_rest:!1,has_default_value:r,expression:n,update_expression:s});break;case"ObjectPattern":for(const s of t.properties)if("RestElement"===s.type){const a=e=>{const s=[];for(const e of t.properties)"Property"===e.type&&"PrivateIdentifier"!==e.key.type&&("Identifier"!==e.key.type||e.computed?"Literal"===e.key.type?s.push(Qa(String(e.key.value))):s.push(Oa("String",e.key)):s.push(Qa(e.key.name)));return Oa("$.exclude_from_object",n(e),Ta(s))};"Identifier"===s.argument.type?e.push({node:s.argument,is_rest:!0,has_default_value:r,expression:a,update_expression:a}):Vi(e,s.argument,a,a,r)}else{const t=e=>Ya(n(e),s.key,s.computed||"Identifier"!==s.key.type);Vi(e,s.value,t,t,r)}break;case"ArrayPattern":for(let s=0;s<t.elements.length;s+=1){const a=t.elements[s];if(a)if("RestElement"===a.type){const t=e=>Oa(Ya(n(e),"slice"),Qa(s));"Identifier"===a.argument.type?e.push({node:a.argument,is_rest:!0,has_default_value:r,expression:t,update_expression:t}):Vi(e,a.argument,t,t,r)}else{const t=e=>Ya(n(e),Qa(s),!0);Vi(e,a,t,t,r)}}break;case"AssignmentPattern":{const r=e=>Gi(n(e),t.right);"Identifier"===t.left.type?e.push({node:t.left,is_rest:!1,has_default_value:!0,expression:r,update_expression:s}):Vi(e,t.left,r,s,!0);break}}return e}function Hi(e,t){let n=e.at(t);return"TSNonNullExpression"===n.type||"TSAsExpression"===n.type?e.at(t<0?t-1:t+1):n}function Ui(e){return"Literal"===e.type||"Identifier"===e.type||"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||("ConditionalExpression"===e.type?Ui(e.test)&&Ui(e.consequent)&&Ui(e.alternate):("BinaryExpression"===e.type||"LogicalExpression"===e.type)&&("PrivateIdentifier"!==e.left.type&&Ui(e.left)&&Ui(e.right)))}function zi(e){return"ChainExpression"===e.type?e.expression:e}function Wi(e){switch(e.type){case"AwaitExpression":return!0;case"ArrayPattern":return e.elements.some((e=>e&&Wi(e)));case"ArrayExpression":return e.elements.some((e=>!!e&&("SpreadElement"===e.type?Wi(e.argument):Wi(e))));case"AssignmentPattern":case"AssignmentExpression":case"BinaryExpression":case"LogicalExpression":return"PrivateIdentifier"!==e.left.type&&Wi(e.left)||Wi(e.right);case"CallExpression":case"NewExpression":return"Super"!==e.callee.type&&Wi(e.callee)||e.arguments.some((e=>"SpreadElement"===e.type?Wi(e.argument):Wi(e)));case"ChainExpression":return Wi(e.expression);case"ConditionalExpression":return Wi(e.test)||Wi(e.alternate)||Wi(e.consequent);case"ImportExpression":return Wi(e.source);case"MemberExpression":return"Super"!==e.object.type&&Wi(e.object)||"PrivateIdentifier"!==e.property.type&&Wi(e.property);case"ObjectPattern":case"ObjectExpression":return e.properties.some((e=>"SpreadElement"===e.type?Wi(e.argument):"Property"===e.type?"PrivateIdentifier"!==e.key.type&&Wi(e.key)||Wi(e.value):void 0));case"RestElement":case"UnaryExpression":case"UpdateExpression":return Wi(e.argument);case"SequenceExpression":case"TemplateLiteral":return e.expressions.some((e=>Wi(e)));case"TaggedTemplateExpression":return Wi(e.tag)||Wi(e.quasi);case"YieldExpression":return!!e.argument&&Wi(e.argument);default:return!1}}function Gi(e,t){return Ui(t)?Oa("$.fallback",e,t):"AwaitExpression"===t.type&&Ui(t.argument)?qa(Oa("$.fallback",e,t.argument)):Wi(t)?qa(Oa("$.fallback",e,pi(t,!0),fi)):Oa("$.fallback",e,pi(t),fi)}function Ki(e,t,n){return"="===e?n:La(e.slice(0,-1),t,n)}const Xi=/<\/script\s*>/,Qi=/^<\/script\s*>/,Yi=["server","client","worker","test","default"],Ji=["context","generics","lang","module"];const Zi=/^[~^$*|]?=/,eo=/[\s\]]/,to=/^[a-zA-Z]+/,no=/^(\+|~|>|\|\|)/,so=/^\d+(\.\d+)?%/,ro=/^(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/,ao=/[\s:]/,io=/-?\d/,oo=/[a-zA-Z0-9_-]/,lo=/\*\//,co=/-->/;function po(e,t,n){const s=e.index,r=function(e,t){const n=[];for(;e.index<e.template.length;){if(Co(e),e.match(t))return n;e.match("@")?n.push(uo(e)):n.push(ho(e))}$r(e.template.length,t)}(e,"</style"),a=e.index;return e.read(/^<\/style\s*>/),{type:"StyleSheet",start:t,end:e.index,attributes:n,children:r,content:{start:s,end:a,styles:e.template.slice(s,a),comment:null}}}function uo(e){const t=e.index;e.eat("@",!0);const n=xo(e),s=bo(e);let r=null;return e.match("{")?r=vo(e):e.eat(";",!0),{type:"Atrule",start:t,end:e.index,name:n,prelude:s,block:r}}function ho(e){const t=e.index;return{type:"Rule",prelude:mo(e),block:vo(e),start:t,end:e.index,metadata:{parent_rule:null,has_local_selectors:!1,is_global_block:!1}}}function mo(e,t=!1){const n=[];Co(e);const s=e.index;for(;e.index<e.template.length;){n.push(fo(e,t));const r=e.index;if(Co(e),t?e.match(")"):e.match("{"))return{type:"SelectorList",start:s,end:r,children:n};e.eat(",",!0),Co(e)}pa(e.template.length)}function fo(e,t=!1){const n=e.index,s=[];function r(e,t){return{type:"RelativeSelector",combinator:e,selectors:[],start:t,end:-1,metadata:{is_global:!1,is_global_like:!1,scoped:!1}}}let a=r(null,e.index);for(;e.index<e.template.length;){let i=e.index;if(e.eat("&"))a.selectors.push({type:"NestingSelector",name:"&",start:i,end:e.index});else if(e.eat("*")){let t="*";e.eat("|")&&(t=xo(e)),a.selectors.push({type:"TypeSelector",name:t,start:i,end:e.index})}else if(e.eat("#"))a.selectors.push({type:"IdSelector",name:xo(e),start:i,end:e.index});else if(e.eat("."))a.selectors.push({type:"ClassSelector",name:xo(e),start:i,end:e.index});else if(e.eat("::"))a.selectors.push({type:"PseudoElementSelector",name:xo(e),start:i,end:e.index}),e.eat("(")&&(mo(e,!0),e.eat(")",!0));else if(e.eat(":")){const t=xo(e);let n=null;e.eat("(")&&(n=mo(e,!0),e.eat(")",!0)),a.selectors.push({type:"PseudoClassSelector",name:t,args:n,start:i,end:e.index})}else if(e.eat("[")){e.allow_whitespace();const t=xo(e);e.allow_whitespace();let n=null;const s=e.read(Zi);s&&(e.allow_whitespace(),n=_o(e)),e.allow_whitespace();const r=e.read(to);e.allow_whitespace(),e.eat("]",!0),a.selectors.push({type:"AttributeSelector",start:i,end:e.index,name:t,matcher:s,value:n,flags:r})}else if(t&&e.match_regex(ro))a.selectors.push({type:"Nth",value:e.read(ro),start:i,end:e.index});else if(e.match_regex(so))a.selectors.push({type:"Percentage",value:e.read(so),start:i,end:e.index});else if(!e.match_regex(no)){let t=xo(e);e.eat("|")&&(t=xo(e)),a.selectors.push({type:"TypeSelector",name:t,start:i,end:e.index})}const o=e.index;if(Co(e),e.match(",")||(t?e.match(")"):e.match("{")))return e.index=o,a.end=o,s.push(a),{type:"ComplexSelector",start:n,end:o,children:s,metadata:{rule:null,used:!1}};e.index=o;const l=yo(e);l&&(a.selectors.length>0&&(a.end=o,s.push(a)),a=r(l,l.start),e.allow_whitespace(),(e.match(",")||(t?e.match(")"):e.match("{")))&&rr(e.index))}pa(e.template.length)}function yo(e){const t=e.index;e.allow_whitespace();const n=e.index,s=e.read(no);if(s){const t=e.index;return e.allow_whitespace(),{type:"Combinator",name:s,start:n,end:t}}return e.index!==t?{type:"Combinator",name:" ",start:t,end:e.index}:null}function vo(e){const t=e.index;e.eat("{",!0);const n=[];for(;e.index<e.template.length&&(Co(e),!e.match("}"));)n.push(go(e));return e.eat("}",!0),{type:"Block",start:t,end:e.index,children:n}}function go(e){if(e.match("@"))return uo(e);const t=e.index;bo(e);const n=e.template[e.index];return e.index=t,"{"===n?ho(e):function(e){const t=e.index,n=e.read_until(ao);e.allow_whitespace(),e.eat(":");let s=e.index;e.allow_whitespace();const r=bo(e);r||n.startsWith("--")||Is({start:t,end:s},"css_empty_declaration","Declaration cannot be empty\nhttps://svelte.dev/e/css_empty_declaration");const a=e.index;e.match("}")||e.eat(";",!0);return{type:"Declaration",start:t,end:a,property:n,value:r}}(e)}function bo(e){let t="",n=!1,s=!1,r=null;for(;e.index<e.template.length;){const a=e.template[e.index];if(n)t+="\\"+a,n=!1;else if("\\"===a)n=!0;else if(a===r)r=null;else if(")"===a)s=!1;else if(null!==r||'"'!==a&&"'"!==a){if("("===a&&"url"===t.slice(-3))s=!0;else if(!(";"!==a&&"{"!==a&&"}"!==a||s||r))return t.trim()}else r=a;t+=a,e.index++}pa(e.template.length)}function _o(e){let t="",n=!1;const s=e.eat('"')?'"':e.eat("'")?"'":null;for(;e.index<e.template.length;){const r=e.template[e.index];if(n)t+="\\"+r,n=!1;else if("\\"===r)n=!0;else{if(s?r===s:eo.test(r))return s&&e.eat(s,!0),t.trim();t+=r}e.index++}pa(e.template.length)}function xo(e){const t=e.index;let n="";e.match_regex(io)&&Zs(t);let s=!1;for(;e.index<e.template.length;){const t=e.template[e.index];if(s)n+="\\"+t,s=!1;else if("\\"===t)s=!0;else{if(!(t.codePointAt(0)>=160||oo.test(t)))break;n+=t}e.index++}return""===n&&Zs(t),n}function Co(e){for(e.allow_whitespace();e.match("/*")||e.match("\x3c!--");)e.eat("/*")&&(e.read_until(lo),e.eat("*/",!0)),e.eat("\x3c!--")&&(e.read_until(co),e.eat("--\x3e",!0)),e.allow_whitespace()}var wo={"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;":12e4,"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};const ko=[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 So(e){const t=Object.keys(wo).map((t=>function(e,t){return t&&!e.endsWith(";")?`${e}\\b(?!=)`:e}(t,e)));return new RegExp(`&(#(?:x[a-fA-F\\d]+|\\d+)(?:;)?|${t.join("|")})`,"g")}const Po=So(!1),Eo=So(!0);function To(e,t){const n=t?Eo:Po;return e.replace(n,((e,t)=>{let n;return n="#"!==t[0]?wo[t]:"x"===t[1]?parseInt(t.substring(2),16):parseInt(t.substring(1),10),n?String.fromCodePoint(function(e){if(10===e)return 32;if(e<128)return e;if(e<=159)return ko[e-128];if(e<55296)return e;if(e<=57343)return Ao;if(e<=65535)return e;if(e>=65536&&e<=131071)return e;if(e>=131072&&e<=196607)return e;return Ao}(n)):e}))}const Ao=0;function $o(e=!1){return{type:"Fragment",nodes:[],metadata:{transparent:e,dynamic:!1}}}const Io=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function Ro(e){return Io.includes(e.type)}function qo(e){return"RegularElement"===e.type&&(e.name.includes("-")||e.attributes.some((e=>"Attribute"===e.type&&"is"===e.name)))}function Lo(e,t,n,s){return{type:"Attribute",start:t,end:n,name:e,value:s,metadata:{delegated:null,needs_clsx:!1}}}function Mo(){return{dependencies:new Set,has_state:!1,has_call:!1}}const Oo={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"]}};const No={...Oo,optgroup:{only:["option","#text"]},option:{only:["#text"]},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"]},select:{only:["option","optgroup","#text","hr","script","template"]},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 Do(e,t,n,s){if(e.includes("-"))return null;const r=t[t.length-1],a=No[r];if(!a)return null;if("reset_by"in a&&a.reset_by)for(let e=t.length-2;e>=0;e--){if(t[e].includes("-"))return null;if(a.reset_by.includes(t[e]))return null}if("descendant"in a&&a.descendant.includes(e)){return`${`\`<${e}>\``} cannot be a descendant of ${`\`<${r}>\``}`}return null}function jo(e,t,n,s){if(e.includes("-")||t?.includes("-"))return null;if("template"===t)return null;const r=No[t],a=`\`<${e}>\``,i=`\`<${t}>\``;if(r){if("direct"in r&&r.direct.includes(e))return`${a} cannot be a direct child of ${i}`;if("descendant"in r&&r.descendant.includes(e))return`${a} cannot be a child of ${i}`;if("only"in r&&r.only)return r.only.includes(e)?null:`${a} cannot be a child of ${i}. \`<${t}>\` only allows these children: ${r.only.map((e=>`\`<${e}>\``)).join(", ")}`}switch(e){case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":return`${a} cannot be a child of ${i}`;case"thead":case"tbody":case"tfoot":return`${a} must be the child of a \`<table>\`, not a ${i}`;case"td":case"th":return`${a} must be the child of a \`<tr>\`, not a ${i}`;case"tr":return`\`<tr>\` must be the child of a \`<thead>\`, \`<tbody>\`, or \`<tfoot>\`, not a ${i}`}return null}function Bo(e,t="or"){return 1===e.length?e[0]:2===e.length?`${e[0]} ${t} ${e[1]}`:`${e.slice(0,-1).join(", ")} ${t} ${e[e.length-1]}`}const Fo=/^(\/>|[\s"'=<>`])/,Vo=/^<\/textarea(\s[^>]*)?>/i,Ho=/-->/,Uo=/(\s|\/|>)/,zo=/[\s=/>"']/,Wo=/^["']/,Go=/^(?:"([^"]*)"|'([^'])*'|([^>\s]+))/,Ko=/^(?:![a-zA-Z]+|[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?|[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9])$/,Xo=/^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u,Qo=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),Yo=new Map([...Qo,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function Jo(e){const t=e.index++;let n=e.current();if(e.eat("!--")){const n=e.read_until(Ho);return e.eat("--\x3e",!0),void e.append({type:"Comment",start:t,end:e.index,data:n})}const r=e.eat("/"),a=e.read_until(Uo);if(r){for(e.allow_whitespace(),e.eat(">",!0),j(a)&&Is(t,"void_element_invalid_content","Void elements cannot have children or closing tags\nhttps://svelte.dev/e/void_element_invalid_content");n.name!==a;){if(e.loose&&Ro(n)){const t=n.attributes.at(-1);if("Attribute"===t?.type&&t.name===`<${a}`){e.index=t.start,n.attributes.pop();break}}"RegularElement"===n.type||e.loose||(e.last_auto_closed_tag&&e.last_auto_closed_tag.tag===a?wr(t,a,e.last_auto_closed_tag.reason):Cr(t,a)),n.end=t,e.pop(),n=e.current()}return n.end=e.index,e.pop(),void(e.last_auto_closed_tag&&e.stack.length<e.last_auto_closed_tag.depth&&(e.last_auto_closed_tag=void 0))}if(a.startsWith("svelte:")&&!Yo.has(a)){!function(e,t){Is(e,"svelte_meta_invalid_tag",`Valid \`<svelte:...>\` tag names are ${t}\nhttps://svelte.dev/e/svelte_meta_invalid_tag`)}({start:t+1,end:t+1+a.length},Bo(Array.from(Yo.keys())))}if(!(Ko.test(a)||Xo.test(a)||e.loose&&a.endsWith("."))){!function(e){Is(e,"tag_invalid_name","Expected a valid element or component name. Components must have a valid variable name or dot notation expression\nhttps://svelte.dev/e/tag_invalid_name")}({start:t+1,end:t+1+a.length})}Qo.has(a)&&(a in e.meta_tags&&function(e,t){Is(e,"svelte_meta_duplicate",`A component can only have one \`<${t}>\` element\nhttps://svelte.dev/e/svelte_meta_duplicate`)}(t,a),"Root"!==n.type&&function(e,t){Is(e,"svelte_meta_invalid_placement",`\`<${t}>\` tags cannot be inside elements or blocks\nhttps://svelte.dev/e/svelte_meta_invalid_placement`)}(t,a),e.meta_tags[a]=!0);const i=Yo.has(a)?Yo.get(a):Xo.test(a)||e.loose&&a.endsWith(".")?"Component":"title"===a&&function(e){let t=e.length;for(;t--;){const{type:n}=e[t];if("SvelteHead"===n)return!0;if("RegularElement"===n||"Component"===n)return!1}return!1}(e.stack)?"TitleElement":"slot"!==a||function(e){let t=e.length;for(;t--;)if("RegularElement"===e[t].type&&e[t].attributes.some((e=>"Attribute"===e.type&&"shadowrootmode"===e.name)))return!0;return!1}(e.stack)?"RegularElement":"SlotElement",o="RegularElement"===i?{type:i,start:t,end:-1,name:a,attributes:[],fragment:$o(!0),metadata:{svg:!1,mathml:!1,scoped:!1,has_spread:!1,path:[]}}:{type:i,start:t,end:-1,name:a,attributes:[],fragment:$o(!0),metadata:{}};e.allow_whitespace(),"RegularElement"===n.type&&function(e,t){const n=Oo[e];return!(!n||t&&!("direct"in n?n.direct:n.descendant).includes(t))}(n.name,a)&&(n.end=t,e.pop(),e.last_auto_closed_tag={tag:n.name,reason:a,depth:e.stack.length});const l=[],c=e.current(),p=("script"===a||"style"===a)&&"Root"===c.type,u=p?Zo:el;let d;for(;d=u(e);){if("Attribute"===d.type||"BindDirective"===d.type||"StyleDirective"===d.type||"ClassDirective"===d.type){const e="BindDirective"===d.type?"Attribute":d.type;l.includes(e+d.name)?cr(d):"this"!==d.name&&l.push(e+d.name)}o.attributes.push(d),e.allow_whitespace()}if("SvelteComponent"===o.type){const e=o.attributes.findIndex((e=>"Attribute"===e.type&&"this"===e.name));-1===e&&function(e){Is(e,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute\nhttps://svelte.dev/e/svelte_component_missing_this")}(t);const n=o.attributes.splice(e,1)[0];qi(n)||function(e){Is(e,"svelte_component_invalid_this","Invalid component definition — must be an `{expression}`\nhttps://svelte.dev/e/svelte_component_invalid_this")}(n.start),o.expression=Li(n)}if("SvelteElement"===o.type){const e=o.attributes.findIndex((e=>"Attribute"===e.type&&"this"===e.name));-1===e&&Gr(t);const n=o.attributes.splice(e,1)[0];if(!0===n.value&&Gr(n),qi(n))o.tag=Li(n);else{!function(e){we(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")}(n);const e=n.value[0];o.tag="Text"===e.type?{type:"Literal",value:e.data,raw:`'${e.raw}'`,start:e.start,end:e.end}:e.expression}}if(p){e.eat(">",!0);let n=null;for(let e=c.fragment.nodes.length-1;e>=0;e--){const s=c.fragment.nodes[e];if(e===c.fragment.nodes.length-1&&s.end!==t)break;if("Comment"===s.type){n=s;break}if("Text"!==s.type||s.data.trim())break}if("script"===a){const s=function(e,t,n){const s=e.index,r=e.read_until(Xi);e.index>=e.template.length&&kr(e.template.length,"script");const a=e.template.slice(0,s).replace(h," ")+r;let i;e.read(Qi);try{i=Es(a,e.ts,!0)}catch(t){e.acorn_error(t)}i.start=s;let o="default";for(const e of n)Yi.includes(e.name)&&(l=e,c=e.name,Is(l,"script_reserved_attribute",`The \`${c}\` attribute is reserved and cannot be used\nhttps://svelte.dev/e/script_reserved_attribute`)),Ji.includes(e.name)||st(e),"module"===e.name&&(!0!==e.value&&Mr(e,e.name),o="module"),"context"===e.name&&(!0!==e.value&&Ri(e)||Or(e),"module"!==e.value[0].data&&Or(e),o="module");var l,c;return{type:"Script",start:t,end:e.index,context:o,content:i,attributes:n}}(e,t,o.attributes);n&&(s.content.leadingComments=[{type:"Line",value:n.data}]),"module"===s.context?(c.module&&Lr(t),c.module=s):(c.instance&&Lr(t),c.instance=s)}else{const s=po(e,t,o.attributes);s.content.comment=n,c.css&&function(e){Is(e,"style_duplicate","A component can have a single top-level `<style>` element\nhttps://svelte.dev/e/style_duplicate")}(t),c.css=s}return}e.append(o);const m=e.eat("/")||j(a),f=e.eat(">",!0,!1);if(!f){const t=o.attributes.at(-1);if("Attribute"===t?.type&&"<"===t.name)e.index=t.start,o.attributes.pop();else{const t=e.template[e.index-1],n=e.template[e.index-2],r=e.template[e.index];if("{"===n&&"/"===t)e.index-=2;else if("{"!==t||"#"!==r&&"@"!==r&&":"!==r){if(e.allow_whitespace(),e.index===e.template.length)for(;e.index<e.template_untrimmed.length&&s.test(e.template_untrimmed[e.index]);)e.index++}else e.index-=1}}if(m||!f)o.end=e.index;else if("textarea"===a)o.fragment.nodes=tl(e,(()=>Vo.test(e.template.slice(e.index))),"inside <textarea>"),e.read(Vo),o.end=e.index;else if("script"===a||"style"===a){const t=e.index,n=e.read_until(new RegExp(`</${a}>`)),s={start:t,end:e.index,type:"Text",data:n,raw:n};o.fragment.nodes.push(s),e.eat(`</${a}>`,!0),o.end=e.index}else e.stack.push(o),e.fragments.push(o.fragment)}function Zo(e){const t=e.index,n=e.read_until(zo);if(!n)return null;let s=!0;if(e.eat("=")){e.allow_whitespace();let t=e.match_regex(Go);t||Tr(e.index),e.index+=t.length;const n='"'===t[0]||"'"===t[0];n&&(t=t.slice(1,-1)),s=[{start:e.index-t.length-(n?1:0),end:n?e.index-1:e.index,type:"Text",raw:t,data:To(t,!0)}]}return e.match_regex(Wo)&&$r(e.index,"="),Lo(n,t,e.index,s)}function el(e){const t=e.index;if(e.eat("{")){if(e.allow_whitespace(),e.eat("...")){const n=Pa(e);e.allow_whitespace(),e.eat("}",!0);return{type:"SpreadAttribute",start:t,end:e.index,expression:n,metadata:{expression:Mo()}}}{const n=e.index;let s=e.read_identifier();if(null===s){if(e.loose&&(e.match("#")||e.match("/")||e.match("@")||e.match(":")))return null;e.loose&&e.match("}")?s="":Is(t,"attribute_empty_shorthand","Attribute shorthand cannot be empty\nhttps://svelte.dev/e/attribute_empty_shorthand")}e.allow_whitespace(),e.eat("}",!0);const r={type:"ExpressionTag",start:n,end:n+s.length,expression:{start:n,end:n+s.length,type:"Identifier",name:s},metadata:{expression:Mo()}};return Lo(s,t,e.index,r)}}const n=e.read_until(zo);if(!n)return null;let s=e.index;e.allow_whitespace();const r=n.indexOf(":"),a=-1!==r&&function(e){return"use"===e?"UseDirective":"animate"===e?"AnimateDirective":"bind"===e?"BindDirective":"class"===e?"ClassDirective":"style"===e?"StyleDirective":"on"===e?"OnDirective":"let"===e?"LetDirective":("in"===e||"out"===e||"transition"===e)&&"TransitionDirective"}(n.slice(0,r));let i=!0;if(e.eat("="))if(e.allow_whitespace(),"/"===e.template[e.index]&&">"===e.template[e.index+1]){const t=e.index;e.index++,i=[{start:t,end:t+1,type:"Text",raw:"/",data:"/"}],s=e.index}else i=function(e){const t=e.eat("'")?"'":e.eat('"')?'"':null;if(t&&e.eat(t))return[{start:e.index-1,end:e.index-1,type:"Text",raw:"",data:""}];let n;try{n=tl(e,(()=>t?e.match(t):!!e.match_regex(Fo)),"in attribute value")}catch(n){if("js_parse_error"===n.code){const s=n.position?.[0];void 0!==s&&"/>"===e.template.slice(s-1,s+1)&&(e.index=s,$r(s,t||"}"))}throw n}0!==n.length||t||Tr(e.index);t&&(e.index+=1);return t||n.length>1||"Text"===n[0].type?n:n[0]}(e),s=e.index;else e.match_regex(Wo)&&$r(e.index,"=");if(a){const[e,...o]=n.slice(r+1).split("|");if(""===e&&function(e,t){Is(e,"directive_missing_name",`\`${t}\` name cannot be empty\nhttps://svelte.dev/e/directive_missing_name`)}({start:t,end:t+r+1},n),"StyleDirective"===a)return{start:t,end:s,type:a,name:e,modifiers:o,value:i,metadata:{expression:Mo()}};const l=!0===i?void 0:Array.isArray(i)?i[0]:i;let c=null;if(l){i.length>1||"Text"===l.type?function(e){Is(e,"directive_invalid_value","Directive value must be a JavaScript expression enclosed in curly braces\nhttps://svelte.dev/e/directive_invalid_value")}(l.start):c=l.expression}const p={start:t,end:s,type:a,name:e,expression:c,metadata:{expression:Mo()}};if(p.modifiers=o,"TransitionDirective"===p.type){const e=n.slice(0,r);p.intro="in"===e||"transition"===e,p.outro="out"===e||"transition"===e}return"BindDirective"!==p.type&&"ClassDirective"!==p.type||p.expression||(p.expression={start:t+r+1,end:s,type:"Identifier",name:p.name}),p}return Lo(n,t,s,i)}function tl(e,t,n){let s={start:e.index,end:-1,type:"Text",raw:"",data:""};const r=[];function a(e){s.raw&&(s.data=To(s.raw,!0),s.end=e,r.push(s))}for(;e.index<e.template.length;){const i=e.index;if(t())return a(e.index),r;if(e.eat("{")){if(e.match("#")){const t=e.index-1;e.eat("#");gr(t,e.read_until(/[^a-z]/),n)}else if(e.match("@")){const t=e.index-1;e.eat("@");ra(t,e.read_until(/[^a-z]/),n)}a(e.index-1),e.allow_whitespace();const t=Pa(e);e.allow_whitespace(),e.eat("}",!0);const o={type:"ExpressionTag",start:i,end:e.index,expression:t,metadata:{expression:Mo()}};r.push(o),s={start:e.index,end:-1,type:"Text",raw:"",data:""}}else s.raw+=e.template[e.index++]}if(e.loose)return r;pa(e.template.length)}function nl(e){const t=e.index;let n=e.index;const s=e.read_identifier();if(null!==s){const n=al(e);return{type:"Identifier",name:s,start:t,loc:{start:de(t),end:de(e.index)},end:e.index,typeAnnotation:n}}va(e.template[n])||Is(n,"expected_pattern","Expected identifier or destructure pattern\nhttps://svelte.dev/e/expected_pattern"),n=sl(e,t),e.index=n;const r=e.template.slice(t,n);try{let n=e.template.slice(0,t).replace(h," ");const s=n.indexOf(" ");n=n.slice(0,s)+n.slice(s+1);const a=Ts(`${n}(${r} = 1)`,e.ts,t-1).left;return a.typeAnnotation=al(e),a.typeAnnotation&&(a.end=a.typeAnnotation.end),a}catch(t){e.acorn_error(t)}}function sl(e,t){const n=[];let s=t;for(;s<e.template.length;){let t=e.template[s++];if("'"!==t&&'"'!==t&&"`"!==t){if(va(t))n.push(t);else if(ga(t)){const e=ba(n.pop());if(t!==e&&$r(s-1,e),0===n.length)return s}}else s=rl(e,s,t)}pa(e.template.length)}function rl(e,t,n){let s=!1,r=t;for(;r<e.template.length;){const t=e.template[r++];if(s)s=!1;else{if(t===n)return r;"\\"===t&&(s=!0),"`"===n&&"$"===t&&"{"===e.template[r]&&(r=sl(e,r))}}Is(t,"unterminated_string_constant","Unterminated string constant\nhttps://svelte.dev/e/unterminated_string_constant")}function al(e){const t=e.index;if(e.allow_whitespace(),!e.eat(":"))return void(e.index=t);const n="_ as ";let s=e.index-5;const r=e.template.slice(0,s).replace(/[^\n]/g," ")+n+e.template.slice(e.index).replace(/\?\s*:/g,":");let a=Ts(r,e.ts,s);if("AssignmentExpression"===a.type){let t=a.right.start;for(;"="!==r[t];)t-=1;a=Ts(r.slice(0,t),e.ts,s)}return"SequenceExpression"===a.type&&(a=a.expressions[0]),e.index=a.end,{type:"TSTypeAnnotation",start:t,end:e.index,typeAnnotation:a.typeAnnotation}}const il=/^\s*}/;function ol(e){const n=e.index;if(e.index+=1,e.allow_whitespace(),e.eat("#"))return function(e){let n=e.index-2;for(;"{"!==e.template[n];)n-=1;if(e.eat("if")){e.require_whitespace();const t=e.append({type:"IfBlock",elseif:!1,start:n,end:-1,test:Pa(e),consequent:$o(),alternate:null});return e.allow_whitespace(),e.eat("}",!0),e.stack.push(t),void e.fragments.push(t.consequent)}if(e.eat("each")){e.require_whitespace();const s=e.template;let r,a=e.template.length;for(;!r;)try{r=Pa(e,void 0,!0)}catch(t){for(a=t.position[0]-2;a>n&&"as"!==e.template.slice(a,a+2);)a-=1;if(a<=n){if(e.loose&&(r=Sa(e),r))break;throw t}e.template=s.slice(0,a)}if(e.template=s,e.allow_whitespace(),!e.match("as")){"SequenceExpression"===r.type&&(r=r.expressions[0]);let n=null,s=r.end;if(r=t(r,null,{TSAsExpression(e,t){if(e.end===r.end)return n=e,s=e.expression.end,e.expression;t.next()}}),r.end=s,n){let t=n.typeAnnotation.start-2;for(;"as"!==e.template.slice(t,t+2);)t-=1;e.index=t}}let i,o,l=null;e.eat("as")?(e.require_whitespace(),l=nl(e)):e.index=r.end,e.allow_whitespace(),e.eat(",")&&(e.allow_whitespace(),i=e.read_identifier(),i||Ar(e.index),e.allow_whitespace()),e.eat("(")&&(e.allow_whitespace(),o=Pa(e,"("),e.allow_whitespace(),e.eat(")",!0),e.allow_whitespace());if(!e.eat("}",!0,!1))if(" as "===e.template.slice(e.index-4,e.index)){const t=e.index;l=nl(e),e.eat("}",!0),r={type:"Identifier",name:"",start:r.start,end:t-4}}else e.eat("}",!0);const c=e.append({type:"EachBlock",start:n,end:-1,expression:r,body:$o(),context:l,index:i,key:o,metadata:null});return e.stack.push(c),void e.fragments.push(c.body)}if(e.eat("await")){e.require_whitespace();const t=Pa(e);e.allow_whitespace();const s=e.append({type:"AwaitBlock",start:n,end:-1,expression:t,value:null,error:null,pending:null,then:null,catch:null});e.eat("then")?(e.match_regex(il)||(e.require_whitespace(),s.value=nl(e)),e.allow_whitespace(),s.then=$o(),e.fragments.push(s.then)):e.eat("catch")?(e.match_regex(il)||(e.require_whitespace(),s.error=nl(e)),e.allow_whitespace(),s.catch=$o(),e.fragments.push(s.catch)):(s.pending=$o(),e.fragments.push(s.pending));if(!e.eat("}",!0,!1))if(" then "===e.template.slice(e.index-6,e.index)){const n=e.index;s.value=nl(e),e.eat("}",!0),s.expression={type:"Identifier",name:"",start:t.start,end:n-6},s.then=s.pending,s.pending=null}else if(" catch "===e.template.slice(e.index-7,e.index)){const n=e.index;s.error=nl(e),e.eat("}",!0),s.expression={type:"Identifier",name:"",start:t.start,end:n-7},s.catch=s.pending,s.pending=null}else e.eat("}",!0);return void e.stack.push(s)}if(e.eat("key")){e.require_whitespace();const t=Pa(e);e.allow_whitespace(),e.eat("}",!0);const s=e.append({type:"KeyBlock",start:n,end:-1,expression:t,fragment:$o()});return e.stack.push(s),void e.fragments.push(s.fragment)}if(e.eat("snippet")){e.require_whitespace();const t=e.index;let s=e.read_identifier();const r=e.index;null===s&&(e.loose?s="":Ar(e.index)),e.allow_whitespace();const a=e.index,i=e.eat("(",!0,!1);if(i){let t=1;for(;e.index<e.template.length&&(!e.match(")")||1!==t);)e.match("(")&&t++,e.match(")")&&t--,e.index+=1;e.eat(")",!0)}const o=e.template.slice(0,a).replace(/\S/g," "),l=e.template.slice(a,e.index);let c=i?Ts(o+`${l} => {}`,e.ts,a):{params:[]};e.allow_whitespace(),e.eat("}",!0);const p=e.append({type:"SnippetBlock",start:n,end:-1,expression:{type:"Identifier",start:t,end:r,name:s},parameters:c.params,body:$o(),metadata:{can_hoist:!1,sites:new Set}});return e.stack.push(p),void e.fragments.push(p.body)}s=e.index,Is(s,"expected_block_type","Expected 'if', 'each', 'await', 'key' or 'snippet'\nhttps://svelte.dev/e/expected_block_type");var s}(e);if(e.eat(":"))return function(e){const t=e.index-1,n=e.current();if("IfBlock"===n.type){if(e.eat("else")||$r(t,"{:else} or {:else if}"),e.eat("if")&&Is(t,"block_invalid_elseif","'elseif' should be 'else if'\nhttps://svelte.dev/e/block_invalid_elseif"),e.allow_whitespace(),e.fragments.pop(),n.alternate=$o(),e.fragments.push(n.alternate),e.eat("if")){e.require_whitespace();const n=Pa(e);e.allow_whitespace(),e.eat("}",!0);let s=t-1;for(;"{"!==e.template[s];)s-=1;const r=e.append({start:s,end:-1,type:"IfBlock",elseif:!0,test:n,consequent:$o(),alternate:null});e.stack.push(r),e.fragments.pop(),e.fragments.push(r.consequent)}else e.allow_whitespace(),e.eat("}",!0);return}if("EachBlock"===n.type)return e.eat("else")||$r(t,"{:else}"),e.allow_whitespace(),e.eat("}",!0),n.fallback=$o(),e.fragments.pop(),void e.fragments.push(n.fallback);if("AwaitBlock"===n.type){if(e.eat("then"))return n.then&&vr(t,"{:then}"),e.eat("}")||(e.require_whitespace(),n.value=nl(e),e.allow_whitespace(),e.eat("}",!0)),n.then=$o(),e.fragments.pop(),void e.fragments.push(n.then);if(e.eat("catch"))return n.catch&&vr(t,"{:catch}"),e.eat("}")||(e.require_whitespace(),n.error=nl(e),e.allow_whitespace(),e.eat("}",!0)),n.catch=$o(),e.fragments.pop(),void e.fragments.push(n.catch);$r(t,"{:then ...} or {:catch ...}")}!function(e){Is(e,"block_invalid_continuation_placement","{:...} block is invalid at this position (did you forget to close the preceding element or block?)\nhttps://svelte.dev/e/block_invalid_continuation_placement")}(t)}(e);if(e.eat("@"))return function(e){let t=e.index;for(;"{"!==e.template[t];)t-=1;if(e.eat("html")){e.require_whitespace();const n=Pa(e);return e.allow_whitespace(),e.eat("}",!0),void e.append({type:"HtmlTag",start:t,end:e.index,expression:n})}if(e.eat("debug")){let n;if(e.read(il))n=[];else{const t=Pa(e);n="SequenceExpression"===t.type?t.expressions:[t],n.forEach((e=>{"Identifier"!==e.type&&function(e){Is(e,"debug_tag_invalid_arguments","{@debug ...} arguments must be identifiers, not arbitrary expressions\nhttps://svelte.dev/e/debug_tag_invalid_arguments")}(e.start)})),e.allow_whitespace(),e.eat("}",!0)}return void e.append({type:"DebugTag",start:t,end:e.index,identifiers:n})}if(e.eat("const")){e.require_whitespace();const n=nl(e);e.allow_whitespace(),e.eat("=",!0),e.allow_whitespace();const s=e.index,r=Pa(e);"SequenceExpression"!==r.type||e.template.substring(s,r.start).includes("(")||Is(r,"const_tag_invalid_expression","{@const ...} must consist of a single variable declaration\nhttps://svelte.dev/e/const_tag_invalid_expression"),e.allow_whitespace(),e.eat("}",!0),e.append({type:"ConstTag",start:t,end:e.index,declaration:{type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:n,init:r,start:n.start,end:r.end}],start:t+2,end:e.index-1}})}if(e.eat("render")){e.require_whitespace();const n=Pa(e);"CallExpression"===n.type||"ChainExpression"===n.type&&"CallExpression"===n.expression.type||function(e){Is(e,"render_tag_invalid_expression","`{@render ...}` tags can only contain call expressions\nhttps://svelte.dev/e/render_tag_invalid_expression")}(n),e.allow_whitespace(),e.eat("}",!0),e.append({type:"RenderTag",start:t,end:e.index,expression:n,metadata:{dynamic:!1,arguments:[],path:[],snippets:new Set}})}}(e);if(e.match("/")&&!e.match("/*")&&!e.match("//"))return e.eat("/"),ll(e);const s=Pa(e);e.allow_whitespace(),e.eat("}",!0),e.append({type:"ExpressionTag",start:n,end:e.index,expression:s,metadata:{expression:Mo()}})}function ll(e){const t=e.index-1;let n,s=e.current();switch(s.type){case"IfBlock":if(n=e.eat("if",!0,!1),!n)return s.end=t-1,e.pop(),void ll(e);for(e.allow_whitespace(),e.eat("}",!0);s.elseif;)s.end=e.index,e.stack.pop(),s=e.current();return s.end=e.index,void e.pop();case"EachBlock":n=e.eat("each",!0,!1);break;case"KeyBlock":n=e.eat("key",!0,!1);break;case"AwaitBlock":n=e.eat("await",!0,!1);break;case"SnippetBlock":n=e.eat("snippet",!0,!1);break;case"RegularElement":e.loose?n=!1:_r(t);break;default:_r(t)}if(!n)return s.end=t-1,e.pop(),void ll(e);e.allow_whitespace(),e.eat("}",!0),s.end=e.index,e.pop()}function cl(e){const t=e.index;let n="";for(;e.index<e.template.length&&!e.match("<")&&!e.match("{");)n+=e.template[e.index++];e.append({type:"Text",start:t,end:e.index,raw:n,data:To(n,!1)})}function pl(e){return e.match("<")?Jo:e.match("{")?ol:cl}function ul(e){const{value:t}=e;if(!0===t)return!0;const n=Array.isArray(t)?t[0]:t;return!n||(t.length>1?null:"Text"===n.type?n.data:"Literal"!==n.expression.type?null:n.expression.value)}function dl(e){const t=ul(e);return"boolean"!=typeof t&&Jr(e,"true or false"),t}const hl="[a-z0-9_.·À-ÖØ-öø-ͽͿ-῿‌-‍‿-⁀⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-<2D>𐀀-󯿿-]",ml=new RegExp(`^[a-z]${hl}*-${hl}*$`,"u"),fl=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function yl(e,t){"string"!=typeof t&&na(e),t&&(ml.test(t)?fl.includes(t)&&Is(e,"svelte_options_reserved_tagname","Tag name is reserved\nhttps://svelte.dev/e/svelte_options_reserved_tagname"):na(e))}function vl(e){const{nodes:t}=e.fragment;if(t.length>0){const n=t[0],s=t[t.length-1];!function(e,t){Is(e,"svelte_meta_invalid_content",`<${t}> cannot have children\nhttps://svelte.dev/e/svelte_meta_invalid_content`)}({start:n.start,end:s.end},e.name)}}const gl=/ \(\d+:\d+\)$/,bl=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g;class _l{template;template_untrimmed;loose;index=0;ts=!1;stack=[];fragments=[];root;meta_tags={};last_auto_closed_tag;constructor(e,t){if("string"!=typeof e)throw new TypeError("Template must be a string");let n;this.loose=t,this.template_untrimmed=e,this.template=e.trimEnd();do{n=bl.exec(e)}while(n&&"s"!==n[0][1]);bl.lastIndex=0,this.ts="ts"===n?.[2],this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:$o(),options:null,metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let r=pl;for(;this.index<this.template.length;)r=r(this)||pl;if(this.stack.length>1){const e=this.current();this.loose?e.end=this.template.length:"RegularElement"===e.type?(e.end=e.start+1,kr(e,e.name)):(e.end=e.start+1,Is(e,"block_unclosed","Block was left open\nhttps://svelte.dev/e/block_unclosed"))}if(r!==pl&&pa(this.index),this.root.fragment.nodes.length){let t=this.root.fragment.nodes[0].start;for(;s.test(e[t]);)t+=1;let n=this.root.fragment.nodes[this.root.fragment.nodes.length-1].end;for(;s.test(e[n-1]);)n-=1;this.root.start=t,this.root.end=n}else this.root.start=this.root.end=null;const a=this.root.fragment.nodes.findIndex((e=>"SvelteOptions"===e.type));if(-1!==a){const e=this.root.fragment.nodes[a];this.root.fragment.nodes.splice(a,1),this.root.options=function(e){const t={start:e.start,end:e.end,attributes:e.attributes};if(!e)return t;for(const n of e.attributes){"Attribute"!==n.type&&Yr(n);const{name:e}=n;switch(e){case"runes":t.runes=dl(n);break;case"tag":Qr(n);break;case"customElement":{const e={},{value:s}=n,r=!0===s||Array.isArray(s)?s:[s];if(!0===r)Zr(n);else{if("Text"===r[0].type){const s=ul(n);yl(n,s),e.tag=s,t.customElement=e;break}if("ObjectExpression"!==r[0].expression.type){if("Literal"===r[0].expression.type&&null===r[0].expression.value)break;Zr(n)}}const a=[];for(const e of r[0].expression.properties)("Property"!==e.type||e.computed||"Identifier"!==e.key.type)&&Zr(n),a.push([e.key.name,e.value]);const i=a.find((([e])=>"tag"===e));if(i){const t=i[1]?.value;yl(i,t),e.tag=t}const o=a.find((([e])=>"props"===e))?.[1];if(o){"ObjectExpression"!==o.type&&ea(n),e.props={};for(const t of o.properties){("Property"!==t.type||t.computed||"Identifier"!==t.key.type||"ObjectExpression"!==t.value.type)&&ea(n),e.props[t.key.name]={};for(const s of t.value.properties)("Property"!==s.type||s.computed||"Identifier"!==s.key.type||"Literal"!==s.value.type)&&ea(n),"type"===s.key.name?(-1===["String","Number","Boolean","Array","Object"].indexOf(s.value.value)&&ea(n),e.props[t.key.name].type=s.value.value):"reflect"===s.key.name?("boolean"!=typeof s.value.value&&ea(n),e.props[t.key.name].reflect=s.value.value):"attribute"===s.key.name?("string"!=typeof s.value.value&&ea(n),e.props[t.key.name].attribute=s.value.value):ea(n)}}const l=a.find((([e])=>"shadow"===e))?.[1];if(l){const t=l?.value;"open"!==t&&"none"!==t&&ta(l),e.shadow=t}const c=a.find((([e])=>"extend"===e))?.[1];c&&(e.extend=c),t.customElement=e;break}case"namespace":{const e=ul(n);e===P?t.namespace="svg":e===E?t.namespace="mathml":"html"===e||"mathml"===e||"svg"===e?t.namespace=e:Jr(n,'"html", "mathml" or "svg"');break}case"css":{const e=ul(n);"injected"===e?t.css=e:Jr(n,'"injected"');break}case"immutable":t.immutable=dl(n);break;case"preserveWhitespace":t.preserveWhitespace=dl(n);break;case"accessors":t.accessors=dl(n);break;default:sa(n,e)}}return t}(e),vl(e),Object.defineProperty(this.root.options,"__raw__",{value:e,enumerable:!1})}}current(){return this.stack[this.stack.length-1]}acorn_error(e){var t,n;t=e.pos,n=e.message.replace(gl,""),Is(t,"js_parse_error",`${n}\nhttps://svelte.dev/e/js_parse_error`)}eat(e,t=!1,n=!0){return this.match(e)?(this.index+=e.length,!0):(!t||this.loose&&!n||$r(this.index,e),!1)}match(e){const t=e.length;return 1===t?this.template[this.index]===e:this.template.slice(this.index,this.index+t)===e}match_regex(e){const t=e.exec(this.template.slice(this.index));return t&&0===t.index?t[0]:null}allow_whitespace(){for(;this.index<this.template.length&&s.test(this.template[this.index]);)this.index++}read(e){const t=this.match_regex(e);return t&&(this.index+=t.length),t}read_identifier(e=!1){const t=this.index;let n=this.index;const s=this.template.codePointAt(n);if(!_t(s,!0))return null;for(n+=s<=65535?1:2;n<this.template.length;){const e=this.template.codePointAt(n);if(!xt(e,!0))break;n+=e<=65535?1:2}const r=this.template.slice(this.index,this.index=n);return!e&&F(r)&&Is(t,"unexpected_reserved_word",`'${r}' is a reserved word in JavaScript and cannot be used here\nhttps://svelte.dev/e/unexpected_reserved_word`),r}read_until(e){if(this.index>=this.template.length){if(this.loose)return"";pa(this.template.length)}const t=this.index,n=e.exec(this.template.slice(t));return n?(this.index=t+n.index,this.template.slice(t,this.index)):(this.index=this.template.length,this.template.slice(t))}require_whitespace(){s.test(this.template[this.index])||Is(this.index,"expected_whitespace","Expected whitespace\nhttps://svelte.dev/e/expected_whitespace"),this.allow_whitespace()}pop(){return this.fragments.pop(),this.stack.pop()}append(e){return this.fragments.at(-1)?.nodes.push(e),e}}function xl(e,t=!1){return new _l(e,t).root}function Cl(e,t){return"Identifier"===e.params[0]?.type&&"this"===e.params[0].name&&e.params.shift(),t.next()}const wl={_(e,t){const n=t.next()??e;delete n.typeAnnotation,delete n.typeParameters,delete n.returnType,delete n.accessibility},Decorator(e){Js(e,"decorators (related TSC proposal is not stage 4 yet)")},ImportDeclaration(e){if("type"===e.importKind)return Ha;if(e.specifiers?.length>0){const t=e.specifiers.filter((e=>"type"!==e.importKind));return 0===t.length?Ha:{...e,specifiers:t}}return e},ExportNamedDeclaration(e,t){if("type"===e.exportKind)return Ha;if(e.declaration){const e=t.next();return"EmptyStatement"===e?.declaration?.type?Ha:e}if(e.specifiers){const t=e.specifiers.filter((e=>"type"!==e.exportKind));return 0===t.length?Ha:{...e,specifiers:t}}return e},ExportDefaultDeclaration:e=>"type"===e.exportKind?Ha:e,ExportAllDeclaration:e=>"type"===e.exportKind?Ha:e,PropertyDefinition:(e,{next:t})=>(e.accessor&&Js(e,"accessor fields (related TSC proposal is not stage 4 yet)"),t()),TSAsExpression:(e,t)=>t.visit(e.expression),TSSatisfiesExpression:(e,t)=>t.visit(e.expression),TSNonNullExpression:(e,t)=>t.visit(e.expression),TSInterfaceDeclaration:()=>Ha,TSTypeAliasDeclaration:()=>Ha,TSEnumDeclaration(e){Js(e,"enums")},TSParameterProperty:(e,t)=>((e.readonly||e.accessibility)&&"constructor"===t.path.at(-2)?.kind&&Js(e,"accessibility modifiers on constructor parameters"),t.visit(e.parameter)),TSInstantiationExpression:(e,t)=>t.visit(e.expression),FunctionExpression:Cl,FunctionDeclaration:Cl,TSDeclareFunction:()=>Ha,ClassDeclaration:(e,t)=>e.declare?Ha:(delete e.implements,t.next()),MethodDefinition:(e,t)=>e.abstract?Ha:t.next(),VariableDeclaration:(e,t)=>e.declare?Ha:t.next(),TSModuleDeclaration(e,t){if(!e.body)return Ha;return e.body.body.map((e=>t.visit(e))).some((e=>e!==Ha))&&Js(e,"namespaces with non-type nodes"),Ha}};function kl(e){return t(e,null,wl)}function Sl(e,t){if("MemberExpression"===e.type)return!e.computed&&Sl(e.object,e);if("Identifier"!==e.type)return!1;switch(t?.type){case"MemberExpression":return t.computed||e===t.object;case"MethodDefinition":return t.computed;case"MetaProperty":return t.meta===e;case"PropertyDefinition":case"Property":return t.computed||e===t.value;case"ExportSpecifier":case"ImportSpecifier":return e===t.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}function Pl(e){if(!Ro(e))return null;for(const t of e.attributes)if("Attribute"===t.type&&"slot"===t.name&&Ri(t))return t.value[0].data;return null}function El(e,t,n){if(Tl(e,t,n.scope,"BindDirective"===e.type),"Identifier"===t.type){const s=n.scope.get(t.name);n.analysis.runes&&(s?.node===n.analysis.props_id&&qs(e,"$props.id()"),"each"===s?.kind&&function(e){Is(e,"each_item_invalid_assignment","Cannot reassign or bind to each block argument in runes mode. Use the array and index variables instead (e.g. `array[i] = value` instead of `entry = value`, or `bind:value={array[i]}` instead of `bind:value={entry}`)\nhttps://svelte.dev/e/each_item_invalid_assignment")}(e)),"snippet"===s?.kind&&function(e){Is(e,"snippet_parameter_assignment","Cannot reassign or bind to snippet parameter\nhttps://svelte.dev/e/snippet_parameter_assignment")}(e)}}function Tl(e,t,n,s){if("ArrayPattern"===t.type)for(const r of t.elements)r&&Tl(e,r,n,s);else if("ObjectPattern"===t.type)for(const r of t.properties)"Property"===r.type&&Tl(e,r.value,n,s);else if("Identifier"===t.type){const r=n.get(t.name);if("import"===r?.declaration_kind||"const"===r?.declaration_kind&&"each"!==r.kind){const t="import"===r.declaration_kind?"import":"constant";s?function(e,t){Is(e,"constant_binding",`Cannot bind to ${t}\nhttps://svelte.dev/e/constant_binding`)}(e,t):qs(e,t)}}}function Al(e,t,n){t.analysis.source[e.start+1]!==n&&br({start:e.start,end:e.start+5},n)}function $l(e,t){e&&(1!==e.nodes.length||"Text"!==e.nodes[0].type||e.nodes[0].raw.trim()||function(e){we(e,"block_empty","Empty block\nhttps://svelte.dev/e/block_empty")}(e.nodes[0]))}function Il(e,t){let n=e;for(;"MemberExpression"===n.type;)n=n.object;if("Identifier"!==n.type)return!1;const s=t.get(n.name);return!s||("store_sub"===s.kind?Il({name:n.name.slice(1),type:"Identifier"},t):"import"!==s.declaration_kind&&"prop"!==s.kind&&"bindable_prop"!==s.kind&&"rest_prop"!==s.kind)}function Rl(e,t){if("Literal"===e.type)return!0;if("CallExpression"===e.type){if(!Rl(e.callee,t))return!1;for(let n of e.arguments)if(!Rl("SpreadElement"===n.type?n.argument:n,t))return!1;return!0}if("Identifier"!==e.type&&"MemberExpression"!==e.type)return!1;if("$effect.tracking"===Bl(Oa(e),t.state.scope))return!1;let n=e;for(;"MemberExpression"===n.type;)n=n.object;if(!n)return!1;if("Identifier"===n.type){if(null===t.state.scope.get(n.name))return!0}else if(Rl(n,t))return!0;return!1}function ql(e,t){if(!e)return;const n=e.declaration_kind;if("synthetic"!==n&&"param"!==n&&"rest_param"!==n&&(!t||t<=1)){const t=e.node;"$"===t.name?function(e){Is(e,"dollar_binding_invalid","The $ name is reserved, and cannot be used for variables and imports\nhttps://svelte.dev/e/dollar_binding_invalid")}(t):!t.name.startsWith("$")||"ImportDeclaration"===e.initial?.type&&"type"===e.initial.importKind||function(e){Is(e,"dollar_prefix_invalid","The $ prefix is reserved, and cannot be used for variables and imports\nhttps://svelte.dev/e/dollar_prefix_invalid")}(t)}}function Ll(e,t,n){const s=t.get(n);s&&("derived"===s.kind&&Ms(e),"state"!==s.kind&&"raw_state"!==s.kind||!s.reassigned||Xs(e))}class Ml{scope;node;kind;declaration_kind;initial;references=[];legacy_dependencies=[];prop_alias=null;metadata=null;mutated=!1;reassigned=!1;constructor(e,t,n,s,r){this.scope=e,this.node=t,this.initial=r,this.kind=n,this.declaration_kind=s}get updated(){return this.mutated||this.reassigned}is_function(){if(this.updated)return!1;const e=this.initial?.type;return"ArrowFunctionExpression"===e||"FunctionExpression"===e||"FunctionDeclaration"===e}}class Ol{root;parent;#t;declarations=new Map;declarators=new Map;references=new Map;function_depth=0;tracing=null;constructor(e,t,n){this.root=e,this.parent=t,this.#t=n,this.function_depth=t?t.function_depth+(n?0:1):0}declare(e,t,n,s=null){if(this.parent){if("var"===n&&this.#t)return this.parent.declare(e,t,n);if("import"===n)return this.parent.declare(e,t,n,s)}if(this.declarations.has(e.name)){const t=this.declarations.get(e.name);t&&"var"!==t.declaration_kind&&"var"!==n&&function(e,t){Is(e,"declaration_duplicate",`\`${t}\` has already been declared\nhttps://svelte.dev/e/declaration_duplicate`)}(e,e.name)}const r=new Ml(this,e,t,n,s);return ql(r,this.function_depth),this.declarations.set(e.name,r),this.root.conflicts.add(e.name),r}child(e=!1){return new Ol(this.root,this,e)}generate(e){if(this.#t)return this.parent.generate(e);let t=e=e.replace(/[^a-zA-Z0-9_$]/g,"_").replace(/^[0-9]/,"_"),n=1;for(;this.references.has(t)||this.declarations.has(t)||this.root.conflicts.has(t)||F(t);)t=`${e}_${n++}`;return this.references.set(t,[]),this.root.conflicts.add(t),t}get(e){return this.declarations.get(e)??this.parent?.get(e)??null}get_bindings(e){const t=this.declarators.get(e);if(!t)throw new Error("No binding found for declarator");return t}owner(e){return this.declarations.has(e)?this:this.parent&&this.parent.owner(e)}reference(e,t){t=[...t];let n=this.references.get(e.name);n||this.references.set(e.name,n=[]),n.push({node:e,path:t});const s=this.declarations.get(e.name);s?s.references.push({node:e,path:t}):this.parent?this.parent.reference(e,t):this.root.conflicts.add(e.name)}}class Nl{conflicts=new Set;unique(e){let t=e=e.replace(/[^a-zA-Z0-9_$]/g,"_"),n=1;for(;this.conflicts.has(t);)t=`${e}_${n++}`;this.conflicts.add(t);return Ga(t)}}function Dl(e,n,s,r){const a=new Map,i=new Ol(n,r,!1);a.set(e,i);const o={scope:i},l=[],c=[],p=[];function u(e,t){for(const n of t)for(const t of Di(n))e.declare(t,"normal","RestElement"===n.type?"rest_param":"param")}const d=(e,{state:t,next:n})=>{const s=t.scope.child(!0);a.set(e,s),n({scope:s})},h=(e,{state:t,next:n})=>{const s=t.scope.child();a.set(e,s),n({scope:s})},m=(e,t)=>{e.metadata.scopes={default:t.state.scope.child()},"SvelteComponent"===e.type&&t.visit(e.expression);const n=Pl(e)?t.state:{scope:e.metadata.scopes.default};for(const s of e.attributes)"LetDirective"===s.type?t.visit(s,n):t.visit(s);for(const s of e.fragment.nodes){let r=n;const a=Pl(s);null!==a&&(e.metadata.scopes[a]=t.state.scope.child(),r={scope:e.metadata.scopes[a]}),t.visit(s,r)}},f=(e,{state:t,path:n,visit:s})=>{t.scope.reference(Ga(e.name.split(".")[0]),n),e.expression&&s(e.expression)};t(e,o,{Identifier(e,{path:t,state:n}){const s=t.at(-1);s&&Sl(e,s)&&!s.type.startsWith("TS")&&l.push([n.scope,{node:e,path:t.slice()}])},LabeledStatement(e,{path:t,next:n}){if(t.length>1||!s)return n();if("$"!==e.label.name)return n();const r=o.scope.child();if(a.set(e,r),"ExpressionStatement"===e.body.type&&"AssignmentExpression"===e.body.expression.type)for(const t of Di(e.body.expression.left))t.name.startsWith("$")||p.push(t);n({scope:r})},SvelteFragment:h,SlotElement:h,SvelteElement:h,RegularElement:h,LetDirective(e,t){const n=t.state.scope,s=[];if(n.declarators.set(e,s),e.expression)for(const r of Bi(e.expression)){const a=n.declare(r,"template","const");n.reference(r,[t.path[t.path.length-1],e]),s.push(a)}else{const r={name:e.name,type:"Identifier",start:e.start,end:e.end},a=n.declare(r,"template","const");n.reference(r,[t.path[t.path.length-1],e]),s.push(a)}},Component:(e,t)=>{t.state.scope.reference(Ga(e.name),t.path),m(e,t)},SvelteSelf:m,SvelteComponent:m,AssignmentExpression(e,{state:t,next:n}){c.push([t.scope,e.left]),n()},UpdateExpression(e,{state:t,next:n}){c.push([t.scope,e.argument]),n()},ImportDeclaration(e,{state:t}){for(const n of e.specifiers)t.scope.declare(n.local,"normal","import",e)},FunctionExpression(e,{state:t,next:n}){const s=t.scope.child();a.set(e,s),e.id&&s.declare(e.id,"normal","function"),u(s,e.params),n({scope:s})},FunctionDeclaration(e,{state:t,next:n}){e.id&&t.scope.declare(e.id,"normal","function",e);const s=t.scope.child();a.set(e,s),u(s,e.params),n({scope:s})},ArrowFunctionExpression(e,{state:t,next:n}){const s=t.scope.child();a.set(e,s),u(s,e.params),n({scope:s})},ForStatement:d,ForInStatement:d,ForOfStatement:d,SwitchStatement:d,BlockStatement(e,t){const n=t.path.at(-1);"FunctionDeclaration"===n?.type||"FunctionExpression"===n?.type||"ArrowFunctionExpression"===n?.type?t.next():d(e,t)},ClassDeclaration(e,{state:t,next:n}){e.id&&t.scope.declare(e.id,"normal","let",e),n()},VariableDeclaration(e,{state:t,path:n,next:s}){const r="ConstTag"===n.at(-1)?.type;for(const n of e.declarations){const s=[];t.scope.declarators.set(n,s);for(const a of Di(n.id)){const i=t.scope.declare(a,r?"template":"normal",e.kind,n.init);s.push(i)}}s()},CatchClause(e,{state:t,next:n}){if(e.param){const s=t.scope.child(!0);a.set(e,s);for(const t of Di(e.param))s.declare(t,"normal","let");n({scope:s})}else n()},EachBlock(e,{state:n,visit:s}){s(e.expression);const r=n.scope.child();if(a.set(e,r),e.context){for(const n of Di(e.context)){const s=r.declare(n,"each","const");let a=!1,i=!1;t(e.context,null,{Identifier(e){a&&e===n&&(i=!0)},RestElement(e,{next:t}){const n=a;a=!0,t(),a=n}}),s.metadata={inside_rest:i}}s(e.context,{scope:r})}if(e.index){const t=e.key&&("Identifier"!==e.key.type||!e.index||e.key.name!==e.index);r.declare(Ga(e.index),t?"template":"normal","const",e)}e.key&&s(e.key,{scope:r});for(const t of e.body.nodes)s(t,{scope:r});e.fallback&&s(e.fallback,{scope:r}),e.metadata={expression:Mo(),keyed:!1,contains_group_binding:!1,index:r.root.unique("$$index"),declarations:r.declarations,is_controlled:!1}},AwaitBlock(e,t){if(t.visit(e.expression),e.pending&&t.visit(e.pending),e.then&&(t.visit(e.then),e.value)){const n=a.get(e.then),s=t.state.scope.child();a.set(e.value,s),t.visit(e.value,{scope:s});for(const t of Di(e.value))n.declare(t,"template","const"),s.declare(t,"normal","const")}if(e.catch&&(t.visit(e.catch),e.error)){const n=a.get(e.catch),s=t.state.scope.child();a.set(e.error,s),t.visit(e.error,{scope:s});for(const t of Di(e.error))n.declare(t,"template","const"),s.declare(t,"normal","const")}},SnippetBlock(e,t){const n=t.state;n.scope.declare(e.expression,"normal","function",e);const s=n.scope.child();a.set(e,s);for(const t of e.parameters)for(const e of Di(t))s.declare(e,"snippet","let");t.next({scope:s})},Fragment:(e,t)=>{const n=t.state.scope.child(e.metadata.transparent);a.set(e,n),t.next({scope:n})},BindDirective(e,t){c.push([t.state.scope,e.expression]),t.next()},TransitionDirective:f,AnimateDirective:f,UseDirective:f,StyleDirective(e,{path:t,state:n,next:s}){!0===e.value&&n.scope.reference(Ga(e.name),t.concat(e)),s()}});for(const e of p){i.get(e.name)||i.declare(e,"legacy_reactive","let")}for(const[e,{node:t,path:n}]of l)e.reference(t,n);for(const[e,t]of c)for(const n of Ni(t)){const t=Ii(n),s=t&&e.get(t.name);null!==s&&t!==s.node&&(t===n?s.reassigned=!0:s.mutated=!0)}return{scope:i,scopes:a}}function jl(e,{next:t,state:n}){const s=n.scopes.get(e);t(void 0!==s&&s!==n.scope?{...n,scope:s}:n)}function Bl(e,t){if(!e)return null;if("CallExpression"!==e.type)return null;let n=e.callee,s="";for(;"MemberExpression"===n.type;){if(n.computed)return null;if("Identifier"!==n.property.type)return null;s="."+n.property.name+s,n=n.object}if("CallExpression"===n.type&&"Identifier"===n.callee.type&&(s="()"+s,n=n.callee),"Identifier"!==n.type)return null;if(s=n.name+s,!ie(s))return null;return null!==t.get(n.name)?null:s}function Fl(e){const t=e.reduce(((e,t)=>{const[n,s]=t;return e.has(n)||e.set(n,[]),e.has(s)||e.set(s,[]),e.get(n).push(s),e}),new Map),n=new Set,s=new Set,r=[];function a(e){n.add(e),s.add(e),t.get(e)?.forEach((e=>{n.has(e)?s.has(e)&&r.push([...s,e]):a(e)})),s.delete(e)}return t.forEach(((e,t)=>{n.has(t)||a(t)})),r[0]}const Vl=/^-((webkit)|(moz)|(o)|(ms))-/,Hl=/^[\s,;}]$/;function Ul(e){return e.replace(Vl,"")}const zl=e=>"keyframes"===Ul(e.name),Wl={};function Gl(e,t,n,s=!1){if(!n.has(Wl))if("Literal"===e.type)n.add(String(e.value));else if("ConditionalExpression"===e.type)Gl(e.consequent,t,n,s),Gl(e.alternate,t,n,s);else if("LogicalExpression"===e.type)if("&&"===e.operator){const r=new Set;if(Gl(e.left,t,r,s),r.has(Wl))t&&s||(n.add(""),n.add(!1),n.add(NaN),n.add(0));else for(const e of r)e||null==e||t&&s||n.add(e);Gl(e.right,t,n,s)}else Gl(e.left,t,n,s),Gl(e.right,t,n,s);else if(t&&"ArrayExpression"===e.type)for(const s of e.elements)s&&Gl(s,t,n,!0);else if(t&&"ObjectExpression"===e.type)for(const t of e.properties)"Property"!==t.type||t.computed||"Identifier"!==t.key.type&&"Literal"!==t.key.type?n.add(Wl):n.add("Identifier"===t.key.type?t.key.name:String(t.key.value));else n.add(Wl)}function Kl(e,t){const n=new Set;return"Text"===e.type?n.add(e.data):Gl(e.expression,t,n),n.has(Wl)?null:[...n].map((e=>String(e)))}function Xl(e){const t=e.selectors[0];return"PseudoClassSelector"===t.type&&"global"===t.name&&(null===t.args||e.selectors.every((e=>Ql(e)||"PseudoElementSelector"===e.type)))}function Ql(e){return"PseudoClassSelector"===e.type&&("has"!==e.name&&"is"!==e.name&&"where"!==e.name&&("not"!==e.name||null===e.args||e.args.children.every((e=>1===e.children.length)))||null===e.args||e.args.children.every((e=>e.children.every((e=>Xl(e))))))}function Yl(e){return"PseudoClassSelector"===e.type&&"global"===e.name&&null===e.args}const Jl={Atrule(e,t){zl(e)&&(e.prelude.startsWith("-global-")||t.path.some((e=>"Rule"===e.type&&e.metadata.is_global_block))||t.state.keyframes.push(e.prelude)),t.next()},ComplexSelector(e,t){t.next();{const t=e.children.find(Xl);if(t){const n=e.children.indexOf(t);if(null!==t.selectors[0].args&&0!==n&&n!==e.children.length-1)for(let s=n+1;s<e.children.length;s++)Xl(e.children[s])||tr(t.selectors[0])}}for(const t of e.children)for(let n=0;n<t.selectors.length;n++){const s=t.selectors[n];if("PseudoClassSelector"===s.type&&"global"===s.name){const r=s.args?.children[0].children[0];"TypeSelector"===r?.selectors[0].type&&0!==n&&sr(s),"TypeSelector"===t.selectors[n+1]?.type&&ar(t.selectors[n+1]),null!==s.args&&s.args.children.length>1&&(e.children.length>1||t.selectors.length>1)&&nr(s)}}if(e.metadata.rule=t.state.rule,e.metadata.used||=e.children.every((({metadata:e})=>e.is_global||e.is_global_like)),e.metadata.rule?.metadata.parent_rule&&"NestingSelector"===e.children[0]?.selectors[0]?.type){const t=e.children[0]?.selectors[1],n="PseudoClassSelector"!==t?.type||Ql(t),s=e.metadata.rule.metadata.parent_rule.prelude.children.some((e=>1===e.children.length&&e.children[0].metadata.is_global));n&&s&&(e.metadata.used=!0)}},RelativeSelector(e,n){const s=n.path.at(-1);if(null==e.combinator||n.state.rule?.metadata.parent_rule||s.children[0]!==e||"PseudoClassSelector"===n.path.at(-3)?.type||rr(e.combinator),e.metadata.is_global=e.selectors.length>=1&&Xl(e),e.selectors.length>=1&&e.selectors.every((e=>"PseudoClassSelector"===e.type||"PseudoElementSelector"===e.type))){const t=e.selectors[0];e.metadata.is_global_like||="PseudoClassSelector"===t.type&&"host"===t.name||"PseudoElementSelector"===t.type&&["view-transition","view-transition-group","view-transition-old","view-transition-new","view-transition-image-pair"].includes(t.name)}if(e.metadata.is_global_like||=e.selectors.some((e=>"PseudoClassSelector"===e.type&&"root"===e.name))&&!e.selectors.some((e=>"PseudoClassSelector"===e.type&&"has"===e.name)),e.metadata.is_global_like||e.metadata.is_global)for(const n of e.selectors)t(n,null,{ComplexSelector(e,t){e.metadata.used=!0,t.next()}});n.next()},Rule(e,n){if(e.metadata.parent_rule=n.state.rule,e.metadata.is_global_block=e.prelude.children.some((e=>{let n=!1;for(const s of e.children){const e=s.selectors.findIndex(Yl);if(n&&(s.metadata.is_global_like=!0),-1!==e){n=!0;for(let n=e+1;n<s.selectors.length;n++)t(s.selectors[n],null,{ComplexSelector(e){e.metadata.used=!0}})}}return n})),e.metadata.is_global_block){e.prelude.children.length>1&&function(e){Is(e,"css_global_block_invalid_list","A `:global` selector cannot be part of a selector list with more than one item\nhttps://svelte.dev/e/css_global_block_invalid_list")}(e.prelude);const t=e.prelude.children[0].children.find(((t,n)=>{const s=t.selectors.findIndex(Yl);if(0===s)return t.selectors.length>1&&0===n&&null===e.metadata.parent_rule&&er(t.selectors[1]),!0;-1!==s&&function(e){Is(e,"css_global_block_invalid_modifier","A `:global` selector cannot modify an existing selector\nhttps://svelte.dev/e/css_global_block_invalid_modifier")}(t.selectors[s])}));if(!t)throw new Error("Internal error: global block without :global selector");t.combinator&&" "!==t.combinator.name&&function(e,t){Is(e,"css_global_block_invalid_combinator",`A \`:global\` selector cannot follow a \`${t}\` combinator\nhttps://svelte.dev/e/css_global_block_invalid_combinator`)}(t,t.combinator.name);const n=e.block.children.find((e=>"Declaration"===e.type));n&&1===e.prelude.children.length&&1===e.prelude.children[0].children.length&&1===e.prelude.children[0].children[0].selectors.length&&function(e){Is(e,"css_global_block_invalid_declaration","A top-level `:global {...}` block can only contain rules, not declarations\nhttps://svelte.dev/e/css_global_block_invalid_declaration")}(n)}n.next({...n.state,rule:e}),e.metadata.has_local_selectors=e.prelude.children.some((e=>e.children.some((({metadata:e})=>!e.is_global&&!e.is_global_like))))},NestingSelector(e,t){const n=t.state.rule,s=n.metadata.parent_rule;if(s)s.metadata.is_global_block&&!s.metadata.parent_rule&&1===s.prelude.children[0].children.length&&1===s.prelude.children[0].children[0].selectors.length&&er(e);else{const t=n.prelude.children,s=t[0].children[0].selectors;(t.length>1||s.length>1||"PseudoClassSelector"!==s[0].type||"global"!==s[0].name||s[0].args?.children[0]?.children[0].selectors[0]!==e)&&function(e){Is(e,"css_nesting_selector_invalid_placement","Nesting selectors can only be used inside a rule or as the first selector inside a lone `:global(...)`\nhttps://svelte.dev/e/css_nesting_selector_invalid_placement")}(e)}t.next()}};const Zl=0,ec=1,tc=0,nc=1,sc=new Map([["details",["open"]],["dialog",["open"]]]),rc={type:"Combinator",name:" ",start:-1,end:-1},ac={type:"RelativeSelector",start:-1,end:-1,combinator:null,selectors:[{type:"NestingSelector",name:"&",start:-1,end:-1}],metadata:{is_global:!1,is_global_like:!1,scoped:!1}},ic={type:"RelativeSelector",start:-1,end:-1,combinator:null,selectors:[{type:"TypeSelector",name:"*",start:-1,end:-1}],metadata:{is_global:!1,is_global_like:!1,scoped:!1}},oc=new Set;function lc(e,n){t(e,null,{Rule(e,t){e.metadata.is_global_block?t.visit(e.prelude):t.next()},ComplexSelector(e){const t=cc(e);oc.clear(),uc(t,e.metadata.rule,n,nc)&&(e.metadata.used=!0)}})}function cc(e){const n=pc(e);if(e.metadata.rule?.metadata.parent_rule&&n.length>0){let e=!1;for(let s of n)if(t(s,null,{NestingSelector(){e=!0}}),e)break;e||(null===n[0].combinator&&(n[0]={...n[0],combinator:rc}),n.unshift(ac))}return n}function pc(e){const t=e.children.findLastIndex((({metadata:e,selectors:t})=>{const n=t[0];return!(e.is_global_like||"PseudoClassSelector"===n.type&&"global"===n.name&&null===n.args||e.is_global)}));return e.children.slice(0,t+1).map((e=>!e.selectors.find((e=>"PseudoClassSelector"===e.type&&"root"===e.name))||e.metadata.is_global_like?e:{...e,selectors:e.selectors.filter((e=>"PseudoClassSelector"===e.type&&"has"===e.name))}))}function uc(e,n,s,r){const a=e.slice(),i=r===tc?a.shift():a.pop(),o=!!i&&function(e,n,s,r){const a=[],i=[];for(const t of e.selectors)"PseudoClassSelector"===t.type&&"has"===t.name&&t.args?a.push(t):i.push(t);if(a.length>0){const e=function(e){const t=[];for(;e;)t.push(e),e=e.metadata.parent_rule;return t}(n),t=e.some((e=>e.prelude.children.some((t=>t.children.some((t=>dc(t,e)))))))||e[e.length-1].prelude.children.some((e=>e.children.some((e=>e.selectors.some((e=>"PseudoClassSelector"===e.type&&("root"===e.name||"global"===e.name&&e.args)))))));for(const e of a){const r=e.args.children;let a=!1;for(const e of r){const[r,...i]=pc(e);if(!r){e.metadata.used=!0,a=!0;continue}if(t){uc([r.combinator?{...r,combinator:null}:r,...i],n,s,tc)&&(e.metadata.used=!0,a=!0)}uc([ic,r.combinator?r:{...r,combinator:rc},...i],n,s,tc)&&(e.metadata.used=!0,a=!0)}if(!a)return!1}}for(const a of i){if("Percentage"===a.type||"Nth"===a.type)continue;const i=a.name.replace(hc,"$1");switch(a.type){case"PseudoClassSelector":if("host"===i||"root"===i)return!1;if("global"===i&&null!==a.args&&1===e.selectors.length){return uc(a.args.children[0].children,n,s,nc)}if("global"===i&&null===a.args)return!0;if("not"===i&&a.args){for(const e of a.args.children){t(e,null,{ComplexSelector(e,t){e.metadata.used=!0,t.next()}});const n=pc(e);if(e.children.length>1){for(const e of n)e.metadata.scoped=!0;let e=s;for(;e;)e.metadata.scoped=!0,e=gc(e)}}break}if(("is"===i||"where"===i)&&a.args){let e=!1;for(const t of a.args.children){const r=pc(t);if(0===r.length)t.metadata.used=!0,e=!0;else if(uc(r,n,s,nc))t.metadata.used=!0,e=!0;else if(t.children.length>1&&("is"==i||"where"==i)){t.metadata.used=!0,e=!0;for(const e of r)e.metadata.scoped=!0}}if(!e)return!1}break;case"PseudoElementSelector":break;case"AttributeSelector":{const e=sc.get(s.name.toLowerCase());if(!e?.includes(a.name.toLowerCase())&&!fc(s,a.name,a.value&&yc(a.value),a.matcher,a.flags?.includes("i")??!1))return!1;break}case"ClassSelector":if(!fc(s,"class",i,"~=",!1)&&!s.attributes.some((e=>"ClassDirective"===e.type&&e.name===i)))return!1;break;case"IdSelector":if(!fc(s,"id",i,"=",!1))return!1;break;case"TypeSelector":if(s.name.toLowerCase()!==i.toLowerCase()&&"*"!==i&&"SvelteElement"!==s.type)return!1;break;case"NestingSelector":{let e=!1;const t=n.metadata.parent_rule;for(const n of t.prelude.children)(uc(cc(n),t,s,r)||n.children.every((e=>dc(e,t))))&&(n.metadata.used=!0,e=!0);if(!e)return!1;break}}}return!0}(i,n,s,r)&&function(e,n,s,r,a){const i=a==tc?n[0]?.combinator:e.combinator;if(!i)return!0;switch(i.name){case" ":case">":{const e=">"===i.name,o=a===tc?function(e,n,s=new Set){const r=[];function a(e){t(e,null,{_(e,t){if("RegularElement"===e.type||"SvelteElement"===e.type)r.push(e),n||t.next();else if("RenderTag"===e.type)for(const t of e.metadata.snippets)s.has(t)||(s.add(t),a(t.body));else t.next()}})}return a("RenderTag"===e.type?e:e.fragment),r}(r,e):vc(r,e);let l=!1;for(const e of o)uc(n,s,e,a)&&(l=!0);return l||a===nc&&(!e||0===o.length)&&n.every((e=>dc(e,s)))}case"+":case"~":{const e=bc(r,a,"+"===i.name);let t=!1;for(const r of e.keys())"RenderTag"===r.type||"SlotElement"===r.type?1===n.length&&n[0].metadata.is_global&&(t=!0):uc(n,s,r,a)&&(t=!0);return t||a===nc&&null===gc(r)&&n.every((e=>dc(e,s)))}default:return!0}}(i,a,n,s,r);return o&&(function(e){const t=e.selectors[0];return"PseudoClassSelector"===t.type&&"global"===t.name&&(null===t.args||e.selectors.every((e=>"PseudoClassSelector"===e.type||"PseudoElementSelector"===e.type)))}(i)||(i.metadata.scoped=!0),s.metadata.scoped=!0),o}function dc(e,t){if(e.metadata.is_global||e.metadata.is_global_like)return!0;for(const n of e.selectors){let e=null,s=t;"PseudoClassSelector"===n.type&&("is"!==n.name&&"where"!==n.name||!n.args||(e=n.args)),"NestingSelector"===n.type&&(s=t.metadata.parent_rule,e=s.prelude);const r=e?.children.some((e=>e.children.every((e=>dc(e,s)))));if(!r)return!1}return!0}const hc=/\\(.)/g;function mc(e,t,n,s){switch(n&&(t=t.toLowerCase(),s=s.toLowerCase()),e){case"=":return s===t;case"~=":return s.split(/\s/).includes(t);case"|=":return`${s}-`.startsWith(`${t}-`);case"^=":return s.startsWith(t);case"$=":return s.endsWith(t);case"*=":return s.includes(t);default:throw new Error("this shouldn't happen")}}function fc(e,t,n,s,r){for(const a of e.attributes){if("SpreadAttribute"===a.type)return!0;if("BindDirective"===a.type&&a.name===t)return!0;if("Attribute"!==a.type)continue;if(a.name.toLowerCase()!==t.toLowerCase())continue;if(!0===a.value)return null===s;if(null===n)return!0;if(Ri(a))return mc(s,n,r,a.value[0].data);const e=Mi(a.value),o=new Set;let c=[];for(const n of e){const e=Kl(n,"class"===t);if(!e)return!0;if(c.length>0){const t=[],n=[];if(e.forEach((e=>{i.test(e)?t.push(e):n.push(e)})),n.length>0){t.length>0&&c.forEach((e=>o.add(e)));const e=[];c.forEach((t=>{n.forEach((n=>{e.push(t+n)}))})),c=e,t.forEach((e=>{l.test(e)?o.add(e):c.push(e)}));continue}c.forEach((e=>o.add(e))),c=[]}if(e.forEach((e=>{l.test(e)?o.add(e):c.push(e)})),c.length<e.length&&c.push(" "),c.length>20)return!0}c.forEach((e=>o.add(e)));for(const e of o)if(mc(s,n,r,e))return!0}return!1}function yc(e){return e[0]===e[e.length-1]&&"'"===e[0]||'"'===e[0]?e.slice(1,e.length-1):e}function vc(e,t,n=new Set){const s=[],r=e.metadata.path;let a=r.length;for(;a--;){const e=r[a];if("SnippetBlock"===e.type){if(!n.has(e)){n.add(e);for(const r of e.metadata.sites)s.push(...vc(r,t,n))}break}if(("RegularElement"===e.type||"SvelteElement"===e.type)&&(s.push(e),t))break}return s}function gc(e){let t=e.metadata.path,n=t.length;for(;n--;){const e=t[n];if("RegularElement"===e.type||"SvelteElement"===e.type)return e}return null}function bc(e,t,n,s=new Set){const r=new Map,a=e.metadata.path;let i=e,o=a.length;for(;o--;){const e=a[o--];let l=e.nodes.indexOf(i)+(t===tc?1:-1);for(;l>=0&&l<e.nodes.length;){const s=e.nodes[l];if("RegularElement"===s.type){if(!s.attributes.some((e=>"Attribute"===e.type&&"slot"===e.name.toLowerCase()))&&(r.set(s,ec),n))return r}else if(kc(s)){"SlotElement"===s.type&&r.set(s,Zl);const e=_c(s,t,n);if(Cc(e,r),n&&xc(e))return r}else if("SvelteElement"===s.type)r.set(s,Zl);else if("RenderTag"===s.type){r.set(s,Zl);for(const e of s.metadata.snippets)Cc(_c(e,t,n),r)}l=t===tc?l+1:l-1}if(i=a[o],!i)break;if("Component"!==i.type&&"SvelteComponent"!==i.type&&"SvelteSelf"!==i.type){if("SnippetBlock"===i.type){if(s.has(i))break;s.add(i);for(const e of i.metadata.sites){const a=bc(e,t,n,s);if(Cc(a,r),n&&1===i.metadata.sites.size&&xc(a))return r}}if(!kc(i))break;"EachBlock"===i.type&&e===i.body&&Cc(_c(i,t,n),r)}}return r}function _c(e,t,n,s=new Set){let r=[];switch(e.type){case"EachBlock":r.push(e.body,e.fallback);break;case"IfBlock":r.push(e.consequent,e.alternate);break;case"AwaitBlock":r.push(e.pending,e.then,e.catch);break;case"KeyBlock":case"SlotElement":r.push(e.fragment);break;case"SnippetBlock":if(s.has(e))return new Map;s.add(e),r.push(e.body)}const a=new Map;let i="SlotElement"!==e.type&&"SnippetBlock"!==e.type;for(const e of r){if(null==e){i=!1;continue}const r=wc(e.nodes,t,n,s);i&&=xc(r),Cc(r,a)}if(!i)for(const e of a.keys())a.set(e,Zl);return a}function xc(e){if(0===e.size)return!1;for(const t of e.values())if(t===ec)return!0;return!1}function Cc(e,t){e.forEach(((e,n)=>{var s,r;t.set(n,(s=e,void 0===(r=t.get(n))||s>r?s:r))}))}function wc(e,t,n,s){const r=new Map;let a=t===tc?0:e.length-1;for(;a>=0&&a<e.length;){const i=e[a];if("RegularElement"===i.type){if(r.set(i,ec),n)break}else if("SvelteElement"===i.type)r.set(i,Zl);else if("RenderTag"===i.type)for(const e of i.metadata.snippets)Cc(_c(e,t,n,s),r);else if(kc(i)){const e=_c(i,t,n,s);if(Cc(e,r),n&&xc(e))break}a=t===tc?a+1:a-1}return r}function kc(e){return"IfBlock"===e.type||"EachBlock"===e.type||"AwaitBlock"===e.type||"KeyBlock"===e.type||"SlotElement"===e.type}const Sc={Atrule(e,t){zl(e)||t.next()},PseudoClassSelector(e,t){"is"!==e.name&&"where"!==e.name||t.next()},ComplexSelector(e,t){if(!e.metadata.used&&("PseudoClassSelector"!==t.path.at(-2)?.type||t.path.at(-4)?.metadata.used)){const n=t.state.stylesheet.content;!function(e,t){we(e,"css_unused_selector",`Unused CSS selector "${t}"\nhttps://svelte.dev/e/css_unused_selector`)}(e,n.styles.substring(e.start-n.start,e.end-n.start))}t.next()},Rule(e,t){e.metadata.is_global_block?t.visit(e.prelude):t.next()}};function Pc(e,t){e.metadata={hoisted:!1,hoisted_params:[],scope:t.state.scope},t.next({...t.state,function_depth:t.state.function_depth+1,expression:null})}function Ec(e){let t=e.length;for(;t--;){const n=e[t];if("Fragment"===n.type){if(n.metadata.dynamic)return;n.metadata.dynamic=!0}}}const Tc={hoisted:!1};function Ac(e){return V(e=e.slice(2))&&(e=e.slice(0,-7)),e}const $c={currentTime:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},duration:{valid_elements:["audio","video"],event:"durationchange",omit_in_ssr:!0},focused:{},paused:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},buffered:{valid_elements:["audio","video"],omit_in_ssr:!0},seekable:{valid_elements:["audio","video"],omit_in_ssr:!0},played:{valid_elements:["audio","video"],omit_in_ssr:!0},volume:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},muted:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},playbackRate:{valid_elements:["audio","video"],omit_in_ssr:!0,bidirectional:!0},seeking:{valid_elements:["audio","video"],omit_in_ssr:!0},ended:{valid_elements:["audio","video"],omit_in_ssr:!0},readyState:{valid_elements:["audio","video"],omit_in_ssr:!0},videoHeight:{valid_elements:["video"],event:"resize",omit_in_ssr:!0},videoWidth:{valid_elements:["video"],event:"resize",omit_in_ssr:!0},naturalWidth:{valid_elements:["img"],event:"load",omit_in_ssr:!0},naturalHeight:{valid_elements:["img"],event:"load",omit_in_ssr:!0},activeElement:{valid_elements:["svelte:document"],omit_in_ssr:!0},fullscreenElement:{valid_elements:["svelte:document"],event:"fullscreenchange",omit_in_ssr:!0},pointerLockElement:{valid_elements:["svelte:document"],event:"pointerlockchange",omit_in_ssr:!0},visibilityState:{valid_elements:["svelte:document"],event:"visibilitychange",omit_in_ssr:!0},innerWidth:{valid_elements:["svelte:window"],omit_in_ssr:!0},innerHeight:{valid_elements:["svelte:window"],omit_in_ssr:!0},outerWidth:{valid_elements:["svelte:window"],omit_in_ssr:!0},outerHeight:{valid_elements:["svelte:window"],omit_in_ssr:!0},scrollX:{valid_elements:["svelte:window"],omit_in_ssr:!0,bidirectional:!0},scrollY:{valid_elements:["svelte:window"],omit_in_ssr:!0,bidirectional:!0},online:{valid_elements:["svelte:window"],omit_in_ssr:!0},devicePixelRatio:{valid_elements:["svelte:window"],event:"resize",omit_in_ssr:!0},clientWidth:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},clientHeight:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},offsetWidth:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},offsetHeight:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},contentRect:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},contentBoxSize:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},borderBoxSize:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},devicePixelContentBoxSize:{omit_in_ssr:!0,invalid_elements:["svelte:window","svelte:document"]},indeterminate:{event:"change",bidirectional:!0,valid_elements:["input"],omit_in_ssr:!0},checked:{valid_elements:["input"],bidirectional:!0},group:{valid_elements:["input"],bidirectional:!0},this:{omit_in_ssr:!0},innerText:{invalid_elements:["svelte:window","svelte:document"],bidirectional:!0},innerHTML:{invalid_elements:["svelte:window","svelte:document"],bidirectional:!0},textContent:{invalid_elements:["svelte:window","svelte:document"],bidirectional:!0},open:{event:"toggle",bidirectional:!0,valid_elements:["details"]},value:{valid_elements:["input","textarea","select"],bidirectional:!0},files:{valid_elements:["input"],omit_in_ssr:!0,bidirectional:!0}};function Ic(e){!e.name.includes(":")||e.name.startsWith("xmlns:")||e.name.startsWith("xlink:")||e.name.startsWith("xml:")||we(e,"attribute_illegal_colon","Attributes should not contain ':' characters to prevent ambiguity with Svelte directives\nhttps://svelte.dev/e/attribute_illegal_colon")}function Rc(e,t){if(Array.isArray(e.value)&&1===e.value.length&&"ExpressionTag"===e.value[0].type&&("Component"===t.type||"SvelteComponent"===t.type||"SvelteSelf"===t.type||"RegularElement"===t.type&&qo(t))&&we(e,"attribute_quoted","Quoted attributes on components and custom elements will be stringified in a future version of Svelte. If this isn't what you want, remove the quotes\nhttps://svelte.dev/e/attribute_quoted"),!0===e.value||!Array.isArray(e.value)||1===e.value.length)return;e.value.at(-1)?.end!==e.end||function(e){Is(e,"attribute_unquoted_sequence","Attribute values containing `{...}` must be enclosed in quote marks, unless the value only contains the expression\nhttps://svelte.dev/e/attribute_unquoted_sequence")}(e)}function qc(e,t,n=!1){const s=e.path.at(-2);let r;if("SnippetBlock"===s?.type)return void(Ri(t)||Nr(t));let a=e.path.length;for(;a--;){const t=e.path[a];!r&&("Component"===t.type||"SvelteComponent"===t.type||"SvelteSelf"===t.type||"SvelteElement"===t.type||"RegularElement"===t.type&&qo(t))&&(r=t)}if(r){if("Component"===r.type||"SvelteComponent"===r.type||"SvelteSelf"===r.type)if(r!==s)n||Dr(t);else{Ri(t)||Nr(t);const n=t.value[0].data;if(e.state.component_slots.has(n)&&function(e,t,n){Is(e,"slot_attribute_duplicate",`Duplicate slot name '${t}' in <${n}>\nhttps://svelte.dev/e/slot_attribute_duplicate`)}(t,n,r.name),e.state.component_slots.add(n),"default"===n)for(const e of r.fragment.nodes)"Text"===e.type&&d.test(e.data)||("RegularElement"!==e.type&&"SvelteFragment"!==e.type||!e.attributes.some((e=>"Attribute"===e.type&&"slot"===e.name)))&&jr(e)}}else n||Dr(t)}function Lc(e){return!e||"import"===e.declaration_kind||"prop"===e.kind||"rest_prop"===e.kind||"bindable_prop"===e.kind||"SnippetBlock"===e?.initial?.type}function Mc(e,t){e.metadata.path=[...t.path],e.metadata.snippets=new Set;let n=!0;for(const s of e.attributes){if("SpreadAttribute"===s.type||"BindDirective"===s.type){n=!1;continue}if("Attribute"!==s.type||!qi(s))continue;const r=Li(s);if("Identifier"===r.type){const s=t.state.scope.get(r.name);n&&=Lc(s),"SnippetBlock"===s?.initial?.type&&e.metadata.snippets.add(s.initial)}else"Literal"!==r.type&&(n=!1)}if(n)for(const t of e.fragment.nodes)"SnippetBlock"===t.type&&e.metadata.snippets.add(t);t.state.analysis.snippet_renderers.set(e,n),Ec(t.path);for(const n of e.attributes){if("Attribute"!==n.type&&"SpreadAttribute"!==n.type&&"LetDirective"!==n.type&&"OnDirective"!==n.type&&"BindDirective"!==n.type&&xr(n),"OnDirective"===n.type&&(n.modifiers.length>1||n.modifiers.some((e=>"once"!==e)))&&Sr(n),"Attribute"===n.type){if(t.state.analysis.runes&&(Rc(n,e),qi(n))){const e=Li(n);if("SequenceExpression"===e.type){let n=e.start;for(;--n>0;){const s=t.state.analysis.source[n];if("("===s)break;"{"===s&&dr(e)}}}Ic(n),"slot"===n.name&&qc(t,n,!0)}"BindDirective"===n.type&&"this"!==n.name&&(t.state.analysis.uses_component_bindings=!0)}const s=Pl(e)?t.state:{...t.state,scope:e.metadata.scopes.default};for(const n of e.attributes)t.visit(n,"LetDirective"===n.type?s:t.state);let r=[];const a={default:[]};for(const t of e.fragment.nodes){if("Comment"===t.type){r.push(t);continue}const e=Pl(t)??"default";(a[e]??=[]).push(...r,t),"default"!==e&&(r=[])}const i=new Set;for(const n in a){const s={...t.state,scope:e.metadata.scopes[n],parent_element:null,component_slots:i};t.visit({...e.fragment,nodes:a[n]},s)}}function Oc(e){return Oa("$.get",e)}function Nc(e){for(const[t,n]of e.state.scope.declarations)(Dc(n,e.state.analysis)||"derived"===n.kind||"legacy_reactive"===n.kind)&&(e.state.transform[t]={read:"var"===n.declaration_kind?e=>Oa("$.safe_get",e):Oc,assign:(t,n,s=!1)=>{let r=Oa("$.set",t,n,s&&fi);return"store_sub"===e.state.scope.get(`$${t.name}`)?.kind&&(r=Oa("$.store_unsub",r,Qa(`$${t.name}`),Ga("$$stores"))),r},mutate:(t,n)=>e.state.analysis.runes?n:Oa("$.mutate",t,n),update:e=>Oa(e.prefix?"$.update_pre":"$.update",e.argument,"--"===e.operator&&Qa(-1))})}function Dc(e,t){return("state"===e.kind||"raw_state"===e.kind)&&(!t.immutable||e.reassigned||t.accessors)}function jc(e,t){if(Object.hasOwn(t.transform,e.name)){const n=t.scope.get(e.name);if(e!==n?.node)return t.transform[e.name].read(e)}return e}function Bc(e,t){const n=function(e,t){const n=t.state.scope,s=[];function r(e){s.find((t=>t.name===e.name))||s.push(e)}for(const[s]of n.references){let a=n.get(s);if(null!==a&&!n.declarations.has(s)&&a.initial!==e){"store_sub"===a.kind&&(r(Ga(a.node.name)),a=n.get(a.node.name.slice(1)));let e=t.state.transform[s]?.read(Ga(a.node.name));null!=e&&"function"!=typeof e&&"MemberExpression"===e.type&&"CallExpression"===e.object.type&&"Identifier"===e.object.callee.type&&"$.get"===e.object.callee.name&&"Identifier"===e.object.arguments[0].type?r(Ga(e.object.arguments[0].name)):"prop"!==a.kind&&"bindable_prop"!==a.kind||Vc(a,t.state)?"import"!==a.declaration_kind&&(r(Ga(a.node.name)),"rest_prop"===a.kind&&t.state.analysis.runes&&r(Ga("$$props"))):r(Ga("$$props"))}}return s}(e,t);e.metadata.hoisted_params=n;const s=[];if(0===e.params.length)n.length>0&&s.push(Ga(t.state.scope.generate("_")));else for(const n of e.params)s.push(t.visit(n));return s.push(...n),s}function Fc(e,t,n,s){const r=[Ga("$$props"),Qa(n)];let a,i=0;return"bindable_prop"===e.kind&&(i|=C),t.analysis.immutable&&(i|=b),t.analysis.runes&&(i|=_),(t.analysis.accessors||(t.analysis.immutable?e.reassigned||t.analysis.runes&&e.mutated:e.updated))&&(i|=x),s&&(Ui(s)?a=s:(a="CallExpression"===s.type&&"Identifier"===s.callee.type&&0===s.arguments.length?s.callee:pi(s),i|=w)),(i||a)&&(r.push(Qa(i)),a&&r.push(a)),Oa("$.prop",...r)}function Vc(e,t){return("prop"===e.kind||"bindable_prop"===e.kind)&&(!t.analysis.runes||t.analysis.accessors||e.reassigned||e.initial||e.updated)}function Hc(e,t){if(!e||"Literal"===e.type||"TemplateLiteral"===e.type||"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"UnaryExpression"===e.type||"BinaryExpression"===e.type||"Identifier"===e.type&&"undefined"===e.name)return!1;if("Identifier"===e.type&&null!==t){const n=t.get(e.name);if(null!==n&&!n.reassigned&&null!==n.initial&&"FunctionDeclaration"!==n.initial.type&&"ClassDeclaration"!==n.initial.type&&"ImportDeclaration"!==n.initial.type&&"EachBlock"!==n.initial.type&&"SnippetBlock"!==n.initial.type)return Hc(n.initial,null)}return!0}function Uc(e,t){return Oa(e.analysis.runes?"$.derived":"$.derived_safe_equal",t)}var zc,Wc,Gc,Kc={},Xc={},Qc={},Yc={};function Jc(){if(Wc)return Qc;Wc=1,Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.default=function(n,s){"function"==typeof Symbol&&"symbol"===t(Symbol.iterator)&&Object.defineProperty(n,Symbol.iterator,{value:e.default.bind(s)});return n};var e=function(e){return e&&e.__esModule?e:{default:e}}((zc||(zc=1,Object.defineProperty(Yc,"__esModule",{value:!0}),Yc.default=void 0,Yc.default=function(){var e=this,t=0,n={"@@iterator":function(){return n},next:function(){if(t<e.length){var n=e[t];return t+=1,{done:!1,value:n}}return{done:!0}}};return n}),Yc));function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}return Qc}function Zc(){if(Gc)return Xc;Gc=1,Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.default=void 0;var e=function(e){return e&&e.__esModule?e:{default:e}}(Jc());function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var s,r,a,i,o=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(s=a.call(n)).done)&&(o.push(s.value),o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var s={}.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}var s=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],r={entries:function(){return s},forEach:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=0,a=s;r<a.length;r++){var i=t(a[r],2),o=i[0],l=i[1];e.call(n,l,o,s)}},get:function(e){var t=s.find((function(t){return t[0]===e}));return t&&t[1]},has:function(e){return!!r.get(e)},keys:function(){return s.map((function(e){return t(e,1)[0]}))},values:function(){return s.map((function(e){return t(e,2)[1]}))}};return Xc.default=(0,e.default)(r,r.entries()),Xc}var ep,tp={};function np(){if(ep)return tp;ep=1,Object.defineProperty(tp,"__esModule",{value:!0}),tp.default=void 0;var e=function(e){return e&&e.__esModule?e:{default:e}}(Jc());function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var s,r,a,i,o=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(s=a.call(n)).done)&&(o.push(s.value),o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var s={}.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}var s=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],r={entries:function(){return s},forEach:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=0,a=s;r<a.length;r++){var i=t(a[r],2),o=i[0],l=i[1];e.call(n,l,o,s)}},get:function(e){var t=s.find((function(t){return t[0]===e}));return t&&t[1]},has:function(e){return!!r.get(e)},keys:function(){return s.map((function(e){return t(e,1)[0]}))},values:function(){return s.map((function(e){return t(e,2)[1]}))}};return tp.default=(0,e.default)(r,r.entries()),tp}var sp,rp={},ap={},ip={};var op,lp={};var cp,pp={};var up,dp={};var hp,mp={};var fp,yp={};var vp,gp={};var bp,_p={};var xp,Cp={};var wp,kp={};var Sp,Pp={};var Ep,Tp,Ap={};function $p(){if(Tp)return ap;Tp=1,Object.defineProperty(ap,"__esModule",{value:!0}),ap.default=void 0;var e=d((sp||(sp=1,Object.defineProperty(ip,"__esModule",{value:!0}),ip.default=void 0,ip.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]}),ip)),t=d((op||(op=1,Object.defineProperty(lp,"__esModule",{value:!0}),lp.default=void 0,lp.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]}),lp)),n=d((cp||(cp=1,Object.defineProperty(pp,"__esModule",{value:!0}),pp.default=void 0,pp.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]}),pp)),s=d((up||(up=1,Object.defineProperty(dp,"__esModule",{value:!0}),dp.default=void 0,dp.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),dp)),r=d((hp||(hp=1,Object.defineProperty(mp,"__esModule",{value:!0}),mp.default=void 0,mp.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]}),mp)),a=d((fp||(fp=1,Object.defineProperty(yp,"__esModule",{value:!0}),yp.default=void 0,yp.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]}),yp)),i=d((vp||(vp=1,Object.defineProperty(gp,"__esModule",{value:!0}),gp.default=void 0,gp.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]}),gp)),o=d((bp||(bp=1,Object.defineProperty(_p,"__esModule",{value:!0}),_p.default=void 0,_p.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]}),_p)),l=d((xp||(xp=1,Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.default=void 0,Cp.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]}),Cp)),c=d((wp||(wp=1,Object.defineProperty(kp,"__esModule",{value:!0}),kp.default=void 0,kp.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]}),kp)),p=d((Sp||(Sp=1,Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.default=void 0,Pp.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]}),Pp)),u=d((Ep||(Ep=1,Object.defineProperty(Ap,"__esModule",{value:!0}),Ap.default=void 0,Ap.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]}),Ap));function d(e){return e&&e.__esModule?e:{default:e}}var h=[["command",e.default],["composite",t.default],["input",n.default],["landmark",s.default],["range",r.default],["roletype",a.default],["section",i.default],["sectionhead",o.default],["select",l.default],["structure",c.default],["widget",p.default],["window",u.default]];return ap.default=h,ap}var Ip,Rp={},qp={};var Lp,Mp={};var Op,Np={};var Dp,jp={};var Bp,Fp={};var Vp,Hp={};var Up,zp={};var Wp,Gp={};var Kp,Xp={};var Qp,Yp={};var Jp,Zp={};var eu,tu={};var nu,su={};var ru,au={};var iu,ou={};var lu,cu={};var pu,uu={};var du,hu={};var mu,fu={};var yu,vu={};var gu,bu={};var _u,xu={};var Cu,wu={};var ku,Su={};var Pu,Eu={};var Tu,Au={};var $u,Iu={};var Ru,qu={};var Lu,Mu={};var Ou,Nu={};var Du,ju={};var Bu,Fu={};var Vu,Hu={};var Uu,zu={};var Wu,Gu={};var Ku,Xu={};var Qu,Yu={};var Ju,Zu={};var ed,td={};var nd,sd={};var rd,ad={};var id,od={};var ld,cd={};var pd,ud={};var dd,hd={};var md,fd={};var yd,vd={};var gd,bd={};var _d,xd={};var Cd,wd={};var kd,Sd={};var Pd,Ed={};var Td,Ad={};var $d,Id={};var Rd,qd={};var Ld,Md={};var Od,Nd={};var Dd,jd={};var Bd,Fd={};var Vd,Hd={};var Ud,zd={};var Wd,Gd={};var Kd,Xd={};var Qd,Yd={};var Jd,Zd={};var eh,th={};var nh,sh={};var rh,ah={};var ih,oh={};var lh,ch={};var ph,uh={};var dh,hh={};var mh,fh={};var yh,vh={};var gh,bh={};var _h,xh={};var Ch,wh={};var kh,Sh={};var Ph,Eh={};var Th,Ah={};var $h,Ih={};var Rh,qh={};var Lh,Mh,Oh={};function Nh(){if(Mh)return Rp;Mh=1,Object.defineProperty(Rp,"__esModule",{value:!0}),Rp.default=void 0;var e=Ae((Ip||(Ip=1,Object.defineProperty(qp,"__esModule",{value:!0}),qp.default=void 0,qp.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),qp)),t=Ae((Lp||(Lp=1,Object.defineProperty(Mp,"__esModule",{value:!0}),Mp.default=void 0,Mp.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]}),Mp)),n=Ae((Op||(Op=1,Object.defineProperty(Np,"__esModule",{value:!0}),Np.default=void 0,Np.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]}),Np)),s=Ae((Dp||(Dp=1,Object.defineProperty(jp,"__esModule",{value:!0}),jp.default=void 0,jp.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]}),jp)),r=Ae((Bp||(Bp=1,Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.default=void 0,Fp.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Fp)),a=Ae((Vp||(Vp=1,Object.defineProperty(Hp,"__esModule",{value:!0}),Hp.default=void 0,Hp.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Hp)),i=Ae((Up||(Up=1,Object.defineProperty(zp,"__esModule",{value:!0}),zp.default=void 0,zp.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]}),zp)),o=Ae((Wp||(Wp=1,Object.defineProperty(Gp,"__esModule",{value:!0}),Gp.default=void 0,Gp.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Gp)),l=Ae((Kp||(Kp=1,Object.defineProperty(Xp,"__esModule",{value:!0}),Xp.default=void 0,Xp.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Xp)),c=Ae((Qp||(Qp=1,Object.defineProperty(Yp,"__esModule",{value:!0}),Yp.default=void 0,Yp.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]}),Yp)),p=Ae((Jp||(Jp=1,Object.defineProperty(Zp,"__esModule",{value:!0}),Zp.default=void 0,Zp.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Zp)),u=Ae((eu||(eu=1,Object.defineProperty(tu,"__esModule",{value:!0}),tu.default=void 0,tu.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]}),tu)),d=Ae((nu||(nu=1,Object.defineProperty(su,"__esModule",{value:!0}),su.default=void 0,su.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]}),su)),h=Ae((ru||(ru=1,Object.defineProperty(au,"__esModule",{value:!0}),au.default=void 0,au.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element","scoped to the main element"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),au)),m=Ae((iu||(iu=1,Object.defineProperty(ou,"__esModule",{value:!0}),ou.default=void 0,ou.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),ou)),f=Ae((lu||(lu=1,Object.defineProperty(cu,"__esModule",{value:!0}),cu.default=void 0,cu.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),cu)),y=Ae((pu||(pu=1,Object.defineProperty(uu,"__esModule",{value:!0}),uu.default=void 0,uu.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),uu)),v=Ae((du||(du=1,Object.defineProperty(hu,"__esModule",{value:!0}),hu.default=void 0,hu.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]}),hu)),g=Ae((mu||(mu=1,Object.defineProperty(fu,"__esModule",{value:!0}),fu.default=void 0,fu.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]}),fu)),b=Ae((yu||(yu=1,Object.defineProperty(vu,"__esModule",{value:!0}),vu.default=void 0,vu.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]}),vu)),_=Ae((gu||(gu=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.default=void 0,bu.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),bu)),x=Ae((_u||(_u=1,Object.defineProperty(xu,"__esModule",{value:!0}),xu.default=void 0,xu.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]}),xu)),C=Ae((Cu||(Cu=1,Object.defineProperty(wu,"__esModule",{value:!0}),wu.default=void 0,wu.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),wu)),w=Ae((ku||(ku=1,Object.defineProperty(Su,"__esModule",{value:!0}),Su.default=void 0,Su.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Su)),k=Ae((Pu||(Pu=1,Object.defineProperty(Eu,"__esModule",{value:!0}),Eu.default=void 0,Eu.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]}),Eu)),S=Ae((Tu||(Tu=1,Object.defineProperty(Au,"__esModule",{value:!0}),Au.default=void 0,Au.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]}),Au)),P=Ae(($u||($u=1,Object.defineProperty(Iu,"__esModule",{value:!0}),Iu.default=void 0,Iu.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]}),Iu)),E=Ae((Ru||(Ru=1,Object.defineProperty(qu,"__esModule",{value:!0}),qu.default=void 0,qu.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),qu)),T=Ae((Lu||(Lu=1,Object.defineProperty(Mu,"__esModule",{value:!0}),Mu.default=void 0,Mu.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]}),Mu)),A=Ae((Ou||(Ou=1,Object.defineProperty(Nu,"__esModule",{value:!0}),Nu.default=void 0,Nu.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Nu)),$=Ae((Du||(Du=1,Object.defineProperty(ju,"__esModule",{value:!0}),ju.default=void 0,ju.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),ju)),I=Ae((Bu||(Bu=1,Object.defineProperty(Fu,"__esModule",{value:!0}),Fu.default=void 0,Fu.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]}),Fu)),R=Ae((Vu||(Vu=1,Object.defineProperty(Hu,"__esModule",{value:!0}),Hu.default=void 0,Hu.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]}),Hu)),q=Ae((Uu||(Uu=1,Object.defineProperty(zu,"__esModule",{value:!0}),zu.default=void 0,zu.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]}),zu)),L=Ae((Wu||(Wu=1,Object.defineProperty(Gu,"__esModule",{value:!0}),Gu.default=void 0,Gu.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Gu)),M=Ae((Ku||(Ku=1,Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.default=void 0,Xu.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Xu)),O=Ae((Qu||(Qu=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.default=void 0,Yu.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Yu)),N=Ae((Ju||(Ju=1,Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.default=void 0,Zu.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Zu)),D=Ae((ed||(ed=1,Object.defineProperty(td,"__esModule",{value:!0}),td.default=void 0,td.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),td)),j=Ae((nd||(nd=1,Object.defineProperty(sd,"__esModule",{value:!0}),sd.default=void 0,sd.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),sd)),B=Ae((rd||(rd=1,Object.defineProperty(ad,"__esModule",{value:!0}),ad.default=void 0,ad.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]}),ad)),F=Ae((id||(id=1,Object.defineProperty(od,"__esModule",{value:!0}),od.default=void 0,od.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]}),od)),V=Ae((ld||(ld=1,Object.defineProperty(cd,"__esModule",{value:!0}),cd.default=void 0,cd.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]}),cd)),H=Ae((pd||(pd=1,Object.defineProperty(ud,"__esModule",{value:!0}),ud.default=void 0,ud.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]}),ud)),U=Ae((dd||(dd=1,Object.defineProperty(hd,"__esModule",{value:!0}),hd.default=void 0,hd.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]}),hd)),z=Ae((md||(md=1,Object.defineProperty(fd,"__esModule",{value:!0}),fd.default=void 0,fd.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]}),fd)),W=Ae((yd||(yd=1,Object.defineProperty(vd,"__esModule",{value:!0}),vd.default=void 0,vd.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),vd)),G=Ae((gd||(gd=1,Object.defineProperty(bd,"__esModule",{value:!0}),bd.default=void 0,bd.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]}),bd)),K=Ae((_d||(_d=1,Object.defineProperty(xd,"__esModule",{value:!0}),xd.default=void 0,xd.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),xd)),X=Ae((Cd||(Cd=1,Object.defineProperty(wd,"__esModule",{value:!0}),wd.default=void 0,wd.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]}),wd)),Q=Ae((kd||(kd=1,Object.defineProperty(Sd,"__esModule",{value:!0}),Sd.default=void 0,Sd.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Sd)),Y=Ae((Pd||(Pd=1,Object.defineProperty(Ed,"__esModule",{value:!0}),Ed.default=void 0,Ed.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]}),Ed)),J=Ae((Td||(Td=1,Object.defineProperty(Ad,"__esModule",{value:!0}),Ad.default=void 0,Ad.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]}),Ad)),Z=Ae(($d||($d=1,Object.defineProperty(Id,"__esModule",{value:!0}),Id.default=void 0,Id.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]}),Id)),ee=Ae((Rd||(Rd=1,Object.defineProperty(qd,"__esModule",{value:!0}),qd.default=void 0,qd.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]}),qd)),te=Ae((Ld||(Ld=1,Object.defineProperty(Md,"__esModule",{value:!0}),Md.default=void 0,Md.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Md)),ne=Ae((Od||(Od=1,Object.defineProperty(Nd,"__esModule",{value:!0}),Nd.default=void 0,Nd.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]}),Nd)),se=Ae((Dd||(Dd=1,Object.defineProperty(jd,"__esModule",{value:!0}),jd.default=void 0,jd.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]}),jd)),re=Ae((Bd||(Bd=1,Object.defineProperty(Fd,"__esModule",{value:!0}),Fd.default=void 0,Fd.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]}),Fd)),ae=Ae((Vd||(Vd=1,Object.defineProperty(Hd,"__esModule",{value:!0}),Hd.default=void 0,Hd.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]}),Hd)),ie=Ae((Ud||(Ud=1,Object.defineProperty(zd,"__esModule",{value:!0}),zd.default=void 0,zd.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),zd)),oe=Ae((Wd||(Wd=1,Object.defineProperty(Gd,"__esModule",{value:!0}),Gd.default=void 0,Gd.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]}),Gd)),le=Ae((Kd||(Kd=1,Object.defineProperty(Xd,"__esModule",{value:!0}),Xd.default=void 0,Xd.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]}),Xd)),ce=Ae((Qd||(Qd=1,Object.defineProperty(Yd,"__esModule",{value:!0}),Yd.default=void 0,Yd.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]}),Yd)),pe=Ae((Jd||(Jd=1,Object.defineProperty(Zd,"__esModule",{value:!0}),Zd.default=void 0,Zd.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]}),Zd)),ue=Ae((eh||(eh=1,Object.defineProperty(th,"__esModule",{value:!0}),th.default=void 0,th.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),th)),de=Ae((nh||(nh=1,Object.defineProperty(sh,"__esModule",{value:!0}),sh.default=void 0,sh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),sh)),he=Ae((rh||(rh=1,Object.defineProperty(ah,"__esModule",{value:!0}),ah.default=void 0,ah.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),ah)),me=Ae((ih||(ih=1,Object.defineProperty(oh,"__esModule",{value:!0}),oh.default=void 0,oh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),oh)),fe=Ae((lh||(lh=1,Object.defineProperty(ch,"__esModule",{value:!0}),ch.default=void 0,ch.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]}),ch)),ye=Ae((ph||(ph=1,Object.defineProperty(uh,"__esModule",{value:!0}),uh.default=void 0,uh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]}),uh)),ve=Ae((dh||(dh=1,Object.defineProperty(hh,"__esModule",{value:!0}),hh.default=void 0,hh.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]}),hh)),ge=Ae((mh||(mh=1,Object.defineProperty(fh,"__esModule",{value:!0}),fh.default=void 0,fh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]}),fh)),be=Ae((yh||(yh=1,Object.defineProperty(vh,"__esModule",{value:!0}),vh.default=void 0,vh.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),vh)),_e=Ae((gh||(gh=1,Object.defineProperty(bh,"__esModule",{value:!0}),bh.default=void 0,bh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),bh)),xe=Ae((_h||(_h=1,Object.defineProperty(xh,"__esModule",{value:!0}),xh.default=void 0,xh.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]}),xh)),Ce=Ae((Ch||(Ch=1,Object.defineProperty(wh,"__esModule",{value:!0}),wh.default=void 0,wh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),wh)),we=Ae((kh||(kh=1,Object.defineProperty(Sh,"__esModule",{value:!0}),Sh.default=void 0,Sh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]}),Sh)),ke=Ae((Ph||(Ph=1,Object.defineProperty(Eh,"__esModule",{value:!0}),Eh.default=void 0,Eh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]}),Eh)),Se=Ae((Th||(Th=1,Object.defineProperty(Ah,"__esModule",{value:!0}),Ah.default=void 0,Ah.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Ah)),Pe=Ae(($h||($h=1,Object.defineProperty(Ih,"__esModule",{value:!0}),Ih.default=void 0,Ih.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]}),Ih)),Ee=Ae((Rh||(Rh=1,Object.defineProperty(qh,"__esModule",{value:!0}),qh.default=void 0,qh.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]}),qh)),Te=Ae((Lh||(Lh=1,Object.defineProperty(Oh,"__esModule",{value:!0}),Oh.default=void 0,Oh.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]}),Oh));function Ae(e){return e&&e.__esModule?e:{default:e}}var $e=[["alert",e.default],["alertdialog",t.default],["application",n.default],["article",s.default],["banner",r.default],["blockquote",a.default],["button",i.default],["caption",o.default],["cell",l.default],["checkbox",c.default],["code",p.default],["columnheader",u.default],["combobox",d.default],["complementary",h.default],["contentinfo",m.default],["definition",f.default],["deletion",y.default],["dialog",v.default],["directory",g.default],["document",b.default],["emphasis",_.default],["feed",x.default],["figure",C.default],["form",w.default],["generic",k.default],["grid",S.default],["gridcell",P.default],["group",E.default],["heading",T.default],["img",A.default],["insertion",$.default],["link",I.default],["list",R.default],["listbox",q.default],["listitem",L.default],["log",M.default],["main",O.default],["mark",N.default],["marquee",D.default],["math",j.default],["menu",B.default],["menubar",F.default],["menuitem",V.default],["menuitemcheckbox",H.default],["menuitemradio",U.default],["meter",z.default],["navigation",W.default],["none",G.default],["note",K.default],["option",X.default],["paragraph",Q.default],["presentation",Y.default],["progressbar",J.default],["radio",Z.default],["radiogroup",ee.default],["region",te.default],["row",ne.default],["rowgroup",se.default],["rowheader",re.default],["scrollbar",ae.default],["search",ie.default],["searchbox",oe.default],["separator",le.default],["slider",ce.default],["spinbutton",pe.default],["status",ue.default],["strong",de.default],["subscript",he.default],["superscript",me.default],["switch",fe.default],["tab",ye.default],["table",ve.default],["tablist",ge.default],["tabpanel",be.default],["term",_e.default],["textbox",xe.default],["time",Ce.default],["timer",we.default],["toolbar",ke.default],["tooltip",Se.default],["tree",Pe.default],["treegrid",Ee.default],["treeitem",Te.default]];return Rp.default=$e,Rp}var Dh,jh={},Bh={};var Fh,Vh={};var Hh,Uh={};var zh,Wh={};var Gh,Kh={};var Xh,Qh={};var Yh,Jh={};var Zh,em={};var tm,nm={};var sm,rm={};var am,im={};var om,lm={};var cm,pm={};var um,dm={};var hm,mm={};var fm,ym={};var vm,gm={};var bm,_m={};var xm,Cm={};var wm,km={};var Sm,Pm={};var Em,Tm={};var Am,$m={};var Im,Rm={};var qm,Lm={};var Mm,Om={};var Nm,Dm={};var jm,Bm={};var Fm,Vm={};var Hm,Um={};var zm,Wm={};var Gm,Km={};var Xm,Qm={};var Ym,Jm={};var Zm,ef={};var tf,nf={};var sf,rf={};var af,of={};var lf,cf={};var pf,uf={};var df,hf,mf={};function ff(){if(hf)return jh;hf=1,Object.defineProperty(jh,"__esModule",{value:!0}),jh.default=void 0;var e=F((Dh||(Dh=1,Object.defineProperty(Bh,"__esModule",{value:!0}),Bh.default=void 0,Bh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Bh)),t=F((Fh||(Fh=1,Object.defineProperty(Vh,"__esModule",{value:!0}),Vh.default=void 0,Vh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Vh)),n=F((Hh||(Hh=1,Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.default=void 0,Uh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Uh)),s=F((zh||(zh=1,Object.defineProperty(Wh,"__esModule",{value:!0}),Wh.default=void 0,Wh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Wh)),r=F((Gh||(Gh=1,Object.defineProperty(Kh,"__esModule",{value:!0}),Kh.default=void 0,Kh.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]}),Kh)),a=F((Xh||(Xh=1,Object.defineProperty(Qh,"__esModule",{value:!0}),Qh.default=void 0,Qh.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]}),Qh)),i=F((Yh||(Yh=1,Object.defineProperty(Jh,"__esModule",{value:!0}),Jh.default=void 0,Jh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Jh)),o=F((Zh||(Zh=1,Object.defineProperty(em,"__esModule",{value:!0}),em.default=void 0,em.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]}),em)),l=F((tm||(tm=1,Object.defineProperty(nm,"__esModule",{value:!0}),nm.default=void 0,nm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),nm)),c=F((sm||(sm=1,Object.defineProperty(rm,"__esModule",{value:!0}),rm.default=void 0,rm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),rm)),p=F((am||(am=1,Object.defineProperty(im,"__esModule",{value:!0}),im.default=void 0,im.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),im)),u=F((om||(om=1,Object.defineProperty(lm,"__esModule",{value:!0}),lm.default=void 0,lm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]}),lm)),d=F((cm||(cm=1,Object.defineProperty(pm,"__esModule",{value:!0}),pm.default=void 0,pm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),pm)),h=F((um||(um=1,Object.defineProperty(dm,"__esModule",{value:!0}),dm.default=void 0,dm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),dm)),m=F((hm||(hm=1,Object.defineProperty(mm,"__esModule",{value:!0}),mm.default=void 0,mm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),mm)),f=F((fm||(fm=1,Object.defineProperty(ym,"__esModule",{value:!0}),ym.default=void 0,ym.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]}),ym)),y=F((vm||(vm=1,Object.defineProperty(gm,"__esModule",{value:!0}),gm.default=void 0,gm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),gm)),v=F((bm||(bm=1,Object.defineProperty(_m,"__esModule",{value:!0}),_m.default=void 0,_m.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),_m)),g=F((xm||(xm=1,Object.defineProperty(Cm,"__esModule",{value:!0}),Cm.default=void 0,Cm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Cm)),b=F((wm||(wm=1,Object.defineProperty(km,"__esModule",{value:!0}),km.default=void 0,km.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),km)),_=F((Sm||(Sm=1,Object.defineProperty(Pm,"__esModule",{value:!0}),Pm.default=void 0,Pm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Pm)),x=F((Em||(Em=1,Object.defineProperty(Tm,"__esModule",{value:!0}),Tm.default=void 0,Tm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Tm)),C=F((Am||(Am=1,Object.defineProperty($m,"__esModule",{value:!0}),$m.default=void 0,$m.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),$m)),w=F((Im||(Im=1,Object.defineProperty(Rm,"__esModule",{value:!0}),Rm.default=void 0,Rm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Rm)),k=F((qm||(qm=1,Object.defineProperty(Lm,"__esModule",{value:!0}),Lm.default=void 0,Lm.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]}),Lm)),S=F((Mm||(Mm=1,Object.defineProperty(Om,"__esModule",{value:!0}),Om.default=void 0,Om.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]}),Om)),P=F((Nm||(Nm=1,Object.defineProperty(Dm,"__esModule",{value:!0}),Dm.default=void 0,Dm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Dm)),E=F((jm||(jm=1,Object.defineProperty(Bm,"__esModule",{value:!0}),Bm.default=void 0,Bm.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]}),Bm)),T=F((Fm||(Fm=1,Object.defineProperty(Vm,"__esModule",{value:!0}),Vm.default=void 0,Vm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]}),Vm)),A=F((Hm||(Hm=1,Object.defineProperty(Um,"__esModule",{value:!0}),Um.default=void 0,Um.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]}),Um)),$=F((zm||(zm=1,Object.defineProperty(Wm,"__esModule",{value:!0}),Wm.default=void 0,Wm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Wm)),I=F((Gm||(Gm=1,Object.defineProperty(Km,"__esModule",{value:!0}),Km.default=void 0,Km.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Km)),R=F((Xm||(Xm=1,Object.defineProperty(Qm,"__esModule",{value:!0}),Qm.default=void 0,Qm.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]}),Qm)),q=F((Ym||(Ym=1,Object.defineProperty(Jm,"__esModule",{value:!0}),Jm.default=void 0,Jm.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Jm)),L=F((Zm||(Zm=1,Object.defineProperty(ef,"__esModule",{value:!0}),ef.default=void 0,ef.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),ef)),M=F((tf||(tf=1,Object.defineProperty(nf,"__esModule",{value:!0}),nf.default=void 0,nf.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),nf)),O=F((sf||(sf=1,Object.defineProperty(rf,"__esModule",{value:!0}),rf.default=void 0,rf.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]}),rf)),N=F((af||(af=1,Object.defineProperty(of,"__esModule",{value:!0}),of.default=void 0,of.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),of)),D=F((lf||(lf=1,Object.defineProperty(cf,"__esModule",{value:!0}),cf.default=void 0,cf.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]}),cf)),j=F((pf||(pf=1,Object.defineProperty(uf,"__esModule",{value:!0}),uf.default=void 0,uf.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]}),uf)),B=F((df||(df=1,Object.defineProperty(mf,"__esModule",{value:!0}),mf.default=void 0,mf.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]}),mf));function F(e){return e&&e.__esModule?e:{default:e}}var V=[["doc-abstract",e.default],["doc-acknowledgments",t.default],["doc-afterword",n.default],["doc-appendix",s.default],["doc-backlink",r.default],["doc-biblioentry",a.default],["doc-bibliography",i.default],["doc-biblioref",o.default],["doc-chapter",l.default],["doc-colophon",c.default],["doc-conclusion",p.default],["doc-cover",u.default],["doc-credit",d.default],["doc-credits",h.default],["doc-dedication",m.default],["doc-endnote",f.default],["doc-endnotes",y.default],["doc-epigraph",v.default],["doc-epilogue",g.default],["doc-errata",b.default],["doc-example",_.default],["doc-footnote",x.default],["doc-foreword",C.default],["doc-glossary",w.default],["doc-glossref",k.default],["doc-index",S.default],["doc-introduction",P.default],["doc-noteref",E.default],["doc-notice",T.default],["doc-pagebreak",A.default],["doc-pagefooter",$.default],["doc-pageheader",I.default],["doc-pagelist",R.default],["doc-part",q.default],["doc-preface",L.default],["doc-prologue",M.default],["doc-pullquote",O.default],["doc-qna",N.default],["doc-subtitle",D.default],["doc-tip",j.default],["doc-toc",B.default]];return jh.default=V,jh}var yf,vf={},gf={};var bf,_f={};var xf,Cf,wf,kf={};function Sf(){if(Cf)return vf;Cf=1,Object.defineProperty(vf,"__esModule",{value:!0}),vf.default=void 0;var e=s((yf||(yf=1,Object.defineProperty(gf,"__esModule",{value:!0}),gf.default=void 0,gf.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]}),gf)),t=s((bf||(bf=1,Object.defineProperty(_f,"__esModule",{value:!0}),_f.default=void 0,_f.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]}),_f)),n=s((xf||(xf=1,Object.defineProperty(kf,"__esModule",{value:!0}),kf.default=void 0,kf.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]}),kf));function s(e){return e&&e.__esModule?e:{default:e}}var r=[["graphics-document",e.default],["graphics-object",t.default],["graphics-symbol",n.default]];return vf.default=r,vf}function Pf(){if(wf)return rp;function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}wf=1,Object.defineProperty(rp,"__esModule",{value:!0}),rp.default=void 0;var t=i($p()),n=i(Nh()),s=i(ff()),r=i(Sf()),a=i(Jc());function i(e){return e&&e.__esModule?e:{default:e}}function o(t,n,s){return(n=function(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var r=s.call(t,n||"default");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[n]=s,t}function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=p(e))||t){n&&(e=n);var s=0,r=function(){};return{s:r,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(o)throw a}}}}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var s,r,a,i,o=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(s=a.call(n)).done)&&(o.push(s.value),o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return o}}(e,t)||p(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}var d=[].concat(t.default,n.default,s.default,r.default);d.forEach((function(e){var t,n=c(e,2)[1],s=l(n.superClass);try{for(s.s();!(t=s.n()).done;){var r,a=l(t.value);try{var i=function(){var e=r.value,t=d.find((function(t){return c(t,1)[0]===e}));if(t)for(var s=t[1],a=0,i=Object.keys(s.props);a<i.length;a++){var l=i[a];Object.prototype.hasOwnProperty.call(n.props,l)||Object.assign(n.props,o({},l,s.props[l]))}};for(a.s();!(r=a.n()).done;)i()}catch(e){a.e(e)}finally{a.f()}}}catch(e){s.e(e)}finally{s.f()}}));var h={entries:function(){return d},forEach:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=l(d);try{for(s.s();!(t=s.n()).done;){var r=c(t.value,2),a=r[0],i=r[1];e.call(n,i,a,d)}}catch(e){s.e(e)}finally{s.f()}},get:function(e){var t=d.find((function(t){return t[0]===e}));return t&&t[1]},has:function(e){return!!h.get(e)},keys:function(){return d.map((function(e){return c(e,1)[0]}))},values:function(){return d.map((function(e){return c(e,2)[1]}))}};return rp.default=(0,a.default)(h,h.entries()),rp}var Ef,Tf={};function Af(){if(Ef)return Tf;Ef=1,Object.defineProperty(Tf,"__esModule",{value:!0}),Tf.default=void 0;var e=n(Jc()),t=n(Pf());function n(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var s,r,a,i,o=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(s=a.call(n)).done)&&(o.push(s.value),o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}for(var a=[],i=t.default.keys(),o=0;o<i.length;o++){var l=i[o],c=t.default.get(l);if(c)for(var p=[].concat(c.baseConcepts,c.relatedConcepts),u=0;u<p.length;u++){var d=p[u];"HTML"===d.module&&function(){var e=d.concept;if(e){var t,n=a.find((function(t){return n=t[0],s=e,n.name===s.name&&function(e,t){if(void 0===e&&void 0!==t)return!1;if(void 0!==e&&void 0===t)return!1;if(void 0!==e&&void 0!==t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1}return!0}(n.constraints,s.constraints)&&m(n.attributes,s.attributes);var n,s}));t=n?n[1]:[];for(var s=!0,r=0;r<t.length;r++)if(t[r]===l){s=!1;break}s&&t.push(l),n||a.push([e,t])}}()}}var h={entries:function(){return a},forEach:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=0,r=a;n<r.length;n++){var i=s(r[n],2),o=i[0],l=i[1];e.call(t,l,o,a)}},get:function(e){var t=a.find((function(t){return e.name===t[0].name&&m(e.attributes,t[0].attributes)}));return t&&t[1]},has:function(e){return!!h.get(e)},keys:function(){return a.map((function(e){return s(e,1)[0]}))},values:function(){return a.map((function(e){return s(e,2)[1]}))}};function m(e,t){if(void 0===e&&void 0!==t)return!1;if(void 0!==e&&void 0===t)return!1;if(void 0!==e&&void 0!==t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){if(e[n].name!==t[n].name||e[n].value!==t[n].value)return!1;if(void 0===e[n].constraints&&void 0!==t[n].constraints)return!1;if(void 0!==e[n].constraints&&void 0===t[n].constraints)return!1;if(void 0!==e[n].constraints&&void 0!==t[n].constraints){if(e[n].constraints.length!==t[n].constraints.length)return!1;for(var s=0;s<e[n].constraints.length;s++)if(e[n].constraints[s]!==t[n].constraints[s])return!1}}}return!0}return Tf.default=(0,e.default)(h,h.entries()),Tf}var $f,If,Rf={};function qf(){if($f)return Rf;$f=1,Object.defineProperty(Rf,"__esModule",{value:!0}),Rf.default=void 0;var e=n(Jc()),t=n(Pf());function n(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var s,r,a,i,o=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(s=a.call(n)).done)&&(o.push(s.value),o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}for(var a=[],i=t.default.keys(),o=0;o<i.length;o++){var l=i[o],c=t.default.get(l),p=[];if(c){for(var u=[].concat(c.baseConcepts,c.relatedConcepts),d=0;d<u.length;d++){var h=u[d];if("HTML"===h.module){var m=h.concept;null!=m&&p.push(m)}}p.length>0&&a.push([l,p])}}var f={entries:function(){return a},forEach:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=0,r=a;n<r.length;n++){var i=s(r[n],2),o=i[0],l=i[1];e.call(t,l,o,a)}},get:function(e){var t=a.find((function(t){return t[0]===e}));return t&&t[1]},has:function(e){return!!f.get(e)},keys:function(){return a.map((function(e){return s(e,1)[0]}))},values:function(){return a.map((function(e){return s(e,2)[1]}))}};return Rf.default=(0,e.default)(f,f.entries()),Rf}var Lf,Mf,Of=function(){if(If)return Kc;If=1,Object.defineProperty(Kc,"__esModule",{value:!0}),Kc.roles=Kc.roleElements=Kc.elementRoles=Kc.dom=Kc.aria=void 0;var e=a(Zc()),t=a(np()),n=a(Pf()),s=a(Af()),r=a(qf());function a(e){return e&&e.__esModule?e:{default:e}}return Kc.aria=e.default,Kc.dom=t.default,Kc.roles=n.default,Kc.elementRoles=s.default,Kc.roleElements=r.default,Kc}(),Nf={},Df={},jf={},Bf={};function Ff(){if(Mf)return jf;Mf=1,Object.defineProperty(jf,"__esModule",{value:!0}),jf.default=function(e,s){"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)&&Object.defineProperty(e,Symbol.iterator,{value:t.default.bind(s)});return e};var e,t=(e=function(){if(Lf)return Bf;Lf=1,Object.defineProperty(Bf,"__esModule",{value:!0}),Bf.default=void 0;var e=function(){var e=this,t=0,n={"@@iterator":function(){return n},next:function(){if(t<e.length){var n=e[t];return t+=1,{done:!1,value:n}}return{done:!0}}};return n};return Bf.default=e,Bf}())&&e.__esModule?e:{default:e};function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}return jf}var Vf,Hf={},Uf={};var zf,Wf={};var Gf,Kf={};var Xf,Qf={};var Yf,Jf={};var Zf,ey={};var ty,ny={};var sy,ry={};var ay,iy={};var oy,ly={};var cy,py={};var uy,dy={};var hy,my={};var fy,yy={};var vy,gy={};var by,_y={};var xy,Cy={};var wy,ky={};var Sy,Py={};var Ey,Ty={};var Ay,$y={};var Iy,Ry={};var qy,Ly={};var My,Oy={};var Ny,Dy={};var jy,By={};var Fy,Vy={};var Hy,Uy={};var zy,Wy={};var Gy,Ky={};var Xy,Qy={};var Yy,Jy={};var Zy,ev={};var tv,nv={};var sv,rv={};var av,iv={};var ov,lv={};var cv,pv={};var uv,dv={};var hv,mv={};var fv,yv={};var vv,gv={};var bv,_v={};var xv,Cv={};var wv,kv={};var Sv,Pv={};var Ev,Tv={};var Av,$v={};var Iv,Rv={};var qv,Lv={};var Mv,Ov={};var Nv,Dv={};var jv,Bv={};var Fv,Vv={};var Hv,Uv={};var zv,Wv={};var Gv,Kv={};var Xv,Qv={};var Yv,Jv={};var Zv,eg={};var tg,ng={};var sg,rg={};var ag,ig={};var og,lg={};var cg,pg={};var ug,dg={};var hg,mg={};var fg,yg={};var vg,gg={};var bg,_g={};var xg,Cg={};var wg,kg={};var Sg,Pg={};var Eg,Tg={};var Ag,$g={};var Ig,Rg={};var qg,Lg={};var Mg,Og={};var Ng,Dg={};var jg,Bg={};var Fg,Vg={};var Hg,Ug={};var zg,Wg={};var Gg,Kg={};var Xg,Qg={};var Yg,Jg={};var Zg,eb={};var tb,nb={};var sb,rb={};var ab,ib={};var ob,lb={};var cb,pb={};var ub,db={};var hb,mb={};var fb,yb={};var vb,gb={};var bb,_b={};var xb,Cb={};var wb,kb={};var Sb,Pb={};var Eb,Tb={};var Ab,$b={};var Ib,Rb={};var qb,Lb={};var Mb,Ob={};var Nb,Db={};var jb,Bb={};var Fb,Vb={};var Hb,Ub={};var zb,Wb={};var Gb,Kb={};var Xb,Qb={};var Yb,Jb={};var Zb,e_={};var t_,n_={};var s_,r_={};var a_,i_={};var o_,l_={};var c_,p_={};var u_,d_={};var h_,m_={};var f_,y_={};var v_,g_={};var b_,__,x_,C_={};function w_(){if(__)return Hf;__=1,Object.defineProperty(Hf,"__esModule",{value:!0}),Hf.default=void 0;var e=vt(Ff()),t=vt(function(){if(Vf)return Uf;Vf=1,Object.defineProperty(Uf,"__esModule",{value:!0}),Uf.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"abbr"}}],type:"structure"};return Uf.default=e,Uf}()),n=vt(function(){if(zf)return Wf;zf=1,Object.defineProperty(Wf,"__esModule",{value:!0}),Wf.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"alertdialog"}}],type:"window"};return Wf.default=e,Wf}()),s=vt(function(){if(Gf)return Kf;Gf=1,Object.defineProperty(Kf,"__esModule",{value:!0}),Kf.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"alert"}}],type:"structure"};return Kf.default=e,Kf}()),r=vt(function(){if(Xf)return Qf;Xf=1,Object.defineProperty(Qf,"__esModule",{value:!0}),Qf.default=void 0;var e={relatedConcepts:[],type:"structure"};return Qf.default=e,Qf}()),a=vt(function(){if(Yf)return Jf;Yf=1,Object.defineProperty(Jf,"__esModule",{value:!0}),Jf.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"application"}}],type:"window"};return Jf.default=e,Jf}()),i=vt(function(){if(Zf)return ey;Zf=1,Object.defineProperty(ey,"__esModule",{value:!0}),ey.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"article"}},{module:"HTML",concept:{name:"article"}}],type:"structure"};return ey.default=e,ey}()),o=vt(function(){if(ty)return ny;ty=1,Object.defineProperty(ny,"__esModule",{value:!0}),ny.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"audio"}}],type:"widget"};return ny.default=e,ny}()),l=vt(function(){if(sy)return ry;sy=1,Object.defineProperty(ry,"__esModule",{value:!0}),ry.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"banner"}}],type:"structure"};return ry.default=e,ry}()),c=vt(function(){if(ay)return iy;ay=1,Object.defineProperty(iy,"__esModule",{value:!0}),iy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"blockquote"}}],type:"structure"};return iy.default=e,iy}()),p=vt(function(){if(oy)return ly;oy=1,Object.defineProperty(ly,"__esModule",{value:!0}),ly.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-busy",value:"true"}]}}],type:"widget"};return ly.default=e,ly}()),u=vt(function(){if(cy)return py;cy=1,Object.defineProperty(py,"__esModule",{value:!0}),py.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"button"}},{module:"HTML",concept:{name:"button"}}],type:"widget"};return py.default=e,py}()),d=vt(function(){if(uy)return dy;uy=1,Object.defineProperty(dy,"__esModule",{value:!0}),dy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"canvas"}}],type:"widget"};return dy.default=e,dy}()),h=vt(function(){if(hy)return my;hy=1,Object.defineProperty(my,"__esModule",{value:!0}),my.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"caption"}}],type:"structure"};return my.default=e,my}()),m=vt(function(){if(fy)return yy;fy=1,Object.defineProperty(yy,"__esModule",{value:!0}),yy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"cell"}},{module:"ARIA",concept:{name:"gridcell"}},{module:"HTML",concept:{name:"td"}}],type:"widget"};return yy.default=e,yy}()),f=vt(function(){if(vy)return gy;vy=1,Object.defineProperty(gy,"__esModule",{value:!0}),gy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"checkbox"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"checkbox"}]}}],type:"widget"};return gy.default=e,gy}()),y=vt(function(){if(by)return _y;by=1,Object.defineProperty(_y,"__esModule",{value:!0}),_y.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"color"}]}}],type:"widget"};return _y.default=e,_y}()),v=vt(function(){if(xy)return Cy;xy=1,Object.defineProperty(Cy,"__esModule",{value:!0}),Cy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"columnheader"}},{module:"HTML",concept:{name:"th"}}],type:"widget"};return Cy.default=e,Cy}()),g=vt(function(){if(wy)return ky;wy=1,Object.defineProperty(ky,"__esModule",{value:!0}),ky.default=void 0;var e={relatedConcepts:[],type:"structure"};return ky.default=e,ky}()),b=vt(function(){if(Sy)return Py;Sy=1,Object.defineProperty(Py,"__esModule",{value:!0}),Py.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"combobox"}},{module:"HTML",concept:{name:"select"}}],type:"widget"};return Py.default=e,Py}()),_=vt(function(){if(Ey)return Ty;Ey=1,Object.defineProperty(Ty,"__esModule",{value:!0}),Ty.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"complementary"}}],type:"structure"};return Ty.default=e,Ty}()),x=vt(function(){if(Ay)return $y;Ay=1,Object.defineProperty($y,"__esModule",{value:!0}),$y.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"structureinfo"}}],type:"structure"};return $y.default=e,$y}()),C=vt(function(){if(Iy)return Ry;Iy=1,Object.defineProperty(Ry,"__esModule",{value:!0}),Ry.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"date"}]}}],type:"widget"};return Ry.default=e,Ry}()),w=vt(function(){if(qy)return Ly;qy=1,Object.defineProperty(Ly,"__esModule",{value:!0}),Ly.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"datetime"}]}}],type:"widget"};return Ly.default=e,Ly}()),k=vt(function(){if(My)return Oy;My=1,Object.defineProperty(Oy,"__esModule",{value:!0}),Oy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"dfn"}}],type:"structure"};return Oy.default=e,Oy}()),S=vt(function(){if(Ny)return Dy;Ny=1,Object.defineProperty(Dy,"__esModule",{value:!0}),Dy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"dd"}}],type:"structure"};return Dy.default=e,Dy}()),P=vt(function(){if(jy)return By;jy=1,Object.defineProperty(By,"__esModule",{value:!0}),By.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"dl"}}],type:"structure"};return By.default=e,By}()),E=vt(function(){if(Fy)return Vy;Fy=1,Object.defineProperty(Vy,"__esModule",{value:!0}),Vy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"dt"}}],type:"structure"};return Vy.default=e,Vy}()),T=vt(function(){if(Hy)return Uy;Hy=1,Object.defineProperty(Uy,"__esModule",{value:!0}),Uy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"details"}}],type:"structure"};return Uy.default=e,Uy}()),A=vt(function(){if(zy)return Wy;zy=1,Object.defineProperty(Wy,"__esModule",{value:!0}),Wy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"dialog"}},{module:"HTML",concept:{name:"dialog"}}],type:"window"};return Wy.default=e,Wy}()),$=vt(function(){if(Gy)return Ky;Gy=1,Object.defineProperty(Ky,"__esModule",{value:!0}),Ky.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"directory"}},{module:"HTML",concept:{name:"dir"}}],type:"structure"};return Ky.default=e,Ky}()),I=vt(function(){if(Xy)return Qy;Xy=1,Object.defineProperty(Qy,"__esModule",{value:!0}),Qy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{constraints:["scoped to a details element"],name:"summary"}}],type:"widget"};return Qy.default=e,Qy}()),R=vt(function(){if(Yy)return Jy;Yy=1,Object.defineProperty(Jy,"__esModule",{value:!0}),Jy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"div"}}],type:"generic"};return Jy.default=e,Jy}()),q=vt(function(){if(Zy)return ev;Zy=1,Object.defineProperty(ev,"__esModule",{value:!0}),ev.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"document"}}],type:"structure"};return ev.default=e,ev}()),L=vt(function(){if(tv)return nv;tv=1,Object.defineProperty(nv,"__esModule",{value:!0}),nv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"embed"}}],type:"widget"};return nv.default=e,nv}()),M=vt(function(){if(sv)return rv;sv=1,Object.defineProperty(rv,"__esModule",{value:!0}),rv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"feed"}}],type:"structure"};return rv.default=e,rv}()),O=vt(function(){if(av)return iv;av=1,Object.defineProperty(iv,"__esModule",{value:!0}),iv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"figcaption"}}],type:"structure"};return iv.default=e,iv}()),N=vt(function(){if(ov)return lv;ov=1,Object.defineProperty(lv,"__esModule",{value:!0}),lv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"figure"}},{module:"HTML",concept:{name:"figure"}}],type:"structure"};return lv.default=e,lv}()),D=vt(function(){if(cv)return pv;cv=1,Object.defineProperty(pv,"__esModule",{value:!0}),pv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"footer"}}],type:"structure"};return pv.default=e,pv}()),j=vt(function(){if(uv)return dv;uv=1,Object.defineProperty(dv,"__esModule",{value:!0}),dv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"form"}},{module:"HTML",concept:{name:"form"}}],type:"structure"};return dv.default=e,dv}()),B=vt(function(){if(hv)return mv;hv=1,Object.defineProperty(mv,"__esModule",{value:!0}),mv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"grid"}}],type:"widget"};return mv.default=e,mv}()),F=vt(function(){if(fv)return yv;fv=1,Object.defineProperty(yv,"__esModule",{value:!0}),yv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"group"}}],type:"structure"};return yv.default=e,yv}()),V=vt(function(){if(vv)return gv;vv=1,Object.defineProperty(gv,"__esModule",{value:!0}),gv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"heading"}},{module:"HTML",concept:{name:"h1"}},{module:"HTML",concept:{name:"h2"}},{module:"HTML",concept:{name:"h3"}},{module:"HTML",concept:{name:"h4"}},{module:"HTML",concept:{name:"h5"}},{module:"HTML",concept:{name:"h6"}}],type:"structure"};return gv.default=e,gv}()),H=vt(function(){if(bv)return _v;bv=1,Object.defineProperty(_v,"__esModule",{value:!0}),_v.default=void 0;var e={relatedConcepts:[],type:"window"};return _v.default=e,_v}()),U=vt(function(){if(xv)return Cv;xv=1,Object.defineProperty(Cv,"__esModule",{value:!0}),Cv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"iframe"}}],type:"window"};return Cv.default=e,Cv}()),z=vt(function(){if(wv)return kv;wv=1,Object.defineProperty(kv,"__esModule",{value:!0}),kv.default=void 0;var e={relatedConcepts:[],type:"structure"};return kv.default=e,kv}()),W=vt(function(){if(Sv)return Pv;Sv=1,Object.defineProperty(Pv,"__esModule",{value:!0}),Pv.default=void 0;var e={relatedConcepts:[],type:"widget"};return Pv.default=e,Pv}()),G=vt(function(){if(Ev)return Tv;Ev=1,Object.defineProperty(Tv,"__esModule",{value:!0}),Tv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"img",attributes:[{name:"usemap"}]}}],type:"structure"};return Tv.default=e,Tv}()),K=vt(function(){if(Av)return $v;Av=1,Object.defineProperty($v,"__esModule",{value:!0}),$v.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"img"}},{module:"HTML",concept:{name:"img"}}],type:"structure"};return $v.default=e,$v}()),X=vt(function(){if(Iv)return Rv;Iv=1,Object.defineProperty(Rv,"__esModule",{value:!0}),Rv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input"}}],type:"widget"};return Rv.default=e,Rv}()),Q=vt(function(){if(qv)return Lv;qv=1,Object.defineProperty(Lv,"__esModule",{value:!0}),Lv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"time"}]}}],type:"widget"};return Lv.default=e,Lv}()),Y=vt(function(){if(Mv)return Ov;Mv=1,Object.defineProperty(Ov,"__esModule",{value:!0}),Ov.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"label"}}],type:"structure"};return Ov.default=e,Ov}()),J=vt(function(){if(Nv)return Dv;Nv=1,Object.defineProperty(Dv,"__esModule",{value:!0}),Dv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"legend"}}],type:"structure"};return Dv.default=e,Dv}()),Z=vt(function(){if(jv)return Bv;jv=1,Object.defineProperty(Bv,"__esModule",{value:!0}),Bv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"br"}}],type:"structure"};return Bv.default=e,Bv}()),ee=vt(function(){if(Fv)return Vv;Fv=1,Object.defineProperty(Vv,"__esModule",{value:!0}),Vv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"link"}},{module:"HTML",concept:{name:"a",attributes:[{name:"href"}]}}],type:"widget"};return Vv.default=e,Vv}()),te=vt(function(){if(Hv)return Uv;Hv=1,Object.defineProperty(Uv,"__esModule",{value:!0}),Uv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"option"}},{module:"HTML",concept:{name:"option"}}],type:"widget"};return Uv.default=e,Uv}()),ne=vt(function(){if(zv)return Wv;zv=1,Object.defineProperty(Wv,"__esModule",{value:!0}),Wv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"listbox"}},{module:"HTML",concept:{name:"datalist"}},{module:"HTML",concept:{name:"select"}}],type:"widget"};return Wv.default=e,Wv}()),se=vt(function(){if(Gv)return Kv;Gv=1,Object.defineProperty(Kv,"__esModule",{value:!0}),Kv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"listitem"}},{module:"HTML",concept:{name:"li"}}],type:"structure"};return Kv.default=e,Kv}()),re=vt(function(){if(Xv)return Qv;Xv=1,Object.defineProperty(Qv,"__esModule",{value:!0}),Qv.default=void 0;var e={relatedConcepts:[],type:"structure"};return Qv.default=e,Qv}()),ae=vt(function(){if(Yv)return Jv;Yv=1,Object.defineProperty(Jv,"__esModule",{value:!0}),Jv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"list"}},{module:"HTML",concept:{name:"ul"}},{module:"HTML",concept:{name:"ol"}}],type:"structure"};return Jv.default=e,Jv}()),ie=vt(function(){if(Zv)return eg;Zv=1,Object.defineProperty(eg,"__esModule",{value:!0}),eg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"log"}}],type:"structure"};return eg.default=e,eg}()),oe=vt(function(){if(tg)return ng;tg=1,Object.defineProperty(ng,"__esModule",{value:!0}),ng.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"main"}},{module:"HTML",concept:{name:"main"}}],type:"structure"};return ng.default=e,ng}()),le=vt(function(){if(sg)return rg;sg=1,Object.defineProperty(rg,"__esModule",{value:!0}),rg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"mark"}}],type:"structure"};return rg.default=e,rg}()),ce=vt(function(){if(ag)return ig;ag=1,Object.defineProperty(ig,"__esModule",{value:!0}),ig.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"marquee"}},{module:"HTML",concept:{name:"marquee"}}],type:"structure"};return ig.default=e,ig}()),pe=vt(function(){if(og)return lg;og=1,Object.defineProperty(lg,"__esModule",{value:!0}),lg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"math"}}],type:"structure"};return lg.default=e,lg}()),ue=vt(function(){if(cg)return pg;cg=1,Object.defineProperty(pg,"__esModule",{value:!0}),pg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"menubar"}}],type:"structure"};return pg.default=e,pg}()),de=vt(function(){if(ug)return dg;ug=1,Object.defineProperty(dg,"__esModule",{value:!0}),dg.default=void 0;var e={relatedConcepts:[],type:"widget"};return dg.default=e,dg}()),he=vt(function(){if(hg)return mg;hg=1,Object.defineProperty(mg,"__esModule",{value:!0}),mg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"menuitem"}},{module:"HTML",concept:{name:"menuitem"}}],type:"widget"};return mg.default=e,mg}()),me=vt(function(){if(fg)return yg;fg=1,Object.defineProperty(yg,"__esModule",{value:!0}),yg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"menuitemcheckbox"}}],type:"widget"};return yg.default=e,yg}()),fe=vt(function(){if(vg)return gg;vg=1,Object.defineProperty(gg,"__esModule",{value:!0}),gg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"menuitemradio"}}],type:"widget"};return gg.default=e,gg}()),ye=vt(function(){if(bg)return _g;bg=1,Object.defineProperty(_g,"__esModule",{value:!0}),_g.default=void 0;var e={relatedConcepts:[],type:"widget"};return _g.default=e,_g}()),ve=vt(function(){if(xg)return Cg;xg=1,Object.defineProperty(Cg,"__esModule",{value:!0}),Cg.default=void 0;var e={relatedConcepts:[],type:"widget"};return Cg.default=e,Cg}()),ge=vt(function(){if(wg)return kg;wg=1,Object.defineProperty(kg,"__esModule",{value:!0}),kg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"menu"}},{module:"HTML",concept:{name:"menu"}}],type:"structure"};return kg.default=e,kg}()),be=vt(function(){if(Sg)return Pg;Sg=1,Object.defineProperty(Pg,"__esModule",{value:!0}),Pg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"meter"}}],type:"structure"};return Pg.default=e,Pg}()),_e=vt(function(){if(Eg)return Tg;Eg=1,Object.defineProperty(Tg,"__esModule",{value:!0}),Tg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"navigation"}},{module:"HTML",concept:{name:"nav"}}],type:"structure"};return Tg.default=e,Tg}()),xe=vt(function(){if(Ag)return $g;Ag=1,Object.defineProperty($g,"__esModule",{value:!0}),$g.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"none"}}],type:"structure"};return $g.default=e,$g}()),Ce=vt(function(){if(Ig)return Rg;Ig=1,Object.defineProperty(Rg,"__esModule",{value:!0}),Rg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"note"}}],type:"structure"};return Rg.default=e,Rg}()),we=vt(function(){if(qg)return Lg;qg=1,Object.defineProperty(Lg,"__esModule",{value:!0}),Lg.default=void 0;var e={relatedConcepts:[],type:"structure"};return Lg.default=e,Lg}()),ke=vt(function(){if(Mg)return Og;Mg=1,Object.defineProperty(Og,"__esModule",{value:!0}),Og.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"p"}}],type:"structure"};return Og.default=e,Og}()),Se=vt(function(){if(Ng)return Dg;Ng=1,Object.defineProperty(Dg,"__esModule",{value:!0}),Dg.default=void 0;var e={relatedConcepts:[],type:"widget"};return Dg.default=e,Dg}()),Pe=vt(function(){if(jg)return Bg;jg=1,Object.defineProperty(Bg,"__esModule",{value:!0}),Bg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"pre"}}],type:"structure"};return Bg.default=e,Bg}()),Ee=vt(function(){if(Fg)return Vg;Fg=1,Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"presentation"}}],type:"structure"};return Vg.default=e,Vg}()),Te=vt(function(){if(Hg)return Ug;Hg=1,Object.defineProperty(Ug,"__esModule",{value:!0}),Ug.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"progressbar"}},{module:"HTML",concept:{name:"progress"}}],type:"structure"};return Ug.default=e,Ug}()),Ae=vt(function(){if(zg)return Wg;zg=1,Object.defineProperty(Wg,"__esModule",{value:!0}),Wg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"radio"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"radio"}]}}],type:"widget"};return Wg.default=e,Wg}()),$e=vt(function(){if(Gg)return Kg;Gg=1,Object.defineProperty(Kg,"__esModule",{value:!0}),Kg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"radiogroup"}}],type:"structure"};return Kg.default=e,Kg}()),Ie=vt(function(){if(Xg)return Qg;Xg=1,Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"region"}}],type:"structure"};return Qg.default=e,Qg}()),Re=vt(function(){if(Yg)return Jg;Yg=1,Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.default=void 0;var e={relatedConcepts:[],type:"structure"};return Jg.default=e,Jg}()),qe=vt(function(){if(Zg)return eb;Zg=1,Object.defineProperty(eb,"__esModule",{value:!0}),eb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"rowheader"}},{module:"HTML",concept:{name:"th",attributes:[{name:"scope",value:"row"}]}}],type:"widget"};return eb.default=e,eb}()),Le=vt(function(){if(tb)return nb;tb=1,Object.defineProperty(nb,"__esModule",{value:!0}),nb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"row"}},{module:"HTML",concept:{name:"tr"}}],type:"structure"};return nb.default=e,nb}()),Me=vt(function(){if(sb)return rb;sb=1,Object.defineProperty(rb,"__esModule",{value:!0}),rb.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"ruby"}}],type:"structure"};return rb.default=e,rb}()),Oe=vt(function(){if(ab)return ib;ab=1,Object.defineProperty(ib,"__esModule",{value:!0}),ib.default=void 0;var e={relatedConcepts:[],type:"structure"};return ib.default=e,ib}()),Ne=vt(function(){if(ob)return lb;ob=1,Object.defineProperty(lb,"__esModule",{value:!0}),lb.default=void 0;var e={relatedConcepts:[],type:"structure"};return lb.default=e,lb}()),De=vt(function(){if(cb)return pb;cb=1,Object.defineProperty(pb,"__esModule",{value:!0}),pb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"scrollbar"}}],type:"widget"};return pb.default=e,pb}()),je=vt(function(){if(ub)return db;ub=1,Object.defineProperty(db,"__esModule",{value:!0}),db.default=void 0;var e={relatedConcepts:[],type:"structure"};return db.default=e,db}()),Be=vt(function(){if(hb)return mb;hb=1,Object.defineProperty(mb,"__esModule",{value:!0}),mb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"search"}}],type:"structure"};return mb.default=e,mb}()),Fe=vt(function(){if(fb)return yb;fb=1,Object.defineProperty(yb,"__esModule",{value:!0}),yb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"searchbox"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"search"}]}}],type:"widget"};return yb.default=e,yb}()),Ve=vt(function(){if(vb)return gb;vb=1,Object.defineProperty(gb,"__esModule",{value:!0}),gb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"slider"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"range"}]}}],type:"widget"};return gb.default=e,gb}()),He=vt(function(){if(bb)return _b;bb=1,Object.defineProperty(_b,"__esModule",{value:!0}),_b.default=void 0;var e={relatedConcepts:[],type:"structure"};return _b.default=e,_b}()),Ue=vt(function(){if(xb)return Cb;xb=1,Object.defineProperty(Cb,"__esModule",{value:!0}),Cb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"spinbutton"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"number"}]}}],type:"widget"};return Cb.default=e,Cb}()),ze=vt(function(){if(wb)return kb;wb=1,Object.defineProperty(kb,"__esModule",{value:!0}),kb.default=void 0;var e={relatedConcepts:[],type:"structure"};return kb.default=e,kb}()),We=vt(function(){if(Sb)return Pb;Sb=1,Object.defineProperty(Pb,"__esModule",{value:!0}),Pb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"separator"}}],type:"widget"};return Pb.default=e,Pb}()),Ge=vt(function(){if(Eb)return Tb;Eb=1,Object.defineProperty(Tb,"__esModule",{value:!0}),Tb.default=void 0;var e={relatedConcepts:[],type:"structure"};return Tb.default=e,Tb}()),Ke=vt(function(){if(Ab)return $b;Ab=1,Object.defineProperty($b,"__esModule",{value:!0}),$b.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"status"}}],type:"structure"};return $b.default=e,$b}()),Xe=vt(function(){if(Ib)return Rb;Ib=1,Object.defineProperty(Rb,"__esModule",{value:!0}),Rb.default=void 0;var e={relatedConcepts:[],type:"structure"};return Rb.default=e,Rb}()),Qe=vt(function(){if(qb)return Lb;qb=1,Object.defineProperty(Lb,"__esModule",{value:!0}),Lb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"switch"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"checkbox"}]}}],type:"widget"};return Lb.default=e,Lb}()),Ye=vt(function(){if(Mb)return Ob;Mb=1,Object.defineProperty(Ob,"__esModule",{value:!0}),Ob.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tablist"}}],type:"structure"};return Ob.default=e,Ob}()),Je=vt(function(){if(Nb)return Db;Nb=1,Object.defineProperty(Db,"__esModule",{value:!0}),Db.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tab"}}],type:"widget"};return Db.default=e,Db}()),Ze=vt(function(){if(jb)return Bb;jb=1,Object.defineProperty(Bb,"__esModule",{value:!0}),Bb.default=void 0;var e={relatedConcepts:[],type:"structure"};return Bb.default=e,Bb}()),et=vt(function(){if(Fb)return Vb;Fb=1,Object.defineProperty(Vb,"__esModule",{value:!0}),Vb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"table"}},{module:"HTML",concept:{name:"table"}}],type:"structure"};return Vb.default=e,Vb}()),tt=vt(function(){if(Hb)return Ub;Hb=1,Object.defineProperty(Ub,"__esModule",{value:!0}),Ub.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tablist"}}],type:"structure"};return Ub.default=e,Ub}()),nt=vt(function(){if(zb)return Wb;zb=1,Object.defineProperty(Wb,"__esModule",{value:!0}),Wb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tabpanel"}}],type:"structure"};return Wb.default=e,Wb}()),st=vt(function(){if(Gb)return Kb;Gb=1,Object.defineProperty(Kb,"__esModule",{value:!0}),Kb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"term"}}],type:"structure"};return Kb.default=e,Kb}()),rt=vt(function(){if(Xb)return Qb;Xb=1,Object.defineProperty(Qb,"__esModule",{value:!0}),Qb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-multiline",value:"true"}],name:"textbox"}},{module:"HTML",concept:{name:"textarea"}}],type:"widget"};return Qb.default=e,Qb}()),at=vt(function(){if(Yb)return Jb;Yb=1,Object.defineProperty(Jb,"__esModule",{value:!0}),Jb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"textbox"}},{module:"HTML",concept:{name:"input"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"text"}]}}],type:"widget"};return Jb.default=e,Jb}()),it=vt(function(){if(Zb)return e_;Zb=1,Object.defineProperty(e_,"__esModule",{value:!0}),e_.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"time"}}],type:"structure"};return e_.default=e,e_}()),ot=vt(function(){if(t_)return n_;t_=1,Object.defineProperty(n_,"__esModule",{value:!0}),n_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"timer"}}],type:"structure"};return n_.default=e,n_}()),lt=vt(function(){if(s_)return r_;s_=1,Object.defineProperty(r_,"__esModule",{value:!0}),r_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-pressed"}]}}],type:"widget"};return r_.default=e,r_}()),ct=vt(function(){if(a_)return i_;a_=1,Object.defineProperty(i_,"__esModule",{value:!0}),i_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"toolbar"}}],type:"structure"};return i_.default=e,i_}()),pt=vt(function(){if(o_)return l_;o_=1,Object.defineProperty(l_,"__esModule",{value:!0}),l_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tree"}}],type:"widget"};return l_.default=e,l_}()),ut=vt(function(){if(c_)return p_;c_=1,Object.defineProperty(p_,"__esModule",{value:!0}),p_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"treegrid"}}],type:"widget"};return p_.default=e,p_}()),dt=vt(function(){if(u_)return d_;u_=1,Object.defineProperty(d_,"__esModule",{value:!0}),d_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"treeitem"}}],type:"widget"};return d_.default=e,d_}()),ht=vt(function(){if(h_)return m_;h_=1,Object.defineProperty(m_,"__esModule",{value:!0}),m_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tooltip"}}],type:"structure"};return m_.default=e,m_}()),mt=vt(function(){if(f_)return y_;f_=1,Object.defineProperty(y_,"__esModule",{value:!0}),y_.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"video"}}],type:"widget"};return y_.default=e,y_}()),ft=vt(function(){if(v_)return g_;v_=1,Object.defineProperty(g_,"__esModule",{value:!0}),g_.default=void 0;var e={relatedConcepts:[],type:"structure"};return g_.default=e,g_}()),yt=vt(function(){if(b_)return C_;b_=1,Object.defineProperty(C_,"__esModule",{value:!0}),C_.default=void 0;var e={relatedConcepts:[],type:"window"};return C_.default=e,C_}());function vt(e){return e&&e.__esModule?e:{default:e}}function gt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var s,r,a=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(a.push(s.value),!t||a.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return bt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}var _t=[["AbbrRole",t.default],["AlertDialogRole",n.default],["AlertRole",s.default],["AnnotationRole",r.default],["ApplicationRole",a.default],["ArticleRole",i.default],["AudioRole",o.default],["BannerRole",l.default],["BlockquoteRole",c.default],["BusyIndicatorRole",p.default],["ButtonRole",u.default],["CanvasRole",d.default],["CaptionRole",h.default],["CellRole",m.default],["CheckBoxRole",f.default],["ColorWellRole",y.default],["ColumnHeaderRole",v.default],["ColumnRole",g.default],["ComboBoxRole",b.default],["ComplementaryRole",_.default],["ContentInfoRole",x.default],["DateRole",C.default],["DateTimeRole",w.default],["DefinitionRole",k.default],["DescriptionListDetailRole",S.default],["DescriptionListRole",P.default],["DescriptionListTermRole",E.default],["DetailsRole",T.default],["DialogRole",A.default],["DirectoryRole",$.default],["DisclosureTriangleRole",I.default],["DivRole",R.default],["DocumentRole",q.default],["EmbeddedObjectRole",L.default],["FeedRole",M.default],["FigcaptionRole",O.default],["FigureRole",N.default],["FooterRole",D.default],["FormRole",j.default],["GridRole",B.default],["GroupRole",F.default],["HeadingRole",V.default],["IframePresentationalRole",H.default],["IframeRole",U.default],["IgnoredRole",z.default],["ImageMapLinkRole",W.default],["ImageMapRole",G.default],["ImageRole",K.default],["InlineTextBoxRole",X.default],["InputTimeRole",Q.default],["LabelRole",Y.default],["LegendRole",J.default],["LineBreakRole",Z.default],["LinkRole",ee.default],["ListBoxOptionRole",te.default],["ListBoxRole",ne.default],["ListItemRole",se.default],["ListMarkerRole",re.default],["ListRole",ae.default],["LogRole",ie.default],["MainRole",oe.default],["MarkRole",le.default],["MarqueeRole",ce.default],["MathRole",pe.default],["MenuBarRole",ue.default],["MenuButtonRole",de.default],["MenuItemRole",he.default],["MenuItemCheckBoxRole",me.default],["MenuItemRadioRole",fe.default],["MenuListOptionRole",ye.default],["MenuListPopupRole",ve.default],["MenuRole",ge.default],["MeterRole",be.default],["NavigationRole",_e.default],["NoneRole",xe.default],["NoteRole",Ce.default],["OutlineRole",we.default],["ParagraphRole",ke.default],["PopUpButtonRole",Se.default],["PreRole",Pe.default],["PresentationalRole",Ee.default],["ProgressIndicatorRole",Te.default],["RadioButtonRole",Ae.default],["RadioGroupRole",$e.default],["RegionRole",Ie.default],["RootWebAreaRole",Re.default],["RowHeaderRole",qe.default],["RowRole",Le.default],["RubyRole",Me.default],["RulerRole",Oe.default],["ScrollAreaRole",Ne.default],["ScrollBarRole",De.default],["SeamlessWebAreaRole",je.default],["SearchRole",Be.default],["SearchBoxRole",Fe.default],["SliderRole",Ve.default],["SliderThumbRole",He.default],["SpinButtonRole",Ue.default],["SpinButtonPartRole",ze.default],["SplitterRole",We.default],["StaticTextRole",Ge.default],["StatusRole",Ke.default],["SVGRootRole",Xe.default],["SwitchRole",Qe.default],["TabGroupRole",Ye.default],["TabRole",Je.default],["TableHeaderContainerRole",Ze.default],["TableRole",et.default],["TabListRole",tt.default],["TabPanelRole",nt.default],["TermRole",st.default],["TextAreaRole",rt.default],["TextFieldRole",at.default],["TimeRole",it.default],["TimerRole",ot.default],["ToggleButtonRole",lt.default],["ToolbarRole",ct.default],["TreeRole",pt.default],["TreeGridRole",ut.default],["TreeItemRole",dt.default],["UserInterfaceTooltipRole",ht.default],["VideoRole",mt.default],["WebAreaRole",ft.default],["WindowRole",yt.default]],xt={entries:function(){return _t},forEach:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=0,s=_t;n<s.length;n++){var r=gt(s[n],2),a=r[0],i=r[1];e.call(t,i,a,_t)}},get:function(e){var t=_t.find((function(t){return t[0]===e}));return t&&t[1]},has:function(e){return!!xt.get(e)},keys:function(){return _t.map((function(e){return gt(e,1)[0]}))},values:function(){return _t.map((function(e){return gt(e,2)[1]}))}},Ct=(0,e.default)(xt,xt.entries());return Hf.default=Ct,Hf}function k_(){if(x_)return Df;x_=1,Object.defineProperty(Df,"__esModule",{value:!0}),Df.default=void 0;var e=n(Ff()),t=n(w_());function n(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var s,r,a=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(a.push(s.value),!t||a.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}(e,t)||r(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}var i,o=[],l=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t){n&&(e=n);var s=0,a=function(){};return{s:a,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}(t.default.entries());try{var c=function(){var e=s(i.value,2),t=e[0],n=e[1].relatedConcepts;Array.isArray(n)&&n.forEach((function(e){if("HTML"===e.module){var n=e.concept;if(n){var r=o.findIndex((function(e){return s(e,1)[0]===t}));-1===r&&(o.push([t,[]]),r=o.length-1),o[r][1].push(n)}}}))};for(l.s();!(i=l.n()).done;)c()}catch(e){l.e(e)}finally{l.f()}var p={entries:function(){return o},forEach:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=0,r=o;n<r.length;n++){var a=s(r[n],2),i=a[0],l=a[1];e.call(t,l,i,o)}},get:function(e){var t=o.find((function(t){return t[0]===e}));return t&&t[1]},has:function(e){return!!p.get(e)},keys:function(){return o.map((function(e){return s(e,1)[0]}))},values:function(){return o.map((function(e){return s(e,2)[1]}))}},u=(0,e.default)(p,p.entries());return Df.default=u,Df}var S_,P_={};function E_(){if(S_)return P_;S_=1,Object.defineProperty(P_,"__esModule",{value:!0}),P_.default=void 0;var e=n(Ff()),t=n(w_());function n(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var s,r,a=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(a.push(s.value),!t||a.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}(e,t)||r(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}var i,o=[],l=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t){n&&(e=n);var s=0,a=function(){};return{s:a,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}(t.default.entries());try{var c=function(){var e=s(i.value,2),t=e[0],n=e[1].relatedConcepts;Array.isArray(n)&&n.forEach((function(e){if("ARIA"===e.module){var n=e.concept;if(n){var r=o.findIndex((function(e){return s(e,1)[0]===t}));-1===r&&(o.push([t,[]]),r=o.length-1),o[r][1].push(n)}}}))};for(l.s();!(i=l.n()).done;)c()}catch(e){l.e(e)}finally{l.f()}var p={entries:function(){return o},forEach:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=0,r=o;n<r.length;n++){var a=s(r[n],2),i=a[0],l=a[1];e.call(t,l,i,o)}},get:function(e){var t=o.find((function(t){return t[0]===e}));return t&&t[1]},has:function(e){return!!p.get(e)},keys:function(){return o.map((function(e){return s(e,1)[0]}))},values:function(){return o.map((function(e){return s(e,2)[1]}))}},u=(0,e.default)(p,p.entries());return P_.default=u,P_}var T_,A_,$_={};function I_(){if(T_)return $_;T_=1,Object.defineProperty($_,"__esModule",{value:!0}),$_.default=void 0;var e=n(w_()),t=n(Ff());function n(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var s,r,a=[],i=!0,o=!1;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(a.push(s.value),!t||a.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(o)throw r}}return a}(e,t)||r(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}var i,o=[],l=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t){n&&(e=n);var s=0,a=function(){};return{s:a,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}(e.default.entries());try{var c=function(){var e=s(i.value,2),t=e[0],n=e[1].relatedConcepts;Array.isArray(n)&&n.forEach((function(e){if("HTML"===e.module){var n=e.concept;if(null!=n){for(var s,r=JSON.stringify(n),a=0;a<o.length;a++){var i=o[a][0];if(JSON.stringify(i)===r){s=o[a][1];break}}Array.isArray(s)||(s=[]),-1===s.findIndex((function(e){return e===t}))&&s.push(t),a<o.length?o.splice(a,1,[n,s]):o.push([n,s])}}}))};for(l.s();!(i=l.n()).done;)c()}catch(e){l.e(e)}finally{l.f()}var p={entries:function(){return o},forEach:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=0,r=o;n<r.length;n++){var a=s(r[n],2),i=a[0],l=a[1];e.call(t,l,i,o)}},get:function(e){var t=o.find((function(t){return e.name===t[0].name&&function(e,t){if(void 0===e&&void 0!==t)return!1;if(void 0!==e&&void 0===t)return!1;if(void 0!==e&&void 0!==t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(t[n].name!==e[n].name||t[n].value!==e[n].value)return!1}return!0}(e.attributes,t[0].attributes)}));return t&&t[1]},has:function(e){return!!p.get(e)},keys:function(){return o.map((function(e){return s(e,1)[0]}))},values:function(){return o.map((function(e){return s(e,2)[1]}))}},u=(0,t.default)(p,p.entries());return $_.default=u,$_}var R_=function(){if(A_)return Nf;A_=1,Object.defineProperty(Nf,"__esModule",{value:!0}),Nf.elementAXObjects=Nf.AXObjects=Nf.AXObjectRoles=Nf.AXObjectElements=void 0;var e=r(k_()),t=r(E_()),n=r(w_()),s=r(I_());function r(e){return e&&e.__esModule?e:{default:e}}var a=e.default;Nf.AXObjectElements=a;var i=t.default;Nf.AXObjectRoles=i;var o=n.default;Nf.AXObjects=o;var l=s.default;return Nf.elementAXObjects=l,Nf}();const q_=Of.roles.keys(),L_=q_.filter((e=>Of.roles.get(e)?.abstract)),M_=q_.filter((e=>!L_.includes(e))),O_=M_.filter((e=>{const t=Of.roles.get(e);return!["toolbar","tabpanel","generic","cell"].includes(e)&&!t?.superClass.some((e=>e.includes("widget")||e.includes("window")))})).concat("progressbar"),N_=M_.filter((e=>!O_.includes(e)&&"generic"!==e));function D_(e){return O_.includes(e)}function j_(e){return N_.includes(e)}function B_(e){return L_.includes(e)}const F_=["presentation","none"];function V_(e){return F_.includes(e)}function H_(e,t){if("input"===e){if("hidden"===Px(t.get("type")))return!0}const n=t.get("aria-hidden");if(!n)return!1;const s=Px(n);return null===s||(!0===s||"true"===s)}function U_(e){if(Px(e.get("disabled")))return!0;const t=e.get("aria-disabled");if(t){if("true"===Px(t))return!0}return!1}const z_=[];Of.elementRoles.entries().forEach((([e,t])=>{[...t].every((e=>"generic"!==e&&O_.includes(e)))&&z_.push(e)}));const W_=[];Of.elementRoles.entries().forEach((([e,t])=>{[...t].every((e=>N_.includes(e)))&&W_.push(e)}));const G_=[...R_.AXObjects.keys()].filter((e=>"widget"===R_.AXObjects.get(e).type)),K_=[...R_.AXObjects.keys()].filter((e=>["windows","structure"].includes(R_.AXObjects.get(e).type))),X_=[];R_.elementAXObjects.entries().forEach((([e,t])=>{[...t].every((e=>G_.includes(e)))&&X_.push(e)}));const Q_=[];function Y_(e,t,n){return e.name===t&&(!e.attributes||e.attributes.every((e=>{const t=n.get(e.name);return!!t&&(!e.value||e.value===Ex(t))})))}R_.elementAXObjects.entries().forEach((([e,t])=>{[...t].every((e=>K_.includes(e)))&&Q_.push(e)}));const J_={Interactive:"interactive",NonInteractive:"non-interactive",Static:"static"};function Z_(e,t){return W_.some((n=>Y_(n,e,t)))?J_.Interactive:"header"!==e&&z_.some((n=>Y_(n,e,t)))?J_.NonInteractive:X_.some((n=>Y_(n,e,t)))?J_.Interactive:Q_.some((n=>Y_(n,e,t)))?J_.NonInteractive:J_.Static}function ex(e,t){return Z_(e,t)===J_.Interactive}function tx(e,t){return Z_(e,t)===J_.NonInteractive}function nx(e,t){return Z_(e,t)===J_.Static}function sx(e,t,n){for(const[s,r]of R_.elementAXObjects.entries())if(s.name===t&&(!s.attributes||s.attributes.every((e=>n.has(e.name)&&Px(n.get(e.name))===e.value))))for(const t of r){const n=R_.AXObjectRoles.get(t);if(n)for(const{name:t}of n)if(t===e)return!0}return!1}const rx=["shipping","billing"],ax=["","on","off","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","username","new-password","current-password","one-time-code","organization-title","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo"],ix=["home","work","mobile","fax","pager"],ox=["tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"];const lx="activedescendant atomic autocomplete busy checked colcount colindex colspan controls current describedby description details disabled dropeffect errormessage expanded flowto grabbed haspopup hidden invalid keyshortcuts label labelledby level live modal multiline multiselectable orientation owns placeholder posinset pressed readonly relevant required roledescription rowcount rowindex rowspan selected setsize sort valuemax valuemin valuenow valuetext".split(" "),cx={a:["href"],area:["alt","aria-label","aria-labelledby"],html:["lang"],iframe:["title"],img:["alt"],object:["title","aria-label","aria-labelledby"]},px=["blink","marquee"],ux=["h1","h2","h3","h4","h5","h6"],dx=["button","input","keygen","meter","output","progress","select","textarea"],hx=["keypress","keydown","keyup","click","contextmenu","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","dragstart","drop","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup"],mx=["click","mousedown","mouseup","keypress","keydown","keyup"],fx=new Map([["header","banner"],["footer","contentinfo"]]),yx=new Map([["a","link"],["area","link"],["article","article"],["aside","complementary"],["body","document"],["button","button"],["datalist","listbox"],["dd","definition"],["dfn","term"],["dialog","dialog"],["details","group"],["dt","term"],["fieldset","group"],["figure","figure"],["form","form"],["h1","heading"],["h2","heading"],["h3","heading"],["h4","heading"],["h5","heading"],["h6","heading"],["hr","separator"],["img","img"],["li","listitem"],["link","link"],["main","main"],["menu","list"],["meter","progressbar"],["nav","navigation"],["ol","list"],["option","option"],["optgroup","group"],["output","status"],["progress","progressbar"],["section","region"],["summary","button"],["table","table"],["tbody","rowgroup"],["textarea","textbox"],["tfoot","rowgroup"],["thead","rowgroup"],["tr","row"],["ul","list"]]),vx=new Map([["command","menuitem"],["checkbox","menuitemcheckbox"],["radio","menuitemradio"]]),gx=new Map([["button","button"],["image","button"],["reset","button"],["submit","button"],["checkbox","checkbox"],["radio","radio"],["range","slider"],["number","spinbutton"],["email","textbox"],["search","searchbox"],["tel","textbox"],["text","textbox"],["url","textbox"]]),bx={ul:["listbox","menu","menubar","radiogroup","tablist","tree","treegrid"],ol:["listbox","menu","menubar","radiogroup","tablist","tree","treegrid"],li:["menuitem","option","row","tab","treeitem"],table:["grid"],td:["gridcell"],fieldset:["radiogroup","presentation"]},_x=["email","search","tel","text","url"];function xx(e,t){return"menuitem"===e?function(e){const t=e.get("type");if(!t)return;const n=Ex(t);return n?vx.get(n):void 0}(t):"input"===e?function(e){const t=e.get("type");if(!t)return;const n=Ex(t);if(!n)return;return e.has("list")&&_x.includes(n)?"combobox":gx.get(n)}(t):yx.get(e)}const Cx=["meta","html","script","style"];function wx(e,t){let n=e.length;for(;n--;){const s=e[n];if("SvelteElement"===s.type)return!0;if("RegularElement"===s.type)return t.includes(s.name)}return!1}function kx(e,t,n,s){const a=n.type;if(null!==s)if(!0===s&&(s=""),"boolean"===a&&"true"!==s&&"false"!==s)!function(e,t){we(e,"a11y_incorrect_aria_attribute_type_boolean",`The value of '${t}' must be either 'true' or 'false'. It cannot be empty\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_boolean`)}(e,t);else if("integer"!==a||""!==s&&Number.isInteger(+s))if("number"!==a||""!==s&&!isNaN(+s))if("string"!==a&&"id"!==a||""!==s)if("idlist"===a&&""===s)!function(e,t){we(e,"a11y_incorrect_aria_attribute_type_idlist",`The value of '${t}' must be a space-separated list of strings that represent DOM element IDs\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_idlist`)}(e,t);else if("token"===a){const r=(n.values??[]).map((e=>e.toString()));r.includes(s.toLowerCase())||function(e,t,n){we(e,"a11y_incorrect_aria_attribute_type_token",`The value of '${t}' must be exactly one of ${n}\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_token`)}(e,t,Bo(r.map((e=>`"${e}"`))))}else if("tokenlist"===a){const a=(n.values??[]).map((e=>e.toString()));s.toLowerCase().split(r).some((e=>!a.includes(e)))&&function(e,t,n){we(e,"a11y_incorrect_aria_attribute_type_tokenlist",`The value of '${t}' must be a space-separated list of one or more of ${n}\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_tokenlist`)}(e,t,Bo(a.map((e=>`"${e}"`))))}else"tristate"===a&&"true"!==s&&"false"!==s&&"mixed"!==s&&function(e,t){we(e,"a11y_incorrect_aria_attribute_type_tristate",`The value of '${t}' must be exactly one of true, false, or mixed\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_tristate`)}(e,t);else Ae(e,t,"non-empty string");else Ae(e,t,"number");else!function(e,t){we(e,"a11y_incorrect_aria_attribute_type_integer",`The value of '${t}' must be an integer\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_integer`)}(e,t)}function Sx(e,t,n=e.name){!function(e,t,n,s){we(e,"a11y_missing_attribute",`\`<${t}>\` element should have ${n} ${s} attribute\nhttps://svelte.dev/e/a11y_missing_attribute`)}(e,n,y.test(t[0])||"href"===t[0]?"an":"a",t.length>1?t.slice(0,-1).join(", ")+` or ${t[t.length-1]}`:t[0])}function Px(e){return e?!0===e.value||(Ri(e)?e.value[0].data:null):null}function Ex(e){const t=Px(e);return!0===t?null:t}function Tx(e,n){const s=new Map,a=new Set,i=[],o="SvelteElement"===e.type;let l=!1,c=!1,u=!1;for(const t of e.attributes)"SpreadAttribute"===t.type?l=!0:"OnDirective"===t.type?a.add(t.name):"Attribute"===t.type?Oi(t)?a.add(t.name.slice(2)):(i.push(t),s.set(t.name,t),"contenteditable"===t.name&&(c=!0)):"BindDirective"===t.type&&Z(t.name)&&(u=!0);for(const t of e.attributes){if("Attribute"!==t.type)continue;const c=t.name.toLowerCase();if(c.startsWith("aria-")){Cx.includes(e.name)&&Pe(t,e.name);const n=c.slice(5);if(!lx.includes(n)){Ve(t,n,T(n,lx))}"aria-hidden"===c&&v.test(e.name)&&Te(t,e.name);let r=Px(t);const a=Of.aria.get(c);void 0!==a&&kx(t,c,a,r),"aria-activedescendant"!==c||o||ex(e.name,s)||s.has("tabindex")||l||Se(t)}if("role"===c){Cx.includes(e.name)&&Ie(t,e.name);const c=Px(t);if("string"==typeof c)for(const p of c.split(r)){const r=p;if(r&&B_(r))Le(t,r);else if(r&&!q_.includes(r)){He(t,r,T(r,q_))}r!==xx(e.name,s)||["ul","ol","li"].includes(e.name)||"a"===e.name&&!s.has("href")||Ne(t,r);if(!wx(n.path,["section","article"])){r===fx.get(e.name)&&Ne(t,r)}if(!o&&!sx(r,e.name,s)){const e=Of.roles.get(r);if(e){const n=Object.keys(e.requiredProps),s=!l&&n.some((e=>!i.find((t=>t.name===e))));s&&je(t,r,Bo(n.map((e=>`"${e}"`)),"and"))}}if(!l&&!U_(s)&&!H_(e.name,s)&&!V_(r)&&j_(r)&&nx(e.name,s)&&!s.get("tabindex")){[...a].some((e=>hx.includes(e)))&&$e(e,r)}!l&&ex(e.name,s)&&(D_(r)||V_(r))&&Me(e,e.name,r),!l&&tx(e.name,s)&&j_(r)&&!bx[e.name]?.includes(r)&&Oe(e,e.name,r)}}if("accesskey"===c&&ke(t),"autofocus"===c&&Ee(t),"scope"!==c||o||"th"===e.name||Re(t),"tabindex"===c){const e=Px(t);!isNaN(e)&&+e>0&&De(t)}}const d=s.get("role"),h=Ex(d);if(a.has("click")){const t=null!==h&&!V_(h);if(!o&&!H_(e.name,s)&&(!d||t)&&!ex(e.name,s)&&!l){a.has("keydown")||a.has("keyup")||a.has("keypress")||function(e){we(e,"a11y_click_events_have_key_events",'Visible, non-interactive elements with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as `<button type="button">` or `<a>` might be more appropriate\nhttps://svelte.dev/e/a11y_click_events_have_key_events')}(e)}}const m=d?h:xx(e.name,s);if(!o&&!ex(e.name,s)&&!j_(h)){const t=s.get("tabindex"),n=Ex(t);t&&(null===n||Number(n)>=0)&&function(e){we(e,"a11y_no_noninteractive_tabindex","noninteractive element cannot have nonnegative tabIndex value\nhttps://svelte.dev/e/a11y_no_noninteractive_tabindex")}(e)}if("string"==typeof m&&Of.roles.has(m)){const{props:t}=Of.roles.get(m),n=Of.aria.keys().filter((e=>!(e in t))),s=m&&void 0===d;for(const t of i)n.includes(t.name)&&(s?Fe(t,t.name,m,e.name):Be(t,t.name,m))}if(!l&&!c&&!H_(e.name,s)&&!V_(h)&&(!ex(e.name,s)&&D_(h)||tx(e.name,s)&&!d)){[...a].some((e=>mx.includes(e)))&&function(e,t){we(e,"a11y_no_noninteractive_element_interactions",`Non-interactive element \`<${t}>\` should not be assigned mouse or keyboard event listeners\nhttps://svelte.dev/e/a11y_no_noninteractive_element_interactions`)}(e,e.name)}if(!(l||d&&null===h||H_(e.name,s)||V_(h)||ex(e.name,s)||j_(h)||tx(e.name,s)||D_(h)||B_(h))){const t=[...a].filter((e=>hx.includes(e)));t.length>0&&function(e,t,n){we(e,"a11y_no_static_element_interactions",`\`<${t}>\` with a ${n} handler must have an ARIA role\nhttps://svelte.dev/e/a11y_no_static_element_interactions`)}(e,e.name,Bo(t))}l||!a.has("mouseover")||a.has("focus")||qe(e,"mouseover","focus"),l||!a.has("mouseout")||a.has("blur")||qe(e,"mouseout","blur");const f=s.has("aria-label")||s.has("aria-labelledby");if("a"===e.name||"button"===e.name){const t="true"===Px(s.get("aria-hidden"));l||t||f||Ax(e)||function(e){we(e,"a11y_consider_explicit_label","Buttons and links should either contain text or have an `aria-label` or `aria-labelledby` attribute\nhttps://svelte.dev/e/a11y_consider_explicit_label")}(e)}if("a"===e.name){const t=s.get("href")||s.get("xlink:href");if(t){const e=Ex(t);null!==e&&(""===e||"#"===e||/^\W*javascript:/i.test(e))&&function(e,t,n){we(e,"a11y_invalid_attribute",`'${t}' is not a valid ${n} attribute\nhttps://svelte.dev/e/a11y_invalid_attribute`)}(t,e,t.name)}else if(!l){const t=Px(s.get("id")),n=Px(s.get("name")),r=Px(s.get("aria-disabled"));t||n||"true"===r||Sx(e,["href"])}}else if(!l){const t=cx[e.name];if(t){t.some((e=>s.has(e)))||Sx(e,t)}}if("input"===e.name){const t=s.get("type"),n=Ex(t);if("image"===n&&!l){const t=["alt","aria-label","aria-labelledby"];t.some((e=>s.has(e)))||Sx(e,t,'input type="image"')}const a=s.get("autocomplete");if(t&&a){const e=Px(a);(function(e){if(!0===e)return!1;if(!e)return!0;const t=e.trim().toLowerCase().split(r);if("string"==typeof t[0]&&t[0].startsWith("section-")&&t.shift(),rx.includes(t[0])&&t.shift(),ax.includes(t[0]))t.shift();else{if(ix.includes(t[0])&&t.shift(),!ox.includes(t[0]))return!1;t.shift()}return"webauthn"===t[0]&&t.shift(),0===t.length})(e)||function(e,t,n){we(e,"a11y_autocomplete_valid",`'${t}' is an invalid value for 'autocomplete' on \`<input type="${n}">\`\nhttps://svelte.dev/e/a11y_autocomplete_valid`)}(a,e,n??"...")}}if("img"===e.name){const t=Ex(s.get("alt")),n=Px(s.get("aria-hidden"));!t||n||l||/\b(image|picture|photo)\b/i.test(t)&&function(e){we(e,"a11y_img_redundant_alt","Screenreaders already announce `<img>` elements as an image\nhttps://svelte.dev/e/a11y_img_redundant_alt")}(e)}if("label"===e.name){const n=e=>{let n=!1;return t(e,{},{_(e,{next:t}){"SvelteElement"===e.type||"SlotElement"===e.type||"Component"===e.type||"RenderTag"===e.type||"RegularElement"===e.type&&(dx.includes(e.name)||"slot"===e.name)?n=!0:t()}}),n};l||s.has("for")||n(e)||function(e){we(e,"a11y_label_has_associated_control","A form label must be associated with a control\nhttps://svelte.dev/e/a11y_label_has_associated_control")}(e)}if("video"===e.name){const t=s.get("aria-hidden"),n=t&&Px(t);if(s.has("muted")||"true"===n||l)return;let r=!1;const a=e.fragment.nodes.find((e=>"RegularElement"===e.type&&"track"===e.name));a&&(r=a.attributes.some((e=>"SpreadAttribute"===e.type||"Attribute"===e.type&&"kind"===e.name&&"captions"===Px(e)))),r||function(e){we(e,"a11y_media_has_caption",'`<video>` elements must have a `<track kind="captions">`\nhttps://svelte.dev/e/a11y_media_has_caption')}(e)}if("figcaption"===e.name&&(wx(n.path,["figure"])||function(e){we(e,"a11y_figcaption_parent","`<figcaption>` must be an immediate child of `<figure>`\nhttps://svelte.dev/e/a11y_figcaption_parent")}(e)),"figure"===e.name){const t=e.fragment.nodes.filter((e=>"Comment"!==e.type&&("Text"!==e.type||p.test(e.data)))),n=t.findIndex((e=>"RegularElement"===e.type&&"figcaption"===e.name));-1!==n&&0!==n&&n!==t.length-1&&function(e){we(e,"a11y_figcaption_index","`<figcaption>` must be first or last child of `<figure>`\nhttps://svelte.dev/e/a11y_figcaption_index")}(t[n])}px.includes(e.name)&&function(e,t){we(e,"a11y_distracting_elements",`Avoid \`<${t}>\` elements\nhttps://svelte.dev/e/a11y_distracting_elements`)}(e,e.name),l||f||u||!ux.includes(e.name)||Ax(e)||function(e,t){we(e,"a11y_missing_content",`\`<${t}>\` element should contain text\nhttps://svelte.dev/e/a11y_missing_content`)}(e,e.name)}function Ax(e){for(const t of e.fragment.nodes)if("Text"!==t.type||""!==t.data.trim()){if("RegularElement"===t.type||"SvelteElement"===t.type){if("img"===t.name&&t.attributes.some((e=>"Attribute"===e.type&&"alt"===e.name)))return!0;if(!Ax(t))continue}return!0}}const $x=["preventDefault","stopPropagation","stopImmediatePropagation","capture","once","passive","nonpassive","self","trusted"];function Ix(e,t){let n=!1,s=null,r=null;for(const a of e.attributes)if("Attribute"===a.type){const n=qi(a);if(t.state.analysis.runes&&(Rc(a,e),n)){const e=Li(a);if("SequenceExpression"===e.type){let n=e.start;for(;--n>0;){const s=t.state.analysis.source[n];if("("===s)break;"{"===s&&dr(e)}}}if(g.test(a.name)&&ur(a,a.name),a.name.startsWith("on")&&a.name.length>2){n||pr(a);const e=Li(a);"Identifier"!==e.type||e.name!==a.name||t.state.scope.get(e.name)||et(a,a.name)}"slot"===a.name&&qc(t,a),"is"===a.name&&Ze(a);const s=Rx.get(a.name);s&&tt(a,a.name,s),Ic(a)}else if("AnimateDirective"===a.type){const e=t.path.at(-2);"EachBlock"!==e?.type?or(a):e.key?e.body.nodes.filter((e=>"Comment"!==e.type&&"ConstTag"!==e.type&&("Text"!==e.type||""!==e.data.trim()))).length>1&&or(a):lr(a),n?ir(a):n=!0}else if("TransitionDirective"===a.type){const e=a.intro&&s||a.outro&&r;if(e){const t=e.intro?e.outro?"transition":"in":"out",n=a.intro?a.outro?"transition":"in":"out";t===n?ca(a,t):la(a,t,n)}a.intro&&(s=a),a.outro&&(r=a)}else if("OnDirective"===a.type){let e=!1,t="";for(const n of a.modifiers){if(!$x.includes(n)){Pr(a,`${$x.slice(0,-1).join(", ")} or ${$x.at(-1)}`)}"passive"===n?e=!0:"nonpassive"!==n&&"preventDefault"!==n||(t=n),e&&t&&Er(a,"passive",t)}}}const Rx=new Map([["className","class"],["htmlFor","for"]]);function qx(e,t,n=new Set){for(const[s]of e.references){const r=e.get(s);if(r&&0!==r.scope.function_depth&&!(r.scope.function_depth>=e.function_depth)){if("SnippetBlock"===r.initial?.type){if(n.has(r))continue;n.add(r);if(qx(t.get(r.initial),t,n))continue}return!1}}return!0}const Lx=["onerror","failed"];function Mx(e,t){if(e!==t)throw new Error("Assertion failed")}const Ox={_(e,{state:t,next:n,path:s}){const r=s.at(-1),a=[];if("Fragment"===r?.type&&"Comment"!==e.type&&"Text"!==e.type){for(let n=r.nodes.indexOf(e)-1;n>=0;n--){const e=r.nodes[n];if("Comment"===e.type)a.push(...ot(e.start+4,e.data,t.analysis.runes));else if("Text"!==e.type)break}}else{const n=e.leadingComments;if(n)for(const e of n)a.push(...ot(e.start+2,e.value,t.analysis.runes))}a.length>0&&function(e){const t=new Set([...me.at(-1)||[],...e]);me.push(t)}(a),fe.set(e,structuredClone(me));const i=t.scopes.get(e);n(void 0!==i&&i!==t.scope?{...t,scope:i}:t),a.length>0&&me.pop()},ArrowFunctionExpression:function(e,t){Pc(e,t)},AssignmentExpression:function(e,t){if(El(e,e.left,t.state),t.state.reactive_statement){if(null!==("MemberExpression"===e.left.type?Ii(e.left):e.left))for(const n of Di(e.left)){const e=t.state.scope.get(n.name);e&&t.state.reactive_statement.assignments.add(e)}}t.next()},Attribute:function(e,t){t.next();const n=t.path.at(-1);if("RegularElement"===n.type&&"value"===e.name&&"option"===n.name&&Ec(t.path),Oi(e)&&Ec(t.path),Q(e.name)&&Ec(t.path),"class"!==e.name||Array.isArray(e.value)||!0===e.value||"Literal"===e.value.expression.type||"TemplateLiteral"===e.value.expression.type||"BinaryExpression"===e.value.expression.type||(Ec(t.path),e.metadata.needs_clsx=!0),!0!==e.value){for(const t of Mi(e.value))"ExpressionTag"===t.type&&"FunctionExpression"!==t.expression.type&&t.expression.type;if(Oi(e)){const n=t.path.at(-1);"RegularElement"!==n?.type&&"SvelteElement"!==n?.type||(t.state.analysis.uses_event_attributes=!0);const s=Li(e),r=function(e,t,n){if(!t||!U(e))return null;const s=n.path.at(-1);if("RegularElement"!==s?.type)return null;let r=null,a=null;if(s.metadata.has_spread)return Tc;if("ArrowFunctionExpression"===t.type||"FunctionExpression"===t.type)r=t;else if("Identifier"===t.type){if(a=n.state.scope.get(t.name),n.state.analysis.module.scope.references.has(t.name))return Tc;if(null!=a)for(const{path:e}of a.references){const t=e.at(-1);if(void 0===t)return Tc;const n=e.at(-2);let s=null,r=null;if("OnDirective"===t.type)s=n,r=t.name;else if("ExpressionTag"===t.type&&"Attribute"===n?.type&&Oi(n)){s=e.at(-3);r=Ac(n.name)}if(s&&r){if("RegularElement"!==s.type||s.metadata.has_spread||!U(r))return Tc}else if("FunctionDeclaration"!==t.type&&"VariableDeclarator"!==t.type)return Tc}if(n.state.analysis.exports.find((e=>e.name===t.name)))return Tc;a?.is_function()&&(r=a.initial)}if(null==r||r.params.length>1)return Tc;const i=new Set,o=r.metadata.scope;for(const[e]of o.references){if("arguments"===e||"$host"===e)return Tc;if("store_sub"===o.get(`$${e}`)?.kind)return Tc;const t=o.get(e),s=n.state.scope.get(e);if(null!==s&&"SnippetBlock"===s.initial?.type&&!s.initial.metadata.can_hoist)return Tc;if(null!==s&&null!==t&&s.node!==t.node)return Tc;if(null!==t&&"store_sub"===t.kind&&i.has(e.slice(1)))return Tc;if(null!==t&&"EachBlock"===t.initial?.type)return Tc;if(null!==t&&("rest_param"===t.declaration_kind||(!n.state.analysis.runes&&"each"===t.kind||"normal"===t.kind)&&t.updated))return Tc;i.add(e)}return{hoisted:!0,function:r}}(e.name.slice(2),s,t);null!==r&&(r.hoisted&&(r.function.metadata.hoisted=!0),e.metadata.delegated=r)}}},AwaitBlock:function(e,t){if($l(e.pending),$l(e.then),$l(e.catch),t.state.analysis.runes){if(Al(e,t.state,"#"),e.value){const n=e.value.start,s=t.state.analysis.source.substring(n-10,n).match(/{(\s*):then\s+$/);s&&""!==s[1]&&br({start:n-10,end:n},":")}if(e.error){const n=e.error.start,s=t.state.analysis.source.substring(n-10,n).match(/{(\s*):catch\s+$/);s&&""!==s[1]&&br({start:n-10,end:n},":")}}Ec(t.path),t.next()},BindDirective:function(e,t){const n=t.path.at(-1);if("RegularElement"===n?.type||"SvelteElement"===n?.type||"SvelteWindow"===n?.type||"SvelteDocument"===n?.type||"SvelteBody"===n?.type)if(e.name in $c){const t=$c[e.name];if(t.valid_elements&&!t.valid_elements.includes(n.name)&&yr(e,e.name,t.valid_elements.map((e=>`<${e}>`)).join(", ")),t.invalid_elements&&t.invalid_elements.includes(n.name)){const t=Object.entries($c).filter((([e,t])=>t.valid_elements?.includes(n.name)||!t.valid_elements&&!t.invalid_elements?.includes(n.name))).map((([e])=>e)).sort();mr(e,e.name,`Possible bindings for <${n.name}> are ${t.join(", ")}`)}if("input"===n.name&&"this"!==e.name){const t=n.attributes.find((e=>"Attribute"===e.type&&"type"===e.name));t&&!Ri(t)?"value"===e.name&&!0!==t.value||function(e){Is(e,"attribute_invalid_type","'type' attribute must be a static text value if input uses two-way binding\nhttps://svelte.dev/e/attribute_invalid_type")}(t):("checked"===e.name&&"checkbox"!==t?.value[0].data&&yr(e,e.name,'<input type="checkbox">'),"files"===e.name&&"file"!==t?.value[0].data&&yr(e,e.name,'<input type="file">'))}if("select"===n.name&&"this"!==e.name){const e=n.attributes.find((e=>"Attribute"===e.type&&"multiple"===e.name&&!Ri(e)&&!0!==e.value));e&&function(e){Is(e,"attribute_invalid_multiple","'multiple' attribute must be static if select uses two-way binding\nhttps://svelte.dev/e/attribute_invalid_multiple")}(e)}if("offsetWidth"===e.name&&se(n.name)&&yr(e,e.name,"non-<svg> elements. Use 'clientWidth' for <svg> instead"),Z(e.name)){const t=n.attributes.find((e=>"Attribute"===e.type&&"contenteditable"===e.name));t?Ri(t)||!0===t.value||function(e){Is(e,"attribute_contenteditable_dynamic","'contenteditable' attribute cannot be dynamic if element uses two-way binding\nhttps://svelte.dev/e/attribute_contenteditable_dynamic")}(t):function(e){Is(e,"attribute_contenteditable_missing","'contenteditable' attribute is required for textContent, innerHTML and innerText two-way bindings\nhttps://svelte.dev/e/attribute_contenteditable_missing")}(e)}}else{const t=T(e.name,Object.keys($c));if(t){const s=$c[t];s.valid_elements&&!s.valid_elements.includes(n.name)||mr(e,e.name,`Did you mean '${t}'?`)}mr(e,e.name)}if("SequenceExpression"===e.expression.type){"group"===e.name&&function(e){Is(e,"bind_group_invalid_expression","`bind:group` can only bind to an Identifier or MemberExpression\nhttps://svelte.dev/e/bind_group_invalid_expression")}(e);let n=e.expression.start,s=(e.expression.leadingComments?.at(0))?.start,r=(e.expression.leadingComments?.at(-1))?.end;for(;"{"!==t.state.analysis.source[--n];)"("!==t.state.analysis.source[n]||s&&r&&n<=r&&n>=s||fr(e,e.name);return 2!==e.expression.expressions.length&&hr(e),void Ec(t.path)}El(e,e.expression,t.state);const s=e.expression,r=Ii(s);null===r&&hr(e);const a=t.state.scope.get(r.name);if("Identifier"===s.type&&("this"===e.name||a&&("state"===a.kind||"raw_state"===a.kind||"prop"===a.kind||"bindable_prop"===a.kind||"each"===a.kind||"store_sub"===a.kind||a.updated)||function(e){Is(e,"bind_invalid_value","Can only bind to state or props\nhttps://svelte.dev/e/bind_invalid_value")}(e.expression)),"group"===e.name){if(!a)throw new Error("Cannot find declaration for bind:group");"snippet"===a.kind&&function(e){Is(e,"bind_group_invalid_snippet_parameter","Cannot `bind:group` to a snippet parameter\nhttps://svelte.dev/e/bind_group_invalid_snippet_parameter")}(e);const n=[],[s,r]=ji(e.expression);let i=r,o=t.path.length;for(;o--;){const e=t.path[o];if("EachBlock"===e.type){const t=i.filter((t=>e.metadata.declarations.has(t.name)));t.length>0&&(e.metadata.contains_group_binding=!0,n.push(e),i=i.filter((e=>!t.includes(e))),i.push(...ji(e.expression)[1]))}}const l=r.map((e=>t.state.scope.get(e.name)));let c;e:for(const[[e,n],r]of t.state.analysis.binding_groups)if(n.length===l.length&&e===s){for(let e=0;e<l.length;e++)if(l[e]!==n[e])continue e;c=r}c||(c=t.state.scope.root.unique("binding_group"),t.state.analysis.binding_groups.set([s,l],c)),e.metadata={binding_group_name:c,parent_each_blocks:n}}"each"===a?.kind&&a.metadata?.inside_rest&&function(e,t){we(e,"bind_invalid_each_rest",`The rest operator (...) will create a new object and binding '${t}' with the original object will not work\nhttps://svelte.dev/e/bind_invalid_each_rest`)}(a.node,a.node.name),t.next()},CallExpression:function(e,t){const n=Hi(t.path,-1),s=Bl(e,t.state.scope);if(s&&"$inspect"!==s)for(const t of e.arguments)"SpreadElement"===t.type&&zs(e,s);switch(s){case null:Il(e.callee,t.state.scope)||(t.state.analysis.needs_context=!0);break;case"$bindable":e.arguments.length>1&&Vs(e,"$bindable","zero or one arguments"),"AssignmentPattern"===n.type&&"ObjectPattern"===t.path.at(-3)?.type&&"VariableDeclarator"===t.path.at(-4)?.type&&"$props"===Bl(t.path.at(-4).init,t.state.scope)||function(e){Is(e,"bindable_invalid_location","`$bindable()` can only be used inside a `$props()` declaration\nhttps://svelte.dev/e/bindable_invalid_location")}(e),t.state.analysis.needs_context=!0;break;case"$host":e.arguments.length>0?Fs(e,"$host"):"module"!==t.state.ast_type&&t.state.analysis.custom_element||function(e){Is(e,"host_invalid_placement","`$host()` can only be used inside custom element component instances\nhttps://svelte.dev/e/host_invalid_placement")}(e);break;case"$props":t.state.has_props_rune&&Ds(e,s),t.state.has_props_rune=!0,"VariableDeclarator"===n.type&&"instance"===t.state.ast_type&&t.state.scope===t.state.analysis.instance.scope||function(e){Is(e,"props_invalid_placement","`$props()` can only be used at the top level of components as a variable declaration initializer\nhttps://svelte.dev/e/props_invalid_placement")}(e),e.arguments.length>0&&Fs(e,s);break;case"$props.id":{const r=Hi(t.path,-2);t.state.analysis.props_id&&Ds(e,s),"VariableDeclarator"===n.type&&"Identifier"===n.id.type&&"instance"===t.state.ast_type&&t.state.scope===t.state.analysis.instance.scope&&"VariableDeclaration"===r.type||function(e){Is(e,"props_id_invalid_placement","`$props.id()` can only be used at the top level of components as a variable declaration initializer\nhttps://svelte.dev/e/props_id_invalid_placement")}(e),e.arguments.length>0&&Fs(e,s),t.state.analysis.props_id=n.id;break}case"$state":case"$state.raw":case"$derived":case"$derived.by":"VariableDeclarator"===n.type&&"ConstTag"!==Hi(t.path,-3).type||"PropertyDefinition"===n.type&&!n.static&&!n.computed||Qs(e,s),"$derived"!==s&&"$derived.by"!==s||1===e.arguments.length?e.arguments.length>1&&Vs(e,s,"zero or one arguments"):Vs(e,s,"exactly one argument");break;case"$effect":case"$effect.pre":"ExpressionStatement"!==n.type&&function(e){Is(e,"effect_invalid_placement","`$effect()` can only be used as an expression statement\nhttps://svelte.dev/e/effect_invalid_placement")}(e),1!==e.arguments.length&&Vs(e,s,"exactly one argument"),t.state.analysis.needs_context=!0;break;case"$effect.tracking":0!==e.arguments.length&&Fs(e,s);break;case"$effect.root":case"$inspect().with":case"$state.snapshot":1!==e.arguments.length&&Vs(e,s,"exactly one argument");break;case"$inspect":e.arguments.length<1&&Vs(e,s,"one or more arguments");break;case"$inspect.trace":{e.arguments.length>1&&Vs(e,s,"zero or one arguments");const r=t.path.at(-2),a=t.path.at(-3);if(("ExpressionStatement"!==n.type||"BlockStatement"!==r?.type||"FunctionDeclaration"!==a?.type&&"FunctionExpression"!==a?.type&&"ArrowFunctionExpression"!==a?.type||r.body[0]!==n)&&function(e){Is(e,"inspect_trace_invalid_placement","`$inspect.trace(...)` must be the first statement of a function body\nhttps://svelte.dev/e/inspect_trace_invalid_placement")}(e),a.generator&&function(e){Is(e,"inspect_trace_generator","`$inspect.trace(...)` cannot be used inside a generator function\nhttps://svelte.dev/e/inspect_trace_generator")}(e),ce){if(e.arguments[0])t.state.scope.tracing=pi(e.arguments[0]);else{const e=function(e){const t=e.at(-1);if(("FunctionDeclaration"===t.type||"FunctionExpression"===t.type)&&null!=t.id)return t.id.name;const n=e.at(-2);if(!n)return;if("CallExpression"===n.type)return le.slice(n.callee.start,n.callee.end)+"(...)";if("Property"===n.type&&!n.computed)return n.key.name;if("VariableDeclarator"===n.type&&"Identifier"===n.id.type)return n.id.name}(t.path.slice(0,-2))??"trace",n=`(${he(a)})`;t.state.scope.tracing=pi(Qa(e+" "+n))}t.state.analysis.tracing=!0}break}}"$inspect"===s||"$derived"===s?t.next({...t.state,function_depth:t.state.function_depth+1}):t.next(),t.state.expression&&(!Rl(e.callee,t)||t.state.expression.dependencies.size>0)&&(t.state.expression.has_call=!0,t.state.expression.has_state=!0)},ClassBody:function(e,t){const n=[];for(const s of e.body)if("PropertyDefinition"===s.type&&("PrivateIdentifier"===s.key.type||"Identifier"===s.key.type)&&"CallExpression"===s.value?.type){const e=Bl(s.value,t.state.scope);"$derived"!==e&&"$derived.by"!==e||n.push({name:s.key.name,private:"PrivateIdentifier"===s.key.type})}t.next({...t.state,derived_state:n})},ClassDeclaration:function(e,t){t.state.analysis.runes&&null!==e.id&&ql(t.state.scope.get(e.id.name));const n="module"===t.state.ast_type?0:1;t.state.scope.function_depth>n&&function(e){we(e,"perf_avoid_nested_class","Avoid declaring classes below the top level scope\nhttps://svelte.dev/e/perf_avoid_nested_class")}(e),t.next()},ClassDirective:function(e,t){Ec(t.path),t.next({...t.state,expression:e.metadata.expression})},Component:function(e,t){const n=t.state.scope.get(e.name.includes(".")?e.name.slice(0,e.name.indexOf(".")):e.name);e.metadata.dynamic=t.state.analysis.runes&&null!==n&&("normal"!==n.kind||e.name.includes(".")),Mc(e,t)},ConstTag:function(e,t){t.state.analysis.runes&&Al(e,t.state,"@");const n=t.path.at(-1),s=t.path.at(-2);("Fragment"!==n?.type||"IfBlock"!==s?.type&&"SvelteFragment"!==s?.type&&"Component"!==s?.type&&"SvelteComponent"!==s?.type&&"EachBlock"!==s?.type&&"AwaitBlock"!==s?.type&&"SnippetBlock"!==s?.type&&"SvelteBoundary"!==s?.type&&"KeyBlock"!==s?.type&&("RegularElement"!==s?.type&&"SvelteElement"!==s?.type||!s.attributes.some((e=>"Attribute"===e.type&&"slot"===e.name))))&&function(e){Is(e,"const_tag_invalid_placement","`{@const}` must be the immediate child of `{#snippet}`, `{#if}`, `{:else if}`, `{:else}`, `{#each}`, `{:then}`, `{:catch}`, `<svelte:fragment>`, `<svelte:boundary` or `<Component>`\nhttps://svelte.dev/e/const_tag_invalid_placement")}(e),t.next()},DebugTag:function(e,t){t.state.analysis.runes&&Al(e,t.state,"@"),t.next()},EachBlock:function(e,t){Al(e,t.state,"#"),$l(e.body),$l(e.fallback);const n=e.context;"Identifier"!==n?.type||"$state"!==n.name&&"$derived"!==n.name||Qs(e,n.name),e.key&&(e.metadata.keyed="Identifier"!==e.key.type||!e.index||e.key.name!==e.index),t.visit(e.expression,{...t.state,expression:e.metadata.expression,scope:t.state.scope.parent}),t.visit(e.body),e.key&&t.visit(e.key),e.fallback&&t.visit(e.fallback),Ec(t.path)},ExportDefaultDeclaration:function(e,t){t.state.ast_type?function(e){Is(e,"module_illegal_default_export","A component cannot have a default export\nhttps://svelte.dev/e/module_illegal_default_export")}(e):"Identifier"===e.declaration.type&&Ll(e,t.state.scope,e.declaration.name),t.next()},ExportNamedDeclaration:function(e,t){if(t.next(),"VariableDeclaration"===e.declaration?.type){t.state.analysis.runes&&"instance"===t.state.ast_type&&"let"===e.declaration.kind&&function(e){Is(e,"legacy_export_invalid","Cannot use `export let` in runes mode — use `$props()` instead\nhttps://svelte.dev/e/legacy_export_invalid")}(e);for(const n of e.declaration.declarations)for(const s of Di(n.id)){const n=t.state.scope.get(s.name);n&&("derived"===n.kind&&Ms(e),"state"!==n.kind&&"raw_state"!==n.kind||!n.reassigned||Xs(e))}}if(t.state.analysis.runes&&e.declaration&&"instance"===t.state.ast_type)if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type)t.state.analysis.exports.push({name:e.declaration.id.name,alias:null});else if("const"===e.declaration.kind)for(const n of e.declaration.declarations)for(const e of Di(n.id))t.state.analysis.exports.push({name:e.name,alias:null})},ExportSpecifier:function(e,t){const n="Identifier"===e.local.type?e.local.name:e.local.value,s="Identifier"===e.exported.type?e.exported.name:e.exported.value;if("instance"===t.state.ast_type){if(t.state.analysis.runes){t.state.analysis.exports.push({name:n,alias:s});const e=t.state.scope.get(n);e&&(e.reassigned=!0)}}else Ll(e,t.state.scope,n)},ExpressionStatement:function(e,t){if("NewExpression"===e.expression.type&&"Identifier"===e.expression.callee.type&&1===e.expression.arguments.length&&"ObjectExpression"===e.expression.arguments[0].type&&e.expression.arguments[0].properties.some((e=>"Property"===e.type&&"Identifier"===e.key.type&&"target"===e.key.name))){const n=t.state.scope.get(e.expression.callee.name);if("normal"===n?.kind&&"import"===n.declaration_kind){const t=n.initial;t.source.value.endsWith(".svelte")&&t.specifiers.find((e=>e.local.name===n.node.name&&"ImportDefaultSpecifier"===e.type))&&function(e){we(e,"legacy_component_creation","Svelte 5 components are no longer classes. Instantiate them using `mount` or `hydrate` (imported from 'svelte') instead.\nhttps://svelte.dev/e/legacy_component_creation")}(e.expression)}}t.next()},ExpressionTag:function(e,t){if("Fragment"===t.path.at(-1)?.type&&t.state.parent_element){const n=jo("#text",t.state.parent_element);n&&Rr(e,n)}Ec(t.path),t.next({...t.state,expression:e.metadata.expression})},FunctionDeclaration:function(e,t){t.state.analysis.runes&&null!==e.id&&ql(t.state.scope.get(e.id.name)),Pc(e,t)},FunctionExpression:function(e,t){Pc(e,t)},HtmlTag:function(e,t){t.state.analysis.runes&&Al(e,t.state,"@"),Ec(t.path),t.next()},Identifier:function(e,t){let n=t.path.length,s=t.path[--n];if(!Sl(e,s))return;if(Ec(t.path),"arguments"!==e.name||t.path.some((e=>"FunctionDeclaration"===e.type||"FunctionExpression"===e.type))||function(e){Is(e,"invalid_arguments_usage","The arguments keyword cannot be used within the template or at the top level of a component\nhttps://svelte.dev/e/invalid_arguments_usage")}(e),"$$slots"===e.name&&(t.state.analysis.uses_slots=!0),t.state.analysis.runes&&ie(e.name)&&null===t.state.scope.get(e.name)&&null===t.state.scope.get(e.name.slice(1))){let r=e,a=e.name;for(;"MemberExpression"===s.type;)s.computed&&Hs(s),a+=`.${s.property.name}`,r=s,s=t.path[--n],ie(a)||("$effect.active"===a&&Gs(s,"$effect.active","$effect.tracking"),"$state.frozen"===a&&Gs(s,"$state.frozen","$state.raw"),"$state.is"===a&&Ws(s,"$state.is"),Us(s,a));"CallExpression"!==s.type&&function(e){Is(e,"rune_missing_parentheses","Cannot use rune without parentheses\nhttps://svelte.dev/e/rune_missing_parentheses")}(r)}let r=t.state.scope.get(e.name);t.state.analysis.runes||("$$props"===e.name&&(t.state.analysis.uses_props=!0),"$$restProps"===e.name&&(t.state.analysis.uses_rest_props=!0)),r&&(t.state.expression&&(t.state.expression.dependencies.add(r),t.state.expression.has_state||="normal"!==r.kind),!t.state.analysis.runes||e===r.node||t.state.function_depth!==r.scope.function_depth||("state"!==r.kind||!r.reassigned&&("CallExpression"!==r.initial?.type||1!==r.initial.arguments.length||"SpreadElement"===r.initial.arguments[0].type||Hc(r.initial.arguments[0],t.state.scope)))&&"raw_state"!==r.kind&&"derived"!==r.kind||"AssignmentExpression"===s.type&&s.left===e||"UpdateExpression"===s.type||function(e){we(e,"state_referenced_locally","State referenced in its own scope will never update. Did you mean to reference it inside a closure?\nhttps://svelte.dev/e/state_referenced_locally")}(e),t.state.reactive_statement&&r.scope===t.state.analysis.module.scope&&r.reassigned&&function(e){we(e,"reactive_declaration_module_script_dependency","Reassignments of module-level declarations will not cause reactive statements to update\nhttps://svelte.dev/e/reactive_declaration_module_script_dependency")}(e))},IfBlock:function(e,t){$l(e.consequent),$l(e.alternate),t.state.analysis.runes&&Al(e,t.state,e.elseif?":":"#"),Ec(t.path),t.next()},ImportDeclaration:function(e,t){if(t.state.analysis.runes){const t=e.source.value;if(t.startsWith("svelte/internal")&&function(e){Is(e,"import_svelte_internal_forbidden","Imports of `svelte/internal/*` are forbidden. It contains private runtime code which is subject to change without notice. If you're importing from `svelte/internal/*` to work around a limitation of Svelte, please open an issue at https://github.com/sveltejs/svelte and explain your use case\nhttps://svelte.dev/e/import_svelte_internal_forbidden")}(e),"svelte"===t)for(const t of e.specifiers)"ImportSpecifier"===t.type&&("Identifier"!==t.imported.type||"beforeUpdate"!==t.imported.name&&"afterUpdate"!==t.imported.name||Ks(t,t.imported.name))}},KeyBlock:function(e,t){$l(e.fragment),t.state.analysis.runes&&Al(e,t.state,"#"),Ec(t.path),t.next()},LabeledStatement:function(e,t){if("$"===e.label.name){const n=t.path.at(-1);if("instance"===t.state.ast_type&&"Program"===n.type){t.state.analysis.runes&&function(e){Is(e,"legacy_reactive_statement_invalid","`$:` is not allowed in runes mode, use `$derived` or `$effect` instead\nhttps://svelte.dev/e/legacy_reactive_statement_invalid")}(e);const n={assignments:new Set,dependencies:[]};t.next({...t.state,reactive_statement:n,function_depth:t.state.scope.function_depth+1});for(const[e,s]of t.state.scope.references){const r=t.state.scope.get(e);if(null!==r)for(const{node:e,path:t}of s){let s=e,a=t.length-1,i=t.at(a);for(;"MemberExpression"===i.type;)s=i,i=t.at(--a);if("AssignmentExpression"!==i.type||"="!==i.operator||i.left!==s){n.dependencies.push(r);break}}}if(t.state.analysis.reactive_statements.set(e,n),"ExpressionStatement"===e.body.type&&"AssignmentExpression"===e.body.expression.type){let s=Di(e.body.expression.left);if("MemberExpression"===e.body.expression.left.type){const t=Ii(e.body.expression.left);null!==t&&(s=[t])}for(const e of s){const s=t.state.scope.get(e.name);"legacy_reactive"===s?.kind&&(s.legacy_dependencies=Array.from(n.dependencies))}}}else t.state.analysis.runes||function(e){we(e,"reactive_declaration_invalid_placement","Reactive declarations only exist at the top level of the instance script\nhttps://svelte.dev/e/reactive_declaration_invalid_placement")}(e)}t.next()},LetDirective:function(e,t){const n=t.path.at(-1);(void 0===n||"Component"!==n.type&&"RegularElement"!==n.type&&"SlotElement"!==n.type&&"SvelteElement"!==n.type&&"SvelteComponent"!==n.type&&"SvelteSelf"!==n.type&&"SvelteFragment"!==n.type)&&function(e){Is(e,"let_directive_invalid_placement","`let:` directive at invalid position\nhttps://svelte.dev/e/let_directive_invalid_placement")}(e)},MemberExpression:function(e,t){if("Identifier"===e.object.type&&"Identifier"===e.property.type){const n=t.state.scope.get(e.object.name);"rest_prop"===n?.kind&&e.property.name.startsWith("$$")&&js(e.property)}t.state.expression&&!Rl(e,t)&&(t.state.expression.has_state=!0),Il(e,t.state.scope)||(t.state.analysis.needs_context=!0),t.next()},NewExpression:function(e,t){"ClassExpression"===e.callee.type&&t.state.scope.function_depth>0&&function(e){we(e,"perf_avoid_inline_class","Avoid 'new class' — instead, declare the class at the top level scope\nhttps://svelte.dev/e/perf_avoid_inline_class")}(e),t.state.analysis.needs_context=!0,t.next()},OnDirective:function(e,t){if(t.state.analysis.runes){const n=t.path.at(-1)?.type;"RegularElement"!==n&&"SvelteElement"!==n||function(e,t){we(e,"event_directive_deprecated",`Using \`on:${t}\` to listen to the ${t} event is deprecated. Use the event attribute \`on${t}\` instead\nhttps://svelte.dev/e/event_directive_deprecated`)}(e,e.name)}const n=t.path.at(-1);"SvelteElement"!==n?.type&&"RegularElement"!==n?.type||(t.state.analysis.event_directive_node??=e),Ec(t.path),t.next({...t.state,expression:e.metadata.expression})},RegularElement:function(e,t){if(Ix(e,t),Tx(e,t),e.metadata.path=[...t.path],t.state.analysis.elements.push(e),"textarea"===e.name&&e.fragment.nodes.length>0){for(const t of e.attributes)"Attribute"===t.type&&"value"===t.name&&aa(e);if(e.fragment.nodes.length>1||"Text"!==e.fragment.nodes[0].type){const t=e.fragment.nodes[0];"Text"===t.type&&(t.data=t.data.replace(a,""),t.raw=t.raw.replace(a,"")),e.attributes.push(Lo("value",e.fragment.nodes.at(0).start,e.fragment.nodes.at(-1).end,e.fragment.nodes)),e.fragment.nodes=[]}}if("option"===e.name&&1===e.fragment.nodes?.length&&"ExpressionTag"===e.fragment.nodes[0].type&&!e.attributes.some((e=>"Attribute"===e.type&&"value"===e.name))){const t=e.fragment.nodes[0];e.attributes.push(Lo("value",t.start,t.end,[t]))}const n=t.state.scope.get(e.name);var s;if(null!==n&&"import"===n.declaration_kind&&0===n.references.length&&function(e,t){we(e,"component_name_lowercase",`\`<${t}>\` will be treated as an HTML element unless it begins with a capital letter\nhttps://svelte.dev/e/component_name_lowercase`)}(e,e.name),e.metadata.has_spread=e.attributes.some((e=>"SpreadAttribute"===e.type)),e.metadata.svg=(()=>{if(se(e.name))return!0;if("a"===e.name||"title"===e.name){let e=t.path.length;for(;e--;){const n=t.path[e];if("RegularElement"===n.type)return n.metadata.svg}}return!1})(),e.metadata.mathml=(s=e.name,re.includes(s)),qo(e)&&e.attributes.length>0&&Ec(t.path),t.state.parent_element){let n=!1,s=!1;const r=[t.state.parent_element];for(let a=t.path.length-1;a>=0;a--){const i=t.path[a];if("IfBlock"!==i.type&&"EachBlock"!==i.type&&"AwaitBlock"!==i.type&&"KeyBlock"!==i.type||(s=!0),n){if("RegularElement"===i.type){r.push(i.name);const t=Do(e.name,r);t&&(s?nt(e,t):Rr(e,t))}else if("Component"===i.type||"SvelteComponent"===i.type||"SvelteElement"===i.type||"SvelteSelf"===i.type||"SnippetBlock"===i.type)break}else if("RegularElement"===i.type&&i.name===t.state.parent_element){const r=jo(e.name,t.state.parent_element);r&&(s?nt(e,r):Rr(e,r)),n=!0}}}const r=e.name.replace(/[a-zA-Z-]*:/g,"");if("/"!==t.state.analysis.source[e.end-2]||j(r)||se(r)||function(e,t){we(e,"element_invalid_self_closing_tag",`Self-closing HTML tags for non-void elements are ambiguous — use \`<${t} ...></${t}>\` rather than \`<${t} ... />\`\nhttps://svelte.dev/e/element_invalid_self_closing_tag`)}(e,e.name),t.next({...t.state,parent_element:e.name}),"a"===e.name&&!t.state.parent_element)for(const t of e.fragment.nodes)if("RegularElement"===t.type&&t.metadata.svg&&"svg"!==t.name){e.metadata.svg=!0;break}},RenderTag:function(e,t){Al(e,t.state,"@"),e.metadata.path=[...t.path];const n=zi(e.expression),s=n.callee,r="Identifier"===s.type?t.state.scope.get(s.name):null;e.metadata.dynamic="normal"!==r?.kind;let a="Identifier"===s.type&&Lc(r);"SnippetBlock"===r?.initial?.type&&e.metadata.snippets.add(r.initial),t.state.analysis.snippet_renderers.set(e,a),t.state.analysis.uses_render_tags=!0;const i=zi(e.expression).arguments;for(const e of i)"SpreadElement"===e.type&&qr(e);"MemberExpression"===s.type&&"Identifier"===s.property.type&&["bind","apply","call"].includes(s.property.name)&&function(e){Is(e,"render_tag_invalid_call_expression","Calling a snippet function using apply, bind or call is not allowed\nhttps://svelte.dev/e/render_tag_invalid_call_expression")}(e),Ec(t.path),t.visit(s);for(const s of n.arguments){const n=Mo();e.metadata.arguments.push(n),t.visit(s,{...t.state,expression:n})}},SlotElement:function(e,t){t.state.analysis.runes&&!t.state.analysis.custom_element&&function(e){we(e,"slot_element_deprecated","Using `<slot>` to render parent content is deprecated. Use `{@render ...}` tags instead\nhttps://svelte.dev/e/slot_element_deprecated")}(e),Ec(t.path);let n="default";for(const t of e.attributes)"Attribute"===t.type?"name"===t.name&&(Ri(t)||Fr(t),n=t.value[0].data,"default"===n&&Vr(t)):"SpreadAttribute"!==t.type&&"LetDirective"!==t.type&&Br(t);t.state.analysis.slot_names.set(n,e),t.next()},SnippetBlock:function(e,t){t.state.analysis.snippets.add(e),$l(e.body),t.state.analysis.runes&&Al(e,t.state,"#");for(const t of e.parameters)"RestElement"===t.type&&Hr(t);t.next({...t.state,parent_element:null});const n=1===t.path.length&&"Fragment"===t.path[0].type&&qx(t.state.scope,t.state.scopes),s=e.expression.name;if(n){const e=t.state.scope.get(s);t.state.analysis.module.scope.declarations.set(s,e)}else{const e=t.state.analysis.undefined_exports.get(s);e&&function(e){Is(e,"snippet_invalid_export","An exported snippet can only reference things declared in a `<script module>`, or other exportable snippets\nhttps://svelte.dev/e/snippet_invalid_export")}(e)}e.metadata.can_hoist=n;const{path:r}=t,a=r.at(-2);a&&("Component"===a.type&&a.attributes.some((t=>("Attribute"===t.type||"BindDirective"===t.type)&&t.name===e.expression.name))&&function(e,t){Is(e,"snippet_shadowing_prop",`This snippet is shadowing the prop \`${t}\` with the same name\nhttps://svelte.dev/e/snippet_shadowing_prop`)}(e,e.expression.name),"children"===e.expression.name&&("Component"!==a.type&&"SvelteComponent"!==a.type&&"SvelteSelf"!==a.type||a.fragment.nodes.some((e=>"SnippetBlock"!==e.type&&("Text"!==e.type||e.data.trim())&&"Comment"!==e.type))&&function(e){Is(e,"snippet_conflict","Cannot use explicit children snippet at the same time as implicit children content. Remove either the non-whitespace content or the children snippet block\nhttps://svelte.dev/e/snippet_conflict")}(e)))},SpreadAttribute:function(e,t){Ec(t.path),t.next({...t.state,expression:e.metadata.expression})},SpreadElement:function(e,t){t.state.expression&&(t.state.expression.has_call=!0,t.state.expression.has_state=!0),t.next()},StyleDirective:function(e,t){if((e.modifiers.length>1||e.modifiers.length&&"important"!==e.modifiers[0])&&function(e){Is(e,"style_directive_invalid_modifier","`style:` directive can only use the `important` modifier\nhttps://svelte.dev/e/style_directive_invalid_modifier")}(e),Ec(t.path),!0===e.value){let n=t.state.scope.get(e.name);n&&"normal"!==n.kind&&(e.metadata.expression.has_state=!0)}else{t.next();for(const t of Mi(e.value))"ExpressionTag"===t.type&&(e.metadata.expression.has_state||=t.metadata.expression.has_state,e.metadata.expression.has_call||=t.metadata.expression.has_call)}},SvelteBody:function(e,t){vl(e);for(const t of e.attributes)("SpreadAttribute"===t.type||"Attribute"===t.type&&!Oi(t))&&Ur(t);t.next()},SvelteComponent:function(e,t){t.state.analysis.runes&&function(e){we(e,"svelte_component_deprecated","`<svelte:component>` is deprecated in runes mode — components are dynamic by default\nhttps://svelte.dev/e/svelte_component_deprecated")}(e),t.visit(e.expression),Mc(e,t)},SvelteDocument:function(e,t){vl(e);for(const t of e.attributes)("SpreadAttribute"===t.type||"Attribute"===t.type&&!Oi(t))&&Ir(t,"svelte:document");t.next()},SvelteElement:function(e,t){Ix(e,t),Tx(e,t),e.metadata.path=[...t.path],t.state.analysis.elements.push(e);const n=e.attributes.find((e=>"Attribute"===e.type&&"xmlns"===e.name&&Ri(e)));if(n)e.metadata.svg=n.value[0].data===P,e.metadata.mathml=n.value[0].data===E;else{let n=t.path.length;for(;n--;){const s=t.path[n];if("Component"===s.type||"SvelteComponent"===s.type||"SvelteFragment"===s.type||"SnippetBlock"===s.type||0===n){e.metadata.svg="svg"===t.state.options.namespace,e.metadata.mathml="mathml"===t.state.options.namespace;break}if("SvelteElement"===s.type||"RegularElement"===s.type){e.metadata.svg=("RegularElement"!==s.type||"foreignObject"!==s.name)&&s.metadata.svg,e.metadata.mathml=("RegularElement"!==s.type||"foreignObject"!==s.name)&&s.metadata.mathml;break}}}Ec(t.path),t.next({...t.state,parent_element:null})},SvelteFragment:function(e,t){const n=t.path.at(-2);"Component"!==n?.type&&"SvelteComponent"!==n?.type&&function(e){Is(e,"svelte_fragment_invalid_placement","`<svelte:fragment>` must be the direct child of a component\nhttps://svelte.dev/e/svelte_fragment_invalid_placement")}(e);for(const n of e.attributes)"Attribute"===n.type?"slot"===n.name&&qc(t,n):"LetDirective"!==n.type&&Kr(n);t.next({...t.state,parent_element:null})},SvelteHead:function(e,t){for(const t of e.attributes)Xr(t);Ec(t.path),t.next()},SvelteSelf:function(e,t){const n=t.path.some((e=>"IfBlock"===e.type||"EachBlock"===e.type||"Component"===e.type||"SnippetBlock"===e.type));if(n||function(e){Is(e,"svelte_self_invalid_placement","`<svelte:self>` components can only exist inside `{#if}` blocks, `{#each}` blocks, `{#snippet}` blocks or slots passed to components\nhttps://svelte.dev/e/svelte_self_invalid_placement")}(e),t.state.analysis.runes){!function(e,t,n){we(e,"svelte_self_deprecated",`\`<svelte:self>\` is deprecated — use self-imports (e.g. \`import ${t} from './${n}'\`) instead\nhttps://svelte.dev/e/svelte_self_deprecated`)}(e,"(unknown)"===oe?"Self":t.state.analysis.name,"(unknown)"===oe?"Self.svelte":oe.split(/[/\\]/).pop())}Mc(e,t)},SvelteWindow:function(e,t){vl(e);for(const t of e.attributes)("SpreadAttribute"===t.type||"Attribute"===t.type&&!Oi(t))&&Ir(t,"svelte:window");t.next()},SvelteBoundary:function(e,t){for(const t of e.attributes)"Attribute"===t.type&&Lx.includes(t.name)||zr(t),(!0===t.value||Array.isArray(t.value)&&(1!==t.value.length||"ExpressionTag"!==t.value[0].type))&&Wr(t);t.next()},TaggedTemplateExpression:function(e,t){t.state.expression&&!Rl(e.tag,t)&&(t.state.expression.has_call=!0,t.state.expression.has_state=!0),t.next()},Text:function(e,t){if("Fragment"===t.path.at(-1)?.type&&t.state.parent_element&&p.test(e.data)){const n=jo("#text",t.state.parent_element);n&&Rr(e,n)}},TransitionDirective:function(e,t){Ec(t.path),t.next()},TitleElement:function(e,t){for(const t of e.attributes)ia(t);for(const t of e.fragment.nodes)"Text"!==t.type&&"ExpressionTag"!==t.type&&oa(t);t.next()},UpdateExpression:function(e,t){if(El(e,e.argument,t.state),t.state.reactive_statement){const n="MemberExpression"===e.argument.type?Ii(e.argument):e.argument;if("Identifier"===n?.type){const e=t.state.scope.get(n.name);e&&t.state.reactive_statement.assignments.add(e)}}t.next()},UseDirective:function(e,t){Ec(t.path),t.next()},VariableDeclarator:function(e,t){if(function(e,t){const n=Di(e.id);for(const s of n)"instance"===t.ast_type&&t.scope===t.analysis.instance.scope&&"import"===t.analysis.module.scope.get(s.name)?.declaration_kind&&Ls(e.id)}(e,t.state),t.state.analysis.runes){const n=Bl(e.init,t.state.scope),s=Fi(e.id);for(const e of s)ql(t.state.scope.get(e.node.name));if("$state"===n||"$state.raw"===n||"$derived"===n||"$derived.by"===n||"$props"===n)for(const e of s){t.state.scope.get(e.node.name).kind="$state"===n?"state":"$state.raw"===n?"raw_state":"$derived"===n||"$derived.by"===n?"derived":e.is_rest?"rest_prop":"prop"}if("$props"===n)if("ObjectPattern"!==e.id.type&&"Identifier"!==e.id.type&&function(e){Is(e,"props_invalid_identifier","`$props()` can only be used with an object destructuring pattern\nhttps://svelte.dev/e/props_invalid_identifier")}(e),t.state.analysis.needs_props=!0,"Identifier"===e.id.type){const n=t.state.scope.get(e.id.name);n.initial=null,n.kind="rest_prop"}else{Mx(e.id.type,"ObjectPattern");for(const n of e.id.properties){if("Property"!==n.type)continue;n.computed&&Bs(n),"Identifier"===n.key.type&&n.key.name.startsWith("$$")&&js(n);const e="AssignmentPattern"===n.value.type?n.value.left:n.value;"Identifier"!==e.type&&Bs(n);const s="Identifier"===n.key.type?n.key.name:String(n.key.value);let r="AssignmentPattern"===n.value.type?n.value.right:null;const a=t.state.scope.get(e.name);a.prop_alias=s,"CallExpression"===r?.type&&"Identifier"===r.callee.type&&"$bindable"===r.callee.name?(a.initial=r.arguments[0]??null,a.kind="bindable_prop"):a.initial=r}}}else if("CallExpression"===e.init?.type){const n=e.init.callee;"Identifier"!==n.type||"$state"!==n.name&&"$derived"!==n.name&&"$props"!==n.name||"store_sub"===t.state.scope.get(n.name)?.kind||function(e,t){Is(e,"rune_invalid_usage",`Cannot use \`${t}\` rune in non-runes mode\nhttps://svelte.dev/e/rune_invalid_usage`)}(e.init,n.name)}t.next()}};function Nx(e,t,n,s){const r=e?.content??{type:"Program",sourceType:"module",start:-1,end:-1,body:[]},{scope:a,scopes:i}=Dl(r,t,n,s);return{ast:r,scope:a,scopes:i}}const Dx=["$$props","$$restProps","$$slots"];function jx(e,n,s){const r=new Nl,a=Nx(e.module,r,!1,null),i=Nx(e.instance,r,!0,a.scope),{scope:o,scopes:l}=Dl(e.fragment,r,!1,i.scope),c={ast:e.fragment,scope:o,scopes:l};let p=[];for(const[e,t]of a.scope.references){if("$"!==e[0]||Dx.includes(e))continue;"$"!==e&&"$"!==e[1]||Ns(t[0].node,e);const n=e.slice(1),r=i.scope.get(n),o=r?.initial;if(!1===s.runes||!ie(e)||null!==r&&(null===Bl(o,i.scope)||"props"!==n&&"$props"===Bl(o,i.scope))&&("$derived"!==e||"ImportDeclaration"!==r.initial?.type||"svelte/store"!==r.initial.source.value)){let o;e:for(const e of t)for(let t=e.path.length-1;t>=0;t--){const s=l.get(e.path[t])||a.scopes.get(e.path[t])||i.scopes.get(e.path[t]);if(s){const t=s?.owner(n);if(t&&t!==a.scope&&t!==i.scope){o=e.node;break e}break}}if(o&&Is(o,"store_invalid_scoped_subscription","Cannot subscribe to stores that are not declared at the top level of the component\nhttps://svelte.dev/e/store_invalid_scoped_subscription"),!1!==s.runes)if(null===r&&/[a-z]/.test(n[0]))Ns(t[0].node,e);else if(null!==r&&ie(e))for(const{node:e,path:s}of t)"CallExpression"===s.at(-1)?.type&&Je(e,n);if(a.ast)for(const{node:e,path:n}of t)e.start>a.ast.start&&e.end<a.ast.end&&null===Bl(n.at(-1),a.scope)&&Ys(e);p.push((()=>{null!==r&&"normal"===r.kind&&"let"===r.declaration_kind&&r.reassigned&&(r.kind="state")}));i.scope.declare(Ga(e),"store_sub","synthetic").references=t,i.scope.references.set(e,t),a.scope.references.delete(e)}}const u=function(e){const t=e.split(/[/\\]/),n=t.pop(),s=t.at(-1);let r=n.replace(".svelte","");return"index"===r&&s&&"src"!==s&&(r=s),r[0].toUpperCase()+r.slice(1)}(s.filename),d=s.runes??Array.from(a.scope.references.keys()).some(ie);if(!d)for(let e of p)e();if(d&&e.module){const t=e.module.attributes.find((e=>"context"===e.name));t&&function(e){we(e,"script_context_deprecated",'`context="module"` is deprecated, use the `module` attribute instead\nhttps://svelte.dev/e/script_context_deprecated')}(t)}const h={name:a.scope.generate(s.name??u),root:r,module:a,instance:i,template:c,elements:[],runes:d,tracing:!1,immutable:d||s.immutable,exports:[],uses_props:!1,props_id:null,uses_rest_props:!1,uses_slots:!1,uses_component_bindings:!1,uses_render_tags:!1,needs_context:!1,needs_props:!1,event_directive_node:null,uses_event_attributes:!1,custom_element:s.customElementOptions??s.customElement,inject_styles:"injected"===s.css||s.customElement,accessors:!!s.customElement||(!d&&!!s.accessors||4===s.compatibility?.componentApi),reactive_statements:new Map,binding_groups:new Map,slot_names:new Map,css:{ast:e.css,hash:e.css?s.cssHash({css:e.css.content.styles,filename:s.filename,name:u,hash:N}):"",keyframes:[]},source:n,undefined_exports:new Map,snippet_renderers:new Map,snippets:new Set};if(!d){for(const e of i.ast.body)if("ExportNamedDeclaration"===e.type)if(h.needs_props=!0,e.declaration){if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type)h.exports.push({name:e.declaration.id.name,alias:null});else if("VariableDeclaration"===e.declaration.type)if("const"===e.declaration.kind)for(const t of e.declaration.declarations)for(const e of Di(t.id))h.exports.push({name:e.name,alias:null});else for(const t of e.declaration.declarations)for(const e of Di(t.id)){i.scope.get(e.name).kind="bindable_prop"}}else for(const t of e.specifiers){if("Identifier"!==t.local.type||"Identifier"!==t.exported.type)continue;const e=i.scope.get(t.local.name);!e||"var"!==e.declaration_kind&&"let"!==e.declaration_kind?h.exports.push({name:t.local.name,alias:t.exported.name}):(e.kind="bindable_prop",t.exported.name!==t.local.name&&(e.prop_alias=t.exported.name))}for(const e of i.scope.declarations.values())if("normal"===e.kind)for(const{node:t,path:n}of e.references)t!==e.node&&e.updated&&("StyleDirective"===n[n.length-1].type||n.some((e=>"Fragment"===e.type))||"LabeledStatement"===n[1].type&&"$"===n[1].label.name)&&(e.kind="state");t(c.ast,null,{EachBlock(e){const n=c.scopes.get(e);for(const s of n.declarations.values())if(s.updated){const s={scope:n.parent,scopes:c.scopes};t(e.expression,s,{_:jl,Identifier(e,t){if(Sl(e,t.path.at(-1))){const n=t.state.scope.get(e.name);n&&"normal"===n.kind&&"import"!==n.declaration_kind&&(n.kind="state",n.mutated=!0)}}});break}}})}if(e.options)for(const t of e.options.attributes)"accessors"===t.name&&h.runes&&We(t),"customElement"!==t.name||s.customElement||Ke(t),"immutable"===t.name&&h.runes&&Ge(t);if(h.runes){const e=a.scope.references.get("$$props");e&&function(e){Is(e,"legacy_props_invalid","Cannot use `$$props` in runes mode\nhttps://svelte.dev/e/legacy_props_invalid")}(e[0].node);const n=a.scope.references.get("$$restProps");n&&function(e){Is(e,"legacy_rest_props_invalid","Cannot use `$$restProps` in runes mode\nhttps://svelte.dev/e/legacy_rest_props_invalid")}(n[0].node);for(const{ast:e,scope:n,scopes:r}of[a,i,c]){t(e,{scope:n,scopes:r,analysis:h,options:s,ast_type:e===i.ast?"instance":e===c.ast?"template":"module",parent_element:null,has_props_rune:!1,component_slots:new Set,expression:null,derived_state:[],function_depth:n.function_depth,reactive_statement:null},Ox)}for(const e of[a.scope,i.scope])e:for(const[t,n]of e.declarations)if("normal"===n.kind&&n.reassigned)t:for(const{path:e}of n.references)if("Fragment"===e[0].type){for(let s=1;s<e.length;s+=1){const r=e[s].type;if("FunctionDeclaration"===r||"FunctionExpression"===r||"ArrowFunctionExpression"===r)continue t;if("BindDirective"===r&&"this"===e[s].name){for(let r=s-1;r>=0;r-=1){const s=e[r].type;if("IfBlock"===s||"EachBlock"===s||"AwaitBlock"===s||"KeyBlock"===s){Ye(n.node,t);continue e}}continue t}}Ye(n.node,t);continue e}}else{i.scope.declare(Ga("$$props"),"rest_prop","synthetic"),i.scope.declare(Ga("$$restProps"),"rest_prop","synthetic");for(const{ast:e,scope:n,scopes:r}of[a,i,c]){t(e,{scope:n,scopes:r,analysis:h,options:s,parent_element:null,has_props_rune:!1,ast_type:e===i.ast?"instance":e===c.ast?"template":"module",reactive_statement:null,component_slots:new Set,expression:null,derived_state:[],function_depth:n.function_depth},Ox)}for(const[e,t]of i.scope.declarations)if(("prop"===t.kind||"bindable_prop"===t.kind)&&"$$props"!==t.node.name){t.references.filter((e=>e.node!==t.node&&"ExportSpecifier"!==e.path.at(-1)?.type)).length||i.scope.declarations.has(`$${e}`)||Qe(t.node,e)}h.reactive_statements=function(e){const t=new Map;for(const[n,s]of e)for(const e of s.assignments){const r=t.get(e.node.name)??[];r.push([n,s]),t.set(e.node.name,r)}const n=[];for(const[,{assignments:t,dependencies:s}]of e)for(const e of t)for(const r of s)t.has(r)||n.push([e.node.name,r.node.name]);const s=Fl(n);if(s?.length){!function(e,t){Is(e,"reactive_declaration_cycle",`Cyclical dependency detected: ${t}\nhttps://svelte.dev/e/reactive_declaration_cycle`)}(t.get(s[0])[0][0],s.join(" → "))}const r=new Map,a=(e,n)=>{if(![...r.values()].includes(n)){for(const e of n.dependencies)if(!n.assignments.has(e))for(const[n,s]of t.get(e.node.name)??[])a(n,s);r.set(e,n)}};for(const[t,n]of e)a(t,n);return r}(h.reactive_statements)}for(const e of h.module.ast.body)if("ExportNamedDeclaration"===e.type&&null!==e.specifiers&&null==e.source)for(const t of e.specifiers){if("Identifier"!==t.local.type)continue;h.module.scope.get(t.local.name)||Os(t,t.local.name)}h.event_directive_node&&h.uses_event_attributes&&function(e,t){Is(e,"mixed_event_handler_syntaxes",`Mixing old (on:${t}) and new syntaxes for event handling is not allowed. Use only the on${t} syntax\nhttps://svelte.dev/e/mixed_event_handler_syntaxes`)}(h.event_directive_node,h.event_directive_node.name);for(const[e,t]of h.snippet_renderers){t||(e.metadata.snippets=h.snippets);for(const t of e.metadata.snippets)t.metadata.sites.add(e)}if(h.uses_render_tags&&(h.uses_slots||!h.custom_element&&h.slot_names.size>0)){!function(e){Is(e,"slot_snippet_conflict","Cannot use `<slot>` syntax and `{@render ...}` tags in the same component. Migrate towards `{@render ...}` tags completely\nhttps://svelte.dev/e/slot_snippet_conflict")}(h.slot_names.values().next().value??h.source.indexOf("$$slot"))}if(h.css.ast){!function(e,n){t(e,{keyframes:n.css.keyframes,rule:null},Jl)}(h.css.ast,h);for(const e of h.elements)lc(h.css.ast,e);const{comment:e}=h.css.ast.content;e&&ot(e.start,e.data,h.runes).includes("css_unused_selector")||t(m=h.css.ast,{stylesheet:m},Sc)}var m;for(const e of h.elements){e.metadata.scoped&&qo(e)&&Ec(e.metadata.path);let t=!1,n=!1,s=!1,r=!1,a=!1;for(const i of e.attributes){if("SpreadAttribute"===i.type){s=!0;break}"Attribute"===i.type?(t||="class"===i.name.toLowerCase(),n||="style"===i.name.toLowerCase()):"ClassDirective"===i.type?r=!0:"StyleDirective"===i.type&&(a=!0)}s||t||!e.metadata.scoped&&!r||e.attributes.push(Lo("class",-1,-1,[{type:"Text",data:"",raw:"",start:-1,end:-1}])),s||n||!a||e.attributes.push(Lo("style",-1,-1,[{type:"Text",data:"",raw:"",start:-1,end:-1}]))}return h}const Bx={type:"Newline"},Fx={type:"Indent"},Vx={type:"Dedent"};function Hx(e,t,n=e.length){let s=0;for(let r=t;r<n;r+=1){const t=e[r];"string"==typeof t?s+=t.length:Array.isArray(t)&&(s+=0===t.length?2:Hx(t,0))}return s}function Ux(e,t){const n=e,s=sC[e.type];if(!s)throw new Error(`Not implemented ${e.type}`);n.leadingComments&&Gx(n.leadingComments,t,!1),s(e,t),n.trailingComments&&t.comments.push(n.trailingComments[0])}function zx(e,t){return{type:"Location",line:e,column:t}}function Wx(e,t){return t.loc?[zx(t.loc.start.line,t.loc.start.column),e,zx(t.loc.end.line,t.loc.end.column)]:e}function Gx(e,t,n){for(const s of e)t.commands.push({type:"Comment",comment:s}),n||"Line"===s.type||/\n/.test(s.value)?t.commands.push(Bx):t.commands.push(" ")}const Kx={"||":2,"&&":3,"??":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},Xx={JSXFragment:20,JSXElement:20,ArrayPattern:20,ObjectPattern:20,ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,MetaProperty:19,CallExpression:19,ChainExpression:19,ImportExpression:19,NewExpression:19,Literal:18,TSSatisfiesExpression:18,TSInstantiationExpression:18,TSNonNullExpression:18,TSTypeAssertion:18,AwaitExpression:17,ClassExpression:17,FunctionExpression:17,ObjectExpression:17,TSAsExpression:16,UpdateExpression:16,UnaryExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,ArrowFunctionExpression:3,AssignmentExpression:3,YieldExpression:2,RestElement:1};function Qx(e,t,n){if("PrivateIdentifier"===e.type)return!1;if("LogicalExpression"===e.type&&"LogicalExpression"===t.type&&("??"===t.operator&&"??"!==e.operator||"??"!==t.operator&&"??"===e.operator))return!0;const s=Xx[e.type],r=Xx[t.type];return s!==r?!n&&15===s&&14===r&&"**"===t.operator||s<r:(13===s||14===s)&&("**"===e.operator&&"**"===t.operator?!n:n?Kx[e.operator]<=Kx[t.operator]:Kx[e.operator]<Kx[t.operator])}const Yx=["ImportDeclaration","VariableDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration"],Jx=(e,t)=>{let n={type:"EmptyStatement"},s=!0,r=!1;for(const a of e){if("EmptyStatement"===a.type)continue;const e=[];s||t.commands.push(e,Bx),s=!1;const i=a,o=i.leadingComments;delete i.leadingComments,o&&o.length>0&&Gx(o,t,!0);const l={...t,multiline:!1};Ux(a,l),(l.multiline||r||(Yx.includes(a.type)||Yx.includes(n.type))&&n.type!==a.type)&&e.push("\n");let c=!1;for(;t.comments.length;){const e=t.comments.shift();t.commands.push(c?Bx:" ",{type:"Comment",comment:e}),c="Line"===e.type}r=l.multiline,n=a}},Zx=(e,t)=>{const n=t.commands.length,s=[],r=[],a={...t,multiline:!1};t.commands.push(`${e.kind} `,s);let i=!0;for(const n of e.declarations)i||t.commands.push(r),i=!1,Ux(n,a);a.multiline||e.declarations.length>1&&Hx(t.commands,n)>50?(t.multiline=!0,e.declarations.length>1&&s.push(Fx),r.push(",",Bx),e.declarations.length>1&&t.commands.push(Vx)):r.push(", ")};function eC(e,t,n,s,r=","){if(0===e.length)return;const a=t.commands.length,i=[],o=[],l=[];t.commands.push(i);const c={...t,multiline:!1};let p;for(let n=0;n<e.length;n+=1){const a=e[n],i=0===n,l=n===e.length-1;if(a)if(i||p||t.commands.push(o),s(a,c),l||t.commands.push(r),t.comments.length>0){for(t.commands.push(" ");t.comments.length;){const e=t.comments.shift();t.commands.push({type:"Comment",comment:e}),l||t.commands.push(o)}c.multiline=!0}else l||t.commands.push(o);else t.commands.push(r);p=a}t.commands.push(l);c.multiline||Hx(t.commands,a)>50?(t.multiline=!0,i.push(Fx,Bx),o.push(Bx),l.push(Vx,Bx)):(n&&i.push(" "),o.push(" "),n&&l.push(" "))}function tC(e,t){switch(e.type){case"TSNumberKeyword":t.commands.push("number");break;case"TSStringKeyword":t.commands.push("string");break;case"TSBooleanKeyword":t.commands.push("boolean");break;case"TSAnyKeyword":t.commands.push("any");break;case"TSVoidKeyword":t.commands.push("void");break;case"TSUnknownKeyword":t.commands.push("unknown");break;case"TSNeverKeyword":t.commands.push("never");break;case"TSArrayType":tC(e.elementType,t),t.commands.push("[]");break;case"TSTypeAnnotation":t.commands.push(": "),tC(e.typeAnnotation,t);break;case"TSTypeLiteral":t.commands.push("{ "),eC(e.members,t,!1,tC,";"),t.commands.push(" }");break;case"TSPropertySignature":Ux(e.key,t),e.optional&&t.commands.push("?"),e.typeAnnotation&&tC(e.typeAnnotation,t);break;case"TSTypeReference":Ux(e.typeName,t),e.typeParameters&&tC(e.typeParameters,t);break;case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":t.commands.push("<");for(let n=0;n<e.params.length;n++)tC(e.params[n],t),n!=e.params.length-1&&t.commands.push(", ");t.commands.push(">");break;case"TSTypeParameter":t.commands.push(e.name),e.constraint&&(t.commands.push(" extends "),tC(e.constraint,t));break;case"TSTypeQuery":t.commands.push("typeof "),Ux(e.exprName,t);break;case"TSEnumMember":Ux(e.id,t),e.initializer&&(t.commands.push(" = "),Ux(e.initializer,t));break;case"TSFunctionType":e.typeParameters&&tC(e.typeParameters,t);const n=e.parameters;t.commands.push("("),eC(n,t,!1,Ux),t.commands.push(") => "),tC(e.typeAnnotation.typeAnnotation,t);break;case"TSIndexSignature":const s=e.parameters;t.commands.push("["),eC(s,t,!1,Ux),t.commands.push("]"),tC(e.typeAnnotation,t);break;case"TSMethodSignature":Ux(e.key,t);const r=e.parameters;t.commands.push("("),eC(r,t,!1,Ux),t.commands.push(")"),tC(e.typeAnnotation,t);break;case"TSExpressionWithTypeArguments":Ux(e.expression,t);break;case"TSTupleType":t.commands.push("["),eC(e.elementTypes,t,!1,tC),t.commands.push("]");break;case"TSNamedTupleMember":Ux(e.label,t),t.commands.push(": "),tC(e.elementType,t);break;case"TSUnionType":eC(e.types,t,!1,tC," |");break;case"TSIntersectionType":eC(e.types,t,!1,tC," &");break;case"TSLiteralType":Ux(e.literal,t);break;case"TSConditionalType":tC(e.checkType,t),t.commands.push(" extends "),tC(e.extendsType,t),t.commands.push(" ? "),tC(e.trueType,t),t.commands.push(" : "),tC(e.falseType,t);break;case"TSIndexedAccessType":tC(e.objectType,t),t.commands.push("["),tC(e.indexType,t),t.commands.push("]");break;default:throw new Error(`Not implemented type annotation ${e.type}`)}}const nC={"ArrayExpression|ArrayPattern":(e,t)=>{t.commands.push("["),eC(e.elements,t,!1,Ux),t.commands.push("]")},"BinaryExpression|LogicalExpression":(e,t)=>{Qx(e.left,e,!1)?(t.commands.push("("),Ux(e.left,t),t.commands.push(")")):Ux(e.left,t),t.commands.push(` ${e.operator} `),Qx(e.right,e,!0)?(t.commands.push("("),Ux(e.right,t),t.commands.push(")")):Ux(e.right,t)},"BlockStatement|ClassBody":(e,t)=>{if(e.loc){const{line:n,column:s}=e.loc.start;t.commands.push(zx(n,s),"{",zx(n,s+1))}else t.commands.push("{");if(e.body.length>0&&(t.multiline=!0,t.commands.push(Fx,Bx),Jx(e.body,t),t.commands.push(Vx,Bx)),e.loc){const{line:n,column:s}=e.loc.end;t.commands.push(zx(n,s-1),"}",zx(n,s))}else t.commands.push("}")},"CallExpression|NewExpression":(e,t)=>{"NewExpression"===e.type&&t.commands.push("new ");const n=Xx[e.callee.type]<Xx.CallExpression||"NewExpression"===e.type&&function(e){for(;e;){if("CallExpression"===e.type)return!0;if("MemberExpression"!==e.type)return!1;e=e.object}}(e.callee);n?(t.commands.push("("),Ux(e.callee,t),t.commands.push(")")):Ux(e.callee,t),e.optional&&t.commands.push("?."),e.typeParameters&&tC(e.typeParameters,t);const s=[],r=[],a=[];t.commands.push("(",s);const i={...t,multiline:!1},o={...t,multiline:!1};for(let n=0;n<e.arguments.length;n+=1){if(n>0)if(t.comments.length>0)for(t.commands.push(", ");t.comments.length;){const e=t.comments.shift();t.commands.push({type:"Comment",comment:e}),"Line"===e.type?(i.multiline=!0,t.commands.push(Bx)):t.commands.push(" ")}else t.commands.push(r);Ux(e.arguments[n],n===e.arguments.length-1?o:i)}t.commands.push(a,")");const l=i.multiline;(l||o.multiline)&&(t.multiline=!0),l?(s.push(Fx,Bx),r.push(",",Bx),a.push(Vx,Bx)):r.push(", ")},"ClassDeclaration|ClassExpression":(e,t)=>{t.commands.push("class "),e.id&&(Ux(e.id,t),t.commands.push(" ")),e.superClass&&(t.commands.push("extends "),Ux(e.superClass,t),t.commands.push(" ")),e.implements&&(t.commands.push("implements "),eC(e.implements,t,!1,tC)),Ux(e.body,t)},"ForInStatement|ForOfStatement":(e,t)=>{t.commands.push("for "),"ForOfStatement"===e.type&&e.await&&t.commands.push("await "),t.commands.push("("),"VariableDeclaration"===e.left.type?Zx(e.left,t):Ux(e.left,t),t.commands.push("ForInStatement"===e.type?" in ":" of "),Ux(e.right,t),t.commands.push(") "),Ux(e.body,t)},"FunctionDeclaration|FunctionExpression":(e,t)=>{e.async&&t.commands.push("async "),t.commands.push(e.generator?"function* ":"function "),e.id&&Ux(e.id,t),e.typeParameters&&tC(e.typeParameters,t),t.commands.push("("),eC(e.params,t,!1,Ux),t.commands.push(")"),e.returnType&&tC(e.returnType,t),t.commands.push(" "),Ux(e.body,t)},"RestElement|SpreadElement":(e,t)=>{t.commands.push("..."),Ux(e.argument,t),e.typeAnnotation&&tC(e.typeAnnotation,t)}},sC={ArrayExpression:nC["ArrayExpression|ArrayPattern"],ArrayPattern:nC["ArrayExpression|ArrayPattern"],ArrowFunctionExpression:(e,t)=>{e.async&&t.commands.push("async "),t.commands.push("("),eC(e.params,t,!1,Ux),t.commands.push(") => "),"ObjectExpression"===e.body.type||"AssignmentExpression"===e.body.type&&"ObjectPattern"===e.body.left.type||"LogicalExpression"===e.body.type&&"ObjectExpression"===e.body.left.type||"ConditionalExpression"===e.body.type&&"ObjectExpression"===e.body.test.type?(t.commands.push("("),Ux(e.body,t),t.commands.push(")")):Ux(e.body,t)},AssignmentExpression(e,t){Ux(e.left,t),t.commands.push(` ${e.operator} `),Ux(e.right,t)},AssignmentPattern(e,t){Ux(e.left,t),t.commands.push(" = "),Ux(e.right,t)},AwaitExpression(e,t){if(e.argument){const n=Xx[e.argument.type];n&&n<Xx.AwaitExpression?(t.commands.push("await ("),Ux(e.argument,t),t.commands.push(")")):(t.commands.push("await "),Ux(e.argument,t))}else t.commands.push("await")},BinaryExpression:nC["BinaryExpression|LogicalExpression"],BlockStatement:nC["BlockStatement|ClassBody"],BreakStatement(e,t){e.label?(t.commands.push("break "),Ux(e.label,t),t.commands.push(";")):t.commands.push("break;")},CallExpression:nC["CallExpression|NewExpression"],ChainExpression(e,t){Ux(e.expression,t)},ClassBody:nC["BlockStatement|ClassBody"],ClassDeclaration:nC["ClassDeclaration|ClassExpression"],ClassExpression:nC["ClassDeclaration|ClassExpression"],ConditionalExpression(e,t){Xx[e.test.type]>Xx.ConditionalExpression?Ux(e.test,t):(t.commands.push("("),Ux(e.test,t),t.commands.push(")"));const n=[],s=[],r={...t,multiline:!1};t.commands.push(n),Ux(e.consequent,r),t.commands.push(s),Ux(e.alternate,r);r.multiline?(n.push(Fx,Bx,"? "),s.push(Bx,": "),t.commands.push(Vx)):(n.push(" ? "),s.push(" : "))},ContinueStatement(e,t){e.label?(t.commands.push("continue "),Ux(e.label,t),t.commands.push(";")):t.commands.push("continue;")},DebuggerStatement(e,t){t.commands.push(Wx("debugger",e),";")},Decorator(e,t){t.commands.push("@"),Ux(e.expression,t),t.commands.push(Bx)},DoWhileStatement(e,t){t.commands.push("do "),Ux(e.body,t),t.commands.push(" while ("),Ux(e.test,t),t.commands.push(");")},EmptyStatement(e,t){t.commands.push(";")},ExportAllDeclaration(e,t){t.commands.push("export * "),e.exported&&(t.commands.push("as "),Ux(e.exported,t)),t.commands.push(" from "),Ux(e.source,t),t.commands.push(";")},ExportDefaultDeclaration(e,t){t.commands.push("export default "),Ux(e.declaration,t),"FunctionDeclaration"!==e.declaration.type&&t.commands.push(";")},ExportNamedDeclaration(e,t){t.commands.push("export "),e.declaration?Ux(e.declaration,t):(t.commands.push("{"),eC(e.specifiers,t,!0,((e,t)=>{Ux(e.local,t),e.local.name!==e.exported.name&&(t.commands.push(" as "),Ux(e.exported,t))})),t.commands.push("}"),e.source&&(t.commands.push(" from "),Ux(e.source,t)),t.commands.push(";"))},ExpressionStatement(e,t){if("ObjectExpression"===e.expression.type||"AssignmentExpression"===e.expression.type&&"ObjectPattern"===e.expression.left.type)return t.commands.push("("),Ux(e.expression,t),void t.commands.push(");");Ux(e.expression,t),t.commands.push(";")},ForStatement:(e,t)=>{t.commands.push("for ("),e.init&&("VariableDeclaration"===e.init.type?Zx(e.init,t):Ux(e.init,t)),t.commands.push("; "),e.test&&Ux(e.test,t),t.commands.push("; "),e.update&&Ux(e.update,t),t.commands.push(") "),Ux(e.body,t)},ForInStatement:nC["ForInStatement|ForOfStatement"],ForOfStatement:nC["ForInStatement|ForOfStatement"],FunctionDeclaration:nC["FunctionDeclaration|FunctionExpression"],FunctionExpression:nC["FunctionDeclaration|FunctionExpression"],Identifier(e,t){let n=e.name;t.commands.push(Wx(n,e)),e.typeAnnotation&&tC(e.typeAnnotation,t)},IfStatement(e,t){t.commands.push("if ("),Ux(e.test,t),t.commands.push(") "),Ux(e.consequent,t),e.alternate&&(t.commands.push(" else "),Ux(e.alternate,t))},ImportDeclaration(e,t){if(0===e.specifiers.length)return t.commands.push("import "),Ux(e.source,t),void t.commands.push(";");let n=null,s=null;const r=[];for(const t of e.specifiers)"ImportNamespaceSpecifier"===t.type?n=t:"ImportDefaultSpecifier"===t.type?s=t:r.push(t);t.commands.push("import "),"type"==e.importKind&&t.commands.push("type "),s&&(t.commands.push(Wx(s.local.name,s)),(n||r.length>0)&&t.commands.push(", ")),n&&t.commands.push(Wx("* as "+n.local.name,n)),r.length>0&&(t.commands.push("{"),eC(r,t,!0,((e,t)=>{e.local.name!==e.imported.name&&(Ux(e.imported,t),t.commands.push(" as ")),"type"==e.importKind&&t.commands.push("type "),Ux(e.local,t)})),t.commands.push("}")),t.commands.push(" from "),Ux(e.source,t),t.commands.push(";")},ImportExpression(e,t){t.commands.push("import("),Ux(e.source,t),t.commands.push(")")},LabeledStatement(e,t){Ux(e.label,t),t.commands.push(": "),Ux(e.body,t)},Literal(e,t){const n=e.raw||("string"==typeof e.value?function(e,t){let n=t,s=!1;for(const r of e)s?(n+=r,s=!1):"\\"===r?(n+="\\\\",s=!0):n+=r===t?"\\"+r:"\n"===r?"\\n":"\r"===r?"\\r":r;return n+t}(e.value,t.quote):String(e.value));t.commands.push(Wx(n,e))},LogicalExpression:nC["BinaryExpression|LogicalExpression"],MemberExpression(e,t){Xx[e.object.type]<Xx.MemberExpression?(t.commands.push("("),Ux(e.object,t),t.commands.push(")")):Ux(e.object,t),e.computed?(e.optional&&t.commands.push("?."),t.commands.push("["),Ux(e.property,t),t.commands.push("]")):(t.commands.push(e.optional?"?.":"."),Ux(e.property,t))},MetaProperty(e,t){Ux(e.meta,t),t.commands.push("."),Ux(e.property,t)},MethodDefinition(e,t){if(e.decorators)for(const n of e.decorators)Ux(n,t);e.static&&t.commands.push("static "),"get"!==e.kind&&"set"!==e.kind||t.commands.push(e.kind+" "),e.value.async&&t.commands.push("async "),e.value.generator&&t.commands.push("*"),e.computed&&t.commands.push("["),Ux(e.key,t),e.computed&&t.commands.push("]"),t.commands.push("("),eC(e.value.params,t,!1,Ux),t.commands.push(") "),e.value.body&&Ux(e.value.body,t)},NewExpression:nC["CallExpression|NewExpression"],ObjectExpression(e,t){t.commands.push("{"),eC(e.properties,t,!0,((e,t)=>{if("Property"===e.type&&"FunctionExpression"===e.value.type){const n=e.value;"get"===e.kind||"set"===e.kind?t.commands.push(e.kind+" "):(n.async&&t.commands.push("async "),n.generator&&t.commands.push("*")),e.computed&&t.commands.push("["),Ux(e.key,t),e.computed&&t.commands.push("]"),t.commands.push("("),eC(n.params,t,!1,Ux),t.commands.push(") "),Ux(n.body,t)}else Ux(e,t)})),t.commands.push("}")},ObjectPattern(e,t){t.commands.push("{"),eC(e.properties,t,!0,Ux),t.commands.push("}"),e.typeAnnotation&&tC(e.typeAnnotation,t)},ParenthesizedExpression:(e,t)=>Ux(e.expression,t),PrivateIdentifier(e,t){t.commands.push("#",Wx(e.name,e))},Program(e,t){Jx(e.body,t)},Property(e,t){const n="AssignmentPattern"===e.value.type?e.value.left:e.value;e.computed||"init"!==e.kind||"Identifier"!==e.key.type||"Identifier"!==n.type||e.key.name!==n.name?(e.computed&&t.commands.push("["),Ux(e.key,t),t.commands.push(e.computed?"]: ":": "),Ux(e.value,t)):Ux(e.value,t)},PropertyDefinition(e,t){e.accessibility&&t.commands.push(e.accessibility," "),e.static&&t.commands.push("static "),e.computed?(t.commands.push("["),Ux(e.key,t),t.commands.push("]")):Ux(e.key,t),e.typeAnnotation&&(t.commands.push(": "),tC(e.typeAnnotation.typeAnnotation,t)),e.value&&(t.commands.push(" = "),Ux(e.value,t)),t.commands.push(";")},RestElement:nC["RestElement|SpreadElement"],ReturnStatement(e,t){if(e.argument){const n=e.argument,s=n.leadingComments&&n.leadingComments.some((e=>"Line"===e.type));t.commands.push(s?"return (":"return "),Ux(e.argument,t),t.commands.push(s?");":";")}else t.commands.push("return;")},SequenceExpression(e,t){t.commands.push("("),eC(e.expressions,t,!1,Ux),t.commands.push(")")},SpreadElement:nC["RestElement|SpreadElement"],StaticBlock(e,t){t.commands.push(Fx,"static {",Bx),Jx(e.body,t),t.commands.push(Vx,Bx,"}")},Super(e,t){t.commands.push(Wx("super",e))},SwitchStatement(e,t){t.commands.push("switch ("),Ux(e.discriminant,t),t.commands.push(") {",Fx);let n=!0;for(const s of e.cases){n||t.commands.push("\n"),n=!1,s.test?(t.commands.push(Bx,"case "),Ux(s.test,t),t.commands.push(":")):t.commands.push(Bx,"default:"),t.commands.push(Fx);for(const e of s.consequent)t.commands.push(Bx),Ux(e,t);t.commands.push(Vx)}t.commands.push(Vx,Bx,"}")},TaggedTemplateExpression(e,t){Ux(e.tag,t),Ux(e.quasi,t)},TemplateLiteral(e,t){t.commands.push("`");const{quasis:n,expressions:s}=e;for(let e=0;e<s.length;e++){const r=n[e].value.raw;t.commands.push(r,"${"),Ux(s[e],t),t.commands.push("}"),/\n/.test(r)&&(t.multiline=!0)}const r=n[n.length-1].value.raw;t.commands.push(r,"`"),/\n/.test(r)&&(t.multiline=!0)},ThisExpression(e,t){t.commands.push(Wx("this",e))},ThrowStatement(e,t){t.commands.push("throw "),e.argument&&Ux(e.argument,t),t.commands.push(";")},TryStatement(e,t){t.commands.push("try "),Ux(e.block,t),e.handler&&(e.handler.param?(t.commands.push(" catch("),Ux(e.handler.param,t),t.commands.push(") ")):t.commands.push(" catch "),Ux(e.handler.body,t)),e.finalizer&&(t.commands.push(" finally "),Ux(e.finalizer,t))},TSAsExpression(e,t){if(e.expression){Xx[e.expression.type]<Xx.TSAsExpression?(t.commands.push("("),Ux(e.expression,t),t.commands.push(")")):Ux(e.expression,t)}t.commands.push(" as "),tC(e.typeAnnotation,t)},TSEnumDeclaration(e,t){t.commands.push("enum "),Ux(e.id,t),t.commands.push(" {",Fx,Bx),eC(e.members,t,!1,tC),t.commands.push(Vx,Bx,"}",Bx)},TSNonNullExpression(e,t){Ux(e.expression,t),t.commands.push("!")},TSInterfaceBody(e,t){eC(e.body,t,!1,tC,";")},TSInterfaceDeclaration(e,t){t.commands.push("interface "),Ux(e.id,t),e.typeParameters&&tC(e.typeParameters,t),e.extends&&(t.commands.push(" extends "),eC(e.extends,t,!1,tC)),t.commands.push(" {"),Ux(e.body,t),t.commands.push("}")},TSSatisfiesExpression(e,t){if(e.expression){Xx[e.expression.type]<Xx.TSSatisfiesExpression?(t.commands.push("("),Ux(e.expression,t),t.commands.push(")")):Ux(e.expression,t)}t.commands.push(" satisfies "),tC(e.typeAnnotation,t)},TSTypeAliasDeclaration(e,t){t.commands.push("type "),Ux(e.id,t),e.typeParameters&&tC(e.typeParameters,t),t.commands.push(" = "),tC(e.typeAnnotation,t),t.commands.push(";")},TSQualifiedName(e,t){Ux(e.left,t),t.commands.push("."),Ux(e.right,t)},UnaryExpression(e,t){t.commands.push(e.operator),e.operator.length>1&&t.commands.push(" "),Xx[e.argument.type]<Xx.UnaryExpression?(t.commands.push("("),Ux(e.argument,t),t.commands.push(")")):Ux(e.argument,t)},UpdateExpression(e,t){e.prefix?(t.commands.push(e.operator),Ux(e.argument,t)):(Ux(e.argument,t),t.commands.push(e.operator))},VariableDeclaration(e,t){Zx(e,t),t.commands.push(";")},VariableDeclarator(e,t){Ux(e.id,t),e.init&&(t.commands.push(" = "),Ux(e.init,t))},WhileStatement(e,t){t.commands.push("while ("),Ux(e.test,t),t.commands.push(") "),Ux(e.body,t)},WithStatement(e,t){t.commands.push("with ("),Ux(e.object,t),t.commands.push(") "),Ux(e.body,t)},YieldExpression(e,t){e.argument?(t.commands.push(e.delegate?"yield* ":"yield "),Ux(e.argument,t)):t.commands.push(e.delegate?"yield*":"yield")}},rC=",".charCodeAt(0),aC=";".charCodeAt(0),iC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",oC=new Uint8Array(64),lC=new Uint8Array(128);for(let e=0;e<64;e++){const t=iC.charCodeAt(e);oC[e]=t,lC[t]=e}function cC(e,t){let n=0,s=0,r=0;do{const t=e.next();r=lC[t],n|=(31&r)<<s,s+=5}while(32&r);const a=1&n;return n>>>=1,a&&(n=-2147483648|-n),t+n}function pC(e,t,n){let s=t-n;s=s<0?-s<<1|1:s<<1;do{let t=31&s;s>>>=5,s>0&&(t|=32),e.write(oC[t])}while(s>0);return t}function uC(e,t){return!(e.pos>=t)&&e.peek()!==rC}const dC="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}};class hC{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}write(e){const{buffer:t}=this;t[this.pos++]=e,16384===this.pos&&(this.out+=dC.decode(t),this.pos=0)}flush(){const{buffer:e,out:t,pos:n}=this;return n>0?t+dC.decode(e.subarray(0,n)):t}}class mC{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:n}=this,s=t.indexOf(e,n);return-1===s?t.length:s}}function fC(e){const{length:t}=e,n=new mC(e),s=[];let r=0,a=0,i=0,o=0,l=0;do{const e=n.indexOf(";"),t=[];let c=!0,p=0;for(r=0;n.pos<e;){let s;r=cC(n,r),r<p&&(c=!1),p=r,uC(n,e)?(a=cC(n,a),i=cC(n,i),o=cC(n,o),uC(n,e)?(l=cC(n,l),s=[r,a,i,o,l]):s=[r,a,i,o]):s=[r],t.push(s),n.pos++}c||yC(t),s.push(t),n.pos=e+1}while(n.pos<=t);return s}function yC(e){e.sort(vC)}function vC(e,t){return e[0]-t[0]}function gC(e){const t=new hC;let n=0,s=0,r=0,a=0;for(let i=0;i<e.length;i++){const o=e[i];if(i>0&&t.write(aC),0===o.length)continue;let l=0;for(let e=0;e<o.length;e++){const i=o[e];e>0&&t.write(rC),l=pC(t,i[0],l),1!==i.length&&(n=pC(t,i[1],n),s=pC(t,i[2],s),r=pC(t,i[3],r),4!==i.length&&(a=pC(t,i[4],a)))}}return t.flush()}let bC=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};function _C(e,t={}){if(Array.isArray(e))return _C({type:"Program",body:e,sourceType:"module"},t);const n={commands:[],comments:[],multiline:!1,quote:"double"===t.quotes?'"':"'"};Ux(e,n);let s="",r=0,a=[],i=[];function o(e){s+=e;for(let t=0;t<e.length;t+=1)"\n"===e[t]?(a.push(i),i=[],r=0):r+=1}let l="\n";const c=t.indent??"\t";function p(e){if("string"!=typeof e)if(Array.isArray(e))for(let t=0;t<e.length;t+=1)p(e[t]);else switch(e.type){case"Location":i.push([r,0,e.line-1,e.column]);break;case"Newline":o(l);break;case"Indent":l+=c;break;case"Dedent":l=l.slice(0,-c.length);break;case"Comment":"Line"===e.comment.type?o(`//${e.comment.value}`):o(`/*${e.comment.value.replace(/\n/g,l)}*/`)}else o(e)}for(let e=0;e<n.commands.length;e+=1)p(n.commands[e]);a.push(i);const u={version:3,names:[],sources:[t.sourceMapSource||null],sourcesContent:[t.sourceMapContent||null],mappings:null==t.sourceMapEncodeMappings||t.sourceMapEncodeMappings?gC(a):a};return Object.defineProperties(u,{toString:{enumerable:!1,value:function(){return JSON.stringify(this)}},toUrl:{enumerable:!1,value:function(){return"data:application/json;charset=utf-8;base64,"+bC(this.toString())}}}),{code:s,map:u}}"undefined"!=typeof window&&"function"==typeof window.btoa?bC=e=>window.btoa(unescape(encodeURIComponent(e))):"function"==typeof Buffer&&(bC=e=>Buffer.from(e,"utf-8").toString("base64"));const xC="5.25.3";class CC{constructor(e){this.bits=e instanceof CC?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(31&e)}has(e){return!!(this.bits[e>>5]&1<<(31&e))}}class wC{constructor(e,t,n){this.start=e,this.end=t,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const e=new wC(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let t=this;for(;t;)e(t),t=t.next}eachPrevious(e){let t=this;for(;t;)e(t),t=t.previous}edit(e,t,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){const t=e-this.start,n=this.original.slice(0,t),s=this.original.slice(t);this.original=n;const r=new wC(e,this.end,s);return r.outro=this.outro,this.outro="",this.end=e,this.edited?(r.edit("",!1),this.content=""):this.content=n,r.next=this.next,r.next&&(r.next.previous=r),r.previous=this,this.next=r,r}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;const t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.split(this.start+t.length).edit("",void 0,!0),this.edited&&this.edit(t,this.storeName,!0)),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;const t=this.content.replace(e,"");if(t.length){if(t!==this.content){const e=this.split(this.end-t.length);this.edited&&e.edit(t,this.storeName,!0),this.edit("",void 0,!0)}return!0}return this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0}}function kC(){return"undefined"!=typeof globalThis&&"function"==typeof globalThis.btoa?e=>globalThis.btoa(unescape(encodeURIComponent(e))):"function"==typeof Buffer?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const SC=kC();let PC=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=gC(e.mappings),void 0!==e.x_google_ignoreList&&(this.x_google_ignoreList=e.x_google_ignoreList),void 0!==e.debugId&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+SC(this.toString())}};function EC(e,t){const n=e.split(/[/\\]/),s=t.split(/[/\\]/);for(n.pop();n[0]===s[0];)n.shift(),s.shift();if(n.length){let e=n.length;for(;e--;)n[e]=".."}return n.concat(s).join("/")}const TC=Object.prototype.toString;function AC(e){const t=e.split("\n"),n=[];for(let e=0,s=0;e<t.length;e++)n.push(s),s+=t[e].length+1;return function(e){let t=0,s=n.length;for(;t<s;){const r=t+s>>1;e<n[r]?s=r:t=r+1}const r=t-1;return{line:r,column:e-n[r]}}}const $C=/\w/;class IC{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,t,n,s){if(t.length){const r=t.length-1;let a=t.indexOf("\n",0),i=-1;for(;a>=0&&r>a;){const r=[this.generatedCodeColumn,e,n.line,n.column];s>=0&&r.push(s),this.rawSegments.push(r),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,i=a,a=t.indexOf("\n",a+1)}const o=[this.generatedCodeColumn,e,n.line,n.column];s>=0&&o.push(s),this.rawSegments.push(o),this.advance(t.slice(i+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(t));this.pending=null}addUneditedChunk(e,t,n,s,r){let a=t.start,i=!0,o=!1;for(;a<t.end;){if("\n"===n[a])s.line+=1,s.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,i=!0,o=!1;else{if(this.hires||i||r.has(a)){const t=[this.generatedCodeColumn,e,s.line,s.column];"boundary"===this.hires?$C.test(n[a])?o||(this.rawSegments.push(t),o=!0):(this.rawSegments.push(t),o=!1):this.rawSegments.push(t)}s.column+=1,this.generatedCodeColumn+=1,i=!1}a+=1}this.pending=null}advance(e){if(!e)return;const t=e.split("\n");if(t.length>1){for(let e=0;e<t.length-1;e++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}}const RC="\n",qC={insertLeft:!1,insertRight:!1,storeName:!1};class LC{constructor(e,t={}){const n=new wC(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new CC},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:t.ignoreList},offset:{writable:!0,value:t.offset||0}}),this.byStart[0]=n,this.byEnd[e.length]=n}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this}appendLeft(e,t){if(e+=this.offset,"string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);const n=this.byEnd[e];return n?n.appendLeft(t):this.intro+=t,this}appendRight(e,t){if(e+=this.offset,"string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);const n=this.byStart[e];return n?n.appendRight(t):this.outro+=t,this}clone(){const e=new LC(this.original,{filename:this.filename,offset:this.offset});let t=this.firstChunk,n=e.firstChunk=e.lastSearchedChunk=t.clone();for(;t;){e.byStart[n.start]=n,e.byEnd[n.end]=n;const s=t.next,r=s&&s.clone();r&&(n.next=r,r.previous=n,n=r),t=s}return e.lastChunk=n,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new CC(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};const t=Object.keys(this.storedNames),n=new IC(e.hires),s=AC(this.original);return this.intro&&n.advance(this.intro),this.firstChunk.eachNext((e=>{const r=s(e.start);e.intro.length&&n.advance(e.intro),e.edited?n.addEdit(0,e.content,r,e.storeName?t.indexOf(e.original):-1):n.addUneditedChunk(0,e,this.original,r,this.sourcemapLocations),e.outro.length&&n.advance(e.outro)})),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?EC(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:t,mappings:n.raw,x_google_ignoreList:this.ignoreList?[0]:void 0}}generateMap(e){return new PC(this.generateDecodedMap(e))}_ensureindentStr(){void 0===this.indentStr&&(this.indentStr=function(e){const t=e.split("\n"),n=t.filter((e=>/^\t+/.test(e))),s=t.filter((e=>/^ {2,}/.test(e)));if(0===n.length&&0===s.length)return null;if(n.length>=s.length)return"\t";const r=s.reduce(((e,t)=>{const n=/^ +/.exec(t)[0].length;return Math.min(n,e)}),1/0);return new Array(r+1).join(" ")}(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),null===this.indentStr?"\t":this.indentStr}indent(e,t){const n=/^[^\r\n]/gm;var s;if(s=e,"[object Object]"===TC.call(s)&&(t=e,e=void 0),void 0===e&&(this._ensureindentStr(),e=this.indentStr||"\t"),""===e)return this;const r={};if((t=t||{}).exclude){("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach((e=>{for(let t=e[0];t<e[1];t+=1)r[t]=!0}))}let a=!1!==t.indentStart;const i=t=>a?`${e}${t}`:(a=!0,t);this.intro=this.intro.replace(n,i);let o=0,l=this.firstChunk;for(;l;){const t=l.end;if(l.edited)r[o]||(l.content=l.content.replace(n,i),l.content.length&&(a="\n"===l.content[l.content.length-1]));else for(o=l.start;o<t;){if(!r[o]){const t=this.original[o];"\n"===t?a=!0:"\r"!==t&&a&&(a=!1,o===l.start||(this._splitChunk(l,o),l=l.next),l.prependRight(e))}o+=1}o=l.end,l=l.next}return this.outro=this.outro.replace(n,i),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,t){return qC.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),qC.insertLeft=!0),this.appendLeft(e,t)}insertRight(e,t){return qC.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),qC.insertRight=!0),this.prependRight(e,t)}move(e,t,n){if(e+=this.offset,t+=this.offset,(n+=this.offset)>=e&&n<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(n);const s=this.byStart[e],r=this.byEnd[t],a=s.previous,i=r.next,o=this.byStart[n];if(!o&&r===this.lastChunk)return this;const l=o?o.previous:this.lastChunk;return a&&(a.next=i),i&&(i.previous=a),l&&(l.next=s),o&&(o.previous=r),s.previous||(this.firstChunk=r.next),r.next||(this.lastChunk=s.previous,this.lastChunk.next=null),s.previous=l,r.next=o||null,l||(this.firstChunk=s),o||(this.lastChunk=r),this}overwrite(e,t,n,s){return s=s||{},this.update(e,t,n,{...s,overwrite:!s.contentOnly})}update(e,t,n,s){if(e+=this.offset,t+=this.offset,"string"!=typeof n)throw new TypeError("replacement content must be a string");if(0!==this.original.length){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range use appendLeft or prependRight instead");this._split(e),this._split(t),!0===s&&(qC.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),qC.storeName=!0),s={storeName:!0});const r=void 0!==s&&s.storeName,a=void 0!==s&&s.overwrite;if(r){const n=this.original.slice(e,t);Object.defineProperty(this.storedNames,n,{writable:!0,value:!0,enumerable:!0})}const i=this.byStart[e],o=this.byEnd[t];if(i){let e=i;for(;e!==o;){if(e.next!==this.byStart[e.end])throw new Error("Cannot overwrite across a split point");e=e.next,e.edit("",!1)}i.edit(n,r,!a)}else{const s=new wC(e,t,"").edit(n,r);o.next=s,s.previous=o}return this}prepend(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,t){if(e+=this.offset,"string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);const n=this.byEnd[e];return n?n.prependLeft(t):this.intro=t+this.intro,this}prependRight(e,t){if(e+=this.offset,"string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);const n=this.byStart[e];return n?n.prependRight(t):this.outro=t+this.outro,this}remove(e,t){if(e+=this.offset,t+=this.offset,0!==this.original.length){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);let n=this.byStart[e];for(;n;)n.intro="",n.outro="",n.edit(""),n=t>n.end?this.byStart[n.end]:null;return this}reset(e,t){if(e+=this.offset,t+=this.offset,0!==this.original.length){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);let n=this.byStart[e];for(;n;)n.reset(),n=t>n.end?this.byStart[n.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(RC);if(-1!==e)return this.outro.substr(e+1);let t=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(e=n.outro.lastIndexOf(RC),-1!==e)return n.outro.substr(e+1)+t;t=n.outro+t}if(n.content.length>0){if(e=n.content.lastIndexOf(RC),-1!==e)return n.content.substr(e+1)+t;t=n.content+t}if(n.intro.length>0){if(e=n.intro.lastIndexOf(RC),-1!==e)return n.intro.substr(e+1)+t;t=n.intro+t}}while(n=n.previous);return e=this.intro.lastIndexOf(RC),-1!==e?this.intro.substr(e+1)+t:this.intro+t}slice(e=0,t=this.original.length-this.offset){if(e+=this.offset,t+=this.offset,0!==this.original.length){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}let n="",s=this.firstChunk;for(;s&&(s.start>e||s.end<=e);){if(s.start<t&&s.end>=t)return n;s=s.next}if(s&&s.edited&&s.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);const r=s;for(;s;){!s.intro||r===s&&s.start!==e||(n+=s.intro);const a=s.start<t&&s.end>=t;if(a&&s.edited&&s.end!==t)throw new Error(`Cannot use replaced character ${t} as slice end anchor.`);const i=r===s?e-s.start:0,o=a?s.content.length+t-s.end:s.content.length;if(n+=s.content.slice(i,o),!s.outro||a&&s.end!==t||(n+=s.outro),a)break;s=s.next}return n}snip(e,t){const n=this.clone();return n.remove(0,e),n.remove(t,n.original.length),n}_split(e){if(this.byStart[e]||this.byEnd[e])return;let t=this.lastSearchedChunk;const n=e>t.end;for(;t;){if(t.contains(e))return this._splitChunk(t,e);t=n?this.byStart[t.end]:this.byEnd[t.start]}}_splitChunk(e,t){if(e.edited&&e.content.length){const n=AC(this.original)(t);throw new Error(`Cannot split a chunk that has already been edited (${n.line}:${n.column} "${e.original}")`)}const n=e.split(t);return this.byEnd[t]=e,this.byStart[t]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,t=this.firstChunk;for(;t;)e+=t.toString(),t=t.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0}length(){let e=this.firstChunk,t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){const t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let n=this.lastChunk;do{const e=n.end,s=n.trimEnd(t);if(n.end!==e&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),s)return!0;n=n.previous}while(n);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){const t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let n=this.firstChunk;do{const e=n.end,s=n.trimStart(t);if(n.end!==e&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),s)return!0;n=n.next}while(n);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,t){function n(e,n){return"string"==typeof t?t.replace(/\$(\$|&|\d+)/g,((t,n)=>{if("$"===n)return"$";if("&"===n)return e[0];return+n<e.length?e[+n]:`$${n}`})):t(...e,e.index,n,e.groups)}if(e.global){(function(e,t){let n;const s=[];for(;n=e.exec(t);)s.push(n);return s})(e,this.original).forEach((e=>{if(null!=e.index){const t=n(e,this.original);t!==e[0]&&this.overwrite(e.index,e.index+e[0].length,t)}}))}else{const t=this.original.match(e);if(t&&null!=t.index){const e=n(t,this.original);e!==t[0]&&this.overwrite(t.index,t.index+t[0].length,e)}}return this}_replaceString(e,t){const{original:n}=this,s=n.indexOf(e);return-1!==s&&this.overwrite(s,s+e.length,t),this}replace(e,t){return"string"==typeof e?this._replaceString(e,t):this._replaceRegexp(e,t)}_replaceAllString(e,t){const{original:n}=this,s=e.length;for(let r=n.indexOf(e);-1!==r;r=n.indexOf(e,r+s)){n.slice(r,r+s)!==t&&this.overwrite(r,r+s,t)}return this}replaceAll(e,t){if("string"==typeof e)return this._replaceAllString(e,t);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,t)}}const MC=/^[\w+.-]+:\/\//,OC=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,NC=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var DC;function jC(e){return e.startsWith("/")}function BC(e){return/^[.?#]/.test(e)}function FC(e){const t=OC.exec(e);return VC(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function VC(e,t,n,s,r,a,i){return{scheme:e,user:t,host:n,port:s,path:r,query:a,hash:i,type:DC.Absolute}}function HC(e){if(function(e){return e.startsWith("//")}(e)){const t=FC("http:"+e);return t.scheme="",t.type=DC.SchemeRelative,t}if(jC(e)){const t=FC("http://foo.com"+e);return t.scheme="",t.host="",t.type=DC.AbsolutePath,t}if(function(e){return e.startsWith("file:")}(e))return function(e){const t=NC.exec(e),n=t[2];return VC("file:","",t[1]||"","",jC(n)?n:"/"+n,t[3]||"",t[4]||"")}(e);if(function(e){return MC.test(e)}(e))return FC(e);const t=FC("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?DC.Query:e.startsWith("#")?DC.Hash:DC.RelativePath:DC.Empty,t}function UC(e,t){const n=t<=DC.RelativePath,s=e.path.split("/");let r=1,a=0,i=!1;for(let e=1;e<s.length;e++){const t=s[e];t?(i=!1,"."!==t&&(".."!==t?(s[r++]=t,a++):a?(i=!0,a--,r--):n&&(s[r++]=t))):i=!0}let o="";for(let e=1;e<r;e++)o+="/"+s[e];(!o||i&&!o.endsWith("/.."))&&(o+="/"),e.path=o}function zC(e,t){if(!e&&!t)return"";const n=HC(e);let s=n.type;if(t&&s!==DC.Absolute){const e=HC(t),r=e.type;switch(s){case DC.Empty:n.hash=e.hash;case DC.Hash:n.query=e.query;case DC.Query:case DC.RelativePath:!function(e,t){UC(t,t.type),"/"===e.path?e.path=t.path:e.path=function(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}(t.path)+e.path}(n,e);case DC.AbsolutePath:n.user=e.user,n.host=e.host,n.port=e.port;case DC.SchemeRelative:n.scheme=e.scheme}r>s&&(s=r)}UC(n,s);const r=n.query+n.hash;switch(s){case DC.Hash:case DC.Query:return r;case DC.RelativePath:{const s=n.path.slice(1);return s?BC(t||e)&&!BC(s)?"./"+s+r:s+r:r||"."}case DC.AbsolutePath:return n.path+r;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+r}}function WC(e,t){return t&&!t.endsWith("/")&&(t+="/"),zC(e,t)}!function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"}(DC||(DC={}));const GC=0;function KC(e,t){for(let n=t;n<e.length;n++)if(!XC(e[n]))return n;return e.length}function XC(e){for(let t=1;t<e.length;t++)if(e[t][GC]<e[t-1][GC])return!1;return!0}function QC(e,t){return t||(e=e.slice()),e.sort(YC)}function YC(e,t){return e[GC]-t[GC]}let JC=!1;function ZC(e,t,n,s){const{lastKey:r,lastNeedle:a,lastIndex:i}=n;let o=0,l=e.length-1;if(s===r){if(t===a)return JC=-1!==i&&e[i][GC]===t,i;t>=a?o=-1===i?0:i:l=i}return n.lastKey=s,n.lastNeedle=t,n.lastIndex=function(e,t,n,s){for(;n<=s;){const r=n+(s-n>>1),a=e[r][GC]-t;if(0===a)return JC=!0,r;a<0?n=r+1:s=r-1}return JC=!1,n-1}(e,t,o,l)}class ew{constructor(e,t){const n="string"==typeof e;if(!n&&e._decodedMemo)return e;const s=n?JSON.parse(e):e,{version:r,file:a,names:i,sourceRoot:o,sources:l,sourcesContent:c}=s;this.version=r,this.file=a,this.names=i||[],this.sourceRoot=o,this.sources=l,this.sourcesContent=c,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const p=WC(o||"",function(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}(t));this.resolvedSources=l.map((e=>WC(e||"",p)));const{mappings:u}=s;"string"==typeof u?(this._encoded=u,this._decoded=void 0):(this._encoded=void 0,this._decoded=function(e,t){const n=KC(e,0);if(n===e.length)return e;t||(e=e.slice());for(let s=n;s<e.length;s=KC(e,s+1))e[s]=QC(e[s],t);return e}(u,n)),this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0}}function tw(e){var t;return(t=e)._decoded||(t._decoded=fC(e._encoded))}function nw(e,t,n){const s=tw(e);if(t>=s.length)return null;const r=s[t],a=function(e,t,n,s,r){let a=ZC(e,s,t,n);JC&&(a=function(e,t,n){for(let s=n-1;s>=0&&e[s][GC]===t;n=s--);return n}(e,s,a));return-1===a||a===e.length?-1:a}(r,e._decodedMemo,t,n);return-1===a?null:r[a]}class sw{constructor(){this._indexes={__proto__:null},this.array=[]}}function rw(e,t){return e._indexes[t]}function aw(e,t){const n=rw(e,t);if(void 0!==n)return n;const{array:s,_indexes:r}=e,a=s.push(t);return r[t]=a-1}const iw=0,ow=1,lw=2,cw=3,pw=4,uw=-1;class dw{constructor({file:e,sourceRoot:t}={}){this._names=new sw,this._sources=new sw,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new sw}}const hw=(e,t,n,s,r,a,i,o)=>function(e,t,n,s,r,a,i,o,l){const{_mappings:c,_sources:p,_sourcesContent:u,_names:d}=t,h=function(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}(c,n),m=function(e,t){let n=e.length;for(let s=n-1;s>=0;n=s--){if(t>=e[s][iw])break}return n}(h,s);if(!r){if(function(e,t){if(0===t)return!0;const n=e[t-1];return 1===n.length}(h,m))return;return vw(h,m,[s])}const f=aw(p,r),y=o?aw(d,o):uw;f===u.length&&(u[f]=null);if(function(e,t,n,s,r,a){if(0===t)return!1;const i=e[t-1];return 1!==i.length&&(n===i[ow]&&s===i[lw]&&r===i[cw]&&a===(5===i.length?i[pw]:uw))}(h,m,f,a,i,y))return;return vw(h,m,o?[s,f,a,i,y]:[s,f,a,i])}(0,e,t,n,s,r,a,i);function mw(e,t,n){const{_sources:s,_sourcesContent:r}=e;r[aw(s,t)]=n}function fw(e,t,n=!0){const{_sources:s,_sourcesContent:r,_ignoreList:a}=e,i=aw(s,t);i===r.length&&(r[i]=null),n?aw(a,i):function(e,t){const n=rw(e,t);if(void 0===n)return;const{array:s,_indexes:r}=e;for(let e=n+1;e<s.length;e++){const t=s[e];s[e-1]=t,r[t]--}r[t]=void 0,s.pop()}(a,i)}function yw(e){const{_mappings:t,_sources:n,_sourcesContent:s,_names:r,_ignoreList:a}=e;return function(e){const{length:t}=e;let n=t;for(let t=n-1;t>=0&&!(e[t].length>0);n=t,t--);n<t&&(e.length=n)}(t),{version:3,file:e.file||void 0,names:r.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:s,mappings:t,ignoreList:a.array}}function vw(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}const gw=_w("",-1,-1,"",null,!1),bw=[];function _w(e,t,n,s,r,a){return{source:e,line:t,column:n,name:s,content:r,ignore:a}}function xw(e,t,n,s,r){return{map:e,sources:t,source:n,content:s,ignore:r}}function Cw(e,t){return xw(e,t,"",null,!1)}function ww(e,t,n,s){if(!e.map)return _w(e.source,t,n,s,e.content,e.ignore);const r=nw(e.map,t,n);return null==r?null:1===r.length?gw:ww(e.sources[r[1]],r[2],r[3],5===r.length?e.map.names[r[4]]:s)}function kw(e,t){const n=(s=e,Array.isArray(s)?s:[s]).map((e=>new ew(e,"")));var s;const r=n.pop();for(let e=0;e<n.length;e++)if(n[e].sources.length>1)throw new Error(`Transformation map ${e} must have exactly one source file.\nDid you specify these with the most recent transformation maps first?`);let a=Sw(r,t,"",0);for(let e=n.length-1;e>=0;e--)a=Cw(n[e],[a]);return a}function Sw(e,t,n,s){const{resolvedSources:r,sourcesContent:a,ignoreList:i}=e,o=s+1,l=r.map(((e,s)=>{const r={importer:n,depth:o,source:e||"",content:void 0,ignore:void 0},l=t(r.source,r),{source:c,content:p,ignore:u}=r;if(l)return Sw(new ew(l,c),t,c,o);return function(e,t,n){return xw(null,bw,e,t,n)}(c,void 0!==p?p:a?a[s]:null,void 0!==u?u:!!i&&i.includes(s))}));return Cw(e,l)}class Pw{constructor(e,t){const n=t.decodedMappings?yw(e):function(e){const t=yw(e);return Object.assign(Object.assign({},t),{mappings:gC(t.mappings)})}(e);this.version=n.version,this.file=n.file,this.mappings=n.mappings,this.names=n.names,this.ignoreList=n.ignoreList,this.sourceRoot=n.sourceRoot,this.sources=n.sources,t.excludeContent||(this.sourcesContent=n.sourcesContent)}toString(){return JSON.stringify(this)}}function Ew(e,t,n){const s={excludeContent:!!n,decodedMappings:!1},r=kw(e,t);return new Pw(function(e){const t=new dw({file:e.map.file}),{sources:n,map:s}=e,r=s.names,a=tw(s);for(let e=0;e<a.length;e++){const s=a[e];for(let a=0;a<s.length;a++){const i=s[a],o=i[0];let l=gw;if(1!==i.length&&(l=ww(n[i[1]],i[2],i[3],5===i.length?r[i[4]]:""),null==l))continue;const{column:c,line:p,name:u,content:d,source:h,ignore:m}=l;hw(t,e,o,h,p,c,u),h&&null!=d&&mw(t,h,d),m&&fw(t,h,!0)}}return t}(r),s)}function Tw(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}function Aw(e,t,n){if(0!=e.mappings.length)for(let s=0;s<e.mappings.length;s++){const r=e.mappings[s];for(let e=0;e<r.length;e++){const s=r[e];s[1]===n&&(0===s[2]&&(s[3]+=t.column),s[2]+=t.line)}}}function $w(e,t){const n=e.slice(),s=[];t=t||[];let r=!1;for(const[a,i]of t.entries()){const t=e.indexOf(i);if(t>=0)s[a]=t;else{const e=n.length;n[e]=i,s[a]=e,r=!0}}let a=r;return r&&void 0===s.find(((e,t)=>e!=t))&&(a=!1),[n,s,r,a]}const Iw=/([^\w\s]|\s+)/g;class Rw{string=void 0;map=void 0;constructor(e="",t=null){this.string=e,this.map=t||{version:3,mappings:[],sources:[],names:[]}}concat(e){if(""==e.string)return this;if(""==this.string)return this.string=e.string,this.map=e.map,this;const t=(n=this.string).length-n.lastIndexOf("\n")-1;var n;this.string+=e.string;const s=this.map,r=e.map;if(0==r.mappings.length)return this;const[a,i,o,l]=$w(s.sources,r.sources),[c,p,u,d]=$w(s.names,r.names);if(o&&(s.sources=a),u&&(s.names=c),l&&d)for(let e=0;e<r.mappings.length;e++){const t=r.mappings[e];for(let e=0;e<t.length;e++){const n=t[e];n[1]>=0&&(n[1]=i[n[1]]),n[4]>=0&&(n[4]=p[n[4]])}}else if(l)for(let e=0;e<r.mappings.length;e++){const t=r.mappings[e];for(let e=0;e<t.length;e++){const n=t[e];n[1]>=0&&(n[1]=i[n[1]])}}else if(d)for(let e=0;e<r.mappings.length;e++){const t=r.mappings[e];for(let e=0;e<t.length;e++){const n=t[e];n[4]>=0&&(n[4]=p[n[4]])}}if(r.mappings.length>0&&t>0){const e=r.mappings[0];for(let n=0;n<e.length;n++)e[n][0]+=t}return Tw(s.mappings[s.mappings.length-1],r.mappings.shift()),Tw(s.mappings,r.mappings),this}static from_processed(e,t){const n=e.split("\n").length;if(t){const s=n-t.mappings.length;for(let e=0;e<s;e++)t.mappings.push([]);return new Rw(e,t)}if(""==e)return new Rw;t={version:3,names:[],sources:[],mappings:[]};for(let e=0;e<n;e++)t.mappings.push([]);return new Rw(e,t)}static from_source({source:e,file_basename:t,get_location:n}){let s=n(0);s||(s={line:0,column:0});const r={version:3,names:[],sources:[t],mappings:[]};if(""==e)return new Rw(e,r);const a=e.split("\n");for(let e=0;e<a.length;e++){r.mappings.push([]);const t=a[e].split(Iw);for(let n=0,a=0;n<t.length;n++)""!=t[n]&&(r.mappings[e].push([a,0,s.line+e,a]),a+=t[n].length)}const i=r.mappings[0];for(let e=0;e<i.length;e++)i[e][3]+=s.column;return new Rw(e,r)}}const qw="undefined"!=typeof window&&"function"==typeof btoa?e=>btoa(unescape(encodeURIComponent(e))):e=>Buffer.from(e).toString("base64"),Lw="undefined"!=typeof window&&"function"==typeof atob?atob:e=>Buffer.from(e,"base64").toString();function Mw(e,t){if(0==t.length)return null;let n=1;const s=void 0===t.slice(0,-1).find((e=>1!==e.sources.length))?Ew(t,(()=>null),!0):Ew(t[0],(s=>s===e&&t[n]?t[n++]:null),!0);return s.file||delete s.file,s.sources.length||(s.sources=[e]),s}const Ow=/data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(\S*)/;function Nw(e,t,n){if(t.sourcemap){const s=jw(t.filename);e.map.sources=[s],e.map=function(e,t,n){if(!t||!n)return t;const s=Mw(e,[t,"string"==typeof n?JSON.parse(n):n]);return Object.defineProperties(s,{toString:{enumerable:!1,value:function(){return JSON.stringify(this)}},toUrl:{enumerable:!1,value:function(){return"data:application/json;charset=utf-8;base64,"+qw(this.toString())}}}),s}(s,e.map,t.sourcemap),s!==n&&(e.map.sources=e.map.sources.map((e=>Dw(n,e))))}}function Dw(e,t){const n=e.split(/[/\\]/),s=t.split(/[/\\]/);for(n.pop();n[0]===s[0];)n.shift(),s.shift();if(n.length){let e=n.length;for(;e--;)n[e]=".."}return n.concat(s).join("/")}function jw(e){return e.split(/[/\\]/).pop()}function Bw(e,t,n){return t?Dw(t,e):jw(e)}function Fw(e,n,s){const r=new LC(e),a={code:r,hash:n.css.hash,minify:n.inject_styles&&!s.dev,selector:`.${n.css.hash}`,keyframes:n.css.keyframes,specificity:{bumped:!1}},i=n.css.ast;t(i,a,Vw),r.remove(0,i.content.start),r.remove(i.content.end,e.length),a.minify&&zw(i.content.end,a);const o={code:r.toString(),map:r.generateMap({includeContent:!0,source:s.filename,file:s.cssOutputFilename||s.filename})};return Nw(o,s,o.map.sources[0]),ce&&"injected"===s.css&&o.code&&(o.code+=`\n/*# sourceMappingURL=${o.map.toUrl()} */`),o}const Vw={_:(e,t)=>{t.state.code.addSourcemapLocation(e.start),t.state.code.addSourcemapLocation(e.end),t.next()},Atrule(e,{state:t,next:n,path:s}){if(zl(e)){let n=e.start+e.name.length+1;for(;" "===t.code.original[n];)n+=1;let r=n;for(;"{"!==t.code.original[r]&&" "!==t.code.original[r];)r+=1;e.prelude.startsWith("-global-")?t.code.remove(n,n+8):Hw(s)||t.code.prependRight(n,`${t.hash}-`)}else n()},Declaration(e,{state:t}){const n=e.property&&Ul(e.property.toLowerCase());if("animation"===n||"animation-name"===n){let n=e.start+e.property.length+1,s="";for(;n<t.code.original.length;){const e=t.code.original[n];if(Hl.test(e)){if(t.keyframes.includes(s)&&t.code.prependRight(n-s.length,`${t.hash}-`),";"===e||"}"===e)break;s=""}else s+=e;n++}}else if(t.minify&&(zw(e.start,t),!e.property.startsWith("--"))){let n=e.start+e.property.length+1,s=n;for(;/\s/.test(t.code.original[s]);)s++;s>n&&t.code.remove(n,s)}},Rule(e,{state:t,next:n,visit:s,path:r}){if(t.minify&&(zw(e.start,t),zw(e.block.end-1,t)),ce||!Ww(e,Hw(r)))if(Gw(e)||Hw(r)){if(e.metadata.is_global_block){const n=e.prelude.children[0];if(1===n.children.length&&1===n.children[0].selectors.length)return t.minify?(t.code.remove(e.start,e.block.start+1),t.code.remove(e.block.end-1,e.end)):(t.code.prependRight(e.start,"/* "),t.code.appendLeft(e.block.start+1,"*/"),t.code.prependRight(e.block.end-1,"/*"),t.code.appendLeft(e.block.end,"*/")),void s(e.block)}n()}else t.minify?t.code.remove(e.start,e.end):(t.code.prependRight(e.start,"/* (unused) "),t.code.appendLeft(e.end,"*/"),Kw(e,t.code));else t.minify?t.code.remove(e.start,e.end):(t.code.prependRight(e.start,"/* (empty) "),t.code.appendLeft(e.end,"*/"),Kw(e,t.code))},SelectorList(e,{state:t,next:n,path:s}){if(!Hw(s)&&!s.find((e=>"ComplexSelector"===e.type&&!e.metadata.used))){const n=e.children;let s=!1,r=n[0].start,a=r,i=!1;for(let e=0;e<n.length;e+=1){const o=n[e];if(o.metadata.used===s){if(s){let e=o.start;for(;","!==t.code.original[e];)e--;t.minify?t.code.remove(r,i?e:e+1):t.code.appendRight(i?e:e+1,"*/")}else 0===e?t.minify?r=o.start:t.code.prependRight(o.start,"/* (unused) "):t.minify?r=a:t.code.overwrite(a,o.start," /* (unused) ");s=!s}!s&&o.metadata.used&&(i=!0),a=o.end}s&&(t.minify?t.code.remove(r,a):t.code.appendLeft(a,"*/"))}let r=t.specificity,a=s.at(-1);if("Rule"===a?.type){r={bumped:!1};let e=a.metadata.parent_rule;for(;e;){if(e.metadata.has_local_selectors){r={bumped:!0};break}e=e.metadata.parent_rule}}n({...t,specificity:r})},ComplexSelector(e,t){const n=t.state.specificity.bumped;for(const n of e.children)if(n.metadata.is_global){const s=n.selectors[0];Uw(s,n.combinator,t.state),e.metadata.rule?.metadata.parent_rule&&null===s.args&&null===n.combinator&&t.state.code.prependRight(s.start,"&")}else{for(const e of n.selectors)"PseudoClassSelector"===e.type&&"global"===e.name&&Uw(e,null,t.state);if(n.metadata.scoped){if(1===n.selectors.length){const e=n.selectors[0];if("PseudoClassSelector"===e.type&&("is"===e.name||"where"===e.name))continue}if(n.selectors.some((e=>"NestingSelector"===e.type)))continue;let e=t.state.selector;t.state.specificity.bumped&&(e=`:where(${e})`),t.state.specificity.bumped=!0;let s=n.selectors.length;for(;s--;){const r=n.selectors[s];if("PseudoElementSelector"!==r.type&&"PseudoClassSelector"!==r.type){"TypeSelector"===r.type&&"*"===r.name?t.state.code.update(r.start,r.end,e):t.state.code.appendLeft(r.end,e);break}"root"!==r.name&&"host"!==r.name&&0===s&&t.state.code.prependRight(r.start,e)}}}t.next(),t.state.specificity.bumped=n},PseudoClassSelector(e,t){"is"!==e.name&&"where"!==e.name&&"has"!==e.name&&"not"!==e.name||t.next()}};function Hw(e){return e.some((e=>"Rule"===e.type&&e.metadata.is_global_block))}function Uw(e,t,n){if(null===e.args){let s=e.start;if(" "===t?.name)for(;/\s/.test(n.code.original[s-1]);)s--;n.code.remove(s,e.start+7)}else n.code.remove(e.start,e.start+8).remove(e.end-1,e.end)}function zw(e,t){let n=e;for(;/\s/.test(t.code.original[n-1]);)n--;n<e&&t.code.remove(n,e)}function Ww(e,t){if(e.metadata.is_global_block)return 0===e.block.children.length;for(const n of e.block.children){if("Declaration"===n.type)return!1;if("Rule"===n.type&&(Gw(n)||t)&&!Ww(n,t))return!1;if("Atrule"===n.type&&(null===n.block||n.block.children.length>0))return!1}return!0}function Gw(e){return e.prelude.children.some((e=>e.metadata.used))}function Kw(e,t){let n=!1,s=!1;for(let r=e.start;r<e.end;r++)if(n)n=!1;else{const e=t.original[r];s?"*"===e&&"/"===t.original[r+1]&&(t.prependRight(++r,"\\"),s=!1):"\\"===e?n=!0:"/"===e&&"*"===t.original[++r]&&(s=!0)}}function Xw(e,t,n){if("ArrayPattern"===e.left.type||"ObjectPattern"===e.left.type||"RestElement"===e.left.type){const r=t.visit(e.right),a="Identifier"!==r.type,i=a?Ga("$$value"):r;let o=!1;const l=Fi(e.left).map((e=>{const s=e.expression?.(i);let r=n("=",e.node,s,t);return null!==r&&(o=!0),r??Ra("=",t.visit(e.node),t.visit(s))}));if(!o)return null;const c=t.path.at(-1).type.endsWith("Statement"),p=ai(l);if(c||p.expressions.push(i),a){const e=Ia([i],p),t=Wi(r)||l.some((e=>Wi(e)));return t?qa(Oa((s=e,{...s,async:!0}),r)):Oa(e,r)}return p}var s;if("Identifier"!==e.left.type&&"MemberExpression"!==e.left.type)throw new Error(`Unexpected assignment type ${e.left.type}`);return n(e.operator,e.left,e.right,t)}function Qw(e,t,n,s){let r=t;for(;"MemberExpression"===r.type;)r=r.object;if("Identifier"!==r.type||!function(e){return"$"===e[0]&&/[A-Za-z_]/.test(e[1])}(r.name))return null;const a=r.name.slice(1);if(!s.state.scope.get(a))return null;if(r===t){let r=s.visit(Ki(e,t,n));return Oa("$.store_set",Ga(a),r)}return Oa("$.store_mutate",Ra("??=",Ga("$$store_subs"),Za([])),Qa(r.name),Ga(a),Ra(e,s.visit(t),s.visit(n)))}const Yw=/[&"<]/g,Jw=/[&<]/g;function Zw(e,t){const n=String(e??""),s=t?Yw:Jw;s.lastIndex=0;let r="",a=0;for(;s.test(n);){const e=s.lastIndex-1,t=n[e];r+=n.substring(a,e)+("&"===t?"&amp;":'"'===t?"&quot;":"&lt;"),a=e+1}return r+n.substring(a)}const ek="\x3c!--[--\x3e",tk="\x3c!--[!--\x3e",nk="\x3c!--]--\x3e",sk=Qa(ek),rk=Qa(nk),ak=Qa("\x3c!----\x3e");function ik(e,{visit:t,state:n}){let s=[];function r(){let e=si("",!1);const r=[e],a=[];for(let n=0;n<s.length;n++){const i=s[n];"Text"===i.type||"Comment"===i.type?e.value.cooked+="Comment"===i.type?`\x3c!--${i.data}--\x3e`:Zw(i.data):"ExpressionTag"===i.type&&"Literal"===i.expression.type?null!=i.expression.value&&(e.value.cooked+=Zw(i.expression.value+"")):(a.push(Oa("$.escape",t(i.expression))),e=si("",n+1===s.length),r.push(e))}for(const e of r)e.value.raw=Ea(e.value.cooked);n.template.push(ci(r,a))}for(let a=0;a<e.length;a+=1){const i=e[a];"Text"===i.type||"Comment"===i.type||"ExpressionTag"===i.type?s.push(i):(s.length>0&&(r(),s=[]),t(i,{...n}))}s.length>0&&r()}function ok(e){return e.type.endsWith("Statement")||e.type.endsWith("Declaration")}function lk(e,t=Ga("$$payload.out"),n="+="){let s=[],r=[];const a=[],i=()=>{a.push(li(Ra(n,t,ci(s.map(((e,t)=>si(e,t===s.length-1))),r)))),s=[],r=[]};for(let t=0;t<e.length;t++){const n=e[t];ok(n)?(0!==s.length&&i(),a.push(n)):(0===s.length&&s.push(""),"Literal"===n.type?s[s.length-1]+=n.value:"TemplateLiteral"===n.type?(s[s.length-1]+=n.quasis[0].value.cooked,s.push(...n.quasis.slice(1).map((e=>e.value.cooked))),r.push(...n.expressions)):(r.push(n),s.push("")))}return 0!==s.length&&i(),a}function ck(e,t,n=!1,s=!1){if(!0===e)return fi;if(!Array.isArray(e)||1===e.length){const r=Array.isArray(e)?e[0]:e;if("Text"===r.type){const e=n?r.data.replace(u," ").trim():r.data;return Qa(s?e:Zw(e,!0))}return t.visit(r.expression)}let r=si("",!1);const a=[r],i=[];for(let s=0;s<e.length;s++){const o=e[s];"Text"===o.type?r.value.raw+=n?o.data.replace(u," "):o.data:(i.push(Oa("$.stringify",t.visit(o.expression))),r=si("",s+1===e.length),a.push(r))}return ci(a,i)}function pk(e,t){const n=t.scope.get(e.name);if(null===n||e===n.node)return e;if("store_sub"===n.kind){const n=Ga(e.name.slice(1));return Oa("$.store_get",Ra("??=",Ga("$$store_subs"),Za([])),Qa(e.name),pk(n,t))}return e}function uk(e){return("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type)&&!0===e.metadata?.hoisted}function dk(e,n){const s=[],r=new Map;for(const a of e)if("ConstTag"===a.type){const e=a.declaration.declarations[0],s=Di(e.id).map((e=>n.scope.get(e.name))),i=new Set;t(e.init,n,{_:jl,Identifier(e,t){if(Sl(e,t.path.at(-1))){const n=t.state.scope.get(e.name);n&&i.add(n)}}});for(const e of s)r.set(e,{node:a,deps:i})}else s.push(a);if(0===r.size)return e;const a=[];for(const[e,t]of r)for(const n of t.deps)r.has(n)&&a.push([e,n]);const i=Fl(a);if(i?.length){!function(e,t){Is(e,"const_tag_cycle",`Cyclical dependency detected: ${t}\nhttps://svelte.dev/e/const_tag_cycle`)}(r.get(i[0]).node,i.map((e=>e.node.name)).join(" → "))}const o=[];function l(e){if(!o.includes(e.node)){for(const t of e.deps){const e=r.get(t);e&&l(e)}o.push(e.node)}}for(const e of r.values())l(e);return[...o,...s]}function hk(e,t,n,s="html",r,i,l){r.analysis.runes||(t=dk(t,r));const u=[],d=[];for(const e of t)("Comment"!==e.type||l)&&("ConstTag"===e.type||"DebugTag"===e.type||"SvelteBody"===e.type||"SvelteWindow"===e.type||"SvelteDocument"===e.type||"SvelteHead"===e.type||"TitleElement"===e.type||"SnippetBlock"===e.type?u.push(e):d.push(e));let h=d;if(!i){let t,r;for(h=[];(t=d[0])&&"Text"===t.type&&!p.test(t.data);)d.shift();for("Text"===t?.type&&(t.raw=t.raw.replace(o,""),t.data=t.data.replace(o,""));(r=d.at(-1))&&"Text"===r.type&&!p.test(r.data);)d.pop();"Text"===r?.type&&(r.raw=r.raw.replace(c,""),r.data=r.data.replace(c,""));const a="svg"===s&&("RegularElement"!==e.type||"text"!==e.name)&&!n.some((e=>"RegularElement"===e.type&&"text"===e.name))||"RegularElement"===e.type&&("select"===e.name||"tr"===e.name||"table"===e.name||"tbody"===e.name||"thead"===e.name||"tfoot"===e.name||"colgroup"===e.name||"datalist"===e.name);for(let e=0;e<d.length;e++){const t=d[e-1],n=d[e],s=d[e+1];if("Text"===n.type){if("ExpressionTag"!==t?.type){const e="Text"===t?.type&&c.test(t.data);n.data=n.data.replace(o,e?"":" "),n.raw=n.raw.replace(o,e?"":" ")}"ExpressionTag"!==s?.type&&(n.data=n.data.replace(c," "),n.raw=n.raw.replace(c," ")),!n.data||" "===n.data&&a||h.push(n)}else h.push(n)}}var m=h[0];if("RegularElement"===e.type&&"pre"===e.name&&"Text"===m?.type){const e=m.data.replace(a,"");if(e!==m.data){const t=e.replace(a,"");e===t&&(m.data=e,m.raw=m.raw.replace(a,""),""===m.data&&(h.shift(),m=h[0]))}}return 1===h.length&&"RegularElement"===m.type&&"script"===m.name&&h.push({type:"Comment",data:"",start:-1,end:-1}),{hoisted:u,trimmed:h,is_standalone:1===h.length&&("RenderTag"===m.type&&!m.metadata.dynamic||"Component"===m.type&&!r.options.hmr&&!m.metadata.dynamic&&!m.attributes.some((e=>"Attribute"===e.type&&e.name.startsWith("--")))),is_text_first:("Fragment"===e.type||"SnippetBlock"===e.type||"EachBlock"===e.type||"SvelteComponent"===e.type||"SvelteBoundary"===e.type||"Component"===e.type||"SvelteSelf"===e.type)&&m&&("Text"===m?.type||"ExpressionTag"===m?.type)}}function mk(e,n,s){if("RegularElement"===n.type&&"foreignObject"===n.name)return"html";if("RegularElement"===n.type||"SvelteElement"===n.type)return n.metadata.svg?"svg":n.metadata.mathml?"mathml":"html";if("Fragment"===n.type||"Root"===n.type||"Component"===n.type||"SvelteComponent"===n.type||"SvelteFragment"===n.type||"SnippetBlock"===n.type||"SlotElement"===n.type){const e=function(e,n){const s=(e,{stop:t})=>{e.metadata.svg||e.metadata.mathml?"keep"===n&&(n=e.metadata.svg?"svg":"mathml"):(n="html",t())};for(const r of e)if(t(r,{},{_(e,{next:t}){"EachBlock"!==e.type&&"IfBlock"!==e.type&&"AwaitBlock"!==e.type&&"Fragment"!==e.type&&"KeyBlock"!==e.type&&"RegularElement"!==e.type&&"SvelteElement"!==e.type&&"Text"!==e.type||t()},SvelteElement:s,RegularElement:s,Text(e){""!==e.data.trim()&&(n="maybe_html")}}),"html"===n)return n;return n}(s,"keep");if("keep"!==e&&"maybe_html"!==e)return e}let r=null;for(const e of s)if("RegularElement"===e.type)if(e.metadata.mathml)r=null===r||"mathml"===r?"mathml":"html";else{if(!e.metadata.svg)return"html";r=null===r||"svg"===r?"svg":"html"}return r??e}function fk(e,t){return"foreignObject"===e.name?"html":e.metadata.svg?"svg":e.metadata.mathml?"mathml":"html"}function yk(e,t){const{state:n,visit:s}=t,r="client"===n.options.generate;if(!ce)return Ha;if("MemberExpression"===e.callee.type){const t=e.callee.object.arguments.map((e=>s(e))),n=s(e.arguments[0]);return Oa("$.inspect",r?pi(Ta(t)):Ta(t),n)}{const t=e.arguments.map((e=>s(e)));return Oa("$.inspect",r?pi(Ta(t)):Ta(t))}}function vk(e,t,n){const s=[],r=[],a=[],i={default:[]},o={...n.state,scope:e.metadata.scopes.default},l={},c=e.attributes.some((e=>"Attribute"===e.type&&"slot"===e.name));let p=!1;function u(e,t=!1){const n=()=>{const t=s.at(-1),n=Array.isArray(t),r=n?t:[];r.push(e),n||s.push(r)};t?r.push(n):n()}for(const t of e.attributes)if("LetDirective"===t.type)c||i.default.push(t);else if("SpreadAttribute"===t.type)s.push(n.visit(t));else if("Attribute"===t.type){if(t.name.startsWith("--")){const e=ck(t.value,n,!1,!0);a.push(Xa(t.name,e));continue}"children"===t.name&&(p=!0);const e=ck(t.value,n,!1,!0);u(ti("init",$i(t.name),e))}else if("BindDirective"===t.type&&"this"!==t.name)if("SequenceExpression"===t.expression.type){const[e,s]=n.visit(t.expression).expressions,r=Ga(n.state.scope.generate("bind_get")),a=Ga(n.state.scope.generate("bind_set"));n.state.init.push(Ci(r,e)),n.state.init.push(Ci(a,s)),u(Wa(t.name,[Ti(Oa(r))])),u(ii(t.name,[li(Oa(a,Ga("$$value")))]))}else u(Wa(t.name,[Ti(n.visit(t.expression))]),!0),u(ii(t.name,[li(n.visit(Ra("=",t.expression,Ga("$$value")))),li(Ra("=",Ga("$$settled"),yi))]),!0);r.forEach((e=>e()));const d=[],h=[];for(const t of e.fragment.nodes){if("SnippetBlock"===t.type){n.visit(t,{...n.state,init:d}),u(ti("init",t.expression,t.expression)),h.push(Xa("children"===t.expression.name?"default":t.expression.name,fi));continue}let e="default";if(Ro(t)){const n=t.attributes.find((e=>"Attribute"===e.type&&"slot"===e.name));void 0!==n?(e=n.value[0].data,i[e]=t.attributes.filter((e=>"LetDirective"===e.type))):"SvelteFragment"===t.type&&i.default.push(...t.attributes.filter((e=>"LetDirective"===e.type)))}l[e]=l[e]||[],l[e].push(t)}for(const t of Object.keys(l)){const s=n.visit({...e.fragment,nodes:l[t]},"default"===t?o:{...n.state,scope:e.metadata.scopes[t]});if(0===s.body.length)continue;const r=[Ga("$$payload")];if(i[t].length>0){const e=ei(i[t].map((e=>null===e.expression?Xa(e.name,Ga(e.name)):"ObjectExpression"===e.expression.type?Xa(e.name,ei(e.expression.properties)):"ArrayExpression"===e.expression.type?Xa(e.name,Aa(e.expression.elements)):Xa(e.name,e.expression))));r.push(e)}const a=Ia(r,Ma(s.body));"default"!==t||p?h.push(Xa(t,a)):0===i.default.length&&l.default.every((e=>"SvelteFragment"!==e.type||!e.attributes.some((e=>"LetDirective"===e.type))))?(u(ti("init",Ga("children"),a)),h.push(Xa(t,fi))):(h.push(Xa(t,a)),u(Xa("children",Ga("$.invalid_default_snippet"))))}h.length>0&&u(ti("init",Ga("$$slots"),Za(h)));const m=0===s.length||1===s.length&&Array.isArray(s[0])?Za(s[0]||[]):Oa("$.spread_props",Ta(s.map((e=>Array.isArray(e)?Za(e):e))));let f=li(("SvelteComponent"===e.type?Na:Oa)(t,Ga("$$payload"),m));d.length>0&&(f=Ma([...d,f]));const y="SvelteComponent"===e.type||"Component"===e.type&&e.metadata.dynamic;a.length>0?n.state.template.push(li(Oa("$.css_props",Ga("$$payload"),Qa("svg"!==n.state.namespace),Za(a),pi(Ma([f])),y&&fi))):(y&&n.state.template.push(ak),n.state.template.push(f),n.state.skip_hydration_boundaries||n.state.template.push(ak))}const gk=["class","style"];function bk(e,t){const n=[],s=[],r=[];let i=null,o=!1,l=new Set;for(const c of e.attributes)if("Attribute"===c.type)"value"===c.name?"textarea"===e.name?(!0!==c.value&&Array.isArray(c.value)&&"Text"===c.value[0].type&&a.test(c.value[0].data)&&(c.value[0].data="\n"+c.value[0].data),i=Oa("$.escape",ck(c.value,t))):"select"!==e.name&&n.push(c):Oi(c)?"onload"!==c.name&&"onerror"!==c.name||!te(e.name)||l.add(c.name):"defaultValue"!==c.name&&"defaultChecked"!==c.name&&("class"===c.name&&c.metadata.needs_clsx?n.push({...c,value:{...c.value,expression:Oa("$.clsx",c.value.expression)}}):n.push(c));else if("BindDirective"===c.type){if("value"===c.name&&"select"===e.name)continue;if("value"===c.name&&n.some((e=>"Attribute"===e.type&&"type"===e.name&&Ri(e)&&"file"===e.value[0].data)))continue;if("this"===c.name)continue;const s=$c[c.name];if(s?.omit_in_ssr)continue;let r=t.visit(c.expression);if("SequenceExpression"===r.type&&(r=Oa(r.expressions[0])),Z(c.name))i=r;else if("value"===c.name&&"textarea"===e.name)i=Oa("$.escape",r);else if("group"===c.name&&"SequenceExpression"!==c.expression.type){const s=e.attributes.find((e=>"Attribute"===e.type&&"value"===e.name));if(!s)continue;const r=e.attributes.some((e=>"Attribute"===e.type&&"type"===e.name&&Ri(e)&&"checkbox"===e.value[0].data));n.push(Lo("checked",-1,-1,[{type:"ExpressionTag",start:-1,end:-1,expression:r?Oa(Ya(c.expression,"includes"),ck(s.value,t)):La("===",c.expression,ck(s.value,t)),metadata:{expression:Mo()}}]))}else n.push(Lo(c.name,-1,-1,[{type:"ExpressionTag",start:-1,end:-1,expression:r,metadata:{expression:Mo()}}]))}else"SpreadAttribute"===c.type?(n.push(c),o=!0,te(e.name)&&(l.add("onload"),l.add("onerror"))):"UseDirective"===c.type?te(e.name)&&(l.add("onload"),l.add("onerror")):"ClassDirective"===c.type?s.push(c):"StyleDirective"===c.type?r.push(c):"LetDirective"===c.type||t.visit(c);if(o)!function(e,t,n,s,r){let a,i,o=0;if(s.length){a=Za(s.map((e=>Xa(e.name,"Identifier"===e.expression.type&&e.expression.name===e.name?Ga(e.name):r.visit(e.expression)))))}if(n.length>0){i=Za(n.map((e=>Xa(e.name,!0===e.value?Ga(e.name):ck(e.value,r,!0)))))}e.metadata.svg||e.metadata.mathml?o|=k|S:qo(e)&&(o|=S);const l=Za(t.map((t=>{if("Attribute"===t.type){const n=_k(e,t),s=ck(t.value,r,gk.includes(n));return ti("init",$i(n),s)}return oi(r.visit(t))}))),c=e.metadata.scoped&&r.state.analysis.css.hash?Qa(r.state.analysis.css.hash):vi,p=[l,c,a,i,o?Qa(o):void 0];r.state.template.push(Oa("$.spread_attributes",...p))}(e,n,r,s,t);else{const a=e.metadata.scoped?t.state.analysis.css.hash:null;for(const i of n){const n=_k(e,i),o=!("class"===n&&0!==s.length||"style"===n&&0!==r.length);if(o&&(!0===i.value||Ri(i))){let e=ck(i.value,t,gk.includes(n)).value;"class"===n&&a&&(e=(String(e)+" "+a).trim()),("class"!==n||e)&&t.state.template.push(Qa(` ${i.name}${W(n)&&!0===e?"":`="${!0===e?"":String(e)}"`}`));continue}const l=ck(i.value,t,gk.includes(n));o&&"Literal"===l.type&&"string"==typeof l.value?("class"===n&&a&&(l.value=(l.value+" "+a).trim()),t.state.template.push(Qa(` ${n}="${Zw(l.value,!0)}"`))):"class"===n?t.state.template.push(xk(s,l,t,a)):"style"===n?t.state.template.push(Ck(r,l,t)):t.state.template.push(Oa("$.attr",Qa(n),l,W(n)&&fi))}}if(0!==l.size)for(const e of l)t.state.template.push(Qa(` ${e}="this.__e=event"`));return i}function _k(e,t){let n=t.name;return e.metadata.svg||e.metadata.mathml||(n=n.toLowerCase()),n}function xk(e,t,n,s){let r,a;return e.length&&(r=Za(e.map((e=>ti("init",Qa(e.name),n.visit(e.expression,n.state)))))),s&&("Literal"===t.type&&"string"==typeof t.value?t.value=(t.value+" "+s).trim():a=Qa(s)),Oa("$.attr_class",t,a,r)}function Ck(e,t,n){let s;if(e.length){let t=[],r=[];for(const s of e){const e=!0===s.value?Ga(s.name):ck(s.value,n,!0);let a=s.name;"-"===a[0]&&"-"===a[1]||(a=a.toLowerCase());const i=Xa(s.name,e);s.modifiers.includes("important")?r.push(i):t.push(i)}s=r.length?Ta([Za(t),Za(r)]):Za(t)}return Oa("$.attr_style",t,s)}function wk(e,t,n){if("Identifier"===e.id.type)return[Va(e.id,n)];const s=t.generate("tmp"),r=Fi(e.id);return[Va(Ga(s),n),...r.map((e=>{const t=e.expression?.(Ga(s));return Va(e.node,t)}))]}const kk={_:jl,AssignmentExpression:function(e,t){return Xw(e,t,Qw)??t.next()},CallExpression:function(e,t){const n=Bl(e,t.state.scope);return"$host"===n?ja:"$effect.tracking"===n?yi:"$effect.root"===n?Ia([],Ma([])):"$state.snapshot"===n?Oa("$.snapshot",t.visit(e.arguments[0]),ve(e,"state_snapshot_uncloneable")&&fi):"$inspect"===n||"$inspect().with"===n?yk(e,t):void t.next()},ClassBody:function(e,t){if(!t.state.analysis.runes)return void t.next();const n=new Map,s=new Map,r=[];for(const a of e.body)if("PropertyDefinition"===a.type&&("Identifier"===a.key.type||"PrivateIdentifier"===a.key.type)){const{type:e,name:i}=a.key,o="PrivateIdentifier"===e;if(o&&r.push(i),"CallExpression"===a.value?.type){const e=Bl(a.value,t.state.scope);if("$derived"===e||"$derived.by"===e){const t={kind:"$derived.by"===e?"derived_by":"derived",id:o?a.key:null};o?s.set(i,t):n.set(i,t)}}}for(const[e,t]of n){let n=e;for(;r.includes(n);)n="_"+n;r.push(n),t.id=Ka(n)}const a=[],i={...t.state,private_derived:s};for(const r of e.body){if("PropertyDefinition"===r.type&&("Identifier"===r.key.type||"PrivateIdentifier"===r.key.type)){const e=r.key.name,o="PrivateIdentifier"===r.key.type,l=(o?s:n).get(e);if("CallExpression"===r.value?.type&&void 0!==l){const n=t.visit(r.value.arguments[0],i),s="derived_by"===l.kind?Oa("$.once",n):Oa("$.once",pi(n));if(o)a.push(ni(l.id,s));else{const t=Ya(bi,l.id);a.push(ni(l.id,s)),a.push(wi("get",r.key,[],[Ti(Oa(t))])),!ce||"derived"!==l.kind&&"derived_by"!==l.kind||a.push(wi("set",r.key,[Ga("_")],[Ai(`Cannot update a derived property ('${e}')`)]))}continue}}a.push(t.visit(r,i))}return{...e,body:a}},ExpressionStatement:function(e,t){const n=Bl(e.expression,t.state.scope);if("$effect"===n||"$effect.pre"===n||"$effect.root"===n||"$inspect.trace"===n)return Ha;t.next()},Identifier:function(e,t){if(Sl(e,t.path.at(-1)))return"$$props"===e.name?Ga("$$sanitized_props"):pk(e,t.state)},LabeledStatement:function(e,t){var n,s;if(!(t.state.analysis.runes||t.path.length>1||"$"!==e.label.name))return t.state.legacy_reactive_statements.set(e,(n="$",s=t.visit(e.body),{type:"LabeledStatement",label:Ga(n),body:s})),Ha},MemberExpression:function(e,t){if(t.state.analysis.runes&&"ThisExpression"===e.object.type&&"PrivateIdentifier"===e.property.type){if(t.state.private_derived.get(e.property.name))return Oa(e)}t.next()},PropertyDefinition:function(e,t){if(t.state.analysis.runes&&null!=e.value&&"CallExpression"===e.value.type){const n=Bl(e.value,t.state.scope);if("$state"===n||"$state.raw"===n||"$derived"===n)return{...e,value:0===e.value.arguments.length?null:t.visit(e.value.arguments[0])};if("$derived.by"===n)return{...e,value:0===e.value.arguments.length?null:Oa(t.visit(e.value.arguments[0]))}}t.next()},UpdateExpression:function(e,t){const n=e.argument;return"Identifier"===n.type&&"store_sub"===t.state.scope.get(n.name)?.kind?Oa(e.prefix?"$.update_store_pre":"$.update_store",Ra("??=",Ga("$$store_subs"),Za([])),Qa(n.name),Ga(n.name.slice(1)),"--"===e.operator&&Qa(-1)):t.next()},VariableDeclaration:function(e,n){const s=[];if(n.state.analysis.runes)for(const r of e.declarations){const e=r.init,a=Bl(e,n.state.scope);if(!a||"$effect.tracking"===a||"$inspect"===a||"$effect.root"===a){s.push(n.visit(r));continue}if("$props.id"===a)continue;if("$props"===a){let e=!1,a=t(r.id,null,{RestElement(t,n){n.path.at(-1)===r.id&&(e=!0)},AssignmentPattern(e){if("CallExpression"===e.right.type&&"$bindable"===Bl(e.right,n.state.scope)){const t=e.right.arguments.length?n.visit(e.right.arguments[0]):ja;return $a(e.left,t)}}});"ObjectPattern"===a.type&&e?a.properties.splice(a.properties.length-1,0,ti("init",Ga("$$slots"),Ga("$$slots")),ti("init",Ga("$$events"),Ga("$$events"))):"Identifier"===a.type&&(a=ei([ti("init",Ga("$$slots"),Ga("$$slots")),ti("init",Ga("$$events"),Ga("$$events")),ri(Ga(a.name))])),s.push(Va(n.visit(a),Ga("$$props")));continue}const i=e.arguments,o=i.length>0?n.visit(i[0]):ja;"$derived.by"!==a?"Identifier"!==r.id.type?"$derived"!==a?s.push(...wk(r,n.state.scope,o)):s.push(Va(n.visit(r.id),o)):s.push(Va(r.id,o)):s.push(Va(n.visit(r.id),Oa(o)))}else for(const t of e.declarations){const e=n.state.scope.get_bindings(t),r=e.some((e=>"state"===e.kind)),a=e.some((e=>"bindable_prop"===e.kind));if(r||a)if(a){if("Identifier"!==t.id.type){const e=n.state.scope.generate("tmp"),r=Fi(t.id);s.push(Va(Ga(e),n.visit(t.init)));for(const t of r){const r=t.expression?.(Ga(e)),a=t.node.name,i=n.state.scope.get(a),o=Ya(Ga("$$props"),Qa(i.prop_alias??a),!0);s.push(Va(t.node,Gi(o,r)))}continue}const e=n.state.scope.get(t.id.name),r=Ya(Ga("$$props"),Qa(e.prop_alias??t.id.name),!0);let a=r;if(t.init){a=Gi(r,n.visit(t.init))}s.push(Va(t.id,a))}else s.push(...wk(t,n.state.scope,t.init&&n.visit(t.init)));else s.push(n.visit(t))}return 0===s.length?Ha:{...e,declarations:s}}},Sk={AwaitBlock:function(e,t){t.state.template.push(ak,li(Oa("$.await",t.visit(e.expression),pi(e.pending?t.visit(e.pending):Ma([])),Ia(e.value?[t.visit(e.value)]:[],e.then?t.visit(e.then):Ma([])),Ia(e.error?[t.visit(e.error)]:[],e.catch?t.visit(e.catch):Ma([])))),ak)},Component:function(e,t){vk(e,Ga(e.name),t)},ConstTag:function(e,t){const n=e.declaration.declarations[0],s=t.visit(n.id),r=t.visit(n.init);t.state.init.push(xi(s,r))},DebugTag:function(e,t){t.state.template.push(li(Oa("console.log",Za(e.identifiers.map((e=>ti("init",e,t.visit(e))))))),gi)},EachBlock:function(e,t){const n=t.state,s=e.metadata,r=t.visit(e.expression),a=s.contains_group_binding||!e.index?s.index:Ga(e.index),i=n.scope.root.unique("each_array");n.init.push(xi(i,Oa("$.ensure_array_like",r)));const o=[];e.context&&o.push(_i(e.context,Ya(i,a,!0))),a.name!==e.index&&null!=e.index&&o.push(_i(e.index,a)),o.push(...t.visit(e.body).body);const l=function(e,t,n,s){return{type:"ForStatement",init:e,test:t,update:n,body:s}}(Fa("let",[Va(a,Qa(0)),Va("$$length",Ya(i,"length"))]),La("<",a,Ga("$$length")),hi("++",a,!1),Ma(o));if(e.fallback){const s=li(Ra("+=",Ga("$$payload.out"),sk)),r=t.visit(e.fallback);r.body.unshift(li(Ra("+=",Ga("$$payload.out"),Qa(tk)))),n.template.push(Si(La("!==",Ya(i,"length"),Qa(0)),Ma([s,l]),r),rk)}else n.template.push(sk,l,rk)},Fragment:function(e,t){const n=t.path.at(-1)??e,s=mk(t.state.namespace,n,e.nodes),{hoisted:r,trimmed:a,is_standalone:i,is_text_first:o}=hk(n,e.nodes,t.path,s,t.state,t.state.preserve_whitespace,t.state.options.preserveComments),l={...t.state,init:[],template:[],namespace:s,skip_hydration_boundaries:i};for(const e of r)t.visit(e,l);return o&&l.template.push(ak),ik(a,{...t,state:l}),Ma([...l.init,...lk(l.template)])},HtmlTag:function(e,t){const n=t.visit(e.expression);t.state.template.push(Oa("$.html",n))},IfBlock:function(e,t){const n=t.visit(e.consequent);n.body.unshift(li(Ra("+=",Ga("$$payload.out"),sk)));let s=Si(t.visit(e.test),n);t.state.template.push(s,rk);let r=1,a=e.alternate;for(;a&&1===a.nodes.length&&"IfBlock"===a.nodes[0].type&&a.nodes[0].elseif;){const e=a.nodes[0],n=t.visit(e.consequent);n.body.unshift(li(Ra("+=",Ga("$$payload.out"),Qa(`\x3c!--[${r++}--\x3e`)))),s=s.alternate=Si(t.visit(e.test),n),a=e.alternate}s.alternate=a?t.visit(a):Ma([]),s.alternate.body.unshift(li(Ra("+=",Ga("$$payload.out"),Qa(tk))))},KeyBlock:function(e,t){t.state.template.push(ak,t.visit(e.fragment),ak)},RegularElement:function(e,t){const n=fk(e,t.state.namespace),s={...t.state,namespace:n,preserve_whitespace:t.state.preserve_whitespace||"pre"===e.name||"textarea"===e.name};t.state.template.push(Qa(`<${e.name}`));const r=bk(e,{...t,state:s});if(t.state.template.push(Qa(">")),("script"===e.name||"style"===e.name)&&1===e.fragment.nodes.length)return void t.state.template.push(Qa(e.fragment.nodes[0].data),Qa(`</${e.name}>`));const{hoisted:a,trimmed:i}=hk(e,e.fragment.nodes,t.path,n,{...s,scope:s.scopes.get(e.fragment)},s.preserve_whitespace,s.options.preserveComments);for(const e of a)t.visit(e,s);if(ce){const t=de(e.start);s.template.push(li(Oa("$.push_element",Ga("$$payload"),Qa(e.name),Qa(t.line),Qa(t.column))))}if(null===r)ik(i,{...t,state:s});else{let e=r;"Identifier"!==r.type&&(e=Ga(s.scope.generate("$$body")),s.template.push(xi(e,r)));const n={...s,template:[],init:[]};ik(i,{...t,state:n}),s.template.push(Si(e,Ma(lk([e])),Ma([...n.init,...lk(n.template)])))}j(e.name)||s.template.push(Qa(`</${e.name}>`)),ce&&s.template.push(li(Oa("$.pop_element")))},RenderTag:function(e,t){const n=zi(e.expression).callee,s=zi(e.expression).arguments,r=t.visit(n),a=s.map((e=>t.visit(e)));t.state.template.push(li(("CallExpression"===e.expression.type?Oa:Na)(r,Ga("$$payload"),...a))),t.state.skip_hydration_boundaries||t.state.template.push(ak)},SlotElement:function(e,t){const n=[],s=[];let r=Qa("default");for(const a of e.attributes)if("SpreadAttribute"===a.type)s.push(t.visit(a));else if("Attribute"===a.type){const e=ck(a.value,t,!1,!0);"name"===a.name?r=e:"slot"!==a.name&&n.push(Xa(a.name,e))}const a=0===s.length?Za(n):Oa("$.spread_props",Ta([Za(n),...s])),i=0===e.fragment.nodes.length?vi:pi(t.visit(e.fragment)),o=Oa("$.slot",Ga("$$payload"),Ga("$$props"),r,a,i);t.state.template.push(ak,li(o),ak)},SnippetBlock:function(e,t){const n=za(e.expression,[Ga("$$payload"),...e.parameters],t.visit(e.body));n.___snippet=!0,e.metadata.can_hoist?t.state.hoisted.push(n):t.state.init.push(n)},SpreadAttribute:function(e,t){return t.visit(e.expression)},SvelteComponent:function(e,t){vk(e,t.visit(e.expression),t)},SvelteElement:function(e,t){let n=t.visit(e.tag);if(ce){if("Identifier"!==n.type){const e=t.state.scope.generate("$$tag");t.state.init.push(xi(e,n)),n=Ga(e)}e.fragment.nodes.length>0&&t.state.init.push(li(Oa("$.validate_void_dynamic_element",pi(n)))),t.state.init.push(li(Oa("$.validate_dynamic_element_tag",pi(n))))}const s={...t.state,namespace:fk(e,t.state.namespace),template:[],init:[]};if(bk(e,{...t,state:s}),ce){const s=de(e.start);t.state.template.push(li(Oa("$.push_element",Ga("$$payload"),n,Qa(s.line),Qa(s.column))))}const r=Ma([...s.init,...lk(s.template)]),a=t.visit(e.fragment,s);t.state.template.push(li(Oa("$.element",Ga("$$payload"),n,r.body.length>0&&pi(r),a.body.length>0&&pi(a)))),ce&&t.state.template.push(li(Oa("$.pop_element")))},SvelteFragment:function(e,t){t.state.template.push(t.visit(e.fragment))},SvelteHead:function(e,t){const n=t.visit(e.fragment);t.state.template.push(li(Oa("$.head",Ga("$$payload"),Ia([Ga("$$payload")],n))))},SvelteSelf:function(e,t){vk(e,Ga(t.state.analysis.name),t)},TitleElement:function(e,t){const n=[Qa("<title>")];ik(e.fragment.nodes,{...t,state:{...t.state,template:n}}),n.push(Qa("</title>")),t.state.init.push(...lk(n,Ga("$$payload.title"),"="))},SvelteBoundary:function(e,t){t.state.template.push(Qa(ek),t.visit(e.fragment),Qa(nk))}};function Pk(e,t){const n=Ga(e.scope.generate("expression"));return e.init.push(xi(n,Uc(e,pi(t)))),Oa("$.get",n)}function Ek(e,t){return Ga("$"+(e.expressions.push(t)-1))}function Tk(e,t,n,s=((e,t)=>t.has_call?Ek(n,e):e)){const r=[];let a=si("");const i=[a];let o=!1;for(let l=0;l<e.length;l++){const c=e[l];if("Text"===c.type)a.value.cooked+=c.data;else if("Literal"===c.expression.type)null!=c.expression.value&&(a.value.cooked+=c.expression.value+"");else if("Identifier"!==c.expression.type||"undefined"!==c.expression.name||n.scope.get("undefined")){let p=s(t(c.expression,n),c.metadata.expression);if(o||=c.metadata.expression.has_state,1===e.length)return{value:p,has_state:o};"LogicalExpression"!==p.type||"Literal"!==p.right.type||"??"!==p.operator&&"||"!==p.operator||null===p.right.value&&(p={...p,right:Qa("")});"BinaryExpression"===p.type||"UnaryExpression"===p.type&&"void"!==p.operator||"LogicalExpression"===p.type&&"Literal"===p.right.type||"Identifier"===p.type&&p.name===n.analysis.props_id?.name||(p=Ba("??",p,Qa(""))),r.push(p),a=si("",l+1===e.length),i.push(a)}}for(const e of i)e.value.raw=Ea(e.value.cooked);return{value:r.length>0?ci(i,r):Qa(a.value.cooked),has_state:o}}function Ak(e){return li(Oa("$.template_effect",Ia(e.expressions.map(((e,t)=>Ga(`$${t}`))),1===e.update.length&&"ExpressionStatement"===e.update[0].type?e.update[0].expression:Ma(e.update)),e.expressions.length>0&&Ta(e.expressions.map((e=>pi(e)))),e.expressions.length>0&&!e.analysis.runes&&Ga("$.derived_safe_equal")))}function $k(e){const t=e.split(".");let n=t.shift(),s=Ga(n);for(;n=t.shift();){const e=!m.test(n);s=Ya(s,e?Qa(n):Ga(n),e)}return s}function Ik(e,t,n,s,r){e.init.push(Ci(t,n)),e.update.push(Si(La("!==",Ga(t),Ra("=",Ga(t),s)),Ma([r])))}function Rk(e,n,{state:s,visit:r}){if("SequenceExpression"===e.type){const[t,s]=r(e).expressions;return Oa("$.bind_this",n,s,t)}const a=[],i=[],o=[],l={...s.transform};t(e,null,{Identifier(e,{path:t}){if(o.includes(e.name))return;o.push(e.name);if(!Sl(e,t.at(-1)))return;const n=s.scope.get(e.name);if(n)for(const[t,o]of s.scopes)if("EachBlock"===t.type&&o===n.scope){a.push(e),i.push(r(e)),l[e.name]&&(l[e.name]={...l[e.name],read:e=>e});break}}});const c={...s,transform:l},p=r(e,c),u=r(Ra("=",e,Ga("$$value")),c);let d=p;for(;"MemberExpression"===d.type;)d.optional=!0,d=d.object;return Oa("$.bind_this",n,Ia([Ga("$$value"),...a],u),Ia([...a],p),i.length>0&&pi(Ta(i)))}function qk(e,t,n){if("SequenceExpression"===t.expression.type)return;const s=Ii(t.expression),r=s&&e.scope.get(s.name);if("store_sub"===r?.kind)return;const a=de(t.start),i=n.object;e.init.push(li(Oa("$.validate_binding",Qa(e.analysis.source.slice(t.start,t.end)),pi(e.store_to_invalidate?ai([Oa("$.mark_store_binding"),i]):i),pi(n.computed?n.property:Qa(n.property.name)),a&&Qa(a.line),a&&Qa(a.column))))}const Lk=(e,t)=>{const n=e.metadata;let s={...t.state,in_constructor:!1};if("FunctionExpression"===e.type){const e=t.path.at(-1);s.in_constructor="MethodDefinition"===e.type&&"constructor"===e.kind}if(!0===n?.hoisted){const n=Bc(e,t);return{...e,params:n,body:t.visit(e.body,s)}}t.next(s)};function Mk(e){return["=","||=","&&=","??="].includes(e)}const Ok={"=":"$.assign","&&=":"$.assign_and","||=":"$.assign_or","??=":"$.assign_nullish"};function Nk(e,t,n,s){if(s.state.analysis.runes&&"MemberExpression"===t.type&&"PrivateIdentifier"===t.property.type){const r=s.state.private_state.get(t.property.name);if(void 0!==r){let a=s.visit(Ki(e,t,n));return Oa("$.set",t,a,"state"===r.kind&&Mk(e)&&Hc(a,s.state.scope)&&fi)}}let r=t;for(;"MemberExpression"===r.type;)r=r.object;if("Identifier"!==r.type)return null;const a=s.state.scope.get(r.name);if(!a)return null;const i=Object.hasOwn(s.state.transform,r.name)?s.state.transform[r.name]:null,o=s.path.map((e=>e.type));if(r===t&&i?.assign){const l="BindDirective"===o.at(-1)&&"RegularElement"===o.at(-2);let c=s.visit(Ki(e,t,n));return i.assign(r,c,!l&&"prop"!==a.kind&&"bindable_prop"!==a.kind&&"raw_state"!==a.kind&&"store_sub"!==a.kind&&s.state.analysis.runes&&Hc(n,s.state.scope)&&Mk(e))}if(i?.mutate)return i.mutate(r,Ra(e,s.visit(t),s.visit(n)));let l=ce&&"ExpressionStatement"!==o.at(-1)&&Mk(e);if("ArrowFunctionExpression"===o.at(-1)&&("RegularElement"===o.at(-2)||"SvelteElement"===o.at(-2))){s.path.at(-2).attributes.find((e=>{if("Attribute"!==e.type||!Oi(e))return!1;return Li(e)===s.path.at(-1)}))&&(l=!1)}if("BindDirective"!==o.at(-1)&&"Component"!==o.at(-1)&&"SvelteComponent"!==o.at(-1)&&("ArrowFunctionExpression"!==o.at(-1)||"SequenceExpression"!==o.at(-2)||"Component"!==o.at(-3)&&"SvelteComponent"!==o.at(-3))||(l=!1),"MemberExpression"===t.type&&l){const r=Ok[e];return s.visit(Oa(r,t.object,t.computed?t.property:Qa(t.property.name),n,Qa(he(t))))}return null}function Dk(e,t){let n=!1,s=e.name.slice(2);V(s)&&(s=s.slice(0,-7),n=!0);const r=Array.isArray(e.value)?e.value[0]:e.value;let a=Bk(r.expression,r.metadata.expression,t);if(e.metadata.delegated){let n;if(t.state.events.has(s)||t.state.events.add(s),e.metadata.delegated.hoisted){if(e.metadata.delegated.function===r.expression){const e=t.state.scope.root.unique("on_"+s);t.state.hoisted.push(Ci(e,a)),a=e}const i=e.metadata.delegated.function.metadata.hoisted_params;if(i){n=Ta([a,...i])}else n=a}else n=a;t.state.init.push(li(Ra("=",Ya(t.state.node,"__"+s),n)))}else{const e=li(jk(s,t.state.node,a,n,(i=s,!!Y.includes(i)||void 0))),r=t.path.at(-1).type;"SvelteDocument"===r||"SvelteWindow"===r||"SvelteBody"===r?t.state.init.push(e):t.state.after_update.push(e)}var i}function jk(e,t,n,s,r){return Oa("$.event",Qa(e),t,n,s&&fi,void 0===r?void 0:Qa(r))}function Bk(e,t,n){if(null===e)return ki(null,[Ga("$$arg")],Ma([li(Oa("$.bubble_event.call",bi,Ga("$$props"),Ga("$$arg")))]));let s=n.visit(e);if("ArrowFunctionExpression"===s.type||"FunctionExpression"===s.type)return s;if("Identifier"===s.type){const e=n.state.scope.get(s.name);if(e?.is_function())return s;if(!ce&&"import"!==e?.declaration_kind)return s}if(t.has_call){const e=Ga(n.state.scope.generate("event_handler"));n.state.init.push(Ci(e,Oa("$.derived",pi(s)))),s=Oa("$.get",e)}let r=Oa(Ya(s,"apply",!1,!0),bi,Ga("$$args"));if(ce){const t=de(e.start),a="CallExpression"===e.type&&0===e.arguments.length&&"Identifier"===e.callee.type;r=Oa("$.apply",pi(s),bi,Ga("$$args"),Ga(n.state.analysis.name),t&&Ta([Qa(t.line),Qa(t.column)]),Fk(e)&&fi,a&&fi)}return ki(null,[ri(Ga("$$args"))],Ma([li(r)]))}function Fk(e){return"CallExpression"===e.type||"NewExpression"===e.type||"AssignmentExpression"===e.type||"UpdateExpression"===e.type||"SequenceExpression"===e.type&&e.expressions.some(Fk)}function Vk(e,t){if("Identifier"===e.type)return t.state.transform[e.name]={read:Oc},{id:e,declarations:null};const n=t.visit(e),s=Di(e),r=Ga("$$source"),a=Ga("$$value"),i=Ma([Ci(n,Oa("$.get",r)),Ti(Za(s.map((e=>ti("init",e,e)))))]),o=[Ci(a,Uc(t.state,pi(i)))];for(const e of s)t.state.transform[e.name]={read:Oc},o.push(Ci(e,Uc(t.state,pi(Ya(Oa("$.get",a),e)))));return{id:r,declarations:o}}function Hk(e,t,n,{visit:s,state:r}){const a=r.metadata.bound_contenteditable;let i=t,o=0,l=[];function c(e,t){const n=function(e){return 0===o?i(e):Oa("$.sibling",i(!1),(e||1!==o)&&Qa(o),e&&fi)}(e);let s=n;return"Identifier"!==s.type&&(s=Ga(r.scope.generate(t)),r.init.push(Ci(s,n))),i=()=>s,o=1,s}function p(e){if(e.every((e=>"Text"===e.type)))return o+=1,void r.template.push(e.map((e=>e.raw)).join(""));r.template.push(" ");const{has_state:t,value:n}=Tk(e,s,r),i=c(1===e.length,"text"),l=li(Oa("$.set_text",i,n));t&&!a?r.update.push(l):r.init.push(li(Ra("=",Ya(i,"nodeValue"),n)))}for(const t of e)if("Text"===t.type||"ExpressionTag"===t.type)l.push(t);else{l.length>0&&(p(l),l=[]);let a=r;if(Uk(t))o+=1;else if("EachBlock"===t.type&&1===e.length&&n)t.metadata.is_controlled=!0;else{const e=c(!1,"RegularElement"===t.type?t.name:"node");a={...r,node:e}}s(t,a)}l.length>0&&p(l),o>1&&(o-=1,r.init.push(li(Oa("$.next",1!==o&&Qa(o)))))}function Uk(e,t){if("RegularElement"!==e.type)return!1;if(e.fragment.metadata.dynamic)return!1;if(qo(e))return!1;for(const t of e.attributes){if("Attribute"!==t.type)return!1;if(Oi(t))return!1;if(Q(t.name))return!1;if("dir"===t.name)return!1;if(["input","textarea"].includes(e.name)&&["value","checked"].includes(t.name))return!1;if("option"===e.name&&"value"===t.name)return!1;if("img"===e.name&&"loading"===t.name)return!1;if(!0!==t.value&&!Ri(t))return!1}return!0}function zk(e,t){let n=[],s=!1;for(const r of e){const e=t.visit(r.expression);n.push(Xa(r.name,e)),s||=r.metadata.expression.has_call||r.metadata.expression.has_state}const r=Za(n);return s?Ek(t.state,r):r}function Wk(e,t){let n=[],s=[];for(const r of e){const e=!0===r.value?jc({name:r.name,type:"Identifier"},t.state):Yk(r.value,t,((e,n)=>n.has_call?Ek(t.state,e):e)).value,a=Xa(r.name,e);r.modifiers.includes("important")?s.push(a):n.push(a)}return s.length?Ta([Za(n),Za(s)]):Za(n)}function Gk(e,t,n,s,r){return"muted"===n?Ra("=",Ya(t,Ga("muted")),s):"value"===n?Oa("$.set_value",t,s):"checked"===n?Oa("$.set_checked",t,s):"selected"===n?Oa("$.set_selected",t,s):"defaultValue"===n&&(r.some((e=>"Attribute"===e.type&&"value"===e.name&&Ri(e)))||"textarea"===e.name&&e.fragment.nodes.length>0)?Oa("$.set_default_value",t,s):"defaultChecked"===n&&r.some((e=>"Attribute"===e.type&&"checked"===e.name&&!0===e.value))?Oa("$.set_default_checked",t,s):function(e){return K.includes(e)}(n)?Ra("=",Ya(t,n),s):Oa(n.startsWith("xlink")?"$.set_xlink_attribute":"$.set_attribute",t,Qa(n),s,ve(e,"hydration_attribute_changed")&&fi)}function Kk(e,t,n){const{value:s,has_state:r}=Yk(t.value,n),a=Oa("$.set_custom_element_data",e,Qa(t.name),s),i=r?Oa("$.template_effect",pi(a)):a;n.state.init.push(li(i))}function Xk(e,t,n,s){const r=s.state,a="select"===e&&!0!==n.value&&!Ri(n),{value:i,has_state:o}=Yk(n.value,s,((e,t)=>t.has_call?a?Pk(r,e):Ek(r,e):e)),l=Ra("=",Ya(t,"value"),(c=La("==",vi,Ra("=",Ya(t,"__value"),i)),p=Qa(""),{type:"ConditionalExpression",test:c,consequent:p,alternate:i}));var c,p;const u=li(a?ai([l,Oa("$.select_option",t,i)]):l);if(a&&r.init.push(li(Oa("$.init_select",t,pi(i)))),o){const n=r.scope.generate(`${t.name}_value`);Ik(r,n,"option"===e?Za([]):void 0,i,u)}else r.init.push(u)}function Qk(e,t,n,s,r,a,i){let o=!1;const l=[];for(const t of e)if("Attribute"===t.type){const{value:e,has_state:n}=Yk(t.value,s,((e,t)=>t.has_call?Ek(s.state,e):e));if(!Oi(t)||"ArrowFunctionExpression"!==e.type&&"FunctionExpression"!==e.type)l.push(Xa(t.name,e));else{const n=s.state.scope.generate("event_handler");s.state.init.push(Ci(n,e)),l.push(Xa(t.name,Ga(n)))}o||=n}else{o=!0;let e=s.visit(t);t.metadata.expression.has_call&&(e=Ek(s.state,e)),l.push(oi(e))}t.length&&(l.push(ti("init",Ta([Ga("$.CLASS")]),zk(t,s))),o||=null!==t.find((e=>e.metadata.expression.has_state))),n.length&&(l.push(ti("init",Ta([Ga("$.STYLE")]),Wk(n,s))),o||=n.some((e=>e.metadata.expression.has_state)));const c=Oa("$.set_attributes",a,o?i:vi,Za(l),r.metadata.scoped&&""!==s.state.analysis.css.hash&&Qa(s.state.analysis.css.hash),ve(r,"hydration_attribute_changed")&&fi);if(o){s.state.init.push(_i(i));const e=li(Ra("=",i,c));s.state.update.push(e)}else s.state.init.push(li(c))}function Yk(e,t,n=(e=>e)){if(!0===e)return{value:fi,has_state:!1};if(!Array.isArray(e)||1===e.length){const s=Array.isArray(e)?e[0]:e;if("Text"===s.type)return{value:Qa(s.data),has_state:!1};return{value:n(t.visit(s.expression),s.metadata.expression),has_state:s.metadata.expression.has_state}}return Tk(e,t.visit,t.state,n)}function Jk(e,t){return e.metadata.svg||e.metadata.mathml?t.name:(n=(n=t.name).toLowerCase(),G[n]??n);var n}function Zk(e,t,n,s,r,a){let i,o,l,c,{value:p,has_state:u}=Yk(n.value,r,((e,t)=>(n.metadata.needs_clsx&&(e=Oa("$.clsx",e)),t.has_call?Ek(r.state,e):e)));s.length&&(l=zk(s,r),u||=s.some((e=>e.metadata.expression.has_state)),u?(i=Ga(r.state.scope.generate("classes")),r.state.init.push(Fa("let",[Va(i)])),o=i):o=Za([])),e.metadata.scoped&&r.state.analysis.css.hash&&("Literal"!==p.type||""!==p.value&&null!==p.value?"Literal"===p.type&&"string"==typeof p.value?p=Qa(Zw(p.value,!0)+" "+r.state.analysis.css.hash):c=Qa(r.state.analysis.css.hash):p=Qa(r.state.analysis.css.hash)),!c&&l&&(c=vi);let d=Oa("$.set_class",t,Qa(a?1:0),p,c,o,l);i&&(d=Ra("=",i,d)),(u?r.state.update:r.state.init).push(li(d))}function eS(e,t,n,s){let r,a,i,{value:o,has_state:l}=Yk(t.value,s,((e,t)=>t.has_call?Ek(s.state,e):e));n.length&&(i=Wk(n,s),l||=n.some((e=>e.metadata.expression.has_state)),l?(r=Ga(s.state.scope.generate("styles")),s.state.init.push(Fa("let",[Va(r)])),a=r):a=Za([]));let c=Oa("$.set_style",e,o,a,i);r&&(c=Ra("=",r,c)),(l?s.state.update:s.state.init).push(li(c))}function tS(e,t){if("Literal"===e.type){let n=e.value?.toString().replace(f,"_");for(;n&&t.has(n);)n="_"+n;return n}return e.name}function nS(e,t,n,s=n.state.node){const r=[],a=[],i=[],o={default:{...n.state,scope:e.metadata.scopes.default,transform:{...n.state.transform}}},l={},c={},p=[];let u=null;const d=[];let h=!!Pl(e),m=!1;function f(e,t=!1){const n=()=>{const t=r.at(-1),n=Array.isArray(t),s=n?t:[];s.push(e),n||r.push(s)};t?a.push(n):n()}if(h)for(const t of e.attributes)"LetDirective"===t.type&&i.push(n.visit(t));for(const s of e.attributes)if("LetDirective"===s.type)h||i.push(n.visit(s,o.default));else if("OnDirective"===s.type){s.expression||(n.state.analysis.needs_props=!0);let e=Bk(s.expression,s.metadata.expression,n);s.modifiers.includes("once")&&(e=Oa("$.once",e)),(c[s.name]||=[]).push(e)}else if("SpreadAttribute"===s.type){const e=n.visit(s);if(s.metadata.expression.has_state){let t=e;if(s.metadata.expression.has_call){const e=Ga(n.state.scope.generate("spread_element"));n.state.init.push(Ci(e,Oa("$.derived",pi(t)))),t=Oa("$.get",e)}r.push(pi(t))}else r.push(e)}else if("Attribute"===s.type){if(s.name.startsWith("--")){p.push(Xa(s.name,Yk(s.value,n,((e,t)=>t.has_call?Pk(n.state,e):e)).value));continue}"slot"===s.name&&(h=!0),"children"===s.name&&(m=!0);const{value:e,has_state:t}=Yk(s.value,n,((e,t)=>{if(!t.has_state)return e;const r=Mi(s.value).some((e=>"ExpressionTag"===e.type&&"Identifier"!==e.expression.type&&"MemberExpression"!==e.expression.type));return r?Pk(n.state,e):e}));f(t?Wa(s.name,[Ti(e)]):Xa(s.name,e))}else if("BindDirective"===s.type){const r=n.visit(s.expression);if(ce&&"this"!==s.name&&d.push(li(Oa(Ga("$.add_owner_effect"),"SequenceExpression"===r.type?r.expressions[0]:pi(r),Ga(t),ve(e,"ownership_invalid_binding")&&fi))),"SequenceExpression"===r.type)if("this"===s.name)u=s.expression;else{const[e,t]=r.expressions,a=Ga(n.state.scope.generate("bind_get")),i=Ga(n.state.scope.generate("bind_set"));n.state.init.push(Ci(a,e)),n.state.init.push(Ci(i,t)),f(Wa(s.name,[Ti(Oa(a))])),f(ii(s.name,[li(Oa(i,Ga("$$value")))]))}else if(ce&&"MemberExpression"===r.type&&n.state.analysis.runes&&!ve(e,"binding_property_non_reactive")&&qk(n.state,s,r),"this"===s.name)u=s.expression;else{const e="Identifier"===s.expression.type&&"store_sub"===n.state.scope.get(s.expression.name)?.kind;f(Wa(s.name,e?[li(Oa("$.mark_store_binding")),Ti(r)]:[Ti(r)]),!0);const t=Ra("=",s.expression,Ga("$$value"));f(ii(s.name,[li(n.visit(t))]),!0)}}if(a.forEach((e=>e())),h&&n.state.init.push(...i),Object.keys(c).length>0){const e=Za(Object.keys(c).map((e=>Xa(e,c[e].length>1?Ta(c[e]):c[e][0]))));f(Xa("$$events",e))}const y=[],v=[];for(const t of e.fragment.nodes){if("SnippetBlock"===t.type){n.visit(t,{...n.state,init:y}),f(ti("init",t.expression,t.expression)),v.push(Xa("children"===t.expression.name?"default":t.expression.name,fi));continue}let e=Pl(t)??"default";(l[e]||=[]).push(t)}for(const t of Object.keys(l)){const s=n.visit({...e.fragment,nodes:l[t]},"default"===t?h?n.state:o.default:{...n.state,scope:e.metadata.scopes[t],transform:{...n.state.transform}});if(0===s.body.length)continue;const r=Ia([Ga("$$anchor"),Ga("$$slotProps")],Ma([..."default"!==t||h?[]:i,...s.body]));"default"!==t||m?v.push(Xa(t,r)):0===i.length&&l.default.every((e=>"SvelteFragment"!==e.type||!e.attributes.some((e=>"LetDirective"===e.type))))?(f(Xa("children",ce?Oa("$.wrap_snippet",Ga(n.state.analysis.name),r):r)),v.push(Xa(t,fi))):(v.push(Xa(t,r)),f(Xa("children",Ga("$.invalid_default_snippet"))))}v.length>0&&f(Xa("$$slots",Za(v))),!n.state.analysis.runes&&e.attributes.some((e=>"BindDirective"===e.type))&&f(Xa("$$legacy",fi));const g=0===r.length||1===r.length&&Array.isArray(r[0])?Za(r[0]||[]):Oa("$.spread_props",...r.map((e=>Array.isArray(e)?Za(e):e)));let b=s=>Oa("SvelteComponent"===e.type?t:n.visit(Ja(t)),s,g);if(null!==u){const e=b;b=t=>Rk(u,e(t),n)}const _=[...y];if("SvelteComponent"===e.type){const s=b;b=r=>Oa("$.component",r,pi(n.visit(e.expression)),Ia([Ga("$$anchor"),Ga(t)],Ma([...d,li(s(Ga("$$anchor")))])))}else _.push(...d);return Object.keys(p).length>0?(n.state.template.push("svg"===n.state.metadata.namespace?"<g><!></g>":'<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>'),_.push(li(Oa("$.css_props",s,pi(Za(p)))),li(b(Ya(s,"lastChild"))),li(Oa("$.reset",s)))):(n.state.template.push("<!>"),_.push(li(b(s)))),_.length>1?Ma(_):_[0]}function sS(e,t){const n=new Set;for(const t of e){const e=rS(t);for(const t of e)n.add(t)}return[...n].map((e=>jc({...e.node},t.state)))}function rS(e,t=new Set){if("legacy_reactive"!==e.kind)return[];for(const n of e.legacy_dependencies)if(!t.has(n)){t.add(n);for(const e of rS(n,t))t.add(e)}return[...t]}function aS(e){let t=si("");const n=ci([t],[]);function s(e){if("TemplateLiteral"===e.type){for(let n=0;n<e.expressions.length;n+=1){const r=e.quasis[n],a=e.expressions[n];t.value.cooked+=r.value.cooked,s(a)}const n=e.quasis.at(-1);t.value.cooked+=n.value.cooked}else"Literal"===e.type?t.value.cooked+=e.value:(n.expressions.push(e),n.quasis.push(t=si("")))}for(const n of e)"string"==typeof n?t.value.cooked+=n:s(n);for(const e of n.quasis)e.value.raw=Ea(e.value.cooked);return t.tail=!0,n}function iS(e){return Ta(e.map((e=>{const t=Ta([Qa(e[0]),Qa(e[1])]);return 3===e.length&&t.elements.push(iS(e[2])),t})))}const oS=["stopPropagation","stopImmediatePropagation","preventDefault","self","trusted","once"];function lS(e,t,n){const s={...n.state,node:Ga(t)};for(const t of e.attributes)"OnDirective"===t.type?n.state.init.push(li(n.visit(t,s))):n.visit(t,s)}function cS(e,{scope:t,analysis:n},s){if("Identifier"===e.id.type)return[Va(e.id,Oa("$.mutable_source",s,n.immutable?fi:void 0))];const r=t.generate("tmp"),a=Fi(e.id);return[Va(Ga(r),s),...a.map((e=>{const s=e.expression?.(Ga(r)),a=t.get(e.node.name);return Va(e.node,"state"===a?.kind?Oa("$.mutable_source",s,n.immutable?fi:void 0):s)}))]}const pS={_:function(e,{next:t,state:n}){const s=n.scopes.get(e);if(s&&s!==n.scope){const e={...n.transform};for(const[t,r]of s.declarations)("normal"===r.kind||"state"===r.kind&&!Dc(r,n.analysis))&&delete e[t];t({...n,transform:e,scope:s})}else t()},AnimateDirective:function(e,t){const n=null===e.expression?vi:pi(t.visit(e.expression));t.state.after_update.push(li(Oa("$.animation",t.state.node,pi(t.visit($k(e.name))),n)))},ArrowFunctionExpression:function(e,t){return Lk(e,t)},AssignmentExpression:function(e,t){const n=Xw(e,t,Nk)??t.next();return ve(e,"ownership_invalid_mutation")?Oa("$.skip_ownership_validation",pi(n)):n},Attribute:function(e,t){Oi(e)&&Dk(e,t)},AwaitBlock:function(e,t){t.state.template.push("<!>");const n=pi(t.visit(e.expression));let s,r;if(e.then){const n={...t,state:{...t.state,transform:{...t.state.transform}}},r=e.value&&Vk(e.value,n),a=[Ga("$$anchor")];r&&a.push(r.id);s=Ia(a,Ma([...r?.declarations??[],...n.visit(e.then,n.state).body]))}if(e.catch){const n={...t,state:{...t.state}},s=e.error&&Vk(e.error,n),a=[Ga("$$anchor")];s&&a.push(s.id);r=Ia(a,Ma([...s?.declarations??[],...n.visit(e.catch,n.state).body]))}t.state.init.push(li(Oa("$.await",t.state.node,n,e.pending?Ia([Ga("$$anchor")],t.visit(e.pending)):vi,s,r)))},BinaryExpression:function(e,t){if(ce){const n=e.operator;if("==="===n||"!=="===n)return Oa("$.strict_equals",t.visit(e.left),t.visit(e.right),"!=="===n&&yi);if("=="===n||"!="===n)return Oa("$.equals",t.visit(e.left),t.visit(e.right),"!="===n&&yi)}t.next()},BindDirective:function(e,t){const n=t.visit(e.expression),s=$c[e.name],r=t.path.at(-1);let a,i,o;if("SequenceExpression"===n.type?[a,i]=n.expressions:(ce&&t.state.analysis.runes&&"MemberExpression"===n.type&&("this"!==e.name||t.path.some((({type:e})=>"IfBlock"===e||"EachBlock"===e||"AwaitBlock"===e||"KeyBlock"===e)))&&!ve(e,"binding_property_non_reactive")&&qk(t.state,e,n),a=pi(n),i=ui(Ia([Ga("$$value")],t.visit(Ra("=",e.expression,Ga("$$value"))))),a===i&&(i=void 0)),s?.event)o=Oa("$.bind_property",Qa(e.name),Qa(s.event),t.state.node,i??a,s.bidirectional&&a);else switch(e.name){case"online":o=Oa("$.bind_online",i??a);break;case"scrollX":case"scrollY":o=Oa("$.bind_window_scroll",Qa("scrollX"===e.name?"x":"y"),a,i);break;case"innerWidth":case"innerHeight":case"outerWidth":case"outerHeight":o=Oa("$.bind_window_size",Qa(e.name),i??a);break;case"activeElement":o=Oa("$.bind_active_element",i??a);break;case"muted":o=Oa("$.bind_muted",t.state.node,a,i);break;case"paused":o=Oa("$.bind_paused",t.state.node,a,i);break;case"volume":o=Oa("$.bind_volume",t.state.node,a,i);break;case"playbackRate":o=Oa("$.bind_playback_rate",t.state.node,a,i);break;case"currentTime":o=Oa("$.bind_current_time",t.state.node,a,i);break;case"buffered":o=Oa("$.bind_buffered",t.state.node,i??a);break;case"played":o=Oa("$.bind_played",t.state.node,i??a);break;case"seekable":o=Oa("$.bind_seekable",t.state.node,i??a);break;case"seeking":o=Oa("$.bind_seeking",t.state.node,i??a);break;case"ended":o=Oa("$.bind_ended",t.state.node,i??a);break;case"readyState":o=Oa("$.bind_ready_state",t.state.node,i??a);break;case"contentRect":case"contentBoxSize":case"borderBoxSize":case"devicePixelContentBoxSize":o=Oa("$.bind_resize_observer",t.state.node,Qa(e.name),i??a);break;case"clientWidth":case"clientHeight":case"offsetWidth":case"offsetHeight":o=Oa("$.bind_element_size",t.state.node,Qa(e.name),i??a);break;case"value":o="RegularElement"===r?.type&&"select"===r.name?Oa("$.bind_select_value",t.state.node,a,i):Oa("$.bind_value",t.state.node,a,i);break;case"files":o=Oa("$.bind_files",t.state.node,a,i);break;case"this":o=Rk(e.expression,t.state.node,t);break;case"textContent":case"innerHTML":case"innerText":o=Oa("$.bind_content_editable",Qa(e.name),t.state.node,a,i);break;case"checked":o=Oa("$.bind_checked",t.state.node,a,i);break;case"focused":o=Oa("$.bind_focused",t.state.node,i??a);break;case"group":{const s=e.metadata.parent_each_blocks.map((e=>e.metadata.keyed&&e.index?Oa("$.get",e.metadata.index):e.metadata.index));let l=a;if("RegularElement"===r?.type){const e=r.attributes.find((e=>"Attribute"===e.type&&"value"===e.name&&!Ri(e)&&!0!==e.value))?.value;void 0!==e&&(l=pi(Ma([li(Yk(e,t).value),Ti(n)])))}o=Oa("$.bind_group",e.metadata.binding_group_name,Ta(s),t.state.node,l,i??a);break}default:throw new Error("unknown binding "+e.name)}if("this"===e.name)t.state.init.push(li(o));else{"RegularElement"===r.type&&r.attributes.find((e=>"UseDirective"===e.type))?t.state.init.push(li(Oa("$.effect",pi(o)))):t.state.after_update.push(li(o))}},BlockStatement:function(e,t){Nc(t);const n=t.state.scope.tracing;if(null!==n){const s=t.path.at(-1).async,r=Oa("$.trace",n,pi(Ma(e.body.map((e=>t.visit(e)))),s));return Ma([Ti(s?qa(r):r)])}t.next()},BreakStatement:function(e,t){if(t.state.analysis.runes||!e.label||"$"!==e.label.name)return;return"LabeledStatement"===t.path[1].type&&"$"===t.path[1].label.name?Ti():void 0},CallExpression:function(e,t){switch(Bl(e,t.state.scope)){case"$host":return Ga("$$props.$$host");case"$effect.tracking":return Oa("$.effect_tracking");case"$state.snapshot":return Oa("$.snapshot",t.visit(e.arguments[0]),ve(e,"state_snapshot_uncloneable")&&fi);case"$effect.root":return Oa("$.effect_root",...e.arguments.map((e=>t.visit(e))));case"$inspect":case"$inspect().with":return yk(e,t)}if(ce&&"MemberExpression"===e.callee.type&&"Identifier"===e.callee.object.type&&"console"===e.callee.object.name&&null===t.state.scope.get("console")&&"Identifier"===e.callee.property.type&&["debug","dir","error","group","groupCollapsed","info","log","trace","warn"].includes(e.callee.property.name)&&e.arguments.some((e=>"Literal"!==e.type)))return Oa(e.callee,oi(Oa("$.log_if_contains_state",Qa(e.callee.property.name),...e.arguments.map((e=>t.visit(e))))));t.next()},ClassBody:function(e,t){if(!t.state.analysis.runes)return void t.next();const n=new Map,s=new Map,r=new Map,a=[];for(const i of e.body)if(!("PropertyDefinition"!==i.type&&"MethodDefinition"!==i.type||"Identifier"!==i.key.type&&"PrivateIdentifier"!==i.key.type&&"Literal"!==i.key.type)){const e=i.key.type,o=tS(i.key,n);if(!o)continue;r.set(i.key,o);const l="PrivateIdentifier"===e;if(l&&a.push(o),"CallExpression"===i.value?.type){const e=Bl(i.value,t.state.scope);if("$state"===e||"$state.raw"===e||"$derived"===e||"$derived.by"===e){const t={kind:"$state"===e?"state":"$state.raw"===e?"raw_state":"$derived.by"===e?"derived_by":"derived",id:l?i.key:null};l?s.set(o,t):n.set(o,t)}}}for(const[e,t]of n){let n=e;for(;a.includes(n);)n="_"+n;a.push(n),t.id=Ka(n)}const i=[],o={...t.state,public_state:n,private_state:s};for(const a of e.body){if("PropertyDefinition"===a.type&&("Identifier"===a.key.type||"PrivateIdentifier"===a.key.type||"Literal"===a.key.type)){const e=r.get(a.key);if(!e)continue;const l="PrivateIdentifier"===a.key.type,c=(l?s:n).get(e);if("CallExpression"===a.value?.type&&void 0!==c){let n=null;if(a.value.arguments.length>0){const e=t.visit(a.value.arguments[0],o);n="state"===c.kind?Oa("$.state",Hc(e,t.state.scope)?Oa("$.proxy",e):e):"raw_state"===c.kind?Oa("$.state",e):"derived_by"===c.kind?Oa("$.derived",e):Oa("$.derived",pi(e))}else n=Oa("$.state");if(l)i.push(ni(c.id,n));else{const t=Ya(bi,c.id);if(i.push(ni(c.id,n)),i.push(wi("get",a.key,[],[Ti(Oa("$.get",t))])),"state"===c.kind||"raw_state"===c.kind){const e=Ga("value");i.push(wi("set",a.key,[e],[li(Oa("$.set",t,e,"state"===c.kind&&fi))]))}!ce||"derived"!==c.kind&&"derived_by"!==c.kind||i.push(wi("set",a.key,[Ga("_")],[Ai(`Cannot update a derived property ('${e}')`)]))}continue}}i.push(t.visit(a,o))}return ce&&n.size>0&&i.push(wi("method",Ga("$.ADD_OWNER"),[Ga("owner")],[li(Oa("$.add_owner_to_class",bi,Ga("owner"),Ta(Array.from(n).map((([e])=>pi(Oa("$.get",Ya(bi,Ka(e))))))),ve(e,"ownership_invalid_binding")&&fi))],!0)),{...e,body:i}},Comment:function(e,t){t.state.template.push(`\x3c!--${e.data}--\x3e`)},Component:function(e,t){if(e.metadata.dynamic){const n=nS(e,"$$component",t,Ga("$$anchor"));return void t.state.init.push(li(Oa("$.component",t.state.node,pi(t.visit(Ja(e.name))),Ia([Ga("$$anchor"),Ga("$$component")],Ma([n])))))}const n=nS(e,e.name,t);t.state.init.push(n)},ConstTag:function(e,t){const n=e.declaration.declarations[0];if("Identifier"===n.id.type)t.state.init.push(xi(n.id,Uc(t.state,pi(t.visit(n.init))))),t.state.transform[n.id.name]={read:Oc},ce&&t.state.init.push(li(Oa("$.get",n.id)));else{const e=Di(n.id),s=Ga(t.state.scope.generate("computed_const")),r={...t.state.transform};for(const t of e)delete r[t.name];const a={...t.state,transform:r},i=Ia([],Ma([xi(t.visit(n.id,a),t.visit(n.init,a)),Ti(Za(e.map((e=>ti("init",e,e)))))]));t.state.init.push(xi(s,Uc(t.state,i))),ce&&t.state.init.push(li(Oa("$.get",s)));for(const n of e)t.state.transform[n.name]={read:e=>Ya(Oa("$.get",s),e)}}},DebugTag:function(e,t){const n=Za(e.identifiers.map((e=>{const n=Oa("$.snapshot",t.visit(e));return ti("init",e,t.state.analysis.runes?n:Oa("$.untrack",pi(n)))}))),s=Oa("console.log",n);t.state.init.push(li(Oa("$.template_effect",pi(Ma([li(s),gi])))))},EachBlock:function(e,t){const n=e.metadata,s=t.visit(e.expression,{...t.state,scope:t.state.scope.parent});n.is_controlled||t.state.template.push("<!>");let r=0;e.metadata.keyed&&e.index&&(r|=2);const a="Identifier"===e.key?.type&&"Identifier"===e.context?.type&&e.context?.name===e.key.name;let i;for(const t of e.metadata.expression.dependencies)if("store_sub"===t.kind){i=!0;break}for(const n of e.metadata.expression.dependencies)if(!(n.scope.function_depth>=t.state.scope.function_depth)&&(!t.state.analysis.runes||!a||i)){r|=1;break}t.state.analysis.runes&&!i&&(r|=16),e.key&&e.body.nodes.some((e=>("RegularElement"===e.type||"SvelteElement"===e.type)&&e.attributes.some((e=>"AnimateDirective"===e.type))))&&(r|=8),n.is_controlled&&(r|=4);let o="";if("Identifier"===e.expression.type||"MemberExpression"===e.expression.type){const n=Ii(e.expression);if(n){const e=t.state.scope.get(n.name);"store_sub"===e?.kind&&(o=n.name)}}const l=function(e){return e.path.filter((e=>"EachBlock"===e.type))}(t).flatMap((e=>[t.visit(e.expression),...sS(e.metadata.expression.dependencies,t)]));let c=null;for(const[e]of t.state.scope.declarations)if(null!=t.state.scope.parent?.get(e)){c=t.state.scope.root.unique("$$array");break}if(c)l.push(Oa(c));else{l.push(s);const e=sS(n.expression.dependencies,t);l.push(...e)}const p={...t.state,transform:{...t.state.transform},store_to_invalidate:o},u={...t.state,transform:{...t.state.transform}},d=n.contains_group_binding||!e.index?n.index:Ga(e.index),h="Identifier"===e.context?.type?e.context:Ga("$$item");let m=n.contains_group_binding,f=!1;e.index&&(p.transform[e.index]={read:e=>(m=!0,0!=(2&r)?Oc(e):e)},u.transform[e.index]={read:e=>(f=!0,e)});const y=[],v=Oa("$.invalidate_inner_signals",pi(ai(l))),g=o?Oa("$.invalidate_store",Ga("$$stores"),Qa(o)):void 0,b=[];if(t.state.analysis.runes||b.push(v),g&&b.push(g),"Identifier"===e.context?.type){const n=t.state.scope.get(e.context.name);p.transform[e.context.name]={read:e=>n.reassigned?Ya(c?Oa(c):s,0!=(2&r)?Oc(d):d,!0):0!=(1&r)?Oc(e):e,assign:(e,t)=>{m=!0;return ai([Ra("=",Ya(c?Oa(c):s,0!=(2&r)?Oc(d):d,!0),t),...b])},mutate:(e,t)=>(m=!0,ai([t,...b]))},delete u.transform[e.context.name]}else if(e.context){const n=0!=(1&r)?Oa("$.get",h):h;for(const s of Fi(e.context)){const e=s.node.name,r=s.has_default_value,a=pi(t.visit(s.expression?.(n),p));y.push(_i(s.node,r?Oa("$.derived_safe_equal",a):a));const i=r?Oc:Oa;p.transform[e]={read:i,assign:(e,t)=>ai([Ra("=",s.update_expression(n),t),...b]),mutate:(e,t)=>ai([t,...b])},ce&&y.push(li(i(Ga(e)))),delete u.transform[e]}}const _=t.visit(e.body,p);let x=Ga("$.index");if(e.metadata.keyed){const n=e.context,s=t.visit(e.key,u);x=Ia(f?[n,d]:[n],s)}e.index&&n.contains_group_binding&&y.push(_i(e.index,d)),ce&&e.metadata.keyed&&t.state.init.push(li(Oa("$.validate_each_keys",pi(s),x)));const C=[Ga("$$anchor"),h];(m||c)&&C.push(d),c&&C.push(c);const w=[t.state.node,Qa(r),pi(s),x,Ia(C,Ma(y.concat(_.body)))];e.fallback&&w.push(Ia([Ga("$$anchor")],t.visit(e.fallback))),t.state.init.push(li(Oa("$.each",...w)))},ExportNamedDeclaration:function(e,t){return t.state.is_instance?e.declaration?t.visit(e.declaration):Ha:t.next()},ExpressionStatement:function(e,t){if("CallExpression"===e.expression.type){const n=Bl(e.expression,t.state.scope);if("$effect"===n||"$effect.pre"===n){const s=Oa("$effect"===n?"$.user_effect":"$.user_pre_effect",t.visit(e.expression.arguments[0]));return s.callee.loc=e.expression.callee.loc,li(s)}if("$inspect.trace"===n)return Ha}t.next()},Fragment:function(e,t){const n=t.path.at(-1)??e,s=mk(t.state.metadata.namespace,n,e.nodes),{hoisted:r,trimmed:a,is_standalone:i,is_text_first:o}=hk(n,e.nodes,t.path,s,t.state,t.state.preserve_whitespace,t.state.options.preserveComments);if(0===r.length&&0===a.length)return Ma([]);const l=1===a.length&&"RegularElement"===a[0].type,c=1===a.length&&("SvelteFragment"===a[0].type||"TitleElement"===a[0].type||"IfBlock"===a[0].type&&a[0].elseif),p=t.state.scope.root.unique("root"),u=[];let d;const h={...t.state,init:[],update:[],expressions:[],after_update:[],template:[],locations:[],transform:{...t.state.transform},metadata:{context:{template_needs_import_node:!1,template_contains_script_tag:!1},namespace:s,bound_contenteditable:t.state.metadata.bound_contenteditable}};for(const e of r)t.visit(e,h);o&&u.push(li(Oa("$.next")));const m=(e,n)=>{let r=Oa(function(e,t){const n=t.metadata.context.template_contains_script_tag;return"svg"===e?n?"$.svg_template_with_script":"$.ns_template":"mathml"===e?"$.mathml_template":n?"$.template_with_script":"$.template"}(s,h),...n);ce&&(r=Oa("$.add_locations",r,Ya(Ga(t.state.analysis.name),"$.FILENAME",!0),iS(h.locations))),t.state.hoisted.push(Ci(e,r))};if(l){const e=a[0],n=Ga(t.state.scope.generate(e.name));t.visit(e,{...h,node:n});const s=[aS(h.template)];h.metadata.context.template_needs_import_node&&s.push(Qa(2)),m(p,s),u.push(Ci(n,Oa(p))),d=li(Oa("$.append",Ga("$$anchor"),n))}else if(c)t.visit(a[0],h);else if(1===a.length&&"Text"===a[0].type){const e=Ga(t.state.scope.generate("text"));u.push(Ci(e,Oa("$.text",Qa(a[0].data)))),d=li(Oa("$.append",Ga("$$anchor"),e))}else if(a.length>0){const e=Ga(t.state.scope.generate("fragment")),n=a.some((e=>"ExpressionTag"===e.type))&&a.every((e=>"Text"===e.type||"ExpressionTag"===e.type));if(n){const e=Ga(t.state.scope.generate("text"));Hk(a,(()=>e),!1,{...t,state:h}),u.push(Ci(e,Oa("$.text"))),d=li(Oa("$.append",Ga("$$anchor"),e))}else if(i)Hk(a,(()=>Ga("$$anchor")),!1,{...t,state:h});else{Hk(a,(t=>Oa("$.first_child",e,t&&fi)),!1,{...t,state:h});let n=1;h.metadata.context.template_needs_import_node&&(n|=2),1===h.template.length&&"<!>"===h.template[0]?u.push(Ci(e,Oa("$.comment"))):(m(p,[aS(h.template),Qa(n)]),u.push(Ci(e,Oa(p)))),d=li(Oa("$.append",Ga("$$anchor"),e))}}return u.push(...h.init),h.update.length>0&&u.push(Ak(h)),u.push(...h.after_update),void 0!==d&&u.push(d),Ma(u)},FunctionDeclaration:function(e,t){const n={...t.state,in_constructor:!1};if(!0===e.metadata?.hoisted){const s=Bc(e,t),r=t.visit(e.body,n);return t.state.hoisted.push({...e,params:s,body:r}),Ha}t.next(n)},FunctionExpression:function(e,t){return Lk(e,t)},HtmlTag:function(e,t){t.state.template.push("<!>"),t.state.init.push(li(Oa("$.html",t.state.node,pi(t.visit(e.expression)),Qa("svg"===t.state.metadata.namespace),Qa("mathml"===t.state.metadata.namespace),ve(e,"hydration_html_changed")&&fi)))},Identifier:function(e,t){const n=t.path.at(-1);if(Sl(e,n)){if("$$props"===e.name)return Ga("$$sanitized_props");const s=t.state.scope.get(e.name);if(t.state.analysis.runes&&null!==s&&e!==s.node&&"rest_prop"===s.kind){const e=t.path.at(-2);if("MemberExpression"===n?.type&&!n.computed&&"AssignmentExpression"!==e?.type&&"UpdateExpression"!==e?.type)return Ga("$$props")}return jc(e,t.state)}},IfBlock:function(e,t){t.state.template.push("<!>");const n=[],s=t.visit(e.consequent),r=t.state.scope.generate("consequent");let a;if(n.push(Ci(Ga(r),Ia([Ga("$$anchor")],s))),e.alternate){a=t.state.scope.generate("alternate");const s=t.visit(e.alternate),r=e.alternate.nodes;let i=[Ga("$$anchor")];1===r.length&&"IfBlock"===r[0].type&&r[0].elseif&&i.push(Ga("$$elseif")),n.push(Ci(Ga(a),Ia(i,s)))}const i=[e.elseif?Ga("$$anchor"):t.state.node,Ia([Ga("$$render")],Ma([Si(t.visit(e.test),li(Oa(Ga("$$render"),Ga(r))),a?li(Oa(Ga("$$render"),Ga(a),yi)):void 0)]))];e.elseif&&i.push(Ga("$$elseif")),n.push(li(Oa("$.if",...i))),t.state.init.push(Ma(n))},ImportDeclaration:function(e,t){if("hoisted"in t.state)return t.state.hoisted.push(e),Ha;t.next()},KeyBlock:function(e,t){t.state.template.push("<!>");const n=t.visit(e.expression),s=t.visit(e.fragment);t.state.init.push(li(Oa("$.key",t.state.node,pi(n),Ia([Ga("$$anchor")],s))))},LabeledStatement:function(e,t){if(t.state.analysis.runes||t.path.length>1||"$"!==e.label.name)return void t.next();const n=t.state.analysis.reactive_statements.get(e);if(!n)return;let s=t.visit(e.body);"BlockStatement"!==s.type&&(s=Ma([s]));const r=s.body,a=[];for(const e of n.dependencies){if("normal"===e.kind&&"import"!==e.declaration_kind)continue;const n=e.node.name;let s=jc(Ga(n),t.state);"$$props"!==n&&"$$restProps"!==n&&"bindable_prop"!==e.kind||(s=Oa("$.deep_read_state",s)),a.push(s)}return t.state.legacy_reactive_statements.set(e,li(Oa("$.legacy_pre_effect",a.length>0?pi(ai(a)):pi(Ma([])),pi(Ma(r))))),Ha},LetDirective:function(e,t){if(e.expression&&"Identifier"!==e.expression.type){const n=t.state.scope.generate(e.name),s=t.state.scope.get_bindings(e);for(const e of s)t.state.transform[e.node.name]={read:e=>Ya(Oa("$.get",Ga(n)),e)};return xi(n,Oa("$.derived",pi(Ma([_i("ObjectExpression"===e.expression.type?ei(e.expression.properties):Aa(e.expression.elements),Ya(Ga("$$slotProps"),e.name)),Ti(Za(s.map((e=>Xa(e.node.name,e.node)))))]))))}{const n=null===e.expression?e.name:e.expression.name;return t.state.transform[n]={read:e=>Oa("$.get",e)},xi(n,Uc(t.state,pi(Ya(Ga("$$slotProps"),e.name))))}},MemberExpression:function(e,t){if("PrivateIdentifier"===e.property.type){const n=t.state.private_state.get(e.property.name);if(n)return!t.state.in_constructor||"raw_state"!==n.kind&&"state"!==n.kind?Oa("$.get",e):Ya(e,"v")}t.next()},OnDirective:function(e,t){e.expression||(t.state.analysis.needs_props=!0);let n=Bk(e.expression,e.metadata.expression,t);for(const t of oS)e.modifiers.includes(t)&&(n=Oa("$."+t,n));const s=e.modifiers.includes("capture"),r=e.modifiers.includes("passive")||!e.modifiers.includes("nonpassive")&&void 0;return jk(e.name,t.state.node,n,s,r)},Program:function(e,t){if(!t.state.analysis.runes){t.state.transform.$$props={read:e=>({...e,name:"$$sanitized_props"})};for(const[e,n]of t.state.scope.declarations)if("import"===n.declaration_kind&&n.mutated){const{start:s,end:r}=t.state.analysis.instance.ast,a=n.initial;if(a.start>s&&a.end<r){const n=Ga("$$_import_"+e);t.state.transform[e]={read:e=>Oa(n),mutate:(e,t)=>Oa(n,t)},t.state.legacy_reactive_imports.push(Ci(n,Oa("$.reactive_import",pi(Ga(e)))))}}}for(const[e,n]of t.state.scope.declarations){if("store_sub"===n.kind){let n;const s=()=>n??=t.visit(Ga(e.slice(1)));t.state.transform[e]={read:Oa,assign:(e,t)=>Oa("$.store_set",s(),t),mutate:(e,t)=>{const n=Oa("$.untrack",e);function r(e){return"MemberExpression"===e.type?{...e,object:r(e.object),property:e.property}:n}return Oa("$.store_mutate",s(),"AssignmentExpression"===t.type?Ra(t.operator,r(t.left),t.right):hi(t.operator,r(t.argument),t.prefix),n)},update:n=>Oa(n.prefix?"$.update_pre_store":"$.update_store",jc(Ga(e.slice(1)),t.state),Oa(n.argument),"--"===n.operator&&Qa(-1))}}if("prop"===n.kind||"bindable_prop"===n.kind)if(Vc(n,t.state))t.state.transform[e]={read:Oa,assign:(e,t)=>Oa(e,t),mutate:(e,t)=>"bindable_prop"===n.kind?Oa(e,t,fi):t,update:e=>Oa(e.prefix?"$.update_pre_prop":"$.update_prop",e.argument,"--"===e.operator&&Qa(-1))};else if(n.prop_alias){const s=$i(n.prop_alias);t.state.transform[e]={read:e=>Ya(Ga("$$props"),s,"Literal"===s.type)}}else t.state.transform[e]={read:e=>Ya(Ga("$$props"),e)}}Nc(t),t.next()},RegularElement:function(e,t){let n=[-1,-1];if(ce){const s=de(e.start);s&&(n[0]=s.line,n[1]=s.column,t.state.locations.push(n))}if("noscript"===e.name)return void t.state.template.push("<noscript></noscript>");const s=qo(e);("video"===e.name||s)&&(t.state.metadata.context.template_needs_import_node=!0),"script"===e.name&&(t.state.metadata.context.template_contains_script_tag=!0),t.state.template.push(`<${e.name}`);const r=[],a=[],i=[],o=[],l=[],c=new Map,p=new Map;let u=e.metadata.has_spread,d=!1;for(const n of e.attributes)switch(n.type){case"AnimateDirective":case"OnDirective":case"TransitionDirective":o.push(n);break;case"Attribute":if("is"===n.name&&"html"===t.state.metadata.namespace){const{value:e}=Yk(n.value,t);if("Literal"===e.type&&"string"==typeof e.value){t.state.template.push(` is="${Zw(e.value,!0)}"`);continue}}r.push(n),c.set(n.name,n);break;case"BindDirective":p.set(n.name,n),o.push(n);break;case"ClassDirective":a.push(n);break;case"LetDirective":l.push(t.visit(n));break;case"SpreadAttribute":r.push(n);break;case"StyleDirective":i.push(n);break;case"UseDirective":d=!0,o.push(n)}const h={...t.state,init:[],after_update:[]};for(const e of o)if("OnDirective"===e.type){const n=t.visit(e);d?h.init.push(li(Oa("$.effect",pi(n)))):h.after_update.push(li(n))}else t.visit(e,h);if("input"===e.name){const e=r.some((e=>"Attribute"===e.type&&("value"===e.name||"checked"===e.name)&&!Ri(e)));!r.some((e=>"Attribute"===e.type&&("defaultValue"===e.name||"defaultChecked"===e.name)))&&(u||p.has("value")||p.has("checked")||p.has("group")||!p.has("group")&&e)&&t.state.init.push(li(Oa("$.remove_input_defaults",t.state.node)))}if("textarea"===e.name){const e=c.get("value")??c.get("checked"),n=e&&!Ri(e);(u||p.has("value")||n)&&t.state.init.push(li(Oa("$.remove_textarea_child",t.state.node)))}"select"===e.name&&p.has("value")&&function(e,t){if(t.state.analysis.runes)return;let n=e.expression;if("SequenceExpression"===n.type)return;for(;"MemberExpression"===n.type;)n=n.object;const s=[];for(const[e,r]of t.state.scope.references)r.length>0&&e!==n.name&&s.push(e);const r=Oa("$.invalidate_inner_signals",pi(Ma(s.map((e=>li(jc(Ga(e),t.state)))))));t.state.init.push(li(Oa("$.template_effect",pi(Ma([li(t.visit(n)),li(r)])))))}(p.get("value"),t),t.state.init.push(...l);const m=t.state.node;if(u){const n=Ga(t.state.scope.generate("attributes"));Qk(r,a,i,t,e,m,n),"select"!==e.name||p.has("value")||(t.state.init.push(li(Oa("$.init_select",m,pi(Ya(n,"value"))))),t.state.update.push(Si(La("in",Qa("value"),n),Ma([li(Oa("$.select_option",m,Ya(n,"value")))]))))}else{const n="option"===e.name||"select"===e.name||p.has("group")||p.has("checked");for(const o of r){if(Oi(o)){Dk(o,t);continue}if(n&&"value"===o.name){Xk(e.name,m,o,t);continue}const l=Jk(e,o);if(s||Q(o.name)||!0!==o.value&&!Ri(o)||"class"===l&&0!==a.length||"style"===l&&0!==i.length)if("autofocus"===l){let{value:e}=Yk(o.value,t);t.state.init.push(li(Oa("$.autofocus",m,e)))}else if("class"===l){const n="html"===t.state.metadata.namespace&&"svg"!==e.name;Zk(e,m,o,a,t,n)}else if("style"===l)eS(m,o,i,t);else if(s)Kk(m,o,t);else{const{value:n,has_state:s}=Yk(o.value,t,((e,n)=>n.has_call?Ek(t.state,e):e)),a=Gk(e,m,l,n,r);(s?t.state.update:t.state.init).push(li(a))}else{let n=!Ri(o)||o.value[0].data;"class"===l&&e.metadata.scoped&&t.state.analysis.css.hash&&(!0===n||""===n?n=t.state.analysis.css.hash:n+=" "+t.state.analysis.css.hash),("class"!==l||n)&&t.state.template.push(` ${o.name}${W(l)&&!0===n?"":`="${!0===n?"":Zw(n,!0)}"`}`)}}}te(e.name)&&(u||d||c.has("onload")||c.has("onerror"))&&t.state.after_update.push(li(Oa("$.replay_events",m))),t.state.template.push(">");const f={...t.state.metadata,namespace:fk(e,t.state.metadata.namespace)};if(p.has("innerHTML")||p.has("innerText")||p.has("textContent")){const e=c.get("contenteditable");e&&(!0===e.value||Ri(e)&&"true"===e.value[0].data)&&(f.bound_contenteditable=!0)}const y={...t.state,metadata:f,locations:[],scope:t.state.scopes.get(e.fragment),preserve_whitespace:t.state.preserve_whitespace||"pre"===e.name||"textarea"===e.name},{hoisted:v,trimmed:g}=hk(e,e.fragment.nodes,t.path,y.metadata.namespace,y,"script"===e.name||y.preserve_whitespace,y.options.preserveComments),b={...y,init:[],update:[],after_update:[]};for(const e of v)t.visit(e,b);if(g.every((e=>"Text"===e.type||"ExpressionTag"===e.type))&&g.every((e=>"Text"===e.type||!e.metadata.expression.has_state))&&g.some((e=>"ExpressionTag"===e.type))){const{value:e}=Tk(g,t.visit,b);"Literal"===e.type&&""===e.value||b.init.push(li(Ra("=",Ya(t.state.node,"textContent"),e)))}else{let n=t.state.node,s=g.some((e=>"Text"!==e.type));"template"===e.name&&(s=!0,b.init.push(li(Oa("$.hydrate_template",n))),n=Ya(n,"content")),Hk(g,(e=>Oa("$.child",n,e&&fi)),!0,{...t,state:b}),s&&b.init.push(li(Oa("$.reset",t.state.node)))}if(e.fragment.nodes.some((e=>"SnippetBlock"===e.type))?t.state.init.push(Ma([...b.init,...h.init,b.update.length>0?Ak(b):Ha,...b.after_update,...h.after_update])):e.fragment.metadata.dynamic?(t.state.init.push(...b.init,...h.init),t.state.update.push(...b.update),t.state.after_update.push(...b.after_update,...h.after_update)):(t.state.init.push(...h.init),t.state.after_update.push(...h.after_update)),c.has("dir")){const e=Ya(m,"dir");t.state.update.push(li(Ra("=",e,e)))}y.locations.length>0&&n.push(y.locations),j(e.name)||t.state.template.push(`</${e.name}>`)},RenderTag:function(e,t){t.state.template.push("<!>");const n=zi(e.expression),s=n.callee,r=n.arguments;let a=[];for(let n=0;n<r.length;n++){let s=pi(t.visit(r[n]));const{has_call:i}=e.metadata.arguments[n];if(i){const e=Ga(t.state.scope.generate("render_arg"));t.state.init.push(Ci(e,Oa("$.derived_safe_equal",s))),a.push(pi(Oa("$.get",e)))}else a.push(s)}let i=t.visit(s);e.metadata.dynamic?("ChainExpression"===e.expression.type&&(i=Ba("??",i,Ga("$.noop"))),t.state.init.push(li(Oa("$.snippet",t.state.node,pi(i),...a)))):t.state.init.push(li(("CallExpression"===e.expression.type?Oa:Na)(i,t.state.node,...a)))},SlotElement:function(e,t){t.state.template.push("<!>");const n=[],s=[],r=[];let a=Qa("default");for(const i of e.attributes)if("SpreadAttribute"===i.type)s.push(pi(t.visit(i)));else if("Attribute"===i.type){const{value:e,has_state:s}=Yk(i.value,t,((e,n)=>n.has_call?Pk(t.state,e):e));"name"===i.name?a=e:"slot"!==i.name&&(s?n.push(Wa(i.name,[Ti(e)])):n.push(Xa(i.name,e)))}else"LetDirective"===i.type&&r.push(t.visit(i));t.state.init.push(...r);const i=0===s.length?Za(n):Oa("$.spread_props",Za(n),...s),o=0===e.fragment.nodes.length?vi:Ia([Ga("$$anchor")],t.visit(e.fragment)),l=Oa("$.slot",t.state.node,Ga("$$props"),a,i,o);t.state.init.push(li(l))},SnippetBlock:function(e,t){const n=[Ga("$$anchor")];let s;const r=[],a={...t.state.transform},i={...t.state,transform:a};for(let s=0;s<e.parameters.length;s++){const i=e.parameters[s];if(!i)continue;if("Identifier"===i.type){n.push({type:"AssignmentPattern",left:i,right:Ga("$.noop")}),a[i.name]={read:Oa};continue}let o=`$$arg${s}`;n.push(Ga(o));const l=Fi(i);for(const e of l){const n=e.node.name,s=e.has_default_value,i=pi(t.visit(e.expression?.(Na(Ga(o)))));r.push(_i(e.node,s?Oa("$.derived_safe_equal",i):i)),a[n]={read:s?Oc:Oa},ce&&r.push(li(a[n].read(Ga(n))))}}s=Ma([...r,...t.visit(e.body,i).body]);let o=Ia(n,s);ce&&(o=Oa("$.wrap_snippet",Ga(t.state.analysis.name),o));const l=xi(e.expression,o);1===t.path.length&&"Fragment"===t.path[0].type?e.metadata.can_hoist?t.state.module_level_snippets.push(l):t.state.instance_level_snippets.push(l):t.state.init.push(l)},SpreadAttribute:function(e,t){return t.visit(e.expression)},SvelteBody:function(e,t){lS(e,"$.document.body",t)},SvelteComponent:function(e,t){const n=nS(e,"$$component",t);t.state.init.push(n)},SvelteDocument:function(e,t){lS(e,"$.document",t)},SvelteElement:function(e,t){t.state.template.push("<!>");const n=[];let s;const r=[],a=[],i=[],o=Ga(t.state.scope.generate("$$element")),l={...t,state:{...t.state,node:o,init:[],update:[],expressions:[],after_update:[]}};for(const o of e.attributes)if("Attribute"===o.type)"xmlns"!==o.name||Ri(o)||(s=o.value),n.push(o);else if("SpreadAttribute"===o.type)n.push(o);else if("ClassDirective"===o.type)r.push(o);else if("StyleDirective"===o.type)a.push(o);else if("LetDirective"===o.type)i.push(t.visit(o));else if("OnDirective"===o.type){const e=t.visit(o,l.state);l.state.after_update.push(li(e))}else t.visit(o,l.state);if(t.state.init.push(...i),1===n.length&&"Attribute"===n[0].type&&"class"===n[0].name.toLowerCase()&&Ri(n[0]))Zk(e,o,n[0],r,l,!1);else if(n.length){Qk(n,r,a,l,e,o,Ga(t.state.scope.generate("attributes")))}const c=pi(t.visit(e.tag));ce&&(e.fragment.nodes.length>0&&t.state.init.push(li(Oa("$.validate_void_dynamic_element",c))),t.state.init.push(li(Oa("$.validate_dynamic_element_tag",c))));const p=l.state.init;l.state.update.length>0&&p.push(Ak(l.state)),p.push(...l.state.after_update),p.push(...t.visit(e.fragment,{...t.state,metadata:{...t.state.metadata,namespace:fk(e,t.state.metadata.namespace)}}).body);const u=ce&&de(e.start);t.state.init.push(li(Oa("$.element",t.state.node,c,e.metadata.svg||e.metadata.mathml?fi:yi,p.length>0&&Ia([o,Ga("$$anchor")],Ma(p)),s&&pi(Yk(s,t).value),u&&Ta([Qa(u.line),Qa(u.column)]))))},SvelteFragment:function(e,t){for(const n of e.attributes)"LetDirective"===n.type&&t.state.init.push(t.visit(n));t.state.init.push(...t.visit(e.fragment).body)},SvelteBoundary:function(e,t){const n=Za([]);for(const s of e.attributes){if("Attribute"!==s.type||!0===s.value)continue;const e=Array.isArray(s.value)?s.value[0]:s.value,r=t.visit(e.expression,t.state);e.metadata.expression.has_state?n.properties.push(Wa(s.name,[Ti(r)])):n.properties.push(Xa(s.name,r))}const s=[],r=[],a=[],i=[];for(const o of e.fragment.nodes)if("SnippetBlock"===o.type&&"failed"===o.expression.name)i.push((()=>{const e=[];t.visit(o,{...t.state,init:e}),n.properties.push(ti("init",o.expression,o.expression)),r.push(...e)}));else if("ConstTag"===o.type){const e=[];if(t.visit(o,{...t.state,init:e}),ce)for(const t of e)"VariableDeclaration"===t.type?r.push(t):a.push(t);else r.push(...e)}else s.push(o);i.forEach((e=>e()));const o=t.visit({...e.fragment,nodes:s});ce&&a.length&&o.body.unshift(...a);const l=li(Oa("$.boundary",t.state.node,n,Ia([Ga("$$anchor")],o)));t.state.template.push("<!>"),t.state.init.push(r.length>0?Ma([...r,l]):l)},SvelteHead:function(e,t){t.state.init.push(li(Oa("$.head",Ia([Ga("$$anchor")],t.visit(e.fragment)))))},SvelteSelf:function(e,t){const n=nS(e,t.state.analysis.name,t);t.state.init.push(n)},SvelteWindow:function(e,t){lS(e,"$.window",t)},TitleElement:function(e,t){const{has_state:n,value:s}=Tk(e.fragment.nodes,t.visit,t.state),r=li(Ra("=",Ga("$.document.title"),s));n?t.state.update.push(r):t.state.init.push(r)},TransitionDirective:function(e,t){let n=e.modifiers.includes("global")?4:0;e.intro&&(n|=1),e.outro&&(n|=2);const s=[Qa(n),t.state.node,pi(t.visit($k(e.name)))];e.expression&&s.push(pi(t.visit(e.expression))),t.state.after_update.push(li(Oa("$.transition",...s)))},UpdateExpression:function(e,t){const n=e.argument;if("MemberExpression"===n.type&&"ThisExpression"===n.object.type&&"PrivateIdentifier"===n.property.type&&t.state.private_state.has(n.property.name)){let t="$.update";e.prefix&&(t+="_pre");const s=[n];return"--"===e.operator&&s.push(Qa(-1)),Oa(t,...s)}if("Identifier"!==n.type&&"MemberExpression"!==n.type)throw new Error("An impossible state was reached");const s=Ii(n),r=s&&t.state.transform[s.name];if(s===n&&r?.update)return r.update(e);let a=t.next();return s&&r?.mutate&&(a=r.mutate(s,a)),ve(e,"ownership_invalid_mutation")?Oa("$.skip_ownership_validation",pi(a)):a},UseDirective:function(e,t){const n=[Ga("$$node")];e.expression&&n.push(Ga("$$action_arg"));const s=[t.state.node,Ia(n,Na(t.visit($k(e.name)),...n))];e.expression&&s.push(pi(t.visit(e.expression))),t.state.init.push(li(Oa("$.action",...s))),t.next()},VariableDeclaration:function(e,t){const n=[];if(t.state.analysis.runes)for(const s of e.declarations){const e=s.init,r=Bl(e,t.state.scope);if(!r||"$effect.tracking"===r||"$effect.root"===r||"$inspect"===r||"$inspect.trace"===r||"$state.snapshot"===r||"$host"===r){if(null!=e&&uk(e)){t.state.hoisted.push(xi(s.id,t.visit(e)));continue}n.push(t.visit(s));continue}if("$props.id"===r)continue;if("$props"===r){const e=["$$slots","$$events","$$legacy"];if(t.state.analysis.custom_element&&e.push("$$host"),"Identifier"===s.id.type){const t=[Ga("$$props"),Ta(e.map((e=>Qa(e))))];ce&&t.push(Qa(s.id.name)),n.push(Va(s.id,Oa("$.rest_props",...t)))}else{Mx(s.id.type,"ObjectPattern");for(const r of s.id.properties)if("Property"===r.type){const s=r.key,a="Identifier"===s.type?s.name:s.value;e.push(a);let i="AssignmentPattern"===r.value.type?r.value.left:r.value;Mx(i.type,"Identifier");const o=t.state.scope.get(i.name);let l=o.initial&&t.visit(o.initial);l&&"bindable_prop"===o.kind&&Hc(l,t.state.scope)&&(l=Oa("$.proxy",l)),Vc(o,t.state)&&n.push(Va(i,Fc(o,t.state,a,l)))}else{const t=[Ga("$$props"),Ta(e.map((e=>Qa(e))))];ce&&t.push(Qa(r.argument.name)),n.push(Va(r.argument,Oa("$.rest_props",...t)))}}continue}const a=e.arguments,i=a.length>0?t.visit(a[0]):ja;if("$state"!==r&&"$state.raw"!==r)if("$derived"!==r&&"$derived.by"!==r);else if("Identifier"===s.id.type)n.push(Va(s.id,Oa("$.derived","$derived.by"===r?i:pi(i))));else{const e=Fi(s.id),a=s.init;let o,l=i;"$derived"===r&&"Identifier"===a.arguments[0].type?o=a.arguments[0]:(o=Ga(t.state.scope.generate("$$d")),l=Oa("$.get",o),n.push(Va(o,Oa("$.derived","$derived.by"===r?i:pi(i)))));for(let t=0;t<e.length;t++){const s=e[t];n.push(Va(s.node,Oa("$.derived",pi(s.expression(l)))))}}else{const e=(e,n)=>{const s=t.state.scope.get(e.name);return"$state"===r&&Hc(n,t.state.scope)&&(n=Oa("$.proxy",n)),Dc(s,t.state.analysis)&&(n=Oa("$.state",n)),n};if("Identifier"===s.id.type)n.push(Va(s.id,e(s.id,i)));else{const r=t.state.scope.generate("tmp"),a=Fi(s.id);n.push(Va(Ga(r),i),...a.map((n=>{const s=n.expression?.(Ga(r)),a=t.state.scope.get(n.node.name);return Va(n.node,"state"===a?.kind||"raw_state"===a?.kind?e(a.node,s):s)})))}}}else for(const s of e.declarations){const e=t.state.scope.get_bindings(s),r=e.some((e=>"state"===e.kind)),a=e.some((e=>"bindable_prop"===e.kind));if(r||a)if(a){if("Identifier"!==s.id.type){const e=t.state.scope.generate("tmp"),r=Fi(s.id);n.push(Va(Ga(e),t.visit(s.init)));for(const s of r){const r=s.node.name,a=t.state.scope.get(r),i=s.expression?.(Ga(e));n.push(Va(s.node,"bindable_prop"===a.kind?Fc(a,t.state,a.prop_alias??r,i):i))}continue}const e=t.state.scope.get(s.id.name);n.push(Va(s.id,Fc(e,t.state,e.prop_alias??s.id.name,s.init&&t.visit(s.init))))}else n.push(...cS(s,t.state,s.init&&t.visit(s.init)));else{const e=s.init;if(null!=e&&uk(e)){t.state.hoisted.push(xi(s.id,t.visit(e)));continue}n.push(t.visit(s))}}return 0===n.length?Ha:{...e,declarations:n}}};function uS(e,n,s){if(!1===s.generate)return{js:null,css:null,warnings:ue,metadata:{runes:e.runes},ast:null};const r="server"===s.generate?function(e,n){const s={analysis:e,options:n,scope:e.module.scope,scopes:e.module.scopes,hoisted:[Pi("$","svelte/internal/server")],legacy_reactive_statements:new Map,init:null,template:null,namespace:n.namespace,preserve_whitespace:n.preserveWhitespace,private_derived:new Map,skip_hydration_boundaries:!1},r=t(e.module.ast,s,kk),a=t(e.instance.ast,{...s,scopes:e.instance.scopes},{...kk,ImportDeclaration:e=>(s.hoisted.push(e),Ha),ExportNamedDeclaration:(e,t)=>e.declaration?t.visit(e.declaration):Ha}),i=t(e.template.ast,{...s,scopes:e.template.scopes},{...kk,...Sk}),o=[];for(const[t]of e.reactive_statements){const n=[...s.legacy_reactive_statements].find((([e])=>e===t));if(void 0===n)throw new Error("Could not find reactive statement");if("ExpressionStatement"===t.body.type&&"AssignmentExpression"===t.body.expression.type)for(const n of Di(t.body.expression.left)){const t=e.instance.scope.get(n.name);"legacy_reactive"===t?.kind&&o.push(Va(n))}a.body.push(n[1])}if(o.length>0&&a.body.unshift({type:"VariableDeclaration",kind:"let",declarations:o}),e.uses_component_bindings){const e=i.body.filter((e=>"FunctionDeclaration"===e.type&&e.___snippet)),t=i.body.filter((e=>"FunctionDeclaration"!==e.type||!e.___snippet));i.body=[...e,_i("$$settled",fi),_i("$$inner_payload"),li(ki(Ga("$$render_inner"),[Ga("$$payload")],Ma(t))),mi(Da("!",Ga("$$settled")),Ma([li(Ra("=",Ga("$$settled"),fi)),li(Ra("=",Ga("$$inner_payload"),Oa("$.copy_payload",Ga("$$payload")))),li(Oa("$$render_inner",Ga("$$inner_payload")))])),li(Oa("$.assign_payload",Ga("$$payload"),Ga("$$inner_payload")))]}[...e.instance.scope.declarations.values()].some((e=>"store_sub"===e.kind))&&(a.body.unshift(Ci("$$store_subs")),i.body.push(Si(Ga("$$store_subs"),li(Oa("$.unsubscribe_stores",Ga("$$store_subs"))))));const l=[];for(const[t,n]of e.instance.scope.declarations)"bindable_prop"!==n.kind||t.startsWith("$$")||l.push(Xa(n.prop_alias??t,Ga(t)));for(const{name:t,alias:n}of e.exports)l.push(Xa(n??t,Ga(t)));l.length>0&&i.body.push(li(Oa("$.bind_props",Ga("$$props"),Za(l))));const c=Ma([...a.body,...i.body]);e.props_id&&c.body.unshift(xi(e.props_id,Oa("$.props_id",Ga("$$payload"))));let p=ce||e.needs_context;if(p&&(c.body.unshift(li(Oa("$.push",ce&&Ga(e.name)))),c.body.push(li(Oa("$.pop")))),e.uses_rest_props){const t=e.exports.map((({name:e,alias:t})=>t??e));for(const[n,s]of e.instance.scope.declarations)"bindable_prop"===s.kind&&t.push(s.prop_alias??n);c.body.unshift(xi("$$restProps",Oa("$.rest_props",Ga("$$sanitized_props"),Ta(t.map((e=>Qa(e)))))))}(e.uses_props||e.uses_rest_props)&&c.body.unshift(xi("$$sanitized_props",Oa("$.sanitize_props",Ga("$$props")))),e.uses_slots&&c.body.unshift(xi("$$slots",Oa("$.sanitize_slots",Ga("$$props"))));const u=[...s.hoisted,...r.body];if(null!==e.css.ast&&"injected"===n.css&&!n.customElement){const t=Qa(e.css.hash),s=Qa(Fw(e.source,e,n).code);u.push(xi("$$css",Za([Xa("hash",t),Xa("code",s)]))),c.body.unshift(li(Oa("$$payload.css.add",Ga("$$css"))))}let d=p||l.length>0||e.needs_props||e.uses_props||e.uses_rest_props||e.uses_slots||e.slot_names.size>0;const h=za(Ga(e.name),d?[Ga("$$payload"),Ga("$$props")]:[Ga("$$payload")],c);return 4===n.compatibility.componentApi?(u.unshift(Ei([["render","$$_render"]],"svelte/server")),u.push(h,li(Ra("=",Ja(`${e.name}.render`),ki(null,[Ga("$$props"),Ga("$$opts")],Ma([Ti(Oa("$$_render",Ga(e.name),Za([Xa("props",Ga("$$props")),Xa("context",Ya(Ga("$$opts"),"context",!1,!0))])))])))),Ua(Ga(e.name)))):ce?u.push(h,li(Ra("=",Ja(`${e.name}.render`),ki(null,[],Ma([Ai("Component.render(...) is no longer valid in Svelte 5. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes for more information")])))),Ua(Ga(e.name))):u.push(Ua(h)),ce&&u.unshift(li(Ra("=",Ya(Ga(e.name),"$.FILENAME",!0),Qa(oe)))),{type:"Program",sourceType:"module",body:u}}(e,s):function(e,n){const s={analysis:e,options:n,scope:e.module.scope,scopes:e.module.scopes,is_instance:!1,hoisted:[Pi("$","svelte/internal/client")],node:null,legacy_reactive_imports:[],legacy_reactive_statements:new Map,metadata:{context:{template_needs_import_node:!1,template_contains_script_tag:!1},namespace:n.namespace,bound_contenteditable:!1},events:new Set,preserve_whitespace:n.preserveWhitespace,public_state:new Map,private_state:new Map,transform:{},in_constructor:!1,instance_level_snippets:[],module_level_snippets:[],init:null,update:null,expressions:null,after_update:null,template:null,locations:null},r=t(e.module.ast,s,pS),a={...s,transform:{...s.transform},scope:e.instance.scope,scopes:e.instance.scopes,is_instance:!0},i=t(e.instance.ast,a,pS),o=t(e.template.ast,{...s,transform:a.transform,scope:e.instance.scope,scopes:e.template.scopes},pS);r.body.unshift(...s.legacy_reactive_imports);const l=[],c=[];let p=!1;for(const[t,n]of e.instance.scope.declarations)if("legacy_reactive"===n.kind&&c.push(xi(t,Oa("$.mutable_source",void 0,e.immutable?fi:void 0))),"store_sub"===n.kind){0===l.length&&(p=!0,l.push(xi(Aa([Ga("$$stores"),Ga("$$cleanup")]),Oa("$.setup_stores"))));const e=jc(Ga(t.slice(1)),a),s=Oa("$.store_get",e,Qa(t),Ga("$$stores"));l.push(xi(n.node,pi(ce?ai([Oa("$.validate_store",e,Qa(t.slice(1))),s]):s)))}for(const[t]of e.reactive_statements){const e=[...s.legacy_reactive_statements].find((([e])=>e===t));if(void 0===e)throw new Error("Could not find reactive statement");i.body.push(e[1])}e.reactive_statements.size>0&&i.body.push(li(Oa("$.legacy_pre_effect_reset")));const u=[];for(const t of e.binding_groups.values())u.push(xi(t.name,Ta([])));const d=e.exports.flatMap((({name:e,alias:t})=>{const n=a.scope.get(e),s=jc(Ga(e),a),r=Wa(t??e,[Ti(s)]);if("Identifier"===s.type){if("let"===n?.declaration_kind||"var"===n?.declaration_kind)return[r,ii(t??e,[li(Ra("=",s,Ga("$$value")))])];if(!ce)return Xa(t??e,s)}if("prop"===n?.kind||"bindable_prop"===n?.kind)return[r,ii(t??e,[li(Oa(e,Ga("$$value")))])];if("state"===n?.kind||"raw_state"===n?.kind){const s="state"===n.kind?Oa("$.proxy",Ga("$$value")):Ga("$$value");return[r,ii(t??e,[li(Oa("$.set",Ga(e),s))])]}return r})),h=[...e.instance.scope.declarations].filter((([e,t])=>("prop"===t.kind||"bindable_prop"===t.kind)&&!e.startsWith("$$")));if(e.accessors)for(const[t,n]of h){const s=n.prop_alias??t,r=Wa(s,[Ti(Oa(Ga(t)))]),a=ii(s,[li(Oa(Ga(t),Ga("$$value"))),li(Oa("$.flush"))]);e.runes&&n.initial&&(a.value.params[0]={type:"AssignmentPattern",left:Ga("$$value"),right:n.initial}),d.push(r,a)}4===n.compatibility.componentApi?d.push(Xa("$set",Ga("$.update_legacy_props")),Xa("$on",Ia([Ga("$$event_name"),Ga("$$event_cb")],Oa("$.add_legacy_event_listener",Ga("$$props"),Ga("$$event_name"),Ga("$$event_cb"))))):ce&&d.push(oi(Oa(Ga("$.legacy_api"))));const m=[Ga("$$props"),Qa(e.runes)];ce&&m.push(Ga(e.name));const f=Ma([...l,...c,...u,...s.instance_level_snippets,...i.body,e.runes||!e.needs_context?Ha:li(Oa("$.init",e.immutable?fi:void 0)),...o.body]);if(!e.runes)for(const{name:t,alias:n}of e.exports)f.body.push(li(Oa("$.bind_prop",Ga("$$props"),Qa(n??t),jc(Ga(t),a))));if(null!==e.css.ast&&e.inject_styles){const t=Qa(e.css.hash),r=Qa(Fw(e.source,e,n).code);s.hoisted.push(xi("$$css",Za([Xa("hash",t),Xa("code",r)]))),f.body.unshift(li(Oa("$.append_styles",Ga("$$anchor"),Ga("$$css"))))}const y=ce||e.needs_context||e.reactive_statements.size>0||d.length>0;if(y){let e;if(f.body.unshift(li(Oa("$.push",...m))),d.length>0){let t=Oa("$.pop",Za(d));e=p?Ci("$$pop",t):Ti(t)}else e=li(Oa("$.pop"));f.body.push(e)}if(p&&(f.body.push(li(Oa("$$cleanup"))),d.length>0&&f.body.push(Ti(Ga("$$pop")))),e.uses_rest_props){const t=e.exports.map((({name:e,alias:t})=>t??e));for(const[n,s]of e.instance.scope.declarations)"bindable_prop"===s.kind&&t.push(s.prop_alias??n);f.body.unshift(xi("$$restProps",Oa("$.legacy_rest_props",Ga("$$sanitized_props"),Ta(t.map((e=>Qa(e)))))))}if(e.uses_props||e.uses_rest_props){const t=[Qa("children"),Qa("$$slots"),Qa("$$events"),Qa("$$legacy")];e.custom_element&&t.push(Qa("$$host")),f.body.unshift(xi("$$sanitized_props",Oa("$.legacy_rest_props",Ga("$$props"),Ta(t))))}e.uses_slots&&f.body.unshift(xi("$$slots",Oa("$.sanitize_slots",Ga("$$props"))));let v=y||e.needs_props||e.uses_props||e.uses_rest_props||e.uses_slots||e.slot_names.size>0;const g=[];let b=[];for(const e of[...r.body,...s.hoisted])"ImportDeclaration"===e.type?g.push(e):b.push(e);b=[...g,...s.module_level_snippets,...b];const _=za(Ga(e.name),v?[Ga("$$anchor"),Ga("$$props")]:[Ga("$$anchor")],f);if(n.hmr){const t=Ga(e.name),n=Ga("$.HMR"),s=Ya(t,n,!0),r=Ya(Ga("module.default"),n,!0),a=[li(Ra("=",Ya(r,"source"),Ya(s,"source"))),li(Oa("$.set",Ya(s,"source"),Ya(r,"original")))];e.css.hash&&a.unshift(li(Oa("$.cleanup_styles",Qa(e.css.hash))));const i=Ma([li(Ra("=",t,Oa("$.hmr",t,pi(Ya(s,"source"))))),li(Oa("import.meta.hot.accept",Ia([Ga("module")],Ma(a))))]);b.push(_,Si(Ga("import.meta.hot"),i),Ua(Ga(e.name)))}else b.push(Ua(_));if(ce&&(b.unshift(li(Ra("=",Ya(Ga(e.name),"$.FILENAME",!0),Qa(oe)))),b.unshift(li(Oa(Ga("$.mark_module_start")))),b.push(li(Oa(Ga("$.mark_module_end"),Ga(e.name))))),e.runes||b.unshift(Ei([],"svelte/internal/flags/legacy")),e.tracing&&b.unshift(Ei([],"svelte/internal/flags/tracing")),n.discloseVersion&&b.unshift(Ei([],"svelte/internal/disclose-version")),4===n.compatibility.componentApi?(b.unshift(Ei([["createClassComponent","$$_createClassComponent"]],"svelte/legacy")),f.body.unshift(Si(Ga("new.target"),Ti(Oa("$$_createClassComponent",Za([Xa("component",Ga(e.name)),oi(Ga("$$anchor"))])))))):ce&&f.body.unshift(li(Oa("$.check_target",Ga("new.target")))),e.props_id&&f.body.unshift(xi(e.props_id,Oa("$.props_id"))),s.events.size>0&&b.push(li(Oa("$.delegate",Ta(Array.from(s.events).map((e=>Qa(e))))))),e.custom_element){const t=e.custom_element,s="boolean"==typeof t?{}:t.props||{},r=[];for(const[t,n]of Object.entries(s)){const s=e.instance.scope.get(t),a=s?.prop_alias??t;n.type||"Literal"!==s?.initial?.type||"boolean"!=typeof s?.initial.value||(n.type="Boolean");const i=Za([n.attribute?Xa("attribute",Qa(n.attribute)):void 0,n.reflect?Xa("reflect",fi):void 0,n.type?Xa("type",Qa(n.type)):void 0].filter(Boolean));r.push(Xa(a,i))}for(const[e,t]of h){const n=t.prop_alias??e;s[n]||r.push(Xa(n,Za([])))}const a=Ta([...e.slot_names.keys()].map((e=>Qa(e)))),i=Ta(e.exports.map((({name:e,alias:t})=>Qa(t??e)))),o="boolean"==typeof t||"none"!==t.shadow,l=Oa("$.create_custom_element",Ga(e.name),Za(r),a,i,Qa(o),"boolean"!=typeof t?t.extend:void 0);if("boolean"!=typeof t&&"string"==typeof t.tag){const e=li(Oa("customElements.define",Qa(t.tag),l));n.hmr?b.push(Si(La("==",Oa("customElements.get",Qa(t.tag)),vi),e)):b.push(e)}else b.push(li(l))}return{type:"Program",sourceType:"module",body:b}}(e,s),a=Bw(s.filename,s.outputFilename),i=_C(r,{sourceMapContent:n,sourceMapSource:a});Nw(i,s,a);return{js:i,css:e.css.ast&&!e.inject_styles?Fw(n,e,s):null,warnings:ue,metadata:{runes:e.runes},ast:null}}function dS(e,n,s){if(!1===s.generate)return{js:null,css:null,warnings:ue,metadata:{runes:!0},ast:null};const r="server"===s.generate?function(e,n){const s={analysis:e,options:n,scope:e.module.scope,scopes:e.module.scopes,legacy_reactive_statements:new Map,private_derived:new Map},r=t(e.module.ast,s,kk);return{type:"Program",sourceType:"module",body:[Pi("$","svelte/internal/server"),...r.body]}}(e,s):function(e,n){const s={analysis:e,options:n,scope:e.module.scope,scopes:e.module.scopes,public_state:new Map,private_state:new Map,transform:{},in_constructor:!1},r=t(e.module.ast,s,pS),a=[Pi("$","svelte/internal/client")];return e.tracing&&a.push(Ei([],"svelte/internal/flags/tracing")),{type:"Program",sourceType:"module",body:[...a,...r.body]}}(e,s),a=s.filename.split(/[/\\]/).at(-1);return r.body.length>0&&(r.body[0].leadingComments=[{type:"Block",value:` ${a} generated by Svelte v${xC} `}]),{js:_C(r,{sourceMapContent:n,sourceMapSource:Bw(s.filename,void 0)}),css:null,metadata:{runes:!0},warnings:ue,ast:null}}const hS={filename:wS("(unknown)"),rootDir:wS("undefined"!=typeof process?process.cwd?.():"undefined"!=typeof Deno?Deno.cwd():void 0),dev:kS(!1),generate:CS("client",((e,t)=>"dom"===e||"ssr"===e?(gS(Xe),"dom"===e?"client":"server"):("client"!==e&&"server"!==e&&!1!==e&&ES(`${t} must be "client", "server" or false`),e))),warningFilter:PS((()=>!0))},mS=xS({...hS}),fS=xS({...hS,accessors:_S(We,kS(!1)),css:CS("external",(e=>(!0!==e&&!1!==e||ES('The boolean options have been removed from the css option. Use "external" instead of false and "injected" instead of true'),"none"===e&&ES('css: "none" is no longer a valid option. If this was crucial for you, please open an issue on GitHub with your use case.'),"external"!==e&&"injected"!==e&&ES('css should be either "external" (default, recommended) or "injected"'),e))),cssHash:PS((({css:e,hash:t})=>`svelte-${t(e)}`)),cssOutputFilename:wS(void 0),customElement:kS(!1),discloseVersion:kS(!0),immutable:_S(Ge,kS(!1)),legacy:yS("The legacy option has been removed. If you are using this because of legacy.componentApi, use compatibility.componentApi instead"),compatibility:xS({componentApi:SS([4,5],5)}),loopGuardTimeout:bS((function(e){we(e,"options_removed_loop_guard_timeout","The `loopGuardTimeout` option has been removed\nhttps://svelte.dev/e/options_removed_loop_guard_timeout")})),name:wS(void 0),namespace:SS(["html","mathml","svg"]),modernAst:kS(!1),outputFilename:wS(void 0),preserveComments:kS(!1),preserveWhitespace:kS(!1),runes:kS(void 0),hmr:kS(!1),sourcemap:CS(void 0,(e=>e)),enableSourcemap:bS((function(e){we(e,"options_removed_enable_sourcemap","The `enableSourcemap` option has been removed. Source maps are always generated now, and tooling can choose to ignore them\nhttps://svelte.dev/e/options_removed_enable_sourcemap")})),hydratable:bS((function(e){we(e,"options_removed_hydratable","The `hydratable` option has been removed. Svelte components are always hydratable now\nhttps://svelte.dev/e/options_removed_hydratable")})),format:yS('The format option has been removed in Svelte 4, the compiler only outputs ESM now. Remove "format" from your compiler options. If you did not set this yourself, bump the version of your bundler plugin (vite-plugin-svelte/rollup-plugin-svelte/svelte-loader)'),tag:yS('The tag option has been removed in Svelte 5. Use `<svelte:options customElement="tag-name" />` inside the component instead. If that does not solve your use case, please open an issue on GitHub with details.'),sveltePath:yS("The sveltePath option has been removed in Svelte 5. If this option was crucial for you, please open an issue on GitHub with your use case."),errorMode:yS("The errorMode option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead"),varsReport:yS("The vars option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead")});function yS(e){return t=>{void 0!==t&&Is(null,"options_removed",`Invalid compiler option: ${e}\nhttps://svelte.dev/e/options_removed`)}}const vS=new Set;function gS(e){vS.has(e)||(vS.add(e),e(null))}function bS(e){return t=>{void 0!==t&&gS(e)}}function _S(e,t){return(n,s)=>(void 0!==n&&gS(e),t(n,s))}function xS(e,t=!1){return(n,s)=>{const r={};(n&&"object"!=typeof n||Array.isArray(n))&&ES(`${s} should be an object`);for(const a in n)a in e||(t?r[a]=n[a]:Rs(null,`${s?`${s}.${a}`:a}`));for(const t in e){const a=e[t];r[t]=a(n&&n[t],s?`${s}.${t}`:t)}return r}}function CS(e,t){return(n,s)=>void 0===n?e:t(n,s)}function wS(e,t=!0){return CS(e,((e,n)=>("string"!=typeof e&&ES(`${n} should be a string, if specified`),t||""!==e||ES(`${n} cannot be empty`),e)))}function kS(e){return CS(e,((e,t)=>("boolean"!=typeof e&&ES(`${t} should be true or false, if specified`),e)))}function SS(e,t=e[0]){return CS(t,((t,n)=>{if(!e.includes(t)){const t=e.length>2?`${n} should be one of ${e.slice(0,-1).map((e=>`"${e}"`)).join(", ")} or "${e[e.length-1]}"`:`${n} should be either "${e[0]}" or "${e[1]}"`;ES(t)}return t}))}function PS(e){return CS(e,((e,t)=>("function"!=typeof e&&ES(`${t} should be a function, if specified`),e)))}function ES(e){Is(null,"options_invalid_value",`Invalid compiler option: ${e}\nhttps://svelte.dev/e/options_invalid_value`)}function TS(e,t,{file_basename:n,filename:s,get_location:r}){return{source:e,get_location:e=>r(e+t),file_basename:n,filename:s}}async function AS(e,t,n){const s=await function(e,t,n){const s=[];return n.replace(e,((...e)=>(s.push(t(...e).then((t=>{const n=e[0];return{offset:e[e.length-2],length:n.length,replacement:t}}))),""))),Promise.all(s)}(e,t,n.source);return function(e,t){const n=new Rw;let s=0;for(const{offset:r,length:a,replacement:i}of e){const e=Rw.from_source(TS(t.source.slice(s,r),s,t));n.concat(e).concat(i),s=r+a}const r=Rw.from_source(TS(t.source.slice(s),s,t));return n.concat(r)}(s,n)}class $S{source;filename;sourcemap_list=[];dependencies=[];file_basename=void 0;get_location=void 0;constructor(e,t){this.source=e,this.filename=t,this.update_source({string:e}),this.file_basename=null==t?null:jw(t)}update_source({string:e,map:t,dependencies:n}){null!=e&&(this.source=e,this.get_location=M(e)),t&&this.sourcemap_list.unshift(t),n&&this.dependencies.push(...n)}to_processed(){const e=Mw(this.file_basename,this.sourcemap_list);return{code:this.source,dependencies:[...new Set(this.dependencies)],map:e,toString:()=>this.source}}}function IS(e,t,n){let s;if(e.map&&(s=function(e){let t="string"==typeof e.map?JSON.parse(e.map):e.map;return"string"==typeof t.mappings&&(t.mappings=fC(t.mappings)),t._mappings&&"SourceMapGenerator"===t.constructor.name&&(t=function(e){let t=1;const n=[[]];let s,r,a=n[0];const i=e._sources.toArray().reduce(((e,t,n)=>(e[t]=n,e)),{}),o=e._names.toArray().reduce(((e,t,n)=>(e[t]=n,e)),{}),l=e._mappings.toArray();for(let e=0,c=l.length;e<c;e++){if(r=l[e],r.generatedLine>t){for(;r.generatedLine>t;)n.push([]),t++;a=n[r.generatedLine-1]}else if(e>0){const t=l[e-1];if(r.generatedColumn===t.generatedColumn&&r.originalColumn===t.originalColumn&&r.name===t.name&&r.generatedLine===t.generatedLine&&r.originalLine===t.originalLine&&r.source===t.source)continue}a.push([r.generatedColumn]),s=a[a.length-1],null!=r.source&&(s.push(i[r.source],r.originalLine-1,r.originalColumn),null!=r.name&&s.push(o[r.name]))}const c={version:e._version,sources:e._sources.toArray(),names:e._names.toArray(),mappings:n};return null!=e._file&&(c.file=e._file),c}(t)),t}(e),s?.sources)){const e=s.sources.indexOf(n);-1!==e&&Aw(s,t,e)}return Rw.from_processed(e.code,s)}function RS(e,t,n,s,r){const{file_basename:a,get_location:i}=r,o=(e,t)=>Rw.from_source(TS(e,t,r)),l=`<${t}${n}>`,c=`<${t}${s}>`;let p;if(l.length!==c.length){const e=[[[0,0,0,0],[`<${t}`.length,0,0,`<${t}`.length]]],n=c.split("\n").length-1,s=c.length-(0===n?0:c.lastIndexOf("\n"))-1;for(;e.length<=n;)e.push([[0,0,0,`<${t}`.length]]);e[n].push([s,0,l.split("\n").length-1,l.length-l.lastIndexOf("\n")-1]);const r={version:3,names:[],sources:[a],mappings:e};Aw(r,i(0),0),p=Rw.from_processed(c,r)}else p=o(c,0);const u=o(`</${t}>`,l.length+r.source.length);!function(e,t){const n="[#@]\\s*sourceMappingURL\\s*=\\s*(\\S*)",s="script"==t?new RegExp("(?://"+n+")|(?:/\\*"+n+"\\s*\\*/)$"):new RegExp("/\\*"+n+"\\s*\\*/$");function r(t){const n=e.code.length<100?e.code:e.code.slice(0,100)+" [...]";console.warn(`warning: ${t}. processed.code = ${JSON.stringify(n)}`)}e.code=e.code.replace(s,((n,s,a)=>{const i="script"==t?s||a:s,o=(i.match(Ow)||[])[1];return o?e.map?(r("Not implemented. Found sourcemap in both processed.code and processed.map. Please update your preprocessor to return only one sourcemap."),""):(e.map=Lw(o),""):(e.map||r(`Found sourcemap path ${JSON.stringify(i)} in processed.code, but no sourcemap data. Please update your preprocessor to return sourcemap data directly.`),"")}))}(e,t);const d=IS(e,i(l.length),a);return p.concat(d).concat(u)}const qS=/([\w-$]+\b)(?:=(?:"([^"]*)"|'([^']*)'|(\S+)))?/g;function LS(e){const t={};let n;for(;null!==(n=qS.exec(e));){const e=n[1],s=n[2]||n[3]||n[4];t[e]=!s||s}return t}const MS=/<!--[^]*?-->|<style((?:\s+[^=>'"/\s]+=(?:"[^"]*"|'[^']*'|[^>\s]+)|\s+[^=>'"/\s]+)*\s*)(?:\/>|>([\S\s]*?)<\/style>)/g,OS=/<!--[^]*?-->|<script((?:\s+[^=>'"/\s]+=(?:"[^"]*"|'[^']*'|[^>\s]+)|\s+[^=>'"/\s]+)*\s*)(?:\/>|>([\S\s]*?)<\/script>)/g;async function NS(e,t,n){const{filename:s,source:r}=n,a="style"===e?MS:OS,i=[];const{string:o,map:l}=await AS(a,(async function(a,o="",l="",c){const p=()=>Rw.from_source(TS(a,c,n));if(!o&&!l)return p();const u=await t({content:l||"",attributes:LS(o||""),markup:r,filename:s});return u?(u.dependencies&&i.push(...u.dependencies),u.map||u.code!==l?RS(u,e,o,function(e){if(!e)return;let t=Object.entries(e).map((([e,t])=>!0===t?e:`${e}="${t}"`)).join(" ");return t&&(t=" "+t),t}(u.attributes)??o,TS(l,c,n)):p()):p()}),n);return{string:o,map:l,dependencies:i}}async function DS(e,t){const n=await e({content:t.source,filename:t.filename});return n?{string:n.code,map:n.map?"string"==typeof n.map?JSON.parse(n.map):n.map:void 0,dependencies:n.dependencies}:{}}const jS=/(<style[^>]+>)([\S\s]*?)(<\/style>)/g,BS="/*$$__STYLE_CONTENT__$$*/";let FS=!1;class VS extends Error{constructor(e){super(e)}}function HS(e,t){let n=1,s=e,r=t[s];for(;0!==n&&r;)"("===r&&n++,")"===r&&n--,s++,r=t[s];return s}const US={_(e,{state:t,next:n}){const s=e.leadingComments;if(s)for(const e of s)if("Line"===e.type){const n=lt(e.value);n!==e.value&&t.str.overwrite(e.start+2,e.end,n)}n()},Identifier(e,{state:t,path:n}){JS(e,t,n)},ImportDeclaration(e,{state:t}){if(t.props_insertion_point=e.end??t.props_insertion_point,"svelte"===e.source.value){let n=[],s=0;for(let r of e.specifiers)if("ImportSpecifier"===r.type&&"Identifier"===r.imported.type&&["beforeUpdate","afterUpdate"].includes(r.imported.name)){if(!t.scope.references.get(r.local.name)){let e=-1!==t.str.original.indexOf(",",r.end)&&t.str.original.indexOf(",",r.end)<t.str.original.indexOf("}",r.end)?t.str.original.indexOf(",",r.end)+1:r.end;for(;""===t.str.original[e].trim();)e++;t.str.remove(r.start,e),s++;continue}n.push(r.imported.name)}if(s===e.specifiers.length&&t.str.remove(e.start,e.end),n.length>0)throw new VS(`Can't migrate code with ${n.join(" and ")}. Please migrate by hand.`)}},ExportNamedDeclaration(e,{state:t,next:n}){if(e.declaration)return void n();let s=0;for(const n of e.specifiers){if("Identifier"!==n.local.type)continue;const e=t.scope.get(n.local.name);"bindable_prop"===e?.kind&&(t.str.remove(n.start,n.end),s++)}s===e.specifiers.length&&t.str.remove(e.start,e.end)},VariableDeclaration(e,{state:t,path:n,visit:s,next:r}){if(t.scope!==t.analysis.instance.scope)return;let a=0;for(let i=0;i<e.declarations.length;i++){const o=e.declarations[i];if(t.analysis.runes){"$props"===Bl(o.init,t.scope)&&(t.props_insertion_point=o.id.start+1,t.has_props_rune=!0);continue}let l;try{l=t.scope.get_bindings(o)}catch(d){r();continue}const c=l.some((e=>"state"===e.kind)),p=l.some((e=>"bindable_prop"===e.kind));if(c||p)if(p){if(a++,"Identifier"!==o.id.type)throw new VS("Encountered an export declaration pattern that is not supported for automigration.");const h=o.id.name,m=t.scope.get(h);if(t.analysis.uses_props&&(o.init||m.updated))throw new VS("$$props is used together with named props in a way that cannot be automatically migrated.");const f=t.props.find((e=>e.exported===(m.prop_alias||h)));f?(r(),f.init=o.init?t.str.snip(o.init.start,o.init.end).toString():"",f.bindable=m.updated,f.exported=m.prop_alias||h,f.type_only=!1):(r(),t.props.push({local:h,exported:m.prop_alias?m.prop_alias:h,init:o.init?t.str.snip(o.init.start,o.init.end).toString():"",optional:!!o.init,bindable:m.updated,...KS(o,t,n)}));let y=o.start,v=o.end;e.declarations.length>1?(t.props_insertion_point=e.end,0!==i&&(y=t.str.original.indexOf(",",e.declarations[i-1].end)),i!==e.declarations.length-1&&(v=0===i?e.declarations[i+1].start:t.str.original.lastIndexOf(",",e.declarations[i+1].start))):t.props_insertion_point=o.end,t.str.update(y,v,"")}else if(o.init){let{start:g,end:b}=o.init;if("SequenceExpression"===o.init.type){for(;"("!==t.str.original[g];)g-=1;for(;")"!==t.str.original[b-1];)b+=1}u("state"),t.str.prependLeft(g,"$state("),t.str.appendRight(b,")")}else{let _,x;const C=l.every((e=>e.references.every((t=>{const n=t.path.find((e=>"VariableDeclaration"===e.type)),s=t.path.find((e=>"AssignmentExpression"===e.type)),r=t.path.find((e=>"UpdateExpression"===e.type)),a=t.path.find((e=>"LabeledStatement"===e.type&&"$"===e.label.name));if(s&&a&&("ExpressionStatement"!==a.body.type||a.body.expression!==s||"Identifier"===s.left.type&&s.left.name===e.node.name)){if(_)return!1;_=s,x=a}return!r&&(n&&e.initial||a&&s||!a&&!s)})))),w="BlockStatement"===x?.body.type&&1===x.body.body.length&&"ExpressionStatement"===x.body.body[0].type,k="ExpressionStatement"===x?.body.type&&"AssignmentExpression"===x.body.expression.type;let S=!1;if(k){const P=x?.body,E=P.expression,[,T]=ji(E.right);0===T.length&&(S=!0,t.derived_labeled_statements.add(x))}if(!S&&C&&_&&x&&(w||k)){const A=t.str.original.substring(t.str.original.lastIndexOf("\n",e.start)+1,e.start);if("BlockStatement"===x.body.type&&x.body.body[0].leadingComments)for(let $ of x.body.body[0].leadingComments)t.str.prependLeft(e.start,"Block"===$.type?`/*${$.value}*/\n${A}`:`// ${$.value}\n${A}`);if(u("derived"),t.str.appendRight(o.id.typeAnnotation?.end??o.id.end," = $derived("),s(_.right),t.str.appendRight(o.id.typeAnnotation?.end??o.id.end,t.str.snip(_.right.start,_.right.end).toString()),t.str.remove(x.start,x.end),t.str.appendRight(o.id.typeAnnotation?.end??o.id.end,")"),t.derived_labeled_statements.add(x),"BlockStatement"===x.body.type&&x.body.body[0].trailingComments)for(let I of x.body.body[0].trailingComments)t.str.appendRight(o.id.typeAnnotation?.end??o.id.end,"Block"===I.type?`\n${A}/*${I.value}*/`:`\n${A}// ${I.value}`)}else u("state"),t.str.prependLeft(o.id.typeAnnotation?.end??o.id.end," = $state("),S&&(t.str.appendRight(o.id.typeAnnotation?.end??o.id.end,t.str.snip(_.right.start,_.right.end).toString()),t.str.remove(x.start,x.end)),t.str.appendRight(o.id.typeAnnotation?.end??o.id.end,")")}else r();function u(n){if(!!t.scope.get(n))throw new VS(`can't migrate \`${t.str.original.substring(e.start,e.end)}\` to \`$${n}\` because there's a variable named ${n}.\n Rename the variable and try again or migrate by hand.`)}}if(a===e.declarations.length){let R=e.start,q=e.end;const L=n.at(-1);for("ExportNamedDeclaration"===L?.type&&(R=L.start,q=L.end);"\n"!==t.str.original[R];)R--;for(;"\n"!==t.str.original[q];)q++;t.str.update(R,q,"")}},BreakStatement(e,{state:t,path:n}){"LabeledStatement"===n[1].type&&"$"===e.label?.name&&t.str.update(e.start,e.end,"return;")},LabeledStatement(e,{path:t,state:n,next:s}){if(n.analysis.runes)return;if(t.length>1)return;if("$"!==e.label.name)return;if(n.derived_labeled_statements.has(e))return;function r(t){if(n.scope.get(t))throw new VS(`can't migrate \`$: ${n.str.original.substring(e.body.start,e.body.end)}\` to \`$${t}\` because there's a variable named ${t}.\n Rename the variable and try again or migrate by hand.`)}if(s(),"ExpressionStatement"===e.body.type&&"AssignmentExpression"===e.body.expression.type){const t=Di(e.body.expression.left),[,s]=ji(e.body.expression.right),a=t.map((e=>n.scope.get(e.name))),i=a.filter((e=>e?.reassigned));if("Literal"!==e.body.expression.right.type&&!a.some((e=>"store_sub"===e?.kind))&&"MemberExpression"!==e.body.expression.left.type){let{start:t,end:s}=e.body.expression.right;if(r("derived"),n.str.update(e.start,e.body.expression.start,"let "),"SequenceExpression"===e.body.expression.right.type){for(;"("!==n.str.original[t];)t-=1;for(;")"!==n.str.original[s-1];)s+=1}return n.str.prependRight(t,"$derived("),void("("!==n.str.original[e.body.start]&&n.str.appendLeft(s,")"))}for(const a of i)if(a&&(t.includes(a.node)||0===s.length)){r("state");const t="state"===a.kind?" = $state()":0===s.length?` = $state(${n.str.original.substring(e.body.expression.right.start,e.body.expression.right.end)})`:"";n.str.prependLeft(e.start,`let ${a.node.name}${t};\n${n.indent}`)}if(0===s.length&&!a.some((e=>"store_sub"===e?.kind)))return void n.str.remove(e.start,e.end)}n.legacy_imports.add("run");const a="BlockStatement"===e.body.type,i=e.body.start;if(a){n.str.update(e.start,i+1,`${n.names.run}(() => {`);const t=e.body.end;n.str.update(t-1,t,"});")}else n.str.update(e.start,i,`${n.names.run}(() => {\n${n.indent}`),n.str.indent(n.indent,{exclude:[[0,e.body.start],[e.body.end,n.end]]}),n.str.appendLeft(e.end,`\n${n.indent}});`)}};function zS(e,t,n){const s=e.str.snip(t,n).toString(),r=s.substring(1,s.length-1);r.trim().length!==r.length&&e.str.update(t+1,n-1,r.trim())}const WS={Identifier(e,{state:t,path:n}){JS(e,t,n)},RegularElement(e,{state:t,path:n,next:s}){GS(e,n,t),QS(e,t);const r=e.name.replace(/[a-zA-Z-]*:/g,"");if("/"===t.analysis.source[e.end-2]&&!j(r)&&!se(r)){let n=e.end-2;for(;" "===t.str.original.charAt(n-1);)n--;t.str.remove(n,e.end-1),t.str.appendRight(e.end,`</${e.name}>`)}s()},SvelteSelf(e,{state:t,next:n}){const s=t.str.original.substring(e.start,e.end);if(!t.filename){const r=ZS(s);return FS=!0,t.str.prependRight(e.start,`\x3c!-- @migration-task: svelte:self is deprecated, import this Svelte file into itself instead --\x3e\n${r}`),void n()}t.str.overwrite(e.start+1,e.start+1+11,`${t.analysis.name}`),e.fragment.nodes.length>0?t.str.overwrite(t.str.original.lastIndexOf("<",e.end)+2,e.end-1,`${t.analysis.name}`):s.endsWith("/>")||t.str.overwrite(e.start+s.lastIndexOf("</",e.end)+2,e.end-1,`${t.analysis.name}`),t.has_svelte_self=!0,n()},SvelteElement(e,{state:t,path:n,next:s}){if(GS(e,n,t),"Literal"===e.tag.type){let n=!0,s=e.tag.start,r=e.tag.end,a=t.str.original[s-1];for(;"="!==t.str.original[--s];)if("{"===t.str.original[s]){n=!1;break}n&&t.str.original[r]===a&&(t.str.prependLeft(s+1,"{"),t.str.appendRight(e.tag.end+1,"}"))}QS(e,t),s()},Component(e,{state:t,path:n,next:s}){s(),GS(e,n,t)},SvelteComponent(e,{state:t,next:n,path:s}){n(),GS(e,s,t);let r=t.str.snip(e.expression.start,e.expression.end).toString();if("Identifier"!==e.expression.type&&"MemberExpression"!==e.expression.type||!Xo.test(r)){let n=r;r=t.scope.generate("SvelteComponent");let a=!0;for(let i=s.length-1;i>=0;i--){const o=s[i];if("EachBlock"===o.type||"AwaitBlock"===o.type||"IfBlock"===o.type||"SnippetBlock"===o.type||"Component"===o.type||"SvelteComponent"===o.type){let o=e.start;if(i!==s.length-1)for(let e=1;e<s.length-i;e++){const t=s[i+e];if("start"in t){o=t.start;break}}const l=t.str.original.substring(t.str.original.lastIndexOf("\n",o)+1,o);t.str.appendRight(o,`{@const ${r} = ${n}}\n${l}`),a=!1;break}}a&&(t.derived_components.has(n)?r=t.derived_components.get(n):t.derived_components.set(n,r))}t.str.overwrite(e.start+1,e.start+e.name.length+1,r),t.str.original.substring(e.end-e.name.length-1,e.end-1)===e.name&&t.str.overwrite(e.end-e.name.length-1,e.end-1,r);let a=t.str.original.lastIndexOf("this",e.expression.start);for(;!t.str.original.charAt(a-1).trim();)a--;const i=t.str.original.indexOf("}",e.expression.end)+1;t.str.remove(a,i)},SvelteFragment(e,{state:t,path:n,next:s}){GS(e,n,t),s()},SvelteWindow(e,{state:t,next:n}){QS(e,t),n()},SvelteBody(e,{state:t,next:n}){QS(e,t),n()},SvelteDocument(e,{state:t,next:n}){QS(e,t),n()},SlotElement(e,{state:t,path:n,next:s,visit:r}){if(GS(e,n,t),t.analysis.custom_element)return;let a,i="children",o="default",l="{ ";for(const s of e.attributes)if("SpreadAttribute"===s.type)l+=`...${t.str.original.substring(s.expression.start,s.expression.end)}, `;else if("Attribute"===s.type){if("slot"===s.name)continue;if("name"===s.name)o=s.value[0].data,(n.some((e=>("RegularElement"===e.type||"SvelteElement"===e.type||"Component"===e.type||"SvelteComponent"===e.type||"SvelteFragment"===e.type)&&e.attributes.some((e=>"Attribute"===e.type&&"slot"===e.name&&Ri(e)&&e.value[0].data===o))))||e.attributes.some((e=>"Attribute"===e.type&&"slot"===e.name&&Ri(e)&&e.value[0].data===o)))&&(a=`${o}_render`,t.derived_conflicting_slots.set(a,o));else{const e=!0===s.value||Array.isArray(s.value)?s.value:[s.value];let n="true";if(!0!==e){const s=e[0],a=e[e.length-1];for(const t of e)r(t);n=t.str.snip("Text"===s.type?s.start-1:s.expression.start,"Text"===a.type?a.end+1:a.expression.end).toString()}l+=n===s.name?`${n}, `:`${s.name}: ${n}, `}}l+="}","{ }"===l&&(l="");const c=t.props.find((e=>e.slot_name===o));if(c)i=c.local;else if("default"!==o&&(i=t.scope.generate(o),i!==o))throw new VS("This migration would change the name of a slot making the component unusable");c?c.needs_refine_type&&(c.type="import('svelte')."+(l?"Snippet<[any]>":"Snippet"),c.needs_refine_type=!1):t.props.push({local:i,exported:i,init:"",bindable:!1,optional:!0,slot_name:o,type:"import('svelte')."+(l?"Snippet<[any]>":"Snippet")}),"default"===o&&n.some((e=>("SvelteComponent"===e.type||"Component"===e.type||"RegularElement"===e.type||"SvelteElement"===e.type||"SvelteFragment"===e.type)&&e.attributes.some((e=>"LetDirective"===e.type))))&&(a=`${i}_render`,t.derived_conflicting_slots.set(a,i)),i=a??i,e.fragment.nodes.length>0?(s(),t.str.update(e.start,e.fragment.nodes[0].start,`{#if ${i}}{@render ${t.analysis.uses_props?`${t.names.props}.`:""}${i}(${l})}{:else}`),t.str.update(e.fragment.nodes[e.fragment.nodes.length-1].end,e.end,"{/if}")):t.str.update(e.start,e.end,`{@render ${t.analysis.uses_props?`${t.names.props}.`:""}${i}?.(${l})}`)},Comment(e,{state:t}){const n=lt(e.data);n!==e.data&&t.str.overwrite(e.start+4,e.end-3,n)},HtmlTag(e,{state:t,next:n}){zS(t,e.start,e.end),n()},ConstTag(e,{state:t,next:n}){zS(t,e.start,e.end),n()},IfBlock(e,{state:t,next:n}){const s=e.start,r=t.str.original.indexOf("}",e.test.end)+1;zS(t,s,r),n()},AwaitBlock(e,{state:t,next:n}){const s=e.start,r=t.str.original.indexOf("}",null!==e.pending?e.expression.end:e.value?.end)+1;if(zS(t,s,r),null!==e.pending){const n=t.str.original.lastIndexOf("{",e.value?.start),s=t.str.original.indexOf("}",e.value?.end)+1;zS(t,n,s)}if(null!==e.catch){const n=t.str.original.lastIndexOf("{",e.error?.start),s=t.str.original.indexOf("}",e.error?.end)+1;zS(t,n,s)}n()},KeyBlock(e,{state:t,next:n}){const s=e.start,r=t.str.original.indexOf("}",e.expression.end)+1;zS(t,s,r),n()}};function GS(e,t,n){const s=t.at(-2);if("Component"!==s?.type&&"SvelteComponent"!==s?.type&&"Component"!==e.type&&"SvelteComponent"!==e.type)return;let r="children",a=[],i=[];for(let t of e.attributes){if("Attribute"===t.type&&"slot"===t.name&&Ri(t)){if(r=t.value[0].data,"default"===r&&(r="children"),!m.test(r)||F(r))return FS=!0,void n.str.appendLeft(e.start,`\x3c!-- @migration-task: migrate this slot by hand, \`${r}\` is an invalid identifier --\x3e\n${n.indent}`);if("Component"===s?.type||"SvelteComponent"===s?.type)for(let t of s.attributes)if(("Attribute"===t.type||"BindDirective"===t.type)&&t.name===r)return void n.str.appendLeft(e.start,`\x3c!-- @migration-task: migrate this slot by hand, \`${r}\` would shadow a prop on the parent component --\x3e\n${n.indent}`);for(let e of i)e();n.str.remove(t.start,t.end)}"LetDirective"===t.type&&(a.push(t.name+(t.expression?`: ${n.str.original.substring(t.expression.start,t.expression.end)}`:"")),i.push((()=>n.str.remove(t.start,t.end))))}if(i.length>0)for(let e of i)e();"SvelteFragment"===e.type&&e.fragment.nodes.length>0&&(n.str.remove(e.start,e.fragment.nodes[0].start),n.str.remove(e.fragment.nodes[e.fragment.nodes.length-1].end,e.end));const o=a.length>0?`{ ${a.join(", ")} }`:"";if("children"===r&&"SvelteFragment"!==e.type){if(0===a.length)return;let s=0,i=0;for(let t=0;t<e.fragment.nodes.length;t++){const r=e.fragment.nodes[t],a="Text"===r.type&&!r.data.trim();"RegularElement"!==r.type&&"SvelteElement"!==r.type&&"Component"!==r.type&&"SvelteComponent"!==r.type&&"SlotElement"!==r.type&&"SvelteFragment"!==r.type||!r.attributes.some((e=>"Attribute"===e.type&&"slot"===e.name))?s||a?i&&!a&&(n.str.update(i-1,i,""),n.str.prependLeft(i-1,n.str.original[i-1]),n.str.move(r.start,r.end,i-1)):s=r.start:s&&!i&&(i=r.start)}i||(i=e.fragment.nodes[e.fragment.nodes.length-1].end),n.str.appendLeft(s,`{#snippet ${r}(${o})}\n${n.indent.repeat(t.length)}`),n.str.indent(n.indent,{exclude:[[0,s],[i,n.str.original.length]]}),i<e.fragment.nodes[e.fragment.nodes.length-1].end?n.str.prependLeft(i,`{/snippet}\n${n.indent.repeat(t.length)}`):n.str.prependLeft(i,`${n.indent.repeat(t.length)}{/snippet}\n${n.indent.repeat(t.length-1)}`)}else{n.str.prependLeft(e.start,`{#snippet ${r}(${o})}\n${n.indent.repeat(t.length-2)}`),n.str.indent(n.indent,{exclude:[[0,e.start],[e.end,n.str.original.length]]});const s=`\n${n.indent.repeat(t.length-2)}{/snippet}`;"SlotElement"===e.type?n.str.appendRight(e.end,s):n.str.appendLeft(e.end,s)}}function KS(e,t,n){const s=t.str,r=n.at(-1);let a=r?.leadingComments?.at(-1);const i=a?.start,o=a?.end;let l=a&&s.original.substring(i,o);a&&s.update(i,o,"");const c=r?.trailingComments?.at(0),p=c?.start,u=c?.end;let d=c&&s.original.substring(p,u);if(c&&s.update(p,u,""),e.id.typeAnnotation){t.has_type_or_fallback=!0;let n=e.id.typeAnnotation.start+1;for(;" "===s.original[n];)n++;return{type:s.original.substring(n,e.id.typeAnnotation.end),comment:l,trailing_comment:d}}let h=l?.split("\n").map((e=>e.trim().replace(/^\/\/\s*/g,"").replace(/^\/\*\*?\s*/g,"").replace(/\s*\*\/$/g,"").replace(/^\*\s*/g,""))).filter(Boolean);const m=h?.findIndex((e=>e.startsWith("@")));let f=h?.slice(0,-1!==m?m:h.length).join("\n"),y=d?.split("\n").map((e=>e.trim().replace(/^\/\/\s*/g,"").replace(/^\/\*\*?\s*/g,"").replace(/\s*\*\/$/g,"").replace(/^\*\s*/g,""))).filter(Boolean);const v=y?.findIndex((e=>e.startsWith("@")));let g=y?.slice(0,-1!==v?v:y.length).join("\n");if("ExportNamedDeclaration"===r?.type&&a){t.has_type_or_fallback=!0;const e=/@type {(.+)}/.exec(a.value);if(e){const t=/@type {.+} (?:\w+|\[.*?\]) - (.+)/.exec(a.value);return t&&(f+=t[1]?.trim()),{type:e[1],comment:f,trailing_comment:g}}}if("Literal"===e.init?.type){t.has_type_or_fallback=!0;const n=typeof e.init.value;if("string"===n||"number"===n||"boolean"===n)return{type:n,comment:t.uses_ts?l:f,trailing_comment:t.uses_ts?d:g}}return{type:"any",comment:t.uses_ts?l:f,trailing_comment:t.uses_ts?d:g}}const XS=["preventDefault","stopPropagation","stopImmediatePropagation","self","trusted","once"];function QS(e,t){const n=new Map;for(const t of e.attributes){if("OnDirective"!==t.type)continue;let e=`on${t.name}`;t.modifiers.includes("capture")&&(e+="capture");const s=n.get(e)||[];s.push(t),n.set(e,s)}for(const[e,s]of n){const n=[];let r=null;for(const e of s){let s;e.expression?s=t.str.original.substring(e.expression.start,e.expression.end):(s=`${t.names.bubble}('${e.name}')`,t.legacy_imports.add("createBubbler"),t.script_insertions.add(`const ${t.names.bubble} = ${t.names.createBubbler}();`));const a=e.modifiers.includes("passive"),i=e.modifiers.includes("nonpassive"),o=XS.filter((t=>e.modifiers.includes(t)));for(const e of o)t.legacy_imports.add(e),s=`${t.names[e]}(${s})`;if(a||i){const n=a?"passive":"nonpassive";t.legacy_imports.add(n),t.str.overwrite(e.start,e.end,`use:${t.names[n]}={['${e.name}', () => ${s}]}`)}else{if(r){let n=e.start,s=e.end;for(;/[\s\n]/.test(t.str.original[n-1]);)n-=1;t.str.remove(n,s)}else r=e;n.push(s)}}if(r){let s;if(n.length>1)t.legacy_imports.add("handlers"),s=`${e}={${t.names.handlers}(${n.join(", ")})}`;else{const t=n[0];s=t===e?`{${t}}`:`${e}={${t}}`}t.str.overwrite(r.start,r.end,s)}}}function YS(e,t){const n=t.leadingComments?.[0],s=t.trailingComments?.[t.trailingComments.length-1];let r=n?.start??t.start,a=s?.end??t.end,i=r;for(;"\n"!==e[i-1]&&"\r"!==e[i-1];)if(i--," "!==e[i]&&"\t"!==e[i]){i=r;break}return r=i,{start:r,end:a}}function JS(e,t,n){const s=n.at(-1);if("MemberExpression"!==s?.type||s.property!==e)if(t.analysis.uses_props&&"$$slots"!==e.name)if("$$props"===e.name||"$$restProps"===e.name)t.str.update(e.start,e.end,t.names.props);else{const n=t.scope.get(e.name);"bindable_prop"===n?.kind&&n.node!==e&&t.str.prependLeft(e.start,`${t.names.props}.`)}else if("$$restProps"===e.name&&t.analysis.uses_rest_props)t.str.update(e.start,e.end,t.names.rest);else if("$$slots"===e.name&&t.analysis.uses_slots){if("MemberExpression"===s?.type){if(t.analysis.custom_element)return;let n="Literal"===s.property.type?s.property.value:s.property.name,r=n;const a=t.props.find((e=>e.slot_name===n));if(a)n=a.local;else if("default"!==n){if(t.scope.generate(n)!==n)throw new VS("This migration would change the name of a slot making the component unusable")}n="default"===n?"children":n,a||t.props.push({local:n,exported:n,init:"",bindable:!1,optional:!0,slot_name:r,type:"import('svelte').Snippet<[any]>",needs_refine_type:!0}),t.str.update(e.start,s.property.start,t.analysis.uses_props?`${t.names.props}.`:""),t.str.update(s.property.start,s.end,n)}}else if("TSInterfaceDeclaration"===s?.type||"TSTypeAliasDeclaration"===s?.type){const n="TSInterfaceDeclaration"===s.type?s.body.body:s.typeAnnotation?.members;if(Array.isArray(n)&&"$$Props"===e.name){t.has_type_or_fallback=!0;for(const e of n){const n=t.props.find((t=>t.exported===e.key.name)),s=t.str.original.substring(e.typeAnnotation.typeAnnotation.start,e.typeAnnotation.typeAnnotation.end);let r;const a=e.leadingComments?.at(-1);"Block"===a?.type&&(r=t.str.original.substring(a.start,a.end));const i=e.trailingComments?.at(0)?.value;n?(n.type=s,n.optional=e.optional,n.comment=r??n.comment,n.trailing_comment=i??n.trailing_comment):t.props.push({local:e.key.name,exported:e.key.name,init:"",bindable:!1,optional:e.optional,type:s,comment:r,trailing_comment:i,type_only:!0})}t.str.remove(s.start,s.end)}}}function ZS(e){const t=e.split("\n"),n=t.filter((e=>/^\t+/.test(e))),s=t.filter((e=>/^ {2,}/.test(e)));if(0===n.length&&0===s.length)return"\t";if(n.length>=s.length)return"\t";const r=s.reduce(((e,t)=>{const n=/^ +/.exec(t)?.[0].length??0;return Math.min(n,e)}),1/0);return" ".repeat(r)}function eP(e,n,s){if(s){const e=e=>{delete e.metadata};return n.options?.attributes.forEach((t=>{e(t),e(t.value),Array.isArray(t.value)&&t.value.forEach(e)})),t(n,null,{_(t,{next:n}){e(t),n()}})}return function(e,n){return t(n,null,{_(e,{next:t}){delete e.metadata,t()},Root(t,{visit:s}){const{instance:r,module:a,options:i}=t;if(i?.__raw__){let e=t.fragment.nodes.findIndex((e=>i.end<=e.start));-1===e&&(e=t.fragment.nodes.length),t.fragment.nodes.splice(e,0,i.__raw__)}let o=null,l=null;if(t.fragment.nodes.length>0){const n=t.fragment.nodes.at(0),s=t.fragment.nodes.at(-1);for(o=n.start,l=s.end;/\s/.test(e[o]);)o+=1;for(;/\s/.test(e[l-1]);)l-=1}return r&&delete r.attributes,a&&delete a.attributes,{html:{type:"Fragment",start:o,end:l,children:t.fragment.nodes.map((e=>s(e)))},instance:r,module:a,css:n.css?s(n.css):void 0}},AnimateDirective:e=>({...e,type:"Animation"}),AwaitBlock(t,{visit:n}){let s={type:"PendingBlock",start:null,end:null,children:t.pending?.nodes.map((e=>n(e)))??[],skip:!0},r={type:"ThenBlock",start:null,end:null,children:t.then?.nodes.map((e=>n(e)))??[],skip:!0},a={type:"CatchBlock",start:null,end:null,children:t.catch?.nodes.map((e=>n(e)))??[],skip:!0};if(t.pending){const n=t.pending.nodes.at(0),r=t.pending.nodes.at(-1);s.start=n?.start??e.indexOf("}",t.expression.end)+1,s.end=r?.end??s.start,s.skip=!1}if(t.then){const n=t.then.nodes.at(0),a=t.then.nodes.at(-1);r.start=s.end??n?.start??e.indexOf("}",t.expression.end)+1,r.end=a?.end??e.lastIndexOf("}",s.end??t.expression.end)+1,r.skip=!1}if(t.catch){const n=t.catch.nodes.at(0),i=t.catch.nodes.at(-1);a.start=r.end??s.end??n?.start??e.indexOf("}",t.expression.end)+1,a.end=i?.end??e.lastIndexOf("}",r.end??s.end??t.expression.end)+1,a.skip=!1}return{type:"AwaitBlock",start:t.start,end:t.end,expression:t.expression,value:t.value,error:t.error,pending:s,then:r,catch:a}},BindDirective:e=>({...e,type:"Binding"}),ClassDirective:e=>({...e,type:"Class"}),Comment:e=>({...e,ignores:ot(e.start,e.data,!1)}),ComplexSelector(e,{next:t}){t();const n=[];for(const t of e.children)t.combinator&&n.push(t.combinator),n.push(...t.selectors);return{type:"Selector",start:e.start,end:e.end,children:n}},Component:(e,{visit:t})=>({type:"InlineComponent",start:e.start,end:e.end,name:e.name,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),ConstTag(e){if(void 0!==e.expression)return e;const t=e,{id:n}={...t.declaration.declarations[0]};return delete n.typeAnnotation,{type:"ConstTag",start:t.start,end:e.end,expression:{type:"AssignmentExpression",start:(t.declaration.start??0)+6,end:t.declaration.end??0,operator:"=",left:n,right:t.declaration.declarations[0].init}}},KeyBlock:(e,{visit:t})=>(ct(e.fragment.nodes),{type:"KeyBlock",start:e.start,end:e.end,expression:e.expression,children:e.fragment.nodes.map((e=>t(e)))}),EachBlock(t,{visit:n}){let s;if(t.fallback){const r=t.fallback.nodes.at(0),a=e.lastIndexOf("{",t.end-1),i=r?.start??a;ct(t.fallback.nodes),s={type:"ElseBlock",start:i,end:a,children:t.fallback.nodes.map((e=>n(e)))}}return ct(t.body.nodes),{type:"EachBlock",start:t.start,end:t.end,children:t.body.nodes.map((e=>n(e))),context:t.context,expression:t.expression,index:t.index,key:t.key,else:s}},ExpressionTag(t,{path:n}){const s=n.at(-1);return"Attribute"===s?.type&&"{"===e[s.start]?{type:"AttributeShorthand",start:t.start,end:t.end,expression:t.expression}:{type:"MustacheTag",start:t.start,end:t.end,expression:t.expression}},HtmlTag:e=>({...e,type:"RawMustacheTag"}),IfBlock(t,{visit:n}){let s;if(t.alternate){let r=t.alternate.nodes;1===r.length&&"IfBlock"===r[0].type&&r[0].elseif&&(r=r[0].consequent.nodes);const a=e.lastIndexOf("{",t.end-1),i=r.at(0)?.start??a;ct(t.alternate.nodes),s={type:"ElseBlock",start:i,end:a,children:t.alternate.nodes.map((e=>n(e)))}}const r=t.elseif?t.consequent.nodes[0]?.start??e.lastIndexOf("{",t.end-1):t.start;return ct(t.consequent.nodes),{type:"IfBlock",start:r,end:t.end,expression:t.test,children:t.consequent.nodes.map((e=>n(e))),else:s,elseif:!!t.elseif||void 0}},OnDirective:e=>({...e,type:"EventHandler"}),SnippetBlock:(e,{visit:t})=>(ct(e.body.nodes),{type:"SnippetBlock",start:e.start,end:e.end,expression:e.expression,parameters:e.parameters,children:e.body.nodes.map((e=>t(e)))}),SvelteBoundary:(e,{visit:t})=>(ct(e.fragment.nodes),{type:"SvelteBoundary",name:"svelte:boundary",start:e.start,end:e.end,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),RegularElement:(e,{visit:t})=>({type:"Element",start:e.start,end:e.end,name:e.name,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),SlotElement:(e,{visit:t})=>({type:"Slot",start:e.start,end:e.end,name:e.name,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),Attribute(e,{visit:t,next:n,path:s}){if(!0===e.value||Array.isArray(e.value))return n();{s.push(e);const n=[t(e.value)];return s.pop(),{...e,value:n}}},StyleDirective(e,{visit:t,next:n,path:s}){if(!0===e.value||Array.isArray(e.value))return n();{s.push(e);const n=[t(e.value)];return s.pop(),{...e,value:n}}},SpreadAttribute:e=>({...e,type:"Spread"}),StyleSheet:(e,t)=>({...e,...t.next(),type:"Style"}),SvelteBody:(e,{visit:t})=>({type:"Body",name:"svelte:body",start:e.start,end:e.end,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),SvelteComponent:(e,{visit:t})=>({type:"InlineComponent",name:"svelte:component",start:e.start,end:e.end,expression:e.expression,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),SvelteDocument:(e,{visit:t})=>({type:"Document",name:"svelte:document",start:e.start,end:e.end,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),SvelteElement(t,{visit:n}){let s=t.tag;return"Literal"===s.type&&"string"==typeof s.value&&"{"!==e[t.tag.start-1]&&(s=s.value),{type:"Element",name:"svelte:element",start:t.start,end:t.end,tag:s,attributes:t.attributes.map((e=>n(e))),children:t.fragment.nodes.map((e=>n(e)))}},SvelteFragment:(e,{visit:t})=>({type:"SlotTemplate",name:"svelte:fragment",start:e.start,end:e.end,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),SvelteHead:(e,{visit:t})=>({type:"Head",name:"svelte:head",start:e.start,end:e.end,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),SvelteOptions:(e,{visit:t})=>({type:"Options",name:"svelte:options",start:e.start,end:e.end,attributes:e.attributes.map((e=>t(e)))}),SvelteSelf:(e,{visit:t})=>({type:"InlineComponent",name:"svelte:self",start:e.start,end:e.end,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),SvelteWindow:(e,{visit:t})=>({type:"Window",name:"svelte:window",start:e.start,end:e.end,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),Text(e,{path:t}){const n=t.at(-1);if("RegularElement"===n?.type&&"style"===n.name)return{type:"Text",start:e.start,end:e.end,data:e.data}},TitleElement:(e,{visit:t})=>({type:"Title",name:"title",start:e.start,end:e.end,attributes:e.attributes.map((e=>t(e))),children:e.fragment.nodes.map((e=>t(e)))}),TransitionDirective:e=>({...e,type:"Transition"}),UseDirective:e=>({...e,type:"Action"}),LetDirective:e=>({...e,type:"Let"})})}(e,n)}function tP(e){return 65279===e.charCodeAt(0)?e.slice(1):e}e.VERSION=xC,e.compile=function(e,t){e=tP(e),ye(t.warningFilter);const n=fS(t,"");ge(e,n);let s=xl(e);const{customElement:r,...a}=s.options||{},i={...n,...a,customElementOptions:r};s.metadata.ts&&(s={...s,fragment:s.fragment&&kl(s.fragment),instance:s.instance&&kl(s.instance),module:s.module&&kl(s.module)});const o=uS(jx(s,e,i),e,i);return o.ast=eP(e,s,t.modernAst),o},e.compileModule=function(e,n){e=tP(e),ye(n.warningFilter);const s=mS(n,"");ge(e,s);const r=function(e,n){const{scope:s,scopes:r}=Dl(e,new Nl,!1,null);for(const[e,t]of s.references)"$"!==e[0]||Dx.includes(e)||("$"!==e&&"$"!==e[1]||Ns(t[0].node,e),null===s.get(e.slice(1))||ie(e)||Is(t[0].node,"store_invalid_subscription_module","Cannot reference store value outside a `.svelte` file\nhttps://svelte.dev/e/store_invalid_subscription_module"));const a={module:{ast:e,scope:s,scopes:r},name:n.filename,accessors:!1,runes:!0,immutable:!0,tracing:!1};return t(e,{scope:s,scopes:r,analysis:a,derived_state:[],ast_type:null,component_slots:new Set,expression:null,function_depth:0,has_props_rune:!1,options:n,parent_element:null,reactive_statement:null},Ox),a}(Es(e,!1),s);return dS(r,e,s)},e.migrate=function(e,{filename:n,use_ts:s}={}){let r=e;try{FS=!1;const a=[];e=e.replace(jS,((e,t,n,s,r)=>(a.push([r+t.length,n]),t+BS+s))),ye((()=>!1)),ge(e,{filename:n??"(unknown)"});let i=xl(e);const{customElement:o,...l}=i.options||{},c={...fS({},""),...l,customElementOptions:o,filename:n??"(unknown)"},p=new LC(e),u=jx(i,e,c),d=ZS(e);p.replaceAll(/(<svelte:options\s.*?\s?)accessors\s?/g,((e,t)=>t));for(const _ of a)p.overwrite(_[0],_[0]+25,_[1]);let h={scope:u.instance.scope,analysis:u,filename:n,str:p,indent:d,props:[],props_insertion_point:i.instance?.content.start??0,has_props_rune:!1,has_type_or_fallback:!1,end:e.length,names:{props:u.root.unique("props").name,rest:u.root.unique("rest").name,run:u.root.unique("run").name,handlers:u.root.unique("handlers").name,stopImmediatePropagation:u.root.unique("stopImmediatePropagation").name,preventDefault:u.root.unique("preventDefault").name,stopPropagation:u.root.unique("stopPropagation").name,once:u.root.unique("once").name,self:u.root.unique("self").name,trusted:u.root.unique("trusted").name,createBubbler:u.root.unique("createBubbler").name,bubble:u.root.unique("bubble").name,passive:u.root.unique("passive").name,nonpassive:u.root.unique("nonpassive").name},legacy_imports:new Set,script_insertions:new Set,derived_components:new Map,derived_conflicting_slots:new Map,derived_labeled_statements:new Set,has_svelte_self:!1,uses_ts:s&&!e.includes("@type {")||!!i.instance?.attributes.some((e=>"lang"===e.name&&"ts"===e.value[0].data))};if(i.module){const x=i.module.attributes.find((e=>"context"===e.name));x&&h.str.update(x.start,x.end,"module")}i.instance&&t(i.instance.content,h,US),h={...h,scope:u.template.scope},t(i.fragment,h,WS);let m=i.instance?i.instance.content.start:0;const f=h.legacy_imports.size>0||h.derived_components.size>0||h.derived_conflicting_slots.size>0||h.script_insertions.size>0||h.props.length>0||u.uses_rest_props||u.uses_props||h.has_svelte_self,y=h.uses_ts&&(!i.instance||!i.instance.attributes.some((e=>"lang"===e.name)));if(!i.instance&&f&&p.appendRight(0,y?'<script lang="ts">':"<script>"),h.has_svelte_self&&n){const C=n.split("/").pop();p.appendRight(m,`\n${d}import ${h.analysis.name} from './${C}';`)}const v=`import { ${[...h.legacy_imports].map((e=>{const t=h.names[e];return e===t?e:`${e} as ${t}`})).join(", ")} } from 'svelte/legacy';\n`;function g(e){if(!!h.scope.get(e))throw new VS(`migrating this component would require adding a \`$${e}\` rune but there's already a variable named ${e}.\n Rename the variable and try again or migrate by hand.`)}if(h.legacy_imports.size>0&&p.appendRight(m,`\n${d}${v}`),h.script_insertions.size>0&&p.appendRight(m,`\n${d}${[...h.script_insertions].join(`\n${d}`)}`),m=h.props_insertion_point,h.props.length>0||u.uses_rest_props||u.uses_props){const w=h.props.length>3,k=`\n${d}${d}`,S=w?k:" ";let P="";if(u.uses_props?P=`...${h.names.props}`:(P=h.props.filter((e=>!e.type_only)).map((e=>{let t=e.local===e.exported?e.local:`${e.exported}: ${e.local}`;return e.bindable?(g("bindable"),t+=` = $bindable(${e.init})`):e.init&&(t+=` = ${e.init}`),t})).join(`,${S}`),u.uses_rest_props&&(P+=`${h.props.length>0?`,${S}`:""}...${h.names.rest}`)),h.has_props_rune)p.appendRight(m,` ${P},`);else{const E=h.scope.root.unique("Props").name;let T="";(h.has_type_or_fallback||h.props.every((e=>e.slot_name)))&&(h.uses_ts?(T=`interface ${E} {${k}${h.props.map((e=>`${e.comment?`${e.comment}${k}`:""}${e.exported}${e.optional?"?":""}: ${e.type};${e.trailing_comment?" "+e.trailing_comment:""}`)).join(k)}`,(u.uses_props||u.uses_rest_props)&&(T+=`${h.props.length>0?k:""}[key: string]: any`),T+=`\n${d}}`):T=`/**\n${d} * @typedef {Object} ${E}${h.props.map((e=>`\n${d} * @property {${e.type}} ${e.optional?`[${e.exported}]`:e.exported}${e.comment?` - ${e.comment}`:""}${e.trailing_comment?` - ${e.trailing_comment.trim()}`:""}`)).join("")}\n${d} */`);let A=`let {${S}${P}${w?`\n${d}`:" "}}`;h.uses_ts?(T&&(A=`${T}\n\n${d}${A}`),g("props"),A=`${A}${T?`: ${E}`:""} = $props();`):(T&&(A=`${h.props.length>0?`${T}\n\n${d}`:""}/** @type {${h.props.length>0?E:""}${u.uses_props||u.uses_rest_props?(h.props.length>0?" & ":"")+"{ [key: string]: any }":""}} */\n${d}${A}`),g("props"),A=`${A} = $props();`),A=`\n${d}${A}`,p.appendRight(m,A)}i.instance&&y&&p.appendRight(i.instance.start+7,' lang="ts"')}let b=!1;for(const[$,{dependencies:I}]of h.analysis.reactive_statements){let R=[];if("ExpressionStatement"===$.body.type&&"AssignmentExpression"===$.body.expression.type&&(R=Di($.body.expression.left).map((e=>h.scope.get(e.name))).filter((e=>!!e))),I.some((e=>!R.includes(e)&&("prop"===e.kind||"bindable_prop"===e.kind?h.props_insertion_point:e.node.start)>$.start))){b=!0;break}}if(b){const q=Array.from(h.analysis.reactive_statements.keys());for(const L of q){const{start:M,end:O}=YS(e,L);p.appendLeft(O,"\n"),p.move(M,O,i.instance?.content.end),p.update(M-("\r"===e[M-2]?2:1),M,"")}}return m=i.instance?i.instance.content.end:m,h.derived_components.size>0&&(g("derived"),p.appendRight(m,`\n${d}${[...h.derived_components.entries()].map((([e,t])=>`const ${t} = $derived(${e});`)).join(`\n${d}`)}\n`)),h.derived_conflicting_slots.size>0&&(g("derived"),p.appendRight(m,`\n${d}${[...h.derived_conflicting_slots.entries()].map((([e,t])=>`const ${e} = $derived(${t});`)).join(`\n${d}`)}\n`)),h.props.length>0&&h.analysis.accessors&&p.appendRight(m,`\n${d}export {${h.props.reduce(((e,t)=>t.slot_name||t.type_only?e:`${e}\n${d}\t${t.local},`),"")}\n${d}}\n`),!i.instance&&f&&p.appendRight(m,"\n<\/script>\n\n"),function(e){if(!e.analysis.css.ast?.start)return;const t=e.str.snip(e.analysis.css.ast.start,e.analysis.css.ast?.end).toString();let n=t,s=0;const r=new LC(n);for(;n;){if(n.startsWith(":has")||n.startsWith(":is")||n.startsWith(":where")||n.startsWith(":not")){let e=n.indexOf("(")+1,a=!1;const i=":global",o=n.indexOf(i);if(n.substring(e,o).trim()){const r=t.lastIndexOf(i,s);if(r>-1){const a=HS(t.indexOf("(",r)+1,t)-s;if(a>e){s+=a,n=n.substring(a);continue}}}else a=!0,e+=i.length;const l=HS(e,n);if(e&&l){a||n.startsWith(":not")||(r.prependLeft(s+e,":global("),r.appendRight(s+l-1,")")),s+=l-1,n=n.substring(l-1);continue}}s++,n=n.substring(1)}e.str.update(e.analysis.css.ast?.start,e.analysis.css.ast?.end,r.toString())}(h),{code:p.toString()}}catch(N){return N instanceof VS||console.error("Error while migrating Svelte code",N),FS=!0,{code:`\x3c!-- @migration-task Error while migrating Svelte code: ${N.message} --\x3e\n${r}`}}finally{FS&&console.log(`One or more \`@migration-task\` comments were added to ${n?`\`${n}\``:"a file (unfortunately we don't know the name)"}, please check them and complete the migration manually.`)}},e.parse=function(e,{filename:t,rootDir:n,modern:s,loose:r}={}){return e=tP(e),ye((()=>!1)),ge(e,{filename:t??"(unknown)",rootDir:n}),eP(e,xl(e,r),s)},e.preprocess=async function(e,t,n){const s=n&&n.filename||t.filename,r=t?Array.isArray(t)?t:[t]:[],a=new $S(e,s);for(const e of r)e.markup&&a.update_source(await DS(e.markup,a)),e.script&&a.update_source(await NS("script",e.script,a)),e.style&&a.update_source(await NS("style",e.style,a));return a.to_processed()},e.walk=function(){throw new Error("'svelte/compiler' no longer exports a `walk` utility — please import it directly from 'estree-walker' instead")}}));