svelte 5.38.10 → 5.39.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiler/index.js +1 -1
- package/package.json +1 -1
- package/src/compiler/phases/1-parse/state/element.js +2 -1
- package/src/compiler/phases/2-analyze/index.js +10 -5
- package/src/compiler/phases/2-analyze/visitors/AwaitExpression.js +115 -7
- package/src/compiler/phases/2-analyze/visitors/CallExpression.js +1 -0
- package/src/compiler/phases/2-analyze/visitors/ConstTag.js +5 -1
- package/src/compiler/phases/2-analyze/visitors/RegularElement.js +1 -1
- package/src/compiler/phases/2-analyze/visitors/VariableDeclarator.js +6 -0
- package/src/compiler/phases/3-transform/client/transform-client.js +0 -2
- package/src/compiler/phases/3-transform/client/visitors/AwaitExpression.js +2 -104
- package/src/compiler/phases/3-transform/client/visitors/CallExpression.js +1 -3
- package/src/compiler/phases/3-transform/client/visitors/ConstTag.js +2 -7
- package/src/compiler/phases/3-transform/client/visitors/RegularElement.js +32 -9
- package/src/compiler/phases/3-transform/client/visitors/VariableDeclaration.js +2 -12
- package/src/compiler/phases/3-transform/server/transform-server.js +22 -14
- package/src/compiler/phases/3-transform/server/visitors/AwaitBlock.js +21 -17
- package/src/compiler/phases/3-transform/server/visitors/AwaitExpression.js +7 -15
- package/src/compiler/phases/3-transform/server/visitors/EachBlock.js +16 -11
- package/src/compiler/phases/3-transform/server/visitors/IfBlock.js +12 -10
- package/src/compiler/phases/3-transform/server/visitors/RegularElement.js +60 -18
- package/src/compiler/phases/3-transform/server/visitors/RenderTag.js +1 -1
- package/src/compiler/phases/3-transform/server/visitors/SlotElement.js +24 -5
- package/src/compiler/phases/3-transform/server/visitors/SnippetBlock.js +2 -2
- package/src/compiler/phases/3-transform/server/visitors/SvelteBoundary.js +12 -14
- package/src/compiler/phases/3-transform/server/visitors/SvelteElement.js +2 -2
- package/src/compiler/phases/3-transform/server/visitors/SvelteHead.js +1 -1
- package/src/compiler/phases/3-transform/server/visitors/TitleElement.js +3 -1
- package/src/compiler/phases/3-transform/server/visitors/shared/component.js +40 -24
- package/src/compiler/phases/3-transform/server/visitors/shared/element.js +3 -3
- package/src/compiler/phases/3-transform/server/visitors/shared/utils.js +105 -44
- package/src/compiler/utils/ast.js +16 -0
- package/src/compiler/utils/builders.js +2 -10
- package/src/index-server.js +4 -4
- package/src/internal/client/dom/blocks/boundary.js +64 -42
- package/src/internal/client/dom/operations.js +3 -3
- package/src/internal/client/dom/template.js +3 -0
- package/src/internal/client/index.js +1 -1
- package/src/internal/client/reactivity/async.js +19 -5
- package/src/internal/client/reactivity/batch.js +0 -25
- package/src/internal/client/render.js +37 -26
- package/src/internal/client/warnings.js +11 -0
- package/src/internal/server/blocks/snippet.js +3 -3
- package/src/internal/server/context.js +37 -21
- package/src/internal/server/dev.js +31 -35
- package/src/internal/server/errors.js +24 -0
- package/src/internal/server/index.js +146 -118
- package/src/internal/server/renderer.js +575 -0
- package/src/internal/server/warnings.js +17 -0
- package/src/internal/shared/attributes.js +4 -0
- package/src/internal/shared/errors.js +0 -16
- package/src/legacy/legacy-server.js +52 -6
- package/src/utils.js +0 -1
- package/src/version.js +1 -1
- package/types/index.d.ts +3 -1
- package/types/index.d.ts.map +2 -1
- package/src/internal/server/payload.js +0 -80
package/compiler/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!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=/[\u202a\u202b\u202c\u202d\u202e\u2066\u2067\u2068\u2069]+/g,_=/^\W*javascript:/i,x=/\b(image|picture|photo)\b/i,w=1,C=2,k=4,S=8,P=16,E=4,T=8,A=1,$=2,R=4,I="http://www.w3.org/2000/svg",M="http://www.w3.org/1998/Math/MathML";function q(e,t){if(0===t.length)return null;const n=new j(t).get(e);return n&&n[0][0]>.7?n[0][1]:null}function L(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 O=/[^\w, ]+/;function N(e,t=2){const n={},s=function(e,t=2){const n="-"+e.toLowerCase().replace(O,"")+"-",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 D(e,t){return t[0]-e[0]}class j{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=N(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=N(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(D);let f=[];const y=Math.min(50,m.length);for(let e=0;e<y;++e)f.push([L(m[e][1],n),m[e][1]]);m=f,m.sort(D),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 B(e,t){return e.start<=t&&t<e.end}function F(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(B(o,t))return{line:n+o.line,column:s+t-o.start,character:t};i+=l,o=a[i]}}}const V=/\r/g;function H(e){let t=5381,n=(e=e.replace(V,"")).length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return(t>>>0).toString(36)}const U=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function z(e){return U.includes(e)||"!doctype"===e.toLowerCase()}const W=["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 G(e){return W.includes(e)}function K(e){return e.endsWith("capture")&&"gotpointercapture"!==e&&"lostpointercapture"!==e}const X=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Q(e){return X.includes(e)}const Y=["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 J(e){return Y.includes(e)}const Z={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 ee=[...Y,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];const te=["autofocus","muted","defaultValue","defaultChecked"];function ne(e){return te.includes(e)}const se=["touchstart","touchmove"];const re=["textContent","innerHTML","innerText"];function ae(e){return re.includes(e)}const ie=["body","embed","iframe","img","link","object","script","style","track"];function oe(e){return ie.includes(e)}const le=["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 ce(e){return le.includes(e)}const pe=["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"];function ue(e){return pe.includes(e)}const de=["$state","$state.raw","$derived","$derived.by"],he=[...de,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];function me(e){return he.includes(e)}let fe,ye=[];const ve="(unknown)";let ge,be,_e,xe="<unknown>",we=F("",{offsetLine:1});function Ce(e){ge=e,we=F(ge,{offsetLine:1})}function ke(e){const t=we(e.start);return`${n=fe,n?.replace(/\//g,"/")}:${t?.line}:${t.column}`;var n}let Se=[],Pe=new Map;function Ee(e,t){return be&&!!Pe.get(e)?.some((e=>e.has(t)))}function Te(e){be=!1,xe=ve,ge="",we=()=>{},fe=(e.filename??ve).replace(/\\/g,"/"),_e=e.warning??(()=>!0),ye=[]}function Ae(e){const t=e.rootDir?.replace(/\\/g,"/");be=e.dev,e.runes,xe=e.component_name??ve,"string"==typeof t&&fe.startsWith(t)&&(fe=fe.replace(t,"").replace(/^[/\\]/,"")),Se=[],Pe.clear()}const $e=/^\t+/;function Re(e){return e.replace($e,(e=>e.split("\t").join(" ")))}class Ie{name="CompileDiagnostic";constructor(e,t,n){this.code=e,this.message=t,fe!==ve&&(this.filename=fe),n&&(this.position=n,this.start=we(n[0]),this.end=we(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+Re(e.slice(0,n)).length)+"^";return`${o}: ${Re(e)}\n${t}`}return`${o}: ${Re(e)}`})).join("\n")}(ge,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 Me extends Ie{name="CompileWarning";constructor(e,t,n){super(e,t,n)}}function qe(e,t,n){let s=Se;if(e&&(s=Pe.get(e)??Se),s&&s.at(-1)?.has(t))return;const r=new Me(t,n,e&&void 0!==e.start?[e.start,e.end??e.start]:void 0);_e(r)&&ye.push(r)}function Le(e){qe(e,"a11y_accesskey","Avoid using accesskey\nhttps://svelte.dev/e/a11y_accesskey")}function Oe(e){qe(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 Ne(e,t){qe(e,"a11y_aria_attributes",`\`<${t}>\` should not have aria-* attributes\nhttps://svelte.dev/e/a11y_aria_attributes`)}function De(e){qe(e,"a11y_autofocus","Avoid using autofocus\nhttps://svelte.dev/e/a11y_autofocus")}function je(e,t){qe(e,"a11y_hidden",`\`<${t}>\` element should not be hidden\nhttps://svelte.dev/e/a11y_hidden`)}function Be(e,t,n){qe(e,"a11y_incorrect_aria_attribute_type",`The value of '${t}' must be a ${n}\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type`)}function Fe(e,t){qe(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 Ve(e,t){qe(e,"a11y_misplaced_role",`\`<${t}>\` should not have role attribute\nhttps://svelte.dev/e/a11y_misplaced_role`)}function He(e){qe(e,"a11y_misplaced_scope","The scope attribute should only be used with `<th>` elements\nhttps://svelte.dev/e/a11y_misplaced_scope")}function Ue(e,t,n){qe(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 ze(e,t){qe(e,"a11y_no_abstract_role",`Abstract role '${t}' is forbidden\nhttps://svelte.dev/e/a11y_no_abstract_role`)}function We(e,t,n){qe(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 Ge(e,t,n){qe(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 Ke(e,t){qe(e,"a11y_no_redundant_roles",`Redundant role '${t}'\nhttps://svelte.dev/e/a11y_no_redundant_roles`)}function Xe(e){qe(e,"a11y_positive_tabindex","Avoid tabindex values above zero\nhttps://svelte.dev/e/a11y_positive_tabindex")}function Qe(e,t,n){qe(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 Ye(e,t,n){qe(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 Je(e,t,n,s){qe(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 Ze(e,t,n){qe(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 et(e,t,n){qe(e,"a11y_unknown_role",(n?`Unknown role '${t}'. Did you mean '${n}'?`:`Unknown role '${t}'`)+"\nhttps://svelte.dev/e/a11y_unknown_role")}function tt(e){qe(e,"bidirectional_control_characters","A bidirectional control character was detected in your code. These characters can be used to alter the visual direction of your code and could have unintended consequences\nhttps://svelte.dev/e/bidirectional_control_characters")}function nt(e,t,n){qe(e,"legacy_code",`\`${t}\` is no longer valid — please use \`${n}\` instead\nhttps://svelte.dev/e/legacy_code`)}function st(e,t,n){qe(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 rt(e){qe(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 at(e){qe(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 it(e){qe(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 ot(e){qe(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 lt(e,t){qe(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 ct(e,t){qe(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 pt(e,t){qe(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 ut(e){qe(e,"attribute_avoid_is",'The "is" attribute is not supported cross-browser and should be avoided\nhttps://svelte.dev/e/attribute_avoid_is')}function dt(e,t){qe(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 ht(e,t,n){qe(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 mt(e,t,n){qe(e,"element_implicitly_closed",`This element is implicitly closed by the following \`${t}\`, which can cause an unexpected DOM structure. Add an explicit \`${n}\` to avoid surprises.\nhttps://svelte.dev/e/element_implicitly_closed`)}function ft(e,t){qe(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 yt(e){qe(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 vt=/^\s*svelte-ignore\s/,gt={"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"},bt=["a11y_accesskey","a11y_aria_activedescendant_has_tabindex","a11y_aria_attributes","a11y_autocomplete_valid","a11y_autofocus","a11y_click_events_have_key_events","a11y_consider_explicit_label","a11y_distracting_elements","a11y_figcaption_index","a11y_figcaption_parent","a11y_hidden","a11y_img_redundant_alt","a11y_incorrect_aria_attribute_type","a11y_incorrect_aria_attribute_type_boolean","a11y_incorrect_aria_attribute_type_id","a11y_incorrect_aria_attribute_type_idlist","a11y_incorrect_aria_attribute_type_integer","a11y_incorrect_aria_attribute_type_token","a11y_incorrect_aria_attribute_type_tokenlist","a11y_incorrect_aria_attribute_type_tristate","a11y_interactive_supports_focus","a11y_invalid_attribute","a11y_label_has_associated_control","a11y_media_has_caption","a11y_misplaced_role","a11y_misplaced_scope","a11y_missing_attribute","a11y_missing_content","a11y_mouse_events_have_key_events","a11y_no_abstract_role","a11y_no_interactive_element_to_noninteractive_role","a11y_no_noninteractive_element_interactions","a11y_no_noninteractive_element_to_interactive_role","a11y_no_noninteractive_tabindex","a11y_no_redundant_roles","a11y_no_static_element_interactions","a11y_positive_tabindex","a11y_role_has_required_aria_props","a11y_role_supports_aria_props","a11y_role_supports_aria_props_implicit","a11y_unknown_aria_attribute","a11y_unknown_role","bidirectional_control_characters","legacy_code","unknown_code","options_deprecated_accessors","options_deprecated_immutable","options_missing_custom_element","options_removed_enable_sourcemap","options_removed_hydratable","options_removed_loop_guard_timeout","options_renamed_ssr_dom","custom_element_props_identifier","export_let_unused","legacy_component_creation","non_reactive_update","perf_avoid_inline_class","perf_avoid_nested_class","reactive_declaration_invalid_placement","reactive_declaration_module_script_dependency","state_referenced_locally","store_rune_conflict","css_unused_selector","attribute_avoid_is","attribute_global_event_reference","attribute_illegal_colon","attribute_invalid_property_name","attribute_quoted","bind_invalid_each_rest","block_empty","component_name_lowercase","element_implicitly_closed","element_invalid_self_closing_tag","event_directive_deprecated","node_invalid_placement_ssr","script_context_deprecated","script_unknown_attribute","slot_element_deprecated","svelte_component_deprecated","svelte_element_invalid_this","svelte_self_deprecated"].concat(["await_waterfall","await_reactivity_loss","state_snapshot_uncloneable","binding_property_non_reactive","hydration_attribute_changed","hydration_html_changed","ownership_invalid_binding","ownership_invalid_mutation"]);function _t(e,t,n){const s=vt.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(bt.includes(t))a.push(t);else{const s=gt[t]??t.replace(/-/g,"_"),r=e+n.index,a=r+t.length;if(bt.includes(s))nt({start:r,end:a},t,s);else{st({start:r,end:a},t,q(t,bt))}}if(!n[2])break}else for(const e of t.slice(r).matchAll(/[\w$-]+/gm)){const t=e[0];if(a.push(t),!bt.includes(t)){const e=gt[t]??t.replace(/-/g,"_");bt.includes(e)&&a.push(e)}}return a}function xt(e){const t=vt.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=gt[t]??t.replace(/-/g,"_");return/\w+-\w+/.test(e.substring(n+r+t.length))&&(a+=","),a}))}function wt(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 Ct=[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],kt=[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],St="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Pt={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"},Et="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",Tt={5:Et,"5module":Et+" export import",6:Et+" const class extends export import super"},At=/^in(stanceof)?$/,$t=new RegExp("["+St+"]"),Rt=new RegExp("["+St+"·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function It(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 Mt(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&$t.test(String.fromCharCode(e)):!1!==t&&It(e,kt)))}function qt(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&Rt.test(String.fromCharCode(e)):!1!==t&&(It(e,kt)||It(e,Ct)))))}var Lt=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 Ot(e,t){return new Lt(e,{beforeExpr:!0,binop:t})}var Nt={beforeExpr:!0},Dt={startsExpr:!0},jt={};function Bt(e,t){return void 0===t&&(t={}),t.keyword=e,jt[e]=new Lt(e,t)}var Ft={num:new Lt("num",Dt),regexp:new Lt("regexp",Dt),string:new Lt("string",Dt),name:new Lt("name",Dt),privateId:new Lt("privateId",Dt),eof:new Lt("eof"),bracketL:new Lt("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Lt("]"),braceL:new Lt("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Lt("}"),parenL:new Lt("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Lt(")"),comma:new Lt(",",Nt),semi:new Lt(";",Nt),colon:new Lt(":",Nt),dot:new Lt("."),question:new Lt("?",Nt),questionDot:new Lt("?."),arrow:new Lt("=>",Nt),template:new Lt("template"),invalidTemplate:new Lt("invalidTemplate"),ellipsis:new Lt("...",Nt),backQuote:new Lt("`",Dt),dollarBraceL:new Lt("${",{beforeExpr:!0,startsExpr:!0}),eq:new Lt("=",{beforeExpr:!0,isAssign:!0}),assign:new Lt("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Lt("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Lt("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Ot("||",1),logicalAND:Ot("&&",2),bitwiseOR:Ot("|",3),bitwiseXOR:Ot("^",4),bitwiseAND:Ot("&",5),equality:Ot("==/!=/===/!==",6),relational:Ot("</>/<=/>=",7),bitShift:Ot("<</>>/>>>",8),plusMin:new Lt("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Ot("%",10),star:Ot("*",10),slash:Ot("/",10),starstar:new Lt("**",{beforeExpr:!0}),coalesce:Ot("??",1),_break:Bt("break"),_case:Bt("case",Nt),_catch:Bt("catch"),_continue:Bt("continue"),_debugger:Bt("debugger"),_default:Bt("default",Nt),_do:Bt("do",{isLoop:!0,beforeExpr:!0}),_else:Bt("else",Nt),_finally:Bt("finally"),_for:Bt("for",{isLoop:!0}),_function:Bt("function",Dt),_if:Bt("if"),_return:Bt("return",Nt),_switch:Bt("switch"),_throw:Bt("throw",Nt),_try:Bt("try"),_var:Bt("var"),_const:Bt("const"),_while:Bt("while",{isLoop:!0}),_with:Bt("with"),_new:Bt("new",{beforeExpr:!0,startsExpr:!0}),_this:Bt("this",Dt),_super:Bt("super",Dt),_class:Bt("class",Dt),_extends:Bt("extends",Nt),_export:Bt("export"),_import:Bt("import",Dt),_null:Bt("null",Dt),_true:Bt("true",Dt),_false:Bt("false",Dt),_in:Bt("in",{beforeExpr:!0,binop:7}),_instanceof:Bt("instanceof",{beforeExpr:!0,binop:7}),_typeof:Bt("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Bt("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Bt("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Vt=/\r\n?|\n|\u2028|\u2029/,Ht=new RegExp(Vt.source,"g");function Ut(e){return 10===e||13===e||8232===e||8233===e}function zt(e,t,n){void 0===n&&(n=e.length);for(var s=t;s<n;s++){var r=e.charCodeAt(s);if(Ut(r))return s<n-1&&13===r&&10===e.charCodeAt(s+1)?s+2:s+1}return-1}var Wt=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Gt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Kt=Object.prototype,Xt=Kt.hasOwnProperty,Qt=Kt.toString,Yt=Object.hasOwn||function(e,t){return Xt.call(e,t)},Jt=Array.isArray||function(e){return"[object Array]"===Qt.call(e)},Zt=Object.create(null);function en(e){return Zt[e]||(Zt[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function tn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var nn=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,sn=function(e,t){this.line=e,this.column=t};sn.prototype.offset=function(e){return new sn(this.line,this.column+e)};var rn=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function an(e,t){for(var n=1,s=0;;){var r=zt(e,s,t);if(r<0)return new sn(n,t-s);++n,s=r}}var on={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},ln=!1;function cn(e){var t={};for(var n in on)t[n]=e&&Yt(e,n)?e[n]:on[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!ln&&"object"==typeof console&&console.warn&&(ln=!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 rn(this,i,o)),e.ranges&&(l.range=[r,a]),t.push(l)}}(t,t.onComment)),t}var pn=256;function un(e,t){return 2|(e?4:0)|(t?8:0)}var dn=function(e,t,n){this.options=e=cn(e),this.sourceFile=e.sourceFile,this.keywords=en(Tt[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var s="";!0!==e.allowReserved&&(s=Pt[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(s+=" await")),this.reservedWords=en(s);var r=(s?s+" ":"")+Pt.strict;this.reservedWordsStrict=en(r),this.reservedWordsStrictBind=en(r+" "+Pt.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(Vt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=Ft.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=[]},hn={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}};dn.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},hn.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},hn.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},hn.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},hn.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&pn)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},hn.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(64&t)>0||n||this.options.allowSuperOutsideMethod},hn.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},hn.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},hn.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(258&t)>0||n},hn.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&pn)>0},dn.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},dn.parse=function(e,t){return new this(t,e).parse()},dn.parseExpressionAt=function(e,t,n){var s=new this(n,e,t);return s.nextToken(),s.parseExpression()},dn.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(dn.prototype,hn);var mn=dn.prototype,fn=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;mn.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Gt.lastIndex=e,e+=Gt.exec(this.input)[0].length;var t=fn.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){Gt.lastIndex=e+t[0].length;var n=Gt.exec(this.input),s=n.index+n[0].length,r=this.input.charAt(s);return";"===r||"}"===r||Vt.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(s+1))}e+=t[0].length,Gt.lastIndex=e,e+=Gt.exec(this.input)[0].length,";"===this.input[e]&&e++}},mn.eat=function(e){return this.type===e&&(this.next(),!0)},mn.isContextual=function(e){return this.type===Ft.name&&this.value===e&&!this.containsEsc},mn.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},mn.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},mn.canInsertSemicolon=function(){return this.type===Ft.eof||this.type===Ft.braceR||Vt.test(this.input.slice(this.lastTokEnd,this.start))},mn.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},mn.semicolon=function(){this.eat(Ft.semi)||this.insertSemicolon()||this.unexpected()},mn.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},mn.expect=function(e){this.eat(e)||this.unexpected()},mn.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var yn=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};mn.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")}},mn.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")},mn.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")},mn.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var vn=dn.prototype;vn.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==Ft.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 gn={kind:"loop"},bn={kind:"switch"};vn.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Gt.lastIndex=this.pos;var t=Gt.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(Mt(s,!0)){for(var r=n+1;qt(s=this.input.charCodeAt(r),!0);)++r;if(92===s||s>55295&&s<56320)return!0;var a=this.input.slice(n,r);if(!At.test(a))return!0}return!1},vn.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Gt.lastIndex=this.pos;var e,t=Gt.exec(this.input),n=this.pos+t[0].length;return!(Vt.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(qt(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},vn.parseStatement=function(e,t,n){var s,r=this.type,a=this.startNode();switch(this.isLet(e)&&(r=Ft._var,s="let"),r){case Ft._break:case Ft._continue:return this.parseBreakContinueStatement(a,r.keyword);case Ft._debugger:return this.parseDebuggerStatement(a);case Ft._do:return this.parseDoStatement(a);case Ft._for:return this.parseForStatement(a);case Ft._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!e);case Ft._class:return e&&this.unexpected(),this.parseClass(a,!0);case Ft._if:return this.parseIfStatement(a);case Ft._return:return this.parseReturnStatement(a);case Ft._switch:return this.parseSwitchStatement(a);case Ft._throw:return this.parseThrowStatement(a);case Ft._try:return this.parseTryStatement(a);case Ft._const:case Ft._var:return s=s||this.value,e&&"var"!==s&&this.unexpected(),this.parseVarStatement(a,s);case Ft._while:return this.parseWhileStatement(a);case Ft._with:return this.parseWithStatement(a);case Ft.braceL:return this.parseBlock(!0,a);case Ft.semi:return this.parseEmptyStatement(a);case Ft._export:case Ft._import:if(this.options.ecmaVersion>10&&r===Ft._import){Gt.lastIndex=this.pos;var i=Gt.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===Ft._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===Ft.name&&"Identifier"===p.type&&this.eat(Ft.colon)?this.parseLabeledStatement(a,c,p,e):this.parseExpressionStatement(a,p)}},vn.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(Ft.semi)||this.insertSemicolon()?e.label=null:this.type!==Ft.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")},vn.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},vn.parseDoStatement=function(e){return this.next(),this.labels.push(gn),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(Ft._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(Ft.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},vn.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(gn),this.enterScope(0),this.expect(Ft.parenL),this.type===Ft.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===Ft._var||this.type===Ft._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===Ft._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===s.declarations.length?(this.options.ecmaVersion>=9&&(this.type===Ft._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 yn,c=this.start,p=t>-1?this.parseExprSubscripts(l,"await"):this.parseExpression(!0,l);return this.type===Ft._in||(i=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===Ft._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))},vn.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,xn|(n?0:wn),!1,t)},vn.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(Ft._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},vn.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(Ft.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},vn.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(Ft.braceL),this.labels.push(bn),this.enterScope(0);for(var n=!1;this.type!==Ft.braceR;)if(this.type===Ft._case||this.type===Ft._default){var s=this.type===Ft._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(Ft.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")},vn.parseThrowStatement=function(e){return this.next(),Vt.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 _n=[];vn.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(Ft.parenR),e},vn.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===Ft._catch){var t=this.startNode();this.next(),this.eat(Ft.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(Ft._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},vn.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")},vn.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(gn),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},vn.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")},vn.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},vn.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===Ft._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")},vn.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},vn.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(Ft.braceL),e&&this.enterScope(0);this.type!==Ft.braceR;){var s=this.parseStatement(null);t.body.push(s)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},vn.parseFor=function(e,t){return e.init=t,this.expect(Ft.semi),e.test=this.type===Ft.semi?null:this.parseExpression(),this.expect(Ft.semi),e.update=this.type===Ft.parenR?null:this.parseExpression(),this.expect(Ft.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},vn.parseForIn=function(e,t){var n=this.type===Ft._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(Ft.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},vn.parseVar=function(e,t,n,s){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(Ft.eq)?r.init=this.parseMaybeAssign(t):s||"const"!==n||this.type===Ft._in||this.options.ecmaVersion>=6&&this.isContextual("of")?s||"Identifier"===r.id.type||t&&(this.type===Ft._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(Ft.comma))break}return e},vn.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var xn=1,wn=2;function Cn(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 kn(e,t){var n=e.computed,s=e.key;return!n&&("Identifier"===s.type&&s.name===t||"Literal"===s.type&&s.value===t)}vn.parseFunction=function(e,t,n,s,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===Ft.star&&t&wn&&this.unexpected(),e.generator=this.eat(Ft.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&xn&&(e.id=4&t&&this.type!==Ft.name?null:this.parseIdent(),!e.id||t&wn||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(un(e.async,e.generator)),t&xn||(e.id=this.type===Ft.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&xn?"FunctionDeclaration":"FunctionExpression")},vn.parseFunctionParams=function(e){this.expect(Ft.parenL),e.params=this.parseBindingList(Ft.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},vn.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(Ft.braceL);this.type!==Ft.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&&Cn(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")},vn.parseClassElement=function(e){if(this.eat(Ft.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(Ft.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===Ft.star?o=!0:s="static"}if(n.static=o,!s&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==Ft.star||this.canInsertSemicolon()?s="async":a=!0),!s&&(t>=9||!a)&&this.eat(Ft.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===Ft.parenL||"method"!==i||r||a){var c=!n.static&&kn(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},vn.isClassElementNameStart=function(){return this.type===Ft.name||this.type===Ft.privateId||this.type===Ft.num||this.type===Ft.string||this.type===Ft.bracketL||this.type.keyword},vn.parseClassElementName=function(e){this.type===Ft.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)},vn.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&&kn(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")},vn.parseClassField=function(e){if(kn(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&kn(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(Ft.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")},vn.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==Ft.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},vn.parseClassId=function(e,t){this.type===Ft.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},vn.parseClassSuper=function(e){e.superClass=this.eat(Ft._extends)?this.parseExprSubscripts(null,!1):null},vn.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},vn.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];Yt(t,i.name)||(r?r.used.push(i):this.raiseRecoverable(i.start,"Private field '#"+i.name+"' must be declared in an enclosing class"))}},vn.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!==Ft.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},vn.parseExport=function(e,t){if(this.next(),this.eat(Ft.star))return this.parseExportAllDeclaration(e,t);if(this.eat(Ft._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!==Ft.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")},vn.parseExportDeclaration=function(e){return this.parseStatement(null)},vn.parseExportDefaultDeclaration=function(){var e;if(this.type===Ft._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|xn,!1,e)}if(this.type===Ft._class){var n=this.startNode();return this.parseClass(n,"nullableID")}var s=this.parseMaybeAssign();return this.semicolon(),s},vn.checkExport=function(e,t,n){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),Yt(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},vn.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)},vn.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)}},vn.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},vn.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")},vn.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(Ft.braceL);!this.eat(Ft.braceR);){if(n)n=!1;else if(this.expect(Ft.comma),this.afterTrailingComma(Ft.braceR))break;t.push(this.parseExportSpecifier(e))}return t},vn.parseImport=function(e){return this.next(),this.type===Ft.string?(e.specifiers=_n,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===Ft.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},vn.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")},vn.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},vn.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")},vn.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===Ft.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(Ft.comma)))return e;if(this.type===Ft.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(Ft.braceL);!this.eat(Ft.braceR);){if(t)t=!1;else if(this.expect(Ft.comma),this.afterTrailingComma(Ft.braceR))break;e.push(this.parseImportSpecifier())}return e},vn.parseWithClause=function(){var e=[];if(!this.eat(Ft._with))return e;this.expect(Ft.braceL);for(var t={},n=!0;!this.eat(Ft.braceR);){if(n)n=!1;else if(this.expect(Ft.comma),this.afterTrailingComma(Ft.braceR))break;var s=this.parseImportAttribute(),r="Identifier"===s.key.type?s.key.name:s.key.value;Yt(t,r)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(s)}return e},vn.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===Ft.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(Ft.colon),this.type!==Ft.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},vn.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===Ft.string){var e=this.parseLiteral(this.value);return nn.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},vn.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)},vn.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 Sn=dn.prototype;Sn.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},Sn.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},Sn.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},Sn.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==Ft.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},Sn.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case Ft.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(Ft.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case Ft.braceL:return this.parseObj(!0)}return this.parseIdent()},Sn.parseBindingList=function(e,t,n,s){for(var r=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(Ft.comma),t&&this.type===Ft.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===Ft.ellipsis){var i=this.parseRestBinding();this.parseBindingListItem(i),r.push(i),this.type===Ft.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}r.push(this.parseAssignableListItem(s))}return r},Sn.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},Sn.parseBindingListItem=function(e){return e},Sn.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(Ft.eq))return n;var s=this.startNodeAt(e,t);return s.left=n,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},Sn.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&&(Yt(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")}},Sn.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)}},Sn.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 Pn=function(e,t,n,s,r){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=s,this.generator=!!r},En={b_stat:new Pn("{",!1),b_expr:new Pn("{",!0),b_tmpl:new Pn("${",!1),p_stat:new Pn("(",!1),p_expr:new Pn("(",!0),q_tmpl:new Pn("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new Pn("function",!1),f_expr:new Pn("function",!0),f_expr_gen:new Pn("function",!0,!1,null,!0),f_gen:new Pn("function",!1,!1,null,!0)},Tn=dn.prototype;Tn.initialContext=function(){return[En.b_stat]},Tn.curContext=function(){return this.context[this.context.length-1]},Tn.braceIsBlock=function(e){var t=this.curContext();return t===En.f_expr||t===En.f_stat||(e!==Ft.colon||t!==En.b_stat&&t!==En.b_expr?e===Ft._return||e===Ft.name&&this.exprAllowed?Vt.test(this.input.slice(this.lastTokEnd,this.start)):e===Ft._else||e===Ft.semi||e===Ft.eof||e===Ft.parenR||e===Ft.arrow||(e===Ft.braceL?t===En.b_stat:e!==Ft._var&&e!==Ft._const&&e!==Ft.name&&!this.exprAllowed):!t.isExpr)},Tn.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},Tn.updateContext=function(e){var t,n=this.type;n.keyword&&e===Ft.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},Tn.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},Ft.parenR.updateContext=Ft.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===En.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},Ft.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?En.b_stat:En.b_expr),this.exprAllowed=!0},Ft.dollarBraceL.updateContext=function(){this.context.push(En.b_tmpl),this.exprAllowed=!0},Ft.parenL.updateContext=function(e){var t=e===Ft._if||e===Ft._for||e===Ft._with||e===Ft._while;this.context.push(t?En.p_stat:En.p_expr),this.exprAllowed=!0},Ft.incDec.updateContext=function(){},Ft._function.updateContext=Ft._class.updateContext=function(e){!e.beforeExpr||e===Ft._else||e===Ft.semi&&this.curContext()!==En.p_stat||e===Ft._return&&Vt.test(this.input.slice(this.lastTokEnd,this.start))||(e===Ft.colon||e===Ft.braceL)&&this.curContext()===En.b_stat?this.context.push(En.f_stat):this.context.push(En.f_expr),this.exprAllowed=!1},Ft.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},Ft.backQuote.updateContext=function(){this.curContext()===En.q_tmpl?this.context.pop():this.context.push(En.q_tmpl),this.exprAllowed=!1},Ft.star.updateContext=function(e){if(e===Ft._function){var t=this.context.length-1;this.context[t]===En.f_expr?this.context[t]=En.f_expr_gen:this.context[t]=En.f_gen}this.exprAllowed=!0},Ft.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==Ft.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var An=dn.prototype;function $n(e){return"Identifier"===e.type||"ParenthesizedExpression"===e.type&&$n(e.expression)}function Rn(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&Rn(e.expression)||"ParenthesizedExpression"===e.type&&Rn(e.expression)}An.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}}},An.parseExpression=function(e,t){var n=this.start,s=this.startLoc,r=this.parseMaybeAssign(e,t);if(this.type===Ft.comma){var a=this.startNodeAt(n,s);for(a.expressions=[r];this.eat(Ft.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return r},An.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 yn,s=!0);var o=this.start,l=this.startLoc;this.type!==Ft.parenL&&this.type!==Ft.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===Ft.eq&&(c=this.toAssignable(c,!1,t)),s||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===Ft.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},An.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(Ft.question)){var a=this.startNodeAt(n,s);return a.test=r,a.consequent=this.parseMaybeAssign(),this.expect(Ft.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return r},An.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)},An.parseExprOp=function(e,t,n,s,r){var a=this.type.binop;if(null!=a&&(!r||this.type!==Ft._in)&&a>s){var i=this.type===Ft.logicalOR||this.type===Ft.logicalAND,o=this.type===Ft.coalesce;o&&(a=Ft.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===Ft.coalesce||o&&(this.type===Ft.logicalOR||this.type===Ft.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},An.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")},An.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===Ft.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&&$n(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&Rn(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!==Ft.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!==Ft._in&&this.unexpected();return n||!this.eat(Ft.starstar)?r:t?void this.unexpected(this.lastTokStart):this.buildBinary(a,i,r,this.parseMaybeUnary(null,!1,!1,s),"**",!1)},An.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},An.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}},An.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(Ft.arrow)},An.parseSubscriptAsyncArrow=function(e,t,n,s){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,s)},An.parseSubscript=function(e,t,n,s,r,a,i){var o=this.options.ecmaVersion>=11,l=o&&this.eat(Ft.questionDot);s&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(Ft.bracketL);if(c||l&&this.type!==Ft.parenL&&this.type!==Ft.backQuote||this.eat(Ft.dot)){var p=this.startNodeAt(t,n);p.object=e,c?(p.property=this.parseExpression(),this.expect(Ft.bracketR)):this.type===Ft.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(Ft.parenL)){var u=new yn,d=this.yieldPos,h=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(Ft.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===Ft.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},An.parseExprAtom=function(e,t,n){this.type===Ft.slash&&this.readRegexp();var s,r=this.potentialArrowAt===this.start;switch(this.type){case Ft._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type!==Ft.parenL||this.allowDirectSuper||this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==Ft.dot&&this.type!==Ft.bracketL&&this.type!==Ft.parenL&&this.unexpected(),this.finishNode(s,"Super");case Ft._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case Ft.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(Ft._function))return this.overrideContext(En.f_expr),this.parseFunction(this.startNodeAt(a,i),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(Ft.arrow))return this.parseArrowExpression(this.startNodeAt(a,i),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===Ft.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(Ft.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,i),[l],!0,t)}return l;case Ft.regexp:var c=this.value;return(s=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},s;case Ft.num:case Ft.string:return this.parseLiteral(this.value);case Ft._null:case Ft._true:case Ft._false:return(s=this.startNode()).value=this.type===Ft._null?null:this.type===Ft._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case Ft.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 Ft.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(Ft.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case Ft.braceL:return this.overrideContext(En.b_expr),this.parseObj(!1,e);case Ft._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case Ft._class:return this.parseClass(this.startNode(),!1);case Ft._new:return this.parseNew();case Ft.backQuote:return this.parseTemplate();case Ft._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},An.parseExprAtomDefault=function(){this.unexpected()},An.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===Ft.parenL&&!e)return this.parseDynamicImport(t);if(this.type===Ft.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()},An.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(Ft.parenR)?e.options=null:(this.expect(Ft.comma),this.afterTrailingComma(Ft.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(Ft.parenR)||(this.expect(Ft.comma),this.afterTrailingComma(Ft.parenR)||this.unexpected())));else if(!this.eat(Ft.parenR)){var t=this.start;this.eat(Ft.comma)&&this.eat(Ft.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},An.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")},An.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")},An.parseParenExpression=function(){this.expect(Ft.parenL);var e=this.parseExpression();return this.expect(Ft.parenR),e},An.shouldParseArrow=function(e){return!this.canInsertSemicolon()},An.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 yn,h=this.yieldPos,m=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==Ft.parenR;){if(p?p=!1:this.expect(Ft.comma),a&&this.afterTrailingComma(Ft.parenR,!0)){u=!0;break}if(this.type===Ft.ellipsis){i=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===Ft.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(Ft.parenR),e&&this.shouldParseArrow(c)&&this.eat(Ft.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},An.parseParenItem=function(e){return e},An.parseParenArrowList=function(e,t,n,s){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,s)};var In=[];An.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===Ft.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(Ft.parenL)?e.arguments=this.parseExprList(Ft.parenR,this.options.ecmaVersion>=8,!1):e.arguments=In,this.finishNode(e,"NewExpression")},An.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===Ft.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===Ft.backQuote,this.finishNode(n,"TemplateElement")},An.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===Ft.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(Ft.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(Ft.braceR),n.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},An.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===Ft.name||this.type===Ft.num||this.type===Ft.string||this.type===Ft.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===Ft.star)&&!Vt.test(this.input.slice(this.lastTokEnd,this.start))},An.parseObj=function(e,t){var n=this.startNode(),s=!0,r={};for(n.properties=[],this.next();!this.eat(Ft.braceR);){if(s)s=!1;else if(this.expect(Ft.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(Ft.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")},An.parseProperty=function(e,t){var n,s,r,a,i=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(Ft.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===Ft.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===Ft.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(Ft.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(Ft.star),this.parsePropertyName(i)):s=!1,this.parsePropertyValue(i,e,n,s,r,a,t,o),this.finishNode(i,"Property")},An.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")},An.parsePropertyValue=function(e,t,n,s,r,a,i,o){(n||s)&&this.type===Ft.colon&&this.unexpected(),this.eat(Ft.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,i),e.kind="init"):this.options.ecmaVersion>=6&&this.type===Ft.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===Ft.comma||this.type===Ft.braceR||this.type===Ft.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===Ft.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))},An.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(Ft.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(Ft.bracketR),e.key;e.computed=!1}return e.key=this.type===Ft.num||this.type===Ft.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},An.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},An.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|un(t,s.generator)|(n?128:0)),this.expect(Ft.parenL),s.params=this.parseBindingList(Ft.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")},An.parseArrowExpression=function(e,t,n,s){var r=this.yieldPos,a=this.awaitPos,i=this.awaitIdentPos;return this.enterScope(16|un(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")},An.parseFunctionBody=function(e,t,n,s){var r=t&&this.type!==Ft.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()},An.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){if("Identifier"!==n[t].type)return!1}return!0},An.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)}},An.parseExprList=function(e,t,n,s){for(var r=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(Ft.comma),t&&this.afterTrailingComma(e))break;var i=void 0;n&&this.type===Ft.comma?i=null:this.type===Ft.ellipsis?(i=this.parseSpread(s),s&&this.type===Ft.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):i=this.parseMaybeAssign(!1,s),r.push(i)}return r},An.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"))},An.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},An.parseIdentNode=function(){var e=this.startNode();return this.type===Ft.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=Ft.name):this.unexpected(),e},An.parsePrivateIdent=function(){var e=this.startNode();return this.type===Ft.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},An.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===Ft.semi||this.canInsertSemicolon()||this.type!==Ft.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(Ft.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},An.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 Mn=dn.prototype;Mn.raise=function(e,t){var n=an(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},Mn.raiseRecoverable=Mn.raise,Mn.curPosition=function(){if(this.options.locations)return new sn(this.curLine,this.pos-this.lineStart)};var qn=dn.prototype,Ln=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};qn.enterScope=function(e){this.scopeStack.push(new Ln(e))},qn.exitScope=function(){this.scopeStack.pop()},qn.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},qn.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")},qn.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},qn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},qn.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},qn.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 On=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new rn(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Nn=dn.prototype;function Dn(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}Nn.startNode=function(){return new On(this,this.start,this.startLoc)},Nn.startNodeAt=function(e,t){return new On(this,e,t)},Nn.finishNode=function(e,t){return Dn.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Nn.finishNodeAt=function(e,t,n,s){return Dn.call(this,e,t,n,s)},Nn.copyNode=function(e){var t=new On(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var jn="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",Bn=jn+" Extended_Pictographic",Fn=Bn+" EBase EComp EMod EPres ExtPict",Vn={9:jn,10:Bn,11:Bn,12:Fn,13:Fn,14:Fn},Hn={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"},Un="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",zn="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",Wn=zn+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Gn=Wn+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Kn=Gn+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Xn=Kn+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Qn={9:zn,10:Wn,11:Gn,12:Kn,13:Xn,14:Xn+" 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"},Yn={};function Jn(e){var t=Yn[e]={binary:en(Vn[e]+" "+Un),binaryOfStrings:en(Hn[e]),nonBinary:{General_Category:en(Un),Script:en(Qn[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 Zn=0,es=[9,10,11,12,13,14];Zn<es.length;Zn+=1){Jn(es[Zn])}var ts=dn.prototype,ns=function(e,t){this.parent=e,this.base=t||this};ns.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},ns.prototype.sibling=function(){return new ns(this.parent,this.base)};var ss=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=Yn[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 rs(e){return 105===e||109===e||115===e}function as(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function is(e){return e>=65&&e<=90||e>=97&&e<=122}ss.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)},ss.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},ss.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},ss.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},ss.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},ss.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},ss.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},ss.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},ss.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},ts.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")},ts.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))},ts.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")}},ts.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new ns(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")},ts.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},ts.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)},ts.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},ts.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},ts.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},ts.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},ts.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)},ts.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},ts.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},ts.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},ts.regexp_eatModifiers=function(e){for(var t="",n=0;-1!==(n=e.current())&&rs(n);)t+=tn(n),e.advance();return t},ts.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)},ts.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},ts.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!as(t)&&(e.lastIntValue=t,e.advance(),!0)},ts.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!as(n);)e.advance();return e.pos!==t},ts.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)},ts.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}},ts.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},ts.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=tn(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=tn(e.lastIntValue);return!0}return!1},ts.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 Mt(e,!0)||36===e||95===e}(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)},ts.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 qt(e,!0)||36===e||95===e||8204===e||8205===e}(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)},ts.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)},ts.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},ts.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},ts.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)},ts.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},ts.regexp_eatZero=function(e){return 48===e.current()&&!cs(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},ts.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)},ts.regexp_eatControlLetter=function(e){var t=e.current();return!!is(t)&&(e.lastIntValue=t%32,e.advance(),!0)},ts.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},ts.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)},ts.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 os(e){return is(e)||95===e}function ls(e){return os(e)||cs(e)}function cs(e){return e>=48&&e<=57}function ps(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function us(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function ds(e){return e>=48&&e<=55}ts.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},ts.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},ts.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){Yt(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},ts.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")},ts.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";os(t=e.current());)e.lastStringValue+=tn(t),e.advance();return""!==e.lastStringValue},ts.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";ls(t=e.current());)e.lastStringValue+=tn(t),e.advance();return""!==e.lastStringValue},ts.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},ts.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},ts.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},ts.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")}}},ts.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||ds(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)},ts.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)},ts.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)}},ts.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},ts.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},ts.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},ts.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},ts.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},ts.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},ts.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))},ts.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)},ts.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!cs(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},ts.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},ts.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;cs(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},ts.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;ps(n=e.current());)e.lastIntValue=16*e.lastIntValue+us(n),e.advance();return e.pos!==t},ts.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},ts.regexp_eatOctalDigit=function(e){var t=e.current();return ds(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},ts.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var s=0;s<t;++s){var r=e.current();if(!ps(r))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+us(r),e.advance()}return!0};var hs=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new rn(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},ms=dn.prototype;function fs(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}ms.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 hs(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ms.getToken=function(){return this.next(),new hs(this)},"undefined"!=typeof Symbol&&(ms[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===Ft.eof,value:t}}}}),ms.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(Ft.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},ms.readToken=function(e){return Mt(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},ms.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},ms.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=zt(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())},ms.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&&!Ut(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())},ms.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&&Wt.test(String.fromCharCode(e))))break e;++this.pos}}},ms.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)},ms.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(Ft.ellipsis)):(++this.pos,this.finishToken(Ft.dot))},ms.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(Ft.assign,2):this.finishOp(Ft.slash,1)},ms.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,s=42===e?Ft.star:Ft.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,s=Ft.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(Ft.assign,n+1):this.finishOp(s,n)},ms.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(Ft.assign,3);return this.finishOp(124===e?Ft.logicalOR:Ft.logicalAND,2)}return 61===t?this.finishOp(Ft.assign,2):this.finishOp(124===e?Ft.bitwiseOR:Ft.bitwiseAND,1)},ms.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(Ft.assign,2):this.finishOp(Ft.bitwiseXOR,1)},ms.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&&!Vt.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(Ft.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(Ft.assign,2):this.finishOp(Ft.plusMin,1)},ms.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(Ft.assign,n+1):this.finishOp(Ft.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(Ft.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},ms.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(Ft.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(Ft.arrow)):this.finishOp(61===e?Ft.eq:Ft.prefix,1)},ms.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(Ft.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(Ft.assign,3);return this.finishOp(Ft.coalesce,2)}}return this.finishOp(Ft.question,1)},ms.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,Mt(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(Ft.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+tn(e)+"'")},ms.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(Ft.parenL);case 41:return++this.pos,this.finishToken(Ft.parenR);case 59:return++this.pos,this.finishToken(Ft.semi);case 44:return++this.pos,this.finishToken(Ft.comma);case 91:return++this.pos,this.finishToken(Ft.bracketL);case 93:return++this.pos,this.finishToken(Ft.bracketR);case 123:return++this.pos,this.finishToken(Ft.braceL);case 125:return++this.pos,this.finishToken(Ft.braceR);case 58:return++this.pos,this.finishToken(Ft.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(Ft.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(Ft.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+tn(e)+"'")},ms.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},ms.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(Vt.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 ss(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(Ft.regexp,{pattern:r,flags:i,value:l})},ms.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},ms.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=fs(this.input.slice(t,this.pos)),++this.pos):Mt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Ft.num,n)},ms.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=fs(this.input.slice(t,this.pos));return++this.pos,Mt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Ft.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")),Mt(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(Ft.num,i)},ms.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},ms.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)):(Ut(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(Ft.string,t)};var ys={};ms.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==ys)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},ms.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ys;this.raise(e,t)},ms.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!==Ft.template&&this.type!==Ft.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(Ft.template,e)):36===n?(this.pos+=2,this.finishToken(Ft.dollarBraceL)):(++this.pos,this.finishToken(Ft.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Ut(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}},ms.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(Ft.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")},ms.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 tn(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 Ut(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},ms.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},ms.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(qt(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?Mt:qt)(i,s)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=tn(i),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},ms.readWord=function(){var e=this.readWord1(),t=Ft.name;return this.keywords.test(e)&&(t=jt[e]),this.finishToken(t,e)};var vs="8.14.0";dn.acorn={Parser:dn,version:vs,defaultOptions:on,Position:sn,SourceLocation:rn,getLineInfo:an,Node:On,TokenType:Lt,tokTypes:Ft,keywordTypes:jt,TokContext:Pn,tokContexts:En,isIdentifierChar:qt,isIdentifierStart:Mt,Token:hs,isNewLine:Ut,lineBreak:Vt,lineBreakG:Ht,nonASCIIwhitespace:Wt};var gs=Object.freeze({__proto__:null,Node:On,Parser:dn,Position:sn,SourceLocation:rn,TokContext:Pn,Token:hs,TokenType:Lt,defaultOptions:on,getLineInfo:an,isIdentifierChar:qt,isIdentifierStart:Mt,isNewLine:Ut,keywordTypes:jt,lineBreak:Vt,lineBreakG:Ht,nonASCIIwhitespace:Wt,parse:function(e,t){return dn.parse(e,t)},parseExpressionAt:function(e,t,n){return dn.parseExpressionAt(e,t,n)},tokContexts:En,tokTypes:Ft,tokenizer:function(e,t){return dn.tokenizer(e,t)},version:vs}),bs=!0;function _s(e,t={}){return new Lt("name",t)}var xs=new WeakMap;function ws(e){const t=e.Parser.acorn||e;let n=xs.get(t);if(!n){let e=function(e){return[Ft.name,Ft.string,Ft.num,...Object.values(jt),...Object.values(o)].includes(e)},t=function(e){return[Ft.name,...Object.values(jt),...Object.values(o)].includes(e)},s=function(e){return[...Object.values(o),Ft.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===Ft.invalidTemplate};const o={assert:_s(0,{startsExpr:bs}),asserts:_s(0,{startsExpr:bs}),global:_s(0,{startsExpr:bs}),keyof:_s(0,{startsExpr:bs}),readonly:_s(0,{startsExpr:bs}),unique:_s(0,{startsExpr:bs}),abstract:_s(0,{startsExpr:bs}),declare:_s(0,{startsExpr:bs}),enum:_s(0,{startsExpr:bs}),module:_s(0,{startsExpr:bs}),namespace:_s(0,{startsExpr:bs}),interface:_s(0,{startsExpr:bs}),type:_s(0,{startsExpr:bs})},l={at:new Lt("@"),jsxName:new Lt("jsxName"),jsxText:new Lt("jsxText",{beforeExpr:!0}),jsxTagStart:new Lt("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new Lt("jsxTagEnd")},c={tc_oTag:new Pn("<tag",!1,!1),tc_cTag:new Pn("</tag",!1,!1),tc_expr:new Pn("<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===Ft.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 Cs=1024,ks=new RegExp("(?=("+/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),Ss=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function Ps(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 Es(e,t){const{computed:n,key:s}=e;return!n&&("Identifier"===s.type&&s.name===t||"Literal"===s.type&&s.value===t)}var Ts={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."},As={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 $s=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function Rs(e){if(!e)throw new Error("Assert fail")}function Is(e){return"accessor"===e}function Ms(e){return"in"===e||"out"===e}var qs={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 Ls(e,t){return qs.SCOPE_FUNCTION|(e?qs.SCOPE_ASYNC:0)|(t?qs.SCOPE_GENERATOR:0)}function Os(e){if("MemberExpression"!==e.type)return!1;const{computed:t,property:n}=e;return(!t||!("TemplateLiteral"!==n.type||n.expressions.length>0))&&Ns(e.object)}function Ns(e){return"Identifier"===e.type||"MemberExpression"===e.type&&(!e.computed&&Ns(e.object))}function Ds(e){return"private"===e||"public"===e||"protected"===e}const js=dn.extend(function(e){const{dts:t=!1}={},n=!!e?.jsx;return function(e){const s=e.acorn||gs,r=ws(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,As.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:Ts.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=>Ds(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,Ts.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 $s.lastIndex=e,$s.test(this.input)?$s.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 ks.lastIndex=this.end,ks.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(Cs),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,Ts.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,Ts.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,Ts.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,Ts.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,Ts.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,Ts.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,Ts.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(){Rs(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:Ts.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,Ts.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=Ts.InvalidModifierOnTypeMember}){const a={},i=(t,n,s,r)=>{n===s&&e[r]&&this.raise(t.column,Ts.InvalidModifiersOrder({orderedModifiers:[s,r]}))},o=(t,n,s,r)=>{(e[s]&&n===r||e[r]&&n===s)&&this.raise(t.column,Ts.IncompatibleModifiers({modifiers:[s,r]}))};for(;;){const l=this.startLoc,c=this.tsParseModifier(t.concat(n??[]),s);if(!c)break;Ds(c)?e.accessibility?this.raise(this.start,Ts.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):Ms(c)?e[c]?this.raise(this.start,Ts.DuplicateModifier({modifier:c})):(i(l,c,"in","out"),a[c]=c,e[c]=!0):Is(c)?e[c]?this.raise(this.start,Ts.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,Ts.DuplicateModifier({modifier:c})):(a[c]=c,e[c]=!0):Object.hasOwnProperty.call(e,c)?this.raise(this.start,Ts.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:Ts.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,Ts.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,Ts.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,Ts.ReadonlyForMethodSignature);const s=n;s.kind&&this.tsMatchLeftRelational()&&this.raise(this.start,Ts.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,Ts.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,Ts.AccesorCannotDeclareThisParameter),"Identifier"===e.type&&e.optional&&this.raise(this.start,Ts.SetAccesorCannotHaveOptionalParameter),"RestElement"===e.type&&this.raise(this.start,Ts.SetAccesorCannotHaveRestParameter)}s[i]&&this.raise(s[i].start,Ts.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,qs.BIND_TS_INTERFACE)):(e.id=null,this.raise(this.start,Ts.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(Cs);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,qs.BIND_TS_NAMESPACE),this.eat(a.dot)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.enterScope(Cs),e.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(e,"TSModuleDeclaration")}checkLValSimple(e,t=qs.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,qs.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,qs.BIND_LEXICAL),super.expect(a.eq);const n=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==n.type&&this.raise(n.start,Ts.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(Ls(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?qs.BIND_VAR:qs.BIND_LEXICAL:qs.BIND_FUNCTION):this.checkLValSimple(e.id,qs.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,Ts.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,Ts.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,Ts.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,Ts.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,Ts.InitializerNotAllowedInAmbientContext):"StringLiteral"!==n.type&&"BooleanLiteral"!==n.type&&"NumericLiteral"!==n.type&&"BigIntLiteral"!==n.type&&("TemplateLiteral"!==n.type||n.expressions.length>0)&&!Os(n)&&this.raise(n.start,Ts.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,Ts.ClassMethodHasReadonly),e.declare&&this.match(a.parenL)&&this.raise(e.start,Ts.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,Ts.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,Ts.PrivateElementHasAbstract),e.accessibility&&this.raise(e.start,Ts.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,Ts.DeclareClassFieldHasInitializer),e.abstract&&this.match(a.eq)){const{key:t}=e;this.raise(this.start,Ts.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,Ts.PrivateMethodsHasAccessibility({modifier:e.accessibility}))):i&&r&&this.raise(i.start,Ts.ConstructorHasTypeParameters);const{declare:o=!1,kind:l}=e;!o||"get"!==l&&"set"!==l||this.raise(e.start,Ts.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&&Es(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:Ts.InvalidModifierOnTypeParameterPositions});o=Boolean(c.static);const p=()=>{if(!this.tsIsStartOfStaticBlocks()){const l=this.tsTryParseIndexSignature(t);if(l)return t.abstract&&this.raise(t.start,Ts.IndexSignatureHasAbstract),t.accessibility&&this.raise(t.start,Ts.IndexSignatureHasAccessibility({modifier:t.accessibility})),t.declare&&this.raise(t.start,Ts.IndexSignatureHasDeclare),t.override&&this.raise(t.start,Ts.IndexSignatureHasOverride),l;if(!this.inAbstractClass&&t.abstract&&this.raise(t.start,Ts.NonAbstractClassHasAbstractMethod),t.override&&(e||this.raise(t.start,Ts.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&&Es(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,Ts.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(Ls(n,!1)|qs.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 Ss,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(Rs(!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,Ts.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,Ts.UnsupportedParameterPropertyKind),e.parameter=l,this.finishNode(e,"TSParameterProperty")}return l}checkLValInnerPattern(e,t=qs.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,Ts.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 Ss){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,Ts.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 Ss,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 Ss;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,Ts.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 Ss,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,As.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?qs.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(e,t?qs.BIND_SIMPLE_CATCH:qs.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,As.DecoratorConstructor)):t.key&&"PrivateIdentifier"===t.key.type&&Ps(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,As.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(Ls(t,i.generator)|qs.SCOPE_SUPER|(n?qs.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,Ts.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?Ts.TypeModifierIsUsedInTypeImports:Ts.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],qs.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===Cs&&this.importsStack.push([]),super.enterScope(e);const t=super.currentScope();t.types=[],t.enums=[],t.constEnums=[],t.classes=[],t.exportOnlyBindings=[]}exitScope(){super.currentScope().flags===Cs&&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&qs.SCOPE_TOP&&this.undefinedExports.delete(t)}declareName(e,t,n){if(t&qs.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&qs.BIND_FLAGS_TS_EXPORT_ONLY)return this.maybeExportDefined(s,e),void s.exportOnlyBindings.push(e);t===qs.BIND_TS_TYPE||t===qs.BIND_TS_INTERFACE?(t===qs.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&qs.BIND_FLAGS_TS_ENUM&&s.enums.push(e),t&qs.BIND_FLAGS_TS_CONST_ENUM&&s.constEnums.push(e),t&qs.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 Bs(e,t,n,s){const r=n?js:dn,{onComment:a,add_comments:i}=Vs(e,t),o=r.prototype.parseStatement;let l;s&&(r.prototype.parseStatement=function(...e){const t=o.call(this,...e);return this.undefinedExports={},t});try{l=r.parse(e,{onComment:a,sourceType:"module",ecmaVersion:16,locations:!0})}finally{s&&(r.prototype.parseStatement=o)}return i(l),l}function Fs(e,t,n,s){const r=n?js:dn,{onComment:a,add_comments:i}=Vs(e,t,s),o=r.parseExpressionAt(e,s,{onComment:a,sourceType:"module",ecmaVersion:16,locations:!0});return i(o),o}function Vs(e,n,s=0){return{onComment:(t,s,r,a,i,o)=>{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,loc:{start:i,end:o}})},add_comments(r){0!==n.length&&(n=n.filter((e=>e.start>=s)).map((({type:e,value:t,start:n,end:s})=>({type:e,value:t,start:n,end:s}))),t(r,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>=r.end||"Program"===r.type)&&(r.trailingComments||=[]).push(...n.splice(0)))}}}class Hs extends Error{message="";#e;constructor(e,t,n){super(t),this.stack="",this.#e=new Ie(e,t,n),Object.assign(this,this.#e),this.name="CompileError"}toString(){return this.#e.toString()}toJSON(){return this.#e.toJSON()}}function Us(e,t,n){const s="number"==typeof e?e:e?.start;throw new Hs(t,n,void 0!==s?[s,("number"==typeof e?e:e?.end)??s]:void 0)}function zs(e,t){Us(e,"options_unrecognised",`Unrecognised compiler option ${t}\nhttps://svelte.dev/e/options_unrecognised`)}function Ws(e,t){Us(e,"constant_assignment",`Cannot assign to ${t}\nhttps://svelte.dev/e/constant_assignment`)}function Gs(e){Us(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 Ks(e){Us(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 Xs(e,t){Us(e,"duplicate_class_field",`\`${t}\` has already been declared\nhttps://svelte.dev/e/duplicate_class_field`)}function Qs(e,t){Us(e,"export_undefined",`\`${t}\` is not defined\nhttps://svelte.dev/e/export_undefined`)}function Ys(e,t){Us(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 Js(e){Us(e,"module_illegal_default_export","A component cannot have a default export\nhttps://svelte.dev/e/module_illegal_default_export")}function Zs(e,t){Us(e,"props_duplicate",`Cannot use \`${t}()\` more than once\nhttps://svelte.dev/e/props_duplicate`)}function er(e){Us(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 tr(e){Us(e,"props_invalid_pattern","`$props()` assignment must not contain nested properties or computed keys\nhttps://svelte.dev/e/props_invalid_pattern")}function nr(e,t){Us(e,"rune_invalid_arguments",`\`${t}\` cannot be called with arguments\nhttps://svelte.dev/e/rune_invalid_arguments`)}function sr(e,t,n){Us(e,"rune_invalid_arguments_length",`\`${t}\` must be called with ${n}\nhttps://svelte.dev/e/rune_invalid_arguments_length`)}function rr(e){Us(e,"rune_invalid_computed_property","Cannot access a computed property of a rune\nhttps://svelte.dev/e/rune_invalid_computed_property")}function ar(e,t){Us(e,"rune_invalid_name",`\`${t}\` is not a valid rune\nhttps://svelte.dev/e/rune_invalid_name`)}function ir(e,t){Us(e,"rune_invalid_spread",`\`${t}\` cannot be called with a spread argument\nhttps://svelte.dev/e/rune_invalid_spread`)}function or(e,t){Us(e,"rune_removed",`The \`${t}\` rune has been removed\nhttps://svelte.dev/e/rune_removed`)}function lr(e,t,n){Us(e,"rune_renamed",`\`${t}\` is now \`${n}\`\nhttps://svelte.dev/e/rune_renamed`)}function cr(e,t){Us(e,"runes_mode_invalid_import",`${t} cannot be used in runes mode\nhttps://svelte.dev/e/runes_mode_invalid_import`)}function pr(e){Us(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")}function ur(e){Us(e,"state_field_invalid_assignment","Cannot assign to a state field before its declaration\nhttps://svelte.dev/e/state_field_invalid_assignment")}function dr(e){Us(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 hr(e,t){Us(e,"state_invalid_placement",`\`${t}(...)\` can only be used as a variable declaration initializer, a class field declaration, or the first assignment to a class field at the top level of the constructor.\nhttps://svelte.dev/e/state_invalid_placement`)}function mr(e){Us(e,"store_invalid_subscription","Cannot reference store value inside `<script module>`\nhttps://svelte.dev/e/store_invalid_subscription")}function fr(e,t){Us(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 yr(e){Us(e,"css_expected_identifier","Expected a valid CSS identifier\nhttps://svelte.dev/e/css_expected_identifier")}function vr(e,t){Us(e,"css_global_block_invalid_combinator",`A \`:global\` selector cannot follow a \`${t}\` combinator\nhttps://svelte.dev/e/css_global_block_invalid_combinator`)}function gr(e){Us(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")}function br(e){Us(e,"css_global_block_invalid_list","A `:global` selector cannot be part of a selector list with entries that don't contain `:global`\nhttps://svelte.dev/e/css_global_block_invalid_list")}function _r(e){Us(e,"css_global_block_invalid_modifier","A `:global` selector cannot modify an existing selector\nhttps://svelte.dev/e/css_global_block_invalid_modifier")}function xr(e){Us(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 wr(e){Us(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 Cr(e){Us(e,"css_global_invalid_selector","`:global(...)` must contain exactly one selector\nhttps://svelte.dev/e/css_global_invalid_selector")}function kr(e){Us(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 Sr(e){Us(e,"css_selector_invalid","Invalid selector\nhttps://svelte.dev/e/css_selector_invalid")}function Pr(e){Us(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 Er(e){Us(e,"animation_duplicate","An element can only have one 'animate' directive\nhttps://svelte.dev/e/animation_duplicate")}function Tr(e){Us(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 Ar(e){Us(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 $r(e){Us(e,"attribute_duplicate","Attributes need to be unique\nhttps://svelte.dev/e/attribute_duplicate")}function Rr(e){Us(e,"attribute_invalid_event_handler","Event attribute must be a JavaScript expression, not a string\nhttps://svelte.dev/e/attribute_invalid_event_handler")}function Ir(e,t){Us(e,"attribute_invalid_name",`'${t}' is not a valid attribute name\nhttps://svelte.dev/e/attribute_invalid_name`)}function Mr(e){Us(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 qr(e){Us(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 Lr(e,t,n){Us(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 Or(e,t){Us(e,"bind_invalid_parens",`\`bind:${t}={get, set}\` must not have surrounding parentheses\nhttps://svelte.dev/e/bind_invalid_parens`)}function Nr(e,t,n){Us(e,"bind_invalid_target",`\`bind:${t}\` can only be used with ${n}\nhttps://svelte.dev/e/bind_invalid_target`)}function Dr(e,t){Us(e,"block_duplicate_clause",`${t} cannot appear more than once within a block\nhttps://svelte.dev/e/block_duplicate_clause`)}function jr(e,t,n){Us(e,"block_invalid_placement",`{#${t} ...} block cannot be ${n}\nhttps://svelte.dev/e/block_invalid_placement`)}function Br(e,t){Us(e,"block_unexpected_character",`Expected a \`${t}\` character immediately following the opening bracket\nhttps://svelte.dev/e/block_unexpected_character`)}function Fr(e){Us(e,"block_unexpected_close","Unexpected block closing tag\nhttps://svelte.dev/e/block_unexpected_close")}function Vr(e){Us(e,"component_invalid_directive","This type of directive is not valid on components\nhttps://svelte.dev/e/component_invalid_directive")}function Hr(e,t){Us(e,"const_tag_invalid_reference",`The \`{@const ${t} = ...}\` declaration is not available in this snippet \nhttps://svelte.dev/e/const_tag_invalid_reference`)}function Ur(e,t){Us(e,"element_invalid_closing_tag",`\`</${t}>\` attempted to close an element that was not open\nhttps://svelte.dev/e/element_invalid_closing_tag`)}function zr(e,t,n){Us(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 Wr(e,t){Us(e,"element_unclosed",`\`<${t}>\` was left open\nhttps://svelte.dev/e/element_unclosed`)}function Gr(e){Us(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 Kr(e,t){Us(e,"event_handler_invalid_modifier",`Valid event modifiers are ${t}\nhttps://svelte.dev/e/event_handler_invalid_modifier`)}function Xr(e,t,n){Us(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 Qr(e){Us(e,"expected_attribute_value","Expected attribute value\nhttps://svelte.dev/e/expected_attribute_value")}function Yr(e){Us(e,"expected_identifier","Expected an identifier\nhttps://svelte.dev/e/expected_identifier")}function Jr(e,t){Us(e,"expected_token",`Expected token ${t}\nhttps://svelte.dev/e/expected_token`)}function Zr(e,t){Us(e,"illegal_element_attribute",`\`<${t}>\` does not support non-event attributes or spread attributes\nhttps://svelte.dev/e/illegal_element_attribute`)}function ea(e,t){Us(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 ta(e){Us(e,"render_tag_invalid_spread_argument","cannot use spread arguments in `{@render ...}` tags\nhttps://svelte.dev/e/render_tag_invalid_spread_argument")}function na(e){Us(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 sa(e,t){Us(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 ra(e){Us(e,"script_invalid_context",'If the context attribute is supplied, its value must be "module"\nhttps://svelte.dev/e/script_invalid_context')}function aa(e){Us(e,"slot_attribute_invalid","slot attribute must be a static value\nhttps://svelte.dev/e/slot_attribute_invalid")}function ia(e){Us(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 oa(e){Us(e,"slot_default_duplicate",'Found default slot content alongside an explicit slot="default"\nhttps://svelte.dev/e/slot_default_duplicate')}function la(e){Us(e,"slot_element_invalid_attribute","`<slot>` can only receive attributes and (optionally) let directives\nhttps://svelte.dev/e/slot_element_invalid_attribute")}function ca(e){Us(e,"slot_element_invalid_name","slot attribute must be a static value\nhttps://svelte.dev/e/slot_element_invalid_name")}function pa(e){Us(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 ua(e){Us(e,"snippet_invalid_rest_parameter","Snippets do not support rest parameters; use an array instead\nhttps://svelte.dev/e/snippet_invalid_rest_parameter")}function da(e){Us(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 ha(e){Us(e,"svelte_boundary_invalid_attribute","Valid attributes on `<svelte:boundary>` are `onerror` and `failed`\nhttps://svelte.dev/e/svelte_boundary_invalid_attribute")}function ma(e){Us(e,"svelte_boundary_invalid_attribute_value","Attribute value must be a non-string expression\nhttps://svelte.dev/e/svelte_boundary_invalid_attribute_value")}function fa(e){Us(e,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value\nhttps://svelte.dev/e/svelte_element_missing_this")}function ya(e){Us(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 va(e){Us(e,"svelte_head_illegal_attribute","`<svelte:head>` cannot have attributes nor directives\nhttps://svelte.dev/e/svelte_head_illegal_attribute")}function ga(e){Us(e,"svelte_options_deprecated_tag",'"tag" option is deprecated — use "customElement" instead\nhttps://svelte.dev/e/svelte_options_deprecated_tag')}function ba(e){Us(e,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes\nhttps://svelte.dev/e/svelte_options_invalid_attribute")}function _a(e,t){Us(e,"svelte_options_invalid_attribute_value",`Value must be ${t}, if specified\nhttps://svelte.dev/e/svelte_options_invalid_attribute_value`)}function xa(e){Us(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 wa(e){Us(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 Ca(e){Us(e,"svelte_options_invalid_customelement_shadow",'"shadow" must be either "open" or "none"\nhttps://svelte.dev/e/svelte_options_invalid_customelement_shadow')}function ka(e){Us(e,"svelte_options_invalid_tagname","Tag name must be lowercase and hyphenated\nhttps://svelte.dev/e/svelte_options_invalid_tagname")}function Sa(e,t){Us(e,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${t}'\nhttps://svelte.dev/e/svelte_options_unknown_attribute`)}function Pa(e,t,n){Us(e,"tag_invalid_placement",`{@${t} ...} tag cannot be ${n}\nhttps://svelte.dev/e/tag_invalid_placement`)}function Ea(e){Us(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 Ta(e){Us(e,"title_illegal_attribute","`<title>` cannot have attributes nor directives\nhttps://svelte.dev/e/title_illegal_attribute")}function Aa(e){Us(e,"title_invalid_content","`<title>` can only contain text and {tags}\nhttps://svelte.dev/e/title_invalid_content")}function $a(e,t,n){Us(e,"transition_conflict",`Cannot use \`${t}:\` alongside existing \`${n}:\` directive\nhttps://svelte.dev/e/transition_conflict`)}function Ra(e,t){Us(e,"transition_duplicate",`Cannot use multiple \`${t}:\` directives on a single element\nhttps://svelte.dev/e/transition_duplicate`)}function Ia(e){Us(e,"unexpected_eof","Unexpected end of input\nhttps://svelte.dev/e/unexpected_eof")}function Ma(e){return e<0?1/0:e}function qa(e,t,n){let s;return s="`"===n?e:e.slice(0,Ma(e.indexOf("\n",t))),Oa(s,t,n)}function La(e,t){return Oa(e,t,"/")}function Oa(e,t,n){let s=t;for(;;){const t=e.indexOf(n,s);if(-1===t)return 1/0;if(Na(e,t-1)%2==0)return t;s=t+1}}function Na(e,t){let n=t,s=0;for(;"\\"===e[n];)s++,n--;return s}const Da={"{":"}","(":")","[":"]"};function ja(e,t,n=Da){const s=Object.values(n),r=[];let a=t;for(;a<e.template.length;){let t=e.template[a++];if("'"!==t&&'"'!==t&&"`"!==t){if(t in n)r.push(t);else if(s.includes(t)){const e=n[r.pop()];if(t!==e&&Jr(a-1,e),0===r.length)return a}}else a=Ba(e,a,t)}Ia(e.template.length)}function Ba(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=ja(e,r))}}Us(t,"unterminated_string_constant","Unterminated string constant\nhttps://svelte.dev/e/unterminated_string_constant")}function Fa(e,t){const n=function(e,t,n){const s=Da[n];let r=1,a=t;for(;r>0&&a<e.length;){const t=e[a];switch(t){case"'":case'"':case"`":a=qa(e,a+1,t)+1;continue;case"/":{const t=e[a+1];if(!t)continue;if("/"===t){a=Ma(e.indexOf("\n",a+1))+1;continue}if("*"===t){a=Ma(e.indexOf("*/",a+1))+2;continue}a=La(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 Va(e,t,n){try{let t=e.root.comments.length;const n=Fs(e.template,e.root.comments,e.ts,e.index);let r=0,a=e.root.comments.length;for(;a-- >t;){const t=e.root.comments[a];if(t.end<n.start){e.index=t.end;break}}for(let t=e.index;t<n.start;t+=1)"("===e.template[t]&&(r+=1);let i=n.end;const o=e.root.comments.at(-1);for(o&&o.end>i&&(i=o.end);r>0;){const t=e.template[i];")"===t?r-=1:s.test(t)||Jr(i,")"),i+=1}return e.index=i,n}catch(s){if(e.loose&&!n){const n=Fa(e,t);if(n)return n}e.acorn_error(s)}}function Ha(e){return e.replace(/(`|\${|\\)/g,"\\$1")}function Ua(e=[]){return{type:"ArrayExpression",elements:e}}function za(e){return{type:"ArrayPattern",elements:e}}function Wa(e,t){return{type:"AssignmentPattern",left:e,right:t}}function Ga(e,t,n=!1){return{type:"ArrowFunctionExpression",params:e,body:t,expression:"BlockStatement"!==t.type,generator:!1,async:n,metadata:null}}function Ka(e,t,n){return{type:"AssignmentExpression",operator:e,left:t,right:n}}function Xa(e){return{type:"AwaitExpression",argument:e}}function Qa(e,t,n){return{type:"BinaryExpression",operator:e,left:t,right:n}}function Ya(e){return{type:"BlockStatement",body:e}}function Ja(e,...t){"string"==typeof e&&(e=ci(e));let n=(t=t.slice()).length,s=!0;for(;n--;)t[n]?s=!1:s?t.pop():t[n]=ti;return{type:"CallExpression",callee:e,arguments:t,optional:!1}}function Za(e,...t){const n=Ja(e,...t);return n.optional=!0,{type:"ChainExpression",expression:n}}function ei(e,t){return{type:"UnaryExpression",argument:t,operator:e,prefix:!0}}const ti=ei("void",di(0));function ni(e,t,n){return{type:"LogicalExpression",operator:e,left:t,right:n}}function si(e,t){return{type:"VariableDeclaration",kind:e,declarations:t}}function ri(e,t){return"string"==typeof e&&(e=ci(e)),{type:"VariableDeclarator",id:e,init:t}}const ai={type:"EmptyStatement"};function ii(e){return{type:"ExportDefaultDeclaration",declaration:e}}function oi(e,t,n,s=!1){return{type:"FunctionDeclaration",id:e,params:t,body:n,generator:!1,async:s,metadata:null}}function li(e,t){return vi("get",zi(e),Bi(null,[],Ya(t)))}function ci(e){return{type:"Identifier",name:e}}function pi(e){return{type:"PrivateIdentifier",name:e}}function ui(e,t){return vi("init",zi(e),t)}function di(e){return{type:"Literal",value:e}}function hi(e,t,n=!1,s=!1){return"string"==typeof t&&(t=ci(t)),{type:"MemberExpression",object:e,property:t,computed:n,optional:s}}function mi(e){const t=e.split(".");let n=ci(t[0]);for(let e=1;e<t.length;e+=1)n=hi(n,ci(t[e]));return n}function fi(e){return{type:"ObjectExpression",properties:e}}function yi(e){return{type:"ObjectPattern",properties:e}}function vi(e,t,n,s=!1){return{type:"Property",kind:e,key:t,value:n,method:!1,shorthand:!1,computed:s}}function gi(e,t,n=!1,s=!1){return{type:"PropertyDefinition",key:e,value:t,computed:n,static:s}}function bi(e,t=!1){return{type:"TemplateElement",value:{raw:Ha(e),cooked:e},tail:t}}function _i(e){return{type:"RestElement",argument:e}}function xi(e){return{type:"SequenceExpression",expressions:e}}function wi(e,t){return vi("set",zi(e),Bi(null,[ci("$$value")],Ya(t)))}function Ci(e){return{type:"SpreadElement",argument:e}}function ki(e){return{type:"ExpressionStatement",expression:e}}function Si(e,t){return{type:"TemplateLiteral",quasis:e,expressions:t}}function Pi(e,t=!1){return Ei(Ga([],e,t))}function Ei(e){if(e.async&&"AwaitExpression"===e.body.type){let n=!1;if(t(e.body.argument,null,{AwaitExpression(e,t){n=!0,t.stop()}}),!n)return Ei(Ga(e.params,e.body.argument))}return!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 Ti(e,...t){return"string"==typeof e&&(e=ci(e)),{callee:e,arguments:t,type:"NewExpression"}}function Ai(e,t,n=!1){return{type:"UpdateExpression",operator:e,argument:t,prefix:n}}function $i(e,t){return{type:"DoWhileStatement",test:e,body:t}}const Ri=di(!0),Ii=di(!1),Mi=di(null),qi={type:"DebuggerStatement"},Li={type:"ThisExpression"};function Oi(e,t){return si("let",[ri(e,t)])}function Ni(e,t){return si("const",[ri(e,t)])}function Di(e,t){return si("var",[ri(e,t)])}function ji(e,t,n,s,r=!1,a=!1){return{type:"MethodDefinition",key:t,kind:e,value:Bi(null,n,Ya(s)),computed:r,static:a}}function Bi(e,t,n,s=!1){return{type:"FunctionExpression",id:e,params:t,body:n,generator:!1,async:s,metadata:null}}function Fi(e,t,n){return{type:"IfStatement",test:e,consequent:t,alternate:n}}function Vi(e,t){return{type:"ImportDeclaration",source:di(t),specifiers:[(n=e,{type:"ImportNamespaceSpecifier",local:ci(n)})]};var n}function Hi(e,t){return{type:"ImportDeclaration",source:di(t),specifiers:e.map((e=>({type:"ImportSpecifier",imported:ci(e[0]),local:ci(e[1])})))}}function Ui(e=null){return{type:"ReturnStatement",argument:e}}function zi(e){return m.test(e)?ci(e):di(e)}function Wi(e){for(;"MemberExpression"===e.type;)e=e.object;return"Identifier"!==e.type?null:e}function Gi(e){return Array.isArray(e.value)&&1===e.value.length&&"Text"===e.value[0].type}function Ki(e){return!0!==e.value&&!Array.isArray(e.value)||Array.isArray(e.value)&&1===e.value.length&&"ExpressionTag"===e.value[0].type}function Xi(e){return Array.isArray(e.value)?e.value[0].expression:e.value.expression}function Qi(e){return Array.isArray(e)?e:"boolean"==typeof e?[]:[e]}function Yi(e){return Ki(e)&&e.name.startsWith("on")}function Ji(e,t=[]){switch(e.type){case"Identifier":case"MemberExpression":t.push(e);break;case"ObjectPattern":for(const n of e.properties)"RestElement"===n.type?Ji(n.argument,t):Ji(n.value,t);break;case"ArrayPattern":for(const n of e.elements)n&&Ji(n,t);break;case"RestElement":Ji(e.argument,t);break;case"AssignmentPattern":Ji(e.left,t)}return t}function Zi(e){return Ji(e,[]).filter((e=>"Identifier"===e.type))}function eo(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 to(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"ObjectExpression":for(const n of e.properties)"Property"===n.type?to(n.value,t):to(n.argument,t);break;case"ArrayExpression":for(const n of e.elements)n&&to(n,t)}return t}function no(e,t){const n=[],s=[];return so(s,n,e,t,t,!1),{inserts:n,paths:s}}function so(e,t,n,s,r,a){switch(n.type){case"Identifier":case"MemberExpression":e.push({node:n,is_rest:!1,has_default_value:a,expression:s,update_expression:r});break;case"ObjectPattern":for(const r of n.properties)if("RestElement"===r.type){const i=[];for(const e of n.properties)"Property"===e.type&&"PrivateIdentifier"!==e.key.type&&("Identifier"!==e.key.type||e.computed?"Literal"===e.key.type?i.push(di(String(e.key.value))):i.push(Ja("String",e.key)):i.push(di(e.key.name)));const o=Ja("$.exclude_from_object",s,Ua(i));"Identifier"===r.argument.type?e.push({node:r.argument,is_rest:!0,has_default_value:a,expression:o,update_expression:o}):so(e,t,r.argument,o,o,a)}else{const n=hi(s,r.key,r.computed||"Identifier"!==r.key.type);so(e,t,r.value,n,n,a)}break;case"ArrayPattern":{const r=ci("#"),i=Ja("$.to_array",s,"RestElement"===n.elements.at(-1)?.type?void 0:di(n.elements.length));t.push({id:r,value:i});for(let s=0;s<n.elements.length;s+=1){const i=n.elements[s];if(i)if("RestElement"===i.type){const n=Ja(hi(r,"slice"),di(s));"Identifier"===i.argument.type?e.push({node:i.argument,is_rest:!0,has_default_value:a,expression:n,update_expression:n}):so(e,t,i.argument,n,n,a)}else{const n=hi(r,di(s),!0);so(e,t,i,n,n,a)}}break}case"AssignmentPattern":{const a=lo(s,n.right);"Identifier"===n.left.type?e.push({node:n.left,is_rest:!1,has_default_value:!0,expression:a,update_expression:r}):so(e,t,n.left,a,r,!0);break}}return e}function ro(e,t){let n=e.at(t);return"TSNonNullExpression"===n.type||"TSAsExpression"===n.type?e.at(t<0?t-1:t+1):n}function ao(e){return"Literal"===e.type||"Identifier"===e.type||"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||("ConditionalExpression"===e.type?ao(e.test)&&ao(e.consequent)&&ao(e.alternate):("BinaryExpression"===e.type||"LogicalExpression"===e.type)&&("PrivateIdentifier"!==e.left.type&&ao(e.left)&&ao(e.right)))}function io(e){return"ChainExpression"===e.type?e.expression:e}function oo(e){switch(e.type){case"AwaitExpression":return!0;case"ArrayPattern":return e.elements.some((e=>e&&oo(e)));case"ArrayExpression":return e.elements.some((e=>!!e&&("SpreadElement"===e.type?oo(e.argument):oo(e))));case"AssignmentPattern":case"AssignmentExpression":case"BinaryExpression":case"LogicalExpression":return"PrivateIdentifier"!==e.left.type&&oo(e.left)||oo(e.right);case"CallExpression":case"NewExpression":return"Super"!==e.callee.type&&oo(e.callee)||e.arguments.some((e=>"SpreadElement"===e.type?oo(e.argument):oo(e)));case"ChainExpression":return oo(e.expression);case"ConditionalExpression":return oo(e.test)||oo(e.alternate)||oo(e.consequent);case"ImportExpression":return oo(e.source);case"MemberExpression":return"Super"!==e.object.type&&oo(e.object)||"PrivateIdentifier"!==e.property.type&&oo(e.property);case"ObjectPattern":case"ObjectExpression":return e.properties.some((e=>"SpreadElement"===e.type?oo(e.argument):"Property"===e.type?"PrivateIdentifier"!==e.key.type&&oo(e.key)||oo(e.value):void 0));case"RestElement":case"UnaryExpression":case"UpdateExpression":return oo(e.argument);case"SequenceExpression":case"TemplateLiteral":return e.expressions.some((e=>oo(e)));case"TaggedTemplateExpression":return oo(e.tag)||oo(e.quasi);case"YieldExpression":return!!e.argument&&oo(e.argument);default:return!1}}function lo(e,t){return ao(t)?Ja("$.fallback",e,t):"AwaitExpression"===t.type&&ao(t.argument)?Xa(Ja("$.fallback",e,t.argument)):oo(t)?Xa(Ja("$.fallback",e,Pi(t,!0),Ri)):Ja("$.fallback",e,Pi(t),Ri)}function co(e,t,n){return"="===e?n:["||=","&&=","??="].includes(e)?ni(e.slice(0,-1),t,n):Qa(e.slice(0,-1),t,n)}const po=/<\/script\s*>/,uo=/^<\/script\s*>/,ho=["server","client","worker","test","default"],mo=["context","generics","lang","module"];const fo=/^[~^$*|]?=/,yo=/[\s\]]/,vo=/^[a-zA-Z]+/,go=/^(\+|~|>|\|\|)/,bo=/^\d+(\.\d+)?%/,_o=/^(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/,xo=/[\s:]/,wo=/-?\d/,Co=/[a-zA-Z0-9_-]/,ko=/^\\[0-9a-fA-F]{1,6}(\r\n|\s)?/,So=/\*\//,Po=/-->/;function Eo(e,t,n){const s=e.index,r=function(e,t){const n=[];for(;e.index<e.template.length;){if(Do(e),e.match(t))return n;e.match("@")?n.push(To(e)):n.push(Ao(e))}Jr(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 To(e){const t=e.index;e.eat("@",!0);const n=No(e),s=Lo(e);let r=null;return e.match("{")?r=Mo(e):e.eat(";",!0),{type:"Atrule",start:t,end:e.index,name:n,prelude:s,block:r}}function Ao(e){const t=e.index;return{type:"Rule",prelude:$o(e),block:Mo(e),start:t,end:e.index,metadata:{parent_rule:null,has_local_selectors:!1,has_global_selectors:!1,is_global_block:!1}}}function $o(e,t=!1){const n=[];Do(e);const s=e.index;for(;e.index<e.template.length;){n.push(Ro(e,t));const r=e.index;if(Do(e),t?e.match(")"):e.match("{"))return{type:"SelectorList",start:s,end:r,children:n};e.eat(",",!0),Do(e)}Ia(e.template.length)}function Ro(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=No(e)),a.selectors.push({type:"TypeSelector",name:t,start:i,end:e.index})}else if(e.eat("#"))a.selectors.push({type:"IdSelector",name:No(e),start:i,end:e.index});else if(e.eat("."))a.selectors.push({type:"ClassSelector",name:No(e),start:i,end:e.index});else if(e.eat("::"))a.selectors.push({type:"PseudoElementSelector",name:No(e),start:i,end:e.index}),e.eat("(")&&($o(e,!0),e.eat(")",!0));else if(e.eat(":")){const t=No(e);let n=null;e.eat("(")&&(n=$o(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=No(e);e.allow_whitespace();let n=null;const s=e.read(fo);s&&(e.allow_whitespace(),n=Oo(e)),e.allow_whitespace();const r=e.read(vo);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(_o))a.selectors.push({type:"Nth",value:e.read(_o),start:i,end:e.index});else if(e.match_regex(bo))a.selectors.push({type:"Percentage",value:e.read(bo),start:i,end:e.index});else if(!e.match_regex(go)){let t=No(e);e.eat("|")&&(t=No(e)),a.selectors.push({type:"TypeSelector",name:t,start:i,end:e.index})}const o=e.index;if(Do(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,is_global:!1,used:!1}};e.index=o;const l=Io(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("{")))&&Sr(e.index))}Ia(e.template.length)}function Io(e){const t=e.index;e.allow_whitespace();const n=e.index,s=e.read(go);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 Mo(e){const t=e.index;e.eat("{",!0);const n=[];for(;e.index<e.template.length&&(Do(e),!e.match("}"));)n.push(qo(e));return e.eat("}",!0),{type:"Block",start:t,end:e.index,children:n}}function qo(e){if(e.match("@"))return To(e);const t=e.index;Lo(e);const n=e.template[e.index];return e.index=t,"{"===n?Ao(e):function(e){const t=e.index,n=e.read_until(xo);e.allow_whitespace(),e.eat(":");let s=e.index;e.allow_whitespace();const r=Lo(e);r||n.startsWith("--")||Us({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 Lo(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++}Ia(e.template.length)}function Oo(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:yo.test(r))return s&&e.eat(s,!0),t.trim();t+=r}e.index++}Ia(e.template.length)}function No(e){const t=e.index;let n="";for(e.match_regex(wo)&&yr(t);e.index<e.template.length;){const t=e.template[e.index];if("\\"===t){const t=e.match_regex(ko);t?(n+=String.fromCodePoint(parseInt(t.slice(1),16)),e.index+=t.length):(n+="\\"+e.template[e.index+1],e.index+=2)}else{if(!(t.codePointAt(0)>=160||Co.test(t)))break;n+=t,e.index++}}return""===n&&yr(t),n}function Do(e){for(e.allow_whitespace();e.match("/*")||e.match("\x3c!--");)e.eat("/*")&&(e.read_until(So),e.eat("*/",!0)),e.eat("\x3c!--")&&(e.read_until(Po),e.eat("--\x3e",!0)),e.allow_whitespace()}var jo={"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 Bo=[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 Fo(e){const t=Object.keys(jo).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 Vo=Fo(!1),Ho=Fo(!0);function Uo(e,t){const n=t?Ho:Vo;return e.replace(n,((e,t)=>{let n;return n="#"!==t[0]?jo[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 Bo[e-128];if(e<55296)return e;if(e<=57343)return zo;if(e<=65535)return e;if(e>=65536&&e<=131071)return e;if(e>=131072&&e<=196607)return e;if(e>=917504&&e<=917631||e>=917760&&e<=917999)return e;return zo}(n)):e}))}const zo=0;function Wo(e=!1){return{type:"Fragment",nodes:[],metadata:{transparent:e,dynamic:!1,has_await:!1}}}const Go=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function Ko(e){return Go.includes(e.type)}function Xo(e){return["Component","SvelteComponent","SvelteSelf"].includes(e.type)}function Qo(e){return"RegularElement"===e.type&&(e.name.includes("-")||e.attributes.some((e=>"Attribute"===e.type&&"is"===e.name)))}function Yo(e,t,n,s){return{type:"Attribute",start:t,end:n,name:e,value:s,metadata:{delegated:null,needs_clsx:!1}}}function Jo(){return{dependencies:new Set,references:new Set,has_state:!1,has_call:!1,has_member_expression:!1,has_assignment:!1,has_await:!1}}function Zo(e){return"Literal"===e.type?String(e.value):"PrivateIdentifier"===e.type?"#"+e.name:"Identifier"===e.type?e.name:null}const el={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 tl={...el,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 nl(e,t,n,s){if(e.includes("-"))return null;const r=t[t.length-1],a=tl[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 sl(e,t,n,s){if(e.includes("-")||t?.includes("-"))return null;if("template"===t)return null;const r=tl[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 rl(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 al=/^(\/>|[\s"'=<>`])/,il=/^<\/textarea(\s[^>]*)?>/i,ol=/-->/,ll=/(\s|\/|>)/,cl=/[\s=/>"']/,pl=/^["']/,ul=/^(?:"([^"]*)"|'([^'])*'|([^>\s]+))/,dl=/^(?:![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])$/,hl=/^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u,ml=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),fl=new Map([...ml,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function yl(e){const t=e.index++;let n=e.current();if(e.eat("!--")){const n=e.read_until(ol);return e.eat("--\x3e",!0),void e.append({type:"Comment",start:t,end:e.index,data:n})}const s=e.eat("/"),r=e.read_until(ll);if(s){for(e.allow_whitespace(),e.eat(">",!0),z(r)&&Us(t,"void_element_invalid_content","Void elements cannot have children or closing tags\nhttps://svelte.dev/e/void_element_invalid_content");n.name!==r;){if(e.loose&&Ko(n)){const t=n.attributes.at(-1);if("Attribute"===t?.type&&t.name===`<${r}`){e.index=t.start,n.attributes.pop();break}}if("RegularElement"===n.type){if(!e.last_auto_closed_tag||e.last_auto_closed_tag.tag!==r){const e=n.fragment.nodes[0]?.start??t;mt({start:n.start,end:e},`</${r}>`,`</${n.name}>`)}}else e.loose||(e.last_auto_closed_tag&&e.last_auto_closed_tag.tag===r?zr(t,r,e.last_auto_closed_tag.reason):Ur(t,r));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(r.startsWith("svelte:")&&!fl.has(r)){!function(e,t){Us(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+r.length},rl(Array.from(fl.keys())))}if(!(dl.test(r)||hl.test(r)||e.loose&&r.endsWith("."))){!function(e){Us(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+r.length})}ml.has(r)&&(r in e.meta_tags&&function(e,t){Us(e,"svelte_meta_duplicate",`A component can only have one \`<${t}>\` element\nhttps://svelte.dev/e/svelte_meta_duplicate`)}(t,r),"Root"!==n.type&&function(e,t){Us(e,"svelte_meta_invalid_placement",`\`<${t}>\` tags cannot be inside elements or blocks\nhttps://svelte.dev/e/svelte_meta_invalid_placement`)}(t,r),e.meta_tags[r]=!0);const a=fl.has(r)?fl.get(r):hl.test(r)||e.loose&&r.endsWith(".")?"Component":"title"===r&&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"!==r||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",i="RegularElement"===a?{type:a,start:t,end:-1,name:r,attributes:[],fragment:Wo(!0),metadata:{svg:!1,mathml:!1,scoped:!1,has_spread:!1,path:[]}}:{type:a,start:t,end:-1,name:r,attributes:[],fragment:Wo(!0),metadata:{}};if(e.allow_whitespace(),"RegularElement"===n.type&&function(e,t){const n=el[e];return!(!n||t&&!("direct"in n?n.direct:n.descendant).includes(t))}(n.name,r)){const s=n.fragment.nodes[0]?.start??t;mt({start:n.start,end:s},`<${r}>`,`</${n.name}>`),n.end=t,e.pop(),e.last_auto_closed_tag={tag:n.name,reason:r,depth:e.stack.length}}const o=[],l=e.current(),c=("script"===r||"style"===r)&&"Root"===l.type,p=c?vl:gl;let u;for(;u=p(e);){if("Attribute"===u.type||"BindDirective"===u.type||"StyleDirective"===u.type||"ClassDirective"===u.type){const e="BindDirective"===u.type?"Attribute":u.type;o.includes(e+u.name)?$r(u):"this"!==u.name&&o.push(e+u.name)}i.attributes.push(u),e.allow_whitespace()}if("SvelteComponent"===i.type){const e=i.attributes.findIndex((e=>"Attribute"===e.type&&"this"===e.name));-1===e&&function(e){Us(e,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute\nhttps://svelte.dev/e/svelte_component_missing_this")}(t);const n=i.attributes.splice(e,1)[0];Ki(n)||function(e){Us(e,"svelte_component_invalid_this","Invalid component definition — must be an `{expression}`\nhttps://svelte.dev/e/svelte_component_invalid_this")}(n.start),i.expression=Xi(n)}if("SvelteElement"===i.type){const e=i.attributes.findIndex((e=>"Attribute"===e.type&&"this"===e.name));-1===e&&fa(t);const n=i.attributes.splice(e,1)[0];if(!0===n.value&&fa(n),Ki(n))i.tag=Xi(n);else{!function(e){qe(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];i.tag="Text"===e.type?{type:"Literal",value:e.data,raw:`'${e.raw}'`,start:e.start,end:e.end}:e.expression}i.metadata.expression=Jo()}if(c){e.eat(">",!0);let n=null;for(let e=l.fragment.nodes.length-1;e>=0;e--){const s=l.fragment.nodes[e];if(e===l.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"===r){const s=function(e,t,n){const s=e.index,r=e.read_until(po);e.index>=e.template.length&&Wr(e.template.length,"script");const a=e.template.slice(0,s).replace(h," ")+r;let i;e.read(uo);try{i=Bs(a,e.root.comments,e.ts,!0)}catch(t){e.acorn_error(t)}i.start=s;let o="default";for(const e of n)ho.includes(e.name)&&(l=e,c=e.name,Us(l,"script_reserved_attribute",`The \`${c}\` attribute is reserved and cannot be used\nhttps://svelte.dev/e/script_reserved_attribute`)),mo.includes(e.name)||yt(e),"module"===e.name&&(!0!==e.value&&sa(e,e.name),o="module"),"context"===e.name&&(!0!==e.value&&Gi(e)||ra(e),"module"!==e.value[0].data&&ra(e),o="module");var l,c;return{type:"Script",start:t,end:e.index,context:o,content:i,attributes:n}}(e,t,i.attributes);n&&(s.content.leadingComments=[{type:"Line",value:n.data}]),"module"===s.context?(l.module&&na(t),l.module=s):(l.instance&&na(t),l.instance=s)}else{const s=Eo(e,t,i.attributes);s.content.comment=n,l.css&&function(e){Us(e,"style_duplicate","A component can have a single top-level `<style>` element\nhttps://svelte.dev/e/style_duplicate")}(t),l.css=s}return}e.append(i);const d=e.eat("/")||z(r),m=e.eat(">",!0,!1);if(!m){const t=i.attributes.at(-1);if("Attribute"===t?.type&&"<"===t.name)e.index=t.start,i.attributes.pop();else{const t=e.template[e.index-1],n=e.template[e.index-2],s=e.template[e.index];"{"===n&&"/"===t?e.index-=2:"{"!==t||"#"!==s&&"@"!==s&&":"!==s?e.allow_whitespace():e.index-=1}}if(d||!m)i.end=e.index;else if("textarea"===r)i.fragment.nodes=bl(e,(()=>il.test(e.template.slice(e.index))),"inside <textarea>"),e.read(il),i.end=e.index;else if("script"===r||"style"===r){const t=e.index,n=e.read_until(new RegExp(`</${r}>`)),s={start:t,end:e.index,type:"Text",data:n,raw:n};i.fragment.nodes.push(s),e.eat(`</${r}>`,!0),i.end=e.index}else e.stack.push(i),e.fragments.push(i.fragment)}function vl(e){const t=e.index,n=e.read_until(cl);if(!n)return null;let s=!0;if(e.eat("=")){e.allow_whitespace();let t=e.match_regex(ul);t||Qr(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:Uo(t,!0)}]}return e.match_regex(pl)&&Jr(e.index,"="),Yo(n,t,e.index,s)}function gl(e){const t=e.index;if(e.eat("{")){if(e.allow_whitespace(),e.eat("@attach")){e.require_whitespace();const n=Va(e);e.allow_whitespace(),e.eat("}",!0);return{type:"AttachTag",start:t,end:e.index,expression:n,metadata:{expression:Jo()}}}if(e.eat("...")){const n=Va(e);e.allow_whitespace(),e.eat("}",!0);return{type:"SpreadAttribute",start:t,end:e.index,expression:n,metadata:{expression:Jo()}}}{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="":Us(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:Jo()}};return Yo(s,t,e.index,r)}}const n=e.read_until(cl);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=bl(e,(()=>t?e.match(t):!!e.match_regex(al)),"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,Jr(s,t||"}"))}throw n}0!==n.length||t||Qr(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(pl)&&Jr(e.index,"=");if(a){const[e,...o]=n.slice(r+1).split("|");if(""===e&&function(e,t){Us(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:Jo()}};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){Us(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:Jo()}};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 Yo(n,t,s,i)}function bl(e,t,n){let s={start:e.index,end:-1,type:"Text",raw:"",data:""};const r=[];function a(e){s.raw&&(s.data=Uo(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("#");jr(t,e.read_until(/[^a-z]/),n)}else if(e.match("@")){const t=e.index-1;e.eat("@");Pa(t,e.read_until(/[^a-z]/),n)}a(e.index-1),e.allow_whitespace();const t=Va(e);e.allow_whitespace(),e.eat("}",!0);const o={type:"ExpressionTag",start:i,end:e.index,expression:t,metadata:{expression:Jo()}};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;Ia(e.template.length)}function _l(e){const t=e.index;let n=e.index;const s=e.read_identifier();if(null!==s){const n=xl(e);return{type:"Identifier",name:s,start:t,loc:{start:we(t),end:we(e.index)},end:e.index,typeAnnotation:n}}const r=e.template[n];"{"!==r&&"["!==r&&Us(n,"expected_pattern","Expected identifier or destructure pattern\nhttps://svelte.dev/e/expected_pattern"),n=ja(e,t),e.index=n;const a=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 r=Fs(`${n}(${a} = 1)`,e.root.comments,e.ts,t-1).left;return r.typeAnnotation=xl(e),r.typeAnnotation&&(r.end=r.typeAnnotation.end),r}catch(t){e.acorn_error(t)}}function xl(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=Fs(r,e.root.comments,e.ts,s);if("AssignmentExpression"===a.type){let t=a.right.start;for(;"="!==r[t];)t-=1;a=Fs(r.slice(0,t),e.root.comments,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 wl=/^\s*}/,Cl={"<":">"};function kl(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:Va(e),consequent:Wo(),alternate:null,metadata:{expression:Jo()}});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=Va(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=Fa(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=_l(e)):e.index=r.end,e.allow_whitespace(),e.eat(",")&&(e.allow_whitespace(),i=e.read_identifier(),i||Yr(e.index),e.allow_whitespace()),e.eat("(")&&(e.allow_whitespace(),o=Va(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=_l(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:Wo(),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=Va(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,metadata:{expression:Jo()}});e.eat("then")?(e.match_regex(wl)||(e.require_whitespace(),s.value=_l(e)),e.allow_whitespace(),s.then=Wo(),e.fragments.push(s.then)):e.eat("catch")?(e.match_regex(wl)||(e.require_whitespace(),s.error=_l(e)),e.allow_whitespace(),s.catch=Wo(),e.fragments.push(s.catch)):(s.pending=Wo(),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=_l(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=_l(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=Va(e);e.allow_whitespace(),e.eat("}",!0);const s=e.append({type:"KeyBlock",start:n,end:-1,expression:t,fragment:Wo(),metadata:{expression:Jo()}});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="":Yr(e.index)),e.allow_whitespace();const a=e.index;let i;if(e.ts&&e.match("<")){const t=e.index,n=ja(e,t,Cl);i=e.template.slice(t+1,n-1),e.index=n}e.allow_whitespace();const o=e.eat("(",!0,!1);if(o){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 l=e.template.slice(0,a).replace(/\S/g," "),c=e.template.slice(a,e.index);let p=o?Fs(l+`${c} => {}`,e.root.comments,e.ts,a):{params:[]};e.allow_whitespace(),e.eat("}",!0);const u=e.append({type:"SnippetBlock",start:n,end:-1,expression:{type:"Identifier",start:t,end:r,name:s},typeParams:i,parameters:p.params,body:Wo(),metadata:{can_hoist:!1,sites:new Set}});return e.stack.push(u),void e.fragments.push(u.body)}s=e.index,Us(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")||Jr(t,"{:else} or {:else if}"),e.eat("if")&&Us(t,"block_invalid_elseif","'elseif' should be 'else if'\nhttps://svelte.dev/e/block_invalid_elseif"),e.allow_whitespace(),e.fragments.pop(),n.alternate=Wo(),e.fragments.push(n.alternate),e.eat("if")){e.require_whitespace();const n=Va(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:Wo(),alternate:null,metadata:{expression:Jo()}});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")||Jr(t,"{:else}"),e.allow_whitespace(),e.eat("}",!0),n.fallback=Wo(),e.fragments.pop(),void e.fragments.push(n.fallback);if("AwaitBlock"===n.type){if(e.eat("then"))return n.then&&Dr(t,"{:then}"),e.eat("}")||(e.require_whitespace(),n.value=_l(e),e.allow_whitespace(),e.eat("}",!0)),n.then=Wo(),e.fragments.pop(),void e.fragments.push(n.then);if(e.eat("catch"))return n.catch&&Dr(t,"{:catch}"),e.eat("}")||(e.require_whitespace(),n.error=_l(e),e.allow_whitespace(),e.eat("}",!0)),n.catch=Wo(),e.fragments.pop(),void e.fragments.push(n.catch);Jr(t,"{:then ...} or {:catch ...}")}!function(e){Us(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=Va(e);return e.allow_whitespace(),e.eat("}",!0),void e.append({type:"HtmlTag",start:t,end:e.index,expression:n,metadata:{expression:Jo()}})}if(e.eat("debug")){let n;if(e.read(wl))n=[];else{const t=Va(e);n="SequenceExpression"===t.type?t.expressions:[t],n.forEach((e=>{"Identifier"!==e.type&&function(e){Us(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=_l(e);e.allow_whitespace(),e.eat("=",!0),e.allow_whitespace();const s=e.index,r=Va(e);"SequenceExpression"!==r.type||e.template.substring(s,r.start).includes("(")||Us(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},metadata:{expression:Jo()}})}if(e.eat("render")){e.require_whitespace();const n=Va(e);"CallExpression"===n.type||"ChainExpression"===n.type&&"CallExpression"===n.expression.type||function(e){Us(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:{expression:Jo(),dynamic:!1,arguments:[],path:[],snippets:new Set}})}}(e);if(e.match("/")&&!e.match("/*")&&!e.match("//"))return e.eat("/"),Sl(e);const s=Va(e);e.allow_whitespace(),e.eat("}",!0),e.append({type:"ExpressionTag",start:n,end:e.index,expression:s,metadata:{expression:Jo()}})}function Sl(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 Sl(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:Fr(t);break;default:Fr(t)}if(!n)return s.end=t-1,e.pop(),void Sl(e);e.allow_whitespace(),e.eat("}",!0),s.end=e.index,e.pop()}function Pl(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:Uo(n,!1)})}function El(e){return e.match("<")?yl:e.match("{")?kl:Pl}function Tl(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 Al(e){const t=Tl(e);return"boolean"!=typeof t&&_a(e,"true or false"),t}const $l="[a-z0-9_.·À-ÖØ-öø-ͽͿ--‿-⁀⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀--]",Rl=new RegExp(`^[a-z]${$l}*-${$l}*$`,"u"),Il=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function Ml(e,t){"string"!=typeof t&&ka(e),t&&(Rl.test(t)?Il.includes(t)&&Us(e,"svelte_options_reserved_tagname","Tag name is reserved\nhttps://svelte.dev/e/svelte_options_reserved_tagname"):ka(e))}function ql(e){const{nodes:t}=e.fragment;if(t.length>0){const n=t[0],s=t[t.length-1];!function(e,t){Us(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 Ll=/ \(\d+:\d+\)$/,Ol=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g;class Nl{template;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=e.trimEnd();do{n=Ol.exec(e)}while(n&&"s"!==n[0][1]);Ol.lastIndex=0,this.ts="ts"===n?.[2],this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:Wo(),options:null,comments:[],metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let r=El;for(;this.index<this.template.length;)r=r(this)||El;if(this.stack.length>1){const e=this.current();this.loose?e.end=this.template.length:"RegularElement"===e.type?(e.end=e.start+1,Wr(e,e.name)):(e.end=e.start+1,Us(e,"block_unclosed","Block was left open\nhttps://svelte.dev/e/block_unclosed"))}if(r!==El&&Ia(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&&ba(n);const{name:e}=n;switch(e){case"runes":t.runes=Al(n);break;case"tag":ga(n);break;case"customElement":{const e={},{value:s}=n,r=!0===s||Array.isArray(s)?s:[s];if(!0===r)xa(n);else{if("Text"===r[0].type){const s=Tl(n);Ml(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;xa(n)}}const a=[];for(const e of r[0].expression.properties)("Property"!==e.type||e.computed||"Identifier"!==e.key.type)&&xa(n),a.push([e.key.name,e.value]);const i=a.find((([e])=>"tag"===e));if(i){const t=i[1]?.value;Ml(i,t),e.tag=t}const o=a.find((([e])=>"props"===e))?.[1];if(o){"ObjectExpression"!==o.type&&wa(n),e.props={};for(const t of o.properties){("Property"!==t.type||t.computed||"Identifier"!==t.key.type||"ObjectExpression"!==t.value.type)&&wa(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)&&wa(n),"type"===s.key.name?(-1===["String","Number","Boolean","Array","Object"].indexOf(s.value.value)&&wa(n),e.props[t.key.name].type=s.value.value):"reflect"===s.key.name?("boolean"!=typeof s.value.value&&wa(n),e.props[t.key.name].reflect=s.value.value):"attribute"===s.key.name?("string"!=typeof s.value.value&&wa(n),e.props[t.key.name].attribute=s.value.value):wa(n)}}const l=a.find((([e])=>"shadow"===e))?.[1];if(l){const t=l?.value;"open"!==t&&"none"!==t&&Ca(l),e.shadow=t}const c=a.find((([e])=>"extend"===e))?.[1];c&&(e.extend=c),t.customElement=e;break}case"namespace":{const e=Tl(n);e===I?t.namespace="svg":e===M?t.namespace="mathml":"html"===e||"mathml"===e||"svg"===e?t.namespace=e:_a(n,'"html", "mathml" or "svg"');break}case"css":{const e=Tl(n);"injected"===e?t.css=e:_a(n,'"injected"');break}case"immutable":t.immutable=Al(n);break;case"preserveWhitespace":t.preserveWhitespace=Al(n);break;case"accessors":t.accessors=Al(n);break;default:Sa(n,e)}}return t}(e),ql(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(Ll,""),Us(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||Jr(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(!Mt(s,!0))return null;for(n+=s<=65535?1:2;n<this.template.length;){const e=this.template.codePointAt(n);if(!qt(e,!0))break;n+=e<=65535?1:2}const r=this.template.slice(this.index,this.index=n);return!e&&G(r)&&Us(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"";Ia(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])||Us(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 Dl(e,t=!1){Ce(e);return new Nl(e,t).root}function jl(e,t){return"Identifier"===e.params[0]?.type&&"this"===e.params[0].name&&e.params.shift(),t.next()}const Bl={_(e,t){const n=t.next()??e;delete n.typeAnnotation,delete n.typeParameters,delete n.typeArguments,delete n.returnType,delete n.accessibility},Decorator(e){fr(e,"decorators (related TSC proposal is not stage 4 yet)")},ImportDeclaration(e){if("type"===e.importKind)return ai;if(e.specifiers?.length>0){const t=e.specifiers.filter((e=>"type"!==e.importKind));return 0===t.length?ai:{...e,specifiers:t}}return e},ExportNamedDeclaration(e,t){if("type"===e.exportKind)return ai;if(e.declaration){const e=t.next();return"EmptyStatement"===e?.declaration?.type?ai:e}if(e.specifiers){const t=e.specifiers.filter((e=>"type"!==e.exportKind));return 0===t.length?ai:{...e,specifiers:t}}return e},ExportDefaultDeclaration:e=>"type"===e.exportKind?ai:e,ExportAllDeclaration:e=>"type"===e.exportKind?ai:e,PropertyDefinition:(e,{next:t})=>(e.accessor&&fr(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:()=>ai,TSTypeAliasDeclaration:()=>ai,TSTypeAssertion:(e,t)=>t.visit(e.expression),TSEnumDeclaration(e){fr(e,"enums")},TSParameterProperty:(e,t)=>((e.readonly||e.accessibility)&&"constructor"===t.path.at(-2)?.kind&&fr(e,"accessibility modifiers on constructor parameters"),t.visit(e.parameter)),TSInstantiationExpression:(e,t)=>t.visit(e.expression),FunctionExpression:jl,FunctionDeclaration:jl,TSDeclareFunction:()=>ai,ClassBody(e,t){const n=[];for(const s of e.body){const e=t.visit(s);"PropertyDefinition"===e.type&&e.declare||n.push(e)}return{...e,body:n}},ClassDeclaration:(e,t)=>e.declare?ai:(delete e.implements,t.next()),MethodDefinition:(e,t)=>e.abstract?ai:t.next(),VariableDeclaration:(e,t)=>e.declare?ai:t.next(),TSModuleDeclaration(e,t){if(!e.body)return ai;return e.body.body.map((e=>t.visit(e))).some((e=>e!==ai))&&fr(e,"namespaces with non-type nodes"),ai}};function Fl(e){return t(e,null,Bl)}function Vl(e,t){if("MemberExpression"===e.type)return!e.computed&&Vl(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 Hl(e){if(!Ko(e))return null;for(const t of e.attributes)if("Attribute"===t.type&&"slot"===t.name&&Gi(t))return t.value[0].data;return null}function Ul(e,t,n){if(zl(e,t,n.state.scope,"BindDirective"===e.type),"Identifier"===t.type){const s=n.state.scope.get(t.name);n.state.analysis.runes&&(s?.node===n.state.analysis.props_id&&Ws(e,"$props.id()"),"each"===s?.kind&&function(e){Us(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){Us(e,"snippet_parameter_assignment","Cannot reassign or bind to snippet parameter\nhttps://svelte.dev/e/snippet_parameter_assignment")}(e)}if("MemberExpression"===t.type&&"ThisExpression"===t.object.type){const s=t.computed&&"Literal"!==t.property.type?null:Zo(t.property),r=null!==s&&n.state.state_fields?.get(s);if(r&&"AssignmentExpression"===r.node.type&&e!==r.node){let t=n.path.length;for(;t--;){const s=n.path[t];if("FunctionDeclaration"===s.type||"FunctionExpression"===s.type||"ArrowFunctionExpression"===s.type){const s=ro(n.path,t-1);"MethodDefinition"===s.type&&"constructor"===s.kind&&e.start<r.node.start&&ur(e);break}}}}}function zl(e,t,n,s){if("ArrayPattern"===t.type)for(const r of t.elements)r&&zl(e,r,n,s);else if("ObjectPattern"===t.type)for(const r of t.properties)"Property"===r.type&&zl(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){Us(e,"constant_binding",`Cannot bind to ${t}\nhttps://svelte.dev/e/constant_binding`)}(e,t):Ws(e,t)}}}function Wl(e,t,n){t.analysis.source[e.start+1]!==n&&Br({start:e.start,end:e.start+5},n)}function Gl(e,t){e&&(1!==e.nodes.length||"Text"!==e.nodes[0].type||e.nodes[0].raw.trim()||function(e){qe(e,"block_empty","Empty block\nhttps://svelte.dev/e/block_empty")}(e.nodes[0]))}function Kl(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?Kl({name:n.name.slice(1),type:"Identifier"},t):"import"!==s.declaration_kind&&"prop"!==s.kind&&"bindable_prop"!==s.kind&&"rest_prop"!==s.kind)}function Xl(e,t){if("Literal"===e.type)return!0;if("CallExpression"===e.type){if(!Xl(e.callee,t))return!1;for(let n of e.arguments)if(!Xl("SpreadElement"===n.type?n.argument:n,t))return!1;return!0}if("Identifier"!==e.type&&"MemberExpression"!==e.type)return!1;if("$effect.tracking"===mc(Ja(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(Xl(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){Us(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){Us(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 Yl(e,t,n){const s=t.get(n);s&&("derived"===s.kind&&Ks(e),"state"!==s.kind&&"raw_state"!==s.kind||!s.reassigned||dr(e))}const Jl=Symbol("unknown"),Zl=Symbol("number"),ec=Symbol("string"),tc=Symbol("string"),nc={BigInt:[Zl],"Math.min":[Zl,Math.min],"Math.max":[Zl,Math.max],"Math.random":[Zl],"Math.floor":[Zl,Math.floor],"Math.f16round":[Zl,Math.f16round],"Math.round":[Zl,Math.round],"Math.abs":[Zl,Math.abs],"Math.acos":[Zl,Math.acos],"Math.asin":[Zl,Math.asin],"Math.atan":[Zl,Math.atan],"Math.atan2":[Zl,Math.atan2],"Math.ceil":[Zl,Math.ceil],"Math.cos":[Zl,Math.cos],"Math.sin":[Zl,Math.sin],"Math.tan":[Zl,Math.tan],"Math.exp":[Zl,Math.exp],"Math.log":[Zl,Math.log],"Math.pow":[Zl,Math.pow],"Math.sqrt":[Zl,Math.sqrt],"Math.clz32":[Zl,Math.clz32],"Math.imul":[Zl,Math.imul],"Math.sign":[Zl,Math.sign],"Math.log10":[Zl,Math.log10],"Math.log2":[Zl,Math.log2],"Math.log1p":[Zl,Math.log1p],"Math.expm1":[Zl,Math.expm1],"Math.cosh":[Zl,Math.cosh],"Math.sinh":[Zl,Math.sinh],"Math.tanh":[Zl,Math.tanh],"Math.acosh":[Zl,Math.acosh],"Math.asinh":[Zl,Math.asinh],"Math.atanh":[Zl,Math.atanh],"Math.trunc":[Zl,Math.trunc],"Math.fround":[Zl,Math.fround],"Math.cbrt":[Zl,Math.cbrt],Number:[Zl,Number],"Number.isInteger":[Zl,Number.isInteger],"Number.isFinite":[Zl,Number.isFinite],"Number.isNaN":[Zl,Number.isNaN],"Number.isSafeInteger":[Zl,Number.isSafeInteger],"Number.parseFloat":[Zl,Number.parseFloat],"Number.parseInt":[Zl,Number.parseInt],String:[ec,String],"String.fromCharCode":[ec,String.fromCharCode],"String.fromCodePoint":[ec,String.fromCodePoint]},sc={"Math.PI":Math.PI,"Math.E":Math.E,"Math.LN10":Math.LN10,"Math.LN2":Math.LN2,"Math.LOG10E":Math.LOG10E,"Math.LOG2E":Math.LOG2E,"Math.SQRT2":Math.SQRT2,"Math.SQRT1_2":Math.SQRT1_2};class rc{scope;node;kind;declaration_kind;initial=null;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 ac{values;is_known=!0;has_unknown=!1;is_defined=!0;is_string=!0;is_number=!0;is_function=!0;value=void 0;constructor(e,t,n){switch(oc.set(t,this),this.values=n,t.type){case"Literal":this.values.add(t.value);break;case"Identifier":{const n=e.get(t.name);if(n){if("CallExpression"===n.initial?.type&&"$props.id"===mc(n.initial,e)){this.values.add(ec);break}const s="prop"===n.kind||"rest_prop"===n.kind||"bindable_prop"===n.kind;if("EachBlock"===n.initial?.type&&n.initial.index===t.name){this.values.add(Zl);break}if(!n.updated&&null!==n.initial&&!s){n.scope.evaluate(n.initial,this.values);break}}else if("undefined"===t.name){this.values.add(void 0);break}this.values.add(Jl);break}case"BinaryExpression":{const n=e.evaluate(t.left),s=e.evaluate(t.right);if(n.is_known&&s.is_known){this.values.add(lc[t.operator](n.value,s.value));break}switch(t.operator){case"!=":case"!==":case"<":case"<=":case">":case">=":case"==":case"===":case"in":case"instanceof":this.values.add(!0),this.values.add(!1);break;case"%":case"&":case"*":case"**":case"-":case"/":case"<<":case">>":case">>>":case"^":case"|":this.values.add(Zl);break;case"+":n.is_string||s.is_string?this.values.add(ec):(n.is_number&&s.is_number||this.values.add(ec),this.values.add(Zl));break;default:this.values.add(Jl)}break}case"ConditionalExpression":{const n=e.evaluate(t.test),s=e.evaluate(t.consequent),r=e.evaluate(t.alternate);if(n.is_known)for(const e of(n.value?s:r).values)this.values.add(e);else{for(const e of s.values)this.values.add(e);for(const e of r.values)this.values.add(e)}break}case"LogicalExpression":{const n=e.evaluate(t.left),s=e.evaluate(t.right);if(n.is_known){if(s.is_known){this.values.add(pc[t.operator](n.value,s.value));break}if("&&"===t.operator&&!n.value||"||"===t.operator&&n.value||"??"===t.operator&&null!=n.value)this.values.add(n.value);else for(const e of s.values)this.values.add(e);break}for(const e of n.values)this.values.add(e);for(const e of s.values)this.values.add(e);break}case"UnaryExpression":{const n=e.evaluate(t.argument);if(n.is_known){this.values.add(cc[t.operator](n.value));break}switch(t.operator){case"!":case"delete":this.values.add(!1),this.values.add(!0);break;case"+":case"-":case"~":this.values.add(Zl);break;case"typeof":this.values.add(ec);break;case"void":this.values.add(void 0);break;default:this.values.add(Jl)}break}case"CallExpression":{const n=fc(t.callee,e);if(n){if(me(n)){const s=t.arguments[0];switch(n){case"$state":case"$state.raw":case"$derived":s?e.evaluate(s,this.values):this.values.add(void 0);break;case"$props.id":this.values.add(ec);break;case"$effect.tracking":this.values.add(!1),this.values.add(!0);break;case"$derived.by":if("ArrowFunctionExpression"===s?.type&&"BlockStatement"!==s.body.type){e.evaluate(s.body,this.values);break}this.values.add(Jl);break;default:this.values.add(Jl)}break}if(Object.hasOwn(nc,n)&&t.arguments.every((e=>"SpreadElement"!==e.type))){const[s,r]=nc[n],a=t.arguments.map((t=>e.evaluate(t)));r&&a.every((e=>e.is_known))?this.values.add(r(...a.map((e=>e.value)))):this.values.add(s);break}}this.values.add(Jl);break}case"TemplateLiteral":{let n=t.quasis[0].value.cooked;for(let s=0;s<t.expressions.length;s+=1){const r=e.evaluate(t.expressions[s]);if(!r.is_known){this.values.add(ec);break}n+=r.value+t.quasis[s+1].value.cooked}this.values.add(n);break}case"MemberExpression":{const n=fc(t,e);if(n&&Object.hasOwn(sc,n)){this.values.add(sc[n]);break}this.values.add(Jl);break}case"ArrowFunctionExpression":case"FunctionExpression":case"FunctionDeclaration":this.values.add(tc);break;default:this.values.add(Jl)}for(const e of this.values)this.value=e,e!==ec&&"string"!=typeof e&&(this.is_string=!1),e!==Zl&&"number"!=typeof e&&(this.is_number=!1),e!==tc&&(this.is_function=!1),null!=e&&e!==Jl||(this.is_defined=!1),e===Jl&&(this.has_unknown=!0);(this.values.size>1||"symbol"==typeof this.value)&&(this.is_known=!1),oc.delete(t)}}class ic{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){Us(e,"declaration_duplicate",`\`${t}\` has already been declared\nhttps://svelte.dev/e/declaration_duplicate`)}(e,e.name)}const r=new rc(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 ic(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)||G(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)}evaluate(e,t=new Set){const n=oc.get(e);return n||new ac(this,e,t)}}const oc=new Map,lc={"!=":(e,t)=>e!=t,"!==":(e,t)=>e!==t,"<":(e,t)=>e<t,"<=":(e,t)=>e<=t,">":(e,t)=>e>t,">=":(e,t)=>e>=t,"==":(e,t)=>e==t,"===":(e,t)=>e===t,in:(e,t)=>e in t,instanceof:(e,t)=>e instanceof t,"%":(e,t)=>e%t,"&":(e,t)=>e&t,"*":(e,t)=>e*t,"**":(e,t)=>e**t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"/":(e,t)=>e/t,"<<":(e,t)=>e<<t,">>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t,"^":(e,t)=>e^t,"|":(e,t)=>e|t},cc={"-":e=>-e,"+":e=>+e,"!":e=>!e,"~":e=>~e,typeof:e=>typeof e,void:()=>{},delete:()=>!0},pc={"||":(e,t)=>e||t,"&&":(e,t)=>e&&t,"??":(e,t)=>e??t};class uc{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 ci(t)}}function dc(e,n,s,r){const a=new Map,i=new ic(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 Zi(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=Hl(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=Hl(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(ci(e.name.split(".")[0]),n),e.expression&&s(e.expression)};let y=!1;t(e,o,{AwaitExpression(e,t){y||=t.path.every((({type:e})=>"ArrowFunctionExpression"!==e&&"FunctionExpression"!==e&&"FunctionDeclaration"!==e)),t.next()},Identifier(e,{path:t,state:n}){const s=t.at(-1);s&&Vl(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 Zi(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 to(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(ci(e.name.split(".")[0]),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 Zi(n.id)){const i=t.scope.declare(a,r?"template":"normal",e.kind,n.init);i.metadata={is_template_declaration:!0},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 Zi(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 Zi(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(ci(e.index),t?"template":"static","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:Jo(),keyed:!1,contains_group_binding:!1,index:r.root.unique("$$index"),declarations:r.declarations,is_controlled:!1,transitive_deps:new Set}},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 Zi(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 Zi(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 Zi(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(ci(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 Ji(t)){const t=Wi(n),s=t&&e.get(t.name);null!==s&&t!==s.node&&(t===n?s.reassigned=!0:s.mutated=!0)}return{has_await:y,scope:i,scopes:a}}function hc(e,{next:t,state:n}){const s=n.scopes.get(e);t(void 0!==s&&s!==n.scope?{...n,scope:s}:n)}function mc(e,t){if(!e)return null;if("CallExpression"!==e.type)return null;const n=fc(e.callee,t);return n&&me(n)?n:null}function fc(e,t){let n=e,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;return null!==t.get(n.name)?null:n.name+s}function yc(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 vc=/^-((webkit)|(moz)|(o)|(ms))-/,gc=/^[\s,;}]$/;function bc(e){return e.replace(vc,"")}const _c=e=>"keyframes"===bc(e.name),xc={};function wc(e,t,n,s=!1){if(!n.has(xc))if("Literal"===e.type)n.add(String(e.value));else if("ConditionalExpression"===e.type)wc(e.consequent,t,n,s),wc(e.alternate,t,n,s);else if("LogicalExpression"===e.type)if("&&"===e.operator){const r=new Set;if(wc(e.left,t,r,s),r.has(xc))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);wc(e.right,t,n,s)}else wc(e.left,t,n,s),wc(e.right,t,n,s);else if(t&&"ArrayExpression"===e.type)for(const s of e.elements)s&&wc(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(xc):n.add("Identifier"===t.key.type?t.key.name:String(t.key.value));else n.add(xc)}function Cc(e,t){const n=new Set;return"Text"===e.type?n.add(e.data):wc(e.expression,t,n),n.has(xc)?null:[...n].map((e=>String(e)))}function kc(e){const t=e.selectors[0];return"PseudoClassSelector"===t.type&&"global"===t.name&&(null===t.args||e.selectors.every((e=>Sc(e)||"PseudoElementSelector"===e.type)))}function Sc(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=>kc(e))))))}function Pc(e){return"PseudoClassSelector"===e.type&&"global"===e.name&&null===e.args}function Ec(e){return e.filter((e=>"Rule"===e.type)).every((e=>e.metadata.has_global_selectors))}const Tc={Atrule(e,t){_c(e)&&(e.prelude.startsWith("-global-")||t.path.some((e=>"Rule"===e.type&&e.metadata.is_global_block))?e.prelude.startsWith("-global-")&&(t.state.analysis.css.has_global||=Ec(t.path)):t.state.keyframes.push(e.prelude)),t.next()},ComplexSelector(e,t){t.next();{const n=e.children.find(kc);if(n){"PseudoClassSelector"===t.path.at(-2)?.type&&!n.selectors[0].args&&function(e){Us(e,"css_global_block_invalid_placement","A `:global` selector cannot be inside a pseudoclass\nhttps://svelte.dev/e/css_global_block_invalid_placement")}(n.selectors[0]);const s=e.children.indexOf(n);if(null!==n.selectors[0].args&&0!==s&&s!==e.children.length-1)for(let t=s+1;t<e.children.length;t++)kc(e.children[t])||wr(n.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&&kr(s),"TypeSelector"===t.selectors[n+1]?.type&&Pr(t.selectors[n+1]),null!==s.args&&s.args.children.length>1&&(e.children.length>1||t.selectors.length>1)&&Cr(s)}}if(e.metadata.rule=t.state.rule,e.metadata.is_global=e.children.every((({metadata:e})=>e.is_global||e.is_global_like)),e.metadata.used||=e.metadata.is_global,e.metadata.rule?.metadata.parent_rule&&"NestingSelector"===e.children[0]?.selectors[0]?.type){const t=e.children[0]?.selectors[1],n="PseudoClassSelector"!==t?.type||Sc(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||Sr(e.combinator),e.metadata.is_global=e.selectors.length>=1&&kc(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){e.metadata.parent_rule=n.state.rule;for(const n of e.prelude.children){let s=!1;for(let r=0;r<n.children.length;r++){const a=n.children[r],i=a.selectors.findIndex(Pc);if(s&&(a.metadata.is_global_like=!0),0===i)if(a.selectors.length>1&&0===r&&null===e.metadata.parent_rule)xr(a.selectors[1]);else{e.metadata.is_global_block=s=!0;for(let e=1;e<a.selectors.length;e++)t(a.selectors[e],null,{ComplexSelector(e){e.metadata.used=!0}});a.combinator&&" "!==a.combinator.name&&vr(a,a.combinator.name);const r=e.block.children.find((e=>"Declaration"===e.type)),i=1===n.children.length&&1===n.children[0].selectors.length;i&&e.prelude.children.length>1&&br(e.prelude),r&&1===e.prelude.children.length&&i&&gr(r)}else-1!==i&&_r(a.selectors[i])}e.metadata.is_global_block&&!s&&br(e.prelude)}const s={...n.state,rule:e};n.visit(e.prelude,s);for(const t of e.prelude.children)e.metadata.has_global_selectors||=t.metadata.is_global,e.metadata.has_local_selectors||=!t.metadata.is_global;n.state.analysis.css.has_global||=e.metadata.has_global_selectors&&e.block.children.filter((e=>"Declaration"===e.type)).length>0&&Ec(n.path),n.visit(e.block,s)},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&&xr(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){Us(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 Ac=0,$c=1,Rc=0,Ic=1,Mc=new Map([["details",["open"]],["dialog",["open"]]]),qc={type:"Combinator",name:" ",start:-1,end:-1},Lc={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}},Oc={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}},Nc=new Set;function Dc(e,n){t(e,null,{Rule(e,t){e.metadata.is_global_block?t.visit(e.prelude):t.next()},ComplexSelector(e){const t=jc(e);Nc.clear(),Fc(t,e.metadata.rule,n,Ic)&&(e.metadata.used=!0)}})}function jc(e){const n=Bc(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:qc}),n.unshift(Lc))}return n}function Bc(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 Fc(e,n,s,r){const a=e.slice(),i=r===Rc?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=>Vc(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]=Bc(e);if(!r){e.metadata.used=!0,a=!0;continue}if(t){Fc([r.combinator?{...r,combinator:null}:r,...i],n,s,Rc)&&(e.metadata.used=!0,a=!0)}Fc([Oc,r.combinator?r:{...r,combinator:qc},...i],n,s,Rc)&&(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 Fc(a.args.children[0].children,n,s,Ic)}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=Bc(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=Kc(e)}}break}if(("is"===i||"where"===i)&&a.args){let e=!1;for(const t of a.args.children){const r=Bc(t);if(0===r.length)t.metadata.used=!0,e=!0;else if(Fc(r,n,s,Ic))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=Mc.get(s.name.toLowerCase());if(!e?.includes(a.name.toLowerCase())&&!zc(s,a.name,a.value&&Wc(a.value),a.matcher,a.flags?.includes("i")??!1))return!1;break}case"ClassSelector":if(!zc(s,"class",i,"~=",!1))return!1;break;case"IdSelector":if(!zc(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)(Fc(jc(n),t,s,r)||n.children.every((e=>Vc(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==Rc?n[0]?.combinator:e.combinator;if(!i)return!0;switch(i.name){case" ":case">":{const e=">"===i.name,o=a===Rc?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):Gc(r,e);let l=!1;for(const e of o)Fc(n,s,e,a)&&(l=!0);return l||a===Ic&&(!e||0===o.length)&&n.every((e=>Vc(e,s)))}case"+":case"~":{const e=Xc(r,a,"+"===i.name);let t=!1;for(const r of e.keys())"RenderTag"===r.type||"SlotElement"===r.type||"Component"===r.type?1===n.length&&n[0].metadata.is_global&&(t=!0):Fc(n,s,r,a)&&(t=!0);return t||a===Ic&&null===Kc(r)&&n.every((e=>Vc(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 Vc(e,t){if(e.metadata.is_global||e.metadata.is_global_like)return!0;let n=!1;for(const s of e.selectors){let e=null,r=!1,a=t;"PseudoClassSelector"===s.type&&("is"!==s.name&&"where"!==s.name||!s.args?r=Sc(s):e=s.args),"NestingSelector"===s.type&&(a=t.metadata.parent_rule,e=a.prelude);const i=!!e?.children.some((e=>e.children.every((e=>Vc(e,a)))));if(n||=i,!i&&!r)return!1}return n||0===e.selectors.length}const Hc=/\\(.)/g;function Uc(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 zc(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;const e=t.toLowerCase();if("StyleDirective"===a.type&&"style"===e)return!0;if("ClassDirective"===a.type&&"class"===e){if("~="!==s)return!0;if(a.name===n)return!0}if("Attribute"!==a.type)continue;if(a.name.toLowerCase()!==e)continue;if(!0===a.value)return null===s;if(null===n)return!0;if(Gi(a)){const t=Uc(s,n,r,a.value[0].data);if(!t&&("class"===e||"style"===e))continue;return t}const o=Qi(a.value),c=new Set;let p=[];for(const t of o){const n=Cc(t,"class"===e);if(!n)return!0;if(p.length>0){const e=[],t=[];if(n.forEach((n=>{i.test(n)?e.push(n):t.push(n)})),t.length>0){e.length>0&&p.forEach((e=>c.add(e)));const n=[];p.forEach((e=>{t.forEach((t=>{n.push(e+t)}))})),p=n,e.forEach((e=>{l.test(e)?c.add(e):p.push(e)}));continue}p.forEach((e=>c.add(e))),p=[]}if(n.forEach((e=>{l.test(e)?c.add(e):p.push(e)})),p.length<n.length&&p.push(" "),p.length>20)return!0}p.forEach((e=>c.add(e)));for(const e of c)if(Uc(s,n,r,e))return!0}return!1}function Wc(e){return e[0]===e[e.length-1]&&"'"===e[0]||'"'===e[0]?e.slice(1,e.length-1):e}function Gc(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(...Gc(r,t,n))}break}if(("RegularElement"===e.type||"SvelteElement"===e.type)&&(s.push(e),t))break}return s}function Kc(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 Xc(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===Rc?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,$c),n))return r}else if(ep(s)||"Component"===s.type){"SlotElement"!==s.type&&"Component"!==s.type||r.set(s,Ac);const e=Qc(s,t,n);if(Jc(e,r),n&&"Component"!==s.type&&Yc(e))return r}else if("SvelteElement"===s.type)r.set(s,Ac);else if("RenderTag"===s.type){r.set(s,Ac);for(const e of s.metadata.snippets)Jc(Qc(e,t,n),r)}l=t===Rc?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=Xc(e,t,n,s);if(Jc(a,r),n&&1===i.metadata.sites.size&&Yc(a))return r}}if(!ep(i))break;"EachBlock"===i.type&&e===i.body&&Jc(Qc(i,t,n),r)}}return r}function Qc(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);break;case"Component":r.push(e.fragment,...[...e.metadata.snippets].map((e=>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=Zc(e.nodes,t,n,s);i&&=Yc(r),Jc(r,a)}if(!i)for(const e of a.keys())a.set(e,Ac);return a}function Yc(e){if(0===e.size)return!1;for(const t of e.values())if(t===$c)return!0;return!1}function Jc(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 Zc(e,t,n,s){const r=new Map;let a=t===Rc?0:e.length-1;for(;a>=0&&a<e.length;){const i=e[a];if("RegularElement"===i.type){if(r.set(i,$c),n)break}else if("SvelteElement"===i.type)r.set(i,Ac);else if("RenderTag"===i.type)for(const e of i.metadata.snippets)Jc(Qc(e,t,n,s),r);else if(ep(i)){const e=Qc(i,t,n,s);if(Jc(e,r),n&&Yc(e))break}a=t===Rc?a+1:a-1}return r}function ep(e){return"IfBlock"===e.type||"EachBlock"===e.type||"AwaitBlock"===e.type||"KeyBlock"===e.type||"SlotElement"===e.type}const tp={Atrule(e,t){_c(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){qe(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 np(e,t){if(e.metadata={hoisted:!1,hoisted_params:[],scope:t.state.scope},t.state.expression)for(const[e]of t.state.scope.references){const n=t.state.scope.get(e);n&&n.scope.function_depth<t.state.scope.function_depth&&t.state.expression.references.add(n)}t.next({...t.state,function_depth:t.state.function_depth+1,expression:null})}function sp(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 rp={hoisted:!1};function ap(e){return K(e=e.slice(2))&&(e=e.slice(0,-7)),e}const ip={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 op(e){!e.name.includes(":")||e.name.startsWith("xmlns:")||e.name.startsWith("xlink:")||e.name.startsWith("xml:")||qe(e,"attribute_illegal_colon","Attributes should not contain ':' characters to prevent ambiguity with Svelte directives\nhttps://svelte.dev/e/attribute_illegal_colon")}function lp(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))&&qe(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){Us(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 cp(e,t,n=!1){const s=e.path.at(-2);let r;if("SnippetBlock"===s?.type)return void(Gi(t)||aa(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||ia(t);else{Gi(t)||aa(t);const n=t.value[0].data;if(e.state.component_slots.has(n)&&function(e,t,n){Us(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)))&&oa(e)}}else n||ia(t)}function pp(e){return!e||"import"===e.declaration_kind||"prop"===e.kind||"rest_prop"===e.kind||"bindable_prop"===e.kind||"SnippetBlock"===e?.initial?.type}function up(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||!Ki(s))continue;const r=Xi(s);if("Identifier"===r.type){const s=t.state.scope.get(r.name);n&&=pp(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),sp(t.path);for(const n of e.attributes)"Attribute"!==n.type&&"SpreadAttribute"!==n.type&&"LetDirective"!==n.type&&"OnDirective"!==n.type&&"BindDirective"!==n.type&&"AttachTag"!==n.type&&Vr(n),"OnDirective"===n.type&&(n.modifiers.length>1||n.modifiers.some((e=>"once"!==e)))&&Gr(n),"Attribute"===n.type&&(t.state.analysis.runes&&(lp(n,e),Ki(n)&&dp(Xi(n),t.state.analysis.source)),op(n),"slot"===n.name&&cp(t,n,!0)),"BindDirective"===n.type&&"this"!==n.name&&(t.state.analysis.uses_component_bindings=!0),"AttachTag"===n.type&&dp(n.expression,t.state.analysis.source);const s=Hl(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=Hl(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 dp(e,t){if("SequenceExpression"===e.type){let n=e.start;for(;--n>0;){const s=t[n];if("("===s)break;"{"===s&&Mr(e)}}}function hp(e,t){if(!t.has(e)&&(t.add(e),"legacy_reactive"===e.kind))for(const n of e.legacy_dependencies)hp(n,t)}class mp{#n=[];#s=[];add(e,t){const n=ci("#");return(t?this.#s:this.#n).push({id:n,expression:e}),n}apply(){return[...this.#n,...this.#s].map(((e,t)=>(e.id.name=`$${t}`,e.id)))}deriveds(e=!0){return this.#n.map((t=>Oi(t.id,Ja(e?"$.derived":"$.derived_safe_equal",Pi(t.expression)))))}async_ids(){return this.#s.map((e=>e.id))}async_values(){if(0!==this.#s.length)return Ua(this.#s.map((e=>Pi(e.expression,!0))))}sync_values(){if(0!==this.#n.length)return Ua(this.#n.map((e=>Pi(e.expression))))}}function fp(e,t,n=t.state,s=((e,t)=>t.has_call||t.has_await?n.memoizer.add(e,t.has_await):e)){const r=[];let a=bi("");const i=[a];let o=!1,l=!1;for(let c=0;c<e.length;c++){const p=e[c];if("Text"===p.type)a.value.cooked+=p.data;else if("Literal"===p.expression.type)null!=p.expression.value&&(a.value.cooked+=p.expression.value+"");else if("Identifier"!==p.expression.type||"undefined"!==p.expression.name||n.scope.get("undefined")){let u=s(xp(t,p.expression,p.metadata.expression,n),p.metadata.expression);const d=n.scope.evaluate(u);if(l||=p.metadata.expression.has_await,o||=l||p.metadata.expression.has_state&&!d.is_known,1===e.length)return d.is_known&&(u=di((d.value??"")+"")),{value:u,has_state:o};"LogicalExpression"!==u.type||"Literal"!==u.right.type||"??"!==u.operator&&"||"!==u.operator||null===u.right.value&&(u={...u,right:di("")}),d.is_known?a.value.cooked+=(d.value??"")+"":(d.is_defined||(u=ni("??",u,di(""))),r.push(u),a=bi("",c+1===e.length),i.push(a))}}for(const e of i)e.value.raw=Ha(e.value.cooked);return{value:r.length>0?Si(i,r):di(a.value.cooked),has_state:o}}function yp(e){const{memoizer:t}=e;return ki(Ja("$.template_effect",Ga(t.apply(),1===e.update.length&&"ExpressionStatement"===e.update[0].type?e.update[0].expression:Ya(e.update)),t.sync_values(),t.async_values()))}function vp(e){const t=e.split(".");let n=t.shift(),s=ci(n);for(;n=t.shift();){const e=!m.test(n);s=hi(s,e?di(n):ci(n),e)}return s}function gp(e,n,{state:s,visit:r}){if("SequenceExpression"===e.type){const[t,s]=r(e).expressions;return Ja("$.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(!Vl(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(Ka("=",e,ci("$$value")),c);let d=p;for(;"MemberExpression"===d.type;)d.optional=!0,d=d.object;return Ja("$.bind_this",n,Ga([ci("$$value"),...a],u),Ga([...a],p),i.length>0&&Pi(Ua(i)))}function bp(e,t,n){if("SequenceExpression"===t.expression.type)return;const s=Wi(t.expression),r=s&&e.scope.get(s.name);if("store_sub"===r?.kind)return;const a=we(t.start),i=n.object;e.init.push(ki(Ja("$.validate_binding",di(e.analysis.source.slice(t.start,t.end)),Pi(e.store_to_invalidate?xi([Ja("$.mark_store_binding"),i]):i),Pi(n.computed?n.property:di(n.property.name)),a&&di(a.line),a&&di(a.column))))}function _p(e,t,n){let s="AssignmentExpression"===e.type?e.left:e.argument;if(!be||"MemberExpression"!==s.type||Ee(e,"ownership_invalid_mutation"))return n;const r=Wi(s);if(!r)return n;const a=t.state.scope.get(r.name);if("prop"!==a?.kind&&"bindable_prop"!==a?.kind)return n;t.state.analysis.needs_mutation_validation=!0;const i=[];for(;"MemberExpression"===s.type;){if("Literal"===s.property.type)i.unshift(s.property);else{if("Identifier"!==s.property.type)return n;{const e=Object.hasOwn(t.state.transform,s.property.name)?t.state.transform[s.property.name]:null;s.computed?i.unshift(e?.read?e.read(s.property):s.property):i.unshift(di(s.property.name))}}s=s.object}i.unshift(di(r.name));const o=we(s.start);return Ja("$$ownership_validator.mutation",di(a.prop_alias),Ua(i),n,o&&di(o.line),o&&di(o.column))}function xp(e,t,n,s=e.state){const r=e.visit(t,s);if(e.state.analysis.runes||e.state.analysis.maybe_runes)return r;if(!n.has_call&&!n.has_member_expression&&!n.has_assignment)return r;const a=xi([]);for(const e of n.references)if("normal"!==e.kind||"import"===e.declaration_kind){var i=kp({...e.node},s);"bindable_prop"!==e.kind&&"template"!==e.kind&&"import"!==e.declaration_kind&&"$$props"!==e.node.name&&"$$restProps"!==e.node.name||(i=Ja("$.deep_read_state",i)),a.expressions.push(i)}return a.expressions.push(Ja("$.untrack",Pi(r))),a}function wp(e,t,n,s){if(!be)return ki(e);const r=void 0!==t.start&&we(t.start);return ki(r?Ja("$.add_svelte_meta",Ga([],e),di(n),ci(xe),di(r.line),di(r.column),s&&fi(Object.entries(s).map((([e,t])=>ui(e,di(t)))))):e)}function Cp(e,t){return("state"===e.kind||"raw_state"===e.kind)&&(!t.immutable||e.reassigned||t.accessors)}function kp(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 Sp(e,n){const s=function(e,n){const s=n.state.scope,r=[];function a(e){r.find((t=>t.name===e.name))||r.push(e)}for(const[i]of s.references){let o=s.get(i);if(null!==o&&!s.declarations.has(i)&&o.initial!==e){"store_sub"===o.kind&&(a(ci(o.node.name)),o=s.get(o.node.name.slice(1)));let l=n.state.transform[i]?.read(ci(o.node.name));null!=l&&"function"!=typeof l&&"MemberExpression"===l.type&&"CallExpression"===l.object.type&&"Identifier"===l.object.callee.type&&"$.get"===l.object.callee.name&&"Identifier"===l.object.arguments[0].type?a(ci(l.object.arguments[0].name)):"prop"!==o.kind&&"bindable_prop"!==o.kind||Ep(o,n.state)?"import"!==o.declaration_kind&&(a(ci(o.node.name)),"rest_prop"===o.kind&&n.state.analysis.runes&&a(ci("$$props"))):a(ci("$$props"))}}if(be){function c(e,{next:t,stop:s}){_p(e,n,e)!==e?(r.push(ci("$$ownership_validator")),s()):t()}t(e,null,{AssignmentExpression:c,UpdateExpression:c})}return r}(e,n);e.metadata.hoisted_params=s;const r=[];if(0===e.params.length)s.length>0&&r.push(ci(n.state.scope.generate("_")));else for(const t of e.params)r.push(n.visit(t));return r.push(...s),r}function Pp(e,t,n,s){const r=[ci("$$props"),di(n)];let a,i=0;return"bindable_prop"===e.kind&&(i|=S),t.analysis.immutable&&(i|=w),t.analysis.runes&&(i|=C),(t.analysis.accessors||(t.analysis.immutable?e.reassigned||t.analysis.runes&&e.mutated:e.updated))&&(i|=k),s&&(ao(s)?a=s:(a="CallExpression"===s.type&&"Identifier"===s.callee.type&&0===s.arguments.length?s.callee:Pi(s),i|=P)),(i||a)&&(r.push(di(i)),a&&r.push(a)),Ja("$.prop",...r)}function Ep(e,t){return("prop"===e.kind||"bindable_prop"===e.kind)&&(!t.analysis.runes||t.analysis.accessors||e.reassigned||e.initial||e.updated)}function Tp(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 Tp(n.initial,null)}return!0}function Ap(e,t,n=!1){const s=Pi(t,n);return n?Ja(Xa(Ja("$.save",Ja("$.async_derived",s)))):Ja(e.analysis.runes?"$.derived":"$.derived_safe_equal",s)}var $p,Rp,Ip,Mp={},qp={},Lp={},Op={};function Np(){if(Rp)return Lp;Rp=1,Object.defineProperty(Lp,"__esModule",{value:!0}),Lp.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}}(($p||($p=1,Object.defineProperty(Op,"__esModule",{value:!0}),Op.default=void 0,Op.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}),Op));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 Lp}function Dp(){if(Ip)return qp;Ip=1,Object.defineProperty(qp,"__esModule",{value:!0}),qp.default=void 0;var e=function(e){return e&&e.__esModule?e:{default:e}}(Np());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 qp.default=(0,e.default)(r,r.entries()),qp}var jp,Bp={};function Fp(){if(jp)return Bp;jp=1,Object.defineProperty(Bp,"__esModule",{value:!0}),Bp.default=void 0;var e=function(e){return e&&e.__esModule?e:{default:e}}(Np());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 Bp.default=(0,e.default)(r,r.entries()),Bp}var Vp,Hp={},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,mu={};function fu(){if(hu)return Up;hu=1,Object.defineProperty(Up,"__esModule",{value:!0}),Up.default=void 0;var e=d((Vp||(Vp=1,Object.defineProperty(zp,"__esModule",{value:!0}),zp.default=void 0,zp.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]}),zp)),t=d((Wp||(Wp=1,Object.defineProperty(Gp,"__esModule",{value:!0}),Gp.default=void 0,Gp.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"]]}),Gp)),n=d((Kp||(Kp=1,Object.defineProperty(Xp,"__esModule",{value:!0}),Xp.default=void 0,Xp.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"]]}),Xp)),s=d((Qp||(Qp=1,Object.defineProperty(Yp,"__esModule",{value:!0}),Yp.default=void 0,Yp.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Yp)),r=d((Jp||(Jp=1,Object.defineProperty(Zp,"__esModule",{value:!0}),Zp.default=void 0,Zp.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"]]}),Zp)),a=d((eu||(eu=1,Object.defineProperty(tu,"__esModule",{value:!0}),tu.default=void 0,tu.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:[]}),tu)),i=d((nu||(nu=1,Object.defineProperty(su,"__esModule",{value:!0}),su.default=void 0,su.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"]]}),su)),o=d((ru||(ru=1,Object.defineProperty(au,"__esModule",{value:!0}),au.default=void 0,au.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]}),au)),l=d((iu||(iu=1,Object.defineProperty(ou,"__esModule",{value:!0}),ou.default=void 0,ou.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"]]}),ou)),c=d((lu||(lu=1,Object.defineProperty(cu,"__esModule",{value:!0}),cu.default=void 0,cu.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]}),cu)),p=d((pu||(pu=1,Object.defineProperty(uu,"__esModule",{value:!0}),uu.default=void 0,uu.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]}),uu)),u=d((du||(du=1,Object.defineProperty(mu,"__esModule",{value:!0}),mu.default=void 0,mu.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]}),mu));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 Up.default=h,Up}var yu,vu={},gu={};var bu,_u={};var xu,wu={};var Cu,ku={};var Su,Pu={};var Eu,Tu={};var Au,$u={};var Ru,Iu={};var Mu,qu={};var Lu,Ou={};var Nu,Du={};var ju,Bu={};var Fu,Vu={};var Hu,Uu={};var zu,Wu={};var Gu,Ku={};var Xu,Qu={};var Yu,Ju={};var Zu,ed={};var td,nd={};var sd,rd={};var ad,id={};var od,ld={};var cd,pd={};var ud,dd={};var hd,md={};var fd,yd={};var vd,gd={};var bd,_d={};var xd,wd={};var Cd,kd={};var Sd,Pd={};var Ed,Td={};var Ad,$d={};var Rd,Id={};var Md,qd={};var Ld,Od={};var Nd,Dd={};var jd,Bd={};var Fd,Vd={};var Hd,Ud={};var zd,Wd={};var Gd,Kd={};var Xd,Qd={};var Yd,Jd={};var Zd,eh={};var th,nh={};var sh,rh={};var ah,ih={};var oh,lh={};var ch,ph={};var uh,dh={};var hh,mh={};var fh,yh={};var vh,gh={};var bh,_h={};var xh,wh={};var Ch,kh={};var Sh,Ph={};var Eh,Th={};var Ah,$h={};var Rh,Ih={};var Mh,qh={};var Lh,Oh={};var Nh,Dh={};var 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,xm={};function wm(){if(_m)return vu;_m=1,Object.defineProperty(vu,"__esModule",{value:!0}),vu.default=void 0;var e=Ae((yu||(yu=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-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),gu)),t=Ae((bu||(bu=1,Object.defineProperty(_u,"__esModule",{value:!0}),_u.default=void 0,_u.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"]]}),_u)),n=Ae((xu||(xu=1,Object.defineProperty(wu,"__esModule",{value:!0}),wu.default=void 0,wu.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"]]}),wu)),s=Ae((Cu||(Cu=1,Object.defineProperty(ku,"__esModule",{value:!0}),ku.default=void 0,ku.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"]]}),ku)),r=Ae((Su||(Su=1,Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.default=void 0,Pu.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"]]}),Pu)),a=Ae((Eu||(Eu=1,Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.default=void 0,Tu.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"]]}),Tu)),i=Ae((Au||(Au=1,Object.defineProperty($u,"__esModule",{value:!0}),$u.default=void 0,$u.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"]]}),$u)),o=Ae((Ru||(Ru=1,Object.defineProperty(Iu,"__esModule",{value:!0}),Iu.default=void 0,Iu.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"]]}),Iu)),l=Ae((Mu||(Mu=1,Object.defineProperty(qu,"__esModule",{value:!0}),qu.default=void 0,qu.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"]]}),qu)),c=Ae((Lu||(Lu=1,Object.defineProperty(Ou,"__esModule",{value:!0}),Ou.default=void 0,Ou.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"]]}),Ou)),p=Ae((Nu||(Nu=1,Object.defineProperty(Du,"__esModule",{value:!0}),Du.default=void 0,Du.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"]]}),Du)),u=Ae((ju||(ju=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.default=void 0,Bu.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"]]}),Bu)),d=Ae((Fu||(Fu=1,Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.default=void 0,Vu.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"]]}),Vu)),h=Ae((Hu||(Hu=1,Object.defineProperty(Uu,"__esModule",{value:!0}),Uu.default=void 0,Uu.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"]]}),Uu)),m=Ae((zu||(zu=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:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Wu)),f=Ae((Gu||(Gu=1,Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.default=void 0,Ku.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"]]}),Ku)),y=Ae((Xu||(Xu=1,Object.defineProperty(Qu,"__esModule",{value:!0}),Qu.default=void 0,Qu.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"]]}),Qu)),v=Ae((Yu||(Yu=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.default=void 0,Ju.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"]]}),Ju)),g=Ae((Zu||(Zu=1,Object.defineProperty(ed,"__esModule",{value:!0}),ed.default=void 0,ed.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"]]}),ed)),b=Ae((td||(td=1,Object.defineProperty(nd,"__esModule",{value:!0}),nd.default=void 0,nd.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"]]}),nd)),_=Ae((sd||(sd=1,Object.defineProperty(rd,"__esModule",{value:!0}),rd.default=void 0,rd.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"]]}),rd)),x=Ae((ad||(ad=1,Object.defineProperty(id,"__esModule",{value:!0}),id.default=void 0,id.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]}),id)),w=Ae((od||(od=1,Object.defineProperty(ld,"__esModule",{value:!0}),ld.default=void 0,ld.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"]]}),ld)),C=Ae((cd||(cd=1,Object.defineProperty(pd,"__esModule",{value:!0}),pd.default=void 0,pd.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"]]}),pd)),k=Ae((ud||(ud=1,Object.defineProperty(dd,"__esModule",{value:!0}),dd.default=void 0,dd.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"]]}),dd)),S=Ae((hd||(hd=1,Object.defineProperty(md,"__esModule",{value:!0}),md.default=void 0,md.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"]]}),md)),P=Ae((fd||(fd=1,Object.defineProperty(yd,"__esModule",{value:!0}),yd.default=void 0,yd.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"]]}),yd)),E=Ae((vd||(vd=1,Object.defineProperty(gd,"__esModule",{value:!0}),gd.default=void 0,gd.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"]]}),gd)),T=Ae((bd||(bd=1,Object.defineProperty(_d,"__esModule",{value:!0}),_d.default=void 0,_d.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"]]}),_d)),A=Ae((xd||(xd=1,Object.defineProperty(wd,"__esModule",{value:!0}),wd.default=void 0,wd.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"]]}),wd)),$=Ae((Cd||(Cd=1,Object.defineProperty(kd,"__esModule",{value:!0}),kd.default=void 0,kd.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"]]}),kd)),R=Ae((Sd||(Sd=1,Object.defineProperty(Pd,"__esModule",{value:!0}),Pd.default=void 0,Pd.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"]]}),Pd)),I=Ae((Ed||(Ed=1,Object.defineProperty(Td,"__esModule",{value:!0}),Td.default=void 0,Td.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"]]}),Td)),M=Ae((Ad||(Ad=1,Object.defineProperty($d,"__esModule",{value:!0}),$d.default=void 0,$d.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"]]}),$d)),q=Ae((Rd||(Rd=1,Object.defineProperty(Id,"__esModule",{value:!0}),Id.default=void 0,Id.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"]]}),Id)),L=Ae((Md||(Md=1,Object.defineProperty(qd,"__esModule",{value:!0}),qd.default=void 0,qd.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),qd)),O=Ae((Ld||(Ld=1,Object.defineProperty(Od,"__esModule",{value:!0}),Od.default=void 0,Od.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"]]}),Od)),N=Ae((Nd||(Nd=1,Object.defineProperty(Dd,"__esModule",{value:!0}),Dd.default=void 0,Dd.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"]]}),Dd)),D=Ae((jd||(jd=1,Object.defineProperty(Bd,"__esModule",{value:!0}),Bd.default=void 0,Bd.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Bd)),j=Ae((Fd||(Fd=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:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Vd)),B=Ae((Hd||(Hd=1,Object.defineProperty(Ud,"__esModule",{value:!0}),Ud.default=void 0,Ud.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"]]}),Ud)),F=Ae((zd||(zd=1,Object.defineProperty(Wd,"__esModule",{value:!0}),Wd.default=void 0,Wd.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"]]}),Wd)),V=Ae((Gd||(Gd=1,Object.defineProperty(Kd,"__esModule",{value:!0}),Kd.default=void 0,Kd.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"]]}),Kd)),H=Ae((Xd||(Xd=1,Object.defineProperty(Qd,"__esModule",{value:!0}),Qd.default=void 0,Qd.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"]]}),Qd)),U=Ae((Yd||(Yd=1,Object.defineProperty(Jd,"__esModule",{value:!0}),Jd.default=void 0,Jd.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"]]}),Jd)),z=Ae((Zd||(Zd=1,Object.defineProperty(eh,"__esModule",{value:!0}),eh.default=void 0,eh.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"]]}),eh)),W=Ae((th||(th=1,Object.defineProperty(nh,"__esModule",{value:!0}),nh.default=void 0,nh.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"]]}),nh)),G=Ae((sh||(sh=1,Object.defineProperty(rh,"__esModule",{value:!0}),rh.default=void 0,rh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]}),rh)),K=Ae((ah||(ah=1,Object.defineProperty(ih,"__esModule",{value:!0}),ih.default=void 0,ih.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),ih)),X=Ae((oh||(oh=1,Object.defineProperty(lh,"__esModule",{value:!0}),lh.default=void 0,lh.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"]]}),lh)),Q=Ae((ch||(ch=1,Object.defineProperty(ph,"__esModule",{value:!0}),ph.default=void 0,ph.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"]]}),ph)),Y=Ae((uh||(uh=1,Object.defineProperty(dh,"__esModule",{value:!0}),dh.default=void 0,dh.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"]]}),dh)),J=Ae((hh||(hh=1,Object.defineProperty(mh,"__esModule",{value:!0}),mh.default=void 0,mh.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"]]}),mh)),Z=Ae((fh||(fh=1,Object.defineProperty(yh,"__esModule",{value:!0}),yh.default=void 0,yh.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"]]}),yh)),ee=Ae((vh||(vh=1,Object.defineProperty(gh,"__esModule",{value:!0}),gh.default=void 0,gh.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"]]}),gh)),te=Ae((bh||(bh=1,Object.defineProperty(_h,"__esModule",{value:!0}),_h.default=void 0,_h.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"]]}),_h)),ne=Ae((xh||(xh=1,Object.defineProperty(wh,"__esModule",{value:!0}),wh.default=void 0,wh.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"]]}),wh)),se=Ae((Ch||(Ch=1,Object.defineProperty(kh,"__esModule",{value:!0}),kh.default=void 0,kh.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"]]}),kh)),re=Ae((Sh||(Sh=1,Object.defineProperty(Ph,"__esModule",{value:!0}),Ph.default=void 0,Ph.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"]]}),Ph)),ae=Ae((Eh||(Eh=1,Object.defineProperty(Th,"__esModule",{value:!0}),Th.default=void 0,Th.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"]]}),Th)),ie=Ae((Ah||(Ah=1,Object.defineProperty($h,"__esModule",{value:!0}),$h.default=void 0,$h.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),$h)),oe=Ae((Rh||(Rh=1,Object.defineProperty(Ih,"__esModule",{value:!0}),Ih.default=void 0,Ih.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"]]}),Ih)),le=Ae((Mh||(Mh=1,Object.defineProperty(qh,"__esModule",{value:!0}),qh.default=void 0,qh.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"]]}),qh)),ce=Ae((Lh||(Lh=1,Object.defineProperty(Oh,"__esModule",{value:!0}),Oh.default=void 0,Oh.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"]]}),Oh)),pe=Ae((Nh||(Nh=1,Object.defineProperty(Dh,"__esModule",{value:!0}),Dh.default=void 0,Dh.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"]]}),Dh)),ue=Ae((jh||(jh=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-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Bh)),de=Ae((Fh||(Fh=1,Object.defineProperty(Vh,"__esModule",{value:!0}),Vh.default=void 0,Vh.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"]]}),Vh)),he=Ae((Hh||(Hh=1,Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.default=void 0,Uh.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"]]}),Uh)),me=Ae((zh||(zh=1,Object.defineProperty(Wh,"__esModule",{value:!0}),Wh.default=void 0,Wh.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"]]}),Wh)),fe=Ae((Gh||(Gh=1,Object.defineProperty(Kh,"__esModule",{value:!0}),Kh.default=void 0,Kh.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"]]}),Kh)),ye=Ae((Xh||(Xh=1,Object.defineProperty(Qh,"__esModule",{value:!0}),Qh.default=void 0,Qh.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"]]}),Qh)),ve=Ae((Yh||(Yh=1,Object.defineProperty(Jh,"__esModule",{value:!0}),Jh.default=void 0,Jh.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"]]}),Jh)),ge=Ae((Zh||(Zh=1,Object.defineProperty(em,"__esModule",{value:!0}),em.default=void 0,em.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"]]}),em)),be=Ae((tm||(tm=1,Object.defineProperty(nm,"__esModule",{value:!0}),nm.default=void 0,nm.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),nm)),_e=Ae((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:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),rm)),xe=Ae((am||(am=1,Object.defineProperty(im,"__esModule",{value:!0}),im.default=void 0,im.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"]]}),im)),we=Ae((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:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),lm)),Ce=Ae((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:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]}),pm)),ke=Ae((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-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]}),dm)),Se=Ae((hm||(hm=1,Object.defineProperty(mm,"__esModule",{value:!0}),mm.default=void 0,mm.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),mm)),Pe=Ae((fm||(fm=1,Object.defineProperty(ym,"__esModule",{value:!0}),ym.default=void 0,ym.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"]]}),ym)),Ee=Ae((vm||(vm=1,Object.defineProperty(gm,"__esModule",{value:!0}),gm.default=void 0,gm.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"]]}),gm)),Te=Ae((bm||(bm=1,Object.defineProperty(xm,"__esModule",{value:!0}),xm.default=void 0,xm.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"]]}),xm));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",w.default],["form",C.default],["generic",k.default],["grid",S.default],["gridcell",P.default],["group",E.default],["heading",T.default],["img",A.default],["insertion",$.default],["link",R.default],["list",I.default],["listbox",M.default],["listitem",q.default],["log",L.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",we.default],["timer",Ce.default],["toolbar",ke.default],["tooltip",Se.default],["tree",Pe.default],["treegrid",Ee.default],["treeitem",Te.default]];return vu.default=$e,vu}var Cm,km={},Sm={};var Pm,Em={};var Tm,Am={};var $m,Rm={};var Im,Mm={};var qm,Lm={};var Om,Nm={};var Dm,jm={};var Bm,Fm={};var Vm,Hm={};var Um,zm={};var Wm,Gm={};var Km,Xm={};var Qm,Ym={};var Jm,Zm={};var ef,tf={};var nf,sf={};var rf,af={};var of,lf={};var cf,pf={};var uf,df={};var hf,mf={};var ff,yf={};var vf,gf={};var bf,_f={};var xf,wf={};var Cf,kf={};var Sf,Pf={};var Ef,Tf={};var Af,$f={};var Rf,If={};var Mf,qf={};var Lf,Of={};var Nf,Df={};var jf,Bf={};var Ff,Vf={};var Hf,Uf={};var zf,Wf={};var Gf,Kf={};var Xf,Qf={};var Yf,Jf,Zf={};function ey(){if(Jf)return km;Jf=1,Object.defineProperty(km,"__esModule",{value:!0}),km.default=void 0;var e=F((Cm||(Cm=1,Object.defineProperty(Sm,"__esModule",{value:!0}),Sm.default=void 0,Sm.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"]]}),Sm)),t=F((Pm||(Pm=1,Object.defineProperty(Em,"__esModule",{value:!0}),Em.default=void 0,Em.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"]]}),Em)),n=F((Tm||(Tm=1,Object.defineProperty(Am,"__esModule",{value:!0}),Am.default=void 0,Am.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"]]}),Am)),s=F(($m||($m=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:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Rm)),r=F((Im||(Im=1,Object.defineProperty(Mm,"__esModule",{value:!0}),Mm.default=void 0,Mm.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"]]}),Mm)),a=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"],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"]]}),Lm)),i=F((Om||(Om=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:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Nm)),o=F((Dm||(Dm=1,Object.defineProperty(jm,"__esModule",{value:!0}),jm.default=void 0,jm.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"]]}),jm)),l=F((Bm||(Bm=1,Object.defineProperty(Fm,"__esModule",{value:!0}),Fm.default=void 0,Fm.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"]]}),Fm)),c=F((Vm||(Vm=1,Object.defineProperty(Hm,"__esModule",{value:!0}),Hm.default=void 0,Hm.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"]]}),Hm)),p=F((Um||(Um=1,Object.defineProperty(zm,"__esModule",{value:!0}),zm.default=void 0,zm.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"]]}),zm)),u=F((Wm||(Wm=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:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]}),Gm)),d=F((Km||(Km=1,Object.defineProperty(Xm,"__esModule",{value:!0}),Xm.default=void 0,Xm.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"]]}),Xm)),h=F((Qm||(Qm=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:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Ym)),m=F((Jm||(Jm=1,Object.defineProperty(Zm,"__esModule",{value:!0}),Zm.default=void 0,Zm.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"]]}),Zm)),f=F((ef||(ef=1,Object.defineProperty(tf,"__esModule",{value:!0}),tf.default=void 0,tf.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"]]}),tf)),y=F((nf||(nf=1,Object.defineProperty(sf,"__esModule",{value:!0}),sf.default=void 0,sf.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"]]}),sf)),v=F((rf||(rf=1,Object.defineProperty(af,"__esModule",{value:!0}),af.default=void 0,af.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"]]}),af)),g=F((of||(of=1,Object.defineProperty(lf,"__esModule",{value:!0}),lf.default=void 0,lf.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"]]}),lf)),b=F((cf||(cf=1,Object.defineProperty(pf,"__esModule",{value:!0}),pf.default=void 0,pf.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"]]}),pf)),_=F((uf||(uf=1,Object.defineProperty(df,"__esModule",{value:!0}),df.default=void 0,df.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"]]}),df)),x=F((hf||(hf=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:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),mf)),w=F((ff||(ff=1,Object.defineProperty(yf,"__esModule",{value:!0}),yf.default=void 0,yf.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"]]}),yf)),C=F((vf||(vf=1,Object.defineProperty(gf,"__esModule",{value:!0}),gf.default=void 0,gf.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"]]}),gf)),k=F((bf||(bf=1,Object.defineProperty(_f,"__esModule",{value:!0}),_f.default=void 0,_f.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"]]}),_f)),S=F((xf||(xf=1,Object.defineProperty(wf,"__esModule",{value:!0}),wf.default=void 0,wf.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"]]}),wf)),P=F((Cf||(Cf=1,Object.defineProperty(kf,"__esModule",{value:!0}),kf.default=void 0,kf.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"]]}),kf)),E=F((Sf||(Sf=1,Object.defineProperty(Pf,"__esModule",{value:!0}),Pf.default=void 0,Pf.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"]]}),Pf)),T=F((Ef||(Ef=1,Object.defineProperty(Tf,"__esModule",{value:!0}),Tf.default=void 0,Tf.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"]]}),Tf)),A=F((Af||(Af=1,Object.defineProperty($f,"__esModule",{value:!0}),$f.default=void 0,$f.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"]]}),$f)),$=F((Rf||(Rf=1,Object.defineProperty(If,"__esModule",{value:!0}),If.default=void 0,If.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"]]}),If)),R=F((Mf||(Mf=1,Object.defineProperty(qf,"__esModule",{value:!0}),qf.default=void 0,qf.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"]]}),qf)),I=F((Lf||(Lf=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:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]}),Of)),M=F((Nf||(Nf=1,Object.defineProperty(Df,"__esModule",{value:!0}),Df.default=void 0,Df.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"]]}),Df)),q=F((jf||(jf=1,Object.defineProperty(Bf,"__esModule",{value:!0}),Bf.default=void 0,Bf.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"]]}),Bf)),L=F((Ff||(Ff=1,Object.defineProperty(Vf,"__esModule",{value:!0}),Vf.default=void 0,Vf.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"]]}),Vf)),O=F((Hf||(Hf=1,Object.defineProperty(Uf,"__esModule",{value:!0}),Uf.default=void 0,Uf.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"]]}),Uf)),N=F((zf||(zf=1,Object.defineProperty(Wf,"__esModule",{value:!0}),Wf.default=void 0,Wf.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"]]}),Wf)),D=F((Gf||(Gf=1,Object.defineProperty(Kf,"__esModule",{value:!0}),Kf.default=void 0,Kf.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"]]}),Kf)),j=F((Xf||(Xf=1,Object.defineProperty(Qf,"__esModule",{value:!0}),Qf.default=void 0,Qf.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"]]}),Qf)),B=F((Yf||(Yf=1,Object.defineProperty(Zf,"__esModule",{value:!0}),Zf.default=void 0,Zf.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"]]}),Zf));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",w.default],["doc-glossary",C.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",R.default],["doc-pagelist",I.default],["doc-part",M.default],["doc-preface",q.default],["doc-prologue",L.default],["doc-pullquote",O.default],["doc-qna",N.default],["doc-subtitle",D.default],["doc-tip",j.default],["doc-toc",B.default]];return km.default=V,km}var ty,ny={},sy={};var ry,ay={};var iy,oy,ly,cy={};function py(){if(oy)return ny;oy=1,Object.defineProperty(ny,"__esModule",{value:!0}),ny.default=void 0;var e=s((ty||(ty=1,Object.defineProperty(sy,"__esModule",{value:!0}),sy.default=void 0,sy.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"]]}),sy)),t=s((ry||(ry=1,Object.defineProperty(ay,"__esModule",{value:!0}),ay.default=void 0,ay.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"]]}),ay)),n=s((iy||(iy=1,Object.defineProperty(cy,"__esModule",{value:!0}),cy.default=void 0,cy.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"]]}),cy));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 ny.default=r,ny}function uy(){if(ly)return Hp;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)}ly=1,Object.defineProperty(Hp,"__esModule",{value:!0}),Hp.default=void 0;var t=i(fu()),n=i(wm()),s=i(ey()),r=i(py()),a=i(Np());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 Hp.default=(0,a.default)(h,h.entries()),Hp}var dy,hy={};function my(){if(dy)return hy;dy=1,Object.defineProperty(hy,"__esModule",{value:!0}),hy.default=void 0;var e=n(Np()),t=n(uy());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 hy.default=(0,e.default)(h,h.entries()),hy}var fy,yy,vy={};function gy(){if(fy)return vy;fy=1,Object.defineProperty(vy,"__esModule",{value:!0}),vy.default=void 0;var e=n(Np()),t=n(uy());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 vy.default=(0,e.default)(f,f.entries()),vy}var by,_y,xy=function(){if(yy)return Mp;yy=1,Object.defineProperty(Mp,"__esModule",{value:!0}),Mp.roles=Mp.roleElements=Mp.elementRoles=Mp.dom=Mp.aria=void 0;var e=a(Dp()),t=a(Fp()),n=a(uy()),s=a(my()),r=a(gy());function a(e){return e&&e.__esModule?e:{default:e}}return Mp.aria=e.default,Mp.dom=t.default,Mp.roles=n.default,Mp.elementRoles=s.default,Mp.roleElements=r.default,Mp}(),wy={},Cy={},ky={},Sy={};function Py(){if(_y)return ky;_y=1,Object.defineProperty(ky,"__esModule",{value:!0}),ky.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(by)return Sy;by=1,Object.defineProperty(Sy,"__esModule",{value:!0}),Sy.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 Sy.default=e,Sy}())&&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 ky}var Ey,Ty={},Ay={};var $y,Ry={};var Iy,My={};var qy,Ly={};var Oy,Ny={};var Dy,jy={};var By,Fy={};var Vy,Hy={};var Uy,zy={};var Wy,Gy={};var Ky,Xy={};var Qy,Yy={};var Jy,Zy={};var ev,tv={};var nv,sv={};var rv,av={};var iv,ov={};var lv,cv={};var pv,uv={};var dv,hv={};var mv,fv={};var yv,vv={};var gv,bv={};var _v,xv={};var wv,Cv={};var kv,Sv={};var Pv,Ev={};var Tv,Av={};var $v,Rv={};var Iv,Mv={};var qv,Lv={};var Ov,Nv={};var Dv,jv={};var Bv,Fv={};var Vv,Hv={};var Uv,zv={};var Wv,Gv={};var Kv,Xv={};var Qv,Yv={};var Jv,Zv={};var eg,tg={};var ng,sg={};var rg,ag={};var ig,og={};var lg,cg={};var pg,ug={};var dg,hg={};var mg,fg={};var yg,vg={};var gg,bg={};var _g,xg={};var wg,Cg={};var kg,Sg={};var Pg,Eg={};var Tg,Ag={};var $g,Rg={};var Ig,Mg={};var qg,Lg={};var Og,Ng={};var Dg,jg={};var Bg,Fg={};var Vg,Hg={};var Ug,zg={};var Wg,Gg={};var Kg,Xg={};var Qg,Yg={};var Jg,Zg={};var eb,tb={};var nb,sb={};var rb,ab={};var ib,ob={};var lb,cb={};var pb,ub={};var db,hb={};var mb,fb={};var yb,vb={};var gb,bb={};var _b,xb={};var wb,Cb={};var kb,Sb={};var Pb,Eb={};var Tb,Ab={};var $b,Rb={};var Ib,Mb={};var qb,Lb={};var Ob,Nb={};var Db,jb={};var Bb,Fb={};var Vb,Hb={};var Ub,zb={};var Wb,Gb={};var Kb,Xb={};var Qb,Yb={};var Jb,Zb={};var e_,t_={};var n_,s_={};var r_,a_={};var i_,o_={};var l_,c_={};var p_,u_={};var d_,h_={};var m_,f_={};var y_,v_={};var g_,b_={};var __,x_={};var w_,C_={};var k_,S_={};var P_,E_={};var T_,A_={};var $_,R_={};var I_,M_={};var q_,L_={};var O_,N_={};var D_,j_={};var B_,F_={};var V_,H_={};var U_,z_={};var W_,G_={};var K_,X_={};var Q_,Y_={};var J_,Z_={};var ex,tx={};var nx,sx={};var rx,ax,ix,ox={};function lx(){if(ax)return Ty;ax=1,Object.defineProperty(Ty,"__esModule",{value:!0}),Ty.default=void 0;var e=vt(Py()),t=vt(function(){if(Ey)return Ay;Ey=1,Object.defineProperty(Ay,"__esModule",{value:!0}),Ay.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"abbr"}}],type:"structure"};return Ay.default=e,Ay}()),n=vt(function(){if($y)return Ry;$y=1,Object.defineProperty(Ry,"__esModule",{value:!0}),Ry.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"alertdialog"}}],type:"window"};return Ry.default=e,Ry}()),s=vt(function(){if(Iy)return My;Iy=1,Object.defineProperty(My,"__esModule",{value:!0}),My.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"alert"}}],type:"structure"};return My.default=e,My}()),r=vt(function(){if(qy)return Ly;qy=1,Object.defineProperty(Ly,"__esModule",{value:!0}),Ly.default=void 0;var e={relatedConcepts:[],type:"structure"};return Ly.default=e,Ly}()),a=vt(function(){if(Oy)return Ny;Oy=1,Object.defineProperty(Ny,"__esModule",{value:!0}),Ny.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"application"}}],type:"window"};return Ny.default=e,Ny}()),i=vt(function(){if(Dy)return jy;Dy=1,Object.defineProperty(jy,"__esModule",{value:!0}),jy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"article"}},{module:"HTML",concept:{name:"article"}}],type:"structure"};return jy.default=e,jy}()),o=vt(function(){if(By)return Fy;By=1,Object.defineProperty(Fy,"__esModule",{value:!0}),Fy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"audio"}}],type:"widget"};return Fy.default=e,Fy}()),l=vt(function(){if(Vy)return Hy;Vy=1,Object.defineProperty(Hy,"__esModule",{value:!0}),Hy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"banner"}}],type:"structure"};return Hy.default=e,Hy}()),c=vt(function(){if(Uy)return zy;Uy=1,Object.defineProperty(zy,"__esModule",{value:!0}),zy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"blockquote"}}],type:"structure"};return zy.default=e,zy}()),p=vt(function(){if(Wy)return Gy;Wy=1,Object.defineProperty(Gy,"__esModule",{value:!0}),Gy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-busy",value:"true"}]}}],type:"widget"};return Gy.default=e,Gy}()),u=vt(function(){if(Ky)return Xy;Ky=1,Object.defineProperty(Xy,"__esModule",{value:!0}),Xy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"button"}},{module:"HTML",concept:{name:"button"}}],type:"widget"};return Xy.default=e,Xy}()),d=vt(function(){if(Qy)return Yy;Qy=1,Object.defineProperty(Yy,"__esModule",{value:!0}),Yy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"canvas"}}],type:"widget"};return Yy.default=e,Yy}()),h=vt(function(){if(Jy)return Zy;Jy=1,Object.defineProperty(Zy,"__esModule",{value:!0}),Zy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"caption"}}],type:"structure"};return Zy.default=e,Zy}()),m=vt(function(){if(ev)return tv;ev=1,Object.defineProperty(tv,"__esModule",{value:!0}),tv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"cell"}},{module:"ARIA",concept:{name:"gridcell"}},{module:"HTML",concept:{name:"td"}}],type:"widget"};return tv.default=e,tv}()),f=vt(function(){if(nv)return sv;nv=1,Object.defineProperty(sv,"__esModule",{value:!0}),sv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"checkbox"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"checkbox"}]}}],type:"widget"};return sv.default=e,sv}()),y=vt(function(){if(rv)return av;rv=1,Object.defineProperty(av,"__esModule",{value:!0}),av.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"color"}]}}],type:"widget"};return av.default=e,av}()),v=vt(function(){if(iv)return ov;iv=1,Object.defineProperty(ov,"__esModule",{value:!0}),ov.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"columnheader"}},{module:"HTML",concept:{name:"th"}}],type:"widget"};return ov.default=e,ov}()),g=vt(function(){if(lv)return cv;lv=1,Object.defineProperty(cv,"__esModule",{value:!0}),cv.default=void 0;var e={relatedConcepts:[],type:"structure"};return cv.default=e,cv}()),b=vt(function(){if(pv)return uv;pv=1,Object.defineProperty(uv,"__esModule",{value:!0}),uv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"combobox"}},{module:"HTML",concept:{name:"select"}}],type:"widget"};return uv.default=e,uv}()),_=vt(function(){if(dv)return hv;dv=1,Object.defineProperty(hv,"__esModule",{value:!0}),hv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"complementary"}}],type:"structure"};return hv.default=e,hv}()),x=vt(function(){if(mv)return fv;mv=1,Object.defineProperty(fv,"__esModule",{value:!0}),fv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"structureinfo"}}],type:"structure"};return fv.default=e,fv}()),w=vt(function(){if(yv)return vv;yv=1,Object.defineProperty(vv,"__esModule",{value:!0}),vv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"date"}]}}],type:"widget"};return vv.default=e,vv}()),C=vt(function(){if(gv)return bv;gv=1,Object.defineProperty(bv,"__esModule",{value:!0}),bv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"datetime"}]}}],type:"widget"};return bv.default=e,bv}()),k=vt(function(){if(_v)return xv;_v=1,Object.defineProperty(xv,"__esModule",{value:!0}),xv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"dfn"}}],type:"structure"};return xv.default=e,xv}()),S=vt(function(){if(wv)return Cv;wv=1,Object.defineProperty(Cv,"__esModule",{value:!0}),Cv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"dd"}}],type:"structure"};return Cv.default=e,Cv}()),P=vt(function(){if(kv)return Sv;kv=1,Object.defineProperty(Sv,"__esModule",{value:!0}),Sv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"dl"}}],type:"structure"};return Sv.default=e,Sv}()),E=vt(function(){if(Pv)return Ev;Pv=1,Object.defineProperty(Ev,"__esModule",{value:!0}),Ev.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"dt"}}],type:"structure"};return Ev.default=e,Ev}()),T=vt(function(){if(Tv)return Av;Tv=1,Object.defineProperty(Av,"__esModule",{value:!0}),Av.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"details"}}],type:"structure"};return Av.default=e,Av}()),A=vt(function(){if($v)return Rv;$v=1,Object.defineProperty(Rv,"__esModule",{value:!0}),Rv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"dialog"}},{module:"HTML",concept:{name:"dialog"}}],type:"window"};return Rv.default=e,Rv}()),$=vt(function(){if(Iv)return Mv;Iv=1,Object.defineProperty(Mv,"__esModule",{value:!0}),Mv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"directory"}},{module:"HTML",concept:{name:"dir"}}],type:"structure"};return Mv.default=e,Mv}()),R=vt(function(){if(qv)return Lv;qv=1,Object.defineProperty(Lv,"__esModule",{value:!0}),Lv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{constraints:["scoped to a details element"],name:"summary"}}],type:"widget"};return Lv.default=e,Lv}()),I=vt(function(){if(Ov)return Nv;Ov=1,Object.defineProperty(Nv,"__esModule",{value:!0}),Nv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"div"}}],type:"generic"};return Nv.default=e,Nv}()),M=vt(function(){if(Dv)return jv;Dv=1,Object.defineProperty(jv,"__esModule",{value:!0}),jv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"document"}}],type:"structure"};return jv.default=e,jv}()),q=vt(function(){if(Bv)return Fv;Bv=1,Object.defineProperty(Fv,"__esModule",{value:!0}),Fv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"embed"}}],type:"widget"};return Fv.default=e,Fv}()),L=vt(function(){if(Vv)return Hv;Vv=1,Object.defineProperty(Hv,"__esModule",{value:!0}),Hv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"feed"}}],type:"structure"};return Hv.default=e,Hv}()),O=vt(function(){if(Uv)return zv;Uv=1,Object.defineProperty(zv,"__esModule",{value:!0}),zv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"figcaption"}}],type:"structure"};return zv.default=e,zv}()),N=vt(function(){if(Wv)return Gv;Wv=1,Object.defineProperty(Gv,"__esModule",{value:!0}),Gv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"figure"}},{module:"HTML",concept:{name:"figure"}}],type:"structure"};return Gv.default=e,Gv}()),D=vt(function(){if(Kv)return Xv;Kv=1,Object.defineProperty(Xv,"__esModule",{value:!0}),Xv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"footer"}}],type:"structure"};return Xv.default=e,Xv}()),j=vt(function(){if(Qv)return Yv;Qv=1,Object.defineProperty(Yv,"__esModule",{value:!0}),Yv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"form"}},{module:"HTML",concept:{name:"form"}}],type:"structure"};return Yv.default=e,Yv}()),B=vt(function(){if(Jv)return Zv;Jv=1,Object.defineProperty(Zv,"__esModule",{value:!0}),Zv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"grid"}}],type:"widget"};return Zv.default=e,Zv}()),F=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:"group"}}],type:"structure"};return tg.default=e,tg}()),V=vt(function(){if(ng)return sg;ng=1,Object.defineProperty(sg,"__esModule",{value:!0}),sg.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 sg.default=e,sg}()),H=vt(function(){if(rg)return ag;rg=1,Object.defineProperty(ag,"__esModule",{value:!0}),ag.default=void 0;var e={relatedConcepts:[],type:"window"};return ag.default=e,ag}()),U=vt(function(){if(ig)return og;ig=1,Object.defineProperty(og,"__esModule",{value:!0}),og.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"iframe"}}],type:"window"};return og.default=e,og}()),z=vt(function(){if(lg)return cg;lg=1,Object.defineProperty(cg,"__esModule",{value:!0}),cg.default=void 0;var e={relatedConcepts:[],type:"structure"};return cg.default=e,cg}()),W=vt(function(){if(pg)return ug;pg=1,Object.defineProperty(ug,"__esModule",{value:!0}),ug.default=void 0;var e={relatedConcepts:[],type:"widget"};return ug.default=e,ug}()),G=vt(function(){if(dg)return hg;dg=1,Object.defineProperty(hg,"__esModule",{value:!0}),hg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"img",attributes:[{name:"usemap"}]}}],type:"structure"};return hg.default=e,hg}()),K=vt(function(){if(mg)return fg;mg=1,Object.defineProperty(fg,"__esModule",{value:!0}),fg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"img"}},{module:"HTML",concept:{name:"img"}}],type:"structure"};return fg.default=e,fg}()),X=vt(function(){if(yg)return vg;yg=1,Object.defineProperty(vg,"__esModule",{value:!0}),vg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input"}}],type:"widget"};return vg.default=e,vg}()),Q=vt(function(){if(gg)return bg;gg=1,Object.defineProperty(bg,"__esModule",{value:!0}),bg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"time"}]}}],type:"widget"};return bg.default=e,bg}()),Y=vt(function(){if(_g)return xg;_g=1,Object.defineProperty(xg,"__esModule",{value:!0}),xg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"label"}}],type:"structure"};return xg.default=e,xg}()),J=vt(function(){if(wg)return Cg;wg=1,Object.defineProperty(Cg,"__esModule",{value:!0}),Cg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"legend"}}],type:"structure"};return Cg.default=e,Cg}()),Z=vt(function(){if(kg)return Sg;kg=1,Object.defineProperty(Sg,"__esModule",{value:!0}),Sg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"br"}}],type:"structure"};return Sg.default=e,Sg}()),ee=vt(function(){if(Pg)return Eg;Pg=1,Object.defineProperty(Eg,"__esModule",{value:!0}),Eg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"link"}},{module:"HTML",concept:{name:"a",attributes:[{name:"href"}]}}],type:"widget"};return Eg.default=e,Eg}()),te=vt(function(){if(Tg)return Ag;Tg=1,Object.defineProperty(Ag,"__esModule",{value:!0}),Ag.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"option"}},{module:"HTML",concept:{name:"option"}}],type:"widget"};return Ag.default=e,Ag}()),ne=vt(function(){if($g)return Rg;$g=1,Object.defineProperty(Rg,"__esModule",{value:!0}),Rg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"listbox"}},{module:"HTML",concept:{name:"datalist"}},{module:"HTML",concept:{name:"select"}}],type:"widget"};return Rg.default=e,Rg}()),se=vt(function(){if(Ig)return Mg;Ig=1,Object.defineProperty(Mg,"__esModule",{value:!0}),Mg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"listitem"}},{module:"HTML",concept:{name:"li"}}],type:"structure"};return Mg.default=e,Mg}()),re=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}()),ae=vt(function(){if(Og)return Ng;Og=1,Object.defineProperty(Ng,"__esModule",{value:!0}),Ng.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"list"}},{module:"HTML",concept:{name:"ul"}},{module:"HTML",concept:{name:"ol"}}],type:"structure"};return Ng.default=e,Ng}()),ie=vt(function(){if(Dg)return jg;Dg=1,Object.defineProperty(jg,"__esModule",{value:!0}),jg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"log"}}],type:"structure"};return jg.default=e,jg}()),oe=vt(function(){if(Bg)return Fg;Bg=1,Object.defineProperty(Fg,"__esModule",{value:!0}),Fg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"main"}},{module:"HTML",concept:{name:"main"}}],type:"structure"};return Fg.default=e,Fg}()),le=vt(function(){if(Vg)return Hg;Vg=1,Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"mark"}}],type:"structure"};return Hg.default=e,Hg}()),ce=vt(function(){if(Ug)return zg;Ug=1,Object.defineProperty(zg,"__esModule",{value:!0}),zg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"marquee"}},{module:"HTML",concept:{name:"marquee"}}],type:"structure"};return zg.default=e,zg}()),pe=vt(function(){if(Wg)return Gg;Wg=1,Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"math"}}],type:"structure"};return Gg.default=e,Gg}()),ue=vt(function(){if(Kg)return Xg;Kg=1,Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"menubar"}}],type:"structure"};return Xg.default=e,Xg}()),de=vt(function(){if(Qg)return Yg;Qg=1,Object.defineProperty(Yg,"__esModule",{value:!0}),Yg.default=void 0;var e={relatedConcepts:[],type:"widget"};return Yg.default=e,Yg}()),he=vt(function(){if(Jg)return Zg;Jg=1,Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"menuitem"}},{module:"HTML",concept:{name:"menuitem"}}],type:"widget"};return Zg.default=e,Zg}()),me=vt(function(){if(eb)return tb;eb=1,Object.defineProperty(tb,"__esModule",{value:!0}),tb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"menuitemcheckbox"}}],type:"widget"};return tb.default=e,tb}()),fe=vt(function(){if(nb)return sb;nb=1,Object.defineProperty(sb,"__esModule",{value:!0}),sb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"menuitemradio"}}],type:"widget"};return sb.default=e,sb}()),ye=vt(function(){if(rb)return ab;rb=1,Object.defineProperty(ab,"__esModule",{value:!0}),ab.default=void 0;var e={relatedConcepts:[],type:"widget"};return ab.default=e,ab}()),ve=vt(function(){if(ib)return ob;ib=1,Object.defineProperty(ob,"__esModule",{value:!0}),ob.default=void 0;var e={relatedConcepts:[],type:"widget"};return ob.default=e,ob}()),ge=vt(function(){if(lb)return cb;lb=1,Object.defineProperty(cb,"__esModule",{value:!0}),cb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"menu"}},{module:"HTML",concept:{name:"menu"}}],type:"structure"};return cb.default=e,cb}()),be=vt(function(){if(pb)return ub;pb=1,Object.defineProperty(ub,"__esModule",{value:!0}),ub.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"meter"}}],type:"structure"};return ub.default=e,ub}()),_e=vt(function(){if(db)return hb;db=1,Object.defineProperty(hb,"__esModule",{value:!0}),hb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"navigation"}},{module:"HTML",concept:{name:"nav"}}],type:"structure"};return hb.default=e,hb}()),xe=vt(function(){if(mb)return fb;mb=1,Object.defineProperty(fb,"__esModule",{value:!0}),fb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"none"}}],type:"structure"};return fb.default=e,fb}()),we=vt(function(){if(yb)return vb;yb=1,Object.defineProperty(vb,"__esModule",{value:!0}),vb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"note"}}],type:"structure"};return vb.default=e,vb}()),Ce=vt(function(){if(gb)return bb;gb=1,Object.defineProperty(bb,"__esModule",{value:!0}),bb.default=void 0;var e={relatedConcepts:[],type:"structure"};return bb.default=e,bb}()),ke=vt(function(){if(_b)return xb;_b=1,Object.defineProperty(xb,"__esModule",{value:!0}),xb.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"p"}}],type:"structure"};return xb.default=e,xb}()),Se=vt(function(){if(wb)return Cb;wb=1,Object.defineProperty(Cb,"__esModule",{value:!0}),Cb.default=void 0;var e={relatedConcepts:[],type:"widget"};return Cb.default=e,Cb}()),Pe=vt(function(){if(kb)return Sb;kb=1,Object.defineProperty(Sb,"__esModule",{value:!0}),Sb.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"pre"}}],type:"structure"};return Sb.default=e,Sb}()),Ee=vt(function(){if(Pb)return Eb;Pb=1,Object.defineProperty(Eb,"__esModule",{value:!0}),Eb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"presentation"}}],type:"structure"};return Eb.default=e,Eb}()),Te=vt(function(){if(Tb)return Ab;Tb=1,Object.defineProperty(Ab,"__esModule",{value:!0}),Ab.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"progressbar"}},{module:"HTML",concept:{name:"progress"}}],type:"structure"};return Ab.default=e,Ab}()),Ae=vt(function(){if($b)return Rb;$b=1,Object.defineProperty(Rb,"__esModule",{value:!0}),Rb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"radio"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"radio"}]}}],type:"widget"};return Rb.default=e,Rb}()),$e=vt(function(){if(Ib)return Mb;Ib=1,Object.defineProperty(Mb,"__esModule",{value:!0}),Mb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"radiogroup"}}],type:"structure"};return Mb.default=e,Mb}()),Re=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:"region"}}],type:"structure"};return Lb.default=e,Lb}()),Ie=vt(function(){if(Ob)return Nb;Ob=1,Object.defineProperty(Nb,"__esModule",{value:!0}),Nb.default=void 0;var e={relatedConcepts:[],type:"structure"};return Nb.default=e,Nb}()),Me=vt(function(){if(Db)return jb;Db=1,Object.defineProperty(jb,"__esModule",{value:!0}),jb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"rowheader"}},{module:"HTML",concept:{name:"th",attributes:[{name:"scope",value:"row"}]}}],type:"widget"};return jb.default=e,jb}()),qe=vt(function(){if(Bb)return Fb;Bb=1,Object.defineProperty(Fb,"__esModule",{value:!0}),Fb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"row"}},{module:"HTML",concept:{name:"tr"}}],type:"structure"};return Fb.default=e,Fb}()),Le=vt(function(){if(Vb)return Hb;Vb=1,Object.defineProperty(Hb,"__esModule",{value:!0}),Hb.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"ruby"}}],type:"structure"};return Hb.default=e,Hb}()),Oe=vt(function(){if(Ub)return zb;Ub=1,Object.defineProperty(zb,"__esModule",{value:!0}),zb.default=void 0;var e={relatedConcepts:[],type:"structure"};return zb.default=e,zb}()),Ne=vt(function(){if(Wb)return Gb;Wb=1,Object.defineProperty(Gb,"__esModule",{value:!0}),Gb.default=void 0;var e={relatedConcepts:[],type:"structure"};return Gb.default=e,Gb}()),De=vt(function(){if(Kb)return Xb;Kb=1,Object.defineProperty(Xb,"__esModule",{value:!0}),Xb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"scrollbar"}}],type:"widget"};return Xb.default=e,Xb}()),je=vt(function(){if(Qb)return Yb;Qb=1,Object.defineProperty(Yb,"__esModule",{value:!0}),Yb.default=void 0;var e={relatedConcepts:[],type:"structure"};return Yb.default=e,Yb}()),Be=vt(function(){if(Jb)return Zb;Jb=1,Object.defineProperty(Zb,"__esModule",{value:!0}),Zb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"search"}}],type:"structure"};return Zb.default=e,Zb}()),Fe=vt(function(){if(e_)return t_;e_=1,Object.defineProperty(t_,"__esModule",{value:!0}),t_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"searchbox"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"search"}]}}],type:"widget"};return t_.default=e,t_}()),Ve=vt(function(){if(n_)return s_;n_=1,Object.defineProperty(s_,"__esModule",{value:!0}),s_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"slider"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"range"}]}}],type:"widget"};return s_.default=e,s_}()),He=vt(function(){if(r_)return a_;r_=1,Object.defineProperty(a_,"__esModule",{value:!0}),a_.default=void 0;var e={relatedConcepts:[],type:"structure"};return a_.default=e,a_}()),Ue=vt(function(){if(i_)return o_;i_=1,Object.defineProperty(o_,"__esModule",{value:!0}),o_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"spinbutton"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"number"}]}}],type:"widget"};return o_.default=e,o_}()),ze=vt(function(){if(l_)return c_;l_=1,Object.defineProperty(c_,"__esModule",{value:!0}),c_.default=void 0;var e={relatedConcepts:[],type:"structure"};return c_.default=e,c_}()),We=vt(function(){if(p_)return u_;p_=1,Object.defineProperty(u_,"__esModule",{value:!0}),u_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"separator"}}],type:"widget"};return u_.default=e,u_}()),Ge=vt(function(){if(d_)return h_;d_=1,Object.defineProperty(h_,"__esModule",{value:!0}),h_.default=void 0;var e={relatedConcepts:[],type:"structure"};return h_.default=e,h_}()),Ke=vt(function(){if(m_)return f_;m_=1,Object.defineProperty(f_,"__esModule",{value:!0}),f_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"status"}}],type:"structure"};return f_.default=e,f_}()),Xe=vt(function(){if(y_)return v_;y_=1,Object.defineProperty(v_,"__esModule",{value:!0}),v_.default=void 0;var e={relatedConcepts:[],type:"structure"};return v_.default=e,v_}()),Qe=vt(function(){if(g_)return b_;g_=1,Object.defineProperty(b_,"__esModule",{value:!0}),b_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"switch"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"checkbox"}]}}],type:"widget"};return b_.default=e,b_}()),Ye=vt(function(){if(__)return x_;__=1,Object.defineProperty(x_,"__esModule",{value:!0}),x_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tablist"}}],type:"structure"};return x_.default=e,x_}()),Je=vt(function(){if(w_)return C_;w_=1,Object.defineProperty(C_,"__esModule",{value:!0}),C_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tab"}}],type:"widget"};return C_.default=e,C_}()),Ze=vt(function(){if(k_)return S_;k_=1,Object.defineProperty(S_,"__esModule",{value:!0}),S_.default=void 0;var e={relatedConcepts:[],type:"structure"};return S_.default=e,S_}()),et=vt(function(){if(P_)return E_;P_=1,Object.defineProperty(E_,"__esModule",{value:!0}),E_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"table"}},{module:"HTML",concept:{name:"table"}}],type:"structure"};return E_.default=e,E_}()),tt=vt(function(){if(T_)return A_;T_=1,Object.defineProperty(A_,"__esModule",{value:!0}),A_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tablist"}}],type:"structure"};return A_.default=e,A_}()),nt=vt(function(){if($_)return R_;$_=1,Object.defineProperty(R_,"__esModule",{value:!0}),R_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tabpanel"}}],type:"structure"};return R_.default=e,R_}()),st=vt(function(){if(I_)return M_;I_=1,Object.defineProperty(M_,"__esModule",{value:!0}),M_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"term"}}],type:"structure"};return M_.default=e,M_}()),rt=vt(function(){if(q_)return L_;q_=1,Object.defineProperty(L_,"__esModule",{value:!0}),L_.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 L_.default=e,L_}()),at=vt(function(){if(O_)return N_;O_=1,Object.defineProperty(N_,"__esModule",{value:!0}),N_.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 N_.default=e,N_}()),it=vt(function(){if(D_)return j_;D_=1,Object.defineProperty(j_,"__esModule",{value:!0}),j_.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"time"}}],type:"structure"};return j_.default=e,j_}()),ot=vt(function(){if(B_)return F_;B_=1,Object.defineProperty(F_,"__esModule",{value:!0}),F_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"timer"}}],type:"structure"};return F_.default=e,F_}()),lt=vt(function(){if(V_)return H_;V_=1,Object.defineProperty(H_,"__esModule",{value:!0}),H_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-pressed"}]}}],type:"widget"};return H_.default=e,H_}()),ct=vt(function(){if(U_)return z_;U_=1,Object.defineProperty(z_,"__esModule",{value:!0}),z_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"toolbar"}}],type:"structure"};return z_.default=e,z_}()),pt=vt(function(){if(W_)return G_;W_=1,Object.defineProperty(G_,"__esModule",{value:!0}),G_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tree"}}],type:"widget"};return G_.default=e,G_}()),ut=vt(function(){if(K_)return X_;K_=1,Object.defineProperty(X_,"__esModule",{value:!0}),X_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"treegrid"}}],type:"widget"};return X_.default=e,X_}()),dt=vt(function(){if(Q_)return Y_;Q_=1,Object.defineProperty(Y_,"__esModule",{value:!0}),Y_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"treeitem"}}],type:"widget"};return Y_.default=e,Y_}()),ht=vt(function(){if(J_)return Z_;J_=1,Object.defineProperty(Z_,"__esModule",{value:!0}),Z_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tooltip"}}],type:"structure"};return Z_.default=e,Z_}()),mt=vt(function(){if(ex)return tx;ex=1,Object.defineProperty(tx,"__esModule",{value:!0}),tx.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"video"}}],type:"widget"};return tx.default=e,tx}()),ft=vt(function(){if(nx)return sx;nx=1,Object.defineProperty(sx,"__esModule",{value:!0}),sx.default=void 0;var e={relatedConcepts:[],type:"structure"};return sx.default=e,sx}()),yt=vt(function(){if(rx)return ox;rx=1,Object.defineProperty(ox,"__esModule",{value:!0}),ox.default=void 0;var e={relatedConcepts:[],type:"window"};return ox.default=e,ox}());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",w.default],["DateTimeRole",C.default],["DefinitionRole",k.default],["DescriptionListDetailRole",S.default],["DescriptionListRole",P.default],["DescriptionListTermRole",E.default],["DetailsRole",T.default],["DialogRole",A.default],["DirectoryRole",$.default],["DisclosureTriangleRole",R.default],["DivRole",I.default],["DocumentRole",M.default],["EmbeddedObjectRole",q.default],["FeedRole",L.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",we.default],["OutlineRole",Ce.default],["ParagraphRole",ke.default],["PopUpButtonRole",Se.default],["PreRole",Pe.default],["PresentationalRole",Ee.default],["ProgressIndicatorRole",Te.default],["RadioButtonRole",Ae.default],["RadioGroupRole",$e.default],["RegionRole",Re.default],["RootWebAreaRole",Ie.default],["RowHeaderRole",Me.default],["RowRole",qe.default],["RubyRole",Le.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]}))}},wt=(0,e.default)(xt,xt.entries());return Ty.default=wt,Ty}function cx(){if(ix)return Cy;ix=1,Object.defineProperty(Cy,"__esModule",{value:!0}),Cy.default=void 0;var e=n(Py()),t=n(lx());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 Cy.default=u,Cy}var px,ux={};function dx(){if(px)return ux;px=1,Object.defineProperty(ux,"__esModule",{value:!0}),ux.default=void 0;var e=n(Py()),t=n(lx());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 ux.default=u,ux}var hx,mx,fx={};function yx(){if(hx)return fx;hx=1,Object.defineProperty(fx,"__esModule",{value:!0}),fx.default=void 0;var e=n(lx()),t=n(Py());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 fx.default=u,fx}var vx=function(){if(mx)return wy;mx=1,Object.defineProperty(wy,"__esModule",{value:!0}),wy.elementAXObjects=wy.AXObjects=wy.AXObjectRoles=wy.AXObjectElements=void 0;var e=r(cx()),t=r(dx()),n=r(lx()),s=r(yx());function r(e){return e&&e.__esModule?e:{default:e}}var a=e.default;wy.AXObjectElements=a;var i=t.default;wy.AXObjectRoles=i;var o=n.default;wy.AXObjects=o;var l=s.default;return wy.elementAXObjects=l,wy}();const gx="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(" "),bx={a:["href"],area:["alt","aria-label","aria-labelledby"],html:["lang"],iframe:["title"],img:["alt"],object:["title","aria-label","aria-labelledby"]},_x=["blink","marquee"],xx=["h1","h2","h3","h4","h5","h6"],wx=["button","input","keygen","meter","output","progress","select","textarea"],Cx=["keypress","keydown","keyup","click","contextmenu","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","dragstart","drop","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup"],kx=["click","mousedown","mouseup","keypress","keydown","keyup"],Sx=new Map([["header","banner"],["footer","contentinfo"]]),Px=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"]]),Ex=new Map([["command","menuitem"],["checkbox","menuitemcheckbox"],["radio","menuitemradio"]]),Tx=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"]]),Ax={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"],Rx=["shipping","billing"],Ix=["","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"],Mx=["home","work","mobile","fax","pager"],qx=["tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"],Lx={Interactive:"interactive",NonInteractive:"non-interactive",Static:"static"},Ox=["meta","html","script","style"],Nx=xy.roles.keys(),Dx=Nx.filter((e=>xy.roles.get(e)?.abstract)),jx=Nx.filter((e=>!Dx.includes(e))),Bx=jx.filter((e=>{const t=xy.roles.get(e);return!["toolbar","tabpanel","generic","cell"].includes(e)&&!t?.superClass.some((e=>e.includes("widget")||e.includes("window")))})).concat("progressbar"),Fx=jx.filter((e=>!Bx.includes(e)&&"generic"!==e)),Vx=["presentation","none"],Hx=[],Ux=[];for(const[e,t]of xy.elementRoles.entries())[...t].every((e=>"generic"!==e&&Bx.includes(e)))&&Hx.push(e),[...t].every((e=>Fx.includes(e)))&&Ux.push(e);const zx=[...vx.AXObjects.keys()].filter((e=>"widget"===vx.AXObjects.get(e).type)),Wx=[],Gx=[],Kx=[...vx.AXObjects.keys()].filter((e=>["windows","structure"].includes(vx.AXObjects.get(e).type)));for(const[e,t]of vx.elementAXObjects.entries())[...t].every((e=>zx.includes(e)))&&Wx.push(e),[...t].every((e=>Kx.includes(e)))&&Gx.push(e);function Xx(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)switch(t.type){case"Attribute":Yi(t)?a.add(t.name.slice(2)):(i.push(t),s.set(t.name,t),"contenteditable"===t.name&&(c=!0));break;case"SpreadAttribute":l=!0;break;case"BindDirective":ae(t.name)&&(u=!0);break;case"OnDirective":a.add(t.name)}for(const t of e.attributes){if("Attribute"!==t.type)continue;const c=t.name.toLowerCase();if(c.startsWith("aria-")){Ox.includes(e.name)&&Ne(t,e.name);const n=c.slice(5);if(!gx.includes(n)){Ze(t,n,q(n,gx))}"aria-hidden"===c&&v.test(e.name)&&je(t,e.name);let r=cw(t);const a=xy.aria.get(c);void 0!==a&&hw(t,c,a,r),"aria-activedescendant"!==c||o||ew(e.name,s)||s.has("tabindex")||l||Oe(t)}switch(c){case"role":{Ox.includes(e.name)&&Ve(t,e.name);const c=cw(t);if("string"!=typeof c)break;for(const p of c.split(r)){const r=p;if(r&&ow(r))ze(t,r);else if(r&&!Nx.includes(r)){et(t,r,q(r,Nx))}r!==rw(e.name,s)||["ul","ol","li"].includes(e.name)||"a"===e.name&&!s.has("href")||Ke(t,r);if(!dw(n.path,["section","article"])){r===Sx.get(e.name)&&Ke(t,r)}if(!o&&!sw(r,e.name,s)){const e=xy.roles.get(r);if(e){const n=Object.keys(e.requiredProps),s=!l&&n.some((e=>!i.find((t=>t.name===e))));s&&Qe(t,r,rl(n.map((e=>`"${e}"`)),"and"))}}if(!l&&!Jx(s)&&!Yx(e.name,s)&&!Qx(r)&&iw(r)&&nw(e.name,s)&&!s.get("tabindex")){[...a].some((e=>Cx.includes(e)))&&Fe(e,r)}!l&&ew(e.name,s)&&(aw(r)||Qx(r))&&We(e,e.name,r),!l&&tw(e.name,s)&&iw(r)&&!Ax[e.name]?.includes(r)&&Ge(e,e.name,r)}break}case"accesskey":Le(t);break;case"autofocus":"dialog"===e.name||dw(n.path,["dialog"])||De(t);break;case"scope":o||"th"===e.name||He(t);break;case"tabindex":{const e=cw(t);!isNaN(e)&&+e>0&&Xe(t);break}}}const d=s.get("role"),h=lw(d);if(a.has("click")){const t=null!==h&&!Qx(h);if(!o&&!Yx(e.name,s)&&(!d||t)&&!ew(e.name,s)&&!l){a.has("keydown")||a.has("keyup")||a.has("keypress")||function(e){qe(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:rw(e.name,s);if(!o&&!ew(e.name,s)&&!iw(h)){const t=s.get("tabindex"),n=lw(t);t&&(null===n||Number(n)>=0)&&function(e){qe(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&&xy.roles.has(m)){const{props:t}=xy.roles.get(m),n=xy.aria.keys().filter((e=>!(e in t))),s=m&&void 0===d;for(const t of i)n.includes(t.name)&&(s?Je(t,t.name,m,e.name):Ye(t,t.name,m))}if(!l&&!c&&!Yx(e.name,s)&&!Qx(h)&&(!ew(e.name,s)&&aw(h)||tw(e.name,s)&&!d)){[...a].some((e=>kx.includes(e)))&&function(e,t){qe(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||Yx(e.name,s)||Qx(h)||ew(e.name,s)||iw(h)||tw(e.name,s)||aw(h)||ow(h))){const t=[...a].filter((e=>Cx.includes(e)));t.length>0&&function(e,t,n){qe(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,rl(t))}l||!a.has("mouseover")||a.has("focus")||Ue(e,"mouseover","focus"),l||!a.has("mouseout")||a.has("blur")||Ue(e,"mouseout","blur");const f=s.has("aria-label")||s.has("aria-labelledby");switch(e.name){case"a":case"button":{const t="true"===cw(s.get("aria-hidden"))||null!==cw(s.get("inert"));if(l||t||f||pw(e)||function(e){qe(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),"button"===e.name)break;const n=s.get("href")||s.get("xlink:href");if(n){const e=lw(n);null!==e&&(""===e||"#"===e||_.test(e))&&function(e,t,n){qe(e,"a11y_invalid_attribute",`'${t}' is not a valid ${n} attribute\nhttps://svelte.dev/e/a11y_invalid_attribute`)}(n,e,n.name)}else if(!l){const t=cw(s.get("id")),n=cw(s.get("name")),r=cw(s.get("aria-disabled"));t||n||"true"===r||mw(e,["href"])}break}case"input":{const t=s.get("type"),n=lw(t);if("image"===n&&!l){const t=["alt","aria-label","aria-labelledby"];t.some((e=>s.has(e)))||mw(e,t,'input type="image"')}const a=s.get("autocomplete");if(t&&a){const e=cw(a);(function(e){if(!0===e)return!1;if(!e)return!0;const t=e.trim().toLowerCase().split(r);"string"==typeof t[0]&&t[0].startsWith("section-")&&t.shift();Rx.includes(t[0])&&t.shift();if(Ix.includes(t[0]))t.shift();else{if(Mx.includes(t[0])&&t.shift(),!qx.includes(t[0]))return!1;t.shift()}"webauthn"===t[0]&&t.shift();return 0===t.length})(e)||function(e,t,n){qe(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??"...")}break}case"img":{const t=lw(s.get("alt")),n=cw(s.get("aria-hidden"));!t||n||l||x.test(t)&&function(e){qe(e,"a11y_img_redundant_alt","Screenreaders already announce `<img>` elements as an image\nhttps://svelte.dev/e/a11y_img_redundant_alt")}(e);break}case"label":{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&&(wx.includes(e.name)||"slot"===e.name)?n=!0:t()}}),n};l||s.has("for")||n(e)||function(e){qe(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);break}case"video":{const t=s.get("aria-hidden"),n=t&&cw(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"===cw(e)))),r||function(e){qe(e,"a11y_media_has_caption",'`<video>` elements must have a `<track kind="captions">`\nhttps://svelte.dev/e/a11y_media_has_caption')}(e);break}case"figcaption":dw(n.path,["figure"])||function(e){qe(e,"a11y_figcaption_parent","`<figcaption>` must be an immediate child of `<figure>`\nhttps://svelte.dev/e/a11y_figcaption_parent")}(e);break;case"figure":{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){qe(e,"a11y_figcaption_index","`<figcaption>` must be first or last child of `<figure>`\nhttps://svelte.dev/e/a11y_figcaption_index")}(t[n]);break}}if(!l&&"a"!==e.name){const t=bx[e.name];if(t){t.some((e=>s.has(e)))||mw(e,t)}}_x.includes(e.name)&&function(e,t){qe(e,"a11y_distracting_elements",`Avoid \`<${t}>\` elements\nhttps://svelte.dev/e/a11y_distracting_elements`)}(e,e.name),l||f||u||!xx.includes(e.name)||pw(e)||function(e,t){qe(e,"a11y_missing_content",`\`<${t}>\` element should contain text\nhttps://svelte.dev/e/a11y_missing_content`)}(e,e.name)}function Qx(e){return Vx.includes(e)}function Yx(e,t){if("input"===e){if("hidden"===cw(t.get("type")))return!0}const n=t.get("aria-hidden");if(!n)return!1;const s=cw(n);return null===s||(!0===s||"true"===s)}function Jx(e){if(cw(e.get("disabled")))return!0;const t=e.get("aria-disabled");if(t){if("true"===cw(t))return!0}return!1}function Zx(e,t){return Ux.some((n=>uw(n,e,t)))?Lx.Interactive:"header"!==e&&Hx.some((n=>uw(n,e,t)))?Lx.NonInteractive:Wx.some((n=>uw(n,e,t)))?Lx.Interactive:Gx.some((n=>uw(n,e,t)))?Lx.NonInteractive:Lx.Static}function ew(e,t){return Zx(e,t)===Lx.Interactive}function tw(e,t){return Zx(e,t)===Lx.NonInteractive}function nw(e,t){return Zx(e,t)===Lx.Static}function sw(e,t,n){for(const[s,r]of vx.elementAXObjects.entries())if(s.name===t&&(!s.attributes||s.attributes.every((e=>n.has(e.name)&&cw(n.get(e.name))===e.value))))for(const t of r){const n=vx.AXObjectRoles.get(t);if(n)for(const{name:t}of n)if(t===e)return!0}return!1}function rw(e,t){return"menuitem"===e?function(e){const t=e.get("type");if(!t)return;const n=lw(t);return n?Ex.get(n):void 0}(t):"input"===e?function(e){const t=e.get("type");if(!t)return;const n=lw(t);if(!n)return;return e.has("list")&&$x.includes(n)?"combobox":Tx.get(n)}(t):Px.get(e)}function aw(e){return Bx.includes(e)}function iw(e){return Fx.includes(e)}function ow(e){return Dx.includes(e)}function lw(e){const t=cw(e);return!0===t?null:t}function cw(e){return e?!0===e.value||(Gi(e)?e.value[0].data:null):null}function pw(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(!pw(t))continue}return!0}}function uw(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===lw(t))})))}function dw(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 hw(e,t,n,s){const a=n.type;if(null!==s)switch(!0===s&&(s=""),a){case"id":case"string":""===s&&Be(e,t,"non-empty string");break;case"number":(""===s||isNaN(+s))&&Be(e,t,"number");break;case"boolean":"true"!==s&&"false"!==s&&function(e,t){qe(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);break;case"idlist":""===s&&function(e,t){qe(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);break;case"integer":""!==s&&Number.isInteger(+s)||function(e,t){qe(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);break;case"token":{const r=(n.values??[]).map((e=>e.toString()));r.includes(s.toLowerCase())||function(e,t,n){qe(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,rl(r.map((e=>`"${e}"`))));break}case"tokenlist":{const a=(n.values??[]).map((e=>e.toString()));s.toLowerCase().split(r).some((e=>!a.includes(e)))&&function(e,t,n){qe(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,rl(a.map((e=>`"${e}"`))));break}case"tristate":"true"!==s&&"false"!==s&&"mixed"!==s&&function(e,t){qe(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)}}function mw(e,t,n=e.name){!function(e,t,n,s){qe(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])}const fw=["preventDefault","stopPropagation","stopImmediatePropagation","capture","once","passive","nonpassive","self","trusted"];function yw(e,t){let n=!1,s=null,r=null;for(const a of e.attributes)if("Attribute"===a.type){const n=Ki(a);if(t.state.analysis.runes&&(lp(a,e),n)){const e=Xi(a);if("SequenceExpression"===e.type){let n=e.start;for(;--n>0;){const s=t.state.analysis.source[n];if("("===s)break;"{"===s&&Mr(e)}}}if(g.test(a.name)&&Ir(a,a.name),a.name.startsWith("on")&&a.name.length>2){n||Rr(a);const e=Xi(a);"Identifier"!==e.type||e.name!==a.name||t.state.scope.get(e.name)||dt(a,a.name)}"slot"===a.name&&cp(t,a),"is"===a.name&&ut(a);const s=vw.get(a.name);s&&ht(a,a.name,s),op(a)}else if("AnimateDirective"===a.type){const e=t.path.at(-2);"EachBlock"!==e?.type?Tr(a):e.key?e.body.nodes.filter((e=>"Comment"!==e.type&&"ConstTag"!==e.type&&("Text"!==e.type||""!==e.data.trim()))).length>1&&Tr(a):Ar(a),n?Er(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?Ra(a,t):$a(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(!fw.includes(n)){Kr(a,`${fw.slice(0,-1).join(", ")} or ${fw.at(-1)}`)}"passive"===n?e=!0:"nonpassive"!==n&&"preventDefault"!==n||(t=n),e&&t&&Xr(a,"passive",t)}}}const vw=new Map([["className","class"],["htmlFor","for"]]);function gw(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(gw(t.get(r.initial),t,n))continue}return!1}}return!0}const bw=["onerror","failed","pending"];function _w(e,t){if(e!==t)throw new Error("Assertion failed")}const xw={_(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(..._t(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(..._t(e.start+2,e.value,t.analysis.runes))}a.length>0&&function(e){const t=new Set([...Se.at(-1)||[],...e]);Se.push(t)}(a),Pe.set(e,structuredClone(Se));const i=t.scopes.get(e);n(void 0!==i&&i!==t.scope?{...t,scope:i}:t),a.length>0&&Se.pop()},ArrowFunctionExpression:function(e,t){np(e,t)},AssignmentExpression:function(e,t){if(Ul(e,e.left,t),t.state.reactive_statement){if(null!==("MemberExpression"===e.left.type?Wi(e.left):e.left))for(const n of Zi(e.left)){const e=t.state.scope.get(n.name);e&&t.state.reactive_statement.assignments.add(e)}}t.state.expression&&(t.state.expression.has_assignment=!0),t.next()},AttachTag:function(e,t){sp(t.path),t.next({...t.state,expression:e.metadata.expression})},Attribute:function(e,t){t.next();const n=t.path.at(-1);if("RegularElement"===n.type&&"value"===e.name&&"option"===n.name&&sp(t.path),Yi(e)&&sp(t.path),ne(e.name)&&sp(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||(sp(t.path),e.metadata.needs_clsx=!0),!0!==e.value){for(const t of Qi(e.value))"ExpressionTag"===t.type&&"FunctionExpression"!==t.expression.type&&t.expression.type;if(Yi(e)){const n=t.path.at(-1);"RegularElement"!==n?.type&&"SvelteElement"!==n?.type||(t.state.analysis.uses_event_attributes=!0);const s=Xi(e),r=function(e,t,n){if(!t||!Q(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 rp;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 rp;if(null!=a)for(const{path:e}of a.references){const t=e.at(-1);if(void 0===t)return rp;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&&Yi(n)){s=e.at(-3);r=ap(n.name)}if(s&&r){if("RegularElement"!==s.type||s.metadata.has_spread||!Q(r))return rp}else if("FunctionDeclaration"!==t.type&&"VariableDeclarator"!==t.type)return rp}if(n.state.analysis.exports.find((e=>e.name===t.name)))return rp;a?.is_function()&&(r=a.initial)}if(null==r||r.params.length>1)return rp;const i=new Set,o=r.metadata.scope;for(const[e]of o.references){if("arguments"===e||"$host"===e)return rp;if("store_sub"===o.get(`$${e}`)?.kind)return rp;const t=o.get(e),s=n.state.scope.get(e);if(null!==s&&"SnippetBlock"===s.initial?.type&&!s.initial.metadata.can_hoist)return rp;if(null!==s&&null!==t&&s.node!==t.node&&o.declarations.get(e)!==t)return rp;if(null!==t&&"store_sub"===t.kind&&i.has(e.slice(1)))return rp;if(null!==t&&"EachBlock"===t.initial?.type)return rp;if(null!==t&&("rest_param"===t.declaration_kind||(!n.state.analysis.runes&&"each"===t.kind||"normal"===t.kind)&&t.updated))return rp;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(Gl(e.pending),Gl(e.then),Gl(e.catch),t.state.analysis.runes){if(Wl(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},":")}}sp(t.path),t.visit(e.expression,{...t.state,expression:e.metadata.expression}),e.pending&&t.visit(e.pending),e.then&&t.visit(e.then),e.catch&&t.visit(e.catch)},AwaitExpression:function(e,t){let n="instance"===t.state.ast_type&&1===t.state.function_depth;t.state.expression&&(t.state.expression.has_await=!0,t.state.fragment&&t.path.some((e=>"ConstTag"===e.type))&&(t.state.fragment.metadata.has_await=!0),n=!0),n&&(t.state.options.experimental.async||function(e){Us(e,"experimental_async","Cannot use `await` in deriveds and template expressions, or at the top level of a component, unless the `experimental.async` compiler option is `true`\nhttps://svelte.dev/e/experimental_async")}(e),t.state.analysis.runes||function(e){Us(e,"legacy_await_invalid","Cannot use `await` in deriveds and template expressions, or at the top level of a component, unless in runes mode\nhttps://svelte.dev/e/legacy_await_invalid")}(e)),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 ip){const t=ip[e.name];if(t.valid_elements&&!t.valid_elements.includes(n.name)&&Nr(e,e.name,t.valid_elements.map((e=>`<${e}>`)).join(", ")),t.invalid_elements&&t.invalid_elements.includes(n.name)){const t=Object.entries(ip).filter((([e,t])=>t.valid_elements?.includes(n.name)||!t.valid_elements&&!t.invalid_elements?.includes(n.name))).map((([e])=>e)).sort();Lr(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&&!Gi(t)?"value"===e.name&&!0!==t.value||function(e){Us(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&&Nr(e,e.name,'<input type="checkbox">'),"files"===e.name&&"file"!==t?.value[0].data&&Nr(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&&!Gi(e)&&!0!==e.value));e&&function(e){Us(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&&ce(n.name)&&Nr(e,e.name,"non-<svg> elements. Use 'clientWidth' for <svg> instead"),ae(e.name)){const t=n.attributes.find((e=>"Attribute"===e.type&&"contenteditable"===e.name));t?Gi(t)||!0===t.value||function(e){Us(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){Us(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=q(e.name,Object.keys(ip));if(t){const s=ip[t];s.valid_elements&&!s.valid_elements.includes(n.name)||Lr(e,e.name,`Did you mean '${t}'?`)}Lr(e,e.name)}if("SequenceExpression"===e.expression.type){"group"===e.name&&function(e){Us(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||Or(e,e.name);return 2!==e.expression.expressions.length&&qr(e),void sp(t.path)}Ul(e,e.expression,t);const s=e.expression,r=Wi(s);null===r&&qr(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){Us(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){Us(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]=eo(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(...eo(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){qe(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=ro(t.path,-1),s=mc(e,t.state.scope);if(s&&"$inspect"!==s)for(const t of e.arguments)"SpreadElement"===t.type&&ir(e,s);switch(s){case null:Kl(e.callee,t.state.scope)||(t.state.analysis.needs_context=!0);break;case"$bindable":e.arguments.length>1&&sr(e,"$bindable","zero or one arguments"),"AssignmentPattern"===n.type&&"ObjectPattern"===t.path.at(-3)?.type&&"VariableDeclarator"===t.path.at(-4)?.type&&"$props"===mc(t.path.at(-4).init,t.state.scope)||function(e){Us(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?nr(e,"$host"):"module"!==t.state.ast_type&&t.state.analysis.custom_element||function(e){Us(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&&Zs(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){Us(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&&nr(e,s);break;case"$props.id":{const r=ro(t.path,-2);t.state.analysis.props_id&&Zs(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){Us(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&&nr(e,s),t.state.analysis.props_id=n.id;break}case"$state":case"$state.raw":case"$derived":case"$derived.by":{const r=function(e,t){return"VariableDeclarator"===e.type&&"ConstTag"!==ro(t.path,-3).type}(n,t)||function(e){return"PropertyDefinition"===e.type&&!e.static&&!e.computed}(n)||function(e,t){if("AssignmentExpression"===e.type&&"="===e.operator&&"MemberExpression"===e.left.type&&"ThisExpression"===e.left.object.type&&("Identifier"===e.left.property.type&&!e.left.computed||"PrivateIdentifier"===e.left.property.type||"Literal"===e.left.property.type)){const e=ro(t.path,-5);return"MethodDefinition"===e?.type&&"constructor"===e.kind}return!1}(n,t);r||hr(e,s),"$derived"!==s&&"$derived.by"!==s||1===e.arguments.length?e.arguments.length>1&&sr(e,s,"zero or one arguments"):sr(e,s,"exactly one argument");break}case"$effect":case"$effect.pre":"ExpressionStatement"!==n.type&&function(e){Us(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&&sr(e,s,"exactly one argument"),t.state.analysis.needs_context=!0;break;case"$effect.tracking":0!==e.arguments.length&&nr(e,s);break;case"$effect.root":case"$inspect().with":case"$state.snapshot":1!==e.arguments.length&&sr(e,s,"exactly one argument");break;case"$effect.pending":t.state.expression&&(t.state.expression.has_state=!0);break;case"$inspect":e.arguments.length<1&&sr(e,s,"one or more arguments");break;case"$inspect.trace":{e.arguments.length>1&&sr(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){Us(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){Us(e,"inspect_trace_generator","`$inspect.trace(...)` cannot be used inside a generator function\nhttps://svelte.dev/e/inspect_trace_generator")}(e),be){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 ge.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=`(${ke(a)})`;t.state.scope.tracing=Pi(di(e+" "+n))}t.state.analysis.tracing=!0}break}}if("$derived"===s){const n=Jo();t.next({...t.state,function_depth:t.state.function_depth+1,expression:n}),n.has_await&&t.state.analysis.async_deriveds.add(e)}else"$inspect"===s?t.next({...t.state,function_depth:t.state.function_depth+1}):t.next();t.state.expression&&(!Xl(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){if(!t.state.analysis.runes)return void t.next();const n=[];for(const t of e.body)"MethodDefinition"!==t.type&&"PropertyDefinition"!==t.type||"PrivateIdentifier"!==t.key.type||n.push(t.key.name);const s=new Map,r=new Map;t.state.analysis.classes.set(e,s);let a=null;function i(e,n,a){const i=Zo(n);if(null===i)return;const o=mc(a,t.state.scope);if(o&&function(e){return de.includes(e)}(o)){s.has(i)&&function(e,t){Us(e,"state_field_duplicate",`\`${t}\` has already been declared on this class\nhttps://svelte.dev/e/state_field_duplicate`)}(e,i);const t=("AssignmentExpression"!==e.type&&e.static?"@":"")+i,l=r.get(t);!l||1===l.length&&"prop"===l[0]||Xs(e,t),s.set(i,{node:e,type:o,key:"PrivateIdentifier"===n.type?n:null,value:a})}}for(const t of e.body){if("PropertyDefinition"===t.type&&!t.computed&&!t.static){i(t,t.key,t.value);const e=Zo(t.key);if(!r.get(e)){r.set(e,[t.value?"assigned_prop":"prop"]);continue}Xs(t,e)}if("MethodDefinition"===t.type)if("constructor"===t.kind)a=t;else if(!t.computed){const e=(t.static?"@":"")+Zo(t.key),n=r.get(e);if(!n){r.set(e,[t.kind]);continue}if((n.includes(t.kind)||n.includes("prop")||n.includes("assigned_prop"))&&Xs(t,e),"get"===t.kind){if(1===n.length&&"set"===n[0]){n.push("get");continue}}else{if("set"!==t.kind){n.push(t.kind);continue}if(1===n.length&&"get"===n[0]){n.push("set");continue}}Xs(t,e)}}if(a)for(const e of a.value.body.body){if("ExpressionStatement"!==e.type)continue;if("AssignmentExpression"!==e.expression.type)continue;const{left:t,right:n}=e.expression;"MemberExpression"===t.type&&("ThisExpression"===t.object.type&&(t.computed&&"Literal"!==t.property.type||i(e.expression,t.property,n)))}for(const[e,t]of s){if("#"===e[0])continue;let s=e.replace(f,"_");for(;n.includes(s);)s="_"+s;n.push(s),t.key=pi(s)}t.next({...t.state,state_fields:s})},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){qe(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){sp(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(".")),up(e,t)},ConstTag:function(e,t){t.state.analysis.runes&&Wl(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){Us(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);const r=e.declaration.declarations[0];t.visit(r.id),t.visit(r.init,{...t.state,expression:e.metadata.expression})},DebugTag:function(e,t){t.state.analysis.runes&&Wl(e,t.state,"@"),t.next()},EachBlock:function(e,t){Wl(e,t.state,"#"),Gl(e.body),Gl(e.fallback);const n=e.context;if("Identifier"!==n?.type||"$state"!==n.name&&"$derived"!==n.name||hr(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),!t.state.analysis.runes){let n=!!e.context&&Zi(e.context).some((e=>{const n=t.state.scope.get(e.name);return!!n?.mutated}));for(const t of e.metadata.expression.dependencies)hp(t,e.metadata.transitive_deps);if(n)for(const t of e.metadata.transitive_deps)"normal"!==t.kind||"const"!==t.declaration_kind&&"let"!==t.declaration_kind&&"var"!==t.declaration_kind||(t.kind="state")}sp(t.path)},ExportDefaultDeclaration:function(e,t){t.state.ast_type?Js(e):"Identifier"===e.declaration.type&&Yl(e,t.state.scope,e.declaration.name),t.next()},ExportNamedDeclaration:function(e,t){if(t.next(),t.state.ast_type&&e.specifiers.some((e=>"Identifier"===e.exported.type?"default"===e.exported.name:"default"===e.exported.value))&&Js(e),"VariableDeclaration"===e.declaration?.type){t.state.analysis.runes&&"instance"===t.state.ast_type&&"let"===e.declaration.kind&&function(e){Us(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 Zi(n.id)){const n=t.state.scope.get(s.name);n&&("derived"===n.kind&&Ks(e),"state"!==n.kind&&"raw_state"!==n.kind||!n.reassigned||dr(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 Zi(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 Yl(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){qe(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=sl("#text",t.state.parent_element);n&&ea(e,n)}sp(t.path),t.next({...t.state,expression:e.metadata.expression})},Fragment:function(e,t){t.next({...t.state,fragment:e})},FunctionDeclaration:function(e,t){t.state.analysis.runes&&null!==e.id&&Ql(t.state.scope.get(e.id.name)),np(e,t)},FunctionExpression:function(e,t){np(e,t)},HtmlTag:function(e,t){t.state.analysis.runes&&Wl(e,t.state,"@"),sp(t.path),t.next({...t.state,expression:e.metadata.expression})},Identifier:function(e,t){let n=t.path.length,s=t.path[--n];if(!Vl(e,s))return;if(sp(t.path),"arguments"!==e.name||t.path.some((e=>"FunctionDeclaration"===e.type||"FunctionExpression"===e.type))||function(e){Us(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&&me(e.name)&&null===t.state.scope.get(e.name)&&"store_sub"!==t.state.scope.get(e.name.slice(1))?.kind){let r=e,a=e.name;for(;"MemberExpression"===s.type;)s.computed&&rr(s),a+=`.${s.property.name}`,r=s,s=t.path[--n],me(a)||("$effect.active"===a&&lr(s,"$effect.active","$effect.tracking"),"$state.frozen"===a&&lr(s,"$state.frozen","$state.raw"),"$state.is"===a&&or(s,"$state.is"),ar(s,a));"CallExpression"!==s.type&&function(e){Us(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);if(t.state.analysis.runes||("$$props"===e.name&&(t.state.analysis.uses_props=!0),"$$restProps"===e.name&&(t.state.analysis.uses_rest_props=!0)),r){if(t.state.expression&&(t.state.expression.dependencies.add(r),t.state.expression.references.add(r),t.state.expression.has_state||=!("static"===r.kind||"prop"!==r.kind&&"bindable_prop"!==r.kind&&"rest_prop"!==r.kind&&r.is_function()||t.state.scope.evaluate(e).is_known)),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&&!Tp(r.initial.arguments[0],t.state.scope))||"raw_state"===r.kind||"derived"===r.kind)&&("AssignmentExpression"!==s.type||s.left!==e)&&"UpdateExpression"!==s.type){let n="closure",s=t.path.length;for(;s--;){const e=t.path[s];if("ArrowFunctionExpression"===e.type||"FunctionDeclaration"===e.type||"FunctionExpression"===e.type)break;if("CallExpression"===e.type&&e.arguments.includes(t.path[s+1])){const s=mc(e,t.state.scope);if("$state"===s||"$state.raw"===s){n="derived";break}}}!function(e,t,n){qe(e,"state_referenced_locally",`This reference only captures the initial value of \`${t}\`. Did you mean to reference it inside a ${n} instead?\nhttps://svelte.dev/e/state_referenced_locally`)}(e,e.name,n)}if(t.state.reactive_statement&&r.scope===t.state.analysis.module.scope&&r.reassigned&&function(e){qe(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),r.metadata?.is_template_declaration&&t.state.options.experimental.async){let n;for(let s=t.path.length-1;s>=0;s--){const a=t.path[s],i=t.path[s-1];if("SnippetBlock"===a.type)n=a.expression.name;else if(n&&i&&"Fragment"===a.type&&(Xo(i)||"SvelteBoundary"===i.type&&("failed"===n||"pending"===n))){if(Xo(i)?i.metadata.scopes.default!==r.scope:t.state.scopes.get(a)!==r.scope)break;Hr(e,e.name)}}}}},IfBlock:function(e,t){Gl(e.consequent),Gl(e.alternate),t.state.analysis.runes&&Wl(e,t.state,e.elseif?":":"#"),sp(t.path),t.visit(e.test,{...t.state,expression:e.metadata.expression}),t.visit(e.consequent),e.alternate&&t.visit(e.alternate)},ImportDeclaration:function(e,t){if(t.state.analysis.runes){const t=e.source.value;if(t.startsWith("svelte/internal")&&function(e){Us(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||cr(t,t.imported.name))}},KeyBlock:function(e,t){Gl(e.fragment),t.state.analysis.runes&&Wl(e,t.state,"#"),sp(t.path),t.visit(e.expression,{...t.state,expression:e.metadata.expression}),t.visit(e.fragment)},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){Us(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=Zi(e.body.expression.left);if("MemberExpression"===e.body.expression.left.type){const t=Wi(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){qe(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){Us(e,"let_directive_invalid_placement","`let:` directive at invalid position\nhttps://svelte.dev/e/let_directive_invalid_placement")}(e)},Literal:function(e){"string"==typeof e.value&&b.test(e.value)&&tt(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("$$")&&er(e.property)}t.state.expression&&(t.state.expression.has_member_expression=!0,t.state.expression.has_state||=!Xl(e,t)),Kl(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){qe(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){qe(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),sp(t.path),t.next({...t.state,expression:e.metadata.expression})},PropertyDefinition:function(e,t){const n=Zo(e.key),s=n&&t.state.state_fields.get(n);s&&e!==s.node&&e.value&&e.start<s.node.start&&ur(e),t.next()},RegularElement:function(e,t){if(yw(e,t),Xx(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&&Ea(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(Yo("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(Yo("value",t.start,t.end,[t]))}const n=t.state.scope.get(e.name);if(null!==n&&"import"===n.declaration_kind&&0===n.references.length&&function(e,t){qe(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(ce(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=ue(e.name),Qo(e)&&e.attributes.length>0&&sp(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=nl(e.name,r);t&&(s?ft(e,t):ea(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=sl(e.name,t.state.parent_element);r&&(s?ft(e,r):ea(e,r)),n=!0}}}const s=e.name.replace(/[a-zA-Z-]*:/g,"");if("/"!==t.state.analysis.source[e.end-2]||z(s)||ce(s)||ue(s)||function(e,t){qe(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){Wl(e,t.state,"@"),e.metadata.path=[...t.path];const n=io(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&&pp(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=io(e.expression).arguments;for(const e of i)"SpreadElement"===e.type&&ta(e);"MemberExpression"===s.type&&"Identifier"===s.property.type&&["bind","apply","call"].includes(s.property.name)&&function(e){Us(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),sp(t.path),t.visit(s,{...t.state,expression:e.metadata.expression});for(const s of n.arguments){const n=Jo();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){qe(e,"slot_element_deprecated","Using `<slot>` to render parent content is deprecated. Use `{@render ...}` tags instead\nhttps://svelte.dev/e/slot_element_deprecated")}(e),sp(t.path);let n="default";for(const t of e.attributes)"Attribute"===t.type?"name"===t.name&&(Gi(t)||ca(t),n=t.value[0].data,"default"===n&&pa(t)):"SpreadAttribute"!==t.type&&"LetDirective"!==t.type&&la(t);t.state.analysis.slot_names.set(n,e),t.next()},SnippetBlock:function(e,t){t.state.analysis.snippets.add(e),Gl(e.body),t.state.analysis.runes&&Wl(e,t.state,"#");for(const t of e.parameters)"RestElement"===t.type&&ua(t);t.next({...t.state,parent_element:null});const n=1===t.path.length&&"Fragment"===t.path[0].type&&gw(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)}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){Us(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){Us(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){sp(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){Us(e,"style_directive_invalid_modifier","`style:` directive can only use the `important` modifier\nhttps://svelte.dev/e/style_directive_invalid_modifier")}(e),sp(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 Qi(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,e.metadata.expression.has_await||=t.metadata.expression.has_await)}},SvelteBody:function(e,t){ql(e);for(const t of e.attributes)("SpreadAttribute"===t.type||"Attribute"===t.type&&!Yi(t))&&da(t);t.next()},SvelteComponent:function(e,t){t.state.analysis.runes&&function(e){qe(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),up(e,t)},SvelteDocument:function(e,t){ql(e);for(const t of e.attributes)("SpreadAttribute"===t.type||"Attribute"===t.type&&!Yi(t))&&Zr(t,"svelte:document");t.next()},SvelteElement:function(e,t){yw(e,t),Xx(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&&Gi(e)));if(n)e.metadata.svg=n.value[0].data===I,e.metadata.mathml=n.value[0].data===M;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}}}sp(t.path),t.visit(e.tag,{...t.state,expression:e.metadata.expression});for(const n of e.attributes)t.visit(n);t.visit(e.fragment,{...t.state,parent_element:null})},SvelteFragment:function(e,t){const n=t.path.at(-2);"Component"!==n?.type&&"SvelteComponent"!==n?.type&&function(e){Us(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&&cp(t,n):"LetDirective"!==n.type&&ya(n);t.next({...t.state,parent_element:null})},SvelteHead:function(e,t){for(const t of e.attributes)va(t);sp(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){Us(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){qe(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,fe===ve?"Self":t.state.analysis.name,fe===ve?"Self.svelte":fe.split(/[/\\]/).pop())}up(e,t)},SvelteWindow:function(e,t){ql(e);for(const t of e.attributes)("SpreadAttribute"===t.type||"Attribute"===t.type&&!Yi(t))&&Zr(t,"svelte:window");t.next()},SvelteBoundary:function(e,t){for(const t of e.attributes)"Attribute"===t.type&&bw.includes(t.name)||ha(t),(!0===t.value||Array.isArray(t.value)&&(1!==t.value.length||"ExpressionTag"!==t.value[0].type))&&ma(t);t.next()},TaggedTemplateExpression:function(e,t){t.state.expression&&!Xl(e.tag,t)&&(t.state.expression.has_call=!0,t.state.expression.has_state=!0),t.next()},TemplateElement:function(e){b.test(e.value.cooked??"")&&tt(e)},Text:function(e,t){const n=t.path.at(-1);if("Fragment"===n.type&&t.state.parent_element&&p.test(e.data)){const n=sl("#text",t.state.parent_element);n&&ea(e,n)}b.lastIndex=0;for(const s of e.data.matchAll(b)){let r=!1;if("Fragment"===n.type)for(const s of n.nodes){if(s===e)break;"Comment"===s.type&&(r||=_t(s.start+4,s.data,t.state.analysis.runes).includes("bidirectional_control_characters"))}if(!r){let t=s.index+e.start;tt({start:t,end:t+s[0].length})}}},TransitionDirective:function(e,t){sp(t.path),t.next()},TitleElement:function(e,t){for(const t of e.attributes)Ta(t);for(const t of e.fragment.nodes)"Text"!==t.type&&"ExpressionTag"!==t.type&&Aa(t);t.next()},UpdateExpression:function(e,t){if(Ul(e,e.argument,t),t.state.reactive_statement){const n="MemberExpression"===e.argument.type?Wi(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.state.expression&&(t.state.expression.has_assignment=!0),t.next()},UseDirective:function(e,t){sp(t.path),t.next()},VariableDeclarator:function(e,t){if(function(e,t){const n=Zi(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&&Gs(e.id)}(e,t.state),t.state.analysis.runes){const n=mc(e.init,t.state.scope),{paths:s}=no(e.id,ci("dummy"));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){Us(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.custom_element&&null==t.state.options.customElementOptions?.props){let t;"Identifier"!==e.id.type&&null==(t=e.id.properties.find((e=>"RestElement"===e.type)))||function(e){qe(e,"custom_element_props_identifier","Using a rest element or a non-destructured declaration with `$props()` means that Svelte can't infer what properties to expose when creating a custom element. Consider destructuring all the props or explicitly specifying the `customElement.props` option.\nhttps://svelte.dev/e/custom_element_props_identifier")}(t??e.id)}if(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{_w(e.id.type,"ObjectPattern");for(const n of e.id.properties){if("Property"!==n.type)continue;n.computed&&tr(n),"Identifier"===n.key.type&&n.key.name.startsWith("$$")&&er(n);const e="AssignmentPattern"===n.value.type?n.value.left:n.value;"Identifier"!==e.type&&tr(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){Us(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 ww(e,t,n,s){const r=e?.content??{type:"Program",sourceType:"module",start:-1,end:-1,body:[]},{scope:a,scopes:i,has_await:o}=dc(r,t,n,s);return{ast:r,scope:a,scopes:i,has_await:o}}const Cw=["$$props","$$restProps","$$slots"];function kw(e,n,s){const r=new uc,a=ww(e.module,r,!1,null),i=ww(e.instance,r,!0,a.scope),{scope:o,scopes:l,has_await:c}=dc(e.fragment,r,!1,i.scope),p={ast:e.fragment,scope:o,scopes:l};let u=[];for(const[e,t]of a.scope.references){if("$"!==e[0]||Cw.includes(e))continue;"$"!==e&&"$"!==e[1]||Ys(t[0].node,e);const n=e.slice(1),r=i.scope.get(n),o=r?.initial;if(!1===s.runes||!me(e)||null!==r&&(null===mc(o,i.scope)||"props"!==n&&"$props"===mc(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&&Us(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]))Ys(t[0].node,e);else if(null!==r&&me(e))for(const{node:e,path:s}of t)"CallExpression"===s.at(-1)?.type&&pt(e,n);if(a.ast)for(const{node:e,path:n}of t)e.start>a.ast.start&&e.end<a.ast.end&&null===mc(n.at(-1),a.scope)&&mr(e);u.push((()=>{null!==r&&"normal"===r.kind&&"let"===r.declaration_kind&&r.reassigned&&(r.kind="state")}));i.scope.declare(ci(e),"store_sub","synthetic").references=t,i.scope.references.set(e,t),a.scope.references.delete(e)}}const d=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),h=s.runes??(c||i.has_await||Array.from(a.scope.references.keys()).some(me));if(!h)for(let e of u)e();if(h&&e.module){const t=e.module.attributes.find((e=>"context"===e.name));t&&function(e){qe(e,"script_context_deprecated",'`context="module"` is deprecated, use the `module` attribute instead\nhttps://svelte.dev/e/script_context_deprecated')}(t)}const m=!!s.customElementOptions||s.customElement,f=a.scope.generate(s.name??d);Ae({component_name:f,dev:s.dev,rootDir:s.rootDir,runes:h});const y={name:f,root:r,module:a,instance:i,template:p,comments:e.comments,elements:[],runes:h,maybe_runes:!h&&!1!==s.runes&&![...a.scope.references.keys()].some((e=>["$$props","$$restProps"].includes(e)))&&!i.ast.body.some((e=>"LabeledStatement"===e.type||"ExportNamedDeclaration"===e.type&&(e.declaration&&"VariableDeclaration"===e.declaration.type&&"let"===e.declaration.kind||e.specifiers.some((e=>"Identifier"===e.local.type&&"let"===i.scope.get(e.local.name)?.declaration_kind))))),tracing:!1,classes:new Map,immutable:h||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_mutation_validation:!1,needs_props:!1,event_directive_node:null,uses_event_attributes:!1,custom_element:m,inject_styles:"injected"===s.css||m,accessors:m||!h&&!!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:fe,name:d,hash:H}):"",keyframes:[],has_global:!1},source:n,snippet_renderers:new Map,snippets:new Set,async_deriveds:new Set};if(!h){for(const e of i.ast.body)if("ExportNamedDeclaration"===e.type)if(y.needs_props=!0,e.declaration){if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type)y.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 Zi(t.id))y.exports.push({name:e.name,alias:null});else for(const t of e.declaration.declarations)for(const e of Zi(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?y.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(p.ast,null,{EachBlock(e){const n=p.scopes.get(e);for(const s of n.declarations.values())if(s.updated){const s={scope:n.parent,scopes:p.scopes};t(e.expression,s,{_:hc,Identifier(e,t){if(Vl(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&&y.runes&&rt(t),"customElement"!==t.name||s.customElement||it(t),"immutable"===t.name&&y.runes&&at(t);if(y.runes){const e=a.scope.references.get("$$props");e&&function(e){Us(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){Us(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,p]){t(e,{scope:n,scopes:r,analysis:y,options:s,ast_type:e===i.ast?"instance":e===p.ast?"template":"module",fragment:e===p.ast?e:null,parent_element:null,has_props_rune:!1,component_slots:new Set,expression:null,state_fields:new Map,function_depth:n.function_depth,reactive_statement:null},xw)}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){ct(n.node,t);continue e}}continue t}}ct(n.node,t);continue e}}else{i.scope.declare(ci("$$props"),"rest_prop","synthetic"),i.scope.declare(ci("$$restProps"),"rest_prop","synthetic");for(const{ast:e,scope:n,scopes:r}of[a,i,p]){t(e,{scope:n,scopes:r,analysis:y,options:s,fragment:e===p.ast?e:null,parent_element:null,has_props_rune:!1,ast_type:e===i.ast?"instance":e===p.ast?"template":"module",reactive_statement:null,component_slots:new Set,expression:null,state_fields:new Map,function_depth:n.function_depth},xw)}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}`)||lt(t.node,e)}y.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=yc(n);if(s?.length){!function(e,t){Us(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}(y.reactive_statements)}for(const e of y.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;const e=t.local.name;y.module.scope.get(e)||([...y.snippets].find((t=>t.expression.name===e))?pr(t):Qs(t,e))}y.event_directive_node&&y.uses_event_attributes&&function(e,t){Us(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`)}(y.event_directive_node,y.event_directive_node.name);for(const[e,t]of y.snippet_renderers){t||(e.metadata.snippets=y.snippets);for(const t of e.metadata.snippets)t.metadata.sites.add(e)}if(y.uses_render_tags&&(y.uses_slots||!y.custom_element&&y.slot_names.size>0)){!function(e){Us(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")}(y.slot_names.values().next().value??y.source.indexOf("$$slot"))}if(y.css.ast){!function(e,n){t(e,{keyframes:n.css.keyframes,rule:null,analysis:n},Tc)}(y.css.ast,y);for(const e of y.elements)Dc(y.css.ast,e);const{comment:e}=y.css.ast.content;e&&_t(e.start,e.data,y.runes).includes("css_unused_selector")||t(v=y.css.ast,{stylesheet:v},tp)}var v;for(const e of y.elements){e.metadata.scoped&&Qo(e)&&sp(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(Yo("class",-1,-1,[{type:"Text",data:"",raw:"",start:-1,end:-1}])),s||n||!a||e.attributes.push(Yo("style",-1,-1,[{type:"Text",data:"",raw:"",start:-1,end:-1}]))}return y}const Sw=",".charCodeAt(0),Pw=";".charCodeAt(0),Ew="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Tw=new Uint8Array(64),Aw=new Uint8Array(128);for(let e=0;e<64;e++){const t=Ew.charCodeAt(e);Tw[e]=t,Aw[t]=e}function $w(e,t){let n=0,s=0,r=0;do{const t=e.next();r=Aw[t],n|=(31&r)<<s,s+=5}while(32&r);const a=1&n;return n>>>=1,a&&(n=-2147483648|-n),t+n}function Rw(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(Tw[t])}while(s>0);return t}function Iw(e,t){return!(e.pos>=t)&&e.peek()!==Sw}const Mw="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 qw{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+=Mw.decode(t),this.pos=0)}flush(){const{buffer:e,out:t,pos:n}=this;return n>0?t+Mw.decode(e.subarray(0,n)):t}}class Lw{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 Ow(e){const{length:t}=e,n=new Lw(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=$w(n,r),r<p&&(c=!1),p=r,Iw(n,e)?(a=$w(n,a),i=$w(n,i),o=$w(n,o),Iw(n,e)?(l=$w(n,l),s=[r,a,i,o,l]):s=[r,a,i,o]):s=[r],t.push(s),n.pos++}c||Nw(t),s.push(t),n.pos=e+1}while(n.pos<=t);return s}function Nw(e){e.sort(Dw)}function Dw(e,t){return e[0]-t[0]}function jw(e){const t=new qw;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(Pw),0===o.length)continue;let l=0;for(let e=0;e<o.length;e++){const i=o[e];e>0&&t.write(Sw),l=Rw(t,i[0],l),1!==i.length&&(n=Rw(t,i[1],n),s=Rw(t,i[2],s),r=Rw(t,i[3],r),4!==i.length&&(a=Rw(t,i[4],a)))}}return t.flush()}const Bw=0,Fw=1,Vw=2,Hw=3,Uw=4;class zw{#r;#a;#i=!1;multiline=!1;constructor(e,t=[]){this.#r=e,this.#a=t}indent(){this.#a.push(Vw)}dedent(){this.#a.push(Hw)}margin(){this.#a.push(Bw)}newline(){this.#i=!0,this.#a.push(Fw)}space(){this.#a.push(Uw)}append(e){this.#a.push(e.#a),this.#i&&(this.multiline=!0)}write(e,t){t?.loc?(this.location(t.loc.start.line,t.loc.start.column),this.#a.push(e),this.location(t.loc.end.line,t.loc.end.column)):this.#a.push(e),this.#i&&(this.multiline=!0)}location(e,t){this.#a.push({type:"Location",line:e,column:t})}visit(e){const t=this.#r[e.type];if(!t){let t=`Not implemented: ${e.type}`;throw e.type.includes("TS")&&(t+=" (consider using 'esrap/languages/ts')"),e.type.includes("JSX")&&(t+=" (consider using 'esrap/languages/tsx')"),new Error(t)}this.#r._?this.#r._(e,this,(e=>t(e,this))):t(e,this)}empty(){return!this.#a.some(Gw)}measure(){return Ww(this.#a)}new(){return new zw(this.#r)}}function Ww(e,t=0,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+=Ww(t))}return s}function Gw(e){return Array.isArray(e)?e.some(Gw):"string"==typeof e&&e.length>0}let Kw=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?Kw=e=>window.btoa(unescape(encodeURIComponent(e))):"function"==typeof Buffer&&(Kw=e=>Buffer.from(e,"utf-8").toString("base64"));let Xw=class{version=3;names=[];constructor(e,t){this.sources=[t.sourceMapSource||null],this.sourcesContent=[t.sourceMapContent||null],this.mappings=!1===t.sourceMapEncodeMappings?e:jw(e)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Kw(this.toString())}};function Qw(e,t,n={}){const s=[];new zw(t,s).visit(e);let r="",a=0,i=[],o=[];function l(e){r+=e;for(let t=0;t<e.length;t+=1)"\n"===e[t]?(i.push(o),o=[],a=0):a+=1}let c="\n";const p=n.indent??"\t";let u,d=!1,h=!1,m=!1;function f(e){if(Array.isArray(e))for(let t=0;t<e.length;t+=1)f(e[t]);else"number"!=typeof e?(d?l(h?"\n"+c:c):m&&l(" "),h=d=m=!1,"string"!=typeof e?"Location"===e.type&&o.push([a,0,e.line-1,e.column]):l(e)):e===Fw?d=!0:e===Bw?h=!0:e===Uw?m=!0:e===Vw?c+=p:e===Hw&&(c=c.slice(0,-p.length))}for(let e=0;e<s.length;e+=1)f(s[e]);return i.push(o),{code:r,get map(){return u??=new Xw(i,n)}}}const Yw={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},Jw={"||":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};function Zw(e,t){if("Line"===e.type)t.write(`//${e.value}`);else{t.write("/*");const n=e.value.split("\n");for(let e=0;e<n.length;e+=1)e>0&&t.newline(),t.write(n[e]);t.write("*/")}}var eC=(e={})=>{const t="double"===e.quotes?'"':"'",n=e.comments??[];let s=0;function r(e,t,r){for(;s<n.length;){const a=n[s];if(a&&t&&a.loc.start.line===t.line&&(null===r||sC(a.loc.end,r))){if(e.write(" "),Zw(a,e),s+=1,"Line"!==a.type)continue;e.newline()}break}}function a(e,t,r,a){let i=!0;for(;s<n.length;){const o=n[s];if(!(o&&o.loc&&r&&sC(o.loc.start,r)))break;i&&null!==t&&o.loc.start.line>t.line&&(e.margin(),e.newline()),i=!1,Zw(o,e),o.loc.end.line<r.line?e.newline():a&&e.write(" "),s+=1}}function i(e,t,n,s,i=","){let o=!1,l=-1;const c=[],p=t.map(((s,a)=>{const p=e.new();s&&p.visit(s),c[a]=p.multiline,(a<t.length-1||!s)&&p.write(i);const u=a===t.length-1?n:t[a+1]?.loc?.start||null;return r(p,s?.loc?.end||null,u),l+=p.measure()+1,o||=p.multiline,p}));o||=l>60,o?(e.indent(),e.newline()):s&&l>0&&e.write(" ");let u=null;for(let n=0;n<t.length;n+=1){const s=p[n];null!==u&&((c[n-1]||c[n])&&e.margin(),t[n]&&(o?e.newline():e.write(" "))),e.append(s),u=s}a(e,t[t.length-1]?.loc?.end??null,n,!1),o?(e.dedent(),e.newline()):s&&l>0&&e.write(" ")}function o(e,t){!function(e){if(!e.loc)return void(s=n.length);let t=n[s-1],r=n[s];r&&r.loc&&!sC(r.loc.start,e.loc.start)&&(!t||t.loc&&sC(t.loc.start,e.loc.start))||(s=n.findIndex((t=>t.loc&&e.loc&&!sC(t.loc.start,e.loc.start))),-1===s&&(s=n.length))}(t);let i=null,o=!1;for(let n=0;n<t.body.length;n+=1){const s=t.body[n];if("EmptyStatement"===s.type)continue;const a=e.new();a.visit(s),null!==i&&((a.multiline||o||s.type!==i)&&e.margin(),e.newline()),e.append(a),r(e,s.loc?.end||null,t.body[n+1]?.loc?.end??t.loc?.end??null),i=s.type,o=a.multiline}t.loc&&(e.newline(),a(e,t.body[t.body.length-1]?.loc?.end??null,t.loc.end,!1))}const l={"ArrayExpression|ArrayPattern":(e,t)=>{t.write("["),i(t,e.elements,e.loc?.end??null,!1),t.write("]")},"BinaryExpression|LogicalExpression":(e,t)=>{tC(e.left,e,!1)?(t.write("("),t.visit(e.left),t.write(")")):t.visit(e.left),t.write(` ${e.operator} `),tC(e.right,e,!0)?(t.write("("),t.visit(e.right),t.write(")")):t.visit(e.right)},"BlockStatement|ClassBody":(e,t)=>{if(e.loc){const{line:n,column:s}=e.loc.start;t.location(n,s),t.write("{"),t.location(n,s+1)}else t.write("{");const n=t.new();if(o(n,e),n.empty()||(t.indent(),t.newline(),t.append(n),t.dedent(),t.newline()),e.loc){const{line:n,column:s}=e.loc.end;t.location(n,s-1),t.write("}"),t.location(n,s)}else t.write("}")},"CallExpression|NewExpression":(e,t)=>{"NewExpression"===e.type&&t.write("new ");const a=Yw[e.callee.type]<Yw.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);a?(t.write("("),t.visit(e.callee),t.write(")")):t.visit(e.callee),e.optional&&t.write("?."),e.typeArguments&&t.visit(e.typeArguments);const i=t.new(),o=t.new();t.write("("),t.append(i);const l=t.new(),c=t.new();t.append(l),t.append(c);for(let t=0;t<e.arguments.length;t+=1){const a=t===e.arguments.length-1,i=a?c:l,p=e.arguments[t];a&&p.loc&&n[s]&&n[s].loc&&n[s].loc.start.line<p.loc.start.line&&(l.multiline=!0),i.visit(p),a||i.write(",");const u=a?e.loc?.end??null:e.arguments[t+1]?.loc?.start??null;r(i,p.loc?.end??null,u),a||i.append(o)}t.multiline||=l.multiline||c.multiline,l.multiline?(i.indent(),i.newline(),o.newline(),t.dedent(),t.newline()):o.write(" "),t.write(")")},"ClassDeclaration|ClassExpression":(e,t)=>{e.declare&&t.write("declare "),t.write("class "),e.id&&(t.visit(e.id),t.write(" ")),e.superClass&&(t.write("extends "),t.visit(e.superClass),t.write(" ")),e.implements&&e.implements.length>0&&(t.write("implements"),i(t,e.implements,e.body.loc?.start??null,!0)),t.visit(e.body)},"ForInStatement|ForOfStatement":(e,t)=>{t.write("for "),"ForOfStatement"===e.type&&e.await&&t.write("await "),t.write("("),"VariableDeclaration"===e.left.type?nC(e.left,t):t.visit(e.left),t.write("ForInStatement"===e.type?" in ":" of "),t.visit(e.right),t.write(") "),t.visit(e.body)},"FunctionDeclaration|FunctionExpression":(e,t)=>{e.async&&t.write("async "),t.write(e.generator?"function* ":"function "),e.id&&t.visit(e.id),e.typeParameters&&t.visit(e.typeParameters),t.write("("),i(t,e.params,(e.returnType??e.body).loc?.start??null,!1),t.write(")"),e.returnType&&t.visit(e.returnType),t.write(" "),t.visit(e.body)},"RestElement|SpreadElement":(e,t)=>{t.write("..."),t.visit(e.argument),e.typeAnnotation&&t.visit(e.typeAnnotation)}};return{_(e,t,n){e.loc&&a(t,null,e.loc.start,!0),n(e)},ArrayExpression:l["ArrayExpression|ArrayPattern"],ArrayPattern:l["ArrayExpression|ArrayPattern"],ArrowFunctionExpression:(e,t)=>{e.async&&t.write("async "),t.write("("),i(t,e.params,e.body.loc?.start??null,!1),t.write(") => "),"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.write("("),t.visit(e.body),t.write(")")):t.visit(e.body)},AssignmentExpression(e,t){t.visit(e.left),t.write(` ${e.operator} `),t.visit(e.right)},AssignmentPattern(e,t){t.visit(e.left),t.write(" = "),t.visit(e.right)},AwaitExpression(e,t){if(e.argument){const n=Yw[e.argument.type];n&&n<Yw.AwaitExpression?(t.write("await ("),t.visit(e.argument),t.write(")")):(t.write("await "),t.visit(e.argument))}else t.write("await")},BinaryExpression:l["BinaryExpression|LogicalExpression"],BlockStatement:l["BlockStatement|ClassBody"],BreakStatement(e,t){e.label?(t.write("break "),t.visit(e.label),t.write(";")):t.write("break;")},CallExpression:l["CallExpression|NewExpression"],ChainExpression(e,t){t.visit(e.expression)},ClassBody:l["BlockStatement|ClassBody"],ClassDeclaration:l["ClassDeclaration|ClassExpression"],ClassExpression:l["ClassDeclaration|ClassExpression"],ConditionalExpression(e,t){Yw[e.test.type]>Yw.ConditionalExpression?t.visit(e.test):(t.write("("),t.visit(e.test),t.write(")"));const n=t.new(),s=t.new();n.visit(e.consequent),s.visit(e.alternate),n.multiline||s.multiline||n.measure()+s.measure()>50?(t.indent(),t.newline(),t.write("? "),t.append(n),t.newline(),t.write(": "),t.append(s),t.dedent()):(t.write(" ? "),t.append(n),t.write(" : "),t.append(s))},ContinueStatement(e,t){e.label?(t.write("continue "),t.visit(e.label),t.write(";")):t.write("continue;")},DebuggerStatement(e,t){t.write("debugger",e),t.write(";")},Decorator(e,t){t.write("@"),t.visit(e.expression),t.newline()},DoWhileStatement(e,t){t.write("do "),t.visit(e.body),t.write(" while ("),t.visit(e.test),t.write(");")},EmptyStatement(e,t){t.write(";")},ExportAllDeclaration(e,t){t.write("type"===e.exportKind?"export type * ":"export * "),e.exported&&(t.write("as "),t.visit(e.exported)),t.write(" from "),t.visit(e.source),t.write(";")},ExportDefaultDeclaration(e,t){t.write("export default "),t.visit(e.declaration),"FunctionDeclaration"!==e.declaration.type&&t.write(";")},ExportNamedDeclaration(e,t){t.write("export "),e.declaration?t.visit(e.declaration):("type"===e.exportKind&&t.write("type "),t.write("{"),i(t,e.specifiers,e.source?.loc?.start??e.loc?.end??null,!0),t.write("}"),e.source&&(t.write(" from "),t.visit(e.source)),t.write(";"))},ExportSpecifier(e,t){"type"===e.exportKind&&t.write("type "),t.visit(e.local),e.local.name!==e.exported.name&&(t.write(" as "),t.visit(e.exported))},ExpressionStatement(e,t){if("ObjectExpression"===e.expression.type||"AssignmentExpression"===e.expression.type&&"ObjectPattern"===e.expression.left.type||"FunctionExpression"===e.expression.type)return t.write("("),t.visit(e.expression),void t.write(");");t.visit(e.expression),t.write(";")},ForStatement:(e,t)=>{t.write("for ("),e.init&&("VariableDeclaration"===e.init.type?nC(e.init,t):t.visit(e.init)),t.write("; "),e.test&&t.visit(e.test),t.write("; "),e.update&&t.visit(e.update),t.write(") "),t.visit(e.body)},ForInStatement:l["ForInStatement|ForOfStatement"],ForOfStatement:l["ForInStatement|ForOfStatement"],FunctionDeclaration:l["FunctionDeclaration|FunctionExpression"],FunctionExpression:l["FunctionDeclaration|FunctionExpression"],Identifier(e,t){let n=e.name;t.write(n,e),e.typeAnnotation&&t.visit(e.typeAnnotation)},IfStatement(e,t){t.write("if ("),t.visit(e.test),t.write(") "),t.visit(e.consequent),e.alternate&&(t.space(),t.write("else "),t.visit(e.alternate))},ImportDeclaration(e,t){if(0===e.specifiers.length)return t.write("import "),t.visit(e.source),void t.write(";");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);if(t.write("import "),"type"==e.importKind&&t.write("type "),s&&(t.write(s.local.name,s),(n||r.length>0)&&t.write(", ")),n&&t.write("* as "+n.local.name,n),r.length>0&&(t.write("{"),i(t,r,e.source.loc?.start??null,!0),t.write("}")),t.write(" from "),t.visit(e.source),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let n=0;n<e.attributes.length;n++){const{key:s,value:r}=e.attributes[n];t.visit(s),t.write(": "),t.visit(r),n+1!==e.attributes.length&&t.write(", ")}t.write(" }")}t.write(";")},ImportExpression(e,t){if(t.write("import("),t.visit(e.source),e.arguments)for(let n=0;n<e.arguments.length;n++)t.write(", "),t.visit(e.arguments[n]);t.write(")")},ImportSpecifier(e,t){e.local.name!==e.imported.name&&(t.visit(e.imported),t.write(" as ")),"type"==e.importKind&&t.write("type "),t.visit(e.local)},LabeledStatement(e,t){t.visit(e.label),t.write(": "),t.visit(e.body)},Literal(e,n){const s=e.raw||("string"==typeof e.value?function(e,t){let n=t;for(const s of e)n+="\\"===s?"\\\\":s===t?"\\"+s:"\n"===s?"\\n":"\r"===s?"\\r":s;return n+t}(e.value,t):String(e.value));n.write(s,e)},LogicalExpression:l["BinaryExpression|LogicalExpression"],MemberExpression(e,t){Yw[e.object.type]<Yw.MemberExpression?(t.write("("),t.visit(e.object),t.write(")")):t.visit(e.object),e.computed?(e.optional&&t.write("?."),t.write("["),t.visit(e.property),t.write("]")):(t.write(e.optional?"?.":"."),t.visit(e.property))},MetaProperty(e,t){t.visit(e.meta),t.write("."),t.visit(e.property)},MethodDefinition(e,t){if(e.decorators)for(const n of e.decorators)t.visit(n);e.static&&t.write("static "),"get"!==e.kind&&"set"!==e.kind||t.write(e.kind+" "),e.value.async&&t.write("async "),e.value.generator&&t.write("*"),e.computed&&t.write("["),t.visit(e.key),e.computed&&t.write("]"),t.write("("),i(t,e.value.params,(e.value.returnType??e.value.body)?.loc?.start??e.loc?.end??null,!1),t.write(")"),e.value.returnType&&t.visit(e.value.returnType),t.write(" "),e.value.body&&t.visit(e.value.body)},NewExpression:l["CallExpression|NewExpression"],ObjectExpression(e,t){t.write("{"),i(t,e.properties,e.loc?.end??null,!0),t.write("}")},ObjectPattern(e,t){t.write("{"),i(t,e.properties,e.loc?.end??null,!0),t.write("}"),e.typeAnnotation&&t.visit(e.typeAnnotation)},ParenthesizedExpression:(e,t)=>t.visit(e.expression),PrivateIdentifier(e,t){t.write("#"),t.write(e.name,e)},Program(e,t){o(t,e)},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?"FunctionExpression"===e.value.type?("init"!==e.kind&&t.write(e.kind+" "),e.value.async&&t.write("async "),e.value.generator&&t.write("*"),e.computed&&t.write("["),t.visit(e.key),e.computed&&t.write("]"),t.write("("),i(t,e.value.params,(e.value.returnType??e.value.body).loc?.start??null,!1),t.write(")"),e.value.returnType&&t.visit(e.value.returnType),t.write(" "),t.visit(e.value.body)):(e.computed&&t.write("["),"get"!==e.kind&&"set"!==e.kind||t.write(e.kind+" "),t.visit(e.key),t.write(e.computed?"]: ":": "),t.visit(e.value)):t.visit(e.value)},PropertyDefinition(e,t){if(e.decorators)for(const n of e.decorators)t.visit(n);e.accessibility&&t.write(e.accessibility+" "),e.static&&t.write("static "),e.computed?(t.write("["),t.visit(e.key),t.write("]")):t.visit(e.key),e.typeAnnotation&&(t.write(": "),t.visit(e.typeAnnotation.typeAnnotation)),e.value&&(t.write(" = "),t.visit(e.value)),t.write(";"),r(t,(e.value??e.typeAnnotation??e.key).loc?.end??null,null)},RestElement:l["RestElement|SpreadElement"],ReturnStatement(e,t){if(e.argument){const r=n[s]&&n[s].loc&&e.argument.loc&&sC(n[s].loc.start,e.argument.loc.start);t.write(r?"return (":"return "),t.visit(e.argument),t.write(r?");":";")}else t.write("return;")},SequenceExpression(e,t){t.write("("),i(t,e.expressions,e.loc?.end??null,!1),t.write(")")},SpreadElement:l["RestElement|SpreadElement"],StaticBlock(e,t){t.write("static {"),t.indent(),t.newline(),o(t,e),t.dedent(),t.newline(),t.write("}")},Super(e,t){t.write("super",e)},SwitchStatement(e,t){t.write("switch ("),t.visit(e.discriminant),t.write(") {"),t.indent();let n=!0;for(const s of e.cases){n||t.margin(),n=!1,s.test?(t.newline(),t.write("case "),t.visit(s.test),t.write(":")):(t.newline(),t.write("default:")),t.indent();for(const e of s.consequent)t.newline(),t.visit(e);t.dedent()}t.dedent(),t.newline(),t.write("}")},TaggedTemplateExpression(e,t){t.visit(e.tag),t.visit(e.quasi)},TemplateLiteral(e,t){t.write("`");const{quasis:n,expressions:s}=e;for(let e=0;e<s.length;e++){const r=n[e].value.raw;t.write(r+"${"),t.visit(s[e]),t.write("}"),/\n/.test(r)&&(t.multiline=!0)}const r=n[n.length-1].value.raw;t.write(r+"`"),/\n/.test(r)&&(t.multiline=!0)},ThisExpression(e,t){t.write("this",e)},ThrowStatement(e,t){t.write("throw "),e.argument&&t.visit(e.argument),t.write(";")},TryStatement(e,t){t.write("try "),t.visit(e.block),e.handler&&(e.handler.param?(t.write(" catch("),t.visit(e.handler.param),t.write(") ")):t.write(" catch "),t.visit(e.handler.body)),e.finalizer&&(t.write(" finally "),t.visit(e.finalizer))},UnaryExpression(e,t){t.write(e.operator),e.operator.length>1&&t.write(" "),Yw[e.argument.type]<Yw.UnaryExpression?(t.write("("),t.visit(e.argument),t.write(")")):t.visit(e.argument)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),t.visit(e.argument)):(t.visit(e.argument),t.write(e.operator))},VariableDeclaration(e,t){nC(e,t),t.write(";")},VariableDeclarator(e,t){t.visit(e.id),e.init&&(t.write(" = "),t.visit(e.init))},WhileStatement(e,t){t.write("while ("),t.visit(e.test),t.write(") "),t.visit(e.body)},WithStatement(e,t){t.write("with ("),t.visit(e.object),t.write(") "),t.visit(e.body)},YieldExpression(e,t){e.argument?(t.write(e.delegate?"yield* ":"yield "),t.visit(e.argument)):t.write(e.delegate?"yield*":"yield")},TSDeclareFunction(e,t){t.write("declare "),e.async&&t.write("async "),t.write("function"),e.generator&&t.write("*"),e.id&&(t.write(" "),t.visit(e.id)),e.typeParameters&&t.visit(e.typeParameters),t.write("("),i(t,e.params,e.returnType?.loc?.start??e.loc?.end??null,!1),t.write(")"),e.returnType&&t.visit(e.returnType),t.write(";")},TSNumberKeyword(e,t){t.write("number",e)},TSStringKeyword(e,t){t.write("string",e)},TSBooleanKeyword(e,t){t.write("boolean",e)},TSAnyKeyword(e,t){t.write("any",e)},TSVoidKeyword(e,t){t.write("void",e)},TSUnknownKeyword(e,t){t.write("unknown",e)},TSNeverKeyword(e,t){t.write("never",e)},TSSymbolKeyword(e,t){t.write("symbol",e)},TSNullKeyword(e,t){t.write("null",e)},TSUndefinedKeyword(e,t){t.write("undefined",e)},TSArrayType(e,t){t.visit(e.elementType),t.write("[]")},TSTypeAnnotation(e,t){t.write(": "),t.visit(e.typeAnnotation)},TSTypeLiteral(e,t){t.write("{ "),i(t,e.members,e.loc?.end??null,!1,";"),t.write(" }")},TSPropertySignature(e,t){t.visit(e.key),e.optional&&t.write("?"),e.typeAnnotation&&t.visit(e.typeAnnotation)},TSTypeReference(e,t){t.visit(e.typeName),e.typeArguments&&t.visit(e.typeArguments)},TSExpressionWithTypeArguments(e,t){t.visit(e.expression)},TSTypeParameterInstantiation(e,t){t.write("<");for(let n=0;n<e.params.length;n++)t.visit(e.params[n]),n!=e.params.length-1&&t.write(", ");t.write(">")},TSTypeParameterDeclaration(e,t){t.write("<");for(let n=0;n<e.params.length;n++)t.visit(e.params[n]),n!=e.params.length-1&&t.write(", ");t.write(">")},TSTypeParameter(e,t){t.write(e.name,e),e.constraint&&(t.write(" extends "),t.visit(e.constraint))},TSTypeQuery(e,t){t.write("typeof "),t.visit(e.exprName)},TSEnumMember(e,t){t.visit(e.id),e.initializer&&(t.write(" = "),t.visit(e.initializer))},TSFunctionType(e,t){e.typeParameters&&t.visit(e.typeParameters),t.write("("),i(t,e.parameters,e.typeAnnotation.typeAnnotation.loc?.start??null,!1),t.write(") => "),t.visit(e.typeAnnotation.typeAnnotation)},TSIndexSignature(e,t){t.write("["),i(t,e.parameters,e.typeAnnotation?.loc?.start??null,!1),t.write("]"),t.visit(e.typeAnnotation)},TSMethodSignature(e,t){t.visit(e.key),t.write("("),i(t,e.parameters,e.typeAnnotation.loc?.start??null,!1),t.write(")"),t.visit(e.typeAnnotation)},TSTupleType(e,t){t.write("["),i(t,e.elementTypes,e.loc?.end??null,!1),t.write("]")},TSNamedTupleMember(e,t){t.visit(e.label),t.write(": "),t.visit(e.elementType)},TSUnionType(e,t){i(t,e.types,e.loc?.end??null,!1," |")},TSIntersectionType(e,t){i(t,e.types,e.loc?.end??null,!1," &")},TSLiteralType(e,t){t.visit(e.literal)},TSConditionalType(e,t){t.visit(e.checkType),t.write(" extends "),t.visit(e.extendsType),t.write(" ? "),t.visit(e.trueType),t.write(" : "),t.visit(e.falseType)},TSIndexedAccessType(e,t){t.visit(e.objectType),t.write("["),t.visit(e.indexType),t.write("]")},TSImportType(e,t){t.write("import("),t.visit(e.argument),t.write(")"),e.qualifier&&(t.write("."),t.visit(e.qualifier))},TSAsExpression(e,t){if(e.expression){Yw[e.expression.type]<Yw.TSAsExpression?(t.write("("),t.visit(e.expression),t.write(")")):t.visit(e.expression)}t.write(" as "),t.visit(e.typeAnnotation)},TSEnumDeclaration(e,t){t.write("enum "),t.visit(e.id),t.write(" {"),t.indent(),t.newline(),i(t,e.members,e.loc?.end??null,!1),t.dedent(),t.newline(),t.write("}")},TSModuleBlock(e,t){t.write(" {"),t.indent(),t.newline(),o(t,e),t.dedent(),t.newline(),t.write("}")},TSModuleDeclaration(e,t){e.declare?t.write("declare "):t.write("namespace "),t.visit(e.id),e.body&&t.visit(e.body)},TSNonNullExpression(e,t){t.visit(e.expression),t.write("!")},TSInterfaceBody(e,t){i(t,e.body,e.loc?.end??null,!0,";")},TSInterfaceDeclaration(e,t){t.write("interface "),t.visit(e.id),e.typeParameters&&t.visit(e.typeParameters),e.extends&&(t.write(" extends "),i(t,e.extends,e.body.loc?.start??null,!1)),t.write(" {"),t.visit(e.body),t.write("}")},TSSatisfiesExpression(e,t){if(e.expression){Yw[e.expression.type]<Yw.TSSatisfiesExpression?(t.write("("),t.visit(e.expression),t.write(")")):t.visit(e.expression)}t.write(" satisfies "),t.visit(e.typeAnnotation)},TSTypeAliasDeclaration(e,t){t.write("type "),t.visit(e.id),e.typeParameters&&t.visit(e.typeParameters),t.write(" = "),t.visit(e.typeAnnotation),t.write(";")},TSQualifiedName(e,t){t.visit(e.left),t.write("."),t.visit(e.right)}}};function tC(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=Yw[e.type],r=Yw[t.type];return s!==r?!n&&15===s&&14===r&&"**"===t.operator||s<r:(13===s||14===s)&&("**"===e.operator&&"**"===t.operator?!n:n?Jw[e.operator]<=Jw[t.operator]:Jw[e.operator]<Jw[t.operator])}function nC(e,t){const n=t.new(),s=t.new(),r=t.new();t.append(r),e.declare&&r.write("declare "),r.write(`${e.kind} `),r.append(n);let a=!0;for(const t of e.declarations)a||r.append(s),a=!1,r.visit(t);const i=r.measure()+2*(e.declarations.length-1);r.multiline||e.declarations.length>1&&i>50?(t.multiline=!0,e.declarations.length>1&&n.indent(),s.write(","),s.newline(),e.declarations.length>1&&t.dedent()):s.write(", ")}function sC(e,t){return e.line<t.line||!(e.line>t.line)&&e.column<t.column}const rC="5.38.10";class aC{constructor(e){this.bits=e instanceof aC?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(31&e)}has(e){return!!(this.bits[e>>5]&1<<(31&e))}}class iC{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 iC(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 iC(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 oC(){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 lC=oC();let cC=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=jw(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,"+lC(this.toString())}};function pC(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 uC=Object.prototype.toString;function dC(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 hC=/\w/;class mC{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?hC.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 fC="\n",yC={insertLeft:!1,insertRight:!1,storeName:!1};class vC{constructor(e,t={}){const n=new iC(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 aC},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 vC(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 aC(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};const t=Object.keys(this.storedNames),n=new mC(e.hires),s=dC(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?pC(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 cC(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]"===uC.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 yC.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),yC.insertLeft=!0),this.appendLeft(e,t)}insertRight(e,t){return yC.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),yC.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&&(yC.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),yC.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 iC(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(fC);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(fC),-1!==e)return n.outro.substr(e+1)+t;t=n.outro+t}if(n.content.length>0){if(e=n.content.lastIndexOf(fC),-1!==e)return n.content.substr(e+1)+t;t=n.content+t}if(n.intro.length>0){if(e=n.intro.lastIndexOf(fC),-1!==e)return n.intro.substr(e+1)+t;t=n.intro+t}}while(n=n.previous);return e=this.intro.lastIndexOf(fC),-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=dC(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 gC=/^[\w+.-]+:\/\//,bC=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,_C=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var xC;function wC(e){return e.startsWith("/")}function CC(e){return/^[.?#]/.test(e)}function kC(e){const t=bC.exec(e);return SC(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function SC(e,t,n,s,r,a,i){return{scheme:e,user:t,host:n,port:s,path:r,query:a,hash:i,type:xC.Absolute}}function PC(e){if(function(e){return e.startsWith("//")}(e)){const t=kC("http:"+e);return t.scheme="",t.type=xC.SchemeRelative,t}if(wC(e)){const t=kC("http://foo.com"+e);return t.scheme="",t.host="",t.type=xC.AbsolutePath,t}if(function(e){return e.startsWith("file:")}(e))return function(e){const t=_C.exec(e),n=t[2];return SC("file:","",t[1]||"","",wC(n)?n:"/"+n,t[3]||"",t[4]||"")}(e);if(function(e){return gC.test(e)}(e))return kC(e);const t=kC("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?xC.Query:e.startsWith("#")?xC.Hash:xC.RelativePath:xC.Empty,t}function EC(e,t){const n=t<=xC.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 TC(e,t){if(!e&&!t)return"";const n=PC(e);let s=n.type;if(t&&s!==xC.Absolute){const e=PC(t),r=e.type;switch(s){case xC.Empty:n.hash=e.hash;case xC.Hash:n.query=e.query;case xC.Query:case xC.RelativePath:!function(e,t){EC(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 xC.AbsolutePath:n.user=e.user,n.host=e.host,n.port=e.port;case xC.SchemeRelative:n.scheme=e.scheme}r>s&&(s=r)}EC(n,s);const r=n.query+n.hash;switch(s){case xC.Hash:case xC.Query:return r;case xC.RelativePath:{const s=n.path.slice(1);return s?CC(t||e)&&!CC(s)?"./"+s+r:s+r:r||"."}case xC.AbsolutePath:return n.path+r;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+r}}function AC(e,t){return t&&!t.endsWith("/")&&(t+="/"),TC(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"}(xC||(xC={}));const $C=0;function RC(e,t){for(let n=t;n<e.length;n++)if(!IC(e[n]))return n;return e.length}function IC(e){for(let t=1;t<e.length;t++)if(e[t][$C]<e[t-1][$C])return!1;return!0}function MC(e,t){return t||(e=e.slice()),e.sort(qC)}function qC(e,t){return e[$C]-t[$C]}let LC=!1;function OC(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 LC=-1!==i&&e[i][$C]===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][$C]-t;if(0===a)return LC=!0,r;a<0?n=r+1:s=r-1}return LC=!1,n-1}(e,t,o,l)}class NC{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=AC(o||"",function(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}(t));this.resolvedSources=l.map((e=>AC(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=RC(e,0);if(n===e.length)return e;t||(e=e.slice());for(let s=n;s<e.length;s=RC(e,s+1))e[s]=MC(e[s],t);return e}(u,n)),this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0}}function DC(e){var t;return(t=e)._decoded||(t._decoded=Ow(e._encoded))}function jC(e,t,n){const s=DC(e);if(t>=s.length)return null;const r=s[t],a=function(e,t,n,s,r){let a=OC(e,s,t,n);LC&&(a=function(e,t,n){for(let s=n-1;s>=0&&e[s][$C]===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 BC{constructor(){this._indexes={__proto__:null},this.array=[]}}function FC(e,t){return e._indexes[t]}function VC(e,t){const n=FC(e,t);if(void 0!==n)return n;const{array:s,_indexes:r}=e,a=s.push(t);return r[t]=a-1}const HC=0,UC=1,zC=2,WC=3,GC=4,KC=-1;class XC{constructor({file:e,sourceRoot:t}={}){this._names=new BC,this._sources=new BC,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new BC}}const QC=(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][HC])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 ek(h,m,[s])}const f=VC(p,r),y=o?VC(d,o):KC;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[UC]&&s===i[zC]&&r===i[WC]&&a===(5===i.length?i[GC]:KC))}(h,m,f,a,i,y))return;return ek(h,m,o?[s,f,a,i,y]:[s,f,a,i])}(0,e,t,n,s,r,a,i);function YC(e,t,n){const{_sources:s,_sourcesContent:r}=e;r[VC(s,t)]=n}function JC(e,t,n=!0){const{_sources:s,_sourcesContent:r,_ignoreList:a}=e,i=VC(s,t);i===r.length&&(r[i]=null),n?VC(a,i):function(e,t){const n=FC(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 ZC(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 ek(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}var tk=sk("",-1,-1,"",null,!1),nk=[];function sk(e,t,n,s,r,a){return{source:e,line:t,column:n,name:s,content:r,ignore:a}}function rk(e,t,n,s,r){return{map:e,sources:t,source:n,content:s,ignore:r}}function ak(e,t){return rk(e,t,"",null,!1)}function ik(e,t,n,s){if(!e.map)return sk(e.source,t,n,s,e.content,e.ignore);const r=jC(e.map,t,n);return null==r?null:1===r.length?tk:ik(e.sources[r[1]],r[2],r[3],5===r.length?e.map.names[r[4]]:s)}function ok(e,t){const n=(s=e,Array.isArray(s)?s:[s]).map((e=>new NC(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=lk(r,t,"",0);for(let e=n.length-1;e>=0;e--)a=ak(n[e],[a]);return a}function lk(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 lk(new NC(l,c),t,c,o);return function(e,t,n){return rk(null,nk,e,t,n)}(c,void 0!==p?p:a?a[s]:null,void 0!==u?u:!!i&&i.includes(s))}));return ak(e,l)}var ck=class{constructor(e,t){const n=t.decodedMappings?ZC(e):function(e){const t=ZC(e);return Object.assign(Object.assign({},t),{mappings:jw(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 pk(e,t,n){const s={excludeContent:!!n,decodedMappings:!1},r=ok(e,t);return new ck(function(e){const t=new XC({file:e.map.file}),{sources:n,map:s}=e,r=s.names,a=DC(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=tk;if(1!==i.length&&(l=ik(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;QC(t,e,o,h,p,c,u),h&&null!=d&&YC(t,h,d),m&&JC(t,h,!0)}}return t}(r),s)}function uk(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}function dk(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 hk(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 mk=/([^\w\s]|\s+)/g;class fk{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]=hk(s.sources,r.sources),[c,p,u,d]=hk(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 uk(s.mappings[s.mappings.length-1],r.mappings.shift()),uk(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 fk(e,t)}if(""==e)return new fk;t={version:3,names:[],sources:[],mappings:[]};for(let e=0;e<n;e++)t.mappings.push([]);return new fk(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 fk(e,r);const a=e.split("\n");for(let e=0;e<a.length;e++){r.mappings.push([]);const t=a[e].split(mk);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 fk(e,r)}}const yk="undefined"!=typeof window&&"function"==typeof btoa?e=>btoa(unescape(encodeURIComponent(e))):e=>Buffer.from(e).toString("base64"),vk="undefined"!=typeof window&&"function"==typeof atob?atob:e=>Buffer.from(e,"base64").toString();function gk(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))?pk(t,(()=>null),!0):pk(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 bk=/data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(\S*)/;function _k(e,t,n){if(t.sourcemap){const s=wk(t.filename);e.map.sources=[s],Object.assign(e.map,function(e,t,n){if(!t||!n)return t;const s=gk(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,"+yk(this.toString())}}}),s}(s,e.map,t.sourcemap)),s!==n&&(e.map.sources=e.map.sources.map((e=>xk(n,e))))}}function xk(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 wk(e){return e.split(/[/\\]/).pop()}function Ck(e,t,n){return t?xk(t,e):wk(e)}function kk(e,n,s){const r=new vC(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,Sk),r.remove(0,i.content.start),r.remove(i.content.end,e.length),a.minify&&Tk(i.content.end,a);const o={code:r.toString(),map:r.generateMap({includeContent:!0,source:s.filename,file:s.cssOutputFilename||s.filename}),hasGlobal:n.css.has_global};return _k(o,s,o.map.sources[0]),be&&"injected"===s.css&&o.code&&(o.code+=`\n/*# sourceMappingURL=${o.map.toUrl()} */`),o}const Sk={_:(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(_c(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):Pk(s)||t.code.prependRight(n,`${t.hash}-`)}else n()},Declaration(e,{state:t}){const n=e.property&&bc(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(gc.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&&(Tk(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&&(Tk(e.start,t),Tk(e.block.end-1,t)),be||!Ak(e,Pk(r)))if($k(e)||Pk(r)){if(e.metadata.is_global_block){const n=e.prelude.children[0];if(1===e.prelude.children.length&&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,"*/"),Rk(e,t.code));else t.minify?t.code.remove(e.start,e.end):(t.code.prependRight(e.start,"/* (empty) "),t.code.appendLeft(e.end,"*/"),Rk(e,t.code))},SelectorList(e,{state:t,next:n,path:s}){const r=s.at(-1);if((!Pk(s)||e.children.length>1&&"Rule"===r?.type&&r.metadata.is_global_block)&&!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 a=t.specificity;if("Rule"===r?.type){a={bumped:!1};let e=r.metadata.parent_rule;for(;e;){if(e.metadata.has_local_selectors){a={bumped:!0};break}e=e.metadata.parent_rule}}n({...t,specificity:a})},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];Ek(s,n.combinator,t.state);const r=e.metadata.rule?.metadata.parent_rule;if(r&&null===s.args&&(null===n.combinator&&t.state.code.prependRight(s.start,"&"),r.prelude.children.length>1&&e.children.length===e.children.findIndex((e=>e===n))-1)){const e=r.prelude.children.find((e=>e.start>s.end));e&&e.metadata.used&&t.state.code.update(s.end,e.start,"")}}else{for(const e of n.selectors)"PseudoClassSelector"===e.type&&"global"===e.name&&Ek(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 Pk(e){return e.some((e=>"Rule"===e.type&&e.metadata.is_global_block))}function Ek(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.update(s,e.start+7,"")}else n.code.remove(e.start,e.start+8).remove(e.end-1,e.end)}function Tk(e,t){let n=e;for(;/\s/.test(t.code.original[n-1]);)n--;n<e&&t.code.remove(n,e)}function Ak(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&&($k(n)||t)&&!Ak(n,t))return!1;if("Atrule"===n.type&&(null===n.block||n.block.children.length>0))return!1}return!0}function $k(e){return e.prelude.children.some((e=>e.metadata.used))}function Rk(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 Ik(e){return Ja("$.get",e)}function Mk(e){for(const[t,n]of e.state.scope.declarations)(Cp(n,e.state.analysis)||"derived"===n.kind||"legacy_reactive"===n.kind)&&(e.state.transform[t]={read:"var"===n.declaration_kind?e=>Ja("$.safe_get",e):Ik,assign:(t,n,s=!1)=>{let r=Ja("$.set",t,n,s&&Ri);return"store_sub"===e.state.scope.get(`$${t.name}`)?.kind&&(r=Ja("$.store_unsub",r,di(`$${t.name}`),ci("$$stores"))),r},mutate:(t,n)=>e.state.analysis.runes?n:Ja("$.mutate",t,n),update:e=>Ja(e.prefix?"$.update_pre":"$.update",e.argument,"--"===e.operator&&di(-1))})}function qk(e,t,n){if("ArrayPattern"===e.left.type||"ObjectPattern"===e.left.type||"RestElement"===e.left.type){const s=t.visit(e.right),r="Identifier"!==s.type,a=r?ci("$$value"):s;let i=!1;const{inserts:o,paths:l}=no(e.left,a);for(const{id:e}of o)e.name=t.state.scope.generate("$$array");const c=l.map((e=>{const s=e.expression;let r=n("=",e.node,s,t);return null!==r&&(i=!0),r??Ka("=",t.visit(e.node),t.visit(s))}));if(!i)return null;const p=t.path.at(-1).type.endsWith("Statement");if(o.length>0||r){const e=[...o.map((({id:e,value:t})=>Di(e,t))),...c.map(ki)];p||e.push(Ui(a));const t=oo(s)||c.some((e=>oo(e))),n=Ja(Ga([a],Ya(e),t),s);return t?Xa(n):n}const u=xi(c);return p||u.expressions.push(a),u}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 Lk(e,t,n,s){if(s.state.analysis.runes&&"MemberExpression"===t.type&&"ThisExpression"===t.object.type&&!t.computed){const r=Zo(t.property),a=r&&s.state.state_fields.get(r);if(a&&"AssignmentExpression"===a.node.type&&t===a.node.left){const r=mc(n,s.state.scope);if(r){const i="PrivateIdentifier"===t.property.type||"$state"===r||"$state.raw"===r?t.property:a.key;return Ka(e,hi(Li,i,"Literal"===i.type),s.visit(n))}}else if(a&&("$derived"===a.type||"$derived.by"===a.type)&&"PrivateIdentifier"===t.property.type){let a=s.visit(co(e,t,n));return Ja(hi(Li,r),a)}}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(co(e,t,n));return Ja("$.store_set",ci(a),r)}return Ja("$.store_mutate",Ka("??=",ci("$$store_subs"),fi([])),di(r.name),ci(a),Ka(e,s.visit(t),s.visit(n)))}const Ok=/[&"<]/g,Nk=/[&<]/g;function Dk(e,t){const n=String(e??""),s=t?Ok:Nk;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?"&":'"'===t?""":"<"),a=e+1}return r+n.substring(a)}const jk="\x3c!--[--\x3e",Bk="\x3c!--[!--\x3e",Fk="\x3c!--]--\x3e",Vk=di(jk),Hk=di(Fk),Uk=di("\x3c!----\x3e");function zk(e,{visit:t,state:n}){let s=[];function r(){let e=bi("",!1);const r=[e],a=[];for(let i=0;i<s.length;i++){const o=s[i];if("Text"===o.type||"Comment"===o.type)e.value.cooked+="Comment"===o.type?`\x3c!--${o.data}--\x3e`:Dk(o.data);else{const l=n.scope.evaluate(o.expression);l.is_known?e.value.cooked+=Dk((l.value??"")+""):(a.push(Ja("$.escape",t(o.expression))),e=bi("",i+1===s.length),r.push(e))}}for(const e of r)e.value.raw=Ha(e.value.cooked);n.template.push(Si(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 Wk(e){return e.type.endsWith("Statement")||e.type.endsWith("Declaration")}function Gk(e,t=ci("$$payload.out"),n="push"){let s=[],r=[];const a=[],i=()=>{"push"===n?a.push(ki(Ja(hi(t,ci("push")),Si(s.map(((e,t)=>bi(e,t===s.length-1))),r)))):a.push(ki(Ka(n,t,Si(s.map(((e,t)=>bi(e,t===s.length-1))),r)))),s=[],r=[]};for(let t=0;t<e.length;t++){const n=e[t];Wk(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 Kk(e,t,n=!1,s=!1){if(!0===e)return Ri;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 di(s?e:Dk(e,!0))}return t.visit(r.expression)}let r=bi("",!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(Ja("$.stringify",t.visit(o.expression))),r=bi("",s+1===e.length),a.push(r))}return Si(a,i)}function Xk(e,t){const n=t.scope.get(e.name);if(null===n||e===n.node)return e;if("store_sub"===n.kind){const n=ci(e.name.slice(1));return Ja("$.store_get",Ka("??=",ci("$$store_subs"),fi([])),di(e.name),Xk(n,t))}return e}function Qk(e){return("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type)&&!0===e.metadata?.hoisted}function Yk(e,n){const s=[],r=new Map;for(const a of e)if("ConstTag"===a.type){const e=a.declaration.declarations[0],s=Zi(e.id).map((e=>n.scope.get(e.name))),i=new Set;t(e.init,n,{_:hc,Identifier(e,t){if(Vl(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=yc(a);if(i?.length){!function(e,t){Us(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 Jk(e,t,n,s="html",r,a,i){r.analysis.runes||(t=Yk(t,r));const l=[],u=[];for(const e of t)("Comment"!==e.type||i)&&("ConstTag"===e.type||"DebugTag"===e.type||"SvelteBody"===e.type||"SvelteWindow"===e.type||"SvelteDocument"===e.type||"SvelteHead"===e.type||"TitleElement"===e.type||"SnippetBlock"===e.type?l.push(e):u.push(e));let d=u;if(!a){let t,r;for(d=[];(t=u[0])&&"Text"===t.type&&!p.test(t.data);)u.shift();for("Text"===t?.type&&(t.raw=t.raw.replace(o,""),t.data=t.data.replace(o,""));(r=u.at(-1))&&"Text"===r.type&&!p.test(r.data);)u.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<u.length;e++){const t=u[e-1],n=u[e],s=u[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||d.push(n)}else d.push(n)}}var h=d[0];return"RegularElement"===e.type&&"pre"===e.name&&"Text"===h?.type&&("\n"!==h.data&&"\r\n"!==h.data||(d.shift(),h=d[0])),1===d.length&&"RegularElement"===h.type&&"script"===h.name&&d.push({type:"Comment",data:"",start:-1,end:-1}),{hoisted:l,trimmed:d,is_standalone:1===d.length&&("RenderTag"===h.type&&!h.metadata.dynamic||"Component"===h.type&&!r.options.hmr&&!h.metadata.dynamic&&!h.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)&&h&&("Text"===h?.type||"ExpressionTag"===h?.type)}}function Zk(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 eS(e,t){return"foreignObject"===e.name?"html":e.metadata.svg?"svg":e.metadata.mathml?"mathml":"html"}function tS(e,t){const{state:n,visit:s}=t,r="client"===n.options.generate;if(!be)return ai;if("MemberExpression"===e.callee.type){const t=e.callee.object.arguments.map((e=>s(e))),n=s(e.arguments[0]);return Ja("$.inspect",r?Pi(Ua(t)):Ua(t),n)}{const t=e.arguments.map((e=>s(e)));return Ja("$.inspect",r?Pi(Ua(t)):Ua(t))}}function nS(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=Kk(t.value,n,!1,!0);a.push(ui(t.name,e));continue}"children"===t.name&&(p=!0);const e=Kk(t.value,n,!1,!0);u(vi("init",zi(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=ci(n.state.scope.generate("bind_get")),a=ci(n.state.scope.generate("bind_set"));n.state.init.push(Di(r,e)),n.state.init.push(Di(a,s)),u(li(t.name,[Ui(Ja(r))])),u(wi(t.name,[ki(Ja(a,ci("$$value")))]))}else u(li(t.name,[Ui(n.visit(t.expression))]),!0),u(wi(t.name,[ki(n.visit(Ka("=",t.expression,ci("$$value")))),ki(Ka("=",ci("$$settled"),Ii))]),!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(vi("init",t.expression,t.expression)),h.push(ui("children"===t.expression.name?"default":t.expression.name,Ri));continue}let e="default";if(Ko(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=[ci("$$payload")];if(i[t].length>0){const e=yi(i[t].map((e=>null===e.expression?ui(e.name,ci(e.name)):"ObjectExpression"===e.expression.type?ui(e.name,yi(e.expression.properties)):"ArrayExpression"===e.expression.type?ui(e.name,za(e.expression.elements)):ui(e.name,e.expression))));r.push(e)}const a=Ga(r,Ya(s.body));"default"!==t||p?h.push(ui(t,a)):0===i.default.length&&l.default.every((e=>"SvelteFragment"!==e.type||!e.attributes.some((e=>"LetDirective"===e.type))))?(u(vi("init",ci("children"),be?Ja("$.prevent_snippet_stringification",a):a)),h.push(ui(t,Ri))):(h.push(ui(t,a)),u(ui("children",ci("$.invalid_default_snippet"))))}h.length>0&&u(vi("init",ci("$$slots"),fi(h)));const m=0===s.length||1===s.length&&Array.isArray(s[0])?fi(s[0]||[]):Ja("$.spread_props",Ua(s.map((e=>Array.isArray(e)?fi(e):e))));let f=ki(("SvelteComponent"===e.type?Za:Ja)(t,ci("$$payload"),m));d.length>0&&(f=Ya([...d,f]));const y="SvelteComponent"===e.type||"Component"===e.type&&e.metadata.dynamic;a.length>0?n.state.template.push(ki(Ja("$.css_props",ci("$$payload"),di("svg"!==n.state.namespace),fi(a),Pi(Ya([f])),y&&Ri))):(y&&n.state.template.push(Uk),n.state.template.push(f),n.state.skip_hydration_boundaries||n.state.template.push(Uk))}const sS=["class","style"];function rS(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=Ja("$.escape",Kk(c.value,t))):"select"!==e.name&&n.push(c):Yi(c)?"onload"!==c.name&&"onerror"!==c.name||!oe(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:Ja("$.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&&Gi(e)&&"file"===e.value[0].data)))continue;if("this"===c.name)continue;const s=ip[c.name];if(s?.omit_in_ssr)continue;let r=t.visit(c.expression);if("SequenceExpression"===r.type&&(r=Ja(r.expressions[0])),ae(c.name))i=r;else if("value"===c.name&&"textarea"===e.name)i=Ja("$.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&&Gi(e)&&"checkbox"===e.value[0].data));n.push(Yo("checked",-1,-1,[{type:"ExpressionTag",start:-1,end:-1,expression:r?Ja(hi(c.expression,"includes"),Kk(s.value,t)):Qa("===",c.expression,Kk(s.value,t)),metadata:{expression:Jo()}}]))}else n.push(Yo(c.name,-1,-1,[{type:"ExpressionTag",start:-1,end:-1,expression:r,metadata:{expression:Jo()}}]))}else"SpreadAttribute"===c.type?(n.push(c),o=!0,oe(e.name)&&(l.add("onload"),l.add("onerror"))):"UseDirective"===c.type?oe(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=fi(s.map((e=>ui(e.name,"Identifier"===e.expression.type&&e.expression.name===e.name?ci(e.name):r.visit(e.expression)))))}if(n.length>0){i=fi(n.map((e=>ui(e.name,!0===e.value?ci(e.name):Kk(e.value,r,!0)))))}e.metadata.svg||e.metadata.mathml?o|=A|$:Qo(e)?o|=$:"RegularElement"===e.type&&"input"===e.name&&(o|=R);const l=iS(e,t,r),c=e.metadata.scoped&&r.state.analysis.css.hash?di(r.state.analysis.css.hash):Mi,p=[l,c,a,i,o?di(o):void 0];r.state.template.push(Ja("$.spread_attributes",...p))}(e,n,r,s,t),"option"===e.name&&t.state.template.push(Ja("$.maybe_selected",ci("$$payload"),hi(iS(e,e.attributes.filter((e=>"Attribute"===e.type||"BindDirective"===e.type||"SpreadAttribute"===e.type)),t),"value",!1,!0)));else{const a=e.metadata.scoped?t.state.analysis.css.hash:null;for(const i of n){const n=aS(e,i),o=!("class"===n&&0!==s.length||"style"===n&&0!==r.length);if(o&&(!0===i.value||Gi(i))){let s=Kk(i.value,t,sS.includes(n)).value;"class"===n&&a&&(s=(String(s)+" "+a).trim()),("class"!==n||s)&&t.state.template.push(di(` ${i.name}${J(n)&&!0===s?"":`="${!0===s?"":String(s)}"`}`)),"option"===e.name&&"value"===n&&t.state.template.push(Ja("$.maybe_selected",ci("$$payload"),null!=s?di(s):ti));continue}const l=Kk(i.value,t,sS.includes(n));o&&"Literal"===l.type&&"string"==typeof l.value?("class"===n&&a&&(l.value=(l.value+" "+a).trim()),t.state.template.push(di(` ${n}="${Dk(l.value,!0)}"`))):"class"===n?t.state.template.push(oS(s,l,t,a)):"style"===n?t.state.template.push(lS(r,l,t)):t.state.template.push(Ja("$.attr",di(n),l,J(n)&&Ri)),"value"===n&&"option"===e.name&&t.state.template.push(Ja("$.maybe_selected",ci("$$payload"),l))}}if(0!==l.size)for(const e of l)t.state.template.push(di(` ${e}="this.__e=event"`));return i}function aS(e,t){let n=t.name;return e.metadata.svg||e.metadata.mathml||(n=n.toLowerCase()),n}function iS(e,t,n){return fi(t.map((t=>{if("Attribute"===t.type){const s=aS(e,t),r=Kk(t.value,n,sS.includes(s));return vi("init",zi(s),r)}if("BindDirective"===t.type){const s=aS(e,t),r="SequenceExpression"===t.expression.type?Ja(t.expression.expressions[0]):n.visit(t.expression);return vi("init",zi(s),r)}return Ci(n.visit(t))})))}function oS(e,t,n,s){let r,a;return e.length&&(r=fi(e.map((e=>vi("init",di(e.name),n.visit(e.expression,n.state)))))),s&&("Literal"===t.type&&"string"==typeof t.value?t.value=(t.value+" "+s).trim():a=di(s)),Ja("$.attr_class",t,a,r)}function lS(e,t,n){let s;if(e.length){let t=[],r=[];for(const s of e){const e=!0===s.value?ci(s.name):Kk(s.value,n,!0);let a=s.name;"-"===a[0]&&"-"===a[1]||(a=a.toLowerCase());const i=ui(s.name,e);s.modifiers.includes("important")?r.push(i):t.push(i)}s=r.length?Ua([fi(t),fi(r)]):fi(t)}return Ja("$.attr_style",t,s)}function cS(e,t,n){if("Identifier"===e.id.type)return[ri(e.id,n)];const s=ci(t.generate("tmp")),{paths:r,inserts:a}=no(e.id,s);return[ri(s,n),...a.map((({id:e,value:n})=>(e.name=t.generate("$$array"),ri(e,n)))),...r.map((e=>{const t=e.expression;return ri(e.node,t)}))]}const pS={_:hc,AssignmentExpression:function(e,t){return qk(e,t,Lk)??t.next()},AwaitExpression:function(e,t){return 0===t.state.scope.function_depth||t.path.some((e=>"ArrowFunctionExpression"===e.type||"FunctionDeclaration"===e.type||"FunctionExpression"===e.type))?t.next():Ja("$.await_outside_boundary")},CallExpression:function(e,t){const n=mc(e,t.state.scope);if("$host"===n)return ti;if("$effect.tracking"===n)return Ii;if("$effect.root"===n)return Ga([],Ya([]));if("$effect.pending"===n)return di(0);if("$state"===n||"$state.raw"===n)return e.arguments[0]?t.visit(e.arguments[0]):ti;if("$derived"===n||"$derived.by"===n){const s=t.visit(e.arguments[0]);return Ja("$.derived","$derived"===n?Pi(s):s)}return"$state.snapshot"===n?Ja("$.snapshot",t.visit(e.arguments[0]),Ee(e,"state_snapshot_uncloneable")&&Ri):"$inspect"===n||"$inspect().with"===n?tS(e,t):void t.next()},ClassBody:function(e,t){const n=t.state.analysis.classes.get(e);if(!n)return void t.next();const s=[],r={...t.state,state_fields:n};for(const[e,t]of n)if("#"!==e[0]&&t&&"AssignmentExpression"===t.node.type&&("$derived"===t.type||"$derived.by"===t.type)){const n=hi(Li,t.key);s.push(gi(t.key,null),ji("get",zi(e),[],[Ui(Ja(n))]),ji("set",zi(e),[ci("$$value")],[Ui(Ja(n,ci("$$value")))]))}for(const a of e.body){if("PropertyDefinition"!==a.type){s.push(t.visit(a,r));continue}const e=Zo(a.key),i=e&&n.get(e);if(i){if("#"===e[0]||"$state"===i.type||"$state.raw"===i.type)s.push(t.visit(a,r));else if(i.node===a){const n=hi(Li,i.key);s.push(gi(i.key,t.visit(i.value,r)),ji("get",a.key,[],[Ui(Ja(n))]),ji("set",zi(e),[ci("$$value")],[Ui(Ja(n,ci("$$value")))]))}}else s.push(t.visit(a,r))}return{...e,body:s}},ExpressionStatement:function(e,t){const n=mc(e.expression,t.state.scope);if("$effect"===n||"$effect.pre"===n||"$effect.root"===n||"$inspect.trace"===n)return ai;t.next()},Identifier:function(e,t){if(Vl(e,t.path.at(-1)))return"$$props"===e.name?ci("$$sanitized_props"):Xk(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:ci(n),body:s})),ai},MemberExpression:function(e,t){if(t.state.analysis.runes&&"ThisExpression"===e.object.type&&"PrivateIdentifier"===e.property.type){const n=t.state.state_fields?.get(`#${e.property.name}`);if("$derived"===n?.type||"$derived.by"===n?.type)return Ja(e)}t.next()},PropertyDefinition:function(e,t){if(t.state.analysis.runes&&null!=e.value&&"CallExpression"===e.value.type){const n=mc(e.value,t.state.scope);if("$state"===n||"$state.raw"===n)return{...e,value:0===e.value.arguments.length?null:t.visit(e.value.arguments[0])};if("$derived.by"===n||"$derived"===n){const s=t.visit(e.value.arguments[0]);return{...e,value:0===e.value.arguments.length?null:Ja("$.derived","$derived"===n?Pi(s):s)}}}t.next()},UpdateExpression:function(e,t){const n=e.argument;return"Identifier"===n.type&&"store_sub"===t.state.scope.get(n.name)?.kind?Ja(e.prefix?"$.update_store_pre":"$.update_store",Ka("??=",ci("$$store_subs"),fi([])),di(n.name),ci(n.name.slice(1)),"--"===e.operator&&di(-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=mc(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"===mc(e.right,n.state.scope)){const t=e.right.arguments.length?n.visit(e.right.arguments[0]):ti;return Wa(e.left,t)}}});const i=n.state.analysis.uses_slots?ci("$$slots_"):ci("$$slots");"ObjectPattern"===a.type&&e?a.properties.splice(a.properties.length-1,0,vi("init",ci("$$slots"),i),vi("init",ci("$$events"),ci("$$events"))):"Identifier"===a.type&&(a=yi([vi("init",ci("$$slots"),i),vi("init",ci("$$events"),ci("$$events")),_i(ci(a.name))])),s.push(ri(n.visit(a),ci("$$props")));continue}const i=e.arguments,o=i.length>0?n.visit(i[0]):ti;"$derived.by"!==a?"Identifier"!==r.id.type?"$derived"!==a?s.push(...cS(r,n.state.scope,o)):s.push(ri(n.visit(r.id),o)):s.push(ri(r.id,o)):s.push(ri(n.visit(r.id),Ja(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=ci(n.state.scope.generate("tmp")),{inserts:r,paths:a}=no(t.id,e);s.push(ri(e,n.visit(t.init)));for(const{id:e,value:t}of r)e.name=n.state.scope.generate("$$array"),s.push(ri(e,t));for(const e of a){const t=e.expression,r=e.node.name,a=n.state.scope.get(r),i=hi(ci("$$props"),di(a.prop_alias??r),!0);s.push(ri(e.node,lo(i,t)))}continue}const e=n.state.scope.get(t.id.name),r=hi(ci("$$props"),di(e.prop_alias??t.id.name),!0);let a=r;if(t.init){a=lo(r,n.visit(t.init))}s.push(ri(t.id,a))}else s.push(...cS(t,n.state.scope,t.init&&n.visit(t.init)));else s.push(n.visit(t))}return 0===s.length?ai:{...e,declarations:s}}},uS={AwaitBlock:function(e,t){t.state.template.push(ki(Ja("$.await",ci("$$payload"),t.visit(e.expression),Pi(e.pending?t.visit(e.pending):Ya([])),Ga(e.value?[t.visit(e.value)]:[],e.then?t.visit(e.then):Ya([])))),Hk)},Component:function(e,t){nS(e,ci(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(Ni(s,r))},DebugTag:function(e,t){t.state.template.push(ki(Ja("console.log",fi(e.identifiers.map((e=>vi("init",e,t.visit(e))))))),qi)},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:ci(e.index),i=n.scope.root.unique("each_array");n.init.push(Ni(i,Ja("$.ensure_array_like",r)));const o=[];e.context&&o.push(Oi(e.context,hi(i,a,!0))),a.name!==e.index&&null!=e.index&&o.push(Oi(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}}(si("let",[ri(a,di(0)),ri("$$length",hi(i,"length"))]),Qa("<",a,ci("$$length")),Ai("++",a,!1),Ya(o));if(e.fallback){const s=ki(Ja(hi(ci("$$payload.out"),ci("push")),Vk)),r=t.visit(e.fallback);r.body.unshift(ki(Ja(hi(ci("$$payload.out"),ci("push")),di(Bk)))),n.template.push(Fi(Qa("!==",hi(i,"length"),di(0)),Ya([s,l]),r),Hk)}else n.template.push(Vk,l,Hk)},Fragment:function(e,t){const n=t.path.at(-1)??e,s=Zk(t.state.namespace,n,e.nodes),{hoisted:r,trimmed:a,is_standalone:i,is_text_first:o}=Jk(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(Uk),zk(a,{...t,state:l}),Ya([...l.init,...Gk(l.template)])},HtmlTag:function(e,t){const n=t.visit(e.expression);t.state.template.push(Ja("$.html",n))},IfBlock:function(e,t){const n=t.visit(e.test),s=t.visit(e.consequent),r=e.alternate?t.visit(e.alternate):Ya([]);s.body.unshift(ki(Ja(hi(ci("$$payload.out"),ci("push")),Vk))),r.body.unshift(ki(Ja(hi(ci("$$payload.out"),ci("push")),di(Bk)))),t.state.template.push(Fi(n,s,r),Hk)},KeyBlock:function(e,t){t.state.template.push(Uk,t.visit(e.fragment),Uk)},RegularElement:function(e,t){const n=eS(e,t.state.namespace),s={...t.state,namespace:n,preserve_whitespace:t.state.preserve_whitespace||"pre"===e.name||"textarea"===e.name},r=z(e.name);t.state.template.push(di(`<${e.name}`));const a=rS(e,{...t,state:s});if(t.state.template.push(di(r?"/>":">")),("script"===e.name||"style"===e.name)&&1===e.fragment.nodes.length)return void t.state.template.push(di(e.fragment.nodes[0].data),di(`</${e.name}>`));const{hoisted:i,trimmed:o}=Jk(e,e.fragment.nodes,t.path,n,{...s,scope:s.scopes.get(e.fragment)},s.preserve_whitespace,s.options.preserveComments);for(const e of i)t.visit(e,s);if(be){const t=we(e.start);s.template.push(ki(Ja("$.push_element",ci("$$payload"),di(e.name),di(t.line),di(t.column))))}let l=!1;if("select"===e.name){const n=e.attributes.find((e=>("Attribute"===e.type||"BindDirective"===e.type)&&"value"===e.name));if(e.attributes.some((e=>"SpreadAttribute"===e.type)))l=!0,s.template.push(ki(Ka("=",ci("$$payload.select_value"),hi(iS(e,e.attributes.filter((e=>"Attribute"===e.type||"BindDirective"===e.type||"SpreadAttribute"===e.type)),t),"value",!1,!0))));else if(n){l=!0;const e=ci("$$payload.select_value");"Attribute"===n.type?s.template.push(ki(Ka("=",e,Kk(n.value,t)))):"BindDirective"===n.type&&s.template.push(ki(Ka("=",e,"SequenceExpression"===n.expression.type?t.visit(Ja(n.expression.expressions[0])):t.visit(n.expression))))}}if("option"!==e.name||e.attributes.some((e=>"SpreadAttribute"===e.type||("Attribute"===e.type||"BindDirective"===e.type)&&"value"===e.name)))if(null!==a){const e={...s,template:[],init:[]};zk(o,{...t,state:e});let n=a;"Identifier"!==a.type&&(n=ci(s.scope.generate("$$body")),s.template.push(Ni(n,a))),s.template.push(Fi(n,Ya(Gk([n])),Ya([...e.init,...Gk(e.template)])))}else zk(o,{...t,state:s});else{const e={...s,template:[],init:[]};zk(o,{...t,state:e}),s.template.push(ki(Ja("$.valueless_option",ci("$$payload"),Pi(Ya([...e.init,...Gk(e.template)])))))}l&&s.template.push(ki(Ka("=",ci("$$payload.select_value"),ti))),r||s.template.push(di(`</${e.name}>`)),be&&s.template.push(ki(Ja("$.pop_element")))},RenderTag:function(e,t){const n=io(e.expression).callee,s=io(e.expression).arguments,r=t.visit(n),a=s.map((e=>t.visit(e)));t.state.template.push(ki(("CallExpression"===e.expression.type?Ja:Za)(r,ci("$$payload"),...a))),t.state.skip_hydration_boundaries||t.state.template.push(Uk)},SlotElement:function(e,t){const n=[],s=[];let r=di("default");for(const a of e.attributes)if("SpreadAttribute"===a.type)s.push(t.visit(a));else if("Attribute"===a.type){const e=Kk(a.value,t,!1,!0);"name"===a.name?r=e:"slot"!==a.name&&n.push(ui(a.name,e))}const a=0===s.length?fi(n):Ja("$.spread_props",Ua([fi(n),...s])),i=0===e.fragment.nodes.length?Mi:Pi(t.visit(e.fragment)),o=Ja("$.slot",ci("$$payload"),ci("$$props"),r,a,i);t.state.template.push(Uk,ki(o),Uk)},SnippetBlock:function(e,t){let n=oi(e.expression,[ci("$$payload"),...e.parameters],t.visit(e.body));n.___snippet=!0;const s=e.metadata.can_hoist?t.state.hoisted:t.state.init;be&&(n.body.body.unshift(ki(Ja("$.validate_snippet_args",ci("$$payload")))),s.push(ki(Ja("$.prevent_snippet_stringification",n.id)))),s.push(n)},SpreadAttribute:function(e,t){return t.visit(e.expression)},SvelteComponent:function(e,t){nS(e,t.visit(e.expression),t)},SvelteElement:function(e,t){let n=t.visit(e.tag);if(be){if("Identifier"!==n.type){const e=t.state.scope.generate("$$tag");t.state.init.push(Ni(e,n)),n=ci(e)}e.fragment.nodes.length>0&&t.state.init.push(ki(Ja("$.validate_void_dynamic_element",Pi(n)))),t.state.init.push(ki(Ja("$.validate_dynamic_element_tag",Pi(n))))}const s={...t.state,namespace:eS(e,t.state.namespace),template:[],init:[]};if(rS(e,{...t,state:s}),be){const s=we(e.start);t.state.template.push(ki(Ja("$.push_element",ci("$$payload"),n,di(s.line),di(s.column))))}const r=Ya([...s.init,...Gk(s.template)]),a=t.visit(e.fragment,s);t.state.template.push(ki(Ja("$.element",ci("$$payload"),n,r.body.length>0&&Pi(r),a.body.length>0&&Pi(a)))),be&&t.state.template.push(ki(Ja("$.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(ki(Ja("$.head",ci("$$payload"),Ga([ci("$$payload")],n))))},SvelteSelf:function(e,t){nS(e,ci(t.state.analysis.name),t)},TitleElement:function(e,t){const n=[di("<title>")];zk(e.fragment.nodes,{...t,state:{...t.state,template:n}}),n.push(di("</title>")),t.state.init.push(...Gk(n,ci("$$payload.title"),"="))},SvelteBoundary:function(e,t){t.state.template.push(di(jk));const n=e.attributes.find((e=>"Attribute"===e.type&&"pending"===e.name)),s=e.fragment.nodes.find((e=>"SnippetBlock"===e.type&&"pending"===e.expression.name));if(n){const e=Kk(n.value,t,!1,!0);t.state.template.push(Ja(e,ci("$$payload")))}else s?t.state.template.push(t.visit(s.body)):t.state.template.push(t.visit(e.fragment));t.state.template.push(di(Fk))}};const dS=(e,t)=>{const n=e.metadata;let s={...t.state,in_constructor:!1,in_derived:!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=Sp(e,t);return{...e,params:n,body:t.visit(e.body,s)}}t.next(s)};function hS(e){return["=","||=","&&=","??="].includes(e)}const mS={"=":"$.assign","&&=":"$.assign_and","||=":"$.assign_or","??=":"$.assign_nullish"};function fS(e,t,n,s){if(s.state.analysis.runes&&"MemberExpression"===t.type){const r=Zo(t.property),a=r&&s.state.state_fields.get(r);if(a){if("AssignmentExpression"===a.node.type&&t===a.node.left){const t=mc(n,s.state.scope);if(t){const i={...s.state,in_constructor:"$derived"!==t&&"$derived.by"!==t};let o=s.visit(n,i);if(be){const e=s.path.findLast((e=>"ClassDeclaration"===e.type||"ClassExpression"===e.type));o=Ja("$.tag",o,di(`${e?.id?.name??"[class]"}.${r}`))}return Ka(e,hi(Li,a.key),o)}}if("PrivateIdentifier"===t.property.type){let r=s.visit(co(e,t,n));return Ja("$.set",t,r,"$state"===a.type&&hS(e)&&Tp(r,s.state.scope)&&Ri)}}}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(co(e,t,n));return i.assign(r,c,!l&&"prop"!==a.kind&&"bindable_prop"!==a.kind&&"raw_state"!==a.kind&&"derived"!==a.kind&&"store_sub"!==a.kind&&s.state.analysis.runes&&Tp(n,s.state.scope)&&hS(e))}if(i?.mutate)return i.mutate(r,Ka(e,s.visit(t),s.visit(n)));let l=be&&"ExpressionStatement"!==o.at(-1)&&hS(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||!Yi(e))return!1;return Xi(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)&&"BindDirective"!==o.at(-3))||(l=!1),"MemberExpression"===t.type&&l){const r=mS[e];return s.visit(Ja(r,t.object,t.computed?t.property:di(t.property.name),n,di(ke(t))))}return null}function yS(e,t){let n=!1,s=e.name.slice(2);K(s)&&(s=s.slice(0,-7),n=!0);const r=Array.isArray(e.value)?e.value[0]:e.value;let a=gS(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(Di(e,a)),a=e}const i=e.metadata.delegated.function.metadata.hoisted_params;if(i){n=Ua([a,...i])}else n=a}else n=a;t.state.init.push(ki(Ka("=",hi(t.state.node,"__"+s),n)))}else{const e=ki(vS(s,t.state.node,a,n,(i=s,!!se.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 vS(e,t,n,s,r){return Ja("$.event",di(e),t,n,s&&Ri,void 0===r?void 0:di(r))}function gS(e,t,n){if(null===e)return Bi(null,[ci("$$arg")],Ya([ki(Ja("$.bubble_event.call",Li,ci("$$props"),ci("$$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(!be&&"import"!==e?.declaration_kind)return s}if(t.has_call){const e=ci(n.state.scope.generate("event_handler"));n.state.init.push(Di(e,Ja("$.derived",Pi(s)))),s=Ja("$.get",e)}let r=Ja(hi(s,"apply",!1,!0),Li,ci("$$args"));if(be){const t=we(e.start),a="CallExpression"===e.type&&0===e.arguments.length&&"Identifier"===e.callee.type;r=Ja("$.apply",Pi(s),Li,ci("$$args"),ci(n.state.analysis.name),t&&Ua([di(t.line),di(t.column)]),bS(e)&&Ri,a&&Ri)}return Bi(null,[_i(ci("$$args"))],Ya([ki(r)]))}function bS(e){return"CallExpression"===e.type||"NewExpression"===e.type||"AssignmentExpression"===e.type||"UpdateExpression"===e.type||"SequenceExpression"===e.type&&e.expressions.some(bS)}function _S(e,t){if("Identifier"===e.type)return t.state.transform[e.name]={read:Ik},{id:e,declarations:null};const n=t.visit(e),s=Zi(e),r=ci("$$source"),a=ci("$$value"),i=Ya([Di(n,Ja("$.get",r)),Ui(fi(s.map((e=>vi("init",e,e)))))]),o=[Di(a,Ap(t.state,i))];for(const e of s)t.state.transform[e.name]={read:Ik},o.push(Di(e,Ap(t.state,hi(Ja("$.get",a),e))));return{id:r,declarations:o}}function xS(e,t,n,s){const r=s.state.metadata.bound_contenteditable;let a=t,i=0,o=[];function l(e,t){const n=function(e){return 0===i?a(e):Ja("$.sibling",a(!1),(e||1!==i)&&di(i),e&&Ri)}(e);let r=n;return"Identifier"!==r.type&&(r=ci(s.state.scope.generate(t)),s.state.init.push(Di(r,n))),a=()=>r,i=1,r}function c(e){if(e.every((e=>"Text"===e.type)))return i+=1,void s.state.template.push_text(e);s.state.template.push_text([{type:"Text",data:" ",raw:" ",start:-1,end:-1}]);const{has_state:t,value:n}=fp(e,s),a=l(1===e.length,"text"),o=ki(Ja("$.set_text",a,n));t&&!r?s.state.update.push(o):s.state.init.push(ki(Ka("=",hi(a,"nodeValue"),n)))}for(const t of e)if("Text"===t.type||"ExpressionTag"===t.type)o.push(t);else{o.length>0&&(c(o),o=[]);let r=s.state;if(wS(t,s.state))i+=1;else if("EachBlock"===t.type&&1===e.length&&n)t.metadata.is_controlled=!0;else{const e=l(!1,"RegularElement"===t.type?t.name:"node");r={...s.state,node:e}}s.visit(t,r)}o.length>0&&c(o),i>1&&(i-=1,s.state.init.push(ki(Ja("$.next",1!==i&&di(i)))))}function wS(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(Yi(t))return!1;if(ne(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&&!Gi(t))return!1}return!0}function CS(e,t,n=t.state.memoizer){let s=[],r=!1,a=!1;for(const n of e){const e=t.visit(n.expression);s.push(ui(n.name,e)),r||=n.metadata.expression.has_call||n.metadata.expression.has_state,a||=n.metadata.expression.has_await}const i=fi(s);return r||a?n.add(i,a):i}function kS(e,t,n=t.state.memoizer){const s=fi([]),r=fi([]);let a=!1,i=!1;for(const n of e){const e=!0===n.value?kp(ci(n.name),t.state):AS(n.value,t).value;(n.modifiers.includes("important")?r:s).properties.push(ui(n.name,e)),a||=n.metadata.expression.has_call||n.metadata.expression.has_state,i||=n.metadata.expression.has_await}const o=r.properties.length?Ua([s,r]):s;return a||i?n.add(o,i):o}function SS(e,t,n,s,r){return"muted"===n?Ka("=",hi(t,ci("muted")),s):"value"===n?Ja("$.set_value",t,s):"checked"===n?Ja("$.set_checked",t,s):"selected"===n?Ja("$.set_selected",t,s):"defaultValue"===n&&(r.some((e=>"Attribute"===e.type&&"value"===e.name&&Gi(e)))||"textarea"===e.name&&e.fragment.nodes.length>0)?Ja("$.set_default_value",t,s):"defaultChecked"===n&&r.some((e=>"Attribute"===e.type&&"checked"===e.name&&!0===e.value))?Ja("$.set_default_checked",t,s):function(e){return ee.includes(e)}(n)?Ka("=",hi(t,n),s):Ja(n.startsWith("xlink")?"$.set_xlink_attribute":"$.set_attribute",t,di(n),s,Ee(e,"hydration_attribute_changed")&&Ri)}function PS(e,t,n){const{value:s,has_state:r}=AS(t.value,n),a=Ja("$.set_custom_element_data",e,di(t.name),s),i=r?Ja("$.template_effect",Pi(a)):a;n.state.init.push(ki(i))}function ES(e,t,n,s){const r=s.state,a="select"===e&&!0!==n.value&&!Gi(n),{value:i,has_state:o}=AS(n.value,s,((e,t)=>t.has_call||t.has_await?r.memoizer.add(e,t.has_await):e)),l=s.state.scope.evaluate(i),c=Ka("=",hi(t,"__value"),i),p=Ka("=",hi(t,"value"),l.is_defined?c:ni("??",c,di(""))),u=ki(a?xi([p,Ja("$.select_option",t,i)]):p);if(o){const n=ci(r.scope.generate(`${t.name}_value`)),s="option"===e?fi([]):void 0;r.init.push(Di(n,s)),r.update.push(Fi(Qa("!==",n,Ka("=",n,i)),Ya([u])))}else r.init.push(u);a&&r.init.push(ki(Ja("$.init_select",t)))}function TS(e,t,n,s,r,a,i=!1){const o=[],l=new mp;for(const t of e)if("Attribute"===t.type){const{value:e}=AS(t.value,s,((e,t)=>t.has_call||t.has_await?l.add(e,t.has_await):e));if(!Yi(t)||"ArrowFunctionExpression"!==e.type&&"FunctionExpression"!==e.type)o.push(ui(t.name,e));else{const n=s.state.scope.generate("event_handler");s.state.init.push(Di(n,e)),o.push(ui(t.name,ci(n)))}}else{let e=s.visit(t);(t.metadata.expression.has_call||t.metadata.expression.has_await)&&(e=l.add(e,t.metadata.expression.has_await)),o.push(Ci(e))}t.length&&o.push(vi("init",Ua([ci("$.CLASS")]),CS(t,s,l))),n.length&&o.push(vi("init",Ua([ci("$.STYLE")]),kS(n,s,l)));const c=l.apply();s.state.init.push(ki(Ja("$.attribute_effect",a,Ga(c,fi(o)),l.sync_values(),l.async_values(),r.metadata.scoped&&""!==s.state.analysis.css.hash&&di(s.state.analysis.css.hash),i&&Ri,Ee(r,"hydration_attribute_changed")&&Ri)))}function AS(e,t,n=(e=>e)){if(!0===e)return{value:Ri,has_state:!1};if(!Array.isArray(e)||1===e.length){const s=Array.isArray(e)?e[0]:e;if("Text"===s.type)return{value:di(s.data),has_state:!1};return{value:n(xp(t,s.expression,s.metadata.expression),s.metadata.expression),has_state:s.metadata.expression.has_state||s.metadata.expression.has_await}}return fp(e,t,t.state,n)}function $S(e,t){return e.metadata.svg||e.metadata.mathml?t.name:(n=(n=t.name).toLowerCase(),Z[n]??n);var n}function RS(e,t,n,s,r,a){let i,o,l,c,{value:p,has_state:u}=AS(n.value,r,((e,t)=>(n.metadata.needs_clsx&&(e=Ja("$.clsx",e)),t.has_call||t.has_await?r.state.memoizer.add(e,t.has_await):e)));s.length&&(l=CS(s,r),u||=s.some((e=>e.metadata.expression.has_state||e.metadata.expression.has_await)),u?(i=ci(r.state.scope.generate("classes")),r.state.init.push(si("let",[ri(i)])),o=i):o=fi([])),e.metadata.scoped&&r.state.analysis.css.hash&&("Literal"!==p.type||""!==p.value&&null!==p.value?"Literal"===p.type&&"string"==typeof p.value?p=di(Dk(p.value,!0)+" "+r.state.analysis.css.hash):c=di(r.state.analysis.css.hash):p=di(r.state.analysis.css.hash)),!c&&l&&(c=Mi);let d=Ja("$.set_class",t,di(a?1:0),p,c,o,l);i&&(d=Ka("=",i,d)),(u?r.state.update:r.state.init).push(ki(d))}function IS(e,t,n,s){let r,a,i,{value:o,has_state:l}=AS(t.value,s,((e,t)=>t.has_call?s.state.memoizer.add(e,t.has_await):e));n.length&&(i=kS(n,s),l||=n.some((e=>e.metadata.expression.has_state||e.metadata.expression.has_await)),l?(r=ci(s.state.scope.generate("styles")),s.state.init.push(si("let",[ri(r)])),a=r):a=fi([]));let c=Ja("$.set_style",e,o,a,i);r&&(c=Ka("=",r,c)),(l?s.state.update:s.state.init).push(ki(c))}function MS(e,t,n){const s=n.state.node,r=[],a=[],i=[],o={default:{...n.state,scope:e.metadata.scopes.default,transform:{...n.state.transform}}},l={},c={},p=new mp,u=[];let d=null;const h=[],m="SvelteComponent"===e.type||"Component"===e.type&&e.metadata.dynamic,f="Component"===e.type&&e.metadata.dynamic?n.state.scope.generate(e.name):"$$component";let y=!!Hl(e),v=!1;function g(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(y)for(const t of e.attributes)"LetDirective"===t.type&&i.push(n.visit(t));for(const s of e.attributes)if("LetDirective"===s.type)y||i.push(n.visit(s,o.default));else if("OnDirective"===s.type){s.expression||(n.state.analysis.needs_props=!0);let e=gS(s.expression,s.metadata.expression,n);s.modifiers.includes("once")&&(e=Ja("$.once",e)),(c[s.name]||=[]).push(e)}else if("SpreadAttribute"===s.type){const e=n.visit(s);s.metadata.expression.has_state?r.push(Pi(s.metadata.expression.has_await||s.metadata.expression.has_call?Ja("$.get",p.add(e,s.metadata.expression.has_await)):e)):r.push(e)}else if("Attribute"===s.type){if(s.name.startsWith("--")){u.push(ui(s.name,AS(s.value,n,((e,t)=>t.has_call||t.has_await?Ja("$.get",p.add(e,t.has_await)):e)).value));continue}"slot"===s.name&&(y=!0),"children"===s.name&&(v=!0);const{value:e,has_state:t}=AS(s.value,n,((e,t)=>{if(!t.has_state&&!t.has_await)return e;const n=t.has_await||Qi(s.value).some((e=>"ExpressionTag"===e.type&&"Identifier"!==e.expression.type&&"MemberExpression"!==e.expression.type));return n?Ja("$.get",p.add(e,t.has_await)):e}));g(t?li(s.name,[Ui(e)]):ui(s.name,e))}else if("BindDirective"===s.type){const r=n.visit(s.expression);if(be&&"this"!==s.name&&!Ee(e,"ownership_invalid_binding")&&"SequenceExpression"!==s.expression.type){const e=Wi(s.expression),a=e&&n.state.scope.get(e.name);"bindable_prop"!==a?.kind&&"prop"!==a?.kind||(n.state.analysis.needs_mutation_validation=!0,h.push(ki(Ja("$$ownership_validator.binding",di(a.node.name),ci(m?f:t),Pi(r)))))}if("SequenceExpression"===r.type)if("this"===s.name)d=s.expression;else{const[e,t]=r.expressions,a=ci(n.state.scope.generate("bind_get")),i=ci(n.state.scope.generate("bind_set"));n.state.init.push(Di(a,e)),n.state.init.push(Di(i,t)),g(li(s.name,[Ui(Ja(a))])),g(wi(s.name,[ki(Ja(i,ci("$$value")))]))}else if(be&&"MemberExpression"===r.type&&n.state.analysis.runes&&!Ee(e,"binding_property_non_reactive")&&bp(n.state,s,r),"this"===s.name)d=s.expression;else{const e="Identifier"===s.expression.type&&"store_sub"===n.state.scope.get(s.expression.name)?.kind;g(li(s.name,e?[ki(Ja("$.mark_store_binding")),Ui(r)]:[Ui(r)]),!0);const t=Ka("=",s.expression,ci("$$value"));g(wi(s.name,[ki(n.visit(t))]),!0)}}else if("AttachTag"===s.type){const e=n.state.scope.evaluate(s.expression);let t=n.visit(s.expression);s.metadata.expression.has_state&&(t=Ga([ci("$$node")],Ja(e.is_function?t:ni("||",t,ci("$.noop")),ci("$$node")))),g(vi("init",Ja("$.attachment"),t,!0))}if(a.forEach((e=>e())),y&&n.state.init.push(...i),Object.keys(c).length>0){const e=fi(Object.keys(c).map((e=>ui(e,c[e].length>1?Ua(c[e]):c[e][0]))));g(ui("$$events",e))}const b=[],_=[];for(const t of e.fragment.nodes){if("SnippetBlock"===t.type){n.visit(t,{...n.state,init:b}),g(vi("init",t.expression,t.expression)),_.push(ui("children"===t.expression.name?"default":t.expression.name,Ri));continue}let e=Hl(t)??"default";(l[e]||=[]).push(t)}for(const t of Object.keys(l)){const s=n.visit({...e.fragment,nodes:l[t]},"default"===t?y?n.state:o.default:{...n.state,scope:e.metadata.scopes[t],transform:{...n.state.transform}});if(0===s.body.length)continue;const r=Ga([ci("$$anchor"),ci("$$slotProps")],Ya([..."default"!==t||y?[]:i,...s.body]));"default"!==t||v?_.push(ui(t,r)):0===i.length&&l.default.every((e=>"SvelteFragment"!==e.type||!e.attributes.some((e=>"LetDirective"===e.type))))?(g(ui("children",be?Ja("$.wrap_snippet",ci(n.state.analysis.name),r):r)),_.push(ui(t,Ri))):(_.push(ui(t,r)),g(ui("children",ci("$.invalid_default_snippet"))))}_.length>0&&g(ui("$$slots",fi(_))),!n.state.analysis.runes&&e.attributes.some((e=>"BindDirective"===e.type))&&g(ui("$$legacy",Ri));const x=0===r.length||1===r.length&&Array.isArray(r[0])?fi(r[0]||[]):Ja("$.spread_props",...r.map((e=>Array.isArray(e)?fi(e):e)));let w=e=>Ja(m?f:n.visit(mi(t)),e,x);if(null!==d){const e=w;w=t=>gp(d,e(t),n)}const C=[...b,...p.deriveds(n.state.analysis.runes)];if(m){const s=w;w=r=>Ja("$.component",r,Pi(n.visit("Component"===e.type?mi(t):e.expression)),Ga([ci("$$anchor"),ci(f)],Ya([...h,ki(s(ci("$$anchor")))])))}else C.push(...h);Object.keys(u).length>0?("svg"===n.state.metadata.namespace?n.state.template.push_element("g",e.start):(n.state.template.push_element("svelte-css-wrapper",e.start),n.state.template.set_prop("style","display: contents")),n.state.template.push_comment(),n.state.template.pop_element(),C.push(ki(Ja("$.css_props",s,Pi(fi(u)))),ki(w(hi(s,"lastChild"))),ki(Ja("$.reset",s)))):(n.state.template.push_comment(),C.push(wp(w(s),e,"component",{componentTag:e.name}))),p.apply();const k=p.async_values();return k?ki(Ja("$.async",s,k,Ga([ci("$$anchor"),...p.async_ids()],Ya(C)))):C.length>1?Ya(C):C[0]}function qS(e){const t=Ua([]);for(const n of e){if("element"!==n.type)continue;const{line:e,column:s}=we(n.start),r=Ua([di(e),di(s)]),a=qS(n.children);a.elements.length>0&&r.elements.push(a),t.elements.push(r)}return t}function LS(e,t,n=0){const s="tree"===e.options.fragments,r=s?e.template.as_tree():e.template.as_html();s&&("svg"===t&&(n|=E),"mathml"===t&&(n|=T));let a=Ja(s?"$.from_tree":`$.from_${t}`,r,n?di(n):void 0);return e.template.contains_script_tag&&(a=Ja("$.with_script",a)),be&&(a=Ja("$.add_locations",a,hi(ci(e.analysis.name),"$.FILENAME",!0),qS(e.template.nodes))),a}const OS="accent-height accumulate additive alignment-baseline allowReorder alphabetic amplitude arabic-form ascent attributeName attributeType autoReverse azimuth baseFrequency baseline-shift baseProfile bbox begin bias by calcMode cap-height class clip clipPathUnits clip-path clip-rule color color-interpolation color-interpolation-filters color-profile color-rendering contentScriptType contentStyleType cursor cx cy d decelerate descent diffuseConstant direction display divisor dominant-baseline dur dx dy edgeMode elevation enable-background end exponent externalResourcesRequired fill fill-opacity fill-rule filter filterRes filterUnits flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight format from fr fx fy g1 g2 glyph-name glyph-orientation-horizontal glyph-orientation-vertical glyphRef gradientTransform gradientUnits hanging height href horiz-adv-x horiz-origin-x id ideographic image-rendering in in2 intercept k k1 k2 k3 k4 kernelMatrix kernelUnitLength kerning keyPoints keySplines keyTimes lang lengthAdjust letter-spacing lighting-color limitingConeAngle local marker-end marker-mid marker-start markerHeight markerUnits markerWidth mask maskContentUnits maskUnits mathematical max media method min mode name numOctaves offset onabort onactivate onbegin onclick onend onerror onfocusin onfocusout onload onmousedown onmousemove onmouseout onmouseover onmouseup onrepeat onresize onscroll onunload opacity operator order orient orientation origin overflow overline-position overline-thickness panose-1 paint-order pathLength patternContentUnits patternTransform patternUnits pointer-events points pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits r radius refX refY rendering-intent repeatCount repeatDur requiredExtensions requiredFeatures restart result rotate rx ry scale seed shape-rendering slope spacing specularConstant specularExponent speed spreadMethod startOffset stdDeviation stemh stemv stitchTiles stop-color stop-opacity strikethrough-position strikethrough-thickness string stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width style surfaceScale systemLanguage tabindex tableValues target targetX targetY text-anchor text-decoration text-rendering textLength to transform type u1 u2 underline-position underline-thickness unicode unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical values version vert-adv-y vert-origin-x vert-origin-y viewBox viewTarget visibility width widths word-spacing writing-mode x x-height x1 x2 xChannelSelector xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xml:lang xml:space y y1 y2 yChannelSelector z zoomAndPan".split(" "),NS=new Map;OS.forEach((e=>{NS.set(e.toLowerCase(),e)}));class DS{contains_script_tag=!1;needs_import_node=!1;nodes=[];#o=[this.nodes];#l;#c=this.nodes;push_element(e,t){this.#l={type:"element",name:e,attributes:{},children:[],start:t},this.#c.push(this.#l),this.#c=this.#l.children,this.#o.push(this.#c)}push_comment(e){this.#c.push({type:"comment",data:e})}push_text(e){this.#c.push({type:"text",nodes:e})}pop_element(){this.#o.pop(),this.#c=this.#o.at(-1)}set_prop(e,t){this.#l.attributes[e]=t}as_html(){return Si([bi(this.nodes.map(jS).join(""),!0)],[])}as_tree(){return"comment"===this.nodes[0].type&&this.nodes.unshift({type:"comment",data:void 0}),Ua(this.nodes.map(BS))}}function jS(e){if("text"===e.type)return e.nodes.map((e=>e.raw)).join("");if("comment"===e.type)return e.data?`\x3c!--${e.data}--\x3e`:"<!>";let t=`<${e.name}`;for(const n in e.attributes){const s=e.attributes[n];t+=` ${n}`,void 0!==s&&(t+=`="${Dk(s,!0)}"`)}return z(e.name)?t+="/>":(t+=">",t+=e.children.map(jS).join(""),t+=`</${e.name}>`),t}function BS(e){if("text"===e.type)return di(e.nodes.map((e=>e.data)).join(""));if("comment"===e.type)return e.data?Ua([di(`// ${e.data}`)]):null;const t=Ua([di(e.name)]),n=fi([]);for(const t in e.attributes){const r=e.attributes[t];n.properties.push(vi("init",zi((s=(s=t).toLowerCase(),NS.get(s)||s)),void 0===r?ti:di(r)))}var s;if((n.properties.length>0||e.children.length>0)&&t.elements.push(n.properties.length>0?n:Mi),e.children.length>0){const n=e.children.map(BS);if(t.elements.push(...n),"pre"===e.name||"textarea"===e.name){const e=n[0];"Literal"===e?.type&&(e.value=e.value.replace(a,""))}}return t}const FS=["stopPropagation","stopImmediatePropagation","preventDefault","self","trusted","once"];function VS(e,t,n){const s={...n.state,node:ci(t)};for(const t of e.attributes)"OnDirective"===t.type?n.state.init.push(ki(n.visit(t,s))):n.visit(t,s)}function HS(e,t,n){if("Identifier"===e.id.type)return[ri(e.id,Ja("$.mutable_source",n,t.state.analysis.immutable?Ri:void 0))];const s=ci(t.state.scope.generate("tmp")),{inserts:r,paths:a}=no(e.id,s);return[ri(s,n),...r.map((({id:e,value:n})=>{e.name=t.state.scope.generate("$$array"),t.state.transform[e.name]={read:Ik};return ri(e,Ja("$.derived",t.visit(Pi(n))))})),...a.map((e=>{const n=t.visit(e.expression),s=t.state.scope.get(e.node.name);return ri(e.node,"state"===s?.kind?Ja("$.mutable_source",n,t.state.analysis.immutable?Ri:void 0):n)}))]}const US={_: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&&!Cp(r,n.analysis))&&delete e[t];t({...n,transform:e,scope:s})}else t()},AnimateDirective:function(e,t){const n=null===e.expression?Mi:Pi(t.visit(e.expression));t.state.after_update.push(ki(Ja("$.animation",t.state.node,Pi(t.visit(vp(e.name))),n)))},ArrowFunctionExpression:function(e,t){return dS(e,t)},AssignmentExpression:function(e,t){const n=qk(e,t,fS)??t.next();return _p(e,t,n)},Attribute:function(e,t){Yi(e)&&yS(e,t)},AwaitBlock:function(e,t){t.state.template.push_comment();const n=Pi(xp(t,e.expression,e.metadata.expression),e.metadata.expression.has_await);let s,r;if(e.then){const n={...t,state:{...t.state,transform:{...t.state.transform}}},r=e.value&&_S(e.value,n),a=[ci("$$anchor")];r&&a.push(r.id);s=Ga(a,Ya([...r?.declarations??[],...n.visit(e.then,n.state).body]))}if(e.catch){const n={...t,state:{...t.state}},s=e.error&&_S(e.error,n),a=[ci("$$anchor")];s&&a.push(s.id);r=Ga(a,Ya([...s?.declarations??[],...n.visit(e.catch,n.state).body]))}t.state.init.push(wp(Ja("$.await",t.state.node,n,e.pending?Ga([ci("$$anchor")],t.visit(e.pending)):Mi,s,r),e,"await"))},AwaitExpression:function(e,t){const n=t.visit(e.argument);return t.state.is_instance&&1===t.state.scope.function_depth||function(e){if(e.state.in_derived)return!0;let t=e.path.length;for(;t--;){const n=e.path[t];if("ArrowFunctionExpression"===n.type||"FunctionExpression"===n.type||"FunctionDeclaration"===n.type)return!1;if(n.metadata)return!0}return!1}(t)&&!function(e,t){let n=e.path.length;for(;n--;){const s=e.path[n];if(s.metadata)return!0;switch(s.type){case"ArrayExpression":if(t!==s.elements.at(-1))return!1;break;case"AssignmentExpression":case"BinaryExpression":case"LogicalExpression":if(t===s.left)return!1;break;case"CallExpression":case"NewExpression":if(t!==s.arguments.at(-1))return!1;break;case"ConditionalExpression":if(t===s.test)return!1;break;case"MemberExpression":if(s.computed&&t===s.object)return!1;break;case"ObjectExpression":if(t!==s.properties.at(-1))return!1;break;case"Property":if(t===s.key)return!1;break;case"SequenceExpression":case"TemplateLiteral":if(t!==s.expressions.at(-1))return!1;break;case"TaggedTemplateExpression":if(t!==s.quasi.expressions.at(-1))return!1;break;default:return!1}t=s}}(t,e)?Ja(Xa(Ja("$.save",n))):be&&!Ee(e,"await_reactivity_loss")?Ja(Xa(Ja("$.track_reactivity_loss",n))):n===e.argument?e:{...e,argument:n}},BinaryExpression:function(e,t){if(be){const n=e.operator;if("==="===n||"!=="===n)return Ja("$.strict_equals",t.visit(e.left),t.visit(e.right),"!=="===n&&Ii);if("=="===n||"!="===n)return Ja("$.equals",t.visit(e.left),t.visit(e.right),"!="===n&&Ii)}t.next()},BindDirective:function(e,t){const n=t.visit(e.expression),s=ip[e.name],r=t.path.at(-1);let a,i,o;if("SequenceExpression"===n.type?[a,i]=n.expressions:(be&&t.state.analysis.runes&&"MemberExpression"===n.type&&("this"!==e.name||t.path.some((({type:e})=>"IfBlock"===e||"EachBlock"===e||"AwaitBlock"===e||"KeyBlock"===e)))&&!Ee(e,"binding_property_non_reactive")&&bp(t.state,e,n),a=Pi(n),i=Ei(Ga([ci("$$value")],t.visit(Ka("=",e.expression,ci("$$value"))))),a===i&&(i=void 0)),s?.event)o=Ja("$.bind_property",di(e.name),di(s.event),t.state.node,i??a,s.bidirectional&&a);else switch(e.name){case"online":o=Ja("$.bind_online",i??a);break;case"scrollX":case"scrollY":o=Ja("$.bind_window_scroll",di("scrollX"===e.name?"x":"y"),a,i);break;case"innerWidth":case"innerHeight":case"outerWidth":case"outerHeight":o=Ja("$.bind_window_size",di(e.name),i??a);break;case"activeElement":o=Ja("$.bind_active_element",i??a);break;case"muted":o=Ja("$.bind_muted",t.state.node,a,i);break;case"paused":o=Ja("$.bind_paused",t.state.node,a,i);break;case"volume":o=Ja("$.bind_volume",t.state.node,a,i);break;case"playbackRate":o=Ja("$.bind_playback_rate",t.state.node,a,i);break;case"currentTime":o=Ja("$.bind_current_time",t.state.node,a,i);break;case"buffered":o=Ja("$.bind_buffered",t.state.node,i??a);break;case"played":o=Ja("$.bind_played",t.state.node,i??a);break;case"seekable":o=Ja("$.bind_seekable",t.state.node,i??a);break;case"seeking":o=Ja("$.bind_seeking",t.state.node,i??a);break;case"ended":o=Ja("$.bind_ended",t.state.node,i??a);break;case"readyState":o=Ja("$.bind_ready_state",t.state.node,i??a);break;case"contentRect":case"contentBoxSize":case"borderBoxSize":case"devicePixelContentBoxSize":o=Ja("$.bind_resize_observer",t.state.node,di(e.name),i??a);break;case"clientWidth":case"clientHeight":case"offsetWidth":case"offsetHeight":o=Ja("$.bind_element_size",t.state.node,di(e.name),i??a);break;case"value":o="RegularElement"===r?.type&&"select"===r.name?Ja("$.bind_select_value",t.state.node,a,i):Ja("$.bind_value",t.state.node,a,i);break;case"files":o=Ja("$.bind_files",t.state.node,a,i);break;case"this":o=gp(e.expression,t.state.node,t);break;case"textContent":case"innerHTML":case"innerText":o=Ja("$.bind_content_editable",di(e.name),t.state.node,a,i);break;case"checked":o=Ja("$.bind_checked",t.state.node,a,i);break;case"focused":o=Ja("$.bind_focused",t.state.node,i??a);break;case"group":{const s=e.metadata.parent_each_blocks.map((e=>e.metadata.keyed&&e.index?Ja("$.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&&!Gi(e)&&!0!==e.value))?.value;void 0!==e&&(l=Pi(Ya([ki(AS(e,t).value),Ui(n)])))}o=Ja("$.bind_group",e.metadata.binding_group_name,Ua(s),t.state.node,l,i??a);break}default:throw new Error("unknown binding "+e.name)}if("this"===e.name)t.state.init.push(ki(o));else{"RegularElement"===r.type&&r.attributes.find((e=>"UseDirective"===e.type))?t.state.init.push(ki(Ja("$.effect",Pi(o)))):t.state.after_update.push(ki(o))}},BlockStatement:function(e,t){Mk(t);const n=t.state.scope.tracing;if(null!==n){const s=t.path.at(-1).async,r=Ja("$.trace",n,Pi(Ya(e.body.map((e=>t.visit(e)))),s));return Ya([Ui(s?Xa(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?Ui():void 0},CallExpression:function(e,t){const n=mc(e,t.state.scope);switch(n){case"$host":return ci("$$props.$$host");case"$effect.tracking":return Ja("$.effect_tracking");case"$state":case"$state.raw":{let s,r=e.arguments[0];return r&&(s=t.visit(e.arguments[0]),"$state"===n&&Tp(r,t.state.scope)&&(s=Ja("$.proxy",s))),Ja("$.state",s)}case"$derived":case"$derived.by":{let s=t.visit(e.arguments[0],{...t.state,in_derived:"$derived"===n});return Ja("$.derived","$derived"===n?Pi(s):s)}case"$state.snapshot":return Ja("$.snapshot",t.visit(e.arguments[0]),Ee(e,"state_snapshot_uncloneable")&&Ri);case"$effect.root":return Ja("$.effect_root",...e.arguments.map((e=>t.visit(e))));case"$effect.pending":return Ja("$.pending");case"$inspect":case"$inspect().with":return tS(e,t)}if(be&&"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=>"SpreadElement"===e.type||t.state.scope.evaluate(e).has_unknown)))return Ja(e.callee,Ci(Ja("$.log_if_contains_state",di(e.callee.property.name),...e.arguments.map((e=>t.visit(e))))));t.next()},ClassBody:function(e,t){const n=t.state.analysis.classes.get(e);if(!n)return void t.next();const s=[],r={...t.state,state_fields:n};for(const[e,t]of n)if("#"!==e[0]&&"AssignmentExpression"===t.node.type){const n=hi(Li,t.key),r="$state"===t.type&&!0,a=zi(e);s.push(gi(t.key,null),ji("get",a,[],[Ui(Ja("$.get",n))]),ji("set",a,[ci("value")],[ki(Ja("$.set",n,ci("value"),r&&Ri))]))}const a=ro(t.path,-1);for(const i of e.body){if("PropertyDefinition"!==i.type){s.push(t.visit(i,r));continue}const e=Zo(i.key),o=e&&n.get(e);if(o){if("#"===e[0]){let n=i.value?t.visit(i.value,r):void 0;be&&o.node===i&&(n=Ja("$.tag",n,di(`${a.id?.name??"[class]"}.${e}`))),s.push(gi(i.key,n))}else if(o.node===i){let n=t.visit(o.value,r);be&&(n=Ja("$.tag",n,di(`${a.id?.name??"[class]"}.${e}`)));const l=hi(Li,o.key),c="$state"===o.type&&!0;s.push(gi(o.key,n),ji("get",i.key,[],[Ui(Ja("$.get",l))]),ji("set",i.key,[ci("value")],[ki(Ja("$.set",l,ci("value"),c&&Ri))]))}}else s.push(t.visit(i,r))}return{...e,body:s}},Comment:function(e,t){t.state.template.push_comment(e.data)},Component:function(e,t){const n=MS(e,e.name,t);t.state.init.push(n)},ConstTag:function(e,t){const n=e.declaration.declarations[0];if("Identifier"===n.id.type){const s=xp({...t,state:{...t.state,in_derived:!0}},n.init,e.metadata.expression);let r=Ap(t.state,s,e.metadata.expression.has_await);be&&(r=Ja("$.tag",r,di(n.id.name))),t.state.consts.push(Ni(n.id,r)),t.state.transform[n.id.name]={read:Ik},be&&t.state.consts.push(ki(Ja("$.get",n.id)))}else{const s=Zi(n.id),r=ci(t.state.scope.generate("computed_const")),a={...t.state.transform};for(const e of s)delete a[e.name];const i={...t.state,transform:a,in_derived:!0},o=xp({...t,state:i},n.init,e.metadata.expression),l=Ya([Ni(t.visit(n.id,i),o),Ui(fi(s.map((e=>vi("init",e,e)))))]);let c=Ap(t.state,l,e.metadata.expression.has_await);be&&(c=Ja("$.tag",c,di("[@const]"))),t.state.consts.push(Ni(r,c)),be&&t.state.consts.push(ki(Ja("$.get",r)));for(const e of s)t.state.transform[e.name]={read:e=>hi(Ja("$.get",r),e)}}},DebugTag:function(e,t){const n=fi(e.identifiers.map((e=>{const n=Ja("$.snapshot",t.visit(e));return vi("init",e,t.state.analysis.runes?n:Ja("$.untrack",Pi(n)))}))),s=Ja("console.log",n);t.state.init.push(ki(Ja("$.template_effect",Pi(Ya([ki(s),qi])))))},EachBlock:function(e,t){const n=e.metadata,s={...t.state,scope:t.state.scope.parent},r=xp({...t,state:s},e.expression,e.metadata.expression);n.is_controlled||t.state.template.push_comment();let a=0;e.metadata.keyed&&e.index&&(a|=2);const i="Identifier"===e.key?.type&&"Identifier"===e.context?.type&&e.context?.name===e.key.name;let o;for(const t of e.metadata.expression.dependencies)if("store_sub"===t.kind){o=!0;break}for(const n of e.metadata.expression.dependencies)if(!(n.scope.function_depth>=t.state.scope.function_depth)&&(!t.state.analysis.runes||!i||o)){a|=1;break}t.state.analysis.runes&&!o&&(a|=16),e.key&&e.body.nodes.some((e=>("RegularElement"===e.type||"SvelteElement"===e.type)&&e.attributes.some((e=>"AnimateDirective"===e.type))))&&(a|=8),n.is_controlled&&(a|=4);let l="";if("Identifier"===e.expression.type||"MemberExpression"===e.expression.type){const n=Wi(e.expression);if(n){const e=t.state.scope.get(n.name);"store_sub"===e?.kind&&(l=n.name)}}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}const p={...t.state,transform:{...t.state.transform},store_to_invalidate:l},u={...t.state,transform:{...t.state.transform}},d=n.contains_group_binding||!e.index?n.index:ci(e.index),h="Identifier"===e.context?.type?e.context:ci("$$item");let m=n.contains_group_binding,f=!1;e.index&&(p.transform[e.index]={read:e=>(m=!0,0!=(2&a)?Ik(e):e)},u.transform[e.index]={read:e=>(f=!0,e)});const y=[],v=l?Ja("$.invalidate_store",ci("$$stores"),di(l)):void 0,g=[];if(!t.state.analysis.runes){const e=new Set;if(c)e.add(c),p.transform[c.name]={read:Ja};else for(const t of n.transitive_deps)e.add(t.node);for(const n of function(e){return e.path.filter((e=>"EachBlock"===e.type))}(t))for(const t of n.metadata.transitive_deps)e.add(t.node);if(e.size>0){const n=Ja("$.invalidate_inner_signals",Pi(xi([...e].map((e=>t.visit({...e},p))))));g.push(n)}}if(v&&g.push(v),"Identifier"===e.context?.type){const n=t.state.scope.get(e.context.name);p.transform[e.context.name]={read:e=>n.reassigned?hi(c?Ja(c):r,0!=(2&a)?Ik(d):d,!0):0!=(1&a)?Ik(e):e,assign:(e,t)=>{m=!0;return xi([Ka("=",hi(c?Ja(c):r,0!=(2&a)?Ik(d):d,!0),t),...g])},mutate:(e,t)=>(m=!0,xi([t,...g]))},delete u.transform[e.context.name]}else if(e.context){const n=0!=(1&a)?Ja("$.get",h):h,{inserts:s,paths:r}=no(e.context,n);for(const{id:e,value:n}of s){e.name=t.state.scope.generate("$$array"),p.transform[e.name]={read:Ik};const s=t.visit(Pi(n),p);y.push(Di(e,Ja("$.derived",s)))}for(const e of r){const n=e.node.name,s=e.has_default_value,r=Pi(t.visit(e.expression,p));y.push(Oi(e.node,s?Ja("$.derived_safe_equal",r):r));const a=s?Ik:Ja;p.transform[n]={read:a,assign:(t,n)=>xi([Ka("=",e.update_expression,n),...g]),mutate:(e,t)=>xi([t,...g])},be&&y.push(ki(a(ci(n)))),delete u.transform[n]}}const b=t.visit(e.body,p);let _=ci("$.index");if(e.metadata.keyed){const n=e.context,s=t.visit(e.key,u);_=Ga(f?[n,d]:[n],s)}e.index&&n.contains_group_binding&&y.push(Oi(e.index,d));const{has_await:x}=e.metadata.expression,w=Pi(r,x),C=x?Pi(Ja("$.get",ci("$$collection"))):w,k=[ci("$$anchor"),h];(m||c)&&k.push(d),c&&k.push(c);const S=[t.state.node,di(a),C,_,Ga(k,Ya(y.concat(b.body)))];e.fallback&&S.push(Ga([ci("$$anchor")],t.visit(e.fallback)));const P=[wp(Ja("$.each",...S),e,"each")];be&&e.metadata.keyed&&P.unshift(ki(Ja("$.validate_each_keys",C,_))),x?t.state.init.push(ki(Ja("$.async",t.state.node,Ua([w]),Ga([t.state.node,ci("$$collection")],Ya(P))))):t.state.init.push(...P)},ExportNamedDeclaration:function(e,t){return t.state.is_instance?e.declaration?t.visit(e.declaration):ai:t.next()},ExpressionStatement:function(e,t){if("CallExpression"===e.expression.type){const n=mc(e.expression,t.state.scope);if("$effect"===n||"$effect.pre"===n){const s=Ja("$effect"===n?"$.user_effect":"$.user_pre_effect",t.visit(e.expression.arguments[0]));return s.callee.loc=e.expression.callee.loc,ki(s)}if("$inspect.trace"===n)return ai}t.next()},ForOfStatement:function(e,t){if(e.await&&be&&!Ee(e,"await_reactivity_loss")&&t.state.options.experimental.async){const n=t.visit(e.left),s=t.visit(e.right),r=t.visit(e.body);return function(e,t,n,s=!1){return{type:"ForOfStatement",left:e,right:t,body:n,await:s}}(n,Ja("$.for_await_track_reactivity_loss",s),r,!0)}t.next()},Fragment:function(e,t){const n=t.path.at(-1)??e,s=Zk(t.state.metadata.namespace,n,e.nodes),{hoisted:r,trimmed:a,is_standalone:i,is_text_first:o}=Jk(n,e.nodes,t.path,s,t.state,t.state.preserve_whitespace,t.state.options.preserveComments);if(0===r.length&&0===a.length)return Ya([]);const l=1===a.length&&"RegularElement"===a[0].type,c=1===a.length&&("SvelteFragment"===a[0].type||"TitleElement"===a[0].type),p=null!==t.state.init&&(e.metadata.has_await||!1),u=t.state.scope.root.unique("root"),d=[];let h;const m={...t.state,init:[],consts:[],update:[],after_update:[],memoizer:new mp,template:new DS,transform:{...t.state.transform},metadata:{namespace:s,bound_contenteditable:t.state.metadata.bound_contenteditable}};for(const e of r)t.visit(e,m);if(l){const e=a[0],n=ci(t.state.scope.generate(e.name));t.visit(e,{...m,node:n});const r=LS(m,s,m.template.needs_import_node?2:void 0);m.hoisted.push(Di(u,r)),m.init.unshift(Di(n,Ja(u))),h=ki(Ja("$.append",ci("$$anchor"),n))}else if(c)t.visit(a[0],m);else if(1===a.length&&"Text"===a[0].type){const e=ci(t.state.scope.generate("text"));m.init.unshift(Di(e,Ja("$.text",di(a[0].data)))),h=ki(Ja("$.append",ci("$$anchor"),e))}else if(a.length>0){const e=ci(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=ci(t.state.scope.generate("text"));xS(a,(()=>e),!1,{...t,state:m}),m.init.unshift(Di(e,Ja("$.text"))),h=ki(Ja("$.append",ci("$$anchor"),e))}else if(i)xS(a,(()=>ci("$$anchor")),!1,{...t,state:m});else{xS(a,(t=>Ja("$.first_child",e,t&&Ri)),!1,{...t,state:m});let n=1;if(m.template.needs_import_node&&(n|=2),1===m.template.nodes.length&&"comment"===m.template.nodes[0].type)m.init.unshift(Di(e,Ja("$.comment")));else{const t=LS(m,s,n);m.hoisted.push(Di(u,t)),m.init.unshift(Di(e,Ja(u)))}h=ki(Ja("$.append",ci("$$anchor"),e))}}return d.push(...m.consts),p&&d.push(Fi(Ja("$.aborted"),Ui())),o&&d.push(ki(Ja("$.next"))),d.push(...m.init),m.update.length>0&&d.push(yp(m)),d.push(...m.after_update),void 0!==h&&d.push(h),Ya(p?[ki(Ja("$.async_body",Ga([],Ya(d),!0)))]:d)},FunctionDeclaration:function(e,t){const n={...t.state,in_constructor:!1,in_derived:!1};if(!0===e.metadata?.hoisted){const s=Sp(e,t),r=t.visit(e.body,n);return t.state.hoisted.push({...e,params:s,body:r}),ai}t.next(n)},FunctionExpression:function(e,t){return dS(e,t)},HtmlTag:function(e,t){t.state.template.push_comment();const{has_await:n}=e.metadata.expression,s=xp(t,e.expression,e.metadata.expression),r=n?Ja("$.get",ci("$$html")):s,a="svg"===t.state.metadata.namespace,i="mathml"===t.state.metadata.namespace,o=ki(Ja("$.html",t.state.node,Pi(r),a&&Ri,i&&Ri,Ee(e,"hydration_html_changed")&&Ri));e.metadata.expression.has_await?t.state.init.push(ki(Ja("$.async",t.state.node,Ua([Pi(s,!0)]),Ga([t.state.node,ci("$$html")],Ya([o]))))):t.state.init.push(o)},Identifier:function(e,t){const n=t.path.at(-1);if(Vl(e,n)){if("$$props"===e.name)return ci("$$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 ci("$$props")}return kp(e,t.state)}},IfBlock:function(e,t){t.state.template.push_comment();const n=[],s=t.visit(e.consequent),r=ci(t.state.scope.generate("consequent"));let a;if(n.push(Di(r,Ga([ci("$$anchor")],s))),e.alternate){const s=t.visit(e.alternate);a=ci(t.state.scope.generate("alternate")),n.push(Di(a,Ga([ci("$$anchor")],s)))}const{has_await:i}=e.metadata.expression,o=xp(t,e.test,e.metadata.expression),l=i?Ja("$.get",ci("$$condition")):o,c=[t.state.node,Ga([ci("$$render")],Ya([Fi(l,ki(Ja("$$render",r)),a&&ki(Ja("$$render",a,di(!1))))]))];e.elseif&&c.push(Ri),n.push(wp(Ja("$.if",...c),e,"if")),i?t.state.init.push(ki(Ja("$.async",t.state.node,Ua([Pi(o,!0)]),Ga([t.state.node,ci("$$condition")],Ya(n))))):t.state.init.push(Ya(n))},ImportDeclaration:function(e,t){if("hoisted"in t.state)return t.state.hoisted.push(e),ai;t.next()},KeyBlock:function(e,t){t.state.template.push_comment();const{has_await:n}=e.metadata.expression,s=xp(t,e.expression,e.metadata.expression),r=Pi(n?Ja("$.get",ci("$$key")):s),a=t.visit(e.fragment);let i=wp(Ja("$.key",t.state.node,r,Ga([ci("$$anchor")],a)),e,"key");n&&(i=ki(Ja("$.async",t.state.node,Ua([Pi(s,!0)]),Ga([t.state.node,ci("$$key")],Ya([i]))))),t.state.init.push(i)},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=Ya([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=kp(ci(n),t.state);"$$props"!==n&&"$$restProps"!==n&&"bindable_prop"!==e.kind||(s=Ja("$.deep_read_state",s)),a.push(s)}return t.state.legacy_reactive_statements.set(e,ki(Ja("$.legacy_pre_effect",a.length>0?Pi(xi(a)):Pi(Ya([])),Pi(Ya(r))))),ai},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=>hi(Ja("$.get",ci(n)),e)};return Ni(n,Ja("$.derived",Pi(Ya([Oi("ObjectExpression"===e.expression.type?yi(e.expression.properties):za(e.expression.elements),hi(ci("$$slotProps"),e.name)),Ui(fi(s.map((e=>ui(e.node.name,e.node)))))]))))}{const n=null===e.expression?e.name:e.expression.name;return t.state.transform[n]={read:e=>Ja("$.get",e)},Ni(n,Ap(t.state,hi(ci("$$slotProps"),e.name)))}},MemberExpression:function(e,t){if("PrivateIdentifier"===e.property.type){const n=t.state.state_fields.get("#"+e.property.name);if(n)return!t.state.in_constructor||"$state.raw"!==n.type&&"$state"!==n.type?Ja("$.get",e):hi(e,"v")}t.next()},OnDirective:function(e,t){e.expression||(t.state.analysis.needs_props=!0);let n=gS(e.expression,e.metadata.expression,t);for(const t of FS)e.modifiers.includes(t)&&(n=Ja("$."+t,n));const s=e.modifiers.includes("capture"),r=e.modifiers.includes("passive")||!e.modifiers.includes("nonpassive")&&void 0;return vS(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=ci("$$_import_"+e);t.state.transform[e]={read:e=>Ja(n),mutate:(e,t)=>Ja(n,t)},t.state.legacy_reactive_imports.push(Di(n,Ja("$.reactive_import",Pi(ci(e)))))}}}for(const[e,n]of t.state.scope.declarations){if("store_sub"===n.kind){let n;const s=()=>n??=t.visit(ci(e.slice(1)));t.state.transform[e]={read:Ja,assign:(e,t)=>Ja("$.store_set",s(),t),mutate:(e,t)=>{const n=Ja("$.untrack",e);function r(e){return"MemberExpression"===e.type?{...e,object:r(e.object),property:e.property}:n}return Ja("$.store_mutate",s(),"AssignmentExpression"===t.type?Ka(t.operator,r(t.left),t.right):Ai(t.operator,r(t.argument),t.prefix),n)},update:n=>Ja(n.prefix?"$.update_pre_store":"$.update_store",kp(ci(e.slice(1)),t.state),Ja(n.argument),"--"===n.operator&&di(-1))}}if("prop"===n.kind||"bindable_prop"===n.kind)if(Ep(n,t.state))t.state.transform[e]={read:Ja,assign:(e,t)=>Ja(e,t),mutate:(e,t)=>"bindable_prop"===n.kind?Ja(e,t,Ri):t,update:e=>Ja(e.prefix?"$.update_pre_prop":"$.update_prop",e.argument,"--"===e.operator&&di(-1))};else if(n.prop_alias){const s=zi(n.prop_alias);t.state.transform[e]={read:e=>hi(ci("$$props"),s,"Literal"===s.type)}}else t.state.transform[e]={read:e=>hi(ci("$$props"),e)}}Mk(t),t.next()},RegularElement:function(e,t){if(t.state.template.push_element(e.name,e.start),"noscript"===e.name)return void t.state.template.pop_element();const n=Qo(e);t.state.template.needs_import_node||="video"===e.name||n,t.state.template.contains_script_tag||="script"===e.name;const s=[],r=[],a=[],i=[],o=[],l=new Map,c=new Map;let p=e.metadata.has_spread,u=!1,d=!1;for(const n of e.attributes)switch(n.type){case"AnimateDirective":case"OnDirective":case"TransitionDirective":case"AttachTag":i.push(n);break;case"Attribute":if("is"===n.name&&"html"===t.state.metadata.namespace){const{value:e}=AS(n.value,t);if("Literal"===e.type&&"string"==typeof e.value){t.state.template.set_prop("is",e.value);continue}}s.push(n),l.set(n.name,n);break;case"BindDirective":c.set(n.name,n),i.push(n);break;case"ClassDirective":r.push(n);break;case"LetDirective":o.push(t.visit(n));break;case"SpreadAttribute":s.push(n);break;case"StyleDirective":a.push(n);break;case"UseDirective":u=!0,i.push(n)}const h={...t.state,init:[],after_update:[]};for(const e of i)if("OnDirective"===e.type){const n=t.visit(e);u?h.init.push(ki(Ja("$.effect",Pi(n)))):h.after_update.push(ki(n))}else t.visit(e,h);if("input"===e.name){const e=s.some((e=>"Attribute"===e.type&&("value"===e.name||"checked"===e.name)&&!Gi(e)));!s.some((e=>"Attribute"===e.type&&("defaultValue"===e.name||"defaultChecked"===e.name)))&&(p||c.has("value")||c.has("checked")||c.has("group")||!c.has("group")&&e)&&(p?d=!0:t.state.init.push(ki(Ja("$.remove_input_defaults",t.state.node))))}if("textarea"===e.name){const e=l.get("value")??l.get("checked"),n=e&&!Gi(e);(p||c.has("value")||n)&&t.state.init.push(ki(Ja("$.remove_textarea_child",t.state.node)))}"select"===e.name&&c.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=Ja("$.invalidate_inner_signals",Pi(Ya(s.map((e=>ki(kp(ci(e),t.state)))))));t.state.init.push(ki(Ja("$.template_effect",Pi(Ya([ki(t.visit(n)),ki(r)])))))}(c.get("value"),t),t.state.init.push(...o);const m=t.state.node,f="option"===e.name||"select"===e.name||c.has("group")||c.has("checked");if(p)TS(s,r,a,t,e,m,d);else for(const i of s){if(Yi(i)){yS(i,t);continue}if(f&&"value"===i.name)continue;const o=$S(e,i);if(n||ne(i.name)||!0!==i.value&&!Gi(i)||"class"===o&&0!==r.length||"style"===o&&0!==a.length)if("autofocus"===o){let{value:e}=AS(i.value,t);t.state.init.push(ki(Ja("$.autofocus",m,e)))}else if("class"===o){const n="html"===t.state.metadata.namespace&&"svg"!==e.name;RS(e,m,i,r,t,n)}else if("style"===o)IS(m,i,a,t);else if(n)PS(m,i,t);else{const{value:n,has_state:r}=AS(i.value,t,((e,n)=>n.has_call||n.has_await?t.state.memoizer.add(e,n.has_await):e)),a=SS(e,m,o,n,s);(r?t.state.update:t.state.init).push(ki(a))}else{let n=!Gi(i)||i.value[0].data;"class"===o&&e.metadata.scoped&&t.state.analysis.css.hash&&(!0===n||""===n?n=t.state.analysis.css.hash:n+=" "+t.state.analysis.css.hash),("class"!==o||n)&&t.state.template.set_prop(i.name,J(o)&&!0===n?void 0:!0===n?"":n)}}oe(e.name)&&(p||u||l.has("onload")||l.has("onerror"))&&t.state.after_update.push(ki(Ja("$.replay_events",m)));const y={...t.state.metadata,namespace:eS(e,t.state.metadata.namespace)};if(c.has("innerHTML")||c.has("innerText")||c.has("textContent")){const e=l.get("contenteditable");e&&(!0===e.value||Gi(e)&&"true"===e.value[0].data)&&(y.bound_contenteditable=!0)}const v={...t.state,metadata:y,scope:t.state.scopes.get(e.fragment),preserve_whitespace:t.state.preserve_whitespace||"pre"===e.name||"textarea"===e.name},{hoisted:g,trimmed:b}=Jk(e,e.fragment.nodes,t.path,v.metadata.namespace,v,"script"===e.name||v.preserve_whitespace,v.options.preserveComments),_={...v,init:[],update:[],after_update:[]};for(const e of g)t.visit(e,_);if(b.every((e=>"Text"===e.type||"ExpressionTag"===e.type))&&b.every((e=>"Text"===e.type||!e.metadata.expression.has_state&&!e.metadata.expression.has_await))&&b.some((e=>"ExpressionTag"===e.type))){const{value:e}=fp(b,t,_);"Literal"===e.type&&""===e.value||_.init.push(ki(Ka("=",hi(t.state.node,"textContent"),e)))}else{let n=t.state.node,s=b.some((e=>"Text"!==e.type));"template"===e.name&&(s=!0,_.init.push(ki(Ja("$.hydrate_template",n))),n=hi(n,"content")),xS(b,(e=>Ja("$.child",n,e&&Ri)),!0,{...t,state:_}),s&&_.init.push(ki(Ja("$.reset",t.state.node)))}if(e.fragment.nodes.some((e=>"SnippetBlock"===e.type))?t.state.init.push(Ya([..._.init,...h.init,_.update.length>0?yp(_):ai,..._.after_update,...h.after_update])):e.fragment.metadata.dynamic?(t.state.init.push(..._.init,...h.init),t.state.update.push(..._.update),t.state.after_update.push(..._.after_update,...h.after_update)):(t.state.init.push(...h.init),t.state.after_update.push(...h.after_update)),l.has("dir")){const e=hi(m,"dir");t.state.update.push(ki(Ka("=",e,e)))}if(!p&&f)for(const n of s)if("value"===n.name){ES(e.name,m,n,t);break}t.state.template.pop_element()},RenderTag:function(e,t){t.state.template.push_comment();const n=io(e.expression);let s=[];const r=new mp;for(let a=0;a<n.arguments.length;a++){const i=n.arguments[a],o=e.metadata.arguments[a];let l=xp(t,i,o);(o.has_await||o.has_call)&&(l=Ja("$.get",r.add(l,o.has_await))),s.push(Pi(l))}r.apply();const a=r.deriveds(t.state.analysis.runes);let i=xp(t,n.callee,e.metadata.expression);e.metadata.dynamic?("ChainExpression"===e.expression.type&&(i=ni("??",i,ci("$.noop"))),a.push(wp(Ja("$.snippet",t.state.node,Pi(i),...s),e,"render"))):a.push(wp(("CallExpression"===e.expression.type?Ja:Za)(i,t.state.node,...s),e,"render")),r.async_values()?t.state.init.push(ki(Ja("$.async",t.state.node,r.async_values(),Ga([t.state.node,...r.async_ids()],Ya(a))))):t.state.init.push(1===a.length?a[0]:Ya(a))},SlotElement:function(e,t){t.state.template.push_comment();const n=[],s=[],r=[],a=new mp;let i=di("default");for(const o of e.attributes)if("SpreadAttribute"===o.type)s.push(Pi(t.visit(o)));else if("Attribute"===o.type){const{value:e,has_state:s}=AS(o.value,t,((e,t)=>t.has_call||t.has_await?Ja("$.get",a.add(e,t.has_await)):e));"name"===o.name?i=e:"slot"!==o.name&&(s?n.push(li(o.name,[Ui(e)])):n.push(ui(o.name,e)))}else"LetDirective"===o.type&&r.push(t.visit(o));a.apply(),t.state.init.push(...r);const o=a.deriveds(t.state.analysis.runes),l=0===s.length?fi(n):Ja("$.spread_props",fi(n),...s),c=0===e.fragment.nodes.length?Mi:Ga([ci("$$anchor")],t.visit(e.fragment));o.push(ki(Ja("$.slot",t.state.node,ci("$$props"),i,l,c)));const p=a.async_values();p?t.state.init.push(ki(Ja("$.async",t.state.node,p,Ga([t.state.node,...a.async_ids()],Ya(o))))):t.state.init.push(1===o.length?o[0]:Ya(o))},SnippetBlock:function(e,t){const n=[ci("$$anchor")],s=e.body.metadata.has_await||!1;let r;const a=[],i={...t.state.transform},o={...t.state,transform:i};for(let s=0;s<e.parameters.length;s++){const r=e.parameters[s];if(!r)continue;if("Identifier"===r.type){n.push(Wa(r,ci("$.noop"))),i[r.name]={read:Ja};continue}let l=`$$arg${s}`;n.push(ci(l));const{inserts:c,paths:p}=no(r,Za(ci(l)));for(const{id:e,value:n}of c)e.name=t.state.scope.generate("$$array"),i[e.name]={read:Ik},a.push(Di(e,Ja("$.derived",t.visit(Pi(n)))));for(const e of p){const n=e.node.name,s=e.has_default_value,r=Pi(t.visit(e.expression,o));a.push(Oi(e.node,s?Ja("$.derived_safe_equal",r):r)),i[n]={read:s?Ik:Ja},be&&a.push(ki(i[n].read(ci(n))))}}const l=t.visit(e.body,o).body;r=Ya([be?ki(Ja("$.validate_snippet_args",Ci(ci("arguments")))):ai,...a,...l]);let c=be?Ja("$.wrap_snippet",ci(t.state.analysis.name),Bi(null,n,r,s)):Ga(n,r,s);const p=Ni(e.expression,c);1===t.path.length&&"Fragment"===t.path[0].type?e.metadata.can_hoist?t.state.module_level_snippets.push(p):t.state.instance_level_snippets.push(p):t.state.init.push(p)},SpreadAttribute:function(e,t){return t.visit(e.expression)},SvelteBody:function(e,t){VS(e,"$.document.body",t)},SvelteComponent:function(e,t){const n=MS(e,"$$component",t);t.state.init.push(n)},SvelteDocument:function(e,t){VS(e,"$.document",t)},SvelteElement:function(e,t){t.state.template.push_comment();const n=[];let s;const r=[],a=[],i=[],o=ci(t.state.scope.generate("$$element")),l={...t,state:{...t.state,node:o,init:[],update:[],after_update:[],memoizer:new mp}};for(const o of e.attributes)if("Attribute"===o.type)"xmlns"!==o.name||Gi(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(ki(e))}else t.visit(o,l.state);1===n.length&&"Attribute"===n[0].type&&"class"===n[0].name.toLowerCase()&&Gi(n[0])?RS(e,o,n[0],r,l,!1):n.length&&TS(n,r,a,l,e,o);const{has_await:c}=e.metadata.expression,p=t.visit(e.tag),u=Pi(c?Ja("$.get",ci("$$tag")):p),d=l.state.init;l.state.update.length>0&&d.push(yp(l.state)),d.push(...l.state.after_update),d.push(...t.visit(e.fragment,{...t.state,metadata:{...t.state.metadata,namespace:eS(e,t.state.metadata.namespace)}}).body),be&&(e.fragment.nodes.length>0&&i.push(ki(Ja("$.validate_void_dynamic_element",u))),i.push(ki(Ja("$.validate_dynamic_element_tag",u))));const h=be&&we(e.start);i.push(ki(Ja("$.element",t.state.node,u,e.metadata.svg||e.metadata.mathml?Ri:Ii,d.length>0&&Ga([o,ci("$$anchor")],Ya(d)),s&&Pi(AS(s,t).value),h&&Ua([di(h.line),di(h.column)])))),c?t.state.init.push(ki(Ja("$.async",t.state.node,Ua([Pi(p,!0)]),Ga([t.state.node,ci("$$tag")],Ya(i))))):t.state.init.push(1===i.length?i[0]:Ya(i))},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=fi([]);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(li(s.name,[Ui(r)])):n.properties.push(ui(s.name,r))}const s=[],r=[],a=[];let i=!1;for(const n of e.fragment.nodes)"ConstTag"===n.type&&(i=!0,t.state.options.experimental.async||t.visit(n,{...t.state,consts:r}));for(const o of e.fragment.nodes)if("ConstTag"!==o.type)if("SnippetBlock"!==o.type)s.push(o);else if(t.state.options.experimental.async&&i&&!["failed","pending"].includes(o.expression.name))s.push(o);else{const e=[];t.visit(o,{...t.state,init:e});const s=e[0],i=be?s.declarations[0].init.arguments[1]:s.declarations[0].init;t.state.options.experimental.async||i.body.body.unshift(...r.filter((e=>"VariableDeclaration"===e.type))),["failed","pending"].includes(o.expression.name)&&n.properties.push(vi("init",o.expression,o.expression)),a.push(s)}else t.state.options.experimental.async&&s.push(o);const o=t.visit({...e.fragment,nodes:s});t.state.options.experimental.async||o.body.unshift(...r);const l=ki(Ja("$.boundary",t.state.node,n,Ga([ci("$$anchor")],o)));t.state.template.push_comment(),t.state.init.push(a.length>0?Ya([...a,l]):l)},SvelteHead:function(e,t){t.state.init.push(ki(Ja("$.head",Ga([ci("$$anchor")],t.visit(e.fragment)))))},SvelteSelf:function(e,t){const n=MS(e,t.state.analysis.name,t);t.state.init.push(n)},SvelteWindow:function(e,t){VS(e,"$.window",t)},TitleElement:function(e,t){const{has_state:n,value:s}=fp(e.fragment.nodes,t),r=ki(Ka("=",ci("$.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=[di(n),t.state.node,Pi(t.visit(vp(e.name)))];e.expression&&s.push(Pi(t.visit(e.expression))),t.state.after_update.push(ki(Ja("$.transition",...s)))},UpdateExpression:function(e,t){const n=e.argument;if("MemberExpression"===n.type&&"ThisExpression"===n.object.type&&"PrivateIdentifier"===n.property.type&&t.state.state_fields.has("#"+n.property.name)){let t="$.update";e.prefix&&(t+="_pre");const s=[n];return"--"===e.operator&&s.push(di(-1)),Ja(t,...s)}if("Identifier"!==n.type&&"MemberExpression"!==n.type)throw new Error("An impossible state was reached");const s=Wi(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)),_p(e,t,a)},UseDirective:function(e,t){const n=[ci("$$node")];e.expression&&n.push(ci("$$action_arg"));const s=[t.state.node,Ga(n,Za(t.visit(vp(e.name)),...n))];e.expression&&s.push(Pi(t.visit(e.expression))),t.state.init.push(ki(Ja("$.action",...s))),t.next()},AttachTag:function(e,t){const n=xp(t,e.expression,e.metadata.expression);t.state.init.push(ki(Ja("$.attach",t.state.node,Pi(n)))),t.next()},VariableDeclaration:function(e,t){const n=[];if(t.state.analysis.runes)for(const s of e.declarations){const e=s.init,r=mc(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&&Qk(e)){t.state.hoisted.push(Ni(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=[ci("$$props"),Ua(e.map((e=>di(e))))];be&&t.push(di(s.id.name)),n.push(ri(s.id,Ja("$.rest_props",...t)))}else{_w(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;_w(i.type,"Identifier");const o=t.state.scope.get(i.name);let l=o.initial&&t.visit(o.initial);l&&"bindable_prop"===o.kind&&Tp(l,t.state.scope)&&(l=Ja("$.proxy",l),be&&(l=Ja("$.tag_proxy",l,di(i.name)))),Ep(o,t.state)&&n.push(ri(i,Pp(o,t.state,a,l)))}else{const t=[ci("$$props"),Ua(e.map((e=>di(e))))];be&&t.push(di(r.argument.name)),n.push(ri(r.argument,Ja("$.rest_props",...t)))}}continue}const a=e.arguments[0]??ti;if("$state"!==r&&"$state.raw"!==r)if("$derived"!==r&&"$derived.by"!==r);else{const i=t.state.analysis.async_deriveds.has(e);if("Identifier"===s.id.type){let o=t.visit(a,{...t.state,in_derived:"$derived"===r});if(i){const t=be&&!Ee(e,"await_waterfall")&&ke(e);let r=Ja("$.async_derived",Pi(o,!0),t?di(t):void 0);r=Ja(Xa(Ja("$.save",r))),be&&(r=Ja("$.tag",r,di(s.id.name))),n.push(ri(s.id,r))}else{"$derived"===r&&(o=Pi(o));let e=Ja("$.derived",o);be&&(e=Ja("$.tag",e,di(s.id.name))),n.push(ri(s.id,e))}}else{const e=s.init;let o=t.visit(a,{...t.state,in_derived:"$derived"===r}),l=a;if("$derived"!==r||"Identifier"!==e.arguments[0].type){const a=ci(t.state.scope.generate("$$d"));let c=Ja("$.derived","$derived"===r?Pi(o):o);if(l=Ja("$.get",a),i){const t=be&&!Ee(e,"await_waterfall")&&ke(e);c=Ja("$.async_derived",Pi(o,!0),t?di(t):void 0),c=Ja(Xa(Ja("$.save",c)))}if(be){c=Ja("$.tag",c,di(`[$derived ${"ArrayPattern"===s.id.type?"iterable":"object"}]`))}n.push(ri(a,c))}const{inserts:c,paths:p}=no(s.id,l);for(const{id:e,value:r}of c){e.name=t.state.scope.generate("$$array"),t.state.transform[e.name]={read:Ik};let a=Ja("$.derived",t.visit(Pi(r)));if(be){a=Ja("$.tag",a,di(`[$derived ${"ArrayPattern"===s.id.type?"iterable":"object"}]`))}n.push(ri(e,a))}for(const e of p){const s=Ja("$.derived",Pi(t.visit(e.expression)));n.push(ri(e.node,be?Ja("$.tag",s,di(e.node.name)):s))}}}else{const e=(e,n)=>{const s=Cp(t.state.scope.get(e.name),t.state.analysis),a=Tp(n,t.state.scope);return"$state"===r&&a&&(n=Ja("$.proxy",n),be&&!s&&(n=Ja("$.tag_proxy",n,di(e.name)))),s&&(n=Ja("$.state",n),be&&(n=Ja("$.tag",n,di(e.name)))),n};if("Identifier"===s.id.type){const r=t.visit(a);n.push(ri(s.id,e(s.id,r)))}else{const r=ci(t.state.scope.generate("tmp")),{inserts:i,paths:o}=no(s.id,r);n.push(ri(r,t.visit(a)),...i.map((({id:e,value:n})=>{e.name=t.state.scope.generate("$$array"),t.state.transform[e.name]={read:Ik};let r=Ja("$.derived",t.visit(Pi(n)));if(be){r=Ja("$.tag",r,di(`[$state ${"ArrayPattern"===s.id.type?"iterable":"object"}]`))}return ri(e,r)})),...o.map((n=>{const s=t.visit(n.expression),r=t.state.scope.get(n.node.name);return ri(n.node,"state"===r?.kind||"raw_state"===r?.kind?e(r.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=ci(t.state.scope.generate("tmp")),{inserts:r,paths:a}=no(s.id,e);n.push(ri(e,t.visit(s.init)));for(const{id:e,value:s}of r){e.name=t.state.scope.generate("$$array"),t.state.transform[e.name]={read:Ik};const r=t.visit(Pi(s));n.push(ri(e,Ja("$.derived",r)))}for(const e of a){const s=e.node.name,r=t.state.scope.get(s),a=t.visit(e.expression);n.push(ri(e.node,"bindable_prop"===r.kind?Pp(r,t.state,r.prop_alias??s,a):a))}continue}const e=t.state.scope.get(s.id.name);n.push(ri(s.id,Pp(e,t.state,e.prop_alias??s.id.name,s.init&&t.visit(s.init))))}else n.push(...HS(s,t,s.init&&t.visit(s.init)));else{const e=s.init;if(null!=e&&Qk(e)){t.state.hoisted.push(Ni(s.id,t.visit(e)));continue}n.push(t.visit(s))}}return 0===n.length?ai:{...e,declarations:n}}};function zS(e,n,s){if(!1===s.generate)return{js:null,css:null,warnings:ye,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:[Vi("$","svelte/internal/server")],legacy_reactive_statements:new Map,init:null,template:null,namespace:n.namespace,preserve_whitespace:n.preserveWhitespace,state_fields:new Map,skip_hydration_boundaries:!1},r=t(e.module.ast,s,pS),a=t(e.instance.ast,{...s,scopes:e.instance.scopes},{...pS,ImportDeclaration:e=>(s.hoisted.push(e),ai),ExportNamedDeclaration:(e,t)=>e.declaration?t.visit(e.declaration):ai}),i=t(e.template.ast,{...s,scopes:e.template.scopes},{...pS,...uS}),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 Zi(t.body.expression.left)){const t=e.instance.scope.get(n.name);"legacy_reactive"===t?.kind&&o.push(ri(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,Oi("$$settled",Ri),Oi("$$inner_payload"),oi(ci("$$render_inner"),[ci("$$payload")],Ya(t)),$i(ei("!",ci("$$settled")),Ya([ki(Ka("=",ci("$$settled"),Ri)),ki(Ka("=",ci("$$inner_payload"),Ja("$.copy_payload",ci("$$payload")))),ki(Ja("$$render_inner",ci("$$inner_payload")))])),ki(Ja("$.assign_payload",ci("$$payload"),ci("$$inner_payload")))]}[...e.instance.scope.declarations.values()].some((e=>"store_sub"===e.kind))&&(a.body.unshift(Di("$$store_subs")),i.body.push(Fi(ci("$$store_subs"),ki(Ja("$.unsubscribe_stores",ci("$$store_subs"))))));const l=[];for(const[t,n]of e.instance.scope.declarations)"bindable_prop"!==n.kind||t.startsWith("$$")||l.push(ui(n.prop_alias??t,ci(t)));for(const{name:t,alias:n}of e.exports)l.push(ui(n??t,ci(t)));l.length>0&&i.body.push(ki(Ja("$.bind_props",ci("$$props"),fi(l))));const c=Ya([...a.body,...i.body]);c.loc=a.loc,e.props_id&&c.body.unshift(Ni(e.props_id,Ja("$.props_id",ci("$$payload"))));let p=be||e.needs_context;if(p&&(c.body.unshift(ki(Ja("$.push",be&&ci(e.name)))),c.body.push(ki(Ja("$.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(Ni("$$restProps",Ja("$.rest_props",ci("$$sanitized_props"),Ua(t.map((e=>di(e)))))))}(e.uses_props||e.uses_rest_props)&&c.body.unshift(Ni("$$sanitized_props",Ja("$.sanitize_props",ci("$$props")))),e.uses_slots&&c.body.unshift(Ni("$$slots",Ja("$.sanitize_slots",ci("$$props"))));const u=[...s.hoisted,...r.body];if(null!==e.css.ast&&"injected"===n.css&&!n.customElement){const t=di(e.css.hash),s=di(kk(e.source,e,n).code);u.push(Ni("$$css",fi([ui("hash",t),ui("code",s)]))),c.body.unshift(ki(Ja("$$payload.css.add",ci("$$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=oi(ci(e.name),d?[ci("$$payload"),ci("$$props")]:[ci("$$payload")],c);var m;return 4===n.compatibility.componentApi?(u.unshift(Hi([["render","$$_render"]],"svelte/server")),u.push(h,ki(Ka("=",mi(`${e.name}.render`),Bi(null,[ci("$$props"),ci("$$opts")],Ya([Ui(Ja("$$_render",ci(e.name),fi([ui("props",ci("$$props")),ui("context",hi(ci("$$opts"),"context",!1,!0))])))])))),ii(ci(e.name)))):be?u.push(h,ki(Ka("=",mi(`${e.name}.render`),Bi(null,[],Ya([(m="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",{type:"ThrowStatement",argument:Ti("Error",di(m))})])))),ii(ci(e.name))):u.push(ii(h)),be&&u.unshift(ki(Ka("=",hi(ci(e.name),"$.FILENAME",!0),di(fe)))),{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:[Vi("$","svelte/internal/client")],node:null,legacy_reactive_imports:[],legacy_reactive_statements:new Map,metadata:{namespace:n.namespace,bound_contenteditable:!1},events:new Set,preserve_whitespace:n.preserveWhitespace,state_fields:new Map,transform:{},in_constructor:!1,in_derived:!1,instance_level_snippets:[],module_level_snippets:[],init:null,consts:null,update:null,after_update:null,template:null,memoizer:null},r=t(e.module.ast,s,US),a={...s,transform:{...s.transform},scope:e.instance.scope,scopes:e.instance.scopes,is_instance:!0},i=t(e.instance.ast,a,US),o=t(e.template.ast,{...s,transform:a.transform,scope:e.instance.scope,scopes:e.template.scopes},US);r.body.unshift(...s.legacy_reactive_imports);const l=[];let c=ai;const p=[];let u=!1;for(const[t,n]of e.instance.scope.declarations)if("legacy_reactive"===n.kind&&p.push(Ni(t,Ja("$.mutable_source",void 0,e.immutable?Ri:void 0))),"store_sub"===n.kind){0===l.length&&(u=!0,c=Ni(za([ci("$$stores"),ci("$$cleanup")]),Ja("$.setup_stores")));const e=kp(ci(t.slice(1)),a),s=Ja("$.store_get",e,di(t),ci("$$stores"));l.push(Ni(n.node,Pi(be?xi([Ja("$.validate_store",e,di(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(ki(Ja("$.legacy_pre_effect_reset")));const d=[];for(const t of e.binding_groups.values())d.push(Ni(t.name,Ua([])));const h=e.exports.flatMap((({name:e,alias:t})=>{const n=a.scope.get(e),s=kp(ci(e),a),r=li(t??e,[Ui(s)]);if("Identifier"===s.type){if("let"===n?.declaration_kind||"var"===n?.declaration_kind)return[r,wi(t??e,[ki(Ka("=",s,ci("$$value")))])];if(!be)return ui(t??e,s)}if("prop"===n?.kind||"bindable_prop"===n?.kind)return[r,wi(t??e,[ki(Ja(e,ci("$$value")))])];if("state"===n?.kind||"raw_state"===n?.kind){const s="state"===n.kind?Ja("$.proxy",ci("$$value")):ci("$$value");return[r,wi(t??e,[ki(Ja("$.set",ci(e),s))])]}return r})),m=[...e.instance.scope.declarations].filter((([e,t])=>("prop"===t.kind||"bindable_prop"===t.kind)&&!e.startsWith("$$")));if(e.accessors)for(const[t,n]of m){const s=n.prop_alias??t,r=li(s,[Ui(Ja(ci(t)))]),a=wi(s,[ki(Ja(ci(t),ci("$$value"))),ki(Ja("$.flush"))]);e.runes&&n.initial&&(a.value.params[0]={type:"AssignmentPattern",left:ci("$$value"),right:n.initial}),h.push(r,a)}4===n.compatibility.componentApi?h.push(ui("$set",ci("$.update_legacy_props")),ui("$on",Ga([ci("$$event_name"),ci("$$event_cb")],Ja("$.add_legacy_event_listener",ci("$$props"),ci("$$event_name"),ci("$$event_cb"))))):be&&h.push(Ci(Ja(ci("$.legacy_api"))));const f=[ci("$$props"),di(e.runes)];be&&f.push(ci(e.name));let y=Ya([c,...p,...d]);const v=be||e.needs_context||e.reactive_statements.size>0||h.length>0;if(e.instance.has_await){v&&h.length>0&&y.body.push(Di("$$exports"));const e=Ya([...l,...s.instance_level_snippets,...i.body,...v&&h.length>0?[ki(Ka("=",ci("$$exports"),fi(h)))]:[],Fi(Ja("$.aborted"),Ui()),...o.body]);y.body.push(ki(Ja("$.async_body",Ga([],e,!0))))}else y.body.push(...s.instance_level_snippets,...i.body),v&&h.length>0&&y.body.push(Di("$$exports",fi(h))),y.body.unshift(...l),!e.runes&&e.needs_context&&y.body.push(ki(Ja("$.init",e.immutable?Ri:void 0))),y.body.push(...o.body);e.needs_mutation_validation&&y.body.unshift(Di("$$ownership_validator",Ja("$.create_ownership_validator",ci("$$props"))));let g=v||e.needs_props||e.uses_props||e.uses_rest_props||e.uses_slots||e.slot_names.size>0;if(y.loc=i.loc,!e.runes)for(const{name:t,alias:n}of e.exports)y.body.push(ki(Ja("$.bind_prop",ci("$$props"),di(n??t),kp(ci(t),a))));if(null!==e.css.ast&&e.inject_styles){const t=di(e.css.hash),r=di(kk(e.source,e,n).code);s.hoisted.push(Ni("$$css",fi([ui("hash",t),ui("code",r)]))),y.body.unshift(ki(Ja("$.append_styles",ci("$$anchor"),ci("$$css"))))}if(v){let e;if(y.body.unshift(ki(Ja("$.push",...f))),h.length>0){let t=Ja("$.pop",ci("$$exports"));e=u?Di("$$pop",t):Ui(t)}else e=ki(Ja("$.pop"));y.body.push(e)}if(u&&(y.body.push(ki(Ja("$$cleanup"))),h.length>0&&y.body.push(Ui(ci("$$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);y.body.unshift(Ni("$$restProps",Ja("$.legacy_rest_props",ci("$$sanitized_props"),Ua(t.map((e=>di(e)))))))}if(e.uses_props||e.uses_rest_props){const t=[di("children"),di("$$slots"),di("$$events"),di("$$legacy")];e.custom_element&&t.push(di("$$host")),y.body.unshift(Ni("$$sanitized_props",Ja("$.legacy_rest_props",ci("$$props"),Ua(t))))}e.uses_slots&&y.body.unshift(Ni("$$slots",Ja("$.sanitize_slots",ci("$$props"))));const b=[];let _=[];for(const e of[...r.body,...s.hoisted])"ImportDeclaration"===e.type?b.push(e):_.push(e);_=[...b,...s.module_level_snippets,..._];const x=oi(ci(e.name),g?[ci("$$anchor"),ci("$$props")]:[ci("$$anchor")],y);if(n.hmr){const t=ci(e.name),n=ci("$.HMR"),s=hi(t,n,!0),r=hi(ci("module.default"),n,!0),a=[ki(Ka("=",hi(r,"source"),hi(s,"source"))),ki(Ja("$.set",hi(s,"source"),hi(r,"original")))];e.css.hash&&a.unshift(ki(Ja("$.cleanup_styles",di(e.css.hash))));const i=Ya([ki(Ka("=",t,Ja("$.hmr",t,Pi(hi(s,"source"))))),ki(Ja("import.meta.hot.accept",Ga([ci("module")],Ya(a))))]);_.push(x,Fi(ci("import.meta.hot"),i),ii(ci(e.name)))}else _.push(ii(x));be&&_.unshift(ki(Ka("=",hi(ci(e.name),"$.FILENAME",!0),di(fe)))),n.experimental.async&&_.unshift(Hi([],"svelte/internal/flags/async")),e.runes||_.unshift(Hi([],"svelte/internal/flags/legacy")),e.tracing&&_.unshift(Hi([],"svelte/internal/flags/tracing")),n.discloseVersion&&_.unshift(Hi([],"svelte/internal/disclose-version")),4===n.compatibility.componentApi?(_.unshift(Hi([["createClassComponent","$$_createClassComponent"]],"svelte/legacy")),y.body.unshift(Fi(ci("new.target"),Ui(Ja("$$_createClassComponent",fi([ui("component",ci(e.name)),Ci(ci("$$anchor"))])))))):be&&y.body.unshift(ki(Ja("$.check_target",ci("new.target")))),e.props_id&&y.body.unshift(Ni(e.props_id,Ja("$.props_id"))),s.events.size>0&&_.push(ki(Ja("$.delegate",Ua(Array.from(s.events).map((e=>di(e)))))));const w=n.customElementOptions??n.customElement;if(w){const t="boolean"==typeof w?{}:w.props||{},s=[];for(const[n,r]of Object.entries(t)){const t=e.instance.scope.get(n),a=t?.prop_alias??n;r.type||"Literal"!==t?.initial?.type||"boolean"!=typeof t?.initial.value||(r.type="Boolean");const i=fi([r.attribute?ui("attribute",di(r.attribute)):void 0,r.reflect?ui("reflect",Ri):void 0,r.type?ui("type",di(r.type)):void 0].filter(Boolean));s.push(ui(a,i))}for(const[e,n]of m){const r=n.prop_alias??e;t[r]||s.push(ui(r,fi([])))}const r=Ua([...e.slot_names.keys()].map((e=>di(e)))),a=Ua(e.exports.map((({name:e,alias:t})=>di(t??e)))),i="boolean"==typeof w||"none"!==w.shadow,o=Ja("$.create_custom_element",ci(e.name),fi(s),r,a,di(i),"boolean"!=typeof w?w.extend:void 0);if("boolean"!=typeof w&&"string"==typeof w.tag){const e=ki(Ja("customElements.define",di(w.tag),o));n.hmr?_.push(Fi(Qa("==",Ja("customElements.get",di(w.tag)),Mi),e)):_.push(e)}else _.push(ki(o))}return{type:"Program",sourceType:"module",body:_}}(e,s),a=Ck(s.filename,s.outputFilename),i=Qw(r,eC({comments:e.comments}),{sourceMapContent:n,sourceMapSource:a});_k(i,s,a);return{js:i,css:e.css.ast&&!e.inject_styles?kk(n,e,s):null,warnings:ye,metadata:{runes:e.runes},ast:null}}function WS(e,n,s){if(!1===s.generate)return{js:null,css:null,warnings:ye,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,state_fields:new Map},r=t(e.module.ast,s,pS);return{type:"Program",sourceType:"module",body:[Vi("$","svelte/internal/server"),...r.body]}}(e,s):function(e,n){const s={analysis:e,options:n,scope:e.module.scope,scopes:e.module.scopes,state_fields:new Map,transform:{},in_constructor:!1,in_derived:!1,is_instance:!1},r=t(e.module.ast,s,US),a=[Vi("$","svelte/internal/client")];return e.tracing&&a.push(Hi([],"svelte/internal/flags/tracing")),{type:"Program",sourceType:"module",body:[...a,...r.body]}}(e,s),a=s.filename.split(/[/\\]/).at(-1);r.body.length>0&&(r.body[0].leadingComments=[{type:"Block",value:` ${a} generated by Svelte v${rC} `}]);const i=Qw(r,eC({comments:e.comments}),{sourceMapContent:n,sourceMapSource:Ck(s.filename,void 0)});return i.code=`/* ${a} generated by Svelte v${rC} */\n${i.code}`,i.map.mappings=";"+i.map.mappings,{js:i,css:null,metadata:{runes:!0},warnings:ye,ast:null}}const GS={filename:rP("(unknown)"),rootDir:rP("undefined"!=typeof process?process.cwd?.():"undefined"!=typeof Deno?Deno.cwd():void 0),dev:aP(!1),generate:sP("client",((e,t)=>"dom"===e||"ssr"===e?(ZS(ot),"dom"===e?"client":"server"):("client"!==e&&"server"!==e&&!1!==e&&lP(`${t} must be "client", "server" or false`),e))),warningFilter:oP((()=>!0)),experimental:nP({async:aP(!1)})},KS={accessors:tP(rt,aP(!1)),css:sP("external",(e=>(!0!==e&&!1!==e||lP('The boolean options have been removed from the css option. Use "external" instead of false and "injected" instead of true'),"none"===e&&lP('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&&lP('css should be either "external" (default, recommended) or "injected"'),e))),cssHash:oP((({css:e,filename:t,hash:n})=>`svelte-${n("(unknown)"===t?e:t??e)}`)),cssOutputFilename:rP(void 0),customElement:aP(!1),discloseVersion:aP(!0),immutable:tP(at,aP(!1)),legacy:YS("The legacy option has been removed. If you are using this because of legacy.componentApi, use compatibility.componentApi instead"),compatibility:nP({componentApi:iP([4,5],5)}),loopGuardTimeout:eP((function(e){qe(e,"options_removed_loop_guard_timeout","The `loopGuardTimeout` option has been removed\nhttps://svelte.dev/e/options_removed_loop_guard_timeout")})),name:rP(void 0),namespace:iP(["html","mathml","svg"]),modernAst:aP(!1),outputFilename:rP(void 0),preserveComments:aP(!1),fragments:iP(["html","tree"]),preserveWhitespace:aP(!1),runes:aP(void 0),hmr:aP(!1),sourcemap:sP(void 0,(e=>e)),enableSourcemap:eP((function(e){qe(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:eP((function(e){qe(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")},XS=nP({...GS,...Object.fromEntries(Object.keys(KS).map((e=>[e,()=>{}])))}),QS=nP({...GS,...KS});function YS(e){return t=>{void 0!==t&&Us(null,"options_removed",`Invalid compiler option: ${e}\nhttps://svelte.dev/e/options_removed`)}}const JS=new Set;function ZS(e){JS.has(e)||(JS.add(e),e(null))}function eP(e){return t=>{void 0!==t&&ZS(e)}}function tP(e,t){return(n,s)=>(void 0!==n&&ZS(e),t(n,s))}function nP(e,t=!1){return(n,s)=>{const r={};(n&&"object"!=typeof n||Array.isArray(n))&&lP(`${s} should be an object`);for(const a in n)a in e||(t?r[a]=n[a]:zs(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 sP(e,t){return(n,s)=>void 0===n?e:t(n,s)}function rP(e,t=!0){return sP(e,((e,n)=>("string"!=typeof e&&lP(`${n} should be a string, if specified`),t||""!==e||lP(`${n} cannot be empty`),e)))}function aP(e){return sP(e,((e,t)=>("boolean"!=typeof e&&lP(`${t} should be true or false, if specified`),e)))}function iP(e,t=e[0]){return sP(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]}"`;lP(t)}return t}))}function oP(e){return sP(e,((e,t)=>("function"!=typeof e&&lP(`${t} should be a function, if specified`),e)))}function lP(e){Us(null,"options_invalid_value",`Invalid compiler option: ${e}\nhttps://svelte.dev/e/options_invalid_value`)}function cP(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 pP(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 fk;let s=0;for(const{offset:r,length:a,replacement:i}of e){const e=fk.from_source(cP(t.source.slice(s,r),s,t));n.concat(e).concat(i),s=r+a}const r=fk.from_source(cP(t.source.slice(s),s,t));return n.concat(r)}(s,n)}class uP{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:wk(t)}update_source({string:e,map:t,dependencies:n}){null!=e&&(this.source=e,this.get_location=F(e)),t&&this.sourcemap_list.unshift(t),n&&this.dependencies.push(...n)}to_processed(){const e=gk(this.file_basename,this.sourcemap_list);return{code:this.source,dependencies:[...new Set(this.dependencies)],map:e,toString:()=>this.source}}}function dP(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=Ow(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&&dk(s,t,e)}return fk.from_processed(e.code,s)}function hP(e,t,n,s,r){const{file_basename:a,get_location:i}=r,o=(e,t)=>fk.from_source(cP(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};dk(r,i(0),0),p=fk.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(bk)||[])[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=vk(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=dP(e,i(l.length),a);return p.concat(d).concat(u)}const mP=/([\w-$]+\b)(?:=(?:"([^"]*)"|'([^']*)'|(\S+)))?/g;function fP(e){const t={};let n;for(;null!==(n=mP.exec(e));){const e=n[1],s=n[2]||n[3]||n[4];t[e]=!s||s}return t}const yP=/<!--[^]*?-->|<style((?:\s+[^=>'"/\s]+=(?:"[^"]*"|'[^']*'|[^>\s]+)|\s+[^=>'"/\s]+)*\s*)(?:\/>|>([\S\s]*?)<\/style>)/g,vP=/<!--[^]*?-->|<script((?:\s+[^=>'"/\s]+=(?:"[^"]*"|'[^']*'|[^>\s]+)|\s+[^=>'"/\s]+)*\s*)(?:\/>|>([\S\s]*?)<\/script>)/g;async function gP(e,t,n){const{filename:s,source:r}=n,a="style"===e?yP:vP,i=[];const{string:o,map:l}=await pP(a,(async function(a,o="",l="",c){const p=()=>fk.from_source(cP(a,c,n));if(!o&&!l)return p();const u=await t({content:l||"",attributes:fP(o||""),markup:r,filename:s});return u?(u.dependencies&&i.push(...u.dependencies),u.map||u.code!==l?hP(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,cP(l,c,n)):p()):p()}),n);return{string:o,map:l,dependencies:i}}async function bP(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 _P=/(<style[^>]+>)([\S\s]*?)(<\/style>)/g,xP="/*$$__STYLE_CONTENT__$$*/";let wP=!1;class CP extends Error{constructor(e){super(e)}}function kP(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 SP={_(e,{state:t,next:n}){const s=e.leadingComments;if(s)for(const e of s)if("Line"===e.type){const n=xt(e.value);n!==e.value&&t.str.overwrite(e.start+2,e.end,n)}n()},Identifier(e,{state:t,path:n}){MP(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 CP(`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"===mc(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 CP("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 CP("$$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,...AP(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 w=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)})))),C="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]=eo(E.right);0===T.length&&(S=!0,t.derived_labeled_statements.add(x))}if(!S&&w&&_&&x&&(C||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 R of x.body.body[0].trailingComments)t.str.appendRight(o.id.typeAnnotation?.end??o.id.end,"Block"===R.type?`\n${A}/*${R.value}*/`:`\n${A}// ${R.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 CP(`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 I=e.start,M=e.end;const q=n.at(-1);for("ExportNamedDeclaration"===q?.type&&(I=q.start,M=q.end);"\n"!==t.str.original[I];)I--;for(;"\n"!==t.str.original[M];)M++;t.str.update(I,M,"")}},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 CP(`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{left:t,right:s}=e.body.expression,a=Zi(t),[,i]=eo(s),o=a.map((e=>n.scope.get(e.name)));if(o.every((e=>"legacy_reactive"===e.kind))){if("Literal"!==s.type&&o.every((e=>"store_sub"!==e.kind))&&"MemberExpression"!==t.type){let{start:t,end:a}=s;if(r("derived"),n.str.update(e.start,e.body.expression.start,"let "),"SequenceExpression"===s.type){for(;"("!==n.str.original[t];)t-=1;for(;")"!==n.str.original[a-1];)a+=1}return n.str.prependRight(t,"$derived("),void("("!==n.str.original[e.body.start]&&n.str.appendLeft(a,")"))}for(const t of o)if(t.reassigned&&(a.includes(t.node)||0===i.length)){r("state");const a="state"===t.kind?" = $state()":0===i.length?` = $state(${n.str.original.substring(s.start,s.end)})`:"";n.str.prependLeft(e.start,`let ${t.node.name}${a};\n${n.indent}`)}if(0===i.length&&o.every((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 PP(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 EP={Identifier(e,{state:t,path:n}){MP(e,t,n)},RegularElement(e,{state:t,path:n,next:s}){TP(e,n,t),RP(e,t);const r=e.name.replace(/[a-zA-Z-]*:/g,"");if("/"===t.analysis.source[e.end-2]&&!z(r)&&!ce(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=qP(s);return wP=!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(TP(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,"}"))}RP(e,t),s()},Component(e,{state:t,path:n,next:s}){s(),TP(e,n,t)},SvelteComponent(e,{state:t,next:n,path:s}){n(),TP(e,s,t);let r=t.str.snip(e.expression.start,e.expression.end).toString();if("Identifier"!==e.expression.type&&"MemberExpression"!==e.expression.type||!hl.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}){TP(e,n,t),s()},SvelteWindow(e,{state:t,next:n}){RP(e,t),n()},SvelteBody(e,{state:t,next:n}){RP(e,t),n()},SvelteDocument(e,{state:t,next:n}){RP(e,t),n()},SlotElement(e,{state:t,path:n,next:s,visit:r}){if(TP(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&&Gi(e)&&e.value[0].data===o))))||e.attributes.some((e=>"Attribute"===e.type&&"slot"===e.name&&Gi(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 CP(`This migration would change the name of a slot (${o} to ${i}) 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=xt(e.data);n!==e.data&&t.str.overwrite(e.start+4,e.end-3,n)},HtmlTag(e,{state:t,next:n}){PP(t,e.start,e.end),n()},ConstTag(e,{state:t,next:n}){PP(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;PP(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(PP(t,s,r),null!==e.pending){const n=t.str.original.lastIndexOf("{",e.value?.start),s=t.str.original.indexOf("}",e.value?.end)+1;PP(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;PP(t,n,s)}n()},KeyBlock(e,{state:t,next:n}){const s=e.start,r=t.str.original.indexOf("}",e.expression.end)+1;PP(t,s,r),n()}};function TP(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&&Gi(t)){if(r=t.value[0].data,"default"===r&&(r="children"),!m.test(r)||G(r))return wP=!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 AP(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 $P=["preventDefault","stopPropagation","stopImmediatePropagation","self","trusted","once"];function RP(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=$P.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 IP(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 MP(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){let e=t.scope.generate(n);if(e!==n)throw new CP(`This migration would change the name of a slot (${n} to ${e}) 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 qP(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 LP(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:_t(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})=>(wt(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;wt(t.fallback.nodes),s={type:"ElseBlock",start:i,end:a,children:t.fallback.nodes.map((e=>n(e)))}}return wt(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;wt(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 wt(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})=>(wt(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))),typeParams:e.typeParams}),SvelteBoundary:(e,{visit:t})=>(wt(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 OP(e){return 65279===e.charCodeAt(0)?e.slice(1):e}e.VERSION=rC,e.compile=function(e,t){e=OP(e),Te({warning:t.warningFilter,filename:t.filename});const n=QS(t,"");let s=Dl(e);const{customElement:r,...a}=s.options||{},i={...n,...a,customElementOptions:r};s.metadata.ts&&(s={...s,fragment:s.fragment&&Fl(s.fragment),instance:s.instance&&Fl(s.instance),module:s.module&&Fl(s.module)},i.customElementOptions?.extend&&(i.customElementOptions.extend=Fl(i.customElementOptions?.extend)));const o=zS(kw(s,e,i),e,i);return o.ast=LP(e,s,t.modernAst),o},e.compileModule=function(e,n){e=OP(e),Te({warning:n.warningFilter,filename:n.filename});const s=XS(n,""),r=function(e,n){const s=[];Ce(e);const r=Bs(e,s,!1,!1),{scope:a,scopes:i,has_await:o}=dc(r,new uc,!1,null);for(const[e,t]of a.references)"$"!==e[0]||Cw.includes(e)||("$"!==e&&"$"!==e[1]||Ys(t[0].node,e),null===a.get(e.slice(1))||me(e)||Us(t[0].node,"store_invalid_subscription_module","Cannot reference store value outside a `.svelte` file\nhttps://svelte.dev/e/store_invalid_subscription_module"));const l={module:{ast:r,scope:a,scopes:i,has_await:o},name:n.filename,accessors:!1,runes:!0,immutable:!0,tracing:!1,async_deriveds:new Set,comments:s,classes:new Map};return Ae({dev:n.dev,rootDir:n.rootDir,runes:!0}),t(r,{scope:a,scopes:i,analysis:l,state_fields:new Map,ast_type:null,component_slots:new Set,expression:null,function_depth:0,has_props_rune:!1,options:n,fragment:null,parent_element:null,reactive_statement:null},xw),l}(e,s);return WS(r,e,s)},e.migrate=function(e,{filename:n,use_ts:s}={}){let r=e;try{wP=!1;const a=[];e=e.replace(_P,((e,t,n,s,r)=>(a.push([r+t.length,n]),t+xP+s))),Te({warning:()=>!1,filename:n});let i=Dl(e);const{customElement:o,...l}=i.options||{},c={...QS({},""),...l,customElementOptions:o,filename:n??ve,experimental:{async:!0}},p=new vC(e),u=kw(i,e,c),d=qP(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,SP),h={...h,scope:u.template.scope},t(i.fragment,h,EP);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 w=n.split("/").pop();p.appendRight(m,`\n${d}import ${h.analysis.name} from './${w}';`)}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 CP(`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 C=h.props.length>3,k=`\n${d}${d}`,S=C?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}${C?`\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:R}]of h.analysis.reactive_statements){let I=[];if("ExpressionStatement"===$.body.type&&"AssignmentExpression"===$.body.expression.type&&(I=Zi($.body.expression.left).map((e=>h.scope.get(e.name))).filter((e=>!!e))),R.some((e=>!I.includes(e)&&("prop"===e.kind||"bindable_prop"===e.kind?h.props_insertion_point:e.node.start)>$.start))){b=!0;break}}if(b){const M=Array.from(h.analysis.reactive_statements.keys());for(const q of M){const{start:L,end:O}=IP(e,q);p.appendLeft(O,"\n"),p.move(L,O,i.instance?.content.end),p.update(L-("\r"===e[L-2]?2:1),L,"")}}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 vC(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=kP(t.indexOf("(",r)+1,t)-s;if(a>e){s+=a,n=n.substring(a);continue}}}else a=!0,e+=i.length;const l=kP(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 CP||console.error("Error while migrating Svelte code",N),wP=!0,{code:`\x3c!-- @migration-task Error while migrating Svelte code: ${N.message} --\x3e\n${r}`}}finally{wP&&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,{modern:t,loose:n}={}){return e=OP(e),Te({warning:()=>!1,filename:void 0}),LP(e,Dl(e,n),t)},e.preprocess=async function(e,t,n){const s=n&&n.filename||t.filename,r=t?Array.isArray(t)?t:[t]:[],a=new uP(e,s);for(const e of r)e.markup&&a.update_source(await bP(e.markup,a)),e.script&&a.update_source(await gP("script",e.script,a)),e.style&&a.update_source(await gP("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")}}));
|
|
1
|
+
!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=/[\u202a\u202b\u202c\u202d\u202e\u2066\u2067\u2068\u2069]+/g,_=/^\W*javascript:/i,x=/\b(image|picture|photo)\b/i,w=1,C=2,k=4,S=8,P=16,E=4,T=8,A=1,$=2,R=4,I="http://www.w3.org/2000/svg",M="http://www.w3.org/1998/Math/MathML";function q(e,t){if(0===t.length)return null;const n=new j(t).get(e);return n&&n[0][0]>.7?n[0][1]:null}function L(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 O=/[^\w, ]+/;function N(e,t=2){const n={},s=function(e,t=2){const n="-"+e.toLowerCase().replace(O,"")+"-",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 D(e,t){return t[0]-e[0]}class j{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=N(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=N(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(D);let f=[];const y=Math.min(50,m.length);for(let e=0;e<y;++e)f.push([L(m[e][1],n),m[e][1]]);m=f,m.sort(D),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 B(e,t){return e.start<=t&&t<e.end}function F(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(B(o,t))return{line:n+o.line,column:s+t-o.start,character:t};i+=l,o=a[i]}}}const V=/\r/g;function H(e){let t=5381,n=(e=e.replace(V,"")).length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return(t>>>0).toString(36)}const U=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function z(e){return U.includes(e)||"!doctype"===e.toLowerCase()}const W=["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 G(e){return W.includes(e)}function K(e){return e.endsWith("capture")&&"gotpointercapture"!==e&&"lostpointercapture"!==e}const X=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Q(e){return X.includes(e)}const Y=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];function J(e){return Y.includes(e)}const Z={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 ee=[...Y,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];const te=["autofocus","muted","defaultValue","defaultChecked"];function ne(e){return te.includes(e)}const se=["touchstart","touchmove"];const re=["textContent","innerHTML","innerText"];function ae(e){return re.includes(e)}const ie=["body","embed","iframe","img","link","object","script","style","track"];function oe(e){return ie.includes(e)}const le=["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 ce(e){return le.includes(e)}const pe=["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"];function ue(e){return pe.includes(e)}const de=["$state","$state.raw","$derived","$derived.by"],he=[...de,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];function me(e){return he.includes(e)}let fe,ye=[];const ve="(unknown)";let ge,be,_e,xe="<unknown>",we=F("",{offsetLine:1});function Ce(e){ge=e,we=F(ge,{offsetLine:1})}function ke(e){const t=we(e.start);return`${n=fe,n?.replace(/\//g,"/")}:${t?.line}:${t.column}`;var n}let Se=[],Pe=new Map;function Ee(e,t){return be&&!!Pe.get(e)?.some((e=>e.has(t)))}function Te(e){be=!1,xe=ve,ge="",we=()=>{},fe=(e.filename??ve).replace(/\\/g,"/"),_e=e.warning??(()=>!0),ye=[]}function Ae(e){const t=e.rootDir?.replace(/\\/g,"/");be=e.dev,e.runes,xe=e.component_name??ve,"string"==typeof t&&fe.startsWith(t)&&(fe=fe.replace(t,"").replace(/^[/\\]/,"")),Se=[],Pe.clear()}const $e=/^\t+/;function Re(e){return e.replace($e,(e=>e.split("\t").join(" ")))}class Ie{name="CompileDiagnostic";constructor(e,t,n){this.code=e,this.message=t,fe!==ve&&(this.filename=fe),n&&(this.position=n,this.start=we(n[0]),this.end=we(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+Re(e.slice(0,n)).length)+"^";return`${o}: ${Re(e)}\n${t}`}return`${o}: ${Re(e)}`})).join("\n")}(ge,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 Me extends Ie{name="CompileWarning";constructor(e,t,n){super(e,t,n)}}function qe(e,t,n){let s=Se;if(e&&(s=Pe.get(e)??Se),s&&s.at(-1)?.has(t))return;const r=new Me(t,n,e&&void 0!==e.start?[e.start,e.end??e.start]:void 0);_e(r)&&ye.push(r)}function Le(e){qe(e,"a11y_accesskey","Avoid using accesskey\nhttps://svelte.dev/e/a11y_accesskey")}function Oe(e){qe(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 Ne(e,t){qe(e,"a11y_aria_attributes",`\`<${t}>\` should not have aria-* attributes\nhttps://svelte.dev/e/a11y_aria_attributes`)}function De(e){qe(e,"a11y_autofocus","Avoid using autofocus\nhttps://svelte.dev/e/a11y_autofocus")}function je(e,t){qe(e,"a11y_hidden",`\`<${t}>\` element should not be hidden\nhttps://svelte.dev/e/a11y_hidden`)}function Be(e,t,n){qe(e,"a11y_incorrect_aria_attribute_type",`The value of '${t}' must be a ${n}\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type`)}function Fe(e,t){qe(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 Ve(e,t){qe(e,"a11y_misplaced_role",`\`<${t}>\` should not have role attribute\nhttps://svelte.dev/e/a11y_misplaced_role`)}function He(e){qe(e,"a11y_misplaced_scope","The scope attribute should only be used with `<th>` elements\nhttps://svelte.dev/e/a11y_misplaced_scope")}function Ue(e,t,n){qe(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 ze(e,t){qe(e,"a11y_no_abstract_role",`Abstract role '${t}' is forbidden\nhttps://svelte.dev/e/a11y_no_abstract_role`)}function We(e,t,n){qe(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 Ge(e,t,n){qe(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 Ke(e,t){qe(e,"a11y_no_redundant_roles",`Redundant role '${t}'\nhttps://svelte.dev/e/a11y_no_redundant_roles`)}function Xe(e){qe(e,"a11y_positive_tabindex","Avoid tabindex values above zero\nhttps://svelte.dev/e/a11y_positive_tabindex")}function Qe(e,t,n){qe(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 Ye(e,t,n){qe(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 Je(e,t,n,s){qe(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 Ze(e,t,n){qe(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 et(e,t,n){qe(e,"a11y_unknown_role",(n?`Unknown role '${t}'. Did you mean '${n}'?`:`Unknown role '${t}'`)+"\nhttps://svelte.dev/e/a11y_unknown_role")}function tt(e){qe(e,"bidirectional_control_characters","A bidirectional control character was detected in your code. These characters can be used to alter the visual direction of your code and could have unintended consequences\nhttps://svelte.dev/e/bidirectional_control_characters")}function nt(e,t,n){qe(e,"legacy_code",`\`${t}\` is no longer valid — please use \`${n}\` instead\nhttps://svelte.dev/e/legacy_code`)}function st(e,t,n){qe(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 rt(e){qe(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 at(e){qe(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 it(e){qe(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 ot(e){qe(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 lt(e,t){qe(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 ct(e,t){qe(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 pt(e,t){qe(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 ut(e){qe(e,"attribute_avoid_is",'The "is" attribute is not supported cross-browser and should be avoided\nhttps://svelte.dev/e/attribute_avoid_is')}function dt(e,t){qe(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 ht(e,t,n){qe(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 mt(e,t,n){qe(e,"element_implicitly_closed",`This element is implicitly closed by the following \`${t}\`, which can cause an unexpected DOM structure. Add an explicit \`${n}\` to avoid surprises.\nhttps://svelte.dev/e/element_implicitly_closed`)}function ft(e,t){qe(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 yt(e){qe(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 vt=/^\s*svelte-ignore\s/,gt={"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"},bt=["a11y_accesskey","a11y_aria_activedescendant_has_tabindex","a11y_aria_attributes","a11y_autocomplete_valid","a11y_autofocus","a11y_click_events_have_key_events","a11y_consider_explicit_label","a11y_distracting_elements","a11y_figcaption_index","a11y_figcaption_parent","a11y_hidden","a11y_img_redundant_alt","a11y_incorrect_aria_attribute_type","a11y_incorrect_aria_attribute_type_boolean","a11y_incorrect_aria_attribute_type_id","a11y_incorrect_aria_attribute_type_idlist","a11y_incorrect_aria_attribute_type_integer","a11y_incorrect_aria_attribute_type_token","a11y_incorrect_aria_attribute_type_tokenlist","a11y_incorrect_aria_attribute_type_tristate","a11y_interactive_supports_focus","a11y_invalid_attribute","a11y_label_has_associated_control","a11y_media_has_caption","a11y_misplaced_role","a11y_misplaced_scope","a11y_missing_attribute","a11y_missing_content","a11y_mouse_events_have_key_events","a11y_no_abstract_role","a11y_no_interactive_element_to_noninteractive_role","a11y_no_noninteractive_element_interactions","a11y_no_noninteractive_element_to_interactive_role","a11y_no_noninteractive_tabindex","a11y_no_redundant_roles","a11y_no_static_element_interactions","a11y_positive_tabindex","a11y_role_has_required_aria_props","a11y_role_supports_aria_props","a11y_role_supports_aria_props_implicit","a11y_unknown_aria_attribute","a11y_unknown_role","bidirectional_control_characters","legacy_code","unknown_code","options_deprecated_accessors","options_deprecated_immutable","options_missing_custom_element","options_removed_enable_sourcemap","options_removed_hydratable","options_removed_loop_guard_timeout","options_renamed_ssr_dom","custom_element_props_identifier","export_let_unused","legacy_component_creation","non_reactive_update","perf_avoid_inline_class","perf_avoid_nested_class","reactive_declaration_invalid_placement","reactive_declaration_module_script_dependency","state_referenced_locally","store_rune_conflict","css_unused_selector","attribute_avoid_is","attribute_global_event_reference","attribute_illegal_colon","attribute_invalid_property_name","attribute_quoted","bind_invalid_each_rest","block_empty","component_name_lowercase","element_implicitly_closed","element_invalid_self_closing_tag","event_directive_deprecated","node_invalid_placement_ssr","script_context_deprecated","script_unknown_attribute","slot_element_deprecated","svelte_component_deprecated","svelte_element_invalid_this","svelte_self_deprecated"].concat(["await_waterfall","await_reactivity_loss","state_snapshot_uncloneable","binding_property_non_reactive","hydration_attribute_changed","hydration_html_changed","ownership_invalid_binding","ownership_invalid_mutation"]);function _t(e,t,n){const s=vt.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(bt.includes(t))a.push(t);else{const s=gt[t]??t.replace(/-/g,"_"),r=e+n.index,a=r+t.length;if(bt.includes(s))nt({start:r,end:a},t,s);else{st({start:r,end:a},t,q(t,bt))}}if(!n[2])break}else for(const e of t.slice(r).matchAll(/[\w$-]+/gm)){const t=e[0];if(a.push(t),!bt.includes(t)){const e=gt[t]??t.replace(/-/g,"_");bt.includes(e)&&a.push(e)}}return a}function xt(e){const t=vt.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=gt[t]??t.replace(/-/g,"_");return/\w+-\w+/.test(e.substring(n+r+t.length))&&(a+=","),a}))}function wt(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 Ct=[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],kt=[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],St="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Pt={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"},Et="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",Tt={5:Et,"5module":Et+" export import",6:Et+" const class extends export import super"},At=/^in(stanceof)?$/,$t=new RegExp("["+St+"]"),Rt=new RegExp("["+St+"·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function It(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 Mt(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&$t.test(String.fromCharCode(e)):!1!==t&&It(e,kt)))}function qt(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&Rt.test(String.fromCharCode(e)):!1!==t&&(It(e,kt)||It(e,Ct)))))}var Lt=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 Ot(e,t){return new Lt(e,{beforeExpr:!0,binop:t})}var Nt={beforeExpr:!0},Dt={startsExpr:!0},jt={};function Bt(e,t){return void 0===t&&(t={}),t.keyword=e,jt[e]=new Lt(e,t)}var Ft={num:new Lt("num",Dt),regexp:new Lt("regexp",Dt),string:new Lt("string",Dt),name:new Lt("name",Dt),privateId:new Lt("privateId",Dt),eof:new Lt("eof"),bracketL:new Lt("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Lt("]"),braceL:new Lt("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Lt("}"),parenL:new Lt("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Lt(")"),comma:new Lt(",",Nt),semi:new Lt(";",Nt),colon:new Lt(":",Nt),dot:new Lt("."),question:new Lt("?",Nt),questionDot:new Lt("?."),arrow:new Lt("=>",Nt),template:new Lt("template"),invalidTemplate:new Lt("invalidTemplate"),ellipsis:new Lt("...",Nt),backQuote:new Lt("`",Dt),dollarBraceL:new Lt("${",{beforeExpr:!0,startsExpr:!0}),eq:new Lt("=",{beforeExpr:!0,isAssign:!0}),assign:new Lt("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Lt("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Lt("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Ot("||",1),logicalAND:Ot("&&",2),bitwiseOR:Ot("|",3),bitwiseXOR:Ot("^",4),bitwiseAND:Ot("&",5),equality:Ot("==/!=/===/!==",6),relational:Ot("</>/<=/>=",7),bitShift:Ot("<</>>/>>>",8),plusMin:new Lt("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Ot("%",10),star:Ot("*",10),slash:Ot("/",10),starstar:new Lt("**",{beforeExpr:!0}),coalesce:Ot("??",1),_break:Bt("break"),_case:Bt("case",Nt),_catch:Bt("catch"),_continue:Bt("continue"),_debugger:Bt("debugger"),_default:Bt("default",Nt),_do:Bt("do",{isLoop:!0,beforeExpr:!0}),_else:Bt("else",Nt),_finally:Bt("finally"),_for:Bt("for",{isLoop:!0}),_function:Bt("function",Dt),_if:Bt("if"),_return:Bt("return",Nt),_switch:Bt("switch"),_throw:Bt("throw",Nt),_try:Bt("try"),_var:Bt("var"),_const:Bt("const"),_while:Bt("while",{isLoop:!0}),_with:Bt("with"),_new:Bt("new",{beforeExpr:!0,startsExpr:!0}),_this:Bt("this",Dt),_super:Bt("super",Dt),_class:Bt("class",Dt),_extends:Bt("extends",Nt),_export:Bt("export"),_import:Bt("import",Dt),_null:Bt("null",Dt),_true:Bt("true",Dt),_false:Bt("false",Dt),_in:Bt("in",{beforeExpr:!0,binop:7}),_instanceof:Bt("instanceof",{beforeExpr:!0,binop:7}),_typeof:Bt("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Bt("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Bt("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Vt=/\r\n?|\n|\u2028|\u2029/,Ht=new RegExp(Vt.source,"g");function Ut(e){return 10===e||13===e||8232===e||8233===e}function zt(e,t,n){void 0===n&&(n=e.length);for(var s=t;s<n;s++){var r=e.charCodeAt(s);if(Ut(r))return s<n-1&&13===r&&10===e.charCodeAt(s+1)?s+2:s+1}return-1}var Wt=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Gt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Kt=Object.prototype,Xt=Kt.hasOwnProperty,Qt=Kt.toString,Yt=Object.hasOwn||function(e,t){return Xt.call(e,t)},Jt=Array.isArray||function(e){return"[object Array]"===Qt.call(e)},Zt=Object.create(null);function en(e){return Zt[e]||(Zt[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function tn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var nn=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,sn=function(e,t){this.line=e,this.column=t};sn.prototype.offset=function(e){return new sn(this.line,this.column+e)};var rn=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function an(e,t){for(var n=1,s=0;;){var r=zt(e,s,t);if(r<0)return new sn(n,t-s);++n,s=r}}var on={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},ln=!1;function cn(e){var t={};for(var n in on)t[n]=e&&Yt(e,n)?e[n]:on[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!ln&&"object"==typeof console&&console.warn&&(ln=!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 rn(this,i,o)),e.ranges&&(l.range=[r,a]),t.push(l)}}(t,t.onComment)),t}var pn=256;function un(e,t){return 2|(e?4:0)|(t?8:0)}var dn=function(e,t,n){this.options=e=cn(e),this.sourceFile=e.sourceFile,this.keywords=en(Tt[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var s="";!0!==e.allowReserved&&(s=Pt[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(s+=" await")),this.reservedWords=en(s);var r=(s?s+" ":"")+Pt.strict;this.reservedWordsStrict=en(r),this.reservedWordsStrictBind=en(r+" "+Pt.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(Vt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=Ft.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=[]},hn={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}};dn.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},hn.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},hn.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},hn.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},hn.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&pn)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},hn.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(64&t)>0||n||this.options.allowSuperOutsideMethod},hn.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},hn.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},hn.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(258&t)>0||n},hn.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&pn)>0},dn.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},dn.parse=function(e,t){return new this(t,e).parse()},dn.parseExpressionAt=function(e,t,n){var s=new this(n,e,t);return s.nextToken(),s.parseExpression()},dn.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(dn.prototype,hn);var mn=dn.prototype,fn=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;mn.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Gt.lastIndex=e,e+=Gt.exec(this.input)[0].length;var t=fn.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){Gt.lastIndex=e+t[0].length;var n=Gt.exec(this.input),s=n.index+n[0].length,r=this.input.charAt(s);return";"===r||"}"===r||Vt.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(s+1))}e+=t[0].length,Gt.lastIndex=e,e+=Gt.exec(this.input)[0].length,";"===this.input[e]&&e++}},mn.eat=function(e){return this.type===e&&(this.next(),!0)},mn.isContextual=function(e){return this.type===Ft.name&&this.value===e&&!this.containsEsc},mn.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},mn.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},mn.canInsertSemicolon=function(){return this.type===Ft.eof||this.type===Ft.braceR||Vt.test(this.input.slice(this.lastTokEnd,this.start))},mn.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},mn.semicolon=function(){this.eat(Ft.semi)||this.insertSemicolon()||this.unexpected()},mn.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},mn.expect=function(e){this.eat(e)||this.unexpected()},mn.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var yn=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};mn.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")}},mn.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")},mn.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")},mn.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var vn=dn.prototype;vn.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==Ft.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 gn={kind:"loop"},bn={kind:"switch"};vn.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Gt.lastIndex=this.pos;var t=Gt.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(Mt(s,!0)){for(var r=n+1;qt(s=this.input.charCodeAt(r),!0);)++r;if(92===s||s>55295&&s<56320)return!0;var a=this.input.slice(n,r);if(!At.test(a))return!0}return!1},vn.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Gt.lastIndex=this.pos;var e,t=Gt.exec(this.input),n=this.pos+t[0].length;return!(Vt.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(qt(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},vn.parseStatement=function(e,t,n){var s,r=this.type,a=this.startNode();switch(this.isLet(e)&&(r=Ft._var,s="let"),r){case Ft._break:case Ft._continue:return this.parseBreakContinueStatement(a,r.keyword);case Ft._debugger:return this.parseDebuggerStatement(a);case Ft._do:return this.parseDoStatement(a);case Ft._for:return this.parseForStatement(a);case Ft._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!e);case Ft._class:return e&&this.unexpected(),this.parseClass(a,!0);case Ft._if:return this.parseIfStatement(a);case Ft._return:return this.parseReturnStatement(a);case Ft._switch:return this.parseSwitchStatement(a);case Ft._throw:return this.parseThrowStatement(a);case Ft._try:return this.parseTryStatement(a);case Ft._const:case Ft._var:return s=s||this.value,e&&"var"!==s&&this.unexpected(),this.parseVarStatement(a,s);case Ft._while:return this.parseWhileStatement(a);case Ft._with:return this.parseWithStatement(a);case Ft.braceL:return this.parseBlock(!0,a);case Ft.semi:return this.parseEmptyStatement(a);case Ft._export:case Ft._import:if(this.options.ecmaVersion>10&&r===Ft._import){Gt.lastIndex=this.pos;var i=Gt.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===Ft._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===Ft.name&&"Identifier"===p.type&&this.eat(Ft.colon)?this.parseLabeledStatement(a,c,p,e):this.parseExpressionStatement(a,p)}},vn.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(Ft.semi)||this.insertSemicolon()?e.label=null:this.type!==Ft.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")},vn.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},vn.parseDoStatement=function(e){return this.next(),this.labels.push(gn),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(Ft._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(Ft.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},vn.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(gn),this.enterScope(0),this.expect(Ft.parenL),this.type===Ft.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===Ft._var||this.type===Ft._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===Ft._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===s.declarations.length?(this.options.ecmaVersion>=9&&(this.type===Ft._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 yn,c=this.start,p=t>-1?this.parseExprSubscripts(l,"await"):this.parseExpression(!0,l);return this.type===Ft._in||(i=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===Ft._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))},vn.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,xn|(n?0:wn),!1,t)},vn.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(Ft._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},vn.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(Ft.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},vn.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(Ft.braceL),this.labels.push(bn),this.enterScope(0);for(var n=!1;this.type!==Ft.braceR;)if(this.type===Ft._case||this.type===Ft._default){var s=this.type===Ft._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(Ft.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")},vn.parseThrowStatement=function(e){return this.next(),Vt.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 _n=[];vn.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(Ft.parenR),e},vn.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===Ft._catch){var t=this.startNode();this.next(),this.eat(Ft.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(Ft._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},vn.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")},vn.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(gn),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},vn.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")},vn.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},vn.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===Ft._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")},vn.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},vn.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(Ft.braceL),e&&this.enterScope(0);this.type!==Ft.braceR;){var s=this.parseStatement(null);t.body.push(s)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},vn.parseFor=function(e,t){return e.init=t,this.expect(Ft.semi),e.test=this.type===Ft.semi?null:this.parseExpression(),this.expect(Ft.semi),e.update=this.type===Ft.parenR?null:this.parseExpression(),this.expect(Ft.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},vn.parseForIn=function(e,t){var n=this.type===Ft._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(Ft.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},vn.parseVar=function(e,t,n,s){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(Ft.eq)?r.init=this.parseMaybeAssign(t):s||"const"!==n||this.type===Ft._in||this.options.ecmaVersion>=6&&this.isContextual("of")?s||"Identifier"===r.id.type||t&&(this.type===Ft._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(Ft.comma))break}return e},vn.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var xn=1,wn=2;function Cn(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 kn(e,t){var n=e.computed,s=e.key;return!n&&("Identifier"===s.type&&s.name===t||"Literal"===s.type&&s.value===t)}vn.parseFunction=function(e,t,n,s,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===Ft.star&&t&wn&&this.unexpected(),e.generator=this.eat(Ft.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&xn&&(e.id=4&t&&this.type!==Ft.name?null:this.parseIdent(),!e.id||t&wn||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(un(e.async,e.generator)),t&xn||(e.id=this.type===Ft.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&xn?"FunctionDeclaration":"FunctionExpression")},vn.parseFunctionParams=function(e){this.expect(Ft.parenL),e.params=this.parseBindingList(Ft.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},vn.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(Ft.braceL);this.type!==Ft.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&&Cn(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")},vn.parseClassElement=function(e){if(this.eat(Ft.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(Ft.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===Ft.star?o=!0:s="static"}if(n.static=o,!s&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==Ft.star||this.canInsertSemicolon()?s="async":a=!0),!s&&(t>=9||!a)&&this.eat(Ft.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===Ft.parenL||"method"!==i||r||a){var c=!n.static&&kn(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},vn.isClassElementNameStart=function(){return this.type===Ft.name||this.type===Ft.privateId||this.type===Ft.num||this.type===Ft.string||this.type===Ft.bracketL||this.type.keyword},vn.parseClassElementName=function(e){this.type===Ft.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)},vn.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&&kn(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")},vn.parseClassField=function(e){if(kn(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&kn(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(Ft.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")},vn.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==Ft.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},vn.parseClassId=function(e,t){this.type===Ft.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},vn.parseClassSuper=function(e){e.superClass=this.eat(Ft._extends)?this.parseExprSubscripts(null,!1):null},vn.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},vn.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];Yt(t,i.name)||(r?r.used.push(i):this.raiseRecoverable(i.start,"Private field '#"+i.name+"' must be declared in an enclosing class"))}},vn.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!==Ft.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},vn.parseExport=function(e,t){if(this.next(),this.eat(Ft.star))return this.parseExportAllDeclaration(e,t);if(this.eat(Ft._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!==Ft.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")},vn.parseExportDeclaration=function(e){return this.parseStatement(null)},vn.parseExportDefaultDeclaration=function(){var e;if(this.type===Ft._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|xn,!1,e)}if(this.type===Ft._class){var n=this.startNode();return this.parseClass(n,"nullableID")}var s=this.parseMaybeAssign();return this.semicolon(),s},vn.checkExport=function(e,t,n){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),Yt(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},vn.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)},vn.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)}},vn.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},vn.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")},vn.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(Ft.braceL);!this.eat(Ft.braceR);){if(n)n=!1;else if(this.expect(Ft.comma),this.afterTrailingComma(Ft.braceR))break;t.push(this.parseExportSpecifier(e))}return t},vn.parseImport=function(e){return this.next(),this.type===Ft.string?(e.specifiers=_n,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===Ft.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},vn.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")},vn.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},vn.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")},vn.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===Ft.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(Ft.comma)))return e;if(this.type===Ft.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(Ft.braceL);!this.eat(Ft.braceR);){if(t)t=!1;else if(this.expect(Ft.comma),this.afterTrailingComma(Ft.braceR))break;e.push(this.parseImportSpecifier())}return e},vn.parseWithClause=function(){var e=[];if(!this.eat(Ft._with))return e;this.expect(Ft.braceL);for(var t={},n=!0;!this.eat(Ft.braceR);){if(n)n=!1;else if(this.expect(Ft.comma),this.afterTrailingComma(Ft.braceR))break;var s=this.parseImportAttribute(),r="Identifier"===s.key.type?s.key.name:s.key.value;Yt(t,r)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(s)}return e},vn.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===Ft.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(Ft.colon),this.type!==Ft.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},vn.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===Ft.string){var e=this.parseLiteral(this.value);return nn.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},vn.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)},vn.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 Sn=dn.prototype;Sn.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},Sn.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},Sn.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},Sn.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==Ft.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},Sn.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case Ft.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(Ft.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case Ft.braceL:return this.parseObj(!0)}return this.parseIdent()},Sn.parseBindingList=function(e,t,n,s){for(var r=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(Ft.comma),t&&this.type===Ft.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===Ft.ellipsis){var i=this.parseRestBinding();this.parseBindingListItem(i),r.push(i),this.type===Ft.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}r.push(this.parseAssignableListItem(s))}return r},Sn.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},Sn.parseBindingListItem=function(e){return e},Sn.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(Ft.eq))return n;var s=this.startNodeAt(e,t);return s.left=n,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},Sn.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&&(Yt(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")}},Sn.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)}},Sn.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 Pn=function(e,t,n,s,r){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=s,this.generator=!!r},En={b_stat:new Pn("{",!1),b_expr:new Pn("{",!0),b_tmpl:new Pn("${",!1),p_stat:new Pn("(",!1),p_expr:new Pn("(",!0),q_tmpl:new Pn("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new Pn("function",!1),f_expr:new Pn("function",!0),f_expr_gen:new Pn("function",!0,!1,null,!0),f_gen:new Pn("function",!1,!1,null,!0)},Tn=dn.prototype;Tn.initialContext=function(){return[En.b_stat]},Tn.curContext=function(){return this.context[this.context.length-1]},Tn.braceIsBlock=function(e){var t=this.curContext();return t===En.f_expr||t===En.f_stat||(e!==Ft.colon||t!==En.b_stat&&t!==En.b_expr?e===Ft._return||e===Ft.name&&this.exprAllowed?Vt.test(this.input.slice(this.lastTokEnd,this.start)):e===Ft._else||e===Ft.semi||e===Ft.eof||e===Ft.parenR||e===Ft.arrow||(e===Ft.braceL?t===En.b_stat:e!==Ft._var&&e!==Ft._const&&e!==Ft.name&&!this.exprAllowed):!t.isExpr)},Tn.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},Tn.updateContext=function(e){var t,n=this.type;n.keyword&&e===Ft.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},Tn.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},Ft.parenR.updateContext=Ft.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===En.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},Ft.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?En.b_stat:En.b_expr),this.exprAllowed=!0},Ft.dollarBraceL.updateContext=function(){this.context.push(En.b_tmpl),this.exprAllowed=!0},Ft.parenL.updateContext=function(e){var t=e===Ft._if||e===Ft._for||e===Ft._with||e===Ft._while;this.context.push(t?En.p_stat:En.p_expr),this.exprAllowed=!0},Ft.incDec.updateContext=function(){},Ft._function.updateContext=Ft._class.updateContext=function(e){!e.beforeExpr||e===Ft._else||e===Ft.semi&&this.curContext()!==En.p_stat||e===Ft._return&&Vt.test(this.input.slice(this.lastTokEnd,this.start))||(e===Ft.colon||e===Ft.braceL)&&this.curContext()===En.b_stat?this.context.push(En.f_stat):this.context.push(En.f_expr),this.exprAllowed=!1},Ft.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},Ft.backQuote.updateContext=function(){this.curContext()===En.q_tmpl?this.context.pop():this.context.push(En.q_tmpl),this.exprAllowed=!1},Ft.star.updateContext=function(e){if(e===Ft._function){var t=this.context.length-1;this.context[t]===En.f_expr?this.context[t]=En.f_expr_gen:this.context[t]=En.f_gen}this.exprAllowed=!0},Ft.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==Ft.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var An=dn.prototype;function $n(e){return"Identifier"===e.type||"ParenthesizedExpression"===e.type&&$n(e.expression)}function Rn(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&Rn(e.expression)||"ParenthesizedExpression"===e.type&&Rn(e.expression)}An.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}}},An.parseExpression=function(e,t){var n=this.start,s=this.startLoc,r=this.parseMaybeAssign(e,t);if(this.type===Ft.comma){var a=this.startNodeAt(n,s);for(a.expressions=[r];this.eat(Ft.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return r},An.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 yn,s=!0);var o=this.start,l=this.startLoc;this.type!==Ft.parenL&&this.type!==Ft.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===Ft.eq&&(c=this.toAssignable(c,!1,t)),s||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===Ft.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},An.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(Ft.question)){var a=this.startNodeAt(n,s);return a.test=r,a.consequent=this.parseMaybeAssign(),this.expect(Ft.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return r},An.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)},An.parseExprOp=function(e,t,n,s,r){var a=this.type.binop;if(null!=a&&(!r||this.type!==Ft._in)&&a>s){var i=this.type===Ft.logicalOR||this.type===Ft.logicalAND,o=this.type===Ft.coalesce;o&&(a=Ft.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===Ft.coalesce||o&&(this.type===Ft.logicalOR||this.type===Ft.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},An.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")},An.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===Ft.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&&$n(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&Rn(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!==Ft.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!==Ft._in&&this.unexpected();return n||!this.eat(Ft.starstar)?r:t?void this.unexpected(this.lastTokStart):this.buildBinary(a,i,r,this.parseMaybeUnary(null,!1,!1,s),"**",!1)},An.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},An.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}},An.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(Ft.arrow)},An.parseSubscriptAsyncArrow=function(e,t,n,s){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,s)},An.parseSubscript=function(e,t,n,s,r,a,i){var o=this.options.ecmaVersion>=11,l=o&&this.eat(Ft.questionDot);s&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(Ft.bracketL);if(c||l&&this.type!==Ft.parenL&&this.type!==Ft.backQuote||this.eat(Ft.dot)){var p=this.startNodeAt(t,n);p.object=e,c?(p.property=this.parseExpression(),this.expect(Ft.bracketR)):this.type===Ft.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(Ft.parenL)){var u=new yn,d=this.yieldPos,h=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(Ft.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===Ft.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},An.parseExprAtom=function(e,t,n){this.type===Ft.slash&&this.readRegexp();var s,r=this.potentialArrowAt===this.start;switch(this.type){case Ft._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type!==Ft.parenL||this.allowDirectSuper||this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==Ft.dot&&this.type!==Ft.bracketL&&this.type!==Ft.parenL&&this.unexpected(),this.finishNode(s,"Super");case Ft._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case Ft.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(Ft._function))return this.overrideContext(En.f_expr),this.parseFunction(this.startNodeAt(a,i),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(Ft.arrow))return this.parseArrowExpression(this.startNodeAt(a,i),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===Ft.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(Ft.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,i),[l],!0,t)}return l;case Ft.regexp:var c=this.value;return(s=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},s;case Ft.num:case Ft.string:return this.parseLiteral(this.value);case Ft._null:case Ft._true:case Ft._false:return(s=this.startNode()).value=this.type===Ft._null?null:this.type===Ft._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case Ft.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 Ft.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(Ft.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case Ft.braceL:return this.overrideContext(En.b_expr),this.parseObj(!1,e);case Ft._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case Ft._class:return this.parseClass(this.startNode(),!1);case Ft._new:return this.parseNew();case Ft.backQuote:return this.parseTemplate();case Ft._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},An.parseExprAtomDefault=function(){this.unexpected()},An.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===Ft.parenL&&!e)return this.parseDynamicImport(t);if(this.type===Ft.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()},An.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(Ft.parenR)?e.options=null:(this.expect(Ft.comma),this.afterTrailingComma(Ft.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(Ft.parenR)||(this.expect(Ft.comma),this.afterTrailingComma(Ft.parenR)||this.unexpected())));else if(!this.eat(Ft.parenR)){var t=this.start;this.eat(Ft.comma)&&this.eat(Ft.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},An.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")},An.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")},An.parseParenExpression=function(){this.expect(Ft.parenL);var e=this.parseExpression();return this.expect(Ft.parenR),e},An.shouldParseArrow=function(e){return!this.canInsertSemicolon()},An.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 yn,h=this.yieldPos,m=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==Ft.parenR;){if(p?p=!1:this.expect(Ft.comma),a&&this.afterTrailingComma(Ft.parenR,!0)){u=!0;break}if(this.type===Ft.ellipsis){i=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===Ft.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(Ft.parenR),e&&this.shouldParseArrow(c)&&this.eat(Ft.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},An.parseParenItem=function(e){return e},An.parseParenArrowList=function(e,t,n,s){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,s)};var In=[];An.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===Ft.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(Ft.parenL)?e.arguments=this.parseExprList(Ft.parenR,this.options.ecmaVersion>=8,!1):e.arguments=In,this.finishNode(e,"NewExpression")},An.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===Ft.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===Ft.backQuote,this.finishNode(n,"TemplateElement")},An.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===Ft.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(Ft.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(Ft.braceR),n.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},An.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===Ft.name||this.type===Ft.num||this.type===Ft.string||this.type===Ft.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===Ft.star)&&!Vt.test(this.input.slice(this.lastTokEnd,this.start))},An.parseObj=function(e,t){var n=this.startNode(),s=!0,r={};for(n.properties=[],this.next();!this.eat(Ft.braceR);){if(s)s=!1;else if(this.expect(Ft.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(Ft.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")},An.parseProperty=function(e,t){var n,s,r,a,i=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(Ft.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===Ft.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===Ft.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(Ft.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(Ft.star),this.parsePropertyName(i)):s=!1,this.parsePropertyValue(i,e,n,s,r,a,t,o),this.finishNode(i,"Property")},An.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")},An.parsePropertyValue=function(e,t,n,s,r,a,i,o){(n||s)&&this.type===Ft.colon&&this.unexpected(),this.eat(Ft.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,i),e.kind="init"):this.options.ecmaVersion>=6&&this.type===Ft.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===Ft.comma||this.type===Ft.braceR||this.type===Ft.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===Ft.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))},An.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(Ft.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(Ft.bracketR),e.key;e.computed=!1}return e.key=this.type===Ft.num||this.type===Ft.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},An.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},An.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|un(t,s.generator)|(n?128:0)),this.expect(Ft.parenL),s.params=this.parseBindingList(Ft.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")},An.parseArrowExpression=function(e,t,n,s){var r=this.yieldPos,a=this.awaitPos,i=this.awaitIdentPos;return this.enterScope(16|un(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")},An.parseFunctionBody=function(e,t,n,s){var r=t&&this.type!==Ft.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()},An.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){if("Identifier"!==n[t].type)return!1}return!0},An.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)}},An.parseExprList=function(e,t,n,s){for(var r=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(Ft.comma),t&&this.afterTrailingComma(e))break;var i=void 0;n&&this.type===Ft.comma?i=null:this.type===Ft.ellipsis?(i=this.parseSpread(s),s&&this.type===Ft.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):i=this.parseMaybeAssign(!1,s),r.push(i)}return r},An.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"))},An.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},An.parseIdentNode=function(){var e=this.startNode();return this.type===Ft.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=Ft.name):this.unexpected(),e},An.parsePrivateIdent=function(){var e=this.startNode();return this.type===Ft.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},An.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===Ft.semi||this.canInsertSemicolon()||this.type!==Ft.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(Ft.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},An.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 Mn=dn.prototype;Mn.raise=function(e,t){var n=an(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},Mn.raiseRecoverable=Mn.raise,Mn.curPosition=function(){if(this.options.locations)return new sn(this.curLine,this.pos-this.lineStart)};var qn=dn.prototype,Ln=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};qn.enterScope=function(e){this.scopeStack.push(new Ln(e))},qn.exitScope=function(){this.scopeStack.pop()},qn.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},qn.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")},qn.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},qn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},qn.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},qn.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 On=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new rn(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Nn=dn.prototype;function Dn(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}Nn.startNode=function(){return new On(this,this.start,this.startLoc)},Nn.startNodeAt=function(e,t){return new On(this,e,t)},Nn.finishNode=function(e,t){return Dn.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Nn.finishNodeAt=function(e,t,n,s){return Dn.call(this,e,t,n,s)},Nn.copyNode=function(e){var t=new On(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var jn="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",Bn=jn+" Extended_Pictographic",Fn=Bn+" EBase EComp EMod EPres ExtPict",Vn={9:jn,10:Bn,11:Bn,12:Fn,13:Fn,14:Fn},Hn={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"},Un="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",zn="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",Wn=zn+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Gn=Wn+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Kn=Gn+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Xn=Kn+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Qn={9:zn,10:Wn,11:Gn,12:Kn,13:Xn,14:Xn+" 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"},Yn={};function Jn(e){var t=Yn[e]={binary:en(Vn[e]+" "+Un),binaryOfStrings:en(Hn[e]),nonBinary:{General_Category:en(Un),Script:en(Qn[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 Zn=0,es=[9,10,11,12,13,14];Zn<es.length;Zn+=1){Jn(es[Zn])}var ts=dn.prototype,ns=function(e,t){this.parent=e,this.base=t||this};ns.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},ns.prototype.sibling=function(){return new ns(this.parent,this.base)};var ss=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=Yn[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 rs(e){return 105===e||109===e||115===e}function as(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function is(e){return e>=65&&e<=90||e>=97&&e<=122}ss.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)},ss.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},ss.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},ss.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},ss.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},ss.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},ss.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},ss.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},ss.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},ts.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")},ts.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))},ts.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")}},ts.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new ns(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")},ts.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},ts.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)},ts.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},ts.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},ts.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},ts.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},ts.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)},ts.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},ts.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},ts.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},ts.regexp_eatModifiers=function(e){for(var t="",n=0;-1!==(n=e.current())&&rs(n);)t+=tn(n),e.advance();return t},ts.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)},ts.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},ts.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!as(t)&&(e.lastIntValue=t,e.advance(),!0)},ts.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!as(n);)e.advance();return e.pos!==t},ts.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)},ts.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}},ts.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},ts.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=tn(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=tn(e.lastIntValue);return!0}return!1},ts.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 Mt(e,!0)||36===e||95===e}(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)},ts.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 qt(e,!0)||36===e||95===e||8204===e||8205===e}(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)},ts.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)},ts.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},ts.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},ts.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)},ts.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},ts.regexp_eatZero=function(e){return 48===e.current()&&!cs(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},ts.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)},ts.regexp_eatControlLetter=function(e){var t=e.current();return!!is(t)&&(e.lastIntValue=t%32,e.advance(),!0)},ts.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},ts.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)},ts.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 os(e){return is(e)||95===e}function ls(e){return os(e)||cs(e)}function cs(e){return e>=48&&e<=57}function ps(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function us(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function ds(e){return e>=48&&e<=55}ts.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},ts.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},ts.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){Yt(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},ts.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")},ts.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";os(t=e.current());)e.lastStringValue+=tn(t),e.advance();return""!==e.lastStringValue},ts.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";ls(t=e.current());)e.lastStringValue+=tn(t),e.advance();return""!==e.lastStringValue},ts.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},ts.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},ts.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},ts.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")}}},ts.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||ds(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)},ts.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)},ts.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)}},ts.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},ts.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},ts.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},ts.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},ts.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},ts.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},ts.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))},ts.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)},ts.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!cs(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},ts.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},ts.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;cs(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},ts.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;ps(n=e.current());)e.lastIntValue=16*e.lastIntValue+us(n),e.advance();return e.pos!==t},ts.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},ts.regexp_eatOctalDigit=function(e){var t=e.current();return ds(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},ts.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var s=0;s<t;++s){var r=e.current();if(!ps(r))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+us(r),e.advance()}return!0};var hs=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new rn(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},ms=dn.prototype;function fs(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}ms.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 hs(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ms.getToken=function(){return this.next(),new hs(this)},"undefined"!=typeof Symbol&&(ms[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===Ft.eof,value:t}}}}),ms.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(Ft.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},ms.readToken=function(e){return Mt(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},ms.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},ms.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=zt(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())},ms.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&&!Ut(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())},ms.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&&Wt.test(String.fromCharCode(e))))break e;++this.pos}}},ms.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)},ms.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(Ft.ellipsis)):(++this.pos,this.finishToken(Ft.dot))},ms.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(Ft.assign,2):this.finishOp(Ft.slash,1)},ms.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,s=42===e?Ft.star:Ft.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,s=Ft.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(Ft.assign,n+1):this.finishOp(s,n)},ms.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(Ft.assign,3);return this.finishOp(124===e?Ft.logicalOR:Ft.logicalAND,2)}return 61===t?this.finishOp(Ft.assign,2):this.finishOp(124===e?Ft.bitwiseOR:Ft.bitwiseAND,1)},ms.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(Ft.assign,2):this.finishOp(Ft.bitwiseXOR,1)},ms.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&&!Vt.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(Ft.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(Ft.assign,2):this.finishOp(Ft.plusMin,1)},ms.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(Ft.assign,n+1):this.finishOp(Ft.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(Ft.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},ms.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(Ft.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(Ft.arrow)):this.finishOp(61===e?Ft.eq:Ft.prefix,1)},ms.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(Ft.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(Ft.assign,3);return this.finishOp(Ft.coalesce,2)}}return this.finishOp(Ft.question,1)},ms.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,Mt(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(Ft.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+tn(e)+"'")},ms.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(Ft.parenL);case 41:return++this.pos,this.finishToken(Ft.parenR);case 59:return++this.pos,this.finishToken(Ft.semi);case 44:return++this.pos,this.finishToken(Ft.comma);case 91:return++this.pos,this.finishToken(Ft.bracketL);case 93:return++this.pos,this.finishToken(Ft.bracketR);case 123:return++this.pos,this.finishToken(Ft.braceL);case 125:return++this.pos,this.finishToken(Ft.braceR);case 58:return++this.pos,this.finishToken(Ft.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(Ft.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(Ft.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+tn(e)+"'")},ms.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},ms.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(Vt.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 ss(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(Ft.regexp,{pattern:r,flags:i,value:l})},ms.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},ms.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=fs(this.input.slice(t,this.pos)),++this.pos):Mt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Ft.num,n)},ms.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=fs(this.input.slice(t,this.pos));return++this.pos,Mt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Ft.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")),Mt(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(Ft.num,i)},ms.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},ms.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)):(Ut(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(Ft.string,t)};var ys={};ms.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==ys)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},ms.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ys;this.raise(e,t)},ms.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!==Ft.template&&this.type!==Ft.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(Ft.template,e)):36===n?(this.pos+=2,this.finishToken(Ft.dollarBraceL)):(++this.pos,this.finishToken(Ft.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Ut(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}},ms.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(Ft.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")},ms.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 tn(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 Ut(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},ms.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},ms.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(qt(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?Mt:qt)(i,s)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=tn(i),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},ms.readWord=function(){var e=this.readWord1(),t=Ft.name;return this.keywords.test(e)&&(t=jt[e]),this.finishToken(t,e)};var vs="8.14.0";dn.acorn={Parser:dn,version:vs,defaultOptions:on,Position:sn,SourceLocation:rn,getLineInfo:an,Node:On,TokenType:Lt,tokTypes:Ft,keywordTypes:jt,TokContext:Pn,tokContexts:En,isIdentifierChar:qt,isIdentifierStart:Mt,Token:hs,isNewLine:Ut,lineBreak:Vt,lineBreakG:Ht,nonASCIIwhitespace:Wt};var gs=Object.freeze({__proto__:null,Node:On,Parser:dn,Position:sn,SourceLocation:rn,TokContext:Pn,Token:hs,TokenType:Lt,defaultOptions:on,getLineInfo:an,isIdentifierChar:qt,isIdentifierStart:Mt,isNewLine:Ut,keywordTypes:jt,lineBreak:Vt,lineBreakG:Ht,nonASCIIwhitespace:Wt,parse:function(e,t){return dn.parse(e,t)},parseExpressionAt:function(e,t,n){return dn.parseExpressionAt(e,t,n)},tokContexts:En,tokTypes:Ft,tokenizer:function(e,t){return dn.tokenizer(e,t)},version:vs}),bs=!0;function _s(e,t={}){return new Lt("name",t)}var xs=new WeakMap;function ws(e){const t=e.Parser.acorn||e;let n=xs.get(t);if(!n){let e=function(e){return[Ft.name,Ft.string,Ft.num,...Object.values(jt),...Object.values(o)].includes(e)},t=function(e){return[Ft.name,...Object.values(jt),...Object.values(o)].includes(e)},s=function(e){return[...Object.values(o),Ft.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===Ft.invalidTemplate};const o={assert:_s(0,{startsExpr:bs}),asserts:_s(0,{startsExpr:bs}),global:_s(0,{startsExpr:bs}),keyof:_s(0,{startsExpr:bs}),readonly:_s(0,{startsExpr:bs}),unique:_s(0,{startsExpr:bs}),abstract:_s(0,{startsExpr:bs}),declare:_s(0,{startsExpr:bs}),enum:_s(0,{startsExpr:bs}),module:_s(0,{startsExpr:bs}),namespace:_s(0,{startsExpr:bs}),interface:_s(0,{startsExpr:bs}),type:_s(0,{startsExpr:bs})},l={at:new Lt("@"),jsxName:new Lt("jsxName"),jsxText:new Lt("jsxText",{beforeExpr:!0}),jsxTagStart:new Lt("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new Lt("jsxTagEnd")},c={tc_oTag:new Pn("<tag",!1,!1),tc_cTag:new Pn("</tag",!1,!1),tc_expr:new Pn("<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===Ft.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 Cs=1024,ks=new RegExp("(?=("+/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),Ss=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function Ps(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 Es(e,t){const{computed:n,key:s}=e;return!n&&("Identifier"===s.type&&s.name===t||"Literal"===s.type&&s.value===t)}var Ts={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."},As={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 $s=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function Rs(e){if(!e)throw new Error("Assert fail")}function Is(e){return"accessor"===e}function Ms(e){return"in"===e||"out"===e}var qs={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 Ls(e,t){return qs.SCOPE_FUNCTION|(e?qs.SCOPE_ASYNC:0)|(t?qs.SCOPE_GENERATOR:0)}function Os(e){if("MemberExpression"!==e.type)return!1;const{computed:t,property:n}=e;return(!t||!("TemplateLiteral"!==n.type||n.expressions.length>0))&&Ns(e.object)}function Ns(e){return"Identifier"===e.type||"MemberExpression"===e.type&&(!e.computed&&Ns(e.object))}function Ds(e){return"private"===e||"public"===e||"protected"===e}const js=dn.extend(function(e){const{dts:t=!1}={},n=!!e?.jsx;return function(e){const s=e.acorn||gs,r=ws(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,As.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:Ts.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=>Ds(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,Ts.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 $s.lastIndex=e,$s.test(this.input)?$s.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 ks.lastIndex=this.end,ks.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(Cs),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,Ts.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,Ts.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,Ts.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,Ts.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,Ts.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,Ts.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,Ts.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(){Rs(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:Ts.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,Ts.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=Ts.InvalidModifierOnTypeMember}){const a={},i=(t,n,s,r)=>{n===s&&e[r]&&this.raise(t.column,Ts.InvalidModifiersOrder({orderedModifiers:[s,r]}))},o=(t,n,s,r)=>{(e[s]&&n===r||e[r]&&n===s)&&this.raise(t.column,Ts.IncompatibleModifiers({modifiers:[s,r]}))};for(;;){const l=this.startLoc,c=this.tsParseModifier(t.concat(n??[]),s);if(!c)break;Ds(c)?e.accessibility?this.raise(this.start,Ts.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):Ms(c)?e[c]?this.raise(this.start,Ts.DuplicateModifier({modifier:c})):(i(l,c,"in","out"),a[c]=c,e[c]=!0):Is(c)?e[c]?this.raise(this.start,Ts.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,Ts.DuplicateModifier({modifier:c})):(a[c]=c,e[c]=!0):Object.hasOwnProperty.call(e,c)?this.raise(this.start,Ts.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:Ts.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,Ts.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,Ts.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,Ts.ReadonlyForMethodSignature);const s=n;s.kind&&this.tsMatchLeftRelational()&&this.raise(this.start,Ts.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,Ts.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,Ts.AccesorCannotDeclareThisParameter),"Identifier"===e.type&&e.optional&&this.raise(this.start,Ts.SetAccesorCannotHaveOptionalParameter),"RestElement"===e.type&&this.raise(this.start,Ts.SetAccesorCannotHaveRestParameter)}s[i]&&this.raise(s[i].start,Ts.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,qs.BIND_TS_INTERFACE)):(e.id=null,this.raise(this.start,Ts.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(Cs);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,qs.BIND_TS_NAMESPACE),this.eat(a.dot)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.enterScope(Cs),e.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(e,"TSModuleDeclaration")}checkLValSimple(e,t=qs.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,qs.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,qs.BIND_LEXICAL),super.expect(a.eq);const n=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==n.type&&this.raise(n.start,Ts.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(Ls(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?qs.BIND_VAR:qs.BIND_LEXICAL:qs.BIND_FUNCTION):this.checkLValSimple(e.id,qs.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,Ts.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,Ts.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,Ts.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,Ts.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,Ts.InitializerNotAllowedInAmbientContext):"StringLiteral"!==n.type&&"BooleanLiteral"!==n.type&&"NumericLiteral"!==n.type&&"BigIntLiteral"!==n.type&&("TemplateLiteral"!==n.type||n.expressions.length>0)&&!Os(n)&&this.raise(n.start,Ts.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,Ts.ClassMethodHasReadonly),e.declare&&this.match(a.parenL)&&this.raise(e.start,Ts.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,Ts.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,Ts.PrivateElementHasAbstract),e.accessibility&&this.raise(e.start,Ts.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,Ts.DeclareClassFieldHasInitializer),e.abstract&&this.match(a.eq)){const{key:t}=e;this.raise(this.start,Ts.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,Ts.PrivateMethodsHasAccessibility({modifier:e.accessibility}))):i&&r&&this.raise(i.start,Ts.ConstructorHasTypeParameters);const{declare:o=!1,kind:l}=e;!o||"get"!==l&&"set"!==l||this.raise(e.start,Ts.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&&Es(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:Ts.InvalidModifierOnTypeParameterPositions});o=Boolean(c.static);const p=()=>{if(!this.tsIsStartOfStaticBlocks()){const l=this.tsTryParseIndexSignature(t);if(l)return t.abstract&&this.raise(t.start,Ts.IndexSignatureHasAbstract),t.accessibility&&this.raise(t.start,Ts.IndexSignatureHasAccessibility({modifier:t.accessibility})),t.declare&&this.raise(t.start,Ts.IndexSignatureHasDeclare),t.override&&this.raise(t.start,Ts.IndexSignatureHasOverride),l;if(!this.inAbstractClass&&t.abstract&&this.raise(t.start,Ts.NonAbstractClassHasAbstractMethod),t.override&&(e||this.raise(t.start,Ts.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&&Es(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,Ts.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(Ls(n,!1)|qs.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 Ss,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(Rs(!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,Ts.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,Ts.UnsupportedParameterPropertyKind),e.parameter=l,this.finishNode(e,"TSParameterProperty")}return l}checkLValInnerPattern(e,t=qs.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,Ts.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 Ss){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,Ts.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 Ss,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 Ss;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,Ts.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 Ss,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,As.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?qs.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(e,t?qs.BIND_SIMPLE_CATCH:qs.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,As.DecoratorConstructor)):t.key&&"PrivateIdentifier"===t.key.type&&Ps(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,As.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(Ls(t,i.generator)|qs.SCOPE_SUPER|(n?qs.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,Ts.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?Ts.TypeModifierIsUsedInTypeImports:Ts.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],qs.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===Cs&&this.importsStack.push([]),super.enterScope(e);const t=super.currentScope();t.types=[],t.enums=[],t.constEnums=[],t.classes=[],t.exportOnlyBindings=[]}exitScope(){super.currentScope().flags===Cs&&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&qs.SCOPE_TOP&&this.undefinedExports.delete(t)}declareName(e,t,n){if(t&qs.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&qs.BIND_FLAGS_TS_EXPORT_ONLY)return this.maybeExportDefined(s,e),void s.exportOnlyBindings.push(e);t===qs.BIND_TS_TYPE||t===qs.BIND_TS_INTERFACE?(t===qs.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&qs.BIND_FLAGS_TS_ENUM&&s.enums.push(e),t&qs.BIND_FLAGS_TS_CONST_ENUM&&s.constEnums.push(e),t&qs.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 Bs(e,t,n,s){const r=n?js:dn,{onComment:a,add_comments:i}=Vs(e,t),o=r.prototype.parseStatement;let l;s&&(r.prototype.parseStatement=function(...e){const t=o.call(this,...e);return this.undefinedExports={},t});try{l=r.parse(e,{onComment:a,sourceType:"module",ecmaVersion:16,locations:!0})}finally{s&&(r.prototype.parseStatement=o)}return i(l),l}function Fs(e,t,n,s){const r=n?js:dn,{onComment:a,add_comments:i}=Vs(e,t,s),o=r.parseExpressionAt(e,s,{onComment:a,sourceType:"module",ecmaVersion:16,locations:!0});return i(o),o}function Vs(e,n,s=0){return{onComment:(t,s,r,a,i,o)=>{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,loc:{start:i,end:o}})},add_comments(r){0!==n.length&&(n=n.filter((e=>e.start>=s)).map((({type:e,value:t,start:n,end:s})=>({type:e,value:t,start:n,end:s}))),t(r,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>=r.end||"Program"===r.type)&&(r.trailingComments||=[]).push(...n.splice(0)))}}}class Hs extends Error{message="";#e;constructor(e,t,n){super(t),this.stack="",this.#e=new Ie(e,t,n),Object.assign(this,this.#e),this.name="CompileError"}toString(){return this.#e.toString()}toJSON(){return this.#e.toJSON()}}function Us(e,t,n){const s="number"==typeof e?e:e?.start;throw new Hs(t,n,void 0!==s?[s,("number"==typeof e?e:e?.end)??s]:void 0)}function zs(e,t){Us(e,"options_unrecognised",`Unrecognised compiler option ${t}\nhttps://svelte.dev/e/options_unrecognised`)}function Ws(e,t){Us(e,"constant_assignment",`Cannot assign to ${t}\nhttps://svelte.dev/e/constant_assignment`)}function Gs(e){Us(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 Ks(e){Us(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 Xs(e,t){Us(e,"duplicate_class_field",`\`${t}\` has already been declared\nhttps://svelte.dev/e/duplicate_class_field`)}function Qs(e,t){Us(e,"export_undefined",`\`${t}\` is not defined\nhttps://svelte.dev/e/export_undefined`)}function Ys(e,t){Us(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 Js(e){Us(e,"module_illegal_default_export","A component cannot have a default export\nhttps://svelte.dev/e/module_illegal_default_export")}function Zs(e,t){Us(e,"props_duplicate",`Cannot use \`${t}()\` more than once\nhttps://svelte.dev/e/props_duplicate`)}function er(e){Us(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 tr(e){Us(e,"props_invalid_pattern","`$props()` assignment must not contain nested properties or computed keys\nhttps://svelte.dev/e/props_invalid_pattern")}function nr(e,t){Us(e,"rune_invalid_arguments",`\`${t}\` cannot be called with arguments\nhttps://svelte.dev/e/rune_invalid_arguments`)}function sr(e,t,n){Us(e,"rune_invalid_arguments_length",`\`${t}\` must be called with ${n}\nhttps://svelte.dev/e/rune_invalid_arguments_length`)}function rr(e){Us(e,"rune_invalid_computed_property","Cannot access a computed property of a rune\nhttps://svelte.dev/e/rune_invalid_computed_property")}function ar(e,t){Us(e,"rune_invalid_name",`\`${t}\` is not a valid rune\nhttps://svelte.dev/e/rune_invalid_name`)}function ir(e,t){Us(e,"rune_invalid_spread",`\`${t}\` cannot be called with a spread argument\nhttps://svelte.dev/e/rune_invalid_spread`)}function or(e,t){Us(e,"rune_removed",`The \`${t}\` rune has been removed\nhttps://svelte.dev/e/rune_removed`)}function lr(e,t,n){Us(e,"rune_renamed",`\`${t}\` is now \`${n}\`\nhttps://svelte.dev/e/rune_renamed`)}function cr(e,t){Us(e,"runes_mode_invalid_import",`${t} cannot be used in runes mode\nhttps://svelte.dev/e/runes_mode_invalid_import`)}function pr(e){Us(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")}function ur(e){Us(e,"state_field_invalid_assignment","Cannot assign to a state field before its declaration\nhttps://svelte.dev/e/state_field_invalid_assignment")}function dr(e){Us(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 hr(e,t){Us(e,"state_invalid_placement",`\`${t}(...)\` can only be used as a variable declaration initializer, a class field declaration, or the first assignment to a class field at the top level of the constructor.\nhttps://svelte.dev/e/state_invalid_placement`)}function mr(e){Us(e,"store_invalid_subscription","Cannot reference store value inside `<script module>`\nhttps://svelte.dev/e/store_invalid_subscription")}function fr(e,t){Us(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 yr(e){Us(e,"css_expected_identifier","Expected a valid CSS identifier\nhttps://svelte.dev/e/css_expected_identifier")}function vr(e,t){Us(e,"css_global_block_invalid_combinator",`A \`:global\` selector cannot follow a \`${t}\` combinator\nhttps://svelte.dev/e/css_global_block_invalid_combinator`)}function gr(e){Us(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")}function br(e){Us(e,"css_global_block_invalid_list","A `:global` selector cannot be part of a selector list with entries that don't contain `:global`\nhttps://svelte.dev/e/css_global_block_invalid_list")}function _r(e){Us(e,"css_global_block_invalid_modifier","A `:global` selector cannot modify an existing selector\nhttps://svelte.dev/e/css_global_block_invalid_modifier")}function xr(e){Us(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 wr(e){Us(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 Cr(e){Us(e,"css_global_invalid_selector","`:global(...)` must contain exactly one selector\nhttps://svelte.dev/e/css_global_invalid_selector")}function kr(e){Us(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 Sr(e){Us(e,"css_selector_invalid","Invalid selector\nhttps://svelte.dev/e/css_selector_invalid")}function Pr(e){Us(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 Er(e){Us(e,"animation_duplicate","An element can only have one 'animate' directive\nhttps://svelte.dev/e/animation_duplicate")}function Tr(e){Us(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 Ar(e){Us(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 $r(e){Us(e,"attribute_duplicate","Attributes need to be unique\nhttps://svelte.dev/e/attribute_duplicate")}function Rr(e){Us(e,"attribute_invalid_event_handler","Event attribute must be a JavaScript expression, not a string\nhttps://svelte.dev/e/attribute_invalid_event_handler")}function Ir(e,t){Us(e,"attribute_invalid_name",`'${t}' is not a valid attribute name\nhttps://svelte.dev/e/attribute_invalid_name`)}function Mr(e){Us(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 qr(e){Us(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 Lr(e,t,n){Us(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 Or(e,t){Us(e,"bind_invalid_parens",`\`bind:${t}={get, set}\` must not have surrounding parentheses\nhttps://svelte.dev/e/bind_invalid_parens`)}function Nr(e,t,n){Us(e,"bind_invalid_target",`\`bind:${t}\` can only be used with ${n}\nhttps://svelte.dev/e/bind_invalid_target`)}function Dr(e,t){Us(e,"block_duplicate_clause",`${t} cannot appear more than once within a block\nhttps://svelte.dev/e/block_duplicate_clause`)}function jr(e,t,n){Us(e,"block_invalid_placement",`{#${t} ...} block cannot be ${n}\nhttps://svelte.dev/e/block_invalid_placement`)}function Br(e,t){Us(e,"block_unexpected_character",`Expected a \`${t}\` character immediately following the opening bracket\nhttps://svelte.dev/e/block_unexpected_character`)}function Fr(e){Us(e,"block_unexpected_close","Unexpected block closing tag\nhttps://svelte.dev/e/block_unexpected_close")}function Vr(e){Us(e,"component_invalid_directive","This type of directive is not valid on components\nhttps://svelte.dev/e/component_invalid_directive")}function Hr(e,t){Us(e,"const_tag_invalid_reference",`The \`{@const ${t} = ...}\` declaration is not available in this snippet \nhttps://svelte.dev/e/const_tag_invalid_reference`)}function Ur(e,t){Us(e,"element_invalid_closing_tag",`\`</${t}>\` attempted to close an element that was not open\nhttps://svelte.dev/e/element_invalid_closing_tag`)}function zr(e,t,n){Us(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 Wr(e,t){Us(e,"element_unclosed",`\`<${t}>\` was left open\nhttps://svelte.dev/e/element_unclosed`)}function Gr(e){Us(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 Kr(e,t){Us(e,"event_handler_invalid_modifier",`Valid event modifiers are ${t}\nhttps://svelte.dev/e/event_handler_invalid_modifier`)}function Xr(e,t,n){Us(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 Qr(e){Us(e,"expected_attribute_value","Expected attribute value\nhttps://svelte.dev/e/expected_attribute_value")}function Yr(e){Us(e,"expected_identifier","Expected an identifier\nhttps://svelte.dev/e/expected_identifier")}function Jr(e,t){Us(e,"expected_token",`Expected token ${t}\nhttps://svelte.dev/e/expected_token`)}function Zr(e,t){Us(e,"illegal_element_attribute",`\`<${t}>\` does not support non-event attributes or spread attributes\nhttps://svelte.dev/e/illegal_element_attribute`)}function ea(e,t){Us(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 ta(e){Us(e,"render_tag_invalid_spread_argument","cannot use spread arguments in `{@render ...}` tags\nhttps://svelte.dev/e/render_tag_invalid_spread_argument")}function na(e){Us(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 sa(e,t){Us(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 ra(e){Us(e,"script_invalid_context",'If the context attribute is supplied, its value must be "module"\nhttps://svelte.dev/e/script_invalid_context')}function aa(e){Us(e,"slot_attribute_invalid","slot attribute must be a static value\nhttps://svelte.dev/e/slot_attribute_invalid")}function ia(e){Us(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 oa(e){Us(e,"slot_default_duplicate",'Found default slot content alongside an explicit slot="default"\nhttps://svelte.dev/e/slot_default_duplicate')}function la(e){Us(e,"slot_element_invalid_attribute","`<slot>` can only receive attributes and (optionally) let directives\nhttps://svelte.dev/e/slot_element_invalid_attribute")}function ca(e){Us(e,"slot_element_invalid_name","slot attribute must be a static value\nhttps://svelte.dev/e/slot_element_invalid_name")}function pa(e){Us(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 ua(e){Us(e,"snippet_invalid_rest_parameter","Snippets do not support rest parameters; use an array instead\nhttps://svelte.dev/e/snippet_invalid_rest_parameter")}function da(e){Us(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 ha(e){Us(e,"svelte_boundary_invalid_attribute","Valid attributes on `<svelte:boundary>` are `onerror` and `failed`\nhttps://svelte.dev/e/svelte_boundary_invalid_attribute")}function ma(e){Us(e,"svelte_boundary_invalid_attribute_value","Attribute value must be a non-string expression\nhttps://svelte.dev/e/svelte_boundary_invalid_attribute_value")}function fa(e){Us(e,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value\nhttps://svelte.dev/e/svelte_element_missing_this")}function ya(e){Us(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 va(e){Us(e,"svelte_head_illegal_attribute","`<svelte:head>` cannot have attributes nor directives\nhttps://svelte.dev/e/svelte_head_illegal_attribute")}function ga(e){Us(e,"svelte_options_deprecated_tag",'"tag" option is deprecated — use "customElement" instead\nhttps://svelte.dev/e/svelte_options_deprecated_tag')}function ba(e){Us(e,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes\nhttps://svelte.dev/e/svelte_options_invalid_attribute")}function _a(e,t){Us(e,"svelte_options_invalid_attribute_value",`Value must be ${t}, if specified\nhttps://svelte.dev/e/svelte_options_invalid_attribute_value`)}function xa(e){Us(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 wa(e){Us(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 Ca(e){Us(e,"svelte_options_invalid_customelement_shadow",'"shadow" must be either "open" or "none"\nhttps://svelte.dev/e/svelte_options_invalid_customelement_shadow')}function ka(e){Us(e,"svelte_options_invalid_tagname","Tag name must be lowercase and hyphenated\nhttps://svelte.dev/e/svelte_options_invalid_tagname")}function Sa(e,t){Us(e,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${t}'\nhttps://svelte.dev/e/svelte_options_unknown_attribute`)}function Pa(e,t,n){Us(e,"tag_invalid_placement",`{@${t} ...} tag cannot be ${n}\nhttps://svelte.dev/e/tag_invalid_placement`)}function Ea(e){Us(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 Ta(e){Us(e,"title_illegal_attribute","`<title>` cannot have attributes nor directives\nhttps://svelte.dev/e/title_illegal_attribute")}function Aa(e){Us(e,"title_invalid_content","`<title>` can only contain text and {tags}\nhttps://svelte.dev/e/title_invalid_content")}function $a(e,t,n){Us(e,"transition_conflict",`Cannot use \`${t}:\` alongside existing \`${n}:\` directive\nhttps://svelte.dev/e/transition_conflict`)}function Ra(e,t){Us(e,"transition_duplicate",`Cannot use multiple \`${t}:\` directives on a single element\nhttps://svelte.dev/e/transition_duplicate`)}function Ia(e){Us(e,"unexpected_eof","Unexpected end of input\nhttps://svelte.dev/e/unexpected_eof")}function Ma(e){return e<0?1/0:e}function qa(e,t,n){let s;return s="`"===n?e:e.slice(0,Ma(e.indexOf("\n",t))),Oa(s,t,n)}function La(e,t){return Oa(e,t,"/")}function Oa(e,t,n){let s=t;for(;;){const t=e.indexOf(n,s);if(-1===t)return 1/0;if(Na(e,t-1)%2==0)return t;s=t+1}}function Na(e,t){let n=t,s=0;for(;"\\"===e[n];)s++,n--;return s}const Da={"{":"}","(":")","[":"]"};function ja(e,t,n=Da){const s=Object.values(n),r=[];let a=t;for(;a<e.template.length;){let t=e.template[a++];if("'"!==t&&'"'!==t&&"`"!==t){if(t in n)r.push(t);else if(s.includes(t)){const e=n[r.pop()];if(t!==e&&Jr(a-1,e),0===r.length)return a}}else a=Ba(e,a,t)}Ia(e.template.length)}function Ba(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=ja(e,r))}}Us(t,"unterminated_string_constant","Unterminated string constant\nhttps://svelte.dev/e/unterminated_string_constant")}function Fa(e,t){const n=function(e,t,n){const s=Da[n];let r=1,a=t;for(;r>0&&a<e.length;){const t=e[a];switch(t){case"'":case'"':case"`":a=qa(e,a+1,t)+1;continue;case"/":{const t=e[a+1];if(!t)continue;if("/"===t){a=Ma(e.indexOf("\n",a+1))+1;continue}if("*"===t){a=Ma(e.indexOf("*/",a+1))+2;continue}a=La(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 Va(e,t,n){try{let t=e.root.comments.length;const n=Fs(e.template,e.root.comments,e.ts,e.index);let r=0,a=e.root.comments.length;for(;a-- >t;){const t=e.root.comments[a];if(t.end<n.start){e.index=t.end;break}}for(let t=e.index;t<n.start;t+=1)"("===e.template[t]&&(r+=1);let i=n.end;const o=e.root.comments.at(-1);for(o&&o.end>i&&(i=o.end);r>0;){const t=e.template[i];")"===t?r-=1:s.test(t)||Jr(i,")"),i+=1}return e.index=i,n}catch(s){if(e.loose&&!n){const n=Fa(e,t);if(n)return n}e.acorn_error(s)}}function Ha(e){return e.replace(/(`|\${|\\)/g,"\\$1")}function Ua(e=[]){return{type:"ArrayExpression",elements:e}}function za(e){return{type:"ArrayPattern",elements:e}}function Wa(e,t){return{type:"AssignmentPattern",left:e,right:t}}function Ga(e,t,n=!1){return{type:"ArrowFunctionExpression",params:e,body:t,expression:"BlockStatement"!==t.type,generator:!1,async:n,metadata:null}}function Ka(e,t,n){return{type:"AssignmentExpression",operator:e,left:t,right:n}}function Xa(e){return{type:"AwaitExpression",argument:e}}function Qa(e,t,n){return{type:"BinaryExpression",operator:e,left:t,right:n}}function Ya(e){return{type:"BlockStatement",body:e}}function Ja(e,...t){"string"==typeof e&&(e=ci(e));let n=(t=t.slice()).length,s=!0;for(;n--;)t[n]?s=!1:s?t.pop():t[n]=ti;return{type:"CallExpression",callee:e,arguments:t,optional:!1}}function Za(e,...t){const n=Ja(e,...t);return n.optional=!0,{type:"ChainExpression",expression:n}}function ei(e,t){return{type:"UnaryExpression",argument:t,operator:e,prefix:!0}}const ti=ei("void",di(0));function ni(e,t,n){return{type:"LogicalExpression",operator:e,left:t,right:n}}function si(e,t){return{type:"VariableDeclaration",kind:e,declarations:t}}function ri(e,t){return"string"==typeof e&&(e=ci(e)),{type:"VariableDeclarator",id:e,init:t}}const ai={type:"EmptyStatement"};function ii(e){return{type:"ExportDefaultDeclaration",declaration:e}}function oi(e,t,n,s=!1){return{type:"FunctionDeclaration",id:e,params:t,body:n,generator:!1,async:s,metadata:null}}function li(e,t){return vi("get",zi(e),Bi(null,[],Ya(t)))}function ci(e){return{type:"Identifier",name:e}}function pi(e){return{type:"PrivateIdentifier",name:e}}function ui(e,t){return vi("init",zi(e),t)}function di(e){return{type:"Literal",value:e}}function hi(e,t,n=!1,s=!1){return"string"==typeof t&&(t=ci(t)),{type:"MemberExpression",object:e,property:t,computed:n,optional:s}}function mi(e){const t=e.split(".");let n=ci(t[0]);for(let e=1;e<t.length;e+=1)n=hi(n,ci(t[e]));return n}function fi(e){return{type:"ObjectExpression",properties:e}}function yi(e){return{type:"ObjectPattern",properties:e}}function vi(e,t,n,s=!1){return{type:"Property",kind:e,key:t,value:n,method:!1,shorthand:!1,computed:s}}function gi(e,t,n=!1,s=!1){return{type:"PropertyDefinition",key:e,value:t,computed:n,static:s}}function bi(e,t=!1){return{type:"TemplateElement",value:{raw:Ha(e),cooked:e},tail:t}}function _i(e){return{type:"RestElement",argument:e}}function xi(e){return{type:"SequenceExpression",expressions:e}}function wi(e,t){return vi("set",zi(e),Bi(null,[ci("$$value")],Ya(t)))}function Ci(e){return{type:"SpreadElement",argument:e}}function ki(e){return{type:"ExpressionStatement",expression:e}}function Si(e,t){return{type:"TemplateLiteral",quasis:e,expressions:t}}function Pi(e,t=!1){return Ei(Ga([],e,t))}function Ei(e){return e.async&&"AwaitExpression"===e.body.type&&!po(e.body.argument)?Ei(Ga(e.params,e.body.argument)):!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 Ti(e,...t){return"string"==typeof e&&(e=ci(e)),{callee:e,arguments:t,type:"NewExpression"}}function Ai(e,t,n=!1){return{type:"UpdateExpression",operator:e,argument:t,prefix:n}}function $i(e,t){return{type:"DoWhileStatement",test:e,body:t}}const Ri=di(!0),Ii=di(!1),Mi=di(null),qi={type:"DebuggerStatement"},Li={type:"ThisExpression"};function Oi(e,t){return si("let",[ri(e,t)])}function Ni(e,t){return si("const",[ri(e,t)])}function Di(e,t){return si("var",[ri(e,t)])}function ji(e,t,n,s,r=!1,a=!1){return{type:"MethodDefinition",key:t,kind:e,value:Bi(null,n,Ya(s)),computed:r,static:a}}function Bi(e,t,n,s=!1){return{type:"FunctionExpression",id:e,params:t,body:n,generator:!1,async:s,metadata:null}}function Fi(e,t,n){return{type:"IfStatement",test:e,consequent:t,alternate:n}}function Vi(e,t){return{type:"ImportDeclaration",source:di(t),specifiers:[(n=e,{type:"ImportNamespaceSpecifier",local:ci(n)})]};var n}function Hi(e,t){return{type:"ImportDeclaration",source:di(t),specifiers:e.map((e=>({type:"ImportSpecifier",imported:ci(e[0]),local:ci(e[1])})))}}function Ui(e=null){return{type:"ReturnStatement",argument:e}}function zi(e){return m.test(e)?ci(e):di(e)}function Wi(e){for(;"MemberExpression"===e.type;)e=e.object;return"Identifier"!==e.type?null:e}function Gi(e){return Array.isArray(e.value)&&1===e.value.length&&"Text"===e.value[0].type}function Ki(e){return!0!==e.value&&!Array.isArray(e.value)||Array.isArray(e.value)&&1===e.value.length&&"ExpressionTag"===e.value[0].type}function Xi(e){return Array.isArray(e.value)?e.value[0].expression:e.value.expression}function Qi(e){return Array.isArray(e)?e:"boolean"==typeof e?[]:[e]}function Yi(e){return Ki(e)&&e.name.startsWith("on")}function Ji(e,t=[]){switch(e.type){case"Identifier":case"MemberExpression":t.push(e);break;case"ObjectPattern":for(const n of e.properties)"RestElement"===n.type?Ji(n.argument,t):Ji(n.value,t);break;case"ArrayPattern":for(const n of e.elements)n&&Ji(n,t);break;case"RestElement":Ji(e.argument,t);break;case"AssignmentPattern":Ji(e.left,t)}return t}function Zi(e){return Ji(e,[]).filter((e=>"Identifier"===e.type))}function eo(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 to(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"ObjectExpression":for(const n of e.properties)"Property"===n.type?to(n.value,t):to(n.argument,t);break;case"ArrayExpression":for(const n of e.elements)n&&to(n,t)}return t}function no(e,t){const n=[],s=[];return so(s,n,e,t,t,!1),{inserts:n,paths:s}}function so(e,t,n,s,r,a){switch(n.type){case"Identifier":case"MemberExpression":e.push({node:n,is_rest:!1,has_default_value:a,expression:s,update_expression:r});break;case"ObjectPattern":for(const r of n.properties)if("RestElement"===r.type){const i=[];for(const e of n.properties)"Property"===e.type&&"PrivateIdentifier"!==e.key.type&&("Identifier"!==e.key.type||e.computed?"Literal"===e.key.type?i.push(di(String(e.key.value))):i.push(Ja("String",e.key)):i.push(di(e.key.name)));const o=Ja("$.exclude_from_object",s,Ua(i));"Identifier"===r.argument.type?e.push({node:r.argument,is_rest:!0,has_default_value:a,expression:o,update_expression:o}):so(e,t,r.argument,o,o,a)}else{const n=hi(s,r.key,r.computed||"Identifier"!==r.key.type);so(e,t,r.value,n,n,a)}break;case"ArrayPattern":{const r=ci("#"),i=Ja("$.to_array",s,"RestElement"===n.elements.at(-1)?.type?void 0:di(n.elements.length));t.push({id:r,value:i});for(let s=0;s<n.elements.length;s+=1){const i=n.elements[s];if(i)if("RestElement"===i.type){const n=Ja(hi(r,"slice"),di(s));"Identifier"===i.argument.type?e.push({node:i.argument,is_rest:!0,has_default_value:a,expression:n,update_expression:n}):so(e,t,i.argument,n,n,a)}else{const n=hi(r,di(s),!0);so(e,t,i,n,n,a)}}break}case"AssignmentPattern":{const a=lo(s,n.right);"Identifier"===n.left.type?e.push({node:n.left,is_rest:!1,has_default_value:!0,expression:a,update_expression:r}):so(e,t,n.left,a,r,!0);break}}return e}function ro(e,t){let n=e.at(t);return"TSNonNullExpression"===n.type||"TSAsExpression"===n.type?e.at(t<0?t-1:t+1):n}function ao(e){return"Literal"===e.type||"Identifier"===e.type||"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||("ConditionalExpression"===e.type?ao(e.test)&&ao(e.consequent)&&ao(e.alternate):("BinaryExpression"===e.type||"LogicalExpression"===e.type)&&("PrivateIdentifier"!==e.left.type&&ao(e.left)&&ao(e.right)))}function io(e){return"ChainExpression"===e.type?e.expression:e}function oo(e){switch(e.type){case"AwaitExpression":return!0;case"ArrayPattern":return e.elements.some((e=>e&&oo(e)));case"ArrayExpression":return e.elements.some((e=>!!e&&("SpreadElement"===e.type?oo(e.argument):oo(e))));case"AssignmentPattern":case"AssignmentExpression":case"BinaryExpression":case"LogicalExpression":return"PrivateIdentifier"!==e.left.type&&oo(e.left)||oo(e.right);case"CallExpression":case"NewExpression":return"Super"!==e.callee.type&&oo(e.callee)||e.arguments.some((e=>"SpreadElement"===e.type?oo(e.argument):oo(e)));case"ChainExpression":return oo(e.expression);case"ConditionalExpression":return oo(e.test)||oo(e.alternate)||oo(e.consequent);case"ImportExpression":return oo(e.source);case"MemberExpression":return"Super"!==e.object.type&&oo(e.object)||"PrivateIdentifier"!==e.property.type&&oo(e.property);case"ObjectPattern":case"ObjectExpression":return e.properties.some((e=>"SpreadElement"===e.type?oo(e.argument):"Property"===e.type?"PrivateIdentifier"!==e.key.type&&oo(e.key)||oo(e.value):void 0));case"RestElement":case"UnaryExpression":case"UpdateExpression":return oo(e.argument);case"SequenceExpression":case"TemplateLiteral":return e.expressions.some((e=>oo(e)));case"TaggedTemplateExpression":return oo(e.tag)||oo(e.quasi);case"YieldExpression":return!!e.argument&&oo(e.argument);default:return!1}}function lo(e,t){return ao(t)?Ja("$.fallback",e,t):"AwaitExpression"===t.type&&ao(t.argument)?Xa(Ja("$.fallback",e,t.argument)):oo(t)?Xa(Ja("$.fallback",e,Pi(t,!0),Ri)):Ja("$.fallback",e,Pi(t),Ri)}function co(e,t,n){return"="===e?n:["||=","&&=","??="].includes(e)?ni(e.slice(0,-1),t,n):Qa(e.slice(0,-1),t,n)}function po(e){let n=!1;return t(e,null,{AwaitExpression(e,t){n=!0,t.stop()}}),n}const uo=/<\/script\s*>/,ho=/^<\/script\s*>/,mo=["server","client","worker","test","default"],fo=["context","generics","lang","module"];const yo=/^[~^$*|]?=/,vo=/[\s\]]/,go=/^[a-zA-Z]+/,bo=/^(\+|~|>|\|\|)/,_o=/^\d+(\.\d+)?%/,xo=/^(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/,wo=/[\s:]/,Co=/-?\d/,ko=/[a-zA-Z0-9_-]/,So=/^\\[0-9a-fA-F]{1,6}(\r\n|\s)?/,Po=/\*\//,Eo=/-->/;function To(e,t,n){const s=e.index,r=function(e,t){const n=[];for(;e.index<e.template.length;){if(jo(e),e.match(t))return n;e.match("@")?n.push(Ao(e)):n.push($o(e))}Jr(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 Ao(e){const t=e.index;e.eat("@",!0);const n=Do(e),s=Oo(e);let r=null;return e.match("{")?r=qo(e):e.eat(";",!0),{type:"Atrule",start:t,end:e.index,name:n,prelude:s,block:r}}function $o(e){const t=e.index;return{type:"Rule",prelude:Ro(e),block:qo(e),start:t,end:e.index,metadata:{parent_rule:null,has_local_selectors:!1,has_global_selectors:!1,is_global_block:!1}}}function Ro(e,t=!1){const n=[];jo(e);const s=e.index;for(;e.index<e.template.length;){n.push(Io(e,t));const r=e.index;if(jo(e),t?e.match(")"):e.match("{"))return{type:"SelectorList",start:s,end:r,children:n};e.eat(",",!0),jo(e)}Ia(e.template.length)}function Io(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=Do(e)),a.selectors.push({type:"TypeSelector",name:t,start:i,end:e.index})}else if(e.eat("#"))a.selectors.push({type:"IdSelector",name:Do(e),start:i,end:e.index});else if(e.eat("."))a.selectors.push({type:"ClassSelector",name:Do(e),start:i,end:e.index});else if(e.eat("::"))a.selectors.push({type:"PseudoElementSelector",name:Do(e),start:i,end:e.index}),e.eat("(")&&(Ro(e,!0),e.eat(")",!0));else if(e.eat(":")){const t=Do(e);let n=null;e.eat("(")&&(n=Ro(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=Do(e);e.allow_whitespace();let n=null;const s=e.read(yo);s&&(e.allow_whitespace(),n=No(e)),e.allow_whitespace();const r=e.read(go);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(xo))a.selectors.push({type:"Nth",value:e.read(xo),start:i,end:e.index});else if(e.match_regex(_o))a.selectors.push({type:"Percentage",value:e.read(_o),start:i,end:e.index});else if(!e.match_regex(bo)){let t=Do(e);e.eat("|")&&(t=Do(e)),a.selectors.push({type:"TypeSelector",name:t,start:i,end:e.index})}const o=e.index;if(jo(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,is_global:!1,used:!1}};e.index=o;const l=Mo(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("{")))&&Sr(e.index))}Ia(e.template.length)}function Mo(e){const t=e.index;e.allow_whitespace();const n=e.index,s=e.read(bo);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 qo(e){const t=e.index;e.eat("{",!0);const n=[];for(;e.index<e.template.length&&(jo(e),!e.match("}"));)n.push(Lo(e));return e.eat("}",!0),{type:"Block",start:t,end:e.index,children:n}}function Lo(e){if(e.match("@"))return Ao(e);const t=e.index;Oo(e);const n=e.template[e.index];return e.index=t,"{"===n?$o(e):function(e){const t=e.index,n=e.read_until(wo);e.allow_whitespace(),e.eat(":");let s=e.index;e.allow_whitespace();const r=Oo(e);r||n.startsWith("--")||Us({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 Oo(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++}Ia(e.template.length)}function No(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:vo.test(r))return s&&e.eat(s,!0),t.trim();t+=r}e.index++}Ia(e.template.length)}function Do(e){const t=e.index;let n="";for(e.match_regex(Co)&&yr(t);e.index<e.template.length;){const t=e.template[e.index];if("\\"===t){const t=e.match_regex(So);t?(n+=String.fromCodePoint(parseInt(t.slice(1),16)),e.index+=t.length):(n+="\\"+e.template[e.index+1],e.index+=2)}else{if(!(t.codePointAt(0)>=160||ko.test(t)))break;n+=t,e.index++}}return""===n&&yr(t),n}function jo(e){for(e.allow_whitespace();e.match("/*")||e.match("\x3c!--");)e.eat("/*")&&(e.read_until(Po),e.eat("*/",!0)),e.eat("\x3c!--")&&(e.read_until(Eo),e.eat("--\x3e",!0)),e.allow_whitespace()}var Bo={"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 Fo=[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 Vo(e){const t=Object.keys(Bo).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 Ho=Vo(!1),Uo=Vo(!0);function zo(e,t){const n=t?Uo:Ho;return e.replace(n,((e,t)=>{let n;return n="#"!==t[0]?Bo[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 Fo[e-128];if(e<55296)return e;if(e<=57343)return Wo;if(e<=65535)return e;if(e>=65536&&e<=131071)return e;if(e>=131072&&e<=196607)return e;if(e>=917504&&e<=917631||e>=917760&&e<=917999)return e;return Wo}(n)):e}))}const Wo=0;function Go(e=!1){return{type:"Fragment",nodes:[],metadata:{transparent:e,dynamic:!1,has_await:!1}}}const Ko=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function Xo(e){return Ko.includes(e.type)}function Qo(e){return["Component","SvelteComponent","SvelteSelf"].includes(e.type)}function Yo(e){return"RegularElement"===e.type&&(e.name.includes("-")||e.attributes.some((e=>"Attribute"===e.type&&"is"===e.name)))}function Jo(e,t,n,s){return{type:"Attribute",start:t,end:n,name:e,value:s,metadata:{delegated:null,needs_clsx:!1}}}function Zo(){return{dependencies:new Set,references:new Set,has_state:!1,has_call:!1,has_member_expression:!1,has_assignment:!1,has_await:!1}}function el(e){return"Literal"===e.type?String(e.value):"PrivateIdentifier"===e.type?"#"+e.name:"Identifier"===e.type?e.name:null}const tl={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 nl={...tl,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 sl(e,t,n,s){if(e.includes("-"))return null;const r=t[t.length-1],a=nl[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 rl(e,t,n,s){if(e.includes("-")||t?.includes("-"))return null;if("template"===t)return null;const r=nl[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 al(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 il=/^(\/>|[\s"'=<>`])/,ol=/^<\/textarea(\s[^>]*)?>/i,ll=/-->/,cl=/(\s|\/|>)/,pl=/[\s=/>"']/,ul=/^["']/,dl=/^(?:"([^"]*)"|'([^'])*'|([^>\s]+))/,hl=/^(?:![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])$/,ml=/^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u,fl=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),yl=new Map([...fl,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function vl(e){const t=e.index++;let n=e.current();if(e.eat("!--")){const n=e.read_until(ll);return e.eat("--\x3e",!0),void e.append({type:"Comment",start:t,end:e.index,data:n})}const s=e.eat("/"),r=e.read_until(cl);if(s){for(e.allow_whitespace(),e.eat(">",!0),z(r)&&Us(t,"void_element_invalid_content","Void elements cannot have children or closing tags\nhttps://svelte.dev/e/void_element_invalid_content");n.name!==r;){if(e.loose&&Xo(n)){const t=n.attributes.at(-1);if("Attribute"===t?.type&&t.name===`<${r}`){e.index=t.start,n.attributes.pop();break}}if("RegularElement"===n.type){if(!e.last_auto_closed_tag||e.last_auto_closed_tag.tag!==r){const e=n.fragment.nodes[0]?.start??t;mt({start:n.start,end:e},`</${r}>`,`</${n.name}>`)}}else e.loose||(e.last_auto_closed_tag&&e.last_auto_closed_tag.tag===r?zr(t,r,e.last_auto_closed_tag.reason):Ur(t,r));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(r.startsWith("svelte:")&&!yl.has(r)){!function(e,t){Us(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+r.length},al(Array.from(yl.keys())))}if(!(hl.test(r)||ml.test(r)||e.loose&&r.endsWith("."))){!function(e){Us(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+r.length})}fl.has(r)&&(r in e.meta_tags&&function(e,t){Us(e,"svelte_meta_duplicate",`A component can only have one \`<${t}>\` element\nhttps://svelte.dev/e/svelte_meta_duplicate`)}(t,r),"Root"!==n.type&&function(e,t){Us(e,"svelte_meta_invalid_placement",`\`<${t}>\` tags cannot be inside elements or blocks\nhttps://svelte.dev/e/svelte_meta_invalid_placement`)}(t,r),e.meta_tags[r]=!0);const a=yl.has(r)?yl.get(r):ml.test(r)||e.loose&&r.endsWith(".")?"Component":"title"===r&&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"!==r||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",i="RegularElement"===a?{type:a,start:t,end:-1,name:r,attributes:[],fragment:Go(!0),metadata:{svg:!1,mathml:!1,scoped:!1,has_spread:!1,path:[],synthetic_value_node:null}}:{type:a,start:t,end:-1,name:r,attributes:[],fragment:Go(!0),metadata:{}};if(e.allow_whitespace(),"RegularElement"===n.type&&function(e,t){const n=tl[e];return!(!n||t&&!("direct"in n?n.direct:n.descendant).includes(t))}(n.name,r)){const s=n.fragment.nodes[0]?.start??t;mt({start:n.start,end:s},`<${r}>`,`</${n.name}>`),n.end=t,e.pop(),e.last_auto_closed_tag={tag:n.name,reason:r,depth:e.stack.length}}const o=[],l=e.current(),c=("script"===r||"style"===r)&&"Root"===l.type,p=c?gl:bl;let u;for(;u=p(e);){if("Attribute"===u.type||"BindDirective"===u.type||"StyleDirective"===u.type||"ClassDirective"===u.type){const e="BindDirective"===u.type?"Attribute":u.type;o.includes(e+u.name)?$r(u):"this"!==u.name&&o.push(e+u.name)}i.attributes.push(u),e.allow_whitespace()}if("SvelteComponent"===i.type){const e=i.attributes.findIndex((e=>"Attribute"===e.type&&"this"===e.name));-1===e&&function(e){Us(e,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute\nhttps://svelte.dev/e/svelte_component_missing_this")}(t);const n=i.attributes.splice(e,1)[0];Ki(n)||function(e){Us(e,"svelte_component_invalid_this","Invalid component definition — must be an `{expression}`\nhttps://svelte.dev/e/svelte_component_invalid_this")}(n.start),i.expression=Xi(n)}if("SvelteElement"===i.type){const e=i.attributes.findIndex((e=>"Attribute"===e.type&&"this"===e.name));-1===e&&fa(t);const n=i.attributes.splice(e,1)[0];if(!0===n.value&&fa(n),Ki(n))i.tag=Xi(n);else{!function(e){qe(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];i.tag="Text"===e.type?{type:"Literal",value:e.data,raw:`'${e.raw}'`,start:e.start,end:e.end}:e.expression}i.metadata.expression=Zo()}if(c){e.eat(">",!0);let n=null;for(let e=l.fragment.nodes.length-1;e>=0;e--){const s=l.fragment.nodes[e];if(e===l.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"===r){const s=function(e,t,n){const s=e.index,r=e.read_until(uo);e.index>=e.template.length&&Wr(e.template.length,"script");const a=e.template.slice(0,s).replace(h," ")+r;let i;e.read(ho);try{i=Bs(a,e.root.comments,e.ts,!0)}catch(t){e.acorn_error(t)}i.start=s;let o="default";for(const e of n)mo.includes(e.name)&&(l=e,c=e.name,Us(l,"script_reserved_attribute",`The \`${c}\` attribute is reserved and cannot be used\nhttps://svelte.dev/e/script_reserved_attribute`)),fo.includes(e.name)||yt(e),"module"===e.name&&(!0!==e.value&&sa(e,e.name),o="module"),"context"===e.name&&(!0!==e.value&&Gi(e)||ra(e),"module"!==e.value[0].data&&ra(e),o="module");var l,c;return{type:"Script",start:t,end:e.index,context:o,content:i,attributes:n}}(e,t,i.attributes);n&&(s.content.leadingComments=[{type:"Line",value:n.data}]),"module"===s.context?(l.module&&na(t),l.module=s):(l.instance&&na(t),l.instance=s)}else{const s=To(e,t,i.attributes);s.content.comment=n,l.css&&function(e){Us(e,"style_duplicate","A component can have a single top-level `<style>` element\nhttps://svelte.dev/e/style_duplicate")}(t),l.css=s}return}e.append(i);const d=e.eat("/")||z(r),m=e.eat(">",!0,!1);if(!m){const t=i.attributes.at(-1);if("Attribute"===t?.type&&"<"===t.name)e.index=t.start,i.attributes.pop();else{const t=e.template[e.index-1],n=e.template[e.index-2],s=e.template[e.index];"{"===n&&"/"===t?e.index-=2:"{"!==t||"#"!==s&&"@"!==s&&":"!==s?e.allow_whitespace():e.index-=1}}if(d||!m)i.end=e.index;else if("textarea"===r)i.fragment.nodes=_l(e,(()=>ol.test(e.template.slice(e.index))),"inside <textarea>"),e.read(ol),i.end=e.index;else if("script"===r||"style"===r){const t=e.index,n=e.read_until(new RegExp(`</${r}>`)),s={start:t,end:e.index,type:"Text",data:n,raw:n};i.fragment.nodes.push(s),e.eat(`</${r}>`,!0),i.end=e.index}else e.stack.push(i),e.fragments.push(i.fragment)}function gl(e){const t=e.index,n=e.read_until(pl);if(!n)return null;let s=!0;if(e.eat("=")){e.allow_whitespace();let t=e.match_regex(dl);t||Qr(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:zo(t,!0)}]}return e.match_regex(ul)&&Jr(e.index,"="),Jo(n,t,e.index,s)}function bl(e){const t=e.index;if(e.eat("{")){if(e.allow_whitespace(),e.eat("@attach")){e.require_whitespace();const n=Va(e);e.allow_whitespace(),e.eat("}",!0);return{type:"AttachTag",start:t,end:e.index,expression:n,metadata:{expression:Zo()}}}if(e.eat("...")){const n=Va(e);e.allow_whitespace(),e.eat("}",!0);return{type:"SpreadAttribute",start:t,end:e.index,expression:n,metadata:{expression:Zo()}}}{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="":Us(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:Zo()}};return Jo(s,t,e.index,r)}}const n=e.read_until(pl);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=_l(e,(()=>t?e.match(t):!!e.match_regex(il)),"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,Jr(s,t||"}"))}throw n}0!==n.length||t||Qr(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(ul)&&Jr(e.index,"=");if(a){const[e,...o]=n.slice(r+1).split("|");if(""===e&&function(e,t){Us(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:Zo()}};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){Us(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:Zo()}};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 Jo(n,t,s,i)}function _l(e,t,n){let s={start:e.index,end:-1,type:"Text",raw:"",data:""};const r=[];function a(e){s.raw&&(s.data=zo(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("#");jr(t,e.read_until(/[^a-z]/),n)}else if(e.match("@")){const t=e.index-1;e.eat("@");Pa(t,e.read_until(/[^a-z]/),n)}a(e.index-1),e.allow_whitespace();const t=Va(e);e.allow_whitespace(),e.eat("}",!0);const o={type:"ExpressionTag",start:i,end:e.index,expression:t,metadata:{expression:Zo()}};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;Ia(e.template.length)}function xl(e){const t=e.index;let n=e.index;const s=e.read_identifier();if(null!==s){const n=wl(e);return{type:"Identifier",name:s,start:t,loc:{start:we(t),end:we(e.index)},end:e.index,typeAnnotation:n}}const r=e.template[n];"{"!==r&&"["!==r&&Us(n,"expected_pattern","Expected identifier or destructure pattern\nhttps://svelte.dev/e/expected_pattern"),n=ja(e,t),e.index=n;const a=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 r=Fs(`${n}(${a} = 1)`,e.root.comments,e.ts,t-1).left;return r.typeAnnotation=wl(e),r.typeAnnotation&&(r.end=r.typeAnnotation.end),r}catch(t){e.acorn_error(t)}}function wl(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=Fs(r,e.root.comments,e.ts,s);if("AssignmentExpression"===a.type){let t=a.right.start;for(;"="!==r[t];)t-=1;a=Fs(r.slice(0,t),e.root.comments,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 Cl=/^\s*}/,kl={"<":">"};function Sl(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:Va(e),consequent:Go(),alternate:null,metadata:{expression:Zo()}});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=Va(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=Fa(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=xl(e)):e.index=r.end,e.allow_whitespace(),e.eat(",")&&(e.allow_whitespace(),i=e.read_identifier(),i||Yr(e.index),e.allow_whitespace()),e.eat("(")&&(e.allow_whitespace(),o=Va(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=xl(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:Go(),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=Va(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,metadata:{expression:Zo()}});e.eat("then")?(e.match_regex(Cl)||(e.require_whitespace(),s.value=xl(e)),e.allow_whitespace(),s.then=Go(),e.fragments.push(s.then)):e.eat("catch")?(e.match_regex(Cl)||(e.require_whitespace(),s.error=xl(e)),e.allow_whitespace(),s.catch=Go(),e.fragments.push(s.catch)):(s.pending=Go(),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=xl(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=xl(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=Va(e);e.allow_whitespace(),e.eat("}",!0);const s=e.append({type:"KeyBlock",start:n,end:-1,expression:t,fragment:Go(),metadata:{expression:Zo()}});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="":Yr(e.index)),e.allow_whitespace();const a=e.index;let i;if(e.ts&&e.match("<")){const t=e.index,n=ja(e,t,kl);i=e.template.slice(t+1,n-1),e.index=n}e.allow_whitespace();const o=e.eat("(",!0,!1);if(o){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 l=e.template.slice(0,a).replace(/\S/g," "),c=e.template.slice(a,e.index);let p=o?Fs(l+`${c} => {}`,e.root.comments,e.ts,a):{params:[]};e.allow_whitespace(),e.eat("}",!0);const u=e.append({type:"SnippetBlock",start:n,end:-1,expression:{type:"Identifier",start:t,end:r,name:s},typeParams:i,parameters:p.params,body:Go(),metadata:{can_hoist:!1,sites:new Set}});return e.stack.push(u),void e.fragments.push(u.body)}s=e.index,Us(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")||Jr(t,"{:else} or {:else if}"),e.eat("if")&&Us(t,"block_invalid_elseif","'elseif' should be 'else if'\nhttps://svelte.dev/e/block_invalid_elseif"),e.allow_whitespace(),e.fragments.pop(),n.alternate=Go(),e.fragments.push(n.alternate),e.eat("if")){e.require_whitespace();const n=Va(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:Go(),alternate:null,metadata:{expression:Zo()}});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")||Jr(t,"{:else}"),e.allow_whitespace(),e.eat("}",!0),n.fallback=Go(),e.fragments.pop(),void e.fragments.push(n.fallback);if("AwaitBlock"===n.type){if(e.eat("then"))return n.then&&Dr(t,"{:then}"),e.eat("}")||(e.require_whitespace(),n.value=xl(e),e.allow_whitespace(),e.eat("}",!0)),n.then=Go(),e.fragments.pop(),void e.fragments.push(n.then);if(e.eat("catch"))return n.catch&&Dr(t,"{:catch}"),e.eat("}")||(e.require_whitespace(),n.error=xl(e),e.allow_whitespace(),e.eat("}",!0)),n.catch=Go(),e.fragments.pop(),void e.fragments.push(n.catch);Jr(t,"{:then ...} or {:catch ...}")}!function(e){Us(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=Va(e);return e.allow_whitespace(),e.eat("}",!0),void e.append({type:"HtmlTag",start:t,end:e.index,expression:n,metadata:{expression:Zo()}})}if(e.eat("debug")){let n;if(e.read(Cl))n=[];else{const t=Va(e);n="SequenceExpression"===t.type?t.expressions:[t],n.forEach((e=>{"Identifier"!==e.type&&function(e){Us(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=xl(e);e.allow_whitespace(),e.eat("=",!0),e.allow_whitespace();const s=e.index,r=Va(e);"SequenceExpression"!==r.type||e.template.substring(s,r.start).includes("(")||Us(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},metadata:{expression:Zo()}})}if(e.eat("render")){e.require_whitespace();const n=Va(e);"CallExpression"===n.type||"ChainExpression"===n.type&&"CallExpression"===n.expression.type||function(e){Us(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:{expression:Zo(),dynamic:!1,arguments:[],path:[],snippets:new Set}})}}(e);if(e.match("/")&&!e.match("/*")&&!e.match("//"))return e.eat("/"),Pl(e);const s=Va(e);e.allow_whitespace(),e.eat("}",!0),e.append({type:"ExpressionTag",start:n,end:e.index,expression:s,metadata:{expression:Zo()}})}function Pl(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 Pl(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:Fr(t);break;default:Fr(t)}if(!n)return s.end=t-1,e.pop(),void Pl(e);e.allow_whitespace(),e.eat("}",!0),s.end=e.index,e.pop()}function El(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:zo(n,!1)})}function Tl(e){return e.match("<")?vl:e.match("{")?Sl:El}function Al(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 $l(e){const t=Al(e);return"boolean"!=typeof t&&_a(e,"true or false"),t}const Rl="[a-z0-9_.·À-ÖØ-öø-ͽͿ--‿-⁀⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀--]",Il=new RegExp(`^[a-z]${Rl}*-${Rl}*$`,"u"),Ml=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function ql(e,t){"string"!=typeof t&&ka(e),t&&(Il.test(t)?Ml.includes(t)&&Us(e,"svelte_options_reserved_tagname","Tag name is reserved\nhttps://svelte.dev/e/svelte_options_reserved_tagname"):ka(e))}function Ll(e){const{nodes:t}=e.fragment;if(t.length>0){const n=t[0],s=t[t.length-1];!function(e,t){Us(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 Ol=/ \(\d+:\d+\)$/,Nl=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g;class Dl{template;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=e.trimEnd();do{n=Nl.exec(e)}while(n&&"s"!==n[0][1]);Nl.lastIndex=0,this.ts="ts"===n?.[2],this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:Go(),options:null,comments:[],metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let r=Tl;for(;this.index<this.template.length;)r=r(this)||Tl;if(this.stack.length>1){const e=this.current();this.loose?e.end=this.template.length:"RegularElement"===e.type?(e.end=e.start+1,Wr(e,e.name)):(e.end=e.start+1,Us(e,"block_unclosed","Block was left open\nhttps://svelte.dev/e/block_unclosed"))}if(r!==Tl&&Ia(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&&ba(n);const{name:e}=n;switch(e){case"runes":t.runes=$l(n);break;case"tag":ga(n);break;case"customElement":{const e={},{value:s}=n,r=!0===s||Array.isArray(s)?s:[s];if(!0===r)xa(n);else{if("Text"===r[0].type){const s=Al(n);ql(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;xa(n)}}const a=[];for(const e of r[0].expression.properties)("Property"!==e.type||e.computed||"Identifier"!==e.key.type)&&xa(n),a.push([e.key.name,e.value]);const i=a.find((([e])=>"tag"===e));if(i){const t=i[1]?.value;ql(i,t),e.tag=t}const o=a.find((([e])=>"props"===e))?.[1];if(o){"ObjectExpression"!==o.type&&wa(n),e.props={};for(const t of o.properties){("Property"!==t.type||t.computed||"Identifier"!==t.key.type||"ObjectExpression"!==t.value.type)&&wa(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)&&wa(n),"type"===s.key.name?(-1===["String","Number","Boolean","Array","Object"].indexOf(s.value.value)&&wa(n),e.props[t.key.name].type=s.value.value):"reflect"===s.key.name?("boolean"!=typeof s.value.value&&wa(n),e.props[t.key.name].reflect=s.value.value):"attribute"===s.key.name?("string"!=typeof s.value.value&&wa(n),e.props[t.key.name].attribute=s.value.value):wa(n)}}const l=a.find((([e])=>"shadow"===e))?.[1];if(l){const t=l?.value;"open"!==t&&"none"!==t&&Ca(l),e.shadow=t}const c=a.find((([e])=>"extend"===e))?.[1];c&&(e.extend=c),t.customElement=e;break}case"namespace":{const e=Al(n);e===I?t.namespace="svg":e===M?t.namespace="mathml":"html"===e||"mathml"===e||"svg"===e?t.namespace=e:_a(n,'"html", "mathml" or "svg"');break}case"css":{const e=Al(n);"injected"===e?t.css=e:_a(n,'"injected"');break}case"immutable":t.immutable=$l(n);break;case"preserveWhitespace":t.preserveWhitespace=$l(n);break;case"accessors":t.accessors=$l(n);break;default:Sa(n,e)}}return t}(e),Ll(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(Ol,""),Us(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||Jr(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(!Mt(s,!0))return null;for(n+=s<=65535?1:2;n<this.template.length;){const e=this.template.codePointAt(n);if(!qt(e,!0))break;n+=e<=65535?1:2}const r=this.template.slice(this.index,this.index=n);return!e&&G(r)&&Us(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"";Ia(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])||Us(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 jl(e,t=!1){Ce(e);return new Dl(e,t).root}function Bl(e,t){return"Identifier"===e.params[0]?.type&&"this"===e.params[0].name&&e.params.shift(),t.next()}const Fl={_(e,t){const n=t.next()??e;delete n.typeAnnotation,delete n.typeParameters,delete n.typeArguments,delete n.returnType,delete n.accessibility},Decorator(e){fr(e,"decorators (related TSC proposal is not stage 4 yet)")},ImportDeclaration(e){if("type"===e.importKind)return ai;if(e.specifiers?.length>0){const t=e.specifiers.filter((e=>"type"!==e.importKind));return 0===t.length?ai:{...e,specifiers:t}}return e},ExportNamedDeclaration(e,t){if("type"===e.exportKind)return ai;if(e.declaration){const e=t.next();return"EmptyStatement"===e?.declaration?.type?ai:e}if(e.specifiers){const t=e.specifiers.filter((e=>"type"!==e.exportKind));return 0===t.length?ai:{...e,specifiers:t}}return e},ExportDefaultDeclaration:e=>"type"===e.exportKind?ai:e,ExportAllDeclaration:e=>"type"===e.exportKind?ai:e,PropertyDefinition:(e,{next:t})=>(e.accessor&&fr(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:()=>ai,TSTypeAliasDeclaration:()=>ai,TSTypeAssertion:(e,t)=>t.visit(e.expression),TSEnumDeclaration(e){fr(e,"enums")},TSParameterProperty:(e,t)=>((e.readonly||e.accessibility)&&"constructor"===t.path.at(-2)?.kind&&fr(e,"accessibility modifiers on constructor parameters"),t.visit(e.parameter)),TSInstantiationExpression:(e,t)=>t.visit(e.expression),FunctionExpression:Bl,FunctionDeclaration:Bl,TSDeclareFunction:()=>ai,ClassBody(e,t){const n=[];for(const s of e.body){const e=t.visit(s);"PropertyDefinition"===e.type&&e.declare||n.push(e)}return{...e,body:n}},ClassDeclaration:(e,t)=>e.declare?ai:(delete e.implements,t.next()),MethodDefinition:(e,t)=>e.abstract?ai:t.next(),VariableDeclaration:(e,t)=>e.declare?ai:t.next(),TSModuleDeclaration(e,t){if(!e.body)return ai;return e.body.body.map((e=>t.visit(e))).some((e=>e!==ai))&&fr(e,"namespaces with non-type nodes"),ai}};function Vl(e){return t(e,null,Fl)}function Hl(e,t){if("MemberExpression"===e.type)return!e.computed&&Hl(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 Ul(e){if(!Xo(e))return null;for(const t of e.attributes)if("Attribute"===t.type&&"slot"===t.name&&Gi(t))return t.value[0].data;return null}function zl(e,t,n){if(Wl(e,t,n.state.scope,"BindDirective"===e.type),"Identifier"===t.type){const s=n.state.scope.get(t.name);n.state.analysis.runes&&(s?.node===n.state.analysis.props_id&&Ws(e,"$props.id()"),"each"===s?.kind&&function(e){Us(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){Us(e,"snippet_parameter_assignment","Cannot reassign or bind to snippet parameter\nhttps://svelte.dev/e/snippet_parameter_assignment")}(e)}if("MemberExpression"===t.type&&"ThisExpression"===t.object.type){const s=t.computed&&"Literal"!==t.property.type?null:el(t.property),r=null!==s&&n.state.state_fields?.get(s);if(r&&"AssignmentExpression"===r.node.type&&e!==r.node){let t=n.path.length;for(;t--;){const s=n.path[t];if("FunctionDeclaration"===s.type||"FunctionExpression"===s.type||"ArrowFunctionExpression"===s.type){const s=ro(n.path,t-1);"MethodDefinition"===s.type&&"constructor"===s.kind&&e.start<r.node.start&&ur(e);break}}}}}function Wl(e,t,n,s){if("ArrayPattern"===t.type)for(const r of t.elements)r&&Wl(e,r,n,s);else if("ObjectPattern"===t.type)for(const r of t.properties)"Property"===r.type&&Wl(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){Us(e,"constant_binding",`Cannot bind to ${t}\nhttps://svelte.dev/e/constant_binding`)}(e,t):Ws(e,t)}}}function Gl(e,t,n){t.analysis.source[e.start+1]!==n&&Br({start:e.start,end:e.start+5},n)}function Kl(e,t){e&&(1!==e.nodes.length||"Text"!==e.nodes[0].type||e.nodes[0].raw.trim()||function(e){qe(e,"block_empty","Empty block\nhttps://svelte.dev/e/block_empty")}(e.nodes[0]))}function Xl(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?Xl({name:n.name.slice(1),type:"Identifier"},t):"import"!==s.declaration_kind&&"prop"!==s.kind&&"bindable_prop"!==s.kind&&"rest_prop"!==s.kind)}function Ql(e,t){if("Literal"===e.type)return!0;if("CallExpression"===e.type){if(!Ql(e.callee,t))return!1;for(let n of e.arguments)if(!Ql("SpreadElement"===n.type?n.argument:n,t))return!1;return!0}if("Identifier"!==e.type&&"MemberExpression"!==e.type)return!1;if("$effect.tracking"===fc(Ja(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(Ql(n,t))return!0;return!1}function Yl(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){Us(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){Us(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 Jl(e,t,n){const s=t.get(n);s&&("derived"===s.kind&&Ks(e),"state"!==s.kind&&"raw_state"!==s.kind||!s.reassigned||dr(e))}const Zl=Symbol("unknown"),ec=Symbol("number"),tc=Symbol("string"),nc=Symbol("string"),sc={BigInt:[ec],"Math.min":[ec,Math.min],"Math.max":[ec,Math.max],"Math.random":[ec],"Math.floor":[ec,Math.floor],"Math.f16round":[ec,Math.f16round],"Math.round":[ec,Math.round],"Math.abs":[ec,Math.abs],"Math.acos":[ec,Math.acos],"Math.asin":[ec,Math.asin],"Math.atan":[ec,Math.atan],"Math.atan2":[ec,Math.atan2],"Math.ceil":[ec,Math.ceil],"Math.cos":[ec,Math.cos],"Math.sin":[ec,Math.sin],"Math.tan":[ec,Math.tan],"Math.exp":[ec,Math.exp],"Math.log":[ec,Math.log],"Math.pow":[ec,Math.pow],"Math.sqrt":[ec,Math.sqrt],"Math.clz32":[ec,Math.clz32],"Math.imul":[ec,Math.imul],"Math.sign":[ec,Math.sign],"Math.log10":[ec,Math.log10],"Math.log2":[ec,Math.log2],"Math.log1p":[ec,Math.log1p],"Math.expm1":[ec,Math.expm1],"Math.cosh":[ec,Math.cosh],"Math.sinh":[ec,Math.sinh],"Math.tanh":[ec,Math.tanh],"Math.acosh":[ec,Math.acosh],"Math.asinh":[ec,Math.asinh],"Math.atanh":[ec,Math.atanh],"Math.trunc":[ec,Math.trunc],"Math.fround":[ec,Math.fround],"Math.cbrt":[ec,Math.cbrt],Number:[ec,Number],"Number.isInteger":[ec,Number.isInteger],"Number.isFinite":[ec,Number.isFinite],"Number.isNaN":[ec,Number.isNaN],"Number.isSafeInteger":[ec,Number.isSafeInteger],"Number.parseFloat":[ec,Number.parseFloat],"Number.parseInt":[ec,Number.parseInt],String:[tc,String],"String.fromCharCode":[tc,String.fromCharCode],"String.fromCodePoint":[tc,String.fromCodePoint]},rc={"Math.PI":Math.PI,"Math.E":Math.E,"Math.LN10":Math.LN10,"Math.LN2":Math.LN2,"Math.LOG10E":Math.LOG10E,"Math.LOG2E":Math.LOG2E,"Math.SQRT2":Math.SQRT2,"Math.SQRT1_2":Math.SQRT1_2};class ac{scope;node;kind;declaration_kind;initial=null;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 ic{values;is_known=!0;has_unknown=!1;is_defined=!0;is_string=!0;is_number=!0;is_function=!0;value=void 0;constructor(e,t,n){switch(lc.set(t,this),this.values=n,t.type){case"Literal":this.values.add(t.value);break;case"Identifier":{const n=e.get(t.name);if(n){if("CallExpression"===n.initial?.type&&"$props.id"===fc(n.initial,e)){this.values.add(tc);break}const s="prop"===n.kind||"rest_prop"===n.kind||"bindable_prop"===n.kind;if("EachBlock"===n.initial?.type&&n.initial.index===t.name){this.values.add(ec);break}if(!n.updated&&null!==n.initial&&!s){n.scope.evaluate(n.initial,this.values);break}}else if("undefined"===t.name){this.values.add(void 0);break}this.values.add(Zl);break}case"BinaryExpression":{const n=e.evaluate(t.left),s=e.evaluate(t.right);if(n.is_known&&s.is_known){this.values.add(cc[t.operator](n.value,s.value));break}switch(t.operator){case"!=":case"!==":case"<":case"<=":case">":case">=":case"==":case"===":case"in":case"instanceof":this.values.add(!0),this.values.add(!1);break;case"%":case"&":case"*":case"**":case"-":case"/":case"<<":case">>":case">>>":case"^":case"|":this.values.add(ec);break;case"+":n.is_string||s.is_string?this.values.add(tc):(n.is_number&&s.is_number||this.values.add(tc),this.values.add(ec));break;default:this.values.add(Zl)}break}case"ConditionalExpression":{const n=e.evaluate(t.test),s=e.evaluate(t.consequent),r=e.evaluate(t.alternate);if(n.is_known)for(const e of(n.value?s:r).values)this.values.add(e);else{for(const e of s.values)this.values.add(e);for(const e of r.values)this.values.add(e)}break}case"LogicalExpression":{const n=e.evaluate(t.left),s=e.evaluate(t.right);if(n.is_known){if(s.is_known){this.values.add(uc[t.operator](n.value,s.value));break}if("&&"===t.operator&&!n.value||"||"===t.operator&&n.value||"??"===t.operator&&null!=n.value)this.values.add(n.value);else for(const e of s.values)this.values.add(e);break}for(const e of n.values)this.values.add(e);for(const e of s.values)this.values.add(e);break}case"UnaryExpression":{const n=e.evaluate(t.argument);if(n.is_known){this.values.add(pc[t.operator](n.value));break}switch(t.operator){case"!":case"delete":this.values.add(!1),this.values.add(!0);break;case"+":case"-":case"~":this.values.add(ec);break;case"typeof":this.values.add(tc);break;case"void":this.values.add(void 0);break;default:this.values.add(Zl)}break}case"CallExpression":{const n=yc(t.callee,e);if(n){if(me(n)){const s=t.arguments[0];switch(n){case"$state":case"$state.raw":case"$derived":s?e.evaluate(s,this.values):this.values.add(void 0);break;case"$props.id":this.values.add(tc);break;case"$effect.tracking":this.values.add(!1),this.values.add(!0);break;case"$derived.by":if("ArrowFunctionExpression"===s?.type&&"BlockStatement"!==s.body.type){e.evaluate(s.body,this.values);break}this.values.add(Zl);break;default:this.values.add(Zl)}break}if(Object.hasOwn(sc,n)&&t.arguments.every((e=>"SpreadElement"!==e.type))){const[s,r]=sc[n],a=t.arguments.map((t=>e.evaluate(t)));r&&a.every((e=>e.is_known))?this.values.add(r(...a.map((e=>e.value)))):this.values.add(s);break}}this.values.add(Zl);break}case"TemplateLiteral":{let n=t.quasis[0].value.cooked;for(let s=0;s<t.expressions.length;s+=1){const r=e.evaluate(t.expressions[s]);if(!r.is_known){this.values.add(tc);break}n+=r.value+t.quasis[s+1].value.cooked}this.values.add(n);break}case"MemberExpression":{const n=yc(t,e);if(n&&Object.hasOwn(rc,n)){this.values.add(rc[n]);break}this.values.add(Zl);break}case"ArrowFunctionExpression":case"FunctionExpression":case"FunctionDeclaration":this.values.add(nc);break;default:this.values.add(Zl)}for(const e of this.values)this.value=e,e!==tc&&"string"!=typeof e&&(this.is_string=!1),e!==ec&&"number"!=typeof e&&(this.is_number=!1),e!==nc&&(this.is_function=!1),null!=e&&e!==Zl||(this.is_defined=!1),e===Zl&&(this.has_unknown=!0);(this.values.size>1||"symbol"==typeof this.value)&&(this.is_known=!1),lc.delete(t)}}class oc{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){Us(e,"declaration_duplicate",`\`${t}\` has already been declared\nhttps://svelte.dev/e/declaration_duplicate`)}(e,e.name)}const r=new ac(this,e,t,n,s);return Yl(r,this.function_depth),this.declarations.set(e.name,r),this.root.conflicts.add(e.name),r}child(e=!1){return new oc(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)||G(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)}evaluate(e,t=new Set){const n=lc.get(e);return n||new ic(this,e,t)}}const lc=new Map,cc={"!=":(e,t)=>e!=t,"!==":(e,t)=>e!==t,"<":(e,t)=>e<t,"<=":(e,t)=>e<=t,">":(e,t)=>e>t,">=":(e,t)=>e>=t,"==":(e,t)=>e==t,"===":(e,t)=>e===t,in:(e,t)=>e in t,instanceof:(e,t)=>e instanceof t,"%":(e,t)=>e%t,"&":(e,t)=>e&t,"*":(e,t)=>e*t,"**":(e,t)=>e**t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"/":(e,t)=>e/t,"<<":(e,t)=>e<<t,">>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t,"^":(e,t)=>e^t,"|":(e,t)=>e|t},pc={"-":e=>-e,"+":e=>+e,"!":e=>!e,"~":e=>~e,typeof:e=>typeof e,void:()=>{},delete:()=>!0},uc={"||":(e,t)=>e||t,"&&":(e,t)=>e&&t,"??":(e,t)=>e??t};class dc{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 ci(t)}}function hc(e,n,s,r){const a=new Map,i=new oc(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 Zi(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=Ul(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=Ul(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(ci(e.name.split(".")[0]),n),e.expression&&s(e.expression)};let y=!1;t(e,o,{AwaitExpression(e,t){y||=t.path.every((({type:e})=>"ArrowFunctionExpression"!==e&&"FunctionExpression"!==e&&"FunctionDeclaration"!==e)),t.next()},Identifier(e,{path:t,state:n}){const s=t.at(-1);s&&Hl(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 Zi(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 to(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(ci(e.name.split(".")[0]),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 Zi(n.id)){const i=t.scope.declare(a,r?"template":"normal",e.kind,n.init);i.metadata={is_template_declaration:!0},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 Zi(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 Zi(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(ci(e.index),t?"template":"static","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:Zo(),keyed:!1,contains_group_binding:!1,index:r.root.unique("$$index"),declarations:r.declarations,is_controlled:!1,transitive_deps:new Set}},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 Zi(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 Zi(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 Zi(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(ci(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 Ji(t)){const t=Wi(n),s=t&&e.get(t.name);null!==s&&t!==s.node&&(t===n?s.reassigned=!0:s.mutated=!0)}return{has_await:y,scope:i,scopes:a}}function mc(e,{next:t,state:n}){const s=n.scopes.get(e);t(void 0!==s&&s!==n.scope?{...n,scope:s}:n)}function fc(e,t){if(!e)return null;if("CallExpression"!==e.type)return null;const n=yc(e.callee,t);return n&&me(n)?n:null}function yc(e,t){let n=e,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;return null!==t.get(n.name)?null:n.name+s}function vc(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 gc=/^-((webkit)|(moz)|(o)|(ms))-/,bc=/^[\s,;}]$/;function _c(e){return e.replace(gc,"")}const xc=e=>"keyframes"===_c(e.name),wc={};function Cc(e,t,n,s=!1){if(!n.has(wc))if("Literal"===e.type)n.add(String(e.value));else if("ConditionalExpression"===e.type)Cc(e.consequent,t,n,s),Cc(e.alternate,t,n,s);else if("LogicalExpression"===e.type)if("&&"===e.operator){const r=new Set;if(Cc(e.left,t,r,s),r.has(wc))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);Cc(e.right,t,n,s)}else Cc(e.left,t,n,s),Cc(e.right,t,n,s);else if(t&&"ArrayExpression"===e.type)for(const s of e.elements)s&&Cc(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(wc):n.add("Identifier"===t.key.type?t.key.name:String(t.key.value));else n.add(wc)}function kc(e,t){const n=new Set;return"Text"===e.type?n.add(e.data):Cc(e.expression,t,n),n.has(wc)?null:[...n].map((e=>String(e)))}function Sc(e){const t=e.selectors[0];return"PseudoClassSelector"===t.type&&"global"===t.name&&(null===t.args||e.selectors.every((e=>Pc(e)||"PseudoElementSelector"===e.type)))}function Pc(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=>Sc(e))))))}function Ec(e){return"PseudoClassSelector"===e.type&&"global"===e.name&&null===e.args}function Tc(e){return e.filter((e=>"Rule"===e.type)).every((e=>e.metadata.has_global_selectors))}const Ac={Atrule(e,t){xc(e)&&(e.prelude.startsWith("-global-")||t.path.some((e=>"Rule"===e.type&&e.metadata.is_global_block))?e.prelude.startsWith("-global-")&&(t.state.analysis.css.has_global||=Tc(t.path)):t.state.keyframes.push(e.prelude)),t.next()},ComplexSelector(e,t){t.next();{const n=e.children.find(Sc);if(n){"PseudoClassSelector"===t.path.at(-2)?.type&&!n.selectors[0].args&&function(e){Us(e,"css_global_block_invalid_placement","A `:global` selector cannot be inside a pseudoclass\nhttps://svelte.dev/e/css_global_block_invalid_placement")}(n.selectors[0]);const s=e.children.indexOf(n);if(null!==n.selectors[0].args&&0!==s&&s!==e.children.length-1)for(let t=s+1;t<e.children.length;t++)Sc(e.children[t])||wr(n.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&&kr(s),"TypeSelector"===t.selectors[n+1]?.type&&Pr(t.selectors[n+1]),null!==s.args&&s.args.children.length>1&&(e.children.length>1||t.selectors.length>1)&&Cr(s)}}if(e.metadata.rule=t.state.rule,e.metadata.is_global=e.children.every((({metadata:e})=>e.is_global||e.is_global_like)),e.metadata.used||=e.metadata.is_global,e.metadata.rule?.metadata.parent_rule&&"NestingSelector"===e.children[0]?.selectors[0]?.type){const t=e.children[0]?.selectors[1],n="PseudoClassSelector"!==t?.type||Pc(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||Sr(e.combinator),e.metadata.is_global=e.selectors.length>=1&&Sc(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){e.metadata.parent_rule=n.state.rule;for(const n of e.prelude.children){let s=!1;for(let r=0;r<n.children.length;r++){const a=n.children[r],i=a.selectors.findIndex(Ec);if(s&&(a.metadata.is_global_like=!0),0===i)if(a.selectors.length>1&&0===r&&null===e.metadata.parent_rule)xr(a.selectors[1]);else{e.metadata.is_global_block=s=!0;for(let e=1;e<a.selectors.length;e++)t(a.selectors[e],null,{ComplexSelector(e){e.metadata.used=!0}});a.combinator&&" "!==a.combinator.name&&vr(a,a.combinator.name);const r=e.block.children.find((e=>"Declaration"===e.type)),i=1===n.children.length&&1===n.children[0].selectors.length;i&&e.prelude.children.length>1&&br(e.prelude),r&&1===e.prelude.children.length&&i&&gr(r)}else-1!==i&&_r(a.selectors[i])}e.metadata.is_global_block&&!s&&br(e.prelude)}const s={...n.state,rule:e};n.visit(e.prelude,s);for(const t of e.prelude.children)e.metadata.has_global_selectors||=t.metadata.is_global,e.metadata.has_local_selectors||=!t.metadata.is_global;n.state.analysis.css.has_global||=e.metadata.has_global_selectors&&e.block.children.filter((e=>"Declaration"===e.type)).length>0&&Tc(n.path),n.visit(e.block,s)},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&&xr(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){Us(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 $c=0,Rc=1,Ic=0,Mc=1,qc=new Map([["details",["open"]],["dialog",["open"]]]),Lc={type:"Combinator",name:" ",start:-1,end:-1},Oc={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}},Nc={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}},Dc=new Set;function jc(e,n){t(e,null,{Rule(e,t){e.metadata.is_global_block?t.visit(e.prelude):t.next()},ComplexSelector(e){const t=Bc(e);Dc.clear(),Vc(t,e.metadata.rule,n,Mc)&&(e.metadata.used=!0)}})}function Bc(e){const n=Fc(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:Lc}),n.unshift(Oc))}return n}function Fc(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 Vc(e,n,s,r){const a=e.slice(),i=r===Ic?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=>Hc(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]=Fc(e);if(!r){e.metadata.used=!0,a=!0;continue}if(t){Vc([r.combinator?{...r,combinator:null}:r,...i],n,s,Ic)&&(e.metadata.used=!0,a=!0)}Vc([Nc,r.combinator?r:{...r,combinator:Lc},...i],n,s,Ic)&&(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(Uc,"$1");switch(a.type){case"PseudoClassSelector":if("host"===i||"root"===i)return!1;if("global"===i&&null!==a.args&&1===e.selectors.length){return Vc(a.args.children[0].children,n,s,Mc)}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=Fc(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=Xc(e)}}break}if(("is"===i||"where"===i)&&a.args){let e=!1;for(const t of a.args.children){const r=Fc(t);if(0===r.length)t.metadata.used=!0,e=!0;else if(Vc(r,n,s,Mc))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=qc.get(s.name.toLowerCase());if(!e?.includes(a.name.toLowerCase())&&!Wc(s,a.name,a.value&&Gc(a.value),a.matcher,a.flags?.includes("i")??!1))return!1;break}case"ClassSelector":if(!Wc(s,"class",i,"~=",!1))return!1;break;case"IdSelector":if(!Wc(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)(Vc(Bc(n),t,s,r)||n.children.every((e=>Hc(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==Ic?n[0]?.combinator:e.combinator;if(!i)return!0;switch(i.name){case" ":case">":{const e=">"===i.name,o=a===Ic?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):Kc(r,e);let l=!1;for(const e of o)Vc(n,s,e,a)&&(l=!0);return l||a===Mc&&(!e||0===o.length)&&n.every((e=>Hc(e,s)))}case"+":case"~":{const e=Qc(r,a,"+"===i.name);let t=!1;for(const r of e.keys())"RenderTag"===r.type||"SlotElement"===r.type||"Component"===r.type?1===n.length&&n[0].metadata.is_global&&(t=!0):Vc(n,s,r,a)&&(t=!0);return t||a===Mc&&null===Xc(r)&&n.every((e=>Hc(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 Hc(e,t){if(e.metadata.is_global||e.metadata.is_global_like)return!0;let n=!1;for(const s of e.selectors){let e=null,r=!1,a=t;"PseudoClassSelector"===s.type&&("is"!==s.name&&"where"!==s.name||!s.args?r=Pc(s):e=s.args),"NestingSelector"===s.type&&(a=t.metadata.parent_rule,e=a.prelude);const i=!!e?.children.some((e=>e.children.every((e=>Hc(e,a)))));if(n||=i,!i&&!r)return!1}return n||0===e.selectors.length}const Uc=/\\(.)/g;function zc(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 Wc(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;const e=t.toLowerCase();if("StyleDirective"===a.type&&"style"===e)return!0;if("ClassDirective"===a.type&&"class"===e){if("~="!==s)return!0;if(a.name===n)return!0}if("Attribute"!==a.type)continue;if(a.name.toLowerCase()!==e)continue;if(!0===a.value)return null===s;if(null===n)return!0;if(Gi(a)){const t=zc(s,n,r,a.value[0].data);if(!t&&("class"===e||"style"===e))continue;return t}const o=Qi(a.value),c=new Set;let p=[];for(const t of o){const n=kc(t,"class"===e);if(!n)return!0;if(p.length>0){const e=[],t=[];if(n.forEach((n=>{i.test(n)?e.push(n):t.push(n)})),t.length>0){e.length>0&&p.forEach((e=>c.add(e)));const n=[];p.forEach((e=>{t.forEach((t=>{n.push(e+t)}))})),p=n,e.forEach((e=>{l.test(e)?c.add(e):p.push(e)}));continue}p.forEach((e=>c.add(e))),p=[]}if(n.forEach((e=>{l.test(e)?c.add(e):p.push(e)})),p.length<n.length&&p.push(" "),p.length>20)return!0}p.forEach((e=>c.add(e)));for(const e of c)if(zc(s,n,r,e))return!0}return!1}function Gc(e){return e[0]===e[e.length-1]&&"'"===e[0]||'"'===e[0]?e.slice(1,e.length-1):e}function Kc(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(...Kc(r,t,n))}break}if(("RegularElement"===e.type||"SvelteElement"===e.type)&&(s.push(e),t))break}return s}function Xc(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 Qc(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===Ic?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,Rc),n))return r}else if(tp(s)||"Component"===s.type){"SlotElement"!==s.type&&"Component"!==s.type||r.set(s,$c);const e=Yc(s,t,n);if(Zc(e,r),n&&"Component"!==s.type&&Jc(e))return r}else if("SvelteElement"===s.type)r.set(s,$c);else if("RenderTag"===s.type){r.set(s,$c);for(const e of s.metadata.snippets)Zc(Yc(e,t,n),r)}l=t===Ic?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=Qc(e,t,n,s);if(Zc(a,r),n&&1===i.metadata.sites.size&&Jc(a))return r}}if(!tp(i))break;"EachBlock"===i.type&&e===i.body&&Zc(Yc(i,t,n),r)}}return r}function Yc(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);break;case"Component":r.push(e.fragment,...[...e.metadata.snippets].map((e=>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=ep(e.nodes,t,n,s);i&&=Jc(r),Zc(r,a)}if(!i)for(const e of a.keys())a.set(e,$c);return a}function Jc(e){if(0===e.size)return!1;for(const t of e.values())if(t===Rc)return!0;return!1}function Zc(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 ep(e,t,n,s){const r=new Map;let a=t===Ic?0:e.length-1;for(;a>=0&&a<e.length;){const i=e[a];if("RegularElement"===i.type){if(r.set(i,Rc),n)break}else if("SvelteElement"===i.type)r.set(i,$c);else if("RenderTag"===i.type)for(const e of i.metadata.snippets)Zc(Yc(e,t,n,s),r);else if(tp(i)){const e=Yc(i,t,n,s);if(Zc(e,r),n&&Jc(e))break}a=t===Ic?a+1:a-1}return r}function tp(e){return"IfBlock"===e.type||"EachBlock"===e.type||"AwaitBlock"===e.type||"KeyBlock"===e.type||"SlotElement"===e.type}const np={Atrule(e,t){xc(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){qe(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 sp(e,t){if(e.metadata={hoisted:!1,hoisted_params:[],scope:t.state.scope},t.state.expression)for(const[e]of t.state.scope.references){const n=t.state.scope.get(e);n&&n.scope.function_depth<t.state.scope.function_depth&&t.state.expression.references.add(n)}t.next({...t.state,function_depth:t.state.function_depth+1,expression:null})}function rp(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 ap={hoisted:!1};function ip(e){return K(e=e.slice(2))&&(e=e.slice(0,-7)),e}const op={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 lp(e){!e.name.includes(":")||e.name.startsWith("xmlns:")||e.name.startsWith("xlink:")||e.name.startsWith("xml:")||qe(e,"attribute_illegal_colon","Attributes should not contain ':' characters to prevent ambiguity with Svelte directives\nhttps://svelte.dev/e/attribute_illegal_colon")}function cp(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&&Yo(t))&&qe(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){Us(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 pp(e,t,n=!1){const s=e.path.at(-2);let r;if("SnippetBlock"===s?.type)return void(Gi(t)||aa(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&&Yo(t))&&(r=t)}if(r){if("Component"===r.type||"SvelteComponent"===r.type||"SvelteSelf"===r.type)if(r!==s)n||ia(t);else{Gi(t)||aa(t);const n=t.value[0].data;if(e.state.component_slots.has(n)&&function(e,t,n){Us(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)))&&oa(e)}}else n||ia(t)}function up(e){return!e||"import"===e.declaration_kind||"prop"===e.kind||"rest_prop"===e.kind||"bindable_prop"===e.kind||"SnippetBlock"===e?.initial?.type}function dp(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||!Ki(s))continue;const r=Xi(s);if("Identifier"===r.type){const s=t.state.scope.get(r.name);n&&=up(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),rp(t.path);for(const n of e.attributes)"Attribute"!==n.type&&"SpreadAttribute"!==n.type&&"LetDirective"!==n.type&&"OnDirective"!==n.type&&"BindDirective"!==n.type&&"AttachTag"!==n.type&&Vr(n),"OnDirective"===n.type&&(n.modifiers.length>1||n.modifiers.some((e=>"once"!==e)))&&Gr(n),"Attribute"===n.type&&(t.state.analysis.runes&&(cp(n,e),Ki(n)&&hp(Xi(n),t.state.analysis.source)),lp(n),"slot"===n.name&&pp(t,n,!0)),"BindDirective"===n.type&&"this"!==n.name&&(t.state.analysis.uses_component_bindings=!0),"AttachTag"===n.type&&hp(n.expression,t.state.analysis.source);const s=Ul(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=Ul(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 hp(e,t){if("SequenceExpression"===e.type){let n=e.start;for(;--n>0;){const s=t[n];if("("===s)break;"{"===s&&Mr(e)}}}function mp(e,t){if(!t.has(e)&&(t.add(e),"legacy_reactive"===e.kind))for(const n of e.legacy_dependencies)mp(n,t)}class fp{#n=[];#s=[];add(e,t){const n=ci("#");return(t?this.#s:this.#n).push({id:n,expression:e}),n}apply(){return[...this.#n,...this.#s].map(((e,t)=>(e.id.name=`$${t}`,e.id)))}deriveds(e=!0){return this.#n.map((t=>Oi(t.id,Ja(e?"$.derived":"$.derived_safe_equal",Pi(t.expression)))))}async_ids(){return this.#s.map((e=>e.id))}async_values(){if(0!==this.#s.length)return Ua(this.#s.map((e=>Pi(e.expression,!0))))}sync_values(){if(0!==this.#n.length)return Ua(this.#n.map((e=>Pi(e.expression))))}}function yp(e,t,n=t.state,s=((e,t)=>t.has_call||t.has_await?n.memoizer.add(e,t.has_await):e)){const r=[];let a=bi("");const i=[a];let o=!1,l=!1;for(let c=0;c<e.length;c++){const p=e[c];if("Text"===p.type)a.value.cooked+=p.data;else if("Literal"===p.expression.type)null!=p.expression.value&&(a.value.cooked+=p.expression.value+"");else if("Identifier"!==p.expression.type||"undefined"!==p.expression.name||n.scope.get("undefined")){let u=s(wp(t,p.expression,p.metadata.expression,n),p.metadata.expression);const d=n.scope.evaluate(u);if(l||=p.metadata.expression.has_await,o||=l||p.metadata.expression.has_state&&!d.is_known,1===e.length)return d.is_known&&(u=di((d.value??"")+"")),{value:u,has_state:o};"LogicalExpression"!==u.type||"Literal"!==u.right.type||"??"!==u.operator&&"||"!==u.operator||null===u.right.value&&(u={...u,right:di("")}),d.is_known?a.value.cooked+=(d.value??"")+"":(d.is_defined||(u=ni("??",u,di(""))),r.push(u),a=bi("",c+1===e.length),i.push(a))}}for(const e of i)e.value.raw=Ha(e.value.cooked);return{value:r.length>0?Si(i,r):di(a.value.cooked),has_state:o}}function vp(e){const{memoizer:t}=e;return ki(Ja("$.template_effect",Ga(t.apply(),1===e.update.length&&"ExpressionStatement"===e.update[0].type?e.update[0].expression:Ya(e.update)),t.sync_values(),t.async_values()))}function gp(e){const t=e.split(".");let n=t.shift(),s=ci(n);for(;n=t.shift();){const e=!m.test(n);s=hi(s,e?di(n):ci(n),e)}return s}function bp(e,n,{state:s,visit:r}){if("SequenceExpression"===e.type){const[t,s]=r(e).expressions;return Ja("$.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(!Hl(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(Ka("=",e,ci("$$value")),c);let d=p;for(;"MemberExpression"===d.type;)d.optional=!0,d=d.object;return Ja("$.bind_this",n,Ga([ci("$$value"),...a],u),Ga([...a],p),i.length>0&&Pi(Ua(i)))}function _p(e,t,n){if("SequenceExpression"===t.expression.type)return;const s=Wi(t.expression),r=s&&e.scope.get(s.name);if("store_sub"===r?.kind)return;const a=we(t.start),i=n.object;e.init.push(ki(Ja("$.validate_binding",di(e.analysis.source.slice(t.start,t.end)),Pi(e.store_to_invalidate?xi([Ja("$.mark_store_binding"),i]):i),Pi(n.computed?n.property:di(n.property.name)),a&&di(a.line),a&&di(a.column))))}function xp(e,t,n){let s="AssignmentExpression"===e.type?e.left:e.argument;if(!be||"MemberExpression"!==s.type||Ee(e,"ownership_invalid_mutation"))return n;const r=Wi(s);if(!r)return n;const a=t.state.scope.get(r.name);if("prop"!==a?.kind&&"bindable_prop"!==a?.kind)return n;t.state.analysis.needs_mutation_validation=!0;const i=[];for(;"MemberExpression"===s.type;){if("Literal"===s.property.type)i.unshift(s.property);else{if("Identifier"!==s.property.type)return n;{const e=Object.hasOwn(t.state.transform,s.property.name)?t.state.transform[s.property.name]:null;s.computed?i.unshift(e?.read?e.read(s.property):s.property):i.unshift(di(s.property.name))}}s=s.object}i.unshift(di(r.name));const o=we(s.start);return Ja("$$ownership_validator.mutation",di(a.prop_alias),Ua(i),n,o&&di(o.line),o&&di(o.column))}function wp(e,t,n,s=e.state){const r=e.visit(t,s);if(e.state.analysis.runes||e.state.analysis.maybe_runes)return r;if(!n.has_call&&!n.has_member_expression&&!n.has_assignment)return r;const a=xi([]);for(const e of n.references)if("normal"!==e.kind||"import"===e.declaration_kind){var i=Sp({...e.node},s);"bindable_prop"!==e.kind&&"template"!==e.kind&&"import"!==e.declaration_kind&&"$$props"!==e.node.name&&"$$restProps"!==e.node.name||(i=Ja("$.deep_read_state",i)),a.expressions.push(i)}return a.expressions.push(Ja("$.untrack",Pi(r))),a}function Cp(e,t,n,s){if(!be)return ki(e);const r=void 0!==t.start&&we(t.start);return ki(r?Ja("$.add_svelte_meta",Ga([],e),di(n),ci(xe),di(r.line),di(r.column),s&&fi(Object.entries(s).map((([e,t])=>ui(e,di(t)))))):e)}function kp(e,t){return("state"===e.kind||"raw_state"===e.kind)&&(!t.immutable||e.reassigned||t.accessors)}function Sp(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 Pp(e,n){const s=function(e,n){const s=n.state.scope,r=[];function a(e){r.find((t=>t.name===e.name))||r.push(e)}for(const[i]of s.references){let o=s.get(i);if(null!==o&&!s.declarations.has(i)&&o.initial!==e){"store_sub"===o.kind&&(a(ci(o.node.name)),o=s.get(o.node.name.slice(1)));let l=n.state.transform[i]?.read(ci(o.node.name));null!=l&&"function"!=typeof l&&"MemberExpression"===l.type&&"CallExpression"===l.object.type&&"Identifier"===l.object.callee.type&&"$.get"===l.object.callee.name&&"Identifier"===l.object.arguments[0].type?a(ci(l.object.arguments[0].name)):"prop"!==o.kind&&"bindable_prop"!==o.kind||Tp(o,n.state)?"import"!==o.declaration_kind&&(a(ci(o.node.name)),"rest_prop"===o.kind&&n.state.analysis.runes&&a(ci("$$props"))):a(ci("$$props"))}}if(be){function c(e,{next:t,stop:s}){xp(e,n,e)!==e?(r.push(ci("$$ownership_validator")),s()):t()}t(e,null,{AssignmentExpression:c,UpdateExpression:c})}return r}(e,n);e.metadata.hoisted_params=s;const r=[];if(0===e.params.length)s.length>0&&r.push(ci(n.state.scope.generate("_")));else for(const t of e.params)r.push(n.visit(t));return r.push(...s),r}function Ep(e,t,n,s){const r=[ci("$$props"),di(n)];let a,i=0;return"bindable_prop"===e.kind&&(i|=S),t.analysis.immutable&&(i|=w),t.analysis.runes&&(i|=C),(t.analysis.accessors||(t.analysis.immutable?e.reassigned||t.analysis.runes&&e.mutated:e.updated))&&(i|=k),s&&(ao(s)?a=s:(a="CallExpression"===s.type&&"Identifier"===s.callee.type&&0===s.arguments.length?s.callee:Pi(s),i|=P)),(i||a)&&(r.push(di(i)),a&&r.push(a)),Ja("$.prop",...r)}function Tp(e,t){return("prop"===e.kind||"bindable_prop"===e.kind)&&(!t.analysis.runes||t.analysis.accessors||e.reassigned||e.initial||e.updated)}function Ap(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 Ap(n.initial,null)}return!0}function $p(e,t,n=!1){const s=Pi(t,n);return n?Ja(Xa(Ja("$.save",Ja("$.async_derived",s)))):Ja(e.analysis.runes?"$.derived":"$.derived_safe_equal",s)}var Rp,Ip,Mp,qp={},Lp={},Op={},Np={};function Dp(){if(Ip)return Op;Ip=1,Object.defineProperty(Op,"__esModule",{value:!0}),Op.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}}((Rp||(Rp=1,Object.defineProperty(Np,"__esModule",{value:!0}),Np.default=void 0,Np.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}),Np));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 Op}function jp(){if(Mp)return Lp;Mp=1,Object.defineProperty(Lp,"__esModule",{value:!0}),Lp.default=void 0;var e=function(e){return e&&e.__esModule?e:{default:e}}(Dp());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 Lp.default=(0,e.default)(r,r.entries()),Lp}var Bp,Fp={};function Vp(){if(Bp)return Fp;Bp=1,Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.default=void 0;var e=function(e){return e&&e.__esModule?e:{default:e}}(Dp());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 Fp.default=(0,e.default)(r,r.entries()),Fp}var Hp,Up={},zp={},Wp={};var Gp,Kp={};var Xp,Qp={};var Yp,Jp={};var Zp,eu={};var tu,nu={};var su,ru={};var au,iu={};var ou,lu={};var cu,pu={};var uu,du={};var hu,mu,fu={};function yu(){if(mu)return zp;mu=1,Object.defineProperty(zp,"__esModule",{value:!0}),zp.default=void 0;var e=d((Hp||(Hp=1,Object.defineProperty(Wp,"__esModule",{value:!0}),Wp.default=void 0,Wp.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]}),Wp)),t=d((Gp||(Gp=1,Object.defineProperty(Kp,"__esModule",{value:!0}),Kp.default=void 0,Kp.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"]]}),Kp)),n=d((Xp||(Xp=1,Object.defineProperty(Qp,"__esModule",{value:!0}),Qp.default=void 0,Qp.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"]]}),Qp)),s=d((Yp||(Yp=1,Object.defineProperty(Jp,"__esModule",{value:!0}),Jp.default=void 0,Jp.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Jp)),r=d((Zp||(Zp=1,Object.defineProperty(eu,"__esModule",{value:!0}),eu.default=void 0,eu.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"]]}),eu)),a=d((tu||(tu=1,Object.defineProperty(nu,"__esModule",{value:!0}),nu.default=void 0,nu.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:[]}),nu)),i=d((su||(su=1,Object.defineProperty(ru,"__esModule",{value:!0}),ru.default=void 0,ru.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"]]}),ru)),o=d((au||(au=1,Object.defineProperty(iu,"__esModule",{value:!0}),iu.default=void 0,iu.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]}),iu)),l=d((ou||(ou=1,Object.defineProperty(lu,"__esModule",{value:!0}),lu.default=void 0,lu.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"]]}),lu)),c=d((cu||(cu=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.default=void 0,pu.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]}),pu)),p=d((uu||(uu=1,Object.defineProperty(du,"__esModule",{value:!0}),du.default=void 0,du.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]}),du)),u=d((hu||(hu=1,Object.defineProperty(fu,"__esModule",{value:!0}),fu.default=void 0,fu.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]}),fu));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 zp.default=h,zp}var vu,gu={},bu={};var _u,xu={};var wu,Cu={};var ku,Su={};var Pu,Eu={};var Tu,Au={};var $u,Ru={};var Iu,Mu={};var qu,Lu={};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 wd,Cd={};var kd,Sd={};var Pd,Ed={};var Td,Ad={};var $d,Rd={};var Id,Md={};var qd,Ld={};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 wh,Ch={};var kh,Sh={};var Ph,Eh={};var Th,Ah={};var $h,Rh={};var Ih,Mh={};var qh,Lh={};var Oh,Nh={};var Dh,jh={};var Bh,Fh={};var Vh,Hh={};var Uh,zh={};var Wh,Gh={};var Kh,Xh={};var Qh,Yh={};var Jh,Zh={};var em,tm={};var nm,sm={};var rm,am={};var im,om={};var lm,cm={};var pm,um={};var dm,hm={};var mm,fm={};var ym,vm={};var gm,bm={};var _m,xm,wm={};function Cm(){if(xm)return gu;xm=1,Object.defineProperty(gu,"__esModule",{value:!0}),gu.default=void 0;var e=Ae((vu||(vu=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.default=void 0,bu.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"]]}),bu)),t=Ae((_u||(_u=1,Object.defineProperty(xu,"__esModule",{value:!0}),xu.default=void 0,xu.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"]]}),xu)),n=Ae((wu||(wu=1,Object.defineProperty(Cu,"__esModule",{value:!0}),Cu.default=void 0,Cu.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"]]}),Cu)),s=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:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]}),Su)),r=Ae((Pu||(Pu=1,Object.defineProperty(Eu,"__esModule",{value:!0}),Eu.default=void 0,Eu.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"]]}),Eu)),a=Ae((Tu||(Tu=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:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Au)),i=Ae(($u||($u=1,Object.defineProperty(Ru,"__esModule",{value:!0}),Ru.default=void 0,Ru.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"]]}),Ru)),o=Ae((Iu||(Iu=1,Object.defineProperty(Mu,"__esModule",{value:!0}),Mu.default=void 0,Mu.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"]]}),Mu)),l=Ae((qu||(qu=1,Object.defineProperty(Lu,"__esModule",{value:!0}),Lu.default=void 0,Lu.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"]]}),Lu)),c=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","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"]]}),Nu)),p=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:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),ju)),u=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-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"]]}),Fu)),d=Ae((Vu||(Vu=1,Object.defineProperty(Hu,"__esModule",{value:!0}),Hu.default=void 0,Hu.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"]]}),Hu)),h=Ae((Uu||(Uu=1,Object.defineProperty(zu,"__esModule",{value:!0}),zu.default=void 0,zu.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"]]}),zu)),m=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:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Gu)),f=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:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Xu)),y=Ae((Qu||(Qu=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.default=void 0,Yu.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"]]}),Yu)),v=Ae((Ju||(Ju=1,Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.default=void 0,Zu.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"]]}),Zu)),g=Ae((ed||(ed=1,Object.defineProperty(td,"__esModule",{value:!0}),td.default=void 0,td.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"]]}),td)),b=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:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]}),sd)),_=Ae((rd||(rd=1,Object.defineProperty(ad,"__esModule",{value:!0}),ad.default=void 0,ad.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"]]}),ad)),x=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:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]}),od)),w=Ae((ld||(ld=1,Object.defineProperty(cd,"__esModule",{value:!0}),cd.default=void 0,cd.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"]]}),cd)),C=Ae((pd||(pd=1,Object.defineProperty(ud,"__esModule",{value:!0}),ud.default=void 0,ud.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"]]}),ud)),k=Ae((dd||(dd=1,Object.defineProperty(hd,"__esModule",{value:!0}),hd.default=void 0,hd.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"]]}),hd)),S=Ae((md||(md=1,Object.defineProperty(fd,"__esModule",{value:!0}),fd.default=void 0,fd.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"]]}),fd)),P=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","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"]]}),vd)),E=Ae((gd||(gd=1,Object.defineProperty(bd,"__esModule",{value:!0}),bd.default=void 0,bd.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"]]}),bd)),T=Ae((_d||(_d=1,Object.defineProperty(xd,"__esModule",{value:!0}),xd.default=void 0,xd.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"]]}),xd)),A=Ae((wd||(wd=1,Object.defineProperty(Cd,"__esModule",{value:!0}),Cd.default=void 0,Cd.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"]]}),Cd)),$=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:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Sd)),R=Ae((Pd||(Pd=1,Object.defineProperty(Ed,"__esModule",{value:!0}),Ed.default=void 0,Ed.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"]]}),Ed)),I=Ae((Td||(Td=1,Object.defineProperty(Ad,"__esModule",{value:!0}),Ad.default=void 0,Ad.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"]]}),Ad)),M=Ae(($d||($d=1,Object.defineProperty(Rd,"__esModule",{value:!0}),Rd.default=void 0,Rd.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"]]}),Rd)),q=Ae((Id||(Id=1,Object.defineProperty(Md,"__esModule",{value:!0}),Md.default=void 0,Md.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"]]}),Md)),L=Ae((qd||(qd=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Ld.default=void 0,Ld.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Ld)),O=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"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Nd)),N=Ae((Dd||(Dd=1,Object.defineProperty(jd,"__esModule",{value:!0}),jd.default=void 0,jd.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"]]}),jd)),D=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"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Fd)),j=Ae((Vd||(Vd=1,Object.defineProperty(Hd,"__esModule",{value:!0}),Hd.default=void 0,Hd.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"]]}),Hd)),B=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:{"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"]]}),zd)),F=Ae((Wd||(Wd=1,Object.defineProperty(Gd,"__esModule",{value:!0}),Gd.default=void 0,Gd.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"]]}),Gd)),V=Ae((Kd||(Kd=1,Object.defineProperty(Xd,"__esModule",{value:!0}),Xd.default=void 0,Xd.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"]]}),Xd)),H=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","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"]]}),Yd)),U=Ae((Jd||(Jd=1,Object.defineProperty(Zd,"__esModule",{value:!0}),Zd.default=void 0,Zd.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"]]}),Zd)),z=Ae((eh||(eh=1,Object.defineProperty(th,"__esModule",{value:!0}),th.default=void 0,th.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"]]}),th)),W=Ae((nh||(nh=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:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),sh)),G=Ae((rh||(rh=1,Object.defineProperty(ah,"__esModule",{value:!0}),ah.default=void 0,ah.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]}),ah)),K=Ae((ih||(ih=1,Object.defineProperty(oh,"__esModule",{value:!0}),oh.default=void 0,oh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),oh)),X=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:{"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"]]}),ch)),Q=Ae((ph||(ph=1,Object.defineProperty(uh,"__esModule",{value:!0}),uh.default=void 0,uh.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"]]}),uh)),Y=Ae((dh||(dh=1,Object.defineProperty(hh,"__esModule",{value:!0}),hh.default=void 0,hh.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"]]}),hh)),J=Ae((mh||(mh=1,Object.defineProperty(fh,"__esModule",{value:!0}),fh.default=void 0,fh.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"]]}),fh)),Z=Ae((yh||(yh=1,Object.defineProperty(vh,"__esModule",{value:!0}),vh.default=void 0,vh.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"]]}),vh)),ee=Ae((gh||(gh=1,Object.defineProperty(bh,"__esModule",{value:!0}),bh.default=void 0,bh.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"]]}),bh)),te=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:{},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"]]}),xh)),ne=Ae((wh||(wh=1,Object.defineProperty(Ch,"__esModule",{value:!0}),Ch.default=void 0,Ch.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"]]}),Ch)),se=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","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"]]}),Sh)),re=Ae((Ph||(Ph=1,Object.defineProperty(Eh,"__esModule",{value:!0}),Eh.default=void 0,Eh.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"]]}),Eh)),ae=Ae((Th||(Th=1,Object.defineProperty(Ah,"__esModule",{value:!0}),Ah.default=void 0,Ah.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"]]}),Ah)),ie=Ae(($h||($h=1,Object.defineProperty(Rh,"__esModule",{value:!0}),Rh.default=void 0,Rh.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Rh)),oe=Ae((Ih||(Ih=1,Object.defineProperty(Mh,"__esModule",{value:!0}),Mh.default=void 0,Mh.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"]]}),Mh)),le=Ae((qh||(qh=1,Object.defineProperty(Lh,"__esModule",{value:!0}),Lh.default=void 0,Lh.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"]]}),Lh)),ce=Ae((Oh||(Oh=1,Object.defineProperty(Nh,"__esModule",{value:!0}),Nh.default=void 0,Nh.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"]]}),Nh)),pe=Ae((Dh||(Dh=1,Object.defineProperty(jh,"__esModule",{value:!0}),jh.default=void 0,jh.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"]]}),jh)),ue=Ae((Bh||(Bh=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-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Fh)),de=Ae((Vh||(Vh=1,Object.defineProperty(Hh,"__esModule",{value:!0}),Hh.default=void 0,Hh.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"]]}),Hh)),he=Ae((Uh||(Uh=1,Object.defineProperty(zh,"__esModule",{value:!0}),zh.default=void 0,zh.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"]]}),zh)),me=Ae((Wh||(Wh=1,Object.defineProperty(Gh,"__esModule",{value:!0}),Gh.default=void 0,Gh.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"]]}),Gh)),fe=Ae((Kh||(Kh=1,Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.default=void 0,Xh.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"]]}),Xh)),ye=Ae((Qh||(Qh=1,Object.defineProperty(Yh,"__esModule",{value:!0}),Yh.default=void 0,Yh.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"]]}),Yh)),ve=Ae((Jh||(Jh=1,Object.defineProperty(Zh,"__esModule",{value:!0}),Zh.default=void 0,Zh.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"]]}),Zh)),ge=Ae((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-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]}),tm)),be=Ae((nm||(nm=1,Object.defineProperty(sm,"__esModule",{value:!0}),sm.default=void 0,sm.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),sm)),_e=Ae((rm||(rm=1,Object.defineProperty(am,"__esModule",{value:!0}),am.default=void 0,am.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"]]}),am)),xe=Ae((im||(im=1,Object.defineProperty(om,"__esModule",{value:!0}),om.default=void 0,om.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"]]}),om)),we=Ae((lm||(lm=1,Object.defineProperty(cm,"__esModule",{value:!0}),cm.default=void 0,cm.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"]]}),cm)),Ce=Ae((pm||(pm=1,Object.defineProperty(um,"__esModule",{value:!0}),um.default=void 0,um.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]}),um)),ke=Ae((dm||(dm=1,Object.defineProperty(hm,"__esModule",{value:!0}),hm.default=void 0,hm.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"]]}),hm)),Se=Ae((mm||(mm=1,Object.defineProperty(fm,"__esModule",{value:!0}),fm.default=void 0,fm.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),fm)),Pe=Ae((ym||(ym=1,Object.defineProperty(vm,"__esModule",{value:!0}),vm.default=void 0,vm.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"]]}),vm)),Ee=Ae((gm||(gm=1,Object.defineProperty(bm,"__esModule",{value:!0}),bm.default=void 0,bm.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"]]}),bm)),Te=Ae((_m||(_m=1,Object.defineProperty(wm,"__esModule",{value:!0}),wm.default=void 0,wm.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"]]}),wm));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",w.default],["form",C.default],["generic",k.default],["grid",S.default],["gridcell",P.default],["group",E.default],["heading",T.default],["img",A.default],["insertion",$.default],["link",R.default],["list",I.default],["listbox",M.default],["listitem",q.default],["log",L.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",we.default],["timer",Ce.default],["toolbar",ke.default],["tooltip",Se.default],["tree",Pe.default],["treegrid",Ee.default],["treeitem",Te.default]];return gu.default=$e,gu}var km,Sm={},Pm={};var Em,Tm={};var Am,$m={};var Rm,Im={};var Mm,qm={};var Lm,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={};var mf,ff={};var yf,vf={};var gf,bf={};var _f,xf={};var wf,Cf={};var kf,Sf={};var Pf,Ef={};var Tf,Af={};var $f,Rf={};var If,Mf={};var qf,Lf={};var Of,Nf={};var Df,jf={};var Bf,Ff={};var Vf,Hf={};var Uf,zf={};var Wf,Gf={};var Kf,Xf={};var Qf,Yf={};var Jf,Zf,ey={};function ty(){if(Zf)return Sm;Zf=1,Object.defineProperty(Sm,"__esModule",{value:!0}),Sm.default=void 0;var e=F((km||(km=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:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Pm)),t=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:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Tm)),n=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:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),$m)),s=F((Rm||(Rm=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:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Im)),r=F((Mm||(Mm=1,Object.defineProperty(qm,"__esModule",{value:!0}),qm.default=void 0,qm.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"]]}),qm)),a=F((Lm||(Lm=1,Object.defineProperty(Om,"__esModule",{value:!0}),Om.default=void 0,Om.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"]]}),Om)),i=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:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Dm)),o=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:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]}),Bm)),l=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:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),Vm)),c=F((Hm||(Hm=1,Object.defineProperty(Um,"__esModule",{value:!0}),Um.default=void 0,Um.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"]]}),Um)),p=F((zm||(zm=1,Object.defineProperty(Wm,"__esModule",{value:!0}),Wm.default=void 0,Wm.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"]]}),Wm)),u=F((Gm||(Gm=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:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]}),Km)),d=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:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),Qm)),h=F((Ym||(Ym=1,Object.defineProperty(Jm,"__esModule",{value:!0}),Jm.default=void 0,Jm.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"]]}),Jm)),m=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:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),ef)),f=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:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]}),nf)),y=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:{"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"]]}),rf)),v=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:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]}),of)),g=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:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),cf)),b=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:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]}),uf)),_=F((df||(df=1,Object.defineProperty(hf,"__esModule",{value:!0}),hf.default=void 0,hf.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"]]}),hf)),x=F((mf||(mf=1,Object.defineProperty(ff,"__esModule",{value:!0}),ff.default=void 0,ff.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"]]}),ff)),w=F((yf||(yf=1,Object.defineProperty(vf,"__esModule",{value:!0}),vf.default=void 0,vf.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"]]}),vf)),C=F((gf||(gf=1,Object.defineProperty(bf,"__esModule",{value:!0}),bf.default=void 0,bf.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"]]}),bf)),k=F((_f||(_f=1,Object.defineProperty(xf,"__esModule",{value:!0}),xf.default=void 0,xf.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"]]}),xf)),S=F((wf||(wf=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:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]}),Cf)),P=F((kf||(kf=1,Object.defineProperty(Sf,"__esModule",{value:!0}),Sf.default=void 0,Sf.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"]]}),Sf)),E=F((Pf||(Pf=1,Object.defineProperty(Ef,"__esModule",{value:!0}),Ef.default=void 0,Ef.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"]]}),Ef)),T=F((Tf||(Tf=1,Object.defineProperty(Af,"__esModule",{value:!0}),Af.default=void 0,Af.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"]]}),Af)),A=F(($f||($f=1,Object.defineProperty(Rf,"__esModule",{value:!0}),Rf.default=void 0,Rf.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"]]}),Rf)),$=F((If||(If=1,Object.defineProperty(Mf,"__esModule",{value:!0}),Mf.default=void 0,Mf.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"]]}),Mf)),R=F((qf||(qf=1,Object.defineProperty(Lf,"__esModule",{value:!0}),Lf.default=void 0,Lf.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"]]}),Lf)),I=F((Of||(Of=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:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]}),Nf)),M=F((Df||(Df=1,Object.defineProperty(jf,"__esModule",{value:!0}),jf.default=void 0,jf.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"]]}),jf)),q=F((Bf||(Bf=1,Object.defineProperty(Ff,"__esModule",{value:!0}),Ff.default=void 0,Ff.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"]]}),Ff)),L=F((Vf||(Vf=1,Object.defineProperty(Hf,"__esModule",{value:!0}),Hf.default=void 0,Hf.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"]]}),Hf)),O=F((Uf||(Uf=1,Object.defineProperty(zf,"__esModule",{value:!0}),zf.default=void 0,zf.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"]]}),zf)),N=F((Wf||(Wf=1,Object.defineProperty(Gf,"__esModule",{value:!0}),Gf.default=void 0,Gf.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"]]}),Gf)),D=F((Kf||(Kf=1,Object.defineProperty(Xf,"__esModule",{value:!0}),Xf.default=void 0,Xf.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"]]}),Xf)),j=F((Qf||(Qf=1,Object.defineProperty(Yf,"__esModule",{value:!0}),Yf.default=void 0,Yf.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"]]}),Yf)),B=F((Jf||(Jf=1,Object.defineProperty(ey,"__esModule",{value:!0}),ey.default=void 0,ey.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"]]}),ey));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",w.default],["doc-glossary",C.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",R.default],["doc-pagelist",I.default],["doc-part",M.default],["doc-preface",q.default],["doc-prologue",L.default],["doc-pullquote",O.default],["doc-qna",N.default],["doc-subtitle",D.default],["doc-tip",j.default],["doc-toc",B.default]];return Sm.default=V,Sm}var ny,sy={},ry={};var ay,iy={};var oy,ly,cy,py={};function uy(){if(ly)return sy;ly=1,Object.defineProperty(sy,"__esModule",{value:!0}),sy.default=void 0;var e=s((ny||(ny=1,Object.defineProperty(ry,"__esModule",{value:!0}),ry.default=void 0,ry.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"]]}),ry)),t=s((ay||(ay=1,Object.defineProperty(iy,"__esModule",{value:!0}),iy.default=void 0,iy.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"]]}),iy)),n=s((oy||(oy=1,Object.defineProperty(py,"__esModule",{value:!0}),py.default=void 0,py.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"]]}),py));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 sy.default=r,sy}function dy(){if(cy)return Up;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)}cy=1,Object.defineProperty(Up,"__esModule",{value:!0}),Up.default=void 0;var t=i(yu()),n=i(Cm()),s=i(ty()),r=i(uy()),a=i(Dp());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 Up.default=(0,a.default)(h,h.entries()),Up}var hy,my={};function fy(){if(hy)return my;hy=1,Object.defineProperty(my,"__esModule",{value:!0}),my.default=void 0;var e=n(Dp()),t=n(dy());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 my.default=(0,e.default)(h,h.entries()),my}var yy,vy,gy={};function by(){if(yy)return gy;yy=1,Object.defineProperty(gy,"__esModule",{value:!0}),gy.default=void 0;var e=n(Dp()),t=n(dy());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 gy.default=(0,e.default)(f,f.entries()),gy}var _y,xy,wy=function(){if(vy)return qp;vy=1,Object.defineProperty(qp,"__esModule",{value:!0}),qp.roles=qp.roleElements=qp.elementRoles=qp.dom=qp.aria=void 0;var e=a(jp()),t=a(Vp()),n=a(dy()),s=a(fy()),r=a(by());function a(e){return e&&e.__esModule?e:{default:e}}return qp.aria=e.default,qp.dom=t.default,qp.roles=n.default,qp.elementRoles=s.default,qp.roleElements=r.default,qp}(),Cy={},ky={},Sy={},Py={};function Ey(){if(xy)return Sy;xy=1,Object.defineProperty(Sy,"__esModule",{value:!0}),Sy.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(_y)return Py;_y=1,Object.defineProperty(Py,"__esModule",{value:!0}),Py.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 Py.default=e,Py}())&&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 Sy}var Ty,Ay={},$y={};var Ry,Iy={};var My,qy={};var Ly,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,wv={};var Cv,kv={};var Sv,Pv={};var Ev,Tv={};var Av,$v={};var Rv,Iv={};var Mv,qv={};var Lv,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,wg={};var Cg,kg={};var Sg,Pg={};var Eg,Tg={};var Ag,$g={};var Rg,Ig={};var Mg,qg={};var Lg,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,wb={};var Cb,kb={};var Sb,Pb={};var Eb,Tb={};var Ab,$b={};var Rb,Ib={};var Mb,qb={};var Lb,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_,__={};var x_,w_={};var C_,k_={};var S_,P_={};var E_,T_={};var A_,$_={};var R_,I_={};var M_,q_={};var L_,O_={};var N_,D_={};var j_,B_={};var F_,V_={};var H_,U_={};var z_,W_={};var G_,K_={};var X_,Q_={};var Y_,J_={};var Z_,ex={};var tx,nx={};var sx,rx={};var ax,ix,ox,lx={};function cx(){if(ix)return Ay;ix=1,Object.defineProperty(Ay,"__esModule",{value:!0}),Ay.default=void 0;var e=vt(Ey()),t=vt(function(){if(Ty)return $y;Ty=1,Object.defineProperty($y,"__esModule",{value:!0}),$y.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"abbr"}}],type:"structure"};return $y.default=e,$y}()),n=vt(function(){if(Ry)return Iy;Ry=1,Object.defineProperty(Iy,"__esModule",{value:!0}),Iy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"alertdialog"}}],type:"window"};return Iy.default=e,Iy}()),s=vt(function(){if(My)return qy;My=1,Object.defineProperty(qy,"__esModule",{value:!0}),qy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"alert"}}],type:"structure"};return qy.default=e,qy}()),r=vt(function(){if(Ly)return Oy;Ly=1,Object.defineProperty(Oy,"__esModule",{value:!0}),Oy.default=void 0;var e={relatedConcepts:[],type:"structure"};return Oy.default=e,Oy}()),a=vt(function(){if(Ny)return Dy;Ny=1,Object.defineProperty(Dy,"__esModule",{value:!0}),Dy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"application"}}],type:"window"};return Dy.default=e,Dy}()),i=vt(function(){if(jy)return By;jy=1,Object.defineProperty(By,"__esModule",{value:!0}),By.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"article"}},{module:"HTML",concept:{name:"article"}}],type:"structure"};return By.default=e,By}()),o=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:"audio"}}],type:"widget"};return Vy.default=e,Vy}()),l=vt(function(){if(Hy)return Uy;Hy=1,Object.defineProperty(Uy,"__esModule",{value:!0}),Uy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"banner"}}],type:"structure"};return Uy.default=e,Uy}()),c=vt(function(){if(zy)return Wy;zy=1,Object.defineProperty(Wy,"__esModule",{value:!0}),Wy.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"blockquote"}}],type:"structure"};return Wy.default=e,Wy}()),p=vt(function(){if(Gy)return Ky;Gy=1,Object.defineProperty(Ky,"__esModule",{value:!0}),Ky.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-busy",value:"true"}]}}],type:"widget"};return Ky.default=e,Ky}()),u=vt(function(){if(Xy)return Qy;Xy=1,Object.defineProperty(Qy,"__esModule",{value:!0}),Qy.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"button"}},{module:"HTML",concept:{name:"button"}}],type:"widget"};return Qy.default=e,Qy}()),d=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:"canvas"}}],type:"widget"};return Jy.default=e,Jy}()),h=vt(function(){if(Zy)return ev;Zy=1,Object.defineProperty(ev,"__esModule",{value:!0}),ev.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"caption"}}],type:"structure"};return ev.default=e,ev}()),m=vt(function(){if(tv)return nv;tv=1,Object.defineProperty(nv,"__esModule",{value:!0}),nv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"cell"}},{module:"ARIA",concept:{name:"gridcell"}},{module:"HTML",concept:{name:"td"}}],type:"widget"};return nv.default=e,nv}()),f=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:"checkbox"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"checkbox"}]}}],type:"widget"};return rv.default=e,rv}()),y=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:"input",attributes:[{name:"type",value:"color"}]}}],type:"widget"};return iv.default=e,iv}()),v=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:"columnheader"}},{module:"HTML",concept:{name:"th"}}],type:"widget"};return lv.default=e,lv}()),g=vt(function(){if(cv)return pv;cv=1,Object.defineProperty(pv,"__esModule",{value:!0}),pv.default=void 0;var e={relatedConcepts:[],type:"structure"};return pv.default=e,pv}()),b=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:"combobox"}},{module:"HTML",concept:{name:"select"}}],type:"widget"};return dv.default=e,dv}()),_=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:"complementary"}}],type:"structure"};return mv.default=e,mv}()),x=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:"structureinfo"}}],type:"structure"};return yv.default=e,yv}()),w=vt(function(){if(vv)return gv;vv=1,Object.defineProperty(gv,"__esModule",{value:!0}),gv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"date"}]}}],type:"widget"};return gv.default=e,gv}()),C=vt(function(){if(bv)return _v;bv=1,Object.defineProperty(_v,"__esModule",{value:!0}),_v.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"datetime"}]}}],type:"widget"};return _v.default=e,_v}()),k=vt(function(){if(xv)return wv;xv=1,Object.defineProperty(wv,"__esModule",{value:!0}),wv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"dfn"}}],type:"structure"};return wv.default=e,wv}()),S=vt(function(){if(Cv)return kv;Cv=1,Object.defineProperty(kv,"__esModule",{value:!0}),kv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"dd"}}],type:"structure"};return kv.default=e,kv}()),P=vt(function(){if(Sv)return Pv;Sv=1,Object.defineProperty(Pv,"__esModule",{value:!0}),Pv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"dl"}}],type:"structure"};return Pv.default=e,Pv}()),E=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:"dt"}}],type:"structure"};return Tv.default=e,Tv}()),T=vt(function(){if(Av)return $v;Av=1,Object.defineProperty($v,"__esModule",{value:!0}),$v.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"details"}}],type:"structure"};return $v.default=e,$v}()),A=vt(function(){if(Rv)return Iv;Rv=1,Object.defineProperty(Iv,"__esModule",{value:!0}),Iv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"dialog"}},{module:"HTML",concept:{name:"dialog"}}],type:"window"};return Iv.default=e,Iv}()),$=vt(function(){if(Mv)return qv;Mv=1,Object.defineProperty(qv,"__esModule",{value:!0}),qv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"directory"}},{module:"HTML",concept:{name:"dir"}}],type:"structure"};return qv.default=e,qv}()),R=vt(function(){if(Lv)return Ov;Lv=1,Object.defineProperty(Ov,"__esModule",{value:!0}),Ov.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{constraints:["scoped to a details element"],name:"summary"}}],type:"widget"};return Ov.default=e,Ov}()),I=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:"div"}}],type:"generic"};return Dv.default=e,Dv}()),M=vt(function(){if(jv)return Bv;jv=1,Object.defineProperty(Bv,"__esModule",{value:!0}),Bv.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"document"}}],type:"structure"};return Bv.default=e,Bv}()),q=vt(function(){if(Fv)return Vv;Fv=1,Object.defineProperty(Vv,"__esModule",{value:!0}),Vv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"embed"}}],type:"widget"};return Vv.default=e,Vv}()),L=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:"feed"}}],type:"structure"};return Uv.default=e,Uv}()),O=vt(function(){if(zv)return Wv;zv=1,Object.defineProperty(Wv,"__esModule",{value:!0}),Wv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"figcaption"}}],type:"structure"};return Wv.default=e,Wv}()),N=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:"figure"}},{module:"HTML",concept:{name:"figure"}}],type:"structure"};return Kv.default=e,Kv}()),D=vt(function(){if(Xv)return Qv;Xv=1,Object.defineProperty(Qv,"__esModule",{value:!0}),Qv.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"footer"}}],type:"structure"};return Qv.default=e,Qv}()),j=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:"form"}},{module:"HTML",concept:{name:"form"}}],type:"structure"};return Jv.default=e,Jv}()),B=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:"grid"}}],type:"widget"};return eg.default=e,eg}()),F=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:"group"}}],type:"structure"};return ng.default=e,ng}()),V=vt(function(){if(sg)return rg;sg=1,Object.defineProperty(rg,"__esModule",{value:!0}),rg.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 rg.default=e,rg}()),H=vt(function(){if(ag)return ig;ag=1,Object.defineProperty(ig,"__esModule",{value:!0}),ig.default=void 0;var e={relatedConcepts:[],type:"window"};return ig.default=e,ig}()),U=vt(function(){if(og)return lg;og=1,Object.defineProperty(lg,"__esModule",{value:!0}),lg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"iframe"}}],type:"window"};return lg.default=e,lg}()),z=vt(function(){if(cg)return pg;cg=1,Object.defineProperty(pg,"__esModule",{value:!0}),pg.default=void 0;var e={relatedConcepts:[],type:"structure"};return pg.default=e,pg}()),W=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}()),G=vt(function(){if(hg)return mg;hg=1,Object.defineProperty(mg,"__esModule",{value:!0}),mg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"img",attributes:[{name:"usemap"}]}}],type:"structure"};return mg.default=e,mg}()),K=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:"img"}},{module:"HTML",concept:{name:"img"}}],type:"structure"};return yg.default=e,yg}()),X=vt(function(){if(vg)return gg;vg=1,Object.defineProperty(gg,"__esModule",{value:!0}),gg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input"}}],type:"widget"};return gg.default=e,gg}()),Q=vt(function(){if(bg)return _g;bg=1,Object.defineProperty(_g,"__esModule",{value:!0}),_g.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"time"}]}}],type:"widget"};return _g.default=e,_g}()),Y=vt(function(){if(xg)return wg;xg=1,Object.defineProperty(wg,"__esModule",{value:!0}),wg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"label"}}],type:"structure"};return wg.default=e,wg}()),J=vt(function(){if(Cg)return kg;Cg=1,Object.defineProperty(kg,"__esModule",{value:!0}),kg.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"legend"}}],type:"structure"};return kg.default=e,kg}()),Z=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:"br"}}],type:"structure"};return Pg.default=e,Pg}()),ee=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:"link"}},{module:"HTML",concept:{name:"a",attributes:[{name:"href"}]}}],type:"widget"};return Tg.default=e,Tg}()),te=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:"option"}},{module:"HTML",concept:{name:"option"}}],type:"widget"};return $g.default=e,$g}()),ne=vt(function(){if(Rg)return Ig;Rg=1,Object.defineProperty(Ig,"__esModule",{value:!0}),Ig.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"listbox"}},{module:"HTML",concept:{name:"datalist"}},{module:"HTML",concept:{name:"select"}}],type:"widget"};return Ig.default=e,Ig}()),se=vt(function(){if(Mg)return qg;Mg=1,Object.defineProperty(qg,"__esModule",{value:!0}),qg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"listitem"}},{module:"HTML",concept:{name:"li"}}],type:"structure"};return qg.default=e,qg}()),re=vt(function(){if(Lg)return Og;Lg=1,Object.defineProperty(Og,"__esModule",{value:!0}),Og.default=void 0;var e={relatedConcepts:[],type:"structure"};return Og.default=e,Og}()),ae=vt(function(){if(Ng)return Dg;Ng=1,Object.defineProperty(Dg,"__esModule",{value:!0}),Dg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"list"}},{module:"HTML",concept:{name:"ul"}},{module:"HTML",concept:{name:"ol"}}],type:"structure"};return Dg.default=e,Dg}()),ie=vt(function(){if(jg)return Bg;jg=1,Object.defineProperty(Bg,"__esModule",{value:!0}),Bg.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"log"}}],type:"structure"};return Bg.default=e,Bg}()),oe=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:"main"}},{module:"HTML",concept:{name:"main"}}],type:"structure"};return Vg.default=e,Vg}()),le=vt(function(){if(Hg)return Ug;Hg=1,Object.defineProperty(Ug,"__esModule",{value:!0}),Ug.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"mark"}}],type:"structure"};return Ug.default=e,Ug}()),ce=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:"marquee"}},{module:"HTML",concept:{name:"marquee"}}],type:"structure"};return Wg.default=e,Wg}()),pe=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:"math"}}],type:"structure"};return Kg.default=e,Kg}()),ue=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:"menubar"}}],type:"structure"};return Qg.default=e,Qg}()),de=vt(function(){if(Yg)return Jg;Yg=1,Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.default=void 0;var e={relatedConcepts:[],type:"widget"};return Jg.default=e,Jg}()),he=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:"menuitem"}},{module:"HTML",concept:{name:"menuitem"}}],type:"widget"};return eb.default=e,eb}()),me=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:"menuitemcheckbox"}}],type:"widget"};return nb.default=e,nb}()),fe=vt(function(){if(sb)return rb;sb=1,Object.defineProperty(rb,"__esModule",{value:!0}),rb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"menuitemradio"}}],type:"widget"};return rb.default=e,rb}()),ye=vt(function(){if(ab)return ib;ab=1,Object.defineProperty(ib,"__esModule",{value:!0}),ib.default=void 0;var e={relatedConcepts:[],type:"widget"};return ib.default=e,ib}()),ve=vt(function(){if(ob)return lb;ob=1,Object.defineProperty(lb,"__esModule",{value:!0}),lb.default=void 0;var e={relatedConcepts:[],type:"widget"};return lb.default=e,lb}()),ge=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:"menu"}},{module:"HTML",concept:{name:"menu"}}],type:"structure"};return pb.default=e,pb}()),be=vt(function(){if(ub)return db;ub=1,Object.defineProperty(db,"__esModule",{value:!0}),db.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"meter"}}],type:"structure"};return db.default=e,db}()),_e=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:"navigation"}},{module:"HTML",concept:{name:"nav"}}],type:"structure"};return mb.default=e,mb}()),xe=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:"none"}}],type:"structure"};return yb.default=e,yb}()),we=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:"note"}}],type:"structure"};return gb.default=e,gb}()),Ce=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}()),ke=vt(function(){if(xb)return wb;xb=1,Object.defineProperty(wb,"__esModule",{value:!0}),wb.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"p"}}],type:"structure"};return wb.default=e,wb}()),Se=vt(function(){if(Cb)return kb;Cb=1,Object.defineProperty(kb,"__esModule",{value:!0}),kb.default=void 0;var e={relatedConcepts:[],type:"widget"};return kb.default=e,kb}()),Pe=vt(function(){if(Sb)return Pb;Sb=1,Object.defineProperty(Pb,"__esModule",{value:!0}),Pb.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"pre"}}],type:"structure"};return Pb.default=e,Pb}()),Ee=vt(function(){if(Eb)return Tb;Eb=1,Object.defineProperty(Tb,"__esModule",{value:!0}),Tb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"presentation"}}],type:"structure"};return Tb.default=e,Tb}()),Te=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:"progressbar"}},{module:"HTML",concept:{name:"progress"}}],type:"structure"};return $b.default=e,$b}()),Ae=vt(function(){if(Rb)return Ib;Rb=1,Object.defineProperty(Ib,"__esModule",{value:!0}),Ib.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"radio"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"radio"}]}}],type:"widget"};return Ib.default=e,Ib}()),$e=vt(function(){if(Mb)return qb;Mb=1,Object.defineProperty(qb,"__esModule",{value:!0}),qb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"radiogroup"}}],type:"structure"};return qb.default=e,qb}()),Re=vt(function(){if(Lb)return Ob;Lb=1,Object.defineProperty(Ob,"__esModule",{value:!0}),Ob.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"region"}}],type:"structure"};return Ob.default=e,Ob}()),Ie=vt(function(){if(Nb)return Db;Nb=1,Object.defineProperty(Db,"__esModule",{value:!0}),Db.default=void 0;var e={relatedConcepts:[],type:"structure"};return Db.default=e,Db}()),Me=vt(function(){if(jb)return Bb;jb=1,Object.defineProperty(Bb,"__esModule",{value:!0}),Bb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"rowheader"}},{module:"HTML",concept:{name:"th",attributes:[{name:"scope",value:"row"}]}}],type:"widget"};return Bb.default=e,Bb}()),qe=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:"row"}},{module:"HTML",concept:{name:"tr"}}],type:"structure"};return Vb.default=e,Vb}()),Le=vt(function(){if(Hb)return Ub;Hb=1,Object.defineProperty(Ub,"__esModule",{value:!0}),Ub.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"ruby"}}],type:"structure"};return Ub.default=e,Ub}()),Oe=vt(function(){if(zb)return Wb;zb=1,Object.defineProperty(Wb,"__esModule",{value:!0}),Wb.default=void 0;var e={relatedConcepts:[],type:"structure"};return Wb.default=e,Wb}()),Ne=vt(function(){if(Gb)return Kb;Gb=1,Object.defineProperty(Kb,"__esModule",{value:!0}),Kb.default=void 0;var e={relatedConcepts:[],type:"structure"};return Kb.default=e,Kb}()),De=vt(function(){if(Xb)return Qb;Xb=1,Object.defineProperty(Qb,"__esModule",{value:!0}),Qb.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"scrollbar"}}],type:"widget"};return Qb.default=e,Qb}()),je=vt(function(){if(Yb)return Jb;Yb=1,Object.defineProperty(Jb,"__esModule",{value:!0}),Jb.default=void 0;var e={relatedConcepts:[],type:"structure"};return Jb.default=e,Jb}()),Be=vt(function(){if(Zb)return e_;Zb=1,Object.defineProperty(e_,"__esModule",{value:!0}),e_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"search"}}],type:"structure"};return e_.default=e,e_}()),Fe=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:"searchbox"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"search"}]}}],type:"widget"};return n_.default=e,n_}()),Ve=vt(function(){if(s_)return r_;s_=1,Object.defineProperty(r_,"__esModule",{value:!0}),r_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"slider"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"range"}]}}],type:"widget"};return r_.default=e,r_}()),He=vt(function(){if(a_)return i_;a_=1,Object.defineProperty(i_,"__esModule",{value:!0}),i_.default=void 0;var e={relatedConcepts:[],type:"structure"};return i_.default=e,i_}()),Ue=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:"spinbutton"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"number"}]}}],type:"widget"};return l_.default=e,l_}()),ze=vt(function(){if(c_)return p_;c_=1,Object.defineProperty(p_,"__esModule",{value:!0}),p_.default=void 0;var e={relatedConcepts:[],type:"structure"};return p_.default=e,p_}()),We=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:"separator"}}],type:"widget"};return d_.default=e,d_}()),Ge=vt(function(){if(h_)return m_;h_=1,Object.defineProperty(m_,"__esModule",{value:!0}),m_.default=void 0;var e={relatedConcepts:[],type:"structure"};return m_.default=e,m_}()),Ke=vt(function(){if(f_)return y_;f_=1,Object.defineProperty(y_,"__esModule",{value:!0}),y_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"status"}}],type:"structure"};return y_.default=e,y_}()),Xe=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_}()),Qe=vt(function(){if(b_)return __;b_=1,Object.defineProperty(__,"__esModule",{value:!0}),__.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"switch"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"checkbox"}]}}],type:"widget"};return __.default=e,__}()),Ye=vt(function(){if(x_)return w_;x_=1,Object.defineProperty(w_,"__esModule",{value:!0}),w_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tablist"}}],type:"structure"};return w_.default=e,w_}()),Je=vt(function(){if(C_)return k_;C_=1,Object.defineProperty(k_,"__esModule",{value:!0}),k_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tab"}}],type:"widget"};return k_.default=e,k_}()),Ze=vt(function(){if(S_)return P_;S_=1,Object.defineProperty(P_,"__esModule",{value:!0}),P_.default=void 0;var e={relatedConcepts:[],type:"structure"};return P_.default=e,P_}()),et=vt(function(){if(E_)return T_;E_=1,Object.defineProperty(T_,"__esModule",{value:!0}),T_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"table"}},{module:"HTML",concept:{name:"table"}}],type:"structure"};return T_.default=e,T_}()),tt=vt(function(){if(A_)return $_;A_=1,Object.defineProperty($_,"__esModule",{value:!0}),$_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tablist"}}],type:"structure"};return $_.default=e,$_}()),nt=vt(function(){if(R_)return I_;R_=1,Object.defineProperty(I_,"__esModule",{value:!0}),I_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tabpanel"}}],type:"structure"};return I_.default=e,I_}()),st=vt(function(){if(M_)return q_;M_=1,Object.defineProperty(q_,"__esModule",{value:!0}),q_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"term"}}],type:"structure"};return q_.default=e,q_}()),rt=vt(function(){if(L_)return O_;L_=1,Object.defineProperty(O_,"__esModule",{value:!0}),O_.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 O_.default=e,O_}()),at=vt(function(){if(N_)return D_;N_=1,Object.defineProperty(D_,"__esModule",{value:!0}),D_.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 D_.default=e,D_}()),it=vt(function(){if(j_)return B_;j_=1,Object.defineProperty(B_,"__esModule",{value:!0}),B_.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"time"}}],type:"structure"};return B_.default=e,B_}()),ot=vt(function(){if(F_)return V_;F_=1,Object.defineProperty(V_,"__esModule",{value:!0}),V_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"timer"}}],type:"structure"};return V_.default=e,V_}()),lt=vt(function(){if(H_)return U_;H_=1,Object.defineProperty(U_,"__esModule",{value:!0}),U_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-pressed"}]}}],type:"widget"};return U_.default=e,U_}()),ct=vt(function(){if(z_)return W_;z_=1,Object.defineProperty(W_,"__esModule",{value:!0}),W_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"toolbar"}}],type:"structure"};return W_.default=e,W_}()),pt=vt(function(){if(G_)return K_;G_=1,Object.defineProperty(K_,"__esModule",{value:!0}),K_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tree"}}],type:"widget"};return K_.default=e,K_}()),ut=vt(function(){if(X_)return Q_;X_=1,Object.defineProperty(Q_,"__esModule",{value:!0}),Q_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"treegrid"}}],type:"widget"};return Q_.default=e,Q_}()),dt=vt(function(){if(Y_)return J_;Y_=1,Object.defineProperty(J_,"__esModule",{value:!0}),J_.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"treeitem"}}],type:"widget"};return J_.default=e,J_}()),ht=vt(function(){if(Z_)return ex;Z_=1,Object.defineProperty(ex,"__esModule",{value:!0}),ex.default=void 0;var e={relatedConcepts:[{module:"ARIA",concept:{name:"tooltip"}}],type:"structure"};return ex.default=e,ex}()),mt=vt(function(){if(tx)return nx;tx=1,Object.defineProperty(nx,"__esModule",{value:!0}),nx.default=void 0;var e={relatedConcepts:[{module:"HTML",concept:{name:"video"}}],type:"widget"};return nx.default=e,nx}()),ft=vt(function(){if(sx)return rx;sx=1,Object.defineProperty(rx,"__esModule",{value:!0}),rx.default=void 0;var e={relatedConcepts:[],type:"structure"};return rx.default=e,rx}()),yt=vt(function(){if(ax)return lx;ax=1,Object.defineProperty(lx,"__esModule",{value:!0}),lx.default=void 0;var e={relatedConcepts:[],type:"window"};return lx.default=e,lx}());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",w.default],["DateTimeRole",C.default],["DefinitionRole",k.default],["DescriptionListDetailRole",S.default],["DescriptionListRole",P.default],["DescriptionListTermRole",E.default],["DetailsRole",T.default],["DialogRole",A.default],["DirectoryRole",$.default],["DisclosureTriangleRole",R.default],["DivRole",I.default],["DocumentRole",M.default],["EmbeddedObjectRole",q.default],["FeedRole",L.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",we.default],["OutlineRole",Ce.default],["ParagraphRole",ke.default],["PopUpButtonRole",Se.default],["PreRole",Pe.default],["PresentationalRole",Ee.default],["ProgressIndicatorRole",Te.default],["RadioButtonRole",Ae.default],["RadioGroupRole",$e.default],["RegionRole",Re.default],["RootWebAreaRole",Ie.default],["RowHeaderRole",Me.default],["RowRole",qe.default],["RubyRole",Le.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]}))}},wt=(0,e.default)(xt,xt.entries());return Ay.default=wt,Ay}function px(){if(ox)return ky;ox=1,Object.defineProperty(ky,"__esModule",{value:!0}),ky.default=void 0;var e=n(Ey()),t=n(cx());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 ky.default=u,ky}var ux,dx={};function hx(){if(ux)return dx;ux=1,Object.defineProperty(dx,"__esModule",{value:!0}),dx.default=void 0;var e=n(Ey()),t=n(cx());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 dx.default=u,dx}var mx,fx,yx={};function vx(){if(mx)return yx;mx=1,Object.defineProperty(yx,"__esModule",{value:!0}),yx.default=void 0;var e=n(cx()),t=n(Ey());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 yx.default=u,yx}var gx=function(){if(fx)return Cy;fx=1,Object.defineProperty(Cy,"__esModule",{value:!0}),Cy.elementAXObjects=Cy.AXObjects=Cy.AXObjectRoles=Cy.AXObjectElements=void 0;var e=r(px()),t=r(hx()),n=r(cx()),s=r(vx());function r(e){return e&&e.__esModule?e:{default:e}}var a=e.default;Cy.AXObjectElements=a;var i=t.default;Cy.AXObjectRoles=i;var o=n.default;Cy.AXObjects=o;var l=s.default;return Cy.elementAXObjects=l,Cy}();const bx="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(" "),_x={a:["href"],area:["alt","aria-label","aria-labelledby"],html:["lang"],iframe:["title"],img:["alt"],object:["title","aria-label","aria-labelledby"]},xx=["blink","marquee"],wx=["h1","h2","h3","h4","h5","h6"],Cx=["button","input","keygen","meter","output","progress","select","textarea"],kx=["keypress","keydown","keyup","click","contextmenu","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","dragstart","drop","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup"],Sx=["click","mousedown","mouseup","keypress","keydown","keyup"],Px=new Map([["header","banner"],["footer","contentinfo"]]),Ex=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"]]),Tx=new Map([["command","menuitem"],["checkbox","menuitemcheckbox"],["radio","menuitemradio"]]),Ax=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"]]),$x={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"]},Rx=["email","search","tel","text","url"],Ix=["shipping","billing"],Mx=["","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"],qx=["home","work","mobile","fax","pager"],Lx=["tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"],Ox={Interactive:"interactive",NonInteractive:"non-interactive",Static:"static"},Nx=["meta","html","script","style"],Dx=wy.roles.keys(),jx=Dx.filter((e=>wy.roles.get(e)?.abstract)),Bx=Dx.filter((e=>!jx.includes(e))),Fx=Bx.filter((e=>{const t=wy.roles.get(e);return!["toolbar","tabpanel","generic","cell"].includes(e)&&!t?.superClass.some((e=>e.includes("widget")||e.includes("window")))})).concat("progressbar"),Vx=Bx.filter((e=>!Fx.includes(e)&&"generic"!==e)),Hx=["presentation","none"],Ux=[],zx=[];for(const[e,t]of wy.elementRoles.entries())[...t].every((e=>"generic"!==e&&Fx.includes(e)))&&Ux.push(e),[...t].every((e=>Vx.includes(e)))&&zx.push(e);const Wx=[...gx.AXObjects.keys()].filter((e=>"widget"===gx.AXObjects.get(e).type)),Gx=[],Kx=[],Xx=[...gx.AXObjects.keys()].filter((e=>["windows","structure"].includes(gx.AXObjects.get(e).type)));for(const[e,t]of gx.elementAXObjects.entries())[...t].every((e=>Wx.includes(e)))&&Gx.push(e),[...t].every((e=>Xx.includes(e)))&&Kx.push(e);function Qx(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)switch(t.type){case"Attribute":Yi(t)?a.add(t.name.slice(2)):(i.push(t),s.set(t.name,t),"contenteditable"===t.name&&(c=!0));break;case"SpreadAttribute":l=!0;break;case"BindDirective":ae(t.name)&&(u=!0);break;case"OnDirective":a.add(t.name)}for(const t of e.attributes){if("Attribute"!==t.type)continue;const c=t.name.toLowerCase();if(c.startsWith("aria-")){Nx.includes(e.name)&&Ne(t,e.name);const n=c.slice(5);if(!bx.includes(n)){Ze(t,n,q(n,bx))}"aria-hidden"===c&&v.test(e.name)&&je(t,e.name);let r=pw(t);const a=wy.aria.get(c);void 0!==a&&mw(t,c,a,r),"aria-activedescendant"!==c||o||tw(e.name,s)||s.has("tabindex")||l||Oe(t)}switch(c){case"role":{Nx.includes(e.name)&&Ve(t,e.name);const c=pw(t);if("string"!=typeof c)break;for(const p of c.split(r)){const r=p;if(r&&lw(r))ze(t,r);else if(r&&!Dx.includes(r)){et(t,r,q(r,Dx))}r!==aw(e.name,s)||["ul","ol","li"].includes(e.name)||"a"===e.name&&!s.has("href")||Ke(t,r);if(!hw(n.path,["section","article"])){r===Px.get(e.name)&&Ke(t,r)}if(!o&&!rw(r,e.name,s)){const e=wy.roles.get(r);if(e){const n=Object.keys(e.requiredProps),s=!l&&n.some((e=>!i.find((t=>t.name===e))));s&&Qe(t,r,al(n.map((e=>`"${e}"`)),"and"))}}if(!l&&!Zx(s)&&!Jx(e.name,s)&&!Yx(r)&&ow(r)&&sw(e.name,s)&&!s.get("tabindex")){[...a].some((e=>kx.includes(e)))&&Fe(e,r)}!l&&tw(e.name,s)&&(iw(r)||Yx(r))&&We(e,e.name,r),!l&&nw(e.name,s)&&ow(r)&&!$x[e.name]?.includes(r)&&Ge(e,e.name,r)}break}case"accesskey":Le(t);break;case"autofocus":"dialog"===e.name||hw(n.path,["dialog"])||De(t);break;case"scope":o||"th"===e.name||He(t);break;case"tabindex":{const e=pw(t);!isNaN(e)&&+e>0&&Xe(t);break}}}const d=s.get("role"),h=cw(d);if(a.has("click")){const t=null!==h&&!Yx(h);if(!o&&!Jx(e.name,s)&&(!d||t)&&!tw(e.name,s)&&!l){a.has("keydown")||a.has("keyup")||a.has("keypress")||function(e){qe(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:aw(e.name,s);if(!o&&!tw(e.name,s)&&!ow(h)){const t=s.get("tabindex"),n=cw(t);t&&(null===n||Number(n)>=0)&&function(e){qe(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&&wy.roles.has(m)){const{props:t}=wy.roles.get(m),n=wy.aria.keys().filter((e=>!(e in t))),s=m&&void 0===d;for(const t of i)n.includes(t.name)&&(s?Je(t,t.name,m,e.name):Ye(t,t.name,m))}if(!l&&!c&&!Jx(e.name,s)&&!Yx(h)&&(!tw(e.name,s)&&iw(h)||nw(e.name,s)&&!d)){[...a].some((e=>Sx.includes(e)))&&function(e,t){qe(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||Jx(e.name,s)||Yx(h)||tw(e.name,s)||ow(h)||nw(e.name,s)||iw(h)||lw(h))){const t=[...a].filter((e=>kx.includes(e)));t.length>0&&function(e,t,n){qe(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,al(t))}l||!a.has("mouseover")||a.has("focus")||Ue(e,"mouseover","focus"),l||!a.has("mouseout")||a.has("blur")||Ue(e,"mouseout","blur");const f=s.has("aria-label")||s.has("aria-labelledby");switch(e.name){case"a":case"button":{const t="true"===pw(s.get("aria-hidden"))||null!==pw(s.get("inert"));if(l||t||f||uw(e)||function(e){qe(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),"button"===e.name)break;const n=s.get("href")||s.get("xlink:href");if(n){const e=cw(n);null!==e&&(""===e||"#"===e||_.test(e))&&function(e,t,n){qe(e,"a11y_invalid_attribute",`'${t}' is not a valid ${n} attribute\nhttps://svelte.dev/e/a11y_invalid_attribute`)}(n,e,n.name)}else if(!l){const t=pw(s.get("id")),n=pw(s.get("name")),r=pw(s.get("aria-disabled"));t||n||"true"===r||fw(e,["href"])}break}case"input":{const t=s.get("type"),n=cw(t);if("image"===n&&!l){const t=["alt","aria-label","aria-labelledby"];t.some((e=>s.has(e)))||fw(e,t,'input type="image"')}const a=s.get("autocomplete");if(t&&a){const e=pw(a);(function(e){if(!0===e)return!1;if(!e)return!0;const t=e.trim().toLowerCase().split(r);"string"==typeof t[0]&&t[0].startsWith("section-")&&t.shift();Ix.includes(t[0])&&t.shift();if(Mx.includes(t[0]))t.shift();else{if(qx.includes(t[0])&&t.shift(),!Lx.includes(t[0]))return!1;t.shift()}"webauthn"===t[0]&&t.shift();return 0===t.length})(e)||function(e,t,n){qe(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??"...")}break}case"img":{const t=cw(s.get("alt")),n=pw(s.get("aria-hidden"));!t||n||l||x.test(t)&&function(e){qe(e,"a11y_img_redundant_alt","Screenreaders already announce `<img>` elements as an image\nhttps://svelte.dev/e/a11y_img_redundant_alt")}(e);break}case"label":{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&&(Cx.includes(e.name)||"slot"===e.name)?n=!0:t()}}),n};l||s.has("for")||n(e)||function(e){qe(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);break}case"video":{const t=s.get("aria-hidden"),n=t&&pw(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"===pw(e)))),r||function(e){qe(e,"a11y_media_has_caption",'`<video>` elements must have a `<track kind="captions">`\nhttps://svelte.dev/e/a11y_media_has_caption')}(e);break}case"figcaption":hw(n.path,["figure"])||function(e){qe(e,"a11y_figcaption_parent","`<figcaption>` must be an immediate child of `<figure>`\nhttps://svelte.dev/e/a11y_figcaption_parent")}(e);break;case"figure":{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){qe(e,"a11y_figcaption_index","`<figcaption>` must be first or last child of `<figure>`\nhttps://svelte.dev/e/a11y_figcaption_index")}(t[n]);break}}if(!l&&"a"!==e.name){const t=_x[e.name];if(t){t.some((e=>s.has(e)))||fw(e,t)}}xx.includes(e.name)&&function(e,t){qe(e,"a11y_distracting_elements",`Avoid \`<${t}>\` elements\nhttps://svelte.dev/e/a11y_distracting_elements`)}(e,e.name),l||f||u||!wx.includes(e.name)||uw(e)||function(e,t){qe(e,"a11y_missing_content",`\`<${t}>\` element should contain text\nhttps://svelte.dev/e/a11y_missing_content`)}(e,e.name)}function Yx(e){return Hx.includes(e)}function Jx(e,t){if("input"===e){if("hidden"===pw(t.get("type")))return!0}const n=t.get("aria-hidden");if(!n)return!1;const s=pw(n);return null===s||(!0===s||"true"===s)}function Zx(e){if(pw(e.get("disabled")))return!0;const t=e.get("aria-disabled");if(t){if("true"===pw(t))return!0}return!1}function ew(e,t){return zx.some((n=>dw(n,e,t)))?Ox.Interactive:"header"!==e&&Ux.some((n=>dw(n,e,t)))?Ox.NonInteractive:Gx.some((n=>dw(n,e,t)))?Ox.Interactive:Kx.some((n=>dw(n,e,t)))?Ox.NonInteractive:Ox.Static}function tw(e,t){return ew(e,t)===Ox.Interactive}function nw(e,t){return ew(e,t)===Ox.NonInteractive}function sw(e,t){return ew(e,t)===Ox.Static}function rw(e,t,n){for(const[s,r]of gx.elementAXObjects.entries())if(s.name===t&&(!s.attributes||s.attributes.every((e=>n.has(e.name)&&pw(n.get(e.name))===e.value))))for(const t of r){const n=gx.AXObjectRoles.get(t);if(n)for(const{name:t}of n)if(t===e)return!0}return!1}function aw(e,t){return"menuitem"===e?function(e){const t=e.get("type");if(!t)return;const n=cw(t);return n?Tx.get(n):void 0}(t):"input"===e?function(e){const t=e.get("type");if(!t)return;const n=cw(t);if(!n)return;return e.has("list")&&Rx.includes(n)?"combobox":Ax.get(n)}(t):Ex.get(e)}function iw(e){return Fx.includes(e)}function ow(e){return Vx.includes(e)}function lw(e){return jx.includes(e)}function cw(e){const t=pw(e);return!0===t?null:t}function pw(e){return e?!0===e.value||(Gi(e)?e.value[0].data:null):null}function uw(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(!uw(t))continue}return!0}}function dw(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===cw(t))})))}function hw(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 mw(e,t,n,s){const a=n.type;if(null!==s)switch(!0===s&&(s=""),a){case"id":case"string":""===s&&Be(e,t,"non-empty string");break;case"number":(""===s||isNaN(+s))&&Be(e,t,"number");break;case"boolean":"true"!==s&&"false"!==s&&function(e,t){qe(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);break;case"idlist":""===s&&function(e,t){qe(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);break;case"integer":""!==s&&Number.isInteger(+s)||function(e,t){qe(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);break;case"token":{const r=(n.values??[]).map((e=>e.toString()));r.includes(s.toLowerCase())||function(e,t,n){qe(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,al(r.map((e=>`"${e}"`))));break}case"tokenlist":{const a=(n.values??[]).map((e=>e.toString()));s.toLowerCase().split(r).some((e=>!a.includes(e)))&&function(e,t,n){qe(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,al(a.map((e=>`"${e}"`))));break}case"tristate":"true"!==s&&"false"!==s&&"mixed"!==s&&function(e,t){qe(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)}}function fw(e,t,n=e.name){!function(e,t,n,s){qe(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])}const yw=["preventDefault","stopPropagation","stopImmediatePropagation","capture","once","passive","nonpassive","self","trusted"];function vw(e,t){let n=!1,s=null,r=null;for(const a of e.attributes)if("Attribute"===a.type){const n=Ki(a);if(t.state.analysis.runes&&(cp(a,e),n)){const e=Xi(a);if("SequenceExpression"===e.type){let n=e.start;for(;--n>0;){const s=t.state.analysis.source[n];if("("===s)break;"{"===s&&Mr(e)}}}if(g.test(a.name)&&Ir(a,a.name),a.name.startsWith("on")&&a.name.length>2){n||Rr(a);const e=Xi(a);"Identifier"!==e.type||e.name!==a.name||t.state.scope.get(e.name)||dt(a,a.name)}"slot"===a.name&&pp(t,a),"is"===a.name&&ut(a);const s=gw.get(a.name);s&&ht(a,a.name,s),lp(a)}else if("AnimateDirective"===a.type){const e=t.path.at(-2);"EachBlock"!==e?.type?Tr(a):e.key?e.body.nodes.filter((e=>"Comment"!==e.type&&"ConstTag"!==e.type&&("Text"!==e.type||""!==e.data.trim()))).length>1&&Tr(a):Ar(a),n?Er(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?Ra(a,t):$a(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(!yw.includes(n)){Kr(a,`${yw.slice(0,-1).join(", ")} or ${yw.at(-1)}`)}"passive"===n?e=!0:"nonpassive"!==n&&"preventDefault"!==n||(t=n),e&&t&&Xr(a,"passive",t)}}}const gw=new Map([["className","class"],["htmlFor","for"]]);function bw(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(bw(t.get(r.initial),t,n))continue}return!1}}return!0}const _w=["onerror","failed","pending"];function xw(e,t){if(e!==t)throw new Error("Assertion failed")}const ww={_(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(..._t(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(..._t(e.start+2,e.value,t.analysis.runes))}a.length>0&&function(e){const t=new Set([...Se.at(-1)||[],...e]);Se.push(t)}(a),Pe.set(e,structuredClone(Se));const i=t.scopes.get(e);n(void 0!==i&&i!==t.scope?{...t,scope:i}:t),a.length>0&&Se.pop()},ArrowFunctionExpression:function(e,t){sp(e,t)},AssignmentExpression:function(e,t){if(zl(e,e.left,t),t.state.reactive_statement){if(null!==("MemberExpression"===e.left.type?Wi(e.left):e.left))for(const n of Zi(e.left)){const e=t.state.scope.get(n.name);e&&t.state.reactive_statement.assignments.add(e)}}t.state.expression&&(t.state.expression.has_assignment=!0),t.next()},AttachTag:function(e,t){rp(t.path),t.next({...t.state,expression:e.metadata.expression})},Attribute:function(e,t){t.next();const n=t.path.at(-1);if("RegularElement"===n.type&&"value"===e.name&&"option"===n.name&&rp(t.path),Yi(e)&&rp(t.path),ne(e.name)&&rp(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||(rp(t.path),e.metadata.needs_clsx=!0),!0!==e.value){for(const t of Qi(e.value))"ExpressionTag"===t.type&&"FunctionExpression"!==t.expression.type&&t.expression.type;if(Yi(e)){const n=t.path.at(-1);"RegularElement"!==n?.type&&"SvelteElement"!==n?.type||(t.state.analysis.uses_event_attributes=!0);const s=Xi(e),r=function(e,t,n){if(!t||!Q(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 ap;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 ap;if(null!=a)for(const{path:e}of a.references){const t=e.at(-1);if(void 0===t)return ap;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&&Yi(n)){s=e.at(-3);r=ip(n.name)}if(s&&r){if("RegularElement"!==s.type||s.metadata.has_spread||!Q(r))return ap}else if("FunctionDeclaration"!==t.type&&"VariableDeclarator"!==t.type)return ap}if(n.state.analysis.exports.find((e=>e.name===t.name)))return ap;a?.is_function()&&(r=a.initial)}if(null==r||r.params.length>1)return ap;const i=new Set,o=r.metadata.scope;for(const[e]of o.references){if("arguments"===e||"$host"===e)return ap;if("store_sub"===o.get(`$${e}`)?.kind)return ap;const t=o.get(e),s=n.state.scope.get(e);if(null!==s&&"SnippetBlock"===s.initial?.type&&!s.initial.metadata.can_hoist)return ap;if(null!==s&&null!==t&&s.node!==t.node&&o.declarations.get(e)!==t)return ap;if(null!==t&&"store_sub"===t.kind&&i.has(e.slice(1)))return ap;if(null!==t&&"EachBlock"===t.initial?.type)return ap;if(null!==t&&("rest_param"===t.declaration_kind||(!n.state.analysis.runes&&"each"===t.kind||"normal"===t.kind)&&t.updated))return ap;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(Kl(e.pending),Kl(e.then),Kl(e.catch),t.state.analysis.runes){if(Gl(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},":")}}rp(t.path),t.visit(e.expression,{...t.state,expression:e.metadata.expression}),e.pending&&t.visit(e.pending),e.then&&t.visit(e.then),e.catch&&t.visit(e.catch)},AwaitExpression:function(e,t){const n="instance"===t.state.ast_type&&1===t.state.function_depth;(n||function(e,t){if(t)return!0;let n=e.length;for(;n--;){const t=e[n];if("ArrowFunctionExpression"===t.type||"FunctionExpression"===t.type||"FunctionDeclaration"===t.type)return!1;if(t.metadata)return!0}return!1}(t.path,t.state.in_derived)&&!function(e,t){let n=e.length;for(;n--;){const s=e[n];if(s.metadata)return!0;switch(s.type){case"ArrayExpression":if(t!==s.elements.at(-1))return!1;break;case"AssignmentExpression":case"BinaryExpression":case"LogicalExpression":if(t===s.left)return!1;break;case"CallExpression":case"NewExpression":if(t!==s.arguments.at(-1))return!1;break;case"ConditionalExpression":if(t===s.test)return!1;break;case"MemberExpression":if(s.computed&&t===s.object)return!1;break;case"ObjectExpression":if(t!==s.properties.at(-1))return!1;break;case"Property":if(t===s.key)return!1;break;case"SequenceExpression":case"TemplateLiteral":if(t!==s.expressions.at(-1))return!1;break;case"TaggedTemplateExpression":if(t!==s.quasi.expressions.at(-1))return!1;break;default:return!1}t=s}}(t.path,e))&&t.state.analysis.pickled_awaits.add(e);let s=n;t.state.expression&&(t.state.expression.has_await=!0,t.state.fragment&&t.path.some((e=>"ConstTag"===e.type))&&(t.state.fragment.metadata.has_await=!0),s=!0),s&&(t.state.options.experimental.async||function(e){Us(e,"experimental_async","Cannot use `await` in deriveds and template expressions, or at the top level of a component, unless the `experimental.async` compiler option is `true`\nhttps://svelte.dev/e/experimental_async")}(e),t.state.analysis.runes||function(e){Us(e,"legacy_await_invalid","Cannot use `await` in deriveds and template expressions, or at the top level of a component, unless in runes mode\nhttps://svelte.dev/e/legacy_await_invalid")}(e)),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 op){const t=op[e.name];if(t.valid_elements&&!t.valid_elements.includes(n.name)&&Nr(e,e.name,t.valid_elements.map((e=>`<${e}>`)).join(", ")),t.invalid_elements&&t.invalid_elements.includes(n.name)){const t=Object.entries(op).filter((([e,t])=>t.valid_elements?.includes(n.name)||!t.valid_elements&&!t.invalid_elements?.includes(n.name))).map((([e])=>e)).sort();Lr(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&&!Gi(t)?"value"===e.name&&!0!==t.value||function(e){Us(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&&Nr(e,e.name,'<input type="checkbox">'),"files"===e.name&&"file"!==t?.value[0].data&&Nr(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&&!Gi(e)&&!0!==e.value));e&&function(e){Us(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&&ce(n.name)&&Nr(e,e.name,"non-<svg> elements. Use 'clientWidth' for <svg> instead"),ae(e.name)){const t=n.attributes.find((e=>"Attribute"===e.type&&"contenteditable"===e.name));t?Gi(t)||!0===t.value||function(e){Us(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){Us(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=q(e.name,Object.keys(op));if(t){const s=op[t];s.valid_elements&&!s.valid_elements.includes(n.name)||Lr(e,e.name,`Did you mean '${t}'?`)}Lr(e,e.name)}if("SequenceExpression"===e.expression.type){"group"===e.name&&function(e){Us(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||Or(e,e.name);return 2!==e.expression.expressions.length&&qr(e),void rp(t.path)}zl(e,e.expression,t);const s=e.expression,r=Wi(s);null===r&&qr(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){Us(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){Us(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]=eo(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(...eo(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){qe(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=ro(t.path,-1),s=fc(e,t.state.scope);if(s&&"$inspect"!==s)for(const t of e.arguments)"SpreadElement"===t.type&&ir(e,s);switch(s){case null:Xl(e.callee,t.state.scope)||(t.state.analysis.needs_context=!0);break;case"$bindable":e.arguments.length>1&&sr(e,"$bindable","zero or one arguments"),"AssignmentPattern"===n.type&&"ObjectPattern"===t.path.at(-3)?.type&&"VariableDeclarator"===t.path.at(-4)?.type&&"$props"===fc(t.path.at(-4).init,t.state.scope)||function(e){Us(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?nr(e,"$host"):"module"!==t.state.ast_type&&t.state.analysis.custom_element||function(e){Us(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&&Zs(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){Us(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&&nr(e,s);break;case"$props.id":{const r=ro(t.path,-2);t.state.analysis.props_id&&Zs(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){Us(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&&nr(e,s),t.state.analysis.props_id=n.id;break}case"$state":case"$state.raw":case"$derived":case"$derived.by":{const r=function(e,t){return"VariableDeclarator"===e.type&&"ConstTag"!==ro(t.path,-3).type}(n,t)||function(e){return"PropertyDefinition"===e.type&&!e.static&&!e.computed}(n)||function(e,t){if("AssignmentExpression"===e.type&&"="===e.operator&&"MemberExpression"===e.left.type&&"ThisExpression"===e.left.object.type&&("Identifier"===e.left.property.type&&!e.left.computed||"PrivateIdentifier"===e.left.property.type||"Literal"===e.left.property.type)){const e=ro(t.path,-5);return"MethodDefinition"===e?.type&&"constructor"===e.kind}return!1}(n,t);r||hr(e,s),"$derived"!==s&&"$derived.by"!==s||1===e.arguments.length?e.arguments.length>1&&sr(e,s,"zero or one arguments"):sr(e,s,"exactly one argument");break}case"$effect":case"$effect.pre":"ExpressionStatement"!==n.type&&function(e){Us(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&&sr(e,s,"exactly one argument"),t.state.analysis.needs_context=!0;break;case"$effect.tracking":0!==e.arguments.length&&nr(e,s);break;case"$effect.root":case"$inspect().with":case"$state.snapshot":1!==e.arguments.length&&sr(e,s,"exactly one argument");break;case"$effect.pending":t.state.expression&&(t.state.expression.has_state=!0);break;case"$inspect":e.arguments.length<1&&sr(e,s,"one or more arguments");break;case"$inspect.trace":{e.arguments.length>1&&sr(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){Us(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){Us(e,"inspect_trace_generator","`$inspect.trace(...)` cannot be used inside a generator function\nhttps://svelte.dev/e/inspect_trace_generator")}(e),be){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 ge.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=`(${ke(a)})`;t.state.scope.tracing=Pi(di(e+" "+n))}t.state.analysis.tracing=!0}break}}if("$derived"===s){const n=Zo();t.next({...t.state,function_depth:t.state.function_depth+1,in_derived:!0,expression:n}),n.has_await&&t.state.analysis.async_deriveds.add(e)}else"$inspect"===s?t.next({...t.state,function_depth:t.state.function_depth+1}):t.next();t.state.expression&&(!Ql(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){if(!t.state.analysis.runes)return void t.next();const n=[];for(const t of e.body)"MethodDefinition"!==t.type&&"PropertyDefinition"!==t.type||"PrivateIdentifier"!==t.key.type||n.push(t.key.name);const s=new Map,r=new Map;t.state.analysis.classes.set(e,s);let a=null;function i(e,n,a){const i=el(n);if(null===i)return;const o=fc(a,t.state.scope);if(o&&function(e){return de.includes(e)}(o)){s.has(i)&&function(e,t){Us(e,"state_field_duplicate",`\`${t}\` has already been declared on this class\nhttps://svelte.dev/e/state_field_duplicate`)}(e,i);const t=("AssignmentExpression"!==e.type&&e.static?"@":"")+i,l=r.get(t);!l||1===l.length&&"prop"===l[0]||Xs(e,t),s.set(i,{node:e,type:o,key:"PrivateIdentifier"===n.type?n:null,value:a})}}for(const t of e.body){if("PropertyDefinition"===t.type&&!t.computed&&!t.static){i(t,t.key,t.value);const e=el(t.key);if(!r.get(e)){r.set(e,[t.value?"assigned_prop":"prop"]);continue}Xs(t,e)}if("MethodDefinition"===t.type)if("constructor"===t.kind)a=t;else if(!t.computed){const e=(t.static?"@":"")+el(t.key),n=r.get(e);if(!n){r.set(e,[t.kind]);continue}if((n.includes(t.kind)||n.includes("prop")||n.includes("assigned_prop"))&&Xs(t,e),"get"===t.kind){if(1===n.length&&"set"===n[0]){n.push("get");continue}}else{if("set"!==t.kind){n.push(t.kind);continue}if(1===n.length&&"get"===n[0]){n.push("set");continue}}Xs(t,e)}}if(a)for(const e of a.value.body.body){if("ExpressionStatement"!==e.type)continue;if("AssignmentExpression"!==e.expression.type)continue;const{left:t,right:n}=e.expression;"MemberExpression"===t.type&&("ThisExpression"===t.object.type&&(t.computed&&"Literal"!==t.property.type||i(e.expression,t.property,n)))}for(const[e,t]of s){if("#"===e[0])continue;let s=e.replace(f,"_");for(;n.includes(s);)s="_"+s;n.push(s),t.key=pi(s)}t.next({...t.state,state_fields:s})},ClassDeclaration:function(e,t){t.state.analysis.runes&&null!==e.id&&Yl(t.state.scope.get(e.id.name));const n="module"===t.state.ast_type?0:1;t.state.scope.function_depth>n&&function(e){qe(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){rp(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(".")),dp(e,t)},ConstTag:function(e,t){t.state.analysis.runes&&Gl(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){Us(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);const r=e.declaration.declarations[0];t.visit(r.id),t.visit(r.init,{...t.state,expression:e.metadata.expression,in_derived:!0})},DebugTag:function(e,t){t.state.analysis.runes&&Gl(e,t.state,"@"),t.next()},EachBlock:function(e,t){Gl(e,t.state,"#"),Kl(e.body),Kl(e.fallback);const n=e.context;if("Identifier"!==n?.type||"$state"!==n.name&&"$derived"!==n.name||hr(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),!t.state.analysis.runes){let n=!!e.context&&Zi(e.context).some((e=>{const n=t.state.scope.get(e.name);return!!n?.mutated}));for(const t of e.metadata.expression.dependencies)mp(t,e.metadata.transitive_deps);if(n)for(const t of e.metadata.transitive_deps)"normal"!==t.kind||"const"!==t.declaration_kind&&"let"!==t.declaration_kind&&"var"!==t.declaration_kind||(t.kind="state")}rp(t.path)},ExportDefaultDeclaration:function(e,t){t.state.ast_type?Js(e):"Identifier"===e.declaration.type&&Jl(e,t.state.scope,e.declaration.name),t.next()},ExportNamedDeclaration:function(e,t){if(t.next(),t.state.ast_type&&e.specifiers.some((e=>"Identifier"===e.exported.type?"default"===e.exported.name:"default"===e.exported.value))&&Js(e),"VariableDeclaration"===e.declaration?.type){t.state.analysis.runes&&"instance"===t.state.ast_type&&"let"===e.declaration.kind&&function(e){Us(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 Zi(n.id)){const n=t.state.scope.get(s.name);n&&("derived"===n.kind&&Ks(e),"state"!==n.kind&&"raw_state"!==n.kind||!n.reassigned||dr(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 Zi(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 Jl(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){qe(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=rl("#text",t.state.parent_element);n&&ea(e,n)}rp(t.path),t.next({...t.state,expression:e.metadata.expression})},Fragment:function(e,t){t.next({...t.state,fragment:e})},FunctionDeclaration:function(e,t){t.state.analysis.runes&&null!==e.id&&Yl(t.state.scope.get(e.id.name)),sp(e,t)},FunctionExpression:function(e,t){sp(e,t)},HtmlTag:function(e,t){t.state.analysis.runes&&Gl(e,t.state,"@"),rp(t.path),t.next({...t.state,expression:e.metadata.expression})},Identifier:function(e,t){let n=t.path.length,s=t.path[--n];if(!Hl(e,s))return;if(rp(t.path),"arguments"!==e.name||t.path.some((e=>"FunctionDeclaration"===e.type||"FunctionExpression"===e.type))||function(e){Us(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&&me(e.name)&&null===t.state.scope.get(e.name)&&"store_sub"!==t.state.scope.get(e.name.slice(1))?.kind){let r=e,a=e.name;for(;"MemberExpression"===s.type;)s.computed&&rr(s),a+=`.${s.property.name}`,r=s,s=t.path[--n],me(a)||("$effect.active"===a&&lr(s,"$effect.active","$effect.tracking"),"$state.frozen"===a&&lr(s,"$state.frozen","$state.raw"),"$state.is"===a&&or(s,"$state.is"),ar(s,a));"CallExpression"!==s.type&&function(e){Us(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);if(t.state.analysis.runes||("$$props"===e.name&&(t.state.analysis.uses_props=!0),"$$restProps"===e.name&&(t.state.analysis.uses_rest_props=!0)),r){if(t.state.expression&&(t.state.expression.dependencies.add(r),t.state.expression.references.add(r),t.state.expression.has_state||=!("static"===r.kind||"prop"!==r.kind&&"bindable_prop"!==r.kind&&"rest_prop"!==r.kind&&r.is_function()||t.state.scope.evaluate(e).is_known)),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&&!Ap(r.initial.arguments[0],t.state.scope))||"raw_state"===r.kind||"derived"===r.kind)&&("AssignmentExpression"!==s.type||s.left!==e)&&"UpdateExpression"!==s.type){let n="closure",s=t.path.length;for(;s--;){const e=t.path[s];if("ArrowFunctionExpression"===e.type||"FunctionDeclaration"===e.type||"FunctionExpression"===e.type)break;if("CallExpression"===e.type&&e.arguments.includes(t.path[s+1])){const s=fc(e,t.state.scope);if("$state"===s||"$state.raw"===s){n="derived";break}}}!function(e,t,n){qe(e,"state_referenced_locally",`This reference only captures the initial value of \`${t}\`. Did you mean to reference it inside a ${n} instead?\nhttps://svelte.dev/e/state_referenced_locally`)}(e,e.name,n)}if(t.state.reactive_statement&&r.scope===t.state.analysis.module.scope&&r.reassigned&&function(e){qe(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),r.metadata?.is_template_declaration&&t.state.options.experimental.async){let n;for(let s=t.path.length-1;s>=0;s--){const a=t.path[s],i=t.path[s-1];if("SnippetBlock"===a.type)n=a.expression.name;else if(n&&i&&"Fragment"===a.type&&(Qo(i)||"SvelteBoundary"===i.type&&("failed"===n||"pending"===n))){if(Qo(i)?i.metadata.scopes.default!==r.scope:t.state.scopes.get(a)!==r.scope)break;Hr(e,e.name)}}}}},IfBlock:function(e,t){Kl(e.consequent),Kl(e.alternate),t.state.analysis.runes&&Gl(e,t.state,e.elseif?":":"#"),rp(t.path),t.visit(e.test,{...t.state,expression:e.metadata.expression}),t.visit(e.consequent),e.alternate&&t.visit(e.alternate)},ImportDeclaration:function(e,t){if(t.state.analysis.runes){const t=e.source.value;if(t.startsWith("svelte/internal")&&function(e){Us(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||cr(t,t.imported.name))}},KeyBlock:function(e,t){Kl(e.fragment),t.state.analysis.runes&&Gl(e,t.state,"#"),rp(t.path),t.visit(e.expression,{...t.state,expression:e.metadata.expression}),t.visit(e.fragment)},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){Us(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=Zi(e.body.expression.left);if("MemberExpression"===e.body.expression.left.type){const t=Wi(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){qe(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){Us(e,"let_directive_invalid_placement","`let:` directive at invalid position\nhttps://svelte.dev/e/let_directive_invalid_placement")}(e)},Literal:function(e){"string"==typeof e.value&&b.test(e.value)&&tt(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("$$")&&er(e.property)}t.state.expression&&(t.state.expression.has_member_expression=!0,t.state.expression.has_state||=!Ql(e,t)),Xl(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){qe(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){qe(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),rp(t.path),t.next({...t.state,expression:e.metadata.expression})},PropertyDefinition:function(e,t){const n=el(e.key),s=n&&t.state.state_fields.get(n);s&&e!==s.node&&e.value&&e.start<s.node.start&&ur(e),t.next()},RegularElement:function(e,t){if(vw(e,t),Qx(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&&Ea(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(Jo("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.metadata.synthetic_value_node=t}const n=t.state.scope.get(e.name);if(null!==n&&"import"===n.declaration_kind&&0===n.references.length&&function(e,t){qe(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(ce(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=ue(e.name),Yo(e)&&e.attributes.length>0&&rp(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=sl(e.name,r);t&&(s?ft(e,t):ea(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=rl(e.name,t.state.parent_element);r&&(s?ft(e,r):ea(e,r)),n=!0}}}const s=e.name.replace(/[a-zA-Z-]*:/g,"");if("/"!==t.state.analysis.source[e.end-2]||z(s)||ce(s)||ue(s)||function(e,t){qe(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){Gl(e,t.state,"@"),e.metadata.path=[...t.path];const n=io(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&&up(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=io(e.expression).arguments;for(const e of i)"SpreadElement"===e.type&&ta(e);"MemberExpression"===s.type&&"Identifier"===s.property.type&&["bind","apply","call"].includes(s.property.name)&&function(e){Us(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),rp(t.path),t.visit(s,{...t.state,expression:e.metadata.expression});for(const s of n.arguments){const n=Zo();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){qe(e,"slot_element_deprecated","Using `<slot>` to render parent content is deprecated. Use `{@render ...}` tags instead\nhttps://svelte.dev/e/slot_element_deprecated")}(e),rp(t.path);let n="default";for(const t of e.attributes)"Attribute"===t.type?"name"===t.name&&(Gi(t)||ca(t),n=t.value[0].data,"default"===n&&pa(t)):"SpreadAttribute"!==t.type&&"LetDirective"!==t.type&&la(t);t.state.analysis.slot_names.set(n,e),t.next()},SnippetBlock:function(e,t){t.state.analysis.snippets.add(e),Kl(e.body),t.state.analysis.runes&&Gl(e,t.state,"#");for(const t of e.parameters)"RestElement"===t.type&&ua(t);t.next({...t.state,parent_element:null});const n=1===t.path.length&&"Fragment"===t.path[0].type&&bw(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)}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){Us(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){Us(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){rp(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){Us(e,"style_directive_invalid_modifier","`style:` directive can only use the `important` modifier\nhttps://svelte.dev/e/style_directive_invalid_modifier")}(e),rp(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 Qi(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,e.metadata.expression.has_await||=t.metadata.expression.has_await)}},SvelteBody:function(e,t){Ll(e);for(const t of e.attributes)("SpreadAttribute"===t.type||"Attribute"===t.type&&!Yi(t))&&da(t);t.next()},SvelteComponent:function(e,t){t.state.analysis.runes&&function(e){qe(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),dp(e,t)},SvelteDocument:function(e,t){Ll(e);for(const t of e.attributes)("SpreadAttribute"===t.type||"Attribute"===t.type&&!Yi(t))&&Zr(t,"svelte:document");t.next()},SvelteElement:function(e,t){vw(e,t),Qx(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&&Gi(e)));if(n)e.metadata.svg=n.value[0].data===I,e.metadata.mathml=n.value[0].data===M;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}}}rp(t.path),t.visit(e.tag,{...t.state,expression:e.metadata.expression});for(const n of e.attributes)t.visit(n);t.visit(e.fragment,{...t.state,parent_element:null})},SvelteFragment:function(e,t){const n=t.path.at(-2);"Component"!==n?.type&&"SvelteComponent"!==n?.type&&function(e){Us(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&&pp(t,n):"LetDirective"!==n.type&&ya(n);t.next({...t.state,parent_element:null})},SvelteHead:function(e,t){for(const t of e.attributes)va(t);rp(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){Us(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){qe(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,fe===ve?"Self":t.state.analysis.name,fe===ve?"Self.svelte":fe.split(/[/\\]/).pop())}dp(e,t)},SvelteWindow:function(e,t){Ll(e);for(const t of e.attributes)("SpreadAttribute"===t.type||"Attribute"===t.type&&!Yi(t))&&Zr(t,"svelte:window");t.next()},SvelteBoundary:function(e,t){for(const t of e.attributes)"Attribute"===t.type&&_w.includes(t.name)||ha(t),(!0===t.value||Array.isArray(t.value)&&(1!==t.value.length||"ExpressionTag"!==t.value[0].type))&&ma(t);t.next()},TaggedTemplateExpression:function(e,t){t.state.expression&&!Ql(e.tag,t)&&(t.state.expression.has_call=!0,t.state.expression.has_state=!0),t.next()},TemplateElement:function(e){b.test(e.value.cooked??"")&&tt(e)},Text:function(e,t){const n=t.path.at(-1);if("Fragment"===n.type&&t.state.parent_element&&p.test(e.data)){const n=rl("#text",t.state.parent_element);n&&ea(e,n)}b.lastIndex=0;for(const s of e.data.matchAll(b)){let r=!1;if("Fragment"===n.type)for(const s of n.nodes){if(s===e)break;"Comment"===s.type&&(r||=_t(s.start+4,s.data,t.state.analysis.runes).includes("bidirectional_control_characters"))}if(!r){let t=s.index+e.start;tt({start:t,end:t+s[0].length})}}},TransitionDirective:function(e,t){rp(t.path),t.next()},TitleElement:function(e,t){for(const t of e.attributes)Ta(t);for(const t of e.fragment.nodes)"Text"!==t.type&&"ExpressionTag"!==t.type&&Aa(t);t.next()},UpdateExpression:function(e,t){if(zl(e,e.argument,t),t.state.reactive_statement){const n="MemberExpression"===e.argument.type?Wi(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.state.expression&&(t.state.expression.has_assignment=!0),t.next()},UseDirective:function(e,t){rp(t.path),t.next()},VariableDeclarator:function(e,t){if(function(e,t){const n=Zi(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&&Gs(e.id)}(e,t.state),t.state.analysis.runes){const n=fc(e.init,t.state.scope),{paths:s}=no(e.id,ci("dummy"));for(const e of s)Yl(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("$derived"===n)return t.visit(e.id),void t.visit(e.init,{...t.state,in_derived:!0});if("$props"===n){if("ObjectPattern"!==e.id.type&&"Identifier"!==e.id.type&&function(e){Us(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.custom_element&&null==t.state.options.customElementOptions?.props){let t;"Identifier"!==e.id.type&&null==(t=e.id.properties.find((e=>"RestElement"===e.type)))||function(e){qe(e,"custom_element_props_identifier","Using a rest element or a non-destructured declaration with `$props()` means that Svelte can't infer what properties to expose when creating a custom element. Consider destructuring all the props or explicitly specifying the `customElement.props` option.\nhttps://svelte.dev/e/custom_element_props_identifier")}(t??e.id)}if(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{xw(e.id.type,"ObjectPattern");for(const n of e.id.properties){if("Property"!==n.type)continue;n.computed&&tr(n),"Identifier"===n.key.type&&n.key.name.startsWith("$$")&&er(n);const e="AssignmentPattern"===n.value.type?n.value.left:n.value;"Identifier"!==e.type&&tr(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){Us(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 Cw(e,t,n,s){const r=e?.content??{type:"Program",sourceType:"module",start:-1,end:-1,body:[]},{scope:a,scopes:i,has_await:o}=hc(r,t,n,s);return{ast:r,scope:a,scopes:i,has_await:o}}const kw=["$$props","$$restProps","$$slots"];function Sw(e,n,s){const r=new dc,a=Cw(e.module,r,!1,null),i=Cw(e.instance,r,!0,a.scope),{scope:o,scopes:l,has_await:c}=hc(e.fragment,r,!1,i.scope),p={ast:e.fragment,scope:o,scopes:l};let u=[];for(const[e,t]of a.scope.references){if("$"!==e[0]||kw.includes(e))continue;"$"!==e&&"$"!==e[1]||Ys(t[0].node,e);const n=e.slice(1),r=i.scope.get(n),o=r?.initial;if(!1===s.runes||!me(e)||null!==r&&(null===fc(o,i.scope)||"props"!==n&&"$props"===fc(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&&Us(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]))Ys(t[0].node,e);else if(null!==r&&me(e))for(const{node:e,path:s}of t)"CallExpression"===s.at(-1)?.type&&pt(e,n);if(a.ast)for(const{node:e,path:n}of t)e.start>a.ast.start&&e.end<a.ast.end&&null===fc(n.at(-1),a.scope)&&mr(e);u.push((()=>{null!==r&&"normal"===r.kind&&"let"===r.declaration_kind&&r.reassigned&&(r.kind="state")}));i.scope.declare(ci(e),"store_sub","synthetic").references=t,i.scope.references.set(e,t),a.scope.references.delete(e)}}const d=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),h=s.runes??(c||i.has_await||Array.from(a.scope.references.keys()).some(me));if(!h)for(let e of u)e();if(h&&e.module){const t=e.module.attributes.find((e=>"context"===e.name));t&&function(e){qe(e,"script_context_deprecated",'`context="module"` is deprecated, use the `module` attribute instead\nhttps://svelte.dev/e/script_context_deprecated')}(t)}const m=!!s.customElementOptions||s.customElement,f=a.scope.generate(s.name??d);Ae({component_name:f,dev:s.dev,rootDir:s.rootDir,runes:h});const y={name:f,root:r,module:a,instance:i,template:p,comments:e.comments,elements:[],runes:h,maybe_runes:!h&&!1!==s.runes&&![...a.scope.references.keys()].some((e=>["$$props","$$restProps"].includes(e)))&&!i.ast.body.some((e=>"LabeledStatement"===e.type||"ExportNamedDeclaration"===e.type&&(e.declaration&&"VariableDeclaration"===e.declaration.type&&"let"===e.declaration.kind||e.specifiers.some((e=>"Identifier"===e.local.type&&"let"===i.scope.get(e.local.name)?.declaration_kind))))),tracing:!1,classes:new Map,immutable:h||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_mutation_validation:!1,needs_props:!1,event_directive_node:null,uses_event_attributes:!1,custom_element:m,inject_styles:"injected"===s.css||m,accessors:m||!h&&!!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:fe,name:d,hash:H}):"",keyframes:[],has_global:!1},source:n,snippet_renderers:new Map,snippets:new Set,async_deriveds:new Set,pickled_awaits:new Set};if(!h){for(const e of i.ast.body)if("ExportNamedDeclaration"===e.type)if(y.needs_props=!0,e.declaration){if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type)y.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 Zi(t.id))y.exports.push({name:e.name,alias:null});else for(const t of e.declaration.declarations)for(const e of Zi(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?y.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(p.ast,null,{EachBlock(e){const n=p.scopes.get(e);for(const s of n.declarations.values())if(s.updated){const s={scope:n.parent,scopes:p.scopes};t(e.expression,s,{_:mc,Identifier(e,t){if(Hl(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&&y.runes&&rt(t),"customElement"!==t.name||s.customElement||it(t),"immutable"===t.name&&y.runes&&at(t);if(y.runes){const e=a.scope.references.get("$$props");e&&function(e){Us(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){Us(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,p]){t(e,{scope:n,scopes:r,analysis:y,options:s,ast_type:e===i.ast?"instance":e===p.ast?"template":"module",fragment:e===p.ast?e:null,parent_element:null,has_props_rune:!1,component_slots:new Set,expression:null,state_fields:new Map,function_depth:n.function_depth,reactive_statement:null,in_derived:!1},ww)}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){ct(n.node,t);continue e}}continue t}}ct(n.node,t);continue e}}else{i.scope.declare(ci("$$props"),"rest_prop","synthetic"),i.scope.declare(ci("$$restProps"),"rest_prop","synthetic");for(const{ast:e,scope:n,scopes:r}of[a,i,p]){t(e,{scope:n,scopes:r,analysis:y,options:s,fragment:e===p.ast?e:null,parent_element:null,has_props_rune:!1,ast_type:e===i.ast?"instance":e===p.ast?"template":"module",reactive_statement:null,component_slots:new Set,expression:null,state_fields:new Map,function_depth:n.function_depth,in_derived:!1},ww)}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}`)||lt(t.node,e)}y.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=vc(n);if(s?.length){!function(e,t){Us(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}(y.reactive_statements)}for(const e of y.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;const e=t.local.name;y.module.scope.get(e)||([...y.snippets].find((t=>t.expression.name===e))?pr(t):Qs(t,e))}y.event_directive_node&&y.uses_event_attributes&&function(e,t){Us(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`)}(y.event_directive_node,y.event_directive_node.name);for(const[e,t]of y.snippet_renderers){t||(e.metadata.snippets=y.snippets);for(const t of e.metadata.snippets)t.metadata.sites.add(e)}if(y.uses_render_tags&&(y.uses_slots||!y.custom_element&&y.slot_names.size>0)){!function(e){Us(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")}(y.slot_names.values().next().value??y.source.indexOf("$$slot"))}if(y.css.ast){!function(e,n){t(e,{keyframes:n.css.keyframes,rule:null,analysis:n},Ac)}(y.css.ast,y);for(const e of y.elements)jc(y.css.ast,e);const{comment:e}=y.css.ast.content;e&&_t(e.start,e.data,y.runes).includes("css_unused_selector")||t(v=y.css.ast,{stylesheet:v},np)}var v;for(const e of y.elements){e.metadata.scoped&&Yo(e)&&rp(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(Jo("class",-1,-1,[{type:"Text",data:"",raw:"",start:-1,end:-1}])),s||n||!a||e.attributes.push(Jo("style",-1,-1,[{type:"Text",data:"",raw:"",start:-1,end:-1}]))}return y}const Pw=",".charCodeAt(0),Ew=";".charCodeAt(0),Tw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Aw=new Uint8Array(64),$w=new Uint8Array(128);for(let e=0;e<64;e++){const t=Tw.charCodeAt(e);Aw[e]=t,$w[t]=e}function Rw(e,t){let n=0,s=0,r=0;do{const t=e.next();r=$w[t],n|=(31&r)<<s,s+=5}while(32&r);const a=1&n;return n>>>=1,a&&(n=-2147483648|-n),t+n}function Iw(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(Aw[t])}while(s>0);return t}function Mw(e,t){return!(e.pos>=t)&&e.peek()!==Pw}const qw="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 Lw{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+=qw.decode(t),this.pos=0)}flush(){const{buffer:e,out:t,pos:n}=this;return n>0?t+qw.decode(e.subarray(0,n)):t}}class Ow{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 Nw(e){const{length:t}=e,n=new Ow(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=Rw(n,r),r<p&&(c=!1),p=r,Mw(n,e)?(a=Rw(n,a),i=Rw(n,i),o=Rw(n,o),Mw(n,e)?(l=Rw(n,l),s=[r,a,i,o,l]):s=[r,a,i,o]):s=[r],t.push(s),n.pos++}c||Dw(t),s.push(t),n.pos=e+1}while(n.pos<=t);return s}function Dw(e){e.sort(jw)}function jw(e,t){return e[0]-t[0]}function Bw(e){const t=new Lw;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(Ew),0===o.length)continue;let l=0;for(let e=0;e<o.length;e++){const i=o[e];e>0&&t.write(Pw),l=Iw(t,i[0],l),1!==i.length&&(n=Iw(t,i[1],n),s=Iw(t,i[2],s),r=Iw(t,i[3],r),4!==i.length&&(a=Iw(t,i[4],a)))}}return t.flush()}const Fw=0,Vw=1,Hw=2,Uw=3,zw=4;class Ww{#r;#a;#i=!1;multiline=!1;constructor(e,t=[]){this.#r=e,this.#a=t}indent(){this.#a.push(Hw)}dedent(){this.#a.push(Uw)}margin(){this.#a.push(Fw)}newline(){this.#i=!0,this.#a.push(Vw)}space(){this.#a.push(zw)}append(e){this.#a.push(e.#a),this.#i&&(this.multiline=!0)}write(e,t){t?.loc?(this.location(t.loc.start.line,t.loc.start.column),this.#a.push(e),this.location(t.loc.end.line,t.loc.end.column)):this.#a.push(e),this.#i&&(this.multiline=!0)}location(e,t){this.#a.push({type:"Location",line:e,column:t})}visit(e){const t=this.#r[e.type];if(!t){let t=`Not implemented: ${e.type}`;throw e.type.includes("TS")&&(t+=" (consider using 'esrap/languages/ts')"),e.type.includes("JSX")&&(t+=" (consider using 'esrap/languages/tsx')"),new Error(t)}this.#r._?this.#r._(e,this,(e=>t(e,this))):t(e,this)}empty(){return!this.#a.some(Kw)}measure(){return Gw(this.#a)}new(){return new Ww(this.#r)}}function Gw(e,t=0,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+=Gw(t))}return s}function Kw(e){return Array.isArray(e)?e.some(Kw):"string"==typeof e&&e.length>0}let Xw=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?Xw=e=>window.btoa(unescape(encodeURIComponent(e))):"function"==typeof Buffer&&(Xw=e=>Buffer.from(e,"utf-8").toString("base64"));let Qw=class{version=3;names=[];constructor(e,t){this.sources=[t.sourceMapSource||null],this.sourcesContent=[t.sourceMapContent||null],this.mappings=!1===t.sourceMapEncodeMappings?e:Bw(e)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Xw(this.toString())}};function Yw(e,t,n={}){const s=[];new Ww(t,s).visit(e);let r="",a=0,i=[],o=[];function l(e){r+=e;for(let t=0;t<e.length;t+=1)"\n"===e[t]?(i.push(o),o=[],a=0):a+=1}let c="\n";const p=n.indent??"\t";let u,d=!1,h=!1,m=!1;function f(e){if(Array.isArray(e))for(let t=0;t<e.length;t+=1)f(e[t]);else"number"!=typeof e?(d?l(h?"\n"+c:c):m&&l(" "),h=d=m=!1,"string"!=typeof e?"Location"===e.type&&o.push([a,0,e.line-1,e.column]):l(e)):e===Vw?d=!0:e===Fw?h=!0:e===zw?m=!0:e===Hw?c+=p:e===Uw&&(c=c.slice(0,-p.length))}for(let e=0;e<s.length;e+=1)f(s[e]);return i.push(o),{code:r,get map(){return u??=new Qw(i,n)}}}const Jw={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},Zw={"||":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};function eC(e,t){if("Line"===e.type)t.write(`//${e.value}`);else{t.write("/*");const n=e.value.split("\n");for(let e=0;e<n.length;e+=1)e>0&&t.newline(),t.write(n[e]);t.write("*/")}}var tC=(e={})=>{const t="double"===e.quotes?'"':"'",n=e.comments??[];let s=0;function r(e,t,r){for(;s<n.length;){const a=n[s];if(a&&t&&a.loc.start.line===t.line&&(null===r||rC(a.loc.end,r))){if(e.write(" "),eC(a,e),s+=1,"Line"!==a.type)continue;e.newline()}break}}function a(e,t,r,a){let i=!0;for(;s<n.length;){const o=n[s];if(!(o&&o.loc&&r&&rC(o.loc.start,r)))break;i&&null!==t&&o.loc.start.line>t.line&&(e.margin(),e.newline()),i=!1,eC(o,e),o.loc.end.line<r.line?e.newline():a&&e.write(" "),s+=1}}function i(e,t,n,s,i=","){let o=!1,l=-1;const c=[],p=t.map(((s,a)=>{const p=e.new();s&&p.visit(s),c[a]=p.multiline,(a<t.length-1||!s)&&p.write(i);const u=a===t.length-1?n:t[a+1]?.loc?.start||null;return r(p,s?.loc?.end||null,u),l+=p.measure()+1,o||=p.multiline,p}));o||=l>60,o?(e.indent(),e.newline()):s&&l>0&&e.write(" ");let u=null;for(let n=0;n<t.length;n+=1){const s=p[n];null!==u&&((c[n-1]||c[n])&&e.margin(),t[n]&&(o?e.newline():e.write(" "))),e.append(s),u=s}a(e,t[t.length-1]?.loc?.end??null,n,!1),o?(e.dedent(),e.newline()):s&&l>0&&e.write(" ")}function o(e,t){!function(e){if(!e.loc)return void(s=n.length);let t=n[s-1],r=n[s];r&&r.loc&&!rC(r.loc.start,e.loc.start)&&(!t||t.loc&&rC(t.loc.start,e.loc.start))||(s=n.findIndex((t=>t.loc&&e.loc&&!rC(t.loc.start,e.loc.start))),-1===s&&(s=n.length))}(t);let i=null,o=!1;for(let n=0;n<t.body.length;n+=1){const s=t.body[n];if("EmptyStatement"===s.type)continue;const a=e.new();a.visit(s),null!==i&&((a.multiline||o||s.type!==i)&&e.margin(),e.newline()),e.append(a),r(e,s.loc?.end||null,t.body[n+1]?.loc?.end??t.loc?.end??null),i=s.type,o=a.multiline}t.loc&&(e.newline(),a(e,t.body[t.body.length-1]?.loc?.end??null,t.loc.end,!1))}const l={"ArrayExpression|ArrayPattern":(e,t)=>{t.write("["),i(t,e.elements,e.loc?.end??null,!1),t.write("]")},"BinaryExpression|LogicalExpression":(e,t)=>{nC(e.left,e,!1)?(t.write("("),t.visit(e.left),t.write(")")):t.visit(e.left),t.write(` ${e.operator} `),nC(e.right,e,!0)?(t.write("("),t.visit(e.right),t.write(")")):t.visit(e.right)},"BlockStatement|ClassBody":(e,t)=>{if(e.loc){const{line:n,column:s}=e.loc.start;t.location(n,s),t.write("{"),t.location(n,s+1)}else t.write("{");const n=t.new();if(o(n,e),n.empty()||(t.indent(),t.newline(),t.append(n),t.dedent(),t.newline()),e.loc){const{line:n,column:s}=e.loc.end;t.location(n,s-1),t.write("}"),t.location(n,s)}else t.write("}")},"CallExpression|NewExpression":(e,t)=>{"NewExpression"===e.type&&t.write("new ");const a=Jw[e.callee.type]<Jw.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);a?(t.write("("),t.visit(e.callee),t.write(")")):t.visit(e.callee),e.optional&&t.write("?."),e.typeArguments&&t.visit(e.typeArguments);const i=t.new(),o=t.new();t.write("("),t.append(i);const l=t.new(),c=t.new();t.append(l),t.append(c);for(let t=0;t<e.arguments.length;t+=1){const a=t===e.arguments.length-1,i=a?c:l,p=e.arguments[t];a&&p.loc&&n[s]&&n[s].loc&&n[s].loc.start.line<p.loc.start.line&&(l.multiline=!0),i.visit(p),a||i.write(",");const u=a?e.loc?.end??null:e.arguments[t+1]?.loc?.start??null;r(i,p.loc?.end??null,u),a||i.append(o)}t.multiline||=l.multiline||c.multiline,l.multiline?(i.indent(),i.newline(),o.newline(),t.dedent(),t.newline()):o.write(" "),t.write(")")},"ClassDeclaration|ClassExpression":(e,t)=>{e.declare&&t.write("declare "),t.write("class "),e.id&&(t.visit(e.id),t.write(" ")),e.superClass&&(t.write("extends "),t.visit(e.superClass),t.write(" ")),e.implements&&e.implements.length>0&&(t.write("implements"),i(t,e.implements,e.body.loc?.start??null,!0)),t.visit(e.body)},"ForInStatement|ForOfStatement":(e,t)=>{t.write("for "),"ForOfStatement"===e.type&&e.await&&t.write("await "),t.write("("),"VariableDeclaration"===e.left.type?sC(e.left,t):t.visit(e.left),t.write("ForInStatement"===e.type?" in ":" of "),t.visit(e.right),t.write(") "),t.visit(e.body)},"FunctionDeclaration|FunctionExpression":(e,t)=>{e.async&&t.write("async "),t.write(e.generator?"function* ":"function "),e.id&&t.visit(e.id),e.typeParameters&&t.visit(e.typeParameters),t.write("("),i(t,e.params,(e.returnType??e.body).loc?.start??null,!1),t.write(")"),e.returnType&&t.visit(e.returnType),t.write(" "),t.visit(e.body)},"RestElement|SpreadElement":(e,t)=>{t.write("..."),t.visit(e.argument),e.typeAnnotation&&t.visit(e.typeAnnotation)}};return{_(e,t,n){e.loc&&a(t,null,e.loc.start,!0),n(e)},ArrayExpression:l["ArrayExpression|ArrayPattern"],ArrayPattern:l["ArrayExpression|ArrayPattern"],ArrowFunctionExpression:(e,t)=>{e.async&&t.write("async "),t.write("("),i(t,e.params,e.body.loc?.start??null,!1),t.write(") => "),"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.write("("),t.visit(e.body),t.write(")")):t.visit(e.body)},AssignmentExpression(e,t){t.visit(e.left),t.write(` ${e.operator} `),t.visit(e.right)},AssignmentPattern(e,t){t.visit(e.left),t.write(" = "),t.visit(e.right)},AwaitExpression(e,t){if(e.argument){const n=Jw[e.argument.type];n&&n<Jw.AwaitExpression?(t.write("await ("),t.visit(e.argument),t.write(")")):(t.write("await "),t.visit(e.argument))}else t.write("await")},BinaryExpression:l["BinaryExpression|LogicalExpression"],BlockStatement:l["BlockStatement|ClassBody"],BreakStatement(e,t){e.label?(t.write("break "),t.visit(e.label),t.write(";")):t.write("break;")},CallExpression:l["CallExpression|NewExpression"],ChainExpression(e,t){t.visit(e.expression)},ClassBody:l["BlockStatement|ClassBody"],ClassDeclaration:l["ClassDeclaration|ClassExpression"],ClassExpression:l["ClassDeclaration|ClassExpression"],ConditionalExpression(e,t){Jw[e.test.type]>Jw.ConditionalExpression?t.visit(e.test):(t.write("("),t.visit(e.test),t.write(")"));const n=t.new(),s=t.new();n.visit(e.consequent),s.visit(e.alternate),n.multiline||s.multiline||n.measure()+s.measure()>50?(t.indent(),t.newline(),t.write("? "),t.append(n),t.newline(),t.write(": "),t.append(s),t.dedent()):(t.write(" ? "),t.append(n),t.write(" : "),t.append(s))},ContinueStatement(e,t){e.label?(t.write("continue "),t.visit(e.label),t.write(";")):t.write("continue;")},DebuggerStatement(e,t){t.write("debugger",e),t.write(";")},Decorator(e,t){t.write("@"),t.visit(e.expression),t.newline()},DoWhileStatement(e,t){t.write("do "),t.visit(e.body),t.write(" while ("),t.visit(e.test),t.write(");")},EmptyStatement(e,t){t.write(";")},ExportAllDeclaration(e,t){t.write("type"===e.exportKind?"export type * ":"export * "),e.exported&&(t.write("as "),t.visit(e.exported)),t.write(" from "),t.visit(e.source),t.write(";")},ExportDefaultDeclaration(e,t){t.write("export default "),t.visit(e.declaration),"FunctionDeclaration"!==e.declaration.type&&t.write(";")},ExportNamedDeclaration(e,t){t.write("export "),e.declaration?t.visit(e.declaration):("type"===e.exportKind&&t.write("type "),t.write("{"),i(t,e.specifiers,e.source?.loc?.start??e.loc?.end??null,!0),t.write("}"),e.source&&(t.write(" from "),t.visit(e.source)),t.write(";"))},ExportSpecifier(e,t){"type"===e.exportKind&&t.write("type "),t.visit(e.local),e.local.name!==e.exported.name&&(t.write(" as "),t.visit(e.exported))},ExpressionStatement(e,t){if("ObjectExpression"===e.expression.type||"AssignmentExpression"===e.expression.type&&"ObjectPattern"===e.expression.left.type||"FunctionExpression"===e.expression.type)return t.write("("),t.visit(e.expression),void t.write(");");t.visit(e.expression),t.write(";")},ForStatement:(e,t)=>{t.write("for ("),e.init&&("VariableDeclaration"===e.init.type?sC(e.init,t):t.visit(e.init)),t.write("; "),e.test&&t.visit(e.test),t.write("; "),e.update&&t.visit(e.update),t.write(") "),t.visit(e.body)},ForInStatement:l["ForInStatement|ForOfStatement"],ForOfStatement:l["ForInStatement|ForOfStatement"],FunctionDeclaration:l["FunctionDeclaration|FunctionExpression"],FunctionExpression:l["FunctionDeclaration|FunctionExpression"],Identifier(e,t){let n=e.name;t.write(n,e),e.typeAnnotation&&t.visit(e.typeAnnotation)},IfStatement(e,t){t.write("if ("),t.visit(e.test),t.write(") "),t.visit(e.consequent),e.alternate&&(t.space(),t.write("else "),t.visit(e.alternate))},ImportDeclaration(e,t){if(0===e.specifiers.length)return t.write("import "),t.visit(e.source),void t.write(";");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);if(t.write("import "),"type"==e.importKind&&t.write("type "),s&&(t.write(s.local.name,s),(n||r.length>0)&&t.write(", ")),n&&t.write("* as "+n.local.name,n),r.length>0&&(t.write("{"),i(t,r,e.source.loc?.start??null,!0),t.write("}")),t.write(" from "),t.visit(e.source),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let n=0;n<e.attributes.length;n++){const{key:s,value:r}=e.attributes[n];t.visit(s),t.write(": "),t.visit(r),n+1!==e.attributes.length&&t.write(", ")}t.write(" }")}t.write(";")},ImportExpression(e,t){if(t.write("import("),t.visit(e.source),e.arguments)for(let n=0;n<e.arguments.length;n++)t.write(", "),t.visit(e.arguments[n]);t.write(")")},ImportSpecifier(e,t){e.local.name!==e.imported.name&&(t.visit(e.imported),t.write(" as ")),"type"==e.importKind&&t.write("type "),t.visit(e.local)},LabeledStatement(e,t){t.visit(e.label),t.write(": "),t.visit(e.body)},Literal(e,n){const s=e.raw||("string"==typeof e.value?function(e,t){let n=t;for(const s of e)n+="\\"===s?"\\\\":s===t?"\\"+s:"\n"===s?"\\n":"\r"===s?"\\r":s;return n+t}(e.value,t):String(e.value));n.write(s,e)},LogicalExpression:l["BinaryExpression|LogicalExpression"],MemberExpression(e,t){Jw[e.object.type]<Jw.MemberExpression?(t.write("("),t.visit(e.object),t.write(")")):t.visit(e.object),e.computed?(e.optional&&t.write("?."),t.write("["),t.visit(e.property),t.write("]")):(t.write(e.optional?"?.":"."),t.visit(e.property))},MetaProperty(e,t){t.visit(e.meta),t.write("."),t.visit(e.property)},MethodDefinition(e,t){if(e.decorators)for(const n of e.decorators)t.visit(n);e.static&&t.write("static "),"get"!==e.kind&&"set"!==e.kind||t.write(e.kind+" "),e.value.async&&t.write("async "),e.value.generator&&t.write("*"),e.computed&&t.write("["),t.visit(e.key),e.computed&&t.write("]"),t.write("("),i(t,e.value.params,(e.value.returnType??e.value.body)?.loc?.start??e.loc?.end??null,!1),t.write(")"),e.value.returnType&&t.visit(e.value.returnType),t.write(" "),e.value.body&&t.visit(e.value.body)},NewExpression:l["CallExpression|NewExpression"],ObjectExpression(e,t){t.write("{"),i(t,e.properties,e.loc?.end??null,!0),t.write("}")},ObjectPattern(e,t){t.write("{"),i(t,e.properties,e.loc?.end??null,!0),t.write("}"),e.typeAnnotation&&t.visit(e.typeAnnotation)},ParenthesizedExpression:(e,t)=>t.visit(e.expression),PrivateIdentifier(e,t){t.write("#"),t.write(e.name,e)},Program(e,t){o(t,e)},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?"FunctionExpression"===e.value.type?("init"!==e.kind&&t.write(e.kind+" "),e.value.async&&t.write("async "),e.value.generator&&t.write("*"),e.computed&&t.write("["),t.visit(e.key),e.computed&&t.write("]"),t.write("("),i(t,e.value.params,(e.value.returnType??e.value.body).loc?.start??null,!1),t.write(")"),e.value.returnType&&t.visit(e.value.returnType),t.write(" "),t.visit(e.value.body)):(e.computed&&t.write("["),"get"!==e.kind&&"set"!==e.kind||t.write(e.kind+" "),t.visit(e.key),t.write(e.computed?"]: ":": "),t.visit(e.value)):t.visit(e.value)},PropertyDefinition(e,t){if(e.decorators)for(const n of e.decorators)t.visit(n);e.accessibility&&t.write(e.accessibility+" "),e.static&&t.write("static "),e.computed?(t.write("["),t.visit(e.key),t.write("]")):t.visit(e.key),e.typeAnnotation&&(t.write(": "),t.visit(e.typeAnnotation.typeAnnotation)),e.value&&(t.write(" = "),t.visit(e.value)),t.write(";"),r(t,(e.value??e.typeAnnotation??e.key).loc?.end??null,null)},RestElement:l["RestElement|SpreadElement"],ReturnStatement(e,t){if(e.argument){const r=n[s]&&n[s].loc&&e.argument.loc&&rC(n[s].loc.start,e.argument.loc.start);t.write(r?"return (":"return "),t.visit(e.argument),t.write(r?");":";")}else t.write("return;")},SequenceExpression(e,t){t.write("("),i(t,e.expressions,e.loc?.end??null,!1),t.write(")")},SpreadElement:l["RestElement|SpreadElement"],StaticBlock(e,t){t.write("static {"),t.indent(),t.newline(),o(t,e),t.dedent(),t.newline(),t.write("}")},Super(e,t){t.write("super",e)},SwitchStatement(e,t){t.write("switch ("),t.visit(e.discriminant),t.write(") {"),t.indent();let n=!0;for(const s of e.cases){n||t.margin(),n=!1,s.test?(t.newline(),t.write("case "),t.visit(s.test),t.write(":")):(t.newline(),t.write("default:")),t.indent();for(const e of s.consequent)t.newline(),t.visit(e);t.dedent()}t.dedent(),t.newline(),t.write("}")},TaggedTemplateExpression(e,t){t.visit(e.tag),t.visit(e.quasi)},TemplateLiteral(e,t){t.write("`");const{quasis:n,expressions:s}=e;for(let e=0;e<s.length;e++){const r=n[e].value.raw;t.write(r+"${"),t.visit(s[e]),t.write("}"),/\n/.test(r)&&(t.multiline=!0)}const r=n[n.length-1].value.raw;t.write(r+"`"),/\n/.test(r)&&(t.multiline=!0)},ThisExpression(e,t){t.write("this",e)},ThrowStatement(e,t){t.write("throw "),e.argument&&t.visit(e.argument),t.write(";")},TryStatement(e,t){t.write("try "),t.visit(e.block),e.handler&&(e.handler.param?(t.write(" catch("),t.visit(e.handler.param),t.write(") ")):t.write(" catch "),t.visit(e.handler.body)),e.finalizer&&(t.write(" finally "),t.visit(e.finalizer))},UnaryExpression(e,t){t.write(e.operator),e.operator.length>1&&t.write(" "),Jw[e.argument.type]<Jw.UnaryExpression?(t.write("("),t.visit(e.argument),t.write(")")):t.visit(e.argument)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),t.visit(e.argument)):(t.visit(e.argument),t.write(e.operator))},VariableDeclaration(e,t){sC(e,t),t.write(";")},VariableDeclarator(e,t){t.visit(e.id),e.init&&(t.write(" = "),t.visit(e.init))},WhileStatement(e,t){t.write("while ("),t.visit(e.test),t.write(") "),t.visit(e.body)},WithStatement(e,t){t.write("with ("),t.visit(e.object),t.write(") "),t.visit(e.body)},YieldExpression(e,t){e.argument?(t.write(e.delegate?"yield* ":"yield "),t.visit(e.argument)):t.write(e.delegate?"yield*":"yield")},TSDeclareFunction(e,t){t.write("declare "),e.async&&t.write("async "),t.write("function"),e.generator&&t.write("*"),e.id&&(t.write(" "),t.visit(e.id)),e.typeParameters&&t.visit(e.typeParameters),t.write("("),i(t,e.params,e.returnType?.loc?.start??e.loc?.end??null,!1),t.write(")"),e.returnType&&t.visit(e.returnType),t.write(";")},TSNumberKeyword(e,t){t.write("number",e)},TSStringKeyword(e,t){t.write("string",e)},TSBooleanKeyword(e,t){t.write("boolean",e)},TSAnyKeyword(e,t){t.write("any",e)},TSVoidKeyword(e,t){t.write("void",e)},TSUnknownKeyword(e,t){t.write("unknown",e)},TSNeverKeyword(e,t){t.write("never",e)},TSSymbolKeyword(e,t){t.write("symbol",e)},TSNullKeyword(e,t){t.write("null",e)},TSUndefinedKeyword(e,t){t.write("undefined",e)},TSArrayType(e,t){t.visit(e.elementType),t.write("[]")},TSTypeAnnotation(e,t){t.write(": "),t.visit(e.typeAnnotation)},TSTypeLiteral(e,t){t.write("{ "),i(t,e.members,e.loc?.end??null,!1,";"),t.write(" }")},TSPropertySignature(e,t){t.visit(e.key),e.optional&&t.write("?"),e.typeAnnotation&&t.visit(e.typeAnnotation)},TSTypeReference(e,t){t.visit(e.typeName),e.typeArguments&&t.visit(e.typeArguments)},TSExpressionWithTypeArguments(e,t){t.visit(e.expression)},TSTypeParameterInstantiation(e,t){t.write("<");for(let n=0;n<e.params.length;n++)t.visit(e.params[n]),n!=e.params.length-1&&t.write(", ");t.write(">")},TSTypeParameterDeclaration(e,t){t.write("<");for(let n=0;n<e.params.length;n++)t.visit(e.params[n]),n!=e.params.length-1&&t.write(", ");t.write(">")},TSTypeParameter(e,t){t.write(e.name,e),e.constraint&&(t.write(" extends "),t.visit(e.constraint))},TSTypeQuery(e,t){t.write("typeof "),t.visit(e.exprName)},TSEnumMember(e,t){t.visit(e.id),e.initializer&&(t.write(" = "),t.visit(e.initializer))},TSFunctionType(e,t){e.typeParameters&&t.visit(e.typeParameters),t.write("("),i(t,e.parameters,e.typeAnnotation.typeAnnotation.loc?.start??null,!1),t.write(") => "),t.visit(e.typeAnnotation.typeAnnotation)},TSIndexSignature(e,t){t.write("["),i(t,e.parameters,e.typeAnnotation?.loc?.start??null,!1),t.write("]"),t.visit(e.typeAnnotation)},TSMethodSignature(e,t){t.visit(e.key),t.write("("),i(t,e.parameters,e.typeAnnotation.loc?.start??null,!1),t.write(")"),t.visit(e.typeAnnotation)},TSTupleType(e,t){t.write("["),i(t,e.elementTypes,e.loc?.end??null,!1),t.write("]")},TSNamedTupleMember(e,t){t.visit(e.label),t.write(": "),t.visit(e.elementType)},TSUnionType(e,t){i(t,e.types,e.loc?.end??null,!1," |")},TSIntersectionType(e,t){i(t,e.types,e.loc?.end??null,!1," &")},TSLiteralType(e,t){t.visit(e.literal)},TSConditionalType(e,t){t.visit(e.checkType),t.write(" extends "),t.visit(e.extendsType),t.write(" ? "),t.visit(e.trueType),t.write(" : "),t.visit(e.falseType)},TSIndexedAccessType(e,t){t.visit(e.objectType),t.write("["),t.visit(e.indexType),t.write("]")},TSImportType(e,t){t.write("import("),t.visit(e.argument),t.write(")"),e.qualifier&&(t.write("."),t.visit(e.qualifier))},TSAsExpression(e,t){if(e.expression){Jw[e.expression.type]<Jw.TSAsExpression?(t.write("("),t.visit(e.expression),t.write(")")):t.visit(e.expression)}t.write(" as "),t.visit(e.typeAnnotation)},TSEnumDeclaration(e,t){t.write("enum "),t.visit(e.id),t.write(" {"),t.indent(),t.newline(),i(t,e.members,e.loc?.end??null,!1),t.dedent(),t.newline(),t.write("}")},TSModuleBlock(e,t){t.write(" {"),t.indent(),t.newline(),o(t,e),t.dedent(),t.newline(),t.write("}")},TSModuleDeclaration(e,t){e.declare?t.write("declare "):t.write("namespace "),t.visit(e.id),e.body&&t.visit(e.body)},TSNonNullExpression(e,t){t.visit(e.expression),t.write("!")},TSInterfaceBody(e,t){i(t,e.body,e.loc?.end??null,!0,";")},TSInterfaceDeclaration(e,t){t.write("interface "),t.visit(e.id),e.typeParameters&&t.visit(e.typeParameters),e.extends&&(t.write(" extends "),i(t,e.extends,e.body.loc?.start??null,!1)),t.write(" {"),t.visit(e.body),t.write("}")},TSSatisfiesExpression(e,t){if(e.expression){Jw[e.expression.type]<Jw.TSSatisfiesExpression?(t.write("("),t.visit(e.expression),t.write(")")):t.visit(e.expression)}t.write(" satisfies "),t.visit(e.typeAnnotation)},TSTypeAliasDeclaration(e,t){t.write("type "),t.visit(e.id),e.typeParameters&&t.visit(e.typeParameters),t.write(" = "),t.visit(e.typeAnnotation),t.write(";")},TSQualifiedName(e,t){t.visit(e.left),t.write("."),t.visit(e.right)}}};function nC(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=Jw[e.type],r=Jw[t.type];return s!==r?!n&&15===s&&14===r&&"**"===t.operator||s<r:(13===s||14===s)&&("**"===e.operator&&"**"===t.operator?!n:n?Zw[e.operator]<=Zw[t.operator]:Zw[e.operator]<Zw[t.operator])}function sC(e,t){const n=t.new(),s=t.new(),r=t.new();t.append(r),e.declare&&r.write("declare "),r.write(`${e.kind} `),r.append(n);let a=!0;for(const t of e.declarations)a||r.append(s),a=!1,r.visit(t);const i=r.measure()+2*(e.declarations.length-1);r.multiline||e.declarations.length>1&&i>50?(t.multiline=!0,e.declarations.length>1&&n.indent(),s.write(","),s.newline(),e.declarations.length>1&&t.dedent()):s.write(", ")}function rC(e,t){return e.line<t.line||!(e.line>t.line)&&e.column<t.column}const aC="5.39.1";class iC{constructor(e){this.bits=e instanceof iC?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(31&e)}has(e){return!!(this.bits[e>>5]&1<<(31&e))}}class oC{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 oC(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 oC(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 lC(){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 cC=lC();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=Bw(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,"+cC(this.toString())}};function uC(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 dC=Object.prototype.toString;function hC(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 mC=/\w/;class fC{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?mC.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 yC="\n",vC={insertLeft:!1,insertRight:!1,storeName:!1};class gC{constructor(e,t={}){const n=new oC(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 iC},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 gC(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 iC(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};const t=Object.keys(this.storedNames),n=new fC(e.hires),s=hC(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?uC(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]"===dC.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 vC.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),vC.insertLeft=!0),this.appendLeft(e,t)}insertRight(e,t){return vC.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),vC.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&&(vC.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),vC.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 oC(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(yC);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(yC),-1!==e)return n.outro.substr(e+1)+t;t=n.outro+t}if(n.content.length>0){if(e=n.content.lastIndexOf(yC),-1!==e)return n.content.substr(e+1)+t;t=n.content+t}if(n.intro.length>0){if(e=n.intro.lastIndexOf(yC),-1!==e)return n.intro.substr(e+1)+t;t=n.intro+t}}while(n=n.previous);return e=this.intro.lastIndexOf(yC),-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=hC(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 bC=/^[\w+.-]+:\/\//,_C=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,xC=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var wC;function CC(e){return e.startsWith("/")}function kC(e){return/^[.?#]/.test(e)}function SC(e){const t=_C.exec(e);return PC(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function PC(e,t,n,s,r,a,i){return{scheme:e,user:t,host:n,port:s,path:r,query:a,hash:i,type:wC.Absolute}}function EC(e){if(function(e){return e.startsWith("//")}(e)){const t=SC("http:"+e);return t.scheme="",t.type=wC.SchemeRelative,t}if(CC(e)){const t=SC("http://foo.com"+e);return t.scheme="",t.host="",t.type=wC.AbsolutePath,t}if(function(e){return e.startsWith("file:")}(e))return function(e){const t=xC.exec(e),n=t[2];return PC("file:","",t[1]||"","",CC(n)?n:"/"+n,t[3]||"",t[4]||"")}(e);if(function(e){return bC.test(e)}(e))return SC(e);const t=SC("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?wC.Query:e.startsWith("#")?wC.Hash:wC.RelativePath:wC.Empty,t}function TC(e,t){const n=t<=wC.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 AC(e,t){if(!e&&!t)return"";const n=EC(e);let s=n.type;if(t&&s!==wC.Absolute){const e=EC(t),r=e.type;switch(s){case wC.Empty:n.hash=e.hash;case wC.Hash:n.query=e.query;case wC.Query:case wC.RelativePath:!function(e,t){TC(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 wC.AbsolutePath:n.user=e.user,n.host=e.host,n.port=e.port;case wC.SchemeRelative:n.scheme=e.scheme}r>s&&(s=r)}TC(n,s);const r=n.query+n.hash;switch(s){case wC.Hash:case wC.Query:return r;case wC.RelativePath:{const s=n.path.slice(1);return s?kC(t||e)&&!kC(s)?"./"+s+r:s+r:r||"."}case wC.AbsolutePath:return n.path+r;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+r}}function $C(e,t){return t&&!t.endsWith("/")&&(t+="/"),AC(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"}(wC||(wC={}));const RC=0;function IC(e,t){for(let n=t;n<e.length;n++)if(!MC(e[n]))return n;return e.length}function MC(e){for(let t=1;t<e.length;t++)if(e[t][RC]<e[t-1][RC])return!1;return!0}function qC(e,t){return t||(e=e.slice()),e.sort(LC)}function LC(e,t){return e[RC]-t[RC]}let OC=!1;function NC(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 OC=-1!==i&&e[i][RC]===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][RC]-t;if(0===a)return OC=!0,r;a<0?n=r+1:s=r-1}return OC=!1,n-1}(e,t,o,l)}class DC{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=$C(o||"",function(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}(t));this.resolvedSources=l.map((e=>$C(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=IC(e,0);if(n===e.length)return e;t||(e=e.slice());for(let s=n;s<e.length;s=IC(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 jC(e){var t;return(t=e)._decoded||(t._decoded=Nw(e._encoded))}function BC(e,t,n){const s=jC(e);if(t>=s.length)return null;const r=s[t],a=function(e,t,n,s,r){let a=NC(e,s,t,n);OC&&(a=function(e,t,n){for(let s=n-1;s>=0&&e[s][RC]===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 FC{constructor(){this._indexes={__proto__:null},this.array=[]}}function VC(e,t){return e._indexes[t]}function HC(e,t){const n=VC(e,t);if(void 0!==n)return n;const{array:s,_indexes:r}=e,a=s.push(t);return r[t]=a-1}const UC=0,zC=1,WC=2,GC=3,KC=4,XC=-1;class QC{constructor({file:e,sourceRoot:t}={}){this._names=new FC,this._sources=new FC,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new FC}}const YC=(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][UC])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 tk(h,m,[s])}const f=HC(p,r),y=o?HC(d,o):XC;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[zC]&&s===i[WC]&&r===i[GC]&&a===(5===i.length?i[KC]:XC))}(h,m,f,a,i,y))return;return tk(h,m,o?[s,f,a,i,y]:[s,f,a,i])}(0,e,t,n,s,r,a,i);function JC(e,t,n){const{_sources:s,_sourcesContent:r}=e;r[HC(s,t)]=n}function ZC(e,t,n=!0){const{_sources:s,_sourcesContent:r,_ignoreList:a}=e,i=HC(s,t);i===r.length&&(r[i]=null),n?HC(a,i):function(e,t){const n=VC(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 ek(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 tk(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}var nk=rk("",-1,-1,"",null,!1),sk=[];function rk(e,t,n,s,r,a){return{source:e,line:t,column:n,name:s,content:r,ignore:a}}function ak(e,t,n,s,r){return{map:e,sources:t,source:n,content:s,ignore:r}}function ik(e,t){return ak(e,t,"",null,!1)}function ok(e,t,n,s){if(!e.map)return rk(e.source,t,n,s,e.content,e.ignore);const r=BC(e.map,t,n);return null==r?null:1===r.length?nk:ok(e.sources[r[1]],r[2],r[3],5===r.length?e.map.names[r[4]]:s)}function lk(e,t){const n=(s=e,Array.isArray(s)?s:[s]).map((e=>new DC(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=ck(r,t,"",0);for(let e=n.length-1;e>=0;e--)a=ik(n[e],[a]);return a}function ck(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 ck(new DC(l,c),t,c,o);return function(e,t,n){return ak(null,sk,e,t,n)}(c,void 0!==p?p:a?a[s]:null,void 0!==u?u:!!i&&i.includes(s))}));return ik(e,l)}var pk=class{constructor(e,t){const n=t.decodedMappings?ek(e):function(e){const t=ek(e);return Object.assign(Object.assign({},t),{mappings:Bw(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 uk(e,t,n){const s={excludeContent:!!n,decodedMappings:!1},r=lk(e,t);return new pk(function(e){const t=new QC({file:e.map.file}),{sources:n,map:s}=e,r=s.names,a=jC(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=nk;if(1!==i.length&&(l=ok(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;YC(t,e,o,h,p,c,u),h&&null!=d&&JC(t,h,d),m&&ZC(t,h,!0)}}return t}(r),s)}function dk(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}function hk(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 mk(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 fk=/([^\w\s]|\s+)/g;class yk{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]=mk(s.sources,r.sources),[c,p,u,d]=mk(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 dk(s.mappings[s.mappings.length-1],r.mappings.shift()),dk(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 yk(e,t)}if(""==e)return new yk;t={version:3,names:[],sources:[],mappings:[]};for(let e=0;e<n;e++)t.mappings.push([]);return new yk(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 yk(e,r);const a=e.split("\n");for(let e=0;e<a.length;e++){r.mappings.push([]);const t=a[e].split(fk);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 yk(e,r)}}const vk="undefined"!=typeof window&&"function"==typeof btoa?e=>btoa(unescape(encodeURIComponent(e))):e=>Buffer.from(e).toString("base64"),gk="undefined"!=typeof window&&"function"==typeof atob?atob:e=>Buffer.from(e,"base64").toString();function bk(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))?uk(t,(()=>null),!0):uk(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 _k=/data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(\S*)/;function xk(e,t,n){if(t.sourcemap){const s=Ck(t.filename);e.map.sources=[s],Object.assign(e.map,function(e,t,n){if(!t||!n)return t;const s=bk(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,"+vk(this.toString())}}}),s}(s,e.map,t.sourcemap)),s!==n&&(e.map.sources=e.map.sources.map((e=>wk(n,e))))}}function wk(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 Ck(e){return e.split(/[/\\]/).pop()}function kk(e,t,n){return t?wk(t,e):Ck(e)}function Sk(e,n,s){const r=new gC(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,Pk),r.remove(0,i.content.start),r.remove(i.content.end,e.length),a.minify&&Ak(i.content.end,a);const o={code:r.toString(),map:r.generateMap({includeContent:!0,source:s.filename,file:s.cssOutputFilename||s.filename}),hasGlobal:n.css.has_global};return xk(o,s,o.map.sources[0]),be&&"injected"===s.css&&o.code&&(o.code+=`\n/*# sourceMappingURL=${o.map.toUrl()} */`),o}const Pk={_:(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(xc(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):Ek(s)||t.code.prependRight(n,`${t.hash}-`)}else n()},Declaration(e,{state:t}){const n=e.property&&_c(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(bc.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&&(Ak(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&&(Ak(e.start,t),Ak(e.block.end-1,t)),be||!$k(e,Ek(r)))if(Rk(e)||Ek(r)){if(e.metadata.is_global_block){const n=e.prelude.children[0];if(1===e.prelude.children.length&&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,"*/"),Ik(e,t.code));else t.minify?t.code.remove(e.start,e.end):(t.code.prependRight(e.start,"/* (empty) "),t.code.appendLeft(e.end,"*/"),Ik(e,t.code))},SelectorList(e,{state:t,next:n,path:s}){const r=s.at(-1);if((!Ek(s)||e.children.length>1&&"Rule"===r?.type&&r.metadata.is_global_block)&&!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 a=t.specificity;if("Rule"===r?.type){a={bumped:!1};let e=r.metadata.parent_rule;for(;e;){if(e.metadata.has_local_selectors){a={bumped:!0};break}e=e.metadata.parent_rule}}n({...t,specificity:a})},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];Tk(s,n.combinator,t.state);const r=e.metadata.rule?.metadata.parent_rule;if(r&&null===s.args&&(null===n.combinator&&t.state.code.prependRight(s.start,"&"),r.prelude.children.length>1&&e.children.length===e.children.findIndex((e=>e===n))-1)){const e=r.prelude.children.find((e=>e.start>s.end));e&&e.metadata.used&&t.state.code.update(s.end,e.start,"")}}else{for(const e of n.selectors)"PseudoClassSelector"===e.type&&"global"===e.name&&Tk(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 Ek(e){return e.some((e=>"Rule"===e.type&&e.metadata.is_global_block))}function Tk(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.update(s,e.start+7,"")}else n.code.remove(e.start,e.start+8).remove(e.end-1,e.end)}function Ak(e,t){let n=e;for(;/\s/.test(t.code.original[n-1]);)n--;n<e&&t.code.remove(n,e)}function $k(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&&(Rk(n)||t)&&!$k(n,t))return!1;if("Atrule"===n.type&&(null===n.block||n.block.children.length>0))return!1}return!0}function Rk(e){return e.prelude.children.some((e=>e.metadata.used))}function Ik(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 Mk(e){return Ja("$.get",e)}function qk(e){for(const[t,n]of e.state.scope.declarations)(kp(n,e.state.analysis)||"derived"===n.kind||"legacy_reactive"===n.kind)&&(e.state.transform[t]={read:"var"===n.declaration_kind?e=>Ja("$.safe_get",e):Mk,assign:(t,n,s=!1)=>{let r=Ja("$.set",t,n,s&&Ri);return"store_sub"===e.state.scope.get(`$${t.name}`)?.kind&&(r=Ja("$.store_unsub",r,di(`$${t.name}`),ci("$$stores"))),r},mutate:(t,n)=>e.state.analysis.runes?n:Ja("$.mutate",t,n),update:e=>Ja(e.prefix?"$.update_pre":"$.update",e.argument,"--"===e.operator&&di(-1))})}function Lk(e,t,n){if("ArrayPattern"===e.left.type||"ObjectPattern"===e.left.type||"RestElement"===e.left.type){const s=t.visit(e.right),r="Identifier"!==s.type,a=r?ci("$$value"):s;let i=!1;const{inserts:o,paths:l}=no(e.left,a);for(const{id:e}of o)e.name=t.state.scope.generate("$$array");const c=l.map((e=>{const s=e.expression;let r=n("=",e.node,s,t);return null!==r&&(i=!0),r??Ka("=",t.visit(e.node),t.visit(s))}));if(!i)return null;const p=t.path.at(-1).type.endsWith("Statement");if(o.length>0||r){const e=[...o.map((({id:e,value:t})=>Di(e,t))),...c.map(ki)];p||e.push(Ui(a));const t=oo(s)||c.some((e=>oo(e))),n=Ja(Ga([a],Ya(e),t),s);return t?Xa(n):n}const u=xi(c);return p||u.expressions.push(a),u}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 Ok(e,t,n,s){if(s.state.analysis.runes&&"MemberExpression"===t.type&&"ThisExpression"===t.object.type&&!t.computed){const r=el(t.property),a=r&&s.state.state_fields.get(r);if(a&&"AssignmentExpression"===a.node.type&&t===a.node.left){const r=fc(n,s.state.scope);if(r){const i="PrivateIdentifier"===t.property.type||"$state"===r||"$state.raw"===r?t.property:a.key;return Ka(e,hi(Li,i,"Literal"===i.type),s.visit(n))}}else if(a&&("$derived"===a.type||"$derived.by"===a.type)&&"PrivateIdentifier"===t.property.type){let a=s.visit(co(e,t,n));return Ja(hi(Li,r),a)}}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(co(e,t,n));return Ja("$.store_set",ci(a),r)}return Ja("$.store_mutate",Ka("??=",ci("$$store_subs"),fi([])),di(r.name),ci(a),Ka(e,s.visit(t),s.visit(n)))}const Nk=/[&"<]/g,Dk=/[&<]/g;function jk(e,t){const n=String(e??""),s=t?Nk:Dk;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?"&":'"'===t?""":"<"),a=e+1}return r+n.substring(a)}const Bk=di("\x3c!--[--\x3e"),Fk=di("\x3c!--[!--\x3e"),Vk=di("\x3c!--]--\x3e"),Hk=di("\x3c!----\x3e");function Uk(e,{visit:t,state:n}){let s=[];function r(){if(0===s.length)return;let e=bi("",!1);const r=[e],a=[];for(let i=0;i<s.length;i++){const o=s[i];if("Text"===o.type||"Comment"===o.type)e.value.cooked+="Comment"===o.type?`\x3c!--${o.data}--\x3e`:jk(o.data);else{const l=n.scope.evaluate(o.expression);l.is_known?e.value.cooked+=jk((l.value??"")+""):(a.push(Ja("$.escape",t(o.expression))),e=bi("",i+1===s.length),r.push(e))}}for(const e of r)e.value.raw=Ha(e.value.cooked);n.template.push(Si(r,a)),s=[]}for(const a of e)if("ExpressionTag"===a.type&&a.metadata.expression.has_await){r();const e=t(a.expression);n.template.push(ki(Ja(" $$renderer.push",Pi(Ja("$.escape",e),!0))))}else"Text"===a.type||"Comment"===a.type||"ExpressionTag"===a.type?s.push(a):(r(),t(a,{...n}));r()}function zk(e){return e.type.endsWith("Statement")||e.type.endsWith("Declaration")}function Wk(e){let t=[],n=[];const s=[],r=()=>{s.push(ki(Ja(ci(" $$renderer.push"),Si(t.map(((e,n)=>bi(e,n===t.length-1))),n)))),t=[],n=[]};for(let a=0;a<e.length;a++){const i=e[a];zk(i)?(0!==t.length&&r(),s.push(i)):(0===t.length&&t.push(""),"Literal"===i.type?t[t.length-1]+=i.value:"TemplateLiteral"===i.type?(t[t.length-1]+=i.quasis[0].value.cooked,t.push(...i.quasis.slice(1).map((e=>e.value.cooked))),n.push(...i.expressions)):(n.push(i),t.push("")))}return 0!==t.length&&r(),s}function Gk(e,t,n=!1,s=!1,r=(e=>e)){if(!0===e)return Ri;if(!Array.isArray(e)||1===e.length){const a=Array.isArray(e)?e[0]:e;if("Text"===a.type){const e=n?a.data.replace(u," ").trim():a.data;return di(s?e:jk(e,!0))}return r(t.visit(a.expression),a.metadata.expression)}let a=bi("",!1);const i=[a],o=[];for(let s=0;s<e.length;s++){const l=e[s];"Text"===l.type?a.value.raw+=n?l.data.replace(u," "):l.data:(o.push(Ja("$.stringify",r(t.visit(l.expression),l.metadata.expression))),a=bi("",s+1===e.length),i.push(a))}return Si(i,o)}function Kk(e,t){const n=t.scope.get(e.name);if(null===n||e===n.node)return e;if("store_sub"===n.kind){const n=ci(e.name.slice(1));return Ja("$.store_get",Ka("??=",ci("$$store_subs"),fi([])),di(e.name),Kk(n,t))}return e}function Xk(e,t){return ki(Ja(" $$renderer.child",Ga([ci(" $$renderer")],e,t)))}function Qk(e,t){return ki(Ja(" $$renderer.component",Ga([ci(" $$renderer")],e,!1),t))}class Yk{expressions=[];transform=(e,t)=>{if(t.has_await){return ci("$$"+(this.expressions.push(e)-1))}return e};apply(){if(1===this.expressions.length)return Ni("$$0",this.expressions[0]);const e=Ua(this.expressions.map((e=>"AwaitExpression"!==e.type||po(e.argument)?Ja(Pi(e,!0)):e.argument)));return Ni(za(this.expressions.map(((e,t)=>ci(`$$${t}`)))),Xa(Ja("Promise.all",e)))}}function Jk(e){return("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type)&&!0===e.metadata?.hoisted}function Zk(e,n){const s=[],r=new Map;for(const a of e)if("ConstTag"===a.type){const e=a.declaration.declarations[0],s=Zi(e.id).map((e=>n.scope.get(e.name))),i=new Set;t(e.init,n,{_:mc,Identifier(e,t){if(Hl(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=vc(a);if(i?.length){!function(e,t){Us(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 eS(e,t,n,s="html",r,a,i){r.analysis.runes||(t=Zk(t,r));const l=[],u=[];for(const e of t)("Comment"!==e.type||i)&&("ConstTag"===e.type||"DebugTag"===e.type||"SvelteBody"===e.type||"SvelteWindow"===e.type||"SvelteDocument"===e.type||"SvelteHead"===e.type||"TitleElement"===e.type||"SnippetBlock"===e.type?l.push(e):u.push(e));let d=u;if(!a){let t,r;for(d=[];(t=u[0])&&"Text"===t.type&&!p.test(t.data);)u.shift();for("Text"===t?.type&&(t.raw=t.raw.replace(o,""),t.data=t.data.replace(o,""));(r=u.at(-1))&&"Text"===r.type&&!p.test(r.data);)u.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<u.length;e++){const t=u[e-1],n=u[e],s=u[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||d.push(n)}else d.push(n)}}var h=d[0];return"RegularElement"===e.type&&"pre"===e.name&&"Text"===h?.type&&("\n"!==h.data&&"\r\n"!==h.data||(d.shift(),h=d[0])),1===d.length&&"RegularElement"===h.type&&"script"===h.name&&d.push({type:"Comment",data:"",start:-1,end:-1}),{hoisted:l,trimmed:d,is_standalone:1===d.length&&("RenderTag"===h.type&&!h.metadata.dynamic||"Component"===h.type&&!r.options.hmr&&!h.metadata.dynamic&&!h.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)&&h&&("Text"===h?.type||"ExpressionTag"===h?.type)}}function tS(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 nS(e,t){return"foreignObject"===e.name?"html":e.metadata.svg?"svg":e.metadata.mathml?"mathml":"html"}function sS(e,t){const{state:n,visit:s}=t,r="client"===n.options.generate;if(!be)return ai;if("MemberExpression"===e.callee.type){const t=e.callee.object.arguments.map((e=>s(e))),n=s(e.arguments[0]);return Ja("$.inspect",r?Pi(Ua(t)):Ua(t),n)}{const t=e.arguments.map((e=>s(e)));return Ja("$.inspect",r?Pi(Ua(t)):Ua(t))}}function rS(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()}const d=new Yk;for(const t of e.attributes)if("LetDirective"===t.type)c||i.default.push(t);else if("SpreadAttribute"===t.type){let e=n.visit(t);s.push(d.transform(e,t.metadata.expression))}else if("Attribute"===t.type){const e=Gk(t.value,n,!1,!0,d.transform);if(t.name.startsWith("--")){a.push(ui(t.name,e));continue}"children"===t.name&&(p=!0),u(vi("init",zi(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=ci(n.state.scope.generate("bind_get")),a=ci(n.state.scope.generate("bind_set"));n.state.init.push(Di(r,e)),n.state.init.push(Di(a,s)),u(li(t.name,[Ui(Ja(r))])),u(wi(t.name,[ki(Ja(a,ci("$$value")))]))}else u(li(t.name,[Ui(n.visit(t.expression))]),!0),u(wi(t.name,[ki(n.visit(Ka("=",t.expression,ci("$$value")))),ki(Ka("=",ci("$$settled"),Ii))]),!0);r.forEach((e=>e()));const h=[],m=[];for(const t of e.fragment.nodes){if("SnippetBlock"===t.type){n.visit(t,{...n.state,init:h}),u(vi("init",t.expression,t.expression)),m.push(ui("children"===t.expression.name?"default":t.expression.name,Ri));continue}let e="default";if(Xo(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=[ci(" $$renderer")];if(i[t].length>0){const e=yi(i[t].map((e=>null===e.expression?ui(e.name,ci(e.name)):"ObjectExpression"===e.expression.type?ui(e.name,yi(e.expression.properties)):"ArrayExpression"===e.expression.type?ui(e.name,za(e.expression.elements)):ui(e.name,e.expression))));r.push(e)}const a=Ga(r,Ya(s.body));"default"!==t||p?m.push(ui(t,a)):0===i.default.length&&l.default.every((e=>"SvelteFragment"!==e.type||!e.attributes.some((e=>"LetDirective"===e.type))))?(u(vi("init",ci("children"),be?Ja("$.prevent_snippet_stringification",a):a)),m.push(ui(t,Ri))):(m.push(ui(t,a)),u(ui("children",ci("$.invalid_default_snippet"))))}m.length>0&&u(vi("init",ci("$$slots"),fi(m)));const f=0===s.length||1===s.length&&Array.isArray(s[0])?fi(s[0]||[]):Ja("$.spread_props",Ua(s.map((e=>Array.isArray(e)?fi(e):e))));let y=ki(("SvelteComponent"===e.type?Za:Ja)(t,ci(" $$renderer"),f));h.length>0&&(y=Ya([...h,y]));const v="SvelteComponent"===e.type||"Component"===e.type&&e.metadata.dynamic;a.length>0&&(y=ki(Ja("$.css_props",ci(" $$renderer"),di("svg"!==n.state.namespace),fi(a),Pi(Ya([y])),v&&Ri))),d.expressions.length>0&&(y=Xk(Ya([d.apply(),y]),!0)),v&&0===a.length&&n.state.template.push(Hk),n.state.template.push(y),n.state.skip_hydration_boundaries||0!==a.length||n.state.template.push(Hk)}const aS=["class","style"];function iS(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=Ja("$.escape",Gk(c.value,t))):"select"!==e.name&&n.push(c):Yi(c)?"onload"!==c.name&&"onerror"!==c.name||!oe(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:Ja("$.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&&Gi(e)&&"file"===e.value[0].data)))continue;if("this"===c.name)continue;const s=op[c.name];if(s?.omit_in_ssr)continue;let r=t.visit(c.expression);if("SequenceExpression"===r.type&&(r=Ja(r.expressions[0])),ae(c.name))i=r;else if("value"===c.name&&"textarea"===e.name)i=Ja("$.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&&Gi(e)&&"checkbox"===e.value[0].data));n.push(Jo("checked",-1,-1,[{type:"ExpressionTag",start:-1,end:-1,expression:r?Ja(hi(c.expression,"includes"),Gk(s.value,t)):Qa("===",c.expression,Gk(s.value,t)),metadata:{expression:Zo()}}]))}else n.push(Jo(c.name,-1,-1,[{type:"ExpressionTag",start:-1,end:-1,expression:r,metadata:{expression:Zo()}}]))}else"SpreadAttribute"===c.type?(n.push(c),o=!0,oe(e.name)&&(l.add("onload"),l.add("onerror"))):"UseDirective"===c.type?oe(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=fi(s.map((e=>ui(e.name,"Identifier"===e.expression.type&&e.expression.name===e.name?ci(e.name):r.visit(e.expression)))))}if(n.length>0){i=fi(n.map((e=>ui(e.name,!0===e.value?ci(e.name):Gk(e.value,r,!0)))))}e.metadata.svg||e.metadata.mathml?o|=A|$:Yo(e)?o|=$:"RegularElement"===e.type&&"input"===e.name&&(o|=R);const l=lS(e,t,r),c=e.metadata.scoped&&r.state.analysis.css.hash?di(r.state.analysis.css.hash):Mi,p=[l,c,a,i,o?di(o):void 0];r.state.template.push(Ja("$.spread_attributes",...p))}(e,n,r,s,t),"option"===e.name&&t.state.template.push(Ja("$.maybe_selected",ci(" $$renderer"),hi(lS(e,e.attributes.filter((e=>"Attribute"===e.type||"BindDirective"===e.type||"SpreadAttribute"===e.type)),t),"value",!1,!0)));else{const a=e.metadata.scoped?t.state.analysis.css.hash:null;for(const i of n){const n=oS(e,i),o=!("class"===n&&0!==s.length||"style"===n&&0!==r.length);if(o&&(!0===i.value||Gi(i))){let s=Gk(i.value,t,aS.includes(n)).value;"class"===n&&a&&(s=(String(s)+" "+a).trim()),("class"!==n||s)&&t.state.template.push(di(` ${i.name}${J(n)&&!0===s?"":`="${!0===s?"":String(s)}"`}`)),"option"===e.name&&"value"===n&&t.state.template.push(Ja("$.maybe_selected",ci(" $$renderer"),null!=s?di(s):ti));continue}const l=Gk(i.value,t,aS.includes(n));o&&"Literal"===l.type&&"string"==typeof l.value?("class"===n&&a&&(l.value=(l.value+" "+a).trim()),t.state.template.push(di(` ${n}="${jk(l.value,!0)}"`))):"class"===n?t.state.template.push(cS(s,l,t,a)):"style"===n?t.state.template.push(pS(r,l,t)):t.state.template.push(Ja("$.attr",di(n),l,J(n)&&Ri)),"value"===n&&"option"===e.name&&t.state.template.push(Ja("$.maybe_selected",ci(" $$renderer"),l))}}if(0!==l.size)for(const e of l)t.state.template.push(di(` ${e}="this.__e=event"`));return i}function oS(e,t){let n=t.name;return e.metadata.svg||e.metadata.mathml||(n=n.toLowerCase()),n}function lS(e,t,n){return fi(t.map((t=>{if("Attribute"===t.type){const s=oS(e,t),r=Gk(t.value,n,aS.includes(s));return vi("init",zi(s),r)}if("BindDirective"===t.type){const s=oS(e,t),r="SequenceExpression"===t.expression.type?Ja(t.expression.expressions[0]):n.visit(t.expression);return vi("init",zi(s),r)}return Ci(n.visit(t))})))}function cS(e,t,n,s){let r,a;return e.length&&(r=fi(e.map((e=>vi("init",di(e.name),n.visit(e.expression,n.state)))))),s&&("Literal"===t.type&&"string"==typeof t.value?t.value=(t.value+" "+s).trim():a=di(s)),Ja("$.attr_class",t,a,r)}function pS(e,t,n){let s;if(e.length){let t=[],r=[];for(const s of e){const e=!0===s.value?ci(s.name):Gk(s.value,n,!0);let a=s.name;"-"===a[0]&&"-"===a[1]||(a=a.toLowerCase());const i=ui(s.name,e);s.modifiers.includes("important")?r.push(i):t.push(i)}s=r.length?Ua([fi(t),fi(r)]):fi(t)}return Ja("$.attr_style",t,s)}function uS(e,t,n){if("Identifier"===e.id.type)return[ri(e.id,n)];const s=ci(t.generate("tmp")),{paths:r,inserts:a}=no(e.id,s);return[ri(s,n),...a.map((({id:e,value:n})=>(e.name=t.generate("$$array"),ri(e,n)))),...r.map((e=>{const t=e.expression;return ri(e.node,t)}))]}const dS={_:mc,AssignmentExpression:function(e,t){return Lk(e,t,Ok)??t.next()},AwaitExpression:function(e,t){const n=t.visit(e.argument);return t.state.analysis.pickled_awaits.has(e)?Ja(Xa(Ja("$.save",n))):n===e.argument?e:{...e,argument:n}},CallExpression:function(e,t){const n=fc(e,t.state.scope);if("$host"===n)return ti;if("$effect.tracking"===n)return Ii;if("$effect.root"===n)return Ga([],Ya([]));if("$effect.pending"===n)return di(0);if("$state"===n||"$state.raw"===n)return e.arguments[0]?t.visit(e.arguments[0]):ti;if("$derived"===n||"$derived.by"===n){const s=t.visit(e.arguments[0]);return Ja("$.derived","$derived"===n?Pi(s):s)}return"$state.snapshot"===n?Ja("$.snapshot",t.visit(e.arguments[0]),Ee(e,"state_snapshot_uncloneable")&&Ri):"$inspect"===n||"$inspect().with"===n?sS(e,t):void t.next()},ClassBody:function(e,t){const n=t.state.analysis.classes.get(e);if(!n)return void t.next();const s=[],r={...t.state,state_fields:n};for(const[e,t]of n)if("#"!==e[0]&&t&&"AssignmentExpression"===t.node.type&&("$derived"===t.type||"$derived.by"===t.type)){const n=hi(Li,t.key);s.push(gi(t.key,null),ji("get",zi(e),[],[Ui(Ja(n))]),ji("set",zi(e),[ci("$$value")],[Ui(Ja(n,ci("$$value")))]))}for(const a of e.body){if("PropertyDefinition"!==a.type){s.push(t.visit(a,r));continue}const e=el(a.key),i=e&&n.get(e);if(i){if("#"===e[0]||"$state"===i.type||"$state.raw"===i.type)s.push(t.visit(a,r));else if(i.node===a){const n=hi(Li,i.key);s.push(gi(i.key,t.visit(i.value,r)),ji("get",a.key,[],[Ui(Ja(n))]),ji("set",zi(e),[ci("$$value")],[Ui(Ja(n,ci("$$value")))]))}}else s.push(t.visit(a,r))}return{...e,body:s}},ExpressionStatement:function(e,t){const n=fc(e.expression,t.state.scope);if("$effect"===n||"$effect.pre"===n||"$effect.root"===n||"$inspect.trace"===n)return ai;t.next()},Identifier:function(e,t){if(Hl(e,t.path.at(-1)))return"$$props"===e.name?ci("$$sanitized_props"):Kk(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:ci(n),body:s})),ai},MemberExpression:function(e,t){if(t.state.analysis.runes&&"ThisExpression"===e.object.type&&"PrivateIdentifier"===e.property.type){const n=t.state.state_fields?.get(`#${e.property.name}`);if("$derived"===n?.type||"$derived.by"===n?.type)return Ja(e)}t.next()},PropertyDefinition:function(e,t){if(t.state.analysis.runes&&null!=e.value&&"CallExpression"===e.value.type){const n=fc(e.value,t.state.scope);if("$state"===n||"$state.raw"===n)return{...e,value:0===e.value.arguments.length?null:t.visit(e.value.arguments[0])};if("$derived.by"===n||"$derived"===n){const s=t.visit(e.value.arguments[0]);return{...e,value:0===e.value.arguments.length?null:Ja("$.derived","$derived"===n?Pi(s):s)}}}t.next()},UpdateExpression:function(e,t){const n=e.argument;return"Identifier"===n.type&&"store_sub"===t.state.scope.get(n.name)?.kind?Ja(e.prefix?"$.update_store_pre":"$.update_store",Ka("??=",ci("$$store_subs"),fi([])),di(n.name),ci(n.name.slice(1)),"--"===e.operator&&di(-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=fc(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"===fc(e.right,n.state.scope)){const t=e.right.arguments.length?n.visit(e.right.arguments[0]):ti;return Wa(e.left,t)}}});const i=n.state.analysis.uses_slots?ci("$$slots_"):ci("$$slots");"ObjectPattern"===a.type&&e?a.properties.splice(a.properties.length-1,0,vi("init",ci("$$slots"),i),vi("init",ci("$$events"),ci("$$events"))):"Identifier"===a.type&&(a=yi([vi("init",ci("$$slots"),i),vi("init",ci("$$events"),ci("$$events")),_i(ci(a.name))])),s.push(ri(n.visit(a),ci("$$props")));continue}const i=e.arguments,o=i.length>0?n.visit(i[0]):ti;"$derived.by"!==a?"Identifier"!==r.id.type?"$derived"!==a?s.push(...uS(r,n.state.scope,o)):s.push(ri(n.visit(r.id),o)):s.push(ri(r.id,o)):s.push(ri(n.visit(r.id),Ja(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=ci(n.state.scope.generate("tmp")),{inserts:r,paths:a}=no(t.id,e);s.push(ri(e,n.visit(t.init)));for(const{id:e,value:t}of r)e.name=n.state.scope.generate("$$array"),s.push(ri(e,t));for(const e of a){const t=e.expression,r=e.node.name,a=n.state.scope.get(r),i=hi(ci("$$props"),di(a.prop_alias??r),!0);s.push(ri(e.node,lo(i,t)))}continue}const e=n.state.scope.get(t.id.name),r=hi(ci("$$props"),di(e.prop_alias??t.id.name),!0);let a=r;if(t.init){a=lo(r,n.visit(t.init))}s.push(ri(t.id,a))}else s.push(...uS(t,n.state.scope,t.init&&n.visit(t.init)));else s.push(n.visit(t))}return 0===s.length?ai:{...e,declarations:s}}},hS={AwaitBlock:function(e,t){let n=ki(Ja("$.await",ci(" $$renderer"),t.visit(e.expression),Pi(e.pending?t.visit(e.pending):Ya([])),Ga(e.value?[t.visit(e.value)]:[],e.then?t.visit(e.then):Ya([]))));e.metadata.expression.has_await&&(n=Xk(Ya([n]),!0)),t.state.template.push(n,Vk)},Component:function(e,t){rS(e,ci(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(Ni(s,r))},DebugTag:function(e,t){t.state.template.push(ki(Ja("console.log",fi(e.identifiers.map((e=>vi("init",e,t.visit(e))))))),qi)},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:ci(e.index),i=n.scope.root.unique("each_array");let o=Ya([Ni(i,Ja("$.ensure_array_like",r))]);const l=[];e.context&&l.push(Oi(e.context,hi(i,a,!0))),a.name!==e.index&&null!=e.index&&l.push(Oi(e.index,a)),l.push(...t.visit(e.body).body);const c=function(e,t,n,s){return{type:"ForStatement",init:e,test:t,update:n,body:s}}(si("let",[ri(a,di(0)),ri("$$length",hi(i,"length"))]),Qa("<",a,ci("$$length")),Ai("++",a,!1),Ya(l));if(e.fallback){const n=ki(Ja(ci(" $$renderer.push"),Bk)),s=t.visit(e.fallback);s.body.unshift(ki(Ja(ci(" $$renderer.push"),Fk))),o.body.push(Fi(Qa("!==",hi(i,"length"),di(0)),Ya([n,c]),s))}else n.template.push(Bk),o.body.push(c);e.metadata.expression.has_await?n.template.push(Xk(o,!0),Vk):n.template.push(...o.body,Vk)},Fragment:function(e,t){const n=t.path.at(-1)??e,s=tS(t.state.namespace,n,e.nodes),{hoisted:r,trimmed:a,is_standalone:i,is_text_first:o}=eS(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(Hk),Uk(a,{...t,state:l}),Ya([...l.init,...Wk(l.template)])},HtmlTag:function(e,t){const n=t.visit(e.expression);t.state.template.push(Ja("$.html",n))},IfBlock:function(e,t){const n=t.visit(e.test),s=t.visit(e.consequent),r=e.alternate?t.visit(e.alternate):Ya([]);s.body.unshift(ki(Ja(ci(" $$renderer.push"),Bk))),r.body.unshift(ki(Ja(ci(" $$renderer.push"),Fk)));let a=Fi(n,s,r);e.metadata.expression.has_await&&(a=Xk(Ya([a]),!0)),t.state.template.push(a,Vk)},KeyBlock:function(e,t){t.state.template.push(Hk,t.visit(e.fragment),Hk)},RegularElement:function(e,t){const n=nS(e,t.state.namespace),s={...t.state,namespace:n,preserve_whitespace:t.state.preserve_whitespace||"pre"===e.name||"textarea"===e.name},r=z(e.name);t.state.template.push(di(`<${e.name}`));const a=iS(e,{...t,state:s});if(t.state.template.push(di(r?"/>":">")),("script"===e.name||"style"===e.name)&&1===e.fragment.nodes.length)return void t.state.template.push(di(e.fragment.nodes[0].data),di(`</${e.name}>`));const{hoisted:i,trimmed:o}=eS(e,e.fragment.nodes,t.path,n,{...s,scope:s.scopes.get(e.fragment)},s.preserve_whitespace,s.options.preserveComments);for(const e of i)t.visit(e,s);if(be){const t=we(e.start);s.template.push(ki(Ja("$.push_element",ci(" $$renderer"),di(e.name),di(t.line),di(t.column))))}let l=!1,c=!1;const p=s.template.length;if("select"===e.name){const n=e.attributes.find((e=>("Attribute"===e.type||"BindDirective"===e.type)&&"value"===e.name)),r=e.attributes.find((e=>"SpreadAttribute"===e.type));if(r)l=!0,c||=r.metadata.expression.has_await,s.template.push(ki(Ka("=",ci(" $$renderer.local.select_value"),hi(lS(e,e.attributes.filter((e=>"Attribute"===e.type||"BindDirective"===e.type||"SpreadAttribute"===e.type)),t),"value",!1,!0))));else if(n){l=!0,"Attribute"===n.type&&!0!==n.value&&(c||=(Array.isArray(n.value)?n.value:[n.value]).some((e=>"ExpressionTag"===e.type&&e.metadata.expression.has_await)));const e=ci(" $$renderer.local.select_value");"Attribute"===n.type?s.template.push(ki(Ka("=",e,Gk(n.value,t)))):"BindDirective"===n.type&&s.template.push(ki(Ka("=",e,"SequenceExpression"===n.expression.type?t.visit(Ja(n.expression.expressions[0])):t.visit(n.expression))))}}if("option"!==e.name||e.attributes.some((e=>"SpreadAttribute"===e.type||("Attribute"===e.type||"BindDirective"===e.type)&&"value"===e.name)))if(null!==a){const e={...s,template:[],init:[]};Uk(o,{...t,state:e});let n=a;"Identifier"!==a.type&&(n=ci(s.scope.generate("$$body")),s.template.push(Ni(n,a))),s.template.push(Fi(n,Ya(Wk([n])),Ya([...e.init,...Wk(e.template)])))}else Uk(o,{...t,state:s});else if(e.metadata.synthetic_value_node)s.template.push(ki(Ja("$.simple_valueless_option",ci(" $$renderer"),Pi(e.metadata.synthetic_value_node.expression,e.metadata.synthetic_value_node.metadata.expression.has_await))));else{const e={...s,template:[],init:[]};Uk(o,{...t,state:e}),s.template.push(ki(Ja("$.valueless_option",ci(" $$renderer"),Ga([ci(" $$renderer")],Ya([...e.init,...Wk(e.template)])))))}if(l){const e=s.template.splice(p,1/0);s.template.push(Xk(Ya(Wk(e)),c))}r||s.template.push(di(`</${e.name}>`)),be&&s.template.push(ki(Ja("$.pop_element")))},RenderTag:function(e,t){const n=io(e.expression).callee,s=io(e.expression).arguments,r=t.visit(n),a=s.map((e=>t.visit(e)));t.state.template.push(ki(("CallExpression"===e.expression.type?Ja:Za)(r,ci(" $$renderer"),...a))),t.state.skip_hydration_boundaries||t.state.template.push(Hk)},SlotElement:function(e,t){const n=[],s=[],r=new Yk;let a=di("default");for(const i of e.attributes)if("SpreadAttribute"===i.type){let e=t.visit(i);s.push(r.transform(e,i.metadata.expression))}else if("Attribute"===i.type){const e=Gk(i.value,t,!1,!0,r.transform);"name"===i.name?a=e:"slot"!==i.name&&n.push(ui(i.name,e))}const i=0===s.length?fi(n):Ja("$.spread_props",Ua([fi(n),...s])),o=0===e.fragment.nodes.length?Mi:Pi(t.visit(e.fragment)),l=Ja("$.slot",ci(" $$renderer"),ci("$$props"),a,i,o),c=r.expressions.length>0?Xk(Ya([r.apply(),ki(l)]),!0):ki(l);t.state.template.push(Hk,c,Hk)},SnippetBlock:function(e,t){let n=oi(e.expression,[ci(" $$renderer"),...e.parameters],t.visit(e.body));n.___snippet=!0;const s=e.metadata.can_hoist?t.state.hoisted:t.state.init;be&&(n.body.body.unshift(ki(Ja("$.validate_snippet_args",ci(" $$renderer")))),s.push(ki(Ja("$.prevent_snippet_stringification",n.id)))),s.push(n)},SpreadAttribute:function(e,t){return t.visit(e.expression)},SvelteComponent:function(e,t){rS(e,t.visit(e.expression),t)},SvelteElement:function(e,t){let n=t.visit(e.tag);if(be){if("Identifier"!==n.type){const e=t.state.scope.generate("$$tag");t.state.init.push(Ni(e,n)),n=ci(e)}e.fragment.nodes.length>0&&t.state.init.push(ki(Ja("$.validate_void_dynamic_element",Pi(n)))),t.state.init.push(ki(Ja("$.validate_dynamic_element_tag",Pi(n))))}const s={...t.state,namespace:nS(e,t.state.namespace),template:[],init:[]};if(iS(e,{...t,state:s}),be){const s=we(e.start);t.state.template.push(ki(Ja("$.push_element",ci(" $$renderer"),n,di(s.line),di(s.column))))}const r=Ya([...s.init,...Wk(s.template)]),a=t.visit(e.fragment,s);t.state.template.push(ki(Ja("$.element",ci(" $$renderer"),n,r.body.length>0&&Pi(r),a.body.length>0&&Pi(a)))),be&&t.state.template.push(ki(Ja("$.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(ki(Ja("$.head",ci(" $$renderer"),Ga([ci(" $$renderer")],n))))},SvelteSelf:function(e,t){rS(e,ci(t.state.analysis.name),t)},TitleElement:function(e,t){const n=[di("<title>")];Uk(e.fragment.nodes,{...t,state:{...t.state,template:n}}),n.push(di("</title>")),t.state.init.push(ki(Ja("$.build_title",ci(" $$renderer"),Pi(Ya(Wk(n))))))},SvelteBoundary:function(e,t){const n=e.attributes.find((e=>"Attribute"===e.type&&"pending"===e.name)),s=e.fragment.nodes.find((e=>"SnippetBlock"===e.type&&"pending"===e.expression.name));if(n||s){const e=n?Ja(Gk(n.value,t,!1,!0),ci(" $$renderer")):t.visit(s.body);t.state.template.push(Fk,e,Vk)}else{const n=t.visit(e.fragment);t.state.template.push(Bk,n,Vk)}}};const mS=(e,t)=>{const n=e.metadata;let s={...t.state,in_constructor:!1,in_derived:!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=Pp(e,t);return{...e,params:n,body:t.visit(e.body,s)}}t.next(s)};function fS(e){return["=","||=","&&=","??="].includes(e)}const yS={"=":"$.assign","&&=":"$.assign_and","||=":"$.assign_or","??=":"$.assign_nullish"};function vS(e,t,n,s){if(s.state.analysis.runes&&"MemberExpression"===t.type){const r=el(t.property),a=r&&s.state.state_fields.get(r);if(a){if("AssignmentExpression"===a.node.type&&t===a.node.left){const t=fc(n,s.state.scope);if(t){const i={...s.state,in_constructor:"$derived"!==t&&"$derived.by"!==t};let o=s.visit(n,i);if(be){const e=s.path.findLast((e=>"ClassDeclaration"===e.type||"ClassExpression"===e.type));o=Ja("$.tag",o,di(`${e?.id?.name??"[class]"}.${r}`))}return Ka(e,hi(Li,a.key),o)}}if("PrivateIdentifier"===t.property.type){let r=s.visit(co(e,t,n));return Ja("$.set",t,r,"$state"===a.type&&fS(e)&&Ap(r,s.state.scope)&&Ri)}}}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(co(e,t,n));return i.assign(r,c,!l&&"prop"!==a.kind&&"bindable_prop"!==a.kind&&"raw_state"!==a.kind&&"derived"!==a.kind&&"store_sub"!==a.kind&&s.state.analysis.runes&&Ap(n,s.state.scope)&&fS(e))}if(i?.mutate)return i.mutate(r,Ka(e,s.visit(t),s.visit(n)));let l=be&&"ExpressionStatement"!==o.at(-1)&&fS(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||!Yi(e))return!1;return Xi(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)&&"BindDirective"!==o.at(-3))||(l=!1),"MemberExpression"===t.type&&l){const r=yS[e];return s.visit(Ja(r,t.object,t.computed?t.property:di(t.property.name),n,di(ke(t))))}return null}function gS(e,t){let n=!1,s=e.name.slice(2);K(s)&&(s=s.slice(0,-7),n=!0);const r=Array.isArray(e.value)?e.value[0]:e.value;let a=_S(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(Di(e,a)),a=e}const i=e.metadata.delegated.function.metadata.hoisted_params;if(i){n=Ua([a,...i])}else n=a}else n=a;t.state.init.push(ki(Ka("=",hi(t.state.node,"__"+s),n)))}else{const e=ki(bS(s,t.state.node,a,n,(i=s,!!se.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 bS(e,t,n,s,r){return Ja("$.event",di(e),t,n,s&&Ri,void 0===r?void 0:di(r))}function _S(e,t,n){if(null===e)return Bi(null,[ci("$$arg")],Ya([ki(Ja("$.bubble_event.call",Li,ci("$$props"),ci("$$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(!be&&"import"!==e?.declaration_kind)return s}if(t.has_call){const e=ci(n.state.scope.generate("event_handler"));n.state.init.push(Di(e,Ja("$.derived",Pi(s)))),s=Ja("$.get",e)}let r=Ja(hi(s,"apply",!1,!0),Li,ci("$$args"));if(be){const t=we(e.start),a="CallExpression"===e.type&&0===e.arguments.length&&"Identifier"===e.callee.type;r=Ja("$.apply",Pi(s),Li,ci("$$args"),ci(n.state.analysis.name),t&&Ua([di(t.line),di(t.column)]),xS(e)&&Ri,a&&Ri)}return Bi(null,[_i(ci("$$args"))],Ya([ki(r)]))}function xS(e){return"CallExpression"===e.type||"NewExpression"===e.type||"AssignmentExpression"===e.type||"UpdateExpression"===e.type||"SequenceExpression"===e.type&&e.expressions.some(xS)}function wS(e,t){if("Identifier"===e.type)return t.state.transform[e.name]={read:Mk},{id:e,declarations:null};const n=t.visit(e),s=Zi(e),r=ci("$$source"),a=ci("$$value"),i=Ya([Di(n,Ja("$.get",r)),Ui(fi(s.map((e=>vi("init",e,e)))))]),o=[Di(a,$p(t.state,i))];for(const e of s)t.state.transform[e.name]={read:Mk},o.push(Di(e,$p(t.state,hi(Ja("$.get",a),e))));return{id:r,declarations:o}}function CS(e,t,n,s){const r=s.state.metadata.bound_contenteditable;let a=t,i=0,o=[];function l(e,t){const n=function(e){return 0===i?a(e):Ja("$.sibling",a(!1),(e||1!==i)&&di(i),e&&Ri)}(e);let r=n;return"Identifier"!==r.type&&(r=ci(s.state.scope.generate(t)),s.state.init.push(Di(r,n))),a=()=>r,i=1,r}function c(e){if(e.every((e=>"Text"===e.type)))return i+=1,void s.state.template.push_text(e);s.state.template.push_text([{type:"Text",data:" ",raw:" ",start:-1,end:-1}]);const{has_state:t,value:n}=yp(e,s),a=l(1===e.length,"text"),o=ki(Ja("$.set_text",a,n));t&&!r?s.state.update.push(o):s.state.init.push(ki(Ka("=",hi(a,"nodeValue"),n)))}for(const t of e)if("Text"===t.type||"ExpressionTag"===t.type)o.push(t);else{o.length>0&&(c(o),o=[]);let r=s.state;if(kS(t,s.state))i+=1;else if("EachBlock"===t.type&&1===e.length&&n)t.metadata.is_controlled=!0;else{const e=l(!1,"RegularElement"===t.type?t.name:"node");r={...s.state,node:e}}s.visit(t,r)}o.length>0&&c(o),i>1&&(i-=1,s.state.init.push(ki(Ja("$.next",1!==i&&di(i)))))}function kS(e,t){if("RegularElement"!==e.type)return!1;if(e.fragment.metadata.dynamic)return!1;if(Yo(e))return!1;for(const t of e.attributes){if("Attribute"!==t.type)return!1;if(Yi(t))return!1;if(ne(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&&!Gi(t))return!1}return!0}function SS(e,t,n=t.state.memoizer){let s=[],r=!1,a=!1;for(const n of e){const e=t.visit(n.expression);s.push(ui(n.name,e)),r||=n.metadata.expression.has_call||n.metadata.expression.has_state,a||=n.metadata.expression.has_await}const i=fi(s);return r||a?n.add(i,a):i}function PS(e,t,n=t.state.memoizer){const s=fi([]),r=fi([]);let a=!1,i=!1;for(const n of e){const e=!0===n.value?Sp(ci(n.name),t.state):RS(n.value,t).value;(n.modifiers.includes("important")?r:s).properties.push(ui(n.name,e)),a||=n.metadata.expression.has_call||n.metadata.expression.has_state,i||=n.metadata.expression.has_await}const o=r.properties.length?Ua([s,r]):s;return a||i?n.add(o,i):o}function ES(e,t,n,s,r){return"muted"===n?Ka("=",hi(t,ci("muted")),s):"value"===n?Ja("$.set_value",t,s):"checked"===n?Ja("$.set_checked",t,s):"selected"===n?Ja("$.set_selected",t,s):"defaultValue"===n&&(r.some((e=>"Attribute"===e.type&&"value"===e.name&&Gi(e)))||"textarea"===e.name&&e.fragment.nodes.length>0)?Ja("$.set_default_value",t,s):"defaultChecked"===n&&r.some((e=>"Attribute"===e.type&&"checked"===e.name&&!0===e.value))?Ja("$.set_default_checked",t,s):function(e){return ee.includes(e)}(n)?Ka("=",hi(t,n),s):Ja(n.startsWith("xlink")?"$.set_xlink_attribute":"$.set_attribute",t,di(n),s,Ee(e,"hydration_attribute_changed")&&Ri)}function TS(e,t,n){const{value:s,has_state:r}=RS(t.value,n),a=Ja("$.set_custom_element_data",e,di(t.name),s),i=r?Ja("$.template_effect",Pi(a)):a;n.state.init.push(ki(i))}function AS(e,t,n,s,r=!1){const a=s.state,i="select"===e&&!0!==n.value&&!Gi(n),{value:o,has_state:l}=RS(n.value,s,((e,t)=>t.has_call||t.has_await?a.memoizer.add(e,t.has_await):e)),c=s.state.scope.evaluate(o),p=Ka("=",hi(t,"__value"),o),u=Ka("=",hi(t,"value"),c.is_defined?p:ni("??",p,di(""))),d=ki(i?xi([u,Ja("$.select_option",t,o)]):r?p:u);if(l){const n=ci(a.scope.generate(`${t.name}_value`)),s="option"===e?fi([]):void 0;a.init.push(Di(n,s)),a.update.push(Fi(Qa("!==",n,Ka("=",n,o)),Ya([d])))}else a.init.push(d);i&&a.init.push(ki(Ja("$.init_select",t)))}function $S(e,t,n,s,r,a,i=!1){const o=[],l=new fp;for(const t of e)if("Attribute"===t.type){const{value:e}=RS(t.value,s,((e,t)=>t.has_call||t.has_await?l.add(e,t.has_await):e));if(!Yi(t)||"ArrowFunctionExpression"!==e.type&&"FunctionExpression"!==e.type)o.push(ui(t.name,e));else{const n=s.state.scope.generate("event_handler");s.state.init.push(Di(n,e)),o.push(ui(t.name,ci(n)))}}else{let e=s.visit(t);(t.metadata.expression.has_call||t.metadata.expression.has_await)&&(e=l.add(e,t.metadata.expression.has_await)),o.push(Ci(e))}t.length&&o.push(vi("init",Ua([ci("$.CLASS")]),SS(t,s,l))),n.length&&o.push(vi("init",Ua([ci("$.STYLE")]),PS(n,s,l)));const c=l.apply();s.state.init.push(ki(Ja("$.attribute_effect",a,Ga(c,fi(o)),l.sync_values(),l.async_values(),r.metadata.scoped&&""!==s.state.analysis.css.hash&&di(s.state.analysis.css.hash),i&&Ri,Ee(r,"hydration_attribute_changed")&&Ri)))}function RS(e,t,n=(e=>e)){if(!0===e)return{value:Ri,has_state:!1};if(!Array.isArray(e)||1===e.length){const s=Array.isArray(e)?e[0]:e;if("Text"===s.type)return{value:di(s.data),has_state:!1};return{value:n(wp(t,s.expression,s.metadata.expression),s.metadata.expression),has_state:s.metadata.expression.has_state||s.metadata.expression.has_await}}return yp(e,t,t.state,n)}function IS(e,t){return e.metadata.svg||e.metadata.mathml?t.name:(n=(n=t.name).toLowerCase(),Z[n]??n);var n}function MS(e,t,n,s,r,a){let i,o,l,c,{value:p,has_state:u}=RS(n.value,r,((e,t)=>(n.metadata.needs_clsx&&(e=Ja("$.clsx",e)),t.has_call||t.has_await?r.state.memoizer.add(e,t.has_await):e)));s.length&&(l=SS(s,r),u||=s.some((e=>e.metadata.expression.has_state||e.metadata.expression.has_await)),u?(i=ci(r.state.scope.generate("classes")),r.state.init.push(si("let",[ri(i)])),o=i):o=fi([])),e.metadata.scoped&&r.state.analysis.css.hash&&("Literal"!==p.type||""!==p.value&&null!==p.value?"Literal"===p.type&&"string"==typeof p.value?p=di(jk(p.value,!0)+" "+r.state.analysis.css.hash):c=di(r.state.analysis.css.hash):p=di(r.state.analysis.css.hash)),!c&&l&&(c=Mi);let d=Ja("$.set_class",t,di(a?1:0),p,c,o,l);i&&(d=Ka("=",i,d)),(u?r.state.update:r.state.init).push(ki(d))}function qS(e,t,n,s){let r,a,i,{value:o,has_state:l}=RS(t.value,s,((e,t)=>t.has_call?s.state.memoizer.add(e,t.has_await):e));n.length&&(i=PS(n,s),l||=n.some((e=>e.metadata.expression.has_state||e.metadata.expression.has_await)),l?(r=ci(s.state.scope.generate("styles")),s.state.init.push(si("let",[ri(r)])),a=r):a=fi([]));let c=Ja("$.set_style",e,o,a,i);r&&(c=Ka("=",r,c)),(l?s.state.update:s.state.init).push(ki(c))}function LS(e,t,n){const s=n.state.node,r=[],a=[],i=[],o={default:{...n.state,scope:e.metadata.scopes.default,transform:{...n.state.transform}}},l={},c={},p=new fp,u=[];let d=null;const h=[],m="SvelteComponent"===e.type||"Component"===e.type&&e.metadata.dynamic,f="Component"===e.type&&e.metadata.dynamic?n.state.scope.generate(e.name):"$$component";let y=!!Ul(e),v=!1;function g(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(y)for(const t of e.attributes)"LetDirective"===t.type&&i.push(n.visit(t));for(const s of e.attributes)if("LetDirective"===s.type)y||i.push(n.visit(s,o.default));else if("OnDirective"===s.type){s.expression||(n.state.analysis.needs_props=!0);let e=_S(s.expression,s.metadata.expression,n);s.modifiers.includes("once")&&(e=Ja("$.once",e)),(c[s.name]||=[]).push(e)}else if("SpreadAttribute"===s.type){const e=n.visit(s);s.metadata.expression.has_state?r.push(Pi(s.metadata.expression.has_await||s.metadata.expression.has_call?Ja("$.get",p.add(e,s.metadata.expression.has_await)):e)):r.push(e)}else if("Attribute"===s.type){if(s.name.startsWith("--")){u.push(ui(s.name,RS(s.value,n,((e,t)=>t.has_call||t.has_await?Ja("$.get",p.add(e,t.has_await)):e)).value));continue}"slot"===s.name&&(y=!0),"children"===s.name&&(v=!0);const{value:e,has_state:t}=RS(s.value,n,((e,t)=>{if(!t.has_state&&!t.has_await)return e;const n=t.has_await||Qi(s.value).some((e=>"ExpressionTag"===e.type&&"Identifier"!==e.expression.type&&"MemberExpression"!==e.expression.type));return n?Ja("$.get",p.add(e,t.has_await)):e}));g(t?li(s.name,[Ui(e)]):ui(s.name,e))}else if("BindDirective"===s.type){const r=n.visit(s.expression);if(be&&"this"!==s.name&&!Ee(e,"ownership_invalid_binding")&&"SequenceExpression"!==s.expression.type){const e=Wi(s.expression),a=e&&n.state.scope.get(e.name);"bindable_prop"!==a?.kind&&"prop"!==a?.kind||(n.state.analysis.needs_mutation_validation=!0,h.push(ki(Ja("$$ownership_validator.binding",di(a.node.name),ci(m?f:t),Pi(r)))))}if("SequenceExpression"===r.type)if("this"===s.name)d=s.expression;else{const[e,t]=r.expressions,a=ci(n.state.scope.generate("bind_get")),i=ci(n.state.scope.generate("bind_set"));n.state.init.push(Di(a,e)),n.state.init.push(Di(i,t)),g(li(s.name,[Ui(Ja(a))])),g(wi(s.name,[ki(Ja(i,ci("$$value")))]))}else if(be&&"MemberExpression"===r.type&&n.state.analysis.runes&&!Ee(e,"binding_property_non_reactive")&&_p(n.state,s,r),"this"===s.name)d=s.expression;else{const e="Identifier"===s.expression.type&&"store_sub"===n.state.scope.get(s.expression.name)?.kind;g(li(s.name,e?[ki(Ja("$.mark_store_binding")),Ui(r)]:[Ui(r)]),!0);const t=Ka("=",s.expression,ci("$$value"));g(wi(s.name,[ki(n.visit(t))]),!0)}}else if("AttachTag"===s.type){const e=n.state.scope.evaluate(s.expression);let t=n.visit(s.expression);s.metadata.expression.has_state&&(t=Ga([ci("$$node")],Ja(e.is_function?t:ni("||",t,ci("$.noop")),ci("$$node")))),g(vi("init",Ja("$.attachment"),t,!0))}if(a.forEach((e=>e())),y&&n.state.init.push(...i),Object.keys(c).length>0){const e=fi(Object.keys(c).map((e=>ui(e,c[e].length>1?Ua(c[e]):c[e][0]))));g(ui("$$events",e))}const b=[],_=[];for(const t of e.fragment.nodes){if("SnippetBlock"===t.type){n.visit(t,{...n.state,init:b}),g(vi("init",t.expression,t.expression)),_.push(ui("children"===t.expression.name?"default":t.expression.name,Ri));continue}let e=Ul(t)??"default";(l[e]||=[]).push(t)}for(const t of Object.keys(l)){const s=n.visit({...e.fragment,nodes:l[t]},"default"===t?y?n.state:o.default:{...n.state,scope:e.metadata.scopes[t],transform:{...n.state.transform}});if(0===s.body.length)continue;const r=Ga([ci("$$anchor"),ci("$$slotProps")],Ya([..."default"!==t||y?[]:i,...s.body]));"default"!==t||v?_.push(ui(t,r)):0===i.length&&l.default.every((e=>"SvelteFragment"!==e.type||!e.attributes.some((e=>"LetDirective"===e.type))))?(g(ui("children",be?Ja("$.wrap_snippet",ci(n.state.analysis.name),r):r)),_.push(ui(t,Ri))):(_.push(ui(t,r)),g(ui("children",ci("$.invalid_default_snippet"))))}_.length>0&&g(ui("$$slots",fi(_))),!n.state.analysis.runes&&e.attributes.some((e=>"BindDirective"===e.type))&&g(ui("$$legacy",Ri));const x=0===r.length||1===r.length&&Array.isArray(r[0])?fi(r[0]||[]):Ja("$.spread_props",...r.map((e=>Array.isArray(e)?fi(e):e)));let w=e=>Ja(m?f:n.visit(mi(t)),e,x);if(null!==d){const e=w;w=t=>bp(d,e(t),n)}const C=[...b,...p.deriveds(n.state.analysis.runes)];if(m){const s=w;w=r=>Ja("$.component",r,Pi(n.visit("Component"===e.type?mi(t):e.expression)),Ga([ci("$$anchor"),ci(f)],Ya([...h,ki(s(ci("$$anchor")))])))}else C.push(...h);Object.keys(u).length>0?("svg"===n.state.metadata.namespace?n.state.template.push_element("g",e.start):(n.state.template.push_element("svelte-css-wrapper",e.start),n.state.template.set_prop("style","display: contents")),n.state.template.push_comment(),n.state.template.pop_element(),C.push(ki(Ja("$.css_props",s,Pi(fi(u)))),ki(w(hi(s,"lastChild"))),ki(Ja("$.reset",s)))):(n.state.template.push_comment(),C.push(Cp(w(s),e,"component",{componentTag:e.name}))),p.apply();const k=p.async_values();return k?ki(Ja("$.async",s,k,Ga([ci("$$anchor"),...p.async_ids()],Ya(C)))):C.length>1?Ya(C):C[0]}function OS(e){const t=Ua([]);for(const n of e){if("element"!==n.type)continue;const{line:e,column:s}=we(n.start),r=Ua([di(e),di(s)]),a=OS(n.children);a.elements.length>0&&r.elements.push(a),t.elements.push(r)}return t}function NS(e,t,n=0){const s="tree"===e.options.fragments,r=s?e.template.as_tree():e.template.as_html();s&&("svg"===t&&(n|=E),"mathml"===t&&(n|=T));let a=Ja(s?"$.from_tree":`$.from_${t}`,r,n?di(n):void 0);return e.template.contains_script_tag&&(a=Ja("$.with_script",a)),be&&(a=Ja("$.add_locations",a,hi(ci(e.analysis.name),"$.FILENAME",!0),OS(e.template.nodes))),a}const DS="accent-height accumulate additive alignment-baseline allowReorder alphabetic amplitude arabic-form ascent attributeName attributeType autoReverse azimuth baseFrequency baseline-shift baseProfile bbox begin bias by calcMode cap-height class clip clipPathUnits clip-path clip-rule color color-interpolation color-interpolation-filters color-profile color-rendering contentScriptType contentStyleType cursor cx cy d decelerate descent diffuseConstant direction display divisor dominant-baseline dur dx dy edgeMode elevation enable-background end exponent externalResourcesRequired fill fill-opacity fill-rule filter filterRes filterUnits flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight format from fr fx fy g1 g2 glyph-name glyph-orientation-horizontal glyph-orientation-vertical glyphRef gradientTransform gradientUnits hanging height href horiz-adv-x horiz-origin-x id ideographic image-rendering in in2 intercept k k1 k2 k3 k4 kernelMatrix kernelUnitLength kerning keyPoints keySplines keyTimes lang lengthAdjust letter-spacing lighting-color limitingConeAngle local marker-end marker-mid marker-start markerHeight markerUnits markerWidth mask maskContentUnits maskUnits mathematical max media method min mode name numOctaves offset onabort onactivate onbegin onclick onend onerror onfocusin onfocusout onload onmousedown onmousemove onmouseout onmouseover onmouseup onrepeat onresize onscroll onunload opacity operator order orient orientation origin overflow overline-position overline-thickness panose-1 paint-order pathLength patternContentUnits patternTransform patternUnits pointer-events points pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits r radius refX refY rendering-intent repeatCount repeatDur requiredExtensions requiredFeatures restart result rotate rx ry scale seed shape-rendering slope spacing specularConstant specularExponent speed spreadMethod startOffset stdDeviation stemh stemv stitchTiles stop-color stop-opacity strikethrough-position strikethrough-thickness string stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width style surfaceScale systemLanguage tabindex tableValues target targetX targetY text-anchor text-decoration text-rendering textLength to transform type u1 u2 underline-position underline-thickness unicode unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical values version vert-adv-y vert-origin-x vert-origin-y viewBox viewTarget visibility width widths word-spacing writing-mode x x-height x1 x2 xChannelSelector xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xml:lang xml:space y y1 y2 yChannelSelector z zoomAndPan".split(" "),jS=new Map;DS.forEach((e=>{jS.set(e.toLowerCase(),e)}));class BS{contains_script_tag=!1;needs_import_node=!1;nodes=[];#o=[this.nodes];#l;#c=this.nodes;push_element(e,t){this.#l={type:"element",name:e,attributes:{},children:[],start:t},this.#c.push(this.#l),this.#c=this.#l.children,this.#o.push(this.#c)}push_comment(e){this.#c.push({type:"comment",data:e})}push_text(e){this.#c.push({type:"text",nodes:e})}pop_element(){this.#o.pop(),this.#c=this.#o.at(-1)}set_prop(e,t){this.#l.attributes[e]=t}as_html(){return Si([bi(this.nodes.map(FS).join(""),!0)],[])}as_tree(){return"comment"===this.nodes[0].type&&this.nodes.unshift({type:"comment",data:void 0}),Ua(this.nodes.map(VS))}}function FS(e){if("text"===e.type)return e.nodes.map((e=>e.raw)).join("");if("comment"===e.type)return e.data?`\x3c!--${e.data}--\x3e`:"<!>";let t=`<${e.name}`;for(const n in e.attributes){const s=e.attributes[n];t+=` ${n}`,void 0!==s&&(t+=`="${jk(s,!0)}"`)}return z(e.name)?t+="/>":(t+=">",t+=e.children.map(FS).join(""),t+=`</${e.name}>`),t}function VS(e){if("text"===e.type)return di(e.nodes.map((e=>e.data)).join(""));if("comment"===e.type)return e.data?Ua([di(`// ${e.data}`)]):null;const t=Ua([di(e.name)]),n=fi([]);for(const t in e.attributes){const r=e.attributes[t];n.properties.push(vi("init",zi((s=(s=t).toLowerCase(),jS.get(s)||s)),void 0===r?ti:di(r)))}var s;if((n.properties.length>0||e.children.length>0)&&t.elements.push(n.properties.length>0?n:Mi),e.children.length>0){const n=e.children.map(VS);if(t.elements.push(...n),"pre"===e.name||"textarea"===e.name){const e=n[0];"Literal"===e?.type&&(e.value=e.value.replace(a,""))}}return t}const HS=["stopPropagation","stopImmediatePropagation","preventDefault","self","trusted","once"];function US(e,t,n){const s={...n.state,node:ci(t)};for(const t of e.attributes)"OnDirective"===t.type?n.state.init.push(ki(n.visit(t,s))):n.visit(t,s)}function zS(e,t,n){if("Identifier"===e.id.type)return[ri(e.id,Ja("$.mutable_source",n,t.state.analysis.immutable?Ri:void 0))];const s=ci(t.state.scope.generate("tmp")),{inserts:r,paths:a}=no(e.id,s);return[ri(s,n),...r.map((({id:e,value:n})=>{e.name=t.state.scope.generate("$$array"),t.state.transform[e.name]={read:Mk};return ri(e,Ja("$.derived",t.visit(Pi(n))))})),...a.map((e=>{const n=t.visit(e.expression),s=t.state.scope.get(e.node.name);return ri(e.node,"state"===s?.kind?Ja("$.mutable_source",n,t.state.analysis.immutable?Ri:void 0):n)}))]}const WS={_: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&&!kp(r,n.analysis))&&delete e[t];t({...n,transform:e,scope:s})}else t()},AnimateDirective:function(e,t){const n=null===e.expression?Mi:Pi(t.visit(e.expression));t.state.after_update.push(ki(Ja("$.animation",t.state.node,Pi(t.visit(gp(e.name))),n)))},ArrowFunctionExpression:function(e,t){return mS(e,t)},AssignmentExpression:function(e,t){const n=Lk(e,t,vS)??t.next();return xp(e,t,n)},Attribute:function(e,t){Yi(e)&&gS(e,t)},AwaitBlock:function(e,t){t.state.template.push_comment();const n=Pi(wp(t,e.expression,e.metadata.expression),e.metadata.expression.has_await);let s,r;if(e.then){const n={...t,state:{...t.state,transform:{...t.state.transform}}},r=e.value&&wS(e.value,n),a=[ci("$$anchor")];r&&a.push(r.id);s=Ga(a,Ya([...r?.declarations??[],...n.visit(e.then,n.state).body]))}if(e.catch){const n={...t,state:{...t.state}},s=e.error&&wS(e.error,n),a=[ci("$$anchor")];s&&a.push(s.id);r=Ga(a,Ya([...s?.declarations??[],...n.visit(e.catch,n.state).body]))}t.state.init.push(Cp(Ja("$.await",t.state.node,n,e.pending?Ga([ci("$$anchor")],t.visit(e.pending)):Mi,s,r),e,"await"))},AwaitExpression:function(e,t){const n=t.visit(e.argument);return t.state.analysis.pickled_awaits.has(e)?Ja(Xa(Ja("$.save",n))):be&&!Ee(e,"await_reactivity_loss")?Ja(Xa(Ja("$.track_reactivity_loss",n))):n===e.argument?e:{...e,argument:n}},BinaryExpression:function(e,t){if(be){const n=e.operator;if("==="===n||"!=="===n)return Ja("$.strict_equals",t.visit(e.left),t.visit(e.right),"!=="===n&&Ii);if("=="===n||"!="===n)return Ja("$.equals",t.visit(e.left),t.visit(e.right),"!="===n&&Ii)}t.next()},BindDirective:function(e,t){const n=t.visit(e.expression),s=op[e.name],r=t.path.at(-1);let a,i,o;if("SequenceExpression"===n.type?[a,i]=n.expressions:(be&&t.state.analysis.runes&&"MemberExpression"===n.type&&("this"!==e.name||t.path.some((({type:e})=>"IfBlock"===e||"EachBlock"===e||"AwaitBlock"===e||"KeyBlock"===e)))&&!Ee(e,"binding_property_non_reactive")&&_p(t.state,e,n),a=Pi(n),i=Ei(Ga([ci("$$value")],t.visit(Ka("=",e.expression,ci("$$value"))))),a===i&&(i=void 0)),s?.event)o=Ja("$.bind_property",di(e.name),di(s.event),t.state.node,i??a,s.bidirectional&&a);else switch(e.name){case"online":o=Ja("$.bind_online",i??a);break;case"scrollX":case"scrollY":o=Ja("$.bind_window_scroll",di("scrollX"===e.name?"x":"y"),a,i);break;case"innerWidth":case"innerHeight":case"outerWidth":case"outerHeight":o=Ja("$.bind_window_size",di(e.name),i??a);break;case"activeElement":o=Ja("$.bind_active_element",i??a);break;case"muted":o=Ja("$.bind_muted",t.state.node,a,i);break;case"paused":o=Ja("$.bind_paused",t.state.node,a,i);break;case"volume":o=Ja("$.bind_volume",t.state.node,a,i);break;case"playbackRate":o=Ja("$.bind_playback_rate",t.state.node,a,i);break;case"currentTime":o=Ja("$.bind_current_time",t.state.node,a,i);break;case"buffered":o=Ja("$.bind_buffered",t.state.node,i??a);break;case"played":o=Ja("$.bind_played",t.state.node,i??a);break;case"seekable":o=Ja("$.bind_seekable",t.state.node,i??a);break;case"seeking":o=Ja("$.bind_seeking",t.state.node,i??a);break;case"ended":o=Ja("$.bind_ended",t.state.node,i??a);break;case"readyState":o=Ja("$.bind_ready_state",t.state.node,i??a);break;case"contentRect":case"contentBoxSize":case"borderBoxSize":case"devicePixelContentBoxSize":o=Ja("$.bind_resize_observer",t.state.node,di(e.name),i??a);break;case"clientWidth":case"clientHeight":case"offsetWidth":case"offsetHeight":o=Ja("$.bind_element_size",t.state.node,di(e.name),i??a);break;case"value":o="RegularElement"===r?.type&&"select"===r.name?Ja("$.bind_select_value",t.state.node,a,i):Ja("$.bind_value",t.state.node,a,i);break;case"files":o=Ja("$.bind_files",t.state.node,a,i);break;case"this":o=bp(e.expression,t.state.node,t);break;case"textContent":case"innerHTML":case"innerText":o=Ja("$.bind_content_editable",di(e.name),t.state.node,a,i);break;case"checked":o=Ja("$.bind_checked",t.state.node,a,i);break;case"focused":o=Ja("$.bind_focused",t.state.node,i??a);break;case"group":{const s=e.metadata.parent_each_blocks.map((e=>e.metadata.keyed&&e.index?Ja("$.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&&!Gi(e)&&!0!==e.value))?.value;void 0!==e&&(l=Pi(Ya([ki(RS(e,t).value),Ui(n)])))}o=Ja("$.bind_group",e.metadata.binding_group_name,Ua(s),t.state.node,l,i??a);break}default:throw new Error("unknown binding "+e.name)}if("this"===e.name)t.state.init.push(ki(o));else{"RegularElement"===r.type&&r.attributes.find((e=>"UseDirective"===e.type))?t.state.init.push(ki(Ja("$.effect",Pi(o)))):t.state.after_update.push(ki(o))}},BlockStatement:function(e,t){qk(t);const n=t.state.scope.tracing;if(null!==n){const s=t.path.at(-1).async,r=Ja("$.trace",n,Pi(Ya(e.body.map((e=>t.visit(e)))),s));return Ya([Ui(s?Xa(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?Ui():void 0},CallExpression:function(e,t){const n=fc(e,t.state.scope);switch(n){case"$host":return ci("$$props.$$host");case"$effect.tracking":return Ja("$.effect_tracking");case"$state":case"$state.raw":{let s,r=e.arguments[0];return r&&(s=t.visit(e.arguments[0]),"$state"===n&&Ap(r,t.state.scope)&&(s=Ja("$.proxy",s))),Ja("$.state",s)}case"$derived":case"$derived.by":{let s=t.visit(e.arguments[0]);return Ja("$.derived","$derived"===n?Pi(s):s)}case"$state.snapshot":return Ja("$.snapshot",t.visit(e.arguments[0]),Ee(e,"state_snapshot_uncloneable")&&Ri);case"$effect.root":return Ja("$.effect_root",...e.arguments.map((e=>t.visit(e))));case"$effect.pending":return Ja("$.pending");case"$inspect":case"$inspect().with":return sS(e,t)}if(be&&"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=>"SpreadElement"===e.type||t.state.scope.evaluate(e).has_unknown)))return Ja(e.callee,Ci(Ja("$.log_if_contains_state",di(e.callee.property.name),...e.arguments.map((e=>t.visit(e))))));t.next()},ClassBody:function(e,t){const n=t.state.analysis.classes.get(e);if(!n)return void t.next();const s=[],r={...t.state,state_fields:n};for(const[e,t]of n)if("#"!==e[0]&&"AssignmentExpression"===t.node.type){const n=hi(Li,t.key),r="$state"===t.type&&!0,a=zi(e);s.push(gi(t.key,null),ji("get",a,[],[Ui(Ja("$.get",n))]),ji("set",a,[ci("value")],[ki(Ja("$.set",n,ci("value"),r&&Ri))]))}const a=ro(t.path,-1);for(const i of e.body){if("PropertyDefinition"!==i.type){s.push(t.visit(i,r));continue}const e=el(i.key),o=e&&n.get(e);if(o){if("#"===e[0]){let n=i.value?t.visit(i.value,r):void 0;be&&o.node===i&&(n=Ja("$.tag",n,di(`${a.id?.name??"[class]"}.${e}`))),s.push(gi(i.key,n))}else if(o.node===i){let n=t.visit(o.value,r);be&&(n=Ja("$.tag",n,di(`${a.id?.name??"[class]"}.${e}`)));const l=hi(Li,o.key),c="$state"===o.type&&!0;s.push(gi(o.key,n),ji("get",i.key,[],[Ui(Ja("$.get",l))]),ji("set",i.key,[ci("value")],[ki(Ja("$.set",l,ci("value"),c&&Ri))]))}}else s.push(t.visit(i,r))}return{...e,body:s}},Comment:function(e,t){t.state.template.push_comment(e.data)},Component:function(e,t){const n=LS(e,e.name,t);t.state.init.push(n)},ConstTag:function(e,t){const n=e.declaration.declarations[0];if("Identifier"===n.id.type){const s=wp(t,n.init,e.metadata.expression);let r=$p(t.state,s,e.metadata.expression.has_await);be&&(r=Ja("$.tag",r,di(n.id.name))),t.state.consts.push(Ni(n.id,r)),t.state.transform[n.id.name]={read:Mk},be&&t.state.consts.push(ki(Ja("$.get",n.id)))}else{const s=Zi(n.id),r=ci(t.state.scope.generate("computed_const")),a={...t.state.transform};for(const e of s)delete a[e.name];const i={...t.state,transform:a},o=wp({...t,state:i},n.init,e.metadata.expression),l=Ya([Ni(t.visit(n.id,i),o),Ui(fi(s.map((e=>vi("init",e,e)))))]);let c=$p(t.state,l,e.metadata.expression.has_await);be&&(c=Ja("$.tag",c,di("[@const]"))),t.state.consts.push(Ni(r,c)),be&&t.state.consts.push(ki(Ja("$.get",r)));for(const e of s)t.state.transform[e.name]={read:e=>hi(Ja("$.get",r),e)}}},DebugTag:function(e,t){const n=fi(e.identifiers.map((e=>{const n=Ja("$.snapshot",t.visit(e));return vi("init",e,t.state.analysis.runes?n:Ja("$.untrack",Pi(n)))}))),s=Ja("console.log",n);t.state.init.push(ki(Ja("$.template_effect",Pi(Ya([ki(s),qi])))))},EachBlock:function(e,t){const n=e.metadata,s={...t.state,scope:t.state.scope.parent},r=wp({...t,state:s},e.expression,e.metadata.expression);n.is_controlled||t.state.template.push_comment();let a=0;e.metadata.keyed&&e.index&&(a|=2);const i="Identifier"===e.key?.type&&"Identifier"===e.context?.type&&e.context?.name===e.key.name;let o;for(const t of e.metadata.expression.dependencies)if("store_sub"===t.kind){o=!0;break}for(const n of e.metadata.expression.dependencies)if(!(n.scope.function_depth>=t.state.scope.function_depth)&&(!t.state.analysis.runes||!i||o)){a|=1;break}t.state.analysis.runes&&!o&&(a|=16),e.key&&e.body.nodes.some((e=>("RegularElement"===e.type||"SvelteElement"===e.type)&&e.attributes.some((e=>"AnimateDirective"===e.type))))&&(a|=8),n.is_controlled&&(a|=4);let l="";if("Identifier"===e.expression.type||"MemberExpression"===e.expression.type){const n=Wi(e.expression);if(n){const e=t.state.scope.get(n.name);"store_sub"===e?.kind&&(l=n.name)}}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}const p={...t.state,transform:{...t.state.transform},store_to_invalidate:l},u={...t.state,transform:{...t.state.transform}},d=n.contains_group_binding||!e.index?n.index:ci(e.index),h="Identifier"===e.context?.type?e.context:ci("$$item");let m=n.contains_group_binding,f=!1;e.index&&(p.transform[e.index]={read:e=>(m=!0,0!=(2&a)?Mk(e):e)},u.transform[e.index]={read:e=>(f=!0,e)});const y=[],v=l?Ja("$.invalidate_store",ci("$$stores"),di(l)):void 0,g=[];if(!t.state.analysis.runes){const e=new Set;if(c)e.add(c),p.transform[c.name]={read:Ja};else for(const t of n.transitive_deps)e.add(t.node);for(const n of function(e){return e.path.filter((e=>"EachBlock"===e.type))}(t))for(const t of n.metadata.transitive_deps)e.add(t.node);if(e.size>0){const n=Ja("$.invalidate_inner_signals",Pi(xi([...e].map((e=>t.visit({...e},p))))));g.push(n)}}if(v&&g.push(v),"Identifier"===e.context?.type){const n=t.state.scope.get(e.context.name);p.transform[e.context.name]={read:e=>n.reassigned?hi(c?Ja(c):r,0!=(2&a)?Mk(d):d,!0):0!=(1&a)?Mk(e):e,assign:(e,t)=>{m=!0;return xi([Ka("=",hi(c?Ja(c):r,0!=(2&a)?Mk(d):d,!0),t),...g])},mutate:(e,t)=>(m=!0,xi([t,...g]))},delete u.transform[e.context.name]}else if(e.context){const n=0!=(1&a)?Ja("$.get",h):h,{inserts:s,paths:r}=no(e.context,n);for(const{id:e,value:n}of s){e.name=t.state.scope.generate("$$array"),p.transform[e.name]={read:Mk};const s=t.visit(Pi(n),p);y.push(Di(e,Ja("$.derived",s)))}for(const e of r){const n=e.node.name,s=e.has_default_value,r=Pi(t.visit(e.expression,p));y.push(Oi(e.node,s?Ja("$.derived_safe_equal",r):r));const a=s?Mk:Ja;p.transform[n]={read:a,assign:(t,n)=>xi([Ka("=",e.update_expression,n),...g]),mutate:(e,t)=>xi([t,...g])},be&&y.push(ki(a(ci(n)))),delete u.transform[n]}}const b=t.visit(e.body,p);let _=ci("$.index");if(e.metadata.keyed){const n=e.context,s=t.visit(e.key,u);_=Ga(f?[n,d]:[n],s)}e.index&&n.contains_group_binding&&y.push(Oi(e.index,d));const{has_await:x}=e.metadata.expression,w=Pi(r,x),C=x?Pi(Ja("$.get",ci("$$collection"))):w,k=[ci("$$anchor"),h];(m||c)&&k.push(d),c&&k.push(c);const S=[t.state.node,di(a),C,_,Ga(k,Ya(y.concat(b.body)))];e.fallback&&S.push(Ga([ci("$$anchor")],t.visit(e.fallback)));const P=[Cp(Ja("$.each",...S),e,"each")];be&&e.metadata.keyed&&P.unshift(ki(Ja("$.validate_each_keys",C,_))),x?t.state.init.push(ki(Ja("$.async",t.state.node,Ua([w]),Ga([t.state.node,ci("$$collection")],Ya(P))))):t.state.init.push(...P)},ExportNamedDeclaration:function(e,t){return t.state.is_instance?e.declaration?t.visit(e.declaration):ai:t.next()},ExpressionStatement:function(e,t){if("CallExpression"===e.expression.type){const n=fc(e.expression,t.state.scope);if("$effect"===n||"$effect.pre"===n){const s=Ja("$effect"===n?"$.user_effect":"$.user_pre_effect",t.visit(e.expression.arguments[0]));return s.callee.loc=e.expression.callee.loc,ki(s)}if("$inspect.trace"===n)return ai}t.next()},ForOfStatement:function(e,t){if(e.await&&be&&!Ee(e,"await_reactivity_loss")&&t.state.options.experimental.async){const n=t.visit(e.left),s=t.visit(e.right),r=t.visit(e.body);return function(e,t,n,s=!1){return{type:"ForOfStatement",left:e,right:t,body:n,await:s}}(n,Ja("$.for_await_track_reactivity_loss",s),r,!0)}t.next()},Fragment:function(e,t){const n=t.path.at(-1)??e,s=tS(t.state.metadata.namespace,n,e.nodes),{hoisted:r,trimmed:a,is_standalone:i,is_text_first:o}=eS(n,e.nodes,t.path,s,t.state,t.state.preserve_whitespace,t.state.options.preserveComments);if(0===r.length&&0===a.length)return Ya([]);const l=1===a.length&&"RegularElement"===a[0].type,c=1===a.length&&("SvelteFragment"===a[0].type||"TitleElement"===a[0].type),p=null!==t.state.init&&(e.metadata.has_await||!1),u=t.state.scope.root.unique("root"),d=[];let h;const m={...t.state,init:[],consts:[],update:[],after_update:[],memoizer:new fp,template:new BS,transform:{...t.state.transform},metadata:{namespace:s,bound_contenteditable:t.state.metadata.bound_contenteditable}};for(const e of r)t.visit(e,m);if(l){const e=a[0],n=ci(t.state.scope.generate(e.name));t.visit(e,{...m,node:n});const r=NS(m,s,m.template.needs_import_node?2:void 0);m.hoisted.push(Di(u,r)),m.init.unshift(Di(n,Ja(u))),h=ki(Ja("$.append",ci("$$anchor"),n))}else if(c)t.visit(a[0],m);else if(1===a.length&&"Text"===a[0].type){const e=ci(t.state.scope.generate("text"));m.init.unshift(Di(e,Ja("$.text",di(a[0].data)))),h=ki(Ja("$.append",ci("$$anchor"),e))}else if(a.length>0){const e=ci(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=ci(t.state.scope.generate("text"));CS(a,(()=>e),!1,{...t,state:m}),m.init.unshift(Di(e,Ja("$.text"))),h=ki(Ja("$.append",ci("$$anchor"),e))}else if(i)CS(a,(()=>ci("$$anchor")),!1,{...t,state:m});else{CS(a,(t=>Ja("$.first_child",e,t&&Ri)),!1,{...t,state:m});let n=1;if(m.template.needs_import_node&&(n|=2),1===m.template.nodes.length&&"comment"===m.template.nodes[0].type)m.init.unshift(Di(e,Ja("$.comment")));else{const t=NS(m,s,n);m.hoisted.push(Di(u,t)),m.init.unshift(Di(e,Ja(u)))}h=ki(Ja("$.append",ci("$$anchor"),e))}}return d.push(...m.consts),p&&d.push(Fi(Ja("$.aborted"),Ui())),o&&d.push(ki(Ja("$.next"))),d.push(...m.init),m.update.length>0&&d.push(vp(m)),d.push(...m.after_update),void 0!==h&&d.push(h),Ya(p?[ki(Ja("$.async_body",Ga([],Ya(d),!0)))]:d)},FunctionDeclaration:function(e,t){const n={...t.state,in_constructor:!1,in_derived:!1};if(!0===e.metadata?.hoisted){const s=Pp(e,t),r=t.visit(e.body,n);return t.state.hoisted.push({...e,params:s,body:r}),ai}t.next(n)},FunctionExpression:function(e,t){return mS(e,t)},HtmlTag:function(e,t){t.state.template.push_comment();const{has_await:n}=e.metadata.expression,s=wp(t,e.expression,e.metadata.expression),r=n?Ja("$.get",ci("$$html")):s,a="svg"===t.state.metadata.namespace,i="mathml"===t.state.metadata.namespace,o=ki(Ja("$.html",t.state.node,Pi(r),a&&Ri,i&&Ri,Ee(e,"hydration_html_changed")&&Ri));e.metadata.expression.has_await?t.state.init.push(ki(Ja("$.async",t.state.node,Ua([Pi(s,!0)]),Ga([t.state.node,ci("$$html")],Ya([o]))))):t.state.init.push(o)},Identifier:function(e,t){const n=t.path.at(-1);if(Hl(e,n)){if("$$props"===e.name)return ci("$$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 ci("$$props")}return Sp(e,t.state)}},IfBlock:function(e,t){t.state.template.push_comment();const n=[],s=t.visit(e.consequent),r=ci(t.state.scope.generate("consequent"));let a;if(n.push(Di(r,Ga([ci("$$anchor")],s))),e.alternate){const s=t.visit(e.alternate);a=ci(t.state.scope.generate("alternate")),n.push(Di(a,Ga([ci("$$anchor")],s)))}const{has_await:i}=e.metadata.expression,o=wp(t,e.test,e.metadata.expression),l=i?Ja("$.get",ci("$$condition")):o,c=[t.state.node,Ga([ci("$$render")],Ya([Fi(l,ki(Ja("$$render",r)),a&&ki(Ja("$$render",a,di(!1))))]))];e.elseif&&c.push(Ri),n.push(Cp(Ja("$.if",...c),e,"if")),i?t.state.init.push(ki(Ja("$.async",t.state.node,Ua([Pi(o,!0)]),Ga([t.state.node,ci("$$condition")],Ya(n))))):t.state.init.push(Ya(n))},ImportDeclaration:function(e,t){if("hoisted"in t.state)return t.state.hoisted.push(e),ai;t.next()},KeyBlock:function(e,t){t.state.template.push_comment();const{has_await:n}=e.metadata.expression,s=wp(t,e.expression,e.metadata.expression),r=Pi(n?Ja("$.get",ci("$$key")):s),a=t.visit(e.fragment);let i=Cp(Ja("$.key",t.state.node,r,Ga([ci("$$anchor")],a)),e,"key");n&&(i=ki(Ja("$.async",t.state.node,Ua([Pi(s,!0)]),Ga([t.state.node,ci("$$key")],Ya([i]))))),t.state.init.push(i)},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=Ya([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=Sp(ci(n),t.state);"$$props"!==n&&"$$restProps"!==n&&"bindable_prop"!==e.kind||(s=Ja("$.deep_read_state",s)),a.push(s)}return t.state.legacy_reactive_statements.set(e,ki(Ja("$.legacy_pre_effect",a.length>0?Pi(xi(a)):Pi(Ya([])),Pi(Ya(r))))),ai},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=>hi(Ja("$.get",ci(n)),e)};return Ni(n,Ja("$.derived",Pi(Ya([Oi("ObjectExpression"===e.expression.type?yi(e.expression.properties):za(e.expression.elements),hi(ci("$$slotProps"),e.name)),Ui(fi(s.map((e=>ui(e.node.name,e.node)))))]))))}{const n=null===e.expression?e.name:e.expression.name;return t.state.transform[n]={read:e=>Ja("$.get",e)},Ni(n,$p(t.state,hi(ci("$$slotProps"),e.name)))}},MemberExpression:function(e,t){if("PrivateIdentifier"===e.property.type){const n=t.state.state_fields.get("#"+e.property.name);if(n)return!t.state.in_constructor||"$state.raw"!==n.type&&"$state"!==n.type?Ja("$.get",e):hi(e,"v")}t.next()},OnDirective:function(e,t){e.expression||(t.state.analysis.needs_props=!0);let n=_S(e.expression,e.metadata.expression,t);for(const t of HS)e.modifiers.includes(t)&&(n=Ja("$."+t,n));const s=e.modifiers.includes("capture"),r=e.modifiers.includes("passive")||!e.modifiers.includes("nonpassive")&&void 0;return bS(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=ci("$$_import_"+e);t.state.transform[e]={read:e=>Ja(n),mutate:(e,t)=>Ja(n,t)},t.state.legacy_reactive_imports.push(Di(n,Ja("$.reactive_import",Pi(ci(e)))))}}}for(const[e,n]of t.state.scope.declarations){if("store_sub"===n.kind){let n;const s=()=>n??=t.visit(ci(e.slice(1)));t.state.transform[e]={read:Ja,assign:(e,t)=>Ja("$.store_set",s(),t),mutate:(e,t)=>{const n=Ja("$.untrack",e);function r(e){return"MemberExpression"===e.type?{...e,object:r(e.object),property:e.property}:n}return Ja("$.store_mutate",s(),"AssignmentExpression"===t.type?Ka(t.operator,r(t.left),t.right):Ai(t.operator,r(t.argument),t.prefix),n)},update:n=>Ja(n.prefix?"$.update_pre_store":"$.update_store",Sp(ci(e.slice(1)),t.state),Ja(n.argument),"--"===n.operator&&di(-1))}}if("prop"===n.kind||"bindable_prop"===n.kind)if(Tp(n,t.state))t.state.transform[e]={read:Ja,assign:(e,t)=>Ja(e,t),mutate:(e,t)=>"bindable_prop"===n.kind?Ja(e,t,Ri):t,update:e=>Ja(e.prefix?"$.update_pre_prop":"$.update_prop",e.argument,"--"===e.operator&&di(-1))};else if(n.prop_alias){const s=zi(n.prop_alias);t.state.transform[e]={read:e=>hi(ci("$$props"),s,"Literal"===s.type)}}else t.state.transform[e]={read:e=>hi(ci("$$props"),e)}}qk(t),t.next()},RegularElement:function(e,t){if(t.state.template.push_element(e.name,e.start),"noscript"===e.name)return void t.state.template.pop_element();const n=Yo(e);t.state.template.needs_import_node||="video"===e.name||n,t.state.template.contains_script_tag||="script"===e.name;const s=[],r=[],a=[],i=[],o=[],l=new Map,c=new Map;let p=e.metadata.has_spread,u=!1,d=!1;for(const n of e.attributes)switch(n.type){case"AnimateDirective":case"OnDirective":case"TransitionDirective":case"AttachTag":i.push(n);break;case"Attribute":if("is"===n.name&&"html"===t.state.metadata.namespace){const{value:e}=RS(n.value,t);if("Literal"===e.type&&"string"==typeof e.value){t.state.template.set_prop("is",e.value);continue}}s.push(n),l.set(n.name,n);break;case"BindDirective":c.set(n.name,n),i.push(n);break;case"ClassDirective":r.push(n);break;case"LetDirective":o.push(t.visit(n));break;case"SpreadAttribute":s.push(n);break;case"StyleDirective":a.push(n);break;case"UseDirective":u=!0,i.push(n)}const h={...t.state,init:[],after_update:[]};for(const e of i)if("OnDirective"===e.type){const n=t.visit(e);u?h.init.push(ki(Ja("$.effect",Pi(n)))):h.after_update.push(ki(n))}else t.visit(e,h);if("input"===e.name){const e=s.some((e=>"Attribute"===e.type&&("value"===e.name||"checked"===e.name)&&!Gi(e)));!s.some((e=>"Attribute"===e.type&&("defaultValue"===e.name||"defaultChecked"===e.name)))&&(p||c.has("value")||c.has("checked")||c.has("group")||!c.has("group")&&e)&&(p?d=!0:t.state.init.push(ki(Ja("$.remove_input_defaults",t.state.node))))}if("textarea"===e.name){const e=l.get("value")??l.get("checked"),n=e&&!Gi(e);(p||c.has("value")||n)&&t.state.init.push(ki(Ja("$.remove_textarea_child",t.state.node)))}"select"===e.name&&c.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=Ja("$.invalidate_inner_signals",Pi(Ya(s.map((e=>ki(Sp(ci(e),t.state)))))));t.state.init.push(ki(Ja("$.template_effect",Pi(Ya([ki(t.visit(n)),ki(r)])))))}(c.get("value"),t),t.state.init.push(...o);const m=t.state.node,f="option"===e.name||"select"===e.name||c.has("group")||c.has("checked");if(p)$S(s,r,a,t,e,m,d);else for(const i of s){if(Yi(i)){gS(i,t);continue}if(f&&"value"===i.name)continue;const o=IS(e,i);if(n||ne(i.name)||!0!==i.value&&!Gi(i)||"class"===o&&0!==r.length||"style"===o&&0!==a.length)if("autofocus"===o){let{value:e}=RS(i.value,t);t.state.init.push(ki(Ja("$.autofocus",m,e)))}else if("class"===o){const n="html"===t.state.metadata.namespace&&"svg"!==e.name;MS(e,m,i,r,t,n)}else if("style"===o)qS(m,i,a,t);else if(n)TS(m,i,t);else{const{value:n,has_state:r}=RS(i.value,t,((e,n)=>n.has_call||n.has_await?t.state.memoizer.add(e,n.has_await):e)),a=ES(e,m,o,n,s);(r?t.state.update:t.state.init).push(ki(a))}else{let n=!Gi(i)||i.value[0].data;"class"===o&&e.metadata.scoped&&t.state.analysis.css.hash&&(!0===n||""===n?n=t.state.analysis.css.hash:n+=" "+t.state.analysis.css.hash),("class"!==o||n)&&t.state.template.set_prop(i.name,J(o)&&!0===n?void 0:!0===n?"":n)}}oe(e.name)&&(p||u||l.has("onload")||l.has("onerror"))&&t.state.after_update.push(ki(Ja("$.replay_events",m)));const y={...t.state.metadata,namespace:nS(e,t.state.metadata.namespace)};if(c.has("innerHTML")||c.has("innerText")||c.has("textContent")){const e=l.get("contenteditable");e&&(!0===e.value||Gi(e)&&"true"===e.value[0].data)&&(y.bound_contenteditable=!0)}const v={...t.state,metadata:y,scope:t.state.scopes.get(e.fragment),preserve_whitespace:t.state.preserve_whitespace||"pre"===e.name||"textarea"===e.name},{hoisted:g,trimmed:b}=eS(e,e.fragment.nodes,t.path,v.metadata.namespace,v,"script"===e.name||v.preserve_whitespace,v.options.preserveComments),_={...v,init:[],update:[],after_update:[]};for(const e of g)t.visit(e,_);if(b.every((e=>"Text"===e.type||"ExpressionTag"===e.type))&&b.every((e=>"Text"===e.type||!e.metadata.expression.has_state&&!e.metadata.expression.has_await))&&b.some((e=>"ExpressionTag"===e.type))){const{value:e}=yp(b,t,_);"Literal"===e.type&&""===e.value||_.init.push(ki(Ka("=",hi(t.state.node,"textContent"),e)))}else{let n=t.state.node,s=b.some((e=>"Text"!==e.type));"template"===e.name&&(s=!0,_.init.push(ki(Ja("$.hydrate_template",n))),n=hi(n,"content")),CS(b,(e=>Ja("$.child",n,e&&Ri)),!0,{...t,state:_}),s&&_.init.push(ki(Ja("$.reset",t.state.node)))}if(e.fragment.nodes.some((e=>"SnippetBlock"===e.type))?t.state.init.push(Ya([..._.init,...h.init,_.update.length>0?vp(_):ai,..._.after_update,...h.after_update])):e.fragment.metadata.dynamic?(t.state.init.push(..._.init,...h.init),t.state.update.push(..._.update),t.state.after_update.push(..._.after_update,...h.after_update)):(t.state.init.push(...h.init),t.state.after_update.push(...h.after_update)),l.has("dir")){const e=hi(m,"dir");t.state.update.push(ki(Ka("=",e,e)))}if(!p&&f)if(e.metadata.synthetic_value_node){const n=e.metadata.synthetic_value_node,s=Jo("value",n.start,n.end,[n]);AS(e.name,m,s,t,!0)}else for(const n of s)if("value"===n.name){AS(e.name,m,n,t);break}t.state.template.pop_element()},RenderTag:function(e,t){t.state.template.push_comment();const n=io(e.expression);let s=[];const r=new fp;for(let a=0;a<n.arguments.length;a++){const i=n.arguments[a],o=e.metadata.arguments[a];let l=wp(t,i,o);(o.has_await||o.has_call)&&(l=Ja("$.get",r.add(l,o.has_await))),s.push(Pi(l))}r.apply();const a=r.deriveds(t.state.analysis.runes);let i=wp(t,n.callee,e.metadata.expression);e.metadata.dynamic?("ChainExpression"===e.expression.type&&(i=ni("??",i,ci("$.noop"))),a.push(Cp(Ja("$.snippet",t.state.node,Pi(i),...s),e,"render"))):a.push(Cp(("CallExpression"===e.expression.type?Ja:Za)(i,t.state.node,...s),e,"render")),r.async_values()?t.state.init.push(ki(Ja("$.async",t.state.node,r.async_values(),Ga([t.state.node,...r.async_ids()],Ya(a))))):t.state.init.push(1===a.length?a[0]:Ya(a))},SlotElement:function(e,t){t.state.template.push_comment();const n=[],s=[],r=[],a=new fp;let i=di("default");for(const o of e.attributes)if("SpreadAttribute"===o.type)s.push(Pi(t.visit(o)));else if("Attribute"===o.type){const{value:e,has_state:s}=RS(o.value,t,((e,t)=>t.has_call||t.has_await?Ja("$.get",a.add(e,t.has_await)):e));"name"===o.name?i=e:"slot"!==o.name&&(s?n.push(li(o.name,[Ui(e)])):n.push(ui(o.name,e)))}else"LetDirective"===o.type&&r.push(t.visit(o));a.apply(),t.state.init.push(...r);const o=a.deriveds(t.state.analysis.runes),l=0===s.length?fi(n):Ja("$.spread_props",fi(n),...s),c=0===e.fragment.nodes.length?Mi:Ga([ci("$$anchor")],t.visit(e.fragment));o.push(ki(Ja("$.slot",t.state.node,ci("$$props"),i,l,c)));const p=a.async_values();p?t.state.init.push(ki(Ja("$.async",t.state.node,p,Ga([t.state.node,...a.async_ids()],Ya(o))))):t.state.init.push(1===o.length?o[0]:Ya(o))},SnippetBlock:function(e,t){const n=[ci("$$anchor")],s=e.body.metadata.has_await||!1;let r;const a=[],i={...t.state.transform},o={...t.state,transform:i};for(let s=0;s<e.parameters.length;s++){const r=e.parameters[s];if(!r)continue;if("Identifier"===r.type){n.push(Wa(r,ci("$.noop"))),i[r.name]={read:Ja};continue}let l=`$$arg${s}`;n.push(ci(l));const{inserts:c,paths:p}=no(r,Za(ci(l)));for(const{id:e,value:n}of c)e.name=t.state.scope.generate("$$array"),i[e.name]={read:Mk},a.push(Di(e,Ja("$.derived",t.visit(Pi(n)))));for(const e of p){const n=e.node.name,s=e.has_default_value,r=Pi(t.visit(e.expression,o));a.push(Oi(e.node,s?Ja("$.derived_safe_equal",r):r)),i[n]={read:s?Mk:Ja},be&&a.push(ki(i[n].read(ci(n))))}}const l=t.visit(e.body,o).body;r=Ya([be?ki(Ja("$.validate_snippet_args",Ci(ci("arguments")))):ai,...a,...l]);let c=be?Ja("$.wrap_snippet",ci(t.state.analysis.name),Bi(null,n,r,s)):Ga(n,r,s);const p=Ni(e.expression,c);1===t.path.length&&"Fragment"===t.path[0].type?e.metadata.can_hoist?t.state.module_level_snippets.push(p):t.state.instance_level_snippets.push(p):t.state.init.push(p)},SpreadAttribute:function(e,t){return t.visit(e.expression)},SvelteBody:function(e,t){US(e,"$.document.body",t)},SvelteComponent:function(e,t){const n=LS(e,"$$component",t);t.state.init.push(n)},SvelteDocument:function(e,t){US(e,"$.document",t)},SvelteElement:function(e,t){t.state.template.push_comment();const n=[];let s;const r=[],a=[],i=[],o=ci(t.state.scope.generate("$$element")),l={...t,state:{...t.state,node:o,init:[],update:[],after_update:[],memoizer:new fp}};for(const o of e.attributes)if("Attribute"===o.type)"xmlns"!==o.name||Gi(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(ki(e))}else t.visit(o,l.state);1===n.length&&"Attribute"===n[0].type&&"class"===n[0].name.toLowerCase()&&Gi(n[0])?MS(e,o,n[0],r,l,!1):n.length&&$S(n,r,a,l,e,o);const{has_await:c}=e.metadata.expression,p=t.visit(e.tag),u=Pi(c?Ja("$.get",ci("$$tag")):p),d=l.state.init;l.state.update.length>0&&d.push(vp(l.state)),d.push(...l.state.after_update),d.push(...t.visit(e.fragment,{...t.state,metadata:{...t.state.metadata,namespace:nS(e,t.state.metadata.namespace)}}).body),be&&(e.fragment.nodes.length>0&&i.push(ki(Ja("$.validate_void_dynamic_element",u))),i.push(ki(Ja("$.validate_dynamic_element_tag",u))));const h=be&&we(e.start);i.push(ki(Ja("$.element",t.state.node,u,e.metadata.svg||e.metadata.mathml?Ri:Ii,d.length>0&&Ga([o,ci("$$anchor")],Ya(d)),s&&Pi(RS(s,t).value),h&&Ua([di(h.line),di(h.column)])))),c?t.state.init.push(ki(Ja("$.async",t.state.node,Ua([Pi(p,!0)]),Ga([t.state.node,ci("$$tag")],Ya(i))))):t.state.init.push(1===i.length?i[0]:Ya(i))},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=fi([]);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(li(s.name,[Ui(r)])):n.properties.push(ui(s.name,r))}const s=[],r=[],a=[];let i=!1;for(const n of e.fragment.nodes)"ConstTag"===n.type&&(i=!0,t.state.options.experimental.async||t.visit(n,{...t.state,consts:r}));for(const o of e.fragment.nodes)if("ConstTag"!==o.type)if("SnippetBlock"!==o.type)s.push(o);else if(t.state.options.experimental.async&&i&&!["failed","pending"].includes(o.expression.name))s.push(o);else{const e=[];t.visit(o,{...t.state,init:e});const s=e[0],i=be?s.declarations[0].init.arguments[1]:s.declarations[0].init;t.state.options.experimental.async||i.body.body.unshift(...r.filter((e=>"VariableDeclaration"===e.type))),["failed","pending"].includes(o.expression.name)&&n.properties.push(vi("init",o.expression,o.expression)),a.push(s)}else t.state.options.experimental.async&&s.push(o);const o=t.visit({...e.fragment,nodes:s});t.state.options.experimental.async||o.body.unshift(...r);const l=ki(Ja("$.boundary",t.state.node,n,Ga([ci("$$anchor")],o)));t.state.template.push_comment(),t.state.init.push(a.length>0?Ya([...a,l]):l)},SvelteHead:function(e,t){t.state.init.push(ki(Ja("$.head",Ga([ci("$$anchor")],t.visit(e.fragment)))))},SvelteSelf:function(e,t){const n=LS(e,t.state.analysis.name,t);t.state.init.push(n)},SvelteWindow:function(e,t){US(e,"$.window",t)},TitleElement:function(e,t){const{has_state:n,value:s}=yp(e.fragment.nodes,t),r=ki(Ka("=",ci("$.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=[di(n),t.state.node,Pi(t.visit(gp(e.name)))];e.expression&&s.push(Pi(t.visit(e.expression))),t.state.after_update.push(ki(Ja("$.transition",...s)))},UpdateExpression:function(e,t){const n=e.argument;if("MemberExpression"===n.type&&"ThisExpression"===n.object.type&&"PrivateIdentifier"===n.property.type&&t.state.state_fields.has("#"+n.property.name)){let t="$.update";e.prefix&&(t+="_pre");const s=[n];return"--"===e.operator&&s.push(di(-1)),Ja(t,...s)}if("Identifier"!==n.type&&"MemberExpression"!==n.type)throw new Error("An impossible state was reached");const s=Wi(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)),xp(e,t,a)},UseDirective:function(e,t){const n=[ci("$$node")];e.expression&&n.push(ci("$$action_arg"));const s=[t.state.node,Ga(n,Za(t.visit(gp(e.name)),...n))];e.expression&&s.push(Pi(t.visit(e.expression))),t.state.init.push(ki(Ja("$.action",...s))),t.next()},AttachTag:function(e,t){const n=wp(t,e.expression,e.metadata.expression);t.state.init.push(ki(Ja("$.attach",t.state.node,Pi(n)))),t.next()},VariableDeclaration:function(e,t){const n=[];if(t.state.analysis.runes)for(const s of e.declarations){const e=s.init,r=fc(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&&Jk(e)){t.state.hoisted.push(Ni(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=[ci("$$props"),Ua(e.map((e=>di(e))))];be&&t.push(di(s.id.name)),n.push(ri(s.id,Ja("$.rest_props",...t)))}else{xw(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;xw(i.type,"Identifier");const o=t.state.scope.get(i.name);let l=o.initial&&t.visit(o.initial);l&&"bindable_prop"===o.kind&&Ap(l,t.state.scope)&&(l=Ja("$.proxy",l),be&&(l=Ja("$.tag_proxy",l,di(i.name)))),Tp(o,t.state)&&n.push(ri(i,Ep(o,t.state,a,l)))}else{const t=[ci("$$props"),Ua(e.map((e=>di(e))))];be&&t.push(di(r.argument.name)),n.push(ri(r.argument,Ja("$.rest_props",...t)))}}continue}const a=e.arguments[0]??ti;if("$state"!==r&&"$state.raw"!==r)if("$derived"!==r&&"$derived.by"!==r);else{const i=t.state.analysis.async_deriveds.has(e);if("Identifier"===s.id.type){let o=t.visit(a);if(i){const t=be&&!Ee(e,"await_waterfall")&&ke(e);let r=Ja("$.async_derived",Pi(o,!0),t?di(t):void 0);r=Ja(Xa(Ja("$.save",r))),be&&(r=Ja("$.tag",r,di(s.id.name))),n.push(ri(s.id,r))}else{"$derived"===r&&(o=Pi(o));let e=Ja("$.derived",o);be&&(e=Ja("$.tag",e,di(s.id.name))),n.push(ri(s.id,e))}}else{const e=s.init;let o=t.visit(a),l=a;if("$derived"!==r||"Identifier"!==e.arguments[0].type){const a=ci(t.state.scope.generate("$$d"));let c=Ja("$.derived","$derived"===r?Pi(o):o);if(l=Ja("$.get",a),i){const t=be&&!Ee(e,"await_waterfall")&&ke(e);c=Ja("$.async_derived",Pi(o,!0),t?di(t):void 0),c=Ja(Xa(Ja("$.save",c)))}if(be){c=Ja("$.tag",c,di(`[$derived ${"ArrayPattern"===s.id.type?"iterable":"object"}]`))}n.push(ri(a,c))}const{inserts:c,paths:p}=no(s.id,l);for(const{id:e,value:r}of c){e.name=t.state.scope.generate("$$array"),t.state.transform[e.name]={read:Mk};let a=Ja("$.derived",t.visit(Pi(r)));if(be){a=Ja("$.tag",a,di(`[$derived ${"ArrayPattern"===s.id.type?"iterable":"object"}]`))}n.push(ri(e,a))}for(const e of p){const s=Ja("$.derived",Pi(t.visit(e.expression)));n.push(ri(e.node,be?Ja("$.tag",s,di(e.node.name)):s))}}}else{const e=(e,n)=>{const s=kp(t.state.scope.get(e.name),t.state.analysis),a=Ap(n,t.state.scope);return"$state"===r&&a&&(n=Ja("$.proxy",n),be&&!s&&(n=Ja("$.tag_proxy",n,di(e.name)))),s&&(n=Ja("$.state",n),be&&(n=Ja("$.tag",n,di(e.name)))),n};if("Identifier"===s.id.type){const r=t.visit(a);n.push(ri(s.id,e(s.id,r)))}else{const r=ci(t.state.scope.generate("tmp")),{inserts:i,paths:o}=no(s.id,r);n.push(ri(r,t.visit(a)),...i.map((({id:e,value:n})=>{e.name=t.state.scope.generate("$$array"),t.state.transform[e.name]={read:Mk};let r=Ja("$.derived",t.visit(Pi(n)));if(be){r=Ja("$.tag",r,di(`[$state ${"ArrayPattern"===s.id.type?"iterable":"object"}]`))}return ri(e,r)})),...o.map((n=>{const s=t.visit(n.expression),r=t.state.scope.get(n.node.name);return ri(n.node,"state"===r?.kind||"raw_state"===r?.kind?e(r.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=ci(t.state.scope.generate("tmp")),{inserts:r,paths:a}=no(s.id,e);n.push(ri(e,t.visit(s.init)));for(const{id:e,value:s}of r){e.name=t.state.scope.generate("$$array"),t.state.transform[e.name]={read:Mk};const r=t.visit(Pi(s));n.push(ri(e,Ja("$.derived",r)))}for(const e of a){const s=e.node.name,r=t.state.scope.get(s),a=t.visit(e.expression);n.push(ri(e.node,"bindable_prop"===r.kind?Ep(r,t.state,r.prop_alias??s,a):a))}continue}const e=t.state.scope.get(s.id.name);n.push(ri(s.id,Ep(e,t.state,e.prop_alias??s.id.name,s.init&&t.visit(s.init))))}else n.push(...zS(s,t,s.init&&t.visit(s.init)));else{const e=s.init;if(null!=e&&Jk(e)){t.state.hoisted.push(Ni(s.id,t.visit(e)));continue}n.push(t.visit(s))}}return 0===n.length?ai:{...e,declarations:n}}};function GS(e,n,s){if(!1===s.generate)return{js:null,css:null,warnings:ye,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:[Vi("$","svelte/internal/server")],legacy_reactive_statements:new Map,init:null,template:null,namespace:n.namespace,preserve_whitespace:n.preserveWhitespace,state_fields:new Map,skip_hydration_boundaries:!1},r=t(e.module.ast,s,dS),a=t(e.instance.ast,{...s,scopes:e.instance.scopes},{...dS,ImportDeclaration:e=>(s.hoisted.push(e),ai),ExportNamedDeclaration:(e,t)=>e.declaration?t.visit(e.declaration):ai}),i=t(e.template.ast,{...s,scopes:e.template.scopes},{...dS,...hS}),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 Zi(t.body.expression.left)){const t=e.instance.scope.get(n.name);"legacy_reactive"===t?.kind&&o.push(ri(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,Oi("$$settled",Ri),Oi("$$inner_renderer"),oi(ci("$$render_inner"),[ci(" $$renderer")],Ya(t)),$i(ei("!",ci("$$settled")),Ya([ki(Ka("=",ci("$$settled"),Ri)),ki(Ka("=",ci("$$inner_renderer"),Ja(" $$renderer.copy"))),ki(Ja("$$render_inner",ci("$$inner_renderer")))])),ki(Ja(" $$renderer.subsume",ci("$$inner_renderer")))]}[...e.instance.scope.declarations.values()].some((e=>"store_sub"===e.kind))&&(a.body.unshift(Di("$$store_subs")),i.body.push(Fi(ci("$$store_subs"),ki(Ja("$.unsubscribe_stores",ci("$$store_subs"))))));const l=[];for(const[t,n]of e.instance.scope.declarations)"bindable_prop"!==n.kind||t.startsWith("$$")||l.push(ui(n.prop_alias??t,ci(t)));for(const{name:t,alias:n}of e.exports)l.push(ui(n??t,ci(t)));l.length>0&&i.body.push(ki(Ja("$.bind_props",ci("$$props"),fi(l))));let c=Ya([...a.body,...i.body]);e.instance.has_await&&(c=Ya([Xk(c,!0)])),c.loc=a.loc,e.props_id&&c.body.unshift(Ni(e.props_id,Ja("$.props_id",ci(" $$renderer"))));let p=be||e.needs_context;if(p&&(c=Ya([Qk(c,be&&ci(xe))])),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(Ni("$$restProps",Ja("$.rest_props",ci("$$sanitized_props"),Ua(t.map((e=>di(e)))))))}(e.uses_props||e.uses_rest_props)&&c.body.unshift(Ni("$$sanitized_props",Ja("$.sanitize_props",ci("$$props")))),e.uses_slots&&c.body.unshift(Ni("$$slots",Ja("$.sanitize_slots",ci("$$props"))));const u=[...s.hoisted,...r.body];if(null!==e.css.ast&&"injected"===n.css&&!n.customElement){const t=di(e.css.hash),s=di(Sk(e.source,e,n).code);u.push(Ni("$$css",fi([ui("hash",t),ui("code",s)]))),c.body.unshift(ki(Ja(" $$renderer.global.css.add",ci("$$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=oi(ci(e.name),d?[ci(" $$renderer"),ci("$$props")]:[ci(" $$renderer")],c);var m;return 4===n.compatibility.componentApi?(u.unshift(Hi([["render","$$_render"]],"svelte/server")),u.push(h,ki(Ka("=",mi(`${e.name}.render`),Bi(null,[ci("$$props"),ci("$$opts")],Ya([Ui(Ja("$$_render",ci(e.name),fi([ui("props",ci("$$props")),ui("context",hi(ci("$$opts"),"context",!1,!0))])))])))),ii(ci(e.name)))):be?u.push(h,ki(Ka("=",mi(`${e.name}.render`),Bi(null,[],Ya([(m="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",{type:"ThrowStatement",argument:Ti("Error",di(m))})])))),ii(ci(e.name))):u.push(ii(h)),be&&u.unshift(ki(Ka("=",hi(ci(e.name),"$.FILENAME",!0),di(fe)))),n.experimental.async&&u.unshift(Hi([],"svelte/internal/flags/async")),{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:[Vi("$","svelte/internal/client")],node:null,legacy_reactive_imports:[],legacy_reactive_statements:new Map,metadata:{namespace:n.namespace,bound_contenteditable:!1},events:new Set,preserve_whitespace:n.preserveWhitespace,state_fields:new Map,transform:{},in_constructor:!1,instance_level_snippets:[],module_level_snippets:[],init:null,consts:null,update:null,after_update:null,template:null,memoizer:null},r=t(e.module.ast,s,WS),a={...s,transform:{...s.transform},scope:e.instance.scope,scopes:e.instance.scopes,is_instance:!0},i=t(e.instance.ast,a,WS),o=t(e.template.ast,{...s,transform:a.transform,scope:e.instance.scope,scopes:e.template.scopes},WS);r.body.unshift(...s.legacy_reactive_imports);const l=[];let c=ai;const p=[];let u=!1;for(const[t,n]of e.instance.scope.declarations)if("legacy_reactive"===n.kind&&p.push(Ni(t,Ja("$.mutable_source",void 0,e.immutable?Ri:void 0))),"store_sub"===n.kind){0===l.length&&(u=!0,c=Ni(za([ci("$$stores"),ci("$$cleanup")]),Ja("$.setup_stores")));const e=Sp(ci(t.slice(1)),a),s=Ja("$.store_get",e,di(t),ci("$$stores"));l.push(Ni(n.node,Pi(be?xi([Ja("$.validate_store",e,di(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(ki(Ja("$.legacy_pre_effect_reset")));const d=[];for(const t of e.binding_groups.values())d.push(Ni(t.name,Ua([])));const h=e.exports.flatMap((({name:e,alias:t})=>{const n=a.scope.get(e),s=Sp(ci(e),a),r=li(t??e,[Ui(s)]);if("Identifier"===s.type){if("let"===n?.declaration_kind||"var"===n?.declaration_kind)return[r,wi(t??e,[ki(Ka("=",s,ci("$$value")))])];if(!be)return ui(t??e,s)}if("prop"===n?.kind||"bindable_prop"===n?.kind)return[r,wi(t??e,[ki(Ja(e,ci("$$value")))])];if("state"===n?.kind||"raw_state"===n?.kind){const s="state"===n.kind?Ja("$.proxy",ci("$$value")):ci("$$value");return[r,wi(t??e,[ki(Ja("$.set",ci(e),s))])]}return r})),m=[...e.instance.scope.declarations].filter((([e,t])=>("prop"===t.kind||"bindable_prop"===t.kind)&&!e.startsWith("$$")));if(e.accessors)for(const[t,n]of m){const s=n.prop_alias??t,r=li(s,[Ui(Ja(ci(t)))]),a=wi(s,[ki(Ja(ci(t),ci("$$value"))),ki(Ja("$.flush"))]);e.runes&&n.initial&&(a.value.params[0]={type:"AssignmentPattern",left:ci("$$value"),right:n.initial}),h.push(r,a)}4===n.compatibility.componentApi?h.push(ui("$set",ci("$.update_legacy_props")),ui("$on",Ga([ci("$$event_name"),ci("$$event_cb")],Ja("$.add_legacy_event_listener",ci("$$props"),ci("$$event_name"),ci("$$event_cb"))))):be&&h.push(Ci(Ja(ci("$.legacy_api"))));const f=[ci("$$props"),di(e.runes)];be&&f.push(ci(e.name));let y=Ya([c,...p,...d]);const v=be||e.needs_context||e.reactive_statements.size>0||h.length>0;if(e.instance.has_await){v&&h.length>0&&y.body.push(Di("$$exports"));const e=Ya([...l,...s.instance_level_snippets,...i.body,...v&&h.length>0?[ki(Ka("=",ci("$$exports"),fi(h)))]:[],Fi(Ja("$.aborted"),Ui()),...o.body]);y.body.push(ki(Ja("$.async_body",Ga([],e,!0))))}else y.body.push(...s.instance_level_snippets,...i.body),v&&h.length>0&&y.body.push(Di("$$exports",fi(h))),y.body.unshift(...l),!e.runes&&e.needs_context&&y.body.push(ki(Ja("$.init",e.immutable?Ri:void 0))),y.body.push(...o.body);e.needs_mutation_validation&&y.body.unshift(Di("$$ownership_validator",Ja("$.create_ownership_validator",ci("$$props"))));let g=v||e.needs_props||e.uses_props||e.uses_rest_props||e.uses_slots||e.slot_names.size>0;if(y.loc=i.loc,!e.runes)for(const{name:t,alias:n}of e.exports)y.body.push(ki(Ja("$.bind_prop",ci("$$props"),di(n??t),Sp(ci(t),a))));if(null!==e.css.ast&&e.inject_styles){const t=di(e.css.hash),r=di(Sk(e.source,e,n).code);s.hoisted.push(Ni("$$css",fi([ui("hash",t),ui("code",r)]))),y.body.unshift(ki(Ja("$.append_styles",ci("$$anchor"),ci("$$css"))))}if(v){let e;if(y.body.unshift(ki(Ja("$.push",...f))),h.length>0){let t=Ja("$.pop",ci("$$exports"));e=u?Di("$$pop",t):Ui(t)}else e=ki(Ja("$.pop"));y.body.push(e)}if(u&&(y.body.push(ki(Ja("$$cleanup"))),h.length>0&&y.body.push(Ui(ci("$$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);y.body.unshift(Ni("$$restProps",Ja("$.legacy_rest_props",ci("$$sanitized_props"),Ua(t.map((e=>di(e)))))))}if(e.uses_props||e.uses_rest_props){const t=[di("children"),di("$$slots"),di("$$events"),di("$$legacy")];e.custom_element&&t.push(di("$$host")),y.body.unshift(Ni("$$sanitized_props",Ja("$.legacy_rest_props",ci("$$props"),Ua(t))))}e.uses_slots&&y.body.unshift(Ni("$$slots",Ja("$.sanitize_slots",ci("$$props"))));const b=[];let _=[];for(const e of[...r.body,...s.hoisted])"ImportDeclaration"===e.type?b.push(e):_.push(e);_=[...b,...s.module_level_snippets,..._];const x=oi(ci(e.name),g?[ci("$$anchor"),ci("$$props")]:[ci("$$anchor")],y);if(n.hmr){const t=ci(e.name),n=ci("$.HMR"),s=hi(t,n,!0),r=hi(ci("module.default"),n,!0),a=[ki(Ka("=",hi(r,"source"),hi(s,"source"))),ki(Ja("$.set",hi(s,"source"),hi(r,"original")))];e.css.hash&&a.unshift(ki(Ja("$.cleanup_styles",di(e.css.hash))));const i=Ya([ki(Ka("=",t,Ja("$.hmr",t,Pi(hi(s,"source"))))),ki(Ja("import.meta.hot.accept",Ga([ci("module")],Ya(a))))]);_.push(x,Fi(ci("import.meta.hot"),i),ii(ci(e.name)))}else _.push(ii(x));be&&_.unshift(ki(Ka("=",hi(ci(e.name),"$.FILENAME",!0),di(fe)))),n.experimental.async&&_.unshift(Hi([],"svelte/internal/flags/async")),e.runes||_.unshift(Hi([],"svelte/internal/flags/legacy")),e.tracing&&_.unshift(Hi([],"svelte/internal/flags/tracing")),n.discloseVersion&&_.unshift(Hi([],"svelte/internal/disclose-version")),4===n.compatibility.componentApi?(_.unshift(Hi([["createClassComponent","$$_createClassComponent"]],"svelte/legacy")),y.body.unshift(Fi(ci("new.target"),Ui(Ja("$$_createClassComponent",fi([ui("component",ci(e.name)),Ci(ci("$$anchor"))])))))):be&&y.body.unshift(ki(Ja("$.check_target",ci("new.target")))),e.props_id&&y.body.unshift(Ni(e.props_id,Ja("$.props_id"))),s.events.size>0&&_.push(ki(Ja("$.delegate",Ua(Array.from(s.events).map((e=>di(e)))))));const w=n.customElementOptions??n.customElement;if(w){const t="boolean"==typeof w?{}:w.props||{},s=[];for(const[n,r]of Object.entries(t)){const t=e.instance.scope.get(n),a=t?.prop_alias??n;r.type||"Literal"!==t?.initial?.type||"boolean"!=typeof t?.initial.value||(r.type="Boolean");const i=fi([r.attribute?ui("attribute",di(r.attribute)):void 0,r.reflect?ui("reflect",Ri):void 0,r.type?ui("type",di(r.type)):void 0].filter(Boolean));s.push(ui(a,i))}for(const[e,n]of m){const r=n.prop_alias??e;t[r]||s.push(ui(r,fi([])))}const r=Ua([...e.slot_names.keys()].map((e=>di(e)))),a=Ua(e.exports.map((({name:e,alias:t})=>di(t??e)))),i="boolean"==typeof w||"none"!==w.shadow,o=Ja("$.create_custom_element",ci(e.name),fi(s),r,a,di(i),"boolean"!=typeof w?w.extend:void 0);if("boolean"!=typeof w&&"string"==typeof w.tag){const e=ki(Ja("customElements.define",di(w.tag),o));n.hmr?_.push(Fi(Qa("==",Ja("customElements.get",di(w.tag)),Mi),e)):_.push(e)}else _.push(ki(o))}return{type:"Program",sourceType:"module",body:_}}(e,s),a=kk(s.filename,s.outputFilename),i=Yw(r,tC({comments:e.comments}),{sourceMapContent:n,sourceMapSource:a});xk(i,s,a);return{js:i,css:e.css.ast&&!e.inject_styles?Sk(n,e,s):null,warnings:ye,metadata:{runes:e.runes},ast:null}}function KS(e,n,s){if(!1===s.generate)return{js:null,css:null,warnings:ye,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,state_fields:new Map},r=t(e.module.ast,s,dS);return{type:"Program",sourceType:"module",body:[Vi("$","svelte/internal/server"),...r.body]}}(e,s):function(e,n){const s={analysis:e,options:n,scope:e.module.scope,scopes:e.module.scopes,state_fields:new Map,transform:{},in_constructor:!1,is_instance:!1},r=t(e.module.ast,s,WS),a=[Vi("$","svelte/internal/client")];return e.tracing&&a.push(Hi([],"svelte/internal/flags/tracing")),{type:"Program",sourceType:"module",body:[...a,...r.body]}}(e,s),a=s.filename.split(/[/\\]/).at(-1);r.body.length>0&&(r.body[0].leadingComments=[{type:"Block",value:` ${a} generated by Svelte v${aC} `}]);const i=Yw(r,tC({comments:e.comments}),{sourceMapContent:n,sourceMapSource:kk(s.filename,void 0)});return i.code=`/* ${a} generated by Svelte v${aC} */\n${i.code}`,i.map.mappings=";"+i.map.mappings,{js:i,css:null,metadata:{runes:!0},warnings:ye,ast:null}}const XS={filename:iP("(unknown)"),rootDir:iP("undefined"!=typeof process?process.cwd?.():"undefined"!=typeof Deno?Deno.cwd():void 0),dev:oP(!1),generate:aP("client",((e,t)=>"dom"===e||"ssr"===e?(tP(ot),"dom"===e?"client":"server"):("client"!==e&&"server"!==e&&!1!==e&&pP(`${t} must be "client", "server" or false`),e))),warningFilter:cP((()=>!0)),experimental:rP({async:oP(!1)})},QS={accessors:sP(rt,oP(!1)),css:aP("external",(e=>(!0!==e&&!1!==e||pP('The boolean options have been removed from the css option. Use "external" instead of false and "injected" instead of true'),"none"===e&&pP('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&&pP('css should be either "external" (default, recommended) or "injected"'),e))),cssHash:cP((({css:e,filename:t,hash:n})=>`svelte-${n("(unknown)"===t?e:t??e)}`)),cssOutputFilename:iP(void 0),customElement:oP(!1),discloseVersion:oP(!0),immutable:sP(at,oP(!1)),legacy:ZS("The legacy option has been removed. If you are using this because of legacy.componentApi, use compatibility.componentApi instead"),compatibility:rP({componentApi:lP([4,5],5)}),loopGuardTimeout:nP((function(e){qe(e,"options_removed_loop_guard_timeout","The `loopGuardTimeout` option has been removed\nhttps://svelte.dev/e/options_removed_loop_guard_timeout")})),name:iP(void 0),namespace:lP(["html","mathml","svg"]),modernAst:oP(!1),outputFilename:iP(void 0),preserveComments:oP(!1),fragments:lP(["html","tree"]),preserveWhitespace:oP(!1),runes:oP(void 0),hmr:oP(!1),sourcemap:aP(void 0,(e=>e)),enableSourcemap:nP((function(e){qe(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:nP((function(e){qe(e,"options_removed_hydratable","The `hydratable` option has been removed. Svelte components are always hydratable now\nhttps://svelte.dev/e/options_removed_hydratable")})),format:ZS('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:ZS('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:ZS("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:ZS("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:ZS("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")},YS=rP({...XS,...Object.fromEntries(Object.keys(QS).map((e=>[e,()=>{}])))}),JS=rP({...XS,...QS});function ZS(e){return t=>{void 0!==t&&Us(null,"options_removed",`Invalid compiler option: ${e}\nhttps://svelte.dev/e/options_removed`)}}const eP=new Set;function tP(e){eP.has(e)||(eP.add(e),e(null))}function nP(e){return t=>{void 0!==t&&tP(e)}}function sP(e,t){return(n,s)=>(void 0!==n&&tP(e),t(n,s))}function rP(e,t=!1){return(n,s)=>{const r={};(n&&"object"!=typeof n||Array.isArray(n))&&pP(`${s} should be an object`);for(const a in n)a in e||(t?r[a]=n[a]:zs(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 aP(e,t){return(n,s)=>void 0===n?e:t(n,s)}function iP(e,t=!0){return aP(e,((e,n)=>("string"!=typeof e&&pP(`${n} should be a string, if specified`),t||""!==e||pP(`${n} cannot be empty`),e)))}function oP(e){return aP(e,((e,t)=>("boolean"!=typeof e&&pP(`${t} should be true or false, if specified`),e)))}function lP(e,t=e[0]){return aP(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]}"`;pP(t)}return t}))}function cP(e){return aP(e,((e,t)=>("function"!=typeof e&&pP(`${t} should be a function, if specified`),e)))}function pP(e){Us(null,"options_invalid_value",`Invalid compiler option: ${e}\nhttps://svelte.dev/e/options_invalid_value`)}function uP(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 dP(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 yk;let s=0;for(const{offset:r,length:a,replacement:i}of e){const e=yk.from_source(uP(t.source.slice(s,r),s,t));n.concat(e).concat(i),s=r+a}const r=yk.from_source(uP(t.source.slice(s),s,t));return n.concat(r)}(s,n)}class hP{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:Ck(t)}update_source({string:e,map:t,dependencies:n}){null!=e&&(this.source=e,this.get_location=F(e)),t&&this.sourcemap_list.unshift(t),n&&this.dependencies.push(...n)}to_processed(){const e=bk(this.file_basename,this.sourcemap_list);return{code:this.source,dependencies:[...new Set(this.dependencies)],map:e,toString:()=>this.source}}}function mP(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=Nw(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&&hk(s,t,e)}return yk.from_processed(e.code,s)}function fP(e,t,n,s,r){const{file_basename:a,get_location:i}=r,o=(e,t)=>yk.from_source(uP(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};hk(r,i(0),0),p=yk.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(_k)||[])[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=gk(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=mP(e,i(l.length),a);return p.concat(d).concat(u)}const yP=/([\w-$]+\b)(?:=(?:"([^"]*)"|'([^']*)'|(\S+)))?/g;function vP(e){const t={};let n;for(;null!==(n=yP.exec(e));){const e=n[1],s=n[2]||n[3]||n[4];t[e]=!s||s}return t}const gP=/<!--[^]*?-->|<style((?:\s+[^=>'"/\s]+=(?:"[^"]*"|'[^']*'|[^>\s]+)|\s+[^=>'"/\s]+)*\s*)(?:\/>|>([\S\s]*?)<\/style>)/g,bP=/<!--[^]*?-->|<script((?:\s+[^=>'"/\s]+=(?:"[^"]*"|'[^']*'|[^>\s]+)|\s+[^=>'"/\s]+)*\s*)(?:\/>|>([\S\s]*?)<\/script>)/g;async function _P(e,t,n){const{filename:s,source:r}=n,a="style"===e?gP:bP,i=[];const{string:o,map:l}=await dP(a,(async function(a,o="",l="",c){const p=()=>yk.from_source(uP(a,c,n));if(!o&&!l)return p();const u=await t({content:l||"",attributes:vP(o||""),markup:r,filename:s});return u?(u.dependencies&&i.push(...u.dependencies),u.map||u.code!==l?fP(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,uP(l,c,n)):p()):p()}),n);return{string:o,map:l,dependencies:i}}async function xP(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 wP=/(<style[^>]+>)([\S\s]*?)(<\/style>)/g,CP="/*$$__STYLE_CONTENT__$$*/";let kP=!1;class SP extends Error{constructor(e){super(e)}}function PP(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 EP={_(e,{state:t,next:n}){const s=e.leadingComments;if(s)for(const e of s)if("Line"===e.type){const n=xt(e.value);n!==e.value&&t.str.overwrite(e.start+2,e.end,n)}n()},Identifier(e,{state:t,path:n}){LP(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 SP(`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"===fc(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 SP("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 SP("$$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,...RP(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 w=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)})))),C="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]=eo(E.right);0===T.length&&(S=!0,t.derived_labeled_statements.add(x))}if(!S&&w&&_&&x&&(C||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 R of x.body.body[0].trailingComments)t.str.appendRight(o.id.typeAnnotation?.end??o.id.end,"Block"===R.type?`\n${A}/*${R.value}*/`:`\n${A}// ${R.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 SP(`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 I=e.start,M=e.end;const q=n.at(-1);for("ExportNamedDeclaration"===q?.type&&(I=q.start,M=q.end);"\n"!==t.str.original[I];)I--;for(;"\n"!==t.str.original[M];)M++;t.str.update(I,M,"")}},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 SP(`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{left:t,right:s}=e.body.expression,a=Zi(t),[,i]=eo(s),o=a.map((e=>n.scope.get(e.name)));if(o.every((e=>"legacy_reactive"===e.kind))){if("Literal"!==s.type&&o.every((e=>"store_sub"!==e.kind))&&"MemberExpression"!==t.type){let{start:t,end:a}=s;if(r("derived"),n.str.update(e.start,e.body.expression.start,"let "),"SequenceExpression"===s.type){for(;"("!==n.str.original[t];)t-=1;for(;")"!==n.str.original[a-1];)a+=1}return n.str.prependRight(t,"$derived("),void("("!==n.str.original[e.body.start]&&n.str.appendLeft(a,")"))}for(const t of o)if(t.reassigned&&(a.includes(t.node)||0===i.length)){r("state");const a="state"===t.kind?" = $state()":0===i.length?` = $state(${n.str.original.substring(s.start,s.end)})`:"";n.str.prependLeft(e.start,`let ${t.node.name}${a};\n${n.indent}`)}if(0===i.length&&o.every((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 TP(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 AP={Identifier(e,{state:t,path:n}){LP(e,t,n)},RegularElement(e,{state:t,path:n,next:s}){$P(e,n,t),MP(e,t);const r=e.name.replace(/[a-zA-Z-]*:/g,"");if("/"===t.analysis.source[e.end-2]&&!z(r)&&!ce(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=OP(s);return kP=!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($P(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,"}"))}MP(e,t),s()},Component(e,{state:t,path:n,next:s}){s(),$P(e,n,t)},SvelteComponent(e,{state:t,next:n,path:s}){n(),$P(e,s,t);let r=t.str.snip(e.expression.start,e.expression.end).toString();if("Identifier"!==e.expression.type&&"MemberExpression"!==e.expression.type||!ml.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}){$P(e,n,t),s()},SvelteWindow(e,{state:t,next:n}){MP(e,t),n()},SvelteBody(e,{state:t,next:n}){MP(e,t),n()},SvelteDocument(e,{state:t,next:n}){MP(e,t),n()},SlotElement(e,{state:t,path:n,next:s,visit:r}){if($P(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&&Gi(e)&&e.value[0].data===o))))||e.attributes.some((e=>"Attribute"===e.type&&"slot"===e.name&&Gi(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 SP(`This migration would change the name of a slot (${o} to ${i}) 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=xt(e.data);n!==e.data&&t.str.overwrite(e.start+4,e.end-3,n)},HtmlTag(e,{state:t,next:n}){TP(t,e.start,e.end),n()},ConstTag(e,{state:t,next:n}){TP(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;TP(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(TP(t,s,r),null!==e.pending){const n=t.str.original.lastIndexOf("{",e.value?.start),s=t.str.original.indexOf("}",e.value?.end)+1;TP(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;TP(t,n,s)}n()},KeyBlock(e,{state:t,next:n}){const s=e.start,r=t.str.original.indexOf("}",e.expression.end)+1;TP(t,s,r),n()}};function $P(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&&Gi(t)){if(r=t.value[0].data,"default"===r&&(r="children"),!m.test(r)||G(r))return kP=!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 RP(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 IP=["preventDefault","stopPropagation","stopImmediatePropagation","self","trusted","once"];function MP(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=IP.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 qP(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 LP(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){let e=t.scope.generate(n);if(e!==n)throw new SP(`This migration would change the name of a slot (${n} to ${e}) 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 OP(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 NP(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:_t(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})=>(wt(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;wt(t.fallback.nodes),s={type:"ElseBlock",start:i,end:a,children:t.fallback.nodes.map((e=>n(e)))}}return wt(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;wt(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 wt(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})=>(wt(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))),typeParams:e.typeParams}),SvelteBoundary:(e,{visit:t})=>(wt(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 DP(e){return 65279===e.charCodeAt(0)?e.slice(1):e}e.VERSION=aC,e.compile=function(e,t){e=DP(e),Te({warning:t.warningFilter,filename:t.filename});const n=JS(t,"");let s=jl(e);const{customElement:r,...a}=s.options||{},i={...n,...a,customElementOptions:r};s.metadata.ts&&(s={...s,fragment:s.fragment&&Vl(s.fragment),instance:s.instance&&Vl(s.instance),module:s.module&&Vl(s.module)},i.customElementOptions?.extend&&(i.customElementOptions.extend=Vl(i.customElementOptions?.extend)));const o=GS(Sw(s,e,i),e,i);return o.ast=NP(e,s,t.modernAst),o},e.compileModule=function(e,n){e=DP(e),Te({warning:n.warningFilter,filename:n.filename});const s=YS(n,""),r=function(e,n){const s=[];Ce(e);const r=Bs(e,s,!1,!1),{scope:a,scopes:i,has_await:o}=hc(r,new dc,!1,null);for(const[e,t]of a.references)"$"!==e[0]||kw.includes(e)||("$"!==e&&"$"!==e[1]||Ys(t[0].node,e),null===a.get(e.slice(1))||me(e)||Us(t[0].node,"store_invalid_subscription_module","Cannot reference store value outside a `.svelte` file\nhttps://svelte.dev/e/store_invalid_subscription_module"));const l={module:{ast:r,scope:a,scopes:i,has_await:o},name:n.filename,accessors:!1,runes:!0,immutable:!0,tracing:!1,async_deriveds:new Set,comments:s,classes:new Map,pickled_awaits:new Set};return Ae({dev:n.dev,rootDir:n.rootDir,runes:!0}),t(r,{scope:a,scopes:i,analysis:l,state_fields:new Map,ast_type:null,component_slots:new Set,expression:null,function_depth:0,has_props_rune:!1,options:n,fragment:null,parent_element:null,reactive_statement:null,in_derived:!1},ww),l}(e,s);return KS(r,e,s)},e.migrate=function(e,{filename:n,use_ts:s}={}){let r=e;try{kP=!1;const a=[];e=e.replace(wP,((e,t,n,s,r)=>(a.push([r+t.length,n]),t+CP+s))),Te({warning:()=>!1,filename:n});let i=jl(e);const{customElement:o,...l}=i.options||{},c={...JS({},""),...l,customElementOptions:o,filename:n??ve,experimental:{async:!0}},p=new gC(e),u=Sw(i,e,c),d=OP(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,EP),h={...h,scope:u.template.scope},t(i.fragment,h,AP);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 w=n.split("/").pop();p.appendRight(m,`\n${d}import ${h.analysis.name} from './${w}';`)}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 SP(`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 C=h.props.length>3,k=`\n${d}${d}`,S=C?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}${C?`\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:R}]of h.analysis.reactive_statements){let I=[];if("ExpressionStatement"===$.body.type&&"AssignmentExpression"===$.body.expression.type&&(I=Zi($.body.expression.left).map((e=>h.scope.get(e.name))).filter((e=>!!e))),R.some((e=>!I.includes(e)&&("prop"===e.kind||"bindable_prop"===e.kind?h.props_insertion_point:e.node.start)>$.start))){b=!0;break}}if(b){const M=Array.from(h.analysis.reactive_statements.keys());for(const q of M){const{start:L,end:O}=qP(e,q);p.appendLeft(O,"\n"),p.move(L,O,i.instance?.content.end),p.update(L-("\r"===e[L-2]?2:1),L,"")}}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 gC(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=PP(t.indexOf("(",r)+1,t)-s;if(a>e){s+=a,n=n.substring(a);continue}}}else a=!0,e+=i.length;const l=PP(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 SP||console.error("Error while migrating Svelte code",N),kP=!0,{code:`\x3c!-- @migration-task Error while migrating Svelte code: ${N.message} --\x3e\n${r}`}}finally{kP&&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,{modern:t,loose:n}={}){return e=DP(e),Te({warning:()=>!1,filename:void 0}),NP(e,jl(e,n),t)},e.preprocess=async function(e,t,n){const s=n&&n.filename||t.filename,r=t?Array.isArray(t)?t:[t]:[],a=new hP(e,s);for(const e of r)e.markup&&a.update_source(await xP(e.markup,a)),e.script&&a.update_source(await _P("script",e.script,a)),e.style&&a.update_source(await _P("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")}}));
|