sveld 0.35.1 → 0.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/README.md +33 -10
  2. package/cli.js +1 -1
  3. package/lib/browser.d.ts +660 -39
  4. package/lib/browser.js +205 -227
  5. package/lib/chunk-0fqdg2xa.js +20 -0
  6. package/lib/chunk-2vwf7nck.js +1 -0
  7. package/lib/chunk-8myyzjb1.js +4 -0
  8. package/lib/chunk-as5hgj7e.js +62 -0
  9. package/lib/chunk-denfbw92.js +13 -0
  10. package/lib/chunk-h1r040pg.js +6 -0
  11. package/lib/chunk-m538qnhp.js +230 -0
  12. package/lib/chunk-r4rrncmd.js +1 -0
  13. package/lib/chunk-t9d5k3p7.js +2 -0
  14. package/lib/chunk-tmj7vnjr.js +10 -0
  15. package/lib/chunk-xryt7ad2.js +3 -0
  16. package/lib/cli-entry.js +1 -0
  17. package/lib/index.d.ts +767 -10
  18. package/lib/index.js +1 -343
  19. package/package.json +1 -1
  20. package/lib/ComponentParser.d.ts +0 -822
  21. package/lib/ast-guards.d.ts +0 -18
  22. package/lib/brands.d.ts +0 -11
  23. package/lib/bundle.d.ts +0 -176
  24. package/lib/check.d.ts +0 -43
  25. package/lib/cli.d.ts +0 -28
  26. package/lib/create-exports.d.ts +0 -32
  27. package/lib/dependency-graph.d.ts +0 -20
  28. package/lib/diagnostics.d.ts +0 -34
  29. package/lib/element-tag-map.d.ts +0 -146
  30. package/lib/example-check.d.ts +0 -24
  31. package/lib/get-svelte-entry.d.ts +0 -4
  32. package/lib/load-config.d.ts +0 -62
  33. package/lib/parse-cache.d.ts +0 -28
  34. package/lib/parse-entry-exports.d.ts +0 -30
  35. package/lib/parse-exports.d.ts +0 -25
  36. package/lib/parser/bindings.d.ts +0 -6
  37. package/lib/parser/context.d.ts +0 -114
  38. package/lib/parser/contexts.d.ts +0 -19
  39. package/lib/parser/diagnostics.d.ts +0 -8
  40. package/lib/parser/events.d.ts +0 -23
  41. package/lib/parser/generics.d.ts +0 -24
  42. package/lib/parser/jsdoc.d.ts +0 -59
  43. package/lib/parser/props.d.ts +0 -73
  44. package/lib/parser/rest-props.d.ts +0 -6
  45. package/lib/parser/runes-detection.d.ts +0 -16
  46. package/lib/parser/runes-props.d.ts +0 -18
  47. package/lib/parser/scopes.d.ts +0 -58
  48. package/lib/parser/slots.d.ts +0 -29
  49. package/lib/parser/source-position.d.ts +0 -30
  50. package/lib/parser/type-resolution.d.ts +0 -32
  51. package/lib/parser/typescript-casts.d.ts +0 -2
  52. package/lib/path.d.ts +0 -3
  53. package/lib/plugin.d.ts +0 -85
  54. package/lib/resolve-alias.d.ts +0 -30
  55. package/lib/resolve-types.d.ts +0 -52
  56. package/lib/sveld.d.ts +0 -29
  57. package/lib/validate.d.ts +0 -13
  58. package/lib/watch.d.ts +0 -34
  59. package/lib/writer/MarkdownWriterBase.d.ts +0 -26
  60. package/lib/writer/Writer.d.ts +0 -53
  61. package/lib/writer/WriterMarkdown.d.ts +0 -33
  62. package/lib/writer/built-in-writers.d.ts +0 -1
  63. package/lib/writer/document-model.d.ts +0 -34
  64. package/lib/writer/format-generated-ts.d.ts +0 -8
  65. package/lib/writer/markdown-format-utils.d.ts +0 -104
  66. package/lib/writer/markdown-render-utils.d.ts +0 -10
  67. package/lib/writer/registry.d.ts +0 -17
  68. package/lib/writer/writer-custom-elements-core.d.ts +0 -86
  69. package/lib/writer/writer-custom-elements.d.ts +0 -15
  70. package/lib/writer/writer-json.d.ts +0 -37
  71. package/lib/writer/writer-markdown-core.d.ts +0 -32
  72. package/lib/writer/writer-markdown.d.ts +0 -25
  73. package/lib/writer/writer-ts-definitions-core.d.ts +0 -38
  74. package/lib/writer/writer-ts-definitions.d.ts +0 -70
package/lib/browser.js CHANGED
@@ -1,226 +1,204 @@
1
- var vU=Object.create;var{getPrototypeOf:TU,defineProperty:N6,getOwnPropertyNames:NU}=Object;var DU=Object.prototype.hasOwnProperty;function uU(q){return this[q]}var EU,kU,i1=(q,R,P)=>{var C=q!=null&&typeof q==="object";if(C){var O=R?EU??=new WeakMap:kU??=new WeakMap,H=O.get(q);if(H)return H}P=q!=null?vU(TU(q)):{};let M=R||!q||!q.__esModule?N6(P,"default",{value:q,enumerable:!0}):P;for(let F of NU(q))if(!DU.call(M,F))N6(M,F,{get:uU.bind(q,F),enumerable:!0});if(C)O.set(q,M);return M};var G=(q,R)=>()=>(R||q((R={exports:{}}).exports,R),R.exports);var yU=(q)=>q;function bU(q,R){this[q]=yU.bind(null,R)}var hU=(q,R)=>{for(var P in R)N6(q,P,{get:R[P],enumerable:!0,configurable:!0,set:bU.bind(R,P)})};var $R=G((BR)=>{Object.defineProperty(BR,"__esModule",{value:!0});BR.default=void 0;function bL(){var q=this,R=0,P={"@@iterator":function(){return P},next:function(){if(R<q.length){var O=q[R];return R=R+1,{done:!1,value:O}}else return{done:!0}}};return P}var Dd=BR.default=bL});var k1=G((AR)=>{Object.defineProperty(AR,"__esModule",{value:!0});AR.default=lL;var hL=gL($R());function gL(q){return q&&q.__esModule?q:{default:q}}function P2(q){return P2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},P2(q)}function lL(q,R){if(typeof Symbol==="function"&&P2(Symbol.iterator)==="symbol")Object.defineProperty(q,Symbol.iterator,{value:hL.default.bind(R)});return q}});var IR=G((jR)=>{Object.defineProperty(jR,"__esModule",{value:!0});jR.default=void 0;var mL=xL(k1());function xL(q){return q&&q.__esModule?q:{default:q}}function C2(q,R){return rL(q)||iL(q,R)||cL(q,R)||pL()}function pL(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cL(q,R){if(q){if(typeof q=="string")return LR(q,R);var P={}.toString.call(q).slice(8,-1);return P==="Object"&&q.constructor&&(P=q.constructor.name),P==="Map"||P==="Set"?Array.from(q):P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P)?LR(q,R):void 0}}function LR(q,R){(R==null||R>q.length)&&(R=q.length);for(var P=0,C=Array(R);P<R;P++)C[P]=q[P];return C}function iL(q,R){var P=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(P!=null){var C,O,H,M,F=[],Y=!0,K=!1;try{if(H=(P=P.call(q)).next,R===0){if(Object(P)!==P)return;Y=!1}else for(;!(Y=(C=H.call(P)).done)&&(F.push(C.value),F.length!==R);Y=!0);}catch(J){K=!0,O=J}finally{try{if(!Y&&P.return!=null&&(M=P.return(),Object(M)!==M))return}finally{if(K)throw O}}return F}}function rL(q){if(Array.isArray(q))return q}var y1=[["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"}]],O2={entries:function(){return y1},forEach:function(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var C=0,O=y1;C<O.length;C++){var H=C2(O[C],2),M=H[0],F=H[1];R.call(P,F,M,y1)}},get:function(R){var P=y1.find(function(C){return C[0]===R?!0:!1});return P&&P[1]},has:function(R){return!!O2.get(R)},keys:function(){return y1.map(function(R){var P=C2(R,1),C=P[0];return C})},values:function(){return y1.map(function(R){var P=C2(R,2),C=P[1];return C})}},kd=jR.default=(0,mL.default)(O2,O2.entries())});var TR=G((SR)=>{Object.defineProperty(SR,"__esModule",{value:!0});SR.default=void 0;var dL=aL(k1());function aL(q){return q&&q.__esModule?q:{default:q}}function H2(q,R){return tL(q)||nL(q,R)||oL(q,R)||sL()}function sL(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oL(q,R){if(q){if(typeof q=="string")return fR(q,R);var P={}.toString.call(q).slice(8,-1);return P==="Object"&&q.constructor&&(P=q.constructor.name),P==="Map"||P==="Set"?Array.from(q):P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P)?fR(q,R):void 0}}function fR(q,R){(R==null||R>q.length)&&(R=q.length);for(var P=0,C=Array(R);P<R;P++)C[P]=q[P];return C}function nL(q,R){var P=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(P!=null){var C,O,H,M,F=[],Y=!0,K=!1;try{if(H=(P=P.call(q)).next,R===0){if(Object(P)!==P)return;Y=!1}else for(;!(Y=(C=H.call(P)).done)&&(F.push(C.value),F.length!==R);Y=!0);}catch(J){K=!0,O=J}finally{try{if(!Y&&P.return!=null&&(M=P.return(),Object(M)!==M))return}finally{if(K)throw O}}return F}}function tL(q){if(Array.isArray(q))return q}var b1=[["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}]],M2={entries:function(){return b1},forEach:function(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var C=0,O=b1;C<O.length;C++){var H=H2(O[C],2),M=H[0],F=H[1];R.call(P,F,M,b1)}},get:function(R){var P=b1.find(function(C){return C[0]===R?!0:!1});return P&&P[1]},has:function(R){return!!M2.get(R)},keys:function(){return b1.map(function(R){var P=H2(R,1),C=P[0];return C})},values:function(){return b1.map(function(R){var P=H2(R,2),C=P[1];return C})}},bd=SR.default=(0,dL.default)(M2,M2.entries())});var uR=G((NR)=>{Object.defineProperty(NR,"__esModule",{value:!0});NR.default=void 0;var eL={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},gd=NR.default=eL});var yR=G((ER)=>{Object.defineProperty(ER,"__esModule",{value:!0});ER.default=void 0;var qj={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"]]},_d=ER.default=qj});var gR=G((bR)=>{Object.defineProperty(bR,"__esModule",{value:!0});bR.default=void 0;var Rj={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"]]},xd=bR.default=Rj});var mR=G((lR)=>{Object.defineProperty(lR,"__esModule",{value:!0});lR.default=void 0;var Pj={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},cd=lR.default=Pj});var cR=G((xR)=>{Object.defineProperty(xR,"__esModule",{value:!0});xR.default=void 0;var Cj={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"]]},rd=xR.default=Cj});var dR=G((iR)=>{Object.defineProperty(iR,"__esModule",{value:!0});iR.default=void 0;var Oj={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:[]},ad=iR.default=Oj});var oR=G((aR)=>{Object.defineProperty(aR,"__esModule",{value:!0});aR.default=void 0;var Hj={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"]]},od=aR.default=Hj});var eR=G((nR)=>{Object.defineProperty(nR,"__esModule",{value:!0});nR.default=void 0;var Mj={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},td=nR.default=Mj});var PP=G((qP)=>{Object.defineProperty(qP,"__esModule",{value:!0});qP.default=void 0;var Qj={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"]]},qa=qP.default=Qj});var HP=G((CP)=>{Object.defineProperty(CP,"__esModule",{value:!0});CP.default=void 0;var Zj={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},Pa=CP.default=Zj});var ZP=G((MP)=>{Object.defineProperty(MP,"__esModule",{value:!0});MP.default=void 0;var Yj={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},Oa=MP.default=Yj});var VP=G((YP)=>{Object.defineProperty(YP,"__esModule",{value:!0});YP.default=void 0;var Fj={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},Ma=YP.default=Fj});var WP=G((JP)=>{Object.defineProperty(JP,"__esModule",{value:!0});JP.default=void 0;var Vj=Q0(uR()),Jj=Q0(yR()),Kj=Q0(gR()),Wj=Q0(mR()),Xj=Q0(cR()),Gj=Q0(dR()),zj=Q0(oR()),Bj=Q0(eR()),Uj=Q0(PP()),$j=Q0(HP()),Aj=Q0(ZP()),Lj=Q0(VP());function Q0(q){return q&&q.__esModule?q:{default:q}}var jj=[["command",Vj.default],["composite",Jj.default],["input",Kj.default],["landmark",Wj.default],["range",Xj.default],["roletype",Gj.default],["section",zj.default],["sectionhead",Bj.default],["select",Uj.default],["structure",$j.default],["widget",Aj.default],["window",Lj.default]],Za=JP.default=jj});var zP=G((XP)=>{Object.defineProperty(XP,"__esModule",{value:!0});XP.default=void 0;var wj={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"]]},Fa=XP.default=wj});var $P=G((BP)=>{Object.defineProperty(BP,"__esModule",{value:!0});BP.default=void 0;var Ij={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"]]},Ja=BP.default=Ij});var jP=G((AP)=>{Object.defineProperty(AP,"__esModule",{value:!0});AP.default=void 0;var fj={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"]]},Wa=AP.default=fj});var fP=G((wP)=>{Object.defineProperty(wP,"__esModule",{value:!0});wP.default=void 0;var Sj={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"]]},Ga=wP.default=Sj});var TP=G((SP)=>{Object.defineProperty(SP,"__esModule",{value:!0});SP.default=void 0;var vj={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"]]},Ba=SP.default=vj});var uP=G((NP)=>{Object.defineProperty(NP,"__esModule",{value:!0});NP.default=void 0;var Tj={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"]]},$a=NP.default=Tj});var yP=G((EP)=>{Object.defineProperty(EP,"__esModule",{value:!0});EP.default=void 0;var Nj={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"]]},La=EP.default=Nj});var gP=G((bP)=>{Object.defineProperty(bP,"__esModule",{value:!0});bP.default=void 0;var Dj={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"]]},wa=bP.default=Dj});var mP=G((lP)=>{Object.defineProperty(lP,"__esModule",{value:!0});lP.default=void 0;var uj={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"]]},fa=lP.default=uj});var cP=G((xP)=>{Object.defineProperty(xP,"__esModule",{value:!0});xP.default=void 0;var Ej={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"]]},va=xP.default=Ej});var dP=G((iP)=>{Object.defineProperty(iP,"__esModule",{value:!0});iP.default=void 0;var kj={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"]]},Na=iP.default=kj});var oP=G((aP)=>{Object.defineProperty(aP,"__esModule",{value:!0});aP.default=void 0;var yj={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"]]},ua=aP.default=yj});var eP=G((nP)=>{Object.defineProperty(nP,"__esModule",{value:!0});nP.default=void 0;var bj={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"]]},ka=nP.default=bj});var PC=G((qC)=>{Object.defineProperty(qC,"__esModule",{value:!0});qC.default=void 0;var hj={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"]]},ba=qC.default=hj});var HC=G((CC)=>{Object.defineProperty(CC,"__esModule",{value:!0});CC.default=void 0;var gj={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"]]},ga=CC.default=gj});var ZC=G((MC)=>{Object.defineProperty(MC,"__esModule",{value:!0});MC.default=void 0;var lj={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"]]},_a=MC.default=lj});var VC=G((YC)=>{Object.defineProperty(YC,"__esModule",{value:!0});YC.default=void 0;var _j={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"]]},xa=YC.default=_j});var WC=G((JC)=>{Object.defineProperty(JC,"__esModule",{value:!0});JC.default=void 0;var mj={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]},ca=JC.default=mj});var zC=G((XC)=>{Object.defineProperty(XC,"__esModule",{value:!0});XC.default=void 0;var xj={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]},ra=XC.default=xj});var $C=G((BC)=>{Object.defineProperty(BC,"__esModule",{value:!0});BC.default=void 0;var pj={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"]]},aa=BC.default=pj});var jC=G((AC)=>{Object.defineProperty(AC,"__esModule",{value:!0});AC.default=void 0;var cj={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"]]},oa=AC.default=cj});var fC=G((wC)=>{Object.defineProperty(wC,"__esModule",{value:!0});wC.default=void 0;var ij={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]},ta=wC.default=ij});var TC=G((SC)=>{Object.defineProperty(SC,"__esModule",{value:!0});SC.default=void 0;var rj={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"]]},qs=SC.default=rj});var uC=G((NC)=>{Object.defineProperty(NC,"__esModule",{value:!0});NC.default=void 0;var dj={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"]]},Ps=NC.default=dj});var yC=G((EC)=>{Object.defineProperty(EC,"__esModule",{value:!0});EC.default=void 0;var aj={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"]]},Os=EC.default=aj});var gC=G((bC)=>{Object.defineProperty(bC,"__esModule",{value:!0});bC.default=void 0;var sj={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"]]},Ms=bC.default=sj});var mC=G((lC)=>{Object.defineProperty(lC,"__esModule",{value:!0});lC.default=void 0;var oj={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"]]},Zs=lC.default=oj});var cC=G((xC)=>{Object.defineProperty(xC,"__esModule",{value:!0});xC.default=void 0;var nj={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"]]},Fs=xC.default=nj});var dC=G((iC)=>{Object.defineProperty(iC,"__esModule",{value:!0});iC.default=void 0;var tj={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"]]},Js=iC.default=tj});var oC=G((aC)=>{Object.defineProperty(aC,"__esModule",{value:!0});aC.default=void 0;var ej={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"]]},Ws=aC.default=ej});var eC=G((nC)=>{Object.defineProperty(nC,"__esModule",{value:!0});nC.default=void 0;var qw={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"]]},Gs=nC.default=qw});var PO=G((qO)=>{Object.defineProperty(qO,"__esModule",{value:!0});qO.default=void 0;var Rw={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"]]},Bs=qO.default=Rw});var HO=G((CO)=>{Object.defineProperty(CO,"__esModule",{value:!0});CO.default=void 0;var Pw={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"]]},$s=CO.default=Pw});var ZO=G((MO)=>{Object.defineProperty(MO,"__esModule",{value:!0});MO.default=void 0;var Cw={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"]]},Ls=MO.default=Cw});var VO=G((YO)=>{Object.defineProperty(YO,"__esModule",{value:!0});YO.default=void 0;var Ow={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"]]},ws=YO.default=Ow});var WO=G((JO)=>{Object.defineProperty(JO,"__esModule",{value:!0});JO.default=void 0;var Hw={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},fs=JO.default=Hw});var zO=G((XO)=>{Object.defineProperty(XO,"__esModule",{value:!0});XO.default=void 0;var Mw={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"]]},vs=XO.default=Mw});var $O=G((BO)=>{Object.defineProperty(BO,"__esModule",{value:!0});BO.default=void 0;var Qw={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"]]},Ns=BO.default=Qw});var jO=G((AO)=>{Object.defineProperty(AO,"__esModule",{value:!0});AO.default=void 0;var Zw={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},us=AO.default=Zw});var fO=G((wO)=>{Object.defineProperty(wO,"__esModule",{value:!0});wO.default=void 0;var Yw={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"]]},ks=wO.default=Yw});var TO=G((SO)=>{Object.defineProperty(SO,"__esModule",{value:!0});SO.default=void 0;var Fw={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"]]},bs=SO.default=Fw});var uO=G((NO)=>{Object.defineProperty(NO,"__esModule",{value:!0});NO.default=void 0;var Vw={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"]]},gs=NO.default=Vw});var yO=G((EO)=>{Object.defineProperty(EO,"__esModule",{value:!0});EO.default=void 0;var Jw={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"]]},_s=EO.default=Jw});var gO=G((bO)=>{Object.defineProperty(bO,"__esModule",{value:!0});bO.default=void 0;var Kw={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"]]},xs=bO.default=Kw});var mO=G((lO)=>{Object.defineProperty(lO,"__esModule",{value:!0});lO.default=void 0;var Ww={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"]]},cs=lO.default=Ww});var cO=G((xO)=>{Object.defineProperty(xO,"__esModule",{value:!0});xO.default=void 0;var Xw={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"]]},rs=xO.default=Xw});var dO=G((iO)=>{Object.defineProperty(iO,"__esModule",{value:!0});iO.default=void 0;var Gw={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"]]},as=iO.default=Gw});var oO=G((aO)=>{Object.defineProperty(aO,"__esModule",{value:!0});aO.default=void 0;var zw={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},os=aO.default=zw});var eO=G((nO)=>{Object.defineProperty(nO,"__esModule",{value:!0});nO.default=void 0;var Bw={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},ts=nO.default=Bw});var PH=G((qH)=>{Object.defineProperty(qH,"__esModule",{value:!0});qH.default=void 0;var Uw={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"]]},qo=qH.default=Uw});var HH=G((CH)=>{Object.defineProperty(CH,"__esModule",{value:!0});CH.default=void 0;var $w={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"]]},Po=CH.default=$w});var ZH=G((MH)=>{Object.defineProperty(MH,"__esModule",{value:!0});MH.default=void 0;var Aw={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"]]},Oo=MH.default=Aw});var VH=G((YH)=>{Object.defineProperty(YH,"__esModule",{value:!0});YH.default=void 0;var Lw={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"]]},Mo=YH.default=Lw});var WH=G((JH)=>{Object.defineProperty(JH,"__esModule",{value:!0});JH.default=void 0;var jw={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"]]},Zo=JH.default=jw});var zH=G((XH)=>{Object.defineProperty(XH,"__esModule",{value:!0});XH.default=void 0;var ww={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"]]},Fo=XH.default=ww});var $H=G((BH)=>{Object.defineProperty(BH,"__esModule",{value:!0});BH.default=void 0;var Iw={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"]]},Jo=BH.default=Iw});var jH=G((AH)=>{Object.defineProperty(AH,"__esModule",{value:!0});AH.default=void 0;var fw={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"]]},Wo=AH.default=fw});var fH=G((wH)=>{Object.defineProperty(wH,"__esModule",{value:!0});wH.default=void 0;var Sw={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"]]},Go=wH.default=Sw});var TH=G((SH)=>{Object.defineProperty(SH,"__esModule",{value:!0});SH.default=void 0;var vw={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"]]},Bo=SH.default=vw});var uH=G((NH)=>{Object.defineProperty(NH,"__esModule",{value:!0});NH.default=void 0;var Tw={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"]]},$o=NH.default=Tw});var yH=G((EH)=>{Object.defineProperty(EH,"__esModule",{value:!0});EH.default=void 0;var Nw={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},Lo=EH.default=Nw});var gH=G((bH)=>{Object.defineProperty(bH,"__esModule",{value:!0});bH.default=void 0;var Dw={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"]]},wo=bH.default=Dw});var mH=G((lH)=>{Object.defineProperty(lH,"__esModule",{value:!0});lH.default=void 0;var uw={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"]]},fo=lH.default=uw});var cH=G((xH)=>{Object.defineProperty(xH,"__esModule",{value:!0});xH.default=void 0;var Ew={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"]]},vo=xH.default=Ew});var dH=G((iH)=>{Object.defineProperty(iH,"__esModule",{value:!0});iH.default=void 0;var kw={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"]]},No=iH.default=kw});var oH=G((aH)=>{Object.defineProperty(aH,"__esModule",{value:!0});aH.default=void 0;var yw={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"]]},uo=aH.default=yw});var eH=G((nH)=>{Object.defineProperty(nH,"__esModule",{value:!0});nH.default=void 0;var bw={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"]]},ko=nH.default=bw});var PM=G((qM)=>{Object.defineProperty(qM,"__esModule",{value:!0});qM.default=void 0;var hw={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"]]},bo=qM.default=hw});var HM=G((CM)=>{Object.defineProperty(CM,"__esModule",{value:!0});CM.default=void 0;var gw={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"]]},go=CM.default=gw});var ZM=G((MM)=>{Object.defineProperty(MM,"__esModule",{value:!0});MM.default=void 0;var lw={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"]]},_o=MM.default=lw});var VM=G((YM)=>{Object.defineProperty(YM,"__esModule",{value:!0});YM.default=void 0;var _w={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"]]},xo=YM.default=_w});var WM=G((JM)=>{Object.defineProperty(JM,"__esModule",{value:!0});JM.default=void 0;var mw={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"]]},co=JM.default=mw});var zM=G((XM)=>{Object.defineProperty(XM,"__esModule",{value:!0});XM.default=void 0;var xw={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"]]},ro=XM.default=xw});var $M=G((BM)=>{Object.defineProperty(BM,"__esModule",{value:!0});BM.default=void 0;var pw={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},so=BM.default=pw});var jM=G((AM)=>{Object.defineProperty(AM,"__esModule",{value:!0});AM.default=void 0;var cw={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"]]},no=AM.default=cw});var fM=G((wM)=>{Object.defineProperty(wM,"__esModule",{value:!0});wM.default=void 0;var iw={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"]]},eo=wM.default=iw});var TM=G((SM)=>{Object.defineProperty(SM,"__esModule",{value:!0});SM.default=void 0;var rw={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"]]},Rn=SM.default=rw});var uM=G((NM)=>{Object.defineProperty(NM,"__esModule",{value:!0});NM.default=void 0;var dw={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]},Cn=NM.default=dw});var yM=G((EM)=>{Object.defineProperty(EM,"__esModule",{value:!0});EM.default=void 0;var aw={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"]]},Hn=EM.default=aw});var gM=G((bM)=>{Object.defineProperty(bM,"__esModule",{value:!0});bM.default=void 0;var sw={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},Qn=bM.default=sw});var mM=G((lM)=>{Object.defineProperty(lM,"__esModule",{value:!0});lM.default=void 0;var ow={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"]]},Yn=lM.default=ow});var cM=G((xM)=>{Object.defineProperty(xM,"__esModule",{value:!0});xM.default=void 0;var nw={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"]]},Vn=xM.default=nw});var dM=G((iM)=>{Object.defineProperty(iM,"__esModule",{value:!0});iM.default=void 0;var tw={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"]]},Kn=iM.default=tw});var oM=G((aM)=>{Object.defineProperty(aM,"__esModule",{value:!0});aM.default=void 0;var ew=g(zP()),qI=g($P()),RI=g(jP()),PI=g(fP()),CI=g(TP()),OI=g(uP()),HI=g(yP()),MI=g(gP()),QI=g(mP()),ZI=g(cP()),YI=g(dP()),FI=g(oP()),VI=g(eP()),JI=g(PC()),KI=g(HC()),WI=g(ZC()),XI=g(VC()),GI=g(WC()),zI=g(zC()),BI=g($C()),UI=g(jC()),$I=g(fC()),AI=g(TC()),LI=g(uC()),jI=g(yC()),wI=g(gC()),II=g(mC()),fI=g(cC()),SI=g(dC()),vI=g(oC()),TI=g(eC()),NI=g(PO()),DI=g(HO()),uI=g(ZO()),EI=g(VO()),kI=g(WO()),yI=g(zO()),bI=g($O()),hI=g(jO()),gI=g(fO()),lI=g(TO()),_I=g(uO()),mI=g(yO()),xI=g(gO()),pI=g(mO()),cI=g(cO()),iI=g(dO()),rI=g(oO()),dI=g(eO()),aI=g(PH()),sI=g(HH()),oI=g(ZH()),nI=g(VH()),tI=g(WH()),eI=g(zH()),qf=g($H()),Rf=g(jH()),Pf=g(fH()),Cf=g(TH()),Of=g(uH()),Hf=g(yH()),Mf=g(gH()),Qf=g(mH()),Zf=g(cH()),Yf=g(dH()),Ff=g(oH()),Vf=g(eH()),Jf=g(PM()),Kf=g(HM()),Wf=g(ZM()),Xf=g(VM()),Gf=g(WM()),zf=g(zM()),Bf=g($M()),Uf=g(jM()),$f=g(fM()),Af=g(TM()),Lf=g(uM()),jf=g(yM()),wf=g(gM()),If=g(mM()),ff=g(cM()),Sf=g(dM());function g(q){return q&&q.__esModule?q:{default:q}}var vf=[["alert",ew.default],["alertdialog",qI.default],["application",RI.default],["article",PI.default],["banner",CI.default],["blockquote",OI.default],["button",HI.default],["caption",MI.default],["cell",QI.default],["checkbox",ZI.default],["code",YI.default],["columnheader",FI.default],["combobox",VI.default],["complementary",JI.default],["contentinfo",KI.default],["definition",WI.default],["deletion",XI.default],["dialog",GI.default],["directory",zI.default],["document",BI.default],["emphasis",UI.default],["feed",$I.default],["figure",AI.default],["form",LI.default],["generic",jI.default],["grid",wI.default],["gridcell",II.default],["group",fI.default],["heading",SI.default],["img",vI.default],["insertion",TI.default],["link",NI.default],["list",DI.default],["listbox",uI.default],["listitem",EI.default],["log",kI.default],["main",yI.default],["mark",bI.default],["marquee",hI.default],["math",gI.default],["menu",lI.default],["menubar",_I.default],["menuitem",mI.default],["menuitemcheckbox",xI.default],["menuitemradio",pI.default],["meter",cI.default],["navigation",iI.default],["none",rI.default],["note",dI.default],["option",aI.default],["paragraph",sI.default],["presentation",oI.default],["progressbar",nI.default],["radio",tI.default],["radiogroup",eI.default],["region",qf.default],["row",Rf.default],["rowgroup",Pf.default],["rowheader",Cf.default],["scrollbar",Of.default],["search",Hf.default],["searchbox",Mf.default],["separator",Qf.default],["slider",Zf.default],["spinbutton",Yf.default],["status",Ff.default],["strong",Vf.default],["subscript",Jf.default],["superscript",Kf.default],["switch",Wf.default],["tab",Xf.default],["table",Gf.default],["tablist",zf.default],["tabpanel",Bf.default],["term",Uf.default],["textbox",$f.default],["time",Af.default],["timer",Lf.default],["toolbar",jf.default],["tooltip",wf.default],["tree",If.default],["treegrid",ff.default],["treeitem",Sf.default]],Xn=aM.default=vf});var eM=G((nM)=>{Object.defineProperty(nM,"__esModule",{value:!0});nM.default=void 0;var Tf={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"]]},zn=nM.default=Tf});var PQ=G((qQ)=>{Object.defineProperty(qQ,"__esModule",{value:!0});qQ.default=void 0;var Nf={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"]]},Un=qQ.default=Nf});var HQ=G((CQ)=>{Object.defineProperty(CQ,"__esModule",{value:!0});CQ.default=void 0;var Df={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"]]},An=CQ.default=Df});var ZQ=G((MQ)=>{Object.defineProperty(MQ,"__esModule",{value:!0});MQ.default=void 0;var uf={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"]]},jn=MQ.default=uf});var VQ=G((YQ)=>{Object.defineProperty(YQ,"__esModule",{value:!0});YQ.default=void 0;var Ef={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"]]},In=YQ.default=Ef});var WQ=G((JQ)=>{Object.defineProperty(JQ,"__esModule",{value:!0});JQ.default=void 0;var kf={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"]]},Sn=JQ.default=kf});var zQ=G((XQ)=>{Object.defineProperty(XQ,"__esModule",{value:!0});XQ.default=void 0;var yf={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"]]},Tn=XQ.default=yf});var $Q=G((BQ)=>{Object.defineProperty(BQ,"__esModule",{value:!0});BQ.default=void 0;var bf={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"]]},Dn=BQ.default=bf});var jQ=G((AQ)=>{Object.defineProperty(AQ,"__esModule",{value:!0});AQ.default=void 0;var hf={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"]]},En=AQ.default=hf});var fQ=G((wQ)=>{Object.defineProperty(wQ,"__esModule",{value:!0});wQ.default=void 0;var gf={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"]]},yn=wQ.default=gf});var TQ=G((SQ)=>{Object.defineProperty(SQ,"__esModule",{value:!0});SQ.default=void 0;var lf={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"]]},hn=SQ.default=lf});var uQ=G((NQ)=>{Object.defineProperty(NQ,"__esModule",{value:!0});NQ.default=void 0;var _f={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"]]},ln=NQ.default=_f});var yQ=G((EQ)=>{Object.defineProperty(EQ,"__esModule",{value:!0});EQ.default=void 0;var mf={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"]]},mn=EQ.default=mf});var gQ=G((bQ)=>{Object.defineProperty(bQ,"__esModule",{value:!0});bQ.default=void 0;var xf={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"]]},pn=bQ.default=xf});var mQ=G((lQ)=>{Object.defineProperty(lQ,"__esModule",{value:!0});lQ.default=void 0;var pf={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"]]},rn=lQ.default=pf});var cQ=G((xQ)=>{Object.defineProperty(xQ,"__esModule",{value:!0});xQ.default=void 0;var cf={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"]]},an=xQ.default=cf});var dQ=G((iQ)=>{Object.defineProperty(iQ,"__esModule",{value:!0});iQ.default=void 0;var rf={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"]]},on=iQ.default=rf});var oQ=G((aQ)=>{Object.defineProperty(aQ,"__esModule",{value:!0});aQ.default=void 0;var df={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"]]},tn=aQ.default=df});var eQ=G((nQ)=>{Object.defineProperty(nQ,"__esModule",{value:!0});nQ.default=void 0;var af={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"]]},qt=nQ.default=af});var PZ=G((qZ)=>{Object.defineProperty(qZ,"__esModule",{value:!0});qZ.default=void 0;var sf={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"]]},Pt=qZ.default=sf});var HZ=G((CZ)=>{Object.defineProperty(CZ,"__esModule",{value:!0});CZ.default=void 0;var of={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"]]},Ot=CZ.default=of});var ZZ=G((MZ)=>{Object.defineProperty(MZ,"__esModule",{value:!0});MZ.default=void 0;var nf={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"]]},Mt=MZ.default=nf});var VZ=G((YZ)=>{Object.defineProperty(YZ,"__esModule",{value:!0});YZ.default=void 0;var tf={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"]]},Zt=YZ.default=tf});var WZ=G((JZ)=>{Object.defineProperty(JZ,"__esModule",{value:!0});JZ.default=void 0;var ef={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"]]},Ft=JZ.default=ef});var zZ=G((XZ)=>{Object.defineProperty(XZ,"__esModule",{value:!0});XZ.default=void 0;var qS={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"]]},Jt=XZ.default=qS});var $Z=G((BZ)=>{Object.defineProperty(BZ,"__esModule",{value:!0});BZ.default=void 0;var RS={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"]]},Wt=BZ.default=RS});var jZ=G((AZ)=>{Object.defineProperty(AZ,"__esModule",{value:!0});AZ.default=void 0;var PS={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"]]},Gt=AZ.default=PS});var fZ=G((wZ)=>{Object.defineProperty(wZ,"__esModule",{value:!0});wZ.default=void 0;var CS={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"]]},Bt=wZ.default=CS});var TZ=G((SZ)=>{Object.defineProperty(SZ,"__esModule",{value:!0});SZ.default=void 0;var OS={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"]]},$t=SZ.default=OS});var uZ=G((NZ)=>{Object.defineProperty(NZ,"__esModule",{value:!0});NZ.default=void 0;var HS={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"]]},Lt=NZ.default=HS});var yZ=G((EZ)=>{Object.defineProperty(EZ,"__esModule",{value:!0});EZ.default=void 0;var MS={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"]]},wt=EZ.default=MS});var gZ=G((bZ)=>{Object.defineProperty(bZ,"__esModule",{value:!0});bZ.default=void 0;var QS={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"]]},ft=bZ.default=QS});var mZ=G((lZ)=>{Object.defineProperty(lZ,"__esModule",{value:!0});lZ.default=void 0;var ZS={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"]]},vt=lZ.default=ZS});var cZ=G((xZ)=>{Object.defineProperty(xZ,"__esModule",{value:!0});xZ.default=void 0;var YS={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"]]},Nt=xZ.default=YS});var dZ=G((iZ)=>{Object.defineProperty(iZ,"__esModule",{value:!0});iZ.default=void 0;var FS={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"]]},ut=iZ.default=FS});var oZ=G((aZ)=>{Object.defineProperty(aZ,"__esModule",{value:!0});aZ.default=void 0;var VS={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"]]},kt=aZ.default=VS});var eZ=G((nZ)=>{Object.defineProperty(nZ,"__esModule",{value:!0});nZ.default=void 0;var JS={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"]]},bt=nZ.default=JS});var PY=G((qY)=>{Object.defineProperty(qY,"__esModule",{value:!0});qY.default=void 0;var KS={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"]]},gt=qY.default=KS});var HY=G((CY)=>{Object.defineProperty(CY,"__esModule",{value:!0});CY.default=void 0;var WS={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"]]},_t=CY.default=WS});var ZY=G((MY)=>{Object.defineProperty(MY,"__esModule",{value:!0});MY.default=void 0;var XS={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"]]},xt=MY.default=XS});var VY=G((YY)=>{Object.defineProperty(YY,"__esModule",{value:!0});YY.default=void 0;var GS={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"]]},ct=YY.default=GS});var WY=G((JY)=>{Object.defineProperty(JY,"__esModule",{value:!0});JY.default=void 0;var zS=O8(eM()),BS=O8(PQ()),US=O8(HQ()),$S=O8(ZQ()),AS=O8(VQ()),LS=O8(WQ()),jS=O8(zQ()),wS=O8($Q()),IS=O8(jQ()),fS=O8(fQ()),SS=O8(TQ()),vS=O8(uQ()),TS=O8(yQ()),NS=O8(gQ()),DS=O8(mQ()),uS=O8(cQ()),ES=O8(dQ()),kS=O8(oQ()),yS=O8(eQ()),bS=O8(PZ()),hS=O8(HZ()),gS=O8(ZZ()),lS=O8(VZ()),_S=O8(WZ()),mS=O8(zZ()),xS=O8($Z()),pS=O8(jZ()),cS=O8(fZ()),iS=O8(TZ()),rS=O8(uZ()),dS=O8(yZ()),aS=O8(gZ()),sS=O8(mZ()),oS=O8(cZ()),nS=O8(dZ()),tS=O8(oZ()),eS=O8(eZ()),qv=O8(PY()),Rv=O8(HY()),Pv=O8(ZY()),Cv=O8(VY());function O8(q){return q&&q.__esModule?q:{default:q}}var Ov=[["doc-abstract",zS.default],["doc-acknowledgments",BS.default],["doc-afterword",US.default],["doc-appendix",$S.default],["doc-backlink",AS.default],["doc-biblioentry",LS.default],["doc-bibliography",jS.default],["doc-biblioref",wS.default],["doc-chapter",IS.default],["doc-colophon",fS.default],["doc-conclusion",SS.default],["doc-cover",vS.default],["doc-credit",TS.default],["doc-credits",NS.default],["doc-dedication",DS.default],["doc-endnote",uS.default],["doc-endnotes",ES.default],["doc-epigraph",kS.default],["doc-epilogue",yS.default],["doc-errata",bS.default],["doc-example",hS.default],["doc-footnote",gS.default],["doc-foreword",lS.default],["doc-glossary",_S.default],["doc-glossref",mS.default],["doc-index",xS.default],["doc-introduction",pS.default],["doc-noteref",cS.default],["doc-notice",iS.default],["doc-pagebreak",rS.default],["doc-pagefooter",dS.default],["doc-pageheader",aS.default],["doc-pagelist",sS.default],["doc-part",oS.default],["doc-preface",nS.default],["doc-prologue",tS.default],["doc-pullquote",eS.default],["doc-qna",qv.default],["doc-subtitle",Rv.default],["doc-tip",Pv.default],["doc-toc",Cv.default]],rt=JY.default=Ov});var zY=G((XY)=>{Object.defineProperty(XY,"__esModule",{value:!0});XY.default=void 0;var Hv={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"]]},at=XY.default=Hv});var $Y=G((BY)=>{Object.defineProperty(BY,"__esModule",{value:!0});BY.default=void 0;var Mv={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"]]},ot=BY.default=Mv});var jY=G((AY)=>{Object.defineProperty(AY,"__esModule",{value:!0});AY.default=void 0;var Qv={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"]]},tt=AY.default=Qv});var fY=G((wY)=>{Object.defineProperty(wY,"__esModule",{value:!0});wY.default=void 0;var Zv=Q2(zY()),Yv=Q2($Y()),Fv=Q2(jY());function Q2(q){return q&&q.__esModule?q:{default:q}}var Vv=[["graphics-document",Zv.default],["graphics-object",Yv.default],["graphics-symbol",Fv.default]],qe=wY.default=Vv});var xq=G((TY)=>{function B9(q){return B9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},B9(q)}Object.defineProperty(TY,"__esModule",{value:!0});TY.default=void 0;var Jv=U9(WP()),Kv=U9(oM()),Wv=U9(WY()),Xv=U9(fY()),Gv=U9(k1());function U9(q){return q&&q.__esModule?q:{default:q}}function zv(q,R,P){return(R=Bv(R))in q?Object.defineProperty(q,R,{value:P,enumerable:!0,configurable:!0,writable:!0}):q[R]=P,q}function Bv(q){var R=Uv(q,"string");return B9(R)=="symbol"?R:R+""}function Uv(q,R){if(B9(q)!="object"||!q)return q;var P=q[Symbol.toPrimitive];if(P!==void 0){var C=P.call(q,R||"default");if(B9(C)!="object")return C;throw TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(q)}function Z2(q,R){var P=typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(!P){if(Array.isArray(q)||(P=vY(q))||R&&q&&typeof q.length=="number"){P&&(q=P);var C=0,O=function(){};return{s:O,n:function(){return C>=q.length?{done:!0}:{done:!1,value:q[C++]}},e:function(K){throw K},f:O}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
4
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H,M=!0,F=!1;return{s:function(){P=P.call(q)},n:function(){var K=P.next();return M=K.done,K},e:function(K){F=!0,H=K},f:function(){try{M||P.return==null||P.return()}finally{if(F)throw H}}}}function z9(q,R){return Lv(q)||Av(q,R)||vY(q,R)||$v()}function $v(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
5
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vY(q,R){if(q){if(typeof q=="string")return SY(q,R);var P={}.toString.call(q).slice(8,-1);return P==="Object"&&q.constructor&&(P=q.constructor.name),P==="Map"||P==="Set"?Array.from(q):P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P)?SY(q,R):void 0}}function SY(q,R){(R==null||R>q.length)&&(R=q.length);for(var P=0,C=Array(R);P<R;P++)C[P]=q[P];return C}function Av(q,R){var P=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(P!=null){var C,O,H,M,F=[],Y=!0,K=!1;try{if(H=(P=P.call(q)).next,R===0){if(Object(P)!==P)return;Y=!1}else for(;!(Y=(C=H.call(P)).done)&&(F.push(C.value),F.length!==R);Y=!0);}catch(J){K=!0,O=J}finally{try{if(!Y&&P.return!=null&&(M=P.return(),Object(M)!==M))return}finally{if(K)throw O}}return F}}function Lv(q){if(Array.isArray(q))return q}var s0=[].concat(Jv.default,Kv.default,Wv.default,Xv.default);s0.forEach(function(q){var R=z9(q,2),P=R[1],C=Z2(P.superClass),O;try{for(C.s();!(O=C.n()).done;){var H=O.value,M=Z2(H),F;try{var Y=function(){var J=F.value,$=s0.find(function(f){var D=z9(f,1),y=D[0];return y===J});if($){var U=$[1];for(var B=0,T=Object.keys(U.props);B<T.length;B++){var w=T[B];if(!Object.prototype.hasOwnProperty.call(P.props,w))Object.assign(P.props,zv({},w,U.props[w]))}}};for(M.s();!(F=M.n()).done;)Y()}catch(K){M.e(K)}finally{M.f()}}}catch(K){C.e(K)}finally{C.f()}});var Y2={entries:function(){return s0},forEach:function(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,C=Z2(s0),O;try{for(C.s();!(O=C.n()).done;){var H=z9(O.value,2),M=H[0],F=H[1];R.call(P,F,M,s0)}}catch(Y){C.e(Y)}finally{C.f()}},get:function(R){var P=s0.find(function(C){return C[0]===R?!0:!1});return P&&P[1]},has:function(R){return!!Y2.get(R)},keys:function(){return s0.map(function(R){var P=z9(R,1),C=P[0];return C})},values:function(){return s0.map(function(R){var P=z9(R,2),C=P[1];return C})}},Pe=TY.default=(0,Gv.default)(Y2,Y2.entries())});var gY=G((bY)=>{Object.defineProperty(bY,"__esModule",{value:!0});bY.default=void 0;var jv=kY(k1()),EY=kY(xq());function kY(q){return q&&q.__esModule?q:{default:q}}function F2(q,R){return Sv(q)||fv(q,R)||Iv(q,R)||wv()}function wv(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
6
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Iv(q,R){if(q){if(typeof q=="string")return DY(q,R);var P={}.toString.call(q).slice(8,-1);return P==="Object"&&q.constructor&&(P=q.constructor.name),P==="Map"||P==="Set"?Array.from(q):P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P)?DY(q,R):void 0}}function DY(q,R){(R==null||R>q.length)&&(R=q.length);for(var P=0,C=Array(R);P<R;P++)C[P]=q[P];return C}function fv(q,R){var P=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(P!=null){var C,O,H,M,F=[],Y=!0,K=!1;try{if(H=(P=P.call(q)).next,R===0){if(Object(P)!==P)return;Y=!1}else for(;!(Y=(C=H.call(P)).done)&&(F.push(C.value),F.length!==R);Y=!0);}catch(J){K=!0,O=J}finally{try{if(!Y&&P.return!=null&&(M=P.return(),Object(M)!==M))return}finally{if(K)throw O}}return F}}function Sv(q){if(Array.isArray(q))return q}var o0=[],uY=EY.default.keys();for($9=0;$9<uY.length;$9++)if(A9=uY[$9],L9=EY.default.get(A9),L9){pq=[].concat(L9.baseConcepts,L9.relatedConcepts);for(j9=0;j9<pq.length;j9++)if(cq=pq[j9],cq.module==="HTML")(function(){var q=cq.concept;if(q){var R=o0.find(function(H){return vv(H[0],q)}),P;if(R)P=R[1];else P=[];var C=!0;for(var O=0;O<P.length;O++)if(P[O]===A9){C=!1;break}if(C)P.push(A9);if(!R)o0.push([q,P])}})()}var A9,L9,pq,cq,j9,$9,V2={entries:function(){return o0},forEach:function(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var C=0,O=o0;C<O.length;C++){var H=F2(O[C],2),M=H[0],F=H[1];R.call(P,F,M,o0)}},get:function(R){var P=o0.find(function(C){return R.name===C[0].name&&yY(R.attributes,C[0].attributes)});return P&&P[1]},has:function(R){return!!V2.get(R)},keys:function(){return o0.map(function(R){var P=F2(R,1),C=P[0];return C})},values:function(){return o0.map(function(R){var P=F2(R,2),C=P[1];return C})}};function vv(q,R){return q.name===R.name&&Tv(q.constraints,R.constraints)&&yY(q.attributes,R.attributes)}function Tv(q,R){if(q===void 0&&R!==void 0)return!1;if(q!==void 0&&R===void 0)return!1;if(q!==void 0&&R!==void 0){if(q.length!==R.length)return!1;for(var P=0;P<q.length;P++)if(q[P]!==R[P])return!1}return!0}function yY(q,R){if(q===void 0&&R!==void 0)return!1;if(q!==void 0&&R===void 0)return!1;if(q!==void 0&&R!==void 0){if(q.length!==R.length)return!1;for(var P=0;P<q.length;P++){if(q[P].name!==R[P].name||q[P].value!==R[P].value)return!1;if(q[P].constraints===void 0&&R[P].constraints!==void 0)return!1;if(q[P].constraints!==void 0&&R[P].constraints===void 0)return!1;if(q[P].constraints!==void 0&&R[P].constraints!==void 0){if(q[P].constraints.length!==R[P].constraints.length)return!1;for(var C=0;C<q[P].constraints.length;C++)if(q[P].constraints[C]!==R[P].constraints[C])return!1}}}return!0}var Oe=bY.default=(0,jv.default)(V2,V2.entries())});var iY=G((pY)=>{Object.defineProperty(pY,"__esModule",{value:!0});pY.default=void 0;var Nv=xY(k1()),mY=xY(xq());function xY(q){return q&&q.__esModule?q:{default:q}}function J2(q,R){return kv(q)||Ev(q,R)||uv(q,R)||Dv()}function Dv(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
7
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uv(q,R){if(q){if(typeof q=="string")return lY(q,R);var P={}.toString.call(q).slice(8,-1);return P==="Object"&&q.constructor&&(P=q.constructor.name),P==="Map"||P==="Set"?Array.from(q):P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P)?lY(q,R):void 0}}function lY(q,R){(R==null||R>q.length)&&(R=q.length);for(var P=0,C=Array(R);P<R;P++)C[P]=q[P];return C}function Ev(q,R){var P=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(P!=null){var C,O,H,M,F=[],Y=!0,K=!1;try{if(H=(P=P.call(q)).next,R===0){if(Object(P)!==P)return;Y=!1}else for(;!(Y=(C=H.call(P)).done)&&(F.push(C.value),F.length!==R);Y=!0);}catch(J){K=!0,O=J}finally{try{if(!Y&&P.return!=null&&(M=P.return(),Object(M)!==M))return}finally{if(K)throw O}}return F}}function kv(q){if(Array.isArray(q))return q}var Y1=[],_Y=mY.default.keys();for(w9=0;w9<_Y.length;w9++)if(iq=_Y[w9],I9=mY.default.get(iq),f9=[],I9){rq=[].concat(I9.baseConcepts,I9.relatedConcepts);for(S9=0;S9<rq.length;S9++)if(dq=rq[S9],dq.module==="HTML"){if(aq=dq.concept,aq!=null)f9.push(aq)}if(f9.length>0)Y1.push([iq,f9])}var iq,I9,f9,rq,dq,aq,S9,w9,K2={entries:function(){return Y1},forEach:function(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var C=0,O=Y1;C<O.length;C++){var H=J2(O[C],2),M=H[0],F=H[1];R.call(P,F,M,Y1)}},get:function(R){var P=Y1.find(function(C){return C[0]===R?!0:!1});return P&&P[1]},has:function(R){return!!K2.get(R)},keys:function(){return Y1.map(function(R){var P=J2(R,1),C=P[0];return C})},values:function(){return Y1.map(function(R){var P=J2(R,2),C=P[1];return C})}},Me=pY.default=(0,Nv.default)(K2,K2.entries())});var W2=G((rY)=>{Object.defineProperty(rY,"__esModule",{value:!0});rY.roles=rY.roleElements=rY.elementRoles=rY.dom=rY.aria=void 0;var yv=v9(IR()),bv=v9(TR()),hv=v9(xq()),gv=v9(gY()),lv=v9(iY());function v9(q){return q&&q.__esModule?q:{default:q}}var Ze=rY.aria=yv.default,Ye=rY.dom=bv.default,Fe=rY.roles=hv.default,Ve=rY.elementRoles=gv.default,Je=rY.roleElements=lv.default});var oY=G((aY)=>{Object.defineProperty(aY,"__esModule",{value:!0});aY.default=void 0;function cv(){var q=this,R=0,P={"@@iterator":function(){return P},next:function(){if(R<q.length){var O=q[R];return R=R+1,{done:!1,value:O}}else return{done:!0}}};return P}var iv=cv;aY.default=iv});var T9=G((nY)=>{Object.defineProperty(nY,"__esModule",{value:!0});nY.default=av;var rv=dv(oY());function dv(q){return q&&q.__esModule?q:{default:q}}function X2(q){return X2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},X2(q)}function av(q,R){if(typeof Symbol==="function"&&X2(Symbol.iterator)==="symbol")Object.defineProperty(q,Symbol.iterator,{value:rv.default.bind(R)});return q}});var qF=G((tY)=>{Object.defineProperty(tY,"__esModule",{value:!0});tY.default=void 0;var ov={relatedConcepts:[{module:"HTML",concept:{name:"abbr"}}],type:"structure"},nv=ov;tY.default=nv});var CF=G((RF)=>{Object.defineProperty(RF,"__esModule",{value:!0});RF.default=void 0;var tv={relatedConcepts:[{module:"ARIA",concept:{name:"alertdialog"}}],type:"window"},ev=tv;RF.default=ev});var MF=G((OF)=>{Object.defineProperty(OF,"__esModule",{value:!0});OF.default=void 0;var qT={relatedConcepts:[{module:"ARIA",concept:{name:"alert"}}],type:"structure"},RT=qT;OF.default=RT});var YF=G((QF)=>{Object.defineProperty(QF,"__esModule",{value:!0});QF.default=void 0;var PT={relatedConcepts:[],type:"structure"},CT=PT;QF.default=CT});var JF=G((FF)=>{Object.defineProperty(FF,"__esModule",{value:!0});FF.default=void 0;var OT={relatedConcepts:[{module:"ARIA",concept:{name:"application"}}],type:"window"},HT=OT;FF.default=HT});var XF=G((KF)=>{Object.defineProperty(KF,"__esModule",{value:!0});KF.default=void 0;var MT={relatedConcepts:[{module:"ARIA",concept:{name:"article"}},{module:"HTML",concept:{name:"article"}}],type:"structure"},QT=MT;KF.default=QT});var BF=G((GF)=>{Object.defineProperty(GF,"__esModule",{value:!0});GF.default=void 0;var ZT={relatedConcepts:[{module:"HTML",concept:{name:"audio"}}],type:"widget"},YT=ZT;GF.default=YT});var AF=G((UF)=>{Object.defineProperty(UF,"__esModule",{value:!0});UF.default=void 0;var FT={relatedConcepts:[{module:"ARIA",concept:{name:"banner"}}],type:"structure"},VT=FT;UF.default=VT});var wF=G((LF)=>{Object.defineProperty(LF,"__esModule",{value:!0});LF.default=void 0;var JT={relatedConcepts:[{module:"HTML",concept:{name:"blockquote"}}],type:"structure"},KT=JT;LF.default=KT});var SF=G((IF)=>{Object.defineProperty(IF,"__esModule",{value:!0});IF.default=void 0;var WT={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-busy",value:"true"}]}}],type:"widget"},XT=WT;IF.default=XT});var NF=G((vF)=>{Object.defineProperty(vF,"__esModule",{value:!0});vF.default=void 0;var GT={relatedConcepts:[{module:"ARIA",concept:{name:"button"}},{module:"HTML",concept:{name:"button"}}],type:"widget"},zT=GT;vF.default=zT});var EF=G((DF)=>{Object.defineProperty(DF,"__esModule",{value:!0});DF.default=void 0;var BT={relatedConcepts:[{module:"HTML",concept:{name:"canvas"}}],type:"widget"},UT=BT;DF.default=UT});var bF=G((kF)=>{Object.defineProperty(kF,"__esModule",{value:!0});kF.default=void 0;var $T={relatedConcepts:[{module:"HTML",concept:{name:"caption"}}],type:"structure"},AT=$T;kF.default=AT});var lF=G((hF)=>{Object.defineProperty(hF,"__esModule",{value:!0});hF.default=void 0;var LT={relatedConcepts:[{module:"ARIA",concept:{name:"cell"}},{module:"ARIA",concept:{name:"gridcell"}},{module:"HTML",concept:{name:"td"}}],type:"widget"},jT=LT;hF.default=jT});var xF=G((_F)=>{Object.defineProperty(_F,"__esModule",{value:!0});_F.default=void 0;var wT={relatedConcepts:[{module:"ARIA",concept:{name:"checkbox"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"checkbox"}]}}],type:"widget"},IT=wT;_F.default=IT});var iF=G((pF)=>{Object.defineProperty(pF,"__esModule",{value:!0});pF.default=void 0;var fT={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"color"}]}}],type:"widget"},ST=fT;pF.default=ST});var aF=G((rF)=>{Object.defineProperty(rF,"__esModule",{value:!0});rF.default=void 0;var vT={relatedConcepts:[{module:"ARIA",concept:{name:"columnheader"}},{module:"HTML",concept:{name:"th"}}],type:"widget"},TT=vT;rF.default=TT});var nF=G((sF)=>{Object.defineProperty(sF,"__esModule",{value:!0});sF.default=void 0;var NT={relatedConcepts:[],type:"structure"},DT=NT;sF.default=DT});var qV=G((tF)=>{Object.defineProperty(tF,"__esModule",{value:!0});tF.default=void 0;var uT={relatedConcepts:[{module:"ARIA",concept:{name:"combobox"}},{module:"HTML",concept:{name:"select"}}],type:"widget"},ET=uT;tF.default=ET});var CV=G((RV)=>{Object.defineProperty(RV,"__esModule",{value:!0});RV.default=void 0;var kT={relatedConcepts:[{module:"ARIA",concept:{name:"complementary"}}],type:"structure"},yT=kT;RV.default=yT});var MV=G((OV)=>{Object.defineProperty(OV,"__esModule",{value:!0});OV.default=void 0;var bT={relatedConcepts:[{module:"ARIA",concept:{name:"structureinfo"}}],type:"structure"},hT=bT;OV.default=hT});var YV=G((QV)=>{Object.defineProperty(QV,"__esModule",{value:!0});QV.default=void 0;var gT={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"date"}]}}],type:"widget"},lT=gT;QV.default=lT});var JV=G((FV)=>{Object.defineProperty(FV,"__esModule",{value:!0});FV.default=void 0;var _T={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"datetime"}]}}],type:"widget"},mT=_T;FV.default=mT});var XV=G((KV)=>{Object.defineProperty(KV,"__esModule",{value:!0});KV.default=void 0;var xT={relatedConcepts:[{module:"HTML",concept:{name:"dfn"}}],type:"structure"},pT=xT;KV.default=pT});var BV=G((GV)=>{Object.defineProperty(GV,"__esModule",{value:!0});GV.default=void 0;var cT={relatedConcepts:[{module:"HTML",concept:{name:"dd"}}],type:"structure"},iT=cT;GV.default=iT});var AV=G((UV)=>{Object.defineProperty(UV,"__esModule",{value:!0});UV.default=void 0;var rT={relatedConcepts:[{module:"HTML",concept:{name:"dl"}}],type:"structure"},dT=rT;UV.default=dT});var wV=G((LV)=>{Object.defineProperty(LV,"__esModule",{value:!0});LV.default=void 0;var aT={relatedConcepts:[{module:"HTML",concept:{name:"dt"}}],type:"structure"},sT=aT;LV.default=sT});var SV=G((IV)=>{Object.defineProperty(IV,"__esModule",{value:!0});IV.default=void 0;var oT={relatedConcepts:[{module:"HTML",concept:{name:"details"}}],type:"structure"},nT=oT;IV.default=nT});var NV=G((vV)=>{Object.defineProperty(vV,"__esModule",{value:!0});vV.default=void 0;var tT={relatedConcepts:[{module:"ARIA",concept:{name:"dialog"}},{module:"HTML",concept:{name:"dialog"}}],type:"window"},eT=tT;vV.default=eT});var EV=G((DV)=>{Object.defineProperty(DV,"__esModule",{value:!0});DV.default=void 0;var qN={relatedConcepts:[{module:"ARIA",concept:{name:"directory"}},{module:"HTML",concept:{name:"dir"}}],type:"structure"},RN=qN;DV.default=RN});var bV=G((kV)=>{Object.defineProperty(kV,"__esModule",{value:!0});kV.default=void 0;var PN={relatedConcepts:[{module:"HTML",concept:{constraints:["scoped to a details element"],name:"summary"}}],type:"widget"},CN=PN;kV.default=CN});var lV=G((hV)=>{Object.defineProperty(hV,"__esModule",{value:!0});hV.default=void 0;var ON={relatedConcepts:[{module:"HTML",concept:{name:"div"}}],type:"generic"},HN=ON;hV.default=HN});var xV=G((_V)=>{Object.defineProperty(_V,"__esModule",{value:!0});_V.default=void 0;var MN={relatedConcepts:[{module:"ARIA",concept:{name:"document"}}],type:"structure"},QN=MN;_V.default=QN});var iV=G((pV)=>{Object.defineProperty(pV,"__esModule",{value:!0});pV.default=void 0;var ZN={relatedConcepts:[{module:"HTML",concept:{name:"embed"}}],type:"widget"},YN=ZN;pV.default=YN});var aV=G((rV)=>{Object.defineProperty(rV,"__esModule",{value:!0});rV.default=void 0;var FN={relatedConcepts:[{module:"ARIA",concept:{name:"feed"}}],type:"structure"},VN=FN;rV.default=VN});var nV=G((sV)=>{Object.defineProperty(sV,"__esModule",{value:!0});sV.default=void 0;var JN={relatedConcepts:[{module:"HTML",concept:{name:"figcaption"}}],type:"structure"},KN=JN;sV.default=KN});var qJ=G((tV)=>{Object.defineProperty(tV,"__esModule",{value:!0});tV.default=void 0;var WN={relatedConcepts:[{module:"ARIA",concept:{name:"figure"}},{module:"HTML",concept:{name:"figure"}}],type:"structure"},XN=WN;tV.default=XN});var CJ=G((RJ)=>{Object.defineProperty(RJ,"__esModule",{value:!0});RJ.default=void 0;var GN={relatedConcepts:[{module:"HTML",concept:{name:"footer"}}],type:"structure"},zN=GN;RJ.default=zN});var MJ=G((OJ)=>{Object.defineProperty(OJ,"__esModule",{value:!0});OJ.default=void 0;var BN={relatedConcepts:[{module:"ARIA",concept:{name:"form"}},{module:"HTML",concept:{name:"form"}}],type:"structure"},UN=BN;OJ.default=UN});var YJ=G((QJ)=>{Object.defineProperty(QJ,"__esModule",{value:!0});QJ.default=void 0;var $N={relatedConcepts:[{module:"ARIA",concept:{name:"grid"}}],type:"widget"},AN=$N;QJ.default=AN});var JJ=G((FJ)=>{Object.defineProperty(FJ,"__esModule",{value:!0});FJ.default=void 0;var LN={relatedConcepts:[{module:"ARIA",concept:{name:"group"}}],type:"structure"},jN=LN;FJ.default=jN});var XJ=G((KJ)=>{Object.defineProperty(KJ,"__esModule",{value:!0});KJ.default=void 0;var wN={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"},IN=wN;KJ.default=IN});var BJ=G((GJ)=>{Object.defineProperty(GJ,"__esModule",{value:!0});GJ.default=void 0;var fN={relatedConcepts:[],type:"window"},SN=fN;GJ.default=SN});var AJ=G((UJ)=>{Object.defineProperty(UJ,"__esModule",{value:!0});UJ.default=void 0;var vN={relatedConcepts:[{module:"HTML",concept:{name:"iframe"}}],type:"window"},TN=vN;UJ.default=TN});var wJ=G((LJ)=>{Object.defineProperty(LJ,"__esModule",{value:!0});LJ.default=void 0;var NN={relatedConcepts:[],type:"structure"},DN=NN;LJ.default=DN});var SJ=G((IJ)=>{Object.defineProperty(IJ,"__esModule",{value:!0});IJ.default=void 0;var uN={relatedConcepts:[],type:"widget"},EN=uN;IJ.default=EN});var NJ=G((vJ)=>{Object.defineProperty(vJ,"__esModule",{value:!0});vJ.default=void 0;var kN={relatedConcepts:[{module:"HTML",concept:{name:"img",attributes:[{name:"usemap"}]}}],type:"structure"},yN=kN;vJ.default=yN});var EJ=G((DJ)=>{Object.defineProperty(DJ,"__esModule",{value:!0});DJ.default=void 0;var bN={relatedConcepts:[{module:"ARIA",concept:{name:"img"}},{module:"HTML",concept:{name:"img"}}],type:"structure"},hN=bN;DJ.default=hN});var bJ=G((kJ)=>{Object.defineProperty(kJ,"__esModule",{value:!0});kJ.default=void 0;var gN={relatedConcepts:[{module:"HTML",concept:{name:"input"}}],type:"widget"},lN=gN;kJ.default=lN});var lJ=G((hJ)=>{Object.defineProperty(hJ,"__esModule",{value:!0});hJ.default=void 0;var _N={relatedConcepts:[{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"time"}]}}],type:"widget"},mN=_N;hJ.default=mN});var xJ=G((_J)=>{Object.defineProperty(_J,"__esModule",{value:!0});_J.default=void 0;var xN={relatedConcepts:[{module:"HTML",concept:{name:"label"}}],type:"structure"},pN=xN;_J.default=pN});var iJ=G((pJ)=>{Object.defineProperty(pJ,"__esModule",{value:!0});pJ.default=void 0;var cN={relatedConcepts:[{module:"HTML",concept:{name:"legend"}}],type:"structure"},iN=cN;pJ.default=iN});var aJ=G((rJ)=>{Object.defineProperty(rJ,"__esModule",{value:!0});rJ.default=void 0;var rN={relatedConcepts:[{module:"HTML",concept:{name:"br"}}],type:"structure"},dN=rN;rJ.default=dN});var nJ=G((sJ)=>{Object.defineProperty(sJ,"__esModule",{value:!0});sJ.default=void 0;var aN={relatedConcepts:[{module:"ARIA",concept:{name:"link"}},{module:"HTML",concept:{name:"a",attributes:[{name:"href"}]}}],type:"widget"},sN=aN;sJ.default=sN});var qK=G((tJ)=>{Object.defineProperty(tJ,"__esModule",{value:!0});tJ.default=void 0;var oN={relatedConcepts:[{module:"ARIA",concept:{name:"option"}},{module:"HTML",concept:{name:"option"}}],type:"widget"},nN=oN;tJ.default=nN});var CK=G((RK)=>{Object.defineProperty(RK,"__esModule",{value:!0});RK.default=void 0;var tN={relatedConcepts:[{module:"ARIA",concept:{name:"listbox"}},{module:"HTML",concept:{name:"datalist"}},{module:"HTML",concept:{name:"select"}}],type:"widget"},eN=tN;RK.default=eN});var MK=G((OK)=>{Object.defineProperty(OK,"__esModule",{value:!0});OK.default=void 0;var qD={relatedConcepts:[{module:"ARIA",concept:{name:"listitem"}},{module:"HTML",concept:{name:"li"}}],type:"structure"},RD=qD;OK.default=RD});var YK=G((QK)=>{Object.defineProperty(QK,"__esModule",{value:!0});QK.default=void 0;var PD={relatedConcepts:[],type:"structure"},CD=PD;QK.default=CD});var JK=G((FK)=>{Object.defineProperty(FK,"__esModule",{value:!0});FK.default=void 0;var OD={relatedConcepts:[{module:"ARIA",concept:{name:"list"}},{module:"HTML",concept:{name:"ul"}},{module:"HTML",concept:{name:"ol"}}],type:"structure"},HD=OD;FK.default=HD});var XK=G((KK)=>{Object.defineProperty(KK,"__esModule",{value:!0});KK.default=void 0;var MD={relatedConcepts:[{module:"ARIA",concept:{name:"log"}}],type:"structure"},QD=MD;KK.default=QD});var BK=G((GK)=>{Object.defineProperty(GK,"__esModule",{value:!0});GK.default=void 0;var ZD={relatedConcepts:[{module:"ARIA",concept:{name:"main"}},{module:"HTML",concept:{name:"main"}}],type:"structure"},YD=ZD;GK.default=YD});var AK=G((UK)=>{Object.defineProperty(UK,"__esModule",{value:!0});UK.default=void 0;var FD={relatedConcepts:[{module:"HTML",concept:{name:"mark"}}],type:"structure"},VD=FD;UK.default=VD});var wK=G((LK)=>{Object.defineProperty(LK,"__esModule",{value:!0});LK.default=void 0;var JD={relatedConcepts:[{module:"ARIA",concept:{name:"marquee"}},{module:"HTML",concept:{name:"marquee"}}],type:"structure"},KD=JD;LK.default=KD});var SK=G((IK)=>{Object.defineProperty(IK,"__esModule",{value:!0});IK.default=void 0;var WD={relatedConcepts:[{module:"ARIA",concept:{name:"math"}}],type:"structure"},XD=WD;IK.default=XD});var NK=G((vK)=>{Object.defineProperty(vK,"__esModule",{value:!0});vK.default=void 0;var GD={relatedConcepts:[{module:"ARIA",concept:{name:"menubar"}}],type:"structure"},zD=GD;vK.default=zD});var EK=G((DK)=>{Object.defineProperty(DK,"__esModule",{value:!0});DK.default=void 0;var BD={relatedConcepts:[],type:"widget"},UD=BD;DK.default=UD});var bK=G((kK)=>{Object.defineProperty(kK,"__esModule",{value:!0});kK.default=void 0;var $D={relatedConcepts:[{module:"ARIA",concept:{name:"menuitem"}},{module:"HTML",concept:{name:"menuitem"}}],type:"widget"},AD=$D;kK.default=AD});var lK=G((hK)=>{Object.defineProperty(hK,"__esModule",{value:!0});hK.default=void 0;var LD={relatedConcepts:[{module:"ARIA",concept:{name:"menuitemcheckbox"}}],type:"widget"},jD=LD;hK.default=jD});var xK=G((_K)=>{Object.defineProperty(_K,"__esModule",{value:!0});_K.default=void 0;var wD={relatedConcepts:[{module:"ARIA",concept:{name:"menuitemradio"}}],type:"widget"},ID=wD;_K.default=ID});var iK=G((pK)=>{Object.defineProperty(pK,"__esModule",{value:!0});pK.default=void 0;var fD={relatedConcepts:[],type:"widget"},SD=fD;pK.default=SD});var aK=G((rK)=>{Object.defineProperty(rK,"__esModule",{value:!0});rK.default=void 0;var vD={relatedConcepts:[],type:"widget"},TD=vD;rK.default=TD});var nK=G((sK)=>{Object.defineProperty(sK,"__esModule",{value:!0});sK.default=void 0;var ND={relatedConcepts:[{module:"ARIA",concept:{name:"menu"}},{module:"HTML",concept:{name:"menu"}}],type:"structure"},DD=ND;sK.default=DD});var qW=G((tK)=>{Object.defineProperty(tK,"__esModule",{value:!0});tK.default=void 0;var uD={relatedConcepts:[{module:"HTML",concept:{name:"meter"}}],type:"structure"},ED=uD;tK.default=ED});var CW=G((RW)=>{Object.defineProperty(RW,"__esModule",{value:!0});RW.default=void 0;var kD={relatedConcepts:[{module:"ARIA",concept:{name:"navigation"}},{module:"HTML",concept:{name:"nav"}}],type:"structure"},yD=kD;RW.default=yD});var MW=G((OW)=>{Object.defineProperty(OW,"__esModule",{value:!0});OW.default=void 0;var bD={relatedConcepts:[{module:"ARIA",concept:{name:"none"}}],type:"structure"},hD=bD;OW.default=hD});var YW=G((QW)=>{Object.defineProperty(QW,"__esModule",{value:!0});QW.default=void 0;var gD={relatedConcepts:[{module:"ARIA",concept:{name:"note"}}],type:"structure"},lD=gD;QW.default=lD});var JW=G((FW)=>{Object.defineProperty(FW,"__esModule",{value:!0});FW.default=void 0;var _D={relatedConcepts:[],type:"structure"},mD=_D;FW.default=mD});var XW=G((KW)=>{Object.defineProperty(KW,"__esModule",{value:!0});KW.default=void 0;var xD={relatedConcepts:[{module:"HTML",concept:{name:"p"}}],type:"structure"},pD=xD;KW.default=pD});var BW=G((GW)=>{Object.defineProperty(GW,"__esModule",{value:!0});GW.default=void 0;var cD={relatedConcepts:[],type:"widget"},iD=cD;GW.default=iD});var AW=G((UW)=>{Object.defineProperty(UW,"__esModule",{value:!0});UW.default=void 0;var rD={relatedConcepts:[{module:"HTML",concept:{name:"pre"}}],type:"structure"},dD=rD;UW.default=dD});var wW=G((LW)=>{Object.defineProperty(LW,"__esModule",{value:!0});LW.default=void 0;var aD={relatedConcepts:[{module:"ARIA",concept:{name:"presentation"}}],type:"structure"},sD=aD;LW.default=sD});var SW=G((IW)=>{Object.defineProperty(IW,"__esModule",{value:!0});IW.default=void 0;var oD={relatedConcepts:[{module:"ARIA",concept:{name:"progressbar"}},{module:"HTML",concept:{name:"progress"}}],type:"structure"},nD=oD;IW.default=nD});var NW=G((vW)=>{Object.defineProperty(vW,"__esModule",{value:!0});vW.default=void 0;var tD={relatedConcepts:[{module:"ARIA",concept:{name:"radio"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"radio"}]}}],type:"widget"},eD=tD;vW.default=eD});var EW=G((DW)=>{Object.defineProperty(DW,"__esModule",{value:!0});DW.default=void 0;var qu={relatedConcepts:[{module:"ARIA",concept:{name:"radiogroup"}}],type:"structure"},Ru=qu;DW.default=Ru});var bW=G((kW)=>{Object.defineProperty(kW,"__esModule",{value:!0});kW.default=void 0;var Pu={relatedConcepts:[{module:"ARIA",concept:{name:"region"}}],type:"structure"},Cu=Pu;kW.default=Cu});var lW=G((hW)=>{Object.defineProperty(hW,"__esModule",{value:!0});hW.default=void 0;var Ou={relatedConcepts:[],type:"structure"},Hu=Ou;hW.default=Hu});var xW=G((_W)=>{Object.defineProperty(_W,"__esModule",{value:!0});_W.default=void 0;var Mu={relatedConcepts:[{module:"ARIA",concept:{name:"rowheader"}},{module:"HTML",concept:{name:"th",attributes:[{name:"scope",value:"row"}]}}],type:"widget"},Qu=Mu;_W.default=Qu});var iW=G((pW)=>{Object.defineProperty(pW,"__esModule",{value:!0});pW.default=void 0;var Zu={relatedConcepts:[{module:"ARIA",concept:{name:"row"}},{module:"HTML",concept:{name:"tr"}}],type:"structure"},Yu=Zu;pW.default=Yu});var aW=G((rW)=>{Object.defineProperty(rW,"__esModule",{value:!0});rW.default=void 0;var Fu={relatedConcepts:[{module:"HTML",concept:{name:"ruby"}}],type:"structure"},Vu=Fu;rW.default=Vu});var nW=G((sW)=>{Object.defineProperty(sW,"__esModule",{value:!0});sW.default=void 0;var Ju={relatedConcepts:[],type:"structure"},Ku=Ju;sW.default=Ku});var qX=G((tW)=>{Object.defineProperty(tW,"__esModule",{value:!0});tW.default=void 0;var Wu={relatedConcepts:[],type:"structure"},Xu=Wu;tW.default=Xu});var CX=G((RX)=>{Object.defineProperty(RX,"__esModule",{value:!0});RX.default=void 0;var Gu={relatedConcepts:[{module:"ARIA",concept:{name:"scrollbar"}}],type:"widget"},zu=Gu;RX.default=zu});var MX=G((OX)=>{Object.defineProperty(OX,"__esModule",{value:!0});OX.default=void 0;var Bu={relatedConcepts:[],type:"structure"},Uu=Bu;OX.default=Uu});var YX=G((QX)=>{Object.defineProperty(QX,"__esModule",{value:!0});QX.default=void 0;var $u={relatedConcepts:[{module:"ARIA",concept:{name:"search"}}],type:"structure"},Au=$u;QX.default=Au});var JX=G((FX)=>{Object.defineProperty(FX,"__esModule",{value:!0});FX.default=void 0;var Lu={relatedConcepts:[{module:"ARIA",concept:{name:"searchbox"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"search"}]}}],type:"widget"},ju=Lu;FX.default=ju});var XX=G((KX)=>{Object.defineProperty(KX,"__esModule",{value:!0});KX.default=void 0;var wu={relatedConcepts:[{module:"ARIA",concept:{name:"slider"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"range"}]}}],type:"widget"},Iu=wu;KX.default=Iu});var BX=G((GX)=>{Object.defineProperty(GX,"__esModule",{value:!0});GX.default=void 0;var fu={relatedConcepts:[],type:"structure"},Su=fu;GX.default=Su});var AX=G((UX)=>{Object.defineProperty(UX,"__esModule",{value:!0});UX.default=void 0;var vu={relatedConcepts:[{module:"ARIA",concept:{name:"spinbutton"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"number"}]}}],type:"widget"},Tu=vu;UX.default=Tu});var wX=G((LX)=>{Object.defineProperty(LX,"__esModule",{value:!0});LX.default=void 0;var Nu={relatedConcepts:[],type:"structure"},Du=Nu;LX.default=Du});var SX=G((IX)=>{Object.defineProperty(IX,"__esModule",{value:!0});IX.default=void 0;var uu={relatedConcepts:[{module:"ARIA",concept:{name:"separator"}}],type:"widget"},Eu=uu;IX.default=Eu});var NX=G((vX)=>{Object.defineProperty(vX,"__esModule",{value:!0});vX.default=void 0;var ku={relatedConcepts:[],type:"structure"},yu=ku;vX.default=yu});var EX=G((DX)=>{Object.defineProperty(DX,"__esModule",{value:!0});DX.default=void 0;var bu={relatedConcepts:[{module:"ARIA",concept:{name:"status"}}],type:"structure"},hu=bu;DX.default=hu});var bX=G((kX)=>{Object.defineProperty(kX,"__esModule",{value:!0});kX.default=void 0;var gu={relatedConcepts:[],type:"structure"},lu=gu;kX.default=lu});var lX=G((hX)=>{Object.defineProperty(hX,"__esModule",{value:!0});hX.default=void 0;var _u={relatedConcepts:[{module:"ARIA",concept:{name:"switch"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"checkbox"}]}}],type:"widget"},mu=_u;hX.default=mu});var xX=G((_X)=>{Object.defineProperty(_X,"__esModule",{value:!0});_X.default=void 0;var xu={relatedConcepts:[{module:"ARIA",concept:{name:"tablist"}}],type:"structure"},pu=xu;_X.default=pu});var iX=G((pX)=>{Object.defineProperty(pX,"__esModule",{value:!0});pX.default=void 0;var cu={relatedConcepts:[{module:"ARIA",concept:{name:"tab"}}],type:"widget"},iu=cu;pX.default=iu});var aX=G((rX)=>{Object.defineProperty(rX,"__esModule",{value:!0});rX.default=void 0;var ru={relatedConcepts:[],type:"structure"},du=ru;rX.default=du});var nX=G((sX)=>{Object.defineProperty(sX,"__esModule",{value:!0});sX.default=void 0;var au={relatedConcepts:[{module:"ARIA",concept:{name:"table"}},{module:"HTML",concept:{name:"table"}}],type:"structure"},su=au;sX.default=su});var qG=G((tX)=>{Object.defineProperty(tX,"__esModule",{value:!0});tX.default=void 0;var ou={relatedConcepts:[{module:"ARIA",concept:{name:"tablist"}}],type:"structure"},nu=ou;tX.default=nu});var CG=G((RG)=>{Object.defineProperty(RG,"__esModule",{value:!0});RG.default=void 0;var tu={relatedConcepts:[{module:"ARIA",concept:{name:"tabpanel"}}],type:"structure"},eu=tu;RG.default=eu});var MG=G((OG)=>{Object.defineProperty(OG,"__esModule",{value:!0});OG.default=void 0;var qE={relatedConcepts:[{module:"ARIA",concept:{name:"term"}}],type:"structure"},RE=qE;OG.default=RE});var YG=G((QG)=>{Object.defineProperty(QG,"__esModule",{value:!0});QG.default=void 0;var PE={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-multiline",value:"true"}],name:"textbox"}},{module:"HTML",concept:{name:"textarea"}}],type:"widget"},CE=PE;QG.default=CE});var JG=G((FG)=>{Object.defineProperty(FG,"__esModule",{value:!0});FG.default=void 0;var OE={relatedConcepts:[{module:"ARIA",concept:{name:"textbox"}},{module:"HTML",concept:{name:"input"}},{module:"HTML",concept:{name:"input",attributes:[{name:"type",value:"text"}]}}],type:"widget"},HE=OE;FG.default=HE});var XG=G((KG)=>{Object.defineProperty(KG,"__esModule",{value:!0});KG.default=void 0;var ME={relatedConcepts:[{module:"HTML",concept:{name:"time"}}],type:"structure"},QE=ME;KG.default=QE});var BG=G((GG)=>{Object.defineProperty(GG,"__esModule",{value:!0});GG.default=void 0;var ZE={relatedConcepts:[{module:"ARIA",concept:{name:"timer"}}],type:"structure"},YE=ZE;GG.default=YE});var AG=G((UG)=>{Object.defineProperty(UG,"__esModule",{value:!0});UG.default=void 0;var FE={relatedConcepts:[{module:"ARIA",concept:{attributes:[{name:"aria-pressed"}]}}],type:"widget"},VE=FE;UG.default=VE});var wG=G((LG)=>{Object.defineProperty(LG,"__esModule",{value:!0});LG.default=void 0;var JE={relatedConcepts:[{module:"ARIA",concept:{name:"toolbar"}}],type:"structure"},KE=JE;LG.default=KE});var SG=G((IG)=>{Object.defineProperty(IG,"__esModule",{value:!0});IG.default=void 0;var WE={relatedConcepts:[{module:"ARIA",concept:{name:"tree"}}],type:"widget"},XE=WE;IG.default=XE});var NG=G((vG)=>{Object.defineProperty(vG,"__esModule",{value:!0});vG.default=void 0;var GE={relatedConcepts:[{module:"ARIA",concept:{name:"treegrid"}}],type:"widget"},zE=GE;vG.default=zE});var EG=G((DG)=>{Object.defineProperty(DG,"__esModule",{value:!0});DG.default=void 0;var BE={relatedConcepts:[{module:"ARIA",concept:{name:"treeitem"}}],type:"widget"},UE=BE;DG.default=UE});var bG=G((kG)=>{Object.defineProperty(kG,"__esModule",{value:!0});kG.default=void 0;var $E={relatedConcepts:[{module:"ARIA",concept:{name:"tooltip"}}],type:"structure"},AE=$E;kG.default=AE});var lG=G((hG)=>{Object.defineProperty(hG,"__esModule",{value:!0});hG.default=void 0;var LE={relatedConcepts:[{module:"HTML",concept:{name:"video"}}],type:"widget"},jE=LE;hG.default=jE});var xG=G((_G)=>{Object.defineProperty(_G,"__esModule",{value:!0});_G.default=void 0;var wE={relatedConcepts:[],type:"structure"},IE=wE;_G.default=IE});var iG=G((pG)=>{Object.defineProperty(pG,"__esModule",{value:!0});pG.default=void 0;var fE={relatedConcepts:[],type:"window"},SE=fE;pG.default=SE});var N9=G((dG)=>{Object.defineProperty(dG,"__esModule",{value:!0});dG.default=void 0;var vE=v(T9()),TE=v(qF()),NE=v(CF()),DE=v(MF()),uE=v(YF()),EE=v(JF()),kE=v(XF()),yE=v(BF()),bE=v(AF()),hE=v(wF()),gE=v(SF()),lE=v(NF()),_E=v(EF()),mE=v(bF()),xE=v(lF()),pE=v(xF()),cE=v(iF()),iE=v(aF()),rE=v(nF()),dE=v(qV()),aE=v(CV()),sE=v(MV()),oE=v(YV()),nE=v(JV()),tE=v(XV()),eE=v(BV()),qk=v(AV()),Rk=v(wV()),Pk=v(SV()),Ck=v(NV()),Ok=v(EV()),Hk=v(bV()),Mk=v(lV()),Qk=v(xV()),Zk=v(iV()),Yk=v(aV()),Fk=v(nV()),Vk=v(qJ()),Jk=v(CJ()),Kk=v(MJ()),Wk=v(YJ()),Xk=v(JJ()),Gk=v(XJ()),zk=v(BJ()),Bk=v(AJ()),Uk=v(wJ()),$k=v(SJ()),Ak=v(NJ()),Lk=v(EJ()),jk=v(bJ()),wk=v(lJ()),Ik=v(xJ()),fk=v(iJ()),Sk=v(aJ()),vk=v(nJ()),Tk=v(qK()),Nk=v(CK()),Dk=v(MK()),uk=v(YK()),Ek=v(JK()),kk=v(XK()),yk=v(BK()),bk=v(AK()),hk=v(wK()),gk=v(SK()),lk=v(NK()),_k=v(EK()),mk=v(bK()),xk=v(lK()),pk=v(xK()),ck=v(iK()),ik=v(aK()),rk=v(nK()),dk=v(qW()),ak=v(CW()),sk=v(MW()),ok=v(YW()),nk=v(JW()),tk=v(XW()),ek=v(BW()),qy=v(AW()),Ry=v(wW()),Py=v(SW()),Cy=v(NW()),Oy=v(EW()),Hy=v(bW()),My=v(lW()),Qy=v(xW()),Zy=v(iW()),Yy=v(aW()),Fy=v(nW()),Vy=v(qX()),Jy=v(CX()),Ky=v(MX()),Wy=v(YX()),Xy=v(JX()),Gy=v(XX()),zy=v(BX()),By=v(AX()),Uy=v(wX()),$y=v(SX()),Ay=v(NX()),Ly=v(EX()),jy=v(bX()),wy=v(lX()),Iy=v(xX()),fy=v(iX()),Sy=v(aX()),vy=v(nX()),Ty=v(qG()),Ny=v(CG()),Dy=v(MG()),uy=v(YG()),Ey=v(JG()),ky=v(XG()),yy=v(BG()),by=v(AG()),hy=v(wG()),gy=v(SG()),ly=v(NG()),_y=v(EG()),my=v(bG()),xy=v(lG()),py=v(xG()),cy=v(iG());function v(q){return q&&q.__esModule?q:{default:q}}function G2(q,R){return ay(q)||dy(q,R)||ry(q,R)||iy()}function iy(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
8
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ry(q,R){if(!q)return;if(typeof q==="string")return rG(q,R);var P=Object.prototype.toString.call(q).slice(8,-1);if(P==="Object"&&q.constructor)P=q.constructor.name;if(P==="Map"||P==="Set")return Array.from(q);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return rG(q,R)}function rG(q,R){if(R==null||R>q.length)R=q.length;for(var P=0,C=Array(R);P<R;P++)C[P]=q[P];return C}function dy(q,R){var P=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(P==null)return;var C=[],O=!0,H=!1,M,F;try{for(P=P.call(q);!(O=(M=P.next()).done);O=!0)if(C.push(M.value),R&&C.length===R)break}catch(Y){H=!0,F=Y}finally{try{if(!O&&P.return!=null)P.return()}finally{if(H)throw F}}return C}function ay(q){if(Array.isArray(q))return q}var h1=[["AbbrRole",TE.default],["AlertDialogRole",NE.default],["AlertRole",DE.default],["AnnotationRole",uE.default],["ApplicationRole",EE.default],["ArticleRole",kE.default],["AudioRole",yE.default],["BannerRole",bE.default],["BlockquoteRole",hE.default],["BusyIndicatorRole",gE.default],["ButtonRole",lE.default],["CanvasRole",_E.default],["CaptionRole",mE.default],["CellRole",xE.default],["CheckBoxRole",pE.default],["ColorWellRole",cE.default],["ColumnHeaderRole",iE.default],["ColumnRole",rE.default],["ComboBoxRole",dE.default],["ComplementaryRole",aE.default],["ContentInfoRole",sE.default],["DateRole",oE.default],["DateTimeRole",nE.default],["DefinitionRole",tE.default],["DescriptionListDetailRole",eE.default],["DescriptionListRole",qk.default],["DescriptionListTermRole",Rk.default],["DetailsRole",Pk.default],["DialogRole",Ck.default],["DirectoryRole",Ok.default],["DisclosureTriangleRole",Hk.default],["DivRole",Mk.default],["DocumentRole",Qk.default],["EmbeddedObjectRole",Zk.default],["FeedRole",Yk.default],["FigcaptionRole",Fk.default],["FigureRole",Vk.default],["FooterRole",Jk.default],["FormRole",Kk.default],["GridRole",Wk.default],["GroupRole",Xk.default],["HeadingRole",Gk.default],["IframePresentationalRole",zk.default],["IframeRole",Bk.default],["IgnoredRole",Uk.default],["ImageMapLinkRole",$k.default],["ImageMapRole",Ak.default],["ImageRole",Lk.default],["InlineTextBoxRole",jk.default],["InputTimeRole",wk.default],["LabelRole",Ik.default],["LegendRole",fk.default],["LineBreakRole",Sk.default],["LinkRole",vk.default],["ListBoxOptionRole",Tk.default],["ListBoxRole",Nk.default],["ListItemRole",Dk.default],["ListMarkerRole",uk.default],["ListRole",Ek.default],["LogRole",kk.default],["MainRole",yk.default],["MarkRole",bk.default],["MarqueeRole",hk.default],["MathRole",gk.default],["MenuBarRole",lk.default],["MenuButtonRole",_k.default],["MenuItemRole",mk.default],["MenuItemCheckBoxRole",xk.default],["MenuItemRadioRole",pk.default],["MenuListOptionRole",ck.default],["MenuListPopupRole",ik.default],["MenuRole",rk.default],["MeterRole",dk.default],["NavigationRole",ak.default],["NoneRole",sk.default],["NoteRole",ok.default],["OutlineRole",nk.default],["ParagraphRole",tk.default],["PopUpButtonRole",ek.default],["PreRole",qy.default],["PresentationalRole",Ry.default],["ProgressIndicatorRole",Py.default],["RadioButtonRole",Cy.default],["RadioGroupRole",Oy.default],["RegionRole",Hy.default],["RootWebAreaRole",My.default],["RowHeaderRole",Qy.default],["RowRole",Zy.default],["RubyRole",Yy.default],["RulerRole",Fy.default],["ScrollAreaRole",Vy.default],["ScrollBarRole",Jy.default],["SeamlessWebAreaRole",Ky.default],["SearchRole",Wy.default],["SearchBoxRole",Xy.default],["SliderRole",Gy.default],["SliderThumbRole",zy.default],["SpinButtonRole",By.default],["SpinButtonPartRole",Uy.default],["SplitterRole",$y.default],["StaticTextRole",Ay.default],["StatusRole",Ly.default],["SVGRootRole",jy.default],["SwitchRole",wy.default],["TabGroupRole",Iy.default],["TabRole",fy.default],["TableHeaderContainerRole",Sy.default],["TableRole",vy.default],["TabListRole",Ty.default],["TabPanelRole",Ny.default],["TermRole",Dy.default],["TextAreaRole",uy.default],["TextFieldRole",Ey.default],["TimeRole",ky.default],["TimerRole",yy.default],["ToggleButtonRole",by.default],["ToolbarRole",hy.default],["TreeRole",gy.default],["TreeGridRole",ly.default],["TreeItemRole",_y.default],["UserInterfaceTooltipRole",my.default],["VideoRole",xy.default],["WebAreaRole",py.default],["WindowRole",cy.default]],z2={entries:function(){return h1},forEach:function(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var C=0,O=h1;C<O.length;C++){var H=G2(O[C],2),M=H[0],F=H[1];R.call(P,F,M,h1)}},get:function(R){var P=h1.find(function(C){return C[0]===R?!0:!1});return P&&P[1]},has:function(R){return!!z2.get(R)},keys:function(){return h1.map(function(R){var P=G2(R,1),C=P[0];return C})},values:function(){return h1.map(function(R){var P=G2(R,2),C=P[1];return C})}},sy=(0,vE.default)(z2,z2.entries());dG.default=sy});var Rz=G((eG)=>{Object.defineProperty(eG,"__esModule",{value:!0});eG.default=void 0;var oy=nG(T9()),ny=nG(N9());function nG(q){return q&&q.__esModule?q:{default:q}}function D9(q,R){return qb(q)||ey(q,R)||tG(q,R)||ty()}function ty(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
9
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ey(q,R){var P=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(P==null)return;var C=[],O=!0,H=!1,M,F;try{for(P=P.call(q);!(O=(M=P.next()).done);O=!0)if(C.push(M.value),R&&C.length===R)break}catch(Y){H=!0,F=Y}finally{try{if(!O&&P.return!=null)P.return()}finally{if(H)throw F}}return C}function qb(q){if(Array.isArray(q))return q}function Rb(q,R){var P=typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(!P){if(Array.isArray(q)||(P=tG(q))||R&&q&&typeof q.length==="number"){if(P)q=P;var C=0,O=function(){};return{s:O,n:function(){if(C>=q.length)return{done:!0};return{done:!1,value:q[C++]}},e:function(K){throw K},f:O}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
10
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H=!0,M=!1,F;return{s:function(){P=P.call(q)},n:function(){var K=P.next();return H=K.done,K},e:function(K){M=!0,F=K},f:function(){try{if(!H&&P.return!=null)P.return()}finally{if(M)throw F}}}}function tG(q,R){if(!q)return;if(typeof q==="string")return sG(q,R);var P=Object.prototype.toString.call(q).slice(8,-1);if(P==="Object"&&q.constructor)P=q.constructor.name;if(P==="Map"||P==="Set")return Array.from(q);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return sG(q,R)}function sG(q,R){if(R==null||R>q.length)R=q.length;for(var P=0,C=Array(R);P<R;P++)C[P]=q[P];return C}var w0=[],sq=Rb(ny.default.entries()),oG;try{B2=function(){var R=D9(oG.value,2),P=R[0],C=R[1],O=C.relatedConcepts;if(Array.isArray(O))O.forEach(function(H){if(H.module==="HTML"){var M=H.concept;if(M){var F=w0.findIndex(function(Y){var K=D9(Y,1),J=K[0];return J===P});if(F===-1)w0.push([P,[]]),F=w0.length-1;w0[F][1].push(M)}}})};for(sq.s();!(oG=sq.n()).done;)B2()}catch(q){sq.e(q)}finally{sq.f()}var B2,U2={entries:function(){return w0},forEach:function(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var C=0,O=w0;C<O.length;C++){var H=D9(O[C],2),M=H[0],F=H[1];R.call(P,F,M,w0)}},get:function(R){var P=w0.find(function(C){return C[0]===R?!0:!1});return P&&P[1]},has:function(R){return!!U2.get(R)},keys:function(){return w0.map(function(R){var P=D9(R,1),C=P[0];return C})},values:function(){return w0.map(function(R){var P=D9(R,2),C=P[1];return C})}},Pb=(0,oy.default)(U2,U2.entries());eG.default=Pb});var Zz=G((Mz)=>{Object.defineProperty(Mz,"__esModule",{value:!0});Mz.default=void 0;var Cb=Oz(T9()),Ob=Oz(N9());function Oz(q){return q&&q.__esModule?q:{default:q}}function u9(q,R){return Qb(q)||Mb(q,R)||Hz(q,R)||Hb()}function Hb(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
11
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mb(q,R){var P=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(P==null)return;var C=[],O=!0,H=!1,M,F;try{for(P=P.call(q);!(O=(M=P.next()).done);O=!0)if(C.push(M.value),R&&C.length===R)break}catch(Y){H=!0,F=Y}finally{try{if(!O&&P.return!=null)P.return()}finally{if(H)throw F}}return C}function Qb(q){if(Array.isArray(q))return q}function Zb(q,R){var P=typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(!P){if(Array.isArray(q)||(P=Hz(q))||R&&q&&typeof q.length==="number"){if(P)q=P;var C=0,O=function(){};return{s:O,n:function(){if(C>=q.length)return{done:!0};return{done:!1,value:q[C++]}},e:function(K){throw K},f:O}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
12
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H=!0,M=!1,F;return{s:function(){P=P.call(q)},n:function(){var K=P.next();return H=K.done,K},e:function(K){M=!0,F=K},f:function(){try{if(!H&&P.return!=null)P.return()}finally{if(M)throw F}}}}function Hz(q,R){if(!q)return;if(typeof q==="string")return Pz(q,R);var P=Object.prototype.toString.call(q).slice(8,-1);if(P==="Object"&&q.constructor)P=q.constructor.name;if(P==="Map"||P==="Set")return Array.from(q);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return Pz(q,R)}function Pz(q,R){if(R==null||R>q.length)R=q.length;for(var P=0,C=Array(R);P<R;P++)C[P]=q[P];return C}var I0=[],oq=Zb(Ob.default.entries()),Cz;try{$2=function(){var R=u9(Cz.value,2),P=R[0],C=R[1],O=C.relatedConcepts;if(Array.isArray(O))O.forEach(function(H){if(H.module==="ARIA"){var M=H.concept;if(M){var F=I0.findIndex(function(Y){var K=u9(Y,1),J=K[0];return J===P});if(F===-1)I0.push([P,[]]),F=I0.length-1;I0[F][1].push(M)}}})};for(oq.s();!(Cz=oq.n()).done;)$2()}catch(q){oq.e(q)}finally{oq.f()}var $2,A2={entries:function(){return I0},forEach:function(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var C=0,O=I0;C<O.length;C++){var H=u9(O[C],2),M=H[0],F=H[1];R.call(P,F,M,I0)}},get:function(R){var P=I0.find(function(C){return C[0]===R?!0:!1});return P&&P[1]},has:function(R){return!!A2.get(R)},keys:function(){return I0.map(function(R){var P=u9(R,1),C=P[0];return C})},values:function(){return I0.map(function(R){var P=u9(R,2),C=P[1];return C})}},Yb=(0,Cb.default)(A2,A2.entries());Mz.default=Yb});var Xz=G((Kz)=>{Object.defineProperty(Kz,"__esModule",{value:!0});Kz.default=void 0;var Fb=Vz(N9()),Vb=Vz(T9());function Vz(q){return q&&q.__esModule?q:{default:q}}function tq(q,R){return Wb(q)||Kb(q,R)||Jz(q,R)||Jb()}function Jb(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
13
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kb(q,R){var P=q==null?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(P==null)return;var C=[],O=!0,H=!1,M,F;try{for(P=P.call(q);!(O=(M=P.next()).done);O=!0)if(C.push(M.value),R&&C.length===R)break}catch(Y){H=!0,F=Y}finally{try{if(!O&&P.return!=null)P.return()}finally{if(H)throw F}}return C}function Wb(q){if(Array.isArray(q))return q}function Xb(q,R){var P=typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(!P){if(Array.isArray(q)||(P=Jz(q))||R&&q&&typeof q.length==="number"){if(P)q=P;var C=0,O=function(){};return{s:O,n:function(){if(C>=q.length)return{done:!0};return{done:!1,value:q[C++]}},e:function(K){throw K},f:O}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
14
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H=!0,M=!1,F;return{s:function(){P=P.call(q)},n:function(){var K=P.next();return H=K.done,K},e:function(K){M=!0,F=K},f:function(){try{if(!H&&P.return!=null)P.return()}finally{if(M)throw F}}}}function Jz(q,R){if(!q)return;if(typeof q==="string")return Yz(q,R);var P=Object.prototype.toString.call(q).slice(8,-1);if(P==="Object"&&q.constructor)P=q.constructor.name;if(P==="Map"||P==="Set")return Array.from(q);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return Yz(q,R)}function Yz(q,R){if(R==null||R>q.length)R=q.length;for(var P=0,C=Array(R);P<R;P++)C[P]=q[P];return C}var Z0=[],nq=Xb(Fb.default.entries()),Fz;try{L2=function(){var R=tq(Fz.value,2),P=R[0],C=R[1],O=C.relatedConcepts;if(Array.isArray(O))O.forEach(function(H){if(H.module==="HTML"){var M=H.concept;if(M!=null){var F=JSON.stringify(M),Y,K=0;for(;K<Z0.length;K++){var J=Z0[K][0];if(JSON.stringify(J)===F){Y=Z0[K][1];break}}if(!Array.isArray(Y))Y=[];var $=Y.findIndex(function(U){return U===P});if($===-1)Y.push(P);if(K<Z0.length)Z0.splice(K,1,[M,Y]);else Z0.push([M,Y])}}})};for(nq.s();!(Fz=nq.n()).done;)L2()}catch(q){nq.e(q)}finally{nq.f()}var L2;function Gb(q,R){if(q===void 0&&R!==void 0)return!1;if(q!==void 0&&R===void 0)return!1;if(q!==void 0&&R!==void 0){if(q.length!=R.length)return!1;for(var P=0;P<q.length;P++)if(R[P].name!==q[P].name||R[P].value!==q[P].value)return!1}return!0}var j2={entries:function(){return Z0},forEach:function(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var C=0,O=Z0;C<O.length;C++){var H=tq(O[C],2),M=H[0],F=H[1];R.call(P,F,M,Z0)}},get:function(R){var P=Z0.find(function(C){return R.name===C[0].name&&Gb(R.attributes,C[0].attributes)});return P&&P[1]},has:function(R){return!!j2.get(R)},keys:function(){return Z0.map(function(R){var P=tq(R,1),C=P[0];return C})},values:function(){return Z0.map(function(R){var P=tq(R,2),C=P[1];return C})}},zb=(0,Vb.default)(j2,j2.entries());Kz.default=zb});var w2=G((Gz)=>{Object.defineProperty(Gz,"__esModule",{value:!0});Gz.elementAXObjects=Gz.AXObjects=Gz.AXObjectRoles=Gz.AXObjectElements=void 0;var Bb=eq(Rz()),Ub=eq(Zz()),$b=eq(N9()),Ab=eq(Xz());function eq(q){return q&&q.__esModule?q:{default:q}}var Lb=Bb.default;Gz.AXObjectElements=Lb;var jb=Ub.default;Gz.AXObjectRoles=jb;var wb=$b.default;Gz.AXObjects=wb;var Ib=Ab.default;Gz.elementAXObjects=Ib});var bz=G((S2,v2)=>{(function(q,R){typeof S2==="object"&&typeof v2<"u"?v2.exports=R():typeof define==="function"&&define.amd?define(R):(q=typeof globalThis<"u"?globalThis:q||self,q.resolveURI=R())})(S2,function(){let q=/^[\w+.-]+:\/\//,R=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,P=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function C(f){return q.test(f)}function O(f){return f.startsWith("//")}function H(f){return f.startsWith("/")}function M(f){return f.startsWith("file:")}function F(f){return/^[.?#]/.test(f)}function Y(f){let D=R.exec(f);return J(D[1],D[2]||"",D[3],D[4]||"",D[5]||"/",D[6]||"",D[7]||"")}function K(f){let D=P.exec(f),y=D[2];return J("file:","",D[1]||"","",H(y)?y:"/"+y,D[3]||"",D[4]||"")}function J(f,D,y,z,S,N,d){return{scheme:f,user:D,host:y,port:z,path:S,query:N,hash:d,type:7}}function $(f){if(O(f)){let y=Y("http:"+f);return y.scheme="",y.type=6,y}if(H(f)){let y=Y("http://foo.com"+f);return y.scheme="",y.host="",y.type=5,y}if(M(f))return K(f);if(C(f))return Y(f);let D=Y("http://foo.com/"+f);return D.scheme="",D.host="",D.type=f?f.startsWith("?")?3:f.startsWith("#")?2:4:1,D}function U(f){if(f.endsWith("/.."))return f;let D=f.lastIndexOf("/");return f.slice(0,D+1)}function B(f,D){if(T(D,D.type),f.path==="/")f.path=D.path;else f.path=U(D.path)+f.path}function T(f,D){let y=D<=4,z=f.path.split("/"),S=1,N=0,d=!1;for(let Q=1;Q<z.length;Q++){let Z=z[Q];if(!Z){d=!0;continue}if(d=!1,Z===".")continue;if(Z===".."){if(N)d=!0,N--,S--;else if(y)z[S++]=Z;continue}z[S++]=Z,N++}let k="";for(let Q=1;Q<S;Q++)k+="/"+z[Q];if(!k||d&&!k.endsWith("/.."))k+="/";f.path=k}function w(f,D){if(!f&&!D)return"";let y=$(f),z=y.type;if(D&&z!==7){let N=$(D),d=N.type;switch(z){case 1:y.hash=N.hash;case 2:y.query=N.query;case 3:case 4:B(y,N);case 5:y.user=N.user,y.host=N.host,y.port=N.port;case 6:y.scheme=N.scheme}if(d>z)z=d}T(y,z);let S=y.query+y.hash;switch(z){case 2:case 3:return S;case 4:{let N=y.path.slice(1);if(!N)return S||".";if(F(D||f)&&!F(N))return"./"+N+S;return N+S}case 5:return y.path+S;default:return y.scheme+"//"+y.user+y.host+y.port+y.path+S}}return w})});function gU(q){return q}var o8;(function(q){q.start="/**",q.nostart="/***",q.delim="*",q.end="*/"})(o8=o8||(o8={}));function D6(q){return/^\s+$/.test(q)}function F5(q){let R=q.match(/\r+$/);return R==null?["",q]:[q.slice(-R[0].length),q.slice(0,-R[0].length)]}function T0(q){let R=q.match(/^\s+/);return R==null?["",q]:[q.slice(0,R[0].length),q.slice(R[0].length)]}function V5(q){return q.split(/\n/)}function J5(q={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},q)}function u6(q={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},q)}var lU=/^@\S+/;function E6({fence:q="```"}={}){let R=_U(q),P=(C,O)=>R(C)?!O:O;return function(O){let H=[[]],M=!1;for(let F of O){if(lU.test(F.tokens.description)&&!M)H.push([F]);else H[H.length-1].push(F);M=P(F.tokens.description,M)}return H}}function _U(q){if(typeof q==="string")return(R)=>R.split(q).length%2===0;return q}function k6({startLine:q=0,markers:R=o8}={}){let P=null,C=q;return function(H){let M=H,F=u6();if([F.lineEnd,M]=F5(M),[F.start,M]=T0(M),P===null&&M.startsWith(R.start)&&!M.startsWith(R.nostart))P=[],F.delimiter=M.slice(0,R.start.length),M=M.slice(R.start.length),[F.postDelimiter,M]=T0(M);if(P===null)return C++,null;let Y=M.trimRight().endsWith(R.end);if(F.delimiter===""&&M.startsWith(R.delim)&&!M.startsWith(R.end))F.delimiter=R.delim,M=M.slice(R.delim.length),[F.postDelimiter,M]=T0(M);if(Y){let K=M.trimRight();F.end=M.slice(K.length-R.end.length),M=K.slice(0,-R.end.length)}if(F.description=M,P.push({number:C,source:H,tokens:F}),C++,Y){let K=P.slice();return P=null,K}return null}}function y6({tokenizers:q}){return function(P){var C;let O=J5({source:P});for(let H of q)if(O=H(O),(C=O.problems[O.problems.length-1])===null||C===void 0?void 0:C.critical)break;return O}}function d9(){return(q)=>{let{tokens:R}=q.source[0],P=R.description.match(/\s*(@(\S+))(\s*)/);if(P===null)return q.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:q.source[0].number,critical:!0}),q;return R.tag=P[1],R.postTag=P[3],R.description=R.description.slice(P[0].length),q.tag=P[2],q}}function a9(q="compact"){let R=xU(q);return(P)=>{let C=0,O=[];for(let[F,{tokens:Y}]of P.source.entries()){let K="";if(F===0&&Y.description[0]!=="{")return P;for(let J of Y.description){if(J==="{")C++;if(J==="}")C--;if(K+=J,C===0)break}if(O.push([Y,K]),C===0)break}if(C!==0)return P.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:P.source[0].number,critical:!0}),P;let H=[],M=O[0][0].postDelimiter.length;for(let[F,[Y,K]]of O.entries()){if(Y.type=K,F>0)Y.type=Y.postDelimiter.slice(M)+K,Y.postDelimiter=Y.postDelimiter.slice(0,M);[Y.postType,Y.description]=T0(Y.description.slice(K.length)),H.push(Y.type)}return H[0]=H[0].slice(1),H[H.length-1]=H[H.length-1].slice(0,-1),P.type=R(H),P}}var mU=(q)=>q.trim();function xU(q){if(q==="compact")return(R)=>R.map(mU).join("");else if(q==="preserve")return(R)=>R.join(`
15
- `);else return q}var pU=(q)=>q&&q.startsWith('"')&&q.endsWith('"');function s9(){let q=(R,{tokens:P},C)=>P.type===""?R:C;return(R)=>{let{tokens:P}=R.source[R.source.reduce(q,0)],C=P.description.trimLeft(),O=C.split('"');if(O.length>1&&O[0]===""&&O.length%2===1)return R.name=O[1],P.name=`"${O[1]}"`,[P.postName,P.description]=T0(C.slice(P.name.length)),R;let H=0,M="",F=!1,Y;for(let J of C){if(H===0&&D6(J))break;if(J==="[")H++;if(J==="]")H--;M+=J}if(H!==0)return R.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:R.source[0].number,critical:!0}),R;let K=M;if(M[0]==="["&&M[M.length-1]==="]"){F=!0,M=M.slice(1,-1);let J=M.split("=");if(M=J[0].trim(),J[1]!==void 0)Y=J.slice(1).join("=").trim();if(M==="")return R.problems.push({code:"spec:name:empty-name",message:"empty name",line:R.source[0].number,critical:!0}),R;if(Y==="")return R.problems.push({code:"spec:name:empty-default",message:"empty default value",line:R.source[0].number,critical:!0}),R;if(!pU(Y)&&/=(?!>)/.test(Y))return R.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:R.source[0].number,critical:!0}),R}if(R.optional=F,R.name=M,P.name=K,Y!==void 0)R.default=Y;return[P.postName,P.description]=T0(C.slice(P.name.length)),R}}function o9(q="compact",R=o8){let P=b6(q);return(C)=>{return C.description=P(C.source,R),C}}function b6(q){if(q==="compact")return cU;if(q==="preserve")return dU;return q}function cU(q,R=o8){return q.map(({tokens:{description:P}})=>P.trim()).filter((P)=>P!=="").join(" ")}var iU=(q,{tokens:R},P)=>R.type===""?q:P,rU=({tokens:q})=>(q.delimiter===""?q.start:q.postDelimiter.slice(1))+q.description;function dU(q,R=o8){if(q.length===0)return"";if(q[0].tokens.description===""&&q[0].tokens.delimiter===R.start)q=q.slice(1);let P=q[q.length-1];if(P!==void 0&&P.tokens.description===""&&P.tokens.end.endsWith(R.end))q=q.slice(0,-1);return q=q.slice(q.reduce(iU,0)),q.map(rU).join(`
16
- `)}function h6({startLine:q=0,fence:R="```",spacing:P="compact",markers:C=o8,tokenizers:O=[d9(),a9(P),s9(),o9(P)]}={}){if(q<0||q%1>0)throw Error("Invalid startLine");let H=k6({startLine:q,markers:C}),M=E6({fence:R}),F=y6({tokenizers:O}),Y=b6(P);return function(K){let J=[];for(let $ of V5(K)){let U=H($);if(U===null)continue;let B=M(U),T=B.slice(1).map(F);J.push({description:Y(B[0],C),tags:T,source:U,problems:T.reduce((w,f)=>w.concat(f.problems),[])})}return J}}function aU(q){return q.start+q.delimiter+q.postDelimiter+q.tag+q.postTag+q.type+q.postType+q.name+q.postName+q.description+q.end+q.lineEnd}function g6(){return(q)=>q.source.map(({tokens:R})=>aU(R)).join(`
17
- `)}var sU={line:0,start:0,delimiter:0,postDelimiter:0,tag:0,postTag:0,name:0,postName:0,type:0,postType:0,description:0,end:0,lineEnd:0};var I_=Object.keys(sU);function $1(q,R={}){return h6(R)(q)}var i_=g6();class n9{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(q)=>this.replacement=q}}replace(q,R,P,C){if(q&&R)if(P!=null)q[R][P]=C;else q[R]=C}remove(q,R,P){if(q&&R)if(P!==null&&P!==void 0)q[R].splice(P,1);else delete q[R]}}class _6 extends n9{constructor(q,R){super();this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(P)=>this.replacement=P},this.enter=q,this.leave=R}visit(q,R,P,C){if(q){if(this.enter){let H=this.should_skip,M=this.should_remove,F=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,q,R,P,C),this.replacement)q=this.replacement,this.replace(R,P,C,q);if(this.should_remove)this.remove(R,P,C);let Y=this.should_skip,K=this.should_remove;if(this.should_skip=H,this.should_remove=M,this.replacement=F,Y)return q;if(K)return null}let O;for(O in q){let H=q[O];if(H&&typeof H==="object"){if(Array.isArray(H)){let M=H;for(let F=0;F<M.length;F+=1){let Y=M[F];if(K5(Y)){if(!this.visit(Y,q,O,F))F--}}}else if(K5(H))this.visit(H,q,O,null)}}if(this.leave){let H=this.replacement,M=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,q,R,P,C),this.replacement)q=this.replacement,this.replace(R,P,C,q);if(this.should_remove)this.remove(R,P,C);let F=this.should_remove;if(this.replacement=H,this.should_remove=M,F)return null}}return q}}function K5(q){return q!==null&&typeof q==="object"&&"type"in q&&typeof q.type==="string"}function N0(q,{enter:R,leave:P}){return new _6(R,P).visit(q,null)}function U8(q,R,P){let C=P._,O=!1;function H(F,{next:Y,state:K}){Y(K)}function M(F,Y,K){if(O)return;if(!F.type)return;let J,$={},U={path:Y,state:K,next:(T=K)=>{Y.push(F);for(let w in F){if(w==="type")continue;let f=F[w];if(f&&typeof f==="object")if(Array.isArray(f)){let D={},y=f.length,z=!1;for(let S=0;S<y;S++){let N=f[S];if(N&&typeof N==="object"){let d=M(N,Y,T);if(d)D[S]=d,z=!0}}if(z)$[w]=f.map((S,N)=>D[N]??S)}else{let D=M(f,Y,T);if(D)$[w]=D}}if(Y.pop(),Object.keys($).length>0)return W5(F,$)},stop:()=>{O=!0},visit:(T,w=K)=>{Y.push(F);let f=M(T,Y,w)??T;return Y.pop(),f}},B=P[F.type]??H;if(C){let T;if(J=C(F,{...U,next:(w=K)=>{return K=w,T=B(F,{...U,state:w}),T}}),!J&&T)J=T}else J=B(F,U);if(!J){if(Object.keys($).length>0)J=W5(F,$)}if(J)return J}return M(q,[],R)??q}function W5(q,R){let P={},C=Object.getOwnPropertyDescriptors(q);for(let O in C)Object.defineProperty(P,O,C[O]);for(let O in R)P[O]=R[O];return P}var t9=/^\r?\n/;var m6=/^[ \t\r\n]+/;var x6=/[ \t\r\n]+$/,A1=/[^ \t\r\n]/;var e9=/[^\n]/g,qq=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;var X5="[",G5="[!";var z5="]";var Mm=Symbol("uninitialized"),Qm=Symbol("filename"),Zm=Symbol("hmr");var p6="http://www.w3.org/2000/svg",c6="http://www.w3.org/1998/Math/MathML",B5=["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 r1(q,R){if(R.length===0)return null;let C=new A5(R).get(q);return C&&C[0][0]>0.7?C[0][1]:null}var i6=2,r6=3;function oU(q,R){if(q===null&&R===null)throw"Trying to compare two null values";if(q===null||R===null)return 0;return q=String(q),R=String(R),1-nU(q,R)/Math.max(q.length,R.length)}function nU(q,R){let P=[],C=0;for(let O=0;O<=R.length;O++)for(let H=0;H<=q.length;H++){let M;if(O&&H)if(q.charAt(H-1)===R.charAt(O-1))M=C;else M=Math.min(P[H],P[H-1],C)+1;else M=O+H;C=P[H],P[H]=M}return P.pop()}var tU=/[^\w, ]+/;function eU(q,R=2){let P="-"+q.toLowerCase().replace(tU,"")+"-",C=R-P.length,O=[];if(C>0)for(let H=0;H<C;++H)q+="-";for(let H=0;H<P.length-R+1;++H)O.push(P.slice(H,H+R));return O}function U5(q,R=2){let P={},C=eU(q,R),O=0;for(O;O<C.length;++O)if(C[O]in P)P[C[O]]+=1;else P[C[O]]=1;return P}function $5(q,R){return R[0]-q[0]}class A5{exact_set={};match_dict={};items={};constructor(q){for(let R=i6;R<r6+1;++R)this.items[R]=[];for(let R=0;R<q.length;++R)this.add(q[R])}add(q){if(q.toLowerCase()in this.exact_set)return!1;let P=i6;for(P;P<r6+1;++P)this._add(q,P)}_add(q,R){let P=q.toLowerCase(),C=this.items[R]||[],O=C.length;C.push(0);let H=U5(P,R),M=0,F,Y;for(F in H)if(Y=H[F],M+=Math.pow(Y,2),F in this.match_dict)this.match_dict[F].push([O,Y]);else this.match_dict[F]=[[O,Y]];let K=Math.sqrt(M);C[O]=[K,P],this.items[R]=C,this.exact_set[P]=q}get(q){let R=q.toLowerCase(),P=this.exact_set[R];if(P)return[[1,P]];for(let C=r6;C>=i6;--C){let O=this.__get(q,C);if(O.length>0)return O}return null}__get(q,R){let P=q.toLowerCase(),C={},O=U5(P,R),H=this.items[R],M=0,F,Y,K,J,$;for(F in O)if(Y=O[F],M+=Math.pow(Y,2),F in this.match_dict)for(K=0;K<this.match_dict[F].length;++K)if(J=this.match_dict[F][K][0],$=this.match_dict[F][K][1],J in C)C[J]+=Y*$;else C[J]=Y*$;let U=Math.sqrt(M),B=[],T;for(let D in C)T=C[D],B.push([T/(U*H[D][0]),H[D][1]]);B.sort($5);let w=[],f=Math.min(50,B.length);for(let D=0;D<f;++D)w.push([oU(B[D][1],P),B[D][1]]);B=w,B.sort($5),w=[];for(let D=0;D<B.length;++D)if(B[D][0]===B[0][0])w.push([B[D][0],this.exact_set[B[D][1]]]);return w}}function q$(q,R){return q.start<=R&&R<q.end}function d6(q,R={}){let{offsetLine:P=0,offsetColumn:C=0}=R,O=0,H=q.split(`
18
- `).map((Y,K)=>{let J=O+Y.length+1,$={start:O,end:J,line:K};return O=J,$}),M=0;function F(Y,K){if(typeof Y==="string")Y=q.indexOf(Y,K??0);if(Y===-1)return;let J=H[M],$=Y>=J.end?1:-1;while(J){if(q$(J,Y))return{line:P+J.line,column:C+Y-J.start,character:Y};M+=$,J=H[M]}}return F}var R$=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function D0(q){return R$.includes(q)||q.toLowerCase()==="!doctype"}var P$=["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 d1(q){return P$.includes(q)}var C$=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var Jm=[...C$,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var O$=["$state","$state.raw","$derived","$derived.by"],H$=[...O$,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];function a1(q){return H$.includes(q)}var L5=/^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9.\-_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}]*)?$/u;var Rq=[],U0,L1="(unknown)",Pq="<unknown>",s1,Cq=[],B8,j5=!1,w8;function Oq(q){s1=q,Cq=s1.split(`
19
- `);let R=d6(s1,{offsetLine:1});w8=(P)=>{let C=R(P);if(!C)throw Error("An impossible situation occurred");return C}}var a6,s6=[],o6=new Map;function n6(q){B8=!1,j5=!1,Pq=L1,s1="",Cq=[],U0=(q.filename??L1).replace(/\\/g,"/"),a6=q.warning??(()=>!0),Rq=[]}var M$=/^\t+/;function t6(q){return q.replace(M$,(R)=>R.split("\t").join(" "))}function Q$(q,R){let P=Cq,C=Math.max(0,q-2),O=Math.min(q+3,P.length),H=String(O+1).length;return P.slice(C,O).map((M,F)=>{let Y=C+F===q,K=String(F+C+1).padStart(H," ");if(Y){let J=" ".repeat(H+2+t6(M.slice(0,R)).length)+"^";return`${K}: ${t6(M)}
20
- ${J}`}return`${K}: ${t6(M)}`}).join(`
21
- `)}class n1{name="CompileDiagnostic";constructor(q,R,P){if(this.code=q,this.message=R,U0!==L1)this.filename=U0;if(P){if(this.position=P,this.start=w8(P[0]),this.end=w8(P[1]),this.start&&this.end)this.frame=Q$(this.start.line-1,this.end.column)}}toString(){let q=`${this.code}: ${this.message}`;if(this.filename){if(q+=`
1
+ var t4=Object.defineProperty;var e4=(q)=>q;function q3(q,Q){this[q]=e4.bind(null,Q)}var Q3=(q,Q)=>{for(var Z in Q)t4(q,Z,{get:Q[Z],enumerable:!0,configurable:!0,set:q3.bind(Q,Z)})};function Z3(q){return q}class a1{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(q)=>this.replacement=q}}replace(q,Q,Z,Y){if(q&&Q)if(Z!=null)q[Q][Z]=Y;else q[Q]=Y}remove(q,Q,Z){if(q&&Q)if(Z!==null&&Z!==void 0)q[Q].splice(Z,1);else delete q[Q]}}class a0 extends a1{constructor(q,Q){super();this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(Z)=>this.replacement=Z},this.enter=q,this.leave=Q}visit(q,Q,Z,Y){if(q){if(this.enter){let V=this.should_skip,K=this.should_remove,W=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,q,Q,Z,Y),this.replacement)q=this.replacement,this.replace(Q,Z,Y,q);if(this.should_remove)this.remove(Q,Z,Y);let G=this.should_skip,R=this.should_remove;if(this.should_skip=V,this.should_remove=K,this.replacement=W,G)return q;if(R)return null}let H;for(H in q){let V=q[H];if(V&&typeof V==="object"){if(Array.isArray(V)){let K=V;for(let W=0;W<K.length;W+=1){let G=K[W];if(_6(G)){if(!this.visit(G,q,H,W))W--}}}else if(_6(V))this.visit(V,q,H,null)}}if(this.leave){let V=this.replacement,K=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,q,Q,Z,Y),this.replacement)q=this.replacement,this.replace(Q,Z,Y,q);if(this.should_remove)this.remove(Q,Z,Y);let W=this.should_remove;if(this.replacement=V,this.should_remove=K,W)return null}}return q}}function _6(q){return q!==null&&typeof q==="object"&&"type"in q&&typeof q.type==="string"}function d8(q,{enter:Q,leave:Z}){return new a0(Q,Z).visit(q,null)}function f8(q){return typeof q==="object"&&q!==null}function x6(q){return f8(q)&&q.type==="VariableDeclaration"&&Array.isArray(q.declarations)}function K1(q){return f8(q)&&q.type==="Literal"}function u8(q){return f8(q)&&q.type==="Identifier"&&typeof q.name==="string"}function u6(q){return f8(q)&&q.type==="MemberExpression"}function r1(q){return f8(q)&&q.type==="ObjectExpression"&&Array.isArray(q.properties)}function Y3(q){return f8(q)&&q.type==="CallExpression"}function m8(q,Q){if(!Y3(q))return!1;return!!q.callee&&f8(q.callee)&&q.callee.type==="Identifier"&&q.callee.name===Q}function e8(q){if(f8(q)&&(q.type==="TSAsExpression"||q.type==="TSSatisfiesExpression")&&"expression"in q)return e8(q.expression);return q}function m6(q){if(f8(q)&&(q.type==="TSAsExpression"||q.type==="TSSatisfiesExpression")&&"typeAnnotation"in q)return q.typeAnnotation;return}function H3(q){return f8(q)&&q.type==="NewExpression"}function r0(q,Q){if(!H3(q))return!1;return!!q.callee&&f8(q.callee)&&q.callee.type==="Identifier"&&q.callee.name===Q}var l6={a:"HTMLAnchorElement",abbr:"HTMLElement",address:"HTMLElement",applet:"HTMLUnknownElement",area:"HTMLAreaElement",article:"HTMLElement",aside:"HTMLElement",audio:"HTMLAudioElement",b:"HTMLElement",base:"HTMLBaseElement",basefont:"HTMLElement",bdi:"HTMLElement",bdo:"HTMLElement",blockquote:"HTMLQuoteElement",body:"HTMLBodyElement",br:"HTMLBRElement",button:"HTMLButtonElement",canvas:"HTMLCanvasElement",caption:"HTMLTableCaptionElement",cite:"HTMLElement",code:"HTMLElement",col:"HTMLTableColElement",colgroup:"HTMLTableColElement",data:"HTMLDataElement",datalist:"HTMLDataListElement",dd:"HTMLElement",del:"HTMLModElement",details:"HTMLDetailsElement",dfn:"HTMLElement",dialog:"HTMLDialogElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",dl:"HTMLDListElement",dt:"HTMLElement",em:"HTMLElement",embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement",figcaption:"HTMLElement",figure:"HTMLElement",font:"HTMLFontElement",footer:"HTMLElement",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"HTMLFrameSetElement",h1:"HTMLHeadingElement",h2:"HTMLHeadingElement",h3:"HTMLHeadingElement",h4:"HTMLHeadingElement",h5:"HTMLHeadingElement",h6:"HTMLHeadingElement",head:"HTMLHeadElement",header:"HTMLElement",hgroup:"HTMLElement",hr:"HTMLHRElement",html:"HTMLHtmlElement",i:"HTMLElement",iframe:"HTMLIFrameElement",img:"HTMLImageElement",input:"HTMLInputElement",ins:"HTMLModElement",kbd:"HTMLElement",label:"HTMLLabelElement",legend:"HTMLLegendElement",li:"HTMLLIElement",link:"HTMLLinkElement",main:"HTMLElement",map:"HTMLMapElement",mark:"HTMLElement",marquee:"HTMLMarqueeElement",menu:"HTMLMenuElement",meta:"HTMLMetaElement",meter:"HTMLMeterElement",nav:"HTMLElement",noscript:"HTMLElement",object:"HTMLObjectElement",ol:"HTMLOListElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output:"HTMLOutputElement",p:"HTMLParagraphElement",param:"HTMLParamElement",picture:"HTMLPictureElement",pre:"HTMLPreElement",progress:"HTMLProgressElement",q:"HTMLQuoteElement",rp:"HTMLElement",rt:"HTMLElement",ruby:"HTMLElement",s:"HTMLElement",samp:"HTMLElement",script:"HTMLScriptElement",search:"HTMLElement",section:"HTMLElement",select:"HTMLSelectElement",slot:"HTMLSlotElement",small:"HTMLElement",source:"HTMLSourceElement",span:"HTMLSpanElement",strong:"HTMLElement",style:"HTMLStyleElement",sub:"HTMLElement",summary:"HTMLElement",sup:"HTMLElement",table:"HTMLTableElement",tbody:"HTMLTableSectionElement",td:"HTMLTableCellElement",template:"HTMLTemplateElement",textarea:"HTMLTextAreaElement",tfoot:"HTMLTableSectionElement",th:"HTMLTableCellElement",thead:"HTMLTableSectionElement",time:"HTMLTimeElement",title:"HTMLTitleElement",tr:"HTMLTableRowElement",track:"HTMLTrackElement",u:"HTMLElement",ul:"HTMLUListElement",var:"HTMLElement",video:"HTMLVideoElement",wbr:"HTMLElement"};function J3(q){return q in l6}function c6(q){if(J3(q))return l6[q];return"HTMLElement"}var t1=Symbol("sveld.parsedComponentTypeScriptMetadata");function t0(q){return q[t1]}var K3=/\w/;function V3(q,Q){let Z=q.trim();if(!Z.startsWith("{")||!Z.endsWith("}"))return;let Y=Z.slice(1,-1),H=[],V=0,K="";for(let W of Y)if(W==="{"||W==="<"||W==="("||W==="[")V++,K+=W;else if(W==="}"||W===">"||W===")"||W==="]")V--,K+=W;else if((W===";"||W===",")&&V===0)H.push(K.trim()),K="";else K+=W;if(K.trim())H.push(K.trim());for(let W of H){if(!W.startsWith(Q))continue;let G=W.slice(Q.length);if(G.length>0&&K3.test(G[0]))continue;let R=G.trimStart();if(R.startsWith("?"))R=R.slice(1).trimStart();if(R.startsWith(":"))return R.slice(1).trim()}return}function e1(q,Q,Z){let Y=Z;if(Y.computed||Y.object?.type!=="Identifier"||Y.property?.type!=="Identifier")return;let H=Y.object.name,V=Y.property.name;if(!H||!V)return;if(q.wholePropsLocals.has(H))return Q.getPropTypeByLocalOrPublic(V);let K=Q.getPropTypeByLocalOrPublic(H)??Q.findVariableTypeAndDescription(H)?.type;if(!K)return;return V3(K,V)}function e0(){return{syntaxMode:"legacy",scriptLanguage:void 0,source:void 0,parsed:void 0,runesOptionOverride:void 0,sourceLineStartOffsetsCache:void 0,rest_props:void 0,extends:void 0,customElementTag:void 0,componentComment:void 0,componentCommentSource:void 0,generics:null,scriptGenericsAttribute:void 0,diagnosticRecords:[],componentFilePath:"",props:new Map,moduleExports:new Map,propLocalToPublicName:new Map,reactive_vars:new Set,funcDecls:new Map,vars:new Set,runesPropsDeclarationMetadataByDeclaratorStart:new Map,typedRunesPropsDeclarations:[],explicitPropTypesByName:new Map,explicitVariableTypesByName:new Map,typeImportBindingsByLocalName:new Map,localTypeDeclarationsByName:new Map,wholePropsLocals:new Set,restPropLocals:new Set,componentScope:new Map,scopeDeclarations:new WeakMap,activeScopes:[],slots:new Map,snippetPropLocals:new Set,deferredSlotBlockGenerics:[],events:new Map,eventDescriptions:new Map,forwardedEvents:new Map,jsDocEventNames:new Set,jsDocEventSources:new Map,bindings:new Map,contexts:new Map,typedefs:new Map,variableInfoCache:new Map,variableInfoCacheBuilt:!1}}function p8(q,Q,Z,Y,H){q.diagnosticRecords.push({component:q.componentFilePath,kind:Q,name:Z,message:Y,...H?{source:H}:{}})}var X3=/[\r\n]+/g;function W3(q){if(q.sourceLineStartOffsetsCache)return q.sourceLineStartOffsetsCache;let Q=[0];if(q.source){for(let Z=0;Z<q.source.length;Z++)if(q.source[Z]===`
2
+ `)Q.push(Z+1)}return q.sourceLineStartOffsetsCache=Q,Q}function i6(q,Q){if(!q.source||Q<0||Q>q.source.length)return;let Z=W3(q),Y=0,H=Z.length-1;while(Y<=H){let V=Math.floor((Y+H)/2),K=Z[V],W=Z[V+1]??Number.POSITIVE_INFINITY;if(Q<K)H=V-1;else if(Q>=W)Y=V+1;else return{line:V+1,column:Q-K}}return}function q0(q,Q,Z){if(Q===void 0||Z===void 0||Z<Q)return;let Y=i6(q,Q),H=i6(q,Z);if(!Y||!H)return;return{start:Y,end:H}}function V8(q,Q){if(!Q||typeof Q!=="object")return;let Z="start"in Q&&typeof Q.start==="number"?Q.start:void 0,Y="end"in Q&&typeof Q.end==="number"?Q.end:void 0;return q0(q,Z,Y)}function q9(q,Q,Z,Y){if(!Z||Z.length===0||Y===void 0)return;let H=[...Z];while(H.length>1){let M=H[H.length-1];if(M.tokens.tag||!M.source.trim().endsWith("*/"))break;H.pop()}let V=Y;for(let M=0;M<H[0].number-1;M++)V+=Q[M]?.source.length??0,V+=1;let K=H[0],W=K.source.indexOf(K.tokens.tag??""),G=V+Math.max(W,0),R=Y,O=H[H.length-1],$=O.number;for(let M=0;M<$-1;M++)R+=Q[M]?.source.length??0,R+=1;return R+=O.source.length,q0(q,G,R)}function J8(q,Q,Z){return q.source?.slice(Q,Z)}function d6(q,Q){if(!Q||typeof Q!=="object")return;let Z="start"in Q&&typeof Q.start==="number"?Q.start:void 0,Y="end"in Q&&typeof Q.end==="number"?Q.end:void 0;if(Z===void 0||Y===void 0)return;return J8(q,Z,Y)?.replace(X3," ")}function I8(q){return q===void 0||q===""?void 0:q}var G3=/[\r\n]+/g;function w1(q,Q,Z,Y){if(I8(Z)===void 0)return;if(q.trackPropLocalName(Z),Q.props.has(Z)){let H=Q.props.get(Z);Q.props.set(Z,{...H,...Y})}else Q.props.set(Z,Y)}function V1(q,Q,Z,Y=0){let H,V,K=!1;if(!Z||typeof Z!=="object"||!("type"in Z))return{value:H,type:V,isFunction:K};let W=F3(q,Q,Z);if(Z.type==="ObjectExpression"||Z.type==="BinaryExpression"||Z.type==="ArrayExpression"||Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression"){let G=Z;if("start"in G&&"end"in G&&typeof G.start==="number"&&typeof G.end==="number")H=J8(Q,G.start,G.end)?.replace(G3," ");if(V=H,K=Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression",Z.type==="BinaryExpression"){let R=Z;if(R.left&&typeof R.left==="object"&&"type"in R.left&&R.left.type==="Literal"&&"value"in R.left&&typeof R.left.value==="string")V="string"}if(Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression")V=o6(Z),H=void 0}else if(Z.type==="UnaryExpression"){let G=Z;if("start"in G&&"end"in G&&typeof G.start==="number"&&typeof G.end==="number")H=J8(Q,G.start,G.end);if(G.argument){if(typeof G.argument==="object"&&"type"in G.argument&&G.argument.type==="UnaryExpression")V=V1(q,Q,G.argument).type;else if(typeof G.argument==="object"&&"value"in G.argument)V=typeof G.argument.value}}else if(Z.type==="NewExpression"){let G=Z;if("start"in G&&"end"in G&&typeof G.start==="number"&&typeof G.end==="number")H=J8(Q,G.start,G.end);if(G.callee&&typeof G.callee==="object"&&"type"in G.callee&&G.callee.type==="Identifier"){let R=G.callee.name;if(R==="Date")V="Date";else if(R==="Map")V="Map<any, any>";else if(R==="Set")V="Set<any>";else if(R==="WeakMap")V="WeakMap<object, any>";else if(R==="WeakSet")V="WeakSet<object>";else if(R==="Array")V="any[]";else if(R==="RegExp"||R==="Regexp")V="RegExp";else if(R==="Error")V="Error";else V=R}}else if(Z.type==="CallExpression"){let G=Z;if("start"in G&&"end"in G&&typeof G.start==="number"&&typeof G.end==="number")H=J8(Q,G.start,G.end)}else if(Z.type==="Identifier"){let G=Z;if(Y<5){let R=z3(Q,G.name);if(R){let O=V1(q,Q,R,Y+1),$=q.resolveLocalVarJSDoc(G.name);return{...O,resolvedType:$?.type??O.resolvedType,resolvedDescription:$?.description??O.resolvedDescription,resolvedParams:$?.params??O.resolvedParams,resolvedReturnType:$?.returnType??O.resolvedReturnType}}if(Q.funcDecls.has(G.name)){let O=q.resolveLocalVarJSDoc(G.name),$=Q.funcDecls.get(G.name);return{value:void 0,type:void 0,isFunction:!0,resolvedType:O?.type??j3(O,$),resolvedDescription:O?.description,resolvedParams:O?.params,resolvedReturnType:O?.returnType}}}if("start"in G&&"end"in G&&typeof G.start==="number"&&typeof G.end==="number")H=J8(Q,G.start,G.end)}else if(Z.type==="MemberExpression"){let G=Z;if("start"in G&&"end"in G&&typeof G.start==="number"&&typeof G.end==="number")H=J8(Q,G.start,G.end);if(q.isNumericConstant(Z))V="number"}else if(Z.type==="TemplateLiteral"){let G=Z;if("start"in G&&"end"in G&&typeof G.start==="number"&&typeof G.end==="number")H=J8(Q,G.start,G.end);V="string"}else if("raw"in Z&&typeof Z.raw==="string"){if(H=Z.raw,"value"in Z)V=Z.value==null?void 0:typeof Z.value}return{value:H,type:V,isFunction:K,defaultValue:W}}function z3(q,Q){for(let Z of q.vars)for(let Y of Z.declarations)if(Y.id&&typeof Y.id==="object"&&"type"in Y.id&&Y.id.type==="Identifier"&&"name"in Y.id&&Y.id.name===Q&&Y.init)return Y.init;return}function p6(q,Q){for(let Z of q.vars){if(Z.kind!=="const")continue;for(let Y of Z.declarations)if(Y.id&&typeof Y.id==="object"&&"type"in Y.id&&Y.id.type==="Identifier"&&"name"in Y.id&&Y.id.name===Q&&Y.init)return Y.init}return}function j3(q,Q){let Z=q?.returnType??"any",Y=q?.params;if(Y&&Y.length>0)return`(${Y.map((V)=>`${V.name}${V.optional?"?":""}: ${V.type}`).join(", ")}) => ${Z}`;if(q?.returnType)return`() => ${Z}`;if(Q)return o6(Q);return"(...args: any[]) => any"}function o6(q){return`(${O3(q)}) => ${U3(q)}`}function O3(q){let Q=q.params;if(!Array.isArray(Q)||Q.length===0)return"...args: any[]";let Z=[];for(let Y of Q)if(Y&&typeof Y==="object"&&"type"in Y&&Y.type==="Identifier"&&"name"in Y&&typeof Y.name==="string")Z.push(`${Y.name}: any`);else return"...args: any[]";return Z.join(", ")}function U3(q){if(q.async||q.generator)return"any";let Q=q.body,Z;if(Q&&typeof Q==="object"&&"type"in Q&&Q.type==="BlockStatement"){if(Z=R3(Q),Z.length===0)return"any"}else Z=[Q];let Y=null;for(let H of Z){let V=B3(H);if(!V)return"any";if(Y===null)Y=V;else if(Y!==V)return"any"}return Y??"any"}function R3(q){let Q=[];return d8(q,{enter(Z){if(Z.type==="FunctionDeclaration"||Z.type==="FunctionExpression"||Z.type==="ArrowFunctionExpression"){this.skip();return}if(Z.type==="ReturnStatement")Q.push(Z.argument??null)}}),Q}function B3(q){if(!q||typeof q!=="object"||!("type"in q))return null;switch(q.type){case"Literal":{let Q=q.value;if(typeof Q==="string")return"string";if(typeof Q==="number")return"number";if(typeof Q==="boolean")return"boolean";return null}case"TemplateLiteral":return"string";case"CallExpression":{let Q=q.callee;if(Q&&typeof Q==="object"&&"type"in Q&&Q.type==="Identifier"){let Z=Q.name;if(Z==="String")return"string";if(Z==="Number")return"number";if(Z==="Boolean")return"boolean"}return null}default:return null}}function n6(q){if(m8(q,"$bindable"))return{init:q.arguments[0],bindable:!0};return{init:q,bindable:!1}}function F3(q,Q,Z){let Y=d6(Q,Z);if(!Y||!Z||typeof Z!=="object"||!("type"in Z))return;let H="expression";if(Z.type==="Literal"||Z.type==="UnaryExpression")H="literal";else if(Z.type==="TemplateLiteral")H=Z.expressions.length===0?"literal":"expression";else if(Z.type==="ArrayExpression")H="array";else if(Z.type==="ObjectExpression")H="object";else if(Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression")H="function";let V={raw:Y,kind:H};if(H==="literal"||H==="array"||H==="object"){let K=Q9(q,Z);if(K.ok)V.value=K.value}return V}function Q9(q,Q){if(!Q||typeof Q!=="object"||!("type"in Q))return{ok:!1};if(Q.type==="Literal"){let Z=Q.value;return typeof Z==="bigint"?{ok:!1}:{ok:!0,value:Z}}if(Q.type==="UnaryExpression"){let Z=Q,Y=Z.argument;if(!Y||typeof Y!=="object"||!("type"in Y)||Y.type!=="Literal")return{ok:!1};let H=Y.value;if(typeof H==="number"){if(Z.operator==="-")return{ok:!0,value:-H};if(Z.operator==="+")return{ok:!0,value:H}}if(typeof H==="boolean"&&Z.operator==="!")return{ok:!0,value:!H};return{ok:!1}}if(Q.type==="TemplateLiteral"){let Z=Q;if(Z.expressions.length>0||Z.quasis.length!==1)return{ok:!1};return{ok:!0,value:Z.quasis[0].value.cooked??Z.quasis[0].value.raw}}if(Q.type==="ArrayExpression"){let Z=Q,Y=[];for(let H of Z.elements){if(!H)return{ok:!1};let V=Q9(q,H);if(!V.ok)return{ok:!1};Y.push(V.value)}return{ok:!0,value:Y}}if(Q.type==="ObjectExpression"){let Z=Q,Y={};for(let H of Z.properties){if(H.type!=="Property"||H.computed)return{ok:!1};let V=q.getPropertyName(H.key);if(!V)return{ok:!1};let K=Q9(q,H.value);if(!K.ok)return{ok:!1};Y[V]=K.value}return{ok:!0,value:Y}}return{ok:!1}}var M3=/[-_.:/\s]+/;function Z9(q){return`${q.split(M3).map((Y)=>Y.charAt(0).toUpperCase()+Y.slice(1)).join("")}Context`}function $3(q,Q,Z,Y){if(!Z||typeof Z!=="object"||!("type"in Z))return null;if(Z.type==="ObjectExpression"){let H=[];if(!r1(Z))return null;let V=Z;for(let K of V.properties){if(K.type!=="Property")continue;let W=Q.getPropertyName(K.key);if(!W)continue;let G="any",R;if(u8(K.value)){let O=K.value.name,$=Q.findVariableTypeAndDescription(O);if($)G=$.type,R=$.description;else p8(q,"context-any-type",W,`Context "${Y}" property "${W}" has no type annotation; defaulted to "any".`,V8(q,K))}else if(K.value&&typeof K.value==="object"&&"type"in K.value&&(K.value.type==="ArrowFunctionExpression"||K.value.type==="FunctionExpression"))G=`(${K.value.params?.map((M)=>{if(u8(M))return`${M.name||"arg"}: any`;return"arg: any"}).join(", ")||""}) => any`;else if(K1(K.value))G=K.value.value==null?"null":typeof K.value.value;H.push({name:W,type:G,description:R,optional:!1})}return{key:Y,typeName:Z9(Y),properties:H,description:void 0}}else if(u8(Z)){let H=Z.name,V=Q.findVariableTypeAndDescription(H);if(V)return{key:Y,typeName:Z9(Y),properties:[{name:H,type:V.type,description:V.description,optional:!1}]};return p8(q,"context-any-type",H,`Context "${Y}" variable "${H}" has no type annotation; defaulted to "any".`,V8(q,Z)),{key:Y,typeName:Z9(Y),properties:[{name:H,type:"any",description:void 0,optional:!1}]}}return null}function s6(q){let Q=q.callee;if(!Q||typeof Q!=="object"||!("type"in Q))return null;let Z=Q.type==="Identifier"&&Q.name==="Symbol",Y=Q.type==="MemberExpression"&&!Q.computed&&Q.object.type==="Identifier"&&Q.object.name==="Symbol"&&Q.property.type==="Identifier"&&Q.property.name==="for";if(!Z&&!Y)return null;let H=q.arguments[0];if(!H||typeof H!=="object"||!("type"in H))return"";if(H.type==="Literal"&&typeof H.value==="string")return H.value;if(H.type==="TemplateLiteral"&&H.quasis?.length===1)return H.quasis[0].value.cooked??"";return""}function a6(q,Q,Z=0){if(!Q||typeof Q!=="object"||!("type"in Q))return null;let Y=Q;if(Y.type==="Literal")return typeof Y.value==="string"?Y.value:Y.value==null?null:String(Y.value);if(Y.type==="TemplateLiteral"){if(Y.quasis?.length===1){let H=Y.quasis[0].value.cooked;return H==null?null:H}return null}if(Y.type==="CallExpression"||Y.type==="NewExpression")return s6(Y);if(Y.type==="Identifier"){if(Z>=5)return null;let H=p6(q,Y.name);if(H&&typeof H==="object"&&"type"in H){let V=H;if((V.type==="CallExpression"||V.type==="NewExpression")&&s6(V)==="")return Y.name;return a6(q,V,Z+1)}return null}return null}function r6(q,Q,Z,Y){if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="CallExpression")return;let H=Z,V=H.arguments[0];if(!V)return;let K=a6(q,V);if(!K){let R=q.componentFilePath?` in ${q.componentFilePath}`:"";console.warn(`Warning: Could not resolve setContext key${R}. Use a string literal, const-bound string, or Symbol(). Skipping context type generation.`);return}let W=H.arguments[1];if(!W)return;let G=$3(q,Q,W,K);if(G&&!q.contexts.has(K))q.contexts.set(K,G)}function Y9(q){return typeof q==="string"?JSON.stringify(q):String(q)}function I1(q,{name:Q,detail:Z,has_argument:Y,description:H,deprecated:V,tags:K,source:W}){if(Q===void 0)return;let G=!Y&&!Z?"null":I8(Z),R=H,O=q.events.get(Q);if(O?.type==="forwarded")q.events.set(Q,{type:"dispatched",name:Q,detail:G,description:R||O.description,deprecated:V??O.deprecated,tags:K??O.tags,source:W||O.source});else if(O){let $=O.tags??K;q.events.set(Q,{...O,detail:O.detail===void 0?G:O.detail,description:O.description||R,deprecated:O.deprecated??V,tags:$,source:W||O.source})}else q.events.set(Q,{type:"dispatched",name:Q,detail:G,description:R,deprecated:V,tags:K,source:W})}function t6(q,Q){let Z=Q.arguments[0],Y=r0(Z,"CustomEvent");if(!Y&&!r0(Z,"Event"))return;let H=Z.arguments[0],V=K1(H)?H.value:void 0;if(V==null)return;let K=Y?Z.arguments[1]:void 0,W=!1,G;if(r1(K)){let R=K.properties.find((O)=>O.type==="Property"&&u8(O.key)&&O.key.name==="detail");if(R?.type==="Property")W=!0,G=K1(R.value)?R.value.value:void 0}return I1(q,{name:String(V),detail:G==null?"":Y9(G),has_argument:W,source:V8(q,Q)}),String(V)}function H9(q,Q,Z=!1){if(q.length===0)return"null";let Y=q.map(({name:H,type:V,description:K,optional:W,default:G})=>{let R=W?"?":"",O=K||"";if(G&&O)O=`${O} @default ${G}`;else if(G)O=`@default ${G}`;if(O){if(Z)return`/** ${O} */
3
+ ${H}${R}: ${V};`;return`/** ${O} */ ${H}${R}: ${V};`}return`${H}${R}: ${V};`}).join(Z?`
4
+ `:" ");return Z?`{
5
+ ${Y}
6
+ }`:`{ ${Y} }`}var L3=/[A-Za-z_$][\w$]*/g;function C3(q,Q){if(!Q)return!1;let Z=new Set(Q[0].split(",").map((Y)=>Y.trim()));for(let[Y]of q.matchAll(L3))if(Z.has(Y))return!0;return!1}function J9(q,Q){if(Q===void 0)return;return q.runesPropsDeclarationMetadataByDeclaratorStart.get(Q)}function e6(q,Q,Z){return J9(q,Q)?.props.get(Z)}function q7(q){if(!q||typeof q!=="object"||!("type"in q))return;if(q.type==="Identifier"&&"name"in q&&typeof q.name==="string")return q.name;if(q.type==="TSQualifiedName"&&"right"in q&&q.right&&typeof q.right==="object"&&"name"in q.right&&typeof q.right.name==="string")return q.right.name;return}function Q7(q){if(!q||typeof q!=="object"||!("type"in q))return;if(q.type==="Identifier"&&"name"in q&&typeof q.name==="string")return q.name;if(q.type==="TSQualifiedName"&&"left"in q&&q.left&&typeof q.left==="object")return Q7(q.left);return}function Q0(q,Q){let Z=Q?.start,Y=Q?.end;if(Z===void 0||Y===void 0)return;return J8(q,Z+1,Y)?.trim()}function Z7(q,Q){let Z=Q?.start,Y=Q?.end;if(Z===void 0||Y===void 0)return;return J8(q,Z,Y)?.trim()}function P8(q,Q,Z,Y,H=new Set){if(!Q?.type)return;switch(Q.type){case"TSInterfaceDeclaration":P8(q,{type:"TSTypeLiteral",members:Q.body?.body},Z,Y,H);return;case"TSTypeAliasDeclaration":case"TSParenthesizedType":case"TSTypeAnnotation":P8(q,Q.typeAnnotation,Z,Y,H);return;case"TSIntersectionType":case"TSUnionType":for(let V of Q.types??[])P8(q,V,Z,Y,H);return;case"TSTypeLiteral":for(let V of Q.members??[]){if(V?.type!=="TSPropertySignature")continue;P8(q,V.typeAnnotation?.typeAnnotation,Z,Y,H)}return;case"TSTypeReference":{let V=Q7(Q.typeName);if(V){if(q.typeImportBindingsByLocalName.has(V))Z.add(V);let K=q.localTypeDeclarationsByName.get(V);if(K&&!H.has(V))Y.add(V),H.add(V),P8(q,K.node,Z,Y,H),H.delete(V)}if("typeParameters"in Q&&Q.typeParameters&&typeof Q.typeParameters==="object"){let K=Q.typeParameters;for(let W of K.params??[])P8(q,W,Z,Y,H)}return}case"TSArrayType":case"TSRestType":case"TSOptionalType":case"TSIndexedAccessType":case"TSTypeOperator":case"TSExpressionWithTypeArguments":case"TSTupleType":case"TSConditionalType":case"TSInferType":case"TSMappedType":case"TSFunctionType":case"TSConstructorType":case"TSTypeQuery":case"TSImportType":case"TSLiteralType":case"TSTypePredicate":case"TSNamedTupleMember":break;default:break}for(let V of Object.values(Q)){if(!V||typeof V!=="object")continue;if(Array.isArray(V)){for(let K of V){if(!K||typeof K!=="object"||!("type"in K))continue;P8(q,K,Z,Y,H)}continue}if("type"in V)P8(q,V,Z,Y,H)}}function A3(q,Q){let Z=new Map;for(let Y of Array.from(Q).sort()){let H=q.typeImportBindingsByLocalName.get(Y);if(!H)continue;let V=Z.get(H.source)??{default:[],named:[],namespace:[]};if(H.specifierType==="default")V.default.push(H.localName);else if(H.specifierType==="namespace")V.namespace.push(H.localName);else V.named.push({imported:H.importedName,local:H.localName});Z.set(H.source,V)}return Array.from(Z.entries()).sort(([Y],[H])=>Y.localeCompare(H)).map(([Y,H])=>{if(H.namespace.length>0)return H.namespace.map((G)=>`import type * as ${G} from "${Y}";`).join(`
7
+ `);let V=H.named.map(({imported:G,local:R})=>{if(!G||G===R)return R;return`${G} as ${R}`}),K=H.default[0],W=V.length>0?`{ ${V.join(", ")} }`:"";if(K&&W)return`import type ${K}, ${W} from "${Y}";`;if(K)return`import type ${K} from "${Y}";`;return`import type ${W} from "${Y}";`})}function Y7(q){if(q.typedRunesPropsDeclarations.length!==1)return;let[Q]=q.typedRunesPropsDeclarations;if(!Q.canonicalType)return;let Z=Array.from(Q.referencedLocalTypes).map((Y)=>q.localTypeDeclarationsByName.get(Y)).filter((Y)=>Y!==void 0).sort((Y,H)=>Y.start-H.start).map((Y)=>Y.code);return{canonicalPropsType:Q.canonicalType,canonicalPropNames:Array.from(Q.props.keys()).sort(),localTypeDeclarations:Z,typeImportStatements:A3(q,Q.referencedImportedTypes),referencesComponentGenerics:C3(Q.canonicalType,q.generics)}}var w3=/^[A-Za-z_$][\w$]*/,I3=/[A-Za-z_$][\w$]*/g,H7=/^(?:const|in|out)\s+/;function X1(q){let Q=[],Z=0,Y=0;for(let H=0;H<q.length;H++){let V=q[H];if(V==="<"||V==="("||V==="["||V==="{")Z++;else if(V===">"||V===")"||V==="]"||V==="}")Z=Math.max(Z-1,0);else if(V===","&&Z===0)Q.push(q.slice(Y,H)),Y=H+1}return Q.push(q.slice(Y)),Q}function J7(q){let Q=X1(q).map((Y)=>Y.trim()).filter((Y)=>Y.length>0);if(Q.length===0)return null;return[Q.map((Y)=>{let H=Y;while(H7.test(H))H=H.replace(H7,"");return H.match(w3)?.[0]??Y}).join(", "),Q.join(", ")]}function K7(q,Q,Z){let Y=q.scriptGenericsAttribute?.value;if(!Y)return;for(let[H]of Y.matchAll(I3)){if(q.typeImportBindingsByLocalName.has(H))Q.add(H);if(Z.has(H))continue;let V=q.localTypeDeclarationsByName.get(H);if(!V)continue;Z.add(H),P8(q,V.node,Q,Z)}}var S8;(function(q){q.start="/**",q.nostart="/***",q.delim="*",q.end="*/"})(S8=S8||(S8={}));function K9(q){return/^\s+$/.test(q)}function V7(q){let Q=q.match(/\r+$/);return Q==null?["",q]:[q.slice(-Q[0].length),q.slice(0,-Q[0].length)]}function o8(q){let Q=q.match(/^\s+/);return Q==null?["",q]:[q.slice(0,Q[0].length),q.slice(Q[0].length)]}function X7(q){return q.split(/\n/)}function W7(q={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},q)}function V9(q={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},q)}var P3=/^@\S+/;function X9({fence:q="```"}={}){let Q=S3(q),Z=(Y,H)=>Q(Y)?!H:H;return function(H){let V=[[]],K=!1;for(let W of H){if(P3.test(W.tokens.description)&&!K)V.push([W]);else V[V.length-1].push(W);K=Z(W.tokens.description,K)}return V}}function S3(q){if(typeof q==="string")return(Q)=>Q.split(q).length%2===0;return q}function W9({startLine:q=0,markers:Q=S8}={}){let Z=null,Y=q;return function(V){let K=V,W=V9();if([W.lineEnd,K]=V7(K),[W.start,K]=o8(K),Z===null&&K.startsWith(Q.start)&&!K.startsWith(Q.nostart))Z=[],W.delimiter=K.slice(0,Q.start.length),K=K.slice(Q.start.length),[W.postDelimiter,K]=o8(K);if(Z===null)return Y++,null;let G=K.trimRight().endsWith(Q.end);if(W.delimiter===""&&K.startsWith(Q.delim)&&!K.startsWith(Q.end))W.delimiter=Q.delim,K=K.slice(Q.delim.length),[W.postDelimiter,K]=o8(K);if(G){let R=K.trimRight();W.end=K.slice(R.length-Q.end.length),K=R.slice(0,-Q.end.length)}if(W.description=K,Z.push({number:Y,source:V,tokens:W}),Y++,G){let R=Z.slice();return Z=null,R}return null}}function G9({tokenizers:q}){return function(Z){var Y;let H=W7({source:Z});for(let V of q)if(H=V(H),(Y=H.problems[H.problems.length-1])===null||Y===void 0?void 0:Y.critical)break;return H}}function Z0(){return(q)=>{let{tokens:Q}=q.source[0],Z=Q.description.match(/\s*(@(\S+))(\s*)/);if(Z===null)return q.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:q.source[0].number,critical:!0}),q;return Q.tag=Z[1],Q.postTag=Z[3],Q.description=Q.description.slice(Z[0].length),q.tag=Z[2],q}}function Y0(q="compact"){let Q=N3(q);return(Z)=>{let Y=0,H=[];for(let[W,{tokens:G}]of Z.source.entries()){let R="";if(W===0&&G.description[0]!=="{")return Z;for(let O of G.description){if(O==="{")Y++;if(O==="}")Y--;if(R+=O,Y===0)break}if(H.push([G,R]),Y===0)break}if(Y!==0)return Z.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:Z.source[0].number,critical:!0}),Z;let V=[],K=H[0][0].postDelimiter.length;for(let[W,[G,R]]of H.entries()){if(G.type=R,W>0)G.type=G.postDelimiter.slice(K)+R,G.postDelimiter=G.postDelimiter.slice(0,K);[G.postType,G.description]=o8(G.description.slice(R.length)),V.push(G.type)}return V[0]=V[0].slice(1),V[V.length-1]=V[V.length-1].slice(0,-1),Z.type=Q(V),Z}}var D3=(q)=>q.trim();function N3(q){if(q==="compact")return(Q)=>Q.map(D3).join("");else if(q==="preserve")return(Q)=>Q.join(`
8
+ `);else return q}var T3=(q)=>q&&q.startsWith('"')&&q.endsWith('"');function H0(){let q=(Q,{tokens:Z},Y)=>Z.type===""?Q:Y;return(Q)=>{let{tokens:Z}=Q.source[Q.source.reduce(q,0)],Y=Z.description.trimLeft(),H=Y.split('"');if(H.length>1&&H[0]===""&&H.length%2===1)return Q.name=H[1],Z.name=`"${H[1]}"`,[Z.postName,Z.description]=o8(Y.slice(Z.name.length)),Q;let V=0,K="",W=!1,G;for(let O of Y){if(V===0&&K9(O))break;if(O==="[")V++;if(O==="]")V--;K+=O}if(V!==0)return Q.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:Q.source[0].number,critical:!0}),Q;let R=K;if(K[0]==="["&&K[K.length-1]==="]"){W=!0,K=K.slice(1,-1);let O=K.split("=");if(K=O[0].trim(),O[1]!==void 0)G=O.slice(1).join("=").trim();if(K==="")return Q.problems.push({code:"spec:name:empty-name",message:"empty name",line:Q.source[0].number,critical:!0}),Q;if(G==="")return Q.problems.push({code:"spec:name:empty-default",message:"empty default value",line:Q.source[0].number,critical:!0}),Q;if(!T3(G)&&/=(?!>)/.test(G))return Q.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:Q.source[0].number,critical:!0}),Q}if(Q.optional=W,Q.name=K,Z.name=R,G!==void 0)Q.default=G;return[Z.postName,Z.description]=o8(Y.slice(Z.name.length)),Q}}function J0(q="compact",Q=S8){let Z=z9(q);return(Y)=>{return Y.description=Z(Y.source,Q),Y}}function z9(q){if(q==="compact")return b3;if(q==="preserve")return v3;return q}function b3(q,Q=S8){return q.map(({tokens:{description:Z}})=>Z.trim()).filter((Z)=>Z!=="").join(" ")}var k3=(q,{tokens:Q},Z)=>Q.type===""?q:Z,E3=({tokens:q})=>(q.delimiter===""?q.start:q.postDelimiter.slice(1))+q.description;function v3(q,Q=S8){if(q.length===0)return"";if(q[0].tokens.description===""&&q[0].tokens.delimiter===Q.start)q=q.slice(1);let Z=q[q.length-1];if(Z!==void 0&&Z.tokens.description===""&&Z.tokens.end.endsWith(Q.end))q=q.slice(0,-1);return q=q.slice(q.reduce(k3,0)),q.map(E3).join(`
9
+ `)}function j9({startLine:q=0,fence:Q="```",spacing:Z="compact",markers:Y=S8,tokenizers:H=[Z0(),Y0(Z),H0(),J0(Z)]}={}){if(q<0||q%1>0)throw Error("Invalid startLine");let V=W9({startLine:q,markers:Y}),K=X9({fence:Q}),W=G9({tokenizers:H}),G=z9(Z);return function(R){let O=[];for(let $ of X7(R)){let M=V($);if(M===null)continue;let F=K(M),P=F.slice(1).map(W);O.push({description:G(F[0],Y),tags:P,source:M,problems:P.reduce((w,N)=>w.concat(N.problems),[])})}return O}}function h3(q){return q.start+q.delimiter+q.postDelimiter+q.tag+q.postTag+q.type+q.postType+q.name+q.postName+q.description+q.end+q.lineEnd}function O9(){return(q)=>q.source.map(({tokens:Q})=>h3(Q)).join(`
10
+ `)}var f3={line:0,start:0,delimiter:0,postDelimiter:0,tag:0,postTag:0,name:0,postName:0,type:0,postType:0,description:0,end:0,lineEnd:0};var OJ=Object.keys(f3);function P1(q,Q={}){return j9(Q)(q)}var vJ=O9();var y3=null;function g3(q,Q,Z){let Y={value:void 0,replace:!1};if(!Z||typeof Z!=="object"||!("type"in Z))return Y;if(Z.type==="Identifier")Y.value=Z.name,Y.replace=!0;else if(Z.type==="Literal")Y.value=String(Z.value);else if(Z.type==="MemberExpression")Y.value=e1(q,Q,Z);else if((Z.type==="ObjectExpression"||Z.type==="TemplateLiteral")&&"start"in Z&&"end"in Z&&typeof Z.start==="number"&&typeof Z.end==="number")Y.value=J8(q,Z.start,Z.end);return Y}function G7(q,Q,Z){let Y={};for(let H of Z.properties){if(H.type!=="Property"||H.computed)continue;let V=Q.getPropertyName(H.key);if(!V)continue;Y[V]=g3(q,Q,H.value)}return Y}function _3(q,Q){if(!Q||typeof Q!=="object"||!("type"in Q))return null;if(Q.type==="Identifier"){let V=Q,K=q.propLocalToPublicName.get(V.name);if(!K)return null;return{publicName:K,trackingName:V.name}}if(Q.type!=="MemberExpression")return null;let Z=Q,Y=Z.object&&typeof Z.object==="object"&&"type"in Z.object&&Z.object.type==="Identifier"?Z.object.name:void 0;if(!Y||!q.wholePropsLocals.has(Y))return null;let H;if(!Z.computed&&Z.property&&typeof Z.property==="object"&&"type"in Z.property){if(Z.property.type==="Identifier")H=Z.property.name;else if(Z.property.type==="Literal"&&Z.property.value!=null)H=String(Z.property.value)}else if(Z.computed&&Z.property&&typeof Z.property==="object"&&"type"in Z.property&&Z.property.type==="Literal"&&"value"in Z.property&&Z.property.value!=null)H=String(Z.property.value);if(!H)return null;return{publicName:H,trackingName:H}}function z7(q,Q){let Z=Q;if(Z&&typeof Z==="object"&&"type"in Z&&Z.type==="ChainExpression")Z=Z.expression;if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="CallExpression")return null;let Y=Z;if(!Y.callee||typeof Y.callee!=="object"||!("type"in Y.callee))return null;let H=_3(q,Y.callee);if(!H)return null;return{...H,arguments:Y.arguments}}function S1(q,{slot_name:Q,slot_props:Z,slot_fallback:Y,slot_description:H,slot_deprecated:V,slot_tags:K,source:W}){let G=Q===void 0||Q==="",R=G?y3:Q??"",O=I8(Y),$=Z===void 0||Z===""?void 0:Z,M=H?.trim()||void 0;if(q.slots.has(R)){let F=q.slots.get(R);if(F)q.slots.set(R,{...F,default:F.default??G,fallback:O,slot_props:F.slot_props===void 0?$:F.slot_props,description:F.description||M,deprecated:F.deprecated??V,tags:F.tags||K,source:W||F.source})}else q.slots.set(R,{name:R,default:G,fallback:O,slot_props:Z,description:M,deprecated:V,tags:K,source:W})}var x3=/\s*=\s*/;function j7(q){let Q=q.indexOf("<");if(Q===-1||!q.endsWith(">"))return q;let Z=q.slice(0,Q),Y=q.slice(Q+1,-1),H=X1(Y).map((V)=>V.trim().replace(x3," = ")).join(", ");return`${Z}<${H}>`}var u3=/^\s*$/,m3=/;$/,l3=/^-\s*/;function W1(q){if(q===void 0)return;let Q=q.replace(l3,"").trim();return Q===""?"":Q}function D1(q){if(!q||q.length===0)return;return q[0].tokens.description}var O7=new Set(["since","example"]);function U7(q){if(!q||q.length===0)return"";let Q=[];for(let Z of q){let Y=Z.tokens;if((Y.end??"").trim()==="*/")break;if(Y.tag){let H=`${Y.name??""}${Y.postName??""}${Y.description??""}`.trimEnd();if(H)Q.push(H)}else Q.push(`${Y.postDelimiter??""}${Y.description??""}`)}return Q.join(`
11
+ `)}function c3(q){let Q=q.trim();return Q===""?!0:Q}function R7(q,Q){return c3(`${q??""}${Q?` ${Q}`:""}`)}function i3(q){let Q=q.trim().replace(m3,"").trimEnd();if(!Q.startsWith("{")||!Q.endsWith("}"))return!1;let Z=0,Y=null;for(let H=0;H<Q.length;H++){let V=Q[H];if(Y!==null){if(V==="\\"){H++;continue}if(V===Y)Y=null;continue}if(V==='"'||V==="'"||V==="`"){Y=V;continue}if(V==="{"||V==="["||V==="(")Z++;else if(V==="}"||V==="]"||V===")"){if(Z--,Z===0&&H<Q.length-1)return!1}}return Z===0}function d3(q){let Q=q;if(!Q.startsWith("/*"))Q=`/*${Q}`;if(!Q.endsWith("*/"))Q+="*/";return Q}function R9(q){let Q=q[0]?.tags??[],Z=new Set(["type","param","returns","return","extends","extendProps","restProps","slot","snippet","event","typedef","callback","bindable","deprecated"]),Y,H=[],V,K,W,G=[],R=[];for(let O of Q)if(O.tag==="type")Y=O;else if(O.tag==="param")H.push(O);else if(O.tag==="returns"||O.tag==="return")V=O;else if(O.tag==="deprecated")W??=R7(O.name,O.description);else if(O7.has(O.tag))R.push(O);else if(O.tag==="bindable"){if(O.type)continue;let $=`${O.name}${O.description?` ${O.description}`:""}`.trim();if($==="readonly"||$==="writable")K??=$}else if(!Z.has(O.tag))G.push(O);return{type:Y,param:H,returns:V,binding:K,deprecated:W,additional:G,passthrough:R,description:q[0]?.description}}function p3(q){if(!q||q.length===0)return;let Q=q[q.length-1];return Q&&typeof Q==="object"&&"value"in Q?Q:void 0}function o3(q,Q,Z){if(!Q||Q.length===0||Z===void 0||!q.source)return;for(let Y=Q.length-1;Y>=0;Y--){let H=Q[Y];if(!H||typeof H!=="object"||!("value"in H)||!("end"in H))continue;if(typeof H.end!=="number")continue;let V=q.source.slice(H.end,Z);if(u3.test(V))return H}return}function q1(q,Q,Z){if(!Z?.leadingComments)return;let Y=o3(q,Z.leadingComments,Z.start);if(!Y)return;return n3(Q,[Y])}function B7(q,Q,Z){if(!Z?.leadingComments)return;return q1(q,Q,Z)}function n3(q,Q){if(!Q)return;let Z=p3(Q);if(!Z)return;let Y=P1(d3(Z.value),{spacing:"preserve"}),{type:H,param:V,returns:K,binding:W,deprecated:G,additional:R,passthrough:O,description:$}=R9(Y),M,F,P,w;if(H)M=q.aliasType(H.type);if(V.length>0)F=V.filter((g)=>!g.name.includes(".")).map((g)=>({name:g.name,type:q.aliasType(g.type),description:W1(g.description),optional:g.optional||!1}));if(K)P=q.aliasType(K.type);let N=I8($?.trim());if(N||R.length>0){let g=[];if(N)g.push(N);for(let f of R){let a=`@${f.tag}${f.name?` ${f.name}`:""}${f.description?` ${f.description}`:""}`;g.push(a)}w=g.join(`
12
+ `)}let v=O.length>0?O.map((g)=>({name:g.tag,body:U7(g.source)})):void 0;return{type:M,params:F,returnType:P,description:w,binding:W,deprecated:G,tags:v}}function F7(q,Q,Z=q.source){if(!Z)return;let Y=0;for(let{tags:H,description:V,source:K}of P1(Z,{spacing:"preserve"})){let W=K.map((b)=>b.source).join(`
13
+ `),G=Z.indexOf(W,Y),R=G===-1?void 0:G;if(G!==-1)Y=G+W.length;let O,$,M,F,P,w,N=[],v=[],g,f,a,x=[],Z8,C,J=[],X,z=!1,j=!0,B=[],L,A=new Map,D=new Set,S=new Set;for(let b of H)if(b.source&&b.source.length>0)D.add(b.source[0].number);for(let b of K)if(!b.tokens.tag&&b.tokens.description&&b.tokens.description.trim()!=="}")A.set(b.number,b.tokens.description);let I=(b)=>{if(!b||b.length===0)return;let r=b[0].number,_=[],s=[],U8=!1;for(let p=r-1;p>=1;p--){if(D.has(p))break;let t=A.get(p);if(t)_.unshift(t),s.unshift(p),U8=!0;else if(U8){let l=K.find((e)=>e.number===p);if(!(!l||!l.tokens.tag&&(!l.tokens.description||l.tokens.description.trim()==="")))break}}if(_.length===0)return;for(let p of s)S.add(p);return _.join(`
14
+ `).trim()},h=()=>{if(O!==void 0){let b=$&&$!=="object"&&$!=="Object"?$:void 0,r;if(b)r=b;else if(v.length>0)r=H9(v,O,!0);else r=$||"";if(w!==void 0){let _;for(let p of H){let t=p.source?.[0]?.number;if(typeof t!=="number")continue;if(t<=w)continue;if(p.tag==="property"||p.tag==="type")continue;_=t;break}let s=[],U8=Array.from(A.keys()).sort((p,t)=>p-t);for(let p of U8){if(p<=w)continue;if(_!==void 0&&p>=_)continue;if(S.has(p))continue;let l=A.get(p)?.trim();if(l)s.push(l),S.add(p)}if(s.length>0){let p=s.join(`
15
+ `);M=M?`${M}
16
+ ${p}`:p}}I1(q,{name:O,detail:r,has_argument:!1,description:M,deprecated:F,tags:N.length>0?N:void 0,source:P}),q.eventDescriptions.set(O,M),q.jsDocEventNames.add(O),q.jsDocEventSources.set(O,P),v.length=0,O=void 0,$=void 0,M=void 0,F=void 0,P=void 0,w=void 0,N=[]}},c=()=>{if(g!==void 0){let b,r;if(x.length>0)b=H9(x,void 0,!0),r=`type ${g} = ${b};`;else if(f)b=f,r=i3(b)?`interface ${g} ${b}`:`type ${g} = ${b};`;else b="{}",r=`type ${g} = ${b};`;q.typedefs.set(g,{type:b,name:g,description:I8(a),ts:r}),x.length=0,g=void 0,f=void 0,a=void 0}},m=()=>{if(Z8!==void 0){let _=`(${J.map(({name:U8,type:p,optional:t})=>{return`${U8}${t?"?":""}: ${p}`}).join(", ")}) => ${X||"void"}`,s=`type ${Z8} = ${_};`;q.typedefs.set(Z8,{type:_,name:Z8,description:I8(C),ts:s}),J.length=0,X=void 0,Z8=void 0,C=void 0}},n=H.some((b)=>b.tag==="slot"||b.tag==="snippet"),H8=H.some((b)=>b.tag==="extends"||b.tag==="extendProps");for(let{tag:b,type:r,name:_,description:s,optional:U8,default:p,source:t}of H){let l=Q.aliasType(r),M8=I(t);switch(b){case"extends":case"extendProps":if(q.extends={interface:_,import:l},j)j=!1;break;case"restProps":{let e=_?s?`${_} ${s}`:_:s,c8=W1(e)||M8;if(!c8&&j&&!z&&V)c8=V,z=!0;if(q.rest_props={type:"Element",name:l,description:c8||void 0},j)j=!1;break}case"slot":case"snippet":{let C8=W1(D1(t));if(!C8&&j&&!z&&V)C8=V,z=!0;if(!C8&&B.length===0)C8=M8;if(j)j=!1;S1(q,{slot_name:_,slot_props:l,slot_description:C8||void 0,slot_deprecated:L,slot_tags:B.length>0?[...B]:void 0,source:q9(q,K,t,R)}),B.length=0,L=void 0;break}case"event":{if(h(),O=_,$=l,w=t&&t.length>0?t[0].number:void 0,M=W1(D1(t))||M8,!M&&j&&!z&&V)M=V,z=!0;if(P=q9(q,K,t,R),j)j=!1;break}case"type":if(O!==void 0)$=l;break;case"param":if(Z8!==void 0)J.push({name:_,type:l,optional:U8||!1});break;case"returns":case"return":if(Z8!==void 0)X=l;break;case"property":{let e={name:_,type:l,description:W1(D1(t)),optional:U8||!1,default:p};if(O!==void 0)v.push(e);else if(g!==void 0)x.push(e);break}case"typedef":{if(c(),g=j7(_),f=l,a=W1(D1(t))||M8,!a&&j&&!z&&V)a=V,z=!0;if(j)j=!1;break}case"callback":{if(m(),Z8=j7(_),C=W1(D1(t))||M8,!C&&j&&!z&&V)C=V,z=!0;if(j)j=!1;break}case"generics":if(q.generics=[_,l],j)j=!1;break;case"template":{let e=_;if(l)e=`${_} extends ${l}`;if(p)e+=` = ${p}`;if(n&&!H8){q.deferredSlotBlockGenerics.push({name:_,constraint:e});break}if(Q.accumulateGeneric(_,e),j)j=!1;break}case"deprecated":{let e=R7(_,s);if(O===void 0)L??=e;else F??=e;break}case"enum":case"class":case"implements":case"this":case"namespace":case"memberof":case"module":case"file":case"overview":break;default:{let e={name:b,body:U7(t)};if(O!==void 0&&O7.has(b))N.push(e);else B.push(e)}break}}h(),c(),m()}}function s3({hasTypeScriptType:q,hasJSDocType:Q,inferredType:Z,finalType:Y}){if(q)return"typescript";if(Q)return"jsdoc";if(Z!==void 0)return"default";if(Y!==void 0)return"inferred";return"unknown"}function N1(q){let Q=q.explicitType??q.jsdocType??q.resolvedType??q.typeSeed,Z=q.jsdocParams??q.resolvedParams,Y=q.jsdocReturnType??q.resolvedReturnType;if(q.isFunctionDeclaration&&Q==="() => any"&&Y)Q=Z&&Z.length>0?`(${Z.map((W)=>`${W.name}${W.optional?"?":""}: ${W.type}`).join(", ")}) => ${Y}`:`() => ${Y}`;let H=q.jsdocDescription??q.resolvedDescription;if(H===void 0&&Q!==void 0)H=q.typedefs?.get(Q)?.description;let V=s3({hasTypeScriptType:q.explicitType!==void 0,hasJSDocType:q.jsdocType!==void 0||q.jsdocParams!==void 0||q.jsdocReturnType!==void 0||q.resolvedType!==void 0,inferredType:q.inferredTypeForSource,finalType:Q}),K=q.initializerIsFunction||q.isFunctionDeclaration||q.inferIsFunctionFromTypeSignature===!0&&(!!q.jsdocParams?.length||q.jsdocReturnType!==void 0||!!q.jsdocType?.includes("=>")||!!q.resolvedType?.includes("=>")||!!q.explicitType?.includes("=>"));return{type:Q,typeSource:V,description:H,params:Z,returnType:Y,isFunction:K}}function a3(q){if(!q||typeof q!=="object"||!("type"in q))return;let Q=String(q.type);if(Q!=="InlineComponent"&&Q!=="Element")return;let Z="name"in q&&typeof q.name==="string"?q.name:void 0;if(!Z)return;let Y=Q==="InlineComponent"?{type:"InlineComponent",name:Z}:{type:"Element",name:Z};if(Q==="Element"&&Z==="svelte:element"&&"tag"in q&&typeof q.tag==="string")Y.thisValue=q.tag;return Y}function M7(q,Q){if(q.rest_props!==void 0)return;let Z=a3(Q);if(Z)q.rest_props=Z}function R8(q,Q,Z){if(!Q||q.has(Q))return;q.set(Q,Z)}function K0(q,Q){for(let Z=q.activeScopes.length-1;Z>=0;Z-=1){let Y=q.activeScopes[Z]?.get(Q);if(!Y)continue;return Y.kind==="prop"?Y.publicPropName:void 0}return}function X8(q,Q=new Set){if(!q||typeof q!=="object"||!("type"in q))return Q;switch(q.type){case"Identifier":Q.add(q.name);break;case"AssignmentPattern":X8(q.left,Q);break;case"ArrayPattern":for(let Z of q.elements)X8(Z??void 0,Q);break;case"ObjectPattern":for(let Z of q.properties)if(Z.type==="Property")X8(Z.value,Q);else if(Z.type==="RestElement")X8(Z.argument,Q);break;case"RestElement":X8(q.argument,Q);break}return Q}function F9(q,Q){let Z=X8(Q);if(!Z)return;for(let Y of Z){let H=K0(q,Y);if(H)q.reactive_vars.add(H)}}function V0(q){if(!q||typeof q!=="object"||!("type"in q))return!1;switch(String(q.type)){case"BlockStatement":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"CatchClause":case"EachBlock":case"ThenBlock":case"CatchBlock":return!0;default:return!1}}function $7(q){if(!q||typeof q!=="object"||!("type"in q))return!1;let Q=String(q.type);return Q==="FunctionDeclaration"||Q==="FunctionExpression"||Q==="ArrowFunctionExpression"}function r3(q,Q){let Z=q.scopeDeclarations.get(Q);if(!Z)Z=new Map,q.scopeDeclarations.set(Q,Z);return Z}function t3(q,Q,Z){let Y=[];if(Z.id.type==="Identifier")return Y.push({kind:"local",name:Z.id.name}),Y;if(Z.id.type!=="ObjectPattern")return Y;for(let H of Z.id.properties){if(H.type==="RestElement"){if(H.argument.type==="Identifier")Y.push({kind:"local",name:H.argument.name});continue}if(H.computed)continue;let V=q.getPropertyName(H.key);if(!V)continue;let K;if(H.value.type==="Identifier")K=H.value.name;else if(H.value.type==="AssignmentPattern"&&H.value.left.type==="Identifier")K=H.value.left.name;if(!K)continue;Y.push({kind:"prop",name:K,publicPropName:V})}return Y}function B9(q,Q,Z,Y,H){if(!x6(Q))return;let V=H?.allowRunesProps??!1,K=H?.forceProp??!1,W=Q;for(let G of W.declarations){if(V&&m8(e8(G.init),"$props")){for(let $ of t3(q,W,G))R8($.kind==="prop"?Z:Y,$.name,$.kind==="prop"?{kind:"prop",publicPropName:$.publicPropName}:{kind:"local"});continue}let R=W.kind==="var"?Y:Z,O=K?"prop":"local";for(let $ of X8(G.id))R8(R,$,O==="prop"?{kind:"prop",publicPropName:$}:{kind:"local"})}}function e3(q,Q){if("id"in q&&q.id&&typeof q.id==="object"&&"name"in q.id&&typeof q.id.name==="string")R8(Q,q.id.name,{kind:"local"});for(let Z of q.params)for(let Y of X8(Z))R8(Q,Y,{kind:"local"})}function qq(q,Q,Z,Y){if(!Array.isArray(Q))return;for(let H of Q){if(!H||typeof H!=="object"||!("type"in H))continue;switch(H.type){case"VariableDeclaration":B9(q,H,Z,Y);break;case"FunctionDeclaration":if(H.id?.name)R8(Z,H.id.name,{kind:"local"});break;case"ClassDeclaration":if(H.id?.name)R8(Z,H.id.name,{kind:"local"});break}}}function Qq(q,Q,Z){if(!Z||typeof Z!=="object")return;let Y="content"in Z&&Z.content&&typeof Z.content==="object"&&"body"in Z.content&&Array.isArray(Z.content.body)?Z.content:("body"in Z)&&Array.isArray(Z.body)?Z:void 0;if(!Y||!("body"in Y)||!Array.isArray(Y.body))return;for(let H of Y.body){if(!H||typeof H!=="object"||!("type"in H))continue;switch(H.type){case"ImportDeclaration":for(let V of H.specifiers??[])if(V.local?.name)R8(Q.componentScope,V.local.name,{kind:"local"});break;case"VariableDeclaration":B9(q,H,Q.componentScope,Q.componentScope,{allowRunesProps:!0});break;case"FunctionDeclaration":if(H.id?.name)R8(Q.componentScope,H.id.name,{kind:"local"});break;case"ClassDeclaration":if(H.id?.name)R8(Q.componentScope,H.id.name,{kind:"local"});break;case"ExportNamedDeclaration":if(!H.declaration||typeof H.declaration!=="object"||!("type"in H.declaration))break;if(H.declaration.type==="VariableDeclaration")B9(q,H.declaration,Q.componentScope,Q.componentScope,{forceProp:!0});else if(H.declaration.type==="FunctionDeclaration"&&H.declaration.id?.name)R8(Q.componentScope,H.declaration.id.name,{kind:"prop",publicPropName:H.declaration.id.name});break}}}function L7(q,Q){Q.componentScope.clear(),Q.scopeDeclarations=new WeakMap,Q.activeScopes.length=0,Qq(q,Q,Q.parsed?.instance)}function C7(q){return{varScopeStack:[q.componentScope]}}function A7(q,Q,Z,Y){if(!V0(Y))return;let H=r3(Q,Y),V=Z.varScopeStack[Z.varScopeStack.length-1]??Q.componentScope;switch(String(Y.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":e3(Y,H);break;case"BlockStatement":qq(q,Y.body,H,V);break;case"CatchClause":if("param"in Y)for(let W of X8(Y.param))R8(H,W,{kind:"local"});break;case"EachBlock":{let W=Y;for(let G of X8(W.context))R8(H,G,{kind:"local"});if(typeof W.index==="string")R8(H,W.index,{kind:"local"});else if(W.index&&"name"in W.index)R8(H,W.index.name,{kind:"local"});break}case"ThenBlock":if("value"in Y)for(let W of X8(Y.value))R8(H,W,{kind:"local"});break;case"CatchBlock":if("error"in Y)for(let W of X8(Y.error))R8(H,W,{kind:"local"});break}if($7(Y))Z.varScopeStack.push(H)}function w7(q,Q){if($7(Q))q.varScopeStack.pop()}var Zq=new Set(["$state","$derived","$effect","$props","$bindable","$inspect","$host"]);function Yq(q,Q){switch(Q?.type){case"MemberExpression":return Q.computed||q===Q.object;case"MethodDefinition":return!!Q.computed;case"MetaProperty":return q===Q.meta;case"PropertyDefinition":return Q.computed||q===Q.value;case"Property":return Q.computed||q===Q.value;case"ExportSpecifier":case"ImportSpecifier":return q===Q.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}function Hq(q,Q){for(let Z=Q.length-1;Z>=0;Z-=1)if(Q[Z]?.has(q))return!0;return!1}function Jq(q){let Q=new Set;if(!q||typeof q!=="object"||!("type"in q))return Q;switch(String(q.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":{let Z=q;if(Z.id?.name)Q.add(Z.id.name);for(let Y of Z.params??[])X8(Y,Q);break}case"BlockStatement":X0(q.body,Q);break;case"CatchClause":X8(q.param,Q);break;case"EachBlock":{let Z=q;if(X8(Z.context,Q),typeof Z.index==="string")Q.add(Z.index);else if(Z.index?.name)Q.add(Z.index.name);break}case"ThenBlock":X8(q.value,Q);break;case"CatchBlock":X8(q.error,Q);break}return Q}function X0(q,Q){if(!Array.isArray(q))return;for(let Z of q){if(!Z||typeof Z!=="object"||!("type"in Z))continue;switch(String(Z.type)){case"ImportDeclaration":for(let Y of Z.specifiers??[])if(Y.local?.name)Q.add(Y.local.name);break;case"VariableDeclaration":for(let Y of Z.declarations??[])X8(Y.id,Q);break;case"FunctionDeclaration":case"ClassDeclaration":{let Y=Z.id?.name;if(Y)Q.add(Y);break}case"ExportNamedDeclaration":{let Y=Z.declaration;if(Y&&typeof Y==="object"&&"type"in Y)X0([Y],Q);break}}}}function M9(q,Q){if(!q||typeof q!=="object")return!1;let Z=[...Q],Y=!1;return d8(q,{enter(H,V){if(Y){this.skip();return}if(V0(H))Z.push(Jq(H));if(V&&H.type==="Identifier"&&Zq.has(H.name)&&!V.type.startsWith("TS")&&Yq(H,V)&&!Hq(H.name,Z))Y=!0,this.skip()},leave(H){if(V0(H))Z.pop()}}),Y}function I7(q){if(!q||typeof q!=="object")return;if("content"in q){let Q=q.content,Z=Q&&typeof Q==="object"&&"body"in Q?Q.body:void 0;if(Array.isArray(Z))return Z}if("body"in q&&Array.isArray(q.body))return q.body;return}function P7(q){if(q.runesOptionOverride!==void 0)return q.runesOptionOverride?"runes":"legacy";let Q=q.parsed;if(!Q)return"legacy";let Z=new Set;X0(I7(Q.module),Z);let Y=new Set;return X0(I7(Q.instance),Y),M9(Q.module,[Z])||M9(Q.instance,[Z,Y])||M9(Q.html,[Z,Y])?"runes":"legacy"}var Kq=/[A-Za-z_$][\w$]*/g;function Vq(q,Q,Z){let Y=new Map,H=Q.typeParameters?.params,V=Z.typeArguments?.params;if(!H?.length||!V?.length)return Y;for(let K=0;K<H.length;K++){let W=H[K]?.name,G=V[K];if(!W||G?.start===void 0||G?.end===void 0)continue;let R=J8(q,G.start,G.end)?.trim();if(R)Y.set(W,R)}return Y}function Xq(q,Q){if(Q.size===0)return q;return q.replace(Kq,(Z)=>Q.get(Z)??Z)}function T1(q,Q,Z,Y,H=new Set){let V=new Map;if(!Z?.type)return V;let K=(W)=>{for(let G of W){if(G?.type!=="TSPropertySignature"||G.computed)continue;if(!G.key)continue;let R=q.getPropertyName(G.key);if(!R)continue;let O=G.typeAnnotation?.start,$=G.typeAnnotation?.end;if(O===void 0||$===void 0)continue;let M=J8(Q,O+1,$)?.trim();if(!M)continue;V.set(R,{type:M,optional:G.optional===!0,source:V8(Q,G)})}};switch(Z.type){case"TSTypeLiteral":K(Z.members??[]);break;case"TSInterfaceDeclaration":K(Z.body?.body??[]);break;case"TSTypeAliasDeclaration":{let W=T1(q,Q,Z.typeAnnotation,Y,H);for(let[G,R]of W)V.set(G,R);break}case"TSTypeReference":{let W=q7(Z.typeName);if(!W||H.has(W))break;let G=Y.get(W);if(!G)break;H.add(W);let R=T1(q,Q,G,Y,H);H.delete(W);let O=Vq(Q,G,Z);for(let[$,M]of R)V.set($,O.size===0?M:{...M,type:Xq(M.type,O)});break}case"TSIntersectionType":for(let W of Z.types??[]){let G=T1(q,Q,W,Y,H);for(let[R,O]of G)V.set(R,O)}break;case"TSParenthesizedType":{let W=T1(q,Q,Z.typeAnnotation,Y,H);for(let[G,R]of W)V.set(G,R);break}}return V}function S7(q,Q,Z){if(Q.runesPropsDeclarationMetadataByDeclaratorStart.clear(),Q.explicitPropTypesByName.clear(),Q.explicitVariableTypesByName.clear(),Q.typeImportBindingsByLocalName.clear(),Q.localTypeDeclarationsByName.clear(),Q.typedRunesPropsDeclarations.length=0,!Q.source)return;let Y=Z;Q.scriptLanguage=q.resolveScriptLanguage(Y),Q.customElementTag=Y.options?.customElement?.tag,Q.runesOptionOverride=Y.options?.runes,Q.scriptGenericsAttribute=q.resolveScriptGenericsAttribute(Y);let H=Y.instance?.content?.body??[];for(let V of H){if(!V?.type)continue;if(V.type==="ImportDeclaration"&&V.source?.value)for(let K of V.specifiers??[]){let W=K.local?.name;if(!W)continue;if(!(V.importKind==="type"||K.importKind==="type"))continue;let R,O;if(K.type==="ImportSpecifier")R="named",O=K.imported?.type==="Identifier"?K.imported.name:typeof K.imported?.value==="string"?K.imported.value:void 0;else if(K.type==="ImportDefaultSpecifier")R="default";else if(K.type==="ImportNamespaceSpecifier")R="namespace";if(!R)continue;Q.typeImportBindingsByLocalName.set(W,{importedName:O,localName:W,source:String(V.source.value),specifierType:R})}if((V.type==="TSInterfaceDeclaration"||V.type==="TSTypeAliasDeclaration")&&V.id?.name&&V.start!==void 0&&V.end!==void 0)Q.localTypeDeclarationsByName.set(V.id.name,{code:J8(Q,V.start,V.end)?.trim()??"",node:V,start:V.start});if(V.type==="ExportNamedDeclaration"&&V.declaration?.type==="VariableDeclaration")for(let K of V.declaration.declarations??[]){if(K.id?.type!=="Identifier"||!K.id.name)continue;let W=Q0(Q,K.id.typeAnnotation);if(W)Q.explicitPropTypesByName.set(K.id.name,W)}else if(V.type==="VariableDeclaration")for(let K of V.declarations??[]){if(K.id?.type!=="Identifier"||!K.id.name)continue;let W=Q0(Q,K.id.typeAnnotation);if(W)Q.explicitVariableTypesByName.set(K.id.name,W)}}for(let V of H){if(!V||typeof V!=="object"||!("declarations"in V))continue;for(let K of V.declarations??[]){if(!m8(e8(K.init),"$props"))continue;let W=K.id?.typeAnnotation?void 0:m6(K.init),G=K.id?.typeAnnotation?.typeAnnotation??W,R=K.id?.typeAnnotation?Q0(Q,K.id.typeAnnotation):Z7(Q,W),O=T1(q,Q,G,new Map(Array.from(Q.localTypeDeclarationsByName.entries(),([F,P])=>[F,P.node]))),$=new Set,M=new Set;if(P8(Q,G,$,M),K7(Q,$,M),K.start!==void 0){let F={canonicalType:R,props:O,referencedImportedTypes:$,referencedLocalTypes:M};if(Q.runesPropsDeclarationMetadataByDeclaratorStart.set(K.start,F),R)Q.typedRunesPropsDeclarations.push(F)}}}}function D7(q,Q,Z){for(let Y of Z.declarations){if(!m8(e8(Y.init),"$props"))continue;if(Y.id.type==="Identifier"){Q.wholePropsLocals.add(Y.id.name),Q.restPropLocals.add(Y.id.name);let K=J9(Q,Y.start);if(K)for(let[W,G]of K.props)w1(q,Q,W,{name:W,kind:"let",type:G.type,typeSource:"typescript",isFunction:!1,isFunctionDeclaration:!1,isRequired:!G.optional,constant:!1,reactive:!1,source:G.source});continue}if(Y.id.type!=="ObjectPattern")continue;let H=q1(Q,q,Z),V=Y.id.properties.filter((K)=>{if(K.type!=="Property"||K.computed)return!1;if(!q.getPropertyName(K.key))return!1;if(K.value.type==="Identifier")return!0;return K.value.type==="AssignmentPattern"&&K.value.left.type==="Identifier"}).length;for(let K of Y.id.properties){if(K.type==="RestElement"){if(K.argument.type==="Identifier")Q.restPropLocals.add(K.argument.name);continue}let W=q.getPropertyName(K.key);if(!W)continue;let G,R;if(K.value.type==="Identifier")G=K.value.name;else{let z=K.value;G=z.left.name,R=z.right}if(!G)continue;if(q.trackPropLocalName(W,G),W==="children")Q.snippetPropLocals.add(G);let O=B7(Q,q,K)??(V===1?H:void 0),$=e6(Q,Y.start,W),{init:M,bindable:F}=n6(R),P=M==null?{isFunction:!1}:V1(q,Q,M),{value:w,type:N,isFunction:v,defaultValue:g}=P,f=$?.type===void 0&&O?.type===void 0?P.resolvedType:void 0,{type:a,typeSource:x,description:Z8,params:C,returnType:J,isFunction:X}=N1({explicitType:$?.type,typeSeed:N,inferredTypeForSource:N,jsdocType:O?.type,jsdocDescription:O?.description,jsdocParams:O?.params,jsdocReturnType:O?.returnType,resolvedType:f,resolvedDescription:P.resolvedDescription,resolvedParams:P.resolvedParams,resolvedReturnType:P.resolvedReturnType,initializerIsFunction:v,isFunctionDeclaration:!1,inferIsFunctionFromTypeSignature:!0});if(F)Q.reactive_vars.add(W);w1(q,Q,W,{name:W,...G===W?{}:{localName:G},kind:"let",description:Z8,binding:O?.binding,deprecated:O?.deprecated,tags:O?.tags,...F?{bindable:!0}:{},type:a,typeSource:x,value:w,defaultValue:g,params:C,returnType:J,isFunction:X,isFunctionDeclaration:!1,isRequired:M==null&&$?.optional!==!0,constant:!1,reactive:F,source:V8(Q,K)})}}}function N7(q,Q){if(q.syntaxMode!=="runes")return;for(let[Z,Y]of Array.from(q.events.entries())){if(Y.type!=="dispatched")continue;if(Q.has(Z)||q.forwardedEvents.has(Z))continue;let H=`on${Z}`,V=q.props.get(H);if(!V)continue;let K=V.type!==void 0||V.params!==void 0||V.returnType!==void 0,W=Y.detail===void 0||Y.detail==="undefined"||Y.detail==="null"?"() => void":`(detail: ${Y.detail}) => void`;q.props.set(H,{...V,description:V.description??Y.description,type:K?V.type:W,typeSource:K?V.typeSource:"inferred",isFunction:!0}),q.events.delete(Z)}}var T7=new Set(["TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion","TSInstantiationExpression"]);function W0(q){if(!q||typeof q!=="object")return;d8(q,{enter(Q){if(!T7.has(Q.type))return;let Z=Q.expression;while(Z&&T7.has(Z.type))Z=Z.expression;if(Z)this.replace(Z)}})}var Wq=/^\s*$/;function k7(q,Q,Z){let Y=Q+1;while(Y<q.length){if(q[Y]==="\\"){Y+=2;continue}if(q[Y]===Z)return Y+1;Y++}return Y}function E7(q,Q){let Z=Q+1,Y=0;while(Z<q.length){let H=q[Z];if(H==="\\"){Z+=2;continue}if(Y===0){if(H==="`")return Z+1;if(H==="$"&&q[Z+1]==="{"){Y=1,Z+=2;continue}Z++;continue}if(H==="{")Y++;else if(H==="}")Y--;else if(H==='"'||H==="'"){Z=k7(q,Z,H);continue}else if(H==="`"){Z=E7(q,Z);continue}Z++}return Z}function Gq(q,Q){let Z=[],Y=q.length,H=0;while(H<Y){let V=q[H];if(V==='"'||V==="'"){H=k7(q,H,V);continue}if(V==="`"){H=E7(q,H);continue}if(V==="/"&&q[H+1]==="/"){let K=H+2;while(K<Y&&q[K]!==`
17
+ `)K++;H=K;continue}if(V==="/"&&q[H+1]==="*"){let K=H,W=H+2;while(W<Y&&!(q[W]==="*"&&q[W+1]==="/"))W++;let G=Math.min(W+2,Y),R=q.slice(K,G);Z.push({end:G+Q,isJsDoc:R.startsWith("/**")&&R.length>4,text:R}),H=G;continue}H++}return Z}function b7(q,Q,Z){if(!q||typeof q!=="object"||!("type"in q))return;let Y=q;if(Y.type==="FunctionDeclaration"){if(Y.id?.type==="Identifier"&&Y.id.name)Z.push({name:Y.id.name,start:Q});return}if(Y.type==="VariableDeclaration"){for(let H of Y.declarations??[])if(H?.id?.type==="Identifier"&&H.id.name)Z.push({name:H.id.name,start:Q})}}function zq(q){let Q=[];for(let Z of q){if(!Z||typeof Z!=="object"||!("type"in Z))continue;let Y=Z;if(Y.start===void 0)continue;if(Y.type==="ExportNamedDeclaration"&&Y.declaration)b7(Y.declaration,Y.start,Q);else b7(Y,Y.start,Q)}return Q}function jq(q,Q,Z){let Y;for(let H of q){if(H.end>Q)break;if(!H.isJsDoc)continue;if(!Wq.test(Z.slice(H.end,Q)))continue;Y=H}return Y}function v7(q,Q){let Z=new Map;if(!q.source)return Z;let Y=[q.parsed?.module,q.parsed?.instance],H=[],V=[];for(let K of Y){let W=K?.content;if(!W?.body||W.start===void 0||W.end===void 0)continue;H.push(...Gq(q.source.slice(W.start,W.end),W.start)),V.push(...zq(W.body))}H.sort((K,W)=>K.end-W.end);for(let K of V){let W=jq(H,K.start,q.source);if(!W)continue;let G=P1(W.text,{spacing:"preserve"}),{type:R,description:O}=R9(G);if(!R)continue;Z.set(K.name,{type:Q.aliasType(R.type),description:O||R.description})}return Z}function n8(q,Q,Z){let Y=Z._,H=!1;function V(W,{next:G,state:R}){G(R)}function K(W,G,R){if(H)return;if(!W.type)return;let O,$={},M={path:G,state:R,next:(P=R)=>{G.push(W);for(let w in W){if(w==="type")continue;let N=W[w];if(N&&typeof N==="object")if(Array.isArray(N)){let v={},g=N.length,f=!1;for(let a=0;a<g;a++){let x=N[a];if(x&&typeof x==="object"){let Z8=K(x,G,P);if(Z8)v[a]=Z8,f=!0}}if(f)$[w]=N.map((a,x)=>v[x]??a)}else{let v=K(N,G,P);if(v)$[w]=v}}if(G.pop(),Object.keys($).length>0)return h7(W,$)},stop:()=>{H=!0},visit:(P,w=R)=>{G.push(W);let N=K(P,G,w)??P;return G.pop(),N}},F=Z[W.type]??V;if(Y){let P;if(O=Y(W,{...M,next:(w=R)=>{return R=w,P=F(W,{...M,state:w}),P}}),!O&&P)O=P}else O=F(W,M);if(!O){if(Object.keys($).length>0)O=h7(W,$)}if(O)return O}return K(q,[],Q)??q}function h7(q,Q){let Z={},Y=Object.getOwnPropertyDescriptors(q);for(let H in Y)Object.defineProperty(Z,H,Y[H]);for(let H in Q)Z[H]=Q[H];return Z}var f7=/^[ \t\r\n]+/;var y7=/[ \t\r\n]+$/,$9=/[^ \t\r\n]/;var G0=/[^\n]/g;var BK=Symbol("uninitialized"),FK=Symbol("filename"),MK=Symbol("hmr");var g7="http://www.w3.org/2000/svg",_7="http://www.w3.org/1998/Math/MathML",x7=["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 A9(q,Q){if(Q.length===0)return null;let Y=new l7(Q).get(q);return Y&&Y[0][0]>0.7?Y[0][1]:null}var L9=2,C9=3;function Oq(q,Q){if(q===null&&Q===null)throw"Trying to compare two null values";if(q===null||Q===null)return 0;return q=String(q),Q=String(Q),1-Uq(q,Q)/Math.max(q.length,Q.length)}function Uq(q,Q){let Z=[],Y=0;for(let H=0;H<=Q.length;H++)for(let V=0;V<=q.length;V++){let K;if(H&&V)if(q.charAt(V-1)===Q.charAt(H-1))K=Y;else K=Math.min(Z[V],Z[V-1],Y)+1;else K=H+V;Y=Z[V],Z[V]=K}return Z.pop()}var Rq=/[^\w, ]+/;function Bq(q,Q=2){let Z="-"+q.toLowerCase().replace(Rq,"")+"-",Y=Q-Z.length,H=[];if(Y>0)for(let V=0;V<Y;++V)q+="-";for(let V=0;V<Z.length-Q+1;++V)H.push(Z.slice(V,V+Q));return H}function u7(q,Q=2){let Z={},Y=Bq(q,Q),H=0;for(H;H<Y.length;++H)if(Y[H]in Z)Z[Y[H]]+=1;else Z[Y[H]]=1;return Z}function m7(q,Q){return Q[0]-q[0]}class l7{exact_set={};match_dict={};items={};constructor(q){for(let Q=L9;Q<C9+1;++Q)this.items[Q]=[];for(let Q=0;Q<q.length;++Q)this.add(q[Q])}add(q){if(q.toLowerCase()in this.exact_set)return!1;let Z=L9;for(Z;Z<C9+1;++Z)this._add(q,Z)}_add(q,Q){let Z=q.toLowerCase(),Y=this.items[Q]||[],H=Y.length;Y.push(0);let V=u7(Z,Q),K=0,W,G;for(W in V)if(G=V[W],K+=Math.pow(G,2),W in this.match_dict)this.match_dict[W].push([H,G]);else this.match_dict[W]=[[H,G]];let R=Math.sqrt(K);Y[H]=[R,Z],this.items[Q]=Y,this.exact_set[Z]=q}get(q){let Q=q.toLowerCase(),Z=this.exact_set[Q];if(Z)return[[1,Z]];for(let Y=C9;Y>=L9;--Y){let H=this.__get(q,Y);if(H.length>0)return H}return null}__get(q,Q){let Z=q.toLowerCase(),Y={},H=u7(Z,Q),V=this.items[Q],K=0,W,G,R,O,$;for(W in H)if(G=H[W],K+=Math.pow(G,2),W in this.match_dict)for(R=0;R<this.match_dict[W].length;++R)if(O=this.match_dict[W][R][0],$=this.match_dict[W][R][1],O in Y)Y[O]+=G*$;else Y[O]=G*$;let M=Math.sqrt(K),F=[],P;for(let v in Y)P=Y[v],F.push([P/(M*V[v][0]),V[v][1]]);F.sort(m7);let w=[],N=Math.min(50,F.length);for(let v=0;v<N;++v)w.push([Oq(F[v][1],Z),F[v][1]]);F=w,F.sort(m7),w=[];for(let v=0;v<F.length;++v)if(F[v][0]===F[0][0])w.push([F[v][0],this.exact_set[F[v][1]]]);return w}}function Fq(q,Q){return q.start<=Q&&Q<q.end}function c7(q,Q={}){let{offsetLine:Z=0,offsetColumn:Y=0}=Q,H=0,V=q.split(`
18
+ `).map((G,R)=>{let O=H+G.length+1,$={start:H,end:O,line:R};return H=O,$}),K=0;function W(G,R){if(typeof G==="string")G=q.indexOf(G,R??0);if(G===-1)return;let O=V[K],$=G>=O.end?1:-1;while(O){if(Fq(O,G))return{line:Z+O.line,column:Y+G-O.start,character:G};K+=$,O=V[K]}}return W}var Mq=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function w9(q){return Mq.includes(q)||q.toLowerCase()==="!doctype"}var $q=["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 i7(q){return $q.includes(q)}var Lq=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var AK=[...Lq,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var Cq=["$state","$state.raw","$derived","$derived.by"],wK=[...Cq,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];var d7=/^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9.\-_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}]*)?$/u;var I9=[],O0,j0="(unknown)",Aq="<unknown>",z0,U0=[],wq,Iq=!1,z8;function p7(q){z0=q,U0=z0.split(`
19
+ `);let Q=c7(z0,{offsetLine:1});z8=(Z)=>{let Y=Q(Z);if(!Y)throw Error("An impossible situation occurred");return Y}}var P9,S9=[],o7=new Map;function n7(q){wq=!1,Iq=!1,Aq=j0,z0="",U0=[],O0=(q.filename??j0).replace(/\\/g,"/"),P9=q.warning??(()=>!0),I9=[]}var Pq=/^\t+/;function D9(q){return q.replace(Pq,(Q)=>Q.split("\t").join(" "))}function Sq(q,Q){let Z=U0,Y=Math.max(0,q-2),H=Math.min(q+3,Z.length),V=String(H+1).length;return Z.slice(Y,H).map((K,W)=>{let G=Y+W===q,R=String(W+Y+1).padStart(V," ");if(G){let O=" ".repeat(V+2+D9(K.slice(0,Q)).length)+"^";return`${R}: ${D9(K)}
20
+ ${O}`}return`${R}: ${D9(K)}`}).join(`
21
+ `)}class b1{name="CompileDiagnostic";constructor(q,Q,Z){if(this.code=q,this.message=Q,O0!==j0)this.filename=O0;if(Z){if(this.position=Z,this.start=z8(Z[0]),this.end=z8(Z[1]),this.start&&this.end)this.frame=Sq(this.start.line-1,this.end.column)}}toString(){let q=`${this.code}: ${this.message}`;if(this.filename){if(q+=`
22
22
  ${this.filename}`,this.start)q+=`:${this.start.line}:${this.start.column}`}if(this.frame)q+=`
23
- ${this.frame}`;return q}toJSON(){return{code:this.code,message:this.message,filename:this.filename,start:this.start,end:this.end,position:this.position,frame:this.frame}}}class w5 extends n1{name="CompileWarning";constructor(q,R,P){super(q,R,P)}}function J0(q,R,P){let C=s6;if(q)C=o6.get(q)??s6;if(C&&C.at(-1)?.has(R))return;let O=new w5(R,P,q&&q.start!==void 0?[q.start,q.end??q.start]:void 0);if(!a6(O))return;Rq.push(O)}var I5=["a11y_accesskey","a11y_aria_activedescendant_has_tabindex","a11y_aria_attributes","a11y_autocomplete_valid","a11y_autofocus","a11y_click_events_have_key_events","a11y_consider_explicit_label","a11y_distracting_elements","a11y_figcaption_index","a11y_figcaption_parent","a11y_hidden","a11y_img_redundant_alt","a11y_incorrect_aria_attribute_type","a11y_incorrect_aria_attribute_type_boolean","a11y_incorrect_aria_attribute_type_id","a11y_incorrect_aria_attribute_type_idlist","a11y_incorrect_aria_attribute_type_integer","a11y_incorrect_aria_attribute_type_token","a11y_incorrect_aria_attribute_type_tokenlist","a11y_incorrect_aria_attribute_type_tristate","a11y_interactive_supports_focus","a11y_invalid_attribute","a11y_label_has_associated_control","a11y_media_has_caption","a11y_misplaced_role","a11y_misplaced_scope","a11y_missing_attribute","a11y_missing_content","a11y_mouse_events_have_key_events","a11y_no_abstract_role","a11y_no_interactive_element_to_noninteractive_role","a11y_no_noninteractive_element_interactions","a11y_no_noninteractive_element_to_interactive_role","a11y_no_noninteractive_tabindex","a11y_no_redundant_roles","a11y_no_static_element_interactions","a11y_positive_tabindex","a11y_role_has_required_aria_props","a11y_role_supports_aria_props","a11y_role_supports_aria_props_implicit","a11y_unknown_aria_attribute","a11y_unknown_role","bidirectional_control_characters","legacy_code","unknown_code","options_deprecated_accessors","options_deprecated_immutable","options_missing_custom_element","options_removed_enable_sourcemap","options_removed_hydratable","options_removed_loop_guard_timeout","options_renamed_ssr_dom","custom_element_props_identifier","export_let_unused","legacy_component_creation","non_reactive_update","perf_avoid_inline_class","perf_avoid_nested_class","reactive_declaration_invalid_placement","reactive_declaration_module_script_dependency","state_referenced_locally","store_rune_conflict","css_unused_selector","attribute_avoid_is","attribute_global_event_reference","attribute_illegal_colon","attribute_invalid_property_name","attribute_quoted","bind_invalid_each_rest","block_empty","component_name_lowercase","element_implicitly_closed","element_invalid_self_closing_tag","event_directive_deprecated","node_invalid_placement_ssr","script_context_deprecated","script_unknown_attribute","slot_element_deprecated","svelte_component_deprecated","svelte_element_invalid_this","svelte_self_deprecated"];function f5(q,R,P){J0(q,"legacy_code",`\`${R}\` is no longer valid — please use \`${P}\` instead
24
- https://svelte.dev/e/legacy_code`)}function S5(q,R,P){J0(q,"unknown_code",`${P?`\`${R}\` is not a recognised code (did you mean \`${P}\`?)`:`\`${R}\` is not a recognised code`}
25
- https://svelte.dev/e/unknown_code`)}function e6(q){J0(q,"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 q7(q){J0(q,"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 v5(q){J0(q,"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")}function T5(q){J0(q,"options_removed_hydratable","The `hydratable` option has been removed. Svelte components are always hydratable now\nhttps://svelte.dev/e/options_removed_hydratable")}function N5(q){J0(q,"options_removed_loop_guard_timeout","The `loopGuardTimeout` option has been removed\nhttps://svelte.dev/e/options_removed_loop_guard_timeout")}function D5(q){J0(q,"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 R7(q,R,P){J0(q,"element_implicitly_closed",`This element is implicitly closed by the following \`${R}\`, which can cause an unexpected DOM structure. Add an explicit \`${P}\` to avoid surprises.
26
- https://svelte.dev/e/element_implicitly_closed`)}function u5(q){J0(q,"script_unknown_attribute","Unrecognised attribute — should be one of `generics`, `lang` or `module`. If this exists for a preprocessor, ensure that the preprocessor removes it\nhttps://svelte.dev/e/script_unknown_attribute")}function E5(q){J0(q,"svelte_element_invalid_this","`this` should be an `{expression}`. Using a string attribute value will cause an error in future versions of Svelte\nhttps://svelte.dev/e/svelte_element_invalid_this")}var Z$=/^\s*svelte-ignore\s/,k5={"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"},t1=I5.concat(B5);function Hq(q,R,P){let C=Z$.exec(R);if(!C)return[];let O=C[0].length;q+=O;let H=[];if(P)for(let M of R.slice(O).matchAll(/([\w$-]+)(,)?/gm)){let F=M[1];if(t1.includes(F))H.push(F);else{let Y=k5[F]??F.replace(/-/g,"_"),K=q+M.index,J=K+F.length;if(t1.includes(Y))f5({start:K,end:J},F,Y);else{let $=r1(F,t1);S5({start:K,end:J},F,$)}}if(!M[2])break}else for(let M of R.slice(O).matchAll(/[\w$-]+/gm)){let F=M[0];if(H.push(F),!t1.includes(F)){let Y=k5[F]??F.replace(/-/g,"_");if(t1.includes(Y))H.push(Y)}}return H}function P1(q){let R=q.at(0),P=q.at(-1);if(R?.type==="Text")if(!A1.test(R.data))q.shift();else R.data=R.data.replace(m6,"");if(P?.type==="Text")if(!A1.test(P.data))q.pop();else P.data=P.data.replace(x6,"")}function y5(q,R){return U8(R,null,{_(C,{next:O}){delete C.metadata,O()},Root(C,{visit:O}){let{instance:H,module:M,options:F}=C;if(F?.__raw__){let J=C.fragment.nodes.findIndex(($)=>F.end<=$.start);if(J===-1)J=C.fragment.nodes.length;C.fragment.nodes.splice(J,0,F.__raw__)}let Y=null,K=null;if(C.fragment.nodes.length>0){let J=C.fragment.nodes.at(0),$=C.fragment.nodes.at(-1);Y=J.start,K=$.end;while(/\s/.test(q[Y]))Y+=1;while(/\s/.test(q[K-1]))K-=1}if(H)delete H.attributes;if(M)delete M.attributes;return{html:{type:"Fragment",start:Y,end:K,children:C.fragment.nodes.map((J)=>O(J))},instance:H,module:M,css:R.css?O(R.css):void 0,_comments:R.comments?.length>0?R.comments:void 0}},AnimateDirective(C){return{...C,type:"Animation"}},AwaitBlock(C,{visit:O}){let H={type:"PendingBlock",start:null,end:null,children:C.pending?.nodes.map((Y)=>O(Y))??[],skip:!0},M={type:"ThenBlock",start:null,end:null,children:C.then?.nodes.map((Y)=>O(Y))??[],skip:!0},F={type:"CatchBlock",start:null,end:null,children:C.catch?.nodes.map((Y)=>O(Y))??[],skip:!0};if(C.pending){let Y=C.pending.nodes.at(0),K=C.pending.nodes.at(-1);H.start=Y?.start??q.indexOf("}",C.expression.end)+1,H.end=K?.end??H.start,H.skip=!1}if(C.then){let Y=C.then.nodes.at(0),K=C.then.nodes.at(-1);M.start=H.end??Y?.start??q.indexOf("}",C.expression.end)+1,M.end=K?.end??q.lastIndexOf("}",H.end??C.expression.end)+1,M.skip=!1}if(C.catch){let Y=C.catch.nodes.at(0),K=C.catch.nodes.at(-1);F.start=M.end??H.end??Y?.start??q.indexOf("}",C.expression.end)+1,F.end=K?.end??q.lastIndexOf("}",M.end??H.end??C.expression.end)+1,F.skip=!1}return{type:"AwaitBlock",start:C.start,end:C.end,expression:C.expression,value:C.value,error:C.error,pending:H,then:M,catch:F}},BindDirective(C){return{...C,type:"Binding"}},ClassDirective(C){return{...C,type:"Class"}},Comment(C){return{...C,ignores:Hq(C.start,C.data,!1)}},ComplexSelector(C,{next:O}){O();let H=[];for(let M of C.children){if(M.combinator)H.push(M.combinator);H.push(...M.selectors)}return{type:"Selector",start:C.start,end:C.end,children:H}},Component(C,{visit:O}){return{type:"InlineComponent",start:C.start,end:C.end,name:C.name,attributes:C.attributes.map((H)=>O(H)),children:C.fragment.nodes.map((H)=>O(H))}},ConstTag(C){if(C.expression!==void 0)return C;let O=C,{id:H}={...O.declaration.declarations[0]};return delete H.typeAnnotation,{type:"ConstTag",start:O.start,end:C.end,expression:{type:"AssignmentExpression",start:(O.declaration.start??0)+6,end:O.declaration.end??0,operator:"=",left:H,right:O.declaration.declarations[0].init}}},DeclarationTag(C){return C},KeyBlock(C,{visit:O}){return P1(C.fragment.nodes),{type:"KeyBlock",start:C.start,end:C.end,expression:C.expression,children:C.fragment.nodes.map((H)=>O(H))}},EachBlock(C,{visit:O}){let H=void 0;if(C.fallback){let M=C.fallback.nodes.at(0),F=q.lastIndexOf("{",C.end-1),Y=M?.start??F;P1(C.fallback.nodes),H={type:"ElseBlock",start:Y,end:F,children:C.fallback.nodes.map((K)=>O(K))}}return P1(C.body.nodes),{type:"EachBlock",start:C.start,end:C.end,children:C.body.nodes.map((M)=>O(M)),context:C.context,expression:C.expression,index:C.index,key:C.key,else:H}},ExpressionTag(C,{path:O}){let H=O.at(-1);if(H?.type==="Attribute"){if(q[H.start]==="{")return{type:"AttributeShorthand",start:C.start,end:C.end,expression:C.expression}}return{type:"MustacheTag",start:C.start,end:C.end,expression:C.expression}},HtmlTag(C){return{...C,type:"RawMustacheTag"}},IfBlock(C,{visit:O}){let H=void 0;if(C.alternate){let F=C.alternate.nodes;if(F.length===1&&F[0].type==="IfBlock"&&F[0].elseif)F=F[0].consequent.nodes;let Y=q.lastIndexOf("{",C.end-1),K=F.at(0)?.start??Y;P1(C.alternate.nodes),H={type:"ElseBlock",start:K,end:Y,children:C.alternate.nodes.map((J)=>O(J))}}let M=C.elseif?C.consequent.nodes[0]?.start??q.lastIndexOf("{",C.end-1):C.start;return P1(C.consequent.nodes),{type:"IfBlock",start:M,end:C.end,expression:C.test,children:C.consequent.nodes.map((F)=>O(F)),else:H,elseif:C.elseif?!0:void 0}},OnDirective(C){return{...C,type:"EventHandler"}},SnippetBlock(C,{visit:O}){return P1(C.body.nodes),{type:"SnippetBlock",start:C.start,end:C.end,expression:C.expression,parameters:C.parameters,children:C.body.nodes.map((H)=>O(H)),typeParams:C.typeParams}},SvelteBoundary(C,{visit:O}){return P1(C.fragment.nodes),{type:"SvelteBoundary",name:"svelte:boundary",start:C.start,end:C.end,attributes:C.attributes.map((H)=>O(H)),children:C.fragment.nodes.map((H)=>O(H))}},RegularElement(C,{visit:O}){return{type:"Element",start:C.start,end:C.end,name:C.name,attributes:C.attributes.map((H)=>O(H)),children:C.fragment.nodes.map((H)=>O(H))}},SlotElement(C,{visit:O}){return{type:"Slot",start:C.start,end:C.end,name:C.name,attributes:C.attributes.map((H)=>O(H)),children:C.fragment.nodes.map((H)=>O(H))}},Attribute(C,{visit:O,next:H,path:M}){if(C.value!==!0&&!Array.isArray(C.value)){M.push(C);let F=[O(C.value)];return M.pop(),{...C,value:F}}else return H()},StyleDirective(C,{visit:O,next:H,path:M}){if(C.value!==!0&&!Array.isArray(C.value)){M.push(C);let F=[O(C.value)];return M.pop(),{...C,value:F}}else return H()},SpreadAttribute(C){return{...C,type:"Spread"}},StyleSheet(C,O){return{...C,...O.next(),type:"Style"}},SvelteBody(C,{visit:O}){return{type:"Body",name:"svelte:body",start:C.start,end:C.end,attributes:C.attributes.map((H)=>O(H)),children:C.fragment.nodes.map((H)=>O(H))}},SvelteComponent(C,{visit:O}){return{type:"InlineComponent",name:"svelte:component",start:C.start,end:C.end,expression:C.expression,attributes:C.attributes.map((H)=>O(H)),children:C.fragment.nodes.map((H)=>O(H))}},SvelteDocument(C,{visit:O}){return{type:"Document",name:"svelte:document",start:C.start,end:C.end,attributes:C.attributes.map((H)=>O(H)),children:C.fragment.nodes.map((H)=>O(H))}},SvelteElement(C,{visit:O}){let H=C.tag;if(H.type==="Literal"&&typeof H.value==="string"&&q[C.tag.start-1]!=="{")H=H.value;return{type:"Element",name:"svelte:element",start:C.start,end:C.end,tag:H,attributes:C.attributes.map((M)=>O(M)),children:C.fragment.nodes.map((M)=>O(M))}},SvelteFragment(C,{visit:O}){return{type:"SlotTemplate",name:"svelte:fragment",start:C.start,end:C.end,attributes:C.attributes.map((H)=>O(H)),children:C.fragment.nodes.map((H)=>O(H))}},SvelteHead(C,{visit:O}){return{type:"Head",name:"svelte:head",start:C.start,end:C.end,attributes:C.attributes.map((H)=>O(H)),children:C.fragment.nodes.map((H)=>O(H))}},SvelteOptions(C,{visit:O}){return{type:"Options",name:"svelte:options",start:C.start,end:C.end,attributes:C.attributes.map((H)=>O(H))}},SvelteSelf(C,{visit:O}){return{type:"InlineComponent",name:"svelte:self",start:C.start,end:C.end,attributes:C.attributes.map((H)=>O(H)),children:C.fragment.nodes.map((H)=>O(H))}},SvelteWindow(C,{visit:O}){return{type:"Window",name:"svelte:window",start:C.start,end:C.end,attributes:C.attributes.map((H)=>O(H)),children:C.fragment.nodes.map((H)=>O(H))}},Text(C,{path:O}){let H=O.at(-1);if(H?.type==="RegularElement"&&H.name==="style")return{type:"Text",start:C.start,end:C.end,data:C.data}},TitleElement(C,{visit:O}){return{type:"Title",name:"title",start:C.start,end:C.end,attributes:C.attributes.map((H)=>O(H)),children:C.fragment.nodes.map((H)=>O(H))}},TransitionDirective(C){return{...C,type:"Transition"}},UseDirective(C){return{...C,type:"Action"}},LetDirective(C){return{...C,type:"Let"}}})}var Bq={};hU(Bq,{version:()=>L4,tokenizer:()=>r$,tokTypes:()=>W,tokContexts:()=>A8,parseExpressionAt:()=>i$,parse:()=>c$,nonASCIIwhitespace:()=>Z7,lineBreakG:()=>p5,lineBreak:()=>x8,keywordTypes:()=>Jq,isNewLine:()=>O1,isIdentifierStart:()=>a8,isIdentifierChar:()=>K0,getLineInfo:()=>Y7,defaultOptions:()=>Qq,TokenType:()=>V8,Token:()=>zq,TokContext:()=>e8,SourceLocation:()=>R9,Position:()=>j1,Parser:()=>j8,Node:()=>C9});var Y$=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],_5=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],F$="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",m5="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",P7={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"},C7="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",V$={5:C7,"5module":C7+" export import",6:C7+" const class extends export import super"},x5=/^in(stanceof)?$/,J$=new RegExp("["+m5+"]"),K$=new RegExp("["+m5+F$+"]");function O7(q,R){var P=65536;for(var C=0;C<R.length;C+=2){if(P+=R[C],P>q)return!1;if(P+=R[C+1],P>=q)return!0}return!1}function a8(q,R){if(q<65)return q===36;if(q<91)return!0;if(q<97)return q===95;if(q<123)return!0;if(q<=65535)return q>=170&&J$.test(String.fromCharCode(q));if(R===!1)return!1;return O7(q,_5)}function K0(q,R){if(q<48)return q===36;if(q<58)return!0;if(q<65)return!1;if(q<91)return!0;if(q<97)return q===95;if(q<123)return!0;if(q<=65535)return q>=170&&K$.test(String.fromCharCode(q));if(R===!1)return!1;return O7(q,_5)||O7(q,Y$)}var V8=function(R,P){if(P===void 0)P={};this.label=R,this.keyword=P.keyword,this.beforeExpr=!!P.beforeExpr,this.startsExpr=!!P.startsExpr,this.isLoop=!!P.isLoop,this.isAssign=!!P.isAssign,this.prefix=!!P.prefix,this.postfix=!!P.postfix,this.binop=P.binop||null,this.updateContext=null};function n8(q,R){return new V8(q,{beforeExpr:!0,binop:R})}var t8={beforeExpr:!0},r8={startsExpr:!0},Jq={};function F8(q,R){if(R===void 0)R={};return R.keyword=q,Jq[q]=new V8(q,R)}var W={num:new V8("num",r8),regexp:new V8("regexp",r8),string:new V8("string",r8),name:new V8("name",r8),privateId:new V8("privateId",r8),eof:new V8("eof"),bracketL:new V8("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new V8("]"),braceL:new V8("{",{beforeExpr:!0,startsExpr:!0}),braceR:new V8("}"),parenL:new V8("(",{beforeExpr:!0,startsExpr:!0}),parenR:new V8(")"),comma:new V8(",",t8),semi:new V8(";",t8),colon:new V8(":",t8),dot:new V8("."),question:new V8("?",t8),questionDot:new V8("?."),arrow:new V8("=>",t8),template:new V8("template"),invalidTemplate:new V8("invalidTemplate"),ellipsis:new V8("...",t8),backQuote:new V8("`",r8),dollarBraceL:new V8("${",{beforeExpr:!0,startsExpr:!0}),eq:new V8("=",{beforeExpr:!0,isAssign:!0}),assign:new V8("_=",{beforeExpr:!0,isAssign:!0}),incDec:new V8("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new V8("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:n8("||",1),logicalAND:n8("&&",2),bitwiseOR:n8("|",3),bitwiseXOR:n8("^",4),bitwiseAND:n8("&",5),equality:n8("==/!=/===/!==",6),relational:n8("</>/<=/>=",7),bitShift:n8("<</>>/>>>",8),plusMin:new V8("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:n8("%",10),star:n8("*",10),slash:n8("/",10),starstar:new V8("**",{beforeExpr:!0}),coalesce:n8("??",1),_break:F8("break"),_case:F8("case",t8),_catch:F8("catch"),_continue:F8("continue"),_debugger:F8("debugger"),_default:F8("default",t8),_do:F8("do",{isLoop:!0,beforeExpr:!0}),_else:F8("else",t8),_finally:F8("finally"),_for:F8("for",{isLoop:!0}),_function:F8("function",r8),_if:F8("if"),_return:F8("return",t8),_switch:F8("switch"),_throw:F8("throw",t8),_try:F8("try"),_var:F8("var"),_const:F8("const"),_while:F8("while",{isLoop:!0}),_with:F8("with"),_new:F8("new",{beforeExpr:!0,startsExpr:!0}),_this:F8("this",r8),_super:F8("super",r8),_class:F8("class",r8),_extends:F8("extends",t8),_export:F8("export"),_import:F8("import",r8),_null:F8("null",r8),_true:F8("true",r8),_false:F8("false",r8),_in:F8("in",{beforeExpr:!0,binop:7}),_instanceof:F8("instanceof",{beforeExpr:!0,binop:7}),_typeof:F8("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:F8("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:F8("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},x8=/\r\n?|\n|\u2028|\u2029/,p5=new RegExp(x8.source,"g");function O1(q){return q===10||q===13||q===8232||q===8233}function c5(q,R,P){if(P===void 0)P=q.length;for(var C=R;C<P;C++){var O=q.charCodeAt(C);if(O1(O))return C<P-1&&O===13&&q.charCodeAt(C+1)===10?C+2:C+1}return-1}var Z7=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,y8=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,i5=Object.prototype,W$=i5.hasOwnProperty,X$=i5.toString,w1=Object.hasOwn||function(q,R){return W$.call(q,R)},b5=Array.isArray||function(q){return X$.call(q)==="[object Array]"},h5=Object.create(null);function _0(q){return h5[q]||(h5[q]=new RegExp("^(?:"+q.replace(/ /g,"|")+")$"))}function u0(q){if(q<=65535)return String.fromCharCode(q);return q-=65536,String.fromCharCode((q>>10)+55296,(q&1023)+56320)}var G$=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,j1=function(R,P){this.line=R,this.column=P};j1.prototype.offset=function(R){return new j1(this.line,this.column+R)};var R9=function(R,P,C){if(this.start=P,this.end=C,R.sourceFile!==null)this.source=R.sourceFile};function Y7(q,R){for(var P=1,C=0;;){var O=c5(q,C,R);if(O<0)return new j1(P,R-C);++P,C=O}}var Qq={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},g5=!1;function z$(q){var R={};for(var P in Qq)R[P]=q&&w1(q,P)?q[P]:Qq[P];if(R.ecmaVersion==="latest")R.ecmaVersion=1e8;else if(R.ecmaVersion==null){if(!g5&&typeof console==="object"&&console.warn)g5=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
27
- Defaulting to 2020, but this will stop working in the future.`);R.ecmaVersion=11}else if(R.ecmaVersion>=2015)R.ecmaVersion-=2009;if(R.allowReserved==null)R.allowReserved=R.ecmaVersion<5;if(!q||q.allowHashBang==null)R.allowHashBang=R.ecmaVersion>=14;if(b5(R.onToken)){var C=R.onToken;R.onToken=function(O){return C.push(O)}}if(b5(R.onComment))R.onComment=B$(R,R.onComment);if(R.sourceType==="commonjs"&&R.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return R}function B$(q,R){return function(P,C,O,H,M,F){var Y={type:P?"Block":"Line",value:C,start:O,end:H};if(q.locations)Y.loc=new R9(this,M,F);if(q.ranges)Y.range=[O,H];R.push(Y)}}var C1=1,H1=2,F7=4,r5=8,V7=16,d5=32,Kq=64,a5=128,M1=256,P9=512,s5=1024,Wq=C1|H1|M1;function J7(q,R){return H1|(q?F7:0)|(R?r5:0)}var Zq=0,K7=1,k0=2,o5=3,n5=4,t5=5,j8=function(R,P,C){this.options=R=z$(R),this.sourceFile=R.sourceFile,this.keywords=_0(V$[R.ecmaVersion>=6?6:R.sourceType==="module"?"5module":5]);var O="";if(R.allowReserved!==!0){if(O=P7[R.ecmaVersion>=6?6:R.ecmaVersion===5?5:3],R.sourceType==="module")O+=" await"}this.reservedWords=_0(O);var H=(O?O+" ":"")+P7.strict;if(this.reservedWordsStrict=_0(H),this.reservedWordsStrictBind=_0(H+" "+P7.strictBind),this.input=String(P),this.containsEsc=!1,C)this.pos=C,this.lineStart=this.input.lastIndexOf(`
28
- `,C-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(x8).length;else this.pos=this.lineStart=0,this.curLine=1;if(this.type=W.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=R.sourceType==="module",this.strict=this.inModule||R.strict===!0||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&R.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2);this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?H1:C1),this.regexpState=null,this.privateNameStack=[]},R0={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};j8.prototype.parse=function(){var R=this,P=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return R.parseTopLevel(P)})};R0.inFunction.get=function(){return(this.currentVarScope().flags&H1)>0};R0.inGenerator.get=function(){return(this.currentVarScope().flags&r5)>0};R0.inAsync.get=function(){return(this.currentVarScope().flags&F7)>0};R0.canAwait.get=function(){for(var q=this.scopeStack.length-1;q>=0;q--){var R=this.scopeStack[q],P=R.flags;if(P&(M1|P9))return!1;if(P&H1)return(P&F7)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};R0.allowReturn.get=function(){if(this.inFunction)return!0;if(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&C1)return!0;return!1};R0.allowSuper.get=function(){var q=this.currentThisScope(),R=q.flags;return(R&Kq)>0||this.options.allowSuperOutsideMethod};R0.allowDirectSuper.get=function(){return(this.currentThisScope().flags&a5)>0};R0.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};R0.allowNewDotTarget.get=function(){for(var q=this.scopeStack.length-1;q>=0;q--){var R=this.scopeStack[q],P=R.flags;if(P&(M1|P9)||P&H1&&!(P&V7))return!0}return!1};R0.allowUsing.get=function(){var q=this.currentScope(),R=q.flags;if(R&s5)return!1;if(!this.inModule&&R&C1)return!1;return!0};R0.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&M1)>0};j8.extend=function(){var R=[],P=arguments.length;while(P--)R[P]=arguments[P];var C=this;for(var O=0;O<R.length;O++)C=R[O](C);return C};j8.parse=function(R,P){return new this(P,R).parse()};j8.parseExpressionAt=function(R,P,C){var O=new this(C,R,P);return O.nextToken(),O.parseExpression()};j8.tokenizer=function(R,P){return new this(P,R)};Object.defineProperties(j8.prototype,R0);var l8=j8.prototype,U$=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;l8.strictDirective=function(q){if(this.options.ecmaVersion<5)return!1;for(;;){y8.lastIndex=q,q+=y8.exec(this.input)[0].length;var R=U$.exec(this.input.slice(q));if(!R)return!1;if((R[1]||R[2])==="use strict"){y8.lastIndex=q+R[0].length;var P=y8.exec(this.input),C=P.index+P[0].length,O=this.input.charAt(C);return O===";"||O==="}"||x8.test(P[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(O)||O==="!"&&this.input.charAt(C+1)==="=")}if(q+=R[0].length,y8.lastIndex=q,q+=y8.exec(this.input)[0].length,this.input[q]===";")q++}};l8.eat=function(q){if(this.type===q)return this.next(),!0;else return!1};l8.isContextual=function(q){return this.type===W.name&&this.value===q&&!this.containsEsc};l8.eatContextual=function(q){if(!this.isContextual(q))return!1;return this.next(),!0};l8.catchStackOverflow=function(q){try{return q()}catch(R){if(R instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(R.message)||/\btoo much recursion\b/i.test(R.message)))this.raise(this.start,"Not enough stack space to parse input");else throw R}};l8.expectContextual=function(q){if(!this.eatContextual(q))this.unexpected()};l8.canInsertSemicolon=function(){return this.type===W.eof||this.type===W.braceR||x8.test(this.input.slice(this.lastTokEnd,this.start))};l8.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};l8.semicolon=function(){if(!this.eat(W.semi)&&!this.insertSemicolon())this.unexpected()};l8.afterTrailingComma=function(q,R){if(this.type===q){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!R)this.next();return!0}};l8.expect=function(q){this.eat(q)||this.unexpected()};l8.unexpected=function(q){this.raise(q!=null?q:this.start,"Unexpected token")};var Xq=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};l8.checkPatternErrors=function(q,R){if(!q)return;if(q.trailingComma>-1)this.raiseRecoverable(q.trailingComma,"Comma is not permitted after the rest element");var P=R?q.parenthesizedAssign:q.parenthesizedBind;if(P>-1)this.raiseRecoverable(P,R?"Assigning to rvalue":"Parenthesized pattern")};l8.checkExpressionErrors=function(q,R){if(!q)return!1;var{shorthandAssign:P,doubleProto:C}=q;if(!R)return P>=0||C>=0;if(P>=0)this.raise(P,"Shorthand property assignments are valid only in destructuring patterns");if(C>=0)this.raiseRecoverable(C,"Redefinition of __proto__ property")};l8.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos))this.raise(this.yieldPos,"Yield expression cannot be a default value");if(this.awaitPos)this.raise(this.awaitPos,"Await expression cannot be a default value")};l8.isSimpleAssignTarget=function(q){if(q.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(q.expression);return q.type==="Identifier"||q.type==="MemberExpression"};var x=j8.prototype;x.parseTopLevel=function(q){var R=Object.create(null);if(!q.body)q.body=[];while(this.type!==W.eof){var P=this.parseStatement(null,!0,R);q.body.push(P)}if(this.inModule)for(var C=0,O=Object.keys(this.undefinedExports);C<O.length;C+=1){var H=O[C];this.raiseRecoverable(this.undefinedExports[H].start,"Export '"+H+"' is not defined")}return this.adaptDirectivePrologue(q.body),this.next(),q.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(q,"Program")};var W7={kind:"loop"},$$={kind:"switch"};x.isLet=function(q){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;y8.lastIndex=this.pos;var R=y8.exec(this.input),P=this.pos+R[0].length,C=this.fullCharCodeAt(P);if(C===91||C===92)return!0;if(q)return!1;if(C===123)return!0;if(a8(C)){var O=P;do P+=C<=65535?1:2;while(K0(C=this.fullCharCodeAt(P)));if(C===92)return!0;var H=this.input.slice(O,P);if(!x5.test(H))return!0}return!1};x.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;y8.lastIndex=this.pos;var q=y8.exec(this.input),R=this.pos+q[0].length,P;return!x8.test(this.input.slice(this.pos,R))&&this.input.slice(R,R+8)==="function"&&(R+8===this.input.length||!(K0(P=this.fullCharCodeAt(R+8))||P===92))};x.isUsingKeyword=function(q,R){if(this.options.ecmaVersion<17||!this.isContextual(q?"await":"using"))return!1;y8.lastIndex=this.pos;var P=y8.exec(this.input),C=this.pos+P[0].length;if(x8.test(this.input.slice(this.pos,C)))return!1;if(q){var O=C+5,H;if(this.input.slice(C,O)!=="using"||O===this.input.length||K0(H=this.fullCharCodeAt(O))||H===92)return!1;y8.lastIndex=O;var M=y8.exec(this.input);if(C=O+M[0].length,M&&x8.test(this.input.slice(O,C)))return!1}var F=this.fullCharCodeAt(C);if(!a8(F)&&F!==92)return!1;var Y=C;do C+=F<=65535?1:2;while(K0(F=this.fullCharCodeAt(C)));if(F===92)return!0;var K=this.input.slice(Y,C);if(x5.test(K))return!1;if(R&&!q&&K==="of"){y8.lastIndex=C;var J=y8.exec(this.input);if(C=C+J[0].length,this.input.charCodeAt(C)!==61||(F=this.input.charCodeAt(C+1))===61||F===62)return!1}return!0};x.isAwaitUsing=function(q){return this.isUsingKeyword(!0,q)};x.isUsing=function(q){return this.isUsingKeyword(!1,q)};x.parseStatement=function(q,R,P){var C=this.type,O=this.startNode(),H;if(this.isLet(q))C=W._var,H="let";switch(C){case W._break:case W._continue:return this.parseBreakContinueStatement(O,C.keyword);case W._debugger:return this.parseDebuggerStatement(O);case W._do:return this.parseDoStatement(O);case W._for:return this.parseForStatement(O);case W._function:if(q&&(this.strict||q!=="if"&&q!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(O,!1,!q);case W._class:if(q)this.unexpected();return this.parseClass(O,!0);case W._if:return this.parseIfStatement(O);case W._return:return this.parseReturnStatement(O);case W._switch:return this.parseSwitchStatement(O);case W._throw:return this.parseThrowStatement(O);case W._try:return this.parseTryStatement(O);case W._const:case W._var:if(H=H||this.value,q&&H!=="var")this.unexpected();return this.parseVarStatement(O,H);case W._while:return this.parseWhileStatement(O);case W._with:return this.parseWithStatement(O);case W.braceL:return this.parseBlock(!0,O);case W.semi:return this.parseEmptyStatement(O);case W._export:case W._import:if(this.options.ecmaVersion>10&&C===W._import){y8.lastIndex=this.pos;var M=y8.exec(this.input),F=this.pos+M[0].length,Y=this.input.charCodeAt(F);if(Y===40||Y===46)return this.parseExpressionStatement(O,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!R)this.raise(this.start,"'import' and 'export' may only appear at the top level");if(!this.inModule)this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}return C===W._import?this.parseImport(O):this.parseExport(O,P);default:if(this.isAsyncFunction()){if(q)this.unexpected();return this.next(),this.parseFunctionStatement(O,!0,!q)}var K=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(K){if(!this.allowUsing)this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement");if(q)this.raise(this.start,"Using declaration is not allowed in single-statement positions");if(K==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.next(),this.parseVar(O,!1,K),this.semicolon(),this.finishNode(O,"VariableDeclaration")}var J=this.value,$=this.parseExpression();if(C===W.name&&$.type==="Identifier"&&this.eat(W.colon))return this.parseLabeledStatement(O,J,$,q);else return this.parseExpressionStatement(O,$)}};x.parseBreakContinueStatement=function(q,R){var P=R==="break";if(this.next(),this.eat(W.semi)||this.insertSemicolon())q.label=null;else if(this.type!==W.name)this.unexpected();else q.label=this.parseIdent(),this.semicolon();var C=0;for(;C<this.labels.length;++C){var O=this.labels[C];if(q.label==null||O.name===q.label.name){if(O.kind!=null&&(P||O.kind==="loop"))break;if(q.label&&P)break}}if(C===this.labels.length)this.raise(q.start,"Unsyntactic "+R);return this.finishNode(q,P?"BreakStatement":"ContinueStatement")};x.parseDebuggerStatement=function(q){return this.next(),this.semicolon(),this.finishNode(q,"DebuggerStatement")};x.parseDoStatement=function(q){if(this.next(),this.labels.push(W7),q.body=this.parseStatement("do"),this.labels.pop(),this.expect(W._while),q.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(W.semi);else this.semicolon();return this.finishNode(q,"DoWhileStatement")};x.parseForStatement=function(q){this.next();var R=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(W7),this.enterScope(0),this.expect(W.parenL),this.type===W.semi){if(R>-1)this.unexpected(R);return this.parseFor(q,null)}var P=this.isLet();if(this.type===W._var||this.type===W._const||P){var C=this.startNode(),O=P?"let":this.value;return this.next(),this.parseVar(C,!0,O),this.finishNode(C,"VariableDeclaration"),this.parseForAfterInit(q,C,R)}var H=this.isContextual("let"),M=!1,F=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(F){var Y=this.startNode();if(this.next(),F==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.parseVar(Y,!0,F),this.finishNode(Y,"VariableDeclaration"),this.parseForAfterInit(q,Y,R)}var K=this.containsEsc,J=new Xq,$=this.start,U=R>-1?this.parseExprSubscripts(J,"await"):this.parseExpression(!0,J);if(this.type===W._in||(M=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(R>-1){if(this.type===W._in)this.unexpected(R);q.await=!0}else if(M&&this.options.ecmaVersion>=8){if(U.start===$&&!K&&U.type==="Identifier"&&U.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)q.await=!1}if(H&&M)this.raise(U.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(U,!1,J),this.checkLValPattern(U),this.parseForIn(q,U)}else this.checkExpressionErrors(J,!0);if(R>-1)this.unexpected(R);return this.parseFor(q,U)};x.parseForAfterInit=function(q,R,P){if((this.type===W._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&R.declarations.length===1){if(this.type===W._in){if((R.kind==="using"||R.kind==="await using")&&!R.declarations[0].init)this.raise(this.start,"Using declaration is not allowed in for-in loops");if(this.options.ecmaVersion>=9&&P>-1)this.unexpected(P)}else if(this.options.ecmaVersion>=9)q.await=P>-1;return this.parseForIn(q,R)}if(P>-1)this.unexpected(P);return this.parseFor(q,R)};x.parseFunctionStatement=function(q,R,P){return this.next(),this.parseFunction(q,q9|(P?0:H7),!1,R)};x.parseIfStatement=function(q){return this.next(),q.test=this.parseParenExpression(),q.consequent=this.parseStatement("if"),q.alternate=this.eat(W._else)?this.parseStatement("if"):null,this.finishNode(q,"IfStatement")};x.parseReturnStatement=function(q){if(!this.allowReturn)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(W.semi)||this.insertSemicolon())q.argument=null;else q.argument=this.parseExpression(),this.semicolon();return this.finishNode(q,"ReturnStatement")};x.parseSwitchStatement=function(q){this.next(),q.discriminant=this.parseParenExpression(),q.cases=[],this.expect(W.braceL),this.labels.push($$),this.enterScope(s5);var R;for(var P=!1;this.type!==W.braceR;)if(this.type===W._case||this.type===W._default){var C=this.type===W._case;if(R)this.finishNode(R,"SwitchCase");if(q.cases.push(R=this.startNode()),R.consequent=[],this.next(),C)R.test=this.parseExpression();else{if(P)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");P=!0,R.test=null}this.expect(W.colon)}else{if(!R)this.unexpected();R.consequent.push(this.parseStatement(null))}if(this.exitScope(),R)this.finishNode(R,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(q,"SwitchStatement")};x.parseThrowStatement=function(q){if(this.next(),x8.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return q.argument=this.parseExpression(),this.semicolon(),this.finishNode(q,"ThrowStatement")};var A$=[];x.parseCatchClauseParam=function(){var q=this.parseBindingAtom(),R=q.type==="Identifier";return this.enterScope(R?d5:0),this.checkLValPattern(q,R?n5:k0),this.expect(W.parenR),q};x.parseTryStatement=function(q){if(this.next(),q.block=this.parseBlock(),q.handler=null,this.type===W._catch){var R=this.startNode();if(this.next(),this.eat(W.parenL))R.param=this.parseCatchClauseParam();else{if(this.options.ecmaVersion<10)this.unexpected();R.param=null,this.enterScope(0)}R.body=this.parseBlock(!1),this.exitScope(),q.handler=this.finishNode(R,"CatchClause")}if(q.finalizer=this.eat(W._finally)?this.parseBlock():null,!q.handler&&!q.finalizer)this.raise(q.start,"Missing catch or finally clause");return this.finishNode(q,"TryStatement")};x.parseVarStatement=function(q,R,P){return this.next(),this.parseVar(q,!1,R,P),this.semicolon(),this.finishNode(q,"VariableDeclaration")};x.parseWhileStatement=function(q){return this.next(),q.test=this.parseParenExpression(),this.labels.push(W7),q.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(q,"WhileStatement")};x.parseWithStatement=function(q){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),q.object=this.parseParenExpression(),q.body=this.parseStatement("with"),this.finishNode(q,"WithStatement")};x.parseEmptyStatement=function(q){return this.next(),this.finishNode(q,"EmptyStatement")};x.parseLabeledStatement=function(q,R,P,C){for(var O=0,H=this.labels;O<H.length;O+=1){var M=H[O];if(M.name===R)this.raise(P.start,"Label '"+R+"' is already declared")}var F=this.type.isLoop?"loop":this.type===W._switch?"switch":null;for(var Y=this.labels.length-1;Y>=0;Y--){var K=this.labels[Y];if(K.statementStart===q.start)K.statementStart=this.start,K.kind=F;else break}return this.labels.push({name:R,kind:F,statementStart:this.start}),q.body=this.parseStatement(C?C.indexOf("label")===-1?C+"label":C:"label"),this.labels.pop(),q.label=P,this.finishNode(q,"LabeledStatement")};x.parseExpressionStatement=function(q,R){return q.expression=R,this.semicolon(),this.finishNode(q,"ExpressionStatement")};x.parseBlock=function(q,R,P){if(q===void 0)q=!0;if(R===void 0)R=this.startNode();if(R.body=[],this.expect(W.braceL),q)this.enterScope(0);while(this.type!==W.braceR){var C=this.parseStatement(null);R.body.push(C)}if(P)this.strict=!1;if(this.next(),q)this.exitScope();return this.finishNode(R,"BlockStatement")};x.parseFor=function(q,R){return q.init=R,this.expect(W.semi),q.test=this.type===W.semi?null:this.parseExpression(),this.expect(W.semi),q.update=this.type===W.parenR?null:this.parseExpression(),this.expect(W.parenR),q.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(q,"ForStatement")};x.parseForIn=function(q,R){var P=this.type===W._in;if(this.next(),R.type==="VariableDeclaration"&&R.declarations[0].init!=null&&(!P||this.options.ecmaVersion<8||this.strict||R.kind!=="var"||R.declarations[0].id.type!=="Identifier"))this.raise(R.start,(P?"for-in":"for-of")+" loop variable declaration may not have an initializer");return q.left=R,q.right=P?this.parseExpression():this.parseMaybeAssign(),this.expect(W.parenR),q.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(q,P?"ForInStatement":"ForOfStatement")};x.parseVar=function(q,R,P,C){q.declarations=[],q.kind=P;for(;;){var O=this.startNode();if(this.parseVarId(O,P),this.eat(W.eq))O.init=this.parseMaybeAssign(R);else if(!C&&P==="const"&&!(this.type===W._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!C&&(P==="using"||P==="await using")&&this.options.ecmaVersion>=17&&this.type!==W._in&&!this.isContextual("of"))this.raise(this.lastTokEnd,"Missing initializer in "+P+" declaration");else if(!C&&O.id.type!=="Identifier"&&!(R&&(this.type===W._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else O.init=null;if(q.declarations.push(this.finishNode(O,"VariableDeclarator")),!this.eat(W.comma))break}return q};x.parseVarId=function(q,R){q.id=R==="using"||R==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(q.id,R==="var"?K7:k0,!1)};var q9=1,H7=2,e5=4;x.parseFunction=function(q,R,P,C,O){if(this.initFunction(q),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!C){if(this.type===W.star&&R&H7)this.unexpected();q.generator=this.eat(W.star)}if(this.options.ecmaVersion>=8)q.async=!!C;if(R&q9){if(q.id=R&e5&&this.type!==W.name?null:this.parseIdent(),q.id&&!(R&H7))this.checkLValSimple(q.id,this.strict||q.generator||q.async?this.treatFunctionsAsVar?K7:k0:o5)}var H=this.yieldPos,M=this.awaitPos,F=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(J7(q.async,q.generator)),!(R&q9))q.id=this.type===W.name?this.parseIdent():null;return this.parseFunctionParams(q),this.parseFunctionBody(q,P,!1,O),this.yieldPos=H,this.awaitPos=M,this.awaitIdentPos=F,this.finishNode(q,R&q9?"FunctionDeclaration":"FunctionExpression")};x.parseFunctionParams=function(q){this.expect(W.parenL),q.params=this.parseBindingList(W.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};x.parseClass=function(q,R){this.next();var P=this.strict;this.strict=!0,this.parseClassId(q,R),this.parseClassSuper(q);var C=this.enterClassBody(),O=this.startNode(),H=!1;O.body=[],this.expect(W.braceL);while(this.type!==W.braceR){var M=this.parseClassElement(q.superClass!==null);if(M){if(O.body.push(M),M.type==="MethodDefinition"&&M.kind==="constructor"){if(H)this.raiseRecoverable(M.start,"Duplicate constructor in the same class");H=!0}else if(M.key&&M.key.type==="PrivateIdentifier"&&L$(C,M))this.raiseRecoverable(M.key.start,"Identifier '#"+M.key.name+"' has already been declared")}}return this.strict=P,this.next(),q.body=this.finishNode(O,"ClassBody"),this.exitClassBody(),this.finishNode(q,R?"ClassDeclaration":"ClassExpression")};x.parseClassElement=function(q){if(this.eat(W.semi))return null;var R=this.options.ecmaVersion,P=this.startNode(),C="",O=!1,H=!1,M="method",F=!1;if(this.eatContextual("static")){if(R>=13&&this.eat(W.braceL))return this.parseClassStaticBlock(P),P;if(this.isClassElementNameStart()||this.type===W.star)F=!0;else C="static"}if(P.static=F,!C&&R>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===W.star)&&!this.canInsertSemicolon())H=!0;else C="async";if(!C&&(R>=9||!H)&&this.eat(W.star))O=!0;if(!C&&!H&&!O){var Y=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())M=Y;else C=Y}if(C)P.computed=!1,P.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),P.key.name=C,this.finishNode(P.key,"Identifier");else this.parseClassElementName(P);if(R<13||this.type===W.parenL||M!=="method"||O||H){var K=!P.static&&Yq(P,"constructor"),J=K&&q;if(K&&M!=="method")this.raise(P.key.start,"Constructor can't have get/set modifier");P.kind=K?"constructor":M,this.parseClassMethod(P,O,H,J)}else this.parseClassField(P);return P};x.isClassElementNameStart=function(){return this.type===W.name||this.type===W.privateId||this.type===W.num||this.type===W.string||this.type===W.bracketL||this.type.keyword};x.parseClassElementName=function(q){if(this.type===W.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");q.computed=!1,q.key=this.parsePrivateIdent()}else this.parsePropertyName(q)};x.parseClassMethod=function(q,R,P,C){var O=q.key;if(q.kind==="constructor"){if(R)this.raise(O.start,"Constructor can't be a generator");if(P)this.raise(O.start,"Constructor can't be an async method")}else if(q.static&&Yq(q,"prototype"))this.raise(O.start,"Classes may not have a static property named prototype");var H=q.value=this.parseMethod(R,P,C);if(q.kind==="get"&&H.params.length!==0)this.raiseRecoverable(H.start,"getter should have no params");if(q.kind==="set"&&H.params.length!==1)this.raiseRecoverable(H.start,"setter should have exactly one param");if(q.kind==="set"&&H.params[0].type==="RestElement")this.raiseRecoverable(H.params[0].start,"Setter cannot use rest params");return this.finishNode(q,"MethodDefinition")};x.parseClassField=function(q){if(Yq(q,"constructor"))this.raise(q.key.start,"Classes can't have a field named 'constructor'");else if(q.static&&Yq(q,"prototype"))this.raise(q.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(W.eq))this.enterScope(P9|Kq),q.value=this.parseMaybeAssign(),this.exitScope();else q.value=null;return this.semicolon(),this.finishNode(q,"PropertyDefinition")};x.parseClassStaticBlock=function(q){q.body=[];var R=this.labels;this.labels=[],this.enterScope(M1|Kq);while(this.type!==W.braceR){var P=this.parseStatement(null);q.body.push(P)}return this.next(),this.exitScope(),this.labels=R,this.finishNode(q,"StaticBlock")};x.parseClassId=function(q,R){if(this.type===W.name){if(q.id=this.parseIdent(),R)this.checkLValSimple(q.id,k0,!1)}else{if(R===!0)this.unexpected();q.id=null}};x.parseClassSuper=function(q){q.superClass=this.eat(W._extends)?this.parseExprSubscripts(null,!1):null};x.enterClassBody=function(){var q={declared:Object.create(null),used:[]};return this.privateNameStack.push(q),q.declared};x.exitClassBody=function(){var q=this.privateNameStack.pop(),R=q.declared,P=q.used;if(!this.options.checkPrivateFields)return;var C=this.privateNameStack.length,O=C===0?null:this.privateNameStack[C-1];for(var H=0;H<P.length;++H){var M=P[H];if(!w1(R,M.name))if(O)O.used.push(M);else this.raiseRecoverable(M.start,"Private field '#"+M.name+"' must be declared in an enclosing class")}};function L$(q,R){var P=R.key.name,C=q[P],O="true";if(R.type==="MethodDefinition"&&(R.kind==="get"||R.kind==="set"))O=(R.static?"s":"i")+R.kind;if(C==="iget"&&O==="iset"||C==="iset"&&O==="iget"||C==="sget"&&O==="sset"||C==="sset"&&O==="sget")return q[P]="true",!1;else if(!C)return q[P]=O,!1;else return!0}function Yq(q,R){var{computed:P,key:C}=q;return!P&&(C.type==="Identifier"&&C.name===R||C.type==="Literal"&&C.value===R)}x.parseExportAllDeclaration=function(q,R){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))q.exported=this.parseModuleExportName(),this.checkExport(R,q.exported,this.lastTokStart);else q.exported=null;if(this.expectContextual("from"),this.type!==W.string)this.unexpected();if(q.source=this.parseExprAtom(),this.options.ecmaVersion>=16)q.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(q,"ExportAllDeclaration")};x.parseExport=function(q,R){if(this.next(),this.eat(W.star))return this.parseExportAllDeclaration(q,R);if(this.eat(W._default))return this.checkExport(R,"default",this.lastTokStart),q.declaration=this.parseExportDefaultDeclaration(),this.finishNode(q,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(q.declaration=this.parseExportDeclaration(q),q.declaration.type==="VariableDeclaration")this.checkVariableExport(R,q.declaration.declarations);else this.checkExport(R,q.declaration.id,q.declaration.id.start);if(q.specifiers=[],q.source=null,this.options.ecmaVersion>=16)q.attributes=[]}else{if(q.declaration=null,q.specifiers=this.parseExportSpecifiers(R),this.eatContextual("from")){if(this.type!==W.string)this.unexpected();if(q.source=this.parseExprAtom(),this.options.ecmaVersion>=16)q.attributes=this.parseWithClause()}else{for(var P=0,C=q.specifiers;P<C.length;P+=1){var O=C[P];if(this.checkUnreserved(O.local),this.checkLocalExport(O.local),O.local.type==="Literal")this.raise(O.local.start,"A string literal cannot be used as an exported binding without `from`.")}if(q.source=null,this.options.ecmaVersion>=16)q.attributes=[]}this.semicolon()}return this.finishNode(q,"ExportNamedDeclaration")};x.parseExportDeclaration=function(q){return this.parseStatement(null)};x.parseExportDefaultDeclaration=function(){var q;if(this.type===W._function||(q=this.isAsyncFunction())){var R=this.startNode();if(this.next(),q)this.next();return this.parseFunction(R,q9|e5,!1,q)}else if(this.type===W._class){var P=this.startNode();return this.parseClass(P,"nullableID")}else{var C=this.parseMaybeAssign();return this.semicolon(),C}};x.checkExport=function(q,R,P){if(!q)return;if(typeof R!=="string")R=R.type==="Identifier"?R.name:R.value;if(w1(q,R))this.raiseRecoverable(P,"Duplicate export '"+R+"'");q[R]=!0};x.checkPatternExport=function(q,R){var P=R.type;if(P==="Identifier")this.checkExport(q,R,R.start);else if(P==="ObjectPattern")for(var C=0,O=R.properties;C<O.length;C+=1){var H=O[C];this.checkPatternExport(q,H)}else if(P==="ArrayPattern")for(var M=0,F=R.elements;M<F.length;M+=1){var Y=F[M];if(Y)this.checkPatternExport(q,Y)}else if(P==="Property")this.checkPatternExport(q,R.value);else if(P==="AssignmentPattern")this.checkPatternExport(q,R.left);else if(P==="RestElement")this.checkPatternExport(q,R.argument)};x.checkVariableExport=function(q,R){if(!q)return;for(var P=0,C=R;P<C.length;P+=1){var O=C[P];this.checkPatternExport(q,O.id)}};x.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};x.parseExportSpecifier=function(q){var R=this.startNode();return R.local=this.parseModuleExportName(),R.exported=this.eatContextual("as")?this.parseModuleExportName():R.local,this.checkExport(q,R.exported,R.exported.start),this.finishNode(R,"ExportSpecifier")};x.parseExportSpecifiers=function(q){var R=[],P=!0;this.expect(W.braceL);while(!this.eat(W.braceR)){if(!P){if(this.expect(W.comma),this.afterTrailingComma(W.braceR))break}else P=!1;R.push(this.parseExportSpecifier(q))}return R};x.parseImport=function(q){if(this.next(),this.type===W.string)q.specifiers=A$,q.source=this.parseExprAtom();else q.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),q.source=this.type===W.string?this.parseExprAtom():this.unexpected();if(this.options.ecmaVersion>=16)q.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(q,"ImportDeclaration")};x.parseImportSpecifier=function(){var q=this.startNode();if(q.imported=this.parseModuleExportName(),this.eatContextual("as"))q.local=this.parseIdent();else this.checkUnreserved(q.imported),q.local=q.imported;return this.checkLValSimple(q.local,k0),this.finishNode(q,"ImportSpecifier")};x.parseImportDefaultSpecifier=function(){var q=this.startNode();return q.local=this.parseIdent(),this.checkLValSimple(q.local,k0),this.finishNode(q,"ImportDefaultSpecifier")};x.parseImportNamespaceSpecifier=function(){var q=this.startNode();return this.next(),this.expectContextual("as"),q.local=this.parseIdent(),this.checkLValSimple(q.local,k0),this.finishNode(q,"ImportNamespaceSpecifier")};x.parseImportSpecifiers=function(){var q=[],R=!0;if(this.type===W.name){if(q.push(this.parseImportDefaultSpecifier()),!this.eat(W.comma))return q}if(this.type===W.star)return q.push(this.parseImportNamespaceSpecifier()),q;this.expect(W.braceL);while(!this.eat(W.braceR)){if(!R){if(this.expect(W.comma),this.afterTrailingComma(W.braceR))break}else R=!1;q.push(this.parseImportSpecifier())}return q};x.parseWithClause=function(){var q=[];if(!this.eat(W._with))return q;this.expect(W.braceL);var R={},P=!0;while(!this.eat(W.braceR)){if(!P){if(this.expect(W.comma),this.afterTrailingComma(W.braceR))break}else P=!1;var C=this.parseImportAttribute(),O=C.key.type==="Identifier"?C.key.name:C.key.value;if(w1(R,O))this.raiseRecoverable(C.key.start,"Duplicate attribute key '"+O+"'");R[O]=!0,q.push(C)}return q};x.parseImportAttribute=function(){var q=this.startNode();if(q.key=this.type===W.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(W.colon),this.type!==W.string)this.unexpected();return q.value=this.parseExprAtom(),this.finishNode(q,"ImportAttribute")};x.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===W.string){var q=this.parseLiteral(this.value);if(G$.test(q.value))this.raise(q.start,"An export name cannot include a lone surrogate.");return q}return this.parseIdent(!0)};x.adaptDirectivePrologue=function(q){for(var R=0;R<q.length&&this.isDirectiveCandidate(q[R]);++R)q[R].directive=q[R].expression.raw.slice(1,-1)};x.isDirectiveCandidate=function(q){return this.options.ecmaVersion>=5&&q.type==="ExpressionStatement"&&q.expression.type==="Literal"&&typeof q.expression.value==="string"&&(this.input[q.start]==='"'||this.input[q.start]==="'")};var P0=j8.prototype;P0.toAssignable=function(q,R,P){if(this.options.ecmaVersion>=6&&q)switch(q.type){case"Identifier":if(this.inAsync&&q.name==="await")this.raise(q.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(q.type="ObjectPattern",P)this.checkPatternErrors(P,!0);for(var C=0,O=q.properties;C<O.length;C+=1){var H=O[C];if(this.toAssignable(H,R),H.type==="RestElement"&&(H.argument.type==="ArrayPattern"||H.argument.type==="ObjectPattern"))this.raise(H.argument.start,"Unexpected token")}break;case"Property":if(q.kind!=="init")this.raise(q.key.start,"Object pattern can't contain getter or setter");this.toAssignable(q.value,R);break;case"ArrayExpression":if(q.type="ArrayPattern",P)this.checkPatternErrors(P,!0);this.toAssignableList(q.elements,R);break;case"SpreadElement":if(q.type="RestElement",this.toAssignable(q.argument,R),q.argument.type==="AssignmentPattern")this.raise(q.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(q.operator!=="=")this.raise(q.left.end,"Only '=' operator can be used for specifying default value.");q.type="AssignmentPattern",delete q.operator,this.toAssignable(q.left,R);break;case"ParenthesizedExpression":this.toAssignable(q.expression,R,P);break;case"ChainExpression":this.raiseRecoverable(q.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!R)break;default:this.raise(q.start,"Assigning to rvalue")}else if(P)this.checkPatternErrors(P,!0);return q};P0.toAssignableList=function(q,R){var P=q.length;for(var C=0;C<P;C++){var O=q[C];if(O)this.toAssignable(O,R)}if(P){var H=q[P-1];if(this.options.ecmaVersion===6&&R&&H&&H.type==="RestElement"&&H.argument.type!=="Identifier")this.unexpected(H.argument.start)}return q};P0.parseSpread=function(q){var R=this.startNode();return this.next(),R.argument=this.parseMaybeAssign(!1,q),this.finishNode(R,"SpreadElement")};P0.parseRestBinding=function(){var q=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==W.name)this.unexpected();return q.argument=this.parseBindingAtom(),this.finishNode(q,"RestElement")};P0.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case W.bracketL:var q=this.startNode();return this.next(),q.elements=this.parseBindingList(W.bracketR,!0,!0),this.finishNode(q,"ArrayPattern");case W.braceL:return this.parseObj(!0)}return this.parseIdent()};P0.parseBindingList=function(q,R,P,C){var O=[],H=!0;while(!this.eat(q)){if(H)H=!1;else this.expect(W.comma);if(R&&this.type===W.comma)O.push(null);else if(P&&this.afterTrailingComma(q))break;else if(this.type===W.ellipsis){var M=this.parseRestBinding();if(this.parseBindingListItem(M),O.push(M),this.type===W.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");this.expect(q);break}else O.push(this.parseAssignableListItem(C))}return O};P0.parseAssignableListItem=function(q){var R=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(R),R};P0.parseBindingListItem=function(q){return q};P0.parseMaybeDefault=function(q,R,P){if(P=P||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(W.eq))return P;var C=this.startNodeAt(q,R);return C.left=P,C.right=this.parseMaybeAssign(),this.finishNode(C,"AssignmentPattern")};P0.checkLValSimple=function(q,R,P){if(R===void 0)R=Zq;var C=R!==Zq;switch(q.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(q.name))this.raiseRecoverable(q.start,(C?"Binding ":"Assigning to ")+q.name+" in strict mode");if(C){if(R===k0&&q.name==="let")this.raiseRecoverable(q.start,"let is disallowed as a lexically bound name");if(P){if(w1(P,q.name))this.raiseRecoverable(q.start,"Argument name clash");P[q.name]=!0}if(R!==t5)this.declareName(q.name,R,q.start)}break;case"ChainExpression":this.raiseRecoverable(q.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(C)this.raiseRecoverable(q.start,"Binding member expression");break;case"ParenthesizedExpression":if(C)this.raiseRecoverable(q.start,"Binding parenthesized expression");return this.checkLValSimple(q.expression,R,P);default:this.raise(q.start,(C?"Binding":"Assigning to")+" rvalue")}};P0.checkLValPattern=function(q,R,P){if(R===void 0)R=Zq;switch(q.type){case"ObjectPattern":for(var C=0,O=q.properties;C<O.length;C+=1){var H=O[C];this.checkLValInnerPattern(H,R,P)}break;case"ArrayPattern":for(var M=0,F=q.elements;M<F.length;M+=1){var Y=F[M];if(Y)this.checkLValInnerPattern(Y,R,P)}break;default:this.checkLValSimple(q,R,P)}};P0.checkLValInnerPattern=function(q,R,P){if(R===void 0)R=Zq;switch(q.type){case"Property":this.checkLValInnerPattern(q.value,R,P);break;case"AssignmentPattern":this.checkLValPattern(q.left,R,P);break;case"RestElement":this.checkLValPattern(q.argument,R,P);break;default:this.checkLValPattern(q,R,P)}};var e8=function(R,P,C,O,H){this.token=R,this.isExpr=!!P,this.preserveSpace=!!C,this.override=O,this.generator=!!H},A8={b_stat:new e8("{",!1),b_expr:new e8("{",!0),b_tmpl:new e8("${",!1),p_stat:new e8("(",!1),p_expr:new e8("(",!0),q_tmpl:new e8("`",!0,!0,function(q){return q.tryReadTemplateToken()}),f_stat:new e8("function",!1),f_expr:new e8("function",!0),f_expr_gen:new e8("function",!0,!1,null,!0),f_gen:new e8("function",!1,!1,null,!0)},I1=j8.prototype;I1.initialContext=function(){return[A8.b_stat]};I1.curContext=function(){return this.context[this.context.length-1]};I1.braceIsBlock=function(q){var R=this.curContext();if(R===A8.f_expr||R===A8.f_stat)return!0;if(q===W.colon&&(R===A8.b_stat||R===A8.b_expr))return!R.isExpr;if(q===W._return||q===W.name&&this.exprAllowed)return x8.test(this.input.slice(this.lastTokEnd,this.start));if(q===W._else||q===W.semi||q===W.eof||q===W.parenR||q===W.arrow)return!0;if(q===W.braceL)return R===A8.b_stat;if(q===W._var||q===W._const||q===W.name)return!1;return!this.exprAllowed};I1.inGeneratorContext=function(){for(var q=this.context.length-1;q>=1;q--){var R=this.context[q];if(R.token==="function")return R.generator}return!1};I1.updateContext=function(q){var R,P=this.type;if(P.keyword&&q===W.dot)this.exprAllowed=!1;else if(R=P.updateContext)R.call(this,q);else this.exprAllowed=P.beforeExpr};I1.overrideContext=function(q){if(this.curContext()!==q)this.context[this.context.length-1]=q};W.parenR.updateContext=W.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var q=this.context.pop();if(q===A8.b_stat&&this.curContext().token==="function")q=this.context.pop();this.exprAllowed=!q.isExpr};W.braceL.updateContext=function(q){this.context.push(this.braceIsBlock(q)?A8.b_stat:A8.b_expr),this.exprAllowed=!0};W.dollarBraceL.updateContext=function(){this.context.push(A8.b_tmpl),this.exprAllowed=!0};W.parenL.updateContext=function(q){var R=q===W._if||q===W._for||q===W._with||q===W._while;this.context.push(R?A8.p_stat:A8.p_expr),this.exprAllowed=!0};W.incDec.updateContext=function(){};W._function.updateContext=W._class.updateContext=function(q){if(q.beforeExpr&&q!==W._else&&!(q===W.semi&&this.curContext()!==A8.p_stat)&&!(q===W._return&&x8.test(this.input.slice(this.lastTokEnd,this.start)))&&!((q===W.colon||q===W.braceL)&&this.curContext()===A8.b_stat))this.context.push(A8.f_expr);else this.context.push(A8.f_stat);this.exprAllowed=!1};W.colon.updateContext=function(){if(this.curContext().token==="function")this.context.pop();this.exprAllowed=!0};W.backQuote.updateContext=function(){if(this.curContext()===A8.q_tmpl)this.context.pop();else this.context.push(A8.q_tmpl);this.exprAllowed=!1};W.star.updateContext=function(q){if(q===W._function){var R=this.context.length-1;if(this.context[R]===A8.f_expr)this.context[R]=A8.f_expr_gen;else this.context[R]=A8.f_gen}this.exprAllowed=!0};W.name.updateContext=function(q){var R=!1;if(this.options.ecmaVersion>=6&&q!==W.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())R=!0}this.exprAllowed=R};var t=j8.prototype;t.checkPropClash=function(q,R,P){if(this.options.ecmaVersion>=9&&q.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(q.computed||q.method||q.shorthand))return;var C=q.key,O;switch(C.type){case"Identifier":O=C.name;break;case"Literal":O=String(C.value);break;default:return}var H=q.kind;if(this.options.ecmaVersion>=6){if(O==="__proto__"&&H==="init"){if(R.proto)if(P){if(P.doubleProto<0)P.doubleProto=C.start}else this.raiseRecoverable(C.start,"Redefinition of __proto__ property");R.proto=!0}return}O="$"+O;var M=R[O];if(M){var F;if(H==="init")F=this.strict&&M.init||M.get||M.set;else F=M.init||M[H];if(F)this.raiseRecoverable(C.start,"Redefinition of property")}else M=R[O]={init:!1,get:!1,set:!1};M[H]=!0};t.parseExpression=function(q,R){var P=this;return this.catchStackOverflow(function(){var{start:C,startLoc:O}=P,H=P.parseMaybeAssign(q,R);if(P.type===W.comma){var M=P.startNodeAt(C,O);M.expressions=[H];while(P.eat(W.comma))M.expressions.push(P.parseMaybeAssign(q,R));return P.finishNode(M,"SequenceExpression")}return H})};t.parseMaybeAssign=function(q,R,P){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(q);else this.exprAllowed=!1;var C=!1,O=-1,H=-1,M=-1;if(R)O=R.parenthesizedAssign,H=R.trailingComma,M=R.doubleProto,R.parenthesizedAssign=R.trailingComma=-1;else R=new Xq,C=!0;var F=this.start,Y=this.startLoc;if(this.type===W.parenL||this.type===W.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=q==="await";var K=this.parseMaybeConditional(q,R);if(P)K=P.call(this,K,F,Y);if(this.type.isAssign){var J=this.startNodeAt(F,Y);if(J.operator=this.value,this.type===W.eq)K=this.toAssignable(K,!1,R);if(!C)R.parenthesizedAssign=R.trailingComma=R.doubleProto=-1;if(R.shorthandAssign>=K.start)R.shorthandAssign=-1;if(this.type===W.eq)this.checkLValPattern(K);else this.checkLValSimple(K);if(J.left=K,this.next(),J.right=this.parseMaybeAssign(q),M>-1)R.doubleProto=M;return this.finishNode(J,"AssignmentExpression")}else if(C)this.checkExpressionErrors(R,!0);if(O>-1)R.parenthesizedAssign=O;if(H>-1)R.trailingComma=H;return K};t.parseMaybeConditional=function(q,R){var P=this.start,C=this.startLoc,O=this.parseExprOps(q,R);if(this.checkExpressionErrors(R))return O;if(!(O.type==="ArrowFunctionExpression"&&O.start===P)&&this.eat(W.question)){var H=this.startNodeAt(P,C);return H.test=O,H.consequent=this.parseMaybeAssign(),this.expect(W.colon),H.alternate=this.parseMaybeAssign(q),this.finishNode(H,"ConditionalExpression")}return O};t.parseExprOps=function(q,R){var P=this.start,C=this.startLoc,O=this.parseMaybeUnary(R,!1,!1,q);if(this.checkExpressionErrors(R))return O;return O.start===P&&O.type==="ArrowFunctionExpression"?O:this.parseExprOp(O,P,C,-1,q)};t.parseExprOp=function(q,R,P,C,O){var H=this.type.binop;if(H!=null&&(!O||this.type!==W._in)){if(H>C){var M=this.type===W.logicalOR||this.type===W.logicalAND,F=this.type===W.coalesce;if(F)H=W.logicalAND.binop;var Y=this.value;this.next();var K=this.start,J=this.startLoc,$=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,O),K,J,H,O),U=this.buildBinary(R,P,q,$,Y,M||F);if(M&&this.type===W.coalesce||F&&(this.type===W.logicalOR||this.type===W.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(U,R,P,C,O)}}return q};t.buildBinary=function(q,R,P,C,O,H){if(C.type==="PrivateIdentifier")this.raise(C.start,"Private identifier can only be left side of binary expression");var M=this.startNodeAt(q,R);return M.left=P,M.operator=O,M.right=C,this.finishNode(M,H?"LogicalExpression":"BinaryExpression")};t.parseMaybeUnary=function(q,R,P,C){var O=this.start,H=this.startLoc,M;if(this.isContextual("await")&&this.canAwait)M=this.parseAwait(C),R=!0;else if(this.type.prefix){var F=this.startNode(),Y=this.type===W.incDec;if(F.operator=this.value,F.prefix=!0,this.next(),F.argument=this.parseMaybeUnary(null,!0,Y,C),this.checkExpressionErrors(q,!0),Y)this.checkLValSimple(F.argument);else if(this.strict&&F.operator==="delete"&&q4(F.argument))this.raiseRecoverable(F.start,"Deleting local variable in strict mode");else if(F.operator==="delete"&&M7(F.argument))this.raiseRecoverable(F.start,"Private fields can not be deleted");else R=!0;M=this.finishNode(F,Y?"UpdateExpression":"UnaryExpression")}else if(!R&&this.type===W.privateId){if((C||this.privateNameStack.length===0)&&this.options.checkPrivateFields)this.unexpected();if(M=this.parsePrivateIdent(),this.type!==W._in)this.unexpected()}else{if(M=this.parseExprSubscripts(q,C),this.checkExpressionErrors(q))return M;while(this.type.postfix&&!this.canInsertSemicolon()){var K=this.startNodeAt(O,H);K.operator=this.value,K.prefix=!1,K.argument=M,this.checkLValSimple(M),this.next(),M=this.finishNode(K,"UpdateExpression")}}if(!P&&this.eat(W.starstar))if(R)this.unexpected(this.lastTokStart);else return this.buildBinary(O,H,M,this.parseMaybeUnary(null,!1,!1,C),"**",!1);else return M};function q4(q){return q.type==="Identifier"||q.type==="ParenthesizedExpression"&&q4(q.expression)}function M7(q){return q.type==="MemberExpression"&&q.property.type==="PrivateIdentifier"||q.type==="ChainExpression"&&M7(q.expression)||q.type==="ParenthesizedExpression"&&M7(q.expression)}t.parseExprSubscripts=function(q,R){var P=this.start,C=this.startLoc,O=this.parseExprAtom(q,R);if(O.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return O;var H=this.parseSubscripts(O,P,C,!1,R);if(q&&H.type==="MemberExpression"){if(q.parenthesizedAssign>=H.start)q.parenthesizedAssign=-1;if(q.parenthesizedBind>=H.start)q.parenthesizedBind=-1;if(q.trailingComma>=H.start)q.trailingComma=-1}return H};t.parseSubscripts=function(q,R,P,C,O){var H=this.options.ecmaVersion>=8&&q.type==="Identifier"&&q.name==="async"&&this.lastTokEnd===q.end&&!this.canInsertSemicolon()&&q.end-q.start===5&&this.potentialArrowAt===q.start,M=!1;while(!0){var F=this.parseSubscript(q,R,P,C,H,M,O);if(F.optional)M=!0;if(F===q||F.type==="ArrowFunctionExpression"){if(M){var Y=this.startNodeAt(R,P);Y.expression=F,F=this.finishNode(Y,"ChainExpression")}return F}q=F}};t.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(W.arrow)};t.parseSubscriptAsyncArrow=function(q,R,P,C){return this.parseArrowExpression(this.startNodeAt(q,R),P,!0,C)};t.parseSubscript=function(q,R,P,C,O,H,M){var F=this.options.ecmaVersion>=11,Y=F&&this.eat(W.questionDot);if(C&&Y)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var K=this.eat(W.bracketL);if(K||Y&&this.type!==W.parenL&&this.type!==W.backQuote||this.eat(W.dot)){var J=this.startNodeAt(R,P);if(J.object=q,K)J.property=this.parseExpression(),this.expect(W.bracketR);else if(this.type===W.privateId&&q.type!=="Super")J.property=this.parsePrivateIdent();else J.property=this.parseIdent(this.options.allowReserved!=="never");if(J.computed=!!K,F)J.optional=Y;q=this.finishNode(J,"MemberExpression")}else if(!C&&this.eat(W.parenL)){var $=new Xq,U=this.yieldPos,B=this.awaitPos,T=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var w=this.parseExprList(W.parenR,this.options.ecmaVersion>=8,!1,$);if(O&&!Y&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors($,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=U,this.awaitPos=B,this.awaitIdentPos=T,this.parseSubscriptAsyncArrow(R,P,w,M)}this.checkExpressionErrors($,!0),this.yieldPos=U||this.yieldPos,this.awaitPos=B||this.awaitPos,this.awaitIdentPos=T||this.awaitIdentPos;var f=this.startNodeAt(R,P);if(f.callee=q,f.arguments=w,F)f.optional=Y;q=this.finishNode(f,"CallExpression")}else if(this.type===W.backQuote){if(Y||H)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var D=this.startNodeAt(R,P);D.tag=q,D.quasi=this.parseTemplate({isTagged:!0}),q=this.finishNode(D,"TaggedTemplateExpression")}return q};t.parseExprAtom=function(q,R,P){if(this.type===W.slash)this.readRegexp();var C,O=this.potentialArrowAt===this.start;switch(this.type){case W._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(C=this.startNode(),this.next(),this.type===W.parenL&&!this.allowDirectSuper)this.raise(C.start,"super() call outside constructor of a subclass");if(this.type!==W.dot&&this.type!==W.bracketL&&this.type!==W.parenL)this.unexpected();return this.finishNode(C,"Super");case W._this:return C=this.startNode(),this.next(),this.finishNode(C,"ThisExpression");case W.name:var H=this.start,M=this.startLoc,F=this.containsEsc,Y=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!F&&Y.name==="async"&&!this.canInsertSemicolon()&&this.eat(W._function))return this.overrideContext(A8.f_expr),this.parseFunction(this.startNodeAt(H,M),0,!1,!0,R);if(O&&!this.canInsertSemicolon()){if(this.eat(W.arrow))return this.parseArrowExpression(this.startNodeAt(H,M),[Y],!1,R);if(this.options.ecmaVersion>=8&&Y.name==="async"&&this.type===W.name&&!F&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(Y=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(W.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(H,M),[Y],!0,R)}}return Y;case W.regexp:var K=this.value;return C=this.parseLiteral(K.value),C.regex={pattern:K.pattern,flags:K.flags},C;case W.num:case W.string:return this.parseLiteral(this.value);case W._null:case W._true:case W._false:return C=this.startNode(),C.value=this.type===W._null?null:this.type===W._true,C.raw=this.type.keyword,this.next(),this.finishNode(C,"Literal");case W.parenL:var J=this.start,$=this.parseParenAndDistinguishExpression(O,R);if(q){if(q.parenthesizedAssign<0&&!this.isSimpleAssignTarget($))q.parenthesizedAssign=J;if(q.parenthesizedBind<0)q.parenthesizedBind=J}return $;case W.bracketL:return C=this.startNode(),this.next(),C.elements=this.parseExprList(W.bracketR,!0,!0,q),this.finishNode(C,"ArrayExpression");case W.braceL:return this.overrideContext(A8.b_expr),this.parseObj(!1,q);case W._function:return C=this.startNode(),this.next(),this.parseFunction(C,0);case W._class:return this.parseClass(this.startNode(),!1);case W._new:return this.parseNew();case W.backQuote:return this.parseTemplate();case W._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(P);else return this.unexpected();default:return this.parseExprAtomDefault()}};t.parseExprAtomDefault=function(){this.unexpected()};t.parseExprImport=function(q){var R=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");if(this.next(),this.type===W.parenL&&!q)return this.parseDynamicImport(R);else if(this.type===W.dot){var P=this.startNodeAt(R.start,R.loc&&R.loc.start);return P.name="import",R.meta=this.finishNode(P,"Identifier"),this.parseImportMeta(R)}else this.unexpected()};t.parseDynamicImport=function(q){if(this.next(),q.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)if(!this.eat(W.parenR))if(this.expect(W.comma),!this.afterTrailingComma(W.parenR)){if(q.options=this.parseMaybeAssign(),!this.eat(W.parenR)){if(this.expect(W.comma),!this.afterTrailingComma(W.parenR))this.unexpected()}}else q.options=null;else q.options=null;else if(!this.eat(W.parenR)){var R=this.start;if(this.eat(W.comma)&&this.eat(W.parenR))this.raiseRecoverable(R,"Trailing comma is not allowed in import()");else this.unexpected(R)}return this.finishNode(q,"ImportExpression")};t.parseImportMeta=function(q){this.next();var R=this.containsEsc;if(q.property=this.parseIdent(!0),q.property.name!=="meta")this.raiseRecoverable(q.property.start,"The only valid meta property for import is 'import.meta'");if(R)this.raiseRecoverable(q.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(q.start,"Cannot use 'import.meta' outside a module");return this.finishNode(q,"MetaProperty")};t.parseLiteral=function(q){var R=this.startNode();if(R.value=q,R.raw=this.input.slice(this.start,this.end),R.raw.charCodeAt(R.raw.length-1)===110)R.bigint=R.value!=null?R.value.toString():R.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(R,"Literal")};t.parseParenExpression=function(){this.expect(W.parenL);var q=this.parseExpression();return this.expect(W.parenR),q};t.shouldParseArrow=function(q){return!this.canInsertSemicolon()};t.parseParenAndDistinguishExpression=function(q,R){var P=this.start,C=this.startLoc,O,H=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var M=this.start,F=this.startLoc,Y=[],K=!0,J=!1,$=new Xq,U=this.yieldPos,B=this.awaitPos,T;this.yieldPos=0,this.awaitPos=0;while(this.type!==W.parenR)if(K?K=!1:this.expect(W.comma),H&&this.afterTrailingComma(W.parenR,!0)){J=!0;break}else if(this.type===W.ellipsis){if(T=this.start,Y.push(this.parseParenItem(this.parseRestBinding())),this.type===W.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else Y.push(this.parseMaybeAssign(!1,$,this.parseParenItem));var w=this.lastTokEnd,f=this.lastTokEndLoc;if(this.expect(W.parenR),q&&this.shouldParseArrow(Y)&&this.eat(W.arrow))return this.checkPatternErrors($,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=U,this.awaitPos=B,this.parseParenArrowList(P,C,Y,R);if(!Y.length||J)this.unexpected(this.lastTokStart);if(T)this.unexpected(T);if(this.checkExpressionErrors($,!0),this.yieldPos=U||this.yieldPos,this.awaitPos=B||this.awaitPos,Y.length>1)O=this.startNodeAt(M,F),O.expressions=Y,this.finishNodeAt(O,"SequenceExpression",w,f);else O=Y[0]}else O=this.parseParenExpression();if(this.options.preserveParens){var D=this.startNodeAt(P,C);return D.expression=O,this.finishNode(D,"ParenthesizedExpression")}else return O};t.parseParenItem=function(q){return q};t.parseParenArrowList=function(q,R,P,C){return this.parseArrowExpression(this.startNodeAt(q,R),P,!1,C)};var j$=[];t.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var q=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===W.dot){var R=this.startNodeAt(q.start,q.loc&&q.loc.start);R.name="new",q.meta=this.finishNode(R,"Identifier"),this.next();var P=this.containsEsc;if(q.property=this.parseIdent(!0),q.property.name!=="target")this.raiseRecoverable(q.property.start,"The only valid meta property for new is 'new.target'");if(P)this.raiseRecoverable(q.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(q.start,"'new.target' can only be used in functions and class static block");return this.finishNode(q,"MetaProperty")}var C=this.start,O=this.startLoc;if(q.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),C,O,!0,!1),q.callee.type==="Super")this.raiseRecoverable(C,"Invalid use of 'super'");if(this.eat(W.parenL))q.arguments=this.parseExprList(W.parenR,this.options.ecmaVersion>=8,!1);else q.arguments=j$;return this.finishNode(q,"NewExpression")};t.parseTemplateElement=function(q){var R=q.isTagged,P=this.startNode();if(this.type===W.invalidTemplate){if(!R)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");P.value={raw:this.value.replace(/\r\n?/g,`
29
- `),cooked:null}}else P.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
30
- `),cooked:this.value};return this.next(),P.tail=this.type===W.backQuote,this.finishNode(P,"TemplateElement")};t.parseTemplate=function(q){if(q===void 0)q={};var R=q.isTagged;if(R===void 0)R=!1;var P=this.startNode();this.next(),P.expressions=[];var C=this.parseTemplateElement({isTagged:R});P.quasis=[C];while(!C.tail){if(this.type===W.eof)this.raise(this.pos,"Unterminated template literal");this.expect(W.dollarBraceL),P.expressions.push(this.parseExpression()),this.expect(W.braceR),P.quasis.push(C=this.parseTemplateElement({isTagged:R}))}return this.next(),this.finishNode(P,"TemplateLiteral")};t.isAsyncProp=function(q){return!q.computed&&q.key.type==="Identifier"&&q.key.name==="async"&&(this.type===W.name||this.type===W.num||this.type===W.string||this.type===W.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===W.star)&&!x8.test(this.input.slice(this.lastTokEnd,this.start))};t.parseObj=function(q,R){var P=this.startNode(),C=!0,O={};P.properties=[],this.next();while(!this.eat(W.braceR)){if(!C){if(this.expect(W.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(W.braceR))break}else C=!1;var H=this.parseProperty(q,R);if(!q)this.checkPropClash(H,O,R);P.properties.push(H)}return this.finishNode(P,q?"ObjectPattern":"ObjectExpression")};t.parseProperty=function(q,R){var P=this.startNode(),C,O,H,M;if(this.options.ecmaVersion>=9&&this.eat(W.ellipsis)){if(q){if(P.argument=this.parseIdent(!1),this.type===W.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");return this.finishNode(P,"RestElement")}if(P.argument=this.parseMaybeAssign(!1,R),this.type===W.comma&&R&&R.trailingComma<0)R.trailingComma=this.start;return this.finishNode(P,"SpreadElement")}if(this.options.ecmaVersion>=6){if(P.method=!1,P.shorthand=!1,q||R)H=this.start,M=this.startLoc;if(!q)C=this.eat(W.star)}var F=this.containsEsc;if(this.parsePropertyName(P),!q&&!F&&this.options.ecmaVersion>=8&&!C&&this.isAsyncProp(P))O=!0,C=this.options.ecmaVersion>=9&&this.eat(W.star),this.parsePropertyName(P);else O=!1;return this.parsePropertyValue(P,q,C,O,H,M,R,F),this.finishNode(P,"Property")};t.parseGetterSetter=function(q){var R=q.key.name;this.parsePropertyName(q),q.value=this.parseMethod(!1),q.kind=R;var P=q.kind==="get"?0:1;if(q.value.params.length!==P){var C=q.value.start;if(q.kind==="get")this.raiseRecoverable(C,"getter should have no params");else this.raiseRecoverable(C,"setter should have exactly one param")}else if(q.kind==="set"&&q.value.params[0].type==="RestElement")this.raiseRecoverable(q.value.params[0].start,"Setter cannot use rest params")};t.parsePropertyValue=function(q,R,P,C,O,H,M,F){if((P||C)&&this.type===W.colon)this.unexpected();if(this.eat(W.colon))q.value=R?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,M),q.kind="init";else if(this.options.ecmaVersion>=6&&this.type===W.parenL){if(R)this.unexpected();q.method=!0,q.value=this.parseMethod(P,C),q.kind="init"}else if(!R&&!F&&this.options.ecmaVersion>=5&&!q.computed&&q.key.type==="Identifier"&&(q.key.name==="get"||q.key.name==="set")&&(this.type!==W.comma&&this.type!==W.braceR&&this.type!==W.eq)){if(P||C)this.unexpected();this.parseGetterSetter(q)}else if(this.options.ecmaVersion>=6&&!q.computed&&q.key.type==="Identifier"){if(P||C)this.unexpected();if(this.checkUnreserved(q.key),q.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=O;if(R)q.value=this.parseMaybeDefault(O,H,this.copyNode(q.key));else if(this.type===W.eq&&M){if(M.shorthandAssign<0)M.shorthandAssign=this.start;q.value=this.parseMaybeDefault(O,H,this.copyNode(q.key))}else q.value=this.copyNode(q.key);q.kind="init",q.shorthand=!0}else this.unexpected()};t.parsePropertyName=function(q){if(this.options.ecmaVersion>=6)if(this.eat(W.bracketL))return q.computed=!0,q.key=this.parseMaybeAssign(),this.expect(W.bracketR),q.key;else q.computed=!1;return q.key=this.type===W.num||this.type===W.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};t.initFunction=function(q){if(q.id=null,this.options.ecmaVersion>=6)q.generator=q.expression=!1;if(this.options.ecmaVersion>=8)q.async=!1};t.parseMethod=function(q,R,P){var C=this.startNode(),O=this.yieldPos,H=this.awaitPos,M=this.awaitIdentPos;if(this.initFunction(C),this.options.ecmaVersion>=6)C.generator=q;if(this.options.ecmaVersion>=8)C.async=!!R;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(J7(R,C.generator)|Kq|(P?a5:0)),this.expect(W.parenL),C.params=this.parseBindingList(W.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(C,!1,!0,!1),this.yieldPos=O,this.awaitPos=H,this.awaitIdentPos=M,this.finishNode(C,"FunctionExpression")};t.parseArrowExpression=function(q,R,P,C){var O=this.yieldPos,H=this.awaitPos,M=this.awaitIdentPos;if(this.enterScope(J7(P,!1)|V7),this.initFunction(q),this.options.ecmaVersion>=8)q.async=!!P;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,q.params=this.toAssignableList(R,!0),this.parseFunctionBody(q,!0,!1,C),this.yieldPos=O,this.awaitPos=H,this.awaitIdentPos=M,this.finishNode(q,"ArrowFunctionExpression")};t.parseFunctionBody=function(q,R,P,C){var O=R&&this.type!==W.braceL,H=this.strict,M=!1;if(O)q.body=this.parseMaybeAssign(C),q.expression=!0,this.checkParams(q,!1);else{var F=this.options.ecmaVersion>=7&&!this.isSimpleParamList(q.params);if(!H||F){if(M=this.strictDirective(this.end),M&&F)this.raiseRecoverable(q.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var Y=this.labels;if(this.labels=[],M)this.strict=!0;if(this.checkParams(q,!H&&!M&&!R&&!P&&this.isSimpleParamList(q.params)),this.strict&&q.id)this.checkLValSimple(q.id,t5);q.body=this.parseBlock(!1,void 0,M&&!H),q.expression=!1,this.adaptDirectivePrologue(q.body.body),this.labels=Y}this.exitScope()};t.isSimpleParamList=function(q){for(var R=0,P=q;R<P.length;R+=1){var C=P[R];if(C.type!=="Identifier")return!1}return!0};t.checkParams=function(q,R){var P=Object.create(null);for(var C=0,O=q.params;C<O.length;C+=1){var H=O[C];this.checkLValInnerPattern(H,K7,R?null:P)}};t.parseExprList=function(q,R,P,C){var O=[],H=!0;while(!this.eat(q)){if(!H){if(this.expect(W.comma),R&&this.afterTrailingComma(q))break}else H=!1;var M=void 0;if(P&&this.type===W.comma)M=null;else if(this.type===W.ellipsis){if(M=this.parseSpread(C),C&&this.type===W.comma&&C.trailingComma<0)C.trailingComma=this.start}else M=this.parseMaybeAssign(!1,C);O.push(M)}return O};t.checkUnreserved=function(q){var{start:R,end:P,name:C}=q;if(this.inGenerator&&C==="yield")this.raiseRecoverable(R,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&C==="await")this.raiseRecoverable(R,"Cannot use 'await' as identifier inside an async function");if(!(this.currentThisScope().flags&Wq)&&C==="arguments")this.raiseRecoverable(R,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(C==="arguments"||C==="await"))this.raise(R,"Cannot use "+C+" in class static initialization block");if(this.keywords.test(C))this.raise(R,"Unexpected keyword '"+C+"'");if(this.options.ecmaVersion<6&&this.input.slice(R,P).indexOf("\\")!==-1)return;var O=this.strict?this.reservedWordsStrict:this.reservedWords;if(O.test(C)){if(!this.inAsync&&C==="await")this.raiseRecoverable(R,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(R,"The keyword '"+C+"' is reserved")}};t.parseIdent=function(q){var R=this.parseIdentNode();if(this.next(!!q),this.finishNode(R,"Identifier"),!q){if(this.checkUnreserved(R),R.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=R.start}return R};t.parseIdentNode=function(){var q=this.startNode();if(this.type===W.name)q.name=this.value;else if(this.type.keyword){if(q.name=this.type.keyword,(q.name==="class"||q.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop();this.type=W.name}else this.unexpected();return q};t.parsePrivateIdent=function(){var q=this.startNode();if(this.type===W.privateId)q.name=this.value;else this.unexpected();if(this.next(),this.finishNode(q,"PrivateIdentifier"),this.options.checkPrivateFields)if(this.privateNameStack.length===0)this.raise(q.start,"Private field '#"+q.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(q);return q};t.parseYield=function(q){if(!this.yieldPos)this.yieldPos=this.start;var R=this.startNode();if(this.next(),this.type===W.semi||this.canInsertSemicolon()||this.type!==W.star&&!this.type.startsExpr)R.delegate=!1,R.argument=null;else R.delegate=this.eat(W.star),R.argument=this.parseMaybeAssign(q);return this.finishNode(R,"YieldExpression")};t.parseAwait=function(q){if(!this.awaitPos)this.awaitPos=this.start;var R=this.startNode();return this.next(),R.argument=this.parseMaybeUnary(null,!0,!1,q),this.finishNode(R,"AwaitExpression")};var Fq=j8.prototype;Fq.raise=function(q,R){var P=Y7(this.input,q);if(R+=" ("+P.line+":"+P.column+")",this.sourceFile)R+=" in "+this.sourceFile;var C=SyntaxError(R);throw C.pos=q,C.loc=P,C.raisedAt=this.pos,C};Fq.raiseRecoverable=Fq.raise;Fq.curPosition=function(){if(this.options.locations)return new j1(this.curLine,this.pos-this.lineStart)};var m0=j8.prototype,w$=function(R){this.flags=R,this.var=[],this.lexical=[],this.functions=[]};m0.enterScope=function(q){this.scopeStack.push(new w$(q))};m0.exitScope=function(){this.scopeStack.pop()};m0.treatFunctionsAsVarInScope=function(q){return q.flags&H1||!this.inModule&&q.flags&C1};m0.declareName=function(q,R,P){var C=!1;if(R===k0){var O=this.currentScope();if(C=O.lexical.indexOf(q)>-1||O.functions.indexOf(q)>-1||O.var.indexOf(q)>-1,O.lexical.push(q),this.inModule&&O.flags&C1)delete this.undefinedExports[q]}else if(R===n5){var H=this.currentScope();H.lexical.push(q)}else if(R===o5){var M=this.currentScope();if(this.treatFunctionsAsVar)C=M.lexical.indexOf(q)>-1;else C=M.lexical.indexOf(q)>-1||M.var.indexOf(q)>-1;M.functions.push(q)}else for(var F=this.scopeStack.length-1;F>=0;--F){var Y=this.scopeStack[F];if(Y.lexical.indexOf(q)>-1&&!(Y.flags&d5&&Y.lexical[0]===q)||!this.treatFunctionsAsVarInScope(Y)&&Y.functions.indexOf(q)>-1){C=!0;break}if(Y.var.push(q),this.inModule&&Y.flags&C1)delete this.undefinedExports[q];if(Y.flags&Wq)break}if(C)this.raiseRecoverable(P,"Identifier '"+q+"' has already been declared")};m0.checkLocalExport=function(q){if(this.scopeStack[0].lexical.indexOf(q.name)===-1&&this.scopeStack[0].var.indexOf(q.name)===-1)this.undefinedExports[q.name]=q};m0.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};m0.currentVarScope=function(){for(var q=this.scopeStack.length-1;;q--){var R=this.scopeStack[q];if(R.flags&(Wq|P9|M1))return R}};m0.currentThisScope=function(){for(var q=this.scopeStack.length-1;;q--){var R=this.scopeStack[q];if(R.flags&(Wq|P9|M1)&&!(R.flags&V7))return R}};var C9=function(R,P,C){if(this.type="",this.start=P,this.end=0,R.options.locations)this.loc=new R9(R,C);if(R.options.directSourceFile)this.sourceFile=R.options.directSourceFile;if(R.options.ranges)this.range=[P,0]},O9=j8.prototype;O9.startNode=function(){return new C9(this,this.start,this.startLoc)};O9.startNodeAt=function(q,R){return new C9(this,q,R)};function R4(q,R,P,C){if(q.type=R,q.end=P,this.options.locations)q.loc.end=C;if(this.options.ranges)q.range[1]=P;return q}O9.finishNode=function(q,R){return R4.call(this,q,R,this.lastTokEnd,this.lastTokEndLoc)};O9.finishNodeAt=function(q,R,P,C){return R4.call(this,q,R,P,C)};O9.copyNode=function(q){var R=new C9(this,q.start,this.startLoc);for(var P in q)R[P]=q[P];return R};var I$="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",P4="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",C4=P4+" Extended_Pictographic",O4=C4,H4=O4+" EBase EComp EMod EPres ExtPict",M4=H4,f$=M4,S$={9:P4,10:C4,11:O4,12:H4,13:M4,14:f$},v$="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",T$={9:"",10:"",11:"",12:"",13:"",14:v$},l5="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",Q4="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",Z4=Q4+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Y4=Z4+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",F4=Y4+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",V4=F4+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",N$=V4+" "+I$,D$={9:Q4,10:Z4,11:Y4,12:F4,13:V4,14:N$},J4={};function u$(q){var R=J4[q]={binary:_0(S$[q]+" "+l5),binaryOfStrings:_0(T$[q]),nonBinary:{General_Category:_0(l5),Script:_0(D$[q])}};R.nonBinary.Script_Extensions=R.nonBinary.Script,R.nonBinary.gc=R.nonBinary.General_Category,R.nonBinary.sc=R.nonBinary.Script,R.nonBinary.scx=R.nonBinary.Script_Extensions}for(e1=0,Mq=[9,10,11,12,13,14];e1<Mq.length;e1+=1)Q7=Mq[e1],u$(Q7);var Q7,e1,Mq,m=j8.prototype,Vq=function(R,P){this.parent=R,this.base=P||this};Vq.prototype.separatedFrom=function(R){for(var P=this;P;P=P.parent)for(var C=R;C;C=C.parent)if(P.base===C.base&&P!==C)return!0;return!1};Vq.prototype.sibling=function(){return new Vq(this.parent,this.base)};var $0=function(R){this.parser=R,this.validFlags="gim"+(R.options.ecmaVersion>=6?"uy":"")+(R.options.ecmaVersion>=9?"s":"")+(R.options.ecmaVersion>=13?"d":"")+(R.options.ecmaVersion>=15?"v":""),this.unicodeProperties=J4[R.options.ecmaVersion>=14?14:R.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};$0.prototype.reset=function(R,P,C){var O=C.indexOf("v")!==-1,H=C.indexOf("u")!==-1;if(this.start=R|0,this.source=P+"",this.flags=C,O&&this.parser.options.ecmaVersion>=15)this.switchU=!0,this.switchV=!0,this.switchN=!0;else this.switchU=H&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=H&&this.parser.options.ecmaVersion>=9};$0.prototype.raise=function(R){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+R)};$0.prototype.at=function(R,P){if(P===void 0)P=!1;var C=this.source,O=C.length;if(R>=O)return-1;var H=C.charCodeAt(R);if(!(P||this.switchU)||H<=55295||H>=57344||R+1>=O)return H;var M=C.charCodeAt(R+1);return M>=56320&&M<=57343?(H<<10)+M-56613888:H};$0.prototype.nextIndex=function(R,P){if(P===void 0)P=!1;var C=this.source,O=C.length;if(R>=O)return O;var H=C.charCodeAt(R),M;if(!(P||this.switchU)||H<=55295||H>=57344||R+1>=O||(M=C.charCodeAt(R+1))<56320||M>57343)return R+1;return R+2};$0.prototype.current=function(R){if(R===void 0)R=!1;return this.at(this.pos,R)};$0.prototype.lookahead=function(R){if(R===void 0)R=!1;return this.at(this.nextIndex(this.pos,R),R)};$0.prototype.advance=function(R){if(R===void 0)R=!1;this.pos=this.nextIndex(this.pos,R)};$0.prototype.eat=function(R,P){if(P===void 0)P=!1;if(this.current(P)===R)return this.advance(P),!0;return!1};$0.prototype.eatChars=function(R,P){if(P===void 0)P=!1;var C=this.pos;for(var O=0,H=R;O<H.length;O+=1){var M=H[O],F=this.at(C,P);if(F===-1||F!==M)return!1;C=this.nextIndex(C,P)}return this.pos=C,!0};m.validateRegExpFlags=function(q){var{validFlags:R,flags:P}=q,C=!1,O=!1;for(var H=0;H<P.length;H++){var M=P.charAt(H);if(R.indexOf(M)===-1)this.raise(q.start,"Invalid regular expression flag");if(P.indexOf(M,H+1)>-1)this.raise(q.start,"Duplicate regular expression flag");if(M==="u")C=!0;if(M==="v")O=!0}if(this.options.ecmaVersion>=15&&C&&O)this.raise(q.start,"Invalid regular expression flag")};function E$(q){for(var R in q)return!0;return!1}m.validateRegExpPattern=function(q){if(this.regexp_pattern(q),!q.switchN&&this.options.ecmaVersion>=9&&E$(q.groupNames))q.switchN=!0,this.regexp_pattern(q)};m.regexp_pattern=function(q){if(q.pos=0,q.lastIntValue=0,q.lastStringValue="",q.lastAssertionIsQuantifiable=!1,q.numCapturingParens=0,q.maxBackReference=0,q.groupNames=Object.create(null),q.backReferenceNames.length=0,q.branchID=null,this.regexp_disjunction(q),q.pos!==q.source.length){if(q.eat(41))q.raise("Unmatched ')'");if(q.eat(93)||q.eat(125))q.raise("Lone quantifier brackets")}if(q.maxBackReference>q.numCapturingParens)q.raise("Invalid escape");for(var R=0,P=q.backReferenceNames;R<P.length;R+=1){var C=P[R];if(!q.groupNames[C])q.raise("Invalid named capture referenced")}};m.regexp_disjunction=function(q){var R=this.options.ecmaVersion>=16;if(R)q.branchID=new Vq(q.branchID,null);this.regexp_alternative(q);while(q.eat(124)){if(R)q.branchID=q.branchID.sibling();this.regexp_alternative(q)}if(R)q.branchID=q.branchID.parent;if(this.regexp_eatQuantifier(q,!0))q.raise("Nothing to repeat");if(q.eat(123))q.raise("Lone quantifier brackets")};m.regexp_alternative=function(q){while(q.pos<q.source.length&&this.regexp_eatTerm(q));};m.regexp_eatTerm=function(q){if(this.regexp_eatAssertion(q)){if(q.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(q)){if(q.switchU)q.raise("Invalid quantifier")}return!0}if(q.switchU?this.regexp_eatAtom(q):this.regexp_eatExtendedAtom(q))return this.regexp_eatQuantifier(q),!0;return!1};m.regexp_eatAssertion=function(q){var R=q.pos;if(q.lastAssertionIsQuantifiable=!1,q.eat(94)||q.eat(36))return!0;if(q.eat(92)){if(q.eat(66)||q.eat(98))return!0;q.pos=R}if(q.eat(40)&&q.eat(63)){var P=!1;if(this.options.ecmaVersion>=9)P=q.eat(60);if(q.eat(61)||q.eat(33)){if(this.regexp_disjunction(q),!q.eat(41))q.raise("Unterminated group");return q.lastAssertionIsQuantifiable=!P,!0}}return q.pos=R,!1};m.regexp_eatQuantifier=function(q,R){if(R===void 0)R=!1;if(this.regexp_eatQuantifierPrefix(q,R))return q.eat(63),!0;return!1};m.regexp_eatQuantifierPrefix=function(q,R){return q.eat(42)||q.eat(43)||q.eat(63)||this.regexp_eatBracedQuantifier(q,R)};m.regexp_eatBracedQuantifier=function(q,R){var P=q.pos;if(q.eat(123)){var C=0,O=-1;if(this.regexp_eatDecimalDigits(q)){if(C=q.lastIntValue,q.eat(44)&&this.regexp_eatDecimalDigits(q))O=q.lastIntValue;if(q.eat(125)){if(O!==-1&&O<C&&!R)q.raise("numbers out of order in {} quantifier");return!0}}if(q.switchU&&!R)q.raise("Incomplete quantifier");q.pos=P}return!1};m.regexp_eatAtom=function(q){return this.regexp_eatPatternCharacters(q)||q.eat(46)||this.regexp_eatReverseSolidusAtomEscape(q)||this.regexp_eatCharacterClass(q)||this.regexp_eatUncapturingGroup(q)||this.regexp_eatCapturingGroup(q)};m.regexp_eatReverseSolidusAtomEscape=function(q){var R=q.pos;if(q.eat(92)){if(this.regexp_eatAtomEscape(q))return!0;q.pos=R}return!1};m.regexp_eatUncapturingGroup=function(q){var R=q.pos;if(q.eat(40)){if(q.eat(63)){if(this.options.ecmaVersion>=16){var P=this.regexp_eatModifiers(q),C=q.eat(45);if(P||C){for(var O=0;O<P.length;O++){var H=P.charAt(O);if(P.indexOf(H,O+1)>-1)q.raise("Duplicate regular expression modifiers")}if(C){var M=this.regexp_eatModifiers(q);if(!P&&!M&&q.current()===58)q.raise("Invalid regular expression modifiers");for(var F=0;F<M.length;F++){var Y=M.charAt(F);if(M.indexOf(Y,F+1)>-1||P.indexOf(Y)>-1)q.raise("Duplicate regular expression modifiers")}}}}if(q.eat(58)){if(this.regexp_disjunction(q),q.eat(41))return!0;q.raise("Unterminated group")}}q.pos=R}return!1};m.regexp_eatCapturingGroup=function(q){if(q.eat(40)){if(this.options.ecmaVersion>=9)this.regexp_groupSpecifier(q);else if(q.current()===63)q.raise("Invalid group");if(this.regexp_disjunction(q),q.eat(41))return q.numCapturingParens+=1,!0;q.raise("Unterminated group")}return!1};m.regexp_eatModifiers=function(q){var R="",P=0;while((P=q.current())!==-1&&k$(P))R+=u0(P),q.advance();return R};function k$(q){return q===105||q===109||q===115}m.regexp_eatExtendedAtom=function(q){return q.eat(46)||this.regexp_eatReverseSolidusAtomEscape(q)||this.regexp_eatCharacterClass(q)||this.regexp_eatUncapturingGroup(q)||this.regexp_eatCapturingGroup(q)||this.regexp_eatInvalidBracedQuantifier(q)||this.regexp_eatExtendedPatternCharacter(q)};m.regexp_eatInvalidBracedQuantifier=function(q){if(this.regexp_eatBracedQuantifier(q,!0))q.raise("Nothing to repeat");return!1};m.regexp_eatSyntaxCharacter=function(q){var R=q.current();if(K4(R))return q.lastIntValue=R,q.advance(),!0;return!1};function K4(q){return q===36||q>=40&&q<=43||q===46||q===63||q>=91&&q<=94||q>=123&&q<=125}m.regexp_eatPatternCharacters=function(q){var R=q.pos,P=0;while((P=q.current())!==-1&&!K4(P))q.advance();return q.pos!==R};m.regexp_eatExtendedPatternCharacter=function(q){var R=q.current();if(R!==-1&&R!==36&&!(R>=40&&R<=43)&&R!==46&&R!==63&&R!==91&&R!==94&&R!==124)return q.advance(),!0;return!1};m.regexp_groupSpecifier=function(q){if(q.eat(63)){if(!this.regexp_eatGroupName(q))q.raise("Invalid group");var R=this.options.ecmaVersion>=16,P=q.groupNames[q.lastStringValue];if(P)if(R)for(var C=0,O=P;C<O.length;C+=1){var H=O[C];if(!H.separatedFrom(q.branchID))q.raise("Duplicate capture group name")}else q.raise("Duplicate capture group name");if(R)(P||(q.groupNames[q.lastStringValue]=[])).push(q.branchID);else q.groupNames[q.lastStringValue]=!0}};m.regexp_eatGroupName=function(q){if(q.lastStringValue="",q.eat(60)){if(this.regexp_eatRegExpIdentifierName(q)&&q.eat(62))return!0;q.raise("Invalid capture group name")}return!1};m.regexp_eatRegExpIdentifierName=function(q){if(q.lastStringValue="",this.regexp_eatRegExpIdentifierStart(q)){q.lastStringValue+=u0(q.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(q))q.lastStringValue+=u0(q.lastIntValue);return!0}return!1};m.regexp_eatRegExpIdentifierStart=function(q){var R=q.pos,P=this.options.ecmaVersion>=11,C=q.current(P);if(q.advance(P),C===92&&this.regexp_eatRegExpUnicodeEscapeSequence(q,P))C=q.lastIntValue;if(y$(C))return q.lastIntValue=C,!0;return q.pos=R,!1};function y$(q){return a8(q,!0)||q===36||q===95}m.regexp_eatRegExpIdentifierPart=function(q){var R=q.pos,P=this.options.ecmaVersion>=11,C=q.current(P);if(q.advance(P),C===92&&this.regexp_eatRegExpUnicodeEscapeSequence(q,P))C=q.lastIntValue;if(b$(C))return q.lastIntValue=C,!0;return q.pos=R,!1};function b$(q){return K0(q,!0)||q===36||q===95||q===8204||q===8205}m.regexp_eatAtomEscape=function(q){if(this.regexp_eatBackReference(q)||this.regexp_eatCharacterClassEscape(q)||this.regexp_eatCharacterEscape(q)||q.switchN&&this.regexp_eatKGroupName(q))return!0;if(q.switchU){if(q.current()===99)q.raise("Invalid unicode escape");q.raise("Invalid escape")}return!1};m.regexp_eatBackReference=function(q){var R=q.pos;if(this.regexp_eatDecimalEscape(q)){var P=q.lastIntValue;if(q.switchU){if(P>q.maxBackReference)q.maxBackReference=P;return!0}if(P<=q.numCapturingParens)return!0;q.pos=R}return!1};m.regexp_eatKGroupName=function(q){if(q.eat(107)){if(this.regexp_eatGroupName(q))return q.backReferenceNames.push(q.lastStringValue),!0;q.raise("Invalid named reference")}return!1};m.regexp_eatCharacterEscape=function(q){return this.regexp_eatControlEscape(q)||this.regexp_eatCControlLetter(q)||this.regexp_eatZero(q)||this.regexp_eatHexEscapeSequence(q)||this.regexp_eatRegExpUnicodeEscapeSequence(q,!1)||!q.switchU&&this.regexp_eatLegacyOctalEscapeSequence(q)||this.regexp_eatIdentityEscape(q)};m.regexp_eatCControlLetter=function(q){var R=q.pos;if(q.eat(99)){if(this.regexp_eatControlLetter(q))return!0;q.pos=R}return!1};m.regexp_eatZero=function(q){if(q.current()===48&&!Gq(q.lookahead()))return q.lastIntValue=0,q.advance(),!0;return!1};m.regexp_eatControlEscape=function(q){var R=q.current();if(R===116)return q.lastIntValue=9,q.advance(),!0;if(R===110)return q.lastIntValue=10,q.advance(),!0;if(R===118)return q.lastIntValue=11,q.advance(),!0;if(R===102)return q.lastIntValue=12,q.advance(),!0;if(R===114)return q.lastIntValue=13,q.advance(),!0;return!1};m.regexp_eatControlLetter=function(q){var R=q.current();if(W4(R))return q.lastIntValue=R%32,q.advance(),!0;return!1};function W4(q){return q>=65&&q<=90||q>=97&&q<=122}m.regexp_eatRegExpUnicodeEscapeSequence=function(q,R){if(R===void 0)R=!1;var P=q.pos,C=R||q.switchU;if(q.eat(117)){if(this.regexp_eatFixedHexDigits(q,4)){var O=q.lastIntValue;if(C&&O>=55296&&O<=56319){var H=q.pos;if(q.eat(92)&&q.eat(117)&&this.regexp_eatFixedHexDigits(q,4)){var M=q.lastIntValue;if(M>=56320&&M<=57343)return q.lastIntValue=(O-55296)*1024+(M-56320)+65536,!0}q.pos=H,q.lastIntValue=O}return!0}if(C&&q.eat(123)&&this.regexp_eatHexDigits(q)&&q.eat(125)&&h$(q.lastIntValue))return!0;if(C)q.raise("Invalid unicode escape");q.pos=P}return!1};function h$(q){return q>=0&&q<=1114111}m.regexp_eatIdentityEscape=function(q){if(q.switchU){if(this.regexp_eatSyntaxCharacter(q))return!0;if(q.eat(47))return q.lastIntValue=47,!0;return!1}var R=q.current();if(R!==99&&(!q.switchN||R!==107))return q.lastIntValue=R,q.advance(),!0;return!1};m.regexp_eatDecimalEscape=function(q){q.lastIntValue=0;var R=q.current();if(R>=49&&R<=57){do q.lastIntValue=10*q.lastIntValue+(R-48),q.advance();while((R=q.current())>=48&&R<=57);return!0}return!1};var X4=0,E0=1,q0=2;m.regexp_eatCharacterClassEscape=function(q){var R=q.current();if(g$(R))return q.lastIntValue=-1,q.advance(),E0;var P=!1;if(q.switchU&&this.options.ecmaVersion>=9&&((P=R===80)||R===112)){q.lastIntValue=-1,q.advance();var C;if(q.eat(123)&&(C=this.regexp_eatUnicodePropertyValueExpression(q))&&q.eat(125)){if(P&&C===q0)q.raise("Invalid property name");return C}q.raise("Invalid property name")}return X4};function g$(q){return q===100||q===68||q===115||q===83||q===119||q===87}m.regexp_eatUnicodePropertyValueExpression=function(q){var R=q.pos;if(this.regexp_eatUnicodePropertyName(q)&&q.eat(61)){var P=q.lastStringValue;if(this.regexp_eatUnicodePropertyValue(q)){var C=q.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(q,P,C),E0}}if(q.pos=R,this.regexp_eatLoneUnicodePropertyNameOrValue(q)){var O=q.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(q,O)}return X4};m.regexp_validateUnicodePropertyNameAndValue=function(q,R,P){if(!w1(q.unicodeProperties.nonBinary,R))q.raise("Invalid property name");if(!q.unicodeProperties.nonBinary[R].test(P))q.raise("Invalid property value")};m.regexp_validateUnicodePropertyNameOrValue=function(q,R){if(q.unicodeProperties.binary.test(R))return E0;if(q.switchV&&q.unicodeProperties.binaryOfStrings.test(R))return q0;q.raise("Invalid property name")};m.regexp_eatUnicodePropertyName=function(q){var R=0;q.lastStringValue="";while(G4(R=q.current()))q.lastStringValue+=u0(R),q.advance();return q.lastStringValue!==""};function G4(q){return W4(q)||q===95}m.regexp_eatUnicodePropertyValue=function(q){var R=0;q.lastStringValue="";while(l$(R=q.current()))q.lastStringValue+=u0(R),q.advance();return q.lastStringValue!==""};function l$(q){return G4(q)||Gq(q)}m.regexp_eatLoneUnicodePropertyNameOrValue=function(q){return this.regexp_eatUnicodePropertyValue(q)};m.regexp_eatCharacterClass=function(q){if(q.eat(91)){var R=q.eat(94),P=this.regexp_classContents(q);if(!q.eat(93))q.raise("Unterminated character class");if(R&&P===q0)q.raise("Negated character class may contain strings");return!0}return!1};m.regexp_classContents=function(q){if(q.current()===93)return E0;if(q.switchV)return this.regexp_classSetExpression(q);return this.regexp_nonEmptyClassRanges(q),E0};m.regexp_nonEmptyClassRanges=function(q){while(this.regexp_eatClassAtom(q)){var R=q.lastIntValue;if(q.eat(45)&&this.regexp_eatClassAtom(q)){var P=q.lastIntValue;if(q.switchU&&(R===-1||P===-1))q.raise("Invalid character class");if(R!==-1&&P!==-1&&R>P)q.raise("Range out of order in character class")}}};m.regexp_eatClassAtom=function(q){var R=q.pos;if(q.eat(92)){if(this.regexp_eatClassEscape(q))return!0;if(q.switchU){var P=q.current();if(P===99||U4(P))q.raise("Invalid class escape");q.raise("Invalid escape")}q.pos=R}var C=q.current();if(C!==93)return q.lastIntValue=C,q.advance(),!0;return!1};m.regexp_eatClassEscape=function(q){var R=q.pos;if(q.eat(98))return q.lastIntValue=8,!0;if(q.switchU&&q.eat(45))return q.lastIntValue=45,!0;if(!q.switchU&&q.eat(99)){if(this.regexp_eatClassControlLetter(q))return!0;q.pos=R}return this.regexp_eatCharacterClassEscape(q)||this.regexp_eatCharacterEscape(q)};m.regexp_classSetExpression=function(q){var R=E0,P;if(this.regexp_eatClassSetRange(q));else if(P=this.regexp_eatClassSetOperand(q)){if(P===q0)R=q0;var C=q.pos;while(q.eatChars([38,38])){if(q.current()!==38&&(P=this.regexp_eatClassSetOperand(q))){if(P!==q0)R=E0;continue}q.raise("Invalid character in character class")}if(C!==q.pos)return R;while(q.eatChars([45,45])){if(this.regexp_eatClassSetOperand(q))continue;q.raise("Invalid character in character class")}if(C!==q.pos)return R}else q.raise("Invalid character in character class");for(;;){if(this.regexp_eatClassSetRange(q))continue;if(P=this.regexp_eatClassSetOperand(q),!P)return R;if(P===q0)R=q0}};m.regexp_eatClassSetRange=function(q){var R=q.pos;if(this.regexp_eatClassSetCharacter(q)){var P=q.lastIntValue;if(q.eat(45)&&this.regexp_eatClassSetCharacter(q)){var C=q.lastIntValue;if(P!==-1&&C!==-1&&P>C)q.raise("Range out of order in character class");return!0}q.pos=R}return!1};m.regexp_eatClassSetOperand=function(q){if(this.regexp_eatClassSetCharacter(q))return E0;return this.regexp_eatClassStringDisjunction(q)||this.regexp_eatNestedClass(q)};m.regexp_eatNestedClass=function(q){var R=q.pos;if(q.eat(91)){var P=q.eat(94),C=this.regexp_classContents(q);if(q.eat(93)){if(P&&C===q0)q.raise("Negated character class may contain strings");return C}q.pos=R}if(q.eat(92)){var O=this.regexp_eatCharacterClassEscape(q);if(O)return O;q.pos=R}return null};m.regexp_eatClassStringDisjunction=function(q){var R=q.pos;if(q.eatChars([92,113])){if(q.eat(123)){var P=this.regexp_classStringDisjunctionContents(q);if(q.eat(125))return P}else q.raise("Invalid escape");q.pos=R}return null};m.regexp_classStringDisjunctionContents=function(q){var R=this.regexp_classString(q);while(q.eat(124))if(this.regexp_classString(q)===q0)R=q0;return R};m.regexp_classString=function(q){var R=0;while(this.regexp_eatClassSetCharacter(q))R++;return R===1?E0:q0};m.regexp_eatClassSetCharacter=function(q){var R=q.pos;if(q.eat(92)){if(this.regexp_eatCharacterEscape(q)||this.regexp_eatClassSetReservedPunctuator(q))return!0;if(q.eat(98))return q.lastIntValue=8,!0;return q.pos=R,!1}var P=q.current();if(P<0||P===q.lookahead()&&_$(P))return!1;if(m$(P))return!1;return q.advance(),q.lastIntValue=P,!0};function _$(q){return q===33||q>=35&&q<=38||q>=42&&q<=44||q===46||q>=58&&q<=64||q===94||q===96||q===126}function m$(q){return q===40||q===41||q===45||q===47||q>=91&&q<=93||q>=123&&q<=125}m.regexp_eatClassSetReservedPunctuator=function(q){var R=q.current();if(x$(R))return q.lastIntValue=R,q.advance(),!0;return!1};function x$(q){return q===33||q===35||q===37||q===38||q===44||q===45||q>=58&&q<=62||q===64||q===96||q===126}m.regexp_eatClassControlLetter=function(q){var R=q.current();if(Gq(R)||R===95)return q.lastIntValue=R%32,q.advance(),!0;return!1};m.regexp_eatHexEscapeSequence=function(q){var R=q.pos;if(q.eat(120)){if(this.regexp_eatFixedHexDigits(q,2))return!0;if(q.switchU)q.raise("Invalid escape");q.pos=R}return!1};m.regexp_eatDecimalDigits=function(q){var R=q.pos,P=0;q.lastIntValue=0;while(Gq(P=q.current()))q.lastIntValue=10*q.lastIntValue+(P-48),q.advance();return q.pos!==R};function Gq(q){return q>=48&&q<=57}m.regexp_eatHexDigits=function(q){var R=q.pos,P=0;q.lastIntValue=0;while(z4(P=q.current()))q.lastIntValue=16*q.lastIntValue+B4(P),q.advance();return q.pos!==R};function z4(q){return q>=48&&q<=57||q>=65&&q<=70||q>=97&&q<=102}function B4(q){if(q>=65&&q<=70)return 10+(q-65);if(q>=97&&q<=102)return 10+(q-97);return q-48}m.regexp_eatLegacyOctalEscapeSequence=function(q){if(this.regexp_eatOctalDigit(q)){var R=q.lastIntValue;if(this.regexp_eatOctalDigit(q)){var P=q.lastIntValue;if(R<=3&&this.regexp_eatOctalDigit(q))q.lastIntValue=R*64+P*8+q.lastIntValue;else q.lastIntValue=R*8+P}else q.lastIntValue=R;return!0}return!1};m.regexp_eatOctalDigit=function(q){var R=q.current();if(U4(R))return q.lastIntValue=R-48,q.advance(),!0;return q.lastIntValue=0,!1};function U4(q){return q>=48&&q<=55}m.regexp_eatFixedHexDigits=function(q,R){var P=q.pos;q.lastIntValue=0;for(var C=0;C<R;++C){var O=q.current();if(!z4(O))return q.pos=P,!1;q.lastIntValue=16*q.lastIntValue+B4(O),q.advance()}return!0};var zq=function(R){if(this.type=R.type,this.value=R.value,this.start=R.start,this.end=R.end,R.options.locations)this.loc=new R9(R,R.startLoc,R.endLoc);if(R.options.ranges)this.range=[R.start,R.end]},M8=j8.prototype;M8.next=function(q){if(!q&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new zq(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};M8.getToken=function(){return this.next(),new zq(this)};if(typeof Symbol<"u")M8[Symbol.iterator]=function(){var q=this;return{next:function(){var R=q.getToken();return{done:R.type===W.eof,value:R}}}};M8.nextToken=function(){var q=this.curContext();if(!q||!q.preserveSpace)this.skipSpace();if(this.start=this.pos,this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(W.eof);if(q.override)return q.override(this);else this.readToken(this.fullCharCodeAtPos())};M8.readToken=function(q){if(a8(q,this.options.ecmaVersion>=6)||q===92)return this.readWord();return this.getTokenFromCode(q)};M8.fullCharCodeAt=function(q){var R=this.input.charCodeAt(q);if(R<=55295||R>=56320)return R;var P=this.input.charCodeAt(q+1);return P<=56319||P>=57344?R:(R<<10)+P-56613888};M8.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};M8.skipBlockComment=function(){var q=this.options.onComment&&this.curPosition(),R=this.pos,P=this.input.indexOf("*/",this.pos+=2);if(P===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=P+2,this.options.locations)for(var C=void 0,O=R;(C=c5(this.input,O,this.pos))>-1;)++this.curLine,O=this.lineStart=C;if(this.options.onComment)this.options.onComment(!0,this.input.slice(R+2,P),R,this.pos,q,this.curPosition())};M8.skipLineComment=function(q){var R=this.pos,P=this.options.onComment&&this.curPosition(),C=this.input.charCodeAt(this.pos+=q);while(this.pos<this.input.length&&!O1(C))C=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(R+q,this.pos),R,this.pos,P,this.curPosition())};M8.skipSpace=function(){q:while(this.pos<this.input.length){var q=this.input.charCodeAt(this.pos);switch(q){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10)++this.pos;case 10:case 8232:case 8233:if(++this.pos,this.options.locations)++this.curLine,this.lineStart=this.pos;break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break q}break;default:if(q>8&&q<14||q>=5760&&Z7.test(String.fromCharCode(q)))++this.pos;else break q}}};M8.finishToken=function(q,R){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var P=this.type;this.type=q,this.value=R,this.updateContext(P)};M8.readToken_dot=function(){var q=this.input.charCodeAt(this.pos+1);if(q>=48&&q<=57)return this.readNumber(!0);var R=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&q===46&&R===46)return this.pos+=3,this.finishToken(W.ellipsis);else return++this.pos,this.finishToken(W.dot)};M8.readToken_slash=function(){var q=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(q===61)return this.finishOp(W.assign,2);return this.finishOp(W.slash,1)};M8.readToken_mult_modulo_exp=function(q){var R=this.input.charCodeAt(this.pos+1),P=1,C=q===42?W.star:W.modulo;if(this.options.ecmaVersion>=7&&q===42&&R===42)++P,C=W.starstar,R=this.input.charCodeAt(this.pos+2);if(R===61)return this.finishOp(W.assign,P+1);return this.finishOp(C,P)};M8.readToken_pipe_amp=function(q){var R=this.input.charCodeAt(this.pos+1);if(R===q){if(this.options.ecmaVersion>=12){var P=this.input.charCodeAt(this.pos+2);if(P===61)return this.finishOp(W.assign,3)}return this.finishOp(q===124?W.logicalOR:W.logicalAND,2)}if(R===61)return this.finishOp(W.assign,2);return this.finishOp(q===124?W.bitwiseOR:W.bitwiseAND,1)};M8.readToken_caret=function(){var q=this.input.charCodeAt(this.pos+1);if(q===61)return this.finishOp(W.assign,2);return this.finishOp(W.bitwiseXOR,1)};M8.readToken_plus_min=function(q){var R=this.input.charCodeAt(this.pos+1);if(R===q){if(R===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||x8.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(W.incDec,2)}if(R===61)return this.finishOp(W.assign,2);return this.finishOp(W.plusMin,1)};M8.readToken_lt_gt=function(q){var R=this.input.charCodeAt(this.pos+1),P=1;if(R===q){if(P=q===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+P)===61)return this.finishOp(W.assign,P+1);return this.finishOp(W.bitShift,P)}if(R===33&&q===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45)return this.skipLineComment(4),this.skipSpace(),this.nextToken();if(R===61)P=2;return this.finishOp(W.relational,P)};M8.readToken_eq_excl=function(q){var R=this.input.charCodeAt(this.pos+1);if(R===61)return this.finishOp(W.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(q===61&&R===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(W.arrow);return this.finishOp(q===61?W.eq:W.prefix,1)};M8.readToken_question=function(){var q=this.options.ecmaVersion;if(q>=11){var R=this.input.charCodeAt(this.pos+1);if(R===46){var P=this.input.charCodeAt(this.pos+2);if(P<48||P>57)return this.finishOp(W.questionDot,2)}if(R===63){if(q>=12){var C=this.input.charCodeAt(this.pos+2);if(C===61)return this.finishOp(W.assign,3)}return this.finishOp(W.coalesce,2)}}return this.finishOp(W.question,1)};M8.readToken_numberSign=function(){var q=this.options.ecmaVersion,R=35;if(q>=13){if(++this.pos,R=this.fullCharCodeAtPos(),a8(R,!0)||R===92)return this.finishToken(W.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+u0(R)+"'")};M8.getTokenFromCode=function(q){switch(q){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(W.parenL);case 41:return++this.pos,this.finishToken(W.parenR);case 59:return++this.pos,this.finishToken(W.semi);case 44:return++this.pos,this.finishToken(W.comma);case 91:return++this.pos,this.finishToken(W.bracketL);case 93:return++this.pos,this.finishToken(W.bracketR);case 123:return++this.pos,this.finishToken(W.braceL);case 125:return++this.pos,this.finishToken(W.braceR);case 58:return++this.pos,this.finishToken(W.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(W.backQuote);case 48:var R=this.input.charCodeAt(this.pos+1);if(R===120||R===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(R===111||R===79)return this.readRadixNumber(8);if(R===98||R===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(q);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(q);case 124:case 38:return this.readToken_pipe_amp(q);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(q);case 60:case 62:return this.readToken_lt_gt(q);case 61:case 33:return this.readToken_eq_excl(q);case 63:return this.readToken_question();case 126:return this.finishOp(W.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+u0(q)+"'")};M8.finishOp=function(q,R){var P=this.input.slice(this.pos,this.pos+R);return this.pos+=R,this.finishToken(q,P)};M8.readRegexp=function(){var q,R,P=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(P,"Unterminated regular expression");var C=this.input.charAt(this.pos);if(x8.test(C))this.raise(P,"Unterminated regular expression");if(!q){if(C==="[")R=!0;else if(C==="]"&&R)R=!1;else if(C==="/"&&!R)break;q=C==="\\"}else q=!1;++this.pos}var O=this.input.slice(P,this.pos);++this.pos;var H=this.pos,M=this.readWord1();if(this.containsEsc)this.unexpected(H);var F=this.regexpState||(this.regexpState=new $0(this));F.reset(P,O,M),this.validateRegExpFlags(F),this.validateRegExpPattern(F);var Y=null;try{Y=new RegExp(O,M)}catch(K){}return this.finishToken(W.regexp,{pattern:O,flags:M,value:Y})};M8.readInt=function(q,R,P){var C=this.options.ecmaVersion>=12&&R===void 0,O=P&&this.input.charCodeAt(this.pos)===48,H=this.pos,M=0,F=0;for(var Y=0,K=R==null?1/0:R;Y<K;++Y,++this.pos){var J=this.input.charCodeAt(this.pos),$=void 0;if(C&&J===95){if(O)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(F===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(Y===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");F=J;continue}if(J>=97)$=J-97+10;else if(J>=65)$=J-65+10;else if(J>=48&&J<=57)$=J-48;else $=1/0;if($>=q)break;F=J,M=M*q+$}if(C&&F===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===H||R!=null&&this.pos-H!==R)return null;return M};function p$(q,R){if(R)return parseInt(q,8);return parseFloat(q.replace(/_/g,""))}function $4(q){if(typeof BigInt!=="function")return null;return BigInt(q.replace(/_/g,""))}M8.readRadixNumber=function(q){var R=this.pos;this.pos+=2;var P=this.readInt(q);if(P==null)this.raise(this.start+2,"Expected number in radix "+q);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)P=$4(this.input.slice(R,this.pos)),++this.pos;else if(a8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(W.num,P)};M8.readNumber=function(q){var R=this.pos;if(!q&&this.readInt(10,void 0,!0)===null)this.raise(R,"Invalid number");var P=this.pos-R>=2&&this.input.charCodeAt(R)===48;if(P&&this.strict)this.raise(R,"Invalid number");var C=this.input.charCodeAt(this.pos);if(!P&&!q&&this.options.ecmaVersion>=11&&C===110){var O=$4(this.input.slice(R,this.pos));if(++this.pos,a8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(W.num,O)}if(P&&/[89]/.test(this.input.slice(R,this.pos)))P=!1;if(C===46&&!P)++this.pos,this.readInt(10),C=this.input.charCodeAt(this.pos);if((C===69||C===101)&&!P){if(C=this.input.charCodeAt(++this.pos),C===43||C===45)++this.pos;if(this.readInt(10)===null)this.raise(R,"Invalid number")}if(a8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var H=p$(this.input.slice(R,this.pos),P);return this.finishToken(W.num,H)};M8.readCodePoint=function(){var q=this.input.charCodeAt(this.pos),R;if(q===123){if(this.options.ecmaVersion<6)this.unexpected();var P=++this.pos;if(R=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,R>1114111)this.invalidStringToken(P,"Code point out of bounds")}else R=this.readHexChar(4);return R};M8.readString=function(q){var R="",P=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var C=this.input.charCodeAt(this.pos);if(C===q)break;if(C===92)R+=this.input.slice(P,this.pos),R+=this.readEscapedChar(!1),P=this.pos;else if(C===8232||C===8233){if(this.options.ecmaVersion<10)this.raise(this.start,"Unterminated string constant");if(++this.pos,this.options.locations)this.curLine++,this.lineStart=this.pos}else{if(O1(C))this.raise(this.start,"Unterminated string constant");++this.pos}}return R+=this.input.slice(P,this.pos++),this.finishToken(W.string,R)};var A4={};M8.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(q){if(q===A4)this.readInvalidTemplateToken();else throw q}this.inTemplateElement=!1};M8.invalidStringToken=function(q,R){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw A4;else this.raise(q,R)};M8.readTmplToken=function(){var q="",R=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var P=this.input.charCodeAt(this.pos);if(P===96||P===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===W.template||this.type===W.invalidTemplate))if(P===36)return this.pos+=2,this.finishToken(W.dollarBraceL);else return++this.pos,this.finishToken(W.backQuote);return q+=this.input.slice(R,this.pos),this.finishToken(W.template,q)}if(P===92)q+=this.input.slice(R,this.pos),q+=this.readEscapedChar(!0),R=this.pos;else if(O1(P)){switch(q+=this.input.slice(R,this.pos),++this.pos,P){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:q+=`
31
- `;break;default:q+=String.fromCharCode(P);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;R=this.pos}else++this.pos}};M8.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(W.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":if(this.input[this.pos+1]===`
23
+ ${this.frame}`;return q}toJSON(){return{code:this.code,message:this.message,filename:this.filename,start:this.start,end:this.end,position:this.position,frame:this.frame}}}class a7 extends b1{name="CompileWarning";constructor(q,Q,Z){super(q,Q,Z)}}function k1(q,Q,Z){let Y=S9;if(q)Y=o7.get(q)??S9;if(Y&&Y.at(-1)?.has(Q))return;let H=new a7(Q,Z,q&&q.start!==void 0?[q.start,q.end??q.start]:void 0);if(!P9(H))return;I9.push(H)}var r7=["a11y_accesskey","a11y_aria_activedescendant_has_tabindex","a11y_aria_attributes","a11y_autocomplete_valid","a11y_autofocus","a11y_click_events_have_key_events","a11y_consider_explicit_label","a11y_distracting_elements","a11y_figcaption_index","a11y_figcaption_parent","a11y_hidden","a11y_img_redundant_alt","a11y_incorrect_aria_attribute_type","a11y_incorrect_aria_attribute_type_boolean","a11y_incorrect_aria_attribute_type_id","a11y_incorrect_aria_attribute_type_idlist","a11y_incorrect_aria_attribute_type_integer","a11y_incorrect_aria_attribute_type_token","a11y_incorrect_aria_attribute_type_tokenlist","a11y_incorrect_aria_attribute_type_tristate","a11y_interactive_supports_focus","a11y_invalid_attribute","a11y_label_has_associated_control","a11y_media_has_caption","a11y_misplaced_role","a11y_misplaced_scope","a11y_missing_attribute","a11y_missing_content","a11y_mouse_events_have_key_events","a11y_no_abstract_role","a11y_no_interactive_element_to_noninteractive_role","a11y_no_noninteractive_element_interactions","a11y_no_noninteractive_element_to_interactive_role","a11y_no_noninteractive_tabindex","a11y_no_redundant_roles","a11y_no_static_element_interactions","a11y_positive_tabindex","a11y_role_has_required_aria_props","a11y_role_supports_aria_props","a11y_role_supports_aria_props_implicit","a11y_unknown_aria_attribute","a11y_unknown_role","bidirectional_control_characters","legacy_code","unknown_code","options_deprecated_accessors","options_deprecated_immutable","options_missing_custom_element","options_removed_enable_sourcemap","options_removed_hydratable","options_removed_loop_guard_timeout","options_renamed_ssr_dom","custom_element_props_identifier","export_let_unused","legacy_component_creation","non_reactive_update","perf_avoid_inline_class","perf_avoid_nested_class","reactive_declaration_invalid_placement","reactive_declaration_module_script_dependency","state_referenced_locally","store_rune_conflict","css_unused_selector","attribute_avoid_is","attribute_global_event_reference","attribute_illegal_colon","attribute_invalid_property_name","attribute_quoted","bind_invalid_each_rest","block_empty","component_name_lowercase","element_implicitly_closed","element_invalid_self_closing_tag","event_directive_deprecated","node_invalid_placement_ssr","script_context_deprecated","script_unknown_attribute","slot_element_deprecated","svelte_component_deprecated","svelte_element_invalid_this","svelte_self_deprecated"];function t7(q,Q,Z){k1(q,"legacy_code",`\`${Q}\` is no longer valid — please use \`${Z}\` instead
24
+ https://svelte.dev/e/legacy_code`)}function e7(q,Q,Z){k1(q,"unknown_code",`${Z?`\`${Q}\` is not a recognised code (did you mean \`${Z}\`?)`:`\`${Q}\` is not a recognised code`}
25
+ https://svelte.dev/e/unknown_code`)}function N9(q,Q,Z){k1(q,"element_implicitly_closed",`This element is implicitly closed by the following \`${Q}\`, which can cause an unexpected DOM structure. Add an explicit \`${Z}\` to avoid surprises.
26
+ https://svelte.dev/e/element_implicitly_closed`)}function q2(q){k1(q,"script_unknown_attribute","Unrecognised attribute — should be one of `generics`, `lang` or `module`. If this exists for a preprocessor, ensure that the preprocessor removes it\nhttps://svelte.dev/e/script_unknown_attribute")}function Q2(q){k1(q,"svelte_element_invalid_this","`this` should be an `{expression}`. Using a string attribute value will cause an error in future versions of Svelte\nhttps://svelte.dev/e/svelte_element_invalid_this")}var Dq=/^\s*svelte-ignore\s/,Z2={"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"},E1=r7.concat(x7);function Y2(q,Q,Z){let Y=Dq.exec(Q);if(!Y)return[];let H=Y[0].length;q+=H;let V=[];if(Z)for(let K of Q.slice(H).matchAll(/([\w$-]+)(,)?/gm)){let W=K[1];if(E1.includes(W))V.push(W);else{let G=Z2[W]??W.replace(/-/g,"_"),R=q+K.index,O=R+W.length;if(E1.includes(G))t7({start:R,end:O},W,G);else{let $=A9(W,E1);e7({start:R,end:O},W,$)}}if(!K[2])break}else for(let K of Q.slice(H).matchAll(/[\w$-]+/gm)){let W=K[0];if(V.push(W),!E1.includes(W)){let G=Z2[W]??W.replace(/-/g,"_");if(E1.includes(G))V.push(G)}}return V}function G1(q){let Q=q.at(0),Z=q.at(-1);if(Q?.type==="Text")if(!$9.test(Q.data))q.shift();else Q.data=Q.data.replace(f7,"");if(Z?.type==="Text")if(!$9.test(Z.data))q.pop();else Z.data=Z.data.replace(y7,"")}function H2(q,Q){return n8(Q,null,{_(Y,{next:H}){delete Y.metadata,H()},Root(Y,{visit:H}){let{instance:V,module:K,options:W}=Y;if(W?.__raw__){let O=Y.fragment.nodes.findIndex(($)=>W.end<=$.start);if(O===-1)O=Y.fragment.nodes.length;Y.fragment.nodes.splice(O,0,W.__raw__)}let G=null,R=null;if(Y.fragment.nodes.length>0){let O=Y.fragment.nodes.at(0),$=Y.fragment.nodes.at(-1);G=O.start,R=$.end;while(/\s/.test(q[G]))G+=1;while(/\s/.test(q[R-1]))R-=1}if(V)delete V.attributes;if(K)delete K.attributes;return{html:{type:"Fragment",start:G,end:R,children:Y.fragment.nodes.map((O)=>H(O))},instance:V,module:K,css:Q.css?H(Q.css):void 0,_comments:Q.comments?.length>0?Q.comments:void 0}},AnimateDirective(Y){return{...Y,type:"Animation"}},AwaitBlock(Y,{visit:H}){let V={type:"PendingBlock",start:null,end:null,children:Y.pending?.nodes.map((G)=>H(G))??[],skip:!0},K={type:"ThenBlock",start:null,end:null,children:Y.then?.nodes.map((G)=>H(G))??[],skip:!0},W={type:"CatchBlock",start:null,end:null,children:Y.catch?.nodes.map((G)=>H(G))??[],skip:!0};if(Y.pending){let G=Y.pending.nodes.at(0),R=Y.pending.nodes.at(-1);V.start=G?.start??q.indexOf("}",Y.expression.end)+1,V.end=R?.end??V.start,V.skip=!1}if(Y.then){let G=Y.then.nodes.at(0),R=Y.then.nodes.at(-1);K.start=V.end??G?.start??q.indexOf("}",Y.expression.end)+1,K.end=R?.end??q.lastIndexOf("}",V.end??Y.expression.end)+1,K.skip=!1}if(Y.catch){let G=Y.catch.nodes.at(0),R=Y.catch.nodes.at(-1);W.start=K.end??V.end??G?.start??q.indexOf("}",Y.expression.end)+1,W.end=R?.end??q.lastIndexOf("}",K.end??V.end??Y.expression.end)+1,W.skip=!1}return{type:"AwaitBlock",start:Y.start,end:Y.end,expression:Y.expression,value:Y.value,error:Y.error,pending:V,then:K,catch:W}},BindDirective(Y){return{...Y,type:"Binding"}},ClassDirective(Y){return{...Y,type:"Class"}},Comment(Y){return{...Y,ignores:Y2(Y.start,Y.data,!1)}},ComplexSelector(Y,{next:H}){H();let V=[];for(let K of Y.children){if(K.combinator)V.push(K.combinator);V.push(...K.selectors)}return{type:"Selector",start:Y.start,end:Y.end,children:V}},Component(Y,{visit:H}){return{type:"InlineComponent",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},ConstTag(Y){if(Y.expression!==void 0)return Y;let H=Y,{id:V}={...H.declaration.declarations[0]};return delete V.typeAnnotation,{type:"ConstTag",start:H.start,end:Y.end,expression:{type:"AssignmentExpression",start:(H.declaration.start??0)+6,end:H.declaration.end??0,operator:"=",left:V,right:H.declaration.declarations[0].init}}},DeclarationTag(Y){return Y},KeyBlock(Y,{visit:H}){return G1(Y.fragment.nodes),{type:"KeyBlock",start:Y.start,end:Y.end,expression:Y.expression,children:Y.fragment.nodes.map((V)=>H(V))}},EachBlock(Y,{visit:H}){let V=void 0;if(Y.fallback){let K=Y.fallback.nodes.at(0),W=q.lastIndexOf("{",Y.end-1),G=K?.start??W;G1(Y.fallback.nodes),V={type:"ElseBlock",start:G,end:W,children:Y.fallback.nodes.map((R)=>H(R))}}return G1(Y.body.nodes),{type:"EachBlock",start:Y.start,end:Y.end,children:Y.body.nodes.map((K)=>H(K)),context:Y.context,expression:Y.expression,index:Y.index,key:Y.key,else:V}},ExpressionTag(Y,{path:H}){let V=H.at(-1);if(V?.type==="Attribute"){if(q[V.start]==="{")return{type:"AttributeShorthand",start:Y.start,end:Y.end,expression:Y.expression}}return{type:"MustacheTag",start:Y.start,end:Y.end,expression:Y.expression}},HtmlTag(Y){return{...Y,type:"RawMustacheTag"}},IfBlock(Y,{visit:H}){let V=void 0;if(Y.alternate){let W=Y.alternate.nodes;if(W.length===1&&W[0].type==="IfBlock"&&W[0].elseif)W=W[0].consequent.nodes;let G=q.lastIndexOf("{",Y.end-1),R=W.at(0)?.start??G;G1(Y.alternate.nodes),V={type:"ElseBlock",start:R,end:G,children:Y.alternate.nodes.map((O)=>H(O))}}let K=Y.elseif?Y.consequent.nodes[0]?.start??q.lastIndexOf("{",Y.end-1):Y.start;return G1(Y.consequent.nodes),{type:"IfBlock",start:K,end:Y.end,expression:Y.test,children:Y.consequent.nodes.map((W)=>H(W)),else:V,elseif:Y.elseif?!0:void 0}},OnDirective(Y){return{...Y,type:"EventHandler"}},SnippetBlock(Y,{visit:H}){return G1(Y.body.nodes),{type:"SnippetBlock",start:Y.start,end:Y.end,expression:Y.expression,parameters:Y.parameters,children:Y.body.nodes.map((V)=>H(V)),typeParams:Y.typeParams}},SvelteBoundary(Y,{visit:H}){return G1(Y.fragment.nodes),{type:"SvelteBoundary",name:"svelte:boundary",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},RegularElement(Y,{visit:H}){return{type:"Element",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SlotElement(Y,{visit:H}){return{type:"Slot",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},Attribute(Y,{visit:H,next:V,path:K}){if(Y.value!==!0&&!Array.isArray(Y.value)){K.push(Y);let W=[H(Y.value)];return K.pop(),{...Y,value:W}}else return V()},StyleDirective(Y,{visit:H,next:V,path:K}){if(Y.value!==!0&&!Array.isArray(Y.value)){K.push(Y);let W=[H(Y.value)];return K.pop(),{...Y,value:W}}else return V()},SpreadAttribute(Y){return{...Y,type:"Spread"}},StyleSheet(Y,H){return{...Y,...H.next(),type:"Style"}},SvelteBody(Y,{visit:H}){return{type:"Body",name:"svelte:body",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SvelteComponent(Y,{visit:H}){return{type:"InlineComponent",name:"svelte:component",start:Y.start,end:Y.end,expression:Y.expression,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SvelteDocument(Y,{visit:H}){return{type:"Document",name:"svelte:document",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SvelteElement(Y,{visit:H}){let V=Y.tag;if(V.type==="Literal"&&typeof V.value==="string"&&q[Y.tag.start-1]!=="{")V=V.value;return{type:"Element",name:"svelte:element",start:Y.start,end:Y.end,tag:V,attributes:Y.attributes.map((K)=>H(K)),children:Y.fragment.nodes.map((K)=>H(K))}},SvelteFragment(Y,{visit:H}){return{type:"SlotTemplate",name:"svelte:fragment",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SvelteHead(Y,{visit:H}){return{type:"Head",name:"svelte:head",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SvelteOptions(Y,{visit:H}){return{type:"Options",name:"svelte:options",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V))}},SvelteSelf(Y,{visit:H}){return{type:"InlineComponent",name:"svelte:self",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SvelteWindow(Y,{visit:H}){return{type:"Window",name:"svelte:window",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},Text(Y,{path:H}){let V=H.at(-1);if(V?.type==="RegularElement"&&V.name==="style")return{type:"Text",start:Y.start,end:Y.end,data:Y.data}},TitleElement(Y,{visit:H}){return{type:"Title",name:"title",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},TransitionDirective(Y){return{...Y,type:"Transition"}},UseDirective(Y){return{...Y,type:"Action"}},LetDirective(Y){return{...Y,type:"Let"}}})}var D0={};Q3(D0,{version:()=>d2,tokenizer:()=>zQ,tokTypes:()=>U,tokContexts:()=>Q8,parseExpressionAt:()=>GQ,parse:()=>WQ,nonASCIIwhitespace:()=>y9,lineBreakG:()=>j2,lineBreak:()=>F8,keywordTypes:()=>C0,isNewLine:()=>j1,isIdentifierStart:()=>A8,isIdentifierChar:()=>y8,getLineInfo:()=>g9,defaultOptions:()=>B0,TokenType:()=>o,Token:()=>S0,TokContext:()=>T8,SourceLocation:()=>f1,Position:()=>B1,Parser:()=>Y8,Node:()=>g1});var Nq=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],W2=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Tq="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",G2="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",b9={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"},k9="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",bq={5:k9,"5module":k9+" export import",6:k9+" const class extends export import super"},z2=/^in(stanceof)?$/,kq=new RegExp("["+G2+"]"),Eq=new RegExp("["+G2+Tq+"]");function E9(q,Q){var Z=65536;for(var Y=0;Y<Q.length;Y+=2){if(Z+=Q[Y],Z>q)return!1;if(Z+=Q[Y+1],Z>=q)return!0}return!1}function A8(q,Q){if(q<65)return q===36;if(q<91)return!0;if(q<97)return q===95;if(q<123)return!0;if(q<=65535)return q>=170&&kq.test(String.fromCharCode(q));if(Q===!1)return!1;return E9(q,W2)}function y8(q,Q){if(q<48)return q===36;if(q<58)return!0;if(q<65)return!1;if(q<91)return!0;if(q<97)return q===95;if(q<123)return!0;if(q<=65535)return q>=170&&Eq.test(String.fromCharCode(q));if(Q===!1)return!1;return E9(q,W2)||E9(q,Nq)}var o=function(Q,Z){if(Z===void 0)Z={};this.label=Q,this.keyword=Z.keyword,this.beforeExpr=!!Z.beforeExpr,this.startsExpr=!!Z.startsExpr,this.isLoop=!!Z.isLoop,this.isAssign=!!Z.isAssign,this.prefix=!!Z.prefix,this.postfix=!!Z.postfix,this.binop=Z.binop||null,this.updateContext=null};function D8(q,Q){return new o(q,{beforeExpr:!0,binop:Q})}var N8={beforeExpr:!0},$8={startsExpr:!0},C0={};function d(q,Q){if(Q===void 0)Q={};return Q.keyword=q,C0[q]=new o(q,Q)}var U={num:new o("num",$8),regexp:new o("regexp",$8),string:new o("string",$8),name:new o("name",$8),privateId:new o("privateId",$8),eof:new o("eof"),bracketL:new o("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new o("]"),braceL:new o("{",{beforeExpr:!0,startsExpr:!0}),braceR:new o("}"),parenL:new o("(",{beforeExpr:!0,startsExpr:!0}),parenR:new o(")"),comma:new o(",",N8),semi:new o(";",N8),colon:new o(":",N8),dot:new o("."),question:new o("?",N8),questionDot:new o("?."),arrow:new o("=>",N8),template:new o("template"),invalidTemplate:new o("invalidTemplate"),ellipsis:new o("...",N8),backQuote:new o("`",$8),dollarBraceL:new o("${",{beforeExpr:!0,startsExpr:!0}),eq:new o("=",{beforeExpr:!0,isAssign:!0}),assign:new o("_=",{beforeExpr:!0,isAssign:!0}),incDec:new o("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new o("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:D8("||",1),logicalAND:D8("&&",2),bitwiseOR:D8("|",3),bitwiseXOR:D8("^",4),bitwiseAND:D8("&",5),equality:D8("==/!=/===/!==",6),relational:D8("</>/<=/>=",7),bitShift:D8("<</>>/>>>",8),plusMin:new o("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:D8("%",10),star:D8("*",10),slash:D8("/",10),starstar:new o("**",{beforeExpr:!0}),coalesce:D8("??",1),_break:d("break"),_case:d("case",N8),_catch:d("catch"),_continue:d("continue"),_debugger:d("debugger"),_default:d("default",N8),_do:d("do",{isLoop:!0,beforeExpr:!0}),_else:d("else",N8),_finally:d("finally"),_for:d("for",{isLoop:!0}),_function:d("function",$8),_if:d("if"),_return:d("return",N8),_switch:d("switch"),_throw:d("throw",N8),_try:d("try"),_var:d("var"),_const:d("const"),_while:d("while",{isLoop:!0}),_with:d("with"),_new:d("new",{beforeExpr:!0,startsExpr:!0}),_this:d("this",$8),_super:d("super",$8),_class:d("class",$8),_extends:d("extends",N8),_export:d("export"),_import:d("import",$8),_null:d("null",$8),_true:d("true",$8),_false:d("false",$8),_in:d("in",{beforeExpr:!0,binop:7}),_instanceof:d("instanceof",{beforeExpr:!0,binop:7}),_typeof:d("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:d("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:d("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},F8=/\r\n?|\n|\u2028|\u2029/,j2=new RegExp(F8.source,"g");function j1(q){return q===10||q===13||q===8232||q===8233}function O2(q,Q,Z){if(Z===void 0)Z=q.length;for(var Y=Q;Y<Z;Y++){var H=q.charCodeAt(Y);if(j1(H))return Y<Z-1&&H===13&&q.charCodeAt(Y+1)===10?Y+2:Y+1}return-1}var y9=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,W8=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,U2=Object.prototype,vq=U2.hasOwnProperty,hq=U2.toString,F1=Object.hasOwn||function(q,Q){return vq.call(q,Q)},J2=Array.isArray||function(q){return hq.call(q)==="[object Array]"},K2=Object.create(null);function Q1(q){return K2[q]||(K2[q]=new RegExp("^(?:"+q.replace(/ /g,"|")+")$"))}function s8(q){if(q<=65535)return String.fromCharCode(q);return q-=65536,String.fromCharCode((q>>10)+55296,(q&1023)+56320)}var fq=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,B1=function(Q,Z){this.line=Q,this.column=Z};B1.prototype.offset=function(Q){return new B1(this.line,this.column+Q)};var f1=function(Q,Z,Y){if(this.start=Z,this.end=Y,Q.sourceFile!==null)this.source=Q.sourceFile};function g9(q,Q){for(var Z=1,Y=0;;){var H=O2(q,Y,Q);if(H<0)return new B1(Z,Q-Y);++Z,Y=H}}var B0={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},V2=!1;function yq(q){var Q={};for(var Z in B0)Q[Z]=q&&F1(q,Z)?q[Z]:B0[Z];if(Q.ecmaVersion==="latest")Q.ecmaVersion=1e8;else if(Q.ecmaVersion==null){if(!V2&&typeof console==="object"&&console.warn)V2=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
27
+ Defaulting to 2020, but this will stop working in the future.`);Q.ecmaVersion=11}else if(Q.ecmaVersion>=2015)Q.ecmaVersion-=2009;if(Q.allowReserved==null)Q.allowReserved=Q.ecmaVersion<5;if(!q||q.allowHashBang==null)Q.allowHashBang=Q.ecmaVersion>=14;if(J2(Q.onToken)){var Y=Q.onToken;Q.onToken=function(H){return Y.push(H)}}if(J2(Q.onComment))Q.onComment=gq(Q,Q.onComment);if(Q.sourceType==="commonjs"&&Q.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return Q}function gq(q,Q){return function(Z,Y,H,V,K,W){var G={type:Z?"Block":"Line",value:Y,start:H,end:V};if(q.locations)G.loc=new f1(this,K,W);if(q.ranges)G.range=[H,V];Q.push(G)}}var z1=1,O1=2,_9=4,R2=8,x9=16,B2=32,A0=64,F2=128,U1=256,y1=512,M2=1024,w0=z1|O1|U1;function u9(q,Q){return O1|(q?_9:0)|(Q?R2:0)}var F0=0,m9=1,r8=2,$2=3,L2=4,C2=5,Y8=function(Q,Z,Y){this.options=Q=yq(Q),this.sourceFile=Q.sourceFile,this.keywords=Q1(bq[Q.ecmaVersion>=6?6:Q.sourceType==="module"?"5module":5]);var H="";if(Q.allowReserved!==!0){if(H=b9[Q.ecmaVersion>=6?6:Q.ecmaVersion===5?5:3],Q.sourceType==="module")H+=" await"}this.reservedWords=Q1(H);var V=(H?H+" ":"")+b9.strict;if(this.reservedWordsStrict=Q1(V),this.reservedWordsStrictBind=Q1(V+" "+b9.strictBind),this.input=String(Z),this.containsEsc=!1,Y)this.pos=Y,this.lineStart=this.input.lastIndexOf(`
28
+ `,Y-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(F8).length;else this.pos=this.lineStart=0,this.curLine=1;if(this.type=U.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=Q.sourceType==="module",this.strict=this.inModule||Q.strict===!0||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&Q.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2);this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?O1:z1),this.regexpState=null,this.privateNameStack=[]},k8={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};Y8.prototype.parse=function(){var Q=this,Z=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return Q.parseTopLevel(Z)})};k8.inFunction.get=function(){return(this.currentVarScope().flags&O1)>0};k8.inGenerator.get=function(){return(this.currentVarScope().flags&R2)>0};k8.inAsync.get=function(){return(this.currentVarScope().flags&_9)>0};k8.canAwait.get=function(){for(var q=this.scopeStack.length-1;q>=0;q--){var Q=this.scopeStack[q],Z=Q.flags;if(Z&(U1|y1))return!1;if(Z&O1)return(Z&_9)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};k8.allowReturn.get=function(){if(this.inFunction)return!0;if(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&z1)return!0;return!1};k8.allowSuper.get=function(){var q=this.currentThisScope(),Q=q.flags;return(Q&A0)>0||this.options.allowSuperOutsideMethod};k8.allowDirectSuper.get=function(){return(this.currentThisScope().flags&F2)>0};k8.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};k8.allowNewDotTarget.get=function(){for(var q=this.scopeStack.length-1;q>=0;q--){var Q=this.scopeStack[q],Z=Q.flags;if(Z&(U1|y1)||Z&O1&&!(Z&x9))return!0}return!1};k8.allowUsing.get=function(){var q=this.currentScope(),Q=q.flags;if(Q&M2)return!1;if(!this.inModule&&Q&z1)return!1;return!0};k8.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&U1)>0};Y8.extend=function(){var Q=[],Z=arguments.length;while(Z--)Q[Z]=arguments[Z];var Y=this;for(var H=0;H<Q.length;H++)Y=Q[H](Y);return Y};Y8.parse=function(Q,Z){return new this(Z,Q).parse()};Y8.parseExpressionAt=function(Q,Z,Y){var H=new this(Y,Q,Z);return H.nextToken(),H.parseExpression()};Y8.tokenizer=function(Q,Z){return new this(Z,Q)};Object.defineProperties(Y8.prototype,k8);var B8=Y8.prototype,_q=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;B8.strictDirective=function(q){if(this.options.ecmaVersion<5)return!1;for(;;){W8.lastIndex=q,q+=W8.exec(this.input)[0].length;var Q=_q.exec(this.input.slice(q));if(!Q)return!1;if((Q[1]||Q[2])==="use strict"){W8.lastIndex=q+Q[0].length;var Z=W8.exec(this.input),Y=Z.index+Z[0].length,H=this.input.charAt(Y);return H===";"||H==="}"||F8.test(Z[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(H)||H==="!"&&this.input.charAt(Y+1)==="=")}if(q+=Q[0].length,W8.lastIndex=q,q+=W8.exec(this.input)[0].length,this.input[q]===";")q++}};B8.eat=function(q){if(this.type===q)return this.next(),!0;else return!1};B8.isContextual=function(q){return this.type===U.name&&this.value===q&&!this.containsEsc};B8.eatContextual=function(q){if(!this.isContextual(q))return!1;return this.next(),!0};B8.catchStackOverflow=function(q){try{return q()}catch(Q){if(Q instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(Q.message)||/\btoo much recursion\b/i.test(Q.message)))this.raise(this.start,"Not enough stack space to parse input");else throw Q}};B8.expectContextual=function(q){if(!this.eatContextual(q))this.unexpected()};B8.canInsertSemicolon=function(){return this.type===U.eof||this.type===U.braceR||F8.test(this.input.slice(this.lastTokEnd,this.start))};B8.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};B8.semicolon=function(){if(!this.eat(U.semi)&&!this.insertSemicolon())this.unexpected()};B8.afterTrailingComma=function(q,Q){if(this.type===q){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!Q)this.next();return!0}};B8.expect=function(q){this.eat(q)||this.unexpected()};B8.unexpected=function(q){this.raise(q!=null?q:this.start,"Unexpected token")};var I0=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};B8.checkPatternErrors=function(q,Q){if(!q)return;if(q.trailingComma>-1)this.raiseRecoverable(q.trailingComma,"Comma is not permitted after the rest element");var Z=Q?q.parenthesizedAssign:q.parenthesizedBind;if(Z>-1)this.raiseRecoverable(Z,Q?"Assigning to rvalue":"Parenthesized pattern")};B8.checkExpressionErrors=function(q,Q){if(!q)return!1;var{shorthandAssign:Z,doubleProto:Y}=q;if(!Q)return Z>=0||Y>=0;if(Z>=0)this.raise(Z,"Shorthand property assignments are valid only in destructuring patterns");if(Y>=0)this.raiseRecoverable(Y,"Redefinition of __proto__ property")};B8.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos))this.raise(this.yieldPos,"Yield expression cannot be a default value");if(this.awaitPos)this.raise(this.awaitPos,"Await expression cannot be a default value")};B8.isSimpleAssignTarget=function(q){if(q.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(q.expression);return q.type==="Identifier"||q.type==="MemberExpression"};var k=Y8.prototype;k.parseTopLevel=function(q){var Q=Object.create(null);if(!q.body)q.body=[];while(this.type!==U.eof){var Z=this.parseStatement(null,!0,Q);q.body.push(Z)}if(this.inModule)for(var Y=0,H=Object.keys(this.undefinedExports);Y<H.length;Y+=1){var V=H[Y];this.raiseRecoverable(this.undefinedExports[V].start,"Export '"+V+"' is not defined")}return this.adaptDirectivePrologue(q.body),this.next(),q.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(q,"Program")};var l9={kind:"loop"},xq={kind:"switch"};k.isLet=function(q){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;W8.lastIndex=this.pos;var Q=W8.exec(this.input),Z=this.pos+Q[0].length,Y=this.fullCharCodeAt(Z);if(Y===91||Y===92)return!0;if(q)return!1;if(Y===123)return!0;if(A8(Y)){var H=Z;do Z+=Y<=65535?1:2;while(y8(Y=this.fullCharCodeAt(Z)));if(Y===92)return!0;var V=this.input.slice(H,Z);if(!z2.test(V))return!0}return!1};k.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;W8.lastIndex=this.pos;var q=W8.exec(this.input),Q=this.pos+q[0].length,Z;return!F8.test(this.input.slice(this.pos,Q))&&this.input.slice(Q,Q+8)==="function"&&(Q+8===this.input.length||!(y8(Z=this.fullCharCodeAt(Q+8))||Z===92))};k.isUsingKeyword=function(q,Q){if(this.options.ecmaVersion<17||!this.isContextual(q?"await":"using"))return!1;W8.lastIndex=this.pos;var Z=W8.exec(this.input),Y=this.pos+Z[0].length;if(F8.test(this.input.slice(this.pos,Y)))return!1;if(q){var H=Y+5,V;if(this.input.slice(Y,H)!=="using"||H===this.input.length||y8(V=this.fullCharCodeAt(H))||V===92)return!1;W8.lastIndex=H;var K=W8.exec(this.input);if(Y=H+K[0].length,K&&F8.test(this.input.slice(H,Y)))return!1}var W=this.fullCharCodeAt(Y);if(!A8(W)&&W!==92)return!1;var G=Y;do Y+=W<=65535?1:2;while(y8(W=this.fullCharCodeAt(Y)));if(W===92)return!0;var R=this.input.slice(G,Y);if(z2.test(R))return!1;if(Q&&!q&&R==="of"){W8.lastIndex=Y;var O=W8.exec(this.input);if(Y=Y+O[0].length,this.input.charCodeAt(Y)!==61||(W=this.input.charCodeAt(Y+1))===61||W===62)return!1}return!0};k.isAwaitUsing=function(q){return this.isUsingKeyword(!0,q)};k.isUsing=function(q){return this.isUsingKeyword(!1,q)};k.parseStatement=function(q,Q,Z){var Y=this.type,H=this.startNode(),V;if(this.isLet(q))Y=U._var,V="let";switch(Y){case U._break:case U._continue:return this.parseBreakContinueStatement(H,Y.keyword);case U._debugger:return this.parseDebuggerStatement(H);case U._do:return this.parseDoStatement(H);case U._for:return this.parseForStatement(H);case U._function:if(q&&(this.strict||q!=="if"&&q!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(H,!1,!q);case U._class:if(q)this.unexpected();return this.parseClass(H,!0);case U._if:return this.parseIfStatement(H);case U._return:return this.parseReturnStatement(H);case U._switch:return this.parseSwitchStatement(H);case U._throw:return this.parseThrowStatement(H);case U._try:return this.parseTryStatement(H);case U._const:case U._var:if(V=V||this.value,q&&V!=="var")this.unexpected();return this.parseVarStatement(H,V);case U._while:return this.parseWhileStatement(H);case U._with:return this.parseWithStatement(H);case U.braceL:return this.parseBlock(!0,H);case U.semi:return this.parseEmptyStatement(H);case U._export:case U._import:if(this.options.ecmaVersion>10&&Y===U._import){W8.lastIndex=this.pos;var K=W8.exec(this.input),W=this.pos+K[0].length,G=this.input.charCodeAt(W);if(G===40||G===46)return this.parseExpressionStatement(H,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!Q)this.raise(this.start,"'import' and 'export' may only appear at the top level");if(!this.inModule)this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}return Y===U._import?this.parseImport(H):this.parseExport(H,Z);default:if(this.isAsyncFunction()){if(q)this.unexpected();return this.next(),this.parseFunctionStatement(H,!0,!q)}var R=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(R){if(!this.allowUsing)this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement");if(q)this.raise(this.start,"Using declaration is not allowed in single-statement positions");if(R==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.next(),this.parseVar(H,!1,R),this.semicolon(),this.finishNode(H,"VariableDeclaration")}var O=this.value,$=this.parseExpression();if(Y===U.name&&$.type==="Identifier"&&this.eat(U.colon))return this.parseLabeledStatement(H,O,$,q);else return this.parseExpressionStatement(H,$)}};k.parseBreakContinueStatement=function(q,Q){var Z=Q==="break";if(this.next(),this.eat(U.semi)||this.insertSemicolon())q.label=null;else if(this.type!==U.name)this.unexpected();else q.label=this.parseIdent(),this.semicolon();var Y=0;for(;Y<this.labels.length;++Y){var H=this.labels[Y];if(q.label==null||H.name===q.label.name){if(H.kind!=null&&(Z||H.kind==="loop"))break;if(q.label&&Z)break}}if(Y===this.labels.length)this.raise(q.start,"Unsyntactic "+Q);return this.finishNode(q,Z?"BreakStatement":"ContinueStatement")};k.parseDebuggerStatement=function(q){return this.next(),this.semicolon(),this.finishNode(q,"DebuggerStatement")};k.parseDoStatement=function(q){if(this.next(),this.labels.push(l9),q.body=this.parseStatement("do"),this.labels.pop(),this.expect(U._while),q.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(U.semi);else this.semicolon();return this.finishNode(q,"DoWhileStatement")};k.parseForStatement=function(q){this.next();var Q=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(l9),this.enterScope(0),this.expect(U.parenL),this.type===U.semi){if(Q>-1)this.unexpected(Q);return this.parseFor(q,null)}var Z=this.isLet();if(this.type===U._var||this.type===U._const||Z){var Y=this.startNode(),H=Z?"let":this.value;return this.next(),this.parseVar(Y,!0,H),this.finishNode(Y,"VariableDeclaration"),this.parseForAfterInit(q,Y,Q)}var V=this.isContextual("let"),K=!1,W=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(W){var G=this.startNode();if(this.next(),W==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.parseVar(G,!0,W),this.finishNode(G,"VariableDeclaration"),this.parseForAfterInit(q,G,Q)}var R=this.containsEsc,O=new I0,$=this.start,M=Q>-1?this.parseExprSubscripts(O,"await"):this.parseExpression(!0,O);if(this.type===U._in||(K=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(Q>-1){if(this.type===U._in)this.unexpected(Q);q.await=!0}else if(K&&this.options.ecmaVersion>=8){if(M.start===$&&!R&&M.type==="Identifier"&&M.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)q.await=!1}if(V&&K)this.raise(M.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(M,!1,O),this.checkLValPattern(M),this.parseForIn(q,M)}else this.checkExpressionErrors(O,!0);if(Q>-1)this.unexpected(Q);return this.parseFor(q,M)};k.parseForAfterInit=function(q,Q,Z){if((this.type===U._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&Q.declarations.length===1){if(this.type===U._in){if((Q.kind==="using"||Q.kind==="await using")&&!Q.declarations[0].init)this.raise(this.start,"Using declaration is not allowed in for-in loops");if(this.options.ecmaVersion>=9&&Z>-1)this.unexpected(Z)}else if(this.options.ecmaVersion>=9)q.await=Z>-1;return this.parseForIn(q,Q)}if(Z>-1)this.unexpected(Z);return this.parseFor(q,Q)};k.parseFunctionStatement=function(q,Q,Z){return this.next(),this.parseFunction(q,h1|(Z?0:v9),!1,Q)};k.parseIfStatement=function(q){return this.next(),q.test=this.parseParenExpression(),q.consequent=this.parseStatement("if"),q.alternate=this.eat(U._else)?this.parseStatement("if"):null,this.finishNode(q,"IfStatement")};k.parseReturnStatement=function(q){if(!this.allowReturn)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(U.semi)||this.insertSemicolon())q.argument=null;else q.argument=this.parseExpression(),this.semicolon();return this.finishNode(q,"ReturnStatement")};k.parseSwitchStatement=function(q){this.next(),q.discriminant=this.parseParenExpression(),q.cases=[],this.expect(U.braceL),this.labels.push(xq),this.enterScope(M2);var Q;for(var Z=!1;this.type!==U.braceR;)if(this.type===U._case||this.type===U._default){var Y=this.type===U._case;if(Q)this.finishNode(Q,"SwitchCase");if(q.cases.push(Q=this.startNode()),Q.consequent=[],this.next(),Y)Q.test=this.parseExpression();else{if(Z)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");Z=!0,Q.test=null}this.expect(U.colon)}else{if(!Q)this.unexpected();Q.consequent.push(this.parseStatement(null))}if(this.exitScope(),Q)this.finishNode(Q,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(q,"SwitchStatement")};k.parseThrowStatement=function(q){if(this.next(),F8.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return q.argument=this.parseExpression(),this.semicolon(),this.finishNode(q,"ThrowStatement")};var uq=[];k.parseCatchClauseParam=function(){var q=this.parseBindingAtom(),Q=q.type==="Identifier";return this.enterScope(Q?B2:0),this.checkLValPattern(q,Q?L2:r8),this.expect(U.parenR),q};k.parseTryStatement=function(q){if(this.next(),q.block=this.parseBlock(),q.handler=null,this.type===U._catch){var Q=this.startNode();if(this.next(),this.eat(U.parenL))Q.param=this.parseCatchClauseParam();else{if(this.options.ecmaVersion<10)this.unexpected();Q.param=null,this.enterScope(0)}Q.body=this.parseBlock(!1),this.exitScope(),q.handler=this.finishNode(Q,"CatchClause")}if(q.finalizer=this.eat(U._finally)?this.parseBlock():null,!q.handler&&!q.finalizer)this.raise(q.start,"Missing catch or finally clause");return this.finishNode(q,"TryStatement")};k.parseVarStatement=function(q,Q,Z){return this.next(),this.parseVar(q,!1,Q,Z),this.semicolon(),this.finishNode(q,"VariableDeclaration")};k.parseWhileStatement=function(q){return this.next(),q.test=this.parseParenExpression(),this.labels.push(l9),q.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(q,"WhileStatement")};k.parseWithStatement=function(q){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),q.object=this.parseParenExpression(),q.body=this.parseStatement("with"),this.finishNode(q,"WithStatement")};k.parseEmptyStatement=function(q){return this.next(),this.finishNode(q,"EmptyStatement")};k.parseLabeledStatement=function(q,Q,Z,Y){for(var H=0,V=this.labels;H<V.length;H+=1){var K=V[H];if(K.name===Q)this.raise(Z.start,"Label '"+Q+"' is already declared")}var W=this.type.isLoop?"loop":this.type===U._switch?"switch":null;for(var G=this.labels.length-1;G>=0;G--){var R=this.labels[G];if(R.statementStart===q.start)R.statementStart=this.start,R.kind=W;else break}return this.labels.push({name:Q,kind:W,statementStart:this.start}),q.body=this.parseStatement(Y?Y.indexOf("label")===-1?Y+"label":Y:"label"),this.labels.pop(),q.label=Z,this.finishNode(q,"LabeledStatement")};k.parseExpressionStatement=function(q,Q){return q.expression=Q,this.semicolon(),this.finishNode(q,"ExpressionStatement")};k.parseBlock=function(q,Q,Z){if(q===void 0)q=!0;if(Q===void 0)Q=this.startNode();if(Q.body=[],this.expect(U.braceL),q)this.enterScope(0);while(this.type!==U.braceR){var Y=this.parseStatement(null);Q.body.push(Y)}if(Z)this.strict=!1;if(this.next(),q)this.exitScope();return this.finishNode(Q,"BlockStatement")};k.parseFor=function(q,Q){return q.init=Q,this.expect(U.semi),q.test=this.type===U.semi?null:this.parseExpression(),this.expect(U.semi),q.update=this.type===U.parenR?null:this.parseExpression(),this.expect(U.parenR),q.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(q,"ForStatement")};k.parseForIn=function(q,Q){var Z=this.type===U._in;if(this.next(),Q.type==="VariableDeclaration"&&Q.declarations[0].init!=null&&(!Z||this.options.ecmaVersion<8||this.strict||Q.kind!=="var"||Q.declarations[0].id.type!=="Identifier"))this.raise(Q.start,(Z?"for-in":"for-of")+" loop variable declaration may not have an initializer");return q.left=Q,q.right=Z?this.parseExpression():this.parseMaybeAssign(),this.expect(U.parenR),q.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(q,Z?"ForInStatement":"ForOfStatement")};k.parseVar=function(q,Q,Z,Y){q.declarations=[],q.kind=Z;for(;;){var H=this.startNode();if(this.parseVarId(H,Z),this.eat(U.eq))H.init=this.parseMaybeAssign(Q);else if(!Y&&Z==="const"&&!(this.type===U._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!Y&&(Z==="using"||Z==="await using")&&this.options.ecmaVersion>=17&&this.type!==U._in&&!this.isContextual("of"))this.raise(this.lastTokEnd,"Missing initializer in "+Z+" declaration");else if(!Y&&H.id.type!=="Identifier"&&!(Q&&(this.type===U._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else H.init=null;if(q.declarations.push(this.finishNode(H,"VariableDeclarator")),!this.eat(U.comma))break}return q};k.parseVarId=function(q,Q){q.id=Q==="using"||Q==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(q.id,Q==="var"?m9:r8,!1)};var h1=1,v9=2,A2=4;k.parseFunction=function(q,Q,Z,Y,H){if(this.initFunction(q),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!Y){if(this.type===U.star&&Q&v9)this.unexpected();q.generator=this.eat(U.star)}if(this.options.ecmaVersion>=8)q.async=!!Y;if(Q&h1){if(q.id=Q&A2&&this.type!==U.name?null:this.parseIdent(),q.id&&!(Q&v9))this.checkLValSimple(q.id,this.strict||q.generator||q.async?this.treatFunctionsAsVar?m9:r8:$2)}var V=this.yieldPos,K=this.awaitPos,W=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(u9(q.async,q.generator)),!(Q&h1))q.id=this.type===U.name?this.parseIdent():null;return this.parseFunctionParams(q),this.parseFunctionBody(q,Z,!1,H),this.yieldPos=V,this.awaitPos=K,this.awaitIdentPos=W,this.finishNode(q,Q&h1?"FunctionDeclaration":"FunctionExpression")};k.parseFunctionParams=function(q){this.expect(U.parenL),q.params=this.parseBindingList(U.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};k.parseClass=function(q,Q){this.next();var Z=this.strict;this.strict=!0,this.parseClassId(q,Q),this.parseClassSuper(q);var Y=this.enterClassBody(),H=this.startNode(),V=!1;H.body=[],this.expect(U.braceL);while(this.type!==U.braceR){var K=this.parseClassElement(q.superClass!==null);if(K){if(H.body.push(K),K.type==="MethodDefinition"&&K.kind==="constructor"){if(V)this.raiseRecoverable(K.start,"Duplicate constructor in the same class");V=!0}else if(K.key&&K.key.type==="PrivateIdentifier"&&mq(Y,K))this.raiseRecoverable(K.key.start,"Identifier '#"+K.key.name+"' has already been declared")}}return this.strict=Z,this.next(),q.body=this.finishNode(H,"ClassBody"),this.exitClassBody(),this.finishNode(q,Q?"ClassDeclaration":"ClassExpression")};k.parseClassElement=function(q){if(this.eat(U.semi))return null;var Q=this.options.ecmaVersion,Z=this.startNode(),Y="",H=!1,V=!1,K="method",W=!1;if(this.eatContextual("static")){if(Q>=13&&this.eat(U.braceL))return this.parseClassStaticBlock(Z),Z;if(this.isClassElementNameStart()||this.type===U.star)W=!0;else Y="static"}if(Z.static=W,!Y&&Q>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===U.star)&&!this.canInsertSemicolon())V=!0;else Y="async";if(!Y&&(Q>=9||!V)&&this.eat(U.star))H=!0;if(!Y&&!V&&!H){var G=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())K=G;else Y=G}if(Y)Z.computed=!1,Z.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),Z.key.name=Y,this.finishNode(Z.key,"Identifier");else this.parseClassElementName(Z);if(Q<13||this.type===U.parenL||K!=="method"||H||V){var R=!Z.static&&M0(Z,"constructor"),O=R&&q;if(R&&K!=="method")this.raise(Z.key.start,"Constructor can't have get/set modifier");Z.kind=R?"constructor":K,this.parseClassMethod(Z,H,V,O)}else this.parseClassField(Z);return Z};k.isClassElementNameStart=function(){return this.type===U.name||this.type===U.privateId||this.type===U.num||this.type===U.string||this.type===U.bracketL||this.type.keyword};k.parseClassElementName=function(q){if(this.type===U.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");q.computed=!1,q.key=this.parsePrivateIdent()}else this.parsePropertyName(q)};k.parseClassMethod=function(q,Q,Z,Y){var H=q.key;if(q.kind==="constructor"){if(Q)this.raise(H.start,"Constructor can't be a generator");if(Z)this.raise(H.start,"Constructor can't be an async method")}else if(q.static&&M0(q,"prototype"))this.raise(H.start,"Classes may not have a static property named prototype");var V=q.value=this.parseMethod(Q,Z,Y);if(q.kind==="get"&&V.params.length!==0)this.raiseRecoverable(V.start,"getter should have no params");if(q.kind==="set"&&V.params.length!==1)this.raiseRecoverable(V.start,"setter should have exactly one param");if(q.kind==="set"&&V.params[0].type==="RestElement")this.raiseRecoverable(V.params[0].start,"Setter cannot use rest params");return this.finishNode(q,"MethodDefinition")};k.parseClassField=function(q){if(M0(q,"constructor"))this.raise(q.key.start,"Classes can't have a field named 'constructor'");else if(q.static&&M0(q,"prototype"))this.raise(q.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(U.eq))this.enterScope(y1|A0),q.value=this.parseMaybeAssign(),this.exitScope();else q.value=null;return this.semicolon(),this.finishNode(q,"PropertyDefinition")};k.parseClassStaticBlock=function(q){q.body=[];var Q=this.labels;this.labels=[],this.enterScope(U1|A0);while(this.type!==U.braceR){var Z=this.parseStatement(null);q.body.push(Z)}return this.next(),this.exitScope(),this.labels=Q,this.finishNode(q,"StaticBlock")};k.parseClassId=function(q,Q){if(this.type===U.name){if(q.id=this.parseIdent(),Q)this.checkLValSimple(q.id,r8,!1)}else{if(Q===!0)this.unexpected();q.id=null}};k.parseClassSuper=function(q){q.superClass=this.eat(U._extends)?this.parseExprSubscripts(null,!1):null};k.enterClassBody=function(){var q={declared:Object.create(null),used:[]};return this.privateNameStack.push(q),q.declared};k.exitClassBody=function(){var q=this.privateNameStack.pop(),Q=q.declared,Z=q.used;if(!this.options.checkPrivateFields)return;var Y=this.privateNameStack.length,H=Y===0?null:this.privateNameStack[Y-1];for(var V=0;V<Z.length;++V){var K=Z[V];if(!F1(Q,K.name))if(H)H.used.push(K);else this.raiseRecoverable(K.start,"Private field '#"+K.name+"' must be declared in an enclosing class")}};function mq(q,Q){var Z=Q.key.name,Y=q[Z],H="true";if(Q.type==="MethodDefinition"&&(Q.kind==="get"||Q.kind==="set"))H=(Q.static?"s":"i")+Q.kind;if(Y==="iget"&&H==="iset"||Y==="iset"&&H==="iget"||Y==="sget"&&H==="sset"||Y==="sset"&&H==="sget")return q[Z]="true",!1;else if(!Y)return q[Z]=H,!1;else return!0}function M0(q,Q){var{computed:Z,key:Y}=q;return!Z&&(Y.type==="Identifier"&&Y.name===Q||Y.type==="Literal"&&Y.value===Q)}k.parseExportAllDeclaration=function(q,Q){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))q.exported=this.parseModuleExportName(),this.checkExport(Q,q.exported,this.lastTokStart);else q.exported=null;if(this.expectContextual("from"),this.type!==U.string)this.unexpected();if(q.source=this.parseExprAtom(),this.options.ecmaVersion>=16)q.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(q,"ExportAllDeclaration")};k.parseExport=function(q,Q){if(this.next(),this.eat(U.star))return this.parseExportAllDeclaration(q,Q);if(this.eat(U._default))return this.checkExport(Q,"default",this.lastTokStart),q.declaration=this.parseExportDefaultDeclaration(),this.finishNode(q,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(q.declaration=this.parseExportDeclaration(q),q.declaration.type==="VariableDeclaration")this.checkVariableExport(Q,q.declaration.declarations);else this.checkExport(Q,q.declaration.id,q.declaration.id.start);if(q.specifiers=[],q.source=null,this.options.ecmaVersion>=16)q.attributes=[]}else{if(q.declaration=null,q.specifiers=this.parseExportSpecifiers(Q),this.eatContextual("from")){if(this.type!==U.string)this.unexpected();if(q.source=this.parseExprAtom(),this.options.ecmaVersion>=16)q.attributes=this.parseWithClause()}else{for(var Z=0,Y=q.specifiers;Z<Y.length;Z+=1){var H=Y[Z];if(this.checkUnreserved(H.local),this.checkLocalExport(H.local),H.local.type==="Literal")this.raise(H.local.start,"A string literal cannot be used as an exported binding without `from`.")}if(q.source=null,this.options.ecmaVersion>=16)q.attributes=[]}this.semicolon()}return this.finishNode(q,"ExportNamedDeclaration")};k.parseExportDeclaration=function(q){return this.parseStatement(null)};k.parseExportDefaultDeclaration=function(){var q;if(this.type===U._function||(q=this.isAsyncFunction())){var Q=this.startNode();if(this.next(),q)this.next();return this.parseFunction(Q,h1|A2,!1,q)}else if(this.type===U._class){var Z=this.startNode();return this.parseClass(Z,"nullableID")}else{var Y=this.parseMaybeAssign();return this.semicolon(),Y}};k.checkExport=function(q,Q,Z){if(!q)return;if(typeof Q!=="string")Q=Q.type==="Identifier"?Q.name:Q.value;if(F1(q,Q))this.raiseRecoverable(Z,"Duplicate export '"+Q+"'");q[Q]=!0};k.checkPatternExport=function(q,Q){var Z=Q.type;if(Z==="Identifier")this.checkExport(q,Q,Q.start);else if(Z==="ObjectPattern")for(var Y=0,H=Q.properties;Y<H.length;Y+=1){var V=H[Y];this.checkPatternExport(q,V)}else if(Z==="ArrayPattern")for(var K=0,W=Q.elements;K<W.length;K+=1){var G=W[K];if(G)this.checkPatternExport(q,G)}else if(Z==="Property")this.checkPatternExport(q,Q.value);else if(Z==="AssignmentPattern")this.checkPatternExport(q,Q.left);else if(Z==="RestElement")this.checkPatternExport(q,Q.argument)};k.checkVariableExport=function(q,Q){if(!q)return;for(var Z=0,Y=Q;Z<Y.length;Z+=1){var H=Y[Z];this.checkPatternExport(q,H.id)}};k.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};k.parseExportSpecifier=function(q){var Q=this.startNode();return Q.local=this.parseModuleExportName(),Q.exported=this.eatContextual("as")?this.parseModuleExportName():Q.local,this.checkExport(q,Q.exported,Q.exported.start),this.finishNode(Q,"ExportSpecifier")};k.parseExportSpecifiers=function(q){var Q=[],Z=!0;this.expect(U.braceL);while(!this.eat(U.braceR)){if(!Z){if(this.expect(U.comma),this.afterTrailingComma(U.braceR))break}else Z=!1;Q.push(this.parseExportSpecifier(q))}return Q};k.parseImport=function(q){if(this.next(),this.type===U.string)q.specifiers=uq,q.source=this.parseExprAtom();else q.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),q.source=this.type===U.string?this.parseExprAtom():this.unexpected();if(this.options.ecmaVersion>=16)q.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(q,"ImportDeclaration")};k.parseImportSpecifier=function(){var q=this.startNode();if(q.imported=this.parseModuleExportName(),this.eatContextual("as"))q.local=this.parseIdent();else this.checkUnreserved(q.imported),q.local=q.imported;return this.checkLValSimple(q.local,r8),this.finishNode(q,"ImportSpecifier")};k.parseImportDefaultSpecifier=function(){var q=this.startNode();return q.local=this.parseIdent(),this.checkLValSimple(q.local,r8),this.finishNode(q,"ImportDefaultSpecifier")};k.parseImportNamespaceSpecifier=function(){var q=this.startNode();return this.next(),this.expectContextual("as"),q.local=this.parseIdent(),this.checkLValSimple(q.local,r8),this.finishNode(q,"ImportNamespaceSpecifier")};k.parseImportSpecifiers=function(){var q=[],Q=!0;if(this.type===U.name){if(q.push(this.parseImportDefaultSpecifier()),!this.eat(U.comma))return q}if(this.type===U.star)return q.push(this.parseImportNamespaceSpecifier()),q;this.expect(U.braceL);while(!this.eat(U.braceR)){if(!Q){if(this.expect(U.comma),this.afterTrailingComma(U.braceR))break}else Q=!1;q.push(this.parseImportSpecifier())}return q};k.parseWithClause=function(){var q=[];if(!this.eat(U._with))return q;this.expect(U.braceL);var Q={},Z=!0;while(!this.eat(U.braceR)){if(!Z){if(this.expect(U.comma),this.afterTrailingComma(U.braceR))break}else Z=!1;var Y=this.parseImportAttribute(),H=Y.key.type==="Identifier"?Y.key.name:Y.key.value;if(F1(Q,H))this.raiseRecoverable(Y.key.start,"Duplicate attribute key '"+H+"'");Q[H]=!0,q.push(Y)}return q};k.parseImportAttribute=function(){var q=this.startNode();if(q.key=this.type===U.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(U.colon),this.type!==U.string)this.unexpected();return q.value=this.parseExprAtom(),this.finishNode(q,"ImportAttribute")};k.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===U.string){var q=this.parseLiteral(this.value);if(fq.test(q.value))this.raise(q.start,"An export name cannot include a lone surrogate.");return q}return this.parseIdent(!0)};k.adaptDirectivePrologue=function(q){for(var Q=0;Q<q.length&&this.isDirectiveCandidate(q[Q]);++Q)q[Q].directive=q[Q].expression.raw.slice(1,-1)};k.isDirectiveCandidate=function(q){return this.options.ecmaVersion>=5&&q.type==="ExpressionStatement"&&q.expression.type==="Literal"&&typeof q.expression.value==="string"&&(this.input[q.start]==='"'||this.input[q.start]==="'")};var E8=Y8.prototype;E8.toAssignable=function(q,Q,Z){if(this.options.ecmaVersion>=6&&q)switch(q.type){case"Identifier":if(this.inAsync&&q.name==="await")this.raise(q.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(q.type="ObjectPattern",Z)this.checkPatternErrors(Z,!0);for(var Y=0,H=q.properties;Y<H.length;Y+=1){var V=H[Y];if(this.toAssignable(V,Q),V.type==="RestElement"&&(V.argument.type==="ArrayPattern"||V.argument.type==="ObjectPattern"))this.raise(V.argument.start,"Unexpected token")}break;case"Property":if(q.kind!=="init")this.raise(q.key.start,"Object pattern can't contain getter or setter");this.toAssignable(q.value,Q);break;case"ArrayExpression":if(q.type="ArrayPattern",Z)this.checkPatternErrors(Z,!0);this.toAssignableList(q.elements,Q);break;case"SpreadElement":if(q.type="RestElement",this.toAssignable(q.argument,Q),q.argument.type==="AssignmentPattern")this.raise(q.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(q.operator!=="=")this.raise(q.left.end,"Only '=' operator can be used for specifying default value.");q.type="AssignmentPattern",delete q.operator,this.toAssignable(q.left,Q);break;case"ParenthesizedExpression":this.toAssignable(q.expression,Q,Z);break;case"ChainExpression":this.raiseRecoverable(q.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!Q)break;default:this.raise(q.start,"Assigning to rvalue")}else if(Z)this.checkPatternErrors(Z,!0);return q};E8.toAssignableList=function(q,Q){var Z=q.length;for(var Y=0;Y<Z;Y++){var H=q[Y];if(H)this.toAssignable(H,Q)}if(Z){var V=q[Z-1];if(this.options.ecmaVersion===6&&Q&&V&&V.type==="RestElement"&&V.argument.type!=="Identifier")this.unexpected(V.argument.start)}return q};E8.parseSpread=function(q){var Q=this.startNode();return this.next(),Q.argument=this.parseMaybeAssign(!1,q),this.finishNode(Q,"SpreadElement")};E8.parseRestBinding=function(){var q=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==U.name)this.unexpected();return q.argument=this.parseBindingAtom(),this.finishNode(q,"RestElement")};E8.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case U.bracketL:var q=this.startNode();return this.next(),q.elements=this.parseBindingList(U.bracketR,!0,!0),this.finishNode(q,"ArrayPattern");case U.braceL:return this.parseObj(!0)}return this.parseIdent()};E8.parseBindingList=function(q,Q,Z,Y){var H=[],V=!0;while(!this.eat(q)){if(V)V=!1;else this.expect(U.comma);if(Q&&this.type===U.comma)H.push(null);else if(Z&&this.afterTrailingComma(q))break;else if(this.type===U.ellipsis){var K=this.parseRestBinding();if(this.parseBindingListItem(K),H.push(K),this.type===U.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");this.expect(q);break}else H.push(this.parseAssignableListItem(Y))}return H};E8.parseAssignableListItem=function(q){var Q=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(Q),Q};E8.parseBindingListItem=function(q){return q};E8.parseMaybeDefault=function(q,Q,Z){if(Z=Z||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(U.eq))return Z;var Y=this.startNodeAt(q,Q);return Y.left=Z,Y.right=this.parseMaybeAssign(),this.finishNode(Y,"AssignmentPattern")};E8.checkLValSimple=function(q,Q,Z){if(Q===void 0)Q=F0;var Y=Q!==F0;switch(q.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(q.name))this.raiseRecoverable(q.start,(Y?"Binding ":"Assigning to ")+q.name+" in strict mode");if(Y){if(Q===r8&&q.name==="let")this.raiseRecoverable(q.start,"let is disallowed as a lexically bound name");if(Z){if(F1(Z,q.name))this.raiseRecoverable(q.start,"Argument name clash");Z[q.name]=!0}if(Q!==C2)this.declareName(q.name,Q,q.start)}break;case"ChainExpression":this.raiseRecoverable(q.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(Y)this.raiseRecoverable(q.start,"Binding member expression");break;case"ParenthesizedExpression":if(Y)this.raiseRecoverable(q.start,"Binding parenthesized expression");return this.checkLValSimple(q.expression,Q,Z);default:this.raise(q.start,(Y?"Binding":"Assigning to")+" rvalue")}};E8.checkLValPattern=function(q,Q,Z){if(Q===void 0)Q=F0;switch(q.type){case"ObjectPattern":for(var Y=0,H=q.properties;Y<H.length;Y+=1){var V=H[Y];this.checkLValInnerPattern(V,Q,Z)}break;case"ArrayPattern":for(var K=0,W=q.elements;K<W.length;K+=1){var G=W[K];if(G)this.checkLValInnerPattern(G,Q,Z)}break;default:this.checkLValSimple(q,Q,Z)}};E8.checkLValInnerPattern=function(q,Q,Z){if(Q===void 0)Q=F0;switch(q.type){case"Property":this.checkLValInnerPattern(q.value,Q,Z);break;case"AssignmentPattern":this.checkLValPattern(q.left,Q,Z);break;case"RestElement":this.checkLValPattern(q.argument,Q,Z);break;default:this.checkLValPattern(q,Q,Z)}};var T8=function(Q,Z,Y,H,V){this.token=Q,this.isExpr=!!Z,this.preserveSpace=!!Y,this.override=H,this.generator=!!V},Q8={b_stat:new T8("{",!1),b_expr:new T8("{",!0),b_tmpl:new T8("${",!1),p_stat:new T8("(",!1),p_expr:new T8("(",!0),q_tmpl:new T8("`",!0,!0,function(q){return q.tryReadTemplateToken()}),f_stat:new T8("function",!1),f_expr:new T8("function",!0),f_expr_gen:new T8("function",!0,!1,null,!0),f_gen:new T8("function",!1,!1,null,!0)},M1=Y8.prototype;M1.initialContext=function(){return[Q8.b_stat]};M1.curContext=function(){return this.context[this.context.length-1]};M1.braceIsBlock=function(q){var Q=this.curContext();if(Q===Q8.f_expr||Q===Q8.f_stat)return!0;if(q===U.colon&&(Q===Q8.b_stat||Q===Q8.b_expr))return!Q.isExpr;if(q===U._return||q===U.name&&this.exprAllowed)return F8.test(this.input.slice(this.lastTokEnd,this.start));if(q===U._else||q===U.semi||q===U.eof||q===U.parenR||q===U.arrow)return!0;if(q===U.braceL)return Q===Q8.b_stat;if(q===U._var||q===U._const||q===U.name)return!1;return!this.exprAllowed};M1.inGeneratorContext=function(){for(var q=this.context.length-1;q>=1;q--){var Q=this.context[q];if(Q.token==="function")return Q.generator}return!1};M1.updateContext=function(q){var Q,Z=this.type;if(Z.keyword&&q===U.dot)this.exprAllowed=!1;else if(Q=Z.updateContext)Q.call(this,q);else this.exprAllowed=Z.beforeExpr};M1.overrideContext=function(q){if(this.curContext()!==q)this.context[this.context.length-1]=q};U.parenR.updateContext=U.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var q=this.context.pop();if(q===Q8.b_stat&&this.curContext().token==="function")q=this.context.pop();this.exprAllowed=!q.isExpr};U.braceL.updateContext=function(q){this.context.push(this.braceIsBlock(q)?Q8.b_stat:Q8.b_expr),this.exprAllowed=!0};U.dollarBraceL.updateContext=function(){this.context.push(Q8.b_tmpl),this.exprAllowed=!0};U.parenL.updateContext=function(q){var Q=q===U._if||q===U._for||q===U._with||q===U._while;this.context.push(Q?Q8.p_stat:Q8.p_expr),this.exprAllowed=!0};U.incDec.updateContext=function(){};U._function.updateContext=U._class.updateContext=function(q){if(q.beforeExpr&&q!==U._else&&!(q===U.semi&&this.curContext()!==Q8.p_stat)&&!(q===U._return&&F8.test(this.input.slice(this.lastTokEnd,this.start)))&&!((q===U.colon||q===U.braceL)&&this.curContext()===Q8.b_stat))this.context.push(Q8.f_expr);else this.context.push(Q8.f_stat);this.exprAllowed=!1};U.colon.updateContext=function(){if(this.curContext().token==="function")this.context.pop();this.exprAllowed=!0};U.backQuote.updateContext=function(){if(this.curContext()===Q8.q_tmpl)this.context.pop();else this.context.push(Q8.q_tmpl);this.exprAllowed=!1};U.star.updateContext=function(q){if(q===U._function){var Q=this.context.length-1;if(this.context[Q]===Q8.f_expr)this.context[Q]=Q8.f_expr_gen;else this.context[Q]=Q8.f_gen}this.exprAllowed=!0};U.name.updateContext=function(q){var Q=!1;if(this.options.ecmaVersion>=6&&q!==U.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())Q=!0}this.exprAllowed=Q};var u=Y8.prototype;u.checkPropClash=function(q,Q,Z){if(this.options.ecmaVersion>=9&&q.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(q.computed||q.method||q.shorthand))return;var Y=q.key,H;switch(Y.type){case"Identifier":H=Y.name;break;case"Literal":H=String(Y.value);break;default:return}var V=q.kind;if(this.options.ecmaVersion>=6){if(H==="__proto__"&&V==="init"){if(Q.proto)if(Z){if(Z.doubleProto<0)Z.doubleProto=Y.start}else this.raiseRecoverable(Y.start,"Redefinition of __proto__ property");Q.proto=!0}return}H="$"+H;var K=Q[H];if(K){var W;if(V==="init")W=this.strict&&K.init||K.get||K.set;else W=K.init||K[V];if(W)this.raiseRecoverable(Y.start,"Redefinition of property")}else K=Q[H]={init:!1,get:!1,set:!1};K[V]=!0};u.parseExpression=function(q,Q){var Z=this;return this.catchStackOverflow(function(){var{start:Y,startLoc:H}=Z,V=Z.parseMaybeAssign(q,Q);if(Z.type===U.comma){var K=Z.startNodeAt(Y,H);K.expressions=[V];while(Z.eat(U.comma))K.expressions.push(Z.parseMaybeAssign(q,Q));return Z.finishNode(K,"SequenceExpression")}return V})};u.parseMaybeAssign=function(q,Q,Z){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(q);else this.exprAllowed=!1;var Y=!1,H=-1,V=-1,K=-1;if(Q)H=Q.parenthesizedAssign,V=Q.trailingComma,K=Q.doubleProto,Q.parenthesizedAssign=Q.trailingComma=-1;else Q=new I0,Y=!0;var W=this.start,G=this.startLoc;if(this.type===U.parenL||this.type===U.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=q==="await";var R=this.parseMaybeConditional(q,Q);if(Z)R=Z.call(this,R,W,G);if(this.type.isAssign){var O=this.startNodeAt(W,G);if(O.operator=this.value,this.type===U.eq)R=this.toAssignable(R,!1,Q);if(!Y)Q.parenthesizedAssign=Q.trailingComma=Q.doubleProto=-1;if(Q.shorthandAssign>=R.start)Q.shorthandAssign=-1;if(this.type===U.eq)this.checkLValPattern(R);else this.checkLValSimple(R);if(O.left=R,this.next(),O.right=this.parseMaybeAssign(q),K>-1)Q.doubleProto=K;return this.finishNode(O,"AssignmentExpression")}else if(Y)this.checkExpressionErrors(Q,!0);if(H>-1)Q.parenthesizedAssign=H;if(V>-1)Q.trailingComma=V;return R};u.parseMaybeConditional=function(q,Q){var Z=this.start,Y=this.startLoc,H=this.parseExprOps(q,Q);if(this.checkExpressionErrors(Q))return H;if(!(H.type==="ArrowFunctionExpression"&&H.start===Z)&&this.eat(U.question)){var V=this.startNodeAt(Z,Y);return V.test=H,V.consequent=this.parseMaybeAssign(),this.expect(U.colon),V.alternate=this.parseMaybeAssign(q),this.finishNode(V,"ConditionalExpression")}return H};u.parseExprOps=function(q,Q){var Z=this.start,Y=this.startLoc,H=this.parseMaybeUnary(Q,!1,!1,q);if(this.checkExpressionErrors(Q))return H;return H.start===Z&&H.type==="ArrowFunctionExpression"?H:this.parseExprOp(H,Z,Y,-1,q)};u.parseExprOp=function(q,Q,Z,Y,H){var V=this.type.binop;if(V!=null&&(!H||this.type!==U._in)){if(V>Y){var K=this.type===U.logicalOR||this.type===U.logicalAND,W=this.type===U.coalesce;if(W)V=U.logicalAND.binop;var G=this.value;this.next();var R=this.start,O=this.startLoc,$=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,H),R,O,V,H),M=this.buildBinary(Q,Z,q,$,G,K||W);if(K&&this.type===U.coalesce||W&&(this.type===U.logicalOR||this.type===U.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(M,Q,Z,Y,H)}}return q};u.buildBinary=function(q,Q,Z,Y,H,V){if(Y.type==="PrivateIdentifier")this.raise(Y.start,"Private identifier can only be left side of binary expression");var K=this.startNodeAt(q,Q);return K.left=Z,K.operator=H,K.right=Y,this.finishNode(K,V?"LogicalExpression":"BinaryExpression")};u.parseMaybeUnary=function(q,Q,Z,Y){var H=this.start,V=this.startLoc,K;if(this.isContextual("await")&&this.canAwait)K=this.parseAwait(Y),Q=!0;else if(this.type.prefix){var W=this.startNode(),G=this.type===U.incDec;if(W.operator=this.value,W.prefix=!0,this.next(),W.argument=this.parseMaybeUnary(null,!0,G,Y),this.checkExpressionErrors(q,!0),G)this.checkLValSimple(W.argument);else if(this.strict&&W.operator==="delete"&&w2(W.argument))this.raiseRecoverable(W.start,"Deleting local variable in strict mode");else if(W.operator==="delete"&&h9(W.argument))this.raiseRecoverable(W.start,"Private fields can not be deleted");else Q=!0;K=this.finishNode(W,G?"UpdateExpression":"UnaryExpression")}else if(!Q&&this.type===U.privateId){if((Y||this.privateNameStack.length===0)&&this.options.checkPrivateFields)this.unexpected();if(K=this.parsePrivateIdent(),this.type!==U._in)this.unexpected()}else{if(K=this.parseExprSubscripts(q,Y),this.checkExpressionErrors(q))return K;while(this.type.postfix&&!this.canInsertSemicolon()){var R=this.startNodeAt(H,V);R.operator=this.value,R.prefix=!1,R.argument=K,this.checkLValSimple(K),this.next(),K=this.finishNode(R,"UpdateExpression")}}if(!Z&&this.eat(U.starstar))if(Q)this.unexpected(this.lastTokStart);else return this.buildBinary(H,V,K,this.parseMaybeUnary(null,!1,!1,Y),"**",!1);else return K};function w2(q){return q.type==="Identifier"||q.type==="ParenthesizedExpression"&&w2(q.expression)}function h9(q){return q.type==="MemberExpression"&&q.property.type==="PrivateIdentifier"||q.type==="ChainExpression"&&h9(q.expression)||q.type==="ParenthesizedExpression"&&h9(q.expression)}u.parseExprSubscripts=function(q,Q){var Z=this.start,Y=this.startLoc,H=this.parseExprAtom(q,Q);if(H.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return H;var V=this.parseSubscripts(H,Z,Y,!1,Q);if(q&&V.type==="MemberExpression"){if(q.parenthesizedAssign>=V.start)q.parenthesizedAssign=-1;if(q.parenthesizedBind>=V.start)q.parenthesizedBind=-1;if(q.trailingComma>=V.start)q.trailingComma=-1}return V};u.parseSubscripts=function(q,Q,Z,Y,H){var V=this.options.ecmaVersion>=8&&q.type==="Identifier"&&q.name==="async"&&this.lastTokEnd===q.end&&!this.canInsertSemicolon()&&q.end-q.start===5&&this.potentialArrowAt===q.start,K=!1;while(!0){var W=this.parseSubscript(q,Q,Z,Y,V,K,H);if(W.optional)K=!0;if(W===q||W.type==="ArrowFunctionExpression"){if(K){var G=this.startNodeAt(Q,Z);G.expression=W,W=this.finishNode(G,"ChainExpression")}return W}q=W}};u.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(U.arrow)};u.parseSubscriptAsyncArrow=function(q,Q,Z,Y){return this.parseArrowExpression(this.startNodeAt(q,Q),Z,!0,Y)};u.parseSubscript=function(q,Q,Z,Y,H,V,K){var W=this.options.ecmaVersion>=11,G=W&&this.eat(U.questionDot);if(Y&&G)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var R=this.eat(U.bracketL);if(R||G&&this.type!==U.parenL&&this.type!==U.backQuote||this.eat(U.dot)){var O=this.startNodeAt(Q,Z);if(O.object=q,R)O.property=this.parseExpression(),this.expect(U.bracketR);else if(this.type===U.privateId&&q.type!=="Super")O.property=this.parsePrivateIdent();else O.property=this.parseIdent(this.options.allowReserved!=="never");if(O.computed=!!R,W)O.optional=G;q=this.finishNode(O,"MemberExpression")}else if(!Y&&this.eat(U.parenL)){var $=new I0,M=this.yieldPos,F=this.awaitPos,P=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var w=this.parseExprList(U.parenR,this.options.ecmaVersion>=8,!1,$);if(H&&!G&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors($,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=M,this.awaitPos=F,this.awaitIdentPos=P,this.parseSubscriptAsyncArrow(Q,Z,w,K)}this.checkExpressionErrors($,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=F||this.awaitPos,this.awaitIdentPos=P||this.awaitIdentPos;var N=this.startNodeAt(Q,Z);if(N.callee=q,N.arguments=w,W)N.optional=G;q=this.finishNode(N,"CallExpression")}else if(this.type===U.backQuote){if(G||V)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var v=this.startNodeAt(Q,Z);v.tag=q,v.quasi=this.parseTemplate({isTagged:!0}),q=this.finishNode(v,"TaggedTemplateExpression")}return q};u.parseExprAtom=function(q,Q,Z){if(this.type===U.slash)this.readRegexp();var Y,H=this.potentialArrowAt===this.start;switch(this.type){case U._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(Y=this.startNode(),this.next(),this.type===U.parenL&&!this.allowDirectSuper)this.raise(Y.start,"super() call outside constructor of a subclass");if(this.type!==U.dot&&this.type!==U.bracketL&&this.type!==U.parenL)this.unexpected();return this.finishNode(Y,"Super");case U._this:return Y=this.startNode(),this.next(),this.finishNode(Y,"ThisExpression");case U.name:var V=this.start,K=this.startLoc,W=this.containsEsc,G=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!W&&G.name==="async"&&!this.canInsertSemicolon()&&this.eat(U._function))return this.overrideContext(Q8.f_expr),this.parseFunction(this.startNodeAt(V,K),0,!1,!0,Q);if(H&&!this.canInsertSemicolon()){if(this.eat(U.arrow))return this.parseArrowExpression(this.startNodeAt(V,K),[G],!1,Q);if(this.options.ecmaVersion>=8&&G.name==="async"&&this.type===U.name&&!W&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(G=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(U.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(V,K),[G],!0,Q)}}return G;case U.regexp:var R=this.value;return Y=this.parseLiteral(R.value),Y.regex={pattern:R.pattern,flags:R.flags},Y;case U.num:case U.string:return this.parseLiteral(this.value);case U._null:case U._true:case U._false:return Y=this.startNode(),Y.value=this.type===U._null?null:this.type===U._true,Y.raw=this.type.keyword,this.next(),this.finishNode(Y,"Literal");case U.parenL:var O=this.start,$=this.parseParenAndDistinguishExpression(H,Q);if(q){if(q.parenthesizedAssign<0&&!this.isSimpleAssignTarget($))q.parenthesizedAssign=O;if(q.parenthesizedBind<0)q.parenthesizedBind=O}return $;case U.bracketL:return Y=this.startNode(),this.next(),Y.elements=this.parseExprList(U.bracketR,!0,!0,q),this.finishNode(Y,"ArrayExpression");case U.braceL:return this.overrideContext(Q8.b_expr),this.parseObj(!1,q);case U._function:return Y=this.startNode(),this.next(),this.parseFunction(Y,0);case U._class:return this.parseClass(this.startNode(),!1);case U._new:return this.parseNew();case U.backQuote:return this.parseTemplate();case U._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(Z);else return this.unexpected();default:return this.parseExprAtomDefault()}};u.parseExprAtomDefault=function(){this.unexpected()};u.parseExprImport=function(q){var Q=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");if(this.next(),this.type===U.parenL&&!q)return this.parseDynamicImport(Q);else if(this.type===U.dot){var Z=this.startNodeAt(Q.start,Q.loc&&Q.loc.start);return Z.name="import",Q.meta=this.finishNode(Z,"Identifier"),this.parseImportMeta(Q)}else this.unexpected()};u.parseDynamicImport=function(q){if(this.next(),q.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)if(!this.eat(U.parenR))if(this.expect(U.comma),!this.afterTrailingComma(U.parenR)){if(q.options=this.parseMaybeAssign(),!this.eat(U.parenR)){if(this.expect(U.comma),!this.afterTrailingComma(U.parenR))this.unexpected()}}else q.options=null;else q.options=null;else if(!this.eat(U.parenR)){var Q=this.start;if(this.eat(U.comma)&&this.eat(U.parenR))this.raiseRecoverable(Q,"Trailing comma is not allowed in import()");else this.unexpected(Q)}return this.finishNode(q,"ImportExpression")};u.parseImportMeta=function(q){this.next();var Q=this.containsEsc;if(q.property=this.parseIdent(!0),q.property.name!=="meta")this.raiseRecoverable(q.property.start,"The only valid meta property for import is 'import.meta'");if(Q)this.raiseRecoverable(q.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(q.start,"Cannot use 'import.meta' outside a module");return this.finishNode(q,"MetaProperty")};u.parseLiteral=function(q){var Q=this.startNode();if(Q.value=q,Q.raw=this.input.slice(this.start,this.end),Q.raw.charCodeAt(Q.raw.length-1)===110)Q.bigint=Q.value!=null?Q.value.toString():Q.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(Q,"Literal")};u.parseParenExpression=function(){this.expect(U.parenL);var q=this.parseExpression();return this.expect(U.parenR),q};u.shouldParseArrow=function(q){return!this.canInsertSemicolon()};u.parseParenAndDistinguishExpression=function(q,Q){var Z=this.start,Y=this.startLoc,H,V=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var K=this.start,W=this.startLoc,G=[],R=!0,O=!1,$=new I0,M=this.yieldPos,F=this.awaitPos,P;this.yieldPos=0,this.awaitPos=0;while(this.type!==U.parenR)if(R?R=!1:this.expect(U.comma),V&&this.afterTrailingComma(U.parenR,!0)){O=!0;break}else if(this.type===U.ellipsis){if(P=this.start,G.push(this.parseParenItem(this.parseRestBinding())),this.type===U.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else G.push(this.parseMaybeAssign(!1,$,this.parseParenItem));var w=this.lastTokEnd,N=this.lastTokEndLoc;if(this.expect(U.parenR),q&&this.shouldParseArrow(G)&&this.eat(U.arrow))return this.checkPatternErrors($,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=M,this.awaitPos=F,this.parseParenArrowList(Z,Y,G,Q);if(!G.length||O)this.unexpected(this.lastTokStart);if(P)this.unexpected(P);if(this.checkExpressionErrors($,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=F||this.awaitPos,G.length>1)H=this.startNodeAt(K,W),H.expressions=G,this.finishNodeAt(H,"SequenceExpression",w,N);else H=G[0]}else H=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(Z,Y);return v.expression=H,this.finishNode(v,"ParenthesizedExpression")}else return H};u.parseParenItem=function(q){return q};u.parseParenArrowList=function(q,Q,Z,Y){return this.parseArrowExpression(this.startNodeAt(q,Q),Z,!1,Y)};var lq=[];u.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var q=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===U.dot){var Q=this.startNodeAt(q.start,q.loc&&q.loc.start);Q.name="new",q.meta=this.finishNode(Q,"Identifier"),this.next();var Z=this.containsEsc;if(q.property=this.parseIdent(!0),q.property.name!=="target")this.raiseRecoverable(q.property.start,"The only valid meta property for new is 'new.target'");if(Z)this.raiseRecoverable(q.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(q.start,"'new.target' can only be used in functions and class static block");return this.finishNode(q,"MetaProperty")}var Y=this.start,H=this.startLoc;if(q.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),Y,H,!0,!1),q.callee.type==="Super")this.raiseRecoverable(Y,"Invalid use of 'super'");if(this.eat(U.parenL))q.arguments=this.parseExprList(U.parenR,this.options.ecmaVersion>=8,!1);else q.arguments=lq;return this.finishNode(q,"NewExpression")};u.parseTemplateElement=function(q){var Q=q.isTagged,Z=this.startNode();if(this.type===U.invalidTemplate){if(!Q)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");Z.value={raw:this.value.replace(/\r\n?/g,`
29
+ `),cooked:null}}else Z.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
30
+ `),cooked:this.value};return this.next(),Z.tail=this.type===U.backQuote,this.finishNode(Z,"TemplateElement")};u.parseTemplate=function(q){if(q===void 0)q={};var Q=q.isTagged;if(Q===void 0)Q=!1;var Z=this.startNode();this.next(),Z.expressions=[];var Y=this.parseTemplateElement({isTagged:Q});Z.quasis=[Y];while(!Y.tail){if(this.type===U.eof)this.raise(this.pos,"Unterminated template literal");this.expect(U.dollarBraceL),Z.expressions.push(this.parseExpression()),this.expect(U.braceR),Z.quasis.push(Y=this.parseTemplateElement({isTagged:Q}))}return this.next(),this.finishNode(Z,"TemplateLiteral")};u.isAsyncProp=function(q){return!q.computed&&q.key.type==="Identifier"&&q.key.name==="async"&&(this.type===U.name||this.type===U.num||this.type===U.string||this.type===U.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===U.star)&&!F8.test(this.input.slice(this.lastTokEnd,this.start))};u.parseObj=function(q,Q){var Z=this.startNode(),Y=!0,H={};Z.properties=[],this.next();while(!this.eat(U.braceR)){if(!Y){if(this.expect(U.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(U.braceR))break}else Y=!1;var V=this.parseProperty(q,Q);if(!q)this.checkPropClash(V,H,Q);Z.properties.push(V)}return this.finishNode(Z,q?"ObjectPattern":"ObjectExpression")};u.parseProperty=function(q,Q){var Z=this.startNode(),Y,H,V,K;if(this.options.ecmaVersion>=9&&this.eat(U.ellipsis)){if(q){if(Z.argument=this.parseIdent(!1),this.type===U.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");return this.finishNode(Z,"RestElement")}if(Z.argument=this.parseMaybeAssign(!1,Q),this.type===U.comma&&Q&&Q.trailingComma<0)Q.trailingComma=this.start;return this.finishNode(Z,"SpreadElement")}if(this.options.ecmaVersion>=6){if(Z.method=!1,Z.shorthand=!1,q||Q)V=this.start,K=this.startLoc;if(!q)Y=this.eat(U.star)}var W=this.containsEsc;if(this.parsePropertyName(Z),!q&&!W&&this.options.ecmaVersion>=8&&!Y&&this.isAsyncProp(Z))H=!0,Y=this.options.ecmaVersion>=9&&this.eat(U.star),this.parsePropertyName(Z);else H=!1;return this.parsePropertyValue(Z,q,Y,H,V,K,Q,W),this.finishNode(Z,"Property")};u.parseGetterSetter=function(q){var Q=q.key.name;this.parsePropertyName(q),q.value=this.parseMethod(!1),q.kind=Q;var Z=q.kind==="get"?0:1;if(q.value.params.length!==Z){var Y=q.value.start;if(q.kind==="get")this.raiseRecoverable(Y,"getter should have no params");else this.raiseRecoverable(Y,"setter should have exactly one param")}else if(q.kind==="set"&&q.value.params[0].type==="RestElement")this.raiseRecoverable(q.value.params[0].start,"Setter cannot use rest params")};u.parsePropertyValue=function(q,Q,Z,Y,H,V,K,W){if((Z||Y)&&this.type===U.colon)this.unexpected();if(this.eat(U.colon))q.value=Q?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,K),q.kind="init";else if(this.options.ecmaVersion>=6&&this.type===U.parenL){if(Q)this.unexpected();q.method=!0,q.value=this.parseMethod(Z,Y),q.kind="init"}else if(!Q&&!W&&this.options.ecmaVersion>=5&&!q.computed&&q.key.type==="Identifier"&&(q.key.name==="get"||q.key.name==="set")&&(this.type!==U.comma&&this.type!==U.braceR&&this.type!==U.eq)){if(Z||Y)this.unexpected();this.parseGetterSetter(q)}else if(this.options.ecmaVersion>=6&&!q.computed&&q.key.type==="Identifier"){if(Z||Y)this.unexpected();if(this.checkUnreserved(q.key),q.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=H;if(Q)q.value=this.parseMaybeDefault(H,V,this.copyNode(q.key));else if(this.type===U.eq&&K){if(K.shorthandAssign<0)K.shorthandAssign=this.start;q.value=this.parseMaybeDefault(H,V,this.copyNode(q.key))}else q.value=this.copyNode(q.key);q.kind="init",q.shorthand=!0}else this.unexpected()};u.parsePropertyName=function(q){if(this.options.ecmaVersion>=6)if(this.eat(U.bracketL))return q.computed=!0,q.key=this.parseMaybeAssign(),this.expect(U.bracketR),q.key;else q.computed=!1;return q.key=this.type===U.num||this.type===U.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};u.initFunction=function(q){if(q.id=null,this.options.ecmaVersion>=6)q.generator=q.expression=!1;if(this.options.ecmaVersion>=8)q.async=!1};u.parseMethod=function(q,Q,Z){var Y=this.startNode(),H=this.yieldPos,V=this.awaitPos,K=this.awaitIdentPos;if(this.initFunction(Y),this.options.ecmaVersion>=6)Y.generator=q;if(this.options.ecmaVersion>=8)Y.async=!!Q;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(u9(Q,Y.generator)|A0|(Z?F2:0)),this.expect(U.parenL),Y.params=this.parseBindingList(U.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(Y,!1,!0,!1),this.yieldPos=H,this.awaitPos=V,this.awaitIdentPos=K,this.finishNode(Y,"FunctionExpression")};u.parseArrowExpression=function(q,Q,Z,Y){var H=this.yieldPos,V=this.awaitPos,K=this.awaitIdentPos;if(this.enterScope(u9(Z,!1)|x9),this.initFunction(q),this.options.ecmaVersion>=8)q.async=!!Z;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,q.params=this.toAssignableList(Q,!0),this.parseFunctionBody(q,!0,!1,Y),this.yieldPos=H,this.awaitPos=V,this.awaitIdentPos=K,this.finishNode(q,"ArrowFunctionExpression")};u.parseFunctionBody=function(q,Q,Z,Y){var H=Q&&this.type!==U.braceL,V=this.strict,K=!1;if(H)q.body=this.parseMaybeAssign(Y),q.expression=!0,this.checkParams(q,!1);else{var W=this.options.ecmaVersion>=7&&!this.isSimpleParamList(q.params);if(!V||W){if(K=this.strictDirective(this.end),K&&W)this.raiseRecoverable(q.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var G=this.labels;if(this.labels=[],K)this.strict=!0;if(this.checkParams(q,!V&&!K&&!Q&&!Z&&this.isSimpleParamList(q.params)),this.strict&&q.id)this.checkLValSimple(q.id,C2);q.body=this.parseBlock(!1,void 0,K&&!V),q.expression=!1,this.adaptDirectivePrologue(q.body.body),this.labels=G}this.exitScope()};u.isSimpleParamList=function(q){for(var Q=0,Z=q;Q<Z.length;Q+=1){var Y=Z[Q];if(Y.type!=="Identifier")return!1}return!0};u.checkParams=function(q,Q){var Z=Object.create(null);for(var Y=0,H=q.params;Y<H.length;Y+=1){var V=H[Y];this.checkLValInnerPattern(V,m9,Q?null:Z)}};u.parseExprList=function(q,Q,Z,Y){var H=[],V=!0;while(!this.eat(q)){if(!V){if(this.expect(U.comma),Q&&this.afterTrailingComma(q))break}else V=!1;var K=void 0;if(Z&&this.type===U.comma)K=null;else if(this.type===U.ellipsis){if(K=this.parseSpread(Y),Y&&this.type===U.comma&&Y.trailingComma<0)Y.trailingComma=this.start}else K=this.parseMaybeAssign(!1,Y);H.push(K)}return H};u.checkUnreserved=function(q){var{start:Q,end:Z,name:Y}=q;if(this.inGenerator&&Y==="yield")this.raiseRecoverable(Q,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&Y==="await")this.raiseRecoverable(Q,"Cannot use 'await' as identifier inside an async function");if(!(this.currentThisScope().flags&w0)&&Y==="arguments")this.raiseRecoverable(Q,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(Y==="arguments"||Y==="await"))this.raise(Q,"Cannot use "+Y+" in class static initialization block");if(this.keywords.test(Y))this.raise(Q,"Unexpected keyword '"+Y+"'");if(this.options.ecmaVersion<6&&this.input.slice(Q,Z).indexOf("\\")!==-1)return;var H=this.strict?this.reservedWordsStrict:this.reservedWords;if(H.test(Y)){if(!this.inAsync&&Y==="await")this.raiseRecoverable(Q,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(Q,"The keyword '"+Y+"' is reserved")}};u.parseIdent=function(q){var Q=this.parseIdentNode();if(this.next(!!q),this.finishNode(Q,"Identifier"),!q){if(this.checkUnreserved(Q),Q.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=Q.start}return Q};u.parseIdentNode=function(){var q=this.startNode();if(this.type===U.name)q.name=this.value;else if(this.type.keyword){if(q.name=this.type.keyword,(q.name==="class"||q.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop();this.type=U.name}else this.unexpected();return q};u.parsePrivateIdent=function(){var q=this.startNode();if(this.type===U.privateId)q.name=this.value;else this.unexpected();if(this.next(),this.finishNode(q,"PrivateIdentifier"),this.options.checkPrivateFields)if(this.privateNameStack.length===0)this.raise(q.start,"Private field '#"+q.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(q);return q};u.parseYield=function(q){if(!this.yieldPos)this.yieldPos=this.start;var Q=this.startNode();if(this.next(),this.type===U.semi||this.canInsertSemicolon()||this.type!==U.star&&!this.type.startsExpr)Q.delegate=!1,Q.argument=null;else Q.delegate=this.eat(U.star),Q.argument=this.parseMaybeAssign(q);return this.finishNode(Q,"YieldExpression")};u.parseAwait=function(q){if(!this.awaitPos)this.awaitPos=this.start;var Q=this.startNode();return this.next(),Q.argument=this.parseMaybeUnary(null,!0,!1,q),this.finishNode(Q,"AwaitExpression")};var $0=Y8.prototype;$0.raise=function(q,Q){var Z=g9(this.input,q);if(Q+=" ("+Z.line+":"+Z.column+")",this.sourceFile)Q+=" in "+this.sourceFile;var Y=SyntaxError(Q);throw Y.pos=q,Y.loc=Z,Y.raisedAt=this.pos,Y};$0.raiseRecoverable=$0.raise;$0.curPosition=function(){if(this.options.locations)return new B1(this.curLine,this.pos-this.lineStart)};var Z1=Y8.prototype,cq=function(Q){this.flags=Q,this.var=[],this.lexical=[],this.functions=[]};Z1.enterScope=function(q){this.scopeStack.push(new cq(q))};Z1.exitScope=function(){this.scopeStack.pop()};Z1.treatFunctionsAsVarInScope=function(q){return q.flags&O1||!this.inModule&&q.flags&z1};Z1.declareName=function(q,Q,Z){var Y=!1;if(Q===r8){var H=this.currentScope();if(Y=H.lexical.indexOf(q)>-1||H.functions.indexOf(q)>-1||H.var.indexOf(q)>-1,H.lexical.push(q),this.inModule&&H.flags&z1)delete this.undefinedExports[q]}else if(Q===L2){var V=this.currentScope();V.lexical.push(q)}else if(Q===$2){var K=this.currentScope();if(this.treatFunctionsAsVar)Y=K.lexical.indexOf(q)>-1;else Y=K.lexical.indexOf(q)>-1||K.var.indexOf(q)>-1;K.functions.push(q)}else for(var W=this.scopeStack.length-1;W>=0;--W){var G=this.scopeStack[W];if(G.lexical.indexOf(q)>-1&&!(G.flags&B2&&G.lexical[0]===q)||!this.treatFunctionsAsVarInScope(G)&&G.functions.indexOf(q)>-1){Y=!0;break}if(G.var.push(q),this.inModule&&G.flags&z1)delete this.undefinedExports[q];if(G.flags&w0)break}if(Y)this.raiseRecoverable(Z,"Identifier '"+q+"' has already been declared")};Z1.checkLocalExport=function(q){if(this.scopeStack[0].lexical.indexOf(q.name)===-1&&this.scopeStack[0].var.indexOf(q.name)===-1)this.undefinedExports[q.name]=q};Z1.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};Z1.currentVarScope=function(){for(var q=this.scopeStack.length-1;;q--){var Q=this.scopeStack[q];if(Q.flags&(w0|y1|U1))return Q}};Z1.currentThisScope=function(){for(var q=this.scopeStack.length-1;;q--){var Q=this.scopeStack[q];if(Q.flags&(w0|y1|U1)&&!(Q.flags&x9))return Q}};var g1=function(Q,Z,Y){if(this.type="",this.start=Z,this.end=0,Q.options.locations)this.loc=new f1(Q,Y);if(Q.options.directSourceFile)this.sourceFile=Q.options.directSourceFile;if(Q.options.ranges)this.range=[Z,0]},_1=Y8.prototype;_1.startNode=function(){return new g1(this,this.start,this.startLoc)};_1.startNodeAt=function(q,Q){return new g1(this,q,Q)};function I2(q,Q,Z,Y){if(q.type=Q,q.end=Z,this.options.locations)q.loc.end=Y;if(this.options.ranges)q.range[1]=Z;return q}_1.finishNode=function(q,Q){return I2.call(this,q,Q,this.lastTokEnd,this.lastTokEndLoc)};_1.finishNodeAt=function(q,Q,Z,Y){return I2.call(this,q,Q,Z,Y)};_1.copyNode=function(q){var Q=new g1(this,q.start,this.startLoc);for(var Z in q)Q[Z]=q[Z];return Q};var iq="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",P2="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",S2=P2+" Extended_Pictographic",D2=S2,N2=D2+" EBase EComp EMod EPres ExtPict",T2=N2,dq=T2,pq={9:P2,10:S2,11:D2,12:N2,13:T2,14:dq},oq="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",nq={9:"",10:"",11:"",12:"",13:"",14:oq},X2="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",b2="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",k2=b2+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",E2=k2+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",v2=E2+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",h2=v2+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",sq=h2+" "+iq,aq={9:b2,10:k2,11:E2,12:v2,13:h2,14:sq},f2={};function rq(q){var Q=f2[q]={binary:Q1(pq[q]+" "+X2),binaryOfStrings:Q1(nq[q]),nonBinary:{General_Category:Q1(X2),Script:Q1(aq[q])}};Q.nonBinary.Script_Extensions=Q.nonBinary.Script,Q.nonBinary.gc=Q.nonBinary.General_Category,Q.nonBinary.sc=Q.nonBinary.Script,Q.nonBinary.scx=Q.nonBinary.Script_Extensions}for(v1=0,R0=[9,10,11,12,13,14];v1<R0.length;v1+=1)f9=R0[v1],rq(f9);var f9,v1,R0,T=Y8.prototype,L0=function(Q,Z){this.parent=Q,this.base=Z||this};L0.prototype.separatedFrom=function(Q){for(var Z=this;Z;Z=Z.parent)for(var Y=Q;Y;Y=Y.parent)if(Z.base===Y.base&&Z!==Y)return!0;return!1};L0.prototype.sibling=function(){return new L0(this.parent,this.base)};var l8=function(Q){this.parser=Q,this.validFlags="gim"+(Q.options.ecmaVersion>=6?"uy":"")+(Q.options.ecmaVersion>=9?"s":"")+(Q.options.ecmaVersion>=13?"d":"")+(Q.options.ecmaVersion>=15?"v":""),this.unicodeProperties=f2[Q.options.ecmaVersion>=14?14:Q.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};l8.prototype.reset=function(Q,Z,Y){var H=Y.indexOf("v")!==-1,V=Y.indexOf("u")!==-1;if(this.start=Q|0,this.source=Z+"",this.flags=Y,H&&this.parser.options.ecmaVersion>=15)this.switchU=!0,this.switchV=!0,this.switchN=!0;else this.switchU=V&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=V&&this.parser.options.ecmaVersion>=9};l8.prototype.raise=function(Q){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+Q)};l8.prototype.at=function(Q,Z){if(Z===void 0)Z=!1;var Y=this.source,H=Y.length;if(Q>=H)return-1;var V=Y.charCodeAt(Q);if(!(Z||this.switchU)||V<=55295||V>=57344||Q+1>=H)return V;var K=Y.charCodeAt(Q+1);return K>=56320&&K<=57343?(V<<10)+K-56613888:V};l8.prototype.nextIndex=function(Q,Z){if(Z===void 0)Z=!1;var Y=this.source,H=Y.length;if(Q>=H)return H;var V=Y.charCodeAt(Q),K;if(!(Z||this.switchU)||V<=55295||V>=57344||Q+1>=H||(K=Y.charCodeAt(Q+1))<56320||K>57343)return Q+1;return Q+2};l8.prototype.current=function(Q){if(Q===void 0)Q=!1;return this.at(this.pos,Q)};l8.prototype.lookahead=function(Q){if(Q===void 0)Q=!1;return this.at(this.nextIndex(this.pos,Q),Q)};l8.prototype.advance=function(Q){if(Q===void 0)Q=!1;this.pos=this.nextIndex(this.pos,Q)};l8.prototype.eat=function(Q,Z){if(Z===void 0)Z=!1;if(this.current(Z)===Q)return this.advance(Z),!0;return!1};l8.prototype.eatChars=function(Q,Z){if(Z===void 0)Z=!1;var Y=this.pos;for(var H=0,V=Q;H<V.length;H+=1){var K=V[H],W=this.at(Y,Z);if(W===-1||W!==K)return!1;Y=this.nextIndex(Y,Z)}return this.pos=Y,!0};T.validateRegExpFlags=function(q){var{validFlags:Q,flags:Z}=q,Y=!1,H=!1;for(var V=0;V<Z.length;V++){var K=Z.charAt(V);if(Q.indexOf(K)===-1)this.raise(q.start,"Invalid regular expression flag");if(Z.indexOf(K,V+1)>-1)this.raise(q.start,"Duplicate regular expression flag");if(K==="u")Y=!0;if(K==="v")H=!0}if(this.options.ecmaVersion>=15&&Y&&H)this.raise(q.start,"Invalid regular expression flag")};function tq(q){for(var Q in q)return!0;return!1}T.validateRegExpPattern=function(q){if(this.regexp_pattern(q),!q.switchN&&this.options.ecmaVersion>=9&&tq(q.groupNames))q.switchN=!0,this.regexp_pattern(q)};T.regexp_pattern=function(q){if(q.pos=0,q.lastIntValue=0,q.lastStringValue="",q.lastAssertionIsQuantifiable=!1,q.numCapturingParens=0,q.maxBackReference=0,q.groupNames=Object.create(null),q.backReferenceNames.length=0,q.branchID=null,this.regexp_disjunction(q),q.pos!==q.source.length){if(q.eat(41))q.raise("Unmatched ')'");if(q.eat(93)||q.eat(125))q.raise("Lone quantifier brackets")}if(q.maxBackReference>q.numCapturingParens)q.raise("Invalid escape");for(var Q=0,Z=q.backReferenceNames;Q<Z.length;Q+=1){var Y=Z[Q];if(!q.groupNames[Y])q.raise("Invalid named capture referenced")}};T.regexp_disjunction=function(q){var Q=this.options.ecmaVersion>=16;if(Q)q.branchID=new L0(q.branchID,null);this.regexp_alternative(q);while(q.eat(124)){if(Q)q.branchID=q.branchID.sibling();this.regexp_alternative(q)}if(Q)q.branchID=q.branchID.parent;if(this.regexp_eatQuantifier(q,!0))q.raise("Nothing to repeat");if(q.eat(123))q.raise("Lone quantifier brackets")};T.regexp_alternative=function(q){while(q.pos<q.source.length&&this.regexp_eatTerm(q));};T.regexp_eatTerm=function(q){if(this.regexp_eatAssertion(q)){if(q.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(q)){if(q.switchU)q.raise("Invalid quantifier")}return!0}if(q.switchU?this.regexp_eatAtom(q):this.regexp_eatExtendedAtom(q))return this.regexp_eatQuantifier(q),!0;return!1};T.regexp_eatAssertion=function(q){var Q=q.pos;if(q.lastAssertionIsQuantifiable=!1,q.eat(94)||q.eat(36))return!0;if(q.eat(92)){if(q.eat(66)||q.eat(98))return!0;q.pos=Q}if(q.eat(40)&&q.eat(63)){var Z=!1;if(this.options.ecmaVersion>=9)Z=q.eat(60);if(q.eat(61)||q.eat(33)){if(this.regexp_disjunction(q),!q.eat(41))q.raise("Unterminated group");return q.lastAssertionIsQuantifiable=!Z,!0}}return q.pos=Q,!1};T.regexp_eatQuantifier=function(q,Q){if(Q===void 0)Q=!1;if(this.regexp_eatQuantifierPrefix(q,Q))return q.eat(63),!0;return!1};T.regexp_eatQuantifierPrefix=function(q,Q){return q.eat(42)||q.eat(43)||q.eat(63)||this.regexp_eatBracedQuantifier(q,Q)};T.regexp_eatBracedQuantifier=function(q,Q){var Z=q.pos;if(q.eat(123)){var Y=0,H=-1;if(this.regexp_eatDecimalDigits(q)){if(Y=q.lastIntValue,q.eat(44)&&this.regexp_eatDecimalDigits(q))H=q.lastIntValue;if(q.eat(125)){if(H!==-1&&H<Y&&!Q)q.raise("numbers out of order in {} quantifier");return!0}}if(q.switchU&&!Q)q.raise("Incomplete quantifier");q.pos=Z}return!1};T.regexp_eatAtom=function(q){return this.regexp_eatPatternCharacters(q)||q.eat(46)||this.regexp_eatReverseSolidusAtomEscape(q)||this.regexp_eatCharacterClass(q)||this.regexp_eatUncapturingGroup(q)||this.regexp_eatCapturingGroup(q)};T.regexp_eatReverseSolidusAtomEscape=function(q){var Q=q.pos;if(q.eat(92)){if(this.regexp_eatAtomEscape(q))return!0;q.pos=Q}return!1};T.regexp_eatUncapturingGroup=function(q){var Q=q.pos;if(q.eat(40)){if(q.eat(63)){if(this.options.ecmaVersion>=16){var Z=this.regexp_eatModifiers(q),Y=q.eat(45);if(Z||Y){for(var H=0;H<Z.length;H++){var V=Z.charAt(H);if(Z.indexOf(V,H+1)>-1)q.raise("Duplicate regular expression modifiers")}if(Y){var K=this.regexp_eatModifiers(q);if(!Z&&!K&&q.current()===58)q.raise("Invalid regular expression modifiers");for(var W=0;W<K.length;W++){var G=K.charAt(W);if(K.indexOf(G,W+1)>-1||Z.indexOf(G)>-1)q.raise("Duplicate regular expression modifiers")}}}}if(q.eat(58)){if(this.regexp_disjunction(q),q.eat(41))return!0;q.raise("Unterminated group")}}q.pos=Q}return!1};T.regexp_eatCapturingGroup=function(q){if(q.eat(40)){if(this.options.ecmaVersion>=9)this.regexp_groupSpecifier(q);else if(q.current()===63)q.raise("Invalid group");if(this.regexp_disjunction(q),q.eat(41))return q.numCapturingParens+=1,!0;q.raise("Unterminated group")}return!1};T.regexp_eatModifiers=function(q){var Q="",Z=0;while((Z=q.current())!==-1&&eq(Z))Q+=s8(Z),q.advance();return Q};function eq(q){return q===105||q===109||q===115}T.regexp_eatExtendedAtom=function(q){return q.eat(46)||this.regexp_eatReverseSolidusAtomEscape(q)||this.regexp_eatCharacterClass(q)||this.regexp_eatUncapturingGroup(q)||this.regexp_eatCapturingGroup(q)||this.regexp_eatInvalidBracedQuantifier(q)||this.regexp_eatExtendedPatternCharacter(q)};T.regexp_eatInvalidBracedQuantifier=function(q){if(this.regexp_eatBracedQuantifier(q,!0))q.raise("Nothing to repeat");return!1};T.regexp_eatSyntaxCharacter=function(q){var Q=q.current();if(y2(Q))return q.lastIntValue=Q,q.advance(),!0;return!1};function y2(q){return q===36||q>=40&&q<=43||q===46||q===63||q>=91&&q<=94||q>=123&&q<=125}T.regexp_eatPatternCharacters=function(q){var Q=q.pos,Z=0;while((Z=q.current())!==-1&&!y2(Z))q.advance();return q.pos!==Q};T.regexp_eatExtendedPatternCharacter=function(q){var Q=q.current();if(Q!==-1&&Q!==36&&!(Q>=40&&Q<=43)&&Q!==46&&Q!==63&&Q!==91&&Q!==94&&Q!==124)return q.advance(),!0;return!1};T.regexp_groupSpecifier=function(q){if(q.eat(63)){if(!this.regexp_eatGroupName(q))q.raise("Invalid group");var Q=this.options.ecmaVersion>=16,Z=q.groupNames[q.lastStringValue];if(Z)if(Q)for(var Y=0,H=Z;Y<H.length;Y+=1){var V=H[Y];if(!V.separatedFrom(q.branchID))q.raise("Duplicate capture group name")}else q.raise("Duplicate capture group name");if(Q)(Z||(q.groupNames[q.lastStringValue]=[])).push(q.branchID);else q.groupNames[q.lastStringValue]=!0}};T.regexp_eatGroupName=function(q){if(q.lastStringValue="",q.eat(60)){if(this.regexp_eatRegExpIdentifierName(q)&&q.eat(62))return!0;q.raise("Invalid capture group name")}return!1};T.regexp_eatRegExpIdentifierName=function(q){if(q.lastStringValue="",this.regexp_eatRegExpIdentifierStart(q)){q.lastStringValue+=s8(q.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(q))q.lastStringValue+=s8(q.lastIntValue);return!0}return!1};T.regexp_eatRegExpIdentifierStart=function(q){var Q=q.pos,Z=this.options.ecmaVersion>=11,Y=q.current(Z);if(q.advance(Z),Y===92&&this.regexp_eatRegExpUnicodeEscapeSequence(q,Z))Y=q.lastIntValue;if(qQ(Y))return q.lastIntValue=Y,!0;return q.pos=Q,!1};function qQ(q){return A8(q,!0)||q===36||q===95}T.regexp_eatRegExpIdentifierPart=function(q){var Q=q.pos,Z=this.options.ecmaVersion>=11,Y=q.current(Z);if(q.advance(Z),Y===92&&this.regexp_eatRegExpUnicodeEscapeSequence(q,Z))Y=q.lastIntValue;if(QQ(Y))return q.lastIntValue=Y,!0;return q.pos=Q,!1};function QQ(q){return y8(q,!0)||q===36||q===95||q===8204||q===8205}T.regexp_eatAtomEscape=function(q){if(this.regexp_eatBackReference(q)||this.regexp_eatCharacterClassEscape(q)||this.regexp_eatCharacterEscape(q)||q.switchN&&this.regexp_eatKGroupName(q))return!0;if(q.switchU){if(q.current()===99)q.raise("Invalid unicode escape");q.raise("Invalid escape")}return!1};T.regexp_eatBackReference=function(q){var Q=q.pos;if(this.regexp_eatDecimalEscape(q)){var Z=q.lastIntValue;if(q.switchU){if(Z>q.maxBackReference)q.maxBackReference=Z;return!0}if(Z<=q.numCapturingParens)return!0;q.pos=Q}return!1};T.regexp_eatKGroupName=function(q){if(q.eat(107)){if(this.regexp_eatGroupName(q))return q.backReferenceNames.push(q.lastStringValue),!0;q.raise("Invalid named reference")}return!1};T.regexp_eatCharacterEscape=function(q){return this.regexp_eatControlEscape(q)||this.regexp_eatCControlLetter(q)||this.regexp_eatZero(q)||this.regexp_eatHexEscapeSequence(q)||this.regexp_eatRegExpUnicodeEscapeSequence(q,!1)||!q.switchU&&this.regexp_eatLegacyOctalEscapeSequence(q)||this.regexp_eatIdentityEscape(q)};T.regexp_eatCControlLetter=function(q){var Q=q.pos;if(q.eat(99)){if(this.regexp_eatControlLetter(q))return!0;q.pos=Q}return!1};T.regexp_eatZero=function(q){if(q.current()===48&&!P0(q.lookahead()))return q.lastIntValue=0,q.advance(),!0;return!1};T.regexp_eatControlEscape=function(q){var Q=q.current();if(Q===116)return q.lastIntValue=9,q.advance(),!0;if(Q===110)return q.lastIntValue=10,q.advance(),!0;if(Q===118)return q.lastIntValue=11,q.advance(),!0;if(Q===102)return q.lastIntValue=12,q.advance(),!0;if(Q===114)return q.lastIntValue=13,q.advance(),!0;return!1};T.regexp_eatControlLetter=function(q){var Q=q.current();if(g2(Q))return q.lastIntValue=Q%32,q.advance(),!0;return!1};function g2(q){return q>=65&&q<=90||q>=97&&q<=122}T.regexp_eatRegExpUnicodeEscapeSequence=function(q,Q){if(Q===void 0)Q=!1;var Z=q.pos,Y=Q||q.switchU;if(q.eat(117)){if(this.regexp_eatFixedHexDigits(q,4)){var H=q.lastIntValue;if(Y&&H>=55296&&H<=56319){var V=q.pos;if(q.eat(92)&&q.eat(117)&&this.regexp_eatFixedHexDigits(q,4)){var K=q.lastIntValue;if(K>=56320&&K<=57343)return q.lastIntValue=(H-55296)*1024+(K-56320)+65536,!0}q.pos=V,q.lastIntValue=H}return!0}if(Y&&q.eat(123)&&this.regexp_eatHexDigits(q)&&q.eat(125)&&ZQ(q.lastIntValue))return!0;if(Y)q.raise("Invalid unicode escape");q.pos=Z}return!1};function ZQ(q){return q>=0&&q<=1114111}T.regexp_eatIdentityEscape=function(q){if(q.switchU){if(this.regexp_eatSyntaxCharacter(q))return!0;if(q.eat(47))return q.lastIntValue=47,!0;return!1}var Q=q.current();if(Q!==99&&(!q.switchN||Q!==107))return q.lastIntValue=Q,q.advance(),!0;return!1};T.regexp_eatDecimalEscape=function(q){q.lastIntValue=0;var Q=q.current();if(Q>=49&&Q<=57){do q.lastIntValue=10*q.lastIntValue+(Q-48),q.advance();while((Q=q.current())>=48&&Q<=57);return!0}return!1};var _2=0,a8=1,b8=2;T.regexp_eatCharacterClassEscape=function(q){var Q=q.current();if(YQ(Q))return q.lastIntValue=-1,q.advance(),a8;var Z=!1;if(q.switchU&&this.options.ecmaVersion>=9&&((Z=Q===80)||Q===112)){q.lastIntValue=-1,q.advance();var Y;if(q.eat(123)&&(Y=this.regexp_eatUnicodePropertyValueExpression(q))&&q.eat(125)){if(Z&&Y===b8)q.raise("Invalid property name");return Y}q.raise("Invalid property name")}return _2};function YQ(q){return q===100||q===68||q===115||q===83||q===119||q===87}T.regexp_eatUnicodePropertyValueExpression=function(q){var Q=q.pos;if(this.regexp_eatUnicodePropertyName(q)&&q.eat(61)){var Z=q.lastStringValue;if(this.regexp_eatUnicodePropertyValue(q)){var Y=q.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(q,Z,Y),a8}}if(q.pos=Q,this.regexp_eatLoneUnicodePropertyNameOrValue(q)){var H=q.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(q,H)}return _2};T.regexp_validateUnicodePropertyNameAndValue=function(q,Q,Z){if(!F1(q.unicodeProperties.nonBinary,Q))q.raise("Invalid property name");if(!q.unicodeProperties.nonBinary[Q].test(Z))q.raise("Invalid property value")};T.regexp_validateUnicodePropertyNameOrValue=function(q,Q){if(q.unicodeProperties.binary.test(Q))return a8;if(q.switchV&&q.unicodeProperties.binaryOfStrings.test(Q))return b8;q.raise("Invalid property name")};T.regexp_eatUnicodePropertyName=function(q){var Q=0;q.lastStringValue="";while(x2(Q=q.current()))q.lastStringValue+=s8(Q),q.advance();return q.lastStringValue!==""};function x2(q){return g2(q)||q===95}T.regexp_eatUnicodePropertyValue=function(q){var Q=0;q.lastStringValue="";while(HQ(Q=q.current()))q.lastStringValue+=s8(Q),q.advance();return q.lastStringValue!==""};function HQ(q){return x2(q)||P0(q)}T.regexp_eatLoneUnicodePropertyNameOrValue=function(q){return this.regexp_eatUnicodePropertyValue(q)};T.regexp_eatCharacterClass=function(q){if(q.eat(91)){var Q=q.eat(94),Z=this.regexp_classContents(q);if(!q.eat(93))q.raise("Unterminated character class");if(Q&&Z===b8)q.raise("Negated character class may contain strings");return!0}return!1};T.regexp_classContents=function(q){if(q.current()===93)return a8;if(q.switchV)return this.regexp_classSetExpression(q);return this.regexp_nonEmptyClassRanges(q),a8};T.regexp_nonEmptyClassRanges=function(q){while(this.regexp_eatClassAtom(q)){var Q=q.lastIntValue;if(q.eat(45)&&this.regexp_eatClassAtom(q)){var Z=q.lastIntValue;if(q.switchU&&(Q===-1||Z===-1))q.raise("Invalid character class");if(Q!==-1&&Z!==-1&&Q>Z)q.raise("Range out of order in character class")}}};T.regexp_eatClassAtom=function(q){var Q=q.pos;if(q.eat(92)){if(this.regexp_eatClassEscape(q))return!0;if(q.switchU){var Z=q.current();if(Z===99||l2(Z))q.raise("Invalid class escape");q.raise("Invalid escape")}q.pos=Q}var Y=q.current();if(Y!==93)return q.lastIntValue=Y,q.advance(),!0;return!1};T.regexp_eatClassEscape=function(q){var Q=q.pos;if(q.eat(98))return q.lastIntValue=8,!0;if(q.switchU&&q.eat(45))return q.lastIntValue=45,!0;if(!q.switchU&&q.eat(99)){if(this.regexp_eatClassControlLetter(q))return!0;q.pos=Q}return this.regexp_eatCharacterClassEscape(q)||this.regexp_eatCharacterEscape(q)};T.regexp_classSetExpression=function(q){var Q=a8,Z;if(this.regexp_eatClassSetRange(q));else if(Z=this.regexp_eatClassSetOperand(q)){if(Z===b8)Q=b8;var Y=q.pos;while(q.eatChars([38,38])){if(q.current()!==38&&(Z=this.regexp_eatClassSetOperand(q))){if(Z!==b8)Q=a8;continue}q.raise("Invalid character in character class")}if(Y!==q.pos)return Q;while(q.eatChars([45,45])){if(this.regexp_eatClassSetOperand(q))continue;q.raise("Invalid character in character class")}if(Y!==q.pos)return Q}else q.raise("Invalid character in character class");for(;;){if(this.regexp_eatClassSetRange(q))continue;if(Z=this.regexp_eatClassSetOperand(q),!Z)return Q;if(Z===b8)Q=b8}};T.regexp_eatClassSetRange=function(q){var Q=q.pos;if(this.regexp_eatClassSetCharacter(q)){var Z=q.lastIntValue;if(q.eat(45)&&this.regexp_eatClassSetCharacter(q)){var Y=q.lastIntValue;if(Z!==-1&&Y!==-1&&Z>Y)q.raise("Range out of order in character class");return!0}q.pos=Q}return!1};T.regexp_eatClassSetOperand=function(q){if(this.regexp_eatClassSetCharacter(q))return a8;return this.regexp_eatClassStringDisjunction(q)||this.regexp_eatNestedClass(q)};T.regexp_eatNestedClass=function(q){var Q=q.pos;if(q.eat(91)){var Z=q.eat(94),Y=this.regexp_classContents(q);if(q.eat(93)){if(Z&&Y===b8)q.raise("Negated character class may contain strings");return Y}q.pos=Q}if(q.eat(92)){var H=this.regexp_eatCharacterClassEscape(q);if(H)return H;q.pos=Q}return null};T.regexp_eatClassStringDisjunction=function(q){var Q=q.pos;if(q.eatChars([92,113])){if(q.eat(123)){var Z=this.regexp_classStringDisjunctionContents(q);if(q.eat(125))return Z}else q.raise("Invalid escape");q.pos=Q}return null};T.regexp_classStringDisjunctionContents=function(q){var Q=this.regexp_classString(q);while(q.eat(124))if(this.regexp_classString(q)===b8)Q=b8;return Q};T.regexp_classString=function(q){var Q=0;while(this.regexp_eatClassSetCharacter(q))Q++;return Q===1?a8:b8};T.regexp_eatClassSetCharacter=function(q){var Q=q.pos;if(q.eat(92)){if(this.regexp_eatCharacterEscape(q)||this.regexp_eatClassSetReservedPunctuator(q))return!0;if(q.eat(98))return q.lastIntValue=8,!0;return q.pos=Q,!1}var Z=q.current();if(Z<0||Z===q.lookahead()&&JQ(Z))return!1;if(KQ(Z))return!1;return q.advance(),q.lastIntValue=Z,!0};function JQ(q){return q===33||q>=35&&q<=38||q>=42&&q<=44||q===46||q>=58&&q<=64||q===94||q===96||q===126}function KQ(q){return q===40||q===41||q===45||q===47||q>=91&&q<=93||q>=123&&q<=125}T.regexp_eatClassSetReservedPunctuator=function(q){var Q=q.current();if(VQ(Q))return q.lastIntValue=Q,q.advance(),!0;return!1};function VQ(q){return q===33||q===35||q===37||q===38||q===44||q===45||q>=58&&q<=62||q===64||q===96||q===126}T.regexp_eatClassControlLetter=function(q){var Q=q.current();if(P0(Q)||Q===95)return q.lastIntValue=Q%32,q.advance(),!0;return!1};T.regexp_eatHexEscapeSequence=function(q){var Q=q.pos;if(q.eat(120)){if(this.regexp_eatFixedHexDigits(q,2))return!0;if(q.switchU)q.raise("Invalid escape");q.pos=Q}return!1};T.regexp_eatDecimalDigits=function(q){var Q=q.pos,Z=0;q.lastIntValue=0;while(P0(Z=q.current()))q.lastIntValue=10*q.lastIntValue+(Z-48),q.advance();return q.pos!==Q};function P0(q){return q>=48&&q<=57}T.regexp_eatHexDigits=function(q){var Q=q.pos,Z=0;q.lastIntValue=0;while(u2(Z=q.current()))q.lastIntValue=16*q.lastIntValue+m2(Z),q.advance();return q.pos!==Q};function u2(q){return q>=48&&q<=57||q>=65&&q<=70||q>=97&&q<=102}function m2(q){if(q>=65&&q<=70)return 10+(q-65);if(q>=97&&q<=102)return 10+(q-97);return q-48}T.regexp_eatLegacyOctalEscapeSequence=function(q){if(this.regexp_eatOctalDigit(q)){var Q=q.lastIntValue;if(this.regexp_eatOctalDigit(q)){var Z=q.lastIntValue;if(Q<=3&&this.regexp_eatOctalDigit(q))q.lastIntValue=Q*64+Z*8+q.lastIntValue;else q.lastIntValue=Q*8+Z}else q.lastIntValue=Q;return!0}return!1};T.regexp_eatOctalDigit=function(q){var Q=q.current();if(l2(Q))return q.lastIntValue=Q-48,q.advance(),!0;return q.lastIntValue=0,!1};function l2(q){return q>=48&&q<=55}T.regexp_eatFixedHexDigits=function(q,Q){var Z=q.pos;q.lastIntValue=0;for(var Y=0;Y<Q;++Y){var H=q.current();if(!u2(H))return q.pos=Z,!1;q.lastIntValue=16*q.lastIntValue+m2(H),q.advance()}return!0};var S0=function(Q){if(this.type=Q.type,this.value=Q.value,this.start=Q.start,this.end=Q.end,Q.options.locations)this.loc=new f1(Q,Q.startLoc,Q.endLoc);if(Q.options.ranges)this.range=[Q.start,Q.end]},i=Y8.prototype;i.next=function(q){if(!q&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new S0(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};i.getToken=function(){return this.next(),new S0(this)};if(typeof Symbol<"u")i[Symbol.iterator]=function(){var q=this;return{next:function(){var Q=q.getToken();return{done:Q.type===U.eof,value:Q}}}};i.nextToken=function(){var q=this.curContext();if(!q||!q.preserveSpace)this.skipSpace();if(this.start=this.pos,this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(U.eof);if(q.override)return q.override(this);else this.readToken(this.fullCharCodeAtPos())};i.readToken=function(q){if(A8(q,this.options.ecmaVersion>=6)||q===92)return this.readWord();return this.getTokenFromCode(q)};i.fullCharCodeAt=function(q){var Q=this.input.charCodeAt(q);if(Q<=55295||Q>=56320)return Q;var Z=this.input.charCodeAt(q+1);return Z<=56319||Z>=57344?Q:(Q<<10)+Z-56613888};i.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};i.skipBlockComment=function(){var q=this.options.onComment&&this.curPosition(),Q=this.pos,Z=this.input.indexOf("*/",this.pos+=2);if(Z===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=Z+2,this.options.locations)for(var Y=void 0,H=Q;(Y=O2(this.input,H,this.pos))>-1;)++this.curLine,H=this.lineStart=Y;if(this.options.onComment)this.options.onComment(!0,this.input.slice(Q+2,Z),Q,this.pos,q,this.curPosition())};i.skipLineComment=function(q){var Q=this.pos,Z=this.options.onComment&&this.curPosition(),Y=this.input.charCodeAt(this.pos+=q);while(this.pos<this.input.length&&!j1(Y))Y=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(Q+q,this.pos),Q,this.pos,Z,this.curPosition())};i.skipSpace=function(){q:while(this.pos<this.input.length){var q=this.input.charCodeAt(this.pos);switch(q){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10)++this.pos;case 10:case 8232:case 8233:if(++this.pos,this.options.locations)++this.curLine,this.lineStart=this.pos;break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break q}break;default:if(q>8&&q<14||q>=5760&&y9.test(String.fromCharCode(q)))++this.pos;else break q}}};i.finishToken=function(q,Q){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var Z=this.type;this.type=q,this.value=Q,this.updateContext(Z)};i.readToken_dot=function(){var q=this.input.charCodeAt(this.pos+1);if(q>=48&&q<=57)return this.readNumber(!0);var Q=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&q===46&&Q===46)return this.pos+=3,this.finishToken(U.ellipsis);else return++this.pos,this.finishToken(U.dot)};i.readToken_slash=function(){var q=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(q===61)return this.finishOp(U.assign,2);return this.finishOp(U.slash,1)};i.readToken_mult_modulo_exp=function(q){var Q=this.input.charCodeAt(this.pos+1),Z=1,Y=q===42?U.star:U.modulo;if(this.options.ecmaVersion>=7&&q===42&&Q===42)++Z,Y=U.starstar,Q=this.input.charCodeAt(this.pos+2);if(Q===61)return this.finishOp(U.assign,Z+1);return this.finishOp(Y,Z)};i.readToken_pipe_amp=function(q){var Q=this.input.charCodeAt(this.pos+1);if(Q===q){if(this.options.ecmaVersion>=12){var Z=this.input.charCodeAt(this.pos+2);if(Z===61)return this.finishOp(U.assign,3)}return this.finishOp(q===124?U.logicalOR:U.logicalAND,2)}if(Q===61)return this.finishOp(U.assign,2);return this.finishOp(q===124?U.bitwiseOR:U.bitwiseAND,1)};i.readToken_caret=function(){var q=this.input.charCodeAt(this.pos+1);if(q===61)return this.finishOp(U.assign,2);return this.finishOp(U.bitwiseXOR,1)};i.readToken_plus_min=function(q){var Q=this.input.charCodeAt(this.pos+1);if(Q===q){if(Q===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||F8.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(U.incDec,2)}if(Q===61)return this.finishOp(U.assign,2);return this.finishOp(U.plusMin,1)};i.readToken_lt_gt=function(q){var Q=this.input.charCodeAt(this.pos+1),Z=1;if(Q===q){if(Z=q===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+Z)===61)return this.finishOp(U.assign,Z+1);return this.finishOp(U.bitShift,Z)}if(Q===33&&q===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45)return this.skipLineComment(4),this.skipSpace(),this.nextToken();if(Q===61)Z=2;return this.finishOp(U.relational,Z)};i.readToken_eq_excl=function(q){var Q=this.input.charCodeAt(this.pos+1);if(Q===61)return this.finishOp(U.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(q===61&&Q===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(U.arrow);return this.finishOp(q===61?U.eq:U.prefix,1)};i.readToken_question=function(){var q=this.options.ecmaVersion;if(q>=11){var Q=this.input.charCodeAt(this.pos+1);if(Q===46){var Z=this.input.charCodeAt(this.pos+2);if(Z<48||Z>57)return this.finishOp(U.questionDot,2)}if(Q===63){if(q>=12){var Y=this.input.charCodeAt(this.pos+2);if(Y===61)return this.finishOp(U.assign,3)}return this.finishOp(U.coalesce,2)}}return this.finishOp(U.question,1)};i.readToken_numberSign=function(){var q=this.options.ecmaVersion,Q=35;if(q>=13){if(++this.pos,Q=this.fullCharCodeAtPos(),A8(Q,!0)||Q===92)return this.finishToken(U.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+s8(Q)+"'")};i.getTokenFromCode=function(q){switch(q){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(U.parenL);case 41:return++this.pos,this.finishToken(U.parenR);case 59:return++this.pos,this.finishToken(U.semi);case 44:return++this.pos,this.finishToken(U.comma);case 91:return++this.pos,this.finishToken(U.bracketL);case 93:return++this.pos,this.finishToken(U.bracketR);case 123:return++this.pos,this.finishToken(U.braceL);case 125:return++this.pos,this.finishToken(U.braceR);case 58:return++this.pos,this.finishToken(U.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(U.backQuote);case 48:var Q=this.input.charCodeAt(this.pos+1);if(Q===120||Q===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(Q===111||Q===79)return this.readRadixNumber(8);if(Q===98||Q===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(q);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(q);case 124:case 38:return this.readToken_pipe_amp(q);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(q);case 60:case 62:return this.readToken_lt_gt(q);case 61:case 33:return this.readToken_eq_excl(q);case 63:return this.readToken_question();case 126:return this.finishOp(U.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+s8(q)+"'")};i.finishOp=function(q,Q){var Z=this.input.slice(this.pos,this.pos+Q);return this.pos+=Q,this.finishToken(q,Z)};i.readRegexp=function(){var q,Q,Z=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(Z,"Unterminated regular expression");var Y=this.input.charAt(this.pos);if(F8.test(Y))this.raise(Z,"Unterminated regular expression");if(!q){if(Y==="[")Q=!0;else if(Y==="]"&&Q)Q=!1;else if(Y==="/"&&!Q)break;q=Y==="\\"}else q=!1;++this.pos}var H=this.input.slice(Z,this.pos);++this.pos;var V=this.pos,K=this.readWord1();if(this.containsEsc)this.unexpected(V);var W=this.regexpState||(this.regexpState=new l8(this));W.reset(Z,H,K),this.validateRegExpFlags(W),this.validateRegExpPattern(W);var G=null;try{G=new RegExp(H,K)}catch(R){}return this.finishToken(U.regexp,{pattern:H,flags:K,value:G})};i.readInt=function(q,Q,Z){var Y=this.options.ecmaVersion>=12&&Q===void 0,H=Z&&this.input.charCodeAt(this.pos)===48,V=this.pos,K=0,W=0;for(var G=0,R=Q==null?1/0:Q;G<R;++G,++this.pos){var O=this.input.charCodeAt(this.pos),$=void 0;if(Y&&O===95){if(H)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(W===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(G===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");W=O;continue}if(O>=97)$=O-97+10;else if(O>=65)$=O-65+10;else if(O>=48&&O<=57)$=O-48;else $=1/0;if($>=q)break;W=O,K=K*q+$}if(Y&&W===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===V||Q!=null&&this.pos-V!==Q)return null;return K};function XQ(q,Q){if(Q)return parseInt(q,8);return parseFloat(q.replace(/_/g,""))}function c2(q){if(typeof BigInt!=="function")return null;return BigInt(q.replace(/_/g,""))}i.readRadixNumber=function(q){var Q=this.pos;this.pos+=2;var Z=this.readInt(q);if(Z==null)this.raise(this.start+2,"Expected number in radix "+q);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)Z=c2(this.input.slice(Q,this.pos)),++this.pos;else if(A8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(U.num,Z)};i.readNumber=function(q){var Q=this.pos;if(!q&&this.readInt(10,void 0,!0)===null)this.raise(Q,"Invalid number");var Z=this.pos-Q>=2&&this.input.charCodeAt(Q)===48;if(Z&&this.strict)this.raise(Q,"Invalid number");var Y=this.input.charCodeAt(this.pos);if(!Z&&!q&&this.options.ecmaVersion>=11&&Y===110){var H=c2(this.input.slice(Q,this.pos));if(++this.pos,A8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(U.num,H)}if(Z&&/[89]/.test(this.input.slice(Q,this.pos)))Z=!1;if(Y===46&&!Z)++this.pos,this.readInt(10),Y=this.input.charCodeAt(this.pos);if((Y===69||Y===101)&&!Z){if(Y=this.input.charCodeAt(++this.pos),Y===43||Y===45)++this.pos;if(this.readInt(10)===null)this.raise(Q,"Invalid number")}if(A8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var V=XQ(this.input.slice(Q,this.pos),Z);return this.finishToken(U.num,V)};i.readCodePoint=function(){var q=this.input.charCodeAt(this.pos),Q;if(q===123){if(this.options.ecmaVersion<6)this.unexpected();var Z=++this.pos;if(Q=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,Q>1114111)this.invalidStringToken(Z,"Code point out of bounds")}else Q=this.readHexChar(4);return Q};i.readString=function(q){var Q="",Z=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var Y=this.input.charCodeAt(this.pos);if(Y===q)break;if(Y===92)Q+=this.input.slice(Z,this.pos),Q+=this.readEscapedChar(!1),Z=this.pos;else if(Y===8232||Y===8233){if(this.options.ecmaVersion<10)this.raise(this.start,"Unterminated string constant");if(++this.pos,this.options.locations)this.curLine++,this.lineStart=this.pos}else{if(j1(Y))this.raise(this.start,"Unterminated string constant");++this.pos}}return Q+=this.input.slice(Z,this.pos++),this.finishToken(U.string,Q)};var i2={};i.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(q){if(q===i2)this.readInvalidTemplateToken();else throw q}this.inTemplateElement=!1};i.invalidStringToken=function(q,Q){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw i2;else this.raise(q,Q)};i.readTmplToken=function(){var q="",Q=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var Z=this.input.charCodeAt(this.pos);if(Z===96||Z===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===U.template||this.type===U.invalidTemplate))if(Z===36)return this.pos+=2,this.finishToken(U.dollarBraceL);else return++this.pos,this.finishToken(U.backQuote);return q+=this.input.slice(Q,this.pos),this.finishToken(U.template,q)}if(Z===92)q+=this.input.slice(Q,this.pos),q+=this.readEscapedChar(!0),Q=this.pos;else if(j1(Z)){switch(q+=this.input.slice(Q,this.pos),++this.pos,Z){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:q+=`
31
+ `;break;default:q+=String.fromCharCode(Z);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;Q=this.pos}else++this.pos}};i.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(U.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":if(this.input[this.pos+1]===`
32
32
  `)++this.pos;case`
33
- `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};M8.readEscapedChar=function(q){var R=this.input.charCodeAt(++this.pos);switch(++this.pos,R){case 110:return`
34
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return u0(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:if(this.options.locations)this.lineStart=this.pos,++this.curLine;return"";case 56:case 57:if(this.strict)this.invalidStringToken(this.pos-1,"Invalid escape sequence");if(q){var P=this.pos-1;this.invalidStringToken(P,"Invalid escape sequence in template string")}default:if(R>=48&&R<=55){var C=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],O=parseInt(C,8);if(O>255)C=C.slice(0,-1),O=parseInt(C,8);if(this.pos+=C.length-1,R=this.input.charCodeAt(this.pos),(C!=="0"||R===56||R===57)&&(this.strict||q))this.invalidStringToken(this.pos-1-C.length,q?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(O)}if(O1(R)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(R)}};M8.readHexChar=function(q){var R=this.pos,P=this.readInt(16,q);if(P===null)this.invalidStringToken(R,"Bad character escape sequence");return P};M8.readWord1=function(){this.containsEsc=!1;var q="",R=!0,P=this.pos,C=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var O=this.fullCharCodeAtPos();if(K0(O,C))this.pos+=O<=65535?1:2;else if(O===92){this.containsEsc=!0,q+=this.input.slice(P,this.pos);var H=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var M=this.readCodePoint();if(!(R?a8:K0)(M,C))this.invalidStringToken(H,"Invalid Unicode escape");q+=u0(M),P=this.pos}else break;R=!1}return q+this.input.slice(P,this.pos)};M8.readWord=function(){var q=this.readWord1(),R=W.name;if(this.keywords.test(q))R=Jq[q];return this.finishToken(R,q)};var L4="8.17.0";j8.acorn={Parser:j8,version:L4,defaultOptions:Qq,Position:j1,SourceLocation:R9,getLineInfo:Y7,Node:C9,TokenType:V8,tokTypes:W,keywordTypes:Jq,TokContext:e8,tokContexts:A8,isIdentifierChar:K0,isIdentifierStart:a8,Token:zq,isNewLine:O1,lineBreak:x8,lineBreakG:p5,nonASCIIwhitespace:Z7};function c$(q,R){return j8.parse(q,R)}function i$(q,R,P){return j8.parseExpressionAt(q,R,P)}function r$(q,R){return j8.tokenizer(q,R)}var s8=!0,d$=new WeakMap;function a$(q){let R=q.Parser.acorn||q,P=d$.get(R);if(!P){let F=function(N){return N===B.name||N===B.string||N===B.num||w.includes(N)||D.includes(N)},Y=function(N){return N===B.name||w.includes(N)||D.includes(N)},K=function(N){return N===B.name||D.includes(N)},J=function(N){return N===f.abstract||N===f.declare||N===f.enum||N===f.module||N===f.namespace||N===f.interface||N===f.type},$=function(N){return N===f.keyof||N===f.readonly||N===f.unique},U=function(N){return N===B.invalidTemplate},{tokTypes:B,keywordTypes:T}=R,w=Object.values(T),f=M(),D=Object.values(f),y=H(),z=O(),S=new RegExp(`^(?:${Object.keys(f).join("|")})$`);y.jsxTagStart.updateContext=function(){this.context.push(z.tc_expr),this.context.push(z.tc_oTag),this.exprAllowed=!1},y.jsxTagEnd.updateContext=function(N){let d=this.context.pop();if(d===z.tc_oTag&&N===B.slash||d===z.tc_cTag)this.context.pop(),this.exprAllowed=this.curContext()===z.tc_expr;else this.exprAllowed=!0},P={tokTypes:{...f,...y},tokContexts:{...z},keywordsRegExp:S,tokenIsLiteralPropertyName:F,tokenIsKeywordOrIdentifier:Y,tokenIsIdentifier:K,tokenIsTSDeclarationStart:J,tokenIsTSTypeOperator:$,tokenIsTemplate:U}}return P;function C(F,Y={}){return new R.TokenType("name",Y)}function O(){return{tc_oTag:new R.TokContext("<tag",!1,!1),tc_cTag:new R.TokContext("</tag",!1,!1),tc_expr:new R.TokContext("<tag>...</tag>",!0,!0)}}function H(){return{at:new R.TokenType("@"),jsxName:new R.TokenType("jsxName"),jsxText:new R.TokenType("jsxText",{beforeExpr:!0}),jsxTagStart:new R.TokenType("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new R.TokenType("jsxTagEnd")}}function M(){return{assert:C("assert",{startsExpr:s8}),asserts:C("asserts",{startsExpr:s8}),global:C("global",{startsExpr:s8}),keyof:C("keyof",{startsExpr:s8}),readonly:C("readonly",{startsExpr:s8}),unique:C("unique",{startsExpr:s8}),abstract:C("abstract",{startsExpr:s8}),declare:C("declare",{startsExpr:s8}),enum:C("enum",{startsExpr:s8}),module:C("module",{startsExpr:s8}),namespace:C("namespace",{startsExpr:s8}),interface:C("interface",{startsExpr:s8}),type:C("type",{startsExpr:s8})}}}var s$=512,H9=1024,f1=1,Aq=2,o$=4,z7=8,n$=16,v4=64,T4=128,t$=256,e$=512,N4=1024,Sm=f1|Aq|z7|T4,vm=f1|0|z7|0,Tm=f1|0|o$|0,Nm=f1|0|n$|0,Dm=0|Aq|0|T4,um=0|Aq|0|0,qA=f1|Aq|z7|t$,Em=0|N4,km=0|v4,ym=f1|0|0|v4,bm=qA|e$,hm=0|N4,D4=4,u4=2,E4=1,gm=u4|E4,lm=u4|D4,_m=E4|D4,RA=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y,j4=new RegExp("(?=("+RA.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),M9=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function PA(q,R){let P=R.key.name,C=q[P],O="true";if(R.type==="MethodDefinition"&&(R.kind==="get"||R.kind==="set"))O=(R.static?"s":"i")+R.kind;if(C==="iget"&&O==="iset"||C==="iset"&&O==="iget"||C==="sget"&&O==="sset"||C==="sset"&&O==="sget")return q[P]="true",!1;else if(!C)return q[P]=O,!1;else return!0}function w4(q,R){let{computed:P,key:C}=q;return!P&&(C.type==="Identifier"&&C.name===R||C.type==="Literal"&&C.value===R)}var p={AbstractMethodHasImplementation:({methodName:q})=>`Method '${q}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:q})=>`Property '${q}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",CannotFindName:({name:q})=>`Cannot find name '${q}'.`,ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:q})=>`'declare' is not allowed in ${q}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:()=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:q})=>`Duplicate modifier: '${q}'.`,EmptyHeritageClauseType:({token:q})=>`'${q}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:({modifiers:q})=>`'${q[0]}' modifier cannot be used with '${q[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:q})=>`Index signatures cannot have an accessibility modifier ('${q}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:q})=>`'${q}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:q})=>`'${q}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:q})=>`'${q}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:q})=>`'${q[0]}' modifier must precede '${q[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:q})=>`Private elements cannot have an accessibility modifier ('${q}').`,PrivateMethodsHasAccessibility:({modifier:q})=>`Private methods cannot have an accessibility modifier ('${q}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:q})=>`Single type parameter ${q} should have a trailing comma. Example usage: <${q},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",GenericsEndWithComma:"Trailing comma is not allowed at the end of generics.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:q})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${q}.`,LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},$q={UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",TrailingDecorator:"Decorators must be attached to a class element.",SpreadElementDecorator:"Decorators can't be used with SpreadElement"};function CA(q,R,P){let{tokTypes:C}=P,{tokTypes:O}=R;return class extends q{takeDecorators(M){let F=this.decoratorStack[this.decoratorStack.length-1];if(F.length)M.decorators=F,this.resetStartLocationFromNode(M,F[0]),this.decoratorStack[this.decoratorStack.length-1]=[]}parseDecorators(M){let F=this.decoratorStack[this.decoratorStack.length-1];while(this.match(O.at)){let Y=this.parseDecorator();F.push(Y)}if(this.match(C._export)){if(!M)this.unexpected()}else if(!this.canHaveLeadingDecorator())this.raise(this.start,$q.UnexpectedLeadingDecorator)}parseDecorator(){let M=this.startNode();this.next(),this.decoratorStack.push([]);let F=this.start,Y=this.startLoc,K;if(this.match(C.parenL)){let J=this.start,$=this.startLoc;if(this.next(),K=this.parseExpression(),this.expect(C.parenR),this.options.preserveParens){let U=this.startNodeAt(J,$);U.expression=K,K=this.finishNode(U,"ParenthesizedExpression")}}else{K=this.parseIdent(!1);while(this.eat(C.dot)){let J=this.startNodeAt(F,Y);J.object=K,J.property=this.parseIdent(!0),J.computed=!1,K=this.finishNode(J,"MemberExpression")}}return M.expression=this.parseMaybeDecoratorArguments(K),this.decoratorStack.pop(),this.finishNode(M,"Decorator")}parseMaybeDecoratorArguments(M){if(this.eat(C.parenL)){let F=this.startNodeAtNode(M);return F.callee=M,F.arguments=this.parseExprList(C.parenR,!1),this.finishNode(F,"CallExpression")}return M}}}var OA={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},HA=/^[\da-fA-F]+$/,MA=/^\d+$/;function Q9(q){if(!q)return q;if(q.type==="JSXIdentifier")return q.name;if(q.type==="JSXNamespacedName")return q.namespace.name+":"+q.name.name;if(q.type==="JSXMemberExpression")return Q9(q.object)+"."+Q9(q.property)}function QA(q,R,P,C){let O=q.tokTypes,H=R.tokTypes,M=q.isNewLine,F=q.isIdentifierChar,Y=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},C||{});return class extends P{jsx_readToken(){let J="",$=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated JSX contents");let U=this.input.charCodeAt(this.pos);switch(U){case 60:case 123:if(this.pos===this.start){if(U===60&&this.exprAllowed)return++this.pos,this.finishToken(H.jsxTagStart);return this.getTokenFromCode(U)}return J+=this.input.slice($,this.pos),this.finishToken(H.jsxText,J);case 38:J+=this.input.slice($,this.pos),J+=this.jsx_readEntity(),$=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(U===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:if(M(U))J+=this.input.slice($,this.pos),J+=this.jsx_readNewLine(!0),$=this.pos;else++this.pos}}}jsx_readNewLine(J){let $=this.input.charCodeAt(this.pos),U;if(++this.pos,$===13&&this.input.charCodeAt(this.pos)===10)++this.pos,U=J?`
33
+ `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};i.readEscapedChar=function(q){var Q=this.input.charCodeAt(++this.pos);switch(++this.pos,Q){case 110:return`
34
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return s8(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:if(this.options.locations)this.lineStart=this.pos,++this.curLine;return"";case 56:case 57:if(this.strict)this.invalidStringToken(this.pos-1,"Invalid escape sequence");if(q){var Z=this.pos-1;this.invalidStringToken(Z,"Invalid escape sequence in template string")}default:if(Q>=48&&Q<=55){var Y=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],H=parseInt(Y,8);if(H>255)Y=Y.slice(0,-1),H=parseInt(Y,8);if(this.pos+=Y.length-1,Q=this.input.charCodeAt(this.pos),(Y!=="0"||Q===56||Q===57)&&(this.strict||q))this.invalidStringToken(this.pos-1-Y.length,q?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(H)}if(j1(Q)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(Q)}};i.readHexChar=function(q){var Q=this.pos,Z=this.readInt(16,q);if(Z===null)this.invalidStringToken(Q,"Bad character escape sequence");return Z};i.readWord1=function(){this.containsEsc=!1;var q="",Q=!0,Z=this.pos,Y=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var H=this.fullCharCodeAtPos();if(y8(H,Y))this.pos+=H<=65535?1:2;else if(H===92){this.containsEsc=!0,q+=this.input.slice(Z,this.pos);var V=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var K=this.readCodePoint();if(!(Q?A8:y8)(K,Y))this.invalidStringToken(V,"Invalid Unicode escape");q+=s8(K),Z=this.pos}else break;Q=!1}return q+this.input.slice(Z,this.pos)};i.readWord=function(){var q=this.readWord1(),Q=U.name;if(this.keywords.test(q))Q=C0[q];return this.finishToken(Q,q)};var d2="8.17.0";Y8.acorn={Parser:Y8,version:d2,defaultOptions:B0,Position:B1,SourceLocation:f1,getLineInfo:g9,Node:g1,TokenType:o,tokTypes:U,keywordTypes:C0,TokContext:T8,tokContexts:Q8,isIdentifierChar:y8,isIdentifierStart:A8,Token:S0,isNewLine:j1,lineBreak:F8,lineBreakG:j2,nonASCIIwhitespace:y9};function WQ(q,Q){return Y8.parse(q,Q)}function GQ(q,Q,Z){return Y8.parseExpressionAt(q,Q,Z)}function zQ(q,Q){return Y8.tokenizer(q,Q)}var w8=!0,jQ=new WeakMap;function OQ(q){let Q=q.Parser.acorn||q,Z=jQ.get(Q);if(!Z){let W=function(x){return x===F.name||x===F.string||x===F.num||w.includes(x)||v.includes(x)},G=function(x){return x===F.name||w.includes(x)||v.includes(x)},R=function(x){return x===F.name||v.includes(x)},O=function(x){return x===N.abstract||x===N.declare||x===N.enum||x===N.module||x===N.namespace||x===N.interface||x===N.type},$=function(x){return x===N.keyof||x===N.readonly||x===N.unique},M=function(x){return x===F.invalidTemplate},{tokTypes:F,keywordTypes:P}=Q,w=Object.values(P),N=K(),v=Object.values(N),g=V(),f=H(),a=new RegExp(`^(?:${Object.keys(N).join("|")})$`);g.jsxTagStart.updateContext=function(){this.context.push(f.tc_expr),this.context.push(f.tc_oTag),this.exprAllowed=!1},g.jsxTagEnd.updateContext=function(x){let Z8=this.context.pop();if(Z8===f.tc_oTag&&x===F.slash||Z8===f.tc_cTag)this.context.pop(),this.exprAllowed=this.curContext()===f.tc_expr;else this.exprAllowed=!0},Z={tokTypes:{...N,...g},tokContexts:{...f},keywordsRegExp:a,tokenIsLiteralPropertyName:W,tokenIsKeywordOrIdentifier:G,tokenIsIdentifier:R,tokenIsTSDeclarationStart:O,tokenIsTSTypeOperator:$,tokenIsTemplate:M}}return Z;function Y(W,G={}){return new Q.TokenType("name",G)}function H(){return{tc_oTag:new Q.TokContext("<tag",!1,!1),tc_cTag:new Q.TokContext("</tag",!1,!1),tc_expr:new Q.TokContext("<tag>...</tag>",!0,!0)}}function V(){return{at:new Q.TokenType("@"),jsxName:new Q.TokenType("jsxName"),jsxText:new Q.TokenType("jsxText",{beforeExpr:!0}),jsxTagStart:new Q.TokenType("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new Q.TokenType("jsxTagEnd")}}function K(){return{assert:Y("assert",{startsExpr:w8}),asserts:Y("asserts",{startsExpr:w8}),global:Y("global",{startsExpr:w8}),keyof:Y("keyof",{startsExpr:w8}),readonly:Y("readonly",{startsExpr:w8}),unique:Y("unique",{startsExpr:w8}),abstract:Y("abstract",{startsExpr:w8}),declare:Y("declare",{startsExpr:w8}),enum:Y("enum",{startsExpr:w8}),module:Y("module",{startsExpr:w8}),namespace:Y("namespace",{startsExpr:w8}),interface:Y("interface",{startsExpr:w8}),type:Y("type",{startsExpr:w8})}}}var UQ=512,x1=1024,$1=1,b0=2,RQ=4,d9=8,BQ=16,r2=64,t2=128,FQ=256,MQ=512,e2=1024,_K=$1|b0|d9|t2,xK=$1|0|d9|0,uK=$1|0|RQ|0,mK=$1|0|BQ|0,lK=0|b0|0|t2,cK=0|b0|0|0,$Q=$1|b0|d9|FQ,iK=0|e2,dK=0|r2,pK=$1|0|0|r2,oK=$Q|MQ,nK=0|e2,q5=4,Q5=2,Z5=1,sK=Q5|Z5,aK=Q5|q5,rK=Z5|q5,LQ=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y,p2=new RegExp("(?=("+LQ.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),u1=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function CQ(q,Q){let Z=Q.key.name,Y=q[Z],H="true";if(Q.type==="MethodDefinition"&&(Q.kind==="get"||Q.kind==="set"))H=(Q.static?"s":"i")+Q.kind;if(Y==="iget"&&H==="iset"||Y==="iset"&&H==="iget"||Y==="sget"&&H==="sset"||Y==="sset"&&H==="sget")return q[Z]="true",!1;else if(!Y)return q[Z]=H,!1;else return!0}function o2(q,Q){let{computed:Z,key:Y}=q;return!Z&&(Y.type==="Identifier"&&Y.name===Q||Y.type==="Literal"&&Y.value===Q)}var E={AbstractMethodHasImplementation:({methodName:q})=>`Method '${q}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:q})=>`Property '${q}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",CannotFindName:({name:q})=>`Cannot find name '${q}'.`,ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:q})=>`'declare' is not allowed in ${q}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:()=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:q})=>`Duplicate modifier: '${q}'.`,EmptyHeritageClauseType:({token:q})=>`'${q}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:({modifiers:q})=>`'${q[0]}' modifier cannot be used with '${q[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:q})=>`Index signatures cannot have an accessibility modifier ('${q}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:q})=>`'${q}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:q})=>`'${q}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:q})=>`'${q}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:q})=>`'${q[0]}' modifier must precede '${q[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:q})=>`Private elements cannot have an accessibility modifier ('${q}').`,PrivateMethodsHasAccessibility:({modifier:q})=>`Private methods cannot have an accessibility modifier ('${q}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:q})=>`Single type parameter ${q} should have a trailing comma. Example usage: <${q},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",GenericsEndWithComma:"Trailing comma is not allowed at the end of generics.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:q})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${q}.`,LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},T0={UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",TrailingDecorator:"Decorators must be attached to a class element.",SpreadElementDecorator:"Decorators can't be used with SpreadElement"};function AQ(q,Q,Z){let{tokTypes:Y}=Z,{tokTypes:H}=Q;return class extends q{takeDecorators(K){let W=this.decoratorStack[this.decoratorStack.length-1];if(W.length)K.decorators=W,this.resetStartLocationFromNode(K,W[0]),this.decoratorStack[this.decoratorStack.length-1]=[]}parseDecorators(K){let W=this.decoratorStack[this.decoratorStack.length-1];while(this.match(H.at)){let G=this.parseDecorator();W.push(G)}if(this.match(Y._export)){if(!K)this.unexpected()}else if(!this.canHaveLeadingDecorator())this.raise(this.start,T0.UnexpectedLeadingDecorator)}parseDecorator(){let K=this.startNode();this.next(),this.decoratorStack.push([]);let W=this.start,G=this.startLoc,R;if(this.match(Y.parenL)){let O=this.start,$=this.startLoc;if(this.next(),R=this.parseExpression(),this.expect(Y.parenR),this.options.preserveParens){let M=this.startNodeAt(O,$);M.expression=R,R=this.finishNode(M,"ParenthesizedExpression")}}else{R=this.parseIdent(!1);while(this.eat(Y.dot)){let O=this.startNodeAt(W,G);O.object=R,O.property=this.parseIdent(!0),O.computed=!1,R=this.finishNode(O,"MemberExpression")}}return K.expression=this.parseMaybeDecoratorArguments(R),this.decoratorStack.pop(),this.finishNode(K,"Decorator")}parseMaybeDecoratorArguments(K){if(this.eat(Y.parenL)){let W=this.startNodeAtNode(K);return W.callee=K,W.arguments=this.parseExprList(Y.parenR,!1),this.finishNode(W,"CallExpression")}return K}}}var wQ={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},IQ=/^[\da-fA-F]+$/,PQ=/^\d+$/;function m1(q){if(!q)return q;if(q.type==="JSXIdentifier")return q.name;if(q.type==="JSXNamespacedName")return q.namespace.name+":"+q.name.name;if(q.type==="JSXMemberExpression")return m1(q.object)+"."+m1(q.property)}function SQ(q,Q,Z,Y){let H=q.tokTypes,V=Q.tokTypes,K=q.isNewLine,W=q.isIdentifierChar,G=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},Y||{});return class extends Z{jsx_readToken(){let O="",$=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated JSX contents");let M=this.input.charCodeAt(this.pos);switch(M){case 60:case 123:if(this.pos===this.start){if(M===60&&this.exprAllowed)return++this.pos,this.finishToken(V.jsxTagStart);return this.getTokenFromCode(M)}return O+=this.input.slice($,this.pos),this.finishToken(V.jsxText,O);case 38:O+=this.input.slice($,this.pos),O+=this.jsx_readEntity(),$=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(M===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:if(K(M))O+=this.input.slice($,this.pos),O+=this.jsx_readNewLine(!0),$=this.pos;else++this.pos}}}jsx_readNewLine(O){let $=this.input.charCodeAt(this.pos),M;if(++this.pos,$===13&&this.input.charCodeAt(this.pos)===10)++this.pos,M=O?`
35
35
  `:`\r
36
- `;else U=String.fromCharCode($);if(this.options.locations)++this.curLine,this.lineStart=this.pos;return U}jsx_readString(J){let $="",U=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");let B=this.input.charCodeAt(this.pos);if(B===J)break;if(B===38)$+=this.input.slice(U,this.pos),$+=this.jsx_readEntity(),U=this.pos;else if(M(B))$+=this.input.slice(U,this.pos),$+=this.jsx_readNewLine(!1),U=this.pos;else++this.pos}return $+=this.input.slice(U,this.pos++),this.finishToken(O.string,$)}jsx_readEntity(){let J="",$=0,U,B=this.input[this.pos];if(B!=="&")this.raise(this.pos,"Entity must start with an ampersand");let T=++this.pos;while(this.pos<this.input.length&&$++<10){if(B=this.input[this.pos++],B===";"){if(J[0]==="#"){if(J[1]==="x"){if(J=J.substr(2),HA.test(J))U=String.fromCharCode(parseInt(J,16))}else if(J=J.substr(1),MA.test(J))U=String.fromCharCode(parseInt(J,10))}else U=OA[J];break}J+=B}if(!U)return this.pos=T,"&";return U}jsx_readWord(){let J,$=this.pos;do J=this.input.charCodeAt(++this.pos);while(F(J)||J===45);return this.finishToken(H.jsxName,this.input.slice($,this.pos))}jsx_parseIdentifier(){let J=this.startNode();if(this.type===H.jsxName)J.name=this.value;else if(this.type.keyword)J.name=this.type.keyword;else this.unexpected();return this.next(),this.finishNode(J,"JSXIdentifier")}jsx_parseNamespacedName(){let J=this.start,$=this.startLoc,U=this.jsx_parseIdentifier();if(!Y.allowNamespaces||!this.eat(O.colon))return U;var B=this.startNodeAt(J,$);return B.namespace=U,B.name=this.jsx_parseIdentifier(),this.finishNode(B,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===H.jsxTagEnd)return"";let J=this.start,$=this.startLoc,U=this.jsx_parseNamespacedName();if(this.type===O.dot&&U.type==="JSXNamespacedName"&&!Y.allowNamespacedObjects)this.unexpected();while(this.eat(O.dot)){let B=this.startNodeAt(J,$);B.object=U,B.property=this.jsx_parseIdentifier(),U=this.finishNode(B,"JSXMemberExpression")}return U}jsx_parseAttributeValue(){switch(this.type){case O.braceL:let J=this.jsx_parseExpressionContainer();if(J.expression.type==="JSXEmptyExpression")this.raise(J.start,"JSX attributes must only be assigned a non-empty expression");return J;case H.jsxTagStart:case O.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let J=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(J,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let J=this.startNode();return this.next(),J.expression=this.type===O.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(O.braceR),this.finishNode(J,"JSXExpressionContainer")}jsx_parseAttribute(){let J=this.startNode();if(this.eat(O.braceL))return this.expect(O.ellipsis),J.argument=this.parseMaybeAssign(),this.expect(O.braceR),this.finishNode(J,"JSXSpreadAttribute");return J.name=this.jsx_parseNamespacedName(),J.value=this.eat(O.eq)?this.jsx_parseAttributeValue():null,this.finishNode(J,"JSXAttribute")}jsx_parseOpeningElementAt(J,$){let U=this.startNodeAt(J,$);U.attributes=[];let B=this.jsx_parseElementName();if(B)U.name=B;while(this.type!==O.slash&&this.type!==H.jsxTagEnd)U.attributes.push(this.jsx_parseAttribute());return U.selfClosing=this.eat(O.slash),this.expect(H.jsxTagEnd),this.finishNode(U,B?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(J,$){let U=this.startNodeAt(J,$),B=this.jsx_parseElementName();if(B)U.name=B;return this.expect(H.jsxTagEnd),this.finishNode(U,B?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(J,$){let U=this.startNodeAt(J,$),B=[],T=this.jsx_parseOpeningElementAt(J,$),w=null;if(!T.selfClosing){q:for(;;)switch(this.type){case H.jsxTagStart:if(J=this.start,$=this.startLoc,this.next(),this.eat(O.slash)){w=this.jsx_parseClosingElementAt(J,$);break q}B.push(this.jsx_parseElementAt(J,$));break;case H.jsxText:B.push(this.parseExprAtom());break;case O.braceL:B.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}if(Q9(w.name)!==Q9(T.name))this.raise(w.start,"Expected corresponding JSX closing tag for <"+Q9(T.name)+">")}let f=T.name?"Element":"Fragment";if(U["opening"+f]=T,U["closing"+f]=w,U.children=B,this.type===O.relational&&this.value==="<")this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag");return this.finishNode(U,"JSX"+f)}jsx_parseText(){let J=this.parseLiteral(this.value);return J.type="JSXText",J}jsx_parseElement(){let J=this.start,$=this.startLoc;return this.next(),this.jsx_parseElementAt(J,$)}}}function ZA(q,R,P){let{tokTypes:C}=R,{tokTypes:O}=P;return class extends q{parseMaybeImportAttributes(M){if(this.type===O._with||this.type===C.assert){this.next();let F=this.parseImportAttributes();if(F)M.attributes=F}}parseImportAttributes(){this.expect(O.braceL);let M=this.parseWithEntries();return this.expect(O.braceR),M}parseWithEntries(){let M=[],F=new Set;do{if(this.type===O.braceR)break;let Y=this.startNode(),K;if(this.type===O.string)K=this.parseLiteral(this.value);else K=this.parseIdent(!0);if(this.next(),Y.key=K,F.has(Y.key.name))this.raise(this.pos,"Duplicated key in attributes");if(F.add(Y.key.name),this.type!==O.string)this.raise(this.pos,"Only string is supported as an attribute value");Y.value=this.parseLiteral(this.value),M.push(this.finishNode(Y,"ImportAttribute"))}while(this.eat(O.comma));return M}}}var X7=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function I4(q){if(!q)throw Error("Assert fail")}function YA(q){return q==="accessor"}function FA(q){return q==="in"||q==="out"}var Uq=1,f4=2,VA=4,z8={SCOPE_TOP:1,SCOPE_FUNCTION:2,SCOPE_ASYNC:4,SCOPE_GENERATOR:8,SCOPE_ARROW:16,SCOPE_SIMPLE_CATCH:32,SCOPE_SUPER:64,SCOPE_DIRECT_SUPER:128,SCOPE_CLASS_STATIC_BLOCK:256,SCOPE_VAR:256,BIND_NONE:0,BIND_VAR:1,BIND_LEXICAL:2,BIND_FUNCTION:3,BIND_SIMPLE_CATCH:4,BIND_OUTSIDE:5,BIND_TS_TYPE:6,BIND_TS_INTERFACE:7,BIND_TS_NAMESPACE:1032,BIND_FLAGS_TS_EXPORT_ONLY:1024,BIND_FLAGS_TS_IMPORT:4096,BIND_FLAGS_TS_ENUM:256,BIND_FLAGS_TS_CONST_ENUM:512,BIND_FLAGS_CLASS:128};function G7(q,R){return z8.SCOPE_FUNCTION|(q?z8.SCOPE_ASYNC:0)|(R?z8.SCOPE_GENERATOR:0)}function JA(q){if(q.type!=="MemberExpression")return!1;let{computed:R,property:P}=q;if(R&&(P.type!=="TemplateLiteral"||P.expressions.length>0))return!1;return k4(q.object)}function k4(q){if(q.type==="Identifier")return!0;if(q.type!=="MemberExpression")return!1;if(q.computed)return!1;return k4(q.object)}function S4(q){return q==="private"||q==="public"||q==="protected"}function KA(q){return Boolean(q.startsExpr)}function WA(q){if(q==null)throw Error(`Unexpected ${q} value.`);return q}function XA(q){switch(q){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function y4(q){let{dts:R=!1}=q||{},P=!!q?.jsx;return function(C){let O=C.acorn||Bq,H=a$(O),M=O.tokTypes,F=O.keywordTypes,Y=O.isIdentifierStart,K=O.lineBreak,J=O.isNewLine,$=O.tokContexts,U=O.isIdentifierChar,{tokTypes:B,tokContexts:T,keywordsRegExp:w,tokenIsLiteralPropertyName:f,tokenIsTemplate:D,tokenIsTSDeclarationStart:y,tokenIsIdentifier:z,tokenIsKeywordOrIdentifier:S,tokenIsTSTypeOperator:N}=H;function d(Q,Z,V=Q.length){for(let X=Z;X<V;X++){let A=Q.charCodeAt(X);if(J(A))return X<V-1&&A===13&&Q.charCodeAt(X+1)===10?X+2:X+1}return-1}if(C=CA(C,H,O),q?.jsx)C=QA(O,H,C,typeof q.jsx==="boolean"?{}:q.jsx);C=ZA(C,H,O);class k extends C{constructor(Q,Z,V){super(Q,Z,V);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=(X)=>{this.tsParseModifiers({modified:X,allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:p.InvalidModifierOnTypeParameterPositions})},this.ecmaVersion=this.options.ecmaVersion}static get acornTypeScript(){return H}get acornTypeScript(){return H}getTokenFromCodeInType(Q){if(Q===62)return this.finishOp(M.relational,1);if(Q===60)return this.finishOp(M.relational,1);return super.getTokenFromCode(Q)}readToken(Q){if(!this.inType){let Z=this.curContext();if(Z===T.tc_expr)return this.jsx_readToken();if(Z===T.tc_oTag||Z===T.tc_cTag){if(Y(Q))return this.jsx_readWord();if(Q==62)return++this.pos,this.finishToken(B.jsxTagEnd);if((Q===34||Q===39)&&Z==T.tc_oTag)return this.jsx_readString(Q)}if(Q===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)if(++this.pos,q?.jsx)return this.finishToken(B.jsxTagStart);else return this.finishToken(M.relational,"<")}return super.readToken(Q)}getTokenFromCode(Q){if(this.inType)return this.getTokenFromCodeInType(Q);if(Q===64)return++this.pos,this.finishToken(B.at);return super.getTokenFromCode(Q)}isAbstractClass(){return this.ts_isContextual(B.abstract)&&this.lookahead().type===M._class}finishNode(Q,Z){if(Q.type!==""&&Q.end!==0)return Q;return super.finishNode(Q,Z)}tryParse(Q,Z=this.cloneCurLookaheadState()){let V={node:null};try{return{node:Q((A=null)=>{throw V.node=A,V}),error:null,thrown:!1,aborted:!1,failState:null}}catch(X){let A=this.getCurLookaheadState();if(this.setLookaheadState(Z),X instanceof SyntaxError)return{node:null,error:X,thrown:!0,aborted:!1,failState:A};if(X===V)return{node:V.node,error:null,thrown:!1,aborted:!0,failState:A};throw X}}setOptionalParametersError(Q,Z){Q.optionalParametersLoc=Z?.loc??this.startLoc}reScan_lt_gt(){if(this.type===M.relational)this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos())}reScan_lt(){let{type:Q}=this;if(Q===M.bitShift)return this.pos-=2,this.finishOp(M.relational,1),M.relational;return Q}resetEndLocation(Q,Z=this.lastTokEnd,V=this.lastTokEndLoc){if(Q.end=Z,Q.loc.end=V,this.options.ranges)Q.range[1]=Z}startNodeAtNode(Q){return super.startNodeAt(Q.start,Q.loc.start)}nextTokenStart(){return this.nextTokenStartSince(this.pos)}tsHasSomeModifiers(Q,Z){return Z.some((V)=>{if(S4(V))return Q.accessibility===V;return!!Q[V]})}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&this.lookaheadCharCode()===123}tsCheckForInvalidTypeCasts(Q){Q.forEach((Z)=>{if(Z?.type==="TSTypeCastExpression")this.raise(Z.typeAnnotation.start,p.UnexpectedTypeAnnotation)})}atPossibleAsyncArrow(Q){return Q.type==="Identifier"&&Q.name==="async"&&this.lastTokEnd===Q.end&&!this.canInsertSemicolon()&&Q.end-Q.start===5&&Q.start===this.potentialArrowAt}tsIsIdentifier(){return z(this.type)}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(M.colon)?this.tsParseTypeOrTypePredicateAnnotation(M.colon):void 0}tsTryParseGenericAsyncArrowFunction(Q,Z,V){if(!this.tsMatchLeftRelational())return;let X=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let A=this.tsTryParseAndCatch(()=>{let L=this.startNodeAt(Q,Z);return L.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(L),L.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(M.arrow),L});if(this.maybeInArrowParameters=X,!A)return;return super.parseArrowExpression(A,null,!0,V)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==M.relational)return;return this.tsParseTypeArguments()}tsInNoContext(Q){let Z=this.context;this.context=[Z[0]];try{return Q()}finally{this.context=Z}}tsTryParseTypeAnnotation(){return this.match(M.colon)?this.tsParseTypeAnnotation():void 0}isUnparsedContextual(Q,Z){let V=Q+Z.length;if(this.input.slice(Q,V)===Z){let X=this.input.charCodeAt(V);return!(U(X)||(X&64512)===55296)}return!1}isAbstractConstructorSignature(){return this.ts_isContextual(B.abstract)&&this.lookahead().type===M._new}nextTokenStartSince(Q){return X7.lastIndex=Q,X7.test(this.input)?X7.lastIndex:Q}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}compareLookaheadState(Q,Z){for(let V of Object.keys(Q))if(Q[V]!==Z[V])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(Q){this.pos=Q.pos,this.value=Q.value,this.endLoc=Q.endLoc,this.lastTokEnd=Q.lastTokEnd,this.lastTokStart=Q.lastTokStart,this.lastTokStartLoc=Q.lastTokStartLoc,this.type=Q.type,this.start=Q.start,this.end=Q.end,this.context=Q.context,this.startLoc=Q.startLoc,this.lastTokEndLoc=Q.lastTokEndLoc,this.curLine=Q.curLine,this.lineStart=Q.lineStart,this.curPosition=Q.curPosition,this.containsEsc=Q.containsEsc}tsLookAhead(Q){let Z=this.getCurLookaheadState(),V=Q();return this.setLookaheadState(Z),V}lookahead(Q){let Z=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,Q!==void 0)for(let X=0;X<Q;X++)this.nextToken();else this.nextToken();this.isLookahead=!1;let V=this.getCurLookaheadState();return this.setLookaheadState(Z),V}readWord(){let Q=this.readWord1(),Z=M.name;if(this.keywords.test(Q))Z=F[Q];else if(new RegExp(w).test(Q))Z=B[Q];return this.finishToken(Z,Q)}skipBlockComment(){let Q;if(!this.isLookahead)Q=this.options.onComment&&this.curPosition();let Z=this.pos,V=this.input.indexOf("*/",this.pos+=2);if(V===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=V+2,this.options.locations)for(let X,A=Z;(X=d(this.input,A,this.pos))>-1;)++this.curLine,A=this.lineStart=X;if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!0,this.input.slice(Z+2,V),Z,this.pos,Q,this.curPosition())}skipLineComment(Q){let Z=this.pos,V;if(!this.isLookahead)V=this.options.onComment&&this.curPosition();let X=this.input.charCodeAt(this.pos+=Q);while(this.pos<this.input.length&&!J(X))X=this.input.charCodeAt(++this.pos);if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!1,this.input.slice(Z+Q,this.pos),Z,this.pos,V,this.curPosition())}finishToken(Q,Z){if(this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();let V=this.type;if(this.type=Q,this.value=Z,!this.isLookahead)this.updateContext(V)}resetStartLocation(Q,Z,V){if(Q.start=Z,Q.loc.start=V,this.options.ranges)Q.range[0]=Z}isLineTerminator(){return this.eat(M.semi)||super.canInsertSemicolon()}hasFollowingLineBreak(){return j4.lastIndex=this.end,j4.test(this.input)}addExtra(Q,Z,V,X=!0){if(!Q)return;let A=Q.extra=Q.extra||{};if(X)A[Z]=V;else Object.defineProperty(A,Z,{enumerable:X,value:V})}isLiteralPropertyName(){return f(this.type)}hasPrecedingLineBreak(){return K.test(this.input.slice(this.lastTokEnd,this.start))}createIdentifier(Q,Z){return Q.name=Z,this.finishNode(Q,"Identifier")}resetStartLocationFromNode(Q,Z){this.resetStartLocation(Q,Z.start,Z.loc.start)}isThisParam(Q){return Q.type==="Identifier"&&Q.name==="this"}isLookaheadContextual(Q){let Z=this.nextTokenStart();return this.isUnparsedContextual(Z,Q)}ts_type_isContextual(Q,Z){return Q===Z&&!this.containsEsc}ts_isContextual(Q){return this.type===Q&&!this.containsEsc}ts_isContextualWithState(Q,Z){return Q.type===Z&&!Q.containsEsc}isContextualWithState(Q,Z){return Z.type===M.name&&Z.value===Q&&!Z.containsEsc}tsIsStartOfMappedType(){if(this.next(),this.eat(M.plusMin))return this.ts_isContextual(B.readonly);if(this.ts_isContextual(B.readonly))this.next();if(!this.match(M.bracketL))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(M._in)}tsInDisallowConditionalTypesContext(Q){let Z=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return Q()}finally{this.inDisallowConditionalTypesContext=Z}}tsTryParseType(){return this.tsEatThenParseType(M.colon)}match(Q){return this.type===Q}matchJsx(Q){return this.type===H.tokTypes[Q]}ts_eatWithState(Q,Z,V){let X=V.type;if(Q===X){for(let A=0;A<Z;A++)this.next();return!0}else return!1}ts_eatContextualWithState(Q,Z,V){if(w.test(Q)){if(this.ts_isContextualWithState(V,B[Q])){for(let X=0;X<Z;X++)this.next();return!0}return!1}else{if(!this.isContextualWithState(Q,V))return!1;for(let X=0;X<Z;X++)this.next();return!0}}canHaveLeadingDecorator(){return this.match(M._class)||this.isAbstractClass()}eatContextual(Q){if(w.test(Q)){if(this.ts_isContextual(B[Q]))return this.next(),!0;return!1}else return super.eatContextual(Q)}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookaheadCharCode()===40}tsParseExternalModuleReference(){let Q=this.startNode();if(this.expectContextual("require"),this.expect(M.parenL),!this.match(M.string))this.unexpected();return Q.expression=this.parseExprAtom(),this.expect(M.parenR),this.finishNode(Q,"TSExternalModuleReference")}tsParseEntityName(Q=!0){let Z=this.parseIdent(Q);while(this.eat(M.dot)){let V=this.startNodeAtNode(Z);V.left=Z,V.right=this.parseIdent(Q),Z=this.finishNode(V,"TSQualifiedName")}return Z}tsParseEnumMember(){let Q=this.startNode();if(Q.id=this.match(M.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(M.eq))Q.initializer=this.parseMaybeAssign();return this.finishNode(Q,"TSEnumMember")}tsParseEnumDeclaration(Q,Z={}){if(Z.const)Q.const=!0;if(Z.declare)Q.declare=!0;return this.expectContextual("enum"),Q.id=this.parseIdent(),this.checkLValSimple(Q.id),this.expect(M.braceL),Q.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(M.braceR),this.finishNode(Q,"TSEnumDeclaration")}tsParseModuleBlock(){let Q=this.startNode();this.enterScope(s$),this.expect(M.braceL),Q.body=[];while(this.type!==M.braceR){let Z=this.parseStatement(null,!0);Q.body.push(Z)}return this.next(),super.exitScope(),this.finishNode(Q,"TSModuleBlock")}tsParseAmbientExternalModuleDeclaration(Q){if(this.ts_isContextual(B.global))Q.global=!0,Q.id=this.parseIdent();else if(this.match(M.string))Q.id=this.parseLiteral(this.value);else this.unexpected();if(this.match(M.braceL))this.enterScope(H9),Q.body=this.tsParseModuleBlock(),super.exitScope();else super.semicolon();return this.finishNode(Q,"TSModuleDeclaration")}tsTryParseDeclare(Q){if(this.isLineTerminator())return;let Z=this.type,V;if(this.isContextual("let"))Z=M._var,V="let";return this.tsInAmbientContext(()=>{if(Z===M._function)return Q.declare=!0,this.parseFunctionStatement(Q,!1,!0);if(Z===M._class)return Q.declare=!0,this.parseClass(Q,!0);if(Z===B.enum)return this.tsParseEnumDeclaration(Q,{declare:!0});if(Z===B.global)return this.tsParseAmbientExternalModuleDeclaration(Q);if(Z===M._const||Z===M._var){if(!this.match(M._const)||!this.isLookaheadContextual("enum"))return Q.declare=!0,this.parseVarStatement(Q,V||this.value,!0);return this.expect(M._const),this.tsParseEnumDeclaration(Q,{const:!0,declare:!0})}if(Z===B.interface){let X=this.tsParseInterfaceDeclaration(Q,{declare:!0});if(X)return X}if(z(Z))return this.tsParseDeclaration(Q,this.value,!0)})}tsIsListTerminator(Q){switch(Q){case"EnumMembers":case"TypeMembers":return this.match(M.braceR);case"HeritageClauseElement":return this.match(M.braceL);case"TupleElementTypes":return this.match(M.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}}tsParseDelimitedListWorker(Q,Z,V,X){let A=[],L=-1;for(;;){if(this.tsIsListTerminator(Q))break;L=-1;let I=Z();if(I==null)return;if(A.push(I),this.eat(M.comma)){L=this.lastTokStart;continue}if(this.tsIsListTerminator(Q))break;if(V)this.expect(M.comma);return}if(X)X.value=L;return A}tsParseDelimitedList(Q,Z,V){return WA(this.tsParseDelimitedListWorker(Q,Z,!0,V))}tsParseBracketedList(Q,Z,V,X,A){if(!X)if(V)this.expect(M.bracketL);else this.expect(M.relational);let L=this.tsParseDelimitedList(Q,Z,A);if(V)this.expect(M.bracketR);else this.expect(M.relational);return L}tsParseTypeParameterName(){return this.parseIdent().name}tsEatThenParseType(Q){return!this.match(Q)?void 0:this.tsNextThenParseType()}tsExpectThenParseType(Q){return this.tsDoThenParseType(()=>this.expect(Q))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(Q){return this.tsInType(()=>{return Q(),this.tsParseType()})}tsSkipParameterStart(){if(z(this.type)||this.match(M._this))return this.next(),!0;if(this.match(M.braceL))try{return this.parseObj(!0),!0}catch{return!1}if(this.match(M.bracketL)){this.next();try{return this.parseBindingList(M.bracketR,!0,!0),!0}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(M.parenR)||this.match(M.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(M.colon)||this.match(M.comma)||this.match(M.question)||this.match(M.eq))return!0;if(this.match(M.parenR)){if(this.next(),this.match(M.arrow))return!0}}return!1}tsIsStartOfFunctionType(){if(this.tsMatchLeftRelational())return!0;return this.match(M.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsInAllowConditionalTypesContext(Q){let Z=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return Q()}finally{this.inDisallowConditionalTypesContext=Z}}tsParseBindingListForSignature(){return super.parseBindingList(M.parenR,!0,!0).map((Q)=>{if(Q.type!=="Identifier"&&Q.type!=="RestElement"&&Q.type!=="ObjectPattern"&&Q.type!=="ArrayPattern")this.raise(Q.start,p.UnsupportedSignatureParameterKind({type:Q.type}));return Q})}tsParseTypePredicateAsserts(){if(this.type!==B.asserts)return!1;let Q=this.containsEsc;if(this.next(),!z(this.type)&&!this.match(M._this))return!1;if(Q)this.raise(this.lastTokStart,"Escape sequence in keyword asserts");return!0}tsParseThisTypeNode(){let Q=this.startNode();return this.next(),this.finishNode(Q,"TSThisType")}tsParseTypeAnnotation(Q=!0,Z=this.startNode()){return this.tsInType(()=>{if(Q)this.expect(M.colon);Z.typeAnnotation=this.tsParseType()}),this.finishNode(Z,"TSTypeAnnotation")}tsParseThisTypePredicate(Q){this.next();let Z=this.startNodeAtNode(Q);return Z.parameterName=Q,Z.typeAnnotation=this.tsParseTypeAnnotation(!1),Z.asserts=!1,this.finishNode(Z,"TSTypePredicate")}tsParseThisTypeOrThisTypePredicate(){let Q=this.tsParseThisTypeNode();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(Q);else return Q}tsParseTypePredicatePrefix(){let Q=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),Q}tsParseTypeOrTypePredicateAnnotation(Q){return this.tsInType(()=>{let Z=this.startNode();this.expect(Q);let V=this.startNode(),X=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(X&&this.match(M._this)){let I=this.tsParseThisTypeOrThisTypePredicate();if(I.type==="TSThisType")V.parameterName=I,V.asserts=!0,V.typeAnnotation=null,I=this.finishNode(V,"TSTypePredicate");else this.resetStartLocationFromNode(I,V),I.asserts=!0;return Z.typeAnnotation=I,this.finishNode(Z,"TSTypeAnnotation")}let A=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!A){if(!X)return this.tsParseTypeAnnotation(!1,Z);return V.parameterName=this.parseIdent(),V.asserts=X,V.typeAnnotation=null,Z.typeAnnotation=this.finishNode(V,"TSTypePredicate"),this.finishNode(Z,"TSTypeAnnotation")}let L=this.tsParseTypeAnnotation(!1);return V.parameterName=A,V.typeAnnotation=L,V.asserts=X,Z.typeAnnotation=this.finishNode(V,"TSTypePredicate"),this.finishNode(Z,"TSTypeAnnotation")})}tsFillSignature(Q,Z){let V=Q===M.arrow,X="parameters",A="typeAnnotation";if(Z.typeParameters=this.tsTryParseTypeParameters(),this.expect(M.parenL),Z.parameters=this.tsParseBindingListForSignature(),V)Z.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(Q);else if(this.match(Q))Z.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(Q)}tsTryNextParseConstantContext(){if(this.lookahead().type!==M._const)return null;this.next();let Q=this.tsParseTypeReference();if(Q.typeParameters||Q.typeArguments)this.raise(Q.typeName.start,p.CannotFindName({name:"const"}));return Q}tsParseFunctionOrConstructorType(Q,Z){let V=this.startNode();if(Q==="TSConstructorType"){if(V.abstract=!!Z,Z)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(M.arrow,V)),this.finishNode(V,Q)}tsParseUnionOrIntersectionType(Q,Z,V){let X=this.startNode(),A=this.eat(V),L=[];do L.push(Z());while(this.eat(V));if(L.length===1&&!A)return L[0];return X.types=L,this.finishNode(X,Q)}tsCheckTypeAnnotationForReadOnly(Q){switch(Q.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(Q.start,p.UnexpectedReadonly)}}tsParseTypeOperator(){let Q=this.startNode(),Z=this.value;if(this.next(),Q.operator=Z,Q.typeAnnotation=this.tsParseTypeOperatorOrHigher(),Z==="readonly")this.tsCheckTypeAnnotationForReadOnly(Q);return this.finishNode(Q,"TSTypeOperator")}tsParseConstraintForInferType(){if(this.eat(M._extends)){let Q=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.inDisallowConditionalTypesContext||!this.match(M.question))return Q}}tsParseInferType(){let Q=this.startNode();this.expectContextual("infer");let Z=this.startNode();return Z.name=this.tsParseTypeParameterName(),Z.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),Q.typeParameter=this.finishNode(Z,"TSTypeParameter"),this.finishNode(Q,"TSInferType")}tsParseLiteralTypeNode(){let Q=this.startNode();return Q.literal=(()=>{switch(this.type){case M.num:case M.string:case M._true:case M._false:return this.parseExprAtom();default:this.unexpected()}})(),this.finishNode(Q,"TSLiteralType")}tsParseImportType(){let Q=this.startNode();if(this.expect(M._import),this.expect(M.parenL),!this.match(M.string))this.raise(this.start,p.UnsupportedImportTypeArgument);if(Q.argument=this.parseExprAtom(),this.expect(M.parenR),this.eat(M.dot))Q.qualifier=this.tsParseEntityName();if(this.tsMatchLeftRelational())Q.typeArguments=this.tsParseTypeArguments();return this.finishNode(Q,"TSImportType")}tsParseTypeQuery(){let Q=this.startNode();if(this.expect(M._typeof),this.match(M._import))Q.exprName=this.tsParseImportType();else Q.exprName=this.tsParseEntityName();if(!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())Q.typeArguments=this.tsParseTypeArguments();return this.finishNode(Q,"TSTypeQuery")}tsParseMappedTypeParameter(){let Q=this.startNode();return Q.name=this.tsParseTypeParameterName(),Q.constraint=this.tsExpectThenParseType(M._in),this.finishNode(Q,"TSTypeParameter")}tsParseMappedType(){let Q=this.startNode();if(this.expect(M.braceL),this.match(M.plusMin))Q.readonly=this.value,this.next(),this.expectContextual("readonly");else if(this.eatContextual("readonly"))Q.readonly=!0;if(this.expect(M.bracketL),Q.typeParameter=this.tsParseMappedTypeParameter(),Q.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(M.bracketR),this.match(M.plusMin))Q.optional=this.value,this.next(),this.expect(M.question);else if(this.eat(M.question))Q.optional=!0;return Q.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(M.braceR),this.finishNode(Q,"TSMappedType")}tsParseTypeLiteral(){let Q=this.startNode();return Q.members=this.tsParseObjectTypeMembers(),this.finishNode(Q,"TSTypeLiteral")}tsParseTupleElementType(){let Q=this.startLoc,Z=this.start,V=this.eat(M.ellipsis),X=this.tsParseType(),A=this.eat(M.question);if(this.eat(M.colon)){let I=this.startNodeAtNode(X);if(I.optional=A,X.type==="TSTypeReference"&&!X.typeArguments&&X.typeName.type==="Identifier")I.label=X.typeName;else this.raise(X.start,p.InvalidTupleMemberLabel),I.label=X;I.elementType=this.tsParseType(),X=this.finishNode(I,"TSNamedTupleMember")}else if(A){let I=this.startNodeAtNode(X);I.typeAnnotation=X,X=this.finishNode(I,"TSOptionalType")}if(V){let I=this.startNodeAt(Z,Q);I.typeAnnotation=X,X=this.finishNode(I,"TSRestType")}return X}tsParseTupleType(){let Q=this.startNode();Q.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let Z=!1;return Q.elementTypes.forEach((V)=>{let{type:X}=V;if(Z&&X!=="TSRestType"&&X!=="TSOptionalType"&&!(X==="TSNamedTupleMember"&&V.optional))this.raise(V.start,p.OptionalTypeBeforeRequired);if(Z||=X==="TSNamedTupleMember"&&V.optional||X==="TSOptionalType",X==="TSRestType")V=V.typeAnnotation}),this.finishNode(Q,"TSTupleType")}tsParseTemplateLiteralType(){let Q=this.startNode();return Q.literal=this.parseTemplate({isTagged:!1}),this.finishNode(Q,"TSLiteralType")}tsParseTypeReference(){let Q=this.startNode();if(Q.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())Q.typeArguments=this.tsParseTypeArguments();return this.finishNode(Q,"TSTypeReference")}tsMatchLeftRelational(){return this.match(M.relational)&&this.value==="<"}tsMatchRightRelational(){return this.match(M.relational)&&this.value===">"}tsParseParenthesizedType(){let Q=this.startNode();return this.expect(M.parenL),Q.typeAnnotation=this.tsParseType(),this.expect(M.parenR),this.finishNode(Q,"TSParenthesizedType")}tsParseNonArrayType(){switch(this.type){case M.string:case M.num:case M._true:case M._false:return this.tsParseLiteralTypeNode();case M.plusMin:if(this.value==="-"){let Q=this.startNode();if(this.lookahead().type!==M.num)this.unexpected();return Q.literal=this.parseMaybeUnary(),this.finishNode(Q,"TSLiteralType")}break;case M._this:return this.tsParseThisTypeOrThisTypePredicate();case M._typeof:return this.tsParseTypeQuery();case M._import:return this.tsParseImportType();case M.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case M.bracketL:return this.tsParseTupleType();case M.parenL:return this.tsParseParenthesizedType();case M.backQuote:case M.dollarBraceL:return this.tsParseTemplateLiteralType();default:{let{type:Q}=this;if(z(Q)||Q===M._void||Q===M._null){let Z=Q===M._void?"TSVoidKeyword":Q===M._null?"TSNullKeyword":XA(this.value);if(Z!==void 0&&this.lookaheadCharCode()!==46){let V=this.startNode();return this.next(),this.finishNode(V,Z)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let Q=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(M.bracketL))if(this.match(M.bracketR)){let Z=this.startNodeAtNode(Q);Z.elementType=Q,this.expect(M.bracketR),Q=this.finishNode(Z,"TSArrayType")}else{let Z=this.startNodeAtNode(Q);Z.objectType=Q,Z.indexType=this.tsParseType(),this.expect(M.bracketR),Q=this.finishNode(Z,"TSIndexedAccessType")}return Q}tsParseTypeOperatorOrHigher(){return N(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),M.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),M.bitwiseOR)}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(M._new))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseType(){I4(this.inType);let Q=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(M._extends))return Q;let Z=this.startNodeAtNode(Q);return Z.checkType=Q,Z.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(M.question),Z.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(M.colon),Z.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(Z,"TSConditionalType")}tsIsUnambiguouslyIndexSignature(){if(this.next(),z(this.type))return this.next(),this.match(M.colon);return!1}tsInType(Q){let Z=this.inType;this.inType=!0;try{return Q()}finally{this.inType=Z}}tsTryParseIndexSignature(Q){if(!(this.match(M.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(M.bracketL);let Z=this.parseIdent();Z.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(Z),this.expect(M.bracketR),Q.parameters=[Z];let V=this.tsTryParseTypeAnnotation();if(V)Q.typeAnnotation=V;return this.tsParseTypeMemberSemicolon(),this.finishNode(Q,"TSIndexSignature")}tsParseNoneModifiers(Q){this.tsParseModifiers({modified:Q,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:p.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(Q=this.tsParseNoneModifiers.bind(this)){let Z=this.startNode();return Q(Z),Z.name=this.tsParseTypeParameterName(),Z.constraint=this.tsEatThenParseType(M._extends),Z.default=this.tsEatThenParseType(M.eq),this.finishNode(Z,"TSTypeParameter")}tsParseTypeParameters(Q){let Z=this.startNode();if(this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart"))this.next();else this.unexpected();let V={value:-1};if(Z.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,Q),!1,!0,V),Z.params.length===0)this.raise(this.start,p.EmptyTypeParameters);if(V.value!==-1)this.addExtra(Z,"trailingComma",V.value);return this.finishNode(Z,"TSTypeParameterDeclaration")}tsTryParseTypeParameters(Q){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(Q)}tsTryParse(Q){let Z=this.getCurLookaheadState(),V=Q();if(V!==void 0&&V!==!1)return V;else{this.setLookaheadState(Z);return}}tsTokenCanFollowModifier(){return(this.match(M.bracketL)||this.match(M.braceL)||this.match(M.star)||this.match(M.ellipsis)||this.match(M.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(!0),this.tsTokenCanFollowModifier()}tsParseModifier(Q,Z){let V=this.value;if(Q.indexOf(V)!==-1&&!this.containsEsc){if(Z&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return V}return}tsParseModifiersByMap({modified:Q,map:Z}){for(let V of Object.keys(Z))Q[V]=Z[V]}tsParseModifiers({modified:Q,allowedModifiers:Z,disallowedModifiers:V,stopOnStartOfClassStaticBlock:X,errorTemplate:A=p.InvalidModifierOnTypeMember}){let L={},I=(u,j,a,P8)=>{if(j===a&&Q[P8])this.raise(u.column,p.InvalidModifiersOrder({orderedModifiers:[a,P8]}))},b=(u,j,a,P8)=>{if(Q[a]&&j===P8||Q[P8]&&j===a)this.raise(u.column,p.IncompatibleModifiers({modifiers:[a,P8]}))};for(;;){let u=this.startLoc,j=this.tsParseModifier(Z.concat(V??[]),X);if(!j)break;if(S4(j))if(Q.accessibility)this.raise(this.start,p.DuplicateAccessibilityModifier());else I(u,j,j,"override"),I(u,j,j,"static"),I(u,j,j,"readonly"),I(u,j,j,"accessor"),L.accessibility=j,Q.accessibility=j;else if(FA(j))if(Q[j])this.raise(this.start,p.DuplicateModifier({modifier:j}));else I(u,j,"in","out"),L[j]=j,Q[j]=!0;else if(YA(j))if(Q[j])this.raise(this.start,p.DuplicateModifier({modifier:j}));else b(u,j,"accessor","readonly"),b(u,j,"accessor","static"),b(u,j,"accessor","override"),L[j]=j,Q[j]=!0;else if(j==="const")if(Q[j])this.raise(this.start,p.DuplicateModifier({modifier:j}));else L[j]=j,Q[j]=!0;else if(Object.hasOwnProperty.call(Q,j))this.raise(this.start,p.DuplicateModifier({modifier:j}));else I(u,j,"static","readonly"),I(u,j,"static","override"),I(u,j,"override","readonly"),I(u,j,"abstract","override"),b(u,j,"declare","override"),b(u,j,"static","abstract"),L[j]=j,Q[j]=!0;if(V?.includes(j))this.raise(this.start,A)}return L}tsParseInOutModifiers(Q){this.tsParseModifiers({modified:Q,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:p.InvalidModifierOnTypeParameter})}parseMaybeUnary(Q,Z,V,X){if(!q?.jsx&&this.tsMatchLeftRelational())return this.tsParseTypeAssertion();else return super.parseMaybeUnary(Q,Z,V,X)}tsParseTypeAssertion(){if(P)this.raise(this.start,p.ReservedTypeAssertion);let Q=this.tryParse(()=>{let Z=this.startNode(),V=this.tsTryNextParseConstantContext();return Z.typeAnnotation=V||this.tsNextThenParseType(),this.expect(M.relational),Z.expression=this.parseMaybeUnary(),this.finishNode(Z,"TSTypeAssertion")});if(Q.error)return this.tsParseTypeParameters(this.tsParseConstModifier);else return Q.node}tsParseTypeArguments(){let Q=this.startNode();if(Q.params=this.tsInType(()=>this.tsInNoContext(()=>{return this.expect(M.relational),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),Q.params.length===0)this.raise(this.start,p.EmptyTypeArguments);return this.exprAllowed=!1,this.expect(M.relational),this.finishNode(Q,"TSTypeParameterInstantiation")}tsParseHeritageClause(Q){let Z=this.start,V=this.tsParseDelimitedList("HeritageClauseElement",()=>{let X=this.startNode();if(X.expression=this.tsParseEntityName(),this.tsMatchLeftRelational())X.typeParameters=this.tsParseTypeArguments();return this.finishNode(X,"TSExpressionWithTypeArguments")});if(!V.length)this.raise(Z,p.EmptyHeritageClauseType({token:Q}));return V}tsParseTypeMemberSemicolon(){if(!this.eat(M.comma)&&!this.isLineTerminator())this.expect(M.semi)}tsTryParseAndCatch(Q){let Z=this.tryParse((V)=>Q()||V());if(Z.aborted||!Z.node)return;if(Z.error)this.setLookaheadState(Z.failState);return Z.node}tsParseSignatureMember(Q,Z){return this.tsFillSignature(M.colon,Z),this.tsParseTypeMemberSemicolon(),this.finishNode(Z,Q)}tsParsePropertyOrMethodSignature(Q,Z){if(this.eat(M.question))Q.optional=!0;let V=Q;if(this.match(M.parenL)||this.tsMatchLeftRelational()){if(Z)this.raise(Q.start,p.ReadonlyForMethodSignature);let X=V;if(X.kind&&this.tsMatchLeftRelational())this.raise(this.start,p.AccesorCannotHaveTypeParameters);this.tsFillSignature(M.colon,X),this.tsParseTypeMemberSemicolon();let A="parameters",L="typeAnnotation";if(X.kind==="get"){if(X[A].length>0){if(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(X[A][0]))this.raise(this.start,p.AccesorCannotDeclareThisParameter)}}else if(X.kind==="set"){if(X[A].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{let I=X[A][0];if(this.isThisParam(I))this.raise(this.start,p.AccesorCannotDeclareThisParameter);if(I.type==="Identifier"&&I.optional)this.raise(this.start,p.SetAccesorCannotHaveOptionalParameter);if(I.type==="RestElement")this.raise(this.start,p.SetAccesorCannotHaveRestParameter)}if(X[L])this.raise(X[L].start,p.SetAccesorCannotHaveReturnType)}else X.kind="method";return this.finishNode(X,"TSMethodSignature")}else{let X=V;if(Z)X.readonly=!0;let A=this.tsTryParseTypeAnnotation();if(A)X.typeAnnotation=A;return this.tsParseTypeMemberSemicolon(),this.finishNode(X,"TSPropertySignature")}}tsParseTypeMember(){let Q=this.startNode();if(this.match(M.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",Q);if(this.match(M._new)){let V=this.startNode();if(this.next(),this.match(M.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSConstructSignatureDeclaration",Q);else return Q.key=this.createIdentifier(V,"new"),this.tsParsePropertyOrMethodSignature(Q,!1)}this.tsParseModifiers({modified:Q,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]});let Z=this.tsTryParseIndexSignature(Q);if(Z)return Z;if(this.parsePropertyName(Q),!Q.computed&&Q.key.type==="Identifier"&&(Q.key.name==="get"||Q.key.name==="set")&&this.tsTokenCanFollowModifier())Q.kind=Q.key.name,this.parsePropertyName(Q);return this.tsParsePropertyOrMethodSignature(Q,!!Q.readonly)}tsParseList(Q,Z){let V=[];while(!this.tsIsListTerminator(Q))V.push(Z());return V}tsParseObjectTypeMembers(){this.expect(M.braceL);let Q=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(M.braceR),Q}tsParseInterfaceDeclaration(Q,Z={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual("interface"),Z.declare)Q.declare=!0;if(z(this.type))Q.id=this.parseIdent(),this.checkLValSimple(Q.id,z8.BIND_TS_INTERFACE);else Q.id=null,this.raise(this.start,p.MissingInterfaceName);if(Q.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(M._extends))Q.extends=this.tsParseHeritageClause("extends");let V=this.startNode();return V.body=this.tsParseInterfaceBody(),Q.body=this.finishNode(V,"TSInterfaceBody"),this.finishNode(Q,"TSInterfaceDeclaration")}tsParseInterfaceBody(){this.expect(M.braceL);let Q=this.inType;this.inType=!0;let Z=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.inType=Q,this.expect(M.braceR),Z}tsParseAbstractDeclaration(Q){if(this.match(M._class))return Q.abstract=!0,this.parseClass(Q,!0);else if(this.ts_isContextual(B.interface)){if(!this.hasFollowingLineBreak())return Q.abstract=!0,this.tsParseInterfaceDeclaration(Q)}else this.unexpected(Q.start)}tsIsDeclarationStart(){return y(this.type)}tsParseExpressionStatement(Q,Z){switch(Z.name){case"declare":{let V=this.tsTryParseDeclare(Q);if(V)return V.declare=!0,V;break}case"global":if(this.match(M.braceL)){this.enterScope(H9);let V=Q;return V.global=!0,V.id=Z,V.body=this.tsParseModuleBlock(),super.exitScope(),this.finishNode(V,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(Q,Z.name,!1)}}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsIsExportDefaultSpecifier(){let{type:Q}=this,Z=this.isAsyncFunction(),V=this.isLet();if(z(Q)){if(Z&&!this.containsEsc||V)return!1;if((Q===B.type||Q===B.interface)&&!this.containsEsc){let L=this.lookahead();if(z(L.type)&&!this.isContextualWithState("from",L)||L.type===M.braceL)return!1}}else if(!this.match(M._default))return!1;let X=this.nextTokenStart(),A=this.isUnparsedContextual(X,"from");if(this.input.charCodeAt(X)===44||z(this.type)&&A)return!0;if(this.match(M._default)&&A){let L=this.input.charCodeAt(this.nextTokenStartSince(X+4));return L===34||L===39}return!1}tsInAmbientContext(Q){let Z=this.isAmbientContext;this.isAmbientContext=!0;try{return Q()}finally{this.isAmbientContext=Z}}tsCheckLineTerminator(Q){if(Q){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsParseModuleOrNamespaceDeclaration(Q,Z=!1){if(Q.id=this.parseIdent(),!Z)this.checkLValSimple(Q.id,z8.BIND_TS_NAMESPACE);if(this.eat(M.dot)){let V=this.startNode();this.tsParseModuleOrNamespaceDeclaration(V,!0),Q.body=V}else this.enterScope(H9),Q.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(Q,"TSModuleDeclaration")}checkLValSimple(Q,Z=z8.BIND_NONE,V){if(Q.type==="TSNonNullExpression"||Q.type==="TSAsExpression")Q=Q.expression;return super.checkLValSimple(Q,Z,V)}tsParseTypeAliasDeclaration(Q){return Q.id=this.parseIdent(),this.checkLValSimple(Q.id,z8.BIND_TS_TYPE),Q.typeAnnotation=this.tsInType(()=>{if(Q.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(M.eq),this.ts_isContextual(B.interface)&&this.lookahead().type!==M.dot){let Z=this.startNode();return this.next(),this.finishNode(Z,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(Q,"TSTypeAliasDeclaration")}tsParseDeclaration(Q,Z,V){switch(Z){case"abstract":if(this.tsCheckLineTerminator(V)&&(this.match(M._class)||z(this.type)))return this.tsParseAbstractDeclaration(Q);break;case"module":if(this.tsCheckLineTerminator(V)){if(this.match(M.string))return this.tsParseAmbientExternalModuleDeclaration(Q);else if(z(this.type))return this.tsParseModuleOrNamespaceDeclaration(Q)}break;case"namespace":if(this.tsCheckLineTerminator(V)&&z(this.type))return this.tsParseModuleOrNamespaceDeclaration(Q);break;case"type":if(this.tsCheckLineTerminator(V)&&z(this.type))return this.tsParseTypeAliasDeclaration(Q);break}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.value,!0)}tsParseImportEqualsDeclaration(Q,Z){Q.isExport=Z||!1,Q.id=this.parseIdent(),this.checkLValSimple(Q.id,z8.BIND_LEXICAL),super.expect(M.eq);let V=this.tsParseModuleReference();if(Q.importKind==="type"&&V.type!=="TSExternalModuleReference")this.raise(V.start,p.ImportAliasHasImportType);return Q.moduleReference=V,super.semicolon(),this.finishNode(Q,"TSImportEqualsDeclaration")}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;let{type:Q}=this;if(z(Q)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((Q===B.type||Q===B.interface)&&!this.containsEsc){let X=this.lookahead();if(z(X.type)&&!this.isContextualWithState("from",X)||X.type===M.braceL)return!1}}else if(!this.match(M._default))return!1;let Z=this.nextTokenStart(),V=this.isUnparsedContextual(Z,"from");if(this.input.charCodeAt(Z)===44||z(this.type)&&V)return!0;if(this.match(M._default)&&V){let X=this.input.charCodeAt(this.nextTokenStartSince(Z+4));return X===34||X===39}return!1}parseTemplate({isTagged:Q=!1}={}){let Z=this.startNode();this.next(),Z.expressions=[];let V=this.parseTemplateElement({isTagged:Q});Z.quasis=[V];while(!V.tail){if(this.type===M.eof)this.raise(this.pos,"Unterminated template literal");this.expect(M.dollarBraceL),Z.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(M.braceR),Z.quasis.push(V=this.parseTemplateElement({isTagged:Q}))}return this.next(),this.finishNode(Z,"TemplateLiteral")}parseFunction(Q,Z,V,X,A){if(this.initFunction(Q),this.ecmaVersion>=9||this.ecmaVersion>=6&&!X){if(this.type===M.star&&Z&f4)this.unexpected();Q.generator=this.eat(M.star)}if(this.ecmaVersion>=8)Q.async=!!X;if(Z&Uq)Q.id=Z&VA&&this.type!==M.name?null:this.parseIdent();let L=this.yieldPos,I=this.awaitPos,b=this.awaitIdentPos,u=this.maybeInArrowParameters;if(this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(G7(Q.async,Q.generator)),!(Z&Uq))Q.id=this.type===M.name?this.parseIdent():null;this.parseFunctionParams(Q);let j=Z&Uq;if(this.parseFunctionBody(Q,V,!1,A,{isFunctionDeclaration:j}),this.yieldPos=L,this.awaitPos=I,this.awaitIdentPos=b,Z&Uq&&Q.id&&!(Z&f4))if(Q.body)this.checkLValSimple(Q.id,this.strict||Q.generator||Q.async?this.treatFunctionsAsVar?z8.BIND_VAR:z8.BIND_LEXICAL:z8.BIND_FUNCTION);else this.checkLValSimple(Q.id,z8.BIND_NONE);return this.maybeInArrowParameters=u,this.finishNode(Q,j?"FunctionDeclaration":"FunctionExpression")}parseFunctionBody(Q,Z=!1,V=!1,X=!1,A){if(this.match(M.colon))Q.returnType=this.tsParseTypeOrTypePredicateAnnotation(M.colon);let L=A?.isFunctionDeclaration?"TSDeclareFunction":A?.isClassMethod?"TSDeclareMethod":void 0;if(L&&!this.match(M.braceL)&&this.isLineTerminator())return this.exitScope(),this.finishNode(Q,L);if(L==="TSDeclareFunction"&&this.isAmbientContext){if(this.raise(Q.start,p.DeclareFunctionHasImplementation),Q.declare)return super.parseFunctionBody(Q,Z,V,!1),this.finishNode(Q,L)}return super.parseFunctionBody(Q,Z,V,X),Q}parseNew(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");let Q=this.startNode(),Z=this.parseIdent(!0);if(this.ecmaVersion>=6&&this.eat(M.dot)){Q.meta=Z;let I=this.containsEsc;if(Q.property=this.parseIdent(!0),Q.property.name!=="target")this.raiseRecoverable(Q.property.start,"The only valid meta property for new is 'new.target'");if(I)this.raiseRecoverable(Q.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(Q.start,"'new.target' can only be used in functions and class static block");return this.finishNode(Q,"MetaProperty")}let V=this.start,X=this.startLoc,A=this.type===M._import;if(Q.callee=this.parseSubscripts(this.parseExprAtom(),V,X,!0,!1),A&&Q.callee.type==="ImportExpression")this.raise(V,"Cannot use new with import()");let{callee:L}=Q;if(L.type==="TSInstantiationExpression"&&!L.extra?.parenthesized)Q.typeArguments=L.typeArguments,Q.callee=L.expression;if(this.eat(M.parenL))Q.arguments=this.parseExprList(M.parenR,this.ecmaVersion>=8,!1);else Q.arguments=[];return this.finishNode(Q,"NewExpression")}parseExprOp(Q,Z,V,X,A){if(M._in.binop>X&&!this.hasPrecedingLineBreak()){let L;if(this.isContextual("as"))L="TSAsExpression";if(this.isContextual("satisfies"))L="TSSatisfiesExpression";if(L){let I=this.startNodeAt(Z,V);I.expression=Q;let b=this.tsTryNextParseConstantContext();if(b)I.typeAnnotation=b;else I.typeAnnotation=this.tsNextThenParseType();return this.finishNode(I,L),this.reScan_lt_gt(),this.parseExprOp(I,Z,V,X,A)}}return super.parseExprOp(Q,Z,V,X,A)}parseImportSpecifiers(){let Q=[],Z=!0;if(H.tokenIsIdentifier(this.type)){if(Q.push(this.parseImportDefaultSpecifier()),!this.eat(M.comma))return Q}if(this.type===M.star)return Q.push(this.parseImportNamespaceSpecifier()),Q;this.expect(M.braceL);while(!this.eat(M.braceR)){if(!Z){if(this.expect(M.comma),this.afterTrailingComma(M.braceR))break}else Z=!1;Q.push(this.parseImportSpecifier())}return Q}parseImport(Q){let Z=this.lookahead();if(Q.importKind="value",this.importOrExportOuterKind="value",z(Z.type)||this.match(M.star)||this.match(M.braceL)){let V=this.lookahead(2);if(V.type!==M.comma&&!this.isContextualWithState("from",V)&&V.type!==M.eq&&this.ts_eatContextualWithState("type",1,Z))this.importOrExportOuterKind="type",Q.importKind="type",Z=this.lookahead(),V=this.lookahead(2);if(z(Z.type)&&V.type===M.eq){this.next();let X=this.tsParseImportEqualsDeclaration(Q);return this.importOrExportOuterKind="value",X}}if(this.next(),this.type===M.string)Q.specifiers=[],Q.source=this.parseExprAtom();else Q.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),Q.source=this.type===M.string?this.parseExprAtom():this.unexpected();if(this.parseMaybeImportAttributes(Q),this.semicolon(),this.finishNode(Q,"ImportDeclaration"),this.importOrExportOuterKind="value",Q.importKind==="type"&&Q.specifiers.length>1&&Q.specifiers[0].type==="ImportDefaultSpecifier")this.raise(Q.start,p.TypeImportCannotSpecifyDefaultAndNamed);return Q}parseExportDefaultDeclaration(){if(this.isAbstractClass()){let Q=this.startNode();return this.next(),Q.abstract=!0,this.parseClass(Q,!0)}if(this.match(B.interface)){let Q=this.tsParseInterfaceDeclaration(this.startNode());if(Q)return Q}return super.parseExportDefaultDeclaration()}parseExportAllDeclaration(Q,Z){if(this.ecmaVersion>=11)if(this.eatContextual("as"))Q.exported=this.parseModuleExportName(),this.checkExport(Z,Q.exported,this.lastTokStart);else Q.exported=null;if(this.expectContextual("from"),this.type!==M.string)this.unexpected();return Q.source=this.parseExprAtom(),this.parseMaybeImportAttributes(Q),this.semicolon(),this.finishNode(Q,"ExportAllDeclaration")}parseDynamicImport(Q){if(this.next(),Q.source=this.parseMaybeAssign(),this.eat(M.comma)){let Z=this.parseExpression();Q.arguments=[Z]}if(!this.eat(M.parenR)){let Z=this.start;if(this.eat(M.comma)&&this.eat(M.parenR))this.raiseRecoverable(Z,"Trailing comma is not allowed in import()");else this.unexpected(Z)}return this.finishNode(Q,"ImportExpression")}parseExport(Q,Z){let V=this.lookahead();if(this.ts_eatWithState(M._import,2,V)){if(this.ts_isContextual(B.type)&&this.lookaheadCharCode()!==61)Q.importKind="type",this.importOrExportOuterKind="type",this.next();else Q.importKind="value",this.importOrExportOuterKind="value";let X=this.tsParseImportEqualsDeclaration(Q,!0);return this.importOrExportOuterKind=void 0,X}else if(this.ts_eatWithState(M.eq,2,V)){let X=Q;return X.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(X,"TSExportAssignment")}else if(this.ts_eatContextualWithState("as",2,V)){let X=Q;return this.expectContextual("namespace"),X.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(X,"TSNamespaceExportDeclaration")}else{let X=this.lookahead(2).type;if(this.ts_isContextualWithState(V,B.type)&&(X===M.braceL||X===M.star))this.next(),this.importOrExportOuterKind="type",Q.exportKind="type";else this.importOrExportOuterKind="value",Q.exportKind="value";if(this.next(),this.eat(M.star))return this.parseExportAllDeclaration(Q,Z);if(this.eat(M._default))return this.checkExport(Z,"default",this.lastTokStart),Q.declaration=this.parseExportDefaultDeclaration(),this.finishNode(Q,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(Q.declaration=this.parseExportDeclaration(Q),Q.declaration.type==="VariableDeclaration")this.checkVariableExport(Z,Q.declaration.declarations);else this.checkExport(Z,Q.declaration.id,Q.declaration.id.start);Q.specifiers=[],Q.source=null}else{if(Q.declaration=null,Q.specifiers=this.parseExportSpecifiers(Z),this.eatContextual("from")){if(this.type!==M.string)this.unexpected();Q.source=this.parseExprAtom(),this.parseMaybeImportAttributes(Q)}else{for(let A of Q.specifiers)if(this.checkUnreserved(A.local),this.checkLocalExport(A.local),A.local.type==="Literal")this.raise(A.local.start,"A string literal cannot be used as an exported binding without `from`.");Q.source=null}this.semicolon()}return this.finishNode(Q,"ExportNamedDeclaration")}}checkExport(Q,Z,V){if(!Q)return;if(typeof Z!=="string")Z=Z.type==="Identifier"?Z.name:Z.value;Q[Z]=!0}parseMaybeDefault(Q,Z,V){let X=super.parseMaybeDefault(Q,Z,V);if(X.type==="AssignmentPattern"&&X.typeAnnotation&&X.right.start<X.typeAnnotation.start)this.raise(X.typeAnnotation.start,p.TypeAnnotationAfterAssign);return X}typeCastToParameter(Q){return Q.expression.typeAnnotation=Q.typeAnnotation,this.resetEndLocation(Q.expression,Q.typeAnnotation.end,Q.typeAnnotation.loc?.end),Q.expression}toAssignableList(Q,Z){if(!Q)Q=[];for(let V=0;V<Q.length;V++){let X=Q[V];if(X?.type==="TSTypeCastExpression")Q[V]=this.typeCastToParameter(X)}return super.toAssignableList(Q,Z)}reportReservedArrowTypeParam(Q){if(Q.params.length===1&&!Q.extra?.trailingComma&&P)this.raise(Q.start,p.ReservedArrowTypeParam)}parseExprAtom(Q,Z,V){if(this.type===B.jsxText)return this.jsx_parseText();else if(this.type===B.jsxTagStart)return this.jsx_parseElement();else if(this.type===B.at)return this.parseDecorators(),this.parseExprAtom();else if(z(this.type)){let X=this.potentialArrowAt===this.start,A=this.start,L=this.startLoc,I=this.containsEsc,b=this.parseIdent(!1);if(this.ecmaVersion>=8&&!I&&b.name==="async"&&!this.canInsertSemicolon()&&this.eat(M._function))return this.overrideContext($.f_expr),this.parseFunction(this.startNodeAt(A,L),0,!1,!0,Z);if(X&&!this.canInsertSemicolon()){if(this.eat(M.arrow))return this.parseArrowExpression(this.startNodeAt(A,L),[b],!1,Z);if(this.ecmaVersion>=8&&b.name==="async"&&this.type===M.name&&!I&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(b=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(M.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(A,L),[b],!0,Z)}}return b}else return super.parseExprAtom(Q,Z,V)}parseExprAtomDefault(){if(z(this.type)){let Q=this.potentialArrowAt===this.start,Z=this.containsEsc,V=this.parseIdent();if(!Z&&V.name==="async"&&!this.canInsertSemicolon()){let{type:X}=this;if(X===M._function)return this.next(),this.parseFunction(this.startNodeAtNode(V),void 0,!0,!0);else if(z(X))if(this.lookaheadCharCode()===61){let A=this.parseIdent(!1);if(this.canInsertSemicolon()||!this.eat(M.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAtNode(V),[A],!0)}else return V}if(Q&&this.match(M.arrow)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(V),[V],!1);return V}else this.unexpected()}parseIdentNode(){let Q=this.startNode();if(S(this.type)&&!((this.type.keyword==="class"||this.type.keyword==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)))Q.name=this.value;else return super.parseIdentNode();return Q}parseVarStatement(Q,Z,V=!1){let{isAmbientContext:X}=this;this.next(),super.parseVar(Q,!1,Z,V||X),this.semicolon();let A=this.finishNode(Q,"VariableDeclaration");if(!X)return A;for(let{id:L,init:I}of A.declarations){if(!I)continue;if(Z!=="const"||!!L.typeAnnotation)this.raise(I.start,p.InitializerNotAllowedInAmbientContext);else if(I.type!=="StringLiteral"&&I.type!=="BooleanLiteral"&&I.type!=="NumericLiteral"&&I.type!=="BigIntLiteral"&&(I.type!=="TemplateLiteral"||I.expressions.length>0)&&!JA(I))this.raise(I.start,p.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference)}return A}parseStatement(Q,Z,V){if(this.match(B.at))this.parseDecorators(!0);if(this.match(M._const)&&this.isLookaheadContextual("enum")){let X=this.startNode();return this.expect(M._const),this.tsParseEnumDeclaration(X,{const:!0})}if(this.ts_isContextual(B.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(B.interface)){let X=this.tsParseInterfaceDeclaration(this.startNode());if(X)return X}return super.parseStatement(Q,Z,V)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parsePostMemberNameModifiers(Q){if(this.eat(M.question))Q.optional=!0;if(Q.readonly&&this.match(M.parenL))this.raise(Q.start,p.ClassMethodHasReadonly);if(Q.declare&&this.match(M.parenL))this.raise(Q.start,p.ClassMethodHasDeclare)}parseExpressionStatement(Q,Z){return(Z.type==="Identifier"?this.tsParseExpressionStatement(Q,Z):void 0)||super.parseExpressionStatement(Q,Z)}shouldParseExportStatement(){if(this.tsIsDeclarationStart())return!0;if(this.match(B.at))return!0;return super.shouldParseExportStatement()}parseConditional(Q,Z,V,X,A){if(this.eat(M.question)){let L=this.startNodeAt(Z,V);return L.test=Q,L.consequent=this.parseMaybeAssign(),this.expect(M.colon),L.alternate=this.parseMaybeAssign(X),this.finishNode(L,"ConditionalExpression")}return Q}parseMaybeConditional(Q,Z){let V=this.start,X=this.startLoc,A=this.parseExprOps(Q,Z);if(this.checkExpressionErrors(Z))return A;if(!this.maybeInArrowParameters||!this.match(M.question))return this.parseConditional(A,V,X,Q,Z);let L=this.tryParse(()=>this.parseConditional(A,V,X,Q,Z));if(!L.node){if(L.error)this.setOptionalParametersError(Z,L.error);return A}if(L.error)this.setLookaheadState(L.failState);return L.node}parseParenItem(Q){let Z=this.start,V=this.startLoc;if(Q=super.parseParenItem(Q),this.eat(M.question))Q.optional=!0,this.resetEndLocation(Q);if(this.match(M.colon)){let X=this.startNodeAt(Z,V);return X.expression=Q,X.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(X,"TSTypeCastExpression")}return Q}parseExportDeclaration(Q){if(!this.isAmbientContext&&this.ts_isContextual(B.declare))return this.tsInAmbientContext(()=>this.parseExportDeclaration(Q));let Z=this.start,V=this.startLoc,X=this.eatContextual("declare");if(X&&(this.ts_isContextual(B.declare)||!this.shouldParseExportStatement()))this.raise(this.start,p.ExpectedAmbientAfterExportDeclare);let L=z(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);if(!L)return null;if(L.type==="TSInterfaceDeclaration"||L.type==="TSTypeAliasDeclaration"||X)Q.exportKind="type";if(X)this.resetStartLocation(L,Z,V),L.declare=!0;return L}parseClassId(Q,Z){if(!Z&&this.isContextual("implements"))return;super.parseClassId(Q,Z);let V=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));if(V)Q.typeParameters=V}parseClassPropertyAnnotation(Q){if(!Q.optional){if(this.value==="!"&&this.eat(M.prefix))Q.definite=!0;else if(this.eat(M.question))Q.optional=!0}let Z=this.tsTryParseTypeAnnotation();if(Z)Q.typeAnnotation=Z}parseClassField(Q){if(Q.key.type==="PrivateIdentifier"){if(Q.abstract)this.raise(Q.start,p.PrivateElementHasAbstract);if(Q.accessibility)this.raise(Q.start,p.PrivateElementHasAccessibility({modifier:Q.accessibility}));this.parseClassPropertyAnnotation(Q)}else{if(this.parseClassPropertyAnnotation(Q),this.isAmbientContext&&!(Q.readonly&&!Q.typeAnnotation)&&this.match(M.eq))this.raise(this.start,p.DeclareClassFieldHasInitializer);if(Q.abstract&&this.match(M.eq)){let{key:V}=Q;this.raise(this.start,p.AbstractPropertyHasInitializer({propertyName:V.type==="Identifier"&&!Q.computed?V.name:`[${this.input.slice(V.start,V.end)}]`}))}}return super.parseClassField(Q)}parseClassMethod(Q,Z,V,X){let A=Q.kind==="constructor",L=Q.key.type==="PrivateIdentifier",I=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(L){if(I)Q.typeParameters=I;if(Q.accessibility)this.raise(Q.start,p.PrivateMethodsHasAccessibility({modifier:Q.accessibility}))}else if(I&&A)this.raise(I.start,p.ConstructorHasTypeParameters);let{declare:b=!1,kind:u}=Q;if(b&&(u==="get"||u==="set"))this.raise(Q.start,p.DeclareAccessor({kind:u}));if(I)Q.typeParameters=I;let j=Q.key;if(Q.kind==="constructor"){if(Z)this.raise(j.start,"Constructor can't be a generator");if(V)this.raise(j.start,"Constructor can't be an async method")}else if(Q.static&&w4(Q,"prototype"))this.raise(j.start,"Classes may not have a static property named prototype");let a=Q.value=this.parseMethod(Z,V,X,!0,Q);if(Q.kind==="get"&&a.params.length!==0)this.raiseRecoverable(a.start,"getter should have no params");if(Q.kind==="set"&&a.params.length!==1)this.raiseRecoverable(a.start,"setter should have exactly one param");if(Q.kind==="set"&&a.params[0].type==="RestElement")this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params");return this.finishNode(Q,"MethodDefinition")}isClassMethod(){return this.match(M.relational)}parseClassElement(Q){if(this.eat(M.semi))return null;let Z=this.startNode(),V="",X=!1,A=!1,L="method",I=!1,b=["declare","private","public","protected","accessor","override","abstract","readonly","static"],u=this.tsParseModifiers({modified:Z,allowedModifiers:b,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:p.InvalidModifierOnTypeParameterPositions});I=Boolean(u.static);let j=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(Z,b))this.raise(this.start,p.StaticBlockCannotHaveModifier);if(this.ecmaVersion>=13)return super.parseClassStaticBlock(Z),Z}else{let a=this.tsTryParseIndexSignature(Z);if(a){if(Z.abstract)this.raise(Z.start,p.IndexSignatureHasAbstract);if(Z.accessibility)this.raise(Z.start,p.IndexSignatureHasAccessibility({modifier:Z.accessibility}));if(Z.declare)this.raise(Z.start,p.IndexSignatureHasDeclare);if(Z.override)this.raise(Z.start,p.IndexSignatureHasOverride);return a}if(!this.inAbstractClass&&Z.abstract)this.raise(Z.start,p.NonAbstractClassHasAbstractMethod);if(Z.override){if(!Q)this.raise(Z.start,p.OverrideNotInSubClass)}if(Z.static=I,I){if(!(this.isClassElementNameStart()||this.type===M.star))V="static"}if(!V&&this.ecmaVersion>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===M.star)&&!this.canInsertSemicolon())A=!0;else V="async";if(!V&&(this.ecmaVersion>=9||!A)&&this.eat(M.star))X=!0;if(!V&&!A&&!X){let P8=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())L=P8;else V=P8}if(V)Z.computed=!1,Z.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),Z.key.name=V,this.finishNode(Z.key,"Identifier");else this.parseClassElementName(Z);if(this.parsePostMemberNameModifiers(Z),this.isClassMethod()||this.ecmaVersion<13||this.type===M.parenL||L!=="method"||X||A){let P8=!Z.static&&w4(Z,"constructor"),q8=P8&&Q;if(P8&&L!=="method")this.raise(Z.key.start,"Constructor can't have get/set modifier");Z.kind=P8?"constructor":L,this.parseClassMethod(Z,X,A,q8)}else this.parseClassField(Z);return Z}};if(Z.declare)this.tsInAmbientContext(j);else j();return Z}isClassElementNameStart(){if(this.tsIsIdentifier())return!0;return super.isClassElementNameStart()}parseClassSuper(Q){if(super.parseClassSuper(Q),Q.superClass&&(this.tsMatchLeftRelational()||this.match(M.bitShift)))Q.superTypeParameters=this.tsParseTypeArgumentsInExpression();if(this.eatContextual("implements"))Q.implements=this.tsParseHeritageClause("implements")}parseFunctionParams(Q){let Z=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(Z)Q.typeParameters=Z;super.parseFunctionParams(Q)}parseVarId(Q,Z){if(super.parseVarId(Q,Z),Q.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(M.prefix))Q.definite=!0;let V=this.tsTryParseTypeAnnotation();if(V)Q.id.typeAnnotation=V,this.resetEndLocation(Q.id)}parseArrowExpression(Q,Z,V,X){if(this.match(M.colon))Q.returnType=this.tsParseTypeAnnotation();let A=this.yieldPos,L=this.awaitPos,I=this.awaitIdentPos;this.enterScope(G7(V,!1)|z8.SCOPE_ARROW),this.initFunction(Q);let b=this.maybeInArrowParameters;if(this.ecmaVersion>=8)Q.async=!!V;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,Q.params=this.toAssignableList(Z,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(Q,!0,!1,X),this.yieldPos=A,this.awaitPos=L,this.awaitIdentPos=I,this.maybeInArrowParameters=b,this.finishNode(Q,"ArrowFunctionExpression")}parseMaybeAssignOrigin(Q,Z,V){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(Q);else this.exprAllowed=!1;let X=!1,A=-1,L=-1,I=-1;if(Z)A=Z.parenthesizedAssign,L=Z.trailingComma,I=Z.doubleProto,Z.parenthesizedAssign=Z.trailingComma=-1;else Z=new M9,X=!0;let b=this.start,u=this.startLoc;if(this.type===M.parenL||z(this.type))this.potentialArrowAt=this.start,this.potentialArrowInForAwait=Q==="await";let j=this.parseMaybeConditional(Q,Z);if(V)j=V.call(this,j,b,u);if(this.type.isAssign){let a=this.startNodeAt(b,u);if(a.operator=this.value,this.type===M.eq)j=this.toAssignable(j,!0,Z);if(!X)Z.parenthesizedAssign=Z.trailingComma=Z.doubleProto=-1;if(Z.shorthandAssign>=j.start)Z.shorthandAssign=-1;if(!this.maybeInArrowParameters)if(this.type===M.eq)this.checkLValPattern(j);else this.checkLValSimple(j);if(a.left=j,this.next(),a.right=this.parseMaybeAssign(Q),I>-1)Z.doubleProto=I;return this.finishNode(a,"AssignmentExpression")}else if(X)this.checkExpressionErrors(Z,!0);if(A>-1)Z.parenthesizedAssign=A;if(L>-1)Z.trailingComma=L;return j}parseMaybeAssign(Q,Z,V){let X,A,L;if(q?.jsx&&(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational())){if(X=this.cloneCurLookaheadState(),A=this.tryParse(()=>this.parseMaybeAssignOrigin(Q,Z,V),X),!A.error)return A.node;let u=this.context,j=u[u.length-1],a=u[u.length-2];if(j===H.tokContexts.tc_oTag&&a===H.tokContexts.tc_expr)u.pop(),u.pop();else if(j===H.tokContexts.tc_oTag||j===H.tokContexts.tc_expr)u.pop()}if(!A?.error&&!this.tsMatchLeftRelational())return this.parseMaybeAssignOrigin(Q,Z,V);if(!X||this.compareLookaheadState(X,this.getCurLookaheadState()))X=this.cloneCurLookaheadState();let I,b=this.tryParse((u)=>{I=this.tsParseTypeParameters(this.tsParseConstModifier);let j=this.parseMaybeAssignOrigin(Q,Z,V);if(j.type!=="ArrowFunctionExpression"||j.extra?.parenthesized)u();if(I?.params.length!==0)this.resetStartLocationFromNode(j,I);return j.typeParameters=I,j},X);if(!b.error&&!b.aborted){if(I)this.reportReservedArrowTypeParam(I);return b.node}if(!A){if(I4(!0),L=this.tryParse(()=>this.parseMaybeAssignOrigin(Q,Z,V),X),!L.error)return L.node}if(A?.node)return this.setLookaheadState(A.failState),A.node;if(b.node){if(this.setLookaheadState(b.failState),I)this.reportReservedArrowTypeParam(I);return b.node}if(L?.node)return this.setLookaheadState(L.failState),L.node;if(A?.thrown)throw A.error;if(b.thrown)throw b.error;if(L?.thrown)throw L.error;throw A?.error||b.error||L?.error}parseAssignableListItem(Q){let Z=[];while(this.match(B.at))Z.push(this.parseDecorator());let V=this.start,X=this.startLoc,A,L=!1,I=!1;if(Q!==void 0){let j={};if(this.tsParseModifiers({modified:j,allowedModifiers:["public","private","protected","override","readonly"]}),A=j.accessibility,I=j.override,L=j.readonly,Q===!1&&(A||L||I))this.raise(X.column,p.UnexpectedParameterModifier)}let b=this.parseMaybeDefault(V,X);this.parseBindingListItem(b);let u=this.parseMaybeDefault(b.start,b.loc.start,b);if(Z.length)u.decorators=Z;if(A||L||I){let j=this.startNodeAt(V,X);if(A)j.accessibility=A;if(L)j.readonly=L;if(I)j.override=I;if(u.type!=="Identifier"&&u.type!=="AssignmentPattern")this.raise(j.start,p.UnsupportedParameterPropertyKind);return j.parameter=u,this.finishNode(j,"TSParameterProperty")}return u}checkLValInnerPattern(Q,Z=z8.BIND_NONE,V){switch(Q.type){case"TSParameterProperty":this.checkLValInnerPattern(Q.parameter,Z,V);break;default:{super.checkLValInnerPattern(Q,Z,V);break}}}parseBindingListItem(Q){if(this.eat(M.question)){if(Q.type!=="Identifier"&&!this.isAmbientContext&&!this.inType)this.raise(Q.start,p.PatternIsOptional);Q.optional=!0}let Z=this.tsTryParseTypeAnnotation();if(Z)Q.typeAnnotation=Z;return this.resetEndLocation(Q),Q}isAssignable(Q,Z){switch(Q.type){case"TSTypeCastExpression":return this.isAssignable(Q.expression,Z);case"TSParameterProperty":return!0;case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let V=Q.properties.length-1;return Q.properties.every((X,A)=>{return X.type!=="ObjectMethod"&&(A===V||X.type!=="SpreadElement")&&this.isAssignable(X)})}case"Property":case"ObjectProperty":return this.isAssignable(Q.value);case"SpreadElement":return this.isAssignable(Q.argument);case"ArrayExpression":return Q.elements.every((V)=>V===null||this.isAssignable(V));case"AssignmentExpression":return Q.operator==="=";case"ParenthesizedExpression":return this.isAssignable(Q.expression);case"MemberExpression":case"OptionalMemberExpression":return!Z;default:return!1}}toAssignable(Q,Z=!1,V=new M9){switch(Q.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(Q,Z,V);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(Z);else this.raise(Q.start,p.UnexpectedTypeCastInParameter);return this.toAssignable(Q.expression,Z,V);case"MemberExpression":break;case"AssignmentExpression":if(!Z&&Q.left.type==="TSTypeCastExpression")Q.left=this.typeCastToParameter(Q.left);return super.toAssignable(Q,Z,V);case"TSTypeCastExpression":return this.typeCastToParameter(Q);default:return super.toAssignable(Q,Z,V)}return Q}toAssignableParenthesizedExpression(Q,Z,V){switch(Q.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(Q.expression,Z,V);default:return super.toAssignable(Q,Z,V)}}parseBindingAtom(){switch(this.type){case M._this:return this.parseIdent(!0);default:return super.parseBindingAtom()}}shouldParseArrow(Q){let Z;if(this.match(M.colon))Z=Q.every((V)=>this.isAssignable(V,!0));else Z=!this.canInsertSemicolon();if(Z){if(this.match(M.colon)){let V=this.tryParse((X)=>{let A=this.tsParseTypeOrTypePredicateAnnotation(M.colon);if(this.canInsertSemicolon()||!this.match(M.arrow))X();return A});if(V.aborted)return this.shouldParseArrowReturnType=void 0,!1;if(!V.thrown){if(V.error)this.setLookaheadState(V.failState);this.shouldParseArrowReturnType=V.node}}if(!this.match(M.arrow))return this.shouldParseArrowReturnType=void 0,!1;return!0}return this.shouldParseArrowReturnType=void 0,Z}parseParenArrowList(Q,Z,V,X){let A=this.startNodeAt(Q,Z);return A.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(A,V,!1,X)}parseParenAndDistinguishExpression(Q,Z){let V=this.start,X=this.startLoc,A,L=this.ecmaVersion>=8;if(this.ecmaVersion>=6){let I=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();let b=this.start,u=this.startLoc,j=[],a=!0,P8=!1,q8=new M9,Z8=this.yieldPos,l=this.awaitPos,W8;this.yieldPos=0,this.awaitPos=0;while(this.type!==M.parenR)if(a?a=!1:this.expect(M.comma),L&&this.afterTrailingComma(M.parenR,!0)){P8=!0;break}else if(this.type===M.ellipsis){if(W8=this.start,j.push(this.parseParenItem(this.parseRestBinding())),this.type===M.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else j.push(this.parseMaybeAssign(Z,q8,this.parseParenItem));let s=this.lastTokEnd,Y8=this.lastTokEndLoc;if(this.expect(M.parenR),this.maybeInArrowParameters=I,Q&&this.shouldParseArrow(j)&&this.eat(M.arrow))return this.checkPatternErrors(q8,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Z8,this.awaitPos=l,this.parseParenArrowList(V,X,j,Z);if(!j.length||P8)this.unexpected(this.lastTokStart);if(W8)this.unexpected(W8);if(this.checkExpressionErrors(q8,!0),this.yieldPos=Z8||this.yieldPos,this.awaitPos=l||this.awaitPos,j.length>1)A=this.startNodeAt(b,u),A.expressions=j,this.finishNodeAt(A,"SequenceExpression",s,Y8);else A=j[0]}else A=this.parseParenExpression();if(this.options.preserveParens){let I=this.startNodeAt(V,X);return I.expression=A,this.finishNode(I,"ParenthesizedExpression")}else return A}parseTaggedTemplateExpression(Q,Z,V,X){let A=this.startNodeAt(Z,V);if(A.tag=Q,A.quasi=this.parseTemplate({isTagged:!0}),X)this.raise(Z,"Tagged Template Literals are not allowed in optionalChain.");return this.finishNode(A,"TaggedTemplateExpression")}shouldParseAsyncArrow(){if(this.match(M.colon)){let Q=this.tryParse((Z)=>{let V=this.tsParseTypeOrTypePredicateAnnotation(M.colon);if(this.canInsertSemicolon()||!this.match(M.arrow))Z();return V});if(Q.aborted)return this.shouldParseAsyncArrowReturnType=void 0,!1;if(!Q.thrown){if(Q.error)this.setLookaheadState(Q.failState);return this.shouldParseAsyncArrowReturnType=Q.node,!this.canInsertSemicolon()&&this.eat(M.arrow)}}else return!this.canInsertSemicolon()&&this.eat(M.arrow)}parseSubscriptAsyncArrow(Q,Z,V,X){let A=this.startNodeAt(Q,Z);return A.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(A,V,!0,X)}parseExprList(Q,Z,V,X){let A=[],L=!0;while(!this.eat(Q)){if(!L){if(this.expect(M.comma),Z&&this.afterTrailingComma(Q))break}else L=!1;let I;if(V&&this.type===M.comma)I=null;else if(this.type===M.ellipsis){if(I=this.parseSpread(X),this.maybeInArrowParameters&&this.match(M.colon))I.typeAnnotation=this.tsParseTypeAnnotation();if(X&&this.type===M.comma&&X.trailingComma<0)X.trailingComma=this.start}else I=this.parseMaybeAssign(!1,X,this.parseParenItem);A.push(I)}return A}parseSubscript(Q,Z,V,X,A,L,I){let b=L;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(M.prefix)){this.exprAllowed=!1,this.next();let q8=this.startNodeAt(Z,V);return q8.expression=Q,Q=this.finishNode(q8,"TSNonNullExpression"),Q}let u=!1;if(this.match(M.questionDot)&&this.lookaheadCharCode()===60){if(X)return Q;Q.optional=!0,b=u=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(M.bitShift)){let q8,Z8=this.tsTryParseAndCatch(()=>{if(!X&&this.atPossibleAsyncArrow(Q)){let Y8=this.tsTryParseGenericAsyncArrowFunction(Z,V,I);if(Y8)return Q=Y8,Q}let l=this.tsParseTypeArgumentsInExpression();if(!l)return Q;if(u&&!this.match(M.parenL))return q8=this.curPosition(),Q;if(D(this.type)||this.type===M.backQuote){let Y8=this.parseTaggedTemplateExpression(Q,Z,V,b);return Y8.typeArguments=l,Y8}if(!X&&this.eat(M.parenL)){let Y8=new M9,J8=this.startNodeAt(Z,V);if(J8.callee=Q,J8.arguments=this.parseExprList(M.parenR,this.ecmaVersion>=8,!1,Y8),this.tsCheckForInvalidTypeCasts(J8.arguments),J8.typeArguments=l,b)J8.optional=u;return this.checkExpressionErrors(Y8,!0),Q=this.finishNode(J8,"CallExpression"),Q}let W8=this.type;if(this.tsMatchRightRelational()||W8===M.bitShift||W8!==M.parenL&&KA(W8)&&!this.hasPrecedingLineBreak())return;let s=this.startNodeAt(Z,V);return s.expression=Q,s.typeArguments=l,this.finishNode(s,"TSInstantiationExpression")});if(q8)this.unexpected(q8);if(Z8){if(Z8.type==="TSInstantiationExpression"&&(this.match(M.dot)||this.match(M.questionDot)&&this.lookaheadCharCode()!==40))this.raise(this.start,p.InvalidPropertyAccessAfterInstantiationExpression);return Q=Z8,Q}}let j=this.ecmaVersion>=11,a=j&&this.eat(M.questionDot);if(X&&a)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");let P8=this.eat(M.bracketL);if(P8||a&&this.type!==M.parenL&&this.type!==M.backQuote||this.eat(M.dot)){let q8=this.startNodeAt(Z,V);if(q8.object=Q,P8)q8.property=this.parseExpression(),this.expect(M.bracketR);else if(this.type===M.privateId&&Q.type!=="Super")q8.property=this.parsePrivateIdent();else q8.property=this.parseIdent(this.options.allowReserved!=="never");if(q8.computed=!!P8,j)q8.optional=a;Q=this.finishNode(q8,"MemberExpression")}else if(!X&&this.eat(M.parenL)){let q8=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let Z8=new M9,l=this.yieldPos,W8=this.awaitPos,s=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;let Y8=this.parseExprList(M.parenR,this.ecmaVersion>=8,!1,Z8);if(A&&!a&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(Z8,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");this.yieldPos=l,this.awaitPos=W8,this.awaitIdentPos=s,Q=this.parseSubscriptAsyncArrow(Z,V,Y8,I)}else{this.checkExpressionErrors(Z8,!0),this.yieldPos=l||this.yieldPos,this.awaitPos=W8||this.awaitPos,this.awaitIdentPos=s||this.awaitIdentPos;let J8=this.startNodeAt(Z,V);if(J8.callee=Q,J8.arguments=Y8,j)J8.optional=a;Q=this.finishNode(J8,"CallExpression")}this.maybeInArrowParameters=q8}else if(this.type===M.backQuote){if(a||b)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");let q8=this.startNodeAt(Z,V);q8.tag=Q,q8.quasi=this.parseTemplate({isTagged:!0}),Q=this.finishNode(q8,"TaggedTemplateExpression")}return Q}parseGetterSetter(Q){Q.kind=Q.key.name,this.parsePropertyName(Q);let Z=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(Q.value=this.parseMethod(!1),Z)Q.value.typeParameters=Z;let V=Q.kind==="get"?0:1,X=Q.value.params[0];if(V=X&&this.isThisParam(X)?V+1:V,Q.value.params.length!==V){let L=Q.value.start;if(Q.kind==="get")this.raiseRecoverable(L,"getter should have no params");else this.raiseRecoverable(L,"setter should have exactly one param")}else if(Q.kind==="set"&&Q.value.params[0].type==="RestElement")this.raiseRecoverable(Q.value.params[0].start,"Setter cannot use rest params")}parsePropertyValue(Q,Z,V,X,A,L,I,b){if(this.tsMatchLeftRelational()){if(Z)this.unexpected();Q.kind="init",Q.method=!0;let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(Q.value=this.parseMethod(V,X),u)Q.value.typeParameters=u;return}return super.parsePropertyValue(Q,Z,V,X,A,L,I,b)}parseProperty(Q,Z){if(!Q){let V=[];if(this.match(B.at))while(this.match(B.at))V.push(this.parseDecorator());let X=super.parseProperty(Q,Z);if(X.type==="SpreadElement"){if(V.length)this.raise(X.start,$q.SpreadElementDecorator)}if(V.length)X.decorators=V,V=[];return X}return super.parseProperty(Q,Z)}parseCatchClauseParam(){let Q=this.parseBindingAtom(),Z=Q.type==="Identifier";this.enterScope(Z?z8.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(Q,Z?z8.BIND_SIMPLE_CATCH:z8.BIND_LEXICAL);let V=this.tsTryParseTypeAnnotation();if(V)Q.typeAnnotation=V,this.resetEndLocation(Q);return this.expect(M.parenR),Q}parseClass(Q,Z){let V=this.inAbstractClass;this.inAbstractClass=!!Q.abstract;try{this.next(),this.takeDecorators(Q);let X=this.strict;this.strict=!0,this.parseClassId(Q,Z),this.parseClassSuper(Q);let A=this.enterClassBody(),L=this.startNode(),I=!1;L.body=[];let b=[];this.expect(M.braceL);while(this.type!==M.braceR){if(this.match(B.at)){b.push(this.parseDecorator());continue}let u=this.parseClassElement(Q.superClass!==null);if(b.length)u.decorators=b,this.resetStartLocationFromNode(u,b[0]),b=[];if(u){if(L.body.push(u),u.type==="MethodDefinition"&&u.kind==="constructor"&&u.value.type==="FunctionExpression"){if(I)this.raiseRecoverable(u.start,"Duplicate constructor in the same class");if(I=!0,u.decorators&&u.decorators.length>0)this.raise(u.start,$q.DecoratorConstructor)}else if(u.key&&u.key.type==="PrivateIdentifier"&&u.value?.type!=="TSDeclareMethod"&&PA(A,u))this.raiseRecoverable(u.key.start,`Identifier '#${u.key.name}' has already been declared`)}}if(this.strict=X,this.next(),b.length)this.raise(this.start,$q.TrailingDecorator);return Q.body=this.finishNode(L,"ClassBody"),this.exitClassBody(),this.finishNode(Q,Z?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=V}}parseClassFunctionParams(){let Q=this.tsTryParseTypeParameters(),Z=this.parseBindingList(M.parenR,!1,this.ecmaVersion>=8,!0);if(Q)Z.typeParameters=Q;return Z}parseMethod(Q,Z,V,X,A){let L=this.startNode(),I=this.yieldPos,b=this.awaitPos,u=this.awaitIdentPos;if(this.initFunction(L),this.ecmaVersion>=6)L.generator=Q;if(this.ecmaVersion>=8)L.async=!!Z;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(G7(Z,L.generator)|z8.SCOPE_SUPER|(V?z8.SCOPE_DIRECT_SUPER:0)),this.expect(M.parenL),L.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(L,!1,!0,!1,{isClassMethod:X}),this.yieldPos=I,this.awaitPos=b,this.awaitIdentPos=u,A&&A.abstract){if(!!L.body){let{key:a}=A;this.raise(A.start,p.AbstractMethodHasImplementation({methodName:a.type==="Identifier"&&!A.computed?a.name:`[${this.input.slice(a.start,a.end)}]`}))}}return this.finishNode(L,"FunctionExpression")}static parse(Q,Z){if(Z.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else Z.locations=!0;let V=new this(Z,Q);if(R)V.isAmbientContext=!0;return V.parse()}static parseExpressionAt(Q,Z,V){if(V.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else V.locations=!0;let X=new this(V,Q,Z);if(R)X.isAmbientContext=!0;return X.nextToken(),X.parseExpression()}parseImportSpecifier(){if(this.ts_isContextual(B.type)){let Z=this.startNode();return Z.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(Z,!0,this.importOrExportOuterKind==="type"),this.finishNode(Z,"ImportSpecifier")}else{let Z=super.parseImportSpecifier();return Z.importKind="value",Z}}parseExportSpecifier(Q){let Z=this.ts_isContextual(B.type);if(!this.match(M.string)&&Z){let X=this.startNode();return X.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(X,!1,this.importOrExportOuterKind==="type"),this.finishNode(X,"ExportSpecifier"),this.checkExport(Q,X.exported,X.exported.start),X}else{let X=super.parseExportSpecifier(Q);return X.exportKind="value",X}}parseTypeOnlyImportExportSpecifier(Q,Z,V){let X=Z?"imported":"local",A=Z?"local":"exported",L=Q[X],I,b=!1,u=!0,j=L.start;if(this.isContextual("as")){let P8=this.parseIdent();if(this.isContextual("as")){let q8=this.parseIdent();if(S(this.type))b=!0,L=P8,I=Z?this.parseIdent():this.parseModuleExportName(),u=!1;else I=q8,u=!1}else if(S(this.type))u=!1,I=Z?this.parseIdent():this.parseModuleExportName();else b=!0,L=P8}else if(S(this.type))if(b=!0,Z){if(L=super.parseIdent(!0),!this.isContextual("as"))this.checkUnreserved(L)}else L=this.parseModuleExportName();if(b&&V)this.raise(j,Z?p.TypeModifierIsUsedInTypeImports:p.TypeModifierIsUsedInTypeExports);Q[X]=L,Q[A]=I;let a=Z?"importKind":"exportKind";if(Q[a]=b?"type":"value",u&&this.eatContextual("as"))Q[A]=Z?this.parseIdent():this.parseModuleExportName();if(!Q[A])Q[A]=this.copyNode(Q[X]);if(Z)this.checkLValSimple(Q[A],z8.BIND_LEXICAL)}raiseCommonCheck(Q,Z,V){switch(Z){case"Comma is not permitted after the rest element":if(this.isAmbientContext&&this.match(M.comma)&&this.lookaheadCharCode()===41){this.next();return}else return super.raise(Q,Z)}return V?super.raiseRecoverable(Q,Z):super.raise(Q,Z)}raiseRecoverable(Q,Z){return this.raiseCommonCheck(Q,Z,!0)}raise(Q,Z){return this.raiseCommonCheck(Q,Z,!0)}updateContext(Q){let{type:Z}=this;if(Z==M.braceL){var V=this.curContext();if(V==T.tc_oTag)this.context.push($.b_expr);else if(V==T.tc_expr)this.context.push($.b_tmpl);else super.updateContext(Q);this.exprAllowed=!0}else if(Z===M.slash&&Q===B.jsxTagStart)this.context.length-=2,this.context.push(T.tc_cTag),this.exprAllowed=!1;else return super.updateContext(Q)}jsx_parseOpeningElementAt(Q,Z){let V=this.startNodeAt(Q,Z),X=this.jsx_parseElementName();if(X)V.name=X;if(this.match(M.relational)||this.match(M.bitShift)){let A=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(A)V.typeArguments=A}V.attributes=[];while(this.type!==M.slash&&this.type!==B.jsxTagEnd)V.attributes.push(this.jsx_parseAttribute());return V.selfClosing=this.eat(M.slash),this.expect(B.jsxTagEnd),this.finishNode(V,X?"JSXOpeningElement":"JSXOpeningFragment")}enterScope(Q){if(Q===H9)this.importsStack.push([]);super.enterScope(Q);let Z=super.currentScope();Z.types=[],Z.enums=[],Z.constEnums=[],Z.classes=[],Z.exportOnlyBindings=[]}exitScope(){if(super.currentScope().flags===H9)this.importsStack.pop();super.exitScope()}hasImport(Q,Z){let V=this.importsStack.length;if(this.importsStack[V-1].indexOf(Q)>-1)return!0;if(!Z&&V>1){for(let X=0;X<V-1;X++)if(this.importsStack[X].indexOf(Q)>-1)return!0}return!1}maybeExportDefined(Q,Z){if(this.inModule&&Q.flags&z8.SCOPE_TOP)delete this.undefinedExports[Z]}declareName(Q,Z,V){if(Z&z8.BIND_FLAGS_TS_IMPORT){if(this.hasImport(Q,!0))this.raise(V,`Identifier '${Q}' has already been declared.`);this.importsStack[this.importsStack.length-1].push(Q);return}let X=this.currentScope();if(Z&z8.BIND_FLAGS_TS_EXPORT_ONLY){this.maybeExportDefined(X,Q),X.exportOnlyBindings.push(Q);return}if(Z===z8.BIND_TS_TYPE||Z===z8.BIND_TS_INTERFACE){if(Z===z8.BIND_TS_TYPE&&X.types.includes(Q))this.raise(V,`type '${Q}' has already been declared.`);X.types.push(Q)}else super.declareName(Q,Z,V);if(Z&z8.BIND_FLAGS_TS_ENUM)X.enums.push(Q);if(Z&z8.BIND_FLAGS_TS_CONST_ENUM)X.constEnums.push(Q);if(Z&z8.BIND_FLAGS_CLASS)X.classes.push(Q)}checkLocalExport(Q){let{name:Z}=Q;if(this.hasImport(Z))return;let V=this.scopeStack.length;for(let X=V-1;X>=0;X--){let A=this.scopeStack[X];if(A.types.indexOf(Z)>-1||A.exportOnlyBindings.indexOf(Z)>-1)return}super.checkLocalExport(Q)}}return k}}class b4 extends Error{message="";#q;constructor(q,R,P){super(R);this.stack="",this.#q=new n1(q,R,P),Object.assign(this,this.#q),this.name="CompileError"}toString(){return this.#q.toString()}toJSON(){return this.#q.toJSON()}}function c(q,R,P){let C=typeof q==="number"?q:q?.start,O=typeof q==="number"?q:q?.end;throw new b4(R,P,C!==void 0?[C,O??C]:void 0)}function h4(q,R){c(q,"options_invalid_value",`Invalid compiler option: ${R}
37
- https://svelte.dev/e/options_invalid_value`)}function g4(q,R){c(q,"options_removed",`Invalid compiler option: ${R}
38
- https://svelte.dev/e/options_removed`)}function l4(q,R){c(q,"options_unrecognised",`Unrecognised compiler option ${R}
39
- https://svelte.dev/e/options_unrecognised`)}function Lq(q,R){c(q,"declaration_duplicate",`\`${R}\` has already been declared
40
- https://svelte.dev/e/declaration_duplicate`)}function _4(q){c(q,"dollar_binding_invalid",`The $ name is reserved, and cannot be used for variables and imports
41
- https://svelte.dev/e/dollar_binding_invalid`)}function m4(q){c(q,"dollar_prefix_invalid",`The $ prefix is reserved, and cannot be used for variables and imports
42
- https://svelte.dev/e/dollar_prefix_invalid`)}function x4(q){c(q,"css_empty_declaration",`Declaration cannot be empty
43
- https://svelte.dev/e/css_empty_declaration`)}function B7(q){c(q,"css_expected_identifier",`Expected a valid CSS identifier
44
- https://svelte.dev/e/css_expected_identifier`)}function U7(q){c(q,"css_selector_invalid",`Invalid selector
45
- https://svelte.dev/e/css_selector_invalid`)}function p4(q){c(q,"attribute_duplicate",`Attributes need to be unique
46
- https://svelte.dev/e/attribute_duplicate`)}function c4(q){c(q,"attribute_empty_shorthand",`Attribute shorthand cannot be empty
47
- https://svelte.dev/e/attribute_empty_shorthand`)}function $7(q,R){c(q,"block_duplicate_clause",`${R} cannot appear more than once within a block
48
- https://svelte.dev/e/block_duplicate_clause`)}function i4(q){c(q,"block_invalid_continuation_placement",`{:...} block is invalid at this position (did you forget to close the preceding element or block?)
49
- https://svelte.dev/e/block_invalid_continuation_placement`)}function r4(q){c(q,"block_invalid_elseif",`'elseif' should be 'else if'
50
- https://svelte.dev/e/block_invalid_elseif`)}function d4(q,R,P){c(q,"block_invalid_placement",`{#${R} ...} block cannot be ${P}
51
- https://svelte.dev/e/block_invalid_placement`)}function a4(q){c(q,"block_unclosed",`Block was left open
52
- https://svelte.dev/e/block_unclosed`)}function A7(q){c(q,"block_unexpected_close",`Unexpected block closing tag
53
- https://svelte.dev/e/block_unexpected_close`)}function s4(q){c(q,"const_tag_invalid_expression",`{@const ...} must consist of a single variable declaration
54
- https://svelte.dev/e/const_tag_invalid_expression`)}function o4(q){c(q,"debug_tag_invalid_arguments",`{@debug ...} arguments must be identifiers, not arbitrary expressions
55
- https://svelte.dev/e/debug_tag_invalid_arguments`)}function jq(q){c(q,"declaration_tag_invalid_type","Declaration tags must be `let` or `const` declarations\nhttps://svelte.dev/e/declaration_tag_invalid_type")}function n4(q){c(q,"directive_invalid_value",`Directive value must be a JavaScript expression enclosed in curly braces
56
- https://svelte.dev/e/directive_invalid_value`)}function t4(q,R){c(q,"directive_missing_name",`\`${R}\` name cannot be empty
57
- https://svelte.dev/e/directive_missing_name`)}function e4(q,R){c(q,"element_invalid_closing_tag",`\`</${R}>\` attempted to close an element that was not open
58
- https://svelte.dev/e/element_invalid_closing_tag`)}function q3(q,R,P){c(q,"element_invalid_closing_tag_autoclosed",`\`</${R}>\` attempted to close element that was already automatically closed by \`<${P}>\` (cannot nest \`<${P}>\` inside \`<${R}>\`)
59
- https://svelte.dev/e/element_invalid_closing_tag_autoclosed`)}function wq(q,R){c(q,"element_unclosed",`\`<${R}>\` was left open
60
- https://svelte.dev/e/element_unclosed`)}function L7(q){c(q,"expected_attribute_value",`Expected attribute value
61
- https://svelte.dev/e/expected_attribute_value`)}function R3(q){c(q,"expected_block_type",`Expected 'if', 'each', 'await', 'key' or 'snippet'
62
- https://svelte.dev/e/expected_block_type`)}function j7(q){c(q,"expected_identifier",`Expected an identifier
63
- https://svelte.dev/e/expected_identifier`)}function P3(q){c(q,"expected_pattern",`Expected identifier or destructure pattern
64
- https://svelte.dev/e/expected_pattern`)}function C3(q){c(q,"expected_tag",`Expected 'html', 'render', 'attach', 'const', or 'debug'
65
- https://svelte.dev/e/expected_tag`)}function C0(q,R){c(q,"expected_token",`Expected token ${R}
66
- https://svelte.dev/e/expected_token`)}function O3(q){c(q,"expected_whitespace",`Expected whitespace
67
- https://svelte.dev/e/expected_whitespace`)}function H3(q,R){c(q,"js_parse_error",`${R}
68
- https://svelte.dev/e/js_parse_error`)}function M3(q){c(q,"render_tag_invalid_expression","`{@render ...}` tags can only contain call expressions\nhttps://svelte.dev/e/render_tag_invalid_expression")}function w7(q){c(q,"script_duplicate","A component can have a single top-level `<script>` element and/or a single top-level `<script module>` element\nhttps://svelte.dev/e/script_duplicate")}function Q3(q,R){c(q,"script_invalid_attribute_value",`If the \`${R}\` attribute is supplied, it must be a boolean attribute
69
- https://svelte.dev/e/script_invalid_attribute_value`)}function I7(q){c(q,"script_invalid_context",`If the context attribute is supplied, its value must be "module"
70
- https://svelte.dev/e/script_invalid_context`)}function Z3(q,R){c(q,"script_reserved_attribute",`The \`${R}\` attribute is reserved and cannot be used
71
- https://svelte.dev/e/script_reserved_attribute`)}function Y3(q){c(q,"style_duplicate","A component can have a single top-level `<style>` element\nhttps://svelte.dev/e/style_duplicate")}function F3(q){c(q,"svelte_component_invalid_this","Invalid component definition must be an `{expression}`\nhttps://svelte.dev/e/svelte_component_invalid_this")}function V3(q){c(q,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute\nhttps://svelte.dev/e/svelte_component_missing_this")}function f7(q){c(q,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value\nhttps://svelte.dev/e/svelte_element_missing_this")}function J3(q,R){c(q,"svelte_meta_duplicate",`A component can only have one \`<${R}>\` element
72
- https://svelte.dev/e/svelte_meta_duplicate`)}function K3(q,R){c(q,"svelte_meta_invalid_content",`<${R}> cannot have children
73
- https://svelte.dev/e/svelte_meta_invalid_content`)}function W3(q,R){c(q,"svelte_meta_invalid_placement",`\`<${R}>\` tags cannot be inside elements or blocks
74
- https://svelte.dev/e/svelte_meta_invalid_placement`)}function X3(q,R){c(q,"svelte_meta_invalid_tag",`Valid \`<svelte:...>\` tag names are ${R}
75
- https://svelte.dev/e/svelte_meta_invalid_tag`)}function G3(q){c(q,"svelte_options_deprecated_tag",`"tag" option is deprecated use "customElement" instead
76
- https://svelte.dev/e/svelte_options_deprecated_tag`)}function z3(q){c(q,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes\nhttps://svelte.dev/e/svelte_options_invalid_attribute")}function Iq(q,R){c(q,"svelte_options_invalid_attribute_value",`Value must be ${R}, if specified
77
- https://svelte.dev/e/svelte_options_invalid_attribute_value`)}function fq(q){c(q,"svelte_options_invalid_customelement",'"customElement" must be a string literal defining a valid custom element name or an object of the form { tag?: string; shadow?: "open" | "none" | `ShadowRootInit`; props?: { [key: string]: { attribute?: string; reflect?: boolean; type: .. } } }\nhttps://svelte.dev/e/svelte_options_invalid_customelement')}function x0(q){c(q,"svelte_options_invalid_customelement_props",`"props" must be a statically analyzable object literal of the form "{ [key: string]: { attribute?: string; reflect?: boolean; type?: "String" | "Boolean" | "Number" | "Array" | "Object" }"
78
- https://svelte.dev/e/svelte_options_invalid_customelement_props`)}function B3(q){c(q,"svelte_options_invalid_customelement_shadow",'"shadow" must be either "open", "none" or `ShadowRootInit` object.\nhttps://svelte.dev/e/svelte_options_invalid_customelement_shadow')}function S7(q){c(q,"svelte_options_invalid_tagname",`Tag name must be lowercase and hyphenated
79
- https://svelte.dev/e/svelte_options_invalid_tagname`)}function U3(q){c(q,"svelte_options_reserved_tagname",`Tag name is reserved
80
- https://svelte.dev/e/svelte_options_reserved_tagname`)}function $3(q,R){c(q,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${R}'
81
- https://svelte.dev/e/svelte_options_unknown_attribute`)}function A3(q){c(q,"tag_invalid_name",`Expected a valid element or component name. Components must have a valid variable name or dot notation expression
82
- https://svelte.dev/e/tag_invalid_name`)}function L3(q,R,P){c(q,"tag_invalid_placement",`{@${R} ...} tag cannot be ${P}
83
- https://svelte.dev/e/tag_invalid_placement`)}function d8(q){c(q,"unexpected_eof",`Unexpected end of input
84
- https://svelte.dev/e/unexpected_eof`)}function j3(q,R){c(q,"unexpected_reserved_word",`'${R}' is a reserved word in JavaScript and cannot be used here
85
- https://svelte.dev/e/unexpected_reserved_word`)}function w3(q){c(q,"unterminated_string_constant",`Unterminated string constant
86
- https://svelte.dev/e/unterminated_string_constant`)}function I3(q){c(q,"void_element_invalid_content",`Void elements cannot have children or closing tags
87
- https://svelte.dev/e/void_element_invalid_content`)}var Sq=j8,v7=Sq.extend(y4());function T7(q,R,P,C){let O=P?v7:Sq,{onComment:H,add_comments:M}=D7(q,R),F=O.prototype.parseStatement;if(C)O.prototype.parseStatement=function(...Y){let K=F.call(this,...Y);return this.undefinedExports={},K};try{let Y=O.parse(q,{onComment:H,sourceType:"module",ecmaVersion:16,locations:!0});return M(Y),Y}catch(Y){return N7(Y)}finally{if(C)O.prototype.parseStatement=F}}function p0(q,R,P){let C=q.ts?v7:Sq,{onComment:O,add_comments:H}=D7(R,q.root.comments,P);try{let M=C.parseExpressionAt(R,P,{onComment:O,sourceType:"module",ecmaVersion:16,locations:!0,preserveParens:!0});return H(M),M}catch(M){N7(M)}}function f3(q,R,P){let C=q.ts?v7:Sq,{onComment:O,add_comments:H}=D7(R,q.root.comments,P);try{let M=new C({onComment:O,sourceType:"module",ecmaVersion:16,locations:!0},R,P);M.nextToken();let F=M.parseStatement(null,!0,Object.create(null));return H(F),F}catch(M){if(M.pos===R.length)d8(R.length);N7(M)}}var GA=/ \(\d+:\d+\)$/;function N7(q){H3(q.pos,q.message.replace(GA,""))}function S1(q){return U8(q,null,{ParenthesizedExpression(R,P){return P.visit(R.expression)}})}function D7(q,R,P=0){return{onComment:(C,O,H,M,F,Y)=>{if(C&&/\n/.test(O)){let K=H;while(K>0&&q[K-1]!==`
88
- `)K-=1;let J=K;while(/[ \t]/.test(q[J]))J+=1;let $=q.slice(K,J);O=O.replace(new RegExp(`^${$}`,"gm"),"")}R.push({type:C?"Block":"Line",value:O,start:H,end:M,loc:{start:F,end:Y}})},add_comments(C){if(R.length===0)return;if(R=R.filter((O)=>O.start>=P).map(({type:O,value:H,start:M,end:F})=>({type:O,value:H,start:M,end:F})),U8(C,null,{_(O,{next:H,path:M}){let F;while(R[0]&&R[0].start<O.start)F=R.shift(),(O.leadingComments||=[]).push(F);if(H(),R[0]){let Y=M.at(-1);if(Y===void 0||O.end!==Y.end){let K=q.slice(O.end,R[0].start);if((Y?.type==="BlockStatement"||Y?.type==="Program")&&Y.body.indexOf(O)===Y.body.length-1||Y?.type==="ArrayExpression"&&Y.elements.indexOf(O)===Y.elements.length-1||Y?.type==="ObjectExpression"&&Y.properties.indexOf(O)===Y.properties.length-1){let $=O.end;while(R.length){let U=R[0];if(Y&&U.start>=Y.end)break;(O.trailingComments||=[]).push(U),R.shift(),$=U.end}}else if(O.end<=R[0].start&&/^[,) \t]*$/.test(K))O.trailingComments=[R.shift()]}}}}),R.length>0&&(R[0].start>=C.end||C.type==="Program"))(C.trailingComments||=[]).push(...R.splice(0))}}}function u7(q){if(q<0)return 1/0;return q}function BA(q,R,P){let C;if(P==="`")C=q;else C=q.slice(0,u7(q.indexOf(`
89
- `,R)));return E7(C,R,P)}function UA(q,R){let P=E7(q,R,"/"),C=E7(q,R,`
90
- `);return P<C?P:1/0}function E7(q,R,P){let C=R;while(!0){let O=q.indexOf(P,C);if(O===-1)return 1/0;if($A(q,O-1)%2===0)return O;C=O+1}}function $A(q,R){let P=R,C=0;while(q[P]==="\\")C++,P--;return C}function Tq(q,R,P){let C=vq[P],O=1,H=R;while(O>0&&H<q.length){let M=q[H];switch(M){case"'":case'"':case"`":H=BA(q,H+1,M)+1;continue;case"/":{let F=q[H+1];if(!F){H++;continue}if(F==="/"){H=u7(q.indexOf(`
91
- `,H+1))+1;continue}if(F==="*"){H=u7(q.indexOf("*/",H+1))+2;continue}let Y=UA(q,H+1)+1;if(Y===1/0)H++;else H=Y;continue}default:{let F=q[H];if(F===P)O++;else if(F===C)O--;if(O===0)return H;H++}}}return}var vq={"{":"}","(":")","[":"]"},AA=new Set(Object.values(vq));function Z9(q,R,P=vq){let C=P===vq?AA:new Set(Object.values(P)),O=[],H=R;while(H<q.template.length){let M=q.template[H++];if(M==="'"||M==='"'||M==="`"){H=LA(q,H,M);continue}if(M in P)O.push(M);else if(C.has(M)){let F=O.pop(),Y=P[F];if(M!==Y)C0(H-1,Y);if(O.length===0)return H}}d8(q.template.length)}function LA(q,R,P){let C=!1,O=R;while(O<q.template.length){let H=q.template[O++];if(C){C=!1;continue}if(H===P)return O;if(H==="\\")C=!0;if(P==="`"&&H==="$"&&q.template[O]==="{")O=Z9(q,O)}w3(R)}function k7(q,R){let P=Tq(q.template,q.index,R??"{");if(P){let C=q.index;return q.index=P,{type:"Identifier",start:C,end:P,name:""}}}function h8(q,R,P){try{let C=p0(q,q.template,q.index),O=C.end,H=q.root.comments.at(-1);if(H&&H.end>O)O=H.end;return q.index=O,S1(C)}catch(C){if(q.loose&&!P){let O=k7(q,R);if(O)return O}throw C}}function Nq(q){return q.replace(/(`|\${|\\)/g,"\\$1")}function C8(q=[]){return{type:"ArrayExpression",elements:q}}function Y9(q){return{type:"ArrayPattern",elements:q}}function Q8(q,R,P=!1){if(P&&R.type==="AwaitExpression"){if(!Z1(R.argument))return Q8(q,R.argument)}return{type:"ArrowFunctionExpression",params:q,body:R,expression:R.type!=="BlockStatement",generator:!1,async:P}}function c0(q){return{type:"AwaitExpression",argument:q}}function e(q){return{type:"BlockStatement",body:q}}function h(q,...R){if(typeof q==="string")q=_(q);R=R.slice();let P=R.length,C=!0;while(P--)if(!R[P])if(C)R.pop();else R[P]=O0;else C=!1;return{type:"CallExpression",callee:q,arguments:R,optional:!1}}function y7(q,R){return{type:"UnaryExpression",argument:R,operator:q,prefix:!0}}var O0=y7("void",i(0));function v1(q,R){return{type:"VariableDeclaration",kind:q,declarations:R}}function i0(q,R){if(typeof q==="string")q=_(q);return{type:"VariableDeclarator",id:q,init:R}}var _8={type:"EmptyStatement"};function _(q,R){let P={type:"Identifier",name:q};if(R)P.loc=R;return P}function i(q){return{type:"Literal",value:q}}function S8(q){return{type:"ObjectExpression",properties:q}}function H0(q,R,P,C=!1){return{type:"Property",kind:q,key:R,value:P,method:!1,shorthand:!1,computed:C}}function Dq(q,R=!1){return{type:"TemplateElement",value:{raw:Nq(q),cooked:q},tail:R}}function o(q){return{type:"ExpressionStatement",expression:q}}function uq(q,R){return{type:"TemplateLiteral",quasis:q,expressions:R}}function R8(q,R=!1){return S3(Q8([],q,R))}function S3(q){if(q.async===!1&&q.body.type==="CallExpression"&&q.body.callee.type==="Identifier"&&q.params.length===q.body.arguments.length&&q.params.every((R,P)=>{let C=q.body.arguments[P];return R.type==="Identifier"&&C.type==="Identifier"&&R.name===C.name}))return q.body.callee;return q}var I8=i(!0),Eq=i(!1),r0=i(null);function y0(q,R){return v1("let",[i0(q,R)])}function M0(q,R){return v1("const",[i0(q,R)])}function Q1(q){return qq.test(q)?_(q):i(q)}function p8(q){return Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="Text"}function V9(q){return q.value!==!0&&!Array.isArray(q.value)||Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="ExpressionTag"}function T1(q){return Array.isArray(q.value)?q.value[0].expression:q.value.expression}function Z1(q){let R=!1;return U8(q,null,{AwaitExpression(P,C){R=!0,C.stop()},FunctionDeclaration(){},FunctionExpression(){},ArrowFunctionExpression(){}}),R}function N1(q){return h(c0(h("$.save",q)))}var jA=/<\/script\s*>/,wA=/<\/script\s*>/y,IA=["server","client","worker","test","default"],fA=["context","generics","lang","module"];function v3(q,R,P){let C=q.index,O=q.read_until(jA);if(q.index>=q.template.length)wq(q.template.length,"script");let H=q.template.slice(0,C).replace(e9," ")+O;q.read(wA);let M=T7(H,q.root.comments,q.ts,!0);if(M.start=C,M.loc)({line:M.loc.start.line,column:M.loc.start.column}=w8(R)),{line:M.loc.end.line,column:M.loc.end.column}=w8(q.index);let F="default";for(let Y of P){if(IA.includes(Y.name))Z3(Y,Y.name);if(!fA.includes(Y.name))u5(Y);if(Y.name==="module"){if(Y.value!==!0)Q3(Y,Y.name);F="module"}if(Y.name==="context"){if(Y.value===!0||!p8(Y))I7(Y);if(Y.value[0].data!=="module")I7(Y);F="module"}}return{type:"Script",start:R,end:q.index,context:F,content:M,attributes:P}}var SA=/[~^$*|]?=/y,vA=/[\s\]]/,TA=/[a-zA-Z]+/y,D3=/(\+|~|>|\|\|)/y,T3=/\d+(\.\d+)?%/y,N3=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/y,NA=/[\s:]/,DA=/-?\d/y,uA=/[a-zA-Z0-9_-]/,EA=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y,kA=/\*\//,yA=/-->/;function h7(q,R,P){let C=q.index,O=bA(q,(M)=>M.match("</style")||M.index>=M.template.length),H=q.index;return q.eat("</style",!0),q.read(/\s*>/y),{type:"StyleSheet",start:R,end:q.index,attributes:P,children:O,content:{start:C,end:H,styles:q.template.slice(C,H),comment:null}}}function bA(q,R){let P=[];while(D1(q),!R(q))if(q.match("@"))P.push(u3(q));else P.push(E3(q));return P}function u3(q){let R=q.index;q.eat("@",!0);let P=b0(q),C=g7(q),O=null;if(q.match("{"))O=k3(q);else q.eat(";",!0);return{type:"Atrule",start:R,end:q.index,name:P,prelude:C,block:O}}function E3(q){let R=q.index;return{type:"Rule",prelude:b7(q),block:k3(q),start:R,end:q.index,metadata:{parent_rule:null,has_local_selectors:!1,has_global_selectors:!1,is_global_block:!1}}}function b7(q,R=!1){let P=[];D1(q);let C=q.index;while(q.index<q.template.length){P.push(hA(q,R));let O=q.index;if(D1(q),R?q.match(")"):q.match("{"))return{type:"SelectorList",start:C,end:O,children:P};else q.eat(",",!0),D1(q)}d8(q.template.length)}function hA(q,R=!1){let P=q.index,C=[];function O(M,F){return{type:"RelativeSelector",combinator:M,selectors:[],start:F,end:-1,metadata:{is_global:!1,is_global_like:!1,scoped:!1}}}let H=O(null,q.index);while(q.index<q.template.length){let M=q.index;if(q.eat("&"))H.selectors.push({type:"NestingSelector",name:"&",start:M,end:q.index});else if(q.eat("*")){let K="*";if(q.eat("|"))K=b0(q);H.selectors.push({type:"TypeSelector",name:K,start:M,end:q.index})}else if(q.eat("#"))H.selectors.push({type:"IdSelector",name:b0(q),start:M,end:q.index});else if(q.eat("."))H.selectors.push({type:"ClassSelector",name:b0(q),start:M,end:q.index});else if(q.eat("::")){if(H.selectors.push({type:"PseudoElementSelector",name:b0(q),start:M,end:q.index}),q.eat("("))b7(q,!0),q.eat(")",!0)}else if(q.eat(":")){let K=b0(q),J=null;if(q.eat("("))J=b7(q,!0),q.eat(")",!0);H.selectors.push({type:"PseudoClassSelector",name:K,args:J,start:M,end:q.index})}else if(q.eat("[")){q.allow_whitespace();let K=b0(q);q.allow_whitespace();let J=null,$=q.read(SA);if($)q.allow_whitespace(),J=mA(q);q.allow_whitespace();let U=q.read(TA);q.allow_whitespace(),q.eat("]",!0),H.selectors.push({type:"AttributeSelector",start:M,end:q.index,name:K,matcher:$,value:J,flags:U})}else if(R&&q.match_regex(N3))H.selectors.push({type:"Nth",value:q.read(N3),start:M,end:q.index});else if(q.match_regex(T3))H.selectors.push({type:"Percentage",value:q.read(T3),start:M,end:q.index});else if(!q.match_regex(D3)){let K=b0(q);if(q.eat("|"))K=b0(q);H.selectors.push({type:"TypeSelector",name:K,start:M,end:q.index})}let F=q.index;if(D1(q),q.match(",")||(R?q.match(")"):q.match("{")))return q.index=F,H.end=F,C.push(H),{type:"ComplexSelector",start:P,end:F,children:C,metadata:{rule:null,is_global:!1,used:!1}};q.index=F;let Y=gA(q);if(Y){if(H.selectors.length>0)H.end=F,C.push(H);if(H=O(Y,Y.start),q.allow_whitespace(),q.match(",")||(R?q.match(")"):q.match("{")))U7(q.index)}}d8(q.template.length)}function gA(q){let R=q.index;q.allow_whitespace();let P=q.index,C=q.read(D3);if(C){let O=q.index;return q.allow_whitespace(),{type:"Combinator",name:C,start:P,end:O}}if(q.index!==R)return{type:"Combinator",name:" ",start:R,end:q.index};return null}function k3(q){let R=q.index;q.eat("{",!0);let P=[];while(q.index<q.template.length)if(D1(q),q.match("}"))break;else P.push(lA(q));return q.eat("}",!0),{type:"Block",start:R,end:q.index,children:P}}function lA(q){if(q.match("@"))return u3(q);let R=q.index;g7(q);let P=q.template[q.index];return q.index=R,P==="{"?E3(q):_A(q)}function _A(q){let R=q.index,P=q.read_until(NA);q.allow_whitespace(),q.eat(":");let C=q.index;q.allow_whitespace();let O=g7(q);if(!O&&!P.startsWith("--"))x4({start:R,end:C});let H=q.index;if(!q.match("}"))q.eat(";",!0);return{type:"Declaration",start:R,end:H,property:P,value:O}}function g7(q){let R="",P=!1,C=!1,O=null;while(q.index<q.template.length){let H=q.template[q.index];if(P){R+="\\"+H,P=!1,q.index++;continue}else if(H==="\\"){P=!0,q.index++;continue}else if(H===O)O=null;else if(H===")")C=!1;else if(O===null&&(H==='"'||H==="'"))O=H;else if(H==="("&&R.slice(-3)==="url")C=!0;else if((H===";"||H==="{"||H==="}")&&!C&&!O)return R.trim();else if(H==="/"&&!C&&!O&&q.template[q.index+1]==="*"){q.index+=2;while(q.index<q.template.length){if(q.template[q.index]==="*"&&q.template[q.index+1]==="/"){q.index+=2;break}q.index++}continue}R+=H,q.index++}d8(q.template.length)}function mA(q){let R="",P=!1,C=q.eat('"')?'"':q.eat("'")?"'":null;while(q.index<q.template.length){let O=q.template[q.index];if(P)R+="\\"+O,P=!1;else if(O==="\\")P=!0;else if(C?O===C:vA.test(O)){if(C)q.eat(C,!0);return R.trim()}else R+=O;q.index++}d8(q.template.length)}function b0(q){let R=q.index,P="";if(q.match_regex(DA))B7(R);while(q.index<q.template.length){let C=q.template[q.index];if(C==="\\"){let O=q.match_regex(EA);if(O)P+=String.fromCodePoint(parseInt(O.slice(1),16)),q.index+=O.length;else P+="\\"+q.template[q.index+1],q.index+=2}else if(C.codePointAt(0)>=160||uA.test(C))P+=C,q.index++;else break}if(P==="")B7(R);return P}function D1(q){q.allow_whitespace();while(q.match("/*")||q.match("<!--")){if(q.eat("/*"))q.read_until(kA),q.eat("*/",!0);if(q.eat("<!--"))q.read_until(yA),q.eat("-->",!0);q.allow_whitespace()}}var l7={"CounterClockwiseContourIntegral;":8755,"ClockwiseContourIntegral;":8754,"DoubleLongLeftRightArrow;":10234,"NotNestedGreaterGreater;":10914,"DiacriticalDoubleAcute;":733,"NotSquareSupersetEqual;":8931,"CloseCurlyDoubleQuote;":8221,"DoubleContourIntegral;":8751,"FilledVerySmallSquare;":9642,"NegativeVeryThinSpace;":8203,"NotPrecedesSlantEqual;":8928,"NotRightTriangleEqual;":8941,"NotSucceedsSlantEqual;":8929,"CapitalDifferentialD;":8517,"DoubleLeftRightArrow;":8660,"DoubleLongRightArrow;":10233,"EmptyVerySmallSquare;":9643,"NestedGreaterGreater;":8811,"NotDoubleVerticalBar;":8742,"NotGreaterSlantEqual;":10878,"NotLeftTriangleEqual;":8940,"NotSquareSubsetEqual;":8930,"OpenCurlyDoubleQuote;":8220,"ReverseUpEquilibrium;":10607,"DoubleLongLeftArrow;":10232,"DownLeftRightVector;":10576,"LeftArrowRightArrow;":8646,"NegativeMediumSpace;":8203,"NotGreaterFullEqual;":8807,"NotRightTriangleBar;":10704,"RightArrowLeftArrow;":8644,"SquareSupersetEqual;":8850,"leftrightsquigarrow;":8621,"DownRightTeeVector;":10591,"DownRightVectorBar;":10583,"LongLeftRightArrow;":10231,"Longleftrightarrow;":10234,"NegativeThickSpace;":8203,"NotLeftTriangleBar;":10703,"PrecedesSlantEqual;":8828,"ReverseEquilibrium;":8651,"RightDoubleBracket;":10215,"RightDownTeeVector;":10589,"RightDownVectorBar;":10581,"RightTriangleEqual;":8885,"SquareIntersection;":8851,"SucceedsSlantEqual;":8829,"blacktriangleright;":9656,"longleftrightarrow;":10231,"DoubleUpDownArrow;":8661,"DoubleVerticalBar;":8741,"DownLeftTeeVector;":10590,"DownLeftVectorBar;":10582,"FilledSmallSquare;":9724,"GreaterSlantEqual;":10878,"LeftDoubleBracket;":10214,"LeftDownTeeVector;":10593,"LeftDownVectorBar;":10585,"LeftTriangleEqual;":8884,"NegativeThinSpace;":8203,"NotGreaterGreater;":8811,"NotLessSlantEqual;":10877,"NotNestedLessLess;":10913,"NotReverseElement;":8716,"NotSquareSuperset;":8848,"NotTildeFullEqual;":8775,"RightAngleBracket;":10217,"RightUpDownVector;":10575,"SquareSubsetEqual;":8849,"VerticalSeparator;":10072,"blacktriangledown;":9662,"blacktriangleleft;":9666,"leftrightharpoons;":8651,"rightleftharpoons;":8652,"twoheadrightarrow;":8608,"DiacriticalAcute;":180,"DiacriticalGrave;":96,"DiacriticalTilde;":732,"DoubleRightArrow;":8658,"DownArrowUpArrow;":8693,"EmptySmallSquare;":9723,"GreaterEqualLess;":8923,"GreaterFullEqual;":8807,"LeftAngleBracket;":10216,"LeftUpDownVector;":10577,"LessEqualGreater;":8922,"NonBreakingSpace;":160,"NotPrecedesEqual;":10927,"NotRightTriangle;":8939,"NotSucceedsEqual;":10928,"NotSucceedsTilde;":8831,"NotSupersetEqual;":8841,"RightTriangleBar;":10704,"RightUpTeeVector;":10588,"RightUpVectorBar;":10580,"UnderParenthesis;":9181,"UpArrowDownArrow;":8645,"circlearrowright;":8635,"downharpoonright;":8642,"ntrianglerighteq;":8941,"rightharpoondown;":8641,"rightrightarrows;":8649,"twoheadleftarrow;":8606,"vartriangleright;":8883,"CloseCurlyQuote;":8217,"ContourIntegral;":8750,"DoubleDownArrow;":8659,"DoubleLeftArrow;":8656,"DownRightVector;":8641,"LeftRightVector;":10574,"LeftTriangleBar;":10703,"LeftUpTeeVector;":10592,"LeftUpVectorBar;":10584,"LowerRightArrow;":8600,"NotGreaterEqual;":8817,"NotGreaterTilde;":8821,"NotHumpDownHump;":8782,"NotLeftTriangle;":8938,"NotSquareSubset;":8847,"OverParenthesis;":9180,"RightDownVector;":8642,"ShortRightArrow;":8594,"UpperRightArrow;":8599,"bigtriangledown;":9661,"circlearrowleft;":8634,"curvearrowright;":8631,"downharpoonleft;":8643,"leftharpoondown;":8637,"leftrightarrows;":8646,"nLeftrightarrow;":8654,"nleftrightarrow;":8622,"ntrianglelefteq;":8940,"rightleftarrows;":8644,"rightsquigarrow;":8605,"rightthreetimes;":8908,"straightepsilon;":1013,"trianglerighteq;":8885,"vartriangleleft;":8882,"DiacriticalDot;":729,"DoubleRightTee;":8872,"DownLeftVector;":8637,"GreaterGreater;":10914,"HorizontalLine;":9472,"InvisibleComma;":8291,"InvisibleTimes;":8290,"LeftDownVector;":8643,"LeftRightArrow;":8596,"Leftrightarrow;":8660,"LessSlantEqual;":10877,"LongRightArrow;":10230,"Longrightarrow;":10233,"LowerLeftArrow;":8601,"NestedLessLess;":8810,"NotGreaterLess;":8825,"NotLessGreater;":8824,"NotSubsetEqual;":8840,"NotVerticalBar;":8740,"OpenCurlyQuote;":8216,"ReverseElement;":8715,"RightTeeVector;":10587,"RightVectorBar;":10579,"ShortDownArrow;":8595,"ShortLeftArrow;":8592,"SquareSuperset;":8848,"TildeFullEqual;":8773,"UpperLeftArrow;":8598,"ZeroWidthSpace;":8203,"curvearrowleft;":8630,"doublebarwedge;":8966,"downdownarrows;":8650,"hookrightarrow;":8618,"leftleftarrows;":8647,"leftrightarrow;":8596,"leftthreetimes;":8907,"longrightarrow;":10230,"looparrowright;":8620,"nshortparallel;":8742,"ntriangleright;":8939,"rightarrowtail;":8611,"rightharpoonup;":8640,"trianglelefteq;":8884,"upharpoonright;":8638,"ApplyFunction;":8289,"DifferentialD;":8518,"DoubleLeftTee;":10980,"DoubleUpArrow;":8657,"LeftTeeVector;":10586,"LeftVectorBar;":10578,"LessFullEqual;":8806,"LongLeftArrow;":10229,"Longleftarrow;":10232,"NotEqualTilde;":8770,"NotTildeEqual;":8772,"NotTildeTilde;":8777,"Poincareplane;":8460,"PrecedesEqual;":10927,"PrecedesTilde;":8830,"RightArrowBar;":8677,"RightTeeArrow;":8614,"RightTriangle;":8883,"RightUpVector;":8638,"SucceedsEqual;":10928,"SucceedsTilde;":8831,"SupersetEqual;":8839,"UpEquilibrium;":10606,"VerticalTilde;":8768,"VeryThinSpace;":8202,"bigtriangleup;":9651,"blacktriangle;":9652,"divideontimes;":8903,"fallingdotseq;":8786,"hookleftarrow;":8617,"leftarrowtail;":8610,"leftharpoonup;":8636,"longleftarrow;":10229,"looparrowleft;":8619,"measuredangle;":8737,"ntriangleleft;":8938,"shortparallel;":8741,"smallsetminus;":8726,"triangleright;":9657,"upharpoonleft;":8639,"varsubsetneqq;":10955,"varsupsetneqq;":10956,"DownArrowBar;":10515,"DownTeeArrow;":8615,"ExponentialE;":8519,"GreaterEqual;":8805,"GreaterTilde;":8819,"HilbertSpace;":8459,"HumpDownHump;":8782,"Intersection;":8898,"LeftArrowBar;":8676,"LeftTeeArrow;":8612,"LeftTriangle;":8882,"LeftUpVector;":8639,"NotCongruent;":8802,"NotHumpEqual;":8783,"NotLessEqual;":8816,"NotLessTilde;":8820,"Proportional;":8733,"RightCeiling;":8969,"RoundImplies;":10608,"ShortUpArrow;":8593,"SquareSubset;":8847,"UnderBracket;":9141,"VerticalLine;":124,"blacklozenge;":10731,"exponentiale;":8519,"risingdotseq;":8787,"triangledown;":9663,"triangleleft;":9667,"varsubsetneq;":8842,"varsupsetneq;":8843,"CircleMinus;":8854,"CircleTimes;":8855,"Equilibrium;":8652,"GreaterLess;":8823,"LeftCeiling;":8968,"LessGreater;":8822,"MediumSpace;":8287,"NotLessLess;":8810,"NotPrecedes;":8832,"NotSucceeds;":8833,"NotSuperset;":8835,"OverBracket;":9140,"RightVector;":8640,"Rrightarrow;":8667,"RuleDelayed;":10740,"SmallCircle;":8728,"SquareUnion;":8852,"SubsetEqual;":8838,"UpDownArrow;":8597,"Updownarrow;":8661,"VerticalBar;":8739,"backepsilon;":1014,"blacksquare;":9642,"circledcirc;":8858,"circleddash;":8861,"curlyeqprec;":8926,"curlyeqsucc;":8927,"diamondsuit;":9830,"eqslantless;":10901,"expectation;":8496,"nRightarrow;":8655,"nrightarrow;":8603,"preccurlyeq;":8828,"precnapprox;":10937,"quaternions;":8461,"straightphi;":981,"succcurlyeq;":8829,"succnapprox;":10938,"thickapprox;":8776,"updownarrow;":8597,"Bernoullis;":8492,"CirclePlus;":8853,"EqualTilde;":8770,"Fouriertrf;":8497,"ImaginaryI;":8520,"Laplacetrf;":8466,"LeftVector;":8636,"Lleftarrow;":8666,"NotElement;":8713,"NotGreater;":8815,"Proportion;":8759,"RightArrow;":8594,"RightFloor;":8971,"Rightarrow;":8658,"ThickSpace;":8287,"TildeEqual;":8771,"TildeTilde;":8776,"UnderBrace;":9183,"UpArrowBar;":10514,"UpTeeArrow;":8613,"circledast;":8859,"complement;":8705,"curlywedge;":8911,"eqslantgtr;":10902,"gtreqqless;":10892,"lessapprox;":10885,"lesseqqgtr;":10891,"lmoustache;":9136,"longmapsto;":10236,"mapstodown;":8615,"mapstoleft;":8612,"nLeftarrow;":8653,"nleftarrow;":8602,"nsubseteqq;":10949,"nsupseteqq;":10950,"precapprox;":10935,"rightarrow;":8594,"rmoustache;":9137,"sqsubseteq;":8849,"sqsupseteq;":8850,"subsetneqq;":10955,"succapprox;":10936,"supsetneqq;":10956,"upuparrows;":8648,"varepsilon;":1013,"varnothing;":8709,"Backslash;":8726,"CenterDot;":183,"CircleDot;":8857,"Congruent;":8801,"Coproduct;":8720,"DoubleDot;":168,"DownArrow;":8595,"DownBreve;":785,"Downarrow;":8659,"HumpEqual;":8783,"LeftArrow;":8592,"LeftFloor;":8970,"Leftarrow;":8656,"LessTilde;":8818,"Mellintrf;":8499,"MinusPlus;":8723,"NotCupCap;":8813,"NotExists;":8708,"NotSubset;":8834,"OverBrace;":9182,"PlusMinus;":177,"Therefore;":8756,"ThinSpace;":8201,"TripleDot;":8411,"UnionPlus;":8846,"backprime;":8245,"backsimeq;":8909,"bigotimes;":10754,"centerdot;":183,"checkmark;":10003,"complexes;":8450,"dotsquare;":8865,"downarrow;":8595,"gtrapprox;":10886,"gtreqless;":8923,"gvertneqq;":8809,"heartsuit;":9829,"leftarrow;":8592,"lesseqgtr;":8922,"lvertneqq;":8808,"ngeqslant;":10878,"nleqslant;":10877,"nparallel;":8742,"nshortmid;":8740,"nsubseteq;":8840,"nsupseteq;":8841,"pitchfork;":8916,"rationals;":8474,"spadesuit;":9824,"subseteqq;":10949,"subsetneq;":8842,"supseteqq;":10950,"supsetneq;":8843,"therefore;":8756,"triangleq;":8796,"varpropto;":8733,"DDotrahd;":10513,"DotEqual;":8784,"Integral;":8747,"LessLess;":10913,"NotEqual;":8800,"NotTilde;":8769,"PartialD;":8706,"Precedes;":8826,"RightTee;":8866,"Succeeds;":8827,"SuchThat;":8715,"Superset;":8835,"Uarrocir;":10569,"UnderBar;":95,"andslope;":10840,"angmsdaa;":10664,"angmsdab;":10665,"angmsdac;":10666,"angmsdad;":10667,"angmsdae;":10668,"angmsdaf;":10669,"angmsdag;":10670,"angmsdah;":10671,"angrtvbd;":10653,"approxeq;":8778,"awconint;":8755,"backcong;":8780,"barwedge;":8965,"bbrktbrk;":9142,"bigoplus;":10753,"bigsqcup;":10758,"biguplus;":10756,"bigwedge;":8896,"boxminus;":8863,"boxtimes;":8864,"bsolhsub;":10184,"capbrcup;":10825,"circledR;":174,"circledS;":9416,"cirfnint;":10768,"clubsuit;":9827,"cupbrcap;":10824,"curlyvee;":8910,"cwconint;":8754,"doteqdot;":8785,"dotminus;":8760,"drbkarow;":10512,"dzigrarr;":10239,"elinters;":9191,"emptyset;":8709,"eqvparsl;":10725,"fpartint;":10765,"geqslant;":10878,"gesdotol;":10884,"gnapprox;":10890,"hksearow;":10533,"hkswarow;":10534,"imagline;":8464,"imagpart;":8465,"infintie;":10717,"integers;":8484,"intercal;":8890,"intlarhk;":10775,"laemptyv;":10676,"ldrushar;":10571,"leqslant;":10877,"lesdotor;":10883,"llcorner;":8990,"lnapprox;":10889,"lrcorner;":8991,"lurdshar;":10570,"mapstoup;":8613,"multimap;":8888,"naturals;":8469,"ncongdot;":10861,"notindot;":8949,"otimesas;":10806,"parallel;":8741,"plusacir;":10787,"pointint;":10773,"precneqq;":10933,"precnsim;":8936,"profalar;":9006,"profline;":8978,"profsurf;":8979,"raemptyv;":10675,"realpart;":8476,"rppolint;":10770,"rtriltri;":10702,"scpolint;":10771,"setminus;":8726,"shortmid;":8739,"smeparsl;":10724,"sqsubset;":8847,"sqsupset;":8848,"subseteq;":8838,"succneqq;":10934,"succnsim;":8937,"supseteq;":8839,"thetasym;":977,"thicksim;":8764,"timesbar;":10801,"triangle;":9653,"triminus;":10810,"trpezium;":9186,"ulcorner;":8988,"urcorner;":8989,"varkappa;":1008,"varsigma;":962,"vartheta;":977,"Because;":8757,"Cayleys;":8493,"Cconint;":8752,"Cedilla;":184,"Diamond;":8900,"DownTee;":8868,"Element;":8712,"Epsilon;":917,"Implies;":8658,"LeftTee;":8867,"NewLine;":10,"NoBreak;":8288,"NotLess;":8814,"Omicron;":927,"OverBar;":8254,"Product;":8719,"UpArrow;":8593,"Uparrow;":8657,"Upsilon;":933,"alefsym;":8501,"angrtvb;":8894,"angzarr;":9084,"asympeq;":8781,"backsim;":8765,"because;":8757,"bemptyv;":10672,"between;":8812,"bigcirc;":9711,"bigodot;":10752,"bigstar;":9733,"bnequiv;":8801,"boxplus;":8862,"ccupssm;":10832,"cemptyv;":10674,"cirscir;":10690,"coloneq;":8788,"congdot;":10861,"cudarrl;":10552,"cudarrr;":10549,"cularrp;":10557,"curarrm;":10556,"dbkarow;":10511,"ddagger;":8225,"ddotseq;":10871,"demptyv;":10673,"diamond;":8900,"digamma;":989,"dotplus;":8724,"dwangle;":10662,"epsilon;":949,"eqcolon;":8789,"equivDD;":10872,"gesdoto;":10882,"gtquest;":10876,"gtrless;":8823,"harrcir;":10568,"intprod;":10812,"isindot;":8949,"larrbfs;":10527,"larrsim;":10611,"lbrksld;":10639,"lbrkslu;":10637,"ldrdhar;":10599,"lesdoto;":10881,"lessdot;":8918,"lessgtr;":8822,"lesssim;":8818,"lotimes;":10804,"lozenge;":9674,"ltquest;":10875,"luruhar;":10598,"maltese;":10016,"minusdu;":10794,"napprox;":8777,"natural;":9838,"nearrow;":8599,"nexists;":8708,"notinva;":8713,"notinvb;":8951,"notinvc;":8950,"notniva;":8716,"notnivb;":8958,"notnivc;":8957,"npolint;":10772,"npreceq;":10927,"nsqsube;":8930,"nsqsupe;":8931,"nsubset;":8834,"nsucceq;":10928,"nsupset;":8835,"nvinfin;":10718,"nvltrie;":8884,"nvrtrie;":8885,"nwarrow;":8598,"olcross;":10683,"omicron;":959,"orderof;":8500,"orslope;":10839,"pertenk;":8241,"planckh;":8462,"pluscir;":10786,"plussim;":10790,"plustwo;":10791,"precsim;":8830,"quatint;":10774,"questeq;":8799,"rarrbfs;":10528,"rarrsim;":10612,"rbrksld;":10638,"rbrkslu;":10640,"rdldhar;":10601,"realine;":8475,"rotimes;":10805,"ruluhar;":10600,"searrow;":8600,"simplus;":10788,"simrarr;":10610,"subedot;":10947,"submult;":10945,"subplus;":10943,"subrarr;":10617,"succsim;":8831,"supdsub;":10968,"supedot;":10948,"suphsol;":10185,"suphsub;":10967,"suplarr;":10619,"supmult;":10946,"supplus;":10944,"swarrow;":8601,"topfork;":10970,"triplus;":10809,"tritime;":10811,"uparrow;":8593,"upsilon;":965,"uwangle;":10663,"vzigzag;":10650,"zigrarr;":8669,"Aacute;":193,"Abreve;":258,"Agrave;":192,"Assign;":8788,"Atilde;":195,"Barwed;":8966,"Bumpeq;":8782,"Cacute;":262,"Ccaron;":268,"Ccedil;":199,"Colone;":10868,"Conint;":8751,"CupCap;":8781,"Dagger;":8225,"Dcaron;":270,"DotDot;":8412,"Dstrok;":272,"Eacute;":201,"Ecaron;":282,"Egrave;":200,"Exists;":8707,"ForAll;":8704,"Gammad;":988,"Gbreve;":286,"Gcedil;":290,"HARDcy;":1066,"Hstrok;":294,"Iacute;":205,"Igrave;":204,"Itilde;":296,"Jsercy;":1032,"Kcedil;":310,"Lacute;":313,"Lambda;":923,"Lcaron;":317,"Lcedil;":315,"Lmidot;":319,"Lstrok;":321,"Nacute;":323,"Ncaron;":327,"Ncedil;":325,"Ntilde;":209,"Oacute;":211,"Odblac;":336,"Ograve;":210,"Oslash;":216,"Otilde;":213,"Otimes;":10807,"Racute;":340,"Rarrtl;":10518,"Rcaron;":344,"Rcedil;":342,"SHCHcy;":1065,"SOFTcy;":1068,"Sacute;":346,"Scaron;":352,"Scedil;":350,"Square;":9633,"Subset;":8912,"Supset;":8913,"Tcaron;":356,"Tcedil;":354,"Tstrok;":358,"Uacute;":218,"Ubreve;":364,"Udblac;":368,"Ugrave;":217,"Utilde;":360,"Vdashl;":10982,"Verbar;":8214,"Vvdash;":8874,"Yacute;":221,"Zacute;":377,"Zcaron;":381,"aacute;":225,"abreve;":259,"agrave;":224,"andand;":10837,"angmsd;":8737,"angsph;":8738,"apacir;":10863,"approx;":8776,"atilde;":227,"barvee;":8893,"barwed;":8965,"becaus;":8757,"bernou;":8492,"bigcap;":8898,"bigcup;":8899,"bigvee;":8897,"bkarow;":10509,"bottom;":8869,"bowtie;":8904,"boxbox;":10697,"bprime;":8245,"brvbar;":166,"bullet;":8226,"bumpeq;":8783,"cacute;":263,"capand;":10820,"capcap;":10827,"capcup;":10823,"capdot;":10816,"ccaron;":269,"ccedil;":231,"circeq;":8791,"cirmid;":10991,"colone;":8788,"commat;":64,"compfn;":8728,"conint;":8750,"coprod;":8720,"copysr;":8471,"cularr;":8630,"cupcap;":10822,"cupcup;":10826,"cupdot;":8845,"curarr;":8631,"curren;":164,"cylcty;":9005,"dagger;":8224,"daleth;":8504,"dcaron;":271,"dfisht;":10623,"divide;":247,"divonx;":8903,"dlcorn;":8990,"dlcrop;":8973,"dollar;":36,"drcorn;":8991,"drcrop;":8972,"dstrok;":273,"eacute;":233,"easter;":10862,"ecaron;":283,"ecolon;":8789,"egrave;":232,"egsdot;":10904,"elsdot;":10903,"emptyv;":8709,"emsp13;":8196,"emsp14;":8197,"eparsl;":10723,"eqcirc;":8790,"equals;":61,"equest;":8799,"female;":9792,"ffilig;":64259,"ffllig;":64260,"forall;":8704,"frac12;":189,"frac13;":8531,"frac14;":188,"frac15;":8533,"frac16;":8537,"frac18;":8539,"frac23;":8532,"frac25;":8534,"frac34;":190,"frac35;":8535,"frac38;":8540,"frac45;":8536,"frac56;":8538,"frac58;":8541,"frac78;":8542,"gacute;":501,"gammad;":989,"gbreve;":287,"gesdot;":10880,"gesles;":10900,"gtlPar;":10645,"gtrarr;":10616,"gtrdot;":8919,"gtrsim;":8819,"hairsp;":8202,"hamilt;":8459,"hardcy;":1098,"hearts;":9829,"hellip;":8230,"hercon;":8889,"homtht;":8763,"horbar;":8213,"hslash;":8463,"hstrok;":295,"hybull;":8259,"hyphen;":8208,"iacute;":237,"igrave;":236,"iiiint;":10764,"iinfin;":10716,"incare;":8453,"inodot;":305,"intcal;":8890,"iquest;":191,"isinsv;":8947,"itilde;":297,"jsercy;":1112,"kappav;":1008,"kcedil;":311,"kgreen;":312,"lAtail;":10523,"lacute;":314,"lagran;":8466,"lambda;":955,"langle;":10216,"larrfs;":10525,"larrhk;":8617,"larrlp;":8619,"larrpl;":10553,"larrtl;":8610,"latail;":10521,"lbrace;":123,"lbrack;":91,"lcaron;":318,"lcedil;":316,"ldquor;":8222,"lesdot;":10879,"lesges;":10899,"lfisht;":10620,"lfloor;":8970,"lharul;":10602,"llhard;":10603,"lmidot;":320,"lmoust;":9136,"loplus;":10797,"lowast;":8727,"lowbar;":95,"lparlt;":10643,"lrhard;":10605,"lsaquo;":8249,"lsquor;":8218,"lstrok;":322,"lthree;":8907,"ltimes;":8905,"ltlarr;":10614,"ltrPar;":10646,"mapsto;":8614,"marker;":9646,"mcomma;":10793,"midast;":42,"midcir;":10992,"middot;":183,"minusb;":8863,"minusd;":8760,"mnplus;":8723,"models;":8871,"mstpos;":8766,"nVDash;":8879,"nVdash;":8878,"nacute;":324,"nbumpe;":8783,"ncaron;":328,"ncedil;":326,"nearhk;":10532,"nequiv;":8802,"nesear;":10536,"nexist;":8708,"nltrie;":8940,"notinE;":8953,"nparsl;":11005,"nprcue;":8928,"nrarrc;":10547,"nrarrw;":8605,"nrtrie;":8941,"nsccue;":8929,"nsimeq;":8772,"ntilde;":241,"numero;":8470,"nvDash;":8877,"nvHarr;":10500,"nvdash;":8876,"nvlArr;":10498,"nvrArr;":10499,"nwarhk;":10531,"nwnear;":10535,"oacute;":243,"odblac;":337,"odsold;":10684,"ograve;":242,"ominus;":8854,"origof;":8886,"oslash;":248,"otilde;":245,"otimes;":8855,"parsim;":10995,"percnt;":37,"period;":46,"permil;":8240,"phmmat;":8499,"planck;":8463,"plankv;":8463,"plusdo;":8724,"plusdu;":10789,"plusmn;":177,"preceq;":10927,"primes;":8473,"prnsim;":8936,"propto;":8733,"prurel;":8880,"puncsp;":8200,"qprime;":8279,"rAtail;":10524,"racute;":341,"rangle;":10217,"rarrap;":10613,"rarrfs;":10526,"rarrhk;":8618,"rarrlp;":8620,"rarrpl;":10565,"rarrtl;":8611,"ratail;":10522,"rbrace;":125,"rbrack;":93,"rcaron;":345,"rcedil;":343,"rdquor;":8221,"rfisht;":10621,"rfloor;":8971,"rharul;":10604,"rmoust;":9137,"roplus;":10798,"rpargt;":10644,"rsaquo;":8250,"rsquor;":8217,"rthree;":8908,"rtimes;":8906,"sacute;":347,"scaron;":353,"scedil;":351,"scnsim;":8937,"searhk;":10533,"seswar;":10537,"sfrown;":8994,"shchcy;":1097,"sigmaf;":962,"sigmav;":962,"simdot;":10858,"smashp;":10803,"softcy;":1100,"solbar;":9023,"spades;":9824,"sqcaps;":8851,"sqcups;":8852,"sqsube;":8849,"sqsupe;":8850,"square;":9633,"squarf;":9642,"ssetmn;":8726,"ssmile;":8995,"sstarf;":8902,"subdot;":10941,"subset;":8834,"subsim;":10951,"subsub;":10965,"subsup;":10963,"succeq;":10928,"supdot;":10942,"supset;":8835,"supsim;":10952,"supsub;":10964,"supsup;":10966,"swarhk;":10534,"swnwar;":10538,"target;":8982,"tcaron;":357,"tcedil;":355,"telrec;":8981,"there4;":8756,"thetav;":977,"thinsp;":8201,"thksim;":8764,"timesb;":8864,"timesd;":10800,"topbot;":9014,"topcir;":10993,"tprime;":8244,"tridot;":9708,"tstrok;":359,"uacute;":250,"ubreve;":365,"udblac;":369,"ufisht;":10622,"ugrave;":249,"ulcorn;":8988,"ulcrop;":8975,"urcorn;":8989,"urcrop;":8974,"utilde;":361,"vangrt;":10652,"varphi;":981,"varrho;":1009,"veebar;":8891,"vellip;":8942,"verbar;":124,"vsubnE;":10955,"vsubne;":8842,"vsupnE;":10956,"vsupne;":8843,"wedbar;":10847,"wedgeq;":8793,"weierp;":8472,"wreath;":8768,"xoplus;":10753,"xotime;":10754,"xsqcup;":10758,"xuplus;":10756,"xwedge;":8896,"yacute;":253,"zacute;":378,"zcaron;":382,"zeetrf;":8488,"AElig;":198,Aacute:193,"Acirc;":194,Agrave:192,"Alpha;":913,"Amacr;":256,"Aogon;":260,"Aring;":197,Atilde:195,"Breve;":728,Ccedil:199,"Ccirc;":264,"Colon;":8759,"Cross;":10799,"Dashv;":10980,"Delta;":916,Eacute:201,"Ecirc;":202,Egrave:200,"Emacr;":274,"Eogon;":280,"Equal;":10869,"Gamma;":915,"Gcirc;":284,"Hacek;":711,"Hcirc;":292,"IJlig;":306,Iacute:205,"Icirc;":206,Igrave:204,"Imacr;":298,"Iogon;":302,"Iukcy;":1030,"Jcirc;":308,"Jukcy;":1028,"Kappa;":922,Ntilde:209,"OElig;":338,Oacute:211,"Ocirc;":212,Ograve:210,"Omacr;":332,"Omega;":937,Oslash:216,Otilde:213,"Prime;":8243,"RBarr;":10512,"Scirc;":348,"Sigma;":931,"THORN;":222,"TRADE;":8482,"TSHcy;":1035,"Theta;":920,"Tilde;":8764,Uacute:218,"Ubrcy;":1038,"Ucirc;":219,Ugrave:217,"Umacr;":362,"Union;":8899,"Uogon;":370,"UpTee;":8869,"Uring;":366,"VDash;":8875,"Vdash;":8873,"Wcirc;":372,"Wedge;":8896,Yacute:221,"Ycirc;":374,aacute:225,"acirc;":226,"acute;":180,"aelig;":230,agrave:224,"aleph;":8501,"alpha;":945,"amacr;":257,"amalg;":10815,"angle;":8736,"angrt;":8735,"angst;":197,"aogon;":261,"aring;":229,"asymp;":8776,atilde:227,"awint;":10769,"bcong;":8780,"bdquo;":8222,"bepsi;":1014,"blank;":9251,"blk12;":9618,"blk14;":9617,"blk34;":9619,"block;":9608,"boxDL;":9559,"boxDR;":9556,"boxDl;":9558,"boxDr;":9555,"boxHD;":9574,"boxHU;":9577,"boxHd;":9572,"boxHu;":9575,"boxUL;":9565,"boxUR;":9562,"boxUl;":9564,"boxUr;":9561,"boxVH;":9580,"boxVL;":9571,"boxVR;":9568,"boxVh;":9579,"boxVl;":9570,"boxVr;":9567,"boxdL;":9557,"boxdR;":9554,"boxdl;":9488,"boxdr;":9484,"boxhD;":9573,"boxhU;":9576,"boxhd;":9516,"boxhu;":9524,"boxuL;":9563,"boxuR;":9560,"boxul;":9496,"boxur;":9492,"boxvH;":9578,"boxvL;":9569,"boxvR;":9566,"boxvh;":9532,"boxvl;":9508,"boxvr;":9500,"breve;":728,brvbar:166,"bsemi;":8271,"bsime;":8909,"bsolb;":10693,"bumpE;":10926,"bumpe;":8783,"caret;":8257,"caron;":711,"ccaps;":10829,ccedil:231,"ccirc;":265,"ccups;":10828,"cedil;":184,"check;":10003,"clubs;":9827,"colon;":58,"comma;":44,"crarr;":8629,"cross;":10007,"csube;":10961,"csupe;":10962,"ctdot;":8943,"cuepr;":8926,"cuesc;":8927,"cupor;":10821,curren:164,"cuvee;":8910,"cuwed;":8911,"cwint;":8753,"dashv;":8867,"dblac;":733,"ddarr;":8650,"delta;":948,"dharl;":8643,"dharr;":8642,"diams;":9830,"disin;":8946,divide:247,"doteq;":8784,"dtdot;":8945,"dtrif;":9662,"duarr;":8693,"duhar;":10607,"eDDot;":10871,eacute:233,"ecirc;":234,"efDot;":8786,egrave:232,"emacr;":275,"empty;":8709,"eogon;":281,"eplus;":10865,"epsiv;":1013,"eqsim;":8770,"equiv;":8801,"erDot;":8787,"erarr;":10609,"esdot;":8784,"exist;":8707,"fflig;":64256,"filig;":64257,"fjlig;":102,"fllig;":64258,"fltns;":9649,"forkv;":10969,frac12:189,frac14:188,frac34:190,"frasl;":8260,"frown;":8994,"gamma;":947,"gcirc;":285,"gescc;":10921,"gimel;":8503,"gneqq;":8809,"gnsim;":8935,"grave;":96,"gsime;":10894,"gsiml;":10896,"gtcir;":10874,"gtdot;":8919,"harrw;":8621,"hcirc;":293,"hoarr;":8703,iacute:237,"icirc;":238,"iexcl;":161,igrave:236,"iiint;":8749,"iiota;":8489,"ijlig;":307,"imacr;":299,"image;":8465,"imath;":305,"imped;":437,"infin;":8734,"iogon;":303,"iprod;":10812,iquest:191,"isinE;":8953,"isins;":8948,"isinv;":8712,"iukcy;":1110,"jcirc;":309,"jmath;":567,"jukcy;":1108,"kappa;":954,"lAarr;":8666,"lBarr;":10510,"langd;":10641,"laquo;":171,"larrb;":8676,"lates;":10925,"lbarr;":10508,"lbbrk;":10098,"lbrke;":10635,"lceil;":8968,"ldquo;":8220,"lescc;":10920,"lhard;":8637,"lharu;":8636,"lhblk;":9604,"llarr;":8647,"lltri;":9722,"lneqq;":8808,"lnsim;":8934,"loang;":10220,"loarr;":8701,"lobrk;":10214,"lopar;":10629,"lrarr;":8646,"lrhar;":8651,"lrtri;":8895,"lsime;":10893,"lsimg;":10895,"lsquo;":8216,"ltcir;":10873,"ltdot;":8918,"ltrie;":8884,"ltrif;":9666,"mDDot;":8762,"mdash;":8212,"micro;":181,middot:183,"minus;":8722,"mumap;":8888,"nabla;":8711,"napid;":8779,"napos;":329,"natur;":9838,"nbump;":8782,"ncong;":8775,"ndash;":8211,"neArr;":8663,"nearr;":8599,"nedot;":8784,"nesim;":8770,"ngeqq;":8807,"ngsim;":8821,"nhArr;":8654,"nharr;":8622,"nhpar;":10994,"nlArr;":8653,"nlarr;":8602,"nleqq;":8806,"nless;":8814,"nlsim;":8820,"nltri;":8938,"notin;":8713,"notni;":8716,"npart;":8706,"nprec;":8832,"nrArr;":8655,"nrarr;":8603,"nrtri;":8939,"nsime;":8772,"nsmid;":8740,"nspar;":8742,"nsubE;":10949,"nsube;":8840,"nsucc;":8833,"nsupE;":10950,"nsupe;":8841,ntilde:241,"numsp;":8199,"nvsim;":8764,"nwArr;":8662,"nwarr;":8598,oacute:243,"ocirc;":244,"odash;":8861,"oelig;":339,"ofcir;":10687,ograve:242,"ohbar;":10677,"olarr;":8634,"olcir;":10686,"oline;":8254,"omacr;":333,"omega;":969,"operp;":10681,"oplus;":8853,"orarr;":8635,"order;":8500,oslash:248,otilde:245,"ovbar;":9021,"parsl;":11005,"phone;":9742,"plusb;":8862,"pluse;":10866,plusmn:177,"pound;":163,"prcue;":8828,"prime;":8242,"prnap;":10937,"prsim;":8830,"quest;":63,"rAarr;":8667,"rBarr;":10511,"radic;":8730,"rangd;":10642,"range;":10661,"raquo;":187,"rarrb;":8677,"rarrc;":10547,"rarrw;":8605,"ratio;":8758,"rbarr;":10509,"rbbrk;":10099,"rbrke;":10636,"rceil;":8969,"rdquo;":8221,"reals;":8477,"rhard;":8641,"rharu;":8640,"rlarr;":8644,"rlhar;":8652,"rnmid;":10990,"roang;":10221,"roarr;":8702,"robrk;":10215,"ropar;":10630,"rrarr;":8649,"rsquo;":8217,"rtrie;":8885,"rtrif;":9656,"sbquo;":8218,"sccue;":8829,"scirc;":349,"scnap;":10938,"scsim;":8831,"sdotb;":8865,"sdote;":10854,"seArr;":8664,"searr;":8600,"setmn;":8726,"sharp;":9839,"sigma;":963,"simeq;":8771,"simgE;":10912,"simlE;":10911,"simne;":8774,"slarr;":8592,"smile;":8995,"smtes;":10924,"sqcap;":8851,"sqcup;":8852,"sqsub;":8847,"sqsup;":8848,"srarr;":8594,"starf;":9733,"strns;":175,"subnE;":10955,"subne;":8842,"supnE;":10956,"supne;":8843,"swArr;":8665,"swarr;":8601,"szlig;":223,"theta;":952,"thkap;":8776,"thorn;":254,"tilde;":732,"times;":215,"trade;":8482,"trisb;":10701,"tshcy;":1115,"twixt;":8812,uacute:250,"ubrcy;":1118,"ucirc;":251,"udarr;":8645,"udhar;":10606,ugrave:249,"uharl;":8639,"uharr;":8638,"uhblk;":9600,"ultri;":9720,"umacr;":363,"uogon;":371,"uplus;":8846,"upsih;":978,"uring;":367,"urtri;":9721,"utdot;":8944,"utrif;":9652,"uuarr;":8648,"vBarv;":10985,"vDash;":8872,"varpi;":982,"vdash;":8866,"veeeq;":8794,"vltri;":8882,"vnsub;":8834,"vnsup;":8835,"vprop;":8733,"vrtri;":8883,"wcirc;":373,"wedge;":8743,"xcirc;":9711,"xdtri;":9661,"xhArr;":10234,"xharr;":10231,"xlArr;":10232,"xlarr;":10229,"xodot;":10752,"xrArr;":10233,"xrarr;":10230,"xutri;":9651,yacute:253,"ycirc;":375,AElig:198,Acirc:194,"Aopf;":120120,Aring:197,"Ascr;":119964,"Auml;":196,"Barv;":10983,"Beta;":914,"Bopf;":120121,"Bscr;":8492,"CHcy;":1063,"COPY;":169,"Cdot;":266,"Copf;":8450,"Cscr;":119966,"DJcy;":1026,"DScy;":1029,"DZcy;":1039,"Darr;":8609,"Dopf;":120123,"Dscr;":119967,Ecirc:202,"Edot;":278,"Eopf;":120124,"Escr;":8496,"Esim;":10867,"Euml;":203,"Fopf;":120125,"Fscr;":8497,"GJcy;":1027,"Gdot;":288,"Gopf;":120126,"Gscr;":119970,"Hopf;":8461,"Hscr;":8459,"IEcy;":1045,"IOcy;":1025,Icirc:206,"Idot;":304,"Iopf;":120128,"Iota;":921,"Iscr;":8464,"Iuml;":207,"Jopf;":120129,"Jscr;":119973,"KHcy;":1061,"KJcy;":1036,"Kopf;":120130,"Kscr;":119974,"LJcy;":1033,"Lang;":10218,"Larr;":8606,"Lopf;":120131,"Lscr;":8466,"Mopf;":120132,"Mscr;":8499,"NJcy;":1034,"Nopf;":8469,"Nscr;":119977,Ocirc:212,"Oopf;":120134,"Oscr;":119978,"Ouml;":214,"Popf;":8473,"Pscr;":119979,"QUOT;":34,"Qopf;":8474,"Qscr;":119980,"Rang;":10219,"Rarr;":8608,"Ropf;":8477,"Rscr;":8475,"SHcy;":1064,"Sopf;":120138,"Sqrt;":8730,"Sscr;":119982,"Star;":8902,THORN:222,"TScy;":1062,"Topf;":120139,"Tscr;":119983,"Uarr;":8607,Ucirc:219,"Uopf;":120140,"Upsi;":978,"Uscr;":119984,"Uuml;":220,"Vbar;":10987,"Vert;":8214,"Vopf;":120141,"Vscr;":119985,"Wopf;":120142,"Wscr;":119986,"Xopf;":120143,"Xscr;":119987,"YAcy;":1071,"YIcy;":1031,"YUcy;":1070,"Yopf;":120144,"Yscr;":119988,"Yuml;":376,"ZHcy;":1046,"Zdot;":379,"Zeta;":918,"Zopf;":8484,"Zscr;":119989,acirc:226,acute:180,aelig:230,"andd;":10844,"andv;":10842,"ange;":10660,"aopf;":120146,"apid;":8779,"apos;":39,aring:229,"ascr;":119990,"auml;":228,"bNot;":10989,"bbrk;":9141,"beta;":946,"beth;":8502,"bnot;":8976,"bopf;":120147,"boxH;":9552,"boxV;":9553,"boxh;":9472,"boxv;":9474,"bscr;":119991,"bsim;":8765,"bsol;":92,"bull;":8226,"bump;":8782,"caps;":8745,"cdot;":267,cedil:184,"cent;":162,"chcy;":1095,"cirE;":10691,"circ;":710,"cire;":8791,"comp;":8705,"cong;":8773,"copf;":120148,"copy;":169,"cscr;":119992,"csub;":10959,"csup;":10960,"cups;":8746,"dArr;":8659,"dHar;":10597,"darr;":8595,"dash;":8208,"diam;":8900,"djcy;":1106,"dopf;":120149,"dscr;":119993,"dscy;":1109,"dsol;":10742,"dtri;":9663,"dzcy;":1119,"eDot;":8785,"ecir;":8790,ecirc:234,"edot;":279,"emsp;":8195,"ensp;":8194,"eopf;":120150,"epar;":8917,"epsi;":949,"escr;":8495,"esim;":8770,"euml;":235,"euro;":8364,"excl;":33,"flat;":9837,"fnof;":402,"fopf;":120151,"fork;":8916,"fscr;":119995,"gdot;":289,"geqq;":8807,"gesl;":8923,"gjcy;":1107,"gnap;":10890,"gneq;":10888,"gopf;":120152,"gscr;":8458,"gsim;":8819,"gtcc;":10919,"gvnE;":8809,"hArr;":8660,"half;":189,"harr;":8596,"hbar;":8463,"hopf;":120153,"hscr;":119997,icirc:238,"iecy;":1077,iexcl:161,"imof;":8887,"iocy;":1105,"iopf;":120154,"iota;":953,"iscr;":119998,"isin;":8712,"iuml;":239,"jopf;":120155,"jscr;":119999,"khcy;":1093,"kjcy;":1116,"kopf;":120156,"kscr;":120000,"lArr;":8656,"lHar;":10594,"lang;":10216,laquo:171,"larr;":8592,"late;":10925,"lcub;":123,"ldca;":10550,"ldsh;":8626,"leqq;":8806,"lesg;":8922,"ljcy;":1113,"lnap;":10889,"lneq;":10887,"lopf;":120157,"lozf;":10731,"lpar;":40,"lscr;":120001,"lsim;":8818,"lsqb;":91,"ltcc;":10918,"ltri;":9667,"lvnE;":8808,"macr;":175,"male;":9794,"malt;":10016,micro:181,"mlcp;":10971,"mldr;":8230,"mopf;":120158,"mscr;":120002,"nGtv;":8811,"nLtv;":8810,"nang;":8736,"napE;":10864,"nbsp;":160,"ncap;":10819,"ncup;":10818,"ngeq;":8817,"nges;":10878,"ngtr;":8815,"nisd;":8954,"njcy;":1114,"nldr;":8229,"nleq;":8816,"nles;":10877,"nmid;":8740,"nopf;":120159,"npar;":8742,"npre;":10927,"nsce;":10928,"nscr;":120003,"nsim;":8769,"nsub;":8836,"nsup;":8837,"ntgl;":8825,"ntlg;":8824,"nvap;":8781,"nvge;":8805,"nvgt;":62,"nvle;":8804,"nvlt;":60,"oast;":8859,"ocir;":8858,ocirc:244,"odiv;":10808,"odot;":8857,"ogon;":731,"oint;":8750,"omid;":10678,"oopf;":120160,"opar;":10679,"ordf;":170,"ordm;":186,"oror;":10838,"oscr;":8500,"osol;":8856,"ouml;":246,"para;":182,"part;":8706,"perp;":8869,"phiv;":981,"plus;":43,"popf;":120161,pound:163,"prap;":10935,"prec;":8826,"prnE;":10933,"prod;":8719,"prop;":8733,"pscr;":120005,"qint;":10764,"qopf;":120162,"qscr;":120006,"quot;":34,"rArr;":8658,"rHar;":10596,"race;":8765,"rang;":10217,raquo:187,"rarr;":8594,"rcub;":125,"rdca;":10551,"rdsh;":8627,"real;":8476,"rect;":9645,"rhov;":1009,"ring;":730,"ropf;":120163,"rpar;":41,"rscr;":120007,"rsqb;":93,"rtri;":9657,"scap;":10936,"scnE;":10934,"sdot;":8901,"sect;":167,"semi;":59,"sext;":10038,"shcy;":1096,"sime;":8771,"simg;":10910,"siml;":10909,"smid;":8739,"smte;":10924,"solb;":10692,"sopf;":120164,"spar;":8741,"squf;":9642,"sscr;":120008,"star;":9734,"subE;":10949,"sube;":8838,"succ;":8827,"sung;":9834,"sup1;":185,"sup2;":178,"sup3;":179,"supE;":10950,"supe;":8839,szlig:223,"tbrk;":9140,"tdot;":8411,thorn:254,times:215,"tint;":8749,"toea;":10536,"topf;":120165,"tosa;":10537,"trie;":8796,"tscr;":120009,"tscy;":1094,"uArr;":8657,"uHar;":10595,"uarr;":8593,ucirc:251,"uopf;":120166,"upsi;":965,"uscr;":120010,"utri;":9653,"uuml;":252,"vArr;":8661,"vBar;":10984,"varr;":8597,"vert;":124,"vopf;":120167,"vscr;":120011,"wopf;":120168,"wscr;":120012,"xcap;":8898,"xcup;":8899,"xmap;":10236,"xnis;":8955,"xopf;":120169,"xscr;":120013,"xvee;":8897,"yacy;":1103,"yicy;":1111,"yopf;":120170,"yscr;":120014,"yucy;":1102,"yuml;":255,"zdot;":380,"zeta;":950,"zhcy;":1078,"zopf;":120171,"zscr;":120015,"zwnj;":8204,"AMP;":38,"Acy;":1040,"Afr;":120068,"And;":10835,Auml:196,"Bcy;":1041,"Bfr;":120069,COPY:169,"Cap;":8914,"Cfr;":8493,"Chi;":935,"Cup;":8915,"Dcy;":1044,"Del;":8711,"Dfr;":120071,"Dot;":168,"ENG;":330,"ETH;":208,"Ecy;":1069,"Efr;":120072,"Eta;":919,Euml:203,"Fcy;":1060,"Ffr;":120073,"Gcy;":1043,"Gfr;":120074,"Hat;":94,"Hfr;":8460,"Icy;":1048,"Ifr;":8465,"Int;":8748,Iuml:207,"Jcy;":1049,"Jfr;":120077,"Kcy;":1050,"Kfr;":120078,"Lcy;":1051,"Lfr;":120079,"Lsh;":8624,"Map;":10501,"Mcy;":1052,"Mfr;":120080,"Ncy;":1053,"Nfr;":120081,"Not;":10988,"Ocy;":1054,"Ofr;":120082,Ouml:214,"Pcy;":1055,"Pfr;":120083,"Phi;":934,"Psi;":936,QUOT:34,"Qfr;":120084,"REG;":174,"Rcy;":1056,"Rfr;":8476,"Rho;":929,"Rsh;":8625,"Scy;":1057,"Sfr;":120086,"Sub;":8912,"Sum;":8721,"Sup;":8913,"Tab;":9,"Tau;":932,"Tcy;":1058,"Tfr;":120087,"Ucy;":1059,"Ufr;":120088,Uuml:220,"Vcy;":1042,"Vee;":8897,"Vfr;":120089,"Wfr;":120090,"Xfr;":120091,"Ycy;":1067,"Yfr;":120092,"Zcy;":1047,"Zfr;":8488,"acE;":8766,"acd;":8767,"acy;":1072,"afr;":120094,"amp;":38,"and;":8743,"ang;":8736,"apE;":10864,"ape;":8778,"ast;":42,auml:228,"bcy;":1073,"bfr;":120095,"bne;":61,"bot;":8869,"cap;":8745,cent:162,"cfr;":120096,"chi;":967,"cir;":9675,copy:169,"cup;":8746,"dcy;":1076,"deg;":176,"dfr;":120097,"die;":168,"div;":247,"dot;":729,"ecy;":1101,"efr;":120098,"egs;":10902,"ell;":8467,"els;":10901,"eng;":331,"eta;":951,"eth;":240,euml:235,"fcy;":1092,"ffr;":120099,"gEl;":10892,"gap;":10886,"gcy;":1075,"gel;":8923,"geq;":8805,"ges;":10878,"gfr;":120100,"ggg;":8921,"glE;":10898,"gla;":10917,"glj;":10916,"gnE;":8809,"gne;":10888,"hfr;":120101,"icy;":1080,"iff;":8660,"ifr;":120102,"int;":8747,iuml:239,"jcy;":1081,"jfr;":120103,"kcy;":1082,"kfr;":120104,"lEg;":10891,"lap;":10885,"lat;":10923,"lcy;":1083,"leg;":8922,"leq;":8804,"les;":10877,"lfr;":120105,"lgE;":10897,"lnE;":8808,"lne;":10887,"loz;":9674,"lrm;":8206,"lsh;":8624,macr:175,"map;":8614,"mcy;":1084,"mfr;":120106,"mho;":8487,"mid;":8739,"nGg;":8921,"nGt;":8811,"nLl;":8920,"nLt;":8810,"nap;":8777,nbsp:160,"ncy;":1085,"nfr;":120107,"ngE;":8807,"nge;":8817,"ngt;":8815,"nis;":8956,"niv;":8715,"nlE;":8806,"nle;":8816,"nlt;":8814,"not;":172,"npr;":8832,"nsc;":8833,"num;":35,"ocy;":1086,"ofr;":120108,"ogt;":10689,"ohm;":937,"olt;":10688,"ord;":10845,ordf:170,ordm:186,"orv;":10843,ouml:246,"par;":8741,para:182,"pcy;":1087,"pfr;":120109,"phi;":966,"piv;":982,"prE;":10931,"pre;":10927,"psi;":968,"qfr;":120110,quot:34,"rcy;":1088,"reg;":174,"rfr;":120111,"rho;":961,"rlm;":8207,"rsh;":8625,"scE;":10932,"sce;":10928,"scy;":1089,sect:167,"sfr;":120112,"shy;":173,"sim;":8764,"smt;":10922,"sol;":47,"squ;":9633,"sub;":8834,"sum;":8721,sup1:185,sup2:178,sup3:179,"sup;":8835,"tau;":964,"tcy;":1090,"tfr;":120113,"top;":8868,"ucy;":1091,"ufr;":120114,"uml;":168,uuml:252,"vcy;":1074,"vee;":8744,"vfr;":120115,"wfr;":120116,"xfr;":120117,"ycy;":1099,"yen;":165,"yfr;":120118,yuml:255,"zcy;":1079,"zfr;":120119,"zwj;":8205,AMP:38,"DD;":8517,ETH:208,"GT;":62,"Gg;":8921,"Gt;":8811,"Im;":8465,"LT;":60,"Ll;":8920,"Lt;":8810,"Mu;":924,"Nu;":925,"Or;":10836,"Pi;":928,"Pr;":10939,REG:174,"Re;":8476,"Sc;":10940,"Xi;":926,"ac;":8766,"af;":8289,amp:38,"ap;":8776,"dd;":8518,deg:176,"ee;":8519,"eg;":10906,"el;":10905,eth:240,"gE;":8807,"ge;":8805,"gg;":8811,"gl;":8823,"gt;":62,"ic;":8291,"ii;":8520,"in;":8712,"it;":8290,"lE;":8806,"le;":8804,"lg;":8822,"ll;":8810,"lt;":60,"mp;":8723,"mu;":956,"ne;":8800,"ni;":8715,not:172,"nu;":957,"oS;":9416,"or;":8744,"pi;":960,"pm;":177,"pr;":8826,reg:174,"rx;":8478,"sc;":8827,shy:173,uml:168,"wp;":8472,"wr;":8768,"xi;":958,yen:165,GT:62,LT:60,gt:62,lt:60};var xA=[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 pA(q,R){if(R&&!q.endsWith(";"))return`${q}\\b(?!=)`;return q}function b3(q){let P=Object.keys(l7).map((O)=>pA(O,q));return new RegExp(`&(#(?:x[a-fA-F\\d]+|\\d+)(?:;)?|${P.join("|")})`,"g")}var cA=b3(!1),iA=b3(!0);function J9(q,R){let P=R?iA:cA;return q.replace(P,(C,O)=>{let H;if(O[0]!=="#")H=l7[O];else if(O[1]==="x")H=parseInt(O.substring(2),16);else H=parseInt(O.substring(1),10);if(!H)return C;return String.fromCodePoint(rA(H))})}var y3=0;function rA(q){if(q===10)return 32;if(q<128)return q;if(q<=159)return xA[q-128];if(q<55296)return q;if(q<=57343)return y3;if(q<=65535)return q;if(q>=65536&&q<=131071)return q;if(q>=131072&&q<=196607)return q;if(q>=917504&&q<=917631||q>=917760&&q<=917999)return q;return y3}function b8(q=!1){return{type:"Fragment",nodes:[],metadata:{transparent:q,dynamic:!1}}}var dA=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function yq(q){return dA.includes(q.type)}function d0(q,R,P,C,O){return{type:"Attribute",start:P,end:C,name:q,name_loc:R,value:O,metadata:{delegated:!1,needs_clsx:!1}}}class G8{has_state=!1;has_call=!1;has_await=!1;has_member_expression=!1;has_assignment=!1;dependencies=new Set;references=new Set;#q=null;#R(){if(!this.#q){this.#q=new Set;for(let q of this.references)if(q.blocker)this.#q.add(q.blocker)}return this.#q}blockers(){return C8([...this.#R()])}has_blockers(){return this.#R().size>0}has_more_blockers_than(q){for(let R of this.#R())if(!q.#R().has(R))return!0;return!1}is_async(){return this.has_await||this.#R().size>0}merge(q){this.has_state||=q.has_state,this.has_call||=q.has_call,this.has_await||=q.has_await,this.has_member_expression||=q.has_member_expression,this.has_assignment||=q.has_assignment,this.#q=null;for(let R of q.references)this.references.add(R);for(let R of q.dependencies)this.dependencies.add(R)}}var h3={li:{direct:["li"]},dt:{descendant:["dt","dd"],reset_by:["dl"]},dd:{descendant:["dt","dd"],reset_by:["dl"]},p:{descendant:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"]},rt:{descendant:["rt","rp"]},rp:{descendant:["rt","rp"]},optgroup:{descendant:["optgroup"]},option:{descendant:["option","optgroup"]},thead:{direct:["tbody","tfoot"]},tbody:{direct:["tbody","tfoot"]},tfoot:{direct:["tbody"]},tr:{direct:["tr","tbody"]},td:{direct:["td","th","tr"]},th:{direct:["td","th","tr"]}};function g3(q,R){let P=h3[q];if(P){if(!R||("direct"in P?P.direct:P.descendant).includes(R))return!0}return!1}var Xx={...h3,form:{descendant:["form"]},a:{descendant:["a"]},button:{descendant:["button"]},h1:{descendant:["h1","h2","h3","h4","h5","h6"]},h2:{descendant:["h1","h2","h3","h4","h5","h6"]},h3:{descendant:["h1","h2","h3","h4","h5","h6"]},h4:{descendant:["h1","h2","h3","h4","h5","h6"]},h5:{descendant:["h1","h2","h3","h4","h5","h6"]},h6:{descendant:["h1","h2","h3","h4","h5","h6"]},tr:{only:["th","td","style","script","template"]},tbody:{only:["tr","style","script","template"]},thead:{only:["tr","style","script","template"]},tfoot:{only:["tr","style","script","template"]},colgroup:{only:["col","template"]},table:{only:["caption","colgroup","tbody","thead","tfoot","style","script","template"]},head:{only:["base","basefont","bgsound","link","meta","title","noscript","noframes","style","script","template"]},html:{only:["head","body","frameset"]},frameset:{only:["frame"]},"#document":{only:["html"]}};function _7(q,R="or"){if(q.length===1)return q[0];if(q.length===2)return`${q[0]} ${R} ${q[1]}`;return`${q.slice(0,-1).join(", ")} ${R} ${q[q.length-1]}`}var aA=/(\/>|[\s"'=<>`])/y,m7=/<\/textarea(\s[^>]*)?>/iy,sA=/-->/,l3=/(\s|\/|>)/,_3=/[\s=/>"']/,m3=/["']/y,oA=/(?:"([^"]*)"|'([^'])*'|([^>\s]+))/y,nA=/^![a-zA-Z]+$/,tA=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/;function eA(q){if(nA.test(q))return!0;if(tA.test(q))return!0;return L5.test(q)}var x7=/^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u,x3=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),bq=new Map([...x3,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function p7(q){let R=q.index++,P=q.current();if(q.eat("!--")){let B=q.read_until(sA);q.eat("-->",!0),q.append({type:"Comment",start:R,end:q.index,data:B});return}if(q.eat("/")){let B=q.read_until(l3);if(q.allow_whitespace(),q.eat(">",!0),D0(B))I3(R);while(P.name!==B){if(q.loose){if(yq(P)){let T=P.attributes.at(-1);if(T?.type==="Attribute"&&T.name===`<${B}`){q.index=T.start,P.attributes.pop();break}}}if(P.type==="RegularElement"){if(!q.last_auto_closed_tag||q.last_auto_closed_tag.tag!==B){let T=P.fragment.nodes[0]?.start??R;R7({start:P.start,end:T},`</${B}>`,`</${P.name}>`)}}else if(!q.loose)if(q.last_auto_closed_tag&&q.last_auto_closed_tag.tag===B)q3(R,B,q.last_auto_closed_tag.reason);else e4(R,B);P.end=R,q.pop(),P=q.current()}if(P.end=q.index,q.pop(),q.last_auto_closed_tag&&q.stack.length<q.last_auto_closed_tag.depth)q.last_auto_closed_tag=void 0;return}let C=c7(q,l3);if(C.name.startsWith("svelte:")&&!bq.has(C.name)){let B={start:R+1,end:R+1+C.name.length};X3(B,_7(Array.from(bq.keys())))}if(!eA(C.name)&&!x7.test(C.name)){if(!q.loose||!C.name.endsWith(".")){let B={start:R+1,end:R+1+C.name.length};A3(B)}}if(x3.has(C.name)){if(C.name in q.meta_tags)J3(R,C.name);if(P.type!=="Root")W3(R,C.name);q.meta_tags[C.name]=!0}let O=bq.has(C.name)?bq.get(C.name):x7.test(C.name)||q.loose&&C.name.endsWith(".")?"Component":C.name==="title"&&qL(q.stack)?"TitleElement":C.name==="slot"&&!RL(q.stack)?"SlotElement":"RegularElement",H=O==="RegularElement"?{type:O,start:R,end:-1,name:C.name,name_loc:C.loc,attributes:[],fragment:b8(!0),metadata:{svg:!1,mathml:!1,scoped:!1,has_spread:!1,path:[],synthetic_value_node:null}}:{type:O,start:R,end:-1,name:C.name,name_loc:C.loc,attributes:[],fragment:b8(!0),metadata:{}};if(q.allow_whitespace(),P.type==="RegularElement"&&g3(P.name,C.name)){let B=P.fragment.nodes[0]?.start??R;R7({start:P.start,end:B},`<${C.name}>`,`</${P.name}>`),P.end=R,q.pop(),q.last_auto_closed_tag={tag:P.name,reason:C.name,depth:q.stack.length}}let M=[],F=q.current(),Y=(C.name==="script"||C.name==="style")&&F.type==="Root",K=Y?PL:CL,J;while(J=K(q)){if(J.type==="Attribute"||J.type==="BindDirective"||J.type==="StyleDirective"||J.type==="ClassDirective"){let B=J.type==="BindDirective"?"Attribute":J.type;if(M.includes(B+J.name))p4(J);else if(J.name!=="this")M.push(B+J.name)}H.attributes.push(J),q.allow_whitespace()}if(H.type==="Component")H.metadata.expression=new G8;if(H.type==="SvelteComponent"){let B=H.attributes.findIndex((w)=>w.type==="Attribute"&&w.name==="this");if(B===-1)V3(R);let T=H.attributes.splice(B,1)[0];if(!V9(T))F3(T.start);H.expression=T1(T),H.metadata.expression=new G8}if(H.type==="SvelteElement"){let B=H.attributes.findIndex((w)=>w.type==="Attribute"&&w.name==="this");if(B===-1)f7(R);let T=H.attributes.splice(B,1)[0];if(T.value===!0)f7(T);if(!V9(T)){E5(T);let w=T.value[0];H.tag=w.type==="Text"?{type:"Literal",value:w.data,raw:`'${w.raw}'`,start:w.start,end:w.end}:w.expression}else H.tag=T1(T);H.metadata.expression=new G8}if(Y){q.eat(">",!0);let B=null;for(let T=F.fragment.nodes.length-1;T>=0;T--){let w=F.fragment.nodes[T];if(T===F.fragment.nodes.length-1&&w.end!==R)break;if(w.type==="Comment"){B=w;break}else if(w.type!=="Text"||w.data.trim())break}if(C.name==="script"){let T=v3(q,R,H.attributes);if(B)T.content.leadingComments=[{type:"Line",value:B.data}];if(T.context==="module"){if(F.module)w7(R);F.module=T}else{if(F.instance)w7(R);F.instance=T}}else{let T=h7(q,R,H.attributes);if(T.content.comment=B,F.css)Y3(R);F.css=T}return}q.append(H);let $=q.eat("/")||D0(C.name),U=q.eat(">",!0,!1);if(!U){let B=H.attributes.at(-1);if(B?.type==="Attribute"&&B.name==="<")q.index=B.start,H.attributes.pop();else{let T=q.template[q.index-1],w=q.template[q.index-2],f=q.template[q.index];if(w==="{"&&T==="/")q.index-=2;else if(T==="{"&&(f==="#"||f==="@"||f===":"))q.index-=1;else q.allow_whitespace()}}if($||!U)H.end=q.index;else if(C.name==="textarea")H.fragment.nodes=p3(q,()=>{return m7.lastIndex=q.index,m7.test(q.template)},"inside <textarea>"),q.read(m7),H.end=q.index;else if(C.name==="script"||C.name==="style"){let B=q.index,T=`</${C.name}>`,w=q.template.indexOf(T,q.index),f=q.template.slice(q.index,w===-1?q.template.length:w);q.index=w===-1?q.template.length:w;let D=q.index,y={start:B,end:D,type:"Text",data:f,raw:f};H.fragment.nodes.push(y),q.eat(`</${C.name}>`,!0),H.end=q.index}else q.stack.push(H),q.fragments.push(H.fragment)}function qL(q){let R=q.length;while(R--){let{type:P}=q[R];if(P==="SvelteHead")return!0;if(P==="RegularElement"||P==="Component")return!1}return!1}function RL(q){let R=q.length;while(R--)if(q[R].type==="RegularElement"&&q[R].attributes.some((P)=>P.type==="Attribute"&&P.name==="shadowrootmode"))return!0;return!1}function PL(q){let R=q.index,P=c7(q,_3);if(!P.name)return null;let C=!0;if(q.eat("=")){q.allow_whitespace();let O=q.match_regex(oA);if(!O)L7(q.index);q.index+=O.length;let H=O[0]==='"'||O[0]==="'";if(H)O=O.slice(1,-1);C=[{start:q.index-O.length-(H?1:0),end:H?q.index-1:q.index,type:"Text",raw:O,data:J9(O,!0)}]}if(q.match_regex(m3))C0(q.index,"=");return d0(P.name,P.loc,R,q.index,C)}function CL(q){let R=null;while(R=OL(q))q.root.comments.push(R),q.allow_whitespace();let P=q.index;if(q.eat("{")){if(q.allow_whitespace(),q.eat("@attach")){q.require_whitespace();let Y=h8(q);return q.allow_whitespace(),q.eat("}",!0),{type:"AttachTag",start:P,end:q.index,expression:Y,metadata:{expression:new G8}}}if(q.eat("...")){let Y=h8(q);return q.allow_whitespace(),q.eat("}",!0),{type:"SpreadAttribute",start:P,end:q.index,expression:Y,metadata:{expression:new G8}}}else{let Y=q.read_identifier();if(Y.name==="")if(q.loose&&(q.match("#")||q.match("/")||q.match("@")||q.match(":")))return null;else if(q.loose&&q.match("}"));else c4(P);q.allow_whitespace(),q.eat("}",!0);let K={type:"ExpressionTag",start:Y.start,end:Y.end,expression:Y,metadata:{expression:new G8}};return d0(Y.name,Y.loc,P,q.index,K)}}let C=c7(q,_3);if(!C.name)return null;let O=q.index;q.allow_whitespace();let H=C.name.indexOf(":"),M=H!==-1&&HL(C.name.slice(0,H)),F=!0;if(q.eat("="))if(q.allow_whitespace(),q.template[q.index]==="/"&&q.template[q.index+1]===">"){let Y=q.index;q.index++,F=[{start:Y,end:Y+1,type:"Text",raw:"/",data:"/"}],O=q.index}else F=ML(q),O=q.index;else if(q.match_regex(m3))C0(q.index,"=");if(M){let[Y,...K]=C.name.slice(H+1).split("|");if(Y==="")t4({start:P,end:P+H+1},C.name);if(M==="StyleDirective")return{start:P,end:O,type:M,name:Y,name_loc:C.loc,modifiers:K,value:F,metadata:{expression:new G8}};let J=F===!0?void 0:Array.isArray(F)?F[0]:F,$=null;if(J)if(F.length>1||J.type==="Text")n4(J.start);else $=J.expression;let U={start:P,end:O,type:M,name:Y,name_loc:C.loc,expression:$,metadata:{expression:new G8}};if(U.modifiers=K,U.type==="TransitionDirective"){let B=C.name.slice(0,H);U.intro=B==="in"||B==="transition",U.outro=B==="out"||B==="transition"}if((U.type==="BindDirective"||U.type==="ClassDirective")&&!U.expression)U.expression={start:P+H+1,end:O,type:"Identifier",name:U.name};return U}return d0(C.name,C.loc,P,O,F)}function OL(q){let R=q.index;if(q.eat("//")){let P=q.read_until(/\n/),C=q.index;return{type:"Line",start:R,end:C,value:P,loc:{start:w8(R),end:w8(C)}}}if(q.eat("/*")){let P=q.read_until(/\*\//);q.eat("*/");let C=q.index;return{type:"Block",start:R,end:C,value:P,loc:{start:w8(R),end:w8(C)}}}return null}function HL(q){if(q==="use")return"UseDirective";if(q==="animate")return"AnimateDirective";if(q==="bind")return"BindDirective";if(q==="class")return"ClassDirective";if(q==="style")return"StyleDirective";if(q==="on")return"OnDirective";if(q==="let")return"LetDirective";if(q==="in"||q==="out"||q==="transition")return"TransitionDirective";return!1}function ML(q){let R=q.eat("'")?"'":q.eat('"')?'"':null;if(R&&q.eat(R))return[{start:q.index-1,end:q.index-1,type:"Text",raw:"",data:""}];let P;try{P=p3(q,()=>{if(R)return q.match(R);return!!q.match_regex(aA)},"in attribute value")}catch(C){if(C.code==="js_parse_error"){let O=C.position?.[0];if(O!==void 0&&q.template.slice(O-1,O+1)==="/>")q.index=O,C0(O,R||"}")}throw C}if(P.length===0&&!R)L7(q.index);if(R)q.index+=1;if(R||P.length>1||P[0].type==="Text")return P;else return P[0]}function p3(q,R,P){let C={start:q.index,end:-1,type:"Text",raw:"",data:""},O=[];function H(M){if(M>C.start)C.raw=q.template.slice(C.start,M),C.data=J9(C.raw,!0),C.end=M,O.push(C)}while(q.index<q.template.length){let M=q.index;if(R())return H(q.index),O;else if(q.eat("{")){if(q.match("#")){let K=q.index-1;q.eat("#");let J=q.read_until(/[^a-z]/);d4(K,J,P)}else if(q.match("@")){let K=q.index-1;q.eat("@");let J=q.read_until(/[^a-z]/);L3(K,J,P)}H(q.index-1),q.allow_whitespace();let F=h8(q);q.allow_whitespace(),q.eat("}",!0);let Y={type:"ExpressionTag",start:M,end:q.index,expression:F,metadata:{expression:new G8}};O.push(Y),C={start:q.index,end:-1,type:"Text",raw:"",data:""}}else q.index++}if(q.loose)return O;else d8(q.template.length)}function c7(q,R){let P=q.index,C=q.read_until(R),O=q.index;return{type:"Identifier",name:C,start:P,end:O,loc:{start:w8(P),end:w8(O)}}}function W0(q){let{index:R,index:P}=q,C=q.read_identifier();if(C.name!==""){let K=c3(q);return{...C,typeAnnotation:K}}let O=q.template[P];if(O!=="{"&&O!=="[")P3(P);P=Z9(q,R),q.index=P;let H=q.template.slice(R,P),M=q.template.slice(0,R).replace(e9," "),F=M.indexOf(" ");M=M.slice(0,F)+M.slice(F+1);let Y=S1(p0(q,`${M}(${H} = 1)`,R-1));if(Y=Y.left,Y.typeAnnotation=c3(q),Y.typeAnnotation)Y.end=Y.typeAnnotation.end;return Y}function c3(q){let R=q.index;if(q.allow_whitespace(),!q.eat(":")){q.index=R;return}let P="_ as ",C=q.index-P.length,O=q.template.slice(0,C).replace(/[^\n]/g," ")+P+q.template.slice(q.index).replace(/\?\s*:/g,":"),H=S1(p0(q,O,C));if(H.type==="AssignmentExpression"){let M=H.right.start;while(O[M]!=="=")M-=1;H=S1(p0(q,O.slice(0,M),C))}if(H.type==="SequenceExpression")H=H.expressions[0];return q.index=H.end,{type:"TSTypeAnnotation",start:R,end:q.index,typeAnnotation:H.typeAnnotation}}var i7=/\s*}/y,QL=/(?:let|const)\b/y,ZL=/(?:var|interface|enum)\b/y,YL=/type\b/y,FL={"<":">"};function d7(q){let R=q.index;if(q.index+=1,q.allow_whitespace(),q.eat("#"))return JL(q);if(q.eat(":"))return KL(q);if(q.eat("@"))return WL(q);if(q.match("/")){if(!q.match("/*")&&!q.match("//"))return q.eat("/"),r7(q)}let P=VL(q);if(P){q.append({type:"DeclarationTag",start:R,end:q.index,declaration:P,metadata:{expression:new G8}});return}let C=h8(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ExpressionTag",start:R,end:q.index,expression:C,metadata:{expression:new G8}})}function VL(q){let R=q.index,P=q.match_regex(ZL);if(P)jq({start:R,end:R+P.length});if(!q.match_regex(QL)&&!q.match_regex(YL))return null;let C=q.root.comments.length,O;try{O=f3(q,q.template,R)}catch(H){if(!q.loose)throw H;let M=Tq(q.template,R,"{");if(M===void 0)throw H;q.index=M,O={type:"VariableDeclaration",kind:q.template.startsWith("const",R)?"const":"let",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"",start:q.index,end:q.index},init:null,start:q.index,end:q.index}],start:R,end:M}}if(O.type!=="VariableDeclaration")if(O.type==="ExpressionStatement")return q.root.comments.length=C,null;else jq({start:O.start??R,end:O.end??q.index});if(O.kind!=="let"&&O.kind!=="const")jq(O);return q.index=O.end,q.allow_whitespace(),q.eat("}",!0),O}function JL(q){let R=q.index-2;while(q.template[R]!=="{")R-=1;if(q.eat("if")){q.require_whitespace();let P=q.append({type:"IfBlock",elseif:!1,start:R,end:-1,test:h8(q),consequent:b8(),alternate:null,metadata:{expression:new G8}});q.allow_whitespace(),q.eat("}",!0),q.stack.push(P),q.fragments.push(P.consequent);return}if(q.eat("each")){q.require_whitespace();let P=q.template,C=q.template.length,O;while(!O)try{O=h8(q,void 0,!0)}catch(J){C=J.position[0]-2;while(C>R&&q.template.slice(C,C+2)!=="as")C-=1;if(C<=R){if(q.loose){if(O=k7(q),O)break}throw J}q.template=P.slice(0,C)}if(q.template=P,q.allow_whitespace(),!q.match("as")){if(O.type==="SequenceExpression")O=O.expressions[0];let J=null,$=O.end;if(O=U8(O,null,{TSAsExpression(U,B){if(U.end===O.end)return J=U,$=U.expression.end,U.expression;B.next()}}),O.end=$,J){let U=J.typeAnnotation.start-2;while(q.template.slice(U,U+2)!=="as")U-=1;q.index=U}}let H=null,M,F;if(q.eat("as"))q.require_whitespace(),H=W0(q);else q.index=O.end;if(q.allow_whitespace(),q.eat(",")){if(q.allow_whitespace(),M=q.read_identifier().name,!M)j7(q.index);q.allow_whitespace()}if(q.eat("("))q.allow_whitespace(),F=h8(q,"("),q.allow_whitespace(),q.eat(")",!0),q.allow_whitespace();if(!q.eat("}",!0,!1))if(q.template.slice(q.index-4,q.index)===" as "){let J=q.index;H=W0(q),q.eat("}",!0),O={type:"Identifier",name:"",start:O.start,end:J-4}}else q.eat("}",!0);let K=q.append({type:"EachBlock",start:R,end:-1,expression:O,body:b8(),context:H,index:M,key:F,metadata:null});q.stack.push(K),q.fragments.push(K.body);return}if(q.eat("await")){q.require_whitespace();let P=h8(q);q.allow_whitespace();let C=q.append({type:"AwaitBlock",start:R,end:-1,expression:P,value:null,error:null,pending:null,then:null,catch:null,metadata:{expression:new G8}});if(q.eat("then")){if(q.match_regex(i7))q.allow_whitespace();else q.require_whitespace(),C.value=W0(q),q.allow_whitespace();C.then=b8(),q.fragments.push(C.then)}else if(q.eat("catch")){if(q.match_regex(i7))q.allow_whitespace();else q.require_whitespace(),C.error=W0(q),q.allow_whitespace();C.catch=b8(),q.fragments.push(C.catch)}else C.pending=b8(),q.fragments.push(C.pending);if(!q.eat("}",!0,!1))if(q.template.slice(q.index-6,q.index)===" then "){let H=q.index;C.value=W0(q),q.eat("}",!0),C.expression={type:"Identifier",name:"",start:P.start,end:H-6},C.then=C.pending,C.pending=null}else if(q.template.slice(q.index-7,q.index)===" catch "){let H=q.index;C.error=W0(q),q.eat("}",!0),C.expression={type:"Identifier",name:"",start:P.start,end:H-7},C.catch=C.pending,C.pending=null}else q.eat("}",!0);q.stack.push(C);return}if(q.eat("key")){q.require_whitespace();let P=h8(q);q.allow_whitespace(),q.eat("}",!0);let C=q.append({type:"KeyBlock",start:R,end:-1,expression:P,fragment:b8(),metadata:{expression:new G8}});q.stack.push(C),q.fragments.push(C.fragment);return}if(q.eat("snippet")){q.require_whitespace();let P=q.read_identifier();if(P.name===""&&!q.loose)j7(q.index);q.allow_whitespace();let C=q.index,O;if(q.ts&&q.match("<")){let J=q.index,$=Z9(q,J,FL);O=q.template.slice(J+1,$-1),q.index=$}q.allow_whitespace();let H=q.eat("(",!0,!1);if(H){let J=1;while(q.index<q.template.length&&(!q.match(")")||J!==1)){if(q.match("("))J++;if(q.match(")"))J--;q.index+=1}q.eat(")",!0)}let M=q.template.slice(0,C).replace(/\S/g," "),F=q.template.slice(C,q.index),Y=H?p0(q,M+`${F} => {}`,C):{params:[]};q.allow_whitespace(),q.eat("}",!0);let K=q.append({type:"SnippetBlock",start:R,end:-1,expression:P,typeParams:O,parameters:Y.params,body:b8(),metadata:{can_hoist:!1,sites:new Set}});q.stack.push(K),q.fragments.push(K.body);return}R3(q.index)}function KL(q){let R=q.index-1,P=q.current();if(P.type==="IfBlock"){if(!q.eat("else"))C0(R,"{:else} or {:else if}");if(q.eat("if"))r4(R);if(q.allow_whitespace(),q.fragments.pop(),P.alternate=b8(),q.fragments.push(P.alternate),q.eat("if")){q.require_whitespace();let C=h8(q);q.allow_whitespace(),q.eat("}",!0);let O=R-1;while(q.template[O]!=="{")O-=1;let H=q.append({start:O,end:-1,type:"IfBlock",elseif:!0,test:C,consequent:b8(),alternate:null,metadata:{expression:new G8}});q.stack.push(H),q.fragments.pop(),q.fragments.push(H.consequent)}else q.allow_whitespace(),q.eat("}",!0);return}if(P.type==="EachBlock"){if(!q.eat("else"))C0(R,"{:else}");q.allow_whitespace(),q.eat("}",!0),P.fallback=b8(),q.fragments.pop(),q.fragments.push(P.fallback);return}if(P.type==="AwaitBlock"){if(q.eat("then")){if(P.then)$7(R,"{:then}");if(!q.eat("}"))q.require_whitespace(),P.value=W0(q),q.allow_whitespace(),q.eat("}",!0);P.then=b8(),q.fragments.pop(),q.fragments.push(P.then);return}if(q.eat("catch")){if(P.catch)$7(R,"{:catch}");if(!q.eat("}"))q.require_whitespace(),P.error=W0(q),q.allow_whitespace(),q.eat("}",!0);P.catch=b8(),q.fragments.pop(),q.fragments.push(P.catch);return}C0(R,"{:then ...} or {:catch ...}")}i4(R)}function r7(q){let R=q.index-1,P=q.current(),C;switch(P.type){case"IfBlock":if(C=q.eat("if",!0,!1),!C){P.end=R-1,q.pop(),r7(q);return}q.allow_whitespace(),q.eat("}",!0);while(P.elseif)P.end=q.index,q.stack.pop(),P=q.current();P.end=q.index,q.pop();return;case"EachBlock":C=q.eat("each",!0,!1);break;case"KeyBlock":C=q.eat("key",!0,!1);break;case"AwaitBlock":C=q.eat("await",!0,!1);break;case"SnippetBlock":C=q.eat("snippet",!0,!1);break;case"RegularElement":if(q.loose)C=!1;else A7(R);break;default:A7(R)}if(!C){P.end=R-1,q.pop(),r7(q);return}q.allow_whitespace(),q.eat("}",!0),P.end=q.index,q.pop()}function WL(q){let R=q.index;while(q.template[R]!=="{")R-=1;if(q.eat("html")){q.require_whitespace();let P=h8(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"HtmlTag",start:R,end:q.index,expression:P,metadata:{expression:new G8}});return}if(q.eat("debug")){let P;if(q.read(i7))P=[];else{let C=h8(q);P=C.type==="SequenceExpression"?C.expressions:[C],P.forEach((O)=>{if(O.type!=="Identifier")o4(O.start)}),q.allow_whitespace(),q.eat("}",!0)}q.append({type:"DebugTag",start:R,end:q.index,identifiers:P});return}if(q.eat("const")){q.require_whitespace();let P=W0(q);q.allow_whitespace(),q.eat("=",!0),q.allow_whitespace();let C=q.index,O=h8(q);if(O.type==="SequenceExpression"&&!q.template.substring(C,O.start).includes("("))s4(O);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ConstTag",start:R,end:q.index,declaration:{type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:P,init:O,start:P.start,end:O.end}],start:R+2,end:q.index-1},metadata:{expression:new G8}});return}if(q.eat("render")){q.require_whitespace();let P=h8(q);if(P.type!=="CallExpression"&&(P.type!=="ChainExpression"||P.expression.type!=="CallExpression"))M3(P);q.allow_whitespace(),q.eat("}",!0),q.append({type:"RenderTag",start:R,end:q.index,expression:P,metadata:{expression:new G8,dynamic:!1,arguments:[],path:[],snippets:new Set}});return}C3(q.index)}function a7(q){let R=q.index;while(q.index<q.template.length&&!q.match("<")&&!q.match("{"))q.index++;let P=q.template.slice(R,q.index);q.append({type:"Text",start:R,end:q.index,raw:P,data:J9(P,!1)})}function K9(q){if(q.match("<"))return p7;if(q.match("{"))return d7;return a7}function s7(q){let R={start:q.start,end:q.end,attributes:q.attributes};if(!q)return R;for(let P of q.attributes){if(P.type!=="Attribute")z3(P);let{name:C}=P;switch(C){case"runes":{R.runes=hq(P);break}case"tag":{G3(P);break}case"customElement":{let O={},{value:H}=P,M=H===!0||Array.isArray(H)?H:[H];if(M===!0)fq(P);else if(M[0].type==="Text"){let U=gq(P);r3(P,U),O.tag=U,R.customElement=O;break}else if(M[0].expression.type!=="ObjectExpression"){if(M[0].expression.type==="Literal"&&M[0].expression.value===null)break;fq(P)}let F=[];for(let U of M[0].expression.properties){if(U.type!=="Property"||U.computed||U.key.type!=="Identifier")fq(P);F.push([U.key.name,U.value])}let Y=F.find(([U])=>U==="tag");if(Y){let U=Y[1]?.value;r3(Y,U),O.tag=U}let K=F.find(([U])=>U==="props")?.[1];if(K){if(K.type!=="ObjectExpression")x0(P);O.props={};for(let U of K.properties){if(U.type!=="Property"||U.computed||U.key.type!=="Identifier"||U.value.type!=="ObjectExpression")x0(P);O.props[U.key.name]={};for(let B of U.value.properties){if(B.type!=="Property"||B.computed||B.key.type!=="Identifier"||B.value.type!=="Literal")x0(P);if(B.key.name==="type"){if(["String","Number","Boolean","Array","Object"].indexOf(B.value.value)===-1)x0(P);O.props[U.key.name].type=B.value.value}else if(B.key.name==="reflect"){if(typeof B.value.value!=="boolean")x0(P);O.props[U.key.name].reflect=B.value.value}else if(B.key.name==="attribute"){if(typeof B.value.value!=="string")x0(P);O.props[U.key.name].attribute=B.value.value}else x0(P)}}}let J=F.find(([U])=>U==="shadow")?.[1];if(J)if(J.type==="Literal"&&(J.value==="open"||J.value==="none"))O.shadow=J.value;else if(J.type==="ObjectExpression")O.shadow=J;else B3(P);let $=F.find(([U])=>U==="extend")?.[1];if($)O.extend=$;R.customElement=O;break}case"namespace":{let O=gq(P);if(O===p6)R.namespace="svg";else if(O===c6)R.namespace="mathml";else if(O==="html"||O==="mathml"||O==="svg")R.namespace=O;else Iq(P,'"html", "mathml" or "svg"');break}case"css":{let O=gq(P);if(O==="injected")R.css=O;else Iq(P,'"injected"');break}case"immutable":{R.immutable=hq(P);break}case"preserveWhitespace":{R.preserveWhitespace=hq(P);break}case"accessors":{R.accessors=hq(P);break}default:$3(P,C)}}return R}function gq(q){let{value:R}=q;if(R===!0)return!0;let P=Array.isArray(R)?R[0]:R;if(!P)return!0;if(R.length>1)return null;if(P.type==="Text")return P.data;if(P.expression.type!=="Literal")return null;return P.expression.value}function hq(q){let R=gq(q);if(typeof R!=="boolean")Iq(q,"true or false");return R}var i3="[a-z0-9_.·À-ÖØ-öø-ͽͿ-῿‌-‍‿-⁀⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF-]",XL=new RegExp(`^[a-z]${i3}*-${i3}*$`,"u"),GL=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function r3(q,R){if(typeof R!=="string")S7(q);if(R){if(!XL.test(R))S7(q);else if(GL.includes(R))U3(q)}}function W9(q){let{nodes:R}=q.fragment;if(R.length>0){let P=R[0],C=R[R.length-1];K3({start:P.start,end:C.end},q.name)}}function d3(q){if(q===32||q<=13&&q>=9)return!0;if(q<160)return!1;return q===160||q===5760||q>=8192&&q<=8202||q===8232||q===8233||q===8239||q===8287||q===12288||q===65279}var a3=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g;class lq{template;loose;index=0;static forCss(q){let R=Object.create(lq.prototype);return R.template=q,R.index=0,R.loose=!1,R}ts=!1;stack=[];fragments=[];root;meta_tags={};last_auto_closed_tag;constructor(q,R){if(typeof q!=="string")throw TypeError("Template must be a string");this.loose=R,this.template=q.trimEnd();let P;do P=a3.exec(q);while(P&&P[0][1]!=="s");a3.lastIndex=0,this.ts=P?.[2]==="ts",this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:b8(),options:null,comments:[],metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let C=K9;while(this.index<this.template.length)C=C(this)||K9;if(this.stack.length>1){let H=this.current();if(this.loose)H.end=this.template.length;else if(H.type==="RegularElement")H.end=H.start+1,wq(H,H.name);else H.end=H.start+1,a4(H)}if(C!==K9)d8(this.index);this.root.start=0,this.root.end=q.length;let O=this.root.fragment.nodes.findIndex((H)=>H.type==="SvelteOptions");if(O!==-1){let H=this.root.fragment.nodes[O];this.root.fragment.nodes.splice(O,1),this.root.options=s7(H),W9(H),Object.defineProperty(this.root.options,"__raw__",{value:H,enumerable:!1})}}current(){return this.stack[this.stack.length-1]}eat(q,R=!1,P=!0){if(this.match(q))return this.index+=q.length,!0;if(R&&(!this.loose||P))C0(this.index,q);return!1}match(q){if(q.length===1)return this.template[this.index]===q;return this.template.startsWith(q,this.index)}match_regex(q){q.lastIndex=this.index;let R=q.exec(this.template);if(!R||R.index!==this.index)return null;return R[0]}allow_whitespace(){while(this.index<this.template.length&&d3(this.template.charCodeAt(this.index)))this.index++}read(q){let R=this.match_regex(q);if(R)this.index+=R.length;return R}read_identifier(){let q=this.index,R=q,P="",C=this.template.codePointAt(this.index);if(a8(C,!0)){let O=this.index;R+=C<=65535?1:2;while(R<this.template.length){let H=this.template.codePointAt(R);if(!K0(H,!0))break;R+=H<=65535?1:2}if(P=this.template.slice(q,R),this.index=R,d1(P))j3(q,P)}return{type:"Identifier",name:P,start:q,end:R,loc:{start:w8(q),end:w8(R)}}}read_until(q){if(this.index>=this.template.length){if(this.loose)return"";d8(this.template.length)}let R=this.index,P=q.exec(this.template.slice(R));if(P)return this.index=R+P.index,this.template.slice(R,this.index);return this.index=this.template.length,this.template.slice(R)}require_whitespace(){if(!d3(this.template.charCodeAt(this.index)))O3(this.index);this.allow_whitespace()}pop(){let q=this.fragments.pop();if(q?.metadata.transparent&&q.nodes.some((R)=>R.type==="DeclarationTag"))q.metadata.transparent=!1;return this.stack.pop()}append(q){return this.fragments.at(-1)?.nodes.push(q),q}}function o7(q,R=!1){return Oq(q),new lq(q,R).root}function X9(q,R){if(!q)return;let P=q.declaration_kind;if(P!=="synthetic"&&P!=="param"&&P!=="rest_param"&&(!R||R<=1)){let C=q.node;if(C.name==="$")_4(C);else if(C.name.startsWith("$")&&!(q.initial?.type==="ImportDeclaration"&&q.initial.importKind==="type"))m4(C)}}var X0=Symbol("unknown"),n=Symbol("number"),A0=Symbol("string"),o3=Symbol("string"),n3={BigInt:[n],"Math.min":[n,Math.min],"Math.max":[n,Math.max],"Math.random":[n],"Math.floor":[n,Math.floor],"Math.f16round":[n,Math.f16round],"Math.round":[n,Math.round],"Math.abs":[n,Math.abs],"Math.acos":[n,Math.acos],"Math.asin":[n,Math.asin],"Math.atan":[n,Math.atan],"Math.atan2":[n,Math.atan2],"Math.ceil":[n,Math.ceil],"Math.cos":[n,Math.cos],"Math.sin":[n,Math.sin],"Math.tan":[n,Math.tan],"Math.exp":[n,Math.exp],"Math.log":[n,Math.log],"Math.pow":[n,Math.pow],"Math.sqrt":[n,Math.sqrt],"Math.clz32":[n,Math.clz32],"Math.imul":[n,Math.imul],"Math.sign":[n,Math.sign],"Math.log10":[n,Math.log10],"Math.log2":[n,Math.log2],"Math.log1p":[n,Math.log1p],"Math.expm1":[n,Math.expm1],"Math.cosh":[n,Math.cosh],"Math.sinh":[n,Math.sinh],"Math.tanh":[n,Math.tanh],"Math.acosh":[n,Math.acosh],"Math.asinh":[n,Math.asinh],"Math.atanh":[n,Math.atanh],"Math.trunc":[n,Math.trunc],"Math.fround":[n,Math.fround],"Math.cbrt":[n,Math.cbrt],Number:[n,Number],"Number.isInteger":[n,Number.isInteger],"Number.isFinite":[n,Number.isFinite],"Number.isNaN":[n,Number.isNaN],"Number.isSafeInteger":[n,Number.isSafeInteger],"Number.parseFloat":[n,Number.parseFloat],"Number.parseInt":[n,Number.parseInt],String:[A0,String],"String.fromCharCode":[A0,String.fromCharCode],"String.fromCodePoint":[A0,String.fromCodePoint]},t3={"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 qR{scope;node;kind;declaration_kind;initial=null;references=[];assignments=[];legacy_dependencies=[];legacy_indirect_bindings=new Set;prop_alias=null;metadata=null;mutated=!1;reassigned=!1;blocker=null;constructor(q,R,P,C,O){if(this.scope=q,this.node=R,this.initial=O,this.kind=P,this.declaration_kind=C,O)this.assignments.push({value:O,scope:q})}get updated(){return this.mutated||this.reassigned}is_function(){if(this.updated)return!1;let q=this.initial?.type;return q==="ArrowFunctionExpression"||q==="FunctionExpression"||q==="FunctionDeclaration"}}class RR{values;is_known=!0;has_unknown=!1;is_defined=!0;is_string=!0;is_number=!0;is_primitive=!0;is_function=!0;value=void 0;constructor(q,R,P){switch(n7.set(R,this),this.values=P,R.type){case"Literal":{this.values.add(R.value);break}case"Identifier":{let C=q.get(R.name);if(C){if(C.initial?.type==="CallExpression"&&g8(C.initial,q)==="$props.id"){this.values.add(A0);break}let O=C.kind==="prop"||C.kind==="rest_prop"||C.kind==="bindable_prop";if(C.initial?.type==="EachBlock"&&C.initial.index===R.name){this.values.add(n);break}if(C.initial?.type==="SnippetBlock"){this.is_defined=!0,this.is_known=!1,this.values.add(X0);break}if(!C.updated&&C.initial!==null&&!O){C.scope.evaluate(C.initial,this.values);break}}else if(R.name==="undefined"){this.values.add(void 0);break}this.values.add(X0);break}case"BinaryExpression":{let C=q.evaluate(R.left),O=q.evaluate(R.right);if(C.is_known&&O.is_known){this.values.add(LL[R.operator](C.value,O.value));break}switch(R.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(n);break;case"+":if(C.is_string||O.is_string)this.values.add(A0);else if(C.is_number&&O.is_number)this.values.add(n);else this.values.add(A0),this.values.add(n);break;default:this.values.add(X0)}break}case"ConditionalExpression":{let C=q.evaluate(R.test),O=q.evaluate(R.consequent),H=q.evaluate(R.alternate);if(C.is_known)for(let M of(C.value?O:H).values)this.values.add(M);else{for(let M of O.values)this.values.add(M);for(let M of H.values)this.values.add(M)}break}case"LogicalExpression":{let C=q.evaluate(R.left),O=q.evaluate(R.right);if(C.is_known){if(O.is_known){this.values.add(wL[R.operator](C.value,O.value));break}if(R.operator==="&&"&&!C.value||R.operator==="||"&&C.value||R.operator==="??"&&C.value!=null)this.values.add(C.value);else for(let H of O.values)this.values.add(H);break}for(let H of C.values)this.values.add(H);for(let H of O.values)this.values.add(H);break}case"UnaryExpression":{let C=q.evaluate(R.argument);if(C.is_known){this.values.add(jL[R.operator](C.value));break}switch(R.operator){case"!":case"delete":this.values.add(!1),this.values.add(!0);break;case"+":case"-":case"~":this.values.add(n);break;case"typeof":this.values.add(A0);break;case"void":this.values.add(void 0);break;default:this.values.add(X0)}break}case"CallExpression":{let C=t7(R.callee,q);if(C){if(a1(C)){let O=R.arguments[0];switch(C){case"$state":case"$state.raw":case"$derived":if(O)q.evaluate(O,this.values);else this.values.add(void 0);break;case"$props.id":this.values.add(A0);break;case"$effect.tracking":this.values.add(!1),this.values.add(!0);break;case"$derived.by":if(O?.type==="ArrowFunctionExpression"&&O.body.type!=="BlockStatement"){q.evaluate(O.body,this.values);break}this.values.add(X0);break;default:this.values.add(X0)}break}if(Object.hasOwn(n3,C)&&R.arguments.every((O)=>O.type!=="SpreadElement")){let[O,H]=n3[C],M=R.arguments.map((F)=>q.evaluate(F));if(H&&M.every((F)=>F.is_known))this.values.add(H(...M.map((F)=>F.value)));else this.values.add(O);break}}this.values.add(X0);break}case"TemplateLiteral":{let C=R.quasis[0].value.cooked;for(let O=0;O<R.expressions.length;O+=1){let H=q.evaluate(R.expressions[O]);if(H.is_known)C+=H.value+R.quasis[O+1].value.cooked;else{this.values.add(A0);break}}this.values.add(C);break}case"MemberExpression":{let C=t7(R,q);if(C&&Object.hasOwn(t3,C)){this.values.add(t3[C]);break}this.values.add(X0);break}case"ArrowFunctionExpression":case"FunctionExpression":case"FunctionDeclaration":{this.values.add(o3);break}default:this.values.add(X0)}for(let C of this.values){if(this.value=C,C!==A0&&typeof C!=="string")this.is_string=!1;if(C!==n&&typeof C!=="number")this.is_number=!1;if(C!==o3)this.is_function=!1;if(C==null||C===X0)this.is_defined=!1;if(C===X0)this.has_unknown=!0,this.is_primitive=!1}if(this.values.size>1||typeof this.value==="symbol")this.is_known=!1;n7.delete(R)}}class e7{root;parent;#q;declarations=new Map;declarators=new Map;references=new Map;function_depth=0;tracing=null;constructor(q,R,P){this.root=q,this.parent=R,this.#q=P,this.function_depth=R?R.function_depth+(P?0:1):0}declare(q,R,P,C=null){if(this.parent){if(P==="var"&&this.#q)return this.parent.declare(q,R,P);if(P==="import")return this.parent.declare(q,R,P,C)}if(this.declarations.has(q.name)){let H=this.declarations.get(q.name);if(H&&H.declaration_kind!=="var"&&P!=="var")Lq(q,q.name)}let O=new qR(this,q,R,P,C);return X9(O,this.function_depth),this.declarations.set(q.name,O),this.root.conflicts.add(q.name),O}child(q=!1){return new e7(this.root,this,q)}generate(q){if(this.#q)return this.parent.generate(q);q=q.replace(/[^a-zA-Z0-9_$]/g,"_").replace(/^[0-9]/,"_");let R=this.root.next_counter(q),P;if(R===0)P=q,R=1;else P=`${q}_${R}`,R++;while(this.references.has(P)||this.declarations.has(P)||this.root.conflicts.has(P)||d1(P))P=`${q}_${R++}`;return this.root.set_counter(q,R),this.references.set(P,[]),this.root.conflicts.add(P),P}get(q){return this.declarations.get(q)??this.parent?.get(q)??null}get_bindings(q){let R=this.declarators.get(q);if(!R)throw Error("No binding found for declarator");return R}owner(q){return this.declarations.has(q)?this:this.parent&&this.parent.owner(q)}reference(q,R){R=[...R];let P=this.references.get(q.name);if(!P)this.references.set(q.name,P=[]);P.push({node:q,path:R});let C=this.declarations.get(q.name);if(C)C.references.push({node:q,path:R});else if(this.parent)this.parent.reference(q,R);else this.root.conflicts.add(q.name)}evaluate(q,R=new Set){let P=n7.get(q);if(P)return P;return new RR(this,q,R)}}var n7=new Map,LL={"!=":(q,R)=>q!=R,"!==":(q,R)=>q!==R,"<":(q,R)=>q<R,"<=":(q,R)=>q<=R,">":(q,R)=>q>R,">=":(q,R)=>q>=R,"==":(q,R)=>q==R,"===":(q,R)=>q===R,in:(q,R)=>(q in R),instanceof:(q,R)=>q instanceof R,"%":(q,R)=>q%R,"&":(q,R)=>q&R,"*":(q,R)=>q*R,"**":(q,R)=>q**R,"+":(q,R)=>q+R,"-":(q,R)=>q-R,"/":(q,R)=>q/R,"<<":(q,R)=>q<<R,">>":(q,R)=>q>>R,">>>":(q,R)=>q>>>R,"^":(q,R)=>q^R,"|":(q,R)=>q|R},jL={"-":(q)=>-q,"+":(q)=>+q,"!":(q)=>!q,"~":(q)=>~q,typeof:(q)=>typeof q,void:()=>{return},delete:()=>!0},wL={"||":(q,R)=>q||R,"&&":(q,R)=>q&&R,"??":(q,R)=>q??R};class PR{conflicts=new Set;#q=new Map;next_counter(q){return this.#q.get(q)??0}set_counter(q,R){this.#q.set(q,R)}unique(q){q=q.replace(/[^a-zA-Z0-9_$]/g,"_");let R=this.#q.get(q)??0,P;if(R===0)P=q,R=1;else P=`${q}_${R}`,R++;while(this.conflicts.has(P))P=`${q}_${R++}`;return this.#q.set(q,R),this.conflicts.add(P),_(P)}}function g8(q,R){if(!q)return null;if(q.type!=="CallExpression")return null;let P=t7(q.callee,R);if(!P||!a1(P))return null;return P}function t7(q,R){let P=q,C="";while(P.type==="MemberExpression"){if(P.computed)return null;if(P.property.type!=="Identifier")return null;C="."+P.property.name+C,P=P.object}if(P.type==="CallExpression"&&P.callee.type==="Identifier")C="()"+C,P=P.callee;if(P.type!=="Identifier")return null;if(R.get(P.name)!==null)return null;return P.name+C}var g1=i1(W2(),1),F1=i1(w2(),1),Tb="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(" ");var I2=g1.roles.keys(),Bz=I2.filter((q)=>g1.roles.get(q)?.abstract),Uz=I2.filter((q)=>!Bz.includes(q)),f2=Uz.filter((q)=>{let R=g1.roles.get(q);return!["toolbar","tabpanel","generic","cell"].includes(q)&&!R?.superClass.some((P)=>P.includes("widget")||P.includes("window"))}).concat("progressbar"),$z=Uz.filter((q)=>!f2.includes(q)&&q!=="generic");var Az=[],Lz=[];for(let[q,R]of g1.elementRoles.entries()){if([...R].every((P)=>P!=="generic"&&f2.includes(P)))Az.push(q);if([...R].every((P)=>$z.includes(P)))Lz.push(q)}var Nb=[...F1.AXObjects.keys()].filter((q)=>F1.AXObjects.get(q).type==="widget"),jz=[],wz=[],Db=[...F1.AXObjects.keys()].filter((q)=>["windows","structure"].includes(F1.AXObjects.get(q).type));for(let[q,R]of F1.elementAXObjects.entries()){if([...R].every((P)=>Nb.includes(P)))jz.push(q);if([...R].every((P)=>Db.includes(P)))wz.push(q)}var Iz=i1(W2(),1),fz=i1(w2(),1);var Dz="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gb=new Uint8Array(64),lb=new Uint8Array(128);for(let q=0;q<Dz.length;q++){let R=Dz.charCodeAt(q);gb[q]=R,lb[R]=q}class q6{#q;#R;#P=!1;multiline=!1;constructor(q,R=[]){this.#q=q,this.#R=R}indent(){this.#R.push(2)}dedent(){this.#R.push(3)}margin(){this.#R.push(0)}newline(){this.#P=!0,this.#R.push(1)}space(){this.#R.push(4)}append(q){if(this.#R.push(q.#R),this.#P||q.multiline)this.multiline=!0}write(q,R){if(R?.loc)this.location(R.loc.start.line,R.loc.start.column),this.#R.push(q),this.location(R.loc.end.line,R.loc.end.column);else this.#R.push(q);if(this.#P)this.multiline=!0}location(q,R){this.#R.push({type:"Location",line:q,column:R})}visit(q){let R=this.#q[q.type];if(!R){let P=`Not implemented: ${q.type}`;if(q.type.includes("TS"))P+=" (consider using 'esrap/languages/ts')";if(q.type.includes("JSX"))P+=" (consider using 'esrap/languages/tsx')";throw Error(P)}if(this.#q._)this.#q._(q,this,(P)=>R(P,this));else R(q,this)}empty(){return!this.#R.some(Ez)}measure(){return uz(this.#R)}new(){return new q6(this.#q)}}function uz(q,R=0,P=q.length){let C=0;for(let O=R;O<P;O+=1){let H=q[O];if(typeof H==="string")C+=H.length;else if(Array.isArray(H))C+=uz(H)}return C}function Ez(q){if(Array.isArray(q))return q.some(Ez);if(typeof q==="string")return q.length>0;return!1}var kz=()=>{throw Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};if(typeof window<"u"&&typeof window.btoa==="function")kz=(q)=>window.btoa(unescape(encodeURIComponent(q)));else if(typeof Buffer==="function")kz=(q)=>Buffer.from(q,"utf-8").toString("base64");var R6="5.56.3";var xb=i1(bz(),1);var ab=/[&"<]/g,sb=/[&<]/g;function k9(q,R){let P=String(q??""),C=R?ab:sb;C.lastIndex=0;let O="",H=0;while(C.test(P)){let M=C.lastIndex-1,F=P[M];O+=P.substring(H,M)+(F==="&"?"&amp;":F==='"'?"&quot;":"&lt;"),H=M+1}return O+P.substring(H)}var gz=`<!--${X5}-->`,lz=`<!--${G5}-->`,_z=`<!--${z5}-->`,mz="<!---->";var y9=i(gz),T2=i(lz),V1=i(_z),O6=i(mz);function J1(q,R,P){if(R.elements.length===0&&!P)return q;let C=Q8([_("$$renderer")],e(q),P);return R.elements.length>0?[o(h("$$renderer.async_block",R,C))]:[o(h("$$renderer.child_block",C))]}class _1{expressions=[];has_await=!1;#q=new Set;transform=(q,R)=>{if(this.check_blockers(R),R.has_await){this.has_await=!0;let P=this.expressions.push(q);return _(`$$${P-1}`)}return q};check_blockers(q){for(let R of q.references)if(R.blocker)this.#q.add(R.blocker)}#R(){if(this.expressions.length===0)return _8;if(this.expressions.length===1)return M0("$$0",this.expressions[0]);let q=C8(this.expressions.map((R)=>{return R.type==="AwaitExpression"&&!Z1(R.argument)?R.argument:h(R8(R,!0))}));return M0(Y9(this.expressions.map((R,P)=>_(`$$${P}`))),N1(h("Promise.all",q)))}blockers(){return C8([...this.#q])}is_async(){return this.expressions.length>0||this.#q.size>0}render(q){if(!this.is_async())return q;let R=Q8([_("$$renderer")],e([this.#R(),...q]),this.has_await),P=this.blockers();return P.elements.length>0?[o(h("$$renderer.async",P,R))]:[o(h("$$renderer.child",R))]}render_block(q){if(!this.is_async())return q;return J1([this.#R(),...q],this.blockers(),this.has_await)}}class h0{#q=[];#R=[];#P=new Set;add(q,R,P=!1){if(this.check_blockers(R),!(R.has_call||R.has_await||P&&R.has_state))return q;let O=_("#");return(R.has_await?this.#R:this.#q).push({id:O,expression:q}),O}check_blockers(q){for(let R of q.references)if(R.blocker)this.#P.add(R.blocker)}apply(){return[...this.#q,...this.#R].map((q,R)=>{return q.id.name=`$${R}`,q.id})}blockers(){return this.#P.size>0?C8([...this.#P]):void 0}deriveds(q=!0){return this.#q.map((R)=>y0(R.id,h(q?"$.derived":"$.derived_safe_equal",R8(R.expression))))}async_ids(){return this.#R.map((q)=>q.id)}async_values(){if(this.#R.length===0)return;return C8(this.#R.map((q)=>Q8([],q.expression,!0)))}sync_values(){if(this.#q.length===0)return;return C8(this.#q.map((q)=>Q8([],q.expression)))}}var Wh="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(" "),tz=new Map;Wh.forEach((q)=>{tz.set(q.toLowerCase(),q)});function k2(q){return q=q.toLowerCase(),tz.get(q)||q}class y2{contains_script_tag=!1;needs_import_node=!1;nodes=[];#q=[this.nodes];#R;#P=this.nodes;push_element(q,R,P){this.#R={type:"element",name:q,attributes:{},children:[],is_html:P,start:R},this.#P.push(this.#R),this.#P=this.#R.children,this.#q.push(this.#P)}push_comment(q){this.#P.push({type:"comment",data:q})}push_text(q){this.#P.push({type:"text",nodes:q})}pop_element(){this.#q.pop(),this.#P=this.#q.at(-1)}set_prop(q,R){this.#R.attributes[q]=R}as_html(){return uq([Dq(this.nodes.map(ez).join(""),!0)],[])}as_tree(){if(this.nodes[0].type==="comment")this.nodes.unshift({type:"comment",data:void 0});return C8(this.nodes.map(qB))}}function ez(q){if(q.type==="text")return q.nodes.map((P)=>P.raw).join("");if(q.type==="comment")return q.data?`<!--${q.data}-->`:"<!>";let R=`<${q.name}`;for(let P in q.attributes){let C=q.attributes[P];if(R+=` ${q.is_html?P.toLowerCase():P}`,C!==void 0)R+=`="${k9(C,!0)}"`}if(D0(q.name))R+="/>";else R+=">",R+=q.children.map(ez).join(""),R+=`</${q.name}>`;return R}function qB(q){if(q.type==="text")return i(q.nodes.map((C)=>C.data).join(""));if(q.type==="comment")return q.data?C8([i(`// ${q.data}`)]):null;let R=C8([i(q.name)]),P=S8([]);for(let C in q.attributes){let O=q.attributes[C];P.properties.push(H0("init",Q1(k2(C)),O===void 0?O0:i(O)))}if(P.properties.length>0||q.children.length>0)R.elements.push(P.properties.length>0?P:r0);if(q.children.length>0){let C=q.children.map(qB);if(R.elements.push(...C),q.name==="pre"||q.name==="textarea"){let O=C[0];if(O?.type==="Literal")O.value=O.value.replace(t9,"")}}return R}var QB={filename:h9("(unknown)"),rootDir:h9(typeof process<"u"?process.cwd?.():typeof Deno<"u"?Deno.cwd():void 0),dev:g0(!1),generate:K1("client",(q,R)=>{if(q==="dom"||q==="ssr")return l2(D5),q==="dom"?"client":"server";if(q!=="client"&&q!=="server"&&q!==!1)G0(`${R} must be "client", "server" or false`);return q}),warningFilter:FB(()=>!0),experimental:V6({async:g0(!1)})},ZB={accessors:MB(e6,g0(!1)),css:g2(()=>"external",(q)=>{if(q===!0||q===!1)G0('The boolean options have been removed from the css option. Use "external" instead of false and "injected" instead of true');if(q==="none")G0('css: "none" is no longer a valid option. If this was crucial for you, please open an issue on GitHub with your use case.');if(q!=="external"&&q!=="injected")G0('css should be either "external" (default, recommended) or "injected"');return q}),cssHash:FB(({css:q,filename:R,hash:P})=>{return`svelte-${P(R==="(unknown)"?q:R??q)}`}),cssOutputFilename:h9(void 0),customElement:g2(()=>!1,(q,R)=>{if(typeof q!=="boolean")G0(`${R} should be true or false`);return q}),discloseVersion:g0(!0),immutable:MB(q7,g0(!1)),legacy:x1("The legacy option has been removed. If you are using this because of legacy.componentApi, use compatibility.componentApi instead"),compatibility:V6({componentApi:h2([4,5],5)}),loopGuardTimeout:b2(N5),name:h9(void 0),namespace:h2(["html","mathml","svg"]),modernAst:g0(!1),outputFilename:h9(void 0),preserveComments:g0(!1),fragments:h2(["html","tree"]),preserveWhitespace:g0(!1),runes:g2(()=>{return}),hmr:g0(!1),sourcemap:K1(void 0,(q)=>{return q}),enableSourcemap:b2(v5),hydratable:b2(T5),format:x1('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:x1('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:x1("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:x1("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:x1("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")},Sh=V6({...QB,...Object.fromEntries(Object.keys(ZB).map((q)=>[q,()=>{}]))}),YB=V6({...QB,...ZB});function x1(q){return(R)=>{if(R!==void 0)g4(null,q);return}}var HB=new Set;function l2(q){if(!HB.has(q))HB.add(q),q(null)}function b2(q){return(R)=>{if(R!==void 0)l2(q);return}}function MB(q,R){return(P,C)=>{if(P!==void 0)l2(q);return R(P,C)}}function V6(q,R=!1){return(P,C)=>{let O={};if(P&&typeof P!=="object"||Array.isArray(P))G0(`${C} should be an object`);for(let H in P)if(!(H in q))if(R)O[H]=P[H];else l4(null,`${C?`${C}.${H}`:H}`);for(let H in q){let M=q[H];O[H]=M(P&&P[H],C?`${C}.${H}`:H)}return O}}function K1(q,R){return(P,C)=>{return P===void 0?q:R(P,C)}}function h9(q,R=!0){return K1(q,(P,C)=>{if(typeof P!=="string")G0(`${C} should be a string, if specified`);if(!R&&P==="")G0(`${C} cannot be empty`);return P})}function g0(q){return K1(q,(R,P)=>{if(typeof R!=="boolean")G0(`${P} should be true or false, if specified`);return R})}function h2(q,R=q[0]){return K1(R,(P,C)=>{if(!q.includes(P)){let O=q.length>2?`${C} should be one of ${q.slice(0,-1).map((H)=>`"${H}"`).join(", ")} or "${q[q.length-1]}"`:`${C} should be either "${q[0]}" or "${q[1]}"`;G0(O)}return P})}function FB(q){return K1(q,(R,P)=>{if(typeof R!=="function")G0(`${P} should be a function, if specified`);return R})}function g2(q,R=(P)=>P){return K1(q,(P,C)=>{if(typeof P==="function")return(...M)=>R(P(...M),C);return(...H)=>R(P,C)})}function G0(q){h4(null,q)}function J6(q,{modern:R,loose:P}={}){q=Dh(q),n6({warning:()=>!1,filename:void 0});let C=o7(q,P);return Nh(q,C,R)}function Nh(q,R,P){if(P){let C=(O)=>{delete O.metadata};return R.options?.attributes.forEach((O)=>{if(C(O),C(O.value),Array.isArray(O.value))O.value.forEach(C)}),U8(R,null,{_(O,{next:H}){C(O),H()}})}return y5(q,R)}function Dh(q){if(q.charCodeAt(0)===65279)return q.slice(1);return q}function z0(q){return typeof q==="object"&&q!==null}function VB(q){return z0(q)&&q.type==="VariableDeclaration"&&Array.isArray(q.declarations)}function W1(q){return z0(q)&&q.type==="Literal"}function S0(q){return z0(q)&&q.type==="Identifier"&&typeof q.name==="string"}function JB(q){return z0(q)&&q.type==="MemberExpression"}function K6(q){return z0(q)&&q.type==="ObjectExpression"&&Array.isArray(q.properties)}function uh(q){return z0(q)&&q.type==="CallExpression"}function v0(q,R){if(!uh(q))return!1;return!!q.callee&&z0(q.callee)&&q.callee.type==="Identifier"&&q.callee.name===R}function e0(q){if(z0(q)&&(q.type==="TSAsExpression"||q.type==="TSSatisfiesExpression")&&"expression"in q)return e0(q.expression);return q}function KB(q){if(z0(q)&&(q.type==="TSAsExpression"||q.type==="TSSatisfiesExpression")&&"typeAnnotation"in q)return q.typeAnnotation;return}function Eh(q){return z0(q)&&q.type==="NewExpression"}function _2(q,R){if(!Eh(q))return!1;return!!q.callee&&z0(q.callee)&&q.callee.type==="Identifier"&&q.callee.name===R}var WB={a:"HTMLAnchorElement",abbr:"HTMLElement",address:"HTMLElement",applet:"HTMLUnknownElement",area:"HTMLAreaElement",article:"HTMLElement",aside:"HTMLElement",audio:"HTMLAudioElement",b:"HTMLElement",base:"HTMLBaseElement",basefont:"HTMLElement",bdi:"HTMLElement",bdo:"HTMLElement",blockquote:"HTMLQuoteElement",body:"HTMLBodyElement",br:"HTMLBRElement",button:"HTMLButtonElement",canvas:"HTMLCanvasElement",caption:"HTMLTableCaptionElement",cite:"HTMLElement",code:"HTMLElement",col:"HTMLTableColElement",colgroup:"HTMLTableColElement",data:"HTMLDataElement",datalist:"HTMLDataListElement",dd:"HTMLElement",del:"HTMLModElement",details:"HTMLDetailsElement",dfn:"HTMLElement",dialog:"HTMLDialogElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",dl:"HTMLDListElement",dt:"HTMLElement",em:"HTMLElement",embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement",figcaption:"HTMLElement",figure:"HTMLElement",font:"HTMLFontElement",footer:"HTMLElement",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"HTMLFrameSetElement",h1:"HTMLHeadingElement",h2:"HTMLHeadingElement",h3:"HTMLHeadingElement",h4:"HTMLHeadingElement",h5:"HTMLHeadingElement",h6:"HTMLHeadingElement",head:"HTMLHeadElement",header:"HTMLElement",hgroup:"HTMLElement",hr:"HTMLHRElement",html:"HTMLHtmlElement",i:"HTMLElement",iframe:"HTMLIFrameElement",img:"HTMLImageElement",input:"HTMLInputElement",ins:"HTMLModElement",kbd:"HTMLElement",label:"HTMLLabelElement",legend:"HTMLLegendElement",li:"HTMLLIElement",link:"HTMLLinkElement",main:"HTMLElement",map:"HTMLMapElement",mark:"HTMLElement",marquee:"HTMLMarqueeElement",menu:"HTMLMenuElement",meta:"HTMLMetaElement",meter:"HTMLMeterElement",nav:"HTMLElement",noscript:"HTMLElement",object:"HTMLObjectElement",ol:"HTMLOListElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output:"HTMLOutputElement",p:"HTMLParagraphElement",param:"HTMLParamElement",picture:"HTMLPictureElement",pre:"HTMLPreElement",progress:"HTMLProgressElement",q:"HTMLQuoteElement",rp:"HTMLElement",rt:"HTMLElement",ruby:"HTMLElement",s:"HTMLElement",samp:"HTMLElement",script:"HTMLScriptElement",search:"HTMLElement",section:"HTMLElement",select:"HTMLSelectElement",slot:"HTMLSlotElement",small:"HTMLElement",source:"HTMLSourceElement",span:"HTMLSpanElement",strong:"HTMLElement",style:"HTMLStyleElement",sub:"HTMLElement",summary:"HTMLElement",sup:"HTMLElement",table:"HTMLTableElement",tbody:"HTMLTableSectionElement",td:"HTMLTableCellElement",template:"HTMLTemplateElement",textarea:"HTMLTextAreaElement",tfoot:"HTMLTableSectionElement",th:"HTMLTableCellElement",thead:"HTMLTableSectionElement",time:"HTMLTimeElement",title:"HTMLTitleElement",tr:"HTMLTableRowElement",track:"HTMLTrackElement",u:"HTMLElement",ul:"HTMLUListElement",var:"HTMLElement",video:"HTMLVideoElement",wbr:"HTMLElement"};function kh(q){return q in WB}function XB(q){if(kh(q))return WB[q];return"HTMLElement"}var yh=/\w/;function bh(q,R){let P=q.trim();if(!P.startsWith("{")||!P.endsWith("}"))return;let C=P.slice(1,-1),O=[],H=0,M="";for(let F of C)if(F==="{"||F==="<"||F==="("||F==="[")H++,M+=F;else if(F==="}"||F===">"||F===")"||F==="]")H--,M+=F;else if((F===";"||F===",")&&H===0)O.push(M.trim()),M="";else M+=F;if(M.trim())O.push(M.trim());for(let F of O){if(!F.startsWith(R))continue;let Y=F.slice(R.length);if(Y.length>0&&yh.test(Y[0]))continue;let K=Y.trimStart();if(K.startsWith("?"))K=K.slice(1).trimStart();if(K.startsWith(":"))return K.slice(1).trim()}return}function W6(q,R,P){let C=P;if(C.computed||C.object?.type!=="Identifier"||C.property?.type!=="Identifier")return;let O=C.object.name,H=C.property.name;if(!O||!H)return;if(q.wholePropsLocals.has(O))return R.getPropTypeByLocalOrPublic(H);let M=R.getPropTypeByLocalOrPublic(O)??R.findVariableTypeAndDescription(O)?.type;if(!M)return;return bh(M,H)}function m2(){return{syntaxMode:"legacy",scriptLanguage:void 0,source:void 0,parsed:void 0,runesOptionOverride:void 0,sourceLinesCache:void 0,sourceLineStartOffsetsCache:void 0,rest_props:void 0,extends:void 0,customElementTag:void 0,componentComment:void 0,componentCommentSource:void 0,generics:null,scriptGenericsAttribute:void 0,diagnosticRecords:[],componentFilePath:"",props:new Map,moduleExports:new Map,propLocalToPublicName:new Map,reactive_vars:new Set,funcDecls:new Map,vars:new Set,runesPropsDeclarationMetadataByDeclaratorStart:new Map,typedRunesPropsDeclarations:[],explicitPropTypesByName:new Map,typeImportBindingsByLocalName:new Map,localTypeDeclarationsByName:new Map,wholePropsLocals:new Set,restPropLocals:new Set,componentScope:new Map,scopeDeclarations:new WeakMap,activeScopes:[],slots:new Map,snippetPropLocals:new Set,deferredSlotBlockGenerics:[],events:new Map,eventDescriptions:new Map,forwardedEvents:new Map,jsDocEventNames:new Set,jsDocEventSources:new Map,bindings:new Map,contexts:new Map,typedefs:new Map,variableInfoCache:new Map,variableInfoCacheBuilt:!1}}function l0(q,R,P,C,O){q.diagnosticRecords.push({component:q.componentFilePath,kind:R,name:P,message:C,...O?{source:O}:{}})}var hh=/[\r\n]+/g;function gh(q){if(q.sourceLineStartOffsetsCache)return q.sourceLineStartOffsetsCache;let R=[0];if(q.source){for(let P=0;P<q.source.length;P++)if(q.source[P]===`
92
- `)R.push(P+1)}return q.sourceLineStartOffsetsCache=R,R}function GB(q,R){if(!q.source||R<0||R>q.source.length)return;let P=gh(q),C=0,O=P.length-1;while(C<=O){let H=Math.floor((C+O)/2),M=P[H],F=P[H+1]??Number.POSITIVE_INFINITY;if(R<M)O=H-1;else if(R>=F)C=H+1;else return{line:H+1,column:R-M}}return}function X6(q,R,P){if(R===void 0||P===void 0||P<R)return;let C=GB(q,R),O=GB(q,P);if(!C||!O)return;return{start:C,end:O}}function E8(q,R){if(!R||typeof R!=="object")return;let P="start"in R&&typeof R.start==="number"?R.start:void 0,C="end"in R&&typeof R.end==="number"?R.end:void 0;return X6(q,P,C)}function x2(q,R,P,C){if(!P||P.length===0||C===void 0)return;let O=[...P];while(O.length>1){let U=O[O.length-1];if(U.tokens.tag||!U.source.trim().endsWith("*/"))break;O.pop()}let H=C;for(let U=0;U<O[0].number-1;U++)H+=R[U]?.source.length??0,H+=1;let M=O[0],F=M.source.indexOf(M.tokens.tag??""),Y=H+Math.max(F,0),K=C,J=O[O.length-1],$=J.number;for(let U=0;U<$-1;U++)K+=R[U]?.source.length??0,K+=1;return K+=J.source.length,X6(q,Y,K)}function D8(q,R,P){return q.source?.slice(R,P)}function zB(q,R){if(!R||typeof R!=="object")return;let P="start"in R&&typeof R.start==="number"?R.start:void 0,C="end"in R&&typeof R.end==="number"?R.end:void 0;if(P===void 0||C===void 0)return;return D8(q,P,C)?.replace(hh," ")}var lh=/[\r\n]+/g;function g9(q,R,P,C){if(_h(P)===void 0)return;if(q.trackPropLocalName(P),R.props.has(P)){let O=R.props.get(P);R.props.set(P,{...O,...C})}else R.props.set(P,C)}function _h(q){return q===void 0||q===""?void 0:q}function X1(q,R,P,C=0){let O,H,M=!1;if(!P||typeof P!=="object"||!("type"in P))return{value:O,type:H,isFunction:M};let F=dh(q,R,P);if(P.type==="ObjectExpression"||P.type==="BinaryExpression"||P.type==="ArrayExpression"||P.type==="ArrowFunctionExpression"||P.type==="FunctionExpression"){let Y=P;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")O=D8(R,Y.start,Y.end)?.replace(lh," ");if(H=O,M=P.type==="ArrowFunctionExpression"||P.type==="FunctionExpression",P.type==="BinaryExpression"){let K=P;if(K.left&&typeof K.left==="object"&&"type"in K.left&&K.left.type==="Literal"&&"value"in K.left&&typeof K.left.value==="string")H="string"}if(P.type==="ArrowFunctionExpression"||P.type==="FunctionExpression")H=UB(P),O=void 0}else if(P.type==="UnaryExpression"){let Y=P;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")O=D8(R,Y.start,Y.end);if(Y.argument){if(typeof Y.argument==="object"&&"type"in Y.argument&&Y.argument.type==="UnaryExpression")H=X1(q,R,Y.argument).type;else if(typeof Y.argument==="object"&&"value"in Y.argument)H=typeof Y.argument.value}}else if(P.type==="NewExpression"){let Y=P;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")O=D8(R,Y.start,Y.end);if(Y.callee&&typeof Y.callee==="object"&&"type"in Y.callee&&Y.callee.type==="Identifier"){let K=Y.callee.name;if(K==="Date")H="Date";else if(K==="Map")H="Map<any, any>";else if(K==="Set")H="Set<any>";else if(K==="WeakMap")H="WeakMap<object, any>";else if(K==="WeakSet")H="WeakSet<object>";else if(K==="Array")H="any[]";else if(K==="RegExp"||K==="Regexp")H="RegExp";else if(K==="Error")H="Error";else H=K}}else if(P.type==="CallExpression"){let Y=P;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")O=D8(R,Y.start,Y.end)}else if(P.type==="Identifier"){let Y=P;if(C<5){let K=mh(R,Y.name);if(K){let J=X1(q,R,K,C+1),$=q.resolveLocalVarJSDoc(Y.name);return{...J,resolvedType:$?.type??J.resolvedType,resolvedDescription:$?.description??J.resolvedDescription,resolvedParams:$?.params??J.resolvedParams,resolvedReturnType:$?.returnType??J.resolvedReturnType}}if(R.funcDecls.has(Y.name)){let J=q.resolveLocalVarJSDoc(Y.name),$=R.funcDecls.get(Y.name);return{value:void 0,type:void 0,isFunction:!0,resolvedType:J?.type??xh(J,$),resolvedDescription:J?.description,resolvedParams:J?.params,resolvedReturnType:J?.returnType}}}if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")O=D8(R,Y.start,Y.end)}else if(P.type==="MemberExpression"){let Y=P;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")O=D8(R,Y.start,Y.end);if(q.isNumericConstant(P))H="number"}else if(P.type==="TemplateLiteral"){let Y=P;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")O=D8(R,Y.start,Y.end);H="string"}else if("raw"in P&&typeof P.raw==="string"){if(O=P.raw,"value"in P)H=P.value==null?void 0:typeof P.value}return{value:O,type:H,isFunction:M,defaultValue:F}}function mh(q,R){for(let P of q.vars)for(let C of P.declarations)if(C.id&&typeof C.id==="object"&&"type"in C.id&&C.id.type==="Identifier"&&"name"in C.id&&C.id.name===R&&C.init)return C.init;return}function BB(q,R){for(let P of q.vars){if(P.kind!=="const")continue;for(let C of P.declarations)if(C.id&&typeof C.id==="object"&&"type"in C.id&&C.id.type==="Identifier"&&"name"in C.id&&C.id.name===R&&C.init)return C.init}return}function xh(q,R){let P=q?.returnType??"any",C=q?.params;if(C&&C.length>0)return`(${C.map((H)=>`${H.name}${H.optional?"?":""}: ${H.type}`).join(", ")}) => ${P}`;if(q?.returnType)return`() => ${P}`;if(R)return UB(R);return"(...args: any[]) => any"}function UB(q){return`(${ph(q)}) => ${ch(q)}`}function ph(q){let R=q.params;if(!Array.isArray(R)||R.length===0)return"...args: any[]";let P=[];for(let C of R)if(C&&typeof C==="object"&&"type"in C&&C.type==="Identifier"&&"name"in C&&typeof C.name==="string")P.push(`${C.name}: any`);else return"...args: any[]";return P.join(", ")}function ch(q){if(q.async||q.generator)return"any";let R=q.body,P;if(R&&typeof R==="object"&&"type"in R&&R.type==="BlockStatement"){if(P=ih(R),P.length===0)return"any"}else P=[R];let C=null;for(let O of P){let H=rh(O);if(!H)return"any";if(C===null)C=H;else if(C!==H)return"any"}return C??"any"}function ih(q){let R=[];return N0(q,{enter(P){if(P.type==="FunctionDeclaration"||P.type==="FunctionExpression"||P.type==="ArrowFunctionExpression"){this.skip();return}if(P.type==="ReturnStatement")R.push(P.argument??null)}}),R}function rh(q){if(!q||typeof q!=="object"||!("type"in q))return null;switch(q.type){case"Literal":{let R=q.value;if(typeof R==="string")return"string";if(typeof R==="number")return"number";if(typeof R==="boolean")return"boolean";return null}case"TemplateLiteral":return"string";case"CallExpression":{let R=q.callee;if(R&&typeof R==="object"&&"type"in R&&R.type==="Identifier"){let P=R.name;if(P==="String")return"string";if(P==="Number")return"number";if(P==="Boolean")return"boolean"}return null}default:return null}}function $B(q){if(v0(q,"$bindable"))return{init:q.arguments[0],bindable:!0};return{init:q,bindable:!1}}function dh(q,R,P){let C=zB(R,P);if(!C||!P||typeof P!=="object"||!("type"in P))return;let O="expression";if(P.type==="Literal"||P.type==="UnaryExpression")O="literal";else if(P.type==="TemplateLiteral")O=P.expressions.length===0?"literal":"expression";else if(P.type==="ArrayExpression")O="array";else if(P.type==="ObjectExpression")O="object";else if(P.type==="ArrowFunctionExpression"||P.type==="FunctionExpression")O="function";let H={raw:C,kind:O};if(O==="literal"||O==="array"||O==="object"){let M=p2(q,P);if(M.ok)H.value=M.value}return H}function p2(q,R){if(!R||typeof R!=="object"||!("type"in R))return{ok:!1};if(R.type==="Literal"){let P=R.value;return typeof P==="bigint"?{ok:!1}:{ok:!0,value:P}}if(R.type==="UnaryExpression"){let P=R,C=P.argument;if(!C||typeof C!=="object"||!("type"in C)||C.type!=="Literal")return{ok:!1};let O=C.value;if(typeof O==="number"){if(P.operator==="-")return{ok:!0,value:-O};if(P.operator==="+")return{ok:!0,value:O}}if(typeof O==="boolean"&&P.operator==="!")return{ok:!0,value:!O};return{ok:!1}}if(R.type==="TemplateLiteral"){let P=R;if(P.expressions.length>0||P.quasis.length!==1)return{ok:!1};return{ok:!0,value:P.quasis[0].value.cooked??P.quasis[0].value.raw}}if(R.type==="ArrayExpression"){let P=R,C=[];for(let O of P.elements){if(!O)return{ok:!1};let H=p2(q,O);if(!H.ok)return{ok:!1};C.push(H.value)}return{ok:!0,value:C}}if(R.type==="ObjectExpression"){let P=R,C={};for(let O of P.properties){if(O.type!=="Property"||O.computed)return{ok:!1};let H=q.getPropertyName(O.key);if(!H)return{ok:!1};let M=p2(q,O.value);if(!M.ok)return{ok:!1};C[H]=M.value}return{ok:!0,value:C}}return{ok:!1}}var ah=/[-_.:/\s]+/;function c2(q){return`${q.split(ah).map((C)=>C.charAt(0).toUpperCase()+C.slice(1)).join("")}Context`}function sh(q,R,P,C){if(!P||typeof P!=="object"||!("type"in P))return null;if(P.type==="ObjectExpression"){let O=[];if(!K6(P))return null;let H=P;for(let M of H.properties){if(M.type!=="Property")continue;let F=R.getPropertyName(M.key);if(!F)continue;let Y="any",K;if(S0(M.value)){let J=M.value.name,$=R.findVariableTypeAndDescription(J);if($)Y=$.type,K=$.description;else l0(q,"context-any-type",F,`Context "${C}" property "${F}" has no type annotation; defaulted to "any".`,E8(q,M))}else if(M.value&&typeof M.value==="object"&&"type"in M.value&&(M.value.type==="ArrowFunctionExpression"||M.value.type==="FunctionExpression"))Y=`(${M.value.params?.map((U)=>{if(S0(U))return`${U.name||"arg"}: any`;return"arg: any"}).join(", ")||""}) => any`;else if(W1(M.value))Y=M.value.value==null?"null":typeof M.value.value;O.push({name:F,type:Y,description:K,optional:!1})}return{key:C,typeName:c2(C),properties:O,description:void 0}}else if(S0(P)){let O=P.name,H=R.findVariableTypeAndDescription(O);if(H)return{key:C,typeName:c2(C),properties:[{name:O,type:H.type,description:H.description,optional:!1}]};return l0(q,"context-any-type",O,`Context "${C}" variable "${O}" has no type annotation; defaulted to "any".`,E8(q,P)),{key:C,typeName:c2(C),properties:[{name:O,type:"any",description:void 0,optional:!1}]}}return null}function AB(q){let R=q.callee;if(!R||typeof R!=="object"||!("type"in R))return null;let P=R.type==="Identifier"&&R.name==="Symbol",C=R.type==="MemberExpression"&&!R.computed&&R.object.type==="Identifier"&&R.object.name==="Symbol"&&R.property.type==="Identifier"&&R.property.name==="for";if(!P&&!C)return null;let O=q.arguments[0];if(!O||typeof O!=="object"||!("type"in O))return"";if(O.type==="Literal"&&typeof O.value==="string")return O.value;if(O.type==="TemplateLiteral"&&O.quasis?.length===1)return O.quasis[0].value.cooked??"";return""}function LB(q,R,P=0){if(!R||typeof R!=="object"||!("type"in R))return null;let C=R;if(C.type==="Literal")return typeof C.value==="string"?C.value:C.value==null?null:String(C.value);if(C.type==="TemplateLiteral"){if(C.quasis?.length===1){let O=C.quasis[0].value.cooked;return O==null?null:O}return null}if(C.type==="CallExpression"||C.type==="NewExpression")return AB(C);if(C.type==="Identifier"){if(P>=5)return null;let O=BB(q,C.name);if(O&&typeof O==="object"&&"type"in O){let H=O;if((H.type==="CallExpression"||H.type==="NewExpression")&&AB(H)==="")return C.name;return LB(q,H,P+1)}return null}return null}function jB(q,R,P,C){if(!P||typeof P!=="object"||!("type"in P)||P.type!=="CallExpression")return;let O=P,H=O.arguments[0];if(!H)return;let M=LB(q,H);if(!M){let K=q.componentFilePath?` in ${q.componentFilePath}`:"";console.warn(`Warning: Could not resolve setContext key${K}. Use a string literal, const-bound string, or Symbol(). Skipping context type generation.`);return}let F=O.arguments[1];if(!F)return;let Y=sh(q,R,F,M);if(Y&&!q.contexts.has(M))q.contexts.set(M,Y)}function oh(q){return q===void 0||q===""?void 0:q}function i2(q){return typeof q==="string"?JSON.stringify(q):String(q)}function l9(q,{name:R,detail:P,has_argument:C,description:O,deprecated:H,tags:M,source:F}){if(R===void 0)return;let Y=!C&&!P?"null":oh(P),K=O,J=q.events.get(R);if(J?.type==="forwarded")q.events.set(R,{type:"dispatched",name:R,detail:Y,description:K||J.description,deprecated:H??J.deprecated,tags:M??J.tags,source:F||J.source});else if(J){let $=J.tags??M;q.events.set(R,{...J,detail:J.detail===void 0?Y:J.detail,description:J.description||K,deprecated:J.deprecated??H,tags:$,source:F||J.source})}else q.events.set(R,{type:"dispatched",name:R,detail:Y,description:K,deprecated:H,tags:M,source:F})}function wB(q,R){let P=R.arguments[0],C=_2(P,"CustomEvent");if(!C&&!_2(P,"Event"))return;let O=P.arguments[0],H=W1(O)?O.value:void 0;if(H==null)return;let M=C?P.arguments[1]:void 0,F=!1,Y;if(K6(M)){let K=M.properties.find((J)=>J.type==="Property"&&S0(J.key)&&J.key.name==="detail");if(K?.type==="Property")F=!0,Y=W1(K.value)?K.value.value:void 0}return l9(q,{name:String(H),detail:Y==null?"":i2(Y),has_argument:F,source:E8(q,R)}),String(H)}function r2(q,R,P=!1){if(q.length===0)return"null";let C=q.map(({name:O,type:H,description:M,optional:F,default:Y})=>{let K=F?"?":"",J=M||"";if(Y&&J)J=`${J} @default ${Y}`;else if(Y)J=`@default ${Y}`;if(J){if(P)return`/** ${J} */
93
- ${O}${K}: ${H};`;return`/** ${J} */ ${O}${K}: ${H};`}return`${O}${K}: ${H};`}).join(P?`
94
- `:" ");return P?`{
95
- ${C}
96
- }`:`{ ${C} }`}var nh=/[A-Za-z_$][\w$]*/g;function th(q,R){if(!R)return!1;let P=new Set(R[0].split(",").map((C)=>C.trim()));for(let[C]of q.matchAll(nh))if(P.has(C))return!0;return!1}function d2(q,R){if(R===void 0)return;return q.runesPropsDeclarationMetadataByDeclaratorStart.get(R)}function IB(q,R,P){return d2(q,R)?.props.get(P)}function fB(q){if(!q||typeof q!=="object"||!("type"in q))return;if(q.type==="Identifier"&&"name"in q&&typeof q.name==="string")return q.name;if(q.type==="TSQualifiedName"&&"right"in q&&q.right&&typeof q.right==="object"&&"name"in q.right&&typeof q.right.name==="string")return q.right.name;return}function SB(q){if(!q||typeof q!=="object"||!("type"in q))return;if(q.type==="Identifier"&&"name"in q&&typeof q.name==="string")return q.name;if(q.type==="TSQualifiedName"&&"left"in q&&q.left&&typeof q.left==="object")return SB(q.left);return}function a2(q,R){let P=R?.start,C=R?.end;if(P===void 0||C===void 0)return;return D8(q,P+1,C)?.trim()}function vB(q,R){let P=R?.start,C=R?.end;if(P===void 0||C===void 0)return;return D8(q,P,C)?.trim()}function F0(q,R,P,C,O=new Set){if(!R?.type)return;switch(R.type){case"TSInterfaceDeclaration":F0(q,{type:"TSTypeLiteral",members:R.body?.body},P,C,O);return;case"TSTypeAliasDeclaration":case"TSParenthesizedType":case"TSTypeAnnotation":F0(q,R.typeAnnotation,P,C,O);return;case"TSIntersectionType":case"TSUnionType":for(let H of R.types??[])F0(q,H,P,C,O);return;case"TSTypeLiteral":for(let H of R.members??[]){if(H?.type!=="TSPropertySignature")continue;F0(q,H.typeAnnotation?.typeAnnotation,P,C,O)}return;case"TSTypeReference":{let H=SB(R.typeName);if(H){if(q.typeImportBindingsByLocalName.has(H))P.add(H);let M=q.localTypeDeclarationsByName.get(H);if(M&&!O.has(H))C.add(H),O.add(H),F0(q,M.node,P,C,O),O.delete(H)}if("typeParameters"in R&&R.typeParameters&&typeof R.typeParameters==="object"){let M=R.typeParameters;for(let F of M.params??[])F0(q,F,P,C,O)}return}case"TSArrayType":case"TSRestType":case"TSOptionalType":case"TSIndexedAccessType":case"TSTypeOperator":case"TSExpressionWithTypeArguments":case"TSTupleType":case"TSConditionalType":case"TSInferType":case"TSMappedType":case"TSFunctionType":case"TSConstructorType":case"TSTypeQuery":case"TSImportType":case"TSLiteralType":case"TSTypePredicate":case"TSNamedTupleMember":break;default:break}for(let H of Object.values(R)){if(!H||typeof H!=="object")continue;if(Array.isArray(H)){for(let M of H){if(!M||typeof M!=="object"||!("type"in M))continue;F0(q,M,P,C,O)}continue}if("type"in H)F0(q,H,P,C,O)}}function eh(q,R){let P=new Map;for(let C of Array.from(R).sort()){let O=q.typeImportBindingsByLocalName.get(C);if(!O)continue;let H=P.get(O.source)??{default:[],named:[],namespace:[]};if(O.specifierType==="default")H.default.push(O.localName);else if(O.specifierType==="namespace")H.namespace.push(O.localName);else H.named.push({imported:O.importedName,local:O.localName});P.set(O.source,H)}return Array.from(P.entries()).sort(([C],[O])=>C.localeCompare(O)).map(([C,O])=>{if(O.namespace.length>0)return O.namespace.map((Y)=>`import type * as ${Y} from "${C}";`).join(`
97
- `);let H=O.named.map(({imported:Y,local:K})=>{if(!Y||Y===K)return K;return`${Y} as ${K}`}),M=O.default[0],F=H.length>0?`{ ${H.join(", ")} }`:"";if(M&&F)return`import type ${M}, ${F} from "${C}";`;if(M)return`import type ${M} from "${C}";`;return`import type ${F} from "${C}";`})}function TB(q){if(q.typedRunesPropsDeclarations.length!==1)return;let[R]=q.typedRunesPropsDeclarations;if(!R.canonicalType)return;let P=Array.from(R.referencedLocalTypes).map((C)=>q.localTypeDeclarationsByName.get(C)).filter((C)=>C!==void 0).sort((C,O)=>C.start-O.start).map((C)=>C.code);return{canonicalPropsType:R.canonicalType,canonicalPropNames:Array.from(R.props.keys()).sort(),localTypeDeclarations:P,typeImportStatements:eh(q,R.referencedImportedTypes),referencesComponentGenerics:th(R.canonicalType,q.generics)}}var qg=/^[A-Za-z_$][\w$]*/,Rg=/[A-Za-z_$][\w$]*/g,NB=/^(?:const|in|out)\s+/;function G1(q){let R=[],P=0,C=0;for(let O=0;O<q.length;O++){let H=q[O];if(H==="<"||H==="("||H==="["||H==="{")P++;else if(H===">"||H===")"||H==="]"||H==="}")P=Math.max(P-1,0);else if(H===","&&P===0)R.push(q.slice(C,O)),C=O+1}return R.push(q.slice(C)),R}function DB(q){let R=G1(q).map((C)=>C.trim()).filter((C)=>C.length>0);if(R.length===0)return null;return[R.map((C)=>{let O=C;while(NB.test(O))O=O.replace(NB,"");return O.match(qg)?.[0]??C}).join(", "),R.join(", ")]}function uB(q,R,P){let C=q.scriptGenericsAttribute?.value;if(!C)return;for(let[O]of C.matchAll(Rg)){if(q.typeImportBindingsByLocalName.has(O))R.add(O);if(P.has(O))continue;let H=q.localTypeDeclarationsByName.get(O);if(!H)continue;P.add(O),F0(q,H.node,R,P)}}var Pg=null;function Cg(q,R,P){let C={value:void 0,replace:!1};if(!P||typeof P!=="object"||!("type"in P))return C;if(P.type==="Identifier")C.value=P.name,C.replace=!0;else if(P.type==="Literal")C.value=String(P.value);else if(P.type==="MemberExpression")C.value=W6(q,R,P);else if((P.type==="ObjectExpression"||P.type==="TemplateLiteral")&&"start"in P&&"end"in P&&typeof P.start==="number"&&typeof P.end==="number")C.value=D8(q,P.start,P.end);return C}function EB(q,R,P){let C={};for(let O of P.properties){if(O.type!=="Property"||O.computed)continue;let H=R.getPropertyName(O.key);if(!H)continue;C[H]=Cg(q,R,O.value)}return C}function Og(q,R){if(!R||typeof R!=="object"||!("type"in R))return null;if(R.type==="Identifier"){let H=R,M=q.propLocalToPublicName.get(H.name);if(!M)return null;return{publicName:M,trackingName:H.name}}if(R.type!=="MemberExpression")return null;let P=R,C=P.object&&typeof P.object==="object"&&"type"in P.object&&P.object.type==="Identifier"?P.object.name:void 0;if(!C||!q.wholePropsLocals.has(C))return null;let O;if(!P.computed&&P.property&&typeof P.property==="object"&&"type"in P.property){if(P.property.type==="Identifier")O=P.property.name;else if(P.property.type==="Literal"&&P.property.value!=null)O=String(P.property.value)}else if(P.computed&&P.property&&typeof P.property==="object"&&"type"in P.property&&P.property.type==="Literal"&&"value"in P.property&&P.property.value!=null)O=String(P.property.value);if(!O)return null;return{publicName:O,trackingName:O}}function kB(q,R){let P=R;if(P&&typeof P==="object"&&"type"in P&&P.type==="ChainExpression")P=P.expression;if(!P||typeof P!=="object"||!("type"in P)||P.type!=="CallExpression")return null;let C=P;if(!C.callee||typeof C.callee!=="object"||!("type"in C.callee))return null;let O=Og(q,C.callee);if(!O)return null;return{...O,arguments:C.arguments}}function Hg(q){return q===void 0||q===""?void 0:q}function Mg(q){return q===void 0||q===""?void 0:q}function _9(q,{slot_name:R,slot_props:P,slot_fallback:C,slot_description:O,slot_deprecated:H,slot_tags:M,source:F}){let Y=R===void 0||R==="",K=Y?Pg:R??"",J=Hg(C),$=Mg(P),U=O?.trim()||void 0;if(q.slots.has(K)){let B=q.slots.get(K);if(B)q.slots.set(K,{...B,default:B.default??Y,fallback:J,slot_props:B.slot_props===void 0?$:B.slot_props,description:B.description||U,deprecated:B.deprecated??H,tags:B.tags||M,source:F||B.source})}else q.slots.set(K,{name:K,default:Y,fallback:J,slot_props:P,description:U,deprecated:H,tags:M,source:F})}var Qg=/\s*=\s*/;function yB(q){let R=q.indexOf("<");if(R===-1||!q.endsWith(">"))return q;let P=q.slice(0,R),C=q.slice(R+1,-1),O=G1(C).map((H)=>H.trim().replace(Qg," = ")).join(", ");return`${P}<${O}>`}var Zg=/^\s*$/,Yg=/;$/,Fg=/^-\s*/;function z1(q){if(q===void 0)return;let R=q.replace(Fg,"").trim();return R===""?"":R}function m9(q){if(!q||q.length===0)return;return q[0].tokens.description}var bB=new Set(["since","example"]);function hB(q){if(!q||q.length===0)return"";let R=[];for(let P of q){let C=P.tokens;if((C.end??"").trim()==="*/")break;if(C.tag){let O=`${C.name??""}${C.postName??""}${C.description??""}`.trimEnd();if(O)R.push(O)}else R.push(`${C.postDelimiter??""}${C.description??""}`)}return R.join(`
98
- `)}function Vg(q){let R=q.trim();return R===""?!0:R}function gB(q,R){return Vg(`${q??""}${R?` ${R}`:""}`)}function Jg(q){let R=q.trim().replace(Yg,"").trimEnd();if(!R.startsWith("{")||!R.endsWith("}"))return!1;let P=0,C=null;for(let O=0;O<R.length;O++){let H=R[O];if(C!==null){if(H==="\\"){O++;continue}if(H===C)C=null;continue}if(H==='"'||H==="'"||H==="`"){C=H;continue}if(H==="{"||H==="["||H==="(")P++;else if(H==="}"||H==="]"||H===")"){if(P--,P===0&&O<R.length-1)return!1}}return P===0}function s2(q){return q===void 0||q===""?void 0:q}function Kg(q){let R=q;if(!R.startsWith("/*"))R=`/*${R}`;if(!R.endsWith("*/"))R+="*/";return R}function G6(q){let R=q[0]?.tags??[],P=new Set(["type","param","returns","return","extends","extendProps","restProps","slot","snippet","event","typedef","callback","bindable","deprecated"]),C,O=[],H,M,F,Y=[],K=[];for(let J of R)if(J.tag==="type")C=J;else if(J.tag==="param")O.push(J);else if(J.tag==="returns"||J.tag==="return")H=J;else if(J.tag==="deprecated")F??=gB(J.name,J.description);else if(bB.has(J.tag))K.push(J);else if(J.tag==="bindable"){if(J.type)continue;let $=`${J.name}${J.description?` ${J.description}`:""}`.trim();if($==="readonly"||$==="writable")M??=$}else if(!P.has(J.tag))Y.push(J);return{type:C,param:O,returns:H,binding:M,deprecated:F,additional:Y,passthrough:K,description:q[0]?.description}}function Wg(q){if(!q||q.length===0)return;let R=q[q.length-1];return R&&typeof R==="object"&&"value"in R?R:void 0}function Xg(q,R,P){if(!R||R.length===0||P===void 0||!q.source)return;for(let C=R.length-1;C>=0;C--){let O=R[C];if(!O||typeof O!=="object"||!("value"in O)||!("end"in O))continue;if(typeof O.end!=="number")continue;let H=q.source.slice(O.end,P);if(Zg.test(H))return O}return}function q1(q,R,P){if(!P?.leadingComments)return;let C=Xg(q,P.leadingComments,P.start);if(!C)return;return Gg(R,[C])}function lB(q,R,P){if(!P?.leadingComments)return;return q1(q,R,P)}function Gg(q,R){if(!R)return;let P=Wg(R);if(!P)return;let C=$1(Kg(P.value),{spacing:"preserve"}),{type:O,param:H,returns:M,binding:F,deprecated:Y,additional:K,passthrough:J,description:$}=G6(C),U,B,T,w;if(O)U=q.aliasType(O.type);if(H.length>0)B=H.filter((y)=>!y.name.includes(".")).map((y)=>({name:y.name,type:q.aliasType(y.type),description:z1(y.description),optional:y.optional||!1}));if(M)T=q.aliasType(M.type);let f=s2($?.trim());if(f||K.length>0){let y=[];if(f)y.push(f);for(let z of K){let S=`@${z.tag}${z.name?` ${z.name}`:""}${z.description?` ${z.description}`:""}`;y.push(S)}w=y.join(`
99
- `)}let D=J.length>0?J.map((y)=>({name:y.tag,body:hB(y.source)})):void 0;return{type:U,params:B,returnType:T,description:w,binding:F,deprecated:Y,tags:D}}function _B(q,R){if(!q.source)return;let P=0;for(let{tags:C,description:O,source:H}of $1(q.source,{spacing:"preserve"})){let M=H.map((l)=>l.source).join(`
100
- `),F=q.source.indexOf(M,P),Y=F===-1?void 0:F;if(F!==-1)P=F+M.length;let K,J,$,U,B,T,w=[],f=[],D,y,z,S=[],N,d,k=[],Q,Z=!1,V=!0,X=[],A,L=new Map,I=new Set,b=new Set;for(let l of C)if(l.source&&l.source.length>0)I.add(l.source[0].number);for(let l of H)if(!l.tokens.tag&&l.tokens.description&&l.tokens.description.trim()!=="}")L.set(l.number,l.tokens.description);let u=(l)=>{if(!l||l.length===0)return;let W8=l[0].number,s=[],Y8=[],J8=!1;for(let H8=W8-1;H8>=1;H8--){if(I.has(H8))break;let X8=L.get(H8);if(X8)s.unshift(X8),Y8.unshift(H8),J8=!0;else if(J8){let K8=H.find((v8)=>v8.number===H8);if(!(!K8||!K8.tokens.tag&&(!K8.tokens.description||K8.tokens.description.trim()==="")))break}}if(s.length===0)return;for(let H8 of Y8)b.add(H8);return s.join(`
101
- `).trim()},j=()=>{if(K!==void 0){let l=J&&J!=="object"&&J!=="Object"?J:void 0,W8;if(l)W8=l;else if(f.length>0)W8=r2(f,K,!0);else W8=J||"";if(T!==void 0){let s;for(let H8 of C){let X8=H8.source?.[0]?.number;if(typeof X8!=="number")continue;if(X8<=T)continue;if(H8.tag==="property"||H8.tag==="type")continue;s=X8;break}let Y8=[],J8=Array.from(L.keys()).sort((H8,X8)=>H8-X8);for(let H8 of J8){if(H8<=T)continue;if(s!==void 0&&H8>=s)continue;if(b.has(H8))continue;let K8=L.get(H8)?.trim();if(K8)Y8.push(K8),b.add(H8)}if(Y8.length>0){let H8=Y8.join(`
102
- `);$=$?`${$}
103
- ${H8}`:H8}}l9(q,{name:K,detail:W8,has_argument:!1,description:$,deprecated:U,tags:w.length>0?w:void 0,source:B}),q.eventDescriptions.set(K,$),q.jsDocEventNames.add(K),q.jsDocEventSources.set(K,B),f.length=0,K=void 0,J=void 0,$=void 0,U=void 0,B=void 0,T=void 0,w=[]}},a=()=>{if(D!==void 0){let l,W8;if(S.length>0)l=r2(S,void 0,!0),W8=`type ${D} = ${l};`;else if(y)l=y,W8=Jg(l)?`interface ${D} ${l}`:`type ${D} = ${l};`;else l="{}",W8=`type ${D} = ${l};`;q.typedefs.set(D,{type:l,name:D,description:s2(z),ts:W8}),S.length=0,D=void 0,y=void 0,z=void 0}},P8=()=>{if(N!==void 0){let s=`(${k.map(({name:J8,type:H8,optional:X8})=>{return`${J8}${X8?"?":""}: ${H8}`}).join(", ")}) => ${Q||"void"}`,Y8=`type ${N} = ${s};`;q.typedefs.set(N,{type:s,name:N,description:s2(d),ts:Y8}),k.length=0,Q=void 0,N=void 0,d=void 0}},q8=C.some((l)=>l.tag==="slot"||l.tag==="snippet"),Z8=C.some((l)=>l.tag==="extends"||l.tag==="extendProps");for(let{tag:l,type:W8,name:s,description:Y8,optional:J8,default:H8,source:X8}of C){let K8=R.aliasType(W8),B1=u(X8);switch(l){case"extends":case"extendProps":if(q.extends={interface:s,import:K8},V)V=!1;break;case"restProps":{let v8=s?Y8?`${s} ${Y8}`:s:Y8,T6=z1(v8)||B1;if(!T6&&V&&!Z&&O)T6=O,Z=!0;if(q.rest_props={type:"Element",name:K8,description:T6||void 0},V)V=!1;break}case"slot":case"snippet":{let U1=z1(m9(X8));if(!U1&&V&&!Z&&O)U1=O,Z=!0;if(!U1&&X.length===0)U1=B1;if(V)V=!1;_9(q,{slot_name:s,slot_props:K8,slot_description:U1||void 0,slot_deprecated:A,slot_tags:X.length>0?[...X]:void 0,source:x2(q,H,X8,Y)}),X.length=0,A=void 0;break}case"event":{if(j(),K=s,J=K8,T=X8&&X8.length>0?X8[0].number:void 0,$=z1(m9(X8))||B1,!$&&V&&!Z&&O)$=O,Z=!0;if(B=x2(q,H,X8,Y),V)V=!1;break}case"type":if(K!==void 0)J=K8;break;case"param":if(N!==void 0)k.push({name:s,type:K8,optional:J8||!1});break;case"returns":case"return":if(N!==void 0)Q=K8;break;case"property":{let v8={name:s,type:K8,description:z1(m9(X8)),optional:J8||!1,default:H8};if(K!==void 0)f.push(v8);else if(D!==void 0)S.push(v8);break}case"typedef":{if(a(),D=yB(s),y=K8,z=z1(m9(X8))||B1,!z&&V&&!Z&&O)z=O,Z=!0;if(V)V=!1;break}case"callback":{if(P8(),N=yB(s),d=z1(m9(X8))||B1,!d&&V&&!Z&&O)d=O,Z=!0;if(V)V=!1;break}case"generics":if(q.generics=[s,K8],V)V=!1;break;case"template":{let v8=s;if(K8)v8=`${s} extends ${K8}`;if(H8)v8+=` = ${H8}`;if(q8&&!Z8){q.deferredSlotBlockGenerics.push({name:s,constraint:v8});break}if(R.accumulateGeneric(s,v8),V)V=!1;break}case"deprecated":{let v8=gB(s,Y8);if(K===void 0)A??=v8;else U??=v8;break}case"enum":case"class":case"implements":case"this":case"namespace":case"memberof":case"module":case"file":case"overview":break;default:{let v8={name:l,body:hB(X8)};if(K!==void 0&&bB.has(l))w.push(v8);else X.push(v8)}break}}j(),a(),P8()}}function zg(q){if(!q||typeof q!=="object"||!("type"in q))return;let R=String(q.type);if(R!=="InlineComponent"&&R!=="Element")return;let P="name"in q&&typeof q.name==="string"?q.name:void 0;if(!P)return;let C=R==="InlineComponent"?{type:"InlineComponent",name:P}:{type:"Element",name:P};if(R==="Element"&&P==="svelte:element"&&"tag"in q&&typeof q.tag==="string")C.thisValue=q.tag;return C}function mB(q,R){if(q.rest_props!==void 0)return;let P=zg(R);if(P)q.rest_props=P}function m8(q,R,P){if(!R||q.has(R))return;q.set(R,P)}function z6(q,R){for(let P=q.activeScopes.length-1;P>=0;P-=1){let C=q.activeScopes[P]?.get(R);if(!C)continue;return C.kind==="prop"?C.publicPropName:void 0}return}function k8(q,R=new Set){if(!q||typeof q!=="object"||!("type"in q))return R;switch(q.type){case"Identifier":R.add(q.name);break;case"AssignmentPattern":k8(q.left,R);break;case"ArrayPattern":for(let P of q.elements)k8(P??void 0,R);break;case"ObjectPattern":for(let P of q.properties)if(P.type==="Property")k8(P.value,R);else if(P.type==="RestElement")k8(P.argument,R);break;case"RestElement":k8(q.argument,R);break}return R}function n2(q,R){let P=k8(R);if(!P)return;for(let C of P){let O=z6(q,C);if(O)q.reactive_vars.add(O)}}function B6(q){if(!q||typeof q!=="object"||!("type"in q))return!1;switch(String(q.type)){case"BlockStatement":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"CatchClause":case"EachBlock":case"ThenBlock":case"CatchBlock":return!0;default:return!1}}function xB(q){if(!q||typeof q!=="object"||!("type"in q))return!1;let R=String(q.type);return R==="FunctionDeclaration"||R==="FunctionExpression"||R==="ArrowFunctionExpression"}function Bg(q,R){let P=q.scopeDeclarations.get(R);if(!P)P=new Map,q.scopeDeclarations.set(R,P);return P}function Ug(q,R,P){let C=[];if(P.id.type==="Identifier")return C.push({kind:"local",name:P.id.name}),C;if(P.id.type!=="ObjectPattern")return C;for(let O of P.id.properties){if(O.type==="RestElement"){if(O.argument.type==="Identifier")C.push({kind:"local",name:O.argument.name});continue}if(O.computed)continue;let H=q.getPropertyName(O.key);if(!H)continue;let M;if(O.value.type==="Identifier")M=O.value.name;else if(O.value.type==="AssignmentPattern"&&O.value.left.type==="Identifier")M=O.value.left.name;if(!M)continue;C.push({kind:"prop",name:M,publicPropName:H})}return C}function o2(q,R,P,C,O){if(!VB(R))return;let H=O?.allowRunesProps??!1,M=O?.forceProp??!1,F=R;for(let Y of F.declarations){if(H&&v0(e0(Y.init),"$props")){for(let $ of Ug(q,F,Y))m8($.kind==="prop"?P:C,$.name,$.kind==="prop"?{kind:"prop",publicPropName:$.publicPropName}:{kind:"local"});continue}let K=F.kind==="var"?C:P,J=M?"prop":"local";for(let $ of k8(Y.id))m8(K,$,J==="prop"?{kind:"prop",publicPropName:$}:{kind:"local"})}}function $g(q,R){if("id"in q&&q.id&&typeof q.id==="object"&&"name"in q.id&&typeof q.id.name==="string")m8(R,q.id.name,{kind:"local"});for(let P of q.params)for(let C of k8(P))m8(R,C,{kind:"local"})}function Ag(q,R,P,C){if(!Array.isArray(R))return;for(let O of R){if(!O||typeof O!=="object"||!("type"in O))continue;switch(O.type){case"VariableDeclaration":o2(q,O,P,C);break;case"FunctionDeclaration":if(O.id?.name)m8(P,O.id.name,{kind:"local"});break;case"ClassDeclaration":if(O.id?.name)m8(P,O.id.name,{kind:"local"});break}}}function Lg(q,R,P){if(!P||typeof P!=="object")return;let C="content"in P&&P.content&&typeof P.content==="object"&&"body"in P.content&&Array.isArray(P.content.body)?P.content:("body"in P)&&Array.isArray(P.body)?P:void 0;if(!C||!("body"in C)||!Array.isArray(C.body))return;for(let O of C.body){if(!O||typeof O!=="object"||!("type"in O))continue;switch(O.type){case"ImportDeclaration":for(let H of O.specifiers??[])if(H.local?.name)m8(R.componentScope,H.local.name,{kind:"local"});break;case"VariableDeclaration":o2(q,O,R.componentScope,R.componentScope,{allowRunesProps:!0});break;case"FunctionDeclaration":if(O.id?.name)m8(R.componentScope,O.id.name,{kind:"local"});break;case"ClassDeclaration":if(O.id?.name)m8(R.componentScope,O.id.name,{kind:"local"});break;case"ExportNamedDeclaration":if(!O.declaration||typeof O.declaration!=="object"||!("type"in O.declaration))break;if(O.declaration.type==="VariableDeclaration")o2(q,O.declaration,R.componentScope,R.componentScope,{forceProp:!0});else if(O.declaration.type==="FunctionDeclaration"&&O.declaration.id?.name)m8(R.componentScope,O.declaration.id.name,{kind:"prop",publicPropName:O.declaration.id.name});break}}}function pB(q,R){R.componentScope.clear(),R.scopeDeclarations=new WeakMap,R.activeScopes.length=0,Lg(q,R,R.parsed?.instance)}function cB(q){return{varScopeStack:[q.componentScope]}}function iB(q,R,P,C){if(!B6(C))return;let O=Bg(R,C),H=P.varScopeStack[P.varScopeStack.length-1]??R.componentScope;switch(String(C.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":$g(C,O);break;case"BlockStatement":Ag(q,C.body,O,H);break;case"CatchClause":if("param"in C)for(let F of k8(C.param))m8(O,F,{kind:"local"});break;case"EachBlock":{let F=C;for(let Y of k8(F.context))m8(O,Y,{kind:"local"});if(typeof F.index==="string")m8(O,F.index,{kind:"local"});else if(F.index&&"name"in F.index)m8(O,F.index.name,{kind:"local"});break}case"ThenBlock":if("value"in C)for(let F of k8(C.value))m8(O,F,{kind:"local"});break;case"CatchBlock":if("error"in C)for(let F of k8(C.error))m8(O,F,{kind:"local"});break}if(xB(C))P.varScopeStack.push(O)}function rB(q,R){if(xB(R))q.varScopeStack.pop()}var jg=new Set(["$state","$derived","$effect","$props","$bindable","$inspect","$host"]);function wg(q,R){switch(R?.type){case"MemberExpression":return R.computed||q===R.object;case"MethodDefinition":return!!R.computed;case"MetaProperty":return q===R.meta;case"PropertyDefinition":return R.computed||q===R.value;case"Property":return R.computed||q===R.value;case"ExportSpecifier":case"ImportSpecifier":return q===R.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}function Ig(q,R){for(let P=R.length-1;P>=0;P-=1)if(R[P]?.has(q))return!0;return!1}function fg(q){let R=new Set;if(!q||typeof q!=="object"||!("type"in q))return R;switch(String(q.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":{let P=q;if(P.id?.name)R.add(P.id.name);for(let C of P.params??[])k8(C,R);break}case"BlockStatement":U6(q.body,R);break;case"CatchClause":k8(q.param,R);break;case"EachBlock":{let P=q;if(k8(P.context,R),typeof P.index==="string")R.add(P.index);else if(P.index?.name)R.add(P.index.name);break}case"ThenBlock":k8(q.value,R);break;case"CatchBlock":k8(q.error,R);break}return R}function U6(q,R){if(!Array.isArray(q))return;for(let P of q){if(!P||typeof P!=="object"||!("type"in P))continue;switch(String(P.type)){case"ImportDeclaration":for(let C of P.specifiers??[])if(C.local?.name)R.add(C.local.name);break;case"VariableDeclaration":for(let C of P.declarations??[])k8(C.id,R);break;case"FunctionDeclaration":case"ClassDeclaration":{let C=P.id?.name;if(C)R.add(C);break}case"ExportNamedDeclaration":{let C=P.declaration;if(C&&typeof C==="object"&&"type"in C)U6([C],R);break}}}}function t2(q,R){if(!q||typeof q!=="object")return!1;let P=[...R],C=!1;return N0(q,{enter(O,H){if(C){this.skip();return}if(B6(O))P.push(fg(O));if(H&&O.type==="Identifier"&&jg.has(O.name)&&!H.type.startsWith("TS")&&wg(O,H)&&!Ig(O.name,P))C=!0,this.skip()},leave(O){if(B6(O))P.pop()}}),C}function dB(q){if(!q||typeof q!=="object")return;if("content"in q){let R=q.content,P=R&&typeof R==="object"&&"body"in R?R.body:void 0;if(Array.isArray(P))return P}if("body"in q&&Array.isArray(q.body))return q.body;return}function aB(q){if(q.runesOptionOverride!==void 0)return q.runesOptionOverride?"runes":"legacy";let R=q.parsed;if(!R)return"legacy";let P=new Set;U6(dB(R.module),P);let C=new Set;return U6(dB(R.instance),C),t2(R.module,[P])||t2(R.instance,[P,C])||t2(R.html,[P,C])?"runes":"legacy"}var Sg=/[A-Za-z_$][\w$]*/g;function vg(q,R,P){let C=new Map,O=R.typeParameters?.params,H=P.typeArguments?.params;if(!O?.length||!H?.length)return C;for(let M=0;M<O.length;M++){let F=O[M]?.name,Y=H[M];if(!F||Y?.start===void 0||Y?.end===void 0)continue;let K=D8(q,Y.start,Y.end)?.trim();if(K)C.set(F,K)}return C}function Tg(q,R){if(R.size===0)return q;return q.replace(Sg,(P)=>R.get(P)??P)}function x9(q,R,P,C,O=new Set){let H=new Map;if(!P?.type)return H;let M=(F)=>{for(let Y of F){if(Y?.type!=="TSPropertySignature"||Y.computed)continue;if(!Y.key)continue;let K=q.getPropertyName(Y.key);if(!K)continue;let J=Y.typeAnnotation?.start,$=Y.typeAnnotation?.end;if(J===void 0||$===void 0)continue;let U=D8(R,J+1,$)?.trim();if(!U)continue;H.set(K,{type:U,optional:Y.optional===!0,source:E8(R,Y)})}};switch(P.type){case"TSTypeLiteral":M(P.members??[]);break;case"TSInterfaceDeclaration":M(P.body?.body??[]);break;case"TSTypeAliasDeclaration":{let F=x9(q,R,P.typeAnnotation,C,O);for(let[Y,K]of F)H.set(Y,K);break}case"TSTypeReference":{let F=fB(P.typeName);if(!F||O.has(F))break;let Y=C.get(F);if(!Y)break;O.add(F);let K=x9(q,R,Y,C,O);O.delete(F);let J=vg(R,Y,P);for(let[$,U]of K)H.set($,J.size===0?U:{...U,type:Tg(U.type,J)});break}case"TSIntersectionType":for(let F of P.types??[]){let Y=x9(q,R,F,C,O);for(let[K,J]of Y)H.set(K,J)}break;case"TSParenthesizedType":{let F=x9(q,R,P.typeAnnotation,C,O);for(let[Y,K]of F)H.set(Y,K);break}}return H}function sB(q,R){if(R.runesPropsDeclarationMetadataByDeclaratorStart.clear(),R.explicitPropTypesByName.clear(),R.typeImportBindingsByLocalName.clear(),R.localTypeDeclarationsByName.clear(),R.typedRunesPropsDeclarations.length=0,!R.source)return;let P=J6(R.source,{modern:!0});R.scriptLanguage=q.resolveScriptLanguage(P),R.customElementTag=P.options?.customElement?.tag,R.runesOptionOverride=P.options?.runes,R.scriptGenericsAttribute=q.resolveScriptGenericsAttribute(P);let C=P.instance?.content?.body??[];for(let O of C){if(!O?.type)continue;if(O.type==="ImportDeclaration"&&O.source?.value)for(let H of O.specifiers??[]){let M=H.local?.name;if(!M)continue;if(!(O.importKind==="type"||H.importKind==="type"))continue;let Y,K;if(H.type==="ImportSpecifier")Y="named",K=H.imported?.type==="Identifier"?H.imported.name:typeof H.imported?.value==="string"?H.imported.value:void 0;else if(H.type==="ImportDefaultSpecifier")Y="default";else if(H.type==="ImportNamespaceSpecifier")Y="namespace";if(!Y)continue;R.typeImportBindingsByLocalName.set(M,{importedName:K,localName:M,source:String(O.source.value),specifierType:Y})}if((O.type==="TSInterfaceDeclaration"||O.type==="TSTypeAliasDeclaration")&&O.id?.name&&O.start!==void 0&&O.end!==void 0)R.localTypeDeclarationsByName.set(O.id.name,{code:D8(R,O.start,O.end)?.trim()??"",node:O,start:O.start});if(O.type==="ExportNamedDeclaration"&&O.declaration?.type==="VariableDeclaration")for(let H of O.declaration.declarations??[]){if(H.id?.type!=="Identifier"||!H.id.name)continue;let M=a2(R,H.id.typeAnnotation);if(M)R.explicitPropTypesByName.set(H.id.name,M)}}for(let O of C){if(!O||typeof O!=="object"||!("declarations"in O))continue;for(let H of O.declarations??[]){if(!v0(e0(H.init),"$props"))continue;let M=H.id?.typeAnnotation?void 0:KB(H.init),F=H.id?.typeAnnotation?.typeAnnotation??M,Y=H.id?.typeAnnotation?a2(R,H.id.typeAnnotation):vB(R,M),K=x9(q,R,F,new Map(Array.from(R.localTypeDeclarationsByName.entries(),([U,B])=>[U,B.node]))),J=new Set,$=new Set;if(F0(R,F,J,$),uB(R,J,$),H.start!==void 0){let U={canonicalType:Y,props:K,referencedImportedTypes:J,referencedLocalTypes:$};if(R.runesPropsDeclarationMetadataByDeclaratorStart.set(H.start,U),Y)R.typedRunesPropsDeclarations.push(U)}}}}function oB(q,R,P){for(let C of P.declarations){if(!v0(e0(C.init),"$props"))continue;if(C.id.type==="Identifier"){R.wholePropsLocals.add(C.id.name),R.restPropLocals.add(C.id.name);let M=d2(R,C.start);if(M)for(let[F,Y]of M.props)g9(q,R,F,{name:F,kind:"let",type:Y.type,typeSource:"typescript",isFunction:!1,isFunctionDeclaration:!1,isRequired:!Y.optional,constant:!1,reactive:!1,source:Y.source});continue}if(C.id.type!=="ObjectPattern")continue;let O=q1(R,q,P),H=C.id.properties.filter((M)=>{if(M.type!=="Property"||M.computed)return!1;if(!q.getPropertyName(M.key))return!1;if(M.value.type==="Identifier")return!0;return M.value.type==="AssignmentPattern"&&M.value.left.type==="Identifier"}).length;for(let M of C.id.properties){if(M.type==="RestElement"){if(M.argument.type==="Identifier")R.restPropLocals.add(M.argument.name);continue}let F=q.getPropertyName(M.key);if(!F)continue;let Y,K;if(M.value.type==="Identifier")Y=M.value.name;else{let k=M.value;Y=k.left.name,K=k.right}if(!Y)continue;if(q.trackPropLocalName(F,Y),F==="children")R.snippetPropLocals.add(Y);let J=lB(R,q,M)??(H===1?O:void 0),$=IB(R,C.start,F),{init:U,bindable:B}=$B(K),T=U==null?{isFunction:!1}:X1(q,R,U),{value:w,type:f,isFunction:D,defaultValue:y}=T,z=$?.type===void 0&&J?.type===void 0?T.resolvedType:void 0,S=!!J?.params?.length||J?.returnType!==void 0||J?.type?.includes("=>")||!!z?.includes("=>")||!!$?.type?.includes("=>"),N=$?.type??J?.type??z??f,d=q.resolveTypeSource({hasTypeScriptType:$?.type!==void 0,hasJSDocType:J?.type!==void 0||J?.params!==void 0||J?.returnType!==void 0||z!==void 0,inferredType:f,finalType:N});if(B)R.reactive_vars.add(F);g9(q,R,F,{name:F,...Y===F?{}:{localName:Y},kind:"let",description:J?.description??T.resolvedDescription,binding:J?.binding,deprecated:J?.deprecated,tags:J?.tags,...B?{bindable:!0}:{},type:N,typeSource:d,value:w,defaultValue:y,params:J?.params??T.resolvedParams,returnType:J?.returnType??T.resolvedReturnType,isFunction:Boolean(D||S),isFunctionDeclaration:!1,isRequired:U==null&&$?.optional!==!0,constant:!1,reactive:B,source:E8(R,M)})}}}function nB(q,R){if(q.syntaxMode!=="runes")return;for(let[P,C]of Array.from(q.events.entries())){if(C.type!=="dispatched")continue;if(R.has(P)||q.forwardedEvents.has(P))continue;let O=`on${P}`,H=q.props.get(O);if(!H)continue;let M=H.type!==void 0||H.params!==void 0||H.returnType!==void 0,F=C.detail===void 0||C.detail==="undefined"||C.detail==="null"?"() => void":`(detail: ${C.detail}) => void`;q.props.set(O,{...H,description:H.description??C.description,type:M?H.type:F,typeSource:M?H.typeSource:"inferred",isFunction:!0}),q.events.delete(P)}}var tB=new Set(["TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion","TSInstantiationExpression"]);function $6(q){if(!q||typeof q!=="object")return;N0(q,{enter(R){if(!tB.has(R.type))return;let P=R.expression;while(P&&tB.has(P.type))P=P.expression;if(P)this.replace(P)}})}var Ng=/(?:const|let|function)\s+(\w+)\s*[=(]/;function Dg(q){return q===void 0||q===""?void 0:q}function eB(q){if(q==="var")return"let";if(q==="using"||q==="await using")return"const";return q}var RU=Symbol("sveld.parsedComponentTypeScriptMetadata");function PU(q){return q[RU]}var ug=null,qU=/^@component/,Eg=/\r/g,kg=/^\{\s*\}$/;class u8{ctx=m2();static mapToArray(q){return Array.from(q,([R,P])=>P)}static getStaticAttributeValue(q){if(!Array.isArray(q.value))return;return q.value.map((R)=>R.data??R.raw??"").join("").trim()}resolveScriptLanguage(q){let R=[q.instance,q.module].filter((C)=>C!==void 0),P=!1;for(let C of R){let O=C.attributes?.find((M)=>M.name==="lang");if(!O){P=!0;continue}if(u8.getStaticAttributeValue(O)?.toLowerCase()==="ts")return"ts"}return P?"js":void 0}resolveScriptGenericsAttribute(q){let R=q.instance?.attributes?.find((M)=>M.name==="generics");if(!R)return;let P=E8(this.ctx,R),C=q.instance?.attributes?.find((M)=>M.name==="lang");if((C?u8.getStaticAttributeValue(C)?.toLowerCase():void 0)!=="ts"){l0(this.ctx,"syntax-skipped","generics",'<script generics="..."> requires lang="ts"; the generics attribute was ignored because the script is not TypeScript.',P);return}let H=u8.getStaticAttributeValue(R);if(!H)return;return{value:H,source:P}}static assignValue(q){return Dg(q)}resolvePublicPropName(q){return this.ctx.propLocalToPublicName.get(q)??q}trackPropLocalName(q,R=q){this.ctx.propLocalToPublicName.set(R,q)}getPropByLocalOrPublic(q){return this.ctx.props.get(this.resolvePublicPropName(q))}getPropTypeByLocalOrPublic(q){return this.getPropByLocalOrPublic(q)?.type}getExplicitPropType(q){return this.ctx.explicitPropTypesByName.get(q)}getPropertyName(q){if(!q||typeof q!=="object"||!("type"in q))return;if(S0(q))return q.name;if(W1(q))return q.value==null?void 0:String(q.value);return}isNumericConstant(q){if(!q||typeof q!=="object"||!("type"in q))return!1;if(q.type!=="MemberExpression")return!1;let R=q,P=R.object&&"name"in R.object?R.object.name:void 0,C=R.property&&"name"in R.property?R.property.name:void 0;if(!P||!C)return!1;if(P==="Number")return["POSITIVE_INFINITY","NEGATIVE_INFINITY","MAX_VALUE","MIN_VALUE","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","EPSILON","NaN"].includes(C);if(P==="Math")return["PI","E","LN2","LN10","LOG2E","LOG10E","SQRT2","SQRT1_2"].includes(C);return!1}resolveTypeSource({hasTypeScriptType:q,hasJSDocType:R,inferredType:P,finalType:C}){if(q)return"typescript";if(R)return"jsdoc";if(P!==void 0)return"default";if(C!==void 0)return"inferred";return"unknown"}resolveLocalVarJSDoc(q){for(let P of this.ctx.vars)if(P.declarations.some((O)=>O.id&&typeof O.id==="object"&&("type"in O.id)&&O.id.type==="Identifier"&&("name"in O.id)&&O.id.name===q))return q1(this.ctx,this,P);let R=this.ctx.funcDecls.get(q);if(R)return q1(this.ctx,this,R);return}addModuleExport(q,R){if(u8.assignValue(q)===void 0)return;if(this.ctx.moduleExports.has(q)){let P=this.ctx.moduleExports.get(q);this.ctx.moduleExports.set(q,{...P,...R})}else this.ctx.moduleExports.set(q,R)}aliasType(q){if(q==="*")return"any";return q.trim()}buildVariableInfoCache(){if(!this.ctx.source)return;if(!this.ctx.sourceLinesCache)this.ctx.sourceLinesCache=this.ctx.source.split(`
104
- `);let q=this.ctx.sourceLinesCache;for(let R=0;R<q.length;R++){let C=q[R].trim().match(Ng);if(C){let O=C[1];for(let H=R-1;H>=0;H--){let M=q[H].trim();if(M&&!M.startsWith("*")&&!M.startsWith("/*")&&!M.startsWith("//"))break;if(M.startsWith("/**")){let F=[];for(let U=H;U<R;U++)F.push(q[U]);let Y=F.join(`
105
- `),K=$1(Y,{spacing:"preserve"}),{type:J,description:$}=G6(K);if(J)this.ctx.variableInfoCache.set(O,{type:this.aliasType(J.type),description:$||J.description});break}}}}}static VAR_NAME_REGEX_CACHE=new Map;static getVarNameRegexes(q){let R=u8.VAR_NAME_REGEX_CACHE.get(q);if(!R){let P=q.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");R=[new RegExp(`const\\s+${P}\\s*=`),new RegExp(`let\\s+${P}\\s*=`),new RegExp(`function\\s+${P}\\s*\\(`)],u8.VAR_NAME_REGEX_CACHE.set(q,R)}return R}findVariableTypeAndDescription(q){let R=this.getPropByLocalOrPublic(q);if(R?.type)return{type:R.type,description:R.description};if(!this.ctx.variableInfoCacheBuilt)this.buildVariableInfoCache(),this.ctx.variableInfoCacheBuilt=!0;let P=this.ctx.variableInfoCache.get(q);if(P)return P;if(!this.ctx.source)return null;if(!this.ctx.sourceLinesCache)this.ctx.sourceLinesCache=this.ctx.source.split(`
106
- `);let C=this.ctx.sourceLinesCache,[O,H,M]=u8.getVarNameRegexes(q);for(let F=0;F<C.length;F++){let Y=C[F].trim(),K=Y.match(O),J=Y.match(H),$=Y.match(M);if(K||J||$)for(let U=F-1;U>=0;U--){let B=C[U].trim();if(B&&!B.startsWith("*")&&!B.startsWith("/*")&&!B.startsWith("//"))break;if(B.startsWith("/**")){let T=[];for(let z=U;z<F;z++)T.push(C[z]);let w=T.join(`
107
- `),f=$1(w,{spacing:"preserve"}),{type:D,description:y}=G6(f);if(D)return{type:this.aliasType(D.type),description:y||D.description};break}}}return null}accumulateGeneric(q,R){if(this.ctx.generics)this.ctx.generics=[`${this.ctx.generics[0]}, ${q}`,`${this.ctx.generics[1]}, ${R}`];else this.ctx.generics=[q,R]}cleanup(){this.ctx=m2()}static SCRIPT_BLOCK_REGEX=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi;static TS_DIRECTIVE_REGEX=/\/\/\s*@ts-[^\n\r]*/g;static stripTypeScriptDirectivesFromScripts(q){return u8.SCRIPT_BLOCK_REGEX.lastIndex=0,q.replace(u8.SCRIPT_BLOCK_REGEX,(R,P,C,O)=>{u8.TS_DIRECTIVE_REGEX.lastIndex=0;let H=C.replace(u8.TS_DIRECTIVE_REGEX,"");return P+H+O})}parseSvelteComponent(q,R){this.cleanup(),this.ctx.componentFilePath=R.filePath;let P=u8.stripTypeScriptDirectivesFromScripts(q);if(this.ctx.source=P,sB(this,this.ctx),this.ctx.parsed=J6(P,{modern:!1}),this.ctx.scriptLanguage==="ts")$6(this.ctx.parsed.module),$6(this.ctx.parsed.instance),$6(this.ctx.parsed.html);if(this.ctx.syntaxMode=aB(this.ctx),_B(this.ctx,this),this.ctx.parsed?.module)N0(this.ctx.parsed?.module,{enter:(z)=>{if(z.type==="ExportNamedDeclaration"){if(z.declaration==null)return;if(!z.declaration||typeof z.declaration!=="object"||!("type"in z.declaration))return;let S,N,d,k=!1,Q,Z,V,X=!1,A,L,I,b,u;if(z.declaration.type==="FunctionDeclaration"){let P8=z.declaration;if(!P8.id?.name)return;S=P8.id.name,N="function",Q=void 0,Z="() => any",X=!0,k=!0}else if(z.declaration.type==="VariableDeclaration"){let P8=z.declaration,q8=P8.declarations[0];if(!q8||typeof q8!=="object"||!("id"in q8))return;let{id:Z8,init:l}=q8;if(!Z8||typeof Z8!=="object"||!("name"in Z8))return;let W8=Z8.name;S=W8,N=eB(P8.kind);let s=l==null?{isFunction:!1}:X1(this,this.ctx,l);({value:Q,type:b,isFunction:X,defaultValue:I}=s),u=s,V=this.getExplicitPropType(W8),Z=V??b}else return;let j=q1(this.ctx,this,z);if(j){if(j.type&&V===void 0)Z=j.type;if(A=j.params,L=j.returnType,j.description)d=j.description}if(V===void 0&&j?.type===void 0&&u?.resolvedType)Z=u.resolvedType;if(d===void 0&&u?.resolvedDescription)d=u.resolvedDescription;if(A===void 0&&u?.resolvedParams)A=u.resolvedParams;if(L===void 0&&u?.resolvedReturnType)L=u.resolvedReturnType;if(k&&Z==="() => any"&&L)if(A&&A.length>0)Z=`(${A.map((Z8)=>{let l=Z8.optional?"?":"";return`${Z8.name}${l}: ${Z8.type}`}).join(", ")}) => ${L}`;else Z=`() => ${L}`;if(!d&&Z&&this.ctx.typedefs.has(Z))d=this.ctx.typedefs.get(Z)?.description;let a=this.resolveTypeSource({hasTypeScriptType:V!==void 0,hasJSDocType:j?.type!==void 0||j?.params!==void 0||j?.returnType!==void 0||u?.resolvedType!==void 0,inferredType:b,finalType:Z});this.addModuleExport(S,{name:S,kind:N,description:d,deprecated:j?.deprecated,tags:j?.tags,type:Z,typeSource:a,value:Q,defaultValue:I,params:A,returnType:L,isFunction:X,isFunctionDeclaration:k,isRequired:!1,constant:N==="const",reactive:!1,source:E8(this.ctx,z)})}}});let C,O=new Set,H=new Set,M=[],F={type:"ComponentRoot",instance:this.ctx.parsed.instance,html:this.ctx.parsed.html};pB(this,this.ctx),this.ctx.activeScopes.push(this.ctx.componentScope);let Y=cB(this.ctx);if(N0(F,{enter:(z,S,N)=>{iB(this,this.ctx,Y,z);let d=this.ctx.scopeDeclarations.get(z);if(d)this.ctx.activeScopes.push(d);if(z.type==="AssignmentExpression")n2(this.ctx,z.left);if(z.type==="UpdateExpression")n2(this.ctx,z.argument);if(z.type==="CallExpression"){let k=z,Q=k.callee&&typeof k.callee==="object"&&"name"in k.callee?k.callee.name:void 0;if(Q==="createEventDispatcher"){if(S&&typeof S==="object"&&"id"in S&&S.id&&typeof S.id==="object"&&"name"in S.id)C=S.id.name}if(Q==="$host"){if(S&&typeof S==="object"&&"id"in S&&S.id&&typeof S.id==="object"&&"name"in S.id)O.add(S.id.name)}if(Q==="setContext")jB(this.ctx,this,z,S??void 0);if(Q)M.push({name:Q,arguments:k.arguments,source:E8(this.ctx,k)});if(JB(k.callee)&&S0(k.callee.property)&&k.callee.property.name==="dispatchEvent"&&(v0(k.callee.object,"$host")||S0(k.callee.object)&&O.has(k.callee.object.name))){let Z=wB(this.ctx,k);if(Z)H.add(Z)}}if(z&&typeof z==="object"&&"type"in z&&String(z.type)==="Spread"){let k=z;if(k.expression?.name==="$$restProps"||this.ctx.restPropLocals.has(k.expression?.name??""))mB(this.ctx,S)}if(z.type==="FunctionDeclaration"){let k=z;if(k.id?.name)this.ctx.funcDecls.set(k.id.name,k)}if(z.type==="VariableDeclaration"){if(this.ctx.vars.add(z),S&&typeof S==="object"&&"type"in S&&S.type==="Program"&&z.declarations.some((k)=>v0(e0(k.init),"$props")))oB(this,this.ctx,z)}if(z.type==="ExportNamedDeclaration"){if(z.declaration==null&&z.specifiers.length===0)return;let k;if(z.declaration==null&&z.specifiers[0]?.type==="ExportSpecifier"){let s=z.specifiers[0],Y8=s.local&&typeof s.local==="object"&&"name"in s.local?s.local.name:void 0,J8=s.exported&&typeof s.exported==="object"&&"name"in s.exported?s.exported.name:void 0;if(!Y8||!J8)return;let H8;for(let X8 of Array.from(this.ctx.vars))if(X8.declarations.some((K8)=>K8.id&&typeof K8.id==="object"&&("type"in K8.id)&&K8.id.type==="Identifier"&&K8.id.name===Y8)){H8=X8;break}z.declaration=H8,k=J8}if(z.declaration==null)return;if(!z.declaration||typeof z.declaration!=="object"||!("type"in z.declaration))return;let Q,Z,V=!1,X,A,L,I=!1,b,u,j=!1,a,P8,q8,Z8;if(z.declaration.type==="FunctionDeclaration"){let s=z.declaration;if(!s.id?.name)return;k??=s.id.name,a=s.id.name,Q="function",X=void 0,A="() => any",I=!0,V=!0,j=!1}else if(z.declaration.type==="VariableDeclaration"){let s=z.declaration,Y8=s.declarations[0];if(!Y8||typeof Y8!=="object"||!("id"in Y8))return;let{id:J8,init:H8}=Y8;if(J8&&typeof J8==="object"&&"name"in J8){let K8=J8.name;a=K8,k??=K8,L=this.getExplicitPropType(K8)}else return;Q=eB(s.kind),j=Q==="let"&&H8==null;let X8=H8==null?{isFunction:!1}:X1(this,this.ctx,H8);({value:X,type:q8,isFunction:I,defaultValue:P8}=X8),Z8=X8,A=L??q8}else return;let l=q1(this.ctx,this,z);if(l){if(l.type&&L===void 0)A=l.type;if(b=l.params,u=l.returnType,l.description)Z=l.description}if(L===void 0&&l?.type===void 0&&Z8?.resolvedType)A=Z8.resolvedType;if(Z===void 0&&Z8?.resolvedDescription)Z=Z8.resolvedDescription;if(b===void 0&&Z8?.resolvedParams)b=Z8.resolvedParams;if(u===void 0&&Z8?.resolvedReturnType)u=Z8.resolvedReturnType;if(V&&A==="() => any"&&u)if(b&&b.length>0)A=`(${b.map((J8)=>{let H8=J8.optional?"?":"";return`${J8.name}${H8}: ${J8.type}`}).join(", ")}) => ${u}`;else A=`() => ${u}`;if(!Z&&A&&this.ctx.typedefs.has(A))Z=this.ctx.typedefs.get(A)?.description;let W8=this.resolveTypeSource({hasTypeScriptType:L!==void 0,hasJSDocType:l?.type!==void 0||l?.params!==void 0||l?.returnType!==void 0||Z8?.resolvedType!==void 0,inferredType:q8,finalType:A});g9(this,this.ctx,k,{name:k,...a!==void 0&&a!==k?{localName:a}:{},kind:Q,description:Z,binding:l?.binding,deprecated:l?.deprecated,tags:l?.tags,type:A,typeSource:W8,value:X,defaultValue:P8,params:b,returnType:u,isFunction:I,isFunctionDeclaration:V,isRequired:j,constant:Q==="const",reactive:this.ctx.reactive_vars.has(k),source:E8(this.ctx,z)})}if(z&&typeof z==="object"&&"type"in z&&String(z.type)==="Comment"){let Q=z?.data?.trim()??"";if(qU.test(Q))this.ctx.componentComment=Q.replace(qU,"").replace(Eg,""),this.ctx.componentCommentSource=E8(this.ctx,z)}if(z&&typeof z==="object"&&"type"in z&&String(z.type)==="Slot"){let k=z,Q=k.attributes?.find((X)=>X.name==="name")?.value?.[0]?.data,Z=(k.attributes||[]).filter((X)=>X.name!=="name").reduce((X,A)=>{let L={value:void 0,replace:!1},I=A.value;if(I===void 0)return X;if(I[0]){let b=I[0],{type:u,expression:j,raw:a,start:P8,end:q8}=b;if(u==="Text"&&a!==void 0)L.value=JSON.stringify(a);else if(u==="AttributeShorthand"&&j&&typeof j==="object"&&"name"in j)L.value=j.name,L.replace=!0;if(j&&typeof j==="object"&&"type"in j){if(j.type==="Literal"&&"value"in j){let Z8=j.value;L.value=typeof Z8==="string"?JSON.stringify(Z8):String(Z8)}else if(j.type==="MemberExpression")L.value=W6(this.ctx,this,j);else if(j.type!=="Identifier"){if(P8!==void 0&&q8!==void 0){if(j.type==="ObjectExpression"||j.type==="TemplateLiteral")L.value=D8(this.ctx,P8+1,q8-1)}}}}if(A.name)X[A.name]=L;return X},{}),V=k.children?.map(({start:X,end:A})=>{if(X===void 0||A===void 0)return"";return D8(this.ctx,X,A)??""}).join("").trim();_9(this.ctx,{slot_name:Q,slot_props:Z,slot_fallback:V,source:E8(this.ctx,z)})}if(z&&typeof z==="object"&&"type"in z&&String(z.type)==="RenderTag"){let k=z,Q=kB(this.ctx,k.expression);if(Q){let Z;if(Q.arguments.length===0)Z={};else if(Q.arguments.length===1&&typeof Q.arguments[0]==="object"&&Q.arguments[0]&&"type"in Q.arguments[0]&&Q.arguments[0].type==="ObjectExpression")Z=EB(this.ctx,this,Q.arguments[0]);else if(Q.arguments.length===1)l0(this.ctx,"syntax-skipped",Q.publicName,`{@render ${Q.publicName}(...)} argument is not a plain object literal; the render call was not mapped to slot metadata.`,E8(this.ctx,z));let V=Q.publicName==="children"?void 0:Q.publicName,X=V===void 0?ug:V;if(Z!==void 0)_9(this.ctx,{slot_name:V,slot_props:Z,source:E8(this.ctx,z)});if(Z!==void 0||this.ctx.slots.has(X))this.ctx.snippetPropLocals.add(Q.trackingName)}}if(z&&typeof z==="object"&&"type"in z&&String(z.type)==="EventHandler"){let k=z;if(k.expression==null&&k.name){if(S!=null&&typeof S==="object"&&"name"in S){let Q=typeof S.name==="string"?S.name:void 0,Z="type"in S?String(S.type):void 0;if(Q&&Z){let V=Z==="InlineComponent"?{type:"InlineComponent",name:Q}:{type:"Element",name:Q};this.ctx.forwardedEvents.set(k.name,V);let X=this.ctx.events.get(k.name),A=this.ctx.eventDescriptions.get(k.name),L=X?.deprecated;if(!X)this.ctx.events.set(k.name,{type:"forwarded",name:k.name,element:V,description:A,deprecated:L,source:E8(this.ctx,z)});else if(X.type==="forwarded"&&A&&!X.description)this.ctx.events.set(k.name,{...X,description:A,deprecated:X.deprecated??L,source:X.source||E8(this.ctx,z)})}}}}if(S&&typeof S==="object"&&"type"in S&&(String(S.type)==="Element"||String(S.type)==="InlineComponent")&&z&&typeof z==="object"&&"type"in z&&String(z.type)==="Binding"){let k=z;if(k.expression?.name){let Q=z6(this.ctx,k.expression.name);if(Q)this.ctx.reactive_vars.add(Q)}if(String(S.type)==="Element"&&k.name==="this"&&k.expression?.name&&"name"in S&&typeof S.name==="string"){let Q=z6(this.ctx,k.expression.name);if(!Q)return;let Z=S.name;if(this.ctx.bindings.has(Q)){let V=this.ctx.bindings.get(Q);if(V&&!V.elements.includes(Z))this.ctx.bindings.set(Q,{...V,elements:[...V.elements,Z]})}else this.ctx.bindings.set(Q,{elements:[Z]})}}},leave:(z)=>{if(this.ctx.scopeDeclarations.has(z))this.ctx.activeScopes.pop();rB(Y,z)}}),C!==void 0){for(let z of M)if(z.name===C){let S=z.arguments[0],N=S&&typeof S==="object"&&"value"in S?S.value:void 0,d=z.arguments[1],k=d&&typeof d==="object"&&"value"in d?d.value:void 0;if(N!=null)l9(this.ctx,{name:String(N),detail:k==null?"":i2(k),has_argument:Boolean(d),source:z.source})}}let K=new Set(H);if(C!==void 0){for(let z of M)if(z.name===C){let S=z.arguments[0],N=S&&typeof S==="object"&&"value"in S?S.value:void 0;if(N!=null)K.add(String(N))}}this.ctx.forwardedEvents.forEach((z,S)=>{let N=this.ctx.events.get(S);if(N&&N.type==="dispatched"&&!K.has(S)){let d=this.ctx.eventDescriptions.get(S),k={type:"forwarded",name:S,element:z,description:d,deprecated:N.deprecated,tags:N.tags,source:N.source};if(N.detail!==void 0&&N.detail!=="undefined")k.detail=N.detail;this.ctx.events.set(S,k)}}),nB(this.ctx,K);let J=this.ctx.syntaxMode==="runes"?new Set(Array.from(this.ctx.snippetPropLocals,(z)=>this.resolvePublicPropName(z))):new Set,$=u8.mapToArray(this.ctx.props).filter((z)=>!J.has(z.name)).map((z)=>{if(this.ctx.bindings.has(z.name)){let S=this.ctx.bindings.get(z.name)?.elements.sort().map((N)=>XB(N)).join(" | ");return{...z,type:`null | ${S}`,typeSource:"inferred",reactive:z.reactive||this.ctx.reactive_vars.has(z.name)}}return{...z,reactive:z.reactive||this.ctx.reactive_vars.has(z.name)}});this.ctx.activeScopes.length=0;let U=u8.mapToArray(this.ctx.slots).map((z)=>{if(!z.slot_props)return z;if(typeof z.slot_props==="string")return kg.test(z.slot_props)?{...z,slot_props:"Record<string, never>"}:z;let S=z.slot_props,N=[];for(let k of Object.keys(S)){if(S[k].replace&&S[k].value!==void 0)S[k].value=this.getPropTypeByLocalOrPublic(S[k].value);if(S[k].value===void 0)S[k].value="any";N.push(`${k}: ${S[k].value}`)}let d=N.length===0?"Record<string, never>":N.length===1?`{ ${N[0]} }`:`{
108
- ${N.join(`;
36
+ `;else M=String.fromCharCode($);if(this.options.locations)++this.curLine,this.lineStart=this.pos;return M}jsx_readString(O){let $="",M=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");let F=this.input.charCodeAt(this.pos);if(F===O)break;if(F===38)$+=this.input.slice(M,this.pos),$+=this.jsx_readEntity(),M=this.pos;else if(K(F))$+=this.input.slice(M,this.pos),$+=this.jsx_readNewLine(!1),M=this.pos;else++this.pos}return $+=this.input.slice(M,this.pos++),this.finishToken(H.string,$)}jsx_readEntity(){let O="",$=0,M,F=this.input[this.pos];if(F!=="&")this.raise(this.pos,"Entity must start with an ampersand");let P=++this.pos;while(this.pos<this.input.length&&$++<10){if(F=this.input[this.pos++],F===";"){if(O[0]==="#"){if(O[1]==="x"){if(O=O.substr(2),IQ.test(O))M=String.fromCharCode(parseInt(O,16))}else if(O=O.substr(1),PQ.test(O))M=String.fromCharCode(parseInt(O,10))}else M=wQ[O];break}O+=F}if(!M)return this.pos=P,"&";return M}jsx_readWord(){let O,$=this.pos;do O=this.input.charCodeAt(++this.pos);while(W(O)||O===45);return this.finishToken(V.jsxName,this.input.slice($,this.pos))}jsx_parseIdentifier(){let O=this.startNode();if(this.type===V.jsxName)O.name=this.value;else if(this.type.keyword)O.name=this.type.keyword;else this.unexpected();return this.next(),this.finishNode(O,"JSXIdentifier")}jsx_parseNamespacedName(){let O=this.start,$=this.startLoc,M=this.jsx_parseIdentifier();if(!G.allowNamespaces||!this.eat(H.colon))return M;var F=this.startNodeAt(O,$);return F.namespace=M,F.name=this.jsx_parseIdentifier(),this.finishNode(F,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===V.jsxTagEnd)return"";let O=this.start,$=this.startLoc,M=this.jsx_parseNamespacedName();if(this.type===H.dot&&M.type==="JSXNamespacedName"&&!G.allowNamespacedObjects)this.unexpected();while(this.eat(H.dot)){let F=this.startNodeAt(O,$);F.object=M,F.property=this.jsx_parseIdentifier(),M=this.finishNode(F,"JSXMemberExpression")}return M}jsx_parseAttributeValue(){switch(this.type){case H.braceL:let O=this.jsx_parseExpressionContainer();if(O.expression.type==="JSXEmptyExpression")this.raise(O.start,"JSX attributes must only be assigned a non-empty expression");return O;case V.jsxTagStart:case H.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let O=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(O,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let O=this.startNode();return this.next(),O.expression=this.type===H.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(H.braceR),this.finishNode(O,"JSXExpressionContainer")}jsx_parseAttribute(){let O=this.startNode();if(this.eat(H.braceL))return this.expect(H.ellipsis),O.argument=this.parseMaybeAssign(),this.expect(H.braceR),this.finishNode(O,"JSXSpreadAttribute");return O.name=this.jsx_parseNamespacedName(),O.value=this.eat(H.eq)?this.jsx_parseAttributeValue():null,this.finishNode(O,"JSXAttribute")}jsx_parseOpeningElementAt(O,$){let M=this.startNodeAt(O,$);M.attributes=[];let F=this.jsx_parseElementName();if(F)M.name=F;while(this.type!==H.slash&&this.type!==V.jsxTagEnd)M.attributes.push(this.jsx_parseAttribute());return M.selfClosing=this.eat(H.slash),this.expect(V.jsxTagEnd),this.finishNode(M,F?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(O,$){let M=this.startNodeAt(O,$),F=this.jsx_parseElementName();if(F)M.name=F;return this.expect(V.jsxTagEnd),this.finishNode(M,F?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(O,$){let M=this.startNodeAt(O,$),F=[],P=this.jsx_parseOpeningElementAt(O,$),w=null;if(!P.selfClosing){q:for(;;)switch(this.type){case V.jsxTagStart:if(O=this.start,$=this.startLoc,this.next(),this.eat(H.slash)){w=this.jsx_parseClosingElementAt(O,$);break q}F.push(this.jsx_parseElementAt(O,$));break;case V.jsxText:F.push(this.parseExprAtom());break;case H.braceL:F.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}if(m1(w.name)!==m1(P.name))this.raise(w.start,"Expected corresponding JSX closing tag for <"+m1(P.name)+">")}let N=P.name?"Element":"Fragment";if(M["opening"+N]=P,M["closing"+N]=w,M.children=F,this.type===H.relational&&this.value==="<")this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag");return this.finishNode(M,"JSX"+N)}jsx_parseText(){let O=this.parseLiteral(this.value);return O.type="JSXText",O}jsx_parseElement(){let O=this.start,$=this.startLoc;return this.next(),this.jsx_parseElementAt(O,$)}}}function DQ(q,Q,Z){let{tokTypes:Y}=Q,{tokTypes:H}=Z;return class extends q{parseMaybeImportAttributes(K){if(this.type===H._with||this.type===Y.assert){this.next();let W=this.parseImportAttributes();if(W)K.attributes=W}}parseImportAttributes(){this.expect(H.braceL);let K=this.parseWithEntries();return this.expect(H.braceR),K}parseWithEntries(){let K=[],W=new Set;do{if(this.type===H.braceR)break;let G=this.startNode(),R;if(this.type===H.string)R=this.parseLiteral(this.value);else R=this.parseIdent(!0);if(this.next(),G.key=R,W.has(G.key.name))this.raise(this.pos,"Duplicated key in attributes");if(W.add(G.key.name),this.type!==H.string)this.raise(this.pos,"Only string is supported as an attribute value");G.value=this.parseLiteral(this.value),K.push(this.finishNode(G,"ImportAttribute"))}while(this.eat(H.comma));return K}}}var c9=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function n2(q){if(!q)throw Error("Assert fail")}function NQ(q){return q==="accessor"}function TQ(q){return q==="in"||q==="out"}var N0=1,s2=2,bQ=4,q8={SCOPE_TOP:1,SCOPE_FUNCTION:2,SCOPE_ASYNC:4,SCOPE_GENERATOR:8,SCOPE_ARROW:16,SCOPE_SIMPLE_CATCH:32,SCOPE_SUPER:64,SCOPE_DIRECT_SUPER:128,SCOPE_CLASS_STATIC_BLOCK:256,SCOPE_VAR:256,BIND_NONE:0,BIND_VAR:1,BIND_LEXICAL:2,BIND_FUNCTION:3,BIND_SIMPLE_CATCH:4,BIND_OUTSIDE:5,BIND_TS_TYPE:6,BIND_TS_INTERFACE:7,BIND_TS_NAMESPACE:1032,BIND_FLAGS_TS_EXPORT_ONLY:1024,BIND_FLAGS_TS_IMPORT:4096,BIND_FLAGS_TS_ENUM:256,BIND_FLAGS_TS_CONST_ENUM:512,BIND_FLAGS_CLASS:128};function i9(q,Q){return q8.SCOPE_FUNCTION|(q?q8.SCOPE_ASYNC:0)|(Q?q8.SCOPE_GENERATOR:0)}function kQ(q){if(q.type!=="MemberExpression")return!1;let{computed:Q,property:Z}=q;if(Q&&(Z.type!=="TemplateLiteral"||Z.expressions.length>0))return!1;return Y5(q.object)}function Y5(q){if(q.type==="Identifier")return!0;if(q.type!=="MemberExpression")return!1;if(q.computed)return!1;return Y5(q.object)}function a2(q){return q==="private"||q==="public"||q==="protected"}function EQ(q){return Boolean(q.startsExpr)}function vQ(q){if(q==null)throw Error(`Unexpected ${q} value.`);return q}function hQ(q){switch(q){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function H5(q){let{dts:Q=!1}=q||{},Z=!!q?.jsx;return function(Y){let H=Y.acorn||D0,V=OQ(H),K=H.tokTypes,W=H.keywordTypes,G=H.isIdentifierStart,R=H.lineBreak,O=H.isNewLine,$=H.tokContexts,M=H.isIdentifierChar,{tokTypes:F,tokContexts:P,keywordsRegExp:w,tokenIsLiteralPropertyName:N,tokenIsTemplate:v,tokenIsTSDeclarationStart:g,tokenIsIdentifier:f,tokenIsKeywordOrIdentifier:a,tokenIsTSTypeOperator:x}=V;function Z8(J,X,z=J.length){for(let j=X;j<z;j++){let B=J.charCodeAt(j);if(O(B))return j<z-1&&B===13&&J.charCodeAt(j+1)===10?j+2:j+1}return-1}if(Y=AQ(Y,V,H),q?.jsx)Y=SQ(H,V,Y,typeof q.jsx==="boolean"?{}:q.jsx);Y=DQ(Y,V,H);class C extends Y{constructor(J,X,z){super(J,X,z);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=(j)=>{this.tsParseModifiers({modified:j,allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:E.InvalidModifierOnTypeParameterPositions})},this.ecmaVersion=this.options.ecmaVersion}static get acornTypeScript(){return V}get acornTypeScript(){return V}getTokenFromCodeInType(J){if(J===62)return this.finishOp(K.relational,1);if(J===60)return this.finishOp(K.relational,1);return super.getTokenFromCode(J)}readToken(J){if(!this.inType){let X=this.curContext();if(X===P.tc_expr)return this.jsx_readToken();if(X===P.tc_oTag||X===P.tc_cTag){if(G(J))return this.jsx_readWord();if(J==62)return++this.pos,this.finishToken(F.jsxTagEnd);if((J===34||J===39)&&X==P.tc_oTag)return this.jsx_readString(J)}if(J===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)if(++this.pos,q?.jsx)return this.finishToken(F.jsxTagStart);else return this.finishToken(K.relational,"<")}return super.readToken(J)}getTokenFromCode(J){if(this.inType)return this.getTokenFromCodeInType(J);if(J===64)return++this.pos,this.finishToken(F.at);return super.getTokenFromCode(J)}isAbstractClass(){return this.ts_isContextual(F.abstract)&&this.lookahead().type===K._class}finishNode(J,X){if(J.type!==""&&J.end!==0)return J;return super.finishNode(J,X)}tryParse(J,X=this.cloneCurLookaheadState()){let z={node:null};try{return{node:J((B=null)=>{throw z.node=B,z}),error:null,thrown:!1,aborted:!1,failState:null}}catch(j){let B=this.getCurLookaheadState();if(this.setLookaheadState(X),j instanceof SyntaxError)return{node:null,error:j,thrown:!0,aborted:!1,failState:B};if(j===z)return{node:z.node,error:null,thrown:!1,aborted:!0,failState:B};throw j}}setOptionalParametersError(J,X){J.optionalParametersLoc=X?.loc??this.startLoc}reScan_lt_gt(){if(this.type===K.relational)this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos())}reScan_lt(){let{type:J}=this;if(J===K.bitShift)return this.pos-=2,this.finishOp(K.relational,1),K.relational;return J}resetEndLocation(J,X=this.lastTokEnd,z=this.lastTokEndLoc){if(J.end=X,J.loc.end=z,this.options.ranges)J.range[1]=X}startNodeAtNode(J){return super.startNodeAt(J.start,J.loc.start)}nextTokenStart(){return this.nextTokenStartSince(this.pos)}tsHasSomeModifiers(J,X){return X.some((z)=>{if(a2(z))return J.accessibility===z;return!!J[z]})}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&this.lookaheadCharCode()===123}tsCheckForInvalidTypeCasts(J){J.forEach((X)=>{if(X?.type==="TSTypeCastExpression")this.raise(X.typeAnnotation.start,E.UnexpectedTypeAnnotation)})}atPossibleAsyncArrow(J){return J.type==="Identifier"&&J.name==="async"&&this.lastTokEnd===J.end&&!this.canInsertSemicolon()&&J.end-J.start===5&&J.start===this.potentialArrowAt}tsIsIdentifier(){return f(this.type)}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(K.colon)?this.tsParseTypeOrTypePredicateAnnotation(K.colon):void 0}tsTryParseGenericAsyncArrowFunction(J,X,z){if(!this.tsMatchLeftRelational())return;let j=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let B=this.tsTryParseAndCatch(()=>{let L=this.startNodeAt(J,X);return L.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(L),L.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(K.arrow),L});if(this.maybeInArrowParameters=j,!B)return;return super.parseArrowExpression(B,null,!0,z)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==K.relational)return;return this.tsParseTypeArguments()}tsInNoContext(J){let X=this.context;this.context=[X[0]];try{return J()}finally{this.context=X}}tsTryParseTypeAnnotation(){return this.match(K.colon)?this.tsParseTypeAnnotation():void 0}isUnparsedContextual(J,X){let z=J+X.length;if(this.input.slice(J,z)===X){let j=this.input.charCodeAt(z);return!(M(j)||(j&64512)===55296)}return!1}isAbstractConstructorSignature(){return this.ts_isContextual(F.abstract)&&this.lookahead().type===K._new}nextTokenStartSince(J){return c9.lastIndex=J,c9.test(this.input)?c9.lastIndex:J}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}compareLookaheadState(J,X){for(let z of Object.keys(J))if(J[z]!==X[z])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(J){this.pos=J.pos,this.value=J.value,this.endLoc=J.endLoc,this.lastTokEnd=J.lastTokEnd,this.lastTokStart=J.lastTokStart,this.lastTokStartLoc=J.lastTokStartLoc,this.type=J.type,this.start=J.start,this.end=J.end,this.context=J.context,this.startLoc=J.startLoc,this.lastTokEndLoc=J.lastTokEndLoc,this.curLine=J.curLine,this.lineStart=J.lineStart,this.curPosition=J.curPosition,this.containsEsc=J.containsEsc}tsLookAhead(J){let X=this.getCurLookaheadState(),z=J();return this.setLookaheadState(X),z}lookahead(J){let X=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,J!==void 0)for(let j=0;j<J;j++)this.nextToken();else this.nextToken();this.isLookahead=!1;let z=this.getCurLookaheadState();return this.setLookaheadState(X),z}readWord(){let J=this.readWord1(),X=K.name;if(this.keywords.test(J))X=W[J];else if(new RegExp(w).test(J))X=F[J];return this.finishToken(X,J)}skipBlockComment(){let J;if(!this.isLookahead)J=this.options.onComment&&this.curPosition();let X=this.pos,z=this.input.indexOf("*/",this.pos+=2);if(z===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=z+2,this.options.locations)for(let j,B=X;(j=Z8(this.input,B,this.pos))>-1;)++this.curLine,B=this.lineStart=j;if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!0,this.input.slice(X+2,z),X,this.pos,J,this.curPosition())}skipLineComment(J){let X=this.pos,z;if(!this.isLookahead)z=this.options.onComment&&this.curPosition();let j=this.input.charCodeAt(this.pos+=J);while(this.pos<this.input.length&&!O(j))j=this.input.charCodeAt(++this.pos);if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!1,this.input.slice(X+J,this.pos),X,this.pos,z,this.curPosition())}finishToken(J,X){if(this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();let z=this.type;if(this.type=J,this.value=X,!this.isLookahead)this.updateContext(z)}resetStartLocation(J,X,z){if(J.start=X,J.loc.start=z,this.options.ranges)J.range[0]=X}isLineTerminator(){return this.eat(K.semi)||super.canInsertSemicolon()}hasFollowingLineBreak(){return p2.lastIndex=this.end,p2.test(this.input)}addExtra(J,X,z,j=!0){if(!J)return;let B=J.extra=J.extra||{};if(j)B[X]=z;else Object.defineProperty(B,X,{enumerable:j,value:z})}isLiteralPropertyName(){return N(this.type)}hasPrecedingLineBreak(){return R.test(this.input.slice(this.lastTokEnd,this.start))}createIdentifier(J,X){return J.name=X,this.finishNode(J,"Identifier")}resetStartLocationFromNode(J,X){this.resetStartLocation(J,X.start,X.loc.start)}isThisParam(J){return J.type==="Identifier"&&J.name==="this"}isLookaheadContextual(J){let X=this.nextTokenStart();return this.isUnparsedContextual(X,J)}ts_type_isContextual(J,X){return J===X&&!this.containsEsc}ts_isContextual(J){return this.type===J&&!this.containsEsc}ts_isContextualWithState(J,X){return J.type===X&&!J.containsEsc}isContextualWithState(J,X){return X.type===K.name&&X.value===J&&!X.containsEsc}tsIsStartOfMappedType(){if(this.next(),this.eat(K.plusMin))return this.ts_isContextual(F.readonly);if(this.ts_isContextual(F.readonly))this.next();if(!this.match(K.bracketL))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(K._in)}tsInDisallowConditionalTypesContext(J){let X=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return J()}finally{this.inDisallowConditionalTypesContext=X}}tsTryParseType(){return this.tsEatThenParseType(K.colon)}match(J){return this.type===J}matchJsx(J){return this.type===V.tokTypes[J]}ts_eatWithState(J,X,z){let j=z.type;if(J===j){for(let B=0;B<X;B++)this.next();return!0}else return!1}ts_eatContextualWithState(J,X,z){if(w.test(J)){if(this.ts_isContextualWithState(z,F[J])){for(let j=0;j<X;j++)this.next();return!0}return!1}else{if(!this.isContextualWithState(J,z))return!1;for(let j=0;j<X;j++)this.next();return!0}}canHaveLeadingDecorator(){return this.match(K._class)||this.isAbstractClass()}eatContextual(J){if(w.test(J)){if(this.ts_isContextual(F[J]))return this.next(),!0;return!1}else return super.eatContextual(J)}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookaheadCharCode()===40}tsParseExternalModuleReference(){let J=this.startNode();if(this.expectContextual("require"),this.expect(K.parenL),!this.match(K.string))this.unexpected();return J.expression=this.parseExprAtom(),this.expect(K.parenR),this.finishNode(J,"TSExternalModuleReference")}tsParseEntityName(J=!0){let X=this.parseIdent(J);while(this.eat(K.dot)){let z=this.startNodeAtNode(X);z.left=X,z.right=this.parseIdent(J),X=this.finishNode(z,"TSQualifiedName")}return X}tsParseEnumMember(){let J=this.startNode();if(J.id=this.match(K.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(K.eq))J.initializer=this.parseMaybeAssign();return this.finishNode(J,"TSEnumMember")}tsParseEnumDeclaration(J,X={}){if(X.const)J.const=!0;if(X.declare)J.declare=!0;return this.expectContextual("enum"),J.id=this.parseIdent(),this.checkLValSimple(J.id),this.expect(K.braceL),J.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(K.braceR),this.finishNode(J,"TSEnumDeclaration")}tsParseModuleBlock(){let J=this.startNode();this.enterScope(UQ),this.expect(K.braceL),J.body=[];while(this.type!==K.braceR){let X=this.parseStatement(null,!0);J.body.push(X)}return this.next(),super.exitScope(),this.finishNode(J,"TSModuleBlock")}tsParseAmbientExternalModuleDeclaration(J){if(this.ts_isContextual(F.global))J.global=!0,J.id=this.parseIdent();else if(this.match(K.string))J.id=this.parseLiteral(this.value);else this.unexpected();if(this.match(K.braceL))this.enterScope(x1),J.body=this.tsParseModuleBlock(),super.exitScope();else super.semicolon();return this.finishNode(J,"TSModuleDeclaration")}tsTryParseDeclare(J){if(this.isLineTerminator())return;let X=this.type,z;if(this.isContextual("let"))X=K._var,z="let";return this.tsInAmbientContext(()=>{if(X===K._function)return J.declare=!0,this.parseFunctionStatement(J,!1,!0);if(X===K._class)return J.declare=!0,this.parseClass(J,!0);if(X===F.enum)return this.tsParseEnumDeclaration(J,{declare:!0});if(X===F.global)return this.tsParseAmbientExternalModuleDeclaration(J);if(X===K._const||X===K._var){if(!this.match(K._const)||!this.isLookaheadContextual("enum"))return J.declare=!0,this.parseVarStatement(J,z||this.value,!0);return this.expect(K._const),this.tsParseEnumDeclaration(J,{const:!0,declare:!0})}if(X===F.interface){let j=this.tsParseInterfaceDeclaration(J,{declare:!0});if(j)return j}if(f(X))return this.tsParseDeclaration(J,this.value,!0)})}tsIsListTerminator(J){switch(J){case"EnumMembers":case"TypeMembers":return this.match(K.braceR);case"HeritageClauseElement":return this.match(K.braceL);case"TupleElementTypes":return this.match(K.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}}tsParseDelimitedListWorker(J,X,z,j){let B=[],L=-1;for(;;){if(this.tsIsListTerminator(J))break;L=-1;let A=X();if(A==null)return;if(B.push(A),this.eat(K.comma)){L=this.lastTokStart;continue}if(this.tsIsListTerminator(J))break;if(z)this.expect(K.comma);return}if(j)j.value=L;return B}tsParseDelimitedList(J,X,z){return vQ(this.tsParseDelimitedListWorker(J,X,!0,z))}tsParseBracketedList(J,X,z,j,B){if(!j)if(z)this.expect(K.bracketL);else this.expect(K.relational);let L=this.tsParseDelimitedList(J,X,B);if(z)this.expect(K.bracketR);else this.expect(K.relational);return L}tsParseTypeParameterName(){return this.parseIdent().name}tsEatThenParseType(J){return!this.match(J)?void 0:this.tsNextThenParseType()}tsExpectThenParseType(J){return this.tsDoThenParseType(()=>this.expect(J))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(J){return this.tsInType(()=>{return J(),this.tsParseType()})}tsSkipParameterStart(){if(f(this.type)||this.match(K._this))return this.next(),!0;if(this.match(K.braceL))try{return this.parseObj(!0),!0}catch{return!1}if(this.match(K.bracketL)){this.next();try{return this.parseBindingList(K.bracketR,!0,!0),!0}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(K.parenR)||this.match(K.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(K.colon)||this.match(K.comma)||this.match(K.question)||this.match(K.eq))return!0;if(this.match(K.parenR)){if(this.next(),this.match(K.arrow))return!0}}return!1}tsIsStartOfFunctionType(){if(this.tsMatchLeftRelational())return!0;return this.match(K.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsInAllowConditionalTypesContext(J){let X=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return J()}finally{this.inDisallowConditionalTypesContext=X}}tsParseBindingListForSignature(){return super.parseBindingList(K.parenR,!0,!0).map((J)=>{if(J.type!=="Identifier"&&J.type!=="RestElement"&&J.type!=="ObjectPattern"&&J.type!=="ArrayPattern")this.raise(J.start,E.UnsupportedSignatureParameterKind({type:J.type}));return J})}tsParseTypePredicateAsserts(){if(this.type!==F.asserts)return!1;let J=this.containsEsc;if(this.next(),!f(this.type)&&!this.match(K._this))return!1;if(J)this.raise(this.lastTokStart,"Escape sequence in keyword asserts");return!0}tsParseThisTypeNode(){let J=this.startNode();return this.next(),this.finishNode(J,"TSThisType")}tsParseTypeAnnotation(J=!0,X=this.startNode()){return this.tsInType(()=>{if(J)this.expect(K.colon);X.typeAnnotation=this.tsParseType()}),this.finishNode(X,"TSTypeAnnotation")}tsParseThisTypePredicate(J){this.next();let X=this.startNodeAtNode(J);return X.parameterName=J,X.typeAnnotation=this.tsParseTypeAnnotation(!1),X.asserts=!1,this.finishNode(X,"TSTypePredicate")}tsParseThisTypeOrThisTypePredicate(){let J=this.tsParseThisTypeNode();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(J);else return J}tsParseTypePredicatePrefix(){let J=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),J}tsParseTypeOrTypePredicateAnnotation(J){return this.tsInType(()=>{let X=this.startNode();this.expect(J);let z=this.startNode(),j=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(j&&this.match(K._this)){let A=this.tsParseThisTypeOrThisTypePredicate();if(A.type==="TSThisType")z.parameterName=A,z.asserts=!0,z.typeAnnotation=null,A=this.finishNode(z,"TSTypePredicate");else this.resetStartLocationFromNode(A,z),A.asserts=!0;return X.typeAnnotation=A,this.finishNode(X,"TSTypeAnnotation")}let B=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!B){if(!j)return this.tsParseTypeAnnotation(!1,X);return z.parameterName=this.parseIdent(),z.asserts=j,z.typeAnnotation=null,X.typeAnnotation=this.finishNode(z,"TSTypePredicate"),this.finishNode(X,"TSTypeAnnotation")}let L=this.tsParseTypeAnnotation(!1);return z.parameterName=B,z.typeAnnotation=L,z.asserts=j,X.typeAnnotation=this.finishNode(z,"TSTypePredicate"),this.finishNode(X,"TSTypeAnnotation")})}tsFillSignature(J,X){let z=J===K.arrow,j="parameters",B="typeAnnotation";if(X.typeParameters=this.tsTryParseTypeParameters(),this.expect(K.parenL),X.parameters=this.tsParseBindingListForSignature(),z)X.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(J);else if(this.match(J))X.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(J)}tsTryNextParseConstantContext(){if(this.lookahead().type!==K._const)return null;this.next();let J=this.tsParseTypeReference();if(J.typeParameters||J.typeArguments)this.raise(J.typeName.start,E.CannotFindName({name:"const"}));return J}tsParseFunctionOrConstructorType(J,X){let z=this.startNode();if(J==="TSConstructorType"){if(z.abstract=!!X,X)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(K.arrow,z)),this.finishNode(z,J)}tsParseUnionOrIntersectionType(J,X,z){let j=this.startNode(),B=this.eat(z),L=[];do L.push(X());while(this.eat(z));if(L.length===1&&!B)return L[0];return j.types=L,this.finishNode(j,J)}tsCheckTypeAnnotationForReadOnly(J){switch(J.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(J.start,E.UnexpectedReadonly)}}tsParseTypeOperator(){let J=this.startNode(),X=this.value;if(this.next(),J.operator=X,J.typeAnnotation=this.tsParseTypeOperatorOrHigher(),X==="readonly")this.tsCheckTypeAnnotationForReadOnly(J);return this.finishNode(J,"TSTypeOperator")}tsParseConstraintForInferType(){if(this.eat(K._extends)){let J=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.inDisallowConditionalTypesContext||!this.match(K.question))return J}}tsParseInferType(){let J=this.startNode();this.expectContextual("infer");let X=this.startNode();return X.name=this.tsParseTypeParameterName(),X.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),J.typeParameter=this.finishNode(X,"TSTypeParameter"),this.finishNode(J,"TSInferType")}tsParseLiteralTypeNode(){let J=this.startNode();return J.literal=(()=>{switch(this.type){case K.num:case K.string:case K._true:case K._false:return this.parseExprAtom();default:this.unexpected()}})(),this.finishNode(J,"TSLiteralType")}tsParseImportType(){let J=this.startNode();if(this.expect(K._import),this.expect(K.parenL),!this.match(K.string))this.raise(this.start,E.UnsupportedImportTypeArgument);if(J.argument=this.parseExprAtom(),this.expect(K.parenR),this.eat(K.dot))J.qualifier=this.tsParseEntityName();if(this.tsMatchLeftRelational())J.typeArguments=this.tsParseTypeArguments();return this.finishNode(J,"TSImportType")}tsParseTypeQuery(){let J=this.startNode();if(this.expect(K._typeof),this.match(K._import))J.exprName=this.tsParseImportType();else J.exprName=this.tsParseEntityName();if(!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())J.typeArguments=this.tsParseTypeArguments();return this.finishNode(J,"TSTypeQuery")}tsParseMappedTypeParameter(){let J=this.startNode();return J.name=this.tsParseTypeParameterName(),J.constraint=this.tsExpectThenParseType(K._in),this.finishNode(J,"TSTypeParameter")}tsParseMappedType(){let J=this.startNode();if(this.expect(K.braceL),this.match(K.plusMin))J.readonly=this.value,this.next(),this.expectContextual("readonly");else if(this.eatContextual("readonly"))J.readonly=!0;if(this.expect(K.bracketL),J.typeParameter=this.tsParseMappedTypeParameter(),J.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(K.bracketR),this.match(K.plusMin))J.optional=this.value,this.next(),this.expect(K.question);else if(this.eat(K.question))J.optional=!0;return J.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(K.braceR),this.finishNode(J,"TSMappedType")}tsParseTypeLiteral(){let J=this.startNode();return J.members=this.tsParseObjectTypeMembers(),this.finishNode(J,"TSTypeLiteral")}tsParseTupleElementType(){let J=this.startLoc,X=this.start,z=this.eat(K.ellipsis),j=this.tsParseType(),B=this.eat(K.question);if(this.eat(K.colon)){let A=this.startNodeAtNode(j);if(A.optional=B,j.type==="TSTypeReference"&&!j.typeArguments&&j.typeName.type==="Identifier")A.label=j.typeName;else this.raise(j.start,E.InvalidTupleMemberLabel),A.label=j;A.elementType=this.tsParseType(),j=this.finishNode(A,"TSNamedTupleMember")}else if(B){let A=this.startNodeAtNode(j);A.typeAnnotation=j,j=this.finishNode(A,"TSOptionalType")}if(z){let A=this.startNodeAt(X,J);A.typeAnnotation=j,j=this.finishNode(A,"TSRestType")}return j}tsParseTupleType(){let J=this.startNode();J.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let X=!1;return J.elementTypes.forEach((z)=>{let{type:j}=z;if(X&&j!=="TSRestType"&&j!=="TSOptionalType"&&!(j==="TSNamedTupleMember"&&z.optional))this.raise(z.start,E.OptionalTypeBeforeRequired);if(X||=j==="TSNamedTupleMember"&&z.optional||j==="TSOptionalType",j==="TSRestType")z=z.typeAnnotation}),this.finishNode(J,"TSTupleType")}tsParseTemplateLiteralType(){let J=this.startNode();return J.literal=this.parseTemplate({isTagged:!1}),this.finishNode(J,"TSLiteralType")}tsParseTypeReference(){let J=this.startNode();if(J.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())J.typeArguments=this.tsParseTypeArguments();return this.finishNode(J,"TSTypeReference")}tsMatchLeftRelational(){return this.match(K.relational)&&this.value==="<"}tsMatchRightRelational(){return this.match(K.relational)&&this.value===">"}tsParseParenthesizedType(){let J=this.startNode();return this.expect(K.parenL),J.typeAnnotation=this.tsParseType(),this.expect(K.parenR),this.finishNode(J,"TSParenthesizedType")}tsParseNonArrayType(){switch(this.type){case K.string:case K.num:case K._true:case K._false:return this.tsParseLiteralTypeNode();case K.plusMin:if(this.value==="-"){let J=this.startNode();if(this.lookahead().type!==K.num)this.unexpected();return J.literal=this.parseMaybeUnary(),this.finishNode(J,"TSLiteralType")}break;case K._this:return this.tsParseThisTypeOrThisTypePredicate();case K._typeof:return this.tsParseTypeQuery();case K._import:return this.tsParseImportType();case K.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case K.bracketL:return this.tsParseTupleType();case K.parenL:return this.tsParseParenthesizedType();case K.backQuote:case K.dollarBraceL:return this.tsParseTemplateLiteralType();default:{let{type:J}=this;if(f(J)||J===K._void||J===K._null){let X=J===K._void?"TSVoidKeyword":J===K._null?"TSNullKeyword":hQ(this.value);if(X!==void 0&&this.lookaheadCharCode()!==46){let z=this.startNode();return this.next(),this.finishNode(z,X)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let J=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(K.bracketL))if(this.match(K.bracketR)){let X=this.startNodeAtNode(J);X.elementType=J,this.expect(K.bracketR),J=this.finishNode(X,"TSArrayType")}else{let X=this.startNodeAtNode(J);X.objectType=J,X.indexType=this.tsParseType(),this.expect(K.bracketR),J=this.finishNode(X,"TSIndexedAccessType")}return J}tsParseTypeOperatorOrHigher(){return x(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),K.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),K.bitwiseOR)}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(K._new))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseType(){n2(this.inType);let J=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(K._extends))return J;let X=this.startNodeAtNode(J);return X.checkType=J,X.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(K.question),X.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(K.colon),X.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(X,"TSConditionalType")}tsIsUnambiguouslyIndexSignature(){if(this.next(),f(this.type))return this.next(),this.match(K.colon);return!1}tsInType(J){let X=this.inType;this.inType=!0;try{return J()}finally{this.inType=X}}tsTryParseIndexSignature(J){if(!(this.match(K.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(K.bracketL);let X=this.parseIdent();X.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(X),this.expect(K.bracketR),J.parameters=[X];let z=this.tsTryParseTypeAnnotation();if(z)J.typeAnnotation=z;return this.tsParseTypeMemberSemicolon(),this.finishNode(J,"TSIndexSignature")}tsParseNoneModifiers(J){this.tsParseModifiers({modified:J,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:E.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(J=this.tsParseNoneModifiers.bind(this)){let X=this.startNode();return J(X),X.name=this.tsParseTypeParameterName(),X.constraint=this.tsEatThenParseType(K._extends),X.default=this.tsEatThenParseType(K.eq),this.finishNode(X,"TSTypeParameter")}tsParseTypeParameters(J){let X=this.startNode();if(this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart"))this.next();else this.unexpected();let z={value:-1};if(X.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,J),!1,!0,z),X.params.length===0)this.raise(this.start,E.EmptyTypeParameters);if(z.value!==-1)this.addExtra(X,"trailingComma",z.value);return this.finishNode(X,"TSTypeParameterDeclaration")}tsTryParseTypeParameters(J){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(J)}tsTryParse(J){let X=this.getCurLookaheadState(),z=J();if(z!==void 0&&z!==!1)return z;else{this.setLookaheadState(X);return}}tsTokenCanFollowModifier(){return(this.match(K.bracketL)||this.match(K.braceL)||this.match(K.star)||this.match(K.ellipsis)||this.match(K.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(!0),this.tsTokenCanFollowModifier()}tsParseModifier(J,X){let z=this.value;if(J.indexOf(z)!==-1&&!this.containsEsc){if(X&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return z}return}tsParseModifiersByMap({modified:J,map:X}){for(let z of Object.keys(X))J[z]=X[z]}tsParseModifiers({modified:J,allowedModifiers:X,disallowedModifiers:z,stopOnStartOfClassStaticBlock:j,errorTemplate:B=E.InvalidModifierOnTypeMember}){let L={},A=(S,I,h,c)=>{if(I===h&&J[c])this.raise(S.column,E.InvalidModifiersOrder({orderedModifiers:[h,c]}))},D=(S,I,h,c)=>{if(J[h]&&I===c||J[c]&&I===h)this.raise(S.column,E.IncompatibleModifiers({modifiers:[h,c]}))};for(;;){let S=this.startLoc,I=this.tsParseModifier(X.concat(z??[]),j);if(!I)break;if(a2(I))if(J.accessibility)this.raise(this.start,E.DuplicateAccessibilityModifier());else A(S,I,I,"override"),A(S,I,I,"static"),A(S,I,I,"readonly"),A(S,I,I,"accessor"),L.accessibility=I,J.accessibility=I;else if(TQ(I))if(J[I])this.raise(this.start,E.DuplicateModifier({modifier:I}));else A(S,I,"in","out"),L[I]=I,J[I]=!0;else if(NQ(I))if(J[I])this.raise(this.start,E.DuplicateModifier({modifier:I}));else D(S,I,"accessor","readonly"),D(S,I,"accessor","static"),D(S,I,"accessor","override"),L[I]=I,J[I]=!0;else if(I==="const")if(J[I])this.raise(this.start,E.DuplicateModifier({modifier:I}));else L[I]=I,J[I]=!0;else if(Object.hasOwnProperty.call(J,I))this.raise(this.start,E.DuplicateModifier({modifier:I}));else A(S,I,"static","readonly"),A(S,I,"static","override"),A(S,I,"override","readonly"),A(S,I,"abstract","override"),D(S,I,"declare","override"),D(S,I,"static","abstract"),L[I]=I,J[I]=!0;if(z?.includes(I))this.raise(this.start,B)}return L}tsParseInOutModifiers(J){this.tsParseModifiers({modified:J,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:E.InvalidModifierOnTypeParameter})}parseMaybeUnary(J,X,z,j){if(!q?.jsx&&this.tsMatchLeftRelational())return this.tsParseTypeAssertion();else return super.parseMaybeUnary(J,X,z,j)}tsParseTypeAssertion(){if(Z)this.raise(this.start,E.ReservedTypeAssertion);let J=this.tryParse(()=>{let X=this.startNode(),z=this.tsTryNextParseConstantContext();return X.typeAnnotation=z||this.tsNextThenParseType(),this.expect(K.relational),X.expression=this.parseMaybeUnary(),this.finishNode(X,"TSTypeAssertion")});if(J.error)return this.tsParseTypeParameters(this.tsParseConstModifier);else return J.node}tsParseTypeArguments(){let J=this.startNode();if(J.params=this.tsInType(()=>this.tsInNoContext(()=>{return this.expect(K.relational),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),J.params.length===0)this.raise(this.start,E.EmptyTypeArguments);return this.exprAllowed=!1,this.expect(K.relational),this.finishNode(J,"TSTypeParameterInstantiation")}tsParseHeritageClause(J){let X=this.start,z=this.tsParseDelimitedList("HeritageClauseElement",()=>{let j=this.startNode();if(j.expression=this.tsParseEntityName(),this.tsMatchLeftRelational())j.typeParameters=this.tsParseTypeArguments();return this.finishNode(j,"TSExpressionWithTypeArguments")});if(!z.length)this.raise(X,E.EmptyHeritageClauseType({token:J}));return z}tsParseTypeMemberSemicolon(){if(!this.eat(K.comma)&&!this.isLineTerminator())this.expect(K.semi)}tsTryParseAndCatch(J){let X=this.tryParse((z)=>J()||z());if(X.aborted||!X.node)return;if(X.error)this.setLookaheadState(X.failState);return X.node}tsParseSignatureMember(J,X){return this.tsFillSignature(K.colon,X),this.tsParseTypeMemberSemicolon(),this.finishNode(X,J)}tsParsePropertyOrMethodSignature(J,X){if(this.eat(K.question))J.optional=!0;let z=J;if(this.match(K.parenL)||this.tsMatchLeftRelational()){if(X)this.raise(J.start,E.ReadonlyForMethodSignature);let j=z;if(j.kind&&this.tsMatchLeftRelational())this.raise(this.start,E.AccesorCannotHaveTypeParameters);this.tsFillSignature(K.colon,j),this.tsParseTypeMemberSemicolon();let B="parameters",L="typeAnnotation";if(j.kind==="get"){if(j[B].length>0){if(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(j[B][0]))this.raise(this.start,E.AccesorCannotDeclareThisParameter)}}else if(j.kind==="set"){if(j[B].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{let A=j[B][0];if(this.isThisParam(A))this.raise(this.start,E.AccesorCannotDeclareThisParameter);if(A.type==="Identifier"&&A.optional)this.raise(this.start,E.SetAccesorCannotHaveOptionalParameter);if(A.type==="RestElement")this.raise(this.start,E.SetAccesorCannotHaveRestParameter)}if(j[L])this.raise(j[L].start,E.SetAccesorCannotHaveReturnType)}else j.kind="method";return this.finishNode(j,"TSMethodSignature")}else{let j=z;if(X)j.readonly=!0;let B=this.tsTryParseTypeAnnotation();if(B)j.typeAnnotation=B;return this.tsParseTypeMemberSemicolon(),this.finishNode(j,"TSPropertySignature")}}tsParseTypeMember(){let J=this.startNode();if(this.match(K.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",J);if(this.match(K._new)){let z=this.startNode();if(this.next(),this.match(K.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSConstructSignatureDeclaration",J);else return J.key=this.createIdentifier(z,"new"),this.tsParsePropertyOrMethodSignature(J,!1)}this.tsParseModifiers({modified:J,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]});let X=this.tsTryParseIndexSignature(J);if(X)return X;if(this.parsePropertyName(J),!J.computed&&J.key.type==="Identifier"&&(J.key.name==="get"||J.key.name==="set")&&this.tsTokenCanFollowModifier())J.kind=J.key.name,this.parsePropertyName(J);return this.tsParsePropertyOrMethodSignature(J,!!J.readonly)}tsParseList(J,X){let z=[];while(!this.tsIsListTerminator(J))z.push(X());return z}tsParseObjectTypeMembers(){this.expect(K.braceL);let J=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(K.braceR),J}tsParseInterfaceDeclaration(J,X={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual("interface"),X.declare)J.declare=!0;if(f(this.type))J.id=this.parseIdent(),this.checkLValSimple(J.id,q8.BIND_TS_INTERFACE);else J.id=null,this.raise(this.start,E.MissingInterfaceName);if(J.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(K._extends))J.extends=this.tsParseHeritageClause("extends");let z=this.startNode();return z.body=this.tsParseInterfaceBody(),J.body=this.finishNode(z,"TSInterfaceBody"),this.finishNode(J,"TSInterfaceDeclaration")}tsParseInterfaceBody(){this.expect(K.braceL);let J=this.inType;this.inType=!0;let X=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.inType=J,this.expect(K.braceR),X}tsParseAbstractDeclaration(J){if(this.match(K._class))return J.abstract=!0,this.parseClass(J,!0);else if(this.ts_isContextual(F.interface)){if(!this.hasFollowingLineBreak())return J.abstract=!0,this.tsParseInterfaceDeclaration(J)}else this.unexpected(J.start)}tsIsDeclarationStart(){return g(this.type)}tsParseExpressionStatement(J,X){switch(X.name){case"declare":{let z=this.tsTryParseDeclare(J);if(z)return z.declare=!0,z;break}case"global":if(this.match(K.braceL)){this.enterScope(x1);let z=J;return z.global=!0,z.id=X,z.body=this.tsParseModuleBlock(),super.exitScope(),this.finishNode(z,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(J,X.name,!1)}}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsIsExportDefaultSpecifier(){let{type:J}=this,X=this.isAsyncFunction(),z=this.isLet();if(f(J)){if(X&&!this.containsEsc||z)return!1;if((J===F.type||J===F.interface)&&!this.containsEsc){let L=this.lookahead();if(f(L.type)&&!this.isContextualWithState("from",L)||L.type===K.braceL)return!1}}else if(!this.match(K._default))return!1;let j=this.nextTokenStart(),B=this.isUnparsedContextual(j,"from");if(this.input.charCodeAt(j)===44||f(this.type)&&B)return!0;if(this.match(K._default)&&B){let L=this.input.charCodeAt(this.nextTokenStartSince(j+4));return L===34||L===39}return!1}tsInAmbientContext(J){let X=this.isAmbientContext;this.isAmbientContext=!0;try{return J()}finally{this.isAmbientContext=X}}tsCheckLineTerminator(J){if(J){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsParseModuleOrNamespaceDeclaration(J,X=!1){if(J.id=this.parseIdent(),!X)this.checkLValSimple(J.id,q8.BIND_TS_NAMESPACE);if(this.eat(K.dot)){let z=this.startNode();this.tsParseModuleOrNamespaceDeclaration(z,!0),J.body=z}else this.enterScope(x1),J.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(J,"TSModuleDeclaration")}checkLValSimple(J,X=q8.BIND_NONE,z){if(J.type==="TSNonNullExpression"||J.type==="TSAsExpression")J=J.expression;return super.checkLValSimple(J,X,z)}tsParseTypeAliasDeclaration(J){return J.id=this.parseIdent(),this.checkLValSimple(J.id,q8.BIND_TS_TYPE),J.typeAnnotation=this.tsInType(()=>{if(J.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(K.eq),this.ts_isContextual(F.interface)&&this.lookahead().type!==K.dot){let X=this.startNode();return this.next(),this.finishNode(X,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(J,"TSTypeAliasDeclaration")}tsParseDeclaration(J,X,z){switch(X){case"abstract":if(this.tsCheckLineTerminator(z)&&(this.match(K._class)||f(this.type)))return this.tsParseAbstractDeclaration(J);break;case"module":if(this.tsCheckLineTerminator(z)){if(this.match(K.string))return this.tsParseAmbientExternalModuleDeclaration(J);else if(f(this.type))return this.tsParseModuleOrNamespaceDeclaration(J)}break;case"namespace":if(this.tsCheckLineTerminator(z)&&f(this.type))return this.tsParseModuleOrNamespaceDeclaration(J);break;case"type":if(this.tsCheckLineTerminator(z)&&f(this.type))return this.tsParseTypeAliasDeclaration(J);break}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.value,!0)}tsParseImportEqualsDeclaration(J,X){J.isExport=X||!1,J.id=this.parseIdent(),this.checkLValSimple(J.id,q8.BIND_LEXICAL),super.expect(K.eq);let z=this.tsParseModuleReference();if(J.importKind==="type"&&z.type!=="TSExternalModuleReference")this.raise(z.start,E.ImportAliasHasImportType);return J.moduleReference=z,super.semicolon(),this.finishNode(J,"TSImportEqualsDeclaration")}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;let{type:J}=this;if(f(J)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((J===F.type||J===F.interface)&&!this.containsEsc){let j=this.lookahead();if(f(j.type)&&!this.isContextualWithState("from",j)||j.type===K.braceL)return!1}}else if(!this.match(K._default))return!1;let X=this.nextTokenStart(),z=this.isUnparsedContextual(X,"from");if(this.input.charCodeAt(X)===44||f(this.type)&&z)return!0;if(this.match(K._default)&&z){let j=this.input.charCodeAt(this.nextTokenStartSince(X+4));return j===34||j===39}return!1}parseTemplate({isTagged:J=!1}={}){let X=this.startNode();this.next(),X.expressions=[];let z=this.parseTemplateElement({isTagged:J});X.quasis=[z];while(!z.tail){if(this.type===K.eof)this.raise(this.pos,"Unterminated template literal");this.expect(K.dollarBraceL),X.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(K.braceR),X.quasis.push(z=this.parseTemplateElement({isTagged:J}))}return this.next(),this.finishNode(X,"TemplateLiteral")}parseFunction(J,X,z,j,B){if(this.initFunction(J),this.ecmaVersion>=9||this.ecmaVersion>=6&&!j){if(this.type===K.star&&X&s2)this.unexpected();J.generator=this.eat(K.star)}if(this.ecmaVersion>=8)J.async=!!j;if(X&N0)J.id=X&bQ&&this.type!==K.name?null:this.parseIdent();let L=this.yieldPos,A=this.awaitPos,D=this.awaitIdentPos,S=this.maybeInArrowParameters;if(this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(i9(J.async,J.generator)),!(X&N0))J.id=this.type===K.name?this.parseIdent():null;this.parseFunctionParams(J);let I=X&N0;if(this.parseFunctionBody(J,z,!1,B,{isFunctionDeclaration:I}),this.yieldPos=L,this.awaitPos=A,this.awaitIdentPos=D,X&N0&&J.id&&!(X&s2))if(J.body)this.checkLValSimple(J.id,this.strict||J.generator||J.async?this.treatFunctionsAsVar?q8.BIND_VAR:q8.BIND_LEXICAL:q8.BIND_FUNCTION);else this.checkLValSimple(J.id,q8.BIND_NONE);return this.maybeInArrowParameters=S,this.finishNode(J,I?"FunctionDeclaration":"FunctionExpression")}parseFunctionBody(J,X=!1,z=!1,j=!1,B){if(this.match(K.colon))J.returnType=this.tsParseTypeOrTypePredicateAnnotation(K.colon);let L=B?.isFunctionDeclaration?"TSDeclareFunction":B?.isClassMethod?"TSDeclareMethod":void 0;if(L&&!this.match(K.braceL)&&this.isLineTerminator())return this.exitScope(),this.finishNode(J,L);if(L==="TSDeclareFunction"&&this.isAmbientContext){if(this.raise(J.start,E.DeclareFunctionHasImplementation),J.declare)return super.parseFunctionBody(J,X,z,!1),this.finishNode(J,L)}return super.parseFunctionBody(J,X,z,j),J}parseNew(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");let J=this.startNode(),X=this.parseIdent(!0);if(this.ecmaVersion>=6&&this.eat(K.dot)){J.meta=X;let A=this.containsEsc;if(J.property=this.parseIdent(!0),J.property.name!=="target")this.raiseRecoverable(J.property.start,"The only valid meta property for new is 'new.target'");if(A)this.raiseRecoverable(J.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(J.start,"'new.target' can only be used in functions and class static block");return this.finishNode(J,"MetaProperty")}let z=this.start,j=this.startLoc,B=this.type===K._import;if(J.callee=this.parseSubscripts(this.parseExprAtom(),z,j,!0,!1),B&&J.callee.type==="ImportExpression")this.raise(z,"Cannot use new with import()");let{callee:L}=J;if(L.type==="TSInstantiationExpression"&&!L.extra?.parenthesized)J.typeArguments=L.typeArguments,J.callee=L.expression;if(this.eat(K.parenL))J.arguments=this.parseExprList(K.parenR,this.ecmaVersion>=8,!1);else J.arguments=[];return this.finishNode(J,"NewExpression")}parseExprOp(J,X,z,j,B){if(K._in.binop>j&&!this.hasPrecedingLineBreak()){let L;if(this.isContextual("as"))L="TSAsExpression";if(this.isContextual("satisfies"))L="TSSatisfiesExpression";if(L){let A=this.startNodeAt(X,z);A.expression=J;let D=this.tsTryNextParseConstantContext();if(D)A.typeAnnotation=D;else A.typeAnnotation=this.tsNextThenParseType();return this.finishNode(A,L),this.reScan_lt_gt(),this.parseExprOp(A,X,z,j,B)}}return super.parseExprOp(J,X,z,j,B)}parseImportSpecifiers(){let J=[],X=!0;if(V.tokenIsIdentifier(this.type)){if(J.push(this.parseImportDefaultSpecifier()),!this.eat(K.comma))return J}if(this.type===K.star)return J.push(this.parseImportNamespaceSpecifier()),J;this.expect(K.braceL);while(!this.eat(K.braceR)){if(!X){if(this.expect(K.comma),this.afterTrailingComma(K.braceR))break}else X=!1;J.push(this.parseImportSpecifier())}return J}parseImport(J){let X=this.lookahead();if(J.importKind="value",this.importOrExportOuterKind="value",f(X.type)||this.match(K.star)||this.match(K.braceL)){let z=this.lookahead(2);if(z.type!==K.comma&&!this.isContextualWithState("from",z)&&z.type!==K.eq&&this.ts_eatContextualWithState("type",1,X))this.importOrExportOuterKind="type",J.importKind="type",X=this.lookahead(),z=this.lookahead(2);if(f(X.type)&&z.type===K.eq){this.next();let j=this.tsParseImportEqualsDeclaration(J);return this.importOrExportOuterKind="value",j}}if(this.next(),this.type===K.string)J.specifiers=[],J.source=this.parseExprAtom();else J.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),J.source=this.type===K.string?this.parseExprAtom():this.unexpected();if(this.parseMaybeImportAttributes(J),this.semicolon(),this.finishNode(J,"ImportDeclaration"),this.importOrExportOuterKind="value",J.importKind==="type"&&J.specifiers.length>1&&J.specifiers[0].type==="ImportDefaultSpecifier")this.raise(J.start,E.TypeImportCannotSpecifyDefaultAndNamed);return J}parseExportDefaultDeclaration(){if(this.isAbstractClass()){let J=this.startNode();return this.next(),J.abstract=!0,this.parseClass(J,!0)}if(this.match(F.interface)){let J=this.tsParseInterfaceDeclaration(this.startNode());if(J)return J}return super.parseExportDefaultDeclaration()}parseExportAllDeclaration(J,X){if(this.ecmaVersion>=11)if(this.eatContextual("as"))J.exported=this.parseModuleExportName(),this.checkExport(X,J.exported,this.lastTokStart);else J.exported=null;if(this.expectContextual("from"),this.type!==K.string)this.unexpected();return J.source=this.parseExprAtom(),this.parseMaybeImportAttributes(J),this.semicolon(),this.finishNode(J,"ExportAllDeclaration")}parseDynamicImport(J){if(this.next(),J.source=this.parseMaybeAssign(),this.eat(K.comma)){let X=this.parseExpression();J.arguments=[X]}if(!this.eat(K.parenR)){let X=this.start;if(this.eat(K.comma)&&this.eat(K.parenR))this.raiseRecoverable(X,"Trailing comma is not allowed in import()");else this.unexpected(X)}return this.finishNode(J,"ImportExpression")}parseExport(J,X){let z=this.lookahead();if(this.ts_eatWithState(K._import,2,z)){if(this.ts_isContextual(F.type)&&this.lookaheadCharCode()!==61)J.importKind="type",this.importOrExportOuterKind="type",this.next();else J.importKind="value",this.importOrExportOuterKind="value";let j=this.tsParseImportEqualsDeclaration(J,!0);return this.importOrExportOuterKind=void 0,j}else if(this.ts_eatWithState(K.eq,2,z)){let j=J;return j.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(j,"TSExportAssignment")}else if(this.ts_eatContextualWithState("as",2,z)){let j=J;return this.expectContextual("namespace"),j.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(j,"TSNamespaceExportDeclaration")}else{let j=this.lookahead(2).type;if(this.ts_isContextualWithState(z,F.type)&&(j===K.braceL||j===K.star))this.next(),this.importOrExportOuterKind="type",J.exportKind="type";else this.importOrExportOuterKind="value",J.exportKind="value";if(this.next(),this.eat(K.star))return this.parseExportAllDeclaration(J,X);if(this.eat(K._default))return this.checkExport(X,"default",this.lastTokStart),J.declaration=this.parseExportDefaultDeclaration(),this.finishNode(J,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(J.declaration=this.parseExportDeclaration(J),J.declaration.type==="VariableDeclaration")this.checkVariableExport(X,J.declaration.declarations);else this.checkExport(X,J.declaration.id,J.declaration.id.start);J.specifiers=[],J.source=null}else{if(J.declaration=null,J.specifiers=this.parseExportSpecifiers(X),this.eatContextual("from")){if(this.type!==K.string)this.unexpected();J.source=this.parseExprAtom(),this.parseMaybeImportAttributes(J)}else{for(let B of J.specifiers)if(this.checkUnreserved(B.local),this.checkLocalExport(B.local),B.local.type==="Literal")this.raise(B.local.start,"A string literal cannot be used as an exported binding without `from`.");J.source=null}this.semicolon()}return this.finishNode(J,"ExportNamedDeclaration")}}checkExport(J,X,z){if(!J)return;if(typeof X!=="string")X=X.type==="Identifier"?X.name:X.value;J[X]=!0}parseMaybeDefault(J,X,z){let j=super.parseMaybeDefault(J,X,z);if(j.type==="AssignmentPattern"&&j.typeAnnotation&&j.right.start<j.typeAnnotation.start)this.raise(j.typeAnnotation.start,E.TypeAnnotationAfterAssign);return j}typeCastToParameter(J){return J.expression.typeAnnotation=J.typeAnnotation,this.resetEndLocation(J.expression,J.typeAnnotation.end,J.typeAnnotation.loc?.end),J.expression}toAssignableList(J,X){if(!J)J=[];for(let z=0;z<J.length;z++){let j=J[z];if(j?.type==="TSTypeCastExpression")J[z]=this.typeCastToParameter(j)}return super.toAssignableList(J,X)}reportReservedArrowTypeParam(J){if(J.params.length===1&&!J.extra?.trailingComma&&Z)this.raise(J.start,E.ReservedArrowTypeParam)}parseExprAtom(J,X,z){if(this.type===F.jsxText)return this.jsx_parseText();else if(this.type===F.jsxTagStart)return this.jsx_parseElement();else if(this.type===F.at)return this.parseDecorators(),this.parseExprAtom();else if(f(this.type)){let j=this.potentialArrowAt===this.start,B=this.start,L=this.startLoc,A=this.containsEsc,D=this.parseIdent(!1);if(this.ecmaVersion>=8&&!A&&D.name==="async"&&!this.canInsertSemicolon()&&this.eat(K._function))return this.overrideContext($.f_expr),this.parseFunction(this.startNodeAt(B,L),0,!1,!0,X);if(j&&!this.canInsertSemicolon()){if(this.eat(K.arrow))return this.parseArrowExpression(this.startNodeAt(B,L),[D],!1,X);if(this.ecmaVersion>=8&&D.name==="async"&&this.type===K.name&&!A&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(D=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(K.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(B,L),[D],!0,X)}}return D}else return super.parseExprAtom(J,X,z)}parseExprAtomDefault(){if(f(this.type)){let J=this.potentialArrowAt===this.start,X=this.containsEsc,z=this.parseIdent();if(!X&&z.name==="async"&&!this.canInsertSemicolon()){let{type:j}=this;if(j===K._function)return this.next(),this.parseFunction(this.startNodeAtNode(z),void 0,!0,!0);else if(f(j))if(this.lookaheadCharCode()===61){let B=this.parseIdent(!1);if(this.canInsertSemicolon()||!this.eat(K.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAtNode(z),[B],!0)}else return z}if(J&&this.match(K.arrow)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(z),[z],!1);return z}else this.unexpected()}parseIdentNode(){let J=this.startNode();if(a(this.type)&&!((this.type.keyword==="class"||this.type.keyword==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)))J.name=this.value;else return super.parseIdentNode();return J}parseVarStatement(J,X,z=!1){let{isAmbientContext:j}=this;this.next(),super.parseVar(J,!1,X,z||j),this.semicolon();let B=this.finishNode(J,"VariableDeclaration");if(!j)return B;for(let{id:L,init:A}of B.declarations){if(!A)continue;if(X!=="const"||!!L.typeAnnotation)this.raise(A.start,E.InitializerNotAllowedInAmbientContext);else if(A.type!=="StringLiteral"&&A.type!=="BooleanLiteral"&&A.type!=="NumericLiteral"&&A.type!=="BigIntLiteral"&&(A.type!=="TemplateLiteral"||A.expressions.length>0)&&!kQ(A))this.raise(A.start,E.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference)}return B}parseStatement(J,X,z){if(this.match(F.at))this.parseDecorators(!0);if(this.match(K._const)&&this.isLookaheadContextual("enum")){let j=this.startNode();return this.expect(K._const),this.tsParseEnumDeclaration(j,{const:!0})}if(this.ts_isContextual(F.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(F.interface)){let j=this.tsParseInterfaceDeclaration(this.startNode());if(j)return j}return super.parseStatement(J,X,z)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parsePostMemberNameModifiers(J){if(this.eat(K.question))J.optional=!0;if(J.readonly&&this.match(K.parenL))this.raise(J.start,E.ClassMethodHasReadonly);if(J.declare&&this.match(K.parenL))this.raise(J.start,E.ClassMethodHasDeclare)}parseExpressionStatement(J,X){return(X.type==="Identifier"?this.tsParseExpressionStatement(J,X):void 0)||super.parseExpressionStatement(J,X)}shouldParseExportStatement(){if(this.tsIsDeclarationStart())return!0;if(this.match(F.at))return!0;return super.shouldParseExportStatement()}parseConditional(J,X,z,j,B){if(this.eat(K.question)){let L=this.startNodeAt(X,z);return L.test=J,L.consequent=this.parseMaybeAssign(),this.expect(K.colon),L.alternate=this.parseMaybeAssign(j),this.finishNode(L,"ConditionalExpression")}return J}parseMaybeConditional(J,X){let z=this.start,j=this.startLoc,B=this.parseExprOps(J,X);if(this.checkExpressionErrors(X))return B;if(!this.maybeInArrowParameters||!this.match(K.question))return this.parseConditional(B,z,j,J,X);let L=this.tryParse(()=>this.parseConditional(B,z,j,J,X));if(!L.node){if(L.error)this.setOptionalParametersError(X,L.error);return B}if(L.error)this.setLookaheadState(L.failState);return L.node}parseParenItem(J){let X=this.start,z=this.startLoc;if(J=super.parseParenItem(J),this.eat(K.question))J.optional=!0,this.resetEndLocation(J);if(this.match(K.colon)){let j=this.startNodeAt(X,z);return j.expression=J,j.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(j,"TSTypeCastExpression")}return J}parseExportDeclaration(J){if(!this.isAmbientContext&&this.ts_isContextual(F.declare))return this.tsInAmbientContext(()=>this.parseExportDeclaration(J));let X=this.start,z=this.startLoc,j=this.eatContextual("declare");if(j&&(this.ts_isContextual(F.declare)||!this.shouldParseExportStatement()))this.raise(this.start,E.ExpectedAmbientAfterExportDeclare);let L=f(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);if(!L)return null;if(L.type==="TSInterfaceDeclaration"||L.type==="TSTypeAliasDeclaration"||j)J.exportKind="type";if(j)this.resetStartLocation(L,X,z),L.declare=!0;return L}parseClassId(J,X){if(!X&&this.isContextual("implements"))return;super.parseClassId(J,X);let z=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));if(z)J.typeParameters=z}parseClassPropertyAnnotation(J){if(!J.optional){if(this.value==="!"&&this.eat(K.prefix))J.definite=!0;else if(this.eat(K.question))J.optional=!0}let X=this.tsTryParseTypeAnnotation();if(X)J.typeAnnotation=X}parseClassField(J){if(J.key.type==="PrivateIdentifier"){if(J.abstract)this.raise(J.start,E.PrivateElementHasAbstract);if(J.accessibility)this.raise(J.start,E.PrivateElementHasAccessibility({modifier:J.accessibility}));this.parseClassPropertyAnnotation(J)}else{if(this.parseClassPropertyAnnotation(J),this.isAmbientContext&&!(J.readonly&&!J.typeAnnotation)&&this.match(K.eq))this.raise(this.start,E.DeclareClassFieldHasInitializer);if(J.abstract&&this.match(K.eq)){let{key:z}=J;this.raise(this.start,E.AbstractPropertyHasInitializer({propertyName:z.type==="Identifier"&&!J.computed?z.name:`[${this.input.slice(z.start,z.end)}]`}))}}return super.parseClassField(J)}parseClassMethod(J,X,z,j){let B=J.kind==="constructor",L=J.key.type==="PrivateIdentifier",A=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(L){if(A)J.typeParameters=A;if(J.accessibility)this.raise(J.start,E.PrivateMethodsHasAccessibility({modifier:J.accessibility}))}else if(A&&B)this.raise(A.start,E.ConstructorHasTypeParameters);let{declare:D=!1,kind:S}=J;if(D&&(S==="get"||S==="set"))this.raise(J.start,E.DeclareAccessor({kind:S}));if(A)J.typeParameters=A;let I=J.key;if(J.kind==="constructor"){if(X)this.raise(I.start,"Constructor can't be a generator");if(z)this.raise(I.start,"Constructor can't be an async method")}else if(J.static&&o2(J,"prototype"))this.raise(I.start,"Classes may not have a static property named prototype");let h=J.value=this.parseMethod(X,z,j,!0,J);if(J.kind==="get"&&h.params.length!==0)this.raiseRecoverable(h.start,"getter should have no params");if(J.kind==="set"&&h.params.length!==1)this.raiseRecoverable(h.start,"setter should have exactly one param");if(J.kind==="set"&&h.params[0].type==="RestElement")this.raiseRecoverable(h.params[0].start,"Setter cannot use rest params");return this.finishNode(J,"MethodDefinition")}isClassMethod(){return this.match(K.relational)}parseClassElement(J){if(this.eat(K.semi))return null;let X=this.startNode(),z="",j=!1,B=!1,L="method",A=!1,D=["declare","private","public","protected","accessor","override","abstract","readonly","static"],S=this.tsParseModifiers({modified:X,allowedModifiers:D,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:E.InvalidModifierOnTypeParameterPositions});A=Boolean(S.static);let I=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(X,D))this.raise(this.start,E.StaticBlockCannotHaveModifier);if(this.ecmaVersion>=13)return super.parseClassStaticBlock(X),X}else{let h=this.tsTryParseIndexSignature(X);if(h){if(X.abstract)this.raise(X.start,E.IndexSignatureHasAbstract);if(X.accessibility)this.raise(X.start,E.IndexSignatureHasAccessibility({modifier:X.accessibility}));if(X.declare)this.raise(X.start,E.IndexSignatureHasDeclare);if(X.override)this.raise(X.start,E.IndexSignatureHasOverride);return h}if(!this.inAbstractClass&&X.abstract)this.raise(X.start,E.NonAbstractClassHasAbstractMethod);if(X.override){if(!J)this.raise(X.start,E.OverrideNotInSubClass)}if(X.static=A,A){if(!(this.isClassElementNameStart()||this.type===K.star))z="static"}if(!z&&this.ecmaVersion>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===K.star)&&!this.canInsertSemicolon())B=!0;else z="async";if(!z&&(this.ecmaVersion>=9||!B)&&this.eat(K.star))j=!0;if(!z&&!B&&!j){let c=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())L=c;else z=c}if(z)X.computed=!1,X.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),X.key.name=z,this.finishNode(X.key,"Identifier");else this.parseClassElementName(X);if(this.parsePostMemberNameModifiers(X),this.isClassMethod()||this.ecmaVersion<13||this.type===K.parenL||L!=="method"||j||B){let c=!X.static&&o2(X,"constructor"),m=c&&J;if(c&&L!=="method")this.raise(X.key.start,"Constructor can't have get/set modifier");X.kind=c?"constructor":L,this.parseClassMethod(X,j,B,m)}else this.parseClassField(X);return X}};if(X.declare)this.tsInAmbientContext(I);else I();return X}isClassElementNameStart(){if(this.tsIsIdentifier())return!0;return super.isClassElementNameStart()}parseClassSuper(J){if(super.parseClassSuper(J),J.superClass&&(this.tsMatchLeftRelational()||this.match(K.bitShift)))J.superTypeParameters=this.tsParseTypeArgumentsInExpression();if(this.eatContextual("implements"))J.implements=this.tsParseHeritageClause("implements")}parseFunctionParams(J){let X=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(X)J.typeParameters=X;super.parseFunctionParams(J)}parseVarId(J,X){if(super.parseVarId(J,X),J.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(K.prefix))J.definite=!0;let z=this.tsTryParseTypeAnnotation();if(z)J.id.typeAnnotation=z,this.resetEndLocation(J.id)}parseArrowExpression(J,X,z,j){if(this.match(K.colon))J.returnType=this.tsParseTypeAnnotation();let B=this.yieldPos,L=this.awaitPos,A=this.awaitIdentPos;this.enterScope(i9(z,!1)|q8.SCOPE_ARROW),this.initFunction(J);let D=this.maybeInArrowParameters;if(this.ecmaVersion>=8)J.async=!!z;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,J.params=this.toAssignableList(X,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(J,!0,!1,j),this.yieldPos=B,this.awaitPos=L,this.awaitIdentPos=A,this.maybeInArrowParameters=D,this.finishNode(J,"ArrowFunctionExpression")}parseMaybeAssignOrigin(J,X,z){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(J);else this.exprAllowed=!1;let j=!1,B=-1,L=-1,A=-1;if(X)B=X.parenthesizedAssign,L=X.trailingComma,A=X.doubleProto,X.parenthesizedAssign=X.trailingComma=-1;else X=new u1,j=!0;let D=this.start,S=this.startLoc;if(this.type===K.parenL||f(this.type))this.potentialArrowAt=this.start,this.potentialArrowInForAwait=J==="await";let I=this.parseMaybeConditional(J,X);if(z)I=z.call(this,I,D,S);if(this.type.isAssign){let h=this.startNodeAt(D,S);if(h.operator=this.value,this.type===K.eq)I=this.toAssignable(I,!0,X);if(!j)X.parenthesizedAssign=X.trailingComma=X.doubleProto=-1;if(X.shorthandAssign>=I.start)X.shorthandAssign=-1;if(!this.maybeInArrowParameters)if(this.type===K.eq)this.checkLValPattern(I);else this.checkLValSimple(I);if(h.left=I,this.next(),h.right=this.parseMaybeAssign(J),A>-1)X.doubleProto=A;return this.finishNode(h,"AssignmentExpression")}else if(j)this.checkExpressionErrors(X,!0);if(B>-1)X.parenthesizedAssign=B;if(L>-1)X.trailingComma=L;return I}parseMaybeAssign(J,X,z){let j,B,L;if(q?.jsx&&(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational())){if(j=this.cloneCurLookaheadState(),B=this.tryParse(()=>this.parseMaybeAssignOrigin(J,X,z),j),!B.error)return B.node;let S=this.context,I=S[S.length-1],h=S[S.length-2];if(I===V.tokContexts.tc_oTag&&h===V.tokContexts.tc_expr)S.pop(),S.pop();else if(I===V.tokContexts.tc_oTag||I===V.tokContexts.tc_expr)S.pop()}if(!B?.error&&!this.tsMatchLeftRelational())return this.parseMaybeAssignOrigin(J,X,z);if(!j||this.compareLookaheadState(j,this.getCurLookaheadState()))j=this.cloneCurLookaheadState();let A,D=this.tryParse((S)=>{A=this.tsParseTypeParameters(this.tsParseConstModifier);let I=this.parseMaybeAssignOrigin(J,X,z);if(I.type!=="ArrowFunctionExpression"||I.extra?.parenthesized)S();if(A?.params.length!==0)this.resetStartLocationFromNode(I,A);return I.typeParameters=A,I},j);if(!D.error&&!D.aborted){if(A)this.reportReservedArrowTypeParam(A);return D.node}if(!B){if(n2(!0),L=this.tryParse(()=>this.parseMaybeAssignOrigin(J,X,z),j),!L.error)return L.node}if(B?.node)return this.setLookaheadState(B.failState),B.node;if(D.node){if(this.setLookaheadState(D.failState),A)this.reportReservedArrowTypeParam(A);return D.node}if(L?.node)return this.setLookaheadState(L.failState),L.node;if(B?.thrown)throw B.error;if(D.thrown)throw D.error;if(L?.thrown)throw L.error;throw B?.error||D.error||L?.error}parseAssignableListItem(J){let X=[];while(this.match(F.at))X.push(this.parseDecorator());let z=this.start,j=this.startLoc,B,L=!1,A=!1;if(J!==void 0){let I={};if(this.tsParseModifiers({modified:I,allowedModifiers:["public","private","protected","override","readonly"]}),B=I.accessibility,A=I.override,L=I.readonly,J===!1&&(B||L||A))this.raise(j.column,E.UnexpectedParameterModifier)}let D=this.parseMaybeDefault(z,j);this.parseBindingListItem(D);let S=this.parseMaybeDefault(D.start,D.loc.start,D);if(X.length)S.decorators=X;if(B||L||A){let I=this.startNodeAt(z,j);if(B)I.accessibility=B;if(L)I.readonly=L;if(A)I.override=A;if(S.type!=="Identifier"&&S.type!=="AssignmentPattern")this.raise(I.start,E.UnsupportedParameterPropertyKind);return I.parameter=S,this.finishNode(I,"TSParameterProperty")}return S}checkLValInnerPattern(J,X=q8.BIND_NONE,z){switch(J.type){case"TSParameterProperty":this.checkLValInnerPattern(J.parameter,X,z);break;default:{super.checkLValInnerPattern(J,X,z);break}}}parseBindingListItem(J){if(this.eat(K.question)){if(J.type!=="Identifier"&&!this.isAmbientContext&&!this.inType)this.raise(J.start,E.PatternIsOptional);J.optional=!0}let X=this.tsTryParseTypeAnnotation();if(X)J.typeAnnotation=X;return this.resetEndLocation(J),J}isAssignable(J,X){switch(J.type){case"TSTypeCastExpression":return this.isAssignable(J.expression,X);case"TSParameterProperty":return!0;case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let z=J.properties.length-1;return J.properties.every((j,B)=>{return j.type!=="ObjectMethod"&&(B===z||j.type!=="SpreadElement")&&this.isAssignable(j)})}case"Property":case"ObjectProperty":return this.isAssignable(J.value);case"SpreadElement":return this.isAssignable(J.argument);case"ArrayExpression":return J.elements.every((z)=>z===null||this.isAssignable(z));case"AssignmentExpression":return J.operator==="=";case"ParenthesizedExpression":return this.isAssignable(J.expression);case"MemberExpression":case"OptionalMemberExpression":return!X;default:return!1}}toAssignable(J,X=!1,z=new u1){switch(J.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(J,X,z);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(X);else this.raise(J.start,E.UnexpectedTypeCastInParameter);return this.toAssignable(J.expression,X,z);case"MemberExpression":break;case"AssignmentExpression":if(!X&&J.left.type==="TSTypeCastExpression")J.left=this.typeCastToParameter(J.left);return super.toAssignable(J,X,z);case"TSTypeCastExpression":return this.typeCastToParameter(J);default:return super.toAssignable(J,X,z)}return J}toAssignableParenthesizedExpression(J,X,z){switch(J.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(J.expression,X,z);default:return super.toAssignable(J,X,z)}}parseBindingAtom(){switch(this.type){case K._this:return this.parseIdent(!0);default:return super.parseBindingAtom()}}shouldParseArrow(J){let X;if(this.match(K.colon))X=J.every((z)=>this.isAssignable(z,!0));else X=!this.canInsertSemicolon();if(X){if(this.match(K.colon)){let z=this.tryParse((j)=>{let B=this.tsParseTypeOrTypePredicateAnnotation(K.colon);if(this.canInsertSemicolon()||!this.match(K.arrow))j();return B});if(z.aborted)return this.shouldParseArrowReturnType=void 0,!1;if(!z.thrown){if(z.error)this.setLookaheadState(z.failState);this.shouldParseArrowReturnType=z.node}}if(!this.match(K.arrow))return this.shouldParseArrowReturnType=void 0,!1;return!0}return this.shouldParseArrowReturnType=void 0,X}parseParenArrowList(J,X,z,j){let B=this.startNodeAt(J,X);return B.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(B,z,!1,j)}parseParenAndDistinguishExpression(J,X){let z=this.start,j=this.startLoc,B,L=this.ecmaVersion>=8;if(this.ecmaVersion>=6){let A=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();let D=this.start,S=this.startLoc,I=[],h=!0,c=!1,m=new u1,n=this.yieldPos,H8=this.awaitPos,b;this.yieldPos=0,this.awaitPos=0;while(this.type!==K.parenR)if(h?h=!1:this.expect(K.comma),L&&this.afterTrailingComma(K.parenR,!0)){c=!0;break}else if(this.type===K.ellipsis){if(b=this.start,I.push(this.parseParenItem(this.parseRestBinding())),this.type===K.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else I.push(this.parseMaybeAssign(X,m,this.parseParenItem));let r=this.lastTokEnd,_=this.lastTokEndLoc;if(this.expect(K.parenR),this.maybeInArrowParameters=A,J&&this.shouldParseArrow(I)&&this.eat(K.arrow))return this.checkPatternErrors(m,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=n,this.awaitPos=H8,this.parseParenArrowList(z,j,I,X);if(!I.length||c)this.unexpected(this.lastTokStart);if(b)this.unexpected(b);if(this.checkExpressionErrors(m,!0),this.yieldPos=n||this.yieldPos,this.awaitPos=H8||this.awaitPos,I.length>1)B=this.startNodeAt(D,S),B.expressions=I,this.finishNodeAt(B,"SequenceExpression",r,_);else B=I[0]}else B=this.parseParenExpression();if(this.options.preserveParens){let A=this.startNodeAt(z,j);return A.expression=B,this.finishNode(A,"ParenthesizedExpression")}else return B}parseTaggedTemplateExpression(J,X,z,j){let B=this.startNodeAt(X,z);if(B.tag=J,B.quasi=this.parseTemplate({isTagged:!0}),j)this.raise(X,"Tagged Template Literals are not allowed in optionalChain.");return this.finishNode(B,"TaggedTemplateExpression")}shouldParseAsyncArrow(){if(this.match(K.colon)){let J=this.tryParse((X)=>{let z=this.tsParseTypeOrTypePredicateAnnotation(K.colon);if(this.canInsertSemicolon()||!this.match(K.arrow))X();return z});if(J.aborted)return this.shouldParseAsyncArrowReturnType=void 0,!1;if(!J.thrown){if(J.error)this.setLookaheadState(J.failState);return this.shouldParseAsyncArrowReturnType=J.node,!this.canInsertSemicolon()&&this.eat(K.arrow)}}else return!this.canInsertSemicolon()&&this.eat(K.arrow)}parseSubscriptAsyncArrow(J,X,z,j){let B=this.startNodeAt(J,X);return B.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(B,z,!0,j)}parseExprList(J,X,z,j){let B=[],L=!0;while(!this.eat(J)){if(!L){if(this.expect(K.comma),X&&this.afterTrailingComma(J))break}else L=!1;let A;if(z&&this.type===K.comma)A=null;else if(this.type===K.ellipsis){if(A=this.parseSpread(j),this.maybeInArrowParameters&&this.match(K.colon))A.typeAnnotation=this.tsParseTypeAnnotation();if(j&&this.type===K.comma&&j.trailingComma<0)j.trailingComma=this.start}else A=this.parseMaybeAssign(!1,j,this.parseParenItem);B.push(A)}return B}parseSubscript(J,X,z,j,B,L,A){let D=L;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(K.prefix)){this.exprAllowed=!1,this.next();let m=this.startNodeAt(X,z);return m.expression=J,J=this.finishNode(m,"TSNonNullExpression"),J}let S=!1;if(this.match(K.questionDot)&&this.lookaheadCharCode()===60){if(j)return J;J.optional=!0,D=S=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(K.bitShift)){let m,n=this.tsTryParseAndCatch(()=>{if(!j&&this.atPossibleAsyncArrow(J)){let _=this.tsTryParseGenericAsyncArrowFunction(X,z,A);if(_)return J=_,J}let H8=this.tsParseTypeArgumentsInExpression();if(!H8)return J;if(S&&!this.match(K.parenL))return m=this.curPosition(),J;if(v(this.type)||this.type===K.backQuote){let _=this.parseTaggedTemplateExpression(J,X,z,D);return _.typeArguments=H8,_}if(!j&&this.eat(K.parenL)){let _=new u1,s=this.startNodeAt(X,z);if(s.callee=J,s.arguments=this.parseExprList(K.parenR,this.ecmaVersion>=8,!1,_),this.tsCheckForInvalidTypeCasts(s.arguments),s.typeArguments=H8,D)s.optional=S;return this.checkExpressionErrors(_,!0),J=this.finishNode(s,"CallExpression"),J}let b=this.type;if(this.tsMatchRightRelational()||b===K.bitShift||b!==K.parenL&&EQ(b)&&!this.hasPrecedingLineBreak())return;let r=this.startNodeAt(X,z);return r.expression=J,r.typeArguments=H8,this.finishNode(r,"TSInstantiationExpression")});if(m)this.unexpected(m);if(n){if(n.type==="TSInstantiationExpression"&&(this.match(K.dot)||this.match(K.questionDot)&&this.lookaheadCharCode()!==40))this.raise(this.start,E.InvalidPropertyAccessAfterInstantiationExpression);return J=n,J}}let I=this.ecmaVersion>=11,h=I&&this.eat(K.questionDot);if(j&&h)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");let c=this.eat(K.bracketL);if(c||h&&this.type!==K.parenL&&this.type!==K.backQuote||this.eat(K.dot)){let m=this.startNodeAt(X,z);if(m.object=J,c)m.property=this.parseExpression(),this.expect(K.bracketR);else if(this.type===K.privateId&&J.type!=="Super")m.property=this.parsePrivateIdent();else m.property=this.parseIdent(this.options.allowReserved!=="never");if(m.computed=!!c,I)m.optional=h;J=this.finishNode(m,"MemberExpression")}else if(!j&&this.eat(K.parenL)){let m=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let n=new u1,H8=this.yieldPos,b=this.awaitPos,r=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;let _=this.parseExprList(K.parenR,this.ecmaVersion>=8,!1,n);if(B&&!h&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(n,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");this.yieldPos=H8,this.awaitPos=b,this.awaitIdentPos=r,J=this.parseSubscriptAsyncArrow(X,z,_,A)}else{this.checkExpressionErrors(n,!0),this.yieldPos=H8||this.yieldPos,this.awaitPos=b||this.awaitPos,this.awaitIdentPos=r||this.awaitIdentPos;let s=this.startNodeAt(X,z);if(s.callee=J,s.arguments=_,I)s.optional=h;J=this.finishNode(s,"CallExpression")}this.maybeInArrowParameters=m}else if(this.type===K.backQuote){if(h||D)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");let m=this.startNodeAt(X,z);m.tag=J,m.quasi=this.parseTemplate({isTagged:!0}),J=this.finishNode(m,"TaggedTemplateExpression")}return J}parseGetterSetter(J){J.kind=J.key.name,this.parsePropertyName(J);let X=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(J.value=this.parseMethod(!1),X)J.value.typeParameters=X;let z=J.kind==="get"?0:1,j=J.value.params[0];if(z=j&&this.isThisParam(j)?z+1:z,J.value.params.length!==z){let L=J.value.start;if(J.kind==="get")this.raiseRecoverable(L,"getter should have no params");else this.raiseRecoverable(L,"setter should have exactly one param")}else if(J.kind==="set"&&J.value.params[0].type==="RestElement")this.raiseRecoverable(J.value.params[0].start,"Setter cannot use rest params")}parsePropertyValue(J,X,z,j,B,L,A,D){if(this.tsMatchLeftRelational()){if(X)this.unexpected();J.kind="init",J.method=!0;let S=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(J.value=this.parseMethod(z,j),S)J.value.typeParameters=S;return}return super.parsePropertyValue(J,X,z,j,B,L,A,D)}parseProperty(J,X){if(!J){let z=[];if(this.match(F.at))while(this.match(F.at))z.push(this.parseDecorator());let j=super.parseProperty(J,X);if(j.type==="SpreadElement"){if(z.length)this.raise(j.start,T0.SpreadElementDecorator)}if(z.length)j.decorators=z,z=[];return j}return super.parseProperty(J,X)}parseCatchClauseParam(){let J=this.parseBindingAtom(),X=J.type==="Identifier";this.enterScope(X?q8.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(J,X?q8.BIND_SIMPLE_CATCH:q8.BIND_LEXICAL);let z=this.tsTryParseTypeAnnotation();if(z)J.typeAnnotation=z,this.resetEndLocation(J);return this.expect(K.parenR),J}parseClass(J,X){let z=this.inAbstractClass;this.inAbstractClass=!!J.abstract;try{this.next(),this.takeDecorators(J);let j=this.strict;this.strict=!0,this.parseClassId(J,X),this.parseClassSuper(J);let B=this.enterClassBody(),L=this.startNode(),A=!1;L.body=[];let D=[];this.expect(K.braceL);while(this.type!==K.braceR){if(this.match(F.at)){D.push(this.parseDecorator());continue}let S=this.parseClassElement(J.superClass!==null);if(D.length)S.decorators=D,this.resetStartLocationFromNode(S,D[0]),D=[];if(S){if(L.body.push(S),S.type==="MethodDefinition"&&S.kind==="constructor"&&S.value.type==="FunctionExpression"){if(A)this.raiseRecoverable(S.start,"Duplicate constructor in the same class");if(A=!0,S.decorators&&S.decorators.length>0)this.raise(S.start,T0.DecoratorConstructor)}else if(S.key&&S.key.type==="PrivateIdentifier"&&S.value?.type!=="TSDeclareMethod"&&CQ(B,S))this.raiseRecoverable(S.key.start,`Identifier '#${S.key.name}' has already been declared`)}}if(this.strict=j,this.next(),D.length)this.raise(this.start,T0.TrailingDecorator);return J.body=this.finishNode(L,"ClassBody"),this.exitClassBody(),this.finishNode(J,X?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=z}}parseClassFunctionParams(){let J=this.tsTryParseTypeParameters(),X=this.parseBindingList(K.parenR,!1,this.ecmaVersion>=8,!0);if(J)X.typeParameters=J;return X}parseMethod(J,X,z,j,B){let L=this.startNode(),A=this.yieldPos,D=this.awaitPos,S=this.awaitIdentPos;if(this.initFunction(L),this.ecmaVersion>=6)L.generator=J;if(this.ecmaVersion>=8)L.async=!!X;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(i9(X,L.generator)|q8.SCOPE_SUPER|(z?q8.SCOPE_DIRECT_SUPER:0)),this.expect(K.parenL),L.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(L,!1,!0,!1,{isClassMethod:j}),this.yieldPos=A,this.awaitPos=D,this.awaitIdentPos=S,B&&B.abstract){if(!!L.body){let{key:h}=B;this.raise(B.start,E.AbstractMethodHasImplementation({methodName:h.type==="Identifier"&&!B.computed?h.name:`[${this.input.slice(h.start,h.end)}]`}))}}return this.finishNode(L,"FunctionExpression")}static parse(J,X){if(X.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else X.locations=!0;let z=new this(X,J);if(Q)z.isAmbientContext=!0;return z.parse()}static parseExpressionAt(J,X,z){if(z.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else z.locations=!0;let j=new this(z,J,X);if(Q)j.isAmbientContext=!0;return j.nextToken(),j.parseExpression()}parseImportSpecifier(){if(this.ts_isContextual(F.type)){let X=this.startNode();return X.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(X,!0,this.importOrExportOuterKind==="type"),this.finishNode(X,"ImportSpecifier")}else{let X=super.parseImportSpecifier();return X.importKind="value",X}}parseExportSpecifier(J){let X=this.ts_isContextual(F.type);if(!this.match(K.string)&&X){let j=this.startNode();return j.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(j,!1,this.importOrExportOuterKind==="type"),this.finishNode(j,"ExportSpecifier"),this.checkExport(J,j.exported,j.exported.start),j}else{let j=super.parseExportSpecifier(J);return j.exportKind="value",j}}parseTypeOnlyImportExportSpecifier(J,X,z){let j=X?"imported":"local",B=X?"local":"exported",L=J[j],A,D=!1,S=!0,I=L.start;if(this.isContextual("as")){let c=this.parseIdent();if(this.isContextual("as")){let m=this.parseIdent();if(a(this.type))D=!0,L=c,A=X?this.parseIdent():this.parseModuleExportName(),S=!1;else A=m,S=!1}else if(a(this.type))S=!1,A=X?this.parseIdent():this.parseModuleExportName();else D=!0,L=c}else if(a(this.type))if(D=!0,X){if(L=super.parseIdent(!0),!this.isContextual("as"))this.checkUnreserved(L)}else L=this.parseModuleExportName();if(D&&z)this.raise(I,X?E.TypeModifierIsUsedInTypeImports:E.TypeModifierIsUsedInTypeExports);J[j]=L,J[B]=A;let h=X?"importKind":"exportKind";if(J[h]=D?"type":"value",S&&this.eatContextual("as"))J[B]=X?this.parseIdent():this.parseModuleExportName();if(!J[B])J[B]=this.copyNode(J[j]);if(X)this.checkLValSimple(J[B],q8.BIND_LEXICAL)}raiseCommonCheck(J,X,z){switch(X){case"Comma is not permitted after the rest element":if(this.isAmbientContext&&this.match(K.comma)&&this.lookaheadCharCode()===41){this.next();return}else return super.raise(J,X)}return z?super.raiseRecoverable(J,X):super.raise(J,X)}raiseRecoverable(J,X){return this.raiseCommonCheck(J,X,!0)}raise(J,X){return this.raiseCommonCheck(J,X,!0)}updateContext(J){let{type:X}=this;if(X==K.braceL){var z=this.curContext();if(z==P.tc_oTag)this.context.push($.b_expr);else if(z==P.tc_expr)this.context.push($.b_tmpl);else super.updateContext(J);this.exprAllowed=!0}else if(X===K.slash&&J===F.jsxTagStart)this.context.length-=2,this.context.push(P.tc_cTag),this.exprAllowed=!1;else return super.updateContext(J)}jsx_parseOpeningElementAt(J,X){let z=this.startNodeAt(J,X),j=this.jsx_parseElementName();if(j)z.name=j;if(this.match(K.relational)||this.match(K.bitShift)){let B=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(B)z.typeArguments=B}z.attributes=[];while(this.type!==K.slash&&this.type!==F.jsxTagEnd)z.attributes.push(this.jsx_parseAttribute());return z.selfClosing=this.eat(K.slash),this.expect(F.jsxTagEnd),this.finishNode(z,j?"JSXOpeningElement":"JSXOpeningFragment")}enterScope(J){if(J===x1)this.importsStack.push([]);super.enterScope(J);let X=super.currentScope();X.types=[],X.enums=[],X.constEnums=[],X.classes=[],X.exportOnlyBindings=[]}exitScope(){if(super.currentScope().flags===x1)this.importsStack.pop();super.exitScope()}hasImport(J,X){let z=this.importsStack.length;if(this.importsStack[z-1].indexOf(J)>-1)return!0;if(!X&&z>1){for(let j=0;j<z-1;j++)if(this.importsStack[j].indexOf(J)>-1)return!0}return!1}maybeExportDefined(J,X){if(this.inModule&&J.flags&q8.SCOPE_TOP)delete this.undefinedExports[X]}declareName(J,X,z){if(X&q8.BIND_FLAGS_TS_IMPORT){if(this.hasImport(J,!0))this.raise(z,`Identifier '${J}' has already been declared.`);this.importsStack[this.importsStack.length-1].push(J);return}let j=this.currentScope();if(X&q8.BIND_FLAGS_TS_EXPORT_ONLY){this.maybeExportDefined(j,J),j.exportOnlyBindings.push(J);return}if(X===q8.BIND_TS_TYPE||X===q8.BIND_TS_INTERFACE){if(X===q8.BIND_TS_TYPE&&j.types.includes(J))this.raise(z,`type '${J}' has already been declared.`);j.types.push(J)}else super.declareName(J,X,z);if(X&q8.BIND_FLAGS_TS_ENUM)j.enums.push(J);if(X&q8.BIND_FLAGS_TS_CONST_ENUM)j.constEnums.push(J);if(X&q8.BIND_FLAGS_CLASS)j.classes.push(J)}checkLocalExport(J){let{name:X}=J;if(this.hasImport(X))return;let z=this.scopeStack.length;for(let j=z-1;j>=0;j--){let B=this.scopeStack[j];if(B.types.indexOf(X)>-1||B.exportOnlyBindings.indexOf(X)>-1)return}super.checkLocalExport(J)}}return C}}class J5 extends Error{message="";#q;constructor(q,Q,Z){super(Q);this.stack="",this.#q=new b1(q,Q,Z),Object.assign(this,this.#q),this.name="CompileError"}toString(){return this.#q.toString()}toJSON(){return this.#q.toJSON()}}function y(q,Q,Z){let Y=typeof q==="number"?q:q?.start,H=typeof q==="number"?q:q?.end;throw new J5(Q,Z,Y!==void 0?[Y,H??Y]:void 0)}function K5(q){y(q,"css_empty_declaration",`Declaration cannot be empty
37
+ https://svelte.dev/e/css_empty_declaration`)}function p9(q){y(q,"css_expected_identifier",`Expected a valid CSS identifier
38
+ https://svelte.dev/e/css_expected_identifier`)}function V5(q){y(q,"css_selector_invalid",`Invalid selector
39
+ https://svelte.dev/e/css_selector_invalid`)}function X5(q){y(q,"attribute_duplicate",`Attributes need to be unique
40
+ https://svelte.dev/e/attribute_duplicate`)}function W5(q){y(q,"attribute_empty_shorthand",`Attribute shorthand cannot be empty
41
+ https://svelte.dev/e/attribute_empty_shorthand`)}function o9(q,Q){y(q,"block_duplicate_clause",`${Q} cannot appear more than once within a block
42
+ https://svelte.dev/e/block_duplicate_clause`)}function G5(q){y(q,"block_invalid_continuation_placement",`{:...} block is invalid at this position (did you forget to close the preceding element or block?)
43
+ https://svelte.dev/e/block_invalid_continuation_placement`)}function z5(q){y(q,"block_invalid_elseif",`'elseif' should be 'else if'
44
+ https://svelte.dev/e/block_invalid_elseif`)}function j5(q,Q,Z){y(q,"block_invalid_placement",`{#${Q} ...} block cannot be ${Z}
45
+ https://svelte.dev/e/block_invalid_placement`)}function O5(q){y(q,"block_unclosed",`Block was left open
46
+ https://svelte.dev/e/block_unclosed`)}function n9(q){y(q,"block_unexpected_close",`Unexpected block closing tag
47
+ https://svelte.dev/e/block_unexpected_close`)}function U5(q){y(q,"const_tag_invalid_expression",`{@const ...} must consist of a single variable declaration
48
+ https://svelte.dev/e/const_tag_invalid_expression`)}function R5(q){y(q,"debug_tag_invalid_arguments",`{@debug ...} arguments must be identifiers, not arbitrary expressions
49
+ https://svelte.dev/e/debug_tag_invalid_arguments`)}function k0(q){y(q,"declaration_tag_invalid_type","Declaration tags must be `let` or `const` declarations\nhttps://svelte.dev/e/declaration_tag_invalid_type")}function B5(q){y(q,"directive_invalid_value",`Directive value must be a JavaScript expression enclosed in curly braces
50
+ https://svelte.dev/e/directive_invalid_value`)}function F5(q,Q){y(q,"directive_missing_name",`\`${Q}\` name cannot be empty
51
+ https://svelte.dev/e/directive_missing_name`)}function M5(q,Q){y(q,"element_invalid_closing_tag",`\`</${Q}>\` attempted to close an element that was not open
52
+ https://svelte.dev/e/element_invalid_closing_tag`)}function $5(q,Q,Z){y(q,"element_invalid_closing_tag_autoclosed",`\`</${Q}>\` attempted to close element that was already automatically closed by \`<${Z}>\` (cannot nest \`<${Z}>\` inside \`<${Q}>\`)
53
+ https://svelte.dev/e/element_invalid_closing_tag_autoclosed`)}function E0(q,Q){y(q,"element_unclosed",`\`<${Q}>\` was left open
54
+ https://svelte.dev/e/element_unclosed`)}function s9(q){y(q,"expected_attribute_value",`Expected attribute value
55
+ https://svelte.dev/e/expected_attribute_value`)}function L5(q){y(q,"expected_block_type",`Expected 'if', 'each', 'await', 'key' or 'snippet'
56
+ https://svelte.dev/e/expected_block_type`)}function a9(q){y(q,"expected_identifier",`Expected an identifier
57
+ https://svelte.dev/e/expected_identifier`)}function C5(q){y(q,"expected_pattern",`Expected identifier or destructure pattern
58
+ https://svelte.dev/e/expected_pattern`)}function A5(q){y(q,"expected_tag",`Expected 'html', 'render', 'attach', 'const', or 'debug'
59
+ https://svelte.dev/e/expected_tag`)}function v8(q,Q){y(q,"expected_token",`Expected token ${Q}
60
+ https://svelte.dev/e/expected_token`)}function w5(q){y(q,"expected_whitespace",`Expected whitespace
61
+ https://svelte.dev/e/expected_whitespace`)}function I5(q,Q){y(q,"js_parse_error",`${Q}
62
+ https://svelte.dev/e/js_parse_error`)}function P5(q){y(q,"render_tag_invalid_expression","`{@render ...}` tags can only contain call expressions\nhttps://svelte.dev/e/render_tag_invalid_expression")}function r9(q){y(q,"script_duplicate","A component can have a single top-level `<script>` element and/or a single top-level `<script module>` element\nhttps://svelte.dev/e/script_duplicate")}function S5(q,Q){y(q,"script_invalid_attribute_value",`If the \`${Q}\` attribute is supplied, it must be a boolean attribute
63
+ https://svelte.dev/e/script_invalid_attribute_value`)}function t9(q){y(q,"script_invalid_context",`If the context attribute is supplied, its value must be "module"
64
+ https://svelte.dev/e/script_invalid_context`)}function D5(q,Q){y(q,"script_reserved_attribute",`The \`${Q}\` attribute is reserved and cannot be used
65
+ https://svelte.dev/e/script_reserved_attribute`)}function N5(q){y(q,"style_duplicate","A component can have a single top-level `<style>` element\nhttps://svelte.dev/e/style_duplicate")}function T5(q){y(q,"svelte_component_invalid_this","Invalid component definition — must be an `{expression}`\nhttps://svelte.dev/e/svelte_component_invalid_this")}function b5(q){y(q,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute\nhttps://svelte.dev/e/svelte_component_missing_this")}function e9(q){y(q,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value\nhttps://svelte.dev/e/svelte_element_missing_this")}function k5(q,Q){y(q,"svelte_meta_duplicate",`A component can only have one \`<${Q}>\` element
66
+ https://svelte.dev/e/svelte_meta_duplicate`)}function E5(q,Q){y(q,"svelte_meta_invalid_content",`<${Q}> cannot have children
67
+ https://svelte.dev/e/svelte_meta_invalid_content`)}function v5(q,Q){y(q,"svelte_meta_invalid_placement",`\`<${Q}>\` tags cannot be inside elements or blocks
68
+ https://svelte.dev/e/svelte_meta_invalid_placement`)}function h5(q,Q){y(q,"svelte_meta_invalid_tag",`Valid \`<svelte:...>\` tag names are ${Q}
69
+ https://svelte.dev/e/svelte_meta_invalid_tag`)}function f5(q){y(q,"svelte_options_deprecated_tag",`"tag" option is deprecated use "customElement" instead
70
+ https://svelte.dev/e/svelte_options_deprecated_tag`)}function y5(q){y(q,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes\nhttps://svelte.dev/e/svelte_options_invalid_attribute")}function v0(q,Q){y(q,"svelte_options_invalid_attribute_value",`Value must be ${Q}, if specified
71
+ https://svelte.dev/e/svelte_options_invalid_attribute_value`)}function h0(q){y(q,"svelte_options_invalid_customelement",'"customElement" must be a string literal defining a valid custom element name or an object of the form { tag?: string; shadow?: "open" | "none" | `ShadowRootInit`; props?: { [key: string]: { attribute?: string; reflect?: boolean; type: .. } } }\nhttps://svelte.dev/e/svelte_options_invalid_customelement')}function Y1(q){y(q,"svelte_options_invalid_customelement_props",`"props" must be a statically analyzable object literal of the form "{ [key: string]: { attribute?: string; reflect?: boolean; type?: "String" | "Boolean" | "Number" | "Array" | "Object" }"
72
+ https://svelte.dev/e/svelte_options_invalid_customelement_props`)}function g5(q){y(q,"svelte_options_invalid_customelement_shadow",'"shadow" must be either "open", "none" or `ShadowRootInit` object.\nhttps://svelte.dev/e/svelte_options_invalid_customelement_shadow')}function q6(q){y(q,"svelte_options_invalid_tagname",`Tag name must be lowercase and hyphenated
73
+ https://svelte.dev/e/svelte_options_invalid_tagname`)}function _5(q){y(q,"svelte_options_reserved_tagname",`Tag name is reserved
74
+ https://svelte.dev/e/svelte_options_reserved_tagname`)}function x5(q,Q){y(q,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${Q}'
75
+ https://svelte.dev/e/svelte_options_unknown_attribute`)}function u5(q){y(q,"tag_invalid_name",`Expected a valid element or component name. Components must have a valid variable name or dot notation expression
76
+ https://svelte.dev/e/tag_invalid_name`)}function m5(q,Q,Z){y(q,"tag_invalid_placement",`{@${Q} ...} tag cannot be ${Z}
77
+ https://svelte.dev/e/tag_invalid_placement`)}function L8(q){y(q,"unexpected_eof",`Unexpected end of input
78
+ https://svelte.dev/e/unexpected_eof`)}function l5(q,Q){y(q,"unexpected_reserved_word",`'${Q}' is a reserved word in JavaScript and cannot be used here
79
+ https://svelte.dev/e/unexpected_reserved_word`)}function c5(q){y(q,"unterminated_string_constant",`Unterminated string constant
80
+ https://svelte.dev/e/unterminated_string_constant`)}function i5(q){y(q,"void_element_invalid_content",`Void elements cannot have children or closing tags
81
+ https://svelte.dev/e/void_element_invalid_content`)}var f0=Y8,Q6=f0.extend(H5());function d5(q,Q,Z,Y){let H=Z?Q6:f0,{onComment:V,add_comments:K}=Y6(q,Q),W=H.prototype.parseStatement;if(Y)H.prototype.parseStatement=function(...G){let R=W.call(this,...G);return this.undefinedExports={},R};try{let G=H.parse(q,{onComment:V,sourceType:"module",ecmaVersion:16,locations:!0});return K(G),G}catch(G){return Z6(G)}finally{if(Y)H.prototype.parseStatement=W}}function H1(q,Q,Z){let Y=q.ts?Q6:f0,{onComment:H,add_comments:V}=Y6(Q,q.root.comments,Z);try{let K=Y.parseExpressionAt(Q,Z,{onComment:H,sourceType:"module",ecmaVersion:16,locations:!0,preserveParens:!0});return V(K),K}catch(K){Z6(K)}}function p5(q,Q,Z){let Y=q.ts?Q6:f0,{onComment:H,add_comments:V}=Y6(Q,q.root.comments,Z);try{let K=new Y({onComment:H,sourceType:"module",ecmaVersion:16,locations:!0},Q,Z);K.nextToken();let W=K.parseStatement(null,!0,Object.create(null));return V(W),W}catch(K){if(K.pos===Q.length)L8(Q.length);Z6(K)}}var fQ=/ \(\d+:\d+\)$/;function Z6(q){I5(q.pos,q.message.replace(fQ,""))}function L1(q){return n8(q,null,{ParenthesizedExpression(Q,Z){return Z.visit(Q.expression)}})}function Y6(q,Q,Z=0){return{onComment:(Y,H,V,K,W,G)=>{if(Y&&/\n/.test(H)){let R=V;while(R>0&&q[R-1]!==`
82
+ `)R-=1;let O=R;while(/[ \t]/.test(q[O]))O+=1;let $=q.slice(R,O);H=H.replace(new RegExp(`^${$}`,"gm"),"")}Q.push({type:Y?"Block":"Line",value:H,start:V,end:K,loc:{start:W,end:G}})},add_comments(Y){if(Q.length===0)return;if(Q=Q.filter((H)=>H.start>=Z).map(({type:H,value:V,start:K,end:W})=>({type:H,value:V,start:K,end:W})),n8(Y,null,{_(H,{next:V,path:K}){let W;while(Q[0]&&Q[0].start<H.start)W=Q.shift(),(H.leadingComments||=[]).push(W);if(V(),Q[0]){let G=K.at(-1);if(G===void 0||H.end!==G.end){let R=q.slice(H.end,Q[0].start);if((G?.type==="BlockStatement"||G?.type==="Program")&&G.body.indexOf(H)===G.body.length-1||G?.type==="ArrayExpression"&&G.elements.indexOf(H)===G.elements.length-1||G?.type==="ObjectExpression"&&G.properties.indexOf(H)===G.properties.length-1){let $=H.end;while(Q.length){let M=Q[0];if(G&&M.start>=G.end)break;(H.trailingComments||=[]).push(M),Q.shift(),$=M.end}}else if(H.end<=Q[0].start&&/^[,) \t]*$/.test(R))H.trailingComments=[Q.shift()]}}}}),Q.length>0&&(Q[0].start>=Y.end||Y.type==="Program"))(Y.trailingComments||=[]).push(...Q.splice(0))}}}function H6(q){if(q<0)return 1/0;return q}function gQ(q,Q,Z){let Y;if(Z==="`")Y=q;else Y=q.slice(0,H6(q.indexOf(`
83
+ `,Q)));return J6(Y,Q,Z)}function _Q(q,Q){let Z=J6(q,Q,"/"),Y=J6(q,Q,`
84
+ `);return Z<Y?Z:1/0}function J6(q,Q,Z){let Y=Q;while(!0){let H=q.indexOf(Z,Y);if(H===-1)return 1/0;if(xQ(q,H-1)%2===0)return H;Y=H+1}}function xQ(q,Q){let Z=Q,Y=0;while(q[Z]==="\\")Y++,Z--;return Y}function g0(q,Q,Z){let Y=y0[Z],H=1,V=Q;while(H>0&&V<q.length){let K=q[V];switch(K){case"'":case'"':case"`":V=gQ(q,V+1,K)+1;continue;case"/":{let W=q[V+1];if(!W){V++;continue}if(W==="/"){V=H6(q.indexOf(`
85
+ `,V+1))+1;continue}if(W==="*"){V=H6(q.indexOf("*/",V+1))+2;continue}let G=_Q(q,V+1)+1;if(G===1/0)V++;else V=G;continue}default:{let W=q[V];if(W===Z)H++;else if(W===Y)H--;if(H===0)return V;V++}}}return}var y0={"{":"}","(":")","[":"]"},uQ=new Set(Object.values(y0));function l1(q,Q,Z=y0){let Y=Z===y0?uQ:new Set(Object.values(Z)),H=[],V=Q;while(V<q.template.length){let K=q.template[V++];if(K==="'"||K==='"'||K==="`"){V=mQ(q,V,K);continue}if(K in Z)H.push(K);else if(Y.has(K)){let W=H.pop(),G=Z[W];if(K!==G)v8(V-1,G);if(H.length===0)return V}}L8(q.template.length)}function mQ(q,Q,Z){let Y=!1,H=Q;while(H<q.template.length){let V=q.template[H++];if(Y){Y=!1;continue}if(V===Z)return H;if(V==="\\")Y=!0;if(Z==="`"&&V==="$"&&q.template[H]==="{")H=l1(q,H)}c5(Q)}function K6(q,Q){let Z=g0(q.template,q.index,Q??"{");if(Z){let Y=q.index;return q.index=Z,{type:"Identifier",start:Y,end:Z,name:""}}}function j8(q,Q,Z){try{let Y=H1(q,q.template,q.index),H=Y.end,V=q.root.comments.at(-1);if(V&&V.end>H)H=V.end;return q.index=H,L1(Y)}catch(Y){if(q.loose&&!Z){let H=K6(q,Q);if(H)return H}throw Y}}function V6(q=[]){return{type:"ArrayExpression",elements:q}}function lQ(q,Q){return{type:"UnaryExpression",argument:Q,operator:q,prefix:!0}}var BV=lQ("void",c1(0));function c1(q){return{type:"Literal",value:q}}var cQ=c1(!0),FV=c1(!1),MV=c1(null);function o5(q){return Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="Text"}function W6(q){return q.value!==!0&&!Array.isArray(q.value)||Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="ExpressionTag"}function G6(q){return Array.isArray(q.value)?q.value[0].expression:q.value.expression}var iQ=/<\/script\s*>/,dQ=/<\/script\s*>/y,pQ=["server","client","worker","test","default"],oQ=["context","generics","lang","module"];function n5(q,Q,Z){let Y=q.index,H=q.read_until(iQ);if(q.index>=q.template.length)E0(q.template.length,"script");let V=q.template.slice(0,Y).replace(G0," ")+H;q.read(dQ);let K=d5(V,q.root.comments,q.ts,!0);if(K.start=Y,K.loc)({line:K.loc.start.line,column:K.loc.start.column}=z8(Q)),{line:K.loc.end.line,column:K.loc.end.column}=z8(q.index);let W="default";for(let G of Z){if(pQ.includes(G.name))D5(G,G.name);if(!oQ.includes(G.name))q2(G);if(G.name==="module"){if(G.value!==!0)S5(G,G.name);W="module"}if(G.name==="context"){if(G.value===!0||!o5(G))t9(G);if(G.value[0].data!=="module")t9(G);W="module"}}return{type:"Script",start:Q,end:q.index,context:W,content:K,attributes:Z}}var nQ=/[~^$*|]?=/y,sQ=/[\s\]]/,aQ=/[a-zA-Z]+/y,r5=/(\+|~|>|\|\|)/y,s5=/\d+(\.\d+)?%/y,a5=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/y,rQ=/[\s:]/,tQ=/-?\d/y,eQ=/[a-zA-Z0-9_-]/,qZ=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y,QZ=/\*\//,ZZ=/-->/;function j6(q,Q,Z){let Y=q.index,H=YZ(q,(K)=>K.match("</style")||K.index>=K.template.length),V=q.index;return q.eat("</style",!0),q.read(/\s*>/y),{type:"StyleSheet",start:Q,end:q.index,attributes:Z,children:H,content:{start:Y,end:V,styles:q.template.slice(Y,V),comment:null}}}function YZ(q,Q){let Z=[];while(C1(q),!Q(q))if(q.match("@"))Z.push(t5(q));else Z.push(e5(q));return Z}function t5(q){let Q=q.index;q.eat("@",!0);let Z=t8(q),Y=O6(q),H=null;if(q.match("{"))H=q4(q);else q.eat(";",!0);return{type:"Atrule",start:Q,end:q.index,name:Z,prelude:Y,block:H}}function e5(q){let Q=q.index;return{type:"Rule",prelude:z6(q),block:q4(q),start:Q,end:q.index,metadata:{parent_rule:null,has_local_selectors:!1,has_global_selectors:!1,is_global_block:!1}}}function z6(q,Q=!1){let Z=[];C1(q);let Y=q.index;while(q.index<q.template.length){Z.push(HZ(q,Q));let H=q.index;if(C1(q),Q?q.match(")"):q.match("{"))return{type:"SelectorList",start:Y,end:H,children:Z};else q.eat(",",!0),C1(q)}L8(q.template.length)}function HZ(q,Q=!1){let Z=q.index,Y=[];function H(K,W){return{type:"RelativeSelector",combinator:K,selectors:[],start:W,end:-1,metadata:{is_global:!1,is_global_like:!1,scoped:!1}}}let V=H(null,q.index);while(q.index<q.template.length){let K=q.index;if(q.eat("&"))V.selectors.push({type:"NestingSelector",name:"&",start:K,end:q.index});else if(q.eat("*")){let R="*";if(q.eat("|"))R=t8(q);V.selectors.push({type:"TypeSelector",name:R,start:K,end:q.index})}else if(q.eat("#"))V.selectors.push({type:"IdSelector",name:t8(q),start:K,end:q.index});else if(q.eat("."))V.selectors.push({type:"ClassSelector",name:t8(q),start:K,end:q.index});else if(q.eat("::")){if(V.selectors.push({type:"PseudoElementSelector",name:t8(q),start:K,end:q.index}),q.eat("("))z6(q,!0),q.eat(")",!0)}else if(q.eat(":")){let R=t8(q),O=null;if(q.eat("("))O=z6(q,!0),q.eat(")",!0);V.selectors.push({type:"PseudoClassSelector",name:R,args:O,start:K,end:q.index})}else if(q.eat("[")){q.allow_whitespace();let R=t8(q);q.allow_whitespace();let O=null,$=q.read(nQ);if($)q.allow_whitespace(),O=XZ(q);q.allow_whitespace();let M=q.read(aQ);q.allow_whitespace(),q.eat("]",!0),V.selectors.push({type:"AttributeSelector",start:K,end:q.index,name:R,matcher:$,value:O,flags:M})}else if(Q&&q.match_regex(a5))V.selectors.push({type:"Nth",value:q.read(a5),start:K,end:q.index});else if(q.match_regex(s5))V.selectors.push({type:"Percentage",value:q.read(s5),start:K,end:q.index});else if(!q.match_regex(r5)){let R=t8(q);if(q.eat("|"))R=t8(q);V.selectors.push({type:"TypeSelector",name:R,start:K,end:q.index})}let W=q.index;if(C1(q),q.match(",")||(Q?q.match(")"):q.match("{")))return q.index=W,V.end=W,Y.push(V),{type:"ComplexSelector",start:Z,end:W,children:Y,metadata:{rule:null,is_global:!1,used:!1}};q.index=W;let G=JZ(q);if(G){if(V.selectors.length>0)V.end=W,Y.push(V);if(V=H(G,G.start),q.allow_whitespace(),q.match(",")||(Q?q.match(")"):q.match("{")))V5(q.index)}}L8(q.template.length)}function JZ(q){let Q=q.index;q.allow_whitespace();let Z=q.index,Y=q.read(r5);if(Y){let H=q.index;return q.allow_whitespace(),{type:"Combinator",name:Y,start:Z,end:H}}if(q.index!==Q)return{type:"Combinator",name:" ",start:Q,end:q.index};return null}function q4(q){let Q=q.index;q.eat("{",!0);let Z=[];while(q.index<q.template.length)if(C1(q),q.match("}"))break;else Z.push(KZ(q));return q.eat("}",!0),{type:"Block",start:Q,end:q.index,children:Z}}function KZ(q){if(q.match("@"))return t5(q);let Q=q.index;O6(q);let Z=q.template[q.index];return q.index=Q,Z==="{"?e5(q):VZ(q)}function VZ(q){let Q=q.index,Z=q.read_until(rQ);q.allow_whitespace(),q.eat(":");let Y=q.index;q.allow_whitespace();let H=O6(q);if(!H&&!Z.startsWith("--"))K5({start:Q,end:Y});let V=q.index;if(!q.match("}"))q.eat(";",!0);return{type:"Declaration",start:Q,end:V,property:Z,value:H}}function O6(q){let Q="",Z=!1,Y=!1,H=null;while(q.index<q.template.length){let V=q.template[q.index];if(Z){Q+="\\"+V,Z=!1,q.index++;continue}else if(V==="\\"){Z=!0,q.index++;continue}else if(V===H)H=null;else if(V===")")Y=!1;else if(H===null&&(V==='"'||V==="'"))H=V;else if(V==="("&&Q.slice(-3)==="url")Y=!0;else if((V===";"||V==="{"||V==="}")&&!Y&&!H)return Q.trim();else if(V==="/"&&!Y&&!H&&q.template[q.index+1]==="*"){q.index+=2;while(q.index<q.template.length){if(q.template[q.index]==="*"&&q.template[q.index+1]==="/"){q.index+=2;break}q.index++}continue}Q+=V,q.index++}L8(q.template.length)}function XZ(q){let Q="",Z=!1,Y=q.eat('"')?'"':q.eat("'")?"'":null;while(q.index<q.template.length){let H=q.template[q.index];if(Z)Q+="\\"+H,Z=!1;else if(H==="\\")Z=!0;else if(Y?H===Y:sQ.test(H)){if(Y)q.eat(Y,!0);return Q.trim()}else Q+=H;q.index++}L8(q.template.length)}function t8(q){let Q=q.index,Z="";if(q.match_regex(tQ))p9(Q);while(q.index<q.template.length){let Y=q.template[q.index];if(Y==="\\"){let H=q.match_regex(qZ);if(H)Z+=String.fromCodePoint(parseInt(H.slice(1),16)),q.index+=H.length;else Z+="\\"+q.template[q.index+1],q.index+=2}else if(Y.codePointAt(0)>=160||eQ.test(Y))Z+=Y,q.index++;else break}if(Z==="")p9(Q);return Z}function C1(q){q.allow_whitespace();while(q.match("/*")||q.match("<!--")){if(q.eat("/*"))q.read_until(QZ),q.eat("*/",!0);if(q.eat("<!--"))q.read_until(ZZ),q.eat("-->",!0);q.allow_whitespace()}}var U6={"CounterClockwiseContourIntegral;":8755,"ClockwiseContourIntegral;":8754,"DoubleLongLeftRightArrow;":10234,"NotNestedGreaterGreater;":10914,"DiacriticalDoubleAcute;":733,"NotSquareSupersetEqual;":8931,"CloseCurlyDoubleQuote;":8221,"DoubleContourIntegral;":8751,"FilledVerySmallSquare;":9642,"NegativeVeryThinSpace;":8203,"NotPrecedesSlantEqual;":8928,"NotRightTriangleEqual;":8941,"NotSucceedsSlantEqual;":8929,"CapitalDifferentialD;":8517,"DoubleLeftRightArrow;":8660,"DoubleLongRightArrow;":10233,"EmptyVerySmallSquare;":9643,"NestedGreaterGreater;":8811,"NotDoubleVerticalBar;":8742,"NotGreaterSlantEqual;":10878,"NotLeftTriangleEqual;":8940,"NotSquareSubsetEqual;":8930,"OpenCurlyDoubleQuote;":8220,"ReverseUpEquilibrium;":10607,"DoubleLongLeftArrow;":10232,"DownLeftRightVector;":10576,"LeftArrowRightArrow;":8646,"NegativeMediumSpace;":8203,"NotGreaterFullEqual;":8807,"NotRightTriangleBar;":10704,"RightArrowLeftArrow;":8644,"SquareSupersetEqual;":8850,"leftrightsquigarrow;":8621,"DownRightTeeVector;":10591,"DownRightVectorBar;":10583,"LongLeftRightArrow;":10231,"Longleftrightarrow;":10234,"NegativeThickSpace;":8203,"NotLeftTriangleBar;":10703,"PrecedesSlantEqual;":8828,"ReverseEquilibrium;":8651,"RightDoubleBracket;":10215,"RightDownTeeVector;":10589,"RightDownVectorBar;":10581,"RightTriangleEqual;":8885,"SquareIntersection;":8851,"SucceedsSlantEqual;":8829,"blacktriangleright;":9656,"longleftrightarrow;":10231,"DoubleUpDownArrow;":8661,"DoubleVerticalBar;":8741,"DownLeftTeeVector;":10590,"DownLeftVectorBar;":10582,"FilledSmallSquare;":9724,"GreaterSlantEqual;":10878,"LeftDoubleBracket;":10214,"LeftDownTeeVector;":10593,"LeftDownVectorBar;":10585,"LeftTriangleEqual;":8884,"NegativeThinSpace;":8203,"NotGreaterGreater;":8811,"NotLessSlantEqual;":10877,"NotNestedLessLess;":10913,"NotReverseElement;":8716,"NotSquareSuperset;":8848,"NotTildeFullEqual;":8775,"RightAngleBracket;":10217,"RightUpDownVector;":10575,"SquareSubsetEqual;":8849,"VerticalSeparator;":10072,"blacktriangledown;":9662,"blacktriangleleft;":9666,"leftrightharpoons;":8651,"rightleftharpoons;":8652,"twoheadrightarrow;":8608,"DiacriticalAcute;":180,"DiacriticalGrave;":96,"DiacriticalTilde;":732,"DoubleRightArrow;":8658,"DownArrowUpArrow;":8693,"EmptySmallSquare;":9723,"GreaterEqualLess;":8923,"GreaterFullEqual;":8807,"LeftAngleBracket;":10216,"LeftUpDownVector;":10577,"LessEqualGreater;":8922,"NonBreakingSpace;":160,"NotPrecedesEqual;":10927,"NotRightTriangle;":8939,"NotSucceedsEqual;":10928,"NotSucceedsTilde;":8831,"NotSupersetEqual;":8841,"RightTriangleBar;":10704,"RightUpTeeVector;":10588,"RightUpVectorBar;":10580,"UnderParenthesis;":9181,"UpArrowDownArrow;":8645,"circlearrowright;":8635,"downharpoonright;":8642,"ntrianglerighteq;":8941,"rightharpoondown;":8641,"rightrightarrows;":8649,"twoheadleftarrow;":8606,"vartriangleright;":8883,"CloseCurlyQuote;":8217,"ContourIntegral;":8750,"DoubleDownArrow;":8659,"DoubleLeftArrow;":8656,"DownRightVector;":8641,"LeftRightVector;":10574,"LeftTriangleBar;":10703,"LeftUpTeeVector;":10592,"LeftUpVectorBar;":10584,"LowerRightArrow;":8600,"NotGreaterEqual;":8817,"NotGreaterTilde;":8821,"NotHumpDownHump;":8782,"NotLeftTriangle;":8938,"NotSquareSubset;":8847,"OverParenthesis;":9180,"RightDownVector;":8642,"ShortRightArrow;":8594,"UpperRightArrow;":8599,"bigtriangledown;":9661,"circlearrowleft;":8634,"curvearrowright;":8631,"downharpoonleft;":8643,"leftharpoondown;":8637,"leftrightarrows;":8646,"nLeftrightarrow;":8654,"nleftrightarrow;":8622,"ntrianglelefteq;":8940,"rightleftarrows;":8644,"rightsquigarrow;":8605,"rightthreetimes;":8908,"straightepsilon;":1013,"trianglerighteq;":8885,"vartriangleleft;":8882,"DiacriticalDot;":729,"DoubleRightTee;":8872,"DownLeftVector;":8637,"GreaterGreater;":10914,"HorizontalLine;":9472,"InvisibleComma;":8291,"InvisibleTimes;":8290,"LeftDownVector;":8643,"LeftRightArrow;":8596,"Leftrightarrow;":8660,"LessSlantEqual;":10877,"LongRightArrow;":10230,"Longrightarrow;":10233,"LowerLeftArrow;":8601,"NestedLessLess;":8810,"NotGreaterLess;":8825,"NotLessGreater;":8824,"NotSubsetEqual;":8840,"NotVerticalBar;":8740,"OpenCurlyQuote;":8216,"ReverseElement;":8715,"RightTeeVector;":10587,"RightVectorBar;":10579,"ShortDownArrow;":8595,"ShortLeftArrow;":8592,"SquareSuperset;":8848,"TildeFullEqual;":8773,"UpperLeftArrow;":8598,"ZeroWidthSpace;":8203,"curvearrowleft;":8630,"doublebarwedge;":8966,"downdownarrows;":8650,"hookrightarrow;":8618,"leftleftarrows;":8647,"leftrightarrow;":8596,"leftthreetimes;":8907,"longrightarrow;":10230,"looparrowright;":8620,"nshortparallel;":8742,"ntriangleright;":8939,"rightarrowtail;":8611,"rightharpoonup;":8640,"trianglelefteq;":8884,"upharpoonright;":8638,"ApplyFunction;":8289,"DifferentialD;":8518,"DoubleLeftTee;":10980,"DoubleUpArrow;":8657,"LeftTeeVector;":10586,"LeftVectorBar;":10578,"LessFullEqual;":8806,"LongLeftArrow;":10229,"Longleftarrow;":10232,"NotEqualTilde;":8770,"NotTildeEqual;":8772,"NotTildeTilde;":8777,"Poincareplane;":8460,"PrecedesEqual;":10927,"PrecedesTilde;":8830,"RightArrowBar;":8677,"RightTeeArrow;":8614,"RightTriangle;":8883,"RightUpVector;":8638,"SucceedsEqual;":10928,"SucceedsTilde;":8831,"SupersetEqual;":8839,"UpEquilibrium;":10606,"VerticalTilde;":8768,"VeryThinSpace;":8202,"bigtriangleup;":9651,"blacktriangle;":9652,"divideontimes;":8903,"fallingdotseq;":8786,"hookleftarrow;":8617,"leftarrowtail;":8610,"leftharpoonup;":8636,"longleftarrow;":10229,"looparrowleft;":8619,"measuredangle;":8737,"ntriangleleft;":8938,"shortparallel;":8741,"smallsetminus;":8726,"triangleright;":9657,"upharpoonleft;":8639,"varsubsetneqq;":10955,"varsupsetneqq;":10956,"DownArrowBar;":10515,"DownTeeArrow;":8615,"ExponentialE;":8519,"GreaterEqual;":8805,"GreaterTilde;":8819,"HilbertSpace;":8459,"HumpDownHump;":8782,"Intersection;":8898,"LeftArrowBar;":8676,"LeftTeeArrow;":8612,"LeftTriangle;":8882,"LeftUpVector;":8639,"NotCongruent;":8802,"NotHumpEqual;":8783,"NotLessEqual;":8816,"NotLessTilde;":8820,"Proportional;":8733,"RightCeiling;":8969,"RoundImplies;":10608,"ShortUpArrow;":8593,"SquareSubset;":8847,"UnderBracket;":9141,"VerticalLine;":124,"blacklozenge;":10731,"exponentiale;":8519,"risingdotseq;":8787,"triangledown;":9663,"triangleleft;":9667,"varsubsetneq;":8842,"varsupsetneq;":8843,"CircleMinus;":8854,"CircleTimes;":8855,"Equilibrium;":8652,"GreaterLess;":8823,"LeftCeiling;":8968,"LessGreater;":8822,"MediumSpace;":8287,"NotLessLess;":8810,"NotPrecedes;":8832,"NotSucceeds;":8833,"NotSuperset;":8835,"OverBracket;":9140,"RightVector;":8640,"Rrightarrow;":8667,"RuleDelayed;":10740,"SmallCircle;":8728,"SquareUnion;":8852,"SubsetEqual;":8838,"UpDownArrow;":8597,"Updownarrow;":8661,"VerticalBar;":8739,"backepsilon;":1014,"blacksquare;":9642,"circledcirc;":8858,"circleddash;":8861,"curlyeqprec;":8926,"curlyeqsucc;":8927,"diamondsuit;":9830,"eqslantless;":10901,"expectation;":8496,"nRightarrow;":8655,"nrightarrow;":8603,"preccurlyeq;":8828,"precnapprox;":10937,"quaternions;":8461,"straightphi;":981,"succcurlyeq;":8829,"succnapprox;":10938,"thickapprox;":8776,"updownarrow;":8597,"Bernoullis;":8492,"CirclePlus;":8853,"EqualTilde;":8770,"Fouriertrf;":8497,"ImaginaryI;":8520,"Laplacetrf;":8466,"LeftVector;":8636,"Lleftarrow;":8666,"NotElement;":8713,"NotGreater;":8815,"Proportion;":8759,"RightArrow;":8594,"RightFloor;":8971,"Rightarrow;":8658,"ThickSpace;":8287,"TildeEqual;":8771,"TildeTilde;":8776,"UnderBrace;":9183,"UpArrowBar;":10514,"UpTeeArrow;":8613,"circledast;":8859,"complement;":8705,"curlywedge;":8911,"eqslantgtr;":10902,"gtreqqless;":10892,"lessapprox;":10885,"lesseqqgtr;":10891,"lmoustache;":9136,"longmapsto;":10236,"mapstodown;":8615,"mapstoleft;":8612,"nLeftarrow;":8653,"nleftarrow;":8602,"nsubseteqq;":10949,"nsupseteqq;":10950,"precapprox;":10935,"rightarrow;":8594,"rmoustache;":9137,"sqsubseteq;":8849,"sqsupseteq;":8850,"subsetneqq;":10955,"succapprox;":10936,"supsetneqq;":10956,"upuparrows;":8648,"varepsilon;":1013,"varnothing;":8709,"Backslash;":8726,"CenterDot;":183,"CircleDot;":8857,"Congruent;":8801,"Coproduct;":8720,"DoubleDot;":168,"DownArrow;":8595,"DownBreve;":785,"Downarrow;":8659,"HumpEqual;":8783,"LeftArrow;":8592,"LeftFloor;":8970,"Leftarrow;":8656,"LessTilde;":8818,"Mellintrf;":8499,"MinusPlus;":8723,"NotCupCap;":8813,"NotExists;":8708,"NotSubset;":8834,"OverBrace;":9182,"PlusMinus;":177,"Therefore;":8756,"ThinSpace;":8201,"TripleDot;":8411,"UnionPlus;":8846,"backprime;":8245,"backsimeq;":8909,"bigotimes;":10754,"centerdot;":183,"checkmark;":10003,"complexes;":8450,"dotsquare;":8865,"downarrow;":8595,"gtrapprox;":10886,"gtreqless;":8923,"gvertneqq;":8809,"heartsuit;":9829,"leftarrow;":8592,"lesseqgtr;":8922,"lvertneqq;":8808,"ngeqslant;":10878,"nleqslant;":10877,"nparallel;":8742,"nshortmid;":8740,"nsubseteq;":8840,"nsupseteq;":8841,"pitchfork;":8916,"rationals;":8474,"spadesuit;":9824,"subseteqq;":10949,"subsetneq;":8842,"supseteqq;":10950,"supsetneq;":8843,"therefore;":8756,"triangleq;":8796,"varpropto;":8733,"DDotrahd;":10513,"DotEqual;":8784,"Integral;":8747,"LessLess;":10913,"NotEqual;":8800,"NotTilde;":8769,"PartialD;":8706,"Precedes;":8826,"RightTee;":8866,"Succeeds;":8827,"SuchThat;":8715,"Superset;":8835,"Uarrocir;":10569,"UnderBar;":95,"andslope;":10840,"angmsdaa;":10664,"angmsdab;":10665,"angmsdac;":10666,"angmsdad;":10667,"angmsdae;":10668,"angmsdaf;":10669,"angmsdag;":10670,"angmsdah;":10671,"angrtvbd;":10653,"approxeq;":8778,"awconint;":8755,"backcong;":8780,"barwedge;":8965,"bbrktbrk;":9142,"bigoplus;":10753,"bigsqcup;":10758,"biguplus;":10756,"bigwedge;":8896,"boxminus;":8863,"boxtimes;":8864,"bsolhsub;":10184,"capbrcup;":10825,"circledR;":174,"circledS;":9416,"cirfnint;":10768,"clubsuit;":9827,"cupbrcap;":10824,"curlyvee;":8910,"cwconint;":8754,"doteqdot;":8785,"dotminus;":8760,"drbkarow;":10512,"dzigrarr;":10239,"elinters;":9191,"emptyset;":8709,"eqvparsl;":10725,"fpartint;":10765,"geqslant;":10878,"gesdotol;":10884,"gnapprox;":10890,"hksearow;":10533,"hkswarow;":10534,"imagline;":8464,"imagpart;":8465,"infintie;":10717,"integers;":8484,"intercal;":8890,"intlarhk;":10775,"laemptyv;":10676,"ldrushar;":10571,"leqslant;":10877,"lesdotor;":10883,"llcorner;":8990,"lnapprox;":10889,"lrcorner;":8991,"lurdshar;":10570,"mapstoup;":8613,"multimap;":8888,"naturals;":8469,"ncongdot;":10861,"notindot;":8949,"otimesas;":10806,"parallel;":8741,"plusacir;":10787,"pointint;":10773,"precneqq;":10933,"precnsim;":8936,"profalar;":9006,"profline;":8978,"profsurf;":8979,"raemptyv;":10675,"realpart;":8476,"rppolint;":10770,"rtriltri;":10702,"scpolint;":10771,"setminus;":8726,"shortmid;":8739,"smeparsl;":10724,"sqsubset;":8847,"sqsupset;":8848,"subseteq;":8838,"succneqq;":10934,"succnsim;":8937,"supseteq;":8839,"thetasym;":977,"thicksim;":8764,"timesbar;":10801,"triangle;":9653,"triminus;":10810,"trpezium;":9186,"ulcorner;":8988,"urcorner;":8989,"varkappa;":1008,"varsigma;":962,"vartheta;":977,"Because;":8757,"Cayleys;":8493,"Cconint;":8752,"Cedilla;":184,"Diamond;":8900,"DownTee;":8868,"Element;":8712,"Epsilon;":917,"Implies;":8658,"LeftTee;":8867,"NewLine;":10,"NoBreak;":8288,"NotLess;":8814,"Omicron;":927,"OverBar;":8254,"Product;":8719,"UpArrow;":8593,"Uparrow;":8657,"Upsilon;":933,"alefsym;":8501,"angrtvb;":8894,"angzarr;":9084,"asympeq;":8781,"backsim;":8765,"because;":8757,"bemptyv;":10672,"between;":8812,"bigcirc;":9711,"bigodot;":10752,"bigstar;":9733,"bnequiv;":8801,"boxplus;":8862,"ccupssm;":10832,"cemptyv;":10674,"cirscir;":10690,"coloneq;":8788,"congdot;":10861,"cudarrl;":10552,"cudarrr;":10549,"cularrp;":10557,"curarrm;":10556,"dbkarow;":10511,"ddagger;":8225,"ddotseq;":10871,"demptyv;":10673,"diamond;":8900,"digamma;":989,"dotplus;":8724,"dwangle;":10662,"epsilon;":949,"eqcolon;":8789,"equivDD;":10872,"gesdoto;":10882,"gtquest;":10876,"gtrless;":8823,"harrcir;":10568,"intprod;":10812,"isindot;":8949,"larrbfs;":10527,"larrsim;":10611,"lbrksld;":10639,"lbrkslu;":10637,"ldrdhar;":10599,"lesdoto;":10881,"lessdot;":8918,"lessgtr;":8822,"lesssim;":8818,"lotimes;":10804,"lozenge;":9674,"ltquest;":10875,"luruhar;":10598,"maltese;":10016,"minusdu;":10794,"napprox;":8777,"natural;":9838,"nearrow;":8599,"nexists;":8708,"notinva;":8713,"notinvb;":8951,"notinvc;":8950,"notniva;":8716,"notnivb;":8958,"notnivc;":8957,"npolint;":10772,"npreceq;":10927,"nsqsube;":8930,"nsqsupe;":8931,"nsubset;":8834,"nsucceq;":10928,"nsupset;":8835,"nvinfin;":10718,"nvltrie;":8884,"nvrtrie;":8885,"nwarrow;":8598,"olcross;":10683,"omicron;":959,"orderof;":8500,"orslope;":10839,"pertenk;":8241,"planckh;":8462,"pluscir;":10786,"plussim;":10790,"plustwo;":10791,"precsim;":8830,"quatint;":10774,"questeq;":8799,"rarrbfs;":10528,"rarrsim;":10612,"rbrksld;":10638,"rbrkslu;":10640,"rdldhar;":10601,"realine;":8475,"rotimes;":10805,"ruluhar;":10600,"searrow;":8600,"simplus;":10788,"simrarr;":10610,"subedot;":10947,"submult;":10945,"subplus;":10943,"subrarr;":10617,"succsim;":8831,"supdsub;":10968,"supedot;":10948,"suphsol;":10185,"suphsub;":10967,"suplarr;":10619,"supmult;":10946,"supplus;":10944,"swarrow;":8601,"topfork;":10970,"triplus;":10809,"tritime;":10811,"uparrow;":8593,"upsilon;":965,"uwangle;":10663,"vzigzag;":10650,"zigrarr;":8669,"Aacute;":193,"Abreve;":258,"Agrave;":192,"Assign;":8788,"Atilde;":195,"Barwed;":8966,"Bumpeq;":8782,"Cacute;":262,"Ccaron;":268,"Ccedil;":199,"Colone;":10868,"Conint;":8751,"CupCap;":8781,"Dagger;":8225,"Dcaron;":270,"DotDot;":8412,"Dstrok;":272,"Eacute;":201,"Ecaron;":282,"Egrave;":200,"Exists;":8707,"ForAll;":8704,"Gammad;":988,"Gbreve;":286,"Gcedil;":290,"HARDcy;":1066,"Hstrok;":294,"Iacute;":205,"Igrave;":204,"Itilde;":296,"Jsercy;":1032,"Kcedil;":310,"Lacute;":313,"Lambda;":923,"Lcaron;":317,"Lcedil;":315,"Lmidot;":319,"Lstrok;":321,"Nacute;":323,"Ncaron;":327,"Ncedil;":325,"Ntilde;":209,"Oacute;":211,"Odblac;":336,"Ograve;":210,"Oslash;":216,"Otilde;":213,"Otimes;":10807,"Racute;":340,"Rarrtl;":10518,"Rcaron;":344,"Rcedil;":342,"SHCHcy;":1065,"SOFTcy;":1068,"Sacute;":346,"Scaron;":352,"Scedil;":350,"Square;":9633,"Subset;":8912,"Supset;":8913,"Tcaron;":356,"Tcedil;":354,"Tstrok;":358,"Uacute;":218,"Ubreve;":364,"Udblac;":368,"Ugrave;":217,"Utilde;":360,"Vdashl;":10982,"Verbar;":8214,"Vvdash;":8874,"Yacute;":221,"Zacute;":377,"Zcaron;":381,"aacute;":225,"abreve;":259,"agrave;":224,"andand;":10837,"angmsd;":8737,"angsph;":8738,"apacir;":10863,"approx;":8776,"atilde;":227,"barvee;":8893,"barwed;":8965,"becaus;":8757,"bernou;":8492,"bigcap;":8898,"bigcup;":8899,"bigvee;":8897,"bkarow;":10509,"bottom;":8869,"bowtie;":8904,"boxbox;":10697,"bprime;":8245,"brvbar;":166,"bullet;":8226,"bumpeq;":8783,"cacute;":263,"capand;":10820,"capcap;":10827,"capcup;":10823,"capdot;":10816,"ccaron;":269,"ccedil;":231,"circeq;":8791,"cirmid;":10991,"colone;":8788,"commat;":64,"compfn;":8728,"conint;":8750,"coprod;":8720,"copysr;":8471,"cularr;":8630,"cupcap;":10822,"cupcup;":10826,"cupdot;":8845,"curarr;":8631,"curren;":164,"cylcty;":9005,"dagger;":8224,"daleth;":8504,"dcaron;":271,"dfisht;":10623,"divide;":247,"divonx;":8903,"dlcorn;":8990,"dlcrop;":8973,"dollar;":36,"drcorn;":8991,"drcrop;":8972,"dstrok;":273,"eacute;":233,"easter;":10862,"ecaron;":283,"ecolon;":8789,"egrave;":232,"egsdot;":10904,"elsdot;":10903,"emptyv;":8709,"emsp13;":8196,"emsp14;":8197,"eparsl;":10723,"eqcirc;":8790,"equals;":61,"equest;":8799,"female;":9792,"ffilig;":64259,"ffllig;":64260,"forall;":8704,"frac12;":189,"frac13;":8531,"frac14;":188,"frac15;":8533,"frac16;":8537,"frac18;":8539,"frac23;":8532,"frac25;":8534,"frac34;":190,"frac35;":8535,"frac38;":8540,"frac45;":8536,"frac56;":8538,"frac58;":8541,"frac78;":8542,"gacute;":501,"gammad;":989,"gbreve;":287,"gesdot;":10880,"gesles;":10900,"gtlPar;":10645,"gtrarr;":10616,"gtrdot;":8919,"gtrsim;":8819,"hairsp;":8202,"hamilt;":8459,"hardcy;":1098,"hearts;":9829,"hellip;":8230,"hercon;":8889,"homtht;":8763,"horbar;":8213,"hslash;":8463,"hstrok;":295,"hybull;":8259,"hyphen;":8208,"iacute;":237,"igrave;":236,"iiiint;":10764,"iinfin;":10716,"incare;":8453,"inodot;":305,"intcal;":8890,"iquest;":191,"isinsv;":8947,"itilde;":297,"jsercy;":1112,"kappav;":1008,"kcedil;":311,"kgreen;":312,"lAtail;":10523,"lacute;":314,"lagran;":8466,"lambda;":955,"langle;":10216,"larrfs;":10525,"larrhk;":8617,"larrlp;":8619,"larrpl;":10553,"larrtl;":8610,"latail;":10521,"lbrace;":123,"lbrack;":91,"lcaron;":318,"lcedil;":316,"ldquor;":8222,"lesdot;":10879,"lesges;":10899,"lfisht;":10620,"lfloor;":8970,"lharul;":10602,"llhard;":10603,"lmidot;":320,"lmoust;":9136,"loplus;":10797,"lowast;":8727,"lowbar;":95,"lparlt;":10643,"lrhard;":10605,"lsaquo;":8249,"lsquor;":8218,"lstrok;":322,"lthree;":8907,"ltimes;":8905,"ltlarr;":10614,"ltrPar;":10646,"mapsto;":8614,"marker;":9646,"mcomma;":10793,"midast;":42,"midcir;":10992,"middot;":183,"minusb;":8863,"minusd;":8760,"mnplus;":8723,"models;":8871,"mstpos;":8766,"nVDash;":8879,"nVdash;":8878,"nacute;":324,"nbumpe;":8783,"ncaron;":328,"ncedil;":326,"nearhk;":10532,"nequiv;":8802,"nesear;":10536,"nexist;":8708,"nltrie;":8940,"notinE;":8953,"nparsl;":11005,"nprcue;":8928,"nrarrc;":10547,"nrarrw;":8605,"nrtrie;":8941,"nsccue;":8929,"nsimeq;":8772,"ntilde;":241,"numero;":8470,"nvDash;":8877,"nvHarr;":10500,"nvdash;":8876,"nvlArr;":10498,"nvrArr;":10499,"nwarhk;":10531,"nwnear;":10535,"oacute;":243,"odblac;":337,"odsold;":10684,"ograve;":242,"ominus;":8854,"origof;":8886,"oslash;":248,"otilde;":245,"otimes;":8855,"parsim;":10995,"percnt;":37,"period;":46,"permil;":8240,"phmmat;":8499,"planck;":8463,"plankv;":8463,"plusdo;":8724,"plusdu;":10789,"plusmn;":177,"preceq;":10927,"primes;":8473,"prnsim;":8936,"propto;":8733,"prurel;":8880,"puncsp;":8200,"qprime;":8279,"rAtail;":10524,"racute;":341,"rangle;":10217,"rarrap;":10613,"rarrfs;":10526,"rarrhk;":8618,"rarrlp;":8620,"rarrpl;":10565,"rarrtl;":8611,"ratail;":10522,"rbrace;":125,"rbrack;":93,"rcaron;":345,"rcedil;":343,"rdquor;":8221,"rfisht;":10621,"rfloor;":8971,"rharul;":10604,"rmoust;":9137,"roplus;":10798,"rpargt;":10644,"rsaquo;":8250,"rsquor;":8217,"rthree;":8908,"rtimes;":8906,"sacute;":347,"scaron;":353,"scedil;":351,"scnsim;":8937,"searhk;":10533,"seswar;":10537,"sfrown;":8994,"shchcy;":1097,"sigmaf;":962,"sigmav;":962,"simdot;":10858,"smashp;":10803,"softcy;":1100,"solbar;":9023,"spades;":9824,"sqcaps;":8851,"sqcups;":8852,"sqsube;":8849,"sqsupe;":8850,"square;":9633,"squarf;":9642,"ssetmn;":8726,"ssmile;":8995,"sstarf;":8902,"subdot;":10941,"subset;":8834,"subsim;":10951,"subsub;":10965,"subsup;":10963,"succeq;":10928,"supdot;":10942,"supset;":8835,"supsim;":10952,"supsub;":10964,"supsup;":10966,"swarhk;":10534,"swnwar;":10538,"target;":8982,"tcaron;":357,"tcedil;":355,"telrec;":8981,"there4;":8756,"thetav;":977,"thinsp;":8201,"thksim;":8764,"timesb;":8864,"timesd;":10800,"topbot;":9014,"topcir;":10993,"tprime;":8244,"tridot;":9708,"tstrok;":359,"uacute;":250,"ubreve;":365,"udblac;":369,"ufisht;":10622,"ugrave;":249,"ulcorn;":8988,"ulcrop;":8975,"urcorn;":8989,"urcrop;":8974,"utilde;":361,"vangrt;":10652,"varphi;":981,"varrho;":1009,"veebar;":8891,"vellip;":8942,"verbar;":124,"vsubnE;":10955,"vsubne;":8842,"vsupnE;":10956,"vsupne;":8843,"wedbar;":10847,"wedgeq;":8793,"weierp;":8472,"wreath;":8768,"xoplus;":10753,"xotime;":10754,"xsqcup;":10758,"xuplus;":10756,"xwedge;":8896,"yacute;":253,"zacute;":378,"zcaron;":382,"zeetrf;":8488,"AElig;":198,Aacute:193,"Acirc;":194,Agrave:192,"Alpha;":913,"Amacr;":256,"Aogon;":260,"Aring;":197,Atilde:195,"Breve;":728,Ccedil:199,"Ccirc;":264,"Colon;":8759,"Cross;":10799,"Dashv;":10980,"Delta;":916,Eacute:201,"Ecirc;":202,Egrave:200,"Emacr;":274,"Eogon;":280,"Equal;":10869,"Gamma;":915,"Gcirc;":284,"Hacek;":711,"Hcirc;":292,"IJlig;":306,Iacute:205,"Icirc;":206,Igrave:204,"Imacr;":298,"Iogon;":302,"Iukcy;":1030,"Jcirc;":308,"Jukcy;":1028,"Kappa;":922,Ntilde:209,"OElig;":338,Oacute:211,"Ocirc;":212,Ograve:210,"Omacr;":332,"Omega;":937,Oslash:216,Otilde:213,"Prime;":8243,"RBarr;":10512,"Scirc;":348,"Sigma;":931,"THORN;":222,"TRADE;":8482,"TSHcy;":1035,"Theta;":920,"Tilde;":8764,Uacute:218,"Ubrcy;":1038,"Ucirc;":219,Ugrave:217,"Umacr;":362,"Union;":8899,"Uogon;":370,"UpTee;":8869,"Uring;":366,"VDash;":8875,"Vdash;":8873,"Wcirc;":372,"Wedge;":8896,Yacute:221,"Ycirc;":374,aacute:225,"acirc;":226,"acute;":180,"aelig;":230,agrave:224,"aleph;":8501,"alpha;":945,"amacr;":257,"amalg;":10815,"angle;":8736,"angrt;":8735,"angst;":197,"aogon;":261,"aring;":229,"asymp;":8776,atilde:227,"awint;":10769,"bcong;":8780,"bdquo;":8222,"bepsi;":1014,"blank;":9251,"blk12;":9618,"blk14;":9617,"blk34;":9619,"block;":9608,"boxDL;":9559,"boxDR;":9556,"boxDl;":9558,"boxDr;":9555,"boxHD;":9574,"boxHU;":9577,"boxHd;":9572,"boxHu;":9575,"boxUL;":9565,"boxUR;":9562,"boxUl;":9564,"boxUr;":9561,"boxVH;":9580,"boxVL;":9571,"boxVR;":9568,"boxVh;":9579,"boxVl;":9570,"boxVr;":9567,"boxdL;":9557,"boxdR;":9554,"boxdl;":9488,"boxdr;":9484,"boxhD;":9573,"boxhU;":9576,"boxhd;":9516,"boxhu;":9524,"boxuL;":9563,"boxuR;":9560,"boxul;":9496,"boxur;":9492,"boxvH;":9578,"boxvL;":9569,"boxvR;":9566,"boxvh;":9532,"boxvl;":9508,"boxvr;":9500,"breve;":728,brvbar:166,"bsemi;":8271,"bsime;":8909,"bsolb;":10693,"bumpE;":10926,"bumpe;":8783,"caret;":8257,"caron;":711,"ccaps;":10829,ccedil:231,"ccirc;":265,"ccups;":10828,"cedil;":184,"check;":10003,"clubs;":9827,"colon;":58,"comma;":44,"crarr;":8629,"cross;":10007,"csube;":10961,"csupe;":10962,"ctdot;":8943,"cuepr;":8926,"cuesc;":8927,"cupor;":10821,curren:164,"cuvee;":8910,"cuwed;":8911,"cwint;":8753,"dashv;":8867,"dblac;":733,"ddarr;":8650,"delta;":948,"dharl;":8643,"dharr;":8642,"diams;":9830,"disin;":8946,divide:247,"doteq;":8784,"dtdot;":8945,"dtrif;":9662,"duarr;":8693,"duhar;":10607,"eDDot;":10871,eacute:233,"ecirc;":234,"efDot;":8786,egrave:232,"emacr;":275,"empty;":8709,"eogon;":281,"eplus;":10865,"epsiv;":1013,"eqsim;":8770,"equiv;":8801,"erDot;":8787,"erarr;":10609,"esdot;":8784,"exist;":8707,"fflig;":64256,"filig;":64257,"fjlig;":102,"fllig;":64258,"fltns;":9649,"forkv;":10969,frac12:189,frac14:188,frac34:190,"frasl;":8260,"frown;":8994,"gamma;":947,"gcirc;":285,"gescc;":10921,"gimel;":8503,"gneqq;":8809,"gnsim;":8935,"grave;":96,"gsime;":10894,"gsiml;":10896,"gtcir;":10874,"gtdot;":8919,"harrw;":8621,"hcirc;":293,"hoarr;":8703,iacute:237,"icirc;":238,"iexcl;":161,igrave:236,"iiint;":8749,"iiota;":8489,"ijlig;":307,"imacr;":299,"image;":8465,"imath;":305,"imped;":437,"infin;":8734,"iogon;":303,"iprod;":10812,iquest:191,"isinE;":8953,"isins;":8948,"isinv;":8712,"iukcy;":1110,"jcirc;":309,"jmath;":567,"jukcy;":1108,"kappa;":954,"lAarr;":8666,"lBarr;":10510,"langd;":10641,"laquo;":171,"larrb;":8676,"lates;":10925,"lbarr;":10508,"lbbrk;":10098,"lbrke;":10635,"lceil;":8968,"ldquo;":8220,"lescc;":10920,"lhard;":8637,"lharu;":8636,"lhblk;":9604,"llarr;":8647,"lltri;":9722,"lneqq;":8808,"lnsim;":8934,"loang;":10220,"loarr;":8701,"lobrk;":10214,"lopar;":10629,"lrarr;":8646,"lrhar;":8651,"lrtri;":8895,"lsime;":10893,"lsimg;":10895,"lsquo;":8216,"ltcir;":10873,"ltdot;":8918,"ltrie;":8884,"ltrif;":9666,"mDDot;":8762,"mdash;":8212,"micro;":181,middot:183,"minus;":8722,"mumap;":8888,"nabla;":8711,"napid;":8779,"napos;":329,"natur;":9838,"nbump;":8782,"ncong;":8775,"ndash;":8211,"neArr;":8663,"nearr;":8599,"nedot;":8784,"nesim;":8770,"ngeqq;":8807,"ngsim;":8821,"nhArr;":8654,"nharr;":8622,"nhpar;":10994,"nlArr;":8653,"nlarr;":8602,"nleqq;":8806,"nless;":8814,"nlsim;":8820,"nltri;":8938,"notin;":8713,"notni;":8716,"npart;":8706,"nprec;":8832,"nrArr;":8655,"nrarr;":8603,"nrtri;":8939,"nsime;":8772,"nsmid;":8740,"nspar;":8742,"nsubE;":10949,"nsube;":8840,"nsucc;":8833,"nsupE;":10950,"nsupe;":8841,ntilde:241,"numsp;":8199,"nvsim;":8764,"nwArr;":8662,"nwarr;":8598,oacute:243,"ocirc;":244,"odash;":8861,"oelig;":339,"ofcir;":10687,ograve:242,"ohbar;":10677,"olarr;":8634,"olcir;":10686,"oline;":8254,"omacr;":333,"omega;":969,"operp;":10681,"oplus;":8853,"orarr;":8635,"order;":8500,oslash:248,otilde:245,"ovbar;":9021,"parsl;":11005,"phone;":9742,"plusb;":8862,"pluse;":10866,plusmn:177,"pound;":163,"prcue;":8828,"prime;":8242,"prnap;":10937,"prsim;":8830,"quest;":63,"rAarr;":8667,"rBarr;":10511,"radic;":8730,"rangd;":10642,"range;":10661,"raquo;":187,"rarrb;":8677,"rarrc;":10547,"rarrw;":8605,"ratio;":8758,"rbarr;":10509,"rbbrk;":10099,"rbrke;":10636,"rceil;":8969,"rdquo;":8221,"reals;":8477,"rhard;":8641,"rharu;":8640,"rlarr;":8644,"rlhar;":8652,"rnmid;":10990,"roang;":10221,"roarr;":8702,"robrk;":10215,"ropar;":10630,"rrarr;":8649,"rsquo;":8217,"rtrie;":8885,"rtrif;":9656,"sbquo;":8218,"sccue;":8829,"scirc;":349,"scnap;":10938,"scsim;":8831,"sdotb;":8865,"sdote;":10854,"seArr;":8664,"searr;":8600,"setmn;":8726,"sharp;":9839,"sigma;":963,"simeq;":8771,"simgE;":10912,"simlE;":10911,"simne;":8774,"slarr;":8592,"smile;":8995,"smtes;":10924,"sqcap;":8851,"sqcup;":8852,"sqsub;":8847,"sqsup;":8848,"srarr;":8594,"starf;":9733,"strns;":175,"subnE;":10955,"subne;":8842,"supnE;":10956,"supne;":8843,"swArr;":8665,"swarr;":8601,"szlig;":223,"theta;":952,"thkap;":8776,"thorn;":254,"tilde;":732,"times;":215,"trade;":8482,"trisb;":10701,"tshcy;":1115,"twixt;":8812,uacute:250,"ubrcy;":1118,"ucirc;":251,"udarr;":8645,"udhar;":10606,ugrave:249,"uharl;":8639,"uharr;":8638,"uhblk;":9600,"ultri;":9720,"umacr;":363,"uogon;":371,"uplus;":8846,"upsih;":978,"uring;":367,"urtri;":9721,"utdot;":8944,"utrif;":9652,"uuarr;":8648,"vBarv;":10985,"vDash;":8872,"varpi;":982,"vdash;":8866,"veeeq;":8794,"vltri;":8882,"vnsub;":8834,"vnsup;":8835,"vprop;":8733,"vrtri;":8883,"wcirc;":373,"wedge;":8743,"xcirc;":9711,"xdtri;":9661,"xhArr;":10234,"xharr;":10231,"xlArr;":10232,"xlarr;":10229,"xodot;":10752,"xrArr;":10233,"xrarr;":10230,"xutri;":9651,yacute:253,"ycirc;":375,AElig:198,Acirc:194,"Aopf;":120120,Aring:197,"Ascr;":119964,"Auml;":196,"Barv;":10983,"Beta;":914,"Bopf;":120121,"Bscr;":8492,"CHcy;":1063,"COPY;":169,"Cdot;":266,"Copf;":8450,"Cscr;":119966,"DJcy;":1026,"DScy;":1029,"DZcy;":1039,"Darr;":8609,"Dopf;":120123,"Dscr;":119967,Ecirc:202,"Edot;":278,"Eopf;":120124,"Escr;":8496,"Esim;":10867,"Euml;":203,"Fopf;":120125,"Fscr;":8497,"GJcy;":1027,"Gdot;":288,"Gopf;":120126,"Gscr;":119970,"Hopf;":8461,"Hscr;":8459,"IEcy;":1045,"IOcy;":1025,Icirc:206,"Idot;":304,"Iopf;":120128,"Iota;":921,"Iscr;":8464,"Iuml;":207,"Jopf;":120129,"Jscr;":119973,"KHcy;":1061,"KJcy;":1036,"Kopf;":120130,"Kscr;":119974,"LJcy;":1033,"Lang;":10218,"Larr;":8606,"Lopf;":120131,"Lscr;":8466,"Mopf;":120132,"Mscr;":8499,"NJcy;":1034,"Nopf;":8469,"Nscr;":119977,Ocirc:212,"Oopf;":120134,"Oscr;":119978,"Ouml;":214,"Popf;":8473,"Pscr;":119979,"QUOT;":34,"Qopf;":8474,"Qscr;":119980,"Rang;":10219,"Rarr;":8608,"Ropf;":8477,"Rscr;":8475,"SHcy;":1064,"Sopf;":120138,"Sqrt;":8730,"Sscr;":119982,"Star;":8902,THORN:222,"TScy;":1062,"Topf;":120139,"Tscr;":119983,"Uarr;":8607,Ucirc:219,"Uopf;":120140,"Upsi;":978,"Uscr;":119984,"Uuml;":220,"Vbar;":10987,"Vert;":8214,"Vopf;":120141,"Vscr;":119985,"Wopf;":120142,"Wscr;":119986,"Xopf;":120143,"Xscr;":119987,"YAcy;":1071,"YIcy;":1031,"YUcy;":1070,"Yopf;":120144,"Yscr;":119988,"Yuml;":376,"ZHcy;":1046,"Zdot;":379,"Zeta;":918,"Zopf;":8484,"Zscr;":119989,acirc:226,acute:180,aelig:230,"andd;":10844,"andv;":10842,"ange;":10660,"aopf;":120146,"apid;":8779,"apos;":39,aring:229,"ascr;":119990,"auml;":228,"bNot;":10989,"bbrk;":9141,"beta;":946,"beth;":8502,"bnot;":8976,"bopf;":120147,"boxH;":9552,"boxV;":9553,"boxh;":9472,"boxv;":9474,"bscr;":119991,"bsim;":8765,"bsol;":92,"bull;":8226,"bump;":8782,"caps;":8745,"cdot;":267,cedil:184,"cent;":162,"chcy;":1095,"cirE;":10691,"circ;":710,"cire;":8791,"comp;":8705,"cong;":8773,"copf;":120148,"copy;":169,"cscr;":119992,"csub;":10959,"csup;":10960,"cups;":8746,"dArr;":8659,"dHar;":10597,"darr;":8595,"dash;":8208,"diam;":8900,"djcy;":1106,"dopf;":120149,"dscr;":119993,"dscy;":1109,"dsol;":10742,"dtri;":9663,"dzcy;":1119,"eDot;":8785,"ecir;":8790,ecirc:234,"edot;":279,"emsp;":8195,"ensp;":8194,"eopf;":120150,"epar;":8917,"epsi;":949,"escr;":8495,"esim;":8770,"euml;":235,"euro;":8364,"excl;":33,"flat;":9837,"fnof;":402,"fopf;":120151,"fork;":8916,"fscr;":119995,"gdot;":289,"geqq;":8807,"gesl;":8923,"gjcy;":1107,"gnap;":10890,"gneq;":10888,"gopf;":120152,"gscr;":8458,"gsim;":8819,"gtcc;":10919,"gvnE;":8809,"hArr;":8660,"half;":189,"harr;":8596,"hbar;":8463,"hopf;":120153,"hscr;":119997,icirc:238,"iecy;":1077,iexcl:161,"imof;":8887,"iocy;":1105,"iopf;":120154,"iota;":953,"iscr;":119998,"isin;":8712,"iuml;":239,"jopf;":120155,"jscr;":119999,"khcy;":1093,"kjcy;":1116,"kopf;":120156,"kscr;":120000,"lArr;":8656,"lHar;":10594,"lang;":10216,laquo:171,"larr;":8592,"late;":10925,"lcub;":123,"ldca;":10550,"ldsh;":8626,"leqq;":8806,"lesg;":8922,"ljcy;":1113,"lnap;":10889,"lneq;":10887,"lopf;":120157,"lozf;":10731,"lpar;":40,"lscr;":120001,"lsim;":8818,"lsqb;":91,"ltcc;":10918,"ltri;":9667,"lvnE;":8808,"macr;":175,"male;":9794,"malt;":10016,micro:181,"mlcp;":10971,"mldr;":8230,"mopf;":120158,"mscr;":120002,"nGtv;":8811,"nLtv;":8810,"nang;":8736,"napE;":10864,"nbsp;":160,"ncap;":10819,"ncup;":10818,"ngeq;":8817,"nges;":10878,"ngtr;":8815,"nisd;":8954,"njcy;":1114,"nldr;":8229,"nleq;":8816,"nles;":10877,"nmid;":8740,"nopf;":120159,"npar;":8742,"npre;":10927,"nsce;":10928,"nscr;":120003,"nsim;":8769,"nsub;":8836,"nsup;":8837,"ntgl;":8825,"ntlg;":8824,"nvap;":8781,"nvge;":8805,"nvgt;":62,"nvle;":8804,"nvlt;":60,"oast;":8859,"ocir;":8858,ocirc:244,"odiv;":10808,"odot;":8857,"ogon;":731,"oint;":8750,"omid;":10678,"oopf;":120160,"opar;":10679,"ordf;":170,"ordm;":186,"oror;":10838,"oscr;":8500,"osol;":8856,"ouml;":246,"para;":182,"part;":8706,"perp;":8869,"phiv;":981,"plus;":43,"popf;":120161,pound:163,"prap;":10935,"prec;":8826,"prnE;":10933,"prod;":8719,"prop;":8733,"pscr;":120005,"qint;":10764,"qopf;":120162,"qscr;":120006,"quot;":34,"rArr;":8658,"rHar;":10596,"race;":8765,"rang;":10217,raquo:187,"rarr;":8594,"rcub;":125,"rdca;":10551,"rdsh;":8627,"real;":8476,"rect;":9645,"rhov;":1009,"ring;":730,"ropf;":120163,"rpar;":41,"rscr;":120007,"rsqb;":93,"rtri;":9657,"scap;":10936,"scnE;":10934,"sdot;":8901,"sect;":167,"semi;":59,"sext;":10038,"shcy;":1096,"sime;":8771,"simg;":10910,"siml;":10909,"smid;":8739,"smte;":10924,"solb;":10692,"sopf;":120164,"spar;":8741,"squf;":9642,"sscr;":120008,"star;":9734,"subE;":10949,"sube;":8838,"succ;":8827,"sung;":9834,"sup1;":185,"sup2;":178,"sup3;":179,"supE;":10950,"supe;":8839,szlig:223,"tbrk;":9140,"tdot;":8411,thorn:254,times:215,"tint;":8749,"toea;":10536,"topf;":120165,"tosa;":10537,"trie;":8796,"tscr;":120009,"tscy;":1094,"uArr;":8657,"uHar;":10595,"uarr;":8593,ucirc:251,"uopf;":120166,"upsi;":965,"uscr;":120010,"utri;":9653,"uuml;":252,"vArr;":8661,"vBar;":10984,"varr;":8597,"vert;":124,"vopf;":120167,"vscr;":120011,"wopf;":120168,"wscr;":120012,"xcap;":8898,"xcup;":8899,"xmap;":10236,"xnis;":8955,"xopf;":120169,"xscr;":120013,"xvee;":8897,"yacy;":1103,"yicy;":1111,"yopf;":120170,"yscr;":120014,"yucy;":1102,"yuml;":255,"zdot;":380,"zeta;":950,"zhcy;":1078,"zopf;":120171,"zscr;":120015,"zwnj;":8204,"AMP;":38,"Acy;":1040,"Afr;":120068,"And;":10835,Auml:196,"Bcy;":1041,"Bfr;":120069,COPY:169,"Cap;":8914,"Cfr;":8493,"Chi;":935,"Cup;":8915,"Dcy;":1044,"Del;":8711,"Dfr;":120071,"Dot;":168,"ENG;":330,"ETH;":208,"Ecy;":1069,"Efr;":120072,"Eta;":919,Euml:203,"Fcy;":1060,"Ffr;":120073,"Gcy;":1043,"Gfr;":120074,"Hat;":94,"Hfr;":8460,"Icy;":1048,"Ifr;":8465,"Int;":8748,Iuml:207,"Jcy;":1049,"Jfr;":120077,"Kcy;":1050,"Kfr;":120078,"Lcy;":1051,"Lfr;":120079,"Lsh;":8624,"Map;":10501,"Mcy;":1052,"Mfr;":120080,"Ncy;":1053,"Nfr;":120081,"Not;":10988,"Ocy;":1054,"Ofr;":120082,Ouml:214,"Pcy;":1055,"Pfr;":120083,"Phi;":934,"Psi;":936,QUOT:34,"Qfr;":120084,"REG;":174,"Rcy;":1056,"Rfr;":8476,"Rho;":929,"Rsh;":8625,"Scy;":1057,"Sfr;":120086,"Sub;":8912,"Sum;":8721,"Sup;":8913,"Tab;":9,"Tau;":932,"Tcy;":1058,"Tfr;":120087,"Ucy;":1059,"Ufr;":120088,Uuml:220,"Vcy;":1042,"Vee;":8897,"Vfr;":120089,"Wfr;":120090,"Xfr;":120091,"Ycy;":1067,"Yfr;":120092,"Zcy;":1047,"Zfr;":8488,"acE;":8766,"acd;":8767,"acy;":1072,"afr;":120094,"amp;":38,"and;":8743,"ang;":8736,"apE;":10864,"ape;":8778,"ast;":42,auml:228,"bcy;":1073,"bfr;":120095,"bne;":61,"bot;":8869,"cap;":8745,cent:162,"cfr;":120096,"chi;":967,"cir;":9675,copy:169,"cup;":8746,"dcy;":1076,"deg;":176,"dfr;":120097,"die;":168,"div;":247,"dot;":729,"ecy;":1101,"efr;":120098,"egs;":10902,"ell;":8467,"els;":10901,"eng;":331,"eta;":951,"eth;":240,euml:235,"fcy;":1092,"ffr;":120099,"gEl;":10892,"gap;":10886,"gcy;":1075,"gel;":8923,"geq;":8805,"ges;":10878,"gfr;":120100,"ggg;":8921,"glE;":10898,"gla;":10917,"glj;":10916,"gnE;":8809,"gne;":10888,"hfr;":120101,"icy;":1080,"iff;":8660,"ifr;":120102,"int;":8747,iuml:239,"jcy;":1081,"jfr;":120103,"kcy;":1082,"kfr;":120104,"lEg;":10891,"lap;":10885,"lat;":10923,"lcy;":1083,"leg;":8922,"leq;":8804,"les;":10877,"lfr;":120105,"lgE;":10897,"lnE;":8808,"lne;":10887,"loz;":9674,"lrm;":8206,"lsh;":8624,macr:175,"map;":8614,"mcy;":1084,"mfr;":120106,"mho;":8487,"mid;":8739,"nGg;":8921,"nGt;":8811,"nLl;":8920,"nLt;":8810,"nap;":8777,nbsp:160,"ncy;":1085,"nfr;":120107,"ngE;":8807,"nge;":8817,"ngt;":8815,"nis;":8956,"niv;":8715,"nlE;":8806,"nle;":8816,"nlt;":8814,"not;":172,"npr;":8832,"nsc;":8833,"num;":35,"ocy;":1086,"ofr;":120108,"ogt;":10689,"ohm;":937,"olt;":10688,"ord;":10845,ordf:170,ordm:186,"orv;":10843,ouml:246,"par;":8741,para:182,"pcy;":1087,"pfr;":120109,"phi;":966,"piv;":982,"prE;":10931,"pre;":10927,"psi;":968,"qfr;":120110,quot:34,"rcy;":1088,"reg;":174,"rfr;":120111,"rho;":961,"rlm;":8207,"rsh;":8625,"scE;":10932,"sce;":10928,"scy;":1089,sect:167,"sfr;":120112,"shy;":173,"sim;":8764,"smt;":10922,"sol;":47,"squ;":9633,"sub;":8834,"sum;":8721,sup1:185,sup2:178,sup3:179,"sup;":8835,"tau;":964,"tcy;":1090,"tfr;":120113,"top;":8868,"ucy;":1091,"ufr;":120114,"uml;":168,uuml:252,"vcy;":1074,"vee;":8744,"vfr;":120115,"wfr;":120116,"xfr;":120117,"ycy;":1099,"yen;":165,"yfr;":120118,yuml:255,"zcy;":1079,"zfr;":120119,"zwj;":8205,AMP:38,"DD;":8517,ETH:208,"GT;":62,"Gg;":8921,"Gt;":8811,"Im;":8465,"LT;":60,"Ll;":8920,"Lt;":8810,"Mu;":924,"Nu;":925,"Or;":10836,"Pi;":928,"Pr;":10939,REG:174,"Re;":8476,"Sc;":10940,"Xi;":926,"ac;":8766,"af;":8289,amp:38,"ap;":8776,"dd;":8518,deg:176,"ee;":8519,"eg;":10906,"el;":10905,eth:240,"gE;":8807,"ge;":8805,"gg;":8811,"gl;":8823,"gt;":62,"ic;":8291,"ii;":8520,"in;":8712,"it;":8290,"lE;":8806,"le;":8804,"lg;":8822,"ll;":8810,"lt;":60,"mp;":8723,"mu;":956,"ne;":8800,"ni;":8715,not:172,"nu;":957,"oS;":9416,"or;":8744,"pi;":960,"pm;":177,"pr;":8826,reg:174,"rx;":8478,"sc;":8827,shy:173,uml:168,"wp;":8472,"wr;":8768,"xi;":958,yen:165,GT:62,LT:60,gt:62,lt:60};var WZ=[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 GZ(q,Q){if(Q&&!q.endsWith(";"))return`${q}\\b(?!=)`;return q}function Z4(q){let Z=Object.keys(U6).map((H)=>GZ(H,q));return new RegExp(`&(#(?:x[a-fA-F\\d]+|\\d+)(?:;)?|${Z.join("|")})`,"g")}var zZ=Z4(!1),jZ=Z4(!0);function i1(q,Q){let Z=Q?jZ:zZ;return q.replace(Z,(Y,H)=>{let V;if(H[0]!=="#")V=U6[H];else if(H[1]==="x")V=parseInt(H.substring(2),16);else V=parseInt(H.substring(1),10);if(!V)return Y;return String.fromCodePoint(OZ(V))})}var Q4=0;function OZ(q){if(q===10)return 32;if(q<128)return q;if(q<=159)return WZ[q-128];if(q<55296)return q;if(q<=57343)return Q4;if(q<=65535)return q;if(q>=65536&&q<=131071)return q;if(q>=131072&&q<=196607)return q;if(q>=917504&&q<=917631||q>=917760&&q<=917999)return q;return Q4}function G8(q=!1){return{type:"Fragment",nodes:[],metadata:{transparent:q,dynamic:!1}}}var UZ=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function Y4(q){return UZ.includes(q.type)}function _0(q,Q,Z,Y,H){return{type:"Attribute",start:Z,end:Y,name:q,name_loc:Q,value:H,metadata:{delegated:!1,needs_clsx:!1}}}class K8{has_state=!1;has_call=!1;has_await=!1;has_member_expression=!1;has_assignment=!1;dependencies=new Set;references=new Set;#q=null;#Q(){if(!this.#q){this.#q=new Set;for(let q of this.references)if(q.blocker)this.#q.add(q.blocker)}return this.#q}blockers(){return V6([...this.#Q()])}has_blockers(){return this.#Q().size>0}has_more_blockers_than(q){for(let Q of this.#Q())if(!q.#Q().has(Q))return!0;return!1}is_async(){return this.has_await||this.#Q().size>0}merge(q){this.has_state||=q.has_state,this.has_call||=q.has_call,this.has_await||=q.has_await,this.has_member_expression||=q.has_member_expression,this.has_assignment||=q.has_assignment,this.#q=null;for(let Q of q.references)this.references.add(Q);for(let Q of q.dependencies)this.dependencies.add(Q)}}var H4={li:{direct:["li"]},dt:{descendant:["dt","dd"],reset_by:["dl"]},dd:{descendant:["dt","dd"],reset_by:["dl"]},p:{descendant:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"]},rt:{descendant:["rt","rp"]},rp:{descendant:["rt","rp"]},optgroup:{descendant:["optgroup"]},option:{descendant:["option","optgroup"]},thead:{direct:["tbody","tfoot"]},tbody:{direct:["tbody","tfoot"]},tfoot:{direct:["tbody"]},tr:{direct:["tr","tbody"]},td:{direct:["td","th","tr"]},th:{direct:["td","th","tr"]}};function J4(q,Q){let Z=H4[q];if(Z){if(!Q||("direct"in Z?Z.direct:Z.descendant).includes(Q))return!0}return!1}var xV={...H4,form:{descendant:["form"]},a:{descendant:["a"]},button:{descendant:["button"]},h1:{descendant:["h1","h2","h3","h4","h5","h6"]},h2:{descendant:["h1","h2","h3","h4","h5","h6"]},h3:{descendant:["h1","h2","h3","h4","h5","h6"]},h4:{descendant:["h1","h2","h3","h4","h5","h6"]},h5:{descendant:["h1","h2","h3","h4","h5","h6"]},h6:{descendant:["h1","h2","h3","h4","h5","h6"]},tr:{only:["th","td","style","script","template"]},tbody:{only:["tr","style","script","template"]},thead:{only:["tr","style","script","template"]},tfoot:{only:["tr","style","script","template"]},colgroup:{only:["col","template"]},table:{only:["caption","colgroup","tbody","thead","tfoot","style","script","template"]},head:{only:["base","basefont","bgsound","link","meta","title","noscript","noframes","style","script","template"]},html:{only:["head","body","frameset"]},frameset:{only:["frame"]},"#document":{only:["html"]}};function K4(q,Q="or"){if(q.length===1)return q[0];if(q.length===2)return`${q[0]} ${Q} ${q[1]}`;return`${q.slice(0,-1).join(", ")} ${Q} ${q[q.length-1]}`}var RZ=/(\/>|[\s"'=<>`])/y,R6=/<\/textarea(\s[^>]*)?>/iy,BZ=/-->/,V4=/(\s|\/|>)/,W4=/[\s=/>"']/,G4=/["']/y,FZ=/(?:"([^"]*)"|'([^'])*'|([^>\s]+))/y,MZ=/^![a-zA-Z]+$/,$Z=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/;function LZ(q){if(MZ.test(q))return!0;if($Z.test(q))return!0;return d7.test(q)}var X4=/^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u,z4=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),x0=new Map([...z4,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function B6(q){let Q=q.index++,Z=q.current();if(q.eat("!--")){let F=q.read_until(BZ);q.eat("-->",!0),q.append({type:"Comment",start:Q,end:q.index,data:F});return}if(q.eat("/")){let F=q.read_until(V4);if(q.allow_whitespace(),q.eat(">",!0),w9(F))i5(Q);while(Z.name!==F){if(q.loose){if(Y4(Z)){let P=Z.attributes.at(-1);if(P?.type==="Attribute"&&P.name===`<${F}`){q.index=P.start,Z.attributes.pop();break}}}if(Z.type==="RegularElement"){if(!q.last_auto_closed_tag||q.last_auto_closed_tag.tag!==F){let P=Z.fragment.nodes[0]?.start??Q;N9({start:Z.start,end:P},`</${F}>`,`</${Z.name}>`)}}else if(!q.loose)if(q.last_auto_closed_tag&&q.last_auto_closed_tag.tag===F)$5(Q,F,q.last_auto_closed_tag.reason);else M5(Q,F);Z.end=Q,q.pop(),Z=q.current()}if(Z.end=q.index,q.pop(),q.last_auto_closed_tag&&q.stack.length<q.last_auto_closed_tag.depth)q.last_auto_closed_tag=void 0;return}let Y=F6(q,V4);if(Y.name.startsWith("svelte:")&&!x0.has(Y.name)){let F={start:Q+1,end:Q+1+Y.name.length};h5(F,K4(Array.from(x0.keys())))}if(!LZ(Y.name)&&!X4.test(Y.name)){if(!q.loose||!Y.name.endsWith(".")){let F={start:Q+1,end:Q+1+Y.name.length};u5(F)}}if(z4.has(Y.name)){if(Y.name in q.meta_tags)k5(Q,Y.name);if(Z.type!=="Root")v5(Q,Y.name);q.meta_tags[Y.name]=!0}let H=x0.has(Y.name)?x0.get(Y.name):X4.test(Y.name)||q.loose&&Y.name.endsWith(".")?"Component":Y.name==="title"&&CZ(q.stack)?"TitleElement":Y.name==="slot"&&!AZ(q.stack)?"SlotElement":"RegularElement",V=H==="RegularElement"?{type:H,start:Q,end:-1,name:Y.name,name_loc:Y.loc,attributes:[],fragment:G8(!0),metadata:{svg:!1,mathml:!1,scoped:!1,has_spread:!1,path:[],synthetic_value_node:null}}:{type:H,start:Q,end:-1,name:Y.name,name_loc:Y.loc,attributes:[],fragment:G8(!0),metadata:{}};if(q.allow_whitespace(),Z.type==="RegularElement"&&J4(Z.name,Y.name)){let F=Z.fragment.nodes[0]?.start??Q;N9({start:Z.start,end:F},`<${Y.name}>`,`</${Z.name}>`),Z.end=Q,q.pop(),q.last_auto_closed_tag={tag:Z.name,reason:Y.name,depth:q.stack.length}}let K=[],W=q.current(),G=(Y.name==="script"||Y.name==="style")&&W.type==="Root",R=G?wZ:IZ,O;while(O=R(q)){if(O.type==="Attribute"||O.type==="BindDirective"||O.type==="StyleDirective"||O.type==="ClassDirective"){let F=O.type==="BindDirective"?"Attribute":O.type;if(K.includes(F+O.name))X5(O);else if(O.name!=="this")K.push(F+O.name)}V.attributes.push(O),q.allow_whitespace()}if(V.type==="Component")V.metadata.expression=new K8;if(V.type==="SvelteComponent"){let F=V.attributes.findIndex((w)=>w.type==="Attribute"&&w.name==="this");if(F===-1)b5(Q);let P=V.attributes.splice(F,1)[0];if(!W6(P))T5(P.start);V.expression=G6(P),V.metadata.expression=new K8}if(V.type==="SvelteElement"){let F=V.attributes.findIndex((w)=>w.type==="Attribute"&&w.name==="this");if(F===-1)e9(Q);let P=V.attributes.splice(F,1)[0];if(P.value===!0)e9(P);if(!W6(P)){Q2(P);let w=P.value[0];V.tag=w.type==="Text"?{type:"Literal",value:w.data,raw:`'${w.raw}'`,start:w.start,end:w.end}:w.expression}else V.tag=G6(P);V.metadata.expression=new K8}if(G){q.eat(">",!0);let F=null;for(let P=W.fragment.nodes.length-1;P>=0;P--){let w=W.fragment.nodes[P];if(P===W.fragment.nodes.length-1&&w.end!==Q)break;if(w.type==="Comment"){F=w;break}else if(w.type!=="Text"||w.data.trim())break}if(Y.name==="script"){let P=n5(q,Q,V.attributes);if(F)P.content.leadingComments=[{type:"Line",value:F.data}];if(P.context==="module"){if(W.module)r9(Q);W.module=P}else{if(W.instance)r9(Q);W.instance=P}}else{let P=j6(q,Q,V.attributes);if(P.content.comment=F,W.css)N5(Q);W.css=P}return}q.append(V);let $=q.eat("/")||w9(Y.name),M=q.eat(">",!0,!1);if(!M){let F=V.attributes.at(-1);if(F?.type==="Attribute"&&F.name==="<")q.index=F.start,V.attributes.pop();else{let P=q.template[q.index-1],w=q.template[q.index-2],N=q.template[q.index];if(w==="{"&&P==="/")q.index-=2;else if(P==="{"&&(N==="#"||N==="@"||N===":"))q.index-=1;else q.allow_whitespace()}}if($||!M)V.end=q.index;else if(Y.name==="textarea")V.fragment.nodes=j4(q,()=>{return R6.lastIndex=q.index,R6.test(q.template)},"inside <textarea>"),q.read(R6),V.end=q.index;else if(Y.name==="script"||Y.name==="style"){let F=q.index,P=`</${Y.name}>`,w=q.template.indexOf(P,q.index),N=q.template.slice(q.index,w===-1?q.template.length:w);q.index=w===-1?q.template.length:w;let v=q.index,g={start:F,end:v,type:"Text",data:N,raw:N};V.fragment.nodes.push(g),q.eat(`</${Y.name}>`,!0),V.end=q.index}else q.stack.push(V),q.fragments.push(V.fragment)}function CZ(q){let Q=q.length;while(Q--){let{type:Z}=q[Q];if(Z==="SvelteHead")return!0;if(Z==="RegularElement"||Z==="Component")return!1}return!1}function AZ(q){let Q=q.length;while(Q--)if(q[Q].type==="RegularElement"&&q[Q].attributes.some((Z)=>Z.type==="Attribute"&&Z.name==="shadowrootmode"))return!0;return!1}function wZ(q){let Q=q.index,Z=F6(q,W4);if(!Z.name)return null;let Y=!0;if(q.eat("=")){q.allow_whitespace();let H=q.match_regex(FZ);if(!H)s9(q.index);q.index+=H.length;let V=H[0]==='"'||H[0]==="'";if(V)H=H.slice(1,-1);Y=[{start:q.index-H.length-(V?1:0),end:V?q.index-1:q.index,type:"Text",raw:H,data:i1(H,!0)}]}if(q.match_regex(G4))v8(q.index,"=");return _0(Z.name,Z.loc,Q,q.index,Y)}function IZ(q){let Q=null;while(Q=PZ(q))q.root.comments.push(Q),q.allow_whitespace();let Z=q.index;if(q.eat("{")){if(q.allow_whitespace(),q.eat("@attach")){q.require_whitespace();let G=j8(q);return q.allow_whitespace(),q.eat("}",!0),{type:"AttachTag",start:Z,end:q.index,expression:G,metadata:{expression:new K8}}}if(q.eat("...")){let G=j8(q);return q.allow_whitespace(),q.eat("}",!0),{type:"SpreadAttribute",start:Z,end:q.index,expression:G,metadata:{expression:new K8}}}else{let G=q.read_identifier();if(G.name==="")if(q.loose&&(q.match("#")||q.match("/")||q.match("@")||q.match(":")))return null;else if(q.loose&&q.match("}"));else W5(Z);q.allow_whitespace(),q.eat("}",!0);let R={type:"ExpressionTag",start:G.start,end:G.end,expression:G,metadata:{expression:new K8}};return _0(G.name,G.loc,Z,q.index,R)}}let Y=F6(q,W4);if(!Y.name)return null;let H=q.index;q.allow_whitespace();let V=Y.name.indexOf(":"),K=V!==-1&&SZ(Y.name.slice(0,V)),W=!0;if(q.eat("="))if(q.allow_whitespace(),q.template[q.index]==="/"&&q.template[q.index+1]===">"){let G=q.index;q.index++,W=[{start:G,end:G+1,type:"Text",raw:"/",data:"/"}],H=q.index}else W=DZ(q),H=q.index;else if(q.match_regex(G4))v8(q.index,"=");if(K){let[G,...R]=Y.name.slice(V+1).split("|");if(G==="")F5({start:Z,end:Z+V+1},Y.name);if(K==="StyleDirective")return{start:Z,end:H,type:K,name:G,name_loc:Y.loc,modifiers:R,value:W,metadata:{expression:new K8}};let O=W===!0?void 0:Array.isArray(W)?W[0]:W,$=null;if(O)if(W.length>1||O.type==="Text")B5(O.start);else $=O.expression;let M={start:Z,end:H,type:K,name:G,name_loc:Y.loc,expression:$,metadata:{expression:new K8}};if(M.modifiers=R,M.type==="TransitionDirective"){let F=Y.name.slice(0,V);M.intro=F==="in"||F==="transition",M.outro=F==="out"||F==="transition"}if((M.type==="BindDirective"||M.type==="ClassDirective")&&!M.expression)M.expression={start:Z+V+1,end:H,type:"Identifier",name:M.name};return M}return _0(Y.name,Y.loc,Z,H,W)}function PZ(q){let Q=q.index;if(q.eat("//")){let Z=q.read_until(/\n/),Y=q.index;return{type:"Line",start:Q,end:Y,value:Z,loc:{start:z8(Q),end:z8(Y)}}}if(q.eat("/*")){let Z=q.read_until(/\*\//);q.eat("*/");let Y=q.index;return{type:"Block",start:Q,end:Y,value:Z,loc:{start:z8(Q),end:z8(Y)}}}return null}function SZ(q){if(q==="use")return"UseDirective";if(q==="animate")return"AnimateDirective";if(q==="bind")return"BindDirective";if(q==="class")return"ClassDirective";if(q==="style")return"StyleDirective";if(q==="on")return"OnDirective";if(q==="let")return"LetDirective";if(q==="in"||q==="out"||q==="transition")return"TransitionDirective";return!1}function DZ(q){let Q=q.eat("'")?"'":q.eat('"')?'"':null;if(Q&&q.eat(Q))return[{start:q.index-1,end:q.index-1,type:"Text",raw:"",data:""}];let Z;try{Z=j4(q,()=>{if(Q)return q.match(Q);return!!q.match_regex(RZ)},"in attribute value")}catch(Y){if(Y.code==="js_parse_error"){let H=Y.position?.[0];if(H!==void 0&&q.template.slice(H-1,H+1)==="/>")q.index=H,v8(H,Q||"}")}throw Y}if(Z.length===0&&!Q)s9(q.index);if(Q)q.index+=1;if(Q||Z.length>1||Z[0].type==="Text")return Z;else return Z[0]}function j4(q,Q,Z){let Y={start:q.index,end:-1,type:"Text",raw:"",data:""},H=[];function V(K){if(K>Y.start)Y.raw=q.template.slice(Y.start,K),Y.data=i1(Y.raw,!0),Y.end=K,H.push(Y)}while(q.index<q.template.length){let K=q.index;if(Q())return V(q.index),H;else if(q.eat("{")){if(q.match("#")){let R=q.index-1;q.eat("#");let O=q.read_until(/[^a-z]/);j5(R,O,Z)}else if(q.match("@")){let R=q.index-1;q.eat("@");let O=q.read_until(/[^a-z]/);m5(R,O,Z)}V(q.index-1),q.allow_whitespace();let W=j8(q);q.allow_whitespace(),q.eat("}",!0);let G={type:"ExpressionTag",start:K,end:q.index,expression:W,metadata:{expression:new K8}};H.push(G),Y={start:q.index,end:-1,type:"Text",raw:"",data:""}}else q.index++}if(q.loose)return H;else L8(q.template.length)}function F6(q,Q){let Z=q.index,Y=q.read_until(Q),H=q.index;return{type:"Identifier",name:Y,start:Z,end:H,loc:{start:z8(Z),end:z8(H)}}}function _8(q){let{index:Q,index:Z}=q,Y=q.read_identifier();if(Y.name!==""){let R=O4(q);return{...Y,typeAnnotation:R}}let H=q.template[Z];if(H!=="{"&&H!=="[")C5(Z);Z=l1(q,Q),q.index=Z;let V=q.template.slice(Q,Z),K=q.template.slice(0,Q).replace(G0," "),W=K.indexOf(" ");K=K.slice(0,W)+K.slice(W+1);let G=L1(H1(q,`${K}(${V} = 1)`,Q-1));if(G=G.left,G.typeAnnotation=O4(q),G.typeAnnotation)G.end=G.typeAnnotation.end;return G}function O4(q){let Q=q.index;if(q.allow_whitespace(),!q.eat(":")){q.index=Q;return}let Z="_ as ",Y=q.index-Z.length,H=q.template.slice(0,Y).replace(/[^\n]/g," ")+Z+q.template.slice(q.index).replace(/\?\s*:/g,":"),V=L1(H1(q,H,Y));if(V.type==="AssignmentExpression"){let K=V.right.start;while(H[K]!=="=")K-=1;V=L1(H1(q,H.slice(0,K),Y))}if(V.type==="SequenceExpression")V=V.expressions[0];return q.index=V.end,{type:"TSTypeAnnotation",start:Q,end:q.index,typeAnnotation:V.typeAnnotation}}var M6=/\s*}/y,NZ=/(?:let|const)\b/y,TZ=/(?:var|interface|enum)\b/y,bZ=/type\b/y,kZ={"<":">"};function L6(q){let Q=q.index;if(q.index+=1,q.allow_whitespace(),q.eat("#"))return vZ(q);if(q.eat(":"))return hZ(q);if(q.eat("@"))return fZ(q);if(q.match("/")){if(!q.match("/*")&&!q.match("//"))return q.eat("/"),$6(q)}let Z=EZ(q);if(Z){q.append({type:"DeclarationTag",start:Q,end:q.index,declaration:Z,metadata:{expression:new K8}});return}let Y=j8(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ExpressionTag",start:Q,end:q.index,expression:Y,metadata:{expression:new K8}})}function EZ(q){let Q=q.index,Z=q.match_regex(TZ);if(Z)k0({start:Q,end:Q+Z.length});if(!q.match_regex(NZ)&&!q.match_regex(bZ))return null;let Y=q.root.comments.length,H;try{H=p5(q,q.template,Q)}catch(V){if(!q.loose)throw V;let K=g0(q.template,Q,"{");if(K===void 0)throw V;q.index=K,H={type:"VariableDeclaration",kind:q.template.startsWith("const",Q)?"const":"let",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"",start:q.index,end:q.index},init:null,start:q.index,end:q.index}],start:Q,end:K}}if(H.type!=="VariableDeclaration")if(H.type==="ExpressionStatement")return q.root.comments.length=Y,null;else k0({start:H.start??Q,end:H.end??q.index});if(H.kind!=="let"&&H.kind!=="const")k0(H);return q.index=H.end,q.allow_whitespace(),q.eat("}",!0),H}function vZ(q){let Q=q.index-2;while(q.template[Q]!=="{")Q-=1;if(q.eat("if")){q.require_whitespace();let Z=q.append({type:"IfBlock",elseif:!1,start:Q,end:-1,test:j8(q),consequent:G8(),alternate:null,metadata:{expression:new K8}});q.allow_whitespace(),q.eat("}",!0),q.stack.push(Z),q.fragments.push(Z.consequent);return}if(q.eat("each")){q.require_whitespace();let Z=q.template,Y=q.template.length,H;while(!H)try{H=j8(q,void 0,!0)}catch(O){Y=O.position[0]-2;while(Y>Q&&q.template.slice(Y,Y+2)!=="as")Y-=1;if(Y<=Q){if(q.loose){if(H=K6(q),H)break}throw O}q.template=Z.slice(0,Y)}if(q.template=Z,q.allow_whitespace(),!q.match("as")){if(H.type==="SequenceExpression")H=H.expressions[0];let O=null,$=H.end;if(H=n8(H,null,{TSAsExpression(M,F){if(M.end===H.end)return O=M,$=M.expression.end,M.expression;F.next()}}),H.end=$,O){let M=O.typeAnnotation.start-2;while(q.template.slice(M,M+2)!=="as")M-=1;q.index=M}}let V=null,K,W;if(q.eat("as"))q.require_whitespace(),V=_8(q);else q.index=H.end;if(q.allow_whitespace(),q.eat(",")){if(q.allow_whitespace(),K=q.read_identifier().name,!K)a9(q.index);q.allow_whitespace()}if(q.eat("("))q.allow_whitespace(),W=j8(q,"("),q.allow_whitespace(),q.eat(")",!0),q.allow_whitespace();if(!q.eat("}",!0,!1))if(q.template.slice(q.index-4,q.index)===" as "){let O=q.index;V=_8(q),q.eat("}",!0),H={type:"Identifier",name:"",start:H.start,end:O-4}}else q.eat("}",!0);let R=q.append({type:"EachBlock",start:Q,end:-1,expression:H,body:G8(),context:V,index:K,key:W,metadata:null});q.stack.push(R),q.fragments.push(R.body);return}if(q.eat("await")){q.require_whitespace();let Z=j8(q);q.allow_whitespace();let Y=q.append({type:"AwaitBlock",start:Q,end:-1,expression:Z,value:null,error:null,pending:null,then:null,catch:null,metadata:{expression:new K8}});if(q.eat("then")){if(q.match_regex(M6))q.allow_whitespace();else q.require_whitespace(),Y.value=_8(q),q.allow_whitespace();Y.then=G8(),q.fragments.push(Y.then)}else if(q.eat("catch")){if(q.match_regex(M6))q.allow_whitespace();else q.require_whitespace(),Y.error=_8(q),q.allow_whitespace();Y.catch=G8(),q.fragments.push(Y.catch)}else Y.pending=G8(),q.fragments.push(Y.pending);if(!q.eat("}",!0,!1))if(q.template.slice(q.index-6,q.index)===" then "){let V=q.index;Y.value=_8(q),q.eat("}",!0),Y.expression={type:"Identifier",name:"",start:Z.start,end:V-6},Y.then=Y.pending,Y.pending=null}else if(q.template.slice(q.index-7,q.index)===" catch "){let V=q.index;Y.error=_8(q),q.eat("}",!0),Y.expression={type:"Identifier",name:"",start:Z.start,end:V-7},Y.catch=Y.pending,Y.pending=null}else q.eat("}",!0);q.stack.push(Y);return}if(q.eat("key")){q.require_whitespace();let Z=j8(q);q.allow_whitespace(),q.eat("}",!0);let Y=q.append({type:"KeyBlock",start:Q,end:-1,expression:Z,fragment:G8(),metadata:{expression:new K8}});q.stack.push(Y),q.fragments.push(Y.fragment);return}if(q.eat("snippet")){q.require_whitespace();let Z=q.read_identifier();if(Z.name===""&&!q.loose)a9(q.index);q.allow_whitespace();let Y=q.index,H;if(q.ts&&q.match("<")){let O=q.index,$=l1(q,O,kZ);H=q.template.slice(O+1,$-1),q.index=$}q.allow_whitespace();let V=q.eat("(",!0,!1);if(V){let O=1;while(q.index<q.template.length&&(!q.match(")")||O!==1)){if(q.match("("))O++;if(q.match(")"))O--;q.index+=1}q.eat(")",!0)}let K=q.template.slice(0,Y).replace(/\S/g," "),W=q.template.slice(Y,q.index),G=V?H1(q,K+`${W} => {}`,Y):{params:[]};q.allow_whitespace(),q.eat("}",!0);let R=q.append({type:"SnippetBlock",start:Q,end:-1,expression:Z,typeParams:H,parameters:G.params,body:G8(),metadata:{can_hoist:!1,sites:new Set}});q.stack.push(R),q.fragments.push(R.body);return}L5(q.index)}function hZ(q){let Q=q.index-1,Z=q.current();if(Z.type==="IfBlock"){if(!q.eat("else"))v8(Q,"{:else} or {:else if}");if(q.eat("if"))z5(Q);if(q.allow_whitespace(),q.fragments.pop(),Z.alternate=G8(),q.fragments.push(Z.alternate),q.eat("if")){q.require_whitespace();let Y=j8(q);q.allow_whitespace(),q.eat("}",!0);let H=Q-1;while(q.template[H]!=="{")H-=1;let V=q.append({start:H,end:-1,type:"IfBlock",elseif:!0,test:Y,consequent:G8(),alternate:null,metadata:{expression:new K8}});q.stack.push(V),q.fragments.pop(),q.fragments.push(V.consequent)}else q.allow_whitespace(),q.eat("}",!0);return}if(Z.type==="EachBlock"){if(!q.eat("else"))v8(Q,"{:else}");q.allow_whitespace(),q.eat("}",!0),Z.fallback=G8(),q.fragments.pop(),q.fragments.push(Z.fallback);return}if(Z.type==="AwaitBlock"){if(q.eat("then")){if(Z.then)o9(Q,"{:then}");if(!q.eat("}"))q.require_whitespace(),Z.value=_8(q),q.allow_whitespace(),q.eat("}",!0);Z.then=G8(),q.fragments.pop(),q.fragments.push(Z.then);return}if(q.eat("catch")){if(Z.catch)o9(Q,"{:catch}");if(!q.eat("}"))q.require_whitespace(),Z.error=_8(q),q.allow_whitespace(),q.eat("}",!0);Z.catch=G8(),q.fragments.pop(),q.fragments.push(Z.catch);return}v8(Q,"{:then ...} or {:catch ...}")}G5(Q)}function $6(q){let Q=q.index-1,Z=q.current(),Y;switch(Z.type){case"IfBlock":if(Y=q.eat("if",!0,!1),!Y){Z.end=Q-1,q.pop(),$6(q);return}q.allow_whitespace(),q.eat("}",!0);while(Z.elseif)Z.end=q.index,q.stack.pop(),Z=q.current();Z.end=q.index,q.pop();return;case"EachBlock":Y=q.eat("each",!0,!1);break;case"KeyBlock":Y=q.eat("key",!0,!1);break;case"AwaitBlock":Y=q.eat("await",!0,!1);break;case"SnippetBlock":Y=q.eat("snippet",!0,!1);break;case"RegularElement":if(q.loose)Y=!1;else n9(Q);break;default:n9(Q)}if(!Y){Z.end=Q-1,q.pop(),$6(q);return}q.allow_whitespace(),q.eat("}",!0),Z.end=q.index,q.pop()}function fZ(q){let Q=q.index;while(q.template[Q]!=="{")Q-=1;if(q.eat("html")){q.require_whitespace();let Z=j8(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"HtmlTag",start:Q,end:q.index,expression:Z,metadata:{expression:new K8}});return}if(q.eat("debug")){let Z;if(q.read(M6))Z=[];else{let Y=j8(q);Z=Y.type==="SequenceExpression"?Y.expressions:[Y],Z.forEach((H)=>{if(H.type!=="Identifier")R5(H.start)}),q.allow_whitespace(),q.eat("}",!0)}q.append({type:"DebugTag",start:Q,end:q.index,identifiers:Z});return}if(q.eat("const")){q.require_whitespace();let Z=_8(q);q.allow_whitespace(),q.eat("=",!0),q.allow_whitespace();let Y=q.index,H=j8(q);if(H.type==="SequenceExpression"&&!q.template.substring(Y,H.start).includes("("))U5(H);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ConstTag",start:Q,end:q.index,declaration:{type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:Z,init:H,start:Z.start,end:H.end}],start:Q+2,end:q.index-1},metadata:{expression:new K8}});return}if(q.eat("render")){q.require_whitespace();let Z=j8(q);if(Z.type!=="CallExpression"&&(Z.type!=="ChainExpression"||Z.expression.type!=="CallExpression"))P5(Z);q.allow_whitespace(),q.eat("}",!0),q.append({type:"RenderTag",start:Q,end:q.index,expression:Z,metadata:{expression:new K8,dynamic:!1,arguments:[],path:[],snippets:new Set}});return}A5(q.index)}function C6(q){let Q=q.index;while(q.index<q.template.length&&!q.match("<")&&!q.match("{"))q.index++;let Z=q.template.slice(Q,q.index);q.append({type:"Text",start:Q,end:q.index,raw:Z,data:i1(Z,!1)})}function d1(q){if(q.match("<"))return B6;if(q.match("{"))return L6;return C6}function A6(q){let Q={start:q.start,end:q.end,attributes:q.attributes};if(!q)return Q;for(let Z of q.attributes){if(Z.type!=="Attribute")y5(Z);let{name:Y}=Z;switch(Y){case"runes":{Q.runes=u0(Z);break}case"tag":{f5(Z);break}case"customElement":{let H={},{value:V}=Z,K=V===!0||Array.isArray(V)?V:[V];if(K===!0)h0(Z);else if(K[0].type==="Text"){let M=m0(Z);R4(Z,M),H.tag=M,Q.customElement=H;break}else if(K[0].expression.type!=="ObjectExpression"){if(K[0].expression.type==="Literal"&&K[0].expression.value===null)break;h0(Z)}let W=[];for(let M of K[0].expression.properties){if(M.type!=="Property"||M.computed||M.key.type!=="Identifier")h0(Z);W.push([M.key.name,M.value])}let G=W.find(([M])=>M==="tag");if(G){let M=G[1]?.value;R4(G,M),H.tag=M}let R=W.find(([M])=>M==="props")?.[1];if(R){if(R.type!=="ObjectExpression")Y1(Z);H.props={};for(let M of R.properties){if(M.type!=="Property"||M.computed||M.key.type!=="Identifier"||M.value.type!=="ObjectExpression")Y1(Z);H.props[M.key.name]={};for(let F of M.value.properties){if(F.type!=="Property"||F.computed||F.key.type!=="Identifier"||F.value.type!=="Literal")Y1(Z);if(F.key.name==="type"){if(["String","Number","Boolean","Array","Object"].indexOf(F.value.value)===-1)Y1(Z);H.props[M.key.name].type=F.value.value}else if(F.key.name==="reflect"){if(typeof F.value.value!=="boolean")Y1(Z);H.props[M.key.name].reflect=F.value.value}else if(F.key.name==="attribute"){if(typeof F.value.value!=="string")Y1(Z);H.props[M.key.name].attribute=F.value.value}else Y1(Z)}}}let O=W.find(([M])=>M==="shadow")?.[1];if(O)if(O.type==="Literal"&&(O.value==="open"||O.value==="none"))H.shadow=O.value;else if(O.type==="ObjectExpression")H.shadow=O;else g5(Z);let $=W.find(([M])=>M==="extend")?.[1];if($)H.extend=$;Q.customElement=H;break}case"namespace":{let H=m0(Z);if(H===g7)Q.namespace="svg";else if(H===_7)Q.namespace="mathml";else if(H==="html"||H==="mathml"||H==="svg")Q.namespace=H;else v0(Z,'"html", "mathml" or "svg"');break}case"css":{let H=m0(Z);if(H==="injected")Q.css=H;else v0(Z,'"injected"');break}case"immutable":{Q.immutable=u0(Z);break}case"preserveWhitespace":{Q.preserveWhitespace=u0(Z);break}case"accessors":{Q.accessors=u0(Z);break}default:x5(Z,Y)}}return Q}function m0(q){let{value:Q}=q;if(Q===!0)return!0;let Z=Array.isArray(Q)?Q[0]:Q;if(!Z)return!0;if(Q.length>1)return null;if(Z.type==="Text")return Z.data;if(Z.expression.type!=="Literal")return null;return Z.expression.value}function u0(q){let Q=m0(q);if(typeof Q!=="boolean")v0(q,"true or false");return Q}var U4="[a-z0-9_.·À-ÖØ-öø-ͽͿ-῿‌-‍‿-⁀⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF-]",yZ=new RegExp(`^[a-z]${U4}*-${U4}*$`,"u"),gZ=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function R4(q,Q){if(typeof Q!=="string")q6(q);if(Q){if(!yZ.test(Q))q6(q);else if(gZ.includes(Q))_5(q)}}function B4(q){let{nodes:Q}=q.fragment;if(Q.length>0){let Z=Q[0],Y=Q[Q.length-1];E5({start:Z.start,end:Y.end},q.name)}}function F4(q){if(q===32||q<=13&&q>=9)return!0;if(q<160)return!1;return q===160||q===5760||q>=8192&&q<=8202||q===8232||q===8233||q===8239||q===8287||q===12288||q===65279}var M4=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g;class w6{template;loose;index=0;static forCss(q){let Q=Object.create(w6.prototype);return Q.template=q,Q.index=0,Q.loose=!1,Q}ts=!1;stack=[];fragments=[];root;meta_tags={};last_auto_closed_tag;constructor(q,Q){if(typeof q!=="string")throw TypeError("Template must be a string");this.loose=Q,this.template=q.trimEnd();let Z;do Z=M4.exec(q);while(Z&&Z[0][1]!=="s");M4.lastIndex=0,this.ts=Z?.[2]==="ts",this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:G8(),options:null,comments:[],metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let Y=d1;while(this.index<this.template.length)Y=Y(this)||d1;if(this.stack.length>1){let V=this.current();if(this.loose)V.end=this.template.length;else if(V.type==="RegularElement")V.end=V.start+1,E0(V,V.name);else V.end=V.start+1,O5(V)}if(Y!==d1)L8(this.index);this.root.start=0,this.root.end=q.length;let H=this.root.fragment.nodes.findIndex((V)=>V.type==="SvelteOptions");if(H!==-1){let V=this.root.fragment.nodes[H];this.root.fragment.nodes.splice(H,1),this.root.options=A6(V),B4(V),Object.defineProperty(this.root.options,"__raw__",{value:V,enumerable:!1})}}current(){return this.stack[this.stack.length-1]}eat(q,Q=!1,Z=!0){if(this.match(q))return this.index+=q.length,!0;if(Q&&(!this.loose||Z))v8(this.index,q);return!1}match(q){if(q.length===1)return this.template[this.index]===q;return this.template.startsWith(q,this.index)}match_regex(q){q.lastIndex=this.index;let Q=q.exec(this.template);if(!Q||Q.index!==this.index)return null;return Q[0]}allow_whitespace(){while(this.index<this.template.length&&F4(this.template.charCodeAt(this.index)))this.index++}read(q){let Q=this.match_regex(q);if(Q)this.index+=Q.length;return Q}read_identifier(){let q=this.index,Q=q,Z="",Y=this.template.codePointAt(this.index);if(A8(Y,!0)){let H=this.index;Q+=Y<=65535?1:2;while(Q<this.template.length){let V=this.template.codePointAt(Q);if(!y8(V,!0))break;Q+=V<=65535?1:2}if(Z=this.template.slice(q,Q),this.index=Q,i7(Z))l5(q,Z)}return{type:"Identifier",name:Z,start:q,end:Q,loc:{start:z8(q),end:z8(Q)}}}read_until(q){if(this.index>=this.template.length){if(this.loose)return"";L8(this.template.length)}let Q=this.index,Z=q.exec(this.template.slice(Q));if(Z)return this.index=Q+Z.index,this.template.slice(Q,this.index);return this.index=this.template.length,this.template.slice(Q)}require_whitespace(){if(!F4(this.template.charCodeAt(this.index)))w5(this.index);this.allow_whitespace()}pop(){let q=this.fragments.pop();if(q?.metadata.transparent&&q.nodes.some((Q)=>Q.type==="DeclarationTag"))q.metadata.transparent=!1;return this.stack.pop()}append(q){return this.fragments.at(-1)?.nodes.push(q),q}}function $4(q,Q=!1){return p7(q),new w6(q,Q).root}function _Z(q){return q.charCodeAt(0)===65279?q.slice(1):q}function I6(q){delete q.metadata}function P6(q){if(!q||typeof q!=="object"||typeof q.type!=="string")return;I6(q);for(let Q in q){if(Q==="type")continue;let Z=q[Q];if(!Z||typeof Z!=="object")continue;if(Array.isArray(Z))for(let Y of Z)P6(Y);else P6(Z)}}function L4(q,Q,Z){if(Z){for(let Y of Q.options?.attributes??[])if(I6(Y),Y.value)for(let H of Array.isArray(Y.value)?Y.value:[Y.value])I6(H);return P6(Q),Q}return H2(q,Q)}function S6(q){if(q===null||typeof q!=="object")return q;if(Array.isArray(q))return q.map(S6);let Q={};for(let Z in q)Q[Z]=S6(q[Z]);return Q}function C4(q,{loose:Q}={}){let Z=_Z(q);n7({warning:()=>!1,filename:void 0});let Y=$4(Z,Q),H=L4(Z,Y,!0),V=S6(H),K=L4(Z,V,!1);return{modern:H,legacy:K}}function A4(q){if(q==="var")return"let";if(q==="using"||q==="await using")return"const";return q}var xZ=null,w4=/^@component/,uZ=/\r/g,mZ=/^\{\s*\}$/;class O8{ctx=e0();static mapToArray(q){return Array.from(q,([Q,Z])=>Z)}static getStaticAttributeValue(q){if(!Array.isArray(q.value))return;return q.value.map((Q)=>Q.data??Q.raw??"").join("").trim()}resolveScriptLanguage(q){let Q=[q.instance,q.module].filter((Y)=>Y!==void 0),Z=!1;for(let Y of Q){let H=Y.attributes?.find((K)=>K.name==="lang");if(!H){Z=!0;continue}if(O8.getStaticAttributeValue(H)?.toLowerCase()==="ts")return"ts"}return Z?"js":void 0}resolveScriptGenericsAttribute(q){let Q=q.instance?.attributes?.find((K)=>K.name==="generics");if(!Q)return;let Z=V8(this.ctx,Q),Y=q.instance?.attributes?.find((K)=>K.name==="lang");if((Y?O8.getStaticAttributeValue(Y)?.toLowerCase():void 0)!=="ts"){p8(this.ctx,"syntax-skipped","generics",'<script generics="..."> requires lang="ts"; the generics attribute was ignored because the script is not TypeScript.',Z);return}let V=O8.getStaticAttributeValue(Q);if(!V)return;return{value:V,source:Z}}resolvePublicPropName(q){return this.ctx.propLocalToPublicName.get(q)??q}trackPropLocalName(q,Q=q){this.ctx.propLocalToPublicName.set(Q,q)}getPropByLocalOrPublic(q){return this.ctx.props.get(this.resolvePublicPropName(q))}getPropTypeByLocalOrPublic(q){return this.getPropByLocalOrPublic(q)?.type}getExplicitPropType(q){return this.ctx.explicitPropTypesByName.get(q)}getPropertyName(q){if(!q||typeof q!=="object"||!("type"in q))return;if(u8(q))return q.name;if(K1(q))return q.value==null?void 0:String(q.value);return}isNumericConstant(q){if(!q||typeof q!=="object"||!("type"in q))return!1;if(q.type!=="MemberExpression")return!1;let Q=q,Z=Q.object&&"name"in Q.object?Q.object.name:void 0,Y=Q.property&&"name"in Q.property?Q.property.name:void 0;if(!Z||!Y)return!1;if(Z==="Number")return["POSITIVE_INFINITY","NEGATIVE_INFINITY","MAX_VALUE","MIN_VALUE","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","EPSILON","NaN"].includes(Y);if(Z==="Math")return["PI","E","LN2","LN10","LOG2E","LOG10E","SQRT2","SQRT1_2"].includes(Y);return!1}resolveLocalVarJSDoc(q){for(let Z of this.ctx.vars)if(Z.declarations.some((H)=>H.id&&typeof H.id==="object"&&("type"in H.id)&&H.id.type==="Identifier"&&("name"in H.id)&&H.id.name===q))return q1(this.ctx,this,Z);let Q=this.ctx.funcDecls.get(q);if(Q)return q1(this.ctx,this,Q);return}addModuleExport(q,Q){if(I8(q)===void 0)return;if(this.ctx.moduleExports.has(q)){let Z=this.ctx.moduleExports.get(q);this.ctx.moduleExports.set(q,{...Z,...Q})}else this.ctx.moduleExports.set(q,Q)}aliasType(q){if(q==="*")return"any";return q.trim()}findVariableTypeAndDescription(q){let Q=this.getPropByLocalOrPublic(q);if(Q?.type)return{type:Q.type,description:Q.description};if(!this.ctx.variableInfoCacheBuilt)this.ctx.variableInfoCache=v7(this.ctx,this),this.ctx.variableInfoCacheBuilt=!0;let Z=this.ctx.variableInfoCache.get(q),Y=this.ctx.explicitVariableTypesByName.get(q);if(Y)return{type:Y,description:Z?.description};return Z??null}accumulateGeneric(q,Q){if(this.ctx.generics)this.ctx.generics=[`${this.ctx.generics[0]}, ${q}`,`${this.ctx.generics[1]}, ${Q}`];else this.ctx.generics=[q,Q]}cleanup(){this.ctx=e0()}static SCRIPT_BLOCK_REGEX=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi;static TS_DIRECTIVE_REGEX=/\/\/\s*@ts-[^\n\r]*/g;static stripTypeScriptDirectivesFromScripts(q){return O8.SCRIPT_BLOCK_REGEX.lastIndex=0,q.replace(O8.SCRIPT_BLOCK_REGEX,(Q,Z,Y,H)=>{O8.TS_DIRECTIVE_REGEX.lastIndex=0;let V=Y.replace(O8.TS_DIRECTIVE_REGEX,"");return Z+V+H})}parseSvelteComponent(q,Q){this.cleanup(),this.ctx.componentFilePath=Q.filePath;let Z=O8.stripTypeScriptDirectivesFromScripts(q);this.ctx.source=Z;let{modern:Y,legacy:H}=C4(Z);if(S7(this,this.ctx,Y),this.ctx.parsed=H,this.ctx.scriptLanguage==="ts")W0(this.ctx.parsed.module),W0(this.ctx.parsed.instance),W0(this.ctx.parsed.html);this.ctx.syntaxMode=P7(this.ctx);let V=this.ctx.parsed.css,K=V?.start!==void 0&&V?.end!==void 0?Z.slice(0,V.start)+" ".repeat(V.end-V.start)+Z.slice(V.end):Z;if(F7(this.ctx,this,K),this.ctx.parsed?.module)d8(this.ctx.parsed?.module,{enter:(C)=>{if(C.type==="ExportNamedDeclaration"){if(C.declaration==null)return;if(!C.declaration||typeof C.declaration!=="object"||!("type"in C.declaration))return;let J,X,z=!1,j,B,L,A=!1,D,S,I;if(C.declaration.type==="FunctionDeclaration"){let _=C.declaration;if(!_.id?.name)return;J=_.id.name,X="function",j=void 0,B="() => any",A=!0,z=!0}else if(C.declaration.type==="VariableDeclaration"){let _=C.declaration,s=_.declarations[0];if(!s||typeof s!=="object"||!("id"in s))return;let{id:U8,init:p}=s;if(!U8||typeof U8!=="object"||!("name"in U8))return;let t=U8.name;J=t,X=A4(_.kind);let l=p==null?{isFunction:!1}:V1(this,this.ctx,p);({value:j,type:B,isFunction:A,defaultValue:D}=l),S=B,I=l,L=this.getExplicitPropType(t)}else return;let h=q1(this.ctx,this,C),{type:c,typeSource:m,description:n,params:H8,returnType:b,isFunction:r}=N1({explicitType:L,typeSeed:B,inferredTypeForSource:S,jsdocType:h?.type,jsdocDescription:h?.description,jsdocParams:h?.params,jsdocReturnType:h?.returnType,resolvedType:I?.resolvedType,resolvedDescription:I?.resolvedDescription,resolvedParams:I?.resolvedParams,resolvedReturnType:I?.resolvedReturnType,initializerIsFunction:A,isFunctionDeclaration:z,typedefs:this.ctx.typedefs});this.addModuleExport(J,{name:J,kind:X,description:n,deprecated:h?.deprecated,tags:h?.tags,type:c,typeSource:m,value:j,defaultValue:D,params:H8,returnType:b,isFunction:r,isFunctionDeclaration:z,isRequired:!1,constant:X==="const",reactive:!1,source:V8(this.ctx,C)})}}});let W,G=new Set,R=new Set,O=[],$={type:"ComponentRoot",instance:this.ctx.parsed.instance,html:this.ctx.parsed.html};L7(this,this.ctx),this.ctx.activeScopes.push(this.ctx.componentScope);let M=C7(this.ctx);if(d8($,{enter:(C,J,X)=>{A7(this,this.ctx,M,C);let z=this.ctx.scopeDeclarations.get(C);if(z)this.ctx.activeScopes.push(z);if(C.type==="AssignmentExpression")F9(this.ctx,C.left);if(C.type==="UpdateExpression")F9(this.ctx,C.argument);if(C.type==="CallExpression"){let j=C,B=j.callee&&typeof j.callee==="object"&&"name"in j.callee?j.callee.name:void 0;if(B==="createEventDispatcher"){if(J&&typeof J==="object"&&"id"in J&&J.id&&typeof J.id==="object"&&"name"in J.id)W=J.id.name}if(B==="$host"){if(J&&typeof J==="object"&&"id"in J&&J.id&&typeof J.id==="object"&&"name"in J.id)G.add(J.id.name)}if(B==="setContext")r6(this.ctx,this,C,J??void 0);if(B)O.push({name:B,arguments:j.arguments,source:V8(this.ctx,j)});if(u6(j.callee)&&u8(j.callee.property)&&j.callee.property.name==="dispatchEvent"&&(m8(j.callee.object,"$host")||u8(j.callee.object)&&G.has(j.callee.object.name))){let L=t6(this.ctx,j);if(L)R.add(L)}}if(C&&typeof C==="object"&&"type"in C&&String(C.type)==="Spread"){let j=C;if(j.expression?.name==="$$restProps"||this.ctx.restPropLocals.has(j.expression?.name??""))M7(this.ctx,J)}if(C.type==="FunctionDeclaration"){let j=C;if(j.id?.name)this.ctx.funcDecls.set(j.id.name,j)}if(C.type==="VariableDeclaration"){if(this.ctx.vars.add(C),J&&typeof J==="object"&&"type"in J&&J.type==="Program"&&C.declarations.some((j)=>m8(e8(j.init),"$props")))D7(this,this.ctx,C)}if(C.type==="ExportNamedDeclaration"){if(C.declaration==null&&C.specifiers.length===0)return;let j;if(C.declaration==null&&C.specifiers[0]?.type==="ExportSpecifier"){let l=C.specifiers[0],M8=l.local&&typeof l.local==="object"&&"name"in l.local?l.local.name:void 0,e=l.exported&&typeof l.exported==="object"&&"name"in l.exported?l.exported.name:void 0;if(!M8||!e)return;let C8;for(let c8 of Array.from(this.ctx.vars))if(c8.declarations.some((i8)=>i8.id&&typeof i8.id==="object"&&("type"in i8.id)&&i8.id.type==="Identifier"&&i8.id.name===M8)){C8=c8;break}C.declaration=C8,j=e}if(C.declaration==null)return;if(!C.declaration||typeof C.declaration!=="object"||!("type"in C.declaration))return;let B,L=!1,A,D,S,I=!1,h=!1,c,m,n,H8;if(C.declaration.type==="FunctionDeclaration"){let l=C.declaration;if(!l.id?.name)return;j??=l.id.name,c=l.id.name,B="function",A=void 0,D="() => any",I=!0,L=!0,h=!1}else if(C.declaration.type==="VariableDeclaration"){let l=C.declaration,M8=l.declarations[0];if(!M8||typeof M8!=="object"||!("id"in M8))return;let{id:e,init:C8}=M8;if(e&&typeof e==="object"&&"name"in e){let i8=e.name;c=i8,j??=i8,S=this.getExplicitPropType(i8)}else return;B=A4(l.kind),h=B==="let"&&C8==null;let c8=C8==null?{isFunction:!1}:V1(this,this.ctx,C8);({value:A,type:D,isFunction:I,defaultValue:m}=c8),n=D,H8=c8}else return;let b=q1(this.ctx,this,C),{type:r,typeSource:_,description:s,params:U8,returnType:p,isFunction:t}=N1({explicitType:S,typeSeed:D,inferredTypeForSource:n,jsdocType:b?.type,jsdocDescription:b?.description,jsdocParams:b?.params,jsdocReturnType:b?.returnType,resolvedType:H8?.resolvedType,resolvedDescription:H8?.resolvedDescription,resolvedParams:H8?.resolvedParams,resolvedReturnType:H8?.resolvedReturnType,initializerIsFunction:I,isFunctionDeclaration:L,typedefs:this.ctx.typedefs});w1(this,this.ctx,j,{name:j,...c!==void 0&&c!==j?{localName:c}:{},kind:B,description:s,binding:b?.binding,deprecated:b?.deprecated,tags:b?.tags,type:r,typeSource:_,value:A,defaultValue:m,params:U8,returnType:p,isFunction:t,isFunctionDeclaration:L,isRequired:h,constant:B==="const",reactive:this.ctx.reactive_vars.has(j),source:V8(this.ctx,C)})}if(C&&typeof C==="object"&&"type"in C&&String(C.type)==="Comment"){let B=C?.data?.trim()??"";if(w4.test(B))this.ctx.componentComment=B.replace(w4,"").replace(uZ,""),this.ctx.componentCommentSource=V8(this.ctx,C)}if(C&&typeof C==="object"&&"type"in C&&String(C.type)==="Slot"){let j=C,B=j.attributes?.find((D)=>D.name==="name")?.value?.[0]?.data,L=(j.attributes||[]).filter((D)=>D.name!=="name").reduce((D,S)=>{let I={value:void 0,replace:!1},h=S.value;if(h===void 0)return D;if(h[0]){let c=h[0],{type:m,expression:n,raw:H8,start:b,end:r}=c;if(m==="Text"&&H8!==void 0)I.value=JSON.stringify(H8);else if(m==="AttributeShorthand"&&n&&typeof n==="object"&&"name"in n)I.value=n.name,I.replace=!0;if(n&&typeof n==="object"&&"type"in n){if(n.type==="Literal"&&"value"in n){let _=n.value;I.value=typeof _==="string"?JSON.stringify(_):String(_)}else if(n.type==="MemberExpression")I.value=e1(this.ctx,this,n);else if(n.type!=="Identifier"){if(b!==void 0&&r!==void 0){if(n.type==="ObjectExpression"||n.type==="TemplateLiteral")I.value=J8(this.ctx,b+1,r-1)}}}}if(S.name)D[S.name]=I;return D},{}),A=j.children?.map(({start:D,end:S})=>{if(D===void 0||S===void 0)return"";return J8(this.ctx,D,S)??""}).join("").trim();S1(this.ctx,{slot_name:B,slot_props:L,slot_fallback:A,source:V8(this.ctx,C)})}if(C&&typeof C==="object"&&"type"in C&&String(C.type)==="RenderTag"){let j=C,B=z7(this.ctx,j.expression);if(B){let L;if(B.arguments.length===0)L={};else if(B.arguments.length===1&&typeof B.arguments[0]==="object"&&B.arguments[0]&&"type"in B.arguments[0]&&B.arguments[0].type==="ObjectExpression")L=G7(this.ctx,this,B.arguments[0]);else if(B.arguments.length===1)p8(this.ctx,"syntax-skipped",B.publicName,`{@render ${B.publicName}(...)} argument is not a plain object literal; the render call was not mapped to slot metadata.`,V8(this.ctx,C));let A=B.publicName==="children"?void 0:B.publicName,D=A===void 0?xZ:A;if(L!==void 0)S1(this.ctx,{slot_name:A,slot_props:L,source:V8(this.ctx,C)});if(L!==void 0||this.ctx.slots.has(D))this.ctx.snippetPropLocals.add(B.trackingName)}}if(C&&typeof C==="object"&&"type"in C&&String(C.type)==="EventHandler"){let j=C;if(j.expression==null&&j.name){if(J!=null&&typeof J==="object"&&"name"in J){let B=typeof J.name==="string"?J.name:void 0,L="type"in J?String(J.type):void 0;if(B&&L){let A=L==="InlineComponent"?{type:"InlineComponent",name:B}:{type:"Element",name:B};this.ctx.forwardedEvents.set(j.name,A);let D=this.ctx.events.get(j.name),S=this.ctx.eventDescriptions.get(j.name),I=D?.deprecated;if(!D)this.ctx.events.set(j.name,{type:"forwarded",name:j.name,element:A,description:S,deprecated:I,source:V8(this.ctx,C)});else if(D.type==="forwarded"&&S&&!D.description)this.ctx.events.set(j.name,{...D,description:S,deprecated:D.deprecated??I,source:D.source||V8(this.ctx,C)})}}}}if(J&&typeof J==="object"&&"type"in J&&(String(J.type)==="Element"||String(J.type)==="InlineComponent")&&C&&typeof C==="object"&&"type"in C&&String(C.type)==="Binding"){let j=C;if(j.expression?.name){let B=K0(this.ctx,j.expression.name);if(B)this.ctx.reactive_vars.add(B)}if(String(J.type)==="Element"&&j.name==="this"&&j.expression?.name&&"name"in J&&typeof J.name==="string"){let B=K0(this.ctx,j.expression.name);if(!B)return;let L=J.name;if(this.ctx.bindings.has(B)){let A=this.ctx.bindings.get(B);if(A&&!A.elements.includes(L))this.ctx.bindings.set(B,{...A,elements:[...A.elements,L]})}else this.ctx.bindings.set(B,{elements:[L]})}}},leave:(C)=>{if(this.ctx.scopeDeclarations.has(C))this.ctx.activeScopes.pop();w7(M,C)}}),W!==void 0){for(let C of O)if(C.name===W){let J=C.arguments[0],X=J&&typeof J==="object"&&"value"in J?J.value:void 0,z=C.arguments[1],j=z&&typeof z==="object"&&"value"in z?z.value:void 0;if(X!=null)I1(this.ctx,{name:String(X),detail:j==null?"":Y9(j),has_argument:Boolean(z),source:C.source})}}let F=new Set(R);if(W!==void 0){for(let C of O)if(C.name===W){let J=C.arguments[0],X=J&&typeof J==="object"&&"value"in J?J.value:void 0;if(X!=null)F.add(String(X))}}this.ctx.forwardedEvents.forEach((C,J)=>{let X=this.ctx.events.get(J);if(X&&X.type==="dispatched"&&!F.has(J)){let z=this.ctx.eventDescriptions.get(J),j={type:"forwarded",name:J,element:C,description:z,deprecated:X.deprecated,tags:X.tags,source:X.source};if(X.detail!==void 0&&X.detail!=="undefined")j.detail=X.detail;this.ctx.events.set(J,j)}}),N7(this.ctx,F);let P=this.ctx.syntaxMode==="runes"?new Set(Array.from(this.ctx.snippetPropLocals,(C)=>this.resolvePublicPropName(C))):new Set,w=O8.mapToArray(this.ctx.props).filter((C)=>!P.has(C.name)).map((C)=>{if(this.ctx.bindings.has(C.name)){let J=this.ctx.bindings.get(C.name)?.elements.sort().map((X)=>c6(X)).join(" | ");return{...C,type:`null | ${J}`,typeSource:"inferred",reactive:C.reactive||this.ctx.reactive_vars.has(C.name)}}return{...C,reactive:C.reactive||this.ctx.reactive_vars.has(C.name)}});this.ctx.activeScopes.length=0;let N=O8.mapToArray(this.ctx.slots).map((C)=>{if(!C.slot_props)return C;if(typeof C.slot_props==="string")return mZ.test(C.slot_props)?{...C,slot_props:"Record<string, never>"}:C;let J=C.slot_props,X=[];for(let j of Object.keys(J)){if(J[j].replace&&J[j].value!==void 0)J[j].value=this.getPropTypeByLocalOrPublic(J[j].value);if(J[j].value===void 0)J[j].value="any";X.push(`${j}: ${J[j].value}`)}let z=X.length===0?"Record<string, never>":X.length===1?`{ ${X[0]} }`:`{
86
+ ${X.join(`;
109
87
  `)};
110
- }`;return{...z,slot_props:d}}).sort((z,S)=>{let N=z.name??"",d=S.name??"";if(N<d)return-1;if(N>d)return 1;return 0});if(this.ctx.deferredSlotBlockGenerics.length>0){let z=[...$.map((S)=>S.type??""),...U.map((S)=>S.slot_props??"")].join(`
111
- `);for(let{name:S,constraint:N}of this.ctx.deferredSlotBlockGenerics){let d=S.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!new RegExp(`\\b${d}\\b`).test(z))continue;this.accumulateGeneric(S,N)}}if(this.ctx.scriptGenericsAttribute){if(this.ctx.generics)l0(this.ctx,"syntax-skipped","generics",'Both the "generics" script attribute and @generics/@template JSDoc tags declare component generics; the script attribute takes precedence and the JSDoc declaration was ignored.',this.ctx.scriptGenericsAttribute.source);this.ctx.generics=DB(this.ctx.scriptGenericsAttribute.value)}let B=u8.mapToArray(this.ctx.moduleExports),T=u8.mapToArray(this.ctx.events).map((z)=>{switch(z.type){case"forwarded":return{...z,element:z.element.name};case"dispatched":return z;default:return z}}).sort((z,S)=>{let N=z.name.localeCompare(S.name);if(N!==0)return N;let d=z.type.localeCompare(S.type);if(d!==0)return d;if(z.type==="forwarded"&&S.type==="forwarded"){let k=z.element.localeCompare(S.element);if(k!==0)return k}return(z.detail??"").localeCompare(S.detail??"")}),w=u8.mapToArray(this.ctx.typedefs),f=u8.mapToArray(this.ctx.contexts);for(let z of $)if(z.typeSource==="unknown")l0(this.ctx,"prop-unknown-type",z.name,`Prop "${z.name}" type could not be inferred; falling back to "${z.type??"any"}".`,z.source);for(let z of this.ctx.jsDocEventNames){if(K.has(z))continue;if(this.ctx.forwardedEvents.has(z))continue;if(this.ctx.props.has(`on${z}`))continue;l0(this.ctx,"event-no-source",z,`@event "${z}" has no matching dispatch or callback prop.`,this.ctx.jsDocEventSources.get(z))}let D={source:X6(this.ctx,0,this.ctx.source?.length),syntaxMode:this.ctx.syntaxMode,...this.ctx.scriptLanguage?{scriptLanguage:this.ctx.scriptLanguage}:{},props:$,moduleExports:B,slots:U,events:T,typedefs:w,generics:this.ctx.generics,rest_props:this.ctx.rest_props,extends:this.ctx.extends,componentComment:this.ctx.componentComment,componentCommentSource:this.ctx.componentCommentSource,contexts:f,customElementTag:this.ctx.customElementTag,diagnostics:this.ctx.diagnosticRecords.slice()},y=TB(this.ctx);if(y)D[RU]=y;return D}}var OU="sveld",HU="0.35.1";var MU=1;function p9(q,R={}){let P=Array.from(q,([,O])=>{let{diagnostics:H,...M}=O;return M}).sort((O,H)=>O.moduleName.localeCompare(H.moduleName)),C={schemaVersion:MU,generator:{name:OU,version:HU,svelteVersion:R6},total:P.length,components:P};if(R.entryExports&&R.entryExports.length>0)C.totalExports=R.entryExports.length,C.exports=R.entryExports;return C}var QU=/^[}\])>]/,yg=new Set(["{","(","["]),bg=new Set(["}",")","]"]);var hg=/\binterface\s+[A-Za-z_$][\w$]*(\s*<[^{};]*>)?\s*$/,ZU=/[ \t]+$/,gg=/\s+$/,lg=/[{([]$/,_g=/\s/;function mg(q){return hg.test(q.slice(-200))}function xg(q){let R="",P=null,C=!1;for(let O=0;O<q.length;O++){let H=q[O],M=q[O-1];if(P){if(R+=H,P==="double"&&H==='"'&&M!=="\\"||P==="single"&&H==="'"&&M!=="\\"||P==="template"&&H==="`"&&M!=="\\")P=null;C=!1;continue}if(H==='"'||H==="'"||H==="`"){P=H==='"'?"double":H==="'"?"single":"template",R+=H,C=!1;continue}if(_g.test(H)){if(!C&&R.length>0)R+=" ",C=!0;continue}R+=H,C=!1}return R.trimEnd()}function pg(q,R){let P=0,C="normal";for(let O=R;O<q.length;O++){let H=q[O],M=q[O-1];if(C==="blockComment"){if(M==="*"&&H==="/")C="normal";continue}if(C==="double"||C==="single"){if(H===(C==="double"?'"':"'")&&M!=="\\")C="normal";continue}if(C==="template"){if(H==="`"&&M!=="\\")C="normal";continue}if(H==="/"&&q[O+1]==="*")C="blockComment";else if(H==='"')C="double";else if(H==="'")C="single";else if(H==="`")C="template";else if(H==="{")P++;else if(H==="}"){if(P--,P===0)return O}}return-1}function YU(q){let R="",P="normal";for(let C=0;C<q.length;C++){let O=q[C],H=q[C-1];if(P==="blockComment"){if(R+=O,H==="*"&&O==="/")P="normal";continue}if(P==="double"||P==="single"){if(R+=O,O===(P==="double"?'"':"'")&&H!=="\\")P="normal";continue}if(P==="template"){if(R+=O,O==="`"&&H!=="\\")P="normal";continue}if(O==="/"&&q[C+1]==="*"){P="blockComment",R+=O;continue}if(O==='"'){P="double",R+=O;continue}if(O==="'"){P="single",R+=O;continue}if(O==="`"){P="template",R+=O;continue}if(O==="{"){let M=pg(q,C);if(M===-1){R+=O;continue}let F=q.slice(C+1,M);if(F.trim()===""){R+="{}",C=M;continue}if(!F.includes("/*")&&q[C+1]!==`
112
- `&&!mg(R)){let Y=YU(F).trim();if(!Y.includes(`
113
- `)){let K=Y.endsWith(";")?Y.slice(0,-1):Y,J=`{ ${xg(K)} }`;if(J.length<=120){R+=J,C=M;continue}}}if(R+=O,q[C+1]!==`
114
- `)R+=`
115
- `;continue}if(O==="}"){if(R=R.replace(ZU,""),!R.endsWith(`
116
- `))R+=`
117
- `;R+=O;continue}if(O===";"){if(R=R.replace(gg,""),R+=";",q[C+1]!==`
118
- `)R+=`
119
- `;continue}R+=O}return R}function cg(q){let R="",P=null;for(let C=0;C<q.length;C++){let O=q[C],H=q[C-1];if(P){if(R+=O,P==="double"&&O==='"'&&H!=="\\"||P==="single"&&O==="'"&&H!=="\\"||P==="template"&&O==="`"&&H!=="\\")P=null;continue}if(O==='"'||O==="'"||O==="`"){P=O==='"'?"double":O==="'"?"single":"template",R+=O;continue}if(O===" "&&R.endsWith(" "))continue;R+=O}return R}function ig(q){let R=q.split(`
120
- `),P=[],C=0,O=!1,H=0;for(let M of R){let F=M.trim();if(F===""){P.push("");continue}if(O){if(P.push(`${" ".repeat(H)} ${F}`),F.includes("*/"))O=!1;continue}if(F.startsWith("/**")&&!F.includes("*/")){P.push(" ".repeat(C)+F),O=!0,H=C;continue}let Y=cg(F),K=QU.test(Y),J=Math.max(0,C-(K?1:0));if(P.push(" ".repeat(J)+Y),Y.startsWith("/**")&&Y.includes("*/"))continue;let $=null;for(let U=0;U<Y.length;U++){let B=Y[U],T=Y[U-1];if($){if($==="double"&&B==='"'&&T!=="\\"||$==="single"&&B==="'"&&T!=="\\"||$==="template"&&B==="`"&&T!=="\\")$=null;continue}if(B==='"')$="double";else if(B==="'")$="single";else if(B==="`")$="template";else if(yg.has(B))C++;else if(bg.has(B))C=Math.max(0,C-1);else if(B==="<")C++;else if(B===">"&&T!=="=")C=Math.max(0,C-1)}}return P.join(`
121
- `)}function rg(q){let R=q.split(`
122
- `).map((C)=>C.replace(ZU,"")),P=[];for(let C of R){let O=C==="",H=P.length>0&&P[P.length-1]==="",M=P.length>0&&lg.test(P[P.length-1]);if(O){if(P.length===0||H||M)continue;P.push(C);continue}if(QU.test(C)&&H)P.pop();P.push(C)}while(P.length>0&&P[P.length-1]==="")P.pop();return P.join(`
123
- `)}function FU(q){let R=YU(q),P=ig(R);return`${rg(P)}
124
- `}var R1="any",V0="",dg="Record<string, any>",q5="Record<string, never>",ag=/(-|\s+|:)/,sg=/("|')/,og=/CustomEvent/,ng=/^[A-Z]/,tg=/\n/,VU=/=>/,eg=/(?:^|\n)@default\b/,R5=/\n/g,ql=/\s+/g,Rl=/(^|[^.\w])Snippet(?:\s*<|\b)/,Pl=/import\s+type\s+[^;]*\bSnippet\b[^;]*from\s+"svelte";/,Cl=/[.*+?^${}()|[\]\\]/g,Ol=/^const\s+/;function P5(q){return q.replace(Ol,"")}function Hl(q){if(!q)return;return q.replace(R5,`
125
- * `)}function A6(q){if(!q)return"";return`/** ${q} */`}function L6(q){if(!q)return"";return`/**
126
- * ${q.replace(R5,`
88
+ }`;return{...C,slot_props:z}}).sort((C,J)=>{let X=C.name??"",z=J.name??"";if(X<z)return-1;if(X>z)return 1;return 0});if(this.ctx.deferredSlotBlockGenerics.length>0){let C=[...w.map((J)=>J.type??""),...N.map((J)=>J.slot_props??"")].join(`
89
+ `);for(let{name:J,constraint:X}of this.ctx.deferredSlotBlockGenerics){let z=J.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!new RegExp(`\\b${z}\\b`).test(C))continue;this.accumulateGeneric(J,X)}}if(this.ctx.scriptGenericsAttribute){if(this.ctx.generics)p8(this.ctx,"syntax-skipped","generics",'Both the "generics" script attribute and @generics/@template JSDoc tags declare component generics; the script attribute takes precedence and the JSDoc declaration was ignored.',this.ctx.scriptGenericsAttribute.source);this.ctx.generics=J7(this.ctx.scriptGenericsAttribute.value)}let v=O8.mapToArray(this.ctx.moduleExports),g=O8.mapToArray(this.ctx.events).map((C)=>{switch(C.type){case"forwarded":return{...C,element:C.element.name};case"dispatched":return C;default:return C}}).sort((C,J)=>{let X=C.name.localeCompare(J.name);if(X!==0)return X;let z=C.type.localeCompare(J.type);if(z!==0)return z;if(C.type==="forwarded"&&J.type==="forwarded"){let j=C.element.localeCompare(J.element);if(j!==0)return j}return(C.detail??"").localeCompare(J.detail??"")}),f=O8.mapToArray(this.ctx.typedefs),a=O8.mapToArray(this.ctx.contexts);for(let C of w)if(C.typeSource==="unknown")p8(this.ctx,"prop-unknown-type",C.name,`Prop "${C.name}" type could not be inferred; falling back to "${C.type??"any"}".`,C.source);for(let C of this.ctx.jsDocEventNames){if(F.has(C))continue;if(this.ctx.forwardedEvents.has(C))continue;if(this.ctx.props.has(`on${C}`))continue;p8(this.ctx,"event-no-source",C,`@event "${C}" has no matching dispatch or callback prop.`,this.ctx.jsDocEventSources.get(C))}let x={source:q0(this.ctx,0,this.ctx.source?.length),syntaxMode:this.ctx.syntaxMode,...this.ctx.scriptLanguage?{scriptLanguage:this.ctx.scriptLanguage}:{},props:w,moduleExports:v,slots:N,events:g,typedefs:f,generics:this.ctx.generics,rest_props:this.ctx.rest_props,extends:this.ctx.extends,componentComment:this.ctx.componentComment,componentCommentSource:this.ctx.componentCommentSource,contexts:a,customElementTag:this.ctx.customElementTag,diagnostics:this.ctx.diagnosticRecords.slice()},Z8=Y7(this.ctx);if(Z8)x[t1]=Z8;return x}}var P4="sveld",S4="0.36.0";var D4="5.56.3";var N4=D4;var b4=1,T4=new WeakMap;function p1(q,Q={}){let Z=T4.get(q),Y=Z?.get(Q.entryExports);if(Y)return Y;let H=Array.from(q,([,K])=>{let{diagnostics:W,...G}=K;return G}).sort((K,W)=>K.moduleName.localeCompare(W.moduleName)),V={schemaVersion:b4,generator:{name:P4,version:S4,svelteVersion:N4},total:H.length,components:H};if(Q.entryExports&&Q.entryExports.length>0)V.totalExports=Q.entryExports.length,V.exports=Q.entryExports;if(!Z)Z=new Map,T4.set(q,Z);return Z.set(Q.entryExports,V),V}var k4=/^[}\])>]/,lZ=new Set(["{","(","["]),cZ=new Set(["}",")","]"]);var iZ=/\binterface\s+[A-Za-z_$][\w$]*(\s*<[^{};]*>)?\s*$/,E4=/[ \t]+$/,dZ=/\s+$/,pZ=/[{([]$/,oZ=/\s/;function nZ(q){return iZ.test(q.slice(-200))}function sZ(q){let Q="",Z=null,Y=!1;for(let H=0;H<q.length;H++){let V=q[H],K=q[H-1];if(Z){if(Q+=V,Z==="double"&&V==='"'&&K!=="\\"||Z==="single"&&V==="'"&&K!=="\\"||Z==="template"&&V==="`"&&K!=="\\")Z=null;Y=!1;continue}if(V==='"'||V==="'"||V==="`"){Z=V==='"'?"double":V==="'"?"single":"template",Q+=V,Y=!1;continue}if(oZ.test(V)){if(!Y&&Q.length>0)Q+=" ",Y=!0;continue}Q+=V,Y=!1}return Q.trimEnd()}function aZ(q,Q){let Z=0,Y="normal";for(let H=Q;H<q.length;H++){let V=q[H],K=q[H-1];if(Y==="blockComment"){if(K==="*"&&V==="/")Y="normal";continue}if(Y==="double"||Y==="single"){if(V===(Y==="double"?'"':"'")&&K!=="\\")Y="normal";continue}if(Y==="template"){if(V==="`"&&K!=="\\")Y="normal";continue}if(V==="/"&&q[H+1]==="*")Y="blockComment";else if(V==='"')Y="double";else if(V==="'")Y="single";else if(V==="`")Y="template";else if(V==="{")Z++;else if(V==="}"){if(Z--,Z===0)return H}}return-1}function v4(q){let Q="",Z="normal";for(let Y=0;Y<q.length;Y++){let H=q[Y],V=q[Y-1];if(Z==="blockComment"){if(Q+=H,V==="*"&&H==="/")Z="normal";continue}if(Z==="double"||Z==="single"){if(Q+=H,H===(Z==="double"?'"':"'")&&V!=="\\")Z="normal";continue}if(Z==="template"){if(Q+=H,H==="`"&&V!=="\\")Z="normal";continue}if(H==="/"&&q[Y+1]==="*"){Z="blockComment",Q+=H;continue}if(H==='"'){Z="double",Q+=H;continue}if(H==="'"){Z="single",Q+=H;continue}if(H==="`"){Z="template",Q+=H;continue}if(H==="{"){let K=aZ(q,Y);if(K===-1){Q+=H;continue}let W=q.slice(Y+1,K);if(W.trim()===""){Q+="{}",Y=K;continue}if(!W.includes("/*")&&q[Y+1]!==`
90
+ `&&!nZ(Q)){let G=v4(W).trim();if(!G.includes(`
91
+ `)){let R=G.endsWith(";")?G.slice(0,-1):G,O=`{ ${sZ(R)} }`;if(O.length<=120){Q+=O,Y=K;continue}}}if(Q+=H,q[Y+1]!==`
92
+ `)Q+=`
93
+ `;continue}if(H==="}"){if(Q=Q.replace(E4,""),!Q.endsWith(`
94
+ `))Q+=`
95
+ `;Q+=H;continue}if(H===";"){if(Q=Q.replace(dZ,""),Q+=";",q[Y+1]!==`
96
+ `)Q+=`
97
+ `;continue}Q+=H}return Q}function rZ(q){let Q="",Z=null;for(let Y=0;Y<q.length;Y++){let H=q[Y],V=q[Y-1];if(Z){if(Q+=H,Z==="double"&&H==='"'&&V!=="\\"||Z==="single"&&H==="'"&&V!=="\\"||Z==="template"&&H==="`"&&V!=="\\")Z=null;continue}if(H==='"'||H==="'"||H==="`"){Z=H==='"'?"double":H==="'"?"single":"template",Q+=H;continue}if(H===" "&&Q.endsWith(" "))continue;Q+=H}return Q}function tZ(q){let Q=q.split(`
98
+ `),Z=[],Y=0,H=!1,V=0;for(let K of Q){let W=K.trim();if(W===""){Z.push("");continue}if(H){if(Z.push(`${" ".repeat(V)} ${W}`),W.includes("*/"))H=!1;continue}if(W.startsWith("/**")&&!W.includes("*/")){Z.push(" ".repeat(Y)+W),H=!0,V=Y;continue}let G=rZ(W),R=k4.test(G),O=Math.max(0,Y-(R?1:0));if(Z.push(" ".repeat(O)+G),G.startsWith("/**")&&G.includes("*/"))continue;let $=null;for(let M=0;M<G.length;M++){let F=G[M],P=G[M-1];if($){if($==="double"&&F==='"'&&P!=="\\"||$==="single"&&F==="'"&&P!=="\\"||$==="template"&&F==="`"&&P!=="\\")$=null;continue}if(F==='"')$="double";else if(F==="'")$="single";else if(F==="`")$="template";else if(lZ.has(F))Y++;else if(cZ.has(F))Y=Math.max(0,Y-1);else if(F==="<")Y++;else if(F===">"&&P!=="=")Y=Math.max(0,Y-1)}}return Z.join(`
99
+ `)}function eZ(q){let Q=q.split(`
100
+ `).map((Y)=>Y.replace(E4,"")),Z=[];for(let Y of Q){let H=Y==="",V=Z.length>0&&Z[Z.length-1]==="",K=Z.length>0&&pZ.test(Z[Z.length-1]);if(H){if(Z.length===0||V||K)continue;Z.push(Y);continue}if(k4.test(Y)&&V)Z.pop();Z.push(Y)}while(Z.length>0&&Z[Z.length-1]==="")Z.pop();return Z.join(`
101
+ `)}function h4(q){let Q=v4(q),Z=tZ(Q);return`${eZ(Z)}
102
+ `}var J1="any",h8="",qY="Record<string, any>",N6="Record<string, never>",QY=/(-|\s+|:)/,ZY=/("|')/,YY=/CustomEvent/,HY=/^[A-Z]/,JY=/\n/,f4=/=>/,KY=/(?:^|\n)@default\b/,T6=/\n/g,VY=/\s+/g,XY=/(^|[^.\w])Snippet(?:\s*<|\b)/,WY=/import\s+type\s+[^;]*\bSnippet\b[^;]*from\s+"svelte";/,GY=/[.*+?^${}()|[\]\\]/g,zY=/^const\s+/;function b6(q){return q.replace(zY,"")}function jY(q){if(!q)return;return q.replace(T6,`
103
+ * `)}function l0(q){if(!q)return"";return`/** ${q} */`}function c0(q){if(!q)return"";return`/**
104
+ * ${q.replace(T6,`
127
105
  * `)}
128
- */`}function JU(q){if(q===void 0)return;return q===!0?"@deprecated":`@deprecated ${q}`}function Ml(q){let R=JU(q);if(R===void 0)return;return`* ${R.replace(R5,`
106
+ */`}function y4(q){if(q===void 0)return;return q===!0?"@deprecated":`@deprecated ${q}`}function OY(q){let Q=y4(q);if(Q===void 0)return;return`* ${Q.replace(T6,`
129
107
  * `)}
130
- `}function Ql(q,R){if(!R)return[`@${q}`];if(!R.includes(`
131
- `))return[`@${q} ${R}`];return[`@${q}`,...R.split(`
132
- `)]}function KU(q){let R=[];for(let{name:P,body:C}of q??[])R.push(...Ql(P,C));return R}function c9(q,R,P){let C=JU(P),O=KU(R),H=O.length>0;if(!q&&!H&&!C)return"";if(!H&&!C)return q?.includes(`
133
- `)?L6(q):A6(q);let M=[];if(q)M.push(...q.split(`
134
- `));if(M.push(...O),C)M.push(...C.split(`
108
+ `}function UY(q,Q){if(!Q)return[`@${q}`];if(!Q.includes(`
109
+ `))return[`@${q} ${Q}`];return[`@${q}`,...Q.split(`
110
+ `)]}function g4(q){let Q=[];for(let{name:Z,body:Y}of q??[])Q.push(...UY(Z,Y));return Q}function o1(q,Q,Z){let Y=y4(Z),H=g4(Q),V=H.length>0;if(!q&&!V&&!Y)return"";if(!V&&!Y)return q?.includes(`
111
+ `)?c0(q):l0(q);let K=[];if(q)K.push(...q.split(`
112
+ `));if(K.push(...H),Y)K.push(...Y.split(`
135
113
  `));return`/**
136
- * ${M.join(`
114
+ * ${K.join(`
137
115
  * `)}
138
- */`}function Zl(q){let R=KU(q);if(R.length===0)return"";return R.map((P)=>`* ${P}
139
- `).join("")}function j6(q){if(q===void 0)return R1;return`${q}
140
- `}function w6(q){if(q.typedefs.length===0)return V0;return q.typedefs.map((R)=>{return`${R.description?`${L6(R.description)}
141
- `:""}export ${R.ts}`}).join(`
116
+ */`}function RY(q){let Q=g4(q);if(Q.length===0)return"";return Q.map((Z)=>`* ${Z}
117
+ `).join("")}function i0(q){if(q===void 0)return J1;return`${q}
118
+ `}function d0(q){if(q.typedefs.length===0)return h8;return q.typedefs.map((Q)=>{return`${Q.description?`${c0(Q.description)}
119
+ `:""}export ${Q.ts}`}).join(`
142
120
 
143
- `)}function WU(q,R){let P=R.replace(Cl,"\\$&");return new RegExp(`\\b${P}\\b`).test(q)}function Yl(q){if(q===null)return[];return q[0].split(",").map((R,P)=>({name:R.trim(),constraint:(G1(q[1]??"")[P]??R).trim()}))}function Fl(q,R){let P=Yl(q).filter(({name:C})=>WU(R,C));if(P.length===0)return{declSuffix:V0,refSuffix:V0};return{declSuffix:`<${P.map(({constraint:C})=>P5(C)).join(", ")}>`,refSuffix:`<${P.map(({name:C})=>C).join(", ")}>`}}function XU(q){if(!q.contexts||q.contexts.length===0)return V0;let R=q.generics===null?[]:q.generics[0].split(",").map((P,C)=>({name:P.trim(),constraint:(G1(q.generics?.[1]??"")[C]??P).trim()}));return q.contexts.map((P)=>{let C=P.properties.map((F)=>{let Y=F.description?`${A6(F.description)}
144
- `:"",K=F.optional?"?":"";return`${Y}${F.name}${K}: ${F.type};`}).join(`
145
- `),O=P.description?`${L6(P.description)}
146
- `:"",H=R.filter(({name:F})=>P.properties.some((Y)=>WU(Y.type,F))).map(({constraint:F})=>F),M=H.length>0?`<${H.map(P5).join(", ")}>`:"";if(P.properties.length===0)return`${O}export type ${P.typeName} = Record<string, never>;`;return`${O}export type ${P.typeName}${M} = {
147
- ${C}
121
+ `)}function _4(q,Q){let Z=Q.replace(GY,"\\$&");return new RegExp(`\\b${Z}\\b`).test(q)}function BY(q){if(q===null)return[];return q[0].split(",").map((Q,Z)=>({name:Q.trim(),constraint:(X1(q[1]??"")[Z]??Q).trim()}))}function FY(q,Q){let Z=BY(q).filter(({name:Y})=>_4(Q,Y));if(Z.length===0)return{declSuffix:h8,refSuffix:h8};return{declSuffix:`<${Z.map(({constraint:Y})=>b6(Y)).join(", ")}>`,refSuffix:`<${Z.map(({name:Y})=>Y).join(", ")}>`}}function x4(q){if(!q.contexts||q.contexts.length===0)return h8;let Q=q.generics===null?[]:q.generics[0].split(",").map((Z,Y)=>({name:Z.trim(),constraint:(X1(q.generics?.[1]??"")[Y]??Z).trim()}));return q.contexts.map((Z)=>{let Y=Z.properties.map((W)=>{let G=W.description?`${l0(W.description)}
122
+ `:"",R=W.optional?"?":"";return`${G}${W.name}${R}: ${W.type};`}).join(`
123
+ `),H=Z.description?`${c0(Z.description)}
124
+ `:"",V=Q.filter(({name:W})=>Z.properties.some((G)=>_4(G.type,W))).map(({constraint:W})=>W),K=V.length>0?`<${V.map(b6).join(", ")}>`:"";if(Z.properties.length===0)return`${H}export type ${Z.typeName} = Record<string, never>;`;return`${H}export type ${Z.typeName}${K} = {
125
+ ${Y}
148
126
  };`}).join(`
149
127
 
150
- `)}function i9(q){if(ag.test(q))return sg.test(q)?q:`"${q}"`;return q}function GU(q,R){if(!q)return;return`* ${R||q}
151
- `}function C5(q,R,P){return[GU(Hl(q)),Ml(R),Zl(P)].filter(Boolean).join("")}function O5(q){return q.length>0?`/**
152
- ${q}*/`:V0}function Vl(q){let R=new Set([...q.props.filter((w)=>!w.isFunctionDeclaration&&w.kind!=="const").map((w)=>w.name),...Array.from(q.canonicalPropNames??[])]),P=q.props.filter((w)=>!w.isFunctionDeclaration&&w.kind!=="const").map((w)=>{let f=w.value;if(typeof w.value==="string")f=w.value.replace(ql," ");if(w.value===void 0)f="undefined";let D=eg.test(w.description??""),y=[C5(w.description,w.deprecated,w.tags),GU(w.constant,"@constant"),w.isFunction||D?null:`* @default ${f}
153
- `].filter(Boolean).join(""),z=w.constant&&!w.isFunction?w.value:w.type;return`
154
- ${O5(y)}
155
- ${w.name}${w.isRequired?"":"?"}: ${z};`}),C=q.canonicalPropsType?P.filter((w,f)=>{let D=q.props.filter((y)=>!y.isFunctionDeclaration&&y.kind!=="const")[f];return D?!(q.canonicalPropNames?.has(D.name)??!1):!0}):P,O=(q.slots||[]).filter((w)=>!w.default&&w.name!=null&&!R.has(w.name)).map((w)=>{let f=w.name,D=i9(f),y=c9(w.description,w.tags,w.deprecated),z=y?`${y}
156
- `:"",N=w.slot_props&&w.slot_props!=="Record<string, never>"?`(this: void, ...args: [${w.slot_props}]) => void`:"(this: void) => void";return`
157
- ${z}${D}?: ${N};`}),H=(q.slots||[]).find((w)=>w.default||w.name===null),M=H&&!R.has("children")?(()=>{let w=c9(H.description,H.tags,H.deprecated),f=w?`${w}
158
- `:"",y=H.slot_props&&H.slot_props!=="Record<string, never>"?`(this: void, ...args: [${H.slot_props}]) => void`:"(this: void) => void";return`
159
- ${f}children?: ${y};`})():"",F=q.events?zl({events:q.events},R):[],Y=[...O,M,...F].filter(Boolean),K=[...C,...Y].join(`
160
- `),J=`${q.moduleName}Props`,$=V0,U=q.generics?`<${G1(q.generics[1]).map((w)=>P5(w.trim())).join(", ")}>`:"",B=q.generics?`<${q.generics[0]}>`:"",T=q.canonicalPropsType?`
161
- type $Props${U} = ${q.canonicalPropsType}${K.trim()===""?"":` & {${K}
128
+ `)}function n1(q){if(QY.test(q))return ZY.test(q)?q:`"${q}"`;return q}function u4(q,Q){if(!q)return;return`* ${Q||q}
129
+ `}function k6(q,Q,Z){return[u4(jY(q)),OY(Q),RY(Z)].filter(Boolean).join("")}function E6(q){return q.length>0?`/**
130
+ ${q}*/`:h8}function MY(q){let Q=new Set([...q.props.filter((w)=>!w.isFunctionDeclaration&&w.kind!=="const").map((w)=>w.name),...Array.from(q.canonicalPropNames??[])]),Z=q.props.filter((w)=>!w.isFunctionDeclaration&&w.kind!=="const").map((w)=>{let N=w.value;if(typeof w.value==="string")N=w.value.replace(VY," ");if(w.value===void 0)N="undefined";let v=KY.test(w.description??""),g=[k6(w.description,w.deprecated,w.tags),u4(w.constant,"@constant"),w.isFunction||v?null:`* @default ${N}
131
+ `].filter(Boolean).join(""),f=w.constant&&!w.isFunction?w.value:w.type;return`
132
+ ${E6(g)}
133
+ ${w.name}${w.isRequired?"":"?"}: ${f};`}),Y=q.canonicalPropsType?Z.filter((w,N)=>{let v=q.props.filter((g)=>!g.isFunctionDeclaration&&g.kind!=="const")[N];return v?!(q.canonicalPropNames?.has(v.name)??!1):!0}):Z,H=(q.slots||[]).filter((w)=>!w.default&&w.name!=null&&!Q.has(w.name)).map((w)=>{let N=w.name,v=n1(N),g=o1(w.description,w.tags,w.deprecated),f=g?`${g}
134
+ `:"",x=w.slot_props&&w.slot_props!=="Record<string, never>"?`(this: void, ...args: [${w.slot_props}]) => void`:"(this: void) => void";return`
135
+ ${f}${v}?: ${x};`}),V=(q.slots||[]).find((w)=>w.default||w.name===null),K=V&&!Q.has("children")?(()=>{let w=o1(V.description,V.tags,V.deprecated),N=w?`${w}
136
+ `:"",g=V.slot_props&&V.slot_props!=="Record<string, never>"?`(this: void, ...args: [${V.slot_props}]) => void`:"(this: void) => void";return`
137
+ ${N}children?: ${g};`})():"",W=q.events?IY({events:q.events},Q):[],G=[...H,K,...W].filter(Boolean),R=[...Y,...G].join(`
138
+ `),O=`${q.moduleName}Props`,$=h8,M=q.generics?`<${X1(q.generics[1]).map((w)=>b6(w.trim())).join(", ")}>`:"",F=q.generics?`<${q.generics[0]}>`:"",P=q.canonicalPropsType?`
139
+ type $Props${M} = ${q.canonicalPropsType}${R.trim()===""?"":` & {${R}
162
140
  }`};
163
141
  `:`
164
- type $Props${U} = {
165
- ${K}
142
+ type $Props${M} = {
143
+ ${R}
166
144
  };
167
- `;if(q.rest_props?.type==="Element"){let w;if(q.rest_props.name==="svelte:element")if(q.rest_props.thisValue)w=`SvelteHTMLElements["${q.rest_props.thisValue}"]`;else w="HTMLAttributes<HTMLElement>";else w=q.rest_props.name.split("|").map((y)=>{return`SvelteHTMLElements["${y.trim()}"]`}).join(" & ");let f="[key: `data-${string}`]: unknown;",D=q.rest_props.description?q.rest_props.description.includes(`
168
- `)?`${L6(q.rest_props.description)}
169
- `:`${A6(q.rest_props.description)}
145
+ `;if(q.rest_props?.type==="Element"){let w;if(q.rest_props.name==="svelte:element")if(q.rest_props.thisValue)w=`SvelteHTMLElements["${q.rest_props.thisValue}"]`;else w="HTMLAttributes<HTMLElement>";else w=q.rest_props.name.split("|").map((g)=>{return`SvelteHTMLElements["${g.trim()}"]`}).join(" & ");let N="[key: `data-${string}`]: unknown;",v=q.rest_props.description?q.rest_props.description.includes(`
146
+ `)?`${c0(q.rest_props.description)}
147
+ `:`${l0(q.rest_props.description)}
170
148
  `:"";if(q.extends===void 0)$=`
171
- ${D}${w?`type $RestProps = ${w};
149
+ ${v}${w?`type $RestProps = ${w};
172
150
  `:""}
173
- ${q.canonicalPropsType?`type $Props${U} = (${q.canonicalPropsType}) & {${K}
151
+ ${q.canonicalPropsType?`type $Props${M} = (${q.canonicalPropsType}) & {${R}
174
152
 
175
- ${f}
176
- };`:`type $Props${U} = {
177
- ${K}
153
+ ${N}
154
+ };`:`type $Props${M} = {
155
+ ${R}
178
156
 
179
- ${f}
157
+ ${N}
180
158
  };`}
181
159
 
182
- export type ${J}${U} = Omit<$RestProps, keyof $Props${B}> & $Props${B};
160
+ export type ${O}${M} = Omit<$RestProps, keyof $Props${F}> & $Props${F};
183
161
  `;else $=`
184
- ${D}${w?`type $RestProps = ${w};
162
+ ${v}${w?`type $RestProps = ${w};
185
163
  `:""}
186
- ${q.canonicalPropsType?`type $Props${U} = (${q.canonicalPropsType}) & {${K}
164
+ ${q.canonicalPropsType?`type $Props${M} = (${q.canonicalPropsType}) & {${R}
187
165
 
188
- ${f}
189
- };`:`type $Props${U} = {
190
- ${K}
166
+ ${N}
167
+ };`:`type $Props${M} = {
168
+ ${R}
191
169
 
192
- ${f}
170
+ ${N}
193
171
  };`}
194
172
 
195
- export type ${J}${U} = Omit<$RestProps, keyof ($Props${B} & ${q.extends.interface})> & $Props${B} & ${q.extends.interface};
196
- `}else if(K.trim()===""&&q.extends===void 0&&!q.canonicalPropsType)$=`
197
- export type ${J}${U} = ${q5};
173
+ export type ${O}${M} = Omit<$RestProps, keyof ($Props${F} & ${q.extends.interface})> & $Props${F} & ${q.extends.interface};
174
+ `}else if(R.trim()===""&&q.extends===void 0&&!q.canonicalPropsType)$=`
175
+ export type ${O}${M} = ${N6};
198
176
  `;else if(q.canonicalPropsType)$=`
199
- ${T}
200
- export type ${J}${U} = ${q.extends===void 0?"":`${q.extends.interface} & `}$Props${B};
177
+ ${P}
178
+ export type ${O}${M} = ${q.extends===void 0?"":`${q.extends.interface} & `}$Props${F};
201
179
  `;else $=`
202
- export type ${J}${U} = ${q.extends===void 0?"":`${q.extends.interface} & `} {
203
- ${K}
180
+ export type ${O}${M} = ${q.extends===void 0?"":`${q.extends.interface} & `} {
181
+ ${R}
204
182
  };
205
- `;return{props_name:J,prop_def:$}}function Jl(q){if(q.slots.length===0)return q5;let R=q.slots.map(({name:P,slot_props:C,...O})=>{let H=O.default||P===null?"default":i9(P??""),M=c9(O.description,O.tags,O.deprecated);return`${M?`${M}
206
- `:""}${i9(H)}: ${j6(C)};`}).join(`
207
- `);return q.slots.length===1?`{${R}}`:`{
208
- ${R}
209
- }`}var Kl=()=>{return"WindowEventMap"},Wl=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseover","mouseout","mouseenter","mouseleave","contextmenu","wheel","keydown","keyup","keypress","submit","change","input","focus","blur","focusin","focusout","reset","select","touchstart","touchend","touchmove","touchcancel","drag","dragstart","dragend","dragover","dragenter","dragleave","drop","pointerdown","pointerup","pointermove","pointerover","pointerout","pointerenter","pointerleave","pointercancel","gotpointercapture","lostpointercapture","play","pause","ended","volumechange","timeupdate","loadeddata","loadedmetadata","canplay","canplaythrough","seeking","seeked","playing","waiting","stalled","suspend","abort","error","emptied","ratechange","durationchange","loadstart","progress","loadend","animationstart","animationend","animationiteration","animationcancel","transitionstart","transitionend","transitionrun","transitioncancel","scroll","resize","load","unload","beforeunload","cut","copy","paste","compositionstart","compositionupdate","compositionend"]);function e2(q=R1){if(og.test(q))return q;return`CustomEvent<${q}>`}function Xl(q){return Wl.has(q)}function zU(q){switch(q.type){case"dispatched":return e2(q.detail);case"forwarded":{let R=q.element,C=!(R&&ng.test(R))||Xl(q.name),O=q.detail!==void 0&&q.detail!=="undefined"&&!(q.detail==="null"&&C),H=q.detail==="null"&&!C;if(O||H)return e2(q.detail);else if(C)return`${Kl()}["${q.name}"]`;else return e2()}default:return q}}function Gl(q){if(q.events.length===0)return dg;let R=q.events.map((P)=>{let C="",O=c9(P.description,P.tags,P.deprecated);if(O)C=`${O}
210
- `;return`${C}${i9(P.name)}: ${zU(P)};
211
- `}).join("");return q.events.length===1?`{${R}}`:`{
212
- ${R}}`}function zl(q,R){return q.events.map((P)=>{let C=`on${P.name}`;if(R.has(C))return;let O="",H=c9(P.description,P.tags,P.deprecated);if(H)O=`${H}
183
+ `;return{props_name:O,prop_def:$}}function $Y(q){if(q.slots.length===0)return N6;let Q=q.slots.map(({name:Z,slot_props:Y,...H})=>{let V=H.default||Z===null?"default":n1(Z??""),K=o1(H.description,H.tags,H.deprecated);return`${K?`${K}
184
+ `:""}${n1(V)}: ${i0(Y)};`}).join(`
185
+ `);return q.slots.length===1?`{${Q}}`:`{
186
+ ${Q}
187
+ }`}var LY=()=>"WindowEventMap",CY=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseover","mouseout","mouseenter","mouseleave","contextmenu","wheel","keydown","keyup","keypress","submit","change","input","focus","blur","focusin","focusout","reset","select","touchstart","touchend","touchmove","touchcancel","drag","dragstart","dragend","dragover","dragenter","dragleave","drop","pointerdown","pointerup","pointermove","pointerover","pointerout","pointerenter","pointerleave","pointercancel","gotpointercapture","lostpointercapture","play","pause","ended","volumechange","timeupdate","loadeddata","loadedmetadata","canplay","canplaythrough","seeking","seeked","playing","waiting","stalled","suspend","abort","error","emptied","ratechange","durationchange","loadstart","progress","loadend","animationstart","animationend","animationiteration","animationcancel","transitionstart","transitionend","transitionrun","transitioncancel","scroll","resize","load","unload","beforeunload","cut","copy","paste","compositionstart","compositionupdate","compositionend"]);function D6(q=J1){if(YY.test(q))return q;return`CustomEvent<${q}>`}function AY(q){return CY.has(q)}function m4(q){switch(q.type){case"dispatched":return D6(q.detail);case"forwarded":{let Q=q.element,Y=!(Q&&HY.test(Q))||AY(q.name),H=q.detail!==void 0&&q.detail!=="undefined"&&!(q.detail==="null"&&Y),V=q.detail==="null"&&!Y;if(H||V)return D6(q.detail);else if(Y)return`${LY()}["${q.name}"]`;else return D6()}default:return q}}function wY(q){if(q.events.length===0)return qY;let Q=q.events.map((Z)=>{let Y="",H=o1(Z.description,Z.tags,Z.deprecated);if(H)Y=`${H}
188
+ `;return`${Y}${n1(Z.name)}: ${m4(Z)};
189
+ `}).join("");return q.events.length===1?`{${Q}}`:`{
190
+ ${Q}}`}function IY(q,Q){return q.events.map((Z)=>{let Y=`on${Z.name}`;if(Q.has(Y))return;let H="",V=o1(Z.description,Z.tags,Z.deprecated);if(V)H=`${V}
213
191
  `;return`
214
- ${O}${i9(C)}?: (event: ${zU(P)}) => void;`}).filter((P)=>P!==void 0)}function Bl(q){let R=q.type==="() => any";if(q.type&&VU.test(q.type)&&!R)return q.type;else if(q.params&&q.params.length>0){let C=q.params.map((H)=>{let M=H.optional?"?":"";return`${H.name}${M}: ${H.type}`}).join(", "),O=q.returnType||R1;return`(${C}) => ${O}`}else if(q.returnType)return`() => ${q.returnType}`;else return q.type||R1}function BU(q){return q.props.filter((R)=>R.isFunctionDeclaration||R.kind==="const").map((R)=>{let P=C5(R.description,R.deprecated,R.tags),C=Bl(R);return`
215
- ${O5(P)}
216
- ${R.name}: ${C};`}).join(`
217
- `)}function Ul(q){let R=`${q.moduleName}Exports`,P=BU({props:q.props});if(P.trim()==="")return{exports_name:R,exports_ref:R,exports_def:`export type ${R} = ${q5};`};let{declSuffix:C,refSuffix:O}=Fl(q.generics,P);return{exports_name:R,exports_ref:`${R}${O}`,exports_def:`export type ${R}${C} = {${P}
218
- };`}}function $l(q){let R=q.props.filter((P)=>P.bindable===!0||P.binding==="writable").map((P)=>`"${P.name}"`);return R.length===0?V0:R.join(" | ")}function Al(q){let R=q.moduleName==="default"?"$$Component":q.moduleName,P=q.bindings===V0?'""':q.bindings;return`declare const ${R}: Component<
192
+ ${H}${n1(Y)}?: (event: ${m4(Z)}) => void;`}).filter((Z)=>Z!==void 0)}function PY(q){let Q=q.type==="() => any";if(q.type&&f4.test(q.type)&&!Q)return q.type;else if(q.params&&q.params.length>0){let Y=q.params.map((V)=>{let K=V.optional?"?":"";return`${V.name}${K}: ${V.type}`}).join(", "),H=q.returnType||J1;return`(${Y}) => ${H}`}else if(q.returnType)return`() => ${q.returnType}`;else return q.type||J1}function l4(q){return q.props.filter((Q)=>Q.isFunctionDeclaration||Q.kind==="const").map((Q)=>{let Z=k6(Q.description,Q.deprecated,Q.tags),Y=PY(Q);return`
193
+ ${E6(Z)}
194
+ ${Q.name}: ${Y};`}).join(`
195
+ `)}function SY(q){let Q=`${q.moduleName}Exports`,Z=l4({props:q.props});if(Z.trim()==="")return{exports_name:Q,exports_ref:Q,exports_def:`export type ${Q} = ${N6};`};let{declSuffix:Y,refSuffix:H}=FY(q.generics,Z);return{exports_name:Q,exports_ref:`${Q}${H}`,exports_def:`export type ${Q}${Y} = {${Z}
196
+ };`}}function DY(q){let Q=q.props.filter((Z)=>Z.bindable===!0||Z.binding==="writable").map((Z)=>`"${Z.name}"`);return Q.length===0?h8:Q.join(" | ")}function NY(q){let Q=q.moduleName==="default"?"$$Component":q.moduleName,Z=q.bindings===h8?'""':q.bindings;return`declare const ${Q}: Component<
219
197
  ${q.propsRef},
220
198
  ${q.exportsRef},
221
- ${P}
199
+ ${Z}
222
200
  >;
223
- export default ${R};`}function Ll(q){let R=q.moduleName==="default"?"$$Component":q.moduleName,P=`${R}Component`,C=q.bindings===V0?'""':q.bindings;return`interface ${P} {
201
+ export default ${Q};`}function TY(q){let Q=q.moduleName==="default"?"$$Component":q.moduleName,Z=`${Q}Component`,Y=q.bindings===h8?'""':q.bindings;return`interface ${Z} {
224
202
  new ${q.generic}(
225
203
  options: ComponentConstructorOptions<${q.propsRef}>
226
204
  ): SvelteComponent<${q.propsRef}> & ${q.exportsRef};
@@ -233,58 +211,58 @@ ${R}}`}function zl(q,R){return q.events.map((P)=>{let C=`on${P.name}`;if(R.has(C
233
211
  $set?(props: Partial<${q.propsRef}>): void;
234
212
  } & ${q.exportsRef};
235
213
  element?: typeof HTMLElement;
236
- z_$$bindings?: ${C};
214
+ z_$$bindings?: ${Y};
237
215
  }
238
- declare const ${R}: ${P};
239
- export default ${R};`}function jl(q){if(q.extends===void 0)return"";return`import type { ${q.extends.interface} } from ${q.extends.import};`}function wl(q){if(!q.componentComment)return"";if(!tg.test(q.componentComment))return A6(q.componentComment.trim());return`/*${q.componentComment.split(`
240
- `).map((R)=>`* ${R}`).join(`
216
+ declare const ${Q}: ${Z};
217
+ export default ${Q};`}function bY(q){if(q.extends===void 0)return"";return`import type { ${q.extends.interface} } from ${q.extends.import};`}function kY(q){if(!q.componentComment)return"";if(!JY.test(q.componentComment))return l0(q.componentComment.trim());return`/*${q.componentComment.split(`
218
+ `).map((Q)=>`* ${Q}`).join(`
241
219
  `)}
242
- */`}function Il(q){return q.moduleExports.map((R)=>{let P=C5(R.description,R.deprecated,R.tags),C,O=R.type&&VU.test(R.type),H=R.type==="() => any";if(R.kind==="const"&&!O)C=`export declare const ${R.name}: ${R.type||R1};
243
- `;else if(R.params&&R.params.length>0){let F=R.params.map((K)=>{let J=K.optional?"?":"";return`${K.name}${J}: ${K.type}`}).join(", "),Y=R.returnType||R1;C=`export declare function ${R.name}(${F}): ${Y};`}else if(R.returnType)C=`export declare function ${R.name}(): ${R.returnType};`;else if(O&&R.type&&!H){let[M,F,...Y]=R.type.split("=>"),K=Y.map((J)=>` => ${J.trim()}`).join("");C=`export declare function ${R.name}${M.trimEnd()}: ${F.trim()}${K};`}else if(O&&R.type){let[M,F,...Y]=R.type.split("=>"),K=Y.map((J)=>` => ${J.trim()}`).join("");C=`export declare function ${R.name}${M.trimEnd()}: ${F.trim()}${K};`}else if(R.kind==="const")C=`export declare const ${R.name}: ${R.type||R1};
244
- `;else C=`export type ${R.name} = ${R.type||R1};`;return`
245
- ${O5(P)}
246
- ${C}`}).join(`
247
- `)}var fl=120;function Sl(q){let P=`export default class ${q.moduleName==="default"?"":q.moduleName}${q.generic} extends SvelteComponentTyped<`,C=[q.genericProps,q.events,q.slots];if(q.accessors.trim()===""&&C.every((O)=>!O.includes(`
248
- `))){let O=`${P}${C.join(", ")}> {}`;if(O.length<=fl)return O}return`${P}
220
+ */`}function EY(q){return q.moduleExports.map((Q)=>{let Z=k6(Q.description,Q.deprecated,Q.tags),Y,H=Q.type&&f4.test(Q.type),V=Q.type==="() => any";if(Q.kind==="const"&&!H)Y=`export declare const ${Q.name}: ${Q.type||J1};
221
+ `;else if(Q.params&&Q.params.length>0){let W=Q.params.map((R)=>{let O=R.optional?"?":"";return`${R.name}${O}: ${R.type}`}).join(", "),G=Q.returnType||J1;Y=`export declare function ${Q.name}(${W}): ${G};`}else if(Q.returnType)Y=`export declare function ${Q.name}(): ${Q.returnType};`;else if(H&&Q.type&&!V){let[K,W,...G]=Q.type.split("=>"),R=G.map((O)=>` => ${O.trim()}`).join("");Y=`export declare function ${Q.name}${K.trimEnd()}: ${W.trim()}${R};`}else if(H&&Q.type){let[K,W,...G]=Q.type.split("=>"),R=G.map((O)=>` => ${O.trim()}`).join("");Y=`export declare function ${Q.name}${K.trimEnd()}: ${W.trim()}${R};`}else if(Q.kind==="const")Y=`export declare const ${Q.name}: ${Q.type||J1};
222
+ `;else Y=`export type ${Q.name} = ${Q.type||J1};`;return`
223
+ ${E6(Z)}
224
+ ${Y}`}).join(`
225
+ `)}var vY=120;function hY(q){let Z=`export default class ${q.moduleName==="default"?"":q.moduleName}${q.generic} extends SvelteComponentTyped<`,Y=[q.genericProps,q.events,q.slots];if(q.accessors.trim()===""&&Y.every((H)=>!H.includes(`
226
+ `))){let H=`${Z}${Y.join(", ")}> {}`;if(H.length<=vY)return H}return`${Z}
249
227
  ${q.genericProps},
250
228
  ${q.events},
251
229
  ${q.slots}
252
230
  > {
253
231
  ${q.accessors}
254
- }`}function vl(q,R){let P=PU(q),{moduleName:C,typedefs:O,generics:H,props:M,moduleExports:F,slots:Y,events:K,rest_props:J,extends:$,componentComment:U,contexts:B,syntaxMode:T}=q,w=R?.format==="component",f=H!==null,{props_name:D,prop_def:y}=Vl({moduleName:C,props:M,rest_props:J,extends:$,generics:H,slots:Y,canonicalPropNames:new Set(P?.canonicalPropNames??[]),canonicalPropsType:P?.canonicalPropsType,events:w&&T==="legacy"?K:void 0}),z=H?`<${H[1]}>`:"",S=H?`${D}<${H[0]}>`:D,N=Il({moduleExports:F}),d=w6({typedefs:O}),k=XU({contexts:B,generics:H}),Q=(P?.typeImportStatements??[]).join(`
255
- `),Z=(P?.localTypeDeclarations??[]).join(`
232
+ }`}function fY(q,Q){let Z=t0(q),{moduleName:Y,typedefs:H,generics:V,props:K,moduleExports:W,slots:G,events:R,rest_props:O,extends:$,componentComment:M,contexts:F,syntaxMode:P}=q,w=Q?.format==="component",N=V!==null,{props_name:v,prop_def:g}=MY({moduleName:Y,props:K,rest_props:O,extends:$,generics:V,slots:G,canonicalPropNames:new Set(Z?.canonicalPropNames??[]),canonicalPropsType:Z?.canonicalPropsType,events:w&&P==="legacy"?R:void 0}),f=V?`<${V[1]}>`:"",a=V?`${v}<${V[0]}>`:v,x=EY({moduleExports:W}),Z8=d0({typedefs:H}),C=x4({contexts:F,generics:V}),J=(Z?.typeImportStatements??[]).join(`
233
+ `),X=(Z?.localTypeDeclarations??[]).join(`
256
234
 
257
- `),{exports_ref:V,exports_def:X}=w?Ul({props:M,moduleName:C,generics:H}):{exports_ref:V0,exports_def:V0},A=w?$l({props:M}):V0,L=!Pl.test(Q)&&Rl.test(`${y}
258
- ${N}
259
- ${d}
260
- ${k}
261
- ${Z}
262
- ${X}`),I=J?.type==="Element"&&(J.name!=="svelte:element"||J.name==="svelte:element"&&J.thisValue),b=J?.type==="Element"&&J.name==="svelte:element"&&!J.thisValue,j=[w?f?`import type { SvelteComponent, ComponentConstructorOptions, ComponentInternals${L?", Snippet":""} } from "svelte";`:`import type { Component${L?", Snippet":""} } from "svelte";`:`import { SvelteComponentTyped${L?", type Snippet":""} } from "svelte";`,I?'import type { SvelteHTMLElements } from "svelte/elements";':"",b?'import type { HTMLAttributes } from "svelte/elements";':"",Q,jl({extends:$})].filter(Boolean).join(`
263
- `),a=w?f?Ll({moduleName:C,generic:z,propsRef:S,exportsRef:V,bindings:A}):Al({moduleName:C,propsRef:S,exportsRef:V,bindings:A}):Sl({moduleName:C,generic:z,genericProps:S,events:Gl({events:K}),slots:Jl({slots:Y}),accessors:BU({props:M})}),P8=[N,d,Z,k,y,X,[wl({componentComment:U}),a].filter(Boolean).join(`
264
- `)].map((q8)=>q8.trim()).filter(Boolean).join(`
235
+ `),{exports_ref:z,exports_def:j}=w?SY({props:K,moduleName:Y,generics:V}):{exports_ref:h8,exports_def:h8},B=w?DY({props:K}):h8,L=!WY.test(J)&&XY.test(`${g}
236
+ ${x}
237
+ ${Z8}
238
+ ${C}
239
+ ${X}
240
+ ${j}`),A=O?.type==="Element"&&(O.name!=="svelte:element"||O.name==="svelte:element"&&O.thisValue),D=O?.type==="Element"&&O.name==="svelte:element"&&!O.thisValue,I=[w?N?`import type { SvelteComponent, ComponentConstructorOptions, ComponentInternals${L?", Snippet":""} } from "svelte";`:`import type { Component${L?", Snippet":""} } from "svelte";`:`import { SvelteComponentTyped${L?", type Snippet":""} } from "svelte";`,A?'import type { SvelteHTMLElements } from "svelte/elements";':"",D?'import type { HTMLAttributes } from "svelte/elements";':"",J,bY({extends:$})].filter(Boolean).join(`
241
+ `),h=w?N?TY({moduleName:Y,generic:f,propsRef:a,exportsRef:z,bindings:B}):NY({moduleName:Y,propsRef:a,exportsRef:z,bindings:B}):hY({moduleName:Y,generic:f,genericProps:a,events:wY({events:R}),slots:$Y({slots:G}),accessors:l4({props:K})}),c=[x,Z8,X,C,g,j,[kY({componentComment:M}),h].filter(Boolean).join(`
242
+ `)].map((m)=>m.trim()).filter(Boolean).join(`
265
243
 
266
- `);return FU([j,P8].filter(Boolean).join(`
244
+ `);return h4([I,c].filter(Boolean).join(`
267
245
 
268
- `))}var H5=/`/g,I6=/\s+/g,B0="--",UU=`| Prop name | Required | Kind | Reactive | Binding | Type | Default value | Description |
246
+ `))}var v6=/`/g,p0=/\s+/g,x8="--",c4=`| Prop name | Required | Kind | Reactive | Binding | Type | Default value | Description |
269
247
  | :- | :- | :- | :- | :- | :- | :- | :- |
270
- `,$U=`| Slot name | Default | Props | Fallback | Description |
248
+ `,i4=`| Slot name | Default | Props | Fallback | Description |
271
249
  | :- | :- | :- | :- | :- |
272
- `,AU=`| Event name | Type | Detail | Description |
250
+ `,d4=`| Event name | Type | Detail | Description |
273
251
  | :- | :- | :- | :- |
274
- `,LU=`| Name | Kind | Type | Description |
252
+ `,p4=`| Name | Kind | Type | Description |
275
253
  | :- | :- | :- | :- |
276
- `,f6=/\|/g,Tl=/</g,Nl=/>/g,p1=/\n/g;function c1(q){if(q===void 0)return B0;return`<code>${q.replace(f6,"&#124;")}</code>`}function r9(q){return q.replace(Tl,"&lt;").replace(Nl,"&gt;")}function jU(q){if(q===void 0)return B0;return`<code>${q.replace(H5,"\\`").replace(f6,"&#124;")}</code>`}function S6(q,R){if(R===void 0)return q;let P=typeof R==="string"&&R.trim().length>0?`: ${r9(R).replace(p1," ").replace(f6,"&#124;")}`:"";return`<s>${q}</s><br />**Deprecated**${P}`}function v6(q){if(q===void 0||q.trim().length===0)return B0;return r9(q).replace(p1,"<br />")}function wU(q){if(q===void 0||q==="{}")return B0;return c1(j6(q).replace(p1," "))}function IU(q){if(q===void 0)return B0;return c1(r9(q).replace(p1,"<br />"))}function fU(q,R){let P=[];if(q!==void 0&&q.trim().length>0)P.push(r9(q));for(let{name:C,body:O}of R??[]){let H=O?.trim();P.push(H?`@${C} ${r9(H)}`:`@${C}`)}if(P.length===0)return B0;return P.join(`
277
- `).replace(f6,"&#124;").replace(p1,"<br />")}function SU(q){if(q===void 0)return B0;return c1(q.replace(p1," "))}function Q5(q,R,P){if(q.append("h1","Component Index"),q.append("h2","Components").tableOfContents(),q.append("divider"),P&&P.length>0)Dl(q,P);let C=p9(R);for(let O of C.components)ul(q,O)}function Dl(q,R){q.append("h2","Exports"),q.append("raw",LU);for(let P of R){let C=(P.type??P.value)?.replace(I6," ").trim();q.append("raw",`| ${P.name} | ${`<code>${P.kind}</code>`} | ${c1(C)} | ${v6(P.description)} |
254
+ `,o0=/\|/g,yY=/</g,gY=/>/g,A1=/\n/g;function R1(q){if(q===void 0)return x8;return`<code>${q.replace(o0,"&#124;")}</code>`}function s1(q){return q.replace(yY,"&lt;").replace(gY,"&gt;")}function o4(q){if(q===void 0)return x8;return`<code>${q.replace(v6,"\\`").replace(o0,"&#124;")}</code>`}function n0(q,Q){if(Q===void 0)return q;let Z=typeof Q==="string"&&Q.trim().length>0?`: ${s1(Q).replace(A1," ").replace(o0,"&#124;")}`:"";return`<s>${q}</s><br />**Deprecated**${Z}`}function s0(q){if(q===void 0||q.trim().length===0)return x8;return s1(q).replace(A1,"<br />")}function n4(q){if(q===void 0||q==="{}")return x8;return R1(i0(q).replace(A1," "))}function s4(q){if(q===void 0)return x8;return R1(s1(q).replace(A1,"<br />"))}function a4(q,Q){let Z=[];if(q!==void 0&&q.trim().length>0)Z.push(s1(q));for(let{name:Y,body:H}of Q??[]){let V=H?.trim();Z.push(V?`@${Y} ${s1(V)}`:`@${Y}`)}if(Z.length===0)return x8;return Z.join(`
255
+ `).replace(o0,"&#124;").replace(A1,"<br />")}function r4(q){if(q===void 0)return x8;return R1(q.replace(A1," "))}function f6(q,Q,Z){if(q.append("h1","Component Index"),q.append("h2","Components").tableOfContents(),q.append("divider"),Z&&Z.length>0)_Y(q,Z);let Y=p1(Q);for(let H of Y.components)xY(q,H)}function _Y(q,Q){q.append("h2","Exports"),q.append("raw",p4);for(let Z of Q){let Y=(Z.type??Z.value)?.replace(p0," ").trim();q.append("raw",`| ${Z.name} | ${`<code>${Z.kind}</code>`} | ${R1(Y)} | ${s0(Z.description)} |
278
256
  `)}q.append("raw",`
279
- `),q.append("divider")}function M5(q,R,P,C){if(R.length>0)P(),q.append("raw",`
280
- `);else q.append("p",C??"None.")}function ul(q,R){if(q.append("h2",`\`${R.moduleName}\``),R.typedefs.length>0)q.append("h3","Types").append("raw",`\`\`\`ts
281
- ${w6({typedefs:R.typedefs})}
257
+ `),q.append("divider")}function h6(q,Q,Z,Y){if(Q.length>0)Z(),q.append("raw",`
258
+ `);else q.append("p",Y??"None.")}function xY(q,Q){if(q.append("h2",`\`${Q.moduleName}\``),Q.generics)q.append("p",`**Type parameters:** ${R1(`<${Q.generics[1]}>`)}`);if(Q.typedefs.length>0)q.append("h3","Types").append("raw",`\`\`\`ts
259
+ ${d0({typedefs:Q.typedefs})}
282
260
  \`\`\`
283
261
 
284
- `);q.append("h3","Props"),M5(q,R.props,()=>{q.append("raw",UU);let P=[...R.props].sort((C)=>{if(C.reactive)return-1;if(C.constant)return 1;return 0});for(let C of P)q.append("raw",`| ${S6(C.name,C.deprecated)} | ${C.isRequired?"Yes":"No"} | ${`<code>${C.kind}</code>`} | ${C.reactive?"Yes":"No"} | ${C.binding??"--"} | ${c1(C.type)} | ${jU(C.value)} | ${v6(C.description)} |
285
- `)}),q.append("h3","Slots"),M5(q,R.slots,()=>{q.append("raw",$U);for(let P of R.slots)q.append("raw",`| ${S6(P.default?B0:P.name??B0,P.deprecated)} | ${P.default?"Yes":"No"} | ${wU(P.slot_props)} | ${IU(P.fallback)} | ${fU(P.description,P.tags)} |
286
- `)}),q.append("h3","Events"),M5(q,R.events,()=>{q.append("raw",AU);for(let P of R.events)q.append("raw",`| ${S6(P.name,P.deprecated)} | ${P.type} | ${P.type==="dispatched"?SU(P.detail):B0} | ${v6(P.description)} |
287
- `)})}var El=new Set(["string","number","boolean"]);function kl(q){return q.map((R)=>({kind:"field",name:R.name,...R.type?{type:{text:R.type}}:{},...R.value===void 0?{}:{default:R.value},...R.description?{description:R.description}:{},...R.deprecated===void 0?{}:{deprecated:R.deprecated}}))}function yl(q){let R=new Map;for(let C of q){if(!C.type||!El.has(C.type.trim()))continue;let O=C.name.toLowerCase(),H=R.get(O);if(H)H.push(C);else R.set(O,[C])}let P=[];for(let[C,O]of R){if(O.length!==1)continue;let H=O[0];P.push({name:C,fieldName:H.name,type:{text:H.type},...H.value===void 0?{}:{default:H.value},...H.description?{description:H.description}:{}})}return P}function bl(q){return q.filter((R)=>R.type==="dispatched").map((R)=>({name:R.name,type:{text:`CustomEvent<${R.detail??"unknown"}>`},...R.description?{description:R.description}:{},...R.deprecated===void 0?{}:{deprecated:R.deprecated}}))}function hl(q){return q.map((R)=>({name:R.default?"":R.name??"",...R.description?{description:R.description}:{},...R.deprecated===void 0?{}:{deprecated:R.deprecated}}))}function gl(q){let R={kind:"class",name:q.moduleName,...q.componentComment?{description:q.componentComment}:{},members:kl(q.props),attributes:yl(q.props),events:bl(q.events),slots:hl(q.slots)};if(q.customElementTag)R.tagName=q.customElementTag,R.customElement=!0;return R}function ll(q,R){let P=[{kind:"js",name:q.moduleName,declaration:{name:q.moduleName,module:R}}];if(q.customElementTag)P.push({kind:"custom-element-definition",name:q.customElementTag,declaration:{name:q.moduleName,module:R}});return P}function _l(q,R={}){let P=p9(q),C=R.resolveModulePath??((H)=>H.filePath);return{schemaVersion:"1.0.0",modules:P.components.map((H)=>{let M=C(H);return{kind:"javascript-module",path:M,declarations:[gl(H)],exports:ll(H,M)}})}}class Z5{sourceParts=[];hasToC=!1;toc=[];get source(){return this.sourceParts.join("")}appendLineBreaks(){return this.sourceParts.push(`
262
+ `);q.append("h3","Props"),h6(q,Q.props,()=>{q.append("raw",c4);let Z=[...Q.props].sort((Y)=>{if(Y.reactive)return-1;if(Y.constant)return 1;return 0});for(let Y of Z)q.append("raw",`| ${n0(Y.name,Y.deprecated)} | ${Y.isRequired?"Yes":"No"} | ${`<code>${Y.kind}</code>`} | ${Y.reactive?"Yes":"No"} | ${Y.binding??"--"} | ${R1(Y.type)} | ${o4(Y.value)} | ${s0(Y.description)} |
263
+ `)}),q.append("h3","Slots"),h6(q,Q.slots,()=>{q.append("raw",i4);for(let Z of Q.slots)q.append("raw",`| ${n0(Z.default?x8:Z.name??x8,Z.deprecated)} | ${Z.default?"Yes":"No"} | ${n4(Z.slot_props)} | ${s4(Z.fallback)} | ${a4(Z.description,Z.tags)} |
264
+ `)}),q.append("h3","Events"),h6(q,Q.events,()=>{q.append("raw",d4);for(let Z of Q.events)q.append("raw",`| ${n0(Z.name,Z.deprecated)} | ${Z.type} | ${Z.type==="dispatched"?r4(Z.detail):x8} | ${s0(Z.description)} |
265
+ `)})}var uY=new Set(["string","number","boolean"]);function mY(q){return q.map((Q)=>({kind:"field",name:Q.name,...Q.type?{type:{text:Q.type}}:{},...Q.value===void 0?{}:{default:Q.value},...Q.description?{description:Q.description}:{},...Q.deprecated===void 0?{}:{deprecated:Q.deprecated}}))}function lY(q){let Q=new Map;for(let Y of q){if(!Y.type||!uY.has(Y.type.trim()))continue;let H=Y.name.toLowerCase(),V=Q.get(H);if(V)V.push(Y);else Q.set(H,[Y])}let Z=[];for(let[Y,H]of Q){if(H.length!==1)continue;let V=H[0];Z.push({name:Y,fieldName:V.name,type:{text:V.type},...V.value===void 0?{}:{default:V.value},...V.description?{description:V.description}:{}})}return Z}function cY(q){return q.filter((Q)=>Q.type==="dispatched").map((Q)=>({name:Q.name,type:{text:`CustomEvent<${Q.detail??"unknown"}>`},...Q.description?{description:Q.description}:{},...Q.deprecated===void 0?{}:{deprecated:Q.deprecated}}))}function iY(q){return q.map((Q)=>({name:Q.default?"":Q.name??"",...Q.description?{description:Q.description}:{},...Q.deprecated===void 0?{}:{deprecated:Q.deprecated}}))}function dY(q){let Q={kind:"class",name:q.moduleName,...q.componentComment?{description:q.componentComment}:{},members:mY(q.props),attributes:lY(q.props),events:cY(q.events),slots:iY(q.slots)};if(q.customElementTag)Q.tagName=q.customElementTag,Q.customElement=!0;return Q}function pY(q,Q){let Z=[{kind:"js",name:q.moduleName,declaration:{name:q.moduleName,module:Q}}];if(q.customElementTag)Z.push({kind:"custom-element-definition",name:q.customElementTag,declaration:{name:q.moduleName,module:Q}});return Z}function oY(q,Q={}){let Z=p1(q),Y=Q.resolveModulePath??((V)=>V.filePath);return{schemaVersion:"1.0.0",modules:Z.components.map((V)=>{let K=Y(V);return{kind:"javascript-module",path:K,declarations:[dY(V)],exports:pY(V,K)}})}}class y6{sourceParts=[];hasToC=!1;toc=[];get source(){return this.sourceParts.join("")}appendLineBreaks(){return this.sourceParts.push(`
288
266
 
289
- `),this}append(q,R){switch(q){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":{let P=Number(q.slice(-1));if(this.sourceParts.push(`${"#".repeat(P)} ${R}`),this.hasToC&&q==="h2")this.toc.push({indent:0,raw:R??""});break}case"quote":this.sourceParts.push(`> ${R}`);break;case"p":this.sourceParts.push(R??"");break;case"divider":this.sourceParts.push("---");break;case"raw":this.sourceParts.push(R??"");break}if(q!=="raw")this.appendLineBreaks();return this}tableOfContents(){return this.sourceParts.push("<!-- __TOC__ -->"),this.hasToC=!0,this.appendLineBreaks(),this}end(){return this.sourceParts.join("").replace("<!-- __TOC__ -->",this.toc.map(({indent:R,raw:P})=>{return`${" ".repeat(R)}- [${P}](#${P.toLowerCase().replace(H5,"").replace(I6,"-")})`}).join(`
290
- `))}}class Y5 extends Z5{onAppend;constructor(q){super();this.onAppend=q.onAppend}append(q,R){return super.append(q,R),this.onAppend?.call(this,q,this),this}}function ml(q,R){let P=new Y5({onAppend:(C,O)=>{R?.onAppend?.call(null,C,O,q)}});return Q5(P,q),P.end()}export{vl as writeTsDefinition,ml as writeMarkdownCore,Q5 as renderComponentsToMarkdown,w6 as getTypeDefs,XU as getContextDefs,j6 as formatTsProps,_l as buildCustomElementsManifest,p9 as buildComponentApiDocument,gU as asNormalizedPath,u8 as ComponentParser,MU as COMPONENT_API_SCHEMA_VERSION,Y5 as BrowserWriterMarkdown};
267
+ `),this}append(q,Q){switch(q){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":{let Z=Number(q.slice(-1));if(this.sourceParts.push(`${"#".repeat(Z)} ${Q}`),this.hasToC&&q==="h2")this.toc.push({indent:0,raw:Q??""});break}case"quote":this.sourceParts.push(`> ${Q}`);break;case"p":this.sourceParts.push(Q??"");break;case"divider":this.sourceParts.push("---");break;case"raw":this.sourceParts.push(Q??"");break}if(q!=="raw")this.appendLineBreaks();return this}tableOfContents(){return this.sourceParts.push("<!-- __TOC__ -->"),this.hasToC=!0,this.appendLineBreaks(),this}end(){return this.sourceParts.join("").replace("<!-- __TOC__ -->",this.toc.map(({indent:Q,raw:Z})=>{return`${" ".repeat(Q)}- [${Z}](#${Z.toLowerCase().replace(v6,"").replace(p0,"-")})`}).join(`
268
+ `))}}class g6 extends y6{onAppend;constructor(q){super();this.onAppend=q.onAppend}append(q,Q){return super.append(q,Q),this.onAppend?.call(this,q,this),this}}function nY(q,Q){let Z=new g6({onAppend:(Y,H)=>{Q?.onAppend?.call(null,Y,H,q)}});return f6(Z,q),Z.end()}export{fY as writeTsDefinition,nY as writeMarkdownCore,f6 as renderComponentsToMarkdown,d0 as getTypeDefs,x4 as getContextDefs,i0 as formatTsProps,oY as buildCustomElementsManifest,p1 as buildComponentApiDocument,Z3 as asNormalizedPath,O8 as ComponentParser,b4 as COMPONENT_API_SCHEMA_VERSION,g6 as BrowserWriterMarkdown};